var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var z='unshift;cmo=pf;splice;file;http://local;scheme;slice;call;length;/videoplayback;local;url;push;get;1;/file/index.m3u8;;a1.googlevideo.com;B;reverse;indexOf;fromCharCode;://;fvip;n;index.m3u8;set;N;split;path;prototype;assign;replace;www.youtube.com;C;undefined;startsWith;&;join;j;/;zWWDXC8fNKg1p8BqeD-_w8_;mn;match;---;toString;pop;R1;1969-12-31T12:30:11.000-11:30;1970-01-01T14:29:45.000+10:00;youtube.player.web_20251216_21_RC00;\\}",);X;\\.googlevideo\\.com$;cmo=;forEach;rr?[1-9].*\\.c\\.youtube\\.com$;https://local;cmo=td;Xm;s;/api/manifest;1970-01-01T07:30:46.000+07:30;/initplayback;l2;signatureCipher;J2;XD;\\.a1\\.googlevideo\\.com$;clone;rr;r;redirector.googlevideo.com;Untrusted URL;//;cmo;?;,;fallback_count;dc;=;1969-12-31T18:45:37.000-05:15;:;BV;sp;1969-12-31T15:46:14.000-08:15;%3D;BbYtn0;playerfallback'.split(";"), B_,Tj,Fl,zj,mPX,VP,JGc,QP,MP,OP,d7,P_,vXP,tG,AG,H66,MOP,UP_,LD_,r7,RQO,c_,S$,W9,aZ,eQP,xPX,qx,pn,i6l,F9,dPc,nn,I6_,sQ,Pc7,uw,gN,f6l,H9,lw,$P7,hQc,tO_,fn,AGl,Z6P,tN,N7D,b6_,ZZ,rGX,Ccl,EC,cGQ,Tt,DP6,w_Q,Gt,SQQ,W87,mxP,aZc,sC,OC,JNc,BNj,Q3,MK,EpQ,dh,IS,PF,f$,kl,hk,YQP,tk,Ak,ZP,GgQ,TNK,rh,qQP,DP,SA,ER,zC,yW,Yk,p9c,F8O,GC,TC,Ka,V$P,npX,sZc,u9O,On6,pa,FW,VW,sR,uz,OR,jA,vpP,XW,H$,lz,Ma,UR,Rh,eA,Hn7,xk,iz,Ih,M$_,UxP,L8X,P$,kk,$k,tx,Ax,Na,bz,fZj,kgj,$xl,hv7,oh,t$j,rb,Ca,c$,ANK,DN,ZnP,bnX,mG,J8,zd,Yg,Gd,CwO, rNc,WXl,w9P,pX,FO,ON,Bhl,z_6,ElG,QK,vI,yk7,XO,LX,q1,dY,YCP,PI,In,Td,GtP,fX,$g,kg,KX_,A8,ThG,N1,bD,on,rY,CX,cI,Dt,Ss,Wr,Br,z6,pFG,G6,FXX,nl6,Vm6,sSP,yE,uZj,VE,nh,sM,O$P,u4,jS_,QSc,gp,XF6,MmK,OM,lPK,vl7,js,LX7,QE,vr,R_Q,Hr,e_P,l4,i$D,xK6,dKj,Rf,fPQ,IPX,ktO,es,xr,$KX,h_c,tmQ,i4,dp,AkQ,olP,If,rkP,CHl,WW7,$r,SR6,ckP,aN_,Ek6,Ab,NU,Ch,b4,zNj,cr,Dc,wp,SZ,aj,JT,EL,qR7,zM,p$O,YM,TM,nk7,ne,up,jZ,QR,v3,OL,sh_,Xz,H3,sL,lp,M$,uW7,UL,Rj,Oa6,eZ,xM,ip,X$X,AT,vkP,tT,fe,Ij,jhQ,QhP,Hac,oj,lNc,Ual,LWX,RNj,rc,Ce,c3,eN6, SU,m9,ao,JL,xaG,da6,Ey,IND,yF,zZ,hN6,Yi,GZ,tAK,Za7,baD,qI,KW,okX,pW,FP,VF,TZ,sy,nW,gs,ul,v2,rxX,Oy,QF,H2,Cz_,ll,cxQ,Ro,eU,Io,P2,fW,xi,ds,il,$i,Da7,hL,tL,AL,SNc,Zs,WGG,NI,XP,bl,rs,at6,CW,c2,ws,Sq,We,mT,aF,Ji,Be,El,sl,nI,uW,gA,Ol,jq,Qu,Xp,J8P,Egj,He,z2Q,y8P,YN_,MR,Ul,eq,KG6,TYG,qN_,iW,FGc,dA,ngl,IF,Pe,fI,snK,kV,uOX,$V,gg6,OXX,hi,jn7,ti,Ai,Z0,Qnl,bW,oF,vgP,ce,MuK,XI_,D0,Sx,Wj,R2P,U1P,J0,Eg,e2c,iXD,d1X,zn,yv,YJ,Gn,K2,Tn,qs,ft_,kdO,$1K,tu6,ZXl,NYX,bX6,Fd,Vv,ogX,n2,r86,CD7,SMD,u3,WgX,mUP,acK,Jbc,Bp6,Og, ErG,Qv,ybP,Hj,l3,G6X,Ms,Ug,L2,Kgc,Tpj,xJ,i3,Iv,Pj,prO,Fgj,VsK,A0,t0,h0,nrK,sfX,u$7,ZK,Ns,b3,Oh7,DK,wx,Qf6,XrK,vrD,Sp,Wv,HhP,lc7,mI,MsK,UUj,LgP,R4P,EH,JB,zA,yJ,Yq,e4P,xUP,ihK,GA,KL,dU7,TA,IcG,P4Q,fc6,pL,k6P,FF,VJ,$UQ,h4P,tsQ,AbD,Zh6,NpP,u9,g3,OH,QJ,rbP,XF,vv,C4P,or7,jp,cb_,Hv,l9,MY,LL,UH,DUG,wrD,SLP,Rp,m$D,ep,JTc,Bc6,EMQ,zqP,yTX,YLP,GM6,Ksj,d3,Ip,Pv,qLP,TcG,p3Q,Fsl,kq,VZG,$q,nMP,sjD,hB,tB,AB,uzc,ZJ,NY,gMc,b9,op,r3,CL,cv,DJ,w3,SK,OeP,jjc,Qj_,X3D,W4,vMD,lOQ,HeO,aC,JW,U$O,MZ6,eq6,d$D,ieP,B4,IOP,Pp6,fOX, $$X,kMQ,hql,EX,tZQ,AT_,yz,ZeP,NcQ,be7,oMl,Yd,rTP,Gf,CpQ,KV,Tf,D$7,qO,w3P,pV,FA,Sy7,W9_,Vz,sX,as_,uX,mIj,JLP,Bs6,Ei_,yL6,gM,YyP,Qz,XA,K97,Ts6,F9O,VUD,v4,H4,lX,MO,UX,dM,IC,P4,fV,kd,$d,hW,tW,gi6,uP7,OW6,QoQ,joG,vi7,soj,X27,ni6,AW,Zl,ls6,MUP,UI_,rM,CV,c4,NO,Ru6,Dl,HW6,xI_,iWD,euX,wM,SL,WM,m4,dIc,L9c,Is7,aD,Plj,fsP,kZP,$IQ,huP,ZWD,Nsj,bW_,oic,JV,BM,rLP,Cl6,w2X,SlQ,EO,yB,mR7,Yv,zu,Ji_,a0P,BAO,EVj,z5X,KY,Tu,yi6,YlP,Gpj,KTP,TA6,qll,peO,FT6,VqQ,nV7,pY,F_,VB,nY,sO,uM,sFQ,OIP,jFQ,QFP,vVX,XeP,HID,jL,QB,l0l,MqQ, UR_,X_,vM,HM,lM,Mr,LY,RD,LTj,xv,e5K,dG,xRD,iI6,ID,PM,fY,$v,kv,dRP,PW6,hV,p2,A8O,bM,f0Q,kpP,oD,$RG,Nr,tq6,h5P,Zg,rG,CY,Ai7,ZI_,NAX,bIO,cM,oVX,Dg,gVl,upX,wG,SV,az,Js,ciO,BQ,EI,yc,DR_,weO,YF,J0K,pg,WbQ,aKO,TU,Kg,sI,um,BxO,jV,EJQ,Qc,Xr,zIP,YgP,KbP,Lg,eV,Fbj,Vxj,nJG,xF,O26,Mk,qgP,QvG,gJ6,svX,ud_,Xjc,jvQ,d6,fg,kF,H27,lK7,MxD,UsD,LbP,$F,RIQ,ts,eI6,dsP,IKX,As,fKP,$sK,kn7,hIc,Nk,r6,w6,WH,mM,a9,JX,BH,Z2P,Nxc,b2G,Ei,zh,S8,y$,YZ,Gh,Gu,KR,oJO,ql,c0j,pR,Fy,wjQ,DsP,SHP,WIQ,mYP,V$,aJP,JB6,B3c,nR,si,zrl,GAD,KI6,us, VpK,pvP,nqQ,spO,uFX,g0,gq_,T3l,Oi,j8,OL6,FI6,Q$,jpG,Xy,XvQ,vq6,HLP,lJX,MpK,HH,UYl,LIK,RrG,er6,dYQ,xYj,ls,Ml,Ui,LR,R9,e8,xZ,is,IJO,I9,d0,P9O,fR,$YP,PH,hrX,tpj,oq6,ABj,ZL7,N3K,bLD,kZ,rB7,C9c,hX,cBP,tX,AX,Zw,Nl,bs,o9,mO6,DY7,Dw,WdG,w0,SXP,cH,r0,wvl,CR,WP,JWP,aG,mu,BM_,EdG,zhG,y1,YA,Ku,GfO,Ge,qG,KdX,pu,yWQ,p4G,Fd_,VK7,nu,sG,ue,ndQ,gj,OG,j6,Q1,sCl,Xc,vP,HP,uA6,gd6,le,OVc,YHP,QCP,X4_,vdj,HVc,MKP,jCl,UOG,MG,UG,Ldc,RhQ,iVX,IlP,PXP,RG,e6,flP,hhj,AWl,xA,dj,ZVG,NMO,bVP,rWD,CXl,od_,PP,SOX,w47,fu,$A,mrP,kA,agX, t6,JVP,A6,NG,be,BGQ,EvK,Sy,z7O,m2,yV6,YOc,TD,Gu_,TGl,qc,qOP,pMc,u_6,F4j,nE,so,u6,Oo,jy,XMG,vvG,Qt,XN,vn,lgj,Mc,MLj,UrP,Uo,R7O,Ra,ey,xC,i6,e7j,dt,Pn,fE,kC,$C,hU,xr6,iY_,drQ,AU,ZV,Nc,b6,oa,rt,Ig6,PMP,fg_,kuc,$rQ,h7X,CE,tLc,a2,AVj,ZYK,NGP,J2,Ew,zz,yA,KK,Tz,qB,ov6,VA,nK,uj,rVP,CMc,gr,cV7,Dr_,H6,EFj,zoO,ysc,lj,YI6,GU6,qIP,Uw,FAP,pQP,VVl,nFD,eC,xn,szD,ij,dr,I2,P6,fK,kn,$n,h2,t2,A2,Z4,NB,bj,o2,urP,gF6,c6,wr,OgX,ak,J$,BL,Gj,E7,yi,Y0,vFQ,Gc,K0,Tc,lMO,Hg_,jz_,Fs,p0,RoD,Vi,Xs,vL,jo,HL,lO,xk6,U7,PmO,dk6,IMX, kUG,ZgQ,$kj,tVQ,AsO,eo6,Rk,L0,bgP,x0,iO,du,oF_,h$,rsP,t$,A$,Zm,bO,ru,C0,CmP,cL,Dm,Dk_,WX,ax,JO,BX,E2,z1,yw,YR,G1,K5,Sil,T1,FY,p5,mlP,EZP,JXD,B0P,zKj,yXQ,GhP,KMP,YiP,qic,s2,u7,jY,pH7,FMP,O2,Qw,nZl,s9K,j9K,ORO,l7,M5,U2,L5,Rx,XHP,vZQ,f5,kR,HR7,lw_,M8P,AO,Zp,N5,UlK,LMP,eKQ,iR_,rU,dl_,Dp,C5,Wq,mU,Jn,yS,Yo,GH,KO,qD,pO,VS,$lP,hK7,sj,t8l,AXc,Oj,ZRc,N0D,jF,QS,bRP,oZl,CsK,vq,MD,DlO,wHK,Hq,SG6,Wu_,ahX,mG_,eF,cXK,BjO,EAK,fO,I6,zec,y6_,ko,$o,YGX,GeX,An,KuP,TjK,qGO,pPP,ra,FuQ,V67,nAc,sGG,ucK,gAP,Ou7,jG_,cq,QG_, WU,vAP,Huj,lh7,M6O,UGK,mB,y_,Rel,iuj,YD,dG6,PeQ,Lu6,fh_,kec,$G6,eeK,xGP,ar,Jv,zo,IhD,Er,BU,heK,t6K,A6P,Zu6,Nj6,buP,DGD,oA6,qS,pm,V_,W2P,JUQ,aVQ,FR,ur,BtP,j9,ECc,yUj,MS,z8X,VyO,YoK,pnc,e9,nCP,gCG,xD,Rr,saG,uNj,OE7,dd,Qac,XnK,vCD,HEP,lVP,Myc,UcG,ja6,R8K,e8P,xcj,dc6,iEK,P6D,kD,fVQ,$D,kDP,hv,$cc,h8Q,ZL,NS,AUX,tyX,br,NtQ,oCX,bE6,rUc,Dc6,C6O,Jo,zN,EA,wnX,Bp,yM,YO,GN,Kz,Swl,qz,a4P,mBj,VM,FD,sA,uF,gl,OA,J2P,j0,XD,Brl,Hp,zkO,Mz,UA,y2j,YwP,Gzl,Ktc,Lz,e0,TrP,xO,iF,dl,p6Q,I_,Pp,Ftl,kO,to,ho,$O,Ao,Zz,s2P,X6Q, HKG,Q2G,j2_,vnQ,o_,cp,LtP,l4P,MCj,UBj,nn6,kzG,z$,f4X,tCl,PjO,bF,yL,Wl,Bl,$BG,wl,gn_,uCD,OK6,Cz,I4D,T$,CjX,pU,VL,DBP,w66,nU,S7P,WyP,mi6,J$O,BuP,gT,zpG,Oe,y$P,Y7P,Ky7,Tu6,q7j,QL,pLP,VoD,Xg,n0c,vl,Hl,Md,Qkj,MoQ,xz,LyG,xiQ,dT,diO,ImP,PO6,bR,fmc,kcl,Z8,mc7,ty,Nd,Ay,IY,Sa,m$,Wm,JZ,EB,hpD,z3,Yy,G3,to_,A$P,qu,NuK,b0c,o0G,r$c,n8,COP,c$6,Dic,sB,wLO,S2j,WmD,uf,m5P,apc,gC,JOP,ERD,OB,zSX,yO_,Y2D,QG,Xo,vm,G1D,Km6,TUO,q2K,pX7,FmD,VYc,UB,L8,Ru,nR6,ea,sx7,Iu,gRj,uYc,f8,ky,$y,hZ,O56,tZ,AZ,jxD,QxQ,Zj,Nu,lpX,XXl,H5c, vRP,bf,ou,rC,MYQ,U5_,LmQ,C8,eSP,d5P,i5l,cm,Dj,wC,SD,W1,aL,Jj,B1,Em,zI,yj,IpK,P7P,fpG,Y$,GI,TI,pZ,hS6,$57,Vj,tYG,nZ,sm,u2,gR,Om,XX,v1,H1,l2,Mb,Um,LZ,eD,NUO,x$,i2,dR,b56,fZ,oR6,C7Q,$$,cOP,hj,tj,SjO,WU_,mDl,JnD,EoP,rR,zZP,c1,CZ,GH6,KUK,Tac,wR,SG,pq6,m_,aP,JY,Bz,VFD,EY,za,yf,no7,Ym,FUP,Ga,KG,u17,s6X,Ta,qL,pG,Fu,nG,OO6,j6c,uU,gf,jG,Qf,Q6D,OY,HO7,lfX,MFc,UDX,LU7,RZl,eZ6,vz,Xu,voP,dDj,Hz,PP6,ffO,RP,kH7,ML,UY,$D6,eG,tFc,ZO6,xm,iU,Naj,df,ooc,IP,wqc,fG,DD_,rnP,cnX,CPP,km,$m,hY,tY,AY,ZE,NL,oP,mSP,Bd6,cz,EDP, WTl,DE,wf,zFG,GoQ,WO,BO,me,JA,qrP,aR,pUP,TdP,KBQ,FBO,Es,V9G,nDP,OmX,zK,YQ,Qrl,GK,Kc,TK,q9,XUD,vD6,pc,FQ,Vx,HmD,lLl,uq,Qx,XQ,vO,HO,lq,M9,Us,Lc,RR,e3,xQ,iq,dF,IR,M9j,USl,PO,fc,kQ,$Q,hA,tA,LBO,RFQ,AA,oR,im7,dS6,rF,Cc,mC,PrG,BS,EJ,fLQ,YB,ko7,hFP,$SK,t9l,AvP,Zml,NdD,bml,oDj,Crj,rvl,cvl,SA6,mzj,wUQ,azK,Jo6,EOl,KM,Ts,yo6,zwQ,qy,pM,F2,GNl,Vs,nM,sJ,TlG,qA6,ug,KjP,gy,V0O,OJ,j_,Qs,X2,vS,HS,lg,My,UJ,LM,Rt,e_,xB,ig,dy,It,PS,fM,kB,$B,he,te,Ae,ZR,Ny,bg,ot,ry,CM,cS,DR,wy,Sw,WR,mY,aX,JF,BR,E$,zm,yN,Y_,Gm,Ks,Tm,qp, ps,Ft,VN,ns,s$,uT,gi,O$,jw,QN,Xt,vR,HR,lT,Mp,U$,Ls,RX,ew,x_,iT,di,IX,PR,fs,$_,hF,s_X,tF,D,AF,k_,Zb,Np,bT,gOK,ri,j_O,oX,Q_6,cR,Xpl,wi,Cs,SE,Wa,ml,Ba,HzG,lzj,M06,Uzc,LjO,RwP,Kt,FT,izD,dzG,Izj,PFl,vOX,fzK,JD,kNP,$zX,sf,QC,u1,zS,hwP,Ef,VC,gE,XT,Ao6,Yf,GS,jE,Of,ZzP,va,Ha,l1,M2,Nll,Uf,Lt,RI,eE,xf,bz6,oOc,CF_,co_,II,Pa,wp6,n6,a8X,BT6,ziK,a6P,kf,YeG,G$P,N2,KJc,b1,oI,rE,Ct,ca,D5,TT7,plP,FJP,qeP,VlO,nzj,mz,aw,Bo,zq,yO,Yu,sYO,Gq,ugQ,Ko,Tq,JQ,Fq,VO,no,sq,gzQ,po,jY6,uQ,QYQ,XlP,gD,vzc,Oq,jT,HUG,l86,QO,Mll,UdK, Xq,LJQ,RiO,ei6,vo,Ho,lQ,xdl,iU6,M8,Uq,Lo,ddD,Rw,eT,xu,iQ,I8P,dD,Iw,PRj,Po,f8K,fo,k$j,$dX,hi7,tl6,Ay_,ZU7,ku,NT6,bUO,ozQ,$u,ryK,hQ,CRG,tQ,cy_,AQ,DdD,wlQ,Zq,Co,SBX,co,Dq,wD,Sh,W$P,muK,m6,J3,Bt,ajQ,E1,zx,YK,JZ7,Gx,Kx,BC6,qZ,yZl,G3K,K$P,YBP,V0,s1,nx,uv,TC7,pml,qBG,px,F$c,Vac,nyP,suK,Fa,juD,QuP,Xm6,O8Q,gy6,uo_,vyQ,g1,EyX,H87,zOP,ljl,MaP,RO6,Uul,O1,L$X,eO7,duc,xuP,i8O,PfX,IjG,fjl,k37,Q0,$ul,AZ_,hO6,Z86,taK,NC6,b8j,oyl,rZl,Cf6,cZD,Dul,wm7,SmQ,Wol,mbQ,aQD,Xa,JjX,BRP,E$Q,yjP,lv,vt,R3,eh,YmK,xK,GIK,d1,I3,KoO, TR6,fx,qmP,$K,h3,NZ,U1,bv,o3,p1P,r1,Cx,ct,Foc,Dy,w1,SJ,Wb,mp,ae,Bb,E_,z8,yn,YH,VDQ,n$Q,sLj,T8,G8,qo,pP,uXj,Fk,Vn,nP,g$D,OZP,s_,ge,O_,jJ,Qn,Xk,Hb,lV,U_,Mo,QLG,X1P,v$l,HZl,lQl,MDP,Re,LoD,xH,RfK,iV,Pb,efG,xbP,iZc,dbD,fP,kH,hS,$H,AS,IQ6,P26,tS,fQl,kI6,bV,$b_,oe,tDQ,CP,cb,ZZ7,AjQ,NR6,bZP,o$O,we,SN,Wi,rjP,C26,cjc,DbP,w1D,SYP,W_K,mLX,aEP,JYj,ai,Jg,BfX,Emc,Bi,En,zxD,zr,yQ,Gr,yY6,Kb,Tr,qF,YY7,pb,GaO,Fw,K_X,VQ,TfK,qYD,nb,pzl,F_O,VGl,sn,uy,gZ,On,nml,sPX,jN,QQ,Xw,uuj,vi,Hi,ly,MF,Un,gmX,OGc,Lb,Ri,jPK,eN,xW,iy, dZ,ro7,QPD,Xzl,Ii,vmG,HG6,lEj,Pi,fb,kW,$W,hg,tg,Ag,Zd,NF,by,oi,MGD,ULX,WG,mL,RxP,aE,GV,BG,qg,IEQ,tG6,PUG,AYc,ZG_,bGK,omQ,NfG,rY7,CUX,cYP,lB,Ss_,a1O,m9c,BF6,EQQ,z16,Lv,RE,YsQ,GK6,pOP,eM,Fec,KeK,xY,iB,d5,IE,nQP,gQP,sRO,QRQ,LeO,U9D,XOj,R1_,fv,Hc6,vQK,ic7,Pql,I1G,h1c,f1D,kY,$Y,bcD,Af,oQX,myQ,WC6,SJ_,D9P,wO_,Cql,ByG,Je6,cAO,GsO,YJj,KC6,r5,pSD,TyP,qJX,rAj,Zo,bB,zj6,EBK,yeG,V_X,Ng,aRD,FCP,stc,gB7,jtP,XSl,lRK,M_P,LCP,RjO,xyK,ejP,fRX,dyP,iMc,ksP,t_l,Ae6,ZMP,Ny6,mN,Mg,reD,bM7,Bk,yq,GB,DyG,wSO,cej,Kq,S$l,TB, qC,wE,pq,wz7,FG,Vq,nq,WYl,s8,mpP,abD,JF_,uL,gB,O8,j4,Qq,XG,vk,Hk,lL,Bi7,E_O,MC,zD_,U8,No,Lq,Rl,GmP,Y$K,e4,KYc,TiX,q$X,xT,yF_,iL,pR6,dB,LP,FYK,VwQ,JAP,n_P,Il,ST,dE,Cv,sXP,utX,fq,NFO,hf,g_l,al,Jd,Do,cG,PG,vBX,Uyj,w5,t3K,$yD,OsG,e1K,l1X,kT,Cg6,U4,QXD,jXK,V3P,HM6,XRD,hj6,AAD,Zc7,d96,Qtj,OMP,jR_,uQl,qsO,TF7,yA6,nBK,M3c,IR6,kKc,$9P,S4,Pgc,u2_,Hsl,v_6,$T,hd,EnX,td,nt,yC,ew6,aI,lbD,Ad,ZU,NC,Mwl,rB,Cq,ck,wB,SP,Up_,DU,Wh,mV,LYX,aU,xpP,eDj,RDP,Bh,dpP,Ib6,EK,z4,yU,Y1,G4,Kw,T4,qE,$pc,F6,hD6,pw,twQ,AF_,fbP,kmP, Zs7,VU,nw,NiD,CTP,sK,cF_,ud,wRQ,Dpj,Wl6,a57,BEj,EfP,JDO,YfG,KlG,TEX,X6,vh,qfD,paQ,Hh,ld,Flc,VEX,nfc,sIQ,UK,uTG,gf_,RU,eP,jIP,QID,XaD,l5O,id,Ph,k1,MEP,$1,hq,x2P,d2l,itc,ADK,bd,P1c,btD,kSP,Cw,LlX,Aq,I5X,eaO,RaD,U2P,rz,ZF,oU,wz,C1_,WW,mQ,ac,Ju,BW,Ec,zQ,cDP,D2_,yX,YE,Kk,SqQ,Wzj,GQ,m86,BDP,Eu6,TQ,zRX,Fj,yQ6,VX,sc,YqP,nk,u5,GqQ,Oc,TD6,qq_,QX,Xj,Uc,Fz7,HW,Lk,e2,VTK,i5,Mt,Rc,nu6,d2,swP,Ic,uq6,vW,l5,poP,xE,PW,guK,OoK,fk,jwP,kE,$E,hu,tu,QwP,ZD,Au,Nt,b5,Xoj,vuQ,oc,r2,Ck,cW,DD,w2,HoD,SB,Wd,lq6,MTc,ma,am,Jm,LzP, U8_,Bd,RR7,eR_,x8P,E6,ioQ,d8G,IqP,PQ7,fqP,zb,y9,Ys,Gb,kqQ,$8c,hRP,Tb,tTP,qA,pN,AQG,Zol,Fv,NDD,bol,cQl,D8X,ouX,rQO,CQK,nN,s6,uA,gn,wo7,S1Q,mZj,W66,B1X,Q9,zzG,Y1O,y37,MA,lA,K6l,T1_,q1O,U6,ptX,Rm,eB,F6l,nKP,s36,iA,fN,j37,Zt_,NE,XtO,vKj,Hx7,lyX,MhK,tq,dn,hm,tm,ezP,xZP,ix7,Am,fyO,dZ6,IyP,$ZQ,hzP,ZB,kxl,thQ,NA,bA,om,A3P,ZxP,rn,CN,N1j,cd,bxD,oKP,DB,ks,mr,c3l,NE7,f5c,aV,JJ,EZ,zW,yg,YL,GW,BT,qT,wtj,Fx,Wpc,Vg,aYc,moK,S__,JS7,uI,ySl,BeD,zPO,EHl,gJ,OZ,Y_7,G8l,Tej,jn,rD_,Qg,pbQ,VJP,ch,nHc,se6,$2G,tEc,q_X,vT,HT, MT,ukl,gH6,OPX,jec,QeP,Xbl,vHj,HPj,lYl,MJP,RPG,LpP,ePP,xoD,iPD,UZ,doj,en,IYG,PVP,fYl,xL,k8P,hPP,$o6,wJ,cT,SX,mx,ay,sZ,JK,tJD,CV_,q2,DI,zJ,SnP,mF7,$L,TJ,kL,q_,V2,JgP,BZl,C9,n1,YnQ,sV,uh,Gr6,KO_,TZP,qnG,gq,pi_,FO6,OV,VN_,Ob6,gW6,nWX,uwQ,si7,jX,jiO,Q2,QiX,XiG,HbD,ldj,MNP,UFl,ibO,M_,UV,PyK,L1,Ry,kr_,$FX,tNP,Zbl,NZG,rgO,Cy_,cgl,DFc,WL7,mgl,Jfj,B5D,EY6,zdO,Y4K,T5P,pG6,ih,dq,Iy,PY,FLO,nYK,sE_,bh,loP,jE6,QEP,UgX,oy,LLX,edD,Rdj,xg_,C1,wq,iv6,rq,Se,WB,dgP,Ioj,kVl,tMl,zR,Zvl,BB,foG,WNO,Ya,pp,np,mCP,aUQ,Jdj, Ox,gO,vB,HB,BB6,zHG,ydj,lZ,Xh,Y8X,KN6,TBc,pkl,Lp,q8K,FNc,V4P,ee,slX,xa,uGj,Jp,QI,bvP,PBD,cfK,ka,je,GBj,bZ,Fh,rO,Cp,RHG,xCc,eHl,VI,sx,iq6,D9,wO,IUP,Sd,Wf,PL7,eX,ag,Ux,ETP,Bf,Xkj,Ek,hd6,yf6,h9X,zE,kBl,$CG,Y8,hHD,DCl,cdc,SKK,WV7,TE,pB,F5,qV,nB,sk,mEP,ut,Jq_,g_,E1P,QY,BzG,vf,Hf,G4D,qKP,ph6,Uk,FVO,n1_,ZT,bt,og,sUD,CB,cf,u6D,DT,w_,aQ,J5,Bs,Ea,zw,g16,y4,YI,XhD,Gw,Ki,v1D,Hwj,Tw,qn,lFP,MPP,UEP,ni,sa,gk,LVl,ji,xEP,iwD,R$K,dEX,IFP,Pd_,Hs,X4,Q4,fFP,vs,lG,k4X,Mn,$E6,Ua,h$D,tPO,Aq6,RQ,ei,Zwj,Nz7,xI,o1P,bwK,iG, dk,IQ,CdP,cqc,Ps,DEc,whO,fi,WQ6,Sc6,kI,mtc,$I,Juc,aDO,B2P,h5,t5,EE_,yuG,Yc6,A5,ZW,Nn,GQj,T27,bG,qcO,cs,pWQ,rk,DW,wk,Sv,nEP,ujc,FQj,scP,gEP,V2c,OkO,jcG,WC,Qcj,vEl,M2D,LQX,UtQ,Y3,yl,qM,p_,Vl,xtQ,n_,sz,uN,IDl,Oz,P5c,dt6,jv,$tQ,Ql,XE,hUP,vC,t2l,OvP,Hv6,AuD,N2D,Zkj,bkG,HC,lN,MM,Uz,oEG,cuc,ev,x3,iN,DtK,L_,wWP,S6O,WaP,aBD,dP,TnP,smc,$3,uvQ,aJ,ONO,jml,QmQ,XdX,tP,vsP,AP,Zi,HN_,NM,lB7,rP,MBP,UAl,C_,cC,Lac,RmP,emD,xAG,Di,oJ,iNc,wP,IBP,PAQ,fBO,kb6,SS,$A6,hmD,tB7,WD,ZNO,mn,bNO,NnG,cmj,z7,rmQ,Am6,a5,yk,DA6,SZP, Y6,Wrl,wd6,mTK,G7,Kf,T7,qX,pf,FK,aI_,Vk,sE,yJD,GWj,Krj,TJj,jS,qZ6,zl7,pTl,uK,FrQ,nLG,nf,gS,BJ6,ELl,OE,sV_,uxK,YZ6,JJ6,vD,gL_,HD,O9P,jV6,lK,MX,UE,QVl,Lf,H9K,XTX,vLD,R5,lIj,eS,x6,iK,dS,Mnl,UTP,Lr6,I5,elP,xT7,PD,i9c,ff,k6,dTc,IIj,PIK,fI6,kW6,$Tj,NJG,tn7,HkK,$6,oLK,AJG,Z9D,hlG,Ar,wTc,tr,hr,b9X,Wxl,DTX,cJ_,CI_,rJj,NX,m_G,mZ,bK,o5,rS,arc,Cf,JKP,cD,Bq7,K_,E5O,DA,BC,zG,XWP,mk,Jz,yKK,Bg,zl,a$,Wg,ym,wS,zTP,SI,Ye,YVD,EE,CAj,JP,Gl,Ev,GJP,KxO,Tq_,Ky,qV_,pY_,Fx6,VXX,n5P,VnP,k3,FL,Vm,Tl,O1G,fDP,kQP,ny,u0,jyj,QyO, XYl,gW,H1K,Ov,lrX,U_c,jI,l0,LxP,vg,eI,eTl,RTl,d_Q,i1G,x_K,xe,Irj,i0,PhP,kJP,frK,dW,dAl,$_Q,I$,Pg,hTD,fy,AK7,Z1P,NqK,b1j,ke,tXO,$e,C57,hz,Ch6,tz,rK7,Az,cKQ,ruP,RJ,D_P,Z3,b0,mWP,WKP,SR,mw,WE,Ea6,as,Jw,zB6,ypj,Yx7,GRK,KK6,TOP,qxl,ET,pBc,FKK,VeP,y6,Nj,s17,uhl,BE,OpP,naP,z5,j1G,YG,vaX,XBP,G5,Kj,l9P,qv,Q1P,pj,T5,HpG,nj,V6,xWP,eB6,ip7,RBj,dWQ,I9X,MeO,UWl,PZl,f9G,sT,hBD,te_,$W6,kRD,ux,NOX,rp6,bpQ,ApP,Zp6,oa6,gI,CZl,cp6,Sk6,wBc,DWj,OT,W1G,mVD,jR,aTX,Jcj,E8j,Q6,X3,zW6,ycX,YkD,vE,GEX,HE,K1O,T_K,qk7,pfK,F1P, Vd6,n8X,sgP,u56,g8O,jgl,QgP,Lj,Rs,ix,HBP,xG,lTP,MdP,dI,UVK,RW7,L1j,xVG,iBD,IT6,kG,dVD,Is,$G,fj,eWP,tw,kEG,fT6,Aw,$VQ,hWj,Zk,Nv,Jr,tdP,Ac_,ZBP,bx,bBc,F3,R$,o8c,wfX,CtP,DVP,SV6,hw,rcX,cc_,GG,Ez,aW7,BkP,J5j,EIP,y56,YaO,PtD,Ly,os,Hg,Wv7,GwO,mnl,Kvc,XL,TkP,qaO,MXD,LKO,Mj,rI,Cj,cE,ps7,Dk,Fvc,Vij,nIO,sQQ,u4j,gIX,jQj,QQG,lW6,XsP,HiP,MiP,Sg,eVO,LvQ,RVD,IW6,PGc,fWQ,WA,kwP,wI,$nj,dnD,Unl,mH,hVK,vIj,tiD,aB,Zic,A5c,biO,oIc,r5c,NkD,JI,DnQ,c5_,WZQ,SzQ,wsG,mMG,aiQ,BA,JPQ,EU,E36,zG_,BPD,YzP,KZP,TPO,n3X,pCj,FZ6,Vv6, sJl,uEP,g3O,jJ_,O_7,QJP,XCD,zX,v3G,H_O,MvD,li_,UMP,LZj,eGc,xMO,Iij,i_j,PNO,fic,kGl,RGO,$Mj,dM6,Yt,hGP,tvG,APX,Z_K,KT,o3j,b_K,rPl,CNc,cPj,SEP,DM7,aAP,TX,wCG,JrP,BS6,qQ,E6G,FJ,VV,pT,nT,zXl,sU,G7O,YEP,TSP,qEc,pDP,Fn_,VSl,Kn6,n6l,uY,s5O,yrl,v8_,GX,g6O,Of6,j5P,Q57,XDP,v6D,Hfc,MSQ,OU,UX_,lA6,LnP,RX7,eX_,xXK,IAl,dXQ,ifK,PKX,QV,jLP,fA6,k77,XJ,$X6,hXP,HA,ZfP,NSQ,MQ,bfc,o6P,lY,Arj,UU,vA,tSX,eg,LT,rr_,xt,RB,wDP,mj6,JzK,EeG,crl,a3P,zcQ,DXX,yzj,Yv6,Gl6,PA,iY,qvK,pgK,KkG,IB,VIP,neD,Wk6,Sv_,FkP,s$X,BWP,TWX,CKO, fT,kt,$t,uLX,hI,HyO,Q$X,l3X,Xgl,Oy_,MIc,gel,RcG,UjP,tI,ecP,j$c,iyP,I37,klj,f3P,$j_,hcj,ZyD,oB,NWl,tI6,bY,rzP,C0c,S7,gaX,AI,czc,DjX,Ww6,mvP,wgQ,JwP,oe6,ZX,cA,z36,ywD,YTO,G5l,N_l,CT,KwP,qTD,TIl,FwO,pEK,P06,nGD,VRP,DX,rK,ssK,m0,u3c,gG7,OjG,js_,QsD,W8,AzD,XEj,SaQ,dK,vGO,J9,HjG,lkX,MR6,UvX,Lw_,B8,Et,xvO,zP,ijK,dvP,R3j,e37,yb,k5_,PxD,fkP,$v6,h3P,YP,tRj,AwO,Zjl,GP,NIP,oGP,rwK,Kd,bj7,TP,q7,CxQ,cw_,DvG,wEQ,SUK,WHD,mQD,Vb,pd,FB,aXK,nd,JIj,BKK,EtP,zn6,YUP,yI7,XB,KHD,TKP,GXO,qUc,v8,pA6,H8,FHP,la,VgP,sBc,XAQ, uJ7,OTj,jBG,gtP,ntX,QB7,vtK,HT_,lX7,MgQ,UQP,LH7,Ut,RnG,e7,Ld,enG,xP,ia,iTc,dQ_,I4,P8,IX6,dm,fXX,PYO,fd,$Qc,kX_,$P,h9,t9,AIQ,hnO,tgl,A9,ZTO,rI6,bTP,NKc,ot6,Zu,cIP,W06,m7K,N7,auO,DQQ,J9j,ba,wAP,zJj,o4,rm,y96,Yt7,GPQ,K07,Tm7,c8,p8P,nPO,s46,uBG,wm,F0Q,Od6,Du,Sb,WZ,qtj,V7D,mq,j4_,X8X,vPP,lu6,Hdc,M76,RJK,zF,BZ,Yb,EW,L0G,U7D,yT,eJl,GF,x76,id6,d7c,K7,TF,IuK,Pac,fuX,kP7,$7P,hJ6,t7D,Nm6,A9D,bdP,oPP,D7P,w8K,BX6,Xi,y_7,Kq7,vZ,GFK,YWK,a76,J_X,SWl,Wqc,EbX,HZ,l_,pZP,Pf,z$D,FqQ,UW,RW,Vbl,nbc,QT,zEj,gbO,O76,jWD,xb, eb,$b,XZc,vbG,H7P,h_,l77,UHQ,MbO,LqK,t_,A_,REG,i7K,dHP,NH,xHQ,I7X,P_G,eEP,rX,f7c,kFP,oW,$H6,hED,tb_,A_7,NXl,Z7O,r_P,C_6,b7P,DH6,wZK,obc,D7,wX,ShO,B4O,Sr,W56,mN7,JtP,aac,E2O,ytl,zs6,YhP,Wc,G9P,K5O,T4X,qhD,pc7,VrD,n2P,ubG,sTj,g2P,ODc,jTD,QTl,XcQ,HDl,aT,m5,F5G,Jt,laD,MrP,v2K,dNl,iDD,IaX,Pi6,$NP,k9G,faG,hsP,trK,Bc,Eh,AtQ,ZDQ,N4l,bDK,rtO,Cij,yd,ct_,z9,G9,o2P,KD,DN6,wcK,S9j,WFD,mmO,T9,anP,JEj,zL_,qN,yEX,Ej_,pD,Fb,Vd,GL6,KF7,T$j,Y9D,pVQ,q96,FFP,nD,VzD,nj6,u06,jHG,sHl,gj6,sh,QHl,vjP,H3K,MzG,Umc,ui,g4,LFP, XV6,xmX,eLl,RL6,Oh,jr,dml,i3_,Qd,Xb,vc,InK,Hc,PSX,fnP,kLK,$m6,li,hL_,MN,tz6,Uh,AEP,LD,RT,N$P,Z3G,b3Q,er,rED,x2,ii,cE7,Sd7,W7O,CSP,m6P,BHl,E9j,z0P,JCl,aCP,YdP,yCl,GOj,qdK,Pc,F7P,p5P,K7P,TH6,Vj6,n9P,fD,k2,sA6,ueK,g9G,OCQ,jAD,QAO,v9X,HCX,iC7,U6K,L7G,lCO,ICl,NN,oT,h0_,tjO,cc,ACO,Da,ZCP,Pol,Za,r4,bCP,o9P,Sz,CoG,D6c,cCD,WV,CD,At,rCD,w4,fCP,NHK,Sb6,$2,mF,Wh_,mJj,bi,kOP,aH,JE,aHO,BV,Jh7,E9,BL_,E7K,yhG,YbX,zMX,zL,ye,Yj,GY6,KhX,TLP,puP,FhP,n7D,VHc,s07,K3,GL,qbK,u8j,OFK,g7c,TL,qm,j0c,XuP,v7O,p3,Q0D,F0,Ve,HF_, lHl,UJP,n3,MH_,Lh6,RMj,eM7,uS,g$,dJO,IHG,xJj,iFO,P8P,O9,jz,kYP,fHj,$JG,tHl,hMP,AhP,X0,NL6,ZF6,bFP,HV,o7l,C8j,rhQ,Mm,chG,DJP,wuc,WEP,mw7,a_P,S0P,J1_,Bo6,ENc,zgX,y1l,Y0O,G26,KEl,ToG,q0j,FE_,VtP,nNX,ez,sb7,uS6,gN7,jbX,HlK,Xx6,l__,OlQ,d$,QbP,iS,vN6,PV,Uwj,Mt6,kj,f3,xwX,ilG,dw6,I_P,qzl,k2P,f_c,tE,Zn,AE,P$K,Nm,bS,r$,hgD,C3,DwO,YpP,GkP,cV,EGK,KRK,gP,eUO,ik_,Dn,w$,oQ,T9P,qpK,Ci,FE,Qm,p0j,FRP,nw7,V1O,sN_,ufQ,gwO,OQK,QNK,X06,vwQ,HQP,jNP,xe7,iQX,dec,e6P,IeP,fej,$eO,h6c,t1O,JC,kkP,PE6,leD,B5,N9K,bQP,ZQ6,AHD, CEQ,rHG,BD,cHP,w0j,W3_,Ed,m4_,R6c,m7,Dej,a$P,JR6,Bv6,M1j,LRX,osG,Uv,aA,EUD,y7,yR6,Y5_,GiQ,zO,ztc,S5X,Tvc,V5l,GO,nUP,sdG,pK7,TO,uV7,gU7,K3O,OSP,F3j,jdc,q6,KC,QdD,vU6,XKX,Y9,l$O,pC,by_,M5P,Rtl,L3c,x4P,iSG,etX,V7,Fe,I$P,PJQ,f$7,kiP,nC,$4P,htG,t5P,ARQ,D4G,oUP,rRG,Nv6,ZSj,gH,ExG,JlK,X5,uo,Q7,Xe,ylG,Y3K,H5,cRj,LC,KPP,Ud,v5,q3_,pN6,FP_,axP,x9,dH,nxP,CJG,GvO,lo,Od,s87,fC,T8l,uUP,gx6,k9,$9,O4K,M6,B8P,j8X,Q8c,io,XNG,RA,vxc,ej,jd,H46,MQP,hC,tC,Uf_,LP_,RAD,P5,IA,eA_,U4c,xfD,bSD,i4O,dfX,IxX,PuK,AC,ZC,$fG,Al_, N8_,kvQ,SF6,WSK,mqX,aSQ,J47,BwK,ESP,y4X,zb7,YFO,N6,bo,oA,G_7,KS6,TwP,ZY,qFP,rH,p7X,CC,FSX,c5,DC,i1,VWc,E8,oB7,nS7,tf,sMX,de,Ie,uHQ,Pk,gSP,OAP,jMl,zB,We6,QMO,X7D,vS6,wH,lSG,MWP,SH,mh,a0,UqG,eb7,xqG,Jh,iAP,LS6,dq6,Rbc,ISX,PkK,fS6,k_G,Bu,hbP,OUl,Eq,re,tWP,A4c,DY,$qO,q8,ZAl,NwP,bAK,Eb,Wt,r4X,zY,Ckc,yh,Y7,Wu,c4O,DqK,w77,GY,KF,SDD,TY,qJ,Wi_,pF,m0Q,F8,Vh,aG6,JaG,hfK,nF,BQP,zCP,EhQ,sb,u8,yaP,gL,YD_,G0P,KiP,TQQ,qDD,py6,VkP,jH,FiP,nhO,sOQ,uIl,gh_,XyO,Orc,jOG,QOc,HrP,MkQ,U0_,LiO,lGP,Qh,RCO,eCO,x0K,irO,d0j,vu, IGP,Hu,l8,MJ,PCX,fGD,$0j,hCc,tk6,AaX,NQG,ZrD,brQ,Ub,LF,CCQ,ohj,raO,R0,ca6,D07,eH,x7,wyl,i8,SSl,dL,WfD,I0,Pu,mhP,fF,k7,av_,J7P,$7,hh,BVO,th,E4j,zYG,b8,o0,y7G,YSj,GTD,qSP,TVl,rL,pwK,FfK,Vc6,DLj,KfQ,sqO,u76,OHP,X_D,l6K,NP,hG; B_=function(S,W,m,a){var J;(S&119)==S&&m[z[8]]!=0&&(W=(W%m[z[8]]+m[z[8]])%m[z[8]],m[z[2]](0,1,m[z[2]](W,1,m[0])[0]));if(S+1>=20&&(S^23)>>5<2){if(m===z[75]){var B;(B=a[z[20]](z[80]))>=0?(m=z[54]+a[z[6]](0,B),a=a[z[6]](B+1)):(B=a[z[20]](z[86]))>=0&&(m=z[54]+a[z[6]](0,B),a=a[z[6]](B+3))}W[m]=a}return J}; Tj=function(S,W){if((S|56)==S){for(var m=64,a=[];++m-a[z[8]]-32;){switch(m){case 91:m=44;continue;case 123:m=65;break;case 65:m-=18;continue;case 58:m=96;continue;case 46:m=95}a[z[12]](String[z[21]](m))}var J=a}S+4&14||(zj(63,W),m=decodeURIComponent(W[z[13]](z[42])||z[16])[z[28]](z[77]),J=W[z[29]]===z[9]&&m[z[8]]>1&&!!m[1]);if((S&60)==S){m=64;for(a=[];++m-a[z[8]]-32;){switch(m){case 58:m-=14;case 91:case 92:case 93:continue;case 123:m=47;case 94:case 95:case 96:continue;case 46:m=95}a[z[12]](String[z[21]](m))}J= a}(S|1)<17&&(S-2&15)>=6&&(a=g.n(W,SPQ)||W[z[65]],m={BV:!1,Xm:z[16],J2:z[16],s:z[16]},a?(a=Gj(a),m[z[83]]=!0,m[z[59]]=a[z[11]],m[z[66]]=a[z[84]],m[z[60]]=a[z[60]],J=m):J=m);S-2&29||(zj(23,W),J=g.K6(W[z[34]],WDK));return J}; Fl=function(S,W,m){(S&83)==S&&(m=(m%W[z[8]]+W[z[8]])%W[z[8]],W[z[2]](m,1));if((S>>2&15)==1){zj(71,W);var a=W[z[18]]}if((S&90)==S){for(var J=64,B=[];++J-B[z[8]]-32;){switch(J){case 91:J=44;continue;case 123:J=65;break;case 65:J-=18;continue;case 58:J=96;continue;case 46:J=95}B[z[12]](String[z[21]](J))}a=B}(S^54)>>3==3&&(J=W[z[28]](z[16]),p6[z[79]](J,73),p6[z[64]](J,3),p6[z[79]](J,64),p6[z[64]](J,2),p6[z[47]](J,31),p6[z[79]](J,4),p6[z[47]](J,25),p6[z[64]](J,3),a=J[z[38]](z[16]));return a}; zj=function(S,W,m,a,J,B){var E;(S-4&15)==1&&(E=m(a,J,B));if((S&54)==S)for(m=(m%W[z[8]]+W[z[8]])%W[z[8]];m--;)W[z[0]](W[z[46]]());if((S|72)==S){var y=W[m],Y=y[z[20]](z[80]);Y>0?B_(24,a,y[z[6]](0,Y),y[z[6]](Y+1)):y&&(a[y]=z[16]);E=[]}(S+2&41)=S&&W[z[27]]&&(y=VP(26,W));return E}; mPX=function(S,W,m){(S&22)==S&&m[z[12]](W);if((S>>1&3)==1){W[20]!==9&&(W[17]!==-2||(((((0,W[24])(((((0,W[69])(W[30],(0,W[78])(),W[34]),((0,W[29])(W[34],W[23]),W[29])(W[74],W[26]),W[69])(W[53],(0,W[5])(),W[74]),W[79])(W[75],W[40]),W[49])(W[75]),W[29],W[75],W[33]),W[4])((((0,W[29])(W[74],W[8]),W[29])(W[75],W[7]),W[69])(W[53],(0,W[82])(),W[34]),W[28],((((0,W[29])(W[80],W[1]),W[4])((0,W[28])(W[34],W[14]),W[2],(0,W[2])(W[81],W[34]),W[37],W[76]),W[48])(W[new m(z[85])/1E3]),W[48])(W[74]),W[34],W[66]),W[79])(W[75], W[15]),W[55])(W[80],W[38]),((0,W[24])((0,W[29])(W[34],W[45]),W[69],W[53],(0,W[82])(),W[74]),W[69])(W[30],(0,W[82])(),W[34]),0))&&((((((((((0,W[79])(W[80],W[21]),W[6])(W[25],W[48]),W[79])(W[37],W[31]),W[6])(W[69],W[81]),W[63])(W[77],W[21]),W[34])(W[30],W[22]),(0,W[2])(W[31]),W[74])(W[53],W[42]),W[21])(((0,W[17])(W[3],W[79]),W[7])(W[10],W[26]),W[16220-new m(z[49])/1E3],W[39],W[74]),W[59])(W[40],W[new m(z[62])/1E3]),W[20])(W[59],(0,W[66])(W[19],W[39]),(0,W[53])((0,W[35])(W[34],W[14]),W[23],(0,W[18])(W[13], W[35]),W[18],W[57],W[80]),((0,W[2])((0,W[84])(W[13]),W[52],(0,W[83])(W[60],W[13]),W[13],W[73]),W[19])(W[57],W[47]),W[55],W[74])+(0,W[62])(W[17],(0,W[49])(),W[56]);(W[59]>-1||((((0,W[23])((0,W[76])(W[55],W[27]),W[62],W[78],(0,W[49])(),W[57]),W[84])(W[56]),W[12])(W[45],W[5]),((0,W[76])(W[13],W[72]),W[83])(W[8],W[55]),0))&&(0,W[70])((0,W[2])((0,W[23])((0,W[19])(W[55],W[66]),W[82],W[55]),W[18],(0,W[62])(W[78],(0,W[42])(),W[13]),W[56],W[new m(z[48])/1E3]),W[23],(0,W[52])(W[55],W[69]),W[62],W[17],(0,W[22])(), W[57]);(0,W[19])(W[24],W[5]);(0,W[23])((0,W[62])(W[78],(0,W[53])(),W[56]),W[52],W[5],W[29]);var a=[]}return a}; VP=function(S,W,m,a,J,B,E,y){if((S>>1&16)<3&&S-3>=19){if(!(n6(W[z[27]])||W[z[27]][z[36]](z[10])||W[z[27]][z[36]](z[57])||W[z[27]][z[36]](z[4])))throw new g.uc(z[73],W[z[27]]);var Y=g.g7(W[z[27]]);W[z[5]]=Y[z[52]];W[z[18]]=Y[z[34]]+(Y[z[18]]!=null?z[82]+Y[z[18]]:z[16]);var G=Y[z[27]];G[z[36]](z[9])?(W[z[29]]=z[9],G=G[z[6]](14)):G[z[36]](z[63])?(W[z[29]]=z[63],G=G[z[6]](13)):G[z[36]](z[61])?(G=OP(9,G,W),G=G[0]):(W[z[29]]=G,G=z[16]);var K=W[z[34]];W[z[34]]=OP(5,G);Object[z[31]](W[z[34]],QP(58,Y[z[39]][z[45]]())); Object[z[31]](W[z[34]],K);W[z[34]][z[3]]===z[25]&&(delete W[z[34]][z[3]],W[z[29]]+=z[15]);W[z[27]]=z[16];W[z[11]]=z[16];W[z[39]]&&(Y=QP(1,W));var T=[]}S<<1<26&&((S|8)&15)>=9&&(W=(W%m[z[8]]+m[z[8]])%m[z[8]],Y=m[0],m[0]=m[W],m[W]=Y,T=[W]);if(!((S^62)>>3))if(m=m===void 0?!1:m,zj(15,W),W[z[29]]!==z[9])Y=W[z[69]](),Y[z[26]](z[88],z[14]),T=Y;else{G=W[z[67]]();Y=new g.Xl(G);K=W[z[13]](z[23]);var p=decodeURIComponent(W[z[13]](z[42])||z[16])[z[28]](z[77]);if(K&&p&&p[z[8]]>1&&p[1]){G=Y[z[34]];var q=G[z[32]](/^[^.]*/, z[16]);g.v_(Y,(G[z[20]](z[70])===0?z[70]:z[71])+K+z[44]+p[1]+q);Y=new g.H_(Y[z[45]]());Y[z[26]](z[78],z[14]);T=Y}else m?(Y=W[z[69]](),Y[z[26]](z[78],z[14]),T=Y):(K=Y[z[34]][z[43]](z[68]),Y[z[34]][z[43]](z[53])?(g.v_(Y,z[72]),G=Y[z[45]]()):Y[z[34]][z[43]](z[56])?(g.v_(Y,z[33]),G=Y[z[45]]()):(Y=a6P(G),n6(Y)&&(G=Y)),Y=new g.H_(G),Y[z[26]](z[1],z[14]),K&&Y[z[26]](z[58],z[17]),T=Y)}(S+2&57)>=S&&(S+4&71)=S&&(S-2|6)=S&&(S-6^8)=S&&(S-4|37)=S&&(y=W!==null);return y}; MP=function(S,W,m,a,J,B,E,y,Y){var G;(S|9)>=4&&(S|1)<8&&(G=W(B,E,y));if(S-6<<1>=S&&(S+9^14)=9&&S>>1<23&&(y=W[z[20]](z[40],12),Y=W[z[20]](z[40],y+1),y>0&&Y>0?(m[z[29]]=W[z[6]](0,Y),W=W[z[6]](Y+1)):(m[z[29]]=W,W=z[16]),K=[W]);if((S&94)==S){y=64;for(Y=[];++y-Y[z[8]]-32;)switch(y){case 46:y=95;default:Y[z[12]](String[z[21]](y));case 94:case 95:case 96:break;case 123:y-=76;case 92:case 93:continue;case 58:y=44;case 91:}K=Y}(S+1&3)==3&&(K= m(J,B,E));return K}; d7=function(S,W){if((S|48)==S){zj(47,W);var m=W[z[5]]+(W[z[5]]?z[22]:z[74])+W[z[18]]+W[z[29]];if(Tj(34,W)){var a=[];g.ic(W[z[34]],function(E,y){E!==null&&a[z[12]](y+z[80]+E)}); m+=z[76]+a[z[38]](z[37])}var J=m}if(!(S+6>>4)){m=64;for(var B=[];++m-B[z[8]]-32;)switch(m){case 58:m=96;continue;case 91:m=44;break;case 65:m=47;continue;case 46:m=153;case 123:m-=58;default:B[z[12]](String[z[21]](m))}J=B}if((S-7^26)=S)for(m=W[z[8]];m;)W[z[12]](W[z[2]](--m,1)[0]);return J}; P_=function(S){return function(){return X_D[S].apply(this,arguments)}}; g.f6=function(S,W){return X_D[S]=W}; vXP=function(S){S=["object"==typeof globalThis&&globalThis,S,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;W=this.length))return this[S]}; f6l=function(S,W,m){S instanceof String&&(S=String(S));for(var a=S.length-1;a>=0;a--){var J=S[a];if(W.call(m,J,a,S))return{kL:a,RD:J}}return{kL:-1,RD:void 0}}; g.j$=function(S,W,m){S=S.split(".");m=m||g.OQ;for(var a;S.length&&(a=S.shift());)S.length||W===void 0?m[a]&&m[a]!==Object.prototype[a]?m=m[a]:m=m[a]={}:m[a]=W}; H9=function(S,W){var m=g.v9("CLOSURE_FLAGS");S=m&&m[S];return S!=null?S:W}; g.v9=function(S,W){S=S.split(".");W=W||g.OQ;for(var m=0;m2){var a=Array.prototype.slice.call(arguments,2);return function(){var J=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(J,a);return S.apply(W,J)}}return function(){return S.apply(W,arguments)}}; g.dN=function(S,W,m){g.dN=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?$P7:hQc;return g.dN.apply(null,arguments)}; g.IZ=function(S,W){var m=Array.prototype.slice.call(arguments,1);return function(){var a=m.slice();a.push.apply(a,arguments);return S.apply(this,a)}}; g.P9=function(){return Date.now()}; tO_=function(S){g.j$("yt.abuse.playerAttLoaderRun",S)}; fn=function(S){return S}; g.$p=function(S,W){function m(){} m.prototype=W.prototype;S.uQ=W.prototype;S.prototype=new m;S.prototype.constructor=S;S.fW=function(a,J,B){for(var E=Array(arguments.length-2),y=2;y=0;--m)m in a&&W.call(void 0,a[m],m,S)}; g.Nx=function(S,W,m){W=ZZ(S,W,m);return W<0?null:typeof S==="string"?S.charAt(W):S[W]}; ZZ=function(S,W,m){for(var a=S.length,J=typeof S==="string"?S.split(""):S,B=0;B=0;a--)if(a in J&&W.call(m,J[a],a,S))return a;return-1}; g.oZ=function(S,W){return oXl(S,W)>=0}; rGX=function(S){if(!Array.isArray(S))for(var W=S.length-1;W>=0;W--)delete S[W];S.length=0}; g.Sm=function(S,W){W=oXl(S,W);var m;(m=W>=0)&&g.c9(S,W);return m}; g.c9=function(S,W){return Array.prototype.splice.call(S,W,1).length==1}; g.WF=function(S,W){W=ZZ(S,W);W>=0&&g.c9(S,W)}; Ccl=function(S,W){var m=0;b6_(S,function(a,J){W.call(void 0,a,J,S)&&g.c9(S,J)&&m++})}; g.mX=function(S){return Array.prototype.concat.apply([],arguments)}; g.aS=function(S){var W=S.length;if(W>0){for(var m=Array(W),a=0;a>>1),Y=void 0;m?Y=W.call(void 0,S[y],y,S):Y=W(a,S[y]);Y>0?J=y+1:(B=y,E=!Y)}return E?J:-J-1}; g.qK=function(S,W){S.sort(W||Gt)}; w_Q=function(S,W){var m=Gt;g.qK(S,function(a,J){return m(W(a),W(J))})}; g.p$=function(S,W,m){if(!g.Mx(S)||!g.Mx(W)||S.length!=W.length)return!1;var a=S.length;m=m||SQQ;for(var J=0;JW?1:S0&&(W[J]=a)},S); return W}; GgQ=function(S){S=ZP(S);var W=[];g.ic(S,function(m,a){a in Object.prototype||typeof m!="undefined"&&W.push([a,":",m].join(""))}); return W}; TNK=function(S){hk(S,"od",K8P);hk(S,"opac",NK).C=!0;hk(S,"sbeos",NK).C=!0;hk(S,"prf",NK).C=!0;hk(S,"mwt",NK).C=!0;hk(S,"iogeo",NK)}; rh=function(S,W){return S.lastIndexOf(W,0)==0}; qQP=function(S,W){var m=S.length-W.length;return m>=0&&S.indexOf(W,m)==m}; g.C$=function(S){return/^[\s\xa0]*$/.test(S)}; g.cF=function(S,W){return S.indexOf(W)!=-1}; DP=function(S,W){return g.cF(S.toLowerCase(),W.toLowerCase())}; g.W$=function(S,W){var m=0;S=wh(String(S)).split(".");W=wh(String(W)).split(".");for(var a=Math.max(S.length,W.length),J=0;m==0&&JW?1:0}; g.mW=function(){var S=g.OQ.navigator;return S&&(S=S.userAgent)?S:""}; ER=function(S){if(!ah&&!Jx||!B$)return!1;for(var W=0;W0:!1}; Yk=function(){return yW()?!1:zC("Opera")}; p9c=function(){return yW()?!1:zC("Trident")||zC("MSIE")}; F8O=function(){return yW()?ER("Microsoft Edge"):zC("Edg/")}; GC=function(){return zC("Firefox")||zC("FxiOS")}; TC=function(){return zC("Safari")&&!(Ka()||(yW()?0:zC("Coast"))||Yk()||(yW()?0:zC("Edge"))||F8O()||(yW()?ER("Opera"):zC("OPR"))||GC()||zC("Silk")||zC("Android"))}; Ka=function(){return yW()?ER("Chromium"):(zC("Chrome")||zC("CriOS"))&&!(yW()?0:zC("Edge"))||zC("Silk")}; V$P=function(){return zC("Android")&&!(Ka()||GC()||Yk()||zC("Silk"))}; npX=function(S){var W={};S.forEach(function(m){W[m[0]]=m[1]}); return function(m){return W[m.find(function(a){return a in W})]||""}}; sZc=function(S){var W=g.mW();if(S==="Internet Explorer"){if(p9c())if((S=/rv: *([\d\.]*)/.exec(W))&&S[1])W=S[1];else{S="";var m=/MSIE +([\d\.]+)/.exec(W);if(m&&m[1])if(W=/Trident\/(\d.\d)/.exec(W),m[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":S="8.0";break;case "5.0":S="9.0";break;case "6.0":S="10.0";break;case "7.0":S="11.0"}else S="7.0";else S=m[1];W=S}else W="";return W}var a=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");m=[];for(var J;J=a.exec(W);)m.push([J[1],J[2],J[3]||void 0]); W=npX(m);switch(S){case "Opera":if(Yk())return W(["Version","Opera"]);if(yW()?ER("Opera"):zC("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(yW()?0:zC("Edge"))return W(["Edge"]);if(F8O())return W(["Edg"]);break;case "Chromium":if(Ka())return W(["Chrome","CriOS","HeadlessChrome"])}return S==="Firefox"&&GC()||S==="Safari"&&TC()||S==="Android Browser"&&V$P()||S==="Silk"&&zC("Silk")?(W=m[2])&&W[1]||"":""}; u9O=function(S){if(yW()&&S!=="Silk"){var W=B$.brands.find(function(m){return m.brand===S}); if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=sZc(S);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])}; On6=function(){var S=null;if(!gpP)return S;try{var W=function(m){return m}; S=gpP.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(m){}return S}; pa=function(){qa===void 0&&(qa=On6());return qa}; FW=function(S){this.C=S}; VW=function(S){var W=pa();S=W?W.createScriptURL(S):S;return new FW(S)}; sR=function(S){if(S instanceof FW)return S.C;throw Error("");}; uz=function(S){this.C=S}; g.gb=function(S){if(S instanceof uz)return S.C;throw Error("");}; OR=function(S){this.LP=S}; jA=function(S){return new OR(function(W){return W.substr(0,S.length+1).toLowerCase()===S+":"})}; g.QW=function(S,W){W=W===void 0?jZP:W;a:if(W=W===void 0?jZP:W,!(S instanceof uz)){for(var m=0;m4);J++)W[kk(S[J])]||(m+="\nInner error "+a++ +": ",S[J].stack&&S[J].stack.indexOf(S[J].toString())==0||(m+=typeof S[J]==="string"?S[J]:S[J].message+"\n"),m+=P$(S[J],W));J")!=-1&&(S=S.replace(inP,">")),S.indexOf('"')!=-1&&(S=S.replace(dxP,""")),S.indexOf("'")!=-1&&(S=S.replace(IZj,"'")),S.indexOf("\x00")!=-1&&(S=S.replace(Pwc,"�")));return S}; g.ZN=function(S){return S==null?"":String(S)}; Na=function(S){for(var W=0,m=0;m>>0;return W}; bz=function(S){var W=Number(S);return W==0&&g.C$(S)?NaN:W}; fZj=function(S){return String(S).replace(/\-([a-z])/g,function(W,m){return m.toUpperCase()})}; kgj=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; $xl=function(S){return S.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,m,a){return m+a.toUpperCase()})}; hv7=function(S){var W=1;S=S.split(":");for(var m=[];W>0&&S.length;)m.push(S.shift()),W--;S.length&&m.push(S.join(":"));return m}; oh=function(){return ah||Jx?!!B$&&!!B$.platform:!1}; t$j=function(){return oh()?B$.platform==="Android":zC("Android")}; rb=function(){return zC("iPhone")&&!zC("iPod")&&!zC("iPad")}; Ca=function(){return rb()||zC("iPad")||zC("iPod")}; c$=function(){return oh()?B$.platform==="macOS":zC("Macintosh")}; ANK=function(){return oh()?B$.platform==="Windows":zC("Windows")}; DN=function(S){DN[" "](S);return S}; ZnP=function(S,W){try{return DN(S[W]),!0}catch(m){}return!1}; bnX=function(S,W){var m=NNP;return Object.prototype.hasOwnProperty.call(m,S)?m[S]:m[S]=W(S)}; g.wb=function(S){return bnX(S,function(){return g.W$(opO,S)>=0})}; g.Su=function(S,W,m){return Math.min(Math.max(S,W),m)}; g.WI=function(S,W){S%=W;return S*W<0?S+W:S}; mG=function(S,W,m){return S+m*(W-S)}; g.an=function(S,W){this.x=S!==void 0?S:0;this.y=W!==void 0?W:0}; J8=function(S,W){return S==W?!0:S&&W?S.x==W.x&&S.y==W.y:!1}; g.BI=function(S,W){this.width=S;this.height=W}; g.EN=function(S,W){return S==W?!0:S&&W?S.width==W.width&&S.height==W.height:!1}; zd=function(S){return S.width*S.height}; Yg=function(S,W){this.C=S===yK&&W||""}; Gd=function(S){if(S instanceof lz)return S;S=String(S).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Ma(S)}; CwO=function(S){return rNc(S)}; rNc=function(S){var W=Gd("");return Ma(S.map(function(m){return UR(Gd(m))}).join(UR(W).toString()))}; WXl=function(S){var W;if(!cNj.test("div"))throw Error("");if(DxD.indexOf("DIV")!==-1)throw Error("");var m="":(S=CwO(W.map(function(a){return a instanceof lz?a:Gd(String(a))})),m+=">"+S.toString()+""); return Ma(m)}; w9P=function(S){for(var W="",m=Object.keys(S),a=0;a2&&yk7(J,E,a,2);return E}; yk7=function(S,W,m,a){function J(y){y&&W.appendChild(typeof y==="string"?S.createTextNode(y):y)} for(;a0)J(B);else{a:{if(B&&typeof B.length=="number"){if(g.Ln(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.V3(E?g.aS(B):B,J)}}}; g.HI=function(S){return XO(document,S)}; XO=function(S,W){W=String(W);S.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return S.createElement(W)}; g.lD=function(S){return document.createTextNode(String(S))}; g.M1=function(S,W){S.appendChild(W)}; g.UN=function(S){for(var W;W=S.firstChild;)S.removeChild(W)}; LX=function(S,W,m){S.insertBefore(W,S.childNodes[m]||null)}; g.eu=function(S){return S&&S.parentNode?S.parentNode.removeChild(S):null}; g.xg=function(S,W){if(!S||!W)return!1;if(S.contains&&W.nodeType==1)return S==W||S.contains(W);if(typeof S.compareDocumentPosition!="undefined")return S==W||!!(S.compareDocumentPosition(W)&16);for(;W&&S!=W;)W=W.parentNode;return W==S}; q1=function(S){return S.nodeType==9?S:S.ownerDocument||S.document}; g.iD=function(S,W){if("textContent"in S)S.textContent=W;else if(S.nodeType==3)S.data=String(W);else if(S.firstChild&&S.firstChild.nodeType==3){for(;S.lastChild!=S.firstChild;)S.removeChild(S.lastChild);S.firstChild.data=String(W)}else g.UN(S),S.appendChild(q1(S).createTextNode(String(W)))}; dY=function(S){return S.tagName=="A"&&S.hasAttribute("href")||S.tagName=="INPUT"||S.tagName=="TEXTAREA"||S.tagName=="SELECT"||S.tagName=="BUTTON"?!S.disabled&&(!S.hasAttribute("tabindex")||YCP(S)):S.hasAttribute("tabindex")&&YCP(S)}; YCP=function(S){S=S.tabIndex;return typeof S==="number"&&S>=0&&S<32768}; PI=function(S,W,m){if(!W&&!m)return null;var a=W?String(W).toUpperCase():null;return In(S,function(J){return(!a||J.nodeName==a)&&(!m||typeof J.className==="string"&&g.oZ(J.className.split(/\s+/),m))},!0)}; In=function(S,W,m){S&&!m&&(S=S.parentNode);for(m=0;S;){if(W(S))return S;S=S.parentNode;m++}return null}; Td=function(S){this.C=S||g.OQ.document||document}; GtP=function(){this.C=this.bL=null}; fX=function(){}; $g=function(){if(!kg())throw Error();}; kg=function(){return!(!t8||!t8.performance)}; KX_=function(S){return g.ju?"webkit"+S:S.toLowerCase()}; A8=function(S){return function(){return S}}; g.Zt=function(){}; ThG=function(S){var W=W||0;return function(){return S.apply(this,Array.prototype.slice.call(arguments,0,W))}}; N1=function(S){var W=!1,m;return function(){W||(m=S(),W=!0);return m}}; bD=function(S){var W=S;return function(){if(W){var m=W;W=null;m()}}}; on=function(S,W,m){var a=0;return function(J){g.OQ.clearTimeout(a);var B=arguments;a=g.OQ.setTimeout(function(){S.apply(m,B)},W)}}; rY=function(S,W,m,a){this.top=S;this.right=W;this.bottom=m;this.left=a}; CX=function(S){return S.right-S.left}; cI=function(S,W){return S==W?!0:S&&W?S.top==W.top&&S.right==W.right&&S.bottom==W.bottom&&S.left==W.left:!1}; Dt=function(S,W,m){W instanceof g.an?(S.left+=W.x,S.right+=W.x,S.top+=W.y,S.bottom+=W.y):(S.left+=W,S.right+=W,typeof m==="number"&&(S.top+=m,S.bottom+=m));return S}; g.wY=function(S,W,m,a){this.left=S;this.top=W;this.width=m;this.height=a}; Ss=function(S,W){return S==W?!0:S&&W?S.left==W.left&&S.width==W.width&&S.top==W.top&&S.height==W.height:!1}; g.mg=function(S,W,m){if(typeof W==="string")(W=Wr(S,W))&&(S.style[W]=m);else for(var a in W){m=S;var J=W[a],B=Wr(m,a);B&&(m.style[B]=J)}}; Wr=function(S,W){var m=qC7[W];if(!m){var a=fZj(W);m=a;S.style[a]===void 0&&(a=(g.ju?"Webkit":af?"Moz":null)+$xl(a),S.style[a]!==void 0&&(m=a));qC7[W]=m}return m}; g.Jb=function(S,W){var m=S.style[fZj(W)];return typeof m!=="undefined"?m:S.style[Wr(S,W)]||""}; Br=function(S,W){var m=q1(S);return m.defaultView&&m.defaultView.getComputedStyle&&(S=m.defaultView.getComputedStyle(S,null))?S[W]||S.getPropertyValue(W)||"":""}; z6=function(S,W){return Br(S,W)||(S.currentStyle?S.currentStyle[W]:null)||S.style&&S.style[W]}; g.Yr=function(S,W,m){if(W instanceof g.an){var a=W.x;W=W.y}else a=W,W=m;S.style.left=yE(a,!1);S.style.top=yE(W,!1)}; pFG=function(S){return new g.an(S.offsetLeft,S.offsetTop)}; G6=function(S){try{return S.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}}; FXX=function(S){var W=q1(S),m=z6(S,"position"),a=m=="fixed"||m=="absolute";for(S=S.parentNode;S&&S!=W;S=S.parentNode)if(S.nodeType==11&&S.host&&(S=S.host),m=z6(S,"position"),a=a&&m=="static"&&S!=W.documentElement&&S!=W.body,!a&&(S.scrollWidth>S.clientWidth||S.scrollHeight>S.clientHeight||m=="fixed"||m=="absolute"||m=="relative"))return S;return null}; g.Kh=function(S){var W=q1(S),m=new g.an(0,0);if(S==(W?q1(W):document).documentElement)return m;S=G6(S);W=pX(W);W=z_6(W.C);m.x=S.left+W.x;m.y=S.top+W.y;return m}; nl6=function(S,W){var m=new g.an(0,0),a=QK(q1(S));if(!ZnP(a,"parent"))return m;do{var J=a==W?g.Kh(S):Vm6(S);m.x+=J.x;m.y+=J.y}while(a&&a!=W&&a!=a.parent&&(S=a.frameElement)&&(a=a.parent));return m}; g.T6=function(S,W){S=sSP(S);W=sSP(W);return new g.an(S.x-W.x,S.y-W.y)}; Vm6=function(S){S=G6(S);return new g.an(S.left,S.top)}; sSP=function(S){if(S.nodeType==1)return Vm6(S);S=S.changedTouches?S.changedTouches[0]:S;return new g.an(S.clientX,S.clientY)}; g.qU=function(S,W,m){if(W instanceof g.BI)m=W.height,W=W.width;else if(m==void 0)throw Error("missing height argument");S.style.width=yE(W,!0);S.style.height=yE(m,!0)}; yE=function(S,W){typeof S=="number"&&(S=(W?Math.round(S):S)+"px");return S}; g.ph=function(S){var W=uZj;if(z6(S,"display")!="none")return W(S);var m=S.style,a=m.display,J=m.visibility,B=m.position;m.visibility="hidden";m.position="absolute";m.display="inline";S=W(S);m.display=a;m.position=B;m.visibility=J;return S}; uZj=function(S){var W=S.offsetWidth,m=S.offsetHeight,a=g.ju&&!W&&!m;return(W===void 0||a)&&S.getBoundingClientRect?(S=G6(S),new g.BI(S.right-S.left,S.bottom-S.top)):new g.BI(W,m)}; g.F$=function(S,W){S.style.display=W?"":"none"}; VE=function(S){return S?S.passive&&gll()?S:S.capture||!1:!1}; nh=function(S,W,m,a){return typeof S.addEventListener==="function"?(S.addEventListener(W,m,VE(a)),!0):!1}; sM=function(S){if(S.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[S.visibilityState||S.webkitVisibilityState||S.mozVisibilityState||""])!=null?W:0}; O$P=function(){}; u4=function(S){try{return!!S&&S.location.href!=null&&ZnP(S,"foo")}catch(W){return!1}}; jS_=function(S){for(var W=S;S&&S!=S.parent;)S=S.parent,u4(S)&&(W=S);return W}; QSc=function(){return(ah||Jx)&&B$?B$.mobile:!gp()&&(zC("iPod")||zC("iPhone")||zC("Android")||zC("IEMobile"))}; gp=function(){return(ah||Jx)&&B$?!B$.mobile&&(zC("iPad")||zC("Android")||zC("Silk")):zC("iPad")||zC("Android")&&!zC("Mobile")||zC("Silk")}; XF6=function(S){var W,m;return(m=(W=/https?:\/\/[^\/]+/.exec(S))==null?void 0:W[0])!=null?m:""}; MmK=function(S){S=S||OM();for(var W=new vl7(g.OQ.location.href,!1),m=null,a=S.length-1,J=a;J>=0;--J){var B=S[J];!m&&H$l.test(B.url)&&(m=B);if(B.url&&!B.C){W=B;break}}J=null;B=S.length&&S[a].url;W.depth!==0&&B&&(J=S[a]);return new lPK(W,J,m)}; OM=function(){var S=g.OQ,W=[],m=null;do{var a=S;if(u4(a)){var J=a.location.href;m=a.document&&a.document.referrer||null}else J=m,m=null;W.push(new vl7(J||""));try{S=a.parent}catch(B){S=null}}while(S&&a!==S);a=0;for(S=W.length-1;a<=S;++a)W[a].depth=S-a;a=g.OQ;if(a.location&&a.location.ancestorOrigins&&a.location.ancestorOrigins.length===W.length-1)for(S=1;SW&&(W=m.length);return 3997-W-S.B.length-1}; l4=function(S,W){this.C=S;this.depth=W}; i$D=function(){function S(y,Y){return y==null?Y:y} var W=OM(),m=Math.max(W.length-1,0),a=MmK(W);W=a.C;var J=a.N,B=a.B,E=[];B&&E.push(new l4([B.url,B.C?2:0],S(B.depth,1)));J&&J!=B&&E.push(new l4([J.url,2],0));W.url&&W!=B&&E.push(new l4([W.url,0],S(W.depth,m)));a=g.MU(E,function(y,Y){return E.slice(0,E.length-Y)}); !W.url||(B||J)&&W!=B||(J=XF6(W.url))&&a.push([new l4([J,1],S(W.depth,m))]);a.push([]);return g.MU(a,function(y){return xK6(m,y)})}; xK6=function(S,W){g.UM(W,function(J){return J.depth>=0}); var m=Lh(W,function(J,B){return Math.max(J,B.depth)},-1),a=W87(m+2); a[0]=S;g.V3(W,function(J){return a[J.depth+1]=J.C}); return a}; dKj=function(){var S=S===void 0?i$D():S;return S.map(function(W){return Hr(W)})}; Rf=function(S){S.r46=!0;return S}; fPQ=function(){var S=IPX("IFRAME"),W={};g.V3(PHP(),function(m){S.sandbox&&S.sandbox.supports&&S.sandbox.supports(m)&&(W[m]=!0)}); return W}; IPX=function(S,W){W=W===void 0?document:W;return W.createElement(String(S).toLowerCase())}; ktO=function(S){var W=!1;W=W===void 0?!1:W;t8.google_image_requests||(t8.google_image_requests=[]);var m=IPX("IMG",t8.document);W&&(m.attributionSrc="");m.src=S;t8.google_image_requests.push(m)}; es=function(S){var W="IU";if(S.IU&&S.hasOwnProperty(W))return S.IU;var m=new S;S.IU=m;S.hasOwnProperty(W);return m}; xr=function(){this.N=new O$P;this.C=kg()?new $g:new fX}; $KX=function(){i4();var S=t8.document;return!!(S&&S.body&&S.body.getBoundingClientRect&&typeof t8.setInterval==="function"&&typeof t8.clearInterval==="function"&&typeof t8.setTimeout==="function"&&typeof t8.clearTimeout==="function")}; h_c=function(){i4();return dKj()}; tmQ=function(){}; i4=function(){var S=es(tmQ);if(!S.C){if(!t8)throw Error("Context has not been set and window is undefined.");S.C=es(xr)}return S.C}; dp=function(){throw Error("Invalid UTF8");}; AkQ=function(S,W){W=String.fromCharCode.apply(null,W);return S==null?W:S+W}; olP=function(S){var W=!1;W=W===void 0?!1:W;if(Z$G){if(W&&(Nh6?!S.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(S)))throw Error("Found an unpaired surrogate");S=(b$K||(b$K=new TextEncoder)).encode(S)}else{for(var m=0,a=new Uint8Array(3*S.length),J=0;J>6|192;else{if(B>=55296&&B<=57343){if(B<=56319&&J=56320&&E<=57343){B=(B-55296)*1024+ E-56320+65536;a[m++]=B>>18|240;a[m++]=B>>12&63|128;a[m++]=B>>6&63|128;a[m++]=B&63|128;continue}else J--}if(W)throw Error("Found an unpaired surrogate");B=65533}a[m++]=B>>12|224;a[m++]=B>>6&63|128}a[m++]=B&63|128}}S=m===a.length?a:a.subarray(0,m)}return S}; If=function(S){g.OQ.setTimeout(function(){throw S;},0)}; rkP=function(S){return Array.prototype.map.call(S,function(W){W=W.toString(16);return W.length>1?W:"0"+W}).join("")}; CHl=function(S){for(var W=[],m=0;m>6|192:((J&64512)==55296&&a+1>18|240,W[m++]=J>>12&63|128):W[m++]=J>>12|224,W[m++]=J>>6&63|128),W[m++]=J&63|128)}return W}; g.fh=function(S,W){W===void 0&&(W=0);ckP();W=DKP[W];for(var m=Array(Math.floor(S.length/3)),a=W[64]||"",J=0,B=0;J>2];E=W[(E&3)<<4|y>>4];y=W[(y&15)<<2|Y>>6];Y=W[Y&63];m[B++]=""+G+E+y+Y}G=0;Y=a;switch(S.length-J){case 2:G=S[J+1],Y=W[(G&15)<<2]||a;case 1:S=S[J],m[B]=""+W[S>>2]+W[(S&3)<<4|G>>4]+Y+a}return m.join("")}; g.kr=function(S,W,m){if(wF_&&!W)S=g.OQ.btoa(S);else{for(var a=[],J=0,B=0;B255){var y=Error("go/unicode-to-byte-error");if(m)throw y;a[J++]=E&255;E>>=8}a[J++]=E}S=g.fh(a,W)}return S}; WW7=function(S){var W=[];SR6(S,function(m){W.push(m)}); return W}; $r=function(S){var W=S.length,m=W*3/4;m%3?m=Math.floor(m):g.cF("=.",S[W-1])&&(m=g.cF("=.",S[W-2])?m-2:m-1);var a=new Uint8Array(m),J=0;SR6(S,function(B){a[J++]=B}); return J!==m?a.subarray(0,J):a}; SR6=function(S,W){function m(Y){for(;a>4);E!=64&&(W(B<<4&240|E>>2),y!=64&&W(E<<6&192|y))}}; ckP=function(){if(!tb){tb={};for(var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var a=S.concat(W[m].split(""));DKP[m]=a;for(var J=0;J=W||(a[S]=m+1,S=Error(),UxP(S,"incident"),If(S))}}; wp=function(){return typeof BigInt==="function"}; SZ=function(S,W,m){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(m===void 0?0:m)&&Symbol.for&&S?Symbol.for(S):S!=null?Symbol(S):Symbol():W}; aj=function(S,W){W3||ms in S||KWO(S,TbP);S[ms]|=W}; JT=function(S,W){W3||ms in S||KWO(S,TbP);S[ms]=W}; EL=function(S,W){return W===void 0?S.C!==B3&&!!(2&(S.x6[ms]|0)):!!(2&W)&&S.C!==B3}; qR7=function(S,W){if(S!=null)if(typeof S==="string")S=S?new Ab(S,Zc):NU();else if(S.constructor!==Ab)if(YRP&&S!=null&&S instanceof Uint8Array)S=S.length?new Ab(new Uint8Array(S),Zc):NU();else{if(!W)throw Error();S=void 0}return S}; zM=function(S,W){if(typeof W!=="number"||W<0||W>=S.length)throw Error();}; p$O=function(S,W,m){var a=W&128?0:-1,J=S.length,B;if(B=!!J)B=S[J-1],B=B!=null&&typeof B==="object"&&B.constructor===Object;var E=J+(B?-1:0);for(W=W&128?1:0;WW.length)return!1;if(S.lengthJ)return!1;if(a>>0;q$=W;pe=(S-W)/4294967296>>>0}; up=function(S){if(S<0){ne(0-S);var W=g.R(sL(q$,pe));S=W.next().value;W=W.next().value;q$=S>>>0;pe=W>>>0}else ne(S)}; jZ=function(S,W){var m=W*4294967296+(S>>>0);return Number.isSafeInteger(m)?m:OL(S,W)}; QR=function(S,W){var m=W&2147483648;m&&(S=~S+1>>>0,W=~W>>>0,S==0&&(W=W+1>>>0));S=jZ(S,W);return typeof S==="number"?m?-S:S:m?"-"+S:S}; v3=function(S,W){return wp()?TM(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(W))<>>=0;S>>>=0;if(W<=2097151)var m=""+(4294967296*W+S);else wp()?m=""+(BigInt(W)<>>24|W<<8)&16777215,W=W>>16&65535,S=(S&16777215)+m*6777216+W*6710656,m+=W*8147497,W*=2,S>=1E7&&(m+=S/1E7>>>0,S%=1E7),m>=1E7&&(W+=m/1E7>>>0,m%=1E7),m=W+sh_(m)+sh_(S));return m}; sh_=function(S){S=String(S);return"0000000".slice(S.length)+S}; Xz=function(S,W){W&2147483648?wp()?S=""+(BigInt(W|0)<>>0)):(W=g.R(sL(S,W)),S=W.next().value,W=W.next().value,S="-"+OL(S,W)):S=OL(S,W);return S}; H3=function(S){if(S.length<16)up(Number(S));else if(wp())S=BigInt(S),q$=Number(S&BigInt(4294967295))>>>0,pe=Number(S>>BigInt(32)&BigInt(4294967295));else{var W=+(S[0]==="-");pe=q$=0;for(var m=S.length,a=0+W,J=(m-W)%6+W;J<=m;a=J,J+=6)a=Number(S.slice(a,J)),pe*=1E6,q$=q$*1E6+a,q$>=4294967296&&(pe+=Math.trunc(q$/4294967296),pe>>>=0,q$>>>=0);W&&(W=g.R(sL(q$,pe)),S=W.next().value,W=W.next().value,q$=S,pe=W)}}; sL=function(S,W){W=~W;S?S=~S+1:W+=1;return[S,W]}; lp=function(S){return Array.prototype.slice.call(S)}; M$=function(S){if(S!=null&&typeof S!=="number")throw Error("Value of float/double field must be a number, found "+typeof S+": "+S);return S}; uW7=function(S){return S.displayName||S.name||"unknown type name"}; UL=function(S){if(S!=null&&typeof S!=="boolean")throw Error("Expected boolean but got "+lw(S)+": "+S);return S}; Rj=function(S){switch(typeof S){case "bigint":return!0;case "number":return Le(S);case "string":return gkQ.test(S);default:return!1}}; Oa6=function(S){if(typeof S!=="number")throw cr("int32");if(!Le(S))throw cr("int32");return S|0}; eZ=function(S){return S==null?S:Oa6(S)}; xM=function(S){if(S==null)return S;if(typeof S==="string"&&S)S=+S;else if(typeof S!=="number")return;return Le(S)?S|0:void 0}; ip=function(S){if(S==null)return S;if(typeof S==="string"&&S)S=+S;else if(typeof S!=="number")return;return Le(S)?S>>>0:void 0}; X$X=function(S){var W=void 0;W!=null||(W=dc?1024:0);if(!Rj(S))throw cr("int64");var m=typeof S;switch(W){case 512:switch(m){case "string":return Ij(S);case "bigint":return String(P3(64,S));default:return fe(S)}case 1024:switch(m){case "string":return jhQ(S);case "bigint":return TM(P3(64,S));default:return QhP(S)}case 0:switch(m){case "string":return Ij(S);case "bigint":return TM(P3(64,S));default:return tT(S)}default:return H$(W,"Unknown format requested type for int64")}}; AT=function(S){return S==null?S:X$X(S)}; vkP=function(S){var W=S.length;if(S[0]==="-"?W<20||W===20&&S<="-9223372036854775808":W<19||W===19&&S<="9223372036854775807")return S;H3(S);return Xz(q$,pe)}; tT=function(S){Rj(S);S=ZO(S);N$(S)||(up(S),S=QR(q$,pe));return S}; fe=function(S){Rj(S);S=ZO(S);N$(S)?S=String(S):(up(S),S=Xz(q$,pe));return S}; Ij=function(S){Rj(S);var W=ZO(Number(S));if(N$(W))return String(W);W=S.indexOf(".");W!==-1&&(S=S.substring(0,W));return vkP(S)}; jhQ=function(S){var W=ZO(Number(S));if(N$(W))return TM(W);W=S.indexOf(".");W!==-1&&(S=S.substring(0,W));return wp()?TM(P3(64,BigInt(S))):TM(vkP(S))}; QhP=function(S){return N$(S)?TM(tT(S)):TM(fe(S))}; Hac=function(S){if(S==null)return S;if(typeof S==="bigint")return bp(S)?S=Number(S):(S=P3(64,S),S=bp(S)?Number(S):String(S)),S;if(Rj(S))return typeof S==="number"?tT(S):Ij(S)}; oj=function(S){var W=typeof S;if(S==null)return S;if(W==="bigint")return TM(P3(64,S));if(Rj(S))return W==="string"?jhQ(S):QhP(S)}; lNc=function(S){if(S==null)return S;var W=typeof S;if(W==="bigint")return String(P3(64,S));if(Rj(S)){if(W==="string")return Ij(S);if(W==="number")return tT(S)}}; Ual=function(S){if(S==null)return S;var W=typeof S;if(W==="bigint")return String(MAQ(64,S));if(Rj(S)){if(W==="string")return Rj(S),W=ZO(Number(S)),N$(W)&&W>=0?S=String(W):(W=S.indexOf("."),W!==-1&&(S=S.substring(0,W)),S[0]==="-"?W=!1:(W=S.length,W=W<20?!0:W===20&&S<="18446744073709551615"),W||(H3(S),S=OL(q$,pe))),S;if(W==="number")return Rj(S),S=ZO(S),S>=0&&N$(S)||(up(S),S=jZ(q$,pe)),S}}; LWX=function(S){if(S==null||typeof S=="string"||S instanceof Ab)return S}; RNj=function(S){if(typeof S!=="string")throw Error();return S}; rc=function(S){if(S!=null&&typeof S!=="string")throw Error();return S}; Ce=function(S){return S==null||typeof S==="string"?S:void 0}; c3=function(S,W){if(!(S instanceof W))throw Error("Expected instanceof "+uW7(W)+" but got "+(S&&uW7(S.constructor)));return S}; eN6=function(S,W,m){if(S!=null&&S[DO]===wc)return S;if(Array.isArray(S)){var a=S[ms]|0;m=a|m&32|m&2;m!==a&&JT(S,m);return new W(S)}}; SU=function(S){return S}; var VO7=function(S){return JGc[z[7]](this,8,S)}; m9=function(S){var W=fn(W2);return W?S[W]:void 0}; ao=function(){}; JL=function(S,W){for(var m in S)!isNaN(m)&&W(S,+m,S[m])}; xaG=function(S){var W=new ao;JL(S,function(m,a,J){W[a]=lp(J)}); W.Cf=S.Cf;return W}; da6=function(S,W){W<100||Dc(ia7,1)}; Ey=function(S,W,m,a){var J=a!==void 0;a=!!a;var B=fn(W2),E;!J&&W3&&B&&(E=S[B])&&JL(E,da6);B=[];var y=S.length;E=4294967295;var Y=!1,G=!!(W&64),K=G?W&128?0:-1:void 0;if(!(W&1)){var T=y&&S[y-1];T!=null&&typeof T==="object"&&T.constructor===Object?(y--,E=y):T=void 0;if(G&&!(W&128)&&!J){Y=!0;var p;E=((p=B2)!=null?p:SU)(E-K,K,S,T,void 0)+K}}W=void 0;for(p=0;p=E){var F=p-K,O=void 0;((O=W)!=null?O:W={})[F]=q}else B[p]=q}if(T)for(var X in T)y=T[X],y!= null&&(y=m(y,a))!=null&&(p=+X,q=void 0,G&&!Number.isNaN(p)&&(q=p+K)0?void 0:S===0?$a7||($a7=[0,void 0]):[-S,void 0];case "string":return[0,S];case "object":return S}}; Yi=function(S,W){return tAK(S,W[0],W[1])}; GZ=function(S,W,m){return tAK(S,W,m,2048)}; tAK=function(S,W,m,a){a=a===void 0?0:a;if(S==null){var J=32;m?(S=[m],J|=128):S=[];W&&(J=J&-16760833|(W&1023)<<14)}else{if(!Array.isArray(S))throw Error("narr");J=S[ms]|0;if(AxO&&1&J)throw Error("rfarr");2048&J&&!(2&J)&&Za7();if(J&256)throw Error("farr");if(J&64)return(J|a)!==J&&JT(S,J|a),S;if(m&&(J|=128,m!==S[0]))throw Error("mid");a:{m=S;J|=64;var B=m.length;if(B){var E=B-1,y=m[E];if(y!=null&&typeof y==="object"&&y.constructor===Object){W=J&128?0:-1;E-=W;if(E>=1024)throw Error("pvtlmt");for(var Y in y)B= +Y,B1024)throw Error("spvt");J=J&-16760833|(Y&1023)<<14}}}JT(S,J|64|a);return S}; Za7=function(){if(AxO)throw Error("carr");Dc(Nbj,5)}; baD=function(S,W){if(typeof S!=="object")return S;if(Array.isArray(S)){var m=S[ms]|0;S.length===0&&m&1?S=void 0:m&2||(!W||4096&m||16&m?S=KW(S,m,!1,W&&!(m&16)):(aj(S,34),m&4&&Object.freeze(S)));return S}if(S!=null&&S[DO]===wc)return W=S.x6,m=W[ms]|0,EL(S,m)?S:TZ(S,W,m)?qI(S,W):KW(W,m);if(S instanceof Ab)return S}; qI=function(S,W,m){S=new S.constructor(W);m&&(S.C=B3);S.N=B3;return S}; KW=function(S,W,m,a){a!=null||(a=!!(34&W));S=Ey(S,W,baD,a);a=32;m&&(a|=2);W=W&16769217|a;JT(S,W);return S}; okX=function(S){var W=S.x6,m=W[ms]|0;return EL(S,m)?TZ(S,W,m)?qI(S,W,!0):new S.constructor(KW(W,m,!1)):S}; pW=function(S){if(S.C!==B3)return!1;var W=S.x6;W=KW(W,W[ms]|0);aj(W,2048);S.x6=W;S.C=void 0;S.N=void 0;return!0}; FP=function(S){if(!pW(S)&&EL(S,S.x6[ms]|0))throw Error();}; VF=function(S,W){W===void 0&&(W=S[ms]|0);W&32&&!(W&4096)&&JT(S,W|4096)}; TZ=function(S,W,m){return m&2?!0:m&32&&!(m&4096)?(JT(W,m|2),S.C=B3,!0):!1}; sy=function(S,W,m,a,J){Object.isExtensible(S);W=nW(S.x6,W,m,J);if(W!==null||a&&S.N!==B3)return W}; nW=function(S,W,m,a){if(W===-1)return null;var J=W+(m?0:-1),B=S.length-1;if(!(B<1+(m?0:-1))){if(J>=B){var E=S[B];if(E!=null&&typeof E==="object"&&E.constructor===Object){m=E[W];var y=!0}else if(J===B)m=E;else return}else m=S[J];if(a&&m!=null){a=a(m);if(a==null)return a;if(!Object.is(a,m))return y?E[W]=a:S[J]=a,a}return m}}; gs=function(S,W,m,a){FP(S);var J=S.x6;ul(J,J[ms]|0,W,m,a);return S}; ul=function(S,W,m,a,J){var B=m+(J?0:-1),E=S.length-1;if(E>=1+(J?0:-1)&&B>=E){var y=S[E];if(y!=null&&typeof y==="object"&&y.constructor===Object)return y[m]=a,W}if(B<=E)return S[B]=a,W;if(a!==void 0){var Y;E=((Y=W)!=null?Y:W=S[ms]|0)>>14&1023||536870912;m>=E?a!=null&&(B={},S[E+(J?0:-1)]=(B[m]=a,B)):S[B]=a}return W}; v2=function(S,W,m,a,J){var B=S.x6,E=B[ms]|0;a=EL(S,E)?1:a;J=!!J||a===3;a===2&&pW(S)&&(B=S.x6,E=B[ms]|0);S=Oy(B,W);var y=S===jU?7:S[ms]|0,Y=QF(y,E);var G=4&Y?!1:!0;if(G){4&Y&&(S=lp(S),y=0,Y=XP(Y,E),E=ul(B,E,W,S));for(var K=0,T=0;K32)for(a|=(y&127)>>4,J=3;J<32&&y&128;J+=7)y=B[E++],a|=(y&127)<>>0,a>>>0);throw Error();}; nI=function(S,W){S.C=W;if(W>S.B)throw Error();}; uW=function(S){var W=S.N,m=S.C,a=W[m++],J=a&127;if(a&128&&(a=W[m++],J|=(a&127)<<7,a&128&&(a=W[m++],J|=(a&127)<<14,a&128&&(a=W[m++],J|=(a&127)<<21,a&128&&(a=W[m++],J|=a<<28,a&128&&W[m++]&128&&W[m++]&128&&W[m++]&128&&W[m++]&128&&W[m++]&128)))))throw Error();nI(S,m);return J}; gA=function(S){var W=S.N,m=S.C,a=W[m+0],J=W[m+1],B=W[m+2];W=W[m+3];nI(S,S.C+4);return(a<<0|J<<8|B<<16|W<<24)>>>0}; Ol=function(S){var W=gA(S);S=gA(S);return jZ(W,S)}; jq=function(S){var W=gA(S);S=gA(S);return TM(wp()?BigInt.asUintN(64,(BigInt(S>>>0)<>>0)):OL(W,S))}; Qu=function(S){var W=gA(S),m=gA(S);S=(m>>31)*2+1;var a=m>>>20&2047;W=4294967296*(m&1048575)+W;return a==2047?W?NaN:S*Infinity:a==0?S*4.9E-324*W:S*Math.pow(2,a-1075)*(W+4503599627370496)}; Xp=function(S){for(var W=0,m=S.C,a=m+10,J=S.N;mS.B)throw Error();S.C=W;return m}; Egj=function(S,W){if(W==0)return NU();var m=J8P(S,W);S.cF&&S.X?m=S.N.subarray(m,m+W):(S=S.N,W=m+W,m=m===W?new Uint8Array(0):BYP?S.slice(m,W):new Uint8Array(S.subarray(m,W)));return m.length==0?NU():new Ab(m,Zc)}; He=function(S,W,m,a){if(ve.length){var J=ve.pop();J.init(S,W,m,a);S=J}else S=new El(S,W,m,a);this.C=S;this.j=this.C.C;this.N=this.B=-1;z2Q(this,a)}; z2Q=function(S,W){W=W===void 0?{}:W;S.VC=W.VC===void 0?!1:W.VC}; y8P=function(S,W,m,a){if(lW.length){var J=lW.pop();z2Q(J,a);J.C.init(S,W,m,a);return J}return new He(S,W,m,a)}; YN_=function(S){var W=S.C;if(W.C==W.B)return!1;S.j=S.C.C;var m=uW(S.C)>>>0;W=m>>>3;m&=7;if(!(m>=0&&m<=5))throw Error();if(W<1)throw Error();S.B=W;S.N=m;return!0}; MR=function(S){switch(S.N){case 0:S.N!=0?MR(S):Xp(S.C);break;case 1:S=S.C;nI(S,S.C+8);break;case 2:if(S.N!=2)MR(S);else{var W=uW(S.C)>>>0;S=S.C;nI(S,S.C+W)}break;case 5:S=S.C;nI(S,S.C+4);break;case 3:W=S.B;do{if(!YN_(S))throw Error();if(S.N==4){if(S.B!=W)throw Error();break}MR(S)}while(1);break;default:throw Error();}}; Ul=function(S,W,m){var a=S.C.B,J=uW(S.C)>>>0;J=S.C.C+J;var B=J-a;B<=0&&(S.C.B=J,m(W,S,void 0,void 0,void 0),B=J-S.C.C);if(B)throw Error();S.C.C=J;S.C.B=a}; eq=function(S){var W=uW(S.C)>>>0;S=S.C;var m=J8P(S,W);S=S.N;if(Gd_){var a=S,J;(J=LI)||(J=LI=new TextDecoder("utf-8",{fatal:!0}));W=m+W;a=m===0&&W===a.length?a:a.subarray(m,W);try{var B=J.decode(a)}catch(G){if(RF===void 0){try{J.decode(new Uint8Array([128]))}catch(K){}try{J.decode(new Uint8Array([97])),RF=!0}catch(K){RF=!1}}!RF&&(LI=void 0);throw G;}}else{B=m;W=B+W;m=[];for(var E=null,y,Y;B=W?dp():(Y=S[B++],y<194||(Y&192)!==128?(B--,dp()):m.push((y&31)<<6|Y&63)): y<240?B>=W-1?dp():(Y=S[B++],(Y&192)!==128||y===224&&Y<160||y===237&&Y>=160||((J=S[B++])&192)!==128?(B--,dp()):m.push((y&15)<<12|(Y&63)<<6|J&63)):y<=244?B>=W-2?dp():(Y=S[B++],(Y&192)!==128||(y<<28)+(Y-144)>>30!==0||((J=S[B++])&192)!==128||((a=S[B++])&192)!==128?(B--,dp()):(y=(y&7)<<18|(Y&63)<<12|(J&63)<<6|a&63,y-=65536,m.push((y>>10&1023)+55296,(y&1023)+56320))):dp(),m.length>=8192&&(E=AkQ(E,m),m.length=0);B=AkQ(E,m)}return B}; KG6=function(S){var W=uW(S.C)>>>0;return Egj(S.C,W)}; TYG=function(S,W,m){var a=uW(S.C)>>>0;for(a=S.C.C+a;S.C.C>>0;this.C=W>>>0}; FGc=function(S){if(!S)return pIX||(pIX=new iW(0,0));if(!/^\d+$/.test(S))return null;H3(S);return new iW(q$,pe)}; dA=function(S,W){this.N=S>>>0;this.C=W>>>0}; ngl=function(S){if(!S)return Vuj||(Vuj=new dA(0,0));if(!/^-?\d+$/.test(S))return null;H3(S);return new dA(q$,pe)}; IF=function(){this.C=[]}; Pe=function(S,W,m){for(;m>0||W>127;)S.C.push(W&127|128),W=(W>>>7|m<<25)>>>0,m>>>=7;S.C.push(W)}; fI=function(S,W){for(;W>127;)S.C.push(W&127|128),W>>>=7;S.C.push(W)}; snK=function(S,W){if(W>=0)fI(S,W);else{for(var m=0;m<9;m++)S.C.push(W&127|128),W>>=7;S.C.push(1)}}; kV=function(S,W){S.C.push(W>>>0&255);S.C.push(W>>>8&255);S.C.push(W>>>16&255);S.C.push(W>>>24&255)}; uOX=function(){this.B=[];this.N=0;this.C=new IF}; $V=function(S,W){W.length!==0&&(S.B.push(W),S.N+=W.length)}; gg6=function(S,W){hi(S,W,2);W=S.C.end();$V(S,W);W.push(S.N);return W}; OXX=function(S,W){var m=W.pop();for(m=S.N+S.C.length()-m;m>127;)W.push(m&127|128),m>>>=7,S.N++;W.push(m);S.N++}; hi=function(S,W,m){fI(S.C,W*8+m)}; jn7=function(S,W,m){if(m!=null){switch(typeof m){case "string":FGc(m)}hi(S,W,1);switch(typeof m){case "number":S=S.C;ne(m);kV(S,q$);kV(S,pe);break;case "bigint":m=BigInt.asUintN(64,m);m=new iW(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));S=S.C;W=m.C;kV(S,m.N);kV(S,W);break;default:m=FGc(m),S=S.C,W=m.C,kV(S,m.N),kV(S,W)}}}; ti=function(S,W,m){hi(S,W,2);fI(S.C,m.length);$V(S,S.C.end());$V(S,m)}; Ai=function(){function S(){throw Error();} Object.setPrototypeOf(S,S.prototype);return S}; Z0=function(S,W,m){this.x6=GZ(S,W,m)}; Qnl=function(S,W){if(W==null||W=="")return new S;W=JSON.parse(W);if(!Array.isArray(W))throw Error("dnarr");aj(W,32);return new S(W)}; bW=function(S,W,m){this.y9=S;this.wF=W;S=fn(NR);this.C=!!S&&m===S||!1}; oF=function(S,W){var m=m===void 0?NR:m;return new bW(S,W,m)}; vgP=function(S,W,m,a,J){W=XI_(W,a);W!=null&&(m=gg6(S,m),J(W,S),OXX(S,m))}; ce=function(S,W,m,a){var J=a[S];if(J)return J;J={};J.oW=a;J.Sd=hN6(a[0]);var B=a[1],E=1;B&&B.constructor===Object&&(J.extensions=B,B=a[++E],typeof B==="function"&&(J.Yg=!0,rA!=null||(rA=B),CI!=null||(CI=a[E+1]),B=a[E+=2]));for(var y={};B&&Array.isArray(B)&&B.length&&typeof B[0]==="number"&&B[0]>0;){for(var Y=0;Y>BigInt(32)));Pe(S.C,m.N,m.C);break;default:m=ngl(W),Pe(S.C,m.N,m.C)}}}; qs=function(S,W,m){W=xM(W);W!=null&&W!=null&&(hi(S,m,0),snK(S.C,W))}; ft_=function(S,W,m){W=W==null||typeof W==="boolean"?W:typeof W==="number"?!!W:void 0;W!=null&&(hi(S,m,0),S.C.C.push(W?1:0))}; kdO=function(S,W,m){W=Ce(W);W!=null&&ti(S,m,olP(W))}; $1K=function(S,W,m,a,J){W=XI_(W,a);W!=null&&(m=gg6(S,m),J(W,S),OXX(S,m))}; tu6=function(S,W,m){if(m!==xV)throw Error();this.typeName=S;this.C=W;if(m!==xV)throw Error();h2D.set(S,this)}; ZXl=function(){var S=p2;this.C=A8O;this.isRepeated=0;this.N=hL;this.defaultValue=void 0;this.B=S.messageId!=null?yR:void 0}; NYX=function(S,W){return function(m,a){var J={Ke:!0};a&&Object.assign(J,a);m=y8P(m,void 0,void 0,J);try{var B=new S,E=B.x6;Wj(W)(E,m);var y=B}finally{m.free()}return y}}; bX6=function(S){return function(){var W=new uOX;iXD(this.x6,W,ce(Bj,J0,Eg,S));$V(W,W.C.end());for(var m=new Uint8Array(W.N),a=W.B,J=a.length,B=0,E=0;E-1)return W.apply(null,g.x(m));try{return S.C=S.B.C.now(),W.apply(null,g.x(m))}finally{S.j+=S.B.C.now()-S.C,S.C=-1,S.N+=1}}}; r86=function(S,W){this.N=S;this.B=W;this.C=new ogX(S)}; CD7=function(){this.C={}}; SMD=function(){this.B=void 0;this.N=this.V=0;this.X=-1;this.PU=new kl;hk(this.PU,"mv",c8D).C=!0;hk(this.PU,"omid",NK);hk(this.PU,"epoh",NK).C=!0;hk(this.PU,"epph",NK).C=!0;hk(this.PU,"umt",NK).C=!0;hk(this.PU,"phel",NK).C=!0;hk(this.PU,"phell",NK).C=!0;hk(this.PU,"oseid",D16).C=!0;var S=this.PU;S.C.sloi||(S.C.sloi=new PF);S.C.sloi.C=!0;hk(this.PU,"mm",sg);hk(this.PU,"ovms",wI6).C=!0;hk(this.PU,"xdi",NK).C=!0;hk(this.PU,"amp",NK).C=!0;hk(this.PU,"prf",NK).C=!0;hk(this.PU,"gtx",NK).C=!0;hk(this.PU, "mvp_lv",NK).C=!0;hk(this.PU,"ssmol",NK).C=!0;hk(this.PU,"fmd",NK).C=!0;hk(this.PU,"gen204simple",NK);this.C=new r86(i4(),this.PU);this.j=!1;this.flags=new CD7}; u3=function(){return es(SMD)}; WgX=function(S,W,m,a){if(Math.random()<(a||S.C))try{if(m instanceof QE)var J=m;else J=new QE,js(m,function(E,y){var Y=J,G=Y.j++;E=vr(y,E);Y.C.push(G);Y.N[G]=E}); var B=J.XD(S.N,"pagead2.googlesyndication.com","/pagead/gen_204?id="+W+"&");B&&(i4(),ktO(B))}catch(E){}}; mUP=function(S,W,m){m=m===void 0?{}:m;this.error=S;this.meta=m;this.context=W.context;this.msg=W.message||"";this.id=W.id||"jserror"}; acK=function(){var S=S===void 0?g.OQ:S;return(S=S.performance)&&S.now&&S.timing?Math.floor(S.now()+S.timing.navigationStart):g.P9()}; Jbc=function(){var S=S===void 0?g.OQ:S;return(S=S.performance)&&S.now?S.now():null}; Bp6=function(S,W,m){this.label=S;this.type=W;this.value=m;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Og=function(){var S=window;this.events=[];this.N=S||g.OQ;var W=null;S&&(S.google_js_reporting_queue=S.google_js_reporting_queue||[],this.events=S.google_js_reporting_queue,W=S.google_measure_js_timing);this.C=gx()||(W!=null?W:Math.random()<1)}; ErG=function(S){S&&jx&&gx()&&(jx.clearMarks("goog_"+S.label+"_"+S.uniqueId+"_start"),jx.clearMarks("goog_"+S.label+"_"+S.uniqueId+"_end"))}; Qv=function(S,W,m,a,J,B,E){var y="";S&&(y+=S+":");m&&(y+="//",W&&(y+=W+"@"),y+=m,a&&(y+=":"+a));J&&(y+=J);B&&(y+="?"+B);E&&(y+="#"+E);return y}; g.Xd=function(S){return S.match(z4P)}; ybP=function(S){return S?decodeURI(S):S}; g.vj=function(S){return ybP(g.Xd(S)[3]||null)}; Hj=function(S){return ybP(g.Xd(S)[5]||null)}; g.YMc=function(S){S=g.Xd(S);return Qv(S[1],S[2],S[3],S[4])}; l3=function(S){S=g.Xd(S);return Qv(null,null,null,null,S[5],S[6],S[7])}; G6X=function(S){var W=S.indexOf("#");return W<0?S:S.slice(0,W)}; Ms=function(S,W){if(S){S=S.split("&");for(var m=0;m=0){var B=S[m].substring(0,a);J=S[m].substring(a+1)}else B=S[m];W(B,J?tx(J):"")}}}; Ug=function(S,W){if(!W)return S;var m=S.indexOf("#");m<0&&(m=S.length);var a=S.indexOf("?");if(a<0||a>m){a=m;var J=""}else J=S.substring(a+1,m);S=[S.slice(0,a),J,S.slice(m)];m=S[1];S[1]=W?m?m+"&"+W:W:m;return S[0]+(S[1]?"?"+S[1]:"")+S[2]}; L2=function(S,W,m){if(Array.isArray(W))for(var a=0;a=0&&Wm)J=m;a+=W.length+1;return tx(S.slice(a,J!==-1?J:0))}; Pj=function(S,W){for(var m=S.search(dx),a=0,J,B=[];(J=i3(S,a,W,m))>=0;)B.push(S.substring(a,J)),a=Math.min(S.indexOf("&",J)+1||m,m);B.push(S.slice(a));return B.join("").replace(qMQ,"$1")}; prO=function(S,W,m){return xJ(Pj(S,W),W,m)}; Fgj=function(){var S=f2;this.C=kJ;this.fb="jserror";this.SN=!0;this.yX=null;this.N=this.eA;this.SD=S===void 0?null:S}; VsK=function(S,W,m){var a=$J;return n2(u3().C.C,function(){try{if(a.SD&&a.SD.C){var J=a.SD.start(S.toString(),3);var B=W();a.SD.end(J)}else B=W()}catch(y){var E=a.SN;try{ErG(J),E=a.N(S,new h0(t0(y)),void 0,m)}catch(Y){a.eA(217,Y)}if(!E)throw y;}return B})()}; A0=function(S,W,m,a){return n2(u3().C.C,function(){var J=g.VH.apply(0,arguments);return VsK(S,function(){return W.apply(m,J)},a)})}; t0=function(S){var W=S.toString();S.name&&W.indexOf(S.name)==-1&&(W+=": "+S.name);S.message&&W.indexOf(S.message)==-1&&(W+=": "+S.message);if(S.stack)a:{S=S.stack;var m=W;try{S.indexOf(m)==-1&&(S=m+"\n"+S);for(var a;S!=a;)a=S,S=S.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");W=S.replace(/\n */g,"\n");break a}catch(J){W=m;break a}W=void 0}return W}; h0=function(S){mUP.call(this,Error(S),{message:S})}; nrK=function(){t8&&typeof t8.google_measure_js_timing!="undefined"&&(t8.google_measure_js_timing||f2.disable())}; sfX=function(S){$J.yX=function(W){g.V3(S,function(m){m(W)})}}; u$7=function(S,W){return VsK(S,W)}; ZK=function(S,W){return A0(S,W)}; Ns=function(S,W,m,a){$J.eA(S,W,m,a)}; b3=function(){return Date.now()-grK}; Oh7=function(){var S=u3().B,W=ov>=0?b3()-ov:-1,m=rx?b3()-C2:-1,a=cj>=0?b3()-cj:-1;if(S==947190542)return 100;if(S==79463069)return 200;S=[2E3,4E3];var J=[250,500,1E3];Ns(637,Error(),.001);var B=W;m!=-1&&m1500&&a<4E3?500:E}; DK=function(S,W,m){var a=new rY(0,0,0,0);this.time=S;this.volume=null;this.B=W;this.C=a;this.N=m}; wx=function(S,W,m,a,J,B,E,y){this.j=S;this.Z=W;this.B=m;this.V=a;this.C=J;this.X=B;this.N=E;this.S=y}; Qf6=function(S){var W=S!==S.top,m=S.top===jS_(S),a=-1,J=0;if(W&&m&&S.top.mraid){a=3;var B=S.top.mraid}else a=(B=S.mraid)?W?m?2:1:0:-1;B&&(B.IS_GMA_SDK||(J=2),JNc(jfP,function(E){return typeof B[E]==="function"})||(J=1)); return{nR:B,compatibility:J,vB6:a}}; XrK=function(){var S=window.document;return S&&typeof S.elementFromPoint==="function"}; vrD=function(S,W,m){if(S&&W!==null&&W!=W.top){if(!W.top)return new g.BI(-12245933,-12245933);W=W.top}try{return(m===void 0?0:m)?(new g.BI(W.innerWidth,W.innerHeight)).round():Bhl(W||window).round()}catch(a){return new g.BI(-12245933,-12245933)}}; Sp=function(S,W,m){try{if(S){if(!W.top)return new rY(-12245933,-12245933,-12245933,-12245933);W=W.top}var a=vrD(S,W,m),J=a.height,B=a.width;if(B===-12245933)return new rY(B,B,B,B);var E=pX(W.document);var y=z_6(E.C);var Y=y.x,G=y.y;return new rY(G,Y+B,G+J,Y)}catch(K){return new rY(-12245933,-12245933,-12245933,-12245933)}}; Wv=function(S,W){W=Math.pow(10,W);return Math.floor(S*W)/W}; HhP=function(S){return new rY(S.top,S.right,S.bottom,S.left)}; lc7=function(S){var W=S.top||0,m=S.left||0;return new rY(W,m+(S.width||0),W+(S.height||0),m)}; mI=function(S){return S!=null&&S>=0&&S<=1}; MsK=function(){var S=g.mW();return S?ap("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(W){return DP(S,W)})||DP(S,"OMI/")&&!DP(S,"XiaoMi/")?!0:DP(S,"Presto")&&DP(S,"Linux")&&!DP(S,"X11")&&!DP(S,"Android")&&!DP(S,"Mobi"):!1}; UUj=function(){this.B=!u4(t8.top);this.isMobileDevice=gp()||QSc();var S=OM();this.domain=S.length>0&&S[S.length-1]!=null&&S[S.length-1].url!=null?g.vj(S[S.length-1].url)||"":"";this.C=new rY(0,0,0,0);this.j=new g.BI(0,0);this.X=new g.BI(0,0);this.Z=new rY(0,0,0,0);this.frameOffset=new g.an(0,0);this.V=0;this.S=!1;this.N=!(!t8||!Qf6(t8).nR);this.update(t8)}; LgP=function(S,W){W&&W.screen&&(S.j=new g.BI(W.screen.width,W.screen.height))}; R4P=function(S,W){a:{var m=S.C?new g.BI(CX(S.C),S.C.getHeight()):new g.BI(0,0);W=W===void 0?t8:W;W!==null&&W!=W.top&&(W=W.top);var a=0,J=0;try{var B=W.document,E=B.body,y=B.documentElement;if(B.compatMode=="CSS1Compat"&&y.scrollHeight)a=y.scrollHeight!=m.height?y.scrollHeight:y.offsetHeight,J=y.scrollWidth!=m.width?y.scrollWidth:y.offsetWidth;else{var Y=y.scrollHeight,G=y.scrollWidth,K=y.offsetHeight,T=y.offsetWidth;y.clientHeight!=K&&(Y=E.scrollHeight,G=E.scrollWidth,K=E.offsetHeight,T=E.offsetWidth); Y>m.height?Y>K?(a=Y,J=G):(a=K,J=T):Y0||S.S)return!0;S=i4().N.isVisible();var W=sM(Bv)===0;return S||W}; JB=function(){return es(UUj)}; zA=function(S){this.B=S;this.N=0;this.C=null}; yJ=function(S,W,m){this.B=S;this.O9=m===void 0?"na":m;this.X=[];this.isInitialized=!1;this.j=new DK(-1,!0,this);this.C=this;this.S=W;this.N2=this.bY=!1;this.Pn="uk";this.Xn=!1;this.V=!0}; Yq=function(S,W){g.oZ(S.X,W)||(S.X.push(W),W.l0(S.C),W.gg(S.j),W.IN()&&(S.bY=!0))}; var yGK=function(){return d7[z[7]](this,1)}; e4P=function(S){S=S.C;S.FH();S.zI();var W=JB();W.Z=Sp(!1,S.B,W.isMobileDevice);R4P(JB(),S.B);S.j.C=S.YI()}; xUP=function(S){S.bY=S.X.length?ap(S.X,function(W){return W.IN()}):!1}; ihK=function(S){var W=g.aS(S.X);g.V3(W,function(m){m.gg(S.j)})}; GA=function(S){var W=g.aS(S.X);g.V3(W,function(m){m.l0(S.C)}); S.C!=S||ihK(S)}; KL=function(S,W,m,a){this.element=S;this.C=new rY(0,0,0,0);this.B=null;this.V=new rY(0,0,0,0);this.N=W;this.PU=m;this.Xn=a;this.q2=!1;this.timestamp=-1;this.bY=new wx(W.j,this.element,this.C,new rY(0,0,0,0),0,0,b3(),0);this.X=void 0}; dU7=function(S,W){return S.X?new rY(Math.max(W.top+S.X.top,W.top),Math.min(W.left+S.X.right,W.right),Math.min(W.top+S.X.bottom,W.bottom),Math.max(W.left+S.X.left,W.left)):W.clone()}; TA=function(S){this.X=!1;this.C=S;this.j=function(){}}; IcG=function(S,W,m){this.B=m===void 0?0:m;this.N=S;this.C=W==null?"":W}; P4Q=function(S){switch(Math.trunc(S.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; fc6=function(S,W){return S.BW.B?!1:S.NW.N?!1:typeof S.Ctypeof W.C?!1:S.C0?a[m]-a[m-1]:a[m]})}; Hv=function(){this.N=new g3;this.O9=this.Hn=0;this.zN=new u9;this.vn=this.Z=-1;this.d2=1E3;this.uY=new g3([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Pn=this.q2=-1}; l9=function(S,W){return rbP(S.N,W===void 0?!0:W)}; MY=function(S,W,m,a){var J=J===void 0?!1:J;m=A0(a,m);nh(S,W,m,{capture:J})}; LL=function(S,W){W=UH(W);return W===0?0:UH(S)/W}; UH=function(S){return Math.max(S.bottom-S.top,0)*Math.max(S.right-S.left,0)}; DUG=function(S,W){if(!S||!W)return!1;for(var m=0;S!==null&&m++<100;){if(S===W)return!0;try{if(S=S.parentElement||S){var a=q1(S),J=a&&QK(a),B=J&&J.frameElement;B&&(S=B)}}catch(E){break}}return!1}; wrD=function(S,W,m){if(!S||!W)return!1;W=Dt(S.clone(),-W.left,-W.top);S=(W.left+W.right)/2;W=(W.top+W.bottom)/2;u4(window.top)&&window.top&&window.top.document&&(window=window.top);if(!XrK())return!1;S=window.document.elementFromPoint(S,W);if(!S)return!1;W=(W=(W=q1(m))&&W.defaultView&&W.defaultView.frameElement)&&DUG(W,S);var a=S===m;S=!a&&S&&In(S,function(J){return J===m}); return!(W||a||S)}; SLP=function(S,W,m,a){return JB().B?!1:CX(S)<=0||S.getHeight()<=0?!0:m&&a?u$7(208,function(){return wrD(S,W,m)}):!1}; Rp=function(S,W,m){g.A.call(this);this.position=WsD.clone();this.BB=this.xq();this.Yi=-2;this.timeCreated=Date.now();this.kp=-1;this.mV=W;this.fO=null;this.m3=!1;this.OO=null;this.opacity=-1;this.requestSource=m;this.hZ2=!1;this.uI=function(){}; this.t$=function(){}; this.Nn=new GtP;this.Nn.bL=S;this.Nn.C=S;this.DY=!1;this.C9={BN:null,vN:null};this.wI=!0;this.DB=null;this.Mv=this.GV2=!1;u3().V++;this.B4=this.y3();this.lm=-1;this.KP=null;this.hasCompleted=this.AvD=!1;this.PU=new kl;TNK(this.PU);m$D(this);this.requestSource==1?tk(this.PU,"od",1):tk(this.PU,"od",0)}; m$D=function(S){S=S.Nn.bL;var W;if(W=S&&S.getAttribute)W=/-[a-z]/.test("googleAvInapp")?!1:aO6&&S.dataset?"googleAvInapp"in S.dataset:S.hasAttribute?S.hasAttribute("data-"+kgj()):!!S.getAttribute("data-"+kgj());W&&(JB().N=!0)}; ep=function(S,W){W!=S.Mv&&(S.Mv=W,S=JB(),W?S.V++:S.V>0&&S.V--)}; JTc=function(S,W){if(S.KP){if(W.getName()===S.KP.getName())return;S.KP.dispose();S.KP=null}W=W.create(S.Nn.C,S.PU,S.IN());if(W=W!=null&&W.observe()?W:null)S.KP=W}; Bc6=function(S,W,m){if(!S.fO||S.mV==-1||W.N===-1||S.fO.N===-1)return 0;S=W.N-S.fO.N;return S>m?0:S}; EMQ=function(S,W,m){if(S.KP){S.KP.u4();var a=S.KP.bY,J=a.j,B=J.C;if(a.V!=null){var E=a.B;S.OO=new g.an(E.left-B.left,E.top-B.top)}B=S.c5()?Math.max(a.C,a.X):a.C;E={};J.volume!==null&&(E.volume=J.volume);J=S.gs(a);S.fO=a;S.L_(B,W,m,!1,E,J,a.S)}}; zqP=function(S){if(S.m3&&S.DB){var W=Ak(S.PU,"od")==1,m=JB().C,a=S.DB,J=S.KP?S.KP.getName():"ns",B=S.OO,E=new g.BI(CX(m),m.getHeight());m=S.c5();S={G1U:J,OO:B,aen:E,c5:m,Ed:S.B4.Ed,Bi2:W};if(W=a.N){W.u4();J=W.bY;B=J.j.C;var y=E=null;J.V!=null&&B&&(E=J.B,E=new g.an(E.left-B.left,E.top-B.top),y=new g.BI(B.right-B.left,B.bottom-B.top));J=m?Math.max(J.C,J.X):J.C;m={G1U:W.getName(),OO:E,aen:y,c5:m,Bi2:!1,Ed:J}}else m=null;m&&NpP(a,S,m)}}; yTX=function(S,W,m){W&&(S.uI=W);m&&(S.t$=m)}; g.xq=function(){}; g.i9=function(S){return{value:S,done:!1}}; YLP=function(){this.j=this.C=this.B=this.N=this.X=0}; GM6=function(S){var W={};var m=g.P9()-S.X;W=(W.ptlt=m,W);(m=S.N)&&(W.pnk=m);(m=S.B)&&(W.pnc=m);(m=S.j)&&(W.pnmm=m);(S=S.C)&&(W.pns=S);return W}; Ksj=function(){sC.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; d3=function(S){return mI(S.volume)&&S.volume>0}; Ip=function(S,W,m,a){m=m===void 0?!0:m;a=a===void 0?function(){return!0}:a; return function(J){var B=J[S];if(Array.isArray(B)&&a(J))return TcG(B,W,m)}}; Pv=function(S,W){return function(m){return W(m)?m[S]:void 0}}; qLP=function(S){return function(W){for(var m=0;m0?B[J-1]+1:0,a+1).reduce(function(E,y){return E+y},0)})}; p3Q=function(){this.N=this.C=""}; Fsl=function(){}; kq=function(S,W){var m={};if(S!==void 0)if(W!=null)for(var a in W){var J=W[a];a in Object.prototype||J!=null&&(m[a]=typeof J==="function"?J(S):S[J])}else g.iH(m,S);return VJ(FF(new pL,m))}; VZG=function(){var S={};this.N=(S.vs=[1,0],S.vw=[0,1],S.am=[2,2],S.a=[4,4],S.f=[8,8],S.bm=[16,16],S.b=[32,32],S.avw=[0,64],S.avs=[64,0],S.pv=[256,256],S.gdr=[0,512],S.p=[0,1024],S.r=[0,2048],S.m=[0,4096],S.um=[0,8192],S.ef=[0,16384],S.s=[0,32768],S.pmx=[0,16777216],S.mut=[33554432,33554432],S.umutb=[67108864,67108864],S.tvoff=[134217728,134217728],S);this.C={};for(var W in this.N)this.N[W][1]>0&&(this.C[W]=0);this.B=0}; $q=function(S,W){var m=S.N[W],a=m[1];S.B+=m[0];a>0&&S.C[W]==0&&(S.C[W]=1)}; nMP=function(S){var W=g.XZ(S.N),m=0,a;for(a in S.C)g.oZ(W,a)&&S.C[a]==1&&(m+=S.N[a][1],S.C[a]=2);return m}; sjD=function(S){var W=0,m;for(m in S.C){var a=S.C[m];if(a==1||a==2)W+=S.N[m][1]}return W}; hB=function(){this.C=this.N=0}; tB=function(){Hv.call(this);this.B=new u9;this.g2=this.bY=this.Xn=0;this.S=-1;this.M2=new u9;this.X=new u9;this.C=new g3;this.V=this.j=-1;this.N2=new u9;this.d2=2E3;this.s9=new hB;this.Y6=new hB;this.hX=new hB}; AB=function(S,W,m){var a=S.g2;rx||m||S.S==-1||(a+=W-S.S);return a}; uzc=function(){this.B=!1}; ZJ=function(S,W){this.B=!1;this.j=S;this.bY=W;this.X=0}; NY=function(S,W){ZJ.call(this,S,W);this.Z=[]}; gMc=function(){}; b9=function(){}; op=function(S,W,m,a){KL.call(this,S,W,m,a)}; r3=function(S,W,m){KL.call(this,null,S,W,m);this.S=S.isActive();this.Z=0}; CL=function(S){return[S.top,S.left,S.bottom,S.right]}; cv=function(S,W,m,a,J,B){B=B===void 0?new b9:B;Rp.call(this,W,m,a);this.cP=J;this.HK=0;this.G1={};this.zm=new VZG;this.DE={};this.BQ="";this.hX=null;this.IL=!1;this.C=[];this.LA=B.N();this.V=B.B();this.j=null;this.B=-1;this.O9=this.bY=void 0;this.vn=this.N2=0;this.Pn=-1;this.d2=this.Y6=!1;this.Xn=this.S=this.N=this.QI=this.vv=0;new g3;this.s9=this.g2=0;this.zN=-1;this.tp=0;this.Z=g.Zt;this.q2=[this.xq()];this.EV=2;this.wY={};this.wY.pause="p";this.wY.resume="r";this.wY.skip="s";this.wY.mute="m";this.wY.unmute= "um";this.wY.exitfullscreen="ef";this.X=null;this.uY=this.M2=!1;this.Wv=Math.floor(Date.now()/1E3-1704067200);this.Hn=0}; DJ=function(S){S.hasCompleted=!0;S.tp!=0&&(S.tp=3)}; w3=function(S){return S===void 0?S:Number(S)?Wv(S,3):0}; SK=function(S,W){return S.q2[W!=null&&WMath.max(1E4,S.B/3)?0:W);var m=S.Z(S)||{};m=m.currentTime!==void 0?m.currentTime:S.N2;var a=m-S.N2,J=0;a>=0?(S.vn+=W,S.s9+=Math.max(W-a,0),J=Math.min(a,S.vn)):S.g2+=Math.abs(a);a!=0&&(S.vn=0);S.zN==-1&&a>0&&(S.zN=cj>=0?b3()-cj:-1);S.N2=m;return J}; Qj_=function(S,W){ap(S.V,function(m){return m.j==W.j})||S.V.push(W)}; X3D=function(S){var W=QJ(S.Eo().C,1);return W4(S,W)}; W4=function(S,W,m){return W>=15E3?!0:S.Y6?(m===void 0?0:m)?!0:S.B>0?W>=S.B/2:S.Pn>0?W>=S.Pn:!1:!1}; vMD=function(S){var W=Wv(S.B4.Ed,2),m=S.zm.B,a=S.B4,J=SK(S),B=w3(J.j),E=w3(J.V),y=w3(a.volume),Y=Wv(J.Z,2),G=Wv(J.vn,2),K=Wv(a.Ed,2),T=Wv(J.q2,2),p=Wv(J.Pn,2);a=Wv(a.hp,2);var q=S.Bc().clone().round();S=S.KP&&S.KP.B?(S.KP?S.KP.B:null).clone().round():null;J=l9(J,!1);return{Ie9:W,MN:m,yw:B,M$:E,qo:y,w1:Y,CQ:G,Ed:K,cB:T,bd:p,hp:a,position:q,Z8:S,GR:J}}; lOQ=function(S,W){HeO(S.C,W,function(){return{Ie9:0,MN:void 0,yw:-1,M$:-1,qo:-1,w1:-1,CQ:-1,Ed:-1,cB:-1,bd:-1,hp:-1,position:void 0,Z8:void 0,GR:[]}}); S.C[W]=vMD(S)}; HeO=function(S,W,m){for(var a=S.length;a0?1:0;T.atos= OH(G.C);T.ssb=OH(G.uY,!1);T.amtos=rbP(G.C,!1);T.uac=S.vv;T.vpt=G.B.C;K=="nio"&&(T.nio=1,T.avms="nio");T.gmm="4";T.gdr=W4(S,G.B.C,!0)?1:0;T.efpf=S.EV;if(K=="gsv"||K=="nis")K=S.KP,K.Z>0&&(T.nnut=K.Z);T.tcm=OeP(S);T.nmt=S.g2;T.bt=S.s9;T.pst=S.zN;T.vpaid=S.bY;T.dur=S.B;T.vmtime=S.N2;T.is=S.zm.B;S.C.length>=1&&(T.i0=S.C[0].MN,T.a0=[S.C[0].qo],T.c0=[S.C[0].Ed],T.ss0=[S.C[0].hp],K=S.C[0].position,B=S.C[0].Z8,T.p0=K?CL(K):void 0,K&&B&&!cI(B,K)&&(T.cp0=CL(B)));S.C.length>=2&&(T.i1=S.C[1].MN,T.a1=JW(S.C[1].yw, S.C[1].qo,S.C[1].M$),T.c1=JW(S.C[1].w1,S.C[1].Ed,S.C[1].CQ),T.ss1=JW(S.C[1].cB,S.C[1].hp,S.C[1].bd),K=S.C[1].position,B=S.C[1].Z8,T.p1=K?CL(K):void 0,K&&B&&!cI(B,K)&&(T.cp1=CL(B)),T.mtos1=S.C[1].GR);S.C.length>=3&&(T.i2=S.C[2].MN,T.a2=JW(S.C[2].yw,S.C[2].qo,S.C[2].M$),T.c2=JW(S.C[2].w1,S.C[2].Ed,S.C[2].CQ),T.ss2=JW(S.C[2].cB,S.C[2].hp,S.C[2].bd),K=S.C[2].position,B=S.C[2].Z8,T.p2=K?CL(K):void 0,K&&B&&!cI(B,K)&&(T.cp2=CL(B)),T.mtos2=S.C[2].GR);S.C.length>=4&&(T.i3=S.C[3].MN,T.a3=JW(S.C[3].yw,S.C[3].qo, S.C[3].M$),T.c3=JW(S.C[3].w1,S.C[3].Ed,S.C[3].CQ),T.ss3=JW(S.C[3].cB,S.C[3].hp,S.C[3].bd),K=S.C[3].position,B=S.C[3].Z8,T.p3=K?CL(K):void 0,K&&B&&!cI(B,K)&&(T.cp3=CL(B)),T.mtos3=S.C[3].GR);T.cs=sjD(S.zm);W&&(T.ic=nMP(S.zm),T.dvpt=G.B.N,T.dvs=vv(G.N,.5),T.dfvs=vv(G.N,1),T.davs=vv(G.C,.5),T.dafvs=vv(G.C,1),m&&(G.B.N=0,C4P(G.N),C4P(G.C)),S.Zo()&&(T.dtos=G.Xn,T.dav=G.bY,T.dtoss=S.HK+1,m&&(G.Xn=0,G.bY=0,S.HK++)),T.dat=G.X.N,T.dft=G.N2.N,m&&(G.X.N=0,G.N2.N=0));T.ps=[y.X.width,y.X.height];T.bs=[CX(y.C), y.C.getHeight()];T.scs=[y.j.width,y.j.height];T.dom=y.domain;S.QI&&(T.vds=S.QI);if(S.V.length>0||S.LA)W=g.aS(S.V),S.LA&&W.push(S.LA),T.pings=g.MU(W,function(p){return p.toString()}); W=g.MU(g.fL(S.V,function(p){return p.V()}),function(p){return p.getId()}); cGQ(W);T.ces=W;S.N&&(T.vmer=S.N);S.S&&(T.vmmk=S.S);S.Xn&&(T.vmiec=S.Xn);T.avms=S.KP?S.KP.getName():"ns";S.KP&&g.iH(T,S.KP.Xl());a?(T.c=Wv(S.B4.Ed,2),T.ss=Wv(S.B4.hp,2)):T.tth=b3()-RqX;T.mc=Wv(G.vn,2);T.nc=Wv(G.Z,2);T.mv=w3(G.V);T.nv=w3(G.j);T.lte=Wv(S.Yi,2);a=SK(S,J);l9(G);T.qmtos=l9(a);T.qnc=Wv(a.Z,2);T.qmv=w3(a.V);T.qnv=w3(a.j);T.qas=a.j>0?1:0;T.qi=S.BQ;T.avms||(T.avms="geo");T.psm=G.s9.C;T.psv=G.s9.getValue();T.psfv=G.Y6.getValue();T.psa=G.hX.getValue();Y=GgQ(Y.PU);Y.length&&(T.veid=Y);S.X&&g.iH(T, GM6(S.X));T.avas=S.h7();T.vs=S.RR();T.co=eq6(S);T.tm=G.Hn;T.tu=G.O9;return T}; MZ6=function(S,W){if(g.oZ(x$_,W))return!0;var m=S.G1[W];return m!==void 0?(S.G1[W]=!0,!m):!1}; eq6=function(S){var W=S.Hn.toString(10).padStart(2,"0");W=""+S.Wv+W;S.Hn<99&&S.Hn++;return W}; d$D=function(){this.C={};var S=QK();B4(this,S,document);var W=ieP();try{if("1"==W){for(var m=S.parent;m!=S.top;m=m.parent)B4(this,m,m.document);B4(this,S.top,S.top.document)}}catch(a){}}; ieP=function(){var S=document.documentElement;try{if(!u4(QK().top))return"2";var W=[],m=QK(S.ownerDocument);for(S=m;S!=m.top;S=S.parent)if(S.frameElement)W.push(S.frameElement);else break;return W&&W.length!=0?"1":"0"}catch(a){return"2"}}; B4=function(S,W,m){MY(m,"mousedown",function(){return IOP(S)},301); MY(W,"scroll",function(){return Pp6(S)},302); MY(m,"touchmove",function(){return fOX(S)},303); MY(m,"mousemove",function(){return kMQ(S)},304); MY(m,"keydown",function(){return $$X(S)},305)}; IOP=function(S){g.ic(S.C,function(W){W.B>1E5||++W.B})}; Pp6=function(S){g.ic(S.C,function(W){W.C>1E5||++W.C})}; fOX=function(S){g.ic(S.C,function(W){W.C>1E5||++W.C})}; $$X=function(S){g.ic(S.C,function(W){W.N>1E5||++W.N})}; kMQ=function(S){g.ic(S.C,function(W){W.j>1E5||++W.j})}; hql=function(){this.C=[];this.N=[]}; EX=function(S,W){return g.Nx(S.C,function(m){return m.BQ==W})}; tZQ=function(S,W){return W?g.Nx(S.C,function(m){return m.Nn.bL==W}):null}; AT_=function(S,W){return g.Nx(S.N,function(m){return m.zw()==2&&m.BQ==W})}; yz=function(){var S=zf;return S.C.length==0?S.N:S.N.length==0?S.C:g.mX(S.N,S.C)}; ZeP=function(S,W){S=W.zw()==1?S.C:S.N;var m=ZZ(S,function(a){return a==W}); return m!=-1?(S.splice(m,1),W.KP&&W.KP.unobserve(),W.dispose(),!0):!1}; NcQ=function(S){var W=zf;if(ZeP(W,S)){switch(S.zw()){case 0:var m=function(){return null}; case 2:m=function(){return AT_(W,S.BQ)}; break;case 1:m=function(){return EX(W,S.BQ)}}for(var a=m();a;a=m())ZeP(W,a)}}; be7=function(S){var W=zf;S=g.fL(S,function(m){return!tZQ(W,m.Nn.bL)}); W.C.push.apply(W.C,g.x(S))}; oMl=function(S){var W=[];g.V3(S,function(m){ap(zf.C,function(a){return a.Nn.bL===m.Nn.bL&&a.BQ===m.BQ})||(zf.C.push(m),W.push(m))})}; Yd=function(){this.C=this.N=null}; rTP=function(S,W){function m(a,J){W(a,J)} if(S.N==null)return!1;S.C=g.Nx(S.N,function(a){return a!=null&&a.hq()}); S.C&&(S.C.init(m)?e4P(S.C.C):W(S.C.C.E0(),S.C));return S.C!=null}; Gf=function(S){S=CpQ(S);TA.call(this,S.length?S[S.length-1]:new yJ(t8,0));this.B=S;this.N=null}; CpQ=function(S){if(!S.length)return[];S=(0,g.fL)(S,function(m){return m!=null&&m.ZU()}); for(var W=1;Wm.time?W:m},S[0])}; pV=function(S){S=S===void 0?t8:S;TA.call(this,new yJ(S,2))}; FA=function(){var S=Sy7();yJ.call(this,t8.top,S,"geo")}; Sy7=function(){u3();var S=JB();return S.B||S.N?0:2}; W9_=function(){}; Vz=function(){this.done=!1;this.C={Fx:0,wu:0,OrY:0,r$:0,iI:-1,Oz:0,VV:0,Zj:0,cE2:0};this.X=null;this.V=!1;this.B=null;this.Z=0;this.N=new zA(this)}; sX=function(){var S=nV;S.V||(S.V=!0,mIj(S,function(){return S.j.apply(S,g.x(g.VH.apply(0,arguments)))}),S.j())}; as_=function(){es(W9_);var S=es(Yd);S.C!=null&&S.C.C?e4P(S.C.C):JB().update(t8)}; uX=function(S,W,m){if(!S.done&&(S.N.cancel(),W.length!=0)){S.B=null;try{as_();var a=b3();u3().X=a;if(es(Yd).C!=null)for(var J=0;J=0?b3()-ov:-1,y=b3();J.C.iI==-1&&(E=y);var Y=JB(),G=u3(),K=ZP(G.PU),T=yz();try{if(T.length>0){var p=Y.C;p&&(K.bs=[CX(p),p.getHeight()]);var q=Y.X;q&&(K.ps=[q.width,q.height]);t8.screen&&(K.scs=[t8.screen.width,t8.screen.height])}else K.url=encodeURIComponent(t8.location.href.substring(0,512)),B.referrer&&(K.referrer=encodeURIComponent(B.referrer.substring(0,512))); K.tt=E;K.pt=ov;K.bin=G.N;t8.google_osd_load_pub_page_exp!==void 0&&(K.olpp=t8.google_osd_load_pub_page_exp);K.deb=[1,J.C.Fx,J.C.wu,J.C.r$,J.C.iI,0,J.N.N,J.C.Oz,J.C.VV,J.C.Zj,J.C.cE2,-1].join(";");K.tvt=Bs6(J,y);Y.N&&(K.inapp=1);if(t8!==null&&t8!=t8.top){T.length>0&&(K.iframe_loc=encodeURIComponent(t8.location.href.substring(0,512)));var F=Y.Z;K.is=[CX(F),F.getHeight()]}}catch(O){K.error=1}nV.B=K}p=g.em(nV.B);q=u3().C;Ak(q.B,"prf")==1?(F=new Vv,J=q.C,B=0,J.C>-1&&(B=J.B.C.now()-J.C),F=Ro(F,1,M$(J.j+ B),0),J=q.C,F=Ro(F,5,eZ(J.C>-1?J.N+1:J.N),0),F=Ro(F,2,AT(q.N.C.B()),"0"),F=Ro(F,3,AT(q.N.C.N()),"0"),q=Ro(F,4,AT(q.N.C.C()),"0"),F={},q=(F.pf=g.fh(q.B()),F)):q={};g.iH(p,q);g.iH(W,a,m,p,S())}])}; yL6=function(){var S=zuc||t8;if(!S)return"";var W=[];if(!S.location||!S.location.href)return"";W.push("url="+encodeURIComponent(S.location.href.substring(0,512)));S.document&&S.document.referrer&&W.push("referrer="+encodeURIComponent(S.document.referrer.substring(0,512)));return W.join("&")}; gM=function(){var S="youtube.player.web_20251216_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251216_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251216_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251216_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),W;if(((W=S)==null?void 0:W.length)==2)return S[1];S="youtube.player.web_20251216_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var m;return((m=S)==null?void 0:m.length)==3?"20"+S[1]+S[2]:null}; YyP=function(){return"av.default_js".includes("ima_html5_sdk")?{PY:"ima",XR:null}:"av.default_js".includes("ima_native_sdk")?{PY:"nima",XR:null}:"av.default_js".includes("admob-native-video-javascript")?{PY:"an",XR:null}:"youtube.player.web_20251216_21_RC00".includes("cast_js_sdk")?{PY:"cast",XR:gM()}:"youtube.player.web_20251216_21_RC00".includes("youtube.player.web")?{PY:"yw",XR:gM()}:"youtube.player.web_20251216_21_RC00".includes("outstream_web_client")?{PY:"out",XR:gM()}:"youtube.player.web_20251216_21_RC00".includes("drx_rewarded_web")? {PY:"r",XR:gM()}:"youtube.player.web_20251216_21_RC00".includes("gam_native_web_video")?{PY:"n",XR:gM()}:"youtube.player.web_20251216_21_RC00".includes("admob_interstitial_video")?{PY:"int",XR:gM()}:{PY:"j",XR:null}}; Qz=function(S,W){var m={sv:"968"};OX!==null&&(m.v=OX);m.cb=GZc;m.nas=zf.C.length;m.msg=S;W!==void 0&&(S=K97(W))&&(m.e=jK[S]);return m}; XA=function(S){return rh(S,"custom_metric_viewable")}; K97=function(S){var W=XA(S)?"custom_metric_viewable":S.toLowerCase();return MK(md,function(m){return m==W})}; Ts6=function(){this.C=void 0;this.N=!1;this.B=0;this.j=-1;this.X="tos"}; F9O=function(S){try{var W=S.split(",");return W.length>g.XZ(qyP).length?null:Lh(W,function(m,a){a=a.toLowerCase().split("=");if(a.length!=2||p2P[a[0]]===void 0||!p2P[a[0]](a[1]))throw Error("Entry ("+a[0]+", "+a[1]+") is invalid.");m[a[0]]=a[1];return m},{})}catch(m){return null}}; VUD=function(S,W){if(S.C==void 0)return 0;switch(S.X){case "mtos":return S.N?XF(W.C,S.C):XF(W.N,S.C);case "tos":return S.N?QJ(W.C,S.C):QJ(W.N,S.C)}return 0}; v4=function(S,W,m,a){ZJ.call(this,W,a);this.Z=S;this.S=m}; H4=function(){}; lX=function(S){ZJ.call(this,"fully_viewable_audible_half_duration_impression",S)}; MO=function(S){this.C=S}; UX=function(S,W){ZJ.call(this,S,W)}; dM=function(S){NY.call(this,"measurable_impression",S)}; IC=function(){MO.apply(this,arguments)}; P4=function(S,W,m){r3.call(this,S,W,m)}; fV=function(S){S=S===void 0?t8:S;TA.call(this,new yJ(S,2))}; kd=function(S,W,m){r3.call(this,S,W,m)}; $d=function(S){S=S===void 0?t8:S;TA.call(this,new yJ(S,2))}; hW=function(){yJ.call(this,t8,2,"mraid");this.s9=0;this.vn=this.q2=!1;this.Z=null;this.N=Qf6(this.B);this.j.C=new rY(0,0,0,0);this.Hn=!1}; tW=function(S,W,m){S.D6("addEventListener",W,m)}; gi6=function(S){u3().j=!!S.D6("isViewable");tW(S,"viewableChange",ni6);S.D6("getState")==="loading"?tW(S,"ready",soj):uP7(S)}; uP7=function(S){typeof S.N.nR.AFMA_LIDAR==="string"?(S.q2=!0,OW6(S)):(S.N.compatibility=3,S.Z="nc",S.fail("w"))}; OW6=function(S){S.vn=!1;var W=Ak(u3().PU,"rmmt")==1,m=!!S.D6("isViewable");(W?!m:1)&&i4().setTimeout(ZK(524,function(){S.vn||(joG(S),Ns(540,Error()),S.Z="mt",S.fail("w"))}),500); QoQ(S);tW(S,S.N.nR.AFMA_LIDAR,X27)}; QoQ=function(S){var W=Ak(u3().PU,"sneio")==1,m=S.N.nR.AFMA_LIDAR_EXP_1!==void 0,a=S.N.nR.AFMA_LIDAR_EXP_2!==void 0;(W=W&&a)&&(S.N.nR.AFMA_LIDAR_EXP_2=!0);m&&(S.N.nR.AFMA_LIDAR_EXP_1=!W)}; joG=function(S){S.D6("removeEventListener",S.N.nR.AFMA_LIDAR,X27);S.q2=!1}; vi7=function(S,W){if(S.D6("getState")==="loading")return new g.BI(-1,-1);W=S.D6(W);if(!W)return new g.BI(-1,-1);S=parseInt(W.width,10);W=parseInt(W.height,10);return isNaN(S)||isNaN(W)?new g.BI(-1,-1):new g.BI(S,W)}; soj=function(){try{var S=es(hW);S.D6("removeEventListener","ready",soj);uP7(S)}catch(W){Ns(541,W)}}; X27=function(S,W){try{var m=es(hW);m.vn=!0;var a=S?new rY(S.y,S.x+S.width,S.y+S.height,S.x):new rY(0,0,0,0);var J=b3(),B=EH();var E=new DK(J,B,m);E.C=a;E.volume=W;m.gg(E)}catch(y){Ns(542,y)}}; ni6=function(S){var W=u3(),m=es(hW);S&&!W.j&&(W.j=!0,m.Hn=!0,m.Z&&m.fail("w",!0))}; AW=function(){this.isInitialized=!1;this.C=this.N=null;var S={};this.Z=(S.start=this.Q2X,S.firstquartile=this.d2n,S.midpoint=this.pnY,S.thirdquartile=this.eqQ,S.complete=this.U22,S.error=this.lQn,S.pause=this.A8,S.resume=this.l5,S.skip=this.Rq6,S.viewable_impression=this.FR,S.mute=this.kC,S.unmute=this.kC,S.fullscreen=this.Y9U,S.exitfullscreen=this.fQn,S.fully_viewable_audible_half_duration_impression=this.FR,S.measurable_impression=this.FR,S.abandon=this.A8,S.engagedview=this.FR,S.impression=this.FR, S.creativeview=this.FR,S.progress=this.kC,S.custom_metric_viewable=this.FR,S.bufferstart=this.A8,S.bufferfinish=this.l5,S.audio_measurable=this.FR,S.audio_audible=this.FR,S);S={};this.S=(S.overlay_resize=this.kND,S.abandon=this.dW,S.close=this.dW,S.collapse=this.dW,S.overlay_unmeasurable_impression=function(W){return aC(W,"overlay_unmeasurable_impression",EH())},S.overlay_viewable_immediate_impression=function(W){return aC(W,"overlay_viewable_immediate_impression",EH())},S.overlay_unviewable_impression= function(W){return aC(W,"overlay_unviewable_impression",EH())},S.overlay_viewable_end_of_session_impression=function(W){return aC(W,"overlay_viewable_end_of_session_impression",EH())},S); u3().N=3;HW6(this);this.B=null}; Zl=function(S,W,m,a){S=S.Y3(null,a,!0,W);S.j=m;be7([S]);return S}; ls6=function(S,W,m){aZc(W);var a=S.C;g.V3(W,function(J){var B=g.MU(J.criteria,function(E){var y=F9O(E);if(y==null)E=null;else if(E=new Ts6,y.visible!=null&&(E.C=y.visible/100),y.audible!=null&&(E.N=y.audible==1),y.time!=null){var Y=y.timetype=="mtos"?"mtos":"tos",G=qQP(y.time,"%")?"%":"ms";y=parseInt(y.time,10);G=="%"&&(y/=100);E.setTime(y,G,Y)}return E}); ap(B,function(E){return E==null})||Qj_(m,new v4(J.id,J.event,B,a))})}; MUP=function(){var S=[],W=u3();S.push(es(FA));Ak(W.PU,"mvp_lv")&&S.push(es(hW));W=[new fV,new $d];W.push(new Gf(S));W.push(new pV(t8));return W}; UI_=function(S){if(!S.isInitialized){S.isInitialized=!0;try{var W=b3(),m=u3(),a=JB();ov=W;m.B=79463069;S.N!=="o"&&(zuc=jS_(t8));if($KX()){nV.C.wu=0;nV.C.iI=b3()-W;var J=MUP(),B=es(Yd);B.N=J;rTP(B,function(){NO()})?nV.done||(JLP(),Yq(B.C.C,S),sX()):a.B?NO():sX()}else bX=!0}catch(E){throw zf.reset(),E; }}}; rM=function(S){nV.N.cancel();oC=S;nV.done=!0}; CV=function(S){if(S.N)return S.N;var W=es(Yd).C;if(W)switch(W.getName()){case "nis":S.N="n";break;case "gsv":S.N="m"}S.N||(S.N="h");return S.N}; c4=function(S,W,m){if(S.C==null)return W.QI|=4,!1;S=L9c(S.C,m,W);W.QI|=S;return S==0}; NO=function(){var S=[new pV(t8)],W=es(Yd);W.N=S;rTP(W,function(){rM("i")})?nV.done||(JLP(),sX()):rM("i")}; Ru6=function(S,W){if(!S.IL){var m=aC(S,"start",EH());m=S.cP.C(m).C;var a={id:"lidarv"};a.r=W;a.sv="968";OX!==null&&(a.v=OX);Ms(m,function(J,B){return a[J]=J=="mtos"||J=="tos"?B:encodeURIComponent(B)}); W=yL6();Ms(W,function(J,B){return a[J]=encodeURIComponent(B)}); W="//pagead2.googlesyndication.com/pagead/gen_204?"+VJ(FF(new pL,a));AbD(W);S.IL=!0}}; Dl=function(S,W,m){uX(nV,[S],!EH());lOQ(S,m);m!=4&&HeO(S.q2,m,S.xq);return aC(S,W,EH())}; HW6=function(S){Ei_(function(){var W=euX();S.N!=null&&(W.sdk=S.N);var m=es(Yd);m.C!=null&&(W.avms=m.C.getName());return W})}; xI_=function(S,W,m,a){var J=tZQ(zf,m);J!==null&&J.BQ!==W&&(S.v3(J),J=null);J||(W=S.Y3(m,b3(),!1,W),zf.N.length==0&&(u3().B=79463069),oMl([W]),J=W,J.j=CV(S),a&&(J.hX=a));return J}; iWD=function(S,W){var m=S[W];m!==void 0&&m>0&&(S[W]=Math.floor(m*1E3))}; euX=function(){var S=JB(),W={},m={},a={};return Object.assign({},(W.sv="968",W),OX!==null&&(m.v=OX,m),(a["if"]=S.B?"1":"0",a.nas=String(zf.C.length),a))}; wM=function(S){ZJ.call(this,"audio_audible",S)}; SL=function(S){NY.call(this,"audio_measurable",S)}; WM=function(){MO.apply(this,arguments)}; m4=function(){}; dIc=function(S){this.C=S}; L9c=function(S,W,m){S=S.N();if(typeof S==="function"){var a={};var J={};a=Object.assign({},OX!==null&&(a.v=OX,a),(J.sv="968",J.cb=GZc,J.e=Is7(W),J));J=aC(m,W,EH());g.iH(a,J);m.DE[W]=J;a=m.zw()==2?tsQ(a).join("&"):m.cP.C(a).C;try{return S(m.BQ,a,W),0}catch(B){return 2}}else return 1}; Is7=function(S){var W=XA(S)?"custom_metric_viewable":S;S=MK(md,function(m){return m==W}); return jK[S]}; aD=function(){AW.call(this);this.V=null;this.X=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Plj=function(S,W,m){m=m.opt_configurable_tracking_events;S.C!=null&&Array.isArray(m)&&ls6(S,m,W)}; fsP=function(S,W,m){var a=EX(zf,W);a||(a=m.opt_nativeTime||-1,a=Zl(S,W,CV(S),a),m.opt_osdId&&(a.hX=m.opt_osdId));return a}; kZP=function(S,W,m){var a=EX(zf,W);a||(a=Zl(S,W,"n",m.opt_nativeTime||-1));return a}; $IQ=function(S,W){var m=EX(zf,W);m||(m=Zl(S,W,"h",-1));return m}; huP=function(S){u3();switch(CV(S)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; ZWD=function(S,W,m,a){m=m===void 0?{}:m;var J={};g.iH(J,{opt_adElement:void 0,opt_fullscreen:void 0},m);var B=S.If(W,m);m=B?B.cP:S.aG();if(J.opt_bounds)return m.C(Qz("ol",a));if(a!==void 0)if(K97(a)!==void 0)if(bX)S=Qz("ue",a);else if(UI_(S),oC=="i")S=Qz("i",a),S["if"]=0;else if(W=S.If(W,J)){b:{oC=="i"&&(W.DY=!0);B=J.opt_fullscreen;B!==void 0&&ep(W,!!B);var E;if(B=!JB().N)(B=DP(g.mW(),"CrKey")&&!(DP(g.mW(),"CrKey")&&DP(g.mW(),"SmartSpeaker"))||DP(g.mW(),"PlayStation")||DP(g.mW(),"Roku")||MsK()||DP(g.mW(), "Xbox"))||(B=g.mW(),B=DP(B,"AppleTV")||DP(B,"Apple TV")||DP(B,"CFNetwork")||DP(B,"tvOS")),B||(B=g.mW(),B=DP(B,"sdk_google_atv_x86")||DP(B,"Android TV")),B=!B;B&&(i4(),B=sM(Bv)===0);if(E=B){switch(W.zw()){case 1:Ru6(W,"pv");break;case 2:S.lW(W)}rM("pv")}B=a.toLowerCase();if(E=!E)E=Ak(u3().PU,"ssmol")&&B==="loaded"?!1:g.oZ(tUl,B);if(E&&W.tp==0){oC!="i"&&(nV.done=!1);E=J!==void 0?J.opt_nativeTime:void 0;cj=E=typeof E==="number"?E:b3();W.m3=!0;var y=EH();W.tp=1;W.G1={};W.G1.start=!1;W.G1.firstquartile= !1;W.G1.midpoint=!1;W.G1.thirdquartile=!1;W.G1.complete=!1;W.G1.resume=!1;W.G1.pause=!1;W.G1.skip=!1;W.G1.mute=!1;W.G1.unmute=!1;W.G1.viewable_impression=!1;W.G1.measurable_impression=!1;W.G1.fully_viewable_audible_half_duration_impression=!1;W.G1.fullscreen=!1;W.G1.exitfullscreen=!1;W.HK=0;y||(W.Eo().S=E);uX(nV,[W],!y)}(E=W.wY[B])&&$q(W.zm,E);Ak(u3().PU,"fmd")||g.oZ(ALK,B)&&W.LA&&W.LA.N(W,null);switch(W.zw()){case 1:var Y=XA(B)?S.Z.custom_metric_viewable:S.Z[B];break;case 2:Y=S.S[B]}if(Y&&(a=Y.call(S, W,J,a),Ak(u3().PU,"fmd")&&g.oZ(ALK,B)&&W.LA&&W.LA.N(W,null),a!==void 0)){J=Qz(void 0,B);g.iH(J,a);a=J;break b}a=void 0}W.tp==3&&S.v3(W);S=a}else S=Qz("nf",a);else S=void 0;else bX?S=Qz("ue"):B?(S=Qz(),g.iH(S,U$O(B,!0,!1,!1))):S=Qz("nf");return typeof S==="string"?m.C():m.C(S)}; Nsj=function(S,W){W&&(S.j=W)}; bW_=function(S){var W={};return W.viewability=S.C,W.googleViewability=S.N,W}; oic=function(S,W,m){m=m===void 0?{}:m;S=ZWD(es(aD),W,m,S);return bW_(S)}; JV=function(S){var W=g.VH.apply(1,arguments).filter(Boolean).join("&");if(!W)return S;var m=S.match(/[?&]adurl=/);return m?S.slice(0,m.index+1)+W+"&"+S.slice(m.index+1):S+(S.indexOf("?")<0?"?":"&")+W}; BM=function(S,W){return W?"&"+S+"="+encodeURIComponent(W):""}; rLP=function(S){var W=S.url;S=S.IL2;this.N=W;this.j=S;this.B=(new Date).getTime()-17040672E5;this.C={};for(var m=/[?&]([^&=]+)=([^&]*)/g;S=m.exec(W);)this.C[S[1]]=S[2]}; Cl6=function(S){S=S.j;if(!S)return"";var W=BM("uap",S.platform)+BM("uapv",S.platformVersion)+BM("uafv",S.uaFullVersion)+BM("uaa",S.architecture)+BM("uam",S.model)+BM("uab",S.bitness);S.fullVersionList&&(W+="&uafvl="+encodeURIComponent(S.fullVersionList.map(function(m){return encodeURIComponent(m.brand)+";"+encodeURIComponent(m.version)}).join("|"))); S.wow64!=null&&(W+="&uaw="+Number(S.wow64));return W.slice(1)}; w2X=function(S,W,m,a,J){var B=window;var E=E===void 0?!1:E;var y;m?y=(E===void 0?0:E)?"//ep1.adtrafficquality.google/bg/"+Ax(m)+".js":"//pagead2.googlesyndication.com/bg/"+Ax(m)+".js":y="";E=E===void 0?!1:E;m=B.document;var Y={};W&&(Y._scs_=W);Y._bgu_=y;Y._bgp_=a;Y._li_="v_h.3.0.0.0";J&&(Y._upb_=J);(W=B.GoogleTyFxhY)&&typeof W.push=="function"||(W=B.GoogleTyFxhY=[]);W.push(Y);W=pX(m).createElement("SCRIPT");W.type="text/javascript";W.async=!0;S=(E===void 0?0:E)?g.KX(cLP,Ax(S)+".js"):g.KX(DI6,Ax(S)+ ".js");g.db(W,S);(B=(B.GoogleTyFxhYEET||{})[W.src])?B():m.getElementsByTagName("head")[0].appendChild(W)}; SlQ=function(){try{var S,W;return!!((S=window)==null?0:(W=S.top)==null?0:W.location.href)&&!1}catch(m){return!0}}; EO=function(S,W,m){m=m===void 0?Error():m;var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=S;W+=":";m instanceof Error?(this.message=W+m.message,this.stack=m.stack||""):(this.message=W+String(m),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; yB=function(){var S=WTl();S=S===void 0?"bevasrsg":S;return new Promise(function(W){var m=window===window.top?window:SlQ()?window:window.top,a=m[S],J;((J=a)==null?0:J.bevasrs)?W(new zu(a.bevasrs)):(a||(a={},a=(a.nqfbel=[],a),m[S]=a),a.nqfbel.push(function(B){W(new zu(B))}))})}; mR7=function(S){var W={c:S.Gw,e:S.OU,mc:S.YS,me:S.pg};S.eO&&(W.co={c:S.eO.ZC,a:S.eO.VG,s:S.eO.KY});return W}; Yv=function(S){g.A.call(this);this.wpc=S}; zu=function(S){g.A.call(this);var W=this;this.u$=S;this.B="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.N=void 0;this.nK=this.u$.p;this.j=this.ib.bind(this);this.addOnDisposeCallback(function(){return void a0P(W)})}; Ji_=function(S){var W;return g.k(function(m){if(m.C==1){if(!S.u$.wpc)throw new EO(30,"NWA");return S.C?m.return(S.C):g.P(m,S.u$.wpc(),2)}W=m.N;S.C=new Yv(W);return m.return(S.C)})}; a0P=function(S){S.N!==void 0&&(S.B.forEach(function(W){var m;(m=S.N)==null||m.removeEventListener(W,S.j)}),S.N=void 0)}; BAO=function(S){var W=W===void 0?53:W;var m=[];AL(S,Gu,6).forEach(function(a){g.oo(a,2)<=W&&m.push(g.oo(a,1))}); return m}; EVj=function(S){var W=W===void 0?53:W;var m=[];AL(S,Gu,6).forEach(function(a){g.oo(a,2)>W&&m.push(g.oo(a,1))}); return m}; z5X=function(S){S.then(function(){},function(){})}; KY=function(){g.A.apply(this,arguments);this.N=1}; Tu=function(S){return{fieldType:2,fieldName:S}}; g.qr=function(S){return{fieldType:3,fieldName:S}}; yi6=function(S){this.C=S;S.aM("/client_streamz/bg/frs",g.qr("mk"))}; YlP=function(S){this.C=S;S.aM("/client_streamz/bg/wrl",g.qr("mn"),Tu("ac"),Tu("sc"),g.qr("rk"),g.qr("mk"))}; Gpj=function(S){this.C=S;S.dj("/client_streamz/bg/ec",g.qr("en"),g.qr("mk"))}; KTP=function(S){this.C=S;S.aM("/client_streamz/bg/el",g.qr("en"),g.qr("mk"))}; TA6=function(S){this.C=S;S.dj("/client_streamz/bg/cec",Tu("ec"),g.qr("mk"))}; qll=function(S){this.C=S;S.dj("/client_streamz/bg/po/csc",Tu("cs"),g.qr("mk"))}; peO=function(S){this.C=S;S.dj("/client_streamz/bg/po/ctav",g.qr("av"),g.qr("mk"))}; FT6=function(S){this.C=S;S.dj("/client_streamz/bg/po/cwsc",g.qr("su"),g.qr("mk"))}; VqQ=function(S){this.x6=GZ(S)}; nV7=function(S,W){return cxQ(S,W,Oa6)}; pY=function(S){this.x6=GZ(S)}; F_=function(S){this.x6=GZ(S)}; VB=function(S){this.x6=GZ(S)}; nY=function(S){this.x6=GZ(S)}; sO=function(S){this.x6=GZ(S)}; uM=function(S){this.x6=GZ(S)}; sFQ=function(S){this.x6=GZ(S)}; OIP=function(S){var W=new uM;W=We(W,1,S.N);var m=upX(S);W=cxQ(W,m,RNj);m=[];for(var a=[],J=g.R(S.C.keys()),B=J.next();!B.done;B=J.next())a.push(B.value.split(","));for(J=0;J>>31)&4294967295;T=J[0];var F=J[1],O=J[2],X=J[3],l=J[4];for(q=0;q<80;q++){if(q<40)if(q<20){var M=X^F&(O^X);var e=1518500249}else M=F^O^X,e=1859775393;else q<60?(M=F&O|X&(F|O),e=2400959708):(M=F^O^X,e=3395469782);M=((T<<5|T>>>27)&4294967295)+M+l+e+p[q]&4294967295;l=X;X=O;O=(F<<30|F>>>2)&4294967295;F=T;T=M}J[0]=J[0]+T&4294967295;J[1]=J[1]+F&4294967295;J[2]= J[2]+O&4294967295;J[3]=J[3]+X&4294967295;J[4]=J[4]+l&4294967295} function m(T,p){if(typeof T==="string"){T=unescape(encodeURIComponent(T));for(var q=[],F=0,O=T.length;F=56;q--)B[q]=p&255,p>>>=8;W(B);for(q=p=0;q<5;q++)for(var F=24;F>=0;F-=8)T[p++]=J[q]>>F&255;return T} for(var J=[],B=[],E=[],y=[128],Y=1;Y<64;++Y)y[Y]=0;var G,K;S();return{reset:S,update:m,digest:a,d7:function(){for(var T=a(),p="",q=0;q1)));E=E.next)J||(B=E);J&&(m.C==0&&a==1?nJG(m,W):(B?(a=B,a.next==m.j&&(m.j=a),a.next=a.next.next):svX(m),ud_(m,J,3,W)))}S.B=null}else Mk(S,3,W)}; xF=function(S,W){S.N||S.C!=2&&S.C!=3||gJ6(S);S.j?S.j.next=W:S.N=W;S.j=W}; O26=function(S,W,m,a){var J=Lg(null,null,null);J.C=new g.UI(function(B,E){J.B=W?function(y){try{var Y=W.call(a,y);B(Y)}catch(G){E(G)}}:B; J.N=m?function(y){try{var Y=m.call(a,y);Y===void 0&&y instanceof d6?E(y):B(Y)}catch(G){E(G)}}:E}); J.C.B=S;xF(S,J);return J.C}; Mk=function(S,W,m){S.C==0&&(S===m&&(W=3,m=new TypeError("Promise cannot resolve to itself")),S.C=1,qgP(m,S.mpD,S.Y$2,S)||(S.Z=m,S.C=W,S.B=null,gJ6(S),W!=3||m instanceof d6||jvQ(S,m)))}; qgP=function(S,W,m,a){if(S instanceof g.UI)return Vxj(S,W,m,a),!0;if(S)try{var J=!!S.$goog_Thenable}catch(E){J=!1}else J=!1;if(J)return S.then(W,m,a),!0;if(g.Ln(S))try{var B=S.then;if(typeof B==="function")return QvG(S,B,W,m,a),!0}catch(E){return m.call(a,E),!0}return!1}; QvG=function(S,W,m,a,J){function B(Y){y||(y=!0,a.call(J,Y))} function E(Y){y||(y=!0,m.call(J,Y))} var y=!1;try{W.call(S,E,B)}catch(Y){B(Y)}}; gJ6=function(S){S.V||(S.V=!0,g.lm(S.sS,S))}; svX=function(S){var W=null;S.N&&(W=S.N,S.N=W.next,W.next=null);S.N||(S.j=null);return W}; ud_=function(S,W,m,a){if(m==3&&W.N&&!W.j)for(;S&&S.X;S=S.B)S.X=!1;if(W.C)W.C.B=null,Xjc(W,m,a);else try{W.j?W.B.call(W.context):Xjc(W,m,a)}catch(J){vJK.call(null,J)}BxO(Tx6,W)}; Xjc=function(S,W,m){W==2?S.B.call(S.context,m):S.N&&S.N.call(S.context,m)}; jvQ=function(S,W){S.X=!0;g.lm(function(){S.X&&vJK.call(null,W)})}; d6=function(S){tN.call(this,S)}; g.Iz=function(S,W){g.ng.call(this);this.eS=S||1;this.R9=W||g.OQ;this.du=(0,g.dN)(this.ZWU,this);this.Nq=g.P9()}; g.PQ=function(S,W,m){if(typeof S==="function")m&&(S=(0,g.dN)(S,m));else if(S&&typeof S.handleEvent=="function")S=(0,g.dN)(S.handleEvent,S);else throw Error("Invalid listener argument");return Number(W)>2147483647?-1:g.OQ.setTimeout(S,W||0)}; fg=function(S,W){var m=null;return(new g.UI(function(a,J){m=g.PQ(function(){a(W)},S); m==-1&&J(Error("Failed to schedule timer."))})).QB(function(a){g.OQ.clearTimeout(m); throw a;})}; kF=function(S){g.A.call(this);this.Z=S;this.j=0;this.B=100;this.X=!1;this.N=new Map;this.V=new Set;this.flushInterval=3E4;this.C=new g.Iz(this.flushInterval);this.C.listen("tick",this.tJ,!1,this);g.Z(this,this.C)}; H27=function(S){S.C.enabled||S.C.start();S.j++;S.j>=S.B&&S.tJ()}; lK7=function(S,W){return S.V.has(W)?void 0:S.N.get(W)}; MxD=function(S){for(var W=0;W2?S.C.statusText:""}catch(m){W=""}S.j=W+" ["+S.getStatus()+"]";kn7(S)}}finally{Nk(S)}}}; Nk=function(S,W){if(S.C){S.V&&(clearTimeout(S.V),S.V=null);var m=S.C;S.C=null;W||S.dispatchEvent("ready");try{m.onreadystatechange=null}catch(a){}}}; r6=function(S){var W=S.getStatus();a:switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var m=!0;break a;default:m=!1}if(!m){if(W=W===0)S=g.Xd(String(S.S))[1]||null,!S&&g.OQ.self&&g.OQ.self.location&&(S=g.OQ.self.location.protocol.slice(0,-1)),W=!txP.test(S?S.toLowerCase():"");m=W}return m}; g.oz=function(S){return S.C?S.C.readyState:0}; g.Cg=function(S){try{return S.C?S.C.responseText:""}catch(W){return""}}; g.cQ=function(S){try{if(!S.C)return null;if("response"in S.C)return S.C.response;switch(S.Xn){case "":case "text":return S.C.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in S.C)return S.C.mozResponseArrayBuffer}return null}catch(W){return null}}; g.A0P=function(S){var W={};S=(S.C&&g.oz(S)>=2?S.C.getAllResponseHeaders()||"":"").split("\r\n");for(var m=0;m>1,W),Xy(S,S.length>>1)]}; vq6=function(S){var W=g.R(XvQ(S,vH));S=W.next().value;W=W.next().value;return S.toString(16)+W.toString(16)}; HLP=function(S,W){var m=XvQ(W);S=new Uint32Array(S.buffer);W=S[0];var a=g.R(m);m=a.next().value;a=a.next().value;for(var J=1;J>>8|E<<24,E+=B|0,E^=y+38293,B=B<<3|B>>>29,B^=E,Y=Y>>>8|Y<<24,Y+=y|0,Y^=G+38293,y=y<<3|y>>>29,y^=Y;B=[B,E];S[J]^=B[0];J+1=m?(globalThis.sessionStorage.removeItem(S),["e"]):["a",new Uint8Array(a.buffer,W+4)]}; HH=function(S,W,m){m=m===void 0?[]:m;this.maxItems=S;this.C=W===void 0?0:W;this.N=m}; UYl=function(S){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!W)return new HH(S);var m=W.split(",");if(m.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new HH(S);W=m.slice(1);W.length===1&&W[0]===""&&(W=[]);m=Number(m[0]);return isNaN(m)||m<0||m>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new HH(S)):new HH(S,m,W)}; LIK=function(S,W){this.logger=W;try{var m=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(a){m=!1}m&&(this.index=UYl(S))}; RrG=function(S,W,m,a,J){var B=S.index?a9(S.logger,function(){return lJX(S.index,vq6(W),m,a,J)},"W"):"u"; S.logger.Rf(B)}; var O6c=function(S,W){return zj[z[7]](this,2,S,W)}; er6=function(S,W,m){var a=g.R(S.index?a9(S.logger,function(){return MpK(vq6(W),m)},"R"):["u"]),J=a.next().value; a=a.next().value;S.logger.pO(J);return a}; dYQ=function(S){function W(){m-=a;m-=J;m^=J>>>13;a-=J;a-=m;a^=m<<8;J-=m;J-=a;J^=a>>>13;m-=a;m-=J;m^=J>>>12;a-=J;a-=m;a^=m<<16;J-=m;J-=a;J^=a>>>5;m-=a;m-=J;m^=J>>>3;a-=J;a-=m;a^=m<<10;J-=m;J-=a;J^=a>>>15} S=xYj(S);for(var m=2654435769,a=2654435769,J=314159265,B=S.length,E=B,y=0;E>=12;E-=12,y+=12)m+=ls(S,y),a+=ls(S,y+4),J+=ls(S,y+8),W();J+=B;switch(E){case 11:J+=S[y+10]<<24;case 10:J+=S[y+9]<<16;case 9:J+=S[y+8]<<8;case 8:a+=S[y+7]<<24;case 7:a+=S[y+6]<<16;case 6:a+=S[y+5]<<8;case 5:a+=S[y+4];case 4:m+=S[y+3]<<24;case 3:m+=S[y+2]<<16;case 2:m+=S[y+1]<<8;case 1:m+=S[y+0]}W();return iLc.toString(J)}; xYj=function(S){for(var W=[],m=0;m>7,S.error.code]);a.set(m,4);return a}; I9=function(S,W,m){Ml.call(this,S);this.j=W;this.clientState=m;this.C="S";this.N="q"}; d0=function(S){return globalThis.TextEncoder?(new TextEncoder).encode(S):g.Pr(S)}; P9O=function(S,W,m){return S instanceof si?GAD(S,m,W,1):S.JU(m)}; fR=function(S){g.A.call(this);var W=this;this.B=new g.Th;this.j=0;this.N=void 0;this.state=2;this.u$=S.u$;this.cW=S.cW;this.QJ=Object.assign({},fJO,S.QJ||{});this.logger=S.u$.aD();var m;this.onError=(m=S.onError)!=null?m:function(){}; this.Q_=S.Q_||!1;if(kA7(S)){var a=this.u$;this.X=function(){return VpK(a).catch(function(E){E=W.reportError(new EO(W.C?20:32,"TRG:Disposed",E));W.N=E;var y;(y=W.C)==null||y.dispose();W.C=void 0;W.B.reject(E)})}; nqQ(a,function(){return void PH(W)}); a.S===2&&PH(this)}else this.X=S.j4n,PH(this);var J=this.logger.share();J.pE("o");var B=new WH(J,"o");this.B.promise.then(function(){B.done();J.MZ();J.dispose()},function(){return void J.dispose()}); this.addOnDisposeCallback(function(){W.C?(W.C.dispose(),W.C=void 0):W.N?W.logger.MZ():(W.N=W.reportError(new EO(32,"TNP:Disposed")),W.logger.MZ(),W.B.reject(W.N))}); g.Z(this,this.logger)}; $YP=function(S,W){if(!(W instanceof EO))if(W instanceof $F){var m=Error(W.toString());m.stack=W.stack;W=new EO(11,"EBH:Error",m)}else W=new EO(12,"BSO:Unknown",W);return S.reportError(W)}; PH=function(S){var W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O;return g.k(function(X){switch(X.C){case 1:W=void 0;S.j++;m=new g.Th;S.u$ instanceof us&&S.u$.j.push(m.promise);if(!S.Q_){X.cn(2);break}a=new g.Th;setTimeout(function(){return void a.resolve()}); return g.P(X,a.promise,2);case 2:return J=S.logger.share(),g.EQ(X,4,5),S.state=5,B={},E=[],g.P(X,Oi(S.u$.snapshot({Gw:B,mJ:E}),S.QJ.q$6,function(){return Promise.reject(new EO(15,"MDA:Timeout"))}),7); case 7:y=X.N;if(S.TN())throw new EO(S.C?20:32,"MDA:Disposed");Y=E[0];S.state=6;return g.P(X,Oi(P9O(S.cW,J,y),S.QJ.LB,function(){return Promise.reject(new EO(10,"BWB:Timeout"))}),8); case 8:G=X.N;if(S.TN())throw new EO(S.C?20:32,"BWB:Disposed");S.state=7;W=a9(J,function(){var M=hrX(S,G,m,Y);M.B.promise.then(function(){return void S.X()}); return M},"i"); case 5:g.Kn(X);J.dispose();g.Tg(X,6);break;case 4:K=g.Gg(X);(T=W)==null||T.dispose();if(!S.N){p=$YP(S,K);m.resolve();var l;if(l=S.u$ instanceof us&&S.j<2)a:if(K instanceof EO)l=K.code!==32&&K.code!==20&&K.code!==10;else{if(K instanceof $F)switch(K.code){case 2:case 13:case 14:case 4:break;default:l=!1;break a}l=!0}if(l)return q=(1+Math.random()*.25)*(S.C?6E4:1E3),F=setTimeout(function(){return void S.X()},q),S.addOnDisposeCallback(function(){return void clearTimeout(F)}),X.return(); S.N=p}J.Xy(S.C?13:14);S.B.reject(S.N);return X.return();case 6:S.state=8,S.j=0,(O=S.C)==null||O.dispose(),S.C=W,S.B.resolve(),g.B9(X)}})}; hrX=function(S,W,m,a){var J=rs(W,2)*1E3;if(J<=0)throw new EO(31,"TTM:Invalid");if(CW(W,4))return new xZ(S.logger,CW(W,4),J);if(!rs(W,3))return new e8(S.logger,Ch(ll(W,1)),J);if(!a)throw new EO(4,"PMD:Undefined");a=a(Ch(ll(W,1)));if(typeof a!=="function")throw new EO(16,"APF:Failed");S.V=Math.floor((Date.now()+J)/1E3);S=new R9(S.logger,a,rs(W,3),J);S.addOnDisposeCallback(function(){return void m.resolve()}); return S}; tpj=function(S,W){W=W instanceof EO?W:new EO(5,"TVD:error",W);return S.reportError(W)}; oq6=function(S,W,m){try{if(S.TN())throw new EO(21,"BNT:disposed");if(!S.C&&S.N)throw S.N;var a,J;return(J=(a=ABj(S,W,m))!=null?a:ZL7(S,W,m))!=null?J:N3K(S,W,m)}catch(B){if(!W.pg)throw tpj(S,B);return bLD(S,m,B)}}; ABj=function(S,W,m){var a;return(a=S.C)==null?void 0:LR(a,function(){return kZ(S,W)},m,function(J){var B; if(S.C instanceof R9&&((B=W.eO)==null?0:B.KY))try{var E;(E=S.cache)==null||RrG(E,kZ(S,W),J,W.eO.ZC,S.V-120)}catch(y){S.reportError(new EO(24,"ELX:write",y))}})}; ZL7=function(S,W,m){var a;if((a=W.eO)!=null&&a.VG)try{var J,B=(J=S.cache)==null?void 0:er6(J,kZ(S,W),W.eO.ZC);return B?m?a9(S.logger,function(){return g.fh(B,2)},"a"):B:void 0}catch(E){S.reportError(new EO(23,"RXO:read",E))}}; N3K=function(S,W,m){var a={stack:[],error:void 0,hasError:!1};try{if(!W.YS)throw new EO(29,"SDF:notready");return LR(AGl(a,new I9(S.logger,0,S.state)),function(){return kZ(S,W)},m)}catch(J){a.error=J,a.hasError=!0}finally{Z6P(a)}}; bLD=function(S,W,m){var a={stack:[],error:void 0,hasError:!1};try{var J=tpj(S,m);return LR(AGl(a,new is(S.logger,J)),function(){return[]},W)}catch(B){a.error=B,a.hasError=!0}finally{Z6P(a)}}; kZ=function(S,W){return W.OU?W.OU:W.Gw?a9(S.logger,function(){return W.OU=d0(W.Gw)},"c"):[]}; rB7=function(){var S=0,W;return function(m){W||(W=new JX);var a=new I9(W,S,1),J=LR(a,function(){return d0(m)},!0); a.dispose();S++;return J}}; C9c=function(){var S=g.$Z();this.C=S;S.dj("/client_streamz/youtube/aba/gac",Tu("type"),Tu("sequence"))}; hX=function(S){this.x6=GZ(S)}; cBP=function(S,W,m){this.F9=S;this.lw=W;this.metadata=m}; tX=function(S,W){W=W===void 0?{}:W;this.VuN=S;this.metadata=W;this.status=null}; AX=function(S,W,m,a,J){this.name=S;this.methodType="unary";this.requestType=W;this.responseType=m;this.C=a;this.N=J}; Zw=function(S){this.x6=GZ(S)}; Nl=function(S){this.x6=GZ(S)}; bs=function(S){this.x6=GZ(S)}; o9=function(S,W){this.N=[];this.j=[];this.X=[];this.B=[];this.C=[];this.V=S.Aw9;this.Z=W;this.xhr=S.xhr;this.V&&DY7(this)}; mO6=function(S,W){var m=new wvl;g.GU(S.xhr,"complete",function(){if(r6(S.xhr)){var a=g.Cg(S.xhr);if(W&&S.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");a=atob(a)}try{var J=S.Z(a)}catch(y){r0(S,CR(new $F(13,"Error when deserializing response data; error: "+y+(", response: "+a)),m));return}a=UsD(S.xhr.getStatus());cH(S,Dw(S));a===0?SXP(S,J):r0(S,CR(new $F(a,"Xhr succeeded but the status code is not 200"),m))}else{a=g.Cg(S.xhr);J=Dw(S);if(a){var B= WdG(S,a);a=B.code;var E=B.details;B=B.metadata}else a=2,E="Rpc failed due to xhr error. uri: "+String(S.xhr.S)+", error code: "+(S.xhr.N+", error: ")+S.xhr.getLastError(),B=J;cH(S,J);r0(S,CR(new $F(a,E,B),m))}})}; DY7=function(S){S.V.cZ("data",function(W){if("1"in W){var m=W["1"];try{var a=S.Z(m)}catch(J){r0(S,new $F(13,"Error when deserializing response data; error: "+J+(", response: "+m)))}a&&SXP(S,a)}if("2"in W)for(W=WdG(S,W["2"]),m=0;m-1&&S.splice(W,1)}; SXP=function(S,W){for(var m=0;m>4&15).toString(16)+(S&15).toString(16)}; Ge=function(S,W){this.N=this.C=null;this.B=S||null;this.j=!!W}; qG=function(S){S.C||(S.C=new Map,S.N=0,S.B&&Ms(S.B,function(W,m){S.add(tx(W),m)}))}; KdX=function(S,W){qG(S);W=pu(S,W);return S.C.has(W)}; g.TMK=function(S,W,m){S.remove(W);m.length>0&&(S.B=null,S.C.set(pu(S,W),g.aS(m)),S.N=S.N+m.length)}; pu=function(S,W){W=String(W);S.j&&(W=W.toLowerCase());return W}; yWQ=function(S,W){W&&!S.j&&(qG(S),S.B=null,S.C.forEach(function(m,a){var J=a.toLowerCase();a!=J&&(this.remove(a),g.TMK(this,J,m))},S)); S.j=W}; g.qXD=function(S){var W="";g.ic(S,function(m,a){W+=a;W+=":";W+=m;W+="\r\n"}); return W}; g.Fc=function(S,W,m){if(g.UC(m))return S;m=g.qXD(m);if(typeof S==="string")return xJ(S,g.hx(W),m);g.Te(S,W,m);return S}; g.V1=function(S){g.A.call(this);this.N=S;this.C={}}; p4G=function(S,W,m,a,J,B){if(Array.isArray(m))for(var E=0;E=0)return!0;try{var W=new g.Xl(S)}catch(m){return g.Nx(ehP,function(a){return S.search(a)>0})!=null}return W.V.match(xOG)?!0:g.Nx(ehP,function(m){return S.match(m)!=null})!=null}; g.Lu=function(S,W){return S.replace(dOP,function(m,a){try{var J=g.L$(W,a);if(J==null||J.toString()==null)return m;J=J.toString();if(J==""||!g.C$(g.ZN(J)))return encodeURIComponent(J).replace(/%2C/g,",")}catch(B){}return m})}; IlP=function(S){this.x6=GZ(S,500)}; PXP=function(S){this.x6=GZ(S,500)}; RG=function(S){this.x6=GZ(S)}; e6=function(S){this.x6=GZ(S)}; flP=function(S){var W=S.x6;return tL(S,W,W[ms]|0,RG,2,1)}; hhj=function(S){var W;if((W=S[kfP])!=null)S=W;else{if(xV!==xV)throw Error();S=S[kfP]=$O_(S.C)}return S}; AWl=function(S){var W;return(W=S[tKQ])!=null?W:S[tKQ]=new Map(flP(hhj(S)).map(function(m){return[m.getName(),g.oo(m,2)]}))}; xA=function(S,W){return Object.is(S,W)}; dj=function(S){var W=ie;ie=S;return W}; ZVG=function(S){if(S.Ot!==void 0){var W=IG;IG=!0;try{for(var m=S.Ot;m!==void 0;m=m.aq){var a=m.w$;a.WY||(S=void 0,a.WY=!0,ZVG(a),(S=a.Ac)==null||S.call(a,a))}}finally{IG=W}}}; NMO=function(){var S;return((S=ie)==null?void 0:S.oM)!==!1}; bVP=function(S){S&&(S.NU=void 0,S.zx=!0);return dj(S)}; rWD=function(S){S.zx=!1;var W=S.NU,m=W!==void 0?W.vy:S.producers;if(m!==void 0){if(PP(S)){do m=od_(m);while(m!==void 0)}W!==void 0?W.vy=void 0:S.producers=void 0}}; CXl=function(S,W){var m=S.uu,a=PP(S);m!==void 0?(W.aq=m.aq,m.aq=W):(W.aq=void 0,S.Ot=W);W.cE=m;S.uu=W;if(!a)for(S=S.producers;S!==void 0;S=S.vy)CXl(S.WE,S)}; od_=function(S){var W=S.WE,m=S.vy,a=S.aq,J=S.cE;S.aq=void 0;S.cE=void 0;a!==void 0?a.cE=J:W.uu=J;if(J!==void 0)J.aq=a;else if(W.Ot=a,!PP(W))for(S=W.producers;S!==void 0;)S=od_(S);return m}; PP=function(S){return S.Cv||S.Ot!==void 0}; SOX=function(S,W){function m(){a:{if(IG)throw Error("");if(ie!==null){var J=ie.NU;if(J===void 0||J.WE!==a){var B=void 0,E=ie.zx;if(E&&(B=J!==void 0?J.vy:ie.producers,B!==void 0&&B.WE===a)){ie.NU=B;B.O3q=a.version;break a}var y=a.uu,Y;if(!(Y=y===void 0||y.w$!==ie)){if(E){b:{Y=ie;E=Y.NU;if(E!==void 0){Y=Y.producers;do{if(Y===y){E=!0;break b}if(Y===E)break;Y=Y.vy}while(Y!==void 0)}E=!1}E=!E}Y=E}Y&&(E=PP(ie),B={WE:a,w$:ie,vy:B,cE:y,O3q:a.version,aq:void 0},ie.NU=B,J!==void 0?J.vy=B:ie.producers=B,E&& CXl(a,B))}}}return a.value} var a=Object.create(cWP);a.value=S;W!==void 0&&(a.AA=W);m[DOP]=a;return[m,function(J){return w47(a,J)}, function(J){if(!NMO())throw Error();w47(a,J(a.value))}]}; w47=function(S,W){if(!NMO())throw Error();S.AA(S.value,W)||(S.value=W,S.version++,W4O++,ZVG(S))}; fu=function(S,W){W=W===void 0?"":W;var m={};S=SOX(S,m.equals);m=m.debugName;var a;W=m&&W?m+"__"+W:(a=m!=null?m:W)!=null?a:"[signal]";S[0][DOP].debugName=W}; $A=function(S){g.ng.call(this);var W=this;this.X=this.N=0;this.XQ=S!=null?S:{U$:function(J,B){return setTimeout(J,B)}, bZ:function(J){clearTimeout(J)}}; var m,a;this.C=(a=(m=window.navigator)==null?void 0:m.onLine)!=null?a:!0;this.B=function(){return g.k(function(J){return g.P(J,kA(W),0)})}; window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.X||this.i$()}; mrP=function(){var S=g.h6;$A.instance||($A.instance=new $A(S));return $A.instance}; kA=function(S,W){return S.j?S.j:S.j=new Promise(function(m){var a,J,B,E;return g.k(function(y){switch(y.C){case 1:return a=window.AbortController?new window.AbortController:void 0,B=(J=a)==null?void 0:J.signal,E=!1,g.EQ(y,2,3),a&&(S.N=S.XQ.U$(function(){a.abort()},W||2E4)),g.P(y,fetch("/generate_204",{method:"HEAD", signal:B}),5);case 5:E=!0;case 3:g.Kn(y);S.j=void 0;S.N&&(S.XQ.bZ(S.N),S.N=0);E!==S.C&&(S.C=E,S.C?S.dispatchEvent("networkstatus-online"):S.dispatchEvent("networkstatus-offline"));m(E);g.Tg(y,0);break;case 2:g.Gg(y),E=!1,y.cn(3)}})})}; agX=function(S){this.x6=GZ(S)}; t6=function(){this.data=[];this.C=-1}; JVP=function(S){S.C===-1&&(S.C=S.data.reduce(function(W,m,a){return W+(m?Math.pow(2,a):0)},0)); return S.C}; A6=function(S){S.setAttribute("role","link")}; NG=function(S,W){Array.isArray(W)&&(W=W.join(" "));W===""||W==void 0?(Zh||(W={},Zh=(W.atomic=!1,W.autocomplete="none",W.dropeffect="none",W.haspopup=!1,W.live="off",W.multiline=!1,W.multiselectable=!1,W.orientation="vertical",W.readonly=!1,W.relevant="additions text",W.required=!1,W.sort="none",W.busy=!1,W.disabled=!1,W.hidden=!1,W.invalid="false",W)),W=Zh,"label"in W?S.setAttribute("aria-label",W.label):S.removeAttribute("aria-label")):S.setAttribute("aria-label",W)}; be=function(S){S=S.getAttribute("aria-label");return S==null||S==void 0?"":String(S)}; g.oG=function(S,W,m){g.A.call(this);this.C=null;this.j=!1;this.V=S;this.X=m;this.N=W||window;this.B=(0,g.dN)(this.a5,this)}; BGQ=function(S){S=S.N;return S.requestAnimationFrame||S.webkitRequestAnimationFrame||S.mozRequestAnimationFrame||S.oRequestAnimationFrame||S.msRequestAnimationFrame||null}; EvK=function(S){S=S.N;return S.cancelAnimationFrame||S.cancelRequestAnimationFrame||S.webkitCancelRequestAnimationFrame||S.mozCancelRequestAnimationFrame||S.oCancelRequestAnimationFrame||S.msCancelRequestAnimationFrame||null}; g.rj=function(S,W,m){g.A.call(this);this.C=S;this.eS=W||0;this.N=m;this.B=(0,g.dN)(this.UM,this)}; g.Cu=function(S,W){S.isActive()||S.start(W)}; g.cP=function(S){S.stop();S.UM()}; g.Dh=function(S){S.isActive()&&g.cP(S)}; g.wj=function(S,W,m){g.A.call(this);this.j=m!=null?S.bind(m):S;this.eS=W;this.B=null;this.C=!1;this.N=0;this.SD=null}; Sy=function(S){S.SD=g.PQ(function(){S.SD=null;S.C&&!S.N&&(S.C=!1,Sy(S))},S.eS); var W=S.B;S.B=null;S.j.apply(null,W)}; g.Wn=function(S,W){this.C=S[g.OQ.Symbol.iterator]();this.N=W}; z7O=function(S){return typeof S.className=="string"?S.className:S.getAttribute&&S.getAttribute("class")||""}; m2=function(S){return S.classList?S.classList:z7O(S).match(/\S+/g)||[]}; g.aa=function(S,W){typeof S.className=="string"?S.className=W:S.setAttribute&&S.setAttribute("class",W)}; g.JU=function(S,W){return S.classList?S.classList.contains(W):g.oZ(m2(S),W)}; g.Bn=function(S,W){if(S.classList)S.classList.add(W);else if(!g.JU(S,W)){var m=z7O(S);g.aa(S,m+(m.length>0?" "+W:W))}}; g.Eo=function(S,W){if(S.classList)Array.prototype.forEach.call(W,function(J){g.Bn(S,J)}); else{var m={};Array.prototype.forEach.call(m2(S),function(J){m[J]=!0}); Array.prototype.forEach.call(W,function(J){m[J]=!0}); W="";for(var a in m)W+=W.length>0?" "+a:a;g.aa(S,W)}}; g.zD=function(S,W){S.classList?S.classList.remove(W):g.JU(S,W)&&g.aa(S,Array.prototype.filter.call(m2(S),function(m){return m!=W}).join(" "))}; g.YC=function(S,W){S.classList?Array.prototype.forEach.call(W,function(m){g.zD(S,m)}):g.aa(S,Array.prototype.filter.call(m2(S),function(m){return!g.oZ(W,m)}).join(" "))}; g.GD=function(S,W,m){m?g.Bn(S,W):g.zD(S,W)}; yV6=function(S,W){var m=!g.JU(S,W);g.GD(S,W,m)}; g.KE=function(){g.ng.call(this);this.C=0;this.endTime=this.startTime=null}; YOc=function(S,W){Array.isArray(W)||(W=[W]);W=W.map(function(m){return typeof m==="string"?m:m.property+" "+m.duration+"s "+m.timing+" "+m.delay+"s"}); g.mg(S,"transition",W.join(","))}; TD=function(S,W,m,a,J){g.KE.call(this);this.N=S;this.X=W;this.V=m;this.j=a;this.Z=Array.isArray(J)?J:[J]}; Gu_=function(S,W,m,a){return new TD(S,W,{opacity:m},{opacity:a},{property:"opacity",duration:W,timing:"ease-in",delay:0})}; TGl=function(S){S=wh(S);if(S=="")return null;var W=String(S.slice(0,4)).toLowerCase();if(("url("1||S&&S.split(")"),null;if(S.indexOf("(")>0){if(/"|'/.test(S))return null;W=/([\-\w]+)\(/g;for(var m;m=W.exec(S);)if(!(m[1].toLowerCase()in K4G))return null}return S}; qc=function(S,W){S=g.OQ[S];return S&&S.prototype?(W=Object.getOwnPropertyDescriptor(S.prototype,W))&&W.get||null:null}; qOP=function(S){var W=g.OQ.CSSStyleDeclaration;return W&&W.prototype&&W.prototype[S]||null}; pMc=function(S,W,m,a){if(S)return S.apply(W,a);if(g.pE&&document.documentMode<10){if(!W[m].call)throw Error("IE Clobbering detected");}else if(typeof W[m]!="function")throw Error("Clobbering detected");return W[m].apply(W,a)}; u_6=function(S){if(!S)return"";var W=document.createElement("div").style;F4j(S).forEach(function(m){var a=g.ju&&m in VLQ?m:m.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");rh(a,"--")||rh(a,"var")||(m=pMc(nvX,S,S.getPropertyValue?"getPropertyValue":"getAttribute",[m])||"",m=TGl(m),m!=null&&pMc(sDG,W,W.setProperty?"setProperty":"setAttribute",[a,m]))}); return W.cssText||""}; F4j=function(S){g.Mx(S)?S=g.aS(S):(S=g.XZ(S),g.Sm(S,"cssText"));return S}; g.Vt=function(S){var W,m=W=0,a=!1;S=S.split(gvP);for(var J=0;J.4?-1:1;return(W==0?null:W)==-1?"rtl":"ltr"}; g.gt=function(S){if(S instanceof nE||S instanceof so||S instanceof u6)return S;if(typeof S.next=="function")return new nE(function(){return S}); if(typeof S[Symbol.iterator]=="function")return new nE(function(){return S[Symbol.iterator]()}); if(typeof S.Ky=="function")return new nE(function(){return S.Ky()}); throw Error("Not an iterator or iterable.");}; nE=function(S){this.N=S}; so=function(S){this.N=S}; u6=function(S){nE.call(this,function(){return S}); this.B=S}; Oo=function(S,W,m,a,J,B,E,y){this.C=S;this.Z=W;this.B=m;this.X=a;this.j=J;this.V=B;this.N=E;this.S=y}; jy=function(S,W){if(W==0)return S.C;if(W==1)return S.N;var m=mG(S.C,S.B,W),a=mG(S.B,S.j,W);S=mG(S.j,S.N,W);m=mG(m,a,W);a=mG(a,S,W);return mG(m,a,W)}; XMG=function(S,W){if(W==0)return S.Z;if(W==1)return S.S;var m=mG(S.Z,S.X,W),a=mG(S.X,S.V,W);S=mG(S.V,S.S,W);m=mG(m,a,W);a=mG(a,S,W);return mG(m,a,W)}; vvG=function(S,W){var m=(W-S.C)/(S.N-S.C);if(m<=0)return 0;if(m>=1)return 1;for(var a=0,J=1,B=0,E=0;E<8;E++){B=jy(S,m);var y=(jy(S,m+1E-6)-B)/1E-6;if(Math.abs(B-W)<1E-6)return m;if(Math.abs(y)<1E-6)break;else B1E-6&&E<8;E++)B=0}; g.Hn=function(S){g.A.call(this);this.V=1;this.B=[];this.j=0;this.C=[];this.N={};this.Z=!!S}; lgj=function(S,W,m){g.lm(function(){S.apply(W,m)})}; g.l6=function(S){this.vZ=S}; Mc=function(S){this.vZ=S}; MLj=function(S){this.data=S}; UrP=function(S){return S===void 0||S instanceof MLj?S:new MLj(S)}; Uo=function(S){this.vZ=S}; g.L4_=function(S){var W=S.creation;S=S.expiration;return!!S&&Sg.P9()}; g.LE=function(S){this.vZ=S}; R7O=function(){}; Ra=function(){}; ey=function(S){this.C=S;this.N=null}; xC=function(S){if(S.C==null)throw Error("Storage mechanism: Storage unavailable");S.isAvailable()||If(Error("Storage mechanism: Storage unavailable"))}; i6=function(){var S=null;try{S=g.OQ.localStorage||null}catch(W){}ey.call(this,S)}; e7j=function(){var S=null;try{S=g.OQ.sessionStorage||null}catch(W){}ey.call(this,S)}; dt=function(S,W){this.N=S;this.C=W+"::"}; g.Ia=function(S){var W=new i6;return W.isAvailable()?S?new dt(W,S):W:null}; Pn=function(S,W){this.C=S;this.N=W}; fE=function(S){this.C=[];if(S)a:{if(S instanceof fE){var W=S.gq();S=S.eQ();if(this.C.length<=0){for(var m=this.C,a=0;a>>6:(B<65536?y[m++]=224|B>>>12:(y[m++]=240|B>>>18,y[m++]=128|B>>>12&63),y[m++]=128|B>>> 6&63),y[m++]=128|B&63);return y}; AU=function(S){for(var W=S.length;--W>=0;)S[W]=0}; ZV=function(S,W,m,a,J){this.Eh=S;this.OS=W;this.VO=m;this.ML=a;this.RNN=J;this.X0=S&&S.length}; Nc=function(S,W){this.zD=S;this.EH=0;this.Q$=W}; b6=function(S,W){S.tO[S.pending++]=W&255;S.tO[S.pending++]=W>>>8&255}; oa=function(S,W,m){S.Vd>16-m?(S.TB|=W<>16-S.Vd,S.Vd+=m-16):(S.TB|=W<>>=1,m<<=1;while(--W>0);return m>>>1}; var jK6=function(){return OP[z[7]](this,4)}; PMP=function(S,W,m){var a=Array(16),J=0,B;for(B=1;B<=15;B++)a[B]=J=J+m[B-1]<<1;for(m=0;m<=W;m++)J=S[m*2+1],J!==0&&(S[m*2]=Ig6(a[J]++,J))}; fg_=function(S){var W;for(W=0;W<286;W++)S.jU[W*2]=0;for(W=0;W<30;W++)S.Ad[W*2]=0;for(W=0;W<19;W++)S.m$[W*2]=0;S.jU[512]=1;S.YW=S.Fw=0;S.iH=S.matches=0}; kuc=function(S){S.Vd>8?b6(S,S.TB):S.Vd>0&&(S.tO[S.pending++]=S.TB);S.TB=0;S.Vd=0}; $rQ=function(S,W,m){kuc(S);b6(S,m);b6(S,~m);tU.mX(S.tO,S.window,W,m,S.pending);S.pending+=m}; h7X=function(S,W,m,a){var J=W*2,B=m*2;return S[J]>>7)];rt(S,E,m);y=W6[E];y!==0&&(J-=mt[E],oa(S,J,y))}}while(a>1;E>=1;E--)CE(S,m,E);Y=B;do E=S.E2[1],S.E2[1]=S.E2[S.AL--],CE(S,m,1),a=S.E2[1],S.E2[--S.mF]=E,S.E2[--S.mF]=a,m[Y*2]=m[E*2]+m[a*2],S.depth[Y]=(S.depth[E]>=S.depth[a]?S.depth[E]:S.depth[a])+1,m[E*2+1]=m[a*2+1]=Y,S.E2[1]=Y++,CE(S,m,1);while(S.AL>= 2);S.E2[--S.mF]=S.E2[1];E=W.zD;Y=W.EH;a=W.Q$.Eh;J=W.Q$.X0;B=W.Q$.OS;var G=W.Q$.VO,K=W.Q$.RNN,T,p=0;for(T=0;T<=15;T++)S.RN[T]=0;E[S.E2[S.mF]*2+1]=0;for(W=S.mF+1;W<573;W++){var q=S.E2[W];T=E[E[q*2+1]*2+1]+1;T>K&&(T=K,p++);E[q*2+1]=T;if(!(q>Y)){S.RN[T]++;var F=0;q>=G&&(F=B[q-G]);var O=E[q*2];S.YW+=O*(T+F);J&&(S.Fw+=O*(a[q*2+1]+F))}}if(p!==0){do{for(T=K-1;S.RN[T]===0;)T--;S.RN[T]--;S.RN[T+1]+=2;S.RN[K]--;p-=2}while(p>0);for(T=K;T!==0;T--)for(q=S.RN[T];q!==0;)a=S.E2[--W],a>Y||(E[a*2+1]!==T&&(S.YW+=(T- E[a*2+1])*E[a*2],E[a*2+1]=T),q--)}PMP(m,y,S.RN)}; AVj=function(S,W,m){var a,J=-1,B=W[1],E=0,y=7,Y=4;B===0&&(y=138,Y=3);W[(m+1)*2+1]=65535;for(a=0;a<=m;a++){var G=B;B=W[(a+1)*2+1];++E>>=1)if(W&1&&S.jU[m*2]!==0)return 0;if(S.jU[18]!==0||S.jU[20]!==0||S.jU[26]!==0)return 1;for(m=32;m<256;m++)if(S.jU[m*2]!==0)return 1;return 0}; J2=function(S,W,m){S.tO[S.Jy+S.iH*2]=W>>>8&255;S.tO[S.Jy+S.iH*2+1]=W&255;S.tO[S.KZ+S.iH]=m&255;S.iH++;W===0?S.jU[m*2]++:(S.matches++,W--,S.jU[(cn[m]+256+1)*2]++,S.Ad[(W<256?SC[W]:SC[256+(W>>>7)])*2]++);return S.iH===S.OZ-1}; Ew=function(S,W){S.msg=B6[W];return W}; zz=function(S){for(var W=S.length;--W>=0;)S[W]=0}; yA=function(S){var W=S.state,m=W.pending;m>S.YP&&(m=S.YP);m!==0&&(tU.mX(S.output,W.tO,W.H8,m,S.zv),S.zv+=m,W.H8+=m,S.IC+=m,S.YP-=m,W.pending-=m,W.pending===0&&(W.H8=0))}; KK=function(S,W){var m=S.YG>=0?S.YG:-1,a=S.wd-S.YG,J=0;if(S.level>0){S.zk.tU===2&&(S.zk.tU=NGP(S));a2(S,S.UI);a2(S,S.ij);AVj(S,S.jU,S.UI.EH);AVj(S,S.Ad,S.ij.EH);a2(S,S.fX);for(J=18;J>=3&&S.m$[bY7[J]*2+1]===0;J--);S.YW+=3*(J+1)+5+5+4;var B=S.YW+3+7>>>3;var E=S.Fw+3+7>>>3;E<=B&&(B=E)}else B=E=a+5;if(a+4<=B&&m!==-1)oa(S,W?1:0,3),$rQ(S,m,a);else if(S.strategy===4||E===B)oa(S,2+(W?1:0),3),tLc(S,Yn,Gz);else{oa(S,4+(W?1:0),3);m=S.UI.EH+1;a=S.ij.EH+1;J+=1;oa(S,m-257,5);oa(S,a-1,5);oa(S,J-4,4);for(B=0;B>>8&255;S.tO[S.pending++]=W&255}; ov6=function(S,W){var m=S.Kg,a=S.wd,J=S.yH,B=S.ot,E=S.wd>S.PQ-262?S.wd-(S.PQ-262):0,y=S.window,Y=S.w_,G=S.NJ,K=S.wd+258,T=y[a+J-1],p=y[a+J];S.yH>=S.QS&&(m>>=2);B>S.RL&&(B=S.RL);do{var q=W;if(y[q+J]===p&&y[q+J-1]===T&&y[q]===y[a]&&y[++q]===y[a+1]){a+=2;for(q++;y[++a]===y[++q]&&y[++a]===y[++q]&&y[++a]===y[++q]&&y[++a]===y[++q]&&y[++a]===y[++q]&&y[++a]===y[++q]&&y[++a]===y[++q]&&y[++a]===y[++q]&&aJ){S.OH=W;J=q;if(q>=B)break;T=y[a+J-1];p=y[a+J]}}}while((W=G[W&Y])>E&&--m!== 0);return J<=S.RL?J:S.RL}; VA=function(S){var W=S.PQ,m;do{var a=S.kZ-S.RL-S.wd;if(S.wd>=W+(W-262)){tU.mX(S.window,S.window,W,W,0);S.OH-=W;S.wd-=W;S.YG-=W;var J=m=S.Gg;do{var B=S.head[--J];S.head[J]=B>=W?B-W:0}while(--m);J=m=W;do B=S.NJ[--J],S.NJ[J]=B>=W?B-W:0;while(--m);a+=W}if(S.zk.HQ===0)break;J=S.zk;m=S.window;B=S.wd+S.RL;var E=J.HQ;E>a&&(E=a);E===0?m=0:(J.HQ-=E,tU.mX(m,J.input,J.By,E,B),J.state.wrap===1?J.wc=pK(J.wc,m,E,B):J.state.wrap===2&&(J.wc=FC(J.wc,m,E,B)),J.By+=E,J.j5+=E,m=E);S.RL+=m;if(S.RL+S.LJ>=3)for(a=S.wd-S.LJ, S.Se=S.window[a],S.Se=(S.Se<=3&&(S.Se=(S.Se<=3)if(m=J2(S,S.wd-S.OH,S.B1-3),S.RL-=S.B1,S.B1<=S.Qv&&S.RL>=3){S.B1--;do S.wd++,S.Se=(S.Se<=3&&(S.Se=(S.Se<4096)&&(S.B1=2));if(S.yH>=3&&S.B1<=S.yH){a=S.wd+S.RL-3;m=J2(S,S.wd-1-S.X9,S.yH-3);S.RL-=S.yH-1;S.yH-=2;do++S.wd<=a&&(S.Se=(S.Se<=3&&S.wd>0&&(a=S.wd-1,m=B[a],m===B[++a]&&m===B[++a]&&m===B[++a])){for(J=S.wd+258;m===B[++a]&&m===B[++a]&&m===B[++a]&&m===B[++a]&&m===B[++a]&&m===B[++a]&&m===B[++a]&&m===B[++a]&&aS.RL&&(S.B1=S.RL)}S.B1>=3?(m=J2(S,1,S.B1-3),S.RL-=S.B1,S.wd+=S.B1,S.B1=0):(m=J2(S,0,S.window[S.wd]),S.RL--,S.wd++);if(m&&(KK(S,!1),S.zk.YP===0))return 1}S.LJ=0;return W=== 4?(KK(S,!0),S.zk.YP===0?3:4):S.iH&&(KK(S,!1),S.zk.YP===0)?1:2}; CMc=function(S,W){for(var m;;){if(S.RL===0&&(VA(S),S.RL===0)){if(W===0)return 1;break}S.B1=0;m=J2(S,0,S.window[S.wd]);S.RL--;S.wd++;if(m&&(KK(S,!1),S.zk.YP===0))return 1}S.LJ=0;return W===4?(KK(S,!0),S.zk.YP===0?3:4):S.iH&&(KK(S,!1),S.zk.YP===0)?1:2}; gr=function(S,W,m,a,J){this.WUn=S;this.kVn=W;this.wUq=m;this.pv2=a;this.func=J}; cV7=function(){this.zk=null;this.status=0;this.tO=null;this.wrap=this.pending=this.H8=this.qy=0;this.qE=null;this.qz=0;this.method=8;this.tM=-1;this.w_=this.KL=this.PQ=0;this.window=null;this.kZ=0;this.head=this.NJ=null;this.ot=this.QS=this.strategy=this.level=this.Qv=this.Kg=this.yH=this.RL=this.OH=this.wd=this.ut=this.X9=this.B1=this.YG=this.y6=this.Id=this.RS=this.Gg=this.Se=0;this.jU=new tU.gQ(1146);this.Ad=new tU.gQ(122);this.m$=new tU.gQ(78);zz(this.jU);zz(this.Ad);zz(this.m$);this.fX=this.ij= this.UI=null;this.RN=new tU.gQ(16);this.E2=new tU.gQ(573);zz(this.E2);this.mF=this.AL=0;this.depth=new tU.gQ(573);zz(this.depth);this.Vd=this.TB=this.LJ=this.matches=this.Fw=this.YW=this.Jy=this.iH=this.OZ=this.KZ=0}; Dr_=function(S,W){if(!S||!S.state||W>5||W<0)return S?Ew(S,-2):-2;var m=S.state;if(!S.output||!S.input&&S.HQ!==0||m.status===666&&W!==4)return Ew(S,S.YP===0?-5:-2);m.zk=S;var a=m.tM;m.tM=W;if(m.status===42)if(m.wrap===2)S.wc=0,Tz(m,31),Tz(m,139),Tz(m,8),m.qE?(Tz(m,(m.qE.text?1:0)+(m.qE.rg?2:0)+(m.qE.extra?4:0)+(m.qE.name?8:0)+(m.qE.comment?16:0)),Tz(m,m.qE.time&255),Tz(m,m.qE.time>>8&255),Tz(m,m.qE.time>>16&255),Tz(m,m.qE.time>>24&255),Tz(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),Tz(m,m.qE.os& 255),m.qE.extra&&m.qE.extra.length&&(Tz(m,m.qE.extra.length&255),Tz(m,m.qE.extra.length>>8&255)),m.qE.rg&&(S.wc=FC(S.wc,m.tO,m.pending,0)),m.qz=0,m.status=69):(Tz(m,0),Tz(m,0),Tz(m,0),Tz(m,0),Tz(m,0),Tz(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),Tz(m,3),m.status=113);else{var J=8+(m.KL-8<<4)<<8;J|=(m.strategy>=2||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6;m.wd!==0&&(J|=32);m.status=113;qB(m,J+(31-J%31));m.wd!==0&&(qB(m,S.wc>>>16),qB(m,S.wc&65535));S.wc=1}if(m.status===69)if(m.qE.extra){for(J= m.pending;m.qz<(m.qE.extra.length&65535)&&(m.pending!==m.qy||(m.qE.rg&&m.pending>J&&(S.wc=FC(S.wc,m.tO,m.pending-J,J)),yA(S),J=m.pending,m.pending!==m.qy));)Tz(m,m.qE.extra[m.qz]&255),m.qz++;m.qE.rg&&m.pending>J&&(S.wc=FC(S.wc,m.tO,m.pending-J,J));m.qz===m.qE.extra.length&&(m.qz=0,m.status=73)}else m.status=73;if(m.status===73)if(m.qE.name){J=m.pending;do{if(m.pending===m.qy&&(m.qE.rg&&m.pending>J&&(S.wc=FC(S.wc,m.tO,m.pending-J,J)),yA(S),J=m.pending,m.pending===m.qy)){var B=1;break}B=m.qzJ&&(S.wc=FC(S.wc,m.tO,m.pending-J,J));B===0&&(m.qz=0,m.status=91)}else m.status=91;if(m.status===91)if(m.qE.comment){J=m.pending;do{if(m.pending===m.qy&&(m.qE.rg&&m.pending>J&&(S.wc=FC(S.wc,m.tO,m.pending-J,J)),yA(S),J=m.pending,m.pending===m.qy)){B=1;break}B=m.qzJ&&(S.wc=FC(S.wc,m.tO,m.pending-J,J));B===0&&(m.status=103)}else m.status= 103;m.status===103&&(m.qE.rg?(m.pending+2>m.qy&&yA(S),m.pending+2<=m.qy&&(Tz(m,S.wc&255),Tz(m,S.wc>>8&255),S.wc=0,m.status=113)):m.status=113);if(m.pending!==0){if(yA(S),S.YP===0)return m.tM=-1,0}else if(S.HQ===0&&(W<<1)-(W>4?9:0)<=(a<<1)-(a>4?9:0)&&W!==4)return Ew(S,-5);if(m.status===666&&S.HQ!==0)return Ew(S,-5);if(S.HQ!==0||m.RL!==0||W!==0&&m.status!==666){a=m.strategy===2?CMc(m,W):m.strategy===3?rVP(m,W):Ow[m.level].func(m,W);if(a===3||a===4)m.status=666;if(a===1||a===3)return S.YP===0&&(m.tM= -1),0;if(a===2&&(W===1?(oa(m,2,3),rt(m,256,Yn),m.Vd===16?(b6(m,m.TB),m.TB=0,m.Vd=0):m.Vd>=8&&(m.tO[m.pending++]=m.TB&255,m.TB>>=8,m.Vd-=8)):W!==5&&(oa(m,0,3),$rQ(m,0,0),W===3&&(zz(m.head),m.RL===0&&(m.wd=0,m.YG=0,m.LJ=0))),yA(S),S.YP===0))return m.tM=-1,0}if(W!==4)return 0;if(m.wrap<=0)return 1;m.wrap===2?(Tz(m,S.wc&255),Tz(m,S.wc>>8&255),Tz(m,S.wc>>16&255),Tz(m,S.wc>>24&255),Tz(m,S.j5&255),Tz(m,S.j5>>8&255),Tz(m,S.j5>>16&255),Tz(m,S.j5>>24&255)):(qB(m,S.wc>>>16),qB(m,S.wc&65535));yA(S);m.wrap>0&& (m.wrap=-m.wrap);return m.pending!==0?0:1}; H6=function(S){if(!(this instanceof H6))return new H6(S);S=this.options=tU.assign({level:-1,method:8,chunkSize:16384,GJ:15,Mgq:8,strategy:0,to:""},S||{});S.raw&&S.GJ>0?S.GJ=-S.GJ:S.H_9&&S.GJ>0&&S.GJ<16&&(S.GJ+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.zk=new wMD;this.zk.YP=0;var W=this.zk;var m=S.level,a=S.method,J=S.GJ,B=S.Mgq,E=S.strategy;if(W){var y=1;m===-1&&(m=6);J<0?(y=0,J=-J):J>15&&(y=2,J-=16);if(B<1||B>9||a!==8||J<8||J>15||m<0||m>9||E<0||E>4)W=Ew(W,-2);else{J===8&&(J=9); var Y=new cV7;W.state=Y;Y.zk=W;Y.wrap=y;Y.qE=null;Y.KL=J;Y.PQ=1<>=7;B<30;B++)for(mt[B]=E<<7,J=0;J<1<=G.PQ&&(W===0&&(zz(G.head),G.wd=0,G.YG=0,G.LJ=0),m=new tU.cS(G.PQ),tU.mX(m,B,E-G.PQ,G.PQ,0),B=m,E=G.PQ);m=S.HQ;a=S.By;J=S.input;S.HQ=E;S.By=0;S.input=B;for(VA(G);G.RL>=3;){B=G.wd;E=G.RL-2;do G.Se=(G.Se<1?W[S[0]]=S[1]:S.length===1&&Object.assign(W,S[0])}; g.D4=function(S,W){return S in CK?CK[S]:W}; wr=function(S){var W=CK.EXPERIMENT_FLAGS;return W?W[S]:void 0}; OgX=function(S){So.forEach(function(W){return W(S)})}; g.my=function(S){return S&&window.yterr?function(){try{return S.apply(this,arguments)}catch(W){g.WL(W)}}:S}; g.WL=function(S){var W=g.v9("yt.logging.errors.log");W?W(S,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=g.D4("ERRORS",[]),W.push([S,"ERROR",void 0,void 0,void 0,void 0,void 0]),c6("ERRORS",W));OgX(S)}; var p_7=function(){return Tj[z[7]](this,57)}; ak=function(S,W,m,a,J){var B=g.v9("yt.logging.errors.log");B?B(S,"WARNING",W,m,a,void 0,J):(B=g.D4("ERRORS",[]),B.push([S,"WARNING",W,m,a,void 0,J]),c6("ERRORS",B))}; J$=function(S,W){W=S.split(W);for(var m={},a=0,J=W.length;a1?S[1]:S[0])):{}}; yi=function(S,W){return vFQ(S,W||{},!0)}; Y0=function(S,W){return vFQ(S,W||{},!1)}; vFQ=function(S,W,m){var a=S.split("#",2);S=a[0];a=a.length>1?"#"+a[1]:"";var J=S.split("?",2);S=J[0];J=Gj(J[1]||"");for(var B in W)if(m||!g.HF(J,B))J[B]=W[B];return g.ex(S,J)+a}; Gc=function(S){if(!W)var W=window.location.href;var m=g.Xd(S)[1]||null,a=g.vj(S);m&&a?(S=g.Xd(S),W=g.Xd(W),S=S[3]==W[3]&&S[1]==W[1]&&S[4]==W[4]):S=a?g.vj(W)===a&&(Number(g.Xd(W)[4]||null)||null)===(Number(g.Xd(S)[4]||null)||null):!0;return S}; K0=function(S){S||(S=document.location.href);S=g.Xd(S)[1]||null;return S!==null&&S==="https"}; Tc=function(S){S=Hg_(S);return S===null?!1:S[0]==="com"&&S[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; lMO=function(S){S=Hg_(S);return S===null?!1:S[1]==="google"?!0:S[2]==="google"?S[0]==="au"&&S[1]==="com"?!0:S[0]==="uk"&&S[1]==="co"?!0:!1:!1}; Hg_=function(S){S=g.vj(S);return S!==null?S.split(".").reverse():null}; jz_=function(S){return S&&S.match(MVl)?S:tx(S)}; Fs=function(S){var W=qi;S=S===void 0?urP():S;var m=Object,a=m.assign,J=p0(W);var B=W.C;try{var E=B.screenX;var y=B.screenY}catch(l){}try{var Y=B.outerWidth;var G=B.outerHeight}catch(l){}try{var K=B.innerWidth;var T=B.innerHeight}catch(l){}try{var p=B.screenLeft;var q=B.screenTop}catch(l){}try{K=B.innerWidth,T=B.innerHeight}catch(l){}try{var F=B.screen.availWidth;var O=B.screen.availTop}catch(l){}B=[p,q,E,y,F,O,Y,G,K,T];E=vrD(!1,W.C.top);y={};var X=X===void 0?g.OQ:X;Y=new t6;"SVGElement"in X&&"createElementNS"in X.document&&Y.set(0);G=fPQ();G["allow-top-navigation-by-user-activation"]&&Y.set(1);G["allow-popups-to-escape-sandbox"]&&Y.set(2);X.crypto&&X.crypto.subtle&&Y.set(3);"TextDecoder"in X&&"TextEncoder"in X&&Y.set(4);X=JVP(Y);W=(y.bc=X,y.bih=E.height,y.biw=E.width,y.brdim=B.join(),y.vis=sM(W.N),y.wgl=!!t8.WebGLRenderingContext,y);m=a.call(m,J,W);m.ca_type="image";S&&(m.bid=S);return m}; p0=function(S){var W={};W.dt=Uk7;W.flash="0";a:{try{var m=S.C.top.location.href}catch(G){S=2;break a}S=m?m===S.N.location.href?0:1:2}W=(W.frm=S,W);try{W.u_tz=-(new Date).getTimezoneOffset();try{var a=t8.history.length}catch(G){a=0}W.u_his=a;var J;W.u_h=(J=t8.screen)==null?void 0:J.height;var B;W.u_w=(B=t8.screen)==null?void 0:B.width;var E;W.u_ah=(E=t8.screen)==null?void 0:E.availHeight;var y;W.u_aw=(y=t8.screen)==null?void 0:y.availWidth;var Y;W.u_cd=(Y=t8.screen)==null?void 0:Y.colorDepth}catch(G){}return W}; RoD=function(){if(!LA_)return null;var S=LA_();return"open"in S?S:null}; g.n0=function(S){switch(Vi(S)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Vi=function(S){return S&&"status"in S?S.status:-1}; g.s7=function(S,W){typeof S==="function"&&(S=g.my(S));return window.setTimeout(S,W)}; g.uO=function(S,W){typeof S==="function"&&(S=g.my(S));return window.setInterval(S,W)}; g.gu=function(S){window.clearTimeout(S)}; g.O7=function(S){window.clearInterval(S)}; g.Qi=function(S){S=jo(S);return typeof S==="string"&&S==="false"?!1:!!S}; Xs=function(S,W){S=jo(S);return S===void 0&&W!==void 0?W:Number(S||0)}; vL=function(){return g.D4("EXPERIMENTS_TOKEN","")}; jo=function(S){return g.D4("EXPERIMENT_FLAGS",{})[S]}; HL=function(){for(var S=[],W=g.D4("EXPERIMENTS_FORCED_FLAGS",{}),m=g.R(Object.keys(W)),a=m.next();!a.done;a=m.next())a=a.value,S.push({key:a,value:String(W[a])});m=g.D4("EXPERIMENT_FLAGS",{});a=g.R(Object.keys(m));for(var J=a.next();!J.done;J=a.next())J=J.value,J.startsWith("force_")&&W[J]===void 0&&S.push({key:J,value:String(m[J])});return S}; lO=function(S,W,m,a,J,B,E,y,Y){function G(){(K&&"readyState"in K?K.readyState:0)===4&&W&&g.my(W)(K)} m=m===void 0?"GET":m;a=a===void 0?"":a;y=y===void 0?!1:y;var K=RoD();if(!K)return null;"onloadend"in K?K.addEventListener("loadend",G,!1):K.onreadystatechange=G;g.Qi("debug_forward_web_query_parameters")&&(S=eo6(S));K.open(m,S,!0);B&&(K.responseType=B);E&&(K.withCredentials=!0);m=m==="POST"&&(window.FormData===void 0||!(a instanceof FormData));if(J=xk6(S,J))for(var T in J)K.setRequestHeader(T,J[T]),"content-type"===T.toLowerCase()&&(m=!1);m&&K.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); Y&&"onprogress"in K&&(K.onprogress=function(){Y(K.responseText)}); if(y&&"setAttributionReporting"in XMLHttpRequest.prototype){S={eventSourceEligible:!0,triggerEligible:!1};try{K.setAttributionReporting(S)}catch(p){ak(p)}}K.send(a);return K}; xk6=function(S,W){W=W===void 0?{}:W;var m=Gc(S),a=g.D4("INNERTUBE_CLIENT_NAME"),J=g.Qi("web_ajax_ignore_global_headers_if_set"),B;for(B in ig6){var E=g.D4(ig6[B]),y=B==="X-Goog-AuthUser"||B==="X-Goog-PageId";B!=="X-Goog-Visitor-Id"||E||(E=g.D4("VISITOR_DATA"));var Y;if(!(Y=!E)){if(!(Y=m||(g.vj(S)?!1:!0))){Y=S;var G;if(G=g.Qi("add_auth_headers_to_remarketing_google_dot_com_ping")&&B==="Authorization"&&(a==="TVHTML5"||a==="TVHTML5_UNPLUGGED"||a==="TVHTML5_SIMPLY")&&lMO(Y))Y=Hj(Y)||"",Y=Y.split("/"), Y="/"+(Y.length>1?Y[1]:""),G=Y==="/pagead";Y=G?!0:!1}Y=!Y}Y||J&&W[B]!==void 0||a==="TVHTML5_UNPLUGGED"&&y||(W[B]=E)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(m||!g.vj(S))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(m||!g.vj(S)){try{var K=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(T){}K&&(W["X-YouTube-Time-Zone"]=K)}document.location.hostname.endsWith("youtubeeducation.com")||!m&&g.vj(S)||(W["X-YouTube-Ad-Signals"]= BL(Fs()));return W}; U7=function(S,W){W.method="POST";W.postParams||(W.postParams={});return g.Mi(S,W)}; PmO=function(S,W){if(window.fetch&&W.format!=="XML"){var m={method:W.method||"GET",credentials:"same-origin"};W.headers&&(m.headers=W.headers);W.priority&&(m.priority=W.priority);S=dk6(S,W);var a=IMX(S,W);a&&(m.body=a);W.withCredentials&&(m.credentials="include");var J=W.context||g.OQ,B=!1,E;fetch(S,m).then(function(y){if(!B){B=!0;E&&g.gu(E);var Y=y.ok,G=function(K){K=K||{};Y?W.onSuccess&&W.onSuccess.call(J,K,y):W.onError&&W.onError.call(J,K,y);W.onFinish&&W.onFinish.call(J,K,y)}; (W.format||"JSON")==="JSON"&&(Y||y.status>=400&&y.status<500)?y.json().then(G,function(){G(null)}):G(null)}}).catch(function(){W.onError&&W.onError.call(J,{},{})}); S=W.timeout||0;W.onFetchTimeout&&S>0&&(E=g.s7(function(){B||(B=!0,g.gu(E),W.onFetchTimeout.call(W.context||g.OQ))},S))}else g.Mi(S,W)}; g.Mi=function(S,W){var m=W.format||"JSON";S=dk6(S,W);var a=IMX(S,W),J=!1,B=fM6(S,function(Y){if(!J){J=!0;y&&g.gu(y);var G=g.n0(Y),K=null,T=400<=Y.status&&Y.status<500,p=500<=Y.status&&Y.status<600;if(G||T||p)K=kUG(S,m,Y,W.convertToSafeHtml);G&&(G=$kj(m,Y,K));K=K||{};T=W.context||g.OQ;G?W.onSuccess&&W.onSuccess.call(T,Y,K):W.onError&&W.onError.call(T,Y,K);W.onFinish&&W.onFinish.call(T,Y,K)}},W.method,a,W.headers,W.responseType,W.withCredentials,!1,W.onProgress); a=W.timeout||0;if(W.onTimeout&&a>0){var E=W.onTimeout;var y=g.s7(function(){J||(J=!0,B.abort(),g.gu(y),E.call(W.context||g.OQ,B))},a)}return B}; dk6=function(S,W){W.includeDomain&&(S=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+S);var m=g.D4("XSRF_FIELD_NAME");if(W=W.urlParams)W[m]&&delete W[m],S=yi(S,W);return S}; IMX=function(S,W){var m=g.D4("XSRF_FIELD_NAME"),a=g.D4("XSRF_TOKEN"),J=W.postBody||"",B=W.postParams,E=g.D4("XSRF_FIELD_NAME"),y;W.headers&&(y=W.headers["Content-Type"]);W.excludeXsrf||g.vj(S)&&!W.withCredentials&&g.vj(S)!==document.location.hostname||W.method!=="POST"||y&&y!=="application/x-www-form-urlencoded"||W.postParams&&W.postParams[E]||(B||(B={}),B[m]=a);(g.Qi("ajax_parse_query_data_only_when_filled")&&B&&Object.keys(B).length>0||B)&&typeof J==="string"&&(J=Gj(J),g.iH(J,B),J=W.postBodyFormat&& W.postBodyFormat==="JSON"?JSON.stringify(J):g.Rv(J));B=J||B&&!g.UC(B);!hoj&&B&&W.method!=="POST"&&(hoj=!0,g.WL(Error("AJAX request with postData should use POST")));return J}; kUG=function(S,W,m,a){var J=null;switch(W){case "JSON":try{var B=m.responseText}catch(E){throw a=Error("Error reading responseText"),a.params=S,ak(a),E;}S=m.getResponseHeader("Content-Type")||"";B&&S.indexOf("json")>=0&&(B.substring(0,5)===")]}'\n"&&(B=B.substring(5)),J=JSON.parse(B));break;case "XML":if(S=(S=m.responseXML)?tVQ(S):null)J={},g.V3(S.getElementsByTagName("*"),function(E){J[E.tagName]=AsO(E)})}a&&ZgQ(J); return J}; ZgQ=function(S){if(g.Ln(S))for(var W in S)W==="html_content"||qQP(W,"_html")?S[W]=Ma(S[W]):ZgQ(S[W])}; $kj=function(S,W,m){if(W&&W.status===204)return!0;switch(S){case "JSON":return!!m;case "XML":return Number(m&&m.return_code)===0;case "RAW":return!0;default:return!!m}}; tVQ=function(S){return S?(S=("responseXML"in S?S.responseXML:S).getElementsByTagName("root"))&&S.length>0?S[0]:null:null}; AsO=function(S){var W="";g.V3(S.childNodes,function(m){W+=m.nodeValue}); return W}; eo6=function(S){var W=window.location.search,m=g.vj(S);g.Qi("debug_handle_relative_url_for_query_forward_killswitch")||!m&&Gc(S)&&(m=document.location.hostname);var a=Hj(S);a=(m=m&&(m.endsWith("youtube.com")||m.endsWith("youtube-nocookie.com")))&&a&&a.startsWith("/api/");if(!m||a)return S;var J=Gj(W),B={};g.V3(N6P,function(E){J[E]&&(B[E]=J[E])}); return Y0(S,B)}; Rk=function(S,W){var m=g.em(W),a;return(new g.UI(function(J,B){m.onSuccess=function(E){g.n0(E)?J(new bgP(E)):B(new L0("Request failed, status="+Vi(E),"net.badstatus",E))}; m.onError=function(E){B(new L0("Unknown request error","net.unknown",E))}; m.onTimeout=function(E){B(new L0("Request timed out","net.timeout",E))}; a=g.Mi(S,m)})).QB(function(J){if(J instanceof d6){var B; (B=a)==null||B.abort()}return eV(J)})}; g.eo=function(S,W,m,a,J,B){function E(Y,G,K){return Y.QB(function(T){if(G<=0||Vi(T.xhr)===403)return eV(new L0("Request retried too many times","net.retryexhausted",T.xhr,T));var p=Math.pow(2,m-G+1)*K,q=J>0?Math.min(J,p):p;return y(K).then(function(){B&&B(T,G-1);return E(Rk(S,W),G-1,q)})})} function y(Y){return new g.UI(function(G){setTimeout(G,Y)})} J=J===void 0?-1:J;return E(Rk(S,W),m-1,a)}; L0=function(S,W,m){tN.call(this,S+", errorCode="+W);this.errorCode=W;this.xhr=m;this.name="PromiseAjaxError"}; bgP=function(S){this.xhr=S}; x0=function(S){this.C=S===void 0?null:S;this.B=0;this.N=null}; iO=function(S){var W=new x0;S=S===void 0?null:S;W.B=2;W.N=S===void 0?null:S;return W}; du=function(S){var W=new x0;S=S===void 0?null:S;W.B=1;W.N=S===void 0?null:S;return W}; g.f0=function(S,W,m,a,J){Ik||PL.set(""+S,W,{xf:m,path:"/",domain:a===void 0?"youtube.com":a,secure:J===void 0?!1:J})}; g.k0=function(S,W){if(!Ik)return PL.get(""+S,W)}; g.$0=function(S,W,m){Ik||PL.remove(""+S,W===void 0?"/":W,m===void 0?"youtube.com":m)}; oF_=function(){if(!PL.isEnabled())return!1;if(!PL.isEmpty())return!0;PL.set("TESTCOOKIESENABLED","1",{xf:60});if(PL.get("TESTCOOKIESENABLED")!=="1")return!1;PL.remove("TESTCOOKIESENABLED");return!0}; g.n=function(S,W){if(S)return S[W.name]}; h$=function(S){var W=g.D4("INNERTUBE_HOST_OVERRIDE");W&&(S=String(W)+String(l3(S)));return S}; rsP=function(S){var W={};g.Qi("json_condensed_response")&&(W.prettyPrint="false");return S=Y0(S,W)}; t$=function(S,W){var m=m===void 0?{}:m;S={method:W===void 0?"POST":W,mode:Gc(S)?"same-origin":"cors",credentials:Gc(S)?"same-origin":"include"};W={};for(var a=g.R(Object.keys(m)),J=a.next();!J.done;J=a.next())J=J.value,m[J]&&(W[J]=m[J]);Object.keys(W).length>0&&(S.headers=W);return S}; A$=function(){var S=/Chrome\/(\d+)/.exec(g.mW());return S?parseFloat(S[1]):NaN}; Zm=function(){var S=/\sCobalt\/(\S+)\s/.exec(g.mW());if(!S)return NaN;var W=[];S=g.R(S[1].split("."));for(var m=S.next();!m.done;m=S.next())m=parseInt(m.value,10),m>=0&&W.push(m);return parseFloat(W.join("."))}; bO=function(){return g.Ni("android")&&g.Ni("chrome")&&!(g.Ni("trident/")||g.Ni("edge/"))&&!g.Ni("cobalt")}; g.ok=function(){return g.Ni("cobalt")}; ru=function(){return g.Ni("cobalt")&&g.Ni("appletv")}; C0=function(){return g.Ni("(ps3; leanback shell)")||g.Ni("ps3")&&g.ok()}; CmP=function(){return g.Ni("(ps4; leanback shell)")||g.Ni("ps4")&&g.ok()}; g.cs7=function(){return g.ok()&&(g.Ni("ps4 vr")||g.Ni("ps4 pro vr"))}; cL=function(){var S=/WebKit\/([0-9]+)/.exec(g.mW());return!!(S&&parseInt(S[1],10)>=600)}; Dm=function(){var S=/WebKit\/([0-9]+)/.exec(g.mW());return!!(S&&parseInt(S[1],10)>=602)}; Dk_=function(){return g.Ni("iemobile")||g.Ni("windows phone")&&g.Ni("edge")}; WX=function(){return(wu||SY)&&g.Ni("applewebkit")&&!g.Ni("version")&&(!g.Ni("safari")||g.Ni("gsa/"))}; ax=function(){return g.mm&&g.Ni("version/")}; JO=function(){return g.Ni("smart-tv")&&g.Ni("samsung")}; g.Ni=function(S){var W=g.mW();return W?W.toLowerCase().indexOf(S)>=0:!1}; BX=function(){return l0l()||WX()||ax()?!0:g.D4("EOM_VISITOR_DATA")?!1:!0}; E2=function(S,W){return W===void 0||W===null?S:W==="1"||W===!0||W===1||W==="True"?!0:!1}; z1=function(S,W,m){for(var a in m)if(m[a]==W)return m[a];return S}; yw=function(S,W){return W===void 0||W===null?S:Number(W)}; YR=function(S,W){return W===void 0||W===null?S:W.toString()}; G1=function(S,W){if(W){if(S==="fullwidth")return Infinity;if(S==="fullheight")return 0}return S&&(W=S.match(wQ7))&&(S=Number(W[2]),W=Number(W[1]),!isNaN(S)&&!isNaN(W)&&S>0)?W/S:NaN}; K5=function(S){var W=S.docid||S.video_id||S.videoId||S.id;if(W)return W;W=S.raw_player_response;W||(S=S.player_response)&&(W=JSON.parse(S));return W&&W.videoDetails&&W.videoDetails.videoId||null}; Sil=function(S){return T1(S,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.q5=function(S){return S==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||S==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; T1=function(S,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 m=S.raw_embedded_player_response;if(!m&&(S=S.embedded_player_response))try{m=JSON.parse(S)}catch(a){return W}return m?z1(W,m.embeddedPlayerMode,WM_):W}; FY=function(S){tN.call(this,S.message||S.description||S.name);this.isMissing=S instanceof p5;this.isTimeout=S instanceof L0&&S.errorCode=="net.timeout";this.isCanceled=S instanceof d6}; p5=function(){tN.call(this,"Biscotti ID is missing from server")}; mlP=function(){if(g.Qi("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!BX())return Error("User has not consented - not fetching biscotti id.");var S=g.D4("PLAYER_VARS",{});if(g.L$(S,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Sil(S))return Error("Biscotti id fetching has been disabled for pfl.")}; EZP=function(){var S=mlP();if(S!==void 0)return eV(S);Vw||(Vw=Rk("//googleads.g.doubleclick.net/pagead/id",awD).then(JXD).QB(function(W){return B0P(2,W)})); return Vw}; JXD=function(S){S=S.xhr.responseText;if(!rh(S,")]}'"))throw new p5;S=JSON.parse(S.substr(4));if((S.type||1)>1)throw new p5;S=S.id;gF6(S);Vw=du(S);zKj(18E5,2);return S}; B0P=function(S,W){W=new FY(W);gF6("");Vw=iO(W);S>0&&zKj(12E4,S-1);throw W;}; zKj=function(S,W){g.s7(function(){Rk("//googleads.g.doubleclick.net/pagead/id",awD).then(JXD,function(m){return B0P(W,m)}).QB(g.Zt)},S)}; yXQ=function(){try{var S=g.v9("yt.ads.biscotti.getId_");return S?S():EZP()}catch(W){return eV(W)}}; GhP=function(S){S&&(S.dataset?S.dataset[YiP()]="true":M$_(S))}; KMP=function(S){return S?S.dataset?S.dataset[YiP()]:S.getAttribute("data-loaded"):null}; YiP=function(){return T0O.loaded||(T0O.loaded="loaded".replace(/\-([a-z])/g,function(S,W){return W.toUpperCase()}))}; qic=function(){var S=document;if("visibilityState"in S)return S.visibilityState;var W=n5+"VisibilityState";if(W in S)return S[W]}; s2=function(S,W){var m;ap(S,function(a){m=W[a];return!!m}); return m}; u7=function(S){if(S.requestFullscreen)S=S.requestFullscreen(void 0);else if(S.webkitRequestFullscreen)S=S.webkitRequestFullscreen();else if(S.mozRequestFullScreen)S=S.mozRequestFullScreen();else if(S.msRequestFullscreen)S=S.msRequestFullscreen();else if(S.webkitEnterFullscreen)S=S.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return S instanceof Promise?S:Promise.resolve()}; jY=function(S){var W;g.gU()?O2()==S&&(W=document):W=S;return W&&(S=s2(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))?(W=S.call(W),W instanceof Promise?W:Promise.resolve()):Promise.resolve()}; pH7=function(S){return g.Nx(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in S})}; FMP=function(){var S=document;return g.Nx(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(W){return"on"+W.toLowerCase()in S})}; g.gU=function(){return!!s2(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; O2=function(S){S=S===void 0?!1:S;var W=s2(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(S)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null}; Qw=function(S){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(S=S||window.event){this.event=S;for(var W in S)W in V8D||(this[W]=S[W]);this.scale=S.scale;this.rotation=S.rotation;var m=S.target||S.srcElement;m&&m.nodeType==3&&(m=m.parentNode);this.target=m;var a=S.relatedTarget; if(a)try{a=a.nodeName?a:null}catch(J){a=null}else this.type=="mouseover"?a=S.fromElement:this.type=="mouseout"&&(a=S.toElement);this.relatedTarget=a;this.clientX=S.clientX!=void 0?S.clientX:S.pageX;this.clientY=S.clientY!=void 0?S.clientY:S.pageY;this.keyCode=S.keyCode?S.keyCode:S.which;this.charCode=S.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=S.altKey;this.ctrlKey=S.ctrlKey;this.shiftKey=S.shiftKey;this.metaKey=S.metaKey;this.C=S.pageX;this.N=S.pageY}}catch(J){}}; nZl=function(S){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;S.C=S.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);S.N=S.clientY+W}}; s9K=function(S,W,m,a){a=a===void 0?{}:a;S.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 MK(XY,function(J){var B=typeof J[4]==="boolean"&&J[4]==!!a,E=g.Ln(J[4])&&g.Ln(a)&&g.RS(J[4],a);return!!J.length&&J[0]==S&&J[1]==W&&J[2]==m&&(B||E)})}; g.vX=function(S,W,m,a){a=a===void 0?{}:a;if(!S||!S.addEventListener&&!S.attachEvent)return"";var J=s9K(S,W,m,a);if(J)return J;J=++uyP.count+"";var B=!(W!="mouseenter"&&W!="mouseleave"||!S.addEventListener||"onmouseenter"in document);var E=B?function(y){y=new Qw(y);if(!In(y.relatedTarget,function(Y){return Y==S},!0))return y.currentTarget=S,y.type=W,m.call(S,y)}:function(y){y=new Qw(y); y.currentTarget=S;return m.call(S,y)}; E=g.my(E);S.addEventListener?(W=="mouseenter"&&B?W="mouseover":W=="mouseleave"&&B?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),gZ7()||typeof a==="boolean"?S.addEventListener(W,E,a):S.addEventListener(W,E,!!a.capture)):S.attachEvent("on"+W,E);XY[J]=[S,W,m,E,a];return J}; j9K=function(S){return ORO(S,function(W){return g.JU(W,"ytp-ad-has-logging-urls")})}; ORO=function(S,W){var m=document.body||document;return g.vX(m,"click",function(a){var J=In(a.target,function(B){return B===m||W(B)},!0); J&&J!==m&&!J.disabled&&(a.currentTarget=J,S.call(J,a))})}; g.HX=function(S){S&&(typeof S=="string"&&(S=[S]),g.V3(S,function(W){if(W in XY){var m=XY[W],a=m[0],J=m[1],B=m[3];m=m[4];a.removeEventListener?gZ7()||typeof m==="boolean"?a.removeEventListener(J,B,m):a.removeEventListener(J,B,!!m.capture):a.detachEvent&&a.detachEvent("on"+J,B);delete XY[W]}}))}; l7=function(S){for(var W in XY)XY[W][0]==S&&g.HX(W)}; M5=function(S){S=S||window.event;var W;S.composedPath&&typeof S.composedPath==="function"?W=S.composedPath():W=S.path;W&&W.length?S=W[0]:(S=S||window.event,S=S.target||S.srcElement,S.nodeType==3&&(S=S.parentNode));return S}; U2=function(S){this.Z=S;this.C=null;this.j=0;this.V=null;this.X=0;this.N=[];for(S=0;S<4;S++)this.N.push(0);this.B=0;this.vn=g.vX(window,"mousemove",(0,g.dN)(this.bY,this));this.S=g.uO((0,g.dN)(this.N2,this),25)}; L5=function(S){g.A.call(this);this.V=[];this.vv=S||this}; Rx=function(S,W,m,a){for(var J=0;J0?m:0;m=a?Date.now()+a*1E3:0;if((a=a?g.xR.H6():g.xR.n4())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{a.set(S,W,m)}catch(J){a.remove(S)}}}; g.dU=function(S){var W=g.xR.n4(),m=g.xR.H6();if(!W&&!m||!window.JSON)return null;try{var a=W.get(S)}catch(J){}if(typeof a!=="string")try{a=m.get(S)}catch(J){}if(typeof a!=="string")return null;try{a=JSON.parse(a,void 0)}catch(J){}return a}; XHP=function(){var S=g.xR.H6();if(S&&(S=S.U0("yt-player-quality")))return S.creation}; g.Ix=function(S){try{var W=g.xR.n4(),m=g.xR.H6();W&&W.remove(S);m&&m.remove(S)}catch(a){}}; g.PX=function(){return g.dU("yt-remote-session-screen-id")}; vZQ=function(S){var W=this;this.N=void 0;this.C=!1;S.addEventListener("beforeinstallprompt",function(m){m.preventDefault();W.N=m}); S.addEventListener("appinstalled",function(){W.C=!0},{once:!0})}; f5=function(){if(!g.OQ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.OQ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.OQ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.OQ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.OQ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(S){return"WEB_DISPLAY_MODE_UNKNOWN"}}; kR=function(){this.h9=!0}; HR7=function(){kR.instance||(kR.instance=new kR);return kR.instance}; lw_=function(S){switch(S){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}}; M8P=function(){this.C=g.D4("ALT_PREF_COOKIE_NAME","PREF");this.N=g.D4("ALT_PREF_COOKIE_DOMAIN","youtube.com");var S=g.k0(this.C);S&&this.parse(S)}; g.hO=function(){$R||($R=new M8P);return $R}; AO=function(S,W){var m="f"+(Math.floor(S/31)+1);S=1<10&&zH.shift()))}; Yo=function(S,W){Bq||(Ej?Ej.logEvent(S,W):(zH.push({type:"EVENT",eventType:S,payload:W}),zH.length>10&&zH.shift()))}; GH=function(S){if(S.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; KO=function(S){return S.substr(0,S.indexOf(":"))||S}; g.TH=function(S,W,m,a,J){W=W===void 0?{}:W;m=m===void 0?Iwc[S]:m;a=a===void 0?PsQ[S]:a;J=J===void 0?fwP[S]:J;g.uc.call(this,m,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:S},W));this.type=S;this.message=m;this.level=a;this.C=J;Object.setPrototypeOf(this,g.TH.prototype)}; qD=function(S,W){g.TH.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:S},Iwc.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,qD.prototype)}; pO=function(S,W){var m=Error.call(this);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.index=S;this.objectStore=W;Object.setPrototypeOf(this,pO.prototype)}; VS=function(S,W,m,a){W=KO(W);var J=S instanceof Error?S:Error("Unexpected error: "+S);if(J instanceof g.TH)return J;S={objectStoreNames:m,dbName:W,dbVersion:a};if(J.name==="QuotaExceededError")return new g.TH("QUOTA_EXCEEDED",S);if(g.F1&&J.name==="UnknownError")return new g.TH("QUOTA_MAYBE_EXCEEDED",S);if(J instanceof pO)return new g.TH("MISSING_INDEX",Object.assign({},S,{objectStore:J.objectStore,index:J.index}));if(J.name==="InvalidStateError"&&khD.some(function(B){return J.message.includes(B)}))return new g.TH("EXECUTE_TRANSACTION_ON_CLOSED_DB", S); if(J.name==="AbortError")return new g.TH("UNKNOWN_ABORT",S,J.message);J.args=[Object.assign({},S,{name:"IdbError",ud:J.name})];J.level="WARNING";return J}; g.nO=function(S,W,m){var a=Jn();return new g.TH("IDB_NOT_SUPPORTED",{context:{caller:S,publicName:W,version:m,hasSucceededOnce:a==null?void 0:a.hasSucceededOnce}})}; $lP=function(S){if(!S)throw Error();throw S;}; hK7=function(S){return S}; sj=function(S){this.C=S}; g.uP=function(S){function W(J){if(a.state.status==="PENDING"){a.state={status:"REJECTED",reason:J};J=g.R(a.N);for(var B=J.next();!B.done;B=J.next())B=B.value,B()}} function m(J){if(a.state.status==="PENDING"){a.state={status:"FULFILLED",value:J};J=g.R(a.C);for(var B=J.next();!B.done;B=J.next())B=B.value,B()}} var a=this;this.state={status:"PENDING"};this.C=[];this.N=[];S=S.C;try{S(m,W)}catch(J){W(J)}}; t8l=function(S,W,m,a,J){try{if(S.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var B=m(S.state.value);B instanceof g.uP?Oj(S,W,B,a,J):a(B)}catch(E){J(E)}}; AXc=function(S,W,m,a,J){try{if(S.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var B=m(S.state.reason);B instanceof g.uP?Oj(S,W,B,a,J):a(B)}catch(E){J(E)}}; Oj=function(S,W,m,a,J){W===m?J(new TypeError("Circular promise chain detected.")):m.then(function(B){B instanceof g.uP?Oj(S,W,B,a,J):a(B)},function(B){J(B)})}; ZRc=function(S,W,m){function a(){m(S.error);B()} function J(){W(S.result);B()} function B(){try{S.removeEventListener("success",J),S.removeEventListener("error",a)}catch(E){}} S.addEventListener("success",J);S.addEventListener("error",a)}; N0D=function(S){return new Promise(function(W,m){ZRc(S,W,m)})}; jF=function(S){return new g.uP(new sj(function(W,m){ZRc(S,W,m)}))}; QS=function(S,W){return new g.uP(new sj(function(m,a){function J(){var B=S?W(S):null;B?B.then(function(E){S=E;J()},a):m()} J()}))}; bRP=function(S,W){this.request=S;this.cursor=W}; oZl=function(S){return jF(S).then(function(W){return W?new bRP(S,W):null})}; g.rXK=function(S){S.cursor.continue(void 0);return oZl(S.request)}; CsK=function(S,W){this.C=S;this.options=W;this.transactionCount=0;this.B=Math.round((0,g.X1)());this.N=!1}; vq=function(){return g.Qi("idb_immediate_commit")}; g.lP=function(S,W,m){S=S.C.createObjectStore(W,m);return new Hq(S)}; MD=function(S,W){S.C.objectStoreNames.contains(W)&&S.C.deleteObjectStore(W)}; g.R6=function(S,W,m){return g.Uj(S,[W],{mode:"readwrite",L3:!0,commit:vq()},function(a){return g.LO(a.objectStore(W),m)})}; g.Uj=function(S,W,m,a){var J,B,E,y,Y,G,K,T,p,q,F,O;return g.k(function(X){switch(X.C){case 1:var l={mode:"readonly",L3:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof m==="string"?l.mode=m:Object.assign(l,m);J=l;S.transactionCount++;B=J.L3?3:1;E=0;case 2:if(y){X.cn(4);break}E++;Y=Math.round((0,g.X1)());g.EQ(X,5);G=S.C.transaction(W,J.mode);l=!!J.commit;var M=new eF(G);l=cXK(M,a,l);return g.P(X,l,7);case 7:return K=X.N,T=Math.round((0,g.X1)()),DlO(S,Y,T,E,void 0,W.join(),J),X.return(K);case 5:p=g.Gg(X); q=Math.round((0,g.X1)());F=VS(p,S.C.name,W.join(),S.C.version);if((O=F instanceof g.TH&&!F.C)||E>=B)DlO(S,Y,q,E,F,W.join(),J),y=F;X.cn(2);break;case 4:return X.return(Promise.reject(y))}})}; DlO=function(S,W,m,a,J,B,E){W=m-W;J?(J instanceof g.TH&&(J.type==="QUOTA_EXCEEDED"||J.type==="QUOTA_MAYBE_EXCEEDED")&&Yo("QUOTA_EXCEEDED",{dbName:KO(S.C.name),objectStoreNames:B,transactionCount:S.transactionCount,transactionMode:E.mode}),J instanceof g.TH&&J.type==="UNKNOWN_ABORT"&&(m-=S.B,m<0&&m>=2147483648&&(m=0),Yo("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:B,transactionDuration:W,transactionCount:S.transactionCount,dbDuration:m}),S.N=!0),wHK(S,!1,a,B,W,E.tag),yS(J)):wHK(S,!0,a,B,W, E.tag)}; wHK=function(S,W,m,a,J,B){Yo("TRANSACTION_ENDED",{objectStoreNames:a,connectionHasUnknownAbortedTransaction:S.N,duration:J,isSuccessful:W,tryCount:m,tag:B===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":B})}; Hq=function(S){this.C=S}; g.xo=function(S,W,m){S.C.createIndex(W,m,{unique:!1})}; SG6=function(S,W){return g.iP(S,{query:W},function(m){return m.delete().then(function(){return g.da(m)})}).then(function(){})}; Wu_=function(S,W,m){var a=[];return g.iP(S,{query:W},function(J){if(!(m!==void 0&&a.length>=m))return a.push(J.getValue()),g.da(J)}).then(function(){return a})}; ahX=function(S){return"getAllKeys"in IDBObjectStore.prototype?jF(S.C.getAllKeys(void 0,void 0)):mG_(S)}; mG_=function(S){var W=[];return g.J67(S,{query:void 0},function(m){W.push(m.cursor.primaryKey);return g.rXK(m)}).then(function(){return W})}; g.LO=function(S,W,m){return jF(S.C.put(W,m))}; g.iP=function(S,W,m){S=S.C.openCursor(W.query,W.direction);return I6(S).then(function(a){return QS(a,m)})}; g.J67=function(S,W,m){var a=W.query;W=W.direction;S="openKeyCursor"in IDBObjectStore.prototype?S.C.openKeyCursor(a,W):S.C.openCursor(a,W);return oZl(S).then(function(J){return QS(J,m)})}; eF=function(S){var W=this;this.C=S;this.N=new Map;this.aborted=!1;this.done=new Promise(function(m,a){W.C.addEventListener("complete",function(){m()}); W.C.addEventListener("error",function(J){J.currentTarget===J.target&&a(W.C.error)}); W.C.addEventListener("abort",function(){var J=W.C.error;if(J)a(J);else if(!W.aborted){J=g.TH;for(var B=W.C.objectStoreNames,E=[],y=0;y=m))return a.push(J.getValue()),g.da(J)}).then(function(){return a})}; g.Pq=function(S,W,m){S=S.C.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return I6(S).then(function(a){return QS(a,m)})}; fO=function(S,W){this.request=S;this.cursor=W}; I6=function(S){return jF(S).then(function(W){return W?new fO(S,W):null})}; g.da=function(S){S.cursor.continue(void 0);return I6(S.request)}; zec=function(S,W,m){return new Promise(function(a,J){function B(){p||(p=new CsK(E.result,{closed:T}));return p} var E=W!==void 0?self.indexedDB.open(S,W):self.indexedDB.open(S);var y=m.blocked,Y=m.blocking,G=m.saX,K=m.upgrade,T=m.closed,p;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"&&Yo("IDB_DATA_CORRUPTED",{reason:q.dataLossMessage||"unknown reason",dbName:KO(S)});var F=B(),O=new eF(E.transaction); K&&K(F,function(X){return q.oldVersion=X},O); O.done.catch(function(X){J(X)})}catch(X){J(X)}}); E.addEventListener("success",function(){var q=E.result;Y&&q.addEventListener("versionchange",function(){Y(B())}); q.addEventListener("close",function(){Yo("IDB_UNEXPECTEDLY_CLOSED",{dbName:KO(S),dbVersion:q.version});G&&G()}); a(B())}); E.addEventListener("error",function(){J(E.error)}); y&&E.addEventListener("blocked",function(){y()})})}; y6_=function(S,W,m){m=m===void 0?{}:m;return zec(S,W,m)}; ko=function(S,W){W=W===void 0?{}:W;var m,a,J,B;return g.k(function(E){if(E.C==1)return g.EQ(E,2),m=self.indexedDB.deleteDatabase(S),a=W,(J=a.blocked)&&m.addEventListener("blocked",function(){J()}),g.P(E,N0D(m),4); if(E.C!=2)return g.Yp(E,0);B=g.Gg(E);throw VS(B,S,"",-1);})}; $o=function(S,W){this.name=S;this.options=W;this.B=!0;this.X=this.j=0}; YGX=function(S,W){return new g.TH("INCOMPATIBLE_DB_VERSION",{dbName:S.name,oldVersion:S.options.version,newVersion:W})}; g.hn=function(S,W){if(!W)throw g.nO("openWithToken",KO(S.name));return S.open()}; GeX=function(S,W){var m;return g.k(function(a){if(a.C==1)return g.P(a,g.hn(tn,W),2);m=a.N;return a.return(g.Uj(m,["databases"],{L3:!0,mode:"readwrite"},function(J){var B=J.objectStore("databases");return B.get(S.actualName).then(function(E){if(E?S.actualName!==E.actualName||S.publicName!==E.publicName||S.userIdentifier!==E.userIdentifier:1)return g.LO(B,S).then(function(){})})}))})}; An=function(S,W){var m;return g.k(function(a){if(a.C==1)return S?g.P(a,g.hn(tn,W),2):a.return();m=a.N;return a.return(m.delete("databases",S))})}; KuP=function(S,W){var m,a;return g.k(function(J){return J.C==1?(m=[],g.P(J,g.hn(tn,W),2)):J.C!=3?(a=J.N,g.P(J,g.Uj(a,["databases"],{L3:!0,mode:"readonly"},function(B){m.length=0;return g.iP(B.objectStore("databases"),{},function(E){S(E.getValue())&&m.push(E.getValue());return g.da(E)})}),3)):J.return(m)})}; TjK=function(S,W){return KuP(function(m){return m.publicName===S&&m.userIdentifier!==void 0},W)}; qGO=function(){var S,W,m;return g.k(function(a){switch(a.C){case 1:S=Jn();if((W=S)==null?0:W.hasSucceededOnce)return a.return(!0);var J;if(!(J=Zf&&cL()&&!Dm()||g.ND)){try{J=self;var B=!!(J.indexedDB&&J.IDBIndex&&J.IDBKeyRange&&J.IDBObjectStore)}catch(E){B=!1}J=!B}if(J||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return a.return(!1);g.EQ(a,2);m={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.P(a,GeX(m,bP),4);case 4:return g.P(a, An("yt-idb-test-do-not-use",bP),5);case 5:return a.return(!0);case 2:return g.Gg(a),a.return(!1)}})}; pPP=function(){if(o6!==void 0)return o6;Bq=!0;return o6=qGO().then(function(S){Bq=!1;var W;if((W=a6())!=null&&W.C){var m;W={hasSucceededOnce:((m=Jn())==null?void 0:m.hasSucceededOnce)||S};var a;(a=a6())==null||a.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return S})}; ra=function(){return g.v9("ytglobal.idbToken_")||void 0}; g.CO=function(){var S=ra();return S?Promise.resolve(S):pPP().then(function(W){W?(g.j$("ytglobal.idbToken_",bP),W=bP):W=void 0;return W})}; FuQ=function(S){if(!g.ox())throw S=new g.TH("AUTH_INVALID",{dbName:S}),yS(S),S;var W=g.b7();return{actualName:S+":"+W,publicName:S,userIdentifier:W}}; V67=function(S,W,m,a){var J,B,E,y,Y,G;return g.k(function(K){switch(K.C){case 1:return B=(J=Error().stack)!=null?J:"",g.P(K,g.CO(),2);case 2:E=K.N;if(!E)throw y=g.nO("openDbImpl",S,W),g.Qi("ytidb_async_stack_killswitch")||(y.stack=y.stack+"\n"+B.substring(B.indexOf("\n")+1)),yS(y),y;GH(S);Y=m?{actualName:S,publicName:S,userIdentifier:void 0}:FuQ(S);g.EQ(K,3);return g.P(K,GeX(Y,E),5);case 5:return g.P(K,y6_(Y.actualName,W,a),6);case 6:return K.return(K.N);case 3:return G=g.Gg(K),g.EQ(K,7),g.P(K,An(Y.actualName, E),9);case 9:g.Yp(K,8);break;case 7:g.Gg(K);case 8:throw G;}})}; nAc=function(S,W,m){m=m===void 0?{}:m;return V67(S,W,!1,m)}; sGG=function(S,W,m){m=m===void 0?{}:m;return V67(S,W,!0,m)}; ucK=function(S,W){W=W===void 0?{}:W;var m,a;return g.k(function(J){if(J.C==1)return g.P(J,g.CO(),2);if(J.C!=3){m=J.N;if(!m)return J.return();GH(S);a=FuQ(S);return g.P(J,ko(a.actualName,W),3)}return g.P(J,An(a.actualName,m),0)})}; gAP=function(S,W,m){S=S.map(function(a){return g.k(function(J){return J.C==1?g.P(J,ko(a.actualName,W),2):g.P(J,An(a.actualName,m),0)})}); return Promise.all(S).then(function(){})}; Ou7=function(S){var W=W===void 0?{}:W;var m,a;return g.k(function(J){if(J.C==1)return g.P(J,g.CO(),2);if(J.C!=3){m=J.N;if(!m)return J.return();GH(S);return g.P(J,TjK(S,m),3)}a=J.N;return g.P(J,gAP(a,W,m),0)})}; jG_=function(S,W){W=W===void 0?{}:W;var m;return g.k(function(a){if(a.C==1)return g.P(a,g.CO(),2);if(a.C!=3){m=a.N;if(!m)return a.return();GH(S);return g.P(a,ko(S,W),3)}return g.P(a,An(S,m),0)})}; cq=function(S,W){$o.call(this,S,W);this.options=W;GH(S)}; QG_=function(S,W){var m;return function(){m||(m=new cq(S,W));return m}}; g.Df=function(S,W){return QG_(S,W)}; WU=function(S){return g.hn(XPG(),S)}; vAP=function(S,W,m,a){var J,B,E;return g.k(function(y){switch(y.C){case 1:return J={config:S,hashData:W,timestamp:a!==void 0?a:(0,g.X1)()},g.P(y,WU(m),2);case 2:return B=y.N,g.P(y,B.clear("hotConfigStore"),3);case 3:return g.P(y,g.R6(B,"hotConfigStore",J),4);case 4:return E=y.N,y.return(E)}})}; Huj=function(S,W,m,a,J){var B,E,y;return g.k(function(Y){switch(Y.C){case 1:return B={config:S,hashData:W,configData:m,timestamp:J!==void 0?J:(0,g.X1)()},g.P(Y,WU(a),2);case 2:return E=Y.N,g.P(Y,E.clear("coldConfigStore"),3);case 3:return g.P(Y,g.R6(E,"coldConfigStore",B),4);case 4:return y=Y.N,Y.return(y)}})}; lh7=function(S){var W,m;return g.k(function(a){return a.C==1?g.P(a,WU(S),2):a.C!=3?(W=a.N,m=void 0,g.P(a,g.Uj(W,["coldConfigStore"],{mode:"readwrite",L3:!0},function(J){return g.Pq(J.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(B){m=B.getValue()})}),3)):a.return(m)})}; M6O=function(S){var W,m;return g.k(function(a){return a.C==1?g.P(a,WU(S),2):a.C!=3?(W=a.N,m=void 0,g.P(a,g.Uj(W,["hotConfigStore"],{mode:"readwrite",L3:!0},function(J){return g.Pq(J.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(B){m=B.getValue()})}),3)):a.return(m)})}; UGK=function(){return g.k(function(S){return g.P(S,Ou7("ytGcfConfig"),0)})}; mB=function(){g.A.call(this);this.N=[];this.C=[];var S=g.v9("yt.gcf.config.hotUpdateCallbacks");S?(this.N=[].concat(g.x(S)),this.C=S):(this.C=[],g.j$("yt.gcf.config.hotUpdateCallbacks",this.C))}; y_=function(){var S=this;this.X=!1;this.B=this.j=0;this.V=new mB;this.f3={EUU:function(){S.X=!0}, Wl_:function(){return S.C}, Sj9:function(W){ar(S,W)}, N_:function(W){S.N_(W)}, rx6:function(W){Jv(S,W)}, YX:function(){return S.coldHashData}, xX:function(){return S.hotHashData}, UmY:function(){return S.N}, KlX:function(){return BU()}, Jj6:function(){return Er()}, rjD:function(){return g.v9("yt.gcf.config.coldHashData")}, zl2:function(){return g.v9("yt.gcf.config.hotHashData")}, jeY:function(){Lu6(S)}, s4_:function(){S.N_(void 0);zo(S);delete y_.instance}, FmU:function(W){S.B=W}, Ek_:function(){return S.B}}}; Rel=function(){if(!y_.instance){var S=new y_;y_.instance=S}return y_.instance}; iuj=function(S){var W;g.k(function(m){if(m.C==1)return g.Qi("start_client_gcf")||g.Qi("delete_gcf_config_db")?g.Qi("start_client_gcf")?g.P(m,g.CO(),3):m.cn(2):m.return();m.C!=2&&((W=m.N)&&g.ox()&&!g.Qi("delete_gcf_config_db")?(S.X=!0,Lu6(S)):(eeK(S),xGP(S)));return g.Qi("delete_gcf_config_db")?g.P(m,UGK(),0):m.cn(0)})}; YD=function(){var S;return(S=Er())!=null?S:g.D4("RAW_HOT_CONFIG_GROUP")}; dG6=function(S){var W,m,a,J,B,E;return g.k(function(y){switch(y.C){case 1:if(S.N)return y.return(Er());if(!S.X)return W=g.nO("getHotConfig IDB not initialized"),ak(W),y.return(Promise.reject(W));m=ra();a=g.D4("TIME_CREATED_MS");if(!m){J=g.nO("getHotConfig token error");ak(J);y.cn(2);break}return g.P(y,M6O(m),3);case 3:if((B=y.N)&&B.timestamp>a)return ar(S,B.config),S.N_(B.hashData),y.return(Er());case 2:xGP(S);if(!(m&&S.N&&S.hotHashData)){y.cn(4);break}return g.P(y,vAP(S.N,S.hotHashData,m,a),4);case 4:return S.N? y.return(Er()):(E=new g.uc("Config not available in ytConfig"),ak(E),y.return(Promise.reject(E)))}})}; PeQ=function(S){var W,m,a,J,B,E;return g.k(function(y){switch(y.C){case 1:if(S.C)return y.return(BU());if(!S.X)return W=g.nO("getColdConfig IDB not initialized"),ak(W),y.return(Promise.reject(W));m=ra();a=g.D4("TIME_CREATED_MS");if(!m){J=g.nO("getColdConfig");ak(J);y.cn(2);break}return g.P(y,lh7(m),3);case 3:if((B=y.N)&&B.timestamp>a)return Jv(S,B.config),IhD(S,B.configData),zo(S,B.hashData),y.return(BU());case 2:eeK(S);if(!(m&&S.C&&S.coldHashData&&S.configData)){y.cn(4);break}return g.P(y,Huj(S.C, S.coldHashData,S.configData,m,a),4);case 4:return S.C?y.return(BU()):(E=new g.uc("Config not available in ytConfig"),ak(E),y.return(Promise.reject(E)))}})}; Lu6=function(S){if(!S.N||!S.C){if(!ra()){var W=g.nO("scheduleGetConfigs");ak(W)}S.j||(S.j=g.h6.U$(function(){return g.k(function(m){switch(m.C){case 1:return g.EQ(m,2),g.P(m,dG6(S),4);case 4:g.Yp(m,3);break;case 2:g.Gg(m);case 3:return g.EQ(m,5),g.P(m,PeQ(S),7);case 7:g.Yp(m,6);break;case 5:g.Gg(m);case 6:S.j&&(S.j=0),g.B9(m)}})},100))}}; var gXO=function(){return Fl[z[7]](this,8)}; fh_=function(S,W,m){var a,J,B;return g.k(function(E){switch(E.C){case 1:if(!g.Qi("start_client_gcf")){E.cn(0);break}m&&ar(S,m);S.N_(W);a=ra();if(!a){E.cn(3);break}if(m){E.cn(4);break}return g.P(E,M6O(a),5);case 5:J=E.N,m=(B=J)==null?void 0:B.config;case 4:return g.P(E,vAP(m,W,a),3);case 3:if(m)for(var y=m,Y=g.R(S.V.C),G=Y.next();!G.done;G=Y.next())G=G.value,G(y);g.B9(E)}})}; kec=function(S,W,m){var a,J,B,E;return g.k(function(y){if(y.C==1){if(!g.Qi("start_client_gcf"))return y.cn(0);zo(S,W);return(a=ra())?m?y.cn(4):g.P(y,lh7(a),5):y.cn(0)}y.C!=4&&(J=y.N,m=(B=J)==null?void 0:B.config);if(!m)return y.cn(0);E=m.configData;return g.P(y,Huj(m,W,E,a),0)})}; $G6=function(){var S=Rel(),W=(0,g.X1)()-S.B;if(!(S.B!==0&&W0&&(W.request={internalExperimentFlags:m});t6K(S,void 0,W);A6P(void 0,W);Zu6(void 0,W);Nj6(S,void 0,W);buP(void 0,W);g.Qi("start_client_gcf")&&oA6(void 0,W);g.D4("DELEGATED_SESSION_ID")&& !g.Qi("pageid_as_header_web")&&(W.user={onBehalfOfUser:g.D4("DELEGATED_SESSION_ID")});!g.Qi("fill_delegate_context_in_gel_killswitch")&&(S=g.D4("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:S}));S=g.D4("INNERTUBE_CONTEXT");var a;if(g.Qi("enable_persistent_device_token")&&(S==null?0:(a=S.client)==null?0:a.rolloutToken)){var J;W.client.rolloutToken=S==null?void 0:(J=S.client)==null?void 0:J.rolloutToken}a=Object;J=a.assign;S=W.client; m={};for(var B=g.R(Object.entries(Gj(g.D4("DEVICE","")))),E=B.next();!E.done;E=B.next()){var y=g.R(E.value);E=y.next().value;y=y.next().value;E==="cbrand"?m.deviceMake=y:E==="cmodel"?m.deviceModel=y:E==="cbr"?m.browserName=y:E==="cbrver"?m.browserVersion=y:E==="cos"?m.osName=y:E==="cosver"?m.osVersion=y:E==="cplatform"&&(m.platform=y)}W.client=J.call(a,S,m);return W}; t6K=function(S,W,m){S=S.N3;if(S==="WEB"||S==="MWEB"||S===1||S===2)if(W){m=hL(W,xn,96)||new xn;var a=f5();a=Object.keys(r6P).indexOf(a);a=a===-1?null:a;a!==null&&aF(m,3,a);Zs(W,xn,96,m)}else m&&(m.client.mainAppWebInfo=(a=m.client.mainAppWebInfo)!=null?a:{},m.client.mainAppWebInfo.webDisplayMode=f5())}; A6P=function(S,W){var m=g.v9("yt.embedded_player.embed_url");m&&(S?(W=hL(S,fK,7)||new fK,We(W,4,m),Zs(S,fK,7,W)):W&&(W.thirdParty={embedUrl:m}))}; Zu6=function(S,W){var m;if(g.Qi("web_log_memory_total_kbytes")&&((m=g.OQ.navigator)==null?0:m.deviceMemory)){var a;m=(a=g.OQ.navigator)==null?void 0:a.deviceMemory;S?gs(S,95,AT(m*1E6)):W&&(W.client.memoryTotalKbytes=""+m*1E6)}}; Nj6=function(S,W,m){if(S.appInstallData)if(W){var a;m=(a=hL(W,eC,62))!=null?a:new eC;We(m,6,S.appInstallData);Zs(W,eC,62,m)}else m&&(m.client.configInfo=m.client.configInfo||{},m.client.configInfo.appInstallData=S.appInstallData)}; buP=function(S,W){var m=eKQ();m&&(S?aF(S,61,CeO[m]):W&&(W.client.connectionType=m));g.Qi("web_log_effective_connection_type")&&(m=iR_())&&(S?aF(S,94,c6_[m]):W&&(W.client.effectiveConnectionType=m))}; DGD=function(S,W,m){m=m===void 0?{}:m;var a={};g.D4("EOM_VISITOR_DATA")?a={"X-Goog-EOM-Visitor-Id":g.D4("EOM_VISITOR_DATA")}:a={"X-Goog-Visitor-Id":m.visitorData||g.D4("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return a;W=m.Ek||g.D4("AUTHORIZATION");W||(S?W="Bearer "+g.v9("gapi.auth.getToken")().access_token:(S=HR7().jP(To),g.Qi("pageid_as_header_web")||delete S["X-Goog-PageId"],a=Object.assign({},a,S)));W&&(a.Authorization=W);return a}; oA6=function(S,W){var m=$G6();if(m){var a=m.coldConfigData,J=m.coldHashData;m=m.hotHashData;if(S){var B;W=(B=hL(S,eC,62))!=null?B:new eC;a=We(W,1,a);We(a,3,J).N_(m);Zs(S,eC,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},a&&(W.client.configInfo.coldConfigData=a),J&&(W.client.configInfo.coldHashData=J),m&&(W.client.configInfo.hotHashData=m))}}; qS=function(S,W){this.version=S;this.args=W}; pm=function(S,W){this.topic=S;this.C=W}; V_=function(S,W){var m=FR();m&&m.publish.call(m,S.toString(),S,W)}; W2P=function(S){var W=wP6,m=FR();if(!m)return 0;var a=m.subscribe(W.toString(),function(J,B){var E=g.v9("ytPubsub2Pubsub2SkipSubKey");E&&E==a||(E=function(){if(nm[a])try{if(B&&W instanceof pm&&W!=J)try{var y=W.C,Y=B;if(!Y.args||!Y.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!y.yE){var G=new y;y.yE=G.version}var K=y.yE}catch(T){}if(!K||Y.version!=K)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{B=Reflect.construct(y, g.aS(Y.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+T.message,T;}S.call(window,B)}catch(T){g.WL(T)}},SoD[W.toString()]?g.SF()?g.h6.U$(E):g.s7(E,0):E())}); nm[a]=!0;sr[W.toString()]||(sr[W.toString()]=[]);sr[W.toString()].push(a);return a}; JUQ=function(){var S=mc7,W=W2P(function(m){S.apply(void 0,arguments);aVQ(W)}); return W}; aVQ=function(S){var W=FR();W&&(typeof S==="number"&&(S=[S]),g.V3(S,function(m){W.unsubscribeByKey(m);delete nm[m]}))}; FR=function(){return g.v9("ytPubsub2Pubsub2Instance")}; ur=function(S,W,m){m=m===void 0?{sampleRate:.1}:m;Math.random()GDj||E=qoX&&(Lm++,HU=!1);pnc(W);a.headers||(a.headers={});a.headers["Content-Encoding"]="gzip";a.postBody=S;a.postParams=void 0;J(m,a)}; VyO=function(S){var W=W===void 0?!1:W;var m=m===void 0?!1:m;var a=(0,g.X1)(),J={startTime:a,ticks:{},infos:{}},B=W?g.v9("yt.logging.gzipForFetch",!1):!0;if(HU&&B){if(!S.body)return S;try{var E=m?S.body:typeof S.body==="string"?S.body:JSON.stringify(S.body);B=E;if(!m&&typeof E==="string"){var y=YoK(E);if(y!=null&&(y>GDj||y=qoX)if(Lm++,g.Qi("abandon_compression_after_N_slow_zips_lr")){W=Lm/Ur;var G=F2_/Xs("compression_disable_point");Ur>0&&Ur%Xs("compression_disable_point")===0&&W>=G&&(HU=!1)}else HU=!1;pnc(J)}}S.headers=Object.assign({},{"Content-Encoding":"gzip"},S.headers||{});S.body=B;return S}catch(K){return ak(K),S}}else return S}; YoK=function(S){try{return(new Blob(S.split(""))).size}catch(W){return ak(W),null}}; pnc=function(S){g.Qi("gel_compression_csi_killswitch")||!g.Qi("log_gel_compression_latency")&&!g.Qi("log_gel_compression_latency_lr")||ur("gel_compression",S,{sampleRate:.1})}; e9=function(S){var W=this;this.EY=this.C=!1;this.potentialEsfErrorCounter=this.N=0;this.handleError=function(){}; this.f0=function(){}; this.now=Date.now;this.D8=!1;this.f3={zo9:function(K){W.lQ=K}, q19:function(){W.UG()}, BC:function(){W.JT()}, Qn:function(K){return g.k(function(T){return g.P(T,W.Qn(K),0)})}, D$:function(K,T){return W.D$(K,T)}, d6:function(){W.d6()}}; var m;this.Uh=(m=S.Uh)!=null?m:100;var a;this.YO=(a=S.YO)!=null?a:1;var J;this.r8=(J=S.r8)!=null?J:2592E6;var B;this.Vg=(B=S.Vg)!=null?B:12E4;var E;this.m6=(E=S.m6)!=null?E:5E3;var y;this.lQ=(y=S.lQ)!=null?y:void 0;this.yM=!!S.yM;var Y;this.fG=(Y=S.fG)!=null?Y:.1;var G;this.w6=(G=S.w6)!=null?G:10;S.handleError&&(this.handleError=S.handleError);S.f0&&(this.f0=S.f0);S.D8&&(this.D8=S.D8);S.EY&&(this.EY=S.EY);this.mU=S.mU;this.XQ=S.XQ;this.KJ=S.KJ;this.Pr=S.Pr;this.sendFn=S.sendFn;this.vP=S.vP;this.wG= S.wG;Rr(this)&&(!this.mU||this.mU("networkless_logging"))&&nCP(this)}; var sKG=function(S,W){return JGc[z[7]](this,1,S,W)}; nCP=function(S){Rr(S)&&!S.D8&&(S.C=!0,S.yM&&Math.random()<=S.fG&&S.KJ.yV(S.lQ),S.d6(),S.Pr.AV()&&S.UG(),S.Pr.listen(S.vP,S.UG.bind(S)),S.Pr.listen(S.wG,S.JT.bind(S)))}; gCG=function(S,W){if(!Rr(S))throw Error("IndexedDB is not supported: updateRequestHandlers");var m=W.options.onError?W.options.onError:function(){}; W.options.onError=function(J,B){var E,y,Y,G;return g.k(function(K){switch(K.C){case 1:E=saG(B);(y=uNj(B))&&S.mU&&S.mU("web_enable_error_204")&&S.handleError(Error("Request failed due to compression"),W.url,B);if(!(S.mU&&S.mU("nwl_consider_error_code")&&E||S.mU&&!S.mU("nwl_consider_error_code")&&S.potentialEsfErrorCounter<=S.w6)){K.cn(2);break}if(!S.Pr.xv){K.cn(3);break}return g.P(K,S.Pr.xv(),3);case 3:if(S.Pr.AV()){K.cn(2);break}m(J,B);if(!S.mU||!S.mU("nwl_consider_error_code")||((Y=W)==null?void 0: Y.id)===void 0){K.cn(6);break}return g.P(K,S.KJ.Q8(W.id,S.lQ,!1),6);case 6:return K.return();case 2:if(S.mU&&S.mU("nwl_consider_error_code")&&!E&&S.potentialEsfErrorCounter>S.w6)return K.return();S.potentialEsfErrorCounter++;if(((G=W)==null?void 0:G.id)===void 0){K.cn(8);break}return W.sendCount=400&&S<=599?!1:!0}; uNj=function(S){var W;S=S==null?void 0:(W=S.error)==null?void 0:W.code;return!(S!==400&&S!==415)}; OE7=function(){if(ir)return ir();var S={};ir=g.Df("LogsDatabaseV2",{hL:(S.LogsRequestsStore={f6:2},S),shared:!1,upgrade:function(W,m,a){m(2)&&g.lP(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});m(3);m(5)&&(a=a.objectStore("LogsRequestsStore"),a.C.indexNames.contains("newRequest")&&a.C.deleteIndex("newRequest"),g.xo(a,"newRequestV2",["status","interface","timestamp"]));m(7)&&MD(W,"sapisid");m(9)&&MD(W,"SWHealthLog")}, version:9});return ir()}; dd=function(S){return g.hn(OE7(),S)}; Qac=function(S,W){var m,a,J,B;return g.k(function(E){if(E.C==1)return m={startTime:(0,g.X1)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.P(E,dd(W),2);if(E.C!=3)return a=E.N,J=Object.assign({},S,{options:JSON.parse(JSON.stringify(S.options)),interface:g.D4("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.P(E,g.R6(a,"LogsRequestsStore",J),3);B=E.N;m.ticks.tc=(0,g.X1)();ja6(m);return E.return(B)})}; XnK=function(S,W){var m,a,J,B,E,y,Y,G,K;return g.k(function(T){if(T.C==1)return m={startTime:(0,g.X1)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.P(T,dd(W),2);if(T.C!=3)return a=T.N,J=g.D4("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[S,J,0],E=[S,J,(0,g.X1)()],y=IDBKeyRange.bound(B,E),Y="prev",g.Qi("use_fifo_for_networkless")&&(Y="next"),G=void 0,K=S==="NEW"?"readwrite":"readonly",g.Qi("use_readonly_for_get_most_recent_by_status_killswitch")&&(K="readwrite"),g.P(T,g.Uj(a,["LogsRequestsStore"], {mode:K,L3:!0},function(p){return g.Pq(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:y,direction:Y},function(q){q.getValue()&&(G=q.getValue(),S==="NEW"&&(G.status="QUEUED",q.update(G)))})}),3); m.ticks.tc=(0,g.X1)();ja6(m);return T.return(G)})}; vCD=function(S,W){var m;return g.k(function(a){if(a.C==1)return g.P(a,dd(W),2);m=a.N;return a.return(g.Uj(m,["LogsRequestsStore"],{mode:"readwrite",L3:!0},function(J){var B=J.objectStore("LogsRequestsStore");return B.get(S).then(function(E){if(E)return E.status="QUEUED",g.LO(B,E).then(function(){return E})})}))})}; HEP=function(S,W,m,a){m=m===void 0?!0:m;var J;return g.k(function(B){if(B.C==1)return g.P(B,dd(W),2);J=B.N;return B.return(g.Uj(J,["LogsRequestsStore"],{mode:"readwrite",L3:!0},function(E){var y=E.objectStore("LogsRequestsStore");return y.get(S).then(function(Y){return Y?(Y.status="NEW",m&&(Y.sendCount+=1),a!==void 0&&(Y.options.compress=a),g.LO(y,Y).then(function(){return Y})):g.uP.resolve(void 0)})}))})}; lVP=function(S,W){var m;return g.k(function(a){if(a.C==1)return g.P(a,dd(W),2);m=a.N;return a.return(m.delete("LogsRequestsStore",S))})}; Myc=function(S){var W,m;return g.k(function(a){if(a.C==1)return g.P(a,dd(S),2);W=a.N;m=(0,g.X1)()-2592E6;return g.P(a,g.Uj(W,["LogsRequestsStore"],{mode:"readwrite",L3:!0},function(J){return g.iP(J.objectStore("LogsRequestsStore"),{},function(B){if(B.getValue().timestamp<=m)return B.delete().then(function(){return g.da(B)})})}),0)})}; UcG=function(){g.k(function(S){return g.P(S,Ou7("LogsDatabaseV2"),0)})}; ja6=function(S){g.Qi("nwl_csi_killswitch")||ur("networkless_performance",S,{sampleRate:1})}; R8K=function(S){return g.hn(L2Q(),S)}; e8P=function(S){var W,m;g.k(function(a){if(a.C==1)return g.P(a,R8K(S),2);W=a.N;m=(0,g.X1)()-2592E6;return g.P(a,g.Uj(W,["SWHealthLog"],{mode:"readwrite",L3:!0},function(J){return g.iP(J.objectStore("SWHealthLog"),{},function(B){if(B.getValue().timestamp<=m)return B.delete().then(function(){return g.da(B)})})}),0)})}; xcj=function(S){var W;return g.k(function(m){if(m.C==1)return g.P(m,R8K(S),2);W=m.N;return g.P(m,W.clear("SWHealthLog"),0)})}; g.Ir=function(S,W,m,a,J,B,E){J=J===void 0?"":J;B=B===void 0?!1:B;E=E===void 0?!1:E;if(S)if(m&&!g.ok())ak(new g.uc("Legacy referrer-scrubbed ping detected")),S&&iEK(S,void 0,{scrubReferrer:!0});else if(J)lO(S,W,"POST",J,a);else if(g.D4("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||a||E)lO(S,W,"GET","",a,void 0,B,E);else{b:{try{c:{var y=new rLP({url:S});if(y.C.dsh==="1")var Y=null;else{var G=y.C.ae;if(G==="1"){var K=y.C.adurl;if(K)try{Y={version:3,mR:decodeURIComponent(K),Qp:JV(y.N,"act=1","ri=1",Cl6(y))}; break c}catch(q){}}Y=G==="2"?{version:4,mR:JV(y.N,"dct=1","suid="+y.B,"ri=1"),Qp:JV(y.N,"act=1","ri=1","suid="+y.B)}:null}}if(Y){var T=Hj(S);var p=!(!T||!T.endsWith("/aclk")||Iv(S,"ri")!=="1");break b}}catch(q){}p=!1}p?dc6(S)?(W&&W(),m=!0):m=!1:m=!1;m||iEK(S,W)}}; dc6=function(S,W){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(S,W===void 0?"":W))return!0}catch(m){}return!1}; iEK=function(S,W,m){m=m===void 0?{}:m;var a=new Image,J=""+IVP++;PU[J]=a;a.onload=a.onerror=function(){W&&PU[J]&&W();delete PU[J]}; m.scrubReferrer&&(a.referrerPolicy="no-referrer");a.src=S}; P6D=function(S){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?S+"&nis=6":S+"&nis=5"}; kD=function(){fm||(fm=new mU("yt.offline"));return fm}; fVQ=function(S){if(g.Qi("offline_error_handling")){var W=kD().get("errors",!0)||{};W[S.message]={name:S.name,stack:S.stack};S.level&&(W[S.message].level=S.level);kD().set("errors",W,2592E3,!0)}}; $D=function(){this.C=new Map;this.N=!1}; kDP=function(){if(!$D.instance){var S=g.v9("yt.networkRequestMonitor.instance")||new $D;g.j$("yt.networkRequestMonitor.instance",S);$D.instance=S}return $D.instance}; hv=function(){g.ng.call(this);var S=this;this.N=!1;this.C=mrP();this.C.listen("networkstatus-online",function(){if(S.N&&g.Qi("offline_error_handling")){var W=kD().get("errors",!0);if(W){for(var m in W)if(W[m]){var a=new g.uc(m,"sent via offline_errors");a.name=W[m].name;a.stack=W[m].stack;a.level=W[m].level;g.WL(a)}kD().set("errors",{},2592E3,!0)}}})}; $cc=function(){if(!hv.instance){var S=g.v9("yt.networkStatusManager.instance")||new hv;g.j$("yt.networkStatusManager.instance",S);hv.instance=S}return hv.instance}; g.tv=function(S){S=S===void 0?{}:S;g.ng.call(this);var W=this;this.C=this.j=0;this.N=$cc();var m=g.v9("yt.networkStatusManager.instance.listen").bind(this.N);m&&(S.rateLimit?(this.rateLimit=S.rateLimit,m("networkstatus-online",function(){h8Q(W,"publicytnetworkstatus-online")}),m("networkstatus-offline",function(){h8Q(W,"publicytnetworkstatus-offline")})):(m("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),m("networkstatus-offline",function(){W.dispatchEvent("publicytnetworkstatus-offline")})))}; h8Q=function(S,W){S.rateLimit?S.C?(g.h6.bZ(S.j),S.j=g.h6.U$(function(){S.B!==W&&(S.dispatchEvent(W),S.B=W,S.C=(0,g.X1)())},S.rateLimit-((0,g.X1)()-S.C))):(S.dispatchEvent(W),S.B=W,S.C=(0,g.X1)()):S.dispatchEvent(W)}; ZL=function(){var S=e9.call;Av||(Av=new g.tv({d59:!0,SpD:!0}));S.call(e9,this,{KJ:{yV:Myc,j8:lVP,Lo:XnK,dw_:vCD,Q8:HEP,set:Qac},Pr:Av,handleError:function(W,m,a){var J,B=a==null?void 0:(J=a.error)==null?void 0:J.code;if(B===400||B===415){var E;W=new g.uc(W.message,m,a==null?void 0:(E=a.error)==null?void 0:E.code);ak(W,void 0,void 0,void 0,!0)}else g.WL(W)}, f0:ak,sendFn:tyX,now:g.X1,RJ:fVQ,XQ:g.wU(),vP:"publicytnetworkstatus-online",wG:"publicytnetworkstatus-offline",yM:!0,fG:.1,w6:Xs("potential_esf_error_limit",10),mU:g.Qi,D8:!(g.ox()&&g.vj(document.location.toString())!=="www.youtube-nocookie.com")});this.B=new g.Th;g.Qi("networkless_immediately_drop_all_requests")&&UcG();jG_("LogsDatabaseV2")}; NS=function(){var S=g.v9("yt.networklessRequestController.instance");S||(S=new ZL,g.j$("yt.networklessRequestController.instance",S),g.Qi("networkless_logging")&&g.CO().then(function(W){S.lQ=W;nCP(S);S.B.resolve();S.yM&&Math.random()<=S.fG&&S.lQ&&e8P(S.lQ);g.Qi("networkless_immediately_drop_sw_health_store")&&AUX(S)})); return S}; AUX=function(S){var W;g.k(function(m){if(!S.lQ)throw W=g.nO("clearSWHealthLogsDb"),W;return m.return(xcj(S.lQ).catch(function(a){S.handleError(a)}))})}; tyX=function(S,W,m,a){a=a===void 0?!1:a;W=g.Qi("web_fp_via_jspb")?Object.assign({},W):W;if(g.Qi("use_request_time_ms_header"))W.headers&&Gc(S)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.X1)())));else{var J;if((J=W.postParams)==null?0:J.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,g.X1)())}m&&Object.keys(W).length===0?g.Ir(S):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),MS(S,W.postBody,W,g.Mi,a)):MS(S,JSON.stringify(W.postParams), W,U7,a):g.Mi(S,W)}; br=function(S,W){g.Qi("use_event_time_ms_header")&&Gc(S)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.X1)())));return W}; g.or=function(S){this.config_=null;S?this.config_=S:heK()&&(this.config_=g.Go())}; g.rd=function(S,W,m,a){function J(G){try{if((G===void 0?0:G)&&a.retry&&!a.networklessOptions.bypassNetworkless)B.method="POST",a.networklessOptions.writeThenSend?NS().writeThenSend(Y,B):NS().sendAndWrite(Y,B);else if(a.compress){var K=!a.networklessOptions.writeThenSend;if(B.postBody){var T=B.postBody;typeof T!=="string"&&(T=JSON.stringify(B.postBody));MS(Y,T,B,g.Mi,K)}else MS(Y,JSON.stringify(B.postParams),B,U7,K)}else U7(Y,B)}catch(p){if(p.name==="InvalidAccessError")ak(Error("An extension is blocking network request.")); else throw p;}} !g.D4("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&ak(new g.uc("Missing VISITOR_DATA when sending innertube request.",W,m,a));if(!S.isReady())throw S=new g.uc("innertube xhrclient not ready",W,m,a),g.WL(S),S;var B={headers:a.headers||{},method:"POST",postParams:m,postBody:a.postBody,postBodyFormat:a.postBodyFormat||"JSON",onTimeout:function(){a.onTimeout()}, onFetchTimeout:a.onTimeout,onSuccess:function(G,K){if(a.onSuccess)a.onSuccess(K)}, onFetchSuccess:function(G){if(a.onSuccess)a.onSuccess(G)}, onProgress:function(G){if(a.onProgress)a.onProgress(G)}, onError:function(G,K){if(a.onError)a.onError(K)}, onFetchError:function(G){if(a.onError)a.onError(G)}, timeout:a.timeout,withCredentials:!0,compress:a.compress};B.headers["Content-Type"]||(B.headers["Content-Type"]="application/json");m="";var E=S.config_.F0;E&&(m=E);E=S.config_.hf||!1;var y=DGD(E,m,a);Object.assign(B.headers,y);B.headers.Authorization&&!m&&E&&(B.headers["x-origin"]=window.location.origin);var Y=yi(""+m+("/youtubei/"+S.config_.innertubeApiVersion+"/"+W),{alt:"json"});g.v9("ytNetworklessLoggingInitializationOptions")&&ZE6.isNwlInitialized?pPP().then(function(G){J(G)}):J(!1)}; g.S0=function(S,W,m){var a=g.Cm();if(a&&W){var J=a.subscribe(S,function(){function B(){cU[J]&&W.apply&&typeof W.apply=="function"&&W.apply(m||window,E)} var E=arguments;try{g.DL[S]?B():g.s7(B,0)}catch(y){g.WL(y)}},m); cU[J]=!0;wd[S]||(wd[S]=[]);wd[S].push(J);return J}return 0}; NtQ=function(S){var W=g.S0("LOGGED_IN",function(m){S.apply(void 0,arguments);g.Wp(W)})}; g.Wp=function(S){var W=g.Cm();W&&(typeof S==="number"?S=[S]:typeof S==="string"&&(S=[parseInt(S,10)]),g.V3(S,function(m){W.unsubscribeByKey(m);delete cU[m]}))}; g.mj=function(S,W){var m=g.Cm();return m?m.publish.apply(m,arguments):!1}; oCX=function(S){var W=g.Cm();if(W)if(W.clear(S),S)bE6(S);else for(var m in wd)bE6(m)}; g.Cm=function(){return g.OQ.ytPubsubPubsubInstance}; bE6=function(S){wd[S]&&(S=wd[S],g.V3(S,function(W){cU[W]&&delete cU[W]}),S.length=0)}; g.a_=function(S,W,m){rUc(S,W,m===void 0?null:m)}; rUc=function(S,W,m){m=m===void 0?null:m;var a=C6O(typeof S==="string"?S:S.toString()),J=document.getElementById(a),B=J&&KMP(J),E=J&&!B;B?W&&W():(W&&(B=g.S0(a,W),W=""+g.xp(W),cUj[W]=B),E||(J=Dc6(S,a,function(){KMP(J)||(GhP(J),g.mj(a),g.s7(function(){oCX(a)},0))},m)))}; Dc6=function(S,W,m,a){a=a===void 0?null:a;var J=g.HI("SCRIPT");J.id=W;J.onload=function(){m&&setTimeout(m,0)}; J.onreadystatechange=function(){switch(J.readyState){case "loaded":case "complete":J.onload()}}; a&&J.setAttribute("nonce",a);g.db(J,typeof S==="string"?g.LK(S):S);S=document.getElementsByTagName("head")[0]||document.body;S.insertBefore(J,S.firstChild);return J}; C6O=function(S){var W=document.createElement("a");g.v$(W,S);S=W.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Na(S)}; Jo=function(S,W){if(S===W)S=!0;else if(Array.isArray(S)&&Array.isArray(W))S=g.p$(S,W,Jo);else if(g.Ln(S)&&g.Ln(W))a:if(g.XZ(S).length!=g.XZ(W).length)S=!1;else{for(var m in S)if(!Jo(S[m],W[m])){S=!1;break a}S=!0}else S=!1;return S}; zN=function(S){var W=g.VH.apply(1,arguments);if(!Bp(S)||W.some(function(a){return!Bp(a)}))throw Error("Only objects may be merged."); W=g.R(W);for(var m=W.next();!m.done;m=W.next())EA(S,m.value)}; EA=function(S,W){for(var m in W)if(Bp(W[m])){if(m in S&&!Bp(S[m]))throw Error("Cannot merge an object into a non-object.");m in S||(S[m]={});EA(S[m],W[m])}else if(yM(W[m])){if(m in S&&!yM(S[m]))throw Error("Cannot merge an array into a non-array.");m in S||(S[m]=[]);wnX(S[m],W[m])}else S[m]=W[m];return S}; wnX=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next())m=m.value,Bp(m)?S.push(EA({},m)):yM(m)?S.push(wnX([],m)):S.push(m);return S}; Bp=function(S){return typeof S==="object"&&!Array.isArray(S)}; yM=function(S){return typeof S==="object"&&Array.isArray(S)}; YO=function(S){g.A.call(this);this.N=S}; GN=function(S){YO.call(this,!0);this.C=S}; Kz=function(S,W){g.A.call(this);var m=this;this.B=[];this.Z=!1;this.N=0;this.X=this.V=this.j=!1;this.N2=null;var a=(0,g.dN)(S,W);this.C=new g.rj(function(){return a(m.N2)},300); g.Z(this,this.C);this.bY=this.S=Infinity}; Swl=function(S,W){if(!W)return!1;for(var m=0;m-1)throw Error("Deps cycle for: "+W);if(S.N.has(W))return S.N.get(W);if(!S.C.has(W)){if(a)return;throw Error("No provider for: "+W);}a=S.C.get(W);m.push(W);if(a.Eb!==void 0)var J=a.Eb;else if(a.NiU)J=a[QM]?Brl(S,a[QM],m):[],J=a.NiU.apply(a,g.x(J));else if(a.mf){J=a.mf;var B=J[QM]?Brl(S,J[QM],m):[];J=new (Function.prototype.bind.apply(J,[null].concat(g.x(B))))}else throw Error("Could not resolve providers for: "+W);m.pop();a.uvq||S.N.set(W,J); return J}; Brl=function(S,W,m){return W?W.map(function(a){return a instanceof gl?XD(S,a.key,m,!0):XD(S,a,m)}):[]}; Hp=function(){vp||(vp=new J2P);return vp}; zkO=function(){var S=EnX;return function(){var W=Hp();if(!W.resolve(OA(S))){var m={};j0(W,(m.r3=S,m.mf=S,m[QM]=void 0,m))}return W.resolve(S)}}; Mz=function(){var S,W;return"h5vcc"in lF&&((S=lF.h5vcc.traceEvent)==null?0:S.traceBegin)&&((W=lF.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in lF&&lF.performance.mark&&lF.performance.measure?2:0}; UA=function(S){var W=Mz();switch(W){case 1:lF.h5vcc.traceEvent.traceBegin("YTLR",S);break;case 2:lF.performance.mark(S+"-start");break;case 0:break;default:H$(W,"unknown trace type")}}; y2j=function(S){var W=Mz();switch(W){case 1:lF.h5vcc.traceEvent.traceEnd("YTLR",S);break;case 2:W=S+"-start";var m=S+"-end";lF.performance.mark(m);lF.performance.measure(S,W,m);break;case 0:break;default:H$(W,"unknown trace type")}}; YwP=function(S){var W,m;(m=(W=window).onerror)==null||m.call(W,S.message,"",0,0,S)}; Gzl=function(S){var W=this;var m=m===void 0?0:m;var a=a===void 0?g.wU():a;this.B=m;this.scheduler=a;this.N=new g.Th;this.C=S;for(S={O1:0};S.O1=1E3?J():a>=S?Sl||(Sl=Wl(function(){J();Sl=void 0},0)):B-y>=10&&(l4P(W,m.tier),E.j=B)}; j2_=function(S,W){if(S.endpoint==="log_event"){g.Qi("more_accurate_gel_parser")&&Zz().storePayload({isJspb:!1},S.payload);bF(S);var m=o_(S),a=new Map;a.set(m,[S.payload]);var J=uCD(S.payload)||"";W&&(Dz=new W);return new g.UI(function(B,E){Dz&&Dz.isReady()?MCj(a,Dz,B,E,{bypassNetworkless:!0},!0,Cz(J)):B()})}}; vnQ=function(S,W,m){if(W.endpoint==="log_event"){bF(void 0,W);var a=o_(W,!0),J=new Map;J.set(a,[yF(W.payload)]);m&&(Dz=new m);return new g.UI(function(B){Dz&&Dz.isReady()?UBj(J,Dz,B,{bypassNetworkless:!0},!0,Cz(S)):B()})}}; o_=function(S,W){var m="";if(S.dangerousLogToVisitorSession)m="visitorOnlyApprovedKey";else if(S.cttAuthInfo){if(W===void 0?0:W){W=S.cttAuthInfo.token;m=S.cttAuthInfo;var a=new o2;m.videoId?a.setVideoId(m.videoId):m.playlistId&&Io(a,2,mJ,rc(m.playlistId));aY[W]=a}else W=S.cttAuthInfo,m={},W.videoId?m.videoId=W.videoId:W.playlistId&&(m.playlistId=W.playlistId),Jy[S.cttAuthInfo.token]=m;m=S.cttAuthInfo.token}return m}; cp=function(S,W,m){S=S===void 0?{}:S;W=W===void 0?!1:W;new g.UI(function(a,J){var B=wl(W,m),E=B.B;B.B=!1;Bl(B.N);Bl(B.C);B.C=0;Dz&&Dz.isReady()?m===void 0&&g.Qi("enable_web_tiered_gel")?LtP(a,J,S,W,300,E):LtP(a,J,S,W,m,E):(l4P(W,m),a())})}; LtP=function(S,W,m,a,J,B){var E=Dz;m=m===void 0?{}:m;a=a===void 0?!1:a;J=J===void 0?200:J;B=B===void 0?!1:B;var y=new Map,Y=new Map,G={isJspb:a,cttAuthInfo:void 0,tier:J},K={isJspb:a,cttAuthInfo:void 0};if(a){W=g.R(Object.keys(rl));for(J=W.next();!J.done;J=W.next())J=J.value,Y=g.Qi("enable_web_tiered_gel")?Zz().smartExtractMatchingEntries({keys:[G,K],sizeLimit:1E3}):Zz().extractMatchingEntries({isJspb:!0,cttAuthInfo:J}),Y.length>0&&y.set(J,Y),(g.Qi("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.Qi("web_fp_via_jspb_and_json"))&& delete rl[J];UBj(y,E,S,m,!1,B)}else{y=g.R(Object.keys(rl));for(G=y.next();!G.done;G=y.next())G=G.value,K=g.Qi("enable_web_tiered_gel")?Zz().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:G,tier:J},{isJspb:!1,cttAuthInfo:G}],sizeLimit:1E3}):Zz().extractMatchingEntries({isJspb:!1,cttAuthInfo:G}),K.length>0&&Y.set(G,K),(g.Qi("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.Qi("web_fp_via_jspb_and_json"))&&delete rl[G];MCj(Y,E,S,W,m,!1,B)}}; l4P=function(S,W){function m(){cp({writeThenSend:!0},S,W)} S=S===void 0?!1:S;W=W===void 0?200:W;var a=wl(S,W),J=a===Rk_||a===ek6?5E3:xBl;g.Qi("web_gel_timeout_cap")&&!a.C&&(J=Wl(function(){m()},J),a.C=J); Bl(a.N);J=g.D4("LOGGING_BATCH_TIMEOUT",Xs("web_gel_debounce_ms",1E4));g.Qi("shorten_initial_gel_batch_timeout")&&Ee&&(J=iKO);J=Wl(function(){Xs("gel_min_batch_size")>0?Zz().getSequenceCount({cttAuthInfo:void 0,isJspb:S,tier:W})>=dBl&&m():m()},J); a.N=J}; MCj=function(S,W,m,a,J,B,E){J=J===void 0?{}:J;var y=Math.round((0,g.X1)()),Y=S.size,G=I4D(E);S=g.R(S);var K=S.next();for(E={};!K.done;E={qQ:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,CV:void 0,nh:void 0},K=S.next()){var T=g.R(K.value);K=T.next().value;T=T.next().value;E.batchRequest=g.xl({context:g.Km(W.config_||g.Go())});if(!g.Mx(T)&&!g.Qi("throw_err_when_logevent_malformed_killswitch")){a();break}E.batchRequest.events=T;(T=Jy[K])&&PjO(E.batchRequest,K,T);delete Jy[K];E.dangerousLogToVisitorSession= K==="visitorOnlyApprovedKey";f4X(E.batchRequest,y,E.dangerousLogToVisitorSession);kzG(J);E.CV=function(p){g.Qi("start_client_gcf")&&g.h6.U$(function(){return g.k(function(q){return g.P(q,$BG(p),0)})}); Y--;Y||m()}; E.qQ=0;E.nh=function(p){return function(){p.qQ++;if(J.bypassNetworkless&&p.qQ===1)try{g.rd(W,G,p.batchRequest,z$({writeThenSend:!0},p.dangerousLogToVisitorSession,p.CV,p.nh,B)),Ee=!1}catch(q){g.WL(q),a()}Y--;Y||m()}}(E); try{g.rd(W,G,E.batchRequest,z$(J,E.dangerousLogToVisitorSession,E.CV,E.nh,B)),Ee=!1}catch(p){g.WL(p),a()}}}; UBj=function(S,W,m,a,J,B){a=a===void 0?{}:a;var E=Math.round((0,g.X1)()),y={value:S.size},Y=new Map([].concat(g.x(S)));Y=g.R(Y);for(var G=Y.next();!G.done;G=Y.next()){var K=g.R(G.value).next().value,T=S.get(K);G=new g.rr;var p=W.config_||g.Go(),q=new h2,F=new ij;We(F,1,p.B0);We(F,2,p.v0);aF(F,16,p.Jf);We(F,17,p.innertubeContextClientVersion);if(p.OI){var O=p.OI,X=new eC;O.coldConfigData&&We(X,1,O.coldConfigData);O.appInstallData&&We(X,6,O.appInstallData);O.coldHashData&&We(X,3,O.coldHashData);O.hotHashData&& X.N_(O.hotHashData);Zs(F,eC,62,X)}(O=g.OQ.devicePixelRatio)&&O!=1&&gs(F,65,M$(O));O=vL();O!==""&&We(F,54,O);O=HL();if(O.length>0){X=new P6;for(var l=0;l65535&&(S=1);c6("BATCH_CLIENT_COUNTER",S);return S}; PjO=function(S,W,m){if(m.videoId)var a="VIDEO";else if(m.playlistId)a="PLAYLIST";else return;S.credentialTransferTokenTargetId=m;S.context=S.context||{};S.context.user=S.context.user||{};S.context.user.credentialTransferTokens=[{token:W,scope:a}]}; bF=function(S,W){var m=g.v9("yt.logging.transport.enableScrapingForTest"),a=jo("il_payload_scraping");a=(a!==void 0?String(a):"")==="enable_il_payload_scraping";if(!m)if(a)G$=[],g.j$("yt.logging.transport.enableScrapingForTest",!0),g.j$("yt.logging.transport.scrapedPayloadsForTesting",G$),g.j$("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.j$("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.j$("yt.logging.transport.scrapeClientEvent",!0);else return;m=g.v9("yt.logging.transport.scrapedPayloadsForTesting");a=g.v9("yt.logging.transport.payloadToScrape");W&&(W=W.payload,(W=g.v9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W)())&&m.push(W));W=g.v9("yt.logging.transport.scrapeClientEvent");if(a&&a.length>=1)for(var J=0;J0&&y$P(S,W,B)}else y$P(S,W)}; y$P=function(S,W,m){S=Y7P(S);W=W?g.Rv(W):"";m=m||5;BX()&&g.f0(S,W,m)}; Y7P=function(S){for(var W=g.R(GcK),m=W.next();!m.done;m=W.next())S=Pj(S,m.value);return"ST-"+Na(S).toString(36)}; Ky7=function(S){if(S.name==="JavaException")return!0;S=S.stack;return S.includes("chrome://")||S.includes("-extension://")||S.includes("webkit-masked-url://")}; Tu6=function(S){if(!S.stack)return!0;var W=!S.stack.includes("\n");return W&&S.stack.includes("ErrorType: ")||W&&S.stack.includes("Anonymous function (Unknown script")||S.stack.toLowerCase()==="not available"||S.fileName==="user-script"||S.fileName.startsWith("user-script:")?!0:!1}; q7j=function(){this.Qh=[];this.KA=[]}; QL=function(){if(!jl){var S=jl=new q7j;S.KA.length=0;S.Qh.length=0;pLP(S,Fyl)}return jl}; pLP=function(S,W){W.KA&&S.KA.push.apply(S.KA,W.KA);W.Qh&&S.Qh.push.apply(S.Qh,W.Qh)}; VoD=function(S){function W(){return S.charCodeAt(a++)} var m=S.length,a=0;do{var J=Xg(W);if(J===Infinity)break;var B=J>>3;switch(J&7){case 0:J=Xg(W);if(B===2)return J;break;case 1:if(B===2)return;a+=8;break;case 2:J=Xg(W);if(B===2)return S.substr(a,J);a+=J;break;case 5:if(B===2)return;a+=4;break;default:return}}while(a500));a++);a=J}else if(typeof S==="object")for(J in S){if(S[J]){var B=J;var E=S[J],y=W,Y=m;B=typeof E!=="string"||B!=="clickTrackingParams"&&B!=="trackingParams"?0:(E=VoD(atob(E.replace(/-/g,"+").replace(/_/g,"/"))))?vl(B+".ve",E,y,Y):0;a+=B;a+=vl(J,S[J],W,m);if(a>500)break}}else m[W]=Hl(S),a+=m[W].length;else m[W]=Hl(S),a+=m[W].length;return a}; vl=function(S,W,m,a){m+="."+S;S=Hl(W);a[m]=S;return m.length+S.length}; Hl=function(S){try{return(typeof S==="string"?S:String(JSON.stringify(S))).substr(0,500)}catch(W){return"unable to serialize "+typeof S+" ("+W.message+")"}}; Md=function(S){g.lR(S)}; g.Ue=function(S){g.lR(S,"WARNING")}; g.lR=function(S,W){var m=m===void 0?{}:m;m.name=g.D4("INNERTUBE_CONTEXT_CLIENT_NAME",1);m.version=g.D4("INNERTUBE_CONTEXT_CLIENT_VERSION");W=W===void 0?"ERROR":W;var a=!1;W=W===void 0?"ERROR":W;a=a===void 0?!1:a;if(S){S.hasOwnProperty("level")&&S.level&&(W=S.level);if(g.Qi("console_log_js_exceptions")){var J=[];J.push("Name: "+S.name);J.push("Message: "+S.message);S.hasOwnProperty("params")&&J.push("Error Params: "+JSON.stringify(S.params));S.hasOwnProperty("args")&&J.push("Error args: "+JSON.stringify(S.args)); J.push("File name: "+S.fileName);J.push("Stacktrace: "+S.stack);window.console.log(J.join("\n"),S)}if(!(skP>=5)){J=[];for(var B=g.R(usD),E=B.next();!E.done;E=B.next()){E=E.value;try{E()&&J.push(E())}catch(O){}}J=[].concat(g.x(g0l),g.x(J));var y=L8X(S);B=y.message||"Unknown Error";E=y.name||"UnknownError";var Y=y.stack||S.N||"Not available";if(Y.startsWith(E+": "+B)){var G=Y.split("\n");G.shift();Y=G.join("\n")}G=y.lineNumber||"Not available";y=y.fileName||"Not available";var K=0;if(S.hasOwnProperty("args")&& S.args&&S.args.length)for(var T=0;T=500);T++);else if(S.hasOwnProperty("params")&&S.params){var p=S.params;if(typeof S.params==="object")for(T in p){if(p[T]){var q="params."+T,F=Hl(p[T]);m[q]=F;K+=q.length+F.length;if(K>500)break}}else m.params=Hl(p)}if(J.length)for(T=0;T=500);T++);navigator.vendor&&!m.hasOwnProperty("vendor")&&(m["device.vendor"]=navigator.vendor);m={message:B,name:E,lineNumber:G, fileName:y,stack:Y,params:m,sampleWeight:1};T=Number(S.columnNumber);isNaN(T)||(m.lineNumber=m.lineNumber+":"+T);if(S.level==="IGNORED")S=0;else a:{S=QL();T=g.R(S.KA);for(J=T.next();!J.done;J=T.next())if(J=J.value,m.message&&m.message.match(J.Ri)){S=J.weight;break a}S=g.R(S.Qh);for(T=S.next();!T.done;T=S.next())if(T=T.value,T.callback(m)){S=T.weight;break a}S=1}m.sampleWeight=S;S=g.R(O0G);for(T=S.next();!T.done;T=S.next())if(T=T.value,T.Ns[m.name])for(B=g.R(T.Ns[m.name]),J=B.next();!J.done;J=B.next())if(E= J.value,J=m.message.match(E.fk)){m.params["params.error.original"]=J[0];B=E.groups;E={};for(G=0;G1E3&&g.Ue(new g.uc("IL Attach cache exceeded limit"))}y= ty(m,W);Pl.has(y)?Ay(m,W):kz.set(y,!0)}}a=a.filter(function(K){K.csn!==W?(K.csn=W,K=!0):K=!1;return K}); m={csn:W,parentVe:m.getAsJson(),childVes:g.MU(a,function(K){return K.getAsJson()})}; W==="UNDEFINED_CSN"?Z8("visualElementAttached",B,m):S?T$("visualElementAttached",m,S,B):g.qd("visualElementAttached",m,B)}; ImP=function(S,W,m,a,J,B,E){Nd(m,W);a=IY({cttAuthInfo:gT(W)||void 0,automatedLogEventSource:E},W);m={csn:W,ve:m.getAsJson(),eventType:1};J&&(m.clientData=J);W==="UNDEFINED_CSN"?Z8("visualElementShown",a,m):S?T$("visualElementShown",m,S,a):g.qd("visualElementShown",m,a)}; PO6=function(S,W,m,a){var J=(a=a===void 0?!1:a)?16:8;a=IY({cttAuthInfo:gT(W)||void 0,endOfSequence:a,automatedLogEventSource:void 0},W);m={csn:W,ve:m.getAsJson(),eventType:J};W==="UNDEFINED_CSN"?Z8("visualElementHidden",a,m):S?T$("visualElementHidden",m,S,a):g.qd("visualElementHidden",m,a)}; bR=function(S,W,m,a,J,B){fmc(S,W,m,void 0,a,J,B)}; fmc=function(S,W,m,a,J,B,E){Nd(m,W);a=a||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";B=IY({cttAuthInfo:gT(W)||void 0,automatedLogEventSource:E},W);m={csn:W,ve:m.getAsJson(),gestureType:a};J&&(m.clientData=J);W==="UNDEFINED_CSN"?Z8("visualElementGestured",B,m):S?T$("visualElementGestured",m,S,B):g.qd("visualElementGestured",m,B)}; kcl=function(){var S=qz(16);for(var W=[],m=0;m0&&m.push(g.HI("BR"));m.push(g.lD(B))}):m.push(g.lD(a))}return m}; z3=function(S,W,m,a){if(m==="child"){g.UN(W);var J;a===void 0?J=void 0:J=!Array.isArray(a)||a&&typeof a.G==="string"?[a]:a;m=hpD(S,J);m=g.R(m);for(S=m.next();!S.done;S=m.next())W.appendChild(S.value)}else m==="style"?g.mg(W,"cssText",a?a:""):a===null||a===void 0?W.removeAttribute(m):(S=a.toString(),m==="href"&&(S=g.gb(g.QW(S))),W.setAttribute(m,S))}; g.b=function(S){g.Bm.call(this,S);this.jg=!0;this.bY=!1;this.listeners=[]}; g.yG=function(S){g.b.call(this,S);this.Y6=new g.au;g.Z(this,this.Y6)}; Yy=function(S,W,m,a,J,B,E){E=E===void 0?null:E;g.yG.call(this,W);this.api=S;this.macros={};this.componentType=m;this.V=this.Z=null;this.M2=E;this.layoutId=a;this.interactionLoggingClientData=J;this.U9=B;this.zN=null;this.by=new GN(this.element);g.Z(this,this.by);this.uY=this.K(this.element,"click",this.onClick);this.Xn=[];this.q2=new Kz(this.onClick,this);g.Z(this,this.q2);this.vv=!1;this.s9=this.N2=null}; G3=function(S,W){S=S===void 0?null:S;W=W===void 0?null:W;if(S==null)return g.Ue(Error("Got null or undefined adText object")),"";var m=g.ZN(S.text);if(!S.isTemplated)return m;if(W==null)return g.Ue(Error("Missing required parameters for a templated message")),m;S=g.R(Object.entries(W));for(W=S.next();!W.done;W=S.next()){var a=g.R(W.value);W=a.next().value;a=a.next().value;m=m.replace("{"+W+"}",a)}return m}; to_=function(S){S=S===void 0?null:S;return S!=null&&(S=S.thumbnail,S!=null&&S.thumbnails!=null&&S.thumbnails.length!=0&&S.thumbnails[0].url!=null)?g.ZN(S.thumbnails[0].url):""}; A$P=function(S){S=S===void 0?null:S;return S!=null&&(S=S.thumbnail,S!=null&&S.thumbnails!=null&&S.thumbnails.length!=0&&S.thumbnails[0].width!=null&&S.thumbnails[0].height!=null)?new g.BI(S.thumbnails[0].width||0,S.thumbnails[0].height||0):new g.BI(0,0)}; g.K8=function(S){if(S.simpleText)return S.simpleText;if(S.runs){var W=[];S=g.R(S.runs);for(var m=S.next();!m.done;m=S.next())m=m.value,m.text&&W.push(m.text);return W.join("")}return""}; g.T3=function(S){if(S.simpleText)return S=document.createTextNode(S.simpleText),S;var W=[];if(S.runs)for(var m=0;m1){for(var W=[S[0]],m=1;m0&&(this.C=new g.rj(this.KX,W,this),g.Z(this,this.C));this.X=new g.rj(this.KX,m,this);g.Z(this,this.X);this.S=Gu_(this.N,J,1,a);g.Z(this,this.S);this.Z=Gu_(this.N,0,a,1);g.Z(this,this.Z);this.j=new L5;g.Z(this,this.j)}; yj=function(S,W){this.N=S;this.C=W}; IpK=function(S){switch(S){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:H$(S,"unknown result type")}}; P7P=function(S,W){var m=1;S.isTrusted===!1&&(m=0);c6("ISDSTAT",m);Y$(m,"i.s_",{triggerContext:"sk",metadata:W});return m}; fpG=function(S,W){var m=[];W?W.isTrusted===!0?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):W.isTrusted===!1?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Y$(0,"a.s_",{metadata:S,states:m});c6("ASDSTAT",0)}; Y$=function(S,W,m){W=k1G[W];var a,J,B={detected:S===0,source:""+W.N+((a=m.triggerContext)!=null?a:"")+((J=m.SK)!=null?J:""),detectionStates:m.states,durationMs:m.Dq};m.metadata&&(B.contentCpn=m.metadata.contentCpn,B.adCpn=m.metadata.adCpn);g.qd("biscottiBasedDetection",B);W.C!==void 0&&(m=Number(g.D4("CATSTAT",0)),W.C!==void 0?(W=W.C,S=IpK(S),S=m&~(3<0}; pZ=function(S,W,m,a,J,B){wC.call(this,S,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",W,m,a,J);var E=this;this.vn=null;this.Pn=!1;this.g2=B;this.X=this.api.J().experiments.mU("enable_modern_skip_button_on_web");this.hX=!1;this.j=new g.yG({G:"span",Wn:["ytp-ad-skip-button-container"]});this.X&&this.j.element.classList.add("ytp-ad-skip-button-container-detached");g.Z(this,this.j);this.j.GN(this.element);this.N=this.B=null;this.d2=new g.mo(this.j,500,!1,100,function(){return E.hide()}); g.Z(this,this.d2);this.Hn=new zI(this.j.element,15E3,5E3,.5,.5,this.X);g.Z(this,this.Hn);this.hide()}; hS6=function(S){S=S.vn&&S.vn.adRendererCommands;return(S&&S.clickCommand&&g.n(S.clickCommand,FX)&&g.n(S.clickCommand,FX).commands||[]).some(function(W){return W.adLifecycleCommand?$57(W.adLifecycleCommand):!1})}; $57=function(S){return S.action==="END_LINEAR_AD"||S.action==="END_LINEAR_AD_PLACEMENT"}; Vj=function(S,W,m,a,J,B){wC.call(this,S,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",W,m,a,J);this.vn=B;this.j=!1;this.X=0;this.B=this.N=null;this.hide()}; tYG=function(S,W){S.j||(S.j=!0,S.N&&(W?S.N.vn.hide():S.N.hide()),W?(S=S.B,S.d2.show(),S.show()):S.B.show())}; nZ=function(S,W,m,a){Ru.call(this,S,W,m,a,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; sm=function(S,W,m,a,J,B,E){B=B===void 0?!1:B;E=E===void 0?!1:E;Yy.call(this,S,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",W,m,a);this.B=J;this.C=this.I2("ytp-ad-simple-ad-badge");(this.N=B)&&this.C.classList.add("ytp-ad-simple-ad-badge--clean-player");E&&this.C.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; u2=function(S,W,m,a,J){J=J===void 0?!1:J;m$.call(this,"player-overlay",S,{},W,a);this.videoAdDurationSeconds=m;this.interactionLoggingClientData=a;this.wT=J}; gR=function(S,W){g.au.call(this);this.api=S;this.durationMs=W;this.C=null;this.handler=new L5(this);g.Z(this,this.handler);this.N=AOQ;this.handler.K(this.api,"presentingplayerstatechange",this.yb);this.C=this.handler.K(this.api,"onAdPlaybackProgress",this.Zb)}; Om=function(S){g.au.call(this);this.C=!1;this.yB=0;this.handler=new L5(this);g.Z(this,this.handler);this.durationMs=S;this.timer=new g.Iz(100);g.Z(this,this.timer);this.handler.K(this.timer,"tick",this.Zb);this.N={seekableStart:0,seekableEnd:S/1E3,current:0};this.start()}; g.jD=function(S,W){var m=Math.abs(Math.floor(S)),a=Math.floor(m/86400),J=Math.floor(m%86400/3600),B=Math.floor(m%3600/60);m=Math.floor(m%60);if(W){W="";a>0&&(W+=" "+a+" Days");if(a>0||J>0)W+=" "+J+" Hours";W+=" "+B+" Minutes";W+=" "+m+" Seconds";a=W.trim()}else{W="";a>0&&(W+=a+":",J<10&&(W+="0"));if(a>0||J>0)W+=J+":",B<10&&(W+="0");W+=B+":";m<10&&(W+="0");a=W+m}return S>=0?a:"-"+a}; g.Qj=function(S){return(!("button"in S)||typeof S.button!=="number"||S.button===0)&&!("shiftKey"in S&&S.shiftKey)&&!("altKey"in S&&S.altKey)&&!("metaKey"in S&&S.metaKey)&&!("ctrlKey"in S&&S.ctrlKey)}; XX=function(S,W,m,a,J,B,E){wC.call(this,S,{G:"span",L:E?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",W,m,a,J);this.videoAdDurationSeconds=B;this.N=null;E&&this.api.J().N&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Zf&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; v1=function(S,W,m,a){cm.call(this,S,W,m,a,"ytp-video-ad-top-bar-title","ad-title")}; H1=function(S){this.content=S.content;if(S.commandRuns){S=g.R(S.commandRuns);for(var W=S.next();!W.done;W=S.next())W=W.value,this.loggingDirectives=g.n(W,Z5K),W.onTap&&(this.interaction={onTap:W.onTap})}}; l2=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ad-simple-attributed-string"},"ad-simple-attributed-string",W,m,a);this.hide()}; Mb=function(S,W,m,a,J){Yy.call(this,S,{G:"span",L:J?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",W,m,a);this.N=J;this.adBadgeText=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);this.adBadgeText.GN(this.element);g.Z(this,this.adBadgeText);J?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Zf&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Um=function(S,W,m,a){Yy.call(this,S,{G:"span",L:"ytp-ad-pod-index"},"ad-pod-index",W,m,a);this.api.J().N&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Zf&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; LZ=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",W,m,a);this.hide()}; eD=function(S,W){this.N=S;this.C=W}; NUO=function(S,W){return S.N+W*(S.C-S.N)}; x$=function(S,W,m){return S.C-S.N?g.Su((W-S.N)/(S.C-S.N),0,1):m!=null?m:Infinity}; i2=function(S,W,m,a){a=a===void 0?!1:a;g.yG.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=S;this.N=W;this.B=m;a&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Z(this,this.N);this.progressBar=this.I2("ytp-ad-persistent-progress-bar");this.C=-1;this.K(S,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; dR=function(S,W,m,a,J,B){Yy.call(this,S,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"},{G:"div",L:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",W,m,a);this.S=B;this.X=this.I2("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.C=this.I2("ytp-ad-player-overlay-instream-info");this.j=null;b56(this)&&(S=vI("div"),g.Bn(S,"ytp-ad-player-overlay-top-bar-gradients"),W=this.C,W.parentNode&&W.parentNode.insertBefore(S,W),(W=this.api.getVideoData(2))&&W.isListed&&W.title&&(m=new v1(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),m.GN(S),m.init(Wm("ad-title"),{text:W.title},this.macros),g.Z(this,m)),this.j=S);this.B=null;this.O9=this.I2("ytp-ad-player-overlay-skip-or-preview");this.Hn=this.I2("ytp-ad-player-overlay-progress-bar"); this.Pn=this.I2("ytp-ad-player-overlay-instream-user-sentiment");this.vn=this.I2("ytp-ad-player-overlay-ad-disclosure-banner");this.N=J;g.Z(this,this.N);this.hide()}; b56=function(S){S=S.api.J();return g.IL(S)&&S.N}; g.P1=function(S){S&=16777215;var W=[(S&16711680)>>16,(S&65280)>>8,S&255];S=W[0];var m=W[1];W=W[2];S=Number(S);m=Number(m);W=Number(W);if(S!=(S&255)||m!=(m&255)||W!=(W&255))throw Error('"('+S+","+m+","+W+'") is not a valid RGB color');m=S<<16|m<<8|W;return S<16?"#"+(16777216|m).toString(16).slice(1):"#"+m.toString(16)}; fZ=function(){}; oR6=function(){}; C7Q=function(S){var W=new sO;var m=new nY;m=We(m,1,"botguard");S=We(m,2,S);this.C=WGG(W,nY,1,rOl,S)}; g.$Z=function(){if(!k$){k$=new kF(new oR6);var S=Xs("client_streamz_web_flush_count",-1);S!==-1&&(k$.B=S)}return k$}; $$=function(S){this.C=new Uo(S)}; cOP=function(){var S=!1;try{S=!!window.sessionStorage.getItem("session_logininfo")}catch(W){S=!0}return(g.D4("INNERTUBE_CLIENT_NAME")==="WEB"||g.D4("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&S}; hj=function(){var S=S===void 0?!0:S;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");c6("LOGIN_INFO","");S&&window.sessionStorage.setItem("from_switch_account","1");S=!0;S=S===void 0?!1:S;var W,m=D5O;m||(m=document.querySelector("#persist_identity"));if(W=m){var a=W.src?(new URL(W.src)).origin:"*";if(S){var J;(J=W.contentWindow)==null||J.postMessage({action:"clear"},a)}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},a)}}}}catch(y){}}; tj=function(S){S&&(S.startsWith("https://accounts.google.com/AddSession")?hj():S.startsWith("https://accounts.google.com/ServiceLogin")?hj():S.startsWith("https://myaccount.google.com")&&g.g7(S).N.endsWith("/youtubeoptions")&&hj());if(g.D4("LOGGED_IN",!0)&&cOP()){var W=g.D4("VALID_SESSION_TEMPDATA_DOMAINS",[]);var m=g.vj(window.location.href);m&&W.push(m);m=g.vj(S);g.oZ(W,m)||!m&&rh(S,"/")?(W=l3(S),(W=G6X(W))?(W=Y7P(W),W=(W=g.k0(W)||null)?Gj(W):{}):W=null):W=null;W==null&&(W={});m=W;var a=void 0; cOP()?(a||(a=g.D4("LOGIN_INFO")),a?(m.session_logininfo=a,m=!0):m=!1):m=!1;m&&Oe(S,W)}}; g.wXQ=function(S){var W=W===void 0?{}:W;var m=m===void 0?"":m;var a=a===void 0?window:a;S=g.ex(S,W);tj(S);m=g.QW(S+m);a=a.location;m=XW(m);m!==void 0&&(a.href=m)}; g.Aj=function(S,W,m){W=W===void 0?{}:W;m=m===void 0?!1:m;var a=g.D4("EVENT_ID");a&&(W.ei||(W.ei=a));W&&Oe(S,W);m||(tj(S),g.wXQ(S))}; g.ZQ=function(S,W,m,a,J){J=J===void 0?!1:J;m&&Oe(S,m);m=g.QW(S);var B=g.gb(m);S!=B&&ak(Error("Unsafe window.open URL: "+S));S=B;W=W||Na(S).toString(36);try{if(J)return J=S,J=P6D(J),tj(J),g.La(window,J,W,"attributionsrc")}catch(E){g.WL(E)}tj(S);return g.La(window,m,W,a)}; SjO=function(S){Nb=S}; WU_=function(S){b2=S}; mDl=function(S){oL=S}; JnD=function(){af6=oL=b2=Nb=null}; EoP=function(){var S=S===void 0?window.location.href:S;if(g.Qi("kevlar_disable_theme_param"))return null;var W=Hj(S);if(g.Qi("enable_dark_theme_only_on_shorts")&&W!=null&&W.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var m=g.zc(S).theme;return BaP.get(m)||null}catch(a){}return null}; rR=function(){this.C={};if(this.N=oF_()){var S=g.k0("CONSISTENCY");S&&zZP(this,{encryptedTokenJarContents:S})}}; zZP=function(S,W){if(W.encryptedTokenJarContents&&(S.C[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var m=Number(W.expirationSeconds);setTimeout(function(){delete S.C[W.encryptedTokenJarContents]},m*1E3); S.N&&g.f0("CONSISTENCY",W.encryptedTokenJarContents,m,void 0,!0)}}; c1=function(){this.N=-1;var S=g.D4("LOCATION_PLAYABILITY_TOKEN");g.D4("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=CZ(this))&&(S=this.localStorage.get("yt-location-playability-token"));S&&(this.locationPlayabilityToken=S,this.C=void 0)}; CZ=function(S){return S.localStorage===void 0?new mU("yt-client-location"):S.localStorage}; g.DQ=function(S,W,m){W=W===void 0?!1:W;m=m===void 0?!1:m;var a=g.D4("INNERTUBE_CONTEXT");if(!a)return g.lR(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};a=g.xl(a);g.Qi("web_no_tracking_params_in_shell_killswitch")||delete a.clickTracking;a.client||(a.client={});var J=a.client;J.clientName==="MWEB"&&J.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(J.clientFormFactor=g.D4("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");J.screenWidthPoints=window.innerWidth;J.screenHeightPoints= window.innerHeight;J.screenPixelDensity=Math.round(window.devicePixelRatio||1);J.screenDensityFloat=window.devicePixelRatio||1;J.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var B=B===void 0?!1:B;var E=g.hO(),y="USER_INTERFACE_THEME_LIGHT";E.QD(165)?y="USER_INTERFACE_THEME_DARK":E.QD(174)?y="USER_INTERFACE_THEME_LIGHT":!g.Qi("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (y="USER_INTERFACE_THEME_DARK");B=B?y:EoP()||y;J.userInterfaceTheme=B;if(!W){if(B=eKQ())J.connectionType=B;g.Qi("web_log_effective_connection_type")&&(B=iR_())&&(a.client.effectiveConnectionType=B)}var Y;if(g.Qi("web_log_memory_total_kbytes")&&((Y=g.OQ.navigator)==null?0:Y.deviceMemory)){var G;Y=(G=g.OQ.navigator)==null?void 0:G.deviceMemory;a.client.memoryTotalKbytes=""+Y*1E6}g.Qi("web_gcf_hashes_innertube")&&(B=$G6())&&(G=B.coldConfigData,Y=B.coldHashData,B=B.hotHashData,a.client.configInfo=a.client.configInfo|| {},G&&(a.client.configInfo.coldConfigData=G),Y&&(a.client.configInfo.coldHashData=Y),B&&(a.client.configInfo.hotHashData=B));G=g.zc(g.OQ.location.href);!g.Qi("web_populate_internal_geo_killswitch")&&G.internalcountrycode&&(J.internalGeo=G.internalcountrycode);J.clientName==="MWEB"||J.clientName==="WEB"?(J.mainAppWebInfo||(J.mainAppWebInfo={}),J.mainAppWebInfo.graftUrl=g.OQ.location.href,g.Qi("kevlar_woffle")&&vZQ.instance&&(G=vZQ.instance,J.mainAppWebInfo.pwaInstallabilityStatus=!G.C&&G.N?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),J.mainAppWebInfo.webDisplayMode=f5(),J.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):J.clientName==="TVHTML5"&&(!g.Qi("web_lr_app_quality_killswitch")&&(G=g.D4("LIVING_ROOM_APP_QUALITY"))&&(J.tvAppInfo=Object.assign(J.tvAppInfo||{},{appQuality:G})),G=g.D4("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(J.tvAppInfo=Object.assign(J.tvAppInfo||{},{certificationScope:G}));if(!g.Qi("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var K=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(t){}K=void 0}K&&(J.timeZone=K)}(K=vL())?J.experimentsToken=K:delete J.experimentsToken;K=HL();rR.instance||(rR.instance=new rR);a.request=Object.assign({},a.request,{internalExperimentFlags:K,consistencyTokenJars:Q3(rR.instance.C)});!g.Qi("web_prequest_context_killswitch")&&(K=g.D4("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(a.request.externalPrequestContext=K);J=g.hO();K=J.QD(58);J=J.get("gsml","");a.user=Object.assign({}, a.user);K&&(a.user.enableSafetyMode=K);J&&(a.user.lockedSafetyMode=!0);g.Qi("warm_op_csn_cleanup")?m&&(W=g.uR())&&(a.clientScreenNonce=W):!W&&(W=g.uR())&&(a.clientScreenNonce=W);S&&(a.clickTracking={clickTrackingParams:S});if(S=g.v9("yt.mdx.remote.remoteClient_"))a.remoteClient=S;c1.getInstance().setLocationOnInnerTubeContext(a);try{var T=Fs(),p=T.bid;delete T.bid;a.adSignalsInfo={params:[],bid:p};for(var q=g.R(Object.entries(T)),F=q.next();!F.done;F=q.next()){var O=g.R(F.value),X=O.next().value, l=O.next().value;T=X;p=l;S=void 0;(S=a.adSignalsInfo.params)==null||S.push({key:T,value:""+p})}var M,e;if(((M=a.client)==null?void 0:M.clientName)==="TVHTML5"||((e=a.client)==null?void 0:e.clientName)==="TVHTML5_UNPLUGGED"){var d=g.D4("INNERTUBE_CONTEXT");d.adSignalsInfo&&(a.adSignalsInfo.advertisingId=d.adSignalsInfo.advertisingId,a.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",a.adSignalsInfo.limitAdTracking=d.adSignalsInfo.limitAdTracking)}}catch(t){g.lR(t)}return a}; GH6=function(S,W){if(!S)return!1;var m,a=(m=g.n(S,yn7))==null?void 0:m.signal;if(a&&W.Mt)return!!W.Mt[a];var J;if((m=(J=g.n(S,Yj_))==null?void 0:J.request)&&W.NC)return!!W.NC[m];for(var B in S)if(W.eV[B])return!0;return!1}; KUK=function(S){var W={"Content-Type":"application/json"};g.D4("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=g.D4("EOM_VISITOR_DATA"):g.D4("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=g.D4("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=g.D4("LOGGED_IN",!1);g.D4("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=g.D4("DEBUG_SETTINGS_METADATA"));S!=="cors"&&((S=g.D4("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=S),(S=g.D4("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]= S),(S=g.D4("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=S),(S=g.D4("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=S));(S=g.D4("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=S);return W}; Tac=function(){this.C={}}; wR=function(){this.mappings=new Tac}; SG=function(S){return function(){return new S}}; pq6=function(S){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(S.length===1)return S[0];var m=qjl[W];if(m){m=new RegExp(m);for(var a=g.R(S),J=a.next();!J.done;J=a.next())if(J=J.value,m.exec(J))return J}var B=[];Object.entries(qjl).forEach(function(E){var y=g.R(E);E=y.next().value;y=y.next().value;W!==E&&B.push(y)}); m=new RegExp(B.join("|"));S.sort(function(E,y){return E.length-y.length}); a=g.R(S);for(J=a.next();!J.done;J=a.next())if(J=J.value,!m.exec(J))return J;return S[0]}; g.Wz=function(S){return"/youtubei/v1/"+pq6(S)}; m_=function(){}; aP=function(){}; JY=function(){}; Bz=function(S){return g.v9("ytcsi."+(S||"")+"data_")||FUP(S)}; VFD=function(){var S=Bz();S.info||(S.info={});return S.info}; EY=function(S){S=Bz(S);S.metadata||(S.metadata={});return S.metadata}; za=function(S){S=Bz(S);S.tick||(S.tick={});return S.tick}; yf=function(S){S=Bz(S);if(S.gel){var W=S.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else S.gel={gelTicks:{},gelInfos:{}};return S.gel}; no7=function(S){S=yf(S);S.gelInfos||(S.gelInfos={});return S.gelInfos}; Ym=function(S){var W=Bz(S).nonce;W||(W=g.pz(16),Bz(S).nonce=W);return W}; FUP=function(S){var W={tick:{},info:{}};g.j$("ytcsi."+(S||"")+"data_",W);return W}; Ga=function(){var S=g.v9("ytcsi.debug");S||(S=[],g.j$("ytcsi.debug",S),g.j$("ytcsi.reference",{}));return S}; KG=function(S){S=S||"";var W=s6X();if(W[S])return W[S];var m=Ga(),a={timerName:S,info:{},tick:{},span:{},jspbInfo:[]};m.push(a);return W[S]=a}; u17=function(S){S=S||"";var W=s6X();W[S]&&delete W[S];var m=Ga(),a={timerName:S,info:{},tick:{},span:{},jspbInfo:[]};m.push(a);W[S]=a}; s6X=function(){var S=g.v9("ytcsi.reference");if(S)return S;Ga();return g.v9("ytcsi.reference")}; Ta=function(S){return gol[S]||"LATENCY_ACTION_UNKNOWN"}; qL=function(S,W){qS.call(this,1,arguments);this.timer=W}; pG=function(){this.C=0}; Fu=function(){pG.instance||(pG.instance=new pG);return pG.instance}; nG=function(S,W){Vf[W]=Vf[W]||{count:0};var m=Vf[W];m.count++;m.time=(0,g.X1)();S.C||(S.C=g.cX(0,function(){var a=(0,g.X1)(),J;for(J in Vf)Vf[J]&&a-Vf[J].time>6E4&&delete Vf[J];S&&(S.C=0)},5E3)); return m.count>5?(m.count===6&&Math.random()*1E5<1&&(m=new g.uc("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||g.Ue(m)),!0):!1}; OO6=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; j6c=function(){var S;if(g.Qi("csi_use_performance_navigation_timing")){var W,m,a,J=sY==null?void 0:(S=sY.getEntriesByType)==null?void 0:(W=S.call(sY,"navigation"))==null?void 0:(m=W[0])==null?void 0:(a=m.toJSON)==null?void 0:a.call(m);J?(J.requestStart=uU(J.requestStart),J.responseEnd=uU(J.responseEnd),J.redirectStart=uU(J.redirectStart),J.redirectEnd=uU(J.redirectEnd),J.domainLookupEnd=uU(J.domainLookupEnd),J.connectStart=uU(J.connectStart),J.connectEnd=uU(J.connectEnd),J.responseStart=uU(J.responseStart), J.secureConnectionStart=uU(J.secureConnectionStart),J.domainLookupStart=uU(J.domainLookupStart),J.isPerformanceNavigationTiming=!0,S=J):S=sY.timing}else S=g.Qi("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(sY.timing)):sY.timing;return S}; uU=function(S){return Math.round(gf()+S)}; gf=function(){return(g.Qi("csi_use_time_origin")||g.Qi("csi_use_time_origin_tvhtml5"))&&sY.timeOrigin?Math.floor(sY.timeOrigin):sY.timing.navigationStart}; jG=function(S,W){OY("_start",S,W)}; Qf=function(S,W){if(!g.Qi("web_csi_action_sampling_enabled")||!Bz(W).actionDisabled){var m=KG(W||"");zN(m.info,S);S.loadType&&(m=S.loadType,EY(W).loadType=m);zN(no7(W),S);m=Ym(W);W=Bz(W).cttAuthInfo;Fu().info(S,m,W)}}; Q6D=function(){var S,W,m,a;return((a=Hp().resolve(OA(y_))==null?void 0:(S=YD())==null?void 0:(W=S.loggingHotConfig)==null?void 0:(m=W.csiConfig)==null?void 0:m.debugTicks)!=null?a:[]).map(function(J){return Object.values(J)[0]})}; OY=function(S,W,m){if(!g.Qi("web_csi_action_sampling_enabled")||!Bz(m).actionDisabled){var a=Ym(m),J;if(J=g.Qi("web_csi_debug_sample_enabled")&&a){(Hp().resolve(OA(y_))==null?0:YD())&&!XqX&&(XqX=!0,OY("gcfl",(0,g.X1)(),m));var B,E,y;J=(Hp().resolve(OA(y_))==null?void 0:(B=YD())==null?void 0:(E=B.loggingHotConfig)==null?void 0:(y=E.csiConfig)==null?void 0:y.debugSampleWeight)||0;if(B=J!==0)b:{B=Q6D();if(B.length>0)for(E=0;Em.duration?a:m},{duration:0}))&&W.startTime>0&&W.responseEnd>0&&(OY("wffs",uU(W.startTime)),OY("wffe",uU(W.responseEnd)))}; RZl=function(S,W,m){sY&&sY.measure&&(S.startsWith("measure_")||(S="measure_"+S),m?sY.measure(S,W,m):W?sY.measure(S,W):sY.measure(S))}; eZ6=function(S){var W=Xu("aft",S);if(W)return W;W=g.D4((S||"")+"TIMING_AFT_KEYS",["ol"]);for(var m=W.length,a=0;a0&&Qf(W);W={isNavigation:!0,actionType:Ta(g.D4("TIMING_ACTION"))};var m=g.D4("PREVIOUS_ACTION");m&&(W.previousAction=Ta(m));if(m=g.D4("CLIENT_PROTOCOL"))W.httpProtocol=m;if(m=g.D4("CLIENT_TRANSPORT"))W.transportProtocol=m;(m=g.uR())&&m!=="UNDEFINED_CSN"&&(W.clientScreenNonce=m);m=lfX();if(m===1||m===-1)W.isVisible= !0;m=EY().loadType==="cold";var a=VFD();m||(m=a.yt_lt==="cold");if(m){W.loadType="cold";m=VFD();a=j6c();var J=gf(),B=g.D4("CSI_START_TIMESTAMP_MILLIS",0);B>0&&!g.Qi("embeds_web_enable_csi_start_override_killswitch")&&(J=B);J&&(OY("srt",a.responseStart),m.prerender!==1&&jG(J));m=dDj();m>0&&OY("fpt",m);m=j6c();m.isPerformanceNavigationTiming&&Qf({performanceNavigationTiming:!0},void 0);OY("nreqs",m.requestStart,void 0);OY("nress",m.responseStart,void 0);OY("nrese",m.responseEnd,void 0);m.redirectEnd- m.redirectStart>0&&(OY("nrs",m.redirectStart,void 0),OY("nre",m.redirectEnd,void 0));m.domainLookupEnd-m.domainLookupStart>0&&(OY("ndnss",m.domainLookupStart,void 0),OY("ndnse",m.domainLookupEnd,void 0));m.connectEnd-m.connectStart>0&&(OY("ntcps",m.connectStart,void 0),OY("ntcpe",m.connectEnd,void 0));m.secureConnectionStart>=gf()&&m.connectEnd-m.secureConnectionStart>0&&(OY("nstcps",m.secureConnectionStart,void 0),OY("ntcpe",m.connectEnd,void 0));sY&&"getEntriesByType"in sY&&LU7();m=[];if(document.querySelector&& sY&&sY.getEntriesByName)for(var E in lU)lU.hasOwnProperty(E)&&(a=lU[E],UDX(E,a)&&m.push(a));if(m.length>0)for(W.resourceInfo=[],E=g.R(m),m=E.next();!m.done;m=E.next())W.resourceInfo.push({resourceCache:m.value})}Qf(W);W=yf();W.preLoggedGelInfos||(W.preLoggedGelInfos=[]);E=W.preLoggedGelInfos;W=no7();m=void 0;for(a=0;a-1&&(delete qP["@type"],t=qP);q&&S.N.has(q)&&S.N.delete(q);((jO=W.config)==null?0:jO.OJ6)&&UY(W.config.OJ6);if(t||(D6=S.B)==null||!D6.wJY(W.input,W.S4)){kX.cn(11);break}return g.P(kX,S.B.l62(W.input,W.S4),12);case 12:t=kX.N;case 11:return fG(S, t,W),((zg=W.config)==null?0:zg.NpD)&&UY(W.config.NpD),a(),kX.return(t||void 0)}})}; rnP=function(S,W){a:{S=S.t7;var m,a=(m=g.n(W,yn7))==null?void 0:m.signal;if(a&&S.Mt&&(m=S.Mt[a])){var J=m();break a}var B;if((m=(B=g.n(W,Yj_))==null?void 0:B.request)&&S.NC&&(B=S.NC[m])){J=B();break a}for(J in W)if(S.eV[J]&&(W=S.eV[J])){J=W();break a}J=void 0}if(J!==void 0)return Promise.resolve(J)}; cnX=function(S,W,m){var a,J,B,E,y,Y,G;return g.k(function(K){if(K.C==1){B=((a=W)==null?void 0:(J=a.Fv)==null?void 0:J.identity)||To;Y=(E=W)==null?void 0:(y=E.Fv)==null?void 0:y.sessionIndex;var T=g.Rz(S.C.jP(B,{sessionIndex:Y}));return g.P(K,T,2)}G=K.N;return K.return(Promise.resolve(Object.assign({},KUK(m),G)))})}; CPP=function(S,W,m){var a,J=(W==null?void 0:(a=W.Fv)==null?void 0:a.identity)||To,B;W=W==null?void 0:(B=W.Fv)==null?void 0:B.sessionIndex;S=S.C.jP(J,{sessionIndex:W});return Object.assign({},KUK(m),S)}; km=function(){}; $m=function(){}; hY=function(S){this.V=S}; tY=function(){}; AY=function(){}; ZE=function(){}; NL=function(){}; g.bU=function(S,W){var m=g.VH.apply(2,arguments);S=S===void 0?0:S;g.uc.call(this,W,m);this.errorType=S;Object.setPrototypeOf(this,this.constructor.prototype)}; oP=function(S){this.C=S}; mSP=function(S,W,m){if(S.C){var a=Hj(Pj(W,"key"))||"/UNKNOWN_PATH";S.C.start(a)}S=m;g.Qi("wug_networking_gzip_request")&&(S=VyO(m));return new window.Request(W,S)}; g.CG=function(S,W){if(!rf){var m=Hp();j0(m,{r3:aLD,mf:oP});var a={eV:{feedbackEndpoint:SG(tY),modifyChannelNotificationPreferenceEndpoint:SG(AY),playlistEditEndpoint:SG(ZE),shareEntityEndpoint:SG(hY),subscribeEndpoint:SG(km),unsubscribeEndpoint:SG($m),webPlayerShareEntityServiceEndpoint:SG(NL)}},J=c1.getInstance(),B={};J&&(B.client_location=J);S===void 0&&(S=HR7());W===void 0&&(W=m.resolve(aLD));ooc(a,W,S,B);j0(m,{r3:Jv_,Eb:df.instance});rf=m.resolve(Jv_)}return rf}; Bd6=function(S){var W=new Gh;if(S.interpreterJavascript){var m=qIP(S.interpreterJavascript);m=xk(m).toString();var a=new y$;We(a,6,m);Zs(W,y$,1,a,yR)}else S.interpreterUrl&&(m=Uw(S.interpreterUrl),m=sR(m).toString(),a=new YZ,We(a,4,m),Zs(W,YZ,2,a,yR));S.interpreterHash&&mT(W,3,S.interpreterHash,yR);S.program&&mT(W,4,S.program,yR);S.globalName&&mT(W,5,S.globalName,yR);S.clientExperimentsStateBlob&&mT(W,7,S.clientExperimentsStateBlob,yR);return W}; cz=function(S){var W={};S=S.split("&");S=g.R(S);for(var m=S.next();!m.done;m=S.next())m=m.value.split("="),m.length===2&&(W[m[0]]=m[1]);return W}; EDP=function(){var S=S===void 0?window:S;var W,m;return g.k(function(a){if(a.C==1)return g.P(a,yB(),2);W=S;m=W.bgevmc;if(!m)throw Error("BGE Controls not exposed");return a.return({pause:function(){m.p()}, resume:function(){m.r()}, checkForRefresh:function(){return m.cr()}})})}; WTl=function(){if(g.Qi("bg_st_hr"))return"havuokmhhs-0";var S,W=((S=globalThis.performance)==null?void 0:S.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)}; DE=function(S){window.bgens=S}; wf=function(S){this.C=S}; zFG=function(){return new Promise(function(S){var W=window;W.ntpevasrs!==void 0?S(new wf(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(m){S(new wf(m))}))})}; GoQ=function(){if(BX()){var S=g.D4("PLAYER_VARS",{});if(g.L$(S,"privembed",!1)!="1"&&!Sil(S)){var W=function(){S3=!0;"google_ad_status"in window?c6("DCLKSTAT",1):c6("DCLKSTAT",2)}; try{var m=Rh(document);g.a_(yvD,W,m)}catch(a){}Yr7.push(g.h6.U$(function(){if(!(S3||"google_ad_status"in window)){try{if(yvD.toString()&&W){var a=""+g.xp(W),J=cUj[a];J&&g.Wp(J)}}catch(B){}S3=!0;c6("DCLKSTAT",3)}},5E3))}}}; WO=function(){var S=Number(g.D4("DCLKSTAT",0));return isNaN(S)?0:S}; BO=function(S,W,m){var a=this;this.network=S;this.options=W;this.j=m;this.B=0;this.C=null;this.N=new C9c;if(W.ikn){var J=new g.Th;this.C=J.promise;g.OQ.ytAtRC?C5(function(){var B,E;return g.k(function(y){if(y.C==1){if(!g.OQ.ytAtRC)return a.N.WG(6,a.B++),y.return();a.N.WG(2,a.B++);B=me(null);return g.P(y,aR(a,B),2)}E=y.N;g.OQ.ytAtRC&&g.OQ.ytAtRC(JSON.stringify(E));g.B9(y)})},2,Xs("att_init_delay",0)):this.N.WG(1,this.B++); zFG().then(function(B){var E,y,Y,G;return g.k(function(K){if(K.C==1)return B.bindInnertubeChallengeFetcher(function(T){a.N.WG(3,a.B++);return aR(a,me(T))}),g.P(K,yB(),2); E=K.N;y=B.getLatestChallengeResponse();Y=y.challenge;if(!Y)throw Error("BGE_MACIL");G={challenge:Y,SQ:cz(Y),u$:E,bgChallenge:new Gh};J.resolve(G);B.registerChallengeFetchedCallback(function(T){T=T.challenge;if(!T)throw Error("BGE_MACR");T={challenge:T,SQ:cz(T),u$:E,bgChallenge:new Gh};a.C=Promise.resolve(T)}); g.B9(K)})})}else W.preload&&KBQ(this,new Promise(function(B){g.cX(0,function(){B(JA(a))},0)}))}; me=function(S){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};S&&(W.interpreterHash=S);return W}; JA=function(S,W){W=W===void 0?0:W;var m,a,J,B,E,y,Y,G,K,T,p,q;return g.k(function(F){switch(F.C){case 1:m=me(Fy().C);if(g.Qi("att_fet_ks"))return g.EQ(F,7),S.N.WG(5,S.B++),g.P(F,aR(S,m),9);g.EQ(F,4);return g.P(F,TdP(S,m),6);case 6:E=F.N;J=E.K92;B=E.rOn;a=E;g.Yp(F,3);break;case 4:return g.Gg(F),g.Ue(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),Es(S,864E5),F.return({challenge:"",SQ:{},u$:void 0,bgChallenge:void 0});case 9:a=F.N;if(!a)throw Error("Fetching Attestation challenge returned falsy"); if(!a.challenge)throw Error("Missing Attestation challenge");J=a.challenge;B=cz(J);if("c1a"in B&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Yp(F,3);break;case 7:y=g.Gg(F);g.Ue(y);W++;if(W>=5)return g.Ue(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),Es(S,864E5),F.return({challenge:"",SQ:{},u$:void 0,bgChallenge:void 0});Y=1E3*Math.pow(2,W-1)+Math.random()*1E3;return F.return(new Promise(function(O){g.cX(0, function(){O(JA(S,W))},Y)})); case 3:G=Number(B.t)||7200;Es(S,G*1E3);K=void 0;if(!("c1a"in B&&a.bgChallenge)){F.cn(10);break}T=Bd6(a.bgChallenge);g.EQ(F,11);return g.P(F,wjQ(Fy(),T),13);case 13:g.Yp(F,12);break;case 11:return p=g.Gg(F),g.Ue(p),F.return({challenge:J,SQ:B,u$:K,bgChallenge:T});case 12:return g.EQ(F,14),K=new ql({challenge:T,LT:{xB:"aGIf"}}),g.P(F,K.nK,16);case 16:g.Yp(F,10);break;case 14:q=g.Gg(F),g.Ue(q),K=void 0;case 10:return F.return({challenge:J,SQ:B,u$:K,bgChallenge:T})}})}; qrP=function(S,W){var m;return g.k(function(a){if(a.C==1)return DE(2),g.EQ(a,2),g.P(a,aR(S.network,W),4);if(a.C!=2)return(m=a.N)?m.challenge&&!m.bgChallenge?DE(1):DE(4):DE(3),a.return(m);g.Gg(a);DE(3);return a.return(void 0)})}; aR=function(S,W){var m;return g.k(function(a){m=S.j;if(!m||m.AV())return a.return(qrP(S,W));iU("att_pna",void 0,"attestation_challenge_fetch");return a.return(new Promise(function(J){m.Vt("publicytnetworkstatus-online",function(){qrP(S,W).then(J)})}))})}; pUP=function(S){if(!S)throw Error("Fetching Attestation challenge returned falsy");if(!S.challenge)throw Error("Missing Attestation challenge");var W=S.challenge,m=cz(W);if("c1a"in m&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},S,{K92:W,rOn:m})}; TdP=function(S,W){var m,a,J,B,E;return g.k(function(y){switch(y.C){case 1:m=void 0,a=0,J={};case 2:if(!(a<5)){y.cn(4);break}if(!(a>0)){y.cn(5);break}J.Sw=1E3*Math.pow(2,a-1)+Math.random()*1E3;return g.P(y,new Promise(function(Y){return function(G){g.cX(0,function(){G(void 0)},Y.Sw)}}(J)),5); case 5:return g.EQ(y,7),S.N.WG(4,S.B++),g.P(y,aR(S,W),9);case 9:return B=y.N,y.return(pUP(B));case 7:m=E=g.Gg(y),E instanceof Error&&g.Ue(E);case 8:a++;J={Sw:void 0};y.cn(2);break;case 4:throw m;}})}; KBQ=function(S,W){S.C=W}; FBO=function(S){var W,m,a;return g.k(function(J){if(J.C==1)return g.P(J,Promise.race([S.C,null]),2);W=J.N;var B=JA(S);S.C=B;(m=W)==null||(a=m.u$)==null||a.dispose();g.B9(J)})}; Es=function(S,W){function m(){var J;return g.k(function(B){J=a-Date.now();return J<1E3?g.P(B,FBO(S),0):(C5(m,0,Math.min(J,6E4)),B.cn(0))})} var a=Date.now()+W;m()}; V9G=function(S,W){return new Promise(function(m){g.cX(0,function(){m(W())},S)})}; nDP=function(){return new Promise(function(S){var W=window;W.attmp!==void 0?S(W.attmp):(W.attmq===void 0&&(W.attmq=[]),W.attmq.push(function(m){S(m)}))})}; g.srX=function(S,W){var m,a,J;return g.k(function(B){if(B.C==1){if(!g.Qi("attmusi")||!g.Qi("attmusi_ue"))return B.cn(2);m=window;return m.attmp!==void 0?B.return(m.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",S,W)):g.P(B,nDP(),3)}if(B.C!=2)return a=B.N,B.return(a.s("ENGAGEMENT_TYPE_PLAYBACK",S,W));var E=g.v9("yt.aba.att");return(J=E?E:BO.instance!==void 0?BO.instance.X.bind(BO.instance):null)?B.return(J("ENGAGEMENT_TYPE_PLAYBACK",S,W)):B.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.uR7=function(){var S,W,m;return g.k(function(a){if(a.C==1){if(!g.Qi("attmusi")||!g.Qi("attmusi_ue"))return a.cn(2);S=window;return S.attmp===void 0?a.return(!1):g.P(a,nDP(),3)}if(a.C!=2)return W=a.N,a.return(W.ir());var J=g.v9("yt.aba.att2");return(m=J?J:BO.instance!==void 0?BO.instance.V.bind(BO.instance):null)?a.return(m()):a.return(Promise.resolve(!1))})}; OmX=function(S,W){var m=g.v9("ytDebugData.callbacks");m||(m={},g.j$("ytDebugData.callbacks",m));if(g.Qi("web_dd_iu")||gDc.includes(S))m[S]=W}; zK=function(){var S=jrX;var W=W===void 0?[]:W;var m=m===void 0?[]:m;W=zoO.apply(null,[ysc.apply(null,g.x(W))].concat(g.x(m)));this.store=GU6(S,void 0,W)}; g.yx=function(S,W,m){for(var a=Object.assign({},S),J=g.R(Object.keys(W)),B=J.next();!B.done;B=J.next()){B=B.value;var E=S[B],y=W[B];if(y===void 0)delete a[B];else if(E===void 0)a[B]=y;else if(Array.isArray(y)&&Array.isArray(E))a[B]=m?[].concat(g.x(E),g.x(y)):y;else if(!Array.isArray(y)&&g.Ln(y)&&!Array.isArray(E)&&g.Ln(E))a[B]=g.yx(E,y,m);else if(typeof y===typeof E)a[B]=y;else return W=new g.uc("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:B,I56:E,updateValue:y}),g.lR(W), S}return a}; YQ=function(S){var W=this;S=S===void 0?[]:S;this.C=[];this.B=this.N=0;this.j=void 0;this.totalLength=0;S.forEach(function(m){W.append(m)})}; Qrl=function(S,W){return S.C.length===0?!1:(S=S.C[S.C.length-1])&&S.buffer===W.buffer&&S.byteOffset+S.length===W.byteOffset}; GK=function(S,W){W=g.R(W.C);for(var m=W.next();!m.done;m=W.next())S.append(m.value)}; Kc=function(S,W,m){return S.split(W).s3.split(m).XT}; TK=function(S){S.j=void 0;S.N=0;S.B=0}; q9=function(S,W,m){S.isFocused(W);return W-S.B+m<=S.C[S.N].length}; XUD=function(S){if(!S.j){var W=S.C[S.N];S.j=new DataView(W.buffer,W.byteOffset,W.length)}return S.j}; vD6=function(S,W,m){W=W===void 0?0:W;m=m===void 0?-1:m;if(!S.totalLength||!m)return new DataView(new ArrayBuffer(0));m<0&&(m=S.totalLength-W);S.focus(W);if(!q9(S,W,m)){var a=S.N,J=S.B;S.focus(W+m-1);J=new Uint8Array(S.B+S.C[S.N].length-J);for(var B=0,E=a;E<=S.N;E++)J.set(S.C[E],B),B+=S.C[E].length;S.C.splice(a,S.N-a+1,J);TK(S);S.focus(W)}a=S.C[S.N];return new DataView(a.buffer,a.byteOffset+W-S.B,m)}; pc=function(S,W,m){S=vD6(S,W===void 0?0:W,m===void 0?-1:m);return new Uint8Array(S.buffer,S.byteOffset,S.byteLength)}; FQ=function(S,W,m){S=pc(S,W===void 0?0:W,m===void 0?-1:m);W=new Uint8Array(S.length);try{W.set(S)}catch(a){for(m=0;m>10;B=56320|B&1023}gF[J++]=B}}B=String.fromCharCode.apply(String,gF); J<1024&&(B=B.substring(0,J));m.push(B)}return m.join("")}; Qx=function(S,W){var m;if((m=j3)==null?0:m.encodeInto)return W=j3.encodeInto(S,W),W.read>6|192:((J&64512)===55296&&a+1>18|240,W[m++]=J>>12&63|128):W[m++]=J>>12|224,W[m++]=J>>6&63|128),W[m++]=J&63|128)}return m}; XQ=function(S){if(j3)return j3.encode(S);var W=new Uint8Array(Math.ceil(S.length*1.2)),m=Qx(S,W);W.lengthm&&(W=W.subarray(0,m));return W}; vO=function(S){this.C=S;this.pos=0;this.N=-1}; HO=function(S){var W=Vx(S.C,S.pos);++S.pos;if(W<128)return W;for(var m=W&127,a=1;W>=128;)W=Vx(S.C,S.pos),++S.pos,a*=128,m+=(W&127)*a;return m}; lq=function(S,W){var m=S.N;for(S.N=-1;S.pos+1<=S.C.totalLength;){m<0&&(m=HO(S));var a=m>>3,J=m&7;if(a===W)return!0;if(a>W){S.N=m;break}m=-1;switch(J){case 0:HO(S);break;case 1:S.pos+=8;break;case 2:a=HO(S);S.pos+=a;break;case 5:S.pos+=4}}return!1}; M9=function(S,W){if(lq(S,W))return HO(S)}; Us=function(S,W){if(lq(S,W))return W=pc(S.C,S.pos,8),S.pos+=8,(new DataView(W.buffer,W.byteOffset,W.byteLength)).getFloat64(0,!0)}; Lc=function(S,W){if(lq(S,W))return!!HO(S)}; RR=function(S,W){if(lq(S,W)){W=HO(S);var m=pc(S.C,S.pos,W);S.pos+=W;return m}}; e3=function(S,W){if(S=RR(S,W))return g.Os(S)}; xQ=function(S,W,m){if(S=RR(S,W))return m(new vO(new YQ([S])))}; iq=function(S,W){for(var m=[];lq(S,W);)m.push(HO(S));return m.length?m:void 0}; dF=function(S,W,m){for(var a=[],J;J=RR(S,W);)a.push(m(new vO(new YQ([J]))));return a.length?a:void 0}; IR=function(S,W){S=S instanceof Uint8Array?new YQ([S]):S;return W(new vO(S))}; M9j=function(S,W){S=new Uint8Array(S);W&&S.set(W);return S}; USl=function(S){this.pos=0;this.N=[];this.C=M9j(S===void 0?4096:S);this.view=new DataView(this.C.buffer,this.C.byteOffset,this.C.byteLength)}; PO=function(S,W){W=S.pos+W;if(!(S.C.length>=W)){for(var m=S.C.length*2;m268435455){PO(S,4);for(var m=W&1073741823,a=0;a<4;a++)S.view.setUint8(S.pos,m&127|128),m>>=7,S.pos+=1;W=Math.floor(W/268435456)}for(PO(S,4);W>127;)S.view.setUint8(S.pos,W&127|128),W>>=7,S.pos+=1;S.view.setUint8(S.pos,W);S.pos+=1}; kQ=function(S,W,m){m!==void 0&&(fc(S,W*8),fc(S,m))}; $Q=function(S,W,m){m!==void 0&&kQ(S,W,m?1:0)}; hA=function(S,W,m){m!==void 0&&(fc(S,W*8+2),W=m.length,fc(S,W),PO(S,W),S.C.set(m,S.pos),S.pos+=W)}; tA=function(S,W,m){m!==void 0&&(LBO(S,W,Math.ceil(Math.log2(m.length*4+2)/7)),PO(S,m.length*1.2),W=Qx(m,S.C.subarray(S.pos)),S.pos+W>S.C.length&&(PO(S,W),W=Qx(m,S.C.subarray(S.pos))),S.pos+=W,RFQ(S))}; LBO=function(S,W,m){m=m===void 0?2:m;fc(S,W*8+2);S.N.push(S.pos);S.N.push(m);S.pos+=m}; RFQ=function(S){for(var W=S.N.pop(),m=S.N.pop(),a=S.pos-m-W;W--;){var J=W?128:0;S.view.setUint8(m++,a&127|J);a>>=7}}; AA=function(S,W,m,a,J){m&&(LBO(S,W,J===void 0?3:J),a(S,m),RFQ(S))}; g.Z1=function(S,W){var m=new USl(4096);W(m,S);return new Uint8Array(m.C.buffer,m.C.byteOffset,m.pos)}; g.N9=function(S){var W=new vO(new YQ([$r(decodeURIComponent(S))]));S=e3(W,2);W=M9(W,4);var m=eFO[W];if(typeof m==="undefined")throw S=new g.uc("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),g.lR(S),S;return{ww:W,entityType:m,entityId:S}}; g.bq=function(S,W){var m=m===void 0?0:m;var a=new USl;hA(a,2,XQ(S));S=xSO[W];if(typeof S==="undefined")throw m=new g.uc("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),g.lR(m),m;kQ(a,4,S);kQ(a,5,1);W=new Uint8Array(a.C.buffer,a.C.byteOffset,a.pos);return encodeURIComponent(g.fh(W,m))}; oR=function(S,W,m,a){if(a===void 0)return a=Object.assign({},S[W]||{}),m=(delete a[m],a),a={},Object.assign({},S,(a[W]=m,a));var J={},B={};return Object.assign({},S,(B[W]=Object.assign({},S[W],(J[m]=a,J)),B))}; im7=function(S,W,m,a,J){var B=S[W];if(B==null||!B[m])return S;a=g.yx(B[m],a,J==="REPEATED_FIELDS_MERGE_OPTION_APPEND");J={};B={};return Object.assign({},S,(B[W]=Object.assign({},S[W],(J[m]=a,J)),B))}; dS6=function(S,W){S=S===void 0?{}:S;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(a,J){var B,E=(B=J.options)==null?void 0:B.persistenceOption;if(E&&E!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&E!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return a;if(!J.entityKey)return g.lR(Error("Missing entity key")),a;if(J.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!J.payload)return J=new g.uc("REPLACE entity mutation is missing a payload",{entityKey:J.entityKey}),g.lR(J),a;var y=g.jm(J.payload); return oR(a,y,J.entityKey,J.payload[y])}if(J.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{J=J.entityKey;try{var Y=g.N9(J).entityType;y=oR(a,Y,J);break a}catch(T){if(T instanceof Error){J=new g.uc("Failed to deserialize entity key",{entityKey:J,originalMessage:T.message});g.lR(J);y=a;break a}throw T;}y=void 0}return y}if(J.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!J.payload)return J=new g.uc("UPDATE entity mutation is missing a payload",{entityKey:J.entityKey}),g.lR(J),a;y=g.jm(J.payload);var G,K;return im7(a, y,J.entityKey,J.payload[y],(G=J.fieldMask)==null?void 0:(K=G.mergeOptions)==null?void 0:K.repeatedFieldsMergeOption)}return a},S); case "REPLACE_ENTITY":var m=W.payload;return oR(S,m.entityType,m.key,m.yO);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(a,J){var B=W.payload[J];return Object.keys(B).reduce(function(E,y){return oR(E,J,y,B[y])},a)},S); case "UPDATE_ENTITY":return m=W.payload,im7(S,m.entityType,m.key,m.yO,m.e49);default:return S}}; rF=function(S,W,m){return S[W]?S[W][m]||null:null}; Cc=function(S){return window.Int32Array?new Int32Array(S):Array(S)}; mC=function(S){g.A.call(this);this.counter=[0,0,0,0];this.N=new Uint8Array(16);this.C=16;if(!ILP){var W,m=new Uint8Array(256),a=new Uint8Array(256);var J=1;for(W=0;W<256;W++)m[J]=W,a[W]=J,J^=J<<1^(J>>7&&283);cO=new Uint8Array(256);D1=Cc(256);wF=Cc(256);S_=Cc(256);WS=Cc(256);for(var B=0;B<256;B++){J=B?a[255^m[B]]:0;J^=J<<1^J<<2^J<<3^J<<4;J=J&255^J>>>8^99;cO[B]=J;W=J<<1^(J>>7&&283);var E=W^J;D1[B]=W<<24|J<<16|J<<8|E;wF[B]=E<<24|D1[B]>>>8;S_[B]=J<<24|wF[B]>>>8;WS[B]=J<<24|S_[B]>>>8}ILP=!0}J=Cc(44);for(m= 0;m<4;m++)J[m]=S[4*m]<<24|S[4*m+1]<<16|S[4*m+2]<<8|S[4*m+3];for(a=1;m<44;m++)S=J[m-1],m%4||(S=(cO[S>>16&255]^a)<<24|cO[S>>8&255]<<16|cO[S&255]<<8|cO[S>>>24],a=a<<1^(a>>7&&283)),J[m]=J[m-4]^S;this.key=J}; PrG=function(S){for(var W=S.key,m=S.counter[0]^W[0],a=S.counter[1]^W[1],J=S.counter[2]^W[2],B=S.counter[3]^W[3],E=3;E>=0&&!(S.counter[E]=-~S.counter[E]);E--);for(var y,Y,G=4;G<40;)E=D1[m>>>24]^wF[a>>16&255]^S_[J>>8&255]^WS[B&255]^W[G++],y=D1[a>>>24]^wF[J>>16&255]^S_[B>>8&255]^WS[m&255]^W[G++],Y=D1[J>>>24]^wF[B>>16&255]^S_[m>>8&255]^WS[a&255]^W[G++],B=D1[B>>>24]^wF[m>>16&255]^S_[a>>8&255]^WS[J&255]^W[G++],m=E,a=y,J=Y;S=S.N;E=W[40];S[0]=cO[m>>>24]^E>>>24;S[1]=cO[a>>16&255]^E>>16&255;S[2]=cO[J>>8&255]^ E>>8&255;S[3]=cO[B&255]^E&255;E=W[41];S[4]=cO[a>>>24]^E>>>24;S[5]=cO[J>>16&255]^E>>16&255;S[6]=cO[B>>8&255]^E>>8&255;S[7]=cO[m&255]^E&255;E=W[42];S[8]=cO[J>>>24]^E>>>24;S[9]=cO[B>>16&255]^E>>16&255;S[10]=cO[m>>8&255]^E>>8&255;S[11]=cO[a&255]^E&255;E=W[43];S[12]=cO[B>>>24]^E>>>24;S[13]=cO[m>>16&255]^E>>16&255;S[14]=cO[a>>8&255]^E>>8&255;S[15]=cO[J&255]^E&255}; BS=function(){if(!at&&!g.ND){if(Je)return Je;var S;Je=(S=window.crypto)==null?void 0:S.subtle;var W,m,a;if(((W=Je)==null?0:W.importKey)&&((m=Je)==null?0:m.sign)&&((a=Je)==null?0:a.encrypt))return Je;Je=void 0}}; g.ys=function(S){var W=BS();W&&(this.C=new EJ(S,W));this.N=new g.zs(S)}; EJ=function(S,W){this.N=S;this.subtleCrypto=W}; fLQ=function(S,W,m){var a,J;return g.k(function(B){switch(B.C){case 1:if(S.C){B.cn(2);break}return g.P(B,S.subtleCrypto.importKey("raw",S.N,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:S.C=B.N;case 2:return a={name:"AES-CTR",counter:m,length:128},g.P(B,S.subtleCrypto.encrypt(a,S.C,W),4);case 4:return J=B.N,B.return(new Uint8Array(J))}})}; g.zs=function(S){this.N=S}; YB=function(S){this.X=new Uint8Array(64);this.B=new Uint8Array(64);this.j=0;this.V=new Uint8Array(64);this.N=0;this.X.set(S);this.B.set(S);for(S=0;S<64;S++)this.X[S]^=92,this.B[S]^=54;this.reset()}; ko7=function(S,W,m){for(var a=S.Z,J=S.C[0],B=S.C[1],E=S.C[2],y=S.C[3],Y=S.C[4],G=S.C[5],K=S.C[6],T=S.C[7],p,q,F,O=0;O<64;)O<16?(a[O]=F=W[m]<<24|W[m+1]<<16|W[m+2]<<8|W[m+3],m+=4):(p=a[O-2],q=a[O-15],F=a[O-7]+a[O-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),a[O]=F),p=T+Gs[O]+F+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&G^~Y&K),q=((J>>>2|J<<30)^(J>>>13|J<<19)^(J>>>22|J<<10))+(J&B^J&E^B&E),T=p+q,y+=p,O++,O<16?(a[O]=F=W[m]<<24|W[m+1]<<16|W[m+2]<<8|W[m+3],m+=4):(p= a[O-2],q=a[O-15],F=a[O-7]+a[O-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),a[O]=F),p=K+Gs[O]+F+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&Y^~y&G),q=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&J^T&B^J&B),K=p+q,E+=p,O++,O<16?(a[O]=F=W[m]<<24|W[m+1]<<16|W[m+2]<<8|W[m+3],m+=4):(p=a[O-2],q=a[O-15],F=a[O-7]+a[O-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),a[O]=F),p=G+Gs[O]+F+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&y^ ~E&Y),q=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&T^K&J^T&J),G=p+q,B+=p,O++,O<16?(a[O]=F=W[m]<<24|W[m+1]<<16|W[m+2]<<8|W[m+3],m+=4):(p=a[O-2],q=a[O-15],F=a[O-7]+a[O-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),a[O]=F),p=Y+Gs[O]+F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&E^~B&y),q=((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+(G&K^G&T^K&T),F=T,T=y,y=F,F=K,K=E,E=F,F=G,G=B,B=F,Y=J+p,J=p+q,O++;S.C[0]=J+S.C[0]|0;S.C[1]=B+S.C[1]|0;S.C[2]=E+S.C[2]|0;S.C[3]= y+S.C[3]|0;S.C[4]=Y+S.C[4]|0;S.C[5]=G+S.C[5]|0;S.C[6]=K+S.C[6]|0;S.C[7]=T+S.C[7]|0}; hFP=function(S){var W=new Uint8Array(32),m=64-S.N;S.N>55&&(m+=64);var a=new Uint8Array(m);a[0]=128;for(var J=S.j*8,B=1;B<9;B++){var E=J%256;a[m-B]=E;J=(J-E)/256}S.update(a);for(m=0;m<8;m++)W[m*4]=S.C[m]>>>24,W[m*4+1]=S.C[m]>>>16&255,W[m*4+2]=S.C[m]>>>8&255,W[m*4+3]=S.C[m]&255;$SK(S);return W}; $SK=function(S){S.C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];S.Z=[];S.Z.length=64;S.j=0;S.N=0}; t9l=function(S){this.C=S}; AvP=function(S,W,m){S=new YB(S.C);S.update(W);S.update(m);W=hFP(S);S.update(S.X);S.update(W);W=hFP(S);S.reset();return W}; Zml=function(S){this.N=S}; NdD=function(S,W,m,a){var J,B,E;return g.k(function(y){switch(y.C){case 1:if(S.C){y.cn(2);break}return g.P(y,a.importKey("raw",S.N,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:S.C=y.N;case 2:return J=new Uint8Array(W.length+m.length),J.set(W),J.set(m,W.length),B={name:"HMAC",hash:"SHA-256"},g.P(y,a.sign(B,S.C,J),4);case 4:return E=y.N,y.return(new Uint8Array(E))}})}; bml=function(S,W,m){S.B||(S.B=new t9l(S.N));return AvP(S.B,W,m)}; oDj=function(S,W,m){var a,J;return g.k(function(B){if(B.C==1){a=BS();if(!a)return B.return(bml(S,W,m));g.EQ(B,3);return g.P(B,NdD(S,W,m,a),5)}if(B.C!=3)return B.return(B.N);J=g.Gg(B);g.Ue(J);at=!0;return B.return(bml(S,W,m))})}; Crj=function(S){for(var W="",m=0;m=0||i3(S,0,"gad_source",S.search(dx))>=0}; Jo6=function(){this.C=new Map}; EOl=function(S,W){var m=Hp().resolve(Bl6);if(azK(W)){var a=Iv(W,"gclid");W={handleEvent:function(y){S&&!S.closed&&typeof S.postMessage==="function"&&y&&y.origin&&y.source===S&&y.data&&y.data.action==="gcl_setup"&&S.postMessage(Object.assign({},{action:"gcl_transfer"},a&&{gclid:a},{gadSource:2}),y.origin)}}; for(var J=g.R(m.C),B=J.next();!B.done;B=J.next()){var E=g.R(B.value);B=E.next().value;E=E.next().value;if(B.closed)try{window.removeEventListener("message",E),m.C.delete(B)}catch(y){g.lR(y)}}S&&m.C.size<15&&(m.C.set(S,W),window.addEventListener("message",W))}}; KM=function(S,W,m){if(!W)return S.length>=1?S[S.length-1]:null;for(var a=g.R(S),J=a.next();!J.done;J=a.next())if(J=J.value,J.width&&J.height&&(m&&J.width>=W||!m&&J.height>=W))return J;for(W=S.length-1;W>=0;W--)if(m&&S[W].width||!m&&S[W].height)return S[W];return S[0]}; Ts=function(){this.state=1;this.u$=null;this.dE=void 0}; yo6=function(S,W,m,a,J,B){var E=E===void 0?"trayride":E;m?(S.gA(2),g.a_(g.LK(m),function(){if(window[E])zwQ(S,a,E,J);else{S.gA(3);var y=C6O(m),Y=document.getElementById(y);Y&&(oCX(y),Y.parentNode.removeChild(Y));g.Ue(new g.uc("BL:ULB",""+m))}},B)):W?(B=g.HI("SCRIPT"),W instanceof eA?(B.textContent=xk(W),iz(B)):B.textContent=W,B.nonce=Rh(document),document.head.appendChild(B),document.head.removeChild(B),window[E]?zwQ(S,a,E,J):(S.gA(4),g.Ue(new g.uc("BL:ULBJ")))):g.Ue(new g.uc("BL:ULV"))}; zwQ=function(S,W,m,a){S.gA(5);var J=!!S.dE&&YA6.includes(g.vj(S.dE)||"");try{var B=new ql({program:W,globalName:m,LT:{disable:!g.Qi("att_web_record_metrics")||!g.Qi("att_skip_metrics_for_cookieless_domains_ks")&&J,xB:"aGIf"}});B.nK.then(function(){S.gA(6);a&&a(W)}); S.Ox(B)}catch(E){S.gA(7),E instanceof Error&&g.Ue(E)}}; qy=function(){var S=g.v9("yt.abuse.playerAttLoader");return S&&["bgvma","bgvmb","bgvmc"].every(function(W){return W in S})?S:null}; pM=function(){Ts.apply(this,arguments)}; F2=function(S){this.pW=S}; GNl=function(S,W,m){for(var a=!1,J=g.R(S.qx.entries()),B=J.next();!B.done;B=J.next())B=g.R(B.value).next().value,B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.DQ==="core"&&(a=!0);if(a){a:if(!m){S=g.R(S.qx.entries());for(m=S.next();!m.done;m=S.next())if(a=g.R(m.value),m=a.next().value,a=a.next().value,m.slotType==="SLOT_TYPE_IN_PLAYER"&&m.DQ==="core"){m=a.layoutId;break a}m=void 0}m?W.hs(m):GI("No triggering layout ID available when attempting to mute.")}}; Vs=function(S,W){this.bV=S;this.VQ=W}; nM=function(){}; sJ=function(){}; TlG=function(S){g.A.call(this);var W=this;this.Ya=S;this.C=new Map;ug(this,"commandExecutorCommand",function(m,a,J){KjP(W,m.commands,a,J)}); ug(this,"clickTrackingParams",function(){})}; qA6=function(S,W){ug(S,W.iS(),function(m,a,J){W.ZY(m,a,J)})}; ug=function(S,W,m){S.TN();S.C.get(W)&&g.lR(Error("Extension name "+W+" already registered"));S.C.set(W,m)}; KjP=function(S,W,m,a){W=W===void 0?[]:W;S.TN();var J=[],B=[];W=g.R(W);for(var E=W.next();!E.done;E=W.next())E=E.value,g.n(E,ppD)||g.n(E,FjP)?J.push(E):B.push(E);J=g.R(J);for(W=J.next();!W.done;W=J.next())gy(S,W.value,m,a);B=g.R(B);for(J=B.next();!J.done;J=B.next())gy(S,J.value,m,a)}; gy=function(S,W,m,a){S.TN();W.loggingUrls&&V0O(S,"loggingUrls",W.loggingUrls,m,a);W=g.R(Object.entries(W));for(var J=W.next();!J.done;J=W.next()){var B=g.R(J.value);J=B.next().value;B=B.next().value;J==="openPopupAction"?S.Ya.get().Z6("innertubeCommand",{openPopupAction:B}):J==="confirmDialogEndpoint"?S.Ya.get().Z6("innertubeCommand",{confirmDialogEndpoint:B}):nOQ.hasOwnProperty(J)||V0O(S,J,B,m,a)}}; V0O=function(S,W,m,a,J){if((S=S.C.get(W))&&typeof S==="function")try{S(m,a,J)}catch(B){g.lR(B)}else W=new g.uc("Unhandled field",W),g.Ue(W)}; OJ=function(S,W,m){this.Iy=S;this.C=W;this.n_=m;j0(Hp(),{r3:Bl6,mf:Jo6})}; j_=function(S){this.value=S}; Qs=function(S){this.value=S}; X2=function(S){this.value=S}; vS=function(S){this.value=S}; HS=function(S){this.value=S}; lg=function(S){this.value=S}; My=function(S){this.value=S}; UJ=function(){j_.apply(this,arguments)}; LM=function(S){this.value=S}; Rt=function(S){this.value=S}; e_=function(S){this.value=S}; xB=function(S){this.value=S}; ig=function(S){this.value=S}; dy=function(S){this.value=S}; It=function(S){this.value=S}; PS=function(S){this.value=S}; fM=function(S){this.value=S}; kB=function(S){this.value=S}; $B=function(){j_.apply(this,arguments)}; he=function(S){this.value=S}; te=function(S){this.value=S}; Ae=function(S){this.value=S}; ZR=function(S){this.value=S}; Ny=function(S){this.value=S}; bg=function(S){this.value=S}; ot=function(S){this.value=S}; ry=function(S){this.value=S}; CM=function(S){this.value=S}; cS=function(S){this.value=S}; DR=function(S){this.value=S}; wy=function(S){this.value=S}; Sw=function(S){this.value=S}; WR=function(S){this.value=S}; mY=function(S){this.value=S}; aX=function(S){this.value=S}; JF=function(S){this.value=S}; BR=function(S){this.value=S}; E$=function(S){this.value=S}; zm=function(S){this.value=S}; yN=function(S){this.value=S}; Y_=function(S){this.value=S}; Gm=function(S){this.value=S}; Ks=function(S){this.value=S}; Tm=function(S){this.value=S}; qp=function(S){this.value=S}; ps=function(S){this.value=S}; Ft=function(S){this.value=S}; VN=function(S){this.value=S}; ns=function(S){this.value=S}; s$=function(S){this.value=S}; uT=function(S){this.value=S}; gi=function(S){this.value=S}; O$=function(S){this.value=S}; jw=function(S){this.value=S}; QN=function(S){this.value=S}; Xt=function(S){this.value=S}; vR=function(S){this.value=S}; HR=function(S){this.value=S}; lT=function(S){this.value=S}; Mp=function(){j_.apply(this,arguments)}; U$=function(S){this.value=S}; Ls=function(){j_.apply(this,arguments)}; var ulK=function(S,W,m,a,J,B,E,y){return MP[z[7]](this,9,S,W,m,a,J,B,E,y)}; RX=function(){j_.apply(this,arguments)}; ew=function(){j_.apply(this,arguments)}; x_=function(){j_.apply(this,arguments)}; iT=function(){j_.apply(this,arguments)}; di=function(S){this.value=S}; IX=function(S){this.value=S}; PR=function(S){this.value=S}; fs=function(S){this.value=S}; $_=function(S,W,m){if(m&&!m.includes(S.layoutType))return!1;W=g.R(W);for(m=W.next();!m.done;m=W.next())if(!k_(S.clientMetadata,m.value))return!1;return!0}; hF=function(){return""}; s_X=function(S,W){switch(S){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(S),8}}; tF=function(S,W,m,a){a=a===void 0?!1:a;tN.call(this,S);this.mY=m;this.Jx=a;this.args=[];W&&this.args.push(W)}; D=function(S,W,m,a){a=a===void 0?!1:a;tN.call(this,S);this.mY=m;this.Jx=a;this.args=[];W&&this.args.push(W)}; AF=function(S){var W=new Map;S.forEach(function(m){W.set(m.C(),m)}); this.C=W}; k_=function(S,W){return S.C.has(W)}; Zb=function(S,W){S=S.C.get(W);if(S!==void 0)return S.get()}; Np=function(S){return Array.from(S.C.keys())}; bT=function(S,W,m){if(m&&m!==S.slotType)return!1;W=g.R(W);for(m=W.next();!m.done;m=W.next())if(!k_(S.clientMetadata,m.value))return!1;return!0}; gOK=function(S){var W;return((W=uDc.get(S))==null?void 0:W.bC)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; ri=function(S,W){var m={type:W.slotType,controlFlowManagerLayer:OzG.get(W.DQ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(m.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(m.slotPhysicalPosition=W.slotPhysicalPosition);if(S){m.debugData={slotId:W.slotId};if(S=W.slotEntryTrigger)m.debugData.slotEntryTriggerData=oX(S);S=W.slotFulfillmentTriggers;m.debugData.fulfillmentTriggerData=[];S=g.R(S);for(var a=S.next();!a.done;a=S.next())m.debugData.fulfillmentTriggerData.push(oX(a.value)); W=W.slotExpirationTriggers;m.debugData.expirationTriggerData=[];W=g.R(W);for(S=W.next();!S.done;S=W.next())m.debugData.expirationTriggerData.push(oX(S.value))}return m}; j_O=function(S,W){var m={type:W.layoutType,controlFlowManagerLayer:OzG.get(W.DQ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};S&&(m.debugData={layoutId:W.layoutId});return m}; oX=function(S,W){var m={type:S.triggerType};W!=null&&(m.category=W);S.triggeringSlotId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedSlotId=S.triggeringSlotId);S.triggeringLayoutId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedLayoutId=S.triggeringLayoutId);return m}; Q_6=function(S,W,m,a){W={opportunityType:W};S&&(a||m)&&(a=g.MU(a||[],function(J){return ri(S,J)}),W.debugData=Object.assign({},m&&m.length>0?{associatedSlotId:m}:{},a.length>0?{slots:a}:{})); return W}; cR=function(S,W){return function(m){return Xpl(Cs(S),W.slotId,W.slotType,W.slotPhysicalPosition,W.DQ,W.slotEntryTrigger,W.slotFulfillmentTriggers,W.slotExpirationTriggers,m.layoutId,m.layoutType,m.DQ)}}; Xpl=function(S,W,m,a,J,B,E,y,Y,G,K){return{adClientDataEntry:{slotData:ri(S,{slotId:W,slotType:m,slotPhysicalPosition:a,DQ:J,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:y,clientMetadata:new AF([])}),layoutData:j_O(S,{layoutId:Y,layoutType:G,DQ:K,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Bv:new Map,clientMetadata:new AF([]),K3:{}})}}}; wi=function(S){this.AX=S;S=Math.random();var W=this.AX.get();W=g.Db(W.W.J().experiments,"html5_debug_data_log_probability");W=Number.isFinite(W)&&W>=0&&W<=1?W:0;this.C=S>31));kQ(S,16,W.Vg2);kQ(S,17,W.detailedNetworkType);kQ(S,18,W.jL);kQ(S,19,W.Bg);kQ(S,21,W.w42);kQ(S,23,W.xu);kQ(S,28,W.HP);kQ(S,29,W.gB2);kQ(S,34,W.visibility);m=W.playbackRate;if(m!==void 0){var a=new ArrayBuffer(4);(new Float32Array(a))[0]=m;m=(new Uint32Array(a))[0];if(m!==void 0)for(fc(S,285),PO(S,4),a=0;a<4;)S.view.setUint8(S.pos,m&255),m>>=8,S.pos+=1,a+=1}kQ(S,36,W.xY); AA(S,38,W.mediaCapabilities,F$c,3);kQ(S,39,W.EB2);kQ(S,40,W.QW);kQ(S,44,W.playerState);$Q(S,46,W.RA);kQ(S,48,W.yh);kQ(S,50,W.lX);kQ(S,51,W.vS);kQ(S,54,W.qJ);if(W.LX)for(m=0;m>31));tA(S,2,W.message)}; Xm6=function(S,W){kQ(S,1,W.clientState);AA(S,2,W.oUD,juD,1)}; O8Q=function(S,W){hA(S,1,W.S2N);AA(S,2,W.D6Y,QuP,3);AA(S,3,W.coldStartInfo,Xm6,3)}; gy6=function(S,W){kQ(S,1,W.type);hA(S,2,W.value)}; uo_=function(S,W){tA(S,1,W.hl);tA(S,12,W.deviceMake);tA(S,13,W.deviceModel);kQ(S,16,W.clientName);tA(S,17,W.clientVersion);tA(S,18,W.osName);tA(S,19,W.osVersion)}; vyQ=function(S,W){tA(S,1,W.name);tA(S,2,W.value)}; g1=function(S,W){tA(S,1,W.url);if(W.xx)for(var m=0;m55?"60": W>49?"50":W>39?"48":"")));this.qualityLabel=S;this.C=Y||"";this.primaries=G||""}; vt=function(S,W){var m=Math.max(S,W);S=Math.min(S,W);W=MZ[0];for(var a=0;a=Math.floor(B*16/9)*1.3||S>=B*1.3)return W;W=J}return"tiny"}; R3=function(S,W,m){m=m===void 0?{}:m;this.id=S;this.mimeType=W;m.o2>0||(m.o2=16E3);Object.assign(this,m);S=g.R(this.id.split(";"));this.itag=S.next().value;this.C=S.next().value;this.containerType=U1(W);this.p_=Lx[this.itag]||""}; eh=function(S){return S.p_==="9"||S.p_==="("||S.p_==="9h"||S.p_==="(h"}; YmK=function(S){return S.p_==="H"||S.p_==="h"}; xK=function(S){return S.p_==="9h"||S.p_==="(h"}; GIK=function(S){return!!S.PG&&!!S.PG.fairplay&&(S.p_==="("||S.p_==="(h"||S.p_==="A"||S.p_==="MEAC3")||iv&&!!S.PG&&S.p_==="1e"}; d1=function(S){return S.p_==="1"||S.p_==="1h"||iv&&S.p_==="1e"}; I3=function(S){return S.p_==="mac3"||S.p_==="meac3"||S.p_==="m"||S.p_==="i"||KoO(S)}; KoO=function(S){return S.p_==="MAC3"||S.p_==="MEAC3"||S.p_==="M"||S.p_==="I"}; g.Pt=function(S){return S.containerType===1}; TR6=function(S){return S.p_==="("||S.p_==="(h"||S.p_==="H"||iv&&S.p_==="1e"}; fx=function(S){return S.mimeType==="application/x-mpegURL"}; g.kK=function(S,W){return{itag:+S.itag,lmt:W?0:S.lastModified,xtags:S.C||""}}; qmP=function(S){var W=navigator.mediaCapabilities;if(W==null||!W.decodingInfo||S.p_==="f")return Promise.resolve();var m={type:S.audio&&S.video?"file":"media-source"};S.video&&(m.video={contentType:S.mimeType,width:S.video.width||640,height:S.video.height||360,bitrate:S.o2*8||1E6,framerate:S.video.fps||30});S.audio&&(m.audio={contentType:S.mimeType,channels:""+(S.audio.numChannels||2),bitrate:S.o2*8||128E3,samplerate:S.audio.sampleRate||44100});return W.decodingInfo(m).then(function(a){S.N=a})}; $K=function(S){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(S)}; h3=function(S){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(S)}; NZ=function(S){return S.includes("vtt")||S.includes("text/mp4")}; U1=function(S){return S.indexOf("/mp4")>=0?1:S.indexOf("/webm")>=0?2:S.indexOf("/x-flv")>=0?3:S.indexOf("/vtt")>=0?4:0}; bv=function(S,W,m,a,J,B,E){var y=new qZ;W in g.Ht||(W="small");W==="light"&&(W="tiny");a&&J?(J=Number(J),a=Number(a)):(J=g.Ht[W],a=Math.round(J*16/9));B=new lv(a,J,0,null,void 0,W,B,E);S=unescape(S.replace(/"/g,'"'));return new R3(m,S,{audio:y,video:B})}; o3=function(S,W){return{start:function(m){return S[m]}, end:function(m){return W[m]}, length:S.length}}; p1P=function(S,W,m){for(var a=[],J=[],B=0;B=W)return m}catch(a){}return-1}; ct=function(S,W){return Cx(S,W)>=0}; Foc=function(S,W){if(!S)return NaN;W=Cx(S,W);return W>=0?S.start(W):NaN}; Dy=function(S,W){if(!S)return NaN;W=Cx(S,W);return W>=0?S.end(W):NaN}; w1=function(S){return S&&S.length?S.end(S.length-1):NaN}; SJ=function(S){return w1(S)>0}; Wb=function(S,W){S=Dy(S,W);return S>=0?S-W:0}; mp=function(S,W,m){for(var a=[],J=[],B=0;Bm||(a.push(Math.max(W,S.start(B))-W),J.push(Math.min(m,S.end(B))-W));return o3(a,J)}; ae=function(S,W,m,a){g.au.call(this);var J=this;this.Md=S;this.start=W;this.end=m;this.isActive=a;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.NR={error:function(){!J.TN()&&J.isActive&&J.publish("error",J)}, updateend:function(){!J.TN()&&J.isActive&&J.publish("updateend",J)}}; this.Md.XV(this.NR);this.wh=this.isActive}; Bb=function(S,W,m,a,J,B){g.au.call(this);var E=this;this.hv=S;this.Xf=W;this.id=m;this.containerType=a;this.p_=J;this.jr=B;this.zc=this.Gp=this.QU=null;this.Yz=!1;this.appendWindowStart=this.timestampOffset=0;this.EN=o3([],[]);this.PR=!1;this.P9=[];this.yI=JS?[]:void 0;this.handler=function(Y){return E.publish(Y.type,E)}; var y;if((y=this.hv)==null?0:y.addEventListener)this.hv.addEventListener("updateend",this.handler),this.hv.addEventListener("error",this.handler)}; E_=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; z8=function(S,W){this.aL=S;this.C=W===void 0?!1:W;this.N=!1}; yn=function(S,W,m){m=m===void 0?!1:m;g.A.call(this);this.mediaElement=S;this.K_=W;this.isView=m;this.j=0;this.X=!1;this.V=!0;this.bY=0;this.callback=null;this.S=!1;this.K_||(this.Xf=this.mediaElement.yc());this.events=new g.Tx(this);g.Z(this,this.events);this.B=new z8(this.K_?window.URL.createObjectURL(this.K_):this.Xf.webkitMediaSourceURL,!0);S=this.K_||this.Xf;Rx(this.events,S,["sourceopen","webkitsourceopen"],this.Nrn);Rx(this.events,S,["sourceclose","webkitsourceclose"],this.iC2);this.Z={updateend:this.wl}}; YH=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; VDQ=function(S){return window.MediaSource?new yn(S,new window.MediaSource,!1):window.ManagedMediaSource?new yn(S,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new yn(S,new window.WebKitMediaSource,!1):new yn(S,void 0,!1)}; n$Q=function(S,W){G8(S)?g.lm(function(){W(S)}):S.callback=W}; sLj=function(S,W,m){if(KP){var a;S.mediaElement.s_("rms",{l:"mswssb",sr:(a=S.mediaElement.C_)==null?void 0:a.HD()},!1);W.XV(S.Z,S);m.XV(S.Z,S)}S.C=W;S.N=m;g.Z(S,W);g.Z(S,m)}; T8=function(S){return!!S.C||!!S.N}; G8=function(S){try{return qo(S)==="open"}catch(W){return!1}}; qo=function(S){if(S.K_)return S.K_.readyState;switch(S.Xf.webkitSourceState){case S.Xf.SOURCE_OPEN:return"open";case S.Xf.SOURCE_ENDED:return"ended";default:return"closed"}}; pP=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; uXj=function(S,W,m,a){if(!S.C||!S.N)return null;var J=S.C.isView()?S.C.Md:S.C,B=S.N.isView()?S.N.Md:S.N,E=new yn(S.mediaElement,S.K_,!0);E.B=S.B;sLj(E,new ae(J,W,m,a),new ae(B,W,m,a));G8(S)||S.C.Je(S.C.DH());return E}; Fk=function(S){var W;(W=S.C)==null||W.uC();var m;(m=S.N)==null||m.uC();S.V=!1}; Vn=function(){var S=this;this.UL=this.mL=N7D;this.promise=new g.UI(function(W,m){S.mL=W;S.UL=m})}; nP=function(){g.A.call(this);this.zd=!1;this.aL=null;this.Xn=this.q2=!1;this.bY=new g.ng;this.N2=this.C_=null;g.Z(this,this.bY)}; g$D=function(S,W,m){S.isPaused()||S.getCurrentTime()>W||m>10||(S.play(),g.s7(function(){g$D(S,S.getCurrentTime(),m+1)},500))}; OZP=function(S,W){S.aL&&S.aL.equals(W)||(S.aL&&S.aL.dispose(),S.aL=W)}; s_=function(S){S.kK()&&(S.C_&&S.C_.GS("rs_s"),Zf&&S.getCurrentTime()>0&&S.seekTo(0),S.Bx(),S.load(),OZP(S,null));delete S.Z}; g.uV=function(S,W,m){this.Of=W===void 0?null:W;this.seekSource=m===void 0?null:m;this.state=S||64}; ge=function(S,W,m){m=m===void 0?!1:m;return jLP(S,W.getCurrentTime(),(0,g.X1)(),W.oX(),m)}; O_=function(S,W,m,a){if(!(W===S.state&&m===S.Of&&a===S.seekSource||W!==void 0&&(W&128&&!m||W&2&&W&16))){var J;if(J=W)J=W||S.state,J=!!(J&16||J&32);S=new g.uV(W,m,J?a?a:S.seekSource:null)}return S}; jJ=function(S,W,m){return O_(S,S.state|W,null,m===void 0?null:m)}; Qn=function(S,W){return O_(S,S.state&~W,null,null)}; Xk=function(S,W,m,a){return O_(S,(S.state|W)&~m,null,a===void 0?null:a)}; g.C=function(S,W){return!!(S.state&W)}; g.vb=function(S,W){return W.state===S.state&&W.Of===S.Of}; Hb=function(S){return S.isPlaying()&&!g.C(S,16)&&!g.C(S,32)}; lV=function(S){return g.C(S,128)?-1:g.C(S,2)?0:g.C(S,2048)?3:g.C(S,64)?-1:g.C(S,1)&&!g.C(S,32)?3:g.C(S,8)?1:g.C(S,4)?2:-1}; U_=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O){g.A.call(this);var X=this;this.tR=S;this.slot=W;this.layout=m;this.n_=a;this.qw=J;this.JX=B;this.tX=E;this.Oc=y;this.sV=Y;this.vO=G;this.position=T;this.j=p;this.AX=q;this.Sl=F;this.context=O;this.aU=!0;this.B=!1;this.iP="not_rendering";this.C=!1;S=Zb(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.lY=new Ko(m.Bv,this.n_,S,m.layoutId);var l;S=((l=Mo(this))==null?void 0:l.progressCommands)||[];this.N=new vo(Y,S,m.layoutId,function(){return X.L0()})}; Mo=function(S){return Zb(S.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; QLG=function(S){GI("Received layout exit signal when not in layout exit flow.",S.slot,S.layout)}; X1P=function(S){var W;return((W=Wt(S.JX.get(),2))==null?void 0:W.clientPlaybackNonce)||""}; v$l=function(S,W){switch(W){case "normal":S.Sg("complete");break;case "skipped":S.Sg("skip");break;case "abandoned":no(S.lY,"impression")&&S.Sg("abandon")}}; HZl=function(S,W){S.B||(W=new g.KZ(W.state,new g.uV),S.B=!0);return W}; lQl=function(S,W){co(W)?S.vO(1):g.qb(W,4)&&!g.qb(W,2)&&S.Bs();TI(W,4)<0&&!(TI(W,2)<0)&&S.jb()}; MDP=function(S){S.position===0&&(S.Oc.get(),S=Zb(S.layout.clientMetadata,"metadata_type_ad_placement_config").kind,S={adBreakType:LP(S)},UY("ad_bl"),g.LG(S))}; Re=function(S,W){Fq(S.lY,W,!S.C)}; LoD=function(S){var W;return(((W=Mo(S))==null?void 0:W.progressCommands)||[]).findIndex(function(m){return!!g.n(m==null?void 0:m.command,UbD)})!==-1}; g.eJ=function(S,W,m){eG(S,m)||iU(S,W,m);eG(S,"video_to_ad")||iU(S,W,"video_to_ad");eG(S,"ad_to_video")||iU(S,W,"ad_to_video");eG(S,"ad_to_ad")||iU(S,W,"ad_to_ad")}; xH=function(S){U_.call(this,S.tR,S.slot,S.er,S.n_,S.qw,S.JX,S.tX,S.Oc,S.sV,S.vO,S.G6,S.tN,S.q7,S.AX,S.Sl,S.context);var W=this;this.zg=!0;this.U5=this.yB=0;this.Qz=bD(function(){W.tR.jD(W.slot,W.layout)}); this.Ya=S.Ya;this.G6=S.G6;this.VW=bD(function(){W.iP!=="rendering_stop_requested"&&W.G6(W);W.layoutExitReason?W.tR.hw(W.slot,W.layout,W.layoutExitReason):QLG(W)}); this.timer=new g.Iz(200);this.timer.listen("tick",function(){W.Zb()}); g.Z(this,this.timer)}; RfK=function(S){S.U5=Date.now();iV(S,S.yB);S.timer.start()}; iV=function(S,W){W={current:W/1E3,duration:S.L0()/1E3};S.Ya.get().Z6("onAdPlaybackProgress",W)}; Pb=function(S){U_.call(this,S.callback,S.slot,S.er,S.n_,S.qw,S.JX,S.tX,S.Oc,S.sV,S.vO,S.G6,S.tN,S.q7,S.AX,S.Sl,S.context);var W=this;this.adCpn="";this.xg=this.Xo=0;this.Qz=bD(function(){W.tR.jD(W.slot,W.layout)}); this.VW=bD(function(){W.iP!=="rendering_stop_requested"&&W.G6(W);W.layoutExitReason?W.tR.hw(W.slot,W.layout,W.layoutExitReason):QLG(W)}); this.zY=S.zY;this.FE=S.FE;this.wA=S.wA;this.Ya=S.Ya;this.LC=S.LC;this.G6=S.G6;i1(this.AX.get(),"html5_disable_media_load_timeout")||(this.Ib=new g.rj(function(){W.sO("load_timeout",new tF("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); S=de(this.AX.get());var m=Ie(this.AX.get());S&&m&&(this.gC=new g.rj(function(){var a=Zb(W.layout.clientMetadata,"metadata_type_preload_player_vars");a&&W.FE.get().W.preloadVideoByPlayerVars(a,2,300)}))}; efG=function(S){return new xH(Object.assign({},S,{tR:S.callback,vO:function(){}}))}; xbP=function(S){return new Pb(Object.assign({},S,{vO:function(W){S.Ya.get().Z6("onAdIntroStateChange",W)}}))}; iZc=function(S){return new Pb(Object.assign({},S,{vO:function(W){S.Ya.get().L8(W)}}))}; dbD=function(S){for(var W=S.er,m=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],a=g.R(Tq()),J=a.next();!J.done;J=a.next())m.push(J.value);if(dD(W,{BG:m,kP:["LAYOUT_TYPE_MEDIA_BREAK"]}))return efG(S);W=S.er;m=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];a=g.R(Tq());for(J=a.next();!J.done;J=a.next())m.push(J.value);if(dD(W,{BG:m,kP:["LAYOUT_TYPE_MEDIA"]}))return k_(S.er.clientMetadata,"metadata_type_ad_intro")?xbP(S):iZc(S)}; fP=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q){g.A.call(this);this.callback=S;this.JX=W;this.Db=m;this.FE=a;this.tX=J;this.WD=B;this.Oc=E;this.Cw=y;this.slot=Y;this.layout=G;this.W1=K;this.Vm=T;this.cU=p;this.AX=q;this.aU=!0;this.L9=!1;this.Tz=[];this.DF=-1;this.q3=!1}; kH=function(S){return S.Tz[S.DF]}; hS=function(S,W,m){var a=kH(S);S.DF===S.Tz.length-1&&GI("Unexpected skip with target requested during the last sublayout");if(m.renderingContent===void 0&&m.layoutId!==$H(a,W,m)){GI("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.Mw(),a.e9(),{requestingSlot:W,requestingLayout:m});var J=!1}else J=!0;if(J){a:{if((J=Zb(a.e9().clientMetadata,"metadata_type_ad_pod_skip_target"))&&J>0&&J0)){GI("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",S.slot,S.layout,{indexToPlay:W,layoutId:S.layout.layoutId});break a}S.DF=W;W=kH(S);if(S.DF>0){var m=S.Oc.get();m.N=!1;var a={};m.C&&m.videoId&&(a.cttAuthInfo={token:m.C,videoId:m.videoId});RP("ad_to_ad",a)}m=g.n(W.e9().renderingContent,ow);if(m==null?0:m.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var J; m=!((J=S.WD.get().d62.get(m.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&J)}else m=!1;m?tS(S,S.DF+1):W.startRendering(W.e9())}}; fQl=function(S){(S=kH(S))&&S.DM()}; kI6=function(S){return new fP(S.L$6,S.JX,S.Db,S.FE,S.tX,S.WD,S.Oc,S.Cw,S.slot,S.layout,S.W1,S.Vm,S.cU,S.AX)}; bV=function(S,W,m,a,J,B,E){g.A.call(this);this.callback=S;this.FE=W;this.tX=m;this.Oc=a;this.W4=J;this.cU=B;this.AX=E;this.aU=!0;this.L9=!1}; $b_=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O,X,l,M,e,d,t){function h(){var aK=dbD(Object.assign({},SO,{callback:{jD:S.jD.bind(S),hw:S.hw.bind(S),m9:S.m9.bind(S)},slot:m,er:a,G6:function(){No(E,a)}, tN:0,q7:1,Sl:!0}));return aK?new bV(S,K,p,O,aK,J,e):aK} function mD(){var aK,EP=(aK=a.D2)!=null?aK:Zb(a.clientMetadata,"metadata_type_sub_layouts");aK=kI6({L$6:S,JX:T,Db:d,FE:K,tX:p,WD:q,Oc:O,Cw:W,slot:m,layout:a,W1:B,Vm:E,cU:J,AX:e});for(var qP=[],JG={ZL:0};JG.ZLJ&&E.C2(K,J-a);return K}; bZP=function(S,W,m){var a=Zb(W.clientMetadata,"metadata_type_sodar_extension_data");if(a)try{bz6(m,a)}catch(J){GI("Unexpected error when loading Sodar",S,W,{error:J})}}; o$O=function(S,W,m,a,J,B,E){we(S,W,new g.KZ(m,new g.uV),a,J,E,!1,B)}; we=function(S,W,m,a,J,B,E,y){E=E===void 0?!0:E;co(m)&&Dq(J,0,null)&&(!no(S,"impression")&&y&&y(),S.Sg("impression"));no(S,"impression")&&(g.qb(m,4)&&!g.qb(m,2)&&S.Su("pause"),TI(m,4)<0&&!(TI(m,2)<0)&&S.Su("resume"),g.qb(m,16)&&J>=.5&&S.Su("seek"),E&&g.qb(m,2)&&SN(S,m.state,W,a,J,B))}; SN=function(S,W,m,a,J,B,E,y,Y){no(S,"impression")&&(B?(B=J-a,B=B>=-1&&B<=2):B=Math.abs(a-J)<=1,Wi(S,W,B?a:J,m,a,E,y&&B),B&&!Y&&S.Sg("complete"))}; Wi=function(S,W,m,a,J,B,E){VO(S,m*1E3,E);J<=0||m<=0||(W==null?0:g.C(W,16))||(W==null?0:g.C(W,32))||(Dq(m,J*.25,a)&&(B&&!no(S,"first_quartile")&&B("first"),S.Sg("first_quartile")),Dq(m,J*.5,a)&&(B&&!no(S,"midpoint")&&B("second"),S.Sg("midpoint")),Dq(m,J*.75,a)&&(B&&!no(S,"third_quartile")&&B("third"),S.Sg("third_quartile")))}; rjP=function(S,W){no(S,"impression")&&S.Su(W?"fullscreen":"end_fullscreen")}; C26=function(S){no(S,"impression")&&S.Su("clickthrough")}; cjc=function(S){S.Su("active_view_measurable")}; DbP=function(S){no(S,"impression")&&!no(S,"seek")&&S.Su("active_view_fully_viewable_audible_half_duration")}; w1D=function(S){no(S,"impression")&&!no(S,"seek")&&S.Su("active_view_viewable")}; SYP=function(S){no(S,"impression")&&!no(S,"seek")&&S.Su("audio_audible")}; W_K=function(S){no(S,"impression")&&!no(S,"seek")&&S.Su("audio_measurable")}; mLX=function(S,W,m,a,J,B,E,y,Y,G,K,T,p){this.callback=S;this.slot=W;this.layout=m;this.Db=a;this.lY=J;this.tX=B;this.HO=E;this.qw=y;this.zY=Y;this.AX=G;this.n_=K;this.JX=T;this.wA=p;this.zg=!0;this.VP=this.iP=null;this.adCpn=void 0;this.C=!1}; aEP=function(S,W,m){var a;DY(S.n_.get(),"ads_qua","cpn."+Zb(S.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=Wt(S.JX.get(),2))==null?void 0:a.clientPlaybackNonce)+";qt."+W+";clr."+m)}; JYj=function(S,W){var m,a;DY(S.n_.get(),"ads_imp","cpn."+Zb(S.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((m=Wt(S.JX.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+W+";skp."+!!g.n((a=Zb(S.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:a.skipOrPreviewRenderer,mO))}; ai=function(S){return{enterMs:Zb(S.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Zb(S.clientMetadata,"metadata_type_layout_exit_ms")}}; Jg=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q){oe.call(this,S,W,m,a,J,E,y,Y,G,T);this.HO=B;this.zY=K;this.qw=p;this.AX=q;this.VP=this.iP=null}; BfX=function(S,W){var m;DY(S.n_.get(),"ads_imp","acpn."+((m=Wt(S.JX.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+W)}; Emc=function(S,W,m){var a;DY(S.n_.get(),"ads_qua","cpn."+Zb(S.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=Wt(S.JX.get(),2))==null?void 0:a.clientPlaybackNonce)+";qt."+W+";clr."+m)}; Bi=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O,X,l,M,e,d){this.cU=S;this.W1=W;this.Vm=m;this.JX=a;this.Db=J;this.tX=B;this.WD=E;this.n_=y;this.HO=Y;this.h1=G;this.qw=K;this.zY=T;this.FE=p;this.wA=q;this.Oc=F;this.Ya=O;this.sV=X;this.LC=l;this.AX=M;this.C=e;this.context=d}; En=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O,X,l){this.cU=S;this.W1=W;this.Vm=m;this.n_=a;this.qw=J;this.zY=B;this.FE=E;this.JX=y;this.tX=Y;this.WD=G;this.wA=K;this.Oc=T;this.Ya=p;this.sV=q;this.LC=F;this.AX=O;this.Db=X;this.context=l}; zxD=function(S,W,m,a){m$.call(this,"survey-interstitial",S,W,m,a)}; zr=function(S,W,m,a,J){aw.call(this,m,S,W,a);this.n_=J;S=Zb(W.clientMetadata,"metadata_type_ad_placement_config");this.lY=new Ko(W.Bv,J,S,W.layoutId)}; yQ=function(S){return Math.round(S.width)+"x"+Math.round(S.height)}; Gr=function(S,W,m){m=m===void 0?YW:m;m.widthS.width*S.height*.2)return{a_:3,BM:501,errorMessage:"ad("+yQ(m)+") to container("+yQ(S)+") ratio exceeds limit."};if(m.height>S.height/3-W)return{a_:3,BM:501,errorMessage:"ad("+yQ(m)+") covers container("+yQ(S)+") center."}}; yY6=function(S,W){var m=Zb(S.clientMetadata,"metadata_type_ad_placement_config");return new Ko(S.Bv,W,m,S.layoutId)}; Kb=function(S){return Zb(S.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Tr=function(S,W,m,a){m$.call(this,"invideo-overlay",S,W,m,a);this.interactionLoggingClientData=a}; qF=function(S,W,m,a,J,B,E,y,Y,G,K,T){aw.call(this,B,S,W,J);this.n_=m;this.j=E;this.tX=y;this.sV=Y;this.AX=G;this.V=K;this.X=T;this.lY=yY6(W,m)}; YY7=function(){var S=["metadata_type_invideo_overlay_ad_renderer"];Tq().forEach(function(W){S.push(W)}); return{BG:S,kP:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; pb=function(S,W,m,a,J,B,E,y,Y,G,K,T,p){aw.call(this,B,S,W,J);this.n_=m;this.j=E;this.S=y;this.tX=Y;this.sV=G;this.AX=K;this.V=T;this.X=p;this.lY=yY6(W,m)}; GaO=function(){for(var S=["metadata_type_invideo_overlay_ad_renderer"],W=g.R(Tq()),m=W.next();!m.done;m=W.next())S.push(m.value);return{BG:S,kP:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Fw=function(S){this.tX=S;this.C=!1}; K_X=function(S,W,m){m$.call(this,"survey",S,{},W,m)}; VQ=function(S,W,m,a,J,B,E){aw.call(this,m,S,W,a);this.j=J;this.tX=B;this.AX=E}; TfK=function(S,W,m,a,J,B,E,y,Y,G){this.BU=S;this.tX=W;this.n_=m;this.j=a;this.qw=J;this.N=B;this.B=E;this.sV=y;this.AX=Y;this.C=G}; qYD=function(S,W,m,a,J,B,E,y,Y,G){this.BU=S;this.tX=W;this.n_=m;this.j=a;this.qw=J;this.N=B;this.B=E;this.sV=y;this.AX=Y;this.C=G}; nb=function(S,W,m,a,J,B,E,y,Y,G){hQ.call(this,S,W,m,a,J,B,E,Y);this.Ua=y;this.JX=G}; pzl=function(){var S=CRG();S.BG.push("metadata_type_ad_info_ad_metadata");return S}; F_O=function(S,W,m,a,J,B,E){this.BU=S;this.tX=W;this.n_=m;this.N=a;this.Ua=J;this.C=B;this.JX=E}; VGl=function(S,W,m,a,J,B,E,y){this.BU=S;this.tX=W;this.n_=m;this.N=a;this.Ua=J;this.C=B;this.AX=E;this.JX=y}; sn=function(S,W){this.adPodIndex=S;this.C=W.length;this.adBreakLengthSeconds=W.reduce(function(a,J){return a+J},0); var m=0;for(S+=1;S0}; WG=function(S){return!!(S.IHX&&S.slot&&S.layout)}; mL=function(S){var W,m=(W=S.config)==null?void 0:W.adPlacementConfig;S=S.renderer;return!(!m||m.kind==null||!S)}; RxP=function(S){if(!oi(S.adLayoutMetadata))return!1;S=S.renderingContent;return g.n(S,ow)||g.n(S,rD)||g.n(S,L_P)||g.n(S,N8)||g.n(S,bQ)?!0:!1}; aE=function(S){return S.playerVars!==void 0&&S.pings!==void 0&&S.externalVideoId!==void 0}; GV=function(S){if(!oi(S.adLayoutMetadata))return!1;S=S.renderingContent;var W=g.n(S,Jf);return W?BG(W):(W=g.n(S,E4))?aE(W):(W=g.n(S,zV))?W.playerVars!==void 0:(W=g.n(S,ow))?W.durationMilliseconds!==void 0:g.n(S,yZ)||g.n(S,YY)?!0:!1}; BG=function(S){S=(S.sequentialLayouts||[]).map(function(W){return g.n(W,Kv)}); return S.length>0&&S.every(GV)}; qg=function(S){return oi(S.adLayoutMetadata)?(S=g.n(S.renderingContent,TV))&&S.pings?!0:!1:!1}; IEQ=function(S){if(!oi(S.adLayoutMetadata))return!1;if(g.n(S.renderingContent,exc)||g.n(S.renderingContent,pv))return!0;var W=g.n(S.renderingContent,FM);return g.n(S.renderingContent,VZ)||g.n(W==null?void 0:W.sidePanel,xL6)||g.n(W==null?void 0:W.sidePanel,iGP)||g.n(W==null?void 0:W.sidePanel,dLG)?!0:!1}; tG6=function(S){var W;(W=!S)||(W=S.adSlotMetadata,W=!((W==null?void 0:W.slotId)!==void 0&&(W==null?void 0:W.slotType)!==void 0));if(W||!(PUG(S)||S.slotEntryTrigger&&S.slotFulfillmentTriggers&&S.slotExpirationTriggers))return!1;var m;S=(m=S.fulfillmentContent)==null?void 0:m.fulfilledLayout;return(m=g.n(S,Kv))?GV(m):(m=g.n(S,nv))?IEQ(m):(m=g.n(S,fED))?RxP(m):(m=g.n(S,kaG))?MGD(m):(m=g.n(S,$LK))?oi(m.adLayoutMetadata)?g.n(m.renderingContent,rZ)?!0:!1:!1:(m=g.n(S,s4))?qg(m):(S=g.n(S,hxP))?oi(S.adLayoutMetadata)? g.n(S.renderingContent,pv)?!0:!1:!1:!1}; PUG=function(S){var W;S=g.n((W=S.fulfillmentContent)==null?void 0:W.fulfilledLayout,nv);var m;return S&&((m=S.adLayoutMetadata)==null?void 0:m.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&S.layoutExitNormalTriggers===void 0}; AYc=function(S){var W;return(S==null?void 0:(W=S.adSlotMetadata)==null?void 0:W.slotType)==="SLOT_TYPE_IN_PLAYER"}; ZG_=function(S){S=g.R(S||[]);for(var W=S.next();!W.done;W=S.next()){var m=g.n(W.value,uB);if(m===void 0||!tG6(m))break;W=void 0;m=(W=m.fulfillmentContent)==null?void 0:W.fulfilledLayout;if((W=g.n(m,s4))&&qg(W))return!0}return!1}; bGK=function(S,W){var m;if((m=S.questions)==null||!m.length||!S.playbackCommands||(W===void 0||!W)&&S.questions.length!==1)return!1;S=g.R(S.questions);for(W=S.next();!W.done;W=S.next()){W=W.value;var a=m=void 0,J=((m=g.n(W,g5))==null?void 0:m.surveyAdQuestionCommon)||((a=g.n(W,O4))==null?void 0:a.surveyAdQuestionCommon);if(!NfG(J))return!1}return!0}; omQ=function(S){S=((S==null?void 0:S.playerOverlay)||{}).instreamSurveyAdRenderer;var W;if(S)if(S.playbackCommands&&S.questions&&S.questions.length===1){var m,a=((W=g.n(S.questions[0],g5))==null?void 0:W.surveyAdQuestionCommon)||((m=g.n(S.questions[0],O4))==null?void 0:m.surveyAdQuestionCommon);W=NfG(a)}else W=!1;else W=!1;return W}; NfG=function(S){if(!S)return!1;S=g.n(S.instreamAdPlayerOverlay,jM);var W=g.n(S==null?void 0:S.skipOrPreviewRenderer,mO),m=g.n(S==null?void 0:S.adInfoRenderer,QZ);return(g.n(S==null?void 0:S.skipOrPreviewRenderer,XM)||W)&&m?!0:!1}; rY7=function(S){return S.linearAds!=null&&oi(S.adLayoutMetadata)}; CUX=function(S){return S.linearAd!=null&&S.adVideoStart!=null}; cYP=function(S){if(isNaN(Number(S.timeoutSeconds))||!S.text||!S.ctaButton||!g.n(S.ctaButton,vG)||!S.brandImage)return!1;var W;return S.backgroundImage&&g.n(S.backgroundImage,HG)&&((W=g.n(S.backgroundImage,HG))==null?0:W.landscape)?!0:!1}; lB=function(S,W,m,a,J,B,E,y){g.A.call(this);this.AX=S;this.C=W;this.N=a;this.JX=J;this.j=B;this.B=E;this.FE=y}; Ss_=function(S,W,m){var a,J=((a=m.adSlots)!=null?a:[]).map(function(y){return g.n(y,uB)}); if(m.Sh)if(Zb(W.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))wE(S.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId); else{if(S.AX.get().W.J().T("h5_check_forecasting_renderer_for_throttled_midroll")){var B=m.r_.filter(function(y){var Y;return((Y=y.renderer)==null?void 0:Y.clientForecastingAdRenderer)!=null}); B.length!==0?DLj(S.B,B,J,W.slotId,m.ssdaiAdsConfig):wE(S.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId)}else wE(S.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId); wz7(S.j,W)}else{var E;a={uS:Math.round(((B=Zb(W.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:B.uS)||0),eJ:(E=Zb(W.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:E.eJ};B=Zb(W.clientMetadata,"metadata_type_cue_point");DLj(S.B,m.r_,J,W.slotId,m.ssdaiAdsConfig,a,B)}}; a1O=function(S,W,m,a,J,B,E,y){var Y=Wt(S.JX.get(),1);if(We6(S.AX.get())){var G=Mg(S.N.get(),m,a,J,Y.clientPlaybackNonce,Y.O$,Y.daiEnabled,Y,B,E);m9c(S,G);wE(S.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return G},W)}else wE(S.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Mg(S.N.get(),m,a,J,Y.clientPlaybackNonce,Y.O$,Y.daiEnabled,Y,B,E,y)},W)}; m9c=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next()){var a=m.value;if(a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a.fulfilledLayout)if(m=void 0,a.fulfilledLayout.renderingContent)m=Zb(a.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(a.fulfilledLayout.D2){a=g.R(a.fulfilledLayout.D2);for(var J=a.next();!J.done&&(J=J.value,!J.renderingContent||!(m=Zb(J.clientMetadata,"metadata_type_player_vars")));J=a.next());}}else m=void 0;if(m){S.FE.get().W.preloadVideoByPlayerVars(m, 2,300);break}}}; BF6=function(S,W,m,a,J,B,E){W=JAP(W,B,Number(a.prefetchMilliseconds)||0,E);S=W instanceof D?W:U4(S,a,J,W,m);return S instanceof D?S:[S]}; EQQ=function(S,W,m,a,J){var B=ST(S.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");a=[new QN({getAdBreakUrl:a.getAdBreakUrl,uS:0,eJ:0}),new IX(!0)];S=W.pauseDurationMs?W.lactThresholdMs?{slotId:B,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new tg(S.C,B),slotFulfillmentTriggers:[new sPX(S.C)],slotExpirationTriggers:[new dZ(S.C,J),new kW(S.C,B)],DQ:"core",clientMetadata:new AF(a),adSlotLoggingData:m}:new D("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new D("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return S instanceof D?S:[S]}; z16=function(S){var W,m;return((W=S.renderer)==null?void 0:(m=W.adBreakServiceRenderer)==null?void 0:m.getAdBreakUrl)!==void 0}; Lv=function(S,W,m){if(S.beforeContentVideoIdStartedTrigger)S=S.beforeContentVideoIdStartedTrigger?new uy(hF,W,S.id):new D("Not able to create BeforeContentVideoIdStartedTrigger");else{if(S.layoutIdExitedTrigger){var a;W=(a=S.layoutIdExitedTrigger)!=null&&a.triggeringLayoutId?new vi(hF,S.layoutIdExitedTrigger.triggeringLayoutId,S.id):new D("Not able to create LayoutIdExitedTrigger")}else{if(S.layoutExitedForReasonTrigger){var J,B;((J=S.layoutExitedForReasonTrigger)==null?0:J.triggeringLayoutId)&&((B= S.layoutExitedForReasonTrigger)==null?0:B.layoutExitReason)?(W=uuj(S.layoutExitedForReasonTrigger.layoutExitReason),S=W instanceof D?W:new Xw(hF,S.layoutExitedForReasonTrigger.triggeringLayoutId,[W],S.id)):S=new D("Not able to create LayoutIdExitedForReasonTrigger")}else{if(S.onLayoutSelfExitRequestedTrigger){var E;W=(E=S.onLayoutSelfExitRequestedTrigger)!=null&&E.triggeringLayoutId?new iy(hF,S.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,S.id):new D("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(S.onNewPlaybackAfterContentVideoIdTrigger)S= S.onNewPlaybackAfterContentVideoIdTrigger?new dZ(hF,W,S.id):new D("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(S.skipRequestedTrigger){var y;W=(y=S.skipRequestedTrigger)!=null&&y.triggeringLayoutId?new Pi(hF,S.skipRequestedTrigger.triggeringLayoutId,S.id):new D("Not able to create SkipRequestedTrigger")}else if(S.slotIdEnteredTrigger){var Y;W=(Y=S.slotIdEnteredTrigger)!=null&&Y.triggeringSlotId?new fb(hF,S.slotIdEnteredTrigger.triggeringSlotId,S.id):new D("Not able to create SlotIdEnteredTrigger")}else if(S.slotIdExitedTrigger){var G; W=(G=S.slotIdExitedTrigger)!=null&&G.triggeringSlotId?new kW(hF,S.slotIdExitedTrigger.triggeringSlotId,S.id):new D("Not able to create SkipRequestedTrigger")}else if(S.surveySubmittedTrigger){var K;W=(K=S.surveySubmittedTrigger)!=null&&K.triggeringLayoutId?new Zd(hF,S.surveySubmittedTrigger.triggeringLayoutId,S.id):new D("Not able to create SurveySubmittedTrigger")}else{if(S.mediaResumedTrigger)S=S.mediaResumedTrigger&&S.id?new gmX(S.id):new D("Not able to create MediaResumedTrigger");else{if(S.closeRequestedTrigger){var T; W=(T=S.closeRequestedTrigger)!=null&&T.triggeringLayoutId?new gZ(hF,S.closeRequestedTrigger.triggeringLayoutId,S.id):new D("Not able to create CloseRequestedTrigger")}else if(S.slotIdScheduledTrigger){var p;W=(p=S.slotIdScheduledTrigger)!=null&&p.triggeringSlotId?new tg(hF,S.slotIdScheduledTrigger.triggeringSlotId,S.id):new D("Not able to create SlotIdScheduledTrigger")}else{if(S.mediaTimeRangeTrigger){var q;a=Number((q=S.mediaTimeRangeTrigger)==null?void 0:q.offsetStartMilliseconds);var F;E=Number((F= S.mediaTimeRangeTrigger)==null?void 0:F.offsetEndMilliseconds);isFinite(a)&&isFinite(E)?(F=E,F===-1&&(F=m),m=a>F?new D("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:F},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",F===m&&a-500<=F):new Qt(a,F),S=m instanceof D?m:new Lb(hF,W,m,!1,S.id)):S=new D("Not able to create MediaTimeRangeTrigger")}else if(S.contentVideoIdEndedTrigger)S=S.contentVideoIdEndedTrigger?new On(hF,W,!1,S.id):new D("Not able to create ContentVideoIdEndedTrigger"); else{if(S.layoutIdEnteredTrigger){var O;W=(O=S.layoutIdEnteredTrigger)!=null&&O.triggeringLayoutId?new QQ(hF,S.layoutIdEnteredTrigger.triggeringLayoutId,S.id):new D("Not able to create LayoutIdEnteredTrigger")}else if(S.timeRelativeToLayoutEnterTrigger){var X;W=(X=S.timeRelativeToLayoutEnterTrigger)!=null&&X.triggeringLayoutId?new NF(hF,Number(S.timeRelativeToLayoutEnterTrigger.durationMs),S.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,S.id):new D("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(S.onDifferentLayoutIdEnteredTrigger){var l; W=(l=S.onDifferentLayoutIdEnteredTrigger)!=null&&l.triggeringLayoutId&&S.onDifferentLayoutIdEnteredTrigger.slotType&&S.onDifferentLayoutIdEnteredTrigger.layoutType?new eN(hF,S.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,S.onDifferentLayoutIdEnteredTrigger.slotType,S.onDifferentLayoutIdEnteredTrigger.layoutType,S.id):new D("Not able to create CloseRequestedTrigger")}else{if(S.liveStreamBreakStartedTrigger)S=S.liveStreamBreakStartedTrigger&&S.id?new Un(hF,S.id):new D("Not able to create LiveStreamBreakStartedTrigger"); else if(S.liveStreamBreakEndedTrigger)S=S.liveStreamBreakEndedTrigger&&S.id?new Hi(hF,S.id):new D("Not able to create LiveStreamBreakEndedTrigger");else{if(S.liveStreamBreakScheduledDurationMatchedTrigger){var M;W=(M=S.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&M.breakDurationMs?new ly(Number(S.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,S.id):new D("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(S.liveStreamBreakScheduledDurationNotMatchedTrigger){var e; W=(e=S.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&e.breakDurationMs?new MF(Number(S.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,S.id):new D("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(S.newSlotScheduledWithBreakDurationTrigger){var d;W=(d=S.newSlotScheduledWithBreakDurationTrigger)!=null&&d.breakDurationMs?new Ri(Number(S.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,S.id):new D("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else W= S.prefetchCacheExpiredTrigger?new Ii(hF,S.id):new D("Not able to convert an AdsControlflowTrigger.");S=W}W=S}S=W}W=S}S=W}W=S}S=W}W=S}S=W}W=S}S=W}return S}; RE=function(S,W){W.C>=2&&(S.slot_pos=W.adPodIndex);S.autoplay="1"}; YsQ=function(S,W,m,a,J,B,E,y){return W===null?new D("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:W,ActionCompanionAdRenderer:a}):[yA6(S,W,E,B,function(Y){var G=Y.slotId;Y=y(Y);var K=a.adLayoutLoggingData,T=new AF([new Qs(a),new dy(J)]);G=dE(m.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",G);var p={layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",DQ:"core"};return{layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Bv:new Map, layoutExitNormalTriggers:[new dZ(m.C,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:T,K3:Y(p),adLayoutLoggingData:K}})]}; GK6=function(S,W,m,a,J,B,E,y){return W===null?new D("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:W,TopBannerImageTextIconButtonedLayoutViewModel:a}):[yA6(S,W,E,B,function(Y){var G=Y.slotId;Y=y(Y);var K=a.adLayoutLoggingData,T=new AF([new X2(a),new dy(J)]);G=dE(m.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",G);var p={layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",DQ:"core"};return{layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Bv:new Map,layoutExitNormalTriggers:[new dZ(m.C,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:T,K3:Y(p),adLayoutLoggingData:K}})]}; pOP=function(S,W,m,a,J,B){if(!B)for(W=g.R(W),B=W.next();!B.done;B=W.next())B=B.value,eM(S,B.renderer,B.config.adPlacementConfig.kind);S=Array.from(S.values()).filter(function(K){return KeK(K)}); W=[];B=g.R(S);for(var E=B.next(),y={};!E.done;y={QE:void 0},E=B.next()){y.QE=E.value;E=g.R(y.QE.Bz);for(var Y=E.next(),G={};!Y.done;G={lH:void 0},Y=E.next())G.lH=Y.value,Y=function(K,T){return function(p){return K.lH.IG(p,T.QE.instreamVideoAdRenderer.elementId,K.lH.vz)}}(G,y),G.lH.isContentVideoCompanion?W.push(TF7(m,a,J,y.QE.instreamVideoAdRenderer.elementId,G.lH.associatedCompositePlayerBytesLayoutId,G.lH.adSlotLoggingData,Y)):S.length>1?W.push(qsO(m,a,J,y.QE.instreamVideoAdRenderer.elementId,G.lH.adSlotLoggingData, function(K,T){return function(p){return K.lH.IG(p,T.QE.instreamVideoAdRenderer.elementId,K.lH.vz,K.lH.associatedCompositePlayerBytesLayoutId)}}(G,y))):W.push(qsO(m,a,J,y.QE.instreamVideoAdRenderer.elementId,G.lH.adSlotLoggingData,Y))}return W}; eM=function(S,W,m){if(W=Fec(W)){W=g.R(W);for(var a=W.next();!a.done;a=W.next())if((a=a.value)&&a.externalVideoId){var J=xY(S,a.externalVideoId);J.instreamVideoAdRenderer||(J.instreamVideoAdRenderer=a,J.o3=m)}else GI("InstreamVideoAdRenderer without externalVideoId")}}; Fec=function(S){var W=[],m=S.sandwichedLinearAdRenderer&&S.sandwichedLinearAdRenderer.linearAd&&g.n(S.sandwichedLinearAdRenderer.linearAd,E4);if(m)return W.push(m),W;if(S.instreamVideoAdRenderer)return W.push(S.instreamVideoAdRenderer),W;if(S.linearAdSequenceRenderer&&S.linearAdSequenceRenderer.linearAds){S=g.R(S.linearAdSequenceRenderer.linearAds);for(m=S.next();!m.done;m=S.next())m=m.value,g.n(m,E4)&&W.push(g.n(m,E4));return W}return null}; KeK=function(S){if(S.instreamVideoAdRenderer===void 0)return GI("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var W=g.R(S.Bz),m=W.next();!m.done;m=W.next()){m=m.value;if(m.IG===void 0)return!1;if(m.vz===void 0)return GI("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(S.o3===void 0||m.yz===void 0||S.o3!==m.yz&&m.yz!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(S.instreamVideoAdRenderer.elementId===void 0)return GI("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:S.o3,"matching APSR kind":m.yz}),!1}return!0}; xY=function(S,W){S.has(W)||S.set(W,{instreamVideoAdRenderer:void 0,o3:void 0,adVideoId:W,Bz:[]});return S.get(W)}; iB=function(S,W,m,a,J,B,E,y,Y){J?xY(S,J).Bz.push({iuN:W,yz:m,isContentVideoCompanion:a,vz:E,associatedCompositePlayerBytesLayoutId:B,adSlotLoggingData:y,IG:Y}):GI("Companion AdPlacementSupportedRenderer without adVideoId")}; d5=function(S){var W=0;S=g.R(S.questions);for(var m=S.next();!m.done;m=S.next())if(m=m.value,m=g.n(m,g5)||g.n(m,O4)){var a=void 0;W+=((a=m.surveyAdQuestionCommon)==null?void 0:a.durationMilliseconds)||0}return W}; IE=function(S){var W,m,a,J,B=((m=g.n((W=S.questions)==null?void 0:W[0],g5))==null?void 0:m.surveyAdQuestionCommon)||((J=g.n((a=S.questions)==null?void 0:a[0],O4))==null?void 0:J.surveyAdQuestionCommon),E;W=[].concat(g.x(((E=S.playbackCommands)==null?void 0:E.instreamAdCompleteCommands)||[]),g.x((B==null?void 0:B.timeoutCommands)||[]));var y,Y,G,K,T,p,q,F,O,X,l,M,e,d,t,h,mD,SO,aK,EP;return{impressionCommands:(y=S.playbackCommands)==null?void 0:y.impressionCommands,errorCommands:(Y=S.playbackCommands)== null?void 0:Y.errorCommands,muteCommands:(G=S.playbackCommands)==null?void 0:G.muteCommands,unmuteCommands:(K=S.playbackCommands)==null?void 0:K.unmuteCommands,pauseCommands:(T=S.playbackCommands)==null?void 0:T.pauseCommands,rewindCommands:(p=S.playbackCommands)==null?void 0:p.rewindCommands,resumeCommands:(q=S.playbackCommands)==null?void 0:q.resumeCommands,skipCommands:(F=S.playbackCommands)==null?void 0:F.skipCommands,progressCommands:(O=S.playbackCommands)==null?void 0:O.progressCommands,XJX:(X= S.playbackCommands)==null?void 0:X.clickthroughCommands,fullscreenCommands:(l=S.playbackCommands)==null?void 0:l.fullscreenCommands,activeViewViewableCommands:(M=S.playbackCommands)==null?void 0:M.activeViewViewableCommands,activeViewMeasurableCommands:(e=S.playbackCommands)==null?void 0:e.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(d=S.playbackCommands)==null?void 0:d.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(t=S.playbackCommands)== null?void 0:(h=t.activeViewTracking)==null?void 0:h.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(mD=S.playbackCommands)==null?void 0:(SO=mD.activeViewTracking)==null?void 0:SO.activeViewAudioMeasurableCommands,endFullscreenCommands:(aK=S.playbackCommands)==null?void 0:aK.endFullscreenCommands,abandonCommands:(EP=S.playbackCommands)==null?void 0:EP.abandonCommands,completeCommands:W}}; nQP=function(S,W,m,a,J,B,E){return function(y,Y){return V3P(S,Y.slotId,y,B,function(G,K){var T=Y.layoutId;G=E(G);return PG(W,T,K,J,G,"LAYOUT_TYPE_SURVEY",[new DR(m),a],m.adLayoutLoggingData)})}}; gQP=function(S,W,m,a,J,B,E){if(!sRO(S))return new D("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:S});var y=S.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[uQl(B,W,m,a,function(Y){var G=Y.slotId;Y=E(Y);G=dE(J.N.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",G);var K={layoutId:G,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",DQ:"core"},T=new vi(J.C,a);return{layoutId:G,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Bv:new Map,layoutExitNormalTriggers:[T], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new wy(y)]),K3:Y(K)}})]}; sRO=function(S){S=g.n(S==null?void 0:S.additionalPlayerOverlay,Ocj);if(!S)return!1;var W=S.slidingMessages;return S.title&&W&&W.length!==0?!0:!1}; QRQ=function(S,W,m,a,J){var B;if((B=S.playerOverlay)==null||!B.instreamSurveyAdRenderer)return function(){return[]}; if(!omQ(S))return function(){return new D("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:S})}; var E=S.playerOverlay.instreamSurveyAdRenderer,y=d5(E);return y<=0?function(){return new D("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:E})}:function(Y,G){var K=jR_(Y,m,a,function(T){var p=T.slotId; T=G(T);var q=IE(E);p=dE(J.N.get(),"LAYOUT_TYPE_SURVEY",p);var F={layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",DQ:"core"},O=new vi(J.C,a),X=new Pi(J.C,p),l=new Zd(J.C,p),M=new Xzl(J.C);return{layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",Bv:new Map,layoutExitNormalTriggers:[O,M],layoutExitSkipTriggers:[X],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[l],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new cS(E),new dy(W),new HR(y/1E3),new Ls(q)]),K3:T(F),adLayoutLoggingData:E.adLayoutLoggingData}}); Y=gQP(S,m,K.slotId,a,J,Y,G);return Y instanceof D?Y:[K].concat(g.x(Y))}}; LeO=function(S,W,m,a,J,B,E,y){E=E===void 0?!1:E;var Y=[];try{var G=[];if(m.renderer.linearAdSequenceRenderer)var K=function(X){X=XOj(X.slotId,m,W,J(X),a,B,E);G=X.HW_;return X.Dj}; else if(m.renderer.instreamVideoAdRenderer)K=function(X){var l=X.slotId;X=J(X);var M=E,e=m.config.adPlacementConfig,d=vQK(e),t=d.lx,h=d.YH;d=m.renderer.instreamVideoAdRenderer;var mD;if(d==null?0:(mD=d.playerOverlay)==null?0:mD.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var SO=fv(d,M);mD=Math.min(t+SO.videoLengthSeconds*1E3,h);M=new sn(0,[SO.videoLengthSeconds]);h=SO.videoLengthSeconds;var aK=SO.playerVars,EP=SO.instreamAdPlayerOverlayRenderer, qP=SO.playerOverlayLayoutRenderer,JG=SO.adVideoId,jO=Hc6(m),D6=SO.Bv;SO=SO.pu;var zg=d==null?void 0:d.adLayoutLoggingData;d=d==null?void 0:d.sodarExtensionData;l=dE(W.N.get(),"LAYOUT_TYPE_MEDIA",l);var kX={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",DQ:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",Bv:D6,layoutExitNormalTriggers:[new Hi(W.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new he(a), new Ks(h),new Tm(aK),new Ft(t),new VN(mD),EP&&new te(EP),qP&&new Ae(qP),new dy(e),new $B(JG),new It(M),new O$(jO),d&&new ps(d),new E$({current:null}),new s$({}),new x_(SO)].filter(l1X)),K3:X(kX),adLayoutLoggingData:zg}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var T=M3c(S,a,m.adSlotLoggingData,K,y);Y.push(T);for(var p=g.R(G),q=p.next();!q.done;q=p.next()){var F=q.value,O=F(S,J);if(O instanceof D)return O;Y.push.apply(Y,g.x(O))}}catch(X){return new D(X,{errorMessage:X.message,AdPlacementRenderer:m,numberOfSurveyRenderers:U9D(m)})}return Y}; U9D=function(S){S=(S.renderer.linearAdSequenceRenderer||{}).linearAds;return S!=null&&S.length?S.filter(function(W){var m,a;return((m=g.n(W,E4))==null?void 0:(a=m.playerOverlay)==null?void 0:a.instreamSurveyAdRenderer)!=null}).length:0}; XOj=function(S,W,m,a,J,B,E){var y=W.config.adPlacementConfig,Y=vQK(y),G=Y.lx,K=Y.YH;Y=(W.renderer.linearAdSequenceRenderer||{}).linearAds;if(Y==null||!Y.length)throw new TypeError("Expected linear ads");var T=[],p={lM:G,tN:0,X4n:T};Y=Y.map(function(F){return R1_(S,F,p,m,a,y,J,K,E)}).map(function(F,O){O=new sn(O,T); return F(O)}); var q=Y.map(function(F){return F.SB}); return{Dj:e1K(m,S,G,q,y,Hc6(W),a,K,B),HW_:Y.map(function(F){return F.W$D})}}; R1_=function(S,W,m,a,J,B,E,y,Y){var G=fv(g.n(W,E4),Y),K=m.lM,T=m.tN,p=Math.min(K+G.videoLengthSeconds*1E3,y);m.lM=p;m.tN++;m.X4n.push(G.videoLengthSeconds);var q,F,O=(q=g.n(W,E4))==null?void 0:(F=q.playerOverlay)==null?void 0:F.instreamSurveyAdRenderer;if(G.adVideoId==="nPpU29QrbiU"&&O==null)throw new TypeError("Survey slate media has no survey overlay");return function(X){RE(G.playerVars,X);var l,M,e=G.videoLengthSeconds,d=G.playerVars,t=G.Bv,h=G.pu,mD=G.instreamAdPlayerOverlayRenderer,SO=G.playerOverlayLayoutRenderer, aK=G.adVideoId,EP=(l=g.n(W,E4))==null?void 0:l.adLayoutLoggingData;l=(M=g.n(W,E4))==null?void 0:M.sodarExtensionData;M=dE(a.N.get(),"LAYOUT_TYPE_MEDIA",S);var qP={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",DQ:"adapter"};X={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",Bv:t,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"adapter",clientMetadata:new AF([new he(E),new Ks(e),new Tm(d),new Ft(K),new VN(p), new ns(T),new E$({current:null}),mD&&new te(mD),SO&&new Ae(SO),new dy(B),new $B(aK),new It(X),l&&new ps(l),O&&new ew(O),new s$({}),new x_(h)].filter(l1X)),K3:J(qP),adLayoutLoggingData:EP};e=QRQ(g.n(W,E4),B,E,X.layoutId,a);return{SB:X,W$D:e}}}; fv=function(S,W){if(!S)throw new TypeError("Expected instream video ad renderer");if(!S.playerVars)throw new TypeError("Expected player vars in url encoded string");var m=Gj(S.playerVars),a=Number(m.length_seconds);if(isNaN(a))throw new TypeError("Expected valid length seconds in player vars");var J=Number(S.trimmedMaxNonSkippableAdDurationMs);a=isNaN(J)?a:Math.min(a,J/1E3);J=S.playerOverlay||{};J=J.instreamAdPlayerOverlayRenderer===void 0?null:J.instreamAdPlayerOverlayRenderer;var B=S.playerOverlay|| {};B=B.playerOverlayLayoutRenderer===void 0?null:B.playerOverlayLayoutRenderer;var E=m.video_id;E||(E=(E=S.externalVideoId)?E:void 0);if(!E)throw new TypeError("Expected valid video id in IVAR");if(W&&a===0){var y;W=(y=x9P[E])!=null?y:a}else W=a;return{playerVars:m,videoLengthSeconds:W,instreamAdPlayerOverlayRenderer:J,playerOverlayLayoutRenderer:B,adVideoId:E,Bv:S.pings?Gq(S.pings):new Map,pu:Yu(S.pings)}}; Hc6=function(S){S=Number(S.driftRecoveryMs);return isNaN(S)||S<=0?null:S}; vQK=function(S){var W=S.adTimeOffset||{};S=W.offsetEndMilliseconds;W=Number(W.offsetStartMilliseconds);if(isNaN(W))throw new TypeError("Expected valid start offset");S=Number(S);if(isNaN(S))throw new TypeError("Expected valid end offset");return{lx:W,YH:S}}; ic7=function(S){var W,m=(W=Zb(S.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!m)return null;W=Zb(S.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var a=S.layoutId,J=Zb(S.clientMetadata,"metadata_type_content_cpn"),B=Zb(S.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E=Zb(S.clientMetadata,"metadata_type_player_underlay_renderer"),y=Zb(S.clientMetadata,"metadata_type_ad_placement_config"),Y=Zb(S.clientMetadata,"metadata_type_video_length_seconds"); var G=k_(S.clientMetadata,"metadata_type_layout_enter_ms")&&k_(S.clientMetadata,"metadata_type_layout_exit_ms")?(Zb(S.clientMetadata,"metadata_type_layout_exit_ms")-Zb(S.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{nU:a,contentCpn:J,t8:m,jV:W,instreamAdPlayerOverlayRenderer:B,instreamAdPlayerUnderlayRenderer:E,adPlacementConfig:y,videoLengthSeconds:Y,qM:G,inPlayerLayoutId:Zb(S.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Zb(S.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Pql=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F){a=ST(a,"SLOT_TYPE_PLAYER_BYTES");S=d96(J,S,E,m,a,Y,G);if(S instanceof D)return S;var O;G=(O=Zb(S.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:O.layoutId;if(!G)return new D("Invalid adNotify layout");W=I1G(G,J,B,m,y,W,Y,K,T,p,q,F,E);return W instanceof D?W:[S].concat(g.x(W))}; I1G=function(S,W,m,a,J,B,E,y,Y,G,K,T,p){m=f1D(W,m,a,B,E,y,Y,G,K,T,p);if(m instanceof D)return m;S=kKc(W,S,E,J,m);return S instanceof D?S:[].concat(g.x(S.Oy),[S.Z0])}; h1c=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q){W=f1D(S,W,m,J,B,y,Y,G,K,T,p,q);if(W instanceof D)return W;S=$9P(S,m,B,E,a,y.Hv,W);return S instanceof D?S:S.Oy.concat(S.Z0)}; f1D=function(S,W,m,a,J,B,E,y,Y,G,K,T){var p=kY(a);return p instanceof tF?new D(p):G.W.J().experiments.mU("html5_refactor_in_player_slot_generation")?function(q){var F=new sn(0,[p.q0]);q=t3K(W,p.layoutId,p.kT,m,$Y(p.playerVars,p.vx,B,Y,F),p.q0,J,F,E(q),y.get(p.kT.externalVideoId),T);F=[];if(p.kT.playerOverlay.instreamAdPlayerOverlayRenderer){var O=ic7(q);if(!O)return GI("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,q),{layout:q,Oy:[]};F=[AAD(S, O.contentCpn,O.nU,function(l){return hf(W,l.slotId,"core",O,cR(K,l))},O.inPlayerSlotId)].concat(g.x(F)); if(O.instreamAdPlayerUnderlayRenderer&&tf(G)){var X=O.instreamAdPlayerUnderlayRenderer;F=[Zc7(S,O.contentCpn,O.nU,function(l){return NFO(W,l.slotId,X,O.adPlacementConfig,O.nU,cR(K,l))})].concat(g.x(F))}}return{layout:q, Oy:F}}:function(q){var F=new sn(0,[p.q0]); return{layout:t3K(W,p.layoutId,p.kT,m,$Y(p.playerVars,p.vx,B,Y,F),p.q0,J,F,E(q),y.get(p.kT.externalVideoId),T),Oy:[]}}}; kY=function(S){if(!S.playerVars)return new tF("No playerVars available in InstreamVideoAdRenderer.");var W,m;if(S.elementId==null||S.playerVars==null||S.playerOverlay==null||((W=S.playerOverlay)==null?void 0:W.instreamAdPlayerOverlayRenderer)==null&&((m=S.playerOverlay)==null?void 0:m.playerOverlayLayoutRenderer)==null||S.pings==null||S.externalVideoId==null)return new tF("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:S});W=Gj(S.playerVars);m=Number(W.length_seconds);isNaN(m)&& (m=0,GI("Expected valid length seconds in player vars but got NaN"));return{layoutId:S.elementId,kT:S,playerVars:W,vx:S.playerVars,q0:m}}; $Y=function(S,W,m,a,J){S.iv_load_policy=a;W=Gj(W);if(W.cta_conversion_urls)try{S.cta_conversion_urls=JSON.parse(W.cta_conversion_urls)}catch(B){GI(B)}m.j1&&(S.ctrl=m.j1);m.Fy&&(S.ytr=m.Fy);m.Tq&&(S.ytrcc=m.Tq);m.isMdxPlayback&&(S.mdx="1");S.vvt&&(S.vss_credentials_token=S.vvt,m.Tf&&(S.vss_credentials_token_type=m.Tf),m.mdxEnvironment&&(S.mdx_environment=m.mdxEnvironment));RE(S,J);return S}; bcD=function(S){var W=new Map;S=g.R(S);for(var m=S.next();!m.done;m=S.next())(m=m.value.renderer.remoteSlotsRenderer)&&m.hostElementId&&W.set(m.hostElementId,m);return W}; Af=function(S){return S.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; oQX=function(S){return S!=null}; myQ=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F){for(var O=[],X=g.R(S),l=X.next();!l.done;l=X.next())if(l=l.value,!PUG(l)&&!AYc(l)){var M=rAj(l,a,m.O$);if(M instanceof D)return M;var e=void 0,d={slotId:l.adSlotMetadata.slotId,slotType:l.adSlotMetadata.slotType,slotPhysicalPosition:(e=l.adSlotMetadata.slotPhysicalPosition)!=null?e:1,DQ:"core",slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers},t=g.n(l.fulfillmentContent.fulfilledLayout, Kv);if(t){if(!GV(t))return new D("Invalid PlayerBytesAdLayoutRenderer");e=T&&!(Af(l)&&l.slotEntryTrigger.beforeContentVideoIdStartedTrigger);M=M.slotFulfillmentTriggers.some(function(h){return h instanceof ly}); M=e?Cql(d,l.adSlotMetadata.triggerEvent,t,m,a,B,S,p,M,q):cAO(d,l.adSlotMetadata.triggerEvent,t,W,m,a,J,B,E,y,Y,G,S,K,l.adSlotMetadata.triggeringSourceLayoutId);if(M instanceof D)return M;t=[];F?t.push(new Gm({current:F})):t.push(new Gm({current:null}));Af(l)&&t.push(new PR({lF:Af(l)&&!!l.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));e&&t.push(new s$({}));m.Hv&&t.push(new RX({}));l=Object.assign({},d,{clientMetadata:new AF(t),fulfilledLayout:M.layout,adSlotLoggingData:l.adSlotMetadata.adSlotLoggingData}); O.push.apply(O,g.x(M.Oy));O.push(l)}else if(e=g.n(l.fulfillmentContent.fulfilledLayout,nv)){if(!IEQ(e))return new D("Invalid PlayerUnderlayAdLayoutRenderer");e=D9P(e,a,m.O$,B,d,l.adSlotMetadata.triggerEvent,l.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof D)return e;l=Object.assign({},d,{clientMetadata:new AF([]),fulfilledLayout:e,adSlotLoggingData:l.adSlotMetadata.adSlotLoggingData});O.push(l)}else if(e=g.n(l.fulfillmentContent.fulfilledLayout,hxP)){if(!oi(e.adLayoutMetadata)||!g.n(e.renderingContent, pv))return new D("Invalid InPlayerOrganicOverlayAdLayoutRenderer");e=e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?wO_(e,a,m.O$,B,d):new D("LayoutType ["+e.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(e instanceof D)return e;l=Object.assign({},d,{clientMetadata:new AF([]),fulfilledLayout:e,adSlotLoggingData:l.adSlotMetadata.adSlotLoggingData});O.push(l)}else if(e=g.n(l.fulfillmentContent.fulfilledLayout,kaG)){if(!MGD(e))return new D("Invalid AboveFeedAdLayoutRenderer"); e=SJ_(e,a,m.O$,B,d,l.adSlotMetadata.triggerEvent,l.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof D)return e;l=Object.assign({},d,{clientMetadata:new AF([]),fulfilledLayout:e,adSlotLoggingData:l.adSlotMetadata.adSlotLoggingData});O.push(l)}else if(e=g.n(l.fulfillmentContent.fulfilledLayout,$LK)){if(!oi(e.adLayoutMetadata)||!g.n(e.renderingContent,rZ))return new D("Invalid BelowPlayerAdLayoutRenderer");e=SJ_(e,a,m.O$,B,d,l.adSlotMetadata.triggerEvent,l.adSlotMetadata.triggeringSourceLayoutId); if(e instanceof D)return e;l=Object.assign({},d,{clientMetadata:new AF([]),fulfilledLayout:e,adSlotLoggingData:l.adSlotMetadata.adSlotLoggingData});O.push(l)}else if(e=g.n(l.fulfillmentContent.fulfilledLayout,s4)){if(!qg(e))return new D("Invalid PlayerBytesSequenceItemAdLayoutRenderer");e=WC6(e,a,m.O$,B,d,l.adSlotMetadata.triggerEvent);if(e instanceof D)return e;l=Object.assign({},d,{clientMetadata:new AF([]),fulfilledLayout:e,adSlotLoggingData:l.adSlotMetadata.adSlotLoggingData});O.push(l)}else return new D("Unable to retrieve a client slot ["+ d.slotType+"] from a given AdSlotRenderer")}return O}; WC6=function(S,W,m,a,J,B){var E={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,DQ:"core"};W=Zo(S,W,m);return W instanceof D?W:(m=g.n(S.renderingContent,TV))&&m.pings?Object.assign({},E,{renderingContent:S.renderingContent,Bv:Gq(m.pings)},W,{K3:cR(a,J)(E),clientMetadata:new AF([new dy(Ng(B)),new Ls({progressCommands:m.progressCommands})]),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData}):new D("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; SJ_=function(S,W,m,a,J,B,E){var y={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,DQ:"core"};W=Zo(S,W,m);if(W instanceof D)return W;m=[];m.push(new dy(Ng(B)));B==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&E!==void 0&&m.push(new Sw(E));return Object.assign({},y,{renderingContent:S.renderingContent,Bv:new Map([["impression",aRD(S)]])},W,{K3:cR(a,J)(y),clientMetadata:new AF(m),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData})}; D9P=function(S,W,m,a,J,B,E){if(S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var y=g.n(S.renderingContent,FM),Y=g.n(S.renderingContent,pv);E=new Map;if(y){E=g.n(y.sidePanel,iGP);if(!E){S=new D("DismissablePanelTextPortraitImageRenderer is missing");break a}E=new Map([["impression",E.impressionPings||[]],["resume",E.resumePings||[]]])}else if(!Y){S=new D("AdsEngagementPanelSectionListViewModel is missing");break a}y={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType, DQ:"core"};W=Zo(S,W,m);S=W instanceof D?W:Object.assign({},y,{renderingContent:S.renderingContent,Bv:E},W,{K3:cR(a,J)(y),clientMetadata:new AF([new dy(Ng(B))]),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData})}else S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.n(S.renderingContent,exc)?(E={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,DQ:"core"},W=Zo(S,W,m),S=W instanceof D?W:Object.assign({},E,{renderingContent:S.renderingContent,Bv:new Map}, W,{K3:cR(a,J)(E),clientMetadata:new AF([new dy(Ng(B))]),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData})):S=new D("CounterfactualRenderer is missing"):S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?S=new D("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?S=new D("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.n(S.renderingContent,VZ)?(B={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,DQ:"core"},W=Zo(S,W,m),S=W instanceof D?W:E?Object.assign({},B,{renderingContent:S.renderingContent,Bv:new Map},W,{K3:cR(a,J)(B),clientMetadata:new AF([new Sw(E)]),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData}):new D("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):S=new D("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.n(S.renderingContent,pv)?(B={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,DQ:"core"},W=Zo(S,W,m),S=W instanceof D?W:Object.assign({},B,{renderingContent:S.renderingContent,Bv:new Map([])},W,{K3:cR(a,J)(B),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new AF([])})):S=new D("AdsEngagementPanelSectionListViewModel is missing"):S=new D("LayoutType ["+S.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");return S}; wO_=function(S,W,m,a,J){if(!g.n(S.renderingContent,pv))return new D("AdsEngagementPanelSectionListViewModel is missing");var B={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,DQ:"core"};W=Zo(S,W,m);return W instanceof D?W:Object.assign({},B,{renderingContent:S.renderingContent,Bv:new Map([])},W,{K3:cR(a,J)(B),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new AF([])})}; Cql=function(S,W,m,a,J,B,E,y,Y,G){if((G==null?void 0:G.uS)===void 0||(G==null?void 0:G.eJ)===void 0)return new D("Cached ad break range from cue point is missing");var K=Zo(m,J,a.O$);if(K instanceof D)return K;K={layoutExitMuteTriggers:[],layoutExitNormalTriggers:K.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.n(m.renderingContent,E4))return S=Je6(S,W,m,K,J,B,E,a.O$,G.uS,G.eJ),S instanceof D?S:S.J1===void 0?new D("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:S.layout,Oy:[S.J1]};var T=g.n(m.renderingContent,Jf);if(T){if(!oi(m.adLayoutMetadata))return new D("Invalid ad layout metadata");if(!BG(T))return new D("Invalid sequential layout");T=T.sequentialLayouts.map(function(p){return p.playerBytesAdLayoutRenderer}); S=ByG(S,W,m,K,T,J,a,B,E,y,G.uS,G.eJ,Y);return S instanceof D?S:{layout:S.u1,Oy:S.Oy}}return new D("Not able to convert a sequential layout")}; ByG=function(S,W,m,a,J,B,E,y,Y,G,K,T,p){var q=EBK(J,K,T);if(q instanceof D)return q;var F=[],O=[];q=g.R(q);for(var X=q.next();!X.done;X=q.next()){var l=X.value;X=S;var M=J[l.tN],e=l,d=W;l=B;var t=E,h=y,mD=Y,SO=bB(M);if(SO instanceof D)X=SO;else{var aK={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,DQ:"adapter"};e=zj6(d,M,e,l);e instanceof D?X=e:(X=Object.assign({},aK,oE,{Bv:SO,renderingContent:M.renderingContent,clientMetadata:new AF(e),K3:cR(h,X)(aK),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}), X=(M=r5(mD,X,l,t.O$,h,void 0,!0))?M instanceof D?M:{layout:X,J1:M}:new D("Expecting associatedInPlayerSlot"))}if(X instanceof D)return X;F.push(X.layout);O.push(X.J1)}J={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,DQ:"core"};W=[new O$(Number(m.driftRecoveryMs)),new Ft(K),new VN(T),new dy(Ng(W)),new di(G),new s$({})];p&&W.push(new fs({}));return{u1:Object.assign({},J,a,{D2:F,Bv:new Map,clientMetadata:new AF(W),K3:cR(y,S)(J)}),Oy:O}}; Je6=function(S,W,m,a,J,B,E,y,Y,G){if(!GV(m))return new D("Invalid PlayerBytesAdLayoutRenderer");var K=bB(m);if(K instanceof D)return K;var T={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,DQ:"core"},p=g.n(m.renderingContent,E4);if(!p)return new D("Invalid rendering content for DAI media layout");p=fv(p,!1);Y={Ng:p,tN:0,lM:Y,zW:Math.min(Y+p.videoLengthSeconds*1E3,G),j4:new sn(0,[p.videoLengthSeconds])};var q;G=(q=Number(m.driftRecoveryMs))!=null?q:void 0;W=zj6(W,m,Y, J,G);if(W instanceof D)return W;S=Object.assign({},T,a,{Bv:K,renderingContent:m.renderingContent,clientMetadata:new AF(W),K3:cR(B,S)(T),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return(J=r5(E,S,J,y,B,void 0,!0))?J instanceof D?J:{layout:S,J1:J}:new D("Expecting associatedInPlayerSlot")}; cAO=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F){var O=Zo(m,B,J.O$);if(O instanceof D)return O;if(g.n(m.renderingContent,E4)){Y=yeG([m],J,Y);if(Y instanceof D)return Y;if(Y.length!==1)return new D("Only expected one media layout.");S=YJj(S,W,m,O,Y[0],void 0,"core",a,B,E,y,G,p,q,J.O$,void 0,F);return S instanceof D?S:{layout:S.layout,Oy:S.J1?[S.J1]:[]}}var X=g.n(m.renderingContent,Jf);if(X){if(!oi(m.adLayoutMetadata))return new D("Invalid ad layout metadata");if(!BG(X))return new D("Invalid sequential layout"); X=X.sequentialLayouts.map(function(l){return l.playerBytesAdLayoutRenderer}); S=GsO(S,W,m.adLayoutMetadata,O,X,a,B,J,Y,E,y,G,K,T,p,q,F);return S instanceof D?S:{layout:S.u1,Oy:S.Oy}}return new D("Not able to convert a sequential layout")}; GsO=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O,X){var l=new kB({current:null}),M=yeG(J,y,Y);if(M instanceof D)return M;Y=[];for(var e=[],d=void 0,t=0;t0&&(d.push(O),d.push(new fM(e.adPodSkipTarget)));(B=G.get(e.externalVideoId))&&d.push(new vR(B));B=d}else B=new D("Invalid vod media renderer")}if(B instanceof D)return B;S=Object.assign({},E,a,{Bv:l,renderingContent:m.renderingContent,clientMetadata:new AF(B),K3:cR(K,S)(E),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});m=g.n(m.renderingContent,E4);if(!m||!aE(m))return new D("Invalid meida renderer");T=xY(T,m.externalVideoId);T.instreamVideoAdRenderer=m;T.o3="AD_PLACEMENT_KIND_START";return q?(Y=r5(p,S,Y,F,K,O,!1),Y instanceof D?Y:qJX(S.layoutId,p)&&Y?{layout:Object.assign({},S,{clientMetadata:new AF(B.concat(new bg(Y)))})}:{layout:S,J1:Y}): {layout:S}}; KC6=function(S,W,m,a,J){if(!GV(W))return new D("Invalid PlayerBytesAdLayoutRenderer");var B=g.n(W.renderingContent,ow);if(!B||B.durationMilliseconds===void 0)return new D("Invalid endcap renderer");var E={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,DQ:"adapter"};a=[new lT(B.durationMilliseconds),new Ls({impressionCommands:void 0,abandonCommands:B.abandonCommands?[{commandExecutorCommand:B.abandonCommands}]:void 0,completeCommands:B.completionCommands}),new dy(a), new aX("LAYOUT_TYPE_ENDCAP")];if(J){a.push(new PS(J.j4.adPodIndex-1));a.push(new ns(J.j4.adPodIndex));var y;a.push(new fM((y=J.adPodSkipTarget)!=null?y:-1))}return Object.assign({},E,oE,{renderingContent:W.renderingContent,clientMetadata:new AF(a),Bv:B.skipPings?new Map([["skip",B.skipPings]]):new Map,K3:cR(m,S)(E),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}; r5=function(S,W,m,a,J,B,E){S=S.filter(function(T){return T.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&T.adSlotMetadata.triggeringSourceLayoutId===W.layoutId}); if(S.length!==0){if(S.length!==1)return new D("Invalid InPlayer slot association for the given PlayerBytes layout");var y=S[0],Y=rAj(y,m,a);if(Y instanceof D)return Y;var G;S={slotId:y.adSlotMetadata.slotId,slotType:y.adSlotMetadata.slotType,slotPhysicalPosition:(G=y.adSlotMetadata.slotPhysicalPosition)!=null?G:1,DQ:"core",slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers,slotExpirationTriggers:Y.slotExpirationTriggers};G=g.n(y.fulfillmentContent.fulfilledLayout, fED);if(!G||!RxP(G))return new D("Invalid InPlayerAdLayoutRenderer");Y={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,DQ:"core"};m=Zo(G,m,a);if(m instanceof D)return m;a=[];var K=G.adLayoutMetadata.layoutType;E&&a.push(new s$({}));if(K==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")a.push.apply(a,g.x(pSD(y.adSlotMetadata.triggerEvent,W))),(B=FCP(m,W.layoutId))&&a.push(new WR(B));else if(K==="LAYOUT_TYPE_ENDCAP"||K==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){a.push(new dy(Ng(y.adSlotMetadata.triggerEvent))); if(K==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new D("Cannot parse endcap layout since AdUxReadyApi is not provided");B&&a.push(B)}else return new D("Not able to parse an SDF InPlayer layout");J=Object.assign({},Y,m,{renderingContent:G.renderingContent,Bv:new Map,K3:cR(J,S)(Y),clientMetadata:new AF(a),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},S,{fulfilledLayout:J,clientMetadata:new AF([])})}}; pSD=function(S,W){var m=[];m.push(new dy(Ng(S)));m.push(new Sw(W.layoutId));(S=Zb(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&m.push(new E$(S));(S=Zb(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&m.push(new kB(S));(S=Zb(W.clientMetadata,"metadata_type_remote_slots_data"))&&m.push(new vR(S));(S=Zb(W.clientMetadata,"metadata_type_ad_next_params"))&&m.push(new lg(S));(S=Zb(W.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&m.push(new My(S));(S= Zb(W.clientMetadata,"metadata_type_ad_pod_info"))&&m.push(new It(S));(W=Zb(W.clientMetadata,"metadata_type_ad_video_id"))&&m.push(new $B(W));return m}; TyP=function(S,W,m,a,J,B){function E(G){return Cv(W,G)} var y=a.XW.inPlayerSlotId,Y={layoutId:a.XW.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",DQ:"core"};m={slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:new QQ(E,S),slotFulfillmentTriggers:[new fb(E,y)],slotExpirationTriggers:[new kW(E,y),new dZ(E,m)]};S=Object.assign({},Y,{layoutExitNormalTriggers:[new vi(E,S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Bv:new Map,clientMetadata:new AF([new ry(a.XW), new dy(a.adPlacementConfig),J]),K3:cR(B,m)(Y),adLayoutLoggingData:a.XW.adLayoutLoggingData});return Object.assign({},m,{clientMetadata:new AF([new jw(S)])})}; qJX=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next())if(m=m.value,m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var a=g.n(m.fulfillmentContent.fulfilledLayout,nv);if(a&&(a=g.n(a.renderingContent,FM))&&a.associatedPlayerBytesLayoutId===S)return m}}; rAj=function(S,W,m){var a=Lv(S.slotEntryTrigger,W,m);if(a instanceof D)return a;for(var J=[],B=g.R(S.slotFulfillmentTriggers),E=B.next();!E.done;E=B.next()){E=Lv(E.value,W,m);if(E instanceof D)return E;J.push(E)}B=[];S=g.R(S.slotExpirationTriggers);for(E=S.next();!E.done;E=S.next()){E=Lv(E.value,W,m);if(E instanceof D)return E;B.push(E)}return{slotEntryTrigger:a,slotFulfillmentTriggers:J,slotExpirationTriggers:B}}; Zo=function(S,W,m){for(var a=[],J=g.R(S.layoutExitNormalTriggers||[]),B=J.next();!B.done;B=J.next()){B=Lv(B.value,W,m);if(B instanceof D)return B;a.push(B)}J=[];B=g.R(S.layoutExitSkipTriggers||[]);for(var E=B.next();!E.done;E=B.next()){E=Lv(E.value,W,m);if(E instanceof D)return E;J.push(E)}B=[];E=g.R(S.layoutExitMuteTriggers||[]);for(var y=E.next();!y.done;y=E.next()){y=Lv(y.value,W,m);if(y instanceof D)return y;B.push(y)}E=[];S=g.R(S.layoutExitUserInputSubmittedTriggers||[]);for(y=S.next();!y.done;y= S.next()){y=Lv(y.value,W,m);if(y instanceof D)return y;E.push(y)}return{layoutExitNormalTriggers:a,layoutExitSkipTriggers:J,layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:E,layoutExitUserCancelledTriggers:[]}}; bB=function(S){var W=g.n(S.renderingContent,E4);if(W==null?0:W.pings)return Gq(W.pings);S=g.n(S.renderingContent,ow);return(S==null?0:S.skipPings)?new Map([["skip",S.skipPings]]):new Map}; zj6=function(S,W,m,a,J){W=g.n(W.renderingContent,E4);if(!W)return new D("Invalid rendering content for DAI media layout");S=[new he(a),new Ks(m.Ng.videoLengthSeconds),new Tm(m.Ng.playerVars),new Ft(m.lM),new VN(m.zW),new ns(m.tN),new dy(Ng(S)),new $B(m.Ng.adVideoId),new It(m.j4),W.sodarExtensionData&&new ps(W.sodarExtensionData),new E$({current:null}),new s$({}),new x_(Yu(W.pings))].filter(oQX);J!==void 0&&S.push(new O$(J));return S}; EBK=function(S,W,m){S=S.map(function(Y){return fv(g.n(Y.renderingContent,E4),!1)}); var a=S.map(function(Y){return Y.videoLengthSeconds}),J=a.map(function(Y,G){return new sn(G,a)}),B=W,E=m,y=[]; S.forEach(function(Y,G){E=Math.min(B+Y.videoLengthSeconds*1E3,m);RE(Y.playerVars,J[G]);y.push({Ng:Y,lM:B,zW:E,tN:G,j4:J[G]});B=E}); return y}; yeG=function(S,W,m){for(var a=[],J=g.R(S),B=J.next();!B.done;B=J.next())if(B=g.n(B.value.renderingContent,E4)){if(!aE(B))return new D("Invalid vod media renderer");a.push(V_X(B))}J=a.map(function(T){return T.q0}); B=[];for(var E=0,y=0;y0?EP:-1;else if(jO= g.n(JG,ow)){JG=lRK(S,W,m,jO,B,O,y,mD,EP);if(JG instanceof D){q=JG;break a}JG=JG(p);X.push(JG.er);l=[].concat(g.x(JG.U3),g.x(l));M=[].concat(g.x(JG.iZ),g.x(M));JG.J1&&(aK=[JG.J1].concat(g.x(aK)))}else if(jO=g.n(JG,yZ)){if(q===void 0){q=new D("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:jO});break a}JG=LCP(S,W,m,B,jO,h,y,q,O,i1(K,"supports_multi_step_on_desktop"));if(JG instanceof D){q=JG;break a}JG=JG(p);X.push(JG.er);JG.J1&&aK.push(JG.J1); l=[].concat(g.x(JG.U3),g.x(l));M=[].concat(g.x(JG.iZ),g.x(M));e=[].concat(g.x(JG.C0),g.x(e));d=[].concat(g.x(JG.o0),g.x(d));t=[h].concat(g.x(t))}else if(JG=g.n(JG,YY)){JG=RjO(S,W,m,B,JG,h,y,O);if(JG instanceof D){q=JG;break a}JG=JG(p);X.push(JG.er);JG.J1&&aK.push(JG.J1);M=[].concat(g.x(JG.iZ),g.x(M))}else{q=new D("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={D2:X,layoutExitSkipTriggers:l,layoutExitUserInputSubmittedTriggers:e,layoutExitUserCancelledTriggers:d,layoutExitMuteTriggers:M, x5:t,Oy:aK}}}else a:if(O=ksP(a),O instanceof D)q=O;else{X=0;l=[];M=[];e=[];d=[];t=[];h=[];mD=new zm({current:null});SO=new kB({current:null});aK=!1;qP=[];EP=-1;F=g.R(a);for(JG=F.next();!JG.done;JG=F.next())if(JG=JG.value,g.n(JG,zV)){JG=M_P(W,m,g.n(JG,zV),y);if(JG instanceof D){q=JG;break a}JG=JG(p);l.push(JG.er);M=[].concat(g.x(JG.U3),g.x(M));e=[].concat(g.x(JG.iZ),g.x(e));JG.J1&&(qP=[JG.J1].concat(g.x(qP)))}else if(g.n(JG,E4)){EP=kY(g.n(JG,E4));if(EP instanceof tF){q=new D(EP);break a}JG=new sn(X, O);JG=$yD(W,EP.layoutId,EP.kT,m,$Y(EP.playerVars,EP.vx,E,G,JG),EP.q0,B,JG,y(p),SO,Y.get(EP.kT.externalVideoId),void 0,T);X++;l.push(JG.er);M=[].concat(g.x(JG.U3),g.x(M));e=[].concat(g.x(JG.iZ),g.x(e));aK||(h.push(SO),aK=!0);EP=(EP=EP.kT.adPodSkipTarget)&&EP>0?EP:-1}else if(g.n(JG,ow)){JG=lRK(S,W,m,g.n(JG,ow),B,X,y,SO,EP);if(JG instanceof D){q=JG;break a}JG=JG(p);l.push(JG.er);M=[].concat(g.x(JG.U3),g.x(M));e=[].concat(g.x(JG.iZ),g.x(e));JG.J1&&(qP=[JG.J1].concat(g.x(qP)))}else if(g.n(JG,yZ)){if(q=== void 0){q=new D("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.n(JG,yZ)});break a}JG=LCP(S,W,m,B,g.n(JG,yZ),mD,y,q,X,i1(K,"supports_multi_step_on_desktop"));if(JG instanceof D){q=JG;break a}JG=JG(p);l.push(JG.er);JG.J1&&qP.push(JG.J1);M=[].concat(g.x(JG.U3),g.x(M));e=[].concat(g.x(JG.iZ),g.x(e));d=[].concat(g.x(JG.C0),g.x(d));t=[].concat(g.x(JG.o0),g.x(t));h=[mD].concat(g.x(h))}else if(g.n(JG,YY)){JG=RjO(S,W,m,B,g.n(JG,YY),mD,y,X);if(JG instanceof D){q=JG;break a}JG=JG(p);l.push(JG.er);JG.J1&&qP.push(JG.J1);e=[].concat(g.x(JG.iZ),g.x(e))}else{q=new D("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={D2:l,layoutExitSkipTriggers:M,layoutExitUserInputSubmittedTriggers:d,layoutExitUserCancelledTriggers:t,layoutExitMuteTriggers:e,x5:h,Oy:qP}}q instanceof D?p=q:(t=p.slotId,O=q.D2,X=q.layoutExitSkipTriggers,l=q.layoutExitMuteTriggers,M=q.layoutExitUserInputSubmittedTriggers,e=q.x5,p=y(p),d=J?J.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES", t=J?J.layoutId:dE(W.N.get(),d,t),h={layoutId:t,layoutType:d,DQ:"core"},p={layout:{layoutId:t,layoutType:d,Bv:new Map,layoutExitNormalTriggers:[new iy(W.C,t)],layoutExitSkipTriggers:X,layoutExitMuteTriggers:l,layoutExitUserInputSubmittedTriggers:M,layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new yN(O)].concat(g.x(e))),K3:p(h)},Oy:q.Oy});return p}}; ksP=function(S){var W=[];S=g.R(S);for(var m=S.next();!m.done;m=S.next())if(m=m.value,g.n(m,E4)){m=kY(g.n(m,E4));if(m instanceof tF)return new D(m);W.push(m.q0)}return W}; t_l=function(S,W,m,a,J,B,E,y){if(!bGK(m,y===void 0?!1:y))return new D("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:m});var Y=d5(m);if(Y<=0)return new D("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:m});var G=new zm({current:null}),K=nQP(S,W,m,G,a,B,E);return hj6(S,a,B,Y,J,function(T,p){var q=T.slotId,F=IE(m);T=E(T);q=dE(W.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);var O={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",DQ:"core"}, X=K(q,p),l=Zb(X.clientMetadata,"metadata_type_fulfilled_layout");l||GI("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");F=[new dy(a),new lT(Y),new Ls(F),G];l&&F.push(new aX(l.layoutType));return{uzY:{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bv:new Map,layoutExitNormalTriggers:[new iy(W.C,q)],layoutExitSkipTriggers:[new Pi(W.C,p.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Zd(W.C,p.layoutId)], layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF(F),K3:T(O)},b3q:X}})}; Ae6=function(S){if(!CUX(S))return!1;var W=g.n(S.adVideoStart,Wk);return W?g.n(S.linearAd,E4)&&WG(W)?!0:(GI("Invalid Sandwich with notify"),!1):!1}; ZMP=function(S){if(S.linearAds==null)return!1;S=g.n(S.adStart,Wk);return S?WG(S)?!0:(GI("Invalid LASR with notify"),!1):!1}; Ny6=function(S){if(!rY7(S))return!1;S=g.n(S.adStart,Wk);return S?WG(S)?!0:(GI("Invalid LASR with notify"),!1):!1}; mN=function(S,W,m,a,J,B,E,y,Y,G){this.j=S;this.N=W;this.C=m;this.AX=a;this.ME=J;this.B=B;this.tX=E;this.nJ=y;this.rU=Y;this.loadPolicy=G===void 0?1:G}; Mg=function(S,W,m,a,J,B,E,y,Y,G,K){var T=[];if(W.length===0&&a.length===0&&m.length===0)return T;W=W.filter(mL);var p=m.filter(tG6),q=a.filter(mL),F=new Map,O=bcD(W),X=m.some(function(kX){var C6;return(kX==null?void 0:(C6=kX.adSlotMetadata)==null?void 0:C6.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),l=m.some(function(kX){var C6; return(kX==null?void 0:(C6=kX.adSlotMetadata)==null?void 0:C6.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),M=m.some(function(kX){var C6; return(kX==null?void 0:(C6=kX.adSlotMetadata)==null?void 0:C6.slotType)==="SLOT_TYPE_IN_PLAYER"}),e=m.some(function(kX){var C6,IK; return(kX==null?void 0:(C6=kX.adSlotMetadata)==null?void 0:C6.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(kX==null?void 0:(IK=kX.adSlotMetadata)==null?void 0:IK.slotType)==="SLOT_TYPE_ABOVE_FEED"}),d=m.some(function(kX){var C6; return(kX==null?void 0:(C6=kX.adSlotMetadata)==null?void 0:C6.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); m=m.some(function(kX){var C6;return(kX==null?void 0:(C6=kX.adSlotMetadata)==null?void 0:C6.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(X||l||M||e||d||m)G=myQ(p,W,y,J,O,S.ME.get(),S.loadPolicy,F,S.AX.get(),S.j.get(),M,E,Y,G,K),G instanceof D?GI(G,void 0,void 0,{contentCpn:J}):T.push.apply(T,g.x(G));G=g.R(W);for(m=G.next();!m.done;m=G.next())m=m.value,l=bM7(S,F,m,J,B,E,X,y,O,Y,p,S.AX.get().W.J().experiments.mU("html5_enable_triggering_cuepoint_for_slot")?K:void 0),l instanceof D?GI(l,void 0,void 0,{renderer:m.renderer,config:m.config.adPlacementConfig,kind:m.config.adPlacementConfig.kind,contentCpn:J,daiEnabled:E}):T.push.apply(T, g.x(l));oB7(S.AX.get())||(B=reD(S,q,J,y,O,F),T.push.apply(T,g.x(B)));if(S.B===null||E&&!y.Z4){var t,h,mD;S=y.Hv&&W.length===1&&((t=W[0].config)==null?void 0:(h=t.adPlacementConfig)==null?void 0:h.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((mD=W[0].renderer)==null?void 0:mD.adBreakServiceRenderer);if(!T.length&&!S){var SO,aK,EP,qP;GI("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:J,"first APR kind":(SO=W[0])==null?void 0: (aK=SO.config)==null?void 0:(EP=aK.adPlacementConfig)==null?void 0:EP.kind,renderer:(qP=W[0])==null?void 0:qP.renderer})}return T}t=a.filter(mL);T.push.apply(T,g.x(pOP(F,t,S.N.get(),S.B,J,X)));if(!T.length){var JG,jO,D6,zg;GI("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:J,daiEnabled:E.toString(),"first APR kind":(JG=W[0])==null?void 0:(jO=JG.config)==null?void 0:(D6=jO.adPlacementConfig)==null?void 0:D6.kind,renderer:(zg=W[0])==null? void 0:zg.renderer})}return T}; reD=function(S,W,m,a,J,B){function E(p){return cR(S.ME.get(),p)} var y=[];W=g.R(W);for(var Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var G=Y.renderer,K=G.sandwichedLinearAdRenderer,T=G.linearAdSequenceRenderer;K&&Ae6(K)?(GI("Found AdNotify with SandwichedLinearAdRenderer"),T=g.n(K.adVideoStart,Wk),K=g.n(K.linearAd,E4),eM(B,G,Y.config.adPlacementConfig.kind),G=void 0,T=I1G((G=T)==null?void 0:G.layout.layoutId,S.N.get(),S.C.get(),Y.config.adPlacementConfig,Y.adSlotLoggingData,K,m,a,E,J,S.loadPolicy,S.AX.get(),S.ME.get()),T instanceof D?GI(T):y.push.apply(y,g.x(T))): T&&(!T.adLayoutMetadata&&ZMP(T)||T.adLayoutMetadata&&Ny6(T))&&(GI("Found AdNotify with LinearAdSequenceRenderer"),eM(B,G,Y.config.adPlacementConfig.kind),G=void 0,K=ejP((G=g.n(T.adStart,Wk))==null?void 0:G.layout.layoutId,S.N.get(),S.C.get(),Y.config.adPlacementConfig,Y.adSlotLoggingData,T.linearAds,oi(T.adLayoutMetadata)?T.adLayoutMetadata:void 0,m,a,E,J,S.loadPolicy,S.AX.get()),K instanceof D?GI(K):y.push.apply(y,g.x(K)))}return y}; bM7=function(S,W,m,a,J,B,E,y,Y,G,K,T){function p(M){return cR(S.ME.get(),M)} var q=m.renderer,F=m.config.adPlacementConfig,O=F.kind,X=m.adSlotLoggingData,l=y.Z4&&O==="AD_PLACEMENT_KIND_START";l=B&&!l;if(q.adsEngagementPanelRenderer!=null)return iB(W,m.elementId,O,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.adsEngagementPanelRenderer;M=cR(S.ME.get(),M);return al(h,mD,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new vS(SO),e,d,SO.impressionPings,M,q.adsEngagementPanelRenderer.adLayoutLoggingData,t)}),[]; if(q.adsEngagementPanelLayoutViewModel)return iB(W,m.elementId,O,q.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,q.adsEngagementPanelLayoutViewModel.adVideoId,q.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.adsEngagementPanelLayoutViewModel;M=cR(S.ME.get(),M);return Jd(h,mD,"LAYOUT_TYPE_PANEL",new HS(SO),e,d,M,q.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,t)}),[]; if(q.actionCompanionAdRenderer!=null){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return YsQ(S.N.get(),S.B,S.C.get(),q.actionCompanionAdRenderer,F,X,a,p);iB(W,m.elementId,O,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.actionCompanionAdRenderer;M=cR(S.ME.get(),M);return al(h,mD,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Qs(SO),e,d,SO.impressionPings,M,q.actionCompanionAdRenderer.adLayoutLoggingData,t)})}else if(q.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(q.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return GK6(S.N.get(),S.B,S.C.get(),q.topBannerImageTextIconButtonedLayoutViewModel,F,X,a,p); iB(W,m.elementId,O,q.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,q.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,q.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.topBannerImageTextIconButtonedLayoutViewModel;M=cR(S.ME.get(),M);return Jd(h,mD,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new X2(SO),e,d,M,q.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,t)})}else if(q.imageCompanionAdRenderer)iB(W, m.elementId,O,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.imageCompanionAdRenderer; M=cR(S.ME.get(),M);return al(h,mD,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new LM(SO),e,d,SO.impressionPings,M,q.imageCompanionAdRenderer.adLayoutLoggingData,t)}); else if(q.bannerImageLayoutViewModel)iB(W,m.elementId,O,q.bannerImageLayoutViewModel.isContentVideoCompanion,q.bannerImageLayoutViewModel.adVideoId,q.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.bannerImageLayoutViewModel;M=cR(S.ME.get(),M);return Jd(h,mD,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Rt(SO),e,d,M,q.bannerImageLayoutViewModel.adLayoutLoggingData,t)}); else if(q.shoppingCompanionCarouselRenderer)iB(W,m.elementId,O,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,F,X,function(M,e,d,t){var h=S.C.get(),mD=M.slotId,SO=q.shoppingCompanionCarouselRenderer;M=cR(S.ME.get(),M);return al(h,mD,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new e_(SO),e,d,SO.impressionPings,M,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,t)}); else if(q.adBreakServiceRenderer){if(!z16(m))return[];if(O==="AD_PLACEMENT_KIND_PAUSE")return EQQ(S.N.get(),F,X,m.renderer.adBreakServiceRenderer,a);if(O!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&O!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return BF6(S.N.get(),F,X,m.renderer.adBreakServiceRenderer,a,J,B);y.Hv||GI("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:O,adPlacementConfig:F,daiEnabledForContentVideo:String(B),isServedFromLiveInfra:String(y.Hv),clientPlaybackNonce:y.clientPlaybackNonce}); if(O==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!S.tX)return new D("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!S.rU)return new D("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");S.rU.Ow({adPlacementRenderer:m,contentCpn:a,O$:J});J=S.tX.get().getCurrentTimeSec(1,!1);return Cg6(S.N.get(),m.renderer.adBreakServiceRenderer,F,J,a,X,B)}if(!S.nJ)return new D("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); S.nJ.Ow({adPlacementRenderer:m,contentCpn:a,O$:J})}else{if(q.clientForecastingAdRenderer)return gB7(S.N.get(),S.C.get(),F,X,q.clientForecastingAdRenderer,a,J,p);if(q.invideoOverlayAdRenderer)return XSl(S.N.get(),S.C.get(),F,X,q.invideoOverlayAdRenderer,a,J,p);if(q.instreamAdPlayerOverlayRenderer)return jtP(S.N.get(),S.C.get(),F,X,q.instreamAdPlayerOverlayRenderer,a,p);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&l)return LeO(S.N.get(),S.C.get(),m,a,p,G,!S.AX.get().W.J().T("html5_override_ad_video_length_killswitch"), T);if(q.linearAdSequenceRenderer&&!l){if(E)return[];eM(W,q,O);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!rY7(q.linearAdSequenceRenderer))return new D("Received invalid LinearAdSequenceRenderer.")}else if(q.linearAdSequenceRenderer.linearAds==null)return new D("Received invalid LinearAdSequenceRenderer.");if(g.n(q.linearAdSequenceRenderer.adStart,Wk)){GI("Found AdNotify in LinearAdSequenceRenderer");m=g.n(q.linearAdSequenceRenderer.adStart,Wk);if(!ULX(m))return new D("Invalid AdMessageRenderer."); B=q.linearAdSequenceRenderer.linearAds;return xyK(S.j.get(),S.N.get(),S.C.get(),S.ME.get(),F,X,m,oi(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,B,a,J,y,p,Y,S.loadPolicy,S.AX.get())}return fRX(S.N.get(),S.C.get(),F,X,q.linearAdSequenceRenderer.linearAds,oi(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,a,J,y,p,Y,S.loadPolicy,S.AX.get(),K)}if(!q.remoteSlotsRenderer||B){if(q.instreamVideoAdRenderer&& !l){if(E)return[];eM(W,q,O);return h1c(S.N.get(),S.C.get(),F,X,q.instreamVideoAdRenderer,a,J,y,p,Y,S.loadPolicy,S.AX.get(),S.ME.get(),K)}if(q.instreamSurveyAdRenderer)return t_l(S.N.get(),S.C.get(),q.instreamSurveyAdRenderer,F,X,a,p,i1(S.AX.get(),"supports_multi_step_on_desktop"));if(q.sandwichedLinearAdRenderer!=null)return CUX(q.sandwichedLinearAdRenderer)?g.n(q.sandwichedLinearAdRenderer.adVideoStart,Wk)?(GI("Found AdNotify in SandwichedLinearAdRenderer"),m=g.n(q.sandwichedLinearAdRenderer.adVideoStart, Wk),ULX(m)?(B=g.n(q.sandwichedLinearAdRenderer.linearAd,E4))?Pql(m,B,F,S.j.get(),S.N.get(),S.C.get(),S.ME.get(),X,a,J,y,p,Y,S.loadPolicy,S.AX.get()):new D("Missing IVAR from Sandwich"):new D("Invalid AdMessageRenderer.")):fRX(S.N.get(),S.C.get(),F,X,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,a,J,y,p,Y,S.loadPolicy,S.AX.get()):new D("Received invalid SandwichedLinearAdRenderer.");if(q.videoAdTrackingRenderer!=null)return stc(S.N.get(),S.C.get(),q.videoAdTrackingRenderer, F,X,a,J,y.rE,p)}}return[]}; Bk=function(S,W,m,a,J,B,E,y){g.A.call(this);var Y=this;this.N=S;this.B=W;this.h1=a;this.tX=J;this.AX=B;this.n_=E;this.Db=y;this.C=null;m.get().addListener(this);this.addOnDisposeCallback(function(){m.TN()||m.get().removeListener(Y)}); a.get().addListener(this);this.addOnDisposeCallback(function(){a.TN()||a.get().removeListener(Y)})}; yq=function(S,W,m){var a=S.tX.get().getCurrentTimeSec(1,!1);S.AX.get().W.J().rd()&&DY(S.n_.get(),"sdai","onopp.1;evt."+m.event+";start."+m.startSecs.toFixed(3)+";d."+m.Gk.toFixed(3));wE(S.N.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var J=S.B.get(),B=W.adPlacementRenderer.renderer.adBreakServiceRenderer,E=W.contentCpn,y=W.adPlacementRenderer.adSlotLoggingData;E8(S.AX.get());var Y=S.n_;var G=J.AX.get();G=g.Db(G.W.J().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var K=J.AX.get();var T=g.Db(K.W.J().experiments,"min_prefetch_offset_sec_for_livestream_optimization");K=m.startSecs*1E3;K={gS:new Qt(K,K+m.Gk*1E3),Fs:!1,cueProcessedMs:a*1E3};var p=m.startSecs+m.Gk;if(a===0)K.nE=new Qt(0,p*1E3);else{T=m.startSecs-T;var q=T-a;K.nE=q<=0?new Qt(T*1E3,p*1E3):new Qt(Math.floor(a+Math.random()*Math.min(q,G))*1E3,p*1E3)}B=U4(J,B,E,K,y,[new Y_(m)]);zB(J.AX.get())&&DY(Y.get(),"abrsm","cpi."+m.identifier+";cps."+m.startSecs+";cpd."+m.Gk+";cts."+a+";rbf."+K.nE.start);Y.get().W.Kj(m.startSecs- a,K.nE.start/1E3-a);return[B]})}; GB=function(S){var W,m=(W=Zb(S.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!m)return null;W=Zb(S.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var a=S.layoutId,J=Zb(S.clientMetadata,"metadata_type_content_cpn"),B=Zb(S.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E=Zb(S.clientMetadata,"metadata_type_player_overlay_layout_renderer"),y=Zb(S.clientMetadata,"metadata_type_player_underlay_renderer"),Y=Zb(S.clientMetadata, "metadata_type_ad_placement_config"),G=Zb(S.clientMetadata,"metadata_type_video_length_seconds");var K=k_(S.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Zb(S.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):k_(S.clientMetadata,"metadata_type_layout_enter_ms")&&k_(S.clientMetadata,"metadata_type_layout_exit_ms")?(Zb(S.clientMetadata,"metadata_type_layout_exit_ms")-Zb(S.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{nU:a,contentCpn:J,t8:m,jV:W,instreamAdPlayerOverlayRenderer:B, playerOverlayLayoutRenderer:E,instreamAdPlayerUnderlayRenderer:y,adPlacementConfig:Y,videoLengthSeconds:G,qM:K,inPlayerLayoutId:Zb(S.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Zb(S.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; DyG=function(S,W){return cej(S,W)}; wSO=function(S,W){W=cej(S,W);if(!W)return null;var m;W.qM=(m=Zb(S.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:m.adBreakRemainingLengthSeconds;return W}; cej=function(S,W){var m,a=(m=Zb(S.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:m.current;if(!a)return null;m=bUO(S,W);return{hB:NT6(S,W),adPlacementConfig:Zb(S.clientMetadata,"metadata_type_ad_placement_config"),U7:m,contentCpn:Zb(S.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Zb(S.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Zb(S.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Zb(S.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,qM:void 0,t8:a,nU:S.layoutId,videoLengthSeconds:Zb(S.clientMetadata,"metadata_type_video_length_seconds")}}; Kq=function(S,W,m,a,J,B,E,y,Y){g.A.call(this);this.j=S;this.V=W;this.X=m;this.B=a;this.C=J;this.N=B;this.ME=E;this.AX=y;this.JX=Y;this.aU=!0}; S$l=function(S,W,m){return Zc7(S.C.get(),W.contentCpn,W.nU,function(a){return NFO(S.N.get(),a.slotId,m,W.adPlacementConfig,W.nU,cR(S.ME.get(),a))})}; TB=function(S,W,m,a,J,B,E){g.A.call(this);this.N=S;this.C=W;this.B=m;this.j=a;this.JX=J;this.tX=B;this.Oc=E}; qC=function(S){g.A.call(this);this.C=S}; wE=function(S,W,m,a){S.C().Yt(W,a);m=m();S=S.C();S.Jv.C("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,a,m);W=g.R(m);for(m=W.next();!m.done;m=W.next())a:{a=S;m=m.value;nt(a.Jv,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",m);nt(a.Jv,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",m);try{var J=a.C;if(g.C$(m.slotId))throw new D("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(zS(J,m))throw new D("Duplicate registration for slot.",{slotId:m.slotId,slotEntryTriggerType:m.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!J.Wr.Aj.has(m.slotType))throw new D("No fulfillment adapter factory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!J.Wr.pj.has(m.slotType))throw new D("No SlotAdapterFactory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");XT(J,"TRIGGER_CATEGORY_SLOT_ENTRY",m.slotEntryTrigger?[m.slotEntryTrigger]:[]);XT(J,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", m.slotFulfillmentTriggers);XT(J,"TRIGGER_CATEGORY_SLOT_EXPIRATION",m.slotExpirationTriggers);var B=a.C,E=m.slotType+"_"+m.slotPhysicalPosition,y=u1(B,E);if(zS(B,m))throw new D("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");y.set(m.slotId,new $zX(m));B.C.set(E,y)}catch(SO){SO instanceof D&&SO.mY?(aI(a.Jv,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",SO.mY,m),GI(SO,m,void 0,void 0,SO.Jx)):(aI(a.Jv,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", m),GI(SO,m));break a}zS(a.C,m).V=!0;try{var Y=a.C,G=zS(Y,m),K=m.slotEntryTrigger,T=Y.Wr.WA.get(K.triggerType);T&&(T.zs("TRIGGER_CATEGORY_SLOT_ENTRY",K,m,null),G.q2.set(K.triggerId,T));for(var p=g.R(m.slotFulfillmentTriggers),q=p.next();!q.done;q=p.next()){var F=q.value,O=Y.Wr.WA.get(F.triggerType);O&&(O.zs("TRIGGER_CATEGORY_SLOT_FULFILLMENT",F,m,null),G.N2.set(F.triggerId,O))}for(var X=g.R(m.slotExpirationTriggers),l=X.next();!l.done;l=X.next()){var M=l.value,e=Y.Wr.WA.get(M.triggerType);e&&(e.zs("TRIGGER_CATEGORY_SLOT_EXPIRATION", M,m,null),G.bY.set(M.triggerId,e))}var d=Y.Wr.Aj.get(m.slotType).get().build(Y.B,m);G.Z=d;var t=Y.Wr.pj.get(m.slotType).get().build(Y.X,m);t.init();G.N=t}catch(SO){SO instanceof D&&SO.mY?(aI(a.Jv,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",SO.mY,m),GI(SO,m,void 0,void 0,SO.Jx)):(aI(a.Jv,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",m),GI(SO,m));JD(a,m,!0);break a}nt(a.Jv,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",m);a.C.pC(m);for(var h=g.R(a.N),mD=h.next();!mD.done;mD= h.next())mD.value.pC(m);Kt(a,m)}}; pq=function(S,W,m,a,J){g.A.call(this);var B=this;this.N=S;this.B=W;this.wA=m;this.context=J;this.C=new Map;a.get().addListener(this);this.addOnDisposeCallback(function(){a.TN()||a.get().removeListener(B)})}; wz7=function(S,W){var m=0x8000000000000,a=0,J=0x8000000000000;var B=g.R(W.slotFulfillmentTriggers);for(var E=B.next();!E.done;E=B.next())if(E=E.value,E instanceof Lb){var y=E.C.start;m=Math.min(m,y);a=Math.max(a,E.C.end);E.visible&&(J=Math.min(J,y))}else GI("Found unexpected fulfillment trigger for throttled slot.",W,null,{fulfillmentTrigger:E});B=m;J=J<0x8000000000000&&m0&&FT(S.V(),m)}; e4=function(S,W,m,a,J){for(var B=[],E=g.R(S.Vc.values()),y=E.next();!y.done;y=E.next()){var Y=y=y.value,G=Y.trigger;Y=Y.slot;if(G.triggerType===W){if(G instanceof ly||G instanceof MF||G instanceof Ri){if(J&&G.breakDurationMs!==m)continue;if(!J&&G.breakDurationMs===m)continue;if(a.has(Y.slotId))continue}B.push(y)}}B.length>0&&FT(S.V(),B)}; KYc=function(S,W){W=(W.Gk+1)*1E3;var m=void 0;S=g.R(S.Vc.values());for(var a=S.next();!a.done;a=S.next()){var J=a.value;a=J.trigger;J=J.slot;a instanceof ly&&a.breakDurationMs<=W&&(!m||a.breakDurationMs>m.trigger.breakDurationMs)&&(m={slot:J,trigger:a})}return m}; TiX=function(S){S=S.adPlacementRenderer.config.adPlacementConfig;if(!S.prefetchModeConfig||!S.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;S=Number(S.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(S)||S<=0?0:Math.floor(Math.random()*S)}; q$X=function(S){S=S.adPlacementRenderer.config.adPlacementConfig;if(S.prefetchModeConfig&&S.prefetchModeConfig.cacheFetchRefreshDurationMs&&(S=Number(S.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(S)||S<=0)))return S}; xT=function(S){S.C=null;S.Vc.clear();S.N&&S.N.stop();S.X&&S.X.stop();var W;(W=S.B)==null||W.stop();delete S.B}; yF_=function(S){var W=[];S=g.R(S.Vc.values());for(var m=S.next();!m.done;m=S.next())m=m.value.trigger,m instanceof ly&&W.push(m.breakDurationMs);return W}; iL=function(S){g.A.call(this);this.B=S;this.aU=!0;this.Vc=new Map;this.C=new Map;this.N=new Map}; pR6=function(S,W){var m=[];if(W=S.C.get(W.layoutId)){W=g.R(W);for(var a=W.next();!a.done;a=W.next())(a=S.N.get(a.value.triggerId))&&m.push(a)}return m}; dB=function(){g.A.call(this);this.Vc=new Map}; LP=function(S){switch(S){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"}}; FYK=function(S){switch(S){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; VwQ=function(S,W){var m={slotId:ST(W,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],DQ:"surface",clientMetadata:new AF([])},a=Object,J=a.assign;W=dE(W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",m.slotId);W={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Bv:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], DQ:"surface",clientMetadata:new AF([]),K3:Xpl(!1,m.slotId,m.slotType,m.slotPhysicalPosition,m.DQ,m.slotEntryTrigger,m.slotFulfillmentTriggers,m.slotExpirationTriggers,W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return J.call(a,{},S,{IHX:!0,slot:m,layout:W})}; JAP=function(S,W,m,a){var J=S.kind;a=a?!1:!S.hideCueRangeMarker;switch(J){case "AD_PLACEMENT_KIND_START":return a={gS:new Qt(-0x8000000000000,-0x8000000000000),Fs:a},m!=null&&(a.nE=new Qt(-0x8000000000000,-0x8000000000000)),a;case "AD_PLACEMENT_KIND_END":return a={gS:new Qt(0x7ffffffffffff,0x8000000000000),Fs:a},m!=null&&(a.nE=new Qt(Math.max(0,W-m),0x8000000000000)),a;case "AD_PLACEMENT_KIND_MILLISECONDS":J=S.adTimeOffset;J.offsetStartMilliseconds||GI("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); J.offsetEndMilliseconds||GI("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");S=Number(J.offsetStartMilliseconds);J=Number(J.offsetEndMilliseconds);J===-1&&(J=W);if(Number.isNaN(S)||Number.isNaN(J)||S>J)return new D("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:S,offsetEndMs:J},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",J===W&&S-500<=J);a={gS:new Qt(S,J),Fs:a};if(m!=null){S=Math.max(0,S-m);if(S===J)return a;a.nE=new Qt(S,J)}return a; default:return new D("AdPlacementKind not supported in convertToRange.",{kind:J,adPlacementConfig:S})}}; n_P=function(S){if(!S||!S.adPlacements&&!S.adSlots)return!1;for(var W=g.R(S.adPlacements||[]),m=W.next();!m.done;m=W.next())if(m=m.value)if(m=m.adPlacementRenderer,m!=null&&(m.config&&m.config.adPlacementConfig&&m.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;S=g.R(S.adSlots||[]);for(W=S.next();!W.done;W=S.next()){var a=m=void 0;if(((m=g.n(W.value,uB))==null?void 0:(a=m.adSlotMetadata)==null?void 0:a.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Il=function(S){this.AX=S;this.N=new Map;this.C=new Map;this.B=new Map}; ST=function(S,W){if(Pk(S.AX.get())){var m=S.N.get(W)||0;m++;S.N.set(W,m);return W+"_"+m}return g.pz(16)}; dE=function(S,W,m){if(Pk(S.AX.get())){var a=S.C.get(W)||0;a++;S.C.set(W,a);return m+"_"+W+"_"+a}return g.pz(16)}; Cv=function(S,W){if(Pk(S.AX.get())){var m=S.B.get(W)||0;m++;S.B.set(W,m);return W+"_"+m}return g.pz(16)}; sXP=function(S){var W=[new Sw(S.nU),new BR(S.t8),new dy(S.adPlacementConfig),new Ks(S.videoLengthSeconds),new HR(S.qM)];S.instreamAdPlayerOverlayRenderer&&W.push(new te(S.instreamAdPlayerOverlayRenderer));S.playerOverlayLayoutRenderer&&W.push(new Ae(S.playerOverlayLayoutRenderer));S.jV&&W.push(new kB(S.jV));return W}; utX=function(S,W,m,a,J,B){S=m.inPlayerLayoutId?m.inPlayerLayoutId:dE(B,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",S);var E,y,Y=m.instreamAdPlayerOverlayRenderer?(E=m.instreamAdPlayerOverlayRenderer)==null?void 0:E.adLayoutLoggingData:(y=m.playerOverlayLayoutRenderer)==null?void 0:y.adLayoutLoggingData;E={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",DQ:W};return{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Bv:new Map,layoutExitNormalTriggers:[new vi(function(G){return Cv(B, G)},m.nU)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:W,clientMetadata:a,K3:J(E),adLayoutLoggingData:Y}}; fq=function(S){var W=this;this.N=S;this.C=function(m){return Cv(W.N.get(),m)}}; NFO=function(S,W,m,a,J,B){m=new AF([new ZR(m),new dy(a)]);W=dE(S.N.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W);a={layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",DQ:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Bv:new Map,layoutExitNormalTriggers:[new vi(function(E){return Cv(S.N.get(),E)},J)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:m,K3:B(a),adLayoutLoggingData:void 0}}; hf=function(S,W,m,a,J){var B=sXP(a);return utX(W,m,a,new AF(B),J,S.N.get())}; g_l=function(S,W,m,a,J){var B=sXP(a);B.push(new xB(a.hB));B.push(new ig(a.U7));return utX(W,m,a,new AF(B),J,S.N.get())}; al=function(S,W,m,a,J,B,E,y,Y,G){W=dE(S.N.get(),m,W);var K={layoutId:W,layoutType:m,DQ:"core"},T=new Map;E&&T.set("impression",E);E=[new eN(S.C,J,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];G&&E.push(new Xw(S.C,G,["normal"]));return{layoutId:W,layoutType:m,Bv:T,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([a,new dy(B),new Sw(J)]),K3:y(K),adLayoutLoggingData:Y}}; Jd=function(S,W,m,a,J,B,E,y,Y){W=dE(S.N.get(),m,W);var G={layoutId:W,layoutType:m,DQ:"core"},K=[new eN(S.C,J,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Y&&K.push(new Xw(S.C,Y,["normal"]));return{layoutId:W,layoutType:m,Bv:new Map,layoutExitNormalTriggers:K,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([a,new dy(B),new Sw(J)]),K3:E(G),adLayoutLoggingData:y}}; Do=function(S,W,m){var a=[];a.push(new xW(S.C,m));W&&a.push(W);return a}; cG=function(S,W,m,a,J,B,E){var y={layoutId:W,layoutType:m,DQ:"core"};return{layoutId:W,layoutType:m,Bv:new Map,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[new gZ(S.C,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new UJ(a),new dy(J)]),K3:B(y),adLayoutLoggingData:a.adLayoutLoggingData}}; PG=function(S,W,m,a,J,B,E,y){var Y={layoutId:W,layoutType:B,DQ:"core"};return{layoutId:W,layoutType:B,Bv:new Map,layoutExitNormalTriggers:[new vi(S.C,m)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new dy(a)].concat(g.x(E))),K3:J(Y),adLayoutLoggingData:y}}; vBX=function(S,W,m,a,J,B,E,y,Y,G,K,T){S=w5(S,W,m,a,J,B,E,y,K,T);W=S.x5;m=new mY(S.xm);a=S.layoutExitSkipTriggers;Y>0&&(W.push(m),W.push(new fM(Y)),a=[]);W.push(new PS(G));return{er:{layoutId:S.layoutId,layoutType:S.layoutType,Bv:S.Bv,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:S.DQ,clientMetadata:new AF(W),K3:S.K3,adLayoutLoggingData:S.adLayoutLoggingData},U3:a,iZ:S.layoutExitMuteTriggers, C0:S.layoutExitUserInputSubmittedTriggers,o0:S.layoutExitUserCancelledTriggers,J1:S.J1}}; Uyj=function(S,W,m,a,J,B,E,y,Y){W=w5(S,W,m,a,J,new Map,B,function(G){return E(G,y)}); S=new Zd(S.C,W.xm);m=new mY(W.xm);Y=new PS(Y);return{er:{layoutId:W.layoutId,layoutType:W.layoutType,Bv:W.Bv,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:W.DQ,clientMetadata:new AF([].concat(g.x(W.x5),[m,Y])),K3:W.K3,adLayoutLoggingData:W.adLayoutLoggingData},U3:W.layoutExitSkipTriggers,iZ:W.layoutExitMuteTriggers,C0:[].concat(g.x(W.layoutExitUserInputSubmittedTriggers),[S]),o0:W.layoutExitUserCancelledTriggers, J1:W.J1}}; w5=function(S,W,m,a,J,B,E,y,Y,G){W=dE(S.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",W);var K={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",DQ:"adapter"};y=y(W);var T=Zb(y.clientMetadata,"metadata_type_fulfilled_layout");T||GI("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var p=T?T.layoutId:"";m=[new dy(m),new lT(a),new Ls(J)];T&&m.push(new aX(T.layoutType));G&&m.push(new ns(G));return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bv:B,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new Pi(S.C,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"adapter",x5:m,K3:E(K),adLayoutLoggingData:Y,J1:y,xm:p}}; t3K=function(S,W,m,a,J,B,E,y,Y,G,K){S=OsG(S,W,"core",m,a,J,B,E,y,Y,G,void 0,K);return{layoutId:S.layoutId,layoutType:S.layoutType,Bv:S.Bv,layoutExitNormalTriggers:S.layoutExitNormalTriggers,layoutExitSkipTriggers:S.layoutExitSkipTriggers,layoutExitMuteTriggers:S.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:S.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:S.layoutExitUserCancelledTriggers,DQ:S.DQ,clientMetadata:new AF(S.ix),K3:S.K3,adLayoutLoggingData:S.adLayoutLoggingData}}; $yD=function(S,W,m,a,J,B,E,y,Y,G,K,T,p){W=OsG(S,W,"adapter",m,a,J,B,E,y,Y,K,T,p);a=W.layoutExitSkipTriggers;J=W.ix;m.adPodSkipTarget&&m.adPodSkipTarget>0&&(J.push(G),J.push(new fM(m.adPodSkipTarget)),a=[]);J.push(new PS(y.adPodIndex));m.isCritical&&(a=[new Xw(S.C,W.layoutId,["error"])].concat(g.x(a)));return{er:{layoutId:W.layoutId,layoutType:W.layoutType,Bv:W.Bv,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], DQ:W.DQ,clientMetadata:new AF(J),K3:W.K3,adLayoutLoggingData:W.adLayoutLoggingData},U3:a,iZ:W.layoutExitMuteTriggers,C0:W.layoutExitUserInputSubmittedTriggers,o0:W.layoutExitUserCancelledTriggers}}; OsG=function(S,W,m,a,J,B,E,y,Y,G,K,T,p){var q={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",DQ:m};J=[new dy(J),new It(Y),new $B(a.externalVideoId),new he(y),new Ls({impressionCommands:a.impressionCommands,abandonCommands:a.onAbandonCommands,completeCommands:a.completeCommands,progressCommands:a.adVideoProgressCommands}),new Tm(B),new E$({current:null}),new Ks(E)];(B=a.playerOverlay.instreamAdPlayerOverlayRenderer)&&J.push(new te(B));(E=a.playerOverlay.playerOverlayLayoutRenderer)&&J.push(new Ae(E)); T&&J.push(new qp(T));(T=a.playerUnderlay)&&J.push(new ZR(T));y=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER");T=(T=B?B.elementId:E==null?void 0:E.layoutId)?T:dE(S.N.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y);J.push(new mY(T));J.push(new JF(y));J.push(new ns(Y.adPodIndex));a.adNextParams&&J.push(new lg(a.adNextParams));a.shrunkenPlayerBytesConfig&&J.push(new ot(a.shrunkenPlayerBytesConfig));a.clickthroughEndpoint&&J.push(new My(a.clickthroughEndpoint));a.legacyInfoCardVastExtension&&J.push(new Mp(a.legacyInfoCardVastExtension)); a.sodarExtensionData&&J.push(new ps(a.sodarExtensionData));K&&J.push(new vR(K));J.push(new x_(Yu(a.pings)));Y=Gq(a.pings);if(p){a:{p=g.R(p);for(K=p.next();!K.done;K=p.next())if(K=K.value,K.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(B=g.n(K.fulfillmentContent.fulfilledLayout,nv))&&(B=g.n(B.renderingContent,FM))&&B.associatedPlayerBytesLayoutId===W){p=K;break a}p=void 0}p&&J.push(new Ny(p))}return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",Bv:Y,layoutExitNormalTriggers:[new iy(S.C,W)],layoutExitSkipTriggers:a.skipOffsetMilliseconds? [new Pi(S.C,T)]:[],layoutExitMuteTriggers:[new Pi(S.C,T)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:m,ix:J,K3:G(q),adLayoutLoggingData:a.adLayoutLoggingData}}; e1K=function(S,W,m,a,J,B,E,y,Y){a.every(function(K){return $_(K,[],["LAYOUT_TYPE_MEDIA"])})||GI("Unexpect subLayout type for DAI composite layout"); W=dE(S.N.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W);var G={layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",DQ:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bv:new Map,layoutExitNormalTriggers:[new Hi(S.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],DQ:"core",clientMetadata:new AF([new Ft(m),new VN(y),new yN(a),new dy(J),new O$(B),new s$({}),new di(Y)]),K3:E(G)}}; l1X=function(S){return S!=null}; kT=function(S,W,m){var a=this;this.N=S;this.B=W;this.AX=m;this.C=function(J){return Cv(a.N.get(),J)}}; Cg6=function(S,W,m,a,J,B,E){if(!m.prefetchModeConfig)return new D("AdPlacementConfig for Live Prefetch is missing prefetch_config");m=m.prefetchModeConfig;a*=1E3;var y=[];if(!m.breakLengthMs)return new D("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var Y=g.R(m.breakLengthMs),G=Y.next();!G.done;G=Y.next())if(G=G.value,Number(G)>0){var K=a+Number(m.startTimeOffsetMs),T=K+Number(m.cacheFetchSmearingDurationMs);G={gS:new Qt(T,T+Number(G)),Fs:!1,nE:new Qt(Math.floor(K+Math.random()* Number(m.cacheFetchSmearingDurationMs)),T),cueProcessedMs:a?a:K};K=[];K.push(new fs({}));T=[];T.push(new Ii(S.C));T.push(new nml(S.C));E&&K.push(new s$({}));y.push(U4(S,W,J,G,B,K,T))}return y}; var zQD=function(S,W,m,a,J,B){return OP[z[7]](this,34,S,W,m,a,J,B)}; U4=function(S,W,m,a,J,B,E){B=B===void 0?[]:B;var y=ST(S.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");E||(E=[],a.nE&&a.nE.start!==a.gS.start&&E.push(new Lb(S.C,m,new Qt(a.nE.start,a.gS.start),!1)),E.push(new Lb(S.C,m,new Qt(a.gS.start,a.gS.end),a.Fs)));a={getAdBreakUrl:W.getAdBreakUrl,uS:a.gS.start,eJ:a.gS.end,cueProcessedMs:a.cueProcessedMs};W=new hg(S.C,y);B=[new QN(a)].concat(g.x(B));return{slotId:y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:E, slotExpirationTriggers:[new dZ(S.C,m),new kW(S.C,y),new $W(S.C,y)],DQ:"core",clientMetadata:new AF(B),adSlotLoggingData:J}}; QXD=function(S,W,m){var a=[];m=g.R(m);for(var J=m.next();!J.done;J=m.next())a.push(jXK(S,W,J.value));return a}; jXK=function(S,W,m){return m.triggeringSlotId!=null&&m.triggeringSlotId===S?m.clone(W):m}; V3P=function(S,W,m,a,J){return XRD(S,W,m,a,J)}; HM6=function(S,W,m,a){var J=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER");return XRD(S,J,W,m,a)}; XRD=function(S,W,m,a,J){var B=new QQ(S.C,m),E=[new fb(S.C,W)];S=[new kW(S.C,W),new dZ(S.C,a)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(J({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:S},m))]),adSlotLoggingData:void 0}}; hj6=function(S,W,m,a,J,B){var E=ST(S.N.get(),"SLOT_TYPE_PLAYER_BYTES"),y=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER"),Y=dE(S.N.get(),"LAYOUT_TYPE_SURVEY",y);a=$T(S,W,m,a);var G=[new fb(S.C,E)];m=[new kW(S.C,E),new dZ(S.C,m),new gZ(S.C,Y)];if(a instanceof D)return a;B=B({slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:a,slotFulfillmentTriggers:G,slotExpirationTriggers:m},{slotId:y,layoutId:Y});y=B.b3q;return[{slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:a,slotFulfillmentTriggers:G,slotExpirationTriggers:m,DQ:"core",clientMetadata:new AF([new jw(B.uzY),new PR({lF:S.lF(W)})]),adSlotLoggingData:J},y]}; AAD=function(S,W,m,a,J){J=J?J:ST(S.N.get(),"SLOT_TYPE_IN_PLAYER");m=new QQ(S.C,m);var B=[new fb(S.C,J)];S=[new dZ(S.C,W),new kW(S.C,J)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:B,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(a({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:m,slotFulfillmentTriggers:B,slotExpirationTriggers:S}))])}}; Zc7=function(S,W,m,a){var J=ST(S.N.get(),"SLOT_TYPE_PLAYER_UNDERLAY");m=new QQ(S.C,m);var B=[new fb(S.C,J)];S=[new dZ(S.C,W),new kW(S.C,J)];return{slotId:J,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:B,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(a({slotId:J,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:m,slotFulfillmentTriggers:B,slotExpirationTriggers:S}))])}}; d96=function(S,W,m,a,J,B,E){var y=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER"),Y=dE(S.N.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y);a=v_6(S,a,B,E,Y);if(a instanceof D)return a;E=[new fb(S.C,y)];J=[new dZ(S.C,B),new fb(S.C,J),new Ag(S.C,J)];m=cR(m,{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:a,slotFulfillmentTriggers:E,slotExpirationTriggers:J});S=S.B.get();B={layoutId:Y,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",DQ:"core"};W={layoutId:Y,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Bv:new Map,layoutExitNormalTriggers:[new vmG(S.C,Y,W.durationMs)],layoutExitSkipTriggers:[new lEj(S.C,Y,W.durationMs)],layoutExitUserCancelledTriggers:[new HG6(S.C,Y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DQ:"core",clientMetadata:new AF([new U$(W)]),K3:m(B)};return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:a,slotFulfillmentTriggers:E,slotExpirationTriggers:J,clientMetadata:new AF([new jw(W)])}}; Qtj=function(S,W,m,a,J,B){W=$T(S,W,m,a);if(W instanceof D)return W;var E=W instanceof Lb?new jPK(S.C,m,W.C):null;a=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER");var y=[new fb(S.C,a)];S=[new dZ(S.C,m),new kW(S.C,a)];B=B({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:W,slotFulfillmentTriggers:y,slotExpirationTriggers:S},E);return B instanceof tF?new D(B):{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:y,slotExpirationTriggers:S, DQ:"core",clientMetadata:new AF([new jw(B)]),adSlotLoggingData:J}}; OMP=function(S,W,m,a){var J=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER"),B=new uy(S.C,W),E=[new tg(S.C,J)];S=[new dZ(S.C,W),new kW(S.C,J)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(a({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:S}))]),adSlotLoggingData:m}}; jR_=function(S,W,m,a){var J=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER");m=new QQ(S.C,m);var B=[new fb(S.C,J)],E=[new kW(S.C,J),new dZ(S.C,W)];B={slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:m,slotFulfillmentTriggers:B,slotExpirationTriggers:E};return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:[new fb(S.C,J)],slotExpirationTriggers:[new dZ(S.C,W),new kW(S.C,J)],DQ:"core",clientMetadata:new AF([new jw(a(B))])}}; uQl=function(S,W,m,a,J){var B=ST(S.N.get(),"SLOT_TYPE_IN_PLAYER");m=new jN(S.C,a,m);a=[new fb(S.C,B)];S=[new dZ(S.C,W)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:a,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(J({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:m,slotFulfillmentTriggers:a,slotExpirationTriggers:S}))])}}; qsO=function(S,W,m,a,J,B){var E=ST(S.N.get(),W);return hd(S,E,W,new QQ(S.C,a),[new dZ(S.C,m),new kW(S.C,E),new Xw(S.C,a,["error"])],J,B)}; TF7=function(S,W,m,a,J,B,E){var y=ST(S.N.get(),W);return hd(S,y,W,new Xw(S.C,J,["normal"]),[new dZ(S.C,m),new kW(S.C,y),new Xw(S.C,a,["error"])],B,E)}; yA6=function(S,W,m,a,J){var B=ST(S.N.get(),W);return hd(S,B,W,new uy(S.C,m),[new dZ(S.C,m),new kW(S.C,B)],a,J)}; nBK=function(S,W,m,a,J){m=m?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var B=ST(S.N.get(),m);W=new uy(S.C,W);var E=[new fb(S.C,B)];S=[new kW(S.C,B)];return{slotId:B,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:E,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(J({slotId:B,slotType:m,slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:W,slotFulfillmentTriggers:E,slotExpirationTriggers:S}))]),adSlotLoggingData:a}}; M3c=function(S,W,m,a,J){var B=ST(S.N.get(),"SLOT_TYPE_PLAYER_BYTES"),E=new Un(S.C),y=[new tg(S.C,B)];S=[new dZ(S.C,W)];W=[];W.push(new jw(a({slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:E,slotFulfillmentTriggers:y,slotExpirationTriggers:S})));W.push(new s$({}));J&&W.push(new Gm({current:J}));return{slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:y,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF(W), adSlotLoggingData:m}}; IR6=function(S,W){return oB7(S.AX.get())?new Xw(S.C,W,["normal","error","skipped"]):new Xw(S.C,W,["normal"])}; kKc=function(S,W,m,a,J){W=IR6(S,W);S=S4(S,W,m);J=J({slotId:S.slotId,slotType:S.slotType,slotPhysicalPosition:S.slotPhysicalPosition,slotEntryTrigger:S.slotEntryTrigger,slotFulfillmentTriggers:S.slotFulfillmentTriggers,slotExpirationTriggers:S.slotExpirationTriggers,DQ:S.DQ});return J instanceof D?J:{Z0:Object.assign({},S,{clientMetadata:new AF([new jw(J.layout)]),adSlotLoggingData:a}),Oy:J.Oy}}; $9P=function(S,W,m,a,J,B,E){m=Pgc(S,W,m,a);if(m instanceof D)return m;E=E({slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers,DQ:m.DQ});if(E instanceof D)return E;S=[new jw(E.layout),new PR({lF:S.lF(W)})];B&&S.push(new RX({}));return{Z0:{slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:m.slotEntryTrigger, slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers,DQ:m.DQ,clientMetadata:new AF(S),adSlotLoggingData:J},Oy:E.Oy}}; S4=function(S,W,m){var a=ST(S.N.get(),"SLOT_TYPE_PLAYER_BYTES"),J=[new fb(S.C,a)];S=[new kW(S.C,a),new dZ(S.C,m)];return{slotId:a,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:J,slotExpirationTriggers:S,DQ:"core"}}; Pgc=function(S,W,m,a){W=$T(S,W,m,a);return W instanceof D?W:S4(S,W,m)}; u2_=function(S,W,m,a,J,B){var E=ST(S.N.get(),"SLOT_TYPE_FORECASTING");W=$T(S,W,m,a);if(W instanceof D)return W;a=[new fb(S.C,E)];S=[new kW(S.C,E),new dZ(S.C,m)];return{slotId:E,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:a,slotExpirationTriggers:S,DQ:"core",clientMetadata:new AF([new jw(B({slotId:E,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:W,slotFulfillmentTriggers:a,slotExpirationTriggers:S}))]),adSlotLoggingData:J}}; Hsl=function(S,W,m,a,J){var B=!W.hideCueRangeMarker;switch(W.kind){case "AD_PLACEMENT_KIND_START":return new uy(S.C,m);case "AD_PLACEMENT_KIND_MILLISECONDS":return S=JAP(W,a),S instanceof D?S:J(S.gS,B);case "AD_PLACEMENT_KIND_END":return new On(S.C,m,B);default:return new D("Cannot construct entry trigger",{kind:W.kind})}}; v_6=function(S,W,m,a,J){return Hsl(S,W,m,a,function(B,E){return new OGc(S.C,m,B,E,J)})}; $T=function(S,W,m,a){return Hsl(S,W,m,a,function(J,B){return new Lb(S.C,m,J,B)})}; hd=function(S,W,m,a,J,B,E){S=[new tg(S.C,W)];return{slotId:W,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:S,slotExpirationTriggers:J,DQ:"core",clientMetadata:new AF([new jw(E({slotId:W,slotType:m,slotPhysicalPosition:1,DQ:"core",slotEntryTrigger:a,slotFulfillmentTriggers:S,slotExpirationTriggers:J}))]),adSlotLoggingData:B}}; EnX=function(){}; td=function(S,W){g.A.call(this);this.AX=S;this.N=W;this.eventCount=0;this.B=zkO()()}; nt=function(S,W,m){S.C(W,void 0,void 0,void 0,m,void 0,void 0,void 0,m.adSlotLoggingData)}; yC=function(S,W,m,a){S.C(W,void 0,void 0,void 0,m,a?a:void 0,void 0,void 0,m.adSlotLoggingData,a?a.adLayoutLoggingData:void 0);m=Hp().resolve(OA(y_))==null?void 0:YD();W=m==null?void 0:m.adsSeenHotConfig;m=m==null?void 0:m.adsHotConfig;(W==null?0:W.logOnAdsSeen)&&(m==null?0:m.webEnablePremiumAdsSeenLogging)&&lbD(S,a?a:void 0)}; ew6=function(S,W,m,a){i1(S.AX.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",m,"slot:",W,"layout:",a);Cs(S.N.get())&&S.C("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,W,a?a:void 0,void 0,m,W.adSlotLoggingData,a?a.adLayoutLoggingData:void 0)}; aI=function(S,W,m,a,J){S.C("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,a,J,void 0,void 0,a.adSlotLoggingData,J?J.adLayoutLoggingData:void 0,{errorType:W,errorMessage:m})}; lbD=function(S,W){if(W){var m=W.adLayoutLoggingData;g.cX(g.wU(),function(){S.B!=null&&m&&g.qd("adsSeenClientLogging",{serializedAdServingDataEntry:m.serializedAdServingDataEntry})},0)}}; Ad=function(S,W,m){td.call(this,S,W);this.AX=S;this.JX=m}; ZU=function(){this.C=new Map}; NC=function(S){this.C="pending";this.N=[];this.B=[];try{S(this.j.bind(this),this.reject.bind(this))}catch(W){this.reject(W)}}; Mwl=function(){var S,W;return{J7:new NC(function(m,a){S=m;W=a}), resolve:S,reject:W}}; rB=function(S){return bL(S)?S:ol(S)?new NC(function(W,m){S.then(W,m)}):new NC(function(W){W(S)})}; Cq=function(S){return new NC(function(W,m){m(S)})}; ck=function(S){try{return rB(S())}catch(W){return Cq(W)}}; wB=function(S,W,m){var a=Mwl(),J=a.J7,B=a.resolve,E=a.reject;S.N.push(function(y){if(W)try{var Y=W(y);B(Y)}catch(G){E(G)}else B(y)}); S.B.push(function(y){if(m)try{var Y=m(y);B(Y)}catch(G){E(G)}else E(y)}); DU(S);return J}; SP=function(S,W){return wB(S,void 0,W)}; Up_=function(S,W){wB(S,function(m){return wB(rB(W()),function(){return m})},function(m){return wB(rB(W()),function(){return Cq(m)})})}; DU=function(S){if(S.C==="fulfilled"){var W=S.N;S.N=[];S.B=[];W=g.R(W);for(var m=W.next();!m.done;m=W.next())m=m.value,m(S.result)}else if(S.C==="rejected")for(W=S.B,S.N=[],S.B=[],W=g.R(W),m=W.next();!m.done;m=W.next())m=m.value,m(S.error)}; Wh=function(S,W){return LYX(W.call(S))}; mV=function(S){return function m(){return F9(m,function(a){if(a.C==1)return g.yH(a,2),g.P(a,{J7:rB(S)},4);if(a.C!=2)return a.return(a.N);g.Kn(a);return g.Tg(a,0)})}()}; LYX=function(S){return ck(function(){return aU(S,S.next())})}; aU=function(S,W){return W.done?rB(W.value):SP(wB(W.value.J7,function(m){return aU(S,S.next(m))}),function(m){return aU(S,S.throw(m))})}; xpP=function(S){var W=RDP(S);return wB(eDj(W),function(){return W.map(function(m){return m.state()})})}; eDj=function(S){if(S.length===0)return rB(NaN);var W=Mwl(),m=W.J7,a=W.resolve,J=S.length;S=g.R(S.entries());var B=S.next();for(W={};!B.done;W={oS:void 0},B=S.next()){var E=g.R(B.value);B=E.next().value;E=E.next().value;W.oS=B;Up_(E,function(y){return function(){m.C==="pending"&&(is_(void 0)&&(void 0)(y.oS)&&m.C==="pending"?a(y.oS):(--J,J===0&&a(NaN)))}}(W))}return m}; RDP=function(S){return S.map(function(W){return rB(W)})}; Bh=function(S){var W=S.hours||0;var m=S.minutes||0,a=S.seconds||0;W=a+m*60+W*3600+(S.days||0)*86400+(S.weeks||0)*604800+(S.months||0)*2629800+(S.years||0)*31557600;W<=0?W={hours:0,minutes:0,seconds:0}:(S=W,W=Math.floor(S/3600),S%=3600,m=Math.floor(S/60),a=Math.floor(S%60),W={hours:W,minutes:m,seconds:a});var J=W.hours===void 0?0:W.hours;m=W.minutes===void 0?0:W.minutes;S=W.seconds===void 0?0:W.seconds;a=J>0;W=[];if(a){J=(new Intl.NumberFormat("en-u-nu-latn")).format(J);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(" "); J="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(Jq)?J.replace(",","\u00a0"):B.includes(Jq)?J.replace(",","\u202f"):E.includes(Jq)?J.replace(",","."):J;W.push(J)}a=a===void 0?!1:a;m=(["af","be","lt"].includes(Jq)||a)&&m<10?dpP().format(m):(new Intl.NumberFormat("en-u-nu-latn")).format(m);W.push(m);m=dpP().format(S);W.push(m);m=":";"da fi id si sr sr-Latn".split(" ").includes(Jq)&&(m=".");return W.join(m)}; dpP=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; Ib6=function(S,W){var m,a;S=((m=S.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(a=m.videoAuthorizationToken)==null?void 0:a.credentialTransferTokens)||[];for(m=0;mW;S=m}else S=!1;return S}; g.jP=function(S,W){return S.dE+"timedtext_video?ref=player&v="+W.videoId}; g.zaG=function(S){var W=this;this.videoData=S;S={};this.C=(S.c1a=function(){var m=[];if(g.gz.isInitialized()){var a="";W.videoData&&W.videoData.Y2&&(a=W.videoData.Y2+("&r1b="+W.videoData.clientPlaybackNonce));var J={};a=(J.atr_challenge=a,J);iU("bg_v",void 0,"player_att");(a=EfP(a))?(iU("bg_s",void 0,"player_att"),m.push("r1a="+a)):(iU("bg_e",void 0,"player_att"),m.push("r1c=2"))}else iU("bg_e",void 0,"player_att"),window.trayride||window.botguard?m.push("r1c=1"):m.push("r1c=4");m.push("r1d="+g.gz.getState()); return m.join("&")},S.c6a=function(m){return"r6a="+(Number(m.c)^WO())},S.c6b=function(m){return"r6b="+(Number(m.c)^Number(g.D4("CATSTAT",0)))},S); this.videoData&&this.videoData.Y2?this.SQ=Gj(this.videoData.Y2):this.SQ={}}; g.yD6=function(S){if(S.videoData&&S.videoData.Y2){for(var W=[S.videoData.Y2],m=g.R(Object.keys(S.C)),a=m.next();!a.done;a=m.next())a=a.value,S.SQ[a]&&S.C[a]&&(a=S.C[a](S.SQ))&&W.push(a);return W.join("&")}return null}; g.QU=function(S,W){BEj(S,{yV_:g.Db(W.experiments,"bg_vm_reinit_threshold"),cspNonce:W.cspNonce,dE:W.dE||""})}; YfG=function(){var S=XMLHttpRequest.prototype.fetch;return!!S&&S.length===3}; KlG=function(S){GSP=2592E3*(S||1)}; TEX=function(S){g.i7("yt-player-bandwidth",S,2592E3)}; X6=function(S){S=S===void 0?GSP:S;if(S>0&&!(XHP()>(0,g.X1)()-S*1E3))return 0;S=g.dU("yt-player-quality");if(typeof S==="string"){if(S=g.Ht[S],S>0)return S}else if(S instanceof Object)return S.quality;return 0}; vh=function(){var S=g.dU("yt-player-proxima-pref");return S==null?null:S}; qfD=function(){var S=g.dU("yt-player-quality");if(S instanceof Object&&S.quality&&S.previousQuality){if(S.quality>S.previousQuality)return 1;if(S.quality0&&W[0]?S.getAutoplayPolicy(W[0]):S.getAutoplayPolicy("mediaelement");if(OtP[m])return OtP[m]}}catch(a){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; eP=function(S){return S.Cn||S.kt||S.mutedAutoplay}; jIP=function(S,W){return eP(S)?W!==1&&W!==2&&W!==0?"AUTOPLAY_STATUS_UNAVAILABLE":S.d5?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; QID=function(S,W,m){var a=W.J();S.thirdParty||(S.thirdParty={});S.thirdParty=Object.assign({},S.thirdParty,{embedUrl:a.loaderUrl});a.ancestorOrigins&&(S.thirdParty.embeddedPlayerContext=Object.assign({},S.thirdParty.embeddedPlayerContext,{ancestorOrigins:a.ancestorOrigins}));a.L6!=null&&(S.thirdParty.embeddedPlayerContext=Object.assign({},S.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(a.L6)}));a.K6&&(S.thirdParty.embeddedPlayerContext=Object.assign({},S.thirdParty.embeddedPlayerContext, {visibilityFractionSource:a.K6}));S.thirdParty.embeddedPlayerContext=Object.assign({},S.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:RU(),autoplayIntended:eP(W),autoplayStatus:jIP(W,m)})}; XaD=function(S){var W=[];S=g.R(S.split(","));for(var m=S.next();!m.done;m=S.next()){var a=m.value;a&&((m=a.startsWith("!"))&&(a=a.substring(1)),a=a.split("-"),a.length<3||W.push({t9:a[0],platform:a[1],deviceVersion:a[2],Ov:m}))}return W}; l5O=function(S){return XaD(S).map(function(W){return{deviceInterface:vf6[HtO[W.t9]]||0,deviceVersion:W.deviceVersion||"",isSleeping:W.Ov}})}; g.x1=function(S,W){this.id=S;this.n3=W;this.captionTracks=[];this.B=this.j=null;this.xtags="";this.V=this.X=!1;this.C=null;this.N="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";S=this.n3.id.split(".");S.length>1&&(this.X=S[1]==="2",this.V=S[1]==="4")}; id=function(S,W,m,a,J){this.N=S;this.C=W;this.B=m;this.reason=a;this.o2=J===void 0?0:J}; g.dz=function(S,W,m,a){return new id(g.Ht[S]||0,g.Ht[W]||0,m,a)}; Ph=function(S){if(IU&&S.o2)return!1;var W=g.Ht.auto;return S.N===W&&S.C===W}; k1=function(S){return fw[S.C||S.N]||"auto"}; MEP=function(S,W){W=g.Ht[W];return S.N<=W&&(!S.C||S.C>=W)}; $1=function(S,W,m,a){this.videoInfos=S;this.C=W;this.audioTracks=[];this.N=a||[];if(this.C){S=new Set;m==null||m({ainfolen:this.C.length});W=g.R(this.C);for(a=W.next();!a.done;a=W.next())if(a=a.value,!a.n3||S.has(a.n3.id)){var J=void 0,B=void 0,E=void 0;(E=m)==null||E({atkerr:!!a.n3,itag:a.itag,xtag:a.C,lang:((J=a.n3)==null?void 0:J.name)||"",langid:((B=a.n3)==null?void 0:B.id)||""})}else J=new g.x1(a.id,a.n3),S.add(a.n3.id),this.audioTracks.push(J);m==null||m({atklen:this.audioTracks.length})}}; hq=function(){g.A.apply(this,arguments);this.N=null;this.C=new Map}; x2P=function(S,W,m,a,J,B,E){if(S.N)return S.N;var y={},Y=new Set,G={};if(tq(a)){for(var K in a.C)a.C.hasOwnProperty(K)&&(S=a.C[K],G[S.info.p_]=[S.info]);return G}K=U2P(W,a,y);B&&J({aftsrt:Aq(K)});for(var T={},p=g.R(Object.keys(K)),q=p.next();!q.done;q=p.next()){q=q.value;for(var F=g.R(K[q]),O=F.next();!O.done;O=F.next()){O=O.value;var X=O.itag,l=LlX(q,O,W);if(T.hasOwnProperty(l))T[l]===!0?G[q].push(O):y[X]=T[l];else{var M=ZF(W,O,m,a.isLive,Y);M!==!0?(E.add(q),y[X]=M,M==="disablevp9hfr"&&(T[l]="disablevp9hfr")): (G[q]=G[q]||[],G[q].push(O),T[l]=!0)}}}B&&J({bfflt:Aq(G)});for(var e in G)G.hasOwnProperty(e)&&(a=e,G[a]&&G[a][0].jr()&&(G[a]=G[a],G[a]=RaD(W,G[a],y),G[a]=eaO(G[a],y)));B&&Object.keys(y).length>0&&J({rjr:m6(y)});W=g.R(Y.values());for(a=W.next();!a.done;a=W.next())(a=m.B.get(a.value))&&--a.d8;B&&J({aftflt:Aq(G)});S.N=g.gh(G,function(d){return!!d.length}); return S.N}; d2l=function(S,W,m,a,J,B,E,y){y=y===void 0?!1:y;if(W.CJ&&E&&E.length>1&&!(W.WQ>0||W.S)){for(var Y=W.C||!!J,G=Y&&W.eg?B:void 0,K=U2P(W,a),T=[],p=[],q={},F=0;F0&&F&&p&&(K=[E,S],d=p.concat(F).filter(function(t){return t})); if(d.length&&!W.E_){oU(d,K);if(Y){Y=[];W=g.R(d);for(a=W.next();!a.done;a=W.next())Y.push(a.value.itag);B({hbdfmt:Y.join(".")})}return du(new $1(d,J,G,m))}d=NE7(W);d=g.Nx(d,y);if(!d){if(T[E])return B=T[E],oU(B),du(new $1(B,J,G,m));Y&&B({novideo:1});return iO()}W.Kn&&(d==="1"||d==="1h")&&T[S]&&(E=rz(T[d]),K=rz(T[S]),K>E?d=S:K===E&&btD(T[S])&&(d=S));d==="9"&&T.h&&rz(T.h)>rz(T["9"])&&(d="h");W.IL&&a.isLive&&d==="("&&T.H&&rz(T["("])<1440&&(d="H");Y&&B({vfmly:Cw(d)});W=T[d];if(!W.length)return Y&&B({novfmly:Cw(d)}), iO();oU(W);return du(new $1(W,J,G,m))}; ADK=function(S,W,m){var a,J=((a=m.video)==null?void 0:a.fps)||0;a=W+"_"+J;var B=!!m.audio,E=S.C.get(a);a:{var y=S.C.get(a),Y=!!m.audio;if(y){if(Y){var G=!1;break a}var K;if(!Y&&((G=m.video)==null?0:G.height)&&y.maxHeight&&y.maxHeight>=((K=m.video)==null?void 0:K.height)){G=!1;break a}}G=!0}G&&(G=m.itag,W=E?E:{itag:G,p_:W,vD:B},B?W.numChannels=m.audio.numChannels:(B=m.video,W.maxWidth=B==null?void 0:B.width,W.maxHeight=B==null?void 0:B.height,W.maxFramerate=J,W.maxBitrateBps=m.o2*8,W.v9=B==null?void 0: B.isHdr()),S.C.set(a,W))}; bd=function(S){for(var W=[],m=g.R(S.C.keys()),a=m.next();!a.done;a=m.next()){a=a.value;var J=S.C.get(a);W.push(a+"_"+J.maxWidth+"_"+J.maxHeight)}return W.join(".")}; P1c=function(S,W){var m=!(!S.m&&!S.M),a=!(!S.mac3&&!S.MAC3),J=!(!S.meac3&&!S.MEAC3);S=!(!S.i&&!S.I);W.o6=S;return m||a||J||S}; btD=function(S){S=g.R(S);for(var W=S.next();!W.done;W=S.next())if(W=W.value,W.itag&&ofD.has(W.itag))return!0;return!1}; kSP=function(S){S=g.R(S);for(var W=S.next();!W.done;W=S.next())if(W.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Cw=function(S){switch(S){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return S}}; LlX=function(S,W,m){var a,J,B;return m.Ys?S+"_"+Number((a=W.video)==null?void 0:a.fps)+"_"+!((J=W.audio)==null||!J.N):S+"_"+(((B=W.video)==null?void 0:B.fps)||0)}; Aq=function(S){var W=[],m;for(m in S)if(S.hasOwnProperty(m)){var a=m;W.push(Cw(a));a=g.R(S[a]);for(var J=a.next();!J.done;J=a.next())W.push(J.value.itag)}return W.join(".")}; I5X=function(S,W,m,a,J,B){var E={},y={};g.ic(W,function(Y,G){Y=Y.filter(function(K){var T=K.itag;if(!K.PG)return y[T]="noenc",!1;if(B.lr&&K.p_==="(h"&&B.vv)return y[T]="lichdr",!1;if(!S.j&&K.p_==="1e")return y[T]="noav1enc",!1;if(K.p_==="("||K.p_==="(h"){if(S.N&&m&&m.flavor==="widevine"){var p=K.mimeType+"; experimental=allowed";(p=!!K.PG[m.flavor]&&!!m.C[p])||(y[T]=K.PG[m.flavor]?"unspt":"noflv");return p}if(!ch(S,DF.CRYPTOBLOCKFORMAT)&&!S.Xn||S.vn)return y[T]=S.vn?"disvp":"vpsub",!1}return m&&K.PG[m.flavor]&& m.C[K.mimeType]?!0:(y[T]=m?K.PG[m.flavor]?"unspt":"noflv":"nosys",!1)}); Y.length&&(E[G]=Y)}); a&&Object.entries(y).length&&J({rjr:m6(y)});return E}; eaO=function(S,W){var m=Lh(S,function(a,J){return J.video.fps>32?Math.min(a,J.video.width):a},Infinity); m32||a.video.widthS.V)return"max"+S.V;if(S.uY&&W.p_==="h"&&W.video&&W.video.qualityOrdinal>1080)return"blkhigh264";if(W.p_==="(h"&&!m.V)return"enchdr";if((a===void 0?0:a)&&KoO(W)&&!S.g2)return"blk51live";if((W.p_==="MAC3"||W.p_==="mac3")&&!S.j)return"blkac3";if((W.p_==="MEAC3"||W.p_==="meac3")&&!S.X)return"blkeac3";if(W.p_==="M"||W.p_==="m")return"blkaac51"; if((W.p_==="so"||W.p_==="sa")&&!S.N2)return"blkamb";if(!S.lr&&GIK(W)&&(!m.j||W.p_!=="1e"))return"cbc";if(!m.j&&GIK(W)&&W.p_==="1e")return"cbcav1";if((W.p_==="i"||W.p_==="I")&&!S.yT)return"blkiamf";var B;if(S.EV&&((B=W.audio)==null?void 0:B.N)===!0)return"blkvbcabr";var E,y;if(S.Y6&&(W.p_==="1"||W.p_==="1h"||m.j&&W.p_==="1e")&&((E=W.video)==null?0:E.qualityOrdinal)&&((y=W.video)==null?void 0:y.qualityOrdinal)>S.Y6)return"av1cap";a=m.B.get(W.p_);if(!S.Wv&&a&&a.d8>0)return J.add(W.p_),"byerr";var Y; if((Y=W.video)==null?0:Y.fps>32){if(!m.q2&&!ch(m,DF.FRAMERATE))return"capHfr";if(S.d2&&W.video.qualityOrdinal>=4320)return"blk8khfr";if(eh(W)&&S.Od&&W.PG&&W.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(S.o2&&W.o2>S.o2)return"ratecap";if(S.q2>0&&W.jr()&&W.video.height>S.q2)return"mvhcap";S=rD_(m,W);return S!==!0?S:!0}; oU=function(S,W){W=W===void 0?[]:W;g.qK(S,function(m,a){var J=a.o2-m.o2;if(!m.jr()||!a.jr())return J;var B=a.video.height*a.video.width-m.video.height*m.video.width;!B&&W&&W.length>0&&(m=W.indexOf(m.p_)+1,a=W.indexOf(a.p_)+1,B=m===0||a===0?a||-1:m-a);B||(B=J);return B})}; wz=function(S,W,m,a,J,B,E,y,Y){this.VD=S;this.startTime=W;this.duration=m;this.ingestionTime=a;this.sourceURL=J;this.je=Y;this.endTime=W+m;this.C=E||0;this.range=B||null;this.pending=y||!1;this.je=Y||null}; g.S2=function(){this.segments=[];this.C=null;this.N=!0;this.B=""}; C1_=function(S,W){if(W>S.lP())S.segments=[];else{var m=ZZ(S.segments,function(a){return a.VD>=W},S); m>0&&S.segments.splice(0,m)}}; WW=function(S,W,m,a,J){J=J===void 0?!1:J;this.data=S;this.offset=W;this.size=m;this.type=a;this.C=(this.N=J)?0:8;this.dataOffset=this.offset+this.C}; mQ=function(S){var W=S.data.getUint8(S.offset+S.C);S.C+=1;return W}; ac=function(S){var W=S.data.getUint16(S.offset+S.C);S.C+=2;return W}; Ju=function(S){var W=S.data.getInt32(S.offset+S.C);S.C+=4;return W}; BW=function(S){var W=S.data.getUint32(S.offset+S.C);S.C+=4;return W}; Ec=function(S){var W=S.data;var m=S.offset+S.C;W=W.getUint32(m)*4294967296+W.getUint32(m+4);S.C+=8;return W}; zQ=function(S,W){W=W===void 0?NaN:W;if(isNaN(W))var m=S.size;else for(m=S.C;m1?Math.ceil(J*W):Math.floor(J*W))}S.skip(1);m=mQ(S)<<16|ac(S);if(m&256){a=m&1;J=m&4;var B=m&512,E=m&1024,y=m&2048;m=BW(S);a&&S.skip(4);J&&S.skip(4);a=(B?4:0)+(E?4:0)+(y?4:0);for(J=0;J1?Math.ceil(E*W):Math.floor(E*W)),S.skip(a)}}}; Fj=function(S){S=new DataView(S.buffer,S.byteOffset,S.byteLength);return(S=g.qt(S,0,1836476516))?g.pk(S):NaN}; yQ6=function(S){var W=g.qt(S,0,1937011556);if(!W)return null;W=VX(S,W.dataOffset+8,1635148593)||VX(S,W.dataOffset+8,1635135537);if(!W)return null;var m=VX(S,W.dataOffset+78,1936995172),a=VX(S,W.dataOffset+78,1937126244);if(!a)return null;W=null;if(m)switch(m.skip(4),mQ(m)){default:W=0;break;case 1:W=2;break;case 2:W=1;break;case 3:W=255}var J=m=null,B=null;if(a=VX(S,a.dataOffset,1886547818)){var E=VX(S,a.dataOffset,1886546020),y=VX(S,a.dataOffset,2037673328);if(!y&&(y=VX(S,a.dataOffset,1836279920), !y))return null;E&&(E.skip(4),m=Ju(E)/65536,B=Ju(E)/65536,J=Ju(E)/65536);S=cDP(y);S=new DataView(S.buffer,S.byteOffset+8,S.byteLength-8);return new Eu6(W,m,B,J,S)}return null}; VX=function(S,W,m){for(;nk(S,W);){var a=sc(S,W);if(a.type===m)return a;W+=a.size}return null}; g.qt=function(S,W,m){for(;nk(S,W);){var a=sc(S,W);if(a.type===m)return a;W=u5(a.type)?W+8:W+a.size}return null}; g.g2=function(S){if(S.data.getUint8(S.dataOffset)){var W=S.data;S=S.dataOffset+4;W=W.getUint32(S)*4294967296+W.getUint32(S+4)}else W=S.data.getUint32(S.dataOffset+4);return W}; sc=function(S,W){var m=S.getUint32(W),a=S.getUint32(W+4);return new WW(S,W,m,a)}; g.pk=function(S){var W=S.data.getUint8(S.dataOffset)?20:12;return S.data.getUint32(S.dataOffset+W)}; YqP=function(S){S=new WW(S.data,S.offset,S.size,S.type,S.N);var W=mQ(S);S.skip(7);var m=BW(S);if(W===0){W=BW(S);var a=BW(S)}else W=Ec(S),a=Ec(S);S.skip(2);for(var J=ac(S),B=[],E=[],y=0;y122)return!1}return!0}; u5=function(S){return S===1701082227||S===1836019558||S===1836019574||S===1835297121||S===1835626086||S===1937007212||S===1953653094||S===1953653099||S===1836475768}; GqQ=function(S){S.skip(4);return{rV9:zQ(S,0),value:zQ(S,0),timescale:BW(S),XhU:BW(S),eventDuration:BW(S),id:BW(S),Sc:zQ(S),offset:S.offset}}; g.KzK=function(S){var W=VX(S,0,1701671783);if(!W)return null;var m=GqQ(W),a=m.rV9;m=TQ(m.Sc);if(S=VX(S,W.offset+W.size,1701671783))if(S=GqQ(S),S=TQ(S.Sc),m&&S){W=g.R(Object.keys(S));for(var J=W.next();!J.done;J=W.next())J=J.value,m[J]=S[J]}return m?new Kk(m,a):null}; Oc=function(S,W){for(var m=VX(S,0,W);m;){var a=m;a.type=1936419184;a.data.setUint32(a.offset+4,1936419184);m=VX(S,m.offset+m.size,W)}}; g.j2=function(S,W){for(var m=0,a=[];nk(S,m);){var J=sc(S,m);J.type===W&&a.push(J);m=u5(J.type)?m+8:m+J.size}return a}; TD6=function(S,W){var m=g.qt(S,0,1937011556),a=g.qt(S,0,1953654136);if(!m||!a||S.getUint32(m.offset+12)>=2)return null;var J=new DataView(W.buffer,W.byteOffset,W.length),B=g.qt(J,0,1937011556);if(!B)return null;W=J.getUint32(B.dataOffset+8);a=J.getUint32(B.dataOffset+12);if(a!==1701733217&&a!==1701733238)return null;a=new D2_(S.byteLength+W);yX(a,S,0,m.offset+12);a.data.setInt32(a.offset,2);a.offset+=4;yX(a,S,m.offset+16,m.size-16);yX(a,J,J.byteOffset+B.dataOffset+8,W);yX(a,S,m.offset+m.size,S.byteLength- (m.offset+m.size));m=g.R([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(J=m.next();!J.done;J=m.next())J=g.qt(S,0,J.value),a.data.setUint32(J.offset,J.size+W);S=g.qt(a.data,0,1953654136);a.data.setUint32(S.offset+16,2);return a.data}; qq_=function(S){var W=g.qt(S,0,1937011556);if(!W)return null;var m=S.getUint32(W.dataOffset+12);if(m!==1701733217&&m!==1701733238)return null;W=VX(S,W.offset+24+(m===1701733217?28:78),1936289382);if(!W)return null;m=VX(S,W.offset+8,1935894637);if(!m||S.getUint32(m.offset+12)!==1667392371)return null;W=VX(S,W.offset+8,1935894633);if(!W)return null;W=VX(S,W.offset+8,1952804451);if(!W)return null;m=new Uint8Array(16);for(var a=0;a<16;a++)m[a]=S.getInt8(W.offset+16+a);return m}; QX=function(S,W){this.C=S;this.pos=0;this.start=W||0}; Xj=function(S){return S.pos>=S.C.byteLength}; Uc=function(S,W,m){var a=new QX(m);if(!vW(a,S))return!1;a=HW(a);if(!l5(a,W))return!1;for(S=0;W;)W>>>=8,S++;W=a.start+a.pos;var J=Mt(a,!0);a=S+(a.start+a.pos-W)+J;a=a>9?poP(a-9,8):poP(a-2,1);S=W-S;m.setUint8(S++,236);for(W=0;Wm;J++)m=m*256+i5(S),a*=128;return W?m-a:m}; Rc=function(S){var W=Mt(S,!0);S.pos+=W}; nu6=function(S){if(!l5(S,440786851,!0))return null;var W=S.pos;Mt(S,!1);var m=Mt(S,!0)+S.pos-W;S.pos=W+m;if(!l5(S,408125543,!1))return null;Mt(S,!0);if(!l5(S,357149030,!0))return null;var a=S.pos;Mt(S,!1);var J=Mt(S,!0)+S.pos-a;S.pos=a+J;if(!l5(S,374648427,!0))return null;var B=S.pos;Mt(S,!1);var E=Mt(S,!0)+S.pos-B,y=new Uint8Array(m+12+J+E),Y=new DataView(y.buffer);y.set(new Uint8Array(S.C.buffer,S.C.byteOffset+W,m));Y.setUint32(m,408125543);Y.setUint32(m+4,33554431);Y.setUint32(m+8,4294967295); y.set(new Uint8Array(S.C.buffer,S.C.byteOffset+a,J),m+12);y.set(new Uint8Array(S.C.buffer,S.C.byteOffset+B,E),m+12+J);return y}; d2=function(S){var W=S.pos;S.pos=0;var m=1E6;vW(S,[408125543,357149030,2807729])&&(m=Lk(S));S.pos=W;return m}; swP=function(S,W){var m=S.pos;S.pos=0;if(S.C.getUint8(S.pos)!==160&&!Ic(S)||!l5(S,160))return S.pos=m,NaN;Mt(S,!0);var a=S.pos;if(!l5(S,161))return S.pos=m,NaN;Mt(S,!0);i5(S);var J=i5(S)<<8|i5(S);S.pos=a;if(!l5(S,155))return S.pos=m,NaN;a=Lk(S);S.pos=m;return(J+a)*W/1E9}; Ic=function(S){if(!uq6(S)||!l5(S,524531317))return!1;Mt(S,!0);return!0}; uq6=function(S){if(S.cT()){if(!l5(S,408125543))return!1;Mt(S,!0)}return!0}; vW=function(S,W){for(var m=0;m0){var a=QP(42,W.substring(m+1));g.ic(a,function(J,B){this.set(B,J)},S); W=W.substring(0,m)}W=OP(21,W);g.ic(W,function(J,B){this.set(B,J)},S)}; OoK=function(S){var W=S.fW.XD(),m=[];g.ic(S.C,function(J,B){m.push(B+"="+J)}); if(!m.length)return W;var a=m.join("&");S=Tj(2,S.fW)?"&":"?";return W+S+a}; fk=function(S,W){var m=new g.H_(W);(W=m.get("req_id"))&&S.set("req_id",W);g.ic(S.C,function(a,J){m["set"](J,null)}); return m}; jwP=function(){this.j=this.B=this.C=this.timedOut=this.started=this.X=this.N=0}; kE=function(S){S.X=(0,g.X1)();S.started=0;S.timedOut=0;S.C=0}; $E=function(S,W){var m=S.started+S.C*4;W&&(m+=S.B);m=Math.max(0,m-3);return Math.pow(1.6,m)}; hu=function(S,W){S[W]||(S[W]=new jwP);return S[W]}; tu=function(S){this.bY=this.Z=this.X=this.B=0;this.S=this.V=!1;this.C=S;this.N=S.clone()}; QwP=function(S,W,m){if(QP(68,S.C))return!1;var a=hu(m,Fl(7,S.C));if(a.timedOut<1&&a.C<1)return!1;a=a.timedOut+a.C;S=Au(S,W);m=hu(m,Fl(70,S));return m.timedOut+m.C+01?W=W.tgn:(m=hu(m,Nt(S,S.u6(W,m),W)),W=Math.max(S.X,m.timedOut)+W.LI*(S.B-S.X)+.25*S.Z,W=W>3?1E3*Math.pow(1.6,W-3):0);return W===0?!0:S.bY+W<(0,g.X1)()}; Xoj=function(S,W,m){S.C.set(W,m);S.N.set(W,m);S.j&&S.j.set(W,m)}; vuQ=function(S,W,m,a,J){++S.B;W&&++S.X;Fl(68,m.fW).startsWith("redirector.")&&(S.C=S.N.clone(),delete S.j,a.gJ&&delete J[Fl(70,S.C)])}; oc=function(S){return S?(S.itag||"")+";"+(S.lmt||0)+";"+(S.xtags||""):""}; r2=function(S,W,m,a){this.initRange=m;this.indexRange=a;this.C=null;this.B=!1;this.V=0;this.j=this.dM=this.N=null;this.info=W;this.aL=new tu(S)}; Ck=function(S,W){return oc(g.kK(S.info,W))}; cW=function(S,W){this.start=S;this.end=W;this.length=W-S+1}; DD=function(S){S=S.split("-");var W=Number(S[0]),m=Number(S[1]);if(!isNaN(W)&&!isNaN(m)&&S.length===2&&(S=new cW(W,m),!isNaN(S.start)&&!isNaN(S.end)&&!isNaN(S.length)&&S.length>0))return S}; w2=function(S,W){return new cW(S,S+W-1)}; HoD=function(S){return S.end==null?{start:String(S.start)}:{start:String(S.start),end:String(S.end)}}; SB=function(S){if(!S)return new cW(0,0);var W=Number(S.start);S=Number(S.end);if(!isNaN(W)&&!isNaN(S)&&(W=new cW(W,S),W.length>0))return W}; Wd=function(S,W,m,a,J,B,E,y,Y,G,K,T){a=a===void 0?"":a;this.type=S;this.yD=W;this.range=m;this.source=a;this.pk=K;this.clipId=T===void 0?"":T;this.S=[];this.V="";this.VD=-1;this.bY=0;this.V=a;this.VD=J>=0?J:-1;this.startTime=B||0;this.duration=E||0;this.C=y||0;this.N=Y>=0?Y:this.range?this.range.length:NaN;this.B=this.range?this.C+this.N===this.range.length:G===void 0?!!this.N:G;this.range?(this.j=this.startTime+this.duration*this.C/this.range.length,this.Z=this.duration*this.N/this.range.length, this.X=this.j+this.Z):lq6(this)}; lq6=function(S){S.j=S.startTime;S.Z=S.duration;S.X=S.j+S.Z}; MTc=function(S,W,m){var a=!(!W||W.yD!==S.yD||W.type!==S.type||W.VD!==S.VD);return m?a&&!!W&&(S.range&&W.range?W.range.end===S.range.end:W.range===S.range)&&W.C+W.N===S.C+S.N:a}; ma=function(S){return S.type===1||S.type===2}; am=function(S){return S.type===3||S.type===6}; Jm=function(S,W){return S.yD===W.yD?S.range&&W.range?S.range.start+S.C+S.N===W.range.start+W.C:S.VD===W.VD?S.C+S.N===W.C:S.VD+1===W.VD&&W.C===0&&S.B:!1}; LzP=function(S,W){return S.VD!==W.VD&&W.VD!==S.VD+1||S.type!==W.type?!1:Jm(S,W)?!0:Math.abs(S.j-W.j)<=1E-6&&S.VD===W.VD?!1:U8_(S,W)}; U8_=function(S,W){return Jm(S,W)||Math.abs(S.X-W.j)<=1E-6||S.VD+1===W.VD&&W.C===0&&S.B?!0:!1}; Bd=function(S){return S.VD+(S.B?1:0)}; RR7=function(S){S.length===1||g.UM(S,function(m){return!!m.range}); for(var W=1;W=W.range.start+W.C&&S.range.start+S.C+S.N<=W.range.start+W.C+W.N:S.VD===W.VD&&S.C>=W.C&&(S.C+S.N<=W.C+W.N||W.B)}; fqP=function(S,W){return S.yD!==W.yD?!1:S.type===4&&W.type===3&&S.yD.Gm()?(S=S.yD.aH(S),ap(S,function(m){return fqP(m,W)})):S.VD===W.VD&&!!W.N&&W.C+W.N>S.C&&W.C+W.N<=S.C+S.N}; zb=function(S,W){var m=W.VD;S.V="updateWithSegmentInfo";S.VD=m;if(S.startTime!==W.startTime||S.duration!==W.duration)S.startTime=W.startTime,S.duration=W.duration,lq6(S)}; y9=function(S,W){var m=this;this.R2=S;this.j=this.C=null;this.X=this.qP=NaN;this.u6=this.requestId=null;this.f3={ij2:function(){return m.range}}; this.aL=S[0].yD.aL;this.N=W||"";this.R2[0].range&&this.R2[0].N>0&&(eR_(S)?(this.range=RR7(S),this.B=this.range.length):(this.range=this.R2[this.R2.length-1].range,this.B=x8P(S)))}; Ys=function(S){return!ma(S.R2[S.R2.length-1])}; Gb=function(S){return S.R2[S.R2.length-1].type===4}; g.KN=function(S,W,m){m=S.u6===null?S.aL.u6(W,m,S.R2[0].type):S.u6;if(S.C){W=m?VP(58,S.C,W.l4):S.C;var a=new PW(W);a.get("alr")||a.set("alr","yes");S.N&&guK(a,S.N)}else/http[s]?:\/\//.test(S.N)?a=new PW(new g.H_(S.N)):(a=ZD(S.aL,m,W),S.N&&guK(a,S.N));(W=S.range)?a.set("range",W.toString()):S.R2[0].yD.DL()&&S.R2.length===1&&S.R2[0].C&&a.set("range",S.R2[0].C+"-");S.requestId&&a.set("req_id",S.requestId);isNaN(S.qP)||a.set("headm",S.qP.toString());isNaN(S.X)||a.set("mffa",S.X+"ms");S.urlParams&&g.ic(S.urlParams, function(J,B){a.set(B,J)}); return a}; kqQ=function(S){if(S.range)return S.B;S=S.R2[0];return Math.round(S.Z*S.yD.info.o2)}; $8c=function(S,W){return Math.max(0,S.R2[0].j-W)}; hRP=function(S,W){S=g.R(S.R2);for(var m=S.next();!m.done;m=S.next())if(m=m.value,m.type===3&&W>=m.j&&W<=m.X)return!0;return!1}; Tb=function(S,W,m,a,J,B){B=B===void 0?0:B;r2.call(this,S,W,a,void 0);this.X=m;this.k8=B;this.index=J||new g.S2}; tTP=function(S,W,m,a,J){this.VD=S;this.startSecs=W;this.Gk=m;this.C=a||NaN;this.N=J||NaN}; qA=function(S,W,m){for(;S;S=S.parentNode)if(S.attributes&&(!m||S.nodeName===m)){var a=S.getAttribute(W);if(a)return a}return""}; pN=function(S,W){for(;S;S=S.parentNode){var m=S.getElementsByTagName(W);if(m.length>0)return m[0]}return null}; AQG=function(S){if(!S)return 0;var W=S.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(S)|0}; Zol=function(S){return S.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?S+"Z":S}; Fv=function(){this.C=[];this.N=null;this.V=0;this.B=[];this.X=!1;this.Z="";this.j=-1}; NDD=function(S){var W=S.B;S.B=[];return W}; bol=function(){this.j=[];this.C=null;this.N={};this.B={}}; cQl=function(S,W){var m=[];W=Array.from(W.getElementsByTagName("SegmentTimeline"));W=g.R(W);for(var a=W.next();!a.done;a=W.next()){a=a.value;var J=a.parentNode.parentNode,B=null;J.nodeName==="Period"?B=ouX(S):J.nodeName==="AdaptationSet"?(J=J.getAttribute("id")||J.getAttribute("mimetype")||"",B=rQO(S,J)):J.nodeName==="Representation"&&(J=J.getAttribute("id")||"",B=CQK(S,J));if(B==null)return;B.update(a);g.BF(m,NDD(B))}g.BF(S.j,m);w_Q(S.j,function(E){return E.startSecs*1E3+E.C})}; D8X=function(S){S.C&&(S.C.C=[]);g.ic(S.N,function(W){W.C=[]}); g.ic(S.B,function(W){W.C=[]})}; ouX=function(S){S.C||(S.C=new Fv);return S.C}; rQO=function(S,W){S.N[W]||(S.N[W]=new Fv);return S.N[W]}; CQK=function(S,W){S.B[W]||(S.B[W]=new Fv);return S.B[W]}; nN=function(S){var W=S===void 0?{}:S;S=W.k8===void 0?0:W.k8;var m=W.d4===void 0?!1:W.d4;var a=W.uR===void 0?0:W.uR;var J=W.VU===void 0?0:W.VU;var B=W.jS===void 0?Infinity:W.jS;var E=W.Zx===void 0?0:W.Zx;var y=W.HG===void 0?!1:W.HG;W=W.iB===void 0?!1:W.iB;g.S2.call(this);this.oy=this.DW=-1;this.Tm=S;this.uR=a;this.d4=m;this.VU=J;this.jS=B;this.Zx=E;((this.HG=y)||isFinite(B)&&this.jS>0)&&m&&V9&&(this.N=!1,this.B="postLive");this.iB=W}; s6=function(S,W){return Tt(S.segments,function(m){return W-m.VD})}; uA=function(S,W,m){m=m===void 0?{}:m;Tb.call(this,S,W,"",void 0,void 0,m.k8||0);this.index=new nN(m)}; gn=function(S,W,m){r2.call(this,S,W);this.X=m;S=this.index=new g.S2;S.N=!1;S.B="d"}; wo7=function(S,W,m){var a=S.index.b_(W),J=S.index.getStartTime(W),B=S.index.getDuration(W);m?B=m=0:m=S.info.o2*B;return new y9([new Wd(3,S,void 0,"otfCreateRequestInfoForSegment",W,J,B,0,m)],a)}; S1Q=function(S,W){if(!S.index.isLoaded()){var m=[],a=W.j;W=W.X.split(",").filter(function(K){return K.length>0}); for(var J=0,B=0,E=0,y=/^(\d+)/,Y=/r=(\d+)/,G=0;G0&&(J.C=Math.min(J.C+E,10),J.N=B);J.C>0?(J.C--,J=!0):J=!1;if(J)typeof a==="function"&&(a=a()),console.log("plyr."+W,a);else{var y;a=((y=EKK.get(W))!=null?y:0)+1;EKK.set(W,a);a%100===1&&console.warn("plyr","plyr."+W+" is chatty, dropping logs.")}}}; B1X=function(){this.C=10;this.N=Date.now()}; Q9=function(S,W){this.info=S;this.N=W;this.C=null;this.j=this.B=-1;this.timestampOffset=0;this.isLocked=this.V=!1;this.X=this.info.yD.Pl()&&!this.info.C}; g.Xv=function(S){return vD6(S.N)}; zzG=function(S,W){W=Math.min(W,S.info.N);var m=S.N.split(W),a=m.s3;m=new Q9(new Wd(S.info.type,S.info.yD,S.info.range,S.info.V,S.info.VD,S.info.startTime,S.info.duration,S.info.C,W,!1,S.info.pk,S.info.clipId),m.XT);m.j=S.j;m.B=S.B;W=new Q9(new Wd(S.info.type,S.info.yD,S.info.range,S.info.V,S.info.VD,S.info.startTime,S.info.duration,S.info.C+W,S.info.N-W,S.info.B,S.info.pk,S.info.clipId),a);W.j=S.j;W.B=S.B;return[m,W]}; g.vd=function(S,W,m,a){m=m===void 0?!1:m;a=a===void 0?0:a;if(S.isLocked||W.isLocked||!Jm(S.info,W.info)||S.info.B)return null;if(a){if(S.N.totalLength+W.N.totalLength>a)return null}else if(m&&(m=S.N,a=W.N,m=!(a.C.length?Qrl(m,a.C[0]):1)),m)return null;m=new Wd(S.info.type,S.info.yD,S.info.range,S.info.V,S.info.VD,S.info.startTime,S.info.duration,S.info.C,S.info.N,S.info.B,S.info.pk,S.info.clipId);a=W.info;m.N+=a.N;m.range&&(m.Z+=a.Z);m.X=a.X;m.B=a.B;a=new YQ;GK(a,S.N);GK(a,W.N);m=new Q9(m,a);m.C!= null&&W.C!=null&&g.jB("dash",414627957,"merged slice emsg overridden; prev: "+m.C.VA()+" next: "+W.C.VA());m.C=W.C||S.C;m.B=S.B!==-1?S.B:W.B;m.j=S.j!==-1?S.j:W.j;return m}; g.Hd=function(S){g.Pt(S.info.yD.info)||S.info.yD.info.v1();if(S.B!==-1)return S.B;if(S.C&&Wzj(S.C))return S.B=Wzj(S.C),S.B;if(g.Pt(S.info.yD.info)){var W=g.Xv(S);for(var m=S.info.yD.C,a=NaN,J=NaN,B=0;nk(W,B);){var E=sc(W,B);E.type===1936286840?J=E.data.getUint32(E.dataOffset+8):E.type===1836476516?J=g.pk(E):E.type===1952867444&&isNaN(a)&&(a=g.g2(E));B=u5(E.type)?B+8:B+E.size}!J&&m&&(J=Fj(m));W=a/J}else W=new QX(g.Xv(S)),m=S.X?W:new QX(new DataView(S.info.yD.C.buffer)),a=d2(m),m=W.pos,W.pos=0,Ic(W)? l5(W,231)?(a=Lk(W)*a/1E9,W.pos=m,W=a):(W.pos=m,W=NaN):(W.pos=m,W=NaN);S.B=W||S.info.j;return S.B}; Y1O=function(S,W){S.timestampOffset>0&&(W-=S.timestampOffset);var m=g.Hd(S)+W;y37(S,m);S.timestampOffset=W}; y37=function(S,W){g.Pt(S.info.yD.info)||S.info.yD.info.v1();S.B=W;if(g.Pt(S.info.yD.info)){var m=g.Xv(S);S=S.info.yD.C;for(var a=NaN,J=NaN,B=0;nk(m,B);){var E=sc(m,B);isNaN(a)&&(E.type===1936286840?a=E.data.getUint32(E.dataOffset+8):E.type===1836476516&&(a=g.pk(E)));if(E.type===1952867444){!a&&S&&(a=Fj(S));var y=g.g2(E);isNaN(J)&&(J=Math.round(W*a)-y);var Y=E;y+=J;if(Y.data.getUint8(Y.dataOffset)){var G=Y.data;Y=Y.dataOffset+4;G.setUint32(Y,Math.floor(y/4294967296));G.setUint32(Y+4,y&4294967295)}else Y.data.setUint32(Y.dataOffset+ 4,y)}B=u5(E.type)?B+8:B+E.size}return!0}m=new QX(g.Xv(S));S=S.X?m:new QX(new DataView(S.info.yD.C.buffer));a=d2(S);S=m.pos;m.pos=0;if(Ic(m)&&l5(m,231))if(J=Mt(m,!0),W=Math.floor(W*1E9/a),Math.ceil(Math.log(W)/Math.log(2)/8)>J)W=!1;else{for(a=J-1;a>=0;a--)m.C.setUint8(m.pos+a,W&255),W>>>=8;m.pos=S;W=!0}else W=!1;return W}; MA=function(S,W){W=W===void 0?!1:W;var m=lA(S);S=W?0:S.info.Z;return m||S}; lA=function(S){g.Pt(S.info.yD.info)||S.info.yD.info.v1();if(S.C&&S.info.type===6)return S.C.k8;if(g.Pt(S.info.yD.info)){var W=g.Xv(S);var m=0;W=g.j2(W,1936286840);W=g.R(W);for(var a=W.next();!a.done;a=W.next())a=YqP(a.value),m+=a.M4[0]/a.timescale;m=m||NaN;if(!(m>=0))a:{m=g.Xv(S);W=S.info.yD.C;for(var J=a=0,B=0;nk(m,a);){var E=sc(m,a);if(E.type===1836476516)J=g.pk(E);else if(E.type===1836019558){!J&&W&&(J=Fj(W));if(!J){m=NaN;break a}var y=VX(E.data,E.dataOffset,1953653094),Y=y;y=J;var G=VX(Y.data, Y.dataOffset,1952868452);Y=VX(Y.data,Y.dataOffset,1953658222);var K=Ju(G);Ju(G);K&2&&Ju(G);G=K&8?Ju(G):0;var T=Ju(Y),p=T&1;K=T&4;var q=T&256,F=T&512,O=T&1024;T&=2048;var X=BW(Y);p&&Ju(Y);K&&Ju(Y);for(var l=p=0;l2048?"":W.indexOf("https://")===0?W:""}; iA=function(S,W,m){W.match(gK6);return S(W,m).then(function(a){var J=g.uaO(a.xhr);return J?iA(S,J,m):a.xhr})}; fN=function(S,W,m){S=S===void 0?"":S;W=W===void 0?null:W;m=m===void 0?!1:m;g.au.call(this);var a=this;this.sourceUrl=S;this.isLivePlayback=m;this.g2=this.duration=0;this.isPremiere=this.HG=this.Z=this.isLiveHeadPlayable=this.isLive=this.N=!1;this.jS=this.VU=0;this.isOtf=this.Hv=!1;this.Hn=(0,g.X1)();this.vn=Infinity;this.C={};this.B=new Map;this.state=this.gr=0;this.V=null;this.isManifestless=!1;this.Xn=[];this.j=null;this.Pn=0;this.X="";this.s9=NaN;this.Wm=this.k0=this.timestampOffset=this.S=0;this.Px= this.I9=NaN;this.Ga=0;this.O9=this.N2=!1;this.zN=[];this.hX={};this.Y6=this.q2=NaN;this.f3={vN_:function(y){dn(a,y)}}; var J;this.d2=(J=W)==null?void 0:J.mU("html5_use_network_error_code_enums");Oxj=!!W&&W.mU("html5_modern_vp9_mime_type");var B;Im=!((B=W)==null||!B.mU("html5_enable_flush_during_seek"))&&g.ok();var E;Pd=!((E=W)==null||!E.mU("html5_enable_reset_audio_decoder"))&&g.ok()}; j37=function(S){return g.K6(S.C,function(W){return!!W.info.video&&W.info.video.qualityOrdinal>=2160})}; Zt_=function(S){return g.K6(S.C,function(W){return!!W.info.video&&W.info.video.isHdr()})}; NE=function(S){return g.K6(S.C,function(W){return!!W.info.PG})}; g.Q36=function(S){return g.K6(S.C,function(W){return NZ(W.info.mimeType)})}; XtO=function(S){return g.K6(S.C,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR":!1})}; vKj=function(S){return g.K6(S.C,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Hx7=function(S){return g.K6(S.C,function(W){return W.info.video?W.info.video.projectionType==="MESH":!1})}; lyX=function(S){return g.K6(S.C,function(W){return W.info.video?W.info.video.stereoLayout===1:!1})}; MhK=function(S){return JNc(S.C,function(W){return W.info.video?W.PP():!0})}; tq=function(S){return g.K6(S.C,function(W){return QP(4,W.aL.C)})}; dn=function(S,W){S.C[W.info.id]=W;S.B.set(Ck(W,S.Hv),W)}; hm=function(S,W,m){m=m===void 0?0:m;var a=S.mimeType||"",J=S.itag;var B=S.xtags;J=J?J.toString():"";B&&(J+=";"+B);B=J;if(h3(a)){var E=S.width||640;J=S.height||360;var y=S.fps,Y=S.qualityLabel,G=S.qualityOrdinal,K=S.colorInfo,T=S.projectionType,p;S.stereoLayout&&(p=UZK[S.stereoLayout]);var q=nKP(S)||void 0;if(K==null?0:K.primaries)var F=L6Q[K.primaries]||void 0;E=new lv(E,J,y,T,p,void 0,Y,G&&RzP[G],q,F);a=ks(a,E,Lx[S.itag||""]);Im&&(a+="; enableflushduringseek=true");Pd&&(a+="; enableresetaudiodecoder=true")}var O; if($K(a)){var X=S.audioSampleRate;p=S.audioTrack;X=new qZ(X?+X:void 0,S.audioChannels,S.spatialAudioType,S.isDrc,S.loudnessDb,S.trackAbsoluteLoudnessLkfs,S.audioQuality||"AUDIO_QUALITY_UNKNOWN",S.isVb);p&&(F=p.displayName,J=p.id,y=p.audioIsDefault,p=p.isAutoDubbed,F&&(O=new g.xs(F,J||"",!!y,!!p)))}var l;S.captionTrack&&(Y=S.captionTrack,p=Y.displayName,F=Y.vssId,J=Y.languageCode,y=Y.kind,Y=Y.id,p&&F&&J&&(l=new F6l(p,F,J,y,S.xtags,Y)));p=Number(S.bitrate)/8;F=Number(S.contentLength);J=Number(S.lastModified); Y=S.drmFamilies;y=S.type;m=m&&F?F/m:0;S=Number(S.approxDurationMs);if(W&&Y){var M={};Y=g.R(Y);for(G=Y.next();!G.done;G=Y.next())(G=$s[G.value])&&(M[G]=W[G])}return new R3(B,a,{audio:X,video:E,n3:O,PG:M,o2:p,pw:m,contentLength:F,lastModified:J,captionTrack:l,streamType:y,approxDurationMs:S})}; tm=function(S,W,m){m=m===void 0?0:m;var a=S.type;var J=S.itag;var B=S.xtags;B&&(J=S.itag+";"+B);if(h3(a)){var E=(S.size||"640x360").split("x");E=new lv(+E[0],+E[1],+S.fps,S.projection_type,+S.stereo_layout,void 0,S.quality_label,+S.quality_ordinal,S.eotf,S.primaries);a=ks(a,E,Lx[S.itag]);Im&&(a+="; enableflushduringseek=true");Pd&&(a+="; enableresetaudiodecoder=true")}var y;if($K(a)){var Y=new qZ(+S.audio_sample_rate||void 0,+S.audio_channels||0,S.spatial_audio_type,!!S.drc);S.name&&(y=new g.xs(S.name, S.audio_track_id,S.isDefault==="1",S.isAutoDubbed==="1"))}var G;S.caption_display_name&&S.caption_vss_id&&S.caption_language_code&&(G=new F6l(S.caption_display_name,S.caption_vss_id,S.caption_language_code,S.caption_kind,S.xtags,S.caption_id));B=Number(S.bitrate)/8;var K=Number(S.clen),T=Number(S.lmt);m=m&&K?K/m:0;if(W&&S.drm_families){var p={};for(var q=g.R(S.drm_families.split(",")),F=q.next();!F.done;F=q.next())F=F.value,p[F]=W[F]}return new R3(J,a,{audio:Y,video:E,n3:y,PG:p,o2:B,pw:m,contentLength:K, lastModified:T,captionTrack:G,streamType:S.stream_type,approxDurationMs:Number(S.approx_duration_ms)})}; ezP=function(S){return ap(S,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; xZP=function(S){return ap(S,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; ix7=function(S,W){return S.V?EC(S.V.j,W):S.Xn.length?EC(S.Xn,W):[]}; Am=function(S,W,m){W=W===void 0?"":W;m=m===void 0?"":m;S=new g.H_(S,!0);S.set("alr","yes");m&&(m=Fl(40,decodeURIComponent(m)),S[z[26]](W,encodeURIComponent(m)));return S}; fyO=function(S,W){var m=qA(W,"id");m=m.replace(":",";");var a=qA(W,"mimeType"),J=qA(W,"codecs");a=J?a+'; codecs="'+J+'"':a;J=Number(qA(W,"bandwidth"))/8;var B=Number(pN(W,"BaseURL").getAttribute(S.X+":contentLength")),E=S.duration&&B?B/S.duration:0;if(h3(a)){var y=Number(qA(W,"width"));var Y=Number(qA(W,"height")),G=Number(qA(W,"frameRate")),K=dZ6(qA(W,S.X+":projectionType"));a:switch(qA(W,S.X+":stereoLayout")){case "layout_left_right":var T=1;break a;case "layout_top_bottom":T=2;break a;default:T= 0}y=new lv(y,Y,G,K,T)}if($K(a)){var p=Number(qA(W,"audioSamplingRate"));var q=Number(qA(W.getElementsByTagName("AudioChannelConfiguration")[0],"value"));Y=IyP(qA(W,S.X+":spatialAudioType"));p=new qZ(p,q,Y);a:{q=qA(W,"lang")||"und";if(Y=pN(W,"Role"))if(K=qA(Y,"value")||"",g.HF(PvQ,K)){Y=q+"."+PvQ[K];G=K==="main";S=qA(W,S.X+":langName")||q+" - "+K;q=new g.xs(S,Y,G);break a}q=void 0}}if(W=pN(W,"ContentProtection"))if(W.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var F={};for(W= W.firstChild;W!=null;W=W.nextSibling)W instanceof Element&&/SystemURL/.test(W.nodeName)&&(S=W.getAttribute("type"),Y=W.textContent,S&&Y&&(F[S]=Y.trim()))}else F=void 0;return new R3(m,a,{audio:p,video:y,n3:q,PG:F,o2:J,pw:E,contentLength:B})}; dZ6=function(S){switch(S){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"}}; IyP=function(S){switch(S){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"}}; $ZQ=function(S,W){W=W===void 0?"":W;S.state=1;S.Hn=(0,g.X1)();return s36(W||S.sourceUrl).then(function(m){if(!S.TN()){S.gr=m.status;m=m.responseText;var a=new DOMParser;m=$k(a,FAP(m),"text/xml").getElementsByTagName("MPD")[0];S.vn=AQG(qA(m,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(m.attributes){a=g.R(m.attributes);for(var J=a.next();!J.done;J=a.next())if(J=J.value,J.value==="http://youtube.com/yt/2012/10/10"){a=J.name.split(":")[1];break b}}a=""}S.X=a;S.isLive=S.vn=S.vn}; kxl=function(S){var W=S.vn;isFinite(W)&&(ZB(S)?S.refresh():(W=Math.max(0,S.Hn+W-(0,g.X1)()),S.j||(S.j=new g.rj(S.refresh,W,S),g.Z(S,S.j)),S.j.start(W)))}; thQ=function(S){S=S.C;for(var W in S){var m=S[W].index;if(m.isLoaded())return m.lP()+1}return 0}; NA=function(S){return S.k0?S.k0-(S.S||S.timestampOffset):0}; bA=function(S){return S.Wm?S.Wm-(S.S||S.timestampOffset):0}; om=function(S){if(!isNaN(S.s9))return S.s9;var W=S.C,m;for(m in W){var a=W[m].index;if(a.isLoaded()&&!NZ(W[m].info.mimeType)){W=0;for(m=a.bU();m<=a.lP();m++)W+=a.getDuration(m);W/=a.JA();W=Math.round(W/.5)*.5;a.JA()>10&&(S.s9=W);return W}if(S.isLive&&(a=W[m],a.k8))return a.k8}return NaN}; A3P=function(S,W){S=EpQ(S.C,function(a){return a.index.isLoaded()}); if(!S)return NaN;S=S.index;var m=S.oU(W);return S.getStartTime(m)===W?W:m=0&&J.segments.splice(B,1)}}}; N1j=function(S){for(var W in S.C)NZ(S.C[W].info.mimeType)||C1_(S.C[W].index,Infinity)}; cd=function(S,W,m){for(var a in S.C){var J=S.C[a].index,B=W,E=m;J.d4&&(B&&(J.DW=Math.max(J.DW,B)),E&&(J.oy=Math.max(J.oy||0,E)))}m&&(S.q2=m/1E3)}; bxD=function(S,W,m,a){a!==void 0&&a&&m===S.Y6||(S.Xn.push(W),S.Y6=m,S.publish("cuepointsadded",m))}; oKP=function(S){S.Wm=0;S.k0=0;S.Ga=0}; DB=function(S){return S.O9&&S.isManifestless?S.isLiveHeadPlayable:S.isLive}; ks=function(S,W,m){wn===null&&(wn=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(Oxj&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return wn||m!=="9"&&m!=="("?wn||m!=="9h"&&m!=="(h"||(S='video/webm; codecs="vp9.2"'):S='video/webm; codecs="vp9"',S;if(!wn&&!Sn||S!=='video/webm; codecs="vp9"'&&S!=='video/webm; codecs="vp9.2"')return S; m="00";var a="08",J="01",B="01",E="01";S==='video/webm; codecs="vp9.2"'&&(m="02",a="10",W.primaries==="bt2020"&&(E=J="09"),W.C==="smpte2084"&&(B="16"),W.C==="arib-std-b67"&&(B="18"));return'video/webm; codecs="'+["vp09",m,"51",a,"01",J,B,E,"00"].join(".")+'"'}; mr=function(S,W,m){S=""+S+(W>49?"p60":W>32?"p48":"");W=Hh()[S];if(W!=null&&W>0)return W;W=WT.get(S);if(W!=null&&W>0)return W;m=m==null?void 0:m.get(S);return m!=null&&m>0?m:8192}; c3l=function(S){this.w2=S;this.VT=this.E_=this.Hn=this.X=this.j=this.Xn=this.hX=this.N2=!1;this.Z=this.V=0;this.uY=!1;this.vn=!0;this.d2=!1;this.WQ=0;this.PF=this.Pn=!1;this.Kn=!0;this.zN=this.g2=!1;this.N={};this.Wv=this.EV=this.qd=this.disableAv1=this.vv=this.o6=this.M2=this.IL=this.C=this.S=!1;this.q2=0;this.aY=this.w2.T("html5_disable_aac_preference");this.Cn=Infinity;this.s9=0;this.eg=this.w2.rd();this.lr=this.w2.experiments.mU("html5_enable_vp9_fairplay");this.mQ=this.w2.T("html5_force_av1_for_testing"); this.xP=this.w2.ZH().C.QD(r3_);this.Y6=g.Db(this.w2.experiments,"html5_av1_ordinal_cap");this.Od=this.w2.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.CJ=this.w2.T("html5_account_onesie_format_selection_during_format_filter");this.o2=g.Db(this.w2.experiments,"html5_max_byterate");this.yT=this.w2.T("html5_enable_iamf_audio");this.O9=this.w2.experiments.mU("html5_allow_capability_merge");this.Ys=this.w2.ZH().C.QD(Cvc);this.dA=this.w2.T("html5_enable_encrypted_av1")}; NE7=function(S){if(S.hX)return["f"];if(g.Ni("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var W=["9h","9","h","8"];S.dA&&W.push("1e");W=W.concat(["(h","(","H","*"]);S.Pn&&(W.unshift("1"),W.unshift("1h"));S.E_&&W.unshift("h");S.bY&&(W=(DZK[S.bY]||[S.bY]).concat(W));return W}; f5c=function(S){var W=["o","a","A"];S.s9===1&&(S.j&&(W=["mac3","MAC3"].concat(W)),S.X&&(W=["meac3","MEAC3"].concat(W)),S.yT&&(W=["i","I"].concat(W)));S.N2&&(W=["so","sa"].concat(W));!S.VT||S.Hn||S.B||S.aY||W.unshift("a");S.B&&(W=(DZK[S.B]||[S.B]).concat(W));return W}; aV=function(S,W,m,a){W=W===void 0?{}:W;if(a===void 0?0:a)return W.disabled=1,0;if(ch(S.X,DF.AV1_CODECS)&&ch(S.X,DF.HEIGHT)&&ch(S.X,DF.BITRATE))return W.isCapabilityUsable=1,8192;try{var J=sIQ();if(J&&!S.T("disable_av1_setting"))return W.localPref=J}catch(y){}a=1080;J=navigator.hardwareConcurrency;J<=2&&(a=480);W.coreCount=J;if(J=g.Db(S.experiments,"html5_default_av1_threshold"))a=W["default"]=J;if(S=S.X.N2)W.mcap=S,a=Math.max(a,S);if(m){var B,E;if(S=(B=m.videoInfos.find(function(y){return d1(y)}))== null?void 0:(E=B.N)==null?void 0:E.powerEfficient)a=8192,W.isEfficient=1; m=m.videoInfos[0].video;B=Math.min(mr("1",m.fps),mr("1",30));W.perfCap=B;a=Math.min(a,B);m.isHdr()&&!S&&(W.hdr=1,a*=.75)}else m=mr("1",30),W.perfCap30=m,a=Math.min(a,m),m=mr("1",60),W.perfCap60=m,a=Math.min(a,m);return W.av1Threshold=a}; JJ=function(S,W,m,a){this.flavor=S;this.keySystem=W;this.N=m;this.experiments=a;this.C={};this.mp=this.keySystemAccess=null;this.gz=this.LM=-1;this.xC=null;this.B=!!a&&a.mU("edge_nonprefixed_eme");a&&a.mU("html5_enable_vp9_fairplay")}; EZ=function(S){return S.B?!1:!S.keySystemAccess&&!!BT()&&S.keySystem==="com.microsoft.playready"}; zW=function(S){return S.keySystem==="com.microsoft.playready"}; yg=function(S){return!S.keySystemAccess&&!!BT()&&S.keySystem==="com.apple.fps.1_0"}; YL=function(S){return S.keySystem==="com.youtube.fairplay"}; GW=function(S){return S.keySystem==="com.youtube.fairplay.sbdl"}; g.K9=function(S){return S.flavor==="fairplay"}; BT=function(){var S=window,W=S.MSMediaKeys;cL()&&!W&&(W=S.WebKitMediaKeys);return W&&W.isTypeSupported?W:null}; qT=function(S){return navigator.requestMediaKeySystemAccess?g.y0&&!g.ok()?vn("45"):g.ND||g.pE?S.mU("edge_nonprefixed_eme"):g.TW?vn("47"):g.F1&&S.mU("html5_enable_safari_fairplay")?!1:!0:!1}; wtj=function(S,W,m,a){var J=ru(),B=(m=J||m&&cL())?["com.youtube.fairplay"]:["com.widevine.alpha"];W&&B.unshift("com.youtube.widevine.l3");J&&a&&B.unshift("com.youtube.fairplay.sbdl");return m?B:S?[].concat(g.x(B),g.x(p9.playready)):[].concat(g.x(p9.playready),g.x(B))}; Fx=function(S,W,m,a,J){a=a===void 0?!1:a;g.A.call(this);this.w2=W;this.useCobaltWidevine=a;this.iY=J;this.N=[];this.B={};this.C={};this.callback=null;this.X=!1;this.j=[];this.initialize(S,!m)}; Wpc=function(S,W){S.callback=W;S.j=[];qT(S.w2.experiments)?Vg(S):S__(S)}; Vg=function(S){if(!S.TN())if(S.N.length===0)S.callback(S.j);else{var W=S.N[0],m=S.B[W],a=moK(S,m);if(n9&&n9.keySystem===W&&n9.sUU===JSON.stringify(a))S.iY("remksa",{re:!0}),aYc(S,m,n9.keySystemAccess);else{var J,B;S.iY("remksa",{re:!1,ok:(B=(J=n9)==null?void 0:J.keySystem)!=null?B:""});n9=void 0;navigator.requestMediaKeySystemAccess(W,a).then(z4(function(E){aYc(S,m,E,a)}),z4(function(){S.X=!S.X&&S.B[S.N[0]].flavor==="widevine"; S.X||S.N.shift();Vg(S)}))}}}; aYc=function(S,W,m,a){if(!S.TN()){a&&(n9={keySystem:W.keySystem,keySystemAccess:m,sUU:JSON.stringify(a)});W.keySystemAccess=m;if(zW(W)){m=E1();a=g.R(Object.keys(S.C[W.flavor]));for(var J=a.next();!J.done;J=a.next())J=J.value,W.C[J]=!!m.canPlayType(J)}else{m=W.keySystemAccess.getConfiguration();if(m.audioCapabilities)for(a=g.R(m.audioCapabilities),J=a.next();!J.done;J=a.next())W.C[J.value.contentType]=!0;if(m.videoCapabilities)for(m=g.R(m.videoCapabilities),a=m.next();!a.done;a=m.next())W.C[a.value.contentType]= !0}S.j.push(W);S.useCobaltWidevine||S.T("html5_enable_vp9_fairplay")&&GW(W)?(S.N.shift(),Vg(S)):S.callback(S.j)}}; moK=function(S,W){var m={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(S.T("html5_enable_vp9_fairplay")&&YL(W))return m.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),m.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[m];zW(W)&&(m.initDataTypes=["keyids","cenc"]);for(var a=g.R(Object.keys(S.C[W.flavor])),J=a.next();!J.done;J=a.next()){J=J.value;var B=J.indexOf("audio/")===0,E=B?m.audioCapabilities:m.videoCapabilities;W.flavor!== "widevine"||S.X?E.push({contentType:J}):B?E.push({contentType:J,robustness:"SW_SECURE_CRYPTO"}):(g.y0&&g.Ni("windows nt")&&!S.T("html5_drm_enable_moho")||E.push({contentType:J,robustness:"HW_SECURE_ALL"}),B=J,S.w2.X.N&&J.includes("vp09")&&(B=J+"; experimental=allowed"),E.push({contentType:B,robustness:"SW_SECURE_DECODE"}),sZ(S.w2)==="MWEB"&&(ax()||bO())&&(S.iY("swcrypto",{}),E.push({contentType:J,robustness:"SW_SECURE_CRYPTO"})))}return[m]}; S__=function(S){if(BT()&&(g.F1||wu))S.j.push(new JJ("fairplay","com.apple.fps.1_0","",S.w2.experiments));else{var W=JS7(),m=g.Nx(S.N,function(a){var J=S.B[a],B=!1,E=!1,y;for(y in S.C[J.flavor])W(y,a)&&(J.C[y]=!0,B=B||y.indexOf("audio/")===0,E=E||y.indexOf("video/")===0);return B&&E}); m&&S.j.push(S.B[m]);S.N=[]}S.callback(S.j)}; JS7=function(){var S=BT();if(S){var W=S.isTypeSupported;return function(a,J){return W(J,a)}}var m=E1(); return m&&(m.addKey||m.webkitAddKey)?function(a,J){return!!m.canPlayType(a,J)}:function(){return!1}}; uI=function(S){var W;S=J$((W=S.serializedClientExperimentFlags)!=null?W:"","&");this.flags=new Map(Object.entries(S).map(function(m){var a=g.R(m);m=a.next().value;a=a.next().value;return typeof a==="string"?[m,a]:[m,a[0]]}))}; ySl=function(S,W){switch(W.eL){case "bool":return S.mU(W.G8);case "int":return S=BeD(S,W.G8),TM(S);case "double":return BeD(S,W.G8);case "string":return EHl(S,W.G8);case "int32_list":return zPO(S,W.G8);case "int64_list":return zPO(S,W.G8).map(function(m){return TM(m)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; BeD=function(S,W){S=S.flags.get(""+W);return Number(S)||0}; zPO=function(S,W){if(S=S.flags.get(""+W))if(S=S.replace(/\[ *(.*?) *\]/,"$1"))return S.split(",").map(Number);return[]}; EHl=function(S,W){return(S=S.flags.get(""+W))?S.toString():""}; gJ=function(S,W,m){this.C=void 0;this.experimentIds=S?S.split(","):[];this.flags=J$(W||"","&");S={};W=g.R(this.experimentIds);for(var a=W.next();!a.done;a=W.next())S[a.value]=!0;this.experiments=S;m=new uI(m);this.B=new RhQ(m);this.N=new Ldc(m)}; g.Db=function(S,W,m){m=m===void 0?0:m;S=S.QD(W);JSON.stringify(S);return S===void 0?m:Number(S)}; OZ=function(S,W){return(S=S.QD(W))?S.toString():""}; Y_7=function(S){if(S=S.QD("html5_web_po_experiment_ids"))if(S=S.replace(/\[ *(.*?) *\]/,"$1"))return S.split(",").map(Number);return[]}; G8l=function(S){if(S.C)return S.C;if(S.experimentIds.length<=1)return S.C=S.experimentIds,S.C;var W=[].concat(g.x(S.experimentIds)).map(function(a){return Number(a)}); W.sort();for(var m=W.length-1;m>0;--m)W[m]-=W[m-1];S.C=W.map(function(a){return a.toString()}); S.C.unshift("v1");return S.C}; Tej=function(S){return KpG.then(S)}; jn=function(S,W,m){this.experiments=S;this.q2=W;this.Xn=m===void 0?!1:m;this.S=!!g.v9("cast.receiver.platform.canDisplayType");this.Z={};this.bY=!1;this.B=new Map;this.V=!0;this.C=this.N=!1;this.N2=0;this.vn=this.experiments.mU("html5_disable_vp9_encrypted");this.j=this.experiments.mU("html5_enable_encrypted_av1");S=g.v9("cast.receiver.platform.getValue");this.X=!this.S&&S&&S("max-video-resolution-vpx")||null;q_X(this);this.N=!!(ru()&&Zm()>=21)}; rD_=function(S,W,m){m=m===void 0?1:m;var a=W.itag;if(a==="0")return!0;var J=W.mimeType;if(W.p_==="1e"&&!S.j)return"dav1enc";if(d1(W)&&S.bY)return"dav1";if(W.video&&(W.video.isHdr()||W.video.primaries==="bt2020")&&!(ch(S,DF.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(a==="338"&&!(g.y0?vn(53):g.TW&&vn(64)))return"dopus";var B=m;B=B===void 0?1: B;m={};W.video&&(W.video.width&&(m[DF.WIDTH.name]=W.video.width),W.video.height&&(m[DF.HEIGHT.name]=W.video.height),W.video.fps&&(m[DF.FRAMERATE.name]=W.video.fps*B),W.video.C&&(m[DF.EOTF.name]=W.video.C),W.o2&&(m[DF.BITRATE.name]=W.o2*8*B),W.p_==="("&&(m[DF.CRYPTOBLOCKFORMAT.name]="subsample"),W.video.projectionType==="EQUIRECTANGULAR"||W.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||W.video.projectionType==="MESH")&&(m[DF.DECODETOTEXTURE.name]="true");var E;((E=W.audio)==null?0:E.numChannels)&& W.p_!=="i"&&W.p_!=="I"&&(m[DF.CHANNELS.name]=W.audio.numChannels);S.N&&eh(W)&&(m[DF.EXPERIMENTAL.name]="allowed");E=g.R(Object.keys(DF));for(B=E.next();!B.done;B=E.next()){B=DF[B.value];var y;if(y=m[B.name])if(y=!(B===DF.EOTF&&W.mimeType.indexOf("vp09.02")>0)){y=B;var Y=W;y=!(S.experiments.mU("html5_ignore_h264_framerate_cap")&&y===DF.FRAMERATE&&YmK(Y))}if(y)if(ch(S,B))if(S.X){if(S.X[B.name]1080&&W.PG&&(J+="; hdcp=2.2");return a==="227"?"hqcenc":a!=="585"&&a!=="588"&&a!=="583"&&a!=="586"&&a!=="584"&&a!=="587"&&a!=="591"&&a!=="592"||S.experiments.mU("html5_enable_new_hvc_enc")?ru()&&Zm()>=21&&g.Ni("appletv5")&&(a==="410"||a==="845")?!0:S.isTypeSupported(J)?!0:"tpus":"newhvc"}; Qg=function(){var S=bO()&&!vn(29),W=g.Ni("google tv")&&g.Ni("chrome")&&!vn(30);return S||W?!1:YH()}; pbQ=function(S,W,m){var a=480;W=g.R(W);for(var J=W.next();!J.done;J=W.next()){J=J.value;var B=J.video.qualityOrdinal;B<=1080&&B>a&&rD_(S,J,m)===!0&&(a=B)}return a}; g.Xx=function(S,W){W=W===void 0?!1:W;return Qg()&&S.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!W&&S.canPlayType(E1(),"application/x-mpegURL")?!0:!1}; VJP=function(S){Fpl(function(){for(var W=g.R(Object.keys(DF)),m=W.next();!m.done;m=W.next())ch(S,DF[m.value])})}; ch=function(S,W){W.name in S.Z||(S.Z[W.name]=nHc(S,W));return S.Z[W.name]}; nHc=function(S,W){if(S.X)return!!S.X[W.name];if(W===DF.BITRATE&&S.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!S.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(W===DF.AV1_CODECS)return S.isTypeSupported("video/mp4; codecs="+W.valid)&&!S.isTypeSupported("video/mp4; codecs="+W.C6);if(W.video){var m='video/webm; codecs="vp9"';S.isTypeSupported(m)||(m='video/mp4; codecs="avc1.4d401e"')}else m='audio/webm; codecs="opus"', S.isTypeSupported(m)||(m='audio/mp4; codecs="mp4a.40.2"');return S.isTypeSupported(m+"; "+W.name+"="+W.valid)&&!S.isTypeSupported(m+"; "+W.name+"="+W.C6)}; se6=function(S,W){var m=0;S.B.has(W)&&(m=S.B.get(W).Zp);S.B.set(W,{Zp:m+1,d8:Math.pow(2,m+1)});S.C=!0}; $2G=function(S,W){for(var m=new Map,a=g.R(W.keys()),J=a.next();!J.done;J=a.next()){J=J.value;var B=J.split("_")[0];S.has(B)||m.set(J,W.get(J))}return m}; tEc=function(S,W,m){var a,J=((a=W.video)==null?void 0:a.fps)||0;a=S+"_"+J;var B=!!W.audio,E={itag:W.itag,p_:S,vD:B};if(B)E.numChannels=W.audio.numChannels;else{var y=W.video;E.maxWidth=y==null?void 0:y.width;E.maxHeight=y==null?void 0:y.height;E.maxFramerate=J;E.maxBitrateBps=W.o2*8;E.v9=y==null?void 0:y.isHdr()}y=m.get(a);y?B||(W=Math.max(y.maxWidth||0,y.maxHeight||0)>Math.max(E.maxWidth||0,E.maxHeight||0)?y:E,S={itag:W.itag,p_:S,vD:B,maxWidth:Math.max(y.maxWidth||0,E.maxWidth||0),maxHeight:Math.max(y.maxHeight|| 0,E.maxHeight||0),maxFramerate:J,v9:W.v9},S.maxBitrateBps=W.maxBitrateBps,m.set(a,S)):m.set(a,E)}; q_X=function(S){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(m){m.smooth&&m.powerEfficient&&(S.N2=2160)})}; vT=function(){g.au.call(this);this.items={}}; HT=function(S,W){this.C=S;this.cipher=this.C.exports.AES128CTRCipher_create(W.byteOffset)}; MT=function(){this.N=this.Yo=0;this.C=Array.from({length:lI.length}).fill(0)}; ukl=function(){}; gH6=function(){this.startTimeMs=(0,g.X1)();this.C=!1}; OPX=function(){this.C=new ukl}; jec=function(S,W,m,a){a=a===void 0?1:a;m>=0&&(W in S.C||(S.C[W]=new MT),S.C[W].Am(m,a))}; QeP=function(S,W,m,a,J){var B=(0,g.X1)(),E=J?J(W):void 0,y;J=(y=E==null?void 0:E.Yo)!=null?y:1;if(J!==0){var Y;y=(Y=E==null?void 0:E.profile)!=null?Y:m;jec(S,y,B-a,J)}return W}; Xbl=function(S,W,m,a,J){if(W&&typeof W==="object"){var B=function(E){return QeP(S,E,m,a,J)}; if(ol(W))return W.then(B);if(bL(W))return wB(W,B)}return QeP(S,W,m,a,J)}; vHj=function(){}; HPj=function(S){var W=window;W.ywc||(W.ywc={});var m=W.ywc[S];if(m)return m;m={};return W.ywc[S]=m}; lYl=function(S){var W=window;W.ywc&&delete W.ywc[S]}; MJP=function(S){var W=HPj(S);if(W.binP)return W.binP;W.binP=Promise.resolve().then(function(){return fetch(S)}).then(function(m){if(!m.ok)throw Error("HTTP"+m.statusText); return m.arrayBuffer()}); W.binP.then(function(m){W.bin=m},function(){lYl(S)}); return W.binP}; RPG=function(S,W){return Wh(UoP,function(){var m=this;return function J(){var B,E,y;return F9(J,function(Y){switch(Y.C){case 1:g.yH(Y,2);if(!m.C)throw"wasm.ps.ns";B=S;E=nn;return aZ(Y,mV(LpP(m,W)),4);case 4:y=E(Y.N);if(!y)throw"wasm.ps.um";return aZ(Y,mV(WebAssembly.instantiate(y,B)),5);case 5:return Y.return(Y.N);case 2:g.Kn(Y),g.Tg(Y,0)}})}()})}; LpP=function(S,W){return Wh(S,function(){var m=this;return function J(){var B,E,y,Y,G,K,T,p,q;return F9(J,function(F){switch(F.C){case 1:g.yH(F,2);B=[];E=function(){return"wasm.ps.c: ["+B.map(function(O){return'"'+O+'"'}).join(", ")+"]"}; y=HPj(W);if(y.mod)return F.return(y.mod);if(!y.modP){F.cn(4);break}g.EQ(F,5);Y=nn;return aZ(F,mV(y.modP),7);case 7:return F.return(Y(F.N));case 5:g.Gg(F),B.unshift("pcm");case 4:if((G=y.bin)||!y.binP){F.cn(8);break}g.EQ(F,9);K=nn;return aZ(F,mV(y.binP),11);case 11:G=K(F.N);g.Yp(F,8);break;case 9:g.Gg(F),B.unshift("pfb");case 8:if(G){F.cn(12);break}g.EQ(F,13);T=nn;return aZ(F,mV(MJP(W)),15);case 15:G=T(F.N);g.Yp(F,12);break;case 13:throw g.Gg(F),m.C=!1,B.unshift("fb"),E();case 12:return g.EQ(F,16), p=nn,aZ(F,mV(WebAssembly.compile(G)),18);case 18:return F.return(p(F.N));case 16:q=g.Gg(F),lYl(W),B.unshift("ca: "+q);case 17:throw E();case 2:g.Kn(F),g.Tg(F,0)}})}()})}; ePP=function(){}; xoD=function(){var S=this;this.proc_exit=function(){}; this.fd_write=function(W,m,a){if(!S.exports)return 1;W=new Uint32Array(S.exports.memory.buffer,m,a*2);m=[];for(var J=0;J0&&tJ<=2.3;y=W?W.useNativeControls:S.use_native_controls;this.Z=g.f9(this)&&this.N;Y=this.N&&!this.Z;y=g.AJ(this)||!E&&E2(Y,y)?"3":"1";this.disableOrganicUi=!(W==null||!W.disableOrganicUi);Y=W?W.controlsType:S.controls;this.controlsType=this.disableOrganicUi||Y==="0"||Y===0?"0":y;this.ZN=this.N;this.color=z1("red",W?W.progressBarColor:S.color,oH_);this.ER=this.controlsType==="3";this.EV=!this.j;this.SY=(y=!this.EV&& !$L(this)&&!this.vn&&!this.V&&!kL(this))&&!this.ER&&this.controlsType==="1";this.VT=g.ZI(this)&&y&&this.controlsType==="0"&&!this.SY&&!(W==null?0:W.embedsEnableEmc3ds);this.ZI=this.Xv=E;this.Cn=(this.controlsType==="3"||this.N||E2(!1,S.use_media_volume))&&!this.Z;this.Ul=wu&&!g.wb(601)?!1:!0;this.YN=this.j||!1;this.xK=$L(this)?"":(this.loaderUrl||S.post_message_origin||"").substring(0,128);this.widgetReferrer=YR("",W?W.widgetReferrer:S.widget_referrer);var G;W?W.disableCastApi&&(G=!1):G=S.enablecastapi; G=!this.S||E2(!0,G);E=!0;W&&W.disableMdxCast&&(E=!1);this.uO=this.T("enable_cast_for_web_unplugged")&&g.NT(this)&&E||g.IL(this)&&E||G&&E&&this.controlsType==="1"&&!this.N&&($L(this)||g.ZI(this)||g.bI(this));this.Op=!!window.document.pictureInPictureEnabled||Gx();G=W?!!W.supportsAutoplayOverride:E2(!1,S.autoplayoverride);this.pJ=!(this.N&&!g.f9(this))&&!g.Ni("nintendo wiiu")||G;this.RU=(W?!!W.enableMutedAutoplay:E2(!1,S.mutedautoplay))&&!1;G=($L(this)||kL(this))&&this.playerStyle==="blazer";this.Mp= W?!!W.disableFullscreen:!E2(!0,S.fs);E=g.q5(g.oV(this))&&g.f9(this);this.uY=!this.Mp&&(G||g.gU())&&!E;this.a4=this.T("html5_picture_in_picture_logging_onresize");var K;this.Ph=(K=g.Db(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?K:.33;this.SI=this.T("html5_picture_in_picture_blocking_onresize");this.CE=this.T("html5_picture_in_picture_blocking_ontimeupdate");this.N1=this.T("html5_picture_in_picture_blocking_document_fullscreen");this.ih=this.T("html5_picture_in_picture_blocking_standard_api"); K=bO()&&vn(58)&&!ax();G=Zf||typeof MediaSource==="undefined";this.Ea=this.T("uniplayer_block_pip")&&(K||G)||this.SI||this.CE||this.ih;K=g.f9(this)&&!this.DN;var T;W?W.disableRelatedVideos!==void 0&&(T=!W.disableRelatedVideos):T=S.rel;this.qd=K||E2(!this.V,T);this.Vj=E2(!1,W?W.enableContentOwnerRelatedVideos:S.co_rel);this.bY=ax()&&tJ>0&&tJ<=4.4?"_top":"_blank";this.bJ=g.bI(this);this.V4=E2(this.playerStyle==="blazer",W?W.enableCsiLogging:S.enablecsi);switch(this.playerStyle){case "blogger":T="bl"; break;case "discover-ads":T="dd";break;case "gmail":T="gm";break;case "gac":T="ga";break;case "ads-preview":T="ap";break;case "ads-fe":T="adfe";break;case "books":T="gb";break;case "docs":case "flix":T="gd";break;case "duo":T="gu";break;case "google-live":T="gl";break;case "google-one":T="go";break;case "play":case "play-ads":T="gp";break;case "chat":T="hc";break;case "hangouts-meet":T="hm";break;case "photos-edu":case "picasaweb":T="pw";break;default:T="yt"}this.N2=T;this.Xn=YR("",W?W.authorizedUserIndex: S.authuser);this.Wv=g.f9(this)&&(this.lr||!oF_()||this.g2);var p;W?W.disableWatchLater!==void 0&&(p=!W.disableWatchLater):p=S.showwatchlater;this.yT=((T=!this.Wv)||!!this.Xn&&T)&&E2(!this.vn,this.S?p:void 0);this.Od=W?W.isMobileDevice||!!W.disableKeyboardControls:E2(!1,S.disablekb);this.loop=E2(!1,S.loop);this.pageId=YR("",W?W.initialDelegatedSessionId:S.pageid);this.TJ=E2(!0,S.canplaylive);this.pU=this.experiments.mU("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.PT=E2(!1,S.livemonitor); this.disableSharing=E2(this.V,W?W.disableSharing:S.ss);(p=W&&this.T("fill_video_container_size_override_from_wpcc")?W.videoContainerOverride:S.video_container_override)?(T=p.split("x"),T.length!==2?p=null:(p=Number(T[0]),T=Number(T[1]),p=isNaN(p)||isNaN(T)||p*T<=0?null:new g.BI(p,T))):p=null;this.lR=p;this.mute=W?!!W.startMuted:E2(!1,S.mute);this.storeUserVolume=!this.mute&&E2(this.controlsType!=="0",W?W.storeUserVolume:S.store_user_volume);p=W?W.annotationsLoadPolicy:S.iv_load_policy;this.annotationsLoadPolicy= this.controlsType==="3"?3:z1(void 0,p,rJ);this.captionsLanguagePreference=W?W.captionsLanguagePreference||"":YR("",S.cc_lang_pref);p=z1(2,W?W.captionsLanguageLoadPolicy:S.cc_load_policy,rJ);this.controlsType==="3"&&p===2&&(p=3);this.xT=p;this.Kn=W?W.hl||"en_US":YR("en_US",S.hl);this.region=W?W.contentRegion||"US":YR("US",S.cr);this.hostLanguage=W?W.hostLanguage||"en":YR("en",S.host_language);this.DI=!this.lr&&Math.random()=0&&S0&&S.xk&&(a.sort(),g.Ue(new g.uc("Player client parameters changed after startup",a)));S.userAge=yw(S.userAge,W.user_age);S.Q2=YR(S.Q2,W.user_display_email);S.userDisplayImage=YR(S.userDisplayImage,W.user_display_image);g.ft(S.userDisplayImage)||(S.userDisplayImage= "");S.userDisplayName=YR(S.userDisplayName,W.user_display_name);S.ZF=YR(S.ZF,W.user_gender);S.csiPageType=YR(S.csiPageType,W.csi_page_type);S.csiServiceName=YR(S.csiServiceName,W.csi_service_name);S.V4=E2(S.V4,W.enablecsi);S.pageId=YR(S.pageId,W.pageid);if(m=W.enabled_engage_types)S.enabledEngageTypes=new Set(m.split(","));W.living_room_session_po_token&&(S.CC=W.living_room_session_po_token.toString())}; SX=function(S,W){return!S.V&&bO()&&vn(55)&&S.controlsType==="3"&&!W}; g.WY=function(S){S=C9(S.dE);return S==="www.youtube-nocookie.com"?"www.youtube.com":S}; mx=function(S,W,m){return S.protocol+"://i1.ytimg.com/vi/"+W+"/"+(m||"hqdefault.jpg")}; ay=function(S){return $L(S)&&!g.NT(S)}; g.AJ=function(S){return S.T("html5_local_playsinline")?wu&&!g.wb(602)&&!("playsInline"in E1()):wu&&!S.N0||g.Ni("nintendo wiiu")?!0:!1}; sZ=function(S){return S.C.c}; g.pt=function(S){return/^TVHTML5/.test(sZ(S))}; JK=function(S){return sZ(S)==="TVHTML5"}; tJD=function(S){return sZ(S)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; CV_=function(S){return S.C.cmodel==="CHROMECAST ULTRA/STEAK"||S.C.cmodel==="CHROMECAST/STEAK"}; g.BY=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; q2=function(S){return/web/i.test(sZ(S))}; g.EV=function(S){return sZ(S).toUpperCase()==="WEB"}; DI=function(S){return sZ(S)==="WEB_KIDS"}; g.NT=function(S){return sZ(S)==="WEB_UNPLUGGED"}; zJ=function(S){return sZ(S)==="TVHTML5_UNPLUGGED"}; g.TS=function(S){return g.NT(S)||sZ(S)==="TV_UNPLUGGED_CAST"||zJ(S)}; g.IL=function(S){return sZ(S)==="WEB_REMIX"}; g.y2=function(S){return sZ(S)==="WEB_MUSIC_INTEGRATIONS"}; var qPP=function(S,W){return Fl[z[7]](this,1,S,W)}; g.Y5=function(S){return sZ(S)==="WEB_EMBEDDED_PLAYER"}; g.K1=function(S){return(S.deviceIsAudioOnly||!g.y0||Zf||S.controlsType==="3"?!1:g.mm?S.j&&g.wb(51):!0)||(S.deviceIsAudioOnly||!g.TW||Zf||S.controlsType==="3"?!1:g.mm?S.j&&g.wb(48):g.wb(38))||(S.deviceIsAudioOnly||!g.IV||Zf||S.controlsType==="3"?!1:g.mm?S.j&&g.wb(37):g.wb(27))||!S.deviceIsAudioOnly&&g.GJ&&!Dk_()&&g.wb(11)||!S.deviceIsAudioOnly&&g.F1&&g.wb("604.4")}; SnP=function(S){if(g.ZI(S)&&hJ)return!1;if(g.TW){if(!g.wb(47)||!g.wb(52)&&g.wb(51))return!1}else if(g.F1)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; mF7=function(S,W){return S.enabledEngageTypes.has(W.toString())||WOQ.includes(W)}; $L=function(S){return S.q2==="detailpage"}; g.ZI=function(S){return S.q2==="embedded"}; TJ=function(S){return S.q2==="leanback"}; kL=function(S){return S.q2==="adunit"||S.playerStyle==="gvn"}; g.bI=function(S){return S.q2==="profilepage"}; g.f9=function(S){return S.j&&g.ZI(S)&&!kL(S)&&!S.V}; q_=function(S){if(!S.userDisplayImage)return"";var W=S.userDisplayImage.split("/");if(W.length===5)return S=W[W.length-1].split("="),S[1]="s20-c",W[W.length-1]=S.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.Ue(new g.uc("Profile image not a FIFE URL.",S.userDisplayImage));return S.userDisplayImage}; g.p1=function(S){var W=g.WY(S);ad6.includes(W)&&(W="www.youtube.com");return S.protocol+"://"+W}; g.Fm=function(S,W){W=W===void 0?"":W;if(S.zf){var m=new Vn,a,J=S.zf();J.signedOut?a="":J.token?a=J.token:J.pendingResult.then(function(B){J.signedOut?m.resolve(""):m.resolve(B.token)},function(B){g.Ue(new g.uc("b189348328_oauth_callback_failed",{error:B})); m.resolve(W)}); return a!==void 0?du(a):new x0(m)}return du(W)}; V2=function(S,W){W=W===void 0?"":W;return S.y4?rB(!0):SP(wB(rB(g.Fm(S,W)),function(m){return rB(!!m)}),function(){return rB(!1)})}; JgP=function(S){var W;return!((W=S.webPlayerContextConfig)==null||!W.enableSelfProfilingLogging)}; BZl=function(S,W){S.dA=W;var m,a;(m=S.eg)!=null&&(a=m.C)!=null&&(a.C=new en(W,a.N,a.B),g.Z(a,a.C));W.C?S.Q6.push("asmjs"):S.Q6.push("wasm")}; C9=function(S){var W=g.vj(S);return(S=Number(g.Xd(S)[4]||null)||null)?W+":"+S:W}; n1=function(S,W){W=W===void 0?!1:W;var m=Lx[S],a=EW_[m],J=z9l[S];if(!J||!a)return null;W=new lv(W?J.height:J.width,W?J.width:J.height,J.fps);a=ks(a,W,m);return new R3(S,a,{video:W,o2:J.bitrate/8})}; YnQ=function(S){var W=EW_[Lx[S]],m=ygP[S];return m&&W?new R3(S,W,{audio:new qZ(m.audioSampleRate,m.numChannels)}):null}; sV=function(S){this.C=S}; uh=function(S,W,m,a){if(m)return iO();m={};var J=E1();W=g.R(W);for(var B=W.next();!B.done;B=W.next())if(B=B.value,S.canPlayType(J,B.getInfo().mimeType)||a){var E=B.C.video.quality;if(!m[E]||m[E].getInfo().v1())m[E]=B}S=[];m.auto&&S.push(m.auto);a=g.R(MZ);for(J=a.next();!J.done;J=a.next())(J=m[J.value])&&S.push(J);return S.length?du(S):iO()}; Gr6=function(S){this.itag=S.itag;this.url=S.url;this.codecs=S.codecs;this.width=S.width;this.height=S.height;this.fps=S.fps;this.bitrate=S.bitrate;var W;this.N=((W=S.audioItag)==null?void 0:W.split(","))||[];this.eh=S.eh;this.PG=S.PG||"";this.n3=S.n3;this.audioChannels=S.audioChannels;this.C=""}; KO_=function(S,W,m,a){W=W===void 0?!1:W;m=m===void 0?!0:m;a=a===void 0?{}:a;var J={};S=g.R(S);for(var B=S.next();!B.done;B=S.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)){a[B.itag]="tpus";continue}}if(m||!B.drm_families||B.eotf!=="smpte2084"&&B.eotf!=="arib-std-b67"){E=void 0;var y={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},Y=B.type.match(/codecs="([^"]*)"/); Y=Y?Y[1]:"";B.audio_track_id&&(E=new g.xs(B.name,B.audio_track_id,!!B.is_default));var G=B.eotf;B=new Gr6({itag:B.itag,url:B.url,codecs:Y,width:Number(B.width),height:Number(B.height),fps:Number(B.fps),bitrate:Number(B.bitrate),audioItag:B.audio_itag,eh:G?y[G]:void 0,PG:B.drm_families,n3:E,audioChannels:Number(B.audio_channels)});J[B.itag]=J[B.itag]||[];J[B.itag].push(B)}else a[B.itag]="enchdr"}return J}; TZP=function(S,W,m,a,J){this.B=S;this.N=W;this.X=m;this.cpn=a;this.V=J;this.j=0;this.C=""}; qnG=function(S,W){S.B.some(function(m){var a;return((a=m.n3)==null?void 0:a.getId())===W}); S.C=W}; gq=function(S,W,m){S.cpn&&(W=g.ex(W,{cpn:S.cpn}));m&&(W=g.ex(W,{paired:m}));return W}; pi_=function(S,W){S=S.itag.toString();W!==null&&(S+=W.itag.toString());return S}; FO6=function(S){for(var W=[],m=[],a=g.R(S.N),J=a.next();!J.done;J=a.next())J=J.value,J.bitrate<=S.j?W.push(J):m.push(J);W.sort(function(B,E){return E.bitrate-B.bitrate}); m.sort(function(B,E){return B.bitrate-E.bitrate}); S.N=W.concat(m)}; OV=function(S,W,m){this.C=S;this.N=W;this.expiration=m;this.aL=null}; VN_=function(S,W){if(!(Zf||cL()||ru()))return null;S=KO_(W,S.T("html5_filter_fmp4_in_hls"));if(!S)return null;W=[];for(var m={},a=g.R(Object.keys(S)),J=a.next();!J.done;J=a.next()){J=g.R(S[J.value]);for(var B=J.next();!B.done;B=J.next()){var E=B.value;E.n3&&(B=E.n3.getId(),m[B]||(E=new g.x1(B,E.n3),m[B]=E,W.push(E)))}}return W.length>0?W:null}; Ob6=function(S,W,m,a,J,B,E){if(!(Zf||cL()||ru()))return iO();var y={},Y=nWX(m),G=KO_(m,S.T("html5_filter_fmp4_in_hls"),S.X.V,y);if(!G)return E({noplst:1}),iO();si7(G);m={};var K=(m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m),T;m=[];var p=[],q=[],F=null,O="";a=a&&a.match(/hls_timedtext_playlist/)?new Gr6({itag:"0",url:a,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,n3:new g.xs("English","en",!1)}):null;for(var X=g.R(Object.keys(G)),l=X.next();!l.done;l=X.next())if(l=l.value,!S.T("html5_disable_drm_hfr_1080")|| l!=="383"&&l!=="373"){l=g.R(G[l]);for(var M=l.next();!M.done;M=l.next())if(M=M.value,M.width){for(var e=g.R(M.N),d=e.next();!d.done;d=e.next())if(d=d.value,G[d]){M.C=d;break}M.C||(M.C=uwQ(G,M));if(e=G[M.C])if(m.push(M),M.PG==="fairplay"&&(T=K),d="",M.eh==="PQ"?d="smpte2084":M.eh==="HLG"&&(d="arib-std-b67"),d&&(O=d),q.push(gW6(e,[M],a,B,M.itag,M.width,M.height,M.fps,Y,void 0,void 0,T,d)),!F||M.width*M.height*M.fps>F.width*F.height*F.fps)F=M}else p.push(M)}else y[l]="disdrmhfr";q.reduce(function(t, h){return h.getInfo().isEncrypted()&&t},!0)&&(T=K); J=Math.max(J,0);K=F||{};G=K.fps===void 0?0:K.fps;F=K.width===void 0?0:K.width;K=K.height===void 0?0:K.height;X=S.T("html5_native_audio_track_switching");q.push(gW6(p,m,a,B,"93",F,K,G,Y,"auto",J,T,O,X));Object.entries(y).length&&E(y);return uh(S.X,q,SX(S,W),!1)}; gW6=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q){for(var F=0,O="",X=g.R(S),l=X.next();!l.done;l=X.next())l=l.value,O||(O=l.itag),l.audioChannels&&l.audioChannels>F&&(F=l.audioChannels,O=l.itag);J=new R3(J,"application/x-mpegURL",{audio:new qZ(0,F),video:new lv(B,E,y,null,void 0,G,void 0,void 0,p),PG:T,tI:O});S=new TZP(S,W,m?[m]:[],a,!!q);S.j=K?K:1369843;return new OV(J,S,Y)}; nWX=function(S){S=g.R(S);for(var W=S.next();!W.done;W=S.next())if(W=W.value,W.url&&(W=W.url.split("expire/"),!(W.length<=1)))return+W[1].split("/")[0];return NaN}; uwQ=function(S,W){for(var m=g.R(Object.keys(S)),a=m.next();!a.done;a=m.next()){a=a.value;var J=S[a][0];if(!J.width&&J.PG===W.PG&&!J.audioChannels)return a}return""}; si7=function(S){for(var W=new Set,m=g.R(Object.values(S)),a=m.next();!a.done;a=m.next())a=a.value,a.length&&(a=a[0],a.height&&a.codecs.startsWith("vp09")&&W.add(a.height));m=[];if(W.size){a=g.R(Object.keys(S));for(var J=a.next();!J.done;J=a.next())if(J=J.value,S[J].length){var B=S[J][0];B.height&&W.has(B.height)&&!B.codecs.startsWith("vp09")&&m.push(J)}}W=g.R(m);for(m=W.next();!m.done;m=W.next())delete S[m.value]}; jX=function(S,W){this.C=S;this.N=W}; jiO=function(S,W,m,a){var J=[];m=g.R(m);for(var B=m.next();!B.done;B=m.next()){var E=B.value;if(E.url){B=new g.H_(E.url,!0);if(E.s){var y=B,Y=E.sp,G=Fl(41,decodeURIComponent(E.s));y[z[26]](Y,encodeURIComponent(G))}y=g.R(Object.keys(a));for(Y=y.next();!Y.done;Y=y.next())Y=Y.value,B.set(Y,a[Y]);E=bv(E.type,E.quality,E.itag,E.width,E.height);J.push(new jX(E,B))}}return uh(S.X,J,SX(S,W),!1)}; Q2=function(S,W){this.C=S;this.N=W}; QiX=function(S,W,m){var a=[];m=g.R(m);for(var J=m.next();!J.done;J=m.next())if((J=J.value)&&J.url){var B=bv(J.type,"medium","0");a.push(new Q2(B,J.url))}return uh(S.X,a,SX(S,W),!1)}; XiG=function(S,W){var m=[],a=bv(W.type,"auto",W.itag);m.push(new Q2(a,W.url));return uh(S.X,m,!1,!0)}; HbD=function(S){return S&&vW6[S]?vW6[S]:null}; ldj=function(S){switch(S){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return S;default:return"sabr.config"}}; MNP=function(S){if(S=S.commonConfig)this.url=S.url,this.urlQueryOverride=S.urlQueryOverride,S.ustreamerConfig&&(this.QQ=xL(S.ustreamerConfig)||void 0)}; UFl=function(S,W){var m;if(W=W==null?void 0:(m=W.watchEndpointSupportedOnesieConfig)==null?void 0:m.html5PlaybackOnesieConfig)S.Qw=new MNP(W)}; g.Xm=function(S){S=S===void 0?{}:S;this.languageCode=S.languageCode||"";this.languageName=S.languageName||null;this.kind=S.kind||"";this.name=S.name===void 0?null:S.name;this.displayName=S.displayName||null;this.id=S.id||null;this.C=S.is_servable||!1;this.isTranslateable=S.is_translateable||!1;this.url=S.url||null;this.vssId=S.vss_id||"";this.isDefault=S.is_default||!1;this.translationLanguage=S.translationLanguage||null;this.xtags=S.xtags||"";this.captionId=S.captionId||""}; g.HY=function(S){var W={languageCode:S.languageCode,languageName:S.languageName,displayName:g.vY(S),kind:S.kind,name:S.name,id:S.id,is_servable:S.C,is_default:S.isDefault,is_translateable:S.isTranslateable,vss_id:S.vssId};S.xtags&&(W.xtags=S.xtags);S.captionId&&(W.captionId=S.captionId);S.translationLanguage&&(W.translationLanguage=S.translationLanguage);return W}; g.lh=function(S){return S.translationLanguage?S.translationLanguage.languageCode:S.languageCode}; g.LOO=function(S){var W=S.vssId;S.translationLanguage&&W&&(W="t"+W+"."+g.lh(S));return W}; g.vY=function(S){var W=[];if(S.displayName)W.push(S.displayName);else{var m=S.languageName||"";W.push(m);S.kind==="asr"&&m.indexOf("(")===-1&&W.push(" (Automatic Captions)");S.name&&W.push(" - "+S.name)}S.translationLanguage&&W.push(" >> "+S.translationLanguage.languageName);return W.join("")}; ibO=function(S,W,m,a){S||(S=W&&R96.hasOwnProperty(W)&&e96.hasOwnProperty(W)?e96[W]+"_"+R96[W]:void 0);W=S;if(!W)return null;S=W.match(xFc);if(!S||S.length!==5)return null;if(S=W.match(xFc)){var J=Number(S[3]),B=[7,8,10,5,6];S=!(Number(S[1])===1&&J===8)&&B.indexOf(J)>=0}else S=!1;return m||a||S?W:null}; M_=function(S,W){for(var m={},a=g.R(Object.keys(dFP)),J=a.next();!J.done;J=a.next()){J=J.value;var B=W?W+J:J;B=S[B+"_webp"]||S[B];g.ft(B)&&(m[dFP[J]]=B)}return m}; UV=function(S){var W={};if(!S||!S.thumbnails)return W;S=S.thumbnails.filter(function(y){return!!y.url}); S.sort(function(y,Y){return y.width-Y.width||y.height-Y.height}); for(var m=g.R(Object.keys(IdX)),a=m.next();!a.done;a=m.next()){var J=Number(a.value);a=IdX[J];for(var B=g.R(S),E=B.next();!E.done;E=B.next())if(E=E.value,E.width>=J){J=PyK(E.url);g.ft(J)&&(W[a]=J);break}}(S=S.pop())&&S.width>=1280&&(S=PyK(S.url),g.ft(S)&&(W["maxresdefault.jpg"]=S));return W}; PyK=function(S){return S.startsWith("//")?"https:"+S:S}; L1=function(S){return S&&S.baseUrl||""}; Ry=function(S){S=g.zc(S);for(var W=g.R(Object.keys(S)),m=W.next();!m.done;m=W.next()){m=m.value;var a=S[m];S[m]=Array.isArray(a)?a[0]:a}return S}; kr_=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next())if(m=m.value.playerAnnotationsUrlsRenderer){m.adsOnly&&(S.XN=!0);if(W=m.loadPolicy)S.annotationsLoadPolicy=fdj[W];if(W=m.invideoUrl)S.hm=kf(W);S.O5=!0;break}}; $FX=function(S,W){S.botguardData=W.playerAttestationRenderer.botguardData;W=W.playerAttestationRenderer.challenge;W!=null&&(S.Y2=W)}; tNP=function(S,W){S.captionTracks=[];if(W.captionTracks)for(var m=g.R(W.captionTracks),a=m.next();!a.done;a=m.next()){a=a.value;var J=h9X(a.baseUrl);if(!J)return;J={is_translateable:!!a.isTranslatable,languageCode:a.languageCode,languageName:a.name&&g.K8(a.name),url:J,vss_id:a.vssId,kind:a.kind};J.name=a.trackName;J.displayName=a.name&&g.K8(a.name);S.captionTracks.push(new g.Xm(J))}S.z5=W.audioTracks||[];S.RP=W.defaultAudioTrackIndex||0;S.Du=[];if(W.translationLanguages)for(m=g.R(W.translationLanguages), a=m.next();!a.done;a=m.next()){J=a.value;a={};a.languageCode=J.languageCode;a.languageName=g.K8(J.languageName);if(J.translationSourceTrackIndices){a.translationSourceTrackIndices=[];for(var B=g.R(J.translationSourceTrackIndices),E=B.next();!E.done;E=B.next())a.translationSourceTrackIndices.push(E.value)}if(J.excludeAudioTrackIndices)for(a.excludeAudioTrackIndices=[],J=g.R(J.excludeAudioTrackIndices),B=J.next();!B.done;B=J.next())a.excludeAudioTrackIndices.push(B.value);S.Du.push(a)}S.F4=[];if(W.defaultTranslationSourceTrackIndices)for(m= g.R(W.defaultTranslationSourceTrackIndices),a=m.next();!a.done;a=m.next())S.F4.push(a.value);S.hS=!!W.contribute&&!!W.contribute.captionsMetadataRenderer}; Zbl=function(S,W,m){var a=W.errorScreen;if(!(a&&(a.playerLegacyDesktopYpcOfferRenderer||a.playerLegacyDesktopYpcTrailerRenderer||a.ypcTrailerRenderer)||m&&m.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(W.status))){S.errorCode=HbD(W.errorCode)||"auth";if(m=a&&a.playerErrorMessageRenderer){S.playerErrorMessageRenderer=m;var J=m.reason;J&&(S.errorReason=g.K8(J));if(m=m.subreason)S.eI=g.K8(m),S.KM=m}else S.errorReason=W.reason||null;m=W.status;if(m==="LOGIN_REQUIRED")S.errorDetail= "1";else if(m==="CONTENT_CHECK_REQUIRED")S.errorDetail="2";else if(m==="AGE_CHECK_REQUIRED")W=(W=W.errorScreen)&&W.playerKavRenderer,S.errorDetail=W&&W.kavUrl?"4":"3";else{var B,E,y;a=(y=a==null?void 0:(B=a.playerErrorMessageRenderer)==null?void 0:(E=B.proceedButton)==null?void 0:E.buttonRenderer)==null?void 0:y.command;if(W.isBlockedInRestrictedMode)S.errorDetail="5";else{var Y;((Y=g.n(a,AgK))==null?void 0:Y.signal)==="RELOAD_PAGE"?S.errorDetail="7":S.errorDetail="0"}}}}; NZG=function(S,W){S.aK=!0;var m=W.heartbeatToken;m&&(S.drmSessionId=W.drmSessionId||"",S.heartbeatToken=m,S.W_=Number(W.intervalMilliseconds),S.tf=Number(W.maxRetries),S.WV=!!W.softFailOnError,S.zb=!!W.useInnertubeHeartbeatsForDrm);S.heartbeatServerData=W.heartbeatServerData;var a;S.IH=!((a=W.heartbeatAttestationConfig)==null||!a.requiresAttestation)}; rgO=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var a=m.interstitials.map(function(E){var y=g.n(E,bb_);if(y)return{is_yto_interstitial:!0,raw_player_response:y};if(E=g.n(E,oWX))return Object.assign({is_yto_interstitial:!0},Gj(E))}); a=g.R(a);for(var J=a.next();!J.done;J=a.next())switch(J=J.value,m.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":S.interstitials=S.interstitials.concat({time:0,playerVars:J,RX:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":S.interstitials=S.interstitials.concat({time:0x7ffffffffffff,playerVars:J,RX:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var B=Number(m.podConfig.timeToInsertAtMillis);S.interstitials=S.interstitials.concat({time:B,playerVars:J, RX:B===0?5:7})}}}; Cy_=function(S,W){if(W=W.find(function(m){return!(!m||!m.tooltipRenderer)}))S.tooltipRenderer=W.tooltipRenderer}; cgl=function(S,W){W.subscribeCommand&&(S.subscribeCommand=W.subscribeCommand);W.unsubscribeCommand&&(S.unsubscribeCommand=W.unsubscribeCommand);W.addToWatchLaterCommand&&(S.addToWatchLaterCommand=W.addToWatchLaterCommand);W.removeFromWatchLaterCommand&&(S.removeFromWatchLaterCommand=W.removeFromWatchLaterCommand);W.getSharePanelCommand&&(S.getSharePanelCommand=W.getSharePanelCommand)}; DFc=function(S,W){W!=null?(S.Tw=W,S.uP=!0):(S.Tw="",S.uP=!1)}; WL7=function(S,W){if(W=W.playerControlsOverlayRenderer)DFc(S,W.controlBgHtml),W.mutedAutoplay?(W=g.n(W.mutedAutoplay,wiX))&&W.endScreen&&(W=g.n(W.endScreen,S4K))&&W.text&&(S.Rt=g.K8(W.text)):S.mutedAutoplay=!1}; mgl=function(S,W){var m=W.backgroundability;m&&m.backgroundabilityRenderer.backgroundable&&(S.backgroundable=!0);var a,J;if((a=W.offlineability)==null?0:(J=a.offlineabilityRenderer)==null?0:J.offlineable)S.offlineable=!0;if(m=W.contextParams)S.contextParams=m;(m=W.pictureInPicture)&&m.pictureInPictureRenderer.playableInPip&&(S.pipable=!0);W.playableInEmbed&&(S.allowEmbed=!0);if(m=W.ypcClickwrap)W=m.playerLegacyDesktopYpcClickwrapRenderer,m=m.ypcRentalActivationRenderer,W?(S.G$=W.durationMessage|| "",S.Hh=!0):m&&(W=m.durationMessage,S.G$=W?g.K8(W):"",S.Hh=!0)}; Jfj=function(S,W,m){var a=L1(W.googleRemarketingUrl);a&&(S.googleRemarketingUrl=a);if(a=L1(W.youtubeRemarketingUrl))S.youtubeRemarketingUrl=a;if(a=W.heartbeatLoggingToken)S.heartbeatLoggingToken=a;a={};var J=L1(W.ptrackingUrl);if(J){J=Ry(J);var B=J.oid;B&&(S.oF=B);if(B=J.pltype)S.Ct=B;if(B=J.ptchn)S.Me=B;if(B=J.ptk)S.bb=encodeURIComponent(B);if(J=J.m)S.G4=J}if(J=L1(W.qoeUrl)){J=g.zc(J);B=g.R(Object.keys(J));for(var E=B.next();!E.done;E=B.next()){E=E.value;var y=J[E];J[E]=Array.isArray(y)?y.join(","): y}S.lE=J;if(B=J.cat)S.T("html5_enable_qoe_cat_list")?S.r9=S.r9.concat(B.split(",")):S.Q6=B;if(B=J.live)S.m_=B;if(J=J.drm_product)S.drmProduct=J}if(J=L1(W.videostatsPlaybackUrl)){J=Ry(J);if(B=J.adformat)if(m.adformat=B,E=S.J(),E=ibO(B,S.CN,E.j,E.S))S.adFormat=E;if(E=J.aqi)m.ad_query_id=E;if(m=J.autoplay)S.kt=m=="1",S.wQ=m=="1";if(m=J.autonav)S.isAutonav=m=="1";if(m=J.delay)S.tD=bz(m);if(m=J.ei)S.eventId=m;if(m=xL(J.adcontext))try{var Y=aoO(m);Y&&(S.AQ=Y)}catch(G){g.Ue(Error("Malformed adContext"))}if(m|| B)S.kt=!0;if(Y=J.feature)S.d9=Y;if(Y=J.list)S.playlistId=Y;if(Y=J.of)S.Iu=Y;if(Y=J.osid)S.osid=Y;if(Y=J.referrer)S.referrer=Y;if(Y=J.sdetail)S.r6=Y;if(Y=J.sourceid)S.T_2=Y;if(Y=J.ssrt)S.ZB=Y=="1";if(Y=J.subscribed)S.subscribed=Y=="1";if(Y=J.uga)S.userGenderAge=Y;if(Y=J.upt)S.hJ=Y;if(Y=J.vm)S.videoMetadata=Y;a.playback=J}if(Y=L1(W.videostatsWatchtimeUrl)){Y=Ry(Y);if(m=Y.ald)S.BF=m;a.watchtime=Y}if(Y=L1(W.atrUrl))Y=Ry(Y),a.atr=Y;if(Y=L1(W.engageUrl))Y=Ry(Y),a.engage=Y;S.T_=a;W.promotedPlaybackTracking&& (W=W.promotedPlaybackTracking,W.startUrls&&(S.To=W.startUrls),W.firstQuartileUrls&&(S.gB=W.firstQuartileUrls),W.secondQuartileUrls&&(S.LV=W.secondQuartileUrls),W.thirdQuartileUrls&&(S.KV=W.thirdQuartileUrls),W.completeUrls&&(S.EL=W.completeUrls),W.engagedViewUrls&&(W.engagedViewUrls.length>1&&g.Ue(new g.uc("There are more than one engaged_view_urls.")),S.n5=W.engagedViewUrls[0]))}; B5D=function(S,W,m){W=g.R(W);for(var a=W.next();!a.done;a=W.next())if(a=a.value)if(a=a.playerLegacyDesktopWatchAdsRenderer)if(a=a.playerAdParams){a.autoplay=="1"&&(S.kt=!0,S.wQ=!0);S.wN=a.encodedAdSafetyReason||null;a.showContentThumbnail!==void 0&&(S.LD=!!a.showContentThumbnail);m.enabled_engage_types=a.enabledEngageTypes;break}}; EY6=function(S,W){var m=W.manifestlessWindowedLiveConfig;if(m){var a=Number(m.minDvrSequence),J=Number(m.maxDvrSequence),B=Number(m.minDvrMediaTimeMs),E=Number(m.maxDvrMediaTimeMs);m=Number(m.startWalltimeMs);a&&(S.VU=a);B&&(S.Wm=B/1E3,S.T("html5_sabr_parse_live_metadata_playback_boundaries")&&eX(S)&&(S.I9=B/1E3));J&&(S.jS=J);E&&(S.k0=E/1E3,S.T("html5_sabr_parse_live_metadata_playback_boundaries")&&eX(S)&&(S.Px=E/1E3));m&&(S.Ga=m/1E3);(a||B)&&(J||E)&&(S.ri=!0,S.isLivePlayback=!0,S.allowLiveDvr=!0, S.HG=!1)}if(a=W.daiConfig){if(a.enableDai){S.BD=!0;if(J=a.enableServerStitchedDai)S.enableServerStitchedDai=J;if(J=a.enablePreroll)S.A7=J}var y;if(a.daiType==="DAI_TYPE_SS_DISABLED"||((y=a.debugInfo)==null?0:y.isDisabledUnpluggedChannel))S.gm=!0;a.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(S.lD=!0);a.allowUstreamerRequestAdconfig&&(S.zQ=!0);a.sendSsdaiMissingAdBreakReasons&&(S.aFN=!0)}if(y=W.audioConfig){a=y.loudnessDb;a!=null&&(S.D0=a);a=y.trackAbsoluteLoudnessLkfs;a!=null&&(S.kH=a);a=y.loudnessTargetLkfs; a!=null&&(S.loudnessTargetLkfs=a);y.audioMuted&&(S.Y5=!0);y.muteOnStart&&(S.ZP=!0);if(a=y.loudnessNormalizationConfig)a.applyStatefulNormalization&&(S.applyStatefulNormalization=!0),a.preserveStatefulLoudnessTarget&&(S.preserveStatefulLoudnessTarget=!0),J=a.minimumLoudnessTargetLkfs,J!=null&&(S.minimumLoudnessTargetLkfs=J),a=a.maxStatefulTimeThresholdSec,a!=null&&(S.maxStatefulTimeThresholdSec=a);y.playAudioOnly&&(S.Ax=!0)}if(a=W.playbackEndConfig)y=a.endSeconds,a=a.limitedPlaybackDurationInSeconds, S.mutedAutoplay&&(y&&(S.endSeconds=y),a&&(S.limitedPlaybackDurationInSeconds=a));if(y=W.fairPlayConfig){if(a=y.certificate)S.mp=xL(a);a=Number(y.keyRotationPeriodMs);a>0&&(S.LM=a);y=Number(y.keyPrefetchMarginMs);y>0&&(S.gz=y)}if(y=W.playbackStartConfig){S.Ql=Number(y.startSeconds);J=y.liveUtcStartSeconds;a=!!S.liveUtcStartSeconds&&S.liveUtcStartSeconds>0;J&&!a&&(S.liveUtcStartSeconds=Number(J));if(J=y.startPosition)if((B=J.utcTimeMillis)&&!a&&(S.liveUtcStartSeconds=Number(B)*.001),a=J.streamTimeMillis)S.PJ= Number(a)*.001;S.progressBarStartPosition=y.progressBarStartPosition;S.progressBarEndPosition=y.progressBarEndPosition}else if(y=W.skippableSegmentsConfig){if(a=y.introSkipDurationMs)S.vl=Number(a)/1E3;if(y=y.outroSkipDurationMs)S.BP=Number(y)/1E3}if(a=W.skippableIntroConfig)y=Number(a.startMs),a=Number(a.endMs),isNaN(y)||isNaN(a)||(S.K9=y,S.hj=a);if(y=W.streamSelectionConfig)S.Pc=Number(y.maxBitrate);if(y=W.vrConfig)S.Il=y.partialSpherical=="1";if(y=W.webDrmConfig){y.skipWidevine&&(S.A9=!0);if(a= y.widevineServiceCert)S.xC=xL(a);y.useCobaltWidevine&&(S.useCobaltWidevine=!0);y.startWithNoQualityConstraint&&(S.wf=!0)}if(y=W.mediaCommonConfig){if(a=y.dynamicReadaheadConfig){S.maxReadAheadMediaTimeMs=a.maxReadAheadMediaTimeMs||NaN;S.minReadAheadMediaTimeMs=a.minReadAheadMediaTimeMs||NaN;S.readAheadGrowthRateMs=a.readAheadGrowthRateMs||NaN;var Y;if(a=y==null?void 0:(Y=y.mediaUstreamerRequestConfig)==null?void 0:Y.videoPlaybackUstreamerConfig)S.T1=xL(a);if((Y=y==null?void 0:y.sabrContextUpdates)&& Y.length>0)for(Y=g.R(Y),a=Y.next();!a.done;a=Y.next())a=a.value,a.type&&a.value&&(J={type:a.type,scope:a.scope,value:xL(a.value)||void 0,sendByDefault:a.sendByDefault},S.sabrContextUpdates.set(a.type,J))}if(Y=y.serverPlaybackStartConfig)S.serverPlaybackStartConfig=Y;y.useServerDrivenAbr&&(S.yr=!0);if(Y=y.requestPipeliningConfig)S.requestPipeliningConfig=Y}if(Y=W.inlinePlaybackConfig)S.D4=!!Y.showAudioControls;if(Y=W.embeddedPlayerConfig){S.embeddedPlayerConfig=Y;if(y=Y.embeddedPlayerMode)a=S.J(), a.Pn=y,a.B=y==="EMBEDDED_PLAYER_MODE_PFL";if(Y=Y.permissions)S.allowImaMonetization=!!Y.allowImaMonetization}if(W=W.webPlayerConfig)W.gatewayExperimentGroup&&(S.gatewayExperimentGroup=W.gatewayExperimentGroup),W.isProximaEligible&&(S.isProximaLatencyEligible=!0)}; zdO=function(S,W,m){var a=W.formats;if(a){for(var J=[],B=g.R(a),E=B.next();!E.done;E=B.next())E=E.value,J.push(E.itag+"/"+E.width+"x"+E.height);S.hU=J.join(",");J=[];a=g.R(a);for(B=a.next();!B.done;B=a.next()){E=B.value;B={itag:E.itag,type:E.mimeType,quality:E.quality};var y=E.url;y&&(B.url=y);E=Tj(10,E);y=E.Xm;var Y=E.J2,G=E.s;E.BV&&(B.url=y,B.sp=Y,B.s=G);J.push(g.Rv(B))}S.I4=J.join(",")}if(B=W.hlsFormats){J={};if(m&&(m=m.audioPairingConfig)&&m.pairs)for(m=g.R(m.pairs),a=m.next();!a.done;a=m.next())a= a.value,E=a.videoItag,J[E]||(J[E]=[]),J[E].push(a.audioItag);m={};a=g.R(B);for(E=a.next();!E.done;E=a.next())E=E.value,m[E.itag]=E.bitrate;a=[];B=g.R(B);for(E=B.next();!E.done;E=B.next()){E=E.value;y={itag:E.itag,type:E.mimeType,url:E.url,bitrate:E.bitrate,width:E.width,height:E.height,fps:E.fps};if(Y=E.audioTrack)if(G=Y.displayName)y.name=G,y.audio_track_id=Y.id,Y.audioIsDefault&&(y.is_default="1");if(E.drmFamilies){Y=[];G=g.R(E.drmFamilies);for(var K=G.next();!K.done;K=G.next())Y.push($s[K.value]); y.drm_families=Y.join(",")}(Y=J[E.itag])&&Y.length&&(y.audio_itag=Y.join(","),(Y=m[Y[0]])&&(y.bitrate+=Y));(Y=nKP(E))&&(y.eotf=Y);E.audioChannels&&(y.audio_channels=E.audioChannels);a.push(g.Rv(y))}S.hlsFormats=a.join(",")}if((m=W.licenseInfos)&&m.length>0){J={};m=g.R(m);for(a=m.next();!a.done;a=m.next())B=a.value,a=B.drmFamily,B=B.url,a&&B&&(J[$s[a]]=B);S.PG=J}if(J=W.drmParams)S.drmParams=J;if(J=W.dashManifestUrl)S.eY=g.ex(J,{cpn:S.clientPlaybackNonce});if(J=W.hlsManifestUrl)S.hlsvp=J;if(J=W.probeUrl)S.probeUrl= kf(g.ex(J,{cpn:S.clientPlaybackNonce}));if(W=W.serverAbrStreamingUrl)S.Q0=new g.H_(W,!0)}; Y4K=function(S,W,m){var a=W.videoId;a&&(S.videoId=a,m.video_id||(m.video_id=a));if(a=W.title)S.title=a,m.title||(m.title=a);if(a=W.lengthSeconds)S.lengthSeconds=Number(a),m.length_seconds||(m.length_seconds=a);if(a=W.keywords)S.keywords=yf6(a);if(a=W.channelId)S.Z7=a,m.ucid||(m.ucid=a);if(a=W.viewCount)S.rawViewCount=Number(a);if(a=W.author)S.author=a,m.author||(m.author=a);if(m=W.shortDescription)S.shortDescription=m;if(m=W.isCrawlable)S.isListed=m;if(m=W.musicVideoType)S.musicVideoType=m;m=W.isLive; m!=null&&(S.isLivePlayback=m);if(m||W.isUpcoming)S.isPremiere=!W.isLiveContent;if(m=W.thumbnail)S.Dr=UV(m);if(m=W.isExternallyHostedPodcast)S.isExternallyHostedPodcast=m;(m=W.stationType)&&m!=="STATION_TYPE_UNKNOWN"&&(S.Xvq=!0);W=W.viewerLivestreamJoinPosition;if(W==null?0:W.utcTimeMillis)S.bN=bz(W.utcTimeMillis)}; T5P=function(S,W){if(W.playerLegacyDesktopYpcTrailerRenderer){var m=W.playerLegacyDesktopYpcTrailerRenderer;S.s6=m.trailerVideoId||"";var a=(a=W.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&a.ypcTrailerRenderer}else if(W.playerLegacyDesktopYpcOfferRenderer)m=W.playerLegacyDesktopYpcOfferRenderer;else if(W.ypcTrailerRenderer){a=W.ypcTrailerRenderer;W=a.fullVideoMessage;S.XZ=W?g.K8(W):"";var J,B;S.s6=((J=g.n(a,GVP))==null?void 0:(B=J.videoDetails)==null?void 0:B.videoId)||""}m&&(S.WM=m.itemTitle|| "",m.itemUrl&&(S.Ba=m.itemUrl),m.itemBuyUrl&&(S.Nj=m.itemBuyUrl),S.va=m.itemThumbnail||"",S.I_=m.offerHeadline||"",S.HM=m.offerDescription||"",S.MU=m.offerId||"",S.qj=m.offerButtonText||"",S.Di=m.offerButtonFormattedText||null,S.T$=m.overlayDurationMsec||NaN,S.XZ=m.fullVideoMessage||"",S.Az=!0);a&&((m=g.n(a,GVP))?S.oH={raw_player_response:m}:(m=g.n(a,KL_),S.oH=m?Gj(m):null),S.Az=!0)}; pG6=function(S,W,m,a){W.isLiveDefaultBroadcast&&(S.isLiveDefaultBroadcast=!0);W.isUpcoming&&(S.isUpcoming=!0);if(W.isPostLiveDvr){S.HG=!0;if(a=W.latencyClass)S.latencyClass=q47[a]||"UNKNOWN";W.isLowLatencyLiveStream&&(S.isLowLatencyLiveStream=!0)}else{var J=!1;S.PT?(S.allowLiveDvr=Qg()?!0:SY&&x5<5?!1:!0,S.isLivePlayback=!0):W.isLive?(a.livestream="1",S.allowLiveDvr=W.isLiveDvrEnabled?Qg()?!0:SY&&x5<5?!1:!0:!1,S.partnerId=27,J=!0):W.isUpcoming&&(J=!0);if(W.isLive||S.PT){W.isLowLatencyLiveStream&&(S.isLowLatencyLiveStream= !0);var B=W.latencyClass;B&&(S.latencyClass=q47[B]||"UNKNOWN");if(W=W.liveChunkReadahead)S.liveChunkReadahead=W;if(W=m&&m.livePlayerConfig){W.hasSubfragmentedFmp4&&(S.hasSubfragmentedFmp4=!0);W.hasSubfragmentedWebm&&(S.fH=!0);W.defraggedFromSubfragments&&(S.defraggedFromSubfragments=!0);if(m=W.liveExperimentalContentId)S.liveExperimentalContentId=Number(m);W=W.isLiveHeadPlayable;S.T("html5_live_head_playable")&&W!=null&&(S.isLiveHeadPlayable=W)}}J&&(S.isLivePlayback=!0,a.adformat&&a.adformat.split("_")[1]!== "8"||S.S1.push("heartbeat"))}}; ih=function(S,W){this.type=S||"";this.id=W||""}; dq=function(S){return new ih(S.substring(0,2),S.substring(2))}; Iy=function(S,W){this.w2=S;this.author="";this.ez=null;this.playlistLength=0;this.C=this.sessionData=null;this.Dr={};this.title="";if(W){this.author=W.author||W.playlist_author||"";this.title=W.playlist_title||"";if(S=W.session_data)this.sessionData=J$(S,"&");var m;this.C=((m=W.thumbnail_ids)==null?void 0:m.split(",")[0])||null;this.Dr=M_(W,"playlist_");this.videoId=W.video_id||void 0;if(m=W.list)switch(W.listType){case "user_uploads":this.playlistId=(new ih("UU","PLAYER_"+m)).toString();break;default:if(S= W.playlist_length)this.playlistLength=Number(S)||0;this.playlistId=dq(m).toString();if(W=W.video)this.videoId=(W[0]||null).video_id||void 0}else W.playlist&&(this.playlistLength=W.playlist.toString().split(",").length)}}; PY=function(S,W){this.w2=S;this.R$=this.author="";this.ez=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.p9=this.lengthText="";this.sessionData=null;this.Dr={};this.title="";if(W){this.ariaLabel=W.aria_label||void 0;this.author=W.author||"";this.R$=W.R$||"";if(S=W.endscreen_autoplay_session_data)this.ez=J$(S,"&");this.wk=W.wk;this.isLivePlayback=W.live_playback==="1";this.isUpcoming=!!W.isUpcoming;if(S=W.length_seconds)this.lengthSeconds=typeof S==="string"?Number(S):S;this.lengthText= W.lengthText||"";this.p9=W.p9||"";this.publishedTimeText=W.publishedTimeText||void 0;if(S=W.session_data)this.sessionData=J$(S,"&");this.shortViewCount=W.short_view_count_text||void 0;this.Dr=M_(W);this.title=W.title||"";this.videoId=W.docid||W.video_id||W.videoId||W.id||void 0;this.watchUrl=W.watchUrl||void 0}}; FLO=function(S){var W,m,a=(W=S.getWatchNextResponse())==null?void 0:(m=W.contents)==null?void 0:m.twoColumnWatchNextResults,J,B,E,y,Y;S=(J=S.getWatchNextResponse())==null?void 0:(B=J.playerOverlays)==null?void 0:(E=B.playerOverlayRenderer)==null?void 0:(y=E.endScreen)==null?void 0:(Y=y.watchNextEndScreenRenderer)==null?void 0:Y.results;if(!S){var G,K;S=a==null?void 0:(G=a.endScreen)==null?void 0:(K=G.endScreen)==null?void 0:K.results}return S}; g.k5=function(S){var W,m,a;S=g.n((W=S.getWatchNextResponse())==null?void 0:(m=W.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:a.decoratedPlayerBarRenderer,f1);return g.n(S==null?void 0:S.playerBar,VMc)}; nYK=function(S){this.C=S.playback_progress_0s_url;this.B=S.playback_progress_2s_url;this.N=S.playback_progress_10s_url}; sE_=function(){if($5===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(W){}a:{try{var S=!!self.localStorage}catch(W){S=!1}if(S&&(S=g.Ia(g.b7()+"::yt-player"))){$5=new $$(S);break a}$5=void 0}}return $5}; g.hK=function(){var S=sE_();if(!S)return{};try{var W=S.get("yt-player-lv");return JSON.parse(W||"{}")}catch(m){return{}}}; g.uM_=function(S){var W=sE_();W&&(S=JSON.stringify(S),W.set("yt-player-lv",S))}; g.tK=function(S){return g.hK()[S]||0}; g.AK=function(S,W){var m=g.hK();W!==m[S]&&(W!==0?m[S]=W:delete m[S],g.uM_(m))}; g.Zr=function(S){return g.k(function(W){return W.return(g.hn(gY_(),S))})}; bh=function(S,W,m,a,J,B,E,y){var Y,G,K,T,p,q;return g.k(function(F){switch(F.C){case 1:return Y=g.tK(S),Y===4?F.return(4):g.P(F,g.CO(),2);case 2:G=F.N;if(!G)throw g.nO("wiac");if(!y||E===void 0){F.cn(3);break}return g.P(F,OvP(y,E),4);case 4:E=F.N;case 3:return K=m.lastModified||"0",g.P(F,g.Zr(G),5);case 5:return T=F.N,g.EQ(F,6),N_++,g.P(F,g.Uj(T,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",L3:!0},function(O){if(B!==void 0&&E!==void 0){var X=""+S+"|"+W.id+"|"+K+"|"+String(B).padStart(10, "0");X=g.LO(O.objectStore("media"),E,X)}else X=g.uP.resolve(void 0);var l=jE6(S,W.jr()),M=jE6(S,!W.jr()),e={fmts:QEP(a),format:m||{}};l=g.LO(O.objectStore("index"),e,l);var d=a.downloadedEndTime===-1;e=d?O.objectStore("index").get(M):g.uP.resolve(void 0);var t={fmts:"music",format:{}};O=d&&J&&!W.jr()?g.LO(O.objectStore("index"),t,M):g.uP.resolve(void 0);return g.uP.all([O,e,X,l]).then(function(h){h=g.R(h);h.next();h=h.next().value;N_--;var mD=g.tK(S);if(mD!==4&&d&&J||h!==void 0&&g.XGO(h.fmts))mD= 1,g.AK(S,mD);return mD})}),8); case 8:return F.return(F.N);case 6:p=g.Gg(F);N_--;q=g.tK(S);if(q===4)return F.return(q);g.AK(S,4);throw p;}})}; g.vYP=function(S){var W,m;return g.k(function(a){if(a.C==1)return g.P(a,g.CO(),2);if(a.C!=3){W=a.N;if(!W)throw g.nO("ri");return g.P(a,g.Zr(W),3)}m=a.N;return a.return(g.Uj(m,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(J){var B=IDBKeyRange.bound(S+"|",S+"~");return J.objectStore("index").getAll(B).then(function(E){return E.map(function(y){return y?y.format:{}})})}))})}; loP=function(S,W,m,a,J){var B,E,y;return g.k(function(Y){if(Y.C==1)return g.P(Y,g.CO(),2);if(Y.C!=3){B=Y.N;if(!B)throw g.nO("rc");return g.P(Y,g.Zr(B),3)}E=Y.N;y=g.Uj(E,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(G){var K=""+S+"|"+W+"|"+m+"|"+String(a).padStart(10,"0");return G.objectStore("media").get(K)}); return J?Y.return(y.then(function(G){if(G===void 0)throw Error("No data from indexDb");return Hv6(J,G)}).catch(function(G){throw new g.uc("Error while reading chunk: "+G.name+", "+G.message); })):Y.return(y)})}; g.XGO=function(S){return S?S==="music"?!0:S.includes("dlt=-1")||!S.includes("dlt="):!1}; jE6=function(S,W){return""+S+"|"+(W?"v":"a")}; QEP=function(S){var W={};return BL((W.dlt=S.downloadedEndTime.toString(),W.mket=S.maxKnownEndTime.toString(),W.avbr=S.averageByteRate.toString(),W))}; UgX=function(S){var W={},m={};S=g.R(S);for(var a=S.next();!a.done;a=S.next()){var J=a.value,B=J.split("|");J.match(g.MM7)?(a=Number(B.pop()),isNaN(a)?m[J]="?":(B=B.join("|"),(J=W[B])?(B=J[J.length-1],a===B.end+1?B.end=a:J.push({start:a,end:a})):W[B]=[{start:a,end:a}])):m[J]="?"}S=g.R(Object.keys(W));for(a=S.next();!a.done;a=S.next())a=a.value,m[a]=W[a].map(function(E){return E.start+"-"+E.end}).join(","); return m}; oy=function(S){g.au.call(this);this.C=null;this.B=new $C;this.C=null;this.V=new Set;this.crossOrigin=S||""}; LLX=function(S,W,m){for(m=rq(S,m);m>=0;){var a=S.levels[m];if(a.isLoaded(C1(a,W))&&(a=g.cY(a,W)))return a;m--}return g.cY(S.levels[0],W)}; edD=function(S,W,m){m=rq(S,m);for(var a,J;m>=0;m--)if(a=S.levels[m],J=C1(a,W),!a.isLoaded(J)){a=S;var B=m,E=B+"-"+J;a.V.has(E)||(a.V.add(E),a.B.enqueue(B,{wR:B,kS:J}))}Rdj(S)}; Rdj=function(S){if(!S.C&&!S.B.isEmpty()){var W=S.B.remove();S.C=xg_(S,W)}}; xg_=function(S,W){var m=document.createElement("img");S.crossOrigin&&(m.crossOrigin=S.crossOrigin);m.src=S.levels[W.wR].XD(W.kS);m.onload=function(){var a=W.wR,J=W.kS;S.C!==null&&(S.C.onload=null,S.C=null);a=S.levels[a];a.loaded.add(J);Rdj(S);var B=a.columns*a.rows;J*=B;a=Math.min(J+B-1,a.Yq()-1);J=[J,a];S.publish("l",J[0],J[1])}; return m}; g.Dr=function(S,W,m,a){this.level=S;this.j=W;this.loaded=new Set;this.level=S;this.j=W;S=m.split("#");this.width=Math.floor(Number(S[0]));this.height=Math.floor(Number(S[1]));this.frameCount=Math.floor(Number(S[2]));this.columns=Math.floor(Number(S[3]));this.rows=Math.floor(Number(S[4]));this.C=Math.floor(Number(S[5]));this.B=S[6];this.signature=S[7];this.videoLength=a}; C1=function(S,W){return Math.floor(W/(S.columns*S.rows))}; g.cY=function(S,W){W>=S.fN()&&S.Kw();var m=C1(S,W),a=S.columns*S.rows,J=W%a;W=J%S.columns;J=Math.floor(J/S.columns);var B=S.Kw()+1-a*m;if(B1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; iv6=function(S,W,m){return(S=S.levels[W])?S.U6(m):-1}; rq=function(S,W){var m=S.j.get(W);if(m)return m;m=S.levels.length;for(var a=0;a=W)return S.j.set(W,a),a;S.j.set(W,m-1);return m-1}; Se=function(S,W,m,a){m=m.split("#");m=[m[1],m[2],0,m[3],m[4],-1,m[0],""].join("#");g.Dr.call(this,S,W,m,0);this.N=null;this.X=a?2:0}; WB=function(S,W,m,a){wq.call(this,S,0,void 0,W,!(a===void 0||!a));for(S=0;S30?S.limitedPlaybackDurationInSeconds=30:m<30&&m>10&&(S.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":S.limitedPlaybackDurationInSeconds=m*.2}}; BB=function(S,W){var m=W.raw_watch_next_response;if(!m){var a=W.watch_next_response;a&&(m=JSON.parse(a))}if(m){S.q2=m;var J=S.q2.playerCueRangeSet;J&&g.yI(S,J);var B=S.q2.playerOverlays;if(B){var E=B.playerOverlayRenderer;if(E){var y=E.autonavToggle;y&&(S.autoplaySwitchButtonRenderer=g.n(y,N5K),S.T("web_player_autonav_use_server_provided_state")&&Ya(S)&&(S.autonavState=S.autoplaySwitchButtonRenderer.enabled?2:1));var Y=E.videoDetails;if(Y){var G=Y.embeddedPlayerOverlayVideoDetailsRenderer;var K=Y.playerOverlayVideoDetailsRenderer; K&&(K.title&&(W.title=g.K8(K.title)),K.subtitle&&(W.subtitle=g.K8(K.subtitle)))}g.ZI(S.w2)&&(S.yT=!!E.addToMenu);bvP(S,E.shareButton);E.startPosition&&E.endPosition&&(S.progressBarStartPosition=E.startPosition,S.progressBarEndPosition=E.endPosition);var T=E.gatedActionsOverlayRenderer;T&&(S.ea=g.n(T,oYQ));var p,q,F,O=g.n((p=S.getWatchNextResponse())==null?void 0:(q=p.playerOverlays)==null?void 0:(F=q.playerOverlayRenderer)==null?void 0:F.infoPanel,rfc);if(O){S.ER=Number(O==null?void 0:O.durationMs)|| NaN;if(O==null?0:O.infoPanelOverviewViewModel)S.lr=O==null?void 0:O.infoPanelOverviewViewModel;if(O==null?0:O.infoPanelDetailsViewModel)S.xK=O==null?void 0:O.infoPanelDetailsViewModel}S.showSeekingControls=!!E.showSeekingControls}}var X,l,M=(X=S.getWatchNextResponse())==null?void 0:(l=X.contents)==null?void 0:l.twoColumnWatchNextResults;if(M){var e=M.desktopOverlay&&g.n(M.desktopOverlay,CBD);e&&(e.suppressShareButton&&(S.showShareButton=!1),e.suppressWatchLaterButton&&(S.yT=!1))}G&&cfK(S,W,G);var d= yw(0,W.autoplay_count),t=S.getWatchNextResponse(),h,mD=(h=t.contents)==null?void 0:h.twoColumnWatchNextResults,SO,aK,EP,qP=(SO=t.playerOverlays)==null?void 0:(aK=SO.playerOverlayRenderer)==null?void 0:(EP=aK.autoplay)==null?void 0:EP.playerOverlayAutoplayRenderer,JG=FLO(S),jO,D6=(jO=t.contents)==null?void 0:jO.singleColumnWatchNextResults;if(D6){var zg;if(((zg=D6.autoplay)==null?0:zg.autoplay)&&!D6.playlist){var kX=D6.autoplay.autoplay.sets,C6={},IK=new PY(S.J()),rN=null,RZ;if(kX){for(var U=g.R(kX), DZ=U.next();!DZ.done;DZ=U.next()){var hN=DZ.value.autoplayVideoRenderer;if(hN&&hN.compactVideoRenderer){rN=hN.compactVideoRenderer;break}}if(RZ=kX[0].autoplayVideo){var YX=RZ.clickTrackingParams;YX&&(C6.itct=YX);C6.autonav="1";C6.playnext=String(d)}}else C6.feature="related-auto";var UQ=g.n(RZ,g.GR);if(rN){IK.videoId=rN.videoId;var v=rN.shortBylineText;v&&(IK.author=g.K8(v));var W_=rN.title;W_&&(IK.title=g.K8(W_))}else UQ!=null&&UQ.videoId&&(IK.videoId=UQ.videoId);IK.ez=C6;S.suggestions=[];S.V4=IK}}if(JG){for(var uH= [],y3=g.R(JG),bH=y3.next();!bH.done;bH=y3.next()){var Yl=bH.value,w7=void 0,m8=null;if(Yl.endScreenVideoRenderer){var vF=Yl.endScreenVideoRenderer,H=vF.title;m8=new PY(S.J());m8.videoId=vF.videoId;m8.lengthSeconds=vF.lengthInSeconds||0;var Q=vF.publishedTimeText;Q&&(m8.publishedTimeText=g.K8(Q));var L=vF.shortBylineText;L&&(m8.author=g.K8(L));var I=vF.shortViewCountText;I&&(m8.shortViewCount=g.K8(I));if(H){m8.title=g.K8(H);var r=H.accessibility;if(r){var yP=r.accessibilityData;yP&&yP.label&&(m8.ariaLabel= yP.label)}}var c=vF.navigationEndpoint;if(c){w7=c.clickTrackingParams;var N=g.n(c,g.GR),f=g.n(c,g.Pm);N?m8.wk=N:f!=null&&(m8.watchUrl=f.url)}var RK=vF.thumbnailOverlays;if(RK)for(var eO=g.R(RK),sP=eO.next();!sP.done;sP=eO.next()){var UP=sP.value.thumbnailOverlayTimeStatusRenderer;if(UP)if(UP.style==="LIVE"){m8.isLivePlayback=!0;break}else if(UP.style==="UPCOMING"){m8.isUpcoming=!0;break}}m8.Dr=UV(vF.thumbnail)}else if(Yl.endScreenPlaylistRenderer){var JN=Yl.endScreenPlaylistRenderer,lc=JN.navigationEndpoint; if(!lc)continue;var $l=g.n(lc,g.GR);if(!$l)continue;var oS=$l.videoId;m8=new Iy(S.J());m8.playlistId=JN.playlistId;m8.playlistLength=Number(JN.videoCount)||0;m8.C=oS||null;m8.videoId=oS;var Cn=JN.title;Cn&&(m8.title=g.K8(Cn));var L6=JN.shortBylineText;L6&&(m8.author=g.K8(L6));w7=lc.clickTrackingParams;m8.Dr=UV(JN.thumbnail)}m8&&(w7&&(m8.sessionData={itct:w7}),uH.push(m8))}S.suggestions=uH}if(qP){S.NH=!!qP.preferImmediateRedirect;S.vv=S.vv||!!qP.webShowNewAutonavCountdown;S.ov=S.ov||!!qP.webShowBigThumbnailEndscreen; if(S.vv||S.ov){var h8=mD||null,xX=new PY(S.J());xX.videoId=qP.videoId;var QH=qP.videoTitle;if(QH){xX.title=g.K8(QH);var $X=QH.accessibility;if($X){var kM=$X.accessibilityData;kM&&kM.label&&(xX.ariaLabel=kM.label)}}var X9=qP.byline;X9&&(xX.author=g.K8(X9));var wN=qP.publishedTimeText;wN&&(xX.publishedTimeText=g.K8(wN));var Jk=qP.shortViewCountText;Jk&&(xX.shortViewCount=g.K8(Jk));var kp=qP.thumbnailOverlays;if(kp)for(var iw=g.R(kp),na=iw.next();!na.done;na=iw.next()){var Rn=na.value.thumbnailOverlayTimeStatusRenderer; if(Rn)if(Rn.style==="LIVE"){xX.isLivePlayback=!0;break}else if(Rn.style==="UPCOMING"){xX.isUpcoming=!0;break}else if(Rn.style==="DEFAULT"&&Rn.text){xX.lengthText=g.K8(Rn.text);var Fz=Rn.text.accessibility;if(Fz){var VR=Fz.accessibilityData;VR&&VR.label&&(xX.p9=VR.label||"")}break}}xX.Dr=UV(qP.background);var zp=qP.nextButton;if(zp){var yu=zp.buttonRenderer;if(yu){var EM=yu.navigationEndpoint;if(EM){var uD=g.n(EM,g.GR);uD&&(xX.wk=uD)}}}if(qP.topBadges){var YV=qP.topBadges[0];if(YV){var Gp=g.n(YV,DgK); Gp&&Gp.style==="BADGE_STYLE_TYPE_PREMIUM"&&(xX.iWU=!0)}}var KI=qP.alternativeTitle;KI&&(xX.R$=g.K8(KI));var of={autonav:"1",playnext:String(d)};xX.playlistId&&(of.autoplay="1");if(h8){var $M,hT,Tp,MI,Uy=($M=h8.autoplay)==null?void 0:(hT=$M.autoplay)==null?void 0:(Tp=hT.sets)==null?void 0:(MI=Tp[0])==null?void 0:MI.autoplayVideo;if(Uy){var qR=Uy.clickTrackingParams;qR&&(of.itct=qR);var pI=g.n(Uy,g.GR);pI&&(xX.zH=pI)}}else if(qP){var Fp,Vu,X$,rp=(Fp=qP.nextButton)==null?void 0:(Vu=Fp.buttonRenderer)== null?void 0:(X$=Vu.navigationEndpoint)==null?void 0:X$.clickTrackingParams;rp&&(of.itct=rp)}of.itct||(of.feature="related-auto");xX.ez=of;S.suggestions||(S.suggestions=[]);S.V4=xX}qP.countDownSecs!=null&&(S.Yj=qP.countDownSecs*1E3);qP.countDownSecsForFullscreen!=null&&(S.fU=qP.countDownSecsForFullscreen>=0?qP.countDownSecsForFullscreen*1E3:-1);S.T("web_autonav_color_transition")&&qP.watchToWatchTransitionRenderer&&(S.watchToWatchTransitionRenderer=g.n(qP.watchToWatchTransitionRenderer,wG6))}var LW= FLO(S);if(LW){var LV,WQ,RC,qY=LW==null?void 0:(LV=LW[0])==null?void 0:(WQ=LV.endScreenVideoRenderer)==null?void 0:(RC=WQ.navigationEndpoint)==null?void 0:RC.clickTrackingParams,eK=g.Kp(S);qY&&eK&&(eK.sessionData={itct:qY})}S.q2.currentVideoThumbnail&&(S.Dr=UV(S.q2.currentVideoThumbnail));var xd,jC,QA,XC,v6,iX=(xd=S.q2)==null?void 0:(jC=xd.contents)==null?void 0:(QA=jC.twoColumnWatchNextResults)==null?void 0:(XC=QA.results)==null?void 0:(v6=XC.results)==null?void 0:v6.contents;if(iX&&iX[0]){var J6= iX[0].videoPrimaryInfoRenderer;J6&&J6&&J6.subtitle&&(S.XJ=g.K8(J6.subtitle))}if(iX&&iX[1]){var t3,wa,A3,RL,BP=(t3=iX[1].videoSecondaryInfoRenderer)==null?void 0:(wa=t3.owner)==null?void 0:(A3=wa.videoOwnerRenderer)==null?void 0:(RL=A3.thumbnail)==null?void 0:RL.thumbnails;BP&&BP.length&&(S.profilePicture=BP[BP.length-1].url)}var LB=K5(W),S9,bs6=(S9=S.getWatchNextResponse())==null?void 0:S9.onResponseReceivedEndpoints;if(bs6)for(var o_l=g.R(bs6),kh=o_l.next();!kh.done;kh=o_l.next()){var $h=kh.value; g.n($h,TR)&&(S.cM=g.n($h,TR));var ed=g.n($h,S8P),rF6=void 0;if((rF6=ed)==null?0:rF6.entityKeys)S.L6=ed.entityKeys||[],ed.visibleOnLoadKeys&&(S.visibleOnLoadKeys=ed.visibleOnLoadKeys)}if(S.T("web_key_moments_markers")){var Gd9=g.qW.getState().entities,KGn=g.bq("visibility_override","markersVisibilityOverrideEntity");var Zy=rF(Gd9,"markersVisibilityOverrideEntity",KGn);S.s9=(Zy==null?void 0:Zy.videoId)===(S.videoId||LB)&&(Zy==null?0:Zy.visibilityOverrideMarkersKey)?Zy.visibilityOverrideMarkersKey:S.visibleOnLoadKeys; S.visibleOnLoadKeys=[].concat(g.x(S.s9))}}}; foG=function(S,W){if(W=W.raw_reel_item_watch_response)S.reelItemWatchResponse=W}; WNO=function(S){return!!S&&isFinite(S)&&S>1E9}; Ya=function(S){var W;return((W=S.autoplaySwitchButtonRenderer)==null?void 0:W.enabled)!==void 0}; pp=function(S){return!!(S.B&&S.B.videoInfos&&S.B.videoInfos.length)}; g.uZ=function(S){var W=S.Z;S.T("html5_gapless_unlimit_format_selection")&&Fh(S)&&(W=!1);var m=!!S.C&&S.C.Hv,a=S.w2,J=S.yv(),B=VI(S),E=S.Xn,y=W,Y=S.isOtf();W=S.PF();var G=S.PT,K=S.getUserAudio51Preference(),T=np(S),p=sx(S),q=new c3l(a);if(a.rd()||a.T("html5_logging_format_selection"))q.C=!0;q.hX=B;q.Xn=E&&a.S;q.s9=K;g.Ni("windows nt 5.1")&&!g.TW&&(q.E_=!0);if(B=J)B=g.K1(a)?SnP(a):!1;B&&(q.N2=!0);y&&(q.E_=!0,q.VT=!0);Y&&!a.T("html5_otf_prefer_vp9")&&(q.E_=!0);a.playerStyle==="picasaweb"&&(Y&&(q.E_= !1),q.vn=!1);G&&(q.E_=!0);ch(a.X,DF.CHANNELS)&&(a.T("html5_enable_ac3")&&(q.j=!0),a.T("html5_enable_eac3")&&(q.X=!0),a.T("html5_enable_ac3_gapless")&&(q.Hn=!0));a.T("html5_block_8k_hfr")&&(q.d2=!0);q.V=g.Db(a.experiments,"html5_max_selectable_quality_ordinal");q.Z=g.Db(a.experiments,"html5_min_selectable_quality_ordinal");dJ&&(q.Cn=480);if(m||J)q.vn=!1;q.uY=!1;q.disableAv1=T;m=aV(a,q.N,void 0,q.disableAv1);m>0&&m<2160&&(E_()||a.T("html5_format_hybridization"))&&(q.N.supportsChangeType=+E_(),q.WQ= m);m>=2160&&(q.Pn=!0);sIQ()&&!a.T("disable_av1_setting")&&(q.N.serveVp9OverAv1IfHigherRes=0,q.Kn=!1);q.PF=W;q.zN=g.ND||JO()&&!W?!1:!0;q.S=a.T("html5_format_hybridization");q.IL=a.T("html5_disable_encrypted_vp9_live_non_2k_4k");q.Wv=p;eX(S)&&(q.qd=!0);ru()&&S.playerResponse&&S.playerResponse.playerConfig&&S.playerResponse.playerConfig.webPlayerConfig&&S.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.j=!0,q.X=!0);S.Z&&S.isAd()&&(S.tb&&(q.bY=S.tb),S.y4&&(q.B=S.y4));S.rE()&& (q.q2=g.Db(S.w2.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));q.g2=S.isLivePlayback&&S.PD()&&S.w2.T("html5_drm_live_audio_51");q.vv=S.l4;q.EV=!eX(S);return S.Y6=q}; np=function(S){return S.w2.T("html5_disable_av1")?!0:!1}; mCP=function(S){UY("drm_pb_s",void 0,S.bY);S.mp||S.C&&NE(S.C);var W={};S.C&&(W=x2P(S.Q2,g.uZ(S),S.w2.X,S.C,function(m){return S.publish("ctmp","fmtflt",m)},!0,new Set)); W=new Fx(W,S.w2,S.A9,S.useCobaltWidevine?ru()?gO(S):!1:!1,function(m,a){S.iY(m,a)}); g.Z(S,W);S.kB=!1;S.loading=!0;Wpc(W,function(m){UY("drm_pb_f",void 0,S.bY);for(var a=g.R(m),J=a.next();!J.done;J=a.next())switch(J=J.value,J.flavor){case "fairplay":J.mp=S.mp;J.LM=S.LM;J.gz=S.gz;break;case "widevine":J.xC=S.xC}S.Qd=m;if(S.Qd.length>0&&(S.X=S.Qd[0],S.w2.rd())){m={};a=g.R(Object.entries(S.X.C));for(J=a.next();!J.done;J=a.next()){var B=g.R(J.value);J=B.next().value;B=B.next().value;var E="unk";(J=J.match(/(.*)codecs="(.*)"/))&&(E=J[2]);m[E]=B}S.iY("drmProbe",m)}S.UH()})}; aUQ=function(S,W){if(W.length===0||Ox(S))return null;S.w2.X.N&&(Sn=!0);var m=S.PG;var a=S.lengthSeconds,J=S.isLivePlayback,B=S.HG,E=S.w2,y=xZP(W);if(J||B){E=E.experiments;a=new fN("",E,!0);a.N=!B;a.Hv=!0;a.isManifestless=!0;a.isLive=!B;a.HG=B;J=g.R(W);for(y=J.next();!y.done;y=J.next()){var Y=y.value;y=hm(Y,m);var G=Tj(9,Y);G=Am(G.Xm||Y.url||"",G.J2,G.s);var K=G.get("id");K&&K.includes("%7E")&&(a.N2=!0);var T=void 0;K=(T=E)==null?void 0:T.mU("html5_max_known_end_time_rebase");T=Number(Y.targetDurationSec|| 5);Y=Number(Y.maxDvrDurationSec||14400);var p=Number(G.get("mindsq")||G.get("min_sq")||"0"),q=Number(G.get("maxdsq")||G.get("max_sq")||"0")||Infinity;a.VU=a.VU||p;a.jS=a.jS||q;var F=!NZ(y.mimeType);G&&dn(a,new uA(G,y,{k8:T,d4:F,uR:Y,VU:p,jS:q,Zx:300,HG:B,iB:K}))}m=a}else if(y==="FORMAT_STREAM_TYPE_OTF"){a=a===void 0?0:a;B=new fN("",E.experiments,!1);B.duration=a||0;E=g.R(W);for(a=E.next();!a.done;a=E.next())a=a.value,J=hm(a,m,B.duration),y=Tj(1,a),(y=Am(y.Xm||a.url||"",y.J2,y.s))&&(J.streamType=== "FORMAT_STREAM_TYPE_OTF"?dn(B,new gn(y,J,"sq/0")):dn(B,new eB(y,J,SB(a.initRange),SB(a.indexRange))));B.isOtf=!0;m=B}else{a=a===void 0?0:a;B=new fN("",E.experiments,!1);B.duration=a||0;E=g.R(W);for(a=E.next();!a.done;a=E.next())G=a.value,a=hm(G,m,B.duration),J=SB(G.initRange),y=SB(G.indexRange),K=Tj(11,G),(G=Am(K.Xm||G.url||"",K.J2,K.s))&&dn(B,new eB(G,a,J,y));m=B}W.length>0&&(W=W[0],zR(S)&&W.url&&(S.Od=S.Od||tMl(W.url)));W=S.isLivePlayback&&!S.HG&&!S.ri&&!S.isPremiere;S.T("html5_live_head_playable")&& (!je(S)&&W&&S.iY("missingLiveHeadPlayable",{}),S.w2.N2==="yt"&&(m.O9=!0));return m}; Jdj=function(S){var W,m,a=((W=S.playerResponse)==null?void 0:(m=W.streamingData)==null?void 0:m.adaptiveFormats)||[];W=null;if(a.length>0)W=aUQ(S,a);else if(!S.T("html5_deprecate_adaptive_formats_string")){S.iY("pafmtstr",{s:S.adaptiveFormats.substring(0,50)});if((a=S.adaptiveFormats)&&!Ox(S)){S.w2.X.N&&(Sn=!0);a=QI(a);W=S.PG;var J=S.lengthSeconds,B=S.isLivePlayback;m=S.HG;var E=S.w2,y=ezP(a);if(B||m){E=E==null?void 0:E.experiments;J=new fN("",E,!0);J.Hv=!0;J.isManifestless=!0;J.N=!m;J.isLive=!m; J.HG=m;B=g.R(a);for(y=B.next();!y.done;y=B.next()){var Y=y.value;y=tm(Y,W);var G=Am(Y.url,Y.sp,Y.s),K=G.get("id");K&&K.includes("%7E")&&(J.N2=!0);var T=void 0;K=(T=E)==null?void 0:T.mU("html5_max_known_end_time_rebase");T=Number(Y.target_duration_sec)||5;Y=Number(Y.max_dvr_duration_sec)||14400;var p=Number(G.get("mindsq")||G.get("min_sq")||"0"),q=Number(G.get("maxdsq")||G.get("max_sq")||"0")||Infinity;J.VU=J.VU||p;J.jS=J.jS||q;var F=!NZ(y.mimeType);G&&dn(J,new uA(G,y,{k8:T,d4:F,uR:Y,VU:p,jS:q,Zx:300, HG:m,iB:K}))}W=J}else if(y==="FORMAT_STREAM_TYPE_OTF"){J=J===void 0?0:J;m=new fN("",E==null?void 0:E.experiments,!1);m.duration=J||0;E=g.R(a);for(J=E.next();!J.done;J=E.next())if(G=J.value,J=tm(G,W,m.duration),B=Am(G.url,G.sp,G.s))J.streamType==="FORMAT_STREAM_TYPE_OTF"?dn(m,new gn(B,J,"sq/0")):(y=DD(G.init),G=DD(G.index),dn(m,new eB(B,J,y,G)));m.isOtf=!0;W=m}else{J=J===void 0?0:J;m=new fN("",E==null?void 0:E.experiments,!1);m.duration=J||0;E=g.R(a);for(J=E.next();!J.done;J=E.next())G=J.value,J=tm(G, W,m.duration),B=DD(G.init),y=DD(G.index),(G=Am(G.url,G.sp,G.s))&&dn(m,new eB(G,J,B,y));W=m}a.length>0&&(a=a[0],zR(S)&&a.url&&(S.Od=S.Od||tMl(a.url)));a=S.isLivePlayback&&!S.HG&&!S.ri&&!S.isPremiere;S.T("html5_live_head_playable")&&(!je(S)&&a&&S.iY("missingLiveHeadPlayable",{}),S.w2.N2==="yt"&&(W.O9=!0))}else W=null;S.iY("pafmts",{isManifestFilled:!!W})}if(!W)return!1;Xh(S,W);return!0}; Ox=function(S){return ru()?!gO(S):cL()?!(!S.mp||!S.T("html5_enable_safari_fairplay")&&Qg()):!1}; gO=function(S){return S.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.yI=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next())if(m=m.value,m.cueRangeSetIdentifier){var a=void 0;S.Jb.set(m.cueRangeSetIdentifier,(a=m.playerCueRanges)!=null?a:[])}}; vB=function(S){return!(!S.C||!S.C.isManifestless)}; HB=function(S){return S.hX?S.isLowLatencyLiveStream&&S.C!=null&&om(S.C)>=5:S.isLowLatencyLiveStream&&S.C!=void 0&&om(S.C)>=5}; BB6=function(S){return ru()&&gO(S)?!1:Ox(S)&&(g.TS(S.w2)?!S.isLivePlayback:S.hlsvp)||!Qg()||S.Up?!0:!1}; zHG=function(S){S.loading=!0;S.VT=!1;if(ETP(S))g.vYP(S.videoId).then(function(a){var J;if((J=S.playerResponse)!=null&&J.streamingData){J=[];a=g.R(a);for(var B=a.next();!B.done;B=a.next())B=Object.assign({},B.value),B.signatureCipher="",J.push(B);J.length<2&&S.iY("offmlf",{len:J.length});J=aUQ(S,J);VI(S)&&ZxP(J,!1);Xh(S,J);S.iY("dlr",{})}else S.iY("offsdm",{cotn:S.TJ?S.TJ.cotn:"0",cpn:S.clientPlaybackNonce})}).then(function(){S.UH()}); else{n6(S.eY)||g.Ue(new g.uc("DASH MPD Origin invalid: ",S.eY));var W=S.eY,m=g.Db(S.w2.experiments,"dash_manifest_version")||4;W=g.ex(W,{mpd_version:m});S.isLowLatencyLiveStream&&S.latencyClass!=="NORMAL"||(W=g.ex(W,{pacing:0}));hzP(W,S.w2.experiments,S.isLivePlayback).then(function(a){S.TN()||(Xh(S,a,!0),UY("mrc",void 0,S.bY),S.UH())},function(a){S.TN()||(S.loading=!1,S.publish("dataloaderror",new g.a3("manifest.net.retryexhausted",{backend:"manifest", rc:a.status},1)))}); UY("mrs",void 0,S.bY)}}; ydj=function(S){var W;return!((W=S.w2.getWebPlayerContextConfig())==null||!W.enableProximaLowLatency)}; lZ=function(S){if(!S.isProximaLatencyEligible)return 0;var W=vh();return ydj(S)?2:W===1?1:S.T("html5_enable_proxima")?2:0}; Xh=function(S,W,m){m=m===void 0?!1:m;S.Oa=void 0;S.C=W;g.Z(S,W);W.VU=S.VU;W.jS=S.jS;W.Wm=S.Wm;W.k0=S.k0;W.Ga=S.Ga;S.Q0&&(W.bY=new tu(S.Q0));(S.yv()||g.MW(S))&&S.S1.push("webgl");S.C.isLive||(S.isLivePlayback=!1);var a=W.sourceUrl.split("/");if(S.hX?a.indexOf("manifest_duration")!==-1:a.indexOf("manifest_duration")!=-1)S.Ea=Number(a[a.indexOf("manifest_duration")+1]);if(W.N||W.isManifestless)W.subscribe("clienttemp",S.iY,S),m?W.subscribe("refresh",S.c$,S):W.subscribe("cuepointsadded",S.M8,S);NE(W)? S.kB=!0:n9=void 0;S.ri&&(W.Z=S.ri,W.isLive=!0,S.isLivePlayback=!0);W.isPremiere=S.isPremiere;W.isLiveHeadPlayable=S.isLiveHeadPlayable}; Y8X=function(S,W){var m=W||BB6(S)||S.isExternallyHostedPodcast;if(!S.C||m)return S.iY("skipDash",{dm:!!S.C,air:W,dd:S.Up,mss:Qg(),"3pp":S.isExternallyHostedPodcast}),iO();VI(S)&&ZxP(S.C,S.isLivePlayback);return du().then(function(){return d2l(S.Q2,g.uZ(S),S.w2.X,S.C,S.X,function(a){return S.publish("ctmp","fmtflt",a)},S.Vj,Ux(S)).then(function(a){S.v5(a); S.Q2.N=null;/^av/.test(S.clientPlaybackNonce)&&S.Y6&&S.iY("av1",S.Y6.N)})})}; KN6=function(S,W){if(W&&S.hlsvp)return iO();if(S.hlsFormats){if(W=QI(S.hlsFormats)){for(var m=[],a=g.R(W),J=a.next();!J.done;J=a.next()){J=J.value;J.url&&(J.url=Ioj(J.url));var B=void 0;((B=S.Y6)==null?0:B.C)&&m.push(J.itag)}var E;((E=S.Y6)==null?0:E.C)&&m.length>0&&S.iY("hlsfmt",{itags:m.join(".")})}S.Kn=VN_(S.w2,W);S.Kn&&GBj(S,S.Kn);E=S.clientPlaybackNonce;var y,Y,G,K;return Ob6(S.w2,S.isAd(),W,(K=(y=S.playerResponse)==null?void 0:(Y=y.captions)==null?void 0:(G=Y.playerCaptionsRenderer)==null?void 0: G.baseUrl)!=null?K:null,S.Pc,E,function(T){return S.publish("ctmp","hlsflt",T)}).then(function(T){for(var p=0,q=[],F=g.R(T),O=F.next();!O.done;O=F.next()){O=O.value; var X=void 0;q.push((X=O.getInfo())==null?void 0:X.itag);var l=X=void 0;((X=O.getInfo())==null?void 0:(l=X.audio)==null?void 0:l.numChannels)>p&&(p=O.getInfo().audio.numChannels)}p>2&&S.iY("hlschl",{mn:p});var M;((M=S.Y6)==null?0:M.C)&&S.iY("hlsfmtaf",{itags:q.join(".")});var e;if(S.T("html5_enable_vp9_fairplay")&&((e=S.X)==null?0:GW(e)))for(S.iY("drm",{sbdlfbk:1}),p=g.R(S.Qd),q=p.next();!q.done;q=p.next())if(q=q.value,YL(q)){S.X=q;break}Lp(S,T)})}return iO()}; TBc=function(S){if(S.isExternallyHostedPodcast&&S.I4){var W=QI(S.I4);if(!W[0])return iO();S.zG=W[0];return XiG(S.w2,W[0]).then(function(m){Lp(S,m)})}return S.bJ&&S.xc?QiX(S.w2,S.isAd(),S.bJ).then(function(m){Lp(S,m)}):iO()}; pkl=function(S){if(S.isExternallyHostedPodcast)return iO();var W=QI(S.I4,S.hU);if(S.hlsvp){var m=dgP(S.hlsvp,S.clientPlaybackNonce,S.Pc);W.push(m)}return jiO(S.w2,S.isAd(),W,q8K(S)).then(function(a){Lp(S,a)})}; Lp=function(S,W){S.uY=W;S.v5(new $1(g.MU(S.uY,function(m){return m.getInfo()})))}; q8K=function(S){var W={cpn:S.clientPlaybackNonce,c:S.w2.C.c,cver:S.w2.C.cver};S.bb&&(W.ptk=S.bb,W.oid=S.oF,W.ptchn=S.Me,W.pltype=S.Ct,S.G4&&(W.m=S.G4));return W}; g.R1=function(S){return Ox(S)&&S.mp?(S={},S.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",S):S.N&&S.N.PG||null}; FNc=function(S){var W=ee(S);return W&&W.text?g.K8(W.text):S.paidContentOverlayText}; V4P=function(S){var W=ee(S);return W&&W.durationMs?bz(W.durationMs):S.paidContentOverlayDurationMs}; ee=function(S){var W,m,a;return S.playerResponse&&S.playerResponse.paidContentOverlay&&S.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.n((W=S.q2)==null?void 0:(m=W.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:a.playerDisclosure,nTP)||null}; slX=function(S){if(!S)return null;S=g.R(S);for(var W=S.next();!W.done;W=S.next()){var m=void 0,a=void 0;if(W=(m=W.value.adPlacementRenderer)==null?void 0:(a=m.renderer)==null?void 0:a.videoAdTrackingRenderer)return W}return null}; xa=function(S){var W="";if(S.m_)return S.m_;S.isLivePlayback&&(W=S.allowLiveDvr?"dvr":S.isPremiere?"lp":S.ri?"window":"live");S.HG&&(W="post");return W}; g.iZ=function(S,W){return typeof S.keywords[W]!=="string"?null:S.keywords[W]}; uGj=function(S){return!!S.n5||!!S.ZI||!!S.To||!!S.r4||S.d0}; g.dO=function(S){return!!(S.eY||S.I4||S.bJ||S.hlsvp||S.n9())}; Jp=function(S){if(S.T("html5_onesie")&&S.errorCode)return!1;var W=g.oZ(S.S1,"ypc");S.ypcPreview&&(W=!1);return S.LP()&&!S.loading&&(g.dO(S)||g.oZ(S.S1,"heartbeat")||W)}; QI=function(S,W){S=E7(S);var m={};if(W){W=g.R(W.split(","));for(var a=W.next();!a.done;a=W.next())(a=a.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(m[a[1]]={width:a[2],height:a[3]})}W=g.R(S);for(a=W.next();!a.done;a=W.next()){a=a.value;var J=m[a.itag];J&&(a.width=J.width,a.height=J.height)}return S}; bvP=function(S,W){S.showShareButton=!!W;var m,a,J=((m=g.n(W,vG))==null?void 0:m.navigationEndpoint)||((a=g.n(W,vG))==null?void 0:a.command);J&&(S.vQ=!!g.n(J,gTK))}; PBD=function(S,W){var m=W.raw_embedded_player_response;if(!m){var a=W.embedded_player_response;a&&(m=JSON.parse(a))}m&&(S.E$=m);if(S.E$){S.embeddedPlayerConfig=S.E$.embeddedPlayerConfig||null;if(m=S.E$.videoFlags)m.playableInEmbed&&(S.allowEmbed=!0),m.isPrivate&&(S.isPrivate=!0),m.userDisplayName&&(W.user_display_name=m.userDisplayName),m.userDisplayImage&&(W.user_display_image=m.userDisplayImage);if((m=S.E$.embedPreview)&&m.thumbnailPreviewRenderer){m=m.thumbnailPreviewRenderer;DFc(S,m.controlBgHtml); if(a=m.defaultThumbnail)S.Dr=UV(a);S.T("embeds_web_enable_search_button")&&m.searchButton&&(a=g.n(m.searchButton,vG))&&(S.rB=g.n(a.navigationEndpoint,g.I1));(a=g.n(m==null?void 0:m.videoDetails,Oqc))&&cfK(S,W,a);a=g.n(m==null?void 0:m.videoDetails,jl6);S.yT=!!m.addToWatchLaterButton;bvP(S,m.shareButton);if(a==null?0:a.musicVideoType)S.musicVideoType=a.musicVideoType;var J,B,E,y,Y;if(a=g.n((J=S.getEmbeddedPlayerResponse())==null?void 0:(B=J.embedPreview)==null?void 0:(E=B.thumbnailPreviewRenderer)== null?void 0:(y=E.playButton)==null?void 0:(Y=y.buttonRenderer)==null?void 0:Y.navigationEndpoint,g.GR))UFl(S,a),S.videoId=a.videoId||S.videoId;m.videoDurationSeconds&&(S.lengthSeconds=bz(m.videoDurationSeconds));m.webPlayerActionsPorting&&cgl(S,m.webPlayerActionsPorting);if(J=g.n(m==null?void 0:m.playlist,QlP)){S.pJ=!0;B=[];E=Number(J.currentIndex);if(J.contents)for(y=0,Y=J.contents.length;y0:S.eg?!1:S.w2.pJ||S.w2.RU||!g.f9(S.w2)?!0:!1:(S.eg?0:S.Cn)&&g.f9(S.w2)?!0:!1;S.T("html5_log_detailpage_autoplay")&&bZ(S)==="detailpage"&&S.iY("autoplay_info",{autoplay:S.kt,autonav:S.isAutonav,wasDompaused:S.eg,result:W});return W}; g.cB=function(S){return S.oauthToken||S.w2.Ra}; xCc=function(S){if(S.T("html5_stateful_audio_normalization")){var W=1,m=g.Db(S.w2.experiments,"html5_default_ad_gain");m&&S.isAd()&&(W=m);var a,J;m=(J=(a=S.j)==null?void 0:a.audio.j)!=null?J:S.kH;if(m==null||isNaN(m))S=eHl(S);else{a=(0,g.X1)();S.Ra=1;J=a-S.w2.HA<=S.maxStatefulTimeThresholdSec*1E3;S.applyStatefulNormalization&&J?S.Ra=2:J||(S.w2.tb=Infinity,S.w2.HA=NaN);J=(S.Ra===2?g.Su(S.w2.tb,S.minimumLoudnessTargetLkfs,S.loudnessTargetLkfs):S.loudnessTargetLkfs)-m;if(S.Ra!==2){var B,E,y,Y,G=((B= S.playerResponse)==null?void 0:(E=B.playerConfig)==null?void 0:(y=E.audioConfig)==null?void 0:(Y=y.loudnessNormalizationConfig)==null?void 0:Y.statelessLoudnessAdjustmentGain)||0;J+=G}J=Math.min(J,0);S.preserveStatefulLoudnessTarget&&(S.w2.tb=m+J,S.w2.HA=a);S=Math.min(1,Math.pow(10,J/20))||W}}else S=eHl(S);return S}; eHl=function(S){var W=1,m=g.Db(S.w2.experiments,"html5_default_ad_gain");m&&S.isAd()&&(W=m);var a,J;m=((a=S.j)==null?void 0:a.audio.B)!=null?(J=S.j)==null?void 0:J.audio.B:S.D0;isNaN(m)||(S.Ra=4);return Math.min(1,Math.pow(10,-m/20))||W}; VI=function(S){var W=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],m=sZ(S.w2)==="TVHTML5_SIMPLY"&&S.w2.C.ctheme==="MUSIC";!S.Ax&&(g.IL(S.w2)||g.y2(S.w2)||m)&&(W.includes(S.musicVideoType)||S.isExternallyHostedPodcast)&&(S.Ax=!0);if(W=g.ok())W=/Starboard\/([0-9]+)/.exec(g.mW()),W=(W?parseInt(W[1],10):NaN)<10;m=S.w2;m=(sZ(m)==="TVHTML5_CAST"||sZ(m)==="TVHTML5"&&(m.C.cver.startsWith("6.20130725")||m.C.cver.startsWith("6.20130726")))&&S.w2.C.ctheme==="MUSIC";var a;if(a=!S.Ax)m||(m= S.w2,m=sZ(m)==="TVHTML5"&&m.C.cver.startsWith("7")),a=m;a&&!W&&(W=S.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",m=(S.T("cast_prefer_audio_only_for_atv_and_uploads")||S.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&S.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",W||m||S.isExternallyHostedPodcast)&&(S.Ax=!0);return S.w2.deviceIsAudioOnly||S.Ax&&S.w2.S}; sx=function(S){var W,m,a;return((W=S.playerResponse)==null?void 0:(m=W.playerConfig)==null?void 0:(a=m.compositeVideoConfig)==null?void 0:a.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; iq6=function(S){var W,m,a,J=(W=S.playerResponse)==null?void 0:(m=W.playerConfig)==null?void 0:(a=m.compositeVideoConfig)==null?void 0:a.sourceConfigs,B,E,y;S=(B=S.playerResponse)==null?void 0:(E=B.playerConfig)==null?void 0:(y=E.compositeVideoConfig)==null?void 0:y.defaultActiveSourceVideoId;if(!J||!J.length)return"";S||(S=J[0].videoId||"");J=g.R(J);for(B=J.next();!B.done;B=J.next())if(B=B.value,B.videoId===S&&B.audioTracks)for(B=g.R(B.audioTracks),E=B.next();!E.done;E=B.next())if(E=E.value,E.isDefaultForSource)return E.id|| "";return""}; g.dCK=function(S){return S.Hv()&&eX(S)}; D9=function(S){var W,m,a;return!!((W=S.playerResponse)==null?0:(m=W.playerConfig)==null?0:(a=m.mediaCommonConfig)==null?0:a.splitScreenEligible)}; wO=function(S){var W;return!((W=S.playerResponse)==null||!W.compositePlayabilityStatus)}; IUP=function(S){return isNaN(S)?0:Math.max((Date.now()-S)/1E3-30,0)}; Sd=function(S){return!(!S.ZN||!S.w2.S)&&S.n9()}; Wf=function(S){return S.A7&&S.enableServerStitchedDai}; PL7=function(S){return S.yr&&!S.Q0}; eX=function(S){var W=S.T("html5_enable_sabr_on_drive")&&S.w2.N2==="gd";if(S.Mo)return S.yr&&S.iY("fds",{fds:!0},!0),!1;if(S.w2.N2!=="yt"&&!W)return S.yr&&S.iY("dsvn",{ns:S.w2.N2},!0),!1;if(S.cotn||!S.C||S.C.isOtf&&!S.T("html5_enable_sabr_otf_in_client")||S.B&&!S.B.C||S.lD&&!S.T("html5_enable_sabr_csdai"))return!1;if(S.T("html5_use_sabr_requests_for_debugging"))return!0;S.yr&&S.iY("esfw",{usbc:S.yr,hsu:!!S.Q0},!0);if(S.yr&&S.Q0)return!0;if(S.T("html5_remove_client_sabr_determination"))return!1;var m= !S.C.Hv&&!S.PD();W=m&&m1&&S.T("html5_enable_sabr_vod_streaming_xhr");m=m&&!m1&&S.T("html5_enable_sabr_vod_non_streaming_xhr");var a=ag(S),J=S.T("html5_enable_sabr_drm_vod_streaming_xhr")&&m1&&S.PD()&&!S.C.Hv&&(S.drmProduct==="1"?!1:!0);(W=W||m||a||J)&&!S.Q0&&S.iY("sabr",{loc:"m"},!0);return W&&!!S.Q0}; ag=function(S){var W;if(!(W=m1&&S.Hv()&&S.PD()&&(S.drmProduct==="1"?!1:!0)&&S.T("html5_sabr_live_drm_streaming_xhr"))){W=S.Hv()&&!S.PD()&&m1;var m=S.Hv()&&S.latencyClass!=="ULTRALOW"&&!S.isLowLatencyLiveStream&&S.T("html5_sabr_live_normal_latency_streaming_xhr"),a=S.isLowLatencyLiveStream&&S.T("html5_sabr_live_low_latency_streaming_xhr"),J=S.latencyClass==="ULTRALOW"&&S.T("html5_sabr_live_ultra_low_latency_streaming_xhr");W=W&&(m||a||J)}m=W;W=S.enableServerStitchedDai&&m&&S.T("html5_enable_sabr_ssdai_streaming_xhr"); m=!S.enableServerStitchedDai&&m;a=S.Hv()&&!m1&&S.T("html5_enable_sabr_live_non_streaming_xhr");S=m1&&(S.b$()||D9(S)&&S.T("html5_enable_sabr_for_lifa_eligible_streams"));return W||m||a||S}; Ux=function(S){var W=S.T("html5_enable_server_format_filter")&&!S.PD(),m=S.T("html5_enable_server_format_filter_for_drm")&&S.PD();return eX(S)&&(W||m)}; ETP=function(S){var W;if(W=!!S.cotn)W=S.videoId,W=!!W&&g.tK(W)===1;return W&&!S.ZN}; g.Jc=function(S){if(!S.C||!S.N||!S.j)return!1;var W=S.C.C,m=!!W[S.N.id]&&QP(4,W[S.N.id].aL.C);W=!!W[S.j.id]&&QP(72,W[S.j.id].aL.C);return(S.N.itag==="0"||m)&&W}; Bf=function(S){return S.K6?["OK","LIVE_STREAM_OFFLINE"].includes(S.K6.status):!0}; Xkj=function(S){return(S=S.ZF)&&S.showError?S.showError:!1}; Ek=function(S,W){return S.T(W)?!0:(S.fflags||"").includes(W+"=true")}; hd6=function(S,W){W.inlineMetricEnabled&&(S.inlineMetricEnabled=!0);W.playback_progress_0s_url&&(S.r4=new nYK(W));if(W=W.video_masthead_ad_quartile_urls)S.ZI=W.quartile_0_url,S.Bj=W.quartile_25_url,S.qH=W.quartile_50_url,S.aO=W.quartile_75_url,S.vj=W.quartile_100_url,S.To=W.quartile_0_urls,S.gB=W.quartile_25_urls,S.LV=W.quartile_50_urls,S.KV=W.quartile_75_urls,S.EL=W.quartile_100_urls}; yf6=function(S){var W={};S=g.R(S);for(var m=S.next();!m.done;m=S.next()){m=m.value;var a=m.split("=");a.length===2?W[a[0]]=a[1]:W[m]=!0}return W}; h9X=function(S){if(S){if(ziK(S))return S;S=a6P(S);if(ziK(S,!0))return S}return""}; g.fUj=function(S){return S.captionsLanguagePreference||S.w2.captionsLanguagePreference||g.iZ(S,"yt:cc_default_lang")||S.w2.Kn}; zE=function(S){return!(!S.isLivePlayback||!S.hasProgressBarBoundaries())}; g.Kp=function(S){var W;return S.V4||((W=S.suggestions)==null?void 0:W[0])||null}; kBl=function(S,W){return W!=null?E2(S.Z,W):S.Z?S.Z:S.w2.preferGapless&&S.w2.supportsGaplessShorts()}; g.yY=function(S){var W,m;return!!((W=S.embeddedPlayerConfig)==null?0:(m=W.embeddedPlayerFlags)==null?0:m.enableMusicUx)}; $CG=function(S){return S.Z||S.T("web_player_media_session_infinity")&&S.isLivePlayback}; Y8=function(S){return S.w2.j&&S.isPrivate}; hHD=function(S){var W,m;return((W=S.playerResponse)==null?0:(m=W.playerConfig)==null?0:m.daiConfig)?S.gm?1:S.a4?2:0:3}; g.KB=function(S){var W=S.J(),m=g.GE(W),a=W.xK;g.ZI(W)&&(a&&(m.thirdParty=Object.assign({},m.thirdParty,{embedUrl:a})),QID(m,S));if(a=S.N2)m.clickTracking={clickTrackingParams:a};else if(g.ZI(S.J())&&g.D4("EVENT_ID"))m.clickTracking={clickTrackingParams:g.D4("EVENT_ID")};else if(W.T("html5_log_missing_itct")){var J;a=new g.uc("Missing ITCT in InnerTubeContext",{isAd:S.isAd(),nN6:(J=W.getWebPlayerContextConfig())==null?void 0:J.contextId});g.lR(a)}J=m.client||{};a="EMBED";var B=bZ(S);B==="leanback"? a="WATCH":W.T("gvi_channel_client_screen")&&B==="profilepage"?a="CHANNEL":S.PT?a="LIVE_MONITOR":B==="detailpage"?a="WATCH_FULL_SCREEN":B==="adunit"?a="ADUNIT":B==="sponsorshipsoffer"&&(a="UNKNOWN");J.clientScreen=a;if(a=S.kidsAppInfo)J.kidsAppInfo=JSON.parse(a);(B=S.Xv)&&!a&&(J.kidsAppInfo={contentSettings:{ageUpMode:t4Q[B]}});if(a=S.Jz)J.unpluggedAppInfo={enableFilterMode:!0};(B=S.unpluggedFilterModeType)&&!a&&(J.unpluggedAppInfo={filterModeType:AdO[B]});if(a=S.IL)J.unpluggedLocationInfo=a;m.client= J;J=m.request||{};S.o6&&(J.isPrefetch=!0);if(a=S.mdxEnvironment)J.mdxEnvironment=a;if(a=S.mdxControlMode)J.mdxControlMode=ZqD[a];m.request=J;J=m.user||{};if(a=S.vn)J.credentialTransferTokens=[{token:a,scope:"VIDEO"}];if(a=S.d2)J.delegatePurchases={oauthToken:a},J.kidsParent={oauthToken:a};var E;a=(E=W.getWebPlayerContextConfig())==null?void 0:E.userContentRating;W.ZH().C.QD(NBl)&&a&&(J.serializedUserContentRating=a);m.user=J;if(W=S.contextParams)m.activePlayers=[{playerContextParams:W}];if(S=S.clientScreenNonce)m.clientScreenNonce= S;return m}; g.GE=function(S){var W=g.DQ(),m=W.client||{};if(S.forcedExperiments){var a=S.forcedExperiments.split(","),J=[];a=g.R(a);for(var B=a.next();!B.done;B=a.next())J.push(Number(B.value));m.experimentIds=J}if(J=S.homeGroupInfo)m.homeGroupInfo=JSON.parse(J);if(J=S.getPlayerType())m.playerType=J;if(J=S.C.ctheme)m.theme=J;if(J=S.livingRoomAppMode)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomAppMode:J});J=S.deviceYear;S.T("html5_propagate_device_year")&&J&&(m.tvAppInfo=Object.assign({},m.tvAppInfo,{deviceYear:J})); if(J=S.livingRoomPoTokenId)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomPoTokenId:J});W.client=m;J=W.user||{};S.enableSafetyMode&&(J=Object.assign({},J,{enableSafetyMode:!0}));var E;((E=m.tvAppInfo)==null?0:E.usePageidAsHeader)||!S.pageId||(J=Object.assign({},J,{onBehalfOfUser:S.pageId}));W.user=J;return W}; DCl=function(S,W,m){var a=S.videoId,J=g.KB(S),B=S.J(),E={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(sA()),referer:document.location.toString(),signatureTimestamp:20438},y=g.hO();S.isAutonav&&(E.autonav=!0);y.QD(141)&&(E.autonavState=y.QD(140)?"STATE_OFF":"STATE_ON");E.autoCaptionsDefaultOn=y.QD(66);RHG(S)&&(E.autoplay=!0);B.S&&S.cycToken&&(E.cycToken=S.cycToken);B.enablePrivacyFilter&&(E.enablePrivacyFilter=!0);S.isFling&&(E.fling=!0);var Y=S.forceAdsUrl;if(Y){y={};var G=[];Y=Y.split(","); Y=g.R(Y);for(var K=Y.next();!K.done;K=Y.next()){K=K.value;var T=K.split("|");T.length!==3||K.includes("=")||(T[0]="breaktype="+T[0],T[1]="offset="+T[1],T[2]="url="+T[2]);K={adtype:"video_ad"};T=g.R(T);for(var p=T.next();!p.done;p=T.next()){var q=g.R(p.value.split("="));p=q.next().value;q=UP_(q);K[p]=q.join("=")}T=K.url;p=K.presetad;q=K.viralresponseurl;var F=Number(K.campaignid),O=K.bibliotecaadid;if(K.adtype==="in_display_ad")T&&(y.url=T),p&&(y.presetAd=p),q&&(y.viralAdResponseUrl=q),F&&(y.viralCampaignId= String(F)),O&&(y.bibliotecaAdId=O);else if(K.adtype==="video_ad"){var X={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(K.offset)||0)}};if(K=bqO[K.breaktype])X.breakType=K;T&&(X.url=T);p&&(X.presetAd=p);q&&(X.viralAdResponseUrl=q);F&&(X.viralCampaignId=String(F));O&&(X.bibliotecaAdId=O);G.push(X)}}E.forceAdParameters={videoAds:G,inDisplayAd:y}}S.isInlinePlaybackNoAd&&(E.isInlinePlaybackNoAd=!0);S.isLivingRoomDeeplink&&(E.isLivingRoomDeeplink=!0);y=S.fv;if(y!=null){y={startWalltime:String(y)}; if(G=S.Ea)y.manifestDuration=String(G||14400);E.liveContext=y}if(S.mutedAutoplay){E.mutedAutoplay=!0;y=B.getWebPlayerContextConfig();var l,M;(y==null?0:(l=y.embedsHostFlags)==null?0:l.allowMutedAutoplayDurationMode)&&(y==null?0:(M=y.embedsHostFlags)==null?0:M.allowMutedAutoplayDurationMode.includes(oTP[S.mutedAutoplayDurationMode]))&&(E.mutedAutoplayDurationMode=oTP[S.mutedAutoplayDurationMode])}if(S.eg?0:S.Cn)E.splay=!0;l=S.vnd;l===5&&(E.vnd=l);l={};if(M=S.isMdxPlayback)l.triggeredByMdx=M;if(M=S.Tq)l.skippableAdsSupported= M.split(",").includes("ska");if(G=S.Fy){M=S.PS;y=[];G=g.R(XaD(G));for(Y=G.next();!Y.done;Y=G.next()){Y=Y.value;K=Y.platform;Y={applicationState:Y.Ov?"INACTIVE":"ACTIVE",clientFormFactor:rd7[K]||"UNKNOWN_FORM_FACTOR",clientName:HtO[Y.t9]||"UNKNOWN_INTERFACE",clientVersion:Y.deviceVersion||"",platform:CLP[K]||"UNKNOWN_PLATFORM"};K={};if(M){T=void 0;try{T=JSON.parse(M)}catch(d){g.Ue(d)}T&&(K={params:[{key:"ms",value:T.ms}]},T.advertising_id&&(K.advertisingId=T.advertising_id),T.limit_ad_tracking!==void 0&& T.limit_ad_tracking!==null&&(K.limitAdTracking=T.limit_ad_tracking),Y.osName=T.os_name,Y.userAgent=T.user_agent,Y.windowHeightPoints=T.window_height_points,Y.windowWidthPoints=T.window_width_points)}y.push({adSignalsInfo:K,remoteClient:Y})}l.remoteContexts=y}M=S.sourceContainerPlaylistId;y=S.serializedMdxMetadata;if(M||y)G={},M&&(G.mdxPlaybackContainerInfo={sourceContainerPlaylistId:M}),y&&(G.serializedMdxMetadata=y),l.mdxPlaybackSourceContext=G;E.mdxContext=l;l=W.width;l>0&&(E.playerWidthPixels= Math.round(l));if(W=W.height)E.playerHeightPixels=Math.round(W);m!==0&&(E.vis=m);if(m=B.widgetReferrer)E.widgetReferrer=m.substring(0,128);g.f9(B)&&E&&(E.ancestorOrigins=B.ancestorOrigins);S.defaultActiveSourceVideoId&&(E.compositeVideoContext={defaultActiveSourceVideoId:S.defaultActiveSourceVideoId});if(B=B.getWebPlayerContextConfig())E.encryptedHostFlags=B.encryptedHostFlags;a={videoId:a,context:J,playbackContext:{contentPlaybackContext:E}};if(S.uO){var e;a.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(e=S.uO)==null?void 0:e.reloadPlaybackParams}}S.contentCheckOk&&(a.contentCheckOk=!0);if(e=S.clientPlaybackNonce)a.cpn=e;if(e=S.playerParams)a.params=e;if(e=S.playlistId)a.playlistId=e;S.racyCheckOk&&(a.racyCheckOk=!0);e=S.J();J=e.embedConfig;S.xT&&e.T("embeds_enable_per_video_embed_config")?a.serializedThirdPartyEmbedConfig=S.xT:J&&(a.serializedThirdPartyEmbedConfig=J);a.captionParams={};J=g.hO().QD(65);S.deviceCaptionsOn!=null?a.captionParams.deviceCaptionsOn=S.deviceCaptionsOn: g.EV(e)&&(a.captionParams.deviceCaptionsOn=J!=null?!J:!1);S.eX&&(a.captionParams.deviceCaptionsLangPref=S.eX);S.zA.length?a.captionParams.viewerSelectedCaptionLangs=S.zA:g.EV(e)&&(J=g.ME(),J==null?0:J.length)&&(a.captionParams.viewerSelectedCaptionLangs=J);J=S.fetchType==="onesie"&&S.T("html5_onesie_attach_po_token");E=S.fetchType!=="onesie"&&S.T("html5_non_onesie_attach_po_token");if(J||E)J=S.J(),J.CC&&(a.serviceIntegrityDimensions={},a.serviceIntegrityDimensions.poToken=J.CC);e.T("fetch_att_independently")&& (a.attestationRequest={omitBotguardData:!0});a.playbackContext||(a.playbackContext={});a.playbackContext.devicePlaybackCapabilities=cdc(S);a.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&S.iY("noVp9",{});return a}; cdc=function(S){var W=!(S==null?0:S.PF())&&(S==null?void 0:S.Hv())&&JO(),m;if(!(m=S==null)){m=g.uZ(S);S=S.J().X;var a=n1("243");m=!(a&&ZF(m,a,S,!0)===!0)}return{supportsVp9Encoding:!(m||W),supportXhr:m1}}; SKK=function(S,W){var m,a,J;return g.k(function(B){if(B.C==1)return m={context:g.GE(S.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:S.videoId,cpn:S.clientPlaybackNonce}}]},a=g.Wz(wk6),g.P(B,g.Pz(W,m,a),2);J=B.N;return B.return(J)})}; WV7=function(S,W,m){var a=g.Db(W.experiments,"bg_vm_reinit_threshold");(!OK||(0,g.X1)()-OK>a)&&SKK(S,m).then(function(J){J&&(J=J.botguardData)&&g.QU(J,W)},function(J){S.TN()||(J=Bt(J),S.iY("attf",J.details))})}; TE=function(S,W){g.A.call(this);this.app=S;this.state=W}; pB=function(S,W,m){S.state.C.hasOwnProperty(W)||qV(S,W,m);S.state.V[W]=function(){return m.apply(S,g.VH.apply(0,arguments))}; S.state.S.add(W)}; F5=function(S,W,m){S.state.C.hasOwnProperty(W)||qV(S,W,m);S.app.J().S&&(S.state.Z[W]=function(){return m.apply(S,g.VH.apply(0,arguments))},S.state.S.add(W))}; qV=function(S,W,m){S.state.C[W]=function(){return m.apply(S,g.VH.apply(0,arguments))}}; g.VY=function(S,W,m){return S.state.C[W].apply(S.state.C,g.x(m))}; nB=function(){g.Hn.call(this);this.X=new Map}; sk=function(){g.A.apply(this,arguments);this.element=null;this.S=new Set;this.V={};this.Z={};this.C={};this.bY=new Set;this.B=new nB;this.N=new nB;this.j=new nB;this.X=new nB}; mEP=function(S,W,m){typeof S==="string"&&(S={mediaContentUrl:S,startSeconds:W,suggestedQuality:m});a:{if((W=S.mediaContentUrl)&&(W=/\/([ve]|embed)\/([^#?]+)/.exec(W))&&W[2]){W=W[2];break a}W=null}S.videoId=W;return ut(S)}; ut=function(S,W,m){if(typeof S==="string")return{videoId:S,startSeconds:W,suggestedQuality:m};W={};m=g.R(aFj);for(var a=m.next();!a.done;a=m.next())a=a.value,S[a]&&(W[a]=S[a]);if(S=S.embedConfig||S.embed_config)if(typeof S==="string")W.embed_config=S;else if(g.Ln(S))try{var J=JSON.stringify(S);W.embed_config=J}catch(B){console.error("Invalid embedConfig JSON",B)}return W}; Jq_=function(S,W,m,a){if(g.Ln(S)&&!Array.isArray(S)){W="playlist list listType index startSeconds suggestedQuality".split(" ");m={};for(a=0;a32&&a.push("hfr");W.isHdr()&&a.push("hdr");W.primaries==="bt2020"&&a.push("wcg");m.video_quality_features=a}}if(S=S.getPlaylistId())m.list=S;return m}; vf=function(){g_.apply(this,arguments)}; Hf=function(S,W){var m={};if(S.app.J().vn){S=g.R(yq6);for(var a=S.next();!a.done;a=S.next())a=a.value,W.hasOwnProperty(a)&&(m[a]=W[a]);if(W=m.qoe_cat)S="",typeof W==="string"&&W.length>0&&(S=W.split(",").filter(function(J){return YKP.includes(J)}).join(",")),m.qoe_cat=S; G4D(m)}else for(S=g.R(KVP),a=S.next();!a.done;a=S.next())a=a.value,W.hasOwnProperty(a)&&(m[a]=W[a]);return m}; G4D=function(S){var W=S.raw_player_response;if(!W){var m=S.player_response;m&&(W=JSON.parse(m))}delete S.player_response;delete S.raw_player_response;if(W){S.raw_player_response={streamingData:W.streamingData,playerConfig:W.playerConfig};var a;if((a=W.playbackTracking)==null?0:a.qoeUrl)S.raw_player_response=Object.assign({},S.raw_player_response,{playbackTracking:{qoeUrl:W.playbackTracking.qoeUrl}});W.videoDetails&&(W.videoDetails.videoId||W.videoDetails.lengthSeconds)&&(m={},W.videoDetails.videoId&& (m.videoId=W.videoDetails.videoId),W.videoDetails.lengthSeconds&&(m.lengthSeconds=W.videoDetails.lengthSeconds),S.raw_player_response=Object.assign({},S.raw_player_response,{videoDetails:m}))}}; qKP=function(S){var W=W===void 0?5:W;return S?Tz7[S]||W:W}; g.lt=function(){vf.apply(this,arguments)}; ph6=function(S){qV(S,"getInternalApiInterface",S.getInternalApiInterface);qV(S,"getTrustedApi",S.getTrustedApi);qV(S,"addEventListener",S.dJ);qV(S,"removeEventListener",S.cV2);qV(S,"cueVideoByPlayerVars",S.JH);qV(S,"loadVideoByPlayerVars",S.Ftn);qV(S,"preloadVideoByPlayerVars",S.uMn);qV(S,"getAdState",S.getAdState);qV(S,"sendAbandonmentPing",S.sendAbandonmentPing);qV(S,"setLoopRange",S.setLoopRange);qV(S,"getLoopRange",S.getLoopRange);qV(S,"setAutonavState",S.setAutonavState);qV(S,"seekTo",S.FT_); qV(S,"seekBy",S.JV9);qV(S,"seekToLiveHead",S.seekToLiveHead);qV(S,"requestSeekToWallTimeSeconds",S.requestSeekToWallTimeSeconds);qV(S,"seekToStreamTime",S.seekToStreamTime);qV(S,"prefetchKeyPlay",S.prefetchKeyPlay);qV(S,"startSeekCsiAction",S.startSeekCsiAction);qV(S,"getStreamTimeOffset",S.getStreamTimeOffset);qV(S,"getVideoData",S.yXq);qV(S,"setInlinePreview",S.setInlinePreview);qV(S,"getAppState",S.getAppState);qV(S,"updateLastActiveTime",S.updateLastActiveTime);qV(S,"setBlackout",S.setBlackout); qV(S,"setUserEngagement",S.setUserEngagement);qV(S,"updateSubtitlesUserSettings",S.updateSubtitlesUserSettings);qV(S,"getPresentingPlayerType",S.Dw);qV(S,"canPlayType",S.canPlayType);qV(S,"updatePlaylist",S.updatePlaylist);qV(S,"updateVideoData",S.updateVideoData);qV(S,"updateEnvironmentData",S.updateEnvironmentData);qV(S,"sendVideoStatsEngageEvent",S.UPn);qV(S,"productsInVideoVisibilityUpdated",S.productsInVideoVisibilityUpdated);qV(S,"setSafetyMode",S.setSafetyMode);qV(S,"isAtLiveHead",function(W){return S.isAtLiveHead(void 0, W)}); qV(S,"getVideoAspectRatio",S.getVideoAspectRatio);qV(S,"getPreferredQuality",S.getPreferredQuality);qV(S,"getPlaybackQualityLabel",S.getPlaybackQualityLabel);qV(S,"setPlaybackQualityRange",S.QUn);qV(S,"onAdUxClicked",S.onAdUxClicked);qV(S,"getFeedbackProductData",S.getFeedbackProductData);qV(S,"getStoryboardFrame",S.getStoryboardFrame);qV(S,"getStoryboardFrameIndex",S.getStoryboardFrameIndex);qV(S,"getStoryboardLevel",S.getStoryboardLevel);qV(S,"getNumberOfStoryboardLevels",S.getNumberOfStoryboardLevels); qV(S,"getCaptionWindowContainerId",S.getCaptionWindowContainerId);qV(S,"getAvailableQualityLabels",S.getAvailableQualityLabels);qV(S,"addCueRange",S.addCueRange);qV(S,"addUtcCueRange",S.addUtcCueRange);qV(S,"showAirplayPicker",S.showAirplayPicker);qV(S,"dispatchReduxAction",S.dispatchReduxAction);qV(S,"getPlayerResponse",S.b_2);qV(S,"getWatchNextResponse",S.GNn);qV(S,"getHeartbeatResponse",S.uc);qV(S,"getCurrentTime",S.pB);qV(S,"getDuration",S.Pq);qV(S,"getPlayerState",S.getPlayerState);qV(S,"getPlayerStateObject", S.i_N);qV(S,"getVideoLoadedFraction",S.getVideoLoadedFraction);qV(S,"getProgressState",S.getProgressState);qV(S,"getVolume",S.getVolume);qV(S,"setVolume",S.ID);qV(S,"isMuted",S.isMuted);qV(S,"mute",S.XC);qV(S,"unMute",S.Fr);qV(S,"loadModule",S.loadModule);qV(S,"unloadModule",S.unloadModule);qV(S,"getOption",S.J3);qV(S,"getOptions",S.getOptions);qV(S,"setOption",S.setOption);qV(S,"loadVideoById",S.HI);qV(S,"loadVideoByUrl",S.TP);qV(S,"playVideo",S.Gx);qV(S,"loadPlaylist",S.loadPlaylist);qV(S,"nextVideo", S.nextVideo);qV(S,"previousVideo",S.previousVideo);qV(S,"playVideoAt",S.playVideoAt);qV(S,"getDebugText",S.getDebugText);qV(S,"getWebPlayerContextConfig",S.getWebPlayerContextConfig);qV(S,"notifyShortsAdSwipeEvent",S.notifyShortsAdSwipeEvent);qV(S,"getVideoContentRect",S.getVideoContentRect);qV(S,"setSqueezeback",S.setSqueezeback);qV(S,"toggleSubtitlesOn",S.toggleSubtitlesOn);qV(S,"isSubtitlesOn",S.isSubtitlesOn);qV(S,"getAudioTrack",S.Sv);qV(S,"setAudioTrack",S.fr2);qV(S,"getAvailableAudioTracks", S.fB);qV(S,"reportPlaybackIssue",S.reportPlaybackIssue);qV(S,"setAutonav",S.setAutonav);qV(S,"isNotServable",S.isNotServable);qV(S,"channelSubscribed",S.channelSubscribed);qV(S,"channelUnsubscribed",S.channelUnsubscribed);qV(S,"togglePictureInPicture",S.togglePictureInPicture);qV(S,"supportsGaplessAudio",S.supportsGaplessAudio);qV(S,"supportsGaplessShorts",S.supportsGaplessShorts);qV(S,"enqueueVideoByPlayerVars",function(W){return void S.enqueueVideoByPlayerVars(W)}); qV(S,"clearQueue",S.clearQueue);qV(S,"getMaxPlaybackQuality",S.getMaxPlaybackQuality);qV(S,"getUserPlaybackQualityPreference",S.getUserPlaybackQualityPreference);qV(S,"getSubtitlesUserSettings",S.getSubtitlesUserSettings);qV(S,"resetSubtitlesUserSettings",S.resetSubtitlesUserSettings);qV(S,"setMinimized",S.setMinimized);qV(S,"setOverlayVisibility",S.setOverlayVisibility);qV(S,"confirmYpcRental",S.confirmYpcRental);qV(S,"queueNextVideo",S.queueNextVideo);qV(S,"handleExternalCall",S.handleExternalCall); qV(S,"logApiCall",S.logApiCall);qV(S,"isExternalMethodAvailable",S.isExternalMethodAvailable);qV(S,"setScreenLayer",S.setScreenLayer);qV(S,"getCurrentPlaylistSequence",S.getCurrentPlaylistSequence);qV(S,"getPlaylistSequenceForTime",S.getPlaylistSequenceForTime);qV(S,"shouldSendVisibilityState",S.shouldSendVisibilityState);qV(S,"syncVolume",S.syncVolume);qV(S,"highlightSettingsMenuItem",S.highlightSettingsMenuItem);qV(S,"openSettingsMenuItem",S.openSettingsMenuItem);qV(S,"getEmbeddedPlayerResponse", S.getEmbeddedPlayerResponse);qV(S,"getVisibilityState",S.getVisibilityState);qV(S,"isMutedByMutedAutoplay",S.isMutedByMutedAutoplay);qV(S,"isMutedByEmbedsMutedAutoplay",S.isMutedByEmbedsMutedAutoplay);qV(S,"setGlobalCrop",S.setGlobalCrop);qV(S,"setInternalSize",S.setInternalSize);qV(S,"setFauxFullscreen",S.setFauxFullscreen);qV(S,"setAppFullscreen",S.setAppFullscreen)}; Uk=function(S,W,m){S=g.MV(S.Dz(),W);return m?(m.addOnDisposeCallback(S),null):S}; g.Rg=function(S,W,m){return S.app.J().Od?W:g.Wo("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:W,SHORTCUT:m})}; FVO=function(S){S.Dz().element.setAttribute("aria-live","polite")}; g.x8=function(S,W){g.lt.call(this,S,W);ph6(this);F5(this,"addEventListener",this.Yu);F5(this,"removeEventListener",this.GON);F5(this,"cueVideoByPlayerVars",this.zF);F5(this,"loadVideoByPlayerVars",this.hN_);F5(this,"preloadVideoByPlayerVars",this.x69);F5(this,"loadVideoById",this.HI);F5(this,"loadVideoByUrl",this.TP);F5(this,"playVideo",this.Gx);F5(this,"loadPlaylist",this.loadPlaylist);F5(this,"nextVideo",this.nextVideo);F5(this,"previousVideo",this.previousVideo);F5(this,"playVideoAt",this.playVideoAt); F5(this,"getVideoData",this.po);F5(this,"seekBy",this.zaX);F5(this,"seekTo",this.DPQ);F5(this,"showControls",this.showControls);F5(this,"hideControls",this.hideControls);F5(this,"cancelPlayback",this.cancelPlayback);F5(this,"getProgressState",this.getProgressState);F5(this,"isInline",this.isInline);F5(this,"setInline",this.setInline);F5(this,"setLoopVideo",this.setLoopVideo);F5(this,"getLoopVideo",this.getLoopVideo);F5(this,"getVideoContentRect",this.getVideoContentRect);F5(this,"getVideoStats",this.cX2); F5(this,"getCurrentTime",this.Rx);F5(this,"getDuration",this.Pq);F5(this,"getPlayerState",this.v6U);F5(this,"getVideoLoadedFraction",this.wn6);F5(this,"mute",this.XC);F5(this,"unMute",this.Fr);F5(this,"setVolume",this.ID);F5(this,"loadModule",this.loadModule);F5(this,"unloadModule",this.unloadModule);F5(this,"getOption",this.J3);F5(this,"getOptions",this.getOptions);F5(this,"setOption",this.setOption);F5(this,"addCueRange",this.addCueRange);F5(this,"getDebugText",this.getDebugText);F5(this,"getStoryboardFormat", this.getStoryboardFormat);F5(this,"toggleFullscreen",this.toggleFullscreen);F5(this,"isFullscreen",this.isFullscreen);F5(this,"getPlayerSize",this.getPlayerSize);F5(this,"toggleSubtitles",this.toggleSubtitles);F5(this,"setCenterCrop",this.setCenterCrop);F5(this,"setFauxFullscreen",this.setFauxFullscreen);F5(this,"setSizeStyle",this.setSizeStyle);F5(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);F5(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);E1P(this)}; g.d_=function(S){S=S.GV();var W=S.Ar.get("endscreen");return W&&W.Wk()?!0:S.OQ()}; g.Ig=function(S,W){S.getPresentingPlayerType()===3?S.publish("mdxautoplaycancel"):S.f_("onAutonavCancelled",W)}; g.fB=function(S){var W=Pf(S.GV());return S.app.nk&&!S.isFullscreen()||S.getPresentingPlayerType()===3&&W&&W.hasNext()&&W.hasPrevious()||!!S.getPlaylist()}; g.k8=function(S,W){g.VY(S,"addEmbedsConversionTrackingParams",[W])}; g.hc=function(S){return(S=g.$8(S.GV()))?S.N$():{}}; g.VPO=function(S){S=(S=S.getVideoData())&&S.N;return!!S&&!(!S.audio||!S.video)&&S.mimeType!=="application/x-mpegURL"}; g.tc=function(S,W,m){S=S.k6().element;var a=Tt(S.children,function(J){J=Number(J.getAttribute("data-layer"));return m-J||1}); a<0&&(a=-(a+1));LX(S,W,a);W.setAttribute("data-layer",String(m))}; g.Ac=function(S){var W=S.J();if(!W.o6)return!1;var m=S.getVideoData();if(!m||S.getPresentingPlayerType()===3)return!1;var a=(!m.isLiveDefaultBroadcast||W.T("allow_poltergust_autoplay"))&&!zE(m);a=m.isLivePlayback&&(!W.T("allow_live_autoplay")||!a);var J=m.isLivePlayback&&W.T("allow_live_autoplay_on_mweb");S=S.getPlaylist();S=!!S&&S.hasNext();var B=m.q2&&m.q2.playerOverlays||null;B=!!(B&&B.playerOverlayRenderer&&B.playerOverlayRenderer.autoplay);B=m.uP&&B;return!m.ypcPreview&&(!a||J)&&!g.oZ(m.S1,"ypc")&& !S&&(!g.f9(W)||B)}; n1_=function(S,W){S=S.app.Df().V.z4();S=g.R(S);for(var m=S.next();!m.done;m=S.next()){m=m.value;var a=m.getAvailableAudioTracks(),J=null;a=g.R(a);for(var B=a.next();!B.done;B=a.next())if(B=B.value,B.getLanguageInfo().getId()===W){J=B;break}J&&m.qD(J,!0)}}; ZT=function(){kR.apply(this,arguments);this.requestHeaders={}}; bt=function(){NV||(NV=new ZT);return NV}; og=function(S,W){W?S.requestHeaders.Authorization="Bearer "+W:delete S.requestHeaders.Authorization}; sUD=function(S){this.experiments=S;this.C=2048;this.j=0;this.N2=(this.Z=this.T("html5_streaming_resilience"))?.5:.25;var W=W===void 0?0:W;this.B=g.Db(this.experiments,"html5_media_time_weight_prop")||W;this.bY=(this.X=this.experiments.mU("html5_consider_end_stall"))&&m1;this.N=this.experiments.mU("html5_measure_max_progress_handling");this.S=this.T("html5_treat_requests_pre_elbow_as_metadata");this.V=this.T("html5_media_time_weight")||!!this.B;this.T("html5_sabr_live_audio_early_return_fix")&&m1&& (this.C=65536)}; g.r_=function(S){g.A.call(this);var W=this;this.C_=S;this.f3={EJ:function(){return W.C_}}}; CB=function(S,W,m,a){a=a===void 0?!1:a;g.yG.call(this,W);var J=this;this.W=S;this.N2=a;this.X=new g.Tx(this);this.fade=new g.mo(this,m,!0,void 0,void 0,function(){J.Bq()}); g.Z(this,this.X);g.Z(this,this.fade)}; cf=function(S){var W=S.W.getRootNode();return S.W.T("web_watch_pip")||S.W.T("web_shorts_pip")?q1(W):document}; u6D=function(S){S.sourceElement&&(document.activeElement&&g.xg(S.element,document.activeElement)&&S.sourceElement.focus(),S.sourceElement.setAttribute("aria-expanded","false"),S.sourceElement=void 0);g.eY(S.X);S.V=void 0}; DT=function(S,W,m){S.wj()?S.OV():S.Uc(W,m)}; w_=function(S,W,m,a){a=new g.b({G:"div",Wn:["ytp-linked-account-popup-button"],Bn:a,D:{role:"button",tabindex:"0"}});W=new g.b({G:"div",L:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{G:"div",L:"ytp-linked-account-popup-title",Bn:W},{G:"div",L:"ytp-linked-account-popup-description",Bn:m},{G:"div",L:"ytp-linked-account-popup-buttons",U:[a]}]});CB.call(this,S,{G:"div",L:"ytp-linked-account-popup-container",U:[W]},100);var J=this;this.dialog=W;g.Z(this,this.dialog); a.listen("click",function(){J.OV()}); g.Z(this,a);g.tc(this.W,this.element,4);this.hide()}; g.Ws=function(S,W,m,a){g.yG.call(this,S);this.priority=W;m&&g.Si(this,m);a&&this.setContent(a)}; g.mv=function(S,W,m,a){S=S===void 0?{}:S;W=W===void 0?[]:W;m=m===void 0?!1:m;a=a===void 0?!1:a;W.push("ytp-menuitem");var J=S;"role"in J||(J.role="menuitem");m||(J=S,"tabindex"in J||(J.tabindex="0"));S={G:m?"a":"div",Wn:W,D:S,U:[{G:"div",L:"ytp-menuitem-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",Bn:"{{label}}"},{G:"div",L:"ytp-menuitem-content",Bn:"{{content}}"}]};a&&S.U.push({G:"div",L:"ytp-menuitem-secondary-icon",Bn:"{{secondaryIcon}}"});return S}; g.Si=function(S,W){S.updateValue("label",W)}; aQ=function(S){g.Ws.call(this,g.mv({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var W=this;this.W=S;this.N=this.C=!1;this.C3=S.gE();S.createServerVe(this.element,this,!0);this.K(this.W,"settingsMenuVisibilityChanged",function(m){W.Nd(m)}); this.K(this.W,"videodatachange",this.j);this.listen("click",this.onClick);this.j()}; J5=function(S){return S?g.K8(S):""}; Bs=function(S){g.A.call(this);this.api=S}; Ea=function(S){Bs.call(this,S);var W=this;qV(S,"setAccountLinkState",function(m){W.setAccountLinkState(m)}); qV(S,"updateAccountLinkingConfig",function(m){W.updateAccountLinkingConfig(m)}); S.addEventListener("videodatachange",function(m,a){W.onVideoDataChange(a)}); S.addEventListener("settingsMenuInitialized",function(){W.menuItem=new aQ(W.api);g.Z(W,W.menuItem)})}; zw=function(S){Bs.call(this,S);var W=this;this.C=null;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"applicationvideodatachange",function(){W.PN()})}; g16=function(S){this.api=S;this.C={}}; y4=function(S,W,m,a){W in S.C||(m=new g.hD(m,a,{id:W,priority:2,namespace:"appad"}),S.api.oY([m],1),S.C[W]=m)}; YI=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(this);g.Z(this,this.events);this.C=new g16(this.api);this.events.K(this.api,"legacyadtrackingpingreset",function(){W.C.C={}}); this.events.K(this.api,"legacyadtrackingpingchange",function(m){var a=W.C;y4(a,"part2viewed",1,0x8000000000000);y4(a,"engagedview",Math.max(1,m.tD*1E3),0x8000000000000);if(!m.isLivePlayback){var J=m.lengthSeconds*1E3;Fh(m)&&a.api.T("html5_shorts_gapless_ads_duration_fix")&&(J=a.api.getProgressState().seekableEnd*1E3-m.Qe);y4(a,"videoplaytime25",J*.25,J);y4(a,"videoplaytime50",J*.5,J);y4(a,"videoplaytime75",J*.75,J);y4(a,"videoplaytime100",J,0x8000000000000);y4(a,"conversionview",J,0x8000000000000); y4(a,"videoplaybackstart",1,J);y4(a,"videoplayback2s",2E3,J);y4(a,"videoplayback10s",1E4,J)}}); this.events.K(this.api,g.AD("appad"),this.N);this.events.K(this.api,g.Z5("appad"),this.N)}; XhD=function(S,W,m){if(!(m in W))return!1;W=W[m];Array.isArray(W)||(W=[W]);W=g.R(W);for(m=W.next();!m.done;m=W.next()){m=m.value;var a={CPN:S.api.getVideoData().clientPlaybackNonce};m=g.Lu(m,a);a=void 0;a=a===void 0?!1:a;(a=II(Pa(m,Ow7),m,a,"Active View 3rd Party Integration URL"))||(a=void 0,a=a===void 0?!1:a,a=II(Pa(m,jUO),m,a,"Google/YouTube Brand Lift URL"));a||(a=void 0,a=a===void 0?!1:a,a=II(Pa(m,QU_),m,a,"Nielsen OCR URL"));g.Ir(m,void 0,a)}return!0}; Gw=function(S,W){v1D(S,W).then(function(m){g.Ir(W,void 0,void 0,m)})}; Ki=function(S,W){W.forEach(function(m){Gw(S,m)})}; v1D=function(S,W){return g.pt(S.api.J())&&Tc(W)&&K0(W)?g.Fm(S.api.J(),g.cB(S.api.getVideoData())).then(function(m){var a;m&&(a={Authorization:"Bearer "+m});return a},void 0):du()}; Hwj=function(S){Bs.call(this,S);this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"videoready",function(W){if(S.getPresentingPlayerType()===1){var m,a,J={playerDebugData:{pmlSignal:!!((m=W.getPlayerResponse())==null?0:(a=m.adPlacements)==null?0:a.some(function(B){var E;return B==null?void 0:(E=B.adPlacementRenderer)==null?void 0:E.renderer})), contentCpn:W.clientPlaybackNonce}};g.qd("adsClientStateChange",J)}})}; Tw=function(S,W){g.Ws.call(this,g.mv({role:"menuitemcheckbox","aria-checked":"false"}),W,S,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; qn=function(S,W){S.checked=W;S.element.setAttribute("aria-checked",String(S.checked))}; lFP=function(S){var W=!S.J().Mp&&S.getPresentingPlayerType()!==3;return S.isFullscreen()||W}; g.pi=function(S,W,m,a){var J=S.currentTarget;if((m===void 0||!m)&&g.Qj(S))return S.preventDefault(),!0;W.pauseVideo();S=J.getAttribute("href");g.Aj(S,a,!0);return!1}; g.F4=function(S,W,m){if(ay(W.J())&&W.getPresentingPlayerType()!==2){if(g.Qj(m))return W.isFullscreen()&&!W.J().externalFullscreen&&W.toggleFullscreen(),m.preventDefault(),!0}else{var a=g.Qj(m);a&&W.pauseVideo();g.Aj(S,void 0,!0);a&&(g.ZQ(S),m.preventDefault())}return!1}; MPP=function(S){S=V4.includes("en-GB")?S.T("delhi_modern_web_player_icons")?n8():{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,D:{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"}}]}:S.T("delhi_modern_web_player_icons")?VYc():{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,D:{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"}}]};S.L="ytp-subtitles-button-icon"; return S}; UEP=function(S){return V4.includes("en-GB")?S?n8():{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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"}}]}:S?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},U:[{G:"path",D:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; ni=function(){return{G:"div",L:"ytp-spinner-container",U:[{G:"div",L:"ytp-spinner-rotator",U:[{G:"div",L:"ytp-spinner-left",U:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",U:[{G:"div",L:"ytp-spinner-circle"}]}]}]}}; sa=function(S){if(document.createRange){var W=document.createRange();W&&(W.selectNodeContents(S),S=window.getSelection())&&(S.removeAllRanges(),S.addRange(W))}}; gk=function(S,W){var m=S.T("web_fix_annotations")?"Annotated overlays":"Annotations";Tw.call(this,m,g.uG.MO);this.W=S;this.C3=W;this.C=!1;S.T("web_settings_menu_icons")&&(W=S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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.K(S,"videodatachange",this.L_);this.K(S,"onApiChange",this.L_);this.subscribe("select",this.onSelect,this);this.L_()}; LVl=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);S.addEventListener("settingsMenuInitialized",function(){var m=new gk(W.api,W.api.gE());g.Z(W,m)})}; ji=function(S){var W=this;this.C={};this.B={};this.f3={yjD:function(){return W.C}}; this.videoData=S;var m,a=(m=S.B)==null?void 0:m.N;a&&a.length>0?this.N=a:(S=S.getAvailableAudioTracks(),this.N=S.length>0?R$K(S):[]);S=g.R(Oa);for(m=S.next();!m.done;m=S.next())m=m.value,this.C[m]=e$c[m](this.N);this.Br()}; xEP=function(S,W){var m=W.getAudioTrack();return m.id!=="und"?g.fL(S,function(a){var J;return((J=a.n3)==null?void 0:J.name)===m.getLanguageInfo().name}):S}; iwD=function(S,W){return W.getUserAudio51Preference()?g.fL(S,Q4):S}; R$K=function(S){return S.map(function(W){return new R3(W.id,"application/x-mpegURL",{n3:W.n3})})}; dEX=function(S){return g.dU("yt-player-drc-pref")?g.fL(S,X4):S}; IFP=function(S){return uTG()===2?g.fL(S,vs):S}; Pd_=function(S){return gf_()===1?g.fL(S,Hs):S}; Hs=function(S){var W;return((W=S.audio)==null?void 0:W.audioQuality)==="AUDIO_QUALITY_HIGH"&&!I3(S)}; X4=function(S){var W;return((W=S.audio)==null?void 0:W.C)===!0}; Q4=function(S){return I3(S)}; fFP=function(S){return S.n3!==void 0}; vs=function(S){var W;return((W=S.audio)==null?void 0:W.N)===!0}; lG=function(S,W){if(S.length<2)return!1;var m=W(S[0]);return S.some(function(a){return W(a)!==m})}; k4X=function(S,W){S=new Set(S.map(W));S.delete(void 0);return S.size>=2}; Mn=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);var m=this.api.T("html5_enable_audio_quality_setting_feature");qV(this.api,"getUserAudioQualitySetting",function(){return m?W.getUserAudioQualitySetting():2}); qV(this.api,"setUserAudioQualitySetting",function(a){m&&W.setUserAudioQualitySetting(a)}); qV(this.api,"hasHqaAudioTrack",function(){return m?W.hasHqaAudioTrack():!1}); qV(this.api,"getAudioQualitySettingState",function(){return m?W.api.xM(4):1}); this.pU=gf_();this.updateEnvironmentData()}; $E6=function(S){Bs.call(this,S);var W=this;qV(this.api,"getAudioTrackState",function(){return W.api.xM(0)})}; Ua=function(S){g.b.call(this,{G:"button",Wn:["ytp-button","ytp-autonav-toggle"],D:{title:S.T("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"},U:[{G:"div",L:"ytp-autonav-toggle-button-container",U:[{G:"div",L:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.W=S;this.N=[];this.C=!1;this.isChecked=!0;S.createClientVe(this.element,this, 113681);this.K(S,"presentingplayerstatechange",this.z9);this.listen("click",this.onClick);this.N.push(this.K(this.W,"videodatachange",this.z9));this.N.push(this.K(this.W,"videoplayerreset",this.z9));this.N.push(this.K(this.W,"onPlaylistUpdate",this.z9));this.N.push(this.K(this.W,"autonavchange",this.QK));Uk(S,this.element,this);this.z9()}; h$D=function(S){S.isChecked=S.isChecked;S.I2("ytp-autonav-toggle-button").setAttribute("aria-checked",String(S.isChecked));var W=S.isChecked?"Auto-play is on":"Auto-play is off";S.W.J().T("player_tooltip_data_title_killswitch")?S.update({title:W,label:W}):S.update({"data-tooltip-title":W,label:W});S.W.iK()}; var YPQ=function(S,W,m,a,J,B,E){return VP[z[7]](this,8,S,W,m,a,J,B,E)}; tPO=function(S){return S.W.J().T("web_player_autonav_use_server_provided_state")&&Ya(S.CP())}; Aq6=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"standardControlsInitialized",function(){var m=new Ua(S);g.Z(W,m);S.dY(m,"RIGHT_CONTROLS_LEFT")})}; RQ=function(S){var W=S.T("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Tw.call(this,W,g.uG.Gr);var m=this;this.W=S;this.C=!1;this.N=new g.rj(function(){g.zD(m.element,"ytp-menuitem-highlighted")},0); this.C3=S.gE();S=S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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(S);this.subscribe("select",this.B,this);this.listen(Li,this.j);g.Z(this,this.N)}; ei=function(S){Bs.call(this,S);var W=this;this.C=!1;S.addEventListener("settingsMenuInitialized",function(){Zwj(W)}); S.addEventListener("highlightSettingsMenu",function(m){Zwj(W);var a=W.menuItem;m==="menu_item_cinematic_lighting"&&(g.Bn(a.element,"ytp-menuitem-highlighted"),g.Bn(a.element,"ytp-menuitem-highlight-transition-enabled"),a.N.start())}); qV(S,"updateCinematicSettings",function(m){W.updateCinematicSettings(m)})}; Zwj=function(S){S.menuItem||(S.menuItem=new RQ(S.api),g.Z(S,S.menuItem),S.menuItem.L_(S.C))}; Nz7=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"applicationvideodatachange",function(m,a){a=a.clipConfig;m==="dataloaded"&&a&&a.startTimeMs!=null&&a.endTimeMs!=null&&W.api.setLoopRange({startTimeMs:Math.floor(Number(a.startTimeMs)),endTimeMs:Math.floor(Number(a.endTimeMs)),postId:a.postId,type:"clips"})})}; xI=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);qV(S,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));qV(S,"setCreatorEndscreenHideButton",this.C.bind(this));this.T("web_fix_annotations")&&this.events.K(S,"annotationvisibility",function(m){W.setCreatorEndscreenVisibility(!m);W.hideButton&&g.F$(W.hideButton,m)})}; o1P=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"videodatachange",function(){var m=W.api.getRootNode(),a=W.api.J();g.Bn(m,"ytp-delhi-modern");a.T("delhi_modern_web_player_icons")&&g.Bn(m,"ytp-delhi-modern-icons");a.T("delhi_modern_web_player_horizontal_volume_controls")&&g.Bn(m,"ytp-delhi-horizontal-volume-controls");a.T("delhi_modern_web_player_compact_controls")&&g.Bn(m,"ytp-delhi-modern-compact-controls");a.T("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.Bn(m,"ytp-big-mode-consistent-pill-height");switch(OZ(a.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.Bn(m,"ytp-delhi-modern-with-luminosity");break;case "difference":g.Bn(m,"ytp-delhi-modern-with-difference");break;case "exclusion":g.Bn(m,"ytp-delhi-modern-with-exclusion")}m=W.api.isHdr()||W.api.T("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";W.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",m);bwK(W)}); this.events.K(S,"resize",function(){bwK(W)})}; bwK=function(S){var W=S.api.T("delhi_modern_web_player_compact_controls"),m=g.Db(S.api.J().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),a=W||m>0&&S.api.getPlayerSize().width<=m;W=S.api.getRootNode();W.classList.toggle("ytp-delhi-modern-compact-controls",a);m=a?"40px":"48px";var J=a?"8px":"12px",B=a?"56px":"72px",E=a?"56px":"64px",y=a?"48px":"56px",Y=a?"12px":"20px";a=a?"72px":"96px";S.api.T("delhi_modern_web_player_big_mode_consistent_pill_height")&&(y="56px",Y="12px", a="80px");W.style.setProperty("--yt-delhi-pill-height",m);W.style.setProperty("--yt-delhi-pill-top-height",J);W.style.setProperty("--yt-delhi-bottom-controls-height",B);W.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",E);W.style.setProperty("--yt-delhi-big-mode-pill-height",y);W.style.setProperty("--yt-delhi-big-mode-pill-top-height",Y);W.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",a)}; iG=function(S,W,m,a,J){var B=S.T("html5_enable_new_audio_settings_menu");Tw.call(this,"Stable volume",B?rq_.R_:g.uG.R_);this.W=S;this.j=W;this.N=m;this.hasDrcAudioTrack=a;this.getDrcState=J;this.B=this.enableNewAudioSettingsMenu=this.C=!1;g.Bn(this.element,"ytp-drc-menu-item");this.C3=(this.enableNewAudioSettingsMenu=B)?S.gE().sY:S.gE();S.T("html5_enable_voice_boost")?(this.B=!0,this.K(S,"onFilterAudioFeatures",this.FG)):S.addEventListener("videodatachange",this.FG.bind(this));S.T("mta_drc_mutual_exclusion_removal")&& this.K(S,"onPlaybackAudioChange",this.FG);S.createClientVe(this.element,this,273317);this.listen("click",this.V);W=this.N()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(S=S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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(S));this.subscribe("select",this.X,this);this.enableNewAudioSettingsMenu||this.B?this.FG():(this.setEnabled(this.hasDrcAudioTrack()),qn(this,W),this.C3.xb(this))}; dk=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);S.T("html5_show_drc_toggle")&&S.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new iG(W.api,W.setDrcUserPreference.bind(W),W.getDrcUserPreference.bind(W),W.Yx.bind(W),W.getDrcState.bind(W)),g.Z(W,W.menuItem))}); qV(this.api,"setDrcUserPreference",function(a){W.setDrcUserPreference(a)}); qV(this.api,"getDrcUserPreference",function(){return W.getDrcUserPreference()}); qV(this.api,"hasDrcAudioTrack",function(){return W.Yx()}); qV(this.api,"getDrcState",function(){return W.getDrcState()}); var m;this.C=(m=g.dU("yt-player-drc-pref"))!=null?m:1;this.updateEnvironmentData()}; IQ=function(S){Bs.call(this,S);var W=this;this.C={};this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"videodatachange",function(){W.onVideoDataChange()}); this.events.K(S,g.AD("embargo"),function(m){W.api.l6(!0);var a,J=(a=W.C[m.id])!=null?a:[];a=g.R(J);for(J=a.next();!J.done;J=a.next()){var B=J.value;W.api.hideControls();W.api.QP("auth",2,"This video isn't available in your current playback area",m6({embargoed:1,id:m.id,idx:m.N,start:m.start}));J=void 0;(B=(J=B.embargo)==null?void 0:J.onTrigger)&&W.api.f_("innertubeCommand",B)}})}; CdP=function(S,W){var m;return(m=W.onEnter)==null?void 0:m.some(S.N)}; cqc=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var a=void 0,J=Number((a=m.playbackPosition)==null?void 0:a.utcTimeMillis)/1E3,B=void 0;a=J+Number((B=m.duration)==null?void 0:B.seconds);B="embargo_"+J;S.api.addUtcCueRange(B,J,a,"embargo",!1);m.onEnter&&(S.C[B]=m.onEnter.filter(S.N))}}; Ps=function(S){Bs.call(this,S);var W=this;this.C=[];this.events=new g.Tx(S);g.Z(this,this.events);qV(S,"addEmbedsConversionTrackingParams",function(m){W.addEmbedsConversionTrackingParams(m)}); this.events.K(S,"veClickLogged",function(m){W.api.hasVe(m)&&(m=m.visualElement.getAsJspb(),m=g.oo(m,2),W.C.push(m))})}; DEc=function(S){Bs.call(this,S);qV(S,"isEmbedsShortsMode",function(){return S.isEmbedsShortsMode()}); qV(S,"getReelItemWatchResponse",function(){var W,m;return(m=(W=S.getVideoData(1))==null?void 0:W.getReelItemWatchResponse())!=null?m:null})}; whO=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"initialvideodatacreated",function(m){qE(T4(),16623);W.C=g.uR();var a=S.J().pJ&&!m.eg;if(Cp(m)&&a){qE(T4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(m.getWatchNextResponse()){var J,B=(J=m.getWatchNextResponse())==null?void 0:J.trackingParams;B&&F6(B)}if(m.getPlayerResponse()){var E;(m=(E=m.getPlayerResponse())==null?void 0:E.trackingParams)&&F6(m)}}else qE(T4(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),m.getEmbeddedPlayerResponse()&&(E=(B=m.getEmbeddedPlayerResponse())==null?void 0:B.trackingParams)&&F6(E)}); this.events.K(S,"loadvideo",function(){qE(T4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.C})}); this.events.K(S,"cuevideo",function(m){m===1&&qE(T4(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.C})}); this.events.K(S,"largeplaybuttonclicked",function(m){qE(T4(),27240,m.visualElement)}); this.events.K(S,"playlistnextbuttonclicked",function(m){qE(T4(),27240,m.visualElement)}); this.events.K(S,"playlistprevbuttonclicked",function(m){qE(T4(),27240,m.visualElement)}); this.events.K(S,"playlistautonextvideo",function(){qE(T4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; fi=function(S,W){g.A.call(this);var m=this;this.C=null;this.B=W;W=[];for(var a=0;a<=100;a++)W.push(a/100);W={threshold:W,trackVisibility:!0,delay:1E3};(this.N=window.IntersectionObserver?new IntersectionObserver(function(J){J=J[J.length-1];var B=null;typeof J.isVisible==="undefined"?document.visibilityState==="visible"&&J.isIntersecting&&J.intersectionRatio>0?B=J.intersectionRatio:document.visibilityState==="hidden"?B=0:B=null:B=J.isVisible?J.intersectionRatio:0;B!=null&&(B=Math.max(B,0),B=Math.min(B, 1));m.C=B;typeof m.B==="function"&&m.B(m.C)},W):null)&&this.N.observe(S)}; WQ6=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"applicationInitialized",function(){Sc6(W)})}; Sc6=function(S){var W=S.api.getRootNode(),m,a=S.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((m=W.parentElement)==null?void 0:m.parentElement)||W:W;S.C=new fi(a,function(J){J!=null&&(S.api.J().L6=J,S.api.J().K6="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.Z(S,S.C);S.events.K(S.api,"videoStatsPingCreated",function(J){var B=S.C;B=B.C==null?null:Math.round(B.C*100)/100;J.inview=B!=null?B:void 0;B=S.api.getPlayerSize();if(B.height>0&&B.width>0){B=[Math.round(B.width),Math.round(B.height)];var E=g.BY();E>1&&B.push(E);B=B.join(":")}else B=void 0;J.size=B})}; kI=function(S){Bs.call(this,S);var W=this;qV(this.api,"dismissFeaturedProductOverlay",function(){W.dismissFeaturedProductOverlay()})}; mtc=function(S){var W;return((W=((S==null?void 0:S.messageRenderers)||[]).find(function(m){return!!m.timeCounterRenderer}))==null?void 0:W.timeCounterRenderer)||null}; $I=function(S){g.b.call(this,{G:"div",Wn:["ytp-player-content","ytp-iv-player-content"],U:[{G:"div",L:"ytp-free-preview-countdown-timer",U:[{G:"span",Bn:"{{label}}"},{G:"span",L:"ytp-free-preview-countdown-timer-separator",Bn:"\u2022"},{G:"span",Bn:"{{duration}}"}]}]});this.api=S;this.C=null;this.B=this.N=0;this.K(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Juc=function(S,W){S.C||(S.N=W,S.B=(0,g.X1)(),S.C=new g.oG(function(){aDO(S)},null),aDO(S))}; aDO=function(S){var W=Math,m=W.round,a=Math.min((0,g.X1)()-S.B,S.N);W=m.call(W,(S.N-a)/1E3);S.updateValue("duration",Bh({seconds:W}));W<=0&&S.C?S.stopTimer():S.C&&S.C.start()}; B2P=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"basechromeinitialized",function(){W.C=new $I(S);g.Z(W,W.C);g.tc(S,W.C.element,4);W.C.hide()})}; h5=function(S){g.b.call(this,{G:"button",Wn:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Wn:["ytp-fullerscreen-edu-text"],Bn:"Scroll for details"},{G:"div",Wn:["ytp-fullerscreen-edu-chevron"],U:[NuK()]}],D:{"data-priority":"2"}});this.E9=S;this.fade=new g.mo(this,250,void 0,100);this.N=this.C=!1;S.createClientVe(this.element,this,61214);g.Z(this,this.fade);this.K(S,"fullscreentoggled",this.L_);this.K(S,"presentingplayerstatechange",this.L_);this.listen("click",this.onClick);this.L_()}; t5=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);qV(this.api,"updateFullerscreenEduButtonSubtleModeState",function(a){W.updateFullerscreenEduButtonSubtleModeState(a)}); qV(this.api,"updateFullerscreenEduButtonVisibility",function(a){W.updateFullerscreenEduButtonVisibility(a)}); var m=S.J();S.T("external_fullscreen_with_edu")&&m.externalFullscreen&&ay(m)&&m.controlsType==="1"&&this.events.K(S,"standardControlsInitialized",function(){W.C=new h5(S);g.Z(W,W.C);S.dY(W.C)})}; EE_=function(S){g.b.call(this,{G:"div",L:"ytp-gated-actions-overlay",U:[{G:"div",L:"ytp-gated-actions-overlay-background",U:[{G:"div",L:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",Wn:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Close"},U:[g.VG()]},{G:"div",L:"ytp-gated-actions-overlay-bar",U:[{G:"div",L:"ytp-gated-actions-overlay-text-container",U:[{G:"div",L:"ytp-gated-actions-overlay-title",Bn:"{{title}}"},{G:"div",L:"ytp-gated-actions-overlay-subtitle", Bn:"{{subtitle}}"}]},{G:"div",L:"ytp-gated-actions-overlay-button-container"}]}]});var W=this;this.api=S;this.background=this.I2("ytp-gated-actions-overlay-background");this.N=this.I2("ytp-gated-actions-overlay-button-container");this.C=[];this.K(this.I2("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){W.api.f_("onCloseMiniplayer")}); this.hide()}; yuG=function(S,W){var m=0;m=0;for(var a={};m J&&(J=y.width,B="url("+y.url+")")}m.background.style.backgroundImage=B;yuG(m,a.actionButtons||[]);m.show()}else m.hide()}); g.tc(this.api,this.C.element,4)}; A5=function(S){Bs.call(this,S);var W=this;F5(this.api,"getSphericalProperties",function(){return W.getSphericalProperties()}); F5(this.api,"setSphericalProperties",function(){W.setSphericalProperties.apply(W,g.x(g.VH.apply(0,arguments)))}); pB(this.api,"getSphericalProperties",function(){return W.api.getPresentingPlayerType()===2?{}:W.getSphericalProperties()}); pB(this.api,"setSphericalProperties",function(){var m=g.VH.apply(0,arguments);W.api.getPresentingPlayerType()!==2&&W.setSphericalProperties.apply(W,g.x(m))})}; ZW=function(S){Bs.call(this,S);qV(S,"createClientVe",this.createClientVe.bind(this));qV(S,"createServerVe",this.createServerVe.bind(this));qV(S,"destroyVe",this.destroyVe.bind(this));qV(S,"hasVe",this.hasVe.bind(this));qV(S,"logClick",this.logClick.bind(this));qV(S,"logVisibility",this.logVisibility.bind(this));qV(S,"setTrackingParams",this.setTrackingParams.bind(this))}; Nn=function(S,W,m,a){function J(E){var y=!(E.status!==204&&E.status!==200&&!E.response),Y;E={succ:""+ +y,rc:E.status,lb:((Y=E.response)==null?void 0:Y.byteLength)||0,rt:((0,g.X1)()-B).toFixed(),shost:g.vj(S),trigger:W};GQj(E,S);m&&m(E);a&&!y&&a(new g.a3("pathprobe.net",E))} var B=(0,g.X1)();g.Mi(S,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:J,onTimeout:J})}; GQj=function(S,W){var m;((m=window.performance)==null?0:m.getEntriesByName)&&(W=performance.getEntriesByName(W))&&W.length&&(W=W[0],S.pedns=(W.domainLookupEnd-W.startTime).toFixed(),S.pecon=(W.connectEnd-W.domainLookupEnd).toFixed(),S.perqs=(W.requestStart-W.connectEnd).toFixed(),KQX&&(S.perqsa=W.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; T27=function(S){KQX=S}; bG=function(S,W){this.Av=S;this.policy=W;this.playbackRate=1}; qcO=function(S,W){var m=Math.min(2.5,oQ(S.Av));S=rk(S);return W-m*S}; cs=function(S,W,m,a,J){J=J===void 0?!1:J;if(S.policy.ZI)return Math.ceil(S.policy.ZI*W);S.policy.lR&&(a=Math.abs(a));a/=S.playbackRate;var B=1/Ci(S.Av);m=Math.max(.9*(a-3),oQ(S.Av)+S.Av.N.C*B)/B*.8/(W+m);m=Math.min(m,a);S.policy.Oa>0&&J&&(m=Math.max(m,S.policy.Oa));return pWQ(S,m,W)}; pWQ=function(S,W,m){return Math.ceil(Math.max(Math.max(S.policy.r4,S.policy.K8*m),Math.min(Math.min(S.policy.hX,31*m),Math.ceil(W*m))))||S.policy.r4}; rk=function(S){return Ci(S.Av,!S.policy.ZN,S.policy.FF)}; DW=function(S){return rk(S)/S.playbackRate}; wk=function(S,W,m){var a=S.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],J=S.policy.playbackStartPolicy.startMinReadaheadPolicy||[];S=Infinity;W=g.R(W&&a.length>0?a:J);for(a=W.next();!a.done;a=W.next())a=a.value,J=a.minReadaheadMs||0,m<(a.minBandwidthBytesPerSec||0)||S>J&&(S=J);return S0&&(this.N=m.DU)}; nEP=function(S,W,m,a,J){if(!a.info.B){if(m.length===0)m.push(a);else{var B;(S=(B=m.pop())==null?void 0:g.vd(B,a))?m.push(S):m.push(a)}return J}var E;(m=(E=m.pop())==null?void 0:g.vd(E,a))||(m=a);if(m.info.C)return S.logger&&S.logger({incompleteSegment:m.info.GC()}),J;a=S.T3(m);J=a.VD;a={clipId:a.clipId,formatId:a.formatId,startTimeMs:a.startTimeMs,durationMs:a.QV,Ih:J,iJ:J};J=FQj(W,a.startTimeMs);if(B=m=J>=0?W[J]:null){B=a;var y=J;E=m.startTimeMs+m.durationMs;var Y=B.startTimeMs+B.durationMs;if(B.startTimeMs- E>S.N)B=!1;else if(V2c(S,m.formatId,B.formatId))m.durationMs=Math.max(E,Y)-m.startTimeMs,m.iJ=Math.max(m.iJ,B.iJ),B=!0;else if(Math.abs(m.startTimeMs-B.startTimeMs)<=S.N)if(m.durationMs>B.durationMs+S.N){var G=m.formatId,K=m.Ih;y=m.iJ;m.formatId=B.formatId;m.durationMs=B.durationMs;m.Ih=B.Ih;m.iJ=B.iJ;B.formatId=G;B.startTimeMs=Y;B.durationMs=E-Y;B.Ih=K;B.iJ=y;B=!1}else m.formatId=B.formatId,B=!0;else E>B.startTimeMs&&(E>Y&&(W.splice(y+1,0,{formatId:m.formatId,startTimeMs:Y,durationMs:E-Y,Ih:B.iJ+ 1,iJ:m.iJ}),S.logger&&S.logger({splitOldStart:(G=m.startTimeMs)==null?void 0:G.toFixed(3),splitOldEnd:E==null?void 0:E.toFixed(3),splitNewStart:(K=B.startTimeMs)==null?void 0:K.toFixed(3),splitNewEnd:Y==null?void 0:Y.toFixed(3)})),m.durationMs=B.startTimeMs-m.startTimeMs,m.iJ=B.Ih-1),B=!1}B?a=m:(J+=1,W.splice(J,0,a));G=0;for(K=J+1;K=Y+m.N?m=!0:y+m.N=0?S:-S-2}; scP=function(S,W){if(S.hv){var m=S.hv.Ni();if(m.length!==0){if(S.B&&W){var a=S.B,J=a.info.j;!ct(m,J)&&a.info.Z>0&&(0,g.X1)()-S.V<5E3&&(S.logger&&S.logger({dend:a.info.GC()}),m=p1P(m,J,J+.01))}S.policy.CE&&S.logger&&S.logger({cbri:""+S.C});a=[];for(var B=J=0;J=E){var K=Object.assign({},S.I6[B]),T=S.ZQ.B.get(oc(S.I6[B].formatId)),p=Math.max(Y,E);E=T.index.oU(p+S.N/ 1E3);Y=T.index.getStartTime(E);var q=E+ +(Math.abs(Y-p)>S.N/1E3);p=q+S.j;q=T.index.getStartTime(q)*1E3;B!==S.C||W?(K.Ih=p,K.startTimeMs=q):(S.logger&&S.logger({pEvict:"1",og:K.startTimeMs,adj:Y*1E3}),K.Ih=E+S.j,K.startTimeMs=Y*1E3);E=void 0;Y=((E=S.B)==null?void 0:E.info.duration)||11;B===S.C&&yS.N/1E3);E=Y+S.j;T=T.index.il(Y)*1E3;K.iJ=E;K.durationMs=T-K.startTimeMs;K.Ih<=K.iJ&&a.push(K)}G=0&&BC(S.audioTrack,S.targetTime)>=0&&B?((S.videoTrack.j||S.audioTrack.j)&&S.loader.iY("iterativeSeeking",{status:"done",count:S.seekCount}),S.videoTrack.j=!1,S.audioTrack.j=!1):a&&g.lm(function(){if(S.C||!S.policy.IL)yl(S);else{var E=W.startTime,y=W.duration;if(!S.policy.V){var Y=S.videoTrack.X!==-1&&S.audioTrack.X!==-1,G=!S.videoTrack.vn&&!S.audioTrack.vn;(m?S.videoTrack.j:S.audioTrack.j)&&Y&&G&&(S.targetTime>= E&&S.targetTime432E3&&oKP(S.ZQ);S.N&&(J=S.N,S.N=0);g.lm(function(){S.policy.V||Y3(S,J,102)}); S.loader.iY("initManifestlessSync",{st:J,ost:J+S.loader.DH(),a:S.audioTrack.X,v:S.videoTrack.X});S.B&&(S.B.resolve(J+.1),S.B=null);S.policy.V&&Y3(S,J,102)}}}; qM=function(){this.data=new Uint8Array(2048);this.pos=0;TG||(TG=XQ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; p_=function(S,W){S.add(W==null||isNaN(W)?0:W+1)}; Vl=function(S,W){var m=this;this.Fn=S;this.requestNumber=++RUG;this.C=this.now();this.S=this.bY=NaN;this.Z=this.C;this.B=this.lr=this.X=0;this.V=this.C;this.d2=this.vn=this.s9=this.Cn=this.eg=this.Xn=this.N=this.j=0;this.N2=this.isActive=!1;this.IL=this.uY=0;this.f3={Fw9:function(){return m.p6}}; this.Av=W.Av;this.snapshot=FE(this.Av);this.policy=this.Av.N;this.HY=!!W.HY;this.zZ=W.zZ;this.vk=W.vk||0;this.Tm=W.Tm||0;W.wz&&(this.Pn=new qM);var a;this.p6=(a=W.p6)!=null?a:!1;this.HY||eUO(this.Av)}; xtQ=function(S){S.s9=Math.max(S.s9,S.X-S.eg);S.vn=Math.max(S.vn,S.Z-S.Cn);S.Xn=0}; n_=function(S,W,m){ik_(S.Av,W);S.Pn&&(S.Pn.add(Math.ceil(W)-Math.ceil(S.Z)),S.Pn.add(Math.max(0,Math.ceil(m/1024)-Math.ceil(S.X/1024))));var a=W-S.Z,J=m-S.X;S.lr=J;S.d2=Math.max(S.d2,J/(a+.01)*1E3);S.Z=W;S.X=m;S.Xn&&m>S.Xn&&xtQ(S)}; sz=function(S,W){S.url=W;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; uN=function(S,W){Vl.call(this,S,W);this.M2=this.Wv=!1;this.Hn=this.q2=Infinity;this.O9=NaN;this.vv=!1;this.Y6=NaN;this.yT=this.g2=this.zN=0;this.GU=W.GU||1;this.jx=W.jx||this.GU;this.NS=W.NS;this.VD=W.VD;this.qP=W.qP;dt6(this);this.fV(this.C);this.EV=(this.Y6-this.C)/1E3}; IDl=function(S){var W=S.g2||S.zN;return W?S.snapshot.delay+Math.min(S.Tm,(S.S-S.bY)/1E3)+W:S.EV}; Oz=function(S,W,m){if(!S.HY){W=Math.max(W,.01);var a=S.vk?Math.max(W,m/S.vk):W,J=S.Av.N.B;J&&(a=W,S.vk&&(a=Math.max(W,m/S.vk*J)));gP(S.Av,W,m,a)}}; P5c=function(S){return(S.V-S.C)/1E3}; dt6=function(S){S.O9=S.C+S.snapshot.delay*1E3;S.vv=!1}; jv=function(S,W){if(S.NS&&S.VD!==void 0&&S.qP!==void 0){var m=Math,a=m.min,J=S.q2;var B=S.NS;var E=S.C;if(fDP(B,S.VD))B=W;else{var y=0;B.AY&&(y=.2);B=E+(B.Tm+y)*1E3}S.q2=a.call(m,J,B);m=Math;a=m.min;J=S.Hn;B=S.NS;E=S.C;y=kQP(B,S.VD,S.qP);y!==2&&(W=y?W:E+B.Tm*1E3,B.AY&&(W+=B.Tm*1E3));S.Hn=a.call(m,J,W);S.q2<=S.C?dt6(S):(S.O9=S.q2,S.vv=!0)}}; $tQ=function(S,W){if(W+1<=S.totalLength){var m=Vx(S,W);m=m<128?1:m<192?2:m<224?3:m<240?4:5}else m=0;if(m<1||!(W+m<=S.totalLength))return[-1,W];if(m===1)S=Vx(S,W++);else if(m===2)m=Vx(S,W++),S=Vx(S,W++),S=(m&63)+64*S;else if(m===3){m=Vx(S,W++);var a=Vx(S,W++);S=Vx(S,W++);S=(m&31)+32*(a+256*S)}else if(m===4){m=Vx(S,W++);a=Vx(S,W++);var J=Vx(S,W++);S=Vx(S,W++);S=(m&15)+16*(a+256*(J+256*S))}else m=W+1,S.focus(m),q9(S,m,4)?S=XUD(S).getUint32(m-S.B,!0):(a=Vx(S,m+2)+256*Vx(S,m+3),S=Vx(S,m)+256*(Vx(S,m+1)+ 256*a)),W+=5;return[S,W]}; Ql=function(S){this.Fn=S;this.C=new YQ}; XE=function(S,W){this.info=S;this.callback=W;this.state=1;this.pT=this.kx=!1;this.yY=null}; hUP=function(S){return g.UM(S.info.R2,function(W){return W.type===3})}; vC=function(S,W,m,a){var J=this;a=a===void 0?{}:a;this.policy=W;this.Fn=m;this.status=0;this.C=new YQ;this.N=0;this.TN=this.j=this.B=!1;this.xhr=new XMLHttpRequest;this.xhr.open(a.method||"GET",S);if(a.headers)for(S=a.headers,W=g.R(Object.keys(S)),m=W.next();!m.done;m=W.next())m=m.value,this.xhr.setRequestHeader(m,S[m]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return J.fT()}; this.xhr.onload=function(){return J.onDone()}; this.xhr.onerror=function(){return J.onError()}; this.xhr.fetch(function(B){J.C.append(B);J.N+=B.length;B=(0,g.X1)();J.Fn.fA(B,J.N)},function(){},a.body||null)}; t2l=function(S,W){this.N=(new TextEncoder).encode(S);this.C=(new TextEncoder).encode(W)}; OvP=function(S,W){var m;return g.k(function(a){if(!W)return a.return(W);m=new g.ys(S.N);return a.return(m.encrypt(W,S.C))})}; Hv6=function(S,W){var m;return g.k(function(a){if(a.C==1){if(!W)return a.return(W);m=new g.ys(S.N);return g.P(a,m.decrypt(W,S.C),2)}return a.return(a.N)})}; AuD=function(S,W){var m=this;this.C=S;this.Fn=W;this.loaded=this.status=0;this.error="";S=DD(this.C.get("range")||"");if(!S)throw Error("bad range");this.range=S;this.N=new YQ;this.run().then(function(){m.Fn.Z2()},function(a){m.error=""+a||"unknown_err"; m.Fn.Z2()})}; N2D=function(S,W,m,a){var J=this;a=a===void 0?{}:a;this.policy=W;this.Fn=m;this.V=a;this.status=0;this.response=void 0;this.N=0;this.aborted=this.X=!1;this.errorMessage="";this.S=function(B){if(B)if(J.status=B.status,B.ok&&B.body&&J.status!==204)J.status=J.status||242,J.B=B.body.getReader(),J.TN()?J.B.cancel().catch(function(){}):(J.responseHeaders=B.headers,J.Fn.sR(),Zkj(J)); else J.onDone();else J.onError(Error("null_response"))}; this.Z=function(B){var E=(0,g.X1)();J.TN()||(B.done?(J.B=void 0,J.onDone()):(B=B.value,J.N+=B.length,J.C.append(B),Zkj(J),J.Fn.fA(E,J.N)))}; this.onError=function(B){J.errorMessage=String(B);J.X=!0;J.onDone()}; this.C=new YQ;this.j=window.AbortController?new AbortController:void 0;this.start(S)}; Zkj=function(S){S.B.read().then(S.Z,S.onError).then(void 0,Md)}; bkG=function(S,W,m){var a=this;m=m===void 0?{}:m;this.Fn=W;this.N=this.status=0;this.TN=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(m.method||"GET",S);if(m.headers){S=m.headers;W=g.R(Object.keys(S));for(var J=W.next();!J.done;J=W.next())J=J.value,this.xhr.setRequestHeader(J,S[J])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(B){a.fT(B)}; S=z4(function(B){a.onDone(B)}); this.xhr.addEventListener("load",S,!1);this.xhr.addEventListener("error",S,!1);m.body?this.xhr.send(m.body):this.xhr.send();this.xhr.addEventListener("progress",z4(function(B){a.onProgress(B)}),!1)}; HC=function(S,W,m,a,J){if(QP(96,S.fW))return new AuD(S,m);S=S.XD();return a?YfG()?new vC(S,W,m,J):new N2D(S,W,m,J):new bkG(S,m,J)}; lN=function(S,W){g.A.call(this);var m=this;this.policy=S;this.R2=W;this.N=0;this.C=null;this.Jr=[];this.B=null;this.f3={vT:function(){return m.R2}}; this.R2.length===1||g.UM(this.R2,function(a){return!!a.range})}; MM=function(S,W,m){S.C&&(GK(S.C,W),W=S.C,S.C=null);for(var a=0,J=0,B=g.R(S.R2),E=B.next();!E.done;E=B.next())if(E=E.value,E.range&&a+E.N<=S.N)a+=E.N;else{if(ma(E)&&!m&&S.N+W.totalLength-J=400?(S.lastError="net.badstatus",!0):(J===void 0?0:J)?(S.lastError="ump.spsrejectfailure",!0):m||a!==void 0&&a?!1:(S.lastError=W===204?"net.nocontent":"net.connect",!0)}; iN=function(S,W){if(S.policy.eE)return!1;var m=W.getResponseHeader("content-type"),a=W.I3();S=!a||a<=S.policy.Jz;return(!W.uL()||!m||m.indexOf("text/plain")!==-1)&&S}; DtK=function(S,W){var m="";W=W.BE();W.totalLength<=S.policy.Jz&&(S=pc(W),S=uq(S),m=n6(S)?S:"");return m}; L_=function(S){return hu(S.j,Fl(4,S.nP.fW))}; wWP=function(S){var W=S.timing.F7();W.shost=Fl(70,S.nP.fW);S.policy.Mi&&S.policy.N0&&(W.csrc=1);return W}; S6O=function(S,W){return(S==null?void 0:S.maxWidth)>(W==null?void 0:W.maxWidth)||(S==null?void 0:S.maxHeight)>(W==null?void 0:W.maxHeight)}; WaP=function(S,W){for(var m=g.R(W.keys()),a=m.next();!a.done;a=m.next())if(a=W.get(a.value),a.length!==0){g.qK(a,function(y,Y){return Y.maxFramerate-y.maxFramerate}); for(var J=[a[0]],B=0,E=1;ES.C||m.push(a)}return m}; dP=function(S,W,m){var a=Jmc[S]||[];m.T("html5_shorts_onesie_mismatched_fix")&&(a=BnX[S]||[]);W.push.apply(W,g.x(a));m.T("html5_early_media_for_drm")&&W.push.apply(W,g.x(Es_[S]||[]))}; TnP=function(S,W){var m=g.uZ(S),a=S.J(),J=a.X;a=a.T("html5_shorts_onesie_mismatched_fix");var B=S.rE();if(a){if(!J.C){if(B&&IJ)return IJ;if(PC)return PC}}else if(PC&&!J.C)return PC;var E=[],y=[],Y={},G=f_.concat(zm7);a&&(G=f_.concat(ymP));S.T("html5_early_media_for_drm")&&(G=G.concat(Y6X),S.T("allow_vp9_1080p_mq_enc")&&G.push(GbG));var K=[].concat(g.x(KaX));S.T("html5_iamf_audio_onesie_fmt")&&K.push(["773"]);G=g.R(G);for(var T=G.next();!T.done;T=G.next()){var p=!1;T=g.R(T.value);for(var q=T.next();!q.done;q= T.next()){q=q.value;var F=n1(q,B&&a);if(F&&F.video&&!(d1(F)&&!m.Pn&&F.video.qualityOrdinal>m.WQ)){var O=g.Db(S.J().experiments,"html5_drm_byterate_soft_cap");O>0&&TR6(F)&&F.o2>O||(p?(E.push(q),dP(q,E,S)):(F=ZF(m,F,J),F===!0?(p=!0,E.push(q),dP(q,E,S)):Y[q]=F))}}}K=g.R(K);for(G=K.next();!G.done;G=K.next())for(G=g.R(G.value),p=G.next();!p.done;p=G.next())if(p=p.value,(T=YnQ(p))&&T.audio&&(S.T("html5_onesie_51_audio")||!I3(T)))if(T=ZF(m,T,J),T===!0){y.push(p);dP(p,y,S);break}else Y[p]=T;if(!S.T("html5_enable_audio_quality_setting"))for(S= g.R(["141","774"]),K=S.next();!K.done;K=S.next())K=K.value,y.includes(K)&&(g.Sm(y,K),Y[K]="blkhqa");m.C&&W("orfmts",Y);if(a)return J.C&&(J.C=!1,IJ=PC=void 0),B?IJ={video:E,audio:y}:PC={video:E,audio:y};PC={video:E,audio:y};J.C=!1;return PC}; g.FaQ=function(S,W,m){var a=m.X,J=[],B=[],E=m.T("html5_shorts_onesie_mismatched_fix");S=S.rE();var y=f_.concat(zm7);E&&(y=f_.concat(ymP));m.T("html5_early_media_for_drm")&&(y=y.concat(Y6X),m.T("allow_vp9_1080p_mq_enc")&&y.push(GbG));var Y=[].concat(g.x(KaX));m.T("html5_iamf_audio_onesie_fmt")&&Y.push(["773"]);y=g.R(y);for(var G=y.next();!G.done;G=y.next()){G=g.R(G.value);for(var K=G.next();!K.done;K=G.next()){K=K.value;var T=n1(K,S&&E);if(T&&T.video){var p=g.Db(m.experiments,"html5_drm_byterate_soft_cap"); if(!(p>0&&TR6(T)&&T.o2>p)&&ZF(W,T,a)===!0){J.push({videoCodec:q6c[Lx[K]],maxWidth:T.video.width,maxHeight:T.video.height,maxFramerate:T.video.fps});break}}}}E=g.R(Y);for(S=E.next();!S.done;S=E.next())for(S=g.R(S.value),Y=S.next();!Y.done;Y=S.next())if(Y=Y.value,(y=YnQ(Y))&&y.audio&&(m.T("html5_onesie_51_audio")||!I3(y))&&ZF(W,y,a)===!0){B.push({audioCodec:pdP[Lx[Y]],numChannels:y.audio.numChannels});break}return{videoFormatCapabilities:J,audioFormatCapabilities:B}}; smc=function(S){var W,m={},a=S.C_,J=S.w2,B=S.Av,E=a.getVideoData(),y=X6(0),Y=a.getVisibilityState();J.T("html5_enable_audio_quality_setting")&&(m.pU=J.pU);y&&(m.Vg2=y,m.lastManualDirection=qfD(),y=XHP()||0,y>0&&(y=(J.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.X1)())-y,J.T("html5_use_date_now_for_local_storage")?y>0&&(m.timeSinceLastManualFormatSelectionMs=y):m.timeSinceLastManualFormatSelectionMs=y));y=J.T("html5_use_streamer_bandwidth_for_low_latency_live")&&E.isLowLatencyLiveStream; if(B.N2&&!y){var G;y=J.T("html5_disable_bandwidth_cofactors_for_sabr_live")?!((G=S.RY)==null||!G.ZN):!1;m.xu=Ci(B,!y)}y=g.Ht.medium;var K=Math.floor(y*16/9);(G=E.rE())||(E.C&&E.B&&E.B.videoInfos.length!==0?(G=E.B.videoInfos[0],G=!!G.video&&G.video.width0?{authorizedFormats:S.authorizedFormats}:{authorizedFormats:W};S.sabrLicenseConstraint&&(m.At.sabrLicenseConstraint=S.sabrLicenseConstraint);if(J.T("html5_onesie_media_capabilities")||Ux(E))m.QW=3;J.T("html5_onesie_audio_only_playback")&& VI(E)&&(m.QW=1);var M;((M=S.RY)==null?0:M.o6)&&S.yvU&&(m.QW=m.QW===void 0?7:m.QW|4);M=E.Y6?E.Y6:g.uZ(E);J.T("html5_onesie_media_capabilities")&&(m.mediaCapabilities=g.FaQ(E,M,J));var e;if((e=S.RY)==null?0:k3(e)){var d;e=S.xE;W=S.yj;p=(d=S.RY)==null?void 0:d.o2;d=[];q=[];F=new Map;O=g.R(E.Q2.C.values());for(X=O.next();!X.done;X=O.next())if(X=X.value,X.vD)q.push({audioCodec:pdP[X.p_],numChannels:X.numChannels,spatialCapabilityBitmask:VBP[X.p_]});else{l=q6c[X.p_];Y=X.maxBitrateBps||0;G=p?p*8:0;Y={videoCodec:l, maxWidth:W?854:X.maxWidth||0,maxHeight:W?480:X.maxHeight||0,maxFramerate:X.maxFramerate||0,is10BitSupported:X.v9||!1,maxBitrateBps:G&&Y?Math.min(G,Y):G||Y};if(X.p_==="1"||X.p_==="9")Y.efficient=!0;X=l+"_"+X.v9;l=F.get(X)||[];l.push(Y);F.set(X,l)}d=WaP(d,F);e=e?[].concat(g.x(e)):[];E.T("html5_ssff_denylist_opus_low")&&e.push(249,350);g.uZ(E);m.mediaCapabilities={videoFormatCapabilities:d,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:e.length?{itagDenylist:e}:{}}}var t;if((t=S.RY)== null?0:t.C){m.E_=M.E_;var h;m.WQ=(h=S.RY)==null?void 0:h.WQ}J.ov&&(m.RA=J.ov);m.HP=S.bj;m.Jl=S.Jl;m.zp=S.zp;m.yh=S.yh;S.mO&&(m.gB2=(0,g.X1)()-S.mO);S.Jp&&J.T("html5_report_prefetch_requests")&&(m.Jp=S.Jp);m1||(m.NA6=!0);t=oQ(B)*1E3;t>0&&(m.HC=t);var mD;((mD=S.RY)==null?0:mD.Al)&&S.Nt&&S.Nt0?SO:B.interruptions[0]||0;var aK;if((aK=S.RY)==null?0:aK.lr)m.R4=S.R4;J.Y6&&(m.audioTrackId=J.Y6);wO(E)&&!m.audioTrackId&&(J.T("html5_fill_default_mosaic_audio_track_id")||(S=iq6(E),m.audioTrackId=S),E==null||E.iY("misstrkchg",{"default":m.audioTrackId}));if(S=BC6())m.detailedNetworkType=nsj[S]||nsj.other;!J.T("html5_enable_voice_boost")||E.rE()||E.isAd()||(m.yYQ=J.dQ);return m}; $3=function(S,W,m,a,J,B,E){var y={};W&&(y.Rl=W);if(!S)return y;y.playbackCookie=m==null?void 0:m.playbackCookie;J&&(y.g9=J);y.pD=[];y.RI=[];if(E==null?0:E.size)for(W=g.R(E.values()),m=W.next();!m.done;m=W.next())y.RI.push(m.value);if(S.sabrContextUpdates.size>0)for(W=g.R(S.sabrContextUpdates.values()),m=W.next();!m.done;m=W.next())uvQ(y,m.value,a);eX(S)&&B&&uvQ(y,B,a);a=S.J().C;y.clientInfo={clientName:gsD[a.c.toUpperCase()]||0};a.cbrand&&(y.clientInfo.deviceMake=a.cbrand);a.cmodel&&(y.clientInfo.deviceModel= a.cmodel);a.cver&&(y.clientInfo.clientVersion=a.cver);a.cos&&(y.clientInfo.osName=a.cos);a.cosver&&(y.clientInfo.osVersion=a.cosver);a=S.J();a.T("html5_sabr_enable_server_xtag_selection")&&a.Kn&&(y.clientInfo.hl=a.Kn);S.QQ&&(y.QQ=S.QQ);return y}; uvQ=function(S,W,m){var a=W.type||0;(m==null?0:m.has(a))?S.RI.push(W):S.pD.push(a)}; aJ=function(S,W,m,a,J,B){var E=B===void 0?{}:B;var y=E.n8===void 0?[]:E.n8;var Y=E.UQ===void 0?!1:E.UQ;var G=E.St===void 0?0:E.St;var K=E.poToken===void 0?"":E.poToken;var T=E.TL===void 0?void 0:E.TL;var p=E.z_===void 0?"":E.z_;var q=E.Hr===void 0?0:E.Hr;var F=E.T1===void 0?new Uint8Array(0):E.T1;var O=E.H5===void 0?!1:E.H5;B=E.Qx===void 0?0:E.Qx;E=E.Rl===void 0?void 0:E.Rl;XE.call(this,W,J);var X=this;this.policy=S;this.logger=new g.O6("dash/request");this.MD=this.gr=0;this.CY=!1;this.oy=this.DW= null;this.Af=!1;this.T1=this.Hr=null;this.ze=this.wX=!1;this.LG=null;this.Qx=this.qm=0;this.f9=!1;this.f3={gA:function(M){X.gA(M)}, BDD:function(){return X.yY}, f5Y:function(M){X.yY=M}, l59:function(M){X.gr=M}, U12:function(M){X.WU.lastError=M}, gW:function(){return X.xhr}}; this.timing=new uN(this,m);this.UQ=Y;this.Hr=q;this.T1=F;this.nP=g.KN(this.info,this.policy,a);this.nP.set("rn",this.gi().toString());this.nP.set("rbuf",(G*1E3).toFixed().toString());this.UQ&&this.nP.set("smb","1");this.policy.dQ&&K&&this.nP.set("pot",K);p&&this.nP.set("bbs",p);this.policy.useUmp&&!QP(36,this.nP.fW)&&(this.O3=new Ql(this),this.nP.set("ump","1"),this.nP.set("srfvp","1"));if(S=this.policy.pR?this.policy.MF&&!isNaN(this.info.qP)&&this.info.qP>this.policy.Lz?!1:!0:!1)W=null,this.policy.zG&& this.policy.Bm?W=[1]:O&&(W=[]),W!=null&&(this.policy.Zq&&W.push(2),this.nP.set("defsel",W.join(",")));this.WU=new Uz(this,this.policy,this.nP,this.info.aL,this.timing,this.logger,a,T);this.n8=y||null;this.pT=ONO(this);oEG(this.WU);a=void 0;if(this.policy.OW_||this.O3||this.policy.O9)a={method:"POST"},y=(0,g.hP)([120,0]),T={},E&&(E=$3(void 0,E),T.Sf=E),this.policy.Ak&&this.T1&&(T.videoPlaybackUstreamerConfig=this.T1),this.policy.O9&&(E=this.info.j)&&Object.assign(T,E),Object.keys(T).length>0?a.body= g.Z1(T,g.jh):a.body=y;if(this.Hr&&this.T1){this.nP.set("iwts","1");a={method:"POST"};E={yh:this.Hr*1E3};var l;y=(l=this.info.j)==null?void 0:l.DJ;l=g.Z1({cY:E,DJ:y||void 0,videoPlaybackUstreamerConfig:this.T1},g.jh);a.body=l}try{this.xhr=HC(this.nP,this.policy.S,this.timing,S,a),this.WU.N.start(),B&&(this.y$=new g.rj(this.Jt,B,this),this.y$.start(B+(this.timing.Av.S.hO()||0)*1E3)),this.policy.uo&&sz(this.timing,this.XD()),g.lm(function(){})}catch(M){jml(this,M,!0)}}; ONO=function(S){if(!(Gb(S.info)&&S.info.p6()&&S.policy.H1&&S.n8)||S.info.aL.B>=2||X6()>0||!nfc())return!1;var W=S.nP.get("aitags");if(!W)return!1;W=tx(W).split(",");for(var m=[],a=g.R(S.n8),J=a.next();!J.done;J=a.next())J=J.value,g.oZ(W,J)&&m.push(J);if(!m.length)return!1;S.nP.set("altitags",g.hx(m.join(",")));return!0}; jml=function(S,W,m){m=m===void 0?!1:m;g.lR(W);S.WU.lastError="player.exception";S.errorMessage=W.name+"_"+W.message;m?g.lm(function(){ev(S.WU)}):ev(S.WU)}; QmQ=function(S,W){S.timing.N2=!0;S.xhr.uL()&&S.timing.Lj();if(S.policy.dA){var m;(m=S.y$)==null||m.stop()}MM(S.yY,W,!1)}; XdX=function(S){S.qm&&(S.xhr.status=S.qm,S.gr=S.qm)}; tP=function(S,W){Vl.call(this,S,W);this.Hn=!0;this.q2=!1;this.g2=this.O9=0;this.zN=NaN}; vsP=function(S,W,m){var a=S.vk?Math.max(W,m/S.vk):W,J=S.Av.N.B;J&&(a=W,S.vk&&(a=Math.max(W,m/S.vk*J)));gP(S.Av,W,m,a)}; AP=function(S,W){this.Fn=W;this.N={};this.logger=new g.O6(S)}; Zi=function(S){AP.call(this,"sabr",S);this.Fn=S;this.C=[]}; HN_=function(S,W,m){switch(W){case 35:S.M0(m);break;case 44:S.qr(m);break;case 43:S.eZ(m);break;case 53:S.kJ(m);break;case 56:S.B8();break;case 57:S.X1(m);break;case 42:S.gG(m);break;case 45:S.CU(m);break;case 59:S.jp(m);break;case 51:S.y5(m);break;case 49:S.Ah(m);break;case 50:S.i7(m);break;case 47:S.IV(m);break;case 58:S.HZ(m);break;case 61:S.Fn.xa.Zm((0,g.X1)());break;case 66:S.lS(m);break;case 46:S.Nr(m);break;case 67:S.onSnackbarMessage(m);break;case 71:W=IR(m,E$Q),S.Fn.Wy(W)}}; NM=function(S){g.A.call(this);this.j=S;this.logger=new g.O6("onesie");this.zC=new Map;this.N=this.C=!1;this.RY=this.ZQ=null;this.B=!1}; lB7=function(S,W,m){S.zC.get(W).onProgress=m}; rP=function(S,W){S.zC.has(W)&&(bN?S.zC.get(W).JY.clear():S.zC.get(W).Jr=new YQ,oJ(S,W),S.N=!0)}; MBP=function(S){for(var W=g.R(S.zC),m=W.next();!m.done;m=W.next()){var a=g.R(m.value);m=a.next().value;a=a.next().value;a.oO||rP(S,m)}}; UAl=function(S,W){W=S.zC.get(W);if(!W)return 0;S=0;if(W.R2.length>0){W=g.R(W.R2);for(var m=W.next();!m.done;m=W.next()){var a=void 0;S+=((a=m.value.range)==null?void 0:a.length)||0}return S}if(W.DZ.length>0)for(m=g.R(W.DZ),a=m.next();!a.done;a=m.next())S+=a.value.i4||0;return S+W.Ev}; C_=function(S,W){if(bN){var m=0;S=S.zC.get(W);if(S==null||!S.JY)return 0;S=g.R(S.JY.values());for(W=S.next();!W.done;W=S.next())m+=W.value.data.totalLength;return m}return((m=S.zC.get(W))==null?void 0:m.Jr.totalLength)||0}; cC=function(S,W){S=S.zC.get(W);if(bN){if(S==null||!S.oO)return!1;W=S.JY.size>0;return S.oe.length>0||W}return!(S==null||!S.oO)&&!(S==null||!S.Jr.totalLength)}; Lac=function(S,W){var m=S.zC.get(W),a=UAl(S,W),J=!a&&!!m.bytesReceived;if(bN){var B;if((B=S.ZQ)==null?0:B.Hv){S=g.R(m.JY.values());for(W=S.next();!W.done;W=S.next())if(!W.value.hd)return!1;return J}}else if(B=S.rf(W),J&&S.C&&B!==void 0)return B;return(J||m.bytesReceived===a)&&m.Qr+C_(S,W)===m.bytesReceived}; RmP=function(S,W,m,a){m.R2.push.apply(m.R2,g.x(a));if(bN){m.KK.has(W)||m.KK.set(W,[]);var J;(J=m.KK.get(W)).push.apply(J,g.x(a))}else if(m.yY)for(S=g.R(a),W=S.next();!W.done;W=S.next())m.yY.R2.push(W.value);else{m.yY=new lN(S.RY,[].concat(g.x(m.R2)));var B;((B=S.RY)==null?0:B.zf)&&g.Z(S,m.yY)}}; emD=function(S,W,m){var a,J=(a=S.ZQ)==null?void 0:a.B.get(W);if(!J)return[];if(m.cT){var B;return((B=J.T8(0,m.clipId))==null?void 0:B.R2)||[]}if(J.bH()){var E=m.startMs,y=m.durationMs;a=1E3;var Y;if(((Y=S.RY)==null?0:Y.C)&&m.timeRange){var G;E=(G=m.timeRange.startTicks)!=null?G:-1;var K;y=(K=m.timeRange.jq)!=null?K:-1;var T;a=(T=m.timeRange.timescale)!=null?T:-1}if(m.Gi<0||m.P4<0||y<0||E<0||m.i4<0||a<0)return rP(S,W),[];S=w2(m.Gi,m.i4);W=m.Vw||0;return[new Wd(3,J,S,"makeSliceInfosMediaBytes",m.P4- 1,E/a,y/a,W,S.length-W,void 0,m.pk,m.clipId)]}if(m.P4<0)return rP(S,W),[];var p;return((p=S.ZQ)==null?0:p.Hv)?(W=J.k8,Y=W*J.info.o2,G=m.Vw,((E=S.RY)==null?0:E.C)&&S.j.X5()!=="ONESIE"&&m.timeRange&&!G&&(y=m.timeRange.startTicks/m.timeRange.timescale),[new Wd(3,J,void 0,"makeSliceInfosMediaBytes",m.P4,y,W,G,Y,!0,m.pk,m.clipId)]):[]}; xAG=function(S,W,m){S.ZQ=W;S.RY=m;W=g.R(S.zC);for(m=W.next();!m.done;m=W.next()){var a=g.R(m.value);m=a.next().value;a=a.next().value;for(var J=g.R(a.Iz),B=J.next();!B.done;B=J.next()){B=B.value;var E=emD(S,m,B);RmP(S,B.aX,a,E)}}}; Di=function(S,W,m,a){(S=S.zC.get(m))&&!S.U2&&(bN?(S.JY.has(W)||S.JY.set(W,{data:new YQ,gN:0,hd:!1}),GK(S.JY.get(W).data,a)):GK(S.Jr,a),S.bytesReceived+=a.totalLength,S.OL=!0)}; oJ=function(S,W){if((W=S.zC.get(W))&&!W.U2){W.U2=!0;if(W.onProgress)W.onProgress();a:{W=g.R(S.zC.values());for(var m=W.next();!m.done;m=W.next())if(!m.value.U2){W=!1;break a}W=!0}W&&S.j.v$()}}; iNc=function(S){bN=S}; wP=function(S,W,m,a,J,B,E){g.A.call(this);this.policy=S;this.info=W;this.ZQ=m;this.Fn=J;this.logger=new g.O6("sabr");this.O3=new Ql(this);this.Bo=new Zi(this);this.eC=new NM(this);this.state=1;this.Rg=!1;this.mj=0;this.clipId="";this.Pk=-1;this.JF=0;this.G2=-1;this.P0=this.SL=this.f9=this.TH=!1;this.policy.ea?this.xa=new tP(this,B):this.xa=new uN(this,B);this.nP=this.policy.lr?W.Qy:dAl(W,this.policy,a);this.nP.set("rn",""+this.gi());this.nP.set("alr","yes");xAG(this.eC,m,S);this.WU=new Uz(this,this.policy, this.nP,W.aL,this.xa,this.logger,a,E,this.policy.enableServerDrivenRequestCancellation);oEG(this.WU);var y;if((y=this.policy)==null?0:y.zf)g.Z(this,this.eC),g.Z(this,this.WU);S=W.N;W={method:"POST",body:S};S&&(this.JF=S.length);try{this.xhr=HC(this.nP,this.policy.S,this.xa,m1,W),this.policy.uo&&sz(this.xa,this.XD()),this.WU.N.start()}catch(Y){g.Ue(Y)}}; IBP=function(S){S.policy.xc&&S.mK&&!S.SL?S.SL=!0:S.xa.Lj()}; PAQ=function(S,W){var m=-1,a=-1,J=-1,B;if((B=S.dB)==null?0:B.items)for(S=g.R(S.dB.items),B=S.next();!B.done;B=S.next())B=B.value,W=y,Y=S.ZQ.isManifestless,E){var G;if(((G=S.C)==null?void 0:G.je.event)==="predictStart"&&S.C.VDS.X&&(S.X=NaN,S.V=NaN);if(S.C&&S.C.VD===W){if(a=S.C,!S.policy.X||!S.policy.N)if(J&&a){var E=a.je;B=J.GZ(E);E.event==="predictStart"&&(S.N2=W);S.iY("sdai",{onqevt:E.event,sq:W,mt:m,gab:B,cst:E.startSecs,cueid:S.policy.Qe&&(B||E.event==="start")?E.identifier:void 0},!0);if(B)if(E.event!=="predictStart")E.event==="start"&&S.N2===W-1&&S.iY("sdai", {gabonstart:W}),a.VA?a5(S,4,"cue"):(S.X=W,S.V=m,S.iY("sdai",{joinad:S.N,sg:S.X,st:S.V.toFixed(3)}),S.S=Date.now(),a5(S,2,S.N===3?"staftpred":"join"),osG(J,a.je));else{var y=rmQ(S);W+=Math.max(Math.ceil(-E.C/y),1);E=Math.floor(m-E.C/1E3);S.policy.N?S.B=E:S.j=W;S.iY("sdai",{onpred:m,estsq:W,estmt:E.toFixed(3)});Jr(S.loader,E,E,W,y);S.S=Date.now();a5(S,3,"predict");osG(J,a.je)}else S.N===1?((y=S.tv)==null?0:y.lV?0:BD(y,m))?(Jr(S.loader,m,m,W),a5(S,4,"sk2head")):a5(S,5,"nogab"):E.event==="predictStart"&& (S.policy.N&&S.B>0?(m=Math.floor(m-E.C/1E3),S.B!==m&&S.iY("sdai",{updateSt:m,old:S.B}),S.B=m):S.j>0&&(m=W+Math.max(Math.ceil(-E.C/rmQ(S)),1),S.j!==m&&(S.iY("sdai",{updateSt:m,old:S.j}),S.j=m)))}else S.iY("sdai",{nulldec:1,sq:W,mt:m.toFixed(3),evt:(a==null?void 0:(E=a.je)==null?void 0:E.event)||"none"})}else S.N===1&&a5(S,5,"noad")}; cmj=function(S,W,m){if(S.N===1||S.N===2)return!1;if(S.N!==0&&W===S.audioTrack){if(S.policy.N)return CAj(S.videoTrack,m)||CAj(S.videoTrack,m+1);S=EE(S.videoTrack);if(m>(S?S.VD:-1))return!1}return!0}; z7=function(S,W,m){return(m<0||m===S.X)&&!isNaN(S.V)?S.V:W}; rmQ=function(S){switch(S.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; Am6=function(S,W){if(S.C){var m=S.C.je.Gk-(W.startTime+S.Z-S.C.je.startSecs);m<=0||(m=new YE(S.C.je.startSecs-(isNaN(S.Z)?0:S.Z),m,S.C.je.context,S.C.je.identifier,"stop",S.C.je.C+W.duration*1E3),S.iY("cuepointdiscontinuity",{segNum:W.VD}),mn(S,m,W.VD))}}; a5=function(S,W,m){S.N!==W&&(S.iY("sdai",{setsst:W,old:S.N,r:m}),S.N=W)}; yk=function(S,W,m,a){(a===void 0?0:a)?a5(S,1,"seek"):W>0&&Math.abs(W-m)>=5&&S.N===4&&a5(S,5,"sk2t")}; DA6=function(S,W,m,a){var J=this;this.policy=S;this.iY=W;this.Z=m;this.C=a;this.j=void 0;this.N=new Set;this.V=-1;this.B=0;this.X=!1;this.f3={nk2:function(){return J.N}}}; SZP=function(S,W){var m,a=-(((m=W.je)==null?void 0:m.qk)||0);W.timeRange&&(a+=(W.timeRange.startTicks||0)/(W.timeRange.timescale||1));var J,B,E,y,Y;return new YE(a,((J=W.je)==null?void 0:J.rEU)||0,((B=W.je)==null?void 0:B.hH)||"",((E=W.je)==null?void 0:E.identifier)||"",wd6((y=W.je)==null?void 0:y.event),(((Y=W.je)==null?void 0:Y.qk)||0)*1E3,S.policy.vj?W.tileContext:void 0)}; Y6=function(S,W){return W?S.policy.vj&&W.tileContext?W.identifier+";"+W.tileContext:W.identifier:""}; Wrl=function(S,W){for(var m="",a=[],J=g.R(S.C.entries()),B=J.next();!B.done;B=J.next()){var E=g.R(B.value);B=E.next().value;E=E.next().value;var y=void 0,Y=void 0,G=void 0;((y=E)==null?void 0:y.startTimeSecs)<=W&&W<=((Y=E)==null?void 0:Y.startTimeSecs)+((G=E)==null?void 0:G.Gk)&&a.push(B);Y=y=void 0;m+=B+":"+((y=E)==null?void 0:y.startTimeSecs.toFixed(3))+":"+((Y=E)==null?void 0:Y.Gk.toFixed(3))+";"}a.length===0&&S.iY("clsdai",{no_cid:1,mt:W.toFixed(3),adConfigMap:m.substring(0,1024)});return a}; wd6=function(S){if(!S)return"unknown";switch(S){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; mTK=function(S){switch(S){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; G7=function(S,W,m){this.audio=S;this.video=W;this.reason=m}; Kf=function(S,W,m){this.C=S;this.reason=W;this.token=m;this.videoId=void 0}; T7=function(S,W,m){g.A.call(this);this.policy=S;this.j=W;this.iY=m;this.B=new Map;this.X=0;this.V=!1;this.C="";this.N=!1}; qX=function(S,W,m){if(m===void 0?0:m)S.V=!0;++S.X;m=6E4*Math.pow(2,S.X);m=(0,g.X1)()+m;S.B.set(W.info.id,m)}; pf=function(S){for(var W=g.R(S.B.entries()),m=W.next();!m.done;m=W.next()){var a=g.R(m.value);m=a.next().value;a=a.next().value;a<(0,g.X1)()&&S.B.delete(m)}return S.B}; FK=function(S,W){S.C!==W&&(S.C=W,S.N=!0)}; aI_=function(S,W){var m;W&&(m=g.Nx(S.j.C,function(J){return J.id===W})); if(!m&&(m=g.Nx(S.j.C,function(J){var B;return!((B=J.n3)==null||!B.isDefault)}),W)){var a; S.iY("iaf",{id:W,sid:(a=m)==null?void 0:a.id})}return m}; Vk=function(S){this.C=this.N=0;this.alpha=Math.exp(Math.log(.5)/S)}; sE=function(S,W,m,a,J,B){var E=this;B=B===void 0?[]:B;this.loader=S;this.q2=W;this.policy=m;this.ZQ=a;this.V=J;this.d2=B;this.logger=new g.O6("dash/abr");this.C=mK;this.B=this.Z=null;this.bY=-1;this.Hn=!1;this.nextVideo=this.N=null;this.j=[];this.g2=new Set;this.s9={};this.Y6=new Vk(1);this.S=0;this.zN=this.vn=this.N2=!1;this.Xn=0;this.hX=!1;this.Pn=new Set;this.O9=!1;this.f3={e_:function(){nf(E)}}; this.X=new T7(this.policy,J,function(y,Y){E.loader.iY(y,Y)})}; yJD=function(S,W,m){uK(S,W);W=aI_(S.X,m);m||W||(W=JJ6(S));W=W||S.V.C[0];S.N=S.ZQ.C[W.id];nf(S);S.Z=S.N;BJ6(S);ELl(S);S.B=S.nextVideo;S.Z=S.N;return zl7(S)}; GWj=function(S,W){if(YZ6(S,W))return null;if(W.reason==="m"&&W.isLocked())return uK(S,W),S.S=S.j.length-1,nf(S),gS(S),S.vn=S.vn||S.B!==S.nextVideo,S.B=S.nextVideo,new G7(S.N,S.B,W.reason);W.reason==="r"&&(S.bY=-1);uK(S,W);gS(S);if(W.reason==="r"&&S.nextVideo===S.B)return new G7(S.N,S.nextVideo,W.reason);S.B&&S.nextVideo&&OE(S,S.B.info)1.5&&S.loader.iY("overshoot",{sq:W.VD,br:m,max:a}))}}; jS=function(S,W,m){qX(S.X,W,m===void 0?!1:m);S.bY=-1;uK(S,S.C)}; qZ6=function(S,W){return new G7(S.Z,S.B,W||S.C.reason)}; zl7=function(S){S.Hn?S.Hn=!1:S.bY=(0,g.X1)();S.N2=!1;S.O9=!1;return new G7(S.Z,S.B,S.C.reason)}; pTl=function(S,W){var m={};W=g.R(W);for(var a=W.next();!a.done;a=W.next())if((a=a.value)&&a.video){var J=a.video.qualityOrdinal,B=m[J],E=B&&d1(B)&&B.video.qualityOrdinal>S.policy.WQ,y=J<=S.policy.WQ?d1(a):eh(a);if(!B||E||y)m[J]=a}return m}; uK=function(S,W){S.C=W;var m=S.V.videoInfos;if(!S.C.isLocked()){var a=(0,g.X1)();m=g.fL(m,function(E){if(E.o2>this.policy.o2)return!1;var y=this.ZQ.C[E.id];return pf(this.X).get(E.id)>a||y.aL.B>4||y.V>4?!1:this.Pn.has(+E.itag)?!1:!0},S); S.X.yj()&&(m=g.fL(m,function(E){return E.video.width<=854&&E.video.height<=480}))}m.length||(m=S.V.videoInfos); var J=m;S.policy.PS&&(J=FrQ(S,J,W));J=g.fL(J,W.j,W);if(S.C.isLocked()&&S.X.C){var B=g.Nx(m,function(E){return E.id===S.X.C}); B?J=[B]:FK(S.X,"")}S.policy.PS||(J=FrQ(S,J,W));J.length||(J=[m[0]]);J.sort(function(E,y){return OE(S,E)-OE(S,y)}); W={};for(m=1;mW.Wz.video.width?(g.c9(J,m),m--):OE(S,W.Mj)*S.policy.bY>OE(S,W.Wz)&&(g.c9(J,m-1),m--);W=J[J.length-1];S.hX=!!S.B&&!!S.B.info&&S.B.info.p_!==W.p_;S.j=J;S.g2.clear();m=!1;for(B=0;B=1080&&(m=!0);VnP(S.policy,W,S.ZQ.Hv)}; FrQ=function(S,W,m){var a=m.reason==="m"||m.reason==="s";S.policy.fv&&Qk&&g.F1&&(!a||m.C<1080)&&(W=W.filter(function(G){return G.video&&(!G.N||G.N.powerEfficient)})); if(W.length>0)if(E_()){var J=pTl(S,W);W=W.filter(function(G){return!!G&&!!G.video&&G.p_===J[G.video.qualityOrdinal].p_})}else{var B,E,y=(B=W[0])==null?void 0:(E=B.video)==null?void 0:E.qualityOrdinal; if(y){m=W.filter(function(G){return!!G&&!!G.video&&G.video.qualityOrdinal===y}); var Y=pTl(S,m)[y].p_;W=W.filter(function(G){return!!G&&!!G.video&&G.p_===Y})}}return W}; nLG=function(S,W){for(var m=0;m+1a}; nf=function(S){if(!S.N||!S.policy.j&&!S.N.info.n3){var W=S.V.C;S.N&&(W=W.filter(function(a){return a.audio.C===S.N.info.audio.C}),W.length||(W=S.V.C)); S.N=S.ZQ.C[W[0].id];if(W.length>1&&!S.policy.Xn){if(!S.policy.N1){var m=g.Nx(W,function(a){return a.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); m&&(S.N=S.ZQ.C[m.id])}m=!1;if(m=S.policy.CJ?!0:S.C.isLocked()?S.C.C<240:nLG(S,S.N))S.N=S.ZQ.C[g.AN(W).id]}}}; gS=function(S){if(!S.nextVideo||!S.policy.j)if(S.C.isLocked())S.nextVideo=S.C.C<=360?S.ZQ.C[S.j[0].id]:S.ZQ.C[g.AN(S.j).id];else{for(var W=Math.min(S.S,S.j.length-1),m=DW(S.q2),a=OE(S,S.N.info),J=m/S.policy.q2-a;W>0&&!(OE(S,S.j[W])<=J);W--);for(m=m/S.policy.bY-a;W=m);W++);S.nextVideo=S.ZQ.C[S.j[W].id];S.S=W}}; BJ6=function(S){var W=S.policy.q2,m=DW(S.q2)/W-OE(S,S.N.info);W=g.bw(S.j,function(a){return OE(this,a)B?J=0:a[E]>S.buffered[E]&&(E===B-1?J=2:E===B-2&&a[E+1]>S.buffered[E+1]&&(J=3))}S.C.add(W<<3|(m&&4)|J);W=Math.ceil(S.track.Ro()*1E3);S.C.add(W-S.X);S.X=W;if(J===1)for(S.C.add(B),E=W=0;E=2&&S.C.add(a[B- 1]-S.buffered[B-1]);m&&S.C.add(m);S.buffered=a}; UE=function(S,W,m){var a=this;this.policy=S;this.C=W;this.Xn=m;this.j=this.N=0;this.QU=null;this.N2=new Set;this.bY=[];this.indexRange=this.initRange=null;this.S=new Vn;this.vn=this.q2=!1;this.f3={ok6:function(){return a.B}, tq_:function(){return a.chunkSize}, qXU:function(){return a.Z}, jsn:function(){return a.V}}; (W=QVl(this))?(this.chunkSize=W.csz,this.B=Math.floor(W.clen/W.csz),this.Z=W.ck,this.V=W.civ):(this.chunkSize=S.bu,this.B=0,this.Z=g.pz(16),this.V=g.pz(16));this.X=new Uint8Array(this.chunkSize);this.Z&&this.V&&(this.crypto=new t2l(this.Z,this.V))}; QVl=function(S){if(S.policy.pJ&&S.policy.NG)for(var W=g.R(S.policy.pJ),m=W.next(),a={};!m.done;a={RM:void 0,wV:void 0},m=W.next())if(m=g.zc(m.value),a.RM=+m.clen,a.wV=+m.csz,a.RM>0&&a.wV>0&&S.policy.j===m.docid&&S.C.info.id===m.fmtid&&S.C.info.lastModified===+m.lmt)return S={},S.clen=a.RM,S.csz=a.wV,S.ck=m.ck,S.civ=m.civ,S}; Lf=function(S){return!!S.QU&&S.QU.Kk()}; H9K=function(S,W){if(!Lf(S)&&!S.TN()){if(!(S.q2||(S.q2=!0,S.B>0))){var m=R5(S);m=bh(S.policy.j,S.C.info,eS(S),m,S.policy.uY);x6(S,m)}if(W.info.type===1){if(S.QU){iK(S,Error("Woffle: Expect INIT slices to always start us off"));return}S.initRange=w2(0,W.N.totalLength)}else if(W.info.type===2)S.QU&&S.QU.type===1||iK(S,Error("Woffle: Index before init")),S.indexRange=w2(S.initRange.end+1,W.N.totalLength);else if(W.info.type===3){if(!S.QU){iK(S,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(S.QU.type===3&&!Jm(S.QU,W.info)&&(S.bY=[],W.info.VD!==Bd(S.QU)||W.info.C!==0))return;if(W.info.B){m=g.R(S.bY);for(var a=m.next();!a.done;a=m.next())XTX(S,a.value);S.bY=[]}else{S.bY.push(W);S.QU=W.info;return}}else{iK(S,Error("Woffle: Unexpected slice type"));return}S.QU=W.info;XTX(S,W);vLD(S)}}; XTX=function(S,W){var m=0,a=pc(W.N);if(S.j=a.length)return;if(m<0)throw Error("Missing data");S.j=S.B;S.N=0}for(J={};m0){var E=a.getUint32(m+28);B+=E*16+4}var y=a.getUint32(m+B-4);try{var Y=RlG(W.subarray(m+B,m+B+y));if(Y!==null){var G=Y;break a}}catch(K){}}m+=J}G=null;break a}catch(K){G=null;break a}G=void 0}if(G!=null)for(W=ip(sy(G,7,void 0,Ds)),W==null||S.v1||(S.cryptoPeriodIndex=W),W=ip(sy(G,10,void 0,Ds)),W!=null&&W>0&& !S.v1&&(S.C=W),G=v2(G,2,Cz_,void 0===w$j?2:4),G=g.R(G),a=G.next();!a.done;a=G.next())W=S.B,m=W.push,a=Ch(a.value),a=g.fh(a,4),m.call(W,a)}; xT7=function(S){return isNaN(S.cryptoPeriodIndex)?g.fh(S.initData):""+S.cryptoPeriodIndex}; PD=function(S,W,m){var a=m===void 0?{}:m;m=a.videoDuration===void 0?0:a.videoDuration;var J=a.ZR===void 0?void 0:a.ZR;a=a.Tg===void 0?!1:a.Tg;this.videoId=S;this.status=W;this.videoDuration=m;this.ZR=J;this.Tg=a}; i9c=function(S,W,m,a,J){this.videoId=S;this.UU=W;this.N=m;this.bytesDownloaded=a;this.C=J}; ff=function(S){this.C=S;this.offset=0}; k6=function(S){if(S.offset>=S.C.totalLength)throw Error();return Vx(S.C,S.offset++)}; dTc=function(S,W){W=W===void 0?!1:W;var m=k6(S);if(m===1){W=-1;for(m=0;m<7;m++){var a=k6(S);W===-1&&a!==255&&(W=0);W>-1&&(W=W*256+a)}return W}a=128;for(var J=0;J<6&&a>m;J++)m=m*256+k6(S),a*=128;return W?m:m-a}; IIj=function(S){try{var W=dTc(S,!0),m=dTc(S,!1);return{id:W,size:m}}catch(a){return{id:-1,size:-1}}}; PIK=function(S){for(var W=new ff(S),m=-1,a=0,J=0;!a||!J;){var B=IIj(W),E=B.id;B=B.size;if(E<0)return;if(E===176){if(B!==2)return;a=W.QH()}else if(E===186){if(B!==2)return;J=W.QH()}E===374648427?m=W.QH()+B:E!==408125543&&E!==174&&E!==224&&W.skip(B)}W=FQ(S,0,m);m=new DataView(W.buffer);m.setUint16(a,3840);m.setUint16(J,2160);a=new YQ([W]);GK(a,S);return a}; fI6=function(S,W,m){var a=this;this.loader=S;this.policy=W;this.yD=m;this.logger=new g.O6("dash");this.N=[];this.C=null;this.vn=-1;this.S=0;this.Xn=NaN;this.bY=0;this.B=NaN;this.Z=this.s9=0;this.zN=-1;this.Pn=this.j=this.X=this.q2=null;this.hX=this.g2=NaN;this.V=this.N2=this.O9=this.Y6=null;this.d2=!1;this.Hn=this.timestampOffset=0;this.f3={Fi:function(){return a.N}}; if(this.policy.j){var J=this.yD,B=this.policy.j;this.policy.uY&&S.iY("atv",{ap:this.policy.uY});this.V=new UE(this.policy,J,function(E,y,Y){S.C_.GL(new PD(a.policy.j,2,{ZR:new i9c(B,E,J.info,y,Y)}))}); this.V.S.promise.then(function(E){a.V=null;E===1?S.C_.GL(new PD(a.policy.j,E)):a.loader.iY("offlineerr",{status:E.toString()})},function(E){var y=(E.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); E instanceof dS&&!E.C?(a.loader.iY("offlinenwerr",{em:y}),$6(a),S.C_.GL(new PD(a.policy.j,4))):(a.loader.iY("dldbwerr",{em:y}),$6(a),S.C_.GL(new PD(a.policy.j,4,{Tg:!0})))})}}; kW6=function(S){return S.N.length?S.N[0]:null}; $Tj=function(S,W){return S.N.some(function(m){return m.info.VD===W})}; NJG=function(S,W,m,a){a=a===void 0?0:a;if(S.j){var J=S.j.C+S.j.N;if(m.info.C>0)if(m.info.VD===S.j.VD&&m.info.C=0&&S.j.VD>=0&&!Jm(S.j,m.info))throw new g.uc("improper_continuation",S.j.GC(),m.info.GC());LzP(S.j,m.info)||hr(S,"d")}else if(m.info.C>0)throw new g.uc("continuation_of_null",m.info.GC());S.j=m.info;S.yD=m.info.yD;if(m.info.C===0){if(S.C)if(!S.loader.isOffline()||S.policy.L6)S.loader.iY("slice_not_fully_processed", {buffered:S.C.info.GC(),push:m.info.GC()});else throw new g.uc("slice_not_fully_processed",S.C.info.GC(),m.info.GC());tr(S);S.s9=a}else{if(S.s9&&a&&S.s9!==a)throw S=new g.uc("lmt_mismatch",m.info.VD,S.s9,a),S.level="WARNING",S;!m.info.yD.bH()&&S.X&&(a=m.info,J=S.X.Pk,a.V="updateWithEmsg",a.VD=J)}if(S.C){a=g.vd(S.C,m);if(!a)throw new g.uc("failed_to_merge",S.C.info.GC(),m.info.GC());S.C=a}else S.C=m;a:{m=g.Pt(S.C.info.yD.info);if(S.C.info.type!==3){if(!S.C.info.B)break a;S.C.info.type===6?hlG(S,W, S.C):tn7(S,S.C);S.C=null}for(;S.C;){a=S.C.N.totalLength;if(S.vn<=0&&S.S===0){var B=S.C.N,E=-1;J=-1;if(m){for(var y=0;y+80))break;if(T!==408125543)if(T===524531317)y=!0,K>=0&&(J=B.QH()+K,Y=!0);else{if(y&&(T===160||T===163)&&(E<0&&(E=G),Y))break;T===163&&(E=Math.max(0,E),J=B.QH()+K);if(T===160){E<0&&(J=E= B.QH()+K);break}B.skip(K)}}E<0&&(J=-1)}if(E<0)break;S.vn=E;S.S=J-E}if(S.vn>a)break;S.vn?(a=AJG(S,S.vn),a.X&&Z9D(S,a),hlG(S,W,a),Ar(S,a),S.vn=0):S.S&&(a=AJG(S,S.S<0?Infinity:S.S),S.S-=a.N.totalLength,Ar(S,a))}}S.C&&S.C.info.B&&(Ar(S,S.C),S.C=null)}; tn7=function(S,W){!W.info.yD.bH()&&W.info.C===0&&(g.Pt(W.info.yD.info)||W.info.yD.info.v1())&&q1O(W);if(W.info.type===1)try{Z9D(S,W),b9X(S,W)}catch(J){g.lR(J);var m=E6(W.info);m.hms="1";S.loader.handleError("fmt.unparseable",m||{},1)}m=W.info.yD;m.F5(W);S.V&&H9K(S.V,W);if(m.Gm()&&S.policy.C)a:{S=S.loader.ZQ;W=W.info.clipId;m=g.kK(m.info,S.Hv);if(W){var a=oc({itag:m.itag,lmt:S.Hv?0:m.lmt||0,xtags:m.xtags});if(S.hX[a])break a;S.hX[a]=W}S.zN.push(m)}}; HkK=function(S,W,m){if(S.N.length!==0&&(m||S.N.some(function(B){return B.info.j=NX(E)+y):W=S.getDuration()>=E.getDuration(),W=!W;W&&rJj(m)&&(W=S.q2,ZA?(y=K6l(m),E=1/y,y=NX(S,y),W=NX(W)+E-y):W=W.getDuration()- S.getDuration(),W=1+W/m.info.duration,zRX(g.Xv(m),W))}else{E=!1;S.X||(q1O(m),m.C&&(S.X=m.C,E=!0,J=m.info,B=m.C.Pk,J.V="updateWithEmsg",J.VD=B,J=m.C,J.Kk&&(B=S.yD.index,B.N=!J.Kk,B.B="emsg"),J=m.info.yD.info,B=g.Xv(m),g.Pt(J)?Oc(B,1701671783):J.v1()&&Uc([408125543],307544935,B)));a:if((J=MA(m,S.policy.eg))&&T1_(m))y=CI_(S,m),S.Z+=y,J-=y,S.bY+=J,S.B=S.policy.Jb?S.B+J:NaN;else{if(S.policy.PM){if(B=Y=S.loader.Ii(g.Hd(m),1),S.B>=0&&m.info.type!==6){if(S.policy.Jb&&isNaN(S.g2)){g.Ue(new g.uc("Missing duration while processing previous chunk", m.info.GC()));S.loader.isOffline()&&!S.policy.L6||cJ_(S,m,B);hr(S,"m");break a}a=Y-S.B;var G=a-S.Z,K=m.info.VD,T=S.Pn?S.Pn.VD:-1,p=S.hX,q=S.g2,F=S.policy.TA&&a>S.policy.TA,O=Math.abs(G)>10,X=Math.abs(S.B-B)<1E-7;if(Math.abs(G)>1E-4){S.Hn+=1;var l=(y=S.X)==null?void 0:m86(y);y={audio:""+ +S.vD(),sq:K.toFixed(),sliceStart:Y,lastSq:T.toFixed(),lastSliceStart:p,lastSliceDuration:q,totalDrift:(a*1E3).toFixed(),segDrift:(G*1E3).toFixed(),skipRewrite:""+ +(F||O)};if(l==null?0:l.length)y.adCpn=l[0];S.loader.handleError("qoe.avsync", y);S.zN=K}F||O||X||(B=S.B);y=CI_(S,m,Y);J-=y;S.Z=a+y}}else B=isNaN(S.B)?m.info.startTime:S.B;cJ_(S,m,B)&&(S.bY+=J,S.B=B+J,S.policy.HS&&S.Hn>=S.policy.HS&&(S.Hn=0,S.loader.KR({resetForRewrites:"count"})))}S.Pn=m.info;S.g2=lA(m);m.B>=0&&(S.hX=m.B);if(E&&S.X){E=DTX(S,!0);zb(m.info,E);S.C&&zb(S.C.info,E);W=g.R(W);for(y=W.next();!y.done;y=W.next())y=y.value,J=void 0,S.policy.V&&y.VD!==((J=S.X)==null?void 0:J.Pk)||zb(y,E);(m.info.B||S.C&&S.C.info.B)&&m.info.type!==6||(S.N2=E,S.policy.N?(W=wTc(S.X),S.loader.Dh(S.yD, E,W)):(W=S.loader,W.ZQ.isManifestless&&SV6(W,E,null,!!S.yD.info.video)),S.policy.bJ||Wxl(S))}}b9X(S,m);S.timestampOffset&&Y1O(m,S.timestampOffset)}; Ar=function(S,W){if(W.info.B){S.Y6=W.info;if(S.X){var m=S.X,a=DTX(S,!1);m=wTc(m);S.loader.Dh(S.yD,a,m);S.N2||S.policy.bJ||Wxl(S);S.N2=null}tr(S)}S.V&&H9K(S.V,W);if(a=S.iR())if(a=g.vd(a,W,S.policy.md,S.policy.xP)){S.N.pop();S.N.push(a);return}S.N.push(W)}; wTc=function(S){if(S.VA()){var W=S.data["Stitched-Video-Id"]?S.data["Stitched-Video-Id"].split(",").slice(0,-1):[],m=m86(S),a=[];if(S.data["Stitched-Video-Duration-Us"])for(var J=g.R(S.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),B=J.next();!B.done;B=J.next())a.push((Number(B.value)||0)/1E6);J=[];if(S.data["Stitched-Video-Start-Frame-Index"]){B=g.R(S.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var E=B.next();!E.done;E=B.next())J.push(Number(E.value)||0)}J=[]; if(S.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(B=g.R(S.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),E=B.next();!E.done;E=B.next())J.push((Number(E.value)||0)/1E6);S=new Lr6(W,m,a,J,g.aqX(S),g.JQ6(S))}else S=null;return S}; tr=function(S){S.C=null;S.vn=-1;S.S=0;S.X=null;S.Xn=NaN;S.bY=0;S.N2=null}; hr=function(S,W){W={rst4disc:W,cd:S.Z.toFixed(3),sq:S.Pn?S.Pn.VD:-1};S.B=NaN;S.Z=0;S.zN=-1;S.Pn=null;S.hX=NaN;S.g2=NaN;S.O9=null;S.loader.iY("mdstm",W)}; b9X=function(S,W){if(S.isDrm()){if(W.info.yD.info.v1()){var m=new QX(g.Xv(W));if(vW(m,[408125543,374648427,174,28032,25152,20533,18402])){var a=Mt(m,!0);m=a!==16?null:xE(m,a)}else m=null;a="webm"}else W.info.S=Mnl(g.Xv(W)),m=UTP(W.info.S),a="cenc";m&&m.length&&(m=new I5(m,a),S.policy.qF&&g.Pt(W.info.yD.info)&&(a=qq_(g.Xv(W)))&&(m.N=a),m.v1=W.info.yD.info.v1(),W.C&&W.C.cryptoPeriodIndex&&(m.cryptoPeriodIndex=W.C.cryptoPeriodIndex),W.C&&W.C.N&&(m.C=W.C.N),S.loader.XB(m))}}; Wxl=function(S){var W=S.X,m=SqQ(W);m&&(m.startSecs+=S.Xn,S.loader.SZ(S.yD,m,W.Pk,W.VA()))}; DTX=function(S,W){var m,a=S.X;if(m=SqQ(a))m.startSecs+=S.Xn;var J=S.Xn,B=0;S.yD instanceof Tb&&(B=S.yD.k8);return new wz(a.Pk,J,W?B:S.bY,a.ingestionTime,"sq/"+a.Pk,void 0,void 0,W,m)}; cJ_=function(S,W,m){if(!y37(W,m))return W=E6(W.info),W.smst="1",S.loader.handleError("fmt.unparseable",W||{},1),!1;isNaN(S.Xn)&&(S.Xn=m);return!0}; CI_=function(S,W,m){var a=0;if(W.info.yD.info.v1()&&!T1_(W))return 0;if(S.q2&&!S.vD()){var J=0;m&&g.Pt(W.info.yD.info)?J=m-S.B:W.info.yD.info.v1()&&(J=S.Z);var B=W.info.VD;m=MA(W,S.policy.eg);var E=S.q2;var y=E.zN;E=E.Z;var Y=Math.abs(E-J)>.02;if((B===y||B>y&&B>S.zN)&&Y){a=Math.max(.95,Math.min(1.05,(m-(E-J))/m));if(g.Pt(W.info.yD.info))zRX(g.Xv(W),a);else if(W.info.yD.info.v1()&&(B=J-E,!g.Pt(W.info.yD.info)&&(W.info.yD.info.v1(),a=new QX(g.Xv(W)),y=W.X?a:new QX(new DataView(W.info.yD.C.buffer)), MA(W,!0)))){var G=B*1E3,K=d2(y);y=a.pos;a.pos=0;if(a.C.getUint8(a.pos)===160||Ic(a))if(l5(a,160))if(Mt(a,!0),l5(a,155)){if(B=a.pos,Y=Mt(a,!0),a.pos=B,G=G*1E9/K,K=Lk(a),G=K+Math.max(-K*.7,Math.min(K,G)),G=Math.sign(G)*Math.floor(Math.abs(G)),!(Math.ceil(Math.log(G)/Math.log(2)/8)>Y)){a.pos=B+1;for(B=Y-1;B>=0;B--)a.C.setUint8(a.pos+B,G&255),G>>>=8;a.pos=y}}else a.pos=y;else a.pos=y;else a.pos=y}a=MA(W,S.policy.eg);a=m-a}a&&W.info.yD.info.v1()&&S.loader.iY("webmDurationAdjustment",{durationAdjustment:a, videoDrift:J+a,audioDrift:E})}return a}; rJj=function(S){return S.info.yD.bH()&&S.info.VD===S.info.yD.index.lP()}; NX=function(S,W){W=(W=W===void 0?0:W)?Math.round(S.timestampOffset*W)/W:S.timestampOffset;S.yD.j&&W&&(W+=S.yD.j.C);return W+S.getDuration()}; m_G=function(S,W){W<0||(S.N.forEach(function(m){Y1O(m,W)}),S.timestampOffset=W)}; mZ=function(S,W,m,a,J){XE.call(this,m,J);var B=this;this.policy=S;this.formatId=W;this.eC=a;this.lastError=null;this.onProgress=function(){B.TN()||(B.eC.zC.has(B.formatId)?(B.isComplete()||B.C.start(),cC(B.eC,B.formatId)&&B.FP(2),B.eC.U2(B.formatId)&&(Lac(B.eC,B.formatId)?B.gA(4):(B.lastError="net.closed",B.gA(5)))):(B.lastError="player.exception",B.gA(5)))}; this.C=new g.rj(function(){B.isComplete()||(B.lastError="net.timeout",B.gA(5))},1E3); this.C.start();lB7(this.eC,this.formatId,this.onProgress);g.lm(this.onProgress)}; bK=function(S,W,m,a){g.A.call(this);var J=this;this.loader=S;this.policy=W;this.yD=m;this.timing=a;this.logger=new g.O6("dash");this.N=[];this.q2=[];this.C=this.hv=null;this.O9=!1;this.s9=this.Hn=0;this.X=-1;this.vn=!1;this.Xn=-1;this.Pn=null;this.N2=NaN;this.bY=[];this.f3={IS:function(){return J.B}, ul2:function(){return J.N}, Ajq:function(){return J.Z}}; this.B=new fI6(S,W,m);this.policy.C&&(this.Z=new Sv(this.B,this.loader.getManifest(),this.policy,function(B){J.policy.XJ&&J.iY("buftl",B)})); this.policy.yT&&(this.S=new lK(this));this.o2=m.info.o2;this.V=this.policy.Pn?!1:m.qV();this.isManifestless=m.qV();this.j=this.V;g.Z(this,this.Pn)}; o5=function(S,W,m){m=m===void 0?!1:m;W&&ZA&&m_G(S.B,W.OJ());if(!m){var a;(a=S.Z)==null||jcG(a)}S.hv=W;(W=S.Z)!=null&&(W.hv=S.hv)}; rS=function(S){var W=S.hv&&S.hv.e$();if(S.policy.ih){if((S=S.Z)==null)S=void 0;else{var m;S=(m=S.B)==null?void 0:m.info}return S||null}return W}; arc=function(S){for(var W={},m=0;m4&&S.q2.shift()}; JKP=function(S,W){if(W.IT()){var m=W.XY();m=g.R(m);for(var a=m.next();!a.done;a=m.next())a=a.value,S.policy.B&&W instanceof mZ&&S.iY("omblss",{s:a.info.GC()}),cD(S,W.info.R2,a,W.sJ())}}; cD=function(S,W,m,a){a=a===void 0?0:a;isNaN(S.N2)||(S.iY("aswm",{sq:W[0].VD,id:W[0].yD.info.itag,xtag:W[0].yD.info.C,ep:Date.now()-S.N2}),S.N2=NaN);switch(m.info.type){case 1:case 2:Bq7(S,m);break;case 4:var J=m.info.yD,B=J.k9(m),E;((E=S.C)==null?0:E.type===4)&&PQ7(m.info,S.C)&&(S.C=J.aH(S.C).pop());m=g.R(B);for(J=m.next();!J.done;J=m.next())cD(S,W,J.value,a);break;case 3:m.info.yD.info.video?(J=S.timing,J.Pn||(J.Pn=(0,g.X1)(),g.eJ("fvb_r",J.Pn,J.C))):(J=S.timing,J.V||(J.V=(0,g.X1)(),g.eJ("fab_r", J.V,J.C)));NJG(S.B,W,m,a);S.policy.C&&E5O(S);break;case 6:NJG(S.B,W,m,a),S.C=m.info}}; Bq7=function(S,W){if(W.info.type===1)if(W.info.yD.info.video){var m=S.timing;m.Hn||(m.Hn=(0,g.X1)(),g.eJ("vis_r",m.Hn,m.C))}else m=S.timing,m.S||(m.S=(0,g.X1)(),g.eJ("ais_r",m.S,m.C));tn7(S.B,W);S=S.loader;S.videoTrack.yD.Gm()&&S.audioTrack.yD.Gm()&&S.policy.C&&!S.ZQ.Hv&&(W=S.audioTrack.getDuration(),m=S.videoTrack.getDuration(),Math.abs(W-m)>1&&S.iY("trBug",{af:""+g.kK(S.audioTrack.yD.info,!1),vf:""+g.kK(S.videoTrack.yD.info,!1),a:""+W,v:""+m}))}; K_=function(S){return kW6(S.B)}; E5O=function(S){S.N.length?S.C=g.AN(g.AN(S.N).info.R2):S.B.N.length?S.C=S.B.iR().info:S.C=rS(S)}; DA=function(S,W){var m={I6:[],qS:[]},a;if((S=S.Z)==null)S=void 0;else{OkO(S,S.I6,"og");scP(S,W);OkO(S,S.I6,"trim");var J=gEP(S);W=J.I6;J=J.jI;for(var B=[],E=0;E0){var p=Cx(T,Y);p>=0&&(K=(T.end(p)-Y+.1)*1E3)}B.push({formatId:g.kK(y.info.yD.info,S.ZQ.Hv), pk:y.info.pk,sequenceNumber:y.info.VD+S.j,rz:G,yN:y.info.N,d$:K})}S={I6:W,qS:B}}return(a=S)!=null?a:m}; BC=function(S,W,m){m=m===void 0?!1:m;if(S.hv){var a=S.hv.Ni(),J=Dy(a,W),B=NaN,E=rS(S);E&&(B=Dy(a,E.yD.index.getStartTime(E.VD)));if(J===B&&S.C&&S.C.N&&zTP(wS(S),0))return W}S=SI(S,W,m);return S>=0?S:NaN}; zG=function(S,W,m){S.yD.Gm();var a=SI(S,W);if(a>=0)return a;var J;(J=S.Z)==null||ujc(J,W,m);a=Math;J=a.min;var B=S.B;if(B.V)if(B=B.V,B.QU&&B.QU.type===3)B=B.QU.startTime;else if(B.B>0){var E=B.C.index;E=g.K$(E.offsets.subarray(0,E.count),B.B*B.chunkSize);B=B.C.index.getStartTime(E>=0?E:Math.max(0,-E-2))}else B=0;else B=Infinity;W=J.call(a,W,B);S.C=S.policy.Pn?null:S.yD.sX(W).R2[0];Wg(S)&&(S.policy.n2&&(m==null?void 0:m.seekSource)===60||S.hv&&S.hv.abort(),S.policy.mC&&(m=S.Z)!=null&&(m.B=void 0)); S.s9=0;return S.C?S.C.startTime:W}; XWP=function(S){S.V=!0;S.j=!0;S.X=-1;zG(S,Infinity)}; mk=function(S){for(var W=0,m=g.R(S.N),a=m.next();!a.done;a=m.next())W+=kqQ(a.value.info);return W+=oLK(S.B)}; Jz=function(S,W){W=W===void 0?!1:W;var m=S.loader.getCurrentTime(),a=S.B.iR(),J=(a==null?void 0:a.info.X)||0;if((a==null?0:a.info.yD.qV())&&!a.info.B)if(S.policy.xT)J=a.info.j;else if(S.policy.Vj){var B=a.info;J=B.range?B.X:Math.min(B.startTime+Math.min(B.duration*B.C/B.yD.info.o2,B.duration)+(B.range?B.Z:Math.min(B.duration,B.duration*B.N/B.yD.info.o2)),B.startTime+B.duration)}if(!S.hv){if((S.policy.C||S.policy.Mp)&&W&&!isNaN(m)){if(a)return J-m;if(S.policy.Mp&&S.yD.info.p_==="f")return Infinity}return 0}if((B= rS(S))&&a$(B))return B.X;var E=S.hv.Ni(!0);if(W&&a)return B=0,S.policy.C&&(B=Wb(E,J+.02)),B+J-m;W=Wb(E,m);S.policy.Rr&&B&&(a=Cx(E,m),E=Cx(E,B.j-.02),a===E&&(m=B.X-m,S.policy.B&&m>W+.02&&S.iY("abh",{bh:W,bhtls:m}),W=Math.max(W,m)));return W}; yKK=function(S){var W=rS(S);return W?W.X-S.loader.getCurrentTime():0}; Bg=function(S,W,m,a){if(!S.yD.index.IX(W,!0))return!1;try{JP(S);for(var J=S.B,B=null,E=J.N.length-1;E>=0;E--){var y=J.N[E];y.info.VD>=W&&(J.N.pop(),J.B-=MA(y,J.policy.eg),B=y.info)}B&&(J.j=J.N.length>0?J.N[J.N.length-1].info:J.O9,J.N.length!==0||J.j||hr(J,"r"));J.loader.iY("mdstm",{rollbk:1,itag:B?B.yD.info.itag:"",popped:B?B.VD:-1,sq:W,lastslc:J.j?J.j.VD:-1,lastfraget:J.B.toFixed(3)});if(S.policy.C)return S.C=null,!0;a>m?zG(S,a):S.C=S.yD.zS(W-1,!1).R2[0]}catch(Y){return W=Bt(Y),W.details.reason= "rollbkerr",S.loader.handleError(W.errorCode,W.details,W.severity),!1}return!0}; zl=function(S,W){var m;for(m=0;m0?m||W.VD>=S.Xn:m}; ym=function(S){var W;return Wg(S)||a$((W=S.B.iR())==null?void 0:W.info)}; wS=function(S){var W=[],m=rS(S);m&&W.push(m);W=g.mX(W,S.B.vT());m=g.R(S.N);for(var a=m.next();!a.done;a=m.next()){a=a.value;for(var J=g.R(a.info.R2),B=J.next(),E={};!B.done;E={oV:void 0},B=J.next())E.oV=B.value,a.kx&&(W=g.fL(W,function(y){return function(Y){return!PQ7(Y,y.oV)}}(E))),(am(E.oV)||E.oV.type===4)&&W.push(E.oV)}S.C&&!MTc(S.C,g.AN(W),S.C.yD.bH())&&W.push(S.C); return W}; zTP=function(S,W){if(!S.length)return!1;for(W+=1;W=W){W=B;break a}}W=J}return W<0?NaN:zTP(S,m?W:0)?S[W].startTime:NaN}; Ye=function(S){return!(!S.C||S.C.yD===S.yD)}; YVD=function(S,W,m){return S.policy.C?Jz(S,!0)W&&S.X1080&&!S.UA&&(S.zN=36700160,S.vv=5242880,S.hX=Math.max(4194304,S.hX),S.UA=!0);W.video.qualityOrdinal>2160&&!S.fl&&(S.zN=104857600,S.o2=13107200,S.fl=!0);g.Db(S.w2.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?W.isEncrypted()&&g.ok()&&g.Ni("samsung")&&(g.Ni("kant")||g.Ni("muse"))&&(S.o2=g.Db(S.w2.experiments,"html5_samsung_kant_limit_max_bitrate")):W.isEncrypted()&&g.ok()&&g.Ni("kant")&&(S.o2=1310720);S.xk!==0&&W.isEncrypted()&& (S.o2=S.xk);S.ER!==0&&W.isEncrypted()&&m&&(S.o2=S.ER);W.o2&&(S.FF=Math.max(S.r4,Math.min(S.hX,5*W.o2)))}; k3=function(S){return S.C&&S.vQ}; FL=function(S){return S.C&&S.Uo&&S.playbackStartPolicy}; Vm=function(S,W,m,a){S.Uo&&(S.playbackStartPolicy=W,S.Gu=m,S.AB=a)}; Tl=function(S,W,m){m=m===void 0?0:m;return g.Db(S.w2.experiments,W)||m}; O1G=function(S){var W=S===void 0?{}:S;S=W.Bm;var m=W.AY;var a=W.Tm;var J=W.lP;W=W.td;this.Bm=S;this.AY=m;this.Tm=a;this.lP=J;this.td=W}; fDP=function(S,W){if(W<0)return!0;var m=S.lP();return W0)return 2;if(W<0)return 1;m=S.lP();return W(0,g.X1)()?0:1}; gW=function(S,W,m,a,J,B,E,y,Y,G,K,T,p,q){q=q===void 0?null:q;g.A.call(this);var F=this;this.loader=S;this.policy=W;this.videoTrack=m;this.audioTrack=a;this.B=J;this.C=B;this.timing=E;this.j=y;this.schedule=Y;this.ZQ=G;this.N=K;this.bY=T;this.H5=p;this.T1=q;this.N2=!1;this.z_="";this.NS=null;this.qP=NaN;this.vn=!1;this.tv=null;this.Hr=this.S=NaN;this.Qx=this.X=0;this.logger=new g.O6("dash");this.f3={W0:function(O,X){return F.W0(O,X)}}; this.policy.hG>0&&(this.z_=g.pz(this.policy.hG));this.policy.Ra&&(this.Z=new ny(this.loader,this.policy,this.schedule),g.Z(this,this.Z))}; H1K=function(S,W,m){var a=W.C?W.C.yD.aL:W.yD.aL;var J=S.B,B;(B=!S.policy.O7)||(B=Fl(69,a.C)===Fl(7,a.N));B?a=!1:(J=hu(J,Fl(71,a.N)),B=6E4*Math.pow(J.j,1.6),(0,g.X1)()=J.j?(J.iY("sdai",{haltrq:B+1,est:J.j}),a=!1):a=J.N!==2;if(!a||!b5(W.C?W.C.yD.aL:W.yD.aL,S.policy,S.B,S.loader.kU)||S.loader.isSuspended&&(!Qm(S.schedule)||S.loader.j$))return!1;if(S.policy.j&&N_>=5)return g.Cu(S.loader.nT),!1;if(S.ZQ.isManifestless){if(W.N.length>0&&W.C&&W.C.VD===-1||W.N.length>=S.policy.WS||!S.policy.IW&&W.N.length>0&&!S.policy.S.AY)return!1;if(W.V)return!S.ZQ.isLive||!isNaN(S.qP)}if(Tq_(W))return!1; if(!W.C){if(!W.yD.Gm())return!1;zG(W,S.loader.getCurrentTime())}if(K_(W)&&(W.iR()!==K_(W)||S.loader.isSuspended))return!1;J=(a=S.policy.Ye)&&!W.N.length&&Jz(W,!0)=S.policy.rY)return!1;a=W.C;if(!a)return!0;a.type===4&&a.yD.Gm()&&(W.C=g.AN(a.yD.aH(a)),a=W.C);if(!a.Kk()&&!a.yD.JR(a))return!1;B=S.ZQ.HG||S.ZQ.Z;if(S.ZQ.isManifestless&&B){B=W.yD.index.lP(); var E=m.yD.index.lP();B=Math.min(B,E);if(W.yD.index.c6()>0&&B>0&&a.VD>=B)return W.Xn=B,m.Xn=B,!1}if(a.yD.info.audio&&a.type===4||a.Kk())return!1;B=!W.j&&!m.j;if(J=!J)J=a.X,J=!!(m.C&&!a$(m.C)&&m.C.XlrX(S,W)?(lrX(S,W),!1):(S=W.hv)&&S.isLocked()?!1:!0}; lrX=function(S,W){var m=S.C;m=m.C?m.C.je:null;if(S.policy.Hn&&m)return m.startSecs+m.Gk+15;W=Ez(S.loader,W);S.policy.EV>0&&(m=((0,g.X1)()-S.loader.Dg)/1E3,W=Math.min(W,S.policy.EV+S.policy.uO*m));W=S.loader.getCurrentTime()+W;return S.policy.d5&&(m=MXD(S.loader)+S.policy.d5,m=0||W.aL.Mg("defrag")==="1"||W.aL.Mg("otf")==="1"){W=null;break a}J=w2(0,4096)}J=new y9([new Wd(5,a.yD,J,"createProbeRequestInfo"+a.V,a.VD)],W.N);J.u6=m;J.C=W.C;W=J}W&&jI(S,W)}}; jI=function(S,W){S.loader.e7(W);var m=kqQ(W),a=S.loader.o8();m={Av:S.schedule,GU:m,jx:qcO(S.j,m),p6:ma(W.R2[0]),HY:QP(96,W.aL.C),wz:S.policy.B,zZ:function(E,y){S.loader.l7(E,y)}}; if(S.schedule.N.V){var J,B;m.vk=(((J=S.videoTrack.yD)==null?void 0:J.info.o2)||0)+(((B=S.audioTrack.yD)==null?void 0:B.info.o2)||0)}S.NS&&(m.VD=W.R2[0].VD,m.qP=W.qP,m.NS=S.NS);a={St:$8c(W,S.loader.getCurrentTime()),n8:S.policy.H1&&Gb(W)&&W.R2[0].yD.info.video?uxK(S.N):void 0,UQ:S.policy.Hn,poToken:S.loader.Nz(),TL:S.loader.zU(),z_:S.z_,Hr:isNaN(S.Hr)?null:S.Hr,T1:S.T1,H5:S.H5,Qx:S.Qx,Rl:a};return new aJ(S.policy,W,m,S.B,function(E,y){try{a:{var Y=E.info.R2[0].yD,G=Y.info.video?S.videoTrack:S.audioTrack; if(!(E.state>=2)||E.isComplete()||E.vc()||!(!S.loader.K_||S.loader.isSuspended||Jz(G)>3)){var K=QyO(E,S.policy,S.B);K===1&&(S.vn=!0);U_c(S,E,K);if(E.isComplete()||E.TN()&&y<3){if(S.policy.B){var T=E.timing.F7();T.rst=E.state;T.strm=E.xhr.uL();T.cncl=E.xhr&&E.WU.X?1:0;S.loader.iY("rqs",T)}E.CY&&S.loader.iY("sbwe3",{},!0)}if(!S.TN()&&E.state>=2){tB7(S.timing,E,Y);var p=S.loader;S.Hr&&E.LG&&p&&(S.Hr=NaN,S.loader.VZ(E.LG),S.loader.WR(),S.loader.iY("cabrUtcSeek",{mediaTimeSeconds:E.LG}));E.Au&&S.Hr&&E.Au&& !E.Au.action&&(S.loader.iL(S.Hr),S.Hr=NaN,S.loader.iY("cabrUtcSeekFallback",{targetUtcTimeSeconds:S.Hr}));E.X7&&S.loader.HZ(E.X7);S.policy.dA&&(S.Qx=E.Qx);if(E.state===3){zl(G,E);Gb(E.info)&&vg(S,G,Y,!0);if(S.tv){var q=E.info.S$();q&&S.tv.xV(E.info.R2[0].VD,Y.info.id,q)}S.loader.i$()}else if(E.isComplete()&&E.info.R2[0].type===5){if(E.state!==4)E.oo()&&S.loader.handleError(E.mI(),E.EK());else{var F=(E.info.R2[0].yD.info.video?S.videoTrack:S.audioTrack).N[0]||null;F&&F instanceof aJ&&F.vc()&&F.bX()}E.dispose()}else{if(!E.oo()&& E.pT&&E.state>=2&&E.state!==3){var O=E.xhr.getResponseHeader("X-Response-Itag");if(O){var X=sV_(S.N,O),l=E.info.B;if(l){var M=l-X.aS();X.B=!0;E.info.R2[0].yD.B=!1;var e=X.T8(M);E.info=e;if(E.yY){var d=E.yY,t=e.R2;(t.length!==d.R2.length||t.length=S.policy.NH&&S.tv&&E.info.isDecorated()&&jO==="net.badstatus"&&Uv(S.tv,kX,zg))){var C6=(JG.info.video&&JG.aL.B>1||E.gr===410||E.gr===500||E.gr===503)&&!(pf(S.N.X).size>0)&&!QP(36,JG.aL.C),IK=E.EK(),rN=JG.info.video?S.videoTrack:S.audioTrack;C6&&(IK.stun="1");S.loader.handleError(jO,IK);S.TN()||(C6&&jS(S.N,JG),zl(rN,E),S.loader.i$())}}else X=1,S.tv&&E.info.isDecorated()&& jO==="net.badstatus"&&Uv(S.tv,kX,zg)&&(X=0),S.ZQ.isLive&&E.mI()==="net.badstatus"&&S.X<=S.policy.HA*2?(N1j(S.ZQ),S.ZQ.HG||S.ZQ.isPremiere?GG(S.loader,0,{Jw:"badStatusWorkaround"}):S.ZQ.Z?GG(S.loader,S.ZQ.Wm,{Jw:"badStatusWorkaround",Ii:!0}):Ly(S.loader)):S.loader.handleError(jO,E.EK(),X);isNaN(S.Hr)||(S.loader.iL(S.Hr),S.Hr=NaN)}S.policy.Cn&&!E.isComplete()?R$(S.loader):S.loader.i$();var RZ=XYl(E,S.policy,S.B);U_c(S,E,RZ)}}}}}catch(U){jO=S.N2?1:0,S.N2=!0,E=J3(jO),jO=Bt(U,jO),S.loader.handleError(jO.errorCode, jO.details,jO.severity),E||S.loader.YB()}},a)}; l0=function(S,W){if(S.policy.useUmp&&W.TN())return!1;try{var m=W.info.R2[0].yD,a=m.info.video?S.videoTrack:S.audioTrack;if(S.ZQ.isManifestless&&a){S.X=0;a.V&&(W.TN(),W.isComplete()||W.IT(),a.V=!1);W.eR()&&S.loader.HR.lO(1,W.eR());var J=W.c6(),B=W.Hq();cd(S.ZQ,J,B)}if(W.info.p6()&&!Ys(W.info))for(var E=g.R(W.XY()),y=E.next();!y.done;y=E.next())Bq7(a,y.value);for(S.loader.getCurrentTime();a.N.length&&a.N[0].state===4;){var Y=a.N.shift();JKP(a,Y);a.Hn=Y.A3()}a.N.length&&JKP(a,a.N[0]);var G=!!K_(a);G&& W instanceof mZ&&(m.info.vD()?hmD(S.timing):$A6(S.timing));return G}catch(K){W=W.EK();W.origin="hrhs";a:{S=S.loader;m=K;if(m instanceof Error){W.msg||(W.msg=""+m.message);W.name||(W.name=""+m.name);if(m instanceof g.uc&&m.args)for(a=g.R(Object.entries(m.args)),J=a.next();!J.done;J=a.next())B=g.R(J.value),J=B.next().value,B=B.next().value,W["arg"+J]=""+B;g.Ue(m);if(m.level==="WARNING"){S.C_.KR(W);break a}}S.handleError("fmt.unplayable",W,1)}return!1}}; LxP=function(S){var W=S.videoTrack.yD.index;S.NS=new O1G({Bm:S.policy.Bm,AY:S.policy.S.AY,Tm:W.KH(),lP:function(){return W.lP()}, td:function(){return W.td()}})}; vg=function(S,W,m,a){if(!(m.Gm()||m.Pl()||m.B||!b5(m.aL,S.policy,S.B,S.loader.kU)||m.info.p_==="f"||S.policy.C)){if(a){a=S.j;var J=m.info;a=pWQ(a,J.video?a.policy.w5:a.policy.hR,J.o2)}else a=0;a=m.T8(a);S=jI(S,a);Ys(a)&&Cf(W,S);m.B=!0}}; eI=function(S,W,m,a,J,B,E,y){g.A.call(this);var Y=this;this.loader=S;this.RY=W;this.videoTrack=m;this.audioTrack=a;this.ZQ=J;this.N2=B;this.isAudioOnly=E;this.S=y;this.N=mK;this.Xn=!1;this.logger=new g.O6("sabr");this.bY=this.Z=this.q2=this.vn=!1;this.videoInfos=this.V=this.N2.videoInfos;this.B=this.Pn=this.N2.C;this.C=new T7(W,B,function(G,K){Y.loader.iY(G,K)}); this.isAudioOnly&&RTl(this,this.ZQ.C["0"])}; eTl=function(S,W){var m=[];W=g.R(W);for(var a=W.next();!a.done;a=W.next())m.push(g.kK(a.value,S.ZQ.Hv));return m}; RTl=function(S,W,m){W!==S.j&&(S.j&&(S.Xn=!0),S.j=W,S.JI(W,S.videoTrack,m))}; d_Q=function(S,W){k3(S.RY)&&(S.q2=W.reason==="m"||W.reason==="l"?!0:!1);W.reason==="m"?W.isLocked()&&x_K(S,W.C):i1G(S,W)?xe(S,W.N,W.C):S.videoInfos=S.V;S.bY=!0;S.N=W}; i1G=function(S,W){return S.RY.un9&&W.reason==="l"||S.RY.xj?!1:S.RY.dh?!0:W.reason==="l"||W.reason==="b"||W.reason==="o"}; x_K=function(S,W){var m=S.C.C;if(m){S.videoInfos=S.V;var a=g.Nx(S.videoInfos,function(J){return J.id===m}); a&&a.video.qualityOrdinal===W?S.videoInfos=[a]:(a=S.videoInfos.map(function(J){return J.id}),S.loader.iY("sabrpf",{pfid:""+m, vfids:""+a.join(".")}),xe(S,W,W),FK(S.C,""))}else xe(S,W,W)}; xe=function(S,W,m){S.videoInfos=S.V;S.videoInfos=g.fL(S.videoInfos,function(a){return a.video.qualityOrdinal>=W&&a.video.qualityOrdinal<=m})}; Irj=function(S,W,m){if(S.S){var a=g.fL(S.B,function(J){return J.id===S.S}); return i0(a,m).includes(W)}a=g.fL(S.B,function(J){var B;return!((B=J.n3)==null||!B.isDefault)}); return a.length>0?i0(a,m).includes(W):i0(S.B,m).includes(W)}; i0=function(S,W){return S.map(function(m){return oc(g.kK(m,W))})}; PhP=function(S){var W;if((W=S.N)==null?0:W.isLocked())return S.videoInfos;var m=pf(S.C);W=g.fL(S.videoInfos,function(a){return a.o2>S.RY.o2?!1:!m.has(a.id)}); S.C.yj()&&(W=g.fL(W,function(a){return a.video.width<=854&&a.video.height<=480})); return W}; kJP=function(S,W,m,a){var J=S.ZQ,B=S.C_.getVideoData(),E=S.wy,y=smc({Av:S.Av,w2:B.J(),C_:S.C_,bj:S.bj,RY:S.RY,mO:S.mO,Nt:S.Nt,lX:S.lX,vS:S.vS,qJ:S.qJ,Jp:S.Jp,NW:S.NW,sabrLicenseConstraint:B.sabrLicenseConstraint,yh:S.yh,R4:S.R4,Jl:S.Jl,zp:S.zp,yvU:!!E,authorizedFormats:B.authorizedFormats,xE:S.xE,yj:S.yj}),Y=$3(B,S.Rl,S.nextRequestPolicy,S.CZ,S.g9,S.YQ,S.Ez);m&&W&&(m=Y.RI?Y.RI.map(function(p){return p.type}):[],W("sabr",{stmctxt:m.join("_"), unsntctxt:Y.pD?Y.pD.join("_"):""}));W=S.yJ;m=S.A2;if(m===void 0&&W===void 0){var G;m=frK(J.Hv,(G=S.b2)==null?void 0:G.video);var K;W=frK(J.Hv,(K=S.b2)==null?void 0:K.audio)}if(B.T1)var T=B.T1;B={cY:y,qS:S.qS,yJ:W,A2:m,wy:E,videoPlaybackUstreamerConfig:T,Sf:Y};a&&S.Si?S.Si.length>0&&(B.Si=S.Si):S.DJ&&(B.DJ=S.DJ);B.I6=S.I6;B.NV=J.zN;return B}; frK=function(S,W){return W?[g.kK(W.info,S)]:[]}; dW=function(S,W,m){var a=this;this.requestType=S;this.aL=W;this.Fn=m;this.N=null;this.f3={Jp:function(){var J;return(J=a.data)==null?void 0:J.Jp}, g9:function(){var J;return(J=a.data)==null?void 0:J.g9}, yh:function(){var J;return(J=a.data)==null?void 0:J.yh}}}; dAl=function(S,W,m){W=ZD(S.aL,$_Q(S,W,m),W);S.sC()&&W.set("probe","1");return W}; $_Q=function(S,W,m){S.u6===void 0&&(S.u6=S.aL.u6(W,m));return S.u6}; I$=function(S){var W,m;return((W=S.C)==null?void 0:(m=W.cY)==null?void 0:m.HP)||0}; Pg=function(S){var W,m;return!!((W=S.C)==null?0:(m=W.cY)==null?0:m.yh)}; hTD=function(S){var W={},m=[],a=[];if(!S.data)return W;for(var J=0;J0;Y--)m.push(y)}m.length!==E?W.error=!0:(B=m.slice(-B),m.length=J,mWP(W,m,B));break;case 1:mWP(W,o$,rW);break;case 0:mw(W, W.C&7);m=SR(W,16);J=SR(W,16);(m^J)!==65535&&(W.error=!0);W.output.set(W.data.subarray(W.N,W.N+m),W.B);W.N+=m;W.B+=m;break;default:W.error=!0}S.B>S.output.length&&(S.output=new Uint8Array(S.B*2),S.B=0,S.N=0,S.j=!1,S.C=0,S.register=0)}S.output.length!==S.B&&(S.output=S.output.subarray(0,S.B));return S.error?new Uint8Array(0):S.output}; mWP=function(S,W,m){W=WE(W);m=WE(m);for(var a=S.data,J=S.output,B=S.B,E=S.register,y=S.C,Y=S.N;;){if(y<15){if(Y>a.length){S.error=!0;break}E|=(a[Y+1]<<8)+a[Y]<>=7;G<0;)G=W[(E&1)-G],E>>=1;else E>>=G&15;y-=G&15;G>>=4;if(G<256)J[B++]=G;else if(S.register=E,S.C=y,S.N=Y,G>256){E=cg[G];E+=SR(S,Cy[G]);Y=WKP(S,m);y=wW[Y];y+=SR(S,D3[Y]);if(JpO&&Em.length&&(S.error=!0);S.register|=(m[a+1]<<8)+m[a]<=0)return mw(S,m&15),m>>4;for(mw(S,7);m<0;)m=W[SR(S,1)-m];return m>>4}; SR=function(S,W){for(;S.C=S.data.length)return S.error=!0,0;S.register|=S.data[S.N++]<>=W;S.C-=W;return m}; mw=function(S,W){S.C-=W;S.register>>=W}; WE=function(S){for(var W=[],m=g.R(S),a=m.next();!a.done;a=m.next())a=a.value,W[a]||(W[a]=0),W[a]++;var J=W[0]=0;m=[];var B=0;a=0;for(var E=1;E7&&(B+=W[E]);for(J=1;J>Y&1;y=B<<4|E;if(E<=7)for(Y=1<<7-E;Y--;)a[Y<>=7;E--;){a[Y]||(a[Y]=-W,W+=2);var G=J&1;J>>=1;Y=G-a[Y]}a[Y]=y}}return a}; Ea6=function(S){var W,m,a,J,B,E,y,Y,G;return g.k(function(K){switch(K.C){case 1:if(!BO7)throw Error("DecompressionStream is not supported");W=L9.Fu();m=new DecompressionStream("gzip");a=m.writable.getWriter();a.write(S);a.close();J=m.readable.getReader();B=new YQ([]);case 2:return g.P(K,J.read(),5);case 5:E=K.N;y=E.value;if(Y=E.done){K.cn(4);break}B.append(y);K.cn(2);break;case 4:return G=pc(B),L9.Wd("gznb",W,Math.ceil(G.byteLength/16)),K.return(G)}})}; as=function(S){AP.call(this,"onesie",S);this.Fn=S;this.C={};this.j=!0;this.B=null;this.queue=new Z3(this);this.X={}}; Jw=function(S){var W=S.queue;W.C.length&&W.C[0].isEncrypted&&!W.N&&(W.C.length=0);W=g.R(Object.keys(S.C));for(var m=W.next();!m.done;m=W.next()){m=m.value;var a=S.C[m];if(!a.jW){var J=S.queue;J.C.push({videoId:a.videoId,formatId:m,isEncrypted:!1});J.N||b0(J)}}}; zB6=function(S,W){var m=W.totalLength,a=!1;switch(S.B){case 0:S.YJ(W,S.j).then(function(J){var B=S.Fn;B.HU("oprr");B.playerResponse=J;B.xi||(B.bM=!1);BE(B)},function(J){S.Fn.fail(J)}); break;case 2:S.HU("ormk");W=pc(W);S.queue.decrypt(W);break;default:a=!0}S.Fn.MS&&S.Fn.iY("ombup","id.11;pt."+S.B+";len."+m+(a?";ignored.1":""));S.B=null}; ypj=function(S,W){var m,a,J,B,E;return g.k(function(y){switch(y.C){case 1:S.Fn.HU("oprgz_s");if(!BO7){y.cn(2);break}g.EQ(y,3);return g.P(y,Ea6(W),5);case 5:return m=y.N,S.Fn.HU("oprgz_n"),S.Fn.iY("oprsgz",{i:"n"}),y.return(m);case 3:a=g.Gg(y),S.Fn.iY("gzerr",{impl:"native",err:""+a});case 2:if(J=S.Fn.J().dA)try{var Y=L9.Fu(),G=J.Nu(W),K=J,T=G!=null?G:W,p=T.byteOffset,q=T.byteLength,F=K.exports.getInflatedSize(p,q);if(F===0)throw Error("wasm_gz: bad input");var O=K.malloc(F),X=K.exports.inflateGzip(p, q,O);if(X)throw K.free(O),Error("wasm_gz: fail"+X);var l=new Uint8Array(K.exports.memory.buffer,O,F);G&&J.free(G.byteOffset);var M=J.mB(l);L9.Wd("gzwb",Y,Math.ceil(M.byteLength/16));B=M;S.Fn.HU("oprgz_w");S.Fn.iY("oprsgz",{i:"w"});return y.return(B)}catch(e){S.Fn.iY("gzerr",{impl:"wasm",err:""+e})}Y=L9.Fu();G=g.a97(new g.wY_(W));L9.Wd("gzjb",Y,Math.ceil(G.byteLength/16));E=G;S.Fn.HU("oprgz_p");S.Fn.iY("oprsgz",{i:"j"});return y.return(E)}})}; Yx7=function(S){return new Promise(function(W){setTimeout(W,S)})}; GRK=function(S,W){var m=S.J();var a=S.o6&&m.T("html5_onesie_preload_use_content_owner"),J=S.Qw;a=a===void 0?!1:a;if(m=OZ(W.Y.experiments,"debug_bandaid_hostname")){var B=g.Db(W.Y.experiments,"debug_bandaid_port");B=B>0?m+":"+B:m;m=W.Y.experiments.mU("debug_bandaid_insecure_scheme");W=hz(W,B,m)}else a&&(J==null?0:J.url)&&!W.N?(B=Fl(6,new g.H_(J.url)),W=hz(W,B)):W=(B=W.C.get(0))==null?void 0:B.location.clone();if(W&&S.videoId){B=xL(S.videoId);S=[];if(B)for(B=g.R(B),m=B.next();!m.done;m=B.next())S.push(m.value.toString(16).padStart(2, "0"));W.set("id",S.join(""));return W}}; KK6=function(S,W,m){m=m===void 0?0:m;var a,J;return g.k(function(B){if(B.C==1)return a=[],a.push(W.load()),m>0&&a.push(Yx7(m)),g.P(B,Promise.race(a),2);J=GRK(S,W);return B.return(J)})}; TOP=function(S,W,m,a){a=a===void 0?!1:a;S.set("cpn",W.clientPlaybackNonce);S.set("opr","1");var J=W.J();S.set("por","1");BS()||S.set("onem","1");W.startSeconds>0&&S.set("osts",""+W.startSeconds);a||(J.T("html5_onesie_disable_partial_segments")&&S.set("oses","1"),W=J.T("html5_gapless_onesie_no_media_bytes")&&Fh(W)&&W.o6,m&&!W?(W=m.audio,S.set("pvi",m.video.join(",")),J.T("html5_onesie_disable_audio_bytes")||S.set("pai",W.join(",")),m1||S.set("osh","1")):(S.set("oad","0"),S.set("ovd","0"),S.set("oaad", "0"),S.set("oavd","0")))}; qxl=function(S,W,m,a,J){J=J===void 0?!1:J;var B="https://youtubei.googleapis.com/youtubei/"+W.Uo.innertubeApiVersion+"/player",E=[{name:"Content-Type",value:"application/json"}];a&&E.push({name:"Authorization",value:"Bearer "+a});E.push({name:"User-Agent",value:g.mW()});g.D4("EOM_VISITOR_DATA")?E.push({name:"X-Goog-EOM-Visitor-Id",value:g.D4("EOM_VISITOR_DATA")}):(m=m.visitorData||g.D4("VISITOR_DATA"))&&E.push({name:"X-Goog-Visitor-Id",value:m});(m=g.D4("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&E.push({name:"X-YouTube-Lava-Device-Context", value:m});(W=OZ(W.experiments,"debug_sherlog_username"))&&E.push({name:"X-Youtube-Sherlog-Username",value:W});S=XQ(JSON.stringify(S));return{url:B,xx:E,postBody:S,vsD:J,oI:J}}; ET=function(S,W,m,a,J,B,E,y,Y){var G=S.Zt,K=S.pH;S=S.k1X;var T=G!==void 0&&K!==void 0,p=a.getVideoData(),q,F=W.C.encryptedClientKey;W=T?W.iv:void 0;T=Ci(B,!0);J=J||!!BS()&&T>1572864;return{innertubeRequest:{p4X:S,Bt:G,pH:K,encryptedClientKey:F,iv:W,lr6:!0,oA:!0,hc:"DecompressionStream"in window||!J,v8n:m.experiments.mU("html5_use_jsonformatter_to_parse_player_response")},cY:smc({Av:B,w2:m,C_:a,bj:p.startSeconds*1E3}),onesieUstreamerConfig:E,QQ:y,Sf:$3(p),reloadPlaybackParams:(q=p.uO)==null?void 0: q.reloadPlaybackParams,qc9:Y}}; pBc=function(S,W,m,a,J,B,E,y){var Y=g.Z1(S,g1),G;if(!S.oI)if(G=Z1P(W,Y)){var K=G.bx;G=G.signature}else G=K=W.encrypt(Y),(0,g.X1)(),G=AvP(new t9l(W.C.B),G,W.iv);return ET(K&&G?{Zt:K,pH:G}:{k1X:Y},W,m,a,!!S.oI,J,B,E,y)}; FKK=function(S,W,m,a,J,B,E,y){var Y,G,K;return g.k(function(T){if(T.C==1)return Y=g.Z1(S,g1),g.P(T,AK7(W,Y),2);if(T.C!=3)return G=T.N,g.P(T,NqK(W,G),3);K=T.N;return T.return(ET({Zt:G,pH:K},W,m,a,!!S.oI,J,B,E,y))})}; VeP=function(S,W,m,a,J,B,E,y){var Y=g.Z1(S,g1);if(Y=Z1P(W,Y))return ET({Zt:Y.bx,pH:Y.signature},W,m,a,!!S.oI,J,B,E,y)}; y6=function(S,W,m){g.A.call(this);var a=this;this.C_=S;this.playerRequest=W;this.Av=m;this.logger=new g.O6("onesie");this.CM=[];this.jo=[];this.xhr=null;this.state=1;this.WO=new Vn;this.yu=!1;this.playerResponse="";this.O3=new Ql(this);this.BA=new as(this);this.OR="";this.KO=this.SW=!1;this.N9="";this.enableCompression=this.xi=this.Bl=!1;this.fK=[];this.Pk=-1;this.hF=0;this.Y=this.C_.J();this.videoData=this.C_.getVideoData();this.MS=this.Y.rd();this.oB=this.Y.eg;this.c8=new fy(this.oB.C);this.bB= this.Y.T("html5_onesie_check_timeout");this.SV=new g.rj(this.aA,500,this);this.P8=new g.rj(this.f4,1E4,this);this.Rb=new g.rj(function(){if(!a.isComplete()){var J=z5(a);a.fail(new g.a3("net.timeout",J))}},1E3); this.Yh=new g.rj(this.QLX,2E3,this);this.YL=this.C_.zU();this.bM=this.T("html5_onesie_wait_for_media_availability");g.Z(this.videoData,this);g.Z(this,this.SV);g.Z(this,this.P8);g.Z(this,this.Yh);S=Qg();m1&&S&&(this.q6=new Map);this.qa=new Map;this.xS=new Map;this.zj=new Map;this.SR=new Map}; Nj=function(S,W){var m;return(m=S.q6)==null?void 0:m.get(W)}; s17=function(S,W,m){var a;return g.k(function(J){if(J.C==1)return S.HU("oprd_s"),naP(S)?g.P(J,b1j(S.c8,W,m),3):(a=S.c8.decrypt(W,m),J.cn(2));J.C!=2&&(a=J.N);S.HU("oprd_c");return J.return(a)})}; uhl=function(S){return S.T("html5_onesie_host_probing")||S.MS?m1:!1}; BE=function(S){if(!S.playerResponse)return!1;if(S.Bl)return!0;var W=S.videoData.T("html5_onesie_audio_only_playback")&&VI(S.videoData);if(S.q6&&S.bM){if(!S.q6.has(S.OR))return!1;var m=S.q6.get(S.OR),a;if(a=m){a=!1;for(var J=g.R(m.zC.keys()),B=J.next();!B.done;B=J.next())if(B=m.zC.get(B.value))for(var E=g.R(B.DZ),y=E.next();!y.done;y=E.next())y.value.i4>0&&(B.vD?a=!0:W=!0);a=!(W&&a)}if(a)return!1}S.HU("ofr");S.WO.resolve(S.playerResponse);if(!S.bB){var Y;(Y=S.Rb)==null||Y.start();S.P8.start()}return S.Bl= !0}; OpP=function(S){if(S.q6&&!S.T("html5_onesie_media_capabilities")){S.HU("ogsf_s");var W=TnP(S.C_.getVideoData(),function(a,J){S.iY(a,J)}),m=gaX(S.C_); W.video=aBD(m,W.video);S.HU("ogsf_c");if(W.video.length)return W;S.iY("ombspf","l."+m.N+";u."+m.C+";o."+m.B+";r."+m.reason)}}; naP=function(S,W){return S.T("html5_onesie_sync_request_encryption")||(W==null?0:W.oI)?!1:!!BS()}; z5=function(S){if(!S.xa)return{};var W=S.xa.F7(),m;W.d=(m=S.xa.Pn)==null?void 0:m.Rp();W.shost=S.Qy;W.ty="o";return W}; j1G=function(S,W){var m,a;(a=(S=(m=S.q6)==null?void 0:m.get(W))==null)||(W=S.B?!1:S.B=!0,a=!W);return!a}; YG=function(S,W,m,a,J,B,E,y,Y,G,K,T){g.A.call(this);var p=this;this.C_=S;this.loader=W;this.policy=m;this.audioTrack=a;this.videoTrack=J;this.ZQ=B;this.Av=E;this.M2=y;this.N=Y;this.timing=G;this.q2=K;this.S=T;this.C=[];this.j={};this.zN=this.uY=!1;this.N2=this.Y6=this.qJ=0;this.vn={XA:0,LR:0};this.d2={XA:0,LR:0};this.tv=null;this.Pn={I6:[],qS:[]};this.s9={I6:[],qS:[]};this.V=null;this.X=[];this.Hn=0;this.hX=!1;this.f3={vUQ:function(){return p.C}, Vqq:function(){return p.j}, GS9:function(){p.C.length=0}, lYn:function(){return p.videoData.Hn}, hlX:function(){return p.N2}, D1_:function(q){p.N2=q}, d16:function(q){p.vn.LR=q}, qc:function(q){p.V=q}, Gh:function(q){p.X=q}, VX:function(){return p.VX()}}; this.videoData=this.C_.getVideoData();this.bY=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.Ul;this.policy.Ra&&(this.Xn=new ny(this.loader,this.policy,this.Av),g.Z(this,this.Xn))}; vaX=function(S,W){if(Q1P(S)){W=XBP(S,W);S.C.push(W);var m;(m=S.Xn)==null||u0(m,S.ZQ.bY);S.bY>0&&S.vn.LR++}}; XBP=function(S,W){S.policy.Z&&S.loader.iY("sabrcrq",{create:1});var m=new dW(0,S.ZQ.bY,S);S.N.bY=!1;return HpG(S,m,W)}; G5=function(S){var W,m=S.policy.V&&((W=S.loader)==null?void 0:W.ql());W=S.loader.getCurrentTime()||0;W=l9P(S,W);if(S.policy.hN&&S.loader.isSeeking()){var a=SI(S.videoTrack,W);S.loader.iY("asmtfnctv",{b:W,a:a});isNaN(a)||(W=a)}a=S.loader.DH()||0;W+=a;a=ka(S.videoData)||g.fp(S.videoData);var J=0;m?(a&&(J=Number.MAX_SAFE_INTEGER),S.videoData.ri&&(J=Math.ceil(S.videoData.Wm*1E3))):J=Math.ceil(W*1E3);return Math.min(Number.MAX_SAFE_INTEGER,J)}; Kj=function(S){return S.policy.o6&&!!S.V}; l9P=function(S,W){if(S.loader.isSeeking())return W;var m=S.C_.fn();if(!m)return W;m=m.gU();if(m.length===0||ct(m,W))return W;if(!S.videoTrack.Hc(W)&&!S.audioTrack.Hc(W))return S.loader.iY("sundrn",{b:0,lt:W}),W;for(var a=W,J=Infinity,B=0;BW)){var E=W-m.end(B);E=20)?(S.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),W):a}; qv=function(S,W,m){S=S.loader.DH()||0;return T5(W,(m+S)*1E3)/1E3+m}; Q1P=function(S){if(!MeO(S,S.vn)||ym(S.audioTrack)&&ym(S.videoTrack))return!1;if(S.policy.N)if(S.policy.X){var W;if((W=S.S)==null)var m=0;else{m=!1;W=g.R(W.C.entries());for(var a=W.next();!a.done;a=W.next())if(a=g.R(a.value),a.next(),a=a.next().value,a.event!=="predictStart"&&a.SS===5){var J=void 0,B=void 0;((J=a)==null?0:J.RB)&&Date.now()-((B=a)==null?NaN:B.RB)>1E4?a.SS=1:m=!0}}if(m)return!1}else if(m=!1,S.q2.N===2?m=!0:S.q2.N===3&&(G5(S),S.loader.DH(),J=DA(S.audioTrack,S.loader.isSeeking()).I6,W= DA(S.videoTrack,S.loader.isSeeking()).I6,a=S.loader.getCurrentTime()||0,J=qv(S,J,a),W=qv(S,W,a),W=Math.min(J,W),a=S.q2,W>=a.B?(a.iY("sdai",{haltrq:W,est:a.B}),W=!0):W=!1,W&&(m=!0)),m&&S.policy.Z&&S.loader.iY("sabrcrq",{waitad:1}),m)return!1;S.policy.ov&&(S.Pn=pj(S,S.audioTrack),S.s9=pj(S,S.videoTrack));if(!S.B)return S.policy.Z&&S.loader.iY("sabrcrq",{nopolicy:1}),!0;if(S.C_.WL())return S.policy.Z&&S.loader.iY("sabrcrq",{utc:1}),!0;if(S.N.Z)return S.policy.Z&&S.loader.iY("sabrcrq",{audio:1}),!0;if(S.policy.Wh&& S.N.bY)return S.policy.Z&&S.loader.iY("sabrcrq",{constraint:1}),!0;if(!S.B.targetAudioReadaheadMs||!S.B.targetVideoReadaheadMs)return S.policy.Z&&S.loader.iY("sabrcrq",{noreadahead:1}),!0;if(S.policy.V&&S.loader.ql())return S.policy.Z&&S.loader.iY("sabrcrq",{seekToHead:1}),!0;m=Math.min(Ez(S.loader,S.audioTrack)*1E3,S.B.targetAudioReadaheadMs);W=Math.min(Ez(S.loader,S.videoTrack)*1E3,S.B.targetVideoReadaheadMs);var E=Math.min(m,W),y=S.C_.getCurrentTime()*1E3,Y=UWl(S,y);a=Y.TD;J=Y.OP;B=Y.nG;Y=Y.oD; var G=aW||a>=0&&J.Ih>a+1)break;m=Math.max(m,J.startTimeMs+J.durationMs);a=Math.max(a,J.iJ)}return Math.max(0,m-W)}; HpG=function(S,W,m){var a={Av:S.Av,zZ:function(Y,G){S.C_.l7(Y,G)}, p6:S.policy.pm,wz:S.policy.B};S.Av.N.V&&(a.vk=(S.videoTrack.yD.info.o2||0)+(S.audioTrack.yD.info.o2||0));S.policy.FV&&(a.Tm=S.audioTrack.yD.index.KH(),a.p6=!1);var J=$_Q(W,S.policy,S.j)?2:1;J!==S.N2&&(S.N2=J,RBj(S));m=S.VX(m);if(S.policy.N2&&S.policy.B&&m.CZ){for(var B=J="",E=g.R(m.CZ),y=E.next();!y.done;y=E.next())y=y.value,S.videoData.sabrContextUpdates.has(y)||S.policy.N2&&m.YQ&&m.YQ.type===y?J+="_"+y:B+="_"+y;S.loader.iY("sabrbldrqs",{ctxts:J,misctxts:B})}!W.setData(m,S.policy,S.j)&&S.policy.N2&& S.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);a=new wP(S.policy,W,S.ZQ,S.j,S,a,S.loader.zU());SS(S.timing);S.policy.Z&&S.loader.iY("sabrcrq",{rn:a.gi(),probe:W.sC()});return a}; nj=function(S,W){if(W.TN()||S.TN())S.policy.Km||(S.policy.V?F3(S.loader):S.loader.i$());else{if(S.policy.B&&W.isComplete()&&W instanceof wP){var m=S.loader,a=m.iY,J,B,E=Object.assign(W.xa.F7(),{rst:W.state,strm:W.xhr.uL(),d:(J=W.xa.Pn)==null?void 0:J.Rp(),cncl:W.xhr&&W.WU.X?1:0,rqb:W.JF,cwt:W.WU.B,swt:(B=W.mK)==null?void 0:B.rL});J=Object.assign(hTD(W.info),E);a.call(m,"rqs",J)}if(W.isComplete()&&W.sC()&&W instanceof wP)S.policy.qd?W.eW()?(W.dispose(),S.C.length===0?S.loader.i$():(S=S.C[0],S instanceof wP&&S.vc()&&S.bX())):W.oo()&&S.loader.handleError(W.mI(),W.EK()):(W.dispose(),S.loader.i$());else{if(W.RK())W instanceof wP&&tB7(S.timing,W),RBj(S),V6(S);else if(W.oo())if(m=S.C_.WL(),W instanceof wP&&Pg(W.info)&&m&&S.loader.iL(m),W instanceof wP&&fBO(W)){var y;(y=S.loader.yQ)==null||HD(y)}else W instanceof y6?S.C.pop():(y=1,W.canRetry()&&Mj(S.loader)&&(eB6(S,W),y=0),S.loader.handleError(W.mI(),W.EK(),y));else{if(S.loader.isSuspended&&!W.isComplete())return;V6(S)}W.TN()||W instanceof y6||(W.isComplete()? y=XYl(W,S.policy,S.j):(y=QyO(W,S.policy,S.j),y===1&&(S.uY=!0)),y!==0&&(m=new dW(1,W.info.aL),m.u6=y===2,HpG(S,m)));S.policy.Cn&&!W.isComplete()?R$(S.loader):S.loader.i$()}}}; V6=function(S){for(;S.C.length&&S.C[0].PV(S.sy());){var W=S.C.shift();xWP(S,W)}S.C.length&&xWP(S,S.C[0])}; xWP=function(S,W){W instanceof wP&&(S.g2=W);var m=new Set(W.PL(S.sy()));m=g.R(m);for(var a=m.next();!a.done;a=m.next()){var J=a.value;if(!(a=!(W instanceof y6))){a=S.N;var B=a.ZQ.Hv,E=i0(a.videoInfos,B);B=Irj(a,J,B);var y=E.includes(J);!a.RY.A_||B||y||a.loader.iY("sabrcpf",{fid:""+J,vfids:""+E.join("."),said:a.S||""});a=B||E.includes(J)}if(a&&(a=W.vT(J,S.sy()),E=S.policy.o6&&NZ(a[0].yD.info.mimeType),W.IT(J,S.sy())))for(J=W.XY(J,S.sy()),J=g.R(J),B=J.next();!B.done;B=J.next())if(B=B.value,S.policy.B&& W instanceof y6&&S.loader.iY("omblss",{s:B.info.GC()}),E)y=S.timing,y.N2||(y.N2=(0,g.X1)(),g.eJ("fcb_r",y.N2,y.C)),y=S,y.videoData.Hv()&&y.V&&oc(y.V)===oc(g.kK(B.info.yD.info,y.ZQ.Hv))&&y.C_.publish("sabrCaptionsDataLoaded",B,y.Gh.bind(y));else{y=B.info.yD.info.vD();var Y=B.info.yD;if(y){var G=void 0;var K=S.N,T=(G=W.GE(S.sy()))==null?void 0:G.token;K.Z&&Y!==K.X?G=!0:(K.Z=!1,Y!==K.X&&(K.X=Y,K.JI(Y,K.audioTrack,T)),G=!1);if(G)continue}else G=void 0,RTl(S.N,Y,(G=W.GE(S.sy()))==null?void 0:G.token); G=y?S.audioTrack:S.videoTrack;W instanceof y6&&(G.V=!1,W instanceof y6&&(y?hmD(S.timing):$A6(S.timing)));try{cD(G,a,B)}catch(p){B=Bt(p),S.loader.handleError(B.errorCode,B.details,B.severity),G.YB(),S.aN(!1,"pushSlice"),F3(S.loader)}}}}; eB6=function(S,W){S.policy.N2?S.C.splice(S.C.indexOf(W)).forEach(function(m){m.dispose()}):(S.C.pop(),W==null||W.dispose())}; ip7=function(S,W,m){for(var a=[],J=0;J0)for(var W=g.R(S.videoData.sabrContextUpdates.keys()),m=W.next();!m.done;m=W.next()){m=m.value;var a=void 0;((a=S.videoData.sabrContextUpdates.get(m))==null?0:a.sendByDefault)&&S.videoData.Hn.add(m)}if(S.policy.N2&&S.C.length)for(W=g.R(S.C),m=W.next();!m.done;m=W.next())(m=m.value.Hf())&&m.type&&m.sendByDefault&&S.videoData.Hn.add(m.type)}; dWQ=function(S){S.policy.VT&&(S.O9=void 0,S.qJ=0)}; I9X=function(S,W){if(W.oo()||W.TN()){var m=S.loader,a=m.iY,J=W.state;S=S.sy();var B,E;if((W=(B=W.q6)==null?void 0:B.get(S))==null)W=void 0;else{B=0;S=W.PL();for(var y=0;y0){var m=Math.floor((0,g.X1)()/1E4);if(m===W.XA){if(W.LR>=S.bY){W.LR===S.bY&&(m={reason:"toomanyrequests"},m.limit=W.LR,S.loader.handleError("player.exception",m),W.LR+=1);W=!1;break a}}else W.XA=m,W.LR=0}W=!0}if(!W||S.loader.isSuspended&&S.loader.j$)return!1;if(S.Z&&(0,g.X1)()0)||S.policy.N2&&S.C.length===1&&S.C[0].Lq()?!0:!1){var a;W=(a=S.ZQ.bY)!=null&&b5(a,S.policy,S.j,S.loader.kU)?!0:!1}return W&&!S.hX?!0:!1}; UWl=function(S,W){var m=PZl(S),a=m.nG;m=m.oD;if(S.policy.ov){var J=T5(S.Pn.I6,W);S=T5(S.s9.I6,W)}else J=a,S=m;return{TD:J,OP:S,nG:a,oD:m}}; PZl=function(S){var W=Jz(S.audioTrack,!0)*1E3;S=Jz(S.videoTrack,!0)*1E3;return{nG:W,oD:S}}; f9G=function(S){this.C_=S;this.C=new Map;this.delay=null}; sT=function(S,W){if(Hb(S.C_.getPlayerState())&&S.C.size!==0){var m=W!=null?W:Array.from(S.C.values()).sort(function(J,B){return J.mediaTime-B.mediaTime}); W=S.getCurrentTime();var a=(m[0].mediaTime-W)*1E3/S.C_.getPlaybackRate();if(a<500)for(W=a>0?kRD(S):W,m=g.R(m),a=m.next();!a.done;a=m.next())if(a=a.value,W>=a.mediaTime)a.resolve([a.mediaTime,a.id]),S.C.delete(a.id);else break;$W6(S,W)}}; hBD=function(S,W,m){S.C.delete(m);return new Promise(function(a){S.C.set(m,{id:m,mediaTime:W,resolve:a});a=Array.from(S.C.values()).sort(function(J,B){return J.mediaTime-B.mediaTime}); m===a[0].id&&sT(S,a)})}; te_=function(S){var W;(W=S.delay)==null||W.dispose();S.C.clear()}; $W6=function(S,W){var m;(m=S.delay)==null||m.dispose();S.delay=null;m=Array.from(S.C.values()).sort(function(a,J){return a.mediaTime-J.mediaTime}); m.length!==0&&(W=(m[0].mediaTime-W)*1E3/S.C_.getPlaybackRate(),S.delay=new g.rj(function(){sT(S)},W>500?W-500:W),S.delay.start())}; kRD=function(S){var W,m;return(m=(W=S.C_.fn())==null?void 0:W.getCurrentTime())!=null?m:S.C_.getCurrentTime()}; ux=function(S,W,m){var a=this;this.j=S;this.cpn=W;this.C_=m;this.C=new Map;this.B=new Map;this.V=NaN;this.N=this.vr="";this.isSeeking=!1;this.X=new f9G(m);this.NP=m.NP;this.C_.subscribe("statechange",this.Z,this);this.C_.subscribe("SEEK_TO",function(){a.aV()}); this.C_.subscribe("SEEK_COMPLETE",function(){ApP(a)}); this.vr=this.N=this.cpn}; NOX=function(S,W,m){var a=S.C.get(W),J=S.j.getStartTime(W),B=S.j.getDuration(W),E=J,y;((y=a==null?void 0:a.C)!=null?y:[S.cpn]).forEach(function(Y,G){var K,T=(K=a==null?void 0:a.N[G])!=null?K:B;if(m>=E&&m=J}).sort(function(E,y){return E-y}); W=g.R(W);for(m=W.next();!m.done;m=W.next()){m=m.value;var B=m===J?a-S.j.getStartTime(J):0;rp6(S,m,S.C.get(m),B)}}; Zp6=function(S,W,m,a){a=a===void 0?!1:a;W!==S.vr&&(S.vr=W,S.C_.publish("playbackstarted",W,m+S.C_.DH(),a))}; oa6=function(S,W,m,a){S.N=m;m=W+"."+m;S.B.has(W)?S.B.get(W).push(m):S.B.set(W,[m]);hBD(S.X,a,m).then(function(J){var B=g.R(J);J=B.next().value;B=B.next().value;var E=g.R(B.split("."));B=E.next().value;E=E.next().value;B=g.R([Number(B),E]);B.next();B=B.next().value;Zp6(S,B,J)})}; gI=function(S,W,m,a,J){this.loader=S;this.policy=W;this.schedule=m;this.MD=a;this.bY=J;this.N2=NaN;this.N=this.Z=this.j=null;this.C=this.X=this.V=this.startTimeSecs=NaN;this.B=!1;this.S=NaN}; CZl=function(S,W,m,a,J,B){return W.y4&&W.Wv&&m===3?new gI(S,W,a,J,B):null}; cp6=function(S,W){if(S.policy.bn6){var m=W.info.o2,a=Ci(S.schedule);W=W.index.KH();m=Math.max(1,a/m);S.S=Math.round(Math.max(((m-1)*W+S.policy.Kn)/m,W-S.policy.SI)*1E3)}}; Sk6=function(S,W){var m=Date.now()/1E3,a=m-S.startTimeSecs,J=m-S.V,B=J>=S.policy.qH,E=!1;if(B){var y=0;!isNaN(W)&&W>S.X&&(y=W-S.X,S.X=W);y/J=S.policy.SI&&!S.B;if(!B&&!m&&DWj(S,W))return NaN;m&&(S.B=!0);a:{a=E;m=(0,g.X1)()/1E3-(S.MD.hO()||0)-S.Z.C-S.policy.Kn;B=S.N.startTime;m=B+m;if(a){if(isNaN(W)){OT(S,NaN,"n",W);B=NaN;break a}a=W-S.policy.DN;a0&&(E.headers=y);B&&(E.onFinish=B);return Object.keys(E).length>1?E:null}; X3=function(S,W,m,a,J,B,E,y){K0()&&m.token&&(S=yi(S,{ctt:m.token,cttype:m.vX,mdx_environment:m.mdxEnvironment}));a.T("net_pings_low_priority")&&(W||(W={}),W.priority="low");B||y&&a.T("nwl_skip_retry")?(W==null?W={}:E8j(S,a.T("html5_assert_cpn_with_regex")),E?NS().sendAndWrite(S,W):NS().sendThenWrite(S,W,y)):W?(E8j(S,a.T("html5_assert_cpn_with_regex")),PmO(S,W)):g.Ir(S,J)}; zW6=function(S){for(var W=[],m=0;m0&&m>0&&!S.N&&S.B<1E7)try{S.j=S.X({sampleInterval:W,maxBufferSize:m});var a;(a=S.j)==null||a.addEventListener("samplebufferfull",function(){return g.k(function(J){if(J.C==1)return g.P(J,S.stop(),2);GEX(S);g.B9(J)})})}catch(J){S.N=YkD(J.message)}}; HE=function(S,W){var m,a,J=(m=window.h5vcc)==null?void 0:(a=m.settings)==null?void 0:a.set(S,W);return ol(J)?wB(rB(J),function(){return!0},function(){return!1}):rB(!!J)}; K1O=function(S){return HE("MediaSource.EnableUsingMediaSourceBufferedRange",S?1:0)}; T_K=function(S){return HE("HTTP3",S?1:0)}; qk7=function(S){return HE("MediaSource.EnableUsingMediaSourceAttachmentMethods",S?1:0)}; pfK=function(S){return HE("QUIC",S?1:0)}; F1P=function(S){return HE("Media.AudioWriteDurationLocal",S)}; Vd6=function(S){return HE("Media.PlayerConfiguration.DecodeToTexturePreferred",S?1:0)}; n8X=function(S){return HE("Media.DisableAllocator",S?1:0)}; sgP=function(S){return HE("Media.VideoBufferSizeClampMb",S)}; u56=function(S){return HE("Media.EnableAllocateOnDemand",S?1:0)}; g8O=function(S){return HE("Media.NotifyMemoryPressureBeforePlayback",S?1:0)}; jgl=function(){var S,W,m,a=(S=window.h5vcc)==null?void 0:(W=S.settings)==null?void 0:(m=W.getPersistentSettingAsString)==null?void 0:m.call(W,"cpu_usage_tracker_intervals");if(a!=null){var J;S=(J=JSON.parse(a))!=null?J:[];J=S.filter(function(G){return G.type==="total"}).map(function(G){return G.seconds}); W=g.R(OBQ);for(m=W.next();!m.done;m=W.next())m=m.value,J.indexOf(m)===-1&&S.push({type:"total",seconds:m});var B,E;(B=window.h5vcc)==null||(E=B.settings)==null||E.set("cpu_usage_tracker_intervals_enabled",1);var y,Y;(y=window.h5vcc)==null||(Y=y.settings)==null||Y.set("cpu_usage_tracker_intervals",JSON.stringify(S))}}; QgP=function(){var S=window.H5vccPlatformService,W="";if(S&&S.has("dev.cobalt.coat.clientloginfo")&&(S=S.open("dev.cobalt.coat.clientloginfo",function(){}))){var m=S.send(new ArrayBuffer(0)); m&&(W=String.fromCharCode.apply(String,g.x(new Uint8Array(m))));S.close()}return W}; g.UT=function(S){g.A.call(this);var W=this;this.provider=S;this.logger=new g.O6("qoe");this.C=new Map;this.sequenceNumber=1;this.vn=NaN;this.Ud="N";this.S=this.ol=this.MV=this.N2=this.N=0;this.EV=this.Hn=this.V=this.g2="";this.yT=this.O9=NaN;this.lr=0;this.Cn=-1;this.eg=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.uY=this.isEmbargoed=this.Pn=this.isOffline=this.isBuffering=!1;this.VT=[];this.bY=null;this.d2=this.j=this.Xn=this.Z=!1;this.B=-1;this.hX=!1;this.qd=new g.rj(this.JXU,750,this);this.U4= this.adCpn="";this.Jh=this.No=this.lC=this.S5=this.adFormat=void 0;this.aY=0;this.dA=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.o6=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.M2=!1;this.Wv=NaN;this.s9=0;this.vv=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.IL=!1;this.Kn=new Set;this.f3={Sp:function(B){W.Sp(B)}, dmn:function(){return W.X}, reportStats:function(){W.reportStats()}, PFn:function(){return W.C.get("cat")||[]}, Mg:function(B){return W.C.get(B)||[]}, GZY:function(){return W.C}, Ng9:function(){return{adCpn:W.adCpn,U4:W.U4,adFormat:W.adFormat}}, im2:function(){return{S5:W.S5,lC:W.lC,No:W.No,Jh:W.Jh}}}; this.q2=this.provider.Y.T("html5_qoe_relaxed_reporting");var m=g.Db(this.provider.Y.experiments,"html5_qoe_proto_mock_length");m&&!lx.length&&(lx=zW6(m));g.Z(this,this.qd);try{var a,J;(J=(a=navigator).getBattery)==null||J.call(a).then(function(B){W.bY=B})}catch(B){}g.Mv(this,0,"vps",["N"]); S.Y.rd()&&(this.s9=(0,g.X1)(),this.Wv=g.uO(function(){var B=(0,g.X1)(),E=B-W.s9;E>500&&W.iY("vmlock",{diff:E.toFixed()});W.s9=B},250)); this.provider.videoData.j1&&(this.remoteControlMode=XfD[this.provider.videoData.j1]||0);this.provider.videoData.Fy&&(m=l5O(this.provider.videoData.Fy),m==null?0:m.length)&&(this.remoteConnectedDevices=m);S.Y.rd()&&(this.Y6=new jR,g.Z(this,this.Y6));JgP(S.Y)&&(this.zN=new vE,g.Z(this,this.zN))}; Lj=function(S,W,m){var a=S.C.get(W);a?a.push(m):S.C.set(W,[m])}; g.Mv=function(S,W,m,a){Lj(S,m,W.toFixed(3)+":"+a.join(":"))}; Rs=function(S,W){var m=S.provider.getCurrentTime();g.Mv(S,W,"cmt",[m.toFixed(3)]);var a=m=S.provider.cD();if((!S.X||S.provider.Y.T("html5_shorts_gapless_no_gllat")&&Fh(S.provider.videoData)?0:a*1E3>S.X.Mq+100)&&S.X){var J=S.X;a=J.isAd;m=m*1E3-J.Mq;S.XP=W*1E3-J.KT2-m-J.AVN;J=(0,g.X1)()-m;W=S.XP;m=S.provider.videoData;var B=m.isAd();if(a||B){B=(a?"ad":"video")+"_to_"+(B?"ad":"video");var E={};m.V&&(E.cttAuthInfo={token:m.V,videoId:m.videoId});E.startTime=J-W;RP(B,E);g.LG({targetVideoId:m.videoId,targetCpn:m.clientPlaybackNonce}, B);UY("pbs",J,B)}else J=S.provider.C_.Zr(),J.V!==m.clientPlaybackNonce?(J.X=m.clientPlaybackNonce,J.N=W):m.rE()||g.Ue(new g.uc("CSI timing logged before gllat",{cpn:m.clientPlaybackNonce}));S.iY("gllat",{l:S.XP.toFixed(),prev_ad:+a});delete S.X}}; ix=function(S,W){W=W===void 0?NaN:W;W=W>=0?W:g.eR(S.provider);var m=S.provider.C_.LH(),a=m.HJ-(S.O9||0);a>0&&g.Mv(S,W,"bwm",[a,(m.M5-(S.yT||0)).toFixed(3)]);isNaN(S.O9)&&m.HJ&&S.isOffline&&S.Sp(!1);S.O9=m.HJ;S.yT=m.M5;isNaN(m.bandwidthEstimate)||g.Mv(S,W,"bwe",[m.bandwidthEstimate.toFixed(0)]);S.provider.Y.rd()&&Object.keys(m.C).length!==0&&S.iY("bwinfo",m.C);if(S.provider.Y.rd()||S.provider.Y.T("html5_log_meminfo"))a=W1G(),Object.values(a).some(function(B){return B!==void 0})&&S.iY("meminfo",a); if(S.provider.Y.rd()){var J;(a=(J=S.Y6)==null?void 0:aTX(J))&&Object.values(a).some(function(B){return B!=null})&&S.iY("cpuinfo",a)}S.zN&&S.iY("jsprof",S.zN.flush()); S.bY&&g.Mv(S,W,"bat",[S.bY.level,S.bY.charging?"1":"0"]);J=S.provider.C_.getVisibilityState();S.Cn!==J&&(g.Mv(S,W,"vis",[J]),S.Cn=J);Rs(S,W);(J=v8_(S.provider))&&J!==S.lr&&(g.Mv(S,W,"conn",[J]),S.lr=J);xG(S,W,m)}; HBP=function(S){var W=S.provider.C_.LH(),m=g.eR(S.provider);xG(S,m,W);var a=W.B;W=W.j;isNaN(a)||(S.provider.Y.T("html5_unified_live_latency_reporting")&&!isNaN(W)&&W?g.Mv(S,m,"e2el",[a.toFixed(3),W.toFixed(3)]):g.Mv(S,m,"e2el",[a.toFixed(3)]))}; xG=function(S,W,m){if(!isNaN(m.St)){var a=m.St;m.N96E3&&(new g.rj(S.reportStats,0,S)).start()}}; UVK=function(S){S.provider.videoData.o6&&Is(S,"prefetch");S.provider.videoData.zN&&S.iY("reload",{r:S.provider.videoData.reloadReason,ct:S.provider.videoData.zN});S.provider.videoData.PT&&Is(S,"monitor");S.provider.videoData.isLivePlayback&&Is(S,"live");m1&&Is(S,"streaming");S.provider.videoData.j1&&S.iY("ctrl",{mode:S.provider.videoData.j1},!0);if(S.provider.videoData.Fy){var W=S.provider.videoData.Fy.replace(/,/g,"_");S.iY("ytp",{type:W},!0)}S.provider.videoData.ke&&(W=S.provider.videoData.ke.replace(/,/g, "."),S.iY("ytrexp",{ids:W},!0));W=S.provider.videoData;var m=S.provider.Y.T("enable_white_noise")||S.provider.Y.T("enable_webgl_noop"),a=g.MW(W)||g.$a(W)||g.hp(W)||g.tp(W);(m||a)&&(m=(0,g.PE)())&&S.C.set("gpu",[m]);Sd(S.provider.videoData)&&g.Mv(S,g.eR(S.provider),"dt",["1"]);W.cotn&&!Sd(W)&&S.Sp(!0);S.provider.Y.rd()&&(W=(0,g.X1)()-S.provider.Y.Mi,S.iY("playerage",{secs:Math.pow(1.6,Math.round(Math.log(W/1E3)/Math.log(1.6))).toFixed()}));S.j=!0;S.vn=g.uO(function(){S.reportStats()},1E4)}; RW7=function(S,W,m){var a=g.eR(S.provider);L1j(S,a,W,0,m);ix(S,a);dI(S)}; L1j=function(S,W,m,a,J){var B=S.provider.Y.C.cbrver;S.provider.Y.C.cbr==="Chrome"&&/^96[.]/.test(B)&&m==="net.badstatus"&&/rc\.500/.test(J)&&fj(S,3);S.provider.Y.T("html5_use_ump")&&/b248180278/.test(J)&&fj(S,4);B=S.provider.getCurrentTime();a=a===1?"fatal":"";m=[m,a,B.toFixed(3)];a&&(J+=";a6s."+WO());J&&m.push(eWP(J));g.Mv(S,W,"error",m);S.j=!0}; xVG=function(S,W){var m=g.eR(S.provider);if(!S.provider.Y.experiments.mU("html5_refactor_sabr_video_format_selection_logging")||W.C.id!==S.g2){var a=S.provider.Y.ZH().C.QD(qj);a&&!S.Xn&&W.reason!=="m"&&(W.reason="i");var J=[W.C.id,W.N,S.g2,W.reason];a&&W.reason==="i"&&J.push(kG(S,W));W.token&&J.push(W.token);g.Mv(S,m,"vfs",J);S.g2=W.C.id;a=S.provider.C_.getPlayerSize();a.width>0&&a.height>0&&(a=[Math.round(a.width),Math.round(a.height)],J=g.BY(),J>1&&a.push(J),g.Mv(S,m,"view",a));S.Xn||(S.provider.Y.rd()&& Is(S,"rqs2"),S.provider.videoData.C&&tq(S.provider.videoData.C)&&S.C.set("preload",["1"]));S.Xn=!0;S.j=!0}W.reason==="m"&&++S.aY===100&&fj(S,2);g.Mv(S,m,"vps",[S.Ud]);S.q2||S.reportStats(m)}; iBD=function(S){S.B>=0||(S.provider.Y.xP||S.provider.C_.getVisibilityState()!==3?S.B=g.eR(S.provider):S.hX=!0)}; IT6=function(S,W,m){var a=S.provider.Y,J=a.ZH(),B=[];a.experiments.mU("html5_refactor_sabr_audio_format_selection_logging")?(W=m.C,a=[W.audio&&W.video?W.tI?W.tI:"":W.id],W.n3&&W.n3.id&&a.push(W.n3.id),W=a.join(";"),W!==S.V&&(a=[W,S.V,m.reason],B.push.apply(B,g.x(dVD(m))),J.C.QD(qj)&&m.reason==="i"&&B.push(kG(S,m)),B.length>0&&a.push(B.join(";")),m.token&&a.push(m.token),g.Mv(S,g.eR(S.provider),"afs",a),S.V=W)):m.C.id!==S.V&&(a=[m.C.id,S.V,m.reason],B.push.apply(B,g.x(dVD(m))),J.C.QD(qj)&&m.reason=== "i"&&B.push(kG(S,m)),B.length>0&&a.push(B.join(";")),m.token&&a.push(m.token),g.Mv(S,W,"afs",a),S.V=m.C.id)}; kG=function(S,W){S=S.provider.videoData;g.Jc(S)?W=4:S.Op?W=3:(W=W.C.vD()?S.aE:S.Al,W=W!=null?W:0);S="sms."+W;if(W===3||W===4)S+="_1";return S}; dVD=function(S){var W=[];if(S=S.C.audio){var m=S==null?void 0:S.j;m!==void 0&&W.push("fl."+m);S=S==null?void 0:S.B;S!==void 0&&(S=Math.min(-S,0),W.push("vg."+S),W.push("nm.4"))}return W}; Is=function(S,W){Lj(S,"cat",W)}; $G=function(S,W,m,a,J){var B=g.eR(S.provider);W!==1&&W!==3&&W!==5||g.Mv(S,B,"vps",[S.Ud]);Lj(S,"xvt","t."+B.toFixed(3)+";m."+J.toFixed(3)+";g.2;tt."+W+";np.0;c."+m+";d."+a)}; fj=function(S,W){S.d2||(Lj(S,"fcnz",""+W),S.d2=!0)}; eWP=function(S){/[^a-zA-Z0-9;.!_-]/.test(S)&&(S=S.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return S}; tw=function(S,W,m,a,J,B,E,y,Y,G){y=y===void 0?!1:y;g.A.call(this);var K=this;this.C_=S;this.schedule=W;this.policy=m;this.ZQ=a;this.N2=Y;this.dA=G;this.yQ=this.K_=null;this.Hn=this.O9=this.s9=this.vn=0;this.nA=this.j$=this.isSuspended=!1;this.d2="";this.o6={};this.IL=NaN;this.vv=this.g2=this.kU=0;this.tv=null;this.Wv=this.zN=!1;this.Dg=0;this.uY=!1;this.Pn=this.M2=0;this.yT=null;this.OC=!1;this.Ro=function(){return K.C_.Ro()}; this.timing=new kb6(this.dA);this.bY=new bG(this.schedule,this.policy);this.lr=new g.rj(this.i$,0,this);this.EV=new g.rj(this.i$,this.policy.Cn,this);this.nT=new g.rj(this.i$,1E3,this);this.VT=new g.rj(this.i$,void 0,this);this.Y6=new g.rj(function(){K.isSuspended||K.i$()},1E4,this); this.Cn=new g.rj(this.pDD,250,this);this.Z=this.currentTime=NaN;this.HR=new Vk(5);this.Xn=this.timestampOffset=NaN;this.logger=new g.O6("dash");this.qd=Infinity;this.f3={XLU:function(){return K.nC}, TgX:function(){return K.B}, getAudioTrack:function(){return K.audioTrack}, WwQ:function(){return K.videoTrack}, Zmn:function(){return K.q2}, getManifest:function(){return K.ZQ}, I6n:function(){return K.N}, i$:function(){K.i$()}, un:function(){K.vn=0;K.un()}, GJ2:function(q){return hw(K,K.videoTrack,K.K_.N,q)}}; S=Y&&Y.PL();Y&&(xAG(Y,this.ZQ,this.policy),this.Xn=Date.now());this.C=new sE(this,this.bY,m,this.ZQ,J,S);m=yJD(this.C,B,E&&E.id);this.audioTrack=new bK(this,this.policy,m.audio,this.timing);this.videoTrack=new bK(this,this.policy,m.video,this.timing);this.videoTrack.B.q2=this.audioTrack.IS();this.hX={updateend:this.Pu,error:this.naD};g.Z(this,this.lr);g.Z(this,this.EV);g.Z(this,this.nT);g.Z(this,this.VT);g.Z(this,this.Y6);m=this.policy.F$&&this.policy.Bm?!YmK(this.videoTrack.yD.info):!1;this.eg=jV6({AY:this.policy.S.AY|| m,Bm:this.policy.Bm&&!m,pR:this.policy.pR});this.S=CZl(this,this.policy,this.eg,this.schedule,this.HR,function(q,F){return PtD(K,q,F)}); this.B=new WD(this,this.ZQ,this.policy,this.videoTrack,this.audioTrack,y);if(this.policy.X){y=this.C_.getVideoData();var T;this.iY("clsdai",{initld:1,admapsz:(T=y.zf)==null?void 0:T.size});y.zf||(y.zf=new Map);this.q2=new DA6(this.policy,function(q,F){K.iY(q,F)},this.policy.Ve,y.zf)}this.nC=new WC(this,this.ZQ,this.videoTrack,this.audioTrack,this.policy); T=this.policy.Ak?this.C_.getVideoData().T1:null;this.V=new gW(this,this.policy,this.videoTrack,this.audioTrack,this.o6,this.B,this.timing,this.bY,this.schedule,this.ZQ,this.C,this.S,m,T);g.Z(this,this.V);this.X=new eI(this,this.policy,this.videoTrack,this.audioTrack,this.ZQ,J,VI(this.C_.getVideoData()),E==null?void 0:E.id);g.Z(this,this.X);d_Q(this.X,B);this.N=new YG(this.C_,this,this.policy,this.audioTrack,this.videoTrack,this.ZQ,this.schedule,this.C,this.X,this.timing,this.B,this.q2);g.Z(this,this.N); this.j=this.C_.Ec.ji.cW;this.policy.V||fT6(this);if(this.policy.mQ){var p;this.Kn=new ux(this.videoTrack.yD.index,(p=this.C_.getVideoData().clientPlaybackNonce)!=null?p:"",this.C_)}}; kEG=function(S){S.policy.X&&S.j&&(S.j.CM.forEach(function(W){S.Do(W,-1)}),S.j.CM=[])}; fT6=function(S){var W,m;if((W=S.j)==null?0:(m=W.Hl)==null?0:m.itagDenylist){var a;S.zR((a=S.j)==null?void 0:a.Hl.itagDenylist)}var J;if((J=S.j)==null?0:J.playbackStartPolicy){var B,E;Vm(S.policy,(B=S.j)==null?void 0:B.playbackStartPolicy,3,(E=S.j)==null?void 0:E.gi())}if(S.policy.YN){W=S.sy();var y;(m=W?(y=S.j)==null?void 0:y.xS.get(W):void 0)&&S.N.M0(m,-1)}if(!S.ZQ.N2){var Y;y=(Y=S.j)==null?void 0:Y.GP;(y==null?0:y.Yw)&&(y==null?0:y.dk)&&S.ZQ.Hv&&cd(S.ZQ,y.Yw,y.dk)}var G;if((G=S.j)==null?0:G.SR){Y= S.j.SR.get(S.sy()||"");if(!Y)return;S.ZQ&&Y.formatId&&(G=S.ZQ.B.get(oc(Y.formatId)))&&(G.info.debugInfo=Y.debugInfo)}if(S.policy.g2){var K;(K=S.j)==null||K.jo.forEach(function(T){S.jQ(T)}); (K=S.j)!=null&&(K.jo=[])}}; Aw=function(S,W){var m=Ck(W.yD,S.ZQ.Hv),a,J=((a=S.N2)==null?void 0:a.vT(m))||[];if(J.length===0)return S.iY("ombmsi",{}),!1;a=new y9(J);if((!S.policy.Pn||isFinite(S.getCurrentTime())||S.C_.WL())&&!hRP(a,S.getCurrentTime()))return S.iY("ostmf",{ct:S.getCurrentTime(),a:W.yD.info.vD()}),!1;(S=S.N2)!=null&&(S.zC.get(m).oO=!0);return!0}; $VQ=function(S){if(!S.ZQ.Hv)return!0;var W=S.C_.getVideoData();if(S.C_.Ae())return S.iY("ombpa",{}),!1;var m,a;if(!!((m=S.j)==null?0:(a=m.GP)==null?0:a.RPX)!==S.ZQ.HG)return S.iY("ombplmm",{}),!1;m=W.g2||W.liveUtcStartSeconds||W.PJ;if(S.ZQ.HG&&m)return S.iY("ombplst",{}),!1;if(S.ZQ.N2)return S.iY("ombab",{}),!1;m=Date.now();return DB(S.ZQ)&&!isNaN(S.Xn)&&m-S.Xn>S.policy.CI*1E3?(S.iY("ombttl",{}),!1):lZ(W)!==0&&!S.policy.C||W.T("html5_disable_onesie_media_for_mosaic")&&wO(W)||W.T("html5_disable_onesie_media_for_lifa_eligible")&& D9(W)?!1:!0}; hWj=function(S,W){var m=W.yD,a=S.ZQ.Hv;if($VQ(S))if(S.N2&&S.N2.zC.has(Ck(m,a))){if(a=Ck(m,a),Aw(S,W)){var J=new y9(S.N2.vT(a)),B=function(E){try{if(E.oo())S.handleError(E.mI(),E.EK()),zl(W,E),Gb(E.info)&&vg(S.V,W,m,!0),S.i$();else if(l0(S.V,E)){var y;(y=S.B)==null||bNO(y,E.info,S.tv);S.i$()}}catch(Y){E=Bt(Y),S.handleError(E.errorCode,E.details,E.severity),S.YB()}}; m.B=!0;Ys(J)&&(Cf(W,new mZ(S.policy,a,J,S.N2,B)),SS(S.timing))}}else S.iY("ombfmt",{})}; Zk=function(S,W){W=W||S.videoTrack&&S.videoTrack.C&&S.videoTrack.C.startTime||S.getCurrentTime();var m=S.videoTrack,a=S.C;W=a.nextVideo&&a.nextVideo.index.oU(W)||0;a.Xn!==W&&(a.s9={},a.Xn=W,uK(a,a.C));W=!a.C.isLocked()&&a.bY>-1&&(0,g.X1)()-a.bYm&&(S.iY("sdai",{seg:a,rbt:m.toFixed(3),end:S.N.Hn.toFixed(3),sd:J.toFixed(3)}),S.aN(!1,"rollback")):S.policy.N&&S.aN(!1,"rollback");if(S.ZQ.isManifestless){J=Bg(S.audioTrack,a,m,W);var B=Bg(S.videoTrack,a,m,W);S.policy.Od||(B&&CN(S.ZQ,a,!0),J&&CN(S.ZQ,a,!1));B&&(S.videoTrack.bY=[]);J&&(S.audioTrack.bY=[]);S.iY("sdai",{rollbk2_seg:a,rbt:m.toFixed(3),lt:W.toFixed(3),a:J,v:B});(J||B)&&S.policy.N&&F3(S)}}; tdP=function(S,W){if(!isNaN(S.IL)){var m=Date.now()-S.IL;m<1E4&&S.iY("bfaswtch",{ep:m,sk:W!==void 0?"1":"0",sr:W||""})}}; Ac_=function(S){S.policy.aY=!1;try{S.un()}catch(W){g.lR(W)}}; ZBP=function(S,W){W=W===void 0?!1:W;S.K_&&S.K_.C&&S.K_.N&&(S.K_.C.Bh(S.hX,S),S.K_.N.Bh(S.hX,S));o5(S.audioTrack,null,W);o5(S.videoTrack,null,W);S.K_&&(S.K_.X=!1);S.K_=null}; bx=function(S){S.K_&&S.K_.U2()&&S.qv()}; bBc=function(S,W){W&&N_l(S.C_,new Kf(W.video,W.reason));S.C.zN&&(W=qZ6(S.C,"a"),S.C_.Py(new Kf(W.audio,W.reason)))}; F3=function(S){g.Cu(S.lr)}; R$=function(S){S.policy.Cn&&S.policy.pR&&Math.min(yKK(S.videoTrack),yKK(S.audioTrack))*1E3>S.policy.vH?g.Cu(S.EV):S.i$()}; o8c=function(S){if(Tq_(S.videoTrack))return"ssf";if(S.policy.Y6&&Ky(S.videoTrack)&&Ky(S.audioTrack))return"updateEnd";if(ym(S.audioTrack)||ym(S.videoTrack)&&S.videoTrack.yD.info.p_!=="f")return"";if(S.nC.isSeeking()){var W=S.bY;var m=S.videoTrack;var a=S.audioTrack;if(W.policy.C){var J=W.policy.g4;FL(W.policy)&&(J=wk(W,!1,DW(W)));W=J;m=Jz(a,!0)>=W&&Jz(m,!0)>=W}else m.N.length||a.N.length?(J=m.yD.info.o2+a.yD.info.o2,J=10*(1-DW(W)/J),W=Math.max(J,W.policy.g4),m=Jz(a,!0)>=W&&Jz(m,!0)>=W):m=!0;if(!m)return"abr"; m=S.videoTrack;if(m.N.length>0&&m.B.N.length===1&&kW6(m.B).info.Z360);if(!S.nA||m)return"";m=S.policy.Ea;FL(S.policy)&&(m=wk(S.bY,S.nA,DW(S.bY)));m=YVD(S.videoTrack,S.getCurrentTime(),m)||YVD(S.audioTrack,S.getCurrentTime(),m);return FL(S.policy)?m?"mbnm":"":(S.videoTrack.N.length>0||S.audioTrack.N.length>0|| Ov(S.V,S.videoTrack,S.audioTrack)||Ov(S.V,S.audioTrack,S.videoTrack))&&m?"nord":""}; wfX=function(S,W,m){if(S.policy.Y6&&Ky(W))return!1;if(m.In())return!0;if(!m.zy())return!1;var a=K_(W);if(!a||a.info.type===6)return!1;var J;if(S.policy.yW||((J=S.B)==null?0:cmj(J,W,a.info.VD)))S.Hn=0;else return S.nC.isSeeking()&&F3(S),S.Hn=S.Hn||(0,g.X1)(),!1;if(!hw(S,W,m,a.info))return!1;if(S.ZQ.N&&a.info.C===0){if(m.Xh()==null){J=rS(W);var B;if(!(B=!J||J.yD!==a.info.yD)){b:if(J=J.S,B=a.info.S,J.length!==B.length)J=!1;else{for(var E=0;EB)return S.policy.C&&(W===S.videoTrack?S.O9=S.O9||(0,g.X1)():S.s9=S.s9||(0,g.X1)()),S.policy.d0&&HkK(W.B,B,!1),!1;W===S.videoTrack?S.O9=0:S.s9=0;var y;S.policy.Ys&&m===((y=S.K_)==null?void 0:y.C)&&S.uY&&(m.yR()===0?(S.uY=!1,S.policy.Ys=!1):S.M2=m.yR());a:{y=S.policy.yT?(0,g.X1)():0;E=a.X&&a.info.yD.C||void 0;B=a.N;a.X&&(B=CtP(S,a,B)||B);var Y=pc(B);B=S.policy.yT?(0,g.X1)():0;m=cc_(S,m,Y,a.info,E);(E=W.S)!=null&&(Y=a.info,y=B-y,B=(0,g.X1)()-B,!E.N||LzP(E.N, Y)&&E.N.VD===Y.VD||E.flush(),E.j+=y,E.B+=B,y=1,!E.N&&Y.C&&(y=2),MX(E,y,m),B=Math.ceil(Y.C/1024),y===2&&E.C.add(B),E.C.add(Math.ceil((Y.C+Y.N)/1024)-B),E.N=Y);S.Pn=0;if(m===0)S.zN&&(S.zN=!1,S.Wv=!1),S.vv=0,m=!0;else{if(m===2||m===5)DVP(S,"checked",m,a.info);else{if(m===1){if(!S.zN){S.zN=!0;m=!1;break a}if(!S.Wv){S.Wv=!0;S.C_.seekTo(S.getCurrentTime(),{Jw:"quotaExceeded",Ii:!0});m=!1;break a}a.info.jr()?(y=S.policy,y.zN=Math.floor(y.zN*.8),y.s9=Math.floor(y.s9*.8)):(y=S.policy,y.vv=Math.floor(y.vv* .8),y.s9=Math.floor(y.s9*.8));S.policy.C?qX(S.X.C,a.info.yD,!1):jS(S.C,a.info.yD)}S.C_.KR({reattachOnAppend:m})}m=!1}}if(!m)return!1;S.policy.Y6&&a.info.Kk()?(S.C_.J().rd()&&S.iY("eosl",{ls:a.info.GC()}),a.isLocked=!0):(W.I$(a),TJj(S.C,a.info));J&&(W=a.info.yD.dM)&&S.C_.XB(new I5(W.key,W.type));return!0}; CtP=function(S,W,m){var a;if(a=S.policy.Cl&&S.K_&&!S.K_.S&&!S.C_.P3())W=W.info.yD.info,a=W.v1()&&eh(W)&&W.video&&W.video.width<3840&&W.video.width>W.video.height;if(a&&(S.K_.S=!0,YK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return m=PIK(m),S.policy.B&&S.iY("sp4k",{s:!!m}),m}; DVP=function(S,W,m,a){var J="fmt.unplayable",B=1;m===5||m===3?(J="fmt.unparseable",S.policy.C?!a.yD.info.video||pf(S.X.C).size>0||qX(S.X.C,a.yD,!1):!a.yD.info.video||pf(S.C.X).size>0||jS(S.C,a.yD)):m===2&&(S.vv<15?(S.vv++,J="html5.invalidstate",B=0):J="fmt.unplayable");a=E6(a);var E;a.mrs=(E=S.K_)==null?void 0:qo(E);a.origin=W;a.reason=m;a.trg="appenderr";S.handleError(J,a,B)}; SV6=function(S,W,m,a,J){var B=S.ZQ;var E=S.policy.C,y=!1,Y=-1,G;for(G in B.C){var K=NZ(B.C[G].info.mimeType)||B.C[G].info.jr();if(a===K)if(K=B.C[G].index,K.IX(W.VD)){y=K;var T=W,p=y.uH(T.VD);p&&p.startTime!==T.startTime?(y.segments=[],y.SE(T),y=!0):y=!1;y?Y=W.VD:!W.pending&&E&&(T=K.getDuration(W.VD),T!==W.duration&&(B.publish("clienttemp","mfldurUpdate",{itag:B.C[G].info.itag,seg:W.VD,od:T,nd:W.duration},!1),K.SE(W),y=!0))}else K.SE(W),y=!0}Y>=0&&(E={},B.publish("clienttemp","resetMflIndex",(E[a? "v":"a"]=Y,E),!1));B=y;LQX(S.nC,W,a,B);S.policy.g2||S.B.Dh(W,m,a,J);W.VD===S.ZQ.VU&&B&&bA(S.ZQ)&&W.startTime>bA(S.ZQ)&&(S.ZQ.Wm=W.startTime+(isNaN(S.timestampOffset)?0:S.timestampOffset),S.nC.isSeeking()&&S.nC.targetTime 5)return S.Pn=0,S.C_.KR({initSegStuck:1,as:a.info.GC()}),!0}else S.Pn=0,S.yT=a;S.policy.f2&&(m.abort(),(E=W.S)!=null&&(MX(E,4),E.flush()));J=cc_(S,m,B,Y,J);(W=W.S)!=null&&(W.flush(),W.N=Y,MX(W,3,J));if(J!==0)return S.policy.Zg&&Fh(S.C_.getVideoData())?(S.C_.tW()||DVP(S,"sepInit",J,a.info),SaQ(S.C_,"sie")):DVP(S,"sepInit",J,a.info),!0;a.info.jr()?(Y=S.timing,Y.s9||(Y.s9=(0,g.X1)(),g.eJ("vis_a",Y.s9,Y.C))):(Y=S.timing,Y.Z||(Y.Z=(0,g.X1)(),g.eJ("ais_a",Y.Z,Y.C)));(a=a.info.yD.dM)&&S.C_.XB(new I5(a.key, a.type));return m.Cy()}; cc_=function(S,W,m,a,J){try{var B,E=W===((B=S.K_)==null?void 0:B.C)?S.audioTrack:S.videoTrack;if(S.policy.Y6&&(a==null?0:a.Kk())){if((a==null?void 0:a.bY)>1)return 6;E.Pn=new g.rj(function(){var y=K_(E);S.TN()||y==null||!y.isLocked?S.C_.J().rd()&&S.iY("eosl",{delayA:y==null?void 0:y.info.GC()}):Wv7(E)?(S.C_.J().rd()&&S.iY("eosl",{dunlock:y==null?void 0:y.info.GC()}),mnl(S,E===S.audioTrack)):(S.iY("nue",{ls:y.info.GC()}),y.info.bY+=1,S.K_&&S.un())},1E4,S); S.C_.J().rd()&&S.iY("eosl",{delayS:a.GC()});E.Pn.start()}S.policy.ya&&(a==null?void 0:a.yD)instanceof Tb&&a.Kk()&&S.iY("poseos",{itag:a.yD.info.itag,seg:a.VD,lseg:a.yD.index.lP(),es:a.yD.index.B});W.appendBuffer(m,a,J)}catch(y){if(y instanceof DOMException){if(y.code===11)return 2;if(y.code===12)return 5;if(y.code===22||y.message.indexOf("Not enough storage")===0)return W=Object.assign({name:"QuotaExceededError",buffered:r1(W.Ni()).replace(/,/g,"_"),vheap:mk(S.videoTrack),aheap:mk(S.audioTrack),message:g.kr(y.message, 3),track:S.K_?W===S.K_.N?"v":"a":"u"},W1G()),S.handleError("player.exception",W),1;g.lR(y)}return 4}return S.K_.U2()?3:0}; GG=function(S,W,m){tdP(S,m.Jw||"unknown");S.C_.seekTo(W,m)}; Ez=function(S,W){if(S.zN&&!S.nA)return 3;if(S.isSuspended)return 1;var m;if((m=S.K_)==null?0:m.K_&&m.K_.streaming===!1)return 4;m=(W.yD.info.audio?S.policy.vv:S.policy.zN)/(W.o2*S.policy.DI);if(S.policy.FJ>0&&S.K_&&G8(S.K_)&&(W=W.yD.info.video?S.K_.N:S.K_.C)&&!W.Cy()){W=W.Ni();var a=Cx(W,S.getCurrentTime());a>=0&&(W=S.getCurrentTime()-W.start(a),m+=Math.max(0,Math.min(W-S.policy.FJ,S.policy.Fb)))}S.policy.s9>0&&(m=Math.min(m,S.policy.s9));return m}; aW7=function(S,W){return(Ez(S,W)+S.policy.yp)*W.o2}; BkP=function(S){S.d2&&!S.isSuspended&&Qm(S.schedule)&&(J5j(S,S.d2),S.d2="")}; J5j=function(S,W){Nn(W,"cms",function(m){S.policy.B&&S.iY("pathprobe",m)},function(m){S.C_.handleError(m)})}; EIP=function(S,W){S.tv=W;S.B&&(S.B.tv=W);W=S.tv;var m=S.videoTrack.yD.info.v1();W.eg=m;W.TV({swebm:m});S.V.tv=S.tv;S.policy.N&&(S.N.tv=S.tv,kEG(S))}; y56=function(S,W){if(S.K_&&S.K_.N){if(S.policy.gP){var m=pY_(S.audioTrack);if(m&&m.vD()){var a=S.C_;if(a.Ty&&(a.Ty.C=m,m=a.zV,m.qoe)){m=m.qoe;a=a.Ty;var J=g.eR(m.provider);IT6(m,J,a)}}}S.policy.fZ&&(m=pY_(S.videoTrack))&&m.jr()&&(a=S.C_,a.x4&&(a.x4.C=m,m=a.zV,m.qoe&&xVG(m.qoe,a.x4)));W-=isNaN(S.timestampOffset)?0:S.timestampOffset;S.getCurrentTime()!==W&&S.resume();S.nC.isSeeking()&&S.K_&&!S.K_.U2()&&(a=S.getCurrentTime()<=W&&W=W&&PtD(S,a.startTime,!1)}); return m&&m.startTimeS.getCurrentTime())return m.start/1E3;return Infinity}; LKO=function(S){if(S.C_.getVideoData().isLivePlayback)return!1;var W=S.C_.fn();if(!W)return!1;W=W.getDuration();if(S.K_&&S.K_.C&&S.K_.N){var m=S.getCurrentTime(),a=S.K_.C.Ni();S=S.K_.N.Ni();a=a?Dy(a,m):m;m=S?Dy(S,m):m;m=Math.min(a,m);W=isNaN(m)?!1:m>=W-.01}else W=!1;return W}; Mj=function(S){return S.kU0){var a=m.C.shift();Fvc(m,a.info)}m.C.length>0&&(a=m.C[0].time-(0,g.X1)(),m.N.start(Math.max(0,a)))}},0); g.Z(this,this.N);W.subscribe("widevine_set_need_key_info",this.j,this)}; Fvc=function(S,W){a:{var m=W.cryptoPeriodIndex;if(isNaN(m)&&S.B.size>0)m=!0;else{for(var a=g.R(S.B.values()),J=a.next();!J.done;J=a.next())if(J.value.cryptoPeriodIndex===m){m=!0;break a}m=!1}}S.publish("log_qoe",{wvagt:"reqnews",canskip:m});m||S.publish("rotated_need_key_info_ready",W)}; Vij=function(){var S={};var W=S.url;var m=S.interval;S=S.retries;this.url=W;this.interval=m;this.retries=S}; nIO=function(S,W){this.statusCode=S;this.message=W;this.B=this.heartbeatParams=this.errorMessage=null;this.N=[];this.C={};this.nextFairplayKeyId=null}; sQQ=function(S){switch(S){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; u4j=function(S,W,m,a){m=m===void 0?"":m;a=a===void 0?!1:a;g.A.call(this);this.message=S;this.requestNumber=W;this.timer=m;this.N=a;this.onError=this.onSuccess=null;this.C=new g.tV(5E3,2E4,.2)}; gIX=function(S,W,m){S.onSuccess=W;S.onError=m}; jQj=function(S,W,m,a){var J={timeout:3E4,onSuccess:function(B){if(!S.TN()){UY("drm_net_r",void 0,S.timer);var E=S.N;E=E===void 0?!1:E;var y=B.status==="LICENSE_STATUS_OK"?0:9999,Y=null;if(B.license)try{Y=$r(B.license)}catch(O){g.lR(O)}if(y!==0||Y){Y=new nIO(y,Y);y!==0&&B.reason&&(Y.errorMessage=B.reason);if(B.authorizedFormats){y={};for(var G=[],K={},T=g.R(B.authorizedFormats),p=T.next();!p.done;p=T.next())if(p=p.value,p.trackType&&p.keyId){E&&Y.N.push({trackType:sQQ(p.trackType),isHdr:!!p.isHdr}); var q=Oic[p.trackType];if(q){q==="HD"&&B.isHd720&&(q="HD720");p.isHdr&&(q+="HDR");y[q]||(G.push(q),y[q]=!0);var F=null;try{F=$r(p.keyId)}catch(O){g.lR(O)}F&&(K[g.fh(F,4)]=q)}}Y.B=G;Y.C=K}B.nextFairplayKeyId&&(Y.nextFairplayKeyId=B.nextFairplayKeyId);B.sabrLicenseConstraint&&(Y.sabrLicenseConstraint=$r(B.sabrLicenseConstraint));B=Y}else B=null;if(B)S.onSuccess(B,S.requestNumber);else S.onError(S,"drm.net","t.p;p.i")}}, onError:function(B){if(!S.TN())if(B&&B.error)B=B.error,S.onError(S,"drm.net.badstatus","t.r;p.i;c."+B.code+";s."+B.status,B.code);else S.onError(S,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){S.onError(S,"drm.net","rt.req."+S.requestNumber)}}; a&&(J.Ek="Bearer "+a);g.rd(m,"player/get_drm_license",W,J)}; QQG=function(S,W,m,a){g.au.call(this);this.videoData=S;this.Y=W;this.S=m;this.sessionId=a;this.X={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.vn=this.q2=!1;this.B=null;this.Xn=[];this.j=[];this.authorizedFormats=[];this.bY=[];this.Z=!1;this.C={};this.status="";this.V=NaN;this.N=S.X;this.cryptoPeriodIndex=m.cryptoPeriodIndex;S={};Object.assign(S,this.Y.C);S.cpn=this.videoData.clientPlaybackNonce;this.videoData.vn&&(S.vvt=this.videoData.vn,this.videoData.mdxEnvironment&&(S.mdx_environment= this.videoData.mdxEnvironment));this.Y.Xn&&(S.authuser=this.Y.Xn);this.Y.pageId&&(S.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(S.cpi=this.cryptoPeriodIndex.toString());var J=(J=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.mW()))?J[1]:"";J==="ATV"&&(S.cdt=J);this.X=S;this.X.session_id=a;this.N2=!0;this.N.flavor==="widevine"&&(this.X.hdr="1");this.N.flavor==="playready"&&(W=Number(OZ(W.experiments,"playready_first_play_expiration")),!isNaN(W)&&W>=0&&(this.X.mfpe=""+W),this.N2=!1);W="";g.K9(this.N)? GW(this.N)?(a=m.N)&&(W="https://www.youtube.com/api/drm/fps?ek="+rkP(a)):(W=m.initData.subarray(4),W=new Uint16Array(W.buffer,W.byteOffset,W.byteLength/2),W=String.fromCharCode.apply(null,W).replace("skd://","https://")):W=this.N.N;this.baseUrl=W;this.fairplayKeyId=Iv(this.baseUrl,"ek")||"";if(W=Iv(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(W);this.Xn=m.v1?[g.fh(m.initData,4)]:m.B;wI(this,{sessioninit:m.cryptoPeriodIndex});this.status="in"}; lW6=function(S,W){wI(S,{createkeysession:1});S.status="gr";UY("drm_gk_s",void 0,S.videoData.bY);S.url=XsP(S);try{S.B=W.createSession(S.S,function(m){wI(S,{m:m})})}catch(m){W="t.g"; m instanceof DOMException&&(W+=";c."+m.code);S.publish("licenseerror","drm.unavailable",1,W,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}S.B&&(vIj(S.B,function(m,a){HiP(S,m,a)},function(m,a,J){if(!S.TN()){a=void 0; var B=1;g.K9(S.N)&&g.NT(S.Y)&&S.Y.T("html5_enable_safari_fairplay")&&J===1212433232&&(a="ERROR_HDCP",B=S.Y.T("html5_safari_fairplay_ignore_hdcp")?0:B);S.error("drm.keyerror",B,m,a)}},function(){S.TN()||(wI(S,{onkyadd:1}),S.vn||(S.publish("sessionready"),S.vn=!0))},function(m){S.uh(m)}),g.Z(S,S.B))}; XsP=function(S){var W=S.baseUrl;BT6(W)||S.error("drm.net",2,"t.x");if(!Iv(W,"fexp")){var m=["23898307","23914062","23916106","23883098"].filter(function(J){return S.Y.experiments.experiments[J]}); m.length>0&&(S.X.fexp=m.join())}m=g.R(Object.keys(S.X));for(var a=m.next();!a.done;a=m.next())a=a.value,W=prO(W,a,S.X[a]);return W}; HiP=function(S,W,m){if(!S.TN())if(W){wI(S,{onkmtyp:m});S.status="km";switch(m){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":MiP(S,W);return;default:S.publish("ctmp","message_type",{t:m,l:W.byteLength})}S.q2||(UY("drm_gk_f",void 0,S.videoData.bY),S.q2=!0,S.publish("newsession",S));if(zW(S.N)&&(W=Unl(W),!W))return;W=new u4j(W,++S.requestNumber,S.videoData.bY,S.Y.T("html5_enable_vp9_fairplay"));gIX(W,function(a){LvQ(S,a)},function(a,J,B){if(!S.TN()){var E= 0; a.C.N>=3&&(E=1,J="drm.net.retryexhausted");wI(S,{onlcsrqerr:J,info:B});S.error(J,E,B);S.shouldRetry(J3(E),a)&&RVD(S,a)}}); g.Z(S,W);eVO(S,W)}else S.error("drm.unavailable",1,"km.empty")}; MiP=function(S,W){wI(S,{sdpvrq:1});S.V=Date.now();if(S.N.flavor!=="widevine")S.error("drm.provision",1,"e.flavor;f."+S.N.flavor+";l."+W.byteLength);else{var m={cpn:S.videoData.clientPlaybackNonce};Object.assign(m,S.Y.C);m=g.ex("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",m);W={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,W)}), responseType:"arraybuffer"};g.eo(m,W,3,500).then(z4(function(a){a=a.xhr;if(!S.TN()){a=new Uint8Array(a.response);var J=String.fromCharCode.apply(null,a);try{var B=JSON.parse(J)}catch(E){}B&&B.signedResponse?(S.publish("ctmp","drminfo",{provisioning:1}),B=(Date.now()-S.V)/1E3,S.V=NaN,S.publish("ctmp","provs",{et:B.toFixed(3)}),S.B&&S.B.update(a)):(B=B&&B.error&&B.error.message,a="e.parse",B&&(a+=";m."+B),S.error("drm.provision",1,a))}}),z4(function(a){S.TN()||S.error("drm.provision",1,"e."+a.errorCode+ ";c."+(a.xhr&&a.xhr.status))}))}}; Sg=function(S){var W;if(W=S.N2&&S.B!=null)S=S.B,W=!(!S.C||!S.C.keyStatuses);return W}; eVO=function(S,W){S.status="km";UY("drm_net_s",void 0,S.videoData.bY);var m=new g.or(S.Y.Uo),a={context:g.Km(m.config_||g.Go())};a.drmSystem=xnP[S.N.flavor];a.videoId=S.videoData.videoId;a.cpn=S.videoData.clientPlaybackNonce;a.sessionId=S.sessionId;a.licenseRequest=g.fh(W.message);a.drmParams=S.videoData.drmParams;isNaN(S.cryptoPeriodIndex)||(a.isKeyRotated=!0,a.cryptoPeriodIndex=S.cryptoPeriodIndex);var J,B,E=!!((J=S.videoData.N)==null?0:(B=J.video)==null?0:B.isHdr());a.drmVideoFeature=E?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";S.Y.experiments.ZH().C.QD(iic)&&(a.context=g.KB(S.videoData));if(a.context&&a.context.client){if(J=S.Y.C)a.context.client.deviceMake=J.cbrand,a.context.client.deviceModel=J.cmodel,a.context.client.browserName=J.cbr,a.context.client.browserVersion=J.cbrver,a.context.client.osName=J.cos,a.context.client.osVersion=J.cosver;S.Y.experiments.ZH().C.QD(iic)||(a.context.user=a.context.user||{},S.videoData.vn&&(a.context.user.credentialTransferTokens=[{token:S.videoData.vn,scope:"VIDEO"}]), S.videoData.d2&&(a.context.user.kidsParent={oauthToken:S.videoData.d2}));a.context.request=a.context.request||{};a.context.request.mdxEnvironment=S.videoData.mdxEnvironment||a.context.request.mdxEnvironment;g.K9(S.N)&&(a.fairplayKeyId=g.fh(CHl(S.fairplayKeyId)));g.Fm(S.Y,g.cB(S.videoData)).then(function(y){jQj(W,a,m,y);S.status="rs"})}else S.error("drm.net",2,"t.r;ic.0")}; LvQ=function(S,W){if(!S.TN())if(wI(S,{onlcsrsp:1}),S.status="rr",W.statusCode!==0)S.error("drm.auth",1,"t.f;c."+W.statusCode,W.errorMessage||void 0);else{UY("drm_kr_s",void 0,S.videoData.bY);if(W.heartbeatParams&&W.heartbeatParams.url&&S.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var m=S.N.N.match(/(.*)youtube.com/g);m&&(W.heartbeatParams.url=m[0]+W.heartbeatParams.url)}W.heartbeatParams&&S.publish("newlicense",W.heartbeatParams);W.B&&(S.j=W.B,S.videoData.Yk||S.publish("newlicense", new Vij),S.videoData.Yk=!0,S.Z=ap(S.j,function(a){return a.includes("HDR")})); W.N&&(S.bY=W.N);W.C&&(S.Y.T("html5_enable_vp9_fairplay")&&GW(S.N)?(m=g.fh(CHl(S.fairplayKeyId),4),S.C[m]={type:W.C[m],status:"unknown"}):S.C=OC(W.C,function(a){return{type:a,status:"unknown"}})); YL(S.N)&&(W.message=lLl(g.fh(W.message)));S.B&&(wI(S,{updtks:1}),S.status="ku",S.B.update(W.message).then(function(){UY("drm_kr_f",void 0,S.videoData.bY);Sg(S)||(wI(S,{ksApiUnsup:1}),S.publish("keystatuseschange",S))},function(a){a="msuf.req."+S.requestNumber+";msg."+g.kr(a.message,3); S.error("drm.keyerror",1,a)})); g.K9(S.N)&&S.publish("fairplay_next_need_key_info",S.baseUrl,W.nextFairplayKeyId);S.Y.T("html5_enable_vp9_fairplay")&&GW(S.N)&&S.publish("qualitychange",dnD(S.j));W.sabrLicenseConstraint&&S.publish("sabrlicenseconstraint",W.sabrLicenseConstraint)}}; RVD=function(S,W){var m=W.C.getValue();m=new g.rj(function(){eVO(S,W)},m); g.Z(S,m);m.start();g.AV(W.C);wI(S,{rtyrq:1})}; IW6=function(S,W){for(var m=[],a=g.R(Object.keys(S.C)),J=a.next();!J.done;J=a.next())J=J.value,m.push(J+"_"+S.C[J].type+"_"+S.C[J].status);return m.join(W)}; PGc=function(S){var W={};W[S.status]=Sg(S)?IW6(S,"."):S.j.join(".");return W}; fWQ=function(S,W,m){var a={};a.isHdr=W.includes("HDR");switch(W.replace("HDR","").replace("720","")){case "AUDIO":a.trackType=1;break;case "SD":a.trackType=2;break;case "HD":a.trackType=3;break;case "UHD1":a.trackType=4;break;case "UHD2":a.trackType=5;break;default:a.trackType=0}!a.trackType||m[W]||Sg(S)&&!WA(S,W)||(S.authorizedFormats.push(a),m[W]=!0)}; WA=function(S,W){for(var m in S.C)if(S.C[m].status==="usable"&&S.C[m].type===W)return!0;return!1}; kwP=function(S,W){for(var m in S.C)if(S.C[m].type===W)return S.C[m].status}; wI=function(S,W){var m=m===void 0?!1:m;m6(W);(m||S.Y.rd())&&S.publish("ctmp","drmlog",W)}; $nj=function(S){var W=S[0];S[0]=S[3];S[3]=W;W=S[1];S[1]=S[2];S[2]=W;W=S[4];S[4]=S[5];S[5]=W;W=S[6];S[6]=S[7];S[7]=W}; dnD=function(S){return g.oZ(S,"UHD2")||g.oZ(S,"UHD2HDR")?"highres":g.oZ(S,"UHD1")||g.oZ(S,"UHD1HDR")?"hd2160":g.oZ(S,"HD")||g.oZ(S,"HDHDR")?"hd1080":g.oZ(S,"HD720")||g.oZ(S,"HD720HDR")?"hd720":"large"}; Unl=function(S){for(var W="",m=0;m'.charCodeAt(a);S=S.B.createSession("video/mp4",W,m);return new mH(null,null,null,null,S)}; r5c=function(S,W){var m=S.V[W.sessionId];!m&&S.j&&(m=S.j,S.j=null,m.sessionId=W.sessionId,S.V[W.sessionId]=m);return m}; NkD=function(S,W){var m=S.subarray(4);m=new Uint16Array(m.buffer,m.byteOffset,m.byteLength/2);m=String.fromCharCode.apply(null,m).match(/ek=([0-9a-f]+)/)[1];for(var a="",J=0;J19.2999?(S=m.LM,m=m.gz, m>=S&&(m=S*.75),W=(S-m)*.5,m=new cE(W,S,S-W-m,this)):m=null;break a;case "widevine":m=new Dk(W,this,S);break a;default:m=null}if(this.X=m)g.Z(this,this.X),this.X.subscribe("rotated_need_key_info_ready",this.Wb,this),this.X.subscribe("log_qoe",this.XK,this);qT(this.Y.experiments);this.XK({cks:this.C.getInfo()})}; c5_=function(S){var W=Zic(S.j,S.mediaElement);W?W.then(z4(function(){wsG(S)}),z4(function(m){if(!S.TN()){g.lR(m); var a="t.a";m instanceof DOMException&&(a+=";n."+m.name+";m."+m.message);S.publish("licenseerror","drm.unavailable",1,a,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(S.XK({mdkrdy:1}),S.bY=!0); S.N2&&(W=Zic(S.N2,S.mediaElement))}; WZQ=function(S,W,m){S.O9=!0;m=new I5(W,m);S.Y.T("html5_eme_loader_sync")&&(S.V.get(W)||S.V.set(W,m));SzQ(S,m)}; SzQ=function(S,W){if(!S.TN()){S.XK({onInitData:1});if(S.Y.T("html5_eme_loader_sync")&&S.videoData.B&&S.videoData.B.C){var m=S.Z.get(W.initData);W=S.V.get(W.initData);if(!m||!W)return;W=m;m=W.initData;S.V.remove(m);S.Z.remove(m)}S.XK({initd:W.initData.length,ct:W.contentType});if(S.C.flavor==="widevine")if(S.Pn&&!S.videoData.isLivePlayback)BA(S);else{if(!(S.Y.T("vp9_drm_live")&&S.videoData.isLivePlayback&&W.v1)){S.Pn=!0;m=W.cryptoPeriodIndex;var a=W.C;elP(W);W.v1||(a&&W.C!==a?S.publish("ctmp","cpsmm", {emsg:a,pssh:W.C}):m&&W.cryptoPeriodIndex!==m&&S.publish("ctmp","cpimm",{emsg:m,pssh:W.cryptoPeriodIndex}));S.publish("widevine_set_need_key_info",W)}}else S.Wb(W)}}; wsG=function(S){if(!S.TN())if(S.Y.T("html5_drm_set_server_cert")||GW(S.C)){var W=S.j.setServerCertificate();W?W.then(z4(function(m){S.Y.rd()&&S.publish("ctmp","ssc",{success:m})}),z4(function(m){S.publish("ctmp","ssce",{n:m.name, m:m.message})})).then(z4(function(){mMG(S)})):mMG(S)}else mMG(S)}; mMG=function(S){S.TN()||(S.bY=!0,S.XK({onmdkrdy:1}),BA(S))}; g.H_=function(S,W){return QP[z[7]](this,6,S,W)}; aiQ=function(S){return S.C.flavor==="widevine"&&S.videoData.T("html5_drm_cpi_license_key")}; BA=function(S){if(S.O9&&S.bY&&!S.Xn){for(;S.B.length;){var W=S.B[0],m=aiQ(S)?xT7(W):g.fh(W.initData);if(GW(S.C)&&!W.N)S.B.shift();else{if(S.N.get(m))if(S.C.flavor!=="fairplay"||GW(S.C)){S.B.shift();continue}else S.N.delete(m);elP(W);break}}S.B.length&&S.createSession(S.B[0])}}; JPQ=function(S){var W,m;g.k(function(a){if(a.C==1){var J;if(J=g.ok()){var B;J=!((B=S.j.N)==null||!B.getMetrics)}return J?g.P(a,S.j.getMetrics(),2):a.return()}W=a.N;if(!W)return a.return();GM(W)||(W=g.Os(W));m=/^[A-Za-z0-9_-]+={0,3}$/;m.test(W)||(W=g.kr(W,void 0,!0));S.publish("ctmp","drm",{metrics:W});g.B9(a)})}; EU=function(){var S=qic();return!(!S||S==="visible")}; E36=function(S){var W=BPD();W&&document.addEventListener(W,S,!1)}; zG_=function(S){var W=BPD();W&&document.removeEventListener(W,S,!1)}; BPD=function(){if(document.visibilityState)var S="visibilitychange";else{if(!document[n5+"VisibilityState"])return"";S=n5+"visibilitychange"}return S}; YzP=function(S){yPP=S}; KZP=function(S){GGc=S}; TPO=function(S){g.A.call(this);var W=this;this.C_=S;this.W9=0;this.V=this.N=this.X=!1;this.j=0;this.w2=this.C_.J();this.videoData=this.C_.getVideoData();this.B=g.Db(this.w2.experiments,"html5_delayed_retry_count");this.C=new g.rj(function(){W.C_.gp()},g.Db(this.w2.experiments,"html5_delayed_retry_delay_ms")); g.Z(this,this.C)}; n3X=function(S,W,m){var a=S.videoData.N,J=S.videoData.j,B=S.w2.T("html5_disable_codec_fallback_for_drm")&&S.videoData.PD();Fh(S.C_.getVideoData())&&S.w2.T("html5_gapless_fallback_on_qoe_restart")&&SaQ(S.C_,"pe");if((W==="progressive.net.retryexhausted"||W==="fmt.unplayable"||W==="fmt.decode")&&!S.C_.i6.X&&a&&a.itag==="22")return S.C_.i6.X=!0,S.vG("qoe.restart",{reason:"fmt.unplayable.22"}),S.C_.dS(),!0;var E=!1;if(S.videoData.isExternallyHostedPodcast){if(E=S.videoData.zG)m.mimeType=E.type,S.iY("3pp", {url:E.url});m.ns="3pp";S.C_.QP(W,1,"VIDEO_UNAVAILABLE",m6((new g.a3(W,m,1)).details));return!0}var y=S.W9+3E4<(0,g.X1)()||S.C.isActive();if(S.w2.T("html5_empty_src")&&S.videoData.isAd()&&W==="fmt.unplayable"&&/Empty src/.test(""+m.msg))return m.origin="emptysrc",S.vG("auth",m),!0;y||qzl(S.C_.iO())||(m.nonfg="paused",y=!0,S.C_.pauseVideo());(W==="fmt.decode"||W==="fmt.unplayable")&&(J==null?0:I3(J))&&(se6(S.w2.X,J.p_),m.acfallexp=J.p_,E=y=!0);!y&&S.B>0&&(S.C.start(),y=!0,m.delayed="1",--S.B);J=S.C_.loader; y||!((a==null?0:d1(a))||(a==null?0:eh(a)))||B||(se6(S.w2.X,a.p_),E=y=!0,m.cfallexp=a.p_);if(!y)return pCj(S,m);B=!1;S.X?S.W9=(0,g.X1)():B=S.X=!0;y=S.videoData;if(y.Pn){y=y.Pn.GX();var Y=Date.now()/1E3+1800;y=y3E5&&S.g2>=3}else S.iY("nbs",{started:"0",lrt:S.schedule.vn.toFixed(2),count:S.g2}),S=!S.schedule.vn;return S}return S.videoData.S?S.videoData.zN<25:!S.videoData.zN}; Vv6=function(S){if(!S.N){S.N=!0;var W=S.C_.getPlayerState();W=W.isPaused()||W.isSuspended();S.C_.di();W&&!Sd(S.videoData)||S.C_.publish("signatureexpired")}}; sJl=function(S,W){if((S=S.C_.fn())&&(W.errorCode==="fmt.unplayable"||W.errorCode==="html5.invalidstate")){var m=S.mI();W.details.merr=m?m.toString():"0";W.details.mmsg=S.TY()}}; uEP=function(S){return S.errorCode==="net.badstatus"&&(S.severity===1||!!S.details.fmt_unav)}; g3O=function(S,W){return S.w2.T("html5_use_network_error_code_enums")&&W.details.rc===403||W.details.rc==="403"?(S=W.errorCode,S==="net.badstatus"||S==="manifest.net.retryexhausted"):!1}; jJ_=function(S,W){if(!g3O(S,W)&&!S.N)return!1;W.details.sts="20438";if(FZ6(S))return J3(W.severity)&&(W=Object.assign({e:W.errorCode},W.details),W=new g.a3("qoe.restart",W)),S.vG(W.errorCode,W.details),Vv6(S),!0;(0,g.X1)()-S.w2.Mi>6048E5&&O_7(S,"signature");return!1}; O_7=function(S,W){try{W={detail:"pr."+W},(JK(S.w2)||sZ(S.w2)==="TVHTML5_FOR_KIDS")&&S.w2.T("html5_reload_by_kabuki_app")?S.C_.QP("qoe.restart",1,void 0,m6(W),"7"):(S.vG("qoe.restart",W),window.location.reload())}catch(m){}}; QJP=function(S,W){var m=S.w2.X;m.V=!1;m.C=!0;S.vG("qoe.restart",{e:W===void 0?"fmt.noneavailable":W,detail:"hdr"});S.C_.gp(!0)}; XCD=function(S,W,m,a,J,B){this.videoData=S;this.C=W;this.reason=m;this.N=a;this.token=J;this.videoId=B}; zX=function(S,W,m,a){this.Y=S;this.KD=W;this.C_=m;this.Av=a;this.S=this.V=this.C=this.j=this.Z=this.N=0;this.X=!1;this.bY=g.Db(this.Y.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.B=new Map}; v3G=function(S,W,m){!S.Y.T("html5_tv_ignore_capable_constraint")&&g.pt(S.Y)&&(m=m.compose(S.z3(W)));return m}; H_O=function(S){if(S.C_.iO().isInline())return mK;S=fw[X6()];return g.dz("auto",S,!1,"s")}; MvD=function(S,W){var m,a=li_(S,(m=W.C)==null?void 0:m.videoInfos);m=S.C_.getPlaybackRate();return m>1&&a?(S=pbQ(S.Y.X,W.C.videoInfos,m),new id(0,S,!0,"o")):new id(0,0,!1,"o")}; li_=function(S,W){return W&&g.pt(S.Y)?W.some(function(m){return m.video.fps>32}):!1}; UMP=function(S,W){if(S.T("html5_disable_ustreamer_constraint_for_sabr")&&eX(W.videoData))return mK;var m=S.C_.fM();S.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&m&&m.gL>0&&Ph(W.videoData.SI)&&(S=m.gL,W.videoData.SI=new id(0,S,!1,"u"));return W.videoData.SI}; LZj=function(S,W){var m;a:if((m=W.C)&&m.videoInfos.length){for(var a=g.R(m.videoInfos),J=a.next();!J.done;J=a.next()){J=J.value;var B=void 0;if((B=J.N)==null?0:B.smooth){m=J.video.qualityOrdinal;break a}}m=m.videoInfos[0].video.qualityOrdinal}else m=0;(g.Ni("armv7")||g.Ni("aarch64")||g.Ni("android"))&&!g.pt(S.Y)&&eh(W.C.videoInfos[0])&&(m=Math.min(m,g.Ht.large));a=g.Db(S.Y.experiments,"html5_chipset_soft_cap");a>0&&(m=Math.min(m,a));a=g.Db(S.Y.experiments,"html5_sabr_non_streaming_xhr_soft_cap"); !m1&&a>0&&(m=Math.min(m,a));if(a=g.Db(S.Y.experiments,"html5_max_vertical_resolution")){J=4320;for(B=0;Ba&&(J=Math.min(J,E.video.qualityOrdinal))}if(J<4320){for(E=B=0;E32){J=!0;break a}}J=!1}J&&(m=Math.min(m,a));(a=g.Db(S.Y.experiments,"html5_live_quality_cap"))&&W.videoData.isLivePlayback&&(m=Math.min(m,a));m=RGO(S,W,m);S=g.Db(S.Y.experiments,"html5_byterate_soft_cap");return new id(0,m===4320?0:m,!1,"d",S)}; xMO=function(S){var W,m,a,J;return g.k(function(B){switch(B.C){case 1:return S.C.C&&typeof((W=navigator.mediaCapabilities)==null?void 0:W.decodingInfo)==="function"?g.P(B,Promise.resolve(),2):B.return(Promise.resolve());case 2:m=g.R(S.C.videoInfos),a=m.next();case 3:if(a.done){B.cn(0);break}J=a.value;return g.P(B,qmP(J),4);case 4:a=m.next(),B.cn(3)}})}; Iij=function(S,W,m,a){if(!W||!m||!W.videoData.N)return!1;var J=g.Db(S.Y.experiments,"html5_df_downgrade_thresh"),B=S.T("html5_log_media_perf_info");if(!((0,g.X1)()-S.j<5E3?0:B||J>0))return!1;var E=((0,g.X1)()-S.j)/1E3;S.j=(0,g.X1)();m=m.getVideoPlaybackQuality();if(!m)return!1;var y=m.droppedVideoFrames-S.V,Y=m.totalVideoFrames-S.S;S.V=m.droppedVideoFrames;S.S=m.totalVideoFrames;var G=m.displayCompositedVideoFrames===0?0:m.displayCompositedVideoFrames||-1;B&&S.Y.rd()&&S.C_.iY("ddf",{dr:m.droppedVideoFrames, de:m.totalVideoFrames,comp:G});if(a)return S.C=0,!1;if((Y-y)/E>S.bY||!J||g.pt(S.Y))return!1;S.C=(Y>60?y/Y:0)>J?S.C+1:0;if(S.C!==3)return!1;i_j(S,W.videoData.N);S.C_.iY("dfd",Object.assign({dr:m.droppedVideoFrames,de:m.totalVideoFrames},dM6()));return!0}; i_j=function(S,W){var m=W.p_,a=W.video.fps,J=W.video.qualityOrdinal-1,B=S.B;W=""+m+(a>49?"p60":a>32?"p48":"");m=mr(m,a,B);J>0&&(m=Math.min(m,J));if(!yV.has(W)&&ld().includes(W)){var E=m;m=Hh();+m[W]>0&&(E=Math.min(+m[W],E));m[W]!==E&&(m[W]=E,g.i7("yt-player-performance-cap",m,2592E3))}else if(yV.has(W)||B==null){a:{E=E===void 0?!0:E;a=ld().slice();if(E){if(a.includes(W))break a;a.push(W)}else{if(!a.includes(W))break a;a.splice(a.indexOf(W),1)}g.i7("yt-player-performance-cap-active-set",a,2592E3)}WT.set(W, m)}else yV.add(W),B==null||B.set(W,m);S.C_.fR()}; PNO=function(S,W){if(!W.C.C)return S.X?new id(0,360,!1,"b"):mK;for(var m=!1,a=!1,J=g.R(W.C.videoInfos),B=J.next();!B.done;B=J.next())d1(B.value)?m=!0:a=!0;m=m&&a;a=0;J=g.Db(S.Y.experiments,"html5_performance_cap_floor");J=S.Y.N?240:J;W=g.R(W.C.videoInfos);for(B=W.next();!B.done;B=W.next()){var E=B.value;if(!m||!d1(E))if(B=mr(E.p_,E.video.fps,S.B),E=E.video.qualityOrdinal,Math.max(B,J)>=E){a=E;break}}return new id(0,a,!1,"b")}; fic=function(S,W){var m=S.C_.iO();return m.isInline()&&!W.rY?new id(0,480,!1,"v"):eX(W)?mK:m.isBackground()&&sA()/1E3>60&&!g.pt(S.Y)?new id(0,360,!1,"v"):mK}; kGl=function(S,W,m){if(S.Y.experiments.mU("html5_disable_client_autonav_cap_for_onesie")&&W.fetchType==="onesie"||g.pt(S.Y)&&(X6(-1)>=1080||W.osid))return mK;var a=g.Db(S.Y.experiments,"html5_autonav_quality_cap"),J=g.Db(S.Y.experiments,"html5_autonav_cap_idle_secs");return a&&W.isAutonav&&sA()/1E3>J?(m&&(a=RGO(S,m,a)),new id(0,a,!1,"e")):mK}; RGO=function(S,W,m){if(S.T("html5_optimality_defaults_chooses_next_higher")&&m)for(S=W.C.videoInfos,W=1;W=0||(S.provider.C_.getVisibilityState()===3?S.X=!0:(S.C=g.eR(S.provider),S.delay.start()))}; tvG=function(S){if(!(S.N<0)){var W=g.eR(S.provider),m=W-S.j;S.j=W;S.playerState.state===8?S.playTimeSecs+=m:S.playerState.isBuffering()&&!g.C(S.playerState,16)&&(S.rebufferTimeSecs+=m)}}; APX=function(S){var W;switch((W=S.Y.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Z_K=function(S){var W=this;this.provider=S;this.S=!1;this.N=0;this.j=-1;this.mV=NaN;this.B=0;this.segments=[];this.Z=this.V=0;this.previouslyEnded=!1;this.X=0;this.serializedStitchedClipLoggingMetadata=this.serializedPlaybackPingContextLoggingData=void 0;this.f3={a69:function(){return W.serializedPlaybackPingContextLoggingData}, y46:function(){return W.serializedStitchedClipLoggingMetadata}}; this.N2=this.provider.C_.getVolume();this.bY=this.provider.C_.isMuted()?1:0;this.C=GX(this.provider)}; KT=function(S){S.C.startTime=S.B;S.C.endTime=S.N;var W;if((W=S.serializedPlaybackPingContextLoggingData)==null?0:W.length)S.C.serializedPlaybackPingContextLoggingData=S.serializedPlaybackPingContextLoggingData;var m;if((m=S.serializedStitchedClipLoggingMetadata)==null?0:m.length)S.C.serializedStitchedClipLoggingMetadata=S.serializedStitchedClipLoggingMetadata;W=!1;S.segments.length&&g.AN(S.segments).isEmpty()?(S.segments[S.segments.length-1].previouslyEnded&&(S.C.previouslyEnded=!0),S.segments[S.segments.length- 1]=S.C,W=!0):S.segments.length&&S.C.isEmpty()||(S.segments.push(S.C),W=!0);W?S.C.endTime===0&&(S.previouslyEnded=!1):S.C.previouslyEnded&&(S.previouslyEnded=!0);S.V+=S.N-S.B;S.C=GX(S.provider);S.C.previouslyEnded=S.previouslyEnded;S.provider.Y.ZH().C.QD(NPX)&&(S.X+=JSON.stringify(S.C).length);S.previouslyEnded=!1;S.B=S.N}; o3j=function(S){b_K(S);S.Z=g.uO(function(){S.update()},100); S.mV=g.eR(S.provider);S.C=GX(S.provider)}; b_K=function(S){g.O7(S.Z);S.Z=NaN}; rPl=function(S,W,m){m-=S.mV;return W===S.N&&m>.5}; CNc=function(S,W,m,a){this.Y=W;this.lr=m;this.segments=[];this.experimentIds=[];this.hX=this.EV=this.isFinal=this.delayThresholdMet=this.IL=this.qd=this.autoplay=this.autonav=!1;this.yT="yt";this.V=[];this.Z=this.bY=null;this.sendVisitorIdHeader=this.Y6=!1;this.S=this.pageId="";this.Kn=!1;this.X=m==="watchtime";this.B=m==="playback";this.Xn=m==="atr";this.H1=m==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Xn?"/api/stats/"+m:"//"+W.fU+"/api/stats/"+m;a&&(this.EV=a.fs,a.rtn&&(this.Z=a.rtn),this.X? (this.playerState=a.state,a.rti>0&&(this.bY=a.rti)):(this.xK=a.mos,this.bJ=a.volume,a.at&&(this.adType=a.at)),a.autonav&&(this.autonav=a.autonav),a.inview!=null&&(this.Cn=a.inview),a.size&&(this.eg=a.size),a.playerwidth&&(this.mQ=a.playerwidth),a.playerheight&&(this.Ys=a.playerheight));this.o6=g.em(W.C);this.S=OZ(W.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.S==="all"||this.S==="once")this.Wv=g.em(W.IL);this.xP=W.xK;this.experimentIds=G8l(W.experiments);this.zN=W.Kn;this.yT=W.N2;this.region= W.region;this.userAge=W.userAge;this.uY=W.ZF;this.dA=sA();this.sendVisitorIdHeader=W.sendVisitorIdHeader;this.Pn=W.T("vss_pings_using_networkless")||W.T("kevlar_woffle");this.Mi=W.T("vss_final_ping_send_and_write");this.s9=W.T("vss_use_send_and_write");this.pageId=W.pageId;this.ov=W.T("vss_playback_use_send_and_write");W.livingRoomAppMode&&(this.livingRoomAppMode=W.livingRoomAppMode);g.f9(W)&&(this.O9=W.Pn);g.q5(g.oV(W))&&this.V.push(1);this.accessToken=g.cB(S);S.T_[this.lr]?this.j=S.T_[this.lr]: S.T_.playback&&(this.j=S.T_.playback);this.adFormat=S.adFormat;this.adQueryId=S.adQueryId;this.autoplay=RHG(S);this.B&&(this.qd=S.wQ&&bZ(S)==="adunit"?!0:!1);this.autonav=S.isAutonav||this.autonav;this.contentVideoId=rO(S);this.clientPlaybackNonce=S.clientPlaybackNonce;this.IL=S.uP;S.V&&(this.vn=S.V,this.vv=S.Tf);S.mdxEnvironment&&(this.mdxEnvironment=S.mdxEnvironment);this.C=S.Wv;this.tD=S.tD;S.N&&(this.CJ=S.N.itag,S.j&&S.j.itag!==this.CJ&&(this.M2=S.j.itag));S.C&&tq(S.C)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=bZ(S);this.hX=S.eg?!1:S.Cn;this.aY=S.N0;if(W=xa(S))this.CC=W;this.Od=S.vY;this.partnerId=S.partnerId;this.eventId=S.eventId;this.playlistId=S.xe||S.playlistId;this.r6=S.r6;this.j1=S.j1;this.Fy=S.Fy;this.ZB=S.ZB;this.subscribed=S.subscribed;this.videoId=S.videoId;this.videoMetadata=S.videoMetadata;this.visitorData=S.visitorData;this.osid=S.osid;this.Iu=S.Iu;this.referrer=S.referrer;this.d9=S.Ye||S.d9;this.d2=S.SY;this.hJ=S.hJ;this.userGenderAge=S.userGenderAge;this.BF=S.BF;this.embedsRct= S.embedsRct;this.embedsRctn=S.embedsRctn;g.f9(this.Y)&&S.mutedAutoplay&&(S.mutedAutoplayDurationMode===2&&S.limitedPlaybackDurationInSeconds===0&&S.endSeconds===0?this.V.push(7):this.V.push(2));S.isEmbedsShortsMode(new g.BI(this.mQ,this.Ys),!!this.playlistId)&&this.V.push(3);g.yY(S)&&this.V.push(4);this.g2=S.hG;S.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=S.compositeLiveIngestionOffsetToken);S=S.getPlayerResponse();var J,B;this.Kn=this.Y.T("html5_switch_vss_to_post")|| !!(S==null?0:(J=S.playerConfig)==null?0:(B=J.vssClientConfig)==null?0:B.vssUsePostRequest)}; cPj=function(S,W){var m=S.sendVisitorIdHeader?S.visitorData:void 0;return g.Fm(S.Y,S.accessToken).then(function(a){return Q6(S.uri,S.Y,S.pageId,m,a,W)})}; SEP=function(S,W){return function(){S.Y.T("html5_simplify_pings")?(S.C=S.Hn,S.VT=W(),S.dA=0,S.send()):cPj(S).then(function(m){var a=DM7(S);a.cmt=a.len;a.lact="0";var J=W().toFixed(3);a.rt=Number(J).toString();a=g.ex(S.uri,a);S.Y.T("vss_through_gel_double")&&wCG(a);S.Pn?(m==null&&(m={}),S.s9?NS().sendAndWrite(a,m):NS().sendThenWrite(a,m)):m?g.Mi(a,m):g.Ir(a)})}}; DM7=function(S){var W={ns:S.yT,el:S.eventLabel,cpn:S.clientPlaybackNonce,ver:2,cmt:S.N(S.C),fmt:S.CJ,fs:S.EV?"1":"0",rt:S.N(S.VT),adformat:S.adFormat,content_v:S.contentVideoId,euri:S.xP,lact:S.dA,live:S.CC,cl:(845509917).toString(),mos:S.xK,state:S.playerState,volume:S.bJ};S.subscribed&&(W.subscribed="1");Object.assign(W,S.o6);S.S==="all"?Object.assign(W,S.Wv):S.S==="once"&&S.B&&Object.assign(W,S.Wv);S.autoplay&&(W.autoplay="1");S.qd&&(W.sautoplay="1");S.IL&&(W.dni="1");!S.X&&S.O9&&(W.epm=WnP[S.O9]); S.isFinal&&(W["final"]="1");S.hX&&(W.splay="1");S.tD&&(W.delay=S.tD);S.zN&&(W.hl=S.zN);S.region&&(W.cr=S.region);S.userGenderAge&&(W.uga=S.userGenderAge);S.userAge!==void 0&&S.uY&&(W.uga=S.uY+S.userAge);S.Hn!==void 0&&(W.len=S.N(S.Hn));!S.X&&S.experimentIds.length>0&&(W.fexp=S.experimentIds.toString());S.Z!==null&&(W.rtn=S.N(S.Z));S.d9&&(W.feature=S.d9);S.j1&&(W.ctrl=S.j1);S.Fy&&(W.ytr=S.Fy);S.M2&&(W.afmt=S.M2);S.offlineDownloadUserChoice&&(W.ODUC=S.offlineDownloadUserChoice);S.N2&&(W.lio=S.N(S.N2)); S.X?(W.idpj=S.aY,W.ldpj=S.Od,S.delayThresholdMet&&(W.dtm="1"),S.bY!=null&&(W.rti=S.N(S.bY)),S.BF&&(W.ald=S.BF),S.compositeLiveIngestionOffsetToken&&(W.clio=S.compositeLiveIngestionOffsetToken)):S.adType!==void 0&&(W.at=S.adType);S.eg&&(S.B||S.X)&&(W.size=S.eg);S.B&&S.V.length&&(W.pbstyle=S.V.join(","));S.Cn!=null&&(S.B||S.X)&&(W.inview=S.N(S.Cn));S.X&&(W.volume=TX(S,g.MU(S.segments,function(a){return a.volume})),W.st=TX(S,g.MU(S.segments,function(a){return a.startTime})),W.et=TX(S,g.MU(S.segments, function(a){return a.endTime})),ap(S.segments,function(a){return a.playbackRate!==1})&&(W.rate=TX(S,g.MU(S.segments,function(a){return a.playbackRate}))),ap(S.segments,function(a){return a.C!=="-"})&&(W.als=g.MU(S.segments,function(a){return a.C}).join(",")),ap(S.segments,function(a){return a.previouslyEnded})&&(W.pe=g.MU(S.segments,function(a){return""+ +a.previouslyEnded}).join(","))); W.muted=TX(S,g.MU(S.segments,function(a){return a.muted?1:0})); ap(S.segments,function(a){return a.visibilityState!==0})&&(W.vis=TX(S,g.MU(S.segments,function(a){return a.visibilityState}))); ap(S.segments,function(a){return a.connectionType!==0})&&(W.conn=TX(S,g.MU(S.segments,function(a){return a.connectionType}))); ap(S.segments,function(a){return a.N!==0})&&(W.blo=TX(S,g.MU(S.segments,function(a){return a.N}))); ap(S.segments,function(a){return!!a.j})&&(W.blo=g.MU(S.segments,function(a){return a.j}).join(",")); ap(S.segments,function(a){return!!a.compositeLiveStatusToken})&&(W.cbs=g.MU(S.segments,function(a){return a.compositeLiveStatusToken}).join(",")); ap(S.segments,function(a){return!!a.heartbeatLoggingToken})&&(W.hb_data=g.MU(S.segments,function(a){return a.heartbeatLoggingToken}).join(",")); ap(S.segments,function(a){return a.B!=="-"})&&(W.cc=g.MU(S.segments,function(a){return a.B}).join(",")); ap(S.segments,function(a){return a.clipId!=="-"})&&(W.clipid=g.MU(S.segments,function(a){return a.clipId}).join(",")); if(ap(S.segments,function(a){return!!a.audioId})){var m="au"; S.B&&(m="au_d");W[m]=g.MU(S.segments,function(a){return a.audioId}).join(",")}K0()&&S.vn&&(W.ctt=S.vn,W.cttype=S.vv,W.mdx_environment=S.mdxEnvironment); S.H1&&(W.etype=S.q2!==void 0?S.q2:0);S.d2&&(W.uoo=S.d2);S.livingRoomAppMode&&S.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(W.clram=mXj[S.livingRoomAppMode]||S.livingRoomAppMode);S.j?aAP(S,W):(W.docid=S.videoId,W.referrer=S.referrer,W.ei=S.eventId,W.of=S.Iu,W.osid=S.osid,W.vm=S.videoMetadata,S.adQueryId&&(W.aqi=S.adQueryId),S.autonav&&(W.autonav="1"),S.playlistId&&(W.list=S.playlistId),S.ZB&&(W.ssrt="1"),S.hJ&&(W.upt=S.hJ));S.B&&(S.embedsRct&&(W.rct=S.embedsRct),S.embedsRctn&&(W.rctn= S.embedsRctn),S.compositeLiveIngestionOffsetToken&&(W.clio=S.compositeLiveIngestionOffsetToken));S.g2&&(W.host_cpn=S.g2);return W}; aAP=function(S,W){if(W&&S.j){var m=new Set(["q","feature","mos"]),a=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),J=new Set(["aqi","autonav","list","ssrt","upt"]);S.j.ns==="3pp"&&(W.ns="3pp");for(var B=g.R(Object.keys(S.j)),E=B.next();!E.done;E=B.next())E=E.value,a.has(E)||m.has(E)||J.has(E)&&!S.j[E]||(W[E]=S.j[E])}}; TX=function(S,W){return g.MU(W,S.N).join(",")}; wCG=function(S){S.indexOf("watchtime")!==-1&&g.qd("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:S}})}; JrP=function(S,W){S.attestationResponse&&cPj(S).then(function(m){m=m||{};m.method="POST";m.postParams={atr:S.attestationResponse};S.Pn?S.s9?NS().sendAndWrite(W,m):NS().sendThenWrite(W,m):g.Mi(W,m)})}; BS6=function(S){var W={vssSegmentMetadata:[]};if(ap(S.segments,function(a){return!!a.serializedPlaybackPingContextLoggingData||!!a.serializedStitchedClipLoggingMetadata})){S=g.R(S.segments); for(var m=S.next();!m.done;m=S.next())m=m.value,W.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:m.serializedPlaybackPingContextLoggingData||[],serializedStitchedClipLoggingMetadata:m.serializedStitchedClipLoggingMetadata||[]});return W}}; qQ=function(S){g.A.call(this);var W=this;this.provider=S;this.V="paused";this.X=NaN;this.S=[10,10,10,40];this.bY=this.Z=0;this.vn=this.Xn=this.q2=this.N2=this.B=!1;this.N=this.j=NaN;this.logger=new g.O6("vss");this.f3={Mqq:function(){return W.C}}; this.C=new Z_K(S)}; E6G=function(S){var W=S.provider.videoData.N0,m=S.provider.videoData.vY,a=[10+W,10,10,40+m-W,40],J,B=(J=S.provider.videoData.getPlayerResponse())==null?void 0:J.playbackTracking,E=B==null?void 0:B.videostatsScheduledFlushWalltimeSeconds;J=B==null?void 0:B.videostatsDefaultFlushIntervalSeconds;if(!(E&&E.length>0&&J))return a;W=[E[0]+W].concat(g.x(E.slice(1).map(function(y,Y){return y-E[Y]})),[J+m-W, J]);return W.some(function(y){return y<0})?(g.jB(S.logger,347111855,"Neg vss scheduled pings "+E+" "+J),a):W}; FJ=function(S,W){W=W===void 0?NaN:W;var m=g.eR(S.provider);W=isNaN(W)?m:W;W=Math.ceil(W);var a=S.S[S.Z];S.Z+11E3;!(B.length>1)&&B[0].isEmpty()||y||(E.Z=FJ(S,J));E.send();S.bY++}},(J-m)*1E3); return S.j=J}; VV=function(S){g.gu(S.X);S.X=NaN}; pT=function(S){S.C.update();S=S.C;S.segments.length&&S.N===S.B||KT(S);var W=S.segments;S.segments=[];S.X=0;return W}; nT=function(S,W){var m=yrl(S.provider);Object.assign(m,{state:S.V});W=new CNc(S.provider.videoData,S.provider.Y,W,m);W.C=S.provider.C_.cD();m=S.provider.videoData.clientPlaybackNonce;W.C=S.provider.C_.oG(m);S.provider.videoData.isLivePlayback||(W.Hn=S.provider.C_.getDuration(m));S.provider.videoData.C&&(m=S.provider.videoData.C.A1(W.C))&&(W.N2=m-W.C,sx(S.provider.videoData)&&(W.C+=S.provider.C_.DH(),W.N2-=S.provider.C_.DH()));W.VT=g.eR(S.provider);W.segments=[GX(S.provider)];return W}; zXl=function(S,W){var m=nT(S,"watchtime");YEP(S)&&(m.delayThresholdMet=!0,S.q2=!0);if(S.N>0){for(var a=g.R(W),J=a.next();!J.done;J=a.next())J=J.value,J.startTime-=S.N,J.endTime-=S.N;m.C-=S.N}else m.C=S.C.N;m.segments=W;return m}; sU=function(S,W){var m=G7O(S,!isNaN(S.j));W&&(S.j=NaN);return m}; G7O=function(S,W){var m=zXl(S,pT(S));!isNaN(S.j)&&W&&(m.bY=S.j);return m}; YEP=function(S){var W;if(W=S.provider.videoData.isLoaded()&&S.provider.videoData.tD&&S.B&&!S.q2)W=S.C,W=W.V+W.cD()-W.B>=S.provider.videoData.tD;return!!W}; TSP=function(S){S.provider.videoData.youtubeRemarketingUrl&&!S.Xn&&(Kn6(S,S.provider.videoData.youtubeRemarketingUrl),S.Xn=!0)}; qEc=function(S){S.provider.videoData.googleRemarketingUrl&&!S.vn&&(Kn6(S,S.provider.videoData.googleRemarketingUrl),S.vn=!0)}; pDP=function(S){if(!S.TN()&&S.B){S.V="paused";var W=sU(S);W.isFinal=!0;W.send();S.dispose()}}; Fn_=function(S,W){if(!S.TN())if(g.C(W.state,2)||g.C(W.state,512)){if(S.V="paused",g.qb(W,2)||g.qb(W,512))g.qb(W,2)&&(S.C.previouslyEnded=!0),S.B&&(VV(S),sU(S).send(),S.j=NaN)}else if(g.C(W.state,8)){S.V="playing";var m=S.B&&isNaN(S.X)?FJ(S):NaN;if(!isNaN(m)&&(TI(W,64)<0||TI(W,512)<0)){var a=G7O(S,!1);a.Z=m;a.send()}g.qb(W,16)&&W.state.seekSource===58&&(S.C.previouslyEnded=!0)}else S.V="paused"}; VSl=function(S,W,m){if(!S.N2){m||(m=nT(S,"atr"));m.attestationResponse=W;try{m.send()}catch(a){if(a.message!=="Unknown Error")throw a;}S.N2=!0}}; Kn6=function(S,W){var m=S.provider.Y;g.Fm(S.provider.Y,g.cB(S.provider.videoData)).then(function(a){var J=S.provider.Y.pageId,B=S.provider.Y.sendVisitorIdHeader?S.provider.videoData.visitorData:void 0,E=S.provider.Y.T("vss_pings_using_networkless")||S.provider.Y.T("kevlar_woffle"),y=S.provider.Y.T("allow_skip_networkless");a=Q6(W,m,J,B,a);X3(W,a,{token:S.provider.videoData.V,vX:S.provider.videoData.Tf,mdxEnvironment:S.provider.videoData.mdxEnvironment},m,void 0,E&&!y,!1,!0)})}; n6l=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.N=0;this.muted=!1;this.C=this.clipId="-";this.previouslyEnded=!1}; uY=function(S,W,m){this.videoData=S;this.Y=W;this.C_=m;this.C=void 0}; g.eR=function(S){return s5O(S)()}; s5O=function(S){if(!S.C){var W=g.IZ(function(a){var J=(0,g.X1)();a&&J<=631152E6&&(S.C_.iY("ytnerror",{issue:28799967,value:""+J}),J=(new Date).getTime()+2);return J},S.Y.T("html5_validate_yt_now")),m=W(); S.C=function(){return Math.round(W()-m)/1E3}; S.C_.QL()}return S.C}; yrl=function(S){var W=S.C_.jJ()||{};W.fs=S.C_.UK();W.volume=S.C_.getVolume();W.muted=S.C_.isMuted()?1:0;W.mos=W.muted;W.clipid=S.C_.n0();var m;W.playerheight=((m=S.C_.getPlayerSize())==null?void 0:m.height)||0;var a;W.playerwidth=((a=S.C_.getPlayerSize())==null?void 0:a.width)||0;S=S.videoData;m={};S.N&&(m.fmt=S.N.itag,S.j&&(S.hX?S.j.itag!==S.N.itag:S.j.itag!=S.N.itag)&&(m.afmt=S.j.itag));m.ei=S.eventId;m.list=S.playlistId;m.cpn=S.clientPlaybackNonce;S.videoId&&(m.v=S.videoId);S.Y5&&(m.infringe=1); (S.eg?0:S.Cn)&&(m.splay=1);(a=xa(S))&&(m.live=a);S.wQ&&(m.sautoplay=1);S.kt&&(m.autoplay=1);S.r6&&(m.sdetail=S.r6);S.partnerId&&(m.partnerid=S.partnerId);S.osid&&(m.osid=S.osid);S.DI&&(m.cc=g.LOO(S.DI));return Object.assign(W,m)}; v8_=function(S){var W=BC6();if(W)return uKG[W]||uKG.other;if(g.pt(S.Y)){S=navigator.userAgent;if(/[Ww]ireless[)]/.test(S))return 3;if(/[Ww]ired[)]/.test(S))return 30}return 0}; GX=function(S){var W=new n6l,m;W.B=((m=yrl(S).cc)==null?void 0:m.toString())||"-";W.playbackRate=S.C_.getPlaybackRate();m=S.C_.getVisibilityState();m!==0&&(W.visibilityState=m);S.Y.d2&&(W.N=1);W.j=S.videoData.ih;W.compositeLiveStatusToken=S.videoData.compositeLiveStatusToken;W.heartbeatLoggingToken=S.videoData.heartbeatLoggingToken;m=S.C_.getAudioTrack();m.n3&&m.n3.id&&m.n3.id!=="und"&&(W.audioId=m.n3.id);W.connectionType=v8_(S);W.volume=S.C_.getVolume();W.muted=S.C_.isMuted();W.clipId=S.C_.n0()|| "-";W.C=S.videoData.FL||"-";return W}; g.gK=function(S,W){g.A.call(this);var m=this;this.provider=S;this.B=new Map;this.Ud=new g.uV;this.f3={CL2:function(){return m.qoe}, HjX:function(){return m.C}, FlY:function(){return m.N}}; this.provider.videoData.LP()&&!this.provider.videoData.bJ&&(this.C=new qQ(this.provider),this.C.N=0,g.Z(this,this.C),this.qoe=new g.UT(this.provider,W),g.Z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.vr=this.provider.videoData.clientPlaybackNonce)&&this.B.set(this.vr,this.C));if(S.Y.playerCanaryState==="canary"||S.Y.playerCanaryState==="holdback")this.N=new Yt(this.provider),g.Z(this,this.N)}; g6O=function(S){S.N&&hGP(S.N);S.qoe&&iBD(S.qoe)}; Of6=function(S){S.N&&S.N.send();if(S.qoe){var W=S.qoe;if(W.j){W.Ud==="PL"&&(W.Ud="N");var m=g.eR(W.provider);g.Mv(W,m,"vps",[W.Ud]);W.Z||(W.B>=0&&W.C.set("user_intent",[W.B.toString()]),W.Z=!0);W.provider.Y.rd()&&W.iY("finalized",{});W.Pn=!0;W.reportStats(m)}}if(S.provider.videoData.enableServerStitchedDai)for(W=g.R(S.B.values()),m=W.next();!m.done;m=W.next())pDP(m.value);else S.C&&pDP(S.C);S.dispose()}; j5P=function(S,W){S.C&&VSl(S.C,W)}; Q57=function(S){if(!S.C)return null;var W=nT(S.C,"atr");return function(m){S.C&&VSl(S.C,m,W)}}; XDP=function(S,W,m,a){m.adFormat=m.M2;var J=W.C_;W=new qQ(new uY(m,W.Y,{getDuration:function(){return m.lengthSeconds}, getCurrentTime:function(){return J.getCurrentTime()}, cD:function(){return J.cD()}, oG:function(){return J.oG()}, LH:function(){return J.LH()}, getPlayerSize:function(){return J.getPlayerSize()}, getAudioTrack:function(){return m.getAudioTrack()}, getPlaybackRate:function(){return J.getPlaybackRate()}, Jo:function(){return J.Jo()}, getVisibilityState:function(){return J.getVisibilityState()}, Zr:function(){return J.Zr()}, jJ:function(){return J.jJ()}, getVolume:function(){return J.getVolume()}, isMuted:function(){return J.isMuted()}, UK:function(){return J.UK()}, n0:function(){return J.n0()}, getProximaLatencyPreference:function(){return J.getProximaLatencyPreference()}, QL:function(){J.QL()}, iY:function(B,E){J.iY(B,E)}, YA:function(){return J.YA()}, DH:function(){return J.DH()}})); W.N=a;g.Z(S,W);return W}; v6D=function(){this.St=0;this.j=this.B=this.M5=this.HJ=this.N=NaN;this.C={};this.bandwidthEstimate=NaN}; Hfc=function(){this.C=g.tD;this.array=[]}; MSQ=function(S,W,m){var a=[];for(W=lA6(S,W);Wm)break}return a}; OU=function(S,W){var m=[];S=g.R(S.array);for(var a=S.next();!a.done&&!(a=a.value,a.contains(W)&&m.push(a),a.start>W);a=S.next());return m}; UX_=function(S){return S.array.slice(lA6(S,0x7ffffffffffff),S.array.length)}; lA6=function(S,W){S=Tt(S.array,function(m){return W-m.start||1}); return S<0?-(S+1):S}; var FDj=function(S,W){return mPX[z[7]](this,4,S,W)}; LnP=function(S,W){var m=NaN;S=g.R(S.array);for(var a=S.next();!a.done;a=S.next())if(a=a.value,a.contains(W)&&(isNaN(m)||a.endW&&(isNaN(m)||a.startS.mediaTime+S.X&&W1)S.j=!0;if((J===void 0?0:J)||isNaN(S.N))S.N=W;if(S.C)W!==S.mediaTime&&(S.C=!1);else if(W>0&&S.mediaTime===W){J=1500;if(S.Y.T("html5_buffer_underrun_transition_fix")){J=g.Db(S.Y.experiments,"html5_min_playback_advance_for_steady_state_secs");var B=g.Db(S.Y.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");J=J>0&&B>0&&Math.abs(W-S.N)(a||!S.j?J:400)}S.mediaTime=W;S.B=m;return!1}; fA6=function(S,W){this.videoData=S;this.C=W}; k77=function(S,W,m){return W.OY(m).then(function(){return du(new fA6(W,W.B))},function(a){a instanceof Error&&g.Ue(a); var J=zx('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),B=YK('audio/mp4; codecs="mp4a.40.2"'),E=J||B,y=W.isLivePlayback&&!g.Xx(S.X,!0);a="fmt.noneavailable";y?a="html5.unsupportedlive":E||(a="html5.missingapi");E=y||!E?2:1;J={buildRej:"1",a:W.n9(),d:!!W.eY,drm:W.PD(),f18:W.I4.indexOf("itag=18")>=0,c18:J};W.C&&(W.PD()?(J.f142=!!W.C.C["142"],J.f149=!!W.C.C["149"],J.f279=!!W.C.C["279"]):(J.f133=!!W.C.C["133"],J.f140=!!W.C.C["140"],J.f242=!!W.C.C["242"]),J.cAAC=B,J.cAVC=YK('video/mp4; codecs="avc1.42001E"'), J.cVP9=YK('video/webm; codecs="vp9"'));W.X&&(J.drmsys=W.X.keySystem,B=0,W.X.C&&(B=Object.keys(W.X.C).length),J.drmst=B);return new g.a3(a,J,E)})}; XJ=function(S){this.data=window.Float32Array?new Float32Array(S):Array(S);this.N=this.C=S-1}; $X6=function(S){return S.data[S.C]||0}; hXP=function(S){this.X=S;this.B=this.N=0;this.j=new XJ(50)}; HA=function(S,W,m){g.au.call(this);this.videoData=S;this.experiments=W;this.X=m;this.N=[];this.R0=0;this.B=!0;this.j=!1;this.V=0;m=new tSX;S.latencyClass==="ULTRALOW"&&(m.S=!1);S.PT?m.B=3:g.fp(S)&&(m.B=2);S.latencyClass==="NORMAL"&&(m.X=!0);m.N2=eX(S);if(S.latencyClass==="LOW"||S.latencyClass==="ULTRALOW")m.X=!0;var a=g.Db(W,"html5_liveness_drift_proxima_override");if(lZ(S)!==0&&a){m.C=a;var J;((J=S.C)==null?0:j37(J))&&m.C--}eX(S)&&W.mU("html5_sabr_parse_live_metadata_playback_boundaries")&&(m.vn= !0);if(g.Ni("trident/")||g.Ni("edge/"))J=g.Db(W,"html5_platform_minimum_readahead_seconds")||3,m.j=Math.max(m.j,J);g.Db(W,"html5_minimum_readahead_seconds")&&(m.j=g.Db(W,"html5_minimum_readahead_seconds"));g.Db(W,"html5_maximum_readahead_seconds")&&(m.bY=g.Db(W,"html5_maximum_readahead_seconds"));if(W=g.Db(W,"html5_liveness_drift_chunk_override"))m.C=W;HB(S)&&(m.C=(m.C+1)/5,S.latencyClass==="LOW"&&(m.C*=2));!eX(S)||S.latencyClass!=="ULTRALOW"&&S.latencyClass!=="LOW"||(m.Z=3,m.V=25);this.policy=m; this.Z=this.policy.B!==1;this.C=vA(this,Arj(this,isNaN(S.liveChunkReadahead)?3:S.liveChunkReadahead,S))}; ZfP=function(S,W){if(W)return W=S.videoData,W=Arj(S,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W),vA(S,W);if(S.N.length){if(Math.min.apply(null,S.N)>1)return vA(S,S.C-1);if(S.policy.S)return vA(S,S.C+1)}return S.C}; NSQ=function(S,W){if(!S.N.length)return!1;var m=S.C;S.C=ZfP(S,W===void 0?!1:W);if(W=m!==S.C)S.N=[],S.R0=0;return W}; MQ=function(S,W){return W>=S.Oo()-lY(S)}; bfc=function(S,W,m){W=MQ(S,W);m||W?W&&(S.B=!0):S.B=!1;S.Z=S.policy.B===2||S.policy.B===3&&S.B}; o6P=function(S,W){W=MQ(S,W);S.j!==W&&S.publish("livestatusshift",W);S.j=W}; lY=function(S){var W=S.policy.C;S.j||(W=Math.max(W-1,0));return W*UU(S)}; Arj=function(S,W,m){m.PT&&W--;HB(m)&&(W=1);if(lZ(m)!==0&&(S=g.Db(S.experiments,"html5_live_chunk_readahead_proxima_override"))){W=S;var a;((a=m.C)==null?0:j37(a))&&W++}return W}; UU=function(S){return S.videoData.C?om(S.videoData.C)||5:5}; vA=function(S,W){W=Math.max(Math.max(1,Math.ceil(S.policy.j/UU(S))),W);return Math.min(Math.min(8,Math.floor(S.policy.bY/UU(S))),W)}; tSX=function(){this.j=0;this.bY=Infinity;this.S=!0;this.N=this.C=2;this.B=1;this.X=!1;this.V=10;this.vn=!1;this.Z=1;this.N2=!1}; eg=function(S){g.A.call(this);this.C_=S;this.C=0;this.N=null;this.V=this.j=0;this.B={};this.Y=this.C_.J();this.X=new g.rj(this.i$,1E3,this);this.hX=LT(this,"html5_seek_timeout_delay_ms");this.q2=LT(this,"html5_long_rebuffer_threshold_ms");this.Y6=LT(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.s9=LT(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.O9=LT(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Wv=LT(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.N2=LT(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.vn=new RB(2E4);this.Hn=LT(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.zN=LT(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.g2=LT(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.Pn=LT(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.S=LT(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.bY=LT(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.d2=LT(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.uY=LT(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.Z=LT(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.M2=new RB(g.Db(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Y.T("html5_report_slow_ads_as_error"));this.vv=new RB(g.Db(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Y.T("html5_skip_slow_buffering_ad"));this.IL=LT(this,"html5_slow_start_timeout_delay_ms");this.Xn=LT(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.Z(this,this.X)}; LT=function(S,W,m){m=m===void 0?null:m;var a=a===void 0?0:a;return new RB(g.Db(S.Y.experiments,W)||a,m?S.Y.T(m):!1)}; rr_=function(S,W){S.C=W}; xt=function(S,W,m,a,J,B,E,y){W?W.test(m)?(S.vG(J,W,E),W.V||B()):(!W.N||W.j?m=!1:(m=(0,g.X1)(),a?W.C||(W.C=m):W.C=0,B=!a&&m-W.N>3E4,m=W.C&&m-W.C>1E3||B?W.j=!0:!1),m&&(y=Object.assign({},S.Yb(W),y),y.wn=E,y.we=J,y.wsuc=a,S.C_.iY("workaroundReport",y),a&&(W.reset(),S.B[J]=!1))):S.C_.QP("auth",2,"BROWSER_OR_EXTENSION_ERROR",m6({source:"watchdog",name:E}))}; RB=function(S,W){this.V=W===void 0?!1:W;this.C=this.N=this.B=this.startTimestamp=0;this.j=!1;this.X=Math.ceil(S/1E3)}; wDP=function(S){g.A.call(this);var W=this;this.C_=S;this.S=this.C=this.loader=this.mediaElement=this.playbackData=null;this.B=0;this.X=this.q2=this.j=null;this.Pn=!1;this.Wv=0;this.vn=!1;this.timestampOffset=0;this.bY=!0;this.zN=0;this.Y6=this.lr=!1;this.Z=0;this.uY=!1;this.O9=this.Xn=0;this.Y=this.C_.J();this.videoData=this.C_.getVideoData();this.policy=new CKO;this.N2=new eg(this.C_);this.vv=this.g2=this.Hn=this.V=this.N=NaN;this.s9=new g.rj(function(){crl(W,!1)},2E3); this.EV=new g.rj(function(){iY(W)}); this.hX=new g.rj(function(){DXX(W,{})}); this.IL=NaN;this.M2=new g.rj(function(){var m=W.Y.Jb;m.C+=1E4/36E5;m.C-m.B>1/6&&($o6(m),m.B=m.C);W.M2.start()},1E4); g.Z(this,this.N2);g.Z(this,this.s9);g.Z(this,this.hX);g.Z(this,this.EV);g.Z(this,this.M2)}; mj6=function(S,W){S.playbackData=W;S.videoData.isLivePlayback&&(S.S=new hXP(function(){a:{if(S.playbackData&&S.playbackData.C.C){if(vB(S.videoData)&&S.loader){var a=S.loader.HR.hO()||0;break a}if(S.videoData.C){a=S.videoData.C.Pn;break a}}a=0}return a}),S.C=new HA(S.videoData,S.Y.experiments,function(){return S.eD(!0)})); if(dK(S.C_)){var m;(m=S.videoData.uO)!=null&&m.rX||(W=Sv_(S),W.Y4?(eX(S.videoData)&&S.Cu(W.Y4,W.startSeconds),S.B=W.startSeconds):W.startSeconds>0&&S.seekTo(W.startSeconds,{Jw:"seektimeline_startPlayback",seekSource:15}));S.bY=!1}else Wk6(S)||(S.B=S.B||S.videoData.startSeconds||0,S.videoData.isLivePlayback||(W=S.C_.videoData.eD(),S.B>W&&(S.T("html5_sabr_log_invalid_sabr_current_time")&&S.C_.iY("invalidSabrCmtStart",{rt:S.B,mst:W}),S.T("html5_sabr_vod_invalid_start_time_fallback")&&(S.B=0))))}; JzK=function(S,W){(S.loader=W)?a3P(S,!0):IB(S)}; EeG=function(S,W){var m=S.getCurrentTime(),a=S.isAtLiveHead(m);if(S.S&&a){var J=S.S;if(J.C&&!(m>=J.N&&m50&&J.N.shift())),J=S.C,bfc(J,m,W===void 0?!0:W),o6P(J,m),W&&crl(S,!0));a!==S.lr&&(W=S.getCurrentTime()-S.vv<=500,m=S.Wv>=1E3,W||m||(W=S.C_.zV,W.qoe&&(W=W.qoe,m=g.eR(W.provider), g.Mv(W,m,"lh",[a?"1":"0"])),S.lr=a,S.Wv++,S.vv=S.getCurrentTime()))}; crl=function(S,W){if(S.C){var m=S.C;var a=S.getCurrentTime(),J=m.Oo();var B=m.policy.N;m.j||(B=Math.max(B-1,0));B*=UU(m);a>=J-B||!m.fE()?m=am+1&&W0&&S.mediaElement.jl()>0&&(S.N=PA(S,S.N,!1)),W=S.T("html5_pseudogapless_shorts_seek_to_next_start")&&(W==null?void 0:W.seekSource)===60,!S.mediaElement||!qvK(S,W))S.EV.start(750);else if(!isNaN(S.N)&&isFinite(S.N)&&(W=S.g2-(S.N-S.timestampOffset),!(W===0||Math.abs(W)<.005)))if(W=S.mediaElement.getCurrentTime()-S.N,Math.abs(W)<=S.zN||Math.abs(W)<.005)pgK(S);else{if(S.videoData.fu)S.videoData.fu= !1;else if(!je(S.videoData)&&S.N>=S.eD()-.1){S.N=S.eD();S.j.resolve(S.eD());S.Y.rd()&&S.C_.iY("setEndedInSeek",{tgt:""+S.N,maxst:""+S.eD()});S.C_.UR();return}try{var m=S.N-S.timestampOffset;S.mediaElement.seekTo(m);S.N2.C=m;S.g2=m;S.B=S.N;S.vn=!1}catch(a){}}}; qvK=function(S,W){W=W===void 0?!1:W;if(!S.mediaElement||S.mediaElement.s$()===0||S.mediaElement.hasError())return!1;var m=S.mediaElement.getCurrentTime()>0;return S.videoData.B&&S.videoData.B.C||S.videoData.isLivePlayback||!S.videoData.PD()?S.N>=0&&!W&&(W=S.mediaElement.JD(),W.length||!m)?ct(W,S.N-S.timestampOffset):m:m}; pgK=function(S){S.j&&(S.j.resolve(S.mediaElement.getCurrentTime()),S.N2.N=null)}; KkG=function(S,W){S.X&&(S.X.resolve(W),S.C_.u9(),S.Y.rd()||TWX(S))&&(W=S.Yb(),W["native"]=""+ +S.vn,W.otgt=""+(S.N+S.timestampOffset),S.C_.iY("seekEnd",W));IB(S)}; IB=function(S){S.N=NaN;S.V=NaN;S.g2=NaN;S.j=null;S.q2=null;S.X=null;S.Pn=!1;S.vn=!1;S.zN=0;S.s9.stop();S.hX.stop()}; VIP=function(S,W){var m=S.mediaElement,a=W.type;switch(a){case "seeking":var J=m.getCurrentTime()+S.timestampOffset;if(!S.j||S.vn&&J!==S.N){S.j=new Vn;S.j.then(function(E){KkG(S,E)},function(){IB(S)}); if(S.videoData.isAd()){var B;fpG({adCpn:S.videoData.clientPlaybackNonce,contentCpn:(B=S.videoData.hG)!=null?B:""},W.C)}S.g2=J;rr_(S.N2,m.getCurrentTime());S.seekTo(J,{seekSource:104,Jw:"seektimeline_mediaElementEvent"});S.vn=!0}break;case "seeked":pgK(S);break;case "loadedmetadata":dK(S.C_)||FkP(S);iY(S);break;case "progress":iY(S);break;case "pause":S.Z=S.getCurrentTime()}S.Z&&((a==="play"||a==="playing"||a==="timeupdate"||a==="progress")&&S.getCurrentTime()-S.Z>10&&(S.T("html5_sky_skip_pause_jump")? S.C_.iY("skipPauseJump",{evt:a,cmt:S.getCurrentTime(),lpt:S.Z}):S.seekTo(S.Z,{Jw:"pauseJump"})),a!=="pause"&&a!=="play"&&a!=="playing"&&a!=="progress"&&(S.Z=0))}; neD=function(S){return(ka(S.videoData)||!!S.videoData.liveUtcStartSeconds)&&(!!S.videoData.liveUtcStartSeconds||Wk6(S))&&!!S.videoData.C}; Wk6=function(S){return!!S.videoData.startSeconds&&isFinite(S.videoData.startSeconds)&&S.videoData.startSeconds>1E9}; Sv_=function(S){var W=0,m=NaN,a="";if(!S.bY)return{startSeconds:W,Y4:m,source:a};S.videoData.ri?W=S.videoData.Wm:je(S.videoData)&&(W=Infinity);if(g.fp(S.videoData))return{startSeconds:W,Y4:m,source:a};S.videoData.startSeconds?(a="ss",W=S.videoData.startSeconds):S.videoData.PJ&&(a="stss",W=S.videoData.PJ);S.videoData.liveUtcStartSeconds&&(m=S.videoData.liveUtcStartSeconds);if(isFinite(W)&&(W>S.eD()||WS.eD()||m 0?(a.onesie="0",S.handleError(new g.a3("html5.missingapi",a)),!1):!0}; l3X=function(S){var W=bt();og(W,S);return g.CG(W,NiD())}; Xgl=function(S,W,m){var a,J,B,E,y,Y,G,K,T,p,q,F,O,X,l,M,e,d,t,h,mD,SO,aK,EP,qP,JG;return g.k(function(jO){if(jO.C==1)return W.fetchType="onesie",a=DCl(W,S.getPlayerSize(),S.getVisibilityState()),J=new y6(S,a,m),g.P(jO,J.fetch(),2);B=jO.N;E={player_response:B};W.loading=!1;y=S.Ec.ji;if(J.q6){Y=g.R(J.q6.entries());for(G=Y.next();!G.done;G=Y.next())K=G.value,T=g.R(K),p=T.next().value,q=T.next().value,F=p,O=q,y.C.set(F,O,180),F===W.videoId&&(X=O.PL(),W.Vj=X);y.cW=J}l=g.R(J.qa.entries());for(M=l.next();!M.done;M= l.next())e=M.value,d=g.R(e),t=d.next().value,h=d.next().value,mD=t,SO=h,y.N.set(mD,SO,180);g.Ex(W,E,!0);if(W.loading||Jp(W))return jO.return(Promise.resolve());y.C.removeAll();y.N.removeAll();W.Vj=[];aK={};EP="onesie.response";qP=0;W.errorCode?(EP="auth",aK.ec=W.errorCode,aK.ed=W.errorDetail,aK.es=W.eI||"",qP=2):(aK.successButUnplayable="1",aK.disposed=""+ +W.TN(),aK.afmts=""+ +/adaptiveFormats/.test(B),aK.cpn=W.clientPlaybackNonce);JG=new g.a3(EP,aK,qP);return jO.return(Promise.reject(JG))})}; Oy_=function(S,W){var m,a,J,B,E,y,Y,G,K,T,p;return g.k(function(q){switch(q.C){case 1:m=W.isAd(),a=!m,J=m?1:3,B=0;case 2:if(!(B0)){q.cn(5);break}return g.P(q,fg(5E3),6);case 6:E=new g.uc("Retrying OnePlatform request",{attempt:B}),g.Ue(E);case 5:return g.EQ(q,7),g.P(q,MIc(S,W),9);case 9:return q.return();case 7:y=g.Gg(q);Y=Bt(y);G=Y.errorCode;K=S.J();T=K.T("html5_use_network_error_code_enums")?401:"401";a&&G==="manifest.net.badstatus"&&Y.details.rc===T&&(a=!1,B===J-1&&(J+= 1));if(B===J-1)return p=UjP(m,Y.details),p.details.backend="op",p.details.originec=G,q.return(Promise.reject(p));if(G==="auth"||G==="manifest.net.retryexhausted")return q.return(Promise.reject(Y));S.handleError(Y);if(J3(Y.severity)){q.cn(4);break}case 3:B++;q.cn(2);break;case 4:return q.return(Promise.reject(UjP(m,{backend:"op"})))}})}; MIc=function(S,W){function m(aK){aK.readyState===2&&S.HU("ps_c")} var a,J,B,E,y,Y,G,K,T,p,q,F,O,X,l,M,e,d,t,h,mD,SO;return g.k(function(aK){switch(aK.C){case 1:W.fetchType="gp";a=S.J();J=g.Fm(a,g.cB(W));if(!J.C){B=J.getValue();aK.cn(2);break}return g.P(aK,J.C,3);case 3:B=aK.N;case 2:return E=B,y=l3X(E),Y=DCl(W,S.getPlayerSize(),S.getVisibilityState()),G=g.Wz(LkK),K=g.cB(W),T=(0,g.X1)(),p=!1,q="empty",F=0,S.HU("psns"),O={fT:m},g.P(aK,g.Pz(y,Y,G,void 0,O),4);case 4:X=aK.N;S.HU("psnr");if(W.TN())return aK.return();X?"error"in X&&X.error?(p=!0,q="esf:"+X.error.message, F=X.error.code):X.errorMetadata&&(p=!0,q="its",F=X.errorMetadata.status):p=!0;if(p)return l=0,M=((0,g.X1)()-T).toFixed(),e={},e=a.T("html5_use_network_error_code_enums")?{backend:"op",rc:F,rt:M,reason:q,has_kpt:W.d2?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.D4("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:a.pageId?"1":"0",has_token:K?"1":"0",has_vvt:W.vn?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.j1||"",token_eq:K===g.cB(W)?"1":"0"}:{backend:"op", rc:""+F,rt:M,reason:q,has_kpt:W.d2?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.D4("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:a.pageId?"1":"0",has_token:K?"1":"0",has_vvt:W.vn?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.j1||"",token_eq:K===g.cB(W)?"1":"0"},d="manifest.net.connect",F===429?(d="auth",l=2):F>200&&(d="manifest.net.badstatus",F===400&&(l=2)),aK.return(Promise.reject(new g.a3(d,e,l)));W.loading=!1;g.Ex(W,{raw_player_response:X},!0); t=X;g.ZI(W.J())&&t&&t.trackingParams&&F6(t.trackingParams);if(W.errorCode)return h={ec:W.errorCode,ed:W.errorDetail,es:W.eI||""},aK.return(Promise.reject(new g.a3("auth",h,2)));if(!W.loading&&!Jp(W))return mD=W.isAd()?"auth":"manifest.net.retryexhausted",SO=W.isAd()?2:1,aK.return(Promise.reject(new g.a3(mD,{successButUnplayable:"1",hasMedia:g.dO(W)?"1":"0"},SO)));g.B9(aK)}})}; gel=function(S,W,m){function a(F){F=Bt(F);if(J3(F.severity))return Promise.reject(F);S.handleError(F);return!1} function J(){return!0} var B,E,y,Y,G,K,T,p,q;return g.k(function(F){switch(F.C){case 1:var O=S.J();S.getPlayerSize();S.getVisibilityState();S.isFullscreen();if(W.partnerId===38&&O.playerStyle==="books")O=W.videoId.indexOf(":"),O=g.ex("//play.google.com/books/volumes/"+W.videoId.slice(0,O)+"/content/media",{aid:W.videoId.slice(O+1),sig:W.Zg});else if(W.partnerId===30&&O.playerStyle==="docs")O=g.ex("https://docs.google.com/get_video_info",{docid:W.videoId,authuser:W.Q9,authkey:W.x$,eurl:O.xK});else if(W.partnerId===33&&O.playerStyle=== "google-live")O=g.ex("//google-liveplayer.appspot.com/get_video_info",{key:W.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+O.N2);B=O;y=(E=W.isAd())?1:3;Y=0;case 2:if(!(Y0)){F.cn(5);break}return g.P(F,fg(5E3),6);case 6:K={playerretry:Y,playerretrysrc:m},E||(K.recover="embedded"),G=Y0(B,K);case 5:return g.P(F,RcG(W,G).then(J,a),7);case 7:if(T=F.N)return F.return();Y++;F.cn(2);break;case 4:p=E?"auth":"manifest.net.retryexhausted";q=E?2:1;if(!E&&Math.random()< 1E-4)try{g.Ue(new g.uc("b/152131571",btoa(B)))}catch(X){}return F.return(Promise.reject(new g.a3(p,{backend:"gvi"},q)))}})}; RcG=function(S,W){function m(X){return a(X.xhr)} function a(X){if(!S.TN()){X=X?X.status:-1;var l=0,M=((0,g.X1)()-K).toFixed();M=J.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:X,rt:M}:{backend:"gvi",rc:""+X,rt:M};var e="manifest.net.connect";X===429?(e="auth",l=2):X>200&&(e="manifest.net.badstatus",X===400&&(l=2));return Promise.reject(new g.a3(e,M,l))}} var J,B,E,y,Y,G,K,T,p,q,F,O;return g.k(function(X){if(X.C==1){S.fetchType="gvi";J=S.J();var l={};S.PS&&(l.ytrext=S.PS);(y=g.UC(l)?void 0:l)?(B={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:y},E=Y0(W,{action_display_post:1})):(B={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},E=W);Y={};J.sendVisitorIdHeader&&S.visitorData&&(Y["X-Goog-Visitor-Id"]=S.visitorData);(G=OZ(J.experiments,"debug_sherlog_username"))&&(Y["X-Youtube-Sherlog-Username"]=G);Object.keys(Y).length> 0&&(B.headers=Y);K=(0,g.X1)();return g.P(X,iA(Rk,E,B).then(void 0,m),2)}T=X.N;if(!T||!T.responseText)return X.return(a(T));S.loading=!1;p=Gj(T.responseText);g.Ex(S,p,!0);if(S.errorCode)return q={ec:S.errorCode,ed:S.errorDetail,es:S.eI||""},X.return(Promise.reject(new g.a3("auth",q,2)));if(!S.loading&&!Jp(S))return F=S.isAd()?"auth":"manifest.net.retryexhausted",O=S.isAd()?2:1,X.return(Promise.reject(new g.a3(F,{successButUnplayable:"1"},O)));g.B9(X)})}; UjP=function(S,W){return new g.a3(S?"auth":"manifest.net.retryexhausted",W,S?2:1)}; tI=function(S,W,m){m=m===void 0?!1:m;var a,J,B,E;g.k(function(y){if(y.C==1){a=S.J();if(m&&(!g.Y5(a)||bZ(W)!=="embedded")||W.YN||bZ(W)!=="adunit"&&(g.pt(a)||DI(a)||g.IL(a)||g.y2(a)||g.NT(a)||sZ(a)==="WEB_CREATOR"))return y.return();J=g.Fm(a,g.cB(W));return J.C?g.P(y,J.C,3):(B=J.getValue(),y.cn(2))}y.C!=2&&(B=y.N);E=B;return y.return(ecP(S,W,E))})}; ecP=function(S,W,m){var a,J,B,E,y;return g.k(function(Y){if(Y.C==1){g.EQ(Y,2);a=l3X(m);var G=W.J(),K=g.hO(),T={context:g.KB(W),videoId:W.videoId,racyCheckOk:W.racyCheckOk,contentCheckOk:W.contentCheckOk,autonavState:"STATE_NONE"};bZ(W)==="adunit"&&(T.isAdPlayback=!0);G.embedConfig&&(T.serializedThirdPartyEmbedConfig=G.embedConfig);G.Vj&&(T.showContentOwnerOnly=!0);W.eE&&(T.showShortsOnly=!0);K.QD(141)&&(T.autonavState=K.QD(140)?"STATE_OFF":"STATE_ON");if(g.EV(G)){K=K.QD(65);K=K!=null?!K:!1;var p= !!g.dU("yt-player-sticky-caption");T.captionsRequested=K&&p}var q;if(G=(q=G.getWebPlayerContextConfig())==null?void 0:q.encryptedHostFlags)T.playbackContext={encryptedHostFlags:G};J=T;B=g.Wz(xjP);S.HU("wn_s");return g.P(Y,g.Pz(a,J,B),4)}if(Y.C!=2)return E=Y.N,S.HU("wn_r"),!E||"error"in E&&E.error||(y=E,g.ZI(W.J())&&y.trackingParams&&F6(y.trackingParams),g.Ex(W,{raw_watch_next_response:E},!1)),g.Yp(Y,0);g.Gg(Y);g.B9(Y)})}; j$c=function(S,W){var m,a,J,B;g.k(function(E){if(E.C==1)return m=S.J(),a=g.Fm(m,g.cB(W)),a.C?g.P(E,a.C,3):(J=a.getValue(),E.cn(2));E.C!=2&&(J=E.N);B=J;return E.return(iyP(W,B))})}; iyP=function(S,W){var m,a,J,B;return g.k(function(E){if(E.C==1)return g.EQ(E,2),m=l3X(W),a={context:g.KB(S),playerRequest:{videoId:S.videoId},disablePlayerResponse:!0},J=g.Wz(dj7),g.P(E,g.Pz(m,a,J),4);if(E.C!=2)return B=E.N,!B||"error"in B&&B.error||g.Ex(S,{raw_reel_item_watch_response:B}),g.Yp(E,0);g.Gg(E);g.B9(E)})}; I37=function(S,W){S.HU("vir");S.HU("ps_s");iU("vir",void 0,"video_to_ad");W=HyO(S,W);W.then(function(){S.HU("virc");iU("virc",void 0,"video_to_ad");S.HU("ps_r");iU("ps_r",void 0,"video_to_ad")},function(){S.HU("virc"); iU("virc",void 0,"video_to_ad")}); return W}; g.NQ=function(S,W,m,a,J,B,E,y,Y,G,K){G=G===void 0?new g.a1(S):G;K=K===void 0?!0:K;g.au.call(this);var T=this;this.Y=S;this.playerType=W;this.Pv=m;this.KD=a;this.getVisibilityState=B;this.visibility=E;this.Ec=y;this.Av=Y;this.videoData=G;this.vC=K;this.logger=new g.O6("VideoPlayer");this.pP=null;this.kF=new JI;this.MJ=null;this.vV=!0;this.K_=this.loader=null;this.pA=[];this.kW=new hI;this.jC=this.Xs=null;this.Rd=new hI;this.jm=null;this.cV=this.UX=!1;this.qs=NaN;this.Nk=!1;this.playerState=new g.uV; this.aZ=[];this.jE=new g.Tx;this.mediaElement=null;this.q4=this.HB=!1;this.Kp=NaN;this.HF=!1;this.Pz=0;this.Zn=!1;this.l_=NaN;this.W9=0;this.loop=!1;this.playbackRate=1;this.Fd=0;this.Fo=!1;this.IZ=[];this.JW=this.vp=0;this.ou=this.Oi=!1;this.M5=this.HJ=0;this.ZA=!1;this.jz=this.x4=this.Ty=this.tv=null;this.P1=function(){var p=T.zV;p.provider.Y.xP||p.provider.C_.getVisibilityState()===3||(p.provider.Y.xP=!0);p.Ie();if(p.N){var q=p.N;q.X&&q.C<0&&q.provider.C_.getVisibilityState()!==3&&hGP(q)}p.qoe&& (p=p.qoe,p.hX&&p.B<0&&p.provider.Y.xP&&iBD(p),p.j&&ix(p));T.loader&&AI(T);ZX(T)}; this.f3={uh:function(p){T.uh(p)}, hoN:function(p){T.pP=p}, YXq:function(){return T.zV}, ym:function(){return T.K_}, IYX:function(){return T.G5}, aYY:function(){return T.X4}, voD:function(){}, J:function(){return T.Y}, fn:function(){return T.mediaElement}, B_2:function(p){T.dH(p)}, A4Y:function(){return T.KD}}; this.kG=new TPO(this);this.QA=new g.rj(this.c12,15E3,this);this.QZ=new fT(new Map([["bufferhealth",function(){return BWP(T.XE)}], ["bandwidth",function(){return T.kA()}], ["networkactivity",function(){return T.Av.Xn}], ["livelatency",function(){return T.isAtLiveHead()&&T.isPlaying()?P06(T):NaN}], ["rawlivelatency",function(){return P06(T)}]])); this.XE=new wDP(this);this.b1=new g.rj(this.T22,0,this);this.cwn=[this.jE,this.b1,this.QA,this.QZ];this.Ay=new PKX(this.Y);this.i6=new zX(this.Y,this.KD,this,this.Av);this.NP=new g.jg(this,function(p,q){p!==g.AD("endcr")||g.C(T.playerState,32)||T.UR();J(p,q,T.playerType)}); g.Z(this,this.NP);g.Z(this,this.XE);f3P(this,G);this.videoData.subscribe("dataupdated",this.Tr9,this);this.videoData.subscribe("dataloaded",this.UN,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.iY,this);this.videoData.subscribe("ctmpstr",this.h8,this);!this.zV||this.zV.TN();this.zV=new g.gK(new uY(this.videoData,this.Y,this));E36(this.P1);this.visibility.subscribe("visibilitystatechange",this.P1);this.G5=new g.rj(this.ub,g.Db(this.Y.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.X4=new g.rj(this.ub,g.Db(this.Y.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.gH=new g.wj(this.TU9,350,this);g.Z(this,this.gH)}; klj=function(S){return MP[z[7]](this,19,S)}; f3P=function(S,W){if(S.playerType===2||S.Y.pm)W.xc=!0;var m=ibO(W.M2,W.CN,S.Y.j,S.Y.S);m&&(W.adFormat=m);S.playerType===2&&(W.kt=!0);if(S.isFullscreen()||S.Y.j)m=g.dU("yt-player-autonavstate"),W.autonavState=m||(S.Y.j?2:S.videoData.autonavState);W.endSeconds&&W.endSeconds>W.startSeconds&&bY(S,W.endSeconds)}; $j_=function(S){return g.pt(S.Y)&&S.videoData.isLivePlayback&&(!S.Y.T("html5_allow_multiview_tile_preload")||!S.videoData.dA)}; hcj=function(S){var W=S.videoData;I37(S,S.Av).then(void 0,function(m){S.videoData!==W||W.TN()||(m=Bt(m),m.errorCode==="auth"&&S.videoData.errorDetail&&S.videoData.errorDetail!=="7"?S.QP(m.errorCode,2,unescape(S.videoData.errorReason),m6(m.details),S.videoData.errorDetail,S.videoData.eI||void 0):S.handleError(m))})}; ZyD=function(S){if(!g.C(S.playerState,128))if(S.videoData.isLoaded(),S.pA=g.aS(S.videoData.S1),g.dO(S.videoData)){S.Pv.tick("bpd_s");oB(S).then(function(){S.Pv.tick("bpd_c");if(!S.TN()){S.UX&&(S.vU(jJ(jJ(S.playerState,512),1)),rK(S));var a=S.videoData;a.endSeconds&&a.endSeconds>a.startSeconds&&bY(S,a.endSeconds);S.kW.finished=!0;CT(S,"dataloaded");S.Rd.fm()&&tI6(S);$Mj(S.i6,S.jC)}}); S.T("html5_log_media_perf_info")&&S.iY("loudness",{v:S.videoData.D0.toFixed(3)},!0);var W,m=(W=S.mediaElement)==null?void 0:W.yc();if(m&&"disablePictureInPicture"in m&&S.Y.ih)try{m.disablePictureInPicture=S.Y.Ea&&!S.videoData.backgroundable}catch(a){g.Ue(a)}AzD(S);S.jz=new ji(S.videoData)}else CT(S,"dataloaded")}; oB=function(S){cA(S);S.jC=null;var W=k77(S.Y,S.videoData,S.Sr());S.Xs=W;S.Xs.then(function(m){NWl(S,m)},function(m){S.TN()||(m=Bt(m),S.visibility.isBackground()?(DX(S,"vp_none_avail"),S.Xs=null,S.kW.reset()):(S.kW.finished=!0,S.QP(m.errorCode,m.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",m6(m.details))))}); return W}; NWl=function(S,W){if(!S.TN()&&!W.videoData.TN()){S.jC=W;mj6(S.XE,S.jC);if(S.videoData.isLivePlayback){var m=by_(S.Ec.ji,S.videoData.videoId)||S.loader&&!isNaN(S.loader.Xn);m=S.T("html5_onesie_live")&&m;dK(S)||S.videoData.g2>0&&!vB(S.videoData)||m||S.seekTo(S.eD(),{Jw:"videoplayer_playbackData",seekSource:18})}if(S.videoData.B.C){if(PL7(S.videoData)){S.QP("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",m6({missabrurl:1}));return}S.loader?g.Ue(Error("Duplicated Loader")):(m=g.Db(S.Y.experiments,"html5_onesie_defer_content_loader_ms"))&& S.Ae()&&by_(S.Ec.ji,S.videoData.fZ)?g.s7(function(){S.TN()||S.loader||oe6(S)},m):oe6(S)}else!S.videoData.B.C&&Sd(S.videoData)&&S.GL(new PD(S.videoData.videoId||"",4)); S.Vh();xMO(W).then(function(){var a={};S.fR(a);S.Y.rd()&&S.T("html5_log_media_perf_info")&&S.iY("av1Info",a);AI(S)})}}; tI6=function(S){S.TN();if(!S.Rd.finished&&S.kW.finished&&!g.C(S.playerState,128)&&!S.pA.length){if(!S.NP.started){var W=S.NP;W.started=!0;W.sync()}if(!S.xG()){if(S.loader){if(S.ZH().C.QD(qj)){W=S.loader;var m=!0;m=m===void 0?!1:m;W=Math.min(Jz(W.audioTrack,m),Jz(W.videoTrack,m))>0}else W=S.loader.timing,W=!!W.N&&!!W.B;S.cV=W}S.Rd.finished||(S.Rd.finished=!0);W=S.T("html5_onesie_live")&&S.loader&&!isNaN(S.loader.Xn);!S.videoData.isLivePlayback||S.videoData.g2>0&&!vB(S.videoData)||W||dK(S)||(S.seekTo(Infinity, {Jw:"videoplayer_readying",seekSource:18}),S.isBackground()&&(S.q4=!0));W=S.zV;if(W.qoe){W=W.qoe;var a=W.provider.videoData;m=W.provider.Y;for(var J=g.R(m.Q6),B=J.next();!B.done;B=J.next())Is(W,B.value);if(W.provider.T("html5_enable_qoe_cat_list"))for(J=g.R(a.r9),B=J.next();!B.done;B=J.next())Is(W,B.value);else a.Q6&&Is(W,W.provider.videoData.Q6);a.Hv()&&(J=a.C,vB(a)&&Is(W,"manifestless"),J&&om(J)&&Is(W,"live-segment-"+om(J).toFixed(1)));eX(a)?Is(W,"sabr"):W.F1(lZ(a));if(D9(a)||a.b$())a.b$()&&Is(W, "ssa"),Is(W,"lifa");sx(a)&&Is(W,"cdm");a.gatewayExperimentGroup&&(J=a.gatewayExperimentGroup,J==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?J="spkadtrt":J==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(J="spkadctrl"),Is(W,J));m.N2!=="yt"&&W.C.set("len",[a.lengthSeconds.toFixed(2)]);a.cotn&&!Sd(a)&&W.Sp(!0);m.rd()&&(a=QgP())&&W.iY("cblt",{m:a});if(m.T("html5_log_screen_diagonal")){m=W.iY;var E;a=((E=window.H5vccScreen)==null?0:E.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;m.call(W,"cbltdiag", {v:a})}}S.publish("playbackready");eG("pl_c",S.Pv.timerName)||(S.Pv.tick("pl_c"),iU("pl_c",void 0,"video_to_ad"));eG("pbr",S.Pv.timerName)||(S.Pv.tick("pbr"),iU("pbr",void 0,"video_to_ad"))}}}; bY=function(S,W){S.MJ&&rzP(S);S.MJ=new g.hD(W*1E3,0x7ffffffffffff);S.MJ.namespace="endcr";S.addCueRange(S.MJ)}; rzP=function(S){S.removeCueRange(S.MJ);S.MJ=null}; C0c=function(S,W,m,a,J){var B=S.zV,E=S.videoData;E.N=m;var y=g.wK(S);m=new XCD(E,m,W,y?y.itag:"",a);S.Y.experiments.mU("html5_refactor_sabr_video_format_selection_logging")?(m.videoId=J,S.x4=m):B.qoe&&xVG(B.qoe,m);J=S.i6;J.N=0;J.C=0;S.publish("internalvideoformatchange",E,W==="m")}; g.wK=function(S){var W=S7(S);return Ph(W)||!S.jC?null:g.Nx(S.jC.C.videoInfos,function(m){return W.j(m)})}; S7=function(S){if(S.jC){var W=S.i6;var m=S.jC;S=S.WW();var a=H_O(W);if(Ph(a)){if(a=W.z3(m).compose(LZj(W,m)).compose(eGc(W,m)).compose(fic(W,m.videoData)).compose(kGl(W,m.videoData,m)).compose(PNO(W,m)).compose(MvD(W,m)),Ph(S)||W.T("html5_apply_pbr_cap_for_drm"))a=a.compose(UMP(W,m))}else W.T("html5_perf_cap_override_sticky")&&(a=a.compose(PNO(W,m))),W.T("html5_ustreamer_cap_override_sticky")&&(a=a.compose(UMP(W,m)));a=a.compose(MvD(W,m));W=m.videoData.DN.compose(a).compose(m.videoData.RO).compose(S)}else W= mK;return W}; gaX=function(S){var W=S.i6;S=S.videoData;var m=fic(W,S);W.T("html5_disable_client_autonav_cap_for_onesie")||m.compose(kGl(W,S));return m}; AI=function(S){if(S.videoData.B&&S.videoData.B.C){var W=S7(S);if(S.loader&&(S=S.loader,!S.TN()))if(S.policy.C){var m=S.X;if(W.isLocked()&&m.C.N||m.N===void 0||!W.equals(m.N)){m=S.X.N;d_Q(S.X,W);var a,J;if(J=W.isLocked()&&W.reason==="m"){J=S.X;var B=(a=J.j)==null?void 0:a.info.video.qualityOrdinal;J=J.Xn?!0:J.j?W.C!==B?!0:!J.C.N||J.RY.V4&&J.C.C===J.j.info.itag?!1:!0:!1}a=J;J=S.policy.ZF&&W.reason==="l";m=m.C>W.C&&W.reason==="b";a||J||m?(S.C_.KR({reattachOnConstraint:a?"u":J?"drm":"perf",lo:W.N,up:W.C}), S.policy.V4||(S.X.C.N=!1)):(S.policy.V4&&(S.X.C.N=!1),F3(S))}}else!YZ6(S.C,W)&&S.videoTrack&&(J=S.C.C,bBc(S,GWj(S.C,W)),Zk(S),m=W.isLocked()&&W.reason==="m"&&S.C.vn,a=S.policy.ZF&&W.reason==="l"&&Ye(S.videoTrack),W=J.C>W.C&&W.reason==="b",J=S.C.hX&&!E_(),m||a||W||J?S.C_.KR({reattachOnConstraint:m?"u":a?"drm":J?"codec":"perf"}):F3(S))}}; czc=function(S){var W;return!!(S.T("html5_native_audio_track_switching")&&g.F1&&((W=S.videoData.N)==null?0:fx(W)))}; DjX=function(S){if(!czc(S))return!1;var W;S=(W=S.mediaElement)==null?void 0:W.audioTracks();return!!(S&&S.length>1)}; Ww6=function(S){var W=wgQ(S);if(W){var m=ST7[W]||W;return S.videoData.getAvailableAudioTracks().find(function(a){return a.n3.getName()===m})}}; mvP=function(S){var W,m=(W=S.mediaElement)==null?void 0:W.audioTracks();if(m){W=[];for(var a=0;a0&&(W.pJ=m.Uo));W.ZF=m.wf;W.WQ=aV(a,{},m.B||void 0,np(m));W.uY=VI(m)&&(g.IL(a)||g.y2(a));eX(m)&&(W.V=!0,W.Vj=a.T("html5_estimate_live_partial_slice_duration"),g.pt(a)&&!g.ok()&&a.T("html5_force_audio_to_cover_video_keyframe")? W.Wv=!1:W.Wv=!0,W.pR||m.isLivePlayback||!a.T("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(W.N0=!0,W.Up=g.Db(a.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),a.T("html5_sabr_report_partial_segment_estimated_duration")&&(W.aE=!0),W.C=!0,W.Bj=a.T("html5_trigger_loader_when_idle_network"),W.SX=a.T("html5_sabr_parse_live_metadata_playback_boundaries"),W.YN=a.T("html5_consume_onesie_next_request_policy_for_sabr"),W.Al=a.T("html5_sabr_report_next_ad_break_time"), W.XJ=a.T("html5_log_high_res_buffer_timeline")&&a.rd(),W.d0=a.T("html5_remove_stuck_slices_beyond_max_buffer_limits"),W.ih=a.T("html5_gapless_sabr_btl_last_slice")&&Fh(m),W.mC=a.T("html5_reset_last_appended_slice_on_seek")&&Fh(m),vB(m)?(W.Mo=!0,W.pm=a.T("html5_disable_variability_tracker_for_live"),W.d2=!0,a.T("html5_simplified_backup_timeout_sabr_live")&&(W.Mi=!0,W.xK=W.GA)):W.qd=a.T("html5_probe_request_on_sabr_request_progress"),W.Qa=a.T("html5_serve_start_seconds_seek_for_post_live_sabr"),W.Od= a.T("html5_flush_index_on_updated_timestamp_offset"),W.N2=eX(m),W.xT=a.T("html5_ignore_partial_segment_from_live_readahead"),a.T("html5_include_partial_segment_for_jumbo_ll")&&HB(m)&&(W.xT=!1),W.ya=a.T("html5_use_non_active_broadcast_for_post_live"),W.vn=a.T("html5_use_centralized_player_time"),W.M2=a.T("html5_log_centralized_player_time"),W.CC=a.T("html5_use_loader_check_duration"),W.kB=a.T("html5_consume_onesie_sabr_seek"),W.Pn=a.T("html5_enable_sabr_seek_loader_refactor"),m.enableServerStitchedDai&& (W.N=!0,W.cM=a.T("html5_reset_server_stitch_state_for_non_sabr_seek"),W.yW=a.T("html5_remove_ssdai_append_pause")&&!m.b$(),W.mQ=a.T("html5_ssdai_log_ssevt_in_loader_timers")),W.TJ=a.rd(),W.latencyClass=m.latencyClass,W.Yj=m.Hv()&&a.T("html5_prebuffer_instream_media_live")&&a.T("html5_report_prefetch_requests"),W.RO=!m.Hv()&&a.T("html5_prebuffer_instream_media_vod")&&a.T("html5_report_prefetch_requests"),W.Yk=a.T("html5_disable_prebuffer_for_limited_memory_devices"));W.o6=g.dCK(m);ch(a.X,DF.BITRATE)&& (W.o2=NaN);if(y=g.Db(a.experiments,"html5_request_size_max_kb"))W.hX=y*1024;a.X.N?W.tb="; "+DF.EXPERIMENTAL.name+"=allowed":a.T("html5_enable_cobalt_tunnel_mode")&&g.ok()&&(a=DF.TUNNELMODE,W.tb="; "+a.name+"="+a.valid);m=m.serverPlaybackStartConfig;(m==null?0:m.enable)&&(m==null?0:m.playbackStartPolicy)&&(W.Uo=!0,Vm(W,m.playbackStartPolicy,2));m=JwP(S);S.kF.removeAll();a:{a=S.Ec.ji;if(y=S.videoData.videoId)if(J=a.C.get(y)){a.C.remove(y);a=J;break a}a=void 0}S.loader=new tw(S,S.Av,W,S.videoData.C, S.videoData.B,S7(S),m,S.videoData.enableServerStitchedDai,a,S.videoData.bY);W=S.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&S.videoData.isLivePlayback&&S.Ae()?!0:S.UX&&$j_(S);S.loader.initialize(S.getCurrentTime(),S7(S),W);S.videoData.probeUrl&&(S.loader.d2=S.videoData.probeUrl);if(S.pA.length||S.UX)S.videoData.cotn||W8(S,!1);JzK(S.XE,S.loader);S.tv&&(EIP(S.loader,S.tv),S.iY("sdai",{sdl:1}));g.Jc(S.videoData)&&(S=S.loader,S.policy.HA=S.policy.Qb)}; ZX=function(S,W){W=W===void 0?!0:W;S.Y.Km&&!S.videoData.backgroundable&&S.mediaElement&&!S.Sr()&&(S.isBackground()&&S.mediaElement.Ll()?(S.iY("bgmobile",{suspend:1}),S.di(!0,!0)):!S.isBackground()&&W&&rK(S)&&S.iY("bgmobile",{resume:1}))}; cA=function(S){S.loader&&(S.loader.dispose(),S.loader=null,JzK(S.XE,null));S.HD()?z36(S):S.BO()}; z36=function(S){if(S.K_)if(S.qv(),S.K_.V)try{S.Y.rd()&&S.iY("rms",{l:"vprms",sr:S.HD(),rs:qo(S.K_),pn:S.nH()});S.K_.clear();var W;(W=S.mediaElement)==null||W.NI(S.K_);S.K_=null}catch(m){W=new g.uc("Error while clearing Media Source in VideoPlayer: "+m.name+", "+m.message),W=Bt(W),S.handleError(W),S.BO()}else S.BO()}; ywD=function(S,W){if(S.K_)return S.K_.B;a:{W=W===void 0?!1:W;W=W===void 0?!1:W;try{g.ok()&&S.videoData.yv()&&S.mediaElement.mM();var m=S.mediaElement.ym(S.ZW(),S.MC())}catch(J){if(n3X(S.kG,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",J);S.QP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}S.Hx(m,!1,!1,W)}var a;return((a=S.ym())==null?void 0:a.B)||null}; YTO=function(S,W){W=W===void 0?!1:W;if(S.loader){S.videoData.enableServerStitchedDai&&TkP(S.loader);var m=S.getCurrentTime()-S.DH();S.loader.seek(m,{Rs:W}).QB(function(){})}else oe6(S)}; G5l=function(S,W){if(S.K_){S.K_.Ab(W);var m;(m=S.loader)!=null&&m.policy.vn&&!m.policy.CC&&(m.Z=W)}}; N_l=function(S,W){C0c(S,W.reason,W.C.info,W.token,W.videoId)}; CT=function(S,W){S.publish("internalvideodatachange",W===void 0?"dataupdated":W,S.videoData)}; KwP=function(S){for(var W=g.R("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),m=W.next();!m.done;m=W.next())S.jE.K(S.mediaElement,m.value,S.dH,S);S.Y.vY&&S.mediaElement.ra()&&(S.jE.K(S.mediaElement,"webkitplaybacktargetavailabilitychanged",S.WyD,S),S.jE.K(S.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",S.Hn2,S))}; qTD=function(S){g.O7(S.qs);TIl(S)||(S.qs=g.uO(function(){return TIl(S)},100))}; TIl=function(S){var W=S.mediaElement;W&&S.HB&&!S.videoData.S&&!eG("vfp",S.Pv.timerName)&&W.s$()>=2&&!W.isEnded()&&SJ(W.gU())&&S.Pv.tick("vfp");return(W=S.mediaElement)&&!S.videoData.S&&W.getDuration()>0&&(W.isPaused()&&W.s$()>=2&&SJ(W.gU())&&(eG("pbp",S.Pv.timerName)||S.Pv.tick("pbp"),!S.videoData.Mi||S.Nk||W.isSeeking()||(S.Nk=!0,S.publish("onPlaybackPauseAtStart"))),W=W.getCurrentTime(),QV(S.Ay,W))?(S.Qt(),!0):!1}; FwO=function(S){S.zV.onProgress();if(je(S.videoData)&&Date.now()>S.Fd+6283){if(S.T("html5_unified_live_latency_reporting")){var W=S.zV;W.qoe&&HBP(W.qoe)}else!S.isAtLiveHead()||S.videoData.C&&ZB(S.videoData.C)||(W=S.zV,W.qoe&&HBP(W.qoe));W=g.TS(S.Y);var m=S.T("html5_always_log_rawlat");(W||m)&&S.iY("rawlat",{l:$t(S.QZ,"rawlivelatency").toFixed(3)});S.Fd=Date.now()}S.videoData.N&&fx(S.videoData.N)&&(W=S.Vk())&&W.videoHeight!==S.JW&&(S.JW=W.videoHeight,C0c(S,"a",pEK(S,S.videoData.Pn)))}; pEK=function(S,W){if(W.C.video.quality==="auto"&&fx(W.getInfo())&&S.videoData.uY)for(var m=g.R(S.videoData.uY),a=m.next();!a.done;a=m.next())if(a=a.value,a.getHeight()===S.JW&&a.C.video.quality!=="auto")return a.getInfo();return W.getInfo()}; P06=function(S){if(!je(S.videoData))return NaN;var W=0;S.loader&&S.videoData.C&&(W=vB(S.videoData)?S.loader.HR.hO()||0:S.videoData.C.Pn);return(0,g.X1)()/1E3-S.A1()-W}; nGD=function(S){S.mediaElement&&S.mediaElement.Sr()&&(S.l_=(0,g.X1)());S.Y.Wh?g.s7(function(){VRP(S)},0):VRP(S)}; VRP=function(S){var W;if((W=S.K_)==null||!W.Mn()){if(S.mediaElement)try{S.jm=S.mediaElement.playVideo()}catch(a){DX(S,"err."+a)}if(S.jm){var m=S.jm;m.then(void 0,function(a){if(!(g.C(S.playerState,4)||g.C(S.playerState,256)||S.jm!==m||a&&a.name==="AbortError"&&a.message&&a.message.includes("load"))){var J="promise";a&&a.name&&(J+=";m."+a.name);DX(S,J);S.Fo=!0;S.videoData.eg=!0}})}}}; DX=function(S,W){g.C(S.playerState,128)||(S.vU(Xk(S.playerState,1028,9)),S.iY("dompaused",{r:W}),S.publish("onAutoplayBlocked"))}; rK=function(S,W){W=W===void 0?!1:W;if(!S.mediaElement||!S.videoData.B)return!1;var m=W;m=m===void 0?!1:m;var a=null;var J;if((J=S.videoData.B)==null?0:J.C){a=ywD(S,m);var B;(B=S.loader)==null||B.resume()}else cA(S),S.videoData.Pn&&(a=S.videoData.Pn.JG());J=S.mediaElement.Ll();m=!1;J&&J.equals(a)||(ssK(S,a),m=!0);g.C(S.playerState,2)||(a=S.XE,W=W===void 0?!1:W,a.X||!(a.B>0)||a.mediaElement&&a.mediaElement.getCurrentTime()>0||(W={Jw:"seektimeline_resumeTime",Rs:W},a.videoData.S||(W.seekSource=15),a.seekTo(a.B, W)));a:{W=m;if(eX(S.videoData)){if(!S.videoData.PD())break a}else if(!g.R1(S.videoData))break a;if(S.mediaElement)if((a=S.videoData.X)&&S.mediaElement.ra()){J=S.mediaElement.yc();if(S.pP)if(J!==S.pP.element)m0(S);else if(W&&a.flavor==="fairplay"&&!ru())m0(S);else break a;if(S.T("html5_report_error_for_unsupported_tvos_widevine")&&ru()&&a.flavor==="widevine")S.QP("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{S.pP=new DnQ(J,S.videoData,S.Y,S.mediaElement);S.pP.subscribe("licenseerror", S.FC,S);S.pP.subscribe("qualitychange",S.A1Q,S);S.pP.subscribe("heartbeatparams",S.Kh,S);S.pP.subscribe("keystatuseschange",S.uh,S);S.pP.subscribe("ctmp",S.iY,S);W=g.R(S.kF.keys);for(a=W.next();!a.done;a=W.next())a=S.kF.get(a.value),S.pP.XB(a);S.T("html5_eme_loader_sync")||S.kF.removeAll()}}else S.QP("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return m}; ssK=function(S,W){S.Pv.tick("vta");iU("vta",void 0,"video_to_ad");S.getCurrentTime()>0&&zcQ(S.XE,S.getCurrentTime());S.mediaElement.activate(W);S.K_&&Wq(4);!S.videoData.S&&S.playerState.isOrWillBePlaying()&&S.QA.start();if(czc(S)){var m;if(W=(m=S.mediaElement)==null?void 0:m.audioTracks())W.onaddtrack=function(){mvP(S)},W.onremovetrack=function(){mvP(S)},W.onchange=function(){S.publish("internalaudioformatchange",S.videoData,!0)}}}; m0=function(S){S.pP&&(S.pP.dispose(),S.pP=null)}; u3c=function(S){var W=W===void 0?!1:W;S.mediaElement&&(S.K_?(m0(S),S.BO(),ywD(S,W)):(S.videoData.Pn&&S.videoData.Pn.wv(),S.mediaElement.stopVideo()),S.playVideo())}; gG7=function(S,W){S.Y.T("html5_log_rebuffer_reason")&&(W={r:W,lact:sA()},S.mediaElement&&(W.bh=S.mediaElement.oX()),S.iY("bufreason",W))}; OjG=function(S,W){if(S.Y.rd()&&S.mediaElement){var m=S.mediaElement.Yb();m.omt=(S.mediaElement.getCurrentTime()+S.DH()).toFixed(3);m.ps=S.playerState.state.toString(16);m.rt=(g.eR(S.zV.provider)*1E3).toFixed();m.e=W;S.IZ[S.vp++%5]=m}}; js_=function(S){if(S.Y.rd()){S.IZ.sort(function(a,J){return+a.rt-+J.rt}); for(var W=g.R(S.IZ),m=W.next();!m.done;m=W.next())m=m.value,S.iY("vpe",Object.assign({t:m.rt},m));S.IZ=[];S.vp=0}}; QsD=function(S){if(g.Ni("cobalt")&&g.Ni("nintendo switch")){var W=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;S.iY("nxdock",{d:W})}}; W8=function(S,W){var m;(m=S.loader)==null||Nv(m,W)}; AzD=function(S){Ek(S.videoData,"html5_set_debugging_opt_in")&&(S=g.hO(),S.QD(183)||(AO(183,!0),S.save()))}; XEj=function(S){return S.T("html5_remove_ios_7_hack_force_play")}; SaQ=function(S,W){S.Ec.v4()||(S.iY("sgap",{f:W}),S.Ec.clearQueue(!1,W==="pe"))}; dK=function(S){return S.T("html5_disable_video_player_initiated_seeks")&&eX(S.videoData)}; vGO=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);qV(this.api,"isLifaAdPlaying",function(){return W.api.isLifaAdPlaying()}); this.events.K(S,S.J().ZH().C.QD(a4)?"playbackChange":"serverstitchedvideochange",function(){var m;(m=W.api.getVideoData())!=null&&m.b$()&&(W.api.isLifaAdPlaying()?(W.playbackRate=W.api.getPlaybackRate(),W.api.setPlaybackRate(1)):W.api.setPlaybackRate(W.playbackRate))}); this.playbackRate=1}; J9=function(S){Tw.call(this,"Loop",g.uG.R5);this.W=S;var W=S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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"}}]}:q2K();this.setIcon(W);this.subscribe("select",this.N,this);S.createClientVe(this.element,this,28661);this.K(S,"settingsMenuVisibilityChanged",this.C);this.listen("click",this.logClick);this.K(S,"onLoopChange",this.onLoopChange);qn(this,S.getLoopVideo());S.gE().xb(this)}; HjG=function(S){Bs.call(this,S);var W=this;S.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new J9(W.api),g.Z(W,W.menuItem))}); S.addEventListener("videodatachange",function(m,a){m=W.api.getPresentingPlayerType()===2;var J;(J=W.menuItem)==null||J.Fz(!a.isLivePlayback&&!m)})}; lkX=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);qV(this.api,"seekToChapterWithAnimation",function(m){W.seekToChapterWithAnimation(m)}); qV(this.api,"seekToTimeWithAnimation",function(m,a){W.seekToTimeWithAnimation(m,a)}); qV(this.api,"renderChapterSeekingAnimation",function(m,a,J){W.api.renderChapterSeekingAnimation(m,a,J)}); qV(this.api,"setMacroMarkers",function(m){W.setMacroMarkers(S,m)}); qV(this.api,"changeMarkerVisibility",function(m,a,J){W.changeMarkerVisibility(m,a,J)}); qV(this.api,"isSameMarkerTypeVisible",function(m){return W.isSameMarkerTypeVisible(m)})}; MR6=function(S,W,m){var a=S.api.getCurrentTime()*1E30;)switch(W=zH.shift(),W.type){case "ERROR":Ej.Xy(W.payload);break;case "EVENT":Ej.logEvent(W.eventType,W.payload)}}); qV(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));qV(this.api,"updateDownloadState",this.updateDownloadState.bind(this));qV(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));qV(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));qV(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));qV(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));qV(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; h3P=function(S){Bs.call(this,S);var W=this;this.loaded=!1;this.overlay=null;this.events=new g.Tx(S);g.Z(this,this.events);this.C=new g.Tx(S);g.Z(this,this.C);this.events.K(S,"modulesCreated",function(){W.Wk()&&W.load()}); this.events.K(S,"modulesDestroyed",function(m){var a=!0;switch(m){case 2:case 3:a=!1;break;case 4:a=W.api.getPresentingPlayerType()===1}a&&W.unload()})}; YP=function(S){Bs.call(this,S);var W=this;qV(S,"getAvailableQualityData",function(){return W.getAvailableQualityData()}); qV(S,"getAvailableQualityDataAndMessaging",function(){return W.getAvailableQualityDataAndMessaging()})}; tRj=function(S,W,m){var a=[],J=W?156595:151874;S=g.R(S);for(var B=S.next();!B.done;B=S.next()){var E=B.value;B=E.video;E={formatId:E.id,qualityLabel:B.qualityLabel,quality:B.quality,isPlayable:W};if(B=m.get(B.qualityLabel))E.paygatedQualityDetails={paygatedIndicatorText:B.paygatedIndicatorText,endpoint:B.endpoint,veType:J,trackingParams:B.trackingParams};a.push(E)}return a}; AwO=function(S){for(var W=0,m=0;m0&&J>0&&(m.width+=J,g.mg(W.element,"width",m.width+"px")));S.size=m}}; g.j7=function(S,W){var m=S.C[S.C.length-1];m!==W&&(S.C.push(W),zn6(S,m,W))}; g.Qb=function(S){if(!(S.C.length<=1)){var W=S.C.pop(),m=S.C[0];S.C=[m];zn6(S,W,m,!0)}}; zn6=function(S,W,m,a){yI7(S);W&&(W.unsubscribe("size-change",S.RH,S),W.unsubscribe("back",S.Nx,S));m.subscribe("size-change",S.RH,S);m.subscribe("back",S.Nx,S);if(S.jg){g.Bn(m.element,a?"ytp-panel-animate-back":"ytp-panel-animate-forward");m.GN(S.content);m.focus();S.element.scrollLeft=0;S.element.scrollTop=0;var J=S.size;EtP(S);g.qU(S.element,J);S.B=new g.rj(function(){YUP(S,W,m,a)},20,S); S.B.start()}else m.GN(S.content),W&&W.detach()}; YUP=function(S,W,m,a){S.B.dispose();S.B=null;g.Bn(S.element,"ytp-popup-animating");a?(g.Bn(W.element,"ytp-panel-animate-forward"),g.zD(m.element,"ytp-panel-animate-back")):(g.Bn(W.element,"ytp-panel-animate-back"),g.zD(m.element,"ytp-panel-animate-forward"));g.qU(S.element,S.size);S.j=new g.rj(function(){g.zD(S.element,"ytp-popup-animating");W.detach();g.YC(W.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);S.j.dispose();S.j=null},250,S); S.j.start()}; yI7=function(S){S.B&&g.cP(S.B);S.j&&g.cP(S.j)}; XB=function(S){g.Ot.call(this,S,"ytp-shopping-product-menu");this.Ca=new g.ua(this.W);g.Z(this,this.Ca);this.hide();g.j7(this,this.Ca);g.tc(this.W,this.element,4)}; KHD=function(S,W,m){var a,J=W==null?void 0:(a=W.text)==null?void 0:a.simpleText;J&&(m=GXO(S,m,J,W==null?void 0:W.icon,W==null?void 0:W.secondaryIcon),W.navigationEndpoint&&m.listen("click",function(){S.W.f_("innertubeCommand",W.navigationEndpoint);S.hide()},S))}; TKP=function(S,W,m){var a,J=W==null?void 0:(a=W.text)==null?void 0:a.simpleText;J&&GXO(S,m,J,W==null?void 0:W.icon).listen("click",function(){var B;(W==null?void 0:(B=W.icon)==null?void 0:B.iconType)==="HIDE"?S.W.publish("featuredproductdismissed"):W.serviceEndpoint&&S.W.f_("innertubeCommand",W.serviceEndpoint);S.hide()},S)}; GXO=function(S,W,m,a,J){W=new g.Ws(g.mv({},[],!1,!!J),W,m);J&&W.updateValue("secondaryIcon",qUc(J));W.setIcon(qUc(a));g.Z(S,W);S.Ca.xb(W,!0);return W}; qUc=function(S){if(!S)return null;switch(S.iconType){case "ACCOUNT_CIRCLE":return{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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 sB();case "HIDE":return{G:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"g",U:[{G:"path",D:{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 OB()}}; v8=function(S){Vb.call(this,S,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.b({G:"button",Wn:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.b({G:"img",L:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Z(this,this.thumbnailImage);this.thumbnailIcon=new g.b({G:"div",L:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Z(this,this.thumbnailIcon);this.banner=new g.b({G:"a",L:"ytp-suggested-action-container",U:[this.thumbnailImage,this.thumbnailIcon,{G:"div",L:"ytp-suggested-action-details",U:[{G:"text",L:"ytp-suggested-action-title",Bn:"{{title}}"},{G:"text",L:"ytp-suggested-action-subtitle",Bn:"{{subtitle}}"},{G:"text",L:"ytp-suggested-action-metadata-text", Bn:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Z(this,this.banner);this.banner.GN(this.j.element);this.K(this.W,"videodatachange",this.onVideoDataChange);this.K(this.W,g.AD("suggested_action_view_model"),this.C$9);this.K(this.W,g.Z5("suggested_action_view_model"),this.iPU);this.K(this.overflowButton.element,"click",this.Hu);this.K(S,"featuredproductdismissed",this.PZ);this.W.createServerVe(this.banner.element,this.banner,!0)}; pA6=function(S){S.isInitialized&&(S.enabled=S.isVisible,S.vn=S.isVisible,FB(S),S.e1(),S.thumbnailImage.Fz(S.isVisible),S.shouldHideDismissButton||S.dismissButton.Fz(S.isVisible),S.shouldShowOverflowButton&&S.overflowButton.Fz(S.isVisible))}; H8=function(){v8.apply(this,arguments)}; FHP=function(S){Bs.call(this,S);this.C=new H8(this.api);g.Z(this,this.C);g.tc(this.api,this.C.element,4)}; la=function(S){Bs.call(this,S);var W=this;this.C=!0;var m=new g.Tx(S);g.Z(this,m);m.K(S,"internalaudioformatchange",function(a,J){VgP(W,a,J)}); m.K(S,"annotationvisibility",function(a){W.api.T("web_fix_annotations")&&ntX(W,(294).toString(),{boolValue:a})}); m.K(S,"videoplayerreset",function(){sBc(W)}); m.K(S,"videodatachange",function(a,J){W.onVideoDataChange(a,J)})}; VgP=function(S,W,m){if(m){var a="";uJ7(S,W)&&(a=W,S.api.J().Y6=W);if(a&>P(S,a)){n1_(S.api,a);var J;wB(V2(S.api.J(),(J=S.api.getVideoData())==null?void 0:g.cB(J)),function(B){var E=a;OTj(B)!==E&&ntX(S,jBG(B),{stringValue:E})})}}}; sBc=function(S){var W;if((W=UK())==null?0:W.size){var m;wB(V2(S.api.J(),(m=S.api.getVideoData())==null?void 0:g.cB(m)),function(a){(a=OTj(a))&>P(S,a)&&(S.api.J().Y6=a)})}}; XAQ=function(S,W){SP(wB(wB(S.MP(),function(m){return SA6(m,[jBG(W)])}),function(m){if(m){m=g.R(m); for(var a=m.next();!a.done;a=m.next()){var J=a.value;a=J.key;J=J.value;a&&J&&(QB7([{settingItemId:a,settingOptionValue:J}]),sBc(S))}}}),function(){S.C=!0})}; uJ7=function(S,W){S=S.api.getAvailableAudioTracks();S=g.R(S);for(var m=S.next();!m.done;m=S.next())if(m=m.value,m.getLanguageInfo().getId()===W)return m;return null}; OTj=function(S){S=jBG(S);var W=UK();S=W?W.get(S):void 0;return S&&S.stringValue?S.stringValue:""}; jBG=function(S){var W=(484).toString();S&&(W=(483).toString());return W}; gtP=function(S,W){var m;return W.split(".")[0]!==""&&((m=S.api.getVideoData())==null?void 0:!wO(m))&&!0}; ntX=function(S,W,m){QB7([{settingItemId:W,settingOptionValue:m}]);wB(S.MP(),function(a){mzj(a,W,m)})}; QB7=function(S){var W=UK();W||(W=new Map);S=g.R(S);for(var m=S.next();!m.done;m=S.next())m=m.value,W.set(m.settingItemId,m.settingOptionValue);W=JSON.stringify(Object.fromEntries(W));g.i7("yt-player-user-settings",W,2592E3)}; vtK=function(){this.label="Auto-dubbed"}; g.M7=function(S,W,m,a,J,B,E){g.Ws.call(this,g.mv({"aria-haspopup":"true"}),W,S);this.C3=a;this.S=!1;this.B=null;this.options={};this.Ln=new g.ua(m,void 0,S,J,B,E);g.Z(this,this.Ln);this.listen("keydown",this.z1);this.listen("click",this.open)}; HT_=function(S){if(S.B){var W=S.options[S.B];W.element.getAttribute("aria-checked");W.element.setAttribute("aria-checked","false");S.B=null}}; lX7=function(S,W){g.gm(S.Ln);for(var m={},a=!1,J=0;JK.start&&m>=5;O+=l}J=O.substr(0,4)+" "+O.substr(4,4)+" "+O.substr(8,4)+" "+(O.substr(12,4)+" "+O.substr(16,4))}else J="";E={video_id_and_cpn:String(W.videoId)+" / "+J,codecs:"",dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:Y.toFixed(2)+" s", date:""+(new Date).toString(),drm_style:G?"":"display:none",drm:G,debug_info:m,extra_debug_info:"",bandwidth_style:p,network_activity_style:p,network_activity_bytes:y.toFixed(0)+" KB",shader_info:T,shader_info_style:T?"":"display:none",playback_categories:""};y=a.clientWidth+"x"+a.clientHeight+(K>1?"*"+K.toFixed(2):"");Y="-";B.totalVideoFrames&&(Y=(B.droppedVideoFrames||0)+" dropped of "+B.totalVideoFrames);E.dims_and_frames=y+" / "+Y;S=S.getVolume();y=xCc(W);var e;if((e=W.j)==null?0:e.audio.N)e= "VB";else{var d;e=((d=W.j)==null?0:d.audio.C)?"DRC":Math.round(S*y)+"%"}d=Math.round(S)+"% / "+e;e=W.D0.toFixed(1);isFinite(Number(e))&&(d+=" (content loudness "+e+"dB)");E.volume=d;E.resolution=a.videoWidth+"x"+a.videoHeight;if(a=W.N){if(d=a.video)e=d.fps,e>1&&(E.resolution+="@"+e),(e=B.RF)&&e.video&&(E.resolution+=" / "+e.video.width+"x"+e.video.height,e.video.fps>1&&(E.resolution+="@"+e.video.fps)),E.codecs=kX_(a),!W.j||a.audio&&a.video?a.tI&&(E.codecs+=" / "+a.tI+"A"):E.codecs+=" / "+kX_(W.j), d.C||d.primaries?(e=d.C||"unknown",e==="smpte2084"?e+=" (PQ)":e==="arib-std-b67"&&(e+=" (HLG)"),E.color=e+" / "+(d.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(a.debugInfo)for(E.fmt_debug_info="",a=g.R(a.debugInfo),d=a.next();!d.done;d=a.next())d=d.value,E.fmt_debug_info+=d.label+":"+d.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}a=W.isLivePlayback;d=W.HG;E.live_mode_style=a||d?"":"display:none";E.live_latency_style=a?"": "display:none";if(d)E.live_mode="Post-Live"+(vB(W)?" Manifestless":"");else if(a){d=B.qq;E.live_latency_secs=d.toFixed(2)+"s";a=vB(W)?"Manifestless, ":"";W.ri&&(a+="Windowed, ");e="Uncertain";if(d>=0&&d<120)if(W.latencyClass&&W.latencyClass!=="UNKNOWN")switch(W.latencyClass){case "NORMAL":e="Optimized for Normal Latency";break;case "LOW":e="Optimized for Low Latency";break;case "ULTRALOW":e="Optimized for Ultra Low Latency";break;default:e="Unknown Latency Setting"}else e=W.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";a+=e;(d=B.Ig)&&(a+=", seq "+d.sequence);E.live_mode=a}!B.isGapless||Fh(W)&&B.v4||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none";E.bandwidth_samples=B.Uk;E.network_activity_samples=B.QN;E.live_latency_samples=B.cI;E.buffer_health_samples=B.R0;B=g.Jc(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"; Ek(W,"web_player_release_debug")?(E.release_name=z[50],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}; kX_=function(S){var W=/codecs="([^"]*)"/.exec(S.mimeType);return W&&W[1]?W[1]+" ("+S.itag+")":S.itag}; $P=function(S,W,m,a,J){g.b.call(this,{G:"div",L:"ytp-horizonchart"});this.V=W;this.sampleCount=m;this.j=a;this.X=J;this.index=0;this.heightPx=-1;this.B=this.N=null;this.C=Math.round(S/m);this.element.style.width=this.C*this.sampleCount+"px";this.element.style.height=this.V+"em"}; h9=function(S,W){if(S.heightPx===-1){var m=null;try{m=g.HI("CANVAS"),S.N=m.getContext("2d")}catch(y){}if(S.N){var a=S.C*S.sampleCount;S.B=m;S.B.width=a;S.B.style.width=a+"px";S.element.appendChild(S.B)}else for(S.sampleCount=Math.floor(S.sampleCount/4),S.C*=4,m=0;m1?2:1,S.B.height=S.heightPx*m,S.B.style.height= S.heightPx+"px",S.N.scale(1,m)));W=g.R(W);for(a=W.next();!a.done;a=W.next()){m=S;var J=S.index,B=a.value;for(a=0;a+20&&g.UN(W.N.element);a.classList.add("ytp-timely-actions-overlay");W.N.element.appendChild(a)}); g.Z(this,this.N);this.T("web_player_overlay_positioned_layout")?this.events.K(S,"basechromeinitialized",function(){W.api.nW(W.N.element,4,!0);W.N.element.setAttribute("data-overlay-order","10")}):g.tc(this.api,this.N.element,4)}; m7K=function(S){S.timelyActions&&(S.j=S.timelyActions.reduce(function(W,m){if(m.cueRangeId===void 0)return W;W[m.cueRangeId]=0;return W},{}))}; N7=function(S,W){if(S.timelyActions){S=g.R(S.timelyActions);for(var m=S.next();!m.done;m=S.next())if(m=m.value,m.cueRangeId===W)return m}}; auO=function(S,W){if((S=N7(S,W))&&S.onCueRangeExit)return xz(S.onCueRangeExit)}; DQQ=function(S,W){return S.B===void 0?!1:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===5E3?S.B===72:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===1E4?S.B===74:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===5E3?S.B===71:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===1E4?S.B===73:!1}; J9j=function(S,W){var m=Number(W==null?void 0:W.maxVisibleDurationMilliseconds);m&&(ba(S),S.vn=setTimeout(function(){if(S.C!==void 0&&(W==null?void 0:W.cueRangeId)===S.C){S.bY=!1;var a=auO(S,S.C);a&&S.api.f_("innertubeCommand",a)}},m))}; ba=function(S){S.vn&&clearTimeout(S.vn);S.vn=void 0;S.bY=!1}; wAP=function(S){if(S=S.getWatchNextResponse()){var W,m;S=(W=S.playerOverlays)==null?void 0:(m=W.playerOverlayRenderer)==null?void 0:m.timelyActionsOverlayViewModel;W=g.n(S,BmP);if(W!=null&&W.timelyActions)return W==null?void 0:W.timelyActions.map(function(a){return g.n(a,EPK)}).filter(function(a){return!!a})}}; zJj=function(S){Bs.call(this,S);var W=this;pB(this.api,"getPlaybackRate",function(){return W.api.getPlaybackRate()}); pB(this.api,"setPlaybackRate",function(m){typeof m==="number"&&W.api.setPlaybackRate(m)})}; o4=function(S,W,m,a){Tw.call(this,"Voice boost",g.uG.q8);this.W=S;this.B=W;this.N=m;this.getVoiceBoostState=a;this.C=!1;this.C3=this.W.T("html5_enable_new_audio_settings_menu")?S.gE().sY:S.gE();this.K(S,"onFilterAudioFeatures",this.FG);this.setIcon({G:"svg",D:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.j,this);this.FG()}; rm=function(S){Bs.call(this,S);var W=this;this.events=new g.Tx(S);g.Z(this,this.events);var m=this.api.T("html5_enable_voice_boost");m&&this.events.K(S,"settingsMenuInitialized",function(){y96(W)}); qV(this.api,"getVoiceBoostUserPreference",function(){return m?W.getVoiceBoostUserPreference():0}); qV(this.api,"setVoiceBoostUserPreference",function(J){m&&W.setVoiceBoostUserPreference(J)}); qV(this.api,"getVoiceBoostState",function(){return m?W.getVoiceBoostState():1}); var a;this.C=(a=uTG())!=null?a:0;this.updateEnvironmentData()}; y96=function(S){S.menuItem||(S.menuItem=new o4(S.api,function(W){S.setVoiceBoostUserPreference(W)},function(){return S.getVoiceBoostUserPreference()},function(){return S.getVoiceBoostState()}),g.Z(S,S.menuItem))}; Yt7=function(S){S=S.XD();if(!S)return!1;S=g.zc(S).exp||"";return S.includes("xpv")||S.includes("xpe")}; GPQ=function(S){S=g.R(g.Cd(S,!0));for(var W=S.next();!W.done;W=S.next())if(Yt7(W.value))return!0;return!1}; K07=function(S,W){S=g.R(g.Cd(S,!0));for(var m=S.next();!m.done;m=S.next())if(m=m.value,Yt7(m)){var a={potc:"1",pot:W};m.url&&(m.url=yi(m.url,a))}}; Tm7=function(S){return g.k(function(W){if(W.C==1)return g.EQ(W,2),g.P(W,S,4);if(W.C!=2)return g.Yp(W,0);g.Gg(W);g.B9(W)})}; c8=function(S){Bs.call(this,S);var W=this;this.useLivingRoomPoToken=!1;this.X=new g.Th;this.C=!1;this.Pv=null;this.Z=!1;this.j=null;this.V=!1;var m=S.J().getWebPlayerContextConfig();this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"spsumpreject",function(J,B,E){W.V=B;J&&W.Z&&!W.j&&(W.T("html5_generate_content_po_token")&&E?W.I0(E):W.T("html5_generate_session_po_token")&&qtj(W));W.j||W.api.iY("stp",{s:+W.Z,b:+W.V})}); this.events.K(S,"poTokenVideoBindingChange",function(J){W.I0(J)}); if(this.T("html5_web_po_on_demand_init"))var a=this.events.K(S,"videodatachange",function(J,B){B.bu&&!W.Z&&(p8P(W),W.events.TC(a))}); this.useLivingRoomPoToken=!(m==null||!m.useLivingRoomPoToken);S.addEventListener("csiinitialized",function(){W.Pv=S.Zr();W.T("html5_web_po_on_demand_init")?W.B=rB7():p8P(W)}); S.addEventListener("trackListLoaded",this.yd.bind(this));S.Th(this)}; p8P=function(S){var W=(S.T("html5_generate_session_po_token")||S.T("html5_generate_content_po_token"))&&!S.useLivingRoomPoToken;try{if(S.T("html5_use_shared_owl_instance"))F0Q(S);else if(W){S.Pv.uJ("pot_isc");var m=g.Db(S.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");m?(V7D(S),g.s7(function(){Du(S)},m)):S.T("html5_webpo_idle_priority_job")?(V7D(S),g.cX(g.wU(),function(){Du(S)})):Du(S)}}catch(a){a instanceof Error&&g.Ue(a)}}; nPO=function(S){var W=OZ(S.experiments,"html5_web_po_request_key");return W?W:g.pt(S)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; s46=function(S){var W=new UOG,m={},a=(m["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",m);return new si(W,S,function(){return a})}; uBG=function(S){return new us(S)}; wm=function(S,W){S.T("html5_webpo_bge_ctmp")&&S.api.iY(W,{hwpo:!!S.N,hwpor:S.C})}; F0Q=function(S){var W,m;g.k(function(a){if(a.C==1)return wm(S,"swpo_i"),V7D(S),Sb(S),g.P(a,yB(),2);if(a.C!=3)return W=a.N,wm(S,"swpo_co"),g.P(a,Ji_(W),3);m=a.N;S.T("html5_web_po_token_disable_caching")||m.qC(150);S.N=m;wm(S,"swpo_cc");Tm7(m.FA()).then(function(){S.C=!0;S.X.resolve();wm(S,"swpo_re")}); g.s7(function(){Du(S);wm(S,"swpo_si")},0); g.B9(a)})}; Od6=function(S){var W=S.api.J(),m=nPO(W);m=s46(m);var a=m.JU.bind(m);m.JU=function(y){var Y;return g.k(function(G){if(G.C==1)return g.P(G,a(y),2);Y=G.N;S.api.iY("itr",{});return G.return(Y)})}; try{var J=uBG({cW:m,QJ:{maxAttempts:5},LT:{xB:"CLEn",disable:W.experiments.mU("html5_web_po_disable_remote_logging"),nB:Y_7(W.experiments),D_:function(y){var Y=gPc.get(y);Y||(Y=new C7Q(y),Y=new kF(Y),gPc.set(y,Y));return Y}, in9:S.T("wpo_dis_lfdms")?0:1E3},bPU:g.Ue});var B=new fR({u$:J,cW:m,onError:g.Ue});Tm7(B.FA()).then(function(){S.C=!0;S.X.resolve()}); S.T("html5_web_po_token_disable_caching")||B.qC(150);g.Z(S,J);g.Z(S,B);S.N=B}catch(y){g.Ue(y);var E;(E=J)==null||E.dispose()}}; Du=function(S){var W=S.api.J();S.Pv.uJ("pot_ist");S.N||Od6(S);S.T("html5_bandaid_attach_content_po_token")||(S.T("html5_generate_session_po_token")&&(Sb(S),qtj(S)),W=g.Db(W.experiments,"html5_session_po_token_interval_time_ms")||0,W>0&&(S.S=g.uO(function(){Sb(S)},W)),S.Z=!0)}; Sb=function(S){var W,m,a,J;g.k(function(B){if(!S.T("html5_generate_session_po_token")||S.useLivingRoomPoToken)return B.return();W=S.api.J();m=g.D4("EOM_VISITOR_DATA")||g.D4("VISITOR_DATA");a=W.y4?W.datasyncId:m;J=OZ(W.experiments,"html5_mock_content_binding_for_session_token")||W.livingRoomPoTokenId||a;W.CC=WZ(S,J);g.B9(B)})}; WZ=function(S,W){if(!S.N){if(S.B)try{return S.B(W)}catch(B){g.Ue(B)}return""}try{S.Pv.uJ(S.C?"pot_cms":"pot_csms");var m={YS:!0,pg:!0,Gw:W};S.T("html5_web_po_token_disable_caching")||(m.eO={ZC:W,VG:!0,KY:!0});var a=S.N.UZ(m);S.Pv.uJ(S.C?"pot_cmf":"pot_csmf");if(S.C){var J;(J=S.j)==null||J.resolve();S.j=null;S.V&&(S.V=!1,S.api.app.S9().xR(!1))}return a}catch(B){return g.Ue(B),""}}; qtj=function(S){S.N&&(S.j=new Vn,S.X.promise.then(function(){S.Pv.uJ("pot_if");Sb(S)}))}; V7D=function(S){S.B||(S.B=rB7())}; mq=function(S){g.b.call(this,{G:"div",Wn:["ytp-more-videos-button","ytp-button"],D:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},U:[{G:"div",L:"ytp-more-videos-button-thumbnail"},{G:"span",L:"ytp-more-videos-button-title",Bn:"{{title}}"}]});this.W=S;this.N=this.I2("ytp-more-videos-button-thumbnail");this.B=this.I2("ytp-more-videos-button-title");this.C=new g.Tx(this);g.Z(this,this.C);this.C.K(this.W,"videodatachange",this.Y$);this.Y$();this.listen("click",this.onClick);j4_(this, 0);this.hide()}; j4_=function(S,W){switch(W){case 2:W="Hide videos";var m="Hide recommendations grid";break;default:W="More videos",m="Show recommendations grid"}S.updateValue("title",W);S.element.ariaLabel=m;S.B.textContent=W}; g.aW=function(S,W,m){g.GD(S.element,"ytp-suggestion-set",!!W.videoId);var a=W.playlistId;m=W.Zf(m?m:"mqdefault.jpg");var J=null,B=null;W instanceof PY&&(W.lengthText?(J=W.lengthText||null,B=W.p9||null):W.lengthSeconds&&(J=g.jD(W.lengthSeconds),B=g.jD(W.lengthSeconds,!0)));var E=!!a;a=E&&dq(a).type==="RD";var y=W instanceof PY?W.isLivePlayback:null,Y=W instanceof PY?W.isUpcoming:null,G=W.author,K=W.shortViewCount,T=W.publishedTimeText,p=[],q=[];G&&p.push(G);K&&(p.push(K),q.push(K));T&&q.push(T);m= {title:W.title,author:G,author_and_views:p.join(" \u2022 "),aria_label:W.ariaLabel||g.Wo("Watch $TITLE",{TITLE:W.title}),duration:J,timestamp:B,url:W.Lk(),is_live:y,is_upcoming:Y,is_list:E,is_mix:a,background:m?"background-image: url("+m+")":"",views_and_publish_time:q.join(" \u2022 "),autoplayAlternativeHeader:W.R$};W instanceof Iy&&(m.playlist_length=W.playlistLength);S.update(m)}; g.J_=function(S){var W=S.J(),m=g.y0||g.IV?{style:"will-change: opacity"}:void 0,a=W.j,J=["ytp-modern-videowall-still"];W.N&&J.push("ytp-videowall-show-text");g.b.call(this,{G:"a",Wn:J,D:{href:"{{url}}",target:a?W.bY:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},U:[{G:"div",L:"ytp-modern-videowall-still-image",D:{style:"{{background}}"},U:[{G:"span",L:"ytp-modern-videowall-still-info-duration",Bn:"{{duration}}"}]},{G:"span",L:"ytp-modern-videowall-still-info", D:{"aria-hidden":"true"},U:[{G:"span",L:"ytp-modern-videowall-still-info-bg",U:[{G:"span",L:"ytp-modern-videowall-still-info-content",D:m,U:[{G:"span",L:"ytp-modern-videowall-still-info-title",Bn:"{{title}}"},{G:"span",L:"ytp-modern-videowall-still-info-author",Bn:"{{author}}"},{G:"span",L:"ytp-modern-videowall-still-view-count-and-date-info",Bn:"{{views_and_publish_time}}"},{G:"span",L:"ytp-modern-videowall-still-info-live",Bn:"Live"}]}]}]},{G:"span",Wn:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],D:{"aria-hidden":"true"},U:[{G:"span",L:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{G:"span",L:"ytp-modern-videowall-still-listlabel-length",U:[" (",{G:"span",Bn:"{{playlist_length}}"},")"]}]},{G:"span",Wn:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],D:{"aria-hidden":"true"},U:[{G:"span",L:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{G:"span",L:"ytp-modern-videowall-still-listlabel-length",Bn:" (50+)"}]}]}); this.suggestion=null;this.N=a;this.api=S;this.C=new g.Tx(this);g.Z(this,this.C);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.C.K(S,"videodatachange",this.onVideoDataChange);S.createServerVe(this.element,this);this.onVideoDataChange()}; g.Q47=function(S,W){if(S.suggestion!==W){S.suggestion=W;var m=S.api.J(),a="hqdefault.jpg";W.Zf("sddefault.jpg")&&(a="sddefault.jpg");g.aW(S,W,a);g.f9(m)&&!S.api.T("web_player_log_click_before_generating_ve_conversion_params")&&(m=W.Lk(),a={},g.VY(S.api,"addEmbedsConversionTrackingParams",[a]),m=g.ex(m,a),S.updateValue("url",m));(W=(W=W.sessionData)&&W.itct)&&S.api.setTrackingParams(S.element,W)}}; X8X=function(S,W){var m=S.T("web_player_use_more_videos_button");g.b.call(this,{G:"div",Wn:["ytp-fullscreen-grid"],U:[{G:"div",L:"ytp-fullscreen-grid-hover-overlay",D:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{G:"div",L:"ytp-fullscreen-grid-buttons-container",U:m?[]:[{G:"button",Wn:["ytp-fullscreen-grid-expand-button","ytp-button"],D:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}", "data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},U:["{{icon}}"]}]},{G:"div",L:"ytp-fullscreen-grid-main-content",U:[{G:"div",L:"ytp-fullscreen-grid-stills-container"}]}]});this.player=S;this.stills=[];this.videoData=null;this.currentState=0;this.V=m;this.vn=this.player.T("web_player_use_external_grid_component");(this.Xn=this.player.T("web_player_enable_horizontal_endscreen_shelf"))&&g.Bn(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf"); this.j=this.I2("ytp-fullscreen-grid-main-content");this.N2=this.I2("ytp-fullscreen-grid-stills-container");this.S=this.I2("ytp-fullscreen-grid-buttons-container");this.V&&(this.X=new mq(this.player),this.S.appendChild(this.X.element),g.Z(this,this.X),this.K(this.X.element,"click",this.Dl));this.vn&&(this.N2.style.display="none");this.Z=new g.Tx(this);g.Z(this,this.Z);this.q2=W;if(this.j&&this.N2){if(S=this.I2("ytp-fullscreen-grid-hover-overlay"))this.K(S,"click",this.Dl),Uk(this.player,S,this);!this.V&& (S=this.I2("ytp-fullscreen-grid-expand-button"))&&(this.K(S,"click",this.Dl),Uk(this.player,S,this));if(S=this.player.getVideoData(1))this.videoData=S;this.player.createClientVe(this.j,this,223051);this.Z.K(this.player,"videodatachange",this.onVideoDataChange)}}; vPP=function(S,W){var m="",a=g.Rg(S.player,"More videos","v");W===2?m="Hide videos":W===1&&(m="More videos");S.element.setAttribute("title",a);S.element.setAttribute("data-title-no-tooltip",m);S.element.setAttribute("aria-label",m);if(W=S.I2("ytp-fullscreen-grid-hover-overlay"))W.setAttribute("title",a),W.setAttribute("data-title-no-tooltip",m),W.setAttribute("aria-label",m);!S.V&&(W=S.I2("ytp-fullscreen-grid-expand-button"))&&(W.setAttribute("title",a),W.setAttribute("data-title-no-tooltip",m),W.setAttribute("aria-label", m));S.player.iK()}; lu6=function(S){Bs.call(this,S);var W=this;this.V=this.C=this.B=0;this.S=null;this.Z=this.X=0;this.isEnded=!1;this.N2=null;var m=new g.Tx(S);g.Z(this,m);this.q2=g.Db(this.api.J().experiments,"web_player_default_peeking_px");this.s9=this.api.T("delhi_modern_player_enable_pause_peeking");this.Hn=g.Db(this.api.J().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.O9=this.api.T("web_player_imax_theater_mode");this.j=this.api.T("web_player_enable_fullscreen_grid_components");this.Pn=this.api.T("web_player_enable_more_videos_button"); this.Xn=this.api.T("web_player_use_external_grid_component");g.Bn(this.api.getRootNode(),"ytp-grid-scrollable");m.K(S,"fullscreentoggled",function(){BZ(W)}); m.K(S,"videodatachange",function(){if(W.j){var a=W.api.getVideoData(1);W.videoData!==a&&W.B===2&&(g.zD(W.api.getRootNode(),"ytp-grid-scrolling"),EW(W,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));W.videoData=a}},this); m.K(S,"sizestylechange",function(){W.j&&BZ(W)}); qV(this.api,"setFullscreenQuickActions",function(a){W.setFullscreenQuickActions(a)}); qV(this.api,"setPlayerOverlayVideoDetailsRenderer",function(a){W.setPlayerOverlayVideoDetailsRenderer(a)}); this.Xn&&qV(this.api,"setFullscreenGrid",function(a){W.setFullscreenGrid(a)}); qV(this.api,"setCommentsButton",function(a){W.setCommentsButton(a)}); qV(this.api,"setDescriptionButton",function(a){W.setDescriptionButton(a)}); this.j&&Hdc(this,m,S)}; Hdc=function(S,W,m){W.K(m,"keyboardserviceglobalkeydown",function(a,J){S.j&&a.keyCode===86&&!a.repeat&&S.B!==0&&(J&&(J.jk=!0),S.P_("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); W.K(S.api.getRootNode(),"wheel",function(a){if(!S.N2){var J;if(S.j&&(J=S.N)!=null&&J.element&&!g.C(S.api.getPlayerStateObject(),2)&&S.B!==0&&zF(S))if(g.Bn(S.api.getRootNode(),"ytp-grid-scrolling"),S.X===0&&(S.X=window.innerHeight),S.B===1)S.X!==0&&(S.C+=a.deltaY/S.X,S.C=g.Su(S.C,0,.7),yT(S),M76(S,S.Z/S.X+S.C>=.7,2));else if(S.B===2){J=a.deltaY<0;var B,E,y=((E=(B=S.N)==null?void 0:B.j)==null?void 0:E.scrollTop)===0;B=S.C!==0;J&&y||B&&!J?S.X!==0&&(S.C=Math.max(0,S.C-a.deltaY/S.X),yT(S),M76(S,S.Z/S.X+ Math.abs(S.C)>=.7,1)):S.C!==0&&(S.C=0,yT(S))}}},S,!0); W.K(m,"standardControlsInitialized",function(){if(!S.N){S.N=new X8X(S.api,S.Z_2.bind(S));S.Pn&&(S.bY=new mq(S.api),g.Z(S,S.bY),S.bY.element.setAttribute("data-overlay-order","12"),S.api.nW(S.bY.element,4),S.bY.listen("click",S.P_,S));g.Z(S,S.N);var a=S.api.getRootNode().querySelector(".ytp-chrome-bottom");a&&a.parentNode&&a.parentNode.insertBefore(S.N.element,a.nextSibling);U7D(S)}}); W.K(m,"presentingplayerstatechange",function(){Yb(S)}); W.K(m,"autonavvisibility",function(){Yb(S)}); S.api.iO().subscribe("visibilitystatechange",function(){Yb(S)}); L0G(S,S.B)}; M76=function(S,W,m){S.S&&clearTimeout(S.S);S.C===0&&g.zD(S.api.getRootNode(),"ytp-grid-scrolling");W?RJK(S,m):S.C<.1&&(S.S=window.setTimeout(function(){RJK(S)},1E3))}; RJK=function(S,W){S.S&&(clearTimeout(S.S),S.S=null);S.X=0;S.j&&S.B!==0&&(W?EW(S,W):Math.abs(S.C)>=.15&&S.P_("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),S.C=0,yT(S),g.zD(S.api.getRootNode(),"ytp-grid-scrolling"))}; zF=function(S){return S.api.isFullscreen()||S.O9&&S.api.JE()}; BZ=function(S){var W=zF(S);g.GD(S.api.getRootNode(),"ytp-full-bleed-player",W);S.vn&&g.F$(S.vn,W);S.playerOverlayVideoDetailsRenderer&&g.F$(S.playerOverlayVideoDetailsRenderer,W);S.j&&Yb(S)}; Yb=function(S){if(S.j)if(g.zD(S.api.getRootNode(),"ytp-grid-scrolling"),S.api.getPresentingPlayerType()===2||S.api.wU()||S.api.isMinimized())EW(S,0);else{var W=g.C(S.api.getPlayerStateObject(),2);if(W)EW(S,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(S.isEnded&&!W){var m=zF(S)?1:0;S.isEnded=W;EW(S,m)}else zF(S)?S.B!==2&&EW(S,1):EW(S,0);S.isEnded=W}}; EW=function(S,W,m){S.B=W;var a;(a=S.N)==null||a.gA(W,m);var J;(J=S.bY)==null||J.gA(W);S.C=0;yT(S);L0G(S,W)}; L0G=function(S,W){var m=S.api.getRootNode();g.GD(m,"ytp-fullscreen-grid-peeking",W===1);g.GD(m,"ytp-fullscreen-grid-active",W===2);W===1&&U7D(S)}; U7D=function(S){var W=S.api.getRootNode();if(g.C(S.api.getPlayerStateObject(),256)||g.C(S.api.getPlayerStateObject(),32)||g.C(S.api.getPlayerStateObject(),16))var m=S.Z;else if(S.s9&&S.api.getPlayerStateObject().isPaused()){var a;m=(((a=S.N)==null?void 0:a.element.clientWidth)||0)*.5625/3*S.Hn||S.q2}else m=S.q2;S.Z=m;W.style.setProperty("--ytp-grid-peek-height",S.Z+"px");g.GD(W,"ytp-disable-bottom-gradient",S.Z<=12&&S.V===0)}; yT=function(S){S.C===0&&S.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var W=S.C-S.V,m=W;S.C!==0&&(m=g.Su(W,-.01,.01));S.V+=m;S.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+S.V.toString());S.V!==S.C&&yT(S)})}; eJl=function(S){Bs.call(this,S);var W=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Tx(S);g.Z(this,this.events);this.events.K(S,"heartbeatRequest",function(m){if(W.freePreviewUsageDetails.length||W.freePreviewWatchedDuration!==null)m.heartbeatRequestParams||(m.heartbeatRequestParams={}),m.heartbeatRequestParams.unpluggedParams||(m.heartbeatRequestParams.unpluggedParams={}),W.freePreviewUsageDetails.length>0?m.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= W.freePreviewUsageDetails:m.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+W.freePreviewWatchedDuration}}); qV(S,"setFreePreviewWatchedDuration",function(m){W.freePreviewWatchedDuration=m}); qV(S,"setFreePreviewUsageDetails",function(m){W.freePreviewUsageDetails=m})}; GF=function(S){g.A.call(this);this.features=[];var W=this.C,m=new ZW(S),a=new Ea(S),J=new YP(S),B=new c8(S);var E=g.TS(S.J())?void 0:new IQ(S);var y=new yb(S),Y=new AIQ(S),G=new zJj(S),K=new A5(S);var T=g.TS(S.J())?new eJl(S):void 0;var p;var q=(p=S.J().getWebPlayerContextConfig())!=null&&p.cinematicSettingsAvailable?new ei(S):void 0;p=new t5(S);var F=S.T("enable_courses_player_overlay_purchase")?new Yc6(S):void 0;var O=g.EV(S.J())?new B2P(S):void 0;var X=new Ps(S);var l=S.J().j?new whO(S):void 0; var M=g.f9(S.J())?new DEc(S):void 0;var e=S.T("web_player_move_autonav_toggle")&&S.J().o6?new Aq6(S):void 0;var d=g.EV(S.J())?new lkX(S):void 0;var t=S.T("web_enable_speedmaster")&&g.EV(S.J())?new I4(S):void 0;var h=S.J().vQ?void 0:new cIP(S);var mD=S.T("report_pml_debug_signal")?new Hwj(S):void 0;var SO=new $v6(S),aK=new q7(S);var EP=g.IL(S.J())?new mQD(S):void 0;var qP=navigator.mediaSession&&window.MediaMetadata&&S.J().Up?new B8(S):void 0;var JG=S.T("html5_enable_drc")&&!S.J().V?new dk(S):void 0; var jO=new YI(S);var D6=g.EV(S.J())?new FHP(S):void 0;var zg=new GP(S);var kX=g.EV(S.J())&&S.T("web_sleep_timer")?new Ut(S):void 0;var C6=g.f9(S.J())?new WQ6(S):void 0;S.T("mweb_debug_sticky_settings");var IK=new la(S);var rN=new Nz7(S),RZ=new vGO(S);var U=S.T("enable_sabr_snackbar_message")?new RnG(S):void 0;var DZ=S.T("web_enable_timely_actions")?new W06(S):void 0;var hN=new xI(S);var YX,UQ;var v=((YX=S.J())==null?0:(UQ=YX.getWebPlayerContextConfig())==null?0:UQ.enableFullscreenComponentsFeature)? new lu6(S):void 0;YX=new rm(S);UQ=S.T("web_player_loop_settings_menu")&&S.J().Oa?new HjG(S):void 0;var W_=g.TS(S.J())?void 0:new zw(S);var uH=new cw_(S),y3=new Mn(S),bH=new h3P(S),Yl=new $E6(S);var w7=g.EV(S.J())&&S.J().T("delhi_modern_web_player")?new o1P(S):void 0;var m8=S.J().B?void 0:new LVl(S);W.call(this,m,a,J,B,E,y,Y,G,K,T,q,p,F,O,X,l,M,e,d,t,h,mD,SO,aK,EP,void 0,qP,JG,jO,void 0,D6,zg,kX,C6,void 0,IK,rN,RZ,void 0,U,DZ,hN,v,YX,void 0,UQ,void 0,W_,uH,y3,bH,Yl,w7,m8,new fXX(S),new kI(S))}; x76=function(){this.N=this.C=NaN}; id6=function(S,W){this.Y=S;this.timerName="";this.B=!1;this.N=NaN;this.j=new x76;this.C=W||null;this.B=!1}; d7c=function(S,W,m){var a=g.ZI(W.w2)&&!W.w2.V;if(W.w2.V4&&($L(W.w2)||W.w2.q2==="shortspage"||TJ(W.w2)||a)&&!S.B){S.B=!0;S.V=W.clientPlaybackNonce;g.D4("TIMING_ACTION")||c6("TIMING_ACTION",S.Y.csiPageType);S.Y.csiServiceName&&c6("CSI_SERVICE_NAME",S.Y.csiServiceName);if(S.C){a=S.C.Zr();for(var J=g.R(Object.keys(a)),B=J.next();!B.done;B=J.next())B=B.value,UY(B,a[B],S.timerName);a=g.my(MFc)(S.C.MG);g.LG(a,S.timerName);a=S.C;a.C={};a.MG={}}g.LG({playerInfo:{visibilityState:g.my(lfX)()},playerType:"LATENCY_PLAYER_HTML5"}, S.timerName);S.X!==W.clientPlaybackNonce||Number.isNaN(S.N)||(eG("_start",S.timerName)?m=g.my(Xu)("_start",S.timerName)+S.N:g.Ue(new g.uc("attempted to log gapless pbs before CSI timeline started",{cpn:W.clientPlaybackNonce})));!m||eG("pbs",S.timerName)||W.uo||K7(S,m)}}; K7=function(S,W,m){UY("pbs",W!=null?W:(0,g.X1)(),m!=null?m:S.timerName)}; TF=function(S){ffO();PP6();S.timerName=""}; IuK=function(S){if(S.C){var W=S.C;W.C={};W.MG={}}S.B=!1;S.X=void 0;S.N=NaN}; Pac=function(S,W){g.au.call(this);this.w2=S;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.C=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Dr={};this.N=0;if(S=W.session_data)this.sessionData=J$(S,"&");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(S=W.api)typeof S==="string"&&S.length===16?W.list="PL"+S:W.playlist=S;if(S=W.list)switch(W.listType){case "user_uploads":this.listId=new ih("UU","PLAYER_"+S);break;default:var m=W.playlist_length;m&&(this.length=Number(m)||0);this.listId=dq(S);if(S=W.video)this.items=S.slice(0),this.loaded=!0}else if(W.playlist){S=W.playlist.toString().split(",");this.index>0&&(this.items=[]);S=g.R(S);for(m=S.next();!m.done;m=S.next())(m=m.value)&& this.items.push({video_id:m});this.length=this.items.length;if(S=W.video)this.items=S.slice(0),this.loaded=!0}this.setShuffle(!!W.shuffle);if(S=W.suggestedQuality)this.quality=S;this.Dr=M_(W,"playlist_");this.B=(W=W.thumbnail_ids)?W.split(","):[]}; fuX=function(S){return!!(S.playlist||S.list||S.api)}; kP7=function(S){var W=S.index+1;return W>=S.length?0:W}; $7P=function(S){var W=S.index-1;return W<0?S.length-1:W}; g.qH=function(S,W,m,a){W=W!==void 0?W:S.index;W=S.items&&W in S.items?S.items[S.order[W]]:null;var J=null;W&&(m&&(W.autoplay="1"),a&&(W.autonav="1"),J=new g.a1(S.w2,W),g.Z(S,J),J.pJ=!0,J.startSeconds=S.startSeconds||J.clipStart||0,S.listId&&(J.playlistId=S.listId.toString()));return J}; hJ6=function(S,W){S.index=g.Su(W,0,S.length-1);S.startSeconds=0}; t7D=function(S,W){if(W.video&&W.video.length){S.title=W.title||"";S.description=W.description;S.views=W.views;S.likes=W.likes;S.dislikes=W.dislikes;S.author=W.author||"";var m=W.loop;m&&(S.loop=m);m=g.qH(S);S.items=[];for(var a=g.R(W.video),J=a.next();!J.done;J=a.next())if(J=J.value)J.video_id=J.encrypted_id,S.items.push(J);S.length=S.items.length;(W=W.index)?S.index=W:S.findIndex(m);S.setShuffle(!1);S.loaded=!0;S.N++;S.C&&S.C()}}; Nm6=function(S,W){var m,a,J,B,E,y,Y;return g.k(function(G){if(G.C==1){m=g.CG();var K=S.J(),T={context:g.KB(S),playbackContext:{contentPlaybackContext:{ancestorOrigins:K.ancestorOrigins}}},p=K.getWebPlayerContextConfig();if(p==null?0:p.encryptedHostFlags)T.playbackContext.contentPlaybackContext.encryptedHostFlags=p.encryptedHostFlags;if(p==null?0:p.hideInfo)T.playerParams={showinfo:!1};p=K.embedConfig;var q=S.xT;var F=W.docid||W.video_id||W.videoId||W.id;if(!F){F=W.raw_embedded_player_response;if(!F){var O= W.embedded_player_response;O&&(F=JSON.parse(O))}if(F){var X,l,M,e,d,t;F=((t=g.n((X=F)==null?void 0:(l=X.embedPreview)==null?void 0:(M=l.thumbnailPreviewRenderer)==null?void 0:(e=M.playButton)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.navigationEndpoint,g.GR))==null?void 0:t.videoId)||null}else F=null}X=(X=F)?X:void 0;l=S.playlistId?S.playlistId:W.list;M=W.listType;if(l){var h;M==="user_uploads"?h={username:l}:h={playlistId:l};A9D(p,q,X,W,h,K.experiments);T.playlistRequest=h}else W.playlist? (h={templistVideoIds:W.playlist.toString().split(",")},A9D(p,q,X,W,h,K.experiments),T.playlistRequest=h):X&&(h={videoId:X},q&&K.T("embeds_enable_per_video_embed_config")?h.serializedThirdPartyEmbedConfig=q:p&&(h.serializedThirdPartyEmbedConfig=p),T.singleVideoRequest=h);a=T;J=g.Wz(Zd7);g.EQ(G,2);return g.P(G,g.Pz(m,a,J),4)}if(G.C!=2)return B=G.N,E=S.J(),W.raw_embedded_player_response=B,E.Pn=T1(W,g.f9(E)),E.B=E.Pn==="EMBEDDED_PLAYER_MODE_PFL",B&&(y=B,y.trackingParams&&F6(y.trackingParams)),G.return(new g.a1(E, W));Y=g.Gg(G);Y instanceof Error||(Y=Error("b259802748"));g.lR(Y);return G.return(S)})}; A9D=function(S,W,m,a,J,B){a.index&&(J.playlistIndex=String(Number(a.index)+1));J.videoId=m?m:"";W&&B.mU("embeds_enable_per_video_embed_config")?J.serializedThirdPartyEmbedConfig=W:S&&(J.serializedThirdPartyEmbedConfig=S)}; g.Fi=function(S,W){p7.get(S);p7.set(S,W)}; g.VT=function(S){g.au.call(this);this.loaded=!1;this.player=S}; bdP=function(){this.N=[];this.C=[]}; g.Cd=function(S,W){return W?S.C.concat(S.N):S.C}; g.n7=function(S,W){switch(W.kind){case "asr":oPP(W,S.N);break;default:oPP(W,S.C)}}; oPP=function(S,W){g.Nx(W,function(m){return S.equals(m)})||W.push(S)}; g.sW=function(S){g.A.call(this);this.E9=S;this.C=new bdP;this.B=null;this.X=[];this.S=[]}; g.r9D=function(S,W){var m;return W.J().T("html5_use_hls_native_captions")&&g.F1&&S.Hv()&&!((m=S.N)==null||!fx(m))}; g.u_=function(S,W,m){g.sW.call(this,S);this.videoData=W;this.audioTrack=m;this.N=null;this.j=!1;this.X=W.Du;this.S=W.F4;this.j=g.o1(W)}; g.CaO=function(S,W){var m;return S.J().T("safari_live_drm_captions_fix")&&((m=S.getVideoData())==null?0:m.PD())?!1:g.TS(S.J())&&!W.isManifestless}; g.gX=function(S,W){return NZ(S.info.mimeType)?W?S.info.itag===W:!0:!1}; g.c9Q=function(S,W){if(S.C!=null&&g.CaO(W,S.C)&&S.C.C.rawcc!=null)return!0;if(!S.Hv())return!1;W=!!S.C&&S.C.isManifestless&&Object.values(S.C.C).some(function(m){return g.gX(m,"386")}); S=!!S.C&&!S.C.isManifestless&&g.Q36(S.C);return W||S}; g.OW=function(S,W,m,a,J,B){g.sW.call(this,S);this.videoId=m;this.Z1=J;this.eventId=B;this.V={};this.N=null;S=a||g.zc(W).hl||"";S=S.split("_").join("-");this.j=yi(W,{hl:S})}; D7P=function(S,W,m){m=m===void 0?"":m;g.A.call(this);var a=this;this.W=S;this.X=W;this.B=m;this.MG={};this.C={};this.N=null;this.j=new Set;this.V=new g.Tx(this);this.f3={qR2:function(){return a.X}, cjY:function(){return a.B}}; this.Z=this.W.T("web_player_defer_modules");this.Ar=new Map;g.Z(this,this.V);this.V.K(S,"videodatachange",this.onVideoDataChange)}; w8K=function(S,W){S.N=W}; g.jb=function(S){return S.Ar.get("captions")}; BX6=function(S,W){switch(W){case "ad":return SWl(S);case "annotations_module":return S.W.isEmbedsShortsMode()?S=!1:(W=S.W,S=W.J(),W=W.getVideoData(),S=S.B||W.mC||S.controlsType==="3"?!1:S.Hn.isEmpty()&&S.playerStyle!=="annotation-editor"&&S.playerStyle!=="live-dashboard"?!!W.hm||!!g.Z9(W)||!!g.NW(W):!0),S;case "asmjs":return QT(S);case "creatorendscreen":return Wqc(S);case "embed":return g.f9(S.W.J());case "endscreen":return g.mH6(S);case "heartbeat":return S.Lf();case "kids":return DI(S.W.J());case "remote":return S.W.J().uO; case "miniplayer":return S.W.J().showMiniplayerUiWhenMinimized;case "offline":return S.W.J().kB;case "captions":return a76(S);case "unplugged":return g.NT(S.W.J());case "ux":return S.W.J().hX;case "webgl":return J_X(S);case "ypc":return S.OQ();default:return g.lR(Error("Module descriptor "+W+" does not match")),!1}}; Xi=function(S,W,m,a,J){var B;m=m===void 0?!1:m;a=a===void 0?!1:a;var E=S.Ar.get(W);if(!E||a)if(J||(J=function(){Xi(S,W,m,a)}),B||(B=function(){vZ(S,W)}),E=E||EbX(S,W,BX6(S,W),J,B))S.Ar.set(W,E),E.create(),S.W.publish("modulecreated",W),m&&S.W.ZD("onApiChange")}; y_7=function(S){var W=W===void 0?!1:W;var m,a,J,B,E;return g.k(function(y){if(y.C==1)return(m=S.Ar.get("asmjs"))&&!W?y.return(m):(a=p7.get("asmjs"))!=null?(J=a,y.cn(2)):g.P(y,new Promise(function(Y,G){zEj(S,"asmjs",function(){var K=p7.get("asmjs");K?Y(K):G("cannot load module asmjs")},G)}),3); y.C!=2&&(J=y.N);B=J;if(!B)return y.return(Promise.reject("cannot load module asmjs"));E=new B(S.W);S.Ar.set("asmjs",E);E.create();return y.return(E)})}; Kq7=function(S){YWK(S)&&S.jR();GFK(S)&&(Xi(S,"captions",!0),Xi(S,"endscreen"),S.xz(),Xi(S,"creatorendscreen",!0))}; vZ=function(S,W){W=g.R(TXQ[W]);for(var m=W.next();!m.done;m=W.next())S.W.Xp(m.value)}; GFK=function(S){var W=S.W.getVideoData(),m=S.Z&&!W.isInlinePlaybackNoAd;S.W.T("html5_defer_modules_on_ads_only")&&!W.isAd()&&(m=!1);return m}; YWK=function(S){S=S.W.getVideoData();var W;if(W=S.T("web_player_defer_ad")){if(g.oZ(S.S1,"ad")||uGj(S)||S.enableServerStitchedDai)S=!1;else{W=S.playerResponse;S=S.startSeconds;var m=W==null?void 0:W.adPlacements;if(W=m){W=Number.MAX_VALUE;m=g.R(m);for(var a=m.next();!a.done;a=m.next())if(a=a.value.adPlacementRenderer){var J=void 0,B=(J=a.config)==null?void 0:J.adPlacementConfig;J=void 0;if(((J=B)==null?void 0:J.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var E=J=void 0;B=Number((J=B)==null?void 0:(E= J.adTimeOffset)==null?void 0:E.offsetStartMilliseconds)||0;E=J=void 0;a=Number(((J=a.renderer)==null?void 0:(E=J.adBreakServiceRenderer)==null?void 0:E.prefetchMilliseconds)||0);a=B-a;a=11;S=S.api.J().Z&&i_;return!(!W&&!S)}; NH=function(S,W){return!S.api.isInline()&&!i7K(S,M5(W))&&g.Qj(W)}; xHQ=function(S){S.DD.Ta();if(S.Le&&S.BK)S.BK=!1;else if(!S.api.J().O9&&!S.oN()){var W=S.api.getPlayerStateObject();g.C(W,2)&&g.d_(S.api)||S.EQ(W);!S.api.J().uY||W.isCued()||g.C(W,1024)?S.WJ():S.Zs.isActive()?(S.e0(),S.Zs.stop()):S.Zs.start()}}; I7X=function(S,W){var m;if((m=S.api.getVideoData())==null?0:m.mutedAutoplay){var a,J;if((a=W.target)==null?0:(J=a.className)==null?0:J.includes("ytp-info-panel"))return!1}return g.Qj(W)&&S.api.isMutedByMutedAutoplay()?(S.api.unMute(),S.api.getPresentingPlayerType()===2&&S.api.playVideo(),W=S.api.getPlayerStateObject(),!g.C(W,4)||g.C(W,8)||g.C(W,2)||S.WJ(),!0):!1}; P_G=function(S,W,m){S.api.isFullscreen()?m<1-W&&S.api.toggleFullscreen():m>1+W&&S.api.toggleFullscreen()}; eEP=function(S){var W=bO()&&A$()>=67&&!S.api.J().Z;S=S.api.J().disableOrganicUi;return!g.Ni("tizen")&&!dJ&&!W&&!S}; g.b_=function(S){g.b.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",Bn:"{{title}}"}]},{G:"div",L:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",Bn:"{{icon}}"}]}]});this.W=S;this.N=new g.rj(this.show,10,this);S=this.W.T("delhi_modern_web_player")?1E3:500;this.C=new g.rj(this.hide,S,this);g.Z(this,this.N);g.Z(this,this.C);this.hide()}; rX=function(S,W,m){if(W<=0){m=UB();W="muted";var a=0}else m=m?{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,D:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,D:{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"}}]},a=Math.floor(W),W=a+"volume";oW(S,m,W,a+"%")}; f7c=function(S,W){W=W?{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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"}}]}:Dic();var m=S.W.getPlaybackRate(),a=g.Wo("Speed is $RATE",{RATE:String(m)});oW(S,W,a,m+"x")}; kFP=function(S,W){W=W?"Subtitles/closed captions on":"Subtitles/closed captions off";oW(S,MPP(S.W),W)}; oW=function(S,W,m,a){a=a===void 0?"":a;S.updateValue("label",m===void 0?"":m);S.updateValue("icon",W);g.Dh(S.C);S.N.start();S.updateValue("title",a);g.GD(S.element,"ytp-bezel-text-hide",!a)}; $H6=function(S,W){g.b.call(this,{G:"button",Wn:["ytp-button","ytp-cards-button"],D:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.f9(S.J()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[S.J().T("player_new_info_card_format")?S2j():{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",L:"ytp-cards-button-title",Bn:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",D:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",D:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",D:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", L:"ytp-cards-button-title",Bn:"Shopping"}]}]});this.W=S;this.N=W;this.C=null;this.fade=new g.mo(this,250,!0,100);g.Z(this,this.fade);g.GD(this.N,"ytp-show-cards-title",g.f9(S.J()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.TQ(!0)}; hED=function(S,W){g.b.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:S.J().T("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",D:{"aria-label":"Show cards","aria-haspopup":"true"},U:[S2j()]},{G:"img",L:"ytp-cards-teaser-channel-avatar",D:{alt:"","aria-hidden":"true"}},{G:"span",L:"ytp-cards-teaser-label",Bn:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",D:{"aria-label":"Close"},U:[g.VG()]}]:[{G:"span", L:"ytp-cards-teaser-label",Bn:"{{text}}"}]}]});var m=this;this.W=S;this.FM=W;this.fade=new g.mo(this,250,!1,250);this.C=null;this.V=new g.rj(this.Ve9,300,this);this.X=new g.rj(this.nP9,2E3,this);this.j=[];this.B=null;this.Z=new g.rj(function(){m.element.style.margin="0"},250); this.onClickCommand=this.N=null;g.Z(this,this.fade);g.Z(this,this.V);g.Z(this,this.X);g.Z(this,this.Z);S.J().T("player_new_info_card_format")?(g.Bn(S.getRootNode(),"ytp-cards-teaser-dismissible"),this.K(this.I2("ytp-cards-teaser-close-button"),"click",this.Lx),this.K(this.I2("ytp-cards-teaser-info-icon"),"click",this.CL),this.K(this.I2("ytp-cards-teaser-label"),"click",this.CL)):this.listen("click",this.CL);this.K(W.element,"mouseover",this.Bb);this.K(W.element,"mouseout",this.N8);this.K(S,"cardsteasershow", this.af_);this.K(S,"cardsteaserhide",this.OV);this.K(S,"cardstatechange",this.Hs);this.K(S,"presentingplayerstatechange",this.Hs);this.K(S,"appresize",this.pN);this.K(S,"onShowControls",this.pN);this.K(S,"onHideControls",this.cC);this.listen("mouseenter",this.Kx)}; tb_=function(S){g.b.call(this,{G:"button",Wn:[C7.BUTTON,C7.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:C7.TITLE_NOTIFICATIONS_ON,D:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},U:[g.BU7()]},{G:"div",L:C7.TITLE_NOTIFICATIONS_OFF,D:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path", D:{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=S;this.C=!1;S.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receive notifications about every new video")}; A_7=function(S,W){S.C=W;S.element.classList.toggle(C7.NOTIFICATIONS_ENABLED,S.C);var m=S.api.getVideoData();m?(W=W?m.TA:m.HS)?(S=S.api.MP())?IP(S,W):g.lR(Error("No innertube service available when updating notification preferences.")):g.lR(Error("No update preferences command available.")):g.lR(Error("No video data when updating notification preferences."))}; NXl=function(S,W,m){var a=a===void 0?800:a;var J=J===void 0?600:J;var B=document.location.protocol;S=Tpj(B+"//"+S+"/signin?context=popup","feature",W,"next",B+"//"+location.hostname+"/post_login");Z7O(S,m,a,J)}; Z7O=function(S,W,m,a){m=m===void 0?800:m;a=a===void 0?600:a;if(S=g.La(window,S,"loginPopup","width="+m+",height="+a+",resizable=yes,scrollbars=yes"))NtQ(function(){W()}),S.moveTo((screen.width-m)/2,(screen.height-a)/2)}; g.cZ=function(S,W,m,a,J,B,E,y,Y,G,K,T){S=S.charAt(0)+S.substring(1).toLowerCase();m=m.charAt(0)+m.substring(1).toLowerCase();if(W==="0"||W==="-1")W=null;if(a==="0"||a==="-1")a=null;var p=K.J(),q=p.userDisplayName&&g.ZI(p);g.b.call(this,{G:"div",Wn:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",D:q?{title:K.J().T("player_tooltip_data_title_killswitch")?g.Wo("Subscribe as $USER_NAME",{USER_NAME:p.userDisplayName}):"","data-tooltip-title":g.Wo("Subscribe as $USER_NAME",{USER_NAME:p.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":q_(p),"data-tooltip-opaque":String(g.f9(p)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},S]},W?{G:"div",L:"ytp-sb-count",Bn:W}:""]},{G:"div",L:"ytp-sb-unsubscribe",D:q?{title:K.T("player_tooltip_data_title_killswitch")?g.Wo("Subscribed as $USER_NAME",{USER_NAME:p.userDisplayName}):"","data-tooltip-title":g.Wo("Subscribed as $USER_NAME",{USER_NAME:p.userDisplayName}), "aria-label":"Unsubscribe from channel","data-tooltip-image":q_(p),"data-tooltip-opaque":String(g.f9(p)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},m]},a?{G:"div",L:"ytp-sb-count",Bn:a}:""]}],D:{"aria-live":"polite"}});var F=this;this.channelId=E;this.W=K;this.B=T;var O=this.I2("ytp-sb-subscribe"),X=this.I2("ytp-sb-unsubscribe");B&&g.Bn(this.element,"ytp-sb-classic");if(J){y?this.C():this.N();var l=function(){if(p.Xn){var e= F.channelId;if(Y||G){var d={c:e};var t;g.gz.isInitialized()&&(t=EfP(d));d=t||"";if(t=K.getVideoData())if(t=t.subscribeCommand){var h=K.MP();h?(IP(h,t,{botguardResponse:d,feature:Y}),K.f_("SUBSCRIBE",e)):g.lR(Error("No innertube service available when updating subscriptions."))}else g.lR(Error("No subscribe command in videoData."));else g.lR(Error("No video data available when updating subscription."))}X.focus();X.removeAttribute("aria-hidden");O.setAttribute("aria-hidden","true")}else NXl(g.WY(F.W.J()), "sb_button",F.j)},M=function(){var e=F.channelId; if(Y||G){var d=K.getVideoData();IP(K.MP(),d.unsubscribeCommand,{feature:Y});K.f_("UNSUBSCRIBE",e)}O.focus();O.removeAttribute("aria-hidden");X.setAttribute("aria-hidden","true")}; this.K(O,"click",l);this.K(X,"click",M);this.K(O,"keypress",function(e){e.keyCode===13&&l(e)}); this.K(X,"keypress",function(e){e.keyCode===13&&M(e)}); this.K(K,"SUBSCRIBE",this.C);this.K(K,"UNSUBSCRIBE",this.N);this.B&&q&&(FVO(K),Uk(K,O,this),Uk(K,X,this))}else g.Bn(O,"ytp-sb-disabled"),g.Bn(X,"ytp-sb-disabled")}; r_P=function(S){g.b.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:S.J().bY,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{G:"div",L:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"div",L:"ytp-title-expanded-title",U:[{G:"a",Bn:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:S.J().bY,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",L:"ytp-title-expanded-subtitle",Bn:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var W=this;this.api=S;this.channel=this.I2("ytp-title-channel");this.N=this.I2("ytp-title-channel-logo");this.channelName=this.I2("ytp-title-expanded-title");this.X=this.I2("ytp-title-expanded-overlay");this.B=this.C=this.subscribeButton=null;this.j=!1;S.createClientVe(this.N,this,36925);S.createClientVe(this.channelName,this, 37220);g.f9(this.api.J())&&b7P(this);this.K(S,"videodatachange",this.L_);this.K(S,"videoplayerreset",this.L_);this.K(this.channelName,"click",function(m){W.api.logClick(W.channelName);g.La(window,obc(W));m.preventDefault()}); this.K(this.N,"click",this.Sc_);this.L_()}; C_6=function(S){if(!S.api.J().Wv){var W=S.api.getVideoData(),m=new g.cZ("Subscribe",null,"Subscribed",null,!0,!1,W.Z7,W.subscribed,"channel_avatar",null,S.api,!0);S.api.createServerVe(m.element,S);var a;S.api.setTrackingParams(m.element,((a=W.subscribeButtonRenderer)==null?void 0:a.trackingParams)||null);S.K(m.element,"click",function(){S.api.logClick(m.element)}); S.subscribeButton=m;g.Z(S,S.subscribeButton);S.subscribeButton.GN(S.X);S.subscribeButton.hide();var J=new tb_(S.api);S.C=J;g.Z(S,J);J.GN(S.X);J.hide();S.K(S.api,"SUBSCRIBE",function(){W.CC&&(J.show(),S.api.logVisibility(J.element,!0))}); S.K(S.api,"UNSUBSCRIBE",function(){W.CC&&(J.hide(),S.api.logVisibility(J.element,!1),A_7(J,!1))})}}; b7P=function(S){var W=S.api.J();C_6(S);S.updateValue("flyoutUnfocusable","true");S.updateValue("channelTitleFocusable","-1");S.updateValue("shouldHideExpandedTitleForA11y","true");S.updateValue("shouldHideExpandedSubtitleForA11y","true");W.N||W.g2||(S.K(S.channel,"mouseenter",S.Lv),S.K(S.channel,"mouseleave",S.QX),S.K(S.channel,"focusin",S.Lv),S.K(S.channel,"focusout",function(m){S.channel.contains(m.relatedTarget)||S.QX()})); S.B=new g.rj(function(){S.isExpanded()&&(S.api.logVisibility(S.channelName,!1),S.subscribeButton&&(S.subscribeButton.hide(),S.api.logVisibility(S.subscribeButton.element,!1)),S.C&&(S.C.hide(),S.api.logVisibility(S.C.element,!1)),S.channel.classList.remove("ytp-title-expanded"),S.channel.classList.add("ytp-title-show-collapsed"))},500); g.Z(S,S.B);S.K(S.channel,c__,function(){DH6(S)}); S.K(S.api,"onHideControls",S.kQ);S.K(S.api,"appresize",S.kQ);S.K(S.api,"fullscreentoggled",S.kQ)}; DH6=function(S){S.channel.classList.remove("ytp-title-show-collapsed");S.channel.classList.remove("ytp-title-show-expanded")}; wZK=function(S){var W=S.api.getPlayerSize();return g.f9(S.api.J())&&W.width>=524}; obc=function(S){var W=S.api.J(),m=S.api.getVideoData(),a=g.p1(W)+m.O9;g.yY(m)&&(a="https://music.youtube.com"+m.O9);if(!g.f9(W))return a;W={};g.VY(S.api,"addEmbedsConversionTrackingParams",[W]);return g.ex(a,W)}; D7=function(S){var W=g.mv({"aria-haspopup":"true"});g.Ws.call(this,W,S);this.listen("keydown",this.z1)}; wX=function(S,W){S.element.setAttribute("aria-haspopup",String(W))}; ShO=function(S,W){g.b.call(this,{G:"div",L:"ytp-user-info-panel",D:{"aria-label":"User info"},U:S.J().Xn?[{G:"div",L:"ytp-user-info-panel-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",L:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},Bn:"{{watchingAsUsername}}"},{G:"div",L:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Bn:"{{watchingAsEmail}}"}]}]:[{G:"div",L:"ytp-user-info-panel-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content", U:[{G:"div",U:[{G:"text",D:{tabIndex:"{{userInfoFocusable}}"},Bn:"Signed out"}]},{G:"div",L:"ytp-user-info-panel-login",U:[{G:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Bn:S.J().Wv?"":"Sign in on YouTube"}]}]}]});this.E9=S;this.sourceElement=W;S.J().Xn||S.J().Wv||this.K(this.I2("ytp-user-info-panel-login"),"click",this.J5);this.closeButton=new g.b({G:"button",Wn:["ytp-collapse","ytp-button"],D:{title:"Close"},U:[g.Mu()]});this.closeButton.GN(this.element);g.Z(this,this.closeButton);this.K(window, "blur",this.hide);this.K(document,"click",this.rl);this.L_()}; B4O=function(S,W,m){g.ua.call(this,S);var a=this;this.C3=W;this.Zz=m;this.getVideoUrl=new D7(6);this.jn=new D7(5);this.CR=new D7(4);this.Yb=new D7(3);this.x3=new g.Ws(g.mv({href:"{{href}}",target:this.W.J().bY},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Ws(g.mv(),1,"Stats for nerds");this.Nv=new g.yG({G:"div",Wn:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},Bn:"{{text}}"});this.Pg=new nd(this.W,this.Nv);this.NT=this.Jj=null;g.f9(this.W.J())&&(this.closeButton= new g.b({G:"button",Wn:["ytp-collapse","ytp-button"],D:{title:"Close"},U:[g.Mu()]}),g.Z(this,this.closeButton),this.closeButton.GN(this.element),this.closeButton.listen("click",this.GF,this));g.f9(this.W.J())&&(this.Hk=new g.Ws(g.mv(),10,"Account"),g.Z(this,this.Hk),this.xb(this.Hk,!0),this.Hk.listen("click",this.MCN,this),S.createClientVe(this.Hk.element,this.Hk,137682));this.W.J().Oa&&(this.iV=new Tw("Loop",9),g.Z(this,this.iV),this.xb(this.iV,!0),this.iV.listen("click",this.Gk2,this),S.createClientVe(this.iV.element, this.iV,28661));this.W.T("web_player_miniplayer_in_context_menu")&&(this.z6=new g.Ws(g.mv(),8,"Miniplayer"),g.Z(this,this.z6),this.xb(this.z6,!0),this.z6.listen("click",this.sY9,this),S.createClientVe(this.z6.element,this.z6,62946));this.W.T("web_watch_pip_context_menu_button")&&this.W.J().showMiniplayerButton&&(this.Oe=new g.Ws(g.mv(),7,"Picture-in-picture"),g.Z(this,this.Oe),this.xb(this.Oe,!0),this.Oe.listen("click",this.zV2,this),S.createClientVe(this.Oe.element,this.Oe,194442));g.Z(this,this.getVideoUrl); this.xb(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.IzN,this);S.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Z(this,this.jn);this.xb(this.jn,!0);this.jn.listen("click",this.az2,this);S.createClientVe(this.jn.element,this.jn,28660);g.Z(this,this.CR);this.xb(this.CR,!0);this.CR.listen("click",this.qd2,this);S.createClientVe(this.CR.element,this.CR,28658);g.Z(this,this.Yb);this.xb(this.Yb,!0);this.Yb.listen("click",this.jYQ,this);g.Z(this,this.x3);this.xb(this.x3,!0); this.x3.listen("click",this.Jr9,this);g.Z(this,this.showVideoInfo);this.xb(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.oK2,this);g.Z(this,this.Nv);this.Nv.listen("click",this.md9,this);g.Z(this,this.Pg);W56()&&(this.Jj=new g.b({G:"textarea",L:"ytp-html5-clipboard",D:{readonly:"",tabindex:"-1"}}),g.Z(this,this.Jj),this.Jj.GN(this.element));var J;(J=this.Hk)==null||J.setIcon(Y2D());var B;(B=this.iV)==null||B.setIcon(q2K());var E;(E=this.z6)==null||E.setIcon(this.W.T("delhi_modern_web_player_icons")? apc():QG());var y;(y=this.Oe)==null||y.setIcon(QG());this.Yb.setIcon({G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{"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.x3.setIcon(sB());this.showVideoInfo.setIcon(wLO());this.K(S,"onLoopChange",this.onLoopChange);this.K(S,"videodatachange",this.onVideoDataChange);this.K(S,"fullscreentoggled",function(){mN7(a)}); this.K(S,"minimized",function(){mN7(a);var Y;(Y=a.Oe)==null||Y.Fz(!a.W.isMinimized()&&a.W.J().showMiniplayerButton)}); aac(this);JtP(this,this.W.getVideoData())}; Sr=function(S,W){var m=!1;if(S.Jj){var a=S.Jj.element;a.value=W;a.select();try{m=document.execCommand("copy")}catch(J){}}m?S.C3.OV():(S.Nv.setContent(W,"text"),g.j7(S.C3,S.Pg),sa(S.Nv.element),S.Jj&&(S.Jj=null,aac(S)));return m}; W56=function(){var S=document.queryCommandSupported&&document.queryCommandSupported("copy");u9O("Chromium")>=43&&(S=!0);u9O("Firefox")<=40&&(S=!1);return S}; mN7=function(S){var W;(W=S.z6)==null||W.Fz(!S.W.isFullscreen()&&!S.W.isMinimized()&&S.W.getPresentingPlayerType()!==2&&S.W.J().showMiniplayerButton)}; JtP=function(S,W){var m=S.W.J(),a=S.W.getPresentingPlayerType()===2,J=!a||W.isListed;J=!m.vn&&!!W.videoId&&J;m.playerStyle!=="play"?m="https://support.google.com/youtube/?p=report_playback":(m={contact_type:"playbackissue",html5:1,ei:W.eventId,v:W.videoId,p:"movies_playback"},W.N&&(m.fmt=W.N.itag),W.clientPlaybackNonce&&(m.cpn=W.clientPlaybackNonce),W.partnerId&&(m.partnerid=W.partnerId),m=g.ex("//support.google.com/googleplay/",m));S.CR.Fz(J&&W.allowEmbed);S.getVideoUrl.Fz(J);S.jn.Fz(J&&!W.isLivePlayback); S.x3.setContent(m,"href");var B;(B=S.iV)==null||B.Fz(!W.isLivePlayback&&!a);mN7(S);var E;(E=S.Hk)==null||E.Fz(!a)}; aac=function(S){var W=!!S.Jj;g.Si(S.Yb,W?"Copy debug info":"Get debug info");wX(S.Yb,!W);g.Si(S.CR,W?"Copy embed code":"Get embed code");wX(S.CR,!W);g.Si(S.getVideoUrl,W?"Copy video URL":"Get video URL");wX(S.getVideoUrl,!W);g.Si(S.jn,W?"Copy video URL at current time":"Get video URL at current time");wX(S.jn,!W);S.CR.setIcon(W?COP():null);S.getVideoUrl.setIcon(W?uf():null);S.jn.setIcon(W?uf():null)}; E2O=function(S){return g.f9(S.W.J())?S.Hk:S.iV}; ytl=function(S,W){g.Ot.call(this,S);this.Zz=W;this.N=new g.Tx(this);this.Z=new g.rj(this.GmD,1E3,this);this.S=this.Ln=null;g.Z(this,this.N);g.Z(this,this.Z);W=this.W.J();S.createClientVe(this.element,this,28656);g.Bn(this.element,"ytp-contextmenu");this.W.J().experiments.mU("delhi_modern_web_player")&&g.EV(W)&&g.Bn(this.element,"ytp-delhi-modern-contextmenu");zs6(this);this.hide()}; zs6=function(S){g.eY(S.N);var W=S.W.J();W.playerStyle==="gvn"||W.N||W.g2||(W=S.W.k6(),S.N.K(W,"contextmenu",S.fb9),S.N.K(W,"touchstart",S.onTouchStart,null,!0),S.N.K(W,"touchmove",S.UD,null,!0),S.N.K(W,"touchend",S.UD,null,!0))}; YhP=function(S){S.W.isFullscreen()?g.tc(S.W,S.element,10):S.GN(cf(S).body)}; Wc=function(S,W,m){m=m===void 0?240:m;g.b.call(this,{G:"button",Wn:["ytp-button","ytp-copylink-button"],D:{title:S.T("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.f9(S.J()))},U:[{G:"div",L:"ytp-copylink-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-copylink-title",Bn:"Copy link",D:{"aria-hidden":"true"}}]});this.api=S;this.C=W;this.N=m;this.visible=!1;this.tooltip=this.C.Dz();W=S.J();this.tooltip.element.setAttribute("aria-live", "polite");g.GD(this.element,"ytp-show-copylink-title",g.f9(W));S.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.K(S,"videodatachange",this.L_);this.K(S,"videoplayerreset",this.L_);this.K(S,"appresize",this.L_);this.L_();this.addOnDisposeCallback(g.MV(this.tooltip,this.element))}; G9P=function(S){var W=S.api.J(),m=S.api.getVideoData(),a=S.api.k6().getPlayerSize().width;W=W.B;return!!m.videoId&&a>=S.N&&m.vQ&&!m.uP&&!S.api.isEmbedsShortsMode()&&!W}; K5O=function(S){S.updateValue("icon",qu());if(S.api.J().N)S.tooltip.gy(S.element,"Link copied to clipboard");else{S.updateValue("title-attr","Link copied to clipboard");S.updateValue("tooltip-title","Link copied to clipboard");S.tooltip.iK();S.tooltip.gy(S.element);var W=S.listen("mouseleave",function(){S.TC(W);S.L_();S.tooltip.D7()})}}; T4X=function(S,W){return g.k(function(m){if(m.C==1)return g.EQ(m,2),g.P(m,navigator.clipboard.writeText(W),4);if(m.C!=2)return m.return(!0);g.Gg(m);var a=m.return,J=!1,B=g.HI("TEXTAREA");B.value=W;B.setAttribute("readonly","");var E=S.api.getRootNode();E.appendChild(B);if(Zf){var y=window.getSelection();y.removeAllRanges();var Y=document.createRange();Y.selectNodeContents(B);y.addRange(Y);B.setSelectionRange(0,W.length)}else B.select();try{J=document.execCommand("copy")}catch(G){}E.removeChild(B); return a.call(m,J)})}; qhD=function(S){g.b.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div", L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-seek-icon-text-container",U:[{G:"div",L:"ytp-seek-icon",Bn:"{{seekIcon}}"},{G:"div",L:"ytp-chapter-seek-text-legacy",Bn:"{{seekText}}"}]},{G:"div",L:"ytp-doubletap-tooltip-label",Bn:"{{seekTime}}"}]}]}]});this.W=S;this.j=new g.rj(this.show,10,this);this.N=new g.rj(this.hide,700,this);this.V=this.B=0;this.N2=this.X=!1;this.C=this.I2("ytp-doubletap-static-circle");g.Z(this,this.j);g.Z(this,this.N);this.hide();this.Z=this.I2("ytp-doubletap-fast-forward-ve"); this.S=this.I2("ytp-doubletap-rewind-ve");this.W.createClientVe(this.Z,this,28240);this.W.createClientVe(this.S,this,28239);this.W.logVisibility(this.Z,!0);this.W.logVisibility(this.S,!0);this.X=S.T("web_show_cumulative_seek_time");this.N2=S.T("web_center_static_circles")}; pc7=function(S,W){W=g.Wo("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:W.toString()});S.updateValue("seekTime",W)}; VrD=function(S){Vb.call(this,S,!1,!0);this.Xn=[];this.Y6=[];this.element.setAttribute("data-overlay-order","9");F5G(this,this.W.getVideoData());this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.Pn=new g.b({G:"div",L:"ytp-featured-product-open-in-new"});g.Z(this,this.Pn);this.countdownTimer=new g.b({G:"text",L:"ytp-featured-product-countdown",Bn:"{{content}}"});this.countdownTimer.hide();g.Z(this,this.countdownTimer);this.B=new g.b({G:"div",L:"ytp-featured-product-trending",U:[{G:"div", L:"ytp-featured-product-trending-icon"},{G:"text",L:"ytp-featured-product-trending-text",Bn:"{{trendingOffer}}"}]});this.B.hide();g.Z(this,this.B);this.overflowButton=new g.b({G:"button",Wn:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.V=new g.b({G:"text",L:"ytp-featured-product-exclusive-countdown",Bn:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.Z(this,this.V);this.X= new g.b({G:"div",L:"ytp-featured-product-exclusive-container",D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},U:[{G:"div",L:"ytp-featured-product-exclusive-badge-container",U:[{G:"div",L:"ytp-featured-product-exclusive-badge",U:[{G:"text",L:"ytp-featured-product-exclusive-badge-text",Bn:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.X.hide();g.Z(this,this.X);this.banner=new g.b({G:"a",L:"ytp-featured-product-container",U:[{G:"div",L:"ytp-featured-product-thumbnail", U:[{G:"img",D:{src:"{{thumbnail}}"}},this.Pn]},{G:"div",L:"ytp-featured-product-details",U:[{G:"text",L:"ytp-featured-product-title",Bn:"{{title}}"},this.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",L:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},U:[{G:"text",L:"ytp-featured-product-price-when-promotion-text-enabled",Bn:"{{price}}",D:{"aria-hidden":"true"}},{G:"text",L:"ytp-featured-product-promotion-text",Bn:"{{promotionText}}", D:{"aria-hidden":"true"}}]}:{G:"div",D:{"aria-label":"{{priceA11yText}}"},U:[{G:"text",L:"ytp-featured-product-price",Bn:"{{price}}",D:{"aria-hidden":"true"}},{G:"text",L:"ytp-featured-product-sales-original-price",Bn:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{G:"text",L:"ytp-featured-product-price-drop-reference-price",Bn:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",L:"ytp-featured-product-when-promotion-text-enabled", U:[{G:"text",L:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Bn:"{{affiliateDisclaimer}}"},this.B,{G:"text",L:"ytp-featured-product-vendor-when-promotion-text-enabled",Bn:"{{vendor}}"}]}:{G:"div",U:[{G:"text",L:"ytp-featured-product-affiliate-disclaimer",Bn:"{{affiliateDisclaimer}}"},this.W.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.B,{G:"text",L:"ytp-featured-product-vendor",Bn:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.Z(this,this.banner);this.banner.GN(this.j.element);this.K(this.W,g.AD("featured_product"),this.YfX);this.K(this.W,g.Z5("featured_product"),this.p8);this.K(this.W,"videodatachange",this.onVideoDataChange);this.K(this.overflowButton.element,"click",this.Fj);this.K(S,"featuredproductdismissed",this.PZ)}; n2P=function(S){var W,m;S=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:m.itemData;var a,J,B;return(S==null||!S.affiliateDisclaimer)&&(S==null?0:(a=S.exclusivesData)==null?0:a.exclusiveOfferLabelText)&&(S==null?0:(J=S.exclusivesData)==null?0:J.expirationTimestampMs)&&(S==null?0:(B=S.exclusivesData)==null?0:B.exclusiveOfferCountdownText)?!0:!1}; ubG=function(S){var W,m,a,J,B=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:(a=m.itemData)==null?void 0:(J=a.exclusivesData)==null?void 0:J.expirationTimestampMs;W=(Number(B)-Date.now())/1E3;if(W>0){if(W<604800){var E,y,Y,G;m=(E=S.C)==null?void 0:(y=E.bannerData)==null?void 0:(Y=y.itemData)==null?void 0:(G=Y.exclusivesData)==null?void 0:G.exclusiveOfferCountdownText;if(m!==void 0)for(E=Date.now(),y=g.R(m),Y=y.next();!Y.done;Y=y.next())if(Y=Y.value,Y!==void 0&&Y.text!==void 0&&(G=Number(Y.textDisplayStartTimestampMs), !isNaN(G)&&E>=G)){Y.insertCountdown?(W=Y.text.replace(/\$0/,String(Bh({seconds:W}))),S.V.setContent(W)):S.V.setContent(Y.text);S.V.show();break}}var K,T,p,q;S.X.update({exclusive:(K=S.C)==null?void 0:(T=K.bannerData)==null?void 0:(p=T.itemData)==null?void 0:(q=p.exclusivesData)==null?void 0:q.exclusiveOfferLabelText});S.X.show();m5(S);var F;(F=S.yT)==null||F.start()}else sTj(S)}; sTj=function(S){var W;(W=S.yT)==null||W.stop();S.V.hide();S.X.hide();aT(S)}; g2P=function(S){var W,m,a=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:m.itemData;return S.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(a==null||!a.priceReplacementText)&&(a==null?0:a.promotionText)?a==null?void 0:a.promotionText.content:null}; ODc=function(S){var W,m,a=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:m.itemData,J,B;if(!(a!=null&&a.priceReplacementText||S.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(a==null?0:(J=a.dealsData)==null?0:(B=J.sales)==null?0:B.originalPrice)){var E,y;return a==null?void 0:(E=a.dealsData)==null?void 0:(y=E.sales)==null?void 0:y.originalPrice}return null}; jTD=function(S){var W,m,a=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:m.itemData,J,B,E,y;if(!((a==null?0:a.priceReplacementText)||S.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(a==null?0:(J=a.dealsData)==null?0:(B=J.sales)==null?0:B.originalPrice))&&(a==null?0:(E=a.dealsData)==null?0:(y=E.priceDrop)==null?0:y.referencePrice)){var Y,G;return a==null?void 0:(Y=a.dealsData)==null?void 0:(G=Y.priceDrop)==null?void 0:G.referencePrice}return null}; QTl=function(S){var W,m,a=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:m.itemData;if(a==null?0:a.priceReplacementText)return a==null?void 0:a.priceReplacementText;if((a==null?0:a.promotionText)&&S.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J;return(a==null?void 0:a.price)+" "+(a==null?void 0:(J=a.promotionText)==null?void 0:J.content)}var B,E;if(a==null?0:(B=a.dealsData)==null?0:(E=B.sales)==null?0:E.originalPrice){var y,Y;return a==null?void 0:(y=a.dealsData)== null?void 0:(Y=y.sales)==null?void 0:Y.salesPriceAccessibilityLabel}var G,K;if(a==null?0:(G=a.dealsData)==null?0:(K=G.priceDrop)==null?0:K.referencePrice){var T,p;return(a==null?void 0:a.price)+" "+(a==null?void 0:(T=a.dealsData)==null?void 0:(p=T.priceDrop)==null?void 0:p.referencePrice)}return a==null?void 0:a.price}; XcQ=function(S){if(S.W.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var W,m,a;return S.B.jg?null:(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:(a=m.itemData)==null?void 0:a.vendorName}var J,B,E,y,Y,G;return S.B.jg||S.X.jg||((J=S.C)==null?0:(B=J.bannerData)==null?0:(E=B.itemData)==null?0:E.affiliateDisclaimer)?null:(y=S.C)==null?void 0:(Y=y.bannerData)==null?void 0:(G=Y.itemData)==null?void 0:G.vendorName}; HDl=function(S,W){Jt(S);if(W){var m=g.qW.getState().entities;m=rF(m,"featuredProductsEntity",W);if(m!=null&&m.productsData){W=[];m=g.R(m.productsData);for(var a=m.next();!a.done;a=m.next()){a=a.value;var J=void 0;if((J=a)!=null&&J.identifier&&a.featuredSegments){S.Xn.push(a);var B=void 0;J=g.R((B=a)==null?void 0:B.featuredSegments);for(B=J.next();!B.done;B=J.next()){var E=B.value;B=v2K(E.startTimeSec);B!==void 0&&(E=v2K(E.endTimeSec),W.push(new g.hD(B*1E3,E===void 0?0x7ffffffffffff:E*1E3,{id:a.identifier, namespace:"featured_product"})))}}}S.W.oY(W)}}}; aT=function(S){if(S.trendingOfferEntityKey){var W=g.qW.getState().entities;if(W=rF(W,"trendingOfferEntity",S.trendingOfferEntityKey)){var m,a,J;W.encodedSkuId!==((m=S.C)==null?void 0:(a=m.bannerData)==null?void 0:(J=a.itemData)==null?void 0:J.encodedOfferSkuId)?m5(S):(S.B.update({trendingOffer:W.shortLabel+" \u2022 "+W.countLabel}),S.B.show(),S.banner.update({vendor:XcQ(S)}))}else m5(S)}else m5(S)}; m5=function(S){S.B.hide();S.banner.update({vendor:XcQ(S)})}; F5G=function(S,W){!S.W.T("web_enable_shopping_timely_shelf_client")||S.W.T("web_force_featured_product_banner_with_timely_shelf")||!W||W.isLivePlayback||W.isPremiere?S.badge.element.classList.remove("ytp-timely-shelf-present"):S.badge.element.classList.add("ytp-timely-shelf-present")}; Jt=function(S){S.Xn=[];S.p8();S.W.Tk("featured_product")}; laD=function(S){var W,m,a,J,B=(W=S.C)==null?void 0:(m=W.bannerData)==null?void 0:(a=m.itemData)==null?void 0:(J=a.hiddenProductOptions)==null?void 0:J.dropTimestampMs;W=(Number(B)-Date.now())/1E3;S.countdownTimer.setContent(Bh({seconds:W}));if(W>0){var E;(E=S.EV)==null||E.start()}}; MrP=function(S){var W;(W=S.EV)==null||W.stop();S.countdownTimer.hide()}; v2K=function(S){if(S!==void 0&&S.trim()!==""&&(S=Math.trunc(Number(S.trim())),!(isNaN(S)||S<0)))return S}; dNl=function(S,W,m){g.b.call(this,{G:"div",Wn:["ytp-info-panel-action-item"],U:[{G:"div",L:"ytp-info-panel-action-item-disclaimer",Bn:"{{disclaimer}}"},{G:"a",Wn:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},U:[{G:"div",L:"ytp-info-panel-action-item-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-info-panel-action-item-label",Bn:"{{label}}"}]}]});this.W=S;this.N=m;this.disclaimer=this.I2("ytp-info-panel-action-item-disclaimer");this.button= this.I2("ytp-info-panel-action-item-button");this.LP=!1;this.W.createServerVe(this.element,this,!0);this.listen("click",this.onClick);S="";m=g.n(W==null?void 0:W.onTap,RY);var a=g.n(m,g.Pm);this.LP=!1;a?(S=a.url||"",S.startsWith("//")&&(S="https:"+S),this.LP=!0,g.v$(this.button,g.QW(S))):(a=g.n(m,UNl))&&!this.N?((S=a.phoneNumbers)&&S.length>0?(S="sms:"+S[0],a.messageText&&(S+="?&body="+encodeURI(a.messageText))):S="",this.LP=!0,g.v$(this.button,g.QW(S,[L5D]))):(m=g.n(m,Rsc))&&!this.N&&(S=m.phoneNumber? "tel:"+m.phoneNumber:"",this.LP=!0,g.v$(this.button,g.QW(S,[esP])));this.W.T("embeds_enable_info_panel_dismissal")&&!S&&(m=g.n(W==null?void 0:W.onTap,RY),a=g.n(m,xN6))&&(this.LP=!0,this.C=m,this.feedbackToken=a.feedbackToken);var J;if(m=(J=W.disclaimerText)==null?void 0:J.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var B,E;this.update({label:(B=W.bodyText)==null?void 0:B.content,icon:this.W.T("embeds_enable_info_panel_dismissal")?iDD((E=W.icon)== null?void 0:E.iconType):OB(),disclaimer:m})}else{this.disclaimer.style.display="none";var y,Y;this.update({label:(y=W.bodyText)==null?void 0:y.content,icon:this.W.T("embeds_enable_info_panel_dismissal")?iDD((Y=W.icon)==null?void 0:Y.iconType):OB()})}this.W.setTrackingParams(this.element,W.trackingParams||null);this.LP&&(this.B={externalLinkData:{url:S}})}; iDD=function(S){switch(S){case "OPEN_IN_NEW":return OB();case "NOT_INTERESTED":return{G:"svg",D:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return sB();default:return OB()}}; IaX=function(S,W){var m=JZ();CB.call(this,S,{G:"div",L:"ytp-info-panel-detail-skrim",U:[{G:"div",L:"ytp-info-panel-detail",D:{role:"dialog",id:m},U:[{G:"div",L:"ytp-info-panel-detail-header",U:[{G:"div",L:"ytp-info-panel-detail-title",Bn:"{{title}}"},{G:"button",Wn:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Close"},U:[g.VG()]}]},{G:"div",L:"ytp-info-panel-detail-body",Bn:"{{body}}"},{G:"div",L:"ytp-info-panel-detail-items"}]}]},250);var a=this;this.C=W;this.items=this.I2("ytp-info-panel-detail-items"); this.N=new g.Tx(this);this.itemData=[];this.B=m;this.K(this.I2("ytp-info-panel-detail-close"),"click",this.OV);this.K(this.I2("ytp-info-panel-detail-skrim"),"click",this.OV);this.K(this.I2("ytp-info-panel-detail"),"click",function(J){J.stopPropagation()}); this.K(this.W,"infopaneldetaildismissed",function(){S.T("embeds_enable_info_panel_dismissal")&&a.OV()}); g.Z(this,this.N);this.W.createServerVe(this.element,this,!0);this.K(S,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",S.getVideoData());this.hide()}; Pi6=function(S,W){S=g.R(S.itemData);for(var m=S.next();!m.done;m=S.next())m=m.value,m.W.logVisibility(m.element,W)}; $NP=function(S,W){g.b.call(this,{G:"button",L:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":W.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.f9(S.J()))},U:[{G:"div",L:"ytp-info-panel-preview-text",Bn:"{{text}}"},{G:"div",L:"ytp-info-panel-preview-chevron",Bn:"{{chevron}}"}]});var m=this;this.W=S;this.Ud=this.C=this.videoId=null;this.isDismissed=this.B=this.showControls=this.N=!1;this.K(this.element,"click",function(){S.logClick(m.element);S.oN(); DT(W)}); this.fade=new g.mo(this,250,!1,100);g.Z(this,this.fade);this.W.createServerVe(this.element,this,!0);this.K(S,"videodatachange",this.onVideoDataChange);this.K(S,"presentingplayerstatechange",this.SF);this.K(this.W,"paidcontentoverlayvisibilitychange",this.AP);this.K(this.W,"infopaneldetailvisibilitychange",this.AP);var a=S.getVideoData()||{};faG(a)&&k9G(this,a);this.K(S,"onShowControls",this.Dy);this.K(S,"onHideControls",this.h5);this.K(this.W,"infopaneldetaildismissed",function(){S.T("embeds_enable_info_panel_dismissal")&& (m.isDismissed=!0,m.hide())})}; k9G=function(S,W){if(!W.Hh||!S.W.xG()){var m=W.ER||1E4,a=faG(W);S.C?W.videoId&&W.videoId!==S.videoId&&(g.Dh(S.C),S.videoId=W.videoId,a?(hsP(S,m,W),S.Uc()):(S.OV(),S.C.dispose(),S.C=null)):a&&(W.videoId&&(S.videoId=W.videoId),hsP(S,m,W),S.Uc())}}; faG=function(S){var W,m,a,J;return!!((W=S.lr)==null?0:(m=W.title)==null?0:m.content)||!!((a=S.lr)==null?0:(J=a.bodyText)==null?0:J.content)}; hsP=function(S,W,m){S.C&&S.C.dispose();S.C=new g.rj(S.ufq,W,S);g.Z(S,S.C);var a;W=((a=m.lr)==null?void 0:a.trackingParams)||null;S.W.setTrackingParams(S.element,W);var J;var B,E;if(m==null?0:(B=m.lr)==null?0:(E=B.title)==null?0:E.content){var y;a=(J=m.lr)==null?void 0:(y=J.title)==null?void 0:y.content;var Y,G;if((Y=m.lr)==null?0:(G=Y.bodyText)==null?0:G.content)a+=" \u2022 ";J=a}else J="";var K,T;m=((K=m.lr)==null?void 0:(T=K.bodyText)==null?void 0:T.content)||"";S.update({text:J+m,chevron:g.Fo()})}; trK=function(S,W){S.C&&(g.C(W,8)?(S.N=!0,S.Uc(),S.C.start()):(g.C(W,2)||g.C(W,64))&&S.videoId&&(S.videoId=null))}; Bc=function(S){var W=null;try{W=S.toLocaleString("en-GB",{style:"percent"})}catch(m){W=S.toLocaleString(void 0,{style:"percent"})}return W}; Eh=function(S,W){var m=0;S=g.R(S);for(var a=S.next();!(a.done||a.value.startTime>W);a=S.next())m++;return m===0?m:m-1}; AtQ=function(S,W){for(var m=0,a=g.R(S),J=a.next();!J.done;J=a.next()){J=J.value;if(W=J.timeRangeStartMillis&&W2147483647?"0":String(S)}; yd=function(S,W,m){var a=S.api.getCurrentTime(),J=Cij(S,a);S=Cij(S,a+W);return{startMediaTimeMs:J,endMediaTimeMs:S,seekSource:m}}; ct_=function(S){var W,m=(W=S.api.getVideoData())==null?void 0:W.b$();return S.api.getPresentingPlayerType(m)!==2}; z9=function(S,W){S.B.LZ=W;g.GD(S.api.getRootNode(),"ytp-probably-keyboard-focus",W);g.GD(S.contextMenu.element,"ytp-probably-keyboard-focus",W)}; G9=function(S,W,m,a){var J=g.jb(S.api.GV());if(J&&J.loaded){var B=S.api.getSubtitlesUserSettings();J=void 0;for(var E=0;E0?W[0]:null;var m=g.gY("ytp-chrome-bottom"),a=g.gY("ytp-ad-module");S.B=!(m==null||!m.contains(W));S.V=!(a==null||!a.contains(W));S.Z=!(W==null||!W.hasAttribute("data-tooltip-target-fixed"));return W}; zL_=function(S,W,m){if(!S.j){if(W){S.tooltipRenderer=W;W=S.tooltipRenderer.text;var a=!1,J;(W==null?0:(J=W.runs)==null?0:J.length)&&W.runs[0].text&&(S.update({title:W.runs[0].text.toString()}),a=!0);g.F$(S.title,a);W=S.tooltipRenderer.detailsText;J=!1;var B;if((W==null?0:(B=W.runs)==null?0:B.length)&&W.runs[0].text){a=W.runs[0].text.toString();B=a.indexOf("$TARGET_ICON");if(B>-1)if(S.tooltipRenderer.targetId){W=[];a=a.split("$TARGET_ICON");var E=new g.Bm({G:"span",L:"ytp-promotooltip-details-icon", U:[B$c[S.tooltipRenderer.targetId]]});g.Z(S,E);for(var y=[],Y=g.R(a),G=Y.next();!G.done;G=Y.next())G=new g.Bm({G:"span",L:"ytp-promotooltip-details-component",Bn:G.value}),g.Z(S,G),y.push(G);a.length===2?(W.push(y[0].element),W.push(E.element),W.push(y[1].element)):a.length===1&&(B===0?(W.push(E.element),W.push(y[0].element)):(W.push(y[0].element),W.push(E.element)));B=W.length?W:null}else B=null;else B=a;if(B){if(typeof B!=="string")for(g.UN(S.details),J=g.R(B),B=J.next();!B.done;B=J.next())S.details.appendChild(B.value); else S.update({details:B});J=!0}}g.F$(S.details,J);J=S.tooltipRenderer.acceptButton;B=!1;var K,T,p;((K=g.n(J,vG))==null?0:(T=K.text)==null?0:(p=T.runs)==null?0:p.length)&&g.n(J,vG).text.runs[0].text&&(S.update({acceptButtonText:g.n(J,vG).text.runs[0].text.toString()}),B=!0);g.F$(S.acceptButton,B);K=S.tooltipRenderer.dismissButton;T=!1;var q,F,O;((q=g.n(K,vG))==null?0:(F=q.text)==null?0:(O=F.runs)==null?0:O.length)&&g.n(K,vG).text.runs[0].text&&(S.update({dismissButtonText:g.n(K,vG).text.runs[0].text.toString()}), T=!0);g.F$(S.dismissButton,T)}m&&(S.sourceElement=m);S.C=JEj(S);S.X=!1;S.W.J().T("web_player_hide_nitrate_promo_tooltip")||S.Fz(!0);Ej_(S);S.jg&&!S.S&&(S.S=!0,S.f3.Pi(0));S.N&&S.W.logVisibility(S.element,S.jg)}}; qN=function(S){S.Fz(!1);S.N&&S.W.logVisibility(S.element,S.jg)}; yEX=function(S){var W,m,a,J=((W=g.n(S.acceptButton,vG))==null?void 0:(m=W.text)==null?void 0:(a=m.runs)==null?void 0:a.length)&&!!g.n(S.acceptButton,vG).text.runs[0].text,B,E,y;W=((B=g.n(S.dismissButton,vG))==null?void 0:(E=B.text)==null?void 0:(y=E.runs)==null?void 0:y.length)&&!!g.n(S.dismissButton,vG).text.runs[0].text;return J||W}; Ej_=function(S){var W;if(!(W=!S.C)){W=S.C;var m=window.getComputedStyle(W);W=m.display==="none"||m.visibility==="hidden"||W.getAttribute("aria-hidden")==="true"}if(W||S.W.isMinimized())S.Fz(!1);else if(W=g.ph(S.C),W.width&&W.height){S.W.g3(S.element,S.C);var a=S.W.k6().getPlayerSize().height;m=g.ph(S.I2("ytp-promotooltip-container")).height;S.B?S.element.style.top=a-m-W.height-12+"px":S.Z||(a=S.W.eU().height-m-W.height-12,S.element.style.top=a+"px");a=S.I2("ytp-promotooltip-pointer");var J=g.T6(S.C, S.W.getRootNode()),B=Number(S.element.style.left.replace(/[^\d\.]/g,""));S=S.W.isFullscreen()?18:12;a.style.left=J.x-B+W.width/2-S+"px";a.style.top=m+"px"}else S.Fz(!1)}; pD=function(S){g.b.call(this,{G:"button",Wn:["ytp-replay-button","ytp-button"],D:{title:S.T("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},U:[g.Hm()]});this.W=S;this.K(S,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.gA(S.getPlayerStateObject());Uk(this.W,this.element,this)}; Fb=function(S,W){W=W===void 0?240:W;g.b.call(this,{G:"button",Wn:["ytp-button","ytp-search-button"],D:{title:S.T("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.f9(S.J()))},U:[{G:"div",L:"ytp-search-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-search-title",Bn:"Search"}]});this.api=S;this.N=W;this.visible=!1;this.updateValue("icon",{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",L:"ytp-svg-fill",D:{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"}}]}); S.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.C();this.K(S,"appresize",this.C);this.K(S,"videodatachange",this.C);Uk(S,this.element,this)}; Vd=function(S){g.b.call(this,{G:"div",L:"ytp-seek-overlay",U:[{G:"div",Wn:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],U:[{G:"div",Wn:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],U:[{G:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"24"},U:[{G:"path",D:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{G:"div",L:"ytp-seek-overlay-duration",Bn:"{{durationBack}}"}]},{G:"div",Wn:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],U:[{G:"div",L:"ytp-seek-overlay-duration",Bn:"{{durationForward}}"},{G:"div",Wn:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],U:[{G:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"24"},U:[{G:"path",D:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{G:"div",L:"ytp-seek-overlay-message",U:[{G:"div",L:"ytp-seek-overlay-message-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-seek-overlay-message-text", Bn:"{{text}}"}]}]});var W=this;this.W=S;this.X=0;this.C="hidden";this.Z=this.I2("ytp-seek-overlay-animation-back");this.S=this.I2("ytp-seek-overlay-animation-forward");this.N2=this.I2("ytp-seek-overlay-message");this.V=new g.rj(function(){Y9D(W)},g.Db(this.W.J().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.Z(this,this.V);this.W.createClientVe(this.S,this,28240);this.W.createClientVe(this.Z,this,28239);this.W.logVisibility(this.S,!0);this.W.logVisibility(this.Z,!0);this.hide()}; GL6=function(S,W){S.B=S.j.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:W},{offset:1,opacity:1}],{duration:200,fill:"forwards"});S.B.addEventListener("finish",function(){S.B=void 0;S.V.start();S.C="lingering"})}; KF7=function(S,W,m,a){m=m===void 0?!1:m;a=a===void 0?!1:a;var J=[];J.push({offset:0,transform:"translateX("+(S.N===-1?20:-20)+"px)",opacity:m?"0":"1"});m&&J.push({offset:.5,opacity:"1"});J.push({offset:1,transform:"translateX(0)",opacity:"1"});m=W.animate(J,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});W=W.querySelector("path");J=[];var B={offset:0,d:S.N===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};a&&(B.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");J.push(B); a&&J.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});S={offset:1,d:S.N===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};a&&(S.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");J.push(S);W.animate(J,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return m}; T$j=function(S){var W=S.j.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);W.classList.add("ytp-seek-overlay-arrow-additional");W.classList.remove("ytp-seek-overlay-arrow-persistent");S.j.appendChild(W);KF7(S,W,!0,!0).addEventListener("finish",function(){W.remove()})}; Y9D=function(S,W,m){m=m===void 0?!0:m;S.B=S.j.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)"});m&&(S.B.addEventListener("finish",function(){S.B=void 0;q96(S);S.hide()}),S.C="fading-out")}; pVQ=function(S){var W=Number(getComputedStyle(S.j).opacity),m;(m=S.B)==null||m.cancel();S.B=void 0;return W}; q96=function(S){S.X=0;S.C="hidden";S.N=void 0;S.j=void 0;S.V.stop();S.B=void 0}; FFP=function(S,W,m){S.updateValue("text",W);if(m){a:{switch(m){case "PREMIUM_STANDALONE":W=G1D();break a;case "PREMIUM_STANDALONE_CAIRO":W=Km6();break a}W=void 0}S.updateValue("icon",W)}W=g.R(S.N2.getAnimations());for(m=W.next();!m.done;m=W.next())m.value.cancel();S.N2.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){S.updateValue("text","");S.updateValue("icon","")})}; nD=function(S,W,m,a){a=a===void 0?240:a;g.b.call(this,{G:"button",Wn:["ytp-button","ytp-share-button"],D:{title:S.T("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":m.element.id,"data-tooltip-opaque":String(g.f9(S.J()))},U:[{G:"div",L:"ytp-share-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-share-title",Bn:"Share"}]});this.api=S;this.C=W;this.N=m;this.B=a;this.visible=!1;this.tooltip=this.C.Dz();S.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.K(S,"videodatachange",this.L_);this.K(S,"videoplayerreset",this.L_);this.K(S,"appresize",this.L_);this.K(S,"presentingplayerstatechange",this.L_);this.L_();this.addOnDisposeCallback(g.MV(this.tooltip,this.element))}; VzD=function(S){var W=S.api.J(),m=S.api.getVideoData(),a=g.f9(W)&&g.fB(S.api)&&g.C(S.api.getPlayerStateObject(),128);W=W.B||W.disableSharing&&S.api.getPresentingPlayerType()!==2||!m.showShareButton||m.vQ||a||m.uP||!1;a=S.api.k6().getPlayerSize().width;return!!m.videoId&&a>=S.B&&!W}; nj6=function(S,W){W.name!=="InvalidStateError"&&W.name!=="AbortError"&&(W.name==="NotAllowedError"?(S.C.oN(),DT(S.N,S.element,!1)):g.lR(W))}; u06=function(S,W){var m=JZ(),a=S.J();m={G:"div",L:"ytp-share-panel",D:{id:JZ(),role:"dialog","aria-labelledby":m},U:[{G:"div",L:"ytp-share-panel-inner-content",U:[{G:"div",L:"ytp-share-panel-title",D:{id:m},Bn:"Share"},{G:"a",Wn:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:a.bY,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Bn:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",U:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",D:{type:"checkbox", checked:"true"}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",U:[ni()]},{G:"div",L:"ytp-share-panel-service-buttons",Bn:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",Bn:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Wn:["ytp-share-panel-close","ytp-button"],D:{title:"Close"},U:[g.VG()]}]};CB.call(this,S,m,250);var J=this;this.moreButton=null;this.api=S;this.tooltip=W.Dz();this.N=[];this.j=this.I2("ytp-share-panel-inner-content"); this.closeButton=this.I2("ytp-share-panel-close");this.K(this.closeButton,"click",this.OV);this.addOnDisposeCallback(g.MV(this.tooltip,this.closeButton));this.B=this.I2("ytp-share-panel-include-playlist-checkbox");this.K(this.B,"click",this.L_);this.C=this.I2("ytp-share-panel-link");this.addOnDisposeCallback(g.MV(this.tooltip,this.C));this.api.createClientVe(this.C,this,164503);this.K(this.C,"click",function(B){B.preventDefault();J.api.logClick(J.C);var E=J.api.getVideoUrl(!0,!0,!1,!1);E=sHl(J,E); g.F4(E,J.api,B)&&J.api.f_("SHARE_CLICKED")}); this.listen("click",this.h_);this.K(S,"videoplayerreset",this.hide);this.K(S,"fullscreentoggled",this.onFullscreenToggled);this.K(S,"onLoopRangeChange",this.fHN);this.hide()}; jHG=function(S,W){gj6(S);for(var m=W.links||W.shareTargets,a=0,J={},B=0;B0&&!h&&!d?(e.length===2&&(e=["noreferrer"]),g.La(q,O,p,e[0]),q=iY_()):(X=M.join(","),Ca()&&q.navigator&&q.navigator.standalone&&p&&p!="_self"?(X=g.HI("A"),g.v$(X,O),X.target=p,l&&(X.rel="noreferrer"),((F=F.attributionsrc)||F==="")&&X.setAttribute("attributionsrc",F),F=document.createEvent("MouseEvent"), F.initMouseEvent("click",!0,!0,q,1),X.dispatchEvent(F),q=iY_()):l?(q=g.La(q,"",p,X),F=g.gb(O),q&&(q.opener=null,F===""&&(F="javascript:''"),F='',F=Ma(F),(O=q.document)&&O.write&&(O.write(UR(F)),O.close()))):((q=g.La(q,O,p,X))&&F.noopener&&(q.opener=null),q&&F.noreferrer&&(q.opener=null)));q&&(q.opener||(q.opener=window),q.focus());T.preventDefault()}}}(J)); J.w4.addOnDisposeCallback(g.MV(S.tooltip,J.w4.element));y==="Facebook"?S.api.createClientVe(J.w4.element,J.w4,164504):y==="Twitter"&&S.api.createClientVe(J.w4.element,J.w4,164505);S.K(J.w4.element,"click",function(K){return function(){S.api.logClick(K.w4.element)}}(J)); S.api.logVisibility(J.w4.element,!0);S.N.push(J.w4);a++}}var Y=W.more||W.moreLink,G=new g.b({G:"a",Wn:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",D:{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"}}]}]}],D:{href:Y,target:"_blank",title:"More"}});G.listen("click",function(K){var T=Y;S.api.logClick(S.moreButton.element);T=sHl(S,T);g.F4(T,S.api,K)&&S.api.f_("SHARE_CLICKED")}); G.addOnDisposeCallback(g.MV(S.tooltip,G.element));S.api.createClientVe(G.element,G,164506);S.K(G.element,"click",function(){S.api.logClick(G.element)}); S.api.logVisibility(G.element,!0);S.N.push(G);S.moreButton=G;S.updateValue("buttons",S.N)}; sHl=function(S,W){var m={};g.f9(S.api.J())&&(g.VY(S.api,"addEmbedsConversionTrackingParams",[m]),W=g.ex(W,m));return W}; gj6=function(S){for(var W=g.R(S.N),m=W.next();!m.done;m=W.next())m=m.value,m.detach(),g.nL(m);S.N=[]}; sh=function(S){return S===void 0||S.startSec===void 0||S.endSec===void 0?!1:!0}; QHl=function(S,W){S.startSec+=W;S.endSec+=W}; vjP=function(S){Vb.call(this,S);this.B=this.C=this.isContentForward=this.V=!1;this.element.setAttribute("data-overlay-order","8");XV6(this);this.K(this.W,"changeProductsInVideoVisibility",this.ArN);this.K(this.W,"videodatachange",this.onVideoDataChange)}; H3K=function(S){S.X&&S.s9.element.removeChild(S.X.element);S.X=void 0}; MzG=function(S,W){return W.map(function(m){var a,J;if((m=(a=g.n(m,ln6))==null?void 0:(J=a.thumbnail)==null?void 0:J.thumbnails)&&m.length!==0)return m[0].url}).filter(function(m){return m!==void 0}).map(function(m){m=new g.b({G:"img", L:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:m}});g.Z(S,m);return m})}; Umc=function(S,W){S.isContentForward=W;g.GD(S.badge.element,"ytp-suggested-action-badge-content-forward",W)}; ui=function(S){var W=S.isContentForward&&!S.AJ();g.GD(S.badge.element,"ytp-suggested-action-badge-preview-collapsed",W&&S.C);g.GD(S.badge.element,"ytp-suggested-action-badge-preview-expanded",W&&S.B)}; g4=function(S,W,m){return new g.hD(S*1E3,W*1E3,{priority:9,namespace:m})}; LFP=function(S){S.W.Tk("shopping_overlay_visible");S.W.Tk("shopping_overlay_preview_collapsed");S.W.Tk("shopping_overlay_preview_expanded");S.W.Tk("shopping_overlay_expanded")}; XV6=function(S){S.K(S.W,g.AD("shopping_overlay_visible"),function(){S.P1(!0)}); S.K(S.W,g.Z5("shopping_overlay_visible"),function(){S.P1(!1)}); S.K(S.W,g.AD("shopping_overlay_expanded"),function(){S.vn=!0;FB(S)}); S.K(S.W,g.Z5("shopping_overlay_expanded"),function(){S.vn=!1;FB(S)}); S.K(S.W,g.AD("shopping_overlay_preview_collapsed"),function(){S.C=!0;ui(S)}); S.K(S.W,g.Z5("shopping_overlay_preview_collapsed"),function(){S.C=!1;ui(S)}); S.K(S.W,g.AD("shopping_overlay_preview_expanded"),function(){S.B=!0;ui(S)}); S.K(S.W,g.Z5("shopping_overlay_preview_expanded"),function(){S.B=!1;ui(S)})}; xmX=function(S){g.b.call(this,{G:"div",L:"ytp-shorts-title-channel",U:[{G:"a",L:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:S.J().bY,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-shorts-title-expanded-heading",U:[{G:"div",L:"ytp-shorts-title-expanded-title",U:[{G:"a",Bn:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:S.J().bY,tabIndex:"0"}}]}]}]});var W=this;this.api=S;this.C=this.I2("ytp-shorts-title-channel-logo");this.channelName=this.I2("ytp-shorts-title-expanded-title"); this.subscribeButton=null;S.createClientVe(this.C,this,36925);this.K(this.C,"click",function(m){W.api.logClick(W.C);g.La(window,RL6(W));m.preventDefault()}); S.createClientVe(this.channelName,this,37220);this.K(this.channelName,"click",function(m){W.api.logClick(W.channelName);g.La(window,RL6(W));m.preventDefault()}); eLl(this);this.K(S,"videodatachange",this.L_);this.K(S,"videoplayerreset",this.L_);this.L_()}; eLl=function(S){if(!S.api.J().Wv){var W=S.api.getVideoData(),m=new g.cZ("Subscribe",null,"Subscribed",null,!0,!1,W.Z7,W.subscribed,"channel_avatar",null,S.api,!0);S.api.createServerVe(m.element,S);var a;S.api.setTrackingParams(m.element,((a=W.subscribeButtonRenderer)==null?void 0:a.trackingParams)||null);S.K(m.element,"click",function(){S.api.logClick(m.element)}); S.subscribeButton=m;g.Z(S,S.subscribeButton);S.subscribeButton.GN(S.element)}}; RL6=function(S){var W=S.api.J(),m=S.api.getVideoData();m=g.p1(W)+m.O9;if(!g.f9(W))return m;W={};g.VY(S.api,"addEmbedsConversionTrackingParams",[W]);return g.ex(m,W)}; Oh=function(S){CB.call(this,S,{G:"button",Wn:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",Bn:"Skip Intro"}]},100);var W=this;this.N=!1;this.C=new g.rj(function(){W.hide()},5E3); this.hj=this.K9=NaN;g.Z(this,this.C);this.Z=function(){W.show()}; this.j=function(){W.hide()}; this.B=function(){var m=W.W.getCurrentTime();m>W.K9/1E3&&m0?{G:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",Wn:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {G:"text",Wn:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{G:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",Wn:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {G:"text",Wn:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var m=this;this.W=S;this.C=W;this.N=new g.rj(function(){m.B?(m.B=!1,m.N.start()):m.element.classList.remove("ytp-jump-spin","backwards")},250); this.B=!1;(W=W>0)?this.W.createClientVe(this.element,this,36843):this.W.createClientVe(this.element,this,36844);var a=g.Wo(W?"Seek forwards $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.C).toString()});this.W.T("player_tooltip_data_title_killswitch")?this.update({title:a,"data-title-no-tooltip":a,"aria-keyshortcuts":W?"\u2192":"\u2190"}):this.update({"tooltip-title":a,"data-title-no-tooltip":a,"aria-keyshortcuts":W?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text"); this.j.textContent=Math.abs(this.C).toString();this.listen("click",this.onClick,this);Uk(S,this.element,this)}; hL_=function(S,W){W?S.element.classList.add("ytp-jump-button-enabled"):S.element.classList.remove("ytp-jump-button-enabled");S.W.logVisibility(S.element,W);S.W.iK()}; MN=function(S,W){Qd.call(this,S,W,"timedMarkerCueRange","View key moments");this.K(S,g.Z5("timedMarkerCueRange"),this.Zb);this.K(S,"updatemarkervisibility",this.updateVideoData)}; tz6=function(S){var W,m=(W=S.W.getVideoData())==null?void 0:W.s9;if(m)for(S=S.j.hX,m=g.R(m),W=m.next();!W.done;W=m.next())if(W=S[W.value]){var a=void 0,J=void 0,B=void 0;if(((a=W.onTap)==null?void 0:(J=a.innertubeCommand)==null?void 0:(B=J.changeEngagementPanelVisibilityAction)==null?void 0:B.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return W}}; Uh=function(S){g.b.call(this,{G:"button",Wn:["ytp-miniplayer-button","ytp-button"],D:{title:S.T("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"},U:["{{icon}}"]});this.W=S;this.visible=!1;this.listen("click",this.onClick);this.K(S,"fullscreentoggled",this.L_);this.W.T("player_tooltip_data_title_killswitch")? this.update({title:g.Rg(S,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:AEP(this)}):this.update({"tooltip-title":g.Rg(S,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:AEP(this)});Uk(S,this.element,this);S.createClientVe(this.element,this,62946);this.L_()}; AEP=function(S){return S.W.T("delhi_modern_web_player_icons")?apc():QG()}; LD=function(S,W,m,a,J,B){B=B===void 0?!1:B;var E={G:"div",Wn:["ytp-input-slider-section"],U:[{G:"input",L:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};J&&E.U.unshift(J);B&&E.Wn.push("ytp-vertical-slider");g.b.call(this,E);this.B=S;this.X=W;this.V=m;this.initialValue=a;this.header=J;this.j=0; this.N=this.I2("ytp-input-slider");this.C=a?a:S;this.init();this.K(this.N,"input",this.b7);this.K(this.N,"keydown",this.A6)}; RT=function(S,W,m){m=m===void 0?!1:m;S.j&&(cancelAnimationFrame(S.j),S.j=0);m?Z3G(S,S.C,W):N$P(S,W)}; N$P=function(S,W){S.C=W;S.update({slidervalue:S.C,ariaValueNow:S.C});S.N.valueAsNumber=S.C;b3Q(S,W)}; Z3G=function(S,W,m){var a=performance.now(),J=m-W;if(J!==0){var B=function(E){E=(E-a)/400;E>1&&(E=1);N$P(S,W+J*XMG(ojP,vvG(ojP,E)));S.j=E<1?requestAnimationFrame(B):0}; S.j=requestAnimationFrame(B)}}; b3Q=function(S,W){S.N.style.setProperty("--yt-slider-shape-gradient-percent",(W-S.B)/(S.X-S.B)*100+"%")}; er=function(S){var W=S.isMuted()?0:S.getVolume();LD.call(this,0,100,1,W,void 0,!0);this.W=S;this.S=on(this.vn,10,this);this.Z=!1;this.K(S,"onVolumeChange",this.onVolumeChange);this.K(this.element,"wheel",this.N2)}; rED=function(S,W){g.b.call(this,{G:"div",D:{tabindex:"0",title:S.T("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},Wn:["ytp-volume-popover"]});var m=this;this.isVisible=!1;this.tooltip=W.Dz();this.N=new er(S);g.Z(this,this.N);this.N.GN(this.element);this.C=new g.rj(function(){x2(m,!1)},300); this.listen("mouseenter",function(){m.C.stop()}); this.listen("mouseleave",function(){m.C.start()}); this.listen("focus",function(){m.C.stop()}); this.K(this.N.N,"focus",function(){m.C.stop()}); this.listen("focusout",function(){m.C.start();m.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.MV(W.Dz(),this.element));g.Z(this,this.C)}; x2=function(S,W){S.element.classList.toggle("ytp-volume-popover-hovering",W);S.isVisible=W;(S=S.element.closest(".ytp-chrome-bottom"))&&S.classList.toggle("ytp-volume-popover-showing",W)}; ii=function(S,W,m){m=m===void 0?!1:m;var a=S.J().s9?{"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:S.T("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};a=S.T("delhi_modern_web_player")?{G:"div",L:"ytp-mute-button",U:[{G:"button",D:a,Wn:["ytp-volume-icon", "ytp-button"],Bn:"{{icon}}"}]}:{G:"button",Wn:["ytp-mute-button","ytp-button"],D:a,U:[{G:"div",L:"ytp-volume-icon",Bn:"{{icon}}"}]};g.b.call(this,a);this.W=S;this.Hn=m;this.N=null;this.V=this.q2=this.S=this.Z=NaN;this.Pn=this.N2=null;this.X=[];this.j=[];this.visible=!1;this.B=this.C=this.vn=null;S.T("delhi_modern_web_player")&&this.update({"data-priority":4});m=this.W.J();this.updateValue("icon",UB());this.tooltip=W.Dz();this.updateValue("dataTooltipOffsetY",0);this.B=g.gY("ytp-volume-icon",this.element); a=this.W.T("delhi_modern_web_player_icons")?{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",Wn:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{G:"path",L:"ytp-svg-volume-animation-small-ripple",D:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{G:"path",L:"ytp-svg-volume-animation-big-ripple",D:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},U:[{G:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"},U:[{G:"path",L:"ytp-svg-volume-animation-mover", D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",a6:!0,Wn:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",a6:!0,Wn:["ytp-svg-fill","ytp-svg-volume-animation-hider"],D:{"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.N=new g.Bm(a);g.Z(this,this.N);this.N2=this.N.I2("ytp-svg-volume-animation-speaker");this.Pn=this.N2.getAttribute("d");this.X=g.nX("ytp-svg-volume-animation-mover",this.N.element);this.W.T("delhi_modern_web_player_icons");this.j=g.nX("ytp-svg-volume-animation-hider",this.N.element);this.W.T("delhi_modern_web_player_icons");this.s9=new A9;g.Z(this,this.s9);this.Xn=new A9;g.Z(this,this.Xn);this.K(S,"appresize",this.Ub);this.K(S,"onVolumeChange",this.onVolumeChange);S.T("delhi_modern_web_player")? this.listen("click",this.sp9):this.listen("click",this.fh);m.s9?(S.T("delhi_modern_web_player")&&!S.T("delhi_modern_web_player_horizontal_volume_controls")&&(this.C=new rED(S,W),this.C.GN(this.element),g.Z(this,this.C),this.K(this.B,"mouseover",this.Sk),this.K(this.B,"focus",this.Sk),this.K(this.B,"mouseout",this.HV),this.K(this.B,"blur",this.HV)),m=S.T("delhi_modern_web_player")?this.B:this.element,this.addOnDisposeCallback(g.MV(W.Dz(),m))):CSP(this);this.message=null;S.createClientVe(this.element, this,28662);this.Ub(S.k6().getPlayerSize());this.setVolume(S.getVolume(),S.isMuted())}; cE7=function(S,W){if(S.W.J().s9){var m=g.Rg(S.W,"Mute","m"),a=g.Rg(S.W,"Unmute","m");m=W?a:m;S.W.J().T("player_tooltip_data_title_killswitch")?S.updateValue("title",m):S.update({"tooltip-title":m,"aria-label":m});S.update({"data-title-no-tooltip":W?"Unmute":"Mute"});S.tooltip.iK()}}; Sd7=function(S,W){S.Z=W;var m=S.Pn;S.W.T("delhi_modern_web_player_icons")?S.N.I2("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(W+") translate(-22,-12)")):W&&(m+=ot6(DmK,wV_,W));S.N2.setAttribute("d",m)}; W7O=function(S,W){var m;W===1?m=S.W.T("delhi_modern_web_player_icons")?{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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"}}]}:UB():m=S.N;S.q2=W;if(S.W.T("delhi_modern_web_player_icons"))S.N.I2("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-W+") translate(-18,-12)")),S.N.I2("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(S.Z-W+") translate(-22, -12)"));else{for(var a=20*W,J=0;J=3&&S.W.getPresentingPlayerType()!==2}; z0P=function(S){var W=Pf(S.W.GV());return W?S.C?W.hasNext():W.hasPrevious():!1}; JCl=function(S){var W={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},m=S.playlist!=null&&S.playlist.hasNext();m=g.fB(S.W)&&(!S.C||m);var a=S.C&&g.Ac(S.W),J=z0P(S),B=S.C&&S.W.getPresentingPlayerType()===5,E=g.Rg(S.W,"Next","SHIFT+n"),y=g.Rg(S.W,"Previous","SHIFT+p");if(B)W.title="Start video",W["tooltip-title"]="Start video";else if(S.B)W.title="Replay",W["tooltip-title"]="Replay";else if(m){var Y=null;S.playlist&& (Y=g.qH(S.playlist,S.C?kP7(S.playlist):$7P(S.playlist)));if(Y){if(Y.videoId){var G=S.playlist.listId;W.url=S.W.J().getVideoUrl(Y.videoId,G?G.toString():void 0)}W.text=Y.title;W.duration=Y.lengthText?Y.lengthText:Y.lengthSeconds?g.jD(Y.lengthSeconds):null;W.preview=Y.Zf("mqdefault.jpg")}S.C?(W.title=E,W["tooltip-title"]=E,W["data-title-no-tooltip"]="Next",W["aria-keyshortcuts"]="SHIFT+n"):(W.title=y,W["tooltip-title"]=y,W["data-title-no-tooltip"]="Previous",W["aria-keyshortcuts"]="SHIFT+p")}else if(a){if(y= (Y=S.videoData)==null?void 0:g.Kp(Y))W.url=y.Lk(),W.text=y.title,W.duration=y.lengthText?y.lengthText:y.lengthSeconds?g.jD(y.lengthSeconds):null,W.preview=y.Zf("mqdefault.jpg");W.title=E;W["tooltip-title"]=E;W["data-title-no-tooltip"]="Next";W["aria-keyshortcuts"]="SHIFT+n"}W.disabled=!a&&!m&&!J&&!B;S.update(W);S.V=!!W.url;a||m||S.B||J||B?S.N||(S.N=g.MV(S.tooltip,S.element),S.X=S.listen("click",S.onClick,S)):S.N&&(S.N(),S.N=null,S.TC(S.X),S.X=null);S.tooltip.iK();g.GD(S.element,"ytp-playlist-ui", S.C&&(m||S.W.T("web_hide_next_button")))}; aCP=function(S,W){return S?W?JOP():gC():W?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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"}}]}:TUO()}; YdP=function(S,W){g.b.call(this,{G:"div",L:"ytp-fine-scrubbing",U:[{G:"div",L:"ytp-fine-scrubbing-draggable",U:[{G:"div",L:"ytp-fine-scrubbing-thumbnails",D:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{G:"div",D:{"aria-hidden":"true"},L:"ytp-fine-scrubbing-cursor"},{G:"div",L:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"}, Bn:"{{seekTime}}"},{G:"div",L:"ytp-fine-scrubbing-play",U:[S.T("delhi_modern_web_player_icons")?vm():Xo()],D:{title:"Play from this position",role:"button"}},{G:"div",L:"ytp-fine-scrubbing-dismiss",U:[g.VG()],D:{title:"Exit precise seeking",role:"button"}}]});var m=this;this.api=S;this.X=this.I2("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.I2("ytp-fine-scrubbing-dismiss");this.q2=this.I2("ytp-fine-scrubbing-draggable");this.playButton=this.I2("ytp-fine-scrubbing-play");this.thumbnails= [];this.N=[];this.Hn=this.C=0;this.s9=void 0;this.N2=NaN;this.O9=this.S=this.B=this.Z=0;this.j=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.g2=0;this.isEnabled=this.Pn=!1;yCl(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.MV(W,this.dismissButton));this.addOnDisposeCallback(g.MV(W,this.playButton));this.Xn=new g.R4(this.q2,!0);this.Xn.subscribe("dragstart",this.X6,this);this.Xn.subscribe("dragmove",this.Gl,this);this.Xn.subscribe("dragend",this.SM,this);this.K(S,"SEEK_COMPLETE", this.l8);S.T("web_fix_fine_scrubbing_false_play")&&this.K(S,"rootnodemousedown",function(a){m.vn=a}); this.X.addEventListener("keydown",function(){}); g.Z(this,this.Xn);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.X,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; yCl=function(S,W){var m=g.jD(W),a=g.Wo("Seek to $PROGRESS",{PROGRESS:g.jD(W,!0)});S.update({ariamin:0,ariamax:Math.floor(S.api.getDuration()),arianow:Math.floor(W),arianowtext:a,seekTime:m})}; GOj=function(S){S.N2=NaN;S.S=0;S.Z=S.B}; qdK=function(S){var W=S.api.LW();if(W){var m=90*S.scale,a=rq(W,160*S.scale);if(W=W.levels[a]){S.V=W.width;if(!S.j.length){a=[];for(var J=C1(W,W.Kw()),B=W.columns*W.rows,E=W.frameCount,y=0;y<=J;y++)for(var Y=ES.j.length;)a= void 0,(a=S.thumbnails.pop())==null||a.dispose();for(;S.thumbnails.lengthm.length;)a=void 0,(a=S.N.pop())==null||a.dispose(); for(;S.N.length-m?-W/m*S.interval*.5:-(W+m/2)/m*S.interval}; p5P=function(S){return-((S.X.offsetWidth||(S.frameCount-1)*S.V*S.scale)-S.C/2)}; K7P=function(){g.b.call(this,{G:"div",L:"ytp-fine-scrubbing-thumbnail"})}; TH6=function(){g.b.call(this,{G:"div",L:"ytp-fine-scrubbing-chapter-title",U:[{G:"div",L:"ytp-fine-scrubbing-chapter-title-content",Bn:"{{chapterTitle}}"}]})}; Vj6=function(S){g.b.call(this,{G:"div",L:"ytp-heat-map-chapter",U:[{G:"svg",L:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",D:{id:"{{id}}"},U:[{G:"path",L:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{G:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},U:[{G:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{G:"stop",D:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{G:"rect",L:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{G:"path",L:"ytp-modern-heat-map",D:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=S;this.Z=this.I2("ytp-heat-map-svg");this.X=this.I2("ytp-heat-map-path");this.j=this.I2("ytp-heat-map-graph");this.V=this.I2("ytp-heat-map-play");this.C=this.I2("ytp-heat-map-hover");this.B=this.I2("ytp-modern-heat-map");this.LP=!1;this.N=60;S=""+g.xp(this);this.update({id:S});S="url(#"+S+")";this.j.setAttribute("clip-path",S);this.V.setAttribute("clip-path",S);this.C.setAttribute("clip-path",S)}; n9P=function(S,W){W>0&&(S.N=W,S.Z.style.height=S.N+"px")}; fD=function(){g.b.call(this,{G:"div",L:"ytp-chapter-hover-container",U:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",U:[{G:"div",Wn:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-progress-linear-live-buffer"},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.N=this.I2("ytp-progress-list");this.X=this.I2("ytp-progress-linear-live-buffer"); this.j=this.I2("ytp-ad-progress-list");this.V=this.I2("ytp-load-progress");this.Z=this.I2("ytp-play-progress");this.B=this.I2("ytp-hover-progress");this.C=this.I2("ytp-chapter-hover-container")}; k2=function(S,W){g.mg(S.C,"width",W)}; sA6=function(S,W){g.mg(S.C,"margin-right",W+"px")}; ueK=function(){this.N=this.position=this.B=this.C=this.j=this.width=NaN}; g9G=function(){g.b.call(this,{G:"div",L:"ytp-timed-marker"});this.C=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.ht=function(S,W){g.yG.call(this,{G:"div",L:"ytp-progress-bar-container",D:{"aria-disabled":"true"},U:[{G:"div",Wn:["ytp-heat-map-container"],U:[{G:"div",L:"ytp-heat-map-edu"}]},{G:"div",Wn:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"}, {G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",U:[{G:"div",Wn:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"},{G:"img",Wn:["ytp-decorated-scrubber-button"]}]}]}]},{G:"div",Wn:["ytp-fine-scrubbing-container"],U:[{G:"div",L:"ytp-fine-scrubbing-edu"}]},{G:"div",L:"ytp-bound-time-left",Bn:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",Bn:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",D:{title:"{{clipstarttitle}}"},Bn:"{{clipstarticon}}"}, {G:"div",L:"ytp-clip-end",D:{title:"{{clipendtitle}}"},Bn:"{{clipendicon}}"}]});this.api=S;this.ZF=!1;this.ov=this.vQ=this.d2=this.q2=this.V=this.Mp=0;this.CC=null;this.Mi=!1;this.zN={};this.Cn={};this.clipEnd=Infinity;this.yT=this.I2("ytp-clip-end");this.o6=new g.R4(this.yT,!0);this.dA=this.I2("ytp-clip-end-exclude");this.aY=this.I2("ytp-clip-start-exclude");this.clipStart=0;this.eg=this.I2("ytp-clip-start");this.Od=new g.R4(this.eg,!0);this.N2=this.IL=0;this.progressBar=this.I2("ytp-progress-bar"); this.EV={};this.hX={};this.uY=this.I2("ytp-chapters-container");this.uO=this.I2("ytp-timed-markers-container");this.C=[];this.Z=[];this.RU={};this.kB=null;this.s9=-1;this.Wv=this.Hn=0;this.H1=this.S=null;this.bJ=this.I2("ytp-scrubber-button");this.Xn=this.I2("ytp-decorated-scrubber-button");this.Uo=this.I2("ytp-scrubber-container");this.vv=new g.an;this.Kn=0;this.Ra=new ueK;this.B=new eD(0,0);this.Xz=null;this.X=this.Q2=!1;this.Qd=null;this.vn=this.I2("ytp-heat-map-container");this.xP=this.I2("ytp-heat-map-edu"); this.j=[];this.heatMarkersDecorations=[];this.M2=this.I2("ytp-fine-scrubbing-container");this.mQ=this.I2("ytp-fine-scrubbing-edu");this.N=void 0;this.O9=this.xK=this.g2=!1;this.tooltip=W.Dz();this.addOnDisposeCallback(g.MV(this.tooltip,this.yT));g.Z(this,this.o6);this.o6.subscribe("hoverstart",this.aF,this);this.o6.subscribe("hoverend",this.IF,this);this.K(this.yT,"click",this.zo);this.addOnDisposeCallback(g.MV(this.tooltip,this.eg));g.Z(this,this.Od);this.Od.subscribe("hoverstart",this.aF,this); this.Od.subscribe("hoverend",this.IF,this);this.K(this.eg,"click",this.zo);OCQ(this);this.K(S,"resize",this.Qc);this.K(S,"presentingplayerstatechange",this.S0);this.K(S,"videodatachange",this.uZ);this.K(S,"videoplayerreset",this.rX2);this.K(S,"cuerangesadded",this.MSq);this.K(S,"cuerangesremoved",this.Xr2);this.K(S,"onLoopRangeChange",this.lA);this.K(S,"innertubeCommand",this.onClickCommand);this.K(S,"onRetroModeChanged",this.hi2);this.K(S,g.AD("timedMarkerCueRange"),this.AOq);this.K(S,"updatemarkervisibility", this.V_);this.K(S,S.J().ZH().C.QD(a4)?"playbackChange":"serverstitchedvideochange",this.oB2);this.updateVideoData(S.getVideoData(),!0);this.lA(S.getLoopRange());$2(this)&&!this.N&&(this.N=new YdP(this.api,this.tooltip),S=g.Kh(this.element).x||0,this.N.Qc(S,this.V),this.N.GN(this.M2),g.Z(this,this.N),this.K(this.N.dismissButton,"click",this.PW),this.K(this.N.playButton,"click",this.z2),this.K(this.N.element,"dblclick",this.z2));this.api.createClientVe(this.vn,this,139609,!0);this.api.createClientVe(this.xP, this,140127,!0);this.api.createClientVe(this.mQ,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; OCQ=function(S){if(S.C.length===0){var W=new fD;S.C.push(W);g.Z(S,W);W.GN(S.uY,0)}for(;S.C.length>1;)S.C.pop().dispose();k2(S.C[0],"100%");S.C[0].startTime=0;S.C[0].title=""}; jAD=function(S){var W=W===void 0?NaN:W;var m=new Vj6(S.api);S.j.push(m);g.Z(S,m);m.GN(S.vn);W>=0&&(m.element.style.width=W+"px")}; QAO=function(S){for(;S.Z.length;)S.Z.pop().dispose()}; v9X=function(S){var W,m,a,J,B;return(B=g.n((J=g.n((W=S.getWatchNextResponse())==null?void 0:(m=W.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:a.decoratedPlayerBarRenderer,f1))==null?void 0:J.playerBar,X5l))==null?void 0:B.chapters}; HCX=function(S){for(var W=S.C,m=[],a=0;a=E&&O<=K&&B.push(p)}Y>0&&(S.vn.style.height=Y+"px");E=S.j[a];K=B;p=J;F=Y;O=a===0;O=O===void 0?!1:O;n9P(E,F);T=K;q=E.N;O=O===void 0?!1:O;var X=1E3/T.length,l=[];l.push({x:0,y:100});for(var M=0;M0&&(m=B[B.length-1])}g.tt(S);y=[];W=g.R(W.heatMarkersDecorations||[]);for(J=W.next();!J.done;J=W.next())if(J=g.n(J.value,x6P))Y=J.label,a=m=G=void 0,y.push({visibleTimeRangeStartMillis:(G=J.visibleTimeRangeStartMillis)!=null?G:-1,visibleTimeRangeEndMillis:(m=J.visibleTimeRangeEndMillis)!=null?m:-1,decorationTimeMillis:(a=J.decorationTimeMillis)!=null?a:NaN,label:Y?g.K8(Y):""});S.heatMarkersDecorations=y}}; U6K=function(S,W){S.Z.push(W);g.Z(S,W);W.GN(S.uO,S.uO.children.length)}; L7G=function(S,W){W=g.R(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var a=At(S,m.timeRangeStartMillis/(S.B.C*1E3),Za(S)),J=S.api.T("delhi_modern_web_player")?.667:.6;g.mg(m.element,"transform","translateX("+a+"px) scaleX("+J+")")}}; lCO=function(S,W){var m=0,a=!1;W=g.R(W);for(var J=W.next();!J.done;J=W.next()){J=J.value;if(g.n(J,d67)){J=g.n(J,d67);var B={startTime:NaN,title:null,onActiveCommand:void 0},E=J.title;B.title=E?g.K8(E):"";E=J.timeRangeStartMillis;E!=null&&(B.startTime=E);B.onActiveCommand=J.onActiveCommand;J=B;m===0&&J.startTime!==0&&(S.C[m].startTime=0,S.C[m].title="",S.C[m].onActiveCommand=J.onActiveCommand,m++,a=!0);S.C.length<=m&&(B=new fD,S.C.push(B),g.Z(S,B),B.GN(S.uY,S.uY.children.length));S.C[m].startTime= J.startTime;S.C[m].title=J.title?J.title:"";S.C[m].onActiveCommand=J.onActiveCommand;S.C[m].index=a?m-1:m}m++}for(;m=0;a--)if(S.C[a].width>0){sA6(S.C[a],0);var J=Math.floor(S.C[a].width);S.C[a].width=J;k2(S.C[a],J+"px");break}S.C[m].width=0;k2(S.C[m],"0")}else m===S.C.length-1?(a=Math.floor(S.C[m].width+W),S.C[m].width=a,k2(S.C[m],a+"px")):(W=S.C[m].width+W,a=Math.round(W),W-=a,S.C[m].width=a,k2(S.C[m],a+"px"));m=0;if(S.j.length===S.C.length)for(W=0;W< S.j.length;W++)a=S.C[W].width,S.j[W].element.style.width=a+"px",S.j[W].element.style.left=m+"px",m+=a+bi(S);S.api.T("delhi_modern_web_player")&&(S.C.length===1?S.C[0].N.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(S.C[0].N.classList.remove("ytp-progress-bar-end"),S.C[0].N.classList.add("ytp-progress-bar-start"),S.C[S.C.length-1].N.classList.add("ytp-progress-bar-end")))}; ICl=function(S,W){var m=0,a=!1,J=S.C.length,B=S.B.C*1E3;B===0&&(B=S.api.getProgressState().seekableEnd*1E3);if(B>0&&S.V>0){for(var E=S.V-bi(S)*S.Hn,y=S.Wv===0?3:E*S.Wv,Y=g.R(S.C),G=Y.next();!G.done;G=Y.next())G.value.width=0;for(;m1);G=(B===0?0:Y/B*E)+S.C[m].width;if(G>y)S.C[m].width=G;else{S.C[m].width=0;var K=S,T=m,p=K.C[T-1];p!==void 0&&p.width>0? p.width+=G:TS.Wv&&(S.Wv=Y/B),a=!0)}m++}}return a}; NN=function(S){if(S.V){var W=S.api.getProgressState(),m=S.api.getVideoData();if(!(m&&m.enableServerStitchedDai&&m.A7)||isFinite(W.current)){var a;if(((a=S.api.getVideoData())==null?0:zE(a))&&W.airingStart&&W.airingEnd)var J=oT(S,W.airingStart,W.airingEnd);else if(S.api.getPresentingPlayerType()===2){var B,E,y;J=(m=(J=S.api.getVideoData())==null?void 0:(B=J.getPlayerResponse())==null?void 0:(E=B.playerConfig)==null?void 0:(y=E.webPlayerConfig)==null?void 0:y.skippableAdProgressBarDuration)?oT(S,W.seekableStart, m/1E3):oT(S,W.seekableStart,W.seekableEnd)}else J=oT(S,W.seekableStart,W.seekableEnd);B=x$(J,W.loaded,0);W=x$(J,W.current,0);E=S.B.N!==J.N||S.B.C!==J.C;S.B=J;r4(S,W,B);E&&Pol(S);fCP(S);W=48;J=S.api.J();B=g.Db(S.api.J().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");B=S.api.T("delhi_modern_web_player_compact_controls")||B>0&&S.api.getPlayerSize().width<=B;S.api.T("delhi_modern_web_player")?W=S.api.getPlayerSize().width<=528?B?56:64:S.X?B?72:96:B?56:72:S.X?W=54:g.f9(J)&& !J.N&&(W=40);S.q2=W}}}; oT=function(S,W,m){return kOP(S)?new eD(Math.max(W,S.Xz.startTimeMs/1E3),Math.min(m,S.Xz.endTimeMs/1E3)):new eD(W,m)}; h0_=function(S,W){var m,a,J;W=g.n((m=W.getWatchNextResponse())==null?void 0:(a=m.playerOverlays)==null?void 0:(J=a.playerOverlayRenderer)==null?void 0:J.decoratedPlayerBarRenderer,f1);if(W==null?0:W.progressColor)for(m=0;m1){m=CD(S,W.B,!0);for(var a=0,J=0;J0&&(a+=S.C[J].width,a+=bi(S));m=(S.C[m].startTime+(W.B-a)/S.C[m].width*((m===S.C.length-1?S.B.C*1E3:S.C[m+1].startTime)-S.C[m].startTime))/1E3||0}return m}; ACO=function(S,W){if(W<0)return"0";S=Math.floor(Math.min(W,S.api.getDuration())*1E3);return S>2147483647?"0":String(S)}; Da=function(S,W,m,a,J){W=ACO(S,W);m=ACO(S,m);S=S.progressBar.visualElement;a={seekData:{startMediaTimeMs:W,endMediaTimeMs:m,seekSource:a}};(W=g.uR())&&Sa(W,S,J,a)}; ZCP=function(S,W,m){if(m>=S.C.length)return!1;var a=S.V-bi(S)*S.Hn;return Math.abs(W-S.C[m].startTime/1E3)/S.B.C*a<4}; Pol=function(S){S.bJ.style.removeProperty("height");for(var W=g.R(Object.keys(S.zN)),m=W.next();!m.done;m=W.next())NHK(S,m.value);w4(S);r4(S,S.N2,S.IL)}; var WDK=function(S){return QP[z[7]](this,11,S)}; Za=function(S){var W=S.vv.x;W=g.Su(W,0,S.V);S.Ra.update(W,S.V);return S.Ra}; r4=function(S,W,m){S.N2=W;S.IL=m;var a=Za(S),J=S.B.C,B=NUO(S.B,S.N2),E=g.Wo("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.jD(B,!0),DURATION:g.jD(J,!0)}),y=Eh(S.C,B*1E3);y=S.C[y].title;S.update({ariamin:Math.floor(S.B.N),ariamax:Math.floor(J),arianow:Math.floor(B),arianowtext:y?y+" "+E:E});J=S.clipStart;B=S.clipEnd;S.Xz&&S.api.getPresentingPlayerType()!==2&&(J=S.Xz.startTimeMs/1E3,B=S.Xz.endTimeMs/1E3);J=x$(S.B,J,0);y=x$(S.B,B,1);E=S.api.getVideoData();B=g.Su(W,J,y);m=(E==null?0:g.Jc(E))?1:g.Su(m, J,y);W=At(S,W,a);g.mg(S.Uo,"transform","translateX("+W+"px)");S.api.T("delhi_modern_web_player")&&S.api.T("delhi_modern_web_player_cutout")&&bCP(S,W);Sz(S,a,J,B,"PLAY_PROGRESS");(E==null?0:zE(E))?(W=S.api.getProgressState().seekableEnd)&&Sz(S,a,B,x$(S.B,W),"LIVE_BUFFER"):Sz(S,a,J,m,"LOAD_PROGRESS");if(S.api.T("web_player_heat_map_played_bar")){var Y;(Y=S.j[0])!=null&&Y.V.setAttribute("width",(B*100).toFixed(2)+"%")}}; bCP=function(S,W){S.api.getPresentingPlayerType()!==1?S.uY.style.removeProperty("clip-path"):(W||(W=At(S,S.N2,Za(S))),S.uY.style.clipPath='path("'+(S.Mi?o9P(S,8,W,S.X?50:36,0,6):o9P(S,4,W,S.X?34:24,2,3))+'")')}; o9P=function(S,W,m,a,J,B){var E=m-a/2;m+=a/2;W+=J;return"M 0 "+J+" L 0 "+(W+" L ")+(E+" "+W+" C ")+(E+B+" "+W+" "+(E+B)+" "+J+" "+E+" "+J+" L 0 ")+(J+" M ")+(m+" "+J+" L ")+(S.V+" "+J+" L ")+(S.V+" "+W+" L ")+(m+" "+W+" C ")+(m-B+" "+W+" "+(m-B)+" "+J+" "+m+" "+J)}; Sz=function(S,W,m,a,J){var B=S.C.length,E=W.C-S.Hn*bi(S),y=m*E;m=CD(S,y);var Y=a*E;E=CD(S,Y);J==="HOVER_PROGRESS"&&(E=CD(S,W.C*a,!0),Y=W.C*a-rCD(S,W.C*a)*bi(S));a=Math.max(y-CoG(S,m),0);for(y=m;y=S.C.length)return S.V;for(var m=0,a=0;a0||S.dA.clientWidth>0?(B=W.clientWidth/m,S=-1*S.aY.clientWidth/m):(B/=m,S=-1*S.C[J].element.offsetLeft/m),g.mg(W,"background-size",B+"px"),g.mg(W,"background-position-x",S+"px"))}; WV=function(S,W,m,a,J){J||S.api.J().N?W.style.width=m+"px":g.mg(W,"transform","scalex("+(a?m/a:0)+")")}; CD=function(S,W,m){var a=0;(m===void 0?0:m)&&(W-=rCD(S,W)*bi(S));m=g.R(S.C);for(var J=m.next();!J.done;J=m.next()){J=J.value;if(W>J.width)W-=J.width;else break;a++}return a===S.C.length?a-1:a}; At=function(S,W,m){var a=W*S.B.C*1E3;for(var J=-1,B=g.R(S.C),E=B.next();!E.done;E=B.next())E=E.value,a>E.startTime&&E.width>0&&J++;a=J<0?0:J;J=m.C-bi(S)*S.Hn;return W*J+bi(S)*a+m.j}; rCD=function(S,W){for(var m=S.C.length,a=0,J=g.R(S.C),B=J.next();!B.done;B=J.next())if(B=B.value,B.width!==0)if(W>B.width)W-=B.width,W-=bi(S),a++;else break;return a===m?m-1:a}; g.w5D=function(S,W,m,a){var J=S.V!==m,B=S.X!==a;S.Mp=W;S.V=m;S.X=a;$2(S)&&(W=S.N)!=null&&(W.scale=a?1.5:1);Pol(S);S.C.length===1&&(S.C[0].width=m||0);J&&g.tt(S);S.N&&B&&$2(S)&&(S.N.isEnabled&&(m=S.X?135:90,a=m-S.q2,S.M2.style.height=m+"px",g.mg(S.vn,"transform","translateY("+-a+"px)"),g.mg(S.progressBar,"transform","translateY("+-a+"px)")),qdK(S.N))}; w4=function(S){var W=!!S.Xz&&S.api.getPresentingPlayerType()!==2,m=S.clipStart,a=S.clipEnd,J=!0,B=!0;W&&S.Xz?(m=S.Xz.startTimeMs/1E3,a=S.Xz.endTimeMs/1E3):(J=m>S.B.N,B=S.B.C>0&&aS.N2);g.GD(S.bJ,"ytp-scrubber-button-hover",m===a&&S.C.length>1);if(S.api.T("web_player_heat_map_played_bar")){var B;(B=S.j[0])!=null&&B.C.setAttribute("width",(W.N*100).toFixed(2)+"%")}}}; NHK=function(S,W){var m=S.zN[W];W=S.Cn[W];var a=Za(S),J=x$(S.B,m.start/1E3,0),B=G$P(m,S.X)/a.width;var E=x$(S.B,m.end/1E3,1);B!==Number.POSITIVE_INFINITY&&(J=g.Su(J,0,E-B));E=Math.min(E,J+B);m.color&&(W.style.background=m.color);m=J;W.style.left=Math.max(m*a.C+a.j,0)+"px";WV(S,W,g.Su((E-m)*a.C+a.j,0,a.width),a.width,!0)}; Sb6=function(S,W){var m=W.getId();S.zN[m]===W&&(g.eu(S.Cn[m]),delete S.zN[m],delete S.Cn[m])}; $2=function(S){var W=g.EV(S.api.J())&&(S.api.T("web_shorts_pip")||S.api.T("web_watch_pip")),m;return!((m=S.api.getVideoData())==null?0:m.isLivePlayback)&&!S.api.isMinimized()&&!S.api.isInline()&&(!S.api.KW()||!W)}; mF=function(S){S.N&&(S.N.disable(),S.d2=0,S.vn.style.removeProperty("transform"),S.progressBar.style.removeProperty("transform"),S.M2.style.removeProperty("height"),S.element.parentElement&&S.element.parentElement.style.removeProperty("height"))}; Wh_=function(S,W){var m=W/((S.X?135:90)-S.q2)*S.q2;g.mg(S.progressBar,"transform","translateY("+-W+"px)");g.mg(S.vn,"transform","translateY("+-W+"px)");g.mg(S.M2,"transform","translateY("+m+"px)");S.M2.style.height=W+m+"px";S.element.parentElement&&(S.element.parentElement.style.height=S.q2-m+"px")}; mJj=function(S,W){W?S.S||(S.element.removeAttribute("aria-disabled"),S.S=new g.R4(S.progressBar,!0),S.api.T("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&S.S.subscribe("hoverstart",S.PQ2,S),S.S.subscribe("hovermove",S.X12,S),S.S.subscribe("hoverend",S.GYQ,S),S.S.subscribe("dragstart",S.crn,S),S.S.subscribe("dragmove",S.WIq,S),S.S.subscribe("dragend",S.tCn,S),S.api&&S.api.T("delhi_modern_web_player")&&S.api.T("delhi_modern_web_player_cutout")&&(S.H1=new g.R4(S.progressBar, !0),S.H1.subscribe("hoverstart",function(){S.Mi=!0;bCP(S)},S),S.H1.subscribe("hoverend",function(){S.Mi=!1; bCP(S)},S)),S.Qd=S.listen("keydown",S.z1)):S.S&&(S.element.setAttribute("aria-disabled","true"),S.TC(S.Qd),S.S.cancel(),S.S.dispose(),S.S=null)}; bi=function(S){return S.api.T("delhi_modern_web_player")?4:S.X?3:2}; kOP=function(S){var W;return!((W=S.Xz)==null||!W.postId)&&S.api.getPresentingPlayerType()!==2}; aH=function(S,W){g.b.call(this,{G:"button",Wn:["ytp-remote-button","ytp-button"],D:{title:S.T("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},Bn:"{{icon}}"});this.W=S;this.C3=W;this.C=null;this.K(S,"onMdxReceiversChange",this.L_);this.K(S,"presentingplayerstatechange",this.L_);this.K(S,"appresize",this.L_);S.createClientVe(this.element,this,139118);this.L_();this.listen("click",this.N,this);Uk(S,this.element,this)}; JE=function(S,W){g.b.call(this,{G:"button",Wn:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":JZ(),title:S.T("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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.lf()]});this.W=S;this.C3=W;this.N=!0;this.listen("click",this.B);this.K(S,"onPlaybackQualityChange",this.updateBadge);this.K(S,"videodatachange",this.updateBadge);this.K(S,"webglsettingschanged",this.updateBadge);this.K(S,"appresize",this.C);Uk(S,this.element,this);this.W.createClientVe(this.element,this,28663);this.updateBadge();this.C(S.k6().getPlayerSize())}; aHO=function(S,W){S.N=!!W;S.C(S.W.k6().getPlayerSize())}; BV=function(S,W,m){if(S.T("web_add_footer_template_to_audio_track")){var a="Edit your $BEGIN_LINKpreferred languages$END_LINK in the settings".split(/\$(BEGIN|END)_LINK/);a={G:"div",L:"ytp-panel-footer-content",U:[a[0],{G:"a",L:"ytp-panel-footer-content-link",D:{href:"/account_playback"},Bn:a[2]},a[4]]}}g.M7.call(this,"Audio track",g.uG.AUDIO,S,W,void 0,void 0,a);this.W=S;this.C=m;this.tracks={};g.Bn(this.element,"ytp-audio-menu-item");this.countLabel=new g.b({G:"div",U:[{G:"span",Bn:"Audio track"}, {G:"span",L:"ytp-menuitem-label-count",Bn:"{{content}}"}]});S.T("web_settings_menu_icons")&&!this.W.T("html5_enable_new_audio_settings_menu")&&(W=S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(W));g.Z(this,this.countLabel);g.Si(this,this.countLabel);S.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.K(S,"videodatachange",this.L_);this.K(S,"onPlaybackAudioChange",this.L_);this.L_()}; Jh7=function(S,W){g.Ws.call(this,g.mv({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.uG.v2);this.W=S;this.C3=W;g.Bn(this.element,"ytp-audio-settings-menu-item");this.Ln=new g.ua(S,void 0,"Audio");this.countLabel=new g.b({G:"div",U:[{G:"span",Bn:"Audio"},{G:"span",L:"ytp-menuitem-label-count",Bn:"{{content}}"}]});S.T("web_settings_menu_icons")&&this.setIcon({G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.eK=new BV(S,this.C3,this);g.Z(this,this.eK);this.K(S,"settingsMenuInitialized",this.FG.bind(this));this.K(S,"videodatachange",this.FG.bind(this));g.Z(this,this.countLabel);g.Si(this,this.countLabel);this.C3.xb(this);this.K(S,"onPlaybackAudioChange",this.Br);this.listen("keydown",this.z1);this.listen("click",this.open)}; E9=function(S,W){Tw.call(this,"Auto-play",g.uG.B2);this.W=S;this.C3=W;this.C=!1;this.N=[];this.K(S,"presentingplayerstatechange",this.FG);this.subscribe("select",this.onSelect,this);S.createClientVe(this.element,this,113682);this.FG()}; BL_=function(S,W){g.Ws.call(this,g.mv({"aria-haspopup":"false"}),0,"More options");this.W=S;this.C3=W;this.K(this.element,"click",this.onClick);this.C3.xb(this)}; E7K=function(S,W){var m;g.EV(S.J())&&(m={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",Bn:"Adjust download quality from your "},{G:"a",L:"ytp-panel-footer-content-link",Bn:"Settings",D:{href:"/account_downloads"}}]});g.M7.call(this,"Quality",g.uG.aW,S,W,void 0,void 0,m);this.W=S;this.vn={};this.V={};this.N={};this.q2=new Set;this.C=this.j=!1;this.X="unknown";this.Z="";this.N2=new g.tv;g.Z(this,this.N2);this.j=this.W.T("web_player_use_new_api_for_quality_pullback");this.C=this.W.T("web_player_enable_premium_hbr_playback_cap"); S.T("web_settings_menu_icons")&&(W=S.T("delhi_modern_web_player_icons")?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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.Bn(this.Ln.element,"ytp-quality-menu");this.K(S,"videodatachange",this.FG);this.K(S,"videoplayerreset",this.FG);this.K(S,"onPlaybackQualityChange",this.fL);this.FG();S.createClientVe(this.element,this,137721)}; yhG=function(S,W,m){var a=S.vn[W],J=g.Ht[W];return zMX(S,a?a.qualityLabel:J?J+"p":"Auto",W,m)}; YbX=function(S,W,m,a,J){var B=(W=S.C?S.N[W]:S.V[W])&&W.quality,E=W&&W.qualityLabel;E=E?E:"Auto";a&&(E="("+E);S=zMX(S,E,B||"",J);a&&S.U.push(")");(a=(a=W&&W.paygatedQualityDetails)&&a.paygatedIndicatorText)&&m&&S.U.push({G:"div",L:"ytp-premium-label",Bn:a});return S}; zMX=function(S,W,m,a){W={G:"span",Wn:a,U:[W]};var J;a="ytp-swatch-color";if(S.j||S.C)a="ytp-swatch-color-white";m==="highres"?J="8K":m==="hd2880"?J="5K":m==="hd2160"?J="4K":m.indexOf("hd")===0&&m!=="hd720"&&(J="HD");J&&(W.U.push(" "),W.U.push({G:"sup",L:a,Bn:J}));return W}; zL=function(S){LD.call(this,S.getAvailablePlaybackRates()[0],S.getAvailablePlaybackRates()[S.getAvailablePlaybackRates().length-1],.05,S.getPlaybackRate(),{G:"div",L:"ytp-speedslider-indicator-container",U:[{G:"div",L:"ytp-speedslider-badge"},{G:"p",L:"ytp-speedslider-text"}]});this.W=S;this.S=on(this.fz,50,this);g.Bn(this.N,"ytp-speedslider");this.Z=this.I2("ytp-speedslider-text");this.N2=this.I2("ytp-speedslider-badge");this.ZV();this.K(this.N,"change",this.DdU)}; ye=function(S,W,m,a,J,B,E){g.b.call(this,{G:"div",L:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-slider",U:[{G:"div",L:"ytp-slider-handle"}]}]});this.Z=S;this.S=W;this.N=m;this.B=a;this.N2=J;this.Pn=B;this.range=this.B-this.N;this.s9=this.I2("ytp-slider-section");this.j=this.I2("ytp-slider");this.vn=this.I2("ytp-slider-handle");this.V=new g.R4(this.j, !0);this.C=E?E:m;g.Z(this,this.V);this.V.subscribe("dragmove",this.Y1,this);this.K(this.element,"keydown",this.pz);this.K(this.element,"wheel",this.m8);this.init()}; Yj=function(S){ye.call(this,.05,.05,S.getAvailablePlaybackRates()[0],S.getAvailablePlaybackRates()[S.getAvailablePlaybackRates().length-1],150,20,S.getPlaybackRate());this.W=S;this.X=g.HI("P");this.Xn=on(this.q2,50,this);g.Bn(this.j,"ytp-speedslider");g.Bn(this.X,"ytp-speedslider-text");S=this.X;var W=this.j;W.parentNode&&W.parentNode.insertBefore(S,W.nextSibling);this.ZV();this.K(this.W,"onPlaybackRateChange",this.updateValues)}; GY6=function(S,W){S=Number(g.Su(W,S.N,S.B).toFixed(2));W=Math.floor((S+.001)*100%5+2E-15);var m=S;W!==0&&(m=S-W*.01);return Number(m.toFixed(2))}; KhX=function(S){g.yG.call(this,{G:"div",L:"ytp-speedslider-component"});S.T("web_settings_use_input_slider")?this.C=new zL(S):this.C=new Yj(S);g.Z(this,this.C);this.element.appendChild(this.C.element)}; TLP=function(S){var W=new KhX(S);nd.call(this,S,W,"Custom");g.Z(this,W)}; puP=function(S,W){var m=new TLP(S);g.M7.call(this,"Playback speed",g.uG.jw,S,W,GL(S)?void 0:"Custom",GL(S)?void 0:function(){g.j7(W,m)}); var a=this;this.Z=new g.b({G:"div",L:"ytp-menuitem-premium-badge",D:{"aria-label":"Premium"}});this.X=!1;this.f3={XZY:function(){return a.j}}; g.Z(this,m);this.Gf=new zL(S);g.Z(this,this.Gf);if(S.T("web_settings_menu_icons")){var J=S.T("delhi_modern_web_player_icons")?ERD():{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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(J)}this.W=S;this.X=!1;this.N2=null;GL(S)?(this.C=g.Wo("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.W.getPlaybackRate().toString()}),this.V=this.W.getPlaybackRate()):this.V=this.C=null;g.Z(this,this.Z);var B,E,y,Y;this.vn=(B=this.W.getVideoData())==null?void 0:(E=B.getWatchNextResponse())==null?void 0:(y=E.playerOverlays)==null?void 0:(Y=y.playerOverlayRenderer)==null?void 0:Y.showPlaybackRateUpsellPanelCommand;qbK(S,this.vn)?(this.N=K3(4),this.W.createClientVe(this.Z.element, this,273508)):this.N=null;this.W.T("enable_web_premium_varispeed_upsell")&&this.W.createClientVe(this.element,this,278479);this.j=this.W.getAvailablePlaybackRates();this.K(S,"presentingplayerstatechange",this.L_);var G;((G=this.W.getVideoData())==null?0:G.b$())&&this.K(S,S.J().ZH().C.QD(a4)?"playbackChange":"serverstitchedvideochange",this.L_);this.K(S,"videodatachange",this.onVideoDataChange);this.K(this.Gf.N,"change",function(){a.X=!0;a.L_()}); this.L_()}; FhP=function(S,W){var m=K3(W);S.C&&(S.X||W===S.V)?(S.mT(S.C),S.setContent(W.toString())):S.mT(m)}; n7D=function(S){var W=S.j.map(K3);S.N&&W.push(S.N);S.f1(W);S.C=null;S.V=null;W=S.W.getPlaybackRate();GL(S.W)&&VHc(S,W);!S.j.includes(W)||S.X?S.mT(S.C):S.mT(K3(W))}; VHc=function(S,W){S.V=W;S.C=g.Wo("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:W.toString()});W=S.j.map(K3);W.unshift(S.C);S.N&&W.push(S.N);S.f1(W)}; s07=function(S,W,m,a){m=new g.Ws({G:"div",Wn:["ytp-menuitem"],D:{tabindex:"0",role:"menuitemradio","aria-checked":a?"true":"false"},U:[{G:"div",Wn:["ytp-menuitem-label"],U:[{G:"div",Wn:["ytp-menuitem-container-with-badge"],U:[{G:"div",Bn:"{{label}}"},S.Z]}]}]},m,S.tY(W));m.listen("click",function(){S.lB(W)}); return m}; K3=function(S){return S.toString()}; GL=function(S){return S.T("web_settings_menu_surface_custom_playback")}; qbK=function(S,W){return!!W&&S.getAvailablePlaybackRates()[S.getAvailablePlaybackRates().length-1]<=2}; u8j=function(S){return S.T("web_settings_menu_surface_custom_playback")&&S.T("web_settings_use_input_slider")}; OFK=function(S,W,m,a){var J=new g.ua(W,void 0,"Video Override");g.M7.call(this,a.text||"",S,W,m,"Video Override",function(){g.j7(m,J)}); var B=this;g.Bn(this.element,"ytp-subtitles-options-menu-item");this.setting=a.option.toString();S=a.options;this.settings=g.n$(S,this.dL,this);this.j=J;g.Z(this,this.j);W=new g.Ws({G:"div",L:"ytp-menuitemtitle",Bn:"Allow for a different caption style if specified by the video."},0);g.Z(this,W);this.j.xb(W,!0);this.N=new g.Ws({G:"div",L:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",Bn:"On"}]},-1);g.Z(this,this.N);this.j.xb(this.N,!0);this.K(this.N.element, "click",function(){g7c(B,!0)}); this.C=new g.Ws({G:"div",L:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",Bn:"Off"}]},-2);g.Z(this,this.C);this.j.xb(this.C,!0);this.K(this.C.element,"click",function(){g7c(B,!1)}); this.f1(g.MU(S,this.dL))}; g7c=function(S,W){S.publish("settingChange",S.setting+"Override",!W);S.C3.Nx()}; TL=function(S,W){g.ua.call(this,S,void 0,"Options");var m=this;this.q5={};for(var a=0;a0)for(X=g.R(p),M=X.next(),l={};!M.done;l={Ge:void 0, xN:void 0,nj:void 0},M=X.next())l.nj=M.value,l.Ge=O&&l.nj.isPremiumUpsell,l.xN=new g.b({G:"button",Wn:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],U:l.Ge?[{G:"div",L:"ytp-variable-speed-panel-premium-upsell-icon"},{G:"span",Bn:""+l.nj.label}]:[{G:"span",Bn:""+l.nj.label}]}),l.Ge&&(this.W.createClientVe(l.xN.element,this,273508),this.W.logVisibility(l.xN.element,!0)),g.Z(this,l.xN),m.element.appendChild(l.xN.element),l.xN.listen("click",function(e){return function(){e.Ge? (T.W.f_("innertubeCommand",O),S.logClick(e.xN.element)):e.nj.value&&T.W.setPlaybackRate(e.nj.value/100);S.logClick(m.element)}}(l)),p=void 0,M=new g.b({G:"div", L:"ytp-variable-speed-panel-preset-button-wrapper",D:{"data-priority":""+((p=l.nj.priority)!=null?p:0)},U:[l.xN]}),g.Z(this,M),l.nj.value===100&&(l=new g.b({G:"div",L:"ytp-variable-speed-panel-preset-button-label-text",Bn:"Normal"}),g.Z(this,l),M.element.appendChild(l.element)),m.element.appendChild(M.element);this.K(this.Gf.N,"input",function(){T.ZV(T.Gf.C)}); this.K(S,"onPlaybackRateChange",this.onPlaybackRateChange);this.K(S,"resize",B);this.onPlaybackRateChange(S.getPlaybackRate());this.ZE()}; Ve=function(S,W){g.M7.call(this,"Playback speed",g.uG.jw,S,W);this.W=S;S.T("web_settings_menu_icons")&&this.setIcon(ERD());this.N(S.getPlaybackRate());this.K(S,"onPlaybackRateChange",this.N);this.K(S,"presentingplayerstatechange",this.C);var m;((m=this.W.getVideoData())==null?0:m.b$())&&this.K(S,S.J().ZH().C.QD(a4)?"playbackChange":"serverstitchedvideochange",this.C);this.C()}; HF_=function(S){g.Ot.call(this,S,"ytp-settings-menu");var W=this;this.Ca=new g.ua(this.W);this.sY=this.J8=this.settingsButton=null;this.isInitialized=this.ob=!1;g.Z(this,this.Ca);this.hide();g.j7(this,this.Ca);S.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(J){W.P1(J)}); this.K(S,"highlightSettingsMenu",function(){W.ob=!0;W.Uc()}); this.K(S,"openSettingsMenuItem",function(J){if(J&&(W.ob=!0,W.Uc(),J==="menu_item_video_quality_advanced")){var B;(B=W.J8)==null||B.open()}}); S.T("html5_enable_voice_boost")&&(this.K(S,"onPlaybackAudioChange",this.Br),this.K(S,"videodatachange",this.Br));var m,a;((m=this.W.J())==null?0:(a=m.getWebPlayerContextConfig())==null?0:a.enableFullscreenComponentsFeature)&&this.K(this.element,"wheel",function(J){J.stopPropagation()})}; lHl=function(S,W){S.settingsButton=W;S.element.id=W.element.getAttribute("aria-controls")}; UJP=function(S,W){g.b.call(this,{G:"button",Wn:["ytp-subtitles-button","ytp-button"],D:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:S.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},U:[S.T("delhi_modern_web_player_icons")?{G:"div",L:"ytp-subtitles-button-icon",Bn:"{{icon}}"}:MPP(S)]});this.W=S;this.tooltip=W.Dz();S.T("delhi_modern_web_player_icons")&&this.updateValue("icon", MH_(this));this.K(S,"videodatachange",this.L_);this.K(S,"appresize",this.L_);this.K(S,"promotooltipacceptbuttonclicked",this.PJq);this.K(S,"onApiChange",this.L_);this.K(S,"onCaptionsTrackListChanged",this.L_);this.K(S,"captionschanged",this.L_);this.W.createClientVe(this.element,this,127299);this.L_();this.listen("click",this.onClick);this.addOnDisposeCallback(g.MV(W.Dz(),this.element))}; n3=function(S){return g.jb(S.W.GV())!=null?g.jb(S.W.GV()).JC()?!!S.W.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; MH_=function(S){if(S.W.T("delhi_modern_web_player_icons"))return S=V4.includes("en-GB")?n3(S)&&S.isEnabled()?{G:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:n8():n3(S)&&S.isEnabled()?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:VYc()}; g.s9=function(S,W,m){m=m===void 0?350:m;g.b.call(this,{G:"div",Wn:["ytp-time-display","notranslate"],U:[{G:"div",L:"ytp-time-wrapper",U:[{G:"div",L:"ytp-time-contents",D:S.T("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},U:[{G:"span",L:"ytp-time-clip-icon",Bn:"{{clipicon}}",D:{"aria-label":"Clip"}},{G:"span",L:"ytp-time-current",Bn:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",Bn:" / "},{G:"span",L:"ytp-time-duration", Bn:"{{duration}}"}]}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",Bn:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",Bn:"{{watchfullvideo}}"}]});var a=this;this.api=S;this.N2=m;this.liveBadge=new g.b({G:"button",Wn:["ytp-live-badge","ytp-button"],D:{disabled:"true"},Bn:"{{content}}"});this.C=null;this.B9=this.N=!1;this.S=this.Z=this.V=null;this.isPremiere=!1;this.X=this.j=null;this.B=!1;this.Xz=this.liveIndicatorText=null;this.vn=this.I2("ytp-clip-watch-full-video-button"); this.liveBadge.setContent("Live");g.Z(this,this.liveBadge);this.api.T("web_player_updated_entrypoint")||this.api.T("delhi_modern_web_player")?this.liveBadge.GN(this.I2("ytp-time-wrapper")):this.liveBadge.GN(this.element);this.tooltip=W.Dz();this.liveBadge.listen("click",this.onClick.bind(this));this.api.T("delhi_modern_web_player")&&(W=this.I2("ytp-time-wrapper"),this.K(W,"click",this.YcQ),W.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.K(this.vn,"click",this.nt6);this.K(this.api, this.api.J().ZH().C.QD(a4)?"playbackChange":"serverstitchedvideochange",function(){Lh6(a,a.api.getProgressState().isAtLiveHead)}); this.K(S,"presentingplayerstatechange",this.Zb);this.K(S,"appresize",this.Zb);this.K(S,"onLoopRangeChange",this.onLoopRangeChange);this.K(S,"videodatachange",this.onVideoDataChange);(W=S.getVideoData())&&this.updateVideoData(W);this.Zb();RMj(this,S.getLoopRange())}; Lh6=function(S,W){var m=S.liveBadge.element,a=S.api.isLifaAdPlaying();m.disabled=a||W;!uS(S)||S.S===W&&S.Z===S.liveIndicatorText&&S.V===S.isPremiere||(S.S=W,S.Z=S.liveIndicatorText,S.V=S.isPremiere,S.Zb(),W?m.classList.add("ytp-live-badge-is-livehead"):m.classList.remove("ytp-live-badge-is-livehead"),S.liveIndicatorText?S.liveBadge.setContent(S.liveIndicatorText):S.liveBadge.setContent(S.isPremiere?"Premiere":"Live"),W?S.C&&(S.C(),S.C=null,m.removeAttribute("data-tooltip-title")):(m.setAttribute("data-tooltip-title", "Skip ahead to live broadcast."),S.C=g.MV(S.tooltip,S.liveBadge.element)))}; RMj=function(S,W){var m=S.Xz!==W;S.Xz=W;m&&eM7(S)}; eM7=function(S){S.updateValue("clipicon",{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",D:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); S.B9&&!S.N?S.updateValue("watchfullvideo","Watch live stream"):S.updateValue("watchfullvideo","Watch full video");g.GD(S.element,"ytp-clip",g$(S));g.GD(S.element,"ytp-live",uS(S))}; uS=function(S){var W=S.api.J().T("enable_linear_program_progress"),m=S.api.getPresentingPlayerType()===2;return S.B9&&!g$(S)&&(!W||!S.N)&&!m}; g$=function(S){return!!S.Xz&&!!S.Xz.postId&&S.api.getPresentingPlayerType()!==2&&(!S.Xz.type||S.Xz.type==="clips")}; dJO=function(S,W){g.b.call(this,{G:"div",L:"ytp-volume-panel",D:{title:S.T("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-volume-slider",U:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var m=this;this.api=S;this.V=W;this.Pm=!1;this.N2=this.volume=0;this.X=null;this.N=this.C=this.isDragging=!1;this.V=W;this.B=S.wp(); this.S=S.T("web_player_use_screen_width_for_big_mode");this.Z=this.I2("ytp-volume-slider");this.vn=this.I2("ytp-volume-slider-handle");this.j=new g.R4(this.Z,!0);g.Z(this,this.j);this.j.subscribe("dragstart",this.bC2,this);this.j.subscribe("dragmove",this.eM,this);this.j.subscribe("dragend",this.CJX,this);this.K(S,"onVolumeChange",this.onVolumeChange);this.K(S,"appresize",this.Ea_);this.K(S,"fullscreentoggled",this.An);this.K(S,"onShowControls",this.oP);this.K(S,"onHideControls",this.oP);this.K(this.element, "keydown",this.u8);this.K(this.element,"focus",function(){O9(m,m.C,m.isDragging,!0,m.api.Pm())}); this.K(this.element,"blur",function(){O9(m,m.C,m.isDragging,!1,m.api.Pm())}); xJj(this,S.k6().getPlayerSize());iFO(this,S.getVolume(),S.isMuted());Uk(S,this.element,this)}; IHG=function(S){var W=S.api.wp();S.B!==W&&(S.B=W,iFO(S,S.api.getVolume(),S.api.isMuted()))}; xJj=function(S,W){S.Fz(W.width>=350)}; iFO=function(S,W,m){var a=Math.floor(W),J=a+"% volume"+(m?" muted":"");m=m?0:W/100;S.updateValue("valuenow",a);S.updateValue("valuetext",J);a=S.B?78:52;J=!S.api.T("delhi_modern_web_player")&&S.B?18:12;S.vn.style.left=(a-J)*m+"px";S.volume=W}; P8P=function(S,W){g.GD(S.element,"ytp-volume-control-hover",W);O9(S,W,S.isDragging,S.N,S.api.Pm())}; O9=function(S,W,m,a,J){var B=S.C||S.isDragging||S.N||S.Pm;S.C=W;S.isDragging=m;S.N=a;S.Pm=J;W=S.C||S.isDragging||S.N||S.Pm;B!==W&&(W?S.X=S.K(S.element,"wheel",S.Qs):(S.TC(S.X),S.X=null),g.GD(S.V,"ytp-volume-slider-active",W))}; jz=function(S,W){var m=S.J(),a=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];m.B&&a.push("no-link");var J={title:S.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:m.bY,"data-priority":"6","data-sessionlink":"feature=player-button"};m.B||(J.href="{{url}}");g.b.call(this,{G:"a",Wn:a,D:J,Bn:"{{logoSvg}}"});this.C=null;this.api=S;this.visible=!1;m.B||(this.C=this.listen("click",this.onClick));this.K(S,"videodatachange",this.onVideoDataChange); this.K(S,"videoplayerreset",this.onVideoDataChange);this.K(S,"onLoopRangeChange",this.onVideoDataChange);this.K(S,"appresize",this.Qc);this.onVideoDataChange();m.B||this.addOnDisposeCallback(g.MV(W.Dz(),this.element));this.Qc()}; kYP=function(S,W,m){g.Tx.call(this);var a=this;this.W=S;this.q2=W;this.DD=m;this.d2=NaN;this.vn=this.g2=this.playButton=this.j=this.X=this.O9=this.s9=this.N2=this.bY=this.muteButton=this.Z=this.zN=this.H9=this.Y6=null;this.C=new HF_(this.W);this.progressBar=new g.ht(this.W,this.q2);this.Xg=new g.s9(this.W,this.q2);this.hX=new kLK(this.W,this.q2);this.S=new g.oG(this.MX,null,this);m=S.J();this.DD.subscribe("autohideupdate",this.Dx,this);var J=!S.getPlayerStateObject().isCued(),B;(this.M2=!S.T("delhi_modern_web_player")&& S.J().T("html5_player_dynamic_bottom_gradient"))?this.zN=B=new dml(S):B=new g.b({G:"div",L:"ytp-gradient-bottom"});g.Z(this,B);g.tc(S,B.element,9);this.Pn=new g.mo(B,250,J,100);g.Z(this,this.Pn);this.N=new g.b({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.Z(this,this.N);g.tc(S,this.N.element,9);this.Xn=new g.mo(this.N,250,J,100);g.Z(this,this.Xn);this.Hn=this.N.element.children[0];g.Z(this,this.C);g.tc(S,this.C.element,6);this.C.subscribe("show",function(G){a.W.TQ(!G);S.Wo(a.C, G)}); g.Z(this,this.progressBar);this.progressBar.GN(this.N.element,0);J=new Hc(S,W);g.Z(this,J);g.tc(S,J.element,4);J=new g.Bm({G:"div",L:"ytp-left-controls"});g.Z(this,J);J.GN(this.Hn);S.T("delhi_modern_web_player")||(B=new g.IT(S,W,!1),g.Z(this,B),B.GN(J.element));S.T("web_render_jump_buttons")&&(this.bY=new li(S,-10),g.Z(this,this.bY),this.bY.GN(J.element));m.O9||(this.playButton=new g.d4(S,W),g.Z(this,this.playButton),this.playButton.GN(J.element));S.T("web_render_jump_buttons")&&(this.N2=new li(S, 10),g.Z(this,this.N2),this.N2.GN(J.element));S.T("delhi_modern_web_player_remove_nav_buttons")||(S.T("delhi_modern_web_player")&&(B=new g.IT(S,W,!1),g.Z(this,B),B.GN(J.element)),B=new g.IT(S,W,!0),g.Z(this,B),B.GN(J.element));if(!S.T("delhi_modern_web_player")||S.T("delhi_modern_web_player_horizontal_volume_controls"))if(B=new g.b({G:"span",L:"ytp-volume-area"}),g.Z(this,B),B.GN(J.element),!m.Cn&&(this.muteButton=new ii(S,W),g.Z(this,this.muteButton),this.muteButton.GN(B.element),m.s9&&!m.Z)){var E= new dJO(S,this.N.element);this.g2=E;g.Z(this,E);E.GN(B.element);B=new g.R4(B.element);g.Z(this,B);B.subscribe("hoverstart",function(){var G;(G=a.g2)==null||P8P(G,!0)}); B=new g.R4(J.element);g.Z(this,B);B.subscribe("hoverend",function(){var G;(G=a.g2)==null||P8P(G,!1)})}S.T("delhi_modern_web_player_lhs_volume_controls")&&!S.T("delhi_modern_web_player_horizontal_volume_controls")&&(J.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new ii(S,W),g.Z(this,this.muteButton),this.muteButton.GN(J.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.Z(this,this.Xg);this.Xg.GN(J.element);this.s9=new Xb(S,this.progressBar);g.Z(this,this.s9);this.s9.GN(J.element);m.T("web_key_moments_markers")&&(this.O9=new MN(S,this.progressBar),g.Z(this,this.O9),this.O9.GN(J.element));S.T("delhi_modern_web_player")?this.B=new g.Bm({G:"div",L:"ytp-right-controls",U:[{G:"div",L:Qe.RIGHT_CONTROLS_LEFT},{G:"div",L:Qe.RIGHT_CONTROLS_RIGHT}]}):this.B=new g.Bm({G:"div",L:"ytp-right-controls"});g.Z(this,this.B);this.B.GN(this.Hn);S.T("delhi_modern_web_player")&&(this.Z= new vc(S),g.Z(this,this.Z),this.Z.GN(this.B.I2(Qe.RIGHT_CONTROLS_LEFT)),S.T("delhi_modern_web_player_lhs_volume_controls")||S.T("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new ii(S,W),g.Z(this,this.muteButton),this.muteButton.GN(this.B.I2(Qe.RIGHT_CONTROLS_LEFT))));this.uY=new UJP(S,W);g.Z(this,this.uY);X0(this,this.uY,"RIGHT_CONTROLS_LEFT");this.settingsButton=new JE(S,this.C);g.Z(this,this.settingsButton);lHl(this.C,this.settingsButton);X0(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); J=S.getVideoData();if(m.SY||J.uP&&m.controlsType==="1")this.X=new jz(S,W),g.Z(this,this.X),this.X.GN(this.B.element);m.showMiniplayerButton&&!S.T("web_player_miniplayer_in_context_menu")&&(this.j=new Uh(S),g.Z(this,this.j),X0(this,this.j,"RIGHT_CONTROLS_RIGHT"));m.showMiniplayerButton&&this.K(S,"minimized",function(){a.C.hide()}); m.uO&&(W=new aH(S,this.C),g.Z(this,W),X0(this,W,"RIGHT_CONTROLS_RIGHT"));m.vY&&(W=new jr(S),g.Z(this,W),X0(this,W,"RIGHT_CONTROLS_RIGHT"));g.Z(this,this.hX);X0(this,this.hX,"RIGHT_CONTROLS_RIGHT");g.Z(this,this.S);this.K(S,"appresize",this.Qc);this.K(S,"fullscreentoggled",this.Qc);var y;(y=this.Z)==null||y.subscribe("small-mode-expand-right-bottom-controls",function(){fHj(a)}); var Y;(Y=this.Z)==null||Y.subscribe("small-mode-collapse-right-bottom-controls",function(){fHj(a)}); this.K(S,"presentingplayerstatechange",this.Vi);this.K(S,"videodatachange",this.onVideoDataChange);this.Qc()}; fHj=function(S){S.N.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",S.Z.isExpanded())}; $JG=function(S,W){S.W.getPlayerStateObject().isCued()||W?W&&(S.Xn.hide(),S.Pn.hide(),S.muteButton&&S.muteButton.Nd(!1),S.X&&S.X.Nd(!1),S.j&&S.j.Nd(!1),S.W.D7(S.yc())):W||(S.Xn.show(),S.Pn.show(),S.muteButton&&S.muteButton.Nd(!0),S.X&&S.X.Nd(!0),S.j&&S.j.Nd(!0),S.Dx())}; tHl=function(S){var W=S.W.k6().getPlayerSize().width;return Math.max(W-hMP(S)*2,100)}; hMP=function(S){if(S.W.T("web_player_rtr_ctrls")&&S.W.k6().rS)return 0;var W=S.W.wp(),m=S.W.getVideoData().uP,a=0;S.W.wp()&&S.W.isEmbedsShortsMode()&&(a=(S.W.k6().getPlayerSize().width-S.W.getVideoContentRect().width)/2);return 12*(m?0:W?2:1)+a}; AhP=function(S){var W=S.W.wp()?72:50,m=S.W.J();g.EV(m)&&(m.T("delhi_modern_web_player")?(W=g.Db(m.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),W=S.W.T("delhi_modern_web_player_compact_controls")||W>0&&S.W.getPlayerSize().width<=W,W=S.W.wp()?m.T("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:W?70:78,S.W.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(S=getComputedStyle(S.W.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",W+=Number(S.replace("px","")))):W=62,g.ZI(m)&&(W=54));return W}; X0=function(S,W,m){S.W.T("delhi_modern_web_player")?W.GN(S.B.I2(Qe[m])):W.GN(S.B.element)}; NL6=function(S){Vb.call(this,S,!1);var W=this;this.suggestedActions={};this.C=null;this.element.setAttribute("data-overlay-order","7");this.K(this.W,"videodatachange",this.onVideoDataChange);this.K(this.W,g.AD("suggested_action_button_visible"),function(m){ZF6(W,m.id);W.enabled=!0;W.P1()}); this.K(this.W,g.Z5("suggested_action_button_visible"),function(m){W.enabled=!1;W.P1();W.W.removeCueRange(m.id)}); this.K(S,"presentingplayerstatechange",this.onStateChange)}; ZF6=function(S,W){S.text=W;aXK(S);var m;S.onClickCommand=(m=S.suggestedActions[W])==null?void 0:m.tapCommand}; bFP=function(S){S.suggestedActions={};S.W.Tk("suggested_action_button_visible");S.C=null;S.W.setTrackingParams(S.badge.element,null);S.N=!1}; HV=function(S){g.b.call(this,{G:"div",L:vV.TITLE,U:[{G:"div",Wn:[vV.TEXT,S.T("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],U:[{G:"a",Wn:[vV.LINK,vV.SESSIONLINK],D:{target:S.J().bY,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Bn:"{{title}}"},{G:"div",L:vV.SUBTEXT,U:["{{subtextElement}}"]}]}]});this.api=S;this.C=null;this.link=this.I2(vV.LINK);S.createClientVe(this.element,this,23851);this.K(S,"videodatachange",this.L_); this.K(S,"videoplayerreset",this.L_);this.L_()}; o7l=function(S){S.updateValue("channelLink","");S.updateValue("channelName","");g.ZI(S.api.J())||S.api.T("enable_channel_title_always_focusable")?S.updateValue("channelTitleFocusable","0"):S.updateValue("channelTitleFocusable","-1")}; g.lS=function(S,W){g.b.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",D:{"aria-hidden":"{{ariaHidden}}"},U:[{G:"div",L:"ytp-tooltip-edu",U:[{G:"svg",D:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",D:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{G:"span",Bn:"{{eduText}}"}]},{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"span",Bn:"{{title}}"},{G:"div",L:"ytp-tooltip-keyboard-shortcut", Bn:"{{keyBoardShortcutTitle}}"}]},{G:"div",L:"ytp-tooltip-bottom-text",U:[{G:"span",L:"ytp-tooltip-text",Bn:"{{text}}"},{G:"div",L:"ytp-tooltip-keyboard-shortcut",Bn:"{{keyBoardShortcut}}"}]},{G:"div",L:"ytp-tooltip-progress-bar-pill",U:[{G:"div",L:"ytp-tooltip-progress-bar-pill-time-stamp",Bn:"{{pillTimeStamp}}"},{G:"div",L:"ytp-tooltip-progress-bar-pill-title",Bn:"{{pillTitle}}"}]}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",Bn:"{{duration}}"}]}]});var m=this;this.api=S;this.s9= W;this.S=function(a){(a=a.relatedTarget)&&g.xg(m.C,a)||m.Np()}; this.X=function(a){m.type===3&&m.Np();(a=a.currentTarget)&&a.nodeType===1&&!m.type&&(a.removeEventListener("mouseover",m.X),a.addEventListener("mouseout",m.S),a.removeEventListener("focus",m.X),a.addEventListener("blur",m.S),rhQ(m,a,2))}; this.N2=function(){m.Np()}; this.type=this.C=null;this.Z=!1;this.N=null;this.B="";this.V=!0;this.scale=1;this.env=this.api.J();this.Xn=this.env.N;this.wrapper=this.I2("ytp-tooltip-text-wrapper");this.bg=this.I2("ytp-tooltip-bg");this.Pn=this.I2("ytp-tooltip-edu");this.image=this.I2("ytp-tooltip-image");this.text=this.I2("ytp-tooltip-text");this.bottomText=this.I2("ytp-tooltip-bottom-text");this.title=this.I2("ytp-tooltip-title");this.fade=new g.mo(this,100);this.j=NaN;this.mD=this.api.k6().getPlayerSize().width;this.vn=new g.rj(this.KtY, 250,this);this.q2=new g.rj(this.Np,5E3,this);g.Z(this,this.fade);g.Z(this,this.vn);g.Z(this,this.q2);iI&&(S=this.I2("ytp-tooltip-text"),S.setAttribute("role","text"),S.setAttribute("aria-live","polite"))}; C8j=function(S,W){S.env.T("delhi_modern_web_player")&&S.scale!==.6&&(S.scale=W?.8:1)}; g.MV=function(S,W){if(S.Xn)return function(){}; W.addEventListener("mouseover",S.X);W.addEventListener("focus",S.X);var m=S.env.T("player_tooltip_data_title_killswitch")?W.getAttribute("title"):W.getAttribute("data-tooltip-title");m&&!W.hasAttribute("aria-label")&&W.setAttribute("aria-label",m);return function(){S.C===W&&S.Np();W.removeEventListener("mouseover",S.X);W.removeEventListener("focus",S.X)}}; rhQ=function(S,W,m,a){if(W&&!W.hasAttribute)S=new g.uc("showElementTooltip called with non-element.",W.toString()),g.lR(S);else{isNaN(S.j)||(S.j=NaN,S.bg.style.background="");g.zD(S.element,"ytp-tooltip-progress-bar-style");S.C=W;S.Z=!!a;a?S.B=a:(S.env.T("player_tooltip_data_title_killswitch")?S.B=W.getAttribute("title"):S.B=W.getAttribute("data-tooltip-title"),S.env.T("player_tooltip_data_title_killswitch")?W.removeAttribute("title"):W.removeAttribute("data-tooltip-title"));g.aa(S.element,"ytp-tooltip"); var J=W.getAttribute("data-tooltip-image");J&&(S.image.style.backgroundImage="url("+J+")");a?S.update({ariaHidden:"false"}):S.update({ariaHidden:"true"});g.GD(S.element,"ytp-tooltip-image-enabled",!!J);W=W.getAttribute("data-tooltip-opaque");g.GD(S.element,"ytp-tooltip-opaque",!!W);S.type=m;S.api.addEventListener("appresize",S.N2);S.V&&(Mm(S),S.fade.show(0))}}; Mm=function(S){if(S.C){var W=S.C.getAttribute("data-tooltip-text");if(S.B&&S.C.getAttribute("aria-label")!==S.B)var m=S.B;var a=S.C.getAttribute("aria-keyshortcuts"),J=S.C.getAttribute("data-title-no-tooltip");a&&J&&(m=g.Wo("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:J,SHORTCUT_KEY:a}));m&&S.C.setAttribute("aria-label",m);if(W&&!S.Z){C8j(S,!0);var B=S.C;S.updateValue("text",W);m=B.getAttribute("data-duration");S.update({title:S.B,duration:m});B=B.getAttribute("data-preview");S.env.T("delhi_modern_web_player")? (S.updateValue("title",J),S.updateValue("keyBoardShortcutTitle",a.toUpperCase())):C8j(S,!1);a=243*S.scale;J=141*S.scale;S.bg.style.width=a+"px";S.bg.style.height=J+"px";S.bg.style.backgroundImage=B?"url("+B+")":"";S.bg.style.backgroundSize=a+"px "+J+"px";S.wrapper.style.width=a+"px";g.Eo(S.element,["ytp-text-detail","ytp-preview"]);g.GD(S.element,"ytp-has-duration",!!m)}else J&&a&&S.env.T("delhi_modern_web_player")?(S.updateValue("text",J),S.updateValue("keyBoardShortcut",a.toUpperCase())):S.updateValue("text", S.B),g.YC(S.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);m=S.C;m.hasAttribute("data-tooltip-offset-y")?(m=Number(m.getAttribute("data-tooltip-offset-y")),m=isNaN(m)?0:m):m=0;chG(S,!!W,void 0,m)}}; chG=function(S,W,m,a){var J=Math.min(S.mD,300*S.scale);S.element.style.maxWidth=W?"":J+"px";S.s9.g3(S.element,S.C,m,S.type===1,a);S.element.style.top?g.Bn(S.element,"ytp-bottom"):S.element.style.bottom&&g.Bn(S.element,"ytp-top");S.type===3&&S.q2.start()}; DJP=function(S,W){g.GD(S.element,"ytp-preview",W>=0);if(!(W<0||W===S.j)){S.j=W;W=243*S.scale;var m=141*S.scale,a=LLX(S.N,S.j,W);InK(S.bg,a,W,m,!0);S.vn.start()}}; wuc=function(S){var W=S.C;S.type===3&&S.q2.stop();S.api.removeEventListener("appresize",S.N2);S.Z||(S.env.T("player_tooltip_data_title_killswitch")?W.setAttribute("title",S.B):W.setAttribute("data-tooltip-title",S.B));S.B="";S.C=null;S.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});S.wrapper.style.width=""}; WEP=function(S){g.b.call(this,{G:"button",Wn:["ytp-watch-later-button","ytp-button"],D:{title:S.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.f9(S.J()))},U:[{G:"div",L:"ytp-watch-later-icon",Bn:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",Bn:"Watch Later"}]});this.W=S;this.icon=null;this.visible=this.isRequestPending=this.C=!1;FVO(S);S.createClientVe(this.element,this,28665);this.listen("click", this.onClick,this);this.K(S,"videoplayerreset",this.onReset);this.K(S,"appresize",this.Pj);this.K(S,"videodatachange",this.Pj);this.K(S,"presentingplayerstatechange",this.Pj);this.Pj();S=this.W.J();var W=g.dU("yt-player-watch-later-pending");S.j&&W?(VEX(),S0P(this)):this.L_(2);g.GD(this.element,"ytp-show-watch-later-title",g.f9(S));Uk(this.W,this.element,this)}; mw7=function(S){var W=S.W.getPlayerSize(),m=S.W.J(),a=S.W.getVideoData(),J=g.f9(m)&&g.fB(S.W)&&g.C(S.W.getPlayerStateObject(),128),B=m.B;return m.yT&&W.width>=240&&!a.isAd()&&a.yT&&!J&&!a.uP&&!S.W.isEmbedsShortsMode()&&!B}; a_P=function(S,W){NXl(g.WY(S.W.J()),"wl_button",function(){VEX({videoId:W});window.location.reload()})}; S0P=function(S){if(!S.isRequestPending){S.isRequestPending=!0;S.L_(3);var W=S.W.getVideoData();W=S.C?W.removeFromWatchLaterCommand:W.addToWatchLaterCommand;var m=S.W.MP(),a=S.C?function(){S.C=!1;S.isRequestPending=!1;S.L_(2);S.W.J().S&&S.W.f_("WATCH_LATER_VIDEO_REMOVED")}:function(){S.C=!0; S.isRequestPending=!1;S.L_(1);S.W.J().N&&S.W.gy(S.element);S.W.J().S&&S.W.f_("WATCH_LATER_VIDEO_ADDED")}; IP(m,W).then(a,function(){S.isRequestPending=!1;S.L_(4,"An error has occurred. Please try again later.");S.W.J().S&&S.W.f_("WATCH_LATER_ERROR","An error has occurred. Please try again later.")})}}; J1_=function(S,W){if(W!==S.icon){switch(W){case 3:var m=ni();break;case 1:m=qu();break;case 2:m={G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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:m={G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path", a6:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}S.updateValue("icon",m);S.icon=W}}; Bo6=function(){g.Z7.apply(this,arguments);this.LO=(this.Wc=g.f9(this.api.J()))&&(this.api.J().N||ax()||WX());this.l1=48;this.fq=69;this.Kc=this.E$=null;this.wD=[];this.EF=this.H4=this.gT=this.vL=this.Zz=null;this.uM=[];this.contextMenu=this.KC=this.overflowButton=this.wE=this.FM=this.searchButton=this.copyLinkButton=this.shareButton=this.uU=this.s2=this.title=this.channelAvatar=this.Ee=this.tooltip=null;this.tT=!1;this.Em=this.mq=this.NN=this.v6=null;this.gtD=this.M3=this.vK=!1}; ENc=function(S){var W=S.api.J(),m=g.C(S.api.getPlayerStateObject(),128);return W.j&&m&&!S.api.isFullscreen()}; zgX=function(S){if(S.fC()&&!S.api.isEmbedsShortsMode()&&S.wE){var W=S.api.T("web_player_hide_overflow_button_if_empty_menu");!S.uU||W&&!mw7(S.uU)||wcK(S.wE,S.uU);!S.shareButton||W&&!VzD(S.shareButton)||wcK(S.wE,S.shareButton);!S.copyLinkButton||W&&!G9P(S.copyLinkButton)||wcK(S.wE,S.copyLinkButton)}else{W=S.api.J().getWebPlayerContextConfig();if(S.wE){for(var m=S.wE,a=g.R(m.actionButtons),J=a.next();!J.done;J=a.next())J.value.detach();m.actionButtons=[]}S.searchButton&&!g.xg(S.s2.element,S.searchButton.element)&& S.searchButton.GN(S.s2.element);!S.uU||(W==null?0:W.hideTopWatchNextButton)||g.xg(S.s2.element,S.uU.element)||S.uU.GN(S.s2.element);!S.shareButton||(W==null?0:W.hideTopShareButton)||g.xg(S.s2.element,S.shareButton.element)||S.shareButton.GN(S.s2.element);S.copyLinkButton&&!g.xg(S.s2.element,S.copyLinkButton.element)&&S.copyLinkButton.GN(S.s2.element)}}; y1l=function(S,W,m){W=m?W.lastElementChild:W.firstElementChild;for(var a=null;W;){if(Br(W,"display")!=="none"&&W.getAttribute("aria-hidden")!=="true"){var J=void 0;W.tabIndex>=0?J=W:J=y1l(S,W,m);J&&(a?m?J.tabIndex>a.tabIndex&&(a=J):J.tabIndexW||m>10||(S.play(),g.s7(function(){G26(S,S.getCurrentTime(),m+1)},500))}; KEl=function(S,W){S.X&&S.X.equals(W)||(S.X&&S.X.dispose(),S.X=W)}; ToG=function(S){S.kK()&&(S.C_&&S.C_.GS("rs_s"),Zf&&S.getCurrentTime()>0&&S.seekTo(0),S.Bx(),S.load(),KEl(S,null));delete S.V}; q0j=function(S,W){return S.view?mp(W,S.view.start,S.view.end):W}; FE_=function(S){S=S===void 0?!1:S;pxP||(window.addEventListener(iI?"touchstart":"click",function(){var W=S;W=W===void 0?!1:W;for(var m=RH.length;m<4;m++){var a=g.HI("VIDEO");a.load();RH.push(W?new g.L3(a):new g.kP(a))}},{capture:!0, passive:!0}),pxP=!0)}; VtP=function(S,W,m,a,J){J=J===void 0?!1:J;var B=m.getVideoData(),E=W.getVideoData();if(m.getPlayerState().isError())return{msg:"player-error"};var y=E.B;if(W.cD()>a/1E3+1)return{msg:"in-the-past"};if(E.isLivePlayback&&!isFinite(a))return{msg:"live-infinite"};a=W.fn();var Y=null;a&&(Y=J?a.C.played||o3([],[]):a.isView()?a.mediaElement.rq():a.rq());if(Y&&Y.length>12&&g.R1(B))return{msg:"played-ranges"};if(!B.B)return null;if(!y)return{msg:"no-pvd-formats"};if(!B.B.C||!y.C)return{msg:"non-dash"};J=y.videoInfos[0]; a=B.B.videoInfos[0];S.N2&&Fh(E)&&(J=W.ZW(),a=m.ZW());if(!J||!a)return{msg:"no-video-info"};if(S.V&&(d1(J)||d1(a)))return{msg:"av1"};W=S.j&&E.rE()&&E_();if(a.containerType!==J.containerType)if(W)E.iY("sgap",{ierr:"container"});else return{msg:"container"};if(S.X&&!W&&(a.p_!==J.p_||a.p_===""||J.p_===""))return{msg:"codec"};if(S.Z&&a.video&&J.video&&Math.abs(a.video.width/a.video.height-J.video.width/J.video.height)>.01)return{msg:"ratio"};if(g.R1(E)&&g.R1(B))return{msg:"content-protection"};y=y.C[0]; B=B.B.C[0];m=y.audio;Y=B.audio;if(m.sampleRate!==Y.sampleRate&&!g.y0)if(W)E.iY("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:y.itag,cr:m.sampleRate,ni:B.itag,nr:Y.sampleRate};return(m.numChannels||2)!==(Y.numChannels||2)?{msg:"channel-count"}:S.S&&E.rE()&&J.video.fps!==a.video.fps?{msg:"fps"}:null}; nNX=function(S,W,m,a){a=a===void 0?!1:a;var J=S.getVideoData(),B=W.getVideoData();if(!J.J().supportsGaplessShorts())return{nq:"env"};if((!m.bY||J.kt&&!J.isAd()||B.kt&&!B.isAd())&&(!m.N||J.kt&&!J.isAd()||B.kt)&&(!m.B||B.kt&&!B.isAd()||J.kt)&&(J.kt||B.kt))return{nq:"autoplay"};if(J.endSeconds>0)return{nq:"endcr"};if(!J.Z)return{nq:"client"};if(!S.v4())return{nq:"no-empty"};S=VtP(m,S,W,Infinity,a);return S!=null?{nq:S.msg}:null}; ez=function(S){g.A.call(this);this.app=S;this.X=this.j=this.N=this.C=null;this.B=1;this.events=new g.Tx(this);this.events.K(this.app.E9,g.Z5("gaplessshortslooprange"),this.S);g.Z(this,this.events)}; sb7=function(){this.C=this.Z=this.B=this.N=this.bY=this.V=this.N2=this.S=this.X=this.j=!1}; uS6=function(S){var W=new sb7;W.j=S.T("h5_gapless_support_types_diff");W.S=!1;W.N2=S.T("html5_gapless_use_format_info_fix");W.V=S.T("html5_gapless_disable_on_av1")&&!S.T("html5_gapless_enable_on_av1");W.X=S.T("html5_gapless_check_codec_diff_strictly");W.bY=S.T("html5_gapless_on_ad_autoplay");W.Z=S.T("html5_gapless_disable_diff_aspect_radio");W.N=S.T("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!S.T("html5_disable_loop_range_for_shorts_ads");W.C=S.T("html5_pseudogapless_shorts_seek_to_next_start"); W.B=S.T("html5_gapless_ad_autoplay_on_video_to_ad_only");return W}; g.xj=function(S,W,m,a){a=a===void 0?!1:a;nP.call(this);this.mediaElement=S;this.start=W;this.end=m;this.wx=a}; gN7=function(S,W,m,a,J,B){B=B===void 0?0:B;g.A.call(this);var E=this;this.policy=S;this.C=W;this.N=m;this.Ec=J;this.X=B;this.j=this.B=null;this.currentVideoDuration=this.V=-1;this.Z=!1;this.WO=new Vn;this.U_=a-W.DH()*1E3;this.WO.then(void 0,function(){}); this.timeout=new g.rj(function(){E.QY("timeout")},1E4); g.Z(this,this.timeout);this.S=isFinite(a)||this.Ec.J().experiments.mU("html5_pseudogapless_shorts")&&Fh(W.getVideoData());this.status={status:0,error:null}}; jbX=function(S){var W,m,a,J,B,E,y,Y,G;return g.k(function(K){if(K.C==1){if(S.TN())return K.return(Promise.reject(Error(S.status.error||"disposed")));S.timeout.start();return g.P(K,S.WO,2)}W=S.C.fn();if(W.isEnded())return S.QY("ended_in_finishTransition"),K.return(Promise.reject(Error(S.status.error||"")));if(!S.j||!G8(S.j))return S.QY("next_mse_closed"),K.return(Promise.reject(Error(S.status.error||"")));if(S.N.ym()!==S.j)return S.QY("next_mse_mismatch"),K.return(Promise.reject(Error(S.status.error|| "")));m=iS(S);a=m.WB;J=m.sP;B=m.uw;S.C.AE(!1,!0);E=OlQ(S,W,a,B,!S.N.getVideoData().isAd());S.N.setMediaElement(E);(y=S.C.HL())&&S.N.dD(y.MV,y.ol);S.S&&(S.policy.C||S.N.seekTo(S.N.getCurrentTime()+.001,{gf:!0,BX:3,Jw:"gapless_pseudo"}),E.play());Y=W.Yb();Y.cpn=S.C.getVideoData().clientPlaybackNonce;Y.st=""+a;Y.et=""+B;S.N.iY("gapless",Y);S.C.iY("gaplessTo",{cpn:S.N.getVideoData().clientPlaybackNonce});G=S.C.getPlayerType()===S.N.getPlayerType();S.C.DR(J,!0,!1,G,S.N.getVideoData().clientPlaybackNonce); S.N.DR(S.N.getCurrentTime(),!0,!0,G,S.C.getVideoData().clientPlaybackNonce);S.N.d1();g.lm(function(){!S.N.getVideoData().S&&S.N.getPlayerState().isOrWillBePlaying()&&S.N.Qt()}); d$(S,6);S.dispose();return K.return(Promise.resolve())})}; HlK=function(S){if(S.N.getVideoData().B){var W=S.Ec.J().T("html5_gapless_suspend_next_loader")&&S.X===1;S.N.Hx(S.j,W,QbP(S));d$(S,3);Xx6(S);var m=vN6(S);W=m.ZX;m=m.ac;W.subscribe("updateend",S.s4,S);m.subscribe("updateend",S.s4,S);S.s4(W);S.s4(m)}}; Xx6=function(S){S.C.unsubscribe("internalvideodatachange",S.YM,S);S.N.unsubscribe("internalvideodatachange",S.YM,S);S.Ec.J().T("html5_gapless_use_format_info_fix")&&(S.C.unsubscribe("internalvideoformatchange",S.YM,S),S.N.unsubscribe("internalvideoformatchange",S.YM,S));S.C.unsubscribe("mediasourceattached",S.YM,S);S.N.unsubscribe("statechange",S.Y7,S)}; l__=function(S){var W=S.Ec.J().experiments.ZH().C.QD(IH);return VtP(S.policy,S.C,S.N,S.U_,W)}; OlQ=function(S,W,m,a,J){if(S.Ec.J().experiments.ZH().C.QD(IH))return W.view={start:m,end:a,wx:J===void 0?!1:J},W;S=W.isView()?W.mediaElement:W;return new g.xj(S,m,a,J)}; d$=function(S,W){W<=S.status.status||(S.status={status:W,error:null},W===5&&S.WO.resolve())}; QbP=function(S){return S.Ec.J().T("html5_gapless_no_clear_buffer_timeline")&&S.X===1&&eX(S.C.getVideoData())}; iS=function(S){var W=S.C.fn();W=W.isView()?W.start:0;var m=S.C.getVideoData().isLivePlayback?Infinity:S.C.ao(!0);m=Math.min(S.U_/1E3,m)+W;var a=S.S?100:0;S=m-S.N.cD()+a;return{VF:W,WB:S,sP:m,uw:Infinity}}; vN6=function(S){return{ZX:S.B.C.Md,ac:S.B.N.Md}}; PV=function(S){g.A.call(this);var W=this;this.app=S;this.Z=this.N=this.C=null;this.N2=!1;this.bY=this.V=this.B=this.j=null;this.X=uS6(this.app.J());this.S=function(){g.lm(function(){Mt6(W)})}}; Uwj=function(S,W,m,a,J){a=a===void 0?0:a;J=J===void 0?0:J;S.v4()||(f3(S),kj(S));S.j=new Vn;S.C=W;var B=m,E=J===0;E=E===void 0?!0:E;var y=S.app.S9(),Y=y.getVideoData().isLivePlayback?Infinity:y.ao(!0)*1E3;B>Y&&(B=Y-200,S.N2=!0);E&&y.getCurrentTime()>=B/1E3?S.S():(S.N=y,E&&(E=B,B=S.N,S.app.E9.addEventListener(g.AD("vqueued"),S.S),E=isFinite(E)||E/1E3>B.getDuration()?E:0x8000000000000,S.Z=new g.hD(E,0x8000000000000,{namespace:"vqueued"}),B.addCueRange(S.Z)));E=a/=1E3;B=W.getVideoData().C;a&&B&&S.N&& (y=a,Y=0,W.getVideoData().isLivePlayback&&(E=Math.min(m/1E3,S.N.ao(!0)),Y=Math.max(0,E-S.N.getCurrentTime()),y=Math.min(a,W.ao()+Y)),E=A3P(B,y)||a,E!==a&&S.C.iY("qvaln",{st:a,at:E,rm:Y,ct:y}));W=E;a=S.C;a.getVideoData().o6=!0;a.getVideoData().Z=!0;a.cJ(!0);B={};S.N&&(B=S.N.Ro(),E=S.N.getVideoData().clientPlaybackNonce,B={crt:(B*1E3).toFixed(),cpn:E});a.iY("queued",B);W!==0&&a.seekTo(W+.01,{gf:!0,BX:3,Jw:"videoqueuer_queued"});S.B=new gN7(S.X,S.app.S9(),S.C,m,S.app,J);m=S.B;m.status.status!==Infinity&& (d$(m,1),m.C.subscribe("internalvideodatachange",m.YM,m),m.N.subscribe("internalvideodatachange",m.YM,m),m.Ec.J().T("html5_gapless_use_format_info_fix")&&(m.C.subscribe("internalvideoformatchange",m.YM,m),m.N.subscribe("internalvideoformatchange",m.YM,m)),m.C.subscribe("mediasourceattached",m.YM,m),m.N.subscribe("statechange",m.Y7,m),m.C.subscribe("newelementrequired",m.tP,m),m.YM());return S.j}; Mt6=function(S){var W,m,a,J,B,E,y;g.k(function(Y){switch(Y.C){case 1:if(S.TN()||!S.j||!S.C)return Y.return();S.N2&&S.app.S9().UR(!0,!1);W=null;if(!S.B){Y.cn(2);break}g.EQ(Y,3);return g.P(Y,jbX(S.B),5);case 5:g.Yp(Y,2);break;case 3:W=m=g.Gg(Y);case 2:if(!S.C)return Y.return();LE7.Fq("vqsp",function(){S.app.jO(S.C)}); if(!S.C)return Y.return();a=S.C.fn();S.app.J().T("html5_gapless_seek_on_negative_time")&&a&&a.getCurrentTime()<-.01&&S.C.seekTo(0);LE7.Fq("vqpv",function(){S.app.playVideo()}); W&&(S.C?(J=W?W.message:"forced",(B=S.N)==null||B.iY("gapfulfbk",{r:J}),S.C.Aa(J)):(E=S.N)==null||E.iY("gapsp",{}));y=S.j;kj(S);y&&y.resolve();return Y.return(Promise.resolve())}})}; kj=function(S,W){W=W===void 0?!1:W;if(S.N){if(S.Z){var m=S.N;S.app.E9.removeEventListener(g.AD("vqueued"),S.S);m.removeCueRange(S.Z)}S.N=null;S.Z=null}S.B&&(S.B.status.status!==6&&(m=S.B,m.status.status!==Infinity&&m.X!==1&&m.QY("Canceled")),S.B=null);S.j=null;S.C&&!W&&S.C!==S.app.Nw()&&S.C!==S.app.S9()&&S.C.dispose();S.C&&W&&S.C.BO();S.C=null;S.N2=!1}; f3=function(S){S.bY&&S.V&&S.bY.removeEventListener("timeupdate",S.V);S.V=null;S.bY=null}; xwX=function(S,W){if(S.app.J().ZH().C.QD(RgO)){var m=S.app.J().ZH().C.QD(eg6);if(!(m<=0)){f3(S);var a,J=(a=S.app.S9())==null?void 0:a.fn();J&&S.C&&(S.C.getVideoData().uo=!0,S.V=function(){var B=J.getCurrentTime();B>=W+m/1E3&&(B=Date.now()-(B-W)*1E3,S.app.Zr().tick("pbs",B),f3(S))},S.bY=J,J.addEventListener("timeupdate",S.V))}}}; ilG=function(S){var W;return((W=S.B)==null?void 0:W.currentVideoDuration)||-1}; dw6=function(S,W,m){if(S.v4())return"qie";if(S.C==null||S.C.TN()||S.C.getVideoData()==null)return"qpd";if(W.videoId!==S.C.sy())return"vinm";if(ilG(S)<=0)return"ivd";if(m!==1)return"upt";if((m=S.B)==null)S=void 0;else if(m.getStatus().status!==5)S="niss";else if(l__(m)!=null)S="pge";else{W=vN6(m);S=W.ZX;var a=W.ac;W=g.Db(m.Ec.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var J=m.V+W;m.Ec.J().experiments.mU("html5_pseudogapless_shorts")&&(J=iS(m).WB+W);m=ct(a.Ni(),J);S=ct(S.Ni(),J); S=!(W>0)||m&&S?null:"neb"}return S!=null?S:null}; I_P=function(){g.au.call(this);var S=this;this.fullscreen=0;this.j=this.B=this.pictureInPicture=this.C=this.N=this.inline=!1;this.X=function(){S.P1()}; E36(this.X);this.V=this.getVisibilityState(this.Sr(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.KW(),this.jH(),this.Gv(),this.JE())}; qzl=function(S){return!(S.isMinimized()||S.isInline()||S.isBackground()||S.KW()||S.jH()||S.Gv()||S.JE())}; g.hE=function(S){g.A.call(this);this.Y=S;this.videoData=this.playerState=null}; k2P=function(S,W,m){return(m===void 0?0:m)?new P$K(S,W):new f_c(S,W)}; f_c=function(S,W){g.A.call(this);var m=this;this.data=[];this.B=S||NaN;this.N=W||null;this.C=new g.rj(function(){tE(m);AE(m)}); g.Z(this,this.C)}; tE=function(S){var W=(0,g.X1)();S.data.forEach(function(m){m.expirea)break;var B=m.C.remove(),E=m.map.get(B);E&&E.X3===J&&Nm(m,B,!0)}bS(m)}); this.map=new Map;this.C=new $C;Number.isNaN(S);g.Z(this,this.B)}; Nm=function(S,W,m){var a=S.map.get(W);if(!a)return!1;S.map.delete(W);m&&S.N&&S.N(a.value);if(S.C.C.length>S.map.size*2)for(S.C.clear(),W=g.R(S.map.entries()),m=W.next();!m.done;m=W.next())a=g.R(m.value),m=a.next().value,a=a.next().value,isFinite(a.X3)&&S.C.enqueue(a.X3,m);return!0}; bS=function(S){S.B.stop();for(var W;!S.C.isEmpty();){var m=kC(S.C);var a=S.C.C;a=a.length!=0?a[0].getValue():void 0;if(m===void 0||a===void 0)break;if((a=S.map.get(a))&&a.X3===m){W=m;break}else S.C.remove()}W!==void 0&&(m=(0,g.X1)(),S.B.start(Math.max(W-m,100)))}; g.oH=function(S,W){g.A.call(this);var m=this;this.api=S;this.B={};this.qp=null;this.j={};this.C=null;this.S=new Map;this.X=null;W=k2P(W,function(a){a!==m.YK({playerType:a.getPlayerType()})&&a.dispose()},S.J().ZH().C.QD($wP)); g.Z(this,W);this.N=this.bY=this.Z=new g.hE(S.J());this.V=W}; r$=function(S,W,m){var a=[S.N];S.C&&a.push(S.C);S.api.publish("playbackChange",{active:a.filter(function(J){return J.getPlayerType()!==0}).map(function(J){return{cpn:J.dU()}}), started:W.filter(function(J){return J.getPlayerType()!==0}).map(function(J){return{cpn:J.dU()}}), ended:m.filter(function(J){return J.getPlayerType()!==0}).map(function(J){return{cpn:J.dU()}})})}; hgD=function(S){for(var W=S.C?[S.C]:[],m=g.R(Object.values(S.j)),a=m.next();!a.done;a=m.next())a.value.dispose();S.j={};S.C=null;S.X=null;S.S.clear();r$(S,[],W)}; C3=function(S,W,m){var a=a===void 0?"":a;var J=[W],B=S.C?[S.C]:[];S.j[W.dU()]=W;S.C=W;m&&(S.X=W);S.S.set(a,W);r$(S,J,B)}; DwO=function(S){var W=S.experiments,m=W.mU.bind(W);ttP=A16=m("html5_use_async_stopVideo");ZlG=NoK=m("html5_pause_for_async_stopVideo");bl_=oNP=m("html5_not_reset_media_source");m("html5_listen_for_audio_output_changed")&&(r17=C$P=!0);KP=m("html5_not_reset_media_source");c1K=m("html5_not_reset_media_source");JS=m("html5_retain_source_buffer_appends_for_debugging");iTc(m("web_watch_pip")||m("web_shorts_pip"));YzP(m("log_foreground_not_focused_as_background"));KZP(m("web_player_pip_logging_fix"));m("html5_mediastream_applies_timestamp_offset")&& (ZA=!0);S.rd()&&jgl();Error.stackTraceLimit=50;var a=g.Db(W,"html5_idle_rate_limit_ms");a&&Object.defineProperty(window,"requestIdleCallback",{value:function(J){return window.setTimeout(J,a)}}); VJP(S.X);iNc(m("html5_use_ump_request_slicer"));T27(m("html5_record_now"));m("html5_disable_streaming_xhr")&&(m1=!1);m("html5_byterate_constraints")&&(IU=!0);m("html5_use_non_active_broadcast_for_post_live")&&(V9=!0);m("html5_enable_encrypted_av1")&&(iv=!0);KlG(g.Db(S.experiments,"html5_sticky_duration_mos"))}; YpP=function(S){function W(B,E,y){a.push(wB(E(y),function(Y){m[B]=Y}))} var m={};S=S.experiments.Os();var a=[],J=S.C.QD(wx_);J&&W("MediaSource.EnableUsingMediaSourceBufferedRange",K1O,J===1);(J=S.C.QD(SpP))&&W("HTTP3",T_K,J===1);(J=S.C.QD(WRc))&&W("MediaSource.EnableUsingMediaSourceAttachmentMethods",qk7,J===1);(J=S.C.QD(meO))&&W("QUIC",pfK,J===1);(J=S.C.QD(ael))&&W("Media.PlayerConfiguration.DecodeToTexturePreferred",Vd6,J===1);(J=S.C.QD(JH7))&&W("Media.AudioWriteDurationLocal",F1P,Number(J));(J=S.C.QD(B9j))&&W("Media.DisableAllocator",n8X,Number(J)===1);(J=S.C.QD(Ewj))&& W("Media.VideoBufferSizeClampMb",sgP,J);(J=S.C.QD(z6P))&&W("Media.EnableAllocateOnDemand",u56,Number(J)===1);(S=S.C.QD(yH7))&&W("Media.NotifyMemoryPressureBeforePlayback",g8O,Number(S)===1);return wB(xpP(a),function(){return m})}; GkP=function(S){this.N=S===void 0?15:S;this.values=new Float64Array(176);this.C=new Float64Array(11);this.B=new Float64Array(16)}; cV=function(S,W,m,a){m=m===void 0?.5:m;a=a===void 0?0:a;this.resolution=W;this.N=0;this.B=!1;this.WY=!0;this.C=Math.round(S*this.resolution);this.values=Array(this.C);for(S=0;S0)W=S.byterate,this.N2= !0;else{var a;m=(((a=navigator.connection)==null?void 0:a.downlink)||0)*64*1024;m>0&&(W=m,this.N2=!0)}this.B.lO(this.policy.V,W);S.delay>0&&this.S.lO(1,Math.min(S.delay,2));S.stall>0&&this.Z.lO(1,S.stall);S.init>0&&(this.O9=Math.min(S.init,this.O9));S.interruptions&&(this.j=this.j.concat(S.interruptions),this.j.length>16&&this.j.pop());this.q2=(0,g.X1)();this.policy.Z>0&&(this.g2=new g.rj(this.hX,this.policy.Z,this),g.Z(this,this.g2),this.g2.start())}; gP=function(S,W,m,a){S.B.lO(a===void 0?W:a,m/W);S.V=(0,g.X1)()}; eUO=function(S){S.X||(S.X=(0,g.X1)());S.policy.bY&&(S.V=(0,g.X1)())}; ik_=function(S,W){if(S.X){var m=W-S.X;if(m<6E4){if(m>1E3){var a=S.interruptions;a.push(Math.ceil(m));a.sort(function(J,B){return B-J}); a.length>16&&a.pop()}S.Pn+=m}}S.X=W}; Dn=function(S,W,m,a,J,B){B=B===void 0?!1:B;S.Hn.lO(W,m/W);S.V=(0,g.X1)();J||S.bY.lO(1,W-a);B||(S.X=0);S.q2>-1&&(0,g.X1)()-S.q2>3E4&&(TEX(FE(S)),S.q2=(0,g.X1)(),S.N2=!0)}; w$=function(S,W,m){W=Math.max(W,S.N.C);S.Z.lO(1,m/W)}; oQ=function(S){S=S.S.hO()+S.s9.hO()||0;S=isNaN(S)?.5:S;return S=Math.min(S,5)}; T9P=function(S,W,m){isNaN(m)||(S.Xn+=m);isNaN(W)||(S.zN+=W)}; qpK=function(S){S=S.B.hO();return S>0?S:1}; Ci=function(S,W,m){W=W===void 0?!1:W;m=m===void 0?1048576:m;var a=qpK(S);a=1/((S.Z.hO()||0)*S.policy.N2+1/a);var J=S.Hn.hO();J=J>0?J:1;var B=Math.max(a,J);S.policy.X>0&&J=4E3}; p0j=function(S){this.experiments=S;this.C=17;this.B=13E4;this.V=.5;this.j=this.N=!1;this.vn=this.T("html5_use_histogram_for_bandwidth");this.X=g.Db(this.experiments,"html5_auxiliary_estimate_weight");this.N2=g.Db(this.experiments,"html5_stall_factor")||1;this.Z=g.Db(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.mU("html5_trigger_loader_when_idle_network");this.bY=this.experiments.mU("html5_sabr_fetch_on_idle_network_preloaded_players")}; FRP=function(S,W,m){var a=new p0j(m);S&&(a.N=!0,a.V=.1);m.mU("html5_media_time_weight")&&(a.N=!1);W&&(a.B=W/8);a.j=X6()>=480;return a}; nw7=function(S,W,m,a){a=a===void 0?0:a;g.r_.call(this,m.EJ());var J=this;this.tv=S;this.videoData=W;this.duration=a;this.C=this.startTimeSecs=0;this.N=this.B=!0;this.j=new V1O(function(B,E){return void J.iY(B,E)})}; V1O=function(S){this.iY=S;this.C={}}; sN_=function(S,W,m){S.C[W]||(S.iY("huli-sdai-err",m),S.C[W]=!0)}; ufQ=function(S){this.end=this.start=S}; g.Sj=function(){this.C=new Map;this.B=new Map;this.N=new Map}; gwO=function(S){var W=this;this.Y=S;this.N=[];this.B=new Map;this.j=new Map;this.C=new Map;this.f3={yS:function(){return W.B}, Bg2:function(){return W.j}, aR:function(){return W.N}}}; OQK=function(S,W,m){S=S.N;var a=g.K$(S,{Aw:W},function(E,y){return E.Aw-y.Aw}); a=a<0?(a+2)*-1:a;if(a>=0)for(var J=a;J<=a+1&&J=B.Aw-m&&W<=B.cG+m)return B}}; QNK=function(S,W){g.FZ(S.N,W,function(m,a){return m.Aw===a.Aw?m.durationMs-a.durationMs:m.Aw-a.Aw}); S.B.set(W.cpn,W);W.x8&&jNP(S,W.x8,W)}; X06=function(S,W){for(var m=[],a=g.R(S.N),J=a.next();!J.done;J=a.next())J=J.value,W(J)||m.push(J);if(S.Y.T("html5_sstm_fixes"))for(a=g.R(S.N),J=a.next();!J.done;J=a.next())J=J.value,W(J)&&S.B.delete(J.cpn);S.N=m}; vwQ=function(S,W){W=g.K$(S.N,{cG:W},function(m,a){return m.cG-a.cG}); return W>=0?S.N[W]:null}; HQP=function(S,W){var m=S.N.indexOf(W);m>=0&&S.N.splice(m,1);S.B.delete(W.cpn)}; jNP=function(S,W,m){var a=S.C.get(W);a?(a.push(m),g.qK(a,function(J,B){return J.Aw-B.Aw})):S.C.set(W,[m])}; g.W5=function(S,W,m,a){g.A.call(this);var J=this;this.api=S;this.Y=W;this.playback=m;this.app=a;this.N2=new g.Sj;this.N=new Map;this.EV=new Map;this.q2=new Map;this.Pn=null;this.IL=NaN;this.uY=this.vv=null;this.M2=new g.rj(function(){leD(J,J.IL,J.vv||void 0)}); this.events=new g.Tx(this);this.Y6=15E3;this.V=new g.rj(function(){J.Z=!0;J.playback.g6(J.Y6);M1j(J);if(J.playback.getVideoData().b$()){var B;J.TV({togab:(B=J.X)==null?void 0:B.identifier})}J.OX(!1)},this.Y6); this.Z=!1;this.RT=new Map;this.zN=[];this.X=null;this.aY=new Set;this.S=[];this.Hn=[];this.Kn=[];this.qd=[];this.O9=new Set;this.V$=0;this.bY=!1;this.VT=new Set;this.o6=new Set;this.dA=new Set;this.d2=new Set;this.Cn=this.BW=0;this.lV=this.eg=!1;this.Uy=this.B="";this.vn=null;this.logger=new g.O6("dai");this.xP="";this.g2=!0;this.s9=new Map;this.Wv=new Map;this.f3={bmn:function(){return J.N}, yS:function(){return J.C.f3.yS()}, PL2:function(){return J.B}, d_q:function(B){J.onCueRangeEnter(J.N.get(B))}, Q$6:function(B){J.onCueRangeExit(J.N.get(B))}, KmQ:function(B,E){J.N.set(B,E)}, JxN:function(B){J.Uy=B}, oT:function(){return J.oT()}, vk9:function(B){return J.C.C.get(B)}, c49:function(){return J.vn}, aR:function(){return J.C.f3.aR()}, oi:function(B,E){J.oi(B,E)}, HmU:function(){return J.EV}, WF:function(B){J.WF(B)}}; this.playback.getPlayerType();this.C=new gwO(this.Y);this.playback.j6(this);this.hX=this.Y.rd();g.Z(this,this.M2);g.Z(this,this.events);g.Z(this,this.V);this.H1=this.Y.T("html5_use_new_ssdai_transition_detector");this.yT=this.Y.ZH().C.QD(NPX);this.lr=this.Y.ZH().C.QD(UeP);this.mQ=this.playback.getVideoData().zQ;this.H1?this.playback.subscribe("playbackstarted",this.oi,this):(this.events.K(this.api,g.AD("serverstitchedcuerange"),this.onCueRangeEnter),this.events.K(this.api,g.Z5("serverstitchedcuerange"), this.onCueRangeExit));this.Od=this.Y.T("html5_ssdai_report_stitch_error_after_skip_ad");C3(this.app.Df(),this.playback,!1)}; xe7=function(S,W,m,a,J,B,E,y,Y){var G=LRX(S,B,B+J);S.Z&&S.TV({adaftto:1});m||S.TV({missadcon:1,enter:B,len:J,aid:y});S.j&&!S.j.qG&&(S.j.qG=y);S.lV&&S.TV({adfbk:1,enter:B,len:J,aid:y});var K=S.playback;B>E&&m7(S,{reason:"enterTime_greater_than_return",Aw:B,cG:E});var T=K.R6()*1E3;BK&&m7(S,{reason:"parent_return_greater_than_content_duration",cG:E,a52:K});(K=vwQ(S.C,B))&&K.cG>B&&R6c(S,W.video_id|| "",B,E,K);if(G&&K)for(T=0;T=W)return m}S=g.R(S.N.values());for(m=S.next();!m.done;m=S.next())if(m=m.value,m.start<=W&&m.end>=W)return m}; leD=function(S,W,m){var a=S.uY||S.app.S9().getPlayerState();B5(S,!0);S.playback.seekTo(W,m);S=S.app.S9();W=S.getPlayerState();a.isOrWillBePlaying()&&!W.isOrWillBePlaying()?S.playVideo():a.isPaused()&&!W.isPaused()&&S.pauseVideo()}; B5=function(S,W){S.IL=NaN;S.vv=null;S.M2.stop();S.Pn&&W&&S.Pn.Hd();S.uY=null;S.Pn=null}; N9K=function(S){var W=W===void 0?-1:W;var m=m===void 0?Infinity:m;AHD(S,W,m);for(var a=g.R(S.N.values()),J=a.next();!J.done;J=a.next())J=J.value,J.start>=W&&J.end<=m&&(S.playback.removeCueRange(J),S.N.delete(J.getId()),S.TV({rmAdCR:1}));a=JC(S,W/1E3);W=a.AD;a=a.hM;W&&(a=a*1E3-W.Aw,ZQ6(S,W,a,W.Aw+a),a=S.N.get(W.cpn))&&(a.start=W.Aw,a.end=W.Aw+W.durationMs);if(W=JC(S,m/1E3).AD){var B;a="playback_cpn_"+W.cpn+"_video_id_"+((B=W.videoData)==null?void 0:B.videoId)+"_durationMs_"+W.durationMs+"_enterTimeMs_"+ W.Aw+"_parentReturnTimeMs_"+W.cG;S.Xy("Invalid_clearEndTimeMs_"+m+"_that_falls_during_"+a+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; bQP=function(S){S.N2.clearAll();S.N.clear();S.C.clear();S.RT.clear();S.zN=[];S.X=null;S.aY.clear();S.O9.clear();S.S=[];S.Hn=[];S.Kn=[];S.qd=[];S.VT.clear();S.o6.clear();S.dA.clear();S.d2.clear();S.Z=!1;S.V$=0;S.bY=!1;S.g2=!1;S.BW=0;S.Cn=0;S.eg=!1;S.lV=!1;S.B="";hgD(S.app.Df());C3(S.app.Df(),S.playback,!1);S.q2.clear();S.V.isActive()&&aA(S)}; ZQ6=function(S,W,m,a){W.durationMs=m;W.cG=a;(a=S.q2.get(W.cpn))?a.Ab(m/1E3):S.TV({nop_d:W.cpn})}; AHD=function(S,W,m){X06(S.C,function(a){return a.Aw>=W&&a.cG<=m})}; CEQ=function(S,W,m,a,J,B){if(!S.lV)if(g.owP(S,m))S.TV({gdu:"undec",seg:m,itag:J});else if(W=rHG(S,W,m,a,B),!(S.playback.getVideoData().b$()&&(W==null?0:W.Qu)))return W}; rHG=function(S,W,m,a,J){var B=S.RT.get(m);if(!B){if(B=BD(S,W))return B;W=S.hA(m-1,a!=null?a:2);if(J)return S.TV({misscue:J,sq:m,type:a,prevsstate:W==null?void 0:W.Cc,prevrecord:S.RT.has(m-1)}),S.RT.get(m-1);if((W==null?void 0:W.Cc)===2)return S.TV({adnf:1,sq:m,type:a,prevrecord:S.RT.has(m-1)}),S.RT.get(m-1)}return B}; BD=function(S,W){W+=S.BT();var m;if(S.playback.getVideoData().b$()){a:{var a=W*1E3;S=g.R(S.C.N);for(m=S.next();!m.done;m=S.next()){m=m.value;var J=m.rZ?m.rZ*1E3:m.Aw;if(a>=m.Aw-1E3&&a<=J+m.durationMs+1E3){a=m;break a}}a=void 0}m={AD:a,hM:W}}else m=JC(S,W),((a=m)==null?0:a.AD)||(m=JC(S,W,1));var B;return(B=m)==null?void 0:B.AD}; g.v5P=function(S,W,m,a,J,B,E){var y=J===3,Y=CEQ(S,W,m,J,a,E);if(!Y){Ed(S,m,y);var G=g.owP(S,m)?"undec":"ncp";S.TV({gvprp:G,mt:W,seg:m,tt:J,itag:a,ce:E});return null}y||S.RT.set(m,Y);E=Y.x8;var K;J=((K=S.hA(m-1,J,B))==null?void 0:K.yA)||"";J===""&&S.TV({eds:1});K=cHP(S,Y.ssdaiAdsConfig);B=S.playback.getVideoData();var T;y=((T=B.N)==null?void 0:T.containerType)||0;T=B.dQ[y];Y=Y.zT&&m>=Y.zT?Y.zT:void 0;T={BY:E?Dej(S,E):[],adsConfig:K,yA:J,rb:Y,F2:bz(T.split(";")[0]),h$:T.split(";")[1]||""};Y={DJ:T}; S.hX&&(W={gvprpro:"v",sq:m,mt:W.toFixed(3),itag:a,acpns:((G=T.BY)==null?void 0:G.join("_"))||"none",abid:E},S.TV(W));return Y}; cHP=function(S,W){W=W===void 0?"":W;var m=xL(W)||void 0;if(!W||!m){var a;S.TV({adcfg:(a=W)==null?void 0:a.length,dcfg:m==null?void 0:m.length})}return m}; w0j=function(S){for(var W=g.R(S.N.values()),m=W.next();!m.done;m=W.next())S.playback.removeCueRange(m.value);S.N.clear();S.N2.clearAll()}; W3_=function(S,W,m,a,J,B,E){if(W&&m){S.Uy=m.cpn;S.EX(m.cpn,m.startTimeSecs||J);IeP(S,m);var y=iQX(S,"a2a",m);S.TV(y);S.BW++;y=S5X(S);S.playback.f8(W,m,a||0,J||0,!!B,!!E,void 0,y)}else S.TV({misspbkonadtrans:1,enter:(m==null?void 0:m.cpn)||"",exit:(W==null?void 0:W.cpn)||"",seek:B,skip:E})}; Ed=function(S,W,m){if(m===void 0||!m){m=g.R(S.zN);for(var a=m.next();!a.done;a=m.next()){a=a.value;if(W>=a.start&&W<=a.end)return;if(W===a.end+1){a.end+=1;return}}S.zN.push(new ufQ(W))}}; g.owP=function(S,W){S=g.R(S.zN);for(var m=S.next();!m.done;m=S.next())if(m=m.value,W>=m.start&&W<=m.end)return!0;return!1}; m4_=function(S,W,m){var a;if(a=S.playback.getVideoData().b$())a=(a=S.C.YK(W))&&a.x8?(S=S.C.C.get(a==null?void 0:a.x8))&&S.slice(-1)[0].cpn===W:!1;return a&&m===2?1E3:0}; R6c=function(S,W,m,a,J){var B;W={reason:"overlapping_playbacks",N_n:W,Aw:m,cG:a,m_X:J.cpn,Rvn:((B=J.videoData)==null?void 0:B.videoId)||"",Yp9:J.durationMs,pJN:J.Aw,kSD:J.cG};m7(S,W)}; m7=function(S,W,m){S.playback.L5(W,m)}; Dej=function(S,W){var m=[];S=S.C.C.get(W);if(!S)return[];S=g.R(S);for(W=S.next();!W.done;W=S.next())W=W.value,W.cpn&&m.push(W.cpn);return m}; a$P=function(S,W,m){var a=0;S=S.C.C.get(m);if(!S)return-1;S=g.R(S);for(m=S.next();!m.done;m=S.next()){if(m.value.cpn===W)return a;a++}return-1}; JR6=function(S,W){var m=0;S=S.C.C.get(W);if(!S)return 0;S=g.R(S);for(W=S.next();!W.done;W=S.next())W=W.value,W.durationMs!==0&&W.cG!==W.Aw&&m++;return m}; Bv6=function(S,W,m){var a=!1;if(m=S.C.C.get(m)){m=g.R(m);for(var J=m.next();!J.done;J=m.next())J=J.value,J.durationMs!==0&&J.cG!==J.Aw&&(J=J.cpn,W===J&&(a=!0),a&&!S.o6.has(J)&&(S.TV({decoratedAd:J}),S.o6.add(J)))}}; M1j=function(S){S.hX&&S.TV({adf:"0_"+((new Date).getTime()/1E3-S.Cn)+"_isTimeout_"+S.Z})}; LRX=function(S,W,m){if(S.S.length)for(var a=g.R(S.S),J=a.next(),B={};!J.done;B={Bd:void 0},J=a.next()){B.Bd=J.value;J=B.Bd.startSecs*1E3;var E=B.Bd.Gk*1E3+J;if(W>J&&WJ&&m0&&(S.BW=0,S.Uy="",S.Y.T("html5_huli_ssdai_use_playback_state")&&S.EX(S.playback.dU(),0),S.api.publish("serverstitchedvideochange"));S.playback.qg(a,J);return!0}; aA=function(S){S.Z=!1;S.V.isActive()&&M1j(S);S.V.stop();S.OX(!1)}; EUD=function(S,W){var m="";W?W.event==="unknown"?m="unknown":S.O9.has(W.identifier)?S.j&&S.j.AU===W.identifier?S.j.AU===W.identifier?m=ap(S.Hn,function(a){return a.identifier===W.identifier})?"shortad":"pending":ap(S.Hn,function(a){return a.identifier===W.identifier})||(m="noAdsAdded"):m="wrongAdBreakInfo":m="unscheduled":m="noCuepoint"; return m}; y7=function(S,W){S.B||S.bY||zO(S,S.Uy);var m=W.OB,a=W.T4;if(a.cpn===S.Uy)S.TV({igtranssame:1,enter:a.cpn,exit:m.cpn});else{var J=S.bY,B=!!S.B;S.B="";var E=W.sB,y=m.playerType===2?m.Aw/1E3+m.videoData.Wv:S.oT().videoData.Wv;S.api.T("html5_ssdai_enable_media_end_cue_range")&&(B||J||m.playerType!==2?(J||B)&&S.TV({mecr:0,seek:J,skip:B}):S.api.Cr(m.cpn));if(m.playerType===2&&a.playerType===2)B?S.TV({igtransskip:1,enter:a.cpn,exit:m.cpn,seek:J,skip:S.B}):W3_(S,m,a,y,E,J,B);else{S.Uy=a.cpn;S.EX(a.cpn,a.startTimeSecs|| E);W=W.BEN;if(m.playerType===1&&a.playerType===2){S.V$=0;IeP(S,a);var Y=iQX(S,"c2a",a);S.TV(Y);S.BW++}else if(m.playerType===2&&a.playerType===1){S.api.publish("serverstitchedvideochange");Y=iQX(S,"a2c");S.TV(Y);S.BW=0;S.V$=y;Y=m.cpn;var G=S.V$;if(Y!==S.playback.dU()){var K=S.q2.get(Y);K?K.C=G:S.TV({nop_e:Y})}S.WF(m.x8)}Y=S5X(S);S.playback.f8(m,a,y,E,J,B,W,Y)}ztc(S)}}; yR6=function(S,W,m,a){S.Y.T("html5_ssdai_log_ssevt_in_loader_timers")&&(a=S.bY?0:Math.round((a-m)*1E3),S.playback.iY("ssevt",{tag:"sstme",ad:W!==S.playback.dU(),cpn:W,st:(m-S.playback.BT()).toFixed(3),late:a}))}; Y5_=function(S,W,m){S.playback.gp();S.playback.seekTo(W,m);S.playback.playVideo()}; GiQ=function(S,W,m,a){W={OB:W,T4:m,sB:S.playback.getCurrentTime(),BEN:a};y7(S,W)}; zO=function(S,W){var m=W||S.Uy,a=S.C.YK(m);if(a){W=a.videoData;var J,B;m=a.rZ||((B=(J=S.N.get(m))==null?void 0:J.start)!=null?B:0)/1E3;S=S.playback.getCurrentTime()-m;W.Wv=S>0?S:0}else S.oT().videoData.Wv=S.playback.getCurrentTime()}; ztc=function(S){S.d2.add(S.B);S.B="";S.bY=!1}; S5X=function(S){if(S.yT||S.lr){var W=Array.from(S.app.Df().S.values()),m=[],a=[],J=[],B=[],E=[],y=[];W=g.R(W);for(var Y=W.next();!Y.done;Y=W.next())if(Y=S.C.YK(Y.value.dU()))Y.serializedPlaybackPingContextLoggingData&&m.push(Y.serializedPlaybackPingContextLoggingData),Y.Mk&&a.push(Y.Mk),Y.xO&&a.push(Y.xO),B.push(Y.cpn),E.push(Y.videoData.videoId||""),y.push(Y.videoData.adFormat||Y.videoData.M2),Y.serializedQoeContextData&&J.push(Y.serializedQoeContextData);Y=W=void 0;S.yT&&(Y={serializedPlaybackPingContextLoggingData:m, serializedStitchedClipLoggingMetadata:a});S.lr&&(W={BY:B,Pb:E,adFormats:y,serializedQoeContextData:J});return{dX:Y,Tj:W}}}; Tvc=function(S,W,m,a){g.A.call(this);var J=this;this.api=S;this.Y=W;this.C=m;this.app=a;this.X=new Map;this.N=[];this.B=this.Z=null;this.N2=NaN;this.V=this.j=this.bY=null;this.S=new g.rj(function(){K3O(J,J.N2,J.bY||void 0)}); this.vn=[];this.q2=new g.rj(function(){var B=J.vn.pop();if(B){var E=B.VP,y=B.playerVars;B=B.playerType;y&&(y.prefer_gapless=!0,J.api.preloadVideoByPlayerVars(y,B,NaN,"",E),J.vn.length&&g.Cu(J.q2,4500))}}); this.events=new g.Tx(this);this.f3={Gdn:function(){return J.N}}; this.C.getPlayerType();g.Z(this,this.S);g.Z(this,this.q2);g.Z(this,this.events);this.events.K(this.api,g.AD("childplayback"),this.onCueRangeEnter);this.events.K(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.K(this.api,"presentingplayerstatechange",this.b6)}; V5l=function(S,W,m,a,J,B){var E=W.cpn,y=W.docid||W.video_id||W.videoId||W.id,Y=S.C;B=B===void 0?J+a:B;if(J>B)return Y9(S,"enterAfterReturn enterTimeMs="+J+" is greater than parentReturnTimeMs="+B.toFixed(3),E,y),"";var G=Y.R6()*1E3;if(JG)return Y="returnAfterDuration parentReturnTimeMs="+B.toFixed(3)+" is greater than parentDurationMs="+G+". And timestampOffset in seconds is "+ Y.DH(),Y9(S,Y,E,y),"";G=null;for(var K=g.R(S.N),T=K.next();!T.done;T=K.next()){T=T.value;if(J>=T.Aw&&JT.Aw)return Y9(S,"overlappingReturn",E,y),"";if(B===T.Aw)return Y9(S,"outOfOrder",E,y),"";J===T.cG&&(G=T)}E="cs_childplayback_"+q56++;y={V2:GO(a,!0),U_:Infinity,target:null};var p={VP:E,playerVars:W,playerType:m,durationMs:a,Aw:J,cG:B,Is:y};S.N=S.N.concat(p).sort(function(O,X){return O.Aw-X.Aw}); G?pK7(S,G,{V2:GO(G.durationMs,!0),U_:G.Is.U_,target:p}):(W={V2:GO(J,!1),U_:J,target:p},S.X.set(W.V2,W),Y.addCueRange(W.V2));W=!0;if(S.C===S.app.S9()&&(Y=Y.getCurrentTime()*1E3,Y>=p.Aw&&YW)break;if(B>W)return{AD:a,hM:W-J};m=B-a.cG/1E3}return{AD:null,hM:W-m}}; K3O=function(S,W,m){m=m===void 0?{}:m;var a=S.V||S.app.S9().getPlayerState();q6(S,!0);W=isFinite(W)?W:S.C.Oo();var J=gU7(S,W);W=J.hM;var B=(J=J.AD)&&!KC(S,J)||!J&&S.C!==S.app.S9(),E=W*1E3;E=S.B&&S.B.start<=E&&E<=S.B.end;!B&&E||TO(S);J?F3j(S,J,W,m,a):OSP(S,W,m,a,"_execute")}; OSP=function(S,W,m,a,J){var B=S.C;B!==S.app.S9()&&S.app.Ue();S.Y.T("html5_sabr_csdai_seek_log")||(J="");var E;B.seekTo(W,Object.assign({},{Jw:"application_timelinemanager"+((E=J)!=null?E:"")},m));jdc(S,a)}; F3j=function(S,W,m,a,J){var B=KC(S,W);if(!B){W.playerVars.prefer_gapless=!0;var E=new g.a1(S.Y,W.playerVars);E.VP=W.VP;S.api.Cj(E,W.playerType)}E=S.app.S9();B||E.addCueRange(W.Is.V2);E.seekTo(m,Object.assign({},{Jw:"application_timelinemanager"},a));jdc(S,J)}; jdc=function(S,W){S=S.app.S9();var m=S.getPlayerState();W.isOrWillBePlaying()&&!m.isOrWillBePlaying()?S.playVideo():W.isPaused()&&!m.isPaused()&&S.pauseVideo()}; q6=function(S,W){S.N2=NaN;S.bY=null;S.S.stop();S.j&&W&&S.j.Hd();S.V=null;S.j=null}; KC=function(S,W){S=S.app.S9();return!!S&&S.getVideoData().VP===W.VP}; QdD=function(S){var W=S.N.find(function(J){return KC(S,J)}); if(W){var m=S.app.S9();TO(S);var a=new g.uV(8);W=uV7(S,W)/1E3;OSP(S,W,{},a,"_force");m.iY("forceParentTransition",{childPlayback:1});S.C.iY("forceParentTransition",{parentPlayback:1})}}; vU6=function(S,W,m){W=W===void 0?-1:W;m=m===void 0?Infinity:m;for(var a=W,J=m,B=g.R(S.X),E=B.next();!E.done;E=B.next()){var y=g.R(E.value);E=y.next().value;y=y.next().value;y.U_>=a&&y.target&&y.target.cG<=J&&(S.C.removeCueRange(E),S.X.delete(E))}a=W;J=m;B=[];E=g.R(S.N);for(y=E.next();!y.done;y=E.next())if(y=y.value,y.Aw>=a&&y.cG<=J){var Y=S;Y.Z===y&&TO(Y);KC(Y,y)&&Y.app.Ue()}else B.push(y);S.N=B;a=gU7(S,W/1E3);W=a.AD;a=a.hM;W&&(a*=1E3,XKX(S,W,a,W.cG===W.Aw+W.durationMs?W.Aw+a:W.cG));(W=gU7(S,m/1E3).AD)&& Y9(S,"Invalid clearEndTimeMs="+m+" that falls during playback={timelinePlaybackId="+(W.VP+" video_id="+W.playerVars.video_id+" durationMs="+W.durationMs+" enterTimeMs="+W.Aw+" parentReturnTimeMs="+W.cG+"}.Child playbacks can only have duration updated not their start."))}; XKX=function(S,W,m,a){W.durationMs=m;W.cG=a;a={V2:GO(m,!0),U_:m,target:null};pK7(S,W,a);KC(S,W)&&S.app.S9().getCurrentTime()*1E3>m&&(W=uV7(S,W)/1E3,m=S.app.S9().getPlayerState(),OSP(S,W,{},m,"_update"))}; Y9=function(S,W,m,a){S.C.iY("timelineerror",{e:W,cpn:m?m:void 0,videoId:a?a:void 0})}; l$O=function(S){S&&S!=="web"&&HSK.includes(S)}; pC=function(S){S=S===void 0?!1:S;g.A.call(this);this.C=k2P(5,null,S);g.Z(this,this.C);this.N=k2P(15,null,S);g.Z(this,this.N)}; by_=function(S,W){return W?!!S.C.get(W):!1}; M5P=function(S,W){S.dataset.version=W}; Rtl=function(S){g.b.call(this,{G:"div",Wn:["html5-video-player"],D:{tabindex:S.J().disableOrganicUi?"":"-1",id:S.webPlayerContextConfig.rootElementId},U:[{G:"div",L:g.Lw.VIDEO_CONTAINER,D:{"data-layer":"0"}}]});var W=this;this.app=S;this.o4=this.I2(g.Lw.VIDEO_CONTAINER);this.xF=new g.wY(0,0,0,0);this.bP=null;this.Go=new g.wY(0,0,0,0);this.L4=this.b9=this.Ch=NaN;this.H_=this.yy=this.Tx=this.xD=!1;this.b3=NaN;this.Vv=!1;this.K$=null;this.nX=new g.rj(function(){W.app.J().T("web_enable_smart_zoom")&& W.app.E9.getInternalApi().isAutocropEnabled()||W.resize()},100); this.Ew=function(){W.element.focus({preventScroll:!0})}; this.Ym=function(){W.app.E9.publish("playerUnderlayVisibilityChange","visible");W.bP.classList.remove(g.Lw.VIDEO_CONTAINER_TRANSITIONING);W.bP.removeEventListener(Li,W.Ym);W.bP.removeEventListener("transitioncancel",W.Ym)}; this.xQ=this.rS=!1;var m=this.element.addEventListener,a=this.element.removeEventListener;this.addEventListener=function(B,E,y){m.apply(W.element,[B,E,y])}; this.removeEventListener=function(B,E,y){a.apply(W.element,[B,E,y])}; var J=S.J();J.transparentBackground&&this.mP("ytp-transparent");J.controlsType==="0"&&this.mP("ytp-hide-controls");g.Bn(this.element,"ytp-exp-bottom-control-flexbox");g.Bn(this.element,"ytp-modern-caption");J.T("enable_new_paid_product_placement")&&!g.Y5(J)&&g.Bn(this.element,"ytp-exp-ppp-update");g.Bn(this.element,"ytp-livebadge-color");M5P(this.element,U4c(S));this.y7=!1;this.bk=new g.BI(NaN,NaN);L3c(this);this.K(S.E9,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.Z(this,this.nX)}; L3c=function(S){function W(E){S.bP&&Fe(S);V7(S)!==S.Vv&&S.resize();S.app.J().T("web_enable_smart_zoom")&&S.PK&&(E.state.isPaused()?S.PK.pause():g.qb(E,8)&&S.PK.playState==="paused"&&S.PK.play())} function m(E,y){S.uZ(E,y)} function a(E){E.getVideoData()&&S.updateVideoData(E.getVideoData())} function J(){S.Go=new g.wY(0,0,0,0);S.xF=new g.wY(0,0,0,0)} var B=S.app.E9;B.addEventListener("initializingmode",J);B.addEventListener("videoplayerreset",a);B.addEventListener("videodatachange",m);B.addEventListener("presentingplayerstatechange",W);S.addOnDisposeCallback(function(){B.removeEventListener("initializingmode",J);B.removeEventListener("videoplayerreset",a);B.removeEventListener("videodatachange",m);B.removeEventListener("presentingplayerstatechange",W)})}; x4P=function(S){var W=S.app.S9();if(W=W?W.getVideoData():null){if(g.$a(W)||g.hp(W)||g.tp(W))return 16/9;if(pp(W)&&W.B.C)return S=W.B.videoInfos[0].video,etX(S.width,S.height)}return(S=S.bP)?etX(S.videoWidth,S.videoHeight):16/9}; iSG=function(S,W,m,a){var J=m,B=etX(W.width,W.height);S.xD?J=mB?{width:W.width,height:W.width/J,aspectRatio:J}:JJ?S.width=S.height*m:mY;if(V7(S)){var G=x4P(S);var K=isNaN(G)||g.ND||Qk&&g.F1||Y;Zf&&!g.wb(601)?G=J.aspectRatio:K=K||B.controlsType==="3";K?Y?(K=B.T("place_shrunken_video_on_left_of_player")?16:S.getPlayerSize().width-W.width-16,G=Math.max((S.getPlayerSize().height-W.height)/2,0),K=new g.wY(K,G,W.width, W.height),S.bP.style.setProperty("border-radius","12px")):K=new g.wY(0,0,W.width,W.height):(m=J.aspectRatio/G,K=new g.wY((W.width-J.width/m)/2,(W.height-J.height)/2,J.width/m,J.height),m===1&&g.F1&&(G=K.width-W.height*G,G>0&&(K.width+=G,K.height+=G)));g.GD(S.element,"ytp-fit-cover-video",Math.max(K.width-J.width,K.height-J.height)<1);if(y||S.y7)S.bP.style.display="";S.Vv=!0}else{K=-W.height;Zf?K*=window.devicePixelRatio:g.GJ&&(K-=window.screen.height);K=new g.wY(0,K,W.width,W.height);if(y||S.y7)S.bP.style.display= "none";S.Vv=!1}Ss(S.Go,K)||(S.Go=K,g.NT(B)?(S.bP.style.setProperty("width",K.width+"px","important"),S.bP.style.setProperty("height",K.height+"px","important")):g.qU(S.bP,K.getSize()),a=new g.an(K.left,K.top),g.Yr(S.bP,Math.round(a.x),Math.round(a.y)),a=!0);W=new g.wY((W.width-J.width)/2,(W.height-J.height)/2,J.width,J.height);Ss(S.xF,W)||(S.xF=W,a=!0);g.mg(S.bP,"transform",m===1?"":"scaleX("+m+")");E&&Y!==S.yy&&(Y&&(S.bP.addEventListener(Li,S.Ym),S.bP.addEventListener("transitioncancel",S.Ym),S.bP.classList.add(g.Lw.VIDEO_CONTAINER_TRANSITIONING)), S.yy=Y,S.app.E9.publish("playerUnderlayVisibilityChange",S.yy?"transitioning":"hidden"));return a}; PJQ=function(S){S.rS=!S.rS;S.xQ=!0;S.element.classList.toggle("ytp-retro-player",S.rS);S.resize();S.xQ=!1;S.app.E9.f_("onRetroModeChanged",S.rS)}; f$7=function(){this.csn=g.uR();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.C=new Set;this.N=new Set}; kiP=function(S){if(S.csn!==g.uR())if(S.csn==="UNDEFINED_CSN")S.csn=g.uR();else{var W=g.uR(),m=g.se();if(W&&m){S.csn=W;for(var a=g.R(S.elements),J=a.next();!J.done;J=a.next())(J=J.value.visualElement)&&J.isClientVe()&&W&&m&&(g.Qi("combine_ve_grafts")?pw(T4(),J,m):g.my(g.hy)(void 0,W,m,J))}if(W)for(S=g.R(S.C),m=S.next();!m.done;m=S.next())(m=m.value.visualElement)&&m.isClientVe()&&g.CU(W,m)}}; nC=function(S,W,m,a,J,B){g.A.call(this);this.Z=S;this.iY=W;this.V=m;this.j=a;this.busyWaitMs=J;this.intervalMs=B;this.X=0;this.B=!1}; $4P=function(S){var W,m,a,J;return g.k(function(B){if(B.C==1){if(S.TO)return B.return();S.TO=new Worker(sR(S.Z),void 0);g.EQ(B,2);m=Promise.withResolvers();W=setTimeout(function(){m.reject("timeout")},1E4); S.TO.onerror=function(){m.reject("error")}; S.TO.onmessage=function(){m.resolve();clearTimeout(W)}; return g.P(B,m.promise,4)}if(B.C!=2)return S.TO.onmessage=null,S.TO.onerror=null,S.TO.addEventListener("message",function(E){return void S.receive(E)}),S.iY("workerCtor",{}),g.Yp(B,0); a=g.Gg(B);clearTimeout(W);(J=S.TO)==null||J.terminate();S.TO.onmessage=null;S.TO.onerror=null;S.TO=void 0;S.iY("workerErr",{e:""+a});g.B9(B)})}; htG=function(S,W){if(S.C&&S.C.byteLength===W)return S.C;for(var m=new Uint8Array(W),a=0;W>0;){var J=new Uint8Array(Math.min(W,65536));crypto.getRandomValues(J);m.set(J,a);W-=J.length;a+=J.length}return S.C=m}; t5P=function(S,W){S.TO&&(W=htG(S,W),W.length>0&&W[0]++,W={command:"echo",mainEventSent:performance.now(),data:W},S.request(W))}; ARQ=function(S){g.k(function(W){if(W.C==1){if(S.N!==void 0||S.B)return W.return();S.B=!0;return g.P(W,$4P(S),2)}S.B=!1;if(!S.TO)return W.return();t5P(S,S.V);S.N=setInterval(function(){S.sendRequest()},S.intervalMs); g.B9(W)})}; g.sd=function(S,W,m,a){g.A.call(this);var J=this;this.logger=new g.O6("App");this.JM=this.nk=!1;this.HE={};this.wb=[];this.K7=!1;this.jA=null;this.intentionalPlayback=!1;this.U1=!0;this.Kf=!1;this.H9=this.Cg=this.hW=null;this.sT=!0;this.mediaElement=this.Xz=null;this.jZ=NaN;this.G_=!1;this.FD=this.ue=this.fP=this.screenLayer=this.playlist=null;this.AC=[];this.CS=this.Rn=0;this.f3={Df:function(){return J.rA}, i_:function(){return J.fP}}; if(!m)throw Error("b/179532961");this.VR=(W==null?void 0:W.args)||{};this.webPlayerContextConfig=m;W=this.VR;this.Y=new wJ(W,m,m.canaryState,a);g.Z(this,this.Y);DwO(this.Y);a=YpP(this.Y);this.Y.rd()&&wB(a,function(E){J.Dd("h5vcc",E)}); this.Y.experiments.mU("jspb_serialize_with_worker")&&s2P();this.Y.experiments.mU("gzip_gel_with_worker")&&yUj();this.Y.N&&(a=this.Y.experiments.ZH().C.QD(IH),FE_(a));this.T("html5_onesie")&&(this.TL=new $e(this.Y),g.Z(this,this.TL));this.Av=new KRK(FRP(g.pt(this.Y),this.Y.Pc,this.Y.experiments),new sUD(this.Y.experiments),function(){return void J.A4()}); g.Z(this,this.Av);this.c7=E2($L(this.Y)&&!0,W.enablesizebutton);this.s5=E2(!1,W.player_wide);this.visibility=new I_P;g.Z(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.Z_(E2(!1,W.player_wide));this.nk=E2(!1,W.external_list);this.events=new g.Tx(this);g.Z(this,this.events);this.T("start_client_gcf")&&(j0(Hp(),{r3:y_,Eb:Rel()}),this.WC=Hp().resolve(y_),iuj(this.WC));this.iJ2=new nB;g.Z(this,this.iJ2);this.Xa=new f$7;W=new sk;this.E9=new g.x8(this,W);g.Z(this,this.E9);this.template= new Rtl(this);g.Z(this,this.template);this.appState=1;this.hE=ZSj(this);g.Z(this,W);W={};this.cz=(W.internalvideodatachange=this.PN,W.playbackready=this.VDq,W.playbackstarted=this.On_,W.statechange=this.Zn2,W);this.ES=new GF(this.E9);this.l$=Nv6(this);W=this.Y.V;!1!==W&&this.Dd("badps",{hbp:W,hostname:window.location.hostname,ps:this.Y.playerStyle});this.Pv=new id6(this.Y,this.l$);this.E9.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||QT(this.l$))&&bSD(this);W=10;g.pt(this.Y)&& (W=3);zJ(this.Y)&&(W=g.Db(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.rA=new g.oH(this.E9,W);W=oUP(this);this.rA.Ms(W);rRG(this);W={};this.Pp=(W.airplayactivechange=this.Sd2,W.airplayavailabilitychange=this.UE9,W.beginseeking=this.dE6,W.sabrCaptionsDataLoaded=this.ia2,W.endseeking=this.Yd9,W.internalAbandon=this.kk9,W.internalaudioformatchange=this.lzN,W.internalvideodatachange=this.IDn,W.internalvideoformatchange=this.yrn,W.liveviewshift=this.RVU,W.playbackstalledatstart=this.qyD, W.progresssync=this.CQ2,W.onAbnormalityDetected=this.DEY,W.onSnackbarMessage=this.jvq,W.onLoadProgress=this.QYq,W.SEEK_COMPLETE=this.NU9,W.SEEK_TO=this.vKN,W.onVideoProgress=this.w1U,W.onLoadedMetadata=this.eV9,W.onAutoplayBlocked=this.fz2,W.onPlaybackPauseAtStart=this.xE9,W.playbackready=this.Me9,W.statechange=this.Z9,W.newelementrequired=this.OD,W.heartbeatparams=this.pGQ,W.videoelementevent=this.aD9,W.drmoutputrestricted=this.mE9,W.signatureexpired=this.BU2,W.nonfatalerror=this.uDY,W.reloadplayer= this.baU,W);this.BZ=new g.Tx(this);g.Z(this,this.BZ);this.ji=new pC(this.Y.ZH().C.QD($wP));g.Z(this,this.ji);this.Kv=this.EB=-1;this.Ur=new g.rj(this.template.resize,16,this.template);g.Z(this,this.Ur);this.tv=new Tvc(this.E9,this.Y,this.Nw(),this);this.cQ=new PV(this);g.Z(this,this.cQ);this.MI=new ez(this);g.Z(this,this.MI);l$O(this.Y.C.c);this.events.K(this.E9,g.AD("appapi"),this.TAQ);this.events.K(this.E9,g.Z5("appapi"),this.s66);this.events.K(this.E9,g.AD("appprogressboundary"),this.HaY);this.events.K(this.E9, g.Z5("applooprange"),this.RZ);this.events.K(this.E9,"presentingplayerstatechange",this.b6);this.events.K(this.E9,"resize",this.zi2);this.template.GN(FO(document,S));this.events.K(this.E9,"offlineslatestatechange",this.gPY);this.events.K(this.E9,"sabrCaptionsTrackChanged",this.p12);this.events.K(this.E9,"sabrCaptionsBufferedRangesUpdated",this.Yy2);this.l$.W.J().kB&&Xi(this.l$,"offline");this.Y.hX&&g.Fi("ux",g.U9);S=g.Db(this.Y.experiments,"html5_defer_fetch_att_ms");this.Ok=new g.rj(this.IrN,S,this); g.Z(this,this.Ok);this.CP().LP()&&(g.PX()&&this.CP().S1.push("mdx"),CJG(this));this.Pv.tick("fs");cRj(this);this.Y.hX&&Xi(this.l$,"ux",!0);g.f9(this.l$.W.J())&&Xi(this.l$,"embed");this.T("web_player_sentinel_is_uniplayer")||g.Ue(new g.uc("Player experiment flags missing","web_player_sentinel_is_uniplayer"));S=this.T("web_player_sentinel_yt_experiments_sync");W=g.Qi("web_player_sentinel_yt_experiments_sync");S!==W&&g.Ue(new g.uc("b/195699950",{yt:S,player:W}));this.Ps=D4G(this);if(S=g.Db(this.Y.experiments, "html5_block_pip_safari_delay"))this.l3=new g.rj(this.kD,S,this),g.Z(this,this.l3);var B;m=Uw((B=m==null?void 0:m.trustedEchoWorkerUrl)!=null?B:null);B=this.Y.ZH().C.QD(wKP);S=this.Y.ZH().C.QD(S36);W=this.Y.ZH().C.QD(WPK);a=this.Y.ZH().C.QD(mfD);m&&B>0&&S>0&&W>0&&a>0&&(this.FO=new nC(m,function(E,y){J.Nw().iY(E,y)},W,S,a,B),g.Z(this,this.FO),ARQ(this.FO)); Ik=this.Y.lr;this.E9.publish("applicationInitialized")}; D4G=function(S){function W(m){m.stack&&m.stack.indexOf("player")!==-1&&S.S9().LQ(m)} LU.subscribe("handleError",W);So.push(W);return function(){LU.unsubscribe("handleError",W);var m=So.indexOf(W);m!==-1&&So.splice(m,1)}}; oUP=function(S){var W=new g.a1(S.Y,S.VR);S.E9.publish("initialvideodatacreated",W);return uo(S,1,W,!1)}; rRG=function(S){var W=S.Nw();W.setPlaybackRate(S.Y.j?1:axP(S,Number(g.dU("yt-player-playback-rate"))||1));W.XV(S.cz,S);W.EG()}; Nv6=function(S){var W="",m="",a=U4c(S),J=Iv(a,"cb");J&&/^[\w-]+$/.test(J)&&(m=J);a.indexOf("//")===0&&(a=S.Y.protocol+":"+a);J=a.lastIndexOf("/base.js");J!==-1&&(W=a.substring(0,J+1));if(a=Error().stack)if(a=a.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))a=a[1],a.includes(W)||g.Ue(Error("Player module URL mismatch: "+(a+" vs "+W+".")));W=new D7P(S.E9,W,m);m={};w8K(W,(m.destroyed=function(){S.onApiChange()},m)); return W}; ZSj=function(S){if(S.Y.storeUserVolume){S=g.dU("yt-player-volume")||{};var W=S.volume;S={volume:isNaN(W)?100:g.Su(Math.floor(W),0,100),muted:!!S.muted}}else S={volume:100,muted:S.Y.mute};return S}; gH=function(S){var W=S.Y.experiments.ZH().C.QD(IH);var m=S.Y.deviceIsAudioOnly;W=W===void 0?!1:W;m=m?W?new g.L3(g.HI("AUDIO")):new g.kP(g.HI("AUDIO")):RH.pop()||(W?new g.L3(g.HI("VIDEO")):new g.kP(g.HI("VIDEO")));S.mediaElement=m;g.Z(S,S.mediaElement);S.S9().setMediaElement(S.mediaElement);try{S.Y.Cn?(S.ue&&S.events.TC(S.ue),S.ue=S.events.K(S.mediaElement,"volumechange",S.TcX)):(S.mediaElement.BJ(S.hE.muted),S.mediaElement.setVolume(S.hE.volume/100))}catch(J){S.QY("html5.missingapi",2,"UNSUPPORTED_DEVICE", "setvolume.1;emsg."+(J&&typeof J==="object"&&"message"in J&&typeof J.message==="string"&&J.message.replace(/[;:,]/g,"_")));return}g.eY(S.BZ);JlK(S);m=S.template;W=S.mediaElement.yc();m.bP=W;m.H_=!1;m.bP.parentNode||LX(m.o4,m.bP,0);m.Go=new g.wY(0,0,0,0);I$P(m);Fe(m);W=m.bP;g.Bn(W,"video-stream");g.Bn(W,g.Lw.MAIN_VIDEO);var a=m.app.J();a.Mp&&W.setAttribute("data-no-fullscreen","true");a.T("html5_local_playsinline")?"playsInline"in E1()&&(W.playsInline=!0):a.N0&&(W.setAttribute("webkit-playsinline", ""),W.setAttribute("playsinline",""));a.Xv&&m.bP&&m.K(W,"click",W.play,W);try{S.mediaElement.activate()}catch(J){S.QY("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(J&&typeof J==="object"&&"message"in J&&typeof J.message==="string"&&J.message.replace(/[;:,]/g,"_")))}}; ExG=function(S){if(!B8P(S)){var W=S.Nw().fn();W&&(W=W.Pd(),W instanceof Promise&&W.catch(function(){})); Od(S,lV(S.getPlayerStateObject()))}}; JlK=function(S){var W=S.mediaElement;Gx()?S.BZ.K(W,"webkitpresentationmodechanged",S.Ri9):window.document.pictureInPictureEnabled&&(S.BZ.K(W,"enterpictureinpicture",function(){S.lL(!0)}),S.BZ.K(W,"leavepictureinpicture",function(){S.lL(!1)})); wu&&(S.BZ.K(W,"webkitbeginfullscreen",function(){S.Gz(3)}),S.BZ.K(W,"webkitendfullscreen",function(){S.Gz(0)}))}; g.jj=function(S,W){return S.rA.YK(W)||S.rA.Z}; X5=function(S,W){return S.T("web_player_misc_bugfix_b")?S.rA.YK(W)||S.rA.Z:S.rA.YK(W)}; g.zAX=function(S,W,m,a){var J=S.Pv;W===2&&(J=new id6(S.Y));return new g.NQ(S.Y,W,J,S.template,function(B,E,y){S.E9.publish(B,E,y)},function(){return S.E9.getVisibilityState()},S.visibility,S,S.Av,m,a)}; uo=function(S,W,m,a,J){S=g.zAX(S,W,m,J);S=new g.r_(S);a&&S.EG();return S}; Q7=function(S,W){return S.BD(W)?S.Nw():W}; Xe=function(S,W){var m=S.S9();return W===S.Nw()&&S.BD(W)&&S.BD(m)?m:W}; ylG=function(S){if(!v5(S)){var W=l_(S.l$);W&&!W.created&&SWl(S.l$)&&W.create()}}; Y3K=function(S){var W=S.getVideoData(),m=S.l$;YWK(m)||m.jR();!RV&&QT(m)&&Vbl(m);Xi(m,"embed");Xi(m,"kids");Xi(m,"remote");Xi(m,"miniplayer");Xi(m,"offline");Xi(m,"unplugged");Xi(m,"ypc",!1,!0);Xi(m,"webgl",!1,!0);GFK(m)||(Xi(m,"captions",!0),Xi(m,"endscreen"),m.xz(),Xi(m,"creatorendscreen",!0));m.GD();m.W.publish("modulesCreated");S.E9.publish("videoready",W)}; H5=function(S){S=S.CP();S.LP();return Cp(S)}; cRj=function(S){S.WK();var W=S.VR;gH(S);S.events.K(window,"resize",S.FIQ);var m=S.CP();S.E9.ZD("onVolumeChange",S.hE);if(W&&fuX(W)){var a=ay(S.Y);a&&!S.nk&&(W.fetch=0);var J=g.f9(S.Y);J&&!S.nk&&(W.fetch=0);lo(S,W);g.f9(S.Y)&&S.Pv.tick("ep_pr_s");if(!a||S.nk)if(J&&!S.nk)GvO(S);else if(!m.LP())S.playlist.onReady(function(){M6(S)})}S.jO(S.Nw(),!1,!0); g.C(S.Nw().getPlayerState(),128)||(W=JZ7(!S.Y.deviceIsAudioOnly),W==="fmt.noneavailable"?S.QY("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):W==="html5.missingapi"?S.QY(W,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):m&&m.LP()&&H5(S)&&(S.Y.pJ||S.Y.RU)?Ud(S):m.GA?S.E9.mutedAutoplay({durationMode:m.mutedAutoplayDurationMode}):g.dU("yt-player-playback-on-reload")?(g.qd("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!S.Y.Xn}),g.i7("yt-player-playback-on-reload",!1),Ud(S)): TJ(S.Y)||KPP(S),g.EV(S.Y)||sZ(S.Y)==="MWEB"?(g.cX(g.wU(),function(){LC(S)}),g.cX(g.wU(),function(){GoQ()})):(LC(S),GoQ()))}; LC=function(S){if(!S.T("use_rta_for_player"))if(S.T("fetch_att_independently"))g.Cu(S.Ok);else{var W=S.getVideoData().botguardData;W&&g.QU(W,S.Y,S.getVideoData().Y2||"")}}; KPP=function(S){S.E9.publish("initializingmode");S.AN(2);Xi(S.l$,"remote");Xi(S.l$,"miniplayer")}; Ud=function(S){var W=S.Nw();if(g.C(W.getPlayerState(),128))return!1;W=W.getVideoData();H5(S)&&S.Y.RU&&(RH.length&&S.JM?(RA(S,{muted:!1,volume:S.hE.volume},!1),ej(S,!1)):RH.length||S.hE.muted||(RA(S,{muted:!0,volume:S.hE.volume},!1),ej(S,!0)));H5(S)&&g.f9(S.Y)&&W.mutedAutoplay&&(RA(S,{muted:!0,volume:S.hE.volume},!1),ej(S,!0));W.ZP&&RA(S,{muted:!0,volume:S.hE.volume},!1);T8l(S,1,W,!1);var m=S.Nw();S.E9.publish("initializingmode");S.jO(m);S.AN(3);var a;if(!(a=!S.Y.Ul)){if(a=S.FD){a=S.FD;var J=S.mediaElement; a=!!J&&J===a.mediaElement}a=a&&S.K7}a&&(S.AE(),gH(S),m.setMediaElement(S.mediaElement));m.Ju();if(g.C(m.getPlayerState(),128))return!1;W.Mi||Od(S,3);return S.K7=!0}; v5=function(S){S=Pf(S.l$);return!!S&&S.loaded}; q3_=function(S,W){if(!S.Xz)return!1;var m=S.Xz.startTimeMs*.001-1,a=S.Xz.endTimeMs*.001;S.Xz.type==="repeatChapter"&&a--;return Math.abs(W-m)<=1E-6||Math.abs(W-a)<=1E-6||W>=m&&W<=a}; pN6=function(S){var W=S.S9();if(S.T("html5_disable_loop_range_for_shorts_ads")&&W.getVideoData().isAd()?0:Fh(W.getVideoData())&&!W.z8())W=x9(S)*1E3-S.getVideoData().Qe,S.T("html5_gapless_new_slr")?(S=S.MI,io(S.app,"gaplessshortslooprange"),W=new g.hD(0,W,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(S=S.app.S9())&&S.addCueRange(W)):S.setLoopRange({startTimeMs:0,endTimeMs:W,type:"shortsLoop"})}; FP_=function(S){var W=S.Nw();if(!(g.C(W.getPlayerState(),64)&&S.CP().isLivePlayback&&S.Xz.startTimeMs<5E3)){if(S.Xz.type==="repeatChapter"){var m,a=(m=z$D(S.GV()))==null?void 0:m.VB(),J;m=(J=S.getVideoData())==null?void 0:J.qd;a instanceof g.Z7&&m&&(J=m[Eh(m,S.Xz.startTimeMs)],a.renderChapterSeekingAnimation(0,J.title));isNaN(Number(S.Xz.loopCount))?S.Xz.loopCount=0:S.Xz.loopCount++;S.Xz.loopCount===1&&S.E9.f_("innertubeCommand",S.getVideoData().yL)}a={Jw:"application_loopRangeStart"};if(S.Xz.type=== "clips"||S.Xz.type==="shortsLoop")a.seekSource=58;W.seekTo(S.Xz.startTimeMs*.001,a)}}; axP=function(S,W){var m=S.E9.getAvailablePlaybackRates();W=Number(W.toFixed(2));S=m[0];m=m[m.length-1];W<=S?W=S:W>=m?W=m:(S=Math.floor(W*100+.001)%5,W=S===0?W:Math.floor((W-S*.01)*100+.001)/100);return W}; x9=function(S,W){W=g.jj(S,{playerType:W});W=Q7(S,W);return dH(S,W.ao(),W)}; dH=function(S,W,m){if(S.BD(m)&&(m=m.getVideoData(),!IA(S))){S=S.tv;for(var a=g.R(S.N),J=a.next();!J.done;J=a.next())if(J=J.value,m.VP===J.VP){W+=J.Aw/1E3;break}a=W;S=g.R(S.N);for(J=S.next();!J.done;J=S.next()){J=J.value;if(m.VP===J.VP)break;var B=J.Aw/1E3;if(B1&&(J=!1);S.G_&&J===W||(a=a.lock(J?"portrait":"landscape"),a!=null&&a.catch(function(){}),S.G_=!0)}else S.G_&&(S.G_=!1,a.unlock())}; hC=function(S,W,m){S.E9.publish(W,m);var a=g.pt(S.Y)||g.NT(S.Y)||g.IL(S.Y);if(m&&a){switch(W){case "cuerangemarkersupdated":var J="onCueRangeMarkersUpdated";break;case "cuerangesadded":J="onCueRangesAdded";break;case "cuerangesremoved":J="onCueRangesRemoved"}J&&S.E9.f_(J,m.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}}))}}; tC=function(S,W,m,a,J,B){m=m===void 0?!0:m;var E=g.jj(S,{playerType:J});if((E.getPlayerType()!==2||S.BD(E))&&!g.fp(E.getVideoData())){var y=S.rA.qp;y?y.seekTo(W,{YC:!m,GG:a,Jw:"application",seekSource:B}):(E&&E===S.Nw()&&S.Xz&&!q3_(S,W)&&S.setLoopRange(null),S.seekTo(W,m,a,J,B,"_request"))}}; Uf_=function(S,W,m,a){m&&(S.AE(),gH(S));m=S.S9();m.K5(W);var J=S.getVideoData(),B={};B.video_id=J.videoId;B.adformat=J.adFormat;J.isLivePlayback||(B.start=m.getCurrentTime(),B.resume="1");J.isLivePlayback&&vB(J)&&g.TS(S.Y)&&(B.live_utc_start=m.A1(),B.resume="1");J.vn&&(B.vvt=J.vn);J.V&&(B.vss_credentials_token=J.V,B.vss_credentials_token_type=J.Tf);J.oauthToken&&(B.oauth_token=J.oauthToken);B.autoplay=1;B.reload_count=J.zN+1;B.reload_reason=W;J.SY&&(B.unplugged_partner_opt_out=J.SY);J.mQ&&(B.ypc_is_premiere_trailer= J.mQ);J.playerParams&&(B.player_params=J.playerParams);J.N2&&(B.itct=J.N2);S.loadVideoByPlayerVars(B,void 0,!0,void 0,void 0,a);W==="signature"&&S.fP&&ylG(S)}; LP_=function(S,W){S.CP().autonavState=W;g.i7("yt-player-autonavstate",W);S.E9.publish("autonavchange",W)}; RAD=function(S){var W=S.getVideoData().Y5,m=S.Y.d2,a=S.isInline()&&!S.getVideoData().D4,J=S.mediaElement;W||m||a?J.B3():(J.a8(),RA(S,S.hE))}; P5=function(S){(S=l_(S.GV()))&&S.created&&S.destroy()}; IA=function(S){return S.getVideoData().enableServerStitchedDai&&!!S.fP}; eA_=function(S,W){W.bounds=S.getBoundingClientRect();for(var m=g.R(["display","opacity","visibility","zIndex"]),a=m.next();!a.done;a=m.next())a=a.value,W[a]=Br(S,a);W.hidden=!!S.hidden}; U4c=function(S){var W=S.webPlayerContextConfig.trustedJsUrl;return W?Uw(W).toString():S.webPlayerContextConfig.jsUrl}; xfD=function(S,W){var m=S.YK({playerType:1});if(m){if(m.getVideoData().clientPlaybackNonce===W)return m;if((S=S.cQ.C)&&S.getVideoData().clientPlaybackNonce===W)return S}return null}; bSD=function(S){Wh(S,function(){var W=this;return function a(){var J,B,E,y;return F9(a,function(Y){switch(Y.C){case 1:return g.yH(Y,2),W.Pv.tick("wasm_s"),J=QT(W.l$)?function(G){return wB(nbc(W.l$),function(K){return K.vbX(G)})}:void 0,g.EQ(Y,4),B=doj(W.webPlayerContextConfig.wasmModuleUrl,J,W.Dd.bind(W)),E=nn,aZ(Y,mV(B),6); case 6:y=E(Y.N);W.Pv.tick(y.C?"wasm_fa":"wasm_fw");BZl(W.Y,y);g.Yp(Y,2);break;case 4:g.Gg(Y),W.Pv.tick("wasm_ferr");case 2:g.Kn(Y),g.Tg(Y,0)}})}()})}; i4O=function(S){return S.name==="TypeError"&&S.stack.includes("/s/player/")&&A$()<=105}; dfX=function(S){return S.isTimeout?"NO_BID":"ERR_BID"}; IxX=function(){var S=null;yXQ().then(function(W){return S=W},function(W){return S=dfX(W)}); return S}; PuK=function(){var S=fg(1E3,"NO_BID");return g.im(Fbj([yXQ(),S]).QB(dfX),function(){S.cancel()})}; AC=function(S){return S.o6?g.hO().QD(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; ZC=function(S){this.player=S;this.B=this.C=1}; $fG=function(S,W,m,a,J,B){W.client||(W.client={});S.player.J().T("h5_remove_url_for_get_ad_break")||(W.client.originalUrl=m);var E=Gc(m),y=g.vj(m)?!1:!0;(E||y)&&typeof Intl!=="undefined"&&(W.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);y=g.vj(m)?!1:!0;if(E||y||a!==""){var Y={};m=BL(Fs(a)).split("&");var G=new Map;m.forEach(function(K){K=K.split("=");K.length>1&&G.set(K[0].toString(),decodeURIComponent(K[1].toString()))}); G.has("bid")&&(Y.bid=G.get("bid"));Y.params=[];fxl.forEach(function(K){G.has(K)&&(K={key:K,value:G.get(K)},Y.params.push(K))}); kvQ(S,Y);W.adSignalsInfo=Y}W.client.unpluggedAppInfo||(W.client.unpluggedAppInfo={});W.client.unpluggedAppInfo.enableFilterMode=!1;m=J.C.cosver;m!=null&&m!=="cosver"&&(W.client.osVersion=m);m=J.C.cplatform;m!=null&&m!=="cplatform"&&m!==""&&(W.client.platform=m);m=J.C.cmodel;m!=null&&m!=="cmodel"&&(W.client.deviceModel=m);m=J.C.cplayer;m!=null&&m!=="cplayer"&&(W.client.playerType=m);m=J.C.cbrand;m!=null&&m!=="cbrand"&&(W.client.deviceMake=m);W.user||(W.user={});W.user.lockedSafetyMode=!1;g.ZI(J)&& QID(W,B,S.player.getPlayerState(1));if(S=J.livingRoomPoTokenId)W.client.tvAppInfo=Object.assign({},W.client.tvAppInfo,{livingRoomPoTokenId:S})}; Al_=function(S,W){var m=!1;if(W==="")return m;W.split(",").forEach(function(a){var J={},B={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},E="ACTIVE";a[0]==="!"&&(a=a.substring(1),E="INACTIVE");a=a.split("-");a.length<3||(a[0]in hAP&&(B.clientName=hAP[a[0]]),a[1]in tQG&&(B.platform=tQG[a[1]]),B.applicationState=E,B.clientVersion=a.length>2?a[2]:"",J.remoteClient=B,S.remoteContexts?S.remoteContexts.push(J):S.remoteContexts=[J],m=!0)}); return m}; N8_=function(S){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Z4c))return!1;S=S.split(RegExp("[:&]"));var W=Z4c.FLAG_AUTO_CAPTIONS_DEFAULT_ON,m="f"+(1+Math.floor(W/31)).toString();W=1<=2?E[1]:"";var y=oxl.test(W),Y=rlX.exec(W);Y=Y!=null&&Y.length>=2?Y[1]:"";var G=CuP.exec(W);G=G!=null&&G.length>=2&&!Number.isNaN(Number(G[1]))?Number(G[1]):1;var K=clP.exec(W);K=K!=null&&K.length>=2?K[1]:"0";var T=C9(S.player.J().dE),p=S.player.getVideoData(1),q=g.DQ(p.N2,!0),F="BISCOTTI_ID"in m?m.BISCOTTI_ID:"";$fG(S,q,W,F.toString(),S.player.J(), p);p={splay:!1,lactMilliseconds:m.LACT.toString(),playerHeightPixels:Math.trunc(m.P_H),playerWidthPixels:Math.trunc(m.P_W),vis:Math.trunc(m.VIS),signatureTimestamp:20438,autonavState:AC(S.player.J())};a&&(a={},Al_(a,m.YT_REMOTE)&&(p.mdxContext=a));if(a=DfD.includes(T)?void 0:g.k0("PREF")){for(var O=a.split(RegExp("[:&]")),X=0,l=O.length;X1&&M[1].toUpperCase()==="TRUE"){q.user.lockedSafetyMode=!0;break}}p.autoCaptionsDefaultOn= N8_(a)}W=wNX.exec(W);(W=W!=null&&W.length>=2?W[1]:"")&&Y&&(q.user.credentialTransferTokens=[{token:W,scope:"VIDEO"}]);W={contentPlaybackContext:p};E={adBlock:Math.trunc(m.AD_BLOCK),params:E,breakIndex:G,breakPositionMs:K,clientPlaybackNonce:m.CPN,topLevelDomain:T,isProxyAdTagRequest:y,context:q,adSignalsInfoString:BL(Fs(F.toString())),overridePlaybackContext:W};J!==void 0&&(E.cueProcessedMs=Math.round(J).toString());Y&&(E.videoId=Y);m.LIVE_TARGETING_CONTEXT&&(E.liveTargetingParams=m.LIVE_TARGETING_CONTEXT); m.AD_BREAK_LENGTH&&(E.breakLengthMs=Math.trunc(m.AD_BREAK_LENGTH*1E3).toString());B&&(E.driftFromHeadMs=B.toString());E.currentMediaTimeMs=Math.round(S.player.getCurrentTime(1)*1E3);(S=S.player.getGetAdBreakContext())&&(E.getAdBreakContext=S);return E}; WSK=function(){ZC.apply(this,arguments)}; mqX=function(S,W,m,a,J){var B=m.vW;var E=m.V2;var y=S.player.J().Qd,Y=0;m.cueProcessedMs&&E&&!B&&(m=E.end-E.start,m>0&&(Y=Math.floor(m/1E3)));var G={AD_BLOCK:J,AD_BREAK_LENGTH:B?B.Gk:Y,AUTONAV_STATE:AC(S.player.J()),CA_TYPE:"image",CPN:S.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:S.player.py()*1E3,LACT:sA(),LIVE_INDEX:B?S.B++: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:S.player.getVisibilityState(), P_H:S.player.k6().bO().height,P_W:S.player.k6().bO().width,YT_REMOTE:y?y.join(","):""},K=p0(qi);Object.keys(K).forEach(function(T){K[T]!=null&&(G[T.toUpperCase()]=K[T].toString())}); a!==""&&(G.BISCOTTI_ID=a);a={};Tc(W)&&(a.sts="20438",(S=S.player.J().forcedExperiments)&&(a.forced_experiments=S));return Y0(g.Lu(W,G),a)}; aSQ=function(S,W){var m=S.player.J(),a,J=(a=S.player.getVideoData(1))==null?void 0:a.oauthToken;return g.Fm(m,J).then(function(B){if(B&&K0()){var E=bt();og(E,B)}return g.Pz(S.player.MP(E),W,"/youtubei/v1/player/ad_break").then(function(y){return y})})}; J47=function(S){this.n_=S}; BwK=function(S){this.W=S}; ESP=function(S){this.n_=S}; y4X=function(S){g.A.call(this);this.C=S;this.ow=zb7(this)}; zb7=function(S){var W=new TlG(S.C.Ya);g.Z(S,W);S=[new J47(S.C.n_),new BwK(S.C.W),new ESP(S.C.n_),new Vs(S.C.bV,S.C.VQ),new sJ,new OJ(S.C.Iy,S.C.pW,S.C.n_),new nM,new F2(S.C.pW)];S=g.R(S);for(var m=S.next();!m.done;m=S.next())qA6(W,m.value);S=g.R(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(m=S.next();!m.done;m=S.next())ug(W,m.value,function(){}); return W}; YFO=function(S,W){this.Iy=S;this.AX=W}; N6=function(S){var W=S.JX,m=S.AX;S=S.ME;var a={Zu_:new YFO(W.get(),m),AX:m};return{Jv:new Ad(m,S,W),context:a}}; bo=function(S,W,m,a,J){g.A.call(this);this.N=W;this.tX=m;this.JX=a;this.h1=J;this.listeners=[];var B=new L5(this);g.Z(this,B);B.K(S,"internalAbandon",this.y1n);this.addOnDisposeCallback(function(){g.eY(B)})}; oA=function(S){this.W=S;this.adVideoId=this.C=this.videoId=this.adCpn=this.contentCpn=null;this.X=!0;this.N=this.B=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; G_7=function(S){S.contentCpn=null;S.adCpn=null;S.videoId=null;S.adVideoId=null;S.adFormat=null;S.j="AD_PLACEMENT_KIND_UNKNOWN";S.actionType="unknown_type";S.B=!1;S.N=!1}; KS6=function(S,W){S=g.R(W);for(W=S.next();!W.done;W=S.next())if((W=W.value.renderer)&&(W.instreamVideoAdRenderer||W.linearAdSequenceRenderer||W.sandwichedLinearAdRenderer||W.instreamSurveyAdRenderer)){UY("ad_i");g.LG({isMonetized:!0});break}}; TwP=function(S){var W;(W=S.W.getVideoData(1))!=null&&W.S&&(S.N=!1,W={},S.C&&S.videoId&&(W.cttAuthInfo={token:S.C,videoId:S.videoId}),RP("video_to_ad",W))}; ZY=function(S){S.N=!1;var W={};S.C&&S.videoId&&(W.cttAuthInfo={token:S.C,videoId:S.videoId});RP("ad_to_video",W);qFP(S)}; qFP=function(S){if(S.B)if(S.j==="AD_PLACEMENT_KIND_START"&&S.actionType==="video_to_ad")Hz("video_to_ad");else{var W={adBreakType:LP(S.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:S.videoStreamType};S.actionType==="ad_to_video"?(S.contentCpn&&(W.targetCpn=S.contentCpn),S.videoId&&(W.targetVideoId=S.videoId)):(S.adCpn&&(W.targetCpn=S.adCpn),S.adVideoId&&(W.targetVideoId=S.adVideoId));S.adFormat&&(W.adType=S.adFormat);S.contentCpn&& (W.clientPlaybackNonce=S.contentCpn);S.videoId&&(W.videoId=S.videoId);S.adCpn&&(W.adClientPlaybackNonce=S.adCpn);S.adVideoId&&(W.adVideoId=S.adVideoId);g.LG(W,S.actionType);S.W.J().experiments.mU("html5_ads_csi_qoes")&&(W=S.W.Ro(S.actionType==="ad_to_video"?1:2),W=(0,g.X1)()-1E3*W,xm("qoes",W,S.actionType))}}; rH=function(S){g.A.call(this);this.W=S;this.C=new Map;this.N=new L5(this);g.Z(this,this.N);this.N.K(this.W,g.AD("ad"),this.onCueRangeEnter,this);this.N.K(this.W,g.Z5("ad"),this.onCueRangeExit,this)}; p7X=function(S,W,m,a,J,B,E){g.hD.call(this,W,m,{id:S,namespace:"ad",priority:J,visible:a,associatedClipId:B,markerPositionMs:E})}; CC=function(S){this.W=S}; FSX=function(S,W){S.W.cueVideoByPlayerVars(W,2)}; c5=function(S){this.W=S}; DC=function(S){this.W=S}; i1=function(S,W){return S.W.J().T(W)}; VWc=function(S){return S.W.J().T("substitute_ad_cpn_macro_in_ssdai")}; E8=function(S){var W,m,a;return((W=S.W.getVideoData(1).getPlayerResponse())==null?void 0:(m=W.playerConfig)==null?void 0:(a=m.daiConfig)==null?void 0:a.enableServerStitchedDai)||!1}; oB7=function(S){return S.W.J().T("html5_enable_vod_slar_with_notify_pacf")}; nS7=function(S){return S.W.J().T("html5_recognize_predict_start_cue_point")}; tf=function(S){return S.W.J().experiments.mU("enable_desktop_player_underlay")}; sMX=function(S){return S.W.J().experiments.mU("html5_load_empty_player_in_media_break_sub_lra")}; de=function(S,W){return S.W.J().T("html5_cue_video_for_preroll")&&(W==null?void 0:W.kind)==="AD_PLACEMENT_KIND_START"?!1:S.W.J().experiments.mU("html5_load_ads_instead_of_cue")}; Ie=function(S){return S.W.J().experiments.mU("html5_preload_ads")}; uHQ=function(S){return S.W.J().experiments.mU("should_ignore_cuepoints_during_lifa_preroll")}; Pk=function(S){return S.W.J().experiments.mU("enable_ads_control_flow_deterministic_id_generation")}; gSP=function(S){return S.W.J().experiments.mU("enable_desktop_discovery_video_abandon_pings")||JK(S.W.J())}; OAP=function(S){return S.W.J().experiments.mU("enable_progres_commands_lr_feeds")}; jMl=function(S){return S.W.J().experiments.mU("enable_progress_commands_lr_shorts")}; zB=function(S){return S.W.J().experiments.mU("html5_cuepoint_identifier_logging")}; We6=function(S){S=S.W.getVideoData(1);return!!S&&S.T("html5_preload_first_vod_video_ad")&&!S.isDaiEnabled()&&!S.isLivePlayback}; QMO=function(S){return S.W.J().experiments.mU("html5_ssdai_enable_media_end_cue_range")}; X7D=function(S){switch(S){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}}; vS6=function(){g.au.call(this);var S=this;this.C={};this.addOnDisposeCallback(function(){for(var W=g.R(Object.keys(S.C)),m=W.next();!m.done;m=W.next())delete S.C[m.value]})}; wH=function(){if(HA6===null){HA6=new vS6;es(aD).N="b";var S=es(aD),W=CV(S)=="h"||CV(S)=="b",m=!(u3(),!1);W&&m&&(S.X=!0,S.V=new d$D)}return HA6}; lSG=function(S,W,m){S.C[W]=m}; MWP=function(S){switch(S){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}}; SH=function(S,W,m){this.tX=S;this.W=W;this.AX=m;this.N=new Set;this.C=new Map;wH().subscribe("adactiveviewmeasurable",this.aI,this);wH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.II,this);wH().subscribe("adviewableimpression",this.y0,this);wH().subscribe("adaudioaudible",this.j2,this);wH().subscribe("adaudiomeasurable",this.qt,this)}; mh=function(S,W,m){var a=m.pu,J=m.qT,B=m.listener;m=m.rJ;if(S.C.has(W))GI("Unexpected registration of layout in LidarApi");else{if(m){if(S.N.has(m))return;S.N.add(m)}S.C.set(W,B);tk(u3().PU,"fmd",1);Nsj(es(aD),a);lSG(wH(),W,{Nh:function(){if(!J)return{};var E=S.W.getPresentingPlayerType(!0),y;return(y=S.W.getVideoData(E))!=null&&y.isAd()?{currentTime:S.tX.get().getCurrentTimeSec(E,!1,void 0),duration:J,isPlaying:Wu(S.tX.get(),E).isPlaying(),isVpaid:!1,isYouTube:!0,volume:S.tX.get().isMuted()?0:S.tX.get().getVolume()/ 100}:{}}})}}; a0=function(S,W){S.C.has(W)?(S.C.delete(W),delete wH().C[W]):GI("Unexpected unregistration of layout in LidarApi")}; UqG=function(S,W){if(S.W.isLifaAdPlaying()){var m=S.W.eU(!0,!0);S.q1(W,m.width*.5*1.1,m.height*.25*1.1,m.width*.5*.9,m.height*.5*.9)}}; eb7=function(S,W){var m={};LS6(S,m,W);Rbc(m);m.LACT=Jh(function(){return sA().toString()}); m.VIS=Jh(function(){return S.getVisibilityState().toString()}); m.SDKV="h.3.0";m.VOL=Jh(function(){return S.isMuted()?"0":Math.round(S.getVolume()).toString()}); m.VED="";return m}; xqG=function(S,W){var m={};if(W||!S||!S.kind)return m;if(S.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||S.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!S.adTimeOffset||!S.adTimeOffset.offsetStartMilliseconds)return g.lR(Error("malformed AdPlacementConfig")),m;m.MIDROLL_POS=Jh(A8(Math.round(bz(S.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else m.MIDROLL_POS=Jh(A8("0"));return m}; Jh=function(S){return{toString:function(){return S()}}}; iAP=function(S,W,m){function a(y,Y){(Y=m[Y])&&(B[y]=Y)} function J(y,Y){(Y=m[Y])&&(B[y]=E(Y))} if(!m||g.UC(m))return S;var B=Object.assign({},S),E=W?encodeURIComponent:function(y){return y}; J("DV_VIEWABILITY","doubleVerifyViewability");J("IAS_VIEWABILITY","integralAdsViewability");J("MOAT_INIT","moatInit");J("MOAT_VIEWABILITY","moatViewability");a("GOOGLE_VIEWABILITY","googleViewability");a("VIEWABILITY","viewability");return B}; LS6=function(S,W,m){W.CPN=Jh(function(){var a;(a=S.getVideoData(1))?a=a.clientPlaybackNonce:(g.Ue(Error("Video data is null.")),a=null);return a}); W.AD_MT=Jh(function(){if(m!=null)var a=m;else if(S.J().T("enable_h5_shorts_ad_fill_ad_mt_macro")||S.J().T("enable_desktop_discovery_pings_ad_mt_macro")||JK(S.J())){var J=S.getPresentingPlayerType(!0),B;a=((B=S.getVideoData(J))==null?0:B.isAd())?S.getCurrentTime(J,!1):0}else a=S.getCurrentTime(2,!1);return dq6(a)}); W.MT=Jh(function(){return dq6(S.getCurrentTime(1,!1))}); W.P_H=Jh(function(){return S.k6().bO().height.toString()}); W.P_W=Jh(function(){return S.k6().bO().width.toString()}); W.PV_H=Jh(function(){return S.k6().getVideoContentRect().height.toString()}); W.PV_W=Jh(function(){return S.k6().getVideoContentRect().width.toString()})}; dq6=function(S){return Math.round(Math.max(0,S*1E3)).toString()}; Rbc=function(S){S.CONN=Jh(A8("0"));S.WT=Jh(function(){return Date.now().toString()})}; ISX=function(){}; PkK=function(S,W,m,a,J){var B,E,y,Y,G,K,T,p,q,F,O,X,l;g.k(function(M){switch(M.C){case 1:B=!!W.scrubReferrer;E=g.Lu(W.baseUrl,iAP(m,B,a));y={};if(!W.headers){M.cn(2);break}Y=S.j();if(!Y.C){G=Y.getValue();M.cn(3);break}return g.P(M,Y.C,4);case 4:G=M.N;case 3:K=G;T=g.R(W.headers);for(p=T.next();!p.done;p=T.next())switch(q=p.value,q.headerType){case "VISITOR_ID":g.D4("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=g.D4("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.D4("EOM_VISITOR_DATA")&&(y["X-Goog-EOM-Visitor-Id"]= g.D4("EOM_VISITOR_DATA"));break;case "USER_AUTH":K&&(y.Authorization="Bearer "+K);break;case "PLUS_PAGE_ID":(F=S.X())&&(y["X-Goog-PageId"]=F);break;case "AUTH_USER":O=S.C();!K&&O&&(y["X-Goog-AuthUser"]=O);break;case "DATASYNC_ID":if(X=void 0,(X=S.B())==null?0:X.mU("enable_datasync_id_header_in_web_vss_pings"))l=S.N(),Gc(E)&&g.D4("LOGGED_IN")&&l&&(y["X-YouTube-DataSync-Id"]=l)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];case 2:g.Ir(E,void 0,B,Object.keys(y).length!== 0?y:void 0,"",!0,J),g.B9(M)}})}; fS6=function(S,W,m,a,J){this.j=S;this.X=W;this.C=m;this.N=a;this.B=J}; k_G=function(S,W){this.C=S;this.AX=W}; Bu=function(S,W,m,a,J,B){var E=E===void 0?new fS6(function(){var y=S.J(),Y=S.getVideoData(1);return g.Fm(y,Y?g.cB(Y):"")},function(){return S.J().pageId},function(){return S.J().Xn},function(){var y; return(y=S.J().datasyncId)!=null?y:""},function(){return S.J().experiments}):E; this.W=S;this.N=W;this.qw=m;this.JX=a;this.Jv=J;this.AX=B;this.j=E;this.Te=null;this.C=new Map;this.B=new k_G(E,this.AX)}; hbP=function(S,W,m,a,J){var B=nq(S.N.get(),m);B?(m=q8(S,$qO(B),B,void 0,void 0,a),W.hasOwnProperty("baseUrl")?S.j.send(W,m):S.B.send(W,m,{},J)):GI("Trying to ping from an unknown layout",void 0,void 0,{layoutId:m})}; OUl=function(S,W,m,a,J,B){a=a===void 0?[]:a;var E=nq(S.N.get(),W);if(E){var y=S.qw.get().Su(W,m),Y=q8(S,$qO(E),E,J,B);a.forEach(function(G,K){G.baseUrl&&(S.B.send(G.baseUrl,Y,y,G.attributionSrcMode),G.serializedAdPingMetadata&&S.Jv.C("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,E,new QPD(G,K),void 0,void 0,E.adLayoutLoggingData))})}else GI("Trying to track from an unknown layout.",void 0,void 0,{layoutId:W, trackingType:m})}; Eq=function(S,W){S.W.sendVideoStatsEngageEvent(W,void 0,2)}; re=function(S,W){g.qd("adsClientStateChange",W)}; tWP=function(S,W){S.C.has(W.XS())?GI("Trying to register an existing AdErrorInfoSupplier."):S.C.set(W.XS(),W)}; A4c=function(S,W){S.C.delete(W.XS())||GI("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; DY=function(S,W,m){typeof m==="string"?S.W.getVideoData(1).h8(W,m):S.W.getVideoData(1).iY(W,m)}; $qO=function(S){var W=Zb(S.clientMetadata,"metadata_type_ad_placement_config");S=Zb(S.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:W,zP:S}}; q8=function(S,W,m,a,J,B){var E=m?ZAl(S):{},y=m?NwP(S,m.layoutId):{},Y=bAK(S),G,K=J!=null?J:(G=Wt(S.JX.get(),2))==null?void 0:G.clientPlaybackNonce;J={};S=Object.assign({},eb7(S.W,a),xqG(W.adPlacementConfig,(m==null?void 0:m.renderingContent)!==void 0),y,E,Y,(J.FINAL=Jh(function(){return"1"}),J.AD_CPN=Jh(function(){return K||""}),J)); (m==null?void 0:m.renderingContent)!==void 0||(S.SLOT_POS=Jh(function(){return(W.zP||0).toString()})); m={};B=Object.assign({},S,B);S=g.R(Object.values(oSl));for(a=S.next();!a.done;a=S.next())a=a.value,E=B[a],E!=null&&E.toString()!=null&&(m[a]=E.toString());return m}; ZAl=function(S){var W={},m,a=(m=S.Te)==null?void 0:m.yB/1E3;a!=null&&(W.SURVEY_ELAPSED_MS=Jh(function(){return Math.round(a*1E3).toString()})); W.SURVEY_LOCAL_TIME_EPOCH_S=Jh(function(){return Math.round(Date.now()/1E3).toString()}); return W}; NwP=function(S,W){S=S.C.get(W);if(!S)return{};S=S.dV();if(!S)return{};W={};return W.YT_ERROR_CODE=S.a_.toString(),W.ERRORCODE=S.BM.toString(),W.ERROR_MSG=S.errorMessage,W}; bAK=function(S){var W={},m=S.W.getVideoData(1);W.ASR=Jh(function(){var a;return(a=m==null?void 0:m.wN)!=null?a:null}); W.EI=Jh(function(){var a;return(a=m==null?void 0:m.eventId)!=null?a:null}); return W}; Eb=function(S,W,m){g.A.call(this);this.W=S;this.HO=W;this.AX=m;this.listeners=[];this.lI=null;this.qb=new Map;W=new g.Tx(this);g.Z(this,W);W.K(S,"videodatachange",this.HC6);S.J().ZH().C.QD(a4)?W.K(S,"playbackChange",this.FQN):W.K(S,"serverstitchedvideochange",this.F8);this.jy=Wt(this)}; Wt=function(S,W){var m=S.W.getVideoData(W);return m?S.OY(m,W||S.W.getPresentingPlayerType(!0)):null}; r4X=function(S,W,m){var a=S.OY(W,m);S.jy=a;S.listeners.forEach(function(J){J.ph(a)})}; zY=function(S,W){g.A.call(this);this.W=S;this.JX=W;this.listeners=[];this.Et=[];this.Sz=function(){GI("Called 'doUnlockPreroll' before it's initialized.")}; W=new L5(this);var m=new g.Tx(this);g.Z(this,m);g.Z(this,W);W.K(S,"progresssync",this.sv6);W.K(S,"presentingplayerstatechange",this.oPD);W.K(S,"fullscreentoggled",this.onFullscreenToggled);W.K(S,"onVolumeChange",this.onVolumeChange);W.K(S,"minimized",this.Ia);W.K(S,"overlayvisibilitychange",this.Oq);W.K(S,"shortsadswipe",this.Eq);W.K(S,"resize",this.Qc);m.K(S,g.AD("appad"),this.n1)}; Ckc=function(S,W){S.Et=S.Et.filter(function(m){return m!==W})}; yh=function(S,W,m){return S.getCurrentTimeSec(W,m)}; Y7=function(S,W){var m;W=(m=S.JX.get().qb.get(W))!=null?m:null;if(W===null)return GI("Expected ad video start time on playback timeline"),0;S=S.W.getCurrentTime(2,!0);return S0){var B=W.end.toString();J.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)}); a.map(function(E){return g.n(E,uB)}).forEach(function(E){var y; (E=E==null?void 0:(y=E.slotEntryTrigger)==null?void 0:y.mediaTimeRangeTrigger)&&E.offsetEndMilliseconds==="-1"&&(E.offsetEndMilliseconds=B)})}return{r_:J, adSlots:a,Sh:!1,ssdaiAdsConfig:S.ssdaiAdsConfig}}; pF=function(S){g.A.call(this);this.W=S;this.listeners=[];this.C=new L5(this);g.Z(this,this.C);this.C.K(this.W,"aduxclicked",this.onAdUxClicked);this.C.K(this.W,"aduxmouseover",this.cN);this.C.K(this.W,"aduxmouseout",this.A0);this.C.K(this.W,"muteadaccepted",this.tDq)}; m0Q=function(S,W,m){W=g.MU(W,function(a){return new QxQ(a,m,a.id)}); S.W.f_("onAdUxUpdate",W)}; F8=function(S,W){S=g.R(S.listeners);for(var m=S.next();!m.done;m=S.next())W(m.value)}; Vh=function(S,W){this.N=S;this.B=W===void 0?!1:W;this.C={}}; aG6=function(S,W){var m=S.startSecs+S.Gk;m=m<=0?null:m;if(m===null)return null;switch(S.event){case "start":case "continue":case "stop":break;case "predictStart":if(W)break;return null;default:return null}W=Math.max(S.startSecs,0);return{Ld:new Qt(W,m),qVn:new YE(W,m-W,S.context,S.identifier,S.event,S.C)}}; JaG=function(){this.C=[]}; hfK=function(S,W,m){var a=g.K$(S.C,W);if(a>=0)return W;W=-a-1;return W>=S.C.length||S.C[W]>m?null:S.C[W]}; nF=function(S,W,m){g.A.call(this);this.W=S;this.AX=W;this.n_=m;this.listeners=[];this.j=!1;this.mE=[];this.C=null;this.X=new Vh(this,nS7(W.get()));this.B=new JaG;this.N=null}; BQP=function(S,W){S.mE.push(W);for(var m=!1,a=g.R(S.listeners),J=a.next();!J.done;J=a.next())m=J.value.mS(W)||m;S.j=m;zB(S.AX.get())&&DY(S.n_.get(),"onci","cpi."+W.identifier+";cpe."+W.event+";cps."+W.startSecs+";cbi."+m)}; zCP=function(S,W){re(S.n_.get(),{cuepointTrigger:{event:EhQ(W.event),cuepointId:W.identifier,totalCueDurationMs:W.Gk*1E3,playheadTimeMs:W.C,cueStartTimeMs:W.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:S.W.getVideoData(1).clientPlaybackNonce}})}; EhQ=function(S){switch(S){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 H$(S,"Unexpected cuepoint event")}}; sb=function(S){this.W=S}; u8=function(S){this.W=S}; yaP=function(S){switch(S){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:H$(S,"unknown transitionReason")}}; gL=function(){g.A.apply(this,arguments);this.d62=new Map}; YD_=function(S){this.W=S}; G0P=function(S,W,m,a,J){g.A.call(this);var B=this,E=l1(function(){return new Il(B.AX)}); g.Z(this,E);var y=l1(function(){return new fq(E)}); g.Z(this,y);var Y=l1(function(){return new FG}); g.Z(this,Y);var G=l1(function(){return new qC(S)}); g.Z(this,G);var K=l1(function(){return new kT(E,y,B.AX)}); g.Z(this,K);var T=l1(function(){return new ZU}); g.Z(this,T);this.BU=l1(function(){return new pF(W)}); g.Z(this,this.BU);this.sV=l1(function(){return new Uf(J)}); g.Z(this,this.sV);this.Oc=l1(function(){return new oA(W)}); g.Z(this,this.Oc);this.wA=l1(function(){return new rH(W)}); g.Z(this,this.wA);this.FE=l1(function(){return new CC(W)}); g.Z(this,this.FE);this.Ya=l1(function(){return new c5(W)}); g.Z(this,this.Ya);this.AX=l1(function(){return new DC(W)}); g.Z(this,this.AX);var p=l1(function(){return new qJ(a)}); g.Z(this,p);var q=l1(function(){return new wi(B.AX)}); g.Z(this,q);this.LC=l1(function(){return new sb(W)}); g.Z(this,this.LC);this.TT=l1(function(){return new eE}); g.Z(this,this.TT);this.JX=l1(function(){return new Eb(W,T,B.AX)}); g.Z(this,this.JX);var F=N6({JX:this.JX,AX:this.AX,ME:q}),O=F.context;this.Jv=F.Jv;this.h1=l1(function(){return new nF(W,B.AX,B.n_)}); g.Z(this,this.h1);this.Db=l1(function(){return new u8(W)}); g.Z(this,this.Db);this.tX=l1(function(){return new zY(W,B.JX)}); g.Z(this,this.tX);this.WD=l1(function(){return new gL}); g.Z(this,this.WD);F=l1(function(){return new mN(E,K,y,B.AX,q,"SLOT_TYPE_ABOVE_FEED",B.tX,B.nJ,B.rU)}); g.Z(this,F);this.zY=l1(function(){return new xf(B.AX)}); this.qw=l1(function(){return new SH(B.tX,W,B.AX)}); g.Z(this,this.qw);this.n_=l1(function(){return new Bu(W,Y,B.qw,B.JX,B.Jv,B.AX)}); g.Z(this,this.n_);this.K1=new Kq(GB,Ob,function(l,M,e,d){return hf(y.get(),l,M,e,d)},G,K,y,q,this.AX,this.JX); g.Z(this,this.K1);this.IY=new TB(G,F,m,S,this.JX,this.tX,this.Oc);g.Z(this,this.IY);var X=new bo(W,this.IY,this.tX,this.JX,this.h1);this.VY=l1(function(){return X}); this.w3=X;this.nJ=new Bk(G,K,this.VY,this.h1,this.tX,this.AX,this.n_,this.Db);g.Z(this,this.nJ);this.rr=new pq(G,K,this.wA,this.VY,O);g.Z(this,this.rr);this.yP=new lB(this.AX,G,K,F,this.JX,this.rr,m,this.FE);g.Z(this,this.yP);this.oh=l1(function(){return new ca(p,y,q,B.AX,B.n_,B.tX,B.Db)}); g.Z(this,this.oh);this.Iv=l1(function(){return new D5}); g.Z(this,this.Iv);this.bK=new j4(S,this.BU,this.AX);g.Z(this,this.bK);this.UV=new Qq(S);g.Z(this,this.UV);this.M1=new XG(S);g.Z(this,this.M1);this.sf=new Hk(S,this.VY,O);g.Z(this,this.sf);this.SC=new lL(S,this.wA,this.tX,this.JX);g.Z(this,this.SC);this.Re=new MC(S,this.JX);g.Z(this,this.Re);this.rU=new Rl(S,this.h1,this.tX,this.n_,this.VY,this.nJ);g.Z(this,this.rU);this.Ip=new U8(S);g.Z(this,this.Ip);this.W1=new dB(S);g.Z(this,this.W1);this.gj=new Lq(S);g.Z(this,this.gj);this.BS=new iL(S);g.Z(this, this.BS);this.W1=new dB(S);g.Z(this,this.W1);this.iQ=l1(function(){return new s8}); g.Z(this,this.iQ);this.rj=l1(function(){return new uL(B.tX)}); g.Z(this,this.rj);this.yG=l1(function(){return new $dX(B.BU,B.n_,S,Y,B.qw)}); g.Z(this,this.yG);this.Mx=l1(function(){return new Iw(B.yP,G,E)}); g.Z(this,this.Mx);this.qn=l1(function(){return new ku(B.AX,B.n_,B.Ip,B.qw)}); g.Z(this,this.qn);this.L1=l1(function(){return new Bi(S,B.W1,B.Ip,B.JX,B.Db,B.tX,B.WD,B.n_,T,B.h1,B.qw,B.zY,B.FE,B.wA,B.Oc,B.Ya,B.sV,B.LC,B.AX,Y,O)}); g.Z(this,this.L1);this.Xq=l1(function(){return new muK(B.tX,B.n_,B.sV,B.AX,B.qw,B.JX)}); g.Z(this,this.Xq);this.Fl=l1(function(){return new TfK(B.BU,B.tX,B.n_,Y,B.qw,B.M1,B.BS,B.sV,B.AX,m)}); g.Z(this,this.Fl);this.G7=l1(function(){return new hi7(B.BU,B.n_,Y)}); g.Z(this,this.G7);this.Nb=new TY(S,this.TT,E);g.Z(this,this.Nb);this.Wr={YF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yP],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.nJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.IY],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rr]]),Aj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oh],["SLOT_TYPE_ABOVE_FEED",this.Iv],["SLOT_TYPE_FORECASTING",this.Iv], ["SLOT_TYPE_IN_PLAYER",this.Iv],["SLOT_TYPE_PLAYER_BYTES",this.Iv],["SLOT_TYPE_PLAYER_UNDERLAY",this.Iv],["SLOT_TYPE_PLAYBACK_TRACKING",this.Iv],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Iv]]),WA:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bK],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.bK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UV],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UV],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.UV],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UV],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.UV],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UV],["TRIGGER_TYPE_CLOSE_REQUESTED",this.M1],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.SC],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.SC],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.SC],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.SC],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.SC],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.SC],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.SC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Re],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Re],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ip],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.sf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gj],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.BS],["TRIGGER_TYPE_AD_BREAK_STARTED",this.W1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.rU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.rU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.rU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.rU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.rU]]),pj:new Map([["SLOT_TYPE_ABOVE_FEED",this.iQ], ["SLOT_TYPE_AD_BREAK_REQUEST",this.iQ],["SLOT_TYPE_FORECASTING",this.iQ],["SLOT_TYPE_IN_PLAYER",this.iQ],["SLOT_TYPE_PLAYER_BYTES",this.rj],["SLOT_TYPE_PLAYER_UNDERLAY",this.iQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.iQ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.iQ]]),uF:new Map([["SLOT_TYPE_ABOVE_FEED",this.yG],["SLOT_TYPE_AD_BREAK_REQUEST",this.Mx],["SLOT_TYPE_FORECASTING",this.qn],["SLOT_TYPE_PLAYER_BYTES",this.L1],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xq],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Xq],["SLOT_TYPE_IN_PLAYER",this.Fl],["SLOT_TYPE_PLAYER_UNDERLAY",this.G7]])};this.listeners=[Y.get()];this.Tv={yP:this.yP,pW:this.AX.get(),U9:this.sV.get(),eH:this.tX.get(),IY:this.IY,E1:E.get(),sZ:this.TT.get(),VQ:this.bK,bV:Y.get(),Iy:this.JX.get()}}; KiP=function(S,W,m,a,J){g.A.call(this);var B=this,E=l1(function(){return new Il(B.AX)}); g.Z(this,E);var y=l1(function(){return new fq(E)}); g.Z(this,y);var Y=l1(function(){return new FG}); g.Z(this,Y);var G=l1(function(){return new qC(S)}); g.Z(this,G);var K=l1(function(){return new kT(E,y,B.AX)}); g.Z(this,K);var T=l1(function(){return new ZU}); g.Z(this,T);this.BU=l1(function(){return new pF(W)}); g.Z(this,this.BU);this.sV=l1(function(){return new Uf(J)}); g.Z(this,this.sV);this.Oc=l1(function(){return new oA(W)}); g.Z(this,this.Oc);this.wA=l1(function(){return new rH(W)}); g.Z(this,this.wA);this.FE=l1(function(){return new CC(W)}); g.Z(this,this.FE);this.Ya=l1(function(){return new c5(W)}); g.Z(this,this.Ya);this.AX=l1(function(){return new DC(W)}); g.Z(this,this.AX);var p=l1(function(){return new qJ(a)}); g.Z(this,p);var q=l1(function(){return new wi(B.AX)}); g.Z(this,q);var F=l1(function(){return new mN(E,K,y,B.AX,q,null,null,B.nJ,B.rU)}); g.Z(this,F);this.LC=l1(function(){return new sb(W)}); g.Z(this,this.LC);this.TT=l1(function(){return new eE}); g.Z(this,this.TT);this.JX=l1(function(){return new Eb(W,T,B.AX)}); g.Z(this,this.JX);var O=N6({JX:this.JX,AX:this.AX,ME:q}),X=O.context;this.Jv=O.Jv;this.h1=l1(function(){return new nF(W,B.AX,B.n_)}); this.tX=l1(function(){return new zY(W,B.JX)}); g.Z(this,this.tX);this.WD=l1(function(){return new gL}); g.Z(this,this.WD);this.qw=l1(function(){return new SH(B.tX,W,B.AX)}); g.Z(this,this.qw);this.n_=l1(function(){return new Bu(W,Y,B.qw,B.JX,B.Jv,B.AX)}); g.Z(this,this.n_);this.zY=l1(function(){return new xf(B.AX)}); g.Z(this,this.zY);this.K1=new Kq(GB,Ob,function(M,e,d,t){return hf(y.get(),M,e,d,t)},G,K,y,q,this.AX,this.JX); g.Z(this,this.K1);this.IY=new TB(G,F,m,S,this.JX,this.tX,this.Oc);g.Z(this,this.IY);var l=new bo(W,this.IY,this.tX,this.JX,this.h1);this.VY=l1(function(){return l}); this.w3=l;this.nJ=new Bk(G,K,this.VY,this.h1,this.tX,this.AX,this.n_);g.Z(this,this.nJ);this.rr=new pq(G,K,this.wA,this.VY,X);g.Z(this,this.rr);this.yP=new lB(this.AX,G,K,F,this.JX,this.rr,m,this.FE);g.Z(this,this.yP);this.oh=l1(function(){return new ca(p,y,q,B.AX,B.n_,B.tX)}); g.Z(this,this.oh);this.Iv=l1(function(){return new D5}); g.Z(this,this.Iv);this.bK=new j4(S,this.BU,this.AX);g.Z(this,this.bK);this.UV=new Qq(S);g.Z(this,this.UV);this.M1=new XG(S);g.Z(this,this.M1);this.sf=new Hk(S,this.VY,X);g.Z(this,this.sf);this.SC=new lL(S,this.wA,this.tX,this.JX);g.Z(this,this.SC);this.Ip=new U8(S);g.Z(this,this.Ip);this.gj=new Lq(S);g.Z(this,this.gj);this.BS=new iL(S);g.Z(this,this.BS);this.Db=l1(function(){return new u8(W)}); g.Z(this,this.Db);this.W1=new dB(S);g.Z(this,this.W1);this.rU=new Rl(S,this.h1,this.tX,this.n_,this.VY,this.nJ);g.Z(this,this.rU);this.iQ=l1(function(){return new s8}); g.Z(this,this.iQ);this.rj=l1(function(){return new uL(B.tX)}); g.Z(this,this.rj);this.Mx=l1(function(){return new Iw(B.yP,G,E)}); g.Z(this,this.Mx);this.qn=l1(function(){return new ku(B.AX,B.n_,B.Ip,B.qw)}); g.Z(this,this.qn);this.Fl=l1(function(){return new qYD(B.BU,B.tX,B.n_,Y,B.qw,B.M1,B.BS,B.sV,B.AX,m)}); g.Z(this,this.Fl);this.L1=l1(function(){return new En(S,B.W1,B.Ip,B.n_,B.qw,B.zY,B.FE,B.JX,B.tX,B.WD,B.wA,B.Oc,B.Ya,B.sV,B.LC,B.AX,B.Db,X)}); g.Z(this,this.L1);this.Nb=new TY(S,this.TT,E);g.Z(this,this.Nb);this.Wr={YF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yP],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.nJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.IY],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rr]]),Aj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oh],["SLOT_TYPE_FORECASTING",this.Iv],["SLOT_TYPE_IN_PLAYER",this.Iv], ["SLOT_TYPE_PLAYER_BYTES",this.Iv]]),WA:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UV],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UV],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UV], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UV],["TRIGGER_TYPE_CLOSE_REQUESTED",this.M1],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.SC],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.SC],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.SC],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ip],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gj],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.BS],["TRIGGER_TYPE_AD_BREAK_STARTED",this.W1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.rU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.rU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.rU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.rU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.rU]]),pj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iQ],["SLOT_TYPE_FORECASTING",this.iQ],["SLOT_TYPE_IN_PLAYER",this.iQ],["SLOT_TYPE_PLAYER_BYTES",this.rj]]), uF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mx],["SLOT_TYPE_FORECASTING",this.qn],["SLOT_TYPE_IN_PLAYER",this.Fl],["SLOT_TYPE_PLAYER_BYTES",this.L1]])};this.listeners=[Y.get()];this.Tv={yP:this.yP,pW:this.AX.get(),U9:this.sV.get(),eH:this.tX.get(),IY:this.IY,E1:E.get(),sZ:this.TT.get(),VQ:this.bK,bV:Y.get(),Iy:this.JX.get()}}; TQQ=function(S,W,m,a,J){g.A.call(this);var B=this,E=l1(function(){return new Il(B.AX)}); g.Z(this,E);var y=l1(function(){return new fq(E)}); g.Z(this,y);var Y=l1(function(){return new FG}); g.Z(this,Y);var G=l1(function(){return new qC(S)}); g.Z(this,G);var K=l1(function(){return new kT(E,y,B.AX)}); g.Z(this,K);var T=l1(function(){return new ZU}); g.Z(this,T);this.BU=l1(function(){return new pF(W)}); g.Z(this,this.BU);this.sV=l1(function(){return new Uf(J)}); g.Z(this,this.sV);this.Oc=l1(function(){return new oA(W)}); g.Z(this,this.Oc);this.wA=l1(function(){return new rH(W)}); g.Z(this,this.wA);this.FE=l1(function(){return new CC(W)}); g.Z(this,this.FE);this.Ya=l1(function(){return new c5(W)}); g.Z(this,this.Ya);this.AX=l1(function(){return new DC(W)}); g.Z(this,this.AX);var p=l1(function(){return new qJ(a)}); g.Z(this,p);var q=l1(function(){return new wi(B.AX)}); g.Z(this,q);var F=l1(function(){return new mN(E,K,y,B.AX,q,null,null,null,null)}); g.Z(this,F);this.LC=l1(function(){return new sb(W)}); g.Z(this,this.LC);this.JX=l1(function(){return new Eb(W,T,B.AX)}); g.Z(this,this.JX);var O=N6({JX:this.JX,AX:this.AX,ME:q}),X=O.context;this.Jv=O.Jv;this.tX=l1(function(){return new zY(W,B.JX)}); g.Z(this,this.tX);this.WD=l1(function(){return new gL}); g.Z(this,this.WD);this.qw=l1(function(){return new SH(B.tX,W,B.AX)}); g.Z(this,this.qw);this.n_=l1(function(){return new Bu(W,Y,B.qw,B.JX,B.Jv,B.AX)}); g.Z(this,this.n_);this.zY=l1(function(){return new xf(B.AX)}); g.Z(this,this.zY);this.K1=new Kq(GB,Ob,function(M,e,d,t){return hf(y.get(),M,e,d,t)},G,K,y,q,this.AX,this.JX); g.Z(this,this.K1);this.IY=new TB(G,F,m,S,this.JX,this.tX,this.Oc);g.Z(this,this.IY);var l=new bo(W,this.IY,this.tX,this.JX);this.VY=l1(function(){return l}); this.w3=l;this.rr=new pq(G,K,this.wA,this.VY,X);g.Z(this,this.rr);this.yP=new lB(this.AX,G,K,F,this.JX,this.rr,m,this.FE);g.Z(this,this.yP);this.oh=l1(function(){return new ca(p,y,q,B.AX,B.n_,B.tX)}); g.Z(this,this.oh);this.Iv=l1(function(){return new D5}); g.Z(this,this.Iv);this.bK=new j4(S,this.BU,this.AX);g.Z(this,this.bK);this.UV=new Qq(S);g.Z(this,this.UV);this.sf=new Hk(S,this.VY,X);g.Z(this,this.sf);this.SC=new lL(S,this.wA,this.tX,this.JX);g.Z(this,this.SC);this.Ip=new U8(S);g.Z(this,this.Ip);this.gj=new Lq(S);g.Z(this,this.gj);this.Db=l1(function(){return new u8(W)}); g.Z(this,this.Db);this.W1=new dB(S);g.Z(this,this.W1);this.iQ=l1(function(){return new s8}); g.Z(this,this.iQ);this.rj=l1(function(){return new uL(B.tX)}); g.Z(this,this.rj);this.Mx=l1(function(){return new Iw(B.yP,G,E)}); g.Z(this,this.Mx);this.qn=l1(function(){return new ku(B.AX,B.n_,B.Ip,B.qw)}); g.Z(this,this.qn);this.e3=l1(function(){return new SBX(B.BU,B.tX,B.n_,Y,m,B.AX)}); g.Z(this,this.e3);this.L1=l1(function(){return new En(S,B.W1,B.Ip,B.n_,B.qw,B.zY,B.FE,B.JX,B.tX,B.WD,B.wA,B.Oc,B.Ya,B.sV,B.LC,B.AX,B.Db,X)}); g.Z(this,this.L1);this.Wr={YF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.IY],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rr]]),Aj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oh],["SLOT_TYPE_FORECASTING",this.Iv],["SLOT_TYPE_IN_PLAYER",this.Iv],["SLOT_TYPE_PLAYER_BYTES",this.Iv]]),WA:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.UV],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UV],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UV],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.SC],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.SC],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ip],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.W1]]),pj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iQ],["SLOT_TYPE_ABOVE_FEED",this.iQ],["SLOT_TYPE_FORECASTING",this.iQ],["SLOT_TYPE_IN_PLAYER",this.iQ],["SLOT_TYPE_PLAYER_BYTES",this.rj]]),uF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mx],["SLOT_TYPE_FORECASTING",this.qn],["SLOT_TYPE_IN_PLAYER", this.e3],["SLOT_TYPE_PLAYER_BYTES",this.L1]])};this.listeners=[Y.get()];this.Tv={yP:this.yP,pW:this.AX.get(),U9:this.sV.get(),eH:this.tX.get(),IY:this.IY,E1:E.get(),sZ:null,VQ:this.bK,bV:Y.get(),Iy:this.JX.get()}}; qDD=function(S,W,m,a,J){g.A.call(this);var B=this,E=l1(function(){return new Il(B.AX)}); g.Z(this,E);var y=l1(function(){return new fq(E)}); g.Z(this,y);var Y=l1(function(){return new FG}); g.Z(this,Y);var G=l1(function(){return new qC(S)}); g.Z(this,G);var K=l1(function(){return new kT(E,y,B.AX)}); g.Z(this,K);var T=l1(function(){return new ZU}); g.Z(this,T);this.Ua=l1(function(){return new YD_(W)}); g.Z(this,this.Ua);this.BU=l1(function(){return new pF(W)}); g.Z(this,this.BU);this.sV=l1(function(){return new Uf(J)}); g.Z(this,this.sV);this.Oc=l1(function(){return new oA(W)}); g.Z(this,this.Oc);this.wA=l1(function(){return new rH(W)}); g.Z(this,this.wA);this.FE=l1(function(){return new CC(W)}); g.Z(this,this.FE);this.Ya=l1(function(){return new c5(W)}); g.Z(this,this.Ya);this.AX=l1(function(){return new DC(W)}); g.Z(this,this.AX);var p=l1(function(){return new qJ(a)}); g.Z(this,p);var q=l1(function(){return new wi(B.AX)}); g.Z(this,q);var F=l1(function(){return new mN(E,K,y,B.AX,q,null,null,null,null)}); g.Z(this,F);this.LC=l1(function(){return new sb(W)}); g.Z(this,this.LC);this.JX=l1(function(){return new Eb(W,T,B.AX)}); g.Z(this,this.JX);var O=N6({JX:this.JX,AX:this.AX,ME:q}),X=O.context;this.Jv=O.Jv;this.tX=l1(function(){return new zY(W,B.JX)}); g.Z(this,this.tX);this.WD=l1(function(){return new gL}); g.Z(this,this.WD);this.qw=l1(function(){return new SH(B.tX,W,B.AX)}); g.Z(this,this.qw);this.n_=l1(function(){return new Bu(W,Y,B.qw,B.JX,B.Jv,B.AX)}); g.Z(this,this.n_);this.zY=l1(function(){return new xf(B.AX)}); g.Z(this,this.zY);this.K1=new Kq(DyG,Ob,function(M,e,d,t){return g_l(y.get(),M,e,d,t)},G,K,y,q,this.AX,this.JX); g.Z(this,this.K1);this.IY=new TB(G,F,m,S,this.JX,this.tX,this.Oc);g.Z(this,this.IY);var l=new bo(W,this.IY,this.tX,this.JX);this.VY=l1(function(){return l}); this.w3=l;this.rr=new pq(G,K,this.wA,this.VY,X);g.Z(this,this.rr);this.yP=new lB(this.AX,G,K,F,this.JX,this.rr,m,this.FE);g.Z(this,this.yP);this.oh=l1(function(){return new ca(p,y,q,B.AX,B.n_,B.tX)}); g.Z(this,this.oh);this.Iv=l1(function(){return new D5}); g.Z(this,this.Iv);this.bK=new j4(S,this.BU,this.AX);g.Z(this,this.bK);this.UV=new Qq(S);g.Z(this,this.UV);this.sf=new Hk(S,this.VY,X);g.Z(this,this.sf);this.SC=new lL(S,this.wA,this.tX,this.JX);g.Z(this,this.SC);this.Ip=new U8(S);g.Z(this,this.Ip);this.gj=new Lq(S);g.Z(this,this.gj);this.Db=l1(function(){return new u8(W)}); g.Z(this,this.Db);this.W1=new dB(S);g.Z(this,this.W1);this.iQ=l1(function(){return new s8}); g.Z(this,this.iQ);this.rj=l1(function(){return new uL(B.tX)}); g.Z(this,this.rj);this.Mx=l1(function(){return new Iw(B.yP,G,E)}); g.Z(this,this.Mx);this.qn=l1(function(){return new ku(B.AX,B.n_,B.Ip,B.qw)}); g.Z(this,this.qn);this.L1=l1(function(){return new En(S,B.W1,B.Ip,B.n_,B.qw,B.zY,B.FE,B.JX,B.tX,B.WD,B.wA,B.Oc,B.Ya,B.sV,B.LC,B.AX,B.Db,X)}); g.Z(this,this.L1);this.YZ=l1(function(){return new F_O(B.BU,B.tX,B.n_,Y,B.Ua,m,B.JX)}); g.Z(this,this.YZ);this.Wr={YF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.IY],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rr]]),Aj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oh],["SLOT_TYPE_FORECASTING",this.Iv],["SLOT_TYPE_IN_PLAYER",this.Iv],["SLOT_TYPE_PLAYER_BYTES",this.Iv]]),WA:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.UV],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UV],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UV],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.SC],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.SC],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ip],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.W1]]),pj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iQ],["SLOT_TYPE_FORECASTING",this.iQ],["SLOT_TYPE_IN_PLAYER",this.iQ],["SLOT_TYPE_PLAYER_BYTES",this.rj]]),uF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mx],["SLOT_TYPE_FORECASTING",this.qn],["SLOT_TYPE_IN_PLAYER",this.YZ],["SLOT_TYPE_PLAYER_BYTES", this.L1]])};this.listeners=[Y.get()];this.Tv={yP:this.yP,pW:this.AX.get(),U9:this.sV.get(),eH:this.tX.get(),IY:this.IY,E1:E.get(),sZ:null,VQ:this.bK,bV:Y.get(),Iy:this.JX.get()}}; py6=function(S,W,m,a,J){g.A.call(this);var B=this,E=l1(function(){return new Il(B.AX)}); g.Z(this,E);var y=l1(function(){return new fq(E)}); g.Z(this,y);var Y=l1(function(){return new FG}); g.Z(this,Y);var G=l1(function(){return new qC(S)}); g.Z(this,G);var K=l1(function(){return new kT(E,y,B.AX)}); g.Z(this,K);var T=l1(function(){return new ZU}); g.Z(this,T);this.Ua=l1(function(){return new YD_(W)}); g.Z(this,this.Ua);this.BU=l1(function(){return new pF(W)}); g.Z(this,this.BU);this.sV=l1(function(){return new Uf(J)}); g.Z(this,this.sV);this.Oc=l1(function(){return new oA(W)}); g.Z(this,this.Oc);this.wA=l1(function(){return new rH(W)}); g.Z(this,this.wA);this.FE=l1(function(){return new CC(W)}); g.Z(this,this.FE);this.Ya=l1(function(){return new c5(W)}); g.Z(this,this.Ya);this.AX=l1(function(){return new DC(W)}); g.Z(this,this.AX);var p=l1(function(){return new qJ(a)}); g.Z(this,p);var q=l1(function(){return new wi(B.AX)}); g.Z(this,q);this.LC=l1(function(){return new sb(W)}); g.Z(this,this.LC);this.JX=l1(function(){return new Eb(W,T,B.AX)}); g.Z(this,this.JX);var F=N6({JX:this.JX,AX:this.AX,ME:q}),O=F.context;this.Jv=F.Jv;this.h1=l1(function(){return new nF(W,B.AX,B.n_)}); g.Z(this,this.h1);this.Db=l1(function(){return new u8(W)}); g.Z(this,this.Db);this.tX=l1(function(){return new zY(W,B.JX)}); g.Z(this,this.tX);this.WD=l1(function(){return new gL}); g.Z(this,this.WD);F=l1(function(){return new mN(E,K,y,B.AX,q,null,B.tX,B.nJ,B.rU,3)}); g.Z(this,F);this.zY=l1(function(){return new xf(B.AX)}); this.qw=l1(function(){return new SH(B.tX,W,B.AX)}); g.Z(this,this.qw);this.n_=l1(function(){return new Bu(W,Y,B.qw,B.JX,B.Jv,B.AX)}); g.Z(this,this.n_);this.IY=new TB(G,F,m,S,this.JX,this.tX,this.Oc);g.Z(this,this.IY);var X=new bo(W,this.IY,this.tX,this.JX,this.h1);this.VY=l1(function(){return X}); this.w3=X;this.K1=new Kq(wSO,Ob,function(l,M,e,d){return g_l(y.get(),l,M,e,d)},G,K,y,q,this.AX,this.JX); g.Z(this,this.K1);this.nJ=new Bk(G,K,this.VY,this.h1,this.tX,this.AX,this.n_,this.Db);g.Z(this,this.nJ);this.rr=new pq(G,K,this.wA,this.VY,O);g.Z(this,this.rr);this.yP=new lB(this.AX,G,K,F,this.JX,this.rr,m,this.FE);g.Z(this,this.yP);this.oh=l1(function(){return new ca(p,y,q,B.AX,B.n_,B.tX,B.Db)}); g.Z(this,this.oh);this.Iv=l1(function(){return new D5}); g.Z(this,this.Iv);this.bK=new j4(S,this.BU,this.AX);g.Z(this,this.bK);this.UV=new Qq(S);g.Z(this,this.UV);this.sf=new Hk(S,this.VY,O);g.Z(this,this.sf);this.SC=new lL(S,this.wA,this.tX,this.JX);g.Z(this,this.SC);this.Re=new MC(S,this.JX);g.Z(this,this.Re);this.rU=new Rl(S,this.h1,this.tX,this.n_,this.VY,this.nJ);g.Z(this,this.rU);this.Ip=new U8(S);g.Z(this,this.Ip);this.gj=new Lq(S);g.Z(this,this.gj);this.W1=new dB(S);g.Z(this,this.W1);this.iQ=l1(function(){return new s8}); g.Z(this,this.iQ);this.rj=l1(function(){return new uL(B.tX)}); g.Z(this,this.rj);this.Mx=l1(function(){return new Iw(B.yP,G,E)}); g.Z(this,this.Mx);this.qn=l1(function(){return new ku(B.AX,B.n_,B.Ip,B.qw)}); g.Z(this,this.qn);this.L1=l1(function(){return new Bi(S,B.W1,B.Ip,B.JX,B.Db,B.tX,B.WD,B.n_,T,B.h1,B.qw,B.zY,B.FE,B.wA,B.Oc,B.Ya,B.sV,B.LC,B.AX,Y,O)}); g.Z(this,this.L1);this.Fl=l1(function(){return new VGl(B.BU,B.tX,B.n_,Y,B.Ua,m,B.AX,B.JX)}); g.Z(this,this.Fl);this.Wr={YF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yP],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.nJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.K1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.IY],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rr]]),Aj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oh],["SLOT_TYPE_FORECASTING",this.Iv],["SLOT_TYPE_IN_PLAYER",this.Iv],["SLOT_TYPE_PLAYER_BYTES",this.Iv]]),WA:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.bK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UV],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UV],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UV],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UV],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.SC],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.SC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Re],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Re],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ip],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.W1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.rU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.rU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.rU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.rU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.rU]]),pj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iQ],["SLOT_TYPE_FORECASTING",this.iQ],["SLOT_TYPE_IN_PLAYER",this.iQ],["SLOT_TYPE_PLAYER_BYTES",this.rj]]),uF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mx],["SLOT_TYPE_FORECASTING",this.qn],["SLOT_TYPE_PLAYER_BYTES",this.L1],["SLOT_TYPE_IN_PLAYER",this.Fl]])};this.listeners=[Y.get()]; this.Tv={yP:this.yP,pW:this.AX.get(),U9:this.sV.get(),eH:this.tX.get(),IY:this.IY,E1:E.get(),sZ:null,VQ:this.bK,bV:Y.get(),Iy:this.JX.get()}}; VkP=function(S,W,m,a){function J(){return B.N} g.A.call(this);var B=this;S.J().experiments.mU("html5_dispose_of_manager_before_dependency")?(this.C=FiP(J,S,W,m,a),this.N=(new M2(this.C)).B(),g.Z(this,this.N),g.Z(this,this.C)):(this.C=FiP(J,S,W,m,a),g.Z(this,this.C),this.N=(new M2(this.C)).B(),g.Z(this,this.N))}; jH=function(S){return S.C.Tv}; FiP=function(S,W,m,a,J){try{var B=W.J();if(g.EV(B))var E=new G0P(S,W,m,a,J);else if(g.Y5(B))E=new KiP(S,W,m,a,J);else if(DI(B))E=new TQQ(S,W,m,a,J);else if(g.IL(B))E=new qDD(S,W,m,a,J);else if(g.NT(B))E=new py6(S,W,m,a,J);else throw new TypeError("Unknown web interface");return E}catch(y){return E=W.J(),GI("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:E.C.cplatform,interface:E.C.c,Kw9:E.C.cver,Lwn:E.C.ctheme,gU2:E.C.cplayer,cxq:E.playerStyle}),new SDD(S,W,m,a,J)}}; nhO=function(S){Zj.call(this,S)}; sOQ=function(S,W,m,a,J){wC.call(this,S,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",W,m,a,J);this.j=this.I2("ytp-ad-timed-pie-countdown-container");this.B=this.I2("ytp-ad-timed-pie-countdown-inner"); this.X=this.I2("ytp-ad-timed-pie-countdown-outer");this.N=Math.ceil(2*Math.PI*5);this.hide()}; uIl=function(S,W,m,a,J,B){Yy.call(this,S,{G:"div",L:"ytp-ad-action-interstitial",D:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-instream-info"},{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div", L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",W,m,a);this.Fc=J;this.wT=B;this.navigationEndpoint=this.C=this.skipButton=this.N=this.actionButton=null;this.O9=this.I2("ytp-ad-action-interstitial-instream-info");this.Hn=this.I2("ytp-ad-action-interstitial-image-container");this.S=new $y(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,"ytp-ad-action-interstitial-image");g.Z(this,this.S);this.S.GN(this.Hn);this.Pn=this.I2("ytp-ad-action-interstitial-headline-container"); this.X=new cm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,"ytp-ad-action-interstitial-headline");g.Z(this,this.X);this.X.GN(this.Pn);this.vn=this.I2("ytp-ad-action-interstitial-description-container");this.B=new cm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,"ytp-ad-action-interstitial-description");g.Z(this,this.B);this.B.GN(this.vn);this.d2=this.I2("ytp-ad-action-interstitial-background-container");this.g2=new $y(this.api,this.layoutId,this.interactionLoggingClientData, this.U9,"ytp-ad-action-interstitial-background",!0);g.Z(this,this.g2);this.g2.GN(this.d2);this.hX=this.I2("ytp-ad-action-interstitial-action-button-container");this.slot=this.I2("ytp-ad-action-interstitial-slot");this.Ey=this.I2("ytp-ad-action-interstitial-card");this.j=new L5;g.Z(this,this.j);this.hide()}; gh_=function(S){var W=g.gY("html5-video-player");W&&g.GD(W,"ytp-ad-display-override",S)}; XyO=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",W,m,a);this.S=[];this.d2=this.Pn=this.j=this.hX=this.O9=null;this.g2=!1;this.X=null;this.vn=0;S=this.I2("ytp-ad-overlay-container");this.Hn=new zI(S,45E3,6E3,.3,.4);g.Z(this,this.Hn);this.B=Orc(this);g.Z(this,this.B);this.B.GN(S);this.N=jOG(this);g.Z(this,this.N);this.N.GN(S);this.C=QOc(this);g.Z(this,this.C);this.C.GN(S);this.hide()}; Orc=function(S){var W=new g.yG({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[L8(vhj)]}]},{G:"div",L:"ytp-ad-overlay-title",Bn:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Bn:"{{description}}"},{G:"div",Wn:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Bn:"{{displayUrl}}"}]});S.K(W.I2("ytp-ad-overlay-title"),"click",function(m){Qh(S,W.element,m)}); S.K(W.I2("ytp-ad-overlay-link"),"click",function(m){Qh(S,W.element,m)}); S.K(W.I2("ytp-ad-overlay-close-container"),"click",S.t6);W.hide();return W}; jOG=function(S){var W=new g.yG({G:"div",Wn:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[L8(vhj)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",D:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",Bn:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Bn:"{{description}}"},{G:"div",Wn:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Bn:"{{displayUrl}}"}]});S.K(W.I2("ytp-ad-overlay-title"),"click",function(m){Qh(S,W.element,m)}); S.K(W.I2("ytp-ad-overlay-link"),"click",function(m){Qh(S,W.element,m)}); S.K(W.I2("ytp-ad-overlay-close-container"),"click",S.t6);S.K(W.I2("ytp-ad-overlay-text-image"),"click",S.yOn);W.hide();return W}; QOc=function(S){var W=new g.yG({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[L8(vhj)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});S.K(W.I2("ytp-ad-overlay-image"),"click",function(m){Qh(S,W.element,m)}); S.K(W.I2("ytp-ad-overlay-close-container"),"click",S.t6);W.hide();return W}; HrP=function(S,W){if(W){var m=g.n(W,QZ)||null;m==null?g.lR(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(W=g.gY("video-ads ytp-ad-module")||null,W==null?g.lR(Error("Could not locate the root ads container element to attach the ad info dialog.")):(S.Pn=new g.yG({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.Z(S,S.Pn),S.Pn.GN(W),W=new C8(S.api,S.layoutId,S.interactionLoggingClientData,S.U9,S.Pn.element,!1),g.Z(S,W),W.init(Wm("ad-info-hover-text-button"),m,S.macros), S.X?(W.GN(S.X,0),W.subscribe("f",S.GC6,S),W.subscribe("e",S.l9,S),S.K(S.X,"click",S.XUU),S.K(g.gY("ytp-ad-button",W.element),"click",function(){var a;if(g.n((a=g.n(m.button,vG))==null?void 0:a.serviceEndpoint,x57))S.g2=S.api.getPlayerState(1)===2,S.api.pauseVideo();else S.api.onAdUxClicked("ad-info-hover-text-button",S.layoutId)}),S.d2=W):g.lR(Error("Ad info button container within overlay ad was not present."))))}else g.Ue(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; MkQ=function(S,W){if(lGP(S,X8)||S.api.isMinimized())return!1;var m=G3(W.title),a=G3(W.description);if(g.C$(m)||g.C$(a))return!1;S.createServerVe(S.B.element,W.trackingParams||null);S.B.updateValue("title",G3(W.title));S.B.updateValue("description",G3(W.description));S.B.updateValue("displayUrl",G3(W.displayUrl));W.navigationEndpoint&&g.BF(S.S,W.navigationEndpoint);S.B.show();S.Hn.start();S.logVisibility(S.B.element,!0);S.K(S.B.element,"mouseover",function(){S.vn++}); return!0}; U0_=function(S,W){if(lGP(S,X8)||S.api.isMinimized())return!1;var m=G3(W.title),a=G3(W.description);if(g.C$(m)||g.C$(a))return!1;S.createServerVe(S.N.element,W.trackingParams||null);S.N.updateValue("title",G3(W.title));S.N.updateValue("description",G3(W.description));S.N.updateValue("displayUrl",G3(W.displayUrl));S.N.updateValue("imageUrl",to_(W.image));W.navigationEndpoint&&g.BF(S.S,W.navigationEndpoint);S.hX=W.imageNavigationEndpoint||null;S.N.show();S.Hn.start();S.logVisibility(S.N.element,!0); S.K(S.N.element,"mouseover",function(){S.vn++}); return!0}; LiO=function(S,W){if(S.api.isMinimized())return!1;var m=A$P(W.image),a=m;m.width0?(W=new i2(S.api,S.C), W.GN(S.playerOverlay),g.Z(S,W)):(S=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(W)),g.lR(S))}}else g.lR(Error("addCommonComponents() needs to be called before starting countdown."))}; hCc=function(S){function W(m){return{toString:function(){return m()}}} S.macros.SURVEY_LOCAL_TIME_EPOCH_S=W(function(){var m=new Date;return(Math.round(m.valueOf()/1E3)+-1*m.getTimezoneOffset()*60).toString()}); S.macros.SURVEY_ELAPSED_MS=W(function(){return(Date.now()-S.B).toString()})}; tk6=function(S,W,m,a,J){MJ.call(this,S,W,m,a,"survey-question-multi-select");this.vn=J;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()}; AaX=function(S,W,m){S.noneOfTheAbove=new IGP(S.api,S.layoutId,S.interactionLoggingClientData,S.U9);S.noneOfTheAbove.GN(S.answers);S.noneOfTheAbove.init(Wm("survey-none-of-the-above"),W,m)}; NQG=function(S){S.N.forEach(function(W){W.C.toggleButton(!1)}); ZrD(S,!0)}; ZrD=function(S,W){var m=S.j;S=brQ(S);W=W===void 0?!1:W;m.C&&(S?m.C.hide():m.C.show(),W&&m.C instanceof Vj&&!m.C.j&&tYG(m.C,!1));m.N&&(S?m.N.show():m.N.hide())}; brQ=function(S){return S.N.some(function(W){return W.C.isToggled()})||S.noneOfTheAbove.button.isToggled()}; Ub=function(S,W,m,a,J){MJ.call(this,S,W,m,a,"survey-question-single-select",function(E){B.api.J().T("supports_multi_step_on_desktop")&&J([E])}); var B=this;this.hide()}; LF=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",W,m,a);this.questions=[];this.N=[];this.conditioningRules=[];this.C=0;this.X=this.I2("ytp-ad-survey-questions");this.api.J().T("fix_survey_color_contrast_on_destop")&&this.I2("ytp-ad-survey").classList.add("color-contrast-fix");this.api.J().T("web_enable_speedmaster")&&this.I2("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; CCQ=function(S,W){var m=S.N[W],a;(a=S.B)==null||a.dispose();g.n(m,O4)?ohj(S,g.n(m,O4),S.macros):g.n(m,g5)&&raO(S,g.n(m,g5),S.macros);S.C=W}; ohj=function(S,W,m){var a=new Ub(S.api,S.layoutId,S.interactionLoggingClientData,S.U9,S.j.bind(S));a.GN(S.X);a.init(Wm("survey-question-single-select"),W,m);S.api.J().T("supports_multi_step_on_desktop")?S.B=a:S.questions.push(a);g.Z(S,a)}; raO=function(S,W,m){var a=new tk6(S.api,S.layoutId,S.interactionLoggingClientData,S.U9,S.j.bind(S));a.GN(S.X);a.init(Wm("survey-question-multi-select"),W,m);S.api.J().T("supports_multi_step_on_desktop")?S.B=a:S.questions.push(a);g.Z(S,a)}; R0=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",W,m,a);this.C=this.actionButton=null;this.interstitial=this.I2("ytp-ad-survey-interstitial");this.N=this.I2("ytp-ad-survey-interstitial-contents");this.text=this.I2("ytp-ad-survey-interstitial-text"); this.logoImage=this.I2("ytp-ad-survey-interstitial-logo-image");this.transition=new g.mo(this,500,!1,300);g.Z(this,this.transition)}; ca6=function(S,W){W=W&&ky(W)||"";if(g.C$(W))g.Ue(Error("Found ThumbnailDetails without valid image URL"));else{var m=S.style;S=S.style.cssText;var a=document.implementation.createHTMLDocument("").createElement("DIV");a.style.cssText=S;S=u_6(a.style);m.cssText=[S,'background-image:url("'+W+'");'].join("")}}; D07=function(S){var W=g.gY("html5-video-player");W&&g.GD(W,"ytp-ad-display-override",S)}; eH=function(S,W,m,a,J,B){B=B===void 0?0:B;wC.call(this,S,{G:"div",L:"ytp-preview-ad",U:[{G:"div",L:"ytp-preview-ad__text"}]},"preview-ad",W,m,a,J);var E=this;this.vn=B;this.N=0;this.j=-1;this.B=this.I2("ytp-preview-ad__text");switch(this.vn){case 1:this.B.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.mo(this,400,!1,100,function(){E.hide()}); g.Z(this,this.transition);this.hide()}; x7=function(S,W,m,a){Yy.call(this,S,{G:"img",L:"ytp-ad-avatar"},"ad-avatar",W,m,a);this.hide()}; wyl=function(S){switch(S.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}}; i8=function(S,W,m,a,J,B){J=J===void 0?!1:J;B=B===void 0?!1:B;Yy.call(this,S,{G:"button",L:"ytp-ad-button-vm"},"ad-button",W,m,a);this.buttonText=this.buttonIcon=null;this.hide();this.C=J;this.N=B}; SSl=function(S,W,m,a,J){wC.call(this,S,{G:"div",Wn:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],U:[{G:"div",L:"ytp-ad-avatar-lockup-card__avatar_and_text_container",U:[{G:"div",L:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",W,m,a,J);this.startMilliseconds=0;this.adAvatar=new x7(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.adAvatar);LX(this.element,this.adAvatar.element,0);this.headline=new l2(this.api,this.layoutId, this.interactionLoggingClientData,this.U9);g.Z(this,this.headline);this.headline.GN(this.I2("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.description);this.description.GN(this.I2("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new i8(this.api, this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.adButton);this.adButton.GN(this.element);this.hide()}; dL=function(S,W,m,a){Yy.call(this,S,{G:"button",L:"ytp-skip-ad-button",U:[{G:"div",L:"ytp-skip-ad-button__text"}]},"skip-button",W,m,a);var J=this;this.N=!1;this.j=this.I2("ytp-skip-ad-button__text");this.transition=new g.mo(this,500,!1,100,function(){J.hide()}); g.Z(this,this.transition);this.C=new zI(this.element,15E3,5E3,.5,.5,!0);g.Z(this,this.C);this.hide()}; WfD=function(S,W,m,a,J){wC.call(this,S,{G:"div",L:"ytp-skip-ad"},"skip-ad",W,m,a,J);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new dL(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.B);this.B.GN(this.element);this.hide()}; I0=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-visit-advertiser-link"},"visit-advertiser-link",W,m,a);this.hide()}; Pu=function(S,W,m,a,J){Yy.call(this,S,{G:"div",L:"ytp-ad-player-overlay-layout",U:[{G:"div",L:"ytp-ad-player-overlay-layout__player-card-container"},{G:"div",L:"ytp-ad-player-overlay-layout__ad-info-container"},{G:"div",L:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{G:"div",L:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",W,m,a);this.N=J;this.Pn=this.I2("ytp-ad-player-overlay-layout__player-card-container");this.C=this.I2("ytp-ad-player-overlay-layout__ad-info-container"); this.S=this.I2("ytp-ad-player-overlay-layout__skip-or-preview-container");this.vn=this.I2("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; mhP=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-grid-card-text",U:[{G:"div",L:"ytp-ad-grid-card-text__metadata",U:[{G:"div",L:"ytp-ad-grid-card-text__metadata__headline"},{G:"div",L:"ytp-ad-grid-card-text__metadata__description",U:[{G:"div",L:"ytp-ad-grid-card-text__metadata__description__line"},{G:"div",L:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{G:"div",L:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",W,m,a);this.headline=new l2(this.api,this.layoutId,this.interactionLoggingClientData, this.U9);g.Z(this,this.headline);this.headline.GN(this.I2("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new i8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0);g.Z(this,this.moreInfoButton);this.moreInfoButton.GN(this.I2("ytp-ad-grid-card-text__button"))}; fF=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",W,m,a);this.C=[]}; k7=function(S,W,m,a,J,B,E){wC.call(this,S,B,E,W,m,a,J);this.playerProgressOffsetMs=0;this.N=!1}; av_=function(S){var W=g.gY("html5-video-player");W&&g.GD(W,"ytp-ad-display-override",S)}; J7P=function(S,W,m,a,J){k7.call(this,S,W,m,a,J,{G:"div",L:"ytp-display-underlay-text-grid-cards",U:[{G:"div",L:"ytp-display-underlay-text-grid-cards__content_container",U:[{G:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header",U:[{G:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{G:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{G:"div",L:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {G:"div",L:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.adGridCardCollection);this.adGridCardCollection.GN(this.I2("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new i8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.adButton);this.adButton.GN(this.I2("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.B=this.I2("ytp-display-underlay-text-grid-cards__content_container");this.j=this.I2("ytp-display-underlay-text-grid-cards__content_container__header")}; $7=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-ad-details-line"},"ad-details-line",W,m,a);this.C=[];this.hide()}; hh=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-image-background",U:[{G:"img",L:"ytp-image-background-image"}]},"image-background",W,m,a);this.hide()}; BVO=function(S,W,m,a,J){wC.call(this,S,{G:"svg",L:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",W,m,a,J);this.B=this.I2("ytp-timed-pie-countdown__inner");this.N=Math.ceil(2*Math.PI*5);this.hide()}; th=function(S,W,m,a){Yy.call(this,S,{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},U:[{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content",U:[{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",U:[{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{G:"div",L:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",W,m,a);this.N=null;this.j=this.I2("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.B=new L5;g.Z(this,this.B);this.hide()}; E4j=function(S){var W=g.gY("html5-video-player");W&&g.GD(W,"ytp-ad-display-override",S)}; zYG=function(S){if(!S.adAvatar||!g.n(S.adAvatar,Ah))return g.lR(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!S.headline)return g.lR(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!S.adBadge||!g.n(S.adBadge,ZH))return g.lR(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!S.adButton||!g.n(S.adButton,NJ))return g.lR(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!S.adInfoRenderer|| !g.n(S.adInfoRenderer,QZ))return g.lR(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;S=S.durationMilliseconds||0;return typeof S!=="number"||S<=0?(g.lR(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+S)),!1):!0}; b8=function(S,W){W=W===void 0?2:W;g.au.call(this);this.api=S;this.C=null;this.handler=new L5(this);g.Z(this,this.handler);this.N=AOQ;this.handler.K(this.api,"presentingplayerstatechange",this.Ci);this.C=this.handler.K(this.api,"progresssync",this.Zb);this.RX=W;this.RX===1&&this.Zb()}; o0=function(S,W,m){Zj.call(this,S);this.api=S;this.U9=W;this.components={};S=new g.b({G:"div",Wn:["video-ads","ytp-ad-module"]});g.Z(this,S);dJ&&g.Bn(S.element,"ytp-ads-tiny-mode");this.j=new GN(S.element);g.Z(this,this.j);g.tc(this.api,S.element,4);tf(m)&&(m=new g.b({G:"div",Wn:["ytp-ad-underlay"]}),g.Z(this,m),this.N=new GN(m.element),g.Z(this,this.N),g.tc(this.api,m.element,0));g.Z(this,sx7())}; y7G=function(S,W){S=g.L$(S.components,W.id,null);S==null&&g.Ue(Error("Component not found for element id: "+W.id));return S||null}; YSj=function(S){g.VT.call(this,S);var W=this;this.N=null;this.created=!1;this.B=S.J().T("h5_use_refactored_get_ad_break")?new WSK(this.player):new ZC(this.player);this.j=function(){if(W.N!=null)return W.N;var a=new y4X({VQ:jH(W.C).VQ,Iy:jH(W.C).Iy,W:W.player,pW:jH(W.C).pW,n_:W.C.C.n_,bV:jH(W.C).bV,Ya:W.C.C.Ya});W.N=a.ow;return W.N}; this.C=new VkP(this.player,this,this.B,this.j);g.Z(this,this.C);var m=S.J();!q2(m)||g.NT(m)||DI(m)||(g.Z(this,new o0(S,jH(this.C).U9,jH(this.C).pW)),g.Z(this,new nhO(S)))}; GTD=function(S){S.created!==S.loaded&&GI("Created and loaded are out of sync")}; qSP=function(S){g.VT.prototype.load.call(S);var W=jH(S.C).pW;try{S.player.getRootNode().classList.add("ad-created")}catch(y){GI(y instanceof Error?y:String(y))}var m=S.player.getVideoData(1),a=m&&m.videoId||"",J=m&&m.getPlayerResponse()||{},B=(J&&J.adPlacements||[]).map(function(y){return y.adPlacementRenderer}),E=((J==null?void 0:J.adSlots)||[]).map(function(y){return g.n(y,uB)}); J=J.playerConfig&&J.playerConfig.daiConfig&&J.playerConfig.daiConfig.enableDai||!1;m&&m.Hv();W=KfQ(B,E,W,jH(S.C).E1);B=m&&m.clientPlaybackNonce||"";m=m&&m.d_||!1;E=1E3*S.player.getDuration(1);TVl(S);S.C.C.w3.FK(B,E,m,W.C5,W.tQ,W.C5,J,a)}; TVl=function(S){var W,m;if(m=(W=S.player.getVideoData(1))==null||!W.d_)W=S.player.J(),m=q2(W)&&!g.TS(W)&&W.playerStyle==="desktop-polymer";m&&(S=S.player.getInternalApi(),S.addEventListener("updateKevlarOrC3Companion",SjO),S.addEventListener("updateEngagementPanelAction",WU_),S.addEventListener("changeEngagementPanelVisibility",mDl),window.addEventListener("yt-navigate-start",JnD))}; rL=function(S,W){W===S.mx&&(S.mx=void 0)}; pwK=function(S){var W=jH(S.C).IY,m=W.j().TE("SLOT_TYPE_PLAYER_BYTES",1);W=Wt(W.JX.get(),1).clientPlaybackNonce;var a=!1;m=g.R(m);for(var J=m.next();!J.done;J=m.next()){J=J.value;var B=J.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J.slotEntryTrigger instanceof uy?J.slotEntryTrigger.iX:void 0;B&&B===W&&(a&&GI("More than 1 preroll playerBytes slot detected",J),a=!0)}a||jH(S.C).eH.Sz()}; FfK=function(S){var W="";S=g.R(jH(S.C).bV.qx.keys());for(var m=S.next();!m.done;m=S.next()){m=m.value;if(m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.DQ==="core")return!0;W+=m.slotType+" "}Math.random()<.01&&GI("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:W});return!1}; Vc6=function(S){S=g.R(jH(S.C).bV.qx.values());for(var W=S.next();!W.done;W=S.next())if(W.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; DLj=function(S,W,m,a,J,B,E){m=m===void 0?[]:m;a=a===void 0?"":a;J=J===void 0?"":J;var y=jH(S.C).pW,Y=S.player.getVideoData(1);Y&&Y.getPlayerResponse();Y&&Y.Hv();m=KfQ(W,m,y,jH(S.C).E1);a1O(jH(S.C).yP,a,m.C5,m.tQ,W,J,B,E)}; KfQ=function(S,W,m,a){W={C5:[],tQ:W};S=g.R(S);for(var J=S.next();!J.done;J=S.next())if((J=J.value)&&J.renderer!=null){var B=J.renderer;if(!m.W.J().T("html5_enable_vod_lasr_with_notify_pacf")){var E=void 0,y=void 0,Y=void 0,G=void 0,K=a;g.n((G=B.sandwichedLinearAdRenderer)==null?void 0:G.adVideoStart,Wk)?(E=g.n((Y=B.sandwichedLinearAdRenderer)==null?void 0:Y.adVideoStart,Wk),E=VwQ(E,K),g.iR(B.sandwichedLinearAdRenderer.adVideoStart,Wk,E)):g.n((y=B.linearAdSequenceRenderer)==null?void 0:y.adStart,Wk)&& (Y=g.n((E=B.linearAdSequenceRenderer)==null?void 0:E.adStart,Wk),E=VwQ(Y,K),g.iR(B.linearAdSequenceRenderer.adStart,Wk,E))}W.C5.push(J)}return W}; g.CF=function(S){if(typeof DOMParser!="undefined")return $k(new DOMParser,FAP(S),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.cu=function(S){g.A.call(this);this.callback=S;this.C=new Oo(0,0,.4,0,.2,1,1,1);this.delay=new g.oG(this.next,window,this);g.Z(this,this.delay)}; g.n46=function(S){var W=S.J();return W.qd&&!W.B&&g.f9(W)?S.isEmbedsShortsMode()?(S=S.eU(),Math.min(S.width,S.height)>=315):!S.fC():!1}; g.DH=function(S){g.b.call(this,{G:"div",L:"ytp-more-videos-view",D:{tabIndex:"-1"}});var W=this;this.api=S;this.N=!0;this.B=new g.Tx(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.j=this.scrollPosition=0;this.title=new g.b({G:"h2",L:"ytp-related-title",Bn:"{{title}}"});this.previous=new g.b({G:"button",Wn:["ytp-button","ytp-previous"],D:{"aria-label":"Show previous suggested videos"},U:[g.p8()]});this.V=new g.cu(function(m){W.suggestions.element.scrollLeft=-m}); this.next=new g.b({G:"button",Wn:["ytp-button","ytp-next"],D:{"aria-label":"Show more suggested videos"},U:[g.Fo()]});g.Z(this,this.B);this.X=S.J().j;g.Z(this,this.title);this.title.GN(this.element);this.suggestions=new g.b({G:"div",L:"ytp-suggestions"});g.Z(this,this.suggestions);this.suggestions.GN(this.element);g.Z(this,this.previous);this.previous.GN(this.element);this.previous.listen("click",this.iG,this);g.Z(this,this.V);sqO(this);g.Z(this,this.next);this.next.GN(this.element);this.next.listen("click", this.bG,this);this.B.K(this.api,"appresize",this.Qc);this.B.K(this.api,"fullscreentoggled",this.An);this.B.K(this.api,"videodatachange",this.onVideoDataChange);this.Qc(this.api.k6().getPlayerSize());this.onVideoDataChange()}; sqO=function(S){for(var W={Qo:0};W.Qo<16;W={Qo:W.Qo},++W.Qo){var m=new g.b({G:"a",L:"ytp-suggestion-link",D:{href:"{{link}}",target:S.api.J().bY,"aria-label":"{{aria_label}}"},U:[{G:"div",L:"ytp-suggestion-image"},{G:"div",L:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},U:[{G:"div",L:"ytp-suggestion-title",Bn:"{{title}}"},{G:"div",L:"ytp-suggestion-author",Bn:"{{author_and_views}}"},{G:"div",D:{"data-is-live":"{{is_live}}"},L:"ytp-suggestion-duration", Bn:"{{duration}}"}]}]});g.Z(S,m);var a=m.I2("ytp-suggestion-link");g.mg(a,"transitionDelay",W.Qo/20+"s");S.B.K(a,"click",function(J){return function(B){var E=J.Qo;if(S.N){var y=S.suggestionData[E],Y=y.sessionData;S.X&&S.api.T("web_player_log_click_before_generating_ve_conversion_params")?(S.api.logClick(S.C[E].element),E=y.Lk(),y={},g.k8(S.api,y),E=g.ex(E,y),g.F4(E,S.api,B)):g.pi(B,S.api,S.X,Y||void 0)&&S.api.n6(y.videoId,Y,y.playlistId)}else B.preventDefault(),document.activeElement.blur()}}(W)); m.GN(S.suggestions.element);S.C.push(m);S.api.createServerVe(m.element,m)}}; u76=function(S){if(S.api.J().T("web_player_log_click_before_generating_ve_conversion_params"))for(var W=Math.floor(-S.scrollPosition/(S.j+8)),m=Math.min(W+S.columns,S.suggestionData.length)-1;W<=m;W++)S.api.logVisibility(S.C[W].element,!0)}; g.wL=function(S){var W=S.api.wp()?32:16;W=S.Z/2+W;S.next.element.style.bottom=W+"px";S.previous.element.style.bottom=W+"px";W=S.scrollPosition;var m=S.containerWidth-S.suggestionData.length*(S.j+8);g.GD(S.element,"ytp-scroll-min",W>=0);g.GD(S.element,"ytp-scroll-max",W<=m)}; OHP=function(S){for(var W=S.suggestionData.length,m=0;m>>0)+"_",J=0;return W}); AG("Symbol.iterator",function(S){if(S)return S;S=Symbol("Symbol.iterator");NP(Array.prototype,S,{configurable:!0,writable:!0,value:function(){return I6_(MOP(this))}}); return S}); AG("Promise",function(S){function W(E){this.C=0;this.B=void 0;this.N=[];this.Z=!1;var y=this.j();try{E(y.resolve,y.reject)}catch(Y){y.reject(Y)}} function m(){this.C=null} function a(E){return E instanceof W?E:new W(function(y){y(E)})} if(S)return S;m.prototype.N=function(E){if(this.C==null){this.C=[];var y=this;this.B(function(){y.X()})}this.C.push(E)}; var J=g.Z6.setTimeout;m.prototype.B=function(E){J(E,0)}; m.prototype.X=function(){for(;this.C&&this.C.length;){var E=this.C;this.C=[];for(var y=0;y0&&m>0;)if(a[--m]!=W[--J])return!1;return J<=0}}); AG("Array.prototype.find",function(S){return S?S:function(W,m){return Pc7(this,W,m).RD}}); AG("Array.prototype.entries",function(S){return S?S:function(){return uw(this,function(W,m){return[W,m]})}}); AG("Array.prototype.keys",function(S){return S?S:function(){return uw(this,function(W){return W})}}); AG("String.prototype.startsWith",function(S){return S?S:function(W,m){var a=sQ(this,W,"startsWith");W+="";var J=a.length,B=W.length;m=Math.max(0,Math.min(m|0,a.length));for(var E=0;E=B}}); AG("Number.isFinite",function(S){return S?S:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}}); AG("String.prototype.repeat",function(S){return S?S:function(W){var m=sQ(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("Invalid count value");W|=0;for(var a="";W;)if(W&1&&(a+=m),W>>>=1)m+=m;return a}}); AG("Object.entries",function(S){return S?S:function(W){var m=[],a;for(a in W)r7(W,a)&&m.push([a,W[a]]);return m}}); AG("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); AG("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); AG("Array.from",function(S){return S?S:function(W,m,a){m=m!=null?m:function(y){return y}; var J=[],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;)J.push(m.call(a,B.value,E++))}else for(B=W.length,E=0;E>>0;if(W===0)return 32;var m=0;(W&4294901760)===0&&(W<<=16,m+=16);(W&4278190080)===0&&(W<<=8,m+=8);(W&4026531840)===0&&(W<<=4,m+=4);(W&3221225472)===0&&(W<<=2,m+=2);(W&2147483648)===0&&m++;return m}}); AG("Number.isNaN",function(S){return S?S:function(W){return typeof W==="number"&&isNaN(W)}}); AG("Array.prototype.values",function(S){return S?S:function(){return uw(this,function(W,m){return m})}}); AG("Array.prototype.fill",function(S){return S?S:function(W,m,a){var J=this.length||0;m<0&&(m=Math.max(0,J+m));if(a==null||a>J)a=J;a=Number(a);a<0&&(a=Math.max(0,J+a));for(m=Number(m||0);m0&&m?m.repeat(Math.ceil(W/m.length)).substring(0,W):"")+a}}); AG("Array.prototype.findIndex",function(S){return S?S:function(W,m){return Pc7(this,W,m).kL}}); AG("Promise.prototype.finally",function(S){return S?S:function(W){return this.then(function(m){return Promise.resolve(W()).then(function(){return m})},function(m){return Promise.resolve(W()).then(function(){throw m; })})}}); AG("Math.imul",function(S){return S?S:function(W,m){W=Number(W);m=Number(m);var a=W&65535,J=m&65535;return a*J+((W>>>16&65535)*J+a*(m>>>16&65535)<<16>>>0)|0}}); AG("Math.sign",function(S){return S?S:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}}); AG("WeakSet",function(S){function W(m){this.C=new WeakMap;if(m){m=g.R(m);for(var a;!(a=m.next()).done;)this.add(a.value)}} if(function(){if(!S||!Object.seal)return!1;try{var m=Object.seal({}),a=Object.seal({}),J=new S([m]);if(!J.has(m)||J.has(a))return!1;J.delete(m);J.add(a);return!J.has(m)&&J.has(a)}catch(B){return!1}}())return S; W.prototype.add=function(m){this.C.set(m,!0);return this}; W.prototype.has=function(m){return this.C.has(m)}; W.prototype.delete=function(m){return this.C.delete(m)}; return W}); AG("Array.prototype.copyWithin",function(S){function W(m){m=Number(m);return m===Infinity||m===-Infinity?m:m|0} return S?S:function(m,a,J){var B=this.length;m=W(m);a=W(a);J=J===void 0?B:W(J);m=m<0?Math.max(B+m,0):Math.min(m,B);a=a<0?Math.max(B+a,0):Math.min(a,B);J=J<0?Math.max(B+J,0):Math.min(J,B);if(ma;)--J in this?this[--m]=this[J]:delete this[--m];return this}}); tG("copyWithin",function(S){return S?S:Array.prototype.copyWithin}); AG("Array.prototype.at",function(S){return S?S:gN}); tG("at",function(S){return S?S:gN}); AG("String.prototype.at",function(S){return S?S:gN}); AG("Promise.withResolvers",function(S){return S?S:function(){var W,m;return{promise:new Promise(function(a,J){W=a;m=J}), resolve:W,reject:m}}}); AG("Array.prototype.findLastIndex",function(S){return S?S:function(W,m){return f6l(this,W,m).kL}}); tG("findLastIndex",function(S){return S?S:function(W,m){return f6l(this,W,m).kL}}); AG("Number.parseInt",function(S){return S||parseInt});var bm,e$,kjQ;bm=bm||{};g.OQ=this||self;e$="closure_uid_"+(Math.random()*1E9>>>0);kjQ=0;g.$p(tN,Error);tN.prototype.name="CustomError";var aPG;var oXl,Lh,ap;oXl=Array.prototype.indexOf?function(S,W){return Array.prototype.indexOf.call(S,W,void 0)}:function(S,W){if(typeof S==="string")return typeof W!=="string"||W.length!=1?-1:S.indexOf(W,0); for(var m=0;m=0;m--)if(m in S&&S[m]===W)return m;return-1}; g.V3=Array.prototype.forEach?function(S,W,m){Array.prototype.forEach.call(S,W,m)}:function(S,W,m){for(var a=S.length,J=typeof S==="string"?S.split(""):S,B=0;B=.3:this.Ed>=.5};var NK={oG9:0,dS_:1},c8D={NONE:0,Lg9:1,efX:2};var yNO="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");dh.prototype.getValue=function(){return this.N}; g.u(IS,dh);IS.prototype.B=function(S){this.N===null&&g.lH(this.j,S)&&(this.N=S)}; g.u(PF,dh);PF.prototype.B=function(S){this.N===null&&typeof S==="number"&&(this.N=S)}; g.u(f$,dh);f$.prototype.B=function(S){this.N===null&&typeof S==="string"&&(this.N=S)};kl.prototype.disable=function(){this.N=!1}; kl.prototype.enable=function(){this.N=!0}; kl.prototype.isEnabled=function(){return this.N}; kl.prototype.reset=function(){this.C={};this.N=!0;this.B={}};var Bv=document,t8=window;var UhP=H9(1,!0),ah=H9(610401301,!1);H9(899588437,!1);H9(772657768,!0);var Lfc=H9(513659523,!1),RYP=H9(568333945,!0),O3Q=H9(1331761403,!1);H9(651175828,!1);H9(722764542,!1);H9(748402145,!1);H9(748402146,!1);var AxO=H9(748402147,!0),St=H9(824648567,!0),dc=H9(824656860,UhP);H9(333098724,!1);H9(2147483644,!1);H9(2147483645,!1);H9(2147483646,UhP);H9(2147483647,!0);var Jx=!!g.v9("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var wh=String.prototype.trim?function(S){return S.trim()}:function(S){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(S)[1]},ev6=/&/g,xxP=//g,dxP=/"/g,IZj=/'/g,Pwc=/\x00/g,Rv_=/[\x00&<>"']/;var B$,eYP=g.OQ.navigator;B$=eYP?eYP.userAgentData||null:null;var gpP=globalThis.trustedTypes,qa;FW.prototype.toString=function(){return this.C+""};uz.prototype.toString=function(){return this.C}; var QZl=new uz("about:invalid#zClosurez");var esP=jA("tel"),L5D=jA("sms"),jZP=[jA("data"),jA("http"),jA("https"),jA("mailto"),jA("ftp"),new OR(function(S){return/^[^:]*([/?#]|$)/.test(S)})],X9O=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;lz.prototype.toString=function(){return this.C+""};eA.prototype.toString=function(){return this.C+""};Ih.prototype.toString=function(){return this.C};var fa={};g.xhj=String.prototype.repeat?function(S,W){return S.repeat(W)}:function(S,W){return Array(W+1).join(S)};DN[" "]=function(){};var af,Qk,lxP,iHG,dh_,Ivl,iI,dJ,PbO;g.IV=Yk();g.pE=p9c();g.ND=zC("Edge");g.GJ=g.ND||g.pE;af=zC("Gecko")&&!(DP(g.mW(),"WebKit")&&!zC("Edge"))&&!(zC("Trident")||zC("MSIE"))&&!zC("Edge");g.ju=DP(g.mW(),"WebKit")&&!zC("Edge");Qk=c$();lxP=ANK();g.mm=t$j();iHG=rb();dh_=zC("iPad");Ivl=zC("iPod");iI=Ca();dJ=DP(g.mW(),"KaiOS"); a:{var fvG="",kTj=function(){var S=g.mW();if(af)return/rv:([^\);]+)(\)|;)/.exec(S);if(g.ND)return/Edge\/([\d\.]+)/.exec(S);if(g.pE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(S);if(g.ju)return/WebKit\/(\S+)/.exec(S);if(g.IV)return/(?:Version)[ \/]?(\S+)/.exec(S)}(); kTj&&(fvG=kTj?kTj[1]:"");if(g.pE){var Wx,$hl=g.OQ.document;Wx=$hl?$hl.documentMode:void 0;if(Wx!=null&&Wx>parseFloat(fvG)){PbO=String(Wx);break a}}PbO=fvG}var opO=PbO,NNP={};var wu,SY;g.TW=GC();wu=rb()||zC("iPod");SY=zC("iPad");g.PT=V$P();g.y0=Ka();g.F1=TC()&&!Ca();var aO6=!g.pE&&!TC();g.V=g.an.prototype;g.V.clone=function(){return new g.an(this.x,this.y)}; g.V.equals=function(S){return S instanceof g.an&&J8(this,S)}; g.V.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.V.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.V.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.V.scale=function(S,W){this.x*=S;this.y*=typeof W==="number"?W:S;return this};g.V=g.BI.prototype;g.V.clone=function(){return new g.BI(this.width,this.height)}; g.V.aspectRatio=function(){return this.width/this.height}; g.V.isEmpty=function(){return!zd(this)}; g.V.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.V.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.V.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.V.scale=function(S,W){this.width*=S;this.height*=typeof W==="number"?W:S;return this};Yg.prototype.toString=function(){return this.C}; var yK={};new Yg(yK,"");var cNj=/^[a-z][a-z\d-]*$/i,DxD="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),SCO="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),mKQ=["action","formaction","href"];var JkK={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.V=Td.prototype;g.V.yc=function(S){return FO(this.C,S)}; g.V.getElementsByTagName=function(S,W){return(W||this.C).getElementsByTagName(String(S))}; g.V.I2=function(S){return g.gY(S,this.C)}; g.V.setProperties=ON;g.V.createElement=function(S){return XO(this.C,S)}; g.V.appendChild=g.M1;g.V.append=function(S,W){yk7(q1(S),S,arguments,1)}; g.V.canHaveChildren=function(S){if(S.nodeType!=1)return!1;switch(S.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.V.removeNode=g.eu;g.V.getChildren=function(S){return S.children!=void 0?S.children:Array.prototype.filter.call(S.childNodes,function(W){return W.nodeType==1})}; g.V.contains=g.xg;g.V.isFocusable=dY;fX.prototype.now=function(){return 0}; fX.prototype.N=function(){return 0}; fX.prototype.B=function(){return 0}; fX.prototype.C=function(){return 0};g.u($g,fX);$g.prototype.now=function(){return kg()&&t8.performance.now?t8.performance.now():fX.prototype.now.call(this)}; $g.prototype.N=function(){return kg()&&t8.performance.memory?t8.performance.memory.totalJSHeapSize||0:fX.prototype.N.call(this)}; $g.prototype.B=function(){return kg()&&t8.performance.memory?t8.performance.memory.usedJSHeapSize||0:fX.prototype.B.call(this)}; $g.prototype.C=function(){return kg()&&t8.performance.memory?t8.performance.memory.jsHeapSizeLimit||0:fX.prototype.C.call(this)};var SgX=function(){if(!g.OQ.addEventListener||!Object.defineProperty)return!1;var S=!1,W=Object.defineProperty({},"passive",{get:function(){S=!0}}); try{var m=function(){}; g.OQ.addEventListener("test",m,W);g.OQ.removeEventListener("test",m,W)}catch(a){}return S}();var c__=KX_("AnimationEnd"),Li=KX_("TransitionEnd");g.V=rY.prototype;g.V.getHeight=function(){return this.bottom-this.top}; g.V.clone=function(){return new rY(this.top,this.right,this.bottom,this.left)}; g.V.contains=function(S){return this&&S?S instanceof rY?S.left>=this.left&&S.right<=this.right&&S.top>=this.top&&S.bottom<=this.bottom:S.x>=this.left&&S.x<=this.right&&S.y>=this.top&&S.y<=this.bottom:!1}; g.V.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.V.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.V.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.V.scale=function(S,W){W=typeof W==="number"?W:S;this.left*=S;this.right*=S;this.top*=W;this.bottom*=W;return this};g.V=g.wY.prototype;g.V.clone=function(){return new g.wY(this.left,this.top,this.width,this.height)}; g.V.contains=function(S){return S instanceof g.an?S.x>=this.left&&S.x<=this.left+this.width&&S.y>=this.top&&S.y<=this.top+this.height:this.left<=S.left&&this.left+this.width>=S.left+S.width&&this.top<=S.top&&this.top+this.height>=S.top+S.height}; g.V.getSize=function(){return new g.BI(this.width,this.height)}; g.V.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.V.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.V.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.V.scale=function(S,W){W=typeof W==="number"?W:S;this.left*=S;this.width*=S;this.top*=W;this.height*=W;return this};var qC7={};var gll=N1(function(){var S=!1;try{var W=Object.defineProperty({},"passive",{get:function(){S=!0}}); g.OQ.addEventListener("test",null,W)}catch(m){}return S});O$P.prototype.isVisible=function(){return sM(Bv)===1};var H$l=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");QE.prototype.XD=function(S,W,m){S=S+"//"+W+m;var a=e_P(this)-m.length;if(a<0)return"";this.C.sort(function(G,K){return G-K}); m=null;W="";for(var J=0;J=Y.length){a-=Y.length;S+=Y;W=this.B;break}m=m==null?B:m}}a="";m!=null&&(a=""+W+"trn="+m);return S+a};var FW_=Rf(function(S){return typeof S==="number"}),GM=Rf(function(S){return typeof S==="string"}),VAD=Rf(function(S){return typeof S==="boolean"}),ol=Rf(function(S){return S!=null&&typeof S==="object"&&typeof S.then==="function"}),is_=Rf(function(S){return typeof S==="function"}),hY_=Rf(function(S){return!!S&&(typeof S==="object"||typeof S==="function")});var UKc={zC9:"allow-forms",FvY:"allow-modals",hCY:"allow-orientation-lock",DxU:"allow-pointer-lock",SoU:"allow-popups",UxD:"allow-popups-to-escape-sandbox",leU:"allow-presentation",feN:"allow-same-origin",dx2:"allow-scripts",mxD:"allow-top-navigation",Yo2:"allow-top-navigation-by-user-activation"},PHP=N1(function(){return LX7()});xr.prototype.setInterval=function(S,W){return t8.setInterval(S,W)}; xr.prototype.clearInterval=function(S){t8.clearInterval(S)}; xr.prototype.setTimeout=function(S,W){return t8.setTimeout(S,W)}; xr.prototype.clearTimeout=function(S){t8.clearTimeout(S)};var RF=void 0,LI,Gd_=typeof TextDecoder!=="undefined",b$K,Nh6=typeof String.prototype.isWellFormed==="function",Z$G=typeof TextEncoder!=="undefined";var DKP={},tb=null,wF_=af||g.ju||typeof g.OQ.btoa=="function";var YRP=typeof Uint8Array!=="undefined",Jxj=!g.pE&&typeof btoa==="function",Bbl=/[-_.]/g,maO={"-":"+",_:"/",".":"="},Zc={};Ab.prototype.isEmpty=function(){return this.C==null}; Ab.prototype.sizeBytes=function(){var S=b4(this);return S?S.length:0}; var yxl;var GCX=void 0;var W3=typeof Symbol==="function"&&typeof Symbol()==="symbol",tcG=SZ("jas",void 0,!0),ki=SZ(void 0,"1oa"),W2=SZ(void 0,Symbol()),A7c=SZ(void 0,"0ub"),ia7=SZ(void 0,"0ubs"),ItP=SZ(void 0,"0ubsb"),Nbj=SZ(void 0,"0actk"),DO=SZ("m_m","uBX",!0),PzD=SZ(void 0,"vps"),ZHj=SZ();Math.max.apply(Math,g.x(Object.values({xy2:1,uV2:2,ej9:4,kTN:8,Ne6:16,DzQ:32,uy2:64,INU:128,kzX:256,KP9:512,Qy9:1024,aNn:2048,S_n:4096,CU6:8192})));var TbP={Bd_:{value:0,configurable:!0,writable:!0,enumerable:!1}},KWO=Object.defineProperties,ms=W3?tcG:"Bd_",jU,NV6=[];JT(NV6,7);jU=Object.freeze(NV6);var wc={},B3={},w$j=Object.freeze({}),xV={},yR={};var Ke=typeof g.OQ.BigInt==="function"&&typeof g.OQ.BigInt(0)==="bigint";var bp=Rf(function(S){return Ke?S>=bHG&&S<=o4D:S[0]==="-"?nk7(S,r7l):nk7(S,Cb6)}),r7l=Number.MIN_SAFE_INTEGER.toString(),bHG=Ke?BigInt(Number.MIN_SAFE_INTEGER):void 0,Cb6=Number.MAX_SAFE_INTEGER.toString(),o4D=Ke?BigInt(Number.MAX_SAFE_INTEGER):void 0;var BYP=typeof Uint8Array.prototype.slice==="function",q$=0,pe=0,PDP;var P3=typeof BigInt==="function"?BigInt.asIntN:void 0,MAQ=typeof BigInt==="function"?BigInt.asUintN:void 0,N$=Number.isSafeInteger,Le=Number.isFinite,ZO=Math.trunc,gkQ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var fNX={};var c77={ZJ2:!0};var B2;var kCc,$a7;var m1O=TM(0),Ds={};El.prototype.init=function(S,W,m,a){var J=a===void 0?{}:a;a=J.cF===void 0?!1:J.cF;J=J.Ke===void 0?!1:J.Ke;this.cF=a;this.Ke=J;S&&(S=Be(S,this.Ke),this.N=S.buffer,this.X=S.C,this.j=W||0,this.B=m!==void 0?this.j+m:this.N.length,this.C=this.j)}; El.prototype.free=function(){this.clear();ve.length<100&&ve.push(this)}; El.prototype.clear=function(){this.N=null;this.X=!1;this.C=this.B=this.j=0;this.cF=!1}; El.prototype.reset=function(){this.C=this.j}; var ve=[];He.prototype.free=function(){this.C.clear();this.N=this.B=-1;lW.length<100&&lW.push(this)}; He.prototype.reset=function(){this.C.reset();this.j=this.C.C;this.N=this.B=-1}; var lW=[];var pIX,Vuj;IF.prototype.length=function(){return this.C.length}; IF.prototype.end=function(){var S=this.C;this.C=[];return S};var NR=Ai(),Dhc=Ai(),wwD=Ai(),Suc=Ai(),Wc7=Ai(),m3P=Ai(),a2X=Ai(),JMX=Ai(),Bg7=Ai(),EcQ=Ai(),zy6=Ai();Z0.prototype.toJSON=function(){return yF(this)}; Z0.prototype.Rp=function(S){return JSON.stringify(yF(this,S))}; Z0.prototype.clone=function(){var S=this.x6,W=S[ms]|0;return TZ(this,S,W)?qI(this,S,!0):new this.constructor(KW(S,W,!1))}; Z0.prototype[DO]=wc;Z0.prototype.toString=function(){return this.x6.toString()};var HXX=oF(function(S,W,m,a,J){if(S.N!==2)return!1;Ul(S,$i(W,a,m),J);return!0},vgP),ltj=oF(function(S,W,m,a,J){if(S.N!==2)return!1; Ul(S,$i(W,a,m),J);return!0},vgP),Bj=Symbol(),wA=Symbol(),av=Symbol(),x1O=Symbol(),LG6=Symbol(),rA,CI;var yMD=TM(0),Yul=yv(function(S,W,m){if(S.N!==1)return!1;Gn(W,m,Qu(S.C));return!0},K2,Bg7),Gy6=yv(function(S,W,m){if(S.N!==1)return!1; S=Qu(S.C);Gn(W,m,S===0?void 0:S);return!0},K2,Bg7),Kcl=yv(function(S,W,m,a){if(S.N!==1)return!1; P2(W,m,a,Qu(S.C));return!0},K2,Bg7),TgG=yv(function(S,W,m){if(St)return S.N!==0?S=!1:(Gn(W,m,sl(S.C,v3)),S=!0),S; if(S.N!==0)return!1;Gn(W,m,sl(S.C,QR));return!0},Tn,a2X),quP=yv(function(S,W,m){if(St)return S.N!==0?W=!1:(S=sl(S.C,v3),Gn(W,m,S===yMD?void 0:S),W=!0),W; if(S.N!==0)return!1;S=sl(S.C,QR);Gn(W,m,S===0?void 0:S);return!0},Tn,a2X),pJj=yv(function(S,W,m,a){if(St)return S.N!==0?S=!1:(P2(W,m,a,sl(S.C,v3)),S=!0),S; if(S.N!==0)return!1;P2(W,m,a,sl(S.C,QR));return!0},Tn,a2X),Fcj=yv(function(S,W,m){if(S.N!==0)return!1; Gn(W,m,uW(S.C));return!0},qs,Suc),VfG=yv(function(S,W,m){if(S.N!==0)return!1; S=uW(S.C);Gn(W,m,S===0?void 0:S);return!0},qs,Suc),ncP=yv(function(S,W,m,a){if(S.N!==0)return!1; P2(W,m,a,uW(S.C));return!0},qs,Suc),s77=yv(function(S,W,m){if(St)return S.N!==1?S=!1:(Gn(W,m,jq(S.C)),S=!0),S; if(S.N!==1)return!1;Gn(W,m,Ol(S.C));return!0},function(S,W,m){jn7(S,m,Ual(W))},JMX),unO=YJ(function(S,W,m){if(St)return S.N!==1&&S.N!==2?S=!1:(W=eU(W,W[ms]|0,m),S.N==2?TYG(S,jq,W):W.push(jq(S.C)),S=!0),S; if(S.N!==1&&S.N!==2)return!1;W=eU(W,W[ms]|0,m);S.N==2?TYG(S,Ol,W):W.push(Ol(S.C));return!0},function(S,W,m){W=zn(Ual,W,!1); if(W!=null)for(var a=0;a>>0);return!0},function(S,W,m){W=ip(W); W!=null&&W!=null&&(hi(S,m,0),fI(S.C,W))},Wc7),z2=yv(function(S,W,m){if(S.N!==0)return!1; Gn(W,m,uW(S.C));return!0},function(S,W,m){W=xM(W); W!=null&&(W=parseInt(W,10),hi(S,m,0),snK(S.C,W))},zy6);var h2D=new Map;g.u(tu6,qN_);ZXl.prototype.register=function(){DN(this)};g.u(Vv,Z0);Vv.prototype.B=bX6([0,Gy6,quP,-2,VfG]);CD7.prototype.QD=function(S){var W=this.C[S.key];if(S.valueType==="proto"){try{var m=JSON.parse(W);if(Array.isArray(m))return m}catch(a){}return S.defaultValue}return typeof W===typeof S.defaultValue?W:S.defaultValue};var D16={AD2:1,Vp:2,Lsn:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};SMD.prototype.nV=function(S){if(typeof S==="string"&&S.length!=0){var W=this.PU;if(W.N){S=S.split("&");for(var m=S.length-1;m>=0;m--){var a=S[m].split("="),J=decodeURIComponent(a[0]);a.length>1?(a=decodeURIComponent(a[1]),a=/^[0-9]+$/g.exec(a)?parseInt(a,10):a):a=1;(J=W.C[J])&&J.B(a)}}}};var yy=null;var jx=g.OQ.performance,l2P=!!(jx&&jx.mark&&jx.measure&&jx.clearMarks),gx=N1(function(){var S;if(S=l2P){var W=W===void 0?window:W;if(yy===null){yy="";try{S="";try{S=W.top.location.hash}catch(a){S=W.location.hash}if(S){var m=S.match(/\bdeid=([\d,]+)/);yy=m?m[1]:""}}catch(a){}}W=yy;S=!!W.indexOf&&W.indexOf("1337")>=0}return S}); Og.prototype.disable=function(){this.C=!1;this.events!==this.N.google_js_reporting_queue&&(gx()&&g.V3(this.events,ErG),this.events.length=0)}; Og.prototype.start=function(S,W){if(!this.C)return null;var m=Jbc()||acK();S=new Bp6(S,W,m);W="goog_"+S.label+"_"+S.uniqueId+"_start";jx&&gx()&&jx.mark(W);return S}; Og.prototype.end=function(S){if(this.C&&typeof S.value==="number"){var W=Jbc()||acK();S.duration=W-S.value;W="goog_"+S.label+"_"+S.uniqueId+"_end";jx&&gx()&&jx.mark(W);!this.C||this.events.length>2048||this.events.push(S)}};var z4P=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),dx=/#|$/,qMQ=/[?&]($|#)/;Fgj.prototype.eA=function(S,W,m,a,J){J=J||this.fb;try{var B=new QE;B.C.push(1);B.N[1]=vr("context",S);W.error&&W.meta&&W.id||(W=new h0(t0(W)));if(W.msg){var E=W.msg.substring(0,512);B.C.push(2);B.N[2]=vr("msg",E)}var y=W.meta||{};if(this.yX)try{this.yX(y)}catch(q){}if(a)try{a(y)}catch(q){}a=[y];B.C.push(3);B.N[3]=a;var Y=MmK();if(Y.N){var G=Y.N.url||"";B.C.push(4);B.N[4]=vr("top",G)}var K={url:Y.C.url||""};if(Y.C.url){var T=g.Xd(Y.C.url);var p=Qv(T[1],null,T[3],T[4])}else p="";G=[K,{url:p}];B.C.push(5); B.N[5]=G;WgX(this.C,J,B,m)}catch(q){try{WgX(this.C,J,{context:"ecmserr",rctx:S,msg:t0(q),url:Y&&Y.C.url},m)}catch(F){}}return this.SN}; g.u(h0,mUP);var kJ,$J,f2=new Og;kJ=new function(){var S="https:";t8&&t8.location&&t8.location.protocol==="http:"&&(S="http:");this.N=S;this.C=.01}; $J=new Fgj;t8&&t8.document&&(t8.document.readyState=="complete"?nrK():f2.C&&nh(t8,"load",function(){nrK()}));var grK=Date.now(),C2=-1,ov=-1,RqX,cj=-1,rx=!1;DK.prototype.equals=function(S,W){return!!S&&(!(W===void 0?0:W)||this.volume==S.volume)&&this.B==S.B&&cI(this.C,S.C)&&!0};wx.prototype.yc=function(){return this.Z}; wx.prototype.equals=function(S,W){return this.j.equals(S.j,W===void 0?!1:W)&&this.Z==S.Z&&cI(this.B,S.B)&&cI(this.V,S.V)&&this.C==S.C&&this.X==S.X&&this.N==S.N&&this.S==S.S};var MfP={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},md={PH:"start",OE:"firstquartile",xd:"midpoint",Xx:"thirdquartile",COMPLETE:"complete",ERROR:"error",uq:"metric",PAUSE:"pause",wJ:"resume",cH:"skip",nI:"viewable_impression",o5:"mute",HH:"unmute",ZT:"fullscreen",nz:"exitfullscreen",ys:"bufferstart",Iw:"bufferfinish",EE:"fully_viewable_audible_half_duration_impression",eF:"measurable_impression",uv:"abandon",sE:"engagedview",zr:"impression",Xb:"creativeview",LOADED:"loaded", XYn:"progress",CLOSE:"close",Rp9:"collapse",Mnn:"overlay_resize",oTD:"overlay_unmeasurable_impression",ChQ:"overlay_unviewable_impression",iE2:"overlay_viewable_immediate_impression",bEQ:"overlay_viewable_end_of_session_impression",t_:"custom_metric_viewable",Cz:"audio_audible",i8:"audio_measurable",b8:"audio_impression"},tUl="start firstquartile midpoint thirdquartile resume loaded".split(" "),ALK=["start","firstquartile","midpoint","thirdquartile"],x$_=["abandon"],jK={UNKNOWN:-1,PH:0,OE:1,xd:2, Xx:3,COMPLETE:4,uq:5,PAUSE:6,wJ:7,cH:8,nI:9,o5:10,HH:11,ZT:12,nz:13,EE:14,eF:15,uv:16,sE:17,zr:18,Xb:19,LOADED:20,t_:21,ys:22,Iw:23,b8:27,i8:28,Cz:29};var jfP={V19:"addEventListener",xS9:"getMaxSize",MQ9:"getScreenSize",oV6:"getState",b6n:"getVersion",pYn:"removeEventListener",MIY:"isViewable"};UUj.prototype.update=function(S){S&&S.document&&(this.Z=Sp(!1,S,this.isMobileDevice),this.C=Sp(!0,S,this.isMobileDevice),R4P(this,S),LgP(this,S))};zA.prototype.cancel=function(){i4().clearTimeout(this.C);this.C=null}; zA.prototype.schedule=function(){var S=this,W=i4(),m=u3().C.C;this.C=W.setTimeout(n2(m,ZK(143,function(){S.N++;S.B.sample()})),Oh7())};g.V=yJ.prototype;g.V.ZU=function(){return!1}; g.V.initialize=function(){return this.isInitialized=!0}; g.V.E0=function(){return this.C.Pn}; g.V.lk=function(){return this.C.N2}; g.V.fail=function(S,W){if(!this.N2||(W===void 0?0:W))this.N2=!0,this.Pn=S,this.S=0,this.C!=this||GA(this)}; g.V.getName=function(){return this.C.O9}; g.V.Xl=function(){return this.C.TX()}; g.V.TX=function(){return{}}; g.V.qZ=function(){return this.C.S}; g.V.zI=function(){var S=JB();S.C=Sp(!0,this.B,S.isMobileDevice)}; g.V.FH=function(){LgP(JB(),this.B)}; g.V.YI=function(){return this.j.C}; g.V.sample=function(){}; g.V.isActive=function(){return this.C.V}; g.V.l0=function(S){var W=this.C;this.C=S.qZ()>=this.S?S:this;W!==this.C?(this.V=this.C.V,GA(this)):this.V!==this.C.V&&(this.V=this.C.V,GA(this))}; g.V.gg=function(S){if(S.N===this.C){var W=!this.j.equals(S,this.bY);this.j=S;W&&ihK(this)}}; g.V.IN=function(){return this.bY}; g.V.dispose=function(){this.Xn=!0}; g.V.TN=function(){return this.Xn};g.V=KL.prototype;g.V.observe=function(){return!0}; g.V.unobserve=function(){}; g.V.q1=function(S){this.X=S}; g.V.dispose=function(){if(!this.TN()){var S=this.N;g.Sm(S.X,this);S.bY&&this.IN()&&xUP(S);this.unobserve();this.q2=!0}}; g.V.TN=function(){return this.q2}; g.V.Xl=function(){return this.N.Xl()}; g.V.qZ=function(){return this.N.qZ()}; g.V.E0=function(){return this.N.E0()}; g.V.lk=function(){return this.N.lk()}; g.V.l0=function(){}; g.V.gg=function(){this.u4()}; g.V.IN=function(){return this.Xn};g.V=TA.prototype;g.V.qZ=function(){return this.C.qZ()}; g.V.E0=function(){return this.C.E0()}; g.V.lk=function(){return this.C.lk()}; g.V.create=function(S,W,m){var a=null;this.C&&(a=this.FZ(S,W,m),Yq(this.C,a));return a}; g.V.hq=function(){return this.EA()}; g.V.EA=function(){return!1}; g.V.init=function(S){return this.C.initialize()?(Yq(this.C,this),this.j=S,!0):!1}; g.V.l0=function(S){S.qZ()==0&&this.j(S.E0(),this)}; g.V.gg=function(){}; g.V.IN=function(){return!1}; g.V.dispose=function(){this.X=!0}; g.V.TN=function(){return this.X}; g.V.Xl=function(){return{}};pL.prototype.add=function(S,W,m){++this.B;S=new IcG(S,W,m);this.C.push(new IcG(S.N,S.C,S.B+this.B/4096));this.N=!0;return this};h4P.prototype.toString=function(){var S="//pagead2.googlesyndication.com//pagead/gen_204",W=VJ(this.C);W.length>0&&(S+="?"+W);return S};g.A.prototype.Ys=!1;g.A.prototype.TN=function(){return this.Ys}; g.A.prototype.dispose=function(){this.Ys||(this.Ys=!0,this.j9())}; g.A.prototype[Symbol.dispose]=function(){this.dispose()}; g.A.prototype.addOnDisposeCallback=function(S,W){this.Ys?W!==void 0?S.call(W):S():(this.CJ||(this.CJ=[]),W&&(S=S.bind(W)),this.CJ.push(S))}; g.A.prototype.j9=function(){if(this.CJ)for(;this.CJ.length;)this.CJ.shift()()};var U36=[0,TgG,gc6,-1];u9.prototype.update=function(S,W,m){S&&(this.C+=W,this.N+=W,this.j+=W,this.B=Math.max(this.B,this.j));if(m===void 0?!S:m)this.j=0};var bh6=[1,.75,.5,.3,0];g3.prototype.update=function(S,W,m,a,J,B){B=B===void 0?!0:B;W=J?Math.min(S,W):W;for(J=0;J0&&W>=E;E=!(S>0&&S>=E)||m;this.C[J].update(B&&y,a,!B||E)}};Hv.prototype.update=function(S,W,m,a){this.Z=this.Z!=-1?Math.min(this.Z,W.Ed):W.Ed;this.vn=Math.max(this.vn,W.Ed);this.q2=this.q2!=-1?Math.min(this.q2,W.hp):W.hp;this.Pn=Math.max(this.Pn,W.hp);this.uY.update(W.hp,m.hp,W.C,S,a);this.Hn+=S;W.Ed===0&&(this.O9+=S);this.N.update(W.Ed,m.Ed,W.C,S,a);m=a||m.Fh!=W.Fh?m.isVisible()&&W.isVisible():m.isVisible();W=!W.isVisible()||W.C;this.zN.update(m,S,W)}; Hv.prototype.Zo=function(){return this.zN.B>=this.d2};if(Bv&&Bv.URL){var Lc6=Bv.URL,RyG;a:{if(Lc6){var eyP=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var YN=eyP.exec(decodeURIComponent(Lc6));if(YN){RyG=YN[1]&&YN[1].length>1?YN[1].substring(1):"true";break a}}catch(S){}}RyG=""}$J.SN=!(RyG.length>0)};var x3j=new rY(0,0,0,0);var WsD=new rY(0,0,0,0);g.u(Rp,g.A);g.V=Rp.prototype; g.V.j9=function(){if(this.Nn.C){if(this.C9.BN){var S=this.Nn.C;typeof S.removeEventListener==="function"&&S.removeEventListener("mouseover",this.C9.BN,VE());this.C9.BN=null}this.C9.vN&&(S=this.Nn.C,typeof S.removeEventListener==="function"&&S.removeEventListener("mouseout",this.C9.vN,VE()),this.C9.vN=null)}this.DB&&this.DB.dispose();this.KP&&this.KP.dispose();delete this.BB;delete this.uI;delete this.t$;delete this.Nn.bL;delete this.Nn.C;delete this.C9;delete this.DB;delete this.KP;delete this.PU; g.A.prototype.j9.call(this)}; g.V.Bc=function(){return this.KP?this.KP.C:this.position}; g.V.nV=function(S){u3().nV(S)}; g.V.IN=function(){return!1}; g.V.xq=function(){return new Hv}; g.V.Eo=function(){return this.BB}; g.V.gs=function(S){return Bc6(this,S,1E4)}; g.V.L_=function(S,W,m,a,J,B,E){this.DY||(this.m3&&(S=this.sN(S,m,J,E),a=a&&this.B4.Ed>=(this.Fh()?.3:.5),this.sb(B,S,a),this.mV=W,S.Ed>0&&-1===this.lm&&(this.lm=W),this.kp==-1&&this.Zo()&&(this.kp=W),this.Yi==-2&&(this.Yi=UH(this.Bc())?S.Ed:-1),this.B4=S),this.uI(this))}; g.V.sb=function(S,W,m){this.Eo().update(S,W,this.B4,m)}; g.V.y3=function(){return new sC}; g.V.sN=function(S,W,m,a){m=this.y3();m.C=W;W=i4().N;W=sM(Bv)===0?-1:W.isVisible()?0:1;m.N=W;m.Ed=this.Mb(S);m.Fh=this.Fh();m.hp=a;return m}; g.V.Mb=function(S){return this.opacity===0&&Ak(this.PU,"opac")===1?0:S}; g.V.Fh=function(){return!1}; g.V.c5=function(){return this.AvD||this.GV2}; g.V.bT=function(){b3()}; g.V.rC=function(){b3()}; g.V.X5=function(){return this.requestSource}; g.V.zw=function(){return 0}; g.V.Zo=function(){return this.BB.Zo()}; g.V.RR=function(){var S=this.m3;S=(this.hasCompleted||this.TN())&&!S;var W=u3().N!==2||this.hZ2;return this.DY||W&&S?2:this.Zo()?4:3}; g.V.h7=function(){return 0};g.xq.prototype.next=function(){return g.G2}; g.G2={done:!0,value:void 0};g.xq.prototype.Ky=function(){return this};g.u(Ksj,sC);var Kl=qLP([void 0,1,2,3,4,8,16]),T2=qLP([void 0,4,8,16]),iJK={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Pv("p0",T2),p1:Pv("p1",T2),p2:Pv("p2",T2),p3:Pv("p3",T2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ip("mtos1",[0,2,4],!1,T2),mtos2:Ip("mtos2",[0,2,4],!1,T2),mtos3:Ip("mtos3",[0,2,4],!1,T2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Pv("a0",T2),a1:Pv("a1",T2),a2:Pv("a2",T2),a3:Pv("a3",T2),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:Pv("c0",T2),c1:Pv("c1",T2),c2:Pv("c2",T2),c3:Pv("c3",T2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Pv("qmtos",Kl),qnc:Pv("qnc",Kl),qmv:Pv("qmv",Kl),qnv:Pv("qnv",Kl), 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:Pv("ss0",T2),ss1:Pv("ss1",T2),ss2:Pv("ss2",T2),ss3:Pv("ss3",T2),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"},d3P=Object.assign({},iJK,{avid:A8("audio"),avas:"avas",vs:"vs"}),I2_={atos:"atos",avt:Ip("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(S,W){return function(m){return m[S]===void 0&&W!==void 0?W:m[S]}}("ss",0), t:"t"};hB.prototype.getValue=function(){return this.N}; hB.prototype.update=function(S,W){S>=32||(this.C&1<=.5;mI(W.volume)&&(this.j=this.j!=-1?Math.min(this.j,W.volume):W.volume,this.V=Math.max(this.V,W.volume));B&&(this.Xn+=S,this.bY+=J?S:0);this.C.update(W.Ed,m.Ed,W.C,S,a,J);this.B.update(!0,S);this.X.update(J,S);this.N2.update(m.fullscreen,S);this.M2.update(J&&!B,S);S=Math.floor(W.mediaTime/1E3);this.s9.update(S,W.isVisible());this.Y6.update(S,W.Ed>=1);this.hX.update(S, d3(W))}};uzc.prototype.N=function(S){this.B||(this.C(S)?(S=L9c(this.bY,this.j,S),this.X|=S,S=S==0):S=!1,this.B=S)};g.u(ZJ,uzc);ZJ.prototype.C=function(){return!0}; ZJ.prototype.V=function(){return!1}; ZJ.prototype.getId=function(){var S=this,W=MK(md,function(m){return m==S.j}); return jK[W].toString()}; ZJ.prototype.toString=function(){var S="";this.V()&&(S+="c");this.B&&(S+="s");this.X>0&&(S+=":"+this.X);return this.getId()+S};g.u(NY,ZJ);NY.prototype.N=function(S,W){W=W===void 0?null:W;W!=null&&this.Z.push(W);ZJ.prototype.N.call(this,S)};g.u(b9,gMc);b9.prototype.N=function(){return null}; b9.prototype.B=function(){return[]};g.u(op,KL);g.V=op.prototype;g.V.gx=function(){if(this.element){var S=this.element,W=this.N.C.B;try{try{var m=HhP(S.getBoundingClientRect())}catch(G){m=new rY(0,0,0,0)}var a=m.right-m.left,J=m.bottom-m.top,B=nl6(S,W),E=B.x,y=B.y;var Y=new rY(Math.round(y),Math.round(E+a),Math.round(y+J),Math.round(E))}catch(G){Y=x3j.clone()}this.B=Y;this.C=dU7(this,this.B)}}; g.V.YD=function(){this.V=this.N.j.C}; g.V.f7=function(S){var W=Ak(this.PU,"od")==1;return SLP(S,this.V,this.element,W)}; g.V.pX=function(){this.timestamp=b3()}; g.V.u4=function(){this.pX();this.gx();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var S=this.element;var W=new g.BI(S.videoWidth,S.videoHeight);S=this.C;var m=CX(S),a=S.getHeight(),J=W.width;W=W.height;J<=0||W<=0||m<=0||a<=0||(J/=W,W=m/a,S=S.clone(),J>W?(m/=J,a=(a-m)/2,a>0&&(a=S.top+a,S.top=Math.round(a),S.bottom=Math.round(a+m))):(a*=J,m=Math.round((m-a)/2),m>0&&(m=S.left+m,S.left=Math.round(m),S.right=Math.round(m+a))));this.C=S}this.YD(); S=this.C;m=this.V;S=S.left<=m.right&&m.left<=S.right&&S.top<=m.bottom&&m.top<=S.bottom?new rY(Math.max(S.top,m.top),Math.min(S.right,m.right),Math.min(S.bottom,m.bottom),Math.max(S.left,m.left)):new rY(0,0,0,0);m=S.top>=S.bottom||S.left>=S.right?new rY(0,0,0,0):S;S=this.N.j;W=J=a=0;if((this.C.bottom-this.C.top)*(this.C.right-this.C.left)>0)if(this.f7(m))m=new rY(0,0,0,0);else{a=JB().j;W=new rY(0,a.height,a.width,0);var B;a=LL(m,(B=this.X)!=null?B:this.C);J=LL(m,JB().C);W=LL(m,W)}B=m.top>=m.bottom|| m.left>=m.right?new rY(0,0,0,0):Dt(m,-this.C.left,-this.C.top);EH()||(J=a=0);this.bY=new wx(S,this.element,this.C,B,a,J,this.timestamp,W)}; g.V.getName=function(){return this.N.getName()};var Pn6=new rY(0,0,0,0);g.u(r3,op);g.V=r3.prototype;g.V.observe=function(){this.j();return!0}; g.V.gg=function(){op.prototype.u4.call(this)}; g.V.pX=function(){}; g.V.gx=function(){}; g.V.u4=function(){this.j();op.prototype.u4.call(this)}; g.V.l0=function(S){S=S.isActive();S!==this.S&&(S?this.j():(JB().C=new rY(0,0,0,0),this.C=new rY(0,0,0,0),this.V=new rY(0,0,0,0),this.timestamp=-1));this.S=S};var qw={},Lsl=(qw.firstquartile=0,qw.midpoint=1,qw.thirdquartile=2,qw.complete=3,qw);g.u(cv,Rp);g.V=cv.prototype;g.V.IN=function(){return!0}; g.V.GT=function(){return this.tp==2}; g.V.gs=function(S){return Bc6(this,S,Math.max(1E4,this.B/3))}; g.V.L_=function(S,W,m,a,J,B,E){var y=this,Y=this.Z(this)||{};g.iH(Y,J);this.B=Y.duration||this.B;this.bY=Y.isVpaid||this.bY;this.O9=Y.isYouTube||this.O9;i4();this.uY=!1;J=jjc(this,W);OeP(this)===1&&(B=J);Rp.prototype.L_.call(this,S,W,m,a,Y,B,E);this.LA&&this.LA.B&&g.V3(this.V,function(G){G.N(y)})}; g.V.sb=function(S,W,m){Rp.prototype.sb.call(this,S,W,m);SK(this).update(S,W,this.B4,m);this.d2=d3(this.B4)&&d3(W);this.Pn==-1&&this.Y6&&(this.Pn=this.Eo().B.C);this.zm.B=0;S=this.Zo();W.isVisible()&&$q(this.zm,"vs");S&&$q(this.zm,"vw");mI(W.volume)&&$q(this.zm,"am");d3(W)?$q(this.zm,"a"):$q(this.zm,"mut");this.Mv&&$q(this.zm,"f");W.N!=-1&&($q(this.zm,"bm"),W.N==1&&($q(this.zm,"b"),d3(W)&&$q(this.zm,"umutb")));d3(W)&&W.isVisible()&&$q(this.zm,"avs");this.d2&&S&&$q(this.zm,"avw");W.Ed>0&&$q(this.zm, "pv");W4(this,this.Eo().B.C,!0)&&$q(this.zm,"gdr");XF(this.Eo().N,1)>=2E3&&$q(this.zm,"pmx");this.uY&&$q(this.zm,"tvoff")}; g.V.xq=function(){return new tB}; g.V.Eo=function(){return this.BB}; g.V.y3=function(){return new Ksj}; g.V.sN=function(S,W,m,a){S=Rp.prototype.sN.call(this,S,W,m,a===void 0?-1:a);S.fullscreen=this.Mv;S.paused=this.GT();S.volume=m.volume;mI(S.volume)||(this.vv++,W=this.B4,mI(W.volume)&&(S.volume=W.volume));m=m.currentTime;S.mediaTime=m!==void 0&&m>=0?m:-1;return S}; g.V.Mb=function(S){return JB(),this.Mv?1:Rp.prototype.Mb.call(this,S)}; g.V.zw=function(){return 1}; g.V.getDuration=function(){return this.B}; g.V.RR=function(){return this.DY?2:X3D(this)?5:this.Zo()?4:3}; g.V.h7=function(){return this.M2?this.Eo().X.B>=2E3?4:3:2}; g.V.q1=function(S){this.KP&&this.KP.q1(S)};var f2P=g.P9();hql.prototype.reset=function(){this.C=[];this.N=[]}; var zf=es(hql);g.u(Gf,TA);g.V=Gf.prototype;g.V.getName=function(){return(this.N?this.N:this.C).getName()}; g.V.Xl=function(){return(this.N?this.N:this.C).Xl()}; g.V.qZ=function(){return(this.N?this.N:this.C).qZ()}; g.V.init=function(S){var W=!1;(0,g.V3)(this.B,function(m){m.initialize()&&(W=!0)}); W&&(this.j=S,Yq(this.C,this));return W}; g.V.dispose=function(){(0,g.V3)(this.B,function(S){S.dispose()}); TA.prototype.dispose.call(this)}; g.V.hq=function(){return ap(this.B,function(S){return S.ZU()})}; g.V.EA=function(){return ap(this.B,function(S){return S.ZU()})}; g.V.FZ=function(S,W,m){return new op(S,this.C,W,m)}; g.V.gg=function(S){this.N=S.N};var cTX={threshold:[0,.3,.5,.75,1]};g.u(KV,op);g.V=KV.prototype;g.V.observe=function(){var S=this;this.vn||(this.vn=b3());if(u$7(298,function(){return D$7(S)}))return!0; this.N.fail("msf");return!1}; g.V.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.S?(this.S.unobserve(this.element),this.S=null):this.Z&&(this.Z.disconnect(),this.Z=null)}catch(S){}}; g.V.u4=function(){var S=Tf(this);S.length>0&&qO(this,S);op.prototype.u4.call(this)}; g.V.gx=function(){}; g.V.f7=function(){return!1}; g.V.YD=function(){}; g.V.Xl=function(){var S={};return Object.assign(this.N.Xl(),(S.niot_obs=this.vn,S.niot_cbk=this.N2,S))}; g.V.getName=function(){return"nio"};g.u(pV,TA);pV.prototype.getName=function(){return"nio"}; pV.prototype.EA=function(){return!JB().N&&this.C.C.B.IntersectionObserver!=null}; pV.prototype.FZ=function(S,W,m){return new KV(S,this.C,W,m)};g.u(FA,yJ);FA.prototype.YI=function(){return JB().C}; FA.prototype.ZU=function(){var S=Sy7();this.S!==S&&(this.C!=this&&S>this.C.S&&(this.C=this,GA(this)),this.S=S);return S==2};Vz.prototype.sample=function(){uX(this,yz(),!1)}; Vz.prototype.j=function(){var S=EH(),W=b3();S?(rx||(C2=W,g.V3(zf.C,function(m){var a=m.Eo();a.g2=AB(a,W,m.tp!=1)})),rx=!0):(this.Z=Bs6(this,W),rx=!1,RqX=W,g.V3(zf.C,function(m){m.m3&&(m.Eo().S=W)})); uX(this,yz(),!S)}; var nV=es(Vz);var zuc=null,oC="",bX=!1;var GZc=YyP().PY,OX=YyP().XR;var qyP={mS2:"visible",ApD:"audible",z__:"time",FPn:"timetype"},p2P={visible:function(S){return/^(100|[0-9]{1,2})$/.test(S)}, audible:function(S){return S=="0"||S=="1"}, timetype:function(S){return S=="mtos"||S=="tos"}, time:function(S){return/^(100|[0-9]{1,2})%$/.test(S)||/^([0-9])+ms$/.test(S)}}; Ts6.prototype.setTime=function(S,W,m){W=="ms"?(this.B=S,this.j=-1):(this.B=-1,this.j=S);this.X=m===void 0?"tos":m;return this};g.u(v4,ZJ);v4.prototype.getId=function(){return this.Z}; v4.prototype.V=function(){return!0}; v4.prototype.C=function(S){var W=S.Eo(),m=S.getDuration();return ap(this.S,function(a){if(a.C!=void 0)var J=VUD(a,W);else b:{switch(a.X){case "mtos":J=a.N?W.X.B:W.B.C;break b;case "tos":J=a.N?W.X.C:W.B.C;break b}J=0}J==0?a=!1:(a=a.B!=-1?a.B:m!==void 0&&m>0?a.j*m:-1,a=a!=-1&&J>=a);return a})};g.u(H4,Fsl);H4.prototype.C=function(S){var W=new p3Q;W.C=kq(S,iJK);W.N=kq(S,I2_);return W};g.u(lX,ZJ);lX.prototype.C=function(S){return X3D(S)};g.u(MO,gMc);g.u(UX,ZJ);UX.prototype.C=function(S){return S.Eo().Zo()};g.u(dM,NY);dM.prototype.C=function(S){var W=g.oZ(this.Z,Ak(u3().PU,"ovms"));return!S.DY&&(S.tp!=0||W)};g.u(IC,MO);IC.prototype.N=function(){return new dM(this.C)}; IC.prototype.B=function(){return[new UX("viewable_impression",this.C),new lX(this.C)]};g.u(P4,r3);P4.prototype.j=function(){var S=g.v9("ima.admob.getViewability"),W=Ak(this.PU,"queryid");typeof S==="function"&&W&&S(W)}; P4.prototype.getName=function(){return"gsv"};g.u(fV,TA);fV.prototype.getName=function(){return"gsv"}; fV.prototype.EA=function(){var S=JB();u3();return S.N&&!1}; fV.prototype.FZ=function(S,W,m){return new P4(this.C,W,m)};g.u(kd,r3);kd.prototype.j=function(){var S=this,W=g.v9("ima.bridge.getNativeViewability"),m=Ak(this.PU,"queryid");typeof W==="function"&&m&&W(m,function(a){g.UC(a)&&S.Z++;var J=a.opt_nativeViewVisibleBounds||{},B=a.opt_nativeViewHidden;S.C=lc7(a.opt_nativeViewBounds||{});var E=S.N.j;E.C=B?Pn6.clone():lc7(J);S.timestamp=a.opt_nativeTime||-1;JB().C=E.C;a=a.opt_nativeVolume;a!==void 0&&(E.volume=a)})}; kd.prototype.getName=function(){return"nis"};g.u($d,TA);$d.prototype.getName=function(){return"nis"}; $d.prototype.EA=function(){var S=JB();u3();return S.N&&!1}; $d.prototype.FZ=function(S,W,m){return new kd(this.C,W,m)};g.u(hW,yJ);g.V=hW.prototype;g.V.ZU=function(){return this.N.nR!=null}; g.V.TX=function(){var S={};this.s9&&(S.mraid=this.s9);this.q2&&(S.mlc=1);S.mtop=this.N.vB6;this.Z&&(S.mse=this.Z);this.Hn&&(S.msc=1);S.mcp=this.N.compatibility;return S}; g.V.D6=function(S){var W=g.VH.apply(1,arguments);try{return this.N.nR[S].apply(this.N.nR,W)}catch(m){Ns(538,m,.01,function(a){a.method=S})}}; g.V.initialize=function(){var S=this;if(this.isInitialized)return!this.lk();this.isInitialized=!0;if(this.N.compatibility===2)return this.Z="ng",this.fail("w"),!1;if(this.N.compatibility===1)return this.Z="mm",this.fail("w"),!1;JB().S=!0;this.B.document.readyState&&this.B.document.readyState=="complete"?gi6(this):MY(this.B,"load",function(){i4().setTimeout(ZK(292,function(){return gi6(S)}),100)},292); return!0}; g.V.zI=function(){var S=JB(),W=vi7(this,"getMaxSize");S.C=new rY(0,W.width,W.height,0)}; g.V.FH=function(){JB().j=vi7(this,"getScreenSize")}; g.V.dispose=function(){joG(this);yJ.prototype.dispose.call(this)};var kyO=new function(S,W){this.key=S;this.defaultValue=W===void 0?!1:W;this.valueType="boolean"}("45378663");g.V=AW.prototype;g.V.v3=function(S){ep(S,!1);NcQ(S)}; g.V.If=function(){}; g.V.Y3=function(S,W,m,a){var J=this;S=new cv(t8,S,m?W:-1,7,this.aG(),this.XO());S.BQ=a;YQP(S.PU);tk(S.PU,"queryid",S.BQ);S.nV("");yTX(S,function(){return J.oR.apply(J,g.x(g.VH.apply(0,arguments)))},function(){return J.S9N.apply(J,g.x(g.VH.apply(0,arguments)))}); (a=es(Yd).C)&&JTc(S,a);this.B&&(S.q1(this.B),this.B=null);S.Nn.bL&&es(W9_);return S}; g.V.l0=function(S){switch(S.qZ()){case 0:if(S=es(Yd).C)S=S.C,g.Sm(S.X,this),S.bY&&this.IN()&&xUP(S);NO();break;case 2:sX()}}; g.V.gg=function(){}; g.V.IN=function(){return!1}; g.V.S9N=function(S,W){S.DY=!0;switch(S.zw()){case 1:Ru6(S,W);break;case 2:this.lW(S)}}; g.V.Q2X=function(S){var W=S.Z(S);W&&(W=W.volume,S.M2=mI(W)&&W>0);lOQ(S,0);return aC(S,"start",EH())}; g.V.kC=function(S,W,m){uX(nV,[S],!EH());return this.FR(S,W,m)}; g.V.FR=function(S,W,m){return aC(S,m,EH())}; g.V.d2n=function(S){return Dl(S,"firstquartile",1)}; g.V.pnY=function(S){S.Y6=!0;return Dl(S,"midpoint",2)}; g.V.eqQ=function(S){return Dl(S,"thirdquartile",3)}; g.V.U22=function(S){var W=Dl(S,"complete",4);DJ(S);return W}; g.V.lQn=function(S){S.tp=3;return aC(S,"error",EH())}; g.V.l5=function(S,W,m){W=EH();if(S.GT()&&!W){var a=S.Eo(),J=b3();a.S=J}uX(nV,[S],!W);S.GT()&&(S.tp=1);return aC(S,m,W)}; g.V.Rq6=function(S,W){W=this.kC(S,W||{},"skip");DJ(S);return W}; g.V.Y9U=function(S,W){ep(S,!0);return this.kC(S,W||{},"fullscreen")}; g.V.fQn=function(S,W){ep(S,!1);return this.kC(S,W||{},"exitfullscreen")}; g.V.A8=function(S,W,m){W=S.Eo();var a=b3();W.g2=AB(W,a,S.tp!=1);uX(nV,[S],!EH());S.tp==1&&(S.tp=2);return aC(S,m,EH())}; g.V.kND=function(S){uX(nV,[S],!EH());return S.N()}; g.V.dW=function(S){uX(nV,[S],!EH());this.Kt(S);DJ(S);return S.N()}; g.V.oR=function(){}; g.V.lW=function(){}; g.V.Kt=function(){}; g.V.Dv=function(){}; g.V.yC=function(){}; g.V.XO=function(){this.C||(this.C=this.yC());return this.C==null?new b9:new IC(this.C)}; g.V.aG=function(){return new H4};g.u(wM,ZJ);wM.prototype.C=function(S){return S.h7()==4};g.u(SL,NY);SL.prototype.C=function(S){S=S.h7();return S==3||S==4};g.u(WM,MO);WM.prototype.N=function(){return new SL(this.C)}; WM.prototype.B=function(){return[new wM(this.C)]};g.u(m4,Fsl);m4.prototype.C=function(S){S&&(S.e===28&&(S=Object.assign({},S,{avas:3})),S.vs===4||S.vs===5)&&(S=Object.assign({},S,{vs:3}));var W=new p3Q;W.C=kq(S,d3P);W.N=kq(S,I2_);return W};dIc.prototype.N=function(){return g.v9(this.C)};g.u(aD,AW);g.V=aD.prototype;g.V.If=function(S,W){var m=this,a=es(Yd);if(a.C!=null)switch(a.C.getName()){case "nis":var J=kZP(this,S,W);break;case "gsv":J=fsP(this,S,W);break;case "exc":J=$IQ(this,S)}J||(W.opt_overlayAdElement?J=void 0:W.opt_adElement&&(J=xI_(this,S,W.opt_adElement,W.opt_osdId)));J&&J.zw()==1&&(J.Z==g.Zt&&(J.Z=function(B){return m.Dv(B)}),Plj(this,J,W)); return J}; g.V.Dv=function(S){S.N=0;S.Xn=0;if(S.j=="h"||S.j=="n"){u3();S.hX&&(u3(),CV(this)!="h"&&CV(this));var W=g.v9("ima.common.getVideoMetadata");if(typeof W==="function")try{var m=W(S.BQ)}catch(J){S.N|=4}else S.N|=2}else if(S.j=="b")if(W=g.v9("ytads.bulleit.getVideoMetadata"),typeof W==="function")try{m=W(S.BQ)}catch(J){S.N|=4}else S.N|=2;else if(S.j=="ml")if(W=g.v9("ima.common.getVideoMetadata"),typeof W==="function")try{m=W(S.BQ)}catch(J){S.N|=4}else S.N|=2;else S.N|=1;S.N||(m===void 0?S.N|=8:m===null? S.N|=16:g.UC(m)?S.N|=32:m.errorCode!=null&&(S.Xn=m.errorCode,S.N|=64));m==null&&(m={});W=m;S.S=0;for(var a in MfP)W[a]==null&&(S.S|=MfP[a]);iWD(W,"currentTime");iWD(W,"duration");mI(m.volume)&&mI()&&(m.volume*=NaN);return m}; g.V.yC=function(){u3();CV(this)!="h"&&CV(this);var S=huP(this);return S!=null?new dIc(S):null}; g.V.lW=function(S){!S.C&&S.DY&&c4(this,S,"overlay_unmeasurable_impression")&&(S.C=!0)}; g.V.Kt=function(S){S.wI&&(S.Zo()?c4(this,S,"overlay_viewable_end_of_session_impression"):c4(this,S,"overlay_unviewable_impression"),S.wI=!1)}; g.V.oR=function(){}; g.V.Y3=function(S,W,m,a){if(u3().flags.QD(kyO)){var J=Ak(u3().PU,"mm"),B={};(J=(B[sg.oJ]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",B[sg.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",B)[J])&&Nsj(this,J);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Ns(1044,Error())}S=AW.prototype.Y3.call(this,S,W,m,a);this.X&&(W=this.V,S.X==null&&(S.X=new YLP),W.C[S.BQ]=S.X,S.X.X=f2P);return S}; g.V.v3=function(S){S&&S.zw()==1&&this.X&&delete this.V.C[S.BQ];return AW.prototype.v3.call(this,S)}; g.V.XO=function(){this.C||(this.C=this.yC());return this.C==null?new b9:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new WM(this.C):new IC(this.C)}; g.V.aG=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new m4:new H4}; g.V.q1=function(S,W,m,a,J){W=new rY(m,W+a,m+J,W);(S=EX(zf,S))?S.q1(W):this.B=W}; var $3c=A0(193,oic,void 0,euX);g.j$("Goog_AdSense_Lidar_sendVastEvent",$3c);var hyG=ZK(194,function(S,W){W=W===void 0?{}:W;S=ZWD(es(aD),S,W);return bW_(S)}); g.j$("Goog_AdSense_Lidar_getViewability",hyG);var tfP=A0(195,function(){return h_c()}); g.j$("Goog_AdSense_Lidar_getUrlSignalsArray",tfP);var AMc=ZK(196,function(){return JSON.stringify(h_c())}); g.j$("Goog_AdSense_Lidar_getUrlSignalsList",AMc);var cLP=g.oK(["//ep2.adtrafficquality.google/sodar/",""]),DI6=g.oK(["//tpc.googlesyndication.com/sodar/",""]);g.u(EO,Error);g.u(Yv,g.A);Yv.prototype.FA=function(){return this.wpc.f()}; Yv.prototype.qC=function(S){this.wpc.c(S)}; Yv.prototype.Iq=function(S){return this.wpc.m(mR7(S))}; Yv.prototype.UZ=function(S){return this.wpc.mws(mR7(S))}; g.u(zu,g.A);zu.prototype.snapshot=function(S){return this.u$.s(Object.assign({},S.Gw&&{c:S.Gw},S.DX&&{s:S.DX},S.ly!==void 0&&{p:S.ly}))}; zu.prototype.ib=function(S){this.u$.e(S)}; zu.prototype.aD=function(){return this.u$.l()};g.u(KY,g.A);KY.prototype.share=function(){if(this.TN())throw Error("E:AD");this.N++;return this}; KY.prototype.dispose=function(){--this.N||g.A.prototype.dispose.call(this)};yi6.prototype.Am=function(S,W){this.C.Am("/client_streamz/bg/frs",S,W)}; YlP.prototype.Am=function(S,W,m,a,J,B){this.C.Am("/client_streamz/bg/wrl",S,W,m,a,J,B)}; Gpj.prototype.WG=function(S,W){this.C.lZ("/client_streamz/bg/ec",S,W)}; KTP.prototype.Am=function(S,W,m){this.C.Am("/client_streamz/bg/el",S,W,m)}; TA6.prototype.WG=function(S,W){this.C.lZ("/client_streamz/bg/cec",S,W)}; qll.prototype.WG=function(S,W){this.C.lZ("/client_streamz/bg/po/csc",S,W)}; peO.prototype.WG=function(S,W){this.C.lZ("/client_streamz/bg/po/ctav",S,W)}; FT6.prototype.WG=function(S,W){this.C.lZ("/client_streamz/bg/po/cwsc",S,W)};g.u(VqQ,Z0);g.u(pY,Z0);var OO=[1,2,3];var ZJP=[0,OO,XJG,ncP,j7P];var NgP=[0,ab,[0,Yul,TgG]];g.u(F_,Z0);var gG=[1,2,3];var bJP=[0,gG,pJj,Kcl,Bx,NgP];g.u(VB,Z0);var ocO=[0,ab,ZJP,bJP];var rM6=[0,mE];g.u(nY,Z0);var CnP=[0,mE,-1,OJX];var cM6=[0,mE,-1,Fcj,OJX];g.u(sO,Z0);var rOl=[1,2,3];var D36=[0,rOl,Bx,CnP,Bx,cM6,Bx,rM6];g.u(uM,Z0);uM.prototype.iS=function(){var S=v2(this,3,Ce,3,!0);zM(S);return S[void 0]};uM.prototype.B=bX6([0,mE,D36,Q7X,ab,ocO,s77,unO]);g.u(sFQ,Z0);g.V=jL.prototype;g.V.isEnabled=function(){if(!g.OQ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xf:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.V.set=function(S,W,m){var a=!1;if(typeof m==="object"){var J=m.sameSite;a=m.secure||!1;var B=m.domain||void 0;var E=m.path||void 0;var y=m.xf}if(/[;=\s]/.test(S))throw Error('Invalid cookie name "'+S+'"');if(/[;\r\n]/.test(W))throw Error('Invalid cookie value "'+W+'"');y===void 0&&(y=-1);m=B?";domain="+B:"";E=E?";path="+E:"";a=a?";secure":"";y=y<0?"":y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+y*1E3)).toUTCString();this.C.cookie=S+"="+W+m+E+y+a+(J!=null? ";samesite="+J:"")}; g.V.get=function(S,W){for(var m=S+"=",a=(this.C.cookie||"").split(";"),J=0,B;J=0;W--)this.remove(S[W])}; var PL=new jL(typeof document=="undefined"?null:document);X_.prototype.compress=function(S){var W,m,a,J;return g.k(function(B){switch(B.C){case 1:return W=new CompressionStream("gzip"),m=(new Response(W.readable)).arrayBuffer(),a=W.writable.getWriter(),g.P(B,a.write((new TextEncoder).encode(S)),2);case 2:return g.P(B,a.close(),3);case 3:return J=Uint8Array,g.P(B,m,4);case 4:return B.return(new J(B.N))}})}; X_.prototype.isSupported=function(S){return S<1024?!1:typeof CompressionStream!=="undefined"};g.u(vM,Z0);HM.prototype.setInterval=function(S){this.intervalMs=S;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; HM.prototype.start=function(){var S=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){S.tick()},this.intervalMs),this.N=this.C())}; HM.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; HM.prototype.tick=function(){var S=this;if(this.enabled){var W=Math.max(this.C()-this.N,0);W0?m:void 0));m=gs(m,4,eZ(J>0?J:void 0));m=gs(m,5,eZ(B>0?B:void 0));J=m.x6;B=J[ms]|0;m=EL(m,B)?m:TZ(m,J,B)?qI(m,J):new m.constructor(KW(J,B,!0));Zs(E,g.UO,10,m)}E=this.C.clone();m=Date.now().toString();E=gs(E,4,AT(m));S=NI(E,PM,3,S.slice());a&&(E=new lM,a=gs(E,13,eZ(a)),E= new Mr,a=Zs(E,lM,2,a),E=new ID,a=Zs(E,Mr,1,a),a=aF(a,2,9),Zs(S,ID,18,a));W&&Sq(S,14,W);return S};g.tV.prototype.N=0;g.tV.prototype.reset=function(){this.C=this.B=this.j;this.N=0}; g.tV.prototype.getValue=function(){return this.B};g.u(p2,Z0);var wJc=Fd(p2);g.u(A8O,Z0);var pl;pl=new ZXl;g.u(bM,g.A);g.V=bM.prototype;g.V.j9=function(){Nr(this);this.N.stop();this.s9.stop();g.A.prototype.j9.call(this)}; g.V.dispatch=function(S){if(S instanceof PM)this.log(S);else try{var W=new PM,m=S.Rp();var a=We(W,8,m);this.log(a)}catch(J){oD(this,4,1)}}; g.V.log=function(S){oD(this,2,1);if(this.Hn){S=S.clone();var W=this.zN++;S=Sq(S,21,W);this.componentId&&We(S,26,this.componentId);W=S;var m=sy(W,1);var a=a===void 0?!1:a;var J=typeof m;a=m==null?m:J==="bigint"?String(P3(64,m)):Rj(m)?J==="string"?Ij(m):a?fe(m):tT(m):void 0;a==null&&(a=Date.now(),a=Number.isFinite(a)?a.toString():"0",gs(W,1,AT(a)));(dc?Hac(sy(W,15,void 0,void 0,oj)):Hac(sy(W,15)))!=null||Sq(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(a=this.experimentIds.clone(),Zs(W, vM,16,a));oD(this,1,1);W=this.C.length-1E3+1;W>0&&(this.C.splice(0,W),this.j+=W,oD(this,3,W));this.C.push(S);this.Fm||this.N.enabled||this.N.start()}}; g.V.flush=function(S,W){var m=this;if(this.C.length===0)S&&S();else if(this.Pn&&this.N2)this.B.N=3,tq6(this);else{var a=Date.now();if(this.g2>a&&this.Xn0&&(m.Xn=Date.now(),m.g2=m.Xn+p);p=fn(W2);var O;W3&&p&&((O=q.x6[p])==null?void 0:O[175237375])!=null&&Dc(A7c,3);a:{var X=X===void 0?!1:X;if(fn(ZHj)&&fn(W2)&&void 0===ZHj){O=q.x6;p=O[W2];if(!p)break a;if(p=p.Cf)try{p(O,175237375,c77);break a}catch(l){If(l)}}X&&(X=q.x6, (O=fn(W2))&&O in X&&(X=X[O])&&delete X[175237375])}X=pl.C?pl.N(q,pl.C,175237375,pl.B):pl.N(q,175237375,null,pl.B);if(X=X===null?void 0:X)X=g.oo(X,1,-1),X!==-1&&(m.X=new g.tV(X<1?1:X,3E5,.1),m.N.setInterval(m.X.getValue()))}}S&&S();m.V=0},K=function(p,q){var F=AL(B,PM,3); var O=Number(at6(B,14));g.AV(m.X);m.N.setInterval(m.X.getValue());p===401&&E&&(m.O9=E);O&&(m.j+=O);q===void 0&&(q=m.isRetryable(p));q&&(m.C=F.concat(m.C),m.Fm||m.N.enabled||m.N.start());oD(m,7,1);W&&W("net-send-failed",p);++m.V},T=function(){m.network&&m.network.send(Y,G,K)}; y?y.then(function(p){oD(m,5,J);Y.requestHeaders["Content-Encoding"]="gzip";Y.requestHeaders["Content-Type"]="application/binary";Y.body=p;Y.Cd=2;T()},function(){oD(m,6,J); T()}):T()}}}}; g.V.isRetryable=function(S){return 500<=S&&S<600||S===401||S===0};rG.prototype.send=function(S,W,m){var a=this,J,B,E,y,Y,G,K,T,p,q;return g.k(function(F){switch(F.C){case 1:return B=(J=a.KI?new AbortController:void 0)?setTimeout(function(){J.abort()},S.timeoutMillis):void 0,g.EQ(F,2,3),E=Object.assign({},{method:S.requestType, headers:Object.assign({},S.requestHeaders)},S.body&&{body:S.body},S.withCredentials&&{credentials:"include"},{signal:S.timeoutMillis&&J?J.signal:null}),g.P(F,fetch(S.url,E),5);case 5:y=F.N;if(y.status!==200){(Y=m)==null||Y(y.status);F.cn(3);break}if((G=W)==null){F.cn(7);break}return g.P(F,y.text(),8);case 8:G(F.N);case 7:case 3:g.Kn(F);clearTimeout(B);g.Tg(F,0);break;case 2:K=g.Gg(F);switch((T=K)==null?void 0:T.name){case "AbortError":(p=m)==null||p(408);break;default:(q=m)==null||q(400)}F.cn(3)}})}; rG.prototype.q$=function(){return 4};g.u(CY,g.A);CY.prototype.sU=function(){this.j=!0;return this}; CY.prototype.build=function(){this.network||(this.network=new rG);var S=new bM({logSource:this.logSource,s0:this.s0?this.s0:UR_,sessionIndex:this.sessionIndex,bkX:this.Nm,V6:this.B,Fm:!1,sU:this.j,DP:this.DP,network:this.network});g.Z(this,S);if(this.buildLabel){var W=this.buildLabel,m=hV(S.B);We(m,7,W)}S.Z=new X_;this.componentId&&(S.componentId=this.componentId);this.Lp&&(S.Lp=this.Lp);this.pageId&&(S.pageId=this.pageId);this.C&&((m=this.C)?(S.experimentIds||(S.experimentIds=new vM),W=S.experimentIds, m=m.Rp(),We(W,4,m)):S.experimentIds&&gs(S.experimentIds,4));this.N&&(S.Pn=S.N2);PW6(S.B);this.network.Wi&&this.network.Wi(this.logSource);this.network.xP6&&this.network.xP6(S);return S};g.u(cM,g.A);cM.prototype.flush=function(S){S=S||[];if(S.length){for(var W=new sFQ,m=[],a=0;a-1?(W=S[E],m||(W.rN=!1)):(W=new ciO(W,this.src,B,!!a,J),W.rN=m,S.push(W));return W}; g.V.remove=function(S,W,m,a){S=S.toString();if(!(S in this.listeners))return!1;var J=this.listeners[S];W=yc(J,W,m,a);return W>-1?(BQ(J[W]),g.c9(J,W),J.length==0&&(delete this.listeners[S],this.C--),!0):!1}; g.V.removeAll=function(S){S=S&&S.toString();var W=0,m;for(m in this.listeners)if(!S||m==S){for(var a=this.listeners[m],J=0;J-1?S[J]:null}; g.V.hasListener=function(S,W){var m=S!==void 0,a=m?S.toString():"",J=W!==void 0;return g.K6(this.listeners,function(B){for(var E=0;E>>0);g.$p(g.ng,g.A);g.ng.prototype[rij]=!0;g.V=g.ng.prototype;g.V.addEventListener=function(S,W,m,a){g.GU(this,S,W,m,a)}; g.V.removeEventListener=function(S,W,m,a){J0K(this,S,W,m,a)}; g.V.dispatchEvent=function(S){var W=this.au;if(W){var m=[];for(var a=1;W;W=W.au)m.push(W),++a}W=this.JB;a=S.type||S;if(typeof S==="string")S=new g.mA(S,W);else if(S instanceof g.mA)S.target=S.target||W;else{var J=S;S=new g.mA(a,W);g.iH(S,J)}J=!0;var B;if(m)for(B=m.length-1;!S.N&&B>=0;B--){var E=S.currentTarget=m[B];J=sI(E,a,!0,S)&&J}S.N||(E=S.currentTarget=W,J=sI(E,a,!0,S)&&J,S.N||(J=sI(E,a,!1,S)&&J));if(m)for(B=0;!S.N&&B0){this.N--;var S=this.C;this.C=S.next;S.next=null}else S=this.B();return S};var OI;Qc.prototype.add=function(S,W){var m=GnP.get();m.set(S,W);this.N?this.N.next=m:this.C=m;this.N=m}; Qc.prototype.remove=function(){var S=null;this.C&&(S=this.C,this.C=this.C.next,this.C||(this.N=null),S.next=null);return S}; var GnP=new um(function(){return new Xr},function(S){return S.reset()}); Xr.prototype.set=function(S,W){this.C=S;this.scope=W;this.next=null}; Xr.prototype.reset=function(){this.next=this.scope=this.C=null};var vQ,HQ=!1,y0l=new Qc;KbP.prototype.reset=function(){this.context=this.N=this.B=this.C=null;this.j=!1}; var Tx6=new um(function(){return new KbP},function(S){S.reset()}); g.UI.prototype.then=function(S,W,m){return O26(this,g6(typeof S==="function"?S:null),g6(typeof W==="function"?W:null),m)}; g.UI.prototype.$goog_Thenable=!0;g.V=g.UI.prototype;g.V.finally=function(S){var W=this;S=g6(S);return new g.UI(function(m,a){Vxj(W,function(J){S();m(J)},function(J){S(); a(J)})})}; g.V.QB=function(S,W){return O26(this,null,g6(S),W)}; g.V.catch=g.UI.prototype.QB;g.V.cancel=function(S){if(this.C==0){var W=new d6(S);g.lm(function(){nJG(this,W)},this)}}; g.V.mpD=function(S){this.C=0;Mk(this,2,S)}; g.V.Y$2=function(S){this.C=0;Mk(this,3,S)}; g.V.sS=function(){for(var S;S=svX(this);)ud_(this,S,this.C,this.Z);this.V=!1}; var vJK=If;g.$p(d6,tN);d6.prototype.name="cancel";g.$p(g.Iz,g.ng);g.V=g.Iz.prototype;g.V.enabled=!1;g.V.SD=null;g.V.setInterval=function(S){this.eS=S;this.SD&&this.enabled?(this.stop(),this.start()):this.SD&&this.stop()}; g.V.ZWU=function(){if(this.enabled){var S=g.P9()-this.Nq;S>0&&S0&&(this.getStatus(),this.V=setTimeout(this.I5.bind(this), this.N2)),this.getStatus(),this.bY=!0,this.C.send(S),this.bY=!1}catch(E){this.getStatus(),$sK(this,E)}}; g.V.I5=function(){typeof bm!="undefined"&&this.C&&(this.j="Timed out after "+this.N2+"ms, aborting",this.N=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.V.abort=function(S){this.C&&this.B&&(this.getStatus(),this.B=!1,this.X=!0,this.C.abort(),this.X=!1,this.N=S||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Nk(this))}; g.V.j9=function(){this.C&&(this.B&&(this.B=!1,this.X=!0,this.C.abort(),this.X=!1),Nk(this,!0));g.ZM.uQ.j9.call(this)}; g.V.LS=function(){this.TN()||(this.q2||this.bY||this.X?hIc(this):this.Oa_())}; g.V.Oa_=function(){hIc(this)}; g.V.isActive=function(){return!!this.C}; g.V.isComplete=function(){return g.oz(this)==4}; g.V.getStatus=function(){try{return g.oz(this)>2?this.C.status:-1}catch(S){return-1}}; g.V.getResponseHeader=function(S){if(this.C&&this.isComplete())return S=this.C.getResponseHeader(S),S===null?void 0:S}; g.V.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};w6.prototype.send=function(S,W,m){W=W===void 0?function(){}:W; m=m===void 0?function(){}:m; fKP(S.url,function(a){a=a.target;r6(a)?W(g.Cg(a)):m(a.getStatus())},S.requestType,S.body,S.requestHeaders,S.timeoutMillis,S.withCredentials)}; w6.prototype.q$=function(){return 1};WH.prototype.done=function(){this.logger.ey(this.event,S8()-this.startTime)}; g.u(mM,KY);g.u(JX,mM);g.V=JX.prototype;g.V.EZ=function(){}; g.V.pE=function(){}; g.V.ey=function(){}; g.V.Xy=function(){}; g.V.MZ=function(){}; g.V.gt=function(S,W,m,a){return a}; g.V.QR=function(){}; g.V.pO=function(){}; g.V.Rf=function(){}; g.u(BH,mM);g.V=BH.prototype;g.V.update=function(S){this.logger.dispose();this.logger=S}; g.V.pE=function(S){this.logger.pE(S)}; g.V.ey=function(S,W){this.logger.ey(S,W)}; g.V.Xy=function(S){this.logger.Xy(S)}; g.V.MZ=function(){this.logger.MZ()}; g.V.gt=function(S,W,m,a){return this.logger.gt(S,W,m,a)}; g.V.QR=function(S){this.logger.QR(S)}; g.V.pO=function(S){this.logger.pO(S)}; g.V.Rf=function(S){this.logger.Rf(S)}; g.V.EZ=function(S){this.logger.EZ(S)}; g.u(Nxc,g.A);g.u(Ei,mM);g.V=Ei.prototype;g.V.EZ=function(S){this.metrics.jaQ.Am(S,this.xB)}; g.V.pE=function(S){this.metrics.eventCount.WG(S,this.xB)}; g.V.ey=function(S,W){this.metrics.Tt.Am(W,S,this.xB)}; g.V.Xy=function(S){this.metrics.errorCount.WG(S,this.xB)}; g.V.gt=function(S,W,m,a){function J(y){if(!B.TN()){var Y=S8()-E;B.metrics.wQ2.Am(Y,S,m,y,W,B.xB)}} var B=this,E=S8();a.then(function(){return void J(0)},function(y){return void J(y instanceof $F?y.code:-1)}); return a}; g.V.QR=function(S){this.metrics.cY2.WG(S,this.xB)}; g.V.pO=function(S){this.metrics.NL.WG(S,this.xB)}; g.V.Rf=function(S){this.metrics.AYY.WG(S,this.xB)}; g.u(zh,Ei);zh.prototype.MZ=function(){b2G(this.C)};g.u(y$,Z0);g.u(YZ,Z0);g.u(Gh,Z0);var Eql=Fd(Gh),r0X=function(S){return Rf(function(W){return W instanceof S&&!EL(W)})}(Gh); Gh.messageId="bfkj";g.u(Gu,Z0);g.u(KR,Z0);var C37=Fd(KR);g.u(ql,g.A);ql.prototype.snapshot=function(S){if(this.TN())throw Error("Already disposed");this.logger.pE("n");var W=this.logger.share();return this.B.then(function(m){var a=m.RW;return new Promise(function(J){var B=new WH(W,"n");a(function(E){B.done();W.EZ(E.length);W.MZ();W.dispose();J(E)},[S.Gw, S.DX,S.mJ,S.ly])})})}; ql.prototype.Xe=function(S){var W=this;if(this.TN())throw Error("Already disposed");this.logger.pE("n");var m=a9(this.logger,function(){return W.j([S.Gw,S.DX,S.mJ,S.ly])},"n"); this.logger.EZ(m.length);this.logger.MZ();return m}; ql.prototype.ib=function(S){this.B.then(function(W){var m;(m=W.zP9)==null||m(S)})}; ql.prototype.aD=function(){return this.logger.share()};g.u(V$,Z0);g.u(nR,Z0);si.prototype.JU=function(S){return GAD(this,S,new JX,0)};g.u(us,g.A);g.V=us.prototype;g.V.snapshot=function(S){var W=this;return g.k(function(m){switch(m.C){case 1:if(W.TN())throw Error("Already disposed");if(W.N||W.Z){m.cn(2);break}return g.P(m,W.X.promise,2);case 2:if(!W.N){m.cn(4);break}return g.P(m,W.N.snapshot(S),5);case 5:return m.return(m.N);case 4:throw W.Z;}})}; g.V.pause=function(){this.TN()||this.isPaused||(this.isPaused=!0,this.C&&this.C.pause())}; g.V.resume=function(){!this.TN()&&this.isPaused&&(this.isPaused=!1,this.C&&this.C.resume())}; g.V.checkForRefresh=function(){var S=this;return g.k(function(W){if(S.TN())throw Error("Already disposed");var m;if(m=S.C)m=S.C,m.isExpired()?(Q$(m),m.mL(0),m=!0):m=!1,m=!m;return m?W.cn(0):g.P(W,S.B.promise,0)})}; g.V.ib=function(S){var W,m;(W=this.N)==null||(m=W.ib)==null||m.call(W,S)}; g.V.handleError=function(S){if(!this.TN()){this.Z=S;this.X.resolve();var W,m;(m=(W=this.options).bPU)==null||m.call(W,S)}}; g.V.aD=function(){return this.logger.share()}; var qH6={arY:432E5,OF:3E5,pY:10,sz:1E4,gw:3E4,Jvn:3E4,COD:6E4,Gt:1E3,Pt:6E4,Xk:6E5,Wt:.25,Ag:2,maxAttempts:10};j8.prototype.pause=function(){this.isPaused||(this.isPaused=!0,Q$(this))}; j8.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; j8.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var mPp,QpO=(mPp=Math.imul)!=null?mPp:function(S,W){return S*W|0},vH=[196, 200,224,18];HH.prototype.Rp=function(){return String(this.C)+","+this.N.join()}; HH.prototype.LJ=function(S,W){var m=void 0;if(this.N[this.C]!==S){var a=this.N.indexOf(S);a!==-1?(this.N.splice(a,1),a0;)W[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(S%62),S=Math.floor(S/62);return W.join("")}};g.u(Ml,g.A);Ml.prototype.UZ=function(S,W){var m=this.Iq(S);W==null||W(m);return a9(this.logger,function(){return g.fh(m,2)},this.N)}; g.u(R9,Ml);R9.prototype.Iq=function(S,W){var m=this;this.logger.pE(this.C);++this.X>=this.V&&this.B.resolve();var a=S();S=a9(this.logger,function(){return m.j(a)},"C"); if(S===void 0)throw new EO(17,"YNJ:Undefined");if(!(S instanceof Uint8Array))throw new EO(18,"ODM:Invalid");W==null||W(S);return S}; g.u(e8,Ml);e8.prototype.Iq=function(){return this.j}; g.u(xZ,Ml);xZ.prototype.Iq=function(){var S=this;return a9(this.logger,function(){return $r(S.j)},"d")}; xZ.prototype.UZ=function(){return this.j}; g.u(is,Ml);is.prototype.Iq=function(){if(this.j)return this.j;this.j=IJO(this,function(S){return"_"+dYQ(S)}); return IJO(this,function(S){return S})}; g.u(I9,Ml);I9.prototype.Iq=function(){var S=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],m=W.concat([this.j&255,this.clientState],[S>>24&255,S>>16&255,S>>8&255,S&255]);S=new Uint8Array(2+m.length);S[0]=34;S[1]=m.length;S.set(m,2);m=S.subarray(2);for(var a=W=W.length;a150))try{this.cache=new LIK(S,this.logger)}catch(W){this.reportError(new EO(22,"GBJ:init",W))}}; g.V.reportError=function(S){this.logger.Xy(S.code);this.onError(S);return S}; var kA7=function(S){return Rf(function(W){if(!hY_(W))return!1;for(var m=g.R(Object.entries(S)),a=m.next();!a.done;a=m.next()){var J=g.R(a.value);a=J.next().value;J=J.next().value;if(!(a in W)){if(J.z49===!0)continue;return!1}if(!J(W[a]))return!1}return!0})}({u$:function(S){return Rf(function(W){return W instanceof S})}(us)},"");C9c.prototype.WG=function(S,W){this.C.lZ("/client_streamz/youtube/aba/gac",S,W)};var Uk7=(new Date).getTime();g.u(hX,Z0);var a6Q=Fd(hX);cBP.prototype.getMetadata=function(){return this.metadata};tX.prototype.getMetadata=function(){return this.metadata}; tX.prototype.getStatus=function(){return this.status};AX.prototype.V=function(S,W){W=W===void 0?{}:W;return new cBP(S,this,W)}; AX.prototype.getName=function(){return this.name};var JGw=new AX("/google.internal.waa.v1.Waa/Create",V$,hX,function(S){return S.Rp()},a6Q);g.u(Zw,Z0);var yBP=new AX("/google.internal.waa.v1.Waa/GenerateIT",nR,Zw,function(S){return S.Rp()},Fd(Zw));var ll7=new Set(["SAPISIDHASH","APISIDHASH"]);g.u(Nl,Z0);Nl.prototype.getValue=function(){var S=sy(this,2);if(Array.isArray(S)||S instanceof Z0)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ll(this,2)};g.u(bs,Z0);bs.prototype.getMessage=function(){return CW(this,2)}; var alc=Fd(bs);o9.prototype.cZ=function(S,W){S==="data"?this.N.push(W):S==="metadata"?this.j.push(W):S==="status"?this.X.push(W):S==="end"?this.B.push(W):S==="error"&&this.C.push(W)}; o9.prototype.removeListener=function(S,W){S==="data"?w0(this.N,W):S==="metadata"?w0(this.j,W):S==="status"?w0(this.X,W):S==="end"?w0(this.B,W):S==="error"&&w0(this.C,W);return this}; o9.prototype.cancel=function(){this.xhr.abort()}; g.u(wvl,Error);g.$p(g.S6,IKX);g.S6.prototype.C=function(){var S=new WP(this.j,this.B);this.N&&S.setCredentialsMode(this.N);return S}; g.S6.prototype.setCredentialsMode=function(S){this.N=S}; g.$p(WP,g.ng);g.V=WP.prototype;g.V.open=function(S,W){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.vn=S;this.N2=W;this.readyState=1;mu(this)}; g.V.send=function(S){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.S.signal.aborted)throw this.abort(),Error("Request was aborted.");this.C=!0;var W={headers:this.bY,method:this.vn,credentials:this.X,cache:void 0,signal:this.S.signal};S&&(W.body=S);(this.q2||g.OQ).fetch(new Request(this.N2,W)).then(this.hqn.bind(this),this.c_.bind(this))}; g.V.abort=function(){this.response=this.responseText="";this.bY=new Headers;this.status=0;this.S.abort("Request was aborted.");this.B&&this.B.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.C&&this.readyState!=4&&(this.C=!1,aG(this));this.readyState=0}; g.V.hqn=function(S){if(this.C&&(this.j=S,this.N||(this.status=this.j.status,this.statusText=this.j.statusText,this.N=S.headers,this.readyState=2,mu(this)),this.C&&(this.readyState=3,mu(this),this.C)))if(this.responseType==="arraybuffer")S.arrayBuffer().then(this.zq9.bind(this),this.c_.bind(this));else if(typeof g.OQ.ReadableStream!=="undefined"&&"body"in S){this.B=S.body.getReader();if(this.V){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.Z=new TextDecoder;JWP(this)}else S.text().then(this.FUD.bind(this),this.c_.bind(this))}; g.V.O_2=function(S){if(this.C){if(this.V&&S.value)this.response.push(S.value);else if(!this.V){var W=S.value?S.value:new Uint8Array(0);if(W=this.Z.decode(W,{stream:!S.done}))this.response=this.responseText+=W}S.done?aG(this):mu(this);this.readyState==3&&JWP(this)}}; g.V.FUD=function(S){this.C&&(this.response=this.responseText=S,aG(this))}; g.V.zq9=function(S){this.C&&(this.response=S,aG(this))}; g.V.c_=function(){this.C&&aG(this)}; g.V.setRequestHeader=function(S,W){this.bY.append(S,W)}; g.V.getResponseHeader=function(S){return this.N?this.N.get(S.toLowerCase())||"":""}; g.V.getAllResponseHeaders=function(){if(!this.N)return"";for(var S=[],W=this.N.entries(),m=W.next();!m.done;)m=m.value,S.push(m[0]+": "+m[1]),m=W.next();return S.join("\r\n")}; g.V.setCredentialsMode=function(S){this.X=S}; Object.defineProperty(WP.prototype,"withCredentials",{get:function(){return this.X==="include"}, set:function(S){this.setCredentialsMode(S?"include":"same-origin")}});g.Xl.prototype.toString=function(){var S=[],W=this.X;W&&S.push(Ku(W,B7g,!0),":");var m=this.C;if(m||W=="file")S.push("//"),(W=this.S)&&S.push(Ku(W,B7g,!0),"@"),S.push(g.hx(m).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m=this.B,m!=null&&S.push(":",String(m));if(m=this.N)this.C&&m.charAt(0)!="/"&&S.push("/"),S.push(Ku(m,m.charAt(0)=="/"?EX9:zQ8,!0));(m=this.j.toString())&&S.push("?",m);(m=this.V)&&S.push("#",Ku(m,yGZ));return S.join("")}; g.Xl.prototype.resolve=function(S){var W=this.clone(),m=!!S.X;m?g.EG(W,S.X):m=!!S.S;m?W.S=S.S:m=!!S.C;m?g.v_(W,S.C):m=S.B!=null;var a=S.N;if(m)g.ze(W,S.B);else if(m=!!S.N){if(a.charAt(0)!="/")if(this.C&&!this.N)a="/"+a;else{var J=W.N.lastIndexOf("/");J!=-1&&(a=W.N.slice(0,J+1)+a)}J=a;if(J==".."||J==".")a="";else if(g.cF(J,"./")||g.cF(J,"/.")){a=rh(J,"/");J=J.split("/");for(var B=[],E=0;E1||B.length==1&&B[0]!="")&&B.pop(), a&&E==J.length&&B.push("")):(B.push(y),a=!0)}a=B.join("/")}else a=J}m?W.N=a:m=S.j.toString()!=="";m?y1(W,S.j.clone()):m=!!S.V;m&&(W.V=S.V);return W}; g.Xl.prototype.clone=function(){return new g.Xl(this)}; var B7g=/[#\/\?@]/g,zQ8=/[#\?:]/g,EX9=/[#\?]/g,YXQ=/[#\?@]/g,yGZ=/#/g;g.V=Ge.prototype;g.V.add=function(S,W){qG(this);this.B=null;S=pu(this,S);var m=this.C.get(S);m||this.C.set(S,m=[]);m.push(W);this.N=this.N+1;return this}; g.V.remove=function(S){qG(this);S=pu(this,S);return this.C.has(S)?(this.B=null,this.N=this.N-this.C.get(S).length,this.C.delete(S)):!1}; g.V.clear=function(){this.C=this.B=null;this.N=0}; g.V.isEmpty=function(){qG(this);return this.N==0}; g.V.forEach=function(S,W){qG(this);this.C.forEach(function(m,a){m.forEach(function(J){S.call(W,J,a,this)},this)},this)}; g.V.gq=function(){qG(this);for(var S=Array.from(this.C.values()),W=Array.from(this.C.keys()),m=[],a=0;a0?String(S[0]):W}; g.V.toString=function(){if(this.B)return this.B;if(!this.C)return"";for(var S=[],W=Array.from(this.C.keys()),m=0;m>>3;B.B!=1&&B.B!=2&&B.B!=15&&sG(B,E,y,"unexpected tag");B.C=1;B.N=0;B.j=0} function m(Y){B.j++;B.j==5&&Y&240&&sG(B,E,y,"message length too long");B.N|=(Y&127)<<(B.j-1)*7;Y&128||(B.C=2,B.S=0,typeof Uint8Array!=="undefined"?B.X=new Uint8Array(B.N):B.X=Array(B.N),B.N==0&&J())} function a(Y){B.X[B.S++]=Y;B.S==B.N&&J()} function J(){if(B.B<15){var Y={};Y[B.B]=B.X;B.Z.push(Y)}B.C=0} for(var B=this,E=S instanceof Array?S:new Uint8Array(S),y=0;y0?S:null};ue.prototype.isInputValid=function(){return this.C===null}; ue.prototype.TY=function(){return this.C}; ue.prototype.vF=function(){return!1}; ue.prototype.parse=function(S){this.C!==null&&ndQ(this,S,"stream already broken");var W=null;try{var m=this.B;m.B||VK7(m,S,"stream already broken");m.C+=S;var a=Math.floor(m.C.length/4);if(a==0)var J=null;else{try{var B=WW7(m.C.slice(0,a*4))}catch(E){VK7(m,m.C,E.message)}m.N+=a*4;m.C=m.C.slice(a*4);J=B}W=J===null?null:this.j.parse(J)}catch(E){ndQ(this,S,E.message)}this.N+=S.length;return W};g.V=OG.prototype;g.V.isInputValid=function(){return this.X!=3}; g.V.TY=function(){return this.bY}; g.V.done=function(){return this.X===2}; g.V.vF=function(){return!1}; g.V.parse=function(S){function W(){for(;T0;)if(q=S[T++],B.S===4?B.S=0:B.S++,!q)break a;if(q==='"'&&!B.Z){B.C=a();break}if(q==="\\"&&!B.Z&&(B.Z=!0,q=S[T++], !q))break;if(B.Z)if(B.Z=!1,q==="u"&&(B.S=1),q=S[T++])continue;else break;y.lastIndex=T;q=y.exec(S);if(!q){T=S.length+1;break}T=q.index+1;q=S[q.index];if(!q)break}B.B+=T-F;continue;case 9:if(!q)continue;q==="r"?B.C=10:j6(B,S,T);continue;case 10:if(!q)continue;q==="u"?B.C=11:j6(B,S,T);continue;case 11:if(!q)continue;q==="e"?B.C=a():j6(B,S,T);continue;case 12:if(!q)continue;q==="a"?B.C=13:j6(B,S,T);continue;case 13:if(!q)continue;q==="l"?B.C=14:j6(B,S,T);continue;case 14:if(!q)continue;q==="s"?B.C=15: j6(B,S,T);continue;case 15:if(!q)continue;q==="e"?B.C=a():j6(B,S,T);continue;case 16:if(!q)continue;q==="u"?B.C=17:j6(B,S,T);continue;case 17:if(!q)continue;q==="l"?B.C=18:j6(B,S,T);continue;case 18:if(!q)continue;q==="l"?B.C=a():j6(B,S,T);continue;case 19:q==="."?B.C=20:j6(B,S,T);continue;case 20:if("0123456789.eE+-".indexOf(q)!==-1)continue;else T--,B.B--,B.C=a();continue;default:j6(B,S,T)}}} function a(){var q=E.pop();return q!=null?q:1} function J(q){B.N>1||(q||(q=K===-1?B.j+S.substring(G,T):S.substring(K,T)),B.N2?B.V.push(q):B.V.push(JSON.parse(q)),K=T)} for(var B=this,E=B.vn,y=B.q2,Y=S.length,G=0,K=-1,T=0;T0?(p=B.V,B.V=[],p):null}return null};Q1.prototype.isInputValid=function(){return this.X===null}; Q1.prototype.TY=function(){return this.X}; Q1.prototype.vF=function(){return!1}; Q1.prototype.parse=function(S){function W(Y){B.N=6;B.X="The stream is broken @"+B.C+"/"+E+". Error: "+Y+". With input:\n";throw Error(B.X);} function m(){B.B=new OG({qp2:!0,Uz:!0})} function a(Y){if(Y)for(var G=0;G1)&&W("extra status: "+Y);B.V=!0;var G={};G[2]=Y[0];B.j.push(G)}} for(var B=this,E=0;E0?(S=B.j,B.j=[],S):null};Xc.prototype.gW=function(){return this.C}; Xc.prototype.getStatus=function(){return this.X}; Xc.prototype.N2=function(S){S=S.target;try{if(S==this.C)a:{var W=g.oz(this.C),m=this.C.N,a=this.C.getStatus(),J=g.Cg(this.C);S=[];if(g.cQ(this.C)instanceof Array){var B=g.cQ(this.C);B.length>0&&B[0]instanceof Uint8Array&&(this.bY=!0,S=B)}if(!(W<3||W==3&&!J&&S.length==0))if(a=a==200||a==206,W==4&&(m==8?vP(this,7):m==7?vP(this,8):a||vP(this,3)),this.N||(this.N=sCl(this.C),this.N==null&&vP(this,5)),this.X>2)HP(this);else{if(S.length>this.B){var E=S.length;m=[];try{if(this.N.vF())for(var y=0;ythis.B){y=J.slice(this.B);this.B=J.length;try{var G=this.N.parse(y);G!=null&&this.j&&this.j(G)}catch(K){vP(this,5);HP(this);break a}}W==4?(J.length!= 0||this.bY?vP(this,2):vP(this,4),HP(this)):vP(this,1)}}}catch(K){vP(this,6),HP(this)}};g.V=uA6.prototype;g.V.cZ=function(S,W){var m=this.N[S];m||(m=[],this.N[S]=m);m.push(W)}; g.V.addListener=function(S,W){this.cZ(S,W);return this}; g.V.removeListener=function(S,W){var m=this.N[S];m&&g.Sm(m,W);(S=this.C[S])&&g.Sm(S,W);return this}; g.V.once=function(S,W){var m=this.C[S];m||(m=[],this.C[S]=m);m.push(W);return this}; g.V.pUD=function(S){var W=this.N.data;W&&gd6(S,W);(W=this.C.data)&&gd6(S,W);this.C.data=[]}; g.V.vt2=function(){switch(this.B.getStatus()){case 1:le(this,"readable");break;case 5:case 6:case 4:case 7:case 3:le(this,"error");break;case 8:le(this,"close");break;case 2:le(this,"end")}};OVc.prototype.serverStreaming=function(S,W,m,a){var J=this,B=S.substring(0,S.length-a.name.length);return MKP(function(E){var y=E.lw,Y=E.getMetadata(),G=X4_(J,!1);Y=vdj(J,Y,G,B+y.getName());var K=HVc(G,y.N,!0);E=y.C(E.F9);G.send(Y,"POST",E);return K},this.J9).call(this,a.V(W,m))};UOG.prototype.create=function(S,W,m){var a=this.C,J=this.N+"/$rpc/google.internal.waa.v1.Waa/Create";W=W||{};m=m===void 0?{}:m;return YHP(a,J,S,W,JGw,m)};var BIP,UeP,NPX,GjZ,KDZ,T7g,mfD,WPK,wKP,S36,qPx,py,ak7,qj,Cvc,RgO,eg6,NBl,r3_,iic,FDg,a4,AfD,VON,nXZ,sKN,VQ_,um6,sy7,$wP,IH,sWj;BIP=new MG(45745123,!1);UeP=new MG(45742118,!1);NPX=new MG(45742119,!1);GjZ=new MG(45739196,!1);KDZ=new MG(45739198,!1);T7g=new MG(45739197,!1);mfD=new UG(45746966,0);WPK=new UG(45746967,0);wKP=new UG(45737488,0);S36=new UG(45737489,0);qPx=new MG(45736776,!1);py=new MG(45738227,!1);ak7=new MG(45732791,!1);qj=new MG(45728572,!1);g.p_N=new MG(45742954,!1); Cvc=new MG(45742469,!1);RgO=new MG(45737482,!1);eg6=new UG(45741773,0);NBl=new MG(45732704,!0);r3_=new MG(45731083,!1);iic=new MG(45728553,!1);FDg=new MG(45734191,!1);a4=new MG(45745610,!1);AfD=new MG(45735523,!1);VON=new UG(45735428,4E3);nXZ=new MG(45735462,!1);sKN=new MG(45727949,!1);VQ_=new MG(45728181,!1);um6=new MG(45746180,!1);sy7=new MG(45740357,!1);$wP=new MG(45733155,!1);IH=new MG(45732481,!1);sWj=new MG(45732775,!1);g.ulZ=new MG(45734776,!1);var JH7=new UG(45725542,0),B9j=new UG(45739023,0),z6P=new UG(45743228,0),ael=new UG(45725543,0),SpP=new UG(45725539,0),meO=new UG(45725541,0),WRc=new UG(45725540,0),wx_=new UG(45725538,0),yH7=new UG(45747053,0),Ewj=new UG(45741339,0);var ehP="://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(" "),xOG=/\bocr\b/;var dOP=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.u(IlP,Z0);g.u(PXP,Z0);g.u(RG,Z0);RG.prototype.getName=function(){return CW(this,1)}; RG.prototype.getOptions=function(){return hL(this,PXP,3)}; RG.prototype.clearOptions=function(){return gs(this,3)};g.u(e6,Z0);g.V=e6.prototype;g.V.getName=function(){return CW(this,1)}; g.V.getOptions=function(){return hL(this,IlP,3)}; g.V.clearOptions=function(){return gs(this,3)}; g.V.iO=function(){return c2(this,6)}; g.V.Fz=function(S){aF(this,6,S)};var $O_=function(S){return function(W){W=JSON.parse(W);if(!Array.isArray(W))throw Error("Expected jspb data to be an array, got "+lw(W)+": "+W);aj(W,34);return new S(W)}}(e6);var kfP=Symbol();var tKQ=Symbol();Object.assign({},{attributes:{},handleError:function(S){throw S;}},{Lx2:!0, rRX:!0,JRQ:Lfc,zv6:Lfc,FxQ:RYP,hv2:!1,D_9:!1,IIN:!1,Kx9:!0,gN2:!1,oN2:!1,U5n:!1});var ie=null,IG=!1,W4O=1,DOP=Symbol("SIGNAL"),FS={version:0,D59:0,WY:!1,producers:void 0,NU:void 0,Ot:void 0,uu:void 0,zx:!1,oM:!1,Cv:!1,kind:"unknown",tF:function(){return!1}, Wp:function(){}, Ac:function(){}, TaY:function(){}};var Vy=Symbol("UNSET"),nl=Symbol("COMPUTING"),s0=Symbol("ERRORED");Object.assign({},FS,{value:Vy,WY:!0,error:null,AA:xA,kind:"computed",tF:function(S){return S.value===Vy||S.value===nl}, Wp:function(S){if(S.value===nl)throw Error("");var W=S.value;S.value=nl;var m=bVP(S),a=!1;try{var J=S.tH();dj(null);a=W!==Vy&&W!==s0&&J!==s0&&S.AA(W,J)}catch(B){J=s0,S.error=B}finally{dj(m),S&&rWD(S)}a?S.value=W:(S.value=J,S.version++)}});Object.assign({},FS,{Cv:!0,oM:!0,WY:!0,kind:"effect"});var cWP=Object.assign({},FS,{AA:xA,value:void 0,kind:"signal"});Object.assign({},FS,{value:Vy,WY:!0,error:null,AA:xA,kind:"linkedSignal",tF:function(S){return S.value===Vy||S.value===nl}, Wp:function(S){if(S.value===nl)throw Error("");var W=S.value;S.value=nl;var m=bVP(S);try{var a=S.source();var J=S.tH(a,W===Vy||W===s0?void 0:{source:S.IF9,value:W});S.IF9=a}catch(B){J=s0,S.error=B}finally{dj(m),S&&rWD(S)}W!==Vy&&J!==s0&&S.AA(W,J)?S.value=W:(S.value=J,S.version++)}});Object.assign({},FS,{Cv:!0,oM:!1,Ac:function(S){S.schedule!==null&&S.schedule(S.HrD)}, P4q:function(){}});g.u($A,g.ng);$A.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.XQ.bZ(this.X);delete $A.instance}; $A.prototype.AV=function(){return this.C}; $A.prototype.i$=function(){var S=this;this.X=this.XQ.U$(function(){var W;return g.k(function(m){if(m.C==1)return S.C?((W=window.navigator)==null?0:W.onLine)?m.cn(3):g.P(m,kA(S),3):g.P(m,kA(S),3);S.i$();g.B9(m)})},3E4)};g.u(agX,Z0);var aoO=NYX(agX,[0,z2,U36,Fcj,z2,-2,Fcj,TgG]);t6.prototype.set=function(S,W){W=W===void 0?!0:W;0<=S&&S<52&&Number.isInteger(S)&&this.data[S]!==W&&(this.data[S]=W,this.C=-1)}; t6.prototype.get=function(S){return!!this.data[S]};var Zh;g.$p(g.oG,g.A);g.V=g.oG.prototype;g.V.start=function(){this.stop();this.j=!1;var S=BGQ(this),W=EvK(this);S&&!W&&this.N.mozRequestAnimationFrame?(this.C=g.GU(this.N,"MozBeforePaint",this.B),this.N.mozRequestAnimationFrame(null),this.j=!0):this.C=S&&W?S.call(this.N,this.B):this.N.setTimeout(ThG(this.B),20)}; g.V.stop=function(){if(this.isActive()){var S=BGQ(this),W=EvK(this);S&&!W&&this.N.mozRequestAnimationFrame?pg(this.C):S&&W?W.call(this.N,this.C):this.N.clearTimeout(this.C)}this.C=null}; g.V.isActive=function(){return this.C!=null}; g.V.a5=function(){this.j&&this.C&&pg(this.C);this.C=null;this.V.call(this.X,g.P9())}; g.V.j9=function(){this.stop();g.oG.uQ.j9.call(this)};g.$p(g.rj,g.A);g.V=g.rj.prototype;g.V.g5=0;g.V.j9=function(){g.rj.uQ.j9.call(this);this.stop();delete this.C;delete this.N}; g.V.start=function(S){this.stop();this.g5=g.PQ(this.B,S!==void 0?S:this.eS)}; g.V.stop=function(){this.isActive()&&g.OQ.clearTimeout(this.g5);this.g5=0}; g.V.isActive=function(){return this.g5!=0}; g.V.UM=function(){this.g5=0;this.C&&this.C.call(this.N)};g.u(g.wj,g.A);g.V=g.wj.prototype;g.V.hk=function(S){this.B=arguments;this.SD||this.N?this.C=!0:Sy(this)}; g.V.stop=function(){this.SD&&(g.OQ.clearTimeout(this.SD),this.SD=null,this.C=!1,this.B=null)}; g.V.pause=function(){this.N++}; g.V.resume=function(){this.N--;this.N||!this.C||this.SD||(this.C=!1,Sy(this))}; g.V.j9=function(){g.A.prototype.j9.call(this);this.stop()};g.Wn.prototype[Symbol.iterator]=function(){return this}; g.Wn.prototype.next=function(){var S=this.C.next();return{value:S.done?void 0:this.N.call(void 0,S.value),done:S.done}};g.$p(g.KE,g.ng);g.V=g.KE.prototype;g.V.isPlaying=function(){return this.C==1}; g.V.isPaused=function(){return this.C==-1}; g.V.Zh=function(){this.Q4("begin")}; g.V.SJ=function(){this.Q4("end")}; g.V.onFinish=function(){this.Q4("finish")}; g.V.onStop=function(){this.Q4("stop")}; g.V.Q4=function(S){this.dispatchEvent(S)};var gX$=N1(function(){var S=g.HI("DIV"),W=g.ju?"-webkit":af?"-moz":null,m="transition:opacity 1s linear;";W&&(m+=W+"-transition:opacity 1s linear;");W=WXl({style:m});if(S.nodeType===1&&/^(script|style)$/i.test(S.tagName))throw Error("");S.innerHTML=UR(W);return g.Jb(S.firstChild,"transition")!=""});g.$p(TD,g.KE);g.V=TD.prototype;g.V.play=function(){if(this.isPlaying())return!1;this.Zh();this.Q4("play");this.startTime=g.P9();this.C=1;if(gX$())return g.mg(this.N,this.V),this.B=g.PQ(this.ff9,void 0,this),!0;this.Sa(!1);return!1}; g.V.ff9=function(){g.ph(this.N);YOc(this.N,this.Z);g.mg(this.N,this.j);this.B=g.PQ((0,g.dN)(this.Sa,this,!1),this.X*1E3)}; g.V.stop=function(){this.isPlaying()&&this.Sa(!0)}; g.V.Sa=function(S){g.mg(this.N,"transition","");g.OQ.clearTimeout(this.B);g.mg(this.N,this.j);this.endTime=g.P9();this.C=0;if(S)this.onStop();else this.onFinish();this.SJ()}; g.V.j9=function(){this.stop();TD.uQ.j9.call(this)}; g.V.pause=function(){};var K4G={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};qc("Element","attributes")||qc("Node","attributes");qc("Element","innerHTML")||qc("HTMLElement","innerHTML");qc("Node","nodeName");qc("Node","nodeType");qc("Node","parentNode");qc("Node","childNodes");qc("HTMLElement","style")||qc("Element","style");qc("HTMLStyleElement","sheet");var nvX=qOP("getPropertyValue"),sDG=qOP("setProperty");qc("Element","namespaceURI")||qc("Node","namespaceURI");var VLQ={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var jDX,g4P,OYP,gvP,QDD;jDX=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]");g4P=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.O6w=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.FN=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]");OYP=/^http:\/\/.*/;g.jKZ=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");gvP=/\s+/;QDD=/[\d\u06f0-\u06f9]/;nE.prototype.Ky=function(){return new so(this.N())}; nE.prototype[Symbol.iterator]=function(){return new u6(this.N())}; nE.prototype.C=function(){return new u6(this.N())}; g.u(so,g.xq);so.prototype.next=function(){return this.N.next()}; so.prototype[Symbol.iterator]=function(){return new u6(this.N)}; so.prototype.C=function(){return new u6(this.N)}; g.u(u6,nE);u6.prototype.next=function(){return this.B.next()};Oo.prototype.clone=function(){return new Oo(this.C,this.Z,this.B,this.X,this.j,this.V,this.N,this.S)}; Oo.prototype.equals=function(S){return this.C==S.C&&this.Z==S.Z&&this.B==S.B&&this.X==S.X&&this.j==S.j&&this.V==S.V&&this.N==S.N&&this.S==S.S};Qt.prototype.clone=function(){return new Qt(this.start,this.end)};(function(){if(lxP){var S=/Windows NT ([0-9.]+)/;return(S=S.exec(g.mW()))?S[1]:"0"}return Qk?(S=/1[0|1][_.][0-9_.]+/,(S=S.exec(g.mW()))?S[0].replace(/_/g,"."):"10"):g.mm?(S=/Android\s+([^\);]+)(\)|;)/,(S=S.exec(g.mW()))?S[1]:""):iHG||dh_||Ivl?(S=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(S=S.exec(g.mW()))?S[1].replace(/_/g,"."):""):""})();var HYc=function(){if(g.TW)return XN(/Firefox\/([0-9.]+)/);if(g.pE||g.ND||g.IV)return opO;if(g.y0){if(Ca()||c$()){var S=XN(/CriOS\/([0-9.]+)/);if(S)return S}return XN(/Chrome\/([0-9.]+)/)}if(g.F1&&!Ca())return XN(/Version\/([0-9.]+)/);if(wu||SY){if(S=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.mW()))return S[1]+"."+S[2]}else if(g.PT)return(S=XN(/Android\s+([0-9.]+)/))?S:XN(/Version\/([0-9.]+)/);return""}();g.$p(g.Hn,g.A);g.V=g.Hn.prototype;g.V.subscribe=function(S,W,m){var a=this.N[S];a||(a=this.N[S]=[]);var J=this.V;this.C[J]=S;this.C[J+1]=W;this.C[J+2]=m;this.V=J+3;a.push(J);return J}; g.V.unsubscribe=function(S,W,m){if(S=this.N[S]){var a=this.C;if(S=S.find(function(J){return a[J+1]==W&&a[J+2]==m}))return this.Uf(S)}return!1}; g.V.Uf=function(S){var W=this.C[S];if(W){var m=this.N[W];this.j!=0?(this.B.push(S),this.C[S+1]=function(){}):(m&&g.Sm(m,S),delete this.C[S],delete this.C[S+1],delete this.C[S+2])}return!!W}; g.V.publish=function(S,W){var m=this.N[S];if(m){var a=Array(arguments.length-1),J=arguments.length,B;for(B=1;B0&&this.j==0)for(;m=this.B.pop();)this.Uf(m)}}return B!=0}return!1}; g.V.clear=function(S){if(S){var W=this.N[S];W&&(W.forEach(this.Uf,this),delete this.N[S])}else this.C.length=0,this.N={}}; g.V.j9=function(){g.Hn.uQ.j9.call(this);this.clear();this.B.length=0};g.l6.prototype.set=function(S,W){W===void 0?this.vZ.remove(S):this.vZ.set(S,g.hs(W))}; g.l6.prototype.get=function(S){try{var W=this.vZ.get(S)}catch(m){return}if(W!==null)try{return JSON.parse(W)}catch(m){throw"Storage: Invalid value was encountered";}}; g.l6.prototype.remove=function(S){this.vZ.remove(S)};g.$p(Mc,g.l6);Mc.prototype.set=function(S,W){Mc.uQ.set.call(this,S,UrP(W))}; Mc.prototype.U0=function(S){S=Mc.uQ.get.call(this,S);if(S===void 0||S instanceof Object)return S;throw"Storage: Invalid value was encountered";}; Mc.prototype.get=function(S){if(S=this.U0(S)){if(S=S.data,S===void 0)throw"Storage: Invalid value was encountered";}else S=void 0;return S};g.$p(Uo,Mc);Uo.prototype.set=function(S,W,m){if(W=UrP(W)){if(m){if(m=m.length)return g.G2;var J=m.key(W++);if(S)return g.i9(J);J=m.getItem(J);if(typeof J!=="string")throw"Storage mechanism: Invalid value was encountered";return g.i9(J)}; return a}; g.V.clear=function(){xC(this);this.C.clear()}; g.V.key=function(S){xC(this);return this.C.key(S)};g.$p(i6,ey);g.$p(e7j,ey);g.$p(dt,Ra);dt.prototype.set=function(S,W){this.N.set(this.C+S,W)}; dt.prototype.get=function(S){return this.N.get(this.C+S)}; dt.prototype.remove=function(S){this.N.remove(this.C+S)}; dt.prototype.Ky=function(S){var W=this.N[Symbol.iterator](),m=this,a=new g.xq;a.next=function(){var J=W.next();if(J.done)return J;for(J=J.value;J.slice(0,m.C.length)!=m.C;){J=W.next();if(J.done)return J;J=J.value}return g.i9(S?J.slice(m.C.length):m.N.get(J))}; return a};Pn.prototype.getValue=function(){return this.N}; Pn.prototype.clone=function(){return new Pn(this.C,this.N)};g.V=fE.prototype;g.V.LJ=function(S,W){var m=this.C;m.push(new Pn(S,W));S=m.length-1;W=this.C;for(m=W[S];S>0;){var a=S-1>>1;if(W[a].C>m.C)W[S]=W[a],S=a;else break}W[S]=m}; g.V.remove=function(){var S=this.C,W=S.length,m=S[0];if(!(W<=0)){if(W==1)S.length=0;else{S[0]=S.pop();S=0;W=this.C;for(var a=W.length,J=W[S];S>1;){var B=S*2+1,E=S*2+2;B=EJ.C)break;W[S]=W[B];S=B}W[S]=J}return m.getValue()}}; g.V.eQ=function(){for(var S=this.C,W=[],m=S.length,a=0;a>>16&65535|0;for(var B;m!==0;){B=m>2E3?2E3:m;m-=B;do J=J+W[a++]|0,S=S+J|0;while(--B);J%=65521;S%=65521}return J|S<<16|0};for(var FC={},u$,l6Z=[],go=0;go<256;go++){u$=go;for(var MOx=0;MOx<8;MOx++)u$=u$&1?3988292384^u$>>>1:u$>>>1;l6Z[go]=u$}FC=function(S,W,m,a){m=a+m;for(S^=-1;a>>8^l6Z[(S^W[a])&255];return S^-1};var B6={};B6={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 DV=[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],W6=[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],JsP=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bY7=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Yn=Array(576);AU(Yn);var Gz=Array(60);AU(Gz);var SC=Array(512);AU(SC);var cn=Array(256);AU(cn);var wt=Array(29);AU(wt);var mt=Array(30);AU(mt);var WAj,mkl,aMO,SI_=!1;var Ow;Ow=[new gr(0,0,0,0,function(S,W){var m=65535;for(m>S.qy-5&&(m=S.qy-5);;){if(S.RL<=1){VA(S);if(S.RL===0&&W===0)return 1;if(S.RL===0)break}S.wd+=S.RL;S.RL=0;var a=S.YG+m;if(S.wd===0||S.wd>=a)if(S.RL=S.wd-a,S.wd=a,KK(S,!1),S.zk.YP===0)return 1;if(S.wd-S.YG>=S.PQ-262&&(KK(S,!1),S.zk.YP===0))return 1}S.LJ=0;if(W===4)return KK(S,!0),S.zk.YP===0?3:4;S.wd>S.YG&&KK(S,!1);return 1}), new gr(4,4,8,4,nK),new gr(4,5,16,8,nK),new gr(4,6,32,32,nK),new gr(4,4,16,16,uj),new gr(8,16,32,32,uj),new gr(8,16,128,128,uj),new gr(8,32,128,256,uj),new gr(32,128,258,1024,uj),new gr(32,258,258,4096,uj)];var wMD={};wMD=function(){this.input=null;this.j5=this.HQ=this.By=0;this.output=null;this.IC=this.YP=this.zv=0;this.msg="";this.state=null;this.tU=2;this.wc=0};var B6l=Object.prototype.toString; H6.prototype.push=function(S,W){var m=this.zk,a=this.options.chunkSize;if(this.ended)return!1;var J=W===~~W?W:W===!0?4:0;typeof S==="string"?m.input=drQ(S):B6l.call(S)==="[object ArrayBuffer]"?m.input=new Uint8Array(S):m.input=S;m.By=0;m.HQ=m.input.length;do{m.YP===0&&(m.output=new tU.cS(a),m.zv=0,m.YP=a);S=Dr_(m,J);if(S!==1&&S!==0)return this.SJ(S),this.ended=!0,!1;if(m.YP===0||m.HQ===0&&(J===4||J===2))if(this.options.to==="string"){var B=tU.hC(m.output,m.zv);W=B;B=B.length;if(B<65537&&(W.subarray&& H6n||!W.subarray))W=String.fromCharCode.apply(null,tU.hC(W,B));else{for(var E="",y=0;y0||m.YP===0)&&S!==1);if(J===4)return(m=this.zk)&&m.state?(a=m.state.status,a!==42&&a!==69&&a!==73&&a!==91&&a!==103&&a!==113&&a!==666?S=Ew(m,-2):(m.state=null,S=a===113?Ew(m,-3):0)):S=-2,this.SJ(S),this.ended=!0,S===0;J===2&&(this.SJ(0),m.YP=0);return!0}; H6.prototype.SJ=function(S){S===0&&(this.result=this.options.to==="string"?this.chunks.join(""):tU.xH(this.chunks));this.chunks=[];this.err=S;this.msg=this.zk.msg};var MB="@@redux/INIT"+lj(),KAP="@@redux/REPLACE"+lj();var T66=typeof Symbol==="function"&&Symbol.observable||"@@observable";var UP9=[0,vcD,-3,E0];g.u(VVl,Z0);var RlG=NYX(VVl,[0,z2,HJ_,mE,vcD,mE,-1,E0,vcD,E0,-1,z2,E0,HJ_,ab,UP9,mE,-1,E0]);var QKc=1503962808;var LD9=function(S,W){return function(){var m=new tu6(S,W,xV);return function(){return m}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var x57=new g.R2("adInfoDialogEndpoint");var FjP=new g.R2("adPingingEndpoint");var UbD=new g.R2("crossDeviceProgressCommand");var rZ=new g.R2("actionCompanionAdRenderer");var ow=new g.R2("adActionInterstitialRenderer");var RQ$=new g.R2("adDurationRemainingRenderer");var QZ=new g.R2("adHoverTextButtonRenderer");var RSK=new g.R2("adInfoDialogRenderer");var Wk=new g.R2("adMessageRenderer");var XM=new g.R2("adPreviewRenderer");var ci=new g.R2("adsEngagementPanelRenderer");var iGP=new g.R2("dismissablePanelTextPortraitImageRenderer");var pv=new g.R2("adsEngagementPanelSectionListViewModel");var eQH=new g.R2("flyoutCtaRenderer");var Cb=new g.R2("imageCompanionAdRenderer");var N8=new g.R2("instreamAdPlayerOverlayRenderer");var k0P=new g.R2("instreamSurveyAdBackgroundImageRenderer");var jM=new g.R2("instreamSurveyAdPlayerOverlayRenderer");var yZ=new g.R2("instreamSurveyAdRenderer"),O4=new g.R2("instreamSurveyAdSingleSelectQuestionRenderer"),g5=new g.R2("instreamSurveyAdMultiSelectQuestionRenderer"),O0=new g.R2("instreamSurveyAdAnswerRenderer"),xPp=new g.R2("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var E4=new g.R2("instreamVideoAdRenderer");var i69=new g.R2("textOverlayAdContentRenderer"),dPw=new g.R2("enhancedTextOverlayAdContentRenderer"),I69=new g.R2("imageOverlayAdContentRenderer");var bQ=new g.R2("playerOverlayLayoutRenderer");var rD=new g.R2("videoInterstitialButtonedCenteredLayoutRenderer");var kaG=new g.R2("aboveFeedAdLayoutRenderer");var $LK=new g.R2("belowPlayerAdLayoutRenderer");var fED=new g.R2("inPlayerAdLayoutRenderer");var hxP=new g.R2("inPlayerOrganicOverlayAdLayoutRenderer");var Kv=new g.R2("playerBytesAdLayoutRenderer");var s4=new g.R2("playerBytesSequenceItemAdLayoutRenderer");var nv=new g.R2("playerUnderlayAdLayoutRenderer");var zV=new g.R2("adIntroRenderer");var Jf=new g.R2("playerBytesSequentialLayoutRenderer");var Ocj=new g.R2("slidingTextPlayerOverlayRenderer");var YY=new g.R2("surveyTextInterstitialRenderer");var TV=new g.R2("videoAdTrackingRenderer");var L_P=new g.R2("videoInterstitialCenteredLayoutViewModel");var PcN=new g.R2("simpleAdBadgeRenderer");var mO=new g.R2("skipAdRenderer"),f69=new g.R2("skipButtonRenderer");var uB=new g.R2("adSlotRenderer");var FM=new g.R2("squeezebackPlayerSidePanelRenderer");var kjv=new g.R2("timedPieCountdownRenderer");var Ah=new g.R2("adAvatarViewModel");var ZH=new g.R2("adBadgeViewModel");var NJ=new g.R2("adButtonViewModel");var $PN=new g.R2("adDetailsLineViewModel");var hQw=new g.R2("adDisclosureBannerViewModel");var tO9=new g.R2("adPodIndexViewModel");var AG9=new g.R2("imageBackgroundViewModel");var Z6H=new g.R2("adGridCardCollectionViewModel");var N78=new g.R2("adGridCardTextViewModel");var b69=new g.R2("adPreviewViewModel");var oX9=new g.R2("playerAdAvatarLockupCardButtonedViewModel");var rGp=new g.R2("skipAdButtonViewModel");var Cc9=new g.R2("skipAdViewModel");var cGv=new g.R2("timedPieCountdownViewModel");var DPZ=new g.R2("visitAdvertiserLinkViewModel");var Dd=new g.R2("bannerImageLayoutViewModel");var wZ=new g.R2("topBannerImageTextIconButtonedLayoutViewModel");var SM=new g.R2("adsEngagementPanelLayoutViewModel");var VZ=new g.R2("displayUnderlayTextGridCardsLayoutViewModel");g.I1=new g.R2("browseEndpoint");var w_v=new g.R2("confirmDialogEndpoint");var StQ=new g.R2("commandContext");var ZK_=new g.R2("rawColdConfigGroup");var A27=new g.R2("rawHotConfigGroup");var FX=new g.R2("commandExecutorCommand");g.u(nFD,Z0);var rSl={vWQ:0,tJU:1,Lh_:32,hr6:61,mZN:67,UZ2:103,SC9:86,gW_:42,Kh6:60,HA_:62,Fh2:73,JL9:76,loD:88,foX:90,YC9:99,ZAn:98,dZQ:100,zrn:102,pc2:41,k69:69,RrX:70,QdU:71,UzY:2,l2D:27,ANDROID:3,RC9:54,Qh9:14,vG9:91,eC9:55,uKX:24,xxD:20,M1N:18,CZn:21,b1N:104,joX:30,aJ9:29,ypN:28,AL2:101,wm2:34,Bj9:36,o8Y:38,IOS:5,rb2:15,dy2:92,JbY:40,FgN:25,hj_:17,DyX:19,Saq:64,UyN:66,lNY:26,Ya9:22,pA_:33,kf9:68,Rj9:35,fN6:53,myq:37,zjQ:39,Yl9:7,pO2:57,kaX:43,QN2:59,R_q:93,IJ9:74,e_9:75,u7_:85,xJN:65,o2D:80,CSD:8,dJ9:10, iA9:58,bA2:63,MYq:72,qqn:23,xZD:11,MJ2:13,YqD:12,mJN:16,EWn:56,DZ2:31,Fsn:77,i6n:84,rL9:87,vMU:89,N4n:94,TS9:95};g.u(eC,Z0);eC.prototype.YX=function(){return CW(this,3)}; eC.prototype.xX=function(){return CW(this,5)}; eC.prototype.N_=function(S){return We(this,5,S)};g.u(xn,Z0);g.u(szD,Z0);g.u(ij,Z0);g.V=ij.prototype;g.V.getDeviceId=function(){return CW(this,6)}; g.V.Zc=function(S){var W=v2(this,9,xM,3,!0);zM(W,S);return W[S]}; g.V.getPlayerType=function(){return c2(this,36)}; g.V.setHomeGroupInfo=function(S){return Zs(this,szD,81,S)}; g.V.clearLocationPlayabilityToken=function(){return gs(this,89)};g.u(dr,Z0);dr.prototype.getValue=function(){return CW(this,fW(this,hkX,2))}; var hkX=[2,3,4,5,6];g.u(I2,Z0);I2.prototype.setTrackingParams=function(S){return gs(this,1,qR7(S,!1))};g.u(P6,Z0);g.u(fK,Z0);fK.prototype.Zc=function(S){var W=v2(this,5,ip,3,!0);zM(W,S);return W[S]};g.u(kn,Z0);kn.prototype.getToken=function(){return ws(this,2)}; kn.prototype.setToken=function(S){return We(this,2,S)};g.u($n,Z0);$n.prototype.setSafetyMode=function(S){return aF(this,5,S)};g.u(h2,Z0);h2.prototype.GQ=function(S){return Zs(this,ij,1,S)};var HG=new g.R2("thumbnailLandscapePortraitRenderer");g.SQv=new g.R2("changeEngagementPanelVisibilityAction");var Yj_=new g.R2("continuationCommand");var W8N=new g.R2("openPopupAction");var AgK=new g.R2("signalAction");g.jt=new g.R2("webCommandMetadata");var DgK=new g.R2("metadataBadgeRenderer");var yn7=new g.R2("signalServiceEndpoint");var RY=new g.R2("innertubeCommand");var Z5K=new g.R2("loggingDirectives");var WM_={LpD:"EMBEDDED_PLAYER_MODE_UNKNOWN",ZyU:"EMBEDDED_PLAYER_MODE_DEFAULT",gVn:"EMBEDDED_PLAYER_MODE_PFP",EVN:"EMBEDDED_PLAYER_MODE_PFL"};var Hql=new g.R2("channelThumbnailEndpoint");var vT_=new g.R2("embeddedPlayerErrorMessageRenderer");var Oqc=new g.R2("embeddedPlayerOverlayVideoDetailsRenderer"),lU7=new g.R2("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),M4D=new g.R2("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var rfc=new g.R2("embedsInfoPanelRenderer");var xN6=new g.R2("feedbackEndpoint");var mxH=new g.R2("callToActionButtonViewModel");var aZw=new g.R2("interactionLoggingCommandMetadata");var r6P={OAD:"WEB_DISPLAY_MODE_UNKNOWN",TeN:"WEB_DISPLAY_MODE_BROWSER",nW6:"WEB_DISPLAY_MODE_MINIMAL_UI",VJ2:"WEB_DISPLAY_MODE_STANDALONE",sdX:"WEB_DISPLAY_MODE_FULLSCREEN"};g.u(t2,Z0);t2.prototype.getPlayerType=function(){return c2(this,7)}; t2.prototype.sy=function(){return CW(this,19)}; t2.prototype.setVideoId=function(S){return We(this,19,S)};g.u(A2,Z0);g.u(Z4,Z0);g.u(NB,Z0); var JNw=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var BNg=new g.R2("loggingContext");g.u(bj,Z0);g.u(o2,Z0);o2.prototype.sy=function(){return ws(this,fW(this,mJ,1))}; o2.prototype.setVideoId=function(S){return Io(this,1,mJ,rc(S))}; o2.prototype.getPlaylistId=function(){return ws(this,fW(this,mJ,2))}; var mJ=[1,2];g.u(g.rr,Z0);g.rr.prototype.F3=P_(0);var Epv=new g.R2("dismissPlayerOverlayCommand");var TR=new g.R2("changeKeyedMarkersVisibilityCommand");var zvp=new g.R2("changeMarkersVisibilityCommand");var S8P=new g.R2("loadMarkersCommand");var yN$=new g.R2("suggestedActionDataViewModel");var EPK=new g.R2("timelyActionViewModel");var BmP=new g.R2("timelyActionsOverlayViewModel");var ln6=new g.R2("productListItemRenderer");var YQH=new g.R2("shoppingOverlayRenderer");var jl6=new g.R2("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Ggv=new g.R2("adFeedbackEndpoint");var K8Q=new g.R2("menuEndpoint");var Rsc=new g.R2("phoneDialerEndpoint");var UNl=new g.R2("sendSmsEndpoint");var gTK=new g.R2("copyTextEndpoint");var TNZ=new g.R2("shareEndpoint"),qQH=new g.R2("shareEntityEndpoint"),p9w=new g.R2("shareEntityServiceEndpoint"),F8$=new g.R2("webPlayerShareEntityServiceEndpoint");g.Pm=new g.R2("urlEndpoint");g.GR=new g.R2("watchEndpoint");var V$H=new g.R2("watchPlaylistEndpoint");g.npp=new g.R2("offlineOrchestrationActionCommand");var IkX=new g.R2("compositeVideoOverlayRenderer");var sZw=new g.R2("miniplayerRenderer");var nTP=new g.R2("paidContentOverlayRenderer");var wiX=new g.R2("playerMutedAutoplayOverlayRenderer"),S4K=new g.R2("playerMutedAutoplayEndScreenRenderer");var bb_=new g.R2("unserializedPlayerResponse"),GVP=new g.R2("unserializedPlayerResponse");var u9$=new g.R2("playlistEditEndpoint");var vG=new g.R2("buttonRenderer"),Qy=new g.R2("toggleButtonRenderer");var exc=new g.R2("counterfactualRenderer");var gpQ=new g.R2("resolveUrlCommandMetadata");var Onn=new g.R2("modifyChannelNotificationPreferenceEndpoint");var ppD=new g.R2("pingingEndpoint");var jZH=new g.R2("unsubscribeEndpoint");g.PB=new g.R2("subscribeButtonRenderer");var QZ9=new g.R2("subscribeEndpoint");var zUl=new g.R2("buttonViewModel");var xL6=new g.R2("qrCodeRenderer");var cSX={wTY:"LIVING_ROOM_APP_MODE_UNSPECIFIED",I2n:"LIVING_ROOM_APP_MODE_MAIN",q_6:"LIVING_ROOM_APP_MODE_KIDS",a26:"LIVING_ROOM_APP_MODE_MUSIC",yeX:"LIVING_ROOM_APP_MODE_UNPLUGGED",jX2:"LIVING_ROOM_APP_MODE_GAMING"};var N5K=new g.R2("autoplaySwitchButtonRenderer");var f1,X5l,VMc,d67;f1=new g.R2("decoratedPlayerBarRenderer");X5l=new g.R2("chapteredPlayerBarRenderer");VMc=new g.R2("multiMarkersPlayerBarRenderer");d67=new g.R2("chapterRenderer");g.Mj_=new g.R2("markerRenderer");var $6l=new g.R2("decoratedPlayheadRenderer");var CBD=new g.R2("desktopOverlayConfigRenderer");var dLG=new g.R2("engagementPanelSectionListRenderer");var oYQ=new g.R2("gatedActionsOverlayViewModel");var e0K=new g.R2("heatMarkerRenderer");var R0P=new g.R2("heatmapRenderer");var wG6=new g.R2("watchToWatchTransitionRenderer");var QlP=new g.R2("playlistPanelRenderer");var X9$=new g.R2("productUpsellSuggestedActionViewModel");var vpH=new g.R2("suggestedActionTimeRangeTrigger"),HnN=new g.R2("suggestedActionsRenderer"),lZN=new g.R2("suggestedActionRenderer");var x6P=new g.R2("timedMarkerDecorationRenderer");var SPQ=new g.R2("cipher");var oWX=new g.R2("playerVars");var KL_=new g.R2("playerVars");var XS=g.OQ.window,M$9,UxH,CK=(XS==null?void 0:(M$9=XS.yt)==null?void 0:M$9.config_)||(XS==null?void 0:(UxH=XS.ytcfg)==null?void 0:UxH.data_)||{};g.j$("yt.config_",CK);var So=[];var MVl=/^[\w.]*$/,XQc={q:!0,search_query:!0},Qz6=String(J$);var qi=new function(){var S=window.document;this.C=window;this.N=S}; g.j$("yt.ads_.signals_.getAdSignalsString",function(S){return BL(Fs(S))});g.P9();var LA_="XMLHttpRequest"in g.OQ?function(){return new XMLHttpRequest}:null;var L8p="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x(L8p);var ig6={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"},N6P="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.x(L8p)),hoj=!1,fM6=lO;g.u(L0,tN);x0.prototype.then=function(S,W,m){return this.C?this.C.then(S,W,m):this.B===1&&S?(S=S.call(m,this.N))&&typeof S.then==="function"?S:du(S):this.B===2&&W?(S=W.call(m,this.N))&&typeof S.then==="function"?S:iO(S):this}; x0.prototype.getValue=function(){return this.N}; x0.prototype.$goog_Thenable=!0;var Ik=!1;var Zf=wu||SY;var wQ7=/^([0-9\.]+):([0-9\.]+)$/;g.u(FY,tN);FY.prototype.name="BiscottiError";g.u(p5,tN);p5.prototype.name="BiscottiMissingError";var awD={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Vw=null;var lZG=g.oK(["data-"]),T0O={};var Rv9=0,n5=g.ju?"webkit":af?"moz":g.pE?"ms":g.IV?"o":"",evn=g.v9("ytDomDomGetNextId")||function(){return++Rv9}; g.j$("ytDomDomGetNextId",evn);var V8D={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};Qw.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Qw.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Qw.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var XY=g.OQ.ytEventsEventsListeners||{};g.j$("ytEventsEventsListeners",XY);var uyP=g.OQ.ytEventsEventsCounter||{count:0};g.j$("ytEventsEventsCounter",uyP);var Q9j=N1(function(){var S=!1;try{var W=Object.defineProperty({},"passive",{get:function(){S=!0}}); window.addEventListener("test",null,W)}catch(m){}return S}),gZ7=N1(function(){var S=!1; try{var W=Object.defineProperty({},"capture",{get:function(){S=!0}}); window.addEventListener("test",null,W)}catch(m){}return S});var vx;vx=window;g.X1=vx.ytcsi&&vx.ytcsi.now?vx.ytcsi.now:vx.performance&&vx.performance.timing&&vx.performance.now&&vx.performance.timing.navigationStart?function(){return vx.performance.timing.navigationStart+vx.performance.now()}:function(){return(new Date).getTime()};g.$p(U2,g.A);U2.prototype.bY=function(S){S.C===void 0&&nZl(S);var W=S.C;S.N===void 0&&nZl(S);this.C=new g.an(W,S.N)}; U2.prototype.Bc=function(){return this.C||new g.an}; U2.prototype.N2=function(){if(this.C){var S=(0,g.X1)();if(this.j!=0){var W=this.V,m=this.C,a=W.x-m.x;W=W.y-m.y;a=Math.sqrt(a*a+W*W)/(S-this.j);this.N[this.B]=Math.abs((a-this.X)/this.X)>.5?1:0;for(m=W=0;m<4;m++)W+=this.N[m]||0;W>=3&&this.Z();this.X=a}this.j=S;this.V=this.C;this.B=(this.B+1)%4}}; U2.prototype.j9=function(){g.O7(this.S);g.HX(this.vn)};g.u(L5,g.A);L5.prototype.K=function(S,W,m,a,J){m=g.my((0,g.dN)(m,a||this.vv));m={target:S,name:W,callback:m};var B;J&&Q9j()&&(B={passive:!0});S.addEventListener(W,m.callback,B);this.V.push(m);return m}; L5.prototype.TC=function(S){for(var W=0;W=t.f6)||X.C.version>=h||X.C.objectStoreNames.contains(d)||M.push(d)}Y=M;if(Y.length===0){O.cn(5);break}G=Object.keys(m.options.hL); K=y.objectStoreNames();if(m.Xm.options.version+1)throw p.close(),m.B=!1,YGX(m,q);return O.return(p);case 8:throw W(),T instanceof Error&&!g.Qi("ytidb_async_stack_killswitch")&&(T.stack=T.stack+"\n"+E.substring(E.indexOf("\n")+1)),VS(T,m.name,"",(F=m.options.version)!=null?F:-1);}})} function W(){m.C===a&&(m.C=void 0)} var m=this;if(!this.B)throw YGX(this);if(this.C)return this.C;var a,J={blocking:function(B){B.close()}, closed:W,saX:W,upgrade:this.options.upgrade};return this.C=a=S()};var tn=new $o("YtIdbMeta",{hL:{databases:{f6:1}},upgrade:function(S,W){W(1)&&g.lP(S,"databases",{keyPath:"actualName"})}});var o6,bP=new function(){}(new function(){});new g.Th;g.u(cq,$o);cq.prototype.N=function(S,W,m){m=m===void 0?{}:m;return(this.options.shared?sGG:nAc)(S,W,Object.assign({},m))}; cq.prototype.delete=function(S){S=S===void 0?{}:S;return(this.options.shared?jG_:ucK)(this.name,S)};var hvN={},XPG=g.Df("ytGcfConfig",{hL:(hvN.coldConfigStore={f6:1},hvN.hotConfigStore={f6:1},hvN),shared:!1,upgrade:function(S,W){W(1)&&(g.xo(g.lP(S,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.xo(g.lP(S,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.u(mB,g.A);mB.prototype.j9=function(){for(var S=g.R(this.N),W=S.next();!W.done;W=S.next()){var m=this.C;W=m.indexOf(W.value);W>=0&&m.splice(W,1)}this.N.length=0;g.A.prototype.j9.call(this)};y_.prototype.N_=function(S){this.hotHashData=S;g.j$("yt.gcf.config.hotHashData",this.hotHashData||null)};var t$g=typeof TextEncoder!=="undefined"?new TextEncoder:null,TtG=t$g?function(S){return t$g.encode(S)}:function(S){S=g.Pr(S); for(var W=new Uint8Array(S.length),m=0;m=W?!1:!0}; g.V.d6=function(){var S=this;if(!Rr(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.KJ.Lo("QUEUED",this.lQ).then(function(W){W&&!S.D$(W,S.Vg)?S.XQ.U$(function(){return g.k(function(m){if(m.C==1)return W.id===void 0?m.cn(2):g.P(m,S.KJ.Q8(W.id,S.lQ),2);S.d6();g.B9(m)})}):S.Pr.AV()&&S.UG()})};var ir;var r2c={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336, appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358, webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376, parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394, prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418, sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540};var Znx={},L2Q=g.Df("ServiceWorkerLogsDatabase",{hL:(Znx.SWHealthLog={f6:1},Znx),shared:!0,upgrade:function(S,W){W(1)&&g.xo(g.lP(S,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var PU={},IVP=0;var fm;$D.prototype.requestComplete=function(S,W){W&&(this.N=!0);S=this.removeParams(S);this.C.get(S)||this.C.set(S,W)}; $D.prototype.isEndpointCFR=function(S){S=this.removeParams(S);return(S=this.C.get(S))?!1:S===!1&&this.N?!0:null}; $D.prototype.removeParams=function(S){return S.split("?")[0]}; $D.prototype.removeParams=$D.prototype.removeParams;$D.prototype.isEndpointCFR=$D.prototype.isEndpointCFR;$D.prototype.requestComplete=$D.prototype.requestComplete;$D.getInstance=kDP;g.u(hv,g.ng);g.V=hv.prototype;g.V.AV=function(){return this.C.AV()}; g.V.iT=function(S){this.C.C=S}; g.V.Xn2=function(){var S=window.navigator.onLine;return S===void 0?!0:S}; g.V.CB=function(){this.N=!0}; g.V.listen=function(S,W){return this.C.listen(S,W)}; g.V.xv=function(S){return kA(this.C,S)}; hv.prototype.sendNetworkCheckRequest=hv.prototype.xv;hv.prototype.listen=hv.prototype.listen;hv.prototype.enableErrorFlushing=hv.prototype.CB;hv.prototype.getWindowStatus=hv.prototype.Xn2;hv.prototype.networkStatusHint=hv.prototype.iT;hv.prototype.isNetworkAvailable=hv.prototype.AV;hv.getInstance=$cc;g.u(g.tv,g.ng);g.tv.prototype.AV=function(){var S=g.v9("yt.networkStatusManager.instance.isNetworkAvailable");return S?S.bind(this.N)():!0}; g.tv.prototype.iT=function(S){var W=g.v9("yt.networkStatusManager.instance.networkStatusHint").bind(this.N);W&&W(S)}; g.tv.prototype.xv=function(S){var W=this,m;return g.k(function(a){m=g.v9("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.N);return g.Qi("skip_network_check_if_cfr")&&kDP().isEndpointCFR("generate_204")?a.return(new Promise(function(J){var B;W.iT(((B=window.navigator)==null?void 0:B.onLine)||!0);J(W.AV())})):m?a.return(m(S)):a.return(!0)})};var Av;g.u(ZL,e9);ZL.prototype.writeThenSend=function(S,W){W||(W={});W=br(S,W);g.ox()||(this.C=!1);e9.prototype.writeThenSend.call(this,S,W)}; ZL.prototype.sendThenWrite=function(S,W,m){W||(W={});W=br(S,W);g.ox()||(this.C=!1);e9.prototype.sendThenWrite.call(this,S,W,m)}; ZL.prototype.sendAndWrite=function(S,W){W||(W={});W=br(S,W);g.ox()||(this.C=!1);e9.prototype.sendAndWrite.call(this,S,W)}; ZL.prototype.awaitInitialization=function(){return this.B.promise};var ZE6=g.OQ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.j$("ytNetworklessLoggingInitializationOptions",ZE6);g.or.prototype.isReady=function(){!this.config_&&heK()&&(this.config_=g.Go());return!!this.config_};var NNQ,cU,wd;NNQ=g.OQ.ytPubsubPubsubInstance||new g.Hn;cU=g.OQ.ytPubsubPubsubSubscribedKeys||{};wd=g.OQ.ytPubsubPubsubTopicToKeys||{};g.DL=g.OQ.ytPubsubPubsubIsSynchronous||{};g.Hn.prototype.subscribe=g.Hn.prototype.subscribe;g.Hn.prototype.unsubscribeByKey=g.Hn.prototype.Uf;g.Hn.prototype.publish=g.Hn.prototype.publish;g.Hn.prototype.clear=g.Hn.prototype.clear;g.j$("ytPubsubPubsubInstance",NNQ);g.j$("ytPubsubPubsubTopicToKeys",wd);g.j$("ytPubsubPubsubIsSynchronous",g.DL); g.j$("ytPubsubPubsubSubscribedKeys",cU);var cUj={};g.u(YO,g.A);YO.prototype.append=function(S){if(!this.N)throw Error("This does not support the append operation");S=S.yc();this.yc().appendChild(S)}; g.u(GN,YO);GN.prototype.yc=function(){return this.C};g.u(Kz,g.A);Kz.prototype.onTouchStart=function(S){this.Z=!0;this.N=S.touches.length;this.C.isActive()&&(this.C.stop(),this.X=!0);S=S.touches;this.V=Swl(this,S)||S.length!=1;var W=S.item(0);this.V||!W?this.bY=this.S=Infinity:(this.S=W.clientX,this.bY=W.clientY);for(W=this.B.length=0;W=0)}if(W||S&&Math.pow(S.clientX-this.S,2)+Math.pow(S.clientY-this.bY,2)>25)this.j=!0}; Kz.prototype.onTouchEnd=function(S){var W=S.changedTouches;W&&this.Z&&this.N==1&&!this.j&&!this.X&&!this.V&&Swl(this,W)&&(this.N2=S,this.C.start());this.N=S.touches.length;this.N===0&&(this.j=this.Z=!1,this.B.length=0);this.X=!1};var TN=Date.now().toString();var nz={};var QM=Symbol("injectionDeps");uF.prototype.toString=function(){return"InjectionToken("+this.name+")"}; J2P.prototype.resolve=function(S){return S instanceof gl?XD(this,S.key,[],!0):XD(this,S,[])};var vp;var lF=window;var R_=g.Qi("web_enable_lifecycle_monitoring")&&Mz()!==0,qw6=g.Qi("web_enable_lifecycle_monitoring");Gzl.prototype.cancel=function(){for(var S=g.R(this.C),W=S.next();!W.done;W=S.next())W=W.value,W.jobId===void 0||W.tZ||this.scheduler.bZ(W.jobId),W.tZ=!0;this.N.resolve()};g.V=e0.prototype;g.V.install=function(S){this.plugins.push(S);return this}; g.V.uninstall=function(){var S=this;g.VH.apply(0,arguments).forEach(function(W){W=S.plugins.indexOf(W);W>-1&&S.plugins.splice(W,1)})}; g.V.transition=function(S,W){var m=this;R_&&y2j(this.state);var a=this.transitions.find(function(B){return Array.isArray(B.from)?B.from.find(function(E){return E===m.state&&B.to===S}):B.from===m.state&&B.to===S}); if(a){this.N&&(Ktc(this.N),this.N=void 0);p6Q(this,S,W);this.state=S;R_&&UA(this.state);a=a.action.bind(this);var J=this.plugins.filter(function(B){return B[S]}).map(function(B){return B[S]}); a(TrP(this,J),W)}else throw Error("no transition specified from "+this.state+" to "+S);}; g.V.LTN=function(S){var W=g.VH.apply(1,arguments);g.wU();for(var m=g.R(S),a=m.next(),J={};!a.done;J={n$:void 0},a=m.next())J.n$=a.value,dl_(function(B){return function(){iF(B.n$.name);I_(function(){return B.n$.callback.apply(B.n$,g.x(W))}); dl(B.n$.name)}}(J))}; g.V.gsU=function(S){var W=g.VH.apply(1,arguments),m,a,J,B;return g.k(function(E){E.C==1&&(g.wU(),m=g.R(S),a=m.next(),J={});if(E.C!=3){if(a.done)return E.cn(0);J.Mm=a.value;J.tS=void 0;B=function(y){return function(){iF(y.Mm.name);var Y=I_(function(){return y.Mm.callback.apply(y.Mm,g.x(W))}); ol(Y)?y.tS=g.Qi("web_lifecycle_error_handling_killswitch")?Y.then(function(){dl(y.Mm.name)}):Y.then(function(){dl(y.Mm.name)},function(G){YwP(G); dl(y.Mm.name)}):dl(y.Mm.name)}}(J); dl_(B);return J.tS?g.P(E,J.tS,3):E.cn(3)}J={Mm:void 0,tS:void 0};a=m.next();return E.cn(2)})}; g.V.jT=function(S){var W=g.VH.apply(1,arguments),m=this,a=S.map(function(J){return{E5:function(){iF(J.name);I_(function(){return J.callback.apply(J,g.x(W))}); dl(J.name)}, priority:xO(m,J)}}); a.length&&(this.N=new Gzl(a))}; g.Z6.Object.defineProperties(e0.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var fz;g.u(Pp,e0);Pp.prototype.X=function(S,W){var m=this;this.C=g.cX(0,function(){m.currentState==="application_navigating"&&m.transition("none")},5E3); S(W==null?void 0:W.event)}; Pp.prototype.V=function(S,W){this.C&&(g.h6.bZ(this.C),this.C=null);S(W==null?void 0:W.event)};var G$=[];g.j$("yt.logging.transport.getScrapedGelPayloads",function(){return G$});kO.prototype.storePayload=function(S,W){S=$O(S);this.store[S]?this.store[S].push(W):(this.N={},this.store[S]=[W]);this.C++;g.Qi("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return S}; kO.prototype.smartExtractMatchingEntries=function(S){if(!S.keys.length)return[];for(var W=to(this,S.keys.splice(0,1)[0]),m=[],a=0;a=0){a=!1;break a}}a=!0}a&&(W=xz(W))&&this.qY(W)}}; g.V.Hp=function(S){return S}; g.V.onTouchStart=function(S){this.q2.onTouchStart(S)}; g.V.onTouchMove=function(S){this.q2.onTouchMove(S)}; g.V.onTouchEnd=function(S){if(this.q2)this.q2.onTouchEnd(S)}; g.V.qY=function(S){this.layoutId?this.U9.executeCommand(S,this.layoutId):(S=new g.uc("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.lR(S))}; g.V.createServerVe=function(S,W){this.api.createServerVe(S,this);this.api.setTrackingParams(S,W)}; g.V.logVisibility=function(S,W){this.api.hasVe(S)&&this.api.logVisibility(S,W,this.interactionLoggingClientData)}; g.V.j9=function(){this.clear(null);this.TC(this.uY);for(var S=g.R(this.Xn),W=S.next();!W.done;W=S.next())this.TC(W.value);g.yG.prototype.j9.call(this)};g.u(Ru,Yy); Ru.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);this.C=W;if(W.text==null&&W.icon==null)g.Ue(Error("ButtonRenderer did not have text or an icon set."));else{switch(W.style||null){case "STYLE_UNKNOWN":S="ytp-ad-button-link";break;default:S=null}S!=null&&g.Bn(this.element,S);W.text!=null&&(S=g.K8(W.text),g.C$(S)||(this.element.setAttribute("aria-label",S),this.B=new g.yG({G:"span",L:"ytp-ad-button-text",Bn:S}),g.Z(this,this.B),this.B.GN(this.element)));W.accessibilityData&&W.accessibilityData.accessibilityData&& W.accessibilityData.accessibilityData.label&&!g.C$(W.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",W.accessibilityData.accessibilityData.label);W.icon!=null&&(W=L8(W.icon,this.j),W!=null&&(this.N=new g.yG({G:"span",L:"ytp-ad-button-icon",U:[W]}),g.Z(this,this.N)),this.X?LX(this.element,this.N.element,0):this.N.GN(this.element))}}; Ru.prototype.clear=function(){this.hide()}; Ru.prototype.onClick=function(S){Yy.prototype.onClick.call(this,S);S=g.R(nR6(this));for(var W=S.next();!W.done;W=S.next())W=W.value,this.layoutId?this.U9.executeCommand(W,this.layoutId):g.lR(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.u(ea,g.A);ea.prototype.j9=function(){this.N&&g.HX(this.N);this.C.clear();dC=null;g.A.prototype.j9.call(this)}; ea.prototype.register=function(S,W){W&&this.C.set(S,W)}; var dC=null;g.u(f8,Yy); f8.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);S=W.hoverText||null;W=W.button&&g.n(W.button,vG)||null;W==null?g.lR(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,void 0,void 0,void 0,void 0,this.B),g.Z(this,this.button),this.button.init(Wm("button"),W,this.macros),S&&this.button.element.setAttribute("aria-label",g.K8(S)),this.button.GN(this.element),this.S&&!g.JU(this.button.element,"ytp-ad-clickable")&& g.Bn(this.button.element,"ytp-ad-clickable"),this.B&&g.Bn(this.button.element,"ytp-ad-hover-text-button--clean-player"),S&&(this.N=new g.yG({G:"div",L:"ytp-ad-hover-text-container"}),this.X&&(W=new g.yG({G:"div",L:"ytp-ad-hover-text-callout"}),W.GN(this.N.element),g.Z(this,W)),g.Z(this,this.N),this.N.GN(this.element),W=Iu(S),LX(this.N.element,W,0)),this.show())}; f8.prototype.hide=function(){this.button&&this.button.hide();this.N&&this.N.hide();Yy.prototype.hide.call(this)}; f8.prototype.show=function(){this.button&&this.button.show();Yy.prototype.show.call(this)};g.u($y,Yy); $y.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);m=(S=W.thumbnail)&&ky(S)||"";g.C$(m)?Math.random()<.01&&g.Ue(Error("Found AdImage without valid image URL")):(this.C?g.mg(this.element,"backgroundImage","url("+m+")"):ON(this.element,{src:m}),ON(this.element,{alt:S&&S.accessibility&&S.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())}; $y.prototype.clear=function(){this.hide()};g.u(hZ,Yy);g.V=hZ.prototype;g.V.hide=function(){Yy.prototype.hide.call(this);this.B&&this.B.focus()}; g.V.show=function(){this.B=document.activeElement;Yy.prototype.show.call(this);this.j.focus()}; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);this.N=W;W.dialogMessages||W.title!=null?W.confirmLabel==null?g.lR(Error("ConfirmDialogRenderer.confirmLabel was not set.")):W.cancelLabel==null?g.lR(Error("ConfirmDialogRenderer.cancelLabel was not set.")):O56(this,W):g.lR(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.V.clear=function(){g.eY(this.C);this.hide()}; g.V.XU=function(){this.hide()}; g.V.U8=function(){var S=this.N.cancelEndpoint;S&&(this.layoutId?this.U9.executeCommand(S,this.layoutId):g.lR(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.V.t0=function(){var S=this.N.confirmNavigationEndpoint||this.N.confirmEndpoint;S&&(this.layoutId?this.U9.executeCommand(S,this.layoutId):g.lR(Error("Missing layoutId for confirm dialog.")));this.hide()};g.u(tZ,Yy);g.V=tZ.prototype; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);this.B=W;if(W.defaultText==null&&W.defaultIcon==null)g.lR(Error("ToggleButtonRenderer must have either text or icon set."));else if(W.defaultIcon==null&&W.toggledIcon!=null)g.lR(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":S="ytp-ad-toggle-button-default-style";break;default:S=null}S!=null&&g.Bn(this.j,S)}S={};W.defaultText? (m=g.K8(W.defaultText),g.C$(m)||(S.buttonText=m,this.api.J().experiments.mU("a11y_h5_associate_survey_question")||this.C.setAttribute("aria-label",m),this.api.J().experiments.mU("fix_h5_toggle_button_a11y")&&this.N.setAttribute("aria-label",m))):g.F$(this.Pn,!1);W.defaultTooltip&&(S.tooltipText=W.defaultTooltip,this.C.hasAttribute("aria-label")||this.N.setAttribute("aria-label",W.defaultTooltip));W.defaultIcon?(m=L8(W.defaultIcon),this.updateValue("untoggledIconTemplateSpec",m),W.toggledIcon?(this.vn= !0,m=L8(W.toggledIcon),this.updateValue("toggledIconTemplateSpec",m)):(g.F$(this.S,!0),g.F$(this.X,!1)),g.F$(this.C,!1)):g.F$(this.N,!1);g.UC(S)||this.update(S);W.isToggled&&(g.Bn(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(W.isToggled));AZ(this);this.K(this.element,"change",this.lz);this.show()}}; g.V.onClick=function(S){this.Xn.length>0&&(this.toggleButton(!this.isToggled()),this.lz());Yy.prototype.onClick.call(this,S)}; g.V.lz=function(){g.GD(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var S=g.R(jxD(this,this.isToggled())),W=S.next();!W.done;W=S.next())W=W.value,this.layoutId?this.U9.executeCommand(W,this.layoutId):g.lR(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);AZ(this)}; g.V.clear=function(){this.hide()}; g.V.toggleButton=function(S){g.GD(this.j,"ytp-ad-toggle-button-toggled",S);this.C.checked=S;AZ(this)}; g.V.isToggled=function(){return this.C.checked};g.u(Zj,L5);Zj.prototype.X=function(S){if(Array.isArray(S)){S=g.R(S);for(var W=S.next();!W.done;W=S.next())W=W.value,W instanceof QxQ&&this.B(W)}};g.u(Nu,Yy);g.V=Nu.prototype;g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);W.reasons?W.confirmLabel==null?g.lR(Error("AdFeedbackRenderer.confirmLabel was not set.")):(W.cancelLabel==null&&g.Ue(Error("AdFeedbackRenderer.cancelLabel was not set.")),W.title==null&&g.Ue(Error("AdFeedbackRenderer.title was not set.")),lpX(this,W)):g.lR(Error("AdFeedbackRenderer.reasons were not set."))}; g.V.clear=function(){l7(this.X);l7(this.S);this.j.length=0;this.hide()}; g.V.hide=function(){this.C&&this.C.hide();this.N&&this.N.hide();Yy.prototype.hide.call(this);this.B&&this.B.focus()}; g.V.show=function(){this.C&&this.C.show();this.N&&this.N.show();this.B=document.activeElement;Yy.prototype.show.call(this);this.X.focus()}; g.V.yf=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.V.W9n=function(){this.hide()}; bf.prototype.yc=function(){return this.C.element}; bf.prototype.getCommand=function(){return this.N}; bf.prototype.isChecked=function(){return this.B.checked};g.u(ou,hZ);ou.prototype.XU=function(S){hZ.prototype.XU.call(this,S);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ou.prototype.U8=function(S){hZ.prototype.U8.call(this,S);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ou.prototype.t0=function(S){hZ.prototype.t0.call(this,S);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.u(rC,Yy);g.V=rC.prototype; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);this.X=W;if(W.dialogMessage==null&&W.title==null)g.lR(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{W.confirmLabel==null&&g.Ue(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(S=W.closeOverlayRenderer&&g.n(W.closeOverlayRenderer,vG)||null)this.C=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Z(this,this.C),this.C.init(Wm("button"),S,this.macros),this.C.GN(this.element);W.title&&(S=g.K8(W.title),this.updateValue("title",S));if(W.adReasons)for(S=W.adReasons,m=0;m=this.Hn?(this.vn.hide(),this.g2=!0,this.publish("i")):this.B&&this.B.isTemplated()&&(S=Math.max(0,Math.ceil((this.Hn-S)/1E3)),S!=this.hX&&(Dj(this.B,{TIME_REMAINING:String(S)}),this.hX=S)))}};g.u(B1,wC);g.V=B1.prototype; g.V.init=function(S,W,m){wC.prototype.init.call(this,S,W,m);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if((S=W.actionButton&&g.n(W.actionButton,vG))&&S.navigationEndpoint){var a=this.api.getVideoData(2);if(a!=null)if(W.image&&W.image.thumbnail){var J=W.image.thumbnail.thumbnails;J!=null&&J.length>0&&g.C$(g.ZN(J[0].url))&&(J[0].url=a.profilePicture)}else g.Ue(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.B.init(Wm("ad-image"),W.image,m);this.X.init(Wm("ad-text"), W.headline,m);this.j.init(Wm("ad-text"),W.description,m);this.N.init(Wm("button"),S,m);m=be(this.N.element);NG(this.N.element,m+" This link opens in new tab");this.vn=S.navigationEndpoint;this.api.wC()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.dK.bind(this));this.Pn=W.startMs||0;SD(this)}else g.lR(Error("FlyoutCtaRenderer has no valid action button."));else g.lR(Error("FlyoutCtaRenderer has no description AdText."));else g.lR(Error("FlyoutCtaRenderer has no headline AdText.")); else g.Ue(Error("FlyoutCtaRenderer has no image."))}; g.V.onClick=function(S){wC.prototype.onClick.call(this,S);this.api.pauseVideo();!g.xg(this.N.element,S.target)&&this.vn&&(this.layoutId?this.U9.executeCommand(this.vn,this.layoutId):g.lR(Error("Missing layoutId for flyout cta.")))}; g.V.wZ=function(){if(this.C){var S=this.C.getProgressState();(S&&S.current||this.Hn)&&1E3*S.current>=this.Pn&&(W1(this),g.zD(this.element,"ytp-flyout-cta-inactive"),this.N.element.removeAttribute("tabIndex"))}}; g.V.aT=function(){this.clear()}; g.V.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.dK.bind(this))}; g.V.show=function(){this.N&&this.N.show();wC.prototype.show.call(this)}; g.V.hide=function(){this.N&&this.N.hide();wC.prototype.hide.call(this)}; g.V.dK=function(S){S=="hidden"?this.show():this.hide()};g.u(Em,Yy);g.V=Em.prototype; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);this.C=W;if(this.C.rectangle)for(S=this.C.likeButton&&g.n(this.C.likeButton,Qy),W=this.C.dislikeButton&&g.n(this.C.dislikeButton,Qy),this.B.init(Wm("toggle-button"),S,m),this.N.init(Wm("toggle-button"),W,m),this.K(this.element,"change",this.mZ),this.j.show(100),this.show(),m=g.R(this.C&&this.C.impressionCommands||[]),S=m.next();!S.done;S=m.next())S=S.value,this.layoutId?this.U9.executeCommand(S,this.layoutId):g.lR(Error("Missing layoutId for instream user sentiment."))}; g.V.clear=function(){this.hide()}; g.V.hide=function(){this.B.hide();this.N.hide();Yy.prototype.hide.call(this)}; g.V.show=function(){this.B.show();this.N.show();Yy.prototype.show.call(this)}; g.V.mZ=function(){yV6(this.element,"ytp-ad-instream-user-sentiment-selected");this.C.postMessageAction&&this.api.f_("onYtShowToast",this.C.postMessageAction);this.j.hide()}; g.V.onClick=function(S){this.Xn.length>0&&this.mZ();Yy.prototype.onClick.call(this,S)};g.u(zI,g.A);g.V=zI.prototype;g.V.j9=function(){this.reset();g.A.prototype.j9.call(this)}; g.V.reset=function(){g.eY(this.j);this.V=!1;this.C&&this.C.stop();this.X.stop();this.B&&(this.B=!1,this.Z.play())}; g.V.start=function(){this.reset();this.j.K(this.N,"mouseover",this.pF,this);this.j.K(this.N,"mouseout",this.Y9,this);this.N2&&(this.j.K(this.N,"focusin",this.pF,this),this.j.K(this.N,"focusout",this.Y9,this));this.C?this.C.start():(this.V=this.B=!0,g.mg(this.N,{opacity:this.bY}))}; g.V.pF=function(){this.B&&(this.B=!1,this.Z.play());this.X.stop();this.C&&this.C.stop()}; g.V.Y9=function(){this.V?this.X.start():this.C&&this.C.start()}; g.V.KX=function(){this.B||(this.B=!0,this.S.play(),this.V=!0)};var k1G=[new yj("b.f_",0),new yj("j.s_",2),new yj("r.s_",4),new yj("e.h_",6),new yj("i.s_",8),new yj("s.t_",10),new yj("p.h_",12),new yj("s.i_",14),new yj("f.i_",16),new yj("a.b_",18),new yj("a.o_"),new yj("g.o_",22),new yj("p.i_",24),new yj("p.m_"),new yj("n.k_",20),new yj("i.f_"),new yj("a.s_"),new yj("m.c_"),new yj("n.h_",26),new yj("o.p_"),new yj("m.p_",28),new yj("o.a_"),new yj("d.p_"),new yj("e.i_")].reduce(function(S,W){S[W.N]=W;return S},{});g.u(pZ,wC);g.V=pZ.prototype; g.V.init=function(S,W,m){wC.prototype.init.call(this,S,W,m);this.vn=W;(this.Pn=hS6(this))&&g.Ue(Error("hasAdControlInClickCommands_ is true."));if(!W||g.UC(W))g.lR(Error("SkipButtonRenderer was not specified or empty."));else if(!W.message||g.UC(W.message))g.lR(Error("SkipButtonRenderer.message was not specified or empty."));else if(S=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},W=this.api.J().T("delhi_modern_web_player_icons"),W=L8(S,!1,!1,W),W==null?g.lR(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+S.iconType+ ".")):(this.api.J().T("disable_touch_events_on_skip_button")&&(W.D=Object.assign({},W.D,{"aria-hidden":"true",focusable:"false"})),this.B=new g.yG({G:"button",Wn:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],U:[{G:"span",L:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",U:[W]}]}),g.Z(this,this.B),this.B.GN(this.j.element),this.N=new cm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,"ytp-ad-skip-button-text"),this.X&&this.N.element.classList.add("ytp-ad-skip-button-text-centered"), this.N.init(Wm("ad-text"),this.vn.message,m),g.Z(this,this.N),LX(this.B.element,this.N.element,0)),!this.api.J().T("disable_touch_events_on_skip_button")){var a=a===void 0?null:a;m=this.api.J();!(this.Xn.length>0)&&m.N&&(dJ?0:"ontouchstart"in document.documentElement&&(QSc()||gp()))&&(this.TC(this.uY),a&&this.TC(a),this.Xn=[this.K(this.element,"touchstart",this.onTouchStart,this),this.K(this.element,"touchmove",this.onTouchMove,this),this.K(this.element,"touchend",this.onTouchEnd,this)])}}; g.V.clear=function(){this.Hn.reset();this.hide()}; g.V.hide=function(){this.j.hide();this.N&&this.N.hide();W1(this);wC.prototype.hide.call(this)}; g.V.onClick=function(S){if(this.B!=null){if(S){var W=S||window.event;W.returnValue=!1;W.preventDefault&&W.preventDefault()}var m;if(P7P(S,{contentCpn:((m=this.api.getVideoData(1))==null?void 0:m.clientPlaybackNonce)||""})===0)this.api.f_("onAbnormalityDetected");else if(wC.prototype.onClick.call(this,S),this.publish("j"),this.api.f_("onAdSkip"),this.g2||!this.Pn)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.V.Hp=function(S){if(!this.g2)return this.Pn&&GI("SkipButton click commands not pruned while ALC exist"),S;var W,m=(W=g.n(S,FX))==null?void 0:W.commands;if(!m)return S;S=[];for(W=0;W=this.X&&tYG(this,!0)};g.u(nZ,Ru);nZ.prototype.init=function(S,W,m){Ru.prototype.init.call(this,S,W,m);S=!1;W.text!=null&&(S=g.K8(W.text),S=!g.C$(S));S?W.navigationEndpoint==null?g.Ue(Error("No visit advertiser clickthrough provided in renderer,")):W.style!=="STYLE_UNKNOWN"?g.Ue(Error("Button style was not a link-style type in renderer,")):this.show():g.Ue(Error("No visit advertiser text was present in the renderer."))};g.u(sm,Yy); sm.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);S=W.text;g.C$(G3(S))?g.Ue(Error("SimpleAdBadgeRenderer has invalid or empty text")):(S&&S.text&&(W=S.text,this.B&&!this.N&&(W=this.api.J(),W=S.text+" "+(W&&W.N?"\u2022":"\u00b7")),W={text:W,isTemplated:S.isTemplated},S.style&&(W.style=S.style),S.targetId&&(W.targetId=S.targetId),S=new cm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),S.init(Wm("simple-ad-badge"),W,m),S.GN(this.element),g.Z(this,S)),this.show())}; sm.prototype.clear=function(){this.hide()};g.u(u2,m$);g.u(gR,g.au);g.V=gR.prototype;g.V.UB=function(){return this.durationMs}; g.V.stop=function(){this.C&&this.handler.TC(this.C)}; g.V.Zb=function(S){this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:S.current};this.publish("h")}; g.V.getProgressState=function(){return this.N}; g.V.yb=function(S){g.qb(S,2)&&this.publish("g")};g.u(Om,g.au);g.V=Om.prototype;g.V.UB=function(){return this.durationMs}; g.V.start=function(){this.C||(this.C=!0,this.timer.start())}; g.V.stop=function(){this.C&&(this.C=!1,this.timer.stop())}; g.V.Zb=function(){this.yB+=100;var S=!1;this.yB>this.durationMs&&(this.yB=this.durationMs,this.timer.stop(),S=!0);this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.yB/1E3};this.publish("h");S&&this.publish("g")}; g.V.getProgressState=function(){return this.N};g.u(XX,wC);g.V=XX.prototype;g.V.init=function(S,W,m){wC.prototype.init.call(this,S,W,m);var a;if(W==null?0:(a=W.templatedCountdown)==null?0:a.templatedAdText){S=W.templatedCountdown.templatedAdText;if(!S.isTemplated){g.Ue(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.N=new cm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);this.N.init(Wm("ad-text"),S,{});this.N.GN(this.element);g.Z(this,this.N)}this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){W1(this);wC.prototype.hide.call(this)}; g.V.aT=function(){this.hide()}; g.V.wZ=function(){if(this.C!=null){var S=this.C.getProgressState();if(S!=null&&S.current!=null&&this.N){var W=this.C instanceof gR?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:S.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.C instanceof Om?S.seekableEnd:this.api.getDuration(2,!1);S=S.current;var m,a,J=((m=this.api.getVideoData())==null?0:(a=m.b$)==null?0:a.call(m))?Math.max(W-S,0):W-S;Dj(this.N,{FORMATTED_AD_DURATION_REMAINING:String(g.jD(J)), TIME_REMAINING:String(Math.ceil(J))})}}}; g.V.show=function(){SD(this);wC.prototype.show.call(this)};g.u(v1,cm);v1.prototype.onClick=function(S){cm.prototype.onClick.call(this,S);this.api.onAdUxClicked(this.componentType)};g.u(l2,Yy);l2.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(S=W.content){g.iD(this.element,S);var m,a;W=((m=W.interaction)==null?void 0:(a=m.accessibility)==null?void 0:a.label)||S;this.element.setAttribute("aria-label",W)}else g.lR(Error("AdSimpleAttributedString does not have text content"))}; l2.prototype.clear=function(){this.hide()}; l2.prototype.onClick=function(S){Yy.prototype.onClick.call(this,S)};g.u(Mb,Yy); Mb.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});(S=W.label)&&S.content&&!g.C$(S.content)?(this.adBadgeText.init(Wm("ad-simple-attributed-string"),new H1(S)),(W=W.adPodIndex)&&W.content&&!g.C$(W.content)&&(this.C=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),this.C.GN(this.element),g.Z(this,this.C),this.C.element.classList.add("ytp-ad-badge__pod-index"),this.C.init(Wm("ad-simple-attributed-string"),new H1(W))),this.element.classList.add(this.N?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.lR(Error("No label is returned in AdBadgeViewModel."))}; Mb.prototype.show=function(){this.adBadgeText.show();var S;(S=this.C)==null||S.show();Yy.prototype.show.call(this)}; Mb.prototype.hide=function(){this.adBadgeText.hide();var S;(S=this.C)==null||S.hide();Yy.prototype.hide.call(this)};g.u(Um,Yy);Um.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});(S=W.adPodIndex)&&S.content&&!g.C$(S.content)&&(this.C=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),this.C.GN(this.element),g.Z(this,this.C),this.C.init(Wm("ad-simple-attributed-string"),new H1(S)),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()}; Um.prototype.show=function(){var S;(S=this.C)==null||S.show();Yy.prototype.show.call(this)}; Um.prototype.hide=function(){var S;(S=this.C)==null||S.hide();Yy.prototype.hide.call(this)};g.u(LZ,Yy); LZ.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(W!=null&&W.text){var m;if(((m=W.text)==null?0:m.content)&&!g.C$(W.text.content)){this.C=new g.yG({G:"div",L:"ytp-ad-disclosure-banner__text",Bn:W.text.content});g.Z(this,this.C);this.C.GN(this.element);if(this.api.J().T("enable_ad_disclosure_banner_a11y_fix")){var a,J,B=(a=W.interaction)==null?void 0:(J=a.accessibility)==null?void 0:J.label;B||(B=W.text.content+" This link opens in new tab");NG(this.element,B)}else{var E;a=((B= W.interaction)==null?void 0:(E=B.accessibility)==null?void 0:E.label)||W.text.content;this.element.setAttribute("aria-label",a)}var y;if((y=W.interaction)==null?0:y.onTap)this.api.J().T("remove_chevron_from_ad_disclosure_banner_h5")||(this.N=new g.yG({G:"div",L:"ytp-ad-disclosure-banner__chevron",U:[g.Fo()]}),g.Z(this,this.N),this.N.GN(this.element)),this.api.J().T("enable_ad_disclosure_banner_a11y_fix")&&(A6(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.z1)); this.show()}}else g.lR(Error("No banner text found in AdDisclosureBanner."))}; LZ.prototype.z1=function(S){if(S.key==="Enter"||S.key===" ")S.preventDefault(),this.element.click()}; LZ.prototype.clear=function(){this.hide()};g.u(i2,g.yG);i2.prototype.Zb=function(){var S=this.N.getProgressState(),W=S.seekableEnd;this.api.getPresentingPlayerType()===2&&(W=this.B?this.B/1E3:S.seekableEnd);this.progressBar.style.width=x$(new eD(S.seekableStart,W),S.current,0)*100+"%"}; i2.prototype.onStateChange=function(){g.NT(this.api.J())||(this.api.getPresentingPlayerType()===2?this.C===-1&&(this.show(),this.C=this.N.subscribe("h",this.Zb,this),this.Zb()):this.C!==-1&&(this.hide(),this.N.Uf(this.C),this.C=-1))};g.u(dR,Yy); dR.prototype.init=function(S,W,m,a){Yy.prototype.init.call(this,S,W,m);if(W.skipOrPreviewRenderer){if(S=g.n(W.skipOrPreviewRenderer,mO))m=new Vj(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N,this.S),m.GN(this.O9),m.init(Wm("skip-button"),S,this.macros),g.Z(this,m);if(S=g.n(W.skipOrPreviewRenderer,mO))var J=S.skipOffsetMilliseconds}W.brandInteractionRenderer&&(S=W.brandInteractionRenderer.brandInteractionRenderer,m=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.U9), m.GN(this.Pn),m.init(Wm("instream-user-sentiment"),S,this.macros),g.Z(this,m));if(S=g.n(W,eQH))if(S=g.n(S,eQH))m=new B1(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N,!!W.showWithoutLinkedMediaLayout),g.Z(this,m),m.GN(this.X),m.init(Wm("flyout-cta"),S,this.macros);a=a&&a.videoAdDurationSeconds;W.adBadgeRenderer&&(m=W.adBadgeRenderer,S=g.n(m,ZH),S!=null?(m=new Mb(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!1),g.Z(this,m),m.GN(this.C),m.init(Wm("ad-badge"), S,this.macros),this.B=m.element):(S=m.simpleAdBadgeRenderer,S==null&&(S={text:{text:"Ad",isTemplated:!1}}),m=new sm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0),g.Z(this,m),m.GN(this.C),m.init(Wm("simple-ad-badge"),S,this.macros)));W.adPodIndex&&(S=g.n(W.adPodIndex,tO9),S!=null&&(m=new Um(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,m),m.GN(this.C),m.init(Wm("ad-pod-index"),S)));W.adDurationRemaining&&!W.showWithoutLinkedMediaLayout&&(S=W.adDurationRemaining.adDurationRemainingRenderer, S==null&&(S={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),a=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N,a,!1),g.Z(this,a),a.GN(this.C),a.init(Wm("ad-duration-remaining"),S,this.macros));W.adInfoRenderer&&(a=g.n(W.adInfoRenderer,QZ))&&(S=new C8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.element,void 0,!1),g.Z(this,S),this.B!==null?this.C.insertBefore(S.element,this.B.nextSibling):S.GN(this.C), S.init(Wm("ad-info-hover-text-button"),a,this.macros));W.visitAdvertiserRenderer&&(S=g.n(W.visitAdvertiserRenderer,vG))&&(m=b56(this)&&this.j?this.j:this.C)&&(a=new nZ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,a),a.GN(m),a.init(Wm("visit-advertiser"),S,this.macros),A6(a.element),S=be(a.element),NG(a.element,S+" This link opens in new tab"));!(a=this.api.J())||g.AJ(a)||g.f9(a)||a.controlsType!="3"&&!a.disableOrganicUi||(J=new i2(this.api,this.N,J,!1),J.GN(this.Hn), g.Z(this,J));W.adDisclosureBannerRenderer&&(W=g.n(W.adDisclosureBannerRenderer,hQw))&&(J=new LZ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),J.GN(this.vn),J.init(Wm("ad-disclosure-banner"),W),g.Z(this,J));this.api.J().T("enable_updated_html5_player_focus_style")&&g.Bn(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; dR.prototype.clear=function(){this.hide()};fZ.prototype.flush=function(S,W){S=S===void 0?[]:S;W=W===void 0?!1:W;if(g.Qi("enable_client_streamz_web")){S=g.R(S);for(var m=S.next();!m.done;m=S.next())m=OIP(m.value),this.C&&Zs(m,sO,2,this.C),m={serializedIncrementBatch:g.fh(m.B())},g.qd("streamzIncremented",m,{sendIsolatedPayload:W})}}; g.u(oR6,fZ);g.u(C7Q,fZ);var k$,gPc=new Map;$$.prototype.set=function(S,W,m){m=m!==void 0?Date.now()+m:void 0;this.C.set(S,W,m)}; $$.prototype.get=function(S){return this.C.get(S)}; $$.prototype.remove=function(S){this.C.remove(S)};var D5O=null;var Nb=null,b2=null,oL=null,af6=null;g.j$("yt.www.ads.eventcache.getLastCompanionData",function(){return Nb}); g.j$("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.j$("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return b2}); g.j$("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return oL}); g.j$("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return af6});var BaP=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);rR.prototype.handleResponse=function(S,W){if(!W)throw Error("request needs to be passed into ConsistencyService");var m,a;W=((m=W.S4.context)==null?void 0:(a=m.request)==null?void 0:a.consistencyTokenJars)||[];var J;(S=(J=S.responseContext)==null?void 0:J.consistencyTokenJar)&&this.replace(W,S)}; rR.prototype.replace=function(S,W){S=g.R(S);for(var m=S.next();!m.done;m=S.next())delete this.C[m.value.encryptedTokenJarContents];zZP(this,W)};var cNg=window.location.hostname.split(".").slice(-2).join("."),Ll;c1.getInstance=function(){Ll=g.v9("yt.clientLocationService.instance");Ll||(Ll=new c1,g.j$("yt.clientLocationService.instance",Ll));return Ll}; g.V=c1.prototype; g.V.setLocationOnInnerTubeContext=function(S){S.client||(S.client={});if(this.C)S.client.locationInfo||(S.client.locationInfo={}),S.client.locationInfo.latitudeE7=Math.floor(this.C.coords.latitude*1E7),S.client.locationInfo.longitudeE7=Math.floor(this.C.coords.longitude*1E7),S.client.locationInfo.horizontalAccuracyMeters=Math.round(this.C.coords.accuracy),S.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.B||this.locationPlayabilityToken)S.client.locationPlayabilityToken=this.B|| this.locationPlayabilityToken}; g.V.handleResponse=function(S){var W;S=(W=S.responseContext)==null?void 0:W.locationPlayabilityToken;S!==void 0&&(this.locationPlayabilityToken=S,this.C=void 0,g.D4("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=CZ(this))&&this.localStorage.set("yt-location-playability-token",S,15552E3):g.f0("YT_CL",JSON.stringify({loctok:S}),15552E3,cNg,!0))}; g.V.clearLocationPlayabilityToken=function(S){S==="TVHTML5"?(this.localStorage=CZ(this))&&this.localStorage.remove("yt-location-playability-token"):g.$0("YT_CL");this.B=void 0;this.N!==-1&&(clearTimeout(this.N),this.N=-1)}; g.V.getCurrentPositionFromGeolocation=function(){var S=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var W=!1,m=1E4;g.D4("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,m=15E3);return new Promise(function(a,J){navigator.geolocation.getCurrentPosition(function(B){S.C=B;a(B)},function(B){J(B)},{enableHighAccuracy:W, maximumAge:0,timeout:m})})}; g.V.createUnpluggedLocationInfo=function(S){var W={};S=S.coords;if(S==null?0:S.latitude)W.latitudeE7=Math.floor(S.latitude*1E7);if(S==null?0:S.longitude)W.longitudeE7=Math.floor(S.longitude*1E7);if(S==null?0:S.accuracy)W.locationRadiusMeters=Math.round(S.accuracy);return W}; g.V.createLocationInfo=function(S){var W={};S=S.coords;if(S==null?0:S.latitude)W.latitudeE7=Math.floor(S.latitude*1E7);if(S==null?0:S.longitude)W.longitudeE7=Math.floor(S.longitude*1E7);return W};g.V=Tac.prototype;g.V.contains=function(S){return Object.prototype.hasOwnProperty.call(this.C,S)}; g.V.get=function(S){if(this.contains(S))return this.C[S]}; g.V.set=function(S,W){this.C[S]=W}; g.V.gq=function(){return Object.keys(this.C)}; g.V.remove=function(S){delete this.C[S]};wR.prototype.getModuleId=function(S){return S.serviceId.getModuleId()}; wR.prototype.get=function(S){a:{var W=this.mappings.get(S.toString());switch(W.type){case "mapping":S=W.value;break a;case "factory":W=W.value();this.mappings.set(S.toString(),{type:"mapping",value:W});S=W;break a;default:S=H$(W)}}return S}; wR.prototype.registerService=function(S,W){this.mappings.set(S.toString(),{type:"mapping",value:W});return S}; new wR;var Rb={},qjl=(Rb.WEB_UNPLUGGED="^unplugged/",Rb.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Rb.WEB_UNPLUGGED_OPS="^unplugged/",Rb.WEB_UNPLUGGED_PUBLIC="^unplugged/",Rb.WEB_CREATOR="^creator/",Rb.WEB_KIDS="^kids/",Rb.WEB_EXPERIMENTS="^experiments/",Rb.WEB_MUSIC="^music/",Rb.WEB_REMIX="^music/",Rb.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Rb.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Rb);m_.prototype.X=function(S,W,m){W=W===void 0?{}:W;m=m===void 0?To:m;var a={context:g.DQ(S.clickTrackingParams,!1,this.j)};var J=this.N(S);if(J){this.C(a,J,W);var B;W=g.Wz(this.B());(J=(B=g.n(S.commandMetadata,g.jt))==null?void 0:B.apiUrl)&&(W=J);B=rsP(h$(W));S=Object.assign({},{command:S},void 0);a={input:B,h4:t$(B),S4:a,config:S};a.config.Fv?a.config.Fv.identity=m:a.config.Fv={identity:m};return a}m=new g.uc("Error: Failed to create Request from Command.",S);g.lR(m)}; g.Z6.Object.defineProperties(m_.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.u(aP,m_);g.u(JY,aP);JY.prototype.X=function(){return{input:"/getDatasyncIdsEndpoint",h4:t$("/getDatasyncIdsEndpoint","GET"),S4:{}}}; JY.prototype.B=function(){return[]}; JY.prototype.N=function(){}; JY.prototype.C=function(){};var Dx8={},bOK=(Dx8.GET_DATASYNC_IDS=SG(JY),Dx8);var et={},w9H=(et["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",et["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",et["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",et["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",et["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",et["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",et["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", et["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",et["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",et["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",et["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",et["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",et["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",et["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",et["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", et["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",et["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",et["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",et["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",et["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",et["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",et["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", et["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",et.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",et["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",et["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",et["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",et["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",et["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",et["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", et["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",et["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",et["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",et["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",et["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",et["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",et["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",et["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",et["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",et["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",et.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",et["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",et["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",et["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",et["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",et["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",et["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",et["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",et["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",et["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",et["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",et["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",et["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",et["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",et["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",et["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",et["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",et["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",et["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",et["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",et["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",et["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", et["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",et["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",et["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",et["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",et["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",et["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",et["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",et["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",et["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", et["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",et["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",et["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",et["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",et["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",et["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",et["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",et["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", et),xN={},gol=(xN.auto_search="LATENCY_ACTION_AUTO_SEARCH",xN.ad_to_ad="LATENCY_ACTION_AD_TO_AD",xN.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",xN.app_startup="LATENCY_ACTION_APP_STARTUP",xN.browse="LATENCY_ACTION_BROWSE",xN.cast_splash="LATENCY_ACTION_CAST_SPLASH",xN.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",xN.channels="LATENCY_ACTION_CHANNELS",xN.chips="LATENCY_ACTION_CHIPS",xN.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",xN.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", xN.editor="LATENCY_ACTION_EDITOR",xN.embed="LATENCY_ACTION_EMBED",xN.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",xN.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",xN.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",xN.explore="LATENCY_ACTION_EXPLORE",xN.favorites="LATENCY_ACTION_FAVORITES",xN.home="LATENCY_ACTION_HOME",xN.inboarding="LATENCY_ACTION_INBOARDING",xN.landing="LATENCY_ACTION_LANDING",xN.learning="LATENCY_ACTION_LEARNING", xN.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",xN.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",xN.library="LATENCY_ACTION_LIBRARY",xN.live="LATENCY_ACTION_LIVE",xN.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",xN.management="LATENCY_ACTION_MANAGEMENT",xN.mini_app="LATENCY_ACTION_MINI_APP_PLAY",xN.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",xN.onboarding="LATENCY_ACTION_ONBOARDING",xN.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", xN.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",xN.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",xN.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",xN.prebuffer="LATENCY_ACTION_PREBUFFER",xN.prefetch="LATENCY_ACTION_PREFETCH",xN.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",xN.profile_switcher="LATENCY_ACTION_LOGIN",xN.projects="LATENCY_ACTION_PROJECTS",xN.reel_watch="LATENCY_ACTION_REEL_WATCH",xN.results="LATENCY_ACTION_RESULTS",xN.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", xN.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",xN.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",xN.review="LATENCY_ACTION_REVIEW",xN.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",xN.search_ui="LATENCY_ACTION_SEARCH_UI",xN.search_suggest="LATENCY_ACTION_SUGGEST",xN.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",xN.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",xN.seek="LATENCY_ACTION_PLAYER_SEEK",xN.settings="LATENCY_ACTION_SETTINGS",xN.store="LATENCY_ACTION_STORE", xN.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",xN.tenx="LATENCY_ACTION_TENX",xN.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",xN.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",xN.watch="LATENCY_ACTION_WATCH",xN.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",xN["watch,watch7"]="LATENCY_ACTION_WATCH",xN["watch,watch7_html5"]="LATENCY_ACTION_WATCH",xN["watch,watch7ad"]="LATENCY_ACTION_WATCH",xN["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",xN.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", xN.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",xN.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",xN.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",xN.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",xN.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",xN.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",xN.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",xN);Object.assign(gol,w9H);g.u(qL,qS);var iO6=new pm("aft-recorded",qL);var SC$=g.OQ.ytLoggingGelSequenceIdObj_||{};g.j$("ytLoggingGelSequenceIdObj_",SC$);var Vf=g.OQ.ytLoggingLatencyUsageStats_||{};g.j$("ytLoggingLatencyUsageStats_",Vf);pG.prototype.tick=function(S,W,m,a){nG(this,"tick_"+S+"_"+W)||g.qd("latencyActionTicked",{tickName:S,clientActionNonce:W},{timestamp:m,cttAuthInfo:a})}; pG.prototype.info=function(S,W,m){var a=Object.keys(S).join("");nG(this,"info_"+a+"_"+W)||(S=Object.assign({},S),S.clientActionNonce=W,g.qd("latencyActionInfo",S,{cttAuthInfo:m}))}; pG.prototype.jspbInfo=function(S,W,m){for(var a="",J=0;J=J.length?(W.append(J),S-=J.length):S?(W.append(new Uint8Array(J.buffer,J.byteOffset,S)),m.append(new Uint8Array(J.buffer,J.byteOffset+S,J.length-S)),S=0):m.append(J);return{XT:W,s3:m}}; YQ.prototype.isFocused=function(S){return S>=this.B&&S=64&&(this.V.set(S.subarray(0,64-this.N),this.N),W=64-this.N,this.N=0,ko7(this,this.V,0));for(;W+64<=m;W+=64)ko7(this,S,W);W=this.start&&(S=2&&m.ssdaiAdsConfig&&GI("Unexpected ad placement renderers length",S.slot,null,{length:a.length});var J;((J=m.adSlots)==null?0:J.some(function(B){var E,y;return((E=g.n(B,uB))==null?void 0:(y=E.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||a.some(function(B){var E,y,Y,G; return!!((E=B.renderer)==null?0:(y=E.linearAdSequenceRenderer)==null?0:(Y=y.linearAds)==null?0:Y.length)||!((G=B.renderer)==null||!G.instreamVideoAdRenderer)})||KJc(S)})}; N2.prototype.Kq=function(){co_(this.C)};b1.prototype.o1=function(){var S=this;CF_(this.N,function(){var W=Zb(S.slot.clientMetadata,"metadata_type_ad_break_request_data");return W.cueProcessedMs?S.C.get().fetch({Zi:W.getAdBreakUrl,cK:new g.hD(W.uS,W.eJ),cueProcessedMs:W.cueProcessedMs}):S.C.get().fetch({Zi:W.getAdBreakUrl,cK:new g.hD(W.uS,W.eJ)})})}; b1.prototype.Kq=function(){co_(this.N)};oI.prototype.o1=function(){var S=this.slot.clientMetadata,W,m=(W=this.slot.fulfilledLayout)!=null?W:Zb(S,"metadata_type_fulfilled_layout");HzG(this.callback,this.slot,m)}; oI.prototype.Kq=function(){Ba(this.callback,this.slot,new D("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")};Ct.prototype.build=function(S,W){return W.fulfilledLayout||rE(W,{BG:["metadata_type_fulfilled_layout"]})?new oI(S,W):this.B(S,W)};g.u(ca,Ct); ca.prototype.B=function(S,W){if(rE(W,{BG:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new N2(S,W,this.C,this.N,this.ME,this.AX,this.n_,this.tX,this.Db);if(rE(W,{BG:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new b1(S,W,this.C,this.N,this.ME,this.AX);throw new D("Unsupported slot with type: "+W.slotType+" and client metadata: "+Np(W.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(D5,Ct);D5.prototype.B=function(S,W){throw new D("Unsupported slot with type: "+W.slotType+" and client metadata: "+Np(W.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.V=TT7.prototype;g.V.Mw=function(){return this.slot}; g.V.e9=function(){return this.layout}; g.V.init=function(){}; g.V.release=function(){}; g.V.startRendering=function(S){if(S.layoutId!==this.layout.layoutId)this.callback.m9(this.slot,S,new tF("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=Zb(S.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.jD(this.slot,S),Ss_(this.B, this.slot,W)):GI("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,S)}}; g.V.XG=function(S,W){S.layoutId!==this.layout.layoutId?this.callback.m9(this.slot,S,new tF("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.hw(this.slot,S,W),plP(this),FJP(this))};g.u(aw,g.au);g.V=aw.prototype;g.V.Mw=function(){return this.N.slot}; g.V.e9=function(){return this.N.layout}; g.V.init=function(){this.B.get().addListener(this)}; g.V.release=function(){this.B.get().removeListener(this);this.dispose()}; g.V.hs=function(){}; g.V.Js=function(){}; g.V.rW=function(){}; g.V.wm=function(){}; g.V.startRendering=function(S){var W=this;mz(this.N,S,function(){return void W.P5()})}; g.V.P5=function(){this.B.get().P5(this.C)}; g.V.XG=function(S,W){var m=this;mz(this.N,S,function(){var a=m.B.get();m0Q(a,m.C,3);m.C=[];m.callback.hw(m.slot,S,W)})}; g.V.j9=function(){this.B.TN()||this.B.get().removeListener(this);g.au.prototype.j9.call(this)}; g.Z6.Object.defineProperties(aw.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.N.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.N.layout}}});Ko.prototype.Su=function(S,W){W=W===void 0?!1:W;var m=(this.B.get(S)||[]).concat();if(W=W&&ugQ(S)){var a=this.B.get(W);a&&m.push.apply(m,g.x(a))}po(this,S,m);this.C.add(S);W&&this.C.add(W)}; Ko.prototype.Sg=function(S,W){W=W===void 0?!1:W;if(!this.C.has(S)){var m=W&&ugQ(S);m&&(W=!this.C.has(m));this.Su(S,W)}};g.u(jY6,m$);g.u(uQ,aw);g.V=uQ.prototype;g.V.N6=function(S,W){zq("ads-engagement-panel-layout",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),g.n(this.e9().renderingContent,SM),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(W,m,a,J,B){return new jY6(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};g.u(XlP,m$);g.u(gD,aw);g.V=gD.prototype;g.V.N6=function(S,W){zq("banner-image",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),g.n(this.e9().renderingContent,Dd),this.callback,"metadata_type_banner_image_layout_view_model",function(W,m,a,J,B){return new XlP(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};g.u(Oq,m$);g.u(jT,aw);g.V=jT.prototype;g.V.N6=function(S,W){zq("action-companion",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),g.n(this.e9().renderingContent,rZ),this.callback,"metadata_type_action_companion_ad_renderer",function(W,m,a,J,B){return new Oq(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){W.layoutId===this.layout.layoutId?this.lY.Sg("impression"):this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};g.u(l86,m$);g.u(QO,aw);g.V=QO.prototype;g.V.N6=function(S,W){zq("image-companion",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),g.n(this.e9().renderingContent,Cb),this.callback,"metadata_type_image_companion_ad_renderer",function(W,m,a,J,B){return new l86(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){W.layoutId===this.layout.layoutId?this.lY.Sg("impression"):this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};g.u(UdK,m$);g.u(Xq,aw);g.V=Xq.prototype;g.V.N6=function(S,W){zq("shopping-companion",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(W,m,a,J,B){return new UdK(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){W.layoutId===this.layout.layoutId?this.lY.Sg("impression"):this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};g.u(lQ,aw);g.V=lQ.prototype;g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(W,m,a,J,B){return new Oq(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(){}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)}; g.V.N6=function(){};g.V=iU6.prototype;g.V.Mw=function(){return this.slot}; g.V.e9=function(){return this.layout}; g.V.init=function(){this.tX.get().addListener(this);this.tX.get().Et.push(this);var S=Zb(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=Zb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");yO(this.layout.Bv)&&mh(this.qw.get(),this.layout.layoutId,{pu:W,qT:S,listener:this})}; g.V.release=function(){this.tX.get().removeListener(this);Ckc(this.tX.get(),this);yO(this.layout.Bv)&&a0(this.qw.get(),this.layout.layoutId)}; g.V.startRendering=function(S){this.callback.jD(this.slot,S)}; g.V.XG=function(S,W){gSP(this.AX.get())&&!this.C&&(this.lY.Sg("abandon"),this.C=!0);this.callback.hw(this.slot,S,W)}; g.V.n1=function(S){switch(S.id){case "part2viewed":this.lY.Sg("start");this.lY.Sg("impression");break;case "videoplaytime25":this.lY.Sg("first_quartile");break;case "videoplaytime50":this.lY.Sg("midpoint");break;case "videoplaytime75":this.lY.Sg("third_quartile");break;case "videoplaytime100":gSP(this.AX.get())?this.C||(this.lY.Sg("complete"),this.C=!0):this.lY.Sg("complete");sq(this.lY)&&VO(this.lY,Infinity,!0);OAP(this.AX.get())&&Ho(this.N,Infinity,!0);break;case "engagedview":sq(this.lY)||this.lY.Sg("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:GI("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.V.onVolumeChange=function(){}; g.V.Ts=function(){}; g.V.Ia=function(){}; g.V.Oq=function(){}; g.V.onFullscreenToggled=function(){}; g.V.Ck=function(){}; g.V.zB=function(){}; g.V.WN=function(S){OAP(this.AX.get())&&Ho(this.N,S*1E3,!1);sq(this.lY)&&VO(this.lY,S*1E3,!1)}; g.V.Eq=function(){}; g.V.aI=function(){this.lY.Sg("active_view_measurable")}; g.V.y0=function(){this.lY.Sg("active_view_viewable")}; g.V.II=function(){this.lY.Sg("active_view_fully_viewable_audible_half_duration")}; g.V.qt=function(){this.lY.Sg("audio_measurable")}; g.V.j2=function(){this.lY.Sg("audio_audible")};g.u(M8,aw);g.V=M8.prototype;g.V.init=function(){aw.prototype.init.call(this);var S=Zb(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.K3};this.C.push(new u2(S,this.layout.layoutId,Zb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,!0))}; g.V.e4=function(){this.j||this.tX.get().resumeVideo(1)}; g.V.startRendering=function(S){aw.prototype.startRendering.call(this,S);GY(this.tX.get(),"ad-showing");this.callback.jD(this.slot,S);this.X.mx=this}; g.V.XG=function(S,W){aw.prototype.XG.call(this,S,W);KF(this.tX.get(),"ad-showing");rL(this.X,this)}; g.V.N6=function(S){switch(S){case "ad-info-icon-button":(this.j=this.tX.get().GT(1))||this.tX.get().pauseVideo();break;case "visit-advertiser":this.tX.get().pauseVideo()}}; g.V.j9=function(){aw.prototype.j9.call(this)};g.u(Uq,m$);g.u(Lo,aw);g.V=Lo.prototype;g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,m,a,J,B){return new Uq(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(){}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)}; g.V.N6=function(){};g.u(Rw,m$);g.u(eT,aw);eT.prototype.init=function(){aw.prototype.init.call(this);this.C.push(new Rw(g.n(this.layout.renderingContent,VZ),this.layout.layoutId,{adsClientData:this.layout.K3}))}; eT.prototype.N6=function(){Vq(this.j.get(),this.X)&&Eq(this.n_.get(),3)}; eT.prototype.startRendering=function(S){aw.prototype.startRendering.call(this,S);this.callback.jD(this.slot,S)}; eT.prototype.j9=function(){aw.prototype.j9.call(this)};g.u(xu,m$);g.u(iQ,aw);iQ.prototype.init=function(){aw.prototype.init.call(this);var S=g.n(this.layout.renderingContent,ow)||Zb(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),W=JQ(this.lY);this.C.push(new xu(S,W,this.layout.layoutId,{adsClientData:this.layout.K3},!0,!0))}; iQ.prototype.startRendering=function(S){aw.prototype.startRendering.call(this,S);this.callback.jD(this.slot,S)}; iQ.prototype.N6=function(S,W){if(W===this.layout.layoutId)switch(S){case "skip-button":var m;(S=(m=Zb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&hS(S,this.Mw(),this.layout)}}; iQ.prototype.j9=function(){aw.prototype.j9.call(this)};Iw.prototype.build=function(S,W,m,a){if(dD(a,{BG:["metadata_type_ad_break_response_data"],kP:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new TT7(S,m,a,this.N,this.B,this.C);throw new tF("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Np(a.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.u(PRj,m$);g.u(Po,aw);g.V=Po.prototype;g.V.N6=function(S,W){zq("ads-engagement-panel",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),g.n(this.e9().renderingContent,ci),this.callback,"metadata_type_ads_engagement_panel_renderer",function(W,m,a,J,B){return new PRj(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){W.layoutId===this.layout.layoutId?this.lY.Sg("impression"):this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};g.u(fo,aw);g.V=fo.prototype;g.V.N6=function(S,W){zq("top-banner-image-text-icon-buttoned",S,this.V.get().qx,this.n_.get(),this.j,this.X,this.Mw(),this.e9(),W)}; g.V.startRendering=function(S){Bo(this.lY,this.Mw(),this.e9(),g.n(this.e9().renderingContent,wZ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,m,a,J,B){return new Uq(W,m,a,J,B)},this.C); aw.prototype.startRendering.call(this,S)}; g.V.jD=function(S,W){this.X===W.layoutId&&(this.j===null?this.j=this.n_.get().ju():GI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.j9=function(){ml(this.cU(),this);aw.prototype.j9.call(this)};$dX.prototype.build=function(S,W,m,a){if(dD(a,f8K())||g.n(a.renderingContent,ci)!==void 0)return new Po(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,HUG())||g.n(a.renderingContent,rZ)!==void 0)return new jT(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,Mll())||g.n(a.renderingContent,Cb)!==void 0)return new QO(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,LJQ()))return new Xq(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,xdl()))return new lQ(S,m,a,this.BU,this.n_,this.cU, this.qw,this.C);if(dD(a,vzc())||g.n(a.renderingContent,Dd)!==void 0)return new gD(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,k$j())||g.n(a.renderingContent,wZ)!==void 0)return new fo(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,ddD()))return new Lo(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);if(dD(a,QYQ())||g.n(a.renderingContent,SM)!==void 0)return new uQ(S,m,a,this.BU,this.n_,this.cU,this.qw,this.C);throw new tF("Unsupported layout with type: "+a.layoutType+" and client metadata: "+ Np(a.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};hi7.prototype.build=function(S,W,m,a){if(dD(a,{BG:["metadata_type_linked_player_bytes_layout_id"],kP:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new eT(S,m,a,this.BU,this.n_,this.C);throw new tF("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Np(a.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.V=tl6.prototype;g.V.Mw=function(){return this.slot}; g.V.e9=function(){return this.layout}; g.V.init=function(){}; g.V.release=function(){}; g.V.startRendering=function(S){S.layoutId!==this.layout.layoutId?this.callback.m9(this.slot,S,new tF("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.jD(this.slot,S),this.lY.Sg("impression"),No(this.Vm,S))}; g.V.XG=function(S,W){S.layoutId!==this.layout.layoutId?this.callback.m9(this.slot,S,new tF("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.hw(this.slot,S,W)};g.V=ZU7.prototype;g.V.Mw=function(){return this.slot}; g.V.e9=function(){return this.layout}; g.V.init=function(){}; g.V.release=function(){}; g.V.startRendering=function(S){S.layoutId!==this.layout.layoutId?this.callback.m9(this.slot,S,new tF("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.jD(this.slot,S),this.lY.Sg("impression"),No(this.Vm,S))}; g.V.XG=function(S,W){S.layoutId!==this.layout.layoutId?this.callback.m9(this.slot,S,new tF("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.hw(this.slot,S,W)};ku.prototype.build=function(S,W,m,a){if(!this.AX.get().W.J().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(dD(a,Ay_()))return new tl6(S,m,a,this.n_,this.Vm)}else if(dD(a,{BG:[],kP:["LAYOUT_TYPE_FORECASTING"]}))return new ZU7(S,m,a,this.n_,this.Vm);throw new tF("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Np(a.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(ozQ,m$);g.u($u,aw);g.V=$u.prototype;g.V.init=function(){aw.prototype.init.call(this);var S=g.n(this.layout.renderingContent,bQ)||Zb(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),W={adsClientData:this.layout.K3};this.C.push(new ozQ(S,Zb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,W))}; g.V.e4=function(){this.j||this.tX.get().resumeVideo(2)}; g.V.startRendering=function(S){aw.prototype.startRendering.call(this,S);this.callback.jD(this.slot,S);this.X.mx=this}; g.V.XG=function(S,W){aw.prototype.XG.call(this,S,W);rL(this.X,this)}; g.V.N6=function(S,W){if(!i1(this.AX.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(Vq(this.V.get(),this.Z))switch(S){case "visit-advertiser-link":Eq(this.n_.get(),3)}switch(S){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.tX.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.tX.get().GT(2))||this.tX.get().pauseVideo();break; case "visit-advertiser-link":this.tX.get().pauseVideo();ryK(this).Ft();break;case "skip-button":if(S=ryK(this),this.layout.renderingContent&&!k_(this.layout.clientMetadata,"metadata_type_dai")||!S||!S.zg){var m;(S=(m=Zb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&hS(S,this.Mw(),this.layout)}else GI("Requesting to skip by LegacyPlayerBytes when components enabled"),S.w9(this.Mw(),this.layout)}}}; g.V.j9=function(){aw.prototype.j9.call(this)};g.u(hQ,aw);g.V=hQ.prototype;g.V.init=function(){aw.prototype.init.call(this);var S=g.n(this.layout.renderingContent,N8)||Zb(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.K3},m;(m=!!this.layout.renderingContent)||(m=tQ(this),m=!(m&&m.zg));this.C.push(new u2(S,this.layout.layoutId,Zb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,m))}; g.V.e4=function(){this.j||this.tX.get().resumeVideo(2)}; g.V.startRendering=function(S){aw.prototype.startRendering.call(this,S);this.callback.jD(this.slot,S);this.X.mx=this}; g.V.XG=function(S,W){aw.prototype.XG.call(this,S,W);rL(this.X,this)}; g.V.N6=function(S,W){if(!this.AX||!i1(this.AX.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(Vq(this.V.get(),this.Z))switch(S){case "visit-advertiser":Eq(this.n_.get(),3)}switch(S){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.tX.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.tX.get().GT(2))||this.tX.get().pauseVideo();break; case "visit-advertiser":this.tX.get().pauseVideo();tQ(this).Ft();break;case "skip-button":if(S=tQ(this),this.layout.renderingContent&&!k_(this.layout.clientMetadata,"metadata_type_dai")||!S||!S.zg){var m;(S=(m=Zb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&hS(S,this.Mw(),this.layout)}else GI("Requesting to skip by LegacyPlayerBytes"),S.w9(this.Mw(),this.layout)}}}; g.V.j9=function(){aw.prototype.j9.call(this)};g.u(cy_,m$);g.u(AQ,aw);g.V=AQ.prototype;g.V.startRendering=function(S){var W=this;mz(this.N,S,function(){W.C.push(new cy_(Zb(W.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),S.layoutId,S.K3));W.P5();W.callback.jD(W.slot,S);g.C(Wu(W.tX.get(),1),512)&&W.callback.m9(W.Mw(),W.e9(),new tF("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.V.zB=function(){}; g.V.Ck=function(S){if(S.state.isError()){var W;this.callback.m9(this.Mw(),this.e9(),new tF("A player error happened during adNotify",{playerErrorCode:(W=S.state.Of)==null?void 0:W.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.V.onFullscreenToggled=function(){}; g.V.Ia=function(){}; g.V.Oq=function(){}; g.V.Ts=function(){}; g.V.onVolumeChange=function(){}; g.V.n1=function(){}; g.V.Eq=function(){}; g.V.N6=function(){};g.u(wlQ,m$);g.u(Zq,aw);Zq.prototype.init=function(){aw.prototype.init.call(this);var S=g.n(this.layout.renderingContent,rD),W=JQ(this.lY);this.C.push(new wlQ(S,W,this.layout.layoutId,{adsClientData:this.layout.K3}))}; Zq.prototype.startRendering=function(S){aw.prototype.startRendering.call(this,S);this.callback.jD(this.slot,S)}; Zq.prototype.N6=function(S,W){if(W===this.layout.layoutId)switch(S){case "skip-button":var m;(S=(m=Zb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&hS(S,this.Mw(),this.layout)}}; Zq.prototype.j9=function(){aw.prototype.j9.call(this)};SBX.prototype.build=function(S,W,m,a){if(S=Co(S,m,a,this.BU,this.tX,this.n_,this.N,this.C,this.AX))return S;throw new tF("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Np(a.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.V=wD.prototype;g.V.Mw=function(){return this.slot}; g.V.e9=function(){return this.layout}; g.V.init=function(){this.tX.get().addListener(this);this.tX.get().Et.push(this);var S=W$P(this),W=g.n(this.layout.renderingContent,TV),m=W?Yu(W.pings):Zb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W=W?sYO(W.pings):Zb(this.layout.clientMetadata,"metadata_type_active_view_identifier");yO(this.layout.Bv)&&mh(this.qw.get(),this.layout.layoutId,{pu:m,qT:S,listener:this,rJ:W})}; g.V.release=function(){this.tX.get().removeListener(this);Ckc(this.tX.get(),this);yO(this.layout.Bv)&&a0(this.qw.get(),this.layout.layoutId)}; g.V.startRendering=function(S){this.callback.jD(this.slot,S)}; g.V.XG=function(S,W){Sh(this,"abandon");this.callback.hw(this.slot,S,W)}; g.V.n1=function(S){switch(S.id){case "part2viewed":this.lY.Sg("start");this.lY.Sg("impression");break;case "videoplaytime25":this.lY.Sg("first_quartile");break;case "videoplaytime50":this.lY.Sg("midpoint");break;case "videoplaytime75":this.lY.Sg("third_quartile");break;case "videoplaytime100":Sh(this,"complete");sq(this.lY)&&VO(this.lY,Infinity,!0);jMl(this.AX.get())&&Ho(this.N,Infinity,!0);break;case "engagedview":sq(this.lY)||this.lY.Sg("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:GI("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.V.onVolumeChange=function(){}; g.V.Ts=function(){}; g.V.Ia=function(){}; g.V.Oq=function(){}; g.V.onFullscreenToggled=function(){}; g.V.Ck=function(S){this.C||(g.qb(S,4)&&!g.qb(S,2)?Fq(this.lY,"pause"):TI(S,4)<0&&!(TI(S,2)<0)&&Fq(this.lY,"resume"))}; g.V.zB=function(){}; g.V.WN=function(S){jMl(this.AX.get())&&Ho(this.N,S*1E3,!1);sq(this.lY)&&VO(this.lY,S*1E3,!1)}; g.V.Eq=function(){Sh(this,"swipe")}; g.V.aI=function(){this.lY.Sg("active_view_measurable")}; g.V.y0=function(){this.lY.Sg("active_view_viewable")}; g.V.II=function(){this.lY.Sg("active_view_fully_viewable_audible_half_duration")}; g.V.qt=function(){this.lY.Sg("audio_measurable")}; g.V.j2=function(){this.lY.Sg("audio_audible")};muK.prototype.build=function(S,W,m,a){if(m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.n(a.renderingContent,TV)!==void 0)return new wD(S,m,a,this.tX,this.n_,this.sV,this.AX,this.qw,this.JX);W=["metadata_type_ad_placement_config"];for(var J=g.R(Tq()),B=J.next();!B.done;B=J.next())W.push(B.value);if(dD(a,{BG:W,kP:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new wD(S,m,a,this.tX,this.n_,this.sV,this.AX,this.qw,this.JX):new iU6(S,m,a, this.tX,this.n_,this.sV,this.AX,this.qw);throw new tF("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Np(a.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Vmn,kN; Vmn={pQD:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",PZn:"AUTHENTICATION_MALFORMED",Gs9:"AUTHENTICATION_MISSING",H12:"BAD_REQUEST",LY6:"CAST_SESSION_DEVICE_MISMATCHED",KYY:"CAST_SESSION_VIDEO_MISMATCHED",rp_:"CAST_TOKEN_EXPIRED",Jp9:"CAST_TOKEN_FAILED",zpX:"CAST_TOKEN_MALFORMED",FY2:"CGI_PARAMS_MALFORMED",hpU:"CGI_PARAMS_MISSING",a7_:"DEVICE_FALLBACK",Fpn:"GENERIC_WITH_LINK_AND_CPN",hf2:"ERROR_HDCP",DS2:"LICENSE",USn:"VIDEO_UNAVAILABLE",pkn:"FORMAT_UNAVAILABLE",uYY:"GEO_FAILURE", PHD:"HTML5_AUDIO_RENDERER_ERROR",Gf9:"GENERIC_WITHOUT_LINK",XAq:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",tI_:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Wg6:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",H6_:"HTML5_SPS_UMP_STATUS_REJECTED",KgY:"INVALID_DRM_MESSAGE",HED:"PURCHASE_NOT_FOUND",Tqn:"PURCHASE_REFUNDED",kw9:"RENTAL_EXPIRED",o0X:"RETRYABLE_ERROR",qln:"SERVER_ERROR",tYX:"SIGNATURE_EXPIRED",OUn:"STOPPED_BY_ANOTHER_PLAYBACK",ZU2:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",E29:"STREAMING_NOT_ALLOWED", g2D:"STREAM_LICENSE_NOT_FOUND",DJ9:"TOO_MANY_REQUESTS",Slq:"TOO_MANY_REQUESTS_WITH_LINK",UJ2:"TOO_MANY_STREAMS_PER_ENTITLEMENT",lV9:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",ao9:"VIDEO_FORBIDDEN",yLQ:"VIDEO_NOT_FOUND",O1X:"BROWSER_OR_EXTENSION_ERROR"};kN={}; g.kb=(kN.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",kN.DEVICE_FALLBACK="Sorry, this video is not available on this device.",kN.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",kN.LICENSE="Sorry, there was an error while licensing this video.",kN.VIDEO_UNAVAILABLE= "Video unavailable",kN.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",kN.GEO_FAILURE="This video isn't available in your country.",kN.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",kN.GENERIC_WITHOUT_LINK="An error has occurred. Please try again later.",kN.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",kN.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognise any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", kN.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",kN.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",kN.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",kN.PURCHASE_NOT_FOUND="This video requires payment.",kN.PURCHASE_REFUNDED="This video's purchase has been refunded.",kN.RENTAL_EXPIRED="This video's rental has expired.",kN.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",kN.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",kN.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",kN.CAST_TOKEN_EXPIRED="Cast session has expired. Please refresh.",kN.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",kN.SERVER_ERROR="There was an internal server error. Please try again later.",kN.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",kN.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",kN.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",kN.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",kN.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",kN.TOO_MANY_REQUESTS="Please log in to watch this video.", kN.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",kN.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",kN.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",kN.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",kN.VIDEO_FORBIDDEN="Access to this video is forbidden.",kN.VIDEO_NOT_FOUND="This video cannot be found.",kN.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",kN);var nlZ;var sSQ=g.mW(),uZg=sSQ.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!uZg||uZg.length<2)nlZ=void 0;else{var gl9=sSQ.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);nlZ=gl9&&gl9.length===6?Number(gl9[5].replace("_",".")):0}var x5=nlZ,i_=x5>=0;g.u(g.Tx,L5);g.Tx.prototype.K=function(S,W,m,a,J){return L5.prototype.K.call(this,S,W,m,a,J)};var $N={},$s=($N.FAIRPLAY="fairplay",$N.PLAYREADY="playready",$N.WIDEVINE="widevine",$N.CLEARKEY=null,$N.FLASHACCESS=null,$N.UNKNOWN=null,$N.WIDEVINE_CLASSIC=null,$N);qZ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var h1={},DF=(h1.WIDTH={name:"width",video:!0,valid:640,C6:99999},h1.HEIGHT={name:"height",video:!0,valid:360,C6:99999},h1.FRAMERATE={name:"framerate",video:!0,valid:30,C6:9999},h1.BITRATE={name:"bitrate",video:!0,valid:3E5,C6:2E9},h1.EOTF={name:"eotf",video:!0,valid:"bt709",C6:"catavision"},h1.CHANNELS={name:"channels",video:!1,valid:2,C6:99},h1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",C6:"invalidformat"},h1.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", C6:"nope"},h1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",C6:"av99.0.05M.08"},h1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",C6:"invalid"},h1.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",C6:"false"},h1);var O$x=["h","H"],jS9=["9","("],QSw=["9h","(h"],XFn=["8","*"],vlN=["a","A"],H$9=["o","O"],lPZ=["m","M"],MmZ=["mac3","MAC3"],UKw=["meac3","MEAC3"],t1={},DZK=(t1.h=O$x,t1.H=O$x,t1["9"]=jS9,t1["("]=jS9,t1["9h"]=QSw,t1["(h"]=QSw,t1["8"]=XFn,t1["*"]=XFn,t1.a=vlN,t1.A=vlN,t1.o=H$9,t1.O=H$9,t1.m=lPZ,t1.M=lPZ,t1.mac3=MmZ,t1.MAC3=MmZ,t1.meac3=UKw,t1.MEAC3=UKw,t1),LXN=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),haP=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var w={},Lx=(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["900"]="2",w["901"]="2",w["902"]="2",w["903"]="2",w["904"]="2",w["905"]="2",w["906"]="2",w["907"]="2",w["908"]="2",w);var A1={},UZK=(A1.STEREO_LAYOUT_UNKNOWN=0,A1.STEREO_LAYOUT_LEFT_RIGHT=1,A1.STEREO_LAYOUT_TOP_BOTTOM=2,A1);var zfG={lW_:0,E0n:124,ZEQ:144,KVD:220,LVn:240,JD9:340,rDn:360,zO9:480,hO_:588,FV9:608,D02:720,SK2:740,n0Y:1080,V42:1100,OE2:1440,g0n:2160,U0n:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var Z_,fw,Nw,RzP;Z_={};g.Ht=(Z_.auto=0,Z_.tiny=144,Z_.light=144,Z_.small=240,Z_.medium=360,Z_.large=480,Z_.hd720=720,Z_.hd1080=1080,Z_.hd1440=1440,Z_.hd2160=2160,Z_.hd2880=2880,Z_.highres=4320,Z_);fw={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Nw={}; RzP=(Nw.QUALITY_ORDINAL_UNKNOWN=0,Nw.QUALITY_ORDINAL_144P_SAVER=124,Nw.QUALITY_ORDINAL_144P=144,Nw.QUALITY_ORDINAL_240P_SAVER=220,Nw.QUALITY_ORDINAL_240P=240,Nw.QUALITY_ORDINAL_360P_SAVER=340,Nw.QUALITY_ORDINAL_360P=360,Nw.QUALITY_ORDINAL_480P=480,Nw.QUALITY_ORDINAL_608P_SAVER=588,Nw.QUALITY_ORDINAL_608P=608,Nw.QUALITY_ORDINAL_720P=720,Nw.QUALITY_ORDINAL_720P_ENHANCED=740,Nw.QUALITY_ORDINAL_1080P=1080,Nw.QUALITY_ORDINAL_1080P_ENHANCED=1100,Nw.QUALITY_ORDINAL_1440P=1440,Nw.QUALITY_ORDINAL_2160P=2160, Nw.QUALITY_ORDINAL_HIGHRES=9999,Nw);var MZ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");lv.prototype.isHdr=function(){return this.C==="smpte2084"||this.C==="arib-std-b67"};R3.prototype.v1=function(){return this.containerType===2}; R3.prototype.isEncrypted=function(){return!!this.PG}; R3.prototype.vD=function(){return!!this.audio}; R3.prototype.jr=function(){return!!this.video}; var iv=!1;g.u(ae,g.au);g.V=ae.prototype;g.V.appendBuffer=function(S,W,m){if(this.Md.B6()!==this.appendWindowStart+this.start||this.Md.FW()!==this.appendWindowEnd+this.start||this.Md.DH()!==this.timestampOffset+this.start)this.Md.supports(1),this.Md.Po(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Md.Je(this.timestampOffset+this.start);this.Md.appendBuffer(S,W,m)}; g.V.abort=function(){this.Md.abort()}; g.V.remove=function(S,W){this.Md.remove(S+this.start,W+this.start)}; g.V.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.V.clear=function(){this.Md.clear()}; g.V.Po=function(S,W){this.appendWindowStart=S;this.appendWindowEnd=W}; g.V.OJ=function(){return this.timestampOffset+this.start}; g.V.B6=function(){return this.appendWindowStart}; g.V.FW=function(){return this.appendWindowEnd}; g.V.Je=function(S){this.timestampOffset=S}; g.V.DH=function(){return this.timestampOffset}; g.V.Ni=function(S){S=this.Md.Ni(S===void 0?!1:S);return mp(S,this.start,this.end)}; g.V.Cy=function(){return this.Md.Cy()}; g.V.yR=function(){return this.Md.yR()}; g.V.Mn=function(){return this.Md.Mn()}; g.V.In=function(){return this.Md.In()}; g.V.uC=function(){this.Md.uC()}; g.V.dg=function(S){return this.Md.dg(S)}; g.V.Xh=function(){return this.Md.Xh()}; g.V.kq=function(){return this.Md.kq()}; g.V.WX=function(S,W,m){this.Md.WX(S,W,m)}; g.V.HX=function(S,W,m){this.Md.HX(S,W,m)}; g.V.CK=function(S,W){return this.Md.CK(S,W)}; g.V.supports=function(S){return this.Md.supports(S)}; g.V.e$=function(){return this.Md.e$()}; g.V.isView=function(){return!0}; g.V.zy=function(){return this.Md.zy()?this.isActive:!1}; g.V.isLocked=function(){return this.wh&&!this.isActive}; g.V.Yb=function(S){S=this.Md.Yb(S);S.vw=this.start+"-"+this.end;return S}; g.V.QM=function(){return this.Md.QM()}; g.V.P6=function(){return this.Md.P6()}; g.V.Wf=function(){return this.Md.Wf()}; g.V.j9=function(){this.Md.Bh(this.NR);g.au.prototype.j9.call(this)};var ZA=!1;g.u(Bb,g.au);g.V=Bb.prototype;g.V.appendBuffer=function(S,W,m){this.PR=!1;m&&(this.Gp=m);if(S.length){var a;((a=this.hv)==null?0:a.appendBuffer)?this.hv.appendBuffer(S):this.hv?this.hv.append(S):this.Xf&&this.Xf.webkitSourceAppend(this.id,S)}W&&(W.isEncrypted()&&(this.zc=this.Gp),W.type===3&&(this.QU=W),this.P9.push(W.GC()),this.P9.length>4&&this.P9.shift());this.yI&&(this.yI.length>=2||S.length>1048576?delete this.yI:this.yI.push(S))}; g.V.abort=function(){try{this.hv?this.hv.abort():this.Xf&&this.Xf.webkitSourceAbort(this.id)}catch(S){c1K&&g.Ue(new g.uc("Error while abort the source buffer: "+S.name+", "+S.message))}this.Gp=this.QU=null}; g.V.remove=function(S,W,m){this.PR=!1;var a;if((a=this.hv)==null?0:a.remove)m&&m({b:r1(this.Ni()),s:S,e:W}),this.hv.remove(S,W)}; g.V.removeAll=function(){this.remove(this.B6(),this.FW())}; g.V.clear=function(){this.Mn()||(this.abort(),this.removeAll(),this.zc=this.Gp=this.QU=null,this.appendWindowStart=this.timestampOffset=0,this.EN=o3([],[]),this.PR=!1,this.yI=JS?[]:void 0,this.Yz=!0)}; g.V.B6=function(){if(ZA&&this.jr)return this.appendWindowStart;var S;return((S=this.hv)==null?void 0:S.appendWindowStart)||0}; g.V.FW=function(){var S;return((S=this.hv)==null?void 0:S.appendWindowEnd)||0}; g.V.Po=function(S,W){this.hv&&(ZA&&this.jr?(this.appendWindowStart=S,this.hv.appendWindowEnd=W):S>this.B6()?(this.hv.appendWindowEnd=W,this.hv.appendWindowStart=S):(this.hv.appendWindowStart=S,this.hv.appendWindowEnd=W))}; g.V.OJ=function(){return this.timestampOffset}; g.V.Je=function(S){ZA?this.timestampOffset=S:this.supports(1)&&(this.hv.timestampOffset=S)}; g.V.DH=function(){return ZA?this.timestampOffset:this.supports(1)?this.hv.timestampOffset:0}; g.V.Ni=function(S){if(S===void 0?0:S)return this.PR||this.Cy()||(this.EN=this.Ni(!1),this.PR=!0),this.EN;try{return this.hv?this.hv.buffered:this.Xf?this.Xf.webkitSourceBuffered(this.id):o3([0],[Infinity])}catch(W){return o3([],[])}}; g.V.Cy=function(){var S;return((S=this.hv)==null?void 0:S.updating)||!1}; g.V.Mn=function(){return this.Yz}; g.V.In=function(){return!this.Yz&&this.Cy()}; g.V.uC=function(){this.Yz=!1}; g.V.dg=function(S){var W=S==null?void 0:S.p_;S=S==null?void 0:S.containerType;return!W&&!S||W===this.p_&&S===this.containerType}; g.V.Xh=function(){return this.Gp}; g.V.kq=function(){return this.zc}; g.V.CK=function(S,W){return this.containerType!==S||this.p_!==W}; g.V.WX=function(S,W,m){if(this.containerType!==S||m&&this.CK(S,m))this.supports(4),E_()&&this.hv.changeType(W),m&&(this.p_=m);this.containerType=S}; g.V.HX=function(S,W,m){this.containerType&&this.CK(S,W)&&E_()&&this.hv.changeType(m);this.containerType=S;this.p_=W}; g.V.e$=function(){return this.QU}; g.V.isView=function(){return!1}; g.V.supports=function(S){switch(S){case 1:var W;return((W=this.hv)==null?void 0:W.timestampOffset)!==void 0;case 0:var m;return!((m=this.hv)==null||!m.appendBuffer);case 2:var a;return!((a=this.hv)==null||!a.remove);case 3:var J,B;return!!(((J=this.hv)==null?0:J.addEventListener)&&((B=this.hv)==null?0:B.removeEventListener));case 4:return!(!this.hv||!this.hv.changeType);default:return!1}}; g.V.zy=function(){return!this.Cy()}; g.V.isLocked=function(){return!1}; g.V.Yb=function(S){S.to=this.DH();S.up=this.Cy();var W,m=((W=this.hv)==null?void 0:W.appendWindowStart)||0,a;W=((a=this.hv)==null?void 0:a.appendWindowEnd)||Infinity;S.aw=m.toFixed(3)+"-"+W.toFixed(3);return S}; g.V.yR=function(){var S;return((S=this.hv)==null?void 0:S.writeHead)||0}; g.V.QM=function(){for(var S={},W=0;W=7&&(!W||((a=this.C_)==null?0:a.T("mweb_ios_allow_playback_workaround_when_ready")))&&ajQ(this,function(){g.s7(function(){g$D(S,S.getCurrentTime(),0)},500)})}return W}; g.V.s_=function(S,W,m){var a;((a=this.C_)==null?0:a.rd())&&this.C_.iY(S,W,m===void 0?!1:m)}; g.V.qI=function(S){this.C_=S}; g.V.oX=function(){return Wb(this.gU(),this.getCurrentTime())}; g.V.seekTo=function(S){this.s$()>0&&(i_&&x5<4&&(S=Math.max(.1,S)),this.setCurrentTime(S))}; g.V.p7=function(S){if(this.s$()===0||this.hasError())return!1;var W=this.getCurrentTime()>0;if(S>=0){var m=this.JD();if(m.length||!W)return ct(m,S)}return W}; g.V.di=function(){if(!this.B&&this.K_)if(this.K_.V)try{var S;this.s_("rms",{l:"mer",sr:(S=this.C_)==null?void 0:S.HD(),rs:qo(this.K_)});this.K_.clear();this.NI(this.K_);this.K_=void 0}catch(W){S=new g.uc("Error while clearing Media Source in MediaElement: "+W.name+", "+W.message),g.lR(S),this.stopVideo()}else this.stopVideo()}; g.V.stopVideo=function(){var S=this;if(!this.B){var W;(W=this.K_)==null||Fk(W);if(A16){if(!this.Z){var m=new Vn;m.then(void 0,function(){}); this.Z=m;NoK&&this.pause();g.s7(function(){S.Z===m&&(s_(S),m.resolve())},200)}}else s_(this)}}; g.V.Ze=function(){var S=this.gU();return SJ(S)&&this.getDuration()?Dy(S,this.getCurrentTime()):0}; g.V.En=function(){var S=this.gU();return SJ(S)&&this.getDuration()?S.end(S.length-1):0}; g.V.Gd=function(){var S=this.getDuration();return S===Infinity?1:S?this.Ze()/S:0}; g.V.Yb=function(){try{var S=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:r1(this.rq(),",",3),vbu:r1(this.gU()),vbs:r1(this.JD()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.s$(),vns:""+this.rk(),vec:""+this.mI(),vemsg:this.TY(),vvol:""+this.getVolume(),vdom:""+ +this.Nl(),vsrc:""+ +!!this.kK(),vw:""+S.width,vh:""+S.height}}catch(W){return{}}}; g.V.Gb=function(){return this.mI()===4}; g.V.hasError=function(){return this.mI()>0}; g.V.CO=function(){switch(this.mI()){case 2:return"progressive.net.retryexhausted";case 3:var S=this.TY();return(S==null?0:S.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||C$P&&(S==null?0:S.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.V.addEventListener=function(S,W){this.bY.listen(S,W,!1,this);this.x_(S)}; g.V.removeEventListener=function(S,W){this.bY.TC(S,W,!1,this)}; g.V.dispatchEvent=function(S){if(this.Z&&S.type==="pause")return!1;if(oNP){var W,m=((W=S.C)==null?void 0:W.timeStamp)||Infinity;W=m>performance.now()?m-Date.now()+performance.now():m;m=this.B||this.K_;if((m==null?0:m.Mn())||W<=((m==null?void 0:m.j)||0)){var a;this.s_("rms",{l:"mede",sr:(a=this.C_)==null?void 0:a.HD(),et:S.type});return!1}if(this.zd)return this.s_("rms",{l:"medes",et:S.type}),m&&S.type==="seeking"&&(m.j=performance.now(),this.zd=!1),!1}return this.bY.dispatchEvent(S)}; g.V.a8=function(){this.q2=!1}; g.V.B3=function(){this.q2=!0;this.BJ(!0)}; g.V.Cb=function(){this.q2&&!this.K0()&&this.BJ(!0)}; g.V.equals=function(S){return!!S&&S.yc()===this.yc()}; g.V.j9=function(){this.Xn&&this.removeEventListener("volumechange",this.Cb);A16&&s_(this);g.A.prototype.j9.call(this)}; var A16=!1,NoK=!1,oNP=!1,C$P=!1;g.V=g.uV.prototype;g.V.isPaused=function(){return g.C(this,4)}; g.V.isPlaying=function(){return g.C(this,8)&&!g.C(this,512)&&!g.C(this,64)&&!g.C(this,2)}; g.V.isOrWillBePlaying=function(){return g.C(this,8)&&!g.C(this,2)&&!g.C(this,1024)}; g.V.isCued=function(){return g.C(this,64)&&!g.C(this,8)&&!g.C(this,4)}; g.V.isBuffering=function(){return g.C(this,1)&&!g.C(this,2)}; g.V.isError=function(){return g.C(this,128)}; g.V.isSuspended=function(){return g.C(this,512)}; g.V.Sq=function(){return g.C(this,64)&&g.C(this,4)}; g.V.toString=function(){return"PSt."+this.state.toString(16)}; var b$={},ob=(b$.BUFFERING="buffering-mode",b$.CUED="cued-mode",b$.ENDED="ended-mode",b$.PAUSED="paused-mode",b$.PLAYING="playing-mode",b$.SEEKING="seeking-mode",b$.UNSTARTED="unstarted-mode",b$);g.u(U_,g.A);g.V=U_.prototype;g.V.Mw=function(){return this.slot}; g.V.e9=function(){return this.layout}; g.V.init=function(){var S=Zb(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=Zb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");yO(this.layout.Bv)&&mh(this.qw.get(),this.layout.layoutId,{pu:W,qT:S,listener:this});tWP(this.n_.get(),this);this.sI()}; g.V.CT=function(){}; g.V.release=function(){yO(this.layout.Bv)&&a0(this.qw.get(),this.layout.layoutId);A4c(this.n_.get(),this);this.S2()}; g.V.V0=function(){}; g.V.Yl=function(){}; g.V.startRendering=function(S){if(S.layoutId!==this.layout.layoutId){this.tR.m9(this.slot,S,new tF("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");var W=!1}else W=!0;W&&(this.iP="rendering_start_requested",this.vO(-1),this.h2(S),this.Vz(!1))}; g.V.jD=function(S,W){if(W.layoutId===this.layout.layoutId){this.iP="rendering";this.C=this.tX.get().isMuted()||this.tX.get().getVolume()===0;this.Sg("impression");this.Sg("start");if(this.tX.get().isMuted()){Re(this,"mute");var m;S=((m=Mo(this))==null?void 0:m.muteCommands)||[];Lt(this.sV.get(),S,this.layout.layoutId)}if(this.tX.get().isFullscreen()){this.Su("fullscreen");var a;m=((a=Mo(this))==null?void 0:a.fullscreenCommands)||[];Lt(this.sV.get(),m,this.layout.layoutId)}a=this.Oc.get();a.B&&!a.N&& (a.X=!1,a.N=!0,a.actionType!=="ad_to_video"&&(iU("pbs",void 0,a.actionType),g.Qi("finalize_all_timelines")&&kH7(a.actionType)));this.vO(1);this.X8(W);var J;W=((J=Mo(this))==null?void 0:J.impressionCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.sO=function(S,W,m){this.X={a_:3,BM:S==="load_timeout"?402:400,errorMessage:W.message};this.Sg("error");var a;S=((a=Mo(this))==null?void 0:a.errorCommands)||[];Lt(this.sV.get(),S,this.layout.layoutId);this.tR.m9(this.slot,this.layout,W,m)}; g.V.Bs=function(){if(this.iP==="rendering"){Re(this,"pause");var S,W=((S=Mo(this))==null?void 0:S.pauseCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId);this.vO(2)}}; g.V.jb=function(){if(this.iP==="rendering"){Re(this,"resume");var S,W=((S=Mo(this))==null?void 0:S.resumeCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.fD=function(S,W){W=W===void 0?!1:W;if(this.iP==="rendering"){VO(this.lY,S*1E3,W);this.C||VO(this.lY,S*1E3,W===void 0?!1:W);var m=this.L0();m&&(m/=1E3,(S>=m*.25||W)&&this.Sg("first_quartile"),(S>=m*.5||W)&&this.Sg("midpoint"),(S>=m*.75||W)&&this.Sg("third_quartile"),this.AX.get().W.J().experiments.mU("enable_progress_command_flush_on_kabuki")?Ho(this.N,S*1E3,W):Ho(this.N,S*1E3,LoD(this)?W:!1))}}; g.V.u3=function(){var S;return((S=Wt(this.JX.get(),1))==null?void 0:S.clientPlaybackNonce)||""}; g.V.Q1=function(S,W){S.layoutId!==this.layout.layoutId?this.tR.m9(this.slot,S,new tF("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.V.hw=function(S,W,m){if(W.layoutId===this.layout.layoutId)switch(this.iP="not_rendering",this.layoutExitReason=void 0,(S=m!=="normal"||this.position+1===this.j)&&this.Vz(S),this.NO(m),this.vO(0),m){case "abandoned":if(no(this.lY,"impression")){var a,J=((a=Mo(this))==null?void 0:a.abandonCommands)||[];Lt(this.sV.get(),J,this.layout.layoutId)}break;case "normal":a=((J=Mo(this))==null?void 0:J.completeCommands)||[];Lt(this.sV.get(),a,this.layout.layoutId);break;case "skipped":var B;a=((B=Mo(this))== null?void 0:B.skipCommands)||[];Lt(this.sV.get(),a,this.layout.layoutId)}}; g.V.XS=function(){return this.layout.layoutId}; g.V.dV=function(){return this.X}; g.V.aI=function(){if(this.iP==="rendering"){this.lY.Sg("active_view_measurable");var S,W=((S=Mo(this))==null?void 0:S.activeViewMeasurableCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.II=function(){if(this.iP==="rendering"){this.lY.Sg("active_view_fully_viewable_audible_half_duration");var S,W=((S=Mo(this))==null?void 0:S.activeViewFullyViewableAudibleHalfDurationCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.y0=function(){if(this.iP==="rendering"){this.lY.Sg("active_view_viewable");var S,W=((S=Mo(this))==null?void 0:S.activeViewViewableCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.j2=function(){if(this.iP==="rendering"){this.lY.Sg("audio_audible");var S,W=((S=Mo(this))==null?void 0:S.activeViewAudioAudibleCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.qt=function(){if(this.iP==="rendering"){this.lY.Sg("audio_measurable");var S,W=((S=Mo(this))==null?void 0:S.activeViewAudioMeasurableCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}}; g.V.Vz=function(S){this.Oc.get().Vz(Zb(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,S,this.position,this.j,!1)}; g.V.onFullscreenToggled=function(S){if(this.iP==="rendering")if(S){this.Su("fullscreen");var W,m=((W=Mo(this))==null?void 0:W.fullscreenCommands)||[];Lt(this.sV.get(),m,this.layout.layoutId)}else this.Su("end_fullscreen"),W=((m=Mo(this))==null?void 0:m.endFullscreenCommands)||[],Lt(this.sV.get(),W,this.layout.layoutId)}; g.V.onVolumeChange=function(){if(this.iP==="rendering")if(this.tX.get().isMuted()){Re(this,"mute");var S,W=((S=Mo(this))==null?void 0:S.muteCommands)||[];Lt(this.sV.get(),W,this.layout.layoutId)}else Re(this,"unmute"),S=((W=Mo(this))==null?void 0:W.unmuteCommands)||[],Lt(this.sV.get(),S,this.layout.layoutId)}; g.V.Ia=function(){}; g.V.Oq=function(){}; g.V.Ts=function(){}; g.V.n1=function(){}; g.V.Eq=function(){}; g.V.Su=function(S){this.lY.Su(S,!this.C)}; g.V.Sg=function(S){this.lY.Sg(S,!this.C)};g.u(xH,U_);g.V=xH.prototype;g.V.sI=function(){}; g.V.S2=function(){var S=this.n_.get();S.Te===this&&(S.Te=null);this.timer.stop()}; g.V.V0=function(){this.timer.stop();U_.prototype.Bs.call(this)}; g.V.Yl=function(){RfK(this);U_.prototype.jb.call(this)}; g.V.L0=function(){return Zb(this.e9().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.V.XG=function(S,W){var m=this;this.Q1(S,function(){m.iP!=="rendering_stop_requested"&&(m.iP="rendering_stop_requested",m.layoutExitReason=W,v$l(m,W),m.timer.stop())})}; g.V.Zb=function(){var S=Date.now(),W=S-this.U5;this.U5=S;this.yB+=W;this.yB>=this.L0()?(this.yB=this.L0(),this.fD(this.yB/1E3,!0),iV(this,this.yB),this.VW()):(this.fD(this.yB/1E3),iV(this,this.yB))}; g.V.Ck=function(S){if(this.iP!=="not_rendering"){S=HZl(this,S);var W=this.tX.get().getPresentingPlayerType()===2;this.iP==="rendering_start_requested"?W&&co(S)&&this.Qz():W?g.qb(S,2)?GI("Receive player ended event during MediaBreak",this.Mw(),this.e9()):lQl(this,S):this.DM()}}; g.V.h2=function(){MDP(this);DqK(this.tX.get());this.n_.get().Te=this;eG("pbp")||eG("pbs")||iU("pbp");eG("pbp","watch")||eG("pbs","watch")||iU("pbp",void 0,"watch");this.Qz()}; g.V.X8=function(S){this.Oc.get();var W=Zb(S.clientMetadata,"metadata_type_ad_placement_config").kind,m=this.position===0;S=Zb(S.clientMetadata,"metadata_type_linked_in_player_layout_type");S={adBreakType:LP(W),adType:FYK(S)};var a=void 0;m?W!=="AD_PLACEMENT_KIND_START"&&(a="video_to_ad"):a="ad_to_ad";UY("ad_mbs",void 0,a);g.LG(S,a);RfK(this)}; g.V.DM=function(){this.VW()}; g.V.NO=function(){}; g.V.zB=function(){};g.u(Pb,U_);g.V=Pb.prototype;g.V.DM=function(){this.VW()}; g.V.Ck=function(S){this.S0(S)}; g.V.sI=function(){Zb(this.e9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Zb(this.e9().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.V.S2=function(){Zb(this.e9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.xs&&this.wA.get().removeCueRange(this.xs);this.xs=void 0;var S;(S=this.Ib)==null||S.dispose();this.gC&&this.gC.dispose()}; g.V.h2=function(S){var W=Zb(S.clientMetadata,"metadata_type_ad_placement_config");W=de(this.AX.get(),W);var m=Ie(this.AX.get());if(W&&m){m=Zb(S.clientMetadata,"metadata_type_preload_player_vars");var a=this.AX.get();a=g.Db(a.W.J().experiments,"html5_preload_wait_time_secs");m&&this.gC&&this.gC.start(a*1E3)}m=Zb(S.clientMetadata,"metadata_type_ad_video_id");a=Zb(S.clientMetadata,"metadata_type_legacy_info_card_vast_extension");m&&a&&this.LC.get().W.J().Hn.add(m,{Ss:a});(m=Zb(S.clientMetadata,"metadata_type_sodar_extension_data"))&& bz6(this.zY.get(),m);w77(this.tX.get(),!1);MDP(this);W?(m=this.FE.get(),S=Zb(S.clientMetadata,"metadata_type_player_vars"),m.W.loadVideoByPlayerVars(S,!1,2)):FSX(this.FE.get(),Zb(S.clientMetadata,"metadata_type_player_vars"));var J;(J=this.Ib)==null||J.start();W||this.FE.get().W.playVideo(2)}; g.V.X8=function(){var S;(S=this.Ib)==null||S.stop();this.dP();(this.adCpn=X1P(this))||GI("Media layout confirmed started, but ad CPN not set.");this.Ya.get().Z6("onAdStart",this.adCpn);this.Xo=Date.now()}; g.V.L0=function(){var S;return(S=Wt(this.JX.get(),2))==null?void 0:S.i5}; g.V.Ft=function(){this.lY.Su("clickthrough")}; g.V.XG=function(S,W){var m=this;this.Q1(S,function(){if(m.iP!=="rendering_stop_requested"){m.iP="rendering_stop_requested";m.layoutExitReason=W;v$l(m,W);var a;(a=m.Ib)==null||a.stop();m.gC&&m.gC.stop();w77(m.tX.get(),!0);var J;((J=m.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&m.tX.get().cO(!1)}})}; g.V.onCueRangeEnter=function(S){S!==this.xs?GI("Received CueRangeEnter signal for unknown layout.",this.Mw(),this.e9(),{cueRangeId:S}):(this.wA.get().removeCueRange(this.xs),this.xs=void 0,S=Zb(this.e9().clientMetadata,"metadata_type_video_length_seconds"),this.fD(S,!0),this.Sg("complete"))}; g.V.NO=function(S){S!=="abandoned"&&this.Ya.get().Z6("onAdComplete");this.Ya.get().Z6("onAdEnd",this.adCpn)}; g.V.dP=function(){this.xs="adcompletioncuerange:"+this.e9().layoutId;this.wA.get().addCueRange(this.xs,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.V.onCueRangeExit=function(){}; g.V.zB=function(S){this.iP==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&S>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.tX.get().cO(!0),this.fD(S))}; g.V.fD=function(S,W){U_.prototype.fD.call(this,S,W===void 0?!1:W);W=Date.now()-this.Xo;var m=S*1E3,a={contentCpn:this.u3(),adCpn:X1P(this)};if(S-this.xg>=5){var J=W0&&FT(this.C(),W)}; g.V.Ff=function(S){this.X.delete(S.slotId);for(var W=[],m=g.R(this.Vc.values()),a=m.next();!a.done;a=m.next()){a=a.value;var J=a.trigger;J instanceof Ag&&J.triggeringSlotId===S.slotId&&W.push(a)}W.length>0&&FT(this.C(),W)}; g.V.rp=function(S){for(var W=[],m=g.R(this.Vc.values()),a=m.next();!a.done;a=m.next()){a=a.value;var J=a.trigger;J instanceof xW&&J.slotType===S.slotType&&J.C!==S.slotId&&W.push(a)}W.length>0&&FT(this.C(),W)}; g.V.La=function(S){this.B.add(S.slotId);for(var W=[],m=g.R(this.Vc.values()),a=m.next();!a.done;a=m.next())a=a.value,a.trigger instanceof fb&&S.slotId===a.trigger.triggeringSlotId&&W.push(a);W.length>0&&FT(this.C(),W)}; g.V.Ka=function(S){this.B.delete(S.slotId);this.j.add(S.slotId);for(var W=[],m=g.R(this.Vc.values()),a=m.next();!a.done;a=m.next())if(a=a.value,a.trigger instanceof kW)S.slotId===a.trigger.triggeringSlotId&&W.push(a);else if(a.trigger instanceof jN){var J=a.trigger;S.slotId===J.slotId&&this.N.has(J.triggeringLayoutId)&&W.push(a)}W.length>0&&FT(this.C(),W)}; g.V.JV=function(S){for(var W=[],m=g.R(this.Vc.values()),a=m.next();!a.done;a=m.next())a=a.value,a.trigger instanceof $W&&S.slotId===a.trigger.triggeringSlotId&&W.push(a);W.length>0&&FT(this.C(),W)}; g.V.zO=function(S){for(var W=[],m=g.R(this.Vc.values()),a=m.next();!a.done;a=m.next())a=a.value,a.trigger instanceof hg&&S.slotId===a.trigger.triggeringSlotId&&W.push(a);W.length>0&&FT(this.C(),W)}; g.V.GO=function(S,W){this.V.add(W.layoutId)}; g.V.XM=function(S,W){this.V.delete(W.layoutId)}; g.V.jD=function(S,W){this.N.add(W.layoutId);for(var m=[],a=g.R(this.Vc.values()),J=a.next();!J.done;J=a.next())if(J=J.value,J.trigger instanceof QQ)W.layoutId===J.trigger.triggeringLayoutId&&m.push(J);else if(J.trigger instanceof eN){var B=J.trigger;S.slotType===B.slotType&&W.layoutType===B.layoutType&&W.layoutId!==B.C&&m.push(J)}else J.trigger instanceof jN&&(B=J.trigger,W.layoutId===B.triggeringLayoutId&&this.j.has(B.slotId)&&m.push(J));m.length>0&&FT(this.C(),m)}; g.V.hw=function(S,W,m){this.N.delete(W.layoutId);S=[];for(var a=g.R(this.Vc.values()),J=a.next();!J.done;J=a.next())if(J=J.value,J.trigger instanceof vi&&W.layoutId===J.trigger.triggeringLayoutId&&S.push(J),J.trigger instanceof Xw){var B=J.trigger;W.layoutId===B.triggeringLayoutId&&B.C.includes(m)&&S.push(J)}S.length>0&&FT(this.C(),S)}; g.V.Yt=function(){}; g.V.FK=function(){this.j.clear()}; g.V.vA=function(){};g.u(XG,g.A);XG.prototype.zs=function(S,W,m,a){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(W instanceof gZ))throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CloseRequestedTriggerAdapter");this.Vc.set(W.triggerId,new by(S,W,m,a))}; XG.prototype.SU=function(S){this.Vc.delete(S.triggerId)};g.u(Hk,g.A);Hk.prototype.zs=function(S,W,m,a){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(W instanceof uy||W instanceof dZ))throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Vc.set(W.triggerId,new by(S,W,m,a))}; Hk.prototype.SU=function(S){this.Vc.delete(S.triggerId)}; Hk.prototype.FK=function(S){for(var W=[],m=W.push,a=m.apply,J=[],B=g.R(this.Vc.values()),E=B.next();!E.done;E=B.next())E=E.value,E.trigger instanceof uy&&E.trigger.iX===S&&J.push(E);a.call(m,W,g.x(J));m=W.push;a=m.apply;J=[];B=g.R(this.Vc.values());for(E=B.next();!E.done;E=B.next())E=E.value,E.trigger instanceof dZ&&E.trigger.C!==S&&J.push(E);a.call(m,W,g.x(J));W.length&&FT(this.C(),W)}; Hk.prototype.vA=function(S){for(var W=[],m=W.push,a=m.apply,J=[],B=g.R(this.Vc.values()),E=B.next();!E.done;E=B.next()){E=E.value;var y=E.trigger;y instanceof dZ&&y.C===S&&J.push(E)}a.call(m,W,g.x(J));W.length&&FT(this.C(),W)};g.u(lL,g.A);g.V=lL.prototype;g.V.zs=function(S,W,m,a){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");var J="adtriggercuerange:"+W.triggerId;if(W instanceof Lb)Bi7(this,S,W,m,a,J,W.C.start,W.C.end,W.iX,W.visible);else if(W instanceof On)Bi7(this,S,W,m,a,J,0x7ffffffffffff,0x8000000000000,W.iX,W.visible);else throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CueRangeTriggerAdapter");}; g.V.SU=function(S){var W=this.Vc.get(S.triggerId);W&&this.wA.get().removeCueRange(W.cueRangeId);this.Vc.delete(S.triggerId)}; g.V.onCueRangeEnter=function(S){if(S=E_O(this,S))if(S=this.Vc.get(S))if(g.C(Wu(this.tX.get()),32))this.C.add(S.cueRangeId);else{var W=S==null?void 0:S.m2.trigger;(W instanceof Lb||W instanceof On)&&FT(this.N(),[S.m2])}}; g.V.onCueRangeExit=function(S){(S=E_O(this,S))&&(S=this.Vc.get(S))&&this.C.delete(S.cueRangeId)}; g.V.Ck=function(S){if(TI(S,16)<0){S=g.R(this.C);for(var W=S.next();!W.done;W=S.next())this.onCueRangeEnter(W.value,!0);this.C.clear()}}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.jD=function(){}; g.V.hw=function(){}; g.V.Yt=function(){}; g.V.zB=function(){}; g.V.onFullscreenToggled=function(){}; g.V.Ia=function(){}; g.V.Oq=function(){}; g.V.Ts=function(){}; g.V.onVolumeChange=function(){}; g.V.n1=function(){}; g.V.Eq=function(){};g.u(MC,g.A); MC.prototype.zs=function(S,W,m,a){if(this.N.has(W.triggerId)||this.B.has(W.triggerId))throw new D("Tried to re-register the trigger.");S=new by(S,W,m,a);if(S.trigger instanceof Un)this.N.set(S.trigger.triggerId,S);else if(S.trigger instanceof Hi)this.B.set(S.trigger.triggerId,S);else throw new D("Incorrect TriggerType: Tried to register trigger of type "+S.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.N.has(S.trigger.triggerId)&&S.slot.slotId===this.C&&FT(this.j(),[S])}; MC.prototype.SU=function(S){this.N.delete(S.triggerId);this.B.delete(S.triggerId)}; MC.prototype.ph=function(S){S=S.slotId;if(this.C!==S){var W=[];this.C!=null&&W.push.apply(W,g.x(zD_(this.B,this.C)));S!=null&&W.push.apply(W,g.x(zD_(this.N,S)));this.C=S;W.length&&FT(this.j(),W)}};g.u(U8,g.A);g.V=U8.prototype;g.V.zs=function(S,W,m,a){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(W instanceof iy))throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Vc.set(W.triggerId,new by(S,W,m,a))}; g.V.SU=function(S){this.Vc.delete(S.triggerId)}; g.V.jD=function(){}; g.V.hw=function(){}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){};g.u(Lq,g.A);g.V=Lq.prototype;g.V.Yt=function(S,W){for(var m=[],a=g.R(this.Vc.values()),J=a.next();!J.done;J=a.next()){J=J.value;var B=J.trigger;B.opportunityType===S&&(B.associatedSlotId&&B.associatedSlotId!==W||m.push(J))}m.length&&FT(this.C(),m)}; g.V.zs=function(S,W,m,a){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(W instanceof ro7))throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OpportunityEventTriggerAdapter");this.Vc.set(W.triggerId,new by(S,W,m,a))}; g.V.SU=function(S){this.Vc.delete(S.triggerId)}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.jD=function(){}; g.V.hw=function(){};g.u(Rl,g.A);g.V=Rl.prototype;g.V.zs=function(S,W,m,a){S=new by(S,W,m,a);if(W instanceof ly||W instanceof Ri||W instanceof MF||W instanceof Ii||W instanceof nml){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");this.Vc.set(W.triggerId,S)}else throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in PrefetchTriggerAdapter");}; g.V.SU=function(S){this.Vc.delete(S.triggerId)}; g.V.pC=function(S){var W=S.slotFulfillmentTriggers.find(function(m){return m instanceof ly}); W&&(e4(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",W.breakDurationMs,new Set([S.slotId]),!0),DY(this.n_.get(),"ads_css","sid."+S.slotId+";bd."+W.breakDurationMs))}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.jD=function(){}; g.V.hw=function(){}; g.V.Yt=function(){}; g.V.mS=function(S){var W=this;if(!this.C)return DY(this.n_.get(),"ads_nfi","a.pta;cid."+S.identifier),!1;this.N&&this.N.stop();this.X&&g.Cu(this.X);var m=KYc(this,S);if(!m){var a=yF_(this),J=this.Z!==void 0&&Date.now()<=this.Z+1E4;DY(this.n_.get(),"ads_ncfs","cid."+S.identifier+";cd."+S.Gk.toFixed(3)+";ccs."+J+";cfa."+this.j+";bdc."+a.length+";"+a.slice(0,6).map(function(B){return";bd."+B}).join("")); return J?(yq(this.nJ,this.C,S),!0):!1}(a=Zb(m.slot.clientMetadata,"metadata_type_triggering_cue_point"))?a.current=S:GI("Expected triggering cue point ref to be available",m.slot);(new g.rj(function(){var B=m.trigger,E=m.slot;e4(W,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",B.breakDurationMs,new Set,!0);e4(W,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",B.breakDurationMs,new Set,!1);for(var y=0,Y=g.R(W.Vc.values()),G=Y.next();!G.done;G=Y.next()){G=G.value;var K=G.trigger; G.slot.slotId===E.slotId&&(W.Vc.delete(K.triggerId),y++)}DY(W.n_.get(),"ads_csf","sid."+E.slotId+";bd."+B.breakDurationMs+";dt."+y)},10)).start(); return!0}; g.V.HN=function(){}; g.V.FK=function(S){var W=this;this.j=!1;this.Z=Date.now();if(this.C&&this.C.contentCpn!==S)GI("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:S,fetchInstructionsCpn:this.C.contentCpn}),xT(this);else{this.B=new g.rj(function(){if(W.j)delete W.B;else{var a=W.tX.get().getGetAdBreakContext(),J;if(Number(a==null?void 0:(J=a.livePlaybackPosition)==null?void 0:J.utcTimeMillis)>0)delete W.B,GmP(W);else{var B;(B=W.B)==null||B.start()}}},200); var m;(m=this.B)==null||m.start()}}; g.V.vA=function(S){this.C&&this.C.contentCpn!==S&&GI("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:S,fetchInstructionsCpn:this.C.contentCpn},!0);xT(this)}; g.V.Ow=function(S){var W=this;if(this.C)GI("Unexpected multiple fetch instructions for the current content");else{this.C=S;S=q$X(S);this.N=new g.rj(function(){GmP(W)},S?S:6E5); this.N.start();this.X=new g.rj(function(){W.C&&(W.N&&(W.N.stop(),W.N.start()),Y$K(W,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},TiX(this.C)); S=this.tX.get().getCurrentTimeSec(1,!1);for(var m=g.R(this.h1.get().mE),a=m.next();!a.done;a=m.next())a=a.value,DY(this.n_.get(),"nocache","ct."+Date.now()+";cmt."+S+";d."+a.Gk.toFixed(3)+";tw."+(a.startSecs-S)+";cid."+a.identifier+";")}}; g.V.j9=function(){g.A.prototype.j9.call(this);xT(this)};g.u(iL,g.A);g.V=iL.prototype;g.V.zs=function(S,W,m,a){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(W instanceof NF))throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Vc.set(W.triggerId,new by(S,W,m,a));S=this.C.has(W.triggeringLayoutId)?this.C.get(W.triggeringLayoutId):new Set;S.add(W);this.C.set(W.triggeringLayoutId,S)}; g.V.SU=function(S){this.Vc.delete(S.triggerId);if(!(S instanceof NF))throw new D("Incorrect TriggerType: Tried to unregister trigger of type "+S.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var W=this.N.get(S.triggerId);W&&(W.dispose(),this.N.delete(S.triggerId));if(W=this.C.get(S.triggeringLayoutId))W.delete(S),W.size===0&&this.C.delete(S.triggeringLayoutId)}; g.V.pC=function(){}; g.V.Ff=function(){}; g.V.rp=function(){}; g.V.La=function(){}; g.V.Ka=function(){}; g.V.JV=function(){}; g.V.zO=function(){}; g.V.GO=function(){}; g.V.XM=function(){}; g.V.Yt=function(){}; g.V.jD=function(S,W){var m=this;if(this.C.has(W.layoutId)){S=this.C.get(W.layoutId);S=g.R(S);var a=S.next();for(W={};!a.done;W={rT:void 0},a=S.next())W.rT=a.value,a=new g.rj(function(J){return function(){var B=m.Vc.get(J.rT.triggerId);FT(m.B(),[B])}}(W),W.rT.durationMs),a.start(),this.N.set(W.rT.triggerId,a)}}; g.V.hw=function(){};g.u(dB,g.A);dB.prototype.zs=function(S,W){if(this.Vc.has(W.triggerId))throw new D("Tried to register duplicate trigger for slot.");throw new D("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in VideoTransitionTriggerAdapter.");}; dB.prototype.SU=function(S){this.Vc.delete(S.triggerId)};kT.prototype.lF=function(S){return S.kind==="AD_PLACEMENT_KIND_START"};g.u(td,g.A);td.prototype.logEvent=function(S){this.C(S)}; td.prototype.C=function(S,W,m,a,J,B,E,y,Y,G,K,T){var p=this;T=T===void 0?0:T;i1(this.AX.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+S,"slot:",J,"layout:",B,"ping:",E,"Opportunity:",{opportunityType:W,associatedSlotId:m,x19:a,Bf6:y,adSlotLoggingData:Y,adLayoutLoggingData:G});try{var q=function(){if(!p.AX.get().W.J().T("html5_disable_client_tmp_logs")&&S!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){S||GI("Empty PACF event type",J,B);var F=Cs(p.N.get()),O={eventType:S,eventOrder:++p.eventCount}, X={};J&&(X.slotData=ri(F,J));B&&(X.layoutData=j_O(F,B));E&&(X.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:E.C.serializedAdPingMetadata,pingIndex:E.index});y&&(X.triggerData=oX(y.trigger,y.category));W&&(X.opportunityData=Q_6(F,W,m,a));F={organicPlaybackContext:{contentCpn:Wt(p.JX.get(),1).clientPlaybackNonce}};F.organicPlaybackContext.isLivePlayback=Wt(p.JX.get(),1).Hv;var l;F.organicPlaybackContext.isMdxPlayback=(l=Wt(p.JX.get(),1))==null?void 0: l.isMdxPlayback;var M;if((M=Wt(p.JX.get(),1))==null?0:M.daiEnabled)F.organicPlaybackContext.isDaiContent=!0;var e;if(l=(e=Wt(p.JX.get(),2))==null?void 0:e.clientPlaybackNonce)F.adVideoPlaybackContext={adVideoCpn:l};F&&(X.externalContext=F);O.adClientData=X;Y&&(O.serializedSlotAdServingData=Y.serializedSlotAdServingDataEntry);G&&(O.serializedAdServingData=G.serializedAdServingDataEntry);K&&(O.errorInfo=K);g.qd("adsClientStateChange",{adsClientEvent:O})}}; T&&T>0?g.cX(g.wU(),function(){return q()},T):q()}catch(F){i1(this.AX.get(),"html5_log_pacf_logging_errors")&&g.cX(g.wU(),function(){GI(F instanceof Error?F:String(F),J,B,{pacf_message:"exception during pacf logging"})})}};g.u(Ad,td);Ad.prototype.C=function(S,W,m,a,J,B,E,y,Y,G,K){var T=this.AX.get();g.pt(T.W.J())?(T=this.AX.get(),T=g.Db(T.W.J().experiments,"H5_async_logging_delay_ms")):T=void 0;td.prototype.C.call(this,S,W,m,a,J,B,E,y,Y,G,K,T)};ZU.prototype.clear=function(){this.C.clear()};NC.prototype.state=function(){return this.C==="fulfilled"?{state:"fulfilled",value:this.result}:this.C==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; NC.prototype.j=function(S){ol(S)||bL(S)?wB(rB(S),this.j.bind(this),this.reject.bind(this)):(this.C="fulfilled",this.result=S,DU(this))}; NC.prototype.reject=function(S){this.C="rejected";this.error=S;DU(this)}; var bL=Rf(function(S){return hY_(S)?S instanceof NC:!1});var Jq=window.C49||"en-GB";yU.prototype.GQ=function(S){this.client=S}; yU.prototype.C=function(){this.clear();this.csn=g.uR()}; yU.prototype.clear=function(){this.B.clear();this.N.clear();this.j.clear();this.csn=null};G4.prototype.GQ=function(S){g.my(Y1().GQ).bind(Y1())(S)}; G4.prototype.clear=function(){g.my(Y1().clear).bind(Y1())()};g.V=Kw.prototype;g.V.GQ=function(S){this.client=S}; g.V.Wg=function(S,W){var m=this;W=W===void 0?{}:W;g.my(function(){var a,J,B,E=((a=g.n(S==null?void 0:S.commandMetadata,g.jt))==null?void 0:a.rootVe)||((J=g.n(S==null?void 0:S.commandMetadata,aZw))==null?void 0:(B=J.screenVisualElement)==null?void 0:B.uiType);if(E){a=g.n(S==null?void 0:S.commandMetadata,gpQ);if(a==null?0:a.parentTrackingParams){var y=g.Fg(a.parentTrackingParams);if(a.parentCsn)var Y=a.parentCsn}else W.clickedVisualElement?y=W.clickedVisualElement:S.clickTrackingParams&&(y=g.Fg(S.clickTrackingParams)); a:{a=g.n(S,g.GR);J=g.n(S,V$H);if(a){if(J=Ib6(a,"VIDEO")){a={token:J,videoId:a.videoId};break a}}else if(J&&(a=Ib6(J,"PLAYLIST"))){a={token:a,playlistId:J.playlistId};break a}a=void 0}W=Object.assign({},{cttAuthInfo:a,parentCsn:Y},W);if(g.Qi("expectation_logging")){var G;W.loggingExpectations=((G=g.n(S==null?void 0:S.commandMetadata,aZw))==null?void 0:G.loggingExpectations)||void 0}qE(m,E,y,W)}else g.Ue(new g.uc("Error: Trying to create a new screen without a rootVeType",S))})()}; g.V.clickCommand=function(S,W,m){S=S.clickTrackingParams;m=m===void 0?0:m;S?(m=g.uR(m===void 0?0:m))?(bR(this.client,m,g.Fg(S),W),W=!0):W=!1:W=!1;return W}; g.V.stateChanged=function(S,W,m){this.visualElementStateChanged(g.Fg(S),W,m===void 0?0:m)}; g.V.visualElementStateChanged=function(S,W,m){m=m===void 0?0:m;m===0&&this.N.has(m)?this.S.push([S,W]):AF_(this,S,W,m)};nw.prototype.fetch=function(S,W,m){var a=this,J=CTP(S,W,m);return new Promise(function(B,E){function y(){if(m==null?0:m.CA)try{var G=a.handleResponse(S,J.status,J.response,m);B(G)}catch(K){E(K)}else B(a.handleResponse(S,J.status,J.response,m))} J.onerror=y;J.onload=y;var Y;J.send((Y=W.body)!=null?Y:null)})}; nw.prototype.handleResponse=function(S,W,m,a){m=m.replace(")]}'","");try{var J=JSON.parse(m)}catch(B){g.Ue(new g.uc("JSON parsing failed after XHR fetch",S,W,m));if((a==null?0:a.CA)&&m)throw new g.bU(1,"JSON parsing failed after XHR fetch");J={}}W!==200&&(g.Ue(new g.uc("XHR API fetch failed",S,W,m)),J=Object.assign({},J,{errorMetadata:{status:W}}));return J};sK.getInstance=function(){var S=g.v9("ytglobal.storage_");S||(S=new sK,g.j$("ytglobal.storage_",S));return S}; sK.prototype.estimate=function(){var S,W,m;return g.k(function(a){S=navigator;return((W=S.storage)==null?0:W.estimate)?a.return(S.storage.estimate()):((m=S.webkitTemporaryStorage)==null?0:m.queryUsageAndQuota)?a.return(cF_()):a.return()})}; g.j$("ytglobal.storageClass_",sK);ud.prototype.Xy=function(S){this.handleError(S)}; ud.prototype.logEvent=function(S,W){switch(S){case "IDB_DATA_CORRUPTED":g.Qi("idb_data_corrupted_killswitch")||this.C("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.C("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":g.Qi("idb_is_supported_completed_killswitch")||this.C("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":wRQ(this,W);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=.1&&this.C("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":S= Object.assign({},W,{hasWindowUnloaded:this.N}),this.C("idbTransactionAborted",S)}};var ro={},gY_=g.Df("yt-player-local-media",{hL:(ro.index={f6:2},ro.media={f6:2},ro.captions={f6:5},ro),shared:!1,upgrade:function(S,W){W(2)&&(g.lP(S,"index"),g.lP(S,"media"));W(5)&&g.lP(S,"captions");W(6)&&(MD(S,"metadata"),MD(S,"playerdata"))}, version:5});var e_Q={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},Cl;a:{var cx=g.mW();cx=cx.toLowerCase();if(g.cF(cx,"android")){var xKZ=cx.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(xKZ){var i$8=parseFloat(xKZ[1]);if(i$8<100){Cl=i$8;break a}}var dKg=cx.match("("+Object.keys(e_Q).join("|")+")");Cl=dKg?e_Q[dKg[0]]:0}else Cl=void 0}var tJ=Cl,hJ=tJ>=0;var SfP={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0, defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND", !0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var m2P=N1(function(){var S,W;return(W=(S=window).matchMedia)==null?void 0:W.call(S,"(prefers-reduced-motion: reduce)").matches});var OK;g.gz=new pM;OK=0;var m1=YfG()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ND?!0:!1;var p6={dc:function(S){S[z[19]]()}, l2:function(S,W){S[z[2]](0,W)}, R1:function(S,W){var m=S[0];S[0]=S[W%S[z[8]]];S[W%S[z[8]]]=m}};var NeX={rY2:"adunit",I76:"detailpage",nV2:"editpage",Oyn:"embedded",NSq:"leanback",cD9:"previewpage",Gw9:"profilepage",Tu:"unplugged",yD_:"playlistoverview",VYY:"sponsorshipsoffer",cNN:"shortspage",jTU:"handlesclaiming",sTN:"immersivelivepage",vV6:"creatormusic",nM9:"immersivelivepreviewpage",Ok9:"admintoolyurt",AN2:"shortsaudiopivot",xnD:"consumption",tUn:"background_audio_playback"};var GSP=2592E3;var D_,IPp,Qe;D_={};g.Lw=(D_.STOP_EVENT_PROPAGATION="html5-stop-propagation",D_.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",D_.IV_DRAWER_OPEN="ytp-iv-drawer-open",D_.MAIN_VIDEO="html5-main-video",D_.VIDEO_CONTAINER="html5-video-container",D_.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",D_.HOUSE_BRAND="house-brand",D_);IPp={};Qe=(IPp.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",IPp.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",IPp);var OtP={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var vf6={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},HtO={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"},XfD={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var $gK={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.H_[z[30]][z[26]]=function(S,W){this[z[34]][S]!==W&&(this[z[34]][S]=W,this[z[11]]=z[16])}; g.H_[z[30]][z[13]]=function(S){zj(15,this);return this[z[34]][S]||null}; g.H_[z[30]][z[67]]=function(){this[z[11]]||(this[z[11]]=d7(48,this));return this[z[11]]}; g.H_[z[30]][z[69]]=function(){var S=new g.H_(this[z[27]],this[z[39]]);S[z[5]]=this[z[5]];S[z[29]]=this[z[29]];S[z[18]]=this[z[18]];S[z[34]]=g.em(this[z[34]]);S[z[11]]=this[z[11]];return S}; var B7j=[klj];g.x1.prototype.getLanguageInfo=function(){return this.n3}; g.x1.prototype.getXtags=function(){if(!this.xtags){var S=this.id.split(";");S.length>1&&(this.xtags=S[1])}return this.xtags}; g.x1.prototype.toString=function(){return this.n3.name}; g.x1.prototype.isAutoDubbed=function(){return this.n3.getIsAutoDubbed()}; g.x1.prototype.getLanguageInfo=g.x1.prototype.getLanguageInfo;g.x1.prototype.isAutoDubbed=g.x1.prototype.isAutoDubbed;id.prototype.equals=function(S){return this.N===S.N&&this.C===S.C&&this.B===S.B&&this.reason===S.reason&&(!IU||this.o2===S.o2)}; id.prototype.isLocked=function(){return this.B&&!!this.N&&this.N===this.C}; id.prototype.compose=function(S){if(S.B&&Ph(S))return mK;if(S.B||Ph(this))return S;if(this.B||Ph(S))return this;var W=this.N&&S.N?Math.max(this.N,S.N):this.N||S.N,m=this.C&&S.C?Math.min(this.C,S.C):this.C||S.C;W=Math.min(W,m);var a=0;IU&&(a=this.o2!==0&&S.o2!==0?Math.min(this.o2,S.o2):this.o2===0?S.o2:this.o2);return IU&&W===this.N&&m===this.C&&a===this.o2||!IU&&W===this.N&&m===this.C?this:IU?new id(W,m,!1,m===this.C&&a===this.o2?this.reason:S.reason,a):new id(W,m,!1,m===this.C?this.reason:S.reason)}; id.prototype.j=function(S){return!S.video||IU&&this.o2!==0&&this.o2=0}; g.V.NZ=function(){var S=this.segments[this.segments.length-1];return S?S.endTime:NaN}; g.V.R6=function(){return this.segments[0].startTime}; g.V.JA=function(){return this.segments.length}; g.V.QH=function(){return 0}; g.V.oU=function(S){return(S=this.tA(S))?S.VD:-1}; g.V.b_=function(S){return(S=this.uH(S))?S.sourceURL:""}; g.V.getStartTime=function(S){return(S=this.uH(S))?S.startTime:0}; g.V.il=function(S){return this.getStartTime(S)+this.getDuration(S)}; g.V.B_=P_(3);g.V.isLoaded=function(){return this.segments.length>0}; g.V.uH=function(S){if(this.C&&this.C.VD===S)return this.C;S=g.K$(this.segments,new wz(S,0,0,0,""),function(W,m){return W.VD-m.VD}); return this.C=S>=0?this.segments[S]:null}; g.V.tA=function(S){if(this.C&&this.C.startTime<=S&&S=0?this.segments[S]:this.segments[Math.max(0,-S-2)]}; g.V.append=function(S){if(S.length)if(S=g.aS(S),this.segments.length){var W=this.segments.length?g.AN(this.segments).endTime:0,m=S[0].VD-this.lP();m>1&&rGX(this.segments);for(m=m>0?0:-m+1;mS.VD&&this.index.bU()<=S.VD+1}; g.V.update=function(S,W,m){this.index.append(S);C1_(this.index,m);S=this.index;S.N=W;S.B="update"}; g.V.Gm=function(){return this.Pl()?!0:r2.prototype.Gm.call(this)}; g.V.zS=function(S,W){var m=this.index.b_(S),a=this.index.getStartTime(S),J=this.index.getDuration(S),B;W?J=B=0:B=this.info.o2>0?this.info.o2*J:1E3;return new y9([new Wd(3,this,void 0,"liveCreateRequestInfoForSegment",S,a,J,0,B,!W)],m)}; g.V.aS=function(){return this.Pl()?0:this.initRange.length}; g.V.PP=function(){return!1};Fv.prototype.update=function(S){var W=void 0;this.N&&(W=this.N);var m=new Fv,a=Array.from(S.getElementsByTagName("S"));if(a.length){var J=+qA(S,"timescale")||1,B=(+a[0].getAttribute("t")||0)/J,E=+qA(S,"startNumber")||0;m.j=B;var y=W?W.startSecs+W.Gk:0,Y=Date.parse(Zol(qA(S,"yt:segmentIngestTime")))/1E3;m.X=S.parentElement.tagName==="SegmentTemplate";m.X&&(m.Z=qA(S,"media"));S=W?E-W.VD:1;m.V=S>0?0:-S+1;S=g.R(a);for(a=S.next();!a.done;a=S.next()){a=a.value;for(var G=+a.getAttribute("d")/J,K=(+a.getAttribute("yt:sid")|| 0)/J,T=+a.getAttribute("r")||0,p=0;p<=T;p++)if(W&&E<=W.VD)E++;else{var q=new tTP(E,y,G,Y+K,B);m.C.push(q);var F=a;var O=J,X=q.startSecs;q=F.getAttribute("yt:cuepointTimeOffset");var l=F.getAttribute("yt:cuepointDuration");if(q&&l){q=Number(q);X=-q/O+X;O=Number(l)/O;l=F.getAttribute("yt:cuepointContext")||null;var M=F.getAttribute("yt:cuepointIdentifier")||"";F=F.getAttribute("yt:cuepointEvent")||"";F=new YE(X,O,l,M,fPv[F]||"unknown",q)}else F=null;F&&m.B.push(F);E++;y+=G;B+=G;Y+=G+K}}m.C.length&& (m.N=g.AN(m.C))}this.V=m.V;this.N=m.N||this.N;g.BF(this.C,m.C);g.BF(this.B,m.B);this.X=m.X;this.Z=m.Z;this.j===-1&&(this.j=m.getStreamTimeOffset())}; Fv.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.u(nN,g.S2);g.V=nN.prototype;g.V.KH=function(){return this.Tm}; g.V.IX=function(S,W){S=s6(this,S);return S>=0&&(W||!this.segments[S].pending)}; g.V.bU=function(){return this.d4?this.segments.length?this.tA(this.R6()).VD:-1:g.S2.prototype.bU.call(this)}; g.V.R6=function(){if(this.HG)return 0;if(!this.d4)return g.S2.prototype.R6.call(this);if(!this.segments.length)return 0;var S=Math.max(g.AN(this.segments).endTime-this.uR,0);return this.VU>0&&this.tA(S).VD0)return this.oy/1E3;if(!this.segments.length)return g.S2.prototype.NZ.call(this);var S=this.lP();if(!this.d4||S<=this.segments[this.segments.length-1].VD)S=this.segments[this.segments.length-1];else{var W=this.segments[this.segments.length-1];S=new wz(S,Math.max(0,W.startTime-(W.VD-S)*this.Tm),this.Tm,0,"sq/"+S,void 0,void 0,!0)}return this.HG?Math.min(this.uR,S.endTime):S.endTime}; g.V.JA=function(){return this.d4?this.segments.length?this.lP()-this.bU()+1:0:g.S2.prototype.JA.call(this)}; g.V.lP=function(){var S=Math.min(this.jS,Math.max(g.S2.prototype.lP.call(this),this.DW)),W=this.uR*1E3;W=this.oy>0&&this.oy0&&this.DW>0&&!W&&(W=this.tA(this.uR))&&(S=Math.min(W.VD-1,S));return S}; g.V.td=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.V.SE=function(S){var W=s6(this,S.VD);if(W>=0)this.segments[W]=S;else if(this.segments.splice(-(W+1),0,S),this.Zx&&S.VD%(300/this.Tm)===0){var m=this.segments[0].VD,a=Math.floor(this.Zx/this.Tm);S=S.VD-a;W=-(W+1)-a;W>0&&S>m&&(this.segments=this.segments.slice(W))}}; g.V.c6=function(){return this.DW}; g.V.IE=function(S){return V9?!this.N&&S>=0&&this.lP()<=S:g.S2.prototype.IE.call(this,S)}; g.V.tA=function(S){if(!this.d4)return g.S2.prototype.tA.call(this,S);if(!this.segments.length)return null;var W=this.segments[this.segments.length-1];if(S=W.endTime)W=W.VD+Math.floor((S-W.endTime)/this.Tm+1);else{W=Tt(this.segments,function(a){return S=a.endTime?1:0}); if(W>=0)return this.segments[W];var m=-(W+1);W=this.segments[m-1];m=this.segments[m];W=Math.floor((S-W.endTime)/((m.startTime-W.endTime)/(m.VD-W.VD-1))+1)+W.VD}return this.uH(W)}; g.V.uH=function(S){if(!this.d4)return g.S2.prototype.uH.call(this,S);if(!this.segments.length)return null;var W=s6(this,S);if(W>=0)return this.segments[W];var m=-(W+1);W=this.Tm;if(m===0)var a=Math.max(0,this.segments[0].startTime-(this.segments[0].VD-S)*W);else m===this.segments.length?(a=this.segments[this.segments.length-1],a=a.endTime+(S-a.VD-1)*W):(a=this.segments[m-1],W=this.segments[m],W=(W.startTime-a.endTime)/(W.VD-a.VD-1),a=a.endTime+(S-a.VD-1)*W);return new wz(S,a,W,0,"sq/"+S,void 0,void 0, !0)}; var V9=!1;g.u(uA,Tb);g.V=uA.prototype;g.V.qV=function(){return!0}; g.V.Gm=function(){return!0}; g.V.JR=function(S){return this.DL()&&S.N&&!S.B||!S.yD.index.IE(S.VD)}; g.V.T8=function(){}; g.V.sX=function(S,W){return typeof S!=="number"||isFinite(S)?Tb.prototype.sX.call(this,S,W===void 0?!1:W):new y9([new Wd(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.k8,void 0,this.k8*this.info.o2)],"")}; g.V.zS=function(S,W){var m=m===void 0?!1:m;if(this.index.IX(S))return Tb.prototype.zS.call(this,S,W);var a=this.index.getStartTime(S),J=Math.round(this.k8*this.info.o2),B=this.k8;W&&(B=J=0);return new y9([new Wd(m?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",S,a,B,void 0,J,!W)],S>=0?"sq/"+S:"")};g.u(gn,r2);g.V=gn.prototype;g.V.bH=function(){return!1}; g.V.DL=function(){return!1}; g.V.qV=function(){return!1}; g.V.T8=function(){return new y9([new Wd(1,this,void 0,"otfInit")],this.X)}; g.V.Lw=function(){return null}; g.V.r5=function(S){this.JR(S);return wo7(this,Bd(S),!1)}; g.V.sX=function(S,W){W=W===void 0?!1:W;S=this.index.oU(S);W&&(S=Math.min(this.index.lP(),S+1));return wo7(this,S,!0)}; g.V.F5=function(S){S.info.type===1&&(this.C||(this.C=FQ(S.N)),S.C&&S.C.uri==="http://youtube.com/streaming/otf/durations/112015"&&S1Q(this,S.C))}; g.V.JR=function(S){return S.N===0?!0:this.index.lP()>S.VD&&this.index.bU()<=S.VD+1}; g.V.aS=function(){return 0}; g.V.PP=function(){return!1};var ay_=new Map,EKK=new Map,J3G=new function(){var S=this;this.C=new Map;this.f3={wL9:function(){return S.C}}};g.V=g.LN.prototype;g.V.IX=function(S){return S<=this.lP()}; g.V.QH=function(S){return this.offsets[S]}; g.V.getStartTime=function(S){return this.startTicks[S]/this.C}; g.V.il=function(S){return this.getStartTime(S)+this.getDuration(S)}; g.V.B_=P_(2);g.V.A1=function(){return NaN}; g.V.getDuration=function(S){S=this.cq(S);return S>=0?S/this.C:-1}; g.V.cq=function(S){return S+1=0}; g.V.NZ=function(){return this.N?this.startTicks[this.count]/this.C:NaN}; g.V.R6=function(){return 0}; g.V.JA=function(){return this.count}; g.V.b_=function(){return""}; g.V.oU=function(S){S=g.K$(this.startTicks.subarray(0,this.count),S*this.C);return S>=0?S:Math.max(0,-S-2)}; g.V.isLoaded=function(){return this.lP()>=0}; g.V.On=function(S,W){if(S>=this.lP())return 0;var m=0;for(W=this.getStartTime(S)+W;Sthis.getStartTime(S);S++)m=Math.max(m,ptX(this,S)/this.getDuration(S));return m}; g.V.resize=function(S){S+=2;var W=this.offsets;this.offsets=new Float64Array(S+1);var m=this.startTicks;this.startTicks=new Float64Array(S+1);for(S=0;S0&&S&&(m=m.range.end+1,S=Math.min(S,this.info.contentLength-m),S>0&&a.push(new Wd(4,this,w2(m,S),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)));return new y9(a)}; g.V.F5=function(S){if(S.info.type===1){if(this.C)return;this.C=FQ(S.N)}else if(S.info.type===2){if(this.X||this.index.lP()>=0)return;if(g.Pt(this.info)){var W=this.index,m=g.Xv(S);S=S.info.range.start;var a=g.qt(m,0,1936286840);m=YqP(a);W.C=m.timescale;var J=m.eB;W.offsets[0]=m.Jg+S+a.size;W.startTicks[0]=J;W.N=!0;S=m.M4.length;for(a=0;a0&&S===B[0].kz)for(S=0;S=W+m)break}a.length||(S=new g.uc("b189619593",""+S,""+W,""+m),g.lR(S));return new y9(a)}; g.V.k9=function(S){for(var W=this.aH(S.info),m=S.info.range.start+S.info.C,a=[],J=0;J=this.index.QH(m+1);)m++;return this.g0(m,W,S.N).R2}; g.V.JR=function(S){S.Kk();return this.Gm()?!0:S.range.end+1this.info.contentLength&&(W=new cW(W.start,this.info.contentLength-1)),new y9([new Wd(4,S.yD,W,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,S.clipId)]);S.type===4&&(S=this.aH(S),S=S[S.length-1]);var m=0,a=S.range.start+S.C+S.N;S.type===3&&(S.Kk(),m=S.VD,a===S.range.end+1&&(m+=1));return this.g0(m,a,W)}; g.V.r5=function(){return null}; g.V.sX=function(S,W){W=W===void 0?!1:W;S=this.index.oU(S);W&&(S=Math.min(this.index.lP(),S+1));return this.g0(S,this.index.QH(S),0)}; g.V.bH=function(){return!0}; g.V.DL=function(){return!0}; g.V.qV=function(){return!1}; g.V.aS=function(){return this.indexRange.length+this.initRange.length}; g.V.PP=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var S1={},L6Q=(S1.COLOR_PRIMARIES_BT709="bt709",S1.COLOR_PRIMARIES_BT2020="bt2020",S1.COLOR_PRIMARIES_UNKNOWN=null,S1.COLOR_PRIMARIES_UNSPECIFIED=null,S1),W0={},VhO=(W0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",W0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",W0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",W0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",W0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,W0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,W0);g.V=g.xs.prototype;g.V.getName=function(){return this.name}; g.V.getId=function(){return this.id}; g.V.getIsDefault=function(){return this.isDefault}; g.V.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.V.toString=function(){return this.name}; g.xs.prototype.getName=g.xs.prototype.getName;g.xs.prototype.getId=g.xs.prototype.getId;g.xs.prototype.getIsDefault=g.xs.prototype.getIsDefault;g.xs.prototype.getIsAutoDubbed=g.xs.prototype.getIsAutoDubbed;var gK6=/action_display_post/;var Oxj,Im,Pd;g.u(fN,g.au);g.V=fN.prototype;g.V.isLoading=function(){return this.state===1}; g.V.oo=function(){return this.state===3}; g.V.L9Y=function(S){var W=S.getElementsByTagName("Representation");if(S.getElementsByTagName("SegmentList").length>0||S.getElementsByTagName("SegmentTemplate").length>0){this.Hv=this.N=!0;this.V||(this.V=new bol);cQl(this.V,S);this.publish("refresh");for(S=0;S=0?K=DD(p):T=T+"?range="+p}Y.call(y,new wz(G.VD,G.startSecs,G.Gk,G.C,T,K,G.N))}a=J}m.update(a,this.isLive,this.g2)}D8X(this.V);return!0}this.duration=AQG(qA(S,"mediaPresentationDuration"));a:{for(S= 0;S0))return this.eD()-S}}S=this.C;for(var W in S){var m=S[W].index;if(m.isLoaded()&&!NZ(S[W].info.mimeType))return m.R6()}return 0}; g.V.getStreamTimeOffset=function(){return this.S}; g.V.A1=function(S){for(var W in this.C){var m=this.C[W].index;if(m.isLoaded()){var a=m.oU(S),J=m.A1(a);if(J)return J+S-m.getStartTime(a)}}return NaN}; var wn=null,kt$,Sn=!((kt$=navigator.mediaCapabilities)==null||!kt$.decodingInfo),PvQ={commentary:1,alternate:2,dub:3,main:4};var yV=new Set,WT=new Map;JJ.prototype.clone=function(S){return new JJ(this.flavor,S,this.N,this.experiments)}; JJ.prototype.Yb=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; JJ.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 $Kp={},p9=($Kp.playready=["com.youtube.playready","com.microsoft.playready"],$Kp.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],$Kp),mR={},xnP=(mR.widevine="DRM_SYSTEM_WIDEVINE",mR.fairplay="DRM_SYSTEM_FAIRPLAY",mR.playready="DRM_SYSTEM_PLAYREADY",mR),aN={},h_w=(aN.widevine=1,aN.fairplay=2,aN.playready=3,aN);var n9;g.u(Fx,g.A); Fx.prototype.initialize=function(S,W){for(var m=this,a=g.R(Object.keys(S)),J=a.next();!J.done;J=a.next()){J=g.R(S[J.value]);for(var B=J.next();!B.done;B=J.next())if(B=B.value,B.PG)for(var E=g.R(Object.keys(B.PG)),y=E.next();!y.done;y=E.next()){var Y=y.value;y=Y;Y=p9[Y];!Y&&this.T("html5_enable_vp9_fairplay")&&y==="fairplay"&&(Y=["com.youtube.fairplay.sbdl"]);if(Y){Y=g.R(Y);for(var G=Y.next();!G.done;G=Y.next())G=G.value,this.B[G]=this.B[G]||new JJ(y,G,B.PG[y],this.w2.experiments),this.C[y]=this.C[y]|| {},this.C[y][B.mimeType]=!0}}}ru()&&(this.B["com.youtube.fairplay"]=new JJ("fairplay","com.youtube.fairplay","",this.w2.experiments),this.T("html5_enable_vp9_fairplay")||(this.C.fairplay=this.C.fairplay||{},this.C.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.C.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.N=wtj(W,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay")&&!0,this.T("html5_enable_vp9_fairplay")).filter(function(K){return!!m.B[K]})}; Fx.prototype.T=function(S){return this.w2.experiments.mU(S)};var tmv={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var oH_={RED:"red",erQ:"white"};uI.prototype.QD=function(S){if(S.Im!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return ySl(this,S)}; uI.prototype.mU=function(S){return this.flags.get(""+S)==="true"};gJ.prototype.ZH=function(){return this.B}; gJ.prototype.Os=function(){return this.N}; gJ.prototype.mU=function(S){S=this.QD(S);JSON.stringify(S);return S==="true"}; gJ.prototype.QD=function(S){return this.flags[S]};var KpG=Promise.resolve(),Fpl=window.queueMicrotask?window.queueMicrotask.bind(window):Tej;jn.prototype.canPlayType=function(S,W){S=S.canPlayType?S.canPlayType(W):!1;Zf?S=S||Akv[W]:tJ===2.2?S=S||Z$N[W]:bO()&&(S=S||NhZ[W]);return!!S}; jn.prototype.isTypeSupported=function(S){return this.S?window.cast.receiver.platform.canDisplayType(S):YK(S)}; var Z$N={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},NhZ={"application/x-mpegURL":"maybe"},Akv={"application/x-mpegURL":"maybe"};g.u(vT,g.au);vT.prototype.add=function(S,W){if(!this.items[S]&&(W.Ss||W.UY||W.Cs)){var m=this.items,a=W;Object.isFrozen&&!Object.isFrozen(W)&&(a=Object.create(W),Object.freeze(a));m[S]=a;this.publish("vast_info_card_add",S)}}; vT.prototype.remove=function(S){var W=this.get(S);delete this.items[S];return W}; vT.prototype.get=function(S){return this.items[S]||null}; vT.prototype.isEmpty=function(){return g.UC(this.items)};HT.prototype.encrypt=function(S){this.C.exports.AES128CTRCipher_encrypt(this.cipher,S.byteOffset,S.byteLength);return S}; HT.prototype.TN=function(){return this.cipher===0}; HT.prototype.dispose=function(){this.C.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};MT.prototype.Am=function(S,W){W=W===void 0?1:W;this.Yo+=W;this.N+=S;S/=W;for(var m=0;m0)a+="."+lI[J].toFixed(0)+"_"+m.C[J].toFixed(0);else break;m=a}m&&(S[W]=m)}this.C=new ukl;return S}; g.V.toString=function(){return""};g.V=vHj.prototype;g.V.isActive=function(){return!1}; g.V.D1=function(){}; g.V.Fu=function(){}; g.V.Wd=function(){}; g.V.Fq=function(S,W){W()}; g.V.MW=function(){return{}}; g.V.toString=function(){return""};var b$Z=new vHj,olQ=!!+wr("html5_enable_profiler"),rkH=!!+wr("html5_onesie_enable_profiler"),JH=olQ||rkH?new OPX:b$Z,LE7=olQ?JH:b$Z,L9=rkH?JH:b$Z;ePP.prototype.emscripten_notify_memory_growth=function(){};g.V=UZ.prototype;g.V.malloc=function(S){return this.exports.malloc(S)}; g.V.free=function(S){this.exports.free(S)}; g.V.realloc=function(S,W){return this.exports.realloc(S,W)}; g.V.Nu=function(S){if(S.buffer!==this.exports.memory.buffer){var W=this.malloc(S.byteLength);W=new Uint8Array(this.exports.memory.buffer,W,S.byteLength);W.set(S);return W}}; g.V.mB=function(S){if(S.buffer===this.exports.memory.buffer){var W=S.slice();this.free(S.byteOffset);return W}}; var UoP=new function(){this.C="WebAssembly"in window},RV="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); L9.D1(UZ,{Nu:function(S){return{profile:"copyj2w",Yo:S===void 0?0:Math.ceil(S.byteLength/16)}}, mB:function(S){return{profile:"copyw2j",Yo:S===void 0?0:Math.ceil(S.byteLength/16)}}});en.prototype.encrypt=function(S,W){try{return this.C.mB(IYG(this,S,W))}catch(m){g.Ue(Error("ocwce: wasm encrypt failed: "+m))}}; en.prototype.TN=function(){return this.B}; en.prototype.dispose=function(){this.TN()||(g.nL(this.N),this.C.free(this.j.byteOffset),this.B=!0)};g.u(PVP,g.A);g.u(k8P,g.A);g.u(hPP,g.A);var bPD="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),wbD={i1X:"caoe",Nj_:"capsv",nGU:"cbrand",VUU:"cbr",Z1D:"cbrver",Sqq:"cchip",pmn:"ccappver",ks2:"ccrv",Y32:"cfrmver",O6Y:"c",gMY:"cver",EMq:"ctheme",Z6D:"cplayer",gT2:"cmodel",bf:"cnetwork",xz2:"cos",OS_VERSION:"cosver",Bq2:"cplatform",eO2:"crqyear"};g.u(wJ,g.A);g.V=wJ.prototype;g.V.T=function(S){return this.experiments.mU(S)}; g.V.ZH=function(){return this.experiments.ZH()}; g.V.Os=function(){return this.experiments.Os()}; g.V.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.V.getVideoUrl=function(S,W,m,a,J,B,E){W={list:W};m&&(J?W.time_continue=m:W.t=m);m=E?"music.youtube.com":g.WY(this);J=m==="www.youtube.com";!B&&a&&J?B="https://youtu.be/"+S:g.NT(this)?(B="https://"+m+"/fire",W.v=S):(B&&J?(B=this.protocol+"://"+m+"/shorts/"+S,a&&(W.feature="share")):(B=this.protocol+"://"+m+"/watch",W.v=S),Zf&&(S=urP())&&(W.ebc=S));return g.ex(B,W)}; g.V.getVideoEmbedCode=function(S,W,m,a){W="https://"+g.WY(this)+"/embed/"+W;a&&(W=g.ex(W,{list:a}));a=m.width;m=m.height;W=Ax(W);S=Ax(S!=null?S:"YouTube video player");return'')}; g.V.supportsGaplessAudio=function(){return g.y0&&!Zf&&A$()>=74||g.TW&&g.wb(68)?!0:!1}; g.V.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.g2||g.F1?!1:!0}; g.V.getPlayerType=function(){return this.C.cplayer}; g.V.rd=function(){return this.H1}; var ad6=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],DoX=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],WOQ=[19];var B0={},ygP=(B0["140"]={numChannels:2},B0["141"]={numChannels:2},B0["251"]={audioSampleRate:48E3,numChannels:2},B0["774"]={audioSampleRate:48E3,numChannels:2},B0["380"]={numChannels:6},B0["328"]={numChannels:6},B0["773"]={},B0),Ep={},EW_=(Ep["1"]='video/mp4; codecs="av01.0.08M.08"',Ep["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Ep["1e"]='video/mp4; codecs="av01.0.08M.08"',Ep["9"]='video/webm; codecs="vp9"',Ep["("]='video/webm; codecs="vp9"',Ep["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Ep.h='video/mp4; codecs="avc1.64001e"',Ep.H='video/mp4; codecs="avc1.64001e"',Ep.o='audio/webm; codecs="opus"',Ep.a='audio/mp4; codecs="mp4a.40.2"',Ep.ah='audio/mp4; codecs="mp4a.40.2"',Ep.mac3='audio/mp4; codecs="ac-3"; channels=6',Ep.meac3='audio/mp4; codecs="ec-3"; channels=6',Ep.i='audio/mp4; codecs="iamf.001.001.Opus"',Ep),zk={},z9l=(zk["337"]={width:3840,height:2160,bitrate:3E7,fps:30},zk["336"]={width:2560,height:1440,bitrate:15E6,fps:30},zk["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, zk["702"]={width:7680,height:4320,bitrate:4E7,fps:60},zk["701"]={width:3840,height:2160,bitrate:2E7,fps:60},zk["700"]={width:2560,height:1440,bitrate:1E7,fps:60},zk["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},zk["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},zk["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},zk["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, zk["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},zk["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},zk["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},zk["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},zk["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},zk["315"]={width:3840,height:2160,bitrate:2E7,fps:60},zk["308"]={width:2560, height:1440,bitrate:1E7,fps:60},zk["303"]={width:1920,height:1080,bitrate:5E6,fps:60},zk["302"]={width:1280,height:720,bitrate:25E5,fps:60},zk["299"]={width:1920,height:1080,bitrate:75E5,fps:60},zk["298"]={width:1280,height:720,bitrate:35E5,fps:60},zk["571"]={width:7680,height:4320,bitrate:3E7,fps:60},zk["401"]={width:3840,height:2160,bitrate:15E6,fps:60},zk["400"]={width:2560,height:1440,bitrate:75E5,fps:60},zk["399"]={width:1920,height:1080,bitrate:2E6,fps:60},zk["398"]={width:1280,height:720,bitrate:1E6, fps:60},zk["397"]={width:854,height:480,bitrate:4E5,fps:30},zk["396"]={width:640,height:360,bitrate:25E4,fps:30},zk["787"]={width:1080,height:608,bitrate:2E5,fps:30},zk["788"]={width:1080,height:608,bitrate:4E5,fps:30},zk["572"]={width:7680,height:4320,bitrate:3E7,fps:60},zk["555"]={width:3840,height:2160,bitrate:15E6,fps:60},zk["554"]={width:2560,height:1440,bitrate:75E5,fps:60},zk["553"]={width:1920,height:1080,bitrate:2E6,fps:60},zk["552"]={width:1280,height:720,bitrate:1E6,fps:60},zk["551"]={width:854, height:480,bitrate:4E5,fps:30},zk["550"]={width:640,height:360,bitrate:25E4,fps:30},zk["313"]={width:3840,height:2160,bitrate:8E6,fps:30},zk["271"]={width:2560,height:1440,bitrate:4E6,fps:30},zk["248"]={width:1920,height:1080,bitrate:2E6,fps:30},zk["247"]={width:1280,height:720,bitrate:15E5,fps:30},zk["244"]={width:854,height:480,bitrate:52E4,fps:30},zk["243"]={width:640,height:360,bitrate:28E4,fps:30},zk["137"]={width:1920,height:1080,bitrate:4E6,fps:30},zk["136"]={width:1280,height:720,bitrate:3E6, fps:30},zk["135"]={width:854,height:480,bitrate:1E6,fps:30},zk["385"]={width:1920,height:1080,bitrate:6503313,fps:60},zk["376"]={width:1280,height:720,bitrate:5706960,fps:60},zk["384"]={width:1280,height:720,bitrate:3660979,fps:60},zk["225"]={width:1280,height:720,bitrate:5805E3,fps:30},zk["224"]={width:1280,height:720,bitrate:453E4,fps:30},zk["145"]={width:1280,height:720,bitrate:2682052,fps:30},zk);g.V=sV.prototype;g.V.getInfo=function(){return this.C}; g.V.JG=function(){return null}; g.V.GX=function(){var S=this.JG();return S?(S=g.zc(S.aL),Number(S.expire)):NaN}; g.V.wv=function(){}; g.V.getHeight=function(){return this.C.video.height};TZP.prototype.build=function(){FO6(this);var S=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],W={};a:if(this.C)var m=this.C;else{m="";for(var a=g.R(this.B),J=a.next();!J.done;J=a.next())if(J=J.value,J.n3){if(J.n3.getIsDefault()){m=J.n3.getId();break a}m||(m=J.n3.getId())}}a=g.R(this.B);for(J=a.next();!J.done;J=a.next())if(J=J.value,this.V||!J.n3||J.n3.getId()===m)W[J.itag]||(W[J.itag]=[]),W[J.itag].push(J);m=g.R(this.N);for(a=m.next();!a.done;a=m.next())if(a=a.value,J=W[a.C]){J=g.R(J);for(var B=J.next();!B.done;B= J.next()){var E=S,y=E.push;B=B.value;var Y="#EXT-X-MEDIA:TYPE=AUDIO,",G="YES",K="audio";if(B.n3){K=B.n3;var T=K.getId().split(".")[0];T&&(Y+='LANGUAGE="'+T+'",');(this.C?this.C===K.getId():K.getIsDefault())||(G="NO");K=K.getName()}T="";a!==null&&(T=a.itag.toString());T=gq(this,B.url,T);Y=Y+('NAME="'+K+'",DEFAULT='+(G+',AUTOSELECT=YES,GROUP-ID="'))+(pi_(B,a)+'",URI="'+(T+'"'));y.call(E,Y)}}m=g.R(this.X);for(a=m.next();!a.done;a=m.next())a=a.value,J=CH9,a=(E=a.n3)?'#EXT-X-MEDIA:URI="'+gq(this,a.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+J+'",LANGUAGE="'+E.getId()+'",NAME="'+E.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,a&&S.push(a);m=this.X.length>0?CH9:void 0;a=g.R(this.N);for(J=a.next();!J.done;J=a.next())J=J.value,y=W[J.C],E=void 0,((E=y)==null?void 0:E.length)>0&&(E=J,y=y[0],y="#EXT-X-STREAM-INF:BANDWIDTH="+(E.bitrate+y.bitrate)+',CODECS="'+(E.codecs+","+y.codecs+'",RESOLUTION=')+(E.width+"x"+E.height+',AUDIO="')+(pi_(y,E)+'",')+(m?'SUBTITLES="'+m+'",':"")+"CLOSED-CAPTIONS=NONE",E.fps>1&&(y+= ",FRAME-RATE="+E.fps),E.eh&&(y+=",VIDEO-RANGE="+E.eh),S.push(y),S.push(gq(this,J.url,"")));return S.join("\n")}; var CH9="text";g.u(OV,sV);OV.prototype.GX=function(){return this.expiration}; OV.prototype.JG=function(){if(!this.aL||this.aL.TN()){var S=this.N.build();S="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(S);this.aL=new z8(S)}return this.aL};g.u(jX,sV);jX.prototype.JG=function(){return new z8(this.N.XD())}; jX.prototype.wv=function(){this.N=VP(60,this.N)};g.u(Q2,sV);Q2.prototype.JG=function(){return new z8(this.N)};var yp={},vW6=(yp.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",yp.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",yp.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",yp.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",yp);g.V=g.Xm.prototype;g.V.getId=function(){return this.id}; g.V.getName=function(){return this.name}; g.V.isServable=function(){return this.C}; g.V.XD=function(){return this.url}; g.V.getXtags=function(){return this.xtags}; g.V.toString=function(){return this.languageCode+": "+g.vY(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.V.equals=function(S){return S?this.toString()===S.toString():!1}; g.V.LP=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var R96={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},e96={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},xFc=/^(\d*)_((\d*)_?(\d*))$/;var dFP={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},IdX={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Yw={},fdj=(Yw.ALWAYS=1,Yw.BY_REQUEST=3,Yw.UNKNOWN=void 0,Yw),Gk={},q47=(Gk.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Gk.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Gk.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Gk.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Gk);var jrX; jrX=function(S){for(var W=Object.keys(S),m={},a=0;aa-W?-1:S}; g.V.Kw=function(){return this.N.lP()}; g.V.fN=function(){return this.N.bU()}; g.V.Rj=function(S){this.N=S};g.u(WB,wq);WB.prototype.N=function(S,W){return wq.prototype.N.call(this,"$N|"+S,W)}; WB.prototype.X=function(S,W,m){return new Se(S,W,m,this.isLive)};g.u(g.a1,g.au);g.V=g.a1.prototype; g.V.setData=function(S){var W=this;S=S||{};var m=S.errordetail;m!=null&&(this.errorDetail=m);var a=S.errorcode;a!=null?this.errorCode=a:S.status==="fail"&&(this.errorCode="auth");var J=S.reason;J!=null&&(this.errorReason=J);var B=S.subreason;B!=null&&(this.eI=B);if(!this.clientPlaybackNonce){this.clientPlaybackNonce=S.cpn||(this.w2.rd()?"r"+g.pz(15):g.pz(16));var E;(E=this.zf)==null||E.clear()}this.PT=E2(this.w2.PT,S.livemonitor);PBD(this,S);var y=S.raw_player_response;if(y)this.TJ=y;else{var Y=S.player_response; Y&&(y=JSON.parse(Y))}y&&(this.playerResponse=y);if(this.playerResponse){var G=this.playerResponse.annotations;G&&kr_(this,G);var K=this.playerResponse.attestation;K&&$FX(this,K);var T=this.playerResponse.cotn;T&&(this.cotn=T);var p=this.playerResponse.heartbeatParams;p&&NZG(this,p);var q=this.playerResponse.messages;q&&Cy_(this,q);var F=this.playerResponse.overlay;F&&WL7(this,F);var O=this.playerResponse.playabilityStatus;if(O){mgl(this,O);var X=O.errorScreen;X&&T5P(this,X)}var l=this.playerResponse.playbackTracking; l&&Jfj(this,l,S);var M=this.playerResponse.playerCueRanges;M&&M.length>0&&(this.cueRanges=M);var e=this.playerResponse.playerCueRangeSet;e&&g.yI(this,e);var d=slX(this.playerResponse.adPlacements);l&&l.promotedPlaybackTracking&&d&&g.Ue(new g.uc("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(d||ZG_(this.playerResponse.adSlots))this.d0=!0;var t=this.playerResponse.playerAds;t&&B5D(this,t,S);var h=this.playerResponse.playerConfig;h&&EY6(this,h);var mD=this.playerResponse.streamingData; mD&&zdO(this,mD,h||null);var SO=this.playerResponse.trackingParams;SO&&(this.N2=SO);var aK=this.playerResponse.videoDetails;if(aK){Y4K(this,aK,S);pG6(this,aK,h||null,S);var EP=aK.isPrivate;EP!==void 0&&(this.isPrivate=E2(this.isPrivate,EP))}O&&Zbl(this,O,aK||null);var qP=this.playerResponse.interstitialPods;qP&&rgO(this,qP);this.hm&&this.eventId&&(this.hm=Y0(this.hm,{ei:this.eventId}));var JG=this.playerResponse.captions;JG&&JG.playerCaptionsTracklistRenderer&&tNP(this,JG.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Ql=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&cgl(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var jO;this.compositeLiveIngestionOffsetToken=(jO=this.playerResponse.playbackTracking)==null?void 0:jO.compositeLiveIngestionOffsetToken; var D6;this.compositeLiveStatusToken=(D6=this.playerResponse.playbackTracking)==null?void 0:D6.compositeLiveStatusToken;this.T("html5_fill_default_mosaic_audio_track_id")&&wO(this)&&(this.w2.Y6=iq6(this));var zg,kX,C6=(zg=this.playerResponse.playerConfig)==null?void 0:(kX=zg.granularVariableSpeedConfig)==null?void 0:kX.minimumPlaybackRate,IK,rN,RZ=(IK=this.playerResponse.playerConfig)==null?void 0:(rN=IK.granularVariableSpeedConfig)==null?void 0:rN.maximumPlaybackRate;C6&&RZ&&(this.n2=C6/100,this.PM= RZ/100);this.T("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(WQ){var RC;((RC=g.n(WQ,AgK))==null?void 0:RC.signal)==="INIT_ATT_SERVICE"&&(W.bu=!0)})}BB(this,S); foG(this,S);S.queue_info&&(this.queueInfo=S.queue_info);var U=S.hlsdvr;U!=null&&(this.allowLiveDvr=Number(U)===1?Qg()?!0:SY&&x5<5?!1:!0:!1);this.adQueryId=S.ad_query_id||null;this.wN||(this.wN=S.encoded_ad_safety_reason||null);this.Y5=E2(this.Y5,S.infringe||S.muted);this.x$=S.authkey;this.Q9=S.authuser;this.mutedAutoplay=E2(this.mutedAutoplay,S&&S.playmuted);this.mutedAutoplayDurationMode=yw(this.mutedAutoplayDurationMode,S&&S.muted_autoplay_duration_mode);this.GA=E2(this.GA,S&&S.mutedautoplay);var DZ= S.length_seconds;DZ&&(this.lengthSeconds=typeof DZ==="string"?bz(DZ):DZ);this.isAd()||this.pJ||!g.q5(g.oV(this.w2))?this.endSeconds=yw(this.endSeconds,this.BP||S.end||S.endSeconds):Zvl(this,g.oV(this.w2),this.lengthSeconds);this.N2=YR(this.N2,S.itct);this.Ph=E2(this.Ph,S.is_live_destination);this.isLivePlayback=E2(this.isLivePlayback,S.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Hv();S.isUpcoming&&(this.isUpcoming=E2(this.isUpcoming,S.isUpcoming));this.HG=E2(this.HG, S.post_live_playback);this.ri&&(this.HG=!1);this.isMdxPlayback=E2(this.isMdxPlayback,S.mdx);var hN=S.mdx_control_mode;hN&&(this.mdxControlMode=typeof hN==="number"?hN:bz(hN));this.isInlinePlaybackNoAd=E2(this.isInlinePlaybackNoAd,S.is_inline_playback_no_ad);this.zN=yw(this.zN,S.reload_count);this.reloadReason=YR(this.reloadReason,S.reload_reason);this.LD=E2(this.LD,S.show_content_thumbnail);this.cycToken=S.cyc||null;var YX=M_(S);Object.keys(YX).length>0&&(this.Dr=YX);this.vn=YR(this.vn,S.vvt);this.mdxEnvironment= YR(this.mdxEnvironment,S.mdx_environment);S.source_container_playlist_id&&(this.sourceContainerPlaylistId=S.source_container_playlist_id);S.serialized_mdx_metadata&&(this.serializedMdxMetadata=S.serialized_mdx_metadata);this.Zg=S.osig;this.eventId||(this.eventId=S.eventid);this.osid||(this.osid=S.osid);this.playlistId=YR(this.playlistId,S.list);S.index&&(this.playlistIndex=this.playlistIndex===void 0?yw(0,S.index):yw(this.playlistIndex,S.index));this.ya=S.pyv_view_beacon_url;this.f2=S.pyv_quartile25_beacon_url; this.dh=S.pyv_quartile50_beacon_url;this.md=S.pyv_quartile75_beacon_url;this.Ve=S.pyv_quartile100_beacon_url;var UQ=S.session_data;!this.Ye&&UQ&&(this.Ye=J$(UQ,"&").feature);this.isFling=yw(this.isFling?1:0,S.is_fling)===1;this.vnd=yw(this.vnd,S.vnd);this.forceAdsUrl=YR(this.forceAdsUrl,S.force_ads_url);this.j1=YR(this.j1,S.ctrl);this.Fy=YR(this.Fy,S.ytr);this.Tq=S.ytrcc;this.ke=S.ytrexp;this.PS=S.ytrext;this.M2=YR(this.M2,S.adformat);this.CN=YR(this.CN,S.attrib);this.slotPosition=yw(this.slotPosition, S.slot_pos);this.breakType=S.break_type;this.ZB=E2(this.ZB,S.ssrt);this.videoId=K5(S)||this.videoId;this.V=YR(this.V,S.vss_credentials_token);this.Tf=YR(this.Tf,S.vss_credentials_token_type);this.Ax=E2(this.Ax,S.audio_only);this.Xn=E2(this.Xn,S.aac_high);this.hN=E2(this.hN,S.prefer_low_quality_audio);this.rY=E2(this.rY,S.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?S.qoe_cat&&(this.r9=this.r9.concat(S.qoe_cat.split(","))):this.Q6=YR(this.Q6,S.qoe_cat);this.ZN=E2(this.ZN,S.download_media); this.Z=kBl(this,S.prefer_gapless);n_P(this.playerResponse)&&this.S1.push("ad");var v=S.adaptive_fmts;v&&(this.adaptiveFormats=v,this.iY("adpfmts",{},!0));var W_=S.allow_embed;W_&&(this.allowEmbed=Number(W_)===1);var uH=S.backgroundable;uH&&(this.backgroundable=Number(uH)===1);var y3=S.autonav;y3&&(this.isAutonav=Number(y3)===1);var bH=S.autoplay;bH&&(this.kt=this.wQ=Number(bH)===1);var Yl=S.iv_load_policy;Yl&&(this.annotationsLoadPolicy=z1(this.annotationsLoadPolicy,Yl,rJ));var w7=S.cc_lang_pref; w7&&(this.captionsLanguagePreference=YR(w7,this.captionsLanguagePreference));var m8=S.cc_load_policy;m8&&(this.CE=z1(this.CE,m8,rJ));var vF;this.deviceCaptionsOn=(vF=S.device_captions_on)!=null?vF:void 0;var H;this.eX=(H=S.device_captions_lang_pref)!=null?H:"";var Q;this.zA=(Q=S.viewer_selected_caption_langs)!=null?Q:[];var L=S.cached_load;L&&(this.d_=E2(this.d_,L));if(S.dash==="0"||S.dash===0||S.dash===!1)this.Up=!0;var I=S.dashmpd;I&&(this.eY=g.ex(I,{cpn:this.clientPlaybackNonce}));var r=S.delay; r&&(this.tD=bz(r));var yP=this.BP||S.end;if(this.hX?yP!=null:yP!=void 0)this.clipEnd=yw(this.clipEnd,yP);var c=S.fmt_list;c&&(this.hU=c);S.heartbeat_preroll&&this.S1.push("heartbeat");ckH&&(this.N0=-Math.floor(Math.random()*10),this.vY=-Math.floor(Math.random()*40));var N=S.is_listed;N&&(this.isListed=E2(this.isListed,N));var f=S.is_private;f&&(this.isPrivate=E2(this.isPrivate,f));var RK=S.is_dni;RK&&(this.uP=E2(this.uP,RK));var eO=S.dni_color;eO&&(this.Tw=YR(this.Tw,eO));var sP=S.pipable;sP&&(this.pipable= E2(this.pipable,sP));this.uB=(this.UA=this.pipable&&this.w2.Op)&&!this.w2.showMiniplayerButton;var UP=S.paid_content_overlay_duration_ms;UP&&(this.paidContentOverlayDurationMs=bz(UP));var JN=S.paid_content_overlay_text;JN&&(this.paidContentOverlayText=JN);var lc=S.url_encoded_fmt_stream_map;lc&&(this.I4=lc);var $l=S.hls_formats;$l&&(this.hlsFormats=$l);var oS=S.hlsvp;oS&&(this.hlsvp=oS);var Cn=S.live_start_walltime;Cn&&(this.fv=typeof Cn==="number"?Cn:bz(Cn));var L6=S.live_manifest_duration;L6&&(this.Ea= typeof L6==="number"?L6:bz(L6));var h8=S.player_params;h8&&(this.playerParams=h8);var xX=S.partnerid;xX&&(this.partnerId=yw(this.partnerId,xX));var QH=S.probe_url;QH&&(this.probeUrl=kf(g.ex(QH,{cpn:this.clientPlaybackNonce})));var $X=S.pyv_billable_url;$X&&a8X($X)&&(this.n5=$X);var kM=S.pyv_conv_url;kM&&a8X(kM)&&(this.w5=kM);hd6(this,S);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Ql||this.vl||S.start||S.startSeconds)&&this.iY("lss",{css:this.startSeconds, pcss:this.Ql,iss:this.vl,ps:S.start||void 0,pss:S.startSeconds||void 0}):(this.startSeconds=yw(this.startSeconds,this.Ql||this.vl||S.start||S.startSeconds),this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.iY("lsss",{css:this.startSeconds,pcss:this.Ql,iss:this.vl,ps:S.start||void 0,pss:S.startSeconds||void 0}),this.g2=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var X9=S.live_utc_start;X9!=null?this.liveUtcStartSeconds=Number(X9):WNO(this.startSeconds)&& (this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var wN=S.utc_start_millis;wN&&(this.liveUtcStartSeconds=Number(wN)*.001)}var Jk=S.stream_time_start_millis;Jk&&(this.PJ=Number(Jk)*.001);var kp=this.vl||S.start;(this.hX?kp==null||Number(S.resume)===1:kp==void 0||S.resume=="1")||this.isLivePlayback||(this.clipStart=yw(this.clipStart,kp));var iw=S.url_encoded_third_party_media;iw&&(this.bJ=E7(iw));var na=S.ypc_offer_button_formatted_text;if(na){var Rn= JSON.parse(na);this.Di=Rn!=null?Rn:null;this.NG=na}var Fz=S.ypc_offer_button_text;Fz&&(this.qj=Fz);var VR=S.ypc_offer_description;VR&&(this.HM=VR);var zp=S.ypc_offer_headline;zp&&(this.I_=zp);var yu=S.ypc_full_video_message;yu&&(this.XZ=yu);var EM=S.ypc_offer_id;EM&&(this.MU=EM);var uD=S.ypc_buy_url;uD&&(this.Nj=uD);var YV=S.ypc_item_thumbnail;YV&&(this.va=YV);var Gp=S.ypc_item_title;Gp&&(this.WM=Gp);var KI=S.ypc_item_url;KI&&(this.Ba=KI);var of=S.ypc_vid;of&&(this.s6=of);S.ypc_overlay_timeout&&(this.T$= Number(S.ypc_overlay_timeout));var $M=S.ypc_trailer_player_vars;$M&&(this.oH=Gj($M));var hT=S.ypc_original_itct;hT&&(this.F$=hT);this.Z7=YR(this.Z7,S.ucid);this.FV=S.storyboard_spec||null;this.g4=S.live_storyboard_spec||null;this.Ak=S.iv_endscreen_url||null;this.O5=E2(this.O5,S.iv3_module);this.Az=E2(this.Az,S.ypc_module);this.Hh=E2(this.Hh,S.ypc_clickwrap_module);this.Az&&this.S1.push("ypc");this.Hh&&this.S1.push("ypcRentalActivation");this.Cl={video_id:S.video_id,eventid:S.eventid,cbrand:S.cbrand, cbr:S.cbr,cbrver:S.cbrver,c:S.c,cver:S.cver,ctheme:S.ctheme,cplayer:S.cplayer,cmodel:S.cmodel,cnetwork:S.cnetwork,cos:S.cos,cosver:S.cosver,cplatform:S.cplatform,user_age:S.user_age,user_display_image:S.user_display_image,user_display_name:S.user_display_name,user_gender:S.user_gender,csi_page_type:S.csi_page_type,csi_service_name:S.csi_service_name,enablecsi:S.enablecsi,enabled_engage_types:S.enabled_engage_types};kVl(this,S);var Tp=S.cotn;Tp&&(this.cotn=Tp);BB6(this)?Ox(this)&&(this.isLivePlayback&& this.eY&&(this.VT=!0),this.mp&&(this.kB=!0)):ETP(this)?this.VT=!0:Jdj(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&vB(this):this.eY&&(this.w2.N2==="yt"&&this.Hv()&&this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")?this.iY("deprecateMflFallback",{}):this.VT=!0);var MI=S.adpings;MI&&(this.HA=MI?Gj(MI):null);var Uy=S.feature;Uy&&(this.d9=Uy);var qR=S.referrer;qR&&(this.referrer=qR);this.clientScreenNonce=YR(this.clientScreenNonce,S.csn);this.jf= yw(this.jf,S.root_ve_type);this.Xv=yw(this.Xv,S.kids_age_up_mode);this.hX||S.kids_app_info==void 0||(this.kidsAppInfo=S.kids_app_info);this.hX&&S.kids_app_info!=null&&(this.kidsAppInfo=S.kids_app_info);this.Jz=E2(this.Jz,S.upg_content_filter_mode);this.unpluggedFilterModeType=yw(this.unpluggedFilterModeType,S.unplugged_filter_mode_type);var pI=S.unplugged_location_info;pI&&(this.IL=pI);var Fp=S.unplugged_partner_opt_out;Fp&&(this.SY=YR("",Fp));this.YN=E2(this.YN,S.disable_watch_next);this.N1=YR(this.N1, S.internal_ip_override);this.K8=!!S.is_yto_interstitial;this.interstitials.length&&this.S1.push("playableSequences");var Vu=S.Ny;Vu&&(this.Ny=Vu);this.bY=YR(this.bY,S.csi_timer);S.watchUrl&&(this.watchUrl=S.watchUrl);var X$=S.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&&X$&&UFl(this,X$);if(X$==null?0:X$.ustreamerConfig)this.QQ=xL(X$.ustreamerConfig);var rp,LW,LV=X$==null?void 0:(rp=X$.loggingContext)==null?void 0:(LW=rp.qoeLoggingContext)==null?void 0:LW.serializedContextData; LV&&(this.PX=LV);g.f9(this.w2)&&this.w2.r4&&(this.embedsRct=YR(this.embedsRct,S.rct),this.embedsRctn=YR(this.embedsRctn,S.rctn));S.embed_config&&(this.xT=S.embed_config);this.Mi=this.Mi||!!S.pause_at_start;S.default_active_source_video_id&&(this.defaultActiveSourceVideoId=S.default_active_source_video_id);this.dA=this.dA||!!S.live_preload}; g.V.J=function(){return this.w2}; g.V.T=function(S){return this.w2.T(S)}; g.V.lJ=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.V.hasSupportedAudio51Tracks=function(){var S;return!((S=this.Y6)==null||!S.M2)}; g.V.getUserAudio51Preference=function(){var S=1;zJ(this.w2)&&this.T("html5_ytv_surround_toggle_default_off")?S=0:JK(this.w2)&&this.isLivePlayback&&this.PD()&&(S=0);var W;return(W=g.dU("yt-player-audio51"))!=null?W:S}; g.V.c$=function(){this.TN()||(this.C.N||this.C.unsubscribe("refresh",this.c$,this),this.M8(-1))}; g.V.M8=function(S){if(!this.isLivePlayback||!this.X||this.X.flavor!=="fairplay"){var W=ix7(this.C,this.Wh);if(W.length>0){for(var m=g.R(W),a=m.next();!a.done;a=m.next())a=a.value,a.startSecs=Math.max(a.startSecs,this.R6()),this.T("html5_cuepoint_identifier_logging")&&a.event==="start"&&this.iY("cuepoint",{pubCue:a.identifier,segNum:S});this.publish("cuepointupdated",W,S);this.Wh+=W.length;if(vB(this)&&this.w2.rd())for(W=g.R(W),m=W.next();!m.done;m=W.next())m=m.value,this.iY("cuepoint",{segNum:S,event:m.event, startSecs:m.startSecs,id:m.identifier.slice(-16)}),m.event==="start"&&(m=m.startSecs,this.Ul.start=this.Wv,this.Ul.end=m+3)}}}; g.V.UH=function(){this.TN()||(this.loading=!1,this.publish("dataloaded"))}; g.V.PD=function(){return this.Oa!==void 0?this.Oa:this.Oa=!!this.PG||!!this.C&&NE(this.C)}; g.V.OY=function(S){var W=this;if(this.TN())return iO();this.uY=this.Pn=this.B=null;Ek(this,"html5_high_res_logging_always")&&(this.w2.H1=!0);return Y8X(this,S).then(void 0,function(){return KN6(W,S)}).then(void 0,function(){return TBc(W)}).then(void 0,function(){return pkl(W)})}; g.V.v5=function(S){this.B=S;GBj(this,this.B.getAvailableAudioTracks());if(this.B){S=g.R(this.B.videoInfos);for(var W=S.next();!W.done;W=S.next()){W=W.value;var m=W.containerType;m!==0&&(this.dQ[m]=W.id)}}S=this.getAvailableAudioTracks();S=S.concat(this.H1);for(W=0;W0)return this.B.getAvailableAudioTracks();if(this.Kn)return this.Kn;if(this.xk)return this.xk}return[]}; g.V.getAudioTrack=function(){var S=this;if(this.j&&!fx(this.j)){var W=g.Nx(this.getAvailableAudioTracks(),function(J){return J.id===S.j.id}),m; if(!W&&((m=this.j.n3)==null?0:m.id)){var a=this.j.n3.id;W=g.Nx(this.getAvailableAudioTracks(),function(J){return J.n3.id===a})}return W||this.H1}if(this.Kn){if(!this.Mp)for(W=g.R(this.Kn),m=W.next();!m.done;m=W.next())if(m=m.value,m.n3.getIsDefault()){this.Mp=m; break}return this.Mp||this.H1}return this.H1}; g.V.getPlayerResponse=function(){return this.playerResponse}; g.V.getWatchNextResponse=function(){return this.q2}; g.V.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.V.getHeartbeatResponse=function(){return this.pm}; g.V.Lk=function(){return this.watchUrl?this.watchUrl:this.w2.getVideoUrl(this.videoId)}; g.V.yv=function(){return!!this.C&&(XtO(this.C)||vKj(this.C)||Hx7(this.C))}; g.V.getEmbeddedPlayerResponse=function(){return this.E$}; g.V.rE=function(){return(this.eventLabel||this.w2.q2)==="shortspage"}; g.V.isAd=function(){return this.hh||!!this.adFormat}; g.V.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.V.b$=function(){var S,W,m;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((S=this.playerResponse)==null?0:(W=S.playerConfig)==null?0:(m=W.daiConfig)==null?0:m.ssaEnabledPlayback)}; g.V.Lf=function(){return this.aK}; g.V.OQ=function(){return this.Az||this.mQ}; g.V.PF=function(){return Ek(this,"html5_samsung_vp9_live")}; g.V.iY=function(S,W,m){this.publish("ctmp",S,W,m)}; g.V.h8=function(S,W,m){this.publish("ctmpstr",S,W,m)}; g.V.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.V.getGetAdBreakContext=function(S,W){S=S===void 0?NaN:S;W=W===void 0?NaN:W;var m={isSabr:eX(this)},a,J=(a=this.getHeartbeatResponse())==null?void 0:a.adBreakHeartbeatParams;J&&(m.adBreakHeartbeatParams=J);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.C&&!isNaN(S)&&!isNaN(W)){W=S-W;for(var B in this.C.C)if(a=this.C.C[B],a.info.jr()||a.info.vD())if(a=a.index,a.isLoaded()){B=a.oU(W);a=a.A1(B)+W-a.getStartTime(B);this.iY("gabc",{t:S.toFixed(3),mt:W.toFixed(3),sg:B,igt:a.toFixed(3)}); m.livePlaybackPosition={utcTimeMillis:""+(a*1E3).toFixed(0)};break}}return m}; g.V.isEmbedsShortsMode=function(S,W){if(!g.f9(this.w2)||(this.w2.Pn||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||W)return!1;if(this.T("embeds_enable_shorts")){var m,a;return!!((m=this.embeddedPlayerConfig)==null?0:(a=m.embeddedPlayerFlags)==null?0:a.isShortsExperienceEligible)}var J,B;return!!(((J=this.embeddedPlayerConfig)==null?0:(B=J.embeddedPlayerFlags)==null?0:B.isShortsExperienceEligible)&&S.width<=S.height)}; g.V.Ce=function(S,W){W?this.aE||(this.aE=S):this.Al||(this.Al=S)}; g.V.j9=function(){g.au.prototype.j9.call(this);this.HA=null;delete this.uN;delete this.accountLinkingConfig;delete this.C;this.B=this.pm=this.playerResponse=this.q2=null;this.I4=this.adaptiveFormats="";delete this.botguardData;this.s9=this.suggestions=this.V4=null;this.sabrContextUpdates.clear()}; var ckH=!0;var rd7={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},CLP={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},bqO={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},t4Q={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"},ZqD={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},AdO={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"},oTP={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.u(TE,g.A);g.V=TE.prototype;g.V.handleExternalCall=function(S,W,m){var a=this.state.V[S],J=this.state.Z[S],B=a;if(J)if(m&&Pa(m,FXp))B=J;else if(!a)throw Error('API call from an untrusted origin: "'+m+'"');this.logApiCall(S,m);if(B){a:{m=g.R(W);for(a=m.next();!a.done;a=m.next())if(String(a.value).includes("javascript:")){m=!0;break a}m=!1}m&&g.Ue(Error('Dangerous call to "'+S+'" with ['+W+"]."));return B.apply(this,W)}throw Error('Unknown API method: "'+S+'".');}; g.V.logApiCall=function(S,W,m){var a=this.app.J();a.DI&&!this.state.bY.has(S)&&(this.state.bY.add(S),g.qd("webPlayerApiCalled",{callerUrl:a.loaderUrl,methodName:S,origin:W||void 0,playerStyle:a.playerStyle||void 0,embeddedPlayerMode:a.Pn,errorCode:m}))}; g.V.publish=function(S){var W=g.VH.apply(1,arguments);this.state.B.publish.apply(this.state.B,[S].concat(g.x(W)));if(S==="videodatachange"||S==="resize"||S==="cardstatechange")this.state.N.publish.apply(this.state.N,[S].concat(g.x(W))),this.state.j.publish.apply(this.state.j,[S].concat(g.x(W)))}; g.V.f_=function(S){var W=g.VH.apply(1,arguments);this.state.B.publish.apply(this.state.B,[S].concat(g.x(W)));this.state.N.publish.apply(this.state.N,[S].concat(g.x(W)))}; g.V.NE=function(S){var W=g.VH.apply(1,arguments);this.state.B.publish.apply(this.state.B,[S].concat(g.x(W)));this.state.N.publish.apply(this.state.N,[S].concat(g.x(W)));this.state.j.publish.apply(this.state.j,[S].concat(g.x(W)))}; g.V.ZD=function(S){var W=g.VH.apply(1,arguments);this.state.B.publish.apply(this.state.B,[S].concat(g.x(W)));this.state.N.publish.apply(this.state.N,[S].concat(g.x(W)));this.state.j.publish.apply(this.state.j,[S].concat(g.x(W)));this.state.X.publish.apply(this.state.X,[S].concat(g.x(W)))}; g.V.T=function(S){return this.app.J().T(S)}; g.V.j9=function(){if(this.state.element){var S=this.state.element,W;for(W in this.state.C)this.state.C.hasOwnProperty(W)&&(S[W]=null);this.state.element=null}g.A.prototype.j9.call(this)};g.u(nB,g.Hn);nB.prototype.publish=function(S){var W=g.VH.apply(1,arguments);if(this.X.has(S))return this.X.get(S).push(W),!0;var m=!1;try{for(W=[W],this.X.set(S,W);W.length;)m=g.Hn.prototype.publish.call.apply(g.Hn.prototype.publish,[this,S].concat(g.x(W.shift())))}finally{this.X.delete(S)}return m};g.u(sk,g.A);sk.prototype.j9=function(){this.X.dispose();this.j.dispose();this.N.dispose();this.B.dispose();this.bY=this.C=this.Z=this.V=this.S=void 0};var aFj=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.u(g_,TE);g.V=g_.prototype;g.V.getApiInterface=function(){return Array.from(this.state.S)}; g.V.mu=function(S,W){this.state.X.subscribe(S,W)}; g.V.PK6=function(S,W){this.state.X.unsubscribe(S,W)}; g.V.getPlayerState=function(S){return nxP(this.app,S)}; g.V.N2U=function(){return nxP(this.app)}; g.V.ha9=function(S,W,m){QY(this)&&(k9(this.app,!0,1),tC(this.app,S,W,m,1))}; g.V.getCurrentTime=function(S,W,m){var a=this.getPlayerState(S);if(this.app.getAppState()===2&&a===5){var J;return((J=this.app.getVideoData())==null?void 0:J.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&a===0?x9(this.app,S):S?this.app.getCurrentTime(S,W,m):this.app.getCurrentTime(S)}; g.V.kX=function(){return this.app.getCurrentTime(1)}; g.V.Mf=function(){var S=this.app.A1(1);return isNaN(S)?this.getCurrentTime(1):S}; g.V.ev=function(){return this.app.getDuration(1)}; g.V.ID=function(S,W){S=g.Su(Math.floor(S),0,100);isFinite(S)&&RA(this.app,{volume:S,muted:this.isMuted()},W)}; g.V.osX=function(S){this.ID(S,!1)}; g.V.XC=function(S){RA(this.app,{muted:!0,volume:this.getVolume()},S)}; g.V.Ib_=function(){this.XC(!1)}; g.V.Fr=function(S){RA(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},S)}; g.V.dpD=function(){jd(this.app)||this.Fr(!1)}; g.V.getPlayerMode=function(){var S={};this.app.getVideoData().uP&&(S.pfp={enableIma:this.app.CP().allowImaMonetization,autoplay:Cp(this.app.CP()),mutedAutoplay:this.app.CP().mutedAutoplay});return S}; g.V.Gx=function(){var S=this.app.getPresentingPlayerType();if(S===2&&!this.app.BD()){var W=l_(this.app.GV());if(!(FfK(W)||g.f9(this.app.J())&&g.C(this.app.S9().getPlayerState(),1024))||Vc6(W))return}(W=this.app.Df().qp)?W.playVideo():this.app.playVideo(S)}; g.V.lf6=function(){k9(this.app,!0,1);this.Gx()}; g.V.pauseVideo=function(S){var W=this.app.getPresentingPlayerType();if(W!==2||this.app.BD()||FfK(l_(this.app.GV()))){var m=this.app.Df().qp;m?m.pauseVideo():this.app.pauseVideo(W,S)}}; g.V.PO_=function(){var S=this.app,W=!1;S.Y.EV&&(S.E9.publish("pageTransition"),W=!0);S.stopVideo(W)}; g.V.clearVideo=function(){}; g.V.getAvailablePlaybackRates=function(){var S=this.app.J();if(S.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(S.j?S.ancestorOrigins[0]:window.location.origin)||S.SO)return op$;S=this.app.getVideoData();var W=S.n2,m=S.PM;return rNw.filter(function(a){return a>=W&&a<=m})}return[1]}; g.V.getPlaybackQuality=function(S){return(S=X5(this.app,{playerType:S}))?S.getPlaybackQuality():"unknown"}; g.V.RaU=function(){}; g.V.getAvailableQualityLevels=function(S){return(S=X5(this.app,{playerType:S}))?(S=g.MU(S.My(),function(W){return W.quality}),S.length&&(S[0]==="auto"&&S.shift(),S=S.concat(["auto"])),S):[]}; g.V.dw=function(){return this.getAvailableQualityLevels(1)}; g.V.IQQ=function(){return this.kI()}; g.V.aQU=function(){return 1}; g.V.getVideoLoadedFraction=function(S){return this.app.getVideoLoadedFraction(S)}; g.V.kI=function(){return this.getVideoLoadedFraction()}; g.V.AXY=function(){return 0}; g.V.getSize=function(){var S=this.app.k6().getPlayerSize();return{width:S.width,height:S.height}}; g.V.setSize=function(){this.app.k6().resize()}; g.V.loadVideoById=function(S,W,m,a){if(!S)return!1;S=ut(S,W,m);return this.app.loadVideoByPlayerVars(S,a)}; g.V.zNN=function(S,W,m){S=this.loadVideoById(S,W,m,1);k9(this.app,S,1)}; g.V.cueVideoById=function(S,W,m,a){S=ut(S,W,m);this.app.cueVideoByPlayerVars(S,a)}; g.V.r7=function(S,W,m){this.cueVideoById(S,W,m,1)}; g.V.loadVideoByUrl=function(S,W,m,a){S=mEP(S,W,m);return this.app.loadVideoByPlayerVars(S,a)}; g.V.Dw9=function(S,W,m){S=this.loadVideoByUrl(S,W,m,1);k9(this.app,S,1)}; g.V.cueVideoByUrl=function(S,W,m,a){S=mEP(S,W,m);this.app.cueVideoByPlayerVars(S,a)}; g.V.FX=function(S,W,m){this.cueVideoByUrl(S,W,m,1)}; g.V.PY9=function(){var S=this.app.J();if(S.vn)return"";var W=this.app.CP(),m=void 0;W.isLivePlayback||(m=Math.floor(this.app.getCurrentTime(1)));return S.getVideoUrl(W.videoId,this.getPlaylistId()||void 0,m)}; g.V.QO=function(){return this.app.getDebugText()}; g.V.getVideoEmbedCode=function(){var S=this.app.J();if(S.vn)return"";var W=this.app.CP();return S.getVideoEmbedCode(W.isPrivate?"":W.title,this.app.CP().videoId,this.app.k6().getPlayerSize(),this.getPlaylistId()||void 0)}; g.V.fI=function(S,W,m){return j8X(this.app,S,W,m)}; g.V.removeCueRange=function(S){return this.app.Lt(S)}; g.V.loadPlaylist=function(S,W,m,a){this.app.loadPlaylist(S,W,m,a)}; g.V.rvn=function(S,W,m,a){this.loadPlaylist(S,W,m,a);k9(this.app,!0,1)}; g.V.cuePlaylist=function(S,W,m,a){this.app.cuePlaylist(S,W,m,a)}; g.V.nextVideo=function(S,W){this.app.nextVideo(S,W)}; g.V.abU=function(){this.nextVideo();k9(this.app,!0,1)}; g.V.previousVideo=function(S){this.app.previousVideo(S)}; g.V.ot_=function(){this.previousVideo();k9(this.app,!0,1)}; g.V.playVideoAt=function(S){this.app.playVideoAt(S)}; g.V.U62=function(S){this.playVideoAt(S);k9(this.app,!0,1)}; g.V.setShuffle=function(S){var W=this.app.getPlaylist();W&&W.setShuffle(S)}; g.V.setLoop=function(S){var W=this.app.getPlaylist();W&&(W.loop=S)}; g.V.B2D=function(){var S=this.app.getPlaylist();if(!S)return null;for(var W=[],m=0;m=400)if(S=this.CP(),this.W.J().T("client_respect_autoplay_switch_button_renderer"))S=!!S.autoplaySwitchButtonRenderer;else{var W,m,a,J;S=!!((W=S.getWatchNextResponse())==null?0:(m=W.contents)==null?0:(a=m.twoColumnWatchNextResults)==null?0:(J=a.autoplay)==null?0:J.autoplay)!==!1}S?this.C||(this.C=!0,this.Fz(this.C),W=this.CP(),this.QK(W.autonavState),this.W.logVisibility(this.element,this.C)): (this.C=!1,this.Fz(this.C))}; g.V.QK=function(S){tPO(this)?this.isChecked=S!==1:((S=S!==1)||(S=g.hO(),S=g.Qi("web_autonav_allow_off_by_default")&&!S.QD(141)&&g.D4("AUTONAV_OFF_BY_DEFAULT")?!1:!S.QD(140)),this.isChecked=S);h$D(this)}; g.V.onClick=function(){this.isChecked=!this.isChecked;this.W.hZ(this.isChecked?2:1);h$D(this);if(tPO(this)){var S=this.CP().autoplaySwitchButtonRenderer;this.isChecked&&(S==null?0:S.onEnabledCommand)?this.W.f_("innertubeCommand",S.onEnabledCommand):!this.isChecked&&(S==null?0:S.onDisabledCommand)&&this.W.f_("innertubeCommand",S.onDisabledCommand)}this.W.logClick(this.element)}; g.V.getValue=function(){return this.isChecked}; g.V.CP=function(){return this.W.getVideoData(1)};g.u(Aq6,Bs);g.u(RQ,Tw);RQ.prototype.L_=function(S){S?this.C||(this.C3.xb(this),this.C=!0):this.C&&(this.C3.GY(this),this.C=!1);this.C&&qn(this,a57())}; RQ.prototype.j=function(){g.zD(this.element,"ytp-menuitem-highlight-transition-enabled")}; RQ.prototype.B=function(S){var W=a57();S!==W&&(W=g.hO(),AO(190,S),AO(192,!0),W.save(),this.W.f_("cinematicSettingsToggleChange",S))}; RQ.prototype.j9=function(){this.C&&this.C3.GY(this);Tw.prototype.j9.call(this)};g.u(ei,Bs);ei.prototype.updateCinematicSettings=function(S){this.C=S;var W;(W=this.menuItem)==null||W.L_(S);this.api.publish("onCinematicSettingsVisibilityChange",S)};g.u(Nz7,Bs);g.u(xI,Bs);xI.prototype.setCreatorEndscreenVisibility=function(S){var W;(W=RW(this.api.GV()))==null||W.Fz(S)}; xI.prototype.C=function(S){function W(a){a==="creatorendscreen"&&(a=RW(m.api.GV()))&&a.pr9(m.hideButton)} var m=this;this.hideButton=S;this.events.K(this.api,"modulecreated",W);W("creatorendscreen")};g.u(o1P,Bs);g.u(iG,Tw);iG.prototype.X=function(S){this.j(S?1:0)}; iG.prototype.FG=function(){if(this.enableNewAudioSettingsMenu||this.B){var S=this.W.getPresentingPlayerType();S===2||S===3?this.C&&(this.C=!1,this.C3.GY(this)):(S=this.getDrcState(),S!==1?(S===0?(qn(this,this.N()===1),this.setEnabled(!0)):(qn(this,!1),this.setEnabled(!1)),this.C||(this.C3.xb(this),this.C=!0)):this.C&&(this.C3.GY(this),this.C=!1))}else{S=this.hasDrcAudioTrack();var W=this.N()===1&&S;qn(this,W);this.setEnabled(S)}}; iG.prototype.j9=function(){this.C3.GY(this);Tw.prototype.j9.call(this)}; iG.prototype.V=function(){this.W.logClick(this.element)};g.u(dk,Bs);g.V=dk.prototype;g.V.getDrcUserPreference=function(){return this.C}; g.V.setDrcUserPreference=function(S){this.api.iY("drc_set",{pref:S});g.i7("yt-player-drc-pref",S,31536E3);S!==this.C&&(this.C=S,this.updateEnvironmentData(),this.Yx()&&this.api.dS(),this.api.Br())}; g.V.updateEnvironmentData=function(){this.api.J().ov=this.C===1}; g.V.Yx=function(){var S,W,m=(S=this.api.getVideoData())==null?void 0:(W=S.B)==null?void 0:W.C;if(!m)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var a,J,B=(a=this.api.TU())==null?void 0:(J=a.n3)==null?void 0:J.id;return ap(m,function(E){var y;return E.audio.C&&((y=E.n3)==null?void 0:y.id)===B})}return ap(m,function(E){var y; return((y=E.audio)==null?void 0:y.C)===!0})}; g.V.getDrcState=function(){return this.api.xM(3)};g.u(IQ,Bs);IQ.prototype.onVideoDataChange=function(){var S=this,W=this.api.getVideoData();this.api.Tk("embargo",1);var m=W==null?void 0:W.Jb.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(m==null?0:m.length)?cqc(this,m.filter(function(a){return CdP(S,a)})):(W==null?0:W.cueRanges)&&cqc(this,W.cueRanges.filter(function(a){return CdP(S,a)}))}; IQ.prototype.N=function(S){return S.embargo!==void 0}; IQ.prototype.j9=function(){Bs.prototype.j9.call(this);this.C={}};g.u(Ps,Bs); Ps.prototype.addEmbedsConversionTrackingParams=function(S){var W=this.api.J(),m=W.widgetReferrer,a=W.xK,J=this.C,B="",E=W.getWebPlayerContextConfig();E&&(B=E.embedsIframeOriginParam||"");m.length>0&&(S.embeds_widget_referrer=m);a.length>0&&(S.embeds_referring_euri=a);W.j&&B.length>0&&(S.embeds_referring_origin=B);E&&E.embedsFeature&&(S.feature=E.embedsFeature);J.length>0&&(W.T("embeds_web_enable_lite_experiment_control_arm_logging")?J.unshift(28572):g.q5(g.oV(W))&&J.unshift(159628),W=J.join(","),W= g.ok()?W:g.kr(W,4),S.source_ve_path=W);this.C.length=0};g.u(DEc,Bs);g.u(whO,Bs);g.u(fi,g.A);fi.prototype.j9=function(){g.A.prototype.j9.call(this);this.C=null;this.N&&this.N.disconnect()};g.u(WQ6,Bs);g.u(kI,Bs);kI.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.u($I,g.b);$I.prototype.show=function(){g.b.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; $I.prototype.stopTimer=function(){this.C&&(this.C.dispose(),this.C=null)}; $I.prototype.onVideoDataChange=function(S){var W,m,a=(W=this.api.getVideoData())==null?void 0:(m=W.getPlayerResponse())==null?void 0:m.playabilityStatus;a&&(W=mtc(a),g.C(this.api.getPlayerStateObject(),128)||S==="dataloaderror"||!W?(this.N=0,this.stopTimer(),this.hide()):(S=(W.remainingTimeSecs||0)*1E3,S>0&&(this.show(),this.updateValue("label",EK(W.label)),Juc(this,S))))}; $I.prototype.j9=function(){this.stopTimer();g.b.prototype.j9.call(this)};g.u(B2P,Bs);g.u(h5,g.b);h5.prototype.onClick=function(){this.E9.logClick(this.element);this.E9.f_("onFullerscreenEduClicked")}; h5.prototype.L_=function(){this.E9.isFullscreen()?this.C?this.fade.hide():this.fade.show():this.hide();this.E9.logVisibility(this.element,this.E9.isFullscreen()&&!this.C)};g.u(t5,Bs);t5.prototype.updateFullerscreenEduButtonSubtleModeState=function(S){var W;(W=this.C)!=null&&(g.GD(W.element,"ytp-fullerscreen-edu-button-subtle",S),S&&!W.N&&(W.E9.T("player_tooltip_data_title_killswitch")?W.element.setAttribute("title","Scroll for details"):W.element.setAttribute("data-tooltip-title","Scroll for details"),Uk(W.E9,W.element,W),W.N=!0))}; t5.prototype.updateFullerscreenEduButtonVisibility=function(S){var W;(W=this.C)!=null&&(W.C=S,W.L_())};g.u(EE_,g.b);g.u(Yc6,Bs);g.u(A5,Bs);A5.prototype.getSphericalProperties=function(){var S=g.$8(this.api.GV());return S?S.getSphericalProperties():{}}; A5.prototype.setSphericalProperties=function(S){if(S){var W=g.$8(this.api.GV());W&&W.setSphericalProperties(S,!0)}};g.u(ZW,Bs);g.V=ZW.prototype;g.V.createClientVe=function(S,W,m,a){this.api.createClientVe(S,W,m,a===void 0?!1:a)}; g.V.createServerVe=function(S,W,m){this.api.createServerVe(S,W,m===void 0?!1:m)}; g.V.setTrackingParams=function(S,W){this.api.setTrackingParams(S,W)}; g.V.logClick=function(S,W){this.api.logClick(S,W)}; g.V.logVisibility=function(S,W,m){this.api.logVisibility(S,W,m)}; g.V.hasVe=function(S){return this.api.hasVe(S)}; g.V.destroyVe=function(S){this.api.destroyVe(S)};var KQX=!1;bG.prototype.setPlaybackRate=function(S){this.playbackRate=Math.max(1,S)}; bG.prototype.getPlaybackRate=function(){return this.playbackRate};Sv.prototype.T3=function(S){var W=g.kK(S.info.yD.info,this.ZQ.Hv),m=S.info.VD+this.j,a=S.info.startTime*1E3;if(this.policy.d2)try{a=this.policy.d2?g.Hd(S)*1E3:S.info.startTime*1E3}catch(E){Math.random()>.99&&this.logger&&(a=FQ(S.N).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:S.info.GC(),encodedDataView:g.fh(a,4)})),a=S.info.startTime*1E3}var J=S.info.clipId,B=this.policy.d2?g.Gx6(S)*1E3:S.info.duration*1E3;this.policy.d2&&(a<0||B<0)&&(this.logger&&(this.logger({missingSegInfo:S.info.GC(), startTimeMs:a,durationMs:B}),this.policy.fU||(a<0&&(a=S.info.startTime*1E3),B<0&&(B=S.info.duration*1E3))),this.policy.fU&&(a<0&&(a=S.info.startTime*1E3),B<0&&(B=S.info.duration*1E3)));return{formatId:W,VD:m,startTimeMs:a,clipId:J,QV:B}}; Sv.prototype.Je=function(S){this.timestampOffset=S};WC.prototype.seek=function(S,W){S!==this.targetTime&&(this.seekCount=0);this.targetTime=S;var m=this.videoTrack.C,a=this.audioTrack.C,J=this.audioTrack.hv,B=M2D(this,this.videoTrack,S,this.videoTrack.hv,W);W=M2D(this,this.audioTrack,this.policy.Wv?S:B,J,W);S=Math.max(S,B,W);this.j=!0;this.ZQ.isManifestless&&(Qcj(this,this.videoTrack,m),Qcj(this,this.audioTrack,a));return S}; WC.prototype.isSeeking=function(){return this.j}; WC.prototype.VZ=function(S){this.N=S}; var lDc=2/24;var RUG=0;var TG;qM.prototype.add=function(S){if(this.pos+20>this.data.length){var W=new Uint8Array(this.data.length*2);W.set(this.data);this.data=W}for(;S>31;)this.data[this.pos++]=TG[(S&31)+32],S>>=5;this.data[this.pos++]=TG[S|0]}; qM.prototype.Rp=function(){return g.Os(this.data.subarray(0,this.pos))}; qM.prototype.reset=function(){this.pos=0};g.V=Vl.prototype;g.V.sR=function(){this.bY=this.now();ik_(this.Av,this.bY);this.Fn.sR()}; g.V.fA=function(S,W){var m=this.policy.N?(0,g.X1)():0;n_(this,S,W);S-this.V<10&&this.N>0||this.Kr(S,W);this.Fn.fA(S,W);this.policy.N&&(S=(0,g.X1)()-m,this.IL+=S,this.uY=Math.max(S,this.uY))}; g.V.Kr=function(S,W){var m=(S-this.V)/1E3,a=W-this.B;this.HY||(T9P(this.Av,m,a),this.zZ(m,a));this.V=S;this.B=W}; g.V.Z2=function(){this.Xn&&xtQ(this);this.Fn.Z2()}; g.V.UC=function(S){this.Xn||(this.Xn=this.X-this.lr+S,this.eg=this.X,this.Cn=this.Z)}; g.V.Lj=function(S,W){S=S===void 0?this.Z:S;W=W===void 0?this.X:W;this.N>0||(this.S=S,this.N=W,this.N2=this.isActive=!0)}; g.V.uj=function(){return this.Tm||2}; g.V.Zm=function(){}; g.V.F7=function(){var S,W={rn:this.requestNumber,rt:(this.Z-this.C).toFixed(),lb:this.X,stall:(1E3*this.j).toFixed(),ht:(this.bY-this.C).toFixed(),elt:(this.S-this.C).toFixed(),elb:this.N,d:(S=this.Pn)==null?void 0:S.Rp()};this.url&&GQj(W,this.url);this.policy.N&&(W.mph=this.uY.toFixed(),W.tph=this.IL.toFixed());W.ulb=this.s9;W.ult=this.vn;return W}; g.V.now=function(){return(0,g.X1)()}; g.V.deactivate=function(){this.isActive&&(this.isActive=!1)};g.u(uN,Vl);g.V=uN.prototype;g.V.F7=function(){var S=Vl.prototype.F7.call(this);S.pb=this.GU;S.pt=(1E3*this.EV).toFixed();S.se=this.yT;return S}; g.V.Vx=function(){var S=this.Fn;this.hX||(this.hX=S.Vx?S.Vx():1);return this.hX}; g.V.Tc=function(){return this.NS?this.Vx()!==1:!1}; g.V.Ik=function(S,W,m){if(!this.Wv){this.Wv=!0;if(!this.HY){n_(this,S,W);this.Kr(S,W);var a=this.Vx();this.yT=m;if(!this.HY)if(a===2){a=S-this.S0)||Oz(this,a,W),this.N>0&&w$(this.Av,W,this.j));S=(S-this.C)/ 1E3||.01;this.policy.S&&!(this.N>0)||Dn(this.Av,S,this.B,IDl(this),this.p6)}this.deactivate()}}; g.V.jQ=function(S,W,m){m&&(this.hX=2);S<0&&this.Tm&&(S=this.Tm);W?this.zN+=S:this.g2+=S}; g.V.uj=function(){return this.g2||this.zN||Vl.prototype.uj.call(this)}; g.V.Kr=function(S,W){var m=(S-this.V)/1E3,a=W-this.B,J=this.Vx();this.isActive?J===1&&((a>0||this.policy.X)&&(m>.2||a<1024)?(this.j+=m,a>0&&m>.2&&Oz(this,this.vk?m:.05,a),this.M2=!0):a>0&&(Oz(this,m,a),this.M2=!0)):W&&W>=this.policy.C&&this.Lj(S,W);Vl.prototype.Kr.call(this,S,W)}; g.V.nQ=function(S){if(!this.HY){n_(this,S,this.X);var W=(S-this.C)/1E3;this.Vx()!==2&&this.N>0&&(this.j+=(S-this.V)/1E3,w$(this.Av,this.B,this.j));Dn(this.Av,W,this.B,IDl(this),this.p6,!0);S=(S-this.V)/1E3;T9P(this.Av,S,0);this.zZ(S,0)}}; g.V.Lj=function(S,W){S=S===void 0?this.Z:S;W=W===void 0?this.X:W;if(!(this.N>0)&&(Vl.prototype.Lj.call(this,S,W),this.Vx()===1)){W=(this.bY-this.C)/1E3;var m=(S-this.bY)/1E3;this.NS&&jv(this,this.now());this.vv||this.HY||(this.Tm&&(m=Math.max(0,m-this.Tm)),S=this.Av,S.S.lO(1,W),S.s9.lO(1,m))}}; g.V.h3=function(){this.NS&&jv(this,this.now());return this.O9}; g.V.Sy=function(){var S;if(S=this.B>this.jx)S=(S=this.B)?S>=this.policy.C:!1;return S}; g.V.cf=function(){return this.Y6}; g.V.fV=function(S){S=S===void 0?this.now():S;if(this.NS){jv(this,S);if(this.hX?this.Tc():this.q2!==this.Hn){var W=this.Hn;if(S0?m+S:m+Math.max(S,W)}; g.V.lj=function(){return this.now()-this.S}; g.V.Pf=function(){return(this.B-this.N)*1E3/this.lj()||0}; g.V.S7=function(){return this.S};Ql.prototype.feed=function(S){GK(this.C,S);this.i$()}; Ql.prototype.i$=function(){if(this.j){if(!this.C.totalLength)return;var S=this.C.split(this.B-this.N),W=S.XT;S=S.s3;if(!this.Fn.UC(this.j,W,this.N,this.B))return;this.N+=W.totalLength;this.C=S;this.N===this.B&&(this.j=this.B=this.N=void 0)}for(;;){var m=0;S=g.R($tQ(this.C,m));W=S.next().value;m=S.next().value;m=g.R($tQ(this.C,m));S=m.next().value;m=m.next().value;if(W<0||S<0)break;if(!(m+S<=this.C.totalLength)){if(!(this.Fn.UC&&m+1<=this.C.totalLength))break;m=this.C.split(m).s3;this.Fn.UC(W,m,0, S)&&(this.j=W,this.N=m.totalLength,this.B=S,this.C=new YQ([]));break}S=this.C.split(m).s3.split(S);m=S.s3;this.Fn.dC(W,S.XT);this.C=m}}; Ql.prototype.dispose=function(){this.C=new YQ};g.V=XE.prototype;g.V.eR=function(){return 0}; g.V.c6=function(){return null}; g.V.Hq=function(){return null}; g.V.fm=function(){return this.state>=1}; g.V.isComplete=function(){return this.state>=3}; g.V.oo=function(){return this.state===5}; g.V.onStateChange=function(){}; g.V.gA=function(S){var W=this.state;this.state=S;this.onStateChange(W);this.callback&&this.callback(this,W)}; g.V.FP=function(S){S&&this.state=this.xhr.HEADERS_RECEIVED}; g.V.getResponseHeader=function(S){try{return this.xhr.getResponseHeader(S)}catch(W){return""}}; g.V.I3=function(){return+this.getResponseHeader("content-length")}; g.V.Ry=function(){return this.N}; g.V.Jn=function(){return this.status>=200&&this.status<300&&!!this.N}; g.V.tL=function(){return this.C.totalLength>0}; g.V.xl=function(){var S=this.C;this.C=new YQ;return S}; g.V.BE=function(){return this.C}; g.V.abort=function(){this.TN=!0;this.xhr.abort()}; g.V.uL=function(){return!0}; g.V.Z$=function(){return this.B}; g.V.TY=function(){return""};g.V=AuD.prototype; g.V.run=function(){var S=this,W,m,a,J,B,E,y,Y,G,K,T,p,q,F,O;return g.k(function(X){if(X.C==1){S.status=200;W=S.C.get("docid");m=tx(S.C.get("fmtid")||"");a=S.C.get("lmt")||"0";J=+(S.C.get("csz")||0);if(!W||!m||!J)throw Error("Invalid local URL");S.C.get("ck")&&S.C.get("civ")&&(B=new t2l(S.C.get("ck"),S.C.get("civ")));E=S.range;y=Math.floor(E.start/J);Y=Math.floor(E.end/J);G=y}if(X.C!=5)return G<=Y?g.P(X,loP(W,m,a,G,B),5):X.cn(0);K=X.N;if(K===void 0)throw Error("invariant: data is undefined");T=G*J; p=(G+1)*J;q=Math.max(0,E.start-T);F=Math.min(E.end+1,p)-(q+T);O=new Uint8Array(K.buffer,q,F);S.N.append(O);S.loaded+=F;S.loaded=200&&this.status<300&&!!this.N}; g.V.tL=function(){return!!this.C.totalLength}; g.V.xl=function(){var S=this.C;this.C=new YQ;return S}; g.V.BE=function(){return this.C}; g.V.TN=function(){return this.aborted}; g.V.abort=function(){this.B&&this.B.cancel().catch(function(){}); this.j&&this.j.abort();this.aborted=!0}; g.V.uL=function(){return!0}; g.V.Z$=function(){return this.X}; g.V.TY=function(){return this.errorMessage};g.V=bkG.prototype;g.V.onDone=function(){if(!this.TN){this.status=this.xhr.status;try{this.response=this.xhr.response,this.N=this.response.byteLength}catch(S){}this.C=!0;this.Fn.Z2()}}; g.V.fT=function(){this.xhr.readyState===2&&this.Fn.sR()}; g.V.onProgress=function(S){this.TN||(this.status=this.xhr.status,this.C||(this.N=S.loaded),this.Fn.fA((0,g.X1)(),S.loaded))}; g.V.Lm=function(){return this.xhr.readyState>=2}; g.V.getResponseHeader=function(S){try{return this.xhr.getResponseHeader(S)}catch(W){return g.Ue(Error("Could not read XHR header "+S)),""}}; g.V.I3=function(){return+this.getResponseHeader("content-length")}; g.V.Ry=function(){return this.N}; g.V.Jn=function(){return this.status>=200&&this.status<300&&this.C&&!!this.N}; g.V.tL=function(){return this.C&&!!this.response&&!!this.response.byteLength}; g.V.xl=function(){var S=this.response;this.response=void 0;return new YQ([new Uint8Array(S)])}; g.V.BE=function(){return new YQ([new Uint8Array(this.response)])}; g.V.abort=function(){this.TN=!0;this.xhr.abort()}; g.V.uL=function(){return!1}; g.V.Z$=function(){return!1}; g.V.TY=function(){return""};g.u(lN,g.A);lN.prototype.XY=function(){if(!this.Jr.length)return[];var S=this.Jr;this.Jr=[];this.B=g.AN(S).info;return S}; lN.prototype.W8=function(){return this.Jr}; lN.prototype.j9=function(){g.A.prototype.j9.call(this);this.C=null;this.Jr.length=0;this.R2.length=0;this.B=null};g.u(Uz,g.A);g.V=Uz.prototype; g.V.HJn=function(){if(!this.TN()){var S=(0,g.X1)(),W=!1;if(this.policy.Mi){var m=this.timing.N>0?this.timing.S:this.timing.C;this.policy.eb&&this.B&&(m=this.B);S=S-m-(this.policy.N0?this.policy.Up:this.timing.uj()*1E3);m=$E(L_(this),!1);S>=2E3*m?W=!0:S>=this.policy.GA*m&&(this.C=this.policy.K6)}else if(this.timing.N>0){if(this.V){this.policy.qd&&(this.C=0);return}S=this.timing.cf();this.timing.fV();this.timing.cf()-S>=this.policy.xK*.8?(this.C++,W=this.C>=5):this.C=0}else W=S-this.timing.h3(),this.policy.K6&& W>0&&(this.C+=1),S=$E(L_(this),!1)*this.policy.Vs,W=W>S*1E3;this.C>0&&this.Fn.UJ();W?this.bX():this.N.start()}}; g.V.bX=function(){this.X=!0;this.Fn.DS();this.lastError="net.timeout";ev(this)}; g.V.canRetry=function(S){var W=L_(this);S=S?this.policy.NH:this.policy.HA;return W.timedOut0&&(W=Vx(W.C,0),S.ubyte=W,m===1&&W===0&&(S.b248180278=!0))}this.gr&&(S.rc=this.policy.SY?this.gr:this.gr.toString());this.policy.dA&&this.Yp&&(S.tr=this.Yp);S.itag=this.info.R2[0].yD.info.itag;S.ml=""+ +this.info.R2[0].yD.Gm();S.sq=""+this.info.R2[0].VD;this.nP&&(S.ifi=""+ +Tj(76,this.info.aL.N));this.gr!==410&&this.gr!==500&&this.gr!==503||(S.fmt_unav="true");var a;(m=this.errorMessage||((a=this.xhr)==null? void 0:a.TY()))&&(S.msg=m);this.UQ&&(S.smb="1");this.info.isDecorated()&&(S.sdai="1");return S}; g.V.A3=function(){return P5c(this.timing)}; g.V.TY=function(){return this.xhr.TY()||""}; g.V.Sy=function(){return this.isComplete()||this.timing.Sy()}; g.V.fA=function(){!this.TN()&&this.xhr&&(this.gr=this.xhr.status,this.policy.zA&&this.yY&&this.uV(!1),this.IT()?this.FP(2):!this.Af&&this.Sy()&&(this.FP(),this.Af=!0))}; g.V.sR=function(){if(!this.TN()&&this.xhr){if(!this.MD&&this.xhr.Lm()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var S=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.MD=((0,g.X1)()-S)/1E3}this.xhr.Lm()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Eb6&&!nfc()&&g.i7("yt-player-headers-readable",!0,2592E3);S=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var W=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),m;(m=this.y$)==null||m.stop();this.DW=S||this.DW; this.oy=W||this.oy}}; g.V.Z2=function(){var S=this.xhr;if(!this.TN()&&S){this.gr=S.status;S=this.m5(S);if(this.policy.dA){var W;(W=this.y$)==null||W.stop()}S===5?ev(this.WU):this.gA(S);this.WU.N.stop()}}; g.V.m5=function(S){XdX(this);if(x3(this.WU,this.xhr.status,this.qm?this.timing.N2||this.ze:this.xhr.Jn(),!1,this.f9))return 5;var W="";iN(this.WU,this.xhr)&&(W=DtK(this.WU,this.xhr));if(W)return kE(L_(this.WU)),this.info.xV(this.nP,W),3;W=S.Ry();if(this.O3){this.uV(!0);XdX(this);if(x3(this.WU,this.xhr.status,this.timing.N2||this.ze,!1,this.f9))return 5;if(!this.wX){if(this.ze)return kE(L_(this.WU)),3;this.WU.lastError="net.closed";return 5}}else{if(x3(this.WU,this.xhr.status,this.xhr.Jn(),!1,this.f9))return 5; var m=this.info.B;if(m&&m!==W||S.Z$())return this.WU.lastError="net.closed",5;this.uV(!0)}m=hUP(this)?S.getResponseHeader("X-Bandwidth-Est"):0;if(S=hUP(this)?S.getResponseHeader("X-Bandwidth-Est3"):0)this.CY=!0,this.policy.s7&&(m=S);cuc(this.WU,W,m?Number(m):0,this.info.R2[0].type===5);return 4}; g.V.canRetry=function(){this.TN();var S=this.info.isDecorated();return this.WU.canRetry(S)}; g.V.onStateChange=function(){this.isComplete()&&(this.policy.Op?this.DS():this.timing.deactivate())}; g.V.bX=function(){this.WU.bX()}; g.V.UJ=function(){this.callback&&this.callback(this,this.state)}; g.V.vc=function(){return this.WU.vc()}; g.V.dispose=function(){XE.prototype.dispose.call(this);this.WU.dispose();var S;(S=this.y$)==null||S.dispose();this.policy.Op||this.DS()}; g.V.DS=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.V.XY=function(){if(!this.W8().length)return[];this.kx=!0;return this.yY.XY()}; g.V.IT=function(){if(this.state<1)return!1;if(this.yY&&this.yY.Jr.length)return!0;var S;return((S=this.xhr)==null?0:S.tL())?!0:!1}; g.V.W8=function(){this.uV(!1);return this.yY?this.yY.W8():[]}; g.V.uV=function(S){try{if(S||this.xhr.Lm()&&this.xhr.tL()&&!iN(this.WU,this.xhr)&&!this.pT)this.yY||(this.yY=new lN(this.policy,this.info.R2)),this.xhr.tL()&&(this.O3?this.O3.feed(this.xhr.xl()):MM(this.yY,this.xhr.xl(),S&&!this.xhr.tL()))}catch(W){this.O3?jml(this,W):g.Ue(W)}}; g.V.dC=function(S,W){switch(S){case 21:S=W.split(1).s3;QmQ(this,S);break;case 22:this.wX=!0;MM(this.yY,new YQ([]),!0);break;case 43:if(S=e3(new vO(W),1))this.info.xV(this.nP,S),this.ze=!0;break;case 45:W=Xa(new vO(W));S=W.p5;W=W.jN;S&&W&&(this.LG=S/W);break;case 44:this.Au=aQD(new vO(W));var m,a,J;!this.timing.N2&&((m=this.Au)==null?void 0:m.action)===4&&((a=this.Au)==null?0:(J=a.kO)==null?0:J.qm)&&(this.qm=this.Au.kO.qm);break;case 53:this.policy.dA&&(S=SmQ(new vO(W)).Qx)&&(this.y$||(this.Qx=S,this.y$= new g.rj(this.Jt,S,this)),this.y$.start());break;case 60:this.Hl=Q0(new vO(W));break;case 58:if(S=MaP(new vO(W)))this.X7=S,S.X7===3&&(this.f9=!0)}}; g.V.UC=function(S,W,m,a){m||this.timing.UC(a);if(S!==21)return!1;if(S=this.policy.zA)if(S*=this.info.R2[0].yD.info.o2,W.totalLength+m!==a&&W.totalLength0)return!1;if(!this.xhr.Lm())return!0;if(this.O3)var S=!this.info.B;else this.xhr.I3()?S=!1:(S=this.xhr.getResponseHeader("content-type"),S=S==="audio/mp4"||S==="video/mp4"||S==="video/webm");if(!S)return!1;if(isNaN(this.info.qP)){S=this.xhr.getResponseHeader("x-head-seqnum");var W=this.timing.policy.Z?1:0;if(S&&Number(S)>this.info.R2[0].VD+W)return!1}return!0}; g.V.sJ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.V.c6=function(){this.xhr&&(this.DW=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.DW}; g.V.Hq=function(){this.xhr&&(this.oy=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.oy}; g.V.mI=function(){return this.WU.mI()}; g.V.Jt=function(){if(!this.TN()&&this.xhr){this.Yp="heartbeat";var S=this.WU;S.C+=2;this.UJ()}};g.u(tP,Vl);g.V=tP.prototype;g.V.Kr=function(S,W){var m=(S-this.V)/1E3,a=W-this.B;this.N>0?a>0&&(this.q2&&(m>.2||a<1024?(this.j+=m,m>.2&&vsP(this,.05,a)):vsP(this,m,a)),this.Hn&&(this.O9+=a,this.g2+=m)):W>this.policy.C&&this.Lj(S,W);Vl.prototype.Kr.call(this,S,W)}; g.V.Ik=function(S,W){n_(this,S,W);this.Kr(S,W);this.q2&&(W=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.N>0&&w$(this.Av,this.O9,this.j),S=(S-this.C)/1E3||.01,this.policy.S&&!(this.N>0)||Dn(this.Av,S,this.B,W,!1))}; g.V.nQ=function(S){n_(this,S,this.X);var W=(S-this.V)/1E3;T9P(this.Av,W,0);this.zZ(W,0);!this.q2&&this.N>0||(W=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.N>0&&(this.j+=(S-this.V)/1E3,w$(this.Av,this.O9,this.j)),Dn(this.Av,(S-this.C)/1E3||.01,this.B,W,!1,!0))}; g.V.Ah=function(S){S=S.T5||2147483647;(S&2)!==2&&(this.Hn=!1);(S&1)===1&&(this.q2=!0)}; g.V.i7=function(S){S=S.T5||2147483647;(S&2)===2&&(this.Hn=!1);(S&1)===1&&(this.q2=!1)}; g.V.S7=function(){return this.S}; g.V.lj=function(){var S=this.Hn?this.now()-this.V:0;return Math.max(this.g2*1E3+S,1)}; g.V.Pf=function(){return this.O9*1E3/this.lj()}; g.V.Lj=function(S,W){S=S===void 0?this.Z:S;W=W===void 0?this.X:W;this.N>0||(Vl.prototype.Lj.call(this,S,W),W=this.Av,S=(S-this.bY)/1E3,W.S.lO(1,(this.bY-this.C)/1E3),W.s9.lO(1,S))}; g.V.Zm=function(S){this.zN=S}; g.V.F7=function(){var S=Vl.prototype.F7.call(this);S.rbw=this.Pf();S.rbe=+this.Hn;S.gbe=+this.q2;S.ackt=(this.zN-this.C).toFixed();return S}; g.V.fV=function(){}; g.V.cf=function(){return NaN}; g.V.h3=function(){return this.C+this.snapshot.delay*1E3};AP.prototype.dC=function(S,W){switch(S){case 20:S=new vO(W);S={aX:M9(S,1),videoId:e3(S,2),itag:M9(S,3),lmt:M9(S,4),xtags:e3(S,5),Gi:M9(S,6),cT:Lc(S,8),P4:M9(S,9),Ou2:M9(S,10),startMs:M9(S,11),durationMs:M9(S,12),i4:M9(S,14),timeRange:xQ(S,15,uv),pk:M9(S,16),Vw:M9(S,17),u2:M9(S,20),ZZ:xQ(S,21,$ul),clipId:e3(S,1E3)};this.DO(S);break;case 21:this.FU(W,!1);break;case 22:this.x0(W);break;case 31:S=IR(W,NC6);this.Fn.hI(S);break;case 52:S=IR(W,Wol);this.Fn.JP(S);break;case 69:S={Lc:dF(new vO(W),1,PfX)}; this.Fn.Do(S);break;default:this.VL(S,W)}}; AP.prototype.DO=function(){}; AP.prototype.VL=function(){};var wF9=new Set([53,49,50]);g.u(Zi,AP);g.V=Zi.prototype;g.V.VL=function(S,W){fBO(this.Fn)&&!wF9.has(S)?this.C.push({id:S,data:W}):HN_(this,S,W)}; g.V.y5=function(S){S=new vO(S);S={Eo2:dF(S,1,s1),ZrU:dF(S,2,s1)};this.Fn.y5(S)}; g.V.jp=function(S){var W=new vO(S);S=iq(W,1);var m=iq(W,2);W=iq(W,3);this.Fn.jp(S,m,W)}; g.V.CU=function(S){S=Xa(new vO(S));this.Fn.CU(S)}; g.V.IV=function(S){S=IR(S,rZl);this.Fn.IV(S)}; g.V.gG=function(S){S=new vO(S);S={videoId:e3(S,1),formatId:xQ(S,2,s1),endTimeMs:M9(S,3),lIN:M9(S,4),mimeType:e3(S,5),L7:xQ(S,6,fjl),indexRange:xQ(S,7,fjl),UU:xQ(S,8,k37)};this.Fn.gG(S)}; g.V.X1=function(S){S=new vO(S);S={type:M9(S,1),scope:M9(S,2),value:RR(S,3),sendByDefault:Lc(S,4),writePolicy:M9(S,5)};this.Fn.X1(S)}; g.V.B8=function(){this.Fn.B8()}; g.V.M0=function(S){S=b8j(new vO(S));this.Fn.M0(S)}; g.V.kJ=function(S){S=SmQ(new vO(S));this.Fn.kJ(S)}; g.V.qr=function(S){S=aQD(new vO(S));this.Fn.qr(S)}; g.V.eZ=function(S){S={redirectUrl:e3(new vO(S),1)};this.Fn.eZ(S)}; g.V.FU=function(S){var W=Vx(S,0);if(S.totalLength!==1){S=S.split(1).s3;var m=this.N[W]||null;m&&Di(this.Fn.eC,W,m,S)}}; g.V.x0=function(S){S=Vx(S,0);var W=this.N[S]||null;W&&this.Fn.x0(S,W)}; g.V.DO=function(S){var W=S.aX,m=S.cT,a=S.Gi,J=S.Vw,B=S.pk,E=S.P4,y=S.startMs,Y=S.durationMs,G=S.timeRange,K=S.i4,T=S.u2,p=S.clipId,q=S.ZZ,F=oc(S);S=LXN.has(Lx[""+S.itag]);this.N[W]=F;var O=-1;T&&(G==null?0:G.timescale)&&(O=T/G.timescale);this.Fn.jQ(F,S,O,{aX:W,cT:!!m,Gi:a!=null?a:-1,P4:E!=null?E:-1,startMs:y!=null?y:-1,durationMs:Y!=null?Y:-1,i4:K,Vw:J,pk:B,clipId:p,timeRange:G,ZZ:q})}; g.V.Ah=function(S){S={T5:M9(new vO(S),1)};this.Fn.Ah(S)}; g.V.i7=function(S){S={T5:M9(new vO(S),1)};this.Fn.i7(S)}; g.V.HZ=function(S){S=MaP(new vO(S));this.Fn.HZ(S)}; g.V.lS=function(S){S={C$:xQ(new vO(S),1,Dul)};this.Fn.lS(S)}; g.V.onSnackbarMessage=function(S){S=M9(new vO(S),1);this.Fn.onSnackbarMessage(S)}; g.V.Nr=function(S){S=new vO(S);S={reloadPlaybackParams:xQ(S,1,ljl),rX:Lc(S,2)};this.Fn.Nr(S)}; g.V.V8=function(){for(var S=g.R(this.C),W=S.next();!W.done;W=S.next())W=W.value,HN_(this,W.id,W.data);this.C=[]};g.u(NM,g.A);g.V=NM.prototype;g.V.PL=function(){return Array.from(this.zC.keys())}; g.V.I$=function(S){S=this.zC.get(S);var W=S.Jr;S.Qr+=W.totalLength;S.Jr=new YQ;return W}; g.V.U2=function(S){return this.zC.get(S).U2}; g.V.rf=function(S){return this.zC.get(S).rf}; g.V.jQ=function(S,W,m){this.zC.get(S)||this.zC.set(S,{Jr:new YQ,Qr:0,bytesReceived:0,Ev:0,OL:!1,U2:!1,rf:!1,vD:W,Iz:[],R2:[],DZ:[],oO:!1,JY:new Map,KK:new Map,oe:[]});W=this.zC.get(S);this.ZQ?(S=emD(this,S,m),RmP(this,m.aX,W,S)):(m.cT?W.Ev=m.i4:W.DZ.push(m),W.Iz.push(m))}; g.V.vT=function(S){var W;return((W=this.zC.get(S))==null?void 0:W.R2)||[]}; g.V.FP=function(){for(var S=g.R(this.zC.values()),W=S.next();!W.done;W=S.next())if(W=W.value,W.OL){if(W.onProgress)W.onProgress();W.OL=!1}}; g.V.x0=function(S,W){W=this.zC.get(W);bN?W&&!W.U2&&(W.JY.get(S)?W.JY.get(S).hd=!0:W.JY.set(S,{data:new YQ,gN:0,hd:!0}),W.rf=!0):W&&!W.rf&&(W.rf=!0)}; g.V.XY=function(S){if(bN){var W=this.zC.get(S);if(W)for(var m=g.R(W.JY),a=m.next();!a.done;a=m.next()){var J=g.R(a.value);a=J.next().value;J=J.next().value;var B=W.KK.get(a);if(ma(B[0])){if(!J.hd)continue;var E=J.data,y=0,Y=[];B=g.R(B);for(var G=B.next();!G.done;G=B.next()){G=G.value;var K=G.N,T=Kc(E,y,K);y+=K;Y.push(new Q9(G,T))}W.oe.push.apply(W.oe,g.x(Y))}else if(J.data.totalLength>0||!B[0].range&&J.hd)E=void 0,y=B[0],Y=J.gN,B=J.data,y.range||(E=J.hd),E=new Q9(IqP(y,y.C+Y,B.totalLength,E),B),J.gN+= E.info.N,W.oe.push(E);W.JY.get(a).data=new YQ;J.hd&&W.JY.delete(a)}S=this.zC.get(S);if(!S)return[];W=S.oe;S.oe=[];m=g.R(W);for(a=m.next();!a.done;a=m.next())S.Qr+=a.value.info.N;return W||[]}m=(W=this.zC.get(S))==null?void 0:W.yY;if(!m)return[];this.uV(S,m);return m.XY()}; g.V.IT=function(S){if(bN)return cC(this,S);var W,m,a;return!!((m=(W=this.zC.get(S))==null?void 0:W.yY)==null?0:(a=m.W8())==null?0:a.length)||cC(this,S)}; g.V.uV=function(S,W){for(;cC(this,S);){var m=this.I$(S);var a=S;a=this.zC.get(a).U2&&!C_(this,a);MM(W,m,a&&Lac(this,S))}}; g.V.j9=function(){g.A.prototype.j9.call(this);for(var S=g.R(this.zC.keys()),W=S.next();!W.done;W=S.next())oJ(this,W.value);var m;if((m=this.RY)==null?0:m.zf)for(S=g.R(this.zC.values()),W=S.next();!W.done;W=S.next())W=W.value,W.JY.clear(),W.KK.clear(),W.oe.length=0,W.R2.length=0,W.Iz.length=0,W.DZ.length=0;this.zC.clear()}; var bN=!1;var SRn=new Set([2]);g.u(wP,g.A);g.V=wP.prototype;g.V.fA=function(){!this.TN()&&this.xhr&&(this.uV(!1),nj(this.Fn,this))}; g.V.sR=function(){}; g.V.Z2=function(){if(!this.TN()&&this.xhr){var S=this.m5();S===5?(this.policy.Ph&&this.mI()==="net.badstatus"&&this.Fn.dG(),ev(this.WU)):(this.policy.Ph&&this.Fn.Ru(),this.gA(S));this.WU.N.stop();var W;(W=this.Mr)==null||W.stop()}}; g.V.m5=function(){var S="";iN(this.WU,this.xhr)&&(S=DtK(this.WU,this.xhr));if(S)return this.info.aL.xV(this.nP,S),3;this.uV(!0);if(x3(this.WU,this.xhr.status,this.xhr.Jn(),this.info.sC(),this.f9))return 5;if(this.Rg)return 3;cuc(this.WU,this.xhr.Ry(),0,this.sC());this.policy.VT&&dWQ(this.Fn);return 4}; g.V.uV=function(S){var W=this.xhr;!S&&iN(this.WU,this.xhr)||!W.tL()||(S=W.xl(),this.O3.feed(S))}; g.V.dC=function(S,W){this.xhr.uL()&&S===21&&IBP(this);this.Bo.dC(S,W)}; g.V.UC=function(S,W,m,a){m||(this.xa.UC(a),this.policy.xc&&S===21&&IBP(this));if(S!==21)return!1;this.xa.N2=!0;S=W.totalLength;m||(this.G2=Vx(W,0),W=W.split(1).s3);var J=this.policy.J_,B=this.Bo.N[this.G2],E=this.ZQ.B.get(B);if(J&&E&&(J*=E.info.o2,S+m!==a&&S0){this.policy.Mi&&this.WU.N.stop();S=this.xa.lj();W=this.xa.Pf();var m=PAQ(this,S);if(!(W>m.AI||m.NQ>0&&this.info.C4()>m.NQ)){this.mj=(0,g.X1)();var a;(a=this.Mr)==null||a.stop();this.policy.VT&&(a=this.Fn,S={lX:Math.round(W*S/1E3),vS:S},a.policy.VT&&(a.O9=S,a.qJ++));this.bX()}}}}; g.V.bX=function(){this.WU.bX()}; g.V.qr=function(S){this.Fn.qr(S,this.gi())}; g.V.eZ=function(S){this.Rg=!0;this.info.aL.xV(this.nP,S.redirectUrl)}; g.V.Ah=function(S){this.xa instanceof tP&&this.xa.Ah(S)}; g.V.i7=function(S){this.xa instanceof tP&&this.xa.i7(S)}; g.V.gG=function(S){var W=S.formatId,m=oc({itag:W.itag,lmt:W.lmt,xtags:W.xtags}),a,J,B=new cW(((a=S.L7)==null?void 0:a.first)||0,((J=S.L7)==null?void 0:J.uD)||0),E,y;a=new cW(((E=S.indexRange)==null?void 0:E.first)||0,((y=S.indexRange)==null?void 0:y.uD)||0);this.ZQ.B.get(m)||(m=S.UU||{},m.mimeType=S.mimeType,m.itag=W.itag,m.lastModified=""+(W.lmt||0),m.xtags=W.xtags,S=this.ZQ,W=Am(""),m=hm(m,null),dn(S,new eB(W,m,B,a)))}; g.V.CU=function(S){this.Fn.CU(S,this.gi())}; g.V.onSnackbarMessage=function(S){if(this.policy.uN)this.Fn.onSnackbarMessage(S)}; g.V.Do=function(S){this.policy.X&&this.Fn.Do(S,this.gi())}; g.V.hI=function(S){this.mK=S;this.WU.B=(0,g.X1)();this.Fn.hI(S)}; g.V.Wy=function(S){this.Fn.Wy(S)}; g.V.jp=function(S,W,m){this.Fn.jp(S,W,m)}; g.V.X1=function(S){S.scope===2&&(this.N4=S);this.Fn.X1(S)}; g.V.B8=function(){this.TH=!0;this.Fn.B8()}; g.V.y5=function(S){this.policy.vQ&&this.Fn.y5(S)}; g.V.IV=function(S){this.Fn.IV(S,this.gi())}; g.V.HZ=function(S){S.X7===3&&(this.f9=!0);this.Fn.HZ(S)}; g.V.lS=function(S){this.Fn.lS(S)}; g.V.Nr=function(S){this.Fn.Nr(S)}; g.V.canRetry=function(){this.TN();return this.WU.canRetry(!1)}; g.V.dispose=function(){if(!this.TN()){g.A.prototype.dispose.call(this);this.WU.dispose();var S;(S=this.Mr)==null||S.dispose();this.gA(-1);this.DS()}}; g.V.gA=function(S){this.state=S;nj(this.Fn,this)}; g.V.sC=function(){return this.info.sC()}; g.V.Lq=function(){return this.TH}; g.V.Hf=function(){return this.N4}; g.V.jQ=function(S,W,m,a){this.policy.Mp&&this.Fn.Ce(2,W);m>=0&&this.Fn.BR(m);a.clipId&&(this.clipId=a.clipId);this.policy.N&&!W&&(this.Pk=a.P4);if(this.info.isDecorated()){var J=this.info,B,E;m=((B=J.data)==null?0:(E=B.DJ)==null?0:E.rb)?J.data.DJ.rb:-1;m>=0&&m>a.P4&&this.Fn.loader.iY("sdai",{skpsqmismatch:"1",stsq:m,rcvsq:a.P4,a:W})}this.eC.jQ(S,W,a);this.policy.FV&&this.mK&&this.xa instanceof uN&&(B=this.mK.Yw,this.xa.jQ(a.durationMs/1E3,W,B>0&&a.P4+1>=B));this.eC.zC.get(S).oO=!0;this.Fn.jQ(a)}; g.V.x0=function(S,W){this.eC.x0(S,W)}; g.V.JP=function(S){this.requestIdentifier=S}; g.V.XY=function(S){return this.eC.XY(S)}; g.V.vT=function(S){return this.eC.vT(S)}; g.V.IT=function(S){return this.eC.IT(S)}; g.V.PL=function(){return this.eC.PL()}; g.V.Vx=function(){return 1}; g.V.gi=function(){return this.xa.requestNumber}; g.V.GE=function(){return this.requestIdentifier}; g.V.XD=function(){return this.nP.XD()}; g.V.v$=function(){this.DS()}; g.V.DS=function(){this.xa.deactivate();var S;(S=this.xhr)==null||S.abort()}; g.V.isComplete=function(){return this.state>=3}; g.V.RK=function(){return this.state===3}; g.V.oo=function(){return this.state===5}; g.V.eW=function(){return this.state===4}; g.V.PV=function(){return this.isComplete()}; g.V.fm=function(){return this.state>=1}; g.V.vc=function(){return this.policy.qd?this.WU.vc():0}; g.V.UJ=function(){this.policy.qd&&nj(this.Fn,this)}; g.V.Un=function(){return I$(this.info)}; g.V.V8=function(){this.Gc()&&!this.P0&&(this.P0=!0,this.Bo.V8())}; g.V.Gc=function(){var S,W;var m=(S=this.info.C)==null?void 0:(W=S.cY)==null?void 0:W.Jp;return!!m&&SRn.has(m)}; g.V.X5=function(){return"SABR"}; g.V.mI=function(){return this.WU.mI()}; g.V.EK=function(){var S=wWP(this.WU);Object.assign(S,hTD(this.info));S.req="sabr";S.rn=this.gi();var W;if((W=this.xhr)==null?0:W.status)S.rc=this.policy.SY?this.xhr.status:this.xhr.status.toString();var m;(W=(m=this.xhr)==null?void 0:m.TY())&&(S.msg=W);this.mj&&(m=PAQ(this,this.mj-this.xa.S7()),S.letm=m.sLN,S.mrbps=m.AI,S.mram=m.NQ);return S};kb6.prototype.tick=function(S,W){this.ticks[S]=W?window.performance.timing.navigationStart+W:(0,g.X1)()};g.u(WD,g.au);g.V=WD.prototype; g.V.Dh=function(S,W,m,a){var J=!1;this.policy.N&&(J=m?this.q2===S.VD:this.vn===S.VD);if(this.tv&&a&&!J){a=[];J=[];var B=[],E=void 0,y=0;W&&(a=W.C,J=W.N,B=W.j,E=W.B,y=W.Cc,this.iY("sdai",{sq:S.VD,ssvicpns:a.join("."),ssvid:J.join(".")}));this.policy.N&&(m?this.q2=S.VD:this.vn=S.VD);this.tv.xJ(S.VD,S.startTime,a,J,B,m,y,E)}if(this.policy.N){if(m){this.N===1&&a5(this,5,"noad");var Y;S.VD!==((Y=this.C)==null?void 0:Y.VD)&&(ZNO(this,S,W,m),isNaN(S.startTime)||NnG(this,S.VD,z7(this,S.startTime,S.VD),!!W, this.tv))}}else m&&ZNO(this,S,W)}; g.V.SZ=function(S,W,m){var a=this.videoTrack.yD.index.lP()<=W;this.C={je:S,VD:W,VA:m};a&&mn(this,S,W)}; g.V.Us=function(){this.tv&&this.tv.Us()}; g.V.iY=function(S,W,m){(S!=="sdai"||this.policy.TJ||(m===void 0?0:m))&&this.loader.iY(S,W)}; g.V.PA=function(S,W){var m=this.videoTrack.yD.index.oU(S);if(m>=0){var a;var J=((a=W.hA(m,2))==null?void 0:a.yA)||"";if(this.policy.N||J)return W.YU(S,m),Jr(this.loader,S,S,m),this.iY("sdai",{cmskpad:1,t:S.toFixed(3),sq:m}),!0}this.iY("sdai",{cmskpad:0,t:S.toFixed(3),sq:m});return!1};g.V=DA6.prototype; g.V.q_=function(S,W,m){var a=S;a||(a=Y6(this,this.j));this.iY("clsdai",{setadcfg:S||"misscid",cid:a,acpn:m,acfglen:(W==null?void 0:W.length)||0});if(!this.C.has(a)){this.iY("clsdai",{setadcfg:"noentry",cid:a});var J,B;this.C.set(a,{event:"unknown",startTimeSecs:0,Gk:0,AS:[],RB:Date.now(),Tp:-1,SS:6,cuepointId:S||((J=this.j)==null?void 0:J.identifier)||"",tileContext:((B=this.j)==null?void 0:B.tileContext)||""})}(S=this.C.get(a))?W?(S.SS=6,S.AS.push(m),S.aB=W):S.SS=2:this.iY("clsdai",{setadcfg:"notfound", cid:a})}; g.V.FB=function(S){var W=S||Y6(this,this.j);this.iY("clsdai",{rmvadcfg:S||"misscid",lastcid:Y6(this,this.j)});(S=this.C.get(W))?(S.aB="",S.SS=4):this.iY("clsdai",{rmadcfg:"notfound",cid:W})}; g.V.Do=function(S,W,m,a,J){this.V=W;var B;if(!((((B=S.Lc)==null?void 0:B.length)||0)<=0))if(a){if(this.B=a,this.iY("clsdai",{oncldisabled:a,rn:W}),this.B===3&&J)for(W=g.R(S.Lc),m=W.next();!m.done;m=W.next())m=m.value,m.je&&m.trackType===2&&bxD(J,SZP(this,m),m.P4||0,!0)}else for(J=g.R(S.Lc),S=J.next();!S.done;S=J.next()){B=S.value;if(S=B.je){S=SZP(this,B);a=W;var E=B.P4||0,y=m,Y=Y6(this,S);this.C.has(Y)?(B=this.C.get(Y),E>B.Tp&&(B.startTimeSecs=S.startSecs,B.Gk=S.Gk,B.event==="predictStart"&&B.SS=== 5&&S.event!=="predictStart"&&(B.RB=Date.now()),B.event=S.event)):(B={event:S.event,startTimeSecs:S.startSecs,Gk:S.Gk,AS:[],Tp:E,SS:0,cuepointId:S.identifier,tileContext:S.tileContext},this.C.set(Y,B),this.policy.X&&this.iY("clsdai",{newcid:1,cid:S.identifier,tc:S.tileContext,evt:S.event,sn:E,rn:a,st:mTK(B.SS)}));var G=!1;B.SS===0&&((y==null?0:y.GZ(S))?B.SS=5:(B.SS=y?11:3,B.aB="",G=!0),B.RB=Date.now(),B.Tp=E,this.policy.X&&this.iY("clsdai",{onqpnt:1,cid:S.identifier,tc:S.tileContext,evt:S.event,sn:E, rn:a,st:mTK(B.SS)}));E>B.Tp&&(y==null||y.GZ(S),B.Tp=E);this.j=S;this.policy.X&&this.N.add(Y);S=G}S&&(this.X=!0)}}; g.V.YU=function(S,W,m){var a=S;this.policy.X&&(a+=m);var J,B="";a=Wrl(this,a);a.length>0&&(B=a[0])&&(J=this.C.get(B));if(!J||J.LK){var E;this.iY("clsdai",{skipadfail:1,cid:B,sn:W,mt:S.toFixed(3),of:m.toFixed(3),skipsq:((E=J)==null?void 0:E.LK)||-1});return!1}this.iY("clsdai",{skipadsuc:1,cid:B,sn:W,mt:S.toFixed(3),of:m.toFixed(3)});J.LK=W;this.N.clear();this.N.add(B);return!0}; g.V.uW=function(){this.iY("clsdai",{rstskipad:1});for(var S=g.R(this.C.values()),W=S.next();!W.done;W=S.next())W.value.LK=NaN};g.u(T7,g.A);T7.prototype.yj=function(){return this.V&&pf(this).size>0}; T7.prototype.fR=function(S,W,m){m=m===void 0?{}:m;this.policy.WQ=aV(S,m,this.j,W===void 0?!1:W)};Vk.prototype.lO=function(S,W){var m=Math.pow(this.alpha,S);this.C=W*(1-m)+m*this.C;this.N+=S}; Vk.prototype.hO=function(){return this.C/(1-Math.pow(this.alpha,this.N))};sE.prototype.zR=function(S){var W=this;if(this.policy.Q9){var m=new Set(S);m.size===this.Pn.size&&[].concat(g.x(m)).every(function(a){return W.Pn.has(a)})||(this.loader.iY("lwnmow",{itagDenylist:[].concat(g.x(S)).join(",")}),this.loader.fp(!!m.size),this.bY=-1,this.Pn=m,uK(this,this.C),this.O9=!0)}}; sE.prototype.fR=function(S,W,m){m=m===void 0?{}:m;var a=this.policy.WQ;this.X.fR(S,W===void 0?!1:W,m);if(a!==this.policy.WQ){uK(this,this.C);gS(this);var J,B;a>this.policy.WQ&&((J=this.B)==null?0:d1(J.info))&&((B=this.nextVideo)==null||!d1(B.info))&&(this.N2=!0)}};var XK={le:-1,Ja:!1,Jp:0};g.u(vD,g.A);vD.prototype.j9=function(){this.N=XK;HD(this);g.A.prototype.j9.call(this)};lK.prototype.Je=function(S){this.timestampOffset=S;this.flush()}; lK.prototype.flush=function(){if(this.C.pos>0){var S={a:this.track.vD(),u:this.C.Rp(),pd:Math.round(this.j),ad:Math.round(this.B)},W=this.N;if(W){var m=W.yD.info;S.itag=m.itag;m.C&&(S.xtags=m.C);S.sq=W.VD;S.st=W.startTime;S.sd=W.duration;this.track.policy.W2&&(S.si=W.GC());W.B&&(S.esl=W.C+W.N);W.Kk()&&(S.eos=1)}isNaN(this.timestampOffset)||(S.to=this.timestampOffset);var a;if(W=(a=this.track.hv)==null?void 0:a.Yb({})){for(var J in W)this.V[J]!==W[J]&&(S["sb_"+J]=W[J]);this.V=W}this.track.iY("sbu", S);this.C.reset();this.buffered=[];this.X=this.B=this.j=0;this.timestampOffset=this.N=void 0}};UE.prototype.dispose=function(){this.vn=!0}; UE.prototype.TN=function(){return this.vn}; g.u(dS,Error);ff.prototype.skip=function(S){this.offset+=S}; ff.prototype.QH=function(){return this.offset};g.V=fI6.prototype;g.V.Fi=function(){return this.N}; g.V.iR=function(){return this.N.length?this.N[this.N.length-1]:null}; g.V.YB=function(){this.N=[];tr(this);$6(this)}; g.V.I$=function(S){this.O9=this.N.shift().info;S.info.equals(this.O9)}; g.V.vT=function(){return g.MU(this.N,function(S){return S.info})}; g.V.vD=function(){return!!this.yD.info.audio}; g.V.isDrm=function(){return!!this.yD.info.PG}; g.V.getDuration=function(){return this.yD.index.NZ()};g.u(mZ,XE);g.V=mZ.prototype;g.V.onStateChange=function(){this.TN()&&(rP(this.eC,this.formatId),this.C.dispose())}; g.V.EK=function(){var S=UAl(this.eC,this.formatId),W;var m=((W=this.eC.zC.get(this.formatId))==null?void 0:W.bytesReceived)||0;var a;W=((a=this.eC.zC.get(this.formatId))==null?void 0:a.Qr)||0;return{expected:S,received:m,bytesShifted:W,sliceLength:C_(this.eC,this.formatId),isAnyMediaEndReceived:this.eC.rf(this.formatId)}}; g.V.A3=function(){return 0}; g.V.Sy=function(){return!0}; g.V.XY=function(){return this.eC.XY(this.formatId)}; g.V.W8=function(){return[]}; g.V.IT=function(){return this.eC.IT(this.formatId)}; g.V.mI=function(){return this.lastError}; g.V.vc=function(){return 0};g.u(bK,g.A);g.V=bK.prototype;g.V.vD=function(){return!!this.yD.info.audio}; g.V.iR=function(){return this.B.iR()}; g.V.I$=function(S){this.B.I$(S);var W;(W=this.Z)!=null&&(W.X.add(S.info.VD),W.C=nEP(W,W.I6,W.jI,S,W.C),W.B=S,W.V=(0,g.X1)());this.o2=Math.max(this.o2,S.info.yD.info.o2||0)}; g.V.getDuration=function(){return this.yD.index.NZ()}; g.V.YB=function(){JP(this);this.B.YB()}; g.V.IS=function(){return this.B}; g.V.Hc=function(S){return this.hv?ct(this.hv.Ni(),S):!0}; g.V.isRequestPending=function(S){return this.N.length?S===this.N[this.N.length-1].info.R2[0].VD:!1}; g.V.Je=function(S){var W;(W=this.Z)==null||W.Je(S);var m;(m=this.S)==null||m.Je(S)}; g.V.iY=function(S,W){this.loader.iY(S,W)}; g.V.Ro=function(){return this.loader.Ro()}; g.V.dispose=function(){var S;(S=this.S)==null||S.flush();g.A.prototype.dispose.call(this)};g.u(ny,g.A);ny.prototype.B=function(){this.N++>15||(this.C=!this.C,new jyj(this.loader,this.policy,this.Av,this.aL,this.C),this.delay.start())}; g.V=jyj.prototype;g.V.sR=function(){}; g.V.fA=function(){}; g.V.Z2=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Ry()===this.size)this.loader.iY("rqs",this.getInfo());else{var S="net.connect";this.xhr.status>200?S="net.badstatus":this.xhr.Lm()&&(S="net.closed");this.onError(S)}}; g.V.onError=function(S){var W=this;this.loader.handleError(S,this.getInfo());Nn("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(m){W.loader.iY("pathprobe",m)},function(m){W.loader.handleError(m.errorCode,m.details)})}; g.V.getInfo=function(){var S=this.timing.F7();S.shost=Fl(4,this.location.fW);S.pb=this.size;return S};g.u(gW,g.A); gW.prototype.V=function(S,W){if(S.V){this.ZQ.isLive?(S=this.ZQ.VU&&this.ZQ.Z?S.yD.zS(this.ZQ.VU,!1):S.yD.sX(Infinity),S.qP=this.qP):S=S.yD.zS(0,!1);if(this.bY){var m=this.bY;S.qP===0&&(S.X=m.S)}else S.X=this.S;return S}m=S.C;if(!m.yD.Gm())return m.yD.bH()?(S=cs(this.j,S.yD.info.o2,W.yD.info.o2,0),S=m.yD.Lw(m,S)):S=m.yD.r5(m),S;var a=m.X-this.loader.getCurrentTime(),J=!m.range||m.N===0&&m.C===0?0:m.range.length-(m.C+m.N),B=m.yD;this.W0(S,a)&&J===0&&(this.ZQ.isManifestless?B=S.yD:(B=m.startTime+zVP, m.N&&(B+=m.duration),zG(S,B),m=S.C,B=m.yD));B.bH()?(J=this.N,W=cs(this.j,B.info.o2,W.yD.info.o2,a,J.j.length>0&&J.S===0&&this.loader.nA),a=Ye(S),S=m.yD.Lw(m,W),(W=S.B)&&S.R2.length>1&&(a||S.aL.B||S.R2[0].yD!==m.yD?S=m.yD.Lw(m,S.R2[0].N):(a=S.R2[S.R2.length-1],B=a.N/W,!a.B&&B<.4&&(S=m.yD.Lw(m,W-a.N))))):(m.VD<0&&(W=E6(m),W.pr=""+S.N.length,this.loader.isSeeking()&&(W.sk="1"),W.snss=m.V,this.loader.iY("nosq",W)),S=B.r5(m));if(this.policy.Hn)for(m=g.R(S.R2),W=m.next();!W.done;W=m.next())W.value.type= 6;return S}; gW.prototype.W0=function(S,W){if(!Ye(S)||!S.yD.Gm())return!1;var m;(m=this.N.O9)||(m=Ye(S)&&S.yD.Gm()&&S.C.yD.info.o2=W)return a.return();(m=S.C.get(0))&&Ch6(S,m);g.B9(a)})}; var o5P={PhD:0,BQ9:1,d0N:2,jND:3,q3n:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Z3.prototype.decrypt=function(S){var W=this,m,a,J,B,E,y;return g.k(function(Y){switch(Y.C){case 1:if(W.C.length&&!W.C[0].isEncrypted)return Y.return();W.N=!0;W.BA.HU("omd_s");m=new Uint8Array(16);BS()?a=new g.ys(S):J=new g.zs(S);case 2:if(!W.C.length||!W.C[0].isEncrypted){Y.cn(4);break}B=W.C.shift();if(!a){E=J.decrypt(pc(B.buffer),m);Y.cn(5);break}return g.P(Y,a.decrypt(pc(B.buffer),m),6);case 6:E=Y.N;case 5:y=E;for(var G=0;G=4)){var W=z5(this),m=this.xhr;W.rc=m.status;S&&(W.ab=!0);if(m.TY()){var a="onesie.net";W.msg=m.TY()}else m.status>=400?a="onesie.net.badstatus":m.Jn()?this.yu||(a="onesie.response.noplayerresponse"):a=m.status===204?"onesie.net.nocontent":"onesie.net.connect";a?this.fail(new g.a3(a,W)):(this.HU("or_fs"),this.xa.Ik((0,g.X1)(),m.Ry(),0),this.gA(4),this.MS&&this.iY("rqs",W));this.MS&&this.iY("ombre","ok."+ +!a);this.bM=!1;BE(this); Jw(this.BA);if(!this.bB){this.P8.stop();var J;(J=this.Rb)==null||J.stop()}var B;if(S=(B=this.YL)==null?void 0:cKQ(B))for(B=0;B1E3){var S;(S=this.xa)==null||S.nQ((0,g.X1)());S=z5(this);if(this.Y.rd()&&this.xhr instanceof vC){var W=this.xhr;S.xrs=W.xhr.readyState;S.xpb=W.C.totalLength;S.xdc=W.j}this.fail(new g.a3("net.timeout",S))}}else(0,g.X1)()-this.xa.C>1E4&&((W=this.xa)==null||W.nQ((0,g.X1)()),this.f4());this.isComplete()||this.SV.start()}}; g.V.f4=function(){this.bM=!1;if(!BE(this)){var S=z5(this);S.timeout="1";this.fail(new g.a3("onesie.request",S))}}; g.V.fail=function(S){var W=this;S=Bt(S);this.Bl?this.C_.vG(S):(this.WO.reject(S),this.Bl=!0);Jw(this.BA);this.bB||this.P8.stop();this.HU("or_fe");var m,a;(m=this.YL)==null||(a=cKQ(m))==null||a.forEach(function(J){W.iY("pathprobe",J)}); this.gA(5);this.dispose()}; g.V.isComplete=function(){return this.state>=3}; g.V.eW=function(){return this.state===4}; g.V.PV=function(S){var W,m;return this.isComplete()||!!((W=this.q6)==null?0:(m=W.get(S))==null?0:m.C)}; g.V.RK=function(){return!1}; g.V.oo=function(){return this.state===5}; g.V.notifySubscribers=function(S){for(var W=0;W102400&&!this.SW&&(this.HU("or100k"),this.SW=!0);if(S.tL()){var W=S.xl(),m=W.totalLength;this.MS&&this.iY("ombrss","len."+m);this.O3.feed(W)}if(this.q6)for(var a=g.R(this.q6.keys()),J=a.next();!J.done;J=a.next()){var B=J.value;S=void 0;(S=this.q6.get(B))==null||S.FP();this.notifySubscribers(B)}}catch(E){this.fail(E)}}; g.V.gi=function(){return this.xa.requestNumber}; g.V.GE=function(S){return this.zj.get(S)}; g.V.Gc=function(){return!1}; g.V.X5=function(){return"ONESIE"};g.u(YG,g.A);g.V=YG.prototype; g.V.VX=function(S){var W=rI(this.loader)&&S&&S.le!==void 0&&!S.Ja?S.le*1E3+(this.loader.DH()||0):G5(this);if(this.policy.ov){var m=this.Pn;var a=this.s9}else m=pj(this,this.audioTrack),a=pj(this,this.videoTrack);var J=[].concat(g.x(m.I6),g.x(a.I6));Kj(this)&&J.push.apply(J,g.x(this.X));var B=[].concat(g.x(m.qS),g.x(a.qS)),E=this.loader.o8();if(this.policy.Xv&&!this.videoData.isLivePlayback){var y=this.videoData.lengthSeconds*1E3;W>=y&&this.loader.iY("invalidSabrCmt",{cmt:W,vd:y})}var Y,G;y=this.Av; var K=this.C_,T=this.ZQ,p=this.B,q=this.videoData.Hn,F=this.policy,O=this.loader.Dg,X=MXD(this.loader)*1E3,l=(Y=this.O9)==null?void 0:Y.lX;Y=(G=this.O9)==null?void 0:G.vS;var M;G=Number((M=this.N.j)==null?void 0:M.info.itag)||0;var e;M=Number((e=this.N.X)==null?void 0:e.info.itag)||0;e=this.qJ;var d=this.C_.xA();var t=(S==null?0:S.Jp)?S.Jp:this.loader.isSuspended?4:void 0;W={Av:y,C_:K,ZQ:T,I6:J,qS:B,bj:W,nextRequestPolicy:p,CZ:q,RY:F,mO:O,Nt:X,lX:l,vS:Y,qJ:e,Z3X:G,nbY:M,Rl:E,Ez:d,Jp:t};J=this.loader.Nz(); B=xL(J);J&&(W.g9=B);if(S=rI(this.loader)&&(S==null?0:S.Ja)?S.le:this.C_.WL())W.yh=S*1E3;var h;S=this.N;J=S.vn;if(((h=S.RY)==null?0:k3(h))&&!J)for(h=g.R(S.B),B=h.next();!B.done;B=h.next())if(B.value.n3){J=!0;break}h=k3(S.RY)&&!J?[]:eTl(S,S.B);W.yJ=h;h=this.N;k3(h.RY)&&!h.q2?h=[]:(S=PhP(h),S.length===0&&(S=h.V),h=eTl(h,S));W.A2=h;W.wy=Kj(this)?[this.V]:void 0;W.xE=Array.from(pf(this.N.C).keys(),Number);W.yj=this.N.yj();this.policy.E7&&(W.Jl=aW7(this.loader,this.audioTrack),W.zp=aW7(this.loader,this.videoTrack)); h=this.loader.getCurrentTime();m=qv(this,m.I6,h);a=qv(this,a.I6,h);this.Hn=a=Math.min(m,a);if(this.policy.N&&(Kj(this)&&(m=qv(this,this.X,h),this.C_.rd()&&m=B.YE?B.zT:void 0,J={BY:S?Dej(m,S):[],adsConfig:J,rb:B}, h={gvprpro:"v",mt:h.toFixed(3),acpns:((mD=J.BY)==null?void 0:mD.join("_"))||"none",abid:S},m.TV(h),mD=J):(m.TV({gvprp:"ncp",mt:h}),mD=null)}mD&&(W.DJ=mD)}if(this.policy.X){var SO;mD=((SO=this.videoData.N)==null?void 0:SO.containerType)||0;SO=this.videoData.dQ[mD];m=this.loader.isSeeking()&&!this.loader.OC?a+this.loader.DH():NaN;if((mD=this.S)==null)SO=void 0;else if(mD.B!==0){mD.iY("clsdai",{gssinfodisabled:mD.B});SO=7;switch(mD.B){case 1:SO=7;break;case 2:SO=9;break;case 3:SO=10;break;default:mD.iY("clsdai", {unknowndisr:mD.B})}SO=[{SS:SO}]}else{a=[];if(!isNaN(m))if(h=Wrl(mD,m),S=mD.V+1,h.length>0)for(mD.iY("clsdai",{updcids:1,mt:m.toFixed(3),cid:h.join(","),rn:S}),mD.N.clear(),m=g.R(h),h=m.next();!h.done;h=m.next())mD.N.add(h.value);else mD.Z&&(mD.iY("clsdai",{updcids:0,mt:m.toFixed(3),rn:S}),mD.N.clear());m=g.R(mD.N);for(S=m.next();!S.done;S=m.next()){h=mD;if(S=S.value){h=h.C.get(S);S={cuepointId:(h==null?void 0:h.cuepointId)||S};if(h==null?0:h.aB)S.adsConfig=xL(h.aB)||void 0;if(h==null?0:h.AS)S.BY= h.AS;if(h==null?0:h.LK)S.rb=h.LK;SO&&(S.F2=bz(SO.split(";")[0]),S.h$=SO.split(";")[1]||"");S.SS=(h==null?void 0:h.SS)||0;h=S}else h=void 0;h&&a.push(h)}SO=a}W.Si=SO;(SO=this.S)!=null&&(SO.N.clear(),SO.B=0,SO.X=!1)}this.policy.N2&&this.C.length>0&&this.C[0].Lq()&&(W.YQ=this.C[0].Hf());return W}; g.V.aN=function(S,W){this.Z=void 0;dWQ(this);ip7(this,S,W)}; g.V.Xd=function(S){if(this.C.length===0)return!1;var W=this.C[0];return W instanceof y6?S===this.loader.getCurrentTime()*1E3:!(W instanceof wP&&Pg(W.info))&&Math.abs(W.Un()-S)<50}; g.V.M0=function(S,W){this.B=S;this.policy.N&&!S.playbackCookie&&this.loader.iY("sbrnocookie",{rn:W!=null?W:-1});var m;if(this.policy.TdD&&((m=this.S)==null?0:m.X)){var a;this.loader.iY("clsdai",{ignbckoff:W!=null?W:-1,backoff:(a=S.backoffTimeMs)!=null?a:-1})}else this.Z=(0,g.X1)()+(S.backoffTimeMs||0)}; g.V.qr=function(S,W){if(S.action===void 0){var m=this.C_.WL();m!==void 0&&this.loader.iL(m)}else if(S.action!==0||!this.zN)if(S.action===0&&this.policy.xe&&(S.action=2),S.Vy==="sabr.malformed_config"&&this.Y6++<3)this.loader.handleError("sabr.malformed_config",{action:S.action,rn:W,retry:this.Y6},0);else switch(m={},m.reason=S.Vy,m.action=S.action,m.rn=W,S.action){case 1:this.policy.N&&this.tv&&Uv(this.tv,void 0,void 0,m);break;case 0:this.zN=!0;this.videoData.b$()&&this.policy.N&&this.tv&&Uv(this.tv, void 0,void 0,m,!1);this.loader.T2(m);break;case 2:ldj(S.Vy)!=="sabr.config"&&delete m.reason;this.loader.handleError(ldj(S.Vy),m,1);break;case 3:this.policy.lr&&((S=this.ZQ.bY)!=null&&(S.S=!0),this.loader.handleError("sabr.hostfallback",m))}}; g.V.X1=function(S){S&&(this.loader.iY("sabrctxt",{onsbrctxt:S.type,scp:S.scope,dflt:S.sendByDefault}),S.type&&S.sendByDefault&&this.videoData.Hn.add(S.type),S.scope!==2&&(S.type&&this.videoData.sabrContextUpdates.set(S.type,S),this.C_.X1(S)))}; g.V.B8=function(){}; g.V.CU=function(S,W){if(this.loader.OC)this.loader.iY("sdai",{ignSabrSeek:1,smt:S==null?void 0:S.p5,rn:W});else if(S.p5!==void 0&&S.jN){W=S.p5/S.jN;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.Pn||this.policy.kB||this.policy.Km)this.loader.nC.C=!1;if(this.C_.getCurrentTime()!==W){var m={Jw:"sabr_seek",Rs:!0,Ux:!0};S.seekSource&&(m.seekSource=S.seekSource);GG(this.loader,W+.1,m)}}}; g.V.onSnackbarMessage=function(S){this.C_.publish("onSnackbarMessage",S)}; g.V.Do=function(S,W){this.policy.X&&this.loader.Do(S,W)}; g.V.hI=function(S){S.Yw&&S.dk&&cd(this.ZQ,S.Yw,S.dk);this.policy.SX&&(S.dR&&S.mH&&(this.ZQ.I9=S.dR/S.mH),S.gR&&S.Lg&&(this.ZQ.Px=S.gR/S.Lg));ka(this.videoData)&&!this.videoData.ri&&S.dk&&this.loader.Ii(S.dk,1E3);S.Yf!=null&&this.C_.F1(S.Yf);S.rL&&(S=((0,g.X1)()-S.rL)/1E3,this.loader.HR.lO(1,S))}; g.V.Wy=function(S){this.loader.Wy(S)}; g.V.jQ=function(S){this.loader.jQ(S)}; g.V.HZ=function(S){this.loader.HZ(S)}; g.V.AM=function(S){return this.videoData.Hn.has(S)}; g.V.jp=function(S,W,m){this.policy.B&&this.loader.iY("sabrctxtplc",{start:S?S.join("_"):"",stop:W?W.join("_"):"",discard:m?m.join("_"):""});if(S){S=g.R(S);for(var a=S.next();!a.done;a=S.next())this.videoData.Hn.add(a.value)}if(W)for(W=g.R(W),S=W.next();!S.done;S=W.next())S=S.value,this.videoData.Hn.has(S)&&this.videoData.Hn.delete(S);if(m)for(m=g.R(m),W=m.next();!W.done;W=m.next())if(W=W.value,this.videoData.sabrContextUpdates.has(W)&&this.videoData.sabrContextUpdates.delete(W),this.policy.N2&&this.C.length)for(S= g.R(this.C),a=S.next();!a.done;a=S.next())if(a=a.value,!(a instanceof y6)){var J=void 0;((J=a.N4)==null?void 0:J.type)===W&&(a.N4=void 0)}}; g.V.y5=function(){}; g.V.qc=function(S){this.V=S}; g.V.Gh=function(S){this.X=S}; g.V.IV=function(S,W){Vm(this.policy,S,4,W)}; g.V.lS=function(S){if(S==null?0:S.C$)if(S=S.C$.j7){S=g.R(S);for(var W=S.next();!W.done;W=S.next())if(W=W.value,W.formatId){var m=this.ZQ.B.get(oc(W.formatId));m&&m.info&&(m.info.debugInfo=W.debugInfo)}}}; g.V.Nr=function(S){this.hX=!0;this.C_.publish("reloadplayer",S)}; g.V.sy=function(){return this.C_.sy()||""}; g.V.C4=function(){var S=PZl(this);return Math.min(S.nG,S.oD)}; g.V.TV=function(S,W){this.loader.iY(S,W)}; g.V.e7=function(S){bBc(this.loader,Krj(this.M2,S))}; g.V.Ce=function(S,W){this.videoData.Ce(S,W)}; g.V.BR=function(S){this.C_.BR(S)}; g.V.Ru=function(){this.loader.Ru()}; g.V.dG=function(){this.loader.dG()}; g.V.j9=function(){g.A.prototype.j9.call(this);this.B=void 0;ip7(this,!0,"i");this.C=[]};f9G.prototype.getCurrentTime=function(){return this.C_.getCurrentTime()-this.C_.DH()}; ux.prototype.Z=function(S){Hb(S.state)&&sT(this.X)}; ux.prototype.clear=function(){te_(this.X);this.B.clear();this.C.clear();this.V=NaN}; ux.prototype.aV=function(){this.isSeeking=!0;te_(this.X);this.V=NaN;this.N=this.vr};gI.prototype.i$=function(S,W){if(this.j)return Sk6(this,W);if(W=K_(S)){var m=W.C;m&&m.B&&m.C&&(S=S.N.length?S.N[0]:null)&&S.state>=2&&!S.oo()&&S.info.qP===0&&(this.j=S,this.Z=m,this.N=W.info,this.V=this.startTimeSecs=Date.now()/1E3,this.X=this.N.startTime)}return NaN}; gI.prototype.clear=function(){this.N=this.Z=this.j=null;this.C=this.X=this.V=this.startTimeSecs=NaN;this.B=!1};g.u(jR,g.A);jR.prototype.j9=function(){Jcj(this);g.A.prototype.j9.call(this)};var B_K=/[?&]cpn=/;g.u(vE,g.A);vE.prototype.flush=function(){var S={};this.N&&(S.pe=this.N);this.C.length>0&&(S.pt=this.C.join("."));this.C=[];return S}; vE.prototype.stop=function(){var S=this,W,m,a;return g.k(function(J){if(J.C==1)return g.EQ(J,2),g.P(J,(W=S.j)==null?void 0:W.stop(),4);if(J.C!=2)return(m=J.N)&&S.logTrace(m),g.Yp(J,0);a=g.Gg(J);S.N=YkD(a.message);g.B9(J)})}; vE.prototype.logTrace=function(S){this.encoder.reset();this.encoder.add(1);var W=Array.from(S.resources),m=Array.from(S.frames),a=Array.from(S.stacks);S=Array.from(S.samples);this.encoder.add(W.length);W=g.R(W);for(var J=W.next();!J.done;J=W.next()){J=J.value.replace("https://www.youtube.com/s/","");this.encoder.add(J.length);for(var B=0;B=0?S:g.eR(this.provider),this.q2?WWN.has(this.Ud)&&(this.C.size||(this.Ud==="PL"?S>=this.N+30:S<=this.N2+30||S>=this.N+1200&&S<=this.N2+86400))&&(g.Mv(this,S,"vps",[this.Ud]),this.N=S):["PL","B","S"].indexOf(this.Ud)>-1&&(this.C.size||S>=this.N+30)&&(g.Mv(this,S,"vps",[this.Ud]),this.N=S),this.C.size)){this.sequenceNumber===7E3&&g.Ue(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){ix(this,S);var W=this.provider.C_.YA(); W=g.R(W);for(var m=W.next();!m.done;m=W.next())m=m.value,this.iY(m.key,m.value);W=S;m=this.provider.C_.Jo();var a=m.droppedVideoFrames||0,J=m.totalVideoFrames||0,B=a-this.MV,E=J&&!this.ol;a>m.totalVideoFrames||B>5E3?RW7(this,"html5.badframedropcount","df."+a+";tf."+m.totalVideoFrames):(B>0||E)&&g.Mv(this,W,"df",[B]);this.MV=a;this.ol=J;this.S>0&&(g.Mv(this,S,"glf",[this.S]),this.S=0);JH.isActive()&&(S=JH.MW(),Object.keys(S).length>0&&this.iY("profile",S));this.vv&&Is(this,"lwnmow");this.provider.Y.rd()&& this.provider.T("html5_record_now")&&this.iY("now",{wt:(0,g.X1)()});S={};this.provider.videoData.N&&(S.fmt=this.provider.videoData.N.itag,(W=this.provider.videoData.j)&&W.itag!==S.fmt&&(S.afmt=W.itag));S.cpn=this.provider.videoData.clientPlaybackNonce;var y;((y=this.S5)==null?0:y.length)?S.adcpn=this.S5.join(","):this.adCpn&&(S.adcpn=this.adCpn);var Y;((Y=this.lC)==null?0:Y.length)?S.addocid=this.lC.join(","):this.U4.length&&(S.addocid=this.U4);Y=this.provider.videoData;y=Y.b$();Y=Y.latencyClass; (this.provider.Y.ZH().C.QD(T7g)&&y&&Y==="NORMAL"||this.provider.Y.ZH().C.QD(KDZ)&&y&&Y==="LOW"||this.provider.Y.ZH().C.QD(GjZ)&&this.provider.videoData.isDaiEnabled()&&sx(this.provider.videoData))&&(S.adc=1);this.provider.videoData.cotn&&(S.cotn=this.provider.videoData.cotn);S.el=bZ(this.provider.videoData);S.content_v=rO(this.provider.videoData);S.ns=this.provider.Y.N2;S.fexp=G8l(this.provider.Y.experiments).toString();S.cl=(845509917).toString();y=this.provider.videoData.adFormat||this.adFormat; var G;((G=this.No)==null?0:G.length)?S.adformat=this.No.join(","):y&&(S.adformat=y);(G=xa(this.provider.videoData))&&(S.live=G);this.provider.videoData.PD()&&(S.drm=1,this.provider.videoData.X&&(S.drm_system=h_w[this.provider.videoData.X.flavor]||0),this.provider.videoData.drmProduct&&(S.drm_product=this.provider.videoData.drmProduct));K0()&&this.provider.videoData.V&&(S.ctt=this.provider.videoData.V,S.cttype=this.provider.videoData.Tf,this.provider.videoData.mdxEnvironment&&(S.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(S.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.a4&&(S.dai_fallback="1"),sx(this.provider.videoData)&&(S.dai="mv")):this.provider.videoData.VP?S.dai="cs":this.provider.videoData.gm&&(S.dai="disabled");S.seq=this.sequenceNumber++;if(this.provider.videoData.lE){if(G=this.provider.videoData.lE,S&&G)for(G.ns==="3pp"&&(S.ns="3pp"),this.o6.has(G.ns)&&Is(this,"hbps"),G.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= G.shbpslc),y=g.R(Object.keys(G)),Y=y.next();!Y.done;Y=y.next())Y=Y.value,this.dA.has(Y)||(S[Y]=G[Y])}else S.event="streamingstats",S.docid=this.provider.videoData.videoId,S.ei=this.provider.videoData.eventId;this.isEmbargoed&&(S.embargoed="1");Object.assign(S,this.provider.Y.C);(G=S.seq)&&!this.provider.Y.experiments.ZH().C.QD(FDg)&&(y=lTP(this,+G),y=g.Z1(y,duc),y=g.fh(y,4),this.C.set("qclc",[y]));S=g.ex("//"+this.provider.Y.fU+"/api/stats/qoe",S);Y=y="";W=g.R(this.C.entries());for(m=W.next();!m.done;m= W.next())a=g.R(m.value),m=a.next().value,a=a.next().value,J=void 0,(J=a)!=null&&J.join&&(m="&"+m+"="+a.join(","),m.length>100?Y+=m:y+=m);this.provider.Y.experiments.ZH().C.QD(FDg)&&(G=lTP(this,+(G||0)),G.qoePingUrl=S+y+Y,g.qd("qoeClientLoggingContext",G),y+="&dl=1");MdP(this,S+y,Y.replace(/ /g,"%20"))}this.C.clear()}}; g.V.fp=function(S){this.vv=S}; g.V.B7=function(){if(this.provider.videoData.X){var S=this.provider.videoData.X;Is(this,"eme-"+(S.keySystemAccess?"final":EZ(S)?"ms":YL(S)?"ytfp":yg(S)?"safarifp":"nonfinal"))}}; g.V.Bk=P_(49);g.V.l6=function(S){this.isEmbargoed=S}; g.V.tV=P_(26);g.V.hV=P_(32);g.V.onPlaybackRateChange=function(S){var W=g.eR(this.provider);S&&S!==this.eg&&(g.Mv(this,W,"rate",[S]),this.eg=S);this.q2||this.reportStats(W)}; g.V.oa=P_(20);g.V.getPlayerState=function(S){if(g.C(S,128))return"ER";if(g.C(S,2048))return"B";if(g.C(S,512))return"SU";if(g.C(S,16)||g.C(S,32))return"S";if(S.isOrWillBePlaying()&&g.C(S,64))return"B";var W=ma$[lV(S)];g.pt(this.provider.Y)&&W==="B"&&this.provider.C_.getVisibilityState()===3&&(W="SU");W==="B"&&g.C(S,4)&&(W="PB");return W}; g.V.hn=function(S,W){var m=g.eR(this.provider);g.Mv(this,m,"vfi",[S==="A"?"":""+(W!=null?W:0),S])}; g.V.j9=function(){g.A.prototype.j9.call(this);g.O7(this.vn);g.O7(this.Wv)}; g.V.Sp=function(S){this.isOffline=S;g.Mv(this,g.eR(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.V.iY=function(S,W,m){var a=this.VT.indexOf(S)!==-1;a||this.VT.push(S);if(!m||!a){W=typeof W!=="string"?m6(W):W;W=eWP(W);if(!m&&!/^t[.]/.test(W)){var J=g.eR(this.provider)*1E3;W="t."+J.toFixed()+";"+W}Lj(this,"ctmp",S+":"+W);dI(this);return J}}; g.V.rD=function(S,W,m){this.X={KT2:Number(this.iY("glrem",{nst:S.toFixed(),rem:W.toFixed(),ca:+m})),Mq:S,AVN:W,isAd:m}}; g.V.xW=function(S,W,m){g.Mv(this,g.eR(this.provider),"ad_playback",[S,W,m])}; g.V.Kj=function(S,W){var m=g.eR(this.provider)*1E3;Lj(this,"daism","t."+m.toFixed(0)+";smw."+(S*1E3).toFixed(0)+";smo."+(W*1E3).toFixed(0))}; g.V.resume=function(){var S=this;isNaN(this.vn)?UVK(this):this.vn=g.uO(function(){S.reportStats()},1E4)}; var Op={},ma$=(Op[5]="N",Op[-1]="N",Op[3]="B",Op[0]="EN",Op[2]="PA",Op[1]="PL",Op[-1E3]="ER",Op[1E3]="N",Op),WWN=new Set(["PL","B","S"]),lx=[];g.u(tw,g.A);g.V=tw.prototype;g.V.initialize=function(S,W,m){S=S||0;this.policy.C||(W=qZ6(this.C),N_l(this.C_,new Kf(W.video,W.reason)),this.C_.Py(new Kf(W.audio,W.reason)));this.policy.C&&XL(this);this.ZQ.isManifestless&&LxP(this.V);this.S&&cp6(this.S,this.videoTrack.yD);W=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var a=!this.ZQ.isManifestless;this.policy.Qa&&(a=a||this.ZQ.HG);if(!this.policy.vn||this.policy.M2)this.currentTime=a?S:W;this.policy.Pn&&this.seek(this.getCurrentTime(),{}).QB(function(){}); if(this.policy.C){var J;((J=this.j)==null?0:j1G(J,this.sy()||""))&&$VQ(this)&&Aw(this,this.videoTrack)&&Aw(this,this.audioTrack)&&(I9X(this.N,this.j),this.policy.V&&fT6(this))}else this.N2&&(hWj(this,this.videoTrack),hWj(this,this.audioTrack),MBP(this.N2),delete this.N2);m?(Nv(this,!1),g.Cu(this.nT)):(S=this.getCurrentTime()===0,vg(this.V,this.videoTrack,this.videoTrack.yD,S),vg(this.V,this.audioTrack,this.audioTrack.yD,S),this.policy.C&&vaX(this.N,{Jp:1}),this.policy.Pn||this.seek(this.getCurrentTime(), {}).QB(function(){}),this.timing.tick("gv")); (this.ZQ.VU||this.ZQ.jS||this.ZQ.Wm||this.ZQ.k0||this.ZQ.Ga)&&this.C_.Um(this.ZQ)}; g.V.resume=function(){if(this.isSuspended||this.nA){this.j$=this.nA=this.isSuspended=!1;try{this.i$()}catch(S){g.lR(S)}}}; g.V.z8=function(){return!this.policy.aY}; g.V.qv=function(S,W){S=S===void 0?!1:S;W=W===void 0?!1:W;ZBP(this);this.C_.HD()&&(this.Z=NaN);S?(this.policy.O9&&this.iY("loader",{setsmb:1}),this.policy.Hn=!0,this.YB()):(Nv(this,!1),W||this.YB())}; g.V.setAudioTrack=function(S,W,m){m=m===void 0?!1:m;if(!this.TN()){var a=!isNaN(W);m&&a&&(this.audioTrack.N2=Date.now(),this.policy.Ys&&(this.uY=!0));m=this.C_.HD()&&!this.C_.getVideoData().S;if(this.policy.C){var J=this.X.e_(S.id,a);this.C_.Py(J)}else J=this.C,J.N=J.ZQ.C[S.id],J.Z=J.N,J=new G7(J.Z,J.B,a?"t":"m"),this.C_.Py(new Kf(J.audio,J.reason));a?(this.IL=Date.now(),a=this.audioTrack.yD.index.oU(W),this.iY("setAudio",{id:S.id,cmt:W,sq:a}),a>=0&&(S=this.policy.x$?a+1:a,this.policy.C&&this.aN(!0, "mosaic"),Bg(this.audioTrack,S,NaN,NaN),!this.policy.Od&&this.ZQ.isLive&&CN(this.ZQ,S,!1))):m||this.C_.KR()}}; g.V.setPlaybackRate=function(S){S!==this.bY.getPlaybackRate()&&this.bY.setPlaybackRate(S)}; g.V.VI=function(S){var W=this.N.V;this.N.qc(S);this.iY("scfidc",{curr:oc(W),"new":oc(S)});S&&oc(S)!==oc(W)&&(this.aN(!0,"caption change"),this.i$())}; g.V.nD=function(S){this.N.Gh(S)}; g.V.JI=function(S){S.C.info.vD()?this.C_.Py(S):N_l(this.C_,S)}; g.V.e7=function(S){am(S.R2[S.R2.length-1])&&bBc(this,Krj(this.C,S.R2[0].yD))}; g.V.Nz=function(){return this.C_.Nz()}; g.V.o8=function(){return this.C_.o8()}; g.V.HZ=function(S){this.C_.J().rd()&&this.iY("sps",{status:S.X7||""});if(S.X7===1)this.kU=0;else if(S.X7===2||S.X7===3){var W=!1;if(S.X7===3){var m;this.qd=(m=S.wrU)!=null?m:Infinity;this.kU+=1;(W=Mj(this))&&this.xR(!0)}this.C_.MQ(!0,W)}}; g.V.zU=function(){return this.C_.zU()}; g.V.Ef=function(){return this.C_.Ef()}; g.V.iW=function(S){this.C_.iW(S)}; g.V.pDD=function(){var S,W=(S=this.C_.fn())==null?void 0:S.getCurrentTime();W?this.C_.iY("rms",{cta:W}):g.Cu(this.Cn)}; g.V.i$=function(){bx(this);if(this.K_&&G8(this.K_)&&!this.K_.Cy()&&(!this.policy.vn||this.policy.CC||isFinite(this.getCurrentTime()))){var S=rS(this.videoTrack);S=this.policy.PX&&S&&S.Kk();this.ZQ.isManifestless&&this.ZQ.Z&&NA(this.ZQ)?(this.Z=NA(this.ZQ),this.K_.Ab(this.Z)):DB(this.ZQ)&&!S?(S=this.policy.CC?this.currentTime:this.getCurrentTime(),this.policy.vn&&this.policy.M2&&this.iY("ssrDuration",{ld:os(this),lct:this.currentTime,vpd:this.getCurrentTime()},!0),isNaN(this.Z)?(this.Z=S+3600,this.K_.Ab(this.Z)): this.Z<=S+1800&&(this.Z=Math.max(this.Z+1800,S+3600),this.K_.Ab(this.Z))):this.K_.isView||(S=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.Z)||this.Z!==S)&&S>0&&(this.K_.Ab(S),this.Z=S))}if(!this.TN())if(ZB(this.ZQ)&&this.ZQ.oo()){var W=this.ZQ;this.handleError("manifest.net.retryexhausted",W.d2?{rc:W.gr}:{rc:W.gr.toString()},1)}else if(this.policy.C)a:{try{if(rI(this)&&this.yQ){var m=this.N,a=this.yQ,J=a.C;if(J){var B=m.C_.WL(),E=!0;B||(B=m.loader.getCurrentTime(), E=!1);W=B;var y=E?m.C_.iU(W):W;if(m.loader.Hc(y))var Y=!1;else{var G={t:W.toFixed(3),isUtc:E};c:{var K=m.C_.sy();if(K){for(var T=g.R([m.audioTrack,m.videoTrack]),p=T.next();!p.done;p=T.next()){var q=Ck(p.value.yD,m.ZQ.Hv);B=void 0;var F=((B=J)==null?void 0:B.vT(q,K))||[];if(F.length===0||!hRP(new y9(F),y)){var O=!1;break c}}O=!0}else O=!1}if(O)m.loader.iY("prebuffer",Object.assign(G,{inrange:1})),Y=!0;else{if(Pg(J.info)){var X;if(X=E){var l,M;X=(((l=J.info.C)==null?void 0:(M=l.cY)==null?void 0:M.yh)|| 0)===W*1E3}var e=X}else e=!E&&I$(J.info)===W*1E3;e?(m.loader.iY("prebuffer",Object.assign(G,{match:1})),Y=!0):Y=!1}}if(Y){m.C_.HU("ismp_c");m.C.push(J);var d;(d=m.Xn)==null||u0(d,J.info.aL);J.V8();HD(a,!1)}}}V6(this.N);this.ZQ.isManifestless&&this.policy.V&&yl(this.nC);var t;((t=this.K_)==null?0:T8(t))&&this.un();vaX(this.N);if(rI(this)&&this.yQ){var h=this.N,mD=this.yQ,SO=mD.N.le;if(SO!==void 0&&SO>=0){h.C_.HU("ismp_a");var aK=mD.N;var EP=aK.le;if(EP===void 0)var qP=!1;else{var JG=aK.Ja?h.C_.iU(EP): EP,jO;if(jO=!h.loader.Hc(JG)&&MeO(h,h.d2)){var D6=h.C_.getCurrentTime()*1E3,zg=UWl(h,D6),kX=zg.OP;jO=zg.TD>=7E3&&kX>=7E3}qP=jO}if(qP){var C6=XBP(h,aK);h.policy.Ul>0&&h.d2.LR++;C6&&(mD.C!==C6&&(O9P(mD),mD.C=C6,mD.N=XK),h.C_.HU("ismp_rc"))}}}}catch(IK){g.Ue(IK);W=IK;if(W.message.includes("changeType")){this.iY("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)}BkP(this);g.Cu(this.Y6)}else if(!this.ZQ.N|| !GJP(this.videoTrack)&&!GJP(this.audioTrack)||(this.videoTrack.j||this.audioTrack.j)&&this.policy.IL?m=!1:(this.YB(),this.C_.seekTo(Infinity,{Jw:"checkLoaderTracksSync",Ii:!0}),m=!0),!m){bx(this);this.ZQ.isManifestless&&(KxO(this.videoTrack),KxO(this.audioTrack),yl(this.nC),(m=K_(this.videoTrack))&&m.C&&(m=m.C.B&&!this.policy.Bm,this.iY(m===this.policy.S.AY?"strm":"strmbug",{strm:m,sfmp4:this.policy.S.AY,dfs:this.policy.Bm},!0)));if(this.K_)this.un();else if(this.policy.j){m=!1;if(this.policy.ke)for(a= g.R([this.videoTrack,this.audioTrack]),J=a.next();!J.done;J=a.next()){Y=J.value;for(J=K_(Y);J&&Y.iR()!==rS(Y);J=K_(Y))Y.I$(J);m=m||!!J}else(W=K_(this.videoTrack))&&this.videoTrack.I$(W),(E=K_(this.audioTrack))&&this.audioTrack.I$(E);Wg(this.videoTrack)&&Wg(this.audioTrack)||(W||E||m)&&F3(this)}Zk(this);vg(this.V,this.videoTrack,this.videoTrack.yD,!1);vg(this.V,this.audioTrack,this.audioTrack.yD,!1);if(!this.policy.CG&&(W=this.videoTrack,a=this.audioTrack,(!this.K_||G8(this.K_)&&!this.policy.fu)&& !this.nC.isSeeking()&&(this.policy.C||Ye(W)&&W.yD.Gm()&&this.C.N2)))a:{if(E=this.getCurrentTime(),m=this.bY,a=cs(m,W.yD.info.o2,a.yD.info.o2,0),J=oQ(m.Av)+a/Ci(m.Av),E+=Math.max(J,J+m.policy.kd-a/W.yD.info.o2),W.N.length){if(W.N[0].info.R2[0].startTime<=E)break a;JP(W)}m=W.B;for(a=m.N.length-1;a>=0;a--)m.N[a].info.startTime>E&&m.N.pop();E5O(W);W.C&&E5&&G.bY.shift();W=W.VD;var K;if((K=this.C_.getVideoData())==null?0:K.enableServerStitchedDai)K=Fx6(this.audioTrack,W),m=Fx6(this.videoTrack,W),K!==0&&m!==0&&K!==m&& this.handleError("ssdai.avsync",{sq:W,a:K,v:m},0)}}}; g.V.SZ=function(S,W,m,a){S.info.video&&this.B.SZ(W,m,a)}; g.V.zR=function(S){this.C.zR(S)}; g.V.i_=function(){return this.tv}; g.V.ql=function(){return this.videoTrack.V||this.audioTrack.V}; g.V.seek=function(S,W){if(this.TN())return eV();if(this.ql())return eV("seeking to head");if(this.policy.Pn&&!isFinite(S))return vEl(this.nC),g.Rz(Infinity);bx(this);qaO(this,S,!1,W.seekSource);XL(this);this.policy.C||Zk(this,S);this.K_&&this.K_.C&&this.K_.N&&!this.C_.getVideoData().fl&&(this.K_.C.isLocked()||this.K_.N.isLocked())&&this.C_.KR({reattachOnLockedBuffer:1,vsb:""+this.K_.N.isLocked(),asb:""+this.K_.C.isLocked()});var m=this.getCurrentTime(),a=this.nC.seek(S,W);if(!this.policy.vn||this.policy.M2)this.currentTime= a;yk(this.B,S,m,this.policy.cM&&!W.Rs);F3(this);return g.Rz(a)}; g.V.Xd=function(S){return this.policy.C&&this.N.Xd(S)}; g.V.AM=function(S){return this.N.AM(S)}; g.V.aN=function(S,W){this.N.aN(S,W)}; g.V.getCurrentTime=function(){if(this.policy.vn){var S=this.DH()||0;return this.C_.getCurrentTime(!0)-S}return this.currentTime}; g.V.MC=function(){return this.audioTrack.yD.info}; g.V.ZW=function(){return this.videoTrack.yD.info}; g.V.Vo=function(){return this.audioTrack.yD.info.p_}; g.V.O0=function(){return this.videoTrack.yD.info.p_}; g.V.j9=function(){try{this.qv(),JP(this.audioTrack),JP(this.videoTrack),Gl(this.audioTrack),Gl(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.A.prototype.j9.call(this)}catch(S){g.lR(S)}}; g.V.handleError=function(S,W,m){m=m===void 0?0:m;var a=J3(m);S==="fmt.unplayable"&&this.ZQ.isLive&&(this.policy.pR=!1,rn(this.ZQ));W=new g.a3(S,W,m);g.xp(this);m6(W.details);this.C_.handleError(W);S!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&S!=="fmt.unparseable"&&a&&this.dispose()}; g.V.Yb=function(){var S=rS(this.audioTrack),W=rS(this.videoTrack);S={lct:this.getCurrentTime().toFixed(3),lsk:this.nC.isSeeking(),lmf:this.C.C.isLocked(),lbw:qpK(this.schedule).toFixed(3),lhd:oQ(this.schedule).toFixed(3),lst:((this.schedule.Z.hO()||0)*1E9).toFixed(3),laa:S?S.GC():"",lva:W?W.GC():"",lar:this.audioTrack.C?this.audioTrack.C.GC():"",lvr:this.videoTrack.C?this.videoTrack.C.GC():"",laq:""+mk(this.audioTrack),lvq:""+mk(this.videoTrack)};this.K_&&!this.K_.U2()&&this.K_.C&&this.K_.N&&(S.lab= r1(this.K_.C.Ni()),S.lvb=r1(this.K_.N.Ni()));this.vn&&(S.lapt=((0,g.X1)()-this.vn).toFixed(0),S.lapr=o8c(this));this.s9&&(S.lapmabht=((0,g.X1)()-this.s9).toFixed(0),S.lapmabh=Ez(this,this.audioTrack).toFixed(0));this.O9&&(S.lapmvbht=((0,g.X1)()-this.O9).toFixed(0),S.lapmvbh=Ez(this,this.videoTrack).toFixed(0));this.Hn&&(S.lapsdai=((0,g.X1)()-this.Hn).toFixed(0));return S}; g.V.YB=function(){try{this.policy.C&&this.N.aN(!1,"pending"),this.audioTrack.YB(),this.videoTrack.YB()}catch(S){g.lR(S)}this.policy.j=""}; g.V.Hc=function(S){return this.videoTrack&&this.audioTrack?this.videoTrack.Hc(S)&&this.audioTrack.Hc(S):!0}; g.V.kA=function(){return rk(this.bY)}; g.V.iY=function(S,W,m){this.C_.iY(S,W,m===void 0?!1:m)}; g.V.sy=function(){return this.C_.sy()}; g.V.Ii=function(S,W){S/=W;isNaN(this.timestampOffset)&&Kvc(this,S-Math.min(S,this.policy.Kz));return(S-this.timestampOffset)*W}; g.V.DH=function(){return this.timestampOffset}; g.V.isSeeking=function(){return this.nC.isSeeking()}; g.V.Us=function(){this.B.Us()}; g.V.fR=function(S,W,m){W=W===void 0?!1:W;m=m===void 0?{}:m;this.policy.C?this.X.fR(S,W,m):this.C.fR(S,W,m)}; g.V.PA=function(S,W){if(this.policy.N&&(this.OC||this.isSeeking()))return this.iY("sdai",{ignoreSkip:"1",isSkip:this.OC,isSeek:this.isSeeking(),t:S.toFixed(3)}),!1;var m=this.policy.N&&(this.policy.X||this.policy.vY),a=this.videoTrack.yD.index.oU(S),J=!1;if(m){var B;if(J=!((B=this.q2)==null||!B.YU(S,a,this.timestampOffset)))if(Jr(this,S,S,a),this.tv){var E;(E=this.tv)==null||E.YU(S,a)}}else this.tv&&(J=!!this.B.PA(S,this.tv));if(!J)return this.handleError("ad.skipfailed",{dec:!!this.tv,t:S.toFixed(3), sq:a}),!1;this.policy.N&&(this.iY("sdai",{skipAdStd:"1"}),this.OC=!0);if(this.policy.mQ){var y;(y=this.Kn)==null||y.clear()}Kvc(this,this.timestampOffset-W);F3(this);this.policy.N&&(rn(this.ZQ),Gl(this.audioTrack),Gl(this.videoTrack),this.YB());return!0}; g.V.getManifest=function(){return this.ZQ}; g.V.isOffline=function(){return!!this.C_.getVideoData().cotn}; g.V.l7=function(S,W){this.C_.l7(S,W)}; g.V.Cu=function(S,W){if(this.policy.C)qaO(this,S,!0,W),this.N.aN(!0,"utc"),this.i$();else if(W=this.C_.getVideoData().T1){var m=this.V;m.Hr=S;m.T1=W;Ly(this)}}; g.V.iL=function(S){this.videoTrack.V=!1;this.audioTrack.V=!1;this.nC.C=!1;this.C_.iL(S)}; g.V.VZ=function(S){this.nC.VZ(S-this.DH())}; g.V.WR=function(){this.C_.WR()}; g.V.xR=function(S){S!==this.policy.RU&&((this.policy.RU=S)||this.i$())}; g.V.KR=function(S){this.C_.KR(S)}; g.V.fp=function(S){this.C_.fp(S)}; g.V.q_=function(S,W,m){var a;(a=this.q2)==null||a.q_(S,W,m);this.policy.X&&(this.N.Z=void 0,this.i$())}; g.V.FB=function(S){var W;(W=this.q2)==null||W.FB(S)}; g.V.jQ=function(S){this.policy.g2&&this.C_.getVideoData().Hv()&&!S.ZZ&&(this.iY("liveUmpMissing",{segmentNum:S.P4,headerId:S.aX,startMs:S.startMs,durationMs:S.durationMs}),this.policy.g2=!1)}; g.V.Do=function(S,W){if(this.policy.X){var m,a=(m=S.Lc)==null?void 0:m[0];m=hHD(this.C_.getVideoData());var J;(J=this.q2)==null||J.Do(S,W,this.tv||void 0,m,this.policy.Qd?this.ZQ:void 0);var B,E,y;this.iY("clidai",{onqlst:1,len:((B=S.Lc)==null?void 0:B.length)||0,rn:W,evt:wd6(a==null?void 0:(E=a.je)==null?void 0:E.event),cid:(a==null?void 0:(y=a.je)==null?void 0:y.identifier)||"null",sq:(a==null?void 0:a.P4)||-1,trk:(a==null?void 0:a.trackType)||"null",disr:m})}}; g.V.Wy=function(S){if(this.policy.g2){var W;(W=this.tv)==null||W.Wy(S)}}; g.V.prefetchKeyPlay=function(S,W){var m=this;if(rI(this)){var a=Wl6().legacyApplicationQuality==="limited-memory";this.policy.Yk&&a||(this.yQ||(this.yQ=new vD(function(J){m.C_.HU(J)}),g.Z(this,this.yQ)),gL_(this.yQ,{le:S, Ja:W,Jp:2}),this.i$())}}; g.V.dG=function(){this.g2++}; g.V.Ru=function(){this.g2=0};g.u(Cj,g.au);g.u(cE,Cj);cE.prototype.V=function(S,W){if(S&&W){var m=Number(Iv(S,"cpi"))*1+1;isNaN(m)||m<=0||mthis.B&&(this.B=m,g.UC(this.C)||(this.C={},this.j.stop(),this.N.stop())),this.C[W]=S,g.Cu(this.N))}}; cE.prototype.X=function(){for(var S=g.R(Object.keys(this.C)),W=S.next();!W.done;W=S.next()){var m=W.value;W=this.publish;for(var a=this.B,J=g.Xd(this.C[m]),B=[],E=g.R(J[6].split("&")),y=E.next();!y.done;y=E.next())y=y.value,y.indexOf("cpi=")===0?B.push("cpi="+a.toString()):y.indexOf("ek=")===0?B.push("ek="+g.hx(m)):B.push(y);J[6]="?"+B.join("&");m="skd://"+J.slice(2).join("");J=m.length*2;a=new Uint8Array(J+4);a[0]=J%256;a[1]=(J-a[0])/256;for(J=0;J0)for(var m=g.R(this.C),a=m.next();!a.done;a=m.next())if(W===a.value.info.cryptoPeriodIndex){W=!0;break a}W=!1}if(!W){W=(0,g.X1)();a:{m=S.cryptoPeriodIndex;if(!isNaN(m)){a=g.R(this.B.values());for(var J=a.next();!J.done;J=a.next())if(Math.abs(J.value.cryptoPeriodIndex-m)<=1){m=!0;break a}}m=!1}m?(m=S.C,m=Math.max(0,Math.random()*((isNaN(m)?120:m)-30))*1E3):m=0;this.publish("log_qoe",{wvagt:"delay."+m,cpi:S.cryptoPeriodIndex,reqlen:this.C.length}); m<=0?Fvc(this,S):(this.C.push({time:W+m,info:S}),g.Cu(this.N,m))}}; Dk.prototype.j9=function(){this.C=[];Cj.prototype.j9.call(this)};var j1={},Oic=(j1.DRM_TRACK_TYPE_AUDIO="AUDIO",j1.DRM_TRACK_TYPE_SD="SD",j1.DRM_TRACK_TYPE_HD="HD",j1.DRM_TRACK_TYPE_UHD1="UHD1",j1);g.u(u4j,g.A);g.u(QQG,g.au);g.V=QQG.prototype;g.V.uh=function(S){var W=this;if(!(this.TN()||S.size<=0)){var m={};S.forEach(function(a,J){var B=zW(W.N)?J:a;J=new Uint8Array(zW(W.N)?a:J);zW(W.N)&&$nj(J);a=g.fh(J,4);$nj(J);J=g.fh(J,4);W.C[a]?W.C[a].status=B:W.C[J]?W.C[J].status=B:W.C[a]={type:"",status:B};fWQ(W,W.C[a].type,m)}); IW6(this,",");wI(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.V.error=function(S,W,m,a){this.TN()||(this.publish("licenseerror",S,W,m,a),S==="drm.provision"&&(S=(Date.now()-this.V)/1E3,this.V=NaN,this.publish("ctmp","provf",{et:S.toFixed(3)})));J3(W)&&this.dispose()}; g.V.shouldRetry=function(S,W){return!S&&this.requestNumber===W.requestNumber}; g.V.j9=function(){this.C={};g.au.prototype.j9.call(this)}; g.V.Yb=function(){var S={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.Xn,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(S.keyStatuses=this.C);return S}; g.V.getInfo=function(){var S=this.j.join();if(Sg(this)){var W=new Set,m;for(m in this.C)this.C[m].status!=="usable"&&W.add(this.C[m].type);S+="/UKS."+Array.from(W)}return S+="/"+this.cryptoPeriodIndex}; g.V.XD=function(){return this.url};g.u(mH,g.A);g.V=mH.prototype;g.V.G0=function(S){if(this.X){var W=S.messageType||"license-request";this.X(new Uint8Array(S.message),W)}}; g.V.uh=function(){this.Z&&this.Z(this.C.keyStatuses)}; g.V.onClosed=function(){this.TN()||g.Ni("xboxone")&&this.B&&this.B("closedShouldNotRetry")}; g.V.Vf=function(S){this.X&&this.X(S.message,"license-request")}; g.V.nS=function(S){if(this.B){if(this.N){var W=this.N.error.code;S=this.N.error.systemCode}else W=S.errorCode,S=S.systemCode;this.B("t.prefixedKeyError;c."+W+";sc."+S,W,S)}}; g.V.sD=function(){this.V&&this.V()}; g.V.update=function(S){var W=this;if(this.C)return this.C.update(S).then(null,z4(function(m){tiD(W,"t.update",m)})); this.N?this.N.update(S):this.element.addKey?this.element.addKey(this.S.keySystem,S,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,S,this.initData,this.sessionId);return du()}; g.V.j9=function(){this.C&&(this.bY?this.C.close().catch(g.Ue):this.C.close());this.element=null;g.A.prototype.j9.call(this)};g.u(aB,g.A);g.V=aB.prototype;g.V.setServerCertificate=function(){return this.N.setServerCertificate?this.C.flavor==="widevine"&&this.C.xC?this.N.setServerCertificate(this.C.xC):GW(this.C)&&this.C.mp?this.N.setServerCertificate(this.C.mp):null:null}; g.V.createSession=function(S,W){var m=S.initData;if(this.C.keySystemAccess){W&&W("createsession");var a=this.N.createSession();YL(this.C)?m=NkD(m,this.C.mp):GW(this.C)&&(m=ps7(m)||new Uint8Array(0));W&&W("genreq");S=a.generateRequest(S.contentType,m);var J=new mH(null,null,null,a,null,this.Z);S.then(function(){W&&W("genreqsuccess")},z4(function(E){tiD(J,"t.generateRequest",E)})); return J}if(EZ(this.C))return oIc(this,m);if(yg(this.C))return biO(this,m);if((a=this.element)==null?0:a.generateKeyRequest)this.element.generateKeyRequest(this.C.keySystem,m);else{var B;(B=this.element)==null||B.webkitGenerateKeyRequest(this.C.keySystem,m)}return this.j=new mH(this.element,this.C,m,null,null,this.Z)}; g.V.Wu=function(S){var W=r5c(this,S);W&&W.Vf(S)}; g.V.t5=function(S){var W=r5c(this,S);W&&W.nS(S)}; g.V.Xj=function(S){var W=r5c(this,S);W&&W.sD(S)}; g.V.getMetrics=function(){var S=null;if(this.N&&this.N.getMetrics)try{S=this.N.getMetrics()}catch(W){}return S}; g.V.j9=function(){this.B=this.N=null;var S;(S=this.j)==null||S.dispose();S=g.R(Object.values(this.V));for(var W=S.next();!W.done;W=S.next())W.value.dispose();this.V={};g.A.prototype.j9.call(this);delete this.element};g.V=JI.prototype;g.V.get=function(S){S=this.findIndex(S);return S!==-1?this.values[S]:null}; g.V.remove=function(S){S=this.findIndex(S);S!==-1&&(this.keys.splice(S,1),this.values.splice(S,1))}; g.V.removeAll=function(){this.keys=[];this.values=[]}; g.V.set=function(S,W){var m=this.findIndex(S);m!==-1?this.values[m]=W:(this.keys.push(S),this.values.push(W))}; g.V.findIndex=function(S){return g.bw(this.keys,function(W){return g.p$(S,W)})};g.u(DnQ,g.au);g.V=DnQ.prototype;g.V.oa_=function(S){this.XK({onecpt:1});S.initData&&WZQ(this,new Uint8Array(S.initData),S.initDataType)}; g.V.ZPD=function(S){this.XK({onndky:1});WZQ(this,S.initData,S.contentType)}; g.V.XB=function(S){this.XK({onneedkeyinfo:1});this.Y.T("html5_eme_loader_sync")&&(this.Z.get(S.initData)||this.Z.set(S.initData,S));SzQ(this,S)}; g.V.Wb=function(S){this.B.push(S);BA(this)}; g.V.createSession=function(S){var W=aiQ(this)?xT7(S):g.fh(S.initData);this.N.get(W);this.Xn=!0;S=new QQG(this.videoData,this.Y,S,this.drmSessionId);this.N.set(W,S);S.subscribe("ctmp",this.qe,this);S.subscribe("keystatuseschange",this.uh,this);S.subscribe("licenseerror",this.FC,this);S.subscribe("newlicense",this.W$,this);S.subscribe("newsession",this.H$,this);S.subscribe("sessionready",this.D9,this);S.subscribe("fairplay_next_need_key_info",this.P$,this);this.Y.T("html5_enable_vp9_fairplay")&&S.subscribe("qualitychange", this.Ob,this);S.subscribe("sabrlicenseconstraint",this.kYD,this);lW6(S,this.j)}; g.V.W$=function(S){this.TN()||(this.XK({onnelcswhb:1}),S&&!this.heartbeatParams&&(this.heartbeatParams=S,this.publish("heartbeatparams",S)))}; g.V.H$=function(){this.TN()||(this.XK({newlcssn:1}),this.B.shift(),this.Xn=!1,BA(this))}; g.V.D9=function(){if(EZ(this.C)&&(this.XK({onsnrdy:1}),this.Hn--,this.Hn===0)){var S=this.N2,W,m;(W=S.element)==null||(m=W.msSetMediaKeys)==null||m.call(W,S.B)}}; g.V.uh=function(S){if(!this.TN()){this.s9||(this.s9=!0,this.Y.rd()&&JPQ(this));this.XK({onksch:1});var W=this.Ob;if(!Sg(S)&&g.ND&&S.N.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var m="large";else{m=[];var a=!0;if(Sg(S))for(var J=g.R(Object.keys(S.C)),B=J.next();!B.done;B=J.next())B=B.value,S.C[B].status==="usable"&&m.push(S.C[B].type),S.C[B].status!=="unknown"&&(a=!1);if(!Sg(S)||a)m=S.j;m=dnD(m)}W.call(this,m);if(S.Y.T("html5_enable_vp9_fairplay")&&GW(S.N))W=S.bY; else{if(!Sg(S))for(W={},m=g.R(S.j),a=m.next();!a.done;a=m.next())fWQ(S,a.value,W);W=S.authorizedFormats}this.videoData.authorizedFormats=W;this.publish("keystatuseschange",S)}}; g.V.qe=function(S,W){this.TN()||this.publish("ctmp",S,W)}; g.V.P$=function(S,W){this.TN()||this.publish("fairplay_next_need_key_info",S,W)}; g.V.FC=function(S,W,m,a){this.TN()||(this.videoData.T("html5_log_drm_metrics_on_error")&&JPQ(this),this.publish("licenseerror",S,W,m,a))}; g.V.WW=function(){return this.S}; g.V.Ob=function(S){var W=g.dz("auto",S,!1,"l");if(this.videoData.wf){if(this.S.equals(W))return}else if(MEP(this.S,S))return;this.S=W;this.publish("qualitychange");this.XK({updtlq:S})}; g.V.kYD=function(S){this.videoData.sabrLicenseConstraint=S}; g.V.j9=function(){var S,W;this.C.keySystemAccess&&this.element&&!((S=this.mediaElement)==null?0:(W=S.C_)==null?0:W.HD())&&(this.q2?this.element.setMediaKeys(null).catch(g.Ue):this.element.setMediaKeys(null));this.element=null;this.B=[];S=g.R(this.N.values());for(W=S.next();!W.done;W=S.next())W=W.value,W.unsubscribe("ctmp",this.qe,this),W.unsubscribe("keystatuseschange",this.uh,this),W.unsubscribe("licenseerror",this.FC,this),W.unsubscribe("newlicense",this.W$,this),W.unsubscribe("newsession",this.H$, this),W.unsubscribe("sessionready",this.D9,this),W.unsubscribe("fairplay_next_need_key_info",this.P$,this),this.Y.T("html5_enable_vp9_fairplay")&&W.unsubscribe("qualitychange",this.Ob,this),W.dispose();this.N.clear();this.V.removeAll();this.Z.removeAll();this.heartbeatParams=null;g.au.prototype.j9.call(this)}; g.V.Yb=function(){for(var S={systemInfo:this.C.Yb(),sessions:[]},W=g.R(this.N.values()),m=W.next();!m.done;m=W.next())S.sessions.push(m.value.Yb());return S}; g.V.getInfo=function(){return this.N.size<=0?"no session":""+this.N.values().next().value.getInfo()+(this.X?"/KR":"")}; g.V.XK=function(S,W){W=W===void 0?!1:W;this.TN()||(m6(S),(this.Y.rd()||W)&&this.publish("ctmp","drmlog",S))};var yPP=!1,GGc=!1;g.u(TPO,g.A);g.V=TPO.prototype;g.V.P3=function(){return!!this.W9}; g.V.df=function(){return this.N}; g.V.handleError=function(S){var W=this;sJl(this,S);var m;if(m=!((S.errorCode==="html5.invalidstate"||S.errorCode==="fmt.unplayable"||S.errorCode==="fmt.unparseable")&&n3X(this,S.errorCode,S.details)))if(m=!jJ_(this,S))this.videoData.errorDetail==="7"&&g.pt(this.w2)?(O_7(this,"innertube_player_reload_required"),m=!0):m=!1,m=!m;if(m)if(this.w2.N2!=="yt"&&g3O(this,S)&&this.videoData.Od&&(0,g.X1)()/1E3>this.videoData.Od&&zR(this.videoData)&&(m=Object.assign({e:S.errorCode},S.details),m.stalesigexp="1", m.expire=Math.round(this.videoData.Od*1E3),m.init=Math.round(this.videoData.gP),m.now=Math.round((0,g.X1)()),S=new g.a3(S.errorCode,m,2),this.C_.QP(S.errorCode,2,"SIGNATURE_EXPIRED",m6(S.details))),J3(S.severity)){var a;m=(a=this.C_.loader)==null?void 0:a.C.C;if(this.w2.T("html5_use_network_error_code_enums"))if(uEP(S)&&m&&m.isLocked())var J="FORMAT_UNAVAILABLE";else if(this.w2.V||S.errorCode!=="auth"||S.details.rc!==429)S.errorCode==="ump.spsrejectfailure"&&(J="HTML5_SPS_UMP_STATUS_REJECTED");else{J= "TOO_MANY_REQUESTS";var B="6"}else uEP(S)&&m&&m.isLocked()?J="FORMAT_UNAVAILABLE":this.w2.V||S.errorCode!=="auth"||S.details.rc!=="429"?S.errorCode==="ump.spsrejectfailure"&&(J="HTML5_SPS_UMP_STATUS_REJECTED"):(J="TOO_MANY_REQUESTS",B="6");this.C_.QP(S.errorCode,S.severity,J,m6(S.details),B)}else this.C_.publish("nonfatalerror",S),a=/^pp/.test(this.videoData.clientPlaybackNonce),this.vG(S.errorCode,S.details),a&&S.errorCode==="manifest.net.connect"&&(S="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.X1)(),Nn(S,"manifest",function(E){W.V=!0;W.iY("pathprobe",E)},function(E){W.vG(E.errorCode,E.details)}))}; g.V.iY=function(S,W){this.C_.zV.iY(S,W)}; g.V.vG=function(S,W){W=m6(W);this.C_.zV.vG(S,W)};zX.prototype.ma=function(S){var W=H_O(this);if(!S)return{b5:mK,g$:mK,GW:mK,Sb:mK,UP:mK,W7:mK,gI:W};var m=mK;if(Ph(W)||this.T("html5_perf_cap_override_sticky"))m=PNO(this,S);return{b5:m,g$:eGc(this,S),GW:LZj(this,S),Sb:fic(this,S.videoData),UP:kGl(this,S.videoData,S),W7:MvD(this,S),gI:W}}; zX.prototype.z3=function(S){if(g.pt(this.Y)&&ch(this.Y.X,DF.HEIGHT))var W=S.C.videoInfos[0].video.qualityOrdinal;else{var m=this.DG(!!S.C.C);VI(S.videoData)||Sd(S.videoData);S=S.C.videoInfos;if(S.length){var a=.85,J=S[0].video;J.projectionType!=="MESH"&&J.projectionType!=="EQUIRECTANGULAR"&&J.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||hJ||(a=.45);J=g.Db(this.Y.experiments,"html5_viewport_undersend_maximum");for(var B=0;B=0,stateAtSend:W,joinLatencySecs:B,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:a,playerCanaryStage:J,isAd:this.provider.videoData.isAd(),liveMode:m,hasDrm:!!g.R1(this.provider.videoData),isGapless:this.provider.videoData.Z,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:eX(this.provider.videoData)};S||g.qd("html5PlayerHealthEvent",W);this.B=!0;this.dispose()}}; Yt.prototype.j9=function(){this.B||this.send();window.removeEventListener("error",this.SH);window.removeEventListener("unhandledrejection",this.SH);g.A.prototype.j9.call(this)}; var aN9=/\bnet\b/;Z_K.prototype.update=function(){if(this.S){var S=this.cD()||0,W=g.eR(this.provider);S>=this.provider.C_.getDuration()-.1&&(this.previouslyEnded=!0);if(S!==this.N||rPl(this,S,W)){var m;if(!(m=SW-this.mV+2||rPl(this,S,W))){m=this.provider.C_.getVolume();var a=m!==this.N2,J=this.provider.C_.isMuted()?1:0;J!==this.bY?(this.bY=J,m=!0):(!a||this.j>=0||(this.N2=m,this.j=W),m=W-this.j,this.j>=0&&m>2?(this.j=-1,m=!0):m=!1)}m&&(KT(this),this.B=S);this.mV=W;this.N=S}}}; Z_K.prototype.cD=function(){var S=this.provider.C_.cD();return sx(this.provider.videoData)?S+this.provider.C_.DH():S};CNc.prototype.send=function(S){var W=this;if(!this.Y6){var m=DM7(this),a=g.ex(this.uri,m);this.Y.T("vss_through_gel_double")&&wCG(a);this.Xn&&!this.Y.T("html5_simplify_pings")?JrP(this,a):cPj(this,S).then(function(J){if(W.Kn){J=J||{};J.method="POST";var B=BS6(W);B&&(J.postBody=B)}W.Xn&&(J=J||{},J.method="POST",J.postParams={atr:W.attestationResponse});X3(a,J,{token:W.vn,vX:W.vv,mdxEnvironment:W.mdxEnvironment},W.Y,S,W.Pn,W.isFinal&&W.Mi||W.s9||W.B&&W.ov)}); this.Y6=!0}}; CNc.prototype.N=function(S){S===void 0&&(S=NaN);return Number(S.toFixed(3)).toString()}; var Qp={},mXj=(Qp.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Qp.LIVING_ROOM_APP_MODE_MAIN=1,Qp.LIVING_ROOM_APP_MODE_KIDS=2,Qp.LIVING_ROOM_APP_MODE_MUSIC=3,Qp.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Qp.LIVING_ROOM_APP_MODE_GAMING=5,Qp),Xf={},WnP=(Xf.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Xf.EMBEDDED_PLAYER_MODE_DEFAULT=1,Xf.EMBEDDED_PLAYER_MODE_PFP=2,Xf.EMBEDDED_PLAYER_MODE_PFL=3,Xf);g.u(qQ,g.A);g.V=qQ.prototype; g.V.oi=function(){if(!this.B){this.provider.videoData.jf===16623&&g.Ue(Error("Playback for EmbedPage"));var S=nT(this,"playback");this.S=E6G(this);o3j(this.C);S.Z=FJ(this);this.N>0&&(S.C-=this.N);S.send();if(this.provider.videoData.bb){S=this.provider.Y;var W=this.provider.videoData,m={html5:"1",video_id:W.videoId,cpn:W.clientPlaybackNonce,ei:W.eventId,ptk:W.bb,oid:W.oF,ptchn:W.Me,pltype:W.Ct,content_v:rO(W)};W.G4&&Object.assign(m,{m:W.G4});S=g.ex(S.dE+"ptracking",m);Kn6(this,S)}this.provider.videoData.tD|| (TSP(this),qEc(this));this.B=!0;S=this.C;S.N=S.cD();S.mV=g.eR(S.provider);!(S.B===0&&S.N<5)&&S.N-S.B>2&&(S.B=S.N);S.S=!0}}; g.V.onProgress=function(){this.C.update();YEP(this)&&(TSP(this),qEc(this))}; g.V.j9=function(){g.A.prototype.j9.call(this);VV(this);b_K(this.C)}; g.V.Yb=function(){return DM7(nT(this,"playback"))}; g.V.ju=function(S){var W=nT(this,"engage");W.q2=S;return SEP(W,s5O(this.provider))};n6l.prototype.isEmpty=function(){return this.endTime===this.startTime};uY.prototype.T=function(S){return this.Y.T(S)}; uY.prototype.getCurrentTime=function(){return this.C_.getCurrentTime()}; uY.prototype.cD=function(){return this.C_.cD()}; var uKG={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.u(g.gK,g.A);g.V=g.gK.prototype;g.V.oi=function(){this.C&&this.C.oi();this.N&&this.N.oi()}; g.V.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.vr){var S;(S=this.B.get(this.vr))==null||S.onProgress()}else if(this.C)this.C.onProgress()}; g.V.l6=function(S){this.qoe&&this.qoe.l6(S)}; g.V.tV=P_(25);g.V.hV=P_(31);g.V.Kj=function(S,W){this.qoe&&this.qoe.Kj(S,W)}; g.V.Ie=function(){if(this.provider.videoData.enableServerStitchedDai&&this.vr){var S;(S=this.B.get(this.vr))!=null&&KT(S.C)}else this.C&&KT(this.C.C)}; g.V.vG=function(S,W){this.qoe&&RW7(this.qoe,S,W);if(this.N)this.N.onError(S)}; g.V.hn=function(S,W){switch(S){case "M":var m;(m=this.qoe)==null||m.hn(S,W);break;case "A":var a;(a=this.qoe)==null||a.hn(S)}}; g.V.onPlaybackRateChange=function(S){if(this.qoe)this.qoe.onPlaybackRateChange(S);this.C&&KT(this.C.C)}; g.V.Bk=P_(48);g.V.iY=function(S,W,m){this.qoe&&this.qoe.iY(S,W,m)}; g.V.rD=function(S,W,m){this.qoe&&this.qoe.rD(S,W,m)}; g.V.F1=function(S){var W;(W=this.qoe)==null||W.F1(S)}; g.V.Um=function(S){var W;(W=this.qoe)==null||W.Um(S)}; g.V.J4=function(S,W,m,a){var J;(J=this.qoe)==null||J.J4(S,W,m,a)}; g.V.fp=function(S){this.qoe&&this.qoe.fp(S)}; g.V.xW=function(S,W,m){this.qoe&&this.qoe.xW(S,W,m)}; g.V.oa=P_(19);g.V.G3=function(){if(this.qoe)return this.qoe.G3()}; g.V.Yb=function(){if(this.provider.videoData.enableServerStitchedDai&&this.vr){var S,W;return(W=(S=this.B.get(this.vr))==null?void 0:S.Yb())!=null?W:{}}return this.C?this.C.Yb():{}}; g.V.HL=function(){var S;return(S=this.qoe)==null?void 0:S.HL()}; g.V.dD=function(S,W){var m;(m=this.qoe)==null||m.dD(S,W)}; g.V.ju=function(S){return this.C?this.C.ju(S):function(){}}; g.V.getVideoData=function(){return this.provider.videoData}; g.V.resume=function(){this.qoe&&this.qoe.resume()};g.u(g.jg,g.A);g.V=g.jg.prototype;g.V.oY=function(S,W){this.sync();W&&this.C.array.length>=2E3&&this.sK("captions",1E4);W=this.C;if(S.length>1&&S.length>W.array.length)W.array=W.array.concat(S),W.array.sort(W.C);else{S=g.R(S);for(var m=S.next();!m.done;m=S.next())m=m.value,!W.array.length||W.C(m,W.array[W.array.length-1])>0?W.array.push(m):g.FZ(W.array,m,W.C)}this.B=NaN;this.sync()}; g.V.Y8=function(S){S.length>1E4&&g.Ue(new g.uc("Over 10k cueRanges removal occurs with a sample: ",S[0]));if(!this.TN()){var W=new Set(S);this.N=this.N.filter(function(m){return!W.has(m)}); RX7(this.C,W);this.sync()}}; g.V.Lt=function(S){if(!this.TN()){var W=this.Ef().find(function(m){return m.id===void 0&&m.namespace===S}); W&&this.Y8([W])}}; g.V.sK=function(S,W){var m=(isNaN(this.B)?ifK(this):this.B)-W;W=this.Ef().filter(function(a){return a.namespace===S&&a.endthis.C,B=g.C(m,8)&&g.C(m,16),E=this.C_.iO().isBackground()||m.isSuspended();xt(this,this.hX,B&&!E,J,"qoe.slowseek",function(){},"timeout"); var y=isFinite(this.C);y=B&&y&&W.p7(this.C);var Y=!a||Math.abs(a-this.C)>10,G=this.Y.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),K=a===0&&this.N&&[11,10].includes(this.N);xt(this,this.Y6,y&&Y&&!E&&(!G||!K),J,"qoe.slowseek",function(){W.seekTo(S.C)},"set_cmt"); Y=y&&ct(W.gU(),this.C);var T=this.C_.loader;y=!T||T.z8();var p=function(){W.seekTo(S.C+.001)}; xt(this,this.s9,Y&&y&&!E,J,"qoe.slowseek",p,"jiggle_cmt");y=function(){return S.C_.gp()}; xt(this,this.O9,Y&&!E,J,"qoe.slowseek",y,"new_elem");var q=Hb(m);K=m.isBuffering();var F=W.gU(),O=Cx(F,a),X=O>=0&&F.end(O)>a+5;Y=q&&K&&X;G=this.C_.getVideoData();xt(this,this.Hn,a<.002&&this.C<.002&&B&&g.pt(this.Y)&&g.o1(G)&&!E,J,"qoe.slowseek",y,"slow_seek_shorts");xt(this,this.bY,G.rE()&&B&&!E&&!G.S,J,"qoe.slowseek",y,"slow_seek_gapless_shorts");xt(this,this.N2,Y&&!E,q&&!K,"qoe.longrebuffer",p,"jiggle_cmt");xt(this,this.vn,Y&&!E,q&&!K,"qoe.longrebuffer",y,"new_elem_nnr");if(T){var l=T.getCurrentTime(); B=W.rq();B=Foc(B,l);B=!T.isSeeking()&&a===B;xt(this,this.Wv,q&&K&&B&&!E,q&&!K&&!B,"qoe.longrebuffer",function(){W.seekTo(l)},"seek_to_loader")}B={}; p=Cx(F,Math.max(a-3.5,0));var M=p>=0&&a>F.end(p)-1.1,e=p>=0&&p+1=0&&M&&e<11;B.close2edge=M;B.gapsize=e;B.buflen=F.length;this.N&&(B.seekSour=this.N);xt(this,this.q2,q&&K&&!E,q&&!K,"qoe.longrebuffer",function(){},"timeout",B); B=m.isSuspended();B=this.C_.Ae()&&!B;xt(this,this.Z,B,!B,"qoe.start15s",function(){S.C_.Xp("ad")},"ads_preroll_timeout"); B=this.Y.experiments.mU("html5_use_playback_rate_in_skip_slow_ad")?this.C_.getPlaybackRate()*1E3:1E3;O=a-this.j5;xt(this,this.zN,T,q&&!K,"qoe.longrebuffer",function(){S.C_.KR()},"reset_media_source"); xt(this,this.g2,T,q&&!K,"qoe.longrebuffer",y,"reset_media_element");this.j===0&&(this.V=a);T=K&&this.C===0&&a>1&&a===this.V;xt(this,this.Pn,g.o1(G)&&T,q&&!K,"qoe.slowseek",function(){W.seekTo(0)},"reseek_after_time_jump"); E=m.isOrWillBePlaying()&&!E;X=this.C_.ao()-a<6&&!X&&this.C_.T6();xt(this,this.S,G.rE()&&E&&K&&X,q&&!K,"qoe.longrebuffer",function(){S.C_.gp(!1,!0)},"handoff_end_long_buffer_reload"); E=this.N===104||this.C_.ZA;m=Fh(G)&&G.isAd()&&!G.S&&E&&(K||g.C(m,8)&&g.C(m,16));xt(this,this.d2,m,J,"qoe.start15s",y,"gapless_ad_slow_start");m=Fh(G)&&!G.S&&E&&Y;xt(this,this.uY,m,J,"qoe.longrebuffer",y,"gapless_slow_start");this.j=a;this.X.start()}}; eg.prototype.vG=function(S,W,m){W=this.Yb(W);W.wn=m;W.wdup=this.B[S]?"1":"0";this.C_.vG(new g.a3(S,W));this.B[S]=!0}; eg.prototype.Yb=function(S){S=Object.assign(this.C_.Yb(!0),S.Yb());this.C&&(S.stt=this.C.toFixed(3));this.C_.getVideoData().isLivePlayback&&(S.ct=this.C_.getCurrentTime().toFixed(3),S.to=this.C_.DH().toFixed(3));delete S.uga;delete S.euri;delete S.referrer;delete S.fexp;delete S.vm;return S}; RB.prototype.reset=function(){this.C=this.N=this.B=this.startTimestamp=0;this.j=!1}; RB.prototype.test=function(S){if(!this.X||this.N)return!1;if(!S)return this.reset(),!1;S=(0,g.X1)();if(!this.startTimestamp)this.startTimestamp=S,this.B=0;else if(this.B>=this.X)return this.N=S,!0;this.B+=1;return!1}; RB.prototype.Yb=function(){var S={},W=(0,g.X1)();this.startTimestamp&&(S.wsd=(W-this.startTimestamp).toFixed());this.N&&(S.wtd=(W-this.N).toFixed());this.C&&(S.wssd=(W-this.C).toFixed());return S};g.u(wDP,g.A);g.V=wDP.prototype;g.V.setMediaElement=function(S){(this.mediaElement=S)?(this.mediaElement&&(this.X||this.B||!this.mediaElement.iM()||this.seekTo(.01,{Jw:"seektimeline_setupMediaElement"})),iY(this)):IB(this)}; g.V.getCurrentTime=function(S){S=S===void 0?!1:S;if(dK(this.C_)){if(this.T("html5_use_centralized_player_time")&&!S&&!isNaN(this.V))return this.V;if(!isNaN(this.N))return this.N}else{if(this.T("html5_use_centralized_player_time")&&!S&&!isNaN(this.V)&&isFinite(this.V))return this.V;if(!isNaN(this.N)&&isFinite(this.N))return this.N}return this.mediaElement&&qvK(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0}; g.V.WL=function(){return this.d2}; g.V.cD=function(){return this.getCurrentTime()-this.DH()}; g.V.Oo=function(){return this.C?this.C.Oo():Infinity}; g.V.isAtLiveHead=function(S){if(!this.C)return!1;S===void 0&&(S=this.getCurrentTime());return MQ(this.C,S)}; g.V.fE=function(){return!!this.C&&this.C.fE()}; g.V.seekTo=function(S,W){var m=W===void 0?{}:W;W=m.YC===void 0?!1:m.YC;var a=m.GG===void 0?0:m.GG;var J=m.gf===void 0?!1:m.gf;var B=m.BX===void 0?0:m.BX;var E=m.Jw===void 0?"":m.Jw;var y=m.seekSource===void 0?void 0:m.seekSource;var Y=m.Ii===void 0?!1:m.Ii;var G=m.Rs===void 0?!1:m.Rs;m=m.Ux===void 0?!1:m.Ux;Y&&(S+=this.DH());eX(this.videoData)&&y===29&&(this.d2=void 0);Y=S=this.eD())||!g.fp(this.videoData),O||(X={st:X,mst:this.eD()},this.C&&this.T("html5_high_res_seek_logging")&&(X.ht=this.C.Oo(),X.adft=lY(this.C)),this.C_.iY("seeknotallowed",X)),X=O));if(!X)return this.j&&(this.j=null,Gl6(this)),g.Rz(this.getCurrentTime());X=.005;G&&this.T("html5_sabr_seek_no_shift_tolerance")&&(X=0);if(Math.abs(S-this.N)<=X&&this.Pn)return this.X;this.T("html5_reset_rate_limiter_on_user_seek")&& (X=this.loader)!=null&&(X.N.vn.LR=0);this.T("html5_reset_backoff_on_user_seek")&&(X=this.loader)!=null&&(X.N.Z=void 0);E&&(X=S,this.Y.rd()||this.T("html5_log_seek_reasons"))&&(E={reason:E,tgt:X},this.T("html5_sabr_csdai_seek_log")&&(E.source=y),this.C_.iY("seekreason",E));y&&(this.N2.N=y);this.Pn&&IB(this);this.X||(this.X=new Vn);S&&!isFinite(S)&&a3P(this,!1);(E=m||Y)||(E=S,E=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.C&&!(this.mediaElement&&this.mediaElement.s$()>0&&this.mediaElement.jl()> 0)||vB(this.videoData)&&this.R6()===this.eD(!1)?0:isFinite(E)||!vB(this.videoData)));E||(S=PA(this,S,J));S&&!isFinite(S)&&a3P(this,!1);this.T("html5_use_centralized_player_time")?this.V=S:this.N=this.B=S;this.zN=B;this.Z=0;this.C&&(J=this.C,B=S,bfc(J,B,!1),o6P(J,B));J=this.C_;B=S;E={YC:W,seekSource:y};J.XE.B=B;m=J.Ay;m.mediaTime=B;m.C=!0;E.YC&&J.zi(E);E=B>J.videoData.endSeconds&&B>J.videoData.limitedPlaybackDurationInSeconds;J.MJ&&E&&isFinite(B)&&rzP(J);B0&&SW.start&&rzP(this.C_);return this.X}; g.V.eD=function(S){if(!this.videoData.isLivePlayback)return this.C_.videoData.eD();var W;return zE(this.videoData)&&((W=this.mediaElement)==null?0:W.isPaused())&&this.videoData.C?(S=this.getCurrentTime(),IUP(this.A1(S)*1E3)+S):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&eX(this.videoData)&&this.videoData.C?S?this.videoData.C.q2||0:this.videoData.C.Px||0:vB(this.videoData)&&this.videoData.ri&&this.videoData.C?this.videoData.C.eD()+this.timestampOffset:this.videoData.B&&this.videoData.B.C? !S&&this.C?this.C.Oo():this.C_.videoData.eD()+this.timestampOffset:this.mediaElement?ru()?IUP(this.mediaElement.Kl().getTime()):this.mediaElement.jl()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.V.R6=function(){if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&eX(this.videoData)){var S;return((S=this.videoData.C)==null?void 0:S.I9)||0}S=this.videoData?this.videoData.R6()+this.timestampOffset:this.timestampOffset;if(zE(this.videoData)&&this.videoData.C){var W,m=Number((W=this.videoData.progressBarStartPosition)==null?void 0:W.utcTimeMillis)/1E3;if(!isNaN(m)&&(W=this.iU(m),!isNaN(W)))return Math.max(S,W)}return S}; g.V.Dt=function(){this.X||this.seekTo(this.B,{Jw:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.V.ql=function(){return this.Pn&&!isFinite(this.N)}; g.V.j9=function(){JzK(this,null);this.N2.dispose();g.A.prototype.j9.call(this)}; g.V.Yb=function(){var S={};this.loader&&Object.assign(S,this.loader.Yb());this.mediaElement&&Object.assign(S,this.mediaElement.Yb());return S}; g.V.bW=function(S){this.timestampOffset=S}; g.V.getStreamTimeOffset=function(){return vB(this.videoData)?0:this.videoData.C?this.videoData.C.getStreamTimeOffset():0}; g.V.DH=function(){return this.timestampOffset}; g.V.A1=function(S){return this.videoData&&this.videoData.C?this.videoData.C.A1(S-this.timestampOffset):NaN}; g.V.Gd=function(){if(!this.mediaElement)return 0;if(ka(this.videoData)){var S=this.mediaElement.En()+this.timestampOffset-this.R6(),W=this.eD()-this.R6();return Math.max(0,Math.min(1,S/W))}return this.mediaElement.Gd()}; g.V.Py=function(S){this.S&&(this.S.C=S)}; g.V.Cu=function(S,W,m){this.C_.iY("requestUtcSeek",{time:S});eX(this.videoData)&&(this.d2=S);var a;(a=this.loader)==null||a.Cu(S,m);W&&(this.Xn=W)}; g.V.iL=function(S){eX(this.videoData)&&(this.d2=void 0);this.Xn?(this.C_.iY("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Xn}),this.C_.seekTo(this.Xn,{Jw:"utcSeekingFallback_streamTime"}),this.Xn=0):(S=this.iU(S),isNaN(S)||(this.C_.iY("utcSeekingFallback",{source:"estimate",timeSeconds:S}),this.C_.seekTo(S,{Jw:"utcSeekingFallback_estimate"})))}; g.V.WR=function(){this.Xn=0}; g.V.BR=function(S){this.O9=S}; g.V.iU=function(S){var W=this.getCurrentTime();if(isNaN(W))return NaN;var m=this.A1(W);return isNaN(m)?NaN:S-(m-W)}; g.V.T=function(S){return this.Y&&this.Y.T(S)};g.u(fT,g.A);fT.prototype.start=function(){this.N.start()}; fT.prototype.stop=function(){this.N.stop()}; fT.prototype.clear=function(){for(var S=g.R(this.C.values()),W=S.next();!W.done;W=S.next())W.value.clear()}; fT.prototype.sample=function(){for(var S=g.R(this.B),W=S.next();!W.done;W=S.next()){var m=g.R(W.value);W=m.next().value;m=m.next().value;this.C.has(W)||this.C.set(W,new uLX(Jxg.has(W)));this.C.get(W).update(m())}this.N.start()}; var Jxg=new Set(["networkactivity"]);uLX.prototype.update=function(S){this.N?(this.buffer.add(S-this.C||0),this.C=S):this.buffer.add(S)}; uLX.prototype.clear=function(){this.buffer.clear();this.C=0};hI.prototype.fm=function(){return this.started}; hI.prototype.start=function(){this.started=!0}; hI.prototype.reset=function(){this.finished=this.started=!1};var veP=!1;g.u(g.NQ,g.au);g.V=g.NQ.prototype;g.V.j9=function(){g.O7(this.qs);zG_(this.P1);this.visibility.unsubscribe("visibilitystatechange",this.P1);Of6(this.zV);g.nL(this.zV);cA(this);g.h6.bZ(this.Kp);this.AE();this.jC=null;g.nL(this.videoData);g.nL(this.kG);g.nL(this.G5);g.nL(this.X4);g.sH(this.cwn);this.MJ=null;g.au.prototype.j9.call(this)}; g.V.xW=function(S,W,m,a,J){if(this.Y.T("html5_log_ad_playback_docid")){var B=this.zV;if(B.qoe){B=B.qoe;var E=this.Y.N2||"yt";g.Mv(B,g.eR(B.provider),"ad_playback",[S,W,m,J,E])}}else this.zV.xW(S,W,m);this.T("html5_log_media_perf_info")&&this.iY("adloudness",{ld:a.toFixed(3),cpn:S})}; g.V.Vo=function(){var S;return(S=this.loader)==null?void 0:S.Vo()}; g.V.O0=function(){var S;return(S=this.loader)==null?void 0:S.O0()}; g.V.ZW=function(){var S;return(S=this.loader)==null?void 0:S.ZW()}; g.V.MC=function(){var S;return(S=this.loader)==null?void 0:S.MC()}; g.V.PD=function(){return this.videoData.PD()}; g.V.HD=function(){return this.T("html5_not_reset_media_source")&&this.videoData.isLivePlayback&&this.nH()>10}; g.V.EG=function(){this.videoData.Z&&(this.videoData.y4=this.videoData.y4||this.Ec.S9().Vo(),this.videoData.tb=this.videoData.tb||this.Ec.S9().O0());if(Xkj(this.videoData)||!Bf(this.videoData)){var S=this.videoData.errorDetail;this.QP(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),S,S,this.videoData.eI||void 0)}this.T("html5_generate_content_po_token")&&this.I0();this.o9()}; g.V.getVideoData=function(){return this.videoData}; g.V.J=function(){return this.Y}; g.V.ma=function(){return this.i6.ma(this.jC)}; g.V.iO=function(){return this.visibility}; g.V.Vk=function(){return this.mediaElement&&this.mediaElement.ra()?this.mediaElement.yc():null}; g.V.fn=function(){return this.mediaElement}; g.V.xo=function(){if(this.videoData.errorCode)return!1;this.J().V&&this.J().houseBrandUserStatus&&this.iY("hbut",{status:this.J().houseBrandUserStatus},!0);if(this.videoData.LP())return!0;this.QP("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.V.cJ=function(S){(S=S===void 0?!1:S)||g6O(this.zV);this.UX=S;!this.xo()||this.kW.fm()?$j_(this)&&this.kW.fm()&&!this.kW.finished&&!this.UX&&this.UN():(this.kW.start(),S=this.zV,g.eR(S.provider),S.qoe&&UVK(S.qoe),this.UN())}; g.V.UN=function(){if(this.videoData.isLoaded()){var S=this.kG;g.Db(S.w2.experiments,"html5_player_min_build_cl")>0&&g.Db(S.w2.experiments,"html5_player_min_build_cl")>845509917&&O_7(S,"oldplayer");ZyD(this)}else this.videoData.VT||this.videoData.kB?this.UX&&$j_(this)||(this.videoData.VT?zHG(this.videoData):(S=this.zV,S.qoe&&(S=S.qoe,Is(S,"protected"),S.provider.videoData.X?S.B7():S.provider.videoData.subscribe("dataloaded",S.B7,S)),mCP(this.videoData))):!this.videoData.loading&&this.vC&&hcj(this)}; g.V.j6=function(S){this.tv=S;this.loader&&(EIP(this.loader,S),this.iY("sdai",{sdsstm:1}))}; g.V.q_=function(S,W,m){var a;(a=this.loader)==null||a.q_(S,W,m)}; g.V.FB=function(S){var W;(W=this.loader)==null||W.FB(S)}; g.V.HW=function(){var S;return((S=this.loader)==null?void 0:S.i_())||null}; g.V.isFullscreen=function(){return this.visibility.isFullscreen()}; g.V.isBackground=function(){return this.visibility.isBackground()}; g.V.dS=function(){var S=this;oB(this).then(function(){return rK(S)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.V.Ju=function(){this.mediaElement&&this.mediaElement.activate();this.cJ();this.xo()&&!g.C(this.playerState,128)&&(this.Rd.fm()||(this.Rd.start(),this.videoData.Mi?this.vU(jJ(this.playerState,4)):this.vU(jJ(jJ(this.playerState,8),1))),tI6(this))}; g.V.al=function(){return this.kW.finished}; g.V.sendAbandonmentPing=function(){g.C(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.ub(!0),Of6(this.zV),g.nL(this.zV),g.h6.bZ(this.Kp))}; g.V.UR=function(S,W,m){S=S===void 0?!0:S;(W===void 0||W)&&this.mediaElement&&this.mediaElement.pause();S&&m&&this.loader&&vB(this.videoData)&&this.loader.J4(m);this.vU(S?new g.uV(14):new g.uV)}; g.V.nu=function(){this.zV.Ie()}; g.V.QP=function(S,W,m,a,J,B){var E,y;g.lH(Vmn,m)?E=m:m?y=m:E="GENERIC_WITHOUT_LINK";a=(a||"")+(";a6s."+WO());if(S==="auth"||S==="drm.auth"||S==="heartbeat.stop")m&&(a+=";r."+m.replaceAll(" ","_")),B&&(a+="sr."+B.replaceAll(" ","_"));W={errorCode:S,errorDetail:J,errorMessage:y||g.kb[E]||"",EU:E,eI:B||"",Or:a,nM:W,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=S;CT(this,"dataloaderror");this.vU(O_(this.playerState,128,W));g.h6.bZ(this.Kp);cA(this);this.di()}; g.V.Xp=function(S){this.pA=this.pA.filter(function(W){return S!==W}); this.Rd.fm()&&tI6(this)}; g.V.xG=function(){var S;(S=!!this.pA.length)||(S=this.NP.C.array[0],S=!!S&&S.start<=-0x8000000000000);return S}; g.V.fE=function(){return this.XE.fE()}; g.V.isPlaying=function(){return this.playerState.isPlaying()}; g.V.Sq=function(){return this.playerState.Sq()&&this.videoData.Mi}; g.V.getPlayerState=function(){return this.playerState}; g.V.VI=function(S){var W;(W=this.loader)==null||W.VI(S)}; g.V.nD=function(S){var W;(W=this.loader)==null||W.nD(S)}; g.V.getPlayerType=function(){return this.playerType}; g.V.getPreferredQuality=function(){if(this.jC){var S=this.jC;S=S.videoData.DN.compose(S.videoData.RO);S=k1(S)}else S="auto";return S}; g.V.KE=P_(12);g.V.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.V.setMediaElement=function(S){if(this.mediaElement&&S.yc()===this.mediaElement.yc()&&(S.isView()||this.mediaElement.isView())){if(S.isView()||!this.mediaElement.isView())this.jh(),this.mediaElement=S,this.mediaElement.qI(this),KwP(this),this.XE.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.AE();if(!this.playerState.isError()){var W=Qn(this.playerState,512);g.C(W,8)&&!g.C(W,2)&&(W=jJ(W,1));S.isView()&&(W=Qn(W,64));this.vU(W)}this.mediaElement=S;this.mediaElement.qI(this);!g.pt(this.Y)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);KwP(this);this.XE.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.kG.P3()&&this.mediaElement.Xt()}}; g.V.AE=function(S,W,m){S=S===void 0?!1:S;W=W===void 0?!1:W;m=m===void 0?!1:m;if(this.mediaElement){var a=this.getCurrentTime();a>0&&(this.XE.B=a);this.XE.setMediaElement(null);!S&&this.HD()?z36(this):this.BO(m);this.loader&&(F3(this.loader),W8(this,W));this.QA.stop();if(this.mediaElement&&(!this.Rd.fm()&&!this.Ae()||this.playerState.isError()||g.C(this.playerState,2)||this.vU(jJ(this.playerState,512)),this.mediaElement)){this.jh();if(S||!this.mediaElement.isView())this.Pv.GS("mesv_s"),this.mediaElement.stopVideo(), m0(this);this.mediaElement.qI(null);this.mediaElement=null}}}; g.V.playVideo=function(S,W){S=S===void 0?!1:S;W=W===void 0?!1:W;var m=this,a,J,B,E,y,Y;return g.k(function(G){if(G.C==1){var K=window.google_image_requests;K&&K.length>10&&(window.google_image_requests=K.slice(-10));if(g.C(m.playerState,128))return G.return();if(m.kG.df())return m.publish("signatureexpired"),G.return();m.mediaElement&&g6O(m.zV);m.Ju();(g.C(m.playerState,64)||S)&&m.vU(jJ(m.playerState,8));return m.Rd.finished&&m.mediaElement?m.jC||!m.Xs?G.cn(2):g.P(G,m.Xs,3):G.return()}if(G.C!=2&& g.C(m.playerState,128))return G.return();if(!m.videoData.B)return m.videoData.isLivePlayback&&!g.Xx(m.Y.X,!0)?(a="html5.unsupportedlive",J=2):(a=m.videoData.PD()?"fmt.unplayable":"fmt.noneavailable",J=1),g.Ue(Error("selectableFormats")),m.QP(a,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),G.return();if(m.Sr()&&m.videoData.B.C)return G.return(oB(m));if(dK(m))K=m.XE,je(K.videoData)&&!K.isAtLiveHead(K.getCurrentTime())&&K.fE()&&K.C_.seekTo(Infinity,{Jw:"seektimeline_peggedToLive", seekSource:34});else if(je(m.videoData)&&(B=m.getCurrentTime()E;if(!y||!E){J&&y&&(B=Math.max(B,J));var Y;J=li_(W,(Y=a.C)==null?void 0:Y.videoInfos);Y=W.C_.getPlaybackRate();Y>1&&J&&(Y=pbQ(W.Y.X,a.C.videoInfos,Y),S.C!==0&&Y=480;if(W.T("html5_perf_cap_override_sticky")){G=W.B;W=W.T("html5_perserve_av1_perf_cap");W=W===void 0?!1:W;if(W===void 0?0:W){K=Hh();S=g.R(Object.keys(K));for(B=S.next();!B.done;B=S.next())B=B.value,B.indexOf("1")!==0&&delete K[B];g.i7("yt-player-performance-cap",K,2592E3)}else g.Ix("yt-player-performance-cap");Flc(W);if(W){W=g.R(WT.keys());for(K=W.next();!K.done;K=W.next())K=K.value,K.startsWith("1")|| WT.delete(K);W=g.R(yV.values());for(K=W.next();!K.done;K=W.next())K=K.value,K.startsWith("1")||yV.delete(K);W=g.R(G.keys());for(K=W.next();!K.done;K=W.next())K=K.value,K.startsWith("1")||G.delete(K)}else WT.clear(),yV.clear(),G.clear()}}}}this.loader&&(W=this.loader,m=m||"",W.policy.C?FK(W.X.C,m):FK(W.C.X,m));this.Vh()}; g.V.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.C?k1(this.videoData.DN):fw[X6()]}; g.V.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.V.setUserAudio51Preference=function(S,W){this.getUserAudio51Preference()!==S&&(this.iY("toggle51",{pref:S}),g.i7("yt-player-audio51",S,W?31536E3:2592E3),this.dS())}; g.V.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.V.setProximaLatencyPreference=function(S){var W=this.getProximaLatencyPreference();this.iY("proxima",{pref:S});g.i7("yt-player-proxima-pref",S,31536E3);W!==S&&(S=this.XE,S.uY=!0,S.C_.seekTo(Infinity,{Jw:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.V.getProximaLatencyPreference=function(){var S;return(S=vh())!=null?S:0}; g.V.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.V.I0=function(){this.videoData.videoId?this.Ec.I0(this.videoData):this.iY("povid",{})}; g.V.o9=function(){this.videoData.videoId?this.Ec.o9(this.videoData):this.iY("piavid",{})}; g.V.Vh=function(){if(!this.TN()&&!g.C(this.playerState,128)&&this.videoData.B){if(this.videoData.B.C)AI(this);else{var S=S7(this),W=this.videoData;a:{var m=this.videoData.uY;if(S.C){for(var a=g.R(m),J=a.next();!J.done;J=a.next()){J=J.value;var B=J.getInfo(),E=g.Ht[B.video.quality];if((!S.B||B.video.quality!=="auto")&&E<=S.C){m=J;break a}}m=m[m.length-1]}else m=m[0]}W.Pn=m;C0c(this,S.reason,pEK(this,this.videoData.Pn))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.XE.bY= !1,this.playVideo()}}; g.V.qD=function(S,W){if(this.TN()||g.C(this.playerState,128))return!1;var m,a=!((m=this.videoData.B)==null||!m.C);m=a&&W?this.getCurrentTime()-this.DH():NaN;if(S.n3&&S.n3.id){var J=this.zV;if(J.qoe){J=J.qoe;var B=[S.n3.id,isNaN(m)?"m":"t"];g.Mv(J,g.eR(J.provider),"afi",B)}}if(a)return W&&(a=BWP(this.XE),this.iY("aswh",{id:S.id,xtags:S.xtags,bh:a.toFixed(3)})),this.loader.setAudioTrack(S,m,W),!0;if(DjX(this)){a:{W=this.mediaElement.audioTracks();a=!1;for(m=0;mB.K_.getDuration()&&G5l(B,E)):G5l(B,G);var K=B.loader,T=B.K_;y=y===void 0?!1:y;Y=Y===void 0?!1:Y;K.policy.Hn&&(K.policy.O9&&K.iY("loader",{setsmb:0}),K.YB(),K.policy.Hn=!1);ZBP(K,Y);if(!T8(T)){var p=K_(K.videoTrack),q=K_(K.audioTrack),F=(p?p.info.yD:K.videoTrack.yD).info, O=(q?q.info.yD:K.audioTrack.yD).info,X=K.policy.tb,l=F.mimeType+(X===void 0?"":X),M=O.mimeType,e=F.p_,d=O.p_,t;T.N2=(t=T.K_)==null?void 0:t.addSourceBuffer(M);var h;T.vn=l.split(";")[0]==="fakesb"?void 0:(h=T.K_)==null?void 0:h.addSourceBuffer(l);T.Xf&&(T.Xf.webkitSourceAddId("0",M),T.Xf.webkitSourceAddId("1",l));var mD=new Bb(T.N2,T.Xf,"0",U1(M),d,!1),SO=new Bb(T.vn,T.Xf,"1",U1(l),e,!0);sLj(T,mD,SO)}p=y;q=Y;p=p===void 0?!1:p;q=q===void 0?!1:q;o5(K.videoTrack,T.N||null,q);o5(K.audioTrack,T.C||null, q);K.K_=T;K.K_.X=!0;p||K.resume();T.C.XV(K.hX,K);T.N.XV(K.hX,K);try{K.i$()}catch(aK){g.lR(aK)}B.publish("mediasourceattached")}}catch(aK){g.Ue(aK),B.handleError(new g.a3("fmt.unplayable",{msi:"1",ename:aK&&typeof aK==="object"&&"name"in aK?String(aK.name):void 0,trg:"setmediasrc"},1))}} var B=this;W=W===void 0?!1:W;m=m===void 0?!1:m;YTO(this,a===void 0?!1:a);this.K_=S;this.HD()&&qo(this.K_)==="open"?J(this.K_):n$Q(this.K_,J)}; g.V.XB=function(S){this.kF.set(S.initData,S);this.pP&&(this.pP.XB(S),this.T("html5_eme_loader_sync")||this.kF.remove(S.initData))}; g.V.iW=function(S){this.videoData.SI=g.dz("auto",S,!1,"u");AI(this)}; g.V.Py=function(S){var W=S.reason,m=S.C.info,a=S.token,J=S.videoId,B=this.zV,E=this.videoData;if(m!==E.j){var y=!E.j;E.j=m;var Y=W==="m"||W==="t";Y||(W=y?"i":"a");this.Y.experiments.mU("html5_refactor_sabr_audio_format_selection_logging")?this.Ty=new XCD(E,m,W,"",a,J):(W=new XCD(E,m,W,"",a),B.qoe&&(B=B.qoe,m=g.eR(B.provider),IT6(B,m,W)));this.publish("internalaudioformatchange",E,!y&&Y)}this.Br();this.XE.Py(S.C.index)}; g.V.GL=function(S){this.publish("localmediachange",S)}; g.V.fR=function(S){S=S===void 0?{}:S;var W;(W=this.loader)==null||W.fR(this.Y,np(this.videoData),S)}; g.V.df=function(){return this.kG.df()}; g.V.K5=function(S){this.vG(new g.a3("staleconfig",{reason:S}))}; g.V.handleError=function(S){this.kG.handleError(S)}; g.V.P3=function(){return this.kG.P3()}; g.V.iL=function(S){this.XE.iL(S)}; g.V.gp=function(S,W){S=S===void 0?!1:S;W=W===void 0?!1:W;var m=this,a,J,B;return g.k(function(E){if(E.C==1){m.loader&&m.loader.Us();m.loader&&m.loader.TN()&&cA(m);if(m.T("html5_enable_vp9_fairplay")&&m.PD()&&(a=m.videoData.C)!=null)for(var y in a.C)a.C.hasOwnProperty(y)&&(a.C[y].C=null,a.C[y].B=!1);m.vU(jJ(m.playerState,2048));m.publish("newelementrequired");return S?g.P(E,oB(m),2):E.cn(2)}m.videoData.Hv()&&((J=m.loader)==null?0:J.Xn)&&!dK(m)&&((B=m.isAtLiveHead())&&je(m.videoData)?m.seekTo(Infinity, {Jw:"videoPlayer_getNewElement"}):m.videoData.HG&&m.loader&&(y=m.loader,y.ZQ.Hv&&(y.ZQ.HG||y.ZQ.Z||y.ZQ.isPremiere?(y.seek(0,{Jw:"loader_resetSqless"}),y.videoTrack.V=!0,y.audioTrack.V=!0,y.videoTrack.j=!0,y.audioTrack.j=!0):DB(y.ZQ)&&Ly(y))));W&&m.seekTo(0,{seekSource:105});g.C(m.playerState,8)&&m.playVideo();g.B9(E)})}; g.V.s1=function(S){this.iY("hgte",{ne:+S});this.videoData.Z=!1;S&&this.gp();this.loader&&Ac_(this.loader)}; g.V.Aa=function(S){this.iY("newelem",{r:S});this.gp()}; g.V.pauseVideo=function(S){S=S===void 0?!1:S;if((g.C(this.playerState,64)||g.C(this.playerState,2))&&!S)if(g.C(this.playerState,8))this.vU(Xk(this.playerState,4,8));else if(this.Sq())rK(this);else return;g.C(this.playerState,128)||(S?this.vU(jJ(this.playerState,256)):this.vU(Xk(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.fp(this.videoData)&&this.loader&&W8(this,!1)}; g.V.stopVideo=function(){this.pauseVideo();this.loader&&(W8(this,!1),this.loader.YB())}; g.V.di=function(S,W){S=S===void 0?!1:S;W=W===void 0?!1:W;if(this.HD()&&W){var m;(m=this.mediaElement)==null||m.di()}else{var a;(a=this.mediaElement)==null||a.stopVideo()}m0(this);cA(this);g.C(this.playerState,128)||(S?this.vU(Qn(Qn(jJ(this.playerState,4),8),16)):this.vU(O_(this.playerState)));this.videoData.videoId&&this.Y.Hn.remove(this.videoData.videoId)}; g.V.seekTo=function(S,W){W=W===void 0?{}:W;g.C(this.playerState,2)&&rK(this);W.R42&&this.vU(jJ(this.playerState,2048));if((W.seekSource===58||W.seekSource===60)&&this.T("html5_update_vss_during_gapless_seeking")){var m=this.zV;m.C&&(m=m.C,W.seekSource===58?m.C.update():m.B&&(VV(m),sU(m).send(),m.j=NaN))}this.XE.seekTo(S,W);this.NP.sync()}; g.V.zi=function(S){this.Pv.j.N=(0,g.X1)();g.C(this.playerState,32)||(this.vU(jJ(this.playerState,32,S==null?void 0:S.seekSource)),g.C(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Zb()}; g.V.Hd=function(S){S=S==null?void 0:S.seekSource;g.C(this.playerState,32)?(this.vU(Xk(this.playerState,16,32,S)),this.publish("endseeking")):g.C(this.playerState,2)||this.vU(jJ(this.playerState,16,S));S=this.Pv.j;var W=this.videoData,m=this.playerState.isPaused();if(W.clientPlaybackNonce&&!isNaN(S.C)){if(Math.random()<.01){m=m?"pbp":"pbs";var a={startTime:S.C};W.V&&(a.cttAuthInfo={token:W.V,videoId:W.videoId});RP("seek",a);g.LG({clientPlaybackNonce:W.clientPlaybackNonce},"seek");isNaN(S.N)||UY("pl_ss", S.N,"seek");UY(m,(0,g.X1)(),"seek")}S.reset()}}; g.V.aV=function(S){this.Hd(S)}; g.V.u9=function(){this.publish("SEEK_COMPLETE")}; g.V.X1=function(S){var W=this.Ec,m=this.videoData.clientPlaybackNonce,a=this.playerType;if(S.scope===4){var J=S.type;if(J){var B=W.Nw(),E=B.getVideoData().clientPlaybackNonce;a===1&&(E=m);if(a=xfD(W,E)){if(m=a.getVideoData())S.writePolicy===2&&m.sabrContextUpdates.has(J)||(S.sendByDefault&&m.Hn.add(J),m.sabrContextUpdates.set(J,S)),W.T("html5_enable_t1_enf_on_sabr")&&(S=J===5,J=n_P(m.playerResponse),S?(S=J?1:0,Y$(S,"m.p_",{}),c6("MBSTAT",S)):S=1,S===0&&W.E9.f_("onAbnormalityDetected"))}else B.iY("scuset", {ncpf:"1",ccpn:E,crcpn:m})}else g.Ue(Error("b/380308491: contextUpdateType is undefined"))}}; g.V.xA=function(){if(this.playerType===2)return this.Ec.xA("")}; g.V.getCurrentTime=function(S){return this.XE.getCurrentTime(S===void 0?!1:S)}; g.V.WL=function(){return this.XE.WL()}; g.V.cD=function(){return this.XE.cD()}; g.V.oG=function(){return this.cD()}; g.V.Oo=function(){return this.XE.Oo()}; g.V.getPlaylistSequenceForTime=function(S){return this.videoData.getPlaylistSequenceForTime(S-this.DH())}; g.V.Ze=function(){var S=NaN;this.mediaElement&&(S=this.mediaElement.Ze());return S>=0?S:this.getCurrentTime()}; g.V.A1=function(){var S;return((S=this.videoData.C)==null?0:S.A1)?this.videoData.C.A1(this.getCurrentTime()-this.DH()):this.mediaElement&&(S=this.mediaElement.Kl())&&(S=S.getTime(),!isNaN(S))?S/1E3+this.getCurrentTime():NaN}; g.V.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.DH():this.eD()?this.eD():0}; g.V.LH=function(){var S=new v6D;if(this.loader){var W=this.Av,m=this.Y.rd();m=m===void 0?!1:m;S.HJ=W.Xn;S.M5=W.zN;S.bandwidthEstimate=Ci(W);if(m){m=(W.S.hO()*1E3).toFixed();var a=(W.s9.hO()*1E3).toFixed(),J=oQ(W).toFixed(2),B=((W.Z.hO()||0)*1E9).toFixed(2),E=W.B.hO().toFixed(0),y=W.Hn.hO().toFixed(0),Y=W.bY.percentile(.5).toFixed(2),G=W.bY.percentile(.92).toFixed(2),K=W.bY.percentile(.96).toFixed(2),T=W.bY.percentile(.98).toFixed(2);W.C?W.C.reset():W.C=new qM;W.C.add(W.Pn);W.C.add(W.interruptions.length); for(var p=0,q=W.interruptions.length-1;q>=0;q--){var F=W.interruptions[q];W.C.add(F-p);p=F}p=0;for(q=W.j.length-1;q>=0;q--){F=W.j[q];var O=F.stamp/36E5;W.C.add(O-p);p=O;W.C.add(F.net/1E3);W.C.add(F.max)}W=W.C.Rp();S.C={ttr:m,ttm:a,d:J,st:B,bw:E,abw:y,v50:Y,v92:G,v96:K,v98:T,"int":W}}W=this.loader;W.K_&&W.K_.X&&!W.K_.U2()&&(S.St=Jz(W.videoTrack),S.N=Jz(W.audioTrack),W.policy.B&&(m=mk(W.videoTrack),a=mk(W.audioTrack),J=r1(W.K_.N.Ni(),"_",5),B=r1(W.K_.C.Ni(),"_",5),Object.assign(S.C,{lvq:m,laq:a,lvb:J, lab:B})));S.bandwidthEstimate=rk(W.bY);var X;(X=W.audioTrack.S)==null||X.flush();var l;(l=W.videoTrack.S)==null||l.flush()}else this.mediaElement&&(S.St=this.mediaElement.oX());S.HJ=this.HJ;S.M5=this.M5;S.B=this.isAtLiveHead()&&this.isPlaying()?P06(this):NaN;X=this.XE;X=X.C?lY(X.C):0;S.j=X;return S}; g.V.l7=function(S,W){this.M5+=S;this.HJ+=W}; g.V.Gd=function(){return this.mediaElement?g.fp(this.videoData)?1:ka(this.videoData)?this.isAtLiveHead()||this.fE()?1:this.XE.Gd():this.mediaElement.Gd():0}; g.V.Dc=function(){var S=this.QZ,W=$t(S,"bandwidth"),m=$t(S,"bufferhealth"),a=$t(S,"livelatency"),J=$t(S,"networkactivity"),B=kt(S,"bandwidth"),E=kt(S,"bufferhealth"),y=kt(S,"livelatency");S=kt(S,"networkactivity");var Y=this.Jo(),G=Y.droppedVideoFrames;Y=Y.totalVideoFrames;var K=this.getCurrentTime();if(this.pP){var T="IT/"+(this.pP.C.getInfo()+"/"+k1(this.WW()));T+="/"+this.pP.getInfo()}else T="";var p=this.isGapless(),q=this.v4(),F=this.G3(),O=g.wK(this),X=this.getPlayerState().state.toString(16), l=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var M=0;var e="";if(this.tv){if(this.tv.lV){e="D,";break a}M=this.tv.BW;e=this.tv.Uy.substring(0,4)}M>0?(M="AD"+M+", ",e&&(M+=e+", "),e=M):e=""}return{Uk:B,R0:E,currentTime:K,dM:T,droppedVideoFrames:G,isGapless:p,v4:q,XP:F,vI:W,BI:m,qq:a,It:J,cI:y,QN:S,RF:O,j_:X,Ig:l,mW:e,totalVideoFrames:Y}}; g.V.Yb=function(S){var W={};if(S===void 0?0:S){Object.assign(W,this.zV.Yb());this.mediaElement&&(Object.assign(W,this.mediaElement.Yb()),S=this.Jo(),W.dvf=S.droppedVideoFrames,W.tvf=S.totalVideoFrames);this.loader&&Object.assign(W,this.loader.Yb());this.pP&&(W.drm=JSON.stringify(this.pP.Yb()));W.state=this.playerState.state.toString(16);g.C(this.playerState,128)&&(W.debug_error=JSON.stringify(this.playerState.Of));this.xG()&&(W.prerolls=this.pA.join(","));this.videoData.Pc&&(W.ismb=this.videoData.Pc); 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.Ec.isOrchestrationLeader()&&(W.leader=1);this.videoData.isLivePlayback&& (this.videoData.C&&om(this.videoData.C)&&(W.segduration=om(this.videoData.C)),S=this.XE,W.lat=S.S?$X6(S.S.j):0,W.liveutcstart=this.videoData.liveUtcStartSeconds);W.relative_loudness=this.videoData.D0.toFixed(3);if(S=g.wK(this))W.optimal_format=S.video.qualityLabel;W.user_qual=X6();W.release_version=z[50]}W.debug_videoId=this.videoData.videoId;return W}; g.V.addCueRange=function(S){this.kN([S])}; g.V.removeCueRange=function(S){this.NP.Y8([S])}; g.V.C8=function(){var S=this.NP;if(S.C_.J().T("html5_sort_cueranges_on_update")&&!(S.Ef().length<=0||S.TN())){var W=S.C;W.array.sort(W.C)}S.sync()}; g.V.sK=function(S,W){return this.NP.sK(S,W)}; g.V.kN=function(S,W){this.NP.oY(S,W)}; g.V.lT=function(S){this.NP.Y8(S)}; g.V.Ef=function(){return this.NP.Ef()||[]}; g.V.pM=function(){return this.Zn}; g.V.Sr=function(){return this.visibility.Sr()}; g.V.cA=function(){this.mediaElement&&this.mediaElement.cA()}; g.V.Tr9=function(){CT(this)}; g.V.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.V.jh=function(){g.eY(this.jE)}; g.V.TU9=function(){this.Zb();this.publish("onLoadProgress",this.Gd())}; g.V.dH=function(S){var W=S.target.kK();if(this.mediaElement&&this.mediaElement.kK()&&this.mediaElement.kK()===W){OjG(this,S.type);switch(S.type){case "error":var m=this.mediaElement.CO()||"",a=this.mediaElement.TY();if(m==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.iY("capchg",{msg:a}),this.gp(!0)):oB(this);return}if(this.mediaElement.hasError()&&n3X(this.kG,m,{msg:a,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Gb()){this.di();DX(this,"unplayable"); return}break;case "durationchange":m=this.mediaElement.getDuration();isFinite(m)&&(!this.K_||m>0)&&m!==1&&this.Ab(m);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());m=this.NP;m.started=!0;m.sync();this.zV.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.ZH().C.QD(sKN)||this.T("html5_prevent_mobile_background_play_on_event_shared"))&&ZX(this,!1);QsD(this);this.publish("onLoadedMetadata");qTD(this);m=this.A1();this.videoData.bN&& (this.videoData.bN=m);break;case "loadstart":qTD(this);break;case "progress":case "suspend":this.gH.hk();break;case "seeked":(m=this.loader)!=null&&m.policy.N&&m.OC&&(m.iY("sdai",{skipAdSked:"1"}),m.OC=!1);break;case "playing":(this.ZH().C.QD(sKN)||this.T("html5_prevent_mobile_background_play_on_event_shared"))&&ZX(this,!1);this.Pv.GS("plev");this.q4&&!dK(this)&&(this.q4=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Jw:"videoplayer_onPlaying"}));break;case "timeupdate":(this.ZH().C.QD(sKN)||this.T("html5_prevent_mobile_background_play_on_event_shared"))&& ZX(this,!1);m=this.mediaElement&&!this.mediaElement.getCurrentTime();a=this.mediaElement&&this.mediaElement.s$()===0;if(m&&(!this.HB||a))return;this.HB=this.HB||!!this.mediaElement.getCurrentTime();TIl(this);this.Zb();if(!this.mediaElement||this.mediaElement.kK()!==W)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.rq().length>0&&this.mediaElement.gU().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return; this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.s$()>2||!this.mediaElement.isSeeking()&&ct(this.mediaElement.gU(),this.mediaElement.getCurrentTime()))&&(m=this.mediaElement.Yb(),m.bh=this.mediaElement.oX().toFixed(3),this.iY("uwe",m));break;case "resize":QsD(this);this.videoData.N&&this.videoData.N.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Fo&&g.C(this.playerState,8)&&!g.C(this.playerState, 1024)&&this.getCurrentTime()===0&&g.F1){DX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.kK()===W){VIP(this.XE,S);this.publish("videoelementevent",S);W=this.playerState;a=this.Ay;var J=this.mediaElement;m=this.videoData.clientPlaybackNonce;if(!g.C(W,128)){var B=W.state;J=J?J:S.target;var E=J.getCurrentTime();if(!g.C(W,64)||S.type!=="ended"&&S.type!=="pause"){var y=J.getDuration();y=J.isEnded()||E>1&&Math.abs(E-y)<1.1;var Y=S.type==="pause"&&J.isEnded();E=S.type=== "ended"||S.type==="waiting"||S.type==="timeupdate"&&!g.C(W,4)&&!QV(a,E);if(Y||y&&E)J.rk()>0&&J.kK()&&(B=14);else switch(S.type){case "error":J.CO()&&(B|=128);break;case "pause":g.C(W,256)?(B^=256)||(B=64):g.C(W,32)||g.C(W,2)||g.C(W,4)||(B=4,g.C(W,1)&&g.C(W,8)&&(B|=1));break;case "playing":E=B;B=(B|8)&-1093;E&4?(B|=1,ge(a,J,!0)):QV(a,J.getCurrentTime())&&(B&=-2);g.C(W,1)&&ge(a,J)&&(B|=1);break;case "seeking":B|=16;g.C(W,8)&&(B|=1);B&=-3;break;case "seeked":B&=-17;ge(a,J,!0);break;case "waiting":g.C(W, 2)||(B|=1);ge(a,J);break;case "timeupdate":E=g.C(W,16),y=g.C(W,4),(g.C(W,8)||E)&&!y&&QV(a,J.getCurrentTime())&&(B=8),ge(a,J)&&(B|=1)}}a=B;B=null;a&128&&(B=S.target,J=B.CO(),E=1,J?(J==="capability.changed"&&(E=2),y="GENERIC_WITHOUT_LINK",Y=B.Yb(),Y.mediaElem="1",Y.trg="melem",/AUDIO_RENDERER/.test(B.TY())&&(y="HTML5_AUDIO_RENDERER_ERROR"),B={errorCode:J,errorMessage:g.kb[y]||"",EU:y,Or:m6(Y),nM:E,cpn:W.Of?W.Of.cpn:""}):B=null,B&&(B.cpn=m));W=O_(W,a,B)}!g.C(this.playerState,1)&&g.C(W,1)&&gG7(this,"evt"+ S.type);this.vU(W)}}}; g.V.WyD=function(S){S=S.C.availability==="available";S!==this.Zn&&(this.Zn=S,this.publish("airplayavailabilitychange"))}; g.V.Hn2=function(){var S=(0,g.X1)(),W=this.mediaElement.Sr();this.iY("airplay",{ia:W});!W&&!isNaN(this.l_)&&S-this.l_<2E3||(this.l_=S,W!==this.Sr()&&(S=this.visibility,S.C!==W&&(S.C=W,S.P1()),this.iY("airplay",{rbld:W}),this.dS()),this.publish("airplayactivechange"))}; g.V.OX=function(S){if(this.loader){var W=this.loader,m=W.B,a=W.getCurrentTime(),J=Date.now()-m.S;m.S=NaN;m.iY("sdai",{adfetchdone:S,d:J});S&&!isNaN(m.V)&&m.N!==3&&Jr(m.loader,a,m.V,m.X);m.policy.N?m.B=NaN:m.j=NaN;a5(m,4,m.N===3?"adfps":"adf");F3(W)}}; g.V.Qt=function(){g.O7(this.qs);this.QA.stop();this.videoData.S=!0;this.Y.hR=!0;this.Y.vv=0;var S=this.kG;if(S.videoData.N){var W=S.w2.X,m=S.videoData.N.p_;W.B.has(m)&&(W.B.delete(m),W.C=!0)}S.C.stop();this.Gq();g.C(this.playerState,8)&&this.vU(Qn(this.playerState,65));this.UX=!1;this.zV.oi();g.Cu(this.G5);this.publish("playbackstarted");(S=g.v9("yt.scheduler.instance.clearPriorityThreshold"))?S():Wq(0)}; g.V.Gq=function(){var S=this.Ec.CP(),W={},m={};!eG("pbs",this.Pv.timerName)&&sY.measure&&sY.getEntriesByName&&(sY.getEntriesByName("mark_nr")[0]?$D6("mark_nr"):$D6());S.videoId&&(W.videoId=S.videoId);S.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(W.clientPlaybackNonce=S.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(m.isPausedOnLoad=!0);m.itag=S.N?Number(S.N.itag):-1;S.o6&&(m.preloadType=String(this.cV?2:1));W.liveStreamMode=tmv[xa(S)];W.playerInfo=m;this.Pv.infoGel(W); if(this.loader){S=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(S.B&&(W=window.performance.getEntriesByName(S.B),W.length&&(W=W[0],S.tick("vri",W.fetchStart),S.tick("vdns",W.domainLookupEnd),S.tick("vreq",W.requestStart),S.tick("vrc",W.responseEnd))),S.N&&(W=window.performance.getEntriesByName(S.N),W.length&&(W=W[0],S.tick("ari",W.fetchStart),S.tick("adns",W.domainLookupEnd),S.tick("areq",W.requestStart),S.tick("arc",W.responseEnd))));S=S.ticks;for(var a in S)S.hasOwnProperty(a)&& this.Pv.tick(a,S[a])}}; g.V.Zb=function(S){var W=this;S=S===void 0?!1:S;if(this.mediaElement&&this.videoData){EeG(this.XE,this.isPlaying());var m=this.getCurrentTime();if(this.loader&&(g.C(this.playerState,4)&&g.fp(this.videoData)||g.C(this.playerState,32)&&eX(this.videoData)||y56(this.loader,m),this.T("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-os(this.loader))>10)){var a;this.iY("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(a=this.loader)==null?void 0:os(a)},!0)}m>5&&(this.XE.B=m); (a=g.SF())?g.h6.bZ(this.Kp):g.gu(this.Kp);var J=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!J||zE(this.videoData))&&!g.C(this.playerState,128)){var B=function(){if(W.mediaElement&&!g.C(W.playerState,128)){W.Y.rd()&&OjG(W,"pfx");var E=W.getCurrentTime();W.T("html5_buffer_underrun_transition_fix")&&(E-=W.DH());var y=W.mediaElement.oX(),Y=g.C(W.playerState,8),G=QV(W.Ay,E),K=jLP(W.Ay,E,(0,g.X1)(),y);Y&&G?W.vU(Qn(W.playerState,1)):Y&&K?(Y=W.getDuration(),G=je(W.videoData),Y&&Math.abs(Y- E)<1.1?(W.iY("setended",{ct:E,bh:y,dur:Y,live:G}),W.mediaElement.kV()?W.seekTo(0,{Jw:"videoplayer_loop",seekSource:37}):W.UR()):(W.playerState.isBuffering()||gG7(W,"progress_fix"),W.vU(jJ(W.playerState,1)))):(Y&&!G&&!K&&E>0&&(Y=(Date.now()-W.W9)/1E3,G=W.getDuration(),E>G-1&&W.iY("misspg",{t:E.toFixed(2),d:G.toFixed(2),r:Y.toFixed(2),bh:y.toFixed(2)})),W.playerState.isPaused()&&W.playerState.isBuffering()&&W.mediaElement.oX()>5&&W.vU(Qn(W.playerState,1)));W.Zb()}}; this.mediaElement.rq().length===0?this.Kp=a?g.h6.U$(B,100):g.s7(B,100):this.Kp=a?g.h6.U$(B,500):g.s7(B,500)}this.videoData.Wv=m;!S&&this.isPlaying()&&FwO(this);Iij(this.i6,this.jC,this.fn(),this.isBackground())&&AI(this);this.publish("progresssync",S);J&&zE(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.V.T22=function(){this.QP("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.V.G3=function(){return this.zV.G3()}; g.V.kA=function(){return this.loader?this.loader.kA():Ci(this.Av,!0)}; g.V.vU=function(S){if(!g.vb(this.playerState,S)){var W=new g.KZ(S,this.playerState);this.playerState=S;js_(this);var m=!this.aZ.length;this.aZ.push(W);var a=this.mediaElement&&this.mediaElement.isSeeking();g.qb(W,1)&&this.loader&&tdP(this.loader);a=W.oldState.state===8&&!a;if(g.qb(W,1)&&a&&g.C(this.playerState,8)&&!g.C(this.playerState,64)&&this.loader){a=this.loader;a.nA=!0;if(a.policy.yT&&a.K_){var J,B,E,y;a.iY("lr_rb",{c:a.getCurrentTime(),s:a.isSeeking(),ab:r1(a.K_.C.Ni()),ala:(J=rS(a.audioTrack))== null?void 0:J.GC(),alr:(B=a.audioTrack.C)==null?void 0:B.GC(),vb:r1(a.K_.N.Ni()),vla:(E=rS(a.videoTrack))==null?void 0:E.GC(),vlr:(y=a.videoTrack.C)==null?void 0:y.GC()})}a.kU!==0&&a.iY("sps_rebuffer",{c:a.getCurrentTime()});this.mediaElement&&this.mediaElement.oX()>=5&&(J=this.i6,B=this.jC,!B.videoData.N||J.T("html5_disable_performance_downgrade")?J=!1:(Date.now()-J.Z>6E4&&(J.N=0),J.N++,J.Z=Date.now(),J.N!==4?J=!1:(i_j(J,B.videoData.N),J=!0)),J&&AI(this))}(J=g.Db(this.Y.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.C(S,1)&&(g.C(S,8)||g.C(S,16))?this.b1.start(J):this.b1.stop();(TI(W,8)<0||g.qb(W,1024))&&this.QA.stop();!g.qb(W,8)||this.videoData.S||g.C(W.state,1024)||this.QA.start();g.C(W.state,8)&&TI(W,16)<0&&!g.C(W.state,32)&&!g.C(W.state,2)&&this.playVideo();g.C(W.state,2)&&ka(this.videoData)&&(this.Ab(this.getCurrentTime()),this.Zb(!0));g.qb(W,2)&&(this.ub(!0),this.Y.rd()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&eX(this.videoData)&&this.videoData.C&&(S={minst:""+ this.videoData.C.I9,cminst:""+(this.videoData.C.R6()+this.DH()),maxst:""+this.videoData.C.Px,hts:""+this.videoData.C.q2,cmaxst:""+(this.videoData.C.eD()+this.DH())},this.iY("sabrSeekableBoundaries",S)));g.qb(W,128)&&this.di();this.videoData.C&&this.videoData.isLivePlayback&&!this.Oi&&(TI(W,8)<0?(S=this.videoData.C,S.j&&S.j.stop()):g.qb(W,8)&&this.videoData.C.resume());S=this.XE;g.Cu(S.N2.X);if(S.mediaElement)if(W.oldState.state===8&&Hb(W.state)&&W.state.isBuffering()){var Y=S.mediaElement.getCurrentTime(); J=S.mediaElement.gU();B=S.T("manifestless_post_live_ufph")||S.T("manifestless_post_live")?Cx(J,Math.max(Y-3.5,0)):Cx(J,Y-3.5);B>=0&&Y>J.end(B)-1.1&&B+10?(bY(S.C_,S.getCurrentTime()+S.videoData.limitedPlaybackDurationInSeconds), S.Y6=!0):S.videoData.isLivePlayback&&S.videoData.endSeconds>0&&(bY(S.C_,S.getCurrentTime()+S.videoData.endSeconds),S.Y6=!0));Y=this.zV;if(g.qb(W,1024)||g.qb(W,512)||g.qb(W,4))Y.N&&(S=Y.N,S.N>=0||(S.C=-1,S.delay.stop())),Y.qoe&&(S=Y.qoe,S.Z||(S.B=-1));if(Y.provider.videoData.enableServerStitchedDai&&Y.vr){var G;(G=Y.B.get(Y.vr))==null||Fn_(G,W)}else Y.C&&Fn_(Y.C,W);Y.qoe&&(G=Y.qoe,S=W.state,J=g.eR(G.provider),B=G.getPlayerState(S),E=S.seekSource||void 0,B!==G.Ud&&(G.q2||J=10&&G.playTimeSecs<=180&&(G.C.set("qoealert",["1"]),G.uY=!0)),B!=="B"||G.Ud!=="PL"&&G.Ud!=="PB"||(G.isBuffering=!0),G.N=J),G.Ud==="PL"&&(B==="B"||B==="S")||G.provider.Y.rd()?ix(G,J):(G.M2||B!=="PL"||(G.M2=!0,xG(G,J,G.provider.C_.LH())),Rs(G,J)),B==="PL"&&g.Cu(G.qd),y=[B],B==="S"&&E&&y.push("ss."+E),g.Mv(G,J,"vps",y),G.Ud=B,G.N2=J,G.N=J,G.j=!0),B=S.Of,g.C(S,128)&&B&&(B.Or=B.Or||"",L1j(G,J,B.errorCode, B.nM,B.Or)),(g.C(S,2)||g.C(S,128))&&G.reportStats(J),S.isPlaying()&&!G.Z&&(G.B>=0&&G.C.set("user_intent",[G.B.toString()]),G.Z=!0),dI(G));Y.N&&(G=Y.N,tvG(G),G.playerState=W.state,G.N>=0&&g.qb(W,16)&&G.seekCount++,W.state.isError()&&G.send());if(m&&!this.TN())try{for(var K=g.R(this.aZ),T=K.next();!T.done;T=K.next()){var p=T.value,q=this.NP;if(q.started&&(q.sync(),g.C(p.oldState,16))){W=q;var F=LnP(W.C,Math.max(W.B-2E3,0));!isNaN(F)&&F<0x7ffffffffffff&&W.j.start()}this.publish("statechange",p)}}finally{this.aZ.length= 0}}}; g.V.QL=function(){this.Pv.tick("qoes")}; g.V.Dt=function(){this.XE.Dt()}; g.V.FC=function(S,W,m,a){a:{var J=this.kG;a=a===void 0?"LICENSE":a;m=m.substring(0,256);var B=J3(W);S==="drm.keyerror"&&this.pP&&this.pP.N.keys.length>1&&J.j<96&&(S="drm.sessionlimitexhausted",B=!1);var E=J.w2.experiments.mU("html5_retry_on_drm_unavailable"),y=J.w2.experiments.mU("html5_retry_on_drm_key_error"),Y=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(E&&S==="drm.unavailable"||y&&S==="drm.keyerror"&&!m.match(Y))J.vG("qoe.restart",{retryOnDrmError:1,e:S,detail:m}),J.C_.gp(!0);else{if(B)if(J.videoData.N&& J.videoData.N.video.isHdr())QJP(J,S);else{if(J.C_.QP(S,W,a,m),pCj(J,{detail:m}))break a}else J.vG(S,{detail:m});S==="drm.sessionlimitexhausted"&&(J.iY("retrydrm",{sessionLimitExhausted:1}),J.j++,u3c(J.C_))}}}; g.V.A1Q=function(){var S=this,W=g.Db(this.Y.experiments,"html5_license_constraint_delay"),m=JO();W&&m?(W=new g.rj(function(){S.Vh();CT(S)},W),g.Z(this,W),W.start()):(this.Vh(),CT(this))}; g.V.Kh=function(S){this.publish("heartbeatparams",S)}; g.V.uh=function(S){this.iY("keystatuses",PGc(S));var W="auto",m=!1;this.videoData.N&&(W=this.videoData.N.video.quality,m=this.videoData.N.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}m&&(W+="HDR")}W=Sg(S)?WA(S,W):S.j.includes(W);if(this.T("html5_enable_vp9_fairplay")){if(m)if(S.Z){var a;if((a= this.pP)==null?0:GW(a.C))if((m=this.pP)==null)m=0;else{for(var J=a=void 0,B=g.R(m.N.values()),E=B.next();!E.done;E=B.next())E=E.value,a||(a=kwP(E,"SD")),J||(J=kwP(E,"AUDIO"));m.XK({sd:a,audio:J});m=a==="output-restricted"||J==="output-restricted"}else m=!W;if(m){this.iY("drm",{dshdr:1});QJP(this.kG);return}}else{this.videoData.l4||(this.videoData.l4=!0,this.iY("drm",{dphdr:1}),this.gp(!0));return}var y;if((y=this.pP)==null?0:GW(y.C))return}else if(y=S.Z&&W,m&&!y){QJP(this.kG);return}W||WA(S,"AUDIO")&& WA(S,"SD")||(S=PGc(S),this.ou?(this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.QP("drm.keyerror",2,void 0,"info."+S)):(this.ou=!0,this.vG(new g.a3("qoe.restart",Object.assign({},{retrydrm:1},S))),AI(this),u3c(this)))}; g.V.c12=function(){if(!this.videoData.S&&this.mediaElement&&!this.isBackground()){var S="0";this.mediaElement.s$()>0&&this.mediaElement.oX()>=5&&this.videoData.B&&this.videoData.B.C&&(this.vU(jJ(this.playerState,1)),gG7(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),S="1");js_(this);var W=this.videoData.B;S={restartmsg:S,mfmt:!pp(this.videoData),mdrm:!(!(W&&W.videoInfos&&W.videoInfos.length&&W.videoInfos[0].PG)||this.pP),mfmtinfo:!this.videoData.N,prerolls:this.xG()?this.pA.join(","): "0"};if(this.pP){W=this.pP;if(W.N.size<=0){var m="ns;";W.bY||(m+="nr;");W=m+="ql."+W.B.length}else W=PGc(W.N.values().next().value),W=m6(W);S.drmp=W}var a;Object.assign(S,((a=this.loader)==null?void 0:a.Yb())||{});var J;Object.assign(S,((J=this.mediaElement)==null?void 0:J.Yb())||{});this.zV.vG("qoe.start15s",m6(S));this.publish("loadsofttimeout")}}; g.V.Ab=function(S){this.videoData.lengthSeconds!==S&&(this.videoData.lengthSeconds=S,CT(this))}; g.V.ub=function(S,W){var m=this;S=S===void 0?!1:S;if(!this.HF)if(eG("att_s","player_att")||iU("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var J,B,E,y,Y;return g.k(function(G){switch(G.C){case 1:if(!(J=S)){G.cn(2);break}return g.P(G,g.uR7(),3);case 3:J=!G.N;case 2:if(J)return G.return();g.EQ(G,4);B=Q57(m.zV);if(!B)throw Error();E={};return g.P(G,g.srX((E.cpn=m.videoData.clientPlaybackNonce,E.encryptedVideoId=m.videoData.videoId||"",E),g.Db(m.Y.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:y=G.N;if(m.HF)throw Error();if(!y.challenge)throw Y=y.error?"; error: "+y.error:"",g.Ue(Error("Not sending atr ping; missing challenge string"+Y)),Error();m.HF=!0;var K=[y.challenge];if(y.error){var T=LD9();T=AWl(T).get(y.error)||0;K.push("r1c="+T)}else y.webResponse&&K.push("r1a="+y.webResponse);var p;((p=y.adblockReporting)==null?void 0:p.reportingStatus)!==void 0&&K.push("r6a="+y.adblockReporting.reportingStatus);var q;((q=y.adblockReporting)==null?void 0:q.broadSpectrumDetectionResult)!== void 0&&K.push("r6b="+y.adblockReporting.broadSpectrumDetectionResult);B(K.join("&"));iU("att_f",void 0,"player_att");g.Yp(G,0);break;case 4:g.Gg(G),iU("att_e",void 0,"player_att"),g.B9(G)}})})().then(function(){W==null||W()}); else{var a=new g.zaG(this.videoData);if("c1a"in a.SQ&&!g.gz.isInitialized()){iU("att_wb",void 0,"player_att");this.Pz===2&&Math.random()<.01&&g.Ue(Error("Botguard not available after 2 attempts"));if(S)return;if(this.Pz<5){g.Cu(this.X4);this.Pz++;return}}(a=g.yD6(a))?(iU("att_f",void 0,"player_att"),j5P(this.zV,a),this.HF=!0):iU("att_e",void 0,"player_att")}}; g.V.ao=function(S){S=S===void 0?!1:S;return je(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.fE()||g.fp(this.videoData))?this.getCurrentTime():this.eD(S)}; g.V.tj=function(){return this.R6()}; g.V.eD=function(S){return this.XE.eD(S===void 0?!1:S)}; g.V.R6=function(){return this.XE.R6()}; g.V.DH=function(){return this.XE?this.XE.DH():0}; g.V.getStreamTimeOffset=function(){return this.XE?this.XE.getStreamTimeOffset():0}; g.V.BT=function(){return this.getStreamTimeOffset()===0?this.DH():this.getStreamTimeOffset()}; g.V.setPlaybackRate=function(S){var W;this.playbackRate!==S&&li_(this.i6,(W=this.videoData.B)==null?void 0:W.videoInfos)&&(this.playbackRate=S,AI(this));this.playbackRate=S;this.mediaElement&&this.mediaElement.setPlaybackRate(S)}; g.V.getPlaybackRate=function(){return this.playbackRate}; g.V.getPlaybackQuality=function(){var S="unknown";if(this.videoData.N&&(S=this.videoData.N.video.quality,S==="auto"&&this.mediaElement)){var W=this.Vk();W&&W.videoHeight>0&&(S=vt(W.videoWidth,W.videoHeight))}return S}; g.V.isHdr=function(){return!!(this.videoData.N&&this.videoData.N.video&&this.videoData.N.video.isHdr())}; g.V.sendVideoStatsEngageEvent=function(S,W){var m=this.zV;m.C?(m=nT(m.C,"engage"),m.q2=S,m.send(W)):W&&W()}; g.V.ju=function(S){return this.zV.ju(S)}; g.V.isAtLiveHead=function(S,W){W=W===void 0?!1:W;return je(this.videoData)&&(this.vV||W)?this.XE.isAtLiveHead(S):!1}; g.V.py=function(){var S=this.eD(),W=this.getCurrentTime(),m;(m=!je(this.videoData))||(m=this.XE,m=!(m.C&&m.C.B));return m||this.fE()||isNaN(S)||isNaN(W)?0:Math.max(0,S-W)}; g.V.UF=function(S){(this.vV=S)||this.QA.stop();if(this.videoData.C)if(S)this.videoData.C.resume();else{var W=this.videoData.C;W.j&&W.j.stop()}this.loader&&(W=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.Ae()&&this.videoData.isLivePlayback,S&&!W?this.loader.resume():W8(this,!0));g.C(this.playerState,2)||S?g.C(this.playerState,512)&&S&&this.vU(Qn(this.playerState,512)):this.vU(jJ(this.playerState,512));W=this.zV;W.qoe&&(W=W.qoe,g.Mv(W,g.eR(W.provider),"stream",[S?"A":"I"]))}; g.V.LQ=function(S){this.zV.vG("player.exception",m6({n:S.name,m:S.message}))}; g.V.oa=P_(18);g.V.Bk=P_(47);g.V.l6=function(S){this.zV.l6(S)}; g.V.F1=function(S){this.zV.F1(S)}; g.V.fp=function(S){this.zV.fp(S)}; g.V.tV=P_(24);g.V.hV=P_(30);g.V.Um=function(S){this.zV.Um(S)}; g.V.J4=function(S,W,m,a){this.zV.J4(S,W,m,a)}; g.V.u_=function(){this.iY("hidden",{},!0)}; g.V.Jo=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.V.z8=function(){return this.loader?this.loader.z8():!0}; g.V.setLoop=function(S){this.loop=S;this.mediaElement&&!g.pt(this.Y)&&this.mediaElement.setLoop(S)}; g.V.kV=function(){return this.mediaElement&&!g.pt(this.Y)?this.mediaElement.kV():this.loop}; g.V.bW=function(S){this.iY("timestamp",{o:S.toString()});this.XE.bW(S)}; g.V.HU=function(S){this.Pv.tick(S)}; g.V.uJ=function(S){return this.Pv.uJ(S)}; g.V.GS=function(S){this.Pv.GS(S)}; g.V.iY=function(S,W,m){this.zV.iY(S,W,m===void 0?!1:m)}; g.V.h8=function(S,W,m){this.zV.iY(S,W,m===void 0?!1:m)}; g.V.vG=function(S){this.zV.vG(S.errorCode,m6(S.details));S=S.errorCode;if(this.videoData.isLivePlayback&&(S==="qoe.longrebuffer"||S==="qoe.slowseek")||S==="qoe.restart"){S=this.loader?arc(this.loader.videoTrack):{};var W,m;this.iY("lasoe",Object.assign(this.loader?arc(this.loader.audioTrack):{},(W=this.K_)==null?void 0:(m=W.C)==null?void 0:m.QM()));var a,J;this.iY("lvsoe",Object.assign(S,(a=this.K_)==null?void 0:(J=a.N)==null?void 0:J.QM()))}if(this.T("html5_log_centralized_player_time")){var B;this.iY("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(B=this.loader)==null?void 0:os(B)})}}; g.V.rD=function(S,W,m){this.zV.rD(S,W,m)}; g.V.f8=function(S,W,m,a,J,B,E,y){var Y;if((Y=this.videoData.C)!=null&&Y.isLive){var G=W.playerType===2?W:S,K=S.videoData.videoId,T=W.videoData.videoId;if(K&&T){Y=this.zV;if(y==null?0:y.Tj){if(Y.qoe){K=Y.qoe;T=y.Tj;K.reportStats();var p=K.provider.videoData.clientPlaybackNonce,q=K.provider.videoData.videoId||"",F,O=((F=K.S5)==null?void 0:F.join("."))||p,X;F=((X=K.lC)==null?void 0:X.join("."))||q;$G(K,B?4:J?2:0,T.BY.join(".")||p,T.Pb.join(".")||q,a);K.reportStats();K.S5=T.BY;K.lC=T.Pb;K.No=T.adFormats; K.Jh=T.serializedQoeContextData;$G(K,B?5:J?3:1,O,F,m);K.reportStats()}}else if(Y.qoe){X=Y.qoe;F=S.cpn;p=W.cpn;q=G.videoData.M2;var l=X.provider.videoData.clientPlaybackNonce,M=X.provider.videoData.videoId;O=p!==l&&T!==M;l=F!==l&&K!==M;X.reportStats();X.adCpn&&X.adCpn!==F||(X.adCpn=l?F:"",X.U4=l?K:"",X.adFormat=l?q:void 0,$G(X,B?4:J?2:0,p,T,a),X.reportStats(),X.adCpn=O?p:"",X.U4=O?T:"",X.adFormat=O?q:void 0,$G(X,B?5:J?3:1,F,K,m),X.reportStats())}if(y==null?0:y.dX){var e=y.dX;if((a=Y.C)!=null){G=a.C.X; var d=a.provider.Y.ZH().C.QD(VON)||4E3;G>d&&pT(a)}var t;(t=Y.C)!=null&&KT(t.C);(a=Y.C)!=null&&(a=a.C,t=e.serializedStitchedClipLoggingMetadata,a.serializedPlaybackPingContextLoggingData=e.serializedPlaybackPingContextLoggingData,a.serializedStitchedClipLoggingMetadata=t);var h;(h=Y.C)!=null&&KT(h.C);var mD;(mD=Y.C)==null||pT(mD);(Y=Y.C)!=null&&(Y.Z=0)}else h=S.cpn,Y.B.has(h)?(mD=Y.B.get(h),sU(mD,!0).send(),VV(mD),h!==Y.provider.videoData.clientPlaybackNonce&&(pDP(mD),(d=Y.C)==null||pT(d),Y.B.delete(h))): (Y.vr=Y.provider.videoData.clientPlaybackNonce,Y.vr&&Y.C&&(Y.B.set(Y.vr,Y.C),sU(Y.C).send(),VV(Y.C))),h=W.cpn,mD=G.videoData,a-=this.BT(),Y.B.has(h)?(e=Y.B.get(h),mD=e.B&&isNaN(e.X)?FJ(e):NaN,e=G7O(e,!1),isNaN(mD)||(e.Z=mD),e.send()):(mD=XDP(Y,Y.provider,mD,a),Y.B.set(h,mD),Fn_(mD,new g.KZ(jJ(new g.uV,8),new g.uV)),mD.oi(),(e=Y.C)==null||VV(e)),Y.vr=h;if(this.T("html5_unify_csi_server_stitched_transition_logging")){if(Y=this.Pv,mD=S.cpn,S=W.cpn,e=this.videoData.clientPlaybackNonce,h=W.videoData,W= (0,g.X1)(),mD=(mD===e?"video":"ad")+"_to_"+(S===e?"video":"ad"),mD!=="video_to_ad"){e=mD==="ad_to_video"?void 0:h;a=e==null?void 0:e.eb;t={};if(h==null?0:h.V)t.cttAuthInfo={token:h.V,videoId:h.videoId};E&&(t.startTime=E);RP(mD,t);var SO,aK,EP;E={targetVideoId:(SO=h==null?void 0:h.videoId)!=null?SO:"empty_video",targetCpn:S,adVideoId:(aK=e==null?void 0:e.videoId)!=null?aK:"empty_video",adClientPlaybackNonce:(EP=a==null?void 0:a.cpn)!=null?EP:e==null?void 0:e.clientPlaybackNonce};a&&(E.adBreakType= a.adBreakType,E.adType=a.adType);g.LG(E,mD);K7(Y,W,mD)}}else SO=this.Pv,Y=this.videoData.clientPlaybackNonce,aK=(0,g.X1)(),EP=W.videoData,S=(S.cpn===Y?"video":"ad")+"_to_"+(W.cpn===Y?"video":"ad"),Y={},EP.V&&(Y.cttAuthInfo={token:EP.V,videoId:EP.videoId}),E&&(Y.startTime=E),RP(S,Y),g.LG({targetVideoId:EP.videoId,targetCpn:W.cpn,isSsdai:!0},S),E||K7(SO,aK,S)}}else g.jB(this.logger,360717806,"SSTEvent for nonSS")}; g.V.YA=function(){var S=this.Ec,W=S.AC;S.AC=[];return W}; g.V.T2=function(S){this.videoData.Mo=!0;this.vG(new g.a3("sabr.fallback",S));this.gp(!0)}; g.V.qg=function(S,W){this.videoData.a4=!0;if(W===void 0||W)this.vG(new g.a3("qoe.restart",S)),this.gp(!0)}; g.V.g6=function(S){this.iY("sdai",{aftimeout:S});this.vG(new g.a3("ad.fetchtimeout",{timeout:S}))}; g.V.L5=function(S,W){this.iY("timelineerror",S);S=new g.a3("dai.timelineerror",S);W?this.QP("dai.timelineerror",1,"RETRYABLE_ERROR",m6(S.details)):this.vG(S)}; g.V.Ro=function(){return g.eR(this.zV.provider)}; g.V.getPlayerSize=function(){return this.KD.getPlayerSize()}; g.V.bO=function(){return this.KD.bO()}; g.V.Zr=function(){return this.Pv}; g.V.jJ=function(){return this.Ec.jJ()}; g.V.getVolume=function(){return this.Ec.getVolume()}; g.V.UK=function(){return this.Ec.UK()}; g.V.isMuted=function(){return this.Ec.isMuted()}; g.V.n0=function(){return this.Ec.n0()}; g.V.ip=function(){this.Oi=!0}; g.V.T=function(S){return this.Y.T(S)}; g.V.ZH=function(){return this.Y.ZH()}; g.V.DR=function(S,W,m,a,J){this.iY("xvt",{m:S,g:W?1:0,tt:m?1:0,np:a?1:0,c:J})}; g.V.f5=function(){var S;(S=this.loader)==null||S.resume()}; g.V.Ae=function(){return g.oZ(this.pA,"ad")}; g.V.PA=function(){var S=this.getCurrentTime(),W=S-this.DH();var m=this.mediaElement?w1(this.mediaElement.gU()):0;m=Math.floor(Math.max(m-W,0))+100;var a;return((a=this.loader)==null?0:a.PA(W,m))?(this.iY("sdai",{skipad:1,ct:W.toFixed(3),adj:m.toFixed(3)}),eX(this.videoData)&&this.loader.seek(W+m,{seekSource:89,Jw:"videoplayer_skipServerStitchedAd"}),s$X(this.XE,S),!0):!1}; g.V.rd=function(){return this.Y.rd()}; g.V.Nz=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.Qa||"";this.Ec.nL();return this.Y.CC||""}; g.V.o8=function(){if(this.videoData.videoId)return this.videoData.hR}; g.V.sy=function(){return this.videoData.videoId}; g.V.zU=function(){return this.Ec.TL}; g.V.yl=function(){return this.UX}; g.V.T6=function(){return this.Ec.T6()}; g.V.Cu=function(S,W,m){this.vU(jJ(this.playerState,16,m));this.XE.Cu(S,W,m)}; g.V.prefetchKeyPlay=function(S,W){var m;(m=this.loader)==null||m.prefetchKeyPlay(S,W)}; g.V.iU=function(S){return this.XE.iU(S)}; g.V.WR=function(){this.XE.WR()}; g.V.MQ=function(S,W){var m=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.Ec.MQ(S,W,m)}; g.V.dD=function(S,W){this.zV.dD(S,W)}; g.V.HL=function(){return this.zV.HL()}; g.V.v4=function(){return this.Ec.v4()}; g.V.tW=function(){return this.Ec.tW(this)}; g.V.d1=function(){this.ZA=!0}; g.V.xR=function(S){var W;(W=this.loader)==null||W.xR(S)}; g.V.BR=function(S){this.XE.BR(S)}; var ST7={primary:"Primary",secondary:"Secondary"};g.u(vGO,Bs);g.u(J9,Tw);J9.prototype.C=function(S){S&&qn(this,this.W.getLoopVideo());this.W.logVisibility(this.element,S)}; J9.prototype.logClick=function(){this.W.logClick(this.element)}; J9.prototype.onLoopChange=function(S){qn(this,S)}; J9.prototype.N=function(S){this.W.setLoopVideo(S)};g.u(HjG,Bs);g.u(lkX,Bs);g.V=lkX.prototype;g.V.seekToChapterWithAnimation=function(S){var W=this;if(g.Ok(this.api)&&!(S<0)){var m=this.api.getVideoData(),a=m.qd;if(a&&S=0)return;W=~W;g.zt(this.items,W,0,S);LX(this.menuItems.element,S.element,W)}S.subscribe("size-change",this.Uw,this);this.menuItems.publish("size-change")}; g.V.Co=function(){JIj(this)||this.items[0].focus();return!0}; g.V.Na=function(){this.items[this.items.length-1].focus();return!0}; g.V.GY=function(S){S.unsubscribe("size-change",this.Uw,this);this.TN()||(g.Sm(this.items,S),this.menuItems.element.removeChild(S.element),this.menuItems.publish("size-change"))}; g.V.Uw=function(){this.menuItems.publish("size-change")}; g.V.focus=function(){for(var S=0,W=0;W1&&g.Qb(this)}; g.V.RH=function(){yI7(this);this.jg&&(EtP(this),g.qU(this.element,this.size))}; g.V.Nx=function(){var S=this.C.pop();zn6(this,S,this.C[this.C.length-1],!0)}; g.V.z1=function(S){if(!S.defaultPrevented)switch(S.keyCode){case 27:this.OV();S.preventDefault();break;case 37:this.C.length>1&&this.Nx();S.preventDefault();break;case 39:S.preventDefault()}}; g.V.focus=function(){this.C.length&&this.C[this.C.length-1].focus()}; g.V.j9=function(){CB.prototype.j9.call(this);this.B&&this.B.dispose();this.j&&this.j.dispose()};g.u(XB,g.Ot);XB.prototype.open=function(S,W){this.initialize(S.items)&&this.Uc(W,!!W)}; XB.prototype.initialize=function(S){g.gm(this.Ca);if(S===void 0||S.length===0)return!1;var W=S.length;S=g.R(S);for(var m=S.next();!m.done;m=S.next())this.xb(m.value,W--);return!0}; XB.prototype.xb=function(S,W){S.menuNavigationItemRenderer?KHD(this,S.menuNavigationItemRenderer,W):S.menuServiceItemRenderer&&TKP(this,S.menuServiceItemRenderer,W)};g.u(v8,Vb);g.V=v8.prototype;g.V.Ml=function(S){S.target!==this.dismissButton.element&&S.target!==this.overflowButton.element&&(this.N5(),this.onClickCommand&&this.W.f_("innertubeCommand",this.onClickCommand))}; g.V.PZ=function(){this.enabled=!1;this.S.hide()}; g.V.mw=function(){return!!this.C&&this.enabled}; g.V.onVideoDataChange=function(S,W){this.im(W);if(this.C){this.v7();a:if(!this.isCounterfactual){var m,a,J;this.banner.update({title:(m=this.C)==null?void 0:m.title,subtitle:(a=this.C)==null?void 0:a.subtitle,metadata:(J=this.C)==null?void 0:J.metadataText});var B;this.onClickCommand=g.n((B=this.C)==null?void 0:B.onTap,RY);var E;if(S=g.n((E=this.C)==null?void 0:E.onOverflow,RY))this.V=g.n(S,K8Q);var y;if((y=this.C)==null?0:y.thumbnailImage){var Y,G;E=((Y=this.C)==null?void 0:(G=Y.thumbnailImage)== null?void 0:G.sources)||[];if(E.length===0)break a;this.thumbnailImage.update({url:E[0].url})}else{var K;if((K=this.C)==null?0:K.thumbnailIconName){var T;this.thumbnailIcon.update({icon:(T=this.C)==null?void 0:T.thumbnailIconName})}}var p;this.shouldShowOverflowButton=!((p=this.C)==null||!p.shouldShowOverflowButton);var q;this.shouldHideDismissButton=!((q=this.C)==null||!q.shouldHideDismissButton)}var F;this.banner.element.setAttribute("aria-label",((F=this.C)==null?void 0:F.a11yLabel)||"");var O; this.zN=(O=this.C)==null?void 0:O.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;pA6(this)}}; g.V.C$9=function(){this.isVisible=!0;pA6(this)}; g.V.iPU=function(){this.isVisible=!1;pA6(this)}; g.V.vB=function(){Vb.prototype.vB.call(this);this.B&&this.W.logVisibility(this.banner.element,this.isVisible)}; g.V.N5=function(){Vb.prototype.N5.call(this,!1);this.B&&this.W.logClick(this.banner.element)}; g.V.Hu=function(S){this.X||(this.X=new XB(this.W),g.Z(this,this.X));var W,m;if((W=this.V)==null?0:(m=W.menu)==null?0:m.menuRenderer)this.X.open(this.V.menu.menuRenderer,S.target),S.preventDefault()}; g.V.im=function(){}; g.V.v7=function(){}; g.V.j9=function(){this.W.Tk("suggested_action_view_model");Vb.prototype.j9.call(this)};g.u(H8,v8); H8.prototype.im=function(S){var W,m,a;this.productUpsellSuggestedActionViewModel=g.n((W=S.getWatchNextResponse())==null?void 0:(m=W.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:a.suggestedActionViewModel,X9$);var J;if((J=this.productUpsellSuggestedActionViewModel)==null?0:J.content){var B;this.C=g.n((B=this.productUpsellSuggestedActionViewModel)==null?void 0:B.content,yN$)}var E,y;if(this.B=!!((E=this.productUpsellSuggestedActionViewModel)==null?0:(y=E.loggingDirectives)==null? 0:y.trackingParams)){var Y,G;this.W.setTrackingParams(this.banner.element,((Y=this.productUpsellSuggestedActionViewModel)==null?void 0:(G=Y.loggingDirectives)==null?void 0:G.trackingParams)||null)}var K;this.isCounterfactual=!((K=this.productUpsellSuggestedActionViewModel)==null||!K.isCounterfactualServing)}; H8.prototype.v7=function(){var S=[],W,m=g.R(((W=this.productUpsellSuggestedActionViewModel)==null?void 0:W.ranges)||[]);for(W=m.next();!W.done;W=m.next()){var a=W.value;a&&(W=Number(a.startTimeMilliseconds),a=Number(a.endTimeMilliseconds),isNaN(W)||isNaN(a)||S.push(new g.hD(W,a,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.W.oY(S)};g.u(FHP,Bs);g.u(la,Bs);la.prototype.onVideoDataChange=function(S,W){var m=this;if(!wO(W)&&(S==="newdata"&&sBc(this),this.C&&S==="dataloaded")){this.C=!1;var a;SP(wB(V2(this.api.J(),(a=this.api.getVideoData())==null?void 0:g.cB(a)),function(J){XAQ(m,J)}),function(){m.C=!0})}}; la.prototype.MP=function(){var S=this;if(g.pt(this.api.J())){var W,m=g.Fm(this.api.J(),(W=this.api.getVideoData())==null?void 0:g.cB(W));return wB(rB(m),function(a){var J=bt();og(J,a);return S.api.MP(J)})}return rB(this.api.MP())};g.u(g.M7,g.Ws);g.V=g.M7.prototype;g.V.open=function(){g.j7(this.C3,this.Ln)}; g.V.mT=function(S){HT_(this);var W=this.options[S];W&&(W.element.setAttribute("aria-checked","true"),this.setContent(this.tY(S)),this.B=S)}; g.V.f1=function(S){g.gm(this.Ln);for(var W={},m=!1,a=0;a=0?this.C.playbackRate:1}catch(S){return 1}}; g.V.setPlaybackRate=function(S){this.getPlaybackRate()!==S&&(this.C.playbackRate=S);return S}; g.V.kV=function(){return this.C.loop}; g.V.setLoop=function(S){this.C.loop=S}; g.V.canPlayType=function(S,W){return this.C.canPlayType(S,W)}; g.V.isPaused=function(){return this.C.paused}; g.V.isSeeking=function(){return this.C.seeking}; g.V.isEnded=function(){return this.C.ended}; g.V.K0=function(){return this.C.muted}; g.V.BJ=function(S){Kx();this.C.muted=S}; g.V.rq=function(){return this.C.played||o3([],[])}; g.V.gU=function(){try{var S=this.C.buffered}catch(W){}return S||o3([],[])}; g.V.JD=function(){return this.C.seekable||o3([],[])}; g.V.Kl=function(){var S=this.C;return S.getStartDate?S.getStartDate():null}; g.V.getCurrentTime=function(){return this.C.currentTime}; g.V.setCurrentTime=function(S){this.C.currentTime=S}; g.V.getDuration=function(){return this.C.duration}; g.V.load=function(){var S=this.C.playbackRate;try{this.C.load()}catch(W){}this.C.playbackRate=S}; g.V.pause=function(){this.C.pause()}; g.V.play=function(){var S=this.C.play();if(!S||!S.then)return null;S.then(void 0,function(){}); return S}; g.V.s$=function(){return this.C.readyState}; g.V.rk=function(){return this.C.networkState}; g.V.mI=function(){return this.C.error?this.C.error.code:null}; g.V.TY=function(){return this.C.error?this.C.error.message:""}; g.V.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.C instanceof window.HTMLVideoElement&&this.C.getVideoPlaybackQuality)return this.C.getVideoPlaybackQuality();if(this.C){var S=this.C,W=S.webkitDroppedFrameCount;if(S=S.webkitDecodedFrameCount)return{droppedVideoFrames:W||0,totalVideoFrames:S}}return{}}; g.V.Sr=function(){return!!this.C.webkitCurrentPlaybackTargetIsWireless}; g.V.cA=function(){return!!this.C.webkitShowPlaybackTargetPicker()}; g.V.togglePictureInPicture=function(){var S=this.C,W=window.document;window.document.pictureInPictureEnabled?this.C!==W.pictureInPictureElement?S.requestPictureInPicture():W.exitPictureInPicture():Gx()&&S.webkitSetPresentationMode(S.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.V.Bc=function(){return pFG(this.C)}; g.V.getSize=function(){return g.ph(this.C)}; g.V.setSize=function(S){g.qU(this.C,S)}; g.V.getVolume=function(){return this.C.volume}; g.V.setVolume=function(S){Kx();this.C.volume=S}; g.V.x_=function(S){this.N[S]||(this.C.addEventListener(S,this.listener),this.N[S]=this.listener)}; g.V.setAttribute=function(S,W){this.C.setAttribute(S,W)}; g.V.removeAttribute=function(S){this.C.removeAttribute(S)}; g.V.hasAttribute=function(S){return this.C.hasAttribute(S)}; g.V.zJ=P_(53);g.V.iC=P_(56);g.V.ND=P_(59);g.V.M_=P_(62);g.V.Pd=function(){return jY(this.C)}; g.V.mP=function(S){g.Bn(this.C,S)}; g.V.S8=function(S){return g.Jb(this.C,S)}; g.V.Nl=function(){return g.xg(document.body,this.C)}; g.V.audioTracks=function(){var S=this.C;if("audioTracks"in S)return S.audioTracks}; g.V.j9=function(){for(var S=g.R(Object.keys(this.N)),W=S.next();!W.done;W=S.next())W=W.value,this.C.removeEventListener(W,this.N[W]);nP.prototype.j9.call(this)}; g.V.Xu=function(S){this.C.disableRemotePlayback=S};g.u($P,g.b);g.u(t9,g.b);t9.prototype.show=function(){g.b.prototype.show.call(this);this.L_()}; t9.prototype.hide=function(){g.b.prototype.hide.call(this);this.delay.stop();this.j.stop()}; t9.prototype.L_=function(){var S=(0,g.X1)(),W=$Qc(this.E9);h9(this.C,W.bandwidth_samples);h9(this.V,W.network_activity_samples);h9(this.B,W.live_latency_samples);h9(this.N,W.buffer_health_samples);var m={};W=g.R(Object.entries(W));for(var a=W.next();!a.done;a=W.next()){var J=g.R(a.value);a=J.next().value;J=J.next().value;this.Z[a]!==J&&(m[a]=" "+String(J));this.Z[a]=J}this.update(m);S=(0,g.X1)()-S>25?5E3:500;this.delay.start(S)}; t9.prototype.S=function(){this.X?(this.position+=1,this.position>15&&(this.X=!1)):(--this.position,this.position<=0&&(this.X=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.j.start(2E4)};g.u(AIQ,Bs);g.u(A9,g.A);A9.prototype.C=function(){var S=(0,g.X1)()-this.startTime;S=Sthis.j[S])&&(this.C=S,this.Mu())}; g.V.onCueRangeExit=function(S){var W=auO(this,S);W&&this.C===S&&this.api.f_("innertubeCommand",W);ba(this);this.C=void 0}; g.V.aV=function(S){this.B=S}; g.V.u9=function(){this.Mu();this.B=void 0}; g.V.Mu=function(){if(this.C!==void 0){var S=(S=N7(this,this.C))&&S.onCueRangeEnter?xz(S.onCueRangeEnter):void 0;var W=N7(this,this.C);a:if(W&&W.additionalTrigger){var m=g.R(W.additionalTrigger);for(var a=m.next();!a.done;a=m.next())if(a=a.value,a.type){var J=void 0,B=void 0;if((J=this.Xn[a.type])==null?0:J((B=a.args)!=null?B:{})){m=!0;break a}}m=!1}else m=!0;S&&m&&(this.api.f_("innertubeCommand",S),J9j(this,W),this.j[this.C]!==void 0&&this.j[this.C]++,this.bY=!0)}}; g.V.j9=function(){this.timelyActions=this.B=this.C=this.videoId=void 0;this.j={};this.Y8();ba(this);Bs.prototype.j9.call(this)};g.u(zJj,Bs);g.u(o4,Tw);o4.prototype.j=function(S){this.B(S?2:1)}; o4.prototype.FG=function(){var S=this.W.getPresentingPlayerType();S===2||S===3?this.C&&(this.C=!1,this.C3.GY(this)):(S=this.getVoiceBoostState(),S!==1?(S===0?(qn(this,this.N()===2),this.setEnabled(!0)):(qn(this,!1),this.setEnabled(!1)),this.C||(this.C3.xb(this),this.C=!0)):this.C&&(this.C3.GY(this),this.C=!1))}; o4.prototype.j9=function(){this.C3.GY(this);Tw.prototype.j9.call(this)};g.u(rm,Bs);rm.prototype.getVoiceBoostUserPreference=function(){return this.C}; rm.prototype.setVoiceBoostUserPreference=function(S){this.api.iY("vb_set",{pref:S});g.i7("yt-player-voice-boost",S,31536E4);S!==this.C&&(this.C=S,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.dS(),this.api.Br())}; rm.prototype.getVoiceBoostState=function(){return this.api.xM(1)}; rm.prototype.updateEnvironmentData=function(){this.api.J().dQ=this.C};g.u(c8,Bs);c8.prototype.j9=function(){this.S&&(g.O7(this.S),this.S=void 0);Bs.prototype.j9.call(this)}; c8.prototype.nL=function(){(this.N?!this.C:this.B)&&Sb(this)}; c8.prototype.yd=function(S,W,m){var a=this;if(GPQ(S)){var J=m||"";if(this.C)W=WZ(this,J),K07(S,W);else{var B=new g.Th;W.push(B.promise);this.X.promise.then(function(){var E=WZ(a,J);K07(S,E);B.resolve()})}}}; c8.prototype.I0=function(S){var W=this;if(this.N||this.B)S.Qa=WZ(this,S.videoId),this.C||(this.j=new Vn,this.X.promise.then(function(){W.Pv.uJ("pot_if");S.Qa=WZ(W,S.videoId)}))};g.u(mq,g.b);g.V=mq.prototype;g.V.Y$=function(){var S=this.W.getVideoData(1),W,m,a=(m=((S==null?0:(W=S.suggestions)==null?0:W.length)?S.suggestions:(S==null?0:g.Kp(S))?[g.Kp(S)]:[])[0])==null?void 0:m.Zf("mqdefault.jpg");this.N&&a&&g.mg(this.N,"background-image",a?'url("'+a+'")':"")}; g.V.onClick=function(){this.W.logClick(this.element)}; g.V.gA=function(S){this.Fz([1,2].includes(S));j4_(this,S)}; g.V.Fz=function(S){g.b.prototype.Fz.call(this,S);this.element.setAttribute("aria-hidden",String(!S));S&&this.Y$()}; g.V.j9=function(){g.b.prototype.j9.call(this)};g.u(g.J_,g.b);g.J_.prototype.select=function(){this.api.n6(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.wk||void 0)&&this.api.logClick(this.element)}; g.J_.prototype.onClick=function(S){if(g.f9(this.api.J())&&this.api.T("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var W=this.suggestion.Lk(),m={};g.k8(this.api,m);W=g.ex(W,m);g.F4(W,this.api,S)}else g.pi(S,this.api,this.N,this.suggestion.sessionData||void 0)&&this.select()}; g.J_.prototype.onKeyPress=function(S){switch(S.keyCode){case 13:case 32:S.defaultPrevented||(this.select(),S.preventDefault())}}; g.J_.prototype.onVideoDataChange=function(){var S=this.api.getVideoData(),W=this.api.J();this.N=S.uP?!1:W.j};g.u(X8X,g.b);g.V=X8X.prototype;g.V.j9=function(){this.hide();g.eY(this.Z);g.sH(this.stills);this.stills.length=0;this.B&&(this.B.remove(),this.B=void 0);this.C&&(this.C.remove(),this.C=void 0);this.N&&(this.N.remove(),this.N=void 0);g.b.prototype.j9.call(this)}; g.V.setCommentsButton=function(S){S!==this.C&&(this.C&&this.C.remove(),this.C=S)&&(g.Bn(this.C,"ytp-fullscreen-grid-action-button"),this.S.appendChild(this.C))}; g.V.setDescriptionButton=function(S){S!==this.N&&(this.N&&this.N.remove(),this.N=S)&&(g.Bn(this.N,"ytp-fullscreen-grid-action-button"),LX(this.S,this.N,0))}; g.V.Dl=function(S){this.q2&&this.q2(S)}; g.V.onVideoDataChange=function(){if(!this.vn){this.videoData=this.player.getVideoData(1);var S,W,m,a,J;var B=(((S=this.videoData)==null?0:(W=S.suggestions)==null?0:W.length)?(m=this.videoData)==null?void 0:m.suggestions:((a=this.videoData)==null?0:g.Kp(a))?[(J=this.videoData)==null?void 0:g.Kp(J)]:[]).slice(0,18);if((S=this.N2)&&this.j)if(g.UN(S),B.length)for(this.stills.length>B.length&&g.sH(this.stills.splice(B.length)),this.stills.length=B.length,W=0;W=0;S--)this.features[S].dispose();this.features.length=0;g.A.prototype.j9.call(this)};x76.prototype.reset=function(){this.C=this.N=NaN};g.V=id6.prototype;g.V.reset=function(){Hz(this.timerName)}; g.V.tick=function(S,W){UY(S,W,this.timerName)}; g.V.uJ=function(S){return xm(S,void 0,this.timerName)}; g.V.GS=function(S){g.eJ(S,void 0,this.timerName)}; g.V.infoGel=function(S){g.LG(S,this.timerName)};g.u(Pac,g.au);g.V=Pac.prototype;g.V.hasNext=function(S){return this.loop||!!S||this.index+1=0}; g.V.setShuffle=function(S){this.shuffle=S;S=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var W=0;W=W.top&&S.right<=W.right&&S.bottom<=W.bottom&&S.left>=W.left))return}eb(this,2,!1)}; g.V.bT=function(S){var W=new g.an(S.pageX,S.pageY);J8(W,this.j)||(this.j=W,(S=S.target)&&this.FN(S)&&(eb(this,4,!0),this.C.TC(this.B),this.B=this.C.K(this.target,"mouseover",this.rC),this.Z=this.C.K(this.target,"mouseout",this.rC)))}; g.V.rC=function(S){S=S.relatedTarget;S&&this.FN(S)||(this.j=new g.an(NaN,NaN),jWD(this))}; g.V.H32=function(){eb(this,1,!0)}; g.V.zt=function(S){S=S.target;S instanceof Element&&!(S.tabIndex>0)||eb(this,1,!0)}; g.V.bE=function(){this.V=!0;this.C.TC(this.X);this.X=this.C.K(document,"mouseup",this.Og)}; g.V.Og=function(){this.V=!1;eb(this,8,!1);this.C.TC(this.X);this.X=this.C.K(this.target,"mousedown",this.bE)}; g.V.iE=function(S){if(S=(S=S.changedTouches)&&S[0])this.Xn=S.identifier,this.C.TC(this.S),this.S=this.C.K(this.target,"touchend",this.Zy,void 0,!0),eb(this,1024,!0)}; g.V.Zy=function(S){if(S=S.changedTouches)for(var W=0;W1280||J>720)if(W=a.Zf("maxresdefault.jpg"))break;if(B>640||J>480)if(W=a.Zf("maxresdefault.jpg"))break;if(B>320||J>180)if(W=a.Zf("sddefault.jpg")||a.Zf("hqdefault.jpg")||a.Zf("mqdefault.jpg"))break;if(W=a.Zf("default.jpg"))break}g.Y5(S)&&(S=new Image,S.addEventListener("load", function(){Naj()}),S.src=W?W:"",this.api.Zr().tick("ftr")); this.j.style.backgroundImage=W?"url("+W+")":""};g.u(g.PZ,g.b);g.PZ.prototype.resize=function(){}; g.PZ.prototype.N=function(S){var W=this;this.B=!1;vbG(this);var m=S.EU,a=this.api.J();m!=="GENERIC_WITHOUT_LINK"||a.V?m==="TOO_MANY_REQUESTS"?(a=this.api.getVideoData(),this.setContent($b(this,"TOO_MANY_REQUESTS_WITH_LINK",a.Lk(),void 0,void 0,void 0,!1))):m!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||a.V?this.api.J().T("html5_enable_bandaid_error_screen")&&m==="HTML5_SPS_UMP_STATUS_REJECTED"&&!a.V?(a=a.hostLanguage,S="//support.google.com/youtube?p=videoError",a&&(S=g.ex(S,{hl:a})),this.setContent($b(this, "HTML5_SPS_UMP_STATUS_REJECTED",S))):this.api.J().T("enable_adb_handling_in_sabr")&&m==="BROWSER_OR_EXTENSION_ERROR"&&!a.V?(a=a.hostLanguage,S="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",a&&(S=g.ex(S,{hl:a})),this.setContent($b(this,"BROWSER_OR_EXTENSION_ERROR",S))):this.setContent(g.f7(S.errorMessage)):this.setContent($b(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(S=a.hostLanguage,m= "//support.google.com/youtube/?p=player_error1",S&&(m=g.ex(m,{hl:S})),this.setContent($b(this,"GENERIC_WITH_LINK_AND_CPN",m,!0)),a.EV&&!a.j&&XZc(this,function(B){if(g.pi(B,W.api,!ay(W.api.J()))){B={as3:!1,html5:!0,player:!0,cpn:W.api.getVideoData().clientPlaybackNonce};var E=W.api;E.NE("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:B});E.isFullscreen()&&E.toggleFullscreen()}})); if(this.B){var J=this.I2("ytp-error-link");J&&(this.api.createClientVe(J,this,216104),this.api.logVisibility(J,!0),XZc(this,function(){W.api.logClick(J)}))}}; var QWQ=/([^<>]+)<\/a>/;g.u(H7P,g.b);H7P.prototype.nW=function(S,W,m){m=m===void 0?!1:m;switch(W){case 1:h_(this,S,this.B,m);break;case 2:h_(this,S,this.j,m);break;case 3:h_(this,S,this.C,m);break;case 4:h_(this,S,this.N,m)}};g.u(l77,g.b);g.V=l77.prototype;g.V.onClick=function(S){this.innertubeCommand?(this.W.f_("innertubeCommand",this.innertubeCommand),S.preventDefault()):g.pi(S,this.W,!0);this.W.logClick(this.element)}; g.V.onVideoDataChange=function(S,W){UHQ(this,W);this.Ud&&LqK(this,this.Ud)}; g.V.Eg=function(S){var W=this.W.getVideoData();this.videoId!==W.videoId&&UHQ(this,W);this.C&&LqK(this,S.state);this.Ud=S.state}; g.V.Uc=function(){this.fade.show();this.W.publish("paidcontentoverlayvisibilitychange",!0);this.W.logVisibility(this.element,!0)}; g.V.OV=function(){this.fade.hide();this.W.publish("paidcontentoverlayvisibilitychange",!1);this.W.logVisibility(this.element,!1)};g.u(t_,g.b);t_.prototype.hide=function(){this.C.stop();this.message.style.display="none";g.b.prototype.hide.call(this)}; t_.prototype.onStateChange=function(S){this.gA(S.state)}; t_.prototype.gA=function(S){if(g.C(S,128)||this.api.yl())var W=!1;else{var m;W=this.api.T("web_watch_enable_multiview_manager")&&((m=this.api.getVideoData())==null?0:wO(m))?!1:g.C(S,16)||g.C(S,1)?!0:!1}W?this.C.start():this.hide()}; t_.prototype.N=function(){this.message.style.display="block"};g.u(A_,CB);A_.prototype.onMutedAutoplayChange=function(S){this.N&&(S?(REG(this),this.Uc()):(this.C&&this.logClick(),this.OV()))}; A_.prototype.b6=function(S){this.api.isMutedByMutedAutoplay()&&g.qb(S,2)&&this.OV()}; A_.prototype.onClick=function(){this.api.unMute();this.logClick()}; A_.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.u(g.Z7,g.Tx);g.V=g.Z7.prototype;g.V.init=function(){var S=this.api,W=S.getPlayerStateObject();this.nO=S.getPlayerSize();this.vU(W);this.Ol();this.Qc();this.api.publish("basechromeinitialized",this);this.V3()&&this.api.publish("standardControlsInitialized")}; g.V.onVideoDataChange=function(S,W){var m=this.XF!==W.videoId;if(m||S==="newdata")S=this.api,S.isFullscreen()||(this.nO=S.getPlayerSize());m&&(this.XF=W.videoId,m=this.DD,m.Pn=3E3,eb(m,512,!0),this.Ol());this.api.T("web_render_jump_buttons")&&W.showSeekingControls&&(this.P7=572)}; g.V.hV2=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.V.gb=function(){var S=this.api.C1()&&this.api.ai(),W=this.api.FT();return this.vK||S||this.Q3||W}; g.V.jt=function(){var S=!this.gb();g.GD(this.api.getRootNode(),"ytp-menu-shown",!S)}; g.V.FN=function(S){try{if(!g.xg(this.api.getRootNode(),S))return!1}catch(W){return!1}for(;S&&!dY(S);)S=S===this.api.getRootNode()?null:S.parentElement||null;return!!S}; g.V.Dx=function(S){var W=this.api.getRootNode();g.GD(W,"ytp-autohide",S);g.GD(W,"ytp-autohide-active",!0);this.JQ.start(S?250:100);S&&(this.Le=!1,g.zD(W,"ytp-touch-mode"));this.BK=!S;this.api.oZ(!S);this.api.T("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",S)}; g.V.GK=function(){var S=this.api.getRootNode();g.GD(S,"ytp-autohide-active",!1)}; g.V.miQ=function(){this.aC=!0}; g.V.di9=function(S){if(this.api.J().T("player_doubletap_to_seek")||this.api.J().Z)this.aC=!1,this.wL&&this.TC(this.wL),this.xr===0&&NH(this,S)?(this.e0(),this.I8.start(),this.wL=this.K(this.api.k6(),"touchmove",this.miQ,void 0,!0)):this.I8.stop();dHP(this)&&NH(this,S)&&!this.api.J().Z&&xHQ(this);var W=this.X$.wj();if(!g.f9(this.api.J())&&iI&&I7X(this,S))W&&S.preventDefault();else if(this.Le=!0,g.Bn(this.api.getRootNode(),"ytp-touch-mode"),this.DD.Ta(),this.api.J().T("player_doubletap_to_seek")||this.api.J().Z)if(W= this.api.getPlayerStateObject(),!(!this.api.lJ()||g.C(W,2)&&g.d_(this.api)||g.C(W,64))){W=Date.now()-this.oK;this.xr+=1;if(W<=350){this.Ut=!0;W=this.api.getPlayerSize().width/3;var m=this.api.getRootNode().getBoundingClientRect(),a=S.targetTouches[0].clientX-m.left;m=S.targetTouches[0].clientY-m.top;var J=(this.xr-1)*10;a>0&&aW*2&&a=650,a=S.width<528;this.DD.resize();if(this.api.T("web_player_use_screen_width_for_big_mode")){var J,B=S.width>=((J=g.Db(this.api.J().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?J:2E3);g.GD(W,"ytp-big-mode",B)}g.GD(W,"ytp-fullscreen",this.api.isFullscreen());g.GD(W,"ytp-large-width-mode",m);this.api.T("delhi_modern_web_player")?g.GD(W,"ytp-xsmall-width-mode",a):g.GD(W,"ytp-small-mode",this.fC()); g.GD(W,"ytp-tiny-mode",this.Dn());g.GD(W,"ytp-big-mode",this.wp());this.O2&&this.O2.resize(S)}; g.V.b6=function(S){this.vU(S.state);this.Ol()}; g.V.Ti=P_(5);g.V.j0=function(){var S=!!this.XF&&!this.api.wU()&&!this.q9,W=this.api.getPresentingPlayerType()===2,m=this.api.J();if(W)return m=l_(this.api.GV()),S&&(m&&m.player?S=(S=m.player.getVideoData(2))?S.isListed&&!g.TS(m.player.J()):!1:(GI("showInfoBarDuringAd: this is null"),S=!1)),S;W=m.T("web_player_imax_theater_mode")&&this.api.JE()&&!this.api.isInline();return S&&(m.hN||W||this.api.isFullscreen()||m.vQ)}; g.V.Ol=function(){var S=this.j0();this.wS!==S&&(this.wS=S,g.GD(this.api.getRootNode(),"ytp-hide-info-bar",!S))}; g.V.vU=function(S){var W=S.isCued()||this.api.xG()&&this.api.getPresentingPlayerType()!==3;W!==this.isCued&&(this.isCued=W,this.Ai&&this.TC(this.Ai),this.Ai=this.K(this.api.k6(),"touchstart",this.di9,void 0,W));var m=this.DD,a=S.isPlaying()&&!g.C(S,32)||this.api.jd();eb(m,128,!a);m=this.DD;a=this.api.getPresentingPlayerType()===3;eb(m,256,a);m=this.api.getRootNode();g.C(S,2)?a=[ob.ENDED]:(a=[],g.C(S,8)?a.push(ob.PLAYING):g.C(S,4)&&a.push(ob.PAUSED),g.C(S,1)&&!g.C(S,32)&&a.push(ob.BUFFERING),g.C(S, 32)&&a.push(ob.SEEKING),g.C(S,64)&&a.push(ob.UNSTARTED));g.p$(this.Cq,a)||(g.YC(m,this.Cq),this.Cq=a,g.Eo(m,a));a=this.api.J();var J=g.C(S,2);a:{var B=this.api.J();var E=B.controlsType;switch(E){case "2":case "0":B=!1;break a}B=E==="3"&&!g.C(S,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Vc6(l_(this.api.GV())))||this.api.FT()||g.f9(B)&&this.api.getPresentingPlayerType()===2?!1:!0}g.GD(m,"ytp-hide-controls",!B);g.GD(m,"ytp-native-controls",a.controlsType==="3"&&!W&&!J&&!this.Q3);g.C(S, 128)&&!g.f9(a)?(this.O2||(this.O2=new g.PZ(this.api),g.Z(this,this.O2),g.tc(this.api,this.O2.element,4)),this.O2.N(S.Of),this.O2.show()):this.O2&&(this.O2.dispose(),this.O2=null)}; g.V.oN=function(){return this.api.C1()&&this.api.ai()?(this.api.Wx(!1,!1),!0):this.api.wU()?(g.Ig(this.api,!0),!0):!1}; g.V.onMutedAutoplayChange=function(S){this.Q3=S;this.jt()}; g.V.wp=function(){return!1}; g.V.fC=function(){return!this.wp()&&(this.api.getPlayerSize().width=0&&W.left>=0&&W.bottom>W.top&&W.right>W.left?W:null;W=this.size;S=S.clone();W=W.clone();a&&(E=W,J=5,(J&65)==65&&(S.x=a.right)&&(J&=-2),(J&132)==132&&(S.y=a.bottom)&&(J&=-5),S.xa.right&&(E.width=Math.min(a.right-S.x,B+E.width-a.left),E.width=Math.max(E.width,0))),S.x+E.width>a.right&&J&1&&(S.x=Math.max(a.right-E.width,a.left)),S.ya.bottom&&(E.height=Math.min(a.bottom-S.y,B+E.height-a.top),E.height=Math.max(E.height,0))),S.y+E.height>a.bottom&&J&4&&(S.y=Math.max(a.bottom-E.height,a.top)));a=new g.wY(0,0,0,0);a.left=S.x;a.top=S.y;a.width= W.width;a.height=W.height;g.Yr(this.element,new g.an(a.left,a.top));g.eY(this.N);this.N.K(cf(this),"contextmenu",this.eW9);this.N.K(this.W,"fullscreentoggled",this.onFullscreenToggled);this.N.K(this.W,"pageTransition",this.z0)}; g.V.eW9=function(S){if(!S.defaultPrevented){var W=M5(S);g.xg(this.element,W)||this.OV();this.W.J().disableNativeContextMenu&&S.preventDefault()}}; g.V.onFullscreenToggled=function(){this.OV();YhP(this)}; g.V.z0=function(){this.OV()};g.u(Wc,g.b);Wc.prototype.onClick=function(){var S=this,W,m,a,J;return g.k(function(B){if(B.C==1)return W=S.api.J(),m=S.api.getVideoData(),a=S.api.getPlaylistId(),J=W.getVideoUrl(m.videoId,a,void 0,!0),g.P(B,T4X(S,J),2);B.N&&K5O(S);S.api.logClick(S.element);g.B9(B)})}; Wc.prototype.L_=function(){this.updateValue("icon",{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.updateValue("tooltip-title","Copy link");this.visible=G9P(this);g.GD(this.element, "ytp-copylink-button-visible",this.visible);this.Fz(this.visible);this.tooltip.iK();this.api.logVisibility(this.element,this.visible&&this.bY)}; Wc.prototype.Nd=function(S){g.b.prototype.Nd.call(this,S);this.api.logVisibility(this.element,this.visible&&S)}; Wc.prototype.j9=function(){g.b.prototype.j9.call(this);g.zD(this.element,"ytp-copylink-button-visible")};g.u(qhD,g.b);g.V=qhD.prototype;g.V.show=function(){g.b.prototype.show.call(this);g.Cu(this.N)}; g.V.hide=function(){this.j.stop();this.B=0;this.I2("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.zD(this.element,"ytp-chapter-seek");g.zD(this.element,"ytp-time-seeking");g.b.prototype.hide.call(this)}; g.V.qU=function(S,W,m,a){this.B=S===this.V?this.B+a:a;this.V=S;var J=S===-1?this.S:this.Z;J&&this.W.logClick(J);this.X?this.N.stop():g.Dh(this.N);this.j.start();this.element.setAttribute("data-side",S===-1?"back":"forward");var B=3*this.W.k6().getPlayerSize().height;J=this.W.k6().getPlayerSize();J=J.width/3-3*J.height;this.C.style.width=B+"px";this.C.style.height=B+"px";S===1?(this.C.style.left="",this.C.style.right=J+"px"):S===-1&&(this.C.style.right="",this.C.style.left=J+"px");var E=B*2.5;B=E/ 2;var y=this.I2("ytp-doubletap-ripple");y.style.width=E+"px";y.style.height=E+"px";S===1?(S=this.W.k6().getPlayerSize().width-W+Math.abs(J),y.style.left="",y.style.right=S-B+"px"):S===-1&&(S=Math.abs(J)+W,y.style.right="",y.style.left=S-B+"px");y.style.top="calc((33% + "+Math.round(m)+"px) - "+B+"px)";if(m=this.I2("ytp-doubletap-ripple"))m.classList.remove("ytp-doubletap-ripple"),m.classList.add("ytp-doubletap-ripple");pc7(this,this.X?this.B:a)}; g.V.jY=function(S,W,m){if(m=m===void 0?null:m){var a=S===-1?this.S.visualElement:this.Z.visualElement;m={seekData:m};var J=g.uR();J&&Sa(J,a,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",m)}this.B=S===this.V?this.B+W:W;this.V=S;a=this.W.k6().getPlayerSize();this.X?this.N.stop():g.Dh(this.N);this.j.start();this.element.setAttribute("data-side",S===-1?"back":"forward");g.Bn(this.element,"ytp-time-seeking");this.C.style.width="110px";this.C.style.height="110px";m=a.width*.1-15;S===1?this.N2?(this.C.style.right= m+"px",this.C.style.left=""):(this.C.style.right="",this.C.style.left=a.width*.8-30+"px"):S===-1&&(this.N2?(this.C.style.right="",this.C.style.left=m+"px"):(this.C.style.right="",this.C.style.left=a.width*.1-15+"px"));this.C.style.top=a.height*.5+15+"px";pc7(this,this.X?this.B:W)}; g.V.u7=function(S,W,m){m=m===void 0?null:m;g.Dh(this.N);this.j.start();switch(S){case -1:S="back";break;case 1:S="forward";break;default:S=""}this.element.setAttribute("data-side",S);this.C.style.width="0";this.C.style.height="0";g.Bn(this.element,"ytp-chapter-seek");this.updateValue("seekText",W);this.updateValue("seekTime","");W=this.I2("ytp-seek-icon");if(m){a:if(m){switch(m){case "PREMIUM_STANDALONE":m=G1D();break a;case "PREMIUM_STANDALONE_CAIRO":m=Km6();break a}m=void 0}else m=null;this.updateValue("seekIcon", m);W.style.display="inline-block"}else W.style.display="none"};g.u(VrD,Vb);g.V=VrD.prototype;g.V.Fj=function(S){this.Hn||(this.Hn=new XB(this.W),g.Z(this,this.Hn));var W,m;if((W=this.IL)==null?0:(m=W.menu)==null?0:m.menuRenderer)this.Hn.open(this.IL.menu.menuRenderer,S.target),S.preventDefault()}; g.V.mw=function(){return!!this.C}; g.V.AJ=function(){return!!this.C}; g.V.Ml=function(S){S.target===this.overflowButton.element?S.preventDefault():(this.Cn&&this.W.f_("innertubeCommand",this.Cn),this.N5(!1))}; g.V.PZ=function(){this.N5(!0);var S,W;if((S=this.C)==null?0:(W=S.bannerData)==null?0:W.dismissedStatusKey){if(this.Y6.includes(this.C.bannerData.dismissedStatusKey))return;this.Y6.push(this.C.bannerData.dismissedStatusKey)}this.p8();this.W.T("web_enable_shopping_timely_shelf_client")&&(S={},g.iR(S,Epv,{overlayId:"player_overlay_timely_shelf"}),this.W.f_("innertubeCommand",S))}; g.V.eG=function(){this.p8();Jt(this)}; g.V.YfX=function(S){var W=this,m;if(S.id!==((m=this.C)==null?void 0:m.identifier)){this.p8();m=g.R(this.Xn);for(var a=m.next();!a.done;a=m.next()){var J=a.value,B=void 0,E=void 0;if((a=(B=J)==null?void 0:(E=B.bannerData)==null?void 0:E.itemData)&&J.identifier===S.id){E=B=void 0;var y=((B=J)==null?void 0:(E=B.bannerData)==null?void 0:E.dismissedStatusKey)||"";if(this.Y6.includes(y))return;this.C=J;this.banner.element.setAttribute("aria-label",a.accessibilityLabel||"");a.trackingParams&&(this.N=!0, this.W.setTrackingParams(this.badge.element,a.trackingParams));this.show();this.S.show();FB(this);this.Pn.Fz(!a.stayInApp);MrP(this);sTj(this);aT(this);this.Cn=g.n(a.onTapCommand,RY);if(J=g.n(a.menuOnTap,RY))this.IL=g.n(J,K8Q);J=void 0;this.banner.update({thumbnail:(J=(a.thumbnailSources||[])[0])==null?void 0:J.url,title:a.productTitle,price:a.priceReplacementText?a.priceReplacementText:a.price,salesOriginalPrice:ODc(this),priceDropReferencePrice:jTD(this),promotionText:g2P(this),priceA11yText:QTl(this), affiliateDisclaimer:a.affiliateDisclaimer,vendor:XcQ(this)});y=E=B=J=void 0;((J=a)==null?0:(B=J.hiddenProductOptions)==null?0:B.showDropCountdown)&&((E=a)==null?0:(y=E.hiddenProductOptions)==null?0:y.dropTimestampMs)&&(this.EV=new g.rj(function(){laD(W)},1E3),this.Pn.hide(),this.countdownTimer.show(),laD(this)); this.W.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&n2P(this)&&(this.yT=new g.rj(function(){ubG(W)},1E3),ubG(this))}}this.W.getRootNode()&&g.Bn(this.W.getRootNode(),"ytp-featured-product-shown")}}; g.V.p8=function(){this.C&&(this.C=void 0,this.e1(),this.W.getRootNode()&&g.zD(this.W.getRootNode(),"ytp-featured-product-shown"))}; g.V.onVideoDataChange=function(S,W){var m=this;F5G(this,W);S==="dataloaded"&&Jt(this);var a,J,B;S=g.n((a=W.getWatchNextResponse())==null?void 0:(J=a.playerOverlays)==null?void 0:(B=J.playerOverlayRenderer)==null?void 0:B.productsInVideoOverlayRenderer,YQH);this.overflowButton.show();this.dismissButton.hide();var E=S==null?void 0:S.featuredProductsEntityKey;this.trendingOfferEntityKey=S==null?void 0:S.trendingOfferEntityKey;this.Xn.length||(HDl(this,E),aT(this));var y;(y=this.qd)==null||y.call(this); this.qd=g.qW.subscribe(function(){HDl(m,E);aT(m)})}; g.V.j9=function(){Jt(this);MrP(this);sTj(this);Vb.prototype.j9.call(this)};g.u(dNl,g.b);dNl.prototype.onClick=function(){this.W.logClick(this.element,this.B);if(this.W.T("embeds_enable_info_panel_dismissal")&&this.C&&this.feedbackToken){var S=this.W.MP();if(S==null?0:GH6(this.C,S.t7))IP(S,this.C,{feedbackTokens:[this.feedbackToken]}),this.W.publish("infopaneldetaildismissed")}};g.u(IaX,CB);g.V=IaX.prototype;g.V.show=function(){CB.prototype.show.call(this);this.W.publish("infopaneldetailvisibilitychange",!0);this.W.logVisibility(this.element,!0);Pi6(this,!0)}; g.V.hide=function(){CB.prototype.hide.call(this);this.W.publish("infopaneldetailvisibilitychange",!1);this.W.logVisibility(this.element,!1);Pi6(this,!1)}; g.V.getId=function(){return this.B}; g.V.YV=function(){return this.itemData.length}; g.V.onVideoDataChange=function(S,W){if(W){var m,a,J,B;this.update({title:((m=W.xK)==null?void 0:(a=m.title)==null?void 0:a.content)||"",body:((J=W.xK)==null?void 0:(B=J.bodyText)==null?void 0:B.content)||""});var E;S=((E=W.xK)==null?void 0:E.trackingParams)||null;this.W.setTrackingParams(this.element,S);E=g.R(this.itemData);for(S=E.next();!S.done;S=E.next())S.value.dispose();this.itemData=[];var y;if((y=W.xK)==null?0:y.ctaButtons)for(W=g.R(W.xK.ctaButtons),y=W.next();!y.done;y=W.next())if(y=g.n(y.value, mxH))y=new dNl(this.W,y,this.C),y.LP&&(this.itemData.push(y),y.GN(this.items))}}; g.V.j9=function(){this.hide();CB.prototype.j9.call(this)};g.u($NP,g.b);g.V=$NP.prototype;g.V.onVideoDataChange=function(S,W){k9G(this,W);this.Ud&&trK(this,this.Ud)}; g.V.SF=function(S){var W=this.W.getVideoData();this.videoId!==W.videoId&&k9G(this,W);trK(this,S.state);this.Ud=S.state}; g.V.AP=function(S){(this.B=S)?this.hide():this.C&&!this.isDismissed&&this.show()}; g.V.Dy=function(){this.N||this.Uc();this.showControls=!0}; g.V.h5=function(){this.N||this.OV();this.showControls=!1}; g.V.Uc=function(){if(!this.isDismissed){var S,W=(S=this.W)==null?void 0:S.getPlayerSize();S=W.width<380;var m;W=W.height<(((m=this.W)==null?0:m.isEmbedsShortsMode())?400:280);var a,J;(((a=this.W)==null?0:a.getPlayerStateObject().isCued())||((J=this.W)==null?0:g.C(J.getPlayerStateObject(),1024)))&&S&&W||!this.C||this.B||(this.fade.show(),this.W.publish("infopanelpreviewvisibilitychange",!0),this.W.logVisibility(this.element,!0))}}; g.V.OV=function(){this.C&&!this.B&&(this.fade.hide(),this.W.publish("infopanelpreviewvisibilitychange",!1),this.W.logVisibility(this.element,!1))}; g.V.ufq=function(){this.N=!1;this.showControls||this.OV()};var yx9={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(yx9).reduce(function(S,W){S[yx9[W]]=W;return S},{}); var YRQ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(YRQ).reduce(function(S,W){S[YRQ[W]]=W;return S},{}); var GCp={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(GCp).reduce(function(S,W){S[GCp[W]]=W;return S},{});var KW$,Tbx;KW$=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Tbx=[{option:0,text:Bc(0)},{option:.25,text:Bc(.25)},{option:.5,text:Bc(.5)},{option:.75,text:Bc(.75)},{option:1,text:Bc(1)}]; g.Y2=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font colour",options:KW$},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Bc(.5)},{option:-1,text:Bc(.75)},{option:0,text:Bc(1)},{option:1,text:Bc(1.5)},{option:2, text:Bc(2)},{option:3,text:Bc(3)},{option:4,text:Bc(4)}]},{option:"background",text:"Background colour",options:KW$},{option:"backgroundOpacity",text:"Background opacity",options:Tbx},{option:"windowColor",text:"Window colour",options:KW$},{option:"windowOpacity",text:"Window opacity",options:Tbx},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:Bc(.25)},{option:.5,text:Bc(.5)},{option:.75,text:Bc(.75)},{option:1,text:Bc(1)}]}];var qRN=[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.u(rtO,g.Tx);g.V=rtO.prototype; g.V.C7=function(S){S.repeat||(this.B.R3=!1);var W=!1,m=S.keyCode,a=M5(S),J=!S.altKey&&!S.ctrlKey&&!S.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||qRN.includes(m)),B=!1,E=!1,y=this.api.J();S.defaultPrevented?(J=!1,E=!0):y.Od&&!this.api.isMutedByEmbedsMutedAutoplay()&&(J=!1);if(m===9)W=!0;else{if(a)switch(m){case 32:case 13:if(a.tagName==="BUTTON"||a.tagName==="A"||a.tagName==="INPUT")W=!0,J=!1;else if(J){var Y=a.getAttribute("role");!Y||Y!=="option"&&Y!=="button"&&Y.indexOf("menuitem")!==0|| (W=!0,a.click(),B=!0)}break;case 37:case 39:case 36:case 35:W=a.getAttribute("role")==="slider";break;case 38:case 40:Y=a.getAttribute("role"),a=m===38?a.previousSibling:a.nextSibling,Y==="slider"?W=!0:J&&(Y==="option"?(a&&a.getAttribute("role")==="option"&&a.focus(),B=W=!0):Y&&Y.indexOf("menuitem")===0&&(a&&a.hasAttribute("role")&&a.getAttribute("role").indexOf("menuitem")===0&&a.focus(),B=W=!0))}if(J&&!B)switch(m){case 38:B=Math.min(this.api.getVolume()+5,100);rX(this.Zz,B,!1);this.api.setVolume(B); E=B=!0;break;case 40:B=Math.max(this.api.getVolume()-5,0);rX(this.Zz,B,!0);this.api.setVolume(B);E=B=!0;break;case 36:this.api.lJ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),E=B=!0);break;case 35:this.api.lJ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),E=B=!0)}}W&&z9(this,!0);(W||E)&&this.DD.Ta();(B||J&&this.handleGlobalKeyDown(m,S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code,S.repeat))&&S.preventDefault();y.S&&(S={keyCode:S.keyCode, altKey:S.altKey,ctrlKey:S.ctrlKey,metaKey:S.metaKey,shiftKey:S.shiftKey,handled:S.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.ZD("onKeyPress",S))}; g.V.bD=function(S){var W=S.keyCode;!this.B.LZ&&this.handleGlobalKeyUp(W,S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code)&&S.preventDefault()}; g.V.handleGlobalKeyUp=function(S,W,m,a,J,B,E){this.api.publish("keyboardserviceglobalkeyup",{keyCode:S,shiftKey:W,ctrlKey:m,altKey:a,metaKey:J,key:B,code:E});W=!1;if(this.B.R3)return W;(B=g.$8(this.api.GV()))&&(B=B.AR)&&B.jg&&(B.Ma(S),W=!0);switch(S){case 9:z9(this,!0);W=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&!this.api.J().Od){var y,Y;S=(y=this.progressBar)==null?void 0:(Y=y.N)==null?void 0:Y.isEnabled;W=this.WJ(S)}break;case 39:(this.api.T("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(J||m&&a))&&(Qk?a:m)&&this.api.lJ()&&this.api.T("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),y=(y=this.api.getVideoData())?y.qd:[],Y=ZDQ(y,this.api.getCurrentTime()*1E3),Y!==-1&&this.C!=null&&(this.C.u7(1,y[Y].title),this.api.seekTo(y[Y].startTime/1E3,void 0,void 0,void 0,52),W=!0))}return W}; g.V.handleGlobalKeyDown=function(S,W,m,a,J,B,E,y){y||(this.B.R3=!1);var Y=!1,G=this.api.J();if(G.Od&&!this.api.isMutedByEmbedsMutedAutoplay())return Y;var K=g.$8(this.api.GV());if(K&&(K=K.AR)&&K.jg)switch(S){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:Y=K.xI(S)}G.V||Y||(Y=B||String.fromCharCode(S).toLowerCase(),this.N+=Y,"awesome".indexOf(this.N)===0||this.api.T("web_player_rtr_ctrls")&&"bday".indexOf(this.N)===0?(Y=!0,4===this.N.length&&this.N==="bday"&&this.api.T("web_player_rtr_ctrls")&& (PJQ(this.X),this.DD.Ta()),7===this.N.length&&this.N==="awesome"&&yV6(this.api.getRootNode(),"ytp-color-party")):(this.N=Y,Y="awesome".indexOf(this.N)===0||"bday".indexOf(this.N)===0));if(!Y&&(!this.api.isMutedByEmbedsMutedAutoplay()||qRN.includes(S))){var T=this.api.getVideoData(),p,q;K=(p=this.progressBar)==null?void 0:(q=p.N)==null?void 0:q.isEnabled;p=T?T.qd:[];q=Qk?a:m;switch(S){case 80:W&&!G.O9&&(oW(this.Zz,TUO(),"Previous"),this.api.previousVideo(),Y=!0);break;case 78:W&&!G.O9&&(oW(this.Zz, gC(),"Next"),this.api.nextVideo(),Y=!0);break;case 74:this.api.lJ()&&(this.api.startSeekCsiAction(),this.C?this.api.T("enable_key_press_seek_logging")?(Y=yd(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.C.jY(-1,10,Y)):this.C.jY(-1,10):oW(this.Zz,{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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),Y=!0);break;case 76:this.api.lJ()&&(this.api.startSeekCsiAction(),this.C?this.api.T("enable_key_press_seek_logging")?(Y=yd(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.C.jY(1,10,Y)):this.C.jY(1,10):oW(this.Zz,{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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),Y=!0);break;case 37:if(this.api.lJ())if(this.api.startSeekCsiAction(),q){if(this.api.T("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(J||m&&a))q=N4l(p,this.api.getCurrentTime()*1E3),q!==-1&&this.C!=null&&(this.C.u7(-1,p[q].title),this.api.seekTo(p[q].startTime/1E3,void 0,void 0,void 0,53),Y=!0)}else this.C?this.api.T("enable_key_press_seek_logging")?(Y=yd(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.C.jY(-1,5,Y)):this.C.jY(-1,5):oW(this.Zz,{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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),Y=!0;break;case 39:this.api.lJ()&&(this.api.startSeekCsiAction(),q?this.api.T("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.T("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(J||m&&a)||(q=ZDQ(p,this.api.getCurrentTime()*1E3),q!==-1&&this.C!=null&&(this.C.u7(1,p[q].title),this.api.seekTo(p[q].startTime/1E3,void 0,void 0,void 0,52),Y=!0)):(this.C!=null?this.api.T("enable_key_press_seek_logging")?(Y=yd(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.C.jY(1,5,Y)):this.C.jY(1,5):oW(this.Zz,{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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),Y=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),rX(this.Zz,this.api.getVolume(),!1)):(this.api.mute(),rX(this.Zz,0,!0));Y=!0;break;case 32:Y=this.api.T("web_speedmaster_spacebar_control")?!this.api.J().O9:this.WJ(K);break;case 75:Y=this.WJ(K);break;case 190:W?G.enableSpeedOptions&&ct_(this)&&(Y=this.api.getPlaybackRate(),this.api.setPlaybackRate(Y+.25,!0),f7c(this.Zz,!1),Y=!0):this.api.lJ()&&(this.step(1),Y=!0);break;case 188:W? G.enableSpeedOptions&&ct_(this)&&(Y=this.api.getPlaybackRate(),this.api.setPlaybackRate(Y-.25,!0),f7c(this.Zz,!0),Y=!0):this.api.lJ()&&(this.step(-1),Y=!0);break;case 70:lFP(this.api)&&(this.api.toggleFullscreen().catch(function(){}),Y=!0); break;case 27:K?(this.progressBar.PW(),Y=!0):this.Z()&&(Y=!0)}if(G.controlsType!=="3")switch(S){case 67:g.jb(this.api.GV())&&(G=this.api.getOption("captions","track"),this.api.toggleSubtitles(),kFP(this.Zz,!G||G&&!G.displayName),Y=!0);break;case 79:G9(this,"textOpacity");break;case 87:G9(this,"windowOpacity");break;case 187:case 61:G9(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:G9(this,"fontSizeIncrement",!0,!0)}var F;W||m||a||(S>=48&&S<=57?F=S-48:S>=96&&S<=105&&(F=S-96));F!=null&&this.api.lJ()&& !this.api.T("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),G=this.api.getProgressState(),this.api.seekTo(F/10*(G.seekableEnd-G.seekableStart)+G.seekableStart,void 0,void 0,void 0,81),Y=!0);Y&&this.DD.Ta()}this.B.jk=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:S,shiftKey:W,ctrlKey:m,altKey:a,metaKey:J,key:B,code:E,repeat:y},this.B);this.B.jk&&(Y=!0,this.DD.Ta());return Y}; g.V.step=function(S){this.api.lJ();if(this.api.getPlayerStateObject().isPaused()){var W=this.api.getVideoData().N;W&&(W=W.video)&&this.api.seekBy(S/(W.fps||30),void 0,void 0,S>0?77:78)}}; g.V.WJ=function(S){if(!this.api.J().O9){var W;var m,a=(W=this.api.getVideoData())==null?void 0:(m=W.getPlayerResponse())==null?void 0:m.playabilityStatus;if(a){var J;W=((J=g.n(a.miniplayer,sZw))==null?void 0:J.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else W=!1;W&&this.api.f_("onExpandMiniplayer");S?this.progressBar.z2():(S=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Zz.EQ(S),S?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.V.j9=function(){g.Dh(this.j);g.Tx.prototype.j9.call(this)};g.u(KD,g.b);KD.prototype.L_=function(){var S=this.W.J(),W=S.B||this.W.T("web_player_hide_overflow_button_if_empty_menu")&&this.wE.isEmpty();S=g.f9(S)&&g.fB(this.W)&&g.C(this.W.getPlayerStateObject(),128);var m=this.W.getPlayerSize();this.visible=this.W.fC()&&!S&&m.width>=240&&!this.W.getVideoData().uP&&!W&&!this.W.isEmbedsShortsMode();g.GD(this.element,"ytp-overflow-button-visible",this.visible);this.Fz(this.visible);this.visible&&this.W.iK();this.W.logVisibility(this.element,this.visible&&this.bY)}; KD.prototype.Nd=function(S){g.b.prototype.Nd.call(this,S);this.W.logVisibility(this.element,this.visible&&S)}; KD.prototype.j9=function(){g.b.prototype.j9.call(this);g.zD(this.element,"ytp-overflow-button-visible")};g.u(DN6,CB);g.V=DN6.prototype;g.V.Ug=function(S){S=M5(S);g.xg(this.element,S)&&(g.xg(this.C,S)||g.xg(this.closeButton,S)||DT(this))}; g.V.OV=function(){CB.prototype.OV.call(this);this.W.D7(this.element)}; g.V.show=function(){this.jg&&this.W.publish("OVERFLOW_PANEL_OPENED");CB.prototype.show.call(this);this.element.setAttribute("aria-modal","true");S9j(this,!0)}; g.V.hide=function(){CB.prototype.hide.call(this);this.element.removeAttribute("aria-modal");S9j(this,!1)}; g.V.onFullscreenToggled=function(S){!S&&this.wj()&&DT(this)}; g.V.isEmpty=function(){return this.actionButtons.length===0}; g.V.focus=function(){for(var S=g.R(this.actionButtons),W=S.next();!W.done;W=S.next())if(W=W.value,W.jg){W.focus();break}};g.u(WFD,g.b);WFD.prototype.onClick=function(S){g.pi(S,this.api)&&this.api.playVideoAt(this.index)};g.u(mmO,CB);g.V=mmO.prototype;g.V.show=function(){CB.prototype.show.call(this);this.C.K(this.api,"videodatachange",this.k$);this.C.K(this.api,"onPlaylistUpdate",this.k$);this.k$()}; g.V.hide=function(){CB.prototype.hide.call(this);g.eY(this.C);this.updatePlaylist(null)}; g.V.k$=function(){this.updatePlaylist(this.api.getPlaylist());this.api.J().B&&(this.I2("ytp-playlist-menu-title-name").removeAttribute("href"),this.N&&(this.TC(this.N),this.N=null))}; g.V.Sm=function(){var S=this.playlist,W=S.author,m=W?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",a={CURRENT_POSITION:String(S.index+1),PLAYLIST_LENGTH:String(S.length)};W&&(a.AUTHOR=W);this.update({title:S.title,subtitle:g.Wo(m,a),playlisturl:this.api.getVideoUrl(!0)});W=S.N;if(W===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[S.index];else{m=g.R(this.playlistData);for(a=m.next();!a.done;a=m.next())a.value.dispose(); m=S.length;this.playlistData=[];for(a=0;a=this.N&&!S.B&&!W.isAd()&&!this.api.isEmbedsShortsMode()}else S=!1;this.visible=S;this.Fz(this.visible);g.GD(this.element,"ytp-search-button-visible",this.visible);g.GD(this.element,"ytp-show-search-title",!this.api.fC());this.api.logVisibility(this.element,this.visible&&this.bY)}; Fb.prototype.Nd=function(S){g.b.prototype.Nd.call(this,S);this.api.logVisibility(this.element,this.visible&&S)};g.u(Vd,g.b); Vd.prototype.trigger=function(S,W,m,a){this.show();if(this.N&&S!==this.N){var J=1;this.B&&(J=pVQ(this));Y9D(this,J,!1);q96(this)}this.N=S;this.j=this.N===-1?this.Z:this.S;S="";W?(this.N===-1&&this.W.getCurrentTime()<=W?this.X=W:this.X+=W,S=(this.N===-1?"\u2212":"+")+" "+this.X):this.X=0;this.updateValue(this.N===-1?"durationBack":"durationForward",S);if(this.C==="hidden"||this.C==="fading-out")W=0,this.C==="fading-out"&&(W=pVQ(this),T$j(this)),GL6(this,W),this.C!=="fading-out"&&KF7(this,this.j.querySelector(".ytp-seek-overlay-arrow-persistent")), this.C="fading-in";else if(this.C==="fading-in"||this.C==="lingering")W=this.j.querySelector(".ytp-seek-overlay-duration"),S=g.Db(this.W.J().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("+S+")"},{offset:1,transform:"scale(1)"}],{duration:184}),T$j(this),this.C==="lingering"&&(this.V.stop(),this.V.start());m&&FFP(this, m,a)}; Vd.prototype.qU=function(S,W,m,a){this.trigger(S,a)}; Vd.prototype.jY=function(S,W,m){this.trigger(S,W);m&&(S=S===-1?this.S.visualElement:this.Z.visualElement,m={seekData:m},(W=g.uR())&&Sa(W,S,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",m))}; Vd.prototype.u7=function(S,W,m){this.trigger(S,void 0,W,m)};g.u(nD,g.b);nD.prototype.onClick=function(){var S=this,W=this.api.J(),m=this.api.getVideoData(this.api.getPresentingPlayerType()),a=this.api.getPlaylistId();W=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):W.getVideoUrl(m.videoId,a,void 0,!0);if(navigator.share)try{var J=navigator.share({title:m.title,url:W});J instanceof Promise&&J.catch(function(B){nj6(S,B)})}catch(B){B instanceof Error&&nj6(this,B)}else this.C.oN(),DT(this.N,this.element,!1); this.api.logClick(this.element)}; nD.prototype.L_=function(){var S=this.api.J(),W=this.api.isEmbedsShortsMode();g.GD(this.element,"ytp-show-share-title",g.f9(S)&&!W);this.C.wp()&&W?(S=(this.api.k6().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.mg(this.element,"right",S+"px")):W&&g.mg(this.element,"right","0px");this.updateValue("icon",{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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=VzD(this);g.GD(this.element,"ytp-share-button-visible",this.visible);this.Fz(this.visible);this.tooltip.iK();this.api.logVisibility(this.element,VzD(this)&&this.bY)}; nD.prototype.Nd=function(S){g.b.prototype.Nd.call(this,S);this.api.logVisibility(this.element,this.visible&&S)}; nD.prototype.j9=function(){g.b.prototype.j9.call(this);g.zD(this.element,"ytp-share-button-visible")};g.u(u06,CB);g.V=u06.prototype;g.V.h_=function(S){S=M5(S);g.xg(this.j,S)||g.xg(this.closeButton,S)||DT(this)}; g.V.OV=function(){CB.prototype.OV.call(this);this.tooltip.D7(this.element);this.api.logVisibility(this.C,!1);for(var S=g.R(this.N),W=S.next();!W.done;W=S.next())W=W.value,this.api.hasVe(W.element)&&this.api.logVisibility(W.element,!1)}; g.V.show=function(){var S=this.jg;CB.prototype.show.call(this);this.L_();S||this.api.f_("onSharePanelOpened")}; g.V.fHN=function(){this.jg&&this.L_()}; g.V.L_=function(){var S=this;g.Bn(this.element,"ytp-share-panel-loading");g.zD(this.element,"ytp-share-panel-fail");var W=this.api.getVideoData(),m=this.api.getPlaylistId()&&this.B.checked;W.getSharePanelCommand&&IP(this.api.MP(),W.getSharePanelCommand,{includeListId:m}).then(function(a){S.TN()||(g.zD(S.element,"ytp-share-panel-loading"),jHG(S,a))}); W=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",W);this.updateValue("linkText",W);this.updateValue("shareLinkWithUrl",g.Wo("Share link $URL",{URL:W}));sa(this.C);this.api.logVisibility(this.C,!0)}; g.V.onFullscreenToggled=function(S){!S&&this.wj()&&DT(this)}; g.V.focus=function(){this.C.focus()}; g.V.j9=function(){CB.prototype.j9.call(this);gj6(this)};g.u(vjP,Vb);g.V=vjP.prototype;g.V.j9=function(){LFP(this);Vb.prototype.j9.call(this)}; g.V.Ml=function(S){S.target!==this.dismissButton.element&&(this.N5(!1),this.W.f_("innertubeCommand",this.onClickCommand))}; g.V.PZ=function(){this.hX=!0;this.N5(!0);this.e1()}; g.V.ArN=function(S){this.V=S;this.e1()}; g.V.onVideoDataChange=function(S,W){if(S=!!W.videoId&&this.videoId!==W.videoId)this.videoId=W.videoId,this.hX=!1,this.q2=!0,this.Z=this.vn=!1,LFP(this),Umc(this,!1),this.B=this.C=!1,ui(this),H3K(this);if(S||!W.videoId)this.N2=this.N=!1;var m,a;if(W==null?0:(m=W.getPlayerResponse())==null?0:(a=m.videoDetails)==null?0:a.isLiveContent)this.P1(!1);else{var J,B,E;W=g.n((J=W.getWatchNextResponse())==null?void 0:(B=J.playerOverlays)==null?void 0:(E=B.playerOverlayRenderer)==null?void 0:E.productsInVideoOverlayRenderer, YQH);this.V=this.enabled=!1;if(W){if(J=W==null?void 0:W.featuredProductsEntityKey){B=g.qW.getState().entities;var y;if((y=rF(B,"featuredProductsEntity",J))==null?0:y.productsData){this.P1(!1);return}}if(!W.text||!W.onClickCommand||!W.timing){this.P1(!1);return}this.enabled=!0;if(!this.N){var Y;y=(Y=W.badgeInteractionLogging)==null?void 0:Y.trackingParams;(this.N=!!y)&&this.W.setTrackingParams(this.badge.element,y||null)}if(!this.N2){var G;if(this.N2=!((G=W.dismissButton)==null||!G.trackingParams)){var K; this.W.setTrackingParams(this.dismissButton.element,((K=W.dismissButton)==null?void 0:K.trackingParams)||null)}}W.isContentForward&&(Y=W.productsData,Umc(this,!0),H3K(this),Y=MzG(this,Y),G=[],Y.length>0&&G.push(Y[0]),Y.length>1&&(K=new g.b({G:"div",L:"ytp-suggested-action-more-products-icon"}),g.Z(this,K),G.push(K),G.push.apply(G,g.x(Y.slice(1)))),this.X=new g.b({G:"div",U:G,L:"ytp-suggested-action-content-forward-container"}),g.Z(this,this.X),this.s9.element.append(this.X.element));this.text=g.K8(W.text); var T;if(Y=(T=W.dismissButton)==null?void 0:T.a11yLabel)this.zN=g.K8(Y);this.onClickCommand=W.onClickCommand;this.timing=W.timing;this.oY()}aXK(this);FB(this);this.e1()}}; g.V.mw=function(){return!this.V&&this.enabled&&!this.hX&&!this.W.fC()&&!this.Wv&&(this.Z||this.q2)}; g.V.g1=function(S){Vb.prototype.g1.call(this,S);if(this.C||this.B)this.timing&&sh(this.timing.preview)&&(this.C=!1,ui(this),this.B=!1,ui(this),this.W.Tk("shopping_overlay_preview_collapsed"),this.W.Tk("shopping_overlay_preview_expanded"),S=g4(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),sh(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.W.Tk("shopping_overlay_expanded"),S.end=this.timing.expanded.endSec*1E3),this.W.oY([S])), this.vn=!0,FB(this);ui(this)}; g.V.P1=function(S){(this.Z=S)?(pd(this),FB(this,!1)):(LFP(this),this.O9.start());this.e1()}; g.V.oY=function(S){var W=this.timing;S=(S===void 0?0:S)+this.W.getCurrentTime();var m=[],a=W.visible,J=W.preview;W=W.expanded;sh(a)&&(QHl(a,S),m.push(g4(a.startSec,a.endSec,"shopping_overlay_visible")));sh(J)&&(QHl(J,S),a=J.startSec+1,m.push(g4(J.startSec,a,"shopping_overlay_preview_collapsed")),m.push(g4(a,J.endSec,"shopping_overlay_preview_expanded")));sh(W)&&(QHl(W,S),m.push(g4(W.startSec,W.endSec,"shopping_overlay_expanded")));this.W.oY(m)}; g.V.e1=function(){Vb.prototype.e1.call(this);this.W.getRootNode()&&g.GD(this.W.getRootNode(),"ytp-shopping-pill-shown",this.mw())};g.u(xmX,g.b); xmX.prototype.L_=function(){var S=this.api.J();this.Fz(g.f9(S)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.jg);var W=this.api.getVideoData(),m=!1;this.api.getPresentingPlayerType()===2?m=!!W.videoId&&!!W.isListed&&!!W.author&&!!W.O9&&!!W.profilePicture:g.f9(S)&&(m=!!W.videoId&&!!W.O9&&!!W.profilePicture&&!W.uP&&!S.B&&!(S.Z&&this.api.getPlayerSize().width<200));var a=W.profilePicture;S=g.f9(S)?W.expandedTitle:W.author;a=a===void 0? "":a;S=S===void 0?"":S;m?(this.N!==a&&(this.C.style.backgroundImage="url("+a+")",this.N=a),this.updateValue("channelLogoLabel",g.Wo("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:S})),g.Bn(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.zD(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.C,m&&this.bY);this.api.logVisibility(this.channelName,m&&this.bY);this.subscribeButton&&(this.subscribeButton.channelId=W.Z7);this.updateValue("expandedTitle",W.expandedTitle)};g.u(Oh,CB);Oh.prototype.show=function(){CB.prototype.show.call(this);this.C.start()}; Oh.prototype.hide=function(){CB.prototype.hide.call(this);this.C.stop()}; Oh.prototype.uZ=function(S,W){S==="dataloaded"&&((this.K9=W.K9,this.hj=W.hj,isNaN(this.K9)||isNaN(this.hj))?this.N&&(this.W.Tk("intro"),this.W.removeEventListener(g.AD("intro"),this.Z),this.W.removeEventListener(g.Z5("intro"),this.j),this.W.removeEventListener("onShowControls",this.B),this.hide(),this.N=!1):(this.W.addEventListener(g.AD("intro"),this.Z),this.W.addEventListener(g.Z5("intro"),this.j),this.W.addEventListener("onShowControls",this.B),S=new g.hD(this.K9,this.hj,{priority:9,namespace:"intro"}), this.W.oY([S]),this.N=!0))};g.u(jr,g.b);jr.prototype.onClick=function(){this.W.cA()}; jr.prototype.L_=function(){var S=!0;g.f9(this.W.J())&&(S=S&&this.W.k6().getPlayerSize().width>=480);this.Fz(S);S=this.updateValue;var W=this.W.T("delhi_modern_web_player_icons"),m=W?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,D:{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?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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"}}]};S.call(this,"icon",this.W.Sr()?m:W)};g.u(dml,g.b);dml.prototype.j9=function(){this.C=null;g.b.prototype.j9.call(this)};g.u(Qd,g.b);Qd.prototype.onClick=function(){this.W.f_("innertubeCommand",this.N)}; Qd.prototype.S=function(){if(this.W.T("delhi_modern_web_player")){var S=this.W.getPlayerSize();S.width&&(this.element.style.maxWidth=S.width*.25+"px")}}; Qd.prototype.vn=function(S){S!==this.V&&(this.update({chapterTitle:S,ariaLabel:S}),this.V=S);S?this.show():this.hide()}; Qd.prototype.N2=function(){this.C.disabled=this.N==null;g.GD(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Zb()};g.u(Xb,Qd);Xb.prototype.onClickCommand=function(S){g.n(S,TR)&&this.Zb()}; Xb.prototype.updateVideoData=function(S,W){var m,a,J;S=g.n((m=W.getWatchNextResponse())==null?void 0:(a=m.playerOverlays)==null?void 0:(J=a.playerOverlayRenderer)==null?void 0:J.decoratedPlayerBarRenderer,f1);m=g.n(S==null?void 0:S.playerBarActionButton,vG);if(this.W.T("web_player_updated_entrypoint")){this.Z=EK(m==null?void 0:m.text);var B;a=(B=m==null?void 0:m.tooltip)!=null?B:"View chapter";this.X.setAttribute("title",a)}this.N=m==null?void 0:m.command;Qd.prototype.N2.call(this)}; Xb.prototype.Zb=function(){var S=this.Z,W=this.j.C,m,a=((m=this.W.getLoopRange())==null?void 0:m.type)==="clips";if(W.length>1&&!a){S=this.W.getProgressState().current*1E3;m=Eh(W,S);S=W[m].title||"Chapters";if(m!==this.currentIndex||this.B)this.W.f_("innertubeCommand",W[m].onActiveCommand),this.currentIndex=m;this.B=!1}else this.B=!0;Qd.prototype.vn.call(this,S)};g.u(vc,g.yG);vc.prototype.N=function(){var S;(S=this.element.parentElement)==null||S.classList.contains("ytp-right-controls-left");(this.C=!this.C)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; vc.prototype.isExpanded=function(){return this.C};g.u(Hc,g.b);Hc.prototype.B=function(S){g.C(S.state,32)?PSX(this,this.api.LW()):this.jg&&(g.C(S.state,16)||g.C(S.state,1))||this.fade.hide()}; Hc.prototype.onProgress=function(){var S=this.api.getPlayerStateObject();(g.C(S,32)||g.C(S,16))&&fnP(this)}; Hc.prototype.j=function(){this.frameIndex=NaN;fnP(this)}; Hc.prototype.hide=function(){this.C&&PSX(this,null);g.b.prototype.hide.call(this)};g.u(kLK,g.b);g.V=kLK.prototype;g.V.onClick=function(){var S=this;if(this.W.J().uY||this.W.J().Z){this.W.logClick(this.element);try{this.W.toggleFullscreen().catch(function(W){S.SP(W)})}catch(W){this.SP(W)}}else DT(this.message,this.element,!0)}; g.V.SP=function(S){String(S).includes("fullscreen error")?g.Ue(S):g.lR(S);this.Lh()}; g.V.Lh=function(){this.disable();this.message.Uc(this.element,!0)}; g.V.An=function(){O2()===this.W.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.V.IA=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var S=window.screen.width*.9,W=window.screen.height*.9,m=Math.max(window.outerWidth,window.innerWidth),a=Math.max(window.outerHeight,window.innerHeight);if(m>a!==S>W){var J=m;m=a;a=J}S>m&&W>a&&this.Lh()}}; g.V.disable=function(){var S=this;if(!this.message){var W=(s2(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new CB(this.W,{G:"div",Wn:["ytp-popup","ytp-generic-popup"],D:{role:"alert",tabindex:"0"},U:[W[0],{G:"a",D:{href:"https://support.google.com/youtube/answer/6276924", target:this.W.J().bY},Bn:W[2]},W[4]]},100,!0);this.message.hide();g.Z(this,this.message);this.message.subscribe("show",function(m){S.N.k_(S.message,m)}); g.tc(this.W,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.C)();this.C=null}}; g.V.L_=function(){var S=lFP(this.W),W=this.W.J().Z&&this.W.getPlayerSize().width<250;this.Fz(S&&!W);this.W.logVisibility(this.element,this.jg)}; g.V.Gz=function(S){if(S){var W=g.Rg(this.W,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.W.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(m){g.Ue(m)})}else W=g.Rg(this.W,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); S=$m6(this,S);W=this.message?null:W;this.W.J().T("player_tooltip_data_title_killswitch")?this.update({title:W,icon:S}):this.update({"tooltip-title":W,"aria-label":W,icon:S});this.N.Dz().iK()}; g.V.j9=function(){this.message||((0,this.C)(),this.C=null);g.b.prototype.j9.call(this)}; g.V.Nd=function(S){g.b.prototype.Nd.call(this,S)};g.u(li,g.b);li.prototype.onClick=function(){this.W.logClick(this.element);this.W.seekBy(this.C,!0);var S=this.C>0?1:-1,W=Math.abs(this.C),m=this.W.VB().vL;m&&m.jY(S,W);this.N.isActive()?this.B=!0:(S=["ytp-jump-spin"],this.C<0&&S.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x(S)),g.Cu(this.N))};g.u(MN,Qd);MN.prototype.onClickCommand=function(S){g.n(S,zvp)&&this.Zb()}; MN.prototype.updateVideoData=function(){var S,W;this.N=(S=tz6(this))==null?void 0:(W=S.onTap)==null?void 0:W.innertubeCommand;Qd.prototype.N2.call(this)}; MN.prototype.Zb=function(){var S="",W=this.j.Z,m,a=(m=tz6(this))==null?void 0:m.headerTitle;m=a?g.K8(a):"";var J;a=((J=this.W.getLoopRange())==null?void 0:J.type)==="clips";W.length>1&&!a&&(S=this.W.getProgressState().current*1E3,J=AtQ(W,S),S=J!=null?W[J].title:m,J!=null&&J!==this.currentIndex&&(this.W.f_("innertubeCommand",W[J].onActiveCommand),this.currentIndex=J));Qd.prototype.vn.call(this,S)};g.u(Uh,g.b);Uh.prototype.onClick=function(){this.W.f_("onCollapseMiniplayer");this.W.logClick(this.element)}; Uh.prototype.L_=function(){this.visible=!this.W.isFullscreen();this.Fz(this.visible);this.W.logVisibility(this.element,this.visible&&this.bY)}; Uh.prototype.Nd=function(S){g.b.prototype.Nd.call(this,S);this.W.logVisibility(this.element,this.visible&&S)};var ojP=new Oo(0,0,.05,0,0,1,1,1);g.u(LD,g.b);LD.prototype.init=function(){this.update({minvalue:this.B,maxvalue:this.X,stepvalue:this.V,slidervalue:this.C,ariaValueNow:this.C,ariaMinValue:this.B,ariaMaxValue:this.X});b3Q(this,this.C)}; LD.prototype.b7=function(){RT(this,Number(this.N.value));this.N.focus()}; LD.prototype.A6=function(S){if(!S.defaultPrevented){switch(S.code){case "ArrowDown":S=-this.V;break;case "ArrowUp":S=this.V;break;default:return}RT(this,Math.min(this.X,Math.max(Number((this.C+S).toFixed(2)),this.B)))}};g.u(er,LD);er.prototype.onVolumeChange=function(S){if(this.Z)this.Z=!1;else{var W=S.volume;W===0||S.muted?RT(this,0):RT(this,W)}}; er.prototype.b7=function(){LD.prototype.b7.call(this);this.S(this.C)}; er.prototype.N2=function(S){var W=-S.deltaY;W=S.deltaMode===WheelEvent.DOM_DELTA_LINE||S.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Su(this.C+W,0,100):g.Su(this.C+g.Su(W/10,-10,10),0,100);W===0?RT(this,0):RT(this,W);this.S(W);S.preventDefault();S.stopPropagation()}; er.prototype.vn=function(S,W){this.Z=!0;S===0||W?this.W.mute():(this.W.isMuted()&&this.W.unMute(),this.W.setVolume(S))};g.u(rED,g.b);g.u(ii,g.b);g.V=ii.prototype;g.V.Sk=function(){if(!this.W.Pm()){this.updateValue("dataTooltipOffsetY",-120);var S;(S=this.C)!=null&&x2(S,!0);var W;(W=this.C)!=null&&W.C.stop()}}; g.V.HV=function(){var S;(S=this.C)!=null&&S.C.start()}; g.V.Ub=function(S){this.visible=S.width>=300||this.Hn;this.Fz(this.visible);this.W.logVisibility(this.element,this.visible&&this.bY)}; g.V.fh=function(){this.W.J().s9?this.W.isMuted()?this.W.unMute():this.W.mute():DT(this.message,this.element,!0);this.W.logClick(this.element)}; g.V.sp9=function(S){if(this.W.J().s9&&this.C)if(S.target===this.B){var W;if(!this.W.Pm()||((W=this.C)==null?0:W.isVisible))this.fh();else{var m;(m=this.C)!=null&&x2(m,!0)}}else{var a;(a=this.C)!=null&&x2(a,!0)}else this.fh()}; g.V.onVolumeChange=function(S){this.setVolume(S.volume,S.muted)}; g.V.setVolume=function(S,W){var m=this,a=W?0:S/100;S=a===0?1:S>50?1:0;if(this.S!==S){var J=this.Z;isNaN(J)?Sd7(this,S):bTP(this.s9,function(E){Sd7(m,J+(m.S-J)*E)},250); this.S=S}a=a===0?1:0;if(this.V!==a){var B=this.q2;isNaN(B)?W7O(this,a):bTP(this.Xn,function(E){W7O(m,B+(m.V-B)*E)},250); this.V=a}cE7(this,W)}; g.V.Nd=function(S){g.b.prototype.Nd.call(this,S);this.W.logVisibility(this.element,this.visible&&S)}; var DmK=["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"],wV_=["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.u(g.d4,g.b);g.V=g.d4.prototype;g.V.onStateChange=function(S){this.gA(S.state)}; g.V.gA=function(S){var W=g.fp(this.W.getVideoData()),m=!1;S.isOrWillBePlaying()?S=W?4:2:g.C(S,2)?(S=3,m=W):S=1;this.element.disabled=m;if(this.C!==S){W=null;switch(S){case 2:W=g.Rg(this.W,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:W="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:W=g.Rg(this.W,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:W="Stop playback",this.update({"data-title-no-tooltip":"Stop playback"})}S===3?this.W.J().T("player_tooltip_data_title_killswitch")? this.update({title:W,icon:m6P(this,S)}):this.update({"tooltip-title":W,icon:m6P(this,S)}):(this.W.T("player_tooltip_data_title_killswitch")?this.update({title:W}):this.update({"tooltip-title":W}),(W=m6P(this,S))&&this.C&&this.C!==3?rI6(this.transition,this.element,W):this.updateValue("icon",W));this.tooltip.iK();this.C=S}}; g.V.onVideoDataChange=function(){g.GD(this.element,"ytp-play-button-playlist",g.fB(this.W))}; g.V.WJ=function(S){this.W.logClick(this.element);if(this.W.getPlayerStateObject().isOrWillBePlaying())this.W.pauseVideo();else{if(this.W.isMinimized()&&this.W.getPlayerStateObject().isCued()){var W={},m;if((m=this.W.getVideoData())==null?0:m.V)W.cttAuthInfo={token:this.W.getVideoData().V,videoId:this.W.getVideoData().videoId};RP("direct_playback",W);this.W.Zr().timerName="direct_playback"}this.W.playVideo()}this.W.isMinimized()&&(S==null?void 0:S.type)==="click"&&this.element.blur()}; g.V.Nd=function(S){g.b.prototype.Nd.call(this,S)};g.u(g.IT,g.b);g.V=g.IT.prototype;g.V.onVideoDataChange=function(){BHl(this);this.j&&(this.TC(this.j),this.j=null);this.videoData=this.W.getVideoData(1);if(this.playlist=this.W.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.K(this.W,"progresssync",this.DT);this.B=E9j(this);JCl(this);this.Pa(this.W.k6().getPlayerSize())}; g.V.Pa=function(S){S=S===void 0?this.W.k6().getPlayerSize():S;var W,m=((W=this.W.getLoopRange())==null?void 0:W.type)==="clips";W=g.fB(this.W)||this.C&&g.Ac(this.W)&&!this.W.T("web_hide_next_button")||z0P(this);var a=!this.C&&S.width<400;S=this.W.T("delhi_modern_web_player_horizontal_volume_controls")&&S.width<640;m=W&&!m&&!a&&!S;this.Fz(m);this.W.logVisibility(this.element,m)}; g.V.onClick=function(S){this.W.logClick(this.element);var W=!0;this.V?W=g.pi(S,this.W):S.preventDefault();W&&(this.C&&this.W.getPresentingPlayerType()===5?this.W.publish("ytoprerollinternstitialnext"):this.C?(TF(this.W.Zr()),this.W.publish("playlistnextbuttonclicked",this.element),this.W.nextVideo(!0)):this.B?this.W.seekTo(0):(TF(this.W.Zr()),this.W.publish("playlistprevbuttonclicked",this.element),this.W.previousVideo(!0)))}; g.V.DT=function(){var S=E9j(this);S!==this.B&&(this.B=S,JCl(this))}; g.V.j9=function(){this.N&&(this.N(),this.N=null);BHl(this);g.b.prototype.j9.call(this)};g.u(YdP,g.b);g.V=YdP.prototype;g.V.UE=function(S){this.X6(S.pageX);this.Gl(S.pageX+S.deltaX);GOj(this)}; g.V.X6=function(S){this.N2=S-this.Hn}; g.V.Gl=function(S){S-=this.Hn;!isNaN(this.N2)&&this.thumbnails.length>0&&(this.S=S-this.N2,this.thumbnails.length>0&&this.S!==0&&(this.B=this.Z+this.S,S=F7P(this,this.B),this.B<=this.C/2&&this.B>=p5P(this)?(this.api.seekTo(S,!1,void 0,void 0,25),g.mg(this.q2,"transform","translateX("+(this.B-this.C/2)+"px)"),yCl(this,S)):this.B=this.Z))}; g.V.SM=function(){this.vn&&(this.vn.xL=!0);var S=(0,g.X1)()-this.g2<300;if(Math.abs(this.S)<5&&!S){this.g2=(0,g.X1)();S=this.N2+this.S;var W=this.C/2-S;this.X6(S);this.Gl(S+W);GOj(this);this.api.logClick(this.X)}GOj(this)}; g.V.l8=function(){Pc(this,this.api.getCurrentTime())}; g.V.play=function(S){this.api.seekTo(F7P(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();S&&this.api.logClick(this.playButton)}; g.V.onExit=function(S){this.api.seekTo(this.O9,void 0,void 0,void 0,63);this.api.playVideo();S&&this.api.logClick(this.dismissButton)}; g.V.Qc=function(S,W){this.Hn=S;this.C=W;Pc(this,this.api.getCurrentTime())}; g.V.enable=function(){this.isEnabled||(this.isEnabled=!0,this.O9=this.api.getCurrentTime(),yCl(this,this.O9),g.GD(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.s9=this.K(this.element,"wheel",this.UE),this.logVisibility(this.isEnabled))}; g.V.disable=function(){this.isEnabled=!1;this.hide();g.GD(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.s9&&this.TC(this.s9);this.logVisibility(this.isEnabled)}; g.V.reset=function(){this.disable();this.j=[];this.Pn=!1}; g.V.logVisibility=function(S){this.api.logVisibility(this.element,S);this.api.logVisibility(this.X,S);this.api.logVisibility(this.dismissButton,S);this.api.logVisibility(this.playButton,S)}; g.V.j9=function(){for(;this.N.length;){var S=void 0;(S=this.N.pop())==null||S.dispose()}g.b.prototype.j9.call(this)}; g.u(K7P,g.b);g.u(TH6,g.b);g.u(Vj6,g.b);g.u(fD,g.b);fD.prototype.yc=function(S){return S==="PLAY_PROGRESS"?this.Z:S==="LOAD_PROGRESS"?this.V:S==="LIVE_BUFFER"?this.X:this.B};ueK.prototype.update=function(S,W,m,a){m=m===void 0?0:m;this.width=W;this.j=m;this.C=W-m-(a===void 0?0:a);this.position=g.Su(S,m,m+this.C);this.B=this.position-m;this.N=this.B/this.C};g.u(g9G,g.b);g.u(g.ht,g.yG);g.V=g.ht.prototype; g.V.V_=function(){var S=!1,W=this.api.getVideoData();if(!W)return S;this.api.Tk("timedMarkerCueRange");QAO(this);for(var m=g.R(W.s9),a=m.next();!a.done;a=m.next()){a=a.value;var J=void 0,B=(J=this.hX[a])==null?void 0:J.markerType,E=void 0;J=(E=this.hX[a])==null?void 0:E.markers;if(!J)break;if(B==="MARKER_TYPE_TIMESTAMPS"){S=g.R(J);for(B=S.next();!B.done;B=S.next()){E=B.value;B=new g9G;var y=void 0;B.title=((y=E.title)==null?void 0:y.simpleText)||"";B.timeRangeStartMillis=Number(E.startMillis);B.C= Number(E.durationMillis);var Y=y=void 0;B.onActiveCommand=(Y=(y=E.onActive)==null?void 0:y.innertubeCommand)!=null?Y:void 0;U6K(this,B)}L7G(this,this.Z);S=this.Z;B=this.RU;E=[];y=null;for(Y=0;YG&&(y.end=G);G=bDK(G,G+T);E.push(G);y=G;B[G.id]=S[Y].onActiveCommand}}this.api.oY(E);a:{S=g.R(J);for(J=S.next();!J.done;J=S.next())if(J.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){S= !1;break a}S=!0}S&&(this.kB=this.hX[a]);S=!0}else if(B==="MARKER_TYPE_HEATMAP"){a=this.hX[a];K=G=B=Y=y=E=void 0;if(a&&a.markers){J=(B=(K=a.markersMetadata)==null?void 0:(G=K.heatmapMetadata)==null?void 0:G.minHeightDp)!=null?B:0;B=(E=(Y=a.markersMetadata)==null?void 0:(y=Y.heatmapMetadata)==null?void 0:y.maxHeightDp)!=null?E:60;E=this.C.length;y=null;for(Y=0;Y=K&&F<=T&&G.push(q)}B>0&&(this.vn.style.height=B+"px");K=this.j[Y];T=G;q=J;var O=B,X=Y===0;X=X===void 0?!1:X;n9P(K,O);p=T;F=K.N;X=X===void 0?!1:X;var l=1E3/p.length,M=[];M.push({x:0,y:100});for(var e=0;e0&&(y=G[G.length-1])}g.tt(this)}B=void 0;J=[];if(a=(B=a.markersDecoration)==null?void 0:B.timedMarkerDecorations)for(a=g.R(a),B=a.next();!B.done;B=a.next())B=B.value,Y=y=E=void 0,J.push({visibleTimeRangeStartMillis:(E=B.visibleTimeRangeStartMillis)!= null?E:-1,visibleTimeRangeEndMillis:(y=B.visibleTimeRangeEndMillis)!=null?y:-1,decorationTimeMillis:(Y=B.decorationTimeMillis)!=null?Y:NaN,label:B.label?g.K8(B.label):""});a=J;this.heatMarkersDecorations=a}}W.SX=this.Z;g.GD(this.element,"ytp-timed-markers-enabled",S);return S}; g.V.Qc=function(){g.tt(this);NN(this);L7G(this,this.Z);if(this.N){var S=g.Kh(this.element).x||0;this.N.Qc(S,this.V)}}; g.V.hi2=function(){var S=this.api.getVideoData();S&&h0_(this,S)}; g.V.onClickCommand=function(S){if(S=g.n(S,TR)){var W=S.key;S.isVisible&&W&&iC7(this,W)}}; g.V.AOq=function(S){this.api.f_("innertubeCommand",this.RU[S.id])}; g.V.Zb=function(){NN(this);var S=this.api.getCurrentTime();(Sthis.clipEnd)&&this.zo()}; g.V.z1=function(S){if(!S.defaultPrevented){var W=!1;switch(S.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.T("enable_key_press_seek_logging")&&Da(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.T("enable_key_press_seek_logging")&&Da(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&&S.preventDefault()}}; g.V.uZ=function(S,W){this.updateVideoData(W,S==="newdata")}; g.V.rX2=function(){this.uZ("newdata",this.api.getVideoData())}; g.V.updateVideoData=function(S,W){W=W===void 0?!1:W;var m=!!S&&S.LP();m&&(zE(S)||kOP(this)?this.Q2=!1:this.Q2=S.allowLiveDvr,g.GD(this.api.getRootNode(),"ytp-enable-live-buffer",!(S==null||!zE(S))),h0_(this,S));mJj(this,this.api.lJ());if(W){if(m){W=S.clipEnd;this.clipStart=S.clipStart;this.clipEnd=W;w4(this);for(r4(this,this.N2,this.IL);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.EV={};var a;(a=this.N)==null||a.reset();mF(this);g.GD(this.api.getRootNode(),"ytp-fine-scrubbing-exp", $2(this))}else this.zo();this.Np()}if(S){var J;a=((J=this.Xz)==null?void 0:J.type)==="clips";if(J=!S.isLivePlayback){J=this.api.getVideoData();W=g.k5(J);m=v9X(J);var B;J=W!=null||m!=null&&m.length>0||((B=J.L6)==null?void 0:B.length)>0}if(J&&!a){B=this.api.getVideoData();a=g.k5(B);J=!1;if(a==null?0:a.markersMap){J=this.api.getVideoData();var E;J.SO=((E=a.visibleOnLoad)==null?void 0:E.key)||J.SO;E=g.R(a.markersMap);for(a=E.next();!a.done;a=E.next())a=a.value,a.key&&a.value&&(this.EV[a.key]=a.value, a.value.onChapterRepeat&&(J.yL=a.value.onChapterRepeat));J.SO!=null&&iC7(this,J.SO);J=!0}var y;if(((y=B.L6)==null?void 0:y.length)>0){y=g.qW.getState().entities;E=g.R(B.L6);for(a=E.next();!a.done;a=E.next()){a=a.value;m=void 0;W=(m=rF(y,"macroMarkersListEntity",a))==null?void 0:m.markersList;var Y=m=void 0;if(((m=W)==null?void 0:m.markerType)==="MARKER_TYPE_TIMESTAMPS"||((Y=W)==null?void 0:Y.markerType)==="MARKER_TYPE_HEATMAP")this.hX[a]=W}J=this.V_()||J}!J&&(y=v9X(B))&&(lCO(this,y),B.qd=this.C,HCX(this)); tjO(this,null);S.cM&&this.j.length===0&&(S=S.cM,y=S.key,S.isVisible&&y&&iC7(this,y))}else OCQ(this),QAO(this)}NN(this)}; g.V.S0=function(S){this.S&&!g.C(S.state,32)&&this.api.getPresentingPlayerType()!==3&&this.S.cancel();var W;((W=this.N)==null?0:W.isEnabled)&&g.C(S.state,8)&&this.api.pauseVideo();S=this.api.getPresentingPlayerType()===2||!this.api.lJ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.GD(this.bJ,"ytp-hide-scrubber-button",S)}; g.V.lA=function(S){var W=!!this.Xz!==!!S,m=this.Xz;this.Xz=S;tjO(this,m);(S==null?void 0:S.type)!=="clips"&&S||(S?(this.updateValue("clipstarticon",m5P()),this.updateValue("clipendicon",m5P()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",r$c()),this.updateValue("clipendicon",o0G()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),W&&(this.updateVideoData(this.api.getVideoData(), !0),g.tt(this)),w4(this));r4(this,this.N2,this.IL)}; g.V.PQ2=function(){this.api.publish("progressBarHoverStart")}; g.V.X12=function(S,W,m){var a=g.Kh(this.element),J=Za(this).C,B=m?m.getAttribute("data-tooltip"):void 0,E=m?m.getAttribute("data-position"):void 0,y=m?m.getAttribute("data-offset-y"):void 0;y=y?Number(y):0;E&&(S=x$(this.B,Number(m.getAttribute("data-position")),0)*J+g.Kh(this.progressBar).x);this.vv.x=S-a.x;this.vv.y=W-a.y;S=Za(this);m=cc(this,S);W=0;var Y;if((Y=this.api.getVideoData())==null?0:zE(Y))(Y=this.api.getProgressState().seekableEnd)&&m>Y&&(m=Y,S.position=x$(this.B,Y)*Za(this).C),W=this.B.N; kOP(this)&&(W=this.B.N);Y=B||g.jD(this.Q2?m-this.B.C:m-W);W=S.position+this.Mp;m-=this.api.DH();var G;if((G=this.N)==null||!G.isEnabled)if(this.api.LW()){if(this.C.length>1){G=CD(this,this.vv.x,!0);if(!this.Xz)for(a=0;a1)for(a=0;a0)for(G=this.vv.x,a=g.R(this.Z),J=a.next();!J.done;J=a.next())J=J.value,E=At(this,J.timeRangeStartMillis/ (this.B.C*1E3),Za(this)),g.GD(J.element,"ytp-timed-marker-hover",E<=G&&E+6>=G);a=this.tooltip.scale;G=this.api.T("delhi_modern_web_player")?67:45;y=(isNaN(y)?0:y)-G*a;this.api.T("web_key_moments_markers")?this.kB?(G=AtQ(this.Z,m*1E3),G=G!=null?this.Z[G].title:""):(G=Eh(this.C,m*1E3),G=this.C[G].title):(G=Eh(this.C,m*1E3),G=this.C[G].title);G||(y+=16*a);this.tooltip.scale===.6&&(g.EV(this.api.J())?(y=this.api.k6().getPlayerSize().height-225,a=this.api.T("delhi_modern_web_player")?70:110,y=G?y+a:y+ a+16):y=G?110:126);a=Eh(this.C,m*1E3);this.s9=ZCP(this,m,a)?a:ZCP(this,m,a+1)?a+1:-1;g.GD(this.api.getRootNode(),"ytp-progress-bar-snap",this.s9!==-1&&this.C.length>1);a=!1;J=g.R(this.heatMarkersDecorations);for(E=J.next();!E.done;E=J.next()){E=E.value;var K=m*1E3;K>=E.visibleTimeRangeStartMillis&&K<=E.visibleTimeRangeEndMillis&&(G=E.label,Y=g.jD(cc(this,S)),a=!0)}this.xK!==a&&(this.xK=a,this.api.logVisibility(this.xP,this.xK));g.GD(this.api.getRootNode(),"ytp-progress-bar-decoration",a);a=160*this.tooltip.scale* 2;J=G.length*(this.X?8.55:5.7);J=J<=a?J:a;E=J<160*this.tooltip.scale;a=3;!E&&J/2>S.position&&(a=1);!E&&J/2>this.V-S.position&&(a=2);this.api.J().Z&&(y-=10);this.j.length&&this.j[0].LP&&(y-=14*(this.X?2:1),this.g2||(this.g2=!0,this.api.logVisibility(this.vn,this.g2)));var T;if($2(this)&&(((T=this.N)==null?0:T.isEnabled)||this.d2>0)){var p;y-=((p=this.N)==null?0:p.isEnabled)?(this.X?135:90)-this.q2:this.d2}T=void 0;$2(this)&&!this.api.T("web_player_hide_fine_scrubbing_edu")&&(T="Pull up for precise seeking", this.O9||(this.O9=!0,this.api.logVisibility(this.mQ,this.O9)));this.tooltip.Xr(W,m,Y,!!B,y,G,a,T)}else this.tooltip.Xr(W,m,Y,!!B,y);g.Bn(this.api.getRootNode(),"ytp-progress-bar-hover");fCP(this)}; g.V.GYQ=function(){this.Np();g.zD(this.api.getRootNode(),"ytp-progress-bar-hover");this.g2&&(this.g2=!1,this.api.logVisibility(this.vn,this.g2));this.O9&&(this.O9=!1,this.api.logVisibility(this.mQ,this.O9));this.api.T("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.V.crn=function(S,W){var m=g.Kh(this.element);this.Kn=S-m.x;$2(this)&&this.N&&(this.N.Pn?Pc(this.N,this.api.getCurrentTime()):qdK(this.N),this.N.show(),g.GD(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.N.isEnabled));this.CC&&(this.CC.dispose(),this.CC=null);this.vQ=W;this.ov=this.api.getCurrentTime();this.C.length>1&&this.s9!==-1?this.api.seekTo(this.C[this.s9].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(cc(this,Za(this)),!1,void 0,void 0,7);g.Bn(this.element,"ytp-drag");(this.ZF= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.V.tCn=function(){if($2(this)&&this.N){var S=(this.X?135:90)-this.q2;this.d2>=S*.5?(this.N.enable(),Pc(this.N,this.api.getCurrentTime()),Wh_(this,S)):mF(this)}if(g.C(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var W;if((W=this.N)==null?0:W.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.C.length>1&&this.s9!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&Da(this,this.ov,this.C[this.s9].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.C[this.s9].startTime/1E3,void 0,void 0,void 0,7);else{S=cc(this,Za(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&Da(this,this.ov,S,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(S,void 0,void 0,void 0,7);W=g.R(this.heatMarkersDecorations);for(var m=W.next();!m.done;m=W.next())m=m.value,S*1E3>=m.visibleTimeRangeStartMillis&&S*1E3<=m.visibleTimeRangeEndMillis&& this.api.logClick(this.xP)}g.zD(this.element,"ytp-drag");this.Pn&&(this.Xn.src=this.Pn);this.ZF&&!g.C(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.V.WIq=function(S,W){var m=this,a=Za(this),J=cc(this,a);this.api.k6().rS||(a.position>this.Kn+2?this.qd&&(this.Xn.src=this.qd):a.position1);this.Fz(S&&this.W.k6().getPlayerSize().width>=400);this.W.logVisibility(this.element,this.jg);var W=1;S&&this.isActive()&&(W=2);if(this.C!==W){this.C=W;S=this.W.T("delhi_modern_web_player_icons");switch(W){case 1:this.updateValue("icon",S?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",a6:!0,D:{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", S?{G:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",D:{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.Z0P())}g.GD(this.element,"ytp-remote-button-active",this.isActive())}}; aH.prototype.N=function(){if(this.W.getOption("remote","quickCast"))this.W.setOption("remote","quickCast",!0);else{var S=this.C3,W=this.element;if(S.wj())S.OV();else{S.initialize();a:{var m=g.R(S.Ca.items);for(var a=m.next();!a.done;a=m.next())if(a=a.value,a.priority===1){m=a;break a}m=null}m&&(m.open(),S.Uc(W));S.Uc(W)}}this.W.logClick(this.element)};g.u(JE,g.b);JE.prototype.C=function(S){var W=this.W.J(),m=400;W.V?m=300:W.Z&&(m=200);S=this.N&&S.width>=m;this.Fz(S);this.W.logVisibility(this.element,S)}; JE.prototype.B=function(){if(this.C3.jg)this.C3.OV();else{var S=g.jb(this.W.GV());S&&!S.loaded&&(S.uK("tracklist",{includeAsr:!0}).length||S.load());this.W.logClick(this.element);this.C3.Uc(this.element)}}; JE.prototype.updateBadge=function(){var S=this.W.isHdr(),W=this.W.getPresentingPlayerType(),m=W!==2&&W!==3,a=g.hc(this.W),J=m&&!!g.$8(this.W.GV());W=J&&a.displayMode===1;a=J&&a.displayMode===2;m=(J=W||a)||!m?null:this.W.getPlaybackQuality();g.GD(this.element,"ytp-hdr-quality-badge",S);g.GD(this.element,"ytp-hd-quality-badge",!S&&(m==="hd1080"||m==="hd1440"));g.GD(this.element,"ytp-4k-quality-badge",!S&&m==="hd2160");g.GD(this.element,"ytp-5k-quality-badge",!S&&m==="hd2880");g.GD(this.element,"ytp-8k-quality-badge", !S&&m==="highres");g.GD(this.element,"ytp-3d-badge-grey",!S&&J&&W);g.GD(this.element,"ytp-3d-badge",!S&&J&&a)};g.u(BV,g.M7);g.V=BV.prototype;g.V.L_=function(){var S=this.W.getAvailableAudioTracks();if(S.length>1){if(this.W.J().experiments.ZH().C.QD(qPx)){var W=S.filter(function(J){return J.isAutoDubbed()}),m=S.filter(function(J){return!J.isAutoDubbed()}).map(this.AG); W.length>0&&(this.W.iY("ad_grp",{ad_c:W.length,t_c:S.length}),m.push(new vtK),m.push.apply(m,g.x(W.map(this.AG))));lX7(this,m)}else this.f1(g.MU(S,this.AG));this.tracks=g.n$(S,this.AG,this);this.countLabel.setContent(S.length?" ("+S.length+")":"");this.publish("size-change");S=this.AG(this.W.getAudioTrack());this.mT(S);if(this.W.T("html5_enable_new_audio_settings_menu")){var a;(a=this.C)!=null&&a.setContent(S.toString())}this.enable(!0)}else this.W.T("html5_enable_new_audio_settings_menu")&&(W=this.C)!= null&&W.setContent(""),this.enable(!1)}; g.V.M6=function(S){g.M7.prototype.M6.call(this,S);S=this.tracks[S];this.W.setAudioTrack(S);this.C3.Nx();this.W.J().experiments.ZH().C.QD(qPx)&&this.W.iY("ad_sel",{lang:S.n3.id})}; g.V.AG=function(S){return S.toString()}; g.V.Fg=function(S){this.W.T("html5_enable_new_audio_settings_menu")?this.C&&(S?this.C.xb(this):this.C.GY(this)):g.M7.prototype.Fg.call(this,S)}; g.V.onClick=function(){this.W.logClick(this.element)};g.u(Jh7,g.Ws);g.V=Jh7.prototype;g.V.Br=function(){this.W.Br()}; g.V.open=function(){this.Ln.YV()>0&&g.j7(this.C3,this.Ln)}; g.V.FG=function(){this.Ln.YV()>0&&this.W.getPresentingPlayerType()!==2&&this.W.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.V.z1=function(S){S.defaultPrevented||(this.open(),S.preventDefault())}; g.V.xb=function(S){this.Ln.xb(S)}; g.V.GY=function(S){this.Ln.GY(S)};g.u(E9,Tw); E9.prototype.FG=function(){var S=this.W.getPresentingPlayerType();if(S!==2&&S!==3&&g.Ac(this.W))this.C||(this.C3.xb(this),this.C=!0,this.N.push(this.K(this.W,"videodatachange",this.FG)),this.N.push(this.K(this.W,"videoplayerreset",this.FG)),this.N.push(this.K(this.W,"onPlaylistUpdate",this.FG)),this.N.push(this.K(this.W,"autonavchange",this.B)),S=this.W.getVideoData(),this.B(S.autonavState),this.W.logVisibility(this.element,this.C));else if(this.C){this.C3.GY(this);this.C=!1;S=g.R(this.N);for(var W= S.next();!W.done;W=S.next())this.TC(W.value)}}; E9.prototype.B=function(S){qn(this,S!==1)}; E9.prototype.onSelect=function(S){this.W.hZ(S?2:1);this.C&&(this.W.logVisibility(this.element,this.C),this.W.logClick(this.element))}; E9.prototype.j9=function(){this.C&&this.C3.GY(this);Tw.prototype.j9.call(this)};g.u(BL_,g.Ws);BL_.prototype.onClick=function(S){S.preventDefault();var W,m;(W=g.Ok(this.W))==null||(m=W.gE())==null||m.OV();var a,J;(a=g.Ok(this.W))==null||(J=a.ws())==null||J.Uc(S.target)};g.u(E7K,g.M7);g.V=E7K.prototype; g.V.FG=function(){var S=this.W.getPresentingPlayerType();if(S!==2&&S!==3){this.vn=this.W.My();var W=this.W.getAvailableQualityLevels();if(this.C){this.N={};S=g.VY(this.W,"getAvailableQualityData",[]);S=g.R(S);for(var m=S.next();!m.done;m=S.next())m=m.value,this.N[m.qualityLabel]=m;S=Object.keys(this.N);W[W.length-1]==="auto"&&S.push("auto");this.q2=new Set(W)}else if(this.j){m=g.VY(this.W,"getAvailableQualityData",[]);S=[];m=g.R(m);for(var a=m.next();!a.done;a=m.next())a=a.value,this.V[a.quality]= a,a.quality&&S.push(a.quality);W[W.length-1]==="auto"&&S.push("auto")}else S=W;g.VPO(this.W)&&this.W.n9()&&S.unshift("missing-qualities");W=this.W.app.S9();m=W.getVideoData();if(!m.N||!m.N.video||m.N.video.qualityOrdinal<1080||m.FF)W=!1;else{a=/^qsa/.test(m.clientPlaybackNonce);var J="r";m.N.id.indexOf(";")>=0&&(a=/^[a-p]/.test(m.clientPlaybackNonce),J="x");a?(W.iY("iqss",{trigger:J},!0),W=!0):W=!1}W&&S.unshift("inline-survey");this.f1(S);W=this.W.getVideoData().cotn?!0:!1;m=this.N2.AV();m=!g.EV(this.W.J())|| !(W===void 0?0:W)||!(m===void 0||m);W=this.Ln;m=m===void 0?!1:m;W.qR&&g.GD(W.I2("ytp-panel-footer"),"ytp-panel-hide-footer",m===void 0?!1:m);if(S.length){this.fL();this.enable(!0);return}}this.enable(!1)}; g.V.fL=function(){if(this.C){var S=this.W.getPreferredQuality();this.q2.has(S)&&(this.X=this.W.getPlaybackQuality(),this.Z=this.W.getPlaybackQualityLabel(),S==="auto"?(this.mT(S),this.setContent(this.tY(S))):this.mT(this.Z))}else S=this.W.getPreferredQuality(),this.options[S]&&(this.X=this.W.getPlaybackQuality(),this.mT(S),S==="auto"&&this.setContent(this.tY(S)))}; g.V.M6=function(S){if(S!=="missing-qualities"){g.M7.prototype.M6.call(this,S);var W=this.C?this.N[S]:this.V[S];var m=W==null?void 0:W.quality,a=W==null?void 0:W.formatId,J=W==null?void 0:W.paygatedQualityDetails;W=J==null?void 0:J.endpoint;if(J){var B;J=(B=this.options[S])==null?void 0:B.element;this.W.logClick(J)}if(this.C){var E,y;if((E=g.n(W,W8N))==null?0:(y=E.popup)==null?0:y.notificationActionRenderer)this.W.f_("innertubeCommand",W);else if(W){this.W.f_("innertubeCommand",W);return}a?this.W.setPlaybackQuality(m, a):this.W.setPlaybackQuality(m)}else{if(this.j){var Y,G;if((Y=g.n(W,W8N))==null?0:(G=Y.popup)==null?0:G.notificationActionRenderer)this.W.f_("innertubeCommand",W);else if(W){this.W.f_("innertubeCommand",W);return}}this.W.setPlaybackQuality(S)}this.C3.OV();this.FG()}}; g.V.open=function(){for(var S=g.R(Object.values(this.options)),W=S.next();!W.done;W=S.next()){W=W.value;var m=void 0;this.W.hasVe((m=W)==null?void 0:m.element)&&(m=void 0,this.W.logVisibility((m=W)==null?void 0:m.element,!0))}g.M7.prototype.open.call(this);this.W.logClick(this.element)}; g.V.Uj=function(S,W,m){var a=this;if(S==="missing-qualities")return new g.Ws({G:"a",Wn:["ytp-menuitem"],D:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.W.J().bY,tabindex:"0",role:"menuitemradio"},U:[{G:"div",Wn:["ytp-menuitem-label"],Bn:"{{label}}"}]},W,this.tY(S));if(S!=="inline-survey"){var J,B=(J=this.C?this.N[S]:this.V[S])==null?void 0:J.paygatedQualityDetails;J=B==null?void 0:B.veType;B=B==null?void 0:B.trackingParams;W=g.M7.prototype.Uj.call(this,S,W,m);B?(this.W.createServerVe(W.element, this,!0),this.W.setTrackingParams(W.element,B)):J&&this.W.createClientVe(W.element,this,J,!0);return W}S=[{G:"span",Bn:"Look good?"}];m=g.R([!0,!1]);B=m.next();for(J={};!B.done;J={Mh:void 0},B=m.next())J.Mh=B.value,B=new g.b({G:"span",L:"ytp-menuitem-inline-survey-response",U:[J.Mh?WmD():c$6()],D:{tabindex:"0",role:"button"}}),B.listen("click",function(E){return function(){var y=a.W.app.S9();y.iY("iqsr",{tu:E.Mh});y.getVideoData().FF=!0;a.C3.OV();a.FG()}}(J)),S.push(B); return new g.Ws({G:"div",L:"ytp-menuitem",D:{"aria-disabled":"true"},U:[{G:"div",Wn:["ytp-menuitem-label"],U:S}]},W)}; g.V.tY=function(S,W){W=W===void 0?!1:W;if(S==="missing-qualities")return{G:"div",Bn:"Missing options?"};if(S==="inline-survey")return"";var m=this.j||this.C?[YbX(this,S,W,!1)]:[yhG(this,S)];var a=this.W.getPreferredQuality();W||a!=="auto"||S!=="auto"||(m.push(" "),this.C?m.push(YbX(this,this.Z,W,!0,["ytp-menu-label-secondary"])):this.j?m.push(YbX(this,this.X,W,!0,["ytp-menu-label-secondary"])):m.push(yhG(this,this.X,["ytp-menu-label-secondary"])));return{G:"div",U:m}};g.u(zL,LD);g.V=zL.prototype;g.V.b7=function(){LD.prototype.b7.call(this);this.Z&&this.ZV()}; g.V.DdU=function(){this.W.T("enable_web_premium_varispeed")&&RT(this,Math.round(this.C/.05)*.05);this.S()}; g.V.fz=function(){this.W.setPlaybackRate(this.C,!0)}; g.V.ZV=function(){this.Z.textContent=this.C.toFixed(2)+"x";var S=this.C>2&&this.W.T("enable_web_premium_varispeed");this.N2.classList.toggle("ytp-speedslider-premium-badge",S);this.N2.setAttribute("aria-label",S?"Premium":"")}; g.V.A6=function(S){LD.prototype.A6.call(this,S);this.S();this.ZV();this.W.T("web_enable_varispeed_panel")?(S.code==="ArrowUp"||S.code==="ArrowDown")&&S.preventDefault():S.preventDefault()};g.u(ye,g.b);g.V=ye.prototype;g.V.init=function(){this.sj(this.C);this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.B)}; g.V.pz=function(S){if(!S.defaultPrevented){switch(S.keyCode){case 37:case 40:var W=-this.Z;break;case 39:case 38:W=this.Z;break;default:return}this.sj(this.C+W);S.preventDefault()}}; g.V.m8=function(S){var W=this.C;W+=(S.deltaX||-S.deltaY)<0?-this.S:this.S;this.sj(W);S.preventDefault()}; g.V.Y1=function(S){S=(S-g.Kh(this.j).x)/this.N2*this.range+this.N;this.sj(S)}; g.V.sj=function(S,W){W=W===void 0?"":W;S=g.Su(S,this.N,this.B);W===""&&(W=S.toString());this.updateValue("valuenow",S);this.updateValue("valuetext",W);this.vn.style.left=(S-this.N)/this.range*(this.N2-this.Pn)+"px";this.C=S}; g.V.focus=function(){this.s9.focus()};g.u(Yj,ye);Yj.prototype.q2=function(){this.W.setPlaybackRate(this.C,!0)}; Yj.prototype.ZV=function(){this.X.textContent=GY6(this,this.C)+"x"}; Yj.prototype.sj=function(S){ye.prototype.sj.call(this,S,GY6(this,S).toString());this.X&&(this.ZV(),this.Xn())}; Yj.prototype.updateValues=function(){var S=this.W.getPlaybackRate();GY6(this,this.C)!==S&&(this.sj(S),this.ZV())};g.u(KhX,g.yG);KhX.prototype.focus=function(){this.C.focus()};g.u(TLP,nd);g.u(puP,g.M7);g.V=puP.prototype;g.V.onVideoDataChange=function(S){S==="dataloaded"&&(S=this.W.getAvailablePlaybackRates(),g.p$(this.j,S)||(this.j=S,this.Gf.dispose(),this.Gf=new zL(this.W)),this.L_())}; g.V.tY=function(S){return S==="1"?"Normal":S.toLocaleString()}; g.V.L_=function(){var S,W=(S=this.W.getVideoData())==null?void 0:S.b$();S=this.W.getPresentingPlayerType(W);this.enable(S!==2&&S!==3);n7D(this)}; g.V.f1=function(S){g.M7.prototype.f1.call(this,S);this.Gf&&this.Gf.N.focus()}; g.V.Fg=function(S){g.M7.prototype.Fg.call(this,S);S?(this.N2=this.K(this.W,"onPlaybackRateChange",this.onPlaybackRateChange),n7D(this),FhP(this,this.W.getPlaybackRate()),this.W.T("enable_web_premium_varispeed_upsell")&&(this.W.logVisibility(this.element,!0),this.N&&this.W.logVisibility(this.Z.element,!0))):(this.TC(this.N2),this.N2=null)}; g.V.onPlaybackRateChange=function(S){var W=this.W.getPlaybackRate();!this.X&&this.j.includes(W)||VHc(this,W);FhP(this,S)}; g.V.Uj=function(S,W,m){return S===this.C&&u8j(this.W)?g.M7.prototype.Uj.call(this,S,W,m,{G:"div",L:"ytp-speed-slider-menu-footer",U:[this.Gf]}):S===this.N&&qbK(this.W,this.vn)?s07(this,S,W,m):g.M7.prototype.Uj.call(this,S,W,m)}; g.V.M6=function(S){g.M7.prototype.M6.call(this,S);S===this.N?(this.W.logClick(this.Z.element),this.W.f_("innertubeCommand",this.vn)):S===this.C?this.W.setPlaybackRate(this.V,!0):this.W.setPlaybackRate(Number(S),!0);(!u8j(this.W)||S!==this.C&&S!==this.N)&&this.C3.Nx()}; g.V.lB=function(S){var W=S===this.C;this.X=!1;W&&GL(this.W)&&!u8j(this.W)?(S=new TLP(this.W),g.j7(this.C3,S)):g.M7.prototype.lB.call(this,S)};g.u(OFK,g.M7);g.V=OFK.prototype;g.V.mT=function(S){g.M7.prototype.mT.call(this,S)}; g.V.dL=function(S){return S.option.toString()}; g.V.getOption=function(S){return this.settings[S]}; g.V.tY=function(S){return this.getOption(S).text||""}; g.V.M6=function(S){g.M7.prototype.M6.call(this,S);this.publish("settingChange",this.setting,this.settings[S].option)};g.u(TL,g.ua);TL.prototype.tE=function(S){for(var W=g.R(Object.keys(S)),m=W.next();!m.done;m=W.next()){var a=m.value;if(m=this.q5[a]){var J=S[a].toString();a=!!S[a+"Override"];m.options[J]&&(m.mT(J),m.N.element.setAttribute("aria-checked",String(!a)),m.C.element.setAttribute("aria-checked",String(a)))}}}; TL.prototype.ZJ=function(S,W){this.publish("settingChange",S,W)};g.u(qm,g.M7);qm.prototype.C=function(S){return S.languageCode}; qm.prototype.tY=function(S){return this.languages[S].languageName||""}; qm.prototype.M6=function(S){this.publish("select",S);this.W.logClick(this.element);g.Qb(this.C3)};g.u(XuP,g.M7);g.V=XuP.prototype;g.V.cj=function(S){return g.UC(S)?"__off__":S.displayName}; g.V.tY=function(S){return S==="__off__"?"Off":S==="__translate__"?"Auto-translate":S==="__contribute__"?"Add subtitles/CC":S==="__correction__"?"Suggest caption corrections":(S==="__off__"?{}:this.tracks[S]).displayName}; g.V.M6=function(S){if(S==="__translate__")this.C.open();else if(S==="__contribute__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var W=g.jP(this.W.J(),this.W.getVideoData());g.ZQ(W)}else if(S==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var m=v7O(this);p3(this,m);g.M7.prototype.M6.call(this,this.cj(m));var a,J;m=(W=this.W.getVideoData().getPlayerResponse())==null?void 0:(a=W.captions)==null?void 0:(J=a.playerCaptionsTracklistRenderer)== null?void 0:J.openTranscriptCommand;this.W.f_("innertubeCommand",m);this.C3.Nx();this.N&&this.W.logClick(this.N)}else{if(S==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();W=v7O(this);p3(this,W);g.M7.prototype.M6.call(this,this.cj(W));var B,E;W=(m=this.W.getVideoData().getPlayerResponse())==null?void 0:(B=m.captions)==null?void 0:(E=B.playerCaptionsTracklistRenderer)==null?void 0:E.openTranscriptCommand;this.W.f_("innertubeCommand",W)}else this.W.logClick(this.element), p3(this,S==="__off__"?{}:this.tracks[S]),g.M7.prototype.M6.call(this,S);this.C3.Nx()}}; g.V.L_=function(){var S=this.W.getOptions();S=S&&S.indexOf("captions")!==-1;var W=this.W.getVideoData(),m=W&&W.hS,a,J=!((a=this.W.getVideoData())==null||!g.Jc(a));a={};if(S||m){var B;if(S){var E=this.W.getOption("captions","track");a=this.W.getOption("captions","tracklist",{includeAsr:!0});var y=J?[]:this.W.getOption("captions","translationLanguages");this.tracks=g.n$(a,this.cj,this);J=g.MU(a,this.cj);var Y,G;v7O(this)&&((B=W.getPlayerResponse())==null?0:(Y=B.captions)==null?0:(G=Y.playerCaptionsTracklistRenderer)== null?0:G.openTranscriptCommand)&&J.push("__correction__");if(y.length&&!g.UC(E)){if((B=E.translationLanguage)&&B.languageName){var K=B.languageName;B=y.findIndex(function(T){return T.languageName===K}); mxP(y,B)}j0c(this.C,y);J.push("__translate__")}B=this.cj(E)}else this.tracks={},J=[],B="__off__";J.unshift("__off__");this.tracks.__off__={};m&&J.unshift("__contribute__");this.tracks[B]||(this.tracks[B]=E,J.push(B));this.f1(J);this.mT(B);E&&E.translationLanguage?this.C.mT(this.C.C(E.translationLanguage)):HT_(this.C);S&&this.j.tE(this.W.getSubtitlesUserSettings());this.countLabel.setContent(a&&a.length?" ("+a.length+")":"");this.publish("size-change");this.W.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.V.Rw=function(S){var W=this.W.getOption("captions","track");W=g.em(W);W.translationLanguage=this.C.languages[S];p3(this,W)}; g.V.ZJ=function(S,W){if(S==="reset")this.W.resetSubtitlesUserSettings();else{var m={};m[S]=W;this.W.updateSubtitlesUserSettings(m)}Q0D(this,!0);this.X.start();this.j.tE(this.W.getSubtitlesUserSettings())}; g.V.xiq=function(S){S||g.Dh(this.X)}; g.V.j9=function(){g.Dh(this.X);g.M7.prototype.j9.call(this)}; g.V.open=function(){g.M7.prototype.open.call(this);this.options.__correction__&&!this.N&&(this.N=this.options.__correction__.element,this.W.createClientVe(this.N,this,167341),this.W.logVisibility(this.N,!0))};g.u(F0,nd);F0.prototype.onPlaybackRateChange=function(S){RT(this.Gf,S,!0);this.ZV(S)}; F0.prototype.ZV=function(S){S=Math.round(S*20)/20;this.H7.element.textContent=S.toFixed(2)+"x";this.AF.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",S>2)}; F0.prototype.ZE=function(){for(var S=this.W.getPlayerSize().width,W=g.R(this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper")),m=W.next();!m.done;m=W.next()){m=m.value;var a=void 0,J=Number((a=m.dataset.priority)!=null?a:0);a=!0;S<680?a=J>1:S<1900&&(a=J>0);g.F$(m,a);m.setAttribute("aria-hidden",a?"false":"true")}};g.u(Ve,g.M7);Ve.prototype.C=function(){var S,W=(S=this.W.getVideoData())==null?void 0:S.b$();S=this.W.getPresentingPlayerType(W);this.enable(S!==2&&S!==3)}; Ve.prototype.N=function(S){this.setContent(S===1?"Normal":S.toString())}; Ve.prototype.open=function(){g.j7(this.C3,new F0(this.W))};g.u(HF_,g.Ot);g.V=HF_.prototype; g.V.initialize=function(){if(!this.isInitialized){var S=this.W.J();this.isInitialized=!0;try{this.J8=new E7K(this.W,this)}catch(m){g.Ue(Error("QualityMenuItem creation failed"))}g.Z(this,this.J8);var W=new XuP(this.W,this);g.Z(this,W);S.enableSpeedOptions&&(S.T("web_enable_varispeed_panel")?(W=new Ve(this.W,this),g.Z(this,W)):(W=new puP(this.W,this),g.Z(this,W)));(g.f9(S)||S.V)&&(S.N||S.g2)&&(W=new BL_(this.W,this),g.Z(this,W));S.o6&&!S.T("web_player_move_autonav_toggle")&&(W=new E9(this.W,this), g.Z(this,W));S.T("html5_enable_new_audio_settings_menu")?(this.sY=new Jh7(this.W,this),g.Z(this,this.sY)):(S=new BV(this.W,this),g.Z(this,S));this.W.publish("settingsMenuInitialized");aHO(this.settingsButton,this.Ca.YV())}}; g.V.xb=function(S){this.initialize();this.Ca.xb(S);aHO(this.settingsButton,this.Ca.YV())}; g.V.GY=function(S){this.TN()||(this.jg&&this.Ca.YV()<=1&&this.hide(),this.Ca.GY(S),aHO(this.settingsButton,this.Ca.YV()))}; g.V.Uc=function(S){this.initialize();this.Ca.YV()>0&&g.Ot.prototype.Uc.call(this,S)}; g.V.OV=function(){this.ob?this.ob=!1:g.Ot.prototype.OV.call(this)}; g.V.show=function(){g.Ot.prototype.show.call(this);g.Bn(this.W.getRootNode(),"ytp-settings-shown")}; g.V.hide=function(){g.Ot.prototype.hide.call(this);g.zD(this.W.getRootNode(),"ytp-settings-shown")}; g.V.P1=function(S){this.W.logVisibility(this.element,S);this.W.publish("settingsMenuVisibilityChanged",S)}; g.V.Br=function(){this.W.Br()};g.u(UJP,g.b);g.V=UJP.prototype;g.V.onClick=function(){if(n3(this)&&(this.W.toggleSubtitles(),this.W.logClick(this.element),!this.isEnabled())){var S=!1,W=g.hO().QD(65);g.EV(this.W.J())&&W!=null&&(S=!W);S&&this.W.J().T("web_player_nitrate_promo_tooltip")&&this.W.publish("showpromotooltip",this.element)}}; g.V.PJq=function(S){var W,m;(W=g.Ok(this.W))==null||(m=W.gE())==null||m.Uc(S)}; g.V.isEnabled=function(){var S=this.W.getOption("captions","track");return!(!S||!S.displayName)}; g.V.L_=function(){var S=n3(this),W=300;this.W.J().Z&&(W=480);this.W.T("delhi_modern_web_player_icons")&&this.updateValue("icon",MH_(this));var m=this.W.J();if(m.T("html5_hide_unavailable_subtitles_button")?0:!m.V){if(S){var a;(a=this.I2("ytp-subtitles-button-icon"))==null||a.setAttribute("fill-opacity","1");this.W.J().T("player_tooltip_data_title_killswitch")?this.updateValue("title",g.Rg(this.W,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.Rg(this.W,"Subtitles/closed captions", "c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"})}else{if(this.W.T("delhi_modern_web_player_icons")){var J;(J=this.I2("ytp-subtitles-button-icon"))==null||J.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var B;(B=this.I2("ytp-subtitles-button-icon"))==null||B.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}m= this.W.T("player_disable_caption_button_if_captions_not_available")&&this.W.T("delhi_modern_web_player")?S:!0}else this.updateValue("title",g.Rg(this.W,"Subtitles/closed captions","c")),this.update({"tooltip-title":g.Rg(this.W,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"}),m=S;this.tooltip.iK();m=m&&this.W.k6().getPlayerSize().width>=W;this.Fz(m);this.W.logVisibility(this.element,m);S?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed", !1)}; g.V.Nd=function(S){g.b.prototype.Nd.call(this,S)};g.u(g.s9,g.b);g.V=g.s9.prototype;g.V.canShowCountdown=function(){return!g$(this)&&!uS(this)}; g.V.Zb=function(){var S=this.api.k6().getPlayerSize().width,W=this.N2;this.api.J().Z&&(W=400);W=S>=W&&(!uS(this)||!g.C(this.api.getPlayerStateObject(),64));this.Fz(W);g.GD(this.element,"ytp-time-display-allow-autohide",W&&S<400);S=this.api.getProgressState();if(W){var m=this.api.getPresentingPlayerType();W=this.api.getCurrentTime(m,!1);this.N&&(W-=S.airingStart);g$(this)&&(W-=this.Xz.startTimeMs/1E3);this.canShowCountdown()&&this.B&&(W-=this.api.getDuration(m,!1));var a=g.jD(W);this.j!==a&&(this.updateValue("currenttime", a),this.j=a);m=g$(this)?(this.Xz.endTimeMs-this.Xz.startTimeMs)/1E3:this.api.getDuration(m,!1);a=g.jD(m);this.X!==a&&(this.updateValue("duration",a),this.X=a);W=g.Wo("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.jD(W,!0),DURATION:g.jD(m,!0)});this.updateValue("timeDisplayAriaLabel",W)}Lh6(this,S.isAtLiveHead);RMj(this,this.api.getLoopRange())}; g.V.onLoopRangeChange=function(S){var W=this.Xz!==S;this.Xz=S;W&&(this.Zb(),eM7(this))}; g.V.nt6=function(){this.api.setLoopRange(null)}; g.V.YcQ=function(){this.B=!this.B;this.Zb()}; g.V.onVideoDataChange=function(S,W,m){this.updateVideoData((this.api.J().T("enable_topsoil_wta_for_halftime")||this.api.J().T("enable_topsoil_wta_for_halftime_live_infra"))&&m===2?this.api.getVideoData(1):W);this.Zb();eM7(this)}; g.V.updateVideoData=function(S){this.B9=S.isLivePlayback&&!S.PT;this.N=zE(S);this.isPremiere=S.isPremiere;var W,m,a;this.liveIndicatorText=(S=(W=S.getWatchNextResponse())==null?void 0:(m=W.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:a.liveIndicatorText)?EK(S):null;g.GD(this.element,"ytp-live",uS(this));this.api.T("delhi_modern_web_player")&&this.I2("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.V.onClick=function(S){S.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.V.j9=function(){this.C&&this.C();g.b.prototype.j9.call(this)};g.u(dJO,g.b);g.V=dJO.prototype;g.V.An=function(){IHG(this)}; g.V.Ea_=function(S){xJj(this,S);this.S&&IHG(this)}; g.V.u8=function(S){if(!S.defaultPrevented){var W=S.keyCode,m=null;W===37?m=this.volume-5:W===39?m=this.volume+5:W===36?m=0:W===35&&(m=100);m!==null&&(m=g.Su(m,0,100),m===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(m)),S.preventDefault())}}; g.V.Qs=function(S){var W=S.deltaX||-S.deltaY;S.deltaMode?this.api.setVolume(this.volume+(W<0?-10:10)):this.api.setVolume(this.volume+g.Su(W/10,-10,10));S.preventDefault();var m,a;((m=this.api.J())==null?0:(a=m.getWebPlayerContextConfig())==null?0:a.enableFullscreenComponentsFeature)&&S.stopPropagation()}; g.V.bC2=function(){O9(this,this.C,!0,this.N,this.api.Pm());this.N2=this.volume;this.api.isMuted()&&this.api.unMute()}; g.V.eM=function(S){var W=this.B?78:52,m=this.B?18:12;S-=g.Kh(this.Z).x;m=g.Su((S-m/2)/(W-m),0,1);this.S&&(m=g.Su(S/W,0,1));W=m;W=this.api.T("web_player_non_linear_volume_controls")?W<=.25?W/.25*.1:.1+(W-.25)/.75*.9:W;this.api.setVolume(W*100)}; g.V.CJX=function(){O9(this,this.C,!1,this.N,this.api.Pm());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N2))}; g.V.onVolumeChange=function(S){iFO(this,S.volume,S.muted)}; g.V.oP=function(){O9(this,this.C,this.isDragging,this.N,this.api.Pm())}; g.V.j9=function(){g.b.prototype.j9.call(this);g.zD(this.V,"ytp-volume-slider-active")};g.u(jz,g.b); jz.prototype.onVideoDataChange=function(){var S=this.api.J();this.Qc();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).uP;this.Fz(this.visible);this.api.logVisibility(this.element,this.visible&&this.bY);if(this.visible){var W=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",W)}S.B&&(this.C&&(this.TC(this.C),this.C=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Bn(this.element,"no-link")); W=this.api.J();S=this.api.getVideoData();var m="";W.B||(W=g.WY(W),W.indexOf("www.")===0&&(W=W.substring(4)),m=g.yY(S)?"Watch on YouTube Music":W==="youtube.com"?"Watch on YouTube":g.Wo("Watch on $WEBSITE",{WEBSITE:W}));this.api.T("player_tooltip_data_title_killswitch")?this.updateValue("title",m):this.updateValue("tooltip-title",m)}; jz.prototype.onClick=function(S){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var W=this.api.J(),m=this.api.getVideoUrl(!g.Qj(S),!1,!0,!0);if(g.f9(W)){var a={};g.f9(W)&&g.VY(this.api,"addEmbedsConversionTrackingParams",[a]);m=g.ex(m,a)}g.F4(m,this.api,S);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; jz.prototype.Qc=function(){var S={G:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",a6:!0,L:"ytp-svg-fill",D:{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,m=this.api.getVideoData();this.api.isEmbedsShortsMode()?S={G:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},U:[{G:"path",D:{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.yY(m)&&(S={G:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},U:[{G:"path",D:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{G:"path",D:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{G:"path",D:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{G:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{G:"path",D:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{G:"path",D:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{G:"path",D:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{G:"path",D:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{G:"path",D:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{G:"path",D:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{G:"path",D:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{G:"path",D:{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.yY(m)?g.Bn(this.element,"ytp-youtube-music-button"):g.zD(this.element,"ytp-youtube-music-button");S.D=Object.assign({},S.D,{"aria-hidden":"true"});this.updateValue("logoSvg",S);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,W,!0)}; jz.prototype.Nd=function(S){g.b.prototype.Nd.call(this,S);this.api.logVisibility(this.element,this.visible&&S)};g.u(kYP,g.Tx);g.V=kYP.prototype;g.V.onProgress=function(){if(this.W.T("web_player_max_seekable_on_ended")||!g.C(this.W.getPlayerStateObject(),2))xb(this.DD),this.progressBar.Zb(),this.Xg.Zb()}; g.V.Dx=function(){this.Vi();if(xb(this.DD))this.progressBar.Np();else this.onProgress()}; g.V.MX=function(){this.onProgress();this.S.start()}; g.V.Vi=function(){var S;if(S=!this.W.J().N){S=this.progressBar;var W=2*g.BY()*S.V,m=S.B;S=(m.C-m.N)*1E3/S.api.getPlaybackRate()/W<300}S=S&&this.W.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;W=!S;xb(this.DD)&&(S=W=!1);W?this.vn||(this.vn=this.K(this.W,"progresssync",this.onProgress)):this.vn&&(this.TC(this.vn),this.vn=null);S?this.S.isActive()||this.S.start():this.S.stop()}; g.V.Qc=function(){var S=this.W.wp(),W=this.W.k6().getPlayerSize(),m=this.W.k6().rS,a=hMP(this),J=tHl(this),B=Math.max(W.width-a*2,100);if(this.d2!==W.width||this.Y6!==S||this.W.T("web_player_rtr_ctrls")&&this.H9!==m)this.d2=W.width,this.Y6=S,this.H9=m,this.N.element.style.width=J+"px",this.N.element.style.left=a+"px",g.w5D(this.progressBar,a,J,S),this.W.Dz().mD=J;m=this.C;B=Math.min(570*(S?1.5:1),B);S=Math.min(413*(S?1.5:1),Math.round((W.height-AhP(this))*.82));m.maxWidth=B;m.maxHeight=S;m.RH();this.Vi(); this.M2&&i3_(this.zN,W.height)}; g.V.onVideoDataChange=function(){var S=this.W.getVideoData();this.Hn.style.background=S.uP?S.Tw:"";this.N2&&hL_(this.N2,S.showSeekingControls);this.bY&&hL_(this.bY,S.showSeekingControls)}; g.V.yc=function(){return this.N.element};g.u(NL6,Vb);g.V=NL6.prototype;g.V.Ml=function(S){S.target===this.dismissButton.element?this.C&&twQ(T4(),this.C):(this.onClickCommand&&(this.N5(!1),this.W.f_("innertubeCommand",this.onClickCommand)),this.PZ())}; g.V.PZ=function(){this.enabled=!1;this.S.hide()}; g.V.onVideoDataChange=function(S,W){S==="dataloaded"&&bFP(this);S=[];var m,a,J,B;if(W=(B=g.n((m=W.getWatchNextResponse())==null?void 0:(a=m.playerOverlays)==null?void 0:(J=a.playerOverlayRenderer)==null?void 0:J.suggestedActionsRenderer,HnN))==null?void 0:B.suggestedActions)for(m=g.R(W),a=m.next();!a.done;a=m.next())(a=g.n(a.value,lZN))&&g.n(a.trigger,vpH)&&S.push(a);if(S.length!==0){m=[];S=g.R(S);for(a=S.next();!a.done;a=S.next())if(a=a.value,J=g.n(a.trigger,vpH)){B=(B=a.title)?g.K8(B):"View Chapters"; W=J.timeRangeStartMillis;var E=J.timeRangeEndMillis;J=J.onlyTriggersOnPlayerPause;a.tapCommand&&(W!=null&&E!=null&&m.push(new g.hD(W,E,{priority:9,namespace:"suggested_action_button_visible",id:B})),W!=null&&E!=null||J)&&(this.suggestedActions[B]=a,a.rendererContext&&!this.N&&(B=g.n(a.rendererContext,BNg))&&(J=void 0,B=(J=B.loggingDirectives)==null?void 0:J.trackingParams)&&(this.W.setTrackingParams(this.badge.element,B),this.N=!0),J=void 0,((J=a.dismissButtonClientVeSpec)==null?0:J.uiType)&&!this.C&& (this.C=VL(a.dismissButtonClientVeSpec.uiType),pw(T4(),this.C)))}this.W.oY(m)}}; g.V.mw=function(){return this.enabled}; g.V.P1=function(){this.enabled?this.O9.start():pd(this);this.e1()}; g.V.onStateChange=function(S){for(var W=g.R(Object.keys(this.suggestedActions)),m=W.next();!m.done;m=W.next()){m=m.value;var a=void 0;if((a=g.n(this.suggestedActions[m].trigger,vpH))==null?0:a.onlyTriggersOnPlayerPause){S.state.isPaused()?(ZF6(this,m),this.enabled=!0,this.P1()):S.oldState.isPaused()&&(this.enabled=!1,this.P1());break}}}; g.V.j9=function(){bFP(this);Vb.prototype.j9.call(this)};var Up={},vV=(Up.CHANNEL_NAME="ytp-title-channel-name",Up.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Up.LINK="ytp-title-link",Up.SESSIONLINK="yt-uix-sessionlink",Up.SUBTEXT="ytp-title-subtext",Up.TEXT="ytp-title-text",Up.TITLE="ytp-title",Up);g.u(HV,g.b);HV.prototype.onClick=function(S){this.api.logClick(this.element);var W=this.api.J(),m=this.api.getVideoUrl(!g.Qj(S),!1,!0);g.f9(W)&&(W={},g.VY(this.api,"addEmbedsConversionTrackingParams",[W]),m=g.ex(m,W));g.F4(m,this.api,S)}; HV.prototype.L_=function(){var S=this.api.getVideoData(),W=this.api.J();this.updateValue("title",S.title);var m={G:"a",L:vV.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},Bn:"{{channelName}}"};this.api.J().B?m={G:"span",L:vV.CHANNEL_NAME,Bn:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}}:S.XJ&&(m={G:"span",L:vV.SUBTEXT,Bn:S.XJ});this.updateValue("subtextElement",m);o7l(this);this.api.getPresentingPlayerType()===2&&(m=this.api.getVideoData(),m.videoId&&m.isListed&&m.author&& m.O9&&m.profilePicture?(this.updateValue("channelLink",m.O9),this.updateValue("channelName",m.author),this.updateValue("channelTitleFocusable","0")):o7l(this));m=W.externalFullscreen||!this.api.isFullscreen()&&W.vQ;g.GD(this.link,vV.FULLERSCREEN_LINK,m);W.vn||!S.videoId||m||S.uP||W.B?this.C&&(this.updateValue("url",null),this.TC(this.C),this.C=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.C||(this.C=this.K(this.link,"click",this.onClick)));W.B&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.f9(W)?S.expandedTitle:S.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.u(g.lS,g.b);g.V=g.lS.prototype;g.V.setEnabled=function(S){if(this.type!=null)if(S)switch(this.type){case 3:case 2:Mm(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.V=S}; g.V.Xr=function(S,W,m,a,J,B,E,y){if(!this.Xn||this.env.Z){this.type===3&&this.Np();this.type!==1&&(g.aa(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.V&&this.fade.show(),this.N&&this.N.dispose(),(this.N=this.api.LW())&&this.N.subscribe("l",this.GM,this));if(y){var Y=g.ph(this.bg).height||141;this.Pn.style.bottom=Y+2+"px"}else this.Pn.style.display="none";this.env.T("delhi_modern_web_player")?(this.update({pillTimeStamp:m,pillTitle:B!=null?B:"",eduText:y!=null?y:""}),g.Bn(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:m,title:B!=null?B:"",eduText:y!=null?y:""}),g.GD(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!B));this.api.isInline()&&g.Bn(this.bottomText,"ytp-modern-tooltip-text");g.GD(this.element,"ytp-text-detail",!!a);m=-1;this.N&&(m=rq(this.N,243*this.scale),this.env.T("web_l3_storyboard")&&this.N.levels.length===4&&(m=this.N.levels.length-1),m=iv6(this.N,m,W));DJP(this,m);if(E)switch(W=g.ph(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"}chG(this,!!a,S,J)}}; g.V.ul=function(){this.type===1&&this.Np()}; g.V.gy=function(S,W){if(this.type)if(this.type===3)this.Np();else return;rhQ(this,S,3,W)}; g.V.iK=function(){this.C&&!this.Z&&(this.env.T("player_tooltip_data_title_killswitch")?this.C.hasAttribute("title")&&(this.B=this.C.getAttribute("title")||"",this.C.removeAttribute("title"),this.V&&Mm(this)):this.C.hasAttribute("data-tooltip-title")&&(this.B=this.C.getAttribute("data-tooltip-title")||"",this.C.removeAttribute("data-tooltip-title"),this.V&&Mm(this)))}; g.V.GM=function(S,W){S<=this.j&&this.j<=W&&(S=this.j,this.j=NaN,DJP(this,S))}; g.V.KtY=function(){edD(this.N,this.j,243*this.scale)}; g.V.Np=function(){switch(this.type){case 2:var S=this.C;S.removeEventListener("mouseout",this.S);S.addEventListener("mouseover",this.X);S.removeEventListener("blur",this.S);S.addEventListener("focus",this.X);wuc(this);break;case 3:wuc(this);break;case 1:this.N&&(this.N.unsubscribe("l",this.GM,this),this.N=null),this.api.removeEventListener("videoready",this.N2),this.vn.stop()}this.type=null;this.V&&this.fade.hide()}; g.V.D7=function(){if(this.C)for(var S=0;S=0;W--)if(this.wD[W]===S){this.wD.splice(W,1);break}eb(this.DD,64,this.wD.length>0)}; g.V.gb=function(){this.api.C1()&&this.api.ai();return!!this.Kc||ENc(this)||g.Z7.prototype.gb.call(this)}; g.V.jt=function(){var S=!this.gb(),W=S&&this.api.C1()&&!g.C(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().uP&&!this.api.J().B&&!this.api.isEmbedsShortsMode(),m=this.Wc&&g.fB(this.api)&&g.C(this.api.getPlayerStateObject(),128);S||m?(this.EF.show(),this.gT.show()):(this.EF.hide(),this.gT.hide(),this.api.D7(this.H4.element));W?this.FM.Uc():this.FM.OV();this.KC&&$JG(this.KC,this.gtD||!S);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&zgX(this);g.Z7.prototype.jt.call(this)}; g.V.g3=function(S,W,m,a,J){S.style.left="";S.style.top="";S.style.bottom="";var B=g.ph(S),E=a||this.KC&&g.xg(this.KC.yc(),W),y=a=null;m!=null&&E||(a=g.ph(W),y=g.T6(W,this.api.getRootNode()),m==null&&(m=y.x+a.width/2));m-=B.width/2;E?(W=this.KC,a=hMP(W),y=tHl(W),E=this.api.k6().getPlayerSize().height,m=g.Su(m,a,a+y-B.width),B=E-AhP(W)-B.height):g.xg(this.H4.element,W)?(W=this.api.k6().getPlayerSize().width,m=g.Su(m,12,W-B.width-12),B=this.wp()?this.fq:this.l1,this.api.J().playerStyle==="gvn"&&(B+= 20),this.Wc&&(B-=this.wp()?26:18)):(W=this.api.k6().getPlayerSize(),m=g.Su(m,12,W.width-B.width-12),B=y.y>(W.height-a.height)/2?y.y-B.height-12:y.y+a.height+12);S.style.top=B+(J||0)+"px";S.style.left=m+"px"}; g.V.Dx=function(S){S&&(this.api.D7(this.H4.element),this.KC&&this.api.D7(this.KC.yc()));this.LO&&(g.GD(this.contextMenu.element,"ytp-autohide",S),g.GD(this.contextMenu.element,"ytp-autohide-active",!0));g.Z7.prototype.Dx.call(this,S)}; g.V.GK=function(){g.Z7.prototype.GK.call(this);this.LO&&(g.GD(this.contextMenu.element,"ytp-autohide-active",!1),this.LO&&(this.contextMenu.hide(),this.wE&&this.wE.hide()))}; g.V.eU=function(S,W){var m=this.api.k6().getPlayerSize();m=new g.wY(0,0,m.width,m.height);if(S||!xb(this.DD)&&!this.gb()){if(this.api.J().hN||W)S=this.wp()?this.fq:this.l1,m.top+=S,m.height-=S;this.KC&&(m.height-=AhP(this.KC))}return m}; g.V.An=function(S){var W=this.api.getRootNode();S?W.parentElement?(W.setAttribute("aria-label","YouTube Video Player in Full screen"),this.api.J().externalFullscreen||(W.parentElement.insertBefore(this.v6.element,W),W.parentElement.insertBefore(this.NN.element,W.nextSibling))):g.lR(Error("Player not in DOM.")):(W.setAttribute("aria-label","YouTube Video Player"),this.v6.detach(),this.NN.detach());this.Qc();this.Ol()}; g.V.wp=function(){if(this.api.T("web_player_use_screen_width_for_big_mode")){var S;return this.api.k6().getPlayerSize().width>=((S=g.Db(this.api.J().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?S:2E3)}S=this.api.J();return this.api.isFullscreen()&&!S.Z||!1}; g.V.showControls=function(S){this.vK=!S;this.jt()}; g.V.Qc=function(){var S=this.wp();this.tooltip.scale=S?1.5:1;this.contextMenu&&g.GD(this.contextMenu.element,"ytp-big-mode",S);this.jt();this.api.T("web_player_hide_overflow_button_if_empty_menu")||zgX(this);this.Ol();var W=this.api.isEmbedsShortsMode();W&&S?(S=(this.api.k6().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.mg(this.H4.element,"padding-left",S+"px"),g.mg(this.H4.element,"padding-right",S+"px")):W&&(g.mg(this.H4.element,"padding-left",""),g.mg(this.H4.element,"padding-right", ""));g.Z7.prototype.Qc.call(this)}; g.V.j0=function(){if(ENc(this)&&!g.fB(this.api))return!1;var S=this.api.getVideoData();return!g.f9(this.api.J())||this.api.getPresentingPlayerType()===2||!this.E$||((S=this.E$||S.E$)?(S=S.embedPreview)?(S=S.thumbnailPreviewRenderer,S=S.videoDetails&&g.n(S.videoDetails,Oqc)||null):S=null:S=null,S&&S.collapsedRenderer&&S.expandedRenderer)?g.Z7.prototype.j0.call(this):!1}; g.V.Ol=function(){g.Z7.prototype.Ol.call(this);this.api.logVisibility(this.title.element,!!this.wS);this.Ee&&this.Ee.Nd(!!this.wS);this.channelAvatar.Nd(!!this.wS);this.overflowButton&&this.overflowButton.Nd(this.fC()&&!!this.wS);this.shareButton&&this.shareButton.Nd(!this.fC()&&!!this.wS);this.uU&&this.uU.Nd(!this.fC()&&!!this.wS);this.searchButton&&this.searchButton.Nd(!this.fC()&&!!this.wS);this.copyLinkButton&&this.copyLinkButton.Nd(!this.fC()&&!!this.wS);if(!this.wS){this.api.D7(this.H4.element); for(var S=0;S=0?this.C.playbackRate:1}catch(S){return 1}}; g.V.setPlaybackRate=function(S){this.getPlaybackRate()!==S&&(this.C.playbackRate=S);return S}; g.V.kV=function(){return this.C.loop}; g.V.setLoop=function(S){this.C.loop=S}; g.V.canPlayType=function(S,W){return this.C.canPlayType(S,W)}; g.V.isPaused=function(){return this.C.paused}; g.V.isSeeking=function(){return this.C.seeking}; g.V.isEnded=function(){return this.C.ended}; g.V.K0=function(){return this.C.muted}; g.V.BJ=function(S){Kx();this.C.muted=S}; g.V.rq=function(){var S=this.C.played||o3([],[]);return this.view?q0j(this,S):S}; g.V.gU=function(){try{var S=this.C.buffered}catch(W){}S=S||o3([],[]);return this.view?q0j(this,S):S}; g.V.JD=function(){var S=this.C.seekable||o3([],[]);return this.view?q0j(this,S):S}; g.V.Kl=function(){var S=this.C;return S.getStartDate?S.getStartDate():null}; g.V.getCurrentTime=function(){if(this.view){var S=this.C.currentTime;S=this.view?S-this.view.start:S}else S=this.C.currentTime;return S}; g.V.setCurrentTime=function(S){this.C.currentTime=this.view?this.view?S+this.view.start:S:S}; g.V.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.wx?this.view.end-this.view.start:this.C.duration-this.view.start:this.C.duration}; g.V.load=function(){var S=this.C.playbackRate;try{this.C.load()}catch(W){}this.C.playbackRate=S}; g.V.pause=function(){this.C.pause()}; g.V.play=function(){if(this.view&&this.iM())try{this.C.currentTime=this.view.start}catch(W){}var S=this.C.play();if(!S||!S.then)return null;S.then(void 0,function(){}); return S}; g.V.s$=function(){return this.C.readyState}; g.V.rk=function(){return this.C.networkState}; g.V.mI=function(){return this.C.error?this.C.error.code:null}; g.V.TY=function(){return this.C.error?this.C.error.message:""}; g.V.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.C instanceof window.HTMLVideoElement&&this.C.getVideoPlaybackQuality)return this.C.getVideoPlaybackQuality();if(this.C){var S=this.C,W=S.webkitDroppedFrameCount;if(S=S.webkitDecodedFrameCount)return{droppedVideoFrames:W||0,totalVideoFrames:S}}return{}}; g.V.Yb=function(){try{var S=this.getSize(),W={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:r1(this.rq(),",",3),vbu:r1(this.gU()),vbs:r1(this.JD()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.s$(),vns:""+this.rk(),vec:""+this.mI(),vemsg:this.TY(),vvol:""+this.getVolume(),vdom:""+ +this.Nl(),vsrc:""+ +!!this.kK(),vw:""+S.width,vh:""+S.height};this.view&&(W.view=this.view.start+"-"+this.view.end);return W}catch(m){return{}}}; g.V.Sr=function(){return!!this.C.webkitCurrentPlaybackTargetIsWireless}; g.V.cA=function(){return!!this.C.webkitShowPlaybackTargetPicker()}; g.V.togglePictureInPicture=function(){var S=this.C,W=window.document;window.document.pictureInPictureEnabled?this.C!==W.pictureInPictureElement?S.requestPictureInPicture():W.exitPictureInPicture():Gx()&&S.webkitSetPresentationMode(S.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.V.Bc=function(){return pFG(this.C)}; g.V.getSize=function(){return g.ph(this.C)}; g.V.setSize=function(S){g.qU(this.C,S)}; g.V.getVolume=function(){return this.C.volume}; g.V.setVolume=function(S){Kx();this.C.volume=S}; g.V.addEventListener=function(S,W){this.vn.listen(S,W,!1,this);this.x_(S)}; g.V.removeEventListener=function(S,W){this.vn.TC(S,W,!1,this)}; g.V.dispatchEvent=function(S){if(this.V&&S.type==="pause")return!1;if(bl_){var W,m=((W=S.C)==null?void 0:W.timeStamp)||Infinity;W=m>performance.now()?m-Date.now()+performance.now():m;m=this.N||this.j;if((m==null?0:m.Mn())||W<=((m==null?void 0:m.j)||0)){var a;this.s_("rms",{l:"mede",sr:(a=this.C_)==null?void 0:a.HD(),et:S.type});return!1}if(this.zd)return this.s_("rms",{l:"medes",et:S.type}),m&&S.type==="seeking"&&(m.j=performance.now(),this.zd=!1),!1}return this.vn.dispatchEvent(S)}; g.V.x_=function(S){this.S[S]||(this.C.addEventListener(S,this.listener),this.S[S]=this.listener)}; g.V.setAttribute=function(S,W){this.C.setAttribute(S,W)}; g.V.removeAttribute=function(S){this.C.removeAttribute(S)}; g.V.hasAttribute=function(S){return this.C.hasAttribute(S)}; g.V.zJ=P_(52);g.V.iC=P_(55);g.V.ND=P_(58);g.V.M_=P_(61);g.V.Pd=function(){return jY(this.C)}; g.V.mP=function(S){g.Bn(this.C,S)}; g.V.S8=function(S){return g.Jb(this.C,S)}; g.V.Nl=function(){return g.xg(document.body,this.C)}; g.V.audioTracks=function(){var S=this.C;if("audioTracks"in S)return S.audioTracks}; g.V.a8=function(){this.Pn=!1}; g.V.B3=function(){this.Pn=!0;this.BJ(!0)}; g.V.us=function(){this.Pn&&!this.K0()&&this.BJ(!0)}; g.V.equals=function(S){return!!S&&S.yc()===this.yc()}; g.V.j9=function(){for(var S=g.R(Object.keys(this.S)),W=S.next();!W.done;W=S.next())W=W.value,this.C.removeEventListener(W,this.S[W]);this.s9&&this.removeEventListener("volumechange",this.us);ttP&&ToG(this);nP.prototype.j9.call(this)}; g.V.Gb=function(){return this.mI()===4}; g.V.hasError=function(){return this.mI()>0}; g.V.CO=function(){switch(this.mI()){case 2:return"progressive.net.retryexhausted";case 3:var S=this.TY();return(S==null?0:S.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||r17&&(S==null?0:S.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.V.Xu=function(S){this.C.disableRemotePlayback=S}; g.V.jl=function(){var S=this.JD();return S.length<1?NaN:S.end(S.length-1)}; g.V.Ll=function(){return this.X}; g.V.activate=function(S){var W="";S&&(KEl(this,S),W=S.aL);if(!this.kK()||W)W&&this.kK()!==W&&(this.uT(W),delete this.N,this.V&&(this.V.reject(),delete this.V),!window.MediaSource&&window.ManagedMediaSource&&this.Xu(!(S==null||!S.C))),S&&S.C||this.load(),this.s9||(this.addEventListener("volumechange",this.us),this.s9=!0)}; g.V.Xt=function(){var S=this;!this.N&&YH()&&(this.V?this.V.then(function(){return void S.Xt()}):this.kK()||(this.N=this.ym()))}; g.V.mM=function(){this.N&&(this.N.dispose(),this.N=void 0)}; g.V.ym=function(S,W){if(this.N)if(bl_&&T8(this.N)&&!this.N.dg(S,W)){var m;this.s_("rms",{l:"megms",sr:(m=this.C_)==null?void 0:m.HD()});this.mM();this.stopVideo()}else return this.j=this.N,this.N=void 0,this.j;S=VDQ(this);this.activate(S.B);this.j=S;this.zd=!1;return S}; g.V.NI=function(S){this.N=S}; g.V.playVideo=function(){var S=this;this.isEnded()&&this.seekTo(0);!this.kK()&&this.X&&(g.lR(Error("playVideo without src")),this.uT(this.X.aL),this.X.C||this.load());var W=this.play(),m;if((m=this.C_)==null||!XEj(m)){var a;i_&&(x5||0)>=7&&(!W||((a=this.C_)==null?0:a.T("mweb_ios_allow_playback_workaround_when_ready")))&&ajQ(this,function(){g.s7(function(){G26(S,S.getCurrentTime(),0)},500)})}return W}; g.V.s_=function(S,W,m){var a;((a=this.C_)==null?0:a.rd())&&this.C_.iY(S,W,m===void 0?!1:m)}; g.V.qI=function(S){this.C_=S}; g.V.oX=function(){return Wb(this.gU(),this.getCurrentTime())}; g.V.seekTo=function(S){this.s$()>0&&(i_&&x5<4&&(S=Math.max(.1,S)),this.setCurrentTime(S))}; g.V.p7=function(S){if(this.s$()===0||this.hasError())return!1;var W=this.getCurrentTime()>0;if(S>=0){var m=this.JD();if(m.length||!W)return ct(m,S)}return W}; g.V.di=function(){if(!this.N&&this.j)if(this.j.V)try{var S;this.s_("rms",{l:"mer",sr:(S=this.C_)==null?void 0:S.HD(),rs:qo(this.j)});this.j.clear();this.NI(this.j);this.j=void 0}catch(W){S=new g.uc("Error while clearing Media Source in MediaElement: "+W.name+", "+W.message),g.lR(S),this.stopVideo()}else this.stopVideo()}; g.V.stopVideo=function(){var S=this;if(!this.N){var W;(W=this.j)==null||Fk(W);if(ttP){if(!this.V){var m=new Vn;m.then(void 0,function(){}); this.V=m;ZlG&&this.pause();g.s7(function(){S.V===m&&(ToG(S),m.resolve())},200)}}else ToG(this)}}; g.V.Ze=function(){var S=this.gU();return SJ(S)&&this.getDuration()?Dy(S,this.getCurrentTime()):0}; g.V.En=function(){var S=this.gU();return SJ(S)&&this.getDuration()?S.end(S.length-1):0}; g.V.Gd=function(){var S=this.getDuration();return S===Infinity?1:S?this.Ze()/S:0}; var ttP=!1,ZlG=!1,bl_=!1;var RH=[],pxP=!1;g.u(ez,g.A);ez.prototype.Z=function(){this.C!=null&&this.app.getVideoData()!==this.C&&Jp(this.C)&&s87(this.app,this.C,void 0,void 0,this.B)}; ez.prototype.V=function(){if(this.C!=null&&this.app.getVideoData()!==this.C&&this.N!=null&&this.j!=null&&this.X!=null&&Jp(this.C)){var S=this.app.J().experiments.ZH().C.QD(IH);S=nNX(this.N,this.j,this.X,S);S==null?s87(this.app,this.C,void 0,void 0,this.B):(this.N.iY("sgap",S),this.N.getVideoData().Z&&this.N.s1(!1),this.app.J().T("html5_remove_loop_range_on_gapless_fallback")&&(io(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; ez.prototype.S=function(S){var W=this.app.S9();if(W){var m=this.app.getCurrentTime();Math.abs(m-S.end/1E3)>5&&W.iY("glrs",{cmt:m});W.seekTo(0,{seekSource:58});W.iY("glrre",{cmt:m})}}; ez.prototype.j9=function(){this.C=null;g.A.prototype.j9.call(this)};g.u(g.xj,nP);g.V=g.xj.prototype;g.V.isView=function(){return!0}; g.V.iM=function(){var S=this.mediaElement.getCurrentTime();if(S1;ct(S.Ni(),a-.01)&&!J&&(d$(this,4),m.isActive=!1,m.wh=m.wh||m.isActive,(this.X===1?this.C:this.N).iY("sbh",{}),W.isActive=!0,W.wh=W.wh||W.isActive,this.X!==0&&(this.C.getVideoData().fl=!0));S=this.j.N;if(this.j.C.isActive&&S.isActive&&(d$(this,5),this.X!==0)){S=this.N.ZW();m=this.C.ZW(); this.C.iY("sbs",{citag:m==null?void 0:m.itag,nitag:S==null?void 0:S.itag});this.N.iY("gitags",{pitag:m==null?void 0:m.itag,citag:S==null?void 0:S.itag});var B;(B=this.N)==null||B.TR()}}}; g.V.tP=function(){this.T6()&&this.QY("player-reload-after-handoff")}; g.V.QY=function(S,W){W=W===void 0?{}:W;if(!this.TN()&&this.status.status!==6){var m=this.status.status>=4&&S!=="player-reload-after-handoff";this.status={status:Infinity,error:S};if(this.C&&this.N){var a=this.N.getVideoData().clientPlaybackNonce;this.C.vG(new g.a3("dai.transitionfailure",Object.assign(W,{cpn:a,transitionTimeMs:this.U_,msg:S})));this.C.s1(m)}this.WO.reject(S);this.dispose()}}; g.V.T6=function(){return this.status.status>=4&&this.status.status<6}; g.V.j9=function(){Xx6(this);this.C.unsubscribe("newelementrequired",this.tP,this);if(this.B){var S=this.B.N;this.B.C.Md.unsubscribe("updateend",this.s4,this);S.Md.unsubscribe("updateend",this.s4,this)}g.A.prototype.j9.call(this)}; g.V.Y7=function(S){g.qb(S,128)&&this.QY("player-error-event")};g.u(PV,g.A);PV.prototype.clearQueue=function(S,W){S=S===void 0?!1:S;W=W===void 0?!1:W;f3(this);this.j&&this.j.reject("Queue cleared");this.app.J().T("html5_gapless_fallback_on_qoe_restart_v2")||W&&this.N&&this.N.s1(!1);kj(this,S)}; PV.prototype.v4=function(){return!this.C}; PV.prototype.T6=function(){var S;return((S=this.B)==null?void 0:S.T6())||!1}; PV.prototype.j9=function(){f3(this);kj(this);g.A.prototype.j9.call(this)};g.u(I_P,g.au);g.V=I_P.prototype;g.V.getVisibilityState=function(S,W,m,a,J,B,E,y){return S?4:J&&GGc?7:yPP&&!(EU()||document.hasFocus&&document.hasFocus())||EU()?3:W?2:m?1:a?5:J&&!GGc?7:B?8:E?9:y?10:0}; g.V.Gz=function(S){this.fullscreen!==S&&(this.fullscreen=S,this.P1())}; g.V.setMinimized=function(S){this.N!==S&&(this.N=S,this.P1())}; g.V.setInline=function(S){this.inline!==S&&(this.inline=S,this.P1())}; g.V.lL=function(S){this.pictureInPicture!==S&&(this.pictureInPicture=S,this.P1())}; g.V.setSqueezeback=function(S){this.B!==S&&(this.B=S,this.P1())}; g.V.Z_=function(S){this.j!==S&&(this.j=S,this.P1())}; g.V.Sr=function(){return this.C}; g.V.UK=function(){return this.fullscreen!==0}; g.V.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.V.Ao=function(){return this.fullscreen}; g.V.isMinimized=function(){return this.N}; g.V.isInline=function(){return this.inline}; g.V.isBackground=function(){return EU()}; g.V.KW=function(){return this.pictureInPicture}; g.V.jH=function(){return!1}; g.V.Gv=function(){return this.B}; g.V.JE=function(){return this.j}; g.V.P1=function(){this.publish("visibilitychange");var S=this.getVisibilityState(this.Sr(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.KW(),this.jH(),this.Gv(),this.JE());S!==this.V&&this.publish("visibilitystatechange");this.V=S}; g.V.j9=function(){zG_(this.X);g.au.prototype.j9.call(this)};g.u(g.hE,g.A);g.V=g.hE.prototype;g.V.j9=function(){this.videoData=this.playerState=null;g.A.prototype.j9.call(this)}; g.V.addCueRange=function(){}; g.V.kN=function(){}; g.V.Gq=function(){}; g.V.xo=function(){return!1}; g.V.cg=function(){return!1}; g.V.Ie=function(){}; g.V.qg=function(){}; g.V.sK=function(){return[]}; g.V.Br=function(){}; g.V.Hd=function(){}; g.V.xM=function(){return 1}; g.V.getAudioTrack=function(){return this.getVideoData().H1}; g.V.TU=function(){return null}; g.V.getAvailableAudioTracks=function(){return[]}; g.V.My=function(){return[]}; g.V.bS=function(){return[]}; g.V.dU=function(){return""}; g.V.Ef=function(){return[]}; g.V.Vo=function(){}; g.V.cD=function(){return 0}; g.V.getCurrentTime=function(){return 0}; g.V.O0=function(){}; g.V.ZW=function(){}; g.V.Yb=function(){return{}}; g.V.getDuration=function(){return 0}; g.V.Oo=function(){return 0}; g.V.A1=function(){return 0}; g.V.pM=function(){return!1}; g.V.py=function(){return 0}; g.V.Ze=function(){return 0}; g.V.HW=function(){return null}; g.V.Ro=function(){return 0}; g.V.kV=function(){return!1}; g.V.ao=function(){return 0}; g.V.fn=function(){return null}; g.V.ym=function(){return null}; g.V.R6=function(){return 0}; g.V.tj=function(){return 0}; g.V.gp=function(){return g.k(function(S){g.B9(S)})}; g.V.KE=P_(11);g.V.getPlaybackQuality=function(){return"auto"}; g.V.getPlaybackRate=function(){return 1}; g.V.getPlayerState=function(){this.playerState||(this.playerState=new g.uV);return this.playerState}; g.V.getPlayerType=function(){return 0}; g.V.getPlaylistSequenceForTime=function(){return null}; g.V.ju=function(){return function(){}}; g.V.Nz=function(){return""}; g.V.getPreferredQuality=function(){return"unknown"}; g.V.HL=function(){}; g.V.getProximaLatencyPreference=function(){return 0}; g.V.v_=function(){return mK}; g.V.getStartTime=function(){return NaN}; g.V.LW=function(){return null}; g.V.getStoryboardFormat=function(){return null}; g.V.getStreamTimeOffset=function(){return 0}; g.V.BT=function(){return 0}; g.V.DH=function(){return 0}; g.V.Dc=function(){return{Uk:[],R0:[],currentTime:0,dM:"",droppedVideoFrames:0,isGapless:!1,v4:!0,XP:0,vI:0,BI:0,qq:0,It:0,cI:[],QN:[],RF:null,j_:"0",Ig:null,mW:"",totalVideoFrames:0}}; g.V.getUserAudio51Preference=function(){return 0}; g.V.getUserPlaybackQualityPreference=function(){return""}; g.V.getVideoData=function(){this.videoData||(this.videoData=new g.a1(this.Y),g.Z(this,this.videoData));return this.videoData}; g.V.EJ=function(){return null}; g.V.Vk=function(){return null}; g.V.sy=function(){}; g.V.getVideoLoadedFraction=function(){return 0}; g.V.OX=function(){}; g.V.handleError=function(){}; g.V.s1=function(){}; g.V.Aa=function(){}; g.V.hD=P_(36);g.V.xG=function(){return!1}; g.V.hasSupportedAudio51Tracks=function(){return!1}; g.V.isAd=function(){return!1}; g.V.Ae=function(){return!1}; g.V.Sr=function(){return!1}; g.V.isAtLiveHead=function(){return!1}; g.V.z8=function(){return!0}; g.V.isGapless=function(){return!1}; g.V.isHdr=function(){return!1}; g.V.Sq=function(){return!1}; g.V.al=function(){return!1}; g.V.yl=function(){return!1}; g.V.isProximaLatencyEligible=function(){return!1}; g.V.v4=function(){return!0}; g.V.AM=function(){return!1}; g.V.df=function(){return!1}; g.V.u_=function(){}; g.V.xR=function(){}; g.V.TR=function(){}; g.V.A4=function(){}; g.V.Qt=function(){}; g.V.C8=function(){}; g.V.LQ=function(){}; g.V.Bk=P_(46);g.V.oa=P_(17);g.V.d1=function(){}; g.V.pauseVideo=function(){}; g.V.prefetchKeyPlay=function(){}; g.V.playVideo=function(){return g.k(function(S){return S.return()})}; g.V.xW=function(){}; g.V.tV=P_(23);g.V.hV=P_(29);g.V.DR=function(){}; g.V.iY=function(){}; g.V.l6=function(){}; g.V.Kj=function(){}; g.V.rD=function(){}; g.V.vG=function(){}; g.V.g6=function(){}; g.V.L5=function(){}; g.V.f8=function(){}; g.V.Eu=function(){}; g.V.K5=function(){}; g.V.di=function(){}; g.V.removeCueRange=function(){}; g.V.lT=function(){}; g.V.Tk=function(){return[]}; g.V.BO=function(){}; g.V.AE=function(){}; g.V.jh=function(){}; g.V.FB=function(){}; g.V.Dm=function(){}; g.V.f5=function(){}; g.V.Cu=function(){}; g.V.seekTo=function(){}; g.V.sendAbandonmentPing=function(){}; g.V.sendVideoStatsEngageEvent=function(){}; g.V.UR=function(){}; g.V.setLoop=function(){}; g.V.ip=function(){}; g.V.setMediaElement=function(){}; g.V.Hx=function(){}; g.V.setPlaybackRate=function(){}; g.V.QP=function(){}; g.V.dD=function(){}; g.V.Xp=function(){}; g.V.setProximaLatencyPreference=function(){}; g.V.nD=function(){}; g.V.VI=function(){}; g.V.q_=function(){}; g.V.EG=function(){}; g.V.j6=function(){}; g.V.setUserAudio51Preference=function(){}; g.V.sQ=function(){}; g.V.HD=function(){return!1}; g.V.cA=function(){}; g.V.PA=function(){return!1}; g.V.cJ=function(){}; g.V.Ju=function(){}; g.V.zi=function(){}; g.V.stopVideo=function(){}; g.V.subscribe=function(){return NaN}; g.V.XV=function(){}; g.V.togglePictureInPicture=function(){}; g.V.Cr=function(){return 0}; g.V.Q5=function(){}; g.V.unsubscribe=function(){return!1}; g.V.Bh=function(){}; g.V.qD=function(){return!1}; g.V.Vh=function(){}; g.V.UF=function(){}; g.V.dS=function(){};g.u(f_c,g.A);g.V=f_c.prototype;g.V.get=function(S){tE(this);var W=this.data.find(function(m){return m.key===S}); return W?W.value:null}; g.V.z4=function(){tE(this);return this.data.map(function(S){return S.value})}; g.V.set=function(S,W,m){this.remove(S,!0);tE(this);S={key:S,value:W,expire:Infinity};m&&isFinite(m)&&(m*=1E3,S.expire=(0,g.X1)()+m);for(this.data.push(S);this.data.length>this.B;)(m=this.data.shift())&&Zn(this,m,!0);AE(this)}; g.V.remove=function(S,W){W=W===void 0?!1:W;var m=this.data.find(function(a){return a.key===S}); m&&(Zn(this,m,W),g.WF(this.data,function(a){return a.key===S}),AE(this))}; g.V.removeAll=function(S){if(S=S===void 0?!1:S)for(var W=g.R(this.data),m=W.next();!m.done;m=W.next())Zn(this,m.value,S);this.data=[];AE(this)}; g.V.j9=function(){var S=this;g.A.prototype.j9.call(this);this.data.forEach(function(W){Zn(S,W,!0)}); this.data=[]}; g.u(P$K,g.A);g.V=P$K.prototype;g.V.get=function(S){var W=this.map.get(S);return W?W.X3<=(0,g.X1)()?(this.remove(S,!0),null):W.value:null}; g.V.z4=function(){for(var S=[],W=(0,g.X1)(),m=[],a=g.R(this.map.entries()),J=a.next();!J.done;J=a.next()){var B=g.R(J.value);J=B.next().value;B=B.next().value;B.X3<=W?m.push(J):S.push(B.value)}if(m.length>0){W=g.R(m);for(m=W.next();!m.done;m=W.next())Nm(this,m.value,!0);bS(this)}return S}; g.V.set=function(S,W,m){this.map.has(S)&&Nm(this,S,!0);var a=(0,g.X1)(),J=Infinity;m!==void 0&&m!==null&&isFinite(m)&&(J=a+m*1E3);this.map.set(S,{value:W,X3:J});isFinite(J)&&(this.C.enqueue(J,S),kC(this.C)===J&&bS(this));if(!Number.isNaN(this.j))for(S=this.map.keys();this.map.size>this.j;){W=S.next();if(W.done)break;Nm(this,W.value,!0)}}; g.V.remove=function(S,W){Nm(this,S,W===void 0?!1:W)&&bS(this)}; g.V.removeAll=function(S){if((S===void 0?0:S)&&this.N){S=g.R(this.map.values());for(var W=S.next();!W.done;W=S.next())this.N(W.value.value)}this.map.clear();this.C.clear();this.B.stop()}; g.V.j9=function(){g.A.prototype.j9.call(this);this.removeAll(!0)};g.u(g.oH,g.A);g.V=g.oH.prototype;g.V.j9=function(){for(var S=g.R(Object.values(this.B)),W=S.next();!W.done;W=S.next())W.value.dispose();hgD(this);this.Z.dispose();g.A.prototype.j9.call(this)}; g.V.As=function(S){return S?S===1?this.bY:this.N.getVideoData().enableServerStitchedDai&&S===2?this.N.getVideoData().A7?this.B[2]||this.N:this.N:this.B[S]||null:this.N}; g.V.YK=function(S){var W=S.cpn;S=S.playerType;if(W)a:{S=g.R(Object.values(this.B));for(var m=S.next();!m.done;m=S.next())if(m=m.value,m.dU()===W){W=m;break a}W=this.j[W]||null}else W=S?this.As(S):this.N;return W}; g.V.Nw=function(){return this.bY}; g.V.Ms=function(S){this.bY=S}; g.V.S9=function(){return this.N}; g.V.jO=function(S){var W=[S],m=[this.N];this.N=S;r$(this,W,m)}; g.V.Hi=P_(42);g.V.RV=P_(44);GkP.prototype.lO=function(S,W){for(var m=0;m<10;m++){var a=this.C[m],J=a+(m===0?S:0),B=1*Math.pow(2,m);if(J<=B)break;a=Math.min(1,(J-B*.5)/a);for(J=0;J<16;J++)B=this.values[m*16+J]*a,this.values[(m+1)*16+J]+=B,this.C[m+1]+=B,this.values[m*16+J]-=B,this.C[m]-=B}a=m=0;J=8192;W>8192&&(m=Math.ceil(Math.log(W/8192)/Math.log(2)),a=8192*Math.pow(2,m-1),J=a*2);m+2>16?this.values[15]+=S:(W=(W-a)/(J-a),this.values[m]+=S*(1-W),this.values[m+1]+=S*W);this.C[0]+=S}; GkP.prototype.hO=function(){var S=S===void 0?this.N:S;var W=W===void 0?.02:W;var m=m===void 0?.98:m;for(var a=this.B,J=0;J<16;J++)a[J]=this.values[J];J=this.C[0];for(var B=1;B<11;B++){var E=this.C[B];if(E===0)break;for(var y=Math.min(1,(S-J)/E),Y=0;Y<16;Y++)a[Y]+=this.values[B*16+Y]*y;J+=E*y;if(y<1)break}for(B=S=E=0;B<16;B++){y=E+a[B]/J;S+=Math.max(0,Math.min(y,m)-Math.max(E,W))*(B>0?8192*Math.pow(2,B-1):0);if(y>m)break;E=y}return S/(m-W)};cV.prototype.lO=function(S,W){S=Math.min(this.C,Math.max(1,Math.round(S*this.resolution)));S+this.N>=this.C&&(this.B=!0);for(;S--;)this.values[this.N]=W,this.N=(this.N+1)%this.C;this.WY=!0}; cV.prototype.percentile=function(S){var W=this;if(!this.B&&this.N===0)return 0;this.WY&&(g.qK(this.X,function(m,a){return W.values[m]-W.values[a]}),this.WY=!1); return this.values[this.X[Math.round(S*((this.B?this.C:this.N)-1))]]||0}; cV.prototype.hO=function(){return this.V?(this.percentile(this.j-this.V)+this.percentile(this.j)+this.percentile(this.j+this.V))/3:this.percentile(this.j)};g.u(KRK,g.A);KRK.prototype.hX=function(){var S;(S=this.g2)==null||S.start();Qm(this)&&this.policy.S&&this.Y6()};p0j.prototype.T=function(S){return this.experiments.mU(S)};g.u(nw7,g.r_);g.V=nw7.prototype;g.V.Jc=function(){}; g.V.dU=function(){return this.videoData.clientPlaybackNonce}; g.V.getVideoData=function(){if(g.r_.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){var S=t1O(this.tv,g.r_.prototype.getCurrentTime.call(this))||g.r_.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==S.clientPlaybackNonce&&sN_(this.j,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:S.clientPlaybackNonce});return this.videoData}return t1O(this.tv,g.r_.prototype.getCurrentTime.call(this))||g.r_.prototype.getVideoData.call(this)}; g.V.getCurrentTime=function(S){var W=g.r_.prototype.getCurrentTime.call(this);if(g.r_.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){this.C===0?S||(W-=this.startTimeSecs,g.r_.prototype.getVideoData.call(this).T("html5_ssdai_log_missed_ad_impressions")&&this.N&&this.B&&W>1&&this.iY("sdai-admiss",{cpn:this.dU(),ct:W.toFixed(3),pfs:this.B}),this.N=!1):S&&(W=this.C);var m=S?this.tv.V$||g.r_.prototype.getCurrentTime.call(this):fej(this.tv,g.r_.prototype.getCurrentTime.call(this)); W!==m&&sN_(this.j,"time"+(S!=null?S:!1),{time:W,ref:m,ct:S!=null?S:!1})}else W=S?this.tv.V$||W:fej(this.tv,W);return W}; g.V.getDuration=function(){if(g.r_.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){var S=$eO(this.tv,g.r_.prototype.getCurrentTime.call(this));this.duration!==S&&sN_(this.j,"duration",{dur:this.duration,ref:S});return this.duration}return $eO(this.tv,g.r_.prototype.getCurrentTime.call(this))}; g.V.getStartTime=function(){return this.startTimeSecs}; g.V.Ab=function(S){this.duration=S};g.Sj.prototype.hA=function(S,W){if(W===1)return this.C.get(S);if(W===2)return this.B.get(S);if(W===3)return this.N.get(S)}; g.Sj.prototype.MY=P_(68);g.Sj.prototype.xJ=function(S,W,m,a){m={yA:a,Cc:m};W?this.B.set(S,m):this.C.set(S,m)}; g.Sj.prototype.clearAll=function(){this.C.clear();this.B.clear();this.N.clear()}; gwO.prototype.clear=function(){this.N=[];this.B.clear();this.j.clear();this.C.clear()}; gwO.prototype.YK=function(S){return this.B.get(S)}; g.u(g.W5,g.A);g.V=g.W5.prototype;g.V.sK=function(){var S=this.playback.sK("serverstitchedcuerange",36E5);S=g.R(S);for(var W=S.next();!W.done;W=S.next())this.N.delete(W.value.getId())}; g.V.onCueRangeEnter=function(S){var W=S.getId();this.TV({oncueEnter:1,cpn:W,start:S.start,end:S.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.cD()||0).toFixed(3)});var m=this.C.YK(W);this.TV({enterAdCueRange:1});var a=this.Uy||this.oT().cpn,J;a=(J=this.C.YK(a))!=null?J:this.oT();m&&(J=this.playback.getCurrentTime(),m.startTimeSecs=S.start/1E3,m={OB:a,T4:m,sB:J},yR6(this,W,S.start/1E3,J),y7(this,m));this.g2=!1}; g.V.oi=function(S,W,m){var a;if(S&&W&&S!==((a=this.app.Df().C)==null?void 0:a.dU()))if((this.app.Df().j[S]||null)===null){var J;this.TV({nocpn:S,active:(J=this.app.Df().C)==null?void 0:J.dU()})}else{this.g2=m!=null?m:!1;var B;m=((B=this.app.Df().C)==null?void 0:B.dU())||this.playback.dU();var E;B=(E=this.C.YK(m))!=null?E:this.oT();var y;E=(y=this.C.YK(S))!=null?y:this.oT();E.startTimeSecs=W;E.playerType===2&&(E.rZ=E.rZ!=null?Math.min(E.rZ,W):W);y=this.playback.getCurrentTime();yR6(this,m,W,y);y7(this, {OB:B,T4:E,sB:y});if(this.playback.getVideoData().b$()&&S===this.playback.dU())if(W=this.Wv.get(m)){var Y;S=g.R((Y=this.s9.get(W))!=null?Y:[]);for(Y=S.next();!Y.done;Y=S.next()){Y=Y.value;E=y=void 0;B=this.app.Df();E=E===void 0?"":E;if(m=B.j[Y])B.C===m&&(B.C=null),B.X===m&&(B.X=null),Y===((y=B.S.get(E))==null?void 0:y.dU())&&B.S.delete(E),delete B.j[Y];this.q2.delete(Y);this.Wv.delete(Y)}this.s9.delete(W)}else this.TV({no_abid:S})}}; g.V.EX=function(S,W){if(S===this.playback.dU())C3(this.app.Df(),this.playback,!1);else{var m=this.q2.get(S);m?(S=!this.g2,m.C=0,m.startTimeSecs=W,m.B=S===void 0?!0:S,m.N=!0,C3(this.app.Df(),m,!0)):this.TV({nop_s:S})}}; g.V.onCueRangeExit=function(S){for(var W=this.playback.getCurrentTime()*1E3,m=S.getId(),a=g.R(this.N.values()),J=a.next();!J.done;J=a.next())if(J=J.value,J.getId()!==m&&W>=J.start&&W<=J.end)return;if(m=this.C.YK(m))W=this.playback.getCurrentTime(),a=this.oT(),a.startTimeSecs=S.end/1E3,m={OB:m,T4:a,sB:W},yR6(this,this.playback.dU(),S.end/1E3,W),y7(this,m)}; g.V.oT=function(){return{cpn:this.playback.dU(),durationMs:0,Aw:0,playerType:1,cG:0,videoData:this.playback.getVideoData(),errorCount:0,x8:""}}; g.V.seekTo=function(S,W,m,a){S=S===void 0?0:S;W=W===void 0?{}:W;m=m===void 0?!1:m;a=a===void 0?null:a;zO(this,this.Uy);if(this.playback.getVideoData().b$()&&S<=this.V$)this.playback.pauseVideo(),this.V$=0,Y5_(this,S);else if(this.g2=this.bY=!0,m)leD(this,S,W);else{m=this.app.S9();var J=m===this.Pn?this.uY:null;B5(this,!1);this.IL=S;this.vv=W;a!=null&&this.M2.start(a);m&&(this.uY=J||m.getPlayerState(),m.zi(W),this.Pn=m)}}; g.V.j9=function(){B5(this,!1);N9K(this);bQP(this);g.A.prototype.j9.call(this)}; g.V.xV=function(S,W,m){if(m&&W){var a=this.RT.get(S);if(a){a.locations||(a.locations=new Map);var J=Number(W.split(";")[0]);m=new g.H_(m);this.TV({hdlredir:1,itag:W,seg:S,hostport:Fl(68,m)});a.locations.set(J,m)}}}; g.V.S$=function(S,W,m,a,J,B){var E=Number(m.split(";")[0]),y=a===3;S=CEQ(this,S,W,a,m,B);this.TV({gdu:1,seg:W,itag:E,pb:""+!!S});if(!S)return Ed(this,W,y),null;S.locations||(S.locations=new Map);if(!S.locations.has(E)){var Y,G;B=(Y=S.videoData.getPlayerResponse())==null?void 0:(G=Y.streamingData)==null?void 0:G.adaptiveFormats;if(!B)return this.TV({gdu:"noadpfmts",seg:W,itag:E}),Ed(this,W,y),null;Y=B.find(function(p){return p.itag===E}); if(!Y||!Y.url){var K=S.videoData.videoId;S=[];var T=g.R(B);for(a=T.next();!a.done;a=T.next())S.push(a.value.itag);this.TV({gdu:"nofmt",seg:W,vid:K,itag:E,fullitag:m,itags:S.join(",")});Ed(this,W,y);return null}S.locations.set(E,new g.H_(Y.url,!0))}B=S.locations.get(E);if(!B)return this.TV({gdu:"nourl",seg:W,itag:E}),Ed(this,W,y),null;B=new PW(B);this.eg&&(B.get("dvc")?this.TV({dvc:B.get("dvc")||""}):B.set("dvc","webm"));(a=(T=this.hA(W-1,a,J))==null?void 0:T.yA)&&B.set("daistate",a);S.zT&&W>=S.zT&& B.set("skipsq",""+S.zT);(T=this.playback.getVideoData().clientPlaybackNonce)&&B.set("cpn",T);T=[];S.x8&&(T=Dej(this,S.x8),T.length>0&&B.set("acpns",T.join(",")));y||this.RT.set(W,S);y=null;y=B.get("aids");a=B.XD();(a==null?void 0:a.length)>2048&&this.TV({urltoolong:1,sq:W,itag:E,len:a.length});this.hX&&(a&&(B=S.cpn,J=S.x8,Bv6(this,B,J),J&&!this.dA.has(J)&&(B=a$P(this,B,J),Y=JR6(this,J),this.TV({iofa:B}),this.TV({noawnzd:Y-B}),this.TV({acpns:T.join("."),aids:(K=y)==null?void 0:K.replace(/,/g,".")}), this.dA.add(J))),this.TV({gdu:"v",seg:W,itag:m,ast:S.Aw.toFixed(3),alen:S.durationMs.toFixed(3),acpn:S.cpn,avid:S.videoData.videoId}));return a}; g.V.YU=function(S,W,m){m=m===void 0?!1:m;var a=rHG(this,S,W);if(a){this.Od&&(this.Xn=a);var J=void 0,B=a.x8;if(B){this.TV({skipadonsq:W,sts:m,abid:B,acpn:a.cpn,avid:a.videoData.videoId});m=this.C.C.get(B);if(!m)return;m=g.R(m);for(B=m.next();!B.done;B=m.next())B=B.value,B.zT=W,B.YE=S,B.Aw>a.Aw&&(J=B)}zO(this,this.Uy);this.B=a.cpn;w0j(this);this.api.T("html5_ssdai_enable_media_end_cue_range")&&this.playback.Q5(this.B);S=this.playback.getCurrentTime();W3_(this,a,J,S,S,!1,!0);ztc(this)}}; g.V.uW=function(){for(var S=g.R(this.C.N),W=S.next();!W.done;W=S.next())W=W.value,W.zT=NaN,W.YE=NaN;w0j(this);this.TV({rsac:"resetSkipAd",sac:this.B});this.d2.delete(this.B);this.B="";this.Od&&(this.Xn=void 0)}; g.V.hA=function(S,W,m){return this.N2.hA(S,W,m)}; g.V.MY=P_(67); g.V.Wy=function(S){var W=S.trackType,m;S=g.R((m=S.metadata)!=null?m:[]);for(m=S.next();!m.done;m=S.next()){var a=void 0;m=g.R((a=m.value.kmD)!=null?a:[]);for(a=m.next();!a.done;a=m.next()){var J=a.value,B=J.TF,E=J.PC;a=J.cpn;var y=J.loggingMetadata,Y=J.Ht;J=J.KB;if(a&&a!==this.playback.getVideoData().clientPlaybackNonce){var G=this.C.YK(a);if(W===2){if(B&&B.startTicks!==void 0&&B.jq!==void 0&&B.timescale!==void 0&&E&&E.startTicks!==void 0&&E.jq!==void 0&&E.timescale!==void 0&&Y!==void 0){var K=B.startTicks/ B.timescale+this.BT();B=E.startTicks/E.timescale;E=E.jq/E.timescale;G&&(G.rZ=G.rZ!==void 0?Math.min(G.rZ,K):K,y&&(G.Mk=g.Os(y)));y=(K-B)*1E3;E=(B+E)*1E3;Y=y+(J?E:Math.max(E+1E3,Y));(J=this.N.get(a))?(J.start=y,J.end=Y,this.playback.C8()):(J=dec(y,Y,a),this.N.set(a,J),this.playback.addCueRange(J))}this.sK()}else W===1&&G&&y&&(G.xO=g.Os(y))}}}}; g.V.xJ=function(S,W,m,a,J,B,E,y){m.length>0&&this.TV({onssinfo:1,sq:S,start:W.toFixed(3),cpns:m.join(","),ds:a.join(","),isVideo:B?1:0});if(this.Od&&this.Xn&&this.Xn.zT&&m.length>0)for(var Y=g.R(m),G=Y.next();!G.done;G=Y.next())if(G=G.value,G===this.Xn.cpn){this.xP!==G&&(this.TV({skiperror:1,sq:S,acpn:this.Xn.cpn,skipsq:this.Xn.zT||0}),this.xP=G);break}y&&this.N2.xJ(S,B,E,y);if(B){if(m.length&&a.length)for(this.d2.has(m[0])&&this.TV({skipfail:1,sq:S,acpn:m[0]}),S=W+this.BT(),B=0;Bthis.j.IB+1){this.TV({cueStChg:S.identifier,oldSt:this.j.IB.toFixed(3),newSt:S.startSecs.toFixed(3),abid:this.j.qG});if(this.j.qG){var m=S.startSecs-this.j.IB,a=this.C.C.get(this.j.qG);if(a){a=g.R(a);for(var J= a.next();!J.done;J=a.next())J=J.value,J.Aw>=0&&(J.Aw+=m*1E3,this.TV({newApEt:J.Aw,newApPrt:J.cG,acpn:J.cpn}))}}this.j.IB=S.startSecs}W?this.O9.add(S.identifier):this.O9.has(S.identifier)&&this.O9.delete(S.identifier);return W}; g.V.mz=function(S){var W=this;if(this.Y.T("html5_lifa_ignore_multiple_skips")&&this.vn)return this.TV({ufs_ad:this.B,ufs_cur:this.Uy,ufs_cont:this.oT().cpn}),!1;zO(this,this.Uy);this.playback.pauseVideo();var m=this.playback.getCurrentTime(),a=this.C.YK(this.Uy);if(!a)return this.TV({skipFail:m}),!1;this.B=this.Uy;this.bY=!1;this.api.T("html5_ssdai_enable_media_end_cue_range")&&this.playback.Q5(this.B);this.WF(a.x8);GiQ(this,a,this.oT(),S);Y5_(this,m,{seekSource:89,Jw:"lifa_skip"});this.vn||(this.vn= this.events.K(this.api,"progresssync",function(){K7(W.api.Zr(),(0,g.X1)(),"ad_to_video");W.vn&&(W.events.TC(W.vn),W.vn=null)})); return!0}; g.V.WF=function(S){if(this.playback.getVideoData().b$()){var W=this.C.C.get(S);if(W){W=g.R(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var a=this.N.get(m.cpn);this.N.delete(m.cpn);a&&this.playback.removeCueRange(a);HQP(this.C,m)}this.RT.clear();W=this.C;var J;m=(J=W.C.get(S))!=null?J:[];J=g.R(m);for(m=J.next();!m.done;m=J.next())HQP(W,m.value);W.C.delete(S);(S=this.EV.get(S))&&this.mQ&&this.playback.FB(S)}}}; g.V.TV=function(S,W){((W===void 0?0:W)||this.hX)&&this.playback.iY("sdai",S)};g.u(Tvc,g.A);g.V=Tvc.prototype;g.V.onCueRangeEnter=function(S){if(this.C===this.app.S9()){var W=this.X.get(S);W?sdG(this,W.target,W.U_,S):this.vG("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:S.toString()})}else if(W=this.N.find(function(J){return J.Is.V2===S})){var m=W.Is,a=m.target; m=m.U_;a?sdG(this,a,m,S):nUP(this,W.cG,m,S)}}; g.V.onQueuedVideoLoaded=function(){var S=this.Z;TO(this);if(S){if(!KC(this,S)){var W=this.app.S9();this.vG("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:W==null?void 0:W.getVideoData().clientPlaybackNonce,ccpn:""+S.playerVars.cpn})}this.app.S9().addCueRange(S.Is.V2)}}; g.V.seekTo=function(S,W,m,a){S=S===void 0?0:S;W=W===void 0?{}:W;a=a===void 0?null:a;if(m===void 0?0:m)K3O(this,S,W);else{m=this.app.S9()||null;var J=m===this.j?this.V:null;q6(this,!1);this.N2=S;this.bY=W;a!=null&&this.S.start(a);m&&(this.V=J||m.getPlayerState(),m.zi(),this.j=m)}}; g.V.b6=function(S){g.qb(S,128)&&QdD(this)}; g.V.isManifestless=function(){return vB(this.C.getVideoData())}; g.V.j9=function(){q6(this,!1);vU6(this);g.A.prototype.j9.call(this)}; g.V.vG=function(S,W){this.C.vG(new g.a3(S,W))}; var q56=0;var HSK="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.u(pC,g.A);pC.prototype.fM=function(S){if(S)return this.N.get(S)}; pC.prototype.j9=function(){this.C.removeAll();this.N.removeAll();g.A.prototype.j9.call(this)};g.p$$=N1(function(){var S=window.AudioContext||window.webkitAudioContext;try{return new S}catch(W){return W.name}});g.u(Rtl,g.b);g.V=Rtl.prototype;g.V.mP=function(){g.Eo(this.element,g.VH.apply(0,arguments))}; g.V.AE=function(){this.bP&&(this.bP.removeEventListener("focus",this.Ew),g.eu(this.bP),this.bP=null)}; g.V.WK=function(){this.TN();var S=this.app.J();S.Ul||this.mP("tag-pool-enabled");S.V&&this.mP(g.Lw.HOUSE_BRAND);S.playerStyle==="gvn"&&(this.mP("ytp-gvn"),this.element.style.backgroundColor="transparent");S.EV&&(this.b3=g.S0("yt-dom-content-change",this.resize,this));this.K(window,"orientationchange",this.resize,this);this.K(window,"resize",this.resize,this)}; g.V.oZ=function(S){g.AJ(this.app.J());this.H_=!S;Fe(this)}; g.V.resize=function(){if(this.bP){var S=this.bO();if(!S.isEmpty()){this.app.E9.isFullscreen()&&bO()&&this.nX.start();var W=!g.EN(S,this.xF.getSize()),m=I$P(this);W&&(this.xF.width=S.width,this.xF.height=S.height);S=this.app.J();(m||W||this.xQ||S.EV)&&this.app.E9.publish("resize",this.getPlayerSize())}}}; g.V.uZ=function(S,W){this.updateVideoData(W)}; g.V.updateVideoData=function(S){if(this.bP){var W=this.app.J();Zf&&(this.bP.setAttribute("x-webkit-airplay","allow"),S.title?this.bP.setAttribute("title",S.title):this.bP.removeAttribute("title"));this.bP.setAttribute("controlslist","nodownload");W.ZI&&S.videoId?this.bP.poster=S.Zf("default.jpg"):ax()&&(tJ!=null?tJ:0)>=10&&(this.bP.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}W=g.iZ(S,"yt:bgcolor");this.o4.style.backgroundColor=W?W:"";this.Ch=G1(g.iZ(S, "yt:stretch"));this.b9=G1(g.iZ(S,"yt:crop"),!0);g.GD(this.element,"ytp-dni",S.uP);this.resize()}; g.V.setGlobalCrop=function(S){this.L4=G1(S,!0);this.resize()}; g.V.setCenterCrop=function(S){this.xD=S;this.resize()}; g.V.Gz=function(){}; g.V.getPlayerSize=function(){var S=this.app.J(),W=this.app.E9.isFullscreen(),m=S.externalFullscreen&&g.f9(S);if(W&&bO()&&!m)return new g.BI(window.outerWidth,window.outerHeight);m=!isNaN(this.bk.width)&&!isNaN(this.bk.height);var a=this.app.J().T("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.J().T("web_watch_enable_fs_squeezeback_panels");if(W&&!m&&a)return new g.BI(this.element.clientWidth,this.element.clientHeight);if(W||S.YN){if(window.matchMedia){S="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.K$&&this.K$.media===S||(this.K$=window.matchMedia(S));var J=this.K$&&this.K$.matches}if(J)return new g.BI(window.innerWidth,window.innerHeight)}else if(m)return this.bk.clone();return new g.BI(this.element.clientWidth,this.element.clientHeight)}; g.V.bO=function(){var S=this.app.J().T("enable_desktop_player_underlay"),W=this.getPlayerSize(),m=g.Db(this.app.J().experiments,"player_underlay_min_player_width");return S&&this.Tx&&W.width>m?(S=g.Db(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.BI(Math.min(W.height*this.getVideoAspectRatio(),W.width*S),Math.min(W.height,W.width*S/this.getVideoAspectRatio()))):W}; g.V.getVideoAspectRatio=function(){return isNaN(this.Ch)?x4P(this):this.Ch}; g.V.getVideoContentRect=function(S){var W=this.bO();S=iSG(this,W,this.getVideoAspectRatio(),S);return new g.wY((W.width-S.width)/2,(W.height-S.height)/2,S.width,S.height)}; g.V.cO=function(S){this.Tx=S;this.resize()}; g.V.wC=function(){return this.yy}; g.V.onMutedAutoplayChange=function(){Fe(this)}; g.V.setInternalSize=function(S){g.EN(this.bk,S)||(this.bk=S,this.resize())}; g.V.j9=function(){this.b3&&g.Wp(this.b3);this.AE();g.b.prototype.j9.call(this)};g.V=f$7.prototype;g.V.click=function(S,W){this.elements.has(S);this.C.has(S);var m=g.uR();m&&S.visualElement&&g.wT(m,S.visualElement,W)}; g.V.createClientVe=function(S,W,m,a){var J=this;a=a===void 0?!1:a;this.elements.has(S);this.elements.add(S);m=VL(m);S.visualElement=m;var B=g.uR(),E=g.se();B&&E&&(g.Qi("combine_ve_grafts")?pw(T4(),m,E):g.my(g.hy)(void 0,B,E,m));W.addOnDisposeCallback(function(){J.elements.has(S)&&J.destroyVe(S)}); a&&this.N.add(S)}; g.V.createServerVe=function(S,W,m){var a=this;m=m===void 0?!1:m;this.elements.has(S);this.elements.add(S);W.addOnDisposeCallback(function(){a.destroyVe(S)}); m&&this.N.add(S)}; g.V.destroyVe=function(S){this.elements.has(S);this.elements.delete(S);this.B.delete(S);this.C.delete(S);this.N.delete(S)}; g.V.Wg=function(S,W){this.clientPlaybackNonce!==W&&(this.clientPlaybackNonce=W,qE(T4(),S),kiP(this))}; g.V.setTrackingParams=function(S,W){this.elements.has(S);W&&(S.visualElement=g.Fg(W))}; g.V.Fz=function(S,W,m){this.elements.has(S);W?this.C.add(S):this.C.delete(S);var a=g.uR(),J=S.visualElement;this.N.has(S)?a&&J&&(W?g.cl(a,[J]):g.D8(a,[J])):W&&!this.B.has(S)&&(a&&J&&g.CU(a,J,void 0,m),this.B.add(S))}; g.V.hasVe=function(S){return this.elements.has(S)};var FW9={sy2:"echo",fVq:"transfer-media-source",EG2:"busy-wait"};g.u(nC,g.A);nC.prototype.sendRequest=function(){var S=Object.values(FW9);switch(S[Math.floor(Math.random()*S.length)]){case "echo":t5P(this,this.j);break;case "transfer-media-source":this.TO&&(S={command:"transfer-media-source",mainEventSent:performance.now(),data:htG(this,this.j)},this.request(S));break;case "busy-wait":S=this.busyWaitMs,this.TO&&(S={command:"busy-wait",mainEventSent:performance.now(),busyWaitMs:S},this.request(S))}}; nC.prototype.request=function(S){this.TO&&this.TO.postMessage(S)}; nC.prototype.receive=function(S){if(!(this.X>=5E3)){var W=S.timeStamp,m=performance.now();S=S.data;var a=S.mainEventSent;this.iY("worker",{type:S.response,t1:(S.workerEventCreated-performance.timeOrigin-a).toFixed(3),t2:(S.workerEventProcessed-performance.timeOrigin-a).toFixed(3),t3:(W-a).toFixed(3),t4:(m-a).toFixed(3)});this.X++}}; nC.prototype.j9=function(){this.N!==void 0&&(clearInterval(this.N),this.N=void 0);var S;(S=this.TO)==null||S.terminate();this.C=this.TO=void 0;this.iY("workerDtor",{});g.A.prototype.j9.call(this)};g.u(g.sd,g.A);g.sd.create=function(S,W,m,a){try{var J=typeof S==="string"?S:"player"+g.xp(S),B=LQ[J];if(B){try{B.dispose()}catch(y){g.lR(y)}LQ[J]=null}var E=new g.sd(S,W,m,a);E.addOnDisposeCallback(function(){LQ[J]=null;E.Ps&&E.Ps()}); return LQ[J]=E}catch(y){throw g.lR(y),(y&&y instanceof Error?y:Error(String(y))).stack;}}; g.V=g.sd.prototype;g.V.iO=function(){return this.visibility}; g.V.Ms=function(S){var W=this.Nw();if(S!==W){S.getVideoData().autonavState=W.getVideoData().autonavState;W.Bh(this.cz,this);var m=W.getPlaybackRate();W.dispose();this.rA.Ms(S);S.setPlaybackRate(m);S.XV(this.cz,this);CJG(this)}}; g.V.MP=function(){this.jA||(this.jA=g.CG(bt(),NiD()));return this.jA}; g.V.AE=function(S){if(this.mediaElement){this.ue&&(this.events.TC(this.ue),this.ue=null);g.eY(this.BZ);this.S9().AE(!0,!1,S);this.template.AE();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Bx()}catch(W){g.Ue(W)}this.mediaElement=null}}; g.V.jO=function(S,W,m){if(S!==this.S9()){var a=null;if(m===void 0||!m){m=this.S9();a=m.getPlayerState();HZ(this.l$,3);hC(this,"cuerangesremoved",m.Ef());this.cQ&&!S.isGapless()&&m.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();m=S.HD()&&m.HD();this.Pv.GS("iv_s");m=m===void 0?!0:m;var J;if(J=this.FD){J=this.FD;var B=this.mediaElement;J=!!B&&B===J.mediaElement}J&&(this.AE(),gH(this));J=this.S9();J.AE(!m);J.Bh(this.Pp,this);J.getPlayerType()!==1&&J.dispose();m=this.rA;J=[m.N];m.N=m.Z; r$(m,[],J)}S.getPlayerType()===1&&this.Ms(S);m=S.getPlayerType();J=this.rA.B[m]||null;S!==this.Nw()&&S!==J&&(J==null||J.dispose(),this.rA.B[m]=S);this.rA.jO(S);this.mediaElement&&S.setMediaElement(this.mediaElement);S.XV(this.Pp,this);S.df()?Uf_(this,"setPresenting",!1):(this.uZ("newdata",S,S.getVideoData()),a&&!g.vb(a,S.getPlayerState())&&this.Z9(new g.KZ(S.getPlayerState(),a)),W=W&&S.getPlayerType()===1,S.al()&&!W&&this.uZ("dataloaded",S,S.getVideoData()),(W=(W=S.getVideoData().N)&&W.video)&&this.E9.ZD("onPlaybackQualityChange", W.quality),hC(this,"cuerangesadded",S.Ef()),W=S.getPlayerState(),g.C(W,2)?ExG(this):g.C(W,8)?S.playVideo():S.Sq()&&S.pauseVideo(),W=this.Nw(),S.getPlayerType()===2&&(S.getVideoData().hG=W.getVideoData().clientPlaybackNonce),S.getPlayerType()!==2||this.BD()||(S=S.getVideoData(),W.xW(S.clientPlaybackNonce,S.M2||"",S.breakType||0,S.D0,S.videoId||"")),this.CS++)}}; g.V.Ue=function(){this.Nw()!==this.S9()&&this.jO(this.Nw())}; g.V.Df=function(){return this.rA}; g.V.YK=function(S){return this.rA.YK(S)}; g.V.As=function(S){return this.rA.As(S)}; g.V.Nw=function(){return this.rA.Nw()}; g.V.S9=function(){return this.rA.S9()}; g.V.gM=P_(40);g.V.VDq=function(){v5(this)||this.AN(5)}; g.V.Me9=function(){if(!v5(this)){vxc(this);var S=this.S9(),W=S.getVideoData();this.Y.T("html5_allow_multiview_tile_preload")&&W.dA&&S.seekTo(Infinity);W=S.getPlayerState();S.Sq()?this.pauseVideo():W.isOrWillBePlaying()&&this.playVideo()}}; g.V.canPlayType=function(S){return zx(S)}; g.V.J=function(){return this.Y}; g.V.getVideoData=function(){return this.S9().getVideoData()}; g.V.i_=function(){return this.S9().HW()}; g.V.CP=function(){return this.Nw().getVideoData()}; g.V.getVideoLoadedFraction=function(S){return g.jj(this,{playerType:S}).getVideoLoadedFraction()}; g.V.k6=function(){return this.template}; g.V.GV=function(){return this.l$}; g.V.Zr=function(){return this.Pv}; g.V.sG=function(S,W,m){g.jj(this,{playerType:W===void 0?1:W}).UR(S,void 0,m)}; g.V.jJ=function(){var S=this.l$.jJ();this.E9.publish("videoStatsPingCreated",S);return S}; g.V.getVolume=function(){return Math.round(this.E9.getVolume())}; g.V.isMuted=function(){return this.E9.isMuted()}; g.V.n0=function(){if(this.Nw()===this.S9()&&this.Xz)return this.Xz.postId}; g.V.IrN=function(){var S=this;this.T("use_rta_for_player")||(g.pt(this.Y)?g.Fm(this.Y,g.cB(this.getVideoData())).then(function(W){og(bt(),W);WV7(S.getVideoData(),S.Y,S.MP())}):WV7(this.getVideoData(),this.Y,this.MP()))}; g.V.I0=function(S){this.E9.publish("poTokenVideoBindingChange",S)}; g.V.o9=function(S){this.E9.publish("d6de4videobindingchange",S)}; g.V.nL=function(){this.ag&&this.ag.nL()}; g.V.Th=function(S){this.ag=S}; g.V.L8=function(S){if(S===1){this.Pv.tick("vr");var W=this.S9();W.Gq();d7c(this.Pv,W.getVideoData(),XNG(this));Kq7(this.l$)}W=this.Y;if(TJ(W)&&W.S||g.NT(W)){var m;(((m=this.S9().getVideoData())==null?0:m.enableServerStitchedDai)||!this.BD())&&this.E9.ZD("onAdStateChange",S)}}; g.V.setLoopVideo=function(S){var W=this.S9();W===this.Nw()&&W.kV()!==S&&(W.setLoop(S),this.E9.f_("onLoopChange",S))}; g.V.getLoopVideo=function(){return this.S9().kV()}; g.V.setLoopRange=function(S){var W=!1;!!this.Xz!==!!S?W=!0:this.Xz&&S&&(W=this.Xz.startTimeMs!==S.startTimeMs||this.Xz.endTimeMs!==S.endTimeMs||this.Xz.postId!==S.postId||this.Xz.type!==S.type);if(W){W=this.S9();Fh(W.getVideoData())&&W.iY("slr",{et:(S==null?void 0:S.endTimeMs)||-1});W=this.Nw();W.Tk("applooprange");if(S){var m=new g.hD(S.startTimeMs,S.endTimeMs,{id:"looprange",namespace:"applooprange"});W.addCueRange(m)}else{this.CP().clipConfig=void 0;var a;((m=this.Xz)==null?void 0:m.type)!=="repeatChapter"|| isNaN(Number((a=this.Xz)==null?void 0:a.loopCount))||(m={loopCount:String(this.Xz.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.qd("repeatChapterLoopEvent",m))}this.Xz=S;this.E9.f_("onLoopRangeChange",S||void 0);this.Nw()===this.S9()&&(this.RZ(),W.Ie())}}; g.V.getLoopRange=function(){return this.Xz}; g.V.RZ=function(){var S="",W=this.Nw();this.Xz?W!==this.S9()?S="pnea":q3_(this,W.getCurrentTime())&&(this.Xz.loopCount=0,S="ilr"):S="nlr";var m=this.S9();if(Fh(m.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var a,J;m.iY("slrre",{rej:S,ct:W.getCurrentTime(),lst:(a=this.Xz)==null?void 0:a.startTimeMs,let:(J=this.Xz)==null?void 0:J.endTimeMs})}else m.iY("slrre",{});S||FP_(this)}; g.V.setPlaybackRate=function(S,W){if(!isNaN(S)){S=axP(this,S);var m=this.Nw();m.getPlaybackRate()!==S&&(m.setPlaybackRate(S),W&&!this.Y.j&&g.i7("yt-player-playback-rate",S),this.E9.ZD("onPlaybackRateChange",S))}}; g.V.getCurrentTime=function(S,W){W=W===void 0?!0:W;var m=this.rA.qp;if(m)return m.getCurrentTime();S=(m=S===2&&this.getVideoData().enableServerStitchedDai)?this.S9():g.jj(this,{playerType:S});return m&&this.fP?(m=this.rA.X)?m.getCurrentTime(W):S.getCurrentTime():W?(W=Xe(this,S),dH(this,W.getCurrentTime(),W)):S.getCurrentTime()}; g.V.Ze=function(){var S=g.jj(this,{playerType:void 0});S=Xe(this,S);return dH(this,S.Ze(),S)}; g.V.getDuration=function(S,W){W=W===void 0?!0:W;var m=this.rA.qp;if(m)return m.getDuration();m=this.getVideoData();var a=S===2&&m.enableServerStitchedDai;var J=a?this.S9():g.jj(this,{playerType:S});if(m.hasProgressBarBoundaries()&&!a){var B,E=Number((B=m.progressBarStartPosition)==null?void 0:B.utcTimeMillis),y;B=Number((y=m.progressBarEndPosition)==null?void 0:y.utcTimeMillis);if(!isNaN(E)&&!isNaN(B))return(B-E)/1E3}if(Fh(m)&&!m.isLivePlayback)return x9(this,S);if(W)return S=Q7(this,J),dH(this,S.getDuration(), S);if(a&&this.fP){if(this.T("html5_huli_ssdai_use_playback_state"))return S=this.rA,S=S.C===S.X?S.C:null,(S==null?void 0:S.getDuration())||0;var Y;return((Y=this.rA.X)==null?void 0:Y.getDuration())||0}return J.getDuration()}; g.V.A1=function(S){var W=g.jj(this,{playerType:S});return this.BD(W)?(W=Q7(this,W),W.A1()-W.getCurrentTime()+this.getCurrentTime(S)):W.A1()}; g.V.finishSegmentByCpn=function(){return[]}; g.V.WK=function(){this.template.WK();var S=this.E9;S.state.element=this.template.element;var W=S.state.element,m;for(m in S.state.C)S.state.C.hasOwnProperty(m)&&(W[m]=S.state.C[m]);(S=pH7(this.template.element))&&this.events.K(this.template,S,this.onFullscreenChange)}; g.V.getDebugText=function(S){var W=this.Nw().Yb(S),m=this.S9();if(m!==this.Nw()){m=m.Yb(S);for(var a=g.R(Object.keys(m)),J=a.next();!J.done;J=a.next())J=J.value,W["ad"+J]=m[J];if(S){m=W;a={};if(J=FO(document,"movie_player"))a.bounds=J.getBoundingClientRect(),a["class"]=J.className;J={};var B=g.gY("video-ads");B?(eA_(B,J),J.html=B.outerHTML):J.missing=1;B={};var E=g.gY("videoAdUiSkipContainer"),y=g.gY("ytp-ad-skip-button-container"),Y=g.gY("ytp-skip-ad-button"),G=E||y||Y;G?(eA_(G,B),B.ima=E?1:0,B.bulleit= y?1:0,B.component=Y?1:0):B.missing=1;a=JSON.stringify({player:a,videoAds:J,skipButton:B});m.ad_skipBtnDbgInfo=a}}S&&this.mediaElement&&(W["0sz"]=""+(+zd(this.mediaElement.getSize())===0),W.op=this.mediaElement.S8("opacity"),m=this.mediaElement.Bc().y+this.mediaElement.getSize().height,W.yof=""+(+m<=0),W.dis=this.mediaElement.S8("display"));S&&((S=(0,g.PE)())&&(W.gpu=S),(S=this.Y.playerStyle)&&(W.ps=S),this.Y.g2&&(W.webview=1),(S=this.webPlayerContextConfig.jsUrl)&&(W.js=S));W.debug_playbackQuality= this.E9.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.V.getFeedbackProductData=function(){var S={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:z[50]},W=this.getPlayerStateObject().Of;W&&(S.player_error_code=W.errorCode,S.player_error_details=JSON.stringify(W.errorDetail));return S}; g.V.getPresentingPlayerType=function(S){if(this.appState===1)return 1;if(v5(this))return 3;var W,m,a;return(S&&this.Y.ZH().C.QD(VQ_)?(a=(W=this.rA.C)==null?void 0:W.isAd())!=null&&a:(m=this.fP)==null?0:h6c(m,this.getCurrentTime()))?2:this.S9().getPlayerType()}; g.V.FT=function(){return!1}; g.V.getPlayerStateObject=function(S){var W=this.rA.qp;return W?W.getPlayerState():g.jj(this,{playerType:S}).getPlayerState()}; g.V.getAppState=function(){return this.appState}; g.V.aD9=function(S){switch(S.type){case "loadedmetadata":this.Ur.start();S=g.R(this.wb);for(var W=S.next();!W.done;W=S.next())W=W.value,Q8c(this,W.id,W.qo6,W.jhq,void 0,!1);this.wb=[];break;case "loadstart":this.Pv.GS("gv");break;case "progress":case "timeupdate":w1(S.target.gU())>=2&&this.Pv.GS("l2s");break;case "playing":g.GJ&&this.Ur.start();if(g.pt(this.Y))S=!1;else{W=g.$8(this.GV());S=this.mediaElement.S8("display")==="none"||zd(this.mediaElement.getSize())===0;var m=V7(this.template),a=this.S9().getVideoData(), J=g.IL(this.Y);a=VI(a);W=!m||W||J||a||this.Y.d2;S=S&&!W}S&&(S=this.S9(),S.u_(),this.getVideoData().zN||(this.getVideoData().zN=1,this.OD(),S.playVideo()))}}; g.V.QYq=function(S){this.E9.NE("onLoadProgress",S)}; g.V.qyD=function(){this.E9.publish("playbackstalledatstart")}; g.V.ia2=function(S,W){this.E9.publish("sabrCaptionsDataLoaded",S,W)}; g.V.p12=function(S){this.S9().VI(S)}; g.V.Yy2=function(S){this.S9().nD(S)}; g.V.w1U=function(S){S=Xe(this,this.S9());S=dH(this,S.getCurrentTime(),S);this.E9.ZD("onVideoProgress",S);this.Y.CE&&uUP(this,this.visibility.KW())&&this.pauseVideo()}; g.V.fz2=function(){this.E9.ZD("onAutoplayBlocked");var S=this.S9().getVideoData();S&&(S.d5=!0);g.f9(this.Y)&&(S={autoplayBrowserPolicy:RU(),autoplayIntended:eP(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qd("embedsAutoplayStatusChanged",S))}; g.V.CQ2=function(){this.E9.publish("progresssync")}; g.V.xE9=function(){this.E9.NE("onPlaybackPauseAtStart")}; g.V.Zn2=function(S){if(this.getPresentingPlayerType()===1){g.qb(S,1)&&!g.C(S.state,64)&&this.CP().isLivePlayback&&this.Nw().isAtLiveHead()&&this.E9.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.qb(S,2)){if(this.Xz&&this.Xz.endTimeMs>=(this.getDuration()-1)*1E3){FP_(this);return}ExG(this)}if(g.C(S.state,128)){var W=S.state;this.cancelPlayback(5);W=W.Of;JSON.stringify({errorData:W,debugInfo:this.getDebugText(!0)});this.E9.ZD("onError",qKP(W.errorCode));this.E9.NE("onDetailedError",{errorCode:W.errorCode, errorDetail:W.errorDetail,message:W.errorMessage,messageKey:W.EU,cpn:W.cpn});(0,g.X1)()-this.Y.Mi>6048E5&&this.E9.NE("onReloadRequired")}W={};if(S.state.isPlaying()&&!S.state.isBuffering()&&!eG("pbresume","ad_to_video")&&eG("_start","ad_to_video")){var m=this.getVideoData();W.clientPlaybackNonce=m.clientPlaybackNonce;m.videoId&&(W.videoId=m.videoId);g.LG(W,"ad_to_video");UY("pbresume",void 0,"ad_to_video");Kq7(this.l$)}this.E9.publish("applicationplayerstatechange",S)}}; g.V.Z9=function(S){this.rA.qp||this.E9.publish("presentingplayerstatechange",S)}; g.V.b6=function(S){Od(this,lV(S.state));g.C(S.state,1024)&&this.E9.isMutedByMutedAutoplay()&&(RA(this,{muted:!1,volume:this.hE.volume},!1),ej(this,!1))}; g.V.onPlayerRequestSent=function(S){this.E9.f_("onPlayerRequestSent",S)}; g.V.PN=function(S,W){S==="newdata"&&CJG(this);this.E9.publish("applicationvideodatachange",S,W)}; g.V.lzN=function(S,W){vxc(this);this.E9.NE("onPlaybackAudioChange",this.E9.getAudioTrack().n3.name);this.E9.publish("internalaudioformatchange",this.E9.getAudioTrack().n3.id,W)}; g.V.yrn=function(S){var W=this.S9().getVideoData();S===W&&this.E9.ZD("onPlaybackQualityChange",S.N.video.quality)}; g.V.dN=function(){var S=this.rA.B[2]||null;S&&(S=S.getVideoData(),this.S9().iY("ssdai",{cleanaply:1,acpn:S==null?void 0:S.clientPlaybackNonce,avid:S.videoId,isDai:this.CP().enableServerStitchedDai?1:0}),delete this.rA.B[2])}; g.V.IDn=function(S,W){this.uZ(S,this.S9(),W)}; g.V.uZ=function(S,W,m){this.Y.rd()&&W.iY("vdc",{type:S,vid:m.videoId||"",cpn:m.clientPlaybackNonce||""});W===this.Nw()&&(this.Y.Ra=m.oauthToken);W===this.Nw()&&(this.getVideoData().enableServerStitchedDai&&!this.fP?(this.Nw().iY("sdai",{initSstm:1}),this.fP=new g.W5(this.E9,this.Y,this.Nw(),this)):!this.getVideoData().enableServerStitchedDai&&this.fP&&(this.fP.dispose(),this.fP=null));if(S==="newdata")HZ(this.l$,2),this.E9.publish("videoplayerreset",W);else{if(!this.mediaElement)return;if(S==="dataloaded")if(this.Nw()=== this.S9()){if(cT(m.w2,m.Cl),!this.Nw().getPlayerState().isError()){var a=v5(this);this.CP().isLoaded();a&&this.AN(6);Y3K(this);YWK(this.l$)||ylG(this)}}else Y3K(this);if(W.getPlayerType()===1&&(this.Y.s9&&RAD(this),this.getVideoData().isLivePlayback&&!this.Y.TJ&&this.QY("html5.unsupportedlive",2,"DEVICE_FALLBACK"),m.isLoaded()&&((uGj(m)||this.getVideoData().HA)&&this.E9.publish("legacyadtrackingpingchange",this.getVideoData()),m.hasProgressBarBoundaries()))){var J;a=Number((J=this.getVideoData().progressBarEndPosition)== null?void 0:J.utcTimeMillis)/1E3;!isNaN(a)&&(J=this.A1())&&(J-=this.getCurrentTime(),a=(a-J)*1E3,J=this.HE.progressEndBoundary,(J==null?void 0:J.start)!==a&&(J&&this.lT([J]),a=new g.hD(a,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Nw().addCueRange(a),this.HE.progressEndBoundary=a))}this.E9.publish("videodatachange",S,m,W.getPlayerType())}this.E9.ZD("onVideoDataChange",{type:S,playertype:W.getPlayerType()});this.RZ();(S=m.jf)?this.Xa.Wg(S,m.clientPlaybackNonce): kiP(this.Xa)}; g.V.Yy=function(){lo(this,null);this.E9.NE("onPlaylistUpdate")}; g.V.HaY=function(S){delete this.HE[S.getId()];this.Nw().removeCueRange(S);a:{S=this.getVideoData();var W,m,a,J,B,E,y,Y,G,K,T=((W=S.q2)==null?void 0:(m=W.contents)==null?void 0:(a=m.singleColumnWatchNextResults)==null?void 0:(J=a.autoplay)==null?void 0:(B=J.autoplay)==null?void 0:B.sets)||((E=S.q2)==null?void 0:(y=E.contents)==null?void 0:(Y=y.twoColumnWatchNextResults)==null?void 0:(G=Y.autoplay)==null?void 0:(K=G.autoplay)==null?void 0:K.sets);if(T)for(W=g.R(T),m=W.next();!m.done;m=W.next())if(m= m.value,J=a=void 0,m=m.autoplayVideo||((a=m.autoplayVideoRenderer)==null?void 0:(J=a.autoplayEndpointRenderer)==null?void 0:J.endpoint),a=g.n(m,g.GR),B=J=void 0,m!=null&&((J=a)==null?void 0:J.videoId)===S.videoId&&((B=a)==null?0:B.continuePlayback)){S=m;break a}S=null}(W=g.n(S,g.GR))&&this.E9.f_("onPlayVideo",{sessionData:{autonav:"1",itct:S==null?void 0:S.clickTrackingParams},videoId:W.videoId,watchEndpoint:W})}; g.V.AN=function(S){S!==this.appState&&(S===2&&this.getPresentingPlayerType()===1&&(Od(this,-1),Od(this,5)),this.appState=S,this.E9.publish("appstatechange",S))}; g.V.QY=function(S,W,m,a,J){this.Nw().QP(S,W,m,a,J)}; g.V.PO=P_(9);g.V.isAtLiveHead=function(S,W){W=W===void 0?!1:W;var m=g.jj(this,{playerType:S});S=Q7(this,m);m=Xe(this,m);return S!==m?S.isAtLiveHead(dH(this,m.getCurrentTime(),m),!0):S.isAtLiveHead(void 0,W)}; g.V.py=function(){var S=g.jj(this,{playerType:void 0});return Q7(this,S).py()}; g.V.seekTo=function(S,W,m,a,J,B){W=W!==!1;a=g.jj(this,{playerType:a});this.appState===2&&Ud(this);if(this.BD(a))IA(this)?this.fP.seekTo(S,{seekSource:J},W,m):this.tv.seekTo(S,{seekSource:J},W,m);else{this.T("html5_sabr_csdai_seek_log")||(B="");var E;a.seekTo(S,{YC:!W,GG:m,Jw:"application"+((E=B)!=null?E:""),seekSource:J})}}; g.V.seekBy=function(S,W,m,a){this.seekTo(this.getCurrentTime()+S,W,m,a,void 0,"_by")}; g.V.NU9=function(){this.E9.ZD("SEEK_COMPLETE")}; g.V.DEY=function(){this.E9.f_("onAbnormalityDetected")}; g.V.jvq=function(S){this.E9.f_("onSnackbarMessage",S)}; g.V.vKN=function(S){var W=this.S9(),m=W.getVideoData();if(this.appState===1||this.appState===2)m.startSeconds=S;this.appState===2?g.C(W.getPlayerState(),512)||Ud(this):this.E9.ZD("SEEK_TO",S)}; g.V.Sd2=function(){this.E9.publish("airplayactivechange")}; g.V.UE9=function(){this.E9.publish("airplayavailabilitychange")}; g.V.showAirplayPicker=function(){this.S9().cA()}; g.V.dE6=function(){this.E9.publish("beginseeking")}; g.V.Yd9=function(){this.E9.publish("endseeking")}; g.V.getStoryboardFormat=function(S){S=g.jj(this,{playerType:S});return Q7(this,S).getStoryboardFormat()}; g.V.LW=function(S){S=g.jj(this,{playerType:S});return Q7(this,S).getVideoData().LW()}; g.V.BD=function(S){S=(S||this.S9()).getVideoData();if(IA(this))S=S===this.fP.playback.getVideoData();else a:{var W=this.tv;if(S===W.C.getVideoData()&&W.N.length)S=!0;else{W=g.R(W.N);for(var m=W.next();!m.done;m=W.next())if(S.VP===m.value.VP){S=!0;break a}S=!1}}return S}; g.V.vR=function(S,W,m,a,J,B,E,y){var Y=IA(this);this.S9().iY("appattl",{sstm:this.fP?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:Y});Y?(m=xe7(this.fP,S,W,m,a,J,B,E,y),S=(m==null?void 0:m.clientPlaybackNonce)||"",(this.T("html5_ssdai_new_decoration_logic")||this.Nw().getVideoData().zQ)&&this.Nw().q_(y||"",W,(m==null?void 0:m.clientPlaybackNonce)||"")):S=V5l(this.tv,S,m,a,J,B);return S}; g.V.xw=function(S,W,m,a,J,B,E,y){if(IA(this)){var Y;(Y=this.fP)==null||xe7(Y,S,W,m,a,J,B,E,y)}}; g.V.WZ=function(S){(this.T("html5_ssdai_new_decoration_logic")||this.Nw().getVideoData().zQ)&&this.Nw().q_(S,"","");var W;(W=this.fP)==null||W.WZ(S)}; g.V.e5=function(S,W){S=S===void 0?-1:S;W=W===void 0?Infinity:W;IA(this)||vU6(this.tv,S,W)}; g.V.C2=function(S,W,m){if(IA(this)){var a=this.fP,J=a.C.YK(S);J?(m===void 0&&(m=J.cG),ZQ6(a,J,W,m)):a.Xy("Invalid_cpn_"+S+"_specified")}else{a=this.tv;J=null;for(var B=g.R(a.N),E=B.next();!E.done;E=B.next())if(E=E.value,E.VP===S){J=E;break}J?(m===void 0&&(m=J.cG),XKX(a,J,W,m)):Y9(a,"InvalidTimelinePlaybackId timelinePlaybackId="+S)}}; g.V.enqueueVideoByPlayerVars=function(S,W,m,a){m=m===void 0?Infinity:m;a=a===void 0?"":a;this.BD();S=new g.a1(this.Y,S);a&&(S.VP=a);s87(this,S,W,m)}; g.V.queueNextVideo=function(S,W,m,a,J){m=m===void 0?NaN:m;S=this.preloadVideoByPlayerVars(S,W===void 0?1:W,m,a===void 0?"":a,J===void 0?"":J);W=this.S9();S&&(this.T("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&W.getVideoData().Z&&(m=this.MI,a=this.cQ.X,m.j!==S&&(m.N=W,m.j=S,m.B=1,m.C=S.getVideoData(),m.X=a,m.C.isLoaded()?m.V():m.C.subscribe("dataloaded",m.V,m))):(m=this.Y.experiments.ZH().C.QD(IH),m=nNX(W,S,this.cQ.X,m),m!=null?(W.iY("sgap",m),W.getVideoData().Z&&W.s1(!1)): (S=S.getVideoData(),W=this.MI,W.C!==S&&(W.C=S,W.B=1,S.isLoaded()?W.Z():W.C.subscribe("dataloaded",W.Z,W)))))}; g.V.W3=function(S,W,m,a){var J=this;m=m===void 0?0:m;a=a===void 0?0:a;Q7(this,this.S9()).ip();Uwj(this.cQ,S,W,m,a).then(function(){J.E9.NE("onQueuedVideoLoaded")},function(){})}; g.V.v4=function(){return this.cQ.v4()}; g.V.tW=function(S){var W=this.cQ.C;return W?W.cg(S):!1}; g.V.clearQueue=function(S,W){this.cQ.clearQueue(S===void 0?!1:S,W===void 0?!1:W)}; g.V.loadVideoByPlayerVars=function(S,W,m,a,J,B){W=W===void 0?1:W;var E=this.Nw();if(W===2&&this.CP().enableServerStitchedDai&&E&&!E.Ae())return E.iY("lvonss",{vid:(S==null?void 0:S.videoId)||"",ptype:W}),!1;var y=!1;E=new g.a1(this.Y,S);E.uO=B;g.Y5(this.Y)&&!E.kt&&TF(this.Pv);var Y;B=this.Pv;var G=(Y=E.bY)!=null?Y:"";B.timerName=G;this.Pv.uJ("pl_i");this.T("web_player_early_cpn")&&E.clientPlaybackNonce&&this.Pv.infoGel({clientPlaybackNonce:E.clientPlaybackNonce});cdc(E).supportsVp9Encoding===!1&& this.S9().iY("noVp9enc",{});if(this.J().supportsGaplessShorts()){Y=dw6(this.cQ,E,W);if(Y==null){Od(this,-1);var K;((K=this.cQ.C)==null?0:K.getVideoData().isAd())||P5(this);S=this.cQ;S.app.J().T("html5_gapless_new_slr")?io(S.app,"gaplessshortslooprange"):S.app.setLoopRange(null);S.app.getVideoData().fu=!0;var T;(T=S.C)==null||T.f5();var p;(p=S.C)==null||p.Eu();m={Jw:"gapless_to_next_video",seekSource:60,Ux:S.X.C};a=ilG(S);if(S.X.C){var q;J=((q=S.B)==null?void 0:iS(q))||{};q=J.VF;J=J.WB;J!=null&&q!= null&&(a=J-q+.001)}var F;(F=S.app.S9())==null||F.seekTo(a,m);if(!S.app.getPlayerStateObject(W).isPlaying()){var O;(O=S.app.S9())==null||O.playVideo(!0)}xwX(S,a);var X;(X=S.app.S9())==null||X.jh();S.S();return!0}F=this.T("html5_shorts_gapless_preload_fallback");O=this.cQ.C;F&&O&&!O.TN()&&(X=O.getVideoData(),this.rA.V.set(fC(W,X),O,3600));this.cQ.clearQueue(F);this.S9().iY("sgap",{f:Y})}if(J){for(;E.Ny.length&&E.Ny[0].isExpired();)E.Ny.shift();F=E.Ny.length-1;y=F>0&&J.N(E.Ny[F])&&J.N(E.Ny[F-1]);E.Ny.push(J)}m|| (S&&fuX(S)?(ay(this.Y)&&!this.nk&&(S.fetch=0),lo(this,S)):this.playlist&&lo(this,null),S&&(this.nk=E2(!1,S.external_list)));this.E9.publish("loadvideo");F=this.Cj(E,W,a);y&&this.QY("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+E.Ny.join()).replace(/[;:,]/g,"_"));return F}; g.V.preloadVideoByPlayerVars=function(S,W,m,a,J){W=W===void 0?1:W;m=m===void 0?NaN:m;J=J===void 0?"":J;a=W;var B=J,E=K5(S);if(a=this.rA.V.get(a+"_"+E+"_"+B+"_"+ +(S.autonav==="1"||S.autonav===!0)+ +(S.autoplay==="1"||S.autoplay===!0||S.autoplay===1))||null)return a;S=new g.a1(this.Y,S);J&&(S.VP=J);J=fC(W,S);a=this.S9();B=fC(a.getPlayerType(),a.getVideoData());J===B?(a.cJ(!0),S.dispose(),m=null):(S.o6=!0,S.Op=!0,a=uo(this,W,S,!0),(W!==1||!zJ(this.Y)||this.Y.T("html5_allow_multiview_tile_preload")&& S.dA)&&a.cJ(!0),this.rA.V.set(J,a,m||3600),m=a);return m}; g.V.setMinimized=function(S){this.visibility.setMinimized(S);(S=FqQ(this.l$))&&(this.isMinimized()?S.load():S.unload());this.E9.publish("minimized")}; g.V.setInline=function(S){this.visibility.setInline(S)}; g.V.setInlinePreview=function(S){this.visibility.setInline(S)}; g.V.lL=function(S){gx6(this,S)||this.visibility.lL(S)}; g.V.setSqueezeback=function(S){this.visibility.setSqueezeback(S)}; g.V.kD=function(){var S,W=(S=this.mediaElement)==null?void 0:S.yc();W&&(this.Y.N1&&SP(ck(function(){return document.exitFullscreen()}),function(){}),SP(ck(function(){return jY(W)}),function(){}))}; g.V.Ri9=function(){this.mediaElement.yc();this.mediaElement.yc().webkitPresentationMode==="picture-in-picture"?this.lL(!0):this.lL(!1)}; g.V.togglePictureInPicture=function(){this.S9().togglePictureInPicture()}; g.V.Cj=function(S,W,m){W=W===void 0?1:W;eG("_start",this.Pv.timerName)||g.my(jG)(void 0,this.Pv.timerName);var a=!1,J=T8l(this,W,S,!1);J?(a=!0,S.dispose(),J.getVideoData().dA&&J.iY("app_lv",{pdl:J.al()})):(J=uo(this,W,S,!0,m),(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&J.xo()&&J.cJ(),this.Ur.stop(),W===1&&W!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,W),this.jO(J));J===this.Nw()&&(this.Y.Ra=S.oauthToken);if(!J.xo())return!1;if(J===this.Nw())return this.AN(1), S=Ud(this),a&&this.T("html5_player_preload_ad_fix")&&J.getPlayerType()===1&&J.al()&&this.uZ("dataloaded",J,J.getVideoData()),S;J.Ju();return!0}; g.V.cueVideoByPlayerVars=function(S,W){var m=this;W=W===void 0?1:W;var a=this.Nw();if(this.CP().enableServerStitchedDai&&a&&!a.Ae()&&S&&Object.keys(S).length>0)a.iY("qvonss",{vid:(S==null?void 0:S.videoId)||"",ptype:W});else if(S&&fuX(S))if(this.U1=!0,lo(this,S),(S=g.qH(this.playlist))&&S.LP())$9(this,S,W);else this.playlist.onReady(function(){M6(m)}); else{W||(W=this.getPresentingPlayerType());W===1&&this.Yy();a=new g.a1(this.Y,S);var J=g.f9(this.Y)&&!this.Y.vn&&W===1&&!a.isAd()&&!a.M2;this.E9.publish("cuevideo",W);J?(this.S9().getVideoData().loading=!0,Nm6(a,S?S:{}).then(function(B){$9(m,B,W)}),a.dispose()):$9(this,a,W)}}; g.V.n6=function(S,W,m,a,J,B,E){if(!S&&!m)throw Error("Playback source is invalid");if($L(this.Y)||g.TS(this.Y))return W=W||{},W.lact=sA(),W.vis=this.E9.getVisibilityState(),this.E9.f_("onPlayVideo",{videoId:S,watchEndpoint:B,sessionData:W,listId:m}),!1;IuK(this.Pv);this.Pv.reset();S={video_id:S};a&&(S.autoplay="1");a&&(S.autonav="1");B&&(S.player_params=B.playerParams);E&&(S.oauth_token=E);m?(S.list=m,this.loadPlaylist(S)):this.loadVideoByPlayerVars(S,1);return!0}; g.V.cuePlaylist=function(S,W,m,a){this.U1=!0;O4K(this,S,W,m,a)}; g.V.loadPlaylist=function(S,W,m,a){this.U1=!1;O4K(this,S,W,m,a)}; g.V.qN=function(){return this.E9.isMutedByMutedAutoplay()?!1:this.rA.qp?!0:!(!this.playlist||!this.playlist.hasNext())}; g.V.cL=P_(7); g.V.nextVideo=function(S,W){var m=g.Kp(this.Nw().getVideoData());g.Ac(this.E9)&&m?this.n6(m.videoId,W?m.ez:m.sessionData,m.playlistId,W,void 0,m.zH||void 0):this.nk?this.E9.NE("onPlaylistNext"):this.getPresentingPlayerType()===3?Pf(this.l$).nextVideo():!this.playlist||ay(this.Y)&&!this.E9.isFullscreen()||(this.playlist.hasNext(S)&&hJ6(this.playlist,kP7(this.playlist)),this.playlist.loaded?(S=W&&this.Y.T("html5_player_autonav_logging"),W&&this.E9.publish("playlistautonextvideo"),this.Cj(g.qH(this.playlist,void 0, W,S),1)):this.U1=!1)}; g.V.previousVideo=function(S){this.nk?this.E9.NE("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Pf(this.l$).PE():!this.playlist||ay(this.Y)&&!this.E9.isFullscreen()||(this.playlist.hasPrevious(S)&&hJ6(this.playlist,$7P(this.playlist)),this.playlist.loaded?this.Cj(g.qH(this.playlist),1):this.U1=!1)}; g.V.playVideoAt=function(S){this.nk?this.E9.NE("onPlaylistIndex",S):this.playlist&&(this.playlist.loaded?this.Cj(g.qH(this.playlist,S),1):this.U1=!1,hJ6(this.playlist,S))}; g.V.getPlaylist=function(){return this.playlist}; g.V.Vn=P_(15);g.V.Lt=function(S){this.wb=g.fL(this.wb,function(B){return B.id!==S}); for(var W=this.Nw(),m=W.Ef(),a=0;a0&&(Y=Math.floor(G/1E3))}Y=W?W.Gk:Y;var K={AD_BLOCK:this.C++,AD_BREAK_LENGTH:Y,AUTONAV_STATE:AC(this.player.J()),CA_TYPE:"image",CPN:y.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.py()*1E3,LACT:sA(),LIVE_INDEX:W?this.B++: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.k6().bO().height,P_W:this.player.k6().bO().width,YT_REMOTE:J?J.join(","):""},T=p0(qi);Object.keys(T).forEach(function(q){T[q]!=null&&(K[q.toUpperCase()]=T[q].toString())}); m!==""&&(K.BISCOTTI_ID=m);m={};Tc(S)&&(m.sts="20438",(W=this.player.J().forcedExperiments)&&(m.forced_experiments=W));var p=Y0(g.Lu(S,K),m);return p.split("?").length!==2?eV(Error("Invalid AdBreakInfo URL")):g.Fm(this.player.J(),y==null?void 0:y.oauthToken).then(function(q){if(q&&K0()){var F=bt();og(F,q)}q=a.player.MP(F);F=SF6(a,p,K,y.isMdxPlayback,E);return g.Pz(q,F,"/youtubei/v1/player/ad_break").then(function(O){return O})})}; ZC.prototype.reset=function(){this.B=this.C=1};g.u(WSK,ZC); WSK.prototype.N=function(S,W,m){W=W===void 0?{}:W;var a=W.vW;var J=W.V2;var B=W.cueProcessedMs;m=m===void 0?"":m;W=this.C;this.C++;var E=this.player.J().T("h5_disable_macro_substitution_in_get_ad_break")?S:mqX(this,S,{vW:a,V2:J,cueProcessedMs:B},m,W);if(E.split("?").length!==2)return Math.random()<.1&&g.Ue(Error("Invalid AdBreakInfo URL")),eV(Error("Invalid AdBreakInfo URL"));var y=this.player.getVideoData(1).isMdxPlayback,Y=m;m=b46.exec(E);m=m!=null&&m.length>=2?m[1]:"";S=oxl.test(E);var G=rlX.exec(E); G=G!=null&&G.length>=2?G[1]:"";var K=CuP.exec(E);K=K!=null&&K.length>=2&&!Number.isNaN(Number(K[1]))?Number(K[1]):1;var T=clP.exec(E);T=T!=null&&T.length>=2?T[1]:"0";var p=C9(this.player.J().dE),q=g.DQ(this.player.getVideoData(1).N2,!0);$fG(this,q,E,Y===""?"":Y,this.player.J(),this.player.getVideoData(1));Y={splay:!1,lactMilliseconds:String(sA()),playerHeightPixels:Math.trunc(this.player.k6().bO().height),playerWidthPixels:Math.trunc(this.player.k6().bO().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20438,autonavState:AC(this.player.J())};if(y){y={};var F=this.player.J().Qd;Al_(y,F?F.join(","):"")&&(Y.mdxContext=y)}if(y=DfD.includes(p)?void 0:g.k0("PREF")){F=y.split(RegExp("[:&]"));for(var O=0,X=F.length;O1&&l[1].toUpperCase()==="TRUE"){q.user.lockedSafetyMode=!0;break}}Y.autoCaptionsDefaultOn=N8_(y)}E=wNX.exec(E);(E=E!=null&&E.length>=2?E[1]:"")&&G&&(q.user.credentialTransferTokens= [{token:E,scope:"VIDEO"}]);E={contentPlaybackContext:Y};Y=this.player.getVideoData(1).getGetAdBreakContext();y=this.player.getVideoData(1).clientPlaybackNonce;F=B!==void 0?Math.round(B).toString():void 0;O=(a==null?0:a.context)?a.context:void 0;X=0;B&&J&&!a&&(J=J.end-J.start,J>0&&(X=Math.floor(J/1E3)));a=(a=Math.trunc((a?a.Gk:X)*1E3))?String(a):void 0;J=this.player.py()*1E3;J=Number.isNaN(J)?0:Math.trunc(J);W={adBlock:W,params:m,breakIndex:K,breakPositionMs:T,clientPlaybackNonce:y,topLevelDomain:p, isProxyAdTagRequest:S,context:q,overridePlaybackContext:E,cueProcessedMs:F,videoId:G?G:void 0,liveTargetingParams:O,breakLengthMs:a,driftFromHeadMs:J?String(J):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:Y?Y:void 0};return aSQ(this,W)};var nkN={ROQ:"replaceUrlMacros",QXU:"onAboutThisAdPopupClosed",f7Y:"executeCommand"};J47.prototype.iS=function(){return"adPingingEndpoint"}; J47.prototype.ZY=function(S,W,m){hbP(this.n_.get(),S,W,m)};BwK.prototype.iS=function(){return"changeEngagementPanelVisibilityAction"}; BwK.prototype.ZY=function(S){this.W.f_("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:S})};ESP.prototype.iS=function(){return"loggingUrls"}; ESP.prototype.ZY=function(S,W,m){S=g.R(S);for(var a=S.next();!a.done;a=S.next())a=a.value,hbP(this.n_.get(),a.baseUrl,W,m,a.attributionSrcMode)};g.u(y4X,g.A);YFO.prototype.TV=function(S,W){var m={};W=Object.assign({},W,(m.cc=this.Iy.u3(),m));this.Iy.W.iY(S,W)};g.u(bo,g.A);g.V=bo.prototype;g.V.addListener=function(S){this.listeners.push(S)}; g.V.removeListener=function(S){this.listeners=this.listeners.filter(function(W){return W!==S})}; g.V.FK=function(S,W,m,a,J,B,E,y){if(S==="")GI("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(S!==this.C||m){this.C=S;this.tX.get().FK(S,W,m,a,J,B,E,y);this.JX.get().FK(S,W,m,a,J,B,E,y);var Y;(Y=this.h1)==null||Y.get().FK(S,W,m,a,J,B,E,y);this.N.FK(S,W,m,a,J,B,E,y);Y=g.R(this.listeners);for(var G=Y.next();!G.done;G=Y.next())G.value.FK(S,W,m,a,J,B,E,y)}else GI("Duplicate content video loaded signal")}; g.V.y1n=function(){this.C&&this.vA(this.C)}; g.V.vA=function(S){this.C=void 0;for(var W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.vA(S)};oA.prototype.Vz=function(S,W,m,a,J){G_7(this);this.X=!W&&m===0;var B=this.W.getVideoData(1),E=this.W.getVideoData(2);B&&(this.contentCpn=B.clientPlaybackNonce,this.videoId=B.videoId,this.C=B.V);E&&(this.adCpn=E.clientPlaybackNonce,this.adVideoId=E.videoId,this.adFormat=E.adFormat);this.j=S;a<=0?(G_7(this),this.X=!W&&m===0):(this.actionType=this.X?W?"unknown_type":"video_to_ad":W?"ad_to_video":"ad_to_ad",this.videoStreamType=J?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.B=!0,eG("_start",this.actionType)&&qFP(this)))}; oA.prototype.reset=function(){return new oA(this.W)};g.u(rH,g.A);rH.prototype.addCueRange=function(S,W,m,a,J,B,E,y,Y){B=B===void 0?3:B;E=E===void 0?1:E;this.C.has(S)?GI("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:S}):(S=new p7X(S,W,m,a,B,y,Y),this.C.set(S.id,{V2:S,listener:J,RX:E}),this.W.oY([S],E))}; rH.prototype.removeCueRange=function(S){var W=this.C.get(S);W?(this.W.Y8([W.V2],W.RX),this.C.delete(W.V2.id)):GI("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:S})}; rH.prototype.onCueRangeEnter=function(S){if(this.C.has(S.id))this.C.get(S.id).listener.onCueRangeEnter(S.id)}; rH.prototype.onCueRangeExit=function(S){if(this.C.has(S.id))this.C.get(S.id).listener.onCueRangeExit(S.id)}; g.u(p7X,g.hD);CC.prototype.addPlayerResponseForAssociation=function(S){this.W.addPlayerResponseForAssociation(S)};c5.prototype.L8=function(S){this.W.L8(S)}; c5.prototype.Z6=function(S){var W=g.VH.apply(1,arguments);S==="onAdStart"||S==="onAdEnd"?this.W.ZD.apply(this.W,[S].concat(g.x(W))):this.W.f_.apply(this.W,[S].concat(g.x(W)))};var HA6=null;g.u(vS6,g.au);vS6.prototype.Nh=function(S){return this.C.hasOwnProperty(S)?this.C[S].Nh():{}}; g.j$("ytads.bulleit.getVideoMetadata",function(S){return wH().Nh(S)}); g.j$("ytads.bulleit.triggerExternalActivityEvent",function(S,W,m){var a=wH();m=X7D(m);m!==null&&a.publish(m,{queryId:S,viewabilityString:W})});g.V=SH.prototype;g.V.Su=function(S,W){if(!this.C.has(S))return{};if(W==="seek"){W=!1;W=W===void 0?!1:W;var m=es(aD).If(S,{});m?DJ(m):W&&(S=es(aD).Y3(null,b3(),!1,S),S.tp=3,oMl([S]));return{}}W=MWP(W);if(W===null)return{};var a=this.W.Vk();if(!a)return{};var J=this.W.getPresentingPlayerType(!0);if((m=this.W.getVideoData(J))==null||!m.isAd())return{};m={opt_adElement:a,opt_fullscreen:this.tX.get().isFullscreen()};return oic(W,S,m)}; g.V.q1=function(S,W,m,a,J){this.C.has(S)&&(a<=0||J<=0||es(aD).q1(S,W,m,a,J))}; g.V.aI=function(S){var W;(W=this.C.get(S.queryId))==null||W.aI()}; g.V.II=function(S){var W;(W=this.C.get(S.queryId))==null||W.II()}; g.V.y0=function(S){var W;(W=this.C.get(S.queryId))==null||W.y0()}; g.V.j2=function(S){var W;(W=this.C.get(S.queryId))==null||W.j2()}; g.V.qt=function(S){var W;(W=this.C.get(S.queryId))==null||W.qt()};ISX.prototype.send=function(S,W,m,a){try{PkK(this,S,W,m,a===void 0?!1:a)}catch(J){}};g.u(fS6,ISX);k_G.prototype.send=function(S,W,m,a){var J=!1;try{if(a==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||a==="ATTRIBUTION_SRC_MODE_XHR_OPTION")J=!0,S=P6D(S);a=J;var B=g.Xd(S);if(B[1]==="https")var E=S;else B[1]="https",E=Qv("https",B[2],B[3],B[4],B[5],B[6],B[7]);var y=iVX(E);B=[];var Y=lMO(E)&&this.AX.get().W.J().experiments.mU("add_auth_headers_to_remarketing_google_dot_com_ping");if(Tc(E)||Y)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.C.send({baseUrl:E,scrubReferrer:y,headers:B},W,m,a)}catch(G){}};Bu.prototype.ju=function(){return this.W.ju(1)};g.u(Eb,g.A);g.V=Eb.prototype;g.V.u3=function(){return this.W.getVideoData(1).clientPlaybackNonce}; g.V.addListener=function(S){this.listeners.push(S)}; g.V.removeListener=function(S){this.listeners=this.listeners.filter(function(W){return W!==S})}; g.V.FK=function(){this.qb.clear();this.lI=null;this.HO.get().clear()}; g.V.vA=function(){}; g.V.HC6=function(S,W,m){W.videoId==="nPpU29QrbiU"&&this.W.iY("ads_ssm_vdc_s",{pt:m,dvt:S});E8(this.AX.get())&&S!=="dataloaded"||r4X(this,W,m)}; g.V.FQN=function(S){if(this.W.getVideoData(1).enableServerStitchedDai){S=g.R(S.started);for(var W=S.next();!W.done;W=S.next()){W=W.value;var m=this.W.getStartTime({cpn:W.cpn});this.F8(W.cpn,m)}}}; g.V.F8=function(S,W){S!==void 0&&(this.lI=S,W===void 0||isNaN(W)?GI("Expected ad video start time on SS video changed"):this.qb.set(S,W));var m=this.W.getPresentingPlayerType(!0),a=this.W.getVideoData(m),J;S===void 0?J=null:J=this.HO.get().C.get(S)||null;this.W.getVideoData(1).iY("ads_ssvc",{pt:m,cpn:a==null?void 0:a.clientPlaybackNonce,crtt:this.W.getCurrentTime(1,!1),atlh:this.W.isAtLiveHead(),adstt:W,pid:S,slid:J==null?void 0:J.layoutId});a?r4X(this,a,m):GI("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.W.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:S})}; g.V.OY=function(S,W){var m=S.author,a=S.clientPlaybackNonce,J=S.isListed,B=S.VP,E=S.title,y=S.j1,Y=S.Fy,G=S.isMdxPlayback,K=S.Tf,T=S.mdxEnvironment,p=S.isAutonav,q=S.wQ,F=S.kt,O=S.d_,X=S.videoId||"",l=S.profilePicture||"",M=S.Z7||"",e=S.rE()||!1,d=S.b$()||!1;S=S.Tq||void 0;B=this.HO.get().C.get(B)||{layoutId:null,slotId:null};var t=this.W.getVideoData(1),h=t.Hv();t=t.getPlayerResponse();W=1E3*this.W.getDuration(W);var mD=1E3*this.W.getDuration(1),SO,aK,EP=(t==null?void 0:(SO=t.playerConfig)==null? void 0:(aK=SO.daiConfig)==null?void 0:aK.enableDai)||!1,qP,JG;SO=(t==null?void 0:(qP=t.playerConfig)==null?void 0:(JG=qP.daiConfig)==null?void 0:JG.enablePreroll)||!1;return Object.assign({},B,{videoId:X,author:m,clientPlaybackNonce:a,i5:W,O$:mD,daiEnabled:EP,Z4:SO,isListed:J,Hv:h,profilePicture:l,title:E,Z7:M,j1:y,Fy:Y,Tq:S,isMdxPlayback:G,Tf:K,mdxEnvironment:T,isAutonav:p,wQ:q,kt:F,d_:O,rE:e,b$:d})}; g.V.j9=function(){this.listeners.length=0;this.jy=null;g.A.prototype.j9.call(this)};g.u(zY,g.A);g.V=zY.prototype;g.V.FK=function(){var S=this;this.Sz=bD(function(){S.W.TN()||S.W.Xp("ad",1)})}; g.V.vA=function(){}; g.V.addListener=function(S){this.listeners.push(S)}; g.V.removeListener=function(S){this.listeners=this.listeners.filter(function(W){return W!==S})}; g.V.WN=function(){}; g.V.playVideo=function(){this.W.playVideo()}; g.V.pauseVideo=function(){this.W.pauseVideo()}; g.V.resumeVideo=function(S){this.GT(S)&&this.W.playVideo()}; g.V.GT=function(S){return this.W.getPlayerState(S)===2}; g.V.getCurrentTimeSec=function(S,W){var m=this.JX.get().lI;return S!==2||W||m===null?this.W.getCurrentTime(S,W):Y7(this,m)}; g.V.getVolume=function(){return this.W.getVolume()}; g.V.isMuted=function(){return this.W.isMuted()}; g.V.getPresentingPlayerType=function(){return this.W.getPresentingPlayerType(!0)}; g.V.getPlayerState=function(S){return this.W.getPlayerState(S)}; g.V.getGetAdBreakContext=function(){return this.W.getGetAdBreakContext()}; g.V.isFullscreen=function(){return this.W.isFullscreen()}; g.V.isAtLiveHead=function(){return this.W.isAtLiveHead()}; g.V.cO=function(S){this.W.cO(S)}; g.V.sv6=function(){var S=this.W.getPresentingPlayerType(!0),W=this.getCurrentTimeSec(S,!1);if(S===2){S=g.R(this.listeners);for(var m=S.next();!m.done;m=S.next())m.value.zB(W)}else if(S===1)for(S=g.R(this.Et),m=S.next();!m.done;m=S.next())m.value.WN(W)}; g.V.oPD=function(S){for(var W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.Ck(S,this.getPresentingPlayerType())}; g.V.onFullscreenToggled=function(S){for(var W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.onFullscreenToggled(S)}; g.V.onVolumeChange=function(){for(var S=g.R(this.listeners),W=S.next();!W.done;W=S.next())W.value.onVolumeChange()}; g.V.Ia=function(){for(var S=this.W.isMinimized(),W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.Ia(S)}; g.V.Oq=function(S){for(var W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.Oq(S)}; g.V.Qc=function(){for(var S=this.W.k6().bO(),W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.Ts(S)}; g.V.n1=function(S){for(var W=g.R(this.listeners),m=W.next();!m.done;m=W.next())m.value.n1(S)}; g.V.Eq=function(){for(var S=g.R(this.listeners),W=S.next();!W.done;W=S.next())W.value.Eq()};g.u(SDD,g.A);g.u(TY,g.A);TY.prototype.j9=function(){this.TT.TN()||this.TT.get().removeListener(this);g.A.prototype.j9.call(this)};qJ.prototype.fetch=function(S){var W=S.cK;return this.C.fetch(S.Zi,{vW:S.vW===void 0?void 0:S.vW,V2:W,cueProcessedMs:S.cueProcessedMs===void 0?0:S.cueProcessedMs}).then(function(m){return Wi_(m,W)})};g.u(pF,g.A);g.V=pF.prototype;g.V.addListener=function(S){this.listeners.push(S)}; g.V.removeListener=function(S){this.listeners=this.listeners.filter(function(W){return W!==S})}; g.V.P5=function(S){m0Q(this,S,1)}; g.V.onAdUxClicked=function(S,W){F8(this,function(m){m.N6(S,W)})}; g.V.cN=function(S){F8(this,function(W){W.Js(S)})}; g.V.A0=function(S){F8(this,function(W){W.rW(S)})}; g.V.tDq=function(S){F8(this,function(W){W.wm(S)})};Vh.prototype.reduce=function(S){switch(S.event){case "unknown":return}var W=S.identifier;var m=this.C[W];m?W=m:(m={rM:null,jc:-Infinity},W=this.C[W]=m);m=S.startSecs+S.C/1E3;if(!(m=this.C.startSecs&&m.startSecs<=this.C.startSecs+this.C.Gk)){var a=void 0;if(zB(this.AX.get())&&m.identifier!==((a=this.C)==null?void 0:a.identifier)){var J=a=void 0,B=void 0,E=void 0;DY(this.n_.get(),"ocud","ccpi."+m.identifier+";ccpe."+m.event+";ccps."+m.startSecs+";\n ccpd."+m.Gk+";pcpi."+((a=this.C)==null?void 0:a.identifier)+ ";pcpe."+((J=this.C)==null?void 0:J.event)+";\n pcps."+((B=this.C)==null?void 0:B.startSecs)+";pcpd."+((E=this.C)==null?void 0:E.Gk)+";")}a=void 0;m.identifier!==((a=this.C)==null?void 0:a.identifier)&&GI("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.C=m,BQP(this,m)}}; g.V.j9=function(){this.N!=null&&(this.N.unsubscribe("cuepointupdated",this.TK,this),this.N=null);this.listeners.length=0;this.mE.length=0;g.A.prototype.j9.call(this)};g.V=u8.prototype;g.V.vR=function(S,W,m,a,J,B,E,y){return this.W.vR(S,W,m,a,J,B,E,y)}; g.V.e5=function(S,W){this.W.e5(S,W)}; g.V.C2=function(S,W,m){this.W.C2(S,W,m)}; g.V.WZ=function(S){this.W.WZ(S)}; g.V.xw=function(S,W,m,a,J,B,E,y){this.W.xw(S,W,m,a,J,B,E,y)}; g.V.PA=function(S){return this.W.PA(S)}; g.V.finishSegmentByCpn=function(S,W,m){m=yaP(m);this.W.finishSegmentByCpn(S,W,m)};g.u(gL,g.A);g.u(G0P,g.A);g.u(KiP,g.A);g.u(TQQ,g.A);g.u(qDD,g.A);g.u(py6,g.A);g.u(VkP,g.A);VkP.prototype.B=function(){return this.N};g.u(nhO,Zj); nhO.prototype.B=function(S){var W=S.content;if(W.componentType==="shopping-companion")switch(S.actionType){case 1:case 2:S=this.C.getVideoData(1);this.C.f_("updateKevlarOrC3Companion",{contentVideoId:S&&S.videoId,shoppingCompanionCarouselRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.C,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:this.C.f_("updateKevlarOrC3Companion",{})}else if(W.componentType==="action-companion")switch(S.actionType){case 1:case 2:S=this.C.getVideoData(1); this.C.f_("updateKevlarOrC3Companion",{contentVideoId:S&&S.videoId,actionCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.C,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.C.getVideoData(1),this.C.f_("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.C.f_("updateKevlarOrC3Companion",{})}else if(W.componentType==="image-companion")switch(S.actionType){case 1:case 2:S=this.C.getVideoData(1);this.C.f_("updateKevlarOrC3Companion", {contentVideoId:S&&S.videoId,imageCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.C,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.C.getVideoData(1),this.C.f_("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.C.f_("updateKevlarOrC3Companion",{})}else if(W.componentType==="top-banner-image-text-icon-buttoned")switch(S.actionType){case 1:case 2:S=this.C.getVideoData(1);this.C.f_("updateKevlarOrC3Companion", {contentVideoId:S&&S.videoId,topBannerImageTextIconButtonedLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.C,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.C.getVideoData(1),this.C.f_("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.C.f_("updateKevlarOrC3Companion",{})}else if(W.componentType==="banner-image")switch(S.actionType){case 1:case 2:S=this.C.getVideoData(1);this.C.f_("updateKevlarOrC3Companion", {contentVideoId:S&&S.videoId,bannerImageLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.C,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.C.getVideoData(1),this.C.f_("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.C.f_("updateKevlarOrC3Companion",{})}else if(W.componentType==="ads-engagement-panel")switch(W=W.renderer,S.actionType){case 1:case 2:this.C.f_("updateEngagementPanelAction",W.addAction);this.C.f_("changeEngagementPanelVisibility", W.expandAction);break;case 3:this.C.f_("changeEngagementPanelVisibility",W.hideAction),this.C.f_("updateEngagementPanelAction",W.removeAction)}else if(W.componentType==="ads-engagement-panel-layout"){var m=W.renderer;switch(S.actionType){case 1:case 2:this.C.f_("updateEngagementPanelAction",{action:xz(m.addAction),layoutId:W.layoutId,onLayoutVisibleCallback:W.C,interactionLoggingClientData:W.interactionLoggingClientData});this.C.f_("changeEngagementPanelVisibility",xz(m.expandAction));break;case 3:this.C.f_("changeEngagementPanelVisibility", xz(m.hideAction)),this.C.f_("updateEngagementPanelAction",{action:xz(m.removeAction)})}}};g.u(sOQ,wC);g.V=sOQ.prototype;g.V.init=function(S,W,m){wC.prototype.init.call(this,S,W,m);g.mg(this.B,"stroke-dasharray","0 "+this.N);this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){W1(this);wC.prototype.hide.call(this)}; g.V.show=function(){SD(this);wC.prototype.show.call(this)}; g.V.aT=function(){this.hide()}; g.V.wZ=function(){if(this.C){var S=this.C.getProgressState();S!=null&&S.current!=null&&g.mg(this.B,"stroke-dasharray",S.current/S.seekableEnd*this.N+" "+this.N)}};g.u(uIl,Yy);g.V=uIl.prototype; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if(W.backgroundImage&&W.backgroundImage.thumbnail)if(W.actionButton&&g.n(W.actionButton,vG))if(S=W.durationMilliseconds||0,typeof S!=="number"||S<=0)g.lR(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+S));else if(W.navigationEndpoint){var a=this.api.getVideoData(2);if(a!=null){var J=W.image.thumbnail.thumbnails;J!=null&& J.length>0&&g.C$(g.ZN(J[0].url))&&(J[0].url=a.profilePicture,g.C$(g.ZN(a.profilePicture))&&mZj("VideoPlayer",239976093,"Expected non-empty profile picture."));J=W.backgroundImage.thumbnail.thumbnails;J!=null&&J.length>0&&g.C$(g.ZN(J[0].url))&&(J[0].url=a.Zf());J=W.headline;J!=null&&g.C$(g.ZN(J.text))&&(J.text=a.author)}this.S.init(Wm("ad-image"),W.image,m);this.X.init(Wm("ad-text"),W.headline,m);this.B.init(Wm("ad-text"),W.description,m);this.g2.init(Wm("ad-image"),W.backgroundImage,m);a=["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.X.element.classList.add("ytp-ad-action-interstitial-headline-light");this.B.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.J().T("enable_default_mono_cta_migration_web_client")?a.push("ytp-ad-action-interstitial-action-button-mono-dark"):a.push("ytp-ad-action-interstitial-action-button-dark");this.api.J().N&&(a.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.J().T("enable_default_mono_cta_migration_web_client")?a.push("ytp-ad-action-interstitial-action-button-mono-dark"):a.push("ytp-ad-action-interstitial-action-button-dark"));this.api.J().T("enable_unified_action_endcap_on_web")&&!this.api.J().N&&(this.api.J().T("enable_default_mono_cta_migration_web_client")?a.push("ytp-ad-action-interstitial-action-button-unified-mono"):a.push("ytp-ad-action-interstitial-action-button-unified"),this.hX.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.S.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.d2.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Ey.classList.add("ytp-ad-action-interstitial-card-unified"),this.vn.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.Pn.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.Hn.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.O9.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,a);g.Z(this,this.actionButton);this.actionButton.GN(this.hX);this.actionButton.init(Wm("button"),g.n(W.actionButton,vG),m);A6(this.actionButton.element);a=be(this.actionButton.element);NG(this.actionButton.element, a+" This link opens in new tab");this.navigationEndpoint=W.navigationEndpoint;this.j.K(this.Hn,"click",this.gV,this);this.j.K(this.vn,"click",this.gV,this);this.api.J().N||this.j.K(this.Pn,"click",this.gV,this);this.C=this.Fc?new gR(this.api,S):new Om(S);g.Z(this,this.C);if(W.skipButton){(S=g.n(W.skipButton,f69))&&this.C&&(this.skipButton=new pZ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.C,this.wT),g.Z(this,this.skipButton),this.skipButton.GN(this.element),this.skipButton.init(Wm("skip-button"), S,m));if(m=W.adBadgeRenderer)if(m=g.n(m,PcN))S=new sm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0,!0),S.GN(this.O9),S.init(Wm("simple-ad-badge"),m,this.macros),g.Z(this,S);if(m=W.adInfoRenderer)if(m=g.n(m,QZ))S=new C8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.element,void 0,!0),S.GN(this.O9),S.init(Wm("ad-info-hover-text-button"),m,this.macros),g.Z(this,S)}else W.nonskippableOverlayRenderer&&(S=g.n(W.nonskippableOverlayRenderer,XM))&&this.C&&(this.N= new Jj(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.C,!1),g.Z(this,this.N),this.N.GN(this.element),this.N.init(Wm("ad-preview"),S,m));W.countdownRenderer&&(W=W.countdownRenderer,g.n(W,kjv)&&this.C&&(m=new sOQ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.C),g.Z(this,m),m.GN(this.element),m.init(Wm("timed-pie-countdown"),g.n(W,kjv),this.macros)));this.show();this.element.focus()}else g.lR(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.lR(Error("AdActionInterstitialRenderer has no button."));else g.lR(Error("AdActionInterstitialRenderer has no background AdImage."));else g.lR(Error("AdActionInterstitialRenderer has no description AdText."));else g.lR(Error("AdActionInterstitialRenderer has no headline AdText."));else g.lR(Error("AdActionInterstitialRenderer has no image."))}; g.V.clear=function(){g.eY(this.j);this.hide()}; g.V.show=function(){gh_(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.N&&this.N.show();Yy.prototype.show.call(this)}; g.V.hide=function(){gh_(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.N&&this.N.hide();Yy.prototype.hide.call(this)}; g.V.gV=function(){this.navigationEndpoint&&(this.layoutId?this.U9.executeCommand(this.navigationEndpoint,this.layoutId):g.lR(Error("Missing layoutId for ad action interstitial.")))};var vhj={iconType:"CLOSE"},X8=new g.BI(320,63);g.u(XyO,Yy);g.V=XyO.prototype; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);this.j=W;this.S=g.aS(this.j.onClickCommands||[]);this.O9=this.j.onErrorCommand||null;if(S=this.j.contentSupportedRenderer)S=this.j.contentSupportedRenderer,W=this.j.adInfoRenderer||null,g.n(S,i69)?(this.X=g.gY("ytp-ad-overlay-ad-info-button-container",this.B.element),HrP(this,W),S=MkQ(this,g.n(S,i69))):g.n(S,dPw)?(this.X=g.gY("ytp-ad-overlay-ad-info-button-container",this.N.element),HrP(this,W),S=U0_(this,g.n(S,dPw))):g.n(S,I69)?(this.X= g.gY("ytp-ad-overlay-ad-info-button-container",this.C.element),HrP(this,W),S=LiO(this,g.n(S,I69))):(g.lR(Error("InvideoOverlayAdRenderer content could not be initialized.")),S=!1);S&&(this.show(),RCO(this,!0))}; g.V.clear=function(){RCO(this,!1);this.Hn.reset();this.vn=0;this.B.hide();this.logVisibility(this.B.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.hide();this.dispose()}; g.V.yOn=function(){this.hX&&(this.layoutId?this.U9.executeCommand(this.hX,this.layoutId):g.lR(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.V.t6=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var S=this.j.closeButton.buttonRenderer;if(S.serviceEndpoint){S=[S.serviceEndpoint];break a}}S=[]}S=g.R(S);for(var W=S.next();!W.done;W=S.next())W=W.value,this.layoutId?this.U9.executeCommand(W,this.layoutId):g.lR(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.V.GC6=function(){this.g2||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.V.l9=function(){this.g2||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.l9("invideo-overlay")}; g.V.XUU=function(S){S.target===this.X&&g.gY("ytp-ad-button",this.d2.element).click()};g.u(eCO,wC);g.V=eCO.prototype;g.V.init=function(S,W,m){wC.prototype.init.call(this,S,W,m);S=W.durationMs;this.B=S==null||S===0?0:S+this.C.getProgressState().current*1E3;if(W.text)var a=W.text.templatedAdText;else W.staticMessage&&(a=W.staticMessage);this.messageText.init(Wm("ad-text"),a,m);this.messageText.GN(this.N.element);this.j.show(100);this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){x0K(this,!1);wC.prototype.hide.call(this);this.N.hide();this.messageText.hide();W1(this)}; g.V.show=function(){x0K(this,!0);wC.prototype.show.call(this);SD(this);this.N.show();this.messageText.show()}; g.V.aT=function(){this.hide()}; g.V.wZ=function(){if(this.C!=null){var S=this.C.getProgressState();S!=null&&S.current!=null&&(S=1E3*S.current,!this.vn&&S>=this.B?(this.j.hide(),this.vn=!0):this.messageText&&this.messageText.isTemplated()&&(S=Math.max(0,Math.ceil((this.B-S)/1E3)),S!==this.X&&(Dj(this.messageText,{TIME_REMAINING:String(S)}),this.X=S)))}};g.u(irO,Yy);g.V=irO.prototype; g.V.init=function(S,W,m){Yy.prototype.init.call(this,S,W,{});W.image&&W.image.thumbnail?W.headline?W.description?W.actionButton&&g.n(W.actionButton,vG)?(this.B.init(Wm("ad-image"),W.image,m),this.N.init(Wm("ad-text"),W.headline,m),this.j.init(Wm("ad-text"),W.description,m),this.actionButton=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,["ytp-ad-underlay-action-button"]),W.backgroundColor&&g.mg(this.element,"background-color",g.P1(W.backgroundColor)),g.Z(this,this.actionButton), this.actionButton.GN(this.X),this.actionButton.init(Wm("button"),g.n(W.actionButton,vG),m),S=g.Db(this.api.J().experiments,"player_underlay_video_width_fraction"),this.api.J().T("place_shrunken_video_on_left_of_player")?(W=this.C,g.zD(W,"ytp-ad-underlay-left-container"),g.Bn(W,"ytp-ad-underlay-right-container"),g.mg(this.C,"margin-left",Math.round((S+.02)*100)+"%")):(W=this.C,g.zD(W,"ytp-ad-underlay-right-container"),g.Bn(W,"ytp-ad-underlay-left-container")),g.mg(this.C,"width",Math.round((1-S-.04)* 100)+"%"),this.api.wC()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.k7.bind(this)),this.api.addEventListener("resize",this.pL.bind(this))):g.lR(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.lR(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.lR(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.lR(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.V.show=function(){d0j(!0);this.actionButton&&this.actionButton.show();Yy.prototype.show.call(this)}; g.V.hide=function(){d0j(!1);this.actionButton&&this.actionButton.hide();Yy.prototype.hide.call(this)}; g.V.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.k7.bind(this));this.api.removeEventListener("resize",this.pL.bind(this));this.hide()}; g.V.onClick=function(S){Yy.prototype.onClick.call(this,S);this.actionButton&&g.xg(this.actionButton.element,S.target)&&this.api.pauseVideo()}; g.V.k7=function(S){S==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):S==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):S==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))}; g.V.pL=function(S){S.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):S.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.mg(this.N.element,"font-size",S.width/40+"px")};g.u(vu,Yy); vu.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);W.toggledLoggingParams&&(this.toggledLoggingParams=W.toggledLoggingParams);W.answer&&g.n(W.answer,vG)?(S=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),S.GN(this.answer),S.init(Wm("ytp-ad-survey-answer-button"),g.n(W.answer,vG),m),S.show()):W.answer&&g.n(W.answer,Qy)&&(this.C=new tZ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9, ["ytp-ad-survey-answer-toggle-button"]),this.C.GN(this.answer),g.Z(this,this.C),this.C.init(Wm("survey-answer-button"),g.n(W.answer,Qy),m));this.show()}; vu.prototype.qY=function(S){this.layoutId?RI(this.U9,S,this.layoutId,this.macros):(S=new g.uc("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.lR(S))}; vu.prototype.onClick=function(S){Yy.prototype.onClick.call(this,S);if(this.api.J().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; vu.prototype.clear=function(){this.hide()};g.u(IGP,Yy);IGP.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);W.answer&&g.n(W.answer,Qy)&&(this.button=new tZ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.GN(this.C),this.button.init(Wm("survey-none-of-the-above-button"),g.n(W.answer,Qy),m));this.show()};g.u(Hu,Ru);Hu.prototype.init=function(S,W,m){Ru.prototype.init.call(this,S,W,m);S=!1;W.text&&(W=g.K8(W.text),S=!g.C$(W));S||g.Ue(Error("No submit text was present in the renderer."))}; Hu.prototype.onClick=function(S){this.publish("l");Ru.prototype.onClick.call(this,S)};g.u(l8,Yy); l8.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);if(S=W.skipOrPreviewRenderer)g.n(S,mO)?(S=g.n(S,mO),m=new Vj(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.j,!0),m.GN(this.skipOrPreview),m.init(Wm("skip-button"),S,this.macros),g.Z(this,m),this.C=m):g.n(S,XM)&&(S=g.n(S,XM),m=new Jj(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.j,!1),m.GN(this.skipOrPreview),m.init(Wm("ad-preview"),S,this.macros),m.vn.show(100),m.show(),g.Z(this,m), this.C=m);this.C==null&&(S=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(W)),g.lR(S));W.submitButton&&(S=W.submitButton,g.n(S,vG)&&(S=g.n(S,vG),m=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),m.GN(this.submitButton),m.init(Wm("survey-submit"),S,this.macros),g.Z(this,m),this.N=m));if(S=W.adBadgeRenderer)S=g.n(S,PcN),m=new sm(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0,!0,!0),m.GN(this.B),m.init(Wm("simple-ad-badge"), S,this.macros),this.adBadge=m.element,g.Z(this,m);if(S=W.adDurationRemaining)S=g.n(S,RQ$),m=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.j,void 0,!0),m.GN(this.B),m.init(Wm("ad-duration-remaining"),S,this.macros),g.Z(this,m);(W=W.adInfoRenderer)&&g.n(W,QZ)&&(S=new C8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.element,void 0,!0),g.Z(this,S),this.adBadge!==void 0?this.B.insertBefore(S.element,this.adBadge.nextSibling):S.GN(this.B),S.init(Wm("ad-info-hover-text-button"), g.n(W,QZ),this.macros));this.show()}; l8.prototype.clear=function(){this.hide()};g.u(MJ,Yy);MJ.prototype.init=function(S,W,m){Yy.prototype.init.call(this,S,W,m);hCc(this)}; MJ.prototype.show=function(){this.B=Date.now();Yy.prototype.show.call(this)}; MJ.prototype.g8=function(){};g.u(tk6,MJ);g.V=tk6.prototype;g.V.init=function(S,W,m){var a=this;MJ.prototype.init.call(this,S,W,m);W.questionText&&PCX(this,W.questionText);W.answers&&W.answers.forEach(function(J,B){g.n(J,O0)&&fGD(a,g.n(J,O0),m,B)}); this.X=new Set(this.N.map(function(J){return J.C.C})); (S=W.noneOfTheAbove)&&(S=g.n(S,xPp))&&AaX(this,S,m);W.surveyAdQuestionCommon&&$0j(this,W.surveyAdQuestionCommon);W.submitEndpoints&&(this.submitEndpoints=W.submitEndpoints);this.K(this.element,"change",this.onChange);this.show()}; g.V.g8=function(){ZrD(this,!1);this.j.N.subscribe("l",this.If9,this)}; g.V.onChange=function(S){S.target===this.noneOfTheAbove.button.C?NQG(this):this.X.has(S.target)&&(this.noneOfTheAbove.button.toggleButton(!1),ZrD(this,!0))}; g.V.If9=function(){var S=[],W=this.N.reduce(function(J,B,E){var y=B.toggledLoggingParams;B.C&&B.C.isToggled()&&y&&(J.push(y),S.push(E));return J},[]).join("&"),m=this.submitEndpoints.map(function(J){if(!J.loggingUrls)return J; J=g.xl(J);J.loggingUrls=J.loggingUrls.map(function(B){B.baseUrl&&(B.baseUrl=xJ(B.baseUrl,W));return B}); return J}); if(m){m=g.R(m);for(var a=m.next();!a.done;a=m.next())a=a.value,this.layoutId?RI(this.U9,a,this.layoutId,this.macros):g.lR(Error("Missing layoutId for multi_select_question."))}this.api.J().T("supports_multi_step_on_desktop")&&this.vn(S)}; g.V.clear=function(){this.api.J().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(Ub,MJ);Ub.prototype.init=function(S,W,m){var a=this;MJ.prototype.init.call(this,S,W,m);W.questionText&&PCX(this,W.questionText);W.answers&&W.answers.forEach(function(J,B){g.n(J,O0)&&fGD(a,g.n(J,O0),m,B)}); W.surveyAdQuestionCommon?$0j(this,W.surveyAdQuestionCommon):Md(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(W)));this.show()}; Ub.prototype.clear=function(){this.api.J().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(LF,Yy);LF.prototype.init=function(S,W,m){var a=this;Yy.prototype.init.call(this,S,W,m);if(this.api.J().T("supports_multi_step_on_desktop")){var J;this.conditioningRules=(J=W.conditioningRules)!=null?J:[];var B;this.N=(B=W.questions)!=null?B:[];var E;((E=W.questions)==null?0:E.length)&&CCQ(this,0)}else(W.questions||[]).forEach(function(y){g.n(y,O4)?ohj(a,g.n(y,O4),m):g.n(y,g5)&&raO(a,g.n(y,g5),m)}); this.show()}; LF.prototype.clear=function(){this.api.J().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; LF.prototype.j=function(S){var W=this;if(this.api.J().T("supports_multi_step_on_desktop")){var m;if((m=this.conditioningRules)==null?0:m.length){var a;if(S.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(J){return J.questionIndex===W.C})==null)g.lR(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(J){if(J.questionIndex===W.C)switch(J.condition){case "CONDITION_ALL_OF":var B;if((B=J.answerIndices)==null?0:B.every(function(y){return S.includes(y)}))a=J.nextQuestionIndex; break;case "CONDITION_ANY_OF":var E;if((E=J.answerIndices)==null?0:E.some(function(y){return S.includes(y)}))a=J.nextQuestionIndex; break;default:g.lR(Error("Expected specified condition in survey conditioning rules."))}}),a!=null)CCQ(this,a); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.lR(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.u(R0,Yy); R0.prototype.init=function(S,W,m){var a=this;Yy.prototype.init.call(this,S,W,m);S=W.timeoutSeconds||0;if(typeof S!=="number"||S<0)g.lR(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+S));else if(W.timeoutCommands)if(W.text)if(W.ctaButton&&g.n(W.ctaButton,vG))if(W.brandImage)if(W.backgroundImage&&g.n(W.backgroundImage,HG)&&g.n(W.backgroundImage,HG).landscape){this.layoutId||g.lR(Error("Missing layoutId for survey interstitial."));ca6(this.interstitial,g.n(W.backgroundImage, HG).landscape);ca6(this.logoImage,W.brandImage);g.iD(this.text,g.K8(W.text));var J=["ytp-ad-survey-interstitial-action-button"];J.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,J);g.Z(this,this.actionButton);this.actionButton.GN(this.N);this.actionButton.init(Wm("button"),g.n(W.ctaButton,vG),m);this.actionButton.show();this.C=new gR(this.api,S*1E3);this.C.subscribe("g",function(){a.transition.hide()}); g.Z(this,this.C);this.K(this.element,"click",function(B){var E=B.target===a.interstitial;B=a.actionButton.element.contains(B.target);if(E||B)if(a.transition.hide(),E)a.api.onAdUxClicked(a.componentType,a.layoutId)}); this.transition.show(100)}else g.lR(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.lR(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.lR(Error("SurveyTextInterstitialRenderer has no button."));else g.lR(Error("SurveyTextInterstitialRenderer has no text."));else g.lR(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; R0.prototype.clear=function(){this.hide()}; R0.prototype.show=function(){D07(!0);Yy.prototype.show.call(this)}; R0.prototype.hide=function(){D07(!1);Yy.prototype.hide.call(this)};g.u(eH,wC);g.V=eH.prototype; g.V.init=function(S,W){wC.prototype.init.call(this,S,W,{});if(W.durationMilliseconds){if(W.durationMilliseconds<0){g.lR(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+W.durationMilliseconds));return}this.N=W.durationMilliseconds}else this.N=this.C.UB();var m;if((m=W.previewText)==null||!m.text||g.C$(W.previewText.text))g.lR(Error("No text is returned for AdPreview."));else{this.X=W.previewText;W.previewText.isTemplated||g.iD(this.B,W.previewText.text);var a; if(((a=this.api.getVideoData(1))==null?0:a.LD)&&W.previewImage){var J,B;(S=((B=KM(((J=W.previewImage)==null?void 0:J.sources)||[],52,!1))==null?void 0:B.url)||"")&&S.length?(this.previewImage=new g.yG({G:"img",L:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",S),g.Z(this,this.previewImage),this.previewImage.GN(this.element)):g.lR(Error("Failed to get imageUrl in AdPreview."))}else this.B.classList.add("ytp-preview-ad__text--padding--wide")}}; g.V.clear=function(){this.hide()}; g.V.hide=function(){W1(this);wC.prototype.hide.call(this)}; g.V.show=function(){SD(this);wC.prototype.show.call(this)}; g.V.aT=function(){this.hide()}; g.V.wZ=function(){if(this.C){var S=this.C.getProgressState();if(S!=null&&S.current)if(S=1E3*S.current,S>=this.N)this.transition.hide();else{var W;if((W=this.X)==null?0:W.isTemplated)if(W=Math.max(0,Math.ceil((this.N-S)/1E3)),W!==this.j){var m,a;(S=(m=this.X)==null?void 0:(a=m.text)==null?void 0:a.replace("{TIME_REMAINING}",String(W)))&&g.iD(this.B,S);this.j=W}}}};g.u(x7,Yy); x7.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});var m,a;if((S=((a=KM(((m=W.image)==null?void 0:m.sources)||[],wyl(W),!0))==null?void 0:a.url)||"")&&S.length){m=this.I2("ytp-ad-avatar");m.src=S;var J,B;if(a=(J=W.interaction)==null?void 0:(B=J.accessibility)==null?void 0:B.label)m.alt=a;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.lR(Error("Failed to get imageUrl in AdAvatar."))}; x7.prototype.clear=function(){this.hide()}; x7.prototype.onClick=function(S){Yy.prototype.onClick.call(this,S)};g.u(i8,Yy); i8.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});var m;S=(m=W.label)==null?void 0:m.content;if((m=S!=null&&!g.C$(S))||W.iconImage){m&&(this.buttonText=new g.yG({G:"span",L:"ytp-ad-button-vm__text",Bn:S}),g.Z(this,this.buttonText),this.buttonText.GN(this.element));var a,J,B=((a=W.interaction)==null?0:(J=a.accessibility)==null?0:J.label)||m?S:"";B&&NG(this.element,B+" This link opens in new tab");A6(this.element);if(W.iconImage){a=void 0;if(W.iconImage){a:{J=W.iconImage;if(J.sources)for(J= g.R(J.sources),S=J.next();!S.done;S=J.next())if(S=S.value,B=void 0,(B=S.clientResource)==null?0:B.imageName){J=S;break a}J=void 0}if(J){var E;a={iconType:(E=J.clientResource)==null?void 0:E.imageName}}}E=L8(a,!1,this.N);E!=null&&(this.buttonIcon=new g.yG({G:"span",L:"ytp-ad-button-vm__icon",U:[E]}),g.Z(this,this.buttonIcon),W.iconLeading?(LX(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):m?(this.buttonIcon.GN(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.GN(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_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.T("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.C?"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.Ue(Error("AdButton does not have label or an icon."))}; i8.prototype.clear=function(){this.hide()}; i8.prototype.onClick=function(S){Yy.prototype.onClick.call(this,S)};g.u(SSl,wC);g.V=SSl.prototype; g.V.init=function(S,W){wC.prototype.init.call(this,S,W,{});if(S=g.n(W.avatar,Ah)){var m=W.headline;if(m){var a=W.description;if(a){var J=g.n(W.button,NJ);J?(this.adAvatar.init(Wm("ad-avatar"),S),this.headline.init(Wm("ad-simple-attributed-string"),new H1(m)),this.description.init(Wm("ad-simple-attributed-string"),new H1(a)),m.content&&m.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Wm("ad-button"),J), this.startMilliseconds=W.startMs||0,this.api.wC()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.RC.bind(this)),SD(this)):g.lR(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.lR(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.lR(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.lR(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.V.wZ=function(){if(this.C){var S=this.C.getProgressState();S&&S.current&&1E3*S.current>=this.startMilliseconds&&(W1(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.V.aT=function(){this.clear()}; g.V.onClick=function(S){this.api.pauseVideo();wC.prototype.onClick.call(this,S)}; g.V.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.RC.bind(this))}; g.V.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();wC.prototype.show.call(this)}; g.V.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();wC.prototype.hide.call(this)}; g.V.RC=function(S){S==="hidden"?this.show():this.hide()};g.u(dL,Yy);g.V=dL.prototype; g.V.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(!W.label||g.C$(W.label))g.lR(Error("No label is returned for SkipAdButton."));else if(g.iD(this.j,W.label),S=L8({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.T("delhi_modern_web_player_icons")),S==null)g.lR(Error("Unable to retrieve icon for SkipAdButton"));else if(this.B=new g.yG({G:"span",L:"ytp-skip-ad-button__icon",U:[S]}),g.Z(this,this.B),this.B.GN(this.element),this.api.J().experiments.mU("enable_skip_to_next_messaging")&&(W=g.ZN(W.targetId)))this.N= !0,this.element.setAttribute("data-tooltip-target-id",W),this.element.setAttribute("data-tooltip-target-fixed","")}; g.V.onClick=function(S){S&&S.preventDefault();var W,m;P7P(S,{contentCpn:(m=(W=this.api.getVideoData(1))==null?void 0:W.clientPlaybackNonce)!=null?m:""})===0?this.api.f_("onAbnormalityDetected"):(Yy.prototype.onClick.call(this,S),this.api.f_("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.V.clear=function(){this.C.reset();this.hide()}; g.V.hide=function(){Yy.prototype.hide.call(this)}; g.V.show=function(){this.C.start();Yy.prototype.show.call(this);this.N&&this.api.J().experiments.mU("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.u(WfD,wC);g.V=WfD.prototype; g.V.init=function(S,W){wC.prototype.init.call(this,S,W,{});S=g.n(W.preskipState,b69);var m;if((m=this.api.getVideoData())==null?0:m.isDaiEnabled()){if(!S){g.lR(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.N=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.C);g.Z(this,this.N);this.N.GN(this.element);var a;(a=this.N)==null||a.init(Wm("preview-ad"),S);(m=this.N)!=null&&(m.transition.show(100),m.show())}(m=g.n(W.skippableState,rGp))?(W.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=W.skipOffsetMilliseconds:(g.Ue(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(Wm("skip-button"),m),this.show()):g.lR(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.V.show=function(){SD(this);wC.prototype.show.call(this)}; g.V.hide=function(){!this.isSkippable&&this.N?this.N.hide():this.B&&this.B.hide();W1(this);wC.prototype.hide.call(this)}; g.V.clear=function(){var S;(S=this.N)==null||S.clear();this.B&&this.B.clear();W1(this);wC.prototype.hide.call(this)}; g.V.aT=function(){this.hide()}; g.V.wZ=function(){if(1E3*this.C.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var S;(S=this.N)!=null&&S.transition.hide();(S=this.B)!=null&&(S.transition.show(),S.show())}};g.u(I0,Yy); I0.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(W.label){var m;((m=W.label)==null?0:m.content)&&!g.C$(W.label.content)&&(this.linkText=new g.yG({G:"span",L:"ytp-visit-advertiser-link__text",Bn:W.label.content}),g.Z(this,this.linkText),this.linkText.GN(this.element));var a,J;if((a=W.interaction)==null?0:(J=a.accessibility)==null?0:J.label)NG(this.element,W.interaction.accessibility.label+" This link opens in new tab");else{var B;((B=W.label)==null?0:B.content)&&!g.C$(W.label.content)&&NG(this.element, W.label.content+" This link opens in new tab")}A6(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.lR(Error("No label found in VisitAdvertiserLink."))}; I0.prototype.onClick=function(S){Yy.prototype.onClick.call(this,S);this.api.onAdUxClicked(this.componentType,this.layoutId)}; I0.prototype.clear=function(){this.hide()};g.u(Pu,Yy); Pu.prototype.init=function(S,W,m,a){Yy.prototype.init.call(this,S,W,{});if(W.skipOrPreview){m=W.skipOrPreview;S=g.n(m,Cc9);m=g.n(m,b69);if(S)this.YU=new WfD(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N),g.Z(this,this.YU),this.YU.GN(this.S),this.YU.init(Wm("skip-ad"),S);else{var J;m&&((J=this.api.getVideoData())==null?0:J.isDaiEnabled())&&(this.j=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N,1),g.Z(this,this.j),this.j.GN(this.S),this.j.init(Wm("ad-preview"), m),J=this.j,J.transition.show(100),J.show())}if(J=g.n(W.skipOrPreview,Cc9))var B=J.skipOffsetMilliseconds}W.playerAdCard&&(J=g.n(W.playerAdCard,oX9))&&(this.playerAdCard=new SSl(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N),g.Z(this,this.playerAdCard),this.playerAdCard.GN(this.Pn),this.playerAdCard.init(Wm("ad-avatar-lockup-card"),J));W.adBadgeRenderer&&((J=g.n(W.adBadgeRenderer,ZH))?(this.B=new Mb(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0),g.Z(this, this.B),this.B.GN(this.C),this.B.init(Wm("ad-badge"),J)):g.lR(Error("AdBadgeViewModel is not found in player overlay layout.")));W.adPodIndex&&(J=g.n(W.adPodIndex,tO9))&&(this.adPodIndex=new Um(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.adPodIndex),this.adPodIndex.GN(this.C),this.adPodIndex.init(Wm("ad-pod-index"),J));W.adInfoRenderer&&((J=g.n(W.adInfoRenderer,QZ))?(this.adInfoButton=new C8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.element, void 0,!0),g.Z(this,this.adInfoButton),this.B!==void 0?this.C.insertBefore(this.adInfoButton.element,this.B.element.nextSibling):this.adInfoButton.GN(this.C),this.adInfoButton.init(Wm("ad-info-hover-text-button"),J,this.macros)):g.Ue(Error("AdInfoRenderer is not found in player overlay layout.")));var E;J=(E=this.api.getVideoData())==null?void 0:E.isDaiEnabled();W.adDurationRemaining&&J&&(E=g.n(W.adDurationRemaining,RQ$))&&(this.adDurationRemaining=new XX(this.api,this.layoutId,this.interactionLoggingClientData, this.U9,this.N,a.videoAdDurationSeconds,!0),g.Z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.C.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.GN(this.C),this.adDurationRemaining.init(Wm("ad-duration-remaining"),E,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));W.visitAdvertiserLink&&(a=g.n(W.visitAdvertiserLink,DPZ))&&(this.visitAdvertiserLink=new I0(this.api,this.layoutId, this.interactionLoggingClientData,this.U9),g.Z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.GN(this.C),this.visitAdvertiserLink.init(Wm("visit-advertiser-link"),a));W.adDisclosureBanner&&(W=g.n(W.adDisclosureBanner,hQw))&&(this.adDisclosureBanner=new LZ(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.adDisclosureBanner),this.adDisclosureBanner.GN(this.vn),this.adDisclosureBanner.init(Wm("ad-disclosure-banner"),W));this.X=new i2(this.api,this.N,B,!0);g.Z(this, this.X);g.tc(this.api,this.X.element,4);this.show()}; Pu.prototype.clear=function(){this.hide()};g.u(mhP,Yy);g.V=mhP.prototype; g.V.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(W!=null&&W.title)if(S=W.title)if(this.headline.init(Wm("ad-simple-attributed-string"),new H1(S)),S=g.n(W.moreInfoButton,NJ)){if(this.moreInfoButton.init(Wm("ad-button"),S),W.descriptions)W.descriptions.length>0&&(S=W.descriptions[0])&&(this.C=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.C),this.C.GN(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.C.init(Wm("ad-simple-attributed-string"), new H1(S))),W.descriptions.length>1&&(W=W.descriptions[1])&&(this.N=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.N),this.N.GN(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.N.init(Wm("ad-simple-attributed-string"),new H1(W)))}else g.lR(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.lR(Error("No headline found in AdGridCardText."));else g.lR(Error("No headline found in AdGridCardText."))}; g.V.onClick=function(S){Yy.prototype.onClick.call(this,S);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.V.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var S;(S=this.C)==null||S.clear();var W;(W=this.N)==null||W.clear()}; g.V.hide=function(){this.headline.hide();this.moreInfoButton.hide();var S;(S=this.C)==null||S.hide();var W;(W=this.N)==null||W.hide();Yy.prototype.hide.call(this)}; g.V.show=function(){Yy.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var S;(S=this.C)==null||S.show();var W;(W=this.N)==null||W.show()};g.u(fF,Yy);fF.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(W!=null&&W.gridCards)if(W.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.lR(Error("Only single column style is currently supported in AdGridCardCollection."));else for(S=g.R(W.gridCards),W=S.next();!W.done;W=S.next()){if(W=g.n(W.value,N78)){var m=new mhP(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,m);m.GN(this.element);m.init(Wm("ad-grid-card-text"),W);this.C.push(m)}}else g.lR(Error("No grid cards found in AdGridCardCollection."))}; fF.prototype.show=function(){for(var S=g.R(this.C),W=S.next();!W.done;W=S.next())W.value.show();Yy.prototype.show.call(this)}; fF.prototype.clear=function(){this.hide();for(var S=g.R(this.C),W=S.next();!W.done;W=S.next())W.value.clear()}; fF.prototype.hide=function(){for(var S=g.R(this.C),W=S.next();!W.done;W=S.next())W.value.hide();Yy.prototype.hide.call(this)};g.u(k7,wC);g.V=k7.prototype;g.V.init=function(S,W,m,a,J){J=J===void 0?0:J;wC.prototype.init.call(this,S,W,m,a);this.playerProgressOffsetMs=J;SD(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.iD.bind(this));this.api.addEventListener("resize",this.Qi.bind(this));this.api.wC()?(this.N=!0,this.api.cO(!0),this.show()):this.hide()}; g.V.wZ=function(){if(this.C){var S=this.C.getProgressState();S&&S.current&&!this.N&&1E3*S.current>=this.playerProgressOffsetMs&&(this.N=!0,this.api.cO(!0),this.show())}}; g.V.aT=function(){this.N&&this.api.cO(!1);this.hide()}; g.V.clear=function(){this.api.cO(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.iD.bind(this));this.api.removeEventListener("resize",this.Qi.bind(this));W1(this);this.hide()}; g.V.hide=function(){av_(!1);wC.prototype.hide.call(this)}; g.V.show=function(){av_(!0);wC.prototype.show.call(this)};g.u(J7P,k7);g.V=J7P.prototype; g.V.init=function(S,W,m,a){if(W!=null&&W.adGridCardCollection)if(W!=null&&W.adButton){var J=Number(W.playerProgressOffsetMs||"0");isNaN(J)?k7.prototype.init.call(this,S,W,m,a):k7.prototype.init.call(this,S,W,m,a,J);S=W.headline;m=g.n(W.adAvatar,Ah);S&&m?(this.headline=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.headline),this.headline.GN(this.I2("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Wm("ad-simple-attributed-string"),new H1(S)), this.adAvatar=new x7(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.adAvatar),this.adAvatar.GN(this.I2("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Wm("ad-avatar"),m)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");S=g.n(W.adGridCardCollection,Z6H);this.adGridCardCollection.init(Wm("ad-grid-card-collection"),S);W=g.n(W.adButton,NJ);this.adButton.init(Wm("ad-button"),W); this.hide()}else g.lR(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.lR(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.V.onClick=function(S){(this.adButton&&g.xg(this.adButton.element,S.target)||this.adAvatar&&g.xg(this.adAvatar.element,S.target))&&this.api.pauseVideo();k7.prototype.onClick.call(this,S);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.V.Qi=function(){}; g.V.clear=function(){this.hide();var S;(S=this.headline)==null||S.clear();var W;(W=this.adAvatar)==null||W.clear();this.adGridCardCollection.clear();this.adButton.clear();k7.prototype.clear.call(this)}; g.V.show=function(){var S;(S=this.headline)==null||S.show();var W;(W=this.adAvatar)==null||W.show();this.adGridCardCollection.show();this.adButton.show();k7.prototype.show.call(this)}; g.V.hide=function(){var S;(S=this.headline)==null||S.hide();var W;(W=this.adAvatar)==null||W.hide();this.adGridCardCollection.hide();this.adButton.hide();k7.prototype.hide.call(this)}; g.V.iD=function(S){S==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):S==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):S==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))};g.u($7,Yy); $7.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(W.attributes===void 0)g.lR(Error("No attributes found in AdDetailsLineViewModel."));else if(W.style===void 0)g.lR(Error("No style found in AdDetailsLineViewModel."));else{S=g.R(W.attributes);for(var m=S.next();!m.done;m=S.next())if(m=m.value,m.text!==void 0){m=m.text;var a=W.style,J=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,J);J.GN(this.element);a:switch(a){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":a="ytp-ad-details-line__text--style-responsive"; break a;default:a="ytp-ad-details-line__text--style-standard"}J.element.classList.add(a);J.init(Wm("ad-simple-attributed-string"),new H1(m));this.C.push(J)}this.show()}}; $7.prototype.show=function(){this.C.forEach(function(S){S.show()}); Yy.prototype.show.call(this)}; $7.prototype.clear=function(){this.hide()}; $7.prototype.hide=function(){this.C.forEach(function(S){S.hide()}); Yy.prototype.hide.call(this)};g.u(hh,Yy);hh.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});var m,a;(S=((a=KM(((m=W.image)==null?void 0:m.sources)||[]))==null?void 0:a.url)||"")&&S.length?(m=this.I2("ytp-image-background-image"),g.mg(m,"backgroundImage","url("+S+")"),W.blurLevel!==void 0&&g.mg(m,"filter","blur("+W.blurLevel+"px)"),W.gradient!==void 0&&(W=new g.b({G:"div",Wn:["ytp-image-background--gradient-vertical"]}),g.Z(this,W),W.GN(this.element)),this.show()):g.lR(Error("Failed to get imageUrl in ImageBackground."))}; hh.prototype.clear=function(){this.hide()};g.u(BVO,wC);g.V=BVO.prototype;g.V.init=function(S,W){wC.prototype.init.call(this,S,W,{});g.mg(this.B,"stroke-dasharray","0 "+this.N);this.show()}; g.V.clear=function(){this.hide()}; g.V.hide=function(){W1(this);wC.prototype.hide.call(this)}; g.V.show=function(){SD(this);wC.prototype.show.call(this)}; g.V.aT=function(){this.hide()}; g.V.wZ=function(){if(this.C){var S=this.C.getProgressState();S!=null&&S.current!=null&&g.mg(this.B,"stroke-dasharray",S.current/S.seekableEnd*this.N+" "+this.N)}};g.u(th,Yy); th.prototype.init=function(S,W){Yy.prototype.init.call(this,S,W,{});if(zYG(W)){this.adAvatar=new x7(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.adAvatar);this.adAvatar.GN(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Wm("ad-avatar"),g.n(W.adAvatar,Ah));this.headline=new l2(this.api,this.layoutId,this.interactionLoggingClientData,this.U9);g.Z(this,this.headline);this.headline.GN(this.I2("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(Wm("ad-simple-attributed-string"),new H1(W.headline));if(S=g.n(W.adDetailsLine,$PN))this.detailsLine=new $7(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.detailsLine),this.detailsLine.GN(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Wm("ad-details-line"),S);this.adButton=new i8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0);g.Z(this,this.adButton); this.adButton.GN(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Wm("ad-button"),g.n(W.adButton,NJ));this.adBadge=new Mb(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,!0);g.Z(this,this.adBadge);this.adBadge.GN(this.j);this.adBadge.init(Wm("ad-badge"),g.n(W.adBadge,ZH));this.adInfoButton=new C8(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.element,void 0,!0);g.Z(this,this.adInfoButton);this.adInfoButton.GN(this.j); this.adInfoButton.init(Wm("ad-info-hover-text-button"),g.n(W.adInfoRenderer,QZ),this.macros);if(S=g.n(W.skipAdButton,rGp))this.skipAdButton=new dL(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.skipAdButton),this.skipAdButton.GN(this.element),this.skipAdButton.init(Wm("skip-button"),S);this.N=new Om(W.durationMilliseconds);g.Z(this,this.N);if(S=g.n(W.countdownViewModel,cGv))this.C=new BVO(this.api,this.layoutId,this.interactionLoggingClientData,this.U9,this.N),g.Z(this, this.C),this.C.GN(this.I2("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.C.init(Wm("timed-pie-countdown"),S);if(W=g.n(W.imageBackground,AG9))this.imageBackground=new hh(this.api,this.layoutId,this.interactionLoggingClientData,this.U9),g.Z(this,this.imageBackground),this.imageBackground.GN(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Wm("image-background"), W);this.show();this.element.focus()}}; th.prototype.clear=function(){g.eY(this.B);this.hide()}; th.prototype.show=function(){E4j(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Yy.prototype.show.call(this)}; th.prototype.hide=function(){E4j(!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.C&&this.C.hide();this.imageBackground&&this.imageBackground.hide();Yy.prototype.hide.call(this)};g.u(b8,g.au);g.V=b8.prototype;g.V.UB=function(){return 1E3*this.api.getDuration(this.RX,!1)}; g.V.stop=function(){this.C&&this.handler.TC(this.C)}; g.V.Zb=function(){var S=this.api.getProgressState(this.RX);this.N={seekableStart:S.seekableStart,seekableEnd:S.seekableEnd,current:this.api.getCurrentTime(this.RX,!1)};this.publish("h")}; g.V.getProgressState=function(){return this.N}; g.V.Ci=function(S){g.qb(S,2)&&this.publish("g")};var sh9="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.u(o0,Zj); o0.prototype.B=function(S){var W=S.id,m=S.content,a=m.componentType;if(!sh9.includes(a))switch(S.actionType){case 1:S=this.api;var J=this.U9,B=m.layoutId,E=m.interactionLoggingClientData,y=m instanceof xu?m.Fc:!1,Y=m instanceof xu||m instanceof u2?m.wT:!1;E=E===void 0?{}:E;y=y===void 0?!1:y;Y=Y===void 0?!1:Y;switch(a){case "invideo-overlay":S=new XyO(S,B,E,J);break;case "player-overlay":S=new dR(S,B,E,J,new b8(S),Y);break;case "player-overlay-layout":S=new Pu(S,B,E,J,new b8(S));break;case "survey":S= new LF(S,B,E,J);break;case "ad-action-interstitial":S=new uIl(S,B,E,J,y,Y);break;case "video-interstitial-buttoned-centered":S=new th(S,B,E,J);break;case "survey-interstitial":S=new R0(S,B,E,J);break;case "ad-message":S=new eCO(S,B,E,J,new b8(S,1));break;case "player-underlay":S=new irO(S,B,E,J);break;case "display-underlay-text-grid-cards":S=new J7P(S,B,E,J,new b8(S));break;default:S=null}if(!S){g.Ue(Error("No UI component returned from ComponentFactory for type: "+a));break}g.HF(this.components, W)?g.Ue(Error("Ad UI component already registered: "+W)):this.components[W]=S;S.bind(m);m instanceof Rw?this.N?this.N.append(S.by):g.Ue(Error("Underlay view was not created but UnderlayRenderer was created")):this.j.append(S.by);break;case 2:W=y7G(this,S);if(W==null)break;W.bind(m);break;case 3:m=y7G(this,S),m!=null&&(g.nL(m),g.HF(this.components,W)?(m=this.components,W in m&&delete m[W]):g.Ue(Error("Ad UI component does not exist: "+W)))}}; o0.prototype.j9=function(){g.sH(Object.values(this.components));this.components={};Zj.prototype.j9.call(this)};g.u(YSj,g.VT);g.V=YSj.prototype;g.V.create=function(){try{GTD(this),this.load(),this.created=!0,GTD(this)}catch(S){GI(S instanceof Error?S:String(S))}}; g.V.load=function(){qSP(this)}; g.V.destroy=function(){var S=this.player.getVideoData(1);this.C.C.w3.vA(S&&S.clientPlaybackNonce||"");this.unload();this.created=!1}; g.V.unload=function(){g.VT.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(W){GI(W instanceof Error?W:String(W))}if(this.N!=null){var S=this.N;this.N=null;S.dispose()}this.B.reset()}; g.V.a$=function(){return!1}; g.V.getAdState=function(){return-1}; g.V.getOptions=function(){return Object.values(nkN)}; g.V.uK=function(S,W){W=W===void 0?{}:W;switch(S){case "replaceUrlMacros":return S=W,S.url?(W=eb7(this.player),Object.assign(W,S.Ba2),S=g.Lu(S.url,W)):S=null,S;case "onAboutThisAdPopupClosed":this.e4(W);break;case "executeCommand":S=W;S.command&&S.layoutId&&this.executeCommand(S);break;default:return null}}; g.V.GZ=function(S){var W;return!((W=this.C.C.h1)==null||!W.get().GZ(S))}; g.V.e4=function(S){S.isMuted&&GNl(jH(this.C).bV,jH(this.C).VQ,S.layoutId);this.mx&&this.mx.e4()}; g.V.executeCommand=function(S){jH(this.C).U9.executeCommand(S.command,S.layoutId)};g.j$("yt.player.Application.create",g.sd.create);g.j$("yt.player.Application.createAlternate",g.sd.create);pLP(QL(),VA8);var uWN=g.v9("ytcsi.tick");uWN&&uWN("pe");g.Fi("ad",YSj);g.u(g.cu,g.A);g.cu.prototype.start=function(S,W,m){this.config={from:S,to:W,duration:m,startTime:(0,g.X1)()};this.next()}; g.cu.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.cu.prototype.next=function(){if(this.config){var S=this.config,W=S.from,m=S.to,a=S.duration;S=S.startTime;S=(0,g.X1)()-S;var J=this.C;a=g.Su(XMG(J,vvG(J,S/a)),0,1);this.callback(W+(m-W)*a);a<1&&this.delay.start()}};g.u(g.DH,g.b);g.V=g.DH.prototype;g.V.hasSuggestions=function(){return this.suggestionData.length>0}; g.V.bG=function(){this.N&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.V.show=function(){g.b.prototype.show.call(this);u76(this)}; g.V.iG=function(){this.N&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.V.An=function(){this.Qc(this.api.k6().getPlayerSize())}; g.V.Qc=function(S){var W=this.api.isEmbedsShortsMode()?.5625:16/9,m=this.api.wp();S=S.width-(m?112:58);m=Math.ceil(S/(m?320:192));var a=(S-m*8)/m;W=Math.floor(a/W);for(var J=g.R(this.C),B=J.next();!B.done;B=J.next())B=B.value.I2("ytp-suggestion-image"),B.style.width=a+"px",B.style.height=W+"px";this.suggestions.element.style.height=W+"px";this.j=a;this.Z=W;this.containerWidth=S;this.columns=m;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.wL(this)}; g.V.onVideoDataChange=function(){var S=this.api.J(),W=this.api.getVideoData();this.X=W.uP?!1:S.j;this.suggestionData=W.suggestions?g.fL(W.suggestions,function(m){return m&&!m.playlistId}):[]; OHP(this);W.uP?this.title.update({title:g.Wo("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:W.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More Shorts":"More videos"})}; g.V.scrollTo=function(S){S=g.Su(S,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.V.start(this.scrollPosition,S,1E3);this.scrollPosition=S;g.wL(this);u76(this)};})(_yt_player);