var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var Y='prototype;scheme;push;slice;startsWith;W;Hm6v;split;;length;get;U;=;rr;join;/api/manifest;/initplayback;T;indexOf;set;clone;fvip;path;sp;ug;Untrusted URL;file;Y;fallback_count;toString;match;s;url;signatureCipher;else;youtube.player.web_20250519_22_RC00;n;cmo=;reverse;,(,}/";Tx;/;Pu;local;http://local;smRLl34tByYhJ4B--H-_w8_;fromCharCode;splice;kO;mn;&;unshift;assign;forEach;---;pow;1970-01-01T01:32:36.000+01:30;/videoplayback;pop;ql;https://local;/file/index.m3u8;://;:;index.m3u8;1969-12-31T15:45:03.000-08:15;Nt;r;//;?;1970-01-01T02:45:02.000+02:45;cmo=td;1;www.youtube.com;%3D;1969-12-31T20:15:16.000-03:45;1969-12-31T20:00:04.000-04:00;rr?[1-9].*\\.c\\.youtube\\.com$;replace;,;\\.a1\\.googlevideo\\.com$;playerfallback;cmo=pf;1969-12-31T17:30:53.000-06:30;\\.googlevideo\\.com$;nG;redirector.googlevideo.com;cmo;\u2267/;a1.googlevideo.com;undefined'.split(";"), Wb,zYK,TXY,id,RYH,WBz,L5,b55,C5,YHB,rX,oz,FK,GP,lzP,wbB,xr,Dz,qHz,kr,i5K,n5,ud,cKY,Hb,f5,OH,NB,tK,LBl,jl,EH,Sl,rKX,orX,wF,FBl,IzP,iW,GPY,dBK,Ls,azz,UBP,Qq,MlK,P7,Vll,Qzz,ps,yKz,grz,JKz,pbY,ns,fs,$BK,Pdb,sp,xBK,hv,b2,Y1,l2,w1,qS,kPX,i2,ch,Ly,KBY,nrz,oP,uKK,GR,UB,Jv,py,$1,x1,H5d,fzz,vh,k1,Dd,O55,NXK,tlz,jzb,Z5z,md,ny,u2,Hh,fy,NS,tv,SHB,Zd,sB,EB,Sz,BY,TN,RA,BF5,bh,YI,wO,TFX,RhY,hhP,qu,cY,Lr,rO,F8,GN,dO,cIz,LKl,CWK,rIz,A2,oPz,aA,US,Mu,FKz,VQ,IFH,dgH,J2,$I,vY,kI,Kr,Ugr,aFP,gPd,QRY,p7r,uh,HY,jh,xgb,Dgz, vPz,ZV,sS,kUK,eh,TJ,nr,mgK,KK5,Y6,bm,mM,nPl,lm,ql,wR,u55,ct,HsK,CF,rR,oK,F$,IK,GJ,dR,aK,U9,yC,gR,$6,OsK,tcK,NFl,jRb,X7B,mk,nF,um,ehB,Ht,sRl,fF,O9,Nl,Spz,B1r,Rvb,zvr,hvX,ldP,tm,YBB,WdK,jb,X$,whl,Zk,qBK,eb,cvK,iyB,Ldd,C2z,Bl,zs,rvK,o1z,Fdb,Ts,Rr,Idr,adz,hz,USK,MzK,Jvb,lT,g1z,VzB,$Sz,v1B,qJ,cl,C9,L9,DSB,rY,or,Fn,dY,Az,ar,MJ,Hyl,Vf,fdP,yf,Jz,jPz,Pl,vl,kn,XhB,Dt,ZyB,ev5,K9,xn,mu,n9,sPr,uT,f9,SBr,O5,NJ,tz,TOH,s5,RoB,hoP,WMb,brY,eV,Zt,jV,BOX,zol,YSP,wYb,qSH,irl,BD,z0,T0,c2l,WD,YW,l$,wq,LMH,cD,r2d,rq,Ce, Chz,A2X,FL,oF,aVY,Mhz,IF,Vhl,G0,dq,aF,A9,M1,UM,J9,QAl,Vc,yc,pe,y2P,$W,gIr,PD,xW,Ke,ne,u$,vD,kW,D0,OM,J2H,N1,pYb,t9,Phz,jK,XL,gq,Z0,eK,sM,vIP,EM,SK,zB,TB,Ra,h4,WW,DuK,bM,kNz,Yw,lM,KMH,qa,wg,iM,cW,Lg,Cg,rg,muz,u8P,Fp,Hrz,fVY,Ord,dg,A4,Ma,thY,VG,jAB,QG,ZrB,yG,sAz,gg,J4,pg,EIH,$w,SSK,PW,BRB,z7l,xw,TR5,vW,Dp,Kg,m9,h7r,HW,Y9B,R7l,fg,Xp,Zp,q9z,lkr,sO,SU,iFl,Lkz,CmB,zK,TK,Rt,hp,Wy,b3,YA,Fkz,Ikr,GJB,Am5,akX,wa,qi,Ulz,i3,Mbl,VbK,ymB,$lz,cy,Pml,xlY,v6B,Dll,kJB,ra,KkK,Fc,n6K,da,Ap,HFb,at,Ud,Mi,fkH,OFz,yn,NRz, $A,Py,Xtl,ZF5,e7P,mw,KJ,kA,sKK,E6K,S9P,nJ,u3,Hy,zud,Xc,ZG,Ru5,huH,Wub,ea,sd,b9r,Y5b,Ed,ltP,wlY,l0K,wDB,TX,B6,R3,hw,W6,qMY,ieB,c9Y,bO,Y3,LbH,lO,C$H,r9B,oWr,wl,FbP,q0,iO,I0l,G0z,d1r,A9B,a0H,U1B,Cq,rl,o3,I3,QFH,GX,dl,y95,VKX,F9,gW5,Aw,a3,UT,VX,M0,J9P,pDz,$1z,yX,x1l,gl,D15,k0z,KbH,m1l,nWr,uLr,Hel,f0Y,$3,P6,x3,Nqz,OeB,tKY,jFY,DO,XDB,k3,ZeH,e5z,Kq,my,nq,sFY,uO,H6,EWb,OT,N0,tw,jS,X9,ZO,eS,sT,SMB,BgX,z35,TgK,ET,R3P,W9b,h3z,BQ,za,YOd,bgB,qOB,L9d,c4l,Ta,CMd,r4r,owz,Ipz,F9l,GBP,R0,da5,A4d,WQ,apd,UaK,MUB,VUB, bQ,Qad,Y5,y4r,lQ,ws,J4X,qF,pWY,iQ,cQ,$aX,PMz,L4,rs,vwY,o0,xaK,DaX,kBK,K9X,nwX,Fd,upr,ds,Al,fpK,Ogr,jaz,XWz,a0,Uo,MF,VU,QU,yU,gs,Jl,p4,$5,PQ,x5,vQ,EwP,saK,SOr,zRr,BaB,RRX,e3X,Tad,ZgY,DJ,k5,Wwz,bJz,YdH,uQ,HQ,f4,K4,wyK,Oo,hRz,iJz,cp5,qdz,ZJ,ew,so,Eo,Lwb,lGH,C3X,Sw,rp5,oA5,Fwl,IGH,GK5,aGz,UiH,MaH,Vad,B5,zT,TT,RN,QtP,ypP,py5,$id,hB,bj,xiY,Yy,W5,Did,vAz,kKd,KwH,miz,wb,qH,ucz,HJb,fGB,OJr,NaP,taz,jtB,Xyl,ZJB,eRb,c5,L8,C8,rb,std,zCH,TlK,hCd,RCl,Wyz,IN,GT,bql,YTl,lOY,db,AB,aN,U3,MH,VT,QT,yT,w65,JB,iq5,$y,cwb, LyK,P5,v5,D4,ky,COz,rwz,FyK,K8,l3,dlb,f8,IOH,GXl,O3,d0P,H5,aOz,Awl,uj,NH,tB,U0b,MSY,VSK,Q3z,jY,ywB,X3,SdX,EAz,Z4,eY,E3,SY,p6Y,B0,zS,R9,$0P,PO5,hR,KyX,wW,v3K,kXb,Yt,bc,rW,o9,m0Y,GS,n3r,dW,AR,u9l,fOr,NlK,yI,xt,ZqB,eCl,s35,v0,zHK,VI,j3X,RHK,Bs5,E35,STX,hHB,Ts5,kt,nh,b45,Yoz,lJr,wQX,qor,H0,i4l,On,clz,rlr,o5H,NW,IJl,dFz,Gal,Alb,jN,eN,B1,T3,Rs,hG,W1,b8,MwK,VwY,Ya,Q0B,l8,wU,z3,q8,i8,c1,lj,LP,ylK,rU,pQz,os,Fh,PQX,$Fr,xFd,v5B,DFd,Is,kaK,Kzz,mFX,G3,dU,udb,O4z,NsP,AG,Z4d,XQd,eHK,s0X,E5l,as,SoB,twY,U7,BbK,z6H, M8,R6d,h6d,WrK,b8P,Y3z,Q4,l4z,w5B,q3b,i8l,Cjr,cBB,y4,gU,JG,pP,$a,P1,xa,v1,oyK,ka,Dc,FrY,mg,dHz,KP,ABP,a4z,yBz,UHY,MYY,VYd,QNz,nP,u8,H1,gyz,fP,O7,N8,tG,jQ,Xh,xHY,JB5,E7,Pjl,SQ,$H5,s7,Zc,p5H,eQ,zd,DH5,RC,Td,lb,wy,ib,mHz,qo,Ci,nyH,ry,kTP,f4r,O8Y,NbP,IC,Gd,dy,tYK,AX,aC,Uw,Mo,jNz,VZ,QZ,yZ,X5K,Z8z,$c,e6B,S3z,H45,Eyr,BWz,ztd,TWr,htK,sNb,WWX,lEP,xc,Dv,qnK,ihz,cRP,LWr,rRK,mS,Ki,ot5,CcK,IEY,dWY,GSH,aEH,Hu,UWK,ub,Ow,MNB,No,ji,XM,VNb,Q9P,hn,yRz,bH,gtz,JRz,rw,p0P,PcX,om,xWB,vtz,ntr,DWP,dw,An,am,Mv,VN,NWK,QN,yN, gw,j9z,$e,X05,Zh5,Pi,s9z,vi,DI,ke,K2,Etz,mh,uH,Hi,f2,Oq,Snz,BUX,zMr,tn,jW,Xf,ZI,eW,sq,TUl,RMP,hMB,Wgr,bPB,Y7B,Eq,lcX,Wf,w1B,q7P,iPB,b7,l7,wL,qG,LE,CE,rL,LgH,Ie,Gq,dL,C8P,rGr,Ar,oa5,FgP,UE,VQb,QsB,yGz,MG,gar,JGd,P8H,Qr,D8r,x8z,k3X,m85,naz,Jr,pE,uhK,$0,Pf,x0,vf,De,k0,KE,mT,nE,u7,Hf,fE,OE,NG,HPP,fc5,OPr,jk,sE,NUl,zF,TF,Rc,ho,WP,Yv,lA,ZPz,wJ,qR,iA,ssz,eMX,tQK,CL,LL,z0B,rJ,MR,Ao,VH,QH,R0B,gJ,YwB,WSz,bil,wud,Cb5,qw5,cXz,LSz,TyH,pL,Jo,ocl,PP,xv,vP,FSr,uA,IvK,HP,fL,OD,to,Gdb,XN,ZM,doP,eH,sD,avb,BZ,Th,R6, hQ,WZ,b9,YK,l9,wS,q4,MiB,i9,CD,LD,QCB,puz,gc5,JXB,$o5,Pbl,vcB,Dor,xoB,KSz,FY,I6,AQ,moz,ncz,dS,a6,HiH,fvK,jCK,tiB,QO,yO,gS,JQ,pD,PZ,Zid,e0z,sCK,nD,u9,EcY,SwK,Bwz,tQ,jT,XY,z_5,TwB,h_d,b2K,EW,Yqz,zo,ST,hx,W4,Yi,lIP,C1,rj,oh,FJ,Go,dj,ah,Lh5,CHK,Mw,rnH,oe5,QD,FhB,IIP,yD,gj,GEr,dvB,aIb,$i,MWH,VWd,Jx,QmY,ynX,JnB,geK,Ds,Uvr,$vz,PHz,H4,n1,xvl,veB,f1,Oj,DvK,kEK,jd,Khr,mvz,neB,ufY,Ej,H2X,fI5,O25,Nwz,tWH,jmK,XiK,Z2H,Bg,e_H,Tm,EeK,SqY,BLb,zWz,TLH,RI,wi,hWP,YEz,qX,leB,qEd,RWX,iEz,crK,LTP,WTK,bEz,hk,Wg,lz,wfr,Yk, bz,C7Y,rrb,o0K,FT5,IeH,GqY,MkY,dG5,Cz,ri,F0,yrK,pfz,JrH,oI,Vb,$Gz,gi,P7H,v0z,xk,xGz,OEX,DGB,feP,Kz,NL5,XfB,mv,kk,tkz,jed,ZEz,uz,sez,E0K,SEH,BJ5,zLb,TJP,RL5,eWH,W4l,bLB,YDb,cob,lMl,CAP,NX,roX,tk,j4,X0,ov5,F4P,Ev,S4,GFz,IMr,BF,dRz,aMl,MHb,URb,VHd,gvH,QcP,i_,CH,LH,Joz,cF,r6,oZ,AW,aZ,pPz,Mc,PAY,y6,Q6,JW,pH,$2,PF,xRB,x2,D7,vvK,KH,nH,u_,DRb,kFH,K4K,mRX,HF,Oe,nvr,Nc,tW,jG,HLH,Xz,Z7,fMz,se,Bc,SG,Ee,zH,TH,tHK,Evz,BSz,scz,eLK,SDB,Wc,l0,hFz,zFK,TSH,RFY,NJK,LNz,IX,cQK,oKB,iDB,hj,GH,cc,oX,C9d,q3,XPK,jcK,ZLX,YV, qWl,UN,a_z,M3,MTd,VTz,Q6B,Ql,yQz,gK5,JQz,$4B,P9l,Jj,vKP,pV,D4K,khB,m4b,nKB,Pc,uYd,f_d,xV,ODd,vc,Db,qw,eFl,zmX,Hc,Rmz,b1P,fV,ls5,w4X,qjK,zt,Ba,i1K,EN,g0K,em,Sm,sN,ON,hZ,Wa,bU,Ll,ca,r2,Ft,L1P,IU,d2,AZ,CpY,rxr,MI,F1H,IsX,GoY,dw5,Axl,asb,UwP,Mdz,Vd5,QhH,yxK,g2,gi5,JZ,$Z,JxP,p4K,$wz,Ppz,Pa,xwr,viX,Dwl,koX,kZ,Kl,mc,K1l,nl,mwX,Ha,uJX,ni5,O_,NI,tZ,j2,H1z,Xt,ZY,fsH,O1K,e2,s_,X4b,Nj5,jhY,tdz,E_,S2,Bp,Z1z,emB,shb,zv,Sjl,Tir,zdl,Tv,RS,hC,Wp,b1,l1,wK,qk,i1,cp,L0,RdP,hdz,WvX,C0,rK,oS,Fo,Gv,AC,ljK,Yv5,U0,wgY,Mk, VK,QK,yK,gK,$p,Pp,xp,vp,Dw,kp,K0,mF,n0,u1,Hp,ckz,Nk,LvY,tC,jC,okr,Fvd,IjK,dXY,ajY,SC,UXb,z$,BS,QIB,ykX,gkY,LM,CM,pgz,oW,F_,IW,G$,PzB,dn,AY,aW,xXz,U4,$Xz,MK,V0,DXr,vkH,Q0,y0,gn,JY,$X,Kvd,mXP,xX,vS,kX,KM,nkX,DU,fjK,OzK,NiB,t4Y,jIz,XgK,ZzB,nM,m5,HzK,Ek5,uo,B6K,zEP,tY,T6z,fM,O4,REK,jD,WAP,YeK,X_,ZU,l7X,eD,qeB,s4,o2z,C_z,iHK,LAb,cWz,SD,BN,zp,Tp,Rl,hA,WN,Y8,I7r,AWK,q9,P3z,iB,a75,MGB,Lv,FE,Cv,ol,rI,yWY,QZK,VGK,g2z,Il,JWB,xcP,Gp,AA,Dcz,al,Uy,M9,VA,kWz,QA,KAB,mcX,gI,PN,x8,vN,Dl,k8,Kv,ms,nv,uB,HN,fv,Oy,N9, n2H,uzd,tA,j6,XE,Zl,e6,sy,HHP,f7d,Ey,cR,tG5,jZz,LN,CN,dz,AD,ZHP,Mq,eEB,sZd,y5,E2l,Bd5,Sez,zcY,Tdz,RcK,hcP,W7l,bVB,lbB,YNb,wcz,cjd,C0d,iVr,rjz,oVr,Ib5,JD,pN,d3z,GH5,$s,PR,xs,abB,vR,Di,ks,Mmz,Vm5,KN,U35,mX,gVK,nN,uZ,HR,fN,OZ,Nq,tD,jr,Xl,Zi,er,sZ,EZ,Sr,BV,zQ,TQ,RJ,hy,WV,bl,Y$,ll,wH,qx,il,cV,LO,CO,rH,oJ,F6,IJ,GQ,dH,Ay,aJ,UP,Mx,VR,QR,yR,gH,Jy,pO,$$,PV,x$,vV,D8,k$,KO,mj,nO,ul,HV,fO,OP,Nx,ty,j3,X6,Z8,e3,sP,EP,S3,B8,zO,TO,hS,W8,pcX,bn,e,Yo,RV,E,ln,wk,P05,c8,vVr,qC,D3z,Ca,kHX,oV,La,Fm,IV,GO,AS,m3H,nVX,uPX, HVd,pa,$o,Q9,P8,OVd,NdB,tmY,jXz,K7B,XcY,dk,ZVK,ecz,v8,na,D$,U$,sXH,aV,xo,ko,un,SNd,MC,V9,mV,Ka,B2z,H8,fa,O$,NC,zVB,tS,jA,Xm,Z$,eA,T2X,RVB,WcX,blb,SA,Bj,lYK,z8,cZB,CUr,oZK,FcP,Rx,GtB,dId,wZ,AZb,qn,iu,cj,L3,C3,rZ,aYd,M2B,V2d,UIb,QUb,yZK,G8,dZ,ax,Mn,Vk,Qk,gZX,yk,JZX,gZ,Jg,Ag,Pj,xQ,vj,DD,paY,$Q,PUK,kQ,xIb,vZY,K3,DIz,mH,n3,ktl,KcK,uu,mIP,nZK,Hj,utr,Hlz,fYK,OlY,f3,Og,N2B,t2K,Nn,tg,j1,jUl,Xs,ZD,e1,sg,XaB,Eg,S1,ZlK,BG,eVl,z1,sUB,EZz,S_b,BKz,zwY,TKH,T1,RwB,hwH,WFB,Ru,b0d,hi,Y0l,WG,lwb,bF,wpz,q0P,Yb,cG,i0P, LW,CW,rt,ou,cCB,FD,Iu,G1,LFB,C1b,Ai,au,opl,Uz,FFB,Iwd,rCB,Gvl,dk5,ACl,V_,awB,Q_,y_,gt,Ji,UkX,pW,$b,xb,MCP,vG,Da,VCr,KW,uF,mf,N_,ti,QSd,jR,yCK,Za,eR,sz,gpH,SR,JCK,zb,Tb,R_,fW,hf,Wn,br,ppB,YS,lr,wN,$kP,qM,ir,cn,L7,ur,Hn,OI,NM,tf,jx,P1d,xk5,vpz,sI,XB,EI,Sx,Dkb,kvY,KFX,Bq,z2,T2,mkK,npr,ex,uob,H0K,RD,fwz,hO,Wq,YU,l5,we,q5,i5,Lk,Ck,oD,FA,ID,G2,re,tCK,jSb,AO,aD,UF,XpK,Vj,ew5,Qj,yj,sSH,ge,pk,Pq,EpY,$U,xU,vq,DZ,S0H,mi,zqH,TnB,Rqr,u5,nk,hqK,W5z,bMX,Hq,lUX,M5,Y4z,wSl,fk,q4X,OF,iMd,N5,cYB,L5B,CoK,rYX,oXK,tO, IUH,F5K,jM,eM,G$z,sF,dKP,EF,AYd,aUY,SM,UKd,MDz,VDY,QWY,BT,yYz,zI,JYP,Rp,hH,$Kr,pSB,PoK,xKz,vXz,bi,YY,li,DKz,k$P,K5l,mKY,nXz,u_5,HM5,fUP,OMz,NnK,qr,ii,tDY,jWB,cT,L$,XSK,C$,rf,FT,ZMz,Ip,GI,df,eqz,AH,sWP,ap,EXK,UU,S4z,BIz,Mr,zB5,TIK,RBP,V7,Q7,y7,gf,JH,hBB,WsB,p$,$Y,PT,bvz,xY,vT,Dm,kY,K$,YyB,llX,m6,n$,wNr,ui,HT,f$,OU,hVz,qyz,ivz,Nr,cAl,LsK,CBB,tH,jZ,XT,Zm,eZ,sU,EU,SZ,BI,zC,TC,rAP,o8d,wr,qQ,FsK,iI,Vi,LC,gr,U9B,g8l,M6l,JAH,$9z,PBB,pN5,x9z,v8b,D9H,uI,m9d,Hvz,uEH,Ovz,NIz,t6z,NQ,tM,XNK,ZvK,SyX,jf,BzK,eB5, XQ,Z1,ef,Es,TzX,WXK,RZK,lib,rDb,CZK,wRY,osK,BE,iNd,qZ5,GnH,aiY,ADz,QvK,UqK,zj,Tj,$ql,WE,PZK,nsP,mqr,KXb,knX,vsz,fid,HNb,Dqz,XRB,jvY,ZNl,qL,Esb,eZ5,svr,xqK,SZH,BHK,bD,lD,NzX,ONl,trz,zed,Ym,ulz,ReK,Wjb,YPY,wVb,cyb,Ljl,ryz,o$l,I8z,Fjz,Uxz,dxB,GQP,M3d,yyd,g$B,JyB,pVY,AN,fC,xxz,$xK,ML,kQH,y3,mxz,n$Y,KjB,g3,u6B,JN,p6,ox,$m,KsP,PE,xm,vE,HOX,f8z,DS,OO5,NHz,t3z,km,K6,mI,n6,uD,HE,f6,Ou,NL,jJb,XVz,tN,ZOz,jq,ZZ,Xr,ZS,sJK,eez,eq,E$Y,SPY,BkH,Eu,Sq,zIB,BM,TkH,RIY,flz,DxB,hId,zc,Fs,E$,iD,WVX,baB,RL,pR5,Ro,Y$z,ao, Uu,L6,cE,Sf,r3,qPB,Clz,C6,yD5,V3z,l$l,FXr,cDH,hT,v$K,Os,q$r,w8z,zZz,iOz,iaX,QJH,Gj,gsB,JDl,dq5,l85,bOz,YZz,hZX,E8P,slr,jl5,THz,LXX,Ayb,MrB,VrB,Fr,Io,oo,a8r,hez,LVK,cSr,WM,by,ly,w8,qh,iy,CnB,CX,r8,oL,IL,Gc,rSK,F7,d8,AT,ood,aL,UQ,Mh,Qw,I$H,GOP,yw,g8,JT,pX,$T,UC5,xT,MAY,PM,VAB,ASd,a$B,QVK,vM,DR,ySK,goK,kT,p8H,wj,Pnz,$CK,voz,kOB,KVz,DCK,um5,Had,Oa5,fX,OQ,NkB,tAz,Nh,tT,jVz,X8r,ZaX,eI5,X7,sVb,eP,sQ,S$K,BZK,RQl,WHB,b3Y,hQd,BK,Tu,zu,Ygz,lDd,EQ,wjY,qgH,i3b,cgK,SP,oQr,FHH,IDK,rgl,CuH,LHX,G8K,dnB,zQB,Agz,TZz, aDl,UnK,ygH,M1P,V1l,QxY,pjb,gQH,JgH,$nP,Puz,h1,DnY,xnz,k8B,vQz,KHB,mnK,nQH,usB,H3z,fDH,O3Y,NZK,t1l,jxB,Xjd,Z3K,WK,sxX,EQY,Sgr,eQz,BtB,zgr,hgB,Yg,q$,cK,WfB,LQ,CQ,r$,wGz,iWB,qzK,Lfd,aad,riP,U8,FF,cil,laB,YzB,bWb,af,If,A1,g$,J1,VRz,pQ,$g,yP,Jib,Quz,yi5,pGz,PK,xg,PFK,Dx,kg,KQ,mm,nQ,ua,HK,x_z,vbK,fQ,O8,t1,k1K,KfY,N$,j8,uDd,HW5,XF,faK,s8,OW5,E8,BL,NtY,S8,ze,tRP,RE,XGl,ZWB,WL,bK,iK,suz,lK,cL,Cm,Ebr,oE,qU,Lm,SzY,FU,BNP,IE,z8r,YH,wc,egz,rc,Ge,TNz,R8z,dc,h8Y,A8,aE,UG,MU,W8X,QE,VE,yE,J8,b7B,YIz,pm,$H,PL,xH, vL,loz,Dn,kH,wnr,i7z,Km,mt,nm,L8r,cfz,uK,CrP,rfd,oSK,HL,F8l,IoP,GbK,dM5,AfB,fm,OG,NU,t8,aol,UMH,XU,MxB,Zn,eI,VxP,Q_z,sG,yf5,gSH,PrK,xMl,JfP,pnd,$MP,SI,Bz,z5,T5,vS5,DMX,kb5,K8H,hc,uBK,Wz,foK,NNH,O7z,w_,lP,j_l,Xnz,Z7l,e8H,qE,s_r,cz,Lj,ESz,BeB,z9K,r_,G5,Wib,d_Y,Gu,YFl,lZK,wqd,qFB,ikb,of,oH,aH,U6,C5X,rOK,oUz,ME,d5H,Fiz,IZP,aZd,U5b,V$,MMX,AOY,VMd,Q$,y$,g_,QDB,yOb,Jc,pj,gUX,$f,JOH,Pz,d_,kf,pq5,AiX,CFb,Kj,me,uP,Hz,fj,O6,NE,nj,XO,P5d,eg,vUz,s6,k2H,Kiz,D5l,x5X,m5z,nUH,uA5,zk,Hkz,fZP,Ner,Tk,MR5,Rn,jDr,ZkP, M$,e95,sDK,d$,obd,Iar,G1B,tMK,Wo,EUB,SFz,bq,Bfr,lq,wP,qj,iq,co,ziz,LY,CY,Tfz,Ril,rP,on,Fk,In,Gk,dP,W65,hiX,Aq,b$z,lml,an,wTd,YUz,Ho,nY,fY,Nj,tq,qUd,F6K,gk,uq,ej,AHB,UrH,Jq,B3,gP,zi,W3,mR,be,gYb,YO,le,JHX,pTK,$rY,Piz,wo,xr5,vYz,qT,Drb,uTK,nYz,kI5,mrz,K6K,ie,H$K,c3,fmd,O$B,tZY,jpK,XTr,Z$K,BrK,FS,IQ,RTK,Gi,Ab,hTB,YsY,l1r,wIz,qsl,aQ,iCX,LEX,CIb,v3,UQB,I1K,GCr,VfK,D5,Qir,gLb,yMB,JMr,Kb,ue,pIr,kO,H3,fb,$Qd,xQH,kCd,jL,s2,TG,Wx,eTK,siX,w5,ls,is,cx,ELK,z$B,B3d,T3K,Ct,Lt,R$z,WIY,b6b,lSK,F1,YuK,wEY,quz,GG,d5, cNP,tb,oY,HCr,PIz,tfB,Qe,qp,h$B,xh,RY,Dr,kh,MqY,QoY,VqY,hu,mJ,nt,us,gmr,Hx,ft,JNd,bs,OR,Ssb,tu,FIz,jv,pEz,mQB,KEK,vLB,X1,PDB,sR,H65,urz,O6d,N3z,Bw,YN,lN,Ww,q2,iN,tq5,cw,XEP,LB,e$d,oy,Z6z,FR,Iy,B8B,Gz,RyK,hyK,ay,WGK,lRz,vw,kN,KB,uN,wMB,Hw,fB,je,Zg,ee,sL,qQz,EL,Se,Cyb,BO,z4,rTz,oTz,T4,FGd,IRz,Gcz,dhb,RM,hh,ATb,Uhz,MPH,Yj,lx,ix,cO,VPl,QLK,Lf,Cf,rQ,oM,yTr,gTz,FC,JTd,pMd,IM,Pyz,$hK,xhP,G4,Dhd,vTb,kcK,dQ,Ah,KG5,nTH,u75,aM,Ut,MP,HXr,OXr,Vh,N8b,yh,tPl,jLz,Qh,gQ,Jh,pf,eyz,ETz,XMK,sLP,SQY,ZXK,B$d,zAr,PO,T$P, hAB,Y8r,wKz,lxz,ux,nf,Ot,iQr,NP,th,jF,LmY,XC,Cal,c1z,Z9,FmB,eF,Et,Ixr,SF,zZ,Gub,d$B,A1z,axz,U$l,TZ,M8H,V8B,FEb,a1l,y1K,Qfz,J1b,ggz,pKX,h$,We,bJ,Yd,$$r,vgH,qZ,iJ,ce,kud,D$X,lJ,Kmz,m$B,ngK,HQH,LA,sfr,IB,GZ,h4z,vO,bmK,YGr,ln5,wLl,qGl,A$,imX,aB,UV,MZ,c8B,yp,LtH,CKl,g7,J$,r85,oHb,FtK,Inz,Ger,pA,Qp,dUX,A8l,$d,UUP,MId,VIz,Pe,QEH,y8H,gH5,J8z,pLz,$UY,PKr,xUz,vHP,DUK,xd,Ktd,ve,nHd,mUH,HmB,uUB,Omr,mQ,ked,Dq,nA,uJ,He,fA,OV,NZ,NcY,t$,tI5,XW,sEb,B_z,zzK,T_z,RzH,sV,hzz,SGz,e4H,Wez,Zq,bjX,l6z,jp,ep,XLB,ZmK,EV,wzX, q6d,EHK,jE5,ijz,BX,ccb,zV,TV,Lel,R7,ofB,CPH,rcr,h7,Fed,WX,bL,Y9,lL,I6b,G5K,dEr,wm,a6H,UEH,qY,MgY,iL,cX,VgB,QHK,ycr,gfb,JcP,pzK,DEd,PPz,WmB,CG,Kez,mEH,xEH,vf5,$E5,F2,OjK,o7,rm,k5b,tgK,f6K,HjK,uOr,nfd,GV,jHK,xj,dm,A7,a7,XzK,U1,ZjK,MY,ezH,ff,sHK,VY,kj,m0,RAB,gm,pG,BPB,zlX,$9,x9,J7,yY,vX,QY,EfH,S6l,Dy,TPl,RlK,KA,fnz,D9,k9,hlK,PX,WRd,bYX,YfK,lfr,KG,m_,woX,qfB,iYb,cqd,LRr,Y6r,FW,uL,HX,nG,rqb,r1X,ogr,fG,oCr,FRB,Ifl,GkB,O1,djX,NY,Aqz,UjH,t7,Mjb,Vj5,Zy,yqz,X2,S5,Jqb,gCK,xjz,$jb,vCB,Djr,poB,PqK,kkH,BJ,KRz, nCH,mj5,zg,anB,ukK,HYd,ffl,OYz,NPr,Tg,tjl,R2,jnX,hJ,WJ,XoP,b6,ZYz,elz,Yu,snz,ECd,Sfz,Bo5,l6,x$b,wu,RJz,qm,ToK,hJ5,WxK,Pad,w7,bbb,w3B,Y2B,cJ,l5l,oOd,rbB,Fu,Fxz,Cel,dTd,I2,AbB,a5X,VLY,QQK,gOz,MLP,Jbd,p3Y,$TP,PeY,xTX,DTr,kiH,Kxl,vOr,du,i6,nOY,UTH,uS5,ybH,AJ,f5d,mTz,Gg,Obz,Noz,X3B,sQY,ZbK,u6,EOK,HJ,tLd,a2,fp,jQP,tJ,zn5,RnK,T5z,hnl,B5B,WJB,btB,Or,YRH,lrr,wxb,qRX,LJY,cud,itd,jX,Csz,ohP,FJH,IrP,GGd,dpz,eX,kd,AuB,ard,MvB,Upb,Vv5,yuK,ghb,QYY,Nm,e5,pxB,$pd,PsY,nhl,DpP,kGK,KJd,u1X,frz,N_K,Xu,vhP,xpH,Htl,HO, mpz,LG,Kf,eJK,Xx5,jYz,Ztb,enK,B4l,zNP,ruB,E1,s1,N5z,T4r,tvK,RNP,j5,hN5,af5,S2P,OtB,QnK,SX,Bs,bBd,z7,YLz,lgP,wwB,qLH,iBB,r7K,o9z,dYY,F_l,GVB,A7d,Rg,V5K,UYK,M5B,g9K,J7B,pXX,he,$Yz,T7,PLX,y7K,ayb,Ws,xYP,IyH,v9r,bv,kVK,DYX,mYH,n9H,u2b,K_r,Y7,OGd,fyl,j7z,t5B,Nm5,XXK,ZGb,lv,epb,s7X,S1Y,Buz,E9P,zOH,bpY,ROz,hO5,WoK,YrX,l3r,wJd,ipX,qrH,cJb,LoB,w9,rJP,our,I3X,Fod,GgY,C6l,dmK,a3H,Umd,VXr,yJB,MXB,guz,JJz,pJP,AJK,$mz,Q2K,iv,P6B,xmr,vuY,Dmz,kgP,Kol,mml,uuP,f3H,OpB,Nuz,tXl,j2b,cs,XJK,LR,eOX,s2H,FI,SrB,Ig,z15,T9H, R1b,h1d,bRH,WOY,EhY,wsK,sYl,G7,Ae,YCH,lW5,qCX,UC,ceP,iRb,LOl,Cvd,reB,IWz,o7K,Ae5,MN,FO5,aWX,Vm,yeK,UNK,ym,g9,g7d,Qm,Jez,Je,PvY,$Nz,V0l,QgB,xN5,v7l,DNz,M0z,k7X,pR,KOb,psX,B9P,ag,Ps,x7,n7B,uIK,HRX,fWY,ORl,N9z,t0B,jgK,XsB,vs,ZRd,sgH,E7z,SCl,e1z,Bp5,zDb,TpP,RDz,hDz,W3b,k7,NKd,bnr,YAz,KR,lA5,wBd,nR,c0P,L3d,uv,r0r,oJl,CCY,inH,Hs,mO,qA5,NN,OC,F3P,te,fR,A0z,Myd,Q4X,y0K,J0z,Grz,Vyl,pBd,dzK,$zr,PCr,sC,j0,Dzz,krb,xzX,ZW,mzP,nJK,Uzd,aAH,K3l,uez,gJz,vJz,IAK,EC,S0,BB,HnX,zr,XBH,Npz,ZnB,tyr,On5,eDP,fA5,SAz,s45, Tr,BhK,ThK,hXH,W2H,buz,wHz,bC,qkX,YkB,e0,L2Y,CXK,iC,HbB,R4,r5d,olH,INB,F2b,G9H,c5b,lC,dbB,A5d,aNb,Mtz,UbB,Jud,YJ,VtB,y55,Q$r,J5P,glK,RXX,$bb,pHX,wp,h0,PXH,Ln,xbz,vlX,Dbz,k9K,K2l,cB,lNd,Wl5,XI,mbY,nlz,ujd,HuP,fNr,Cn,rp,Nhz,ttH,j$d,OuX,XHH,o4,ElK,eXb,s$r,Sk5,Fe,BAl,zbX,TAz,I4,Rbd,WaH,boK,YhB,Gr,hbz,dp,A0,lLK,wrB,Mz,a4,UA,qhB,Vu,ioY,cUP,Lad,rUd,CYK,$J,FaY,ILB,o_K,Gfl,PB,dVB,xJ,AUr,vB,aLB,UVz,yUP,Q8d,prl,MoY,g_K,DA,VoB,JUY,$VY,PYl,xVK,v_z,Kn,DVB,uC,m3,kfH,HB,fn,mVB,n_z,Nz,t0,u4P,OA,HoB,jy,Ooz,fLY,ZA, ey,sA,j8r,NAr,tob,EA,Xrz,E_l,ebX,ZoK,s8X,Sy,BCz,hPz,WUb,z9,bxB,BH,zPl,TCX,wdz,T9,R$,qcl,ixX,c3K,LUX,CRK,bX,FUz,IXz,G_X,Yl,oEK,A3z,WH,lX,wh,r3b,iX,qb,aXz,cH,Ufb,M$b,V$z,Lu,Cu,QqY,y3X,gEH,J3K,pdH,$fK,PRP,DfB,xfB,k_K,KUz,fXr,OxP,HxX,NC5,t$P,jqb,Mb,Zxz,ePB,T0l,yJ,Wpd,lhX,YxX,bSB,B0z,zxB,sql,EEb,Rxz,gh,J5,qxK,yx,soP,iSK,$l,xl,Lpz,csX,hxH,rsH,oBX,FpK,vH,HH,GL5,dtz,Asl,UtY,ahr,MEH,fu,Ok,VEr,gBX,Jsz,jt,ysd,pUz,$tY,QbH,et,PtB,xtY,ZN,vBr,Dtz,kLz,KpK,nBz,mtd,fhb,OSH,uVX,tEd,jbr,HSz,St,Br,XUB,sbX,zf,exd,ZSP, EBz,Bv5,SxB,zaK,Tf,Tvd,RaB,haH,W$z,bdz,YKz,lQK,qKH,wmX,id5,cFb,L$r,CSz,rF5,F$d,hU,R8,Wr,IQz,Gy5,oR5,M9P,V9K,Q5X,JFb,gRP,yFb,pmK,$Ob,bY,Y_,PSr,xOK,vRH,DOB,K$z,mO5,wA,nR5,lY,iY,kyl,uHY,Hdd,fQK,Odz,Nvz,t9K,Lo,j5B,Xm5,s5l,Co,ERB,eal,rA,o8,F4,BMb,zGb,TMz,SKz,hGH,RGl,WPz,bTH,Yal,wAB,cEX,luz,qal,Gf,LPb,rEB,oDP,Iuz,Gwl,dA,AU,dyB,CGP,UyP,aul,AEB,a8,Uh,VnB,MnK,MV,VL,QL,Qjb,yL,yEr,gDd,JEP,pA5,gA,$yB,JU,PGd,po,$_,Pr,xyz,vDz,DyK,x_,vr,nDz,ubK,kwH,HTb,OTP,NMl,tnX,fur,XAY,jjd,ZTl,EDz,Ko,BDz,SaY,eGd,sjB,zKP,TDz, ma,no,RKH,hKX,WCz,b_z,Ybr,lKX,qbz,i_P,GM5,CEY,ral,ca5,Aar,tU,X4,Q1H,yaz,sh,Eh,g4z,aKl,NV,z_,Bd,ZL,pvB,$6K,T_,x6H,D6d,v4d,Rq,eo,Oh,PE5,So,U6z,JaK,KCz,uY,h3,m6H,n45,jo,MOB,Wd,bR,uvY,YE,lR,wC,H_l,fKB,NDB,tOb,O_X,qf,j1K,iR,cd,XvY,Z_z,eKY,s1X,E4P,Sbz,zUK,BT5,Cx,Lx,TTX,hUB,RUK,rC,oq,Wqd,YXY,lPz,FX,bwz,wCK,qXB,iwB,ctb,Lqz,Ckd,rtl,G_,dC,FqY,oMK,IPr,A3,aq,ddB,GAB,AtY,Udz,aPK,M_H,Mf,V_r,QkP,Qg,ytK,yg,gMd,Jtz,pCP,$dr,Pkz,vMB,DdB,kAX,xdK,KqX,mdH,nMH,uq5,HwP,fPY,OwX,NT5,Pd,t_K,jkK,XCB,skH,zsz,SXH,eUl,DX,EMY,ZwP, Bxl,kE,Rsd,Tx5,Kx,hsH,WDz,bKb,Tuz,Hd,YQz,nx,fx,uR,Nf,Yiz,lBX,LDb,C4H,r6H,t3,oqz,FDP,M75,sc,V7B,UsB,QwB,Ec,BU,zL,gqb,y6b,IBB,TL,p_X,$sz,J6X,xsK,Rb,vq5,Dsz,klP,S$,msb,KDz,hs,WU,A6z,ZX,nqY,uGP,HKK,fBl,Gl5,dsz,e$,OK5,Nxd,t7B,jwz,X_B,bt,esz,BEP,lt,zfK,TEr,EqK,qt,Rfz,hfz,ZKb,WnH,SiK,bcB,it,w0,Ymz,w9z,lCl,YB,icX,cU,iuP,cPP,rPK,CVb,Fnb,ICK,oGH,CS,LS,dAK,APr,aCz,UAK,PVH,gGX,JPY,QOd,DAz,VuP,Ib,mAB,k6H,nGB,ugY,FV,d0,As,NEX,OcP,fCH,Ux,$A5,y2,jOK,Q2,ab,ZcX,efK,sOY,vGl,pS,PU,EGz,p9d,tuz,Mt,SmY,GL,BVl,zkl,TVK,Dh, kB,X9l,Rkb,hkr,KS,mp,WYK,V2,Kn5,bZH,YJP,lTz,$B,w2r,g0,qJr,Js,r4,iZd,LYr,nS,ut,Cfz,rVH,oFb,vU,xB,FYz,LnB,IT5,r0,GDP,ded,AVP,aTr,HU,fS,Vsz,gFz,p2z,Msz,mel,nFB,uZP,HZK,fT5,OZz,NVz,jdd,tsY,Ox,Nt,ts,X2X,ZZX,ek5,XA,sdK,jE,EFP,XV,SJb,Zh,eE,BGY,M_,sx,s$,zSr,V3,PlP,TGK,hN,RSz,kU,Kk,hSz,Tc,WLX,bUl,Q3,n8r,YYX,l2z,Ex,qYB,iU5,SE,zy,Ty,cLB,rLH,ozY,R5,FLl,LLr,Gx5,Cwl,I2b,dDP,ALz,a2r,UDr,hF,VJB,$IY,Ug,TI,QGb,yLz,WT,MJB,p3,gzY,JLH,p$l,Wm,de,Pwd,xDb,bS,YR,vzd,lS,DDb,Bm,kxK,KLb,Bnr,wv,qO,mDK,iS,cm,nzP,Ld,ual,Cd,rv, HUK,f2z,gXl,o5,OUK,tJB,NGH,FH,I5,jGb,Gy,X$r,ZUX,eSz,sGK,EzK,SYH,zrK,AF,BB5,TBd,RrK,hrr,WZY,wk5,bIl,YlH,lHK,iI5,LZP,Cg5,r_z,c_b,a5,oxK,FZz,IHK,GYz,d7d,MO,A_X,V1,Q1,y1,aHl,U7B,VBz,QTK,y_X,gx5,pkK,J_r,$7B,gv,JF,vxd,Pgd,x75,pd,D7B,kYz,$R,Pm,KZH,xR,m7z,vm,nxB,DQ,kR,uiz,Kd,m$,HIB,fHP,nd,uS,OIz,Hm,NBK,tBX,tF,j9,jTB,XkP,ZIb,ExK,sTP,XH,SlY,BXs,zYI,kpB,erz,RYp,hY7,b5s,BX5,qB;Wb=function(B){return function(){return BX5[B].apply(this,arguments)}}; g.bd=function(B,z){return BX5[B]=z}; zYK=function(B){var z=0;return function(){return z=this.length))return this[B]}; tK=function(B){return B?B:NB}; LBl=function(B,z,T){B instanceof String&&(B=String(B));for(var R=B.length-1;R>=0;R--){var h=B[R];if(z.call(T,h,R,B))return{gm:R,XH:h}}return{gm:-1,XH:void 0}}; jl=function(B){return B?B:function(z,T){return LBl(this,z,T).gm}}; g.Zz=function(B,z,T){B=B.split(".");T=T||g.XK;for(var R;B.length&&(R=B.shift());)B.length||z===void 0?T[R]&&T[R]!==Object.prototype[R]?T=T[R]:T=T[R]={}:T[R]=z}; EH=function(B,z){var T=g.sH("CLOSURE_FLAGS");B=T&&T[B];return B!=null?B:z}; g.sH=function(B,z){B=B.split(".");z=z||g.XK;for(var T=0;T2){var R=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(h,R);return B.apply(z,h)}}return function(){return B.apply(z,arguments)}}; g.W7=function(B,z,T){g.W7=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?rKX:orX;return g.W7.apply(null,arguments)}; g.bW=function(B,z){var T=Array.prototype.slice.call(arguments,1);return function(){var R=T.slice();R.push.apply(R,arguments);return B.apply(this,R)}}; g.YP=function(){return Date.now()}; wF=function(B){return B}; g.qg=function(B,z){function T(){} T.prototype=z.prototype;B.gD=z.prototype;B.prototype=new T;B.prototype.constructor=B;B.oQ=function(R,h,W){for(var b=Array(arguments.length-2),l=2;l=0;--T)T in R&&z.call(void 0,R[T],T,B)}; g.Cs=function(B,z,T){z=Ls(B,z,T);return z<0?null:typeof B==="string"?B.charAt(z):B[z]}; Ls=function(B,z,T){for(var R=B.length,h=typeof B==="string"?B.split(""):B,W=0;W=0;R--)if(R in h&&z.call(T,h[R],R,B))return R;return-1}; g.F5=function(B,z){return AKX(B,z)>=0}; azz=function(B){if(!Array.isArray(B))for(var z=B.length-1;z>=0;z--)delete B[z];B.length=0}; g.GU=function(B,z){z=AKX(B,z);var T;(T=z>=0)&&g.IR(B,z);return T}; g.IR=function(B,z){return Array.prototype.splice.call(B,z,1).length==1}; g.dF=function(B,z){z=Ls(B,z);z>=0&&g.IR(B,z)}; UBP=function(B,z){var T=0;dBK(B,function(R,h){z.call(void 0,R,h,B)&&g.IR(B,h)&&T++})}; g.aR=function(B){return Array.prototype.concat.apply([],arguments)}; g.Mg=function(B){var z=B.length;if(z>0){for(var T=Array(z),R=0;R>>1),w=void 0;T?w=z.call(void 0,B[l],l,B):w=z(R,B[l]);w>0?h=l+1:(W=l,b=!w)}return b?h:-h-1}; g.xP=function(B,z){B.sort(z||ps)}; Qzz=function(B,z){var T=ps;g.xP(B,function(R,h){return T(z(R),z(h))})}; g.DF=function(B,z,T){if(!g.B7(B)||!g.B7(z)||B.length!=z.length)return!1;var R=B.length;T=T||yKz;for(var h=0;hz?1:B0&&(z[h]=R)},B); return z}; KBY=function(B){B=Ly(B);var z=[];g.uW(B,function(T,R){R in Object.prototype||typeof T!="undefined"&&z.push([R,":",T].join(""))}); return z}; nrz=function(B){qS(B,"od",mBP);qS(B,"opac",Cy).T=!0;qS(B,"sbeos",Cy).T=!0;qS(B,"prf",Cy).T=!0;qS(B,"mwt",Cy).T=!0;qS(B,"iogeo",Cy)}; oP=function(B,z){return B.lastIndexOf(z,0)==0}; uKK=function(B,z){var T=B.length-z.length;return T>=0&&B.indexOf(z,T)==T}; g.Fy=function(B){return/^[\s\xa0]*$/.test(B)}; g.IP=function(B,z){return B.indexOf(z)!=-1}; GR=function(B,z){return g.IP(B.toLowerCase(),z.toLowerCase())}; g.MS=function(B,z){var T=0;B=d1(String(B)).split(".");z=d1(String(z)).split(".");for(var R=Math.max(B.length,z.length),h=0;T==0&&hz?1:0}; g.Va=function(){var B=g.XK.navigator;return B&&(B=B.userAgent)?B:""}; Jv=function(B){if(!Qa&&!ya||!g1)return!1;for(var z=0;z0:!1}; x1=function(){return $1()?!1:py("Opera")}; H5d=function(){return $1()?!1:py("Trident")||py("MSIE")}; fzz=function(){return $1()?Jv("Microsoft Edge"):py("Edg/")}; vh=function(){return py("Firefox")||py("FxiOS")}; k1=function(){return py("Safari")&&!(Dd()||($1()?0:py("Coast"))||x1()||($1()?0:py("Edge"))||fzz()||($1()?Jv("Opera"):py("OPR"))||vh()||py("Silk")||py("Android"))}; Dd=function(){return $1()?Jv("Chromium"):(py("Chrome")||py("CriOS"))&&!($1()?0:py("Edge"))||py("Silk")}; O55=function(){return py("Android")&&!(Dd()||vh()||x1()||py("Silk"))}; NXK=function(B){var z={};B.forEach(function(T){z[T[0]]=T[1]}); return function(T){return z[T.find(function(R){return R in z})]||""}}; tlz=function(B){var z=g.Va();if(B==="Internet Explorer"){if(H5d())if((B=/rv: *([\d\.]*)/.exec(z))&&B[1])z=B[1];else{B="";var T=/MSIE +([\d\.]+)/.exec(z);if(T&&T[1])if(z=/Trident\/(\d.\d)/.exec(z),T[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":B="8.0";break;case "5.0":B="9.0";break;case "6.0":B="10.0";break;case "7.0":B="11.0"}else B="7.0";else B=T[1];z=B}else z="";return z}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");T=[];for(var h;h=R.exec(z);)T.push([h[1],h[2],h[3]||void 0]); z=NXK(T);switch(B){case "Opera":if(x1())return z(["Version","Opera"]);if($1()?Jv("Opera"):py("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if($1()?0:py("Edge"))return z(["Edge"]);if(fzz())return z(["Edg"]);break;case "Chromium":if(Dd())return z(["Chrome","CriOS","HeadlessChrome"])}return B==="Firefox"&&vh()||B==="Safari"&&k1()||B==="Android Browser"&&O55()||B==="Silk"&&py("Silk")?(z=T[2])&&z[1]||"":""}; jzb=function(B){if($1()&&B!=="Silk"){var z=g1.brands.find(function(T){return T.brand===B}); if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=tlz(B);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])}; Z5z=function(){var B=null;if(!XbK)return B;try{var z=function(T){return T}; B=XbK.createPolicy("goog#html",{createHTML:z,createScript:z,createScriptURL:z})}catch(T){}return B}; md=function(){Ky===void 0&&(Ky=Z5z());return Ky}; ny=function(B){this.T=B}; u2=function(B){var z=md();B=z?z.createScriptURL(B):B;return new ny(B)}; Hh=function(B){if(B instanceof ny)return B.T;throw Error("");}; fy=function(B){this.T=B}; g.OB=function(B){if(B instanceof fy)return B.T;throw Error("");}; NS=function(B){this.u1=B}; tv=function(B){return new NS(function(z){return z.substr(0,B.length+1).toLowerCase()===B+":"})}; g.Xy=function(B,z){z=z===void 0?eYB:z;a:if(z=z===void 0?eYB:z,!(B instanceof fy)){for(var T=0;T4);h++)z[cY(B[h])]||(T+="\nInner error "+R++ +": ",B[h].stack&&B[h].stack.indexOf(B[h].toString())==0||(T+=typeof B[h]==="string"?B[h]:B[h].message+"\n"),T+=qu(B[h],z));h")!=-1&&(B=B.replace(lFz,">")),B.indexOf('"')!=-1&&(B=B.replace(w7X,""")),B.indexOf("'")!=-1&&(B=B.replace(qpz,"'")),B.indexOf("\x00")!=-1&&(B=B.replace(isb,"�")));return B}; g.IA=function(B){return B==null?"":String(B)}; GN=function(B){for(var z=0,T=0;T>>0;return z}; dO=function(B){var z=Number(B);return z==0&&g.Fy(B)?NaN:z}; cIz=function(B){return String(B).replace(/\-([a-z])/g,function(z,T){return T.toUpperCase()})}; LKl=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; CWK=function(B){return B.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,T,R){return T+R.toUpperCase()})}; rIz=function(B){var z=1;B=B.split(":");for(var T=[];z>0&&B.length;)T.push(B.shift()),z--;B.length&&T.push(B.join(":"));return T}; A2=function(){return Qa||ya?!!g1&&!!g1.platform:!1}; oPz=function(){return A2()?g1.platform==="Android":py("Android")}; aA=function(){return py("iPhone")&&!py("iPod")&&!py("iPad")}; US=function(){return aA()||py("iPad")||py("iPod")}; Mu=function(){return A2()?g1.platform==="macOS":py("Macintosh")}; FKz=function(){return A2()?g1.platform==="Windows":py("Windows")}; VQ=function(B){VQ[" "](B);return B}; IFH=function(B,z){try{return VQ(B[z]),!0}catch(T){}return!1}; dgH=function(B,z){var T=GUz;return Object.prototype.hasOwnProperty.call(T,B)?T[B]:T[B]=z(B)}; g.QQ=function(B){return dgH(B,function(){return g.MS(AIY,B)>=0})}; g.yQ=function(B,z,T){return Math.min(Math.max(B,z),T)}; g.gO=function(B,z){B%=z;return B*z<0?B+z:B}; J2=function(B,z,T){return B+T*(z-B)}; g.pr=function(B,z){this.x=B!==void 0?B:0;this.y=z!==void 0?z:0}; $I=function(B,z){return B==z?!0:B&&z?B.x==z.x&&B.y==z.y:!1}; g.PY=function(B,z){this.width=B;this.height=z}; g.xI=function(B,z){return B==z?!0:B&&z?B.width==z.width&&B.height==z.height:!1}; vY=function(B){return B.width*B.height}; kI=function(B,z){this.T=B===DV&&z||""}; Kr=function(B){if(B instanceof EB)return B;B=String(B).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Sz(B)}; Ugr=function(B){return aFP(B)}; aFP=function(B){var z=Kr("");return Sz(B.map(function(T){return BY(Kr(T))}).join(BY(z).toString()))}; gPd=function(B){var z;if(!Mcz.test("div"))throw Error("");if(Vcz.indexOf("DIV")!==-1)throw Error("");var T="":(B=Ugr(z.map(function(R){return R instanceof EB?R:Kr(String(R))})),T+=">"+B.toString()+""); return Sz(T)}; QRY=function(B){for(var z="",T=Object.keys(B),R=0;R2&&kUK(h,b,R,2);return b}; kUK=function(B,z,T,R){function h(l){l&&z.appendChild(typeof l==="string"?B.createTextNode(l):l)} for(;R0)h(W);else{a:{if(W&&typeof W.length=="number"){if(g.zU(W)){var b=typeof W.item=="function"||typeof W.item=="string";break a}if(typeof W==="function"){b=typeof W.item=="function";break a}}b=!1}g.Ks(b?g.Mg(W):W,h)}}}; g.ES=function(B){return eh(document,B)}; eh=function(B,z){z=String(z);B.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return B.createElement(z)}; g.Sh=function(B){return document.createTextNode(String(B))}; g.Bt=function(B,z){B.appendChild(z)}; g.zJ=function(B){for(var z;z=B.firstChild;)B.removeChild(z)}; TJ=function(B,z,T){B.insertBefore(z,B.childNodes[T]||null)}; g.RK=function(B){return B&&B.parentNode?B.parentNode.removeChild(B):null}; g.hm=function(B,z){if(!B||!z)return!1;if(B.contains&&z.nodeType==1)return B==z||B.contains(z);if(typeof B.compareDocumentPosition!="undefined")return B==z||!!(B.compareDocumentPosition(z)&16);for(;z&&B!=z;)z=z.parentNode;return z==B}; nr=function(B){return B.nodeType==9?B:B.ownerDocument||B.document}; g.Wt=function(B,z){if("textContent"in B)B.textContent=z;else if(B.nodeType==3)B.data=String(z);else if(B.firstChild&&B.firstChild.nodeType==3){for(;B.lastChild!=B.firstChild;)B.removeChild(B.lastChild);B.firstChild.data=String(z)}else g.zJ(B),B.appendChild(nr(B).createTextNode(String(z)))}; mgK=function(B){return B.tagName=="A"&&B.hasAttribute("href")||B.tagName=="INPUT"||B.tagName=="TEXTAREA"||B.tagName=="SELECT"||B.tagName=="BUTTON"?!B.disabled&&(!B.hasAttribute("tabindex")||KK5(B)):B.hasAttribute("tabindex")&&KK5(B)}; KK5=function(B){B=B.tabIndex;return typeof B==="number"&&B>=0&&B<32768}; Y6=function(B,z,T){if(!z&&!T)return null;var R=z?String(z).toUpperCase():null;return bm(B,function(h){return(!R||h.nodeName==R)&&(!T||typeof h.className==="string"&&g.F5(h.className.split(/\s+/),T))},!0)}; bm=function(B,z,T){B&&!T&&(B=B.parentNode);for(T=0;B;){if(z(B))return B;B=B.parentNode;T++}return null}; mM=function(B){this.T=B||g.XK.document||document}; nPl=function(){this.T=this.Dj=null}; lm=function(){}; ql=function(){if(!wR())throw Error();}; wR=function(){return!(!im||!im.performance)}; u55=function(B){return g.X8?"webkit"+B:B.toLowerCase()}; ct=function(B){return function(){return B}}; g.LF=function(){}; HsK=function(B){var z=z||0;return function(){return B.apply(this,Array.prototype.slice.call(arguments,0,z))}}; CF=function(B){var z=!1,T;return function(){z||(T=B(),z=!0);return T}}; rR=function(B){var z=B;return function(){if(z){var T=z;z=null;T()}}}; oK=function(B,z,T){var R=0;return function(h){g.XK.clearTimeout(R);var W=arguments;R=g.XK.setTimeout(function(){B.apply(T,W)},z)}}; F$=function(B,z,T,R){this.top=B;this.right=z;this.bottom=T;this.left=R}; IK=function(B){return B.right-B.left}; GJ=function(B,z){return B==z?!0:B&&z?B.top==z.top&&B.right==z.right&&B.bottom==z.bottom&&B.left==z.left:!1}; dR=function(B,z,T){z instanceof g.pr?(B.left+=z.x,B.right+=z.x,B.top+=z.y,B.bottom+=z.y):(B.left+=z,B.right+=z,typeof T==="number"&&(B.top+=T,B.bottom+=T));return B}; g.Am=function(B,z,T,R){this.left=B;this.top=z;this.width=T;this.height=R}; aK=function(B,z){return B==z?!0:B&&z?B.left==z.left&&B.width==z.width&&B.top==z.top&&B.height==z.height:!1}; g.Ml=function(B,z,T){if(typeof z==="string")(z=U9(B,z))&&(B.style[z]=T);else for(var R in z){T=B;var h=z[R],W=U9(T,R);W&&(T.style[W]=h)}}; U9=function(B,z){var T=fFB[z];if(!T){var R=cIz(z);T=R;B.style[R]===void 0&&(R=(g.X8?"Webkit":VC?"Moz":null)+CWK(R),B.style[R]!==void 0&&(T=R));fFB[z]=T}return T}; g.QC=function(B,z){var T=B.style[cIz(z)];return typeof T!=="undefined"?T:B.style[U9(B,z)]||""}; yC=function(B,z){var T=nr(B);return T.defaultView&&T.defaultView.getComputedStyle&&(B=T.defaultView.getComputedStyle(B,null))?B[z]||B.getPropertyValue(z)||"":""}; gR=function(B,z){return yC(B,z)||(B.currentStyle?B.currentStyle[z]:null)||B.style&&B.style[z]}; g.pF=function(B,z,T){if(z instanceof g.pr){var R=z.x;z=z.y}else R=z,z=T;B.style.left=g.Jm(R,!1);B.style.top=g.Jm(z,!1)}; $6=function(B){try{return B.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}}; OsK=function(B){var z=nr(B),T=gR(B,"position"),R=T=="fixed"||T=="absolute";for(B=B.parentNode;B&&B!=z;B=B.parentNode)if(B.nodeType==11&&B.host&&(B=B.host),T=gR(B,"position"),R=R&&T=="static"&&B!=z.documentElement&&B!=z.body,!R&&(B.scrollWidth>B.clientWidth||B.scrollHeight>B.clientHeight||T=="fixed"||T=="absolute"||T=="relative"))return B;return null}; g.Pt=function(B){var z=nr(B),T=new g.pr(0,0);if(B==(z?nr(z):document).documentElement)return T;B=$6(B);z=uh(z);z=Dgz(z.T);T.x=B.left+z.x;T.y=B.top+z.y;return T}; tcK=function(B,z){var T=new g.pr(0,0),R=ZV(nr(B));if(!IFH(R,"parent"))return T;do{var h=R==z?g.Pt(B):NFl(B);T.x+=h.x;T.y+=h.y}while(R&&R!=z&&R!=R.parent&&(B=R.frameElement)&&(R=R.parent));return T}; g.x6=function(B,z){B=jRb(B);z=jRb(z);return new g.pr(B.x-z.x,B.y-z.y)}; NFl=function(B){B=$6(B);return new g.pr(B.left,B.top)}; jRb=function(B){if(B.nodeType==1)return NFl(B);B=B.changedTouches?B.changedTouches[0]:B;return new g.pr(B.clientX,B.clientY)}; g.vt=function(B,z,T){if(z instanceof g.PY)T=z.height,z=z.width;else if(T==void 0)throw Error("missing height argument");B.style.width=g.Jm(z,!0);B.style.height=g.Jm(T,!0)}; g.Jm=function(B,z){typeof B=="number"&&(B=(z?Math.round(B):B)+"px");return B}; g.Dk=function(B){var z=X7B;if(gR(B,"display")!="none")return z(B);var T=B.style,R=T.display,h=T.visibility,W=T.position;T.visibility="hidden";T.position="absolute";T.display="inline";B=z(B);T.display=R;T.position=W;T.visibility=h;return B}; X7B=function(B){var z=B.offsetWidth,T=B.offsetHeight,R=g.X8&&!z&&!T;return(z===void 0||R)&&B.getBoundingClientRect?(B=$6(B),new g.PY(B.right-B.left,B.bottom-B.top)):new g.PY(z,T)}; g.KF=function(B,z){B.style.display=z?"":"none"}; mk=function(B){return B?B.passive&&ZsX()?B:B.capture||!1:!1}; nF=function(B,z,T,R){return typeof B.addEventListener==="function"?(B.addEventListener(z,T,mk(R)),!0):!1}; um=function(B){if(B.prerendering)return 3;var z;return(z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[B.visibilityState||B.webkitVisibilityState||B.mozVisibilityState||""])!=null?z:0}; ehB=function(){}; Ht=function(B){B.hiF=!0;return B}; sRl=function(){return(Qa||ya)&&g1?g1.mobile:!fF()&&(py("iPod")||py("iPhone")||py("Android")||py("IEMobile"))}; fF=function(){return(Qa||ya)&&g1?!g1.mobile&&(py("iPad")||py("Android")||py("Silk")):py("iPad")||py("Android")&&!py("Mobile")||py("Silk")}; O9=function(B){try{return!!B&&B.location.href!=null&&IFH(B,"foo")}catch(z){return!1}}; Nl=function(B,z){if(B)for(var T in B)Object.prototype.hasOwnProperty.call(B,T)&&z(B[T],T,B)}; Spz=function(){var B=[];Nl(EPz,function(z){B.push(z)}); return B}; B1r=function(B){var z,T;return(T=(z=/https?:\/\/[^\/]+/.exec(B))==null?void 0:z[0])!=null?T:""}; Rvb=function(){var B=zvr("IFRAME"),z={};g.Ks(T1b(),function(T){B.sandbox&&B.sandbox.supports&&B.sandbox.supports(T)&&(z[T]=!0)}); return z}; zvr=function(B,z){z=z===void 0?document:z;return z.createElement(String(B).toLowerCase())}; hvX=function(B){for(var z=B;B&&B!=B.parent;)B=B.parent,O9(B)&&(z=B);return z}; ldP=function(B){B=B||tm();for(var z=new WdK(g.XK.location.href,!1),T=null,R=B.length-1,h=R;h>=0;--h){var W=B[h];!T&&byb.test(W.url)&&(T=W);if(W.url&&!W.T){z=W;break}}h=null;W=B.length&&B[R].url;z.depth!==0&&W&&(h=B[R]);return new YBB(z,h,T)}; tm=function(){var B=g.XK,z=[],T=null;do{var R=B;if(O9(R)){var h=R.location.href;T=R.document&&R.document.referrer||null}else h=T,T=null;z.push(new WdK(h||""));try{B=R.parent}catch(W){B=null}}while(B&&R!==B);R=0;for(B=z.length-1;R<=B;++R)z[R].depth=B-R;R=g.XK;if(R.location&&R.location.ancestorOrigins&&R.location.ancestorOrigins.length===z.length-1)for(B=1;Bz&&(z=T.length);return 3997-z-B.Y.length-1}; eb=function(B,z){this.T=B;this.depth=z}; cvK=function(){function B(l,w){return l==null?w:l} var z=tm(),T=Math.max(z.length-1,0),R=ldP(z);z=R.T;var h=R.U,W=R.Y,b=[];W&&b.push(new eb([W.url,W.T?2:0],B(W.depth,1)));h&&h!=W&&b.push(new eb([h.url,2],0));z.url&&z!=W&&b.push(new eb([z.url,0],B(z.depth,T)));R=g.s9(b,function(l,w){return b.slice(0,b.length-w)}); !z.url||(W||h)&&z!=W||(h=B1r(z.url))&&R.push([new eb([h,1],B(z.depth,T))]);R.push([]);return g.s9(R,function(l){return iyB(T,l)})}; iyB=function(B,z){g.E9(z,function(h){return h.depth>=0}); var T=Sb(z,function(h,W){return Math.max(h,W.depth)},-1),R=grz(T+2); R[0]=B;g.Ks(z,function(h){return R[h.depth+1]=h.T}); return R}; Ldd=function(){var B=B===void 0?cvK():B;return B.map(function(z){return Zk(z)})}; C2z=function(B){var z=!1;z=z===void 0?!1:z;im.google_image_requests||(im.google_image_requests=[]);var T=zvr("IMG",im.document);z&&(T.attributionSrc="");T.src=B;im.google_image_requests.push(T)}; Bl=function(B){var z="l8";if(B.l8&&B.hasOwnProperty(z))return B.l8;var T=new B;B.l8=T;B.hasOwnProperty(z);return T}; zs=function(){this.U=new ehB;this.T=wR()?new ql:new lm}; rvK=function(){Ts();var B=im.document;return!!(B&&B.body&&B.body.getBoundingClientRect&&typeof im.setInterval==="function"&&typeof im.clearInterval==="function"&&typeof im.setTimeout==="function"&&typeof im.clearTimeout==="function")}; o1z=function(){Ts();return Ldd()}; Fdb=function(){}; Ts=function(){var B=Bl(Fdb);if(!B.T){if(!im)throw Error("Context has not been set and window is undefined.");B.T=Bl(zs)}return B.T}; Rr=function(){throw Error("Invalid UTF8");}; Idr=function(B,z){z=String.fromCharCode.apply(null,z);return B==null?z:B+z}; adz=function(B){var z=!1;z=z===void 0?!1:z;if(GRz){if(z&&(dS5?!B.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(B)))throw Error("Found an unpaired surrogate");B=(Avz||(Avz=new TextEncoder)).encode(B)}else{for(var T=0,R=new Uint8Array(3*B.length),h=0;h>6|192;else{if(W>=55296&&W<=57343){if(W<=56319&&h=56320&&b<=57343){W=(W-55296)*1024+ b-56320+65536;R[T++]=W>>18|240;R[T++]=W>>12&63|128;R[T++]=W>>6&63|128;R[T++]=W&63|128;continue}else h--}if(z)throw Error("Found an unpaired surrogate");W=65533}R[T++]=W>>12|224;R[T++]=W>>6&63|128}R[T++]=W&63|128}}B=T===R.length?R:R.subarray(0,T)}return B}; hz=function(B){g.XK.setTimeout(function(){throw B;},0)}; USK=function(B){return Array.prototype.map.call(B,function(z){z=z.toString(16);return z.length>1?z:"0"+z}).join("")}; MzK=function(B){for(var z=[],T=0;T>6|192:((h&64512)==55296&&R+1>18|240,z[T++]=h>>12&63|128):z[T++]=h>>12|224,z[T++]=h>>6&63|128),z[T++]=h&63|128)}return z}; g.bT=function(B,z){z===void 0&&(z=0);VzB();z=QPB[z];for(var T=Array(Math.floor(B.length/3)),R=z[64]||"",h=0,W=0;h>2];b=z[(b&3)<<4|l>>4];l=z[(l&15)<<2|w>>6];w=z[w&63];T[W++]=""+q+b+l+w}q=0;w=R;switch(B.length-h){case 2:q=B[h+1],w=z[(q&15)<<2]||R;case 1:B=B[h],T[W]=""+z[B>>2]+z[(B&3)<<4|q>>4]+w+R}return T.join("")}; g.Yn=function(B,z){if(yvB&&!z)B=g.XK.btoa(B);else{for(var T=[],R=0,h=0;h255&&(T[R++]=W&255,W>>=8);T[R++]=W}B=g.bT(T,z)}return B}; Jvb=function(B){var z=[];g1z(B,function(T){z.push(T)}); return z}; lT=function(B){var z=B.length,T=z*3/4;T%3?T=Math.floor(T):g.IP("=.",B[z-1])&&(T=g.IP("=.",B[z-2])?T-2:T-1);var R=new Uint8Array(T),h=0;g1z(B,function(W){R[h++]=W}); return h!==T?R.subarray(0,h):R}; g1z=function(B,z){function T(w){for(;R>4);b!=64&&(z(W<<4&240|b>>2),l!=64&&z(b<<6&192|l))}}; VzB=function(){if(!wY){wY={};for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],T=0;T<5;T++){var R=B.concat(z[T].split(""));QPB[T]=R;for(var h=0;h=z||(R[B]=T+1,B=Error(),RhY(B,"incident"),hz(B))}}; Fn=function(B,z,T){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(T===void 0?0:T)&&Symbol.for&&B?Symbol.for(B):B!=null?Symbol(B):Symbol():z}; dY=function(B,z){Ir||Gs in B||n1b(B,uyB);B[Gs]|=z}; Az=function(B,z){Ir||Gs in B||n1b(B,uyB);B[Gs]=z}; ar=function(){return typeof BigInt==="function"}; MJ=function(B,z){return z===void 0?B.T!==U5&&!!(2&(B.iK[Gs]|0)):!!(2&z)&&B.T!==U5}; Hyl=function(B,z){if(B!=null)if(typeof B==="string")B=B?new qJ(B,iT):cl();else if(B.constructor!==qJ)if(Kdr&&B!=null&&B instanceof Uint8Array)B=B.length?new qJ(new Uint8Array(B),iT):cl();else{if(!z)throw Error();B=void 0}return B}; Vf=function(B,z){if(typeof z!=="number"||z<0||z>=B.length)throw Error();}; fdP=function(B,z,T){z=z&128?0:-1;var R=B.length,h;if(h=!!R)h=B[R-1],h=h!=null&&typeof h==="object"&&h.constructor===Object;for(var W=R+(h?-1:0),b=0;bz.length)return!1;if(B.lengthh)return!1;if(R>>0;p9=z;$n=(B-z)/4294967296>>>0}; vl=function(B){if(B<0){Pl(0-B);var z=g.d(xn(p9,$n));B=z.next().value;z=z.next().value;p9=B>>>0;$n=z>>>0}else Pl(B)}; kn=function(B,z){var T=z*4294967296+(B>>>0);return Number.isSafeInteger(T)?T:Dt(B,z)}; XhB=function(B,z){var T=z&2147483648;T&&(B=~B+1>>>0,z=~z>>>0,B==0&&(z=z+1>>>0));B=kn(B,z);return typeof B==="number"?T?-B:B:T?"-"+B:B}; Dt=function(B,z){z>>>=0;B>>>=0;if(z<=2097151)var T=""+(4294967296*z+B);else ar()?T=""+(BigInt(z)<>>24|z<<8)&16777215,z=z>>16&65535,B=(B&16777215)+T*6777216+z*6710656,T+=z*8147497,z*=2,B>=1E7&&(T+=B/1E7>>>0,B%=1E7),T>=1E7&&(z+=T/1E7>>>0,T%=1E7),T=z+ZyB(T)+ZyB(B));return T}; ZyB=function(B){B=String(B);return"0000000".slice(B.length)+B}; ev5=function(){var B=p9,z=$n;z&2147483648?ar()?B=""+(BigInt(z|0)<>>0)):(z=g.d(xn(B,z)),B=z.next().value,z=z.next().value,B="-"+Dt(B,z)):B=Dt(B,z);return B}; K9=function(B){if(B.length<16)vl(Number(B));else if(ar())B=BigInt(B),p9=Number(B&BigInt(4294967295))>>>0,$n=Number(B>>BigInt(32)&BigInt(4294967295));else{var z=+(B[0]==="-");$n=p9=0;for(var T=B.length,R=0+z,h=(T-z)%6+z;h<=T;R=h,h+=6)R=Number(B.slice(R,h)),$n*=1E6,p9=p9*1E6+R,p9>=4294967296&&($n+=Math.trunc(p9/4294967296),$n>>>=0,p9>>>=0);z&&(z=g.d(xn(p9,$n)),B=z.next().value,z=z.next().value,p9=B,$n=z)}}; xn=function(B,z){z=~z;B?B=~B+1:z+=1;return[B,z]}; mu=function(B){return Array.prototype.slice.call(B)}; n9=function(B){if(B!=null&&typeof B!=="number")throw Error("Value of float/double field must be a number, found "+typeof B+": "+B);return B}; sPr=function(B){return B.displayName||B.name||"unknown type name"}; uT=function(B){if(B!=null&&typeof B!=="boolean")throw Error("Expected boolean but got "+Sl(B)+": "+B);return B}; f9=function(B){switch(typeof B){case "bigint":return!0;case "number":return Hl(B);case "string":return E1z.test(B);default:return!1}}; SBr=function(B){if(typeof B!=="number")throw rY("int32");if(!Hl(B))throw rY("int32");return B|0}; O5=function(B){return B==null?B:SBr(B)}; NJ=function(B){if(B==null)return B;if(typeof B==="string"&&B)B=+B;else if(typeof B!=="number")return;return Hl(B)?B|0:void 0}; tz=function(B){if(B==null)return B;if(typeof B==="string"&&B)B=+B;else if(typeof B!=="number")return;return Hl(B)?B>>>0:void 0}; TOH=function(B){var z=0;z=z===void 0?0:z;if(!f9(B))throw rY("int64");var T=typeof B;switch(z){case 512:switch(T){case "string":return jV(B);case "bigint":return String(Xn(64,B));default:return Zt(B)}case 1024:switch(T){case "string":return BOX(B);case "bigint":return Jz(Xn(64,B));default:return zol(B)}case 0:switch(T){case "string":return jV(B);case "bigint":return Jz(Xn(64,B));default:return eV(B)}default:return sB(z,"Unknown format requested type for int64")}}; s5=function(B){return B==null?B:TOH(B)}; RoB=function(B){if(B[0]==="-")return!1;var z=B.length;return z<20?!0:z===20&&Number(B.substring(0,6))<184467}; hoP=function(B){var z=B.length;return B[0]==="-"?z<20?!0:z===20&&Number(B.substring(0,7))>-922337:z<19?!0:z===19&&Number(B.substring(0,6))<922337}; WMb=function(B){if(B<0){vl(B);var z=Dt(p9,$n);B=Number(z);return E5(B)?B:z}z=String(B);if(RoB(z))return z;vl(B);return kn(p9,$n)}; brY=function(B){if(hoP(B))return B;K9(B);return ev5()}; eV=function(B){f9(B);B=SV(B);E5(B)||(vl(B),B=XhB(p9,$n));return B}; Zt=function(B){f9(B);B=SV(B);if(E5(B))B=String(B);else{var z=String(B);hoP(z)?B=z:(vl(B),B=ev5())}return B}; jV=function(B){f9(B);var z=SV(Number(B));if(E5(z))return String(z);z=B.indexOf(".");z!==-1&&(B=B.substring(0,z));return brY(B)}; BOX=function(B){var z=SV(Number(B));if(E5(z))return Jz(z);z=B.indexOf(".");z!==-1&&(B=B.substring(0,z));return ar()?Jz(Xn(64,BigInt(B))):Jz(brY(B))}; zol=function(B){return E5(B)?Jz(eV(B)):Jz(Zt(B))}; YSP=function(B){if(B==null)return B;var z=typeof B;if(z==="bigint")return String(Xn(64,B));if(f9(B)){if(z==="string")return jV(B);if(z==="number")return eV(B)}}; wYb=function(B){if(B==null)return B;var z=typeof B;if(z==="bigint")return String(lVH(64,B));if(f9(B)){if(z==="string")return f9(B),z=SV(Number(B)),E5(z)&&z>=0?B=String(z):(z=B.indexOf("."),z!==-1&&(B=B.substring(0,z)),RoB(B)||(K9(B),B=Dt(p9,$n))),B;if(z==="number")return f9(B),B=SV(B),B>=0&&E5(B)?B:WMb(B)}}; qSH=function(B){if(B==null||typeof B=="string"||B instanceof qJ)return B}; irl=function(B){if(typeof B!=="string")throw Error();return B}; BD=function(B){if(B!=null&&typeof B!=="string")throw Error();return B}; z0=function(B){return B==null||typeof B==="string"?B:void 0}; T0=function(B,z){if(!(B instanceof z))throw Error("Expected instanceof "+sPr(z)+" but got "+(B&&sPr(B.constructor)));return B}; c2l=function(B,z,T){if(B!=null&&B[RF]===h9)return B;if(Array.isArray(B)){var R=B[Gs]|0;T=R|T&32|T&2;T!==R&&Az(B,T);return new z(B)}}; WD=function(B){return B}; YW=function(B){var z=wF(b$);return z?B[z]:void 0}; l$=function(){}; wq=function(B,z){for(var T in B)!isNaN(T)&&z(B,+T,B[T])}; LMH=function(B){var z=new l$;wq(B,function(T,R,h){z[R]=mu(h)}); z.Ae=B.Ae;return z}; cD=function(B,z,T,R){var h=R!==void 0;R=!!R;var W=wF(b$),b;!h&&Ir&&W&&(b=B[W])&&wq(b,Chz);W=[];var l=B.length;b=4294967295;var w=!1,q=!!(z&64),c=q?z&128?0:-1:void 0;if(!(z&1)){var L=l&&B[l-1];L!=null&&typeof L==="object"&&L.constructor===Object?(l--,b=l):L=void 0;if(q&&!(z&128)&&!h){w=!0;var C;b=((C=i$)!=null?C:WD)(b-c,c,B,L)+c}}z=void 0;for(C=0;C=b){var F=C-c,A=void 0;((A=z)!=null?A:z={})[F]=r}else W[C]=r}if(L)for(var a in L)l=L[a],l!=null&& (l=T(l,R))!=null&&(C=+a,r=void 0,q&&!Number.isNaN(C)&&(r=C+c)0?void 0:B===0?dud||(dud=[0,void 0]):[-B,void 0];case "string":return[0,B];case "object":return B}}; FL=function(B,z,T){return B=oF(B,z[0],z[1],T?1:2)}; oF=function(B,z,T,R){R=R===void 0?0:R;if(B==null){var h=32;T?(B=[T],h|=128):B=[];z&&(h=h&-8380417|(z&1023)<<13)}else{if(!Array.isArray(B))throw Error("narr");h=B[Gs]|0;2048&h&&!(2&h)&&aVY();if(h&256)throw Error("farr");if(h&64)return R!==0||h&2048||Az(B,h|2048),B;if(T&&(h|=128,T!==B[0]))throw Error("mid");a:{T=B;h|=64;var W=T.length;if(W){var b=W-1,l=T[b];if(l!=null&&typeof l==="object"&&l.constructor===Object){z=h&128?0:-1;b-=z;if(b>=1024)throw Error("pvtlmt");for(var w in l)W=+w,W1024)throw Error("spvt");h=h&-8380417|(w&1023)<<13}}}h|=64;R===0&&(h|=2048);Az(B,h);return B}; aVY=function(){or(UuK,5)}; Mhz=function(B,z){if(typeof B!=="object")return B;if(Array.isArray(B)){var T=B[Gs]|0;B.length===0&&T&1?B=void 0:T&2||(!z||4096&T||16&T?B=IF(B,T,!1,z&&!(T&16)):(dY(B,34),T&4&&Object.freeze(B)));return B}if(B!=null&&B[RF]===h9)return z=B.iK,T=z[Gs]|0,MJ(B,T)?B:IF(z,T);if(B instanceof qJ)return B}; IF=function(B,z,T,R){R!=null||(R=!!(34&z));B=cD(B,z,Mhz,R);R=32;T&&(R|=2);z=z&8380609|R;Az(B,z);return B}; Vhl=function(B){var z=B.iK,T=z[Gs]|0;return MJ(B,T)?new B.constructor(IF(z,T,!1)):B}; G0=function(B){if(B.T!==U5)return!1;var z=B.iK;z=IF(z,z[Gs]|0);dY(z,2048);B.iK=z;B.T=void 0;B.Y=void 0;return!0}; dq=function(B){if(!G0(B)&&MJ(B,B.iK[Gs]|0))throw Error();}; aF=function(B,z,T,R,h){Object.isExtensible(B);z=A9(B.iK,z,T,h);if(z!==null||R&&B.Y!==U5)return z}; A9=function(B,z,T,R){if(z===-1)return null;var h=z+(T?0:-1),W=B.length-1;if(!(W<1+(T?0:-1))){if(h>=W){var b=B[W];if(b!=null&&typeof b==="object"&&b.constructor===Object){T=b[z];var l=!0}else if(h===W)T=b;else return}else T=B[h];if(R&&T!=null){R=R(T);if(R==null)return R;if(!Object.is(R,T))return l?b[z]=R:B[h]=R,R}return T}}; M1=function(B,z,T,R){dq(B);var h=B.iK;UM(h,h[Gs]|0,z,T,R);return B}; UM=function(B,z,T,R,h){var W=T+(h?0:-1),b=B.length-1;if(b>=1+(h?0:-1)&&W>=b){var l=B[b];if(l!=null&&typeof l==="object"&&l.constructor===Object)return l[T]=R,z}if(W<=b)return B[W]=R,z;if(R!==void 0){var w;b=((w=z)!=null?w:z=B[Gs]|0)>>13&1023||536870912;T>=b?R!=null&&(W={},B[b+(h?0:-1)]=(W[T]=R,W)):B[W]=R}return z}; J9=function(B,z,T,R,h){var W=B.iK,b=W[Gs]|0;R=MJ(B,b)?1:R;h=!!h||R===3;R===2&&G0(B)&&(W=B.iK,b=W[Gs]|0);B=Vc(W,z);var l=B===Qc?7:B[Gs]|0,w=yc(l,b);var q=4&w?!1:!0;if(q){4&w&&(B=mu(B),l=0,w=gq(w,b),b=UM(W,b,z,B));for(var c=0,L=0;c "+B)}; Yw=function(B,z,T){this.buffer=B;if(T&&!z)throw Error();this.T=z}; lM=function(B,z){if(typeof B==="string")return new Yw(v1B(B),z);if(Array.isArray(B))return new Yw(new Uint8Array(B),z);if(B.constructor===Uint8Array)return new Yw(B,!1);if(B.constructor===ArrayBuffer)return B=new Uint8Array(B),new Yw(B,!1);if(B.constructor===qJ)return z=L9(B)||new Uint8Array(0),new Yw(z,!0,B);if(B instanceof Uint8Array)return B=B.constructor===Uint8Array?B:new Uint8Array(B.buffer,B.byteOffset,B.byteLength),new Yw(B,!1);throw Error();}; KMH=function(B,z,T,R){this.U=null;this.V=!1;this.T=this.Y=this.W=0;this.init(B,z,T,R)}; qa=function(B){var z=0,T=0,R=0,h=B.U,W=B.T;do{var b=h[W++];z|=(b&127)<32&&(T|=(b&127)>>4);for(R=3;R<32&&b&128;R+=7)b=h[W++],T|=(b&127)<>>0,T>>>0);throw bM();}; wg=function(B,z){B.T=z;if(z>B.Y)throw kNz(B.Y,z);}; iM=function(B){var z=B.U,T=B.T,R=z[T++],h=R&127;if(R&128&&(R=z[T++],h|=(R&127)<<7,R&128&&(R=z[T++],h|=(R&127)<<14,R&128&&(R=z[T++],h|=(R&127)<<21,R&128&&(R=z[T++],h|=R<<28,R&128&&z[T++]&128&&z[T++]&128&&z[T++]&128&&z[T++]&128&&z[T++]&128)))))throw bM();wg(B,T);return h}; cW=function(B){var z=B.U,T=B.T,R=z[T+0],h=z[T+1],W=z[T+2];z=z[T+3];wg(B,B.T+4);return(R<<0|h<<8|W<<16|z<<24)>>>0}; Lg=function(B){var z=cW(B);B=cW(B);return kn(z,B)}; Cg=function(B){var z=cW(B),T=cW(B);B=(T>>31)*2+1;var R=T>>>20&2047;z=4294967296*(T&1048575)+z;return R==2047?z?NaN:B*Infinity:R==0?B*4.9E-324*z:B*Math.pow(2,R-1075)*(z+4503599627370496)}; rg=function(B){for(var z=0,T=B.T,R=T+10,h=B.U;TB.Y)throw kNz(z,B.Y-T);B.T=R;return T}; u8P=function(B,z){if(z==0)return cl();var T=muz(B,z);B.o3&&B.V?T=B.U.subarray(T,T+z):(B=B.U,z=T+z,T=T===z?new Uint8Array(0):nIl?B.slice(T,z):new Uint8Array(B.subarray(T,z)));return T.length==0?cl():new qJ(T,iT)}; Fp=function(B,z,T,R){if(oa.length){var h=oa.pop();h.init(B,z,T,R);B=h}else B=new KMH(B,z,T,R);this.T=B;this.Y=this.T.T;this.U=this.W=-1;Hrz(this,R)}; Hrz=function(B,z){z=z===void 0?{}:z;B.Pj=z.Pj===void 0?!1:z.Pj}; fVY=function(B,z,T,R){if(Ia.length){var h=Ia.pop();Hrz(h,R);h.T.init(B,z,T,R);return h}return new Fp(B,z,T,R)}; Ord=function(B){var z=B.T;if(z.T==z.Y)return!1;B.Y=B.T.T;var T=iM(B.T)>>>0;z=T>>>3;T&=7;if(!(T>=0&&T<=5))throw DuK(T,B.Y);if(z<1)throw Error("Invalid field number: "+z+" (at position "+B.Y+")");B.W=z;B.U=T;return!0}; dg=function(B){switch(B.U){case 0:B.U!=0?dg(B):rg(B.T);break;case 1:B=B.T;wg(B,B.T+8);break;case 2:if(B.U!=2)dg(B);else{var z=iM(B.T)>>>0;B=B.T;wg(B,B.T+z)}break;case 5:B=B.T;wg(B,B.T+4);break;case 3:z=B.W;do{if(!Ord(B))throw Error("Unmatched start-group tag: stream EOF");if(B.U==4){if(B.W!=z)throw Error("Unmatched end-group tag");break}dg(B)}while(1);break;default:throw DuK(B.U,B.Y);}}; A4=function(B,z,T){var R=B.T.Y,h=iM(B.T)>>>0,W=B.T.T+h,b=W-R;b<=0&&(B.T.Y=W,T(z,B,void 0,void 0,void 0),b=W-B.T.T);if(b)throw Error("Message parsing ended unexpectedly. Expected to read "+(h+" bytes, instead read "+(h-b)+" bytes, either the data ended unexpectedly or the message misreported its own length"));B.T.T=W;B.T.Y=R}; Ma=function(B){var z=iM(B.T)>>>0;B=B.T;var T=muz(B,z);B=B.U;if(NOr){var R=B,h;(h=aa)||(h=aa=new TextDecoder("utf-8",{fatal:!0}));z=T+z;R=T===0&&z===R.length?R:R.subarray(T,z);try{var W=h.decode(R)}catch(q){if(UO===void 0){try{h.decode(new Uint8Array([128]))}catch(c){}try{h.decode(new Uint8Array([97])),UO=!0}catch(c){UO=!1}}!UO&&(aa=void 0);throw q;}}else{W=T;z=W+z;T=[];for(var b=null,l,w;W=z?Rr():(w=B[W++],l<194||(w&192)!==128?(W--,Rr()):T.push((l&31)<<6|w&63)): l<240?W>=z-1?Rr():(w=B[W++],(w&192)!==128||l===224&&w<160||l===237&&w>=160||((h=B[W++])&192)!==128?(W--,Rr()):T.push((l&15)<<12|(w&63)<<6|h&63)):l<=244?W>=z-2?Rr():(w=B[W++],(w&192)!==128||(l<<28)+(w-144)>>30!==0||((h=B[W++])&192)!==128||((R=B[W++])&192)!==128?(W--,Rr()):(l=(l&7)<<18|(w&63)<<12|(h&63)<<6|R&63,l-=65536,T.push((l>>10&1023)+55296,(l&1023)+56320))):Rr(),T.length>=8192&&(b=Idr(b,T),T.length=0);W=Idr(b,T)}return W}; thY=function(B){var z=iM(B.T)>>>0;return u8P(B.T,z)}; VG=function(B,z,T){this.iK=oF(B,z,T)}; jAB=function(B,z){if(z==null||z=="")return new B;z=JSON.parse(z);if(!Array.isArray(z))throw Error("dnarr");dY(z,32);return new B(z)}; QG=function(B,z){this.U=B>>>0;this.T=z>>>0}; ZrB=function(B){if(!B)return XYK||(XYK=new QG(0,0));if(!/^\d+$/.test(B))return null;K9(B);return new QG(p9,$n)}; yG=function(B,z){this.U=B>>>0;this.T=z>>>0}; sAz=function(B){if(!B)return eoz||(eoz=new yG(0,0));if(!/^-?\d+$/.test(B))return null;K9(B);return new yG(p9,$n)}; gg=function(){this.T=[]}; J4=function(B,z,T){for(;T>0||z>127;)B.T.push(z&127|128),z=(z>>>7|T<<25)>>>0,T>>>=7;B.T.push(z)}; pg=function(B,z){for(;z>127;)B.T.push(z&127|128),z>>>=7;B.T.push(z)}; EIH=function(B,z){if(z>=0)pg(B,z);else{for(var T=0;T<9;T++)B.T.push(z&127|128),z>>=7;B.T.push(1)}}; $w=function(B,z){B.T.push(z>>>0&255);B.T.push(z>>>8&255);B.T.push(z>>>16&255);B.T.push(z>>>24&255)}; SSK=function(){this.Y=[];this.U=0;this.T=new gg}; PW=function(B,z){z.length!==0&&(B.Y.push(z),B.U+=z.length)}; BRB=function(B,z){xw(B,z,2);z=B.T.end();PW(B,z);z.push(B.U);return z}; z7l=function(B,z){var T=z.pop();for(T=B.U+B.T.length()-T;T>127;)z.push(T&127|128),T>>>=7,B.U++;z.push(T);B.U++}; xw=function(B,z,T){pg(B.T,z*8+T)}; TR5=function(B,z,T){if(T!=null){switch(typeof T){case "string":ZrB(T)}xw(B,z,1);switch(typeof T){case "number":B=B.T;Pl(T);$w(B,p9);$w(B,$n);break;case "bigint":T=BigInt.asUintN(64,T);T=new QG(Number(T&BigInt(4294967295)),Number(T>>BigInt(32)));B=B.T;z=T.T;$w(B,T.U);$w(B,z);break;default:T=ZrB(T),B=B.T,z=T.T,$w(B,T.U),$w(B,z)}}}; vW=function(B,z,T){xw(B,z,2);pg(B.T,T.length);PW(B,B.T.end());PW(B,T)}; Dp=function(){function B(){throw Error();} Object.setPrototypeOf(B,B.prototype);return B}; Kg=function(B,z,T){this.xl=B;this.P5=z;B=wF(kw);this.T=!!B&&T===B||!1}; m9=function(B,z){var T=T===void 0?kw:T;return new Kg(B,z,T)}; h7r=function(B,z,T,R,h){z=R7l(z,R);z!=null&&(T=BRB(B,T),h(z,B),z7l(B,T))}; HW=function(B,z,T,R){var h=R[B];if(h)return h;h={};h.lU=R;h.uX=A2X(R[0]);var W=R[1],b=1;W&&W.constructor===Object&&(h.extensions=W,W=R[++b],typeof W==="function"&&(h.pu=!0,ng!=null||(ng=W),uM!=null||(uM=R[b+1]),W=R[b+=2]));for(var l={};W&&Array.isArray(W)&&W.length&&typeof W[0]==="number"&&W[0]>0;){for(var w=0;w>BigInt(32)));J4(B.T,T.U,T.T);break;default:T=sAz(z),J4(B.T,T.U,T.T)}}}; YA=function(B,z,T){z=NJ(z);z!=null&&z!=null&&(xw(B,T,0),EIH(B.T,z))}; Fkz=function(B,z,T){z=z==null||typeof z==="boolean"?z:typeof z==="number"?!!z:void 0;z!=null&&(xw(B,T,0),B.T.T.push(z?1:0))}; Ikr=function(B,z,T){z=z0(z);z!=null&&vW(B,T,adz(z))}; GJB=function(B,z,T,R,h){z=R7l(z,R);z!=null&&(T=BRB(B,T),h(z,B),z7l(B,T))}; Am5=function(){var B=l3;this.T=dlb;this.isRepeated=0;this.U=N1;this.defaultValue=void 0;this.Y=B.messageId!=null?Qf:void 0}; akX=function(B){return function(){var z=new SSK;Lkz(this.iK,z,HW(EO,sO,SU,B));PW(z,z.T.end());for(var T=new Uint8Array(z.U),R=z.Y,h=R.length,W=0,b=0;b-1)return z.apply(null,g.Q(T));try{return B.T=B.Y.T.now(),z.apply(null,g.Q(T))}finally{B.W+=B.Y.T.now()-B.T,B.T=-1,B.U+=1}}}; Mbl=function(B,z){this.U=B;this.Y=z;this.T=new Ulz(B)}; VbK=function(){this.T={}}; ymB=function(){var B=cy().flags,z=QKd;B=B.T[z.key];if(z.valueType==="proto"){try{var T=JSON.parse(B);if(Array.isArray(T))return T}catch(R){}return z.defaultValue}return typeof B===typeof z.defaultValue?B:z.defaultValue}; $lz=function(){this.Y=void 0;this.U=this.X=0;this.V=-1;this.Xu=new w1;qS(this.Xu,"mv",g6l).T=!0;qS(this.Xu,"omid",Cy);qS(this.Xu,"epoh",Cy).T=!0;qS(this.Xu,"epph",Cy).T=!0;qS(this.Xu,"umt",Cy).T=!0;qS(this.Xu,"phel",Cy).T=!0;qS(this.Xu,"phell",Cy).T=!0;qS(this.Xu,"oseid",Jmd).T=!0;var B=this.Xu;B.T.sloi||(B.T.sloi=new Y1);B.T.sloi.T=!0;qS(this.Xu,"mm",LJ);qS(this.Xu,"ovms",ptr).T=!0;qS(this.Xu,"xdi",Cy).T=!0;qS(this.Xu,"amp",Cy).T=!0;qS(this.Xu,"prf",Cy).T=!0;qS(this.Xu,"gtx",Cy).T=!0;qS(this.Xu, "mvp_lv",Cy).T=!0;qS(this.Xu,"ssmol",Cy).T=!0;qS(this.Xu,"fmd",Cy).T=!0;qS(this.Xu,"gen204simple",Cy);this.T=new Mbl(Ts(),this.Xu);this.W=!1;this.flags=new VbK}; cy=function(){return Bl($lz)}; Pml=function(B,z,T,R){if(Math.random()<(R||B.T))try{if(T instanceof jb)var h=T;else h=new jb,Nl(T,function(b,l){var w=h,q=w.W++;b=X$(l,b);w.T.push(q);w.U[q]=b}); var W=h.Pu(B.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+z+"&");W&&(Ts(),C2z(W))}catch(b){}}; xlY=function(B,z,T){T=T===void 0?{}:T;this.error=B;this.meta=T;this.context=z.context;this.msg=z.message||"";this.id=z.id||"jserror"}; v6B=function(){var B=B===void 0?g.XK:B;return(B=B.performance)&&B.now&&B.timing?Math.floor(B.now()+B.timing.navigationStart):g.YP()}; Dll=function(){var B=B===void 0?g.XK:B;return(B=B.performance)&&B.now?B.now():null}; kJB=function(B,z,T){this.label=B;this.type=z;this.value=T;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; ra=function(){var B=window;this.events=[];this.U=B||g.XK;var z=null;B&&(B.google_js_reporting_queue=B.google_js_reporting_queue||[],this.events=B.google_js_reporting_queue,z=B.google_measure_js_timing);this.T=CJ()||(z!=null?z:Math.random()<1)}; KkK=function(B){B&&ot&&CJ()&&(ot.clearMarks("goog_"+B.label+"_"+B.uniqueId+"_start"),ot.clearMarks("goog_"+B.label+"_"+B.uniqueId+"_end"))}; Fc=function(B,z,T,R,h,W,b){var l="";B&&(l+=B+":");T&&(l+="//",z&&(l+=z+"@"),l+=T,R&&(l+=":"+R));h&&(l+=h);W&&(l+="?"+W);b&&(l+="#"+b);return l}; g.It=function(B){return B.match(mlB)}; n6K=function(B){return B?decodeURI(B):B}; g.GK=function(B){return n6K(g.It(B)[3]||null)}; da=function(B){return n6K(g.It(B)[5]||null)}; g.u$X=function(B){B=g.It(B);return Fc(B[1],B[2],B[3],B[4])}; Ap=function(B){B=g.It(B);return Fc(null,null,null,null,B[5],B[6],B[7])}; HFb=function(B){var z=B.indexOf("#");return z<0?B:B.slice(0,z)}; at=function(B,z){if(B){B=B.split("&");for(var T=0;T=0){var W=B[T].substring(0,R);h=B[T].substring(R+1)}else W=B[T];z(W,h?rO(h):"")}}}; Ud=function(B,z){if(!z)return B;var T=B.indexOf("#");T<0&&(T=B.length);var R=B.indexOf("?");if(R<0||R>T){R=T;var h=""}else h=B.substring(R+1,T);B=[B.slice(0,R),h,B.slice(T)];T=B[1];B[1]=z?T?T+"&"+z:z:T;return B[0]+(B[1]?"?"+B[1]:"")+B[2]}; Mi=function(B,z,T){if(Array.isArray(z))for(var R=0;R=0&&zT)h=T;R+=z.length+1;return rO(B.slice(R,h!==-1?h:0))}; Py=function(B,z){for(var T=B.search(tbb),R=0,h,W=[];(h=NRz(B,R,z,T))>=0;)W.push(B.substring(R,h)),R=Math.min(B.indexOf("&",h)+1||T,T);W.push(B.slice(R));return W.join("").replace(jKz,"$1")}; Xtl=function(B,z,T){return yn(Py(B,z),z,T)}; ZF5=function(){var B=xA;this.T=vy;this.iS="jserror";this.Ze=!0;this.Fb=null;this.U=this.M8;this.Zx=B===void 0?null:B}; e7P=function(B,z,T){var R=DG;return i3(cy().T.T,function(){try{if(R.Zx&&R.Zx.T){var h=R.Zx.start(B.toString(),3);var W=z();R.Zx.end(h)}else W=z()}catch(l){var b=R.Ze;try{KkK(h),b=R.U(B,new kA(KJ(l)),void 0,T)}catch(w){R.M8(217,w)}if(!b)throw l;}return W})()}; mw=function(B,z,T,R){return i3(cy().T.T,function(){var h=g.K5.apply(0,arguments);return e7P(B,function(){return z.apply(T,h)},R)})}; KJ=function(B){var z=B.toString();B.name&&z.indexOf(B.name)==-1&&(z+=": "+B.name);B.message&&z.indexOf(B.message)==-1&&(z+=": "+B.message);if(B.stack)a:{B=B.stack;var T=z;try{B.indexOf(T)==-1&&(B=T+"\n"+B);for(var R;B!=R;)R=B,B=B.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");z=B.replace(/\n */g,"\n");break a}catch(h){z=T;break a}z=void 0}return z}; kA=function(B){xlY.call(this,Error(B),{message:B})}; sKK=function(){im&&typeof im.google_measure_js_timing!="undefined"&&(im.google_measure_js_timing||xA.disable())}; E6K=function(B){DG.Fb=function(z){g.Ks(B,function(T){T(z)})}}; S9P=function(B,z){return e7P(B,z)}; nJ=function(B,z){return mw(B,z)}; u3=function(B,z,T,R){DG.M8(B,z,T,R)}; Hy=function(){return Date.now()-BYB}; zud=function(){var B=cy().Y,z=fJ>=0?Hy()-fJ:-1,T=Od?Hy()-Ni:-1,R=tp>=0?Hy()-tp:-1;if(B==947190542)return 100;if(B==79463069)return 200;B=[2E3,4E3];var h=[250,500,1E3];u3(637,Error(),.001);var W=z;T!=-1&&T1500&&R<4E3?500:b}; Xc=function(B,z,T){var R=new F$(0,0,0,0);this.time=B;this.volume=null;this.Y=z;this.T=R;this.U=T}; ZG=function(B,z,T,R,h,W,b,l){this.W=B;this.L=z;this.Y=T;this.X=R;this.T=h;this.V=W;this.U=b;this.J=l}; Ru5=function(B){var z=B!==B.top,T=B.top===hvX(B),R=-1,h=0;if(z&&T&&B.top.mraid){R=3;var W=B.top.mraid}else R=(W=B.mraid)?z?T?2:1:0:-1;W&&(W.IS_GMA_SDK||(h=2),$BK(TYK,function(b){return typeof W[b]==="function"})||(h=1)); return{x9:W,compatibility:h,xQE:R}}; huH=function(){var B=window.document;return B&&typeof B.elementFromPoint==="function"}; Wub=function(B,z,T){if(B&&z!==null&&z!=z.top){if(!z.top)return new g.PY(-12245933,-12245933);z=z.top}try{return(T===void 0?0:T)?(new g.PY(z.innerWidth,z.innerHeight)).round():xgb(z||window).round()}catch(R){return new g.PY(-12245933,-12245933)}}; ea=function(B,z,T){try{if(B){if(!z.top)return new F$(-12245933,-12245933,-12245933,-12245933);z=z.top}var R=Wub(B,z,T),h=R.height,W=R.width;if(W===-12245933)return new F$(W,W,W,W);var b=uh(z.document);var l=Dgz(b.T);var w=l.x,q=l.y;return new F$(q,w+W,q+h,w)}catch(c){return new F$(-12245933,-12245933,-12245933,-12245933)}}; sd=function(B,z){z=Math.pow(10,z);return Math.floor(B*z)/z}; b9r=function(B){return new F$(B.top,B.right,B.bottom,B.left)}; Y5b=function(B){var z=B.top||0,T=B.left||0;return new F$(z,T+(B.width||0),z+(B.height||0),T)}; Ed=function(B){return B!=null&&B>=0&&B<=1}; ltP=function(){var B=g.Va();return B?Sa("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(z){return GR(B,z)})||GR(B,"OMI/")&&!GR(B,"XiaoMi/")?!0:GR(B,"Presto")&&GR(B,"Linux")&&!GR(B,"X11")&&!GR(B,"Android")&&!GR(B,"Mobi"):!1}; wlY=function(){this.Y=!O9(im.top);this.isMobileDevice=fF()||sRl();var B=tm();this.domain=B.length>0&&B[B.length-1]!=null&&B[B.length-1].url!=null?g.GK(B[B.length-1].url)||"":"";this.T=new F$(0,0,0,0);this.W=new g.PY(0,0);this.V=new g.PY(0,0);this.L=new F$(0,0,0,0);this.frameOffset=new g.pr(0,0);this.X=0;this.J=!1;this.U=!(!im||!Ru5(im).x9);this.update(im)}; l0K=function(B,z){z&&z.screen&&(B.W=new g.PY(z.screen.width,z.screen.height))}; wDB=function(B,z){a:{var T=B.T?new g.PY(IK(B.T),B.T.getHeight()):new g.PY(0,0);z=z===void 0?im:z;z!==null&&z!=z.top&&(z=z.top);var R=0,h=0;try{var W=z.document,b=W.body,l=W.documentElement;if(W.compatMode=="CSS1Compat"&&l.scrollHeight)R=l.scrollHeight!=T.height?l.scrollHeight:l.offsetHeight,h=l.scrollWidth!=T.width?l.scrollWidth:l.offsetWidth;else{var w=l.scrollHeight,q=l.scrollWidth,c=l.offsetHeight,L=l.offsetWidth;l.clientHeight!=c&&(w=b.scrollHeight,q=b.scrollWidth,c=b.offsetHeight,L=b.offsetWidth); w>T.height?w>c?(R=w,h=q):(R=c,h=L):w0||B.J)return!0;B=Ts().U.isVisible();var z=um(zX)===0;return B||z}; B6=function(){return Bl(wlY)}; R3=function(B){this.Y=B;this.U=0;this.T=null}; hw=function(B,z,T){this.Y=B;this.cD=T===void 0?"na":T;this.V=[];this.isInitialized=!1;this.W=new Xc(-1,!0,this);this.T=this;this.J=z;this.TZ=this.N=!1;this.XE="uk";this.RK=!1;this.X=!0}; W6=function(B,z){g.F5(B.V,z)||(B.V.push(z),z.iH(B.T),z.kD(B.W),z.vk()&&(B.N=!0))}; qMY=function(B){B=B.T;B.HK();B.t8();var z=B6();z.L=ea(!1,B.Y,z.isMobileDevice);wDB(B6(),B.Y);B.W.T=B.s9()}; ieB=function(B){B.N=B.V.length?Sa(B.V,function(z){return z.vk()}):!1}; c9Y=function(B){var z=g.Mg(B.V);g.Ks(z,function(T){T.kD(B.W)})}; bO=function(B){var z=g.Mg(B.V);g.Ks(z,function(T){T.iH(B.T)}); B.T!=B||c9Y(B)}; Y3=function(B,z,T,R){this.element=B;this.T=new F$(0,0,0,0);this.Y=null;this.X=new F$(0,0,0,0);this.U=z;this.Xu=T;this.RK=R;this.WD=!1;this.timestamp=-1;this.N=new ZG(z.W,this.element,this.T,new F$(0,0,0,0),0,0,Hy(),0);this.V=void 0}; LbH=function(B,z){return B.V?new F$(Math.max(z.top+B.V.top,z.top),Math.min(z.left+B.V.right,z.right),Math.min(z.top+B.V.bottom,z.bottom),Math.max(z.left+B.V.left,z.left)):z.clone()}; lO=function(B){this.V=!1;this.T=B;this.W=function(){}}; C$H=function(B,z,T){this.Y=T===void 0?0:T;this.U=B;this.T=z==null?"":z}; r9B=function(B){switch(Math.trunc(B.Y)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; oWr=function(B,z){return B.Yz.Y?!1:B.Uz.U?!1:typeof B.Ttypeof z.T?!1:B.T0?R[T]-R[T-1]:R[T]})}; Aw=function(){this.U=new rl;this.cD=this.lO=0;this.Kf=new Cq;this.UE=this.L=-1;this.eI=1E3;this.EE=new rl([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.XE=this.WD=-1}; a3=function(B,z){return QFH(B.U,z===void 0?!0:z)}; UT=function(B,z,T,R){var h=h===void 0?!1:h;T=mw(R,T);nF(B,z,T,{capture:h})}; VX=function(B,z){z=M0(z);return z===0?0:M0(B)/z}; M0=function(B){return Math.max(B.bottom-B.top,0)*Math.max(B.right-B.left,0)}; J9P=function(B,z){if(!B||!z)return!1;for(var T=0;B!==null&&T++<100;){if(B===z)return!0;try{if(B=B.parentElement||B){var R=nr(B),h=R&&ZV(R),W=h&&h.frameElement;W&&(B=W)}}catch(b){break}}return!1}; pDz=function(B,z,T){if(!B||!z)return!1;z=dR(B.clone(),-z.left,-z.top);B=(z.left+z.right)/2;z=(z.top+z.bottom)/2;O9(window.top)&&window.top&&window.top.document&&(window=window.top);if(!huH())return!1;B=window.document.elementFromPoint(B,z);if(!B)return!1;z=(z=(z=nr(T))&&z.defaultView&&z.defaultView.frameElement)&&J9P(z,B);var R=B===T;B=!R&&B&&bm(B,function(h){return h===T}); return!(z||R||B)}; $1z=function(B,z,T,R){return B6().Y?!1:IK(B)<=0||B.getHeight()<=0?!0:T&&R?S9P(208,function(){return pDz(B,z,T)}):!1}; yX=function(B,z,T){g.K.call(this);this.position=P$z.clone();this.yY=this.Rk();this.HW=-2;this.timeCreated=Date.now();this.mp=-1;this.mK=z;this.bQ=null;this.XN=!1;this.vY=null;this.opacity=-1;this.requestSource=T;this.hkd=!1;this.Ks=function(){}; this.dh=function(){}; this.DA=new nPl;this.DA.Dj=B;this.DA.T=B;this.U_=!1;this.l2={wS:null,ED:null};this.k8=!0;this.yw=null;this.RP=this.N0=!1;cy().X++;this.Xl=this.VM();this.qq=-1;this.Z4=null;this.hasCompleted=this.Cy=!1;this.Xu=new w1;nrz(this.Xu);x1l(this);this.requestSource==1?i2(this.Xu,"od",1):i2(this.Xu,"od",0)}; x1l=function(B){B=B.DA.Dj;var z;if(z=B&&B.getAttribute)z=/-[a-z]/.test("googleAvInapp")?!1:vWz&&B.dataset?"googleAvInapp"in B.dataset:B.hasAttribute?B.hasAttribute("data-"+LKl()):!!B.getAttribute("data-"+LKl());z&&(B6().U=!0)}; gl=function(B,z){z!=B.RP&&(B.RP=z,B=B6(),z?B.X++:B.X>0&&B.X--)}; D15=function(B,z){if(B.Z4){if(z.getName()===B.Z4.getName())return;B.Z4.dispose();B.Z4=null}z=z.create(B.DA.T,B.Xu,B.vk());if(z=z!=null&&z.observe()?z:null)B.Z4=z}; k0z=function(B,z,T){if(!B.bQ||B.mK==-1||z.U===-1||B.bQ.U===-1)return 0;B=z.U-B.bQ.U;return B>T?0:B}; KbH=function(B,z,T){if(B.Z4){B.Z4.Fy();var R=B.Z4.N,h=R.W,W=h.T;if(R.X!=null){var b=R.Y;B.vY=new g.pr(b.left-W.left,b.top-W.top)}W=B.KM()?Math.max(R.T,R.V):R.T;b={};h.volume!==null&&(b.volume=h.volume);h=B.LN(R);B.bQ=R;B.rF(W,z,T,!1,b,h,R.J)}}; m1l=function(B){if(B.XN&&B.yw){var z=ch(B.Xu,"od")==1,T=B6().T,R=B.yw,h=B.Z4?B.Z4.getName():"ns",W=B.vY,b=new g.PY(IK(T),T.getHeight());T=B.KM();B={Zxu:h,vY:W,qND:b,KM:T,GY:B.Xl.GY,FDZ:z};if(z=R.U){z.Fy();h=z.N;W=h.W.T;var l=b=null;h.X!=null&&W&&(b=h.Y,b=new g.pr(b.left-W.left,b.top-W.top),l=new g.PY(W.right-W.left,W.bottom-W.top));h=T?Math.max(h.T,h.V):h.T;T={Zxu:z.getName(),vY:b,qND:l,KM:T,FDZ:!1,GY:h}}else T=null;T&&U1B(R,B,T)}}; nWr=function(B,z,T){z&&(B.Ks=z);T&&(B.dh=T)}; g.Jw=function(){}; g.pq=function(B){return{value:B,done:!1}}; uLr=function(){this.W=this.T=this.Y=this.U=this.V=0}; Hel=function(B){var z={};var T=g.YP()-B.V;z=(z.ptlt=T,z);(T=B.U)&&(z.pnk=T);(T=B.Y)&&(z.pnc=T);(T=B.W)&&(z.pnmm=T);(B=B.T)&&(z.pns=B);return z}; f0Y=function(){ns.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; $3=function(B){return Ed(B.volume)&&B.volume>0}; P6=function(B,z,T,R){T=T===void 0?!0:T;R=R===void 0?function(){return!0}:R; return function(h){var W=h[B];if(Array.isArray(W)&&R(h))return OeB(W,z,T)}}; x3=function(B,z){return function(T){return z(T)?T[B]:void 0}}; Nqz=function(B){return function(z){for(var T=0;T0?W[h-1]+1:0,R+1).reduce(function(b,l){return b+l},0)})}; tKY=function(){this.U=this.T=""}; jFY=function(){}; DO=function(B,z){var T={};if(B!==void 0)if(z!=null)for(var R in z){var h=z[R];R in Object.prototype||h!=null&&(T[R]=typeof h==="function"?h(B):B[h])}else g.RP(T,B);return iO(q0(new wl,T))}; XDB=function(){var B={};this.U=(B.vs=[1,0],B.vw=[0,1],B.am=[2,2],B.a=[4,4],B.f=[8,8],B.bm=[16,16],B.b=[32,32],B.avw=[0,64],B.avs=[64,0],B.pv=[256,256],B.gdr=[0,512],B.p=[0,1024],B.r=[0,2048],B.m=[0,4096],B.um=[0,8192],B.ef=[0,16384],B.s=[0,32768],B.pmx=[0,16777216],B.mut=[33554432,33554432],B.umutb=[67108864,67108864],B.tvoff=[134217728,134217728],B);this.T={};for(var z in this.U)this.U[z][1]>0&&(this.T[z]=0);this.Y=0}; k3=function(B,z){var T=B.U[z],R=T[1];B.Y+=T[0];R>0&&B.T[z]==0&&(B.T[z]=1)}; ZeH=function(B){var z=g.X5(B.U),T=0,R;for(R in B.T)g.F5(z,R)&&B.T[R]==1&&(T+=B.U[R][1],B.T[R]=2);return T}; e5z=function(B){var z=0,T;for(T in B.T){var R=B.T[T];if(R==1||R==2)z+=B.U[T][1]}return z}; Kq=function(){this.T=this.U=0}; my=function(){Aw.call(this);this.Y=new Cq;this.IK=this.N=this.RK=0;this.J=-1;this.aK=new Cq;this.V=new Cq;this.T=new rl;this.X=this.W=-1;this.TZ=new Cq;this.eI=2E3;this.zZ=new Kq;this.MG=new Kq;this.sE=new Kq}; nq=function(B,z,T){var R=B.IK;Od||T||B.J==-1||(R+=z-B.J);return R}; sFY=function(){this.Y=!1}; uO=function(B,z){this.Y=!1;this.W=B;this.N=z;this.V=0}; H6=function(B,z){uO.call(this,B,z);this.L=[]}; EWb=function(){}; OT=function(){}; N0=function(B,z,T,R){Y3.call(this,B,z,T,R)}; tw=function(B,z,T){Y3.call(this,null,B,z,T);this.J=B.isActive();this.L=0}; jS=function(B){return[B.top,B.left,B.bottom,B.right]}; X9=function(B,z,T,R,h,W){W=W===void 0?new OT:W;yX.call(this,z,T,R);this.YI=h;this.Fr=0;this.zR={};this.o1=new XDB;this.lw={};this.OX="";this.sE=null;this.O0=!1;this.T=[];this.jW=W.U();this.X=W.Y();this.W=null;this.Y=-1;this.cD=this.N=void 0;this.UE=this.TZ=0;this.XE=-1;this.eI=this.MG=!1;this.RK=this.J=this.U=this.XD=this.U0=0;new rl;this.zZ=this.IK=0;this.Kf=-1;this.Mj=0;this.L=g.LF;this.WD=[this.Rk()];this.Sk=2;this.tP={};this.tP.pause="p";this.tP.resume="r";this.tP.skip="s";this.tP.mute="m";this.tP.unmute= "um";this.tP.exitfullscreen="ef";this.V=null;this.EE=this.aK=!1;this.Dm=Math.floor(Date.now()/1E3-1704067200);this.lO=0}; ZO=function(B){B.hasCompleted=!0;B.Mj!=0&&(B.Mj=3)}; eS=function(B){return B===void 0?B:Number(B)?sd(B,3):0}; sT=function(B,z){return B.WD[z!=null&&zMath.max(1E4,B.Y/3)?0:z);var T=B.L(B)||{};T=T.currentTime!==void 0?T.currentTime:B.TZ;var R=T-B.TZ,h=0;R>=0?(B.UE+=z,B.zZ+=Math.max(z-R,0),h=Math.min(R,B.UE)):B.IK+=Math.abs(R);R!=0&&(B.UE=0);B.Kf==-1&&R>0&&(B.Kf=tp>=0?Hy()-tp:-1);B.TZ=T;return h}; z35=function(B,z){Sa(B.X,function(T){return T.W==z.W})||B.X.push(z)}; TgK=function(B){var z=I3(B.LY().T,1);return ET(B,z)}; ET=function(B,z,T){return z>=15E3?!0:B.MG?(T===void 0?0:T)?!0:B.Y>0?z>=B.Y/2:B.XE>0?z>=B.XE:!1:!1}; R3P=function(B){var z=sd(B.Xl.GY,2),T=B.o1.Y,R=B.Xl,h=sT(B),W=eS(h.W),b=eS(h.X),l=eS(R.volume),w=sd(h.L,2),q=sd(h.UE,2),c=sd(R.GY,2),L=sd(h.WD,2),C=sd(h.XE,2);R=sd(R.kY,2);var r=B.SP().clone().round();B=B.Z4&&B.Z4.Y?(B.Z4?B.Z4.Y:null).clone().round():null;h=a3(h,!1);return{cku:z,Q8:T,HY:W,xu:b,Mt:l,ZD:w,PY:q,GY:c,Mf:L,cY:C,kY:R,position:r,hm:B,SB:h}}; W9b=function(B,z){h3z(B.T,z,function(){return{cku:0,Q8:void 0,HY:-1,xu:-1,Mt:-1,ZD:-1,PY:-1,GY:-1,Mf:-1,cY:-1,kY:-1,position:void 0,hm:void 0,SB:[]}}); B.T[z]=R3P(B)}; h3z=function(B,z,T){for(var R=B.length;R0?1:0;L.atos= o3(q.T);L.ssb=o3(q.EE,!1);L.amtos=QFH(q.T,!1);L.uac=B.U0;L.vpt=q.Y.T;c=="nio"&&(L.nio=1,L.avms="nio");L.gmm="4";L.gdr=ET(B,q.Y.T,!0)?1:0;L.efpf=B.Sk;if(c=="gsv"||c=="nis")c=B.Z4,c.L>0&&(L.nnut=c.L);L.tcm=SMB(B);L.nmt=B.IK;L.bt=B.zZ;L.pst=B.Kf;L.vpaid=B.N;L.dur=B.Y;L.vmtime=B.TZ;L.is=B.o1.Y;B.T.length>=1&&(L.i0=B.T[0].Q8,L.a0=[B.T[0].Mt],L.c0=[B.T[0].GY],L.ss0=[B.T[0].kY],c=B.T[0].position,W=B.T[0].hm,L.p0=c?jS(c):void 0,c&&W&&!GJ(W,c)&&(L.cp0=jS(W)));B.T.length>=2&&(L.i1=B.T[1].Q8,L.a1=za(B.T[1].HY, B.T[1].Mt,B.T[1].xu),L.c1=za(B.T[1].ZD,B.T[1].GY,B.T[1].PY),L.ss1=za(B.T[1].Mf,B.T[1].kY,B.T[1].cY),c=B.T[1].position,W=B.T[1].hm,L.p1=c?jS(c):void 0,c&&W&&!GJ(W,c)&&(L.cp1=jS(W)),L.mtos1=B.T[1].SB);B.T.length>=3&&(L.i2=B.T[2].Q8,L.a2=za(B.T[2].HY,B.T[2].Mt,B.T[2].xu),L.c2=za(B.T[2].ZD,B.T[2].GY,B.T[2].PY),L.ss2=za(B.T[2].Mf,B.T[2].kY,B.T[2].cY),c=B.T[2].position,W=B.T[2].hm,L.p2=c?jS(c):void 0,c&&W&&!GJ(W,c)&&(L.cp2=jS(W)),L.mtos2=B.T[2].SB);B.T.length>=4&&(L.i3=B.T[3].Q8,L.a3=za(B.T[3].HY,B.T[3].Mt, B.T[3].xu),L.c3=za(B.T[3].ZD,B.T[3].GY,B.T[3].PY),L.ss3=za(B.T[3].Mf,B.T[3].kY,B.T[3].cY),c=B.T[3].position,W=B.T[3].hm,L.p3=c?jS(c):void 0,c&&W&&!GJ(W,c)&&(L.cp3=jS(W)),L.mtos3=B.T[3].SB);L.cs=e5z(B.o1);z&&(L.ic=ZeH(B.o1),L.dvpt=q.Y.U,L.dvs=dl(q.U,.5),L.dfvs=dl(q.U,1),L.davs=dl(q.T,.5),L.dafvs=dl(q.T,1),T&&(q.Y.U=0,y95(q.U),y95(q.T)),B.QZ()&&(L.dtos=q.RK,L.dav=q.N,L.dtoss=B.Fr+1,T&&(q.RK=0,q.N=0,B.Fr++)),L.dat=q.V.U,L.dft=q.TZ.U,T&&(q.V.U=0,q.TZ.U=0));L.ps=[l.V.width,l.V.height];L.bs=[IK(l.T),l.T.getHeight()]; L.scs=[l.W.width,l.W.height];L.dom=l.domain;B.XD&&(L.vds=B.XD);if(B.X.length>0||B.jW)z=g.Mg(B.X),B.jW&&z.push(B.jW),L.pings=g.s9(z,function(C){return C.toString()}); z=g.s9(g.v6(B.X,function(C){return C.X()}),function(C){return C.getId()}); MlK(z);L.ces=z;B.U&&(L.vmer=B.U);B.J&&(L.vmmk=B.J);B.RK&&(L.vmiec=B.RK);L.avms=B.Z4?B.Z4.getName():"ns";B.Z4&&g.RP(L,B.Z4.K6());R?(L.c=sd(B.Xl.GY,2),L.ss=sd(B.Xl.kY,2)):L.tth=Hy()-wWz;L.mc=sd(q.UE,2);L.nc=sd(q.L,2);L.mv=eS(q.X);L.nv=eS(q.W);L.lte=sd(B.HW,2);R=sT(B,h);a3(q);L.qmtos=a3(R);L.qnc=sd(R.L,2);L.qmv=eS(R.X);L.qnv=eS(R.W);L.qas=R.W>0?1:0;L.qi=B.OX;L.avms||(L.avms="geo");L.psm=q.zZ.T;L.psv=q.zZ.getValue();L.psfv=q.MG.getValue();L.psa=q.sE.getValue();w=KBY(w.Xu);w.length&&(L.veid=w);B.V&&g.RP(L, Hel(B.V));L.avas=B.w6();L.vs=B.ej();L.co=qOB(B);L.tm=q.lO;L.tu=q.cD;return L}; bgB=function(B,z){if(g.F5(ig5,z))return!0;var T=B.zR[z];return T!==void 0?(B.zR[z]=!0,!T):!1}; qOB=function(B){var z=B.lO.toString(10).padStart(2,"0");z=""+B.Dm+z;B.lO<99&&B.lO++;return z}; L9d=function(){this.T={};var B=ZV();Ta(this,B,document);var z=c4l();try{if("1"==z){for(var T=B.parent;T!=B.top;T=T.parent)Ta(this,T,T.document);Ta(this,B.top,B.top.document)}}catch(R){}}; c4l=function(){var B=document.documentElement;try{if(!O9(ZV().top))return"2";var z=[],T=ZV(B.ownerDocument);for(B=T;B!=T.top;B=B.parent)if(B.frameElement)z.push(B.frameElement);else break;return z&&z.length!=0?"1":"0"}catch(R){return"2"}}; Ta=function(B,z,T){UT(T,"mousedown",function(){return CMd(B)},301); UT(z,"scroll",function(){return r4r(B)},302); UT(T,"touchmove",function(){return owz(B)},303); UT(T,"mousemove",function(){return F9l(B)},304); UT(T,"keydown",function(){return Ipz(B)},305)}; CMd=function(B){g.uW(B.T,function(z){z.Y>1E5||++z.Y})}; r4r=function(B){g.uW(B.T,function(z){z.T>1E5||++z.T})}; owz=function(B){g.uW(B.T,function(z){z.T>1E5||++z.T})}; Ipz=function(B){g.uW(B.T,function(z){z.U>1E5||++z.U})}; F9l=function(B){g.uW(B.T,function(z){z.W>1E5||++z.W})}; GBP=function(){this.T=[];this.U=[]}; R0=function(B,z){return g.Cs(B.T,function(T){return T.OX==z})}; da5=function(B,z){return z?g.Cs(B.T,function(T){return T.DA.Dj==z}):null}; A4d=function(B,z){return g.Cs(B.U,function(T){return T.lD()==2&&T.OX==z})}; WQ=function(){var B=hl;return B.T.length==0?B.U:B.U.length==0?B.T:g.aR(B.U,B.T)}; apd=function(B,z){B=z.lD()==1?B.T:B.U;var T=Ls(B,function(R){return R==z}); return T!=-1?(B.splice(T,1),z.Z4&&z.Z4.unobserve(),z.dispose(),!0):!1}; UaK=function(B){var z=hl;if(apd(z,B)){switch(B.lD()){case 0:var T=function(){return null}; case 2:T=function(){return A4d(z,B.OX)}; break;case 1:T=function(){return R0(z,B.OX)}}for(var R=T();R;R=T())apd(z,R)}}; MUB=function(B){var z=hl;B=g.v6(B,function(T){return!da5(z,T.DA.Dj)}); z.T.push.apply(z.T,g.Q(B))}; VUB=function(B){var z=[];g.Ks(B,function(T){Sa(hl.T,function(R){return R.DA.Dj===T.DA.Dj&&R.OX===T.OX})||(hl.T.push(T),z.push(T))})}; bQ=function(){this.T=this.U=null}; Qad=function(B,z){function T(R,h){z(R,h)} if(B.U==null)return!1;B.T=g.Cs(B.U,function(R){return R!=null&&R.mw()}); B.T&&(B.T.init(T)?qMY(B.T.T):z(B.T.T.us(),B.T));return B.T!=null}; Y5=function(B){B=y4r(B);lO.call(this,B.length?B[B.length-1]:new hw(im,0));this.Y=B;this.U=null}; y4r=function(B){if(!B.length)return[];B=(0,g.v6)(B,function(T){return T!=null&&T.aZ()}); for(var z=1;zT.time?z:T},B[0])}; iQ=function(B){B=B===void 0?im:B;lO.call(this,new hw(B,2))}; cQ=function(){var B=$aX();hw.call(this,im.top,B,"geo")}; $aX=function(){cy();var B=B6();return B.Y||B.U?0:2}; PMz=function(){}; L4=function(){this.done=!1;this.T={hh:0,So:0,E$m:0,EV:0,vN:-1,ea:0,uU:0,oi:0,HxF:0};this.V=null;this.X=!1;this.Y=null;this.L=0;this.U=new R3(this)}; rs=function(){var B=C4;B.X||(B.X=!0,xaK(B,function(){return B.W.apply(B,g.Q(g.K5.apply(0,arguments)))}),B.W())}; vwY=function(){Bl(PMz);var B=Bl(bQ);B.T!=null&&B.T.T?qMY(B.T.T):B6().update(im)}; o0=function(B,z,T){if(!B.done&&(B.U.cancel(),z.length!=0)){B.Y=null;try{vwY();var R=Hy();cy().V=R;if(Bl(bQ).T!=null)for(var h=0;h=0?Hy()-fJ:-1,l=Hy();h.T.vN==-1&&(b=l);var w=B6(),q=cy(),c=Ly(q.Xu),L=WQ();try{if(L.length>0){var C=w.T;C&&(c.bs=[IK(C),C.getHeight()]);var r=w.V;r&&(c.ps=[r.width,r.height]);im.screen&&(c.scs=[im.screen.width,im.screen.height])}else c.url=encodeURIComponent(im.location.href.substring(0,512)),W.referrer&&(c.referrer=encodeURIComponent(W.referrer.substring(0,512))); c.tt=b;c.pt=fJ;c.bin=q.U;im.google_osd_load_pub_page_exp!==void 0&&(c.olpp=im.google_osd_load_pub_page_exp);c.deb=[1,h.T.hh,h.T.So,h.T.EV,h.T.vN,0,h.U.U,h.T.ea,h.T.uU,h.T.oi,h.T.HxF,-1].join(";");c.tvt=kBK(h,l);w.U&&(c.inapp=1);if(im!==null&&im!=im.top){L.length>0&&(c.iframe_loc=encodeURIComponent(im.location.href.substring(0,512)));var F=w.L;c.is=[IK(F),F.getHeight()]}}catch(A){c.error=1}C4.Y=c}C=g.zR(C4.Y);r=cy().T;ch(r.Y,"prf")==1?(F=new qi,h=r.T,W=0,h.T>-1&&(W=h.Y.T.now()-h.T),F=PD(F,1,n9(h.W+ W),0),h=r.T,F=PD(F,5,O5(h.T>-1?h.U+1:h.U),0),F=PD(F,2,s5(r.U.T.Y()),"0"),F=PD(F,3,s5(r.U.T.U()),"0"),r=PD(F,4,s5(r.U.T.T()),"0"),F={},r=(F.pf=g.bT(r.U()),F)):r={};g.RP(C,r);g.RP(z,R,T,C,B())}])}; nwX=function(){var B=mal||im;if(!B)return"";var z=[];if(!B.location||!B.location.href)return"";z.push("url="+encodeURIComponent(B.location.href.substring(0,512)));B.document&&B.document.referrer&&z.push("referrer="+encodeURIComponent(B.document.referrer.substring(0,512)));return z.join("&")}; Fd=function(){var B="youtube.player.web_20250519_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250519_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250519_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250519_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),z;if(((z=B)==null?void 0:z.length)==2)return B[1];B="youtube.player.web_20250519_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var T;return((T=B)==null?void 0:T.length)==3?"20"+B[1]+B[2]:null}; upr=function(){return"av.default_js".includes("ima_html5_sdk")?{gV:"ima",QO:null}:"av.default_js".includes("ima_native_sdk")?{gV:"nima",QO:null}:"av.default_js".includes("admob-native-video-javascript")?{gV:"an",QO:null}:"youtube.player.web_20250519_22_RC00".includes("cast_js_sdk")?{gV:"cast",QO:Fd()}:"youtube.player.web_20250519_22_RC00".includes("youtube.player.web")?{gV:"yw",QO:Fd()}:"youtube.player.web_20250519_22_RC00".includes("outstream_web_client")?{gV:"out",QO:Fd()}:"youtube.player.web_20250519_22_RC00".includes("drx_rewarded_web")? {gV:"r",QO:Fd()}:"youtube.player.web_20250519_22_RC00".includes("gam_native_web_video")?{gV:"n",QO:Fd()}:"youtube.player.web_20250519_22_RC00".includes("admob_interstitial_video")?{gV:"int",QO:Fd()}:{gV:"j",QO:null}}; ds=function(B,z){var T={sv:"967"};I0!==null&&(T.v=I0);T.cb=Hgb;T.nas=hl.T.length;T.msg=B;z!==void 0&&(B=fpK(z))&&(T.e=Ga[B]);return T}; Al=function(B){return oP(B,"custom_metric_viewable")}; fpK=function(B){var z=Al(B)?"custom_metric_viewable":B.toLowerCase();return sp(SS,function(T){return T==z})}; Ogr=function(){this.T=void 0;this.U=!1;this.Y=0;this.W=-1;this.V="tos"}; jaz=function(B){try{var z=B.split(",");return z.length>g.X5(NgH).length?null:Sb(z,function(T,R){R=R.toLowerCase().split("=");if(R.length!=2||tUK[R[0]]===void 0||!tUK[R[0]](R[1]))throw Error("Entry ("+R[0]+", "+R[1]+") is invalid.");T[R[0]]=R[1];return T},{})}catch(T){return null}}; XWz=function(B,z){if(B.T==void 0)return 0;switch(B.V){case "mtos":return B.U?GX(z.T,B.T):GX(z.U,B.T);case "tos":return B.U?I3(z.T,B.T):I3(z.U,B.T)}return 0}; a0=function(B,z,T,R){uO.call(this,z,R);this.L=B;this.J=T}; Uo=function(){}; MF=function(B){uO.call(this,"fully_viewable_audible_half_duration_impression",B)}; VU=function(B){this.T=B}; QU=function(B,z){uO.call(this,B,z)}; yU=function(B){H6.call(this,"measurable_impression",B)}; gs=function(){VU.apply(this,arguments)}; Jl=function(B,z,T){tw.call(this,B,z,T)}; p4=function(B){B=B===void 0?im:B;lO.call(this,new hw(B,2))}; $5=function(B,z,T){tw.call(this,B,z,T)}; PQ=function(B){B=B===void 0?im:B;lO.call(this,new hw(B,2))}; x5=function(){hw.call(this,im,2,"mraid");this.zZ=0;this.UE=this.WD=!1;this.L=null;this.U=Ru5(this.Y);this.W.T=new F$(0,0,0,0);this.lO=!1}; vQ=function(B,z,T){B.AS("addEventListener",z,T)}; EwP=function(B){cy().W=!!B.AS("isViewable");vQ(B,"viewableChange",ZgY);B.AS("getState")==="loading"?vQ(B,"ready",e3X):saK(B)}; saK=function(B){typeof B.U.x9.AFMA_LIDAR==="string"?(B.WD=!0,SOr(B)):(B.U.compatibility=3,B.L="nc",B.Ep("w"))}; SOr=function(B){B.UE=!1;var z=ch(cy().Xu,"rmmt")==1,T=!!B.AS("isViewable");(z?!T:1)&&Ts().setTimeout(nJ(524,function(){B.UE||(BaB(B),u3(540,Error()),B.L="mt",B.Ep("w"))}),500); zRr(B);vQ(B,B.U.x9.AFMA_LIDAR,Tad)}; zRr=function(B){var z=ch(cy().Xu,"sneio")==1,T=B.U.x9.AFMA_LIDAR_EXP_1!==void 0,R=B.U.x9.AFMA_LIDAR_EXP_2!==void 0;(z=z&&R)&&(B.U.x9.AFMA_LIDAR_EXP_2=!0);T&&(B.U.x9.AFMA_LIDAR_EXP_1=!z)}; BaB=function(B){B.AS("removeEventListener",B.U.x9.AFMA_LIDAR,Tad);B.WD=!1}; RRX=function(B,z){if(B.AS("getState")==="loading")return new g.PY(-1,-1);z=B.AS(z);if(!z)return new g.PY(-1,-1);B=parseInt(z.width,10);z=parseInt(z.height,10);return isNaN(B)||isNaN(z)?new g.PY(-1,-1):new g.PY(B,z)}; e3X=function(){try{var B=Bl(x5);B.AS("removeEventListener","ready",e3X);saK(B)}catch(z){u3(541,z)}}; Tad=function(B,z){try{var T=Bl(x5);T.UE=!0;var R=B?new F$(B.y,B.x+B.width,B.y+B.height,B.x):new F$(0,0,0,0);var h=Hy(),W=TX();var b=new Xc(h,W,T);b.T=R;b.volume=z;T.kD(b)}catch(l){u3(542,l)}}; ZgY=function(B){var z=cy(),T=Bl(x5);B&&!z.W&&(z.W=!0,T.lO=!0,T.L&&T.Ep("w",!0))}; DJ=function(){this.isInitialized=!1;this.T=this.U=null;var B={};this.L=(B.start=this.xm,B.firstquartile=this.X0,B.midpoint=this.D9,B.thirdquartile=this.Py,B.complete=this.By,B.error=this.je,B.pause=this.Om,B.resume=this.PG,B.skip=this.F0,B.viewable_impression=this.FW,B.mute=this.BR,B.unmute=this.BR,B.fullscreen=this.Vm,B.exitfullscreen=this.Rh,B.fully_viewable_audible_half_duration_impression=this.FW,B.measurable_impression=this.FW,B.abandon=this.Om,B.engagedview=this.FW,B.impression=this.FW,B.creativeview= this.FW,B.progress=this.BR,B.custom_metric_viewable=this.FW,B.bufferstart=this.Om,B.bufferfinish=this.PG,B.audio_measurable=this.FW,B.audio_audible=this.FW,B);B={};this.J=(B.overlay_resize=this.lJ,B.abandon=this.sR,B.close=this.sR,B.collapse=this.sR,B.overlay_unmeasurable_impression=function(z){return BQ(z,"overlay_unmeasurable_impression",TX())},B.overlay_viewable_immediate_impression=function(z){return BQ(z,"overlay_viewable_immediate_impression",TX())},B.overlay_unviewable_impression=function(z){return BQ(z, "overlay_unviewable_impression",TX())},B.overlay_viewable_end_of_session_impression=function(z){return BQ(z,"overlay_viewable_end_of_session_impression",TX())},B); cy().U=3;hRz(this);this.Y=null}; k5=function(B,z,T,R){B=B.Kb(null,R,!0,z);B.W=T;MUB([B]);return B}; Wwz=function(B,z,T){pbY(z);var R=B.T;g.Ks(z,function(h){var W=g.s9(h.criteria,function(b){var l=jaz(b);if(l==null)b=null;else if(b=new Ogr,l.visible!=null&&(b.T=l.visible/100),l.audible!=null&&(b.U=l.audible==1),l.time!=null){var w=l.timetype=="mtos"?"mtos":"tos",q=uKK(l.time,"%")?"%":"ms";l=parseInt(l.time,10);q=="%"&&(l/=100);b.setTime(l,q,w)}return b}); Sa(W,function(b){return b==null})||z35(T,new a0(h.id,h.event,W,R))})}; bJz=function(){var B=[],z=cy();B.push(Bl(cQ));ch(z.Xu,"mvp_lv")&&B.push(Bl(x5));z=[new p4,new PQ];z.push(new Y5(B));z.push(new iQ(im));return z}; YdH=function(B){if(!B.isInitialized){B.isInitialized=!0;try{var z=Hy(),T=cy(),R=B6();fJ=z;T.Y=79463069;B.U!=="o"&&(mal=hvX(im));if(rvK()){C4.T.So=0;C4.T.vN=Hy()-z;var h=bJz(),W=Bl(bQ);W.U=h;Qad(W,function(){K4()})?C4.done||(DaX(),W6(W.T.T,B),rs()):R.Y?K4():rs()}else mz=!0}catch(b){throw hl.reset(),b; }}}; uQ=function(B){C4.U.cancel();n4=B;C4.done=!0}; HQ=function(B){if(B.U)return B.U;var z=Bl(bQ).T;if(z)switch(z.getName()){case "nis":B.U="n";break;case "gsv":B.U="m"}B.U||(B.U="h");return B.U}; f4=function(B,z,T){if(B.T==null)return z.XD|=4,!1;B=lGH(B.T,T,z);z.XD|=B;return B==0}; K4=function(){var B=[new iQ(im)],z=Bl(bQ);z.U=B;Qad(z,function(){uQ("i")})?C4.done||(DaX(),rs()):uQ("i")}; wyK=function(B,z){if(!B.O0){var T=BQ(B,"start",TX());T=B.YI.T(T).T;var R={id:"lidarv"};R.r=z;R.sv="967";I0!==null&&(R.v=I0);at(T,function(h,W){return R[h]=h=="mtos"||h=="tos"?W:encodeURIComponent(W)}); z=nwX();at(z,function(h,W){return R[h]=encodeURIComponent(W)}); z="//pagead2.googlesyndication.com/pagead/gen_204?"+iO(q0(new wl,R));A9B(z);B.O0=!0}}; Oo=function(B,z,T){o0(C4,[B],!TX());W9b(B,T);T!=4&&h3z(B.WD,T,B.Rk);return BQ(B,z,TX())}; hRz=function(B){K9X(function(){var z=qdz();B.U!=null&&(z.sdk=B.U);var T=Bl(bQ);T.T!=null&&(z.avms=T.T.getName());return z})}; iJz=function(B,z,T,R){var h=da5(hl,T);h!==null&&h.OX!==z&&(B.c6(h),h=null);h||(z=B.Kb(T,Hy(),!1,z),hl.U.length==0&&(cy().Y=79463069),VUB([z]),h=z,h.W=HQ(B),R&&(h.sE=R));return h}; cp5=function(B,z){var T=B[z];T!==void 0&&T>0&&(B[z]=Math.floor(T*1E3))}; qdz=function(){var B=B6(),z={},T={},R={};return Object.assign({},(z.sv="967",z),I0!==null&&(T.v=I0,T),(R["if"]=B.Y?"1":"0",R.nas=String(hl.T.length),R))}; ZJ=function(B){uO.call(this,"audio_audible",B)}; ew=function(B){H6.call(this,"audio_measurable",B)}; so=function(){VU.apply(this,arguments)}; Eo=function(){}; Lwb=function(B){this.T=B}; lGH=function(B,z,T){B=B.U();if(typeof B==="function"){var R={};var h={};R=Object.assign({},I0!==null&&(R.v=I0,R),(h.sv="967",h.cb=Hgb,h.e=C3X(z),h));h=BQ(T,z,TX());g.RP(R,h);T.lw[z]=h;R=T.lD()==2?d1r(R).join("&"):T.YI.T(R).T;try{return B(T.OX,R,z),0}catch(W){return 2}}else return 1}; C3X=function(B){var z=Al(B)?"custom_metric_viewable":B;B=sp(SS,function(T){return T==z}); return Ga[B]}; Sw=function(){DJ.call(this);this.X=null;this.V=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; rp5=function(B,z,T){T=T.opt_configurable_tracking_events;B.T!=null&&Array.isArray(T)&&Wwz(B,T,z)}; oA5=function(B,z,T){var R=R0(hl,z);R||(R=T.opt_nativeTime||-1,R=k5(B,z,HQ(B),R),T.opt_osdId&&(R.sE=T.opt_osdId));return R}; Fwl=function(B,z,T){var R=R0(hl,z);R||(R=k5(B,z,"n",T.opt_nativeTime||-1));return R}; IGH=function(B,z){var T=R0(hl,z);T||(T=k5(B,z,"h",-1));return T}; GK5=function(B){cy();switch(HQ(B)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; aGz=function(B,z,T,R){T=T===void 0?{}:T;var h={};g.RP(h,{opt_adElement:void 0,opt_fullscreen:void 0},T);var W=B.q9(z,T);T=W?W.YI:B.bV();if(h.opt_bounds)return T.T(ds("ol",R));if(R!==void 0)if(fpK(R)!==void 0)if(mz)B=ds("ue",R);else if(YdH(B),n4=="i")B=ds("i",R),B["if"]=0;else if(z=B.q9(z,h)){b:{n4=="i"&&(z.U_=!0);W=h.opt_fullscreen;W!==void 0&&gl(z,!!W);var b;if(W=!B6().U)(W=GR(g.Va(),"CrKey")&&!(GR(g.Va(),"CrKey")&&GR(g.Va(),"SmartSpeaker"))||GR(g.Va(),"PlayStation")||GR(g.Va(),"Roku")||ltP()||GR(g.Va(), "Xbox"))||(W=g.Va(),W=GR(W,"AppleTV")||GR(W,"Apple TV")||GR(W,"CFNetwork")||GR(W,"tvOS")),W||(W=g.Va(),W=GR(W,"sdk_google_atv_x86")||GR(W,"Android TV")),W=!W;W&&(Ts(),W=um(zX)===0);if(b=W){switch(z.lD()){case 1:wyK(z,"pv");break;case 2:B.Is(z)}uQ("pv")}W=R.toLowerCase();if(b=!b)b=ch(cy().Xu,"ssmol")&&W==="loaded"?!1:g.F5(dil,W);if(b&&z.Mj==0){n4!="i"&&(C4.done=!1);b=h!==void 0?h.opt_nativeTime:void 0;tp=b=typeof b==="number"?b:Hy();z.XN=!0;var l=TX();z.Mj=1;z.zR={};z.zR.start=!1;z.zR.firstquartile= !1;z.zR.midpoint=!1;z.zR.thirdquartile=!1;z.zR.complete=!1;z.zR.resume=!1;z.zR.pause=!1;z.zR.skip=!1;z.zR.mute=!1;z.zR.unmute=!1;z.zR.viewable_impression=!1;z.zR.measurable_impression=!1;z.zR.fully_viewable_audible_half_duration_impression=!1;z.zR.fullscreen=!1;z.zR.exitfullscreen=!1;z.Fr=0;l||(z.LY().J=b);o0(C4,[z],!l)}(b=z.tP[W])&&k3(z.o1,b);ch(cy().Xu,"fmd")||g.F5(Apz,W)&&z.jW&&z.jW.U(z,null);switch(z.lD()){case 1:var w=Al(W)?B.L.custom_metric_viewable:B.L[W];break;case 2:w=B.J[W]}if(w&&(R=w.call(B, z,h,R),ch(cy().Xu,"fmd")&&g.F5(Apz,W)&&z.jW&&z.jW.U(z,null),R!==void 0)){h=ds(void 0,W);g.RP(h,R);R=h;break b}R=void 0}z.Mj==3&&B.c6(z);B=R}else B=ds("nf",R);else B=void 0;else mz?B=ds("ue"):W?(B=ds(),g.RP(B,YOd(W,!0,!1,!1))):B=ds("nf");return typeof B==="string"?T.T():T.T(B)}; UiH=function(B,z){z&&(B.W=z)}; MaH=function(B){var z={};return z.viewability=B.T,z.googleViewability=B.U,z}; Vad=function(B,z,T){T=T===void 0?{}:T;B=aGz(Bl(Sw),z,T,B);return MaH(B)}; B5=function(B){return new RegExp("[^#]*[?&]"+B+"=([^&#]*)")}; zT=function(B,z){return(B=z.exec(B))?B[1]:null}; TT=function(B){var z=g.K5.apply(1,arguments).filter(Boolean).join("&");if(!z)return B;var T=B.match(/[?&]adurl=/);return T?B.slice(0,T.index+1)+z+"&"+B.slice(T.index+1):B+(B.indexOf("?")<0?"?":"&")+z}; RN=function(B,z){return z?"&"+B+"="+encodeURIComponent(z):""}; QtP=function(B){var z=B.url;B=B.Idd;this.T=z;this.Y=B;this.U=(new Date).getTime()-17040672E5}; ypP=function(B){B=B.Y;if(!B)return"";var z=RN("uap",B.platform)+RN("uapv",B.platformVersion)+RN("uafv",B.uaFullVersion)+RN("uaa",B.architecture)+RN("uam",B.model)+RN("uab",B.bitness);B.fullVersionList&&(z+="&uafvl="+encodeURIComponent(B.fullVersionList.map(function(T){return encodeURIComponent(T.brand)+";"+encodeURIComponent(T.version)}).join("|"))); B.wow64!=null&&(z+="&uaw="+Number(B.wow64));return z.slice(1)}; py5=function(B,z,T,R,h){var W=window;var b=b===void 0?!1:b;var l;T?l=(b===void 0?0:b)?"//ep1.adtrafficquality.google/bg/"+F8(T)+".js":"//pagead2.googlesyndication.com/bg/"+F8(T)+".js":l="";b=b===void 0?!1:b;T=W.document;var w={};z&&(w._scs_=z);w._bgu_=l;w._bgp_=R;w._li_="v_h.3.0.0.0";h&&(w._upb_=h);(z=W.GoogleTyFxhY)&&typeof z.push=="function"||(z=W.GoogleTyFxhY=[]);z.push(w);z=uh(T).createElement("SCRIPT");z.type="text/javascript";z.async=!0;B=(b===void 0?0:b)?p7r(gAB,F8(B)+".js"):p7r(Jpl,F8(B)+ ".js");g.lh(z,B);(W=(W.GoogleTyFxhYEET||{})[z.src])?W():T.getElementsByTagName("head")[0].appendChild(z)}; $id=function(){try{var B,z;return!!((B=window)==null?0:(z=B.top)==null?0:z.location.href)&&!1}catch(T){return!0}}; hB=function(B,z,T){T=T===void 0?Error():T;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=B;z+=":";T instanceof Error?(this.message=z+T.message,this.stack=T.stack||""):(this.message=z+String(T),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; bj=function(){var B=P3z();B=B===void 0?"bevasrsg":B;return new Promise(function(z){var T=window===window.top?window:$id()?window:window.top,R=T[B],h;((h=R)==null?0:h.bevasrs)?z(new W5(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),T[B]=R),R.nqfbel.push(function(W){z(new W5(W))}))})}; xiY=function(B){var z={c:B.sG,e:B.Iv,mc:B.Gv,me:B.tN};B.lL&&(z.co={c:B.lL.Hn,a:B.lL.Ej,s:B.lL.j9});return z}; Yy=function(B){g.K.call(this);this.wpc=B}; W5=function(B){g.K.call(this);var z=this;this.fQ=B;this.Y="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.U=void 0;this.XA=this.fQ.p;this.W=this.mz.bind(this);this.addOnDisposeCallback(function(){return void vAz(z)})}; Did=function(B){var z;return g.D(function(T){if(T.U==1){if(!B.fQ.wpc)throw new hB(30,"NWA");return B.T?T.return(B.T):g.P(T,B.fQ.wpc(),2)}z=T.T;B.T=new Yy(z);return T.return(B.T)})}; vAz=function(B){B.U!==void 0&&(B.Y.forEach(function(z){var T;(T=B.U)==null||T.removeEventListener(z,B.W)}),B.U=void 0)}; kKd=function(B){var z=z===void 0?49:z;var T=[];t9(B,lj,6).forEach(function(R){eK(R,2)<=z&&T.push(eK(R,1))}); return T}; KwH=function(B){var z=z===void 0?49:z;var T=[];t9(B,lj,6).forEach(function(R){eK(R,2)>z&&T.push(eK(R,1))}); return T}; miz=function(B){B.then(function(){},function(){})}; wb=function(){g.K.apply(this,arguments);this.W=1;this[nAd]=this.dispose}; qH=function(B){return{fieldType:2,fieldName:B}}; g.ij=function(B){return{fieldType:3,fieldName:B}}; ucz=function(B){this.T=B;B.l3("/client_streamz/bg/frs",g.ij("mk"))}; HJb=function(B){this.T=B;B.l3("/client_streamz/bg/wrl",g.ij("mn"),qH("ac"),qH("sc"),g.ij("rk"),g.ij("mk"))}; fGB=function(B){this.T=B;B.x3("/client_streamz/bg/ec",g.ij("en"),g.ij("mk"))}; OJr=function(B){this.T=B;B.l3("/client_streamz/bg/el",g.ij("en"),g.ij("mk"))}; NaP=function(B){this.T=B;B.x3("/client_streamz/bg/cec",qH("ec"),g.ij("mk"))}; taz=function(B){this.T=B;B.x3("/client_streamz/bg/po/csc",qH("cs"),g.ij("mk"))}; jtB=function(B){this.T=B;B.x3("/client_streamz/bg/po/ctav",g.ij("av"),g.ij("mk"))}; Xyl=function(B){this.T=B;B.x3("/client_streamz/bg/po/cwsc",g.ij("su"),g.ij("mk"))}; ZJB=function(B){this.iK=oF(B)}; eRb=function(B,z){return gIr(B,z,SBr)}; c5=function(B){this.iK=oF(B)}; L8=function(B){this.iK=oF(B)}; C8=function(B){this.iK=oF(B)}; rb=function(B){this.iK=oF(B)}; std=function(B){this.iK=oF(B)}; g.Blz=function(B){var z=new rb;z=Ra(z,1,B.U);var T=EAz(B);z=gIr(z,T,irl);T=[];for(var R=[],h=g.d(B.T.keys()),W=h.next();!W.done;W=h.next())R.push(W.value.split(","));for(h=0;h>>31)&4294967295;L=h[0];var F=h[1],A=h[2],a=h[3],V=h[4];for(r=0;r<80;r++){if(r<40)if(r<20){var M=a^F&(A^a);var x=1518500249}else M=F^A^a,x=1859775393;else r<60?(M=F&A|a&(F|A),x=2400959708):(M=F^A^a,x=3395469782);M=((L<<5|L>>>27)&4294967295)+M+V+x+C[r]&4294967295;V=a;a=A;A=(F<<30|F>>>2)&4294967295;F=L;L=M}h[0]=h[0]+L&4294967295;h[1]=h[1]+F&4294967295;h[2]= h[2]+A&4294967295;h[3]=h[3]+a&4294967295;h[4]=h[4]+V&4294967295} function T(L,C){if(typeof L==="string"){L=unescape(encodeURIComponent(L));for(var r=[],F=0,A=L.length;F=56;r--)W[r]=C&255,C>>>=8;z(W);for(r=C=0;r<5;r++)for(var F=24;F>=0;F-=8)L[C++]=h[r]>>F&255;return L} for(var h=[],W=[],b=[],l=[128],w=1;w<64;++w)l[w]=0;var q,c;B();return{reset:B,update:T,digest:R,QF:function(){for(var L=R(),C="",r=0;r1)));b=b.next)h||(W=b);h&&(T.T==0&&R==1?s35(T,z):(W?(R=W,R.next==T.W&&(T.W=R),R.next=R.next.next):E35(T),STX(T,h,3,z)))}B.Y=null}else VI(B,3,z)}; v0=function(B,z){B.U||B.T!=2&&B.T!=3||Bs5(B);B.W?B.W.next=z:B.U=z;B.W=z}; zHK=function(B,z,T,R){var h=yI(null,null,null);h.T=new g.QI(function(W,b){h.Y=z?function(l){try{var w=z.call(R,l);W(w)}catch(q){b(q)}}:W; h.U=T?function(l){try{var w=T.call(R,l);w===void 0&&l instanceof kt?b(l):W(w)}catch(q){b(q)}}:b}); h.T.Y=B;v0(B,h);return h.T}; VI=function(B,z,T){B.T==0&&(B===T&&(z=3,T=new TypeError("Promise cannot resolve to itself")),B.T=1,j3X(T,B.OpG,B.YND,B)||(B.L=T,B.T=z,B.Y=null,Bs5(B),z!=3||T instanceof kt||Ts5(B,T)))}; j3X=function(B,z,T,R){if(B instanceof g.QI)return eCl(B,z,T,R),!0;if(B)try{var h=!!B.$goog_Thenable}catch(b){h=!1}else h=!1;if(h)return B.then(z,T,R),!0;if(g.zU(B))try{var W=B.then;if(typeof W==="function")return RHK(B,W,z,T,R),!0}catch(b){return T.call(R,b),!0}return!1}; RHK=function(B,z,T,R,h){function W(w){l||(l=!0,R.call(h,w))} function b(w){l||(l=!0,T.call(h,w))} var l=!1;try{z.call(B,b,W)}catch(w){W(w)}}; Bs5=function(B){B.X||(B.X=!0,g.MW(B.Kc,B))}; E35=function(B){var z=null;B.U&&(z=B.U,B.U=z.next,z.next=null);B.U||(B.W=null);return z}; STX=function(B,z,T,R){if(T==3&&z.U&&!z.W)for(;B&&B.V;B=B.Y)B.V=!1;if(z.T)z.T.Y=null,hHB(z,T,R);else try{z.W?z.Y.call(z.context):hHB(z,T,R)}catch(h){WzP.call(null,h)}m0Y(tSr,z)}; hHB=function(B,z,T){z==2?B.Y.call(B.context,T):B.U&&B.U.call(B.context,T)}; Ts5=function(B,z){B.V=!0;g.MW(function(){B.V&&WzP.call(null,z)})}; kt=function(B){iW.call(this,B)}; g.Kh=function(B,z){g.Lh.call(this);this.kh=B||1;this.Ml=z||g.XK;this.W1=(0,g.W7)(this.fRd,this);this.Ay=g.YP()}; g.mW=function(B,z,T){if(typeof B==="function")T&&(B=(0,g.W7)(B,T));else if(B&&typeof B.handleEvent=="function")B=(0,g.W7)(B.handleEvent,B);else throw Error("Invalid listener argument");return Number(z)>2147483647?-1:g.XK.setTimeout(B,z||0)}; nh=function(B,z){var T=null;return(new g.QI(function(R,h){T=g.mW(function(){R(z)},B); T==-1&&h(Error("Failed to schedule timer."))})).d2(function(R){g.XK.clearTimeout(T); throw R;})}; g.uc=function(B){g.K.call(this);this.L=B;this.W=0;this.Y=100;this.V=!1;this.U=new Map;this.X=new Set;this.flushInterval=3E4;this.T=new g.Kh(this.flushInterval);this.T.listen("tick",this.Pa,!1,this);g.m(this,this.T)}; b45=function(B){B.T.enabled||B.T.start();B.W++;B.W>=B.Y&&B.Pa()}; Yoz=function(B,z){return B.X.has(z)?void 0:B.U.get(z)}; lJr=function(B){for(var z=0;z2?B.T.statusText:""}catch(T){z=""}B.W=z+" ["+B.getStatus()+"]";Gal(B)}}finally{jN(B)}}}; jN=function(B,z){if(B.T){B.X&&(clearTimeout(B.X),B.X=null);var T=B.T;B.T=null;z||B.dispatchEvent("ready");try{T.onreadystatechange=null}catch(R){}}}; eN=function(B){var z=B.getStatus();a:switch(z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var T=!0;break a;default:T=!1}if(!T){if(z=z===0)B=g.It(String(B.J))[1]||null,!B&&g.XK.self&&g.XK.self.location&&(B=g.XK.self.location.protocol.slice(0,-1)),z=!aJH.test(B?B.toLowerCase():"");T=z}return T}; g.ZE=function(B){return B.T?B.T.readyState:0}; g.sn=function(B){try{return B.T?B.T.responseText:""}catch(z){return""}}; g.En=function(B){try{if(!B.T)return null;if("response"in B.T)return B.T.response;switch(B.RK){case "":case "text":return B.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in B.T)return B.T.mozResponseArrayBuffer}return null}catch(z){return null}}; g.UFK=function(B){var z={};B=(B.T&&g.ZE(B)>=2?B.T.getAllResponseHeaders()||"":"").split("\r\n");for(var T=0;T>1,z),M8(B,B.length>>1)]}; h6d=function(B){var z=g.d(R6d(B,V4));B=z.next().value;z=z.next().value;return B.toString(16)+z.toString(16)}; WrK=function(B,z){var T=R6d(z);B=new Uint32Array(B.buffer);z=B[0];var R=g.d(T);T=R.next().value;R=R.next().value;for(var h=1;h>>8|b<<24,b+=W|0,b^=l+38293,W=W<<3|W>>>29,W^=b,w=w>>>8|w<<24,w+=l|0,w^=q+38293,l=l<<3|l>>>29,l^=w;W=[W,b];B[h]^=W[0];h+1=T?(globalThis.sessionStorage.removeItem(B),["e"]):["a",new Uint8Array(R.buffer,z+4)]}; Q4=function(B,z,T){T=T===void 0?[]:T;this.maxItems=B;this.T=z===void 0?0:z;this.U=T}; l4z=function(B){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!z)return new Q4(B);var T=z.split(",");if(T.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Q4(B);z=T.slice(1);z.length===1&&z[0]===""&&(z=[]);T=Number(T[0]);return isNaN(T)||T<0||T>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Q4(B)):new Q4(B,T,z)}; w5B=function(B,z){this.logger=z;try{var T=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){T=!1}T&&(this.index=l4z(B))}; q3b=function(B,z,T,R,h){var W=B.index?hG(B.logger,function(){return b8P(B.index,h6d(z),T,R,h)},"W"):"u"; B.logger.lQ(W)}; i8l=function(B,z,T){var R=g.d(B.index?hG(B.logger,function(){return Y3z(h6d(z),T)},"R"):["u"]),h=R.next().value; R=R.next().value;B.logger.VY(h);return R}; Cjr=function(B){function z(){T-=R;T-=h;T^=h>>>13;R-=h;R-=T;R^=T<<8;h-=T;h-=R;h^=R>>>13;T-=R;T-=h;T^=h>>>12;R-=h;R-=T;R^=T<<16;h-=T;h-=R;h^=R>>>5;T-=R;T-=h;T^=h>>>3;R-=h;R-=T;R^=T<<10;h-=T;h-=R;h^=R>>>15} B=cBB(B);for(var T=2654435769,R=2654435769,h=314159265,W=B.length,b=W,l=0;b>=12;b-=12,l+=12)T+=y4(B,l),R+=y4(B,l+4),h+=y4(B,l+8),z();h+=W;switch(b){case 11:h+=B[l+10]<<24;case 10:h+=B[l+9]<<16;case 9:h+=B[l+8]<<8;case 8:R+=B[l+7]<<24;case 7:R+=B[l+6]<<16;case 6:R+=B[l+5]<<8;case 5:R+=B[l+4];case 4:T+=B[l+3]<<24;case 3:T+=B[l+2]<<16;case 2:T+=B[l+1]<<8;case 1:T+=B[l+0]}z();return Lrz.toString(h)}; cBB=function(B){for(var z=[],T=0;T>7,B.error.code]);R.set(T,4);return R}; ka=function(B,z,T){gU.call(this,B);this.W=z;this.clientState=T;this.T="S";this.U="q"}; Dc=function(B){return globalThis.TextEncoder?(new TextEncoder).encode(B):g.Wl(B)}; FrY=function(B,z,T){return B instanceof dU?O4z(B,T,z,1):B.ST(T)}; mg=function(B){g.K.call(this);var z=this;this.Y=new g.CP;this.W=0;this.U=void 0;this.state=2;this.fQ=B.fQ;this.yv=B.yv;this.KD=Object.assign({},I4B,B.KD||{});this.logger=B.fQ.ZZ();var T;this.onError=(T=B.onError)!=null?T:function(){}; this.LW=B.LW||!1;if(GTB(B)){var R=this.fQ;this.V=function(){return Z4d(R).catch(function(b){b=z.reportError(new hB(z.T?20:32,"TRG:Disposed",b));z.U=b;var l;(l=z.T)==null||l.dispose();z.T=void 0;z.Y.reject(b)})}; eHK(R,function(){return void KP(z)}); R.J===2&&KP(this)}else this.V=B.rbG,KP(this);var h=this.logger.share();h.Ma("o");var W=new T3(h,"o");this.Y.promise.then(function(){W.done();h.GU();h.dispose()},function(){return void h.dispose()}); this.addOnDisposeCallback(function(){z.T?(z.T.dispose(),z.T=void 0):z.U?z.logger.GU():(z.U=z.reportError(new hB(32,"TNP:Disposed")),z.logger.GU(),z.Y.reject(z.U))}); g.m(this,this.logger)}; dHz=function(B,z){if(!(z instanceof hB))if(z instanceof H0){var T=Error(z.toString());T.stack=z.stack;z=new hB(11,"EBH:Error",T)}else z=new hB(12,"BSO:Unknown",z);return B.reportError(z)}; KP=function(B){var z,T,R,h,W,b,l,w,q,c,L,C,r,F,A;return g.D(function(a){switch(a.U){case 1:z=void 0;B.W++;T=new g.CP;B.fQ instanceof AG&&B.fQ.W.push(T.promise);if(!B.LW){a.jI(2);break}R=new g.CP;setTimeout(function(){return void R.resolve()}); return g.P(a,R.promise,2);case 2:return h=B.logger.share(),g.AK(a,4,5),B.state=5,W={},b=[],g.P(a,U7(B.fQ.snapshot({sG:W,xV:b}),B.KD.qJd,function(){return Promise.reject(new hB(15,"MDA:Timeout"))}),7); case 7:l=a.T;if(B.xd())throw new hB(B.T?20:32,"MDA:Disposed");w=b[0];B.state=6;return g.P(a,U7(FrY(B.yv,h,l),B.KD.A3,function(){return Promise.reject(new hB(10,"BWB:Timeout"))}),8); case 8:q=a.T;if(B.xd())throw new hB(B.T?20:32,"BWB:Disposed");B.state=7;z=hG(h,function(){var M=ABP(B,q,T,w);M.Y.promise.then(function(){return void B.V()}); return M},"i"); case 5:g.$r(a);h.dispose();g.Pb(a,6);break;case 4:c=g.JK(a);(L=z)==null||L.dispose();if(!B.U){C=dHz(B,c);T.resolve();var V;if(V=B.fQ instanceof AG&&B.W<2)a:if(c instanceof hB)V=c.code!==32&&c.code!==20&&c.code!==10;else{if(c instanceof H0)switch(c.code){case 2:case 13:case 14:case 4:break;default:V=!1;break a}V=!0}if(V)return r=(1+Math.random()*.25)*(B.T?6E4:1E3),F=setTimeout(function(){return void B.V()},r),B.addOnDisposeCallback(function(){return void clearTimeout(F)}),a.return(); B.U=C}h.J6(B.T?13:14);B.Y.reject(B.U);return a.return();case 6:B.state=8,B.W=0,(A=B.T)==null||A.dispose(),B.T=z,B.Y.resolve(),g.dX(a)}})}; ABP=function(B,z,T,R){var h=sM(z,2)*1E3;if(h<=0)throw new hB(31,"TTM:Invalid");if(EM(z,4))return new xa(B.logger,EM(z,4),h);if(!sM(z,3))return new P1(B.logger,C9($W(z,1)),h);if(!R)throw new hB(4,"PMD:Undefined");R=R(C9($W(z,1)));if(!(R instanceof Function))throw new hB(16,"APF:Failed");B.X=Math.floor((Date.now()+h)/1E3);B=new $a(B.logger,R,sM(z,3),h);B.addOnDisposeCallback(function(){return void T.resolve()}); return B}; a4z=function(B,z){z=z instanceof hB?z:new hB(5,"TVD:error",z);return B.reportError(z)}; yBz=function(B,z,T){try{if(B.xd())throw new hB(21,"BNT:disposed");if(!B.T&&B.U)throw B.U;var R,h;return(h=(R=UHY(B,z,T))!=null?R:MYY(B,z,T))!=null?h:VYd(B,z,T)}catch(W){if(!z.tN)throw a4z(B,W);return QNz(B,T,W)}}; UHY=function(B,z,T){var R;return(R=B.T)==null?void 0:pP(R,function(){return nP(B,z)},T,function(h){var W; if(B.T instanceof $a&&((W=z.lL)==null?0:W.j9))try{var b;(b=B.cache)==null||q3b(b,nP(B,z),h,z.lL.Hn,B.X-120)}catch(l){B.reportError(new hB(24,"ELX:write",l))}})}; MYY=function(B,z,T){var R;if((R=z.lL)!=null&&R.Ej)try{var h,W=(h=B.cache)==null?void 0:i8l(h,nP(B,z),z.lL.Hn);return W?T?hG(B.logger,function(){return g.bT(W,2)},"a"):W:void 0}catch(b){B.reportError(new hB(23,"RXO:read",b))}}; VYd=function(B,z,T){var R={stack:[],error:void 0,hasError:!1};try{if(!z.Gv)throw new hB(29,"SDF:notready");return pP(FBl(R,new ka(B.logger,0,B.state)),function(){return nP(B,z)},T)}catch(h){R.error=h,R.hasError=!0}finally{IzP(R)}}; QNz=function(B,z,T){var R={stack:[],error:void 0,hasError:!1};try{var h=a4z(B,T);return pP(FBl(R,new v1(B.logger,h)),function(){return[]},z)}catch(W){R.error=W,R.hasError=!0}finally{IzP(R)}}; nP=function(B,z){return z.Iv?z.Iv:z.sG?hG(B.logger,function(){return z.Iv=Dc(z.sG)},"c"):[]}; u8=function(){var B=0,z;return function(T){z||(z=new W1);var R=new ka(z,B,1),h=pP(R,function(){return Dc(T)},!0); R.dispose();B++;return h}}; H1=function(B){this.iK=oF(B)}; gyz=function(B,z,T){this.nj=B;this.q3=z;this.metadata=T}; fP=function(B,z){z=z===void 0?{}:z;this.spI=B;this.metadata=z;this.status=null}; O7=function(B,z,T,R,h){this.name=B;this.methodType="unary";this.requestType=z;this.responseType=T;this.T=R;this.U=h}; N8=function(B){this.iK=oF(B)}; tG=function(B){this.iK=oF(B)}; jQ=function(B){this.iK=oF(B)}; Xh=function(B,z){this.L=B.SEE;this.J=z;this.T=B.xhr;this.Y=[];this.V=[];this.X=[];this.W=[];this.U=[];this.L&&JB5(this)}; xHY=function(B,z){var T=new p5H;g.W0(B.T,"complete",function(){if(eN(B.T)){var R=g.sn(B.T);if(z&&B.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");R=atob(R)}try{var h=B.J(R)}catch(l){Zc(B,eQ(new H0(13,"Error when deserializing response data; error: "+l+(", response: "+R)),T));return}R=wQX(B.T.getStatus());s7(B,E7(B));R==0?$H5(B,h):Zc(B,eQ(new H0(R,"Xhr succeeded but the status code is not 200"),T))}else{R=g.sn(B.T);h=E7(B);if(R){var W=Pjl(B, R);R=W.code;var b=W.details;W=W.metadata}else R=2,b="Rpc failed due to xhr error. uri: "+String(B.T.J)+", error code: "+B.T.U+", error: "+B.T.getLastError(),W=h;s7(B,h);Zc(B,eQ(new H0(R,b,W),T))}})}; JB5=function(B){B.L.n0("data",function(z){if("1"in z){var T=z["1"];try{var R=B.J(T)}catch(h){Zc(B,new H0(13,"Error when deserializing response data; error: "+h+(", response: "+T)))}R&&$H5(B,R)}if("2"in z)for(z=Pjl(B,z["2"]),T=0;T-1&&B.splice(z,1)}; $H5=function(B,z){for(var T=0;T>4&15).toString(16)+(B&15).toString(16)}; qo=function(B,z){this.U=this.T=null;this.Y=B||null;this.W=!!z}; Ci=function(B){B.T||(B.T=new Map,B.U=0,B.Y&&at(B.Y,function(z,T){B.add(rO(z),T)}))}; nyH=function(B,z){Ci(B);z=ry(B,z);return B.T.has(z)}; g.u3d=function(B,z,T){B.remove(z);T.length>0&&(B.Y=null,B.T.set(ry(B,z),g.Mg(T)),B.U=B.U+T.length)}; ry=function(B,z){z=String(z);B.W&&(z=z.toLowerCase());return z}; kTP=function(B,z){z&&!B.W&&(Ci(B),B.Y=null,B.T.forEach(function(T,R){var h=R.toLowerCase();R!=h&&(this.remove(R),g.u3d(this,h,T))},B)); B.W=z}; g.H8X=function(B){var z="";g.uW(B,function(T,R){z+=R;z+=":";z+=T;z+="\r\n"}); return z}; g.oC=function(B,z,T){if(g.Ep(T))return B;T=g.H8X(T);if(typeof B==="string")return yn(B,g.Cr(z),T);g.cu(B,z,T);return B}; g.FM=function(B){g.K.call(this);this.U=B;this.T={}}; f4r=function(B,z,T,R,h,W){if(Array.isArray(T))for(var b=0;b=0)return!0;try{var z=new g.hX(B)}catch(T){return g.Cs(bhz,function(R){return B.search(R)>0})!=null}return z.X.match(YnY)?!0:g.Cs(bhz,function(T){return B.match(T)!=null})!=null}; g.Pu=function(B,z){return B.replace(w0P,function(T,R){try{var h=g.Sc(z,R);if(h==null||h.toString()==null)return T;h=h.toString();if(h==""||!g.Fy(g.IA(h)))return encodeURIComponent(h).replace(/%2C/g,",")}catch(W){}return T})}; xc=function(B,z){return Object.is(B,z)}; Dv=function(B){var z=vu;vu=B;return z}; qnK=function(B){if(B.ZA!==void 0){var z=kc;kc=!0;try{for(var T=g.d(B.ZA),R=T.next();!R.done;R=T.next()){var h=R.value;h.KL||(B=void 0,h.KL=!0,qnK(h),(B=h.tL)==null||B.call(h,h))}}finally{kc=z}}}; ihz=function(){var B;return((B=vu)==null?void 0:B.rB)!==!1}; cRP=function(B){B&&(B.eB=0);return Dv(B)}; LWr=function(B,z){Dv(z);if(B&&B.l0!==void 0&&B.AU!==void 0&&B.yz!==void 0){if(Ki(B))for(z=B.eB;zB.eB;)B.l0.pop(),B.yz.pop(),B.AU.pop()}}; rRK=function(B,z,T){CcK(B);if(B.ZA.length===0&&B.l0!==void 0)for(var R=0;R0}; ot5=function(B){B.l0!=null||(B.l0=[]);B.AU!=null||(B.AU=[]);B.yz!=null||(B.yz=[])}; CcK=function(B){B.ZA!=null||(B.ZA=[]);B.X5!=null||(B.X5=[])}; IEY=function(B){function z(){if(kc)throw Error("");if(vu!==null){var R=vu.eB++;ot5(vu);R0?" "+z:z))}}; g.qv=function(B,z){if(B.classList)Array.prototype.forEach.call(z,function(h){g.ww(B,h)}); else{var T={};Array.prototype.forEach.call(bH(B),function(h){T[h]=!0}); Array.prototype.forEach.call(z,function(h){T[h]=!0}); z="";for(var R in T)z+=z.length>0?" "+R:R;g.Ye(B,z)}}; g.iH=function(B,z){B.classList?B.classList.remove(z):g.lH(B,z)&&g.Ye(B,Array.prototype.filter.call(bH(B),function(T){return T!=z}).join(" "))}; g.ci=function(B,z){B.classList?Array.prototype.forEach.call(z,function(T){g.iH(B,T)}):g.Ye(B,Array.prototype.filter.call(bH(B),function(T){return!g.F5(z,T)}).join(" "))}; g.L2=function(B,z,T){T?g.ww(B,z):g.iH(B,z)}; gtz=function(B,z){var T=!g.lH(B,z);g.L2(B,z,T)}; g.C2=function(){g.Lh.call(this);this.T=0;this.endTime=this.startTime=null}; JRz=function(B,z){Array.isArray(z)||(z=[z]);z=z.map(function(T){return typeof T==="string"?T:T.property+" "+T.duration+"s "+T.timing+" "+T.delay+"s"}); g.Ml(B,"transition",z.join(","))}; rw=function(B,z,T,R,h){g.C2.call(this);this.U=B;this.V=z;this.X=T;this.W=R;this.L=Array.isArray(h)?h:[h]}; p0P=function(B,z,T,R){return new rw(B,z,{opacity:T},{opacity:R},{property:"opacity",duration:z,timing:"ease-in",delay:0})}; PcX=function(B){B=d1(B);if(B=="")return null;var z=String(B.slice(0,4)).toLowerCase();if(("url("1||B&&B.split(")"),null;if(B.indexOf("(")>0){if(/"|'/.test(B))return null;z=/([\-\w]+)\(/g;for(var T;T=z.exec(B);)if(!(T[1].toLowerCase()in $Wz))return null}return B}; om=function(B,z){B=g.XK[B];return B&&B.prototype?(z=Object.getOwnPropertyDescriptor(B.prototype,z))&&z.get||null:null}; xWB=function(B){var z=g.XK.CSSStyleDeclaration;return z&&z.prototype&&z.prototype[B]||null}; vtz=function(B,z,T,R){if(B)return B.apply(z,R);if(g.Ff&&document.documentMode<10){if(!z[T].call)throw Error("IE Clobbering detected");}else if(typeof z[T]!="function")throw Error("Clobbering detected");return z[T].apply(z,R)}; ntr=function(B){if(!B)return"";var z=document.createElement("div").style;DWP(B).forEach(function(T){var R=g.X8&&T in kSz?T:T.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");oP(R,"--")||oP(R,"var")||(T=vtz(KWl,B,B.getPropertyValue?"getPropertyValue":"getAttribute",[T])||"",T=PcX(T),T!=null&&vtz(mWz,z,z.setProperty?"setProperty":"setAttribute",[R,T]))}); return z.cssText||""}; DWP=function(B){g.B7(B)?B=g.Mg(B):(B=g.X5(B),g.GU(B,"cssText"));return B}; g.GE=function(B){var z,T=z=0,R=!1;B=B.split(uwY);for(var h=0;h.4?-1:1;return(z==0?null:z)==-1?"rtl":"ltr"}; g.Uq=function(B){if(B instanceof dw||B instanceof An||B instanceof am)return B;if(typeof B.next=="function")return new dw(function(){return B}); if(typeof B[Symbol.iterator]=="function")return new dw(function(){return B[Symbol.iterator]()}); if(typeof B.Fw=="function")return new dw(function(){return B.Fw()}); throw Error("Not an iterator or iterable.");}; dw=function(B){this.U=B}; An=function(B){this.U=B}; am=function(B){dw.call(this,function(){return B}); this.Y=B}; Mv=function(B,z,T,R,h,W,b,l){this.T=B;this.L=z;this.Y=T;this.V=R;this.W=h;this.X=W;this.U=b;this.J=l}; VN=function(B,z){if(z==0)return B.T;if(z==1)return B.U;var T=J2(B.T,B.Y,z),R=J2(B.Y,B.W,z);B=J2(B.W,B.U,z);T=J2(T,R,z);R=J2(R,B,z);return J2(T,R,z)}; NWK=function(B,z){var T=(z-B.T)/(B.U-B.T);if(T<=0)return 0;if(T>=1)return 1;for(var R=0,h=1,W=0,b=0;b<8;b++){W=VN(B,T);var l=(VN(B,T+1E-6)-W)/1E-6;if(Math.abs(W-z)<1E-6)return T;if(Math.abs(l)<1E-6)break;else W1E-6&&b<8;b++)W=0}; g.Jn=function(B){g.K.call(this);this.X=1;this.Y=[];this.W=0;this.T=[];this.U={};this.L=!!B}; j9z=function(B,z,T){g.MW(function(){B.apply(z,T)})}; g.p2=function(B){this.T=B}; $e=function(B){this.T=B}; X05=function(B){this.data=B}; Zh5=function(B){return B===void 0||B instanceof X05?B:new X05(B)}; Pi=function(B){this.T=B}; g.etr=function(B){var z=B.creation;B=B.expiration;return!!B&&Bg.YP()}; g.xe=function(B){this.T=B}; s9z=function(){}; vi=function(){}; DI=function(B){this.T=B;this.U=null}; ke=function(B){if(B.T==null)throw Error("Storage mechanism: Storage unavailable");B.isAvailable()||hz(Error("Storage mechanism: Storage unavailable"))}; K2=function(){var B=null;try{B=g.XK.localStorage||null}catch(z){}DI.call(this,B)}; Etz=function(){var B=null;try{B=g.XK.sessionStorage||null}catch(z){}DI.call(this,B)}; mh=function(B,z){this.U=B;this.T=z+"::"}; g.n2=function(B){var z=new K2;return z.isAvailable()?B?new mh(z,B):z:null}; uH=function(B,z){this.T=B;this.U=z}; Hi=function(B){this.T=[];if(B)a:{if(B instanceof Hi){var z=B.iZ();B=B.ML();if(this.T.length<=0){for(var T=this.T,R=0;R>>6:(W<65536?l[T++]=224|W>>>12:(l[T++]=240|W>>>18,l[T++]=128|W>>>12&63),l[T++]=128|W>>> 6&63),l[T++]=128|W&63);return l}; tn=function(B){for(var z=B.length;--z>=0;)B[z]=0}; jW=function(B,z,T,R,h){this.WC=B;this.Cc=z;this.s4=T;this.zp=R;this.POf=h;this.jO=B&&B.length}; Xf=function(B,z){this.kK=B;this.oP=0;this.gJ=z}; ZI=function(B,z){B.zM[B.pending++]=z&255;B.zM[B.pending++]=z>>>8&255}; eW=function(B,z,T){B.IQ>16-T?(B.Pv|=z<>16-B.IQ,B.IQ+=T-16):(B.Pv|=z<>>=1,T<<=1;while(--z>0);return T>>>1}; RMP=function(B,z,T){var R=Array(16),h=0,W;for(W=1;W<=15;W++)R[W]=h=h+T[W-1]<<1;for(T=0;T<=z;T++)h=B[T*2+1],h!==0&&(B[T*2]=TUl(R[h]++,h))}; hMB=function(B){var z;for(z=0;z<286;z++)B.Fg[z*2]=0;for(z=0;z<30;z++)B.cT[z*2]=0;for(z=0;z<19;z++)B.fX[z*2]=0;B.Fg[512]=1;B.Pq=B.iW=0;B.o2=B.matches=0}; Wgr=function(B){B.IQ>8?ZI(B,B.Pv):B.IQ>0&&(B.zM[B.pending++]=B.Pv);B.Pv=0;B.IQ=0}; bPB=function(B,z,T){Wgr(B);ZI(B,T);ZI(B,~T);Nv.UA(B.zM,B.window,z,T,B.pending);B.pending+=T}; Y7B=function(B,z,T,R){var h=z*2,W=T*2;return B[h]>>7)];sq(B,b,T);l=Re[b];l!==0&&(h-=hr[b],eW(B,h,l))}}while(R>1;b>=1;b--)Eq(B,T,b);w=W;do b=B.GM[1],B.GM[1]=B.GM[B.hR--],Eq(B,T,1),R=B.GM[1],B.GM[--B.O$]=b,B.GM[--B.O$]=R,T[w*2]=T[b*2]+T[R*2],B.depth[w]=(B.depth[b]>=B.depth[R]?B.depth[b]:B.depth[R])+1,T[b*2+1]=T[R*2+1]=w,B.GM[1]=w++,Eq(B,T,1);while(B.hR>= 2);B.GM[--B.O$]=B.GM[1];b=z.kK;w=z.oP;R=z.gJ.WC;h=z.gJ.jO;W=z.gJ.Cc;var q=z.gJ.s4,c=z.gJ.POf,L,C=0;for(L=0;L<=15;L++)B.mH[L]=0;b[B.GM[B.O$]*2+1]=0;for(z=B.O$+1;z<573;z++){var r=B.GM[z];L=b[b[r*2+1]*2+1]+1;L>c&&(L=c,C++);b[r*2+1]=L;if(!(r>w)){B.mH[L]++;var F=0;r>=q&&(F=W[r-q]);var A=b[r*2];B.Pq+=A*(L+F);h&&(B.iW+=A*(R[r*2+1]+F))}}if(C!==0){do{for(L=c-1;B.mH[L]===0;)L--;B.mH[L]--;B.mH[L+1]+=2;B.mH[c]--;C-=2}while(C>0);for(L=c;L!==0;L--)for(r=B.mH[L];r!==0;)R=B.GM[--z],R>w||(b[R*2+1]!==L&&(B.Pq+=(L- b[R*2+1])*b[R*2],b[R*2+1]=L),r--)}RMP(T,l,B.mH)}; w1B=function(B,z,T){var R,h=-1,W=z[1],b=0,l=7,w=4;W===0&&(l=138,w=3);z[(T+1)*2+1]=65535;for(R=0;R<=T;R++){var q=W;W=z[(R+1)*2+1];++b>>=1)if(z&1&&B.Fg[T*2]!==0)return 0;if(B.Fg[18]!==0||B.Fg[20]!==0||B.Fg[26]!==0)return 1;for(T=32;T<256;T++)if(B.Fg[T*2]!==0)return 1;return 0}; b7=function(B,z,T){B.zM[B.gq+B.o2*2]=z>>>8&255;B.zM[B.gq+B.o2*2+1]=z&255;B.zM[B.PW+B.o2]=T&255;B.o2++;z===0?B.Fg[T*2]++:(B.matches++,z--,B.Fg[(SW[T]+256+1)*2]++,B.cT[(z<256?Tq[z]:Tq[256+(z>>>7)])*2]++);return B.o2===B.mI-1}; l7=function(B,z){B.msg=Y0[z];return z}; wL=function(B){for(var z=B.length;--z>=0;)B[z]=0}; qG=function(B){var z=B.state,T=z.pending;T>B.E2&&(T=B.E2);T!==0&&(Nv.UA(B.output,z.zM,z.xq,T,B.kJ),B.kJ+=T,z.xq+=T,B.hX+=T,B.E2-=T,z.pending-=T,z.pending===0&&(z.xq=0))}; LE=function(B,z){var T=B.zG>=0?B.zG:-1,R=B.X1-B.zG,h=0;if(B.level>0){B.Mh.D0===2&&(B.Mh.D0=iPB(B));Wf(B,B.QY);Wf(B,B.xe);w1B(B,B.Fg,B.QY.oP);w1B(B,B.cT,B.xe.oP);Wf(B,B.Qp);for(h=18;h>=3&&B.fX[cGY[h]*2+1]===0;h--);B.Pq+=3*(h+1)+5+5+4;var W=B.Pq+3+7>>>3;var b=B.iW+3+7>>>3;b<=W&&(W=b)}else W=b=R+5;if(R+4<=W&&T!==-1)eW(B,z?1:0,3),bPB(B,T,R);else if(B.strategy===4||b===W)eW(B,2+(z?1:0),3),lcX(B,i7,cf);else{eW(B,4+(z?1:0),3);T=B.QY.oP+1;R=B.xe.oP+1;h+=1;eW(B,T-257,5);eW(B,R-1,5);eW(B,h-4,4);for(W=0;W>>8&255;B.zM[B.pending++]=z&255}; LgH=function(B,z){var T=B.Da,R=B.X1,h=B.hf,W=B.K8,b=B.X1>B.Rq-262?B.X1-(B.Rq-262):0,l=B.window,w=B.xF,q=B.Na,c=B.X1+258,L=l[R+h-1],C=l[R+h];B.hf>=B.oY&&(T>>=2);W>B.uK&&(W=B.uK);do{var r=z;if(l[r+h]===C&&l[r+h-1]===L&&l[r]===l[R]&&l[++r]===l[R+1]){R+=2;for(r++;l[++R]===l[++r]&&l[++R]===l[++r]&&l[++R]===l[++r]&&l[++R]===l[++r]&&l[++R]===l[++r]&&l[++R]===l[++r]&&l[++R]===l[++r]&&l[++R]===l[++r]&&Rh){B.Cn=z;h=r;if(r>=W)break;L=l[R+h-1];C=l[R+h]}}}while((z=q[z&w])>b&&--T!== 0);return h<=B.uK?h:B.uK}; Ie=function(B){var z=B.Rq,T;do{var R=B.cA-B.uK-B.X1;if(B.X1>=z+(z-262)){Nv.UA(B.window,B.window,z,z,0);B.Cn-=z;B.X1-=z;B.zG-=z;var h=T=B.M9;do{var W=B.head[--h];B.head[h]=W>=z?W-z:0}while(--T);h=T=z;do W=B.Na[--h],B.Na[h]=W>=z?W-z:0;while(--T);R+=z}if(B.Mh.zo===0)break;h=B.Mh;T=B.window;W=B.X1+B.uK;var b=h.zo;b>R&&(b=R);b===0?T=0:(h.zo-=b,Nv.UA(T,h.input,h.tM,b,W),h.state.wrap===1?h.VU=oe(h.VU,T,b,W):h.state.wrap===2&&(h.VU=Fx(h.VU,T,b,W)),h.tM+=b,h.y4+=b,T=b);B.uK+=T;if(B.uK+B.sN>=3)for(R=B.X1-B.sN, B.CQ=B.window[R],B.CQ=(B.CQ<=3&&(B.CQ=(B.CQ<=3)if(T=b7(B,B.X1-B.Cn,B.Yg-3),B.uK-=B.Yg,B.Yg<=B.Jd&&B.uK>=3){B.Yg--;do B.X1++,B.CQ=(B.CQ<=3&&(B.CQ=(B.CQ<4096)&&(B.Yg=2));if(B.hf>=3&&B.Yg<=B.hf){R=B.X1+B.uK-3;T=b7(B,B.X1-1-B.dM,B.hf-3);B.uK-=B.hf-1;B.hf-=2;do++B.X1<=R&&(B.CQ=(B.CQ<=3&&B.X1>0&&(R=B.X1-1,T=W[R],T===W[++R]&&T===W[++R]&&T===W[++R])){for(h=B.X1+258;T===W[++R]&&T===W[++R]&&T===W[++R]&&T===W[++R]&&T===W[++R]&&T===W[++R]&&T===W[++R]&&T===W[++R]&&RB.uK&&(B.Yg=B.uK)}B.Yg>=3?(T=b7(B,1,B.Yg-3),B.uK-=B.Yg,B.X1+=B.Yg,B.Yg=0):(T=b7(B,0,B.window[B.X1]),B.uK--,B.X1++);if(T&&(LE(B,!1),B.Mh.E2===0))return 1}B.sN=0;return z=== 4?(LE(B,!0),B.Mh.E2===0?3:4):B.o2&&(LE(B,!1),B.Mh.E2===0)?1:2}; rGr=function(B,z){for(var T;;){if(B.uK===0&&(Ie(B),B.uK===0)){if(z===0)return 1;break}B.Yg=0;T=b7(B,0,B.window[B.X1]);B.uK--;B.X1++;if(T&&(LE(B,!1),B.Mh.E2===0))return 1}B.sN=0;return z===4?(LE(B,!0),B.Mh.E2===0?3:4):B.o2&&(LE(B,!1),B.Mh.E2===0)?1:2}; Ar=function(B,z,T,R,h){this.e_=B;this.xGu=z;this.pDu=T;this.zmF=R;this.func=h}; oa5=function(){this.Mh=null;this.status=0;this.zM=null;this.wrap=this.pending=this.xq=this.wI=0;this.b1=null;this.QE=0;this.method=8;this.ZH=-1;this.xF=this.zL=this.Rq=0;this.window=null;this.cA=0;this.head=this.Na=null;this.K8=this.oY=this.strategy=this.level=this.Jd=this.Da=this.hf=this.uK=this.Cn=this.X1=this.xX=this.dM=this.Yg=this.zG=this.aR=this.w5=this.oF=this.M9=this.CQ=0;this.Fg=new Nv.FG(1146);this.cT=new Nv.FG(122);this.fX=new Nv.FG(78);wL(this.Fg);wL(this.cT);wL(this.fX);this.Qp=this.xe= this.QY=null;this.mH=new Nv.FG(16);this.GM=new Nv.FG(573);wL(this.GM);this.O$=this.hR=0;this.depth=new Nv.FG(573);wL(this.depth);this.IQ=this.Pv=this.sN=this.matches=this.iW=this.Pq=this.gq=this.o2=this.mI=this.PW=0}; FgP=function(B,z){if(!B||!B.state||z>5||z<0)return B?l7(B,-2):-2;var T=B.state;if(!B.output||!B.input&&B.zo!==0||T.status===666&&z!==4)return l7(B,B.E2===0?-5:-2);T.Mh=B;var R=T.ZH;T.ZH=z;if(T.status===42)if(T.wrap===2)B.VU=0,CE(T,31),CE(T,139),CE(T,8),T.b1?(CE(T,(T.b1.text?1:0)+(T.b1.d$?2:0)+(T.b1.extra?4:0)+(T.b1.name?8:0)+(T.b1.comment?16:0)),CE(T,T.b1.time&255),CE(T,T.b1.time>>8&255),CE(T,T.b1.time>>16&255),CE(T,T.b1.time>>24&255),CE(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),CE(T,T.b1.os& 255),T.b1.extra&&T.b1.extra.length&&(CE(T,T.b1.extra.length&255),CE(T,T.b1.extra.length>>8&255)),T.b1.d$&&(B.VU=Fx(B.VU,T.zM,T.pending,0)),T.QE=0,T.status=69):(CE(T,0),CE(T,0),CE(T,0),CE(T,0),CE(T,0),CE(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),CE(T,3),T.status=113);else{var h=8+(T.zL-8<<4)<<8;h|=(T.strategy>=2||T.level<2?0:T.level<6?1:T.level===6?2:3)<<6;T.X1!==0&&(h|=32);T.status=113;rL(T,h+(31-h%31));T.X1!==0&&(rL(T,B.VU>>>16),rL(T,B.VU&65535));B.VU=1}if(T.status===69)if(T.b1.extra){for(h= T.pending;T.QE<(T.b1.extra.length&65535)&&(T.pending!==T.wI||(T.b1.d$&&T.pending>h&&(B.VU=Fx(B.VU,T.zM,T.pending-h,h)),qG(B),h=T.pending,T.pending!==T.wI));)CE(T,T.b1.extra[T.QE]&255),T.QE++;T.b1.d$&&T.pending>h&&(B.VU=Fx(B.VU,T.zM,T.pending-h,h));T.QE===T.b1.extra.length&&(T.QE=0,T.status=73)}else T.status=73;if(T.status===73)if(T.b1.name){h=T.pending;do{if(T.pending===T.wI&&(T.b1.d$&&T.pending>h&&(B.VU=Fx(B.VU,T.zM,T.pending-h,h)),qG(B),h=T.pending,T.pending===T.wI)){var W=1;break}W=T.QEh&&(B.VU=Fx(B.VU,T.zM,T.pending-h,h));W===0&&(T.QE=0,T.status=91)}else T.status=91;if(T.status===91)if(T.b1.comment){h=T.pending;do{if(T.pending===T.wI&&(T.b1.d$&&T.pending>h&&(B.VU=Fx(B.VU,T.zM,T.pending-h,h)),qG(B),h=T.pending,T.pending===T.wI)){W=1;break}W=T.QEh&&(B.VU=Fx(B.VU,T.zM,T.pending-h,h));W===0&&(T.status=103)}else T.status= 103;T.status===103&&(T.b1.d$?(T.pending+2>T.wI&&qG(B),T.pending+2<=T.wI&&(CE(T,B.VU&255),CE(T,B.VU>>8&255),B.VU=0,T.status=113)):T.status=113);if(T.pending!==0){if(qG(B),B.E2===0)return T.ZH=-1,0}else if(B.zo===0&&(z<<1)-(z>4?9:0)<=(R<<1)-(R>4?9:0)&&z!==4)return l7(B,-5);if(T.status===666&&B.zo!==0)return l7(B,-5);if(B.zo!==0||T.uK!==0||z!==0&&T.status!==666){R=T.strategy===2?rGr(T,z):T.strategy===3?C8P(T,z):ae[T.level].func(T,z);if(R===3||R===4)T.status=666;if(R===1||R===3)return B.E2===0&&(T.ZH= -1),0;if(R===2&&(z===1?(eW(T,2,3),sq(T,256,i7),T.IQ===16?(ZI(T,T.Pv),T.Pv=0,T.IQ=0):T.IQ>=8&&(T.zM[T.pending++]=T.Pv&255,T.Pv>>=8,T.IQ-=8)):z!==5&&(eW(T,0,3),bPB(T,0,0),z===3&&(wL(T.head),T.uK===0&&(T.X1=0,T.zG=0,T.sN=0))),qG(B),B.E2===0))return T.ZH=-1,0}if(z!==4)return 0;if(T.wrap<=0)return 1;T.wrap===2?(CE(T,B.VU&255),CE(T,B.VU>>8&255),CE(T,B.VU>>16&255),CE(T,B.VU>>24&255),CE(T,B.y4&255),CE(T,B.y4>>8&255),CE(T,B.y4>>16&255),CE(T,B.y4>>24&255)):(rL(T,B.VU>>>16),rL(T,B.VU&65535));qG(B);T.wrap>0&& (T.wrap=-T.wrap);return T.pending!==0?0:1}; UE=function(B){if(!(this instanceof UE))return new UE(B);B=this.options=Nv.assign({level:-1,method:8,chunkSize:16384,PU:15,LJm:8,strategy:0,to:""},B||{});B.raw&&B.PU>0?B.PU=-B.PU:B.oB&&B.PU>0&&B.PU<16&&(B.PU+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Mh=new IcK;this.Mh.E2=0;var z=this.Mh;var T=B.level,R=B.method,h=B.PU,W=B.LJm,b=B.strategy;if(z){var l=1;T===-1&&(T=6);h<0?(l=0,h=-h):h>15&&(l=2,h-=16);if(W<1||W>9||R!==8||h<8||h>15||T<0||T>9||b<0||b>4)z=l7(z,-2);else{h===8&&(h=9); var w=new oa5;z.state=w;w.Mh=z;w.wrap=l;w.b1=null;w.zL=h;w.Rq=1<>=7;W<30;W++)for(hr[W]=b<<7,h=0;h<1<=q.Rq&&(z===0&&(wL(q.head),q.X1=0,q.zG=0,q.sN=0),T=new Nv.JP(q.Rq),Nv.UA(T,W,b-q.Rq,q.Rq,0),W=T,b=q.Rq);T=B.zo;R=B.tM;h=B.input;B.zo=b;B.tM=0;B.input=W;for(Ie(q);q.uK>=3;){W=q.X1;b=q.uK-2;do q.CQ=(q.CQ<>(0,T[78])(T[73],T[77]),T[79]>-3&&(T[35]==-1&&((0,T[48])(T[77],(0,T[40])(),T[58]),{})||(0,T[51])(T[67],T[42])),T[49]!==-6&&(T[71]>=-5&&((0,T[48])(T[2],(0,T[11])(),T[19]),1)||(0,T[78])(T[64],T[61])),T[60]!==-2&&(T[51]>6||((((0,T[22])(T[9],T[81]),T[52])(T[6], (0,T[15])(),T[62]),T[52])(T[6],(0,T[28])(),T[62]),Y[8]))&&(0,T[74])(((0,T[82])(T[40],T[65]),T[36])(T[52],T[12]),T[3],T[31],T[71]),T[24]<-2?(0,T[36])(T[62],T[41]):(0,T[36])(T[71],T[66])}catch(R){(0,T[55])((0,T[15])((0,T[59])(T[62]),T[33],(0,T[33])(T[62],(0,T[5])(),T[4]),T[62],(0,T[5])(),T[43]),T[33],T[22],(0,T[5])(),T[43]),(((0,T[36])(T[52],T[6]),T[55])((0,T[3])(T[75],T[22]),T[33],T[22],(0,T[5])(),T[4]),T[3])(T[48],T[52])}finally{(T[50]>=6||((0,T[55])((0,T[55])(((0,T[28])(T[14],T[22]),T[new Date(Y[65])/ 1E3])(T[44],T[62])-(0,T[36])(T[22],T[51]),T[63],T[32],T[62]),T[3],T[47],T[71]),0))&&(0,T[78])(((0,T[19])(T[46]),T[55])(T[60],T[new Date(Y[75])/1E3]),T[38],(0,T[76])(T[18],T[7]),T[78],(0,T[74])(T[43],T[31]),T[70]),(T[67]===10||((0,T[45])(((0,T[66])(T[82],T[68]),T[15])(T[82],T[63]),T[63],(0,T[45])((0,T[7])(T[19],T[13]),T[33],(0,T[49])(T[52]),T[31],T[8]),T[52],(0,T[55])(),T[73])|(((0,T[1])((0,T[33])(T[64],T[17]),T[58],T[37],T[17]),(0,T[49])(T[8]),T[58])(T[30],T[52]),T[33])(T[47],T[8]),Y[8]))&&(((0,T[49])(T[17]), ((0,T[9])(T[69],T[13]),T[9])(T[43],T[17]),(0,T[84])(T[8],(0,T[35])(),T[73]),T[33])(T[22],T[8]),T[63])(T[17],(0,T[35])(),T[73])===(0,T[45])((0,T[1])((0,T[33])(T[50],T[52]),T[33],T[10],T[76]),T[33],(0,T[1])((0,T[Math[Y[55]](8,new Date(Y[76])/1E3)+new Date(Y[56])/1E3*147+-26962])(T[8],T[54]),T[33],T[27],T[8]),T[32],T[8])}}catch(R){return Y[45]+B}return z[Y[14]](Y[8])}; g.gL=function(B){this.name=B}; naz=function(B){this.iK=oF(B)}; Jr=function(B){this.iK=oF(B)}; pE=function(B){this.iK=oF(B)}; uhK=function(B){this.iK=oF(B)}; $0=function(B){this.iK=oF(B)}; Pf=function(B){this.iK=oF(B)}; x0=function(B){this.iK=oF(B)}; vf=function(B){this.iK=oF(B)}; De=function(B){this.iK=oF(B)}; k0=function(B){this.iK=oF(B)}; KE=function(B){this.iK=oF(B)}; mT=function(B){this.iK=oF(B)}; nE=function(B){this.iK=oF(B)}; u7=function(B){this.iK=oF(B)}; Hf=function(B){this.iK=oF(B)}; fE=function(B){this.iK=oF(B,500)}; OE=function(B){this.iK=oF(B)}; NG=function(B){this.iK=oF(B)}; HPP=function(B){this.iK=oF(B)}; fc5=function(){return g.sH("yt.ads.biscotti.lastId_")||""}; OPr=function(B){g.Zz("yt.ads.biscotti.lastId_",B)}; jk=function(){var B=arguments,z=tr;B.length>1?z[B[0]]=B[1]:B.length===1&&Object.assign(z,B[0])}; g.ek=function(B,z){return B in tr?tr[B]:z}; sE=function(B){var z=tr.EXPERIMENT_FLAGS;return z?z[B]:void 0}; NUl=function(B){EE.forEach(function(z){return z(B)})}; g.BP=function(B){return B&&window.yterr?function(){try{return B.apply(this,arguments)}catch(z){g.Sk(z)}}:B}; g.Sk=function(B){var z=g.sH("yt.logging.errors.log");z?z(B,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=g.ek("ERRORS",[]),z.push([B,"ERROR",void 0,void 0,void 0,void 0,void 0]),jk("ERRORS",z));NUl(B)}; zF=function(B,z,T,R,h){var W=g.sH("yt.logging.errors.log");W?W(B,"WARNING",z,T,R,void 0,h):(W=g.ek("ERRORS",[]),W.push([B,"WARNING",z,T,R,void 0,h]),jk("ERRORS",W))}; TF=function(B,z){z=B.split(z);for(var T={},R=0,h=z.length;R1?B[1]:B[0])):{}}; Yv=function(B,z){return ZPz(B,z||{},!0)}; lA=function(B,z){return ZPz(B,z||{},!1)}; ZPz=function(B,z,T){var R=B.split("#",2);B=R[0];R=R.length>1?"#"+R[1]:"";var h=B.split("?",2);B=h[0];h=ho(h[1]||"");for(var W in z)if(T||!g.ZF(h,W))h[W]=z[W];return g.Qn(B,h)+R}; wJ=function(B){if(!z)var z=window.location.href;var T=g.It(B)[1]||null,R=g.GK(B);T&&R?(B=g.It(B),z=g.It(z),B=B[3]==z[3]&&B[1]==z[1]&&B[4]==z[4]):B=R?g.GK(z)===R&&(Number(g.It(z)[4]||null)||null)===(Number(g.It(B)[4]||null)||null):!0;return B}; qR=function(B){B||(B=document.location.href);B=g.It(B)[1]||null;return B!==null&&B==="https"}; iA=function(B){B=eMX(B);return B===null?!1:B[0]==="com"&&B[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; ssz=function(B){B=eMX(B);return B===null?!1:B[1]==="google"?!0:B[2]==="google"?B[0]==="au"&&B[1]==="com"?!0:B[0]==="uk"&&B[1]==="co"?!0:!1:!1}; eMX=function(B){B=g.GK(B);return B!==null?B.split(".").reverse():null}; tQK=function(B){return B&&B.match(Ea5)?B:rO(B)}; CL=function(B){var z=cP;B=B===void 0?fc5():B;var T=Object,R=T.assign,h=LL(z);var W=z.T;try{var b=W.screenX;var l=W.screenY}catch(V){}try{var w=W.outerWidth;var q=W.outerHeight}catch(V){}try{var c=W.innerWidth;var L=W.innerHeight}catch(V){}try{var C=W.screenLeft;var r=W.screenTop}catch(V){}try{c=W.innerWidth,L=W.innerHeight}catch(V){}try{var F=W.screen.availWidth;var A=W.screen.availTop}catch(V){}W=[C,r,b,l,F,A,w,q,c,L];b=Wub(!1,z.T.top);l={};var a=a===void 0?g.XK:a;w=new Ow;"SVGElement"in a&&"createElementNS"in a.document&&w.set(0);q=Rvb();q["allow-top-navigation-by-user-activation"]&&w.set(1);q["allow-popups-to-escape-sandbox"]&&w.set(2);a.crypto&&a.crypto.subtle&&w.set(3);"TextDecoder"in a&&"TextEncoder"in a&&w.set(4);a=MNB(w);z=(l.bc=a,l.bih=b.height,l.biw=b.width,l.brdim=W.join(),l.vis=um(z.U),l.wgl=!!im.WebGLRenderingContext,l);T=R.call(T,h,z);T.ca_type="image";B&&(T.bid=B);return T}; LL=function(B){var z={};z.dt=S7z;z.flash="0";a:{try{var T=B.T.top.location.href}catch(c){B=2;break a}B=T?T===B.U.location.href?0:1:2}z=(z.frm=B,z);try{z.u_tz=-(new Date).getTimezoneOffset();var R=R===void 0?im:R;try{var h=R.history.length}catch(c){h=0}z.u_his=h;var W;z.u_h=(W=im.screen)==null?void 0:W.height;var b;z.u_w=(b=im.screen)==null?void 0:b.width;var l;z.u_ah=(l=im.screen)==null?void 0:l.availHeight;var w;z.u_aw=(w=im.screen)==null?void 0:w.availWidth;var q;z.u_cd=(q=im.screen)==null?void 0: q.colorDepth}catch(c){}return z}; z0B=function(){if(!ByK)return null;var B=ByK();return"open"in B?B:null}; g.oc=function(B){switch(rJ(B)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; rJ=function(B){return B&&"status"in B?B.status:-1}; g.FN=function(B,z){typeof B==="function"&&(B=g.BP(B));return window.setTimeout(B,z)}; g.Ic=function(B,z){typeof B==="function"&&(B=g.BP(B));return window.setInterval(B,z)}; g.GF=function(B){window.clearTimeout(B)}; g.dJ=function(B){window.clearInterval(B)}; g.ac=function(B){B=Ao(B);return typeof B==="string"&&B==="false"?!1:!!B}; g.UD=function(B,z){B=Ao(B);return B===void 0&&z!==void 0?z:Number(B||0)}; MR=function(){return g.ek("EXPERIMENTS_TOKEN","")}; Ao=function(B){return g.ek("EXPERIMENT_FLAGS",{})[B]}; VH=function(){for(var B=[],z=g.ek("EXPERIMENTS_FORCED_FLAGS",{}),T=g.d(Object.keys(z)),R=T.next();!R.done;R=T.next())R=R.value,B.push({key:R,value:String(z[R])});T=g.ek("EXPERIMENT_FLAGS",{});R=g.d(Object.keys(T));for(var h=R.next();!h.done;h=R.next())h=h.value,h.startsWith("force_")&&z[h]===void 0&&B.push({key:h,value:String(T[h])});return B}; QH=function(B,z,T,R,h,W,b,l){function w(){(q&&"readyState"in q?q.readyState:0)===4&&z&&g.BP(z)(q)} T=T===void 0?"GET":T;R=R===void 0?"":R;l=l===void 0?!1:l;var q=z0B();if(!q)return null;"onloadend"in q?q.addEventListener("loadend",w,!1):q.onreadystatechange=w;g.ac("debug_forward_web_query_parameters")&&(B=TyH(B));q.open(T,B,!0);W&&(q.responseType=W);b&&(q.withCredentials=!0);T=T==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(h=R0B(B,h))for(var c in h)q.setRequestHeader(c,h[c]),"content-type"===c.toLowerCase()&&(T=!1);T&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){B={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(B)}catch(L){zF(L)}}q.send(R);return q}; R0B=function(B,z){z=z===void 0?{}:z;var T=wJ(B),R=g.ek("INNERTUBE_CLIENT_NAME"),h=g.ac("web_ajax_ignore_global_headers_if_set"),W;for(W in h0b){var b=g.ek(h0b[W]),l=W==="X-Goog-AuthUser"||W==="X-Goog-PageId";W!=="X-Goog-Visitor-Id"||b||(b=g.ek("VISITOR_DATA"));var w;if(!(w=!b)){if(!(w=T||(g.GK(B)?!1:!0))){w=B;var q;if(q=g.ac("add_auth_headers_to_remarketing_google_dot_com_ping")&&W==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY")&&ssz(w))w=da(w)||"",w=w.split("/"), w="/"+(w.length>1?w[1]:""),q=w==="/pagead";w=q?!0:!1}w=!w}w||h&&z[W]!==void 0||R==="TVHTML5_UNPLUGGED"&&l||(z[W]=b)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(T||!g.GK(B))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(T||!g.GK(B)){try{var c=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(L){}c&&(z["X-YouTube-Time-Zone"]=c)}document.location.hostname.endsWith("youtubeeducation.com")||!T&&g.GK(B)||(z["X-YouTube-Ad-Signals"]= Rc(CL()));return z}; gJ=function(B,z){z.method="POST";z.postParams||(z.postParams={});return g.yH(B,z)}; YwB=function(B,z){if(window.fetch&&z.format!=="XML"){var T={method:z.method||"GET",credentials:"same-origin"};z.headers&&(T.headers=z.headers);z.priority&&(T.priority=z.priority);B=WSz(B,z);var R=bil(B,z);R&&(T.body=R);z.withCredentials&&(T.credentials="include");var h=z.context||g.XK,W=!1,b;fetch(B,T).then(function(l){if(!W){W=!0;b&&g.GF(b);var w=l.ok,q=function(c){c=c||{};w?z.onSuccess&&z.onSuccess.call(h,c,l):z.onError&&z.onError.call(h,c,l);z.onFinish&&z.onFinish.call(h,c,l)}; (z.format||"JSON")==="JSON"&&(w||l.status>=400&&l.status<500)?l.json().then(q,function(){q(null)}):q(null)}}).catch(function(){z.onError&&z.onError.call(h,{},{})}); B=z.timeout||0;z.onFetchTimeout&&B>0&&(b=g.FN(function(){W||(W=!0,g.GF(b),z.onFetchTimeout.call(z.context||g.XK))},B))}else g.yH(B,z)}; g.yH=function(B,z){var T=z.format||"JSON";B=WSz(B,z);var R=bil(B,z),h=!1,W=lvH(B,function(w){if(!h){h=!0;l&&g.GF(l);var q=g.oc(w),c=null,L=400<=w.status&&w.status<500,C=500<=w.status&&w.status<600;if(q||L||C)c=wud(B,T,w,z.convertToSafeHtml);q&&(q=qw5(T,w,c));c=c||{};L=z.context||g.XK;q?z.onSuccess&&z.onSuccess.call(L,w,c):z.onError&&z.onError.call(L,w,c);z.onFinish&&z.onFinish.call(L,w,c)}},z.method,R,z.headers,z.responseType,z.withCredentials); R=z.timeout||0;if(z.onTimeout&&R>0){var b=z.onTimeout;var l=g.FN(function(){h||(h=!0,W.abort(),g.GF(l),b.call(z.context||g.XK,W))},R)}return W}; WSz=function(B,z){z.includeDomain&&(B=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+B);var T=g.ek("XSRF_FIELD_NAME");if(z=z.urlParams)z[T]&&delete z[T],B=Yv(B,z);return B}; bil=function(B,z){var T=g.ek("XSRF_FIELD_NAME"),R=g.ek("XSRF_TOKEN"),h=z.postBody||"",W=z.postParams,b=g.ek("XSRF_FIELD_NAME"),l;z.headers&&(l=z.headers["Content-Type"]);z.excludeXsrf||g.GK(B)&&!z.withCredentials&&g.GK(B)!==document.location.hostname||z.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||z.postParams&&z.postParams[b]||(W||(W={}),W[T]=R);(g.ac("ajax_parse_query_data_only_when_filled")&&W&&Object.keys(W).length>0||W)&&typeof h==="string"&&(h=ho(h),g.RP(h,W),h=z.postBodyFormat&& z.postBodyFormat==="JSON"?JSON.stringify(h):g.Vn(h));W=h||W&&!g.Ep(W);!iid&&W&&z.method!=="POST"&&(iid=!0,g.Sk(Error("AJAX request with postData should use POST")));return h}; wud=function(B,z,T,R){var h=null;switch(z){case "JSON":try{var W=T.responseText}catch(b){throw R=Error("Error reading responseText"),R.params=B,zF(R),b;}B=T.getResponseHeader("Content-Type")||"";W&&B.indexOf("json")>=0&&(W.substring(0,5)===")]}'\n"&&(W=W.substring(5)),h=JSON.parse(W));break;case "XML":if(B=(B=T.responseXML)?cXz(B):null)h={},g.Ks(B.getElementsByTagName("*"),function(b){h[b.tagName]=LSz(b)})}R&&Cb5(h); return h}; Cb5=function(B){if(g.zU(B))for(var z in B)z==="html_content"||uKK(z,"_html")?B[z]=Sz(B[z]):Cb5(B[z])}; qw5=function(B,z,T){if(z&&z.status===204)return!0;switch(B){case "JSON":return!!T;case "XML":return Number(T&&T.return_code)===0;case "RAW":return!0;default:return!!T}}; cXz=function(B){return B?(B=("responseXML"in B?B.responseXML:B).getElementsByTagName("root"))&&B.length>0?B[0]:null:null}; LSz=function(B){var z="";g.Ks(B.childNodes,function(T){z+=T.nodeValue}); return z}; TyH=function(B){var z=window.location.search,T=g.GK(B);g.ac("debug_handle_relative_url_for_query_forward_killswitch")||!T&&wJ(B)&&(T=document.location.hostname);var R=da(B);R=(T=T&&(T.endsWith("youtube.com")||T.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!T||R)return B;var h=ho(z),W={};g.Ks(rXz,function(b){h[b]&&(W[b]=h[b])}); return lA(B,W)}; pL=function(B,z){var T=g.zR(z),R;return(new g.QI(function(h,W){T.onSuccess=function(b){g.oc(b)?h(new ocl(b)):W(new Jo("Request failed, status="+rJ(b),"net.badstatus",b))}; T.onError=function(b){W(new Jo("Unknown request error","net.unknown",b))}; T.onTimeout=function(b){W(new Jo("Request timed out","net.timeout",b))}; R=g.yH(B,T)})).d2(function(h){if(h instanceof kt){var W; (W=R)==null||W.abort()}return xt(h)})}; g.$v=function(B,z,T,R){function h(l,w,q){return l.d2(function(c){if(w<=0||rJ(c.xhr)===403)return xt(new Jo("Request retried too many times","net.retryexhausted",c.xhr,c));c=Math.pow(2,T-w+1)*q;var L=b>0?Math.min(b,c):c;return W(q).then(function(){return h(pL(B,z),w-1,L)})})} function W(l){return new g.QI(function(w){setTimeout(w,l)})} var b=b===void 0?-1:b;return h(pL(B,z),T-1,R)}; Jo=function(B,z,T){iW.call(this,B+", errorCode="+z);this.errorCode=z;this.xhr=T;this.name="PromiseAjaxError"}; ocl=function(B){this.xhr=B}; PP=function(B){this.T=B===void 0?null:B;this.U=0;this.Y=null}; xv=function(B){var z=new PP;B=B===void 0?null:B;z.U=2;z.Y=B===void 0?null:B;return z}; vP=function(B){var z=new PP;B=B===void 0?null:B;z.U=1;z.Y=B===void 0?null:B;return z}; g.KL=function(B,z,T,R,h){DM||kv.set(""+B,z,{pA:T,path:"/",domain:R===void 0?"youtube.com":R,secure:h===void 0?!1:h})}; g.m4=function(B,z){if(!DM)return kv.get(""+B,z)}; g.nL=function(B,z,T){DM||kv.remove(""+B,z===void 0?"/":z,T===void 0?"youtube.com":T)}; FSr=function(){if(g.ac("embeds_web_enable_cookie_detection_fix")){if(!g.XK.navigator.cookieEnabled)return!1}else if(!kv.isEnabled())return!1;if(!kv.isEmpty())return!0;g.ac("embeds_web_enable_cookie_detection_fix")?kv.set("TESTCOOKIESENABLED","1",{pA:60,EgZ:"none",secure:!0}):kv.set("TESTCOOKIESENABLED","1",{pA:60});if(kv.get("TESTCOOKIESENABLED")!=="1")return!1;kv.remove("TESTCOOKIESENABLED");return!0}; g.u=function(B,z){if(B)return B[z.name]}; uA=function(B){var z=g.ek("INNERTUBE_HOST_OVERRIDE");z&&(B=String(z)+String(Ap(B)));return B}; IvK=function(B){var z={};g.ac("json_condensed_response")&&(z.prettyPrint="false");return B=lA(B,z)}; HP=function(B,z){var T=T===void 0?{}:T;B={method:z===void 0?"POST":z,mode:wJ(B)?"same-origin":"cors",credentials:wJ(B)?"same-origin":"include"};z={};for(var R=g.d(Object.keys(T)),h=R.next();!h.done;h=R.next())h=h.value,T[h]&&(z[h]=T[h]);Object.keys(z).length>0&&(B.headers=z);return B}; fL=function(){var B=/Chrome\/(\d+)/.exec(g.Va());return B?parseFloat(B[1]):NaN}; OD=function(){var B=/\sCobalt\/(\S+)\s/.exec(g.Va());if(!B)return NaN;var z=[];B=g.d(B[1].split("."));for(var T=B.next();!T.done;T=B.next())T=parseInt(T.value,10),T>=0&&z.push(T);return parseFloat(z.join("."))}; to=function(){return g.NR("android")&&g.NR("chrome")&&!(g.NR("trident/")||g.NR("edge/"))&&!g.NR("cobalt")}; Gdb=function(){return g.NR("armv7")||g.NR("aarch64")||g.NR("android")}; g.jH=function(){return g.NR("cobalt")}; XN=function(){return g.NR("cobalt")&&g.NR("appletv")}; ZM=function(){return g.NR("(ps3; leanback shell)")||g.NR("ps3")&&g.jH()}; doP=function(){return g.NR("(ps4; leanback shell)")||g.NR("ps4")&&g.jH()}; g.AXd=function(){return g.jH()&&(g.NR("ps4 vr")||g.NR("ps4 pro vr"))}; eH=function(){var B=/WebKit\/([0-9]+)/.exec(g.Va());return!!(B&&parseInt(B[1],10)>=600)}; sD=function(){var B=/WebKit\/([0-9]+)/.exec(g.Va());return!!(B&&parseInt(B[1],10)>=602)}; avb=function(){return g.NR("iemobile")||g.NR("windows phone")&&g.NR("edge")}; BZ=function(){return(ED||SH)&&g.NR("applewebkit")&&!g.NR("version")&&(!g.NR("safari")||g.NR("gsa/"))}; Th=function(){return g.zh&&g.NR("version/")}; R6=function(){return g.NR("smart-tv")&&g.NR("samsung")}; g.NR=function(B){var z=g.Va();return z?z.toLowerCase().indexOf(B)>=0:!1}; hQ=function(){return bql()||BZ()||Th()?!0:g.ek("EOM_VISITOR_DATA")?!1:!0}; WZ=function(B,z){return z===void 0||z===null?B:z==="1"||z===!0||z===1||z==="True"?!0:!1}; b9=function(B,z,T){for(var R in T)if(T[R]==z)return T[R];return B}; YK=function(B,z){return z===void 0||z===null?B:Number(z)}; l9=function(B,z){return z===void 0||z===null?B:z.toString()}; wS=function(B,z){if(z){if(B==="fullwidth")return Infinity;if(B==="fullheight")return 0}return B&&(z=B.match(UoB))&&(B=Number(z[2]),z=Number(z[1]),!isNaN(B)&&!isNaN(z)&&B>0)?z/B:NaN}; q4=function(B){var z=B.docid||B.video_id||B.videoId||B.id;if(z)return z;z=B.raw_player_response;z||(B=B.player_response)&&(z=JSON.parse(B));return z&&z.videoDetails&&z.videoDetails.videoId||null}; MiB=function(B){return i9(B,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.cZ=function(B){return B==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||B==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; i9=function(B,z){z=(z===void 0?0:z)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var T=B.raw_embedded_player_response;if(!T&&(B=B.embedded_player_response))try{T=JSON.parse(B)}catch(R){return z}return T?b9(z,T.embeddedPlayerMode,ViP):z}; CD=function(B){iW.call(this,B.message||B.description||B.name);this.isMissing=B instanceof LD;this.isTimeout=B instanceof Jo&&B.errorCode=="net.timeout";this.isCanceled=B instanceof kt}; LD=function(){iW.call(this,"Biscotti ID is missing from server")}; QCB=function(){if(g.ac("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!hQ())return Error("User has not consented - not fetching biscotti id.");var B=g.ek("PLAYER_VARS",{});if(g.Sc(B,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(MiB(B))return Error("Biscotti id fetching has been disabled for pfl.")}; puz=function(){var B=QCB();if(B!==void 0)return xt(B);rS||(rS=pL("//googleads.g.doubleclick.net/pagead/id",yXY).then(gc5).d2(function(z){return JXB(2,z)})); return rS}; gc5=function(B){B=B.xhr.responseText;if(!oP(B,")]}'"))throw new LD;B=JSON.parse(B.substr(4));if((B.type||1)>1)throw new LD;B=B.id;OPr(B);rS=vP(B);$o5(18E5,2);return B}; JXB=function(B,z){z=new CD(z);OPr("");rS=xv(z);B>0&&$o5(12E4,B-1);throw z;}; $o5=function(B,z){g.FN(function(){pL("//googleads.g.doubleclick.net/pagead/id",yXY).then(gc5,function(T){return JXB(z,T)}).d2(g.LF)},B)}; Pbl=function(){try{var B=g.sH("yt.ads.biscotti.getId_");return B?B():puz()}catch(z){return xt(z)}}; vcB=function(B){B&&(B.dataset?B.dataset[xoB()]="true":TFX(B))}; Dor=function(B){return B?B.dataset?B.dataset[xoB()]:B.getAttribute("data-loaded"):null}; xoB=function(){return kdl.loaded||(kdl.loaded="loaded".replace(/\-([a-z])/g,function(B,z){return z.toUpperCase()}))}; KSz=function(){var B=document;if("visibilityState"in B)return B.visibilityState;var z=o6+"VisibilityState";if(z in B)return B[z]}; FY=function(B,z){var T;Sa(B,function(R){T=z[R];return!!T}); return T}; I6=function(B){if(B.requestFullscreen)B=B.requestFullscreen(void 0);else if(B.webkitRequestFullscreen)B=B.webkitRequestFullscreen();else if(B.mozRequestFullScreen)B=B.mozRequestFullScreen();else if(B.msRequestFullscreen)B=B.msRequestFullscreen();else if(B.webkitEnterFullscreen)B=B.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return B instanceof Promise?B:Promise.resolve()}; AQ=function(B){var z;g.Gh()?dS()==B&&(z=document):z=B;return z&&(B=FY(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))?(z=B.call(z),z instanceof Promise?z:Promise.resolve()):Promise.resolve()}; moz=function(B){return g.Cs(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in B})}; ncz=function(){var B=document;return g.Cs(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(z){return"on"+z.toLowerCase()in B})}; g.Gh=function(){return!!FY(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; dS=function(B){B=B===void 0?!1:B;var z=FY(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(B)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null}; a6=function(B){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(B=B||window.event){this.event=B;for(var z in B)z in uMb||(this[z]=B[z]);this.scale=B.scale;this.rotation=B.rotation;var T=B.target||B.srcElement;T&&T.nodeType==3&&(T=T.parentNode);this.target=T;var R=B.relatedTarget; if(R)try{R=R.nodeName?R:null}catch(h){R=null}else this.type=="mouseover"?R=B.fromElement:this.type=="mouseout"&&(R=B.toElement);this.relatedTarget=R;this.clientX=B.clientX!=void 0?B.clientX:B.pageX;this.clientY=B.clientY!=void 0?B.clientY:B.pageY;this.keyCode=B.keyCode?B.keyCode:B.which;this.charCode=B.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=B.altKey;this.ctrlKey=B.ctrlKey;this.shiftKey=B.shiftKey;this.metaKey=B.metaKey;this.T=B.pageX;this.U=B.pageY}}catch(h){}}; HiH=function(B){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;B.T=B.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);B.U=B.clientY+z}}; fvK=function(B,z,T,R){R=R===void 0?{}:R;B.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return sp(UW,function(h){var W=typeof h[4]==="boolean"&&h[4]==!!R,b=g.zU(h[4])&&g.zU(R)&&g.Bh(h[4],R);return!!h.length&&h[0]==B&&h[1]==z&&h[2]==T&&(W||b)})}; g.M4=function(B,z,T,R){R=R===void 0?{}:R;if(!B||!B.addEventListener&&!B.attachEvent)return"";var h=fvK(B,z,T,R);if(h)return h;h=++Oid.count+"";var W=!(z!="mouseenter"&&z!="mouseleave"||!B.addEventListener||"onmouseenter"in document);var b=W?function(l){l=new a6(l);if(!bm(l.relatedTarget,function(w){return w==B},!0))return l.currentTarget=B,l.type=z,T.call(B,l)}:function(l){l=new a6(l); l.currentTarget=B;return T.call(B,l)}; b=g.BP(b);B.addEventListener?(z=="mouseenter"&&W?z="mouseover":z=="mouseleave"&&W?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),Nyz()||typeof R==="boolean"?B.addEventListener(z,b,R):B.addEventListener(z,b,!!R.capture)):B.attachEvent("on"+z,b);UW[h]=[B,z,T,b,R];return h}; jCK=function(B){return tiB(B,function(z){return g.lH(z,"ytp-ad-has-logging-urls")})}; tiB=function(B,z){var T=document.body||document;return g.M4(T,"click",function(R){var h=bm(R.target,function(W){return W===T||z(W)},!0); h&&h!==T&&!h.disabled&&(R.currentTarget=h,B.call(h,R))})}; g.VO=function(B){B&&(typeof B=="string"&&(B=[B]),g.Ks(B,function(z){if(z in UW){var T=UW[z],R=T[0],h=T[1],W=T[3];T=T[4];R.removeEventListener?Nyz()||typeof T==="boolean"?R.removeEventListener(h,W,T):R.removeEventListener(h,W,!!T.capture):R.detachEvent&&R.detachEvent("on"+h,W);delete UW[z]}}))}; QO=function(B){for(var z in UW)UW[z][0]==B&&g.VO(z)}; yO=function(B){B=B||window.event;var z;B.composedPath&&typeof B.composedPath==="function"?z=B.composedPath():z=B.path;z&&z.length?B=z[0]:(B=B||window.event,B=B.target||B.srcElement,B.nodeType==3&&(B=B.parentNode));return B}; gS=function(B){this.L=B;this.T=null;this.W=0;this.X=null;this.V=0;this.U=[];for(B=0;B<4;B++)this.U.push(0);this.Y=0;this.UE=g.M4(window,"mousemove",(0,g.W7)(this.N,this));this.J=g.Ic((0,g.W7)(this.TZ,this),25)}; JQ=function(B){g.K.call(this);this.L=[];this.O0=B||this}; pD=function(B,z,T,R){for(var h=0;h0?T:0;T=R?Date.now()+R*1E3:0;if((R=R?(0,g.xK)():vZ())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{R.set(B,z,T)}catch(h){R.remove(B)}}}; g.kK=function(B){var z=vZ(),T=(0,g.xK)();if(!z&&!T||!window.JSON)return null;try{var R=z.get(B)}catch(h){}if(typeof R!=="string")try{R=T.get(B)}catch(h){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(h){}return R}; e0z=function(){var B=(0,g.xK)();if(B&&(B=B.U("yt-player-quality")))return B.creation}; g.KD=function(B){try{var z=vZ(),T=(0,g.xK)();z&&z.remove(B);T&&T.remove(B)}catch(R){}}; g.mN=function(){return g.kK("yt-remote-session-screen-id")}; sCK=function(B){var z=this;this.U=void 0;this.T=!1;B.addEventListener("beforeinstallprompt",function(T){T.preventDefault();z.U=T}); B.addEventListener("appinstalled",function(){z.T=!0},{once:!0})}; nD=function(){if(!g.XK.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.XK.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.XK.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.XK.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.XK.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(B){return"WEB_DISPLAY_MODE_UNKNOWN"}}; u9=function(){this.FR=!0}; EcY=function(){u9.instance||(u9.instance=new u9);return u9.instance}; SwK=function(B){switch(B){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}}; Bwz=function(){this.T=g.ek("ALT_PREF_COOKIE_NAME","PREF");this.U=g.ek("ALT_PREF_COOKIE_DOMAIN","youtube.com");var B=g.m4(this.T);B&&this.parse(B)}; g.fD=function(){HZ||(HZ=new Bwz);return HZ}; g.OW=function(B,z){return!!((z_5("f"+(Math.floor(z/31)+1))||0)&1<0;)switch(B=c4.shift(),B.type){case "ERROR":lp.J6(B.payload);break;case "EVENT":lp.logEvent(B.eventType,B.payload)}}; C1=function(B){L1||(lp?lp.J6(B):(c4.push({type:"ERROR",payload:B}),c4.length>10&&c4.shift()))}; rj=function(B,z){L1||(lp?lp.logEvent(B,z):(c4.push({type:"EVENT",eventType:B,payload:z}),c4.length>10&&c4.shift()))}; oh=function(B){if(B.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; FJ=function(B){return B.substr(0,B.indexOf(":"))||B}; g.Ih=function(B,z,T,R,h){z=z===void 0?{}:z;T=T===void 0?wir[B]:T;R=R===void 0?qqb[B]:R;h=h===void 0?i2K[B]:h;g.Z_.call(this,T,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:B},z));this.type=B;this.message=T;this.level=R;this.T=h;Object.setPrototypeOf(this,g.Ih.prototype)}; Go=function(B,z){g.Ih.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:B},wir.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Go.prototype)}; dj=function(B,z){var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.index=B;this.objectStore=z;Object.setPrototypeOf(this,dj.prototype)}; ah=function(B,z,T,R){z=FJ(z);var h=B instanceof Error?B:Error("Unexpected error: "+B);if(h instanceof g.Ih)return h;B={objectStoreNames:T,dbName:z,dbVersion:R};if(h.name==="QuotaExceededError")return new g.Ih("QUOTA_EXCEEDED",B);if(g.Ax&&h.name==="UnknownError")return new g.Ih("QUOTA_MAYBE_EXCEEDED",B);if(h instanceof dj)return new g.Ih("MISSING_INDEX",Object.assign({},B,{objectStore:h.objectStore,index:h.index}));if(h.name==="InvalidStateError"&&cnr.some(function(W){return h.message.includes(W)}))return new g.Ih("EXECUTE_TRANSACTION_ON_CLOSED_DB", B); if(h.name==="AbortError")return new g.Ih("UNKNOWN_ABORT",B,h.message);h.args=[Object.assign({},B,{name:"IdbError",L9:h.name})];h.level="WARNING";return h}; g.Uj=function(B,z,T){var R=Yi();return new g.Ih("IDB_NOT_SUPPORTED",{context:{caller:B,publicName:z,version:T,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})}; Lh5=function(B){if(!B)throw Error();throw B;}; CHK=function(B){return B}; Mw=function(B){this.T=B}; g.VD=function(B){function z(h){if(R.state.status==="PENDING"){R.state={status:"REJECTED",reason:h};h=g.d(R.U);for(var W=h.next();!W.done;W=h.next())W=W.value,W()}} function T(h){if(R.state.status==="PENDING"){R.state={status:"FULFILLED",value:h};h=g.d(R.T);for(var W=h.next();!W.done;W=h.next())W=W.value,W()}} var R=this;this.state={status:"PENDING"};this.T=[];this.U=[];B=B.T;try{B(T,z)}catch(h){z(h)}}; rnH=function(B,z,T,R,h){try{if(B.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var W=T(B.state.value);W instanceof g.VD?QD(B,z,W,R,h):R(W)}catch(b){h(b)}}; oe5=function(B,z,T,R,h){try{if(B.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var W=T(B.state.reason);W instanceof g.VD?QD(B,z,W,R,h):R(W)}catch(b){h(b)}}; QD=function(B,z,T,R,h){z===T?h(new TypeError("Circular promise chain detected.")):T.then(function(W){W instanceof g.VD?QD(B,z,W,R,h):R(W)},function(W){h(W)})}; FhB=function(B,z,T){function R(){T(B.error);W()} function h(){z(B.result);W()} function W(){try{B.removeEventListener("success",h),B.removeEventListener("error",R)}catch(b){}} B.addEventListener("success",h);B.addEventListener("error",R)}; IIP=function(B){return new Promise(function(z,T){FhB(B,z,T)})}; yD=function(B){return new g.VD(new Mw(function(z,T){FhB(B,z,T)}))}; gj=function(B,z){return new g.VD(new Mw(function(T,R){function h(){var W=B?z(B):null;W?W.then(function(b){B=b;h()},R):T()} h()}))}; GEr=function(B,z){this.request=B;this.cursor=z}; dvB=function(B){return yD(B).then(function(z){return z?new GEr(B,z):null})}; g.Anz=function(B){B.cursor.continue(void 0);return dvB(B.request)}; aIb=function(B,z){this.T=B;this.options=z;this.transactionCount=0;this.Y=Math.round((0,g.f)());this.U=!1}; g.p1=function(B,z,T){B=B.T.createObjectStore(z,T);return new Jx(B)}; $i=function(B,z){B.T.objectStoreNames.contains(z)&&B.T.deleteObjectStore(z)}; g.v4=function(B,z,T){return g.P4(B,[z],{mode:"readwrite",cB:!0},function(R){return g.xi(R.objectStore(z),T)})}; g.P4=function(B,z,T,R){var h,W,b,l,w,q,c,L,C,r,F,A;return g.D(function(a){switch(a.U){case 1:var V={mode:"readonly",cB:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof T==="string"?V.mode=T:Object.assign(V,T);h=V;B.transactionCount++;W=h.cB?3:1;b=0;case 2:if(l){a.jI(4);break}b++;w=Math.round((0,g.f)());g.AK(a,5);q=B.T.transaction(z,h.mode);V=new Ds(q);V=Uvr(V,R);return g.P(a,V,7);case 7:return c=a.T,L=Math.round((0,g.f)()),MWH(B,w,L,b,void 0,z.join(),h),a.return(c);case 5:C=g.JK(a);r=Math.round((0,g.f)()); F=ah(C,B.T.name,z.join(),B.T.version);if((A=F instanceof g.Ih&&!F.T)||b>=W)MWH(B,w,r,b,F,z.join(),h),l=F;a.jI(2);break;case 4:return a.return(Promise.reject(l))}})}; MWH=function(B,z,T,R,h,W,b){z=T-z;h?(h instanceof g.Ih&&(h.type==="QUOTA_EXCEEDED"||h.type==="QUOTA_MAYBE_EXCEEDED")&&rj("QUOTA_EXCEEDED",{dbName:FJ(B.T.name),objectStoreNames:W,transactionCount:B.transactionCount,transactionMode:b.mode}),h instanceof g.Ih&&h.type==="UNKNOWN_ABORT"&&(T-=B.Y,T<0&&T>=2147483648&&(T=0),rj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:W,transactionDuration:z,transactionCount:B.transactionCount,dbDuration:T}),B.U=!0),VWd(B,!1,R,W,z,b.tag),C1(h)):VWd(B,!0,R,W,z, b.tag)}; VWd=function(B,z,T,R,h,W){rj("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:B.U,duration:h,isSuccessful:z,tryCount:T,tag:W===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":W})}; Jx=function(B){this.T=B}; g.ki=function(B,z,T){B.T.createIndex(z,T,{unique:!1})}; QmY=function(B,z){return g.K1(B,{query:z},function(T){return T.delete().then(function(){return g.m1(T)})}).then(function(){})}; ynX=function(B,z,T){var R=[];return g.K1(B,{query:z},function(h){if(!(T!==void 0&&R.length>=T))return R.push(h.getValue()),g.m1(h)}).then(function(){return R})}; JnB=function(B){return"getAllKeys"in IDBObjectStore.prototype?yD(B.T.getAllKeys(void 0,void 0)):geK(B)}; geK=function(B){var z=[];return g.pib(B,{query:void 0},function(T){z.push(T.cursor.primaryKey);return g.Anz(T)}).then(function(){return z})}; g.xi=function(B,z,T){return yD(B.T.put(z,T))}; g.K1=function(B,z,T){B=B.T.openCursor(z.query,z.direction);return n1(B).then(function(R){return gj(R,T)})}; g.pib=function(B,z,T){var R=z.query;z=z.direction;B="openKeyCursor"in IDBObjectStore.prototype?B.T.openKeyCursor(R,z):B.T.openCursor(R,z);return dvB(B).then(function(h){return gj(h,T)})}; Ds=function(B){var z=this;this.T=B;this.Y=new Map;this.U=!1;this.done=new Promise(function(T,R){z.T.addEventListener("complete",function(){T()}); z.T.addEventListener("error",function(h){h.currentTarget===h.target&&R(z.T.error)}); z.T.addEventListener("abort",function(){var h=z.T.error;if(h)R(h);else if(!z.U){h=g.Ih;for(var W=z.T.objectStoreNames,b=[],l=0;l=T))return R.push(h.getValue()),g.m1(h)}).then(function(){return R})}; g.up=function(B,z,T){B=B.T.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return n1(B).then(function(R){return gj(R,T)})}; H4=function(B,z){this.request=B;this.cursor=z}; n1=function(B){return yD(B).then(function(z){return z?new H4(B,z):null})}; g.m1=function(B){B.cursor.continue(void 0);return n1(B.request)}; xvl=function(B,z,T){return new Promise(function(R,h){function W(){C||(C=new aIb(b.result,{closed:L}));return C} var b=z!==void 0?self.indexedDB.open(B,z):self.indexedDB.open(B);var l=T.blocked,w=T.blocking,q=T.uhE,c=T.upgrade,L=T.closed,C;b.addEventListener("upgradeneeded",function(r){try{if(r.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(b.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");r.dataLoss&&r.dataLoss!=="none"&&rj("IDB_DATA_CORRUPTED",{reason:r.dataLossMessage||"unknown reason",dbName:FJ(B)});var F=W(),A=new Ds(b.transaction); c&&c(F,function(a){return r.oldVersion=a},A); A.done.catch(function(a){h(a)})}catch(a){h(a)}}); b.addEventListener("success",function(){var r=b.result;w&&r.addEventListener("versionchange",function(){w(W())}); r.addEventListener("close",function(){rj("IDB_UNEXPECTEDLY_CLOSED",{dbName:FJ(B),dbVersion:r.version});q&&q()}); R(W())}); b.addEventListener("error",function(){h(b.error)}); l&&b.addEventListener("blocked",function(){l()})})}; veB=function(B,z,T){T=T===void 0?{}:T;return xvl(B,z,T)}; f1=function(B,z){z=z===void 0?{}:z;var T,R,h,W;return g.D(function(b){if(b.U==1)return g.AK(b,2),T=self.indexedDB.deleteDatabase(B),R=z,(h=R.blocked)&&T.addEventListener("blocked",function(){h()}),g.P(b,IIP(T),4); if(b.U!=2)return g.yz(b,0);W=g.JK(b);throw ah(W,B,"",-1);})}; Oj=function(B,z){this.name=B;this.options=z;this.Y=!0;this.V=this.W=0}; DvK=function(B,z){return new g.Ih("INCOMPATIBLE_DB_VERSION",{dbName:B.name,oldVersion:B.options.version,newVersion:z})}; g.Nw=function(B,z){if(!z)throw g.Uj("openWithToken",FJ(B.name));return B.open()}; kEK=function(B,z){var T;return g.D(function(R){if(R.U==1)return g.P(R,g.Nw(tx,z),2);T=R.T;return R.return(g.P4(T,["databases"],{cB:!0,mode:"readwrite"},function(h){var W=h.objectStore("databases");return W.get(B.actualName).then(function(b){if(b?B.actualName!==b.actualName||B.publicName!==b.publicName||B.userIdentifier!==b.userIdentifier:1)return g.xi(W,B).then(function(){})})}))})}; jd=function(B,z){var T;return g.D(function(R){if(R.U==1)return B?g.P(R,g.Nw(tx,z),2):R.return();T=R.T;return R.return(T.delete("databases",B))})}; Khr=function(B,z){var T,R;return g.D(function(h){return h.U==1?(T=[],g.P(h,g.Nw(tx,z),2)):h.U!=3?(R=h.T,g.P(h,g.P4(R,["databases"],{cB:!0,mode:"readonly"},function(W){T.length=0;return g.K1(W.objectStore("databases"),{},function(b){B(b.getValue())&&T.push(b.getValue());return g.m1(b)})}),3)):h.return(T)})}; mvz=function(B,z){return Khr(function(T){return T.publicName===B&&T.userIdentifier!==void 0},z)}; neB=function(){var B,z,T,R;return g.D(function(h){switch(h.U){case 1:B=Yi();if((z=B)==null?0:z.hasSucceededOnce)return h.return(!0);if(XJ&&eH()&&!sD()||g.Zs)return h.return(!1);try{if(T=self,!(T.indexedDB&&T.IDBIndex&&T.IDBKeyRange&&T.IDBObjectStore))return h.return(!1)}catch(W){return h.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return h.return(!1);g.AK(h,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.P(h,kEK(R,ed),4);case 4:return g.P(h,jd("yt-idb-test-do-not-use",ed),5);case 5:return h.return(!0);case 2:return g.JK(h),h.return(!1)}})}; ufY=function(){if(sj!==void 0)return sj;L1=!0;return sj=neB().then(function(B){L1=!1;var z;if((z=bp())!=null&&z.T){var T;z={hasSucceededOnce:((T=Yi())==null?void 0:T.hasSucceededOnce)||B};var R;(R=bp())==null||R.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return B})}; Ej=function(){return g.sH("ytglobal.idbToken_")||void 0}; g.Sd=function(){var B=Ej();return B?Promise.resolve(B):ufY().then(function(z){(z=z?ed:void 0)&&g.Zz("ytglobal.idbToken_",z);return z})}; H2X=function(B){if(!g.sW())throw B=new g.Ih("AUTH_INVALID",{dbName:B}),C1(B),B;var z=g.eT();return{actualName:B+":"+z,publicName:B,userIdentifier:z}}; fI5=function(B,z,T,R){var h,W,b,l,w,q;return g.D(function(c){switch(c.U){case 1:return W=(h=Error().stack)!=null?h:"",g.P(c,g.Sd(),2);case 2:b=c.T;if(!b)throw l=g.Uj("openDbImpl",B,z),g.ac("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+W.substring(W.indexOf("\n")+1)),C1(l),l;oh(B);w=T?{actualName:B,publicName:B,userIdentifier:void 0}:H2X(B);g.AK(c,3);return g.P(c,kEK(w,b),5);case 5:return g.P(c,veB(w.actualName,z,R),6);case 6:return c.return(c.T);case 3:return q=g.JK(c),g.AK(c,7),g.P(c,jd(w.actualName, b),9);case 9:g.yz(c,8);break;case 7:g.JK(c);case 8:throw q;}})}; O25=function(B,z,T){T=T===void 0?{}:T;return fI5(B,z,!1,T)}; Nwz=function(B,z,T){T=T===void 0?{}:T;return fI5(B,z,!0,T)}; tWH=function(B,z){z=z===void 0?{}:z;var T,R;return g.D(function(h){if(h.U==1)return g.P(h,g.Sd(),2);if(h.U!=3){T=h.T;if(!T)return h.return();oh(B);R=H2X(B);return g.P(h,f1(R.actualName,z),3)}return g.P(h,jd(R.actualName,T),0)})}; jmK=function(B,z,T){B=B.map(function(R){return g.D(function(h){return h.U==1?g.P(h,f1(R.actualName,z),2):g.P(h,jd(R.actualName,T),0)})}); return Promise.all(B).then(function(){})}; XiK=function(B){var z=z===void 0?{}:z;var T,R;return g.D(function(h){if(h.U==1)return g.P(h,g.Sd(),2);if(h.U!=3){T=h.T;if(!T)return h.return();oh(B);return g.P(h,mvz(B,T),3)}R=h.T;return g.P(h,jmK(R,z,T),0)})}; Z2H=function(B,z){z=z===void 0?{}:z;var T;return g.D(function(R){if(R.U==1)return g.P(R,g.Sd(),2);if(R.U!=3){T=R.T;if(!T)return R.return();oh(B);return g.P(R,f1(B,z),3)}return g.P(R,jd(B,T),0)})}; Bg=function(B,z){Oj.call(this,B,z);this.options=z;oh(B)}; e_H=function(B,z){var T;return function(){T||(T=new Bg(B,z));return T}}; g.zm=function(B,z){return e_H(B,z)}; Tm=function(B){return g.Nw(smd(),B)}; EeK=function(B,z,T,R){var h,W,b;return g.D(function(l){switch(l.U){case 1:return h={config:B,hashData:z,timestamp:R!==void 0?R:(0,g.f)()},g.P(l,Tm(T),2);case 2:return W=l.T,g.P(l,W.clear("hotConfigStore"),3);case 3:return g.P(l,g.v4(W,"hotConfigStore",h),4);case 4:return b=l.T,l.return(b)}})}; SqY=function(B,z,T,R,h){var W,b,l;return g.D(function(w){switch(w.U){case 1:return W={config:B,hashData:z,configData:T,timestamp:h!==void 0?h:(0,g.f)()},g.P(w,Tm(R),2);case 2:return b=w.T,g.P(w,b.clear("coldConfigStore"),3);case 3:return g.P(w,g.v4(b,"coldConfigStore",W),4);case 4:return l=w.T,w.return(l)}})}; BLb=function(B){var z,T;return g.D(function(R){return R.U==1?g.P(R,Tm(B),2):R.U!=3?(z=R.T,T=void 0,g.P(R,g.P4(z,["coldConfigStore"],{mode:"readwrite",cB:!0},function(h){return g.up(h.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(W){T=W.getValue()})}),3)):R.return(T)})}; zWz=function(B){var z,T;return g.D(function(R){return R.U==1?g.P(R,Tm(B),2):R.U!=3?(z=R.T,T=void 0,g.P(R,g.P4(z,["hotConfigStore"],{mode:"readwrite",cB:!0},function(h){return g.up(h.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(W){T=W.getValue()})}),3)):R.return(T)})}; TLH=function(){return g.D(function(B){return g.P(B,XiK("ytGcfConfig"),0)})}; RI=function(){g.K.call(this);this.U=[];this.T=[];var B=g.sH("yt.gcf.config.hotUpdateCallbacks");B?(this.U=[].concat(g.Q(B)),this.T=B):(this.T=[],g.Zz("yt.gcf.config.hotUpdateCallbacks",this.T))}; wi=function(){var B=this;this.V=!1;this.Y=this.W=0;this.X=new RI;this.Yi={EjD:function(){B.V=!0}, osi:function(){return B.T}, YIJ:function(z){hk(B,z)}, K0:function(z){B.K0(z)}, v$E:function(z){Wg(B,z)}, Wz:function(){return B.coldHashData}, D7:function(){return B.hotHashData}, QRm:function(){return B.U}, vsu:function(){return bz()}, iLO:function(){return Yk()}, dkf:function(){return g.sH("yt.gcf.config.coldHashData")}, T5u:function(){return g.sH("yt.gcf.config.hotHashData")}, qIE:function(){RWX(B)}, fGJ:function(){B.K0(void 0);lz(B);delete wi.instance}, TPI:function(z){B.Y=z}, wkf:function(){return B.Y}}}; hWP=function(){if(!wi.instance){var B=new wi;wi.instance=B}return wi.instance}; YEz=function(B){var z;g.D(function(T){if(T.U==1)return g.ac("start_client_gcf")||g.ac("delete_gcf_config_db")?g.ac("start_client_gcf")?g.P(T,g.Sd(),3):T.jI(2):T.return();T.U!=2&&((z=T.T)&&g.sW()&&!g.ac("delete_gcf_config_db")?(B.V=!0,RWX(B)):(WTK(B),bEz(B)));return g.ac("delete_gcf_config_db")?g.P(T,TLH(),0):T.jI(0)})}; qX=function(){var B;return(B=Yk())!=null?B:g.ek("RAW_HOT_CONFIG_GROUP")}; leB=function(B){var z,T,R,h,W,b;return g.D(function(l){switch(l.U){case 1:if(B.U)return l.return(Yk());if(!B.V)return z=g.Uj("getHotConfig IDB not initialized"),zF(z),l.return(Promise.reject(z));T=Ej();R=g.ek("TIME_CREATED_MS");if(!T){h=g.Uj("getHotConfig token error");zF(h);l.jI(2);break}return g.P(l,zWz(T),3);case 3:if((W=l.T)&&W.timestamp>R)return hk(B,W.config),B.K0(W.hashData),l.return(Yk());case 2:bEz(B);if(!(T&&B.U&&B.hotHashData)){l.jI(4);break}return g.P(l,EeK(B.U,B.hotHashData,T,R),4);case 4:return B.U? l.return(Yk()):(b=new g.Z_("Config not available in ytConfig"),zF(b),l.return(Promise.reject(b)))}})}; qEd=function(B){var z,T,R,h,W,b;return g.D(function(l){switch(l.U){case 1:if(B.T)return l.return(bz());if(!B.V)return z=g.Uj("getColdConfig IDB not initialized"),zF(z),l.return(Promise.reject(z));T=Ej();R=g.ek("TIME_CREATED_MS");if(!T){h=g.Uj("getColdConfig");zF(h);l.jI(2);break}return g.P(l,BLb(T),3);case 3:if((W=l.T)&&W.timestamp>R)return Wg(B,W.config),wfr(B,W.configData),lz(B,W.hashData),l.return(bz());case 2:WTK(B);if(!(T&&B.T&&B.coldHashData&&B.configData)){l.jI(4);break}return g.P(l,SqY(B.T, B.coldHashData,B.configData,T,R),4);case 4:return B.T?l.return(bz()):(b=new g.Z_("Config not available in ytConfig"),zF(b),l.return(Promise.reject(b)))}})}; RWX=function(B){if(!B.U||!B.T){if(!Ej()){var z=g.Uj("scheduleGetConfigs");zF(z)}B.W||(B.W=g.fi.u0(function(){return g.D(function(T){switch(T.U){case 1:return g.AK(T,2),g.P(T,leB(B),4);case 4:g.yz(T,3);break;case 2:g.JK(T);case 3:return g.AK(T,5),g.P(T,qEd(B),7);case 7:g.yz(T,6);break;case 5:g.JK(T);case 6:B.W&&(B.W=0),g.dX(T)}})},100))}}; iEz=function(B,z,T){var R,h,W;return g.D(function(b){switch(b.U){case 1:if(!g.ac("start_client_gcf")){b.jI(0);break}T&&hk(B,T);B.K0(z);R=Ej();if(!R){b.jI(3);break}if(T){b.jI(4);break}return g.P(b,zWz(R),5);case 5:h=b.T,T=(W=h)==null?void 0:W.config;case 4:return g.P(b,EeK(T,z,R),3);case 3:if(T)for(var l=T,w=g.d(B.X.T),q=w.next();!q.done;q=w.next())q=q.value,q(l);g.dX(b)}})}; crK=function(B,z,T){var R,h,W,b;return g.D(function(l){if(l.U==1){if(!g.ac("start_client_gcf"))return l.jI(0);lz(B,z);return(R=Ej())?T?l.jI(4):g.P(l,BLb(R),5):l.jI(0)}l.U!=4&&(h=l.T,T=(W=h)==null?void 0:W.config);if(!T)return l.jI(0);b=T.configData;return g.P(l,SqY(T,z,b,R),0)})}; LTP=function(){var B=hWP(),z=(0,g.f)()-B.Y;if(!(B.Y!==0&&z0&&(z.request={internalExperimentFlags:T});rrb(B,void 0,z);o0K(void 0,z);FT5(void 0,z);IeH(B,void 0,z);GqY(void 0,z);g.ac("start_client_gcf")&&dG5(void 0,z);g.ek("DELEGATED_SESSION_ID")&& !g.ac("pageid_as_header_web")&&(z.user={onBehalfOfUser:g.ek("DELEGATED_SESSION_ID")});!g.ac("fill_delegate_context_in_gel_killswitch")&&(B=g.ek("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:B}));B=g.ek("INNERTUBE_CONTEXT");var R;if(g.ac("enable_persistent_device_token")&&(B==null?0:(R=B.client)==null?0:R.rolloutToken)){var h;z.client.rolloutToken=B==null?void 0:(h=B.client)==null?void 0:h.rolloutToken}R=Object;h=R.assign;B=z.client; T={};for(var W=g.d(Object.entries(ho(g.ek("DEVICE","")))),b=W.next();!b.done;b=W.next()){var l=g.d(b.value);b=l.next().value;l=l.next().value;b==="cbrand"?T.deviceMake=l:b==="cmodel"?T.deviceModel=l:b==="cbr"?T.browserName=l:b==="cbrver"?T.browserVersion=l:b==="cos"?T.osName=l:b==="cosver"?T.osVersion=l:b==="cplatform"&&(T.platform=l)}z.client=h.call(R,B,T);return z}; rrb=function(B,z,T){B=B.dS;if(B==="WEB"||B==="MWEB"||B===1||B===2)if(z){T=N1(z,pE,96)||new pE;var R=nD();R=Object.keys(ArP).indexOf(R);R=R===-1?null:R;R!==null&&WW(T,3,R);jK(z,pE,96,T)}else T&&(T.client.mainAppWebInfo=(R=T.client.mainAppWebInfo)!=null?R:{},T.client.mainAppWebInfo.webDisplayMode=nD())}; o0K=function(B,z){var T=g.sH("yt.embedded_player.embed_url");T&&(B?(z=N1(B,De,7)||new De,Ra(z,4,T),jK(B,De,7,z)):z&&(z.thirdParty={embedUrl:T}))}; FT5=function(B,z){var T;if(g.ac("web_log_memory_total_kbytes")&&((T=g.XK.navigator)==null?0:T.deviceMemory)){var R;T=(R=g.XK.navigator)==null?void 0:R.deviceMemory;B?M1(B,95,s5(T*1E6)):z&&(z.client.memoryTotalKbytes=""+T*1E6)}}; IeH=function(B,z,T){if(B.appInstallData)if(z){var R;T=(R=N1(z,Jr,62))!=null?R:new Jr;Ra(T,6,B.appInstallData);jK(z,Jr,62,T)}else T&&(T.client.configInfo=T.client.configInfo||{},T.client.configInfo.appInstallData=B.appInstallData)}; GqY=function(B,z){var T=h_d();T&&(B?WW(B,61,aeK[T]):z&&(z.client.connectionType=T));g.ac("web_log_effective_connection_type")&&(T=b2K())&&(B?WW(B,94,UGz[T]):z&&(z.client.effectiveConnectionType=T))}; MkY=function(B,z,T){T=T===void 0?{}:T;var R={};g.ek("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":g.ek("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":T.visitorData||g.ek("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return R;z=T.kP||g.ek("AUTHORIZATION");z||(B?z="Bearer "+g.sH("gapi.auth.getToken")().access_token:(B=EcY().t4(Lz),g.ac("pageid_as_header_web")||delete B["X-Goog-PageId"],R=Object.assign({},R,B)));z&&(R.Authorization=z);return R}; dG5=function(B,z){var T=LTP();if(T){var R=T.coldConfigData,h=T.coldHashData;T=T.hotHashData;if(B){var W;z=(W=N1(B,Jr,62))!=null?W:new Jr;R=Ra(z,1,R);Ra(R,3,h).K0(T);jK(B,Jr,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},R&&(z.client.configInfo.coldConfigData=R),h&&(z.client.configInfo.coldHashData=h),T&&(z.client.configInfo.hotHashData=T))}}; Cz=function(B,z){this.version=B;this.args=z}; ri=function(B,z){this.topic=B;this.T=z}; F0=function(B,z){var T=oI();T&&T.publish.call(T,B.toString(),B,z)}; yrK=function(B){var z=VkH,T=oI();if(!T)return 0;var R=T.subscribe(z.toString(),function(h,W){var b=g.sH("ytPubsub2Pubsub2SkipSubKey");b&&b==R||(b=function(){if(Uv[R])try{if(W&&z instanceof ri&&z!=h)try{var l=z.T,w=W;if(!w.args||!w.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.zm){var q=new l;l.zm=q.version}var c=l.zm}catch(L){}if(!c||w.version!=c)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{W=Reflect.construct(l, g.Mg(w.args))}catch(L){throw L.message="yt.pubsub2.Data.deserialize(): "+L.message,L;}}catch(L){throw L.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+z.toString()+": "+L.message,L;}B.call(window,W)}catch(L){g.Sk(L)}},QeB[z.toString()]?g.Rh()?g.fi.u0(b):g.FN(b,0):b())}); Uv[R]=!0;MX[z.toString()]||(MX[z.toString()]=[]);MX[z.toString()].push(R);return R}; pfz=function(){var B=g0K,z=yrK(function(T){B.apply(void 0,arguments);JrH(z)}); return z}; JrH=function(B){var z=oI();z&&(typeof B==="number"&&(B=[B]),g.Ks(B,function(T){z.unsubscribeByKey(T);delete Uv[T]}))}; oI=function(){return g.sH("ytPubsub2Pubsub2Instance")}; Vb=function(B,z,T){T=T===void 0?{sampleRate:.1}:T;Math.random()kqY||b=uxz&&(Dj++,g.ac("abandon_compression_after_N_slow_zips")?vg===g.UD("compression_disable_point")&&Dj>HEz&&($k=!1):$k=!1);feP(z);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=B;R.postParams=void 0;h(T,R)}; OEX=function(B){var z=z===void 0?!1:z;var T=T===void 0?!1:T;var R=(0,g.f)(),h={startTime:R,ticks:{},infos:{}},W=z?g.sH("yt.logging.gzipForFetch",!1):!0;if($k&&W){if(!B.body)return B;try{var b=T?B.body:typeof B.body==="string"?B.body:JSON.stringify(B.body);W=b;if(!T&&typeof b==="string"){var l=DGB(b);if(l!=null&&(l>kqY||l=uxz)if(Dj++,g.ac("abandon_compression_after_N_slow_zips")||g.ac("abandon_compression_after_N_slow_zips_lr")){z=Dj/vg;var q=HEz/g.UD("compression_disable_point");vg>0&&vg%g.UD("compression_disable_point")===0&&z>=q&&($k=!1)}else $k=!1;feP(h)}}B.headers=Object.assign({},{"Content-Encoding":"gzip"},B.headers||{});B.body=W;return B}catch(c){return zF(c),B}}else return B}; DGB=function(B){try{return(new Blob(B.split(""))).size}catch(z){return zF(z),null}}; feP=function(B){g.ac("gel_compression_csi_killswitch")||!g.ac("log_gel_compression_latency")&&!g.ac("log_gel_compression_latency_lr")||Vb("gel_compression",B,{sampleRate:.1})}; Kz=function(B){var z=this;this.T3=this.T=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){}; this.T9=function(){}; this.now=Date.now;this.bj=!1;this.Yi={i6E:function(c){z.f2=c}, yAJ:function(){z.gN()}, qE:function(){z.pz()}, Y6:function(c){return g.D(function(L){return g.P(L,z.Y6(c),0)})}, BF:function(c,L){return z.BF(c,L)}, Vo:function(){z.Vo()}}; var T;this.PC=(T=B.PC)!=null?T:100;var R;this.IJ=(R=B.IJ)!=null?R:1;var h;this.Xc=(h=B.Xc)!=null?h:2592E6;var W;this.Y8=(W=B.Y8)!=null?W:12E4;var b;this.y7=(b=B.y7)!=null?b:5E3;var l;this.f2=(l=B.f2)!=null?l:void 0;this.r6=!!B.r6;var w;this.Rf=(w=B.Rf)!=null?w:.1;var q;this.uu=(q=B.uu)!=null?q:10;B.handleError&&(this.handleError=B.handleError);B.T9&&(this.T9=B.T9);B.bj&&(this.bj=B.bj);B.T3&&(this.T3=B.T3);this.Cf=B.Cf;this.lZ=B.lZ;this.u8=B.u8;this.x0=B.x0;this.sendFn=B.sendFn;this.wx=B.wx;this.iB= B.iB;kk(this)&&(!this.Cf||this.Cf("networkless_logging"))&&NL5(this)}; NL5=function(B){kk(B)&&!B.bj&&(B.T=!0,B.r6&&Math.random()<=B.Rf&&B.u8.tV(B.f2),B.Vo(),B.x0.zO()&&B.gN(),B.x0.listen(B.wx,B.gN.bind(B)),B.x0.listen(B.iB,B.pz.bind(B)))}; XfB=function(B,z){if(!kk(B))throw Error("IndexedDB is not supported: updateRequestHandlers");var T=z.options.onError?z.options.onError:function(){}; z.options.onError=function(h,W){var b,l,w,q;return g.D(function(c){switch(c.U){case 1:b=tkz(W);(l=jed(W))&&B.Cf&&B.Cf("web_enable_error_204")&&B.handleError(Error("Request failed due to compression"),z.url,W);if(!(B.Cf&&B.Cf("nwl_consider_error_code")&&b||B.Cf&&!B.Cf("nwl_consider_error_code")&&B.potentialEsfErrorCounter<=B.uu)){c.jI(2);break}if(!B.x0.PF){c.jI(3);break}return g.P(c,B.x0.PF(),3);case 3:if(B.x0.zO()){c.jI(2);break}T(h,W);if(!B.Cf||!B.Cf("nwl_consider_error_code")||((w=z)==null?void 0: w.id)===void 0){c.jI(6);break}return g.P(c,B.u8.MM(z.id,B.f2,!1),6);case 6:return c.return();case 2:if(B.Cf&&B.Cf("nwl_consider_error_code")&&!b&&B.potentialEsfErrorCounter>B.uu)return c.return();B.potentialEsfErrorCounter++;if(((q=z)==null?void 0:q.id)===void 0){c.jI(8);break}return z.sendCount=400&&B<=599?!1:!0}; jed=function(B){var z;B=B==null?void 0:(z=B.error)==null?void 0:z.code;return!(B!==400&&B!==415)}; ZEz=function(){if(nz)return nz();var B={};nz=g.zm("LogsDatabaseV2",{DG:(B.LogsRequestsStore={mU:2},B),shared:!1,upgrade:function(z,T,R){T(2)&&g.p1(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});T(3);T(5)&&(R=R.objectStore("LogsRequestsStore"),R.T.indexNames.contains("newRequest")&&R.T.deleteIndex("newRequest"),g.ki(R,"newRequestV2",["status","interface","timestamp"]));T(7)&&$i(z,"sapisid");T(9)&&$i(z,"SWHealthLog")}, version:9});return nz()}; uz=function(B){return g.Nw(ZEz(),B)}; sez=function(B,z){var T,R,h,W;return g.D(function(b){if(b.U==1)return T={startTime:(0,g.f)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.P(b,uz(z),2);if(b.U!=3)return R=b.T,h=Object.assign({},B,{options:JSON.parse(JSON.stringify(B.options)),interface:g.ek("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.P(b,g.v4(R,"LogsRequestsStore",h),3);W=b.T;T.ticks.tc=(0,g.f)();eWH(T);return b.return(W)})}; E0K=function(B,z){var T,R,h,W,b,l,w,q;return g.D(function(c){if(c.U==1)return T={startTime:(0,g.f)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.P(c,uz(z),2);if(c.U!=3)return R=c.T,h=g.ek("INNERTUBE_CONTEXT_CLIENT_NAME",0),W=[B,h,0],b=[B,h,(0,g.f)()],l=IDBKeyRange.bound(W,b),w="prev",g.ac("use_fifo_for_networkless")&&(w="next"),q=void 0,g.P(c,g.P4(R,["LogsRequestsStore"],{mode:"readwrite",cB:!0},function(L){return g.up(L.objectStore("LogsRequestsStore").index("newRequestV2"), {query:l,direction:w},function(C){C.getValue()&&(q=C.getValue(),B==="NEW"&&(q.status="QUEUED",C.update(q)))})}),3); T.ticks.tc=(0,g.f)();eWH(T);return c.return(q)})}; SEH=function(B,z){var T;return g.D(function(R){if(R.U==1)return g.P(R,uz(z),2);T=R.T;return R.return(g.P4(T,["LogsRequestsStore"],{mode:"readwrite",cB:!0},function(h){var W=h.objectStore("LogsRequestsStore");return W.get(B).then(function(b){if(b)return b.status="QUEUED",g.xi(W,b).then(function(){return b})})}))})}; BJ5=function(B,z,T,R){T=T===void 0?!0:T;var h;return g.D(function(W){if(W.U==1)return g.P(W,uz(z),2);h=W.T;return W.return(g.P4(h,["LogsRequestsStore"],{mode:"readwrite",cB:!0},function(b){var l=b.objectStore("LogsRequestsStore");return l.get(B).then(function(w){return w?(w.status="NEW",T&&(w.sendCount+=1),R!==void 0&&(w.options.compress=R),g.xi(l,w).then(function(){return w})):g.VD.resolve(void 0)})}))})}; zLb=function(B,z){var T;return g.D(function(R){if(R.U==1)return g.P(R,uz(z),2);T=R.T;return R.return(T.delete("LogsRequestsStore",B))})}; TJP=function(B){var z,T;return g.D(function(R){if(R.U==1)return g.P(R,uz(B),2);z=R.T;T=(0,g.f)()-2592E6;return g.P(R,g.P4(z,["LogsRequestsStore"],{mode:"readwrite",cB:!0},function(h){return g.K1(h.objectStore("LogsRequestsStore"),{},function(W){if(W.getValue().timestamp<=T)return W.delete().then(function(){return g.m1(W)})})}),0)})}; RL5=function(){g.D(function(B){return g.P(B,XiK("LogsDatabaseV2"),0)})}; eWH=function(B){g.ac("nwl_csi_killswitch")||Vb("networkless_performance",B,{sampleRate:1})}; W4l=function(B){return g.Nw(hLb(),B)}; bLB=function(B){var z,T;g.D(function(R){if(R.U==1)return g.P(R,W4l(B),2);z=R.T;T=(0,g.f)()-2592E6;return g.P(R,g.P4(z,["SWHealthLog"],{mode:"readwrite",cB:!0},function(h){return g.K1(h.objectStore("SWHealthLog"),{},function(W){if(W.getValue().timestamp<=T)return W.delete().then(function(){return g.m1(W)})})}),0)})}; YDb=function(B){var z;return g.D(function(T){if(T.U==1)return g.P(T,W4l(B),2);z=T.T;return g.P(T,z.clear("SWHealthLog"),0)})}; g.Hg=function(B,z,T,R,h,W,b){h=h===void 0?"":h;W=W===void 0?!1:W;b=b===void 0?!1:b;if(B)if(T&&!g.jH())zF(new g.Z_("Legacy referrer-scrubbed ping detected")),B&&lMl(B,void 0,{scrubReferrer:!0});else if(h)QH(B,z,"POST",h,R);else if(g.ek("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||b)QH(B,z,"GET","",R,void 0,W,b);else{b:{try{c:{var l=new QtP({url:B});if(zT(l.T,wPz)==="1")var w=null;else{var q=zT(l.T,qDB);if(q==="1"){var c=zT(l.T,iLd);if(c)try{w={version:3,WE:decodeURIComponent(c),XQ:TT(l.T,"act=1","ri=1", ypP(l))};break c}catch(r){}}w=q==="2"?{version:4,WE:TT(l.T,"dct=1","suid="+l.U,""),XQ:TT(l.T,"act=1","ri=1","suid="+l.U)}:null}}if(w){var L=da(B);var C=!(!L||!L.endsWith("/aclk")||$A(B,"ri")!=="1");break b}}catch(r){}C=!1}C?cob(B)?(z&&z(),T=!0):T=!1:T=!1;T||lMl(B,z)}}; cob=function(B,z){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(B,z===void 0?"":z))return!0}catch(T){}return!1}; lMl=function(B,z,T){T=T===void 0?{}:T;var R=new Image,h=""+L4b++;fz[h]=R;R.onload=R.onerror=function(){z&&fz[h]&&z();delete fz[h]}; T.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=B}; CAP=function(B){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?B+"&nis=6":B+"&nis=5"}; NX=function(){Ov||(Ov=new W4("yt.offline"));return Ov}; roX=function(B){if(g.ac("offline_error_handling")){var z=NX().get("errors",!0)||{};z[B.message]={name:B.name,stack:B.stack};B.level&&(z[B.message].level=B.level);NX().set("errors",z,2592E3,!0)}}; tk=function(){this.T=new Map;this.U=!1}; j4=function(){if(!tk.instance){var B=g.sH("yt.networkRequestMonitor.instance")||new tk;g.Zz("yt.networkRequestMonitor.instance",B);tk.instance=B}return tk.instance}; X0=function(){g.Lh.call(this);var B=this;this.U=!1;this.T=UWK();this.T.listen("networkstatus-online",function(){if(B.U&&g.ac("offline_error_handling")){var z=NX().get("errors",!0);if(z){for(var T in z)if(z[T]){var R=new g.Z_(T,"sent via offline_errors");R.name=z[T].name;R.stack=z[T].stack;R.level=z[T].level;g.Sk(R)}NX().set("errors",{},2592E3,!0)}}})}; ov5=function(){if(!X0.instance){var B=g.sH("yt.networkStatusManager.instance")||new X0;g.Zz("yt.networkStatusManager.instance",B);X0.instance=B}return X0.instance}; g.Zj=function(B){B=B===void 0?{}:B;g.Lh.call(this);var z=this;this.T=this.W=0;this.U=ov5();var T=g.sH("yt.networkStatusManager.instance.listen").bind(this.U);T&&(B.rateLimit?(this.rateLimit=B.rateLimit,T("networkstatus-online",function(){F4P(z,"publicytnetworkstatus-online")}),T("networkstatus-offline",function(){F4P(z,"publicytnetworkstatus-offline")})):(T("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),T("networkstatus-offline",function(){z.dispatchEvent("publicytnetworkstatus-offline")})))}; F4P=function(B,z){B.rateLimit?B.T?(g.fi.Xg(B.W),B.W=g.fi.u0(function(){B.Y!==z&&(B.dispatchEvent(z),B.Y=z,B.T=(0,g.f)())},B.rateLimit-((0,g.f)()-B.T))):(B.dispatchEvent(z),B.Y=z,B.T=(0,g.f)()):B.dispatchEvent(z)}; Ev=function(){var B=Kz.call;e4||(e4=new g.Zj({jDd:!0,XkZ:!0}));B.call(Kz,this,{u8:{tV:TJP,qF:zLb,rj:E0K,ndm:SEH,MM:BJ5,set:sez},x0:e4,handleError:function(z,T,R){var h,W=R==null?void 0:(h=R.error)==null?void 0:h.code;if(W===400||W===415){var b;z=new g.Z_(z.message,T,R==null?void 0:(b=R.error)==null?void 0:b.code);zF(z,void 0,void 0,void 0,!0)}else g.Sk(z)}, T9:zF,sendFn:IMr,now:g.f,q1:roX,lZ:g.To(),wx:"publicytnetworkstatus-online",iB:"publicytnetworkstatus-offline",r6:!0,Rf:.1,uu:g.UD("potential_esf_error_limit",10),Cf:g.ac,bj:!(g.sW()&&g.GK(document.location.toString())!=="www.youtube-nocookie.com")});this.Y=new g.CP;g.ac("networkless_immediately_drop_all_requests")&&RL5();Z2H("LogsDatabaseV2")}; S4=function(){var B=g.sH("yt.networklessRequestController.instance");B||(B=new Ev,g.Zz("yt.networklessRequestController.instance",B),g.ac("networkless_logging")&&g.Sd().then(function(z){B.f2=z;NL5(B);B.Y.resolve();B.r6&&Math.random()<=B.Rf&&B.f2&&bLB(B.f2);g.ac("networkless_immediately_drop_sw_health_store")&&GFz(B)})); return B}; GFz=function(B){var z;g.D(function(T){if(!B.f2)throw z=g.Uj("clearSWHealthLogsDb"),z;return T.return(YDb(B.f2).catch(function(R){B.handleError(R)}))})}; IMr=function(B,z,T,R){R=R===void 0?!1:R;z=g.ac("web_fp_via_jspb")?Object.assign({},z):z;g.ac("use_cfr_monitor")&&dRz(B,z);if(g.ac("use_request_time_ms_header"))z.headers&&wJ(B)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.f)())));else{var h;if((h=z.postParams)==null?0:h.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,g.f)())}T&&Object.keys(z).length===0?g.Hg(B):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),xk(B,z.postBody, z,g.yH,R)):xk(B,JSON.stringify(z.postParams),z,gJ,R):g.yH(B,z)}; BF=function(B,z){g.ac("use_event_time_ms_header")&&wJ(B)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.f)())));return z}; dRz=function(B,z){var T=z.onError?z.onError:function(){}; z.onError=function(h,W){j4().requestComplete(B,!1);T(h,W)}; var R=z.onSuccess?z.onSuccess:function(){}; z.onSuccess=function(h,W){j4().requestComplete(B,!0);R(h,W)}}; g.zW=function(B){this.config_=null;B?this.config_=B:C7Y()&&(this.config_=g.iz())}; g.TW=function(B,z,T,R){function h(q){try{if((q===void 0?0:q)&&R.retry&&!R.networklessOptions.bypassNetworkless)W.method="POST",R.networklessOptions.writeThenSend?S4().writeThenSend(w,W):S4().sendAndWrite(w,W);else if(R.compress){var c=!R.networklessOptions.writeThenSend;if(W.postBody){var L=W.postBody;typeof L!=="string"&&(L=JSON.stringify(W.postBody));xk(w,L,W,g.yH,c)}else xk(w,JSON.stringify(W.postParams),W,gJ,c)}else g.ac("web_all_payloads_via_jspb")?g.yH(w,W):gJ(w,W)}catch(C){if(C.name==="InvalidAccessError")zF(Error("An extension is blocking network request.")); else throw C;}} !g.ek("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&zF(new g.Z_("Missing VISITOR_DATA when sending innertube request.",z,T,R));if(!B.isReady())throw B=new g.Z_("innertube xhrclient not ready",z,T,R),g.Sk(B),B;var W={headers:R.headers||{},method:"POST",postParams:T,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()}, onFetchTimeout:R.onTimeout,onSuccess:function(q,c){if(R.onSuccess)R.onSuccess(c)}, onFetchSuccess:function(q){if(R.onSuccess)R.onSuccess(q)}, onError:function(q,c){if(R.onError)R.onError(c)}, onFetchError:function(q){if(R.onError)R.onError(q)}, timeout:R.timeout,withCredentials:!0,compress:R.compress};W.headers["Content-Type"]||(W.headers["Content-Type"]="application/json");T="";var b=B.config_.Lu;b&&(T=b);b=B.config_.Gx||!1;var l=MkY(b,T,R);Object.assign(W.headers,l);W.headers.Authorization&&!T&&b&&(W.headers["x-origin"]=window.location.origin);var w=Yv(""+T+("/youtubei/"+B.config_.innertubeApiVersion+"/"+z),{alt:"json"});g.sH("ytNetworklessLoggingInitializationOptions")&&Ao5.isNwlInitialized?ufY().then(function(q){h(q)}):h(!1)}; g.Y2=function(B,z,T){var R=g.RZ();if(R&&z){var h=R.subscribe(B,function(){function W(){hW[h]&&z.apply&&typeof z.apply=="function"&&z.apply(T||window,b)} var b=arguments;try{g.WF[B]?W():g.FN(W,0)}catch(l){g.Sk(l)}},T); hW[h]=!0;b_[B]||(b_[B]=[]);b_[B].push(h);return h}return 0}; aMl=function(B){var z=g.Y2("LOGGED_IN",function(T){B.apply(void 0,arguments);g.l_(z)})}; g.l_=function(B){var z=g.RZ();z&&(typeof B==="number"?B=[B]:typeof B==="string"&&(B=[parseInt(B,10)]),g.Ks(B,function(T){z.unsubscribeByKey(T);delete hW[T]}))}; g.w6=function(B,z){var T=g.RZ();return T?T.publish.apply(T,arguments):!1}; MHb=function(B){var z=g.RZ();if(z)if(z.clear(B),B)URb(B);else for(var T in b_)URb(T)}; g.RZ=function(){return g.XK.ytPubsubPubsubInstance}; URb=function(B){b_[B]&&(B=b_[B],g.Ks(B,function(z){hW[z]&&delete hW[z]}),B.length=0)}; g.qc=function(B,z,T){VHd(B,z,T===void 0?null:T)}; VHd=function(B,z,T){T=T===void 0?null:T;var R=QcP(B),h=document.getElementById(R),W=h&&Dor(h),b=h&&!W;W?z&&z():(z&&(W=g.Y2(R,z),z=""+g.RR(z),yo5[z]=W),b||(h=gvH(B,R,function(){Dor(h)||(vcB(h),g.w6(R),g.FN(function(){MHb(R)},0))},T)))}; gvH=function(B,z,T,R){R=R===void 0?null:R;var h=g.ES("SCRIPT");h.id=z;h.onload=function(){T&&setTimeout(T,0)}; h.onreadystatechange=function(){switch(h.readyState){case "loaded":case "complete":h.onload()}}; R&&h.setAttribute("nonce",R);g.lh(h,g.yr(B));B=document.getElementsByTagName("head")[0]||document.body;B.insertBefore(h,B.firstChild);return h}; QcP=function(B){var z=document.createElement("a");g.ez(z,B);B=z.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+GN(B)}; i_=function(B,z){if(B===z)B=!0;else if(Array.isArray(B)&&Array.isArray(z))B=g.DF(B,z,i_);else if(g.zU(B)&&g.zU(z))a:if(g.X5(B).length!=g.X5(z).length)B=!1;else{for(var T in B)if(!i_(B[T],z[T])){B=!1;break a}B=!0}else B=!1;return B}; CH=function(B){var z=g.K5.apply(1,arguments);if(!cF(B)||z.some(function(R){return!cF(R)}))throw Error("Only objects may be merged."); z=g.d(z);for(var T=z.next();!T.done;T=z.next())LH(B,T.value)}; LH=function(B,z){for(var T in z)if(cF(z[T])){if(T in B&&!cF(B[T]))throw Error("Cannot merge an object into a non-object.");T in B||(B[T]={});LH(B[T],z[T])}else if(r6(z[T])){if(T in B&&!r6(B[T]))throw Error("Cannot merge an array into a non-array.");T in B||(B[T]=[]);Joz(B[T],z[T])}else B[T]=z[T];return B}; Joz=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next())T=T.value,cF(T)?B.push(LH({},T)):r6(T)?B.push(Joz([],T)):B.push(T);return B}; cF=function(B){return typeof B==="object"&&!Array.isArray(B)}; r6=function(B){return typeof B==="object"&&Array.isArray(B)}; oZ=function(B){g.K.call(this);this.U=B}; AW=function(B){oZ.call(this,!0);this.T=B}; aZ=function(B,z){g.K.call(this);var T=this;this.Y=[];this.L=!1;this.U=0;this.V=this.X=this.W=!1;this.TZ=null;var R=(0,g.W7)(B,z);this.T=new g.Si(function(){return R(T.TZ)},300); g.m(this,this.T);this.N=this.J=Infinity}; pPz=function(B,z){if(!z)return!1;for(var T=0;T-1)throw Error("Deps cycle for: "+z);if(B.U.has(z))return B.U.get(z);if(!B.T.has(z)){if(R)return;throw Error("No provider for: "+z);}R=B.T.get(z);T.push(z);if(R.Dk!==void 0)var h=R.Dk;else if(R.lSi)h=R[vF]?vvK(B,R[vF],T):[],h=R.lSi.apply(R,g.Q(h));else if(R.VS){h=R.VS;var W=h[vF]?vvK(B,h[vF],T):[];h=new (Function.prototype.bind.apply(h,[null].concat(g.Q(W))))}else throw Error("Could not resolve providers for: "+z);T.pop();R.ldZ||B.U.set(z,h); return h}; vvK=function(B,z,T){return z?z.map(function(R){return R instanceof $2?D7(B,R.key,T,!0):D7(B,R,T)}):[]}; KH=function(){k2||(k2=new xRB);return k2}; nH=function(){var B,z;return"h5vcc"in mA&&((B=mA.h5vcc.traceEvent)==null?0:B.traceBegin)&&((z=mA.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in mA&&mA.performance.mark&&mA.performance.measure?2:0}; u_=function(B){var z=nH();switch(z){case 1:mA.h5vcc.traceEvent.traceBegin("YTLR",B);break;case 2:mA.performance.mark(B+"-start");break;case 0:break;default:sB(z,"unknown trace type")}}; DRb=function(B){var z=nH();switch(z){case 1:mA.h5vcc.traceEvent.traceEnd("YTLR",B);break;case 2:z=B+"-start";var T=B+"-end";mA.performance.mark(T);mA.performance.measure(B,z,T);break;case 0:break;default:sB(z,"unknown trace type")}}; kFH=function(B){var z,T;(T=(z=window).onerror)==null||T.call(z,B.message,"",0,0,B)}; K4K=function(B){var z=this;var T=T===void 0?0:T;var R=R===void 0?g.To():R;this.Y=T;this.scheduler=R;this.U=new g.CP;this.T=B;for(B={s1:0};B.s1=1E3?h():R>=B?i0||(i0=cc(function(){h();i0=void 0},0)):W-l>=10&&(zFK(z,T.tier),b.W=W)}; eLK=function(B,z){if(B.endpoint==="log_event"){g.ac("more_accurate_gel_parser")&&TH().storePayload({isJspb:!1},B.payload);hj(B);var T=Wc(B),R=new Map;R.set(T,[B.payload]);var h=jcK(B.payload)||"";z&&(wd=new z);return new g.QI(function(W,b){wd&&wd.isReady()?TSH(R,wd,W,b,{bypassNetworkless:!0},!0,YV(h)):W()})}}; SDB=function(B,z,T){if(z.endpoint==="log_event"){hj(void 0,z);var R=Wc(z,!0),h=new Map;h.set(R,[rq(z.payload)]);T&&(wd=new T);return new g.QI(function(W){wd&&wd.isReady()?RFY(h,wd,W,{bypassNetworkless:!0},!0,YV(B)):W()})}}; Wc=function(B,z){var T="";if(B.dangerousLogToVisitorSession)T="visitorOnlyApprovedKey";else if(B.cttAuthInfo){if(z===void 0?0:z){z=B.cttAuthInfo.token;T=B.cttAuthInfo;var R=new NG;T.videoId?R.setVideoId(T.videoId):T.playlistId&&Ke(R,2,LV,BD(T.playlistId));CV[z]=R}else z=B.cttAuthInfo,T={},z.videoId?T.videoId=z.videoId:z.playlistId&&(T.playlistId=z.playlistId),rd[B.cttAuthInfo.token]=T;T=B.cttAuthInfo.token}return T}; l0=function(B,z,T){B=B===void 0?{}:B;z=z===void 0?!1:z;new g.QI(function(R,h){var W=q3(z,T),b=W.Y;W.Y=!1;oX(W.U);oX(W.T);W.T=0;wd&&wd.isReady()?T===void 0&&g.ac("enable_web_tiered_gel")?hFz(R,h,B,z,300,b):hFz(R,h,B,z,T,b):(zFK(z,T),R())})}; hFz=function(B,z,T,R,h,W){var b=wd;T=T===void 0?{}:T;R=R===void 0?!1:R;h=h===void 0?200:h;W=W===void 0?!1:W;var l=new Map,w=new Map,q={isJspb:R,cttAuthInfo:void 0,tier:h},c={isJspb:R,cttAuthInfo:void 0};if(R){z=g.d(Object.keys(b0));for(h=z.next();!h.done;h=z.next())h=h.value,w=g.ac("enable_web_tiered_gel")?TH().smartExtractMatchingEntries({keys:[q,c],sizeLimit:1E3}):TH().extractMatchingEntries({isJspb:!0,cttAuthInfo:h}),w.length>0&&l.set(h,w),(g.ac("web_fp_via_jspb_and_json")&&T.writeThenSend||!g.ac("web_fp_via_jspb_and_json"))&& delete b0[h];RFY(l,b,B,T,!1,W)}else{l=g.d(Object.keys(b0));for(q=l.next();!q.done;q=l.next())q=q.value,c=g.ac("enable_web_tiered_gel")?TH().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:q,tier:h},{isJspb:!1,cttAuthInfo:q}],sizeLimit:1E3}):TH().extractMatchingEntries({isJspb:!1,cttAuthInfo:q}),c.length>0&&w.set(q,c),(g.ac("web_fp_via_jspb_and_json")&&T.writeThenSend||!g.ac("web_fp_via_jspb_and_json"))&&delete b0[q];TSH(w,b,B,z,T,!1,W)}}; zFK=function(B,z){function T(){l0({writeThenSend:!0},B,z)} B=B===void 0?!1:B;z=z===void 0?200:z;var R=q3(B,z),h=R===WNl||R===bDz?5E3:YWz;g.ac("web_gel_timeout_cap")&&!R.T&&(h=cc(function(){T()},h),R.T=h); oX(R.U);h=g.ek("LOGGING_BATCH_TIMEOUT",g.UD("web_gel_debounce_ms",1E4));g.ac("shorten_initial_gel_batch_timeout")&&FP&&(h=l_b);h=cc(function(){g.UD("gel_min_batch_size")>0?TH().getSequenceCount({cttAuthInfo:void 0,isJspb:B,tier:z})>=wZz&&T():T()},h); R.U=h}; TSH=function(B,z,T,R,h,W,b){h=h===void 0?{}:h;var l=Math.round((0,g.f)()),w=B.size,q=qWl(b);B=g.d(B);var c=B.next();for(b={};!c.done;b={aj:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,o5:void 0,jc:void 0},c=B.next()){var L=g.d(c.value);c=L.next().value;L=L.next().value;b.batchRequest=g.TR({context:g.cg(z.config_||g.iz())});if(!g.B7(L)&&!g.ac("throw_err_when_logevent_malformed_killswitch")){R();break}b.batchRequest.events=L;(L=rd[c])&&iDB(b.batchRequest,c,L);delete rd[c];b.dangerousLogToVisitorSession= c==="visitorOnlyApprovedKey";cQK(b.batchRequest,l,b.dangerousLogToVisitorSession);LNz(h);b.o5=function(C){g.ac("start_client_gcf")&&g.fi.u0(function(){return g.D(function(r){return g.P(r,C9d(C),0)})}); w--;w||T()}; b.aj=0;b.jc=function(C){return function(){C.aj++;if(h.bypassNetworkless&&C.aj===1)try{g.TW(z,q,C.batchRequest,IX({writeThenSend:!0},C.dangerousLogToVisitorSession,C.o5,C.jc,W)),FP=!1}catch(r){g.Sk(r),R()}w--;w||T()}}(b); try{g.TW(z,q,b.batchRequest,IX(h,b.dangerousLogToVisitorSession,b.o5,b.jc,W)),FP=!1}catch(C){g.Sk(C),R()}}}; RFY=function(B,z,T,R,h,W){R=R===void 0?{}:R;var b=Math.round((0,g.f)()),l={value:B.size},w=new Map([].concat(g.Q(B)));w=g.d(w);for(var q=w.next();!q.done;q=w.next()){var c=g.d(q.value).next().value,L=B.get(c);q=new HPP;var C=z.config_||g.iz(),r=new mT,F=new $0;Ra(F,1,C.Ts);Ra(F,2,C.iA);WW(F,16,C.IH);Ra(F,17,C.innertubeContextClientVersion);if(C.fm){var A=C.fm,a=new Jr;A.coldConfigData&&Ra(a,1,A.coldConfigData);A.appInstallData&&Ra(a,6,A.appInstallData);A.coldHashData&&Ra(a,3,A.coldHashData);A.hotHashData&& a.K0(A.hotHashData);jK(F,Jr,62,a)}(A=g.XK.devicePixelRatio)&&A!=1&&M1(F,65,n9(A));A=MR();A!==""&&Ra(F,54,A);A=VH();if(A.length>0){a=new vf;for(var V=0;V65535&&(B=1);jk("BATCH_CLIENT_COUNTER",B);return B}; iDB=function(B,z,T){if(T.videoId)var R="VIDEO";else if(T.playlistId)R="PLAYLIST";else return;B.credentialTransferTokenTargetId=T;B.context=B.context||{};B.context.user=B.context.user||{};B.context.user.credentialTransferTokens=[{token:z,scope:R}]}; hj=function(B,z){var T=g.sH("yt.logging.transport.enableScrapingForTest"),R=Ao("il_payload_scraping");R=(R!==void 0?String(R):"")==="enable_il_payload_scraping";if(!T)if(R)Aj=[],g.Zz("yt.logging.transport.enableScrapingForTest",!0),g.Zz("yt.logging.transport.scrapedPayloadsForTesting",Aj),g.Zz("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Zz("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Zz("yt.logging.transport.scrapeClientEvent",!0);else return;T=g.sH("yt.logging.transport.scrapedPayloadsForTesting");R=g.sH("yt.logging.transport.payloadToScrape");z&&(z=z.payload,(z=g.sH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z)())&&T.push(z));z=g.sH("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var h=0;h0&&D4K(B,z,W)}else D4K(B,z)}; D4K=function(B,z,T){B=khB(B);z=z?g.Vn(z):"";T=T||5;hQ()&&g.KL(B,z,T)}; khB=function(B){for(var z=g.d(KN5),T=z.next();!T.done;T=z.next())B=Py(B,T.value);return"ST-"+GN(B).toString(36)}; m4b=function(B){if(B.name==="JavaException")return!0;B=B.stack;return B.includes("chrome://")||B.includes("chrome-extension://")||B.includes("moz-extension://")}; nKB=function(){this.Zz=[];this.X2=[]}; Pc=function(){if(!$V){var B=$V=new nKB;B.X2.length=0;B.Zz.length=0;uYd(B,HDK)}return $V}; uYd=function(B,z){z.X2&&B.X2.push.apply(B.X2,z.X2);z.Zz&&B.Zz.push.apply(B.Zz,z.Zz)}; f_d=function(B){function z(){return B.charCodeAt(R++)} var T=B.length,R=0;do{var h=xV(z);if(h===Infinity)break;var W=h>>3;switch(h&7){case 0:h=xV(z);if(W===2)return h;break;case 1:if(W===2)return;R+=8;break;case 2:h=xV(z);if(W===2)return B.substr(R,h);R+=h;break;case 5:if(W===2)return;R+=4;break;default:return}}while(R500));R++);R=h}else if(typeof B==="object")for(h in B){if(B[h]){var W=h;var b=B[h],l=z,w=T;W=typeof b!=="string"||W!=="clickTrackingParams"&&W!=="trackingParams"?0:(b=f_d(atob(b.replace(/-/g,"+").replace(/_/g,"/"))))?vc(W+".ve",b,l,w):0;R+=W;R+=vc(h,B[h],z,T);if(R>500)break}}else T[z]=Db(B),R+=T[z].length;else T[z]=Db(B),R+=T[z].length;return R}; vc=function(B,z,T,R){T+="."+B;B=Db(z);R[T]=B;return T.length+B.length}; Db=function(B){try{return(typeof B==="string"?B:String(JSON.stringify(B))).substr(0,500)}catch(z){return"unable to serialize "+typeof B+" ("+z.message+")"}}; qw=function(B){g.kV(B)}; g.KV=function(B){g.kV(B,"WARNING")}; g.kV=function(B,z){var T=T===void 0?{}:T;T.name=g.ek("INNERTUBE_CONTEXT_CLIENT_NAME",1);T.version=g.ek("INNERTUBE_CONTEXT_CLIENT_VERSION");z=z===void 0?"ERROR":z;var R=!1;z=z===void 0?"ERROR":z;R=R===void 0?!1:R;if(B){B.hasOwnProperty("level")&&B.level&&(z=B.level);if(g.ac("console_log_js_exceptions")){var h=[];h.push("Name: "+B.name);h.push("Message: "+B.message);B.hasOwnProperty("params")&&h.push("Error Params: "+JSON.stringify(B.params));B.hasOwnProperty("args")&&h.push("Error args: "+JSON.stringify(B.args)); h.push("File name: "+B.fileName);h.push("Stacktrace: "+B.stack);window.console.log(h.join("\n"),B)}if(!(NSY>=5)){h=[];for(var W=g.d(tTH),b=W.next();!b.done;b=W.next()){b=b.value;try{b()&&h.push(b())}catch(A){}}h=[].concat(g.Q(j6d),g.Q(h));var l=hhP(B);W=l.message||"Unknown Error";b=l.name||"UnknownError";var w=l.stack||B.U||"Not available";if(w.startsWith(b+": "+W)){var q=w.split("\n");q.shift();w=q.join("\n")}q=l.lineNumber||"Not available";l=l.fileName||"Not available";var c=0;if(B.hasOwnProperty("args")&& B.args&&B.args.length)for(var L=0;L=500);L++);else if(B.hasOwnProperty("params")&&B.params){var C=B.params;if(typeof B.params==="object")for(L in C){if(C[L]){var r="params."+L,F=Db(C[L]);T[r]=F;c+=r.length+F.length;if(c>500)break}}else T.params=Db(C)}if(h.length)for(L=0;L=500);L++);navigator.vendor&&!T.hasOwnProperty("vendor")&&(T["device.vendor"]=navigator.vendor);T={message:W,name:b,lineNumber:q, fileName:l,stack:w,params:T,sampleWeight:1};L=Number(B.columnNumber);isNaN(L)||(T.lineNumber=T.lineNumber+":"+L);if(B.level==="IGNORED")B=0;else a:{B=Pc();L=g.d(B.X2);for(h=L.next();!h.done;h=L.next())if(h=h.value,T.message&&T.message.match(h.RD)){B=h.weight;break a}B=g.d(B.Zz);for(L=B.next();!L.done;L=B.next())if(L=L.value,L.callback(T)){B=L.weight;break a}B=1}T.sampleWeight=B;B=g.d(XZd);for(L=B.next();!L.done;L=B.next())if(L=L.value,L.ZB[T.name])for(W=g.d(L.ZB[T.name]),h=W.next();!h.done;h=W.next())if(b= h.value,h=T.message.match(b.NZ)){T.params["params.error.original"]=h[0];W=b.groups;b={};for(q=0;q1E3&&g.KV(new g.Z_("IL Attach cache exceeded limit"))}l= em(T,z);N3.has(l)?sN(T,z):jm.set(l,!0)}}R=R.filter(function(c){c.csn!==z?(c.csn=z,c=!0):c=!1;return c}); T={csn:z,parentVe:T.getAsJson(),childVes:g.s9(R,function(c){return c.getAsJson()})}; z==="UNDEFINED_CSN"?EN("visualElementAttached",W,T):B?UN("visualElementAttached",T,B,W):g.ip("visualElementAttached",T,W)}; w4X=function(B,z,T,R,h){Sm(T,z);R=ON({cttAuthInfo:Jj(z)||void 0},z);T={csn:z,ve:T.getAsJson(),eventType:1};h&&(T.clientData=h);z==="UNDEFINED_CSN"?EN("visualElementShown",R,T):B?UN("visualElementShown",T,B,R):g.ip("visualElementShown",T,R)}; qjK=function(B,z,T,R){var h=(R=R===void 0?!1:R)?16:8;R=ON({cttAuthInfo:Jj(z)||void 0,endOfSequence:R},z);T={csn:z,ve:T.getAsJson(),eventType:h};z==="UNDEFINED_CSN"?EN("visualElementHidden",R,T):B?UN("visualElementHidden",T,B,R):g.ip("visualElementHidden",T,R)}; zt=function(B,z,T,R,h){Ba(B,z,T,void 0,R,h)}; Ba=function(B,z,T,R,h){Sm(T,z);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var W=ON({cttAuthInfo:Jj(z)||void 0},z);T={csn:z,ve:T.getAsJson(),gestureType:R};h&&(T.clientData=h);z==="UNDEFINED_CSN"?EN("visualElementGestured",W,T):B?UN("visualElementGestured",T,B,W):g.ip("visualElementGestured",T,W)}; i1K=function(){var B=Mc(16);for(var z=[],T=0;T0&&T.push(g.ES("BR"));T.push(g.Sh(W))}):T.push(g.Sh(R))}return T}; IU=function(B,z,T,R){if(T==="child"){g.zJ(z);var h;R===void 0?h=void 0:h=!Array.isArray(R)||R&&typeof R.B==="string"?[R]:R;T=L1P(B,h);T=g.d(T);for(B=T.next();!B.done;B=T.next())z.appendChild(B.value)}else T==="style"?g.Ml(z,"cssText",R?R:""):R===null||R===void 0?z.removeAttribute(T):(B=R.toString(),T==="href"&&(B=g.OB(g.Xy(B))),z.setAttribute(T,B))}; g.O=function(B){g.oU.call(this,B);this.vD=!0;this.V=!1;this.listeners=[]}; g.Gt=function(B){g.O.call(this,B);this.sE=new g.Cl;g.m(this,this.sE)}; d2=function(B,z,T,R,h,W,b){b=b===void 0?null:b;g.Gt.call(this,z);this.api=B;this.macros={};this.componentType=T;this.L=this.J=null;this.aK=b;this.layoutId=R;this.interactionLoggingClientData=h;this.ZJ=W;this.Kf=null;this.Em=new AW(this.element);g.m(this,this.Em);this.EE=this.Z(this.element,"click",this.onClick);this.RK=[];this.WD=new aZ(this.onClick,this);g.m(this,this.WD);this.U0=!1;this.zZ=this.TZ=null}; AZ=function(B,z){B=B===void 0?null:B;z=z===void 0?null:z;if(B==null)return g.KV(Error("Got null or undefined adText object")),"";var T=g.IA(B.text);if(!B.isTemplated)return T;if(z==null)return g.KV(Error("Missing required parameters for a templated message")),T;B=g.d(Object.entries(z));for(z=B.next();!z.done;z=B.next()){var R=g.d(z.value);z=R.next().value;R=R.next().value;T=T.replace("{"+z+"}",R)}return T}; CpY=function(B){B=B===void 0?null:B;return B!=null&&(B=B.thumbnail,B!=null&&B.thumbnails!=null&&B.thumbnails.length!=0&&B.thumbnails[0].url!=null)?g.IA(B.thumbnails[0].url):""}; rxr=function(B){B=B===void 0?null:B;return B!=null&&(B=B.thumbnail,B!=null&&B.thumbnails!=null&&B.thumbnails.length!=0&&B.thumbnails[0].width!=null&&B.thumbnails[0].height!=null)?new g.PY(B.thumbnails[0].width||0,B.thumbnails[0].height||0):new g.PY(0,0)}; g.aU=function(B){if(B.simpleText)return B.simpleText;if(B.runs){var z=[];B=g.d(B.runs);for(var T=B.next();!T.done;T=B.next())T=T.value,T.text&&z.push(T.text);return z.join("")}return""}; g.U_=function(B){if(B.simpleText)return B=document.createTextNode(B.simpleText),B;var z=[];if(B.runs)for(var T=0;T1){for(var z=[B[0]],T=1;T0&&(this.T=new g.Si(this.au,z,this),g.m(this,this.T));this.V=new g.Si(this.au,T,this);g.m(this,this.V);this.J=p0P(this.U,h,1,R);g.m(this,this.J);this.L=p0P(this.U,0,R,1);g.m(this,this.L);this.W=new JQ;g.m(this,this.W)}; L0=function(B,z,T){this.U=B;this.isAsync=z;this.T=T}; RdP=function(B){switch(B){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:sB(B,"unknown result type")}}; hdz=function(B,z){var T=1;B.isTrusted===!1&&(T=0);jk("ISDSTAT",T);C0(T,"i.s_",{triggerContext:"sk",metadata:z});return T}; WvX=function(B,z){var T=[];z?z.isTrusted===!0?T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):z.isTrusted===!1?T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");C0(0,"a.s_",{metadata:B,states:T});jk("ASDSTAT",0)}; C0=function(B,z,T){z=bz5[z];var R,h,W={detected:B===0,source:""+z.U+((R=T.triggerContext)!=null?R:"")+((h=T.TW)!=null?h:""),detectionStates:T.states,durationMs:T.iU};T.metadata&&(W.contentCpn=T.metadata.contentCpn,W.adCpn=T.metadata.adCpn);g.ip("biscottiBasedDetection",W);z.T!==void 0&&(T=Number(g.ek("CATSTAT",0)),z.T!==void 0?(z=z.T,B=RdP(B),B=T&~(3<0}; AC=function(B,z,T,R,h,W){hC.call(this,B,{B:"div",G:"ytp-ad-skip-button-slot"},"skip-button",z,T,R,h);var b=this;this.UE=null;this.XE=!1;this.IK=W;this.X=this.api.K().experiments.Cf("enable_modern_skip_button_on_web");this.MG=!1;this.W=new g.Gt({B:"span",nf:["ytp-ad-skip-button-container"]});this.X&&this.W.element.classList.add("ytp-ad-skip-button-container-detached");g.m(this,this.W);this.W.Vu(this.element);this.U=this.Y=null;this.eI=new g.Yp(this.W,500,!1,100,function(){return b.hide()}); g.m(this,this.eI);this.lO=new cp(this.W.element,15E3,5E3,.5,.5,this.X);g.m(this,this.lO);this.hide()}; ljK=function(B){B=B.UE&&B.UE.adRendererCommands;return(B&&B.clickCommand&&g.u(B.clickCommand,g.aS)&&g.u(B.clickCommand,g.aS).commands||[]).some(function(z){return z.adLifecycleCommand?Yv5(z.adLifecycleCommand):!1})}; Yv5=function(B){return B.action==="END_LINEAR_AD"||B.action==="END_LINEAR_AD_PLACEMENT"}; U0=function(B,z,T,R,h,W){hC.call(this,B,{B:"div",G:"ytp-ad-skip-ad-slot"},"skip-ad",z,T,R,h);this.UE=W;this.W=!1;this.X=0;this.Y=this.U=null;this.hide()}; wgY=function(B,z){B.W||(B.W=!0,B.U&&(z?B.U.UE.hide():B.U.hide()),z?(B=B.Y,B.eI.show(),B.show()):B.Y.show())}; Mk=function(B,z,T,R){mc.call(this,B,z,T,R,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; VK=function(B,z,T,R,h,W,b){W=W===void 0?!1:W;b=b===void 0?!1:b;d2.call(this,B,{B:"span",G:"ytp-ad-simple-ad-badge"},"simple-ad-badge",z,T,R);this.Y=h;this.T=this.BD("ytp-ad-simple-ad-badge");(this.U=W)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");b&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; QK=function(B,z,T,R,h){h=h===void 0?!1:h;Ll.call(this,"player-overlay",B,{},z,R);this.videoAdDurationSeconds=T;this.interactionLoggingClientData=R;this.J2=h}; yK=function(B,z){g.Cl.call(this);this.api=B;this.durationMs=z;this.T=null;this.aI=new JQ(this);g.m(this,this.aI);this.U=qvz;this.aI.Z(this.api,"presentingplayerstatechange",this.DK);this.T=this.aI.Z(this.api,"onAdPlaybackProgress",this.l$)}; gK=function(B){g.Cl.call(this);this.T=!1;this.Wv=0;this.aI=new JQ(this);g.m(this,this.aI);this.durationMs=B;this.KQ=new g.Kh(100);g.m(this,this.KQ);this.aI.Z(this.KQ,"tick",this.l$);this.U={seekableStart:0,seekableEnd:B/1E3,current:0};this.start()}; g.JC=function(B,z){var T=Math.abs(Math.floor(B)),R=Math.floor(T/86400),h=Math.floor(T%86400/3600),W=Math.floor(T%3600/60);T=Math.floor(T%60);if(z){z="";R>0&&(z+=" "+R+" Days");if(R>0||h>0)z+=" "+h+" Hours";z+=" "+W+" Minutes";z+=" "+T+" Seconds";R=z.trim()}else{z="";R>0&&(z+=R+":",h<10&&(z+="0"));if(R>0||h>0)z+=h+":",W<10&&(z+="0");z+=W+":";T<10&&(z+="0");R=z+T}return B>=0?R:"-"+R}; g.p0=function(B){return(!("button"in B)||typeof B.button!=="number"||B.button===0)&&!("shiftKey"in B&&B.shiftKey)&&!("altKey"in B&&B.altKey)&&!("metaKey"in B&&B.metaKey)&&!("ctrlKey"in B&&B.ctrlKey)}; $p=function(B,z,T,R,h,W,b){hC.call(this,B,{B:"span",G:b?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",z,T,R,h);this.videoAdDurationSeconds=W;this.U=null;b&&this.api.K().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),XJ&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Pp=function(B,z,T,R){Tv.call(this,B,z,T,R,"ytp-video-ad-top-bar-title","ad-title")}; xp=function(B){this.content=B.content;if(B.commandRuns){B=g.d(B.commandRuns);for(var z=B.next();!z.done;z=B.next())z=z.value,this.loggingDirectives=g.u(z,izB),z.onTap&&(this.interaction={onTap:z.onTap})}}; vp=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ad-simple-attributed-string"},"ad-simple-attributed-string",z,T,R);this.hide()}; Dw=function(B,z,T,R,h){d2.call(this,B,{B:"span",G:h?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",z,T,R);this.U=h;this.adBadgeText=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);this.adBadgeText.Vu(this.element);g.m(this,this.adBadgeText);h?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),XJ&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; kp=function(B,z,T,R){d2.call(this,B,{B:"span",G:"ytp-ad-pod-index"},"ad-pod-index",z,T,R);this.api.K().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),XJ&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; K0=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",z,T,R);this.hide()}; mF=function(B,z){this.U=B;this.T=z}; n0=function(B,z,T){if(!B.getLength())return T!=null?T:Infinity;B=(z-B.U)/B.getLength();return g.yQ(B,0,1)}; u1=function(B,z,T,R){R=R===void 0?!1:R;g.Gt.call(this,{B:"div",G:"ytp-ad-persistent-progress-bar-container",S:[{B:"div",G:"ytp-ad-persistent-progress-bar"}]});this.api=B;this.U=z;this.Y=T;R&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.m(this,this.U);this.progressBar=this.BD("ytp-ad-persistent-progress-bar");this.T=-1;this.Z(B,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Hp=function(B,z,T,R,h,W){d2.call(this,B,{B:"div",G:"ytp-ad-player-overlay",S:[{B:"div",G:"ytp-ad-player-overlay-flyout-cta"},{B:"div",G:"ytp-ad-player-overlay-instream-info"},{B:"div",G:"ytp-ad-player-overlay-skip-or-preview"},{B:"div",G:"ytp-ad-player-overlay-progress-bar"},{B:"div",G:"ytp-ad-player-overlay-instream-user-sentiment"},{B:"div",G:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",z,T,R);this.N=W;this.X=this.BD("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.BD("ytp-ad-player-overlay-instream-info");this.W=null;ckz(this)&&(B=sS("div"),g.ww(B,"ytp-ad-player-overlay-top-bar-gradients"),z=this.T,z.parentNode&&z.parentNode.insertBefore(B,z),(z=this.api.getVideoData(2))&&z.isListed&&z.title&&(T=new Pp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),T.Vu(B),T.init(ca("ad-title"),{text:z.title},this.macros),g.m(this,T)),this.W=B);this.Y=null;this.cD=this.BD("ytp-ad-player-overlay-skip-or-preview");this.lO=this.BD("ytp-ad-player-overlay-progress-bar"); this.XE=this.BD("ytp-ad-player-overlay-instream-user-sentiment");this.UE=this.BD("ytp-ad-player-overlay-ad-disclosure-banner");this.U=h;g.m(this,this.U);this.hide()}; ckz=function(B){B=B.api.K();return g.f0(B)&&B.U}; g.O0=function(B){B&=16777215;var z=[(B&16711680)>>16,(B&65280)>>8,B&255];B=z[0];var T=z[1];z=z[2];B=Number(B);T=Number(T);z=Number(z);if(B!=(B&255)||T!=(T&255)||z!=(z&255))throw Error('"('+B+","+T+","+z+'") is not a valid RGB color');T=B<<16|T<<8|z;return B<16?"#"+(16777216|T).toString(16).slice(1):"#"+T.toString(16)}; Nk=function(B){this.T=new Pi(B)}; LvY=function(){var B=!1;try{B=!!window.sessionStorage.getItem("session_logininfo")}catch(z){B=!0}return(g.ek("INNERTUBE_CLIENT_NAME")==="WEB"||g.ek("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&B}; tC=function(){var B=B===void 0?!0:B;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");jk("LOGIN_INFO","");B&&window.sessionStorage.setItem("from_switch_account","1");B=!0;B=B===void 0?!1:B;var z,T=Czb;T||(T=document.querySelector("#persist_identity"));if(z=T){var R=z.src?(new URL(z.src)).origin:"*";if(B){var h;(h=z.contentWindow)==null||h.postMessage({action:"clear"},R)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var W=window.sessionStorage.getItem("session_logininfo");if(W){var b;(b=z.contentWindow)==null||b.postMessage({loginInfo:W},R)}}}}catch(l){}}; jC=function(B){B&&(B.startsWith("https://accounts.google.com/AddSession")?tC():B.startsWith("https://accounts.google.com/ServiceLogin")?tC():B.startsWith("https://myaccount.google.com")&&g.Li(B).U.endsWith("/youtubeoptions")&&tC());if(g.ek("LOGGED_IN",!0)&&LvY()){var z=g.ek("VALID_SESSION_TEMPDATA_DOMAINS",[]);var T=g.GK(window.location.href);T&&z.push(T);T=g.GK(B);g.F5(z,T)||!T&&oP(B,"/")?(z=Ap(B),(z=HFb(z))?(z=khB(z),z=(z=g.m4(z)||null)?ho(z):{}):z=null):z=null;z==null&&(z={});T=z;var R=void 0; LvY()?(R||(R=g.ek("LOGIN_INFO")),R?(T.session_logininfo=R,T=!0):T=!1):T=!1;T&&pV(B,z)}}; g.rkz=function(B){var z=z===void 0?{}:z;var T=T===void 0?"":T;var R=R===void 0?window:R;B=g.Qn(B,z);jC(B);T=g.Xy(B+T);R=R.location;T=Zd(T);T!==void 0&&(R.href=T)}; g.Xo=function(B,z,T){z=z===void 0?{}:z;T=T===void 0?!1:T;var R=g.ek("EVENT_ID");R&&(z.ei||(z.ei=R));z&&pV(B,z);T||(jC(B),g.rkz(B))}; g.Zw=function(B,z,T,R,h){h=h===void 0?!1:h;T&&pV(B,T);T=g.Xy(B);var W=g.OB(T);B!=W&&zF(Error("Unsafe window.open URL: "+B));B=W;z=z||GN(B).toString(36);try{if(h)return h=B,h=CAP(h),jC(h),g.zN(window,h,z,"attributionsrc")}catch(b){g.Sk(b)}jC(B);return g.zN(window,T,z,R)}; okr=function(B){eC=B}; Fvd=function(B){s0=B}; IjK=function(B){E0=B}; dXY=function(){Gmz=E0=s0=eC=null}; ajY=function(){var B=B===void 0?window.location.href:B;if(g.ac("kevlar_disable_theme_param"))return null;var z=da(B);if(g.ac("enable_dark_theme_only_on_shorts")&&z!=null&&z.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var T=g.bA(B).theme;return AkY.get(T)||null}catch(R){}return null}; SC=function(){this.T={};if(this.U=FSr()){var B=g.m4("CONSISTENCY");B&&UXb(this,{encryptedTokenJarContents:B})}}; UXb=function(B,z){if(z.encryptedTokenJarContents&&(B.T[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var T=Number(z.expirationSeconds);setTimeout(function(){delete B.T[z.encryptedTokenJarContents]},T*1E3); B.U&&g.KL("CONSISTENCY",z.encryptedTokenJarContents,T,void 0,!0)}}; z$=function(){this.U=-1;var B=g.ek("LOCATION_PLAYABILITY_TOKEN");g.ek("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=BS(this))&&(B=this.localStorage.get("yt-location-playability-token"));B&&(this.locationPlayabilityToken=B,this.T=void 0)}; BS=function(B){return B.localStorage===void 0?new W4("yt-client-location"):B.localStorage}; g.cS=function(B,z,T){z=z===void 0?!1:z;T=T===void 0?!1:T;var R=g.ek("INNERTUBE_CONTEXT");if(!R)return g.kV(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};R=g.TR(R);g.ac("web_no_tracking_params_in_shell_killswitch")||delete R.clickTracking;R.client||(R.client={});var h=R.client;h.clientName==="MWEB"&&h.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(h.clientFormFactor=g.ek("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints= window.innerHeight;h.screenPixelDensity=Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var W=W===void 0?!1:W;g.fD();var b="USER_INTERFACE_THEME_LIGHT";g.OW(0,165)?b="USER_INTERFACE_THEME_DARK":g.OW(0,174)?b="USER_INTERFACE_THEME_LIGHT":!g.ac("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (b="USER_INTERFACE_THEME_DARK");W=W?b:ajY()||b;h.userInterfaceTheme=W;if(!z){if(W=h_d())h.connectionType=W;g.ac("web_log_effective_connection_type")&&(W=b2K())&&(R.client.effectiveConnectionType=W)}var l;if(g.ac("web_log_memory_total_kbytes")&&((l=g.XK.navigator)==null?0:l.deviceMemory)){var w;l=(w=g.XK.navigator)==null?void 0:w.deviceMemory;R.client.memoryTotalKbytes=""+l*1E6}g.ac("web_gcf_hashes_innertube")&&(W=LTP())&&(w=W.coldConfigData,l=W.coldHashData,W=W.hotHashData,R.client.configInfo=R.client.configInfo|| {},w&&(R.client.configInfo.coldConfigData=w),l&&(R.client.configInfo.coldHashData=l),W&&(R.client.configInfo.hotHashData=W));w=g.bA(g.XK.location.href);!g.ac("web_populate_internal_geo_killswitch")&&w.internalcountrycode&&(h.internalGeo=w.internalcountrycode);h.clientName==="MWEB"||h.clientName==="WEB"?(h.mainAppWebInfo={graftUrl:g.XK.location.href},g.ac("kevlar_woffle")&&sCK.instance&&(w=sCK.instance,h.mainAppWebInfo.pwaInstallabilityStatus=!w.T&&w.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),h.mainAppWebInfo.webDisplayMode=nD(),h.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):h.clientName==="TVHTML5"&&(!g.ac("web_lr_app_quality_killswitch")&&(w=g.ek("LIVING_ROOM_APP_QUALITY"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{appQuality:w})),w=g.ek("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{certificationScope:w}));if(!g.ac("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(v){}q=void 0}q&&(h.timeZone=q)}(q=MR())?h.experimentsToken=q:delete h.experimentsToken;q=VH();SC.instance||(SC.instance=new SC);R.request=Object.assign({},R.request,{internalExperimentFlags:q,consistencyTokenJars:g.jc(SC.instance.T)});!g.ac("web_prequest_context_killswitch")&&(q=g.ek("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(R.request.externalPrequestContext=q);h=g.fD();q=g.OW(0,58);h=h.get("gsml","");R.user=Object.assign({}, R.user);q&&(R.user.enableSafetyMode=q);h&&(R.user.lockedSafetyMode=!0);g.ac("warm_op_csn_cleanup")?T&&(z=g.gd())&&(R.clientScreenNonce=z):!z&&(z=g.gd())&&(R.clientScreenNonce=z);B&&(R.clickTracking={clickTrackingParams:B});if(B=g.sH("yt.mdx.remote.remoteClient_"))R.remoteClient=B;z$.getInstance().setLocationOnInnerTubeContext(R);try{var c=CL(),L=c.bid;delete c.bid;R.adSignalsInfo={params:[],bid:L};for(var C=g.d(Object.entries(c)),r=C.next();!r.done;r=C.next()){var F=g.d(r.value),A=F.next().value, a=F.next().value;c=A;L=a;B=void 0;(B=R.adSignalsInfo.params)==null||B.push({key:c,value:""+L})}var V,M;if(((V=R.client)==null?void 0:V.clientName)==="TVHTML5"||((M=R.client)==null?void 0:M.clientName)==="TVHTML5_UNPLUGGED"){var x=g.ek("INNERTUBE_CONTEXT");x.adSignalsInfo&&(R.adSignalsInfo.advertisingId=x.adSignalsInfo.advertisingId,R.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",R.adSignalsInfo.limitAdTracking=x.adSignalsInfo.limitAdTracking)}}catch(v){g.kV(v)}return R}; QIB=function(B,z){if(!B)return!1;var T,R=(T=g.u(B,M4B))==null?void 0:T.signal;if(R&&z.lT)return!!z.lT[R];var h;if((T=(h=g.u(B,V4B))==null?void 0:h.request)&&z.Tg)return!!z.Tg[T];for(var W in B)if(z.kN[W])return!0;return!1}; ykX=function(B){var z={"Content-Type":"application/json"};g.ek("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=g.ek("EOM_VISITOR_DATA"):g.ek("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.ek("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=g.ek("LOGGED_IN",!1);g.ek("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=g.ek("DEBUG_SETTINGS_METADATA"));B!=="cors"&&((B=g.ek("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=B),(B=g.ek("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]= B),(B=g.ek("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=B),(B=g.ek("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=B),g.ek("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(B=g.ek("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=B));return z}; gkY=function(){this.T={}}; LM=function(){this.mappings=new gkY}; CM=function(B){return function(){return new B}}; pgz=function(B){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(B.length===1)return B[0];var T=Jkz[z];if(T){T=new RegExp(T);for(var R=g.d(B),h=R.next();!h.done;h=R.next())if(h=h.value,T.exec(h))return h}var W=[];Object.entries(Jkz).forEach(function(b){var l=g.d(b);b=l.next().value;l=l.next().value;z!==b&&W.push(l)}); T=new RegExp(W.join("|"));B.sort(function(b,l){return b.length-l.length}); R=g.d(B);for(h=R.next();!h.done;h=R.next())if(h=h.value,!T.exec(h))return h;return B[0]}; g.rn=function(B){return"/youtubei/v1/"+pgz(B)}; oW=function(){}; F_=function(){}; IW=function(){}; G$=function(B){return g.sH("ytcsi."+(B||"")+"data_")||$Xz(B)}; PzB=function(){var B=G$();B.info||(B.info={});return B.info}; dn=function(B){B=G$(B);B.metadata||(B.metadata={});return B.metadata}; AY=function(B){B=G$(B);B.tick||(B.tick={});return B.tick}; aW=function(B){B=G$(B);if(B.gel){var z=B.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else B.gel={gelTicks:{},gelInfos:{}};return B.gel}; xXz=function(B){B=aW(B);B.gelInfos||(B.gelInfos={});return B.gelInfos}; U4=function(B){var z=G$(B).nonce;z||(z=g.V6(16),G$(B).nonce=z);return z}; $Xz=function(B){var z={tick:{},info:{}};g.Zz("ytcsi."+(B||"")+"data_",z);return z}; MK=function(){var B=g.sH("ytcsi.debug");B||(B=[],g.Zz("ytcsi.debug",B),g.Zz("ytcsi.reference",{}));return B}; V0=function(B){B=B||"";var z=vkH();if(z[B])return z[B];var T=MK(),R={timerName:B,info:{},tick:{},span:{},jspbInfo:[]};T.push(R);return z[B]=R}; DXr=function(B){B=B||"";var z=vkH();z[B]&&delete z[B];var T=MK(),R={timerName:B,info:{},tick:{},span:{},jspbInfo:[]};T.push(R);z[B]=R}; vkH=function(){var B=g.sH("ytcsi.reference");if(B)return B;MK();return g.sH("ytcsi.reference")}; Q0=function(B){return kmz[B]||"LATENCY_ACTION_UNKNOWN"}; y0=function(B,z){Cz.call(this,1,arguments);this.KQ=z}; gn=function(){this.T=0}; JY=function(){gn.instance||(gn.instance=new gn);return gn.instance}; $X=function(B,z){pM[z]=pM[z]||{count:0};var T=pM[z];T.count++;T.time=(0,g.f)();B.T||(B.T=g.B4(0,function(){var R=(0,g.f)(),h;for(h in pM)pM[h]&&R-pM[h].time>6E4&&delete pM[h];B&&(B.T=0)},5E3)); return T.count>5?(T.count===6&&Math.random()*1E5<1&&(T=new g.Z_("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||g.KV(T)),!0):!1}; Kvd=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; mXP=function(){var B;if(g.ac("csi_use_performance_navigation_timing")||g.ac("csi_use_performance_navigation_timing_tvhtml5")){var z,T,R,h=PS==null?void 0:(B=PS.getEntriesByType)==null?void 0:(z=B.call(PS,"navigation"))==null?void 0:(T=z[0])==null?void 0:(R=T.toJSON)==null?void 0:R.call(T);h?(h.requestStart=xX(h.requestStart),h.responseEnd=xX(h.responseEnd),h.redirectStart=xX(h.redirectStart),h.redirectEnd=xX(h.redirectEnd),h.domainLookupEnd=xX(h.domainLookupEnd),h.connectStart=xX(h.connectStart), h.connectEnd=xX(h.connectEnd),h.responseStart=xX(h.responseStart),h.secureConnectionStart=xX(h.secureConnectionStart),h.domainLookupStart=xX(h.domainLookupStart),h.isPerformanceNavigationTiming=!0,B=h):B=PS.timing}else B=g.ac("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(PS.timing)):PS.timing;return B}; xX=function(B){return Math.round(vS()+B)}; vS=function(){return(g.ac("csi_use_time_origin")||g.ac("csi_use_time_origin_tvhtml5"))&&PS.timeOrigin?Math.floor(PS.timeOrigin):PS.timing.navigationStart}; kX=function(B,z){DU("_start",B,z)}; KM=function(B,z){if(!g.ac("web_csi_action_sampling_enabled")||!G$(z).actionDisabled){var T=V0(z||"");CH(T.info,B);B.loadType&&(T=B.loadType,dn(z).loadType=T);CH(xXz(z),B);T=U4(z);z=G$(z).cttAuthInfo;JY().info(B,T,z)}}; nkX=function(){var B,z,T,R;return((R=KH().resolve(PF(wi))==null?void 0:(B=qX())==null?void 0:(z=B.loggingHotConfig)==null?void 0:(T=z.csiConfig)==null?void 0:T.debugTicks)!=null?R:[]).map(function(h){return Object.values(h)[0]})}; DU=function(B,z,T){if(!g.ac("web_csi_action_sampling_enabled")||!G$(T).actionDisabled){var R=U4(T),h;if(h=g.ac("web_csi_debug_sample_enabled")&&R){(KH().resolve(PF(wi))==null?0:qX())&&!u05&&(u05=!0,DU("gcfl",(0,g.f)(),T));var W,b,l;h=(KH().resolve(PF(wi))==null?void 0:(W=qX())==null?void 0:(b=W.loggingHotConfig)==null?void 0:(l=b.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(W=h!==0)b:{W=nkX();if(W.length>0)for(b=0;bT.duration?R:T},{duration:0}))&&z.startTime>0&&z.responseEnd>0&&(DU("wffs",xX(z.startTime)),DU("wffe",xX(z.responseEnd)))}; XgK=function(B,z,T){PS&&PS.measure&&(B.startsWith("measure_")||(B="measure_"+B),T?PS.measure(B,z,T):z?PS.measure(B,z):PS.measure(B))}; ZzB=function(B){var z=m5("aft",B);if(z)return z;z=g.ek((B||"")+"TIMING_AFT_KEYS",["ol"]);for(var T=z.length,R=0;R0&&KM(z);z={isNavigation:!0,actionType:Q0(g.ek("TIMING_ACTION"))};var T=g.ek("PREVIOUS_ACTION");T&&(z.previousAction=Q0(T));if(T=g.ek("CLIENT_PROTOCOL"))z.httpProtocol=T;if(T=g.ek("CLIENT_TRANSPORT"))z.transportProtocol=T;(T=g.gd())&&T!=="UNDEFINED_CSN"&&(z.clientScreenNonce=T);T=OzK();if(T===1||T===-1)z.isVisible= !0;T=dn().loadType==="cold";var R=PzB();T||(T=R.yt_lt==="cold");if(T){z.loadType="cold";T=PzB();R=mXP();var h=vS(),W=g.ek("CSI_START_TIMESTAMP_MILLIS",0);W>0&&!g.ac("embeds_web_enable_csi_start_override_killswitch")&&(h=W);h&&(DU("srt",R.responseStart),T.prerender!==1&&kX(h));T=Ek5();T>0&&DU("fpt",T);T=mXP();T.isPerformanceNavigationTiming&&KM({performanceNavigationTiming:!0},void 0);DU("nreqs",T.requestStart,void 0);DU("nress",T.responseStart,void 0);DU("nrese",T.responseEnd,void 0);T.redirectEnd- T.redirectStart>0&&(DU("nrs",T.redirectStart,void 0),DU("nre",T.redirectEnd,void 0));T.domainLookupEnd-T.domainLookupStart>0&&(DU("ndnss",T.domainLookupStart,void 0),DU("ndnse",T.domainLookupEnd,void 0));T.connectEnd-T.connectStart>0&&(DU("ntcps",T.connectStart,void 0),DU("ntcpe",T.connectEnd,void 0));T.secureConnectionStart>=vS()&&T.connectEnd-T.secureConnectionStart>0&&(DU("nstcps",T.secureConnectionStart,void 0),DU("ntcpe",T.connectEnd,void 0));PS&&"getEntriesByType"in PS&&jIz();T=[];if(document.querySelector&& PS&&PS.getEntriesByName)for(var b in HS)HS.hasOwnProperty(b)&&(R=HS[b],t4Y(b,R)&&T.push(R));if(T.length>0)for(z.resourceInfo=[],b=g.d(T),T=b.next();!T.done;T=b.next())z.resourceInfo.push({resourceCache:T.value})}KM(z);z=aW();z.preLoggedGelInfos||(z.preLoggedGelInfos=[]);b=z.preLoggedGelInfos;z=xXz();T=void 0;for(R=0;R-1&&(delete UH["@type"],N=UH);A&&B.U.has(A)&&B.U.delete(A);((vb=z.config)==null?0:vb.CzD)&&O4(z.config.CzD);if(N||(AI=B.Y)==null||!AI.NYd(z.input,z.IT)){gX.jI(15);break}return g.P(gX,B.Y.QDJ(z.input,z.IT),16);case 16:N=gX.T;case 15:return o2z(B,N,z),((lW=z.config)==null?0:lW.Fam)&&O4(z.config.Fam),R(),gX.return(N|| void 0)}})}; iHK=function(B,z){a:{B=B.Ld;var T,R=(T=g.u(z,M4B))==null?void 0:T.signal;if(R&&B.lT&&(T=B.lT[R])){var h=T();break a}var W;if((T=(W=g.u(z,V4B))==null?void 0:W.request)&&B.Tg&&(W=B.Tg[T])){h=W();break a}for(h in z)if(B.kN[h]&&(z=B.kN[h])){h=z();break a}h=void 0}if(h!==void 0)return Promise.resolve(h)}; LAb=function(B,z,T){var R,h,W,b,l,w,q;return g.D(function(c){if(c.U==1){W=((R=z)==null?void 0:(h=R.U1)==null?void 0:h.identity)||Lz;w=(b=z)==null?void 0:(l=b.U1)==null?void 0:l.sessionIndex;var L=g.gW(B.T.t4(W,{sessionIndex:w}));return g.P(c,L,2)}q=c.T;return c.return(Promise.resolve(Object.assign({},ykX(T),q)))})}; cWz=function(B,z,T){var R,h=(z==null?void 0:(R=z.U1)==null?void 0:R.identity)||Lz,W;z=z==null?void 0:(W=z.U1)==null?void 0:W.sessionIndex;B=B.T.t4(h,{sessionIndex:z});return Object.assign({},ykX(T),B)}; SD=function(){}; BN=function(){}; zp=function(B){this.X=B}; Tp=function(){}; Rl=function(){}; hA=function(){}; WN=function(){}; g.bB=function(B,z){var T=g.K5.apply(2,arguments);B=B===void 0?0:B;g.Z_.call(this,z,T);this.errorType=B;Object.setPrototypeOf(this,this.constructor.prototype)}; Y8=function(B,z,T,R){this.T=B;this.U=z;this.Y=T;this.W=R}; I7r=function(B,z,T){if(B.T){var R=da(Py(z,"key"))||"/UNKNOWN_PATH";B.T.start(R)}R=T;g.ac("wug_networking_gzip_request")&&(R=OEX(T));var h;return new ((h=B.W)!=null?h:window.Request)(z,R)}; g.wI=function(B,z){if(!lB){var T=KH();x2(T,{zE:GWP,VS:Y8});var R={kN:{feedbackEndpoint:CM(Tp),modifyChannelNotificationPreferenceEndpoint:CM(Rl),playlistEditEndpoint:CM(hA),shareEntityEndpoint:CM(zp),subscribeEndpoint:CM(SD),unsubscribeEndpoint:CM(BN),webPlayerShareEntityServiceEndpoint:CM(WN)}},h=z$.getInstance(),W={};h&&(W.client_location=h);B===void 0&&(B=EcY());z===void 0&&(z=T.resolve(GWP));qeB(R,z,B,W);x2(T,{zE:dc5,Dk:eD.instance});lB=T.resolve(dc5)}return lB}; AWK=function(B){var z=new c1;if(B.interpreterJavascript){var T=P8H(B.interpreterJavascript);T=bh(T).toString();var R=new q8;Ra(R,6,T);jK(z,q8,1,R,Qf)}else B.interpreterUrl&&(T=Qr(B.interpreterUrl),T=Hh(T).toString(),R=new i8,Ra(R,4,T),jK(z,i8,2,R,Qf));B.interpreterHash&&h4(z,3,B.interpreterHash,Qf);B.program&&h4(z,4,B.program,Qf);B.globalName&&h4(z,5,B.globalName,Qf);B.clientExperimentsStateBlob&&h4(z,7,B.clientExperimentsStateBlob,Qf);return z}; q9=function(B){var z={};B=B.split("&");B=g.d(B);for(var T=B.next();!T.done;T=B.next())T=T.value.split("="),T.length===2&&(z[T[0]]=T[1]);return z}; P3z=function(){if(g.ac("bg_st_hr"))return"havuokmhhs-0";var B,z=((B=performance)==null?void 0:B.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)}; iB=function(B){this.T=B}; a75=function(){return new Promise(function(B){var z=window.top;z.ntpevasrs!==void 0?B(new iB(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(T){B(new iB(T))}))})}; MGB=function(){if(hQ()){var B=g.ek("PLAYER_VARS",{});if(g.Sc(B,"privembed",!1)!="1"&&!MiB(B)){var z=function(){cN=!0;"google_ad_status"in window?jk("DCLKSTAT",1):jk("DCLKSTAT",2)}; try{g.qc("//static.doubleclick.net/instream/ad_status.js",z)}catch(T){}UcK.push(g.fi.u0(function(){if(!(cN||"google_ad_status"in window)){try{if(z){var T=""+g.RR(z),R=yo5[T];R&&g.l_(R)}}catch(h){}cN=!0;jk("DCLKSTAT",3)}},5E3))}}}; Lv=function(){var B=Number(g.ek("DCLKSTAT",0));return isNaN(B)?0:B}; FE=function(B,z,T){var R=this;this.network=B;this.options=z;this.U=T;this.T=null;if(z.LSJ){var h=new g.CP;this.T=h.promise;g.XK.ytAtRC&&ST(function(){var W,b;return g.D(function(l){if(l.U==1){if(!g.XK.ytAtRC)return l.return();W=Cv(null);return g.P(l,rI(R,W),2)}b=l.T;g.XK.ytAtRC&&g.XK.ytAtRC(JSON.stringify(b));g.dX(l)})},2); a75().then(function(W){var b,l,w,q;return g.D(function(c){if(c.U==1)return W.bindInnertubeChallengeFetcher(function(L){return rI(R,Cv(L))}),g.P(c,bj(),2); b=c.T;l=W.getLatestChallengeResponse();w=l.challenge;if(!w)throw Error("BGE_MACIL");q={challenge:w,I2:q9(w),fQ:b,bgChallenge:new c1};h.resolve(q);W.registerChallengeFetchedCallback(function(L){L=L.challenge;if(!L)throw Error("BGE_MACR");L={challenge:L,I2:q9(L),fQ:b,bgChallenge:new c1};R.T=Promise.resolve(L)}); g.dX(c)})})}else z.preload&&VGK(this,new Promise(function(W){g.B4(0,function(){W(ol(R))},0)}))}; Cv=function(B){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};B&&(z.interpreterHash=B);return z}; ol=function(B,z){z=z===void 0?0:z;var T,R,h,W,b,l,w,q,c,L,C,r;return g.D(function(F){switch(F.U){case 1:T=Cv(Fh().T);if(g.ac("att_fet_ks"))return g.AK(F,7),g.P(F,rI(B,T),9);g.AK(F,4);return g.P(F,QZK(B,T),6);case 6:b=F.T;h=b.Ntm;W=b.A$G;R=b;g.yz(F,3);break;case 4:return g.JK(F),g.KV(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),Il(B,864E5),F.return({challenge:"",I2:{},fQ:void 0,bgChallenge:void 0});case 9:R=F.T;if(!R)throw Error("Fetching Attestation challenge returned falsy"); if(!R.challenge)throw Error("Missing Attestation challenge");h=R.challenge;W=q9(h);if("c1a"in W&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.yz(F,3);break;case 7:l=g.JK(F);g.KV(l);z++;if(z>=5)return g.KV(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),Il(B,864E5),F.return({challenge:"",I2:{},fQ:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,z-1)+Math.random()*1E3;return F.return(new Promise(function(A){g.B4(0, function(){A(ol(B,z))},w)})); case 3:q=Number(W.t)||7200;Il(B,q*1E3);c=void 0;if(!("c1a"in W&&R.bgChallenge)){F.jI(10);break}L=AWK(R.bgChallenge);g.AK(F,11);return g.P(F,PQX(Fh(),L),13);case 13:g.yz(F,12);break;case 11:return C=g.JK(F),g.KV(C),F.return({challenge:h,I2:W,fQ:c,bgChallenge:L});case 12:return g.AK(F,14),c=new rU({challenge:L,NP:{aQ:"aGIf"}}),g.P(F,c.XA,16);case 16:g.yz(F,10);break;case 14:r=g.JK(F),g.KV(r),c=void 0;case 10:return F.return({challenge:h,I2:W,fQ:c,bgChallenge:L})}})}; rI=function(B,z){var T;return g.D(function(R){T=B.U;if(!T||T.zO())return R.return(rI(B.network,z));ZU("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(h){T.Hh("publicytnetworkstatus-online",function(){rI(B.network,z).then(h)})}))})}; yWY=function(B){if(!B)throw Error("Fetching Attestation challenge returned falsy");if(!B.challenge)throw Error("Missing Attestation challenge");var z=B.challenge,T=q9(z);if("c1a"in T&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},B,{Ntm:z,A$G:T})}; QZK=function(B,z){var T,R,h,W,b;return g.D(function(l){switch(l.U){case 1:T=void 0,R=0,h={};case 2:if(!(R<5)){l.jI(4);break}if(!(R>0)){l.jI(5);break}h.YK=1E3*Math.pow(2,R-1)+Math.random()*1E3;return g.P(l,new Promise(function(w){return function(q){g.B4(0,function(){q(void 0)},w.YK)}}(h)),5); case 5:return g.AK(l,7),g.P(l,rI(B,z),9);case 9:return W=l.T,l.return(yWY(W));case 7:T=b=g.JK(l),b instanceof Error&&g.KV(b);case 8:R++;h={YK:void 0};l.jI(2);break;case 4:throw T;}})}; VGK=function(B,z){B.T=z}; g2z=function(B){var z,T,R;return g.D(function(h){if(h.U==1)return g.P(h,Promise.race([B.T,null]),2);z=h.T;var W=ol(B);B.T=W;(T=z)==null||(R=T.fQ)==null||R.dispose();g.dX(h)})}; Il=function(B,z){function T(){var h;return g.D(function(W){h=R-Date.now();return h<1E3?g.P(W,g2z(B),0):(ST(T,0,Math.min(h,6E4)),W.jI(0))})} var R=Date.now()+z;T()}; JWB=function(B,z){return new Promise(function(T){g.B4(0,function(){T(z())},B)})}; g.pFK=function(B,z){var T;return g.D(function(R){var h=g.sH("yt.aba.att");return(T=h?h:FE.instance!==void 0?FE.instance.Y.bind(FE.instance):null)?R.return(T("ENGAGEMENT_TYPE_PLAYBACK",B,z)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.$cd=function(){var B;return(B=(B=g.sH("yt.aba.att2"))?B:FE.instance!==void 0?FE.instance.W.bind(FE.instance):null)?B():Promise.resolve(!1)}; xcP=function(B,z){var T=g.sH("ytDebugData.callbacks");T||(T={},g.Zz("ytDebugData.callbacks",T));if(g.ac("web_dd_iu")||P_K.includes(B))T[B]=z}; Gp=function(){var B=v2z;var z=z===void 0?[]:z;var T=T===void 0?[]:T;z=QsB.apply(null,[yGz.apply(null,g.Q(z))].concat(g.Q(T)));this.store=JGd(B,void 0,z)}; g.dI=function(B,z,T){for(var R=Object.assign({},B),h=g.d(Object.keys(z)),W=h.next();!W.done;W=h.next()){W=W.value;var b=B[W],l=z[W];if(l===void 0)delete R[W];else if(b===void 0)R[W]=l;else if(Array.isArray(l)&&Array.isArray(b))R[W]=T?[].concat(g.Q(b),g.Q(l)):l;else if(!Array.isArray(l)&&g.zU(l)&&!Array.isArray(b)&&g.zU(b))R[W]=g.dI(b,l,T);else if(typeof l===typeof b)R[W]=l;else return z=new g.Z_("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:W,tWE:b,updateValue:l}),g.kV(z), B}return R}; AA=function(B){var z=this;B=B===void 0?[]:B;this.W4=[];this.jl=this.nY=0;this.qX=void 0;this.totalLength=0;B.forEach(function(T){z.append(T)})}; Dcz=function(B,z){return B.W4.length===0?!1:(B=B.W4[B.W4.length-1])&&B.buffer===z.buffer&&B.byteOffset+B.length===z.byteOffset}; al=function(B,z){z=g.d(z.W4);for(var T=z.next();!T.done;T=z.next())B.append(T.value)}; Uy=function(B,z,T){return B.split(z).Y3.split(T).Km}; M9=function(B){B.qX=void 0;B.nY=0;B.jl=0}; VA=function(B,z,T){B.isFocused(z);return z-B.jl+T<=B.W4[B.nY].length}; kWz=function(B){if(!B.qX){var z=B.W4[B.nY];B.qX=new DataView(z.buffer,z.byteOffset,z.length)}return B.qX}; QA=function(B,z,T){B=B.r0(z===void 0?0:z,T===void 0?-1:T);z=new Uint8Array(B.length);try{z.set(B)}catch(R){for(T=0;T>10;W=56320|W&1023}JA[h++]=W}}W=String.fromCharCode.apply(String,JA); h<1024&&(W=W.substring(0,h));T.push(W)}return T.join("")}; PN=function(B,z){var T;if((T=$8)==null?0:T.encodeInto)return z=$8.encodeInto(B,z),z.read>6|192:((h&64512)===55296&&R+1>18|240,z[T++]=h>>12&63|128):z[T++]=h>>12|224,z[T++]=h>>6&63|128),z[T++]=h&63|128)}return T}; x8=function(B){if($8)return $8.encode(B);var z=new Uint8Array(Math.ceil(B.length*1.2)),T=PN(B,z);z.lengthT&&(z=z.subarray(0,T));return z}; vN=function(B){this.T=B;this.pos=0;this.U=-1}; Dl=function(B){var z=B.T.getUint8(B.pos);++B.pos;if(z<128)return z;for(var T=z&127,R=1;z>=128;)z=B.T.getUint8(B.pos),++B.pos,R*=128,T+=(z&127)*R;return T}; k8=function(B,z){var T=B.U;for(B.U=-1;B.T.p_(B.pos,1);){T<0&&(T=Dl(B));var R=T>>3,h=T&7;if(R===z)return!0;if(R>z){B.U=T;break}T=-1;switch(h){case 0:Dl(B);break;case 1:B.pos+=8;break;case 2:R=Dl(B);B.pos+=R;break;case 5:B.pos+=4}}return!1}; Kv=function(B,z){if(k8(B,z))return Dl(B)}; ms=function(B,z){if(k8(B,z))return!!Dl(B)}; nv=function(B,z){if(k8(B,z)){z=Dl(B);var T=B.T.r0(B.pos,z);B.pos+=z;return T}}; uB=function(B,z){if(B=nv(B,z))return g.pv(B)}; HN=function(B,z,T){if(B=nv(B,z))return T(new vN(new AA([B])))}; fv=function(B,z){for(var T=[];k8(B,z);)T.push(Dl(B));return T.length?T:void 0}; Oy=function(B,z,T){for(var R=[],h;h=nv(B,z);)R.push(T(new vN(new AA([h]))));return R.length?R:void 0}; N9=function(B,z){B=B instanceof Uint8Array?new AA([B]):B;return z(new vN(B))}; n2H=function(B,z,T){if(z&&T&&T.buffer===z.exports.memory.buffer){var R=z.realloc(T.byteOffset,B);if(R)return new Uint8Array(z.exports.memory.buffer,R,B)}B=z?new Uint8Array(z.exports.memory.buffer,z.malloc(B),B):new Uint8Array(B);T&&B.set(T);return B}; uzd=function(B,z){this.Y=z;this.pos=0;this.U=[];this.T=n2H(B===void 0?4096:B,z);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; tA=function(B,z){z=B.pos+z;if(!(B.T.length>=z)){for(var T=B.T.length*2;T268435455){tA(B,4);for(var T=z&1073741823,R=0;R<4;R++)B.view.setUint8(B.pos,T&127|128),T>>=7,B.pos+=1;z=Math.floor(z/268435456)}for(tA(B,4);z>127;)B.view.setUint8(B.pos,z&127|128),z>>=7,B.pos+=1;B.view.setUint8(B.pos,z);B.pos+=1}; XE=function(B,z,T){T!==void 0&&(j6(B,z*8),j6(B,T))}; Zl=function(B,z,T){T!==void 0&&XE(B,z,T?1:0)}; e6=function(B,z,T){T!==void 0&&(j6(B,z*8+2),z=T.length,j6(B,z),tA(B,z),B.T.set(T,B.pos),B.pos+=z)}; sy=function(B,z,T){T!==void 0&&(HHP(B,z,Math.ceil(Math.log2(T.length*4+2)/7)),tA(B,T.length*1.2),z=PN(T,B.T.subarray(B.pos)),B.pos+z>B.T.length&&(tA(B,z),z=PN(T,B.T.subarray(B.pos))),B.pos+=z,f7d(B))}; HHP=function(B,z,T){T=T===void 0?2:T;j6(B,z*8+2);B.U.push(B.pos);B.U.push(T);B.pos+=T}; f7d=function(B){for(var z=B.U.pop(),T=B.U.pop(),R=B.pos-T-z;z--;){var h=z?128:0;B.view.setUint8(T++,R&127|h);R>>=7}}; Ey=function(B,z,T,R,h){T&&(HHP(B,z,h===void 0?3:h),R(B,T),f7d(B))}; g.wz=function(B,z,T){T=new uzd(4096,T);z(T,B);return new Uint8Array(T.T.buffer,T.T.byteOffset,T.pos)}; g.qq=function(B){var z=new vN(new AA([lT(decodeURIComponent(B))]));B=uB(z,2);z=Kv(z,4);var T=OHH[z];if(typeof T==="undefined")throw B=new g.Z_("Failed to recognize field number",{name:"EntityKeyHelperError",rUO:z}),g.kV(B),B;return{Gp:z,entityType:T,entityId:B}}; g.iZ=function(B,z){var T=T===void 0?0:T;var R=new uzd;e6(R,2,x8(B));B=N6H[z];if(typeof B==="undefined")throw T=new g.Z_("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),g.kV(T),T;XE(R,4,B);XE(R,5,1);z=new Uint8Array(R.T.buffer,R.T.byteOffset,R.pos);return encodeURIComponent(g.bT(z,T))}; cR=function(B,z,T,R){if(R===void 0)return R=Object.assign({},B[z]||{}),T=(delete R[T],R),R={},Object.assign({},B,(R[z]=T,R));var h={},W={};return Object.assign({},B,(W[z]=Object.assign({},B[z],(h[T]=R,h)),W))}; tG5=function(B,z,T,R,h){var W=B[z];if(W==null||!W[T])return B;R=g.dI(W[T],R,h==="REPEATED_FIELDS_MERGE_OPTION_APPEND");h={};W={};return Object.assign({},B,(W[z]=Object.assign({},B[z],(h[T]=R,h)),W))}; jZz=function(B,z){B=B===void 0?{}:B;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(R,h){var W,b=(W=h.options)==null?void 0:W.persistenceOption;if(b&&b!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&b!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!h.entityKey)return g.kV(Error("Missing entity key")),R;if(h.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!h.payload)return h=new g.Z_("REPLACE entity mutation is missing a payload",{entityKey:h.entityKey}),g.kV(h),R;var l=g.Ng(h.payload); return cR(R,l,h.entityKey,h.payload[l])}if(h.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{h=h.entityKey;try{var w=g.qq(h).entityType;l=cR(R,w,h);break a}catch(L){if(L instanceof Error){h=new g.Z_("Failed to deserialize entity key",{entityKey:h,originalMessage:L.message});g.kV(h);l=R;break a}throw L;}l=void 0}return l}if(h.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!h.payload)return h=new g.Z_("UPDATE entity mutation is missing a payload",{entityKey:h.entityKey}),g.kV(h),R;l=g.Ng(h.payload);var q,c;return tG5(R, l,h.entityKey,h.payload[l],(q=h.fieldMask)==null?void 0:(c=q.mergeOptions)==null?void 0:c.repeatedFieldsMergeOption)}return R},B); case "REPLACE_ENTITY":var T=z.payload;return cR(B,T.entityType,T.key,T.Lc);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(R,h){var W=z.payload[h];return Object.keys(W).reduce(function(b,l){return cR(b,h,l,W[l])},R)},B); case "UPDATE_ENTITY":return T=z.payload,tG5(B,T.entityType,T.key,T.Lc,T.DBG);default:return B}}; LN=function(B,z,T){return B[z]?B[z][T]||null:null}; CN=function(B){return window.Int32Array?new Int32Array(B):Array(B)}; dz=function(B){g.K.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.T=16;if(!XF5){var z,T=new Uint8Array(256),R=new Uint8Array(256);var h=1;for(z=0;z<256;z++)T[h]=z,R[z]=h,h^=h<<1^(h>>7&&283);rz=new Uint8Array(256);ov=CN(256);Fl=CN(256);Iv=CN(256);Gn=CN(256);for(var W=0;W<256;W++){h=W?R[255^T[W]]:0;h^=h<<1^h<<2^h<<3^h<<4;h=h&255^h>>>8^99;rz[W]=h;z=h<<1^(h>>7&&283);var b=z^h;ov[W]=z<<24|h<<16|h<<8|b;Fl[W]=b<<24|ov[W]>>>8;Iv[W]=h<<24|Fl[W]>>>8;Gn[W]=h<<24|Iv[W]>>>8}XF5=!0}h=CN(44);for(T= 0;T<4;T++)h[T]=B[4*T]<<24|B[4*T+1]<<16|B[4*T+2]<<8|B[4*T+3];for(R=1;T<44;T++)B=h[T-1],T%4||(B=(rz[B>>16&255]^R)<<24|rz[B>>8&255]<<16|rz[B&255]<<8|rz[B>>>24],R=R<<1^(R>>7&&283)),h[T]=h[T-4]^B;this.key=h}; AD=function(B,z){for(var T=0;T<4;T++)B.counter[T]=z[T*4]<<24|z[T*4+1]<<16|z[T*4+2]<<8|z[T*4+3];B.T=16}; ZHP=function(B){for(var z=B.key,T=B.counter[0]^z[0],R=B.counter[1]^z[1],h=B.counter[2]^z[2],W=B.counter[3]^z[3],b=3;b>=0&&!(B.counter[b]=-~B.counter[b]);b--);for(var l,w,q=4;q<40;)b=ov[T>>>24]^Fl[R>>16&255]^Iv[h>>8&255]^Gn[W&255]^z[q++],l=ov[R>>>24]^Fl[h>>16&255]^Iv[W>>8&255]^Gn[T&255]^z[q++],w=ov[h>>>24]^Fl[W>>16&255]^Iv[T>>8&255]^Gn[R&255]^z[q++],W=ov[W>>>24]^Fl[T>>16&255]^Iv[R>>8&255]^Gn[h&255]^z[q++],T=b,R=l,h=w;B=B.U;b=z[40];B[0]=rz[T>>>24]^b>>>24;B[1]=rz[R>>16&255]^b>>16&255;B[2]=rz[h>>8&255]^ b>>8&255;B[3]=rz[W&255]^b&255;b=z[41];B[4]=rz[R>>>24]^b>>>24;B[5]=rz[h>>16&255]^b>>16&255;B[6]=rz[W>>8&255]^b>>8&255;B[7]=rz[T&255]^b&255;b=z[42];B[8]=rz[h>>>24]^b>>>24;B[9]=rz[W>>16&255]^b>>16&255;B[10]=rz[T>>8&255]^b>>8&255;B[11]=rz[R&255]^b&255;b=z[43];B[12]=rz[W>>>24]^b>>>24;B[13]=rz[T>>16&255]^b>>16&255;B[14]=rz[R>>8&255]^b>>8&255;B[15]=rz[h&255]^b&255}; Mq=function(){if(!av&&!g.Zs){if(UZ)return UZ;var B;UZ=(B=window.crypto)==null?void 0:B.subtle;var z,T,R;if(((z=UZ)==null?0:z.importKey)&&((T=UZ)==null?0:T.sign)&&((R=UZ)==null?0:R.encrypt))return UZ;UZ=void 0}}; g.V5=function(B){this.U=B}; eEB=function(B,z,T,R){var h,W;return g.D(function(b){switch(b.U){case 1:if(B.Y){b.jI(2);break}return g.P(b,R.importKey("raw",B.U,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:B.Y=b.T;case 2:return h={name:"AES-CTR",counter:T,length:128},g.P(b,R.encrypt(h,B.Y,z),4);case 4:return W=b.T,b.return(new Uint8Array(W))}})}; sZd=function(B,z,T){B.T||(B.T=new dz(B.U));AD(B.T,T);return B.T.encrypt(z)}; g.Q5=function(B){this.U=B}; y5=function(B){this.V=new Uint8Array(64);this.Y=new Uint8Array(64);this.W=0;this.X=new Uint8Array(64);this.U=0;this.V.set(B);this.Y.set(B);for(B=0;B<64;B++)this.V[B]^=92,this.Y[B]^=54;this.reset()}; E2l=function(B,z,T){for(var R=B.L,h=B.T[0],W=B.T[1],b=B.T[2],l=B.T[3],w=B.T[4],q=B.T[5],c=B.T[6],L=B.T[7],C,r,F,A=0;A<64;)A<16?(R[A]=F=z[T]<<24|z[T+1]<<16|z[T+2]<<8|z[T+3],T+=4):(C=R[A-2],r=R[A-15],F=R[A-7]+R[A-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),R[A]=F),C=L+gz[A]+F+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&q^~w&c),r=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&W^h&b^W&b),L=C+r,l+=C,A++,A<16?(R[A]=F=z[T]<<24|z[T+1]<<16|z[T+2]<<8|z[T+3],T+=4):(C= R[A-2],r=R[A-15],F=R[A-7]+R[A-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),R[A]=F),C=c+gz[A]+F+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&w^~l&q),r=((L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10))+(L&h^L&W^h&W),c=C+r,b+=C,A++,A<16?(R[A]=F=z[T]<<24|z[T+1]<<16|z[T+2]<<8|z[T+3],T+=4):(C=R[A-2],r=R[A-15],F=R[A-7]+R[A-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),R[A]=F),C=q+gz[A]+F+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&l^ ~b&w),r=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&L^c&h^L&h),q=C+r,W+=C,A++,A<16?(R[A]=F=z[T]<<24|z[T+1]<<16|z[T+2]<<8|z[T+3],T+=4):(C=R[A-2],r=R[A-15],F=R[A-7]+R[A-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3),R[A]=F),C=w+gz[A]+F+((W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7))+(W&b^~W&l),r=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&c^q&L^c&L),F=L,L=l,l=F,F=c,c=b,b=F,F=q,q=W,W=F,w=h+C,h=C+r,A++;B.T[0]=h+B.T[0]|0;B.T[1]=W+B.T[1]|0;B.T[2]=b+B.T[2]|0;B.T[3]= l+B.T[3]|0;B.T[4]=w+B.T[4]|0;B.T[5]=q+B.T[5]|0;B.T[6]=c+B.T[6]|0;B.T[7]=L+B.T[7]|0}; Bd5=function(B){var z=new Uint8Array(32),T=64-B.U;B.U>55&&(T+=64);var R=new Uint8Array(T);R[0]=128;for(var h=B.W*8,W=1;W<9;W++){var b=h%256;R[T-W]=b;h=(h-b)/256}B.update(R);for(T=0;T<8;T++)z[T*4]=B.T[T]>>>24,z[T*4+1]=B.T[T]>>>16&255,z[T*4+2]=B.T[T]>>>8&255,z[T*4+3]=B.T[T]&255;Sez(B);return z}; Sez=function(B){B.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];B.L=[];B.L.length=64;B.W=0;B.U=0}; zcY=function(B){this.T=B}; Tdz=function(B,z,T){B=new y5(B.T);B.update(z);B.update(T);z=Bd5(B);B.update(B.V);B.update(z);z=Bd5(B);B.reset();return z}; RcK=function(B){this.U=B}; hcP=function(B,z,T,R){var h,W,b;return g.D(function(l){switch(l.U){case 1:if(B.T){l.jI(2);break}return g.P(l,R.importKey("raw",B.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:B.T=l.T;case 2:return h=new Uint8Array(z.length+T.length),h.set(z),h.set(T,z.length),W={name:"HMAC",hash:"SHA-256"},g.P(l,R.sign(W,B.T,h),4);case 4:return b=l.T,l.return(new Uint8Array(b))}})}; W7l=function(B,z,T){B.Y||(B.Y=new zcY(B.U));return Tdz(B.Y,z,T)}; bVB=function(B,z,T){var R,h;return g.D(function(W){if(W.U==1){R=Mq();if(!R)return W.return(W7l(B,z,T));g.AK(W,3);return g.P(W,hcP(B,z,T,R),5)}if(W.U!=3)return W.return(W.T);h=g.JK(W);g.KV(h);av=!0;return W.return(W7l(B,z,T))})}; lbB=function(B){for(var z="",T=0;T=1?B[B.length-1]:null;for(var R=g.d(B),h=R.next();!h.done;h=R.next())if(h=h.value,h.width&&h.height&&(T&&h.width>=z||!T&&h.height>=z))return h;for(z=B.length-1;z>=0;z--)if(T&&B[z].width||!T&&B[z].height)return B[z];return B[0]}; pN=function(){this.state=1;this.fQ=null;this.yW=void 0}; d3z=function(B,z,T,R,h,W){var b=b===void 0?"trayride":b;T?(B.J0(2),g.qc(T,function(){if(window[b])GH5(B,R,b,h);else{B.J0(3);var l=QcP(T),w=document.getElementById(l);w&&(MHb(l),w.parentNode.removeChild(w));g.KV(new g.Z_("BL:ULB",""+T))}},W)):z?(W=g.ES("SCRIPT"),z instanceof RA?(W.textContent=bh(z),YI(W)):W.textContent=z,W.nonce=TN(document),document.head.appendChild(W),document.head.removeChild(W),window[b]?GH5(B,R,b,h):(B.J0(4),g.KV(new g.Z_("BL:ULBJ")))):g.KV(new g.Z_("BL:ULV"))}; GH5=function(B,z,T,R){B.J0(5);var h=!!B.yW&&AjY.includes(g.GK(B.yW)||"");try{var W=new rU({program:z,globalName:T,NP:{disable:!g.ac("att_web_record_metrics")||!g.ac("att_skip_metrics_for_cookieless_domains_ks")&&h,aQ:"aGIf"}});W.XA.then(function(){B.J0(6);R&&R(z)}); B.zf(W)}catch(b){B.J0(7),b instanceof Error&&g.KV(b)}}; $s=function(){var B=g.sH("yt.abuse.playerAttLoader");return B&&["bgvma","bgvmb","bgvmc"].every(function(z){return z in B})?B:null}; PR=function(){pN.apply(this,arguments)}; xs=function(){}; abB=function(B,z,T){for(var R=!1,h=g.d(B.Qe.entries()),W=h.next();!W.done;W=h.next())W=g.d(W.value).next().value,W.slotType==="SLOT_TYPE_PLAYER_BYTES"&&W.mJ==="core"&&(R=!0);if(R){a:if(!T){B=g.d(B.Qe.entries());for(T=B.next();!T.done;T=B.next())if(R=g.d(T.value),T=R.next().value,R=R.next().value,T.slotType==="SLOT_TYPE_IN_PLAYER"&&T.mJ==="core"){T=R.layoutId;break a}T=void 0}T?z.Mc(T):Fo("No triggering layout ID available when attempting to mute.")}}; vR=function(B,z){this.eQ=B;this.Pw=z}; Di=function(){}; ks=function(){}; Mmz=function(B){g.K.call(this);var z=this;this.SF=B;this.T=new Map;KN(this,"commandExecutorCommand",function(T,R,h){U35(z,T.commands,R,h)}); KN(this,"clickTrackingParams",function(){})}; Vm5=function(B,z){KN(B,z.eG(),function(T,R,h){z.wP(T,R,h)})}; KN=function(B,z,T){B.xd();B.T.get(z)&&g.kV(Error("Extension name "+z+" already registered"));B.T.set(z,T)}; U35=function(B,z,T,R){z=z===void 0?[]:z;B.xd();var h=[],W=[];z=g.d(z);for(var b=z.next();!b.done;b=z.next())b=b.value,g.u(b,QXB)||g.u(b,yjz)?h.push(b):W.push(b);h=g.d(h);for(z=h.next();!z.done;z=h.next())mX(B,z.value,T,R);W=g.d(W);for(h=W.next();!h.done;h=W.next())mX(B,h.value,T,R)}; mX=function(B,z,T,R){B.xd();z.loggingUrls&&gVK(B,"loggingUrls",z.loggingUrls,T,R);z=g.d(Object.entries(z));for(var h=z.next();!h.done;h=z.next()){var W=g.d(h.value);h=W.next().value;W=W.next().value;h==="openPopupAction"?B.SF.get().Sg("innertubeCommand",{openPopupAction:W}):h==="confirmDialogEndpoint"?B.SF.get().Sg("innertubeCommand",{confirmDialogEndpoint:W}):Jjr.hasOwnProperty(h)||gVK(B,h,W,T,R)}}; gVK=function(B,z,T,R,h){if((B=B.T.get(z))&&typeof B==="function")try{B(T,R,h)}catch(W){g.kV(W)}else z=new g.Z_("Unhandled field",z),g.KV(z)}; nN=function(B,z,T){this.OJ=B;this.T=z;this.PD=T;x2(KH(),{zE:F7B,VS:oVr})}; uZ=function(B){this.value=B}; HR=function(B){this.value=B}; fN=function(B){this.value=B}; OZ=function(B){this.value=B}; Nq=function(B){this.value=B}; tD=function(B){this.value=B}; jr=function(B){this.value=B}; Xl=function(){uZ.apply(this,arguments)}; Zi=function(B){this.value=B}; er=function(B){this.value=B}; sZ=function(B){this.value=B}; EZ=function(B){this.value=B}; Sr=function(B){this.value=B}; BV=function(B){this.value=B}; zQ=function(B){this.value=B}; TQ=function(B){this.value=B}; RJ=function(B){this.value=B}; hy=function(B){this.value=B}; WV=function(){uZ.apply(this,arguments)}; bl=function(B){this.value=B}; Y$=function(B){this.value=B}; ll=function(B){this.value=B}; wH=function(B){this.value=B}; qx=function(B){this.value=B}; il=function(B){this.value=B}; cV=function(B){this.value=B}; LO=function(B){this.value=B}; CO=function(B){this.value=B}; rH=function(B){this.value=B}; oJ=function(B){this.value=B}; F6=function(B){this.value=B}; IJ=function(B){this.value=B}; GQ=function(B){this.value=B}; dH=function(B){this.value=B}; Ay=function(B){this.value=B}; aJ=function(B){this.value=B}; UP=function(B){this.value=B}; Mx=function(B){this.value=B}; VR=function(B){this.value=B}; QR=function(B){this.value=B}; yR=function(B){this.value=B}; gH=function(B){this.value=B}; Jy=function(B){this.value=B}; pO=function(B){this.value=B}; $$=function(B){this.value=B}; PV=function(B){this.value=B}; x$=function(B){this.value=B}; vV=function(B){this.value=B}; D8=function(B){this.value=B}; k$=function(B){this.value=B}; KO=function(B){this.value=B}; mj=function(B){this.value=B}; nO=function(B){this.value=B}; ul=function(B){this.value=B}; HV=function(B){this.value=B}; fO=function(B){this.value=B}; OP=function(B){this.value=B}; Nx=function(){uZ.apply(this,arguments)}; ty=function(B){this.value=B}; j3=function(){uZ.apply(this,arguments)}; X6=function(){uZ.apply(this,arguments)}; Z8=function(){uZ.apply(this,arguments)}; e3=function(){uZ.apply(this,arguments)}; sP=function(){uZ.apply(this,arguments)}; EP=function(B){this.value=B}; S3=function(B){this.value=B}; B8=function(B){this.value=B}; zO=function(B){this.value=B}; TO=function(B){this.value=B}; hS=function(B,z,T){if(T&&!T.includes(B.layoutType))return!1;z=g.d(z);for(T=z.next();!T.done;T=z.next())if(!RV(B.clientMetadata,T.value))return!1;return!0}; W8=function(){return""}; pcX=function(B,z){switch(B){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 z(B),8}}; bn=function(B,z,T,R){R=R===void 0?!1:R;iW.call(this,B);this.Fe=T;this.Ti=R;this.args=[];z&&this.args.push(z)}; e=function(B,z,T,R){R=R===void 0?!1:R;iW.call(this,B);this.Fe=T;this.Ti=R;this.args=[];z&&this.args.push(z)}; Yo=function(B){var z=new Map;B.forEach(function(T){z.set(T.T(),T)}); this.T=z}; RV=function(B,z){return B.T.has(z)}; E=function(B,z){B=B.T.get(z);if(B!==void 0)return B.get()}; ln=function(B){return Array.from(B.T.keys())}; wk=function(B,z,T){if(T&&T!==B.slotType)return!1;z=g.d(z);for(T=z.next();!T.done;T=z.next())if(!RV(B.clientMetadata,T.value))return!1;return!0}; P05=function(B){var z;return((z=$3d.get(B))==null?void 0:z.zJ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; c8=function(B,z){var T={type:z.slotType,controlFlowManagerLayer:x3P.get(z.mJ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(T.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(T.slotPhysicalPosition=z.slotPhysicalPosition);if(B){T.debugData={slotId:z.slotId};if(B=z.slotEntryTrigger)T.debugData.slotEntryTriggerData=qC(B);B=z.slotFulfillmentTriggers;T.debugData.fulfillmentTriggerData=[];B=g.d(B);for(var R=B.next();!R.done;R=B.next())T.debugData.fulfillmentTriggerData.push(qC(R.value)); z=z.slotExpirationTriggers;T.debugData.expirationTriggerData=[];z=g.d(z);for(B=z.next();!B.done;B=z.next())T.debugData.expirationTriggerData.push(qC(B.value))}return T}; vVr=function(B,z){var T={type:z.layoutType,controlFlowManagerLayer:x3P.get(z.mJ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};B&&(T.debugData={layoutId:z.layoutId});return T}; qC=function(B,z){var T={type:B.triggerType};z!=null&&(T.category=z);B.triggeringSlotId!=null&&(T.triggerSourceData||(T.triggerSourceData={}),T.triggerSourceData.associatedSlotId=B.triggeringSlotId);B.triggeringLayoutId!=null&&(T.triggerSourceData||(T.triggerSourceData={}),T.triggerSourceData.associatedLayoutId=B.triggeringLayoutId);return T}; D3z=function(B,z,T,R){z={opportunityType:z};B&&(R||T)&&(R=g.s9(R||[],function(h){return c8(B,h)}),z.debugData=Object.assign({},T&&T.length>0?{associatedSlotId:T}:{},R.length>0?{slots:R}:{})); return z}; Ca=function(B,z){return function(T){return kHX(La(B),z.slotId,z.slotType,z.slotPhysicalPosition,z.mJ,z.slotEntryTrigger,z.slotFulfillmentTriggers,z.slotExpirationTriggers,T.layoutId,T.layoutType,T.mJ)}}; kHX=function(B,z,T,R,h,W,b,l,w,q,c){return{adClientDataEntry:{slotData:c8(B,{slotId:z,slotType:T,slotPhysicalPosition:R,mJ:h,slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:l,clientMetadata:new Yo([])}),layoutData:vVr(B,{layoutId:w,layoutType:q,mJ:c,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],Ta:new Map,clientMetadata:new Yo([]),qS:{}})}}}; oV=function(B){this.Qu=B;B=Math.random();var z=this.Qu.get();z=g.rk(z.j.K().experiments,"html5_debug_data_log_probability");z=Number.isFinite(z)&&z>=0&&z<=1?z:0;this.T=B1){g.KV(new g.Z_("Exit already started",{current:B.currentState}));var T=!1}else T=!0;if(!T)return!1;B.currentState=2;B.T=z;return!0}; G1=function(B){if(B.currentState!==2)return!1;B.currentState=3;return!0}; LFB=function(B,z){var T=new Map;B=g.d(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;if(R.layoutType==="LAYOUT_TYPE_MEDIA")var h="v";else R.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(h=E(R.clientMetadata,"metadata_type_linked_in_player_layout_type"),h=h==="LAYOUT_TYPE_ENDCAP"||h==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":h==="LAYOUT_TYPE_SURVEY"?"s":h==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):h="u";T.set(R.layoutId,h);if(h==="u"){var W={};h=z;R=(W.c=R.layoutId,W);h.j.OE("uct",R)}}B= z.y_();dt={contentCpn:B,E3:T};R={};T=(R.ct=T.size,R.c=B,R);z.j.OE("acc",T)}; C1b=function(){dt={contentCpn:"",E3:new Map}}; Ai=function(B){var z;return(z=dt.E3.get(B))!=null?z:"u"}; au=function(B,z,T){B.j.OE(z,T);rCB(B)}; opl=function(B){var z=B.layoutId,T=B.gR;if(B.DP){var R={};au(B.OJ,"slso",(R.ec=z,R.is=T,R.ctp=Ai(z),R))}}; Uz=function(B){var z=B.layoutId,T=B.gR;if(B.DP){var R={};au(B.OJ,"slse",(R.ec=z,R.is=T,R.ctp=Ai(z),R))}}; FFB=function(B){var z=B.layoutId,T=B.gR,R=B.OJ;B.DP&&(B={},au(R,"sleo",(B.xc=z,B.is=T,B.ctp=Ai(z),B)),rCB(R))}; Iwd=function(B){var z=B.cpn,T=B.OJ;B=B.gR;var R=T.y_(),h={};au(T,"ce",(h.ec=z,h.ia=z!==R,h.r=dt.E3.has(z),h.is=B,h.ctp=Ai(z),h))}; rCB=function(B){if(B.y_()!==dt.contentCpn){var z={};z=(z.c=dt.contentCpn,z);B.j.OE("ccm",z)}}; Gvl=function(B){var z=B.cpn,T=B.OJ;B=B.gR;var R=T.y_(),h={};au(T,"cx",(h.xc=z,h.ia=z!==R,h.r=dt.E3.has(z),h.is=B,h.ctp=Ai(z),h))}; dk5=function(B){this.params=B;this.T=new Set}; ACl=function(B,z,T){if(!B.T.has(z)){B.T.add(z);var R={};B.params.Au.wF(z,Object.assign({},T,(R.p_ac=B.params.adCpn,R.p_isv=B.params.A_&&B.params.Mr,R)))}}; V_=function(B,z,T){if(M_(B.params.Au.Qu.get(),!0)){var R=T.flush,h={};ACl(B,z,(h.cts=T.currentTimeSec,h.f=R,h))}}; awB=function(B,z){this.OJ=B;this.Qu=z}; Q_=function(B){var z=[];if(B){B=g.d(Object.entries(B));for(var T=B.next();!T.done;T=B.next()){var R=g.d(T.value);T=R.next().value;R=R.next().value;R!==void 0&&(R=typeof R==="boolean"?""+ +R:(""+R).replace(/[:,=]/g,"_"),z.push(T+"."+R))}}return z.join(";")}; y_=function(B,z,T){z=z===void 0?{}:z;this.errorCode=B;this.details=z;this.severity=T===void 0?0:T}; gt=function(B){return B===1||B===2}; Ji=function(B,z){z=z===void 0?0:z;if(B instanceof y_)return B;B=B&&B instanceof Error?B:Error(""+B);gt(z)?g.kV(B):g.KV(B);return new y_(z===1?"player.fatalexception":"player.exception",{name:""+B.name,message:""+B.message},z)}; UkX=function(B,z){function T(){var R=g.K5.apply(0,arguments);B.removeEventListener("playing",T);z.apply(null,g.Q(R))} B.addEventListener("playing",T)}; pW=function(){var B=g.sH("yt.player.utils.videoElement_");B||(B=g.ES("VIDEO"),g.Zz("yt.player.utils.videoElement_",B));return B}; $b=function(B){var z=pW();return!!(z&&z.canPlayType&&z.canPlayType(B))}; xb=function(B){if(/opus/.test(B)&&g.PG&&!gw("38")&&!g.jH())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(B);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(B);if(/webm/.test(B)&&!doP())return!1;B==='audio/mp4; codecs="mp4a.40.2"'&&(B='video/mp4; codecs="avc1.4d401f"');return!!$b(B)}; MCP=function(B){try{var z=xb('video/mp4; codecs="avc1.42001E"')||xb('video/webm; codecs="vp9"');return(xb('audio/mp4; codecs="mp4a.40.2"')||xb('audio/webm; codecs="opus"'))&&(z||!B)||$b('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(T){return"html5.missingapi"}}; vG=function(){var B=pW();return!(!B.webkitSupportsPresentationMode||typeof B.webkitSetPresentationMode!=="function")}; Da=function(){var B=pW();try{var z=B.muted;B.muted=!z;return B.muted!==z}catch(T){}return!1}; VCr=function(){var B;return((B=navigator.connection)==null?void 0:B.type)||""}; g.kb=function(){JQ.apply(this,arguments)}; KW=function(B,z,T,R,h,W,b,l){this.sampleRate=B===void 0?0:B;this.numChannels=z===void 0?0:z;this.spatialAudioType=T===void 0?"SPATIAL_AUDIO_TYPE_NONE":T;this.T=R===void 0?!1:R;this.Y=h;this.W=W;this.audioQuality=b===void 0?"AUDIO_QUALITY_UNKNOWN":b;this.U=l===void 0?!1:l}; uF=function(B,z,T,R,h,W,b,l,w){this.width=B;this.height=z;this.quality=W||mf(B,z);this.qualityOrdinal=g.nW[this.quality];this.fps=T||0;this.stereoLayout=!h||R!=null&&R!=="UNKNOWN"&&R!=="RECTANGULAR"?0:h;this.projectionType=R?R==="EQUIRECTANGULAR"&&h===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":R:"UNKNOWN";(B=b)||(B=g.nW[this.quality],B===0?B="Auto":(z=this.fps,T=this.projectionType,B=B.toString()+(T==="EQUIRECTANGULAR"||T==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||T==="MESH"?"s":"p")+(z>55?"60":z>49?"50": z>39?"48":"")));this.qualityLabel=B;this.T=l||"";this.primaries=w||""}; mf=function(B,z){var T=Math.max(B,z);B=Math.min(B,z);z=HG[0];for(var R=0;R=Math.floor(W*16/9)*1.3||B>=W*1.3)return z;z=h}return"tiny"}; N_=function(B,z,T){T=T===void 0?{}:T;this.id=B;this.mimeType=z;T.kd>0||(T.kd=16E3);Object.assign(this,T);B=g.d(this.id.split(";"));this.itag=B.next().value;this.T=B.next().value;this.containerType=fW(z);this.Ai=Oz[this.itag]||""}; ti=function(B){return B.Ai==="9"||B.Ai==="("||B.Ai==="9h"||B.Ai==="(h"}; QSd=function(B){return B.Ai==="H"||B.Ai==="h"}; jR=function(B){return B.Ai==="9h"||B.Ai==="(h"}; yCK=function(B){return!!B.Ft&&!!B.Ft.fairplay&&(B.Ai==="("||B.Ai==="(h"||B.Ai==="A"||B.Ai==="MEAC3")||XD&&!!B.Ft&&B.Ai==="1e"}; Za=function(B){return B.Ai==="1"||B.Ai==="1h"||XD&&B.Ai==="1e"}; eR=function(B){return B.Ai==="mac3"||B.Ai==="meac3"||B.Ai==="m"||B.Ai==="i"}; sz=function(B){return B.Ai==="MAC3"||B.Ai==="MEAC3"||B.Ai==="M"||B.Ai==="I"}; g.Ez=function(B){return B.containerType===1}; gpH=function(B){return B.Ai==="("||B.Ai==="(h"||B.Ai==="H"||XD&&B.Ai==="1e"}; SR=function(B){return B.mimeType==="application/x-mpegURL"}; g.Bn=function(B,z){return{itag:+B.itag,lmt:z?0:B.lastModified,xtags:B.T||""}}; JCK=function(B){var z=navigator.mediaCapabilities;if(z==null||!z.decodingInfo||B.Ai==="f")return Promise.resolve();var T={type:B.audio&&B.video?"file":"media-source"};B.video&&(T.video={contentType:B.mimeType,width:B.video.width||640,height:B.video.height||360,bitrate:B.kd*8||1E6,framerate:B.video.fps||30});B.audio&&(T.audio={contentType:B.mimeType,channels:""+(B.audio.numChannels||2),bitrate:B.kd*8||128E3,samplerate:B.audio.sampleRate||44100});return z.decodingInfo(T).then(function(R){B.U=R})}; zb=function(B){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(B)}; Tb=function(B){return/(vp9|vp09|vp8|avc1|av01)/.test(B)}; R_=function(B){return B.includes("vtt")||B.includes("text/mp4")}; fW=function(B){return B.indexOf("/mp4")>=0?1:B.indexOf("/webm")>=0?2:B.indexOf("/x-flv")>=0?3:B.indexOf("/vtt")>=0?4:0}; hf=function(B,z,T,R,h,W){var b=new KW;z in g.nW||(z="small");z==="light"&&(z="tiny");R&&h?(h=Number(h),R=Number(R)):(h=g.nW[z],R=Math.round(h*16/9));W=new uF(R,h,0,null,void 0,z,W);B=unescape(B.replace(/"/g,'"'));return new N_(T,B,{audio:b,video:W})}; Wn=function(B){var z="id="+B.id;B.video&&(z+=", res="+B.video.qualityLabel);var T,R;return z+", byterate=("+((T=B.Yr)==null?void 0:T.toFixed(0))+", "+((R=B.kd)==null?void 0:R.toFixed(0))+")"}; br=function(B,z){return{start:function(T){return B[T]}, end:function(T){return z[T]}, length:B.length}}; ppB=function(B,z,T){for(var R=[],h=[],W=0;W=z)return T}catch(R){}return-1}; wN=function(B,z){return lr(B,z)>=0}; $kP=function(B,z){if(!B)return NaN;z=lr(B,z);return z>=0?B.start(z):NaN}; qM=function(B,z){if(!B)return NaN;z=lr(B,z);return z>=0?B.end(z):NaN}; ir=function(B){return B&&B.length?B.end(B.length-1):NaN}; cn=function(B){return ir(B)>0}; L7=function(B,z){B=qM(B,z);return B>=0?B-z:0}; ur=function(B,z,T){for(var R=[],h=[],W=0;WT||(R.push(Math.max(z,B.start(W))-z),h.push(Math.min(T,B.end(W))-z));return br(R,h)}; Hn=function(B,z,T,R){g.Cl.call(this);var h=this;this.TY=B;this.start=z;this.end=T;this.isActive=R;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.dc={error:function(){!h.xd()&&h.isActive&&h.publish("error",h)}, updateend:function(){!h.xd()&&h.isActive&&h.publish("updateend",h)}}; this.TY.j8(this.dc);this.hp=this.isActive}; OI=function(B,z,T,R,h,W){g.Cl.call(this);var b=this;this.yI=B;this.Lp=z;this.id=T;this.containerType=R;this.Ai=h;this.Mr=W;this.y3=this.qz=this.hj=null;this.Vk=!1;this.appendWindowStart=this.timestampOffset=0;this.ZQ=br([],[]);this.oo=!1;this.Ph=[];this.HM=f7?[]:void 0;this.aI=function(w){return b.publish(w.type,b)}; var l;if((l=this.yI)==null?0:l.addEventListener)this.yI.addEventListener("updateend",this.aI),this.yI.addEventListener("error",this.aI)}; NM=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; tf=function(B,z){this.Rx=B;this.T=z===void 0?!1:z;this.U=!1}; jx=function(B,z,T){T=T===void 0?!1:T;g.K.call(this);this.mediaElement=B;this.GZ=z;this.isView=T;this.X=0;this.W=!1;this.V=!0;this.N=0;this.callback=null;this.J=!1;this.GZ||(this.Lp=this.mediaElement.jk());this.events=new g.kb(this);g.m(this,this.events);this.Y=new tf(this.GZ?window.URL.createObjectURL(this.GZ):this.Lp.webkitMediaSourceURL,!0);B=this.GZ||this.Lp;pD(this.events,B,["sourceopen","webkitsourceopen"],this.q2K);pD(this.events,B,["sourceclose","webkitsourceclose"],this.c$f);this.L={updateend:this.nI}}; P1d=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; xk5=function(B,z){XB(B)?g.MW(function(){z(B)}):B.callback=z}; vpz=function(B,z,T){if(Zo){var R;ex(B.mediaElement,{l:"mswssb",sr:(R=B.mediaElement.iO)==null?void 0:R.g0()},!1);z.j8(B.L,B);T.j8(B.L,B)}B.T=z;B.U=T;g.m(B,z);g.m(B,T)}; sI=function(B){return!!B.T||!!B.U}; XB=function(B){try{return EI(B)==="open"}catch(z){return!1}}; EI=function(B){if(B.GZ)return B.GZ.readyState;switch(B.Lp.webkitSourceState){case B.Lp.SOURCE_OPEN:return"open";case B.Lp.SOURCE_ENDED:return"ended";default:return"closed"}}; Sx=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; Dkb=function(B){XB(B)&&(B.GZ?B.GZ.endOfStream():B.Lp.webkitSourceEndOfStream(B.Lp.EOS_NO_ERROR))}; kvY=function(B,z,T,R){if(!B.T||!B.U)return null;var h=B.T.isView()?B.T.TY:B.T,W=B.U.isView()?B.U.TY:B.U,b=new jx(B.mediaElement,B.GZ,!0);b.Y=B.Y;vpz(b,new Hn(h,z,T,R),new Hn(W,z,T,R));XB(B)||B.T.mW(B.T.p4());return b}; KFX=function(B){var z;(z=B.T)==null||z.jt();var T;(T=B.U)==null||T.jt();B.V=!1}; Bq=function(){var B=this;this.cg=this.BI=GPY;this.promise=new g.QI(function(z,T){B.BI=z;B.cg=T})}; z2=function(){g.K.call(this);this.Cm=!1;this.Rx=null;this.L=this.X=!1;this.W=new g.Lh;this.iO=null;g.m(this,this.W)}; T2=function(B){B=B.kt();return B.length<1?NaN:B.end(B.length-1)}; mkK=function(B){!B.U&&P1d()&&(B.Y?B.Y.then(function(){return mkK(B)}):B.gs()||(B.U=B.GG()))}; npr=function(B){B.U&&(B.U.dispose(),B.U=void 0)}; ex=function(B,z,T){var R;((R=B.iO)==null?0:R.L4())&&B.iO.OE("rms",z,T===void 0?!1:T)}; uob=function(B,z,T){B.isPaused()||B.getCurrentTime()>z||T>10||(B.play(),g.FN(function(){uob(B,B.getCurrentTime(),T+1)},500))}; H0K=function(B,z){B.Rx&&B.Rx.equals(z)||(B.Rx&&B.Rx.dispose(),B.Rx=z)}; RD=function(B){return L7(B.Ao(),B.getCurrentTime())}; fwz=function(B,z){if(B.V_()===0||B.hasError())return!1;var T=B.getCurrentTime()>0;return z>=0&&(B=B.kt(),B.length||!T)?wN(B,z):T}; hO=function(B){B.gs()&&(B.iO&&B.iO.BU("rs_s"),XJ&&B.getCurrentTime()>0&&B.seekTo(0),B.Yy(),B.load(),H0K(B,null));delete B.Y}; Wq=function(B){switch(B.Sz()){case 2:return"progressive.net.retryexhausted";case 3:return B=B.B4(),(B==null?0:B.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||O0K&&(B==null?0:B.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.b5=function(B,z,T){this.pp=z===void 0?null:z;this.seekSource=T===void 0?null:T;this.state=B||64}; YU=function(B,z,T){T=T===void 0?!1:T;return NKd(B,z.getCurrentTime(),(0,g.f)(),RD(z),T)}; l5=function(B,z,T,R){if(!(z===B.state&&T===B.pp&&R===B.seekSource||z!==void 0&&(z&128&&!T||z&2&&z&16))){var h;if(h=z)h=z||B.state,h=!!(h&16||h&32);B=new g.b5(z,T,h?R?R:B.seekSource:null)}return B}; we=function(B,z,T){return l5(B,B.state|z,null,T===void 0?null:T)}; q5=function(B,z){return l5(B,B.state&~z,null,null)}; i5=function(B,z,T,R){return l5(B,(B.state|z)&~T,null,R===void 0?null:R)}; g.X=function(B,z){return!!(B.state&z)}; g.cq=function(B,z){return z.state===B.state&&z.pp===B.pp}; Lk=function(B){return B.isPlaying()&&!g.X(B,16)&&!g.X(B,32)}; Ck=function(B){return g.X(B,128)?-1:g.X(B,2)?0:g.X(B,2048)?3:g.X(B,64)?-1:g.X(B,1)&&!g.X(B,32)?3:g.X(B,8)?1:g.X(B,4)?2:-1}; oD=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A,a){g.K.call(this);var V=this;this.KU=B;this.slot=z;this.layout=T;this.PD=R;this.QI=h;this.yu=W;this.DJ=b;this.RI=l;this.F1=w;this.d_=q;this.position=L;this.X=C;this.Qu=r;this.Ws=F;this.ez=A;this.context=a;this.v4=!0;this.V=!1;this.f4="not_rendering";this.U=!1;this.Y=new FD;B=E(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.SI=new gZ(T.Ta,this.PD,B,T.layoutId);var M;B=((M=re(this))==null?void 0:M.progressCommands)||[];this.W=new OlY(w, B,T.layoutId,function(){return V.NF()}); this.T=new dk5({adCpn:this.layout.layoutId,Au:a.Au,A_:this.Ws,Mr:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; FA=function(B){return{layoutId:B.AF(),gR:B.Ws,OJ:B.yu.get(),DP:B.Rp()}}; ID=function(B,z){return z.layoutId!==B.layout.layoutId?(B.KU.TM(B.slot,z,new bn("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+B.layout.layoutId+("and LayoutType: "+B.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; G2=function(B){B.f4="rendering_start_requested";B.d_(-1)}; re=function(B){return E(B.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; tCK=function(B){Fo("Received layout exit signal when not in layout exit flow.",B.slot,B.layout)}; jSb=function(B){var z;return((z=de(B.yu.get(),2))==null?void 0:z.clientPlaybackNonce)||""}; AO=function(B,z){switch(z){case "normal":B.Zm("complete");break;case "skipped":B.Zm("skip");break;case "abandoned":vj(B.SI,"impression")&&B.Zm("abandon")}}; aD=function(B,z){B.V||(z=new g.IS(z.state,new g.b5),B.V=!0);return z}; UF=function(B,z){LW(z)?B.d_(1):g.dK(z,4)&&!g.dK(z,2)&&B.uY();Gv(z,4)<0&&!(Gv(z,2)<0)&&B.e9()}; XpK=function(B){B.position===0&&(B.RI.get(),B=E(B.layout.clientMetadata,"metadata_type_ad_placement_config").kind,B={adBreakType:M5(B)},O4("ad_bl"),g.NK(B))}; Vj=function(B,z){Pj(B.SI,z,!B.U)}; ew5=function(B){var z;return(((z=re(B))==null?void 0:z.progressCommands)||[]).findIndex(function(T){return!!g.u(T==null?void 0:T.command,Z0H)})!==-1}; Qj=function(B,z){var T=E(B.clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(Fo("Expected SSAP eligibility in PlayerBytes factory",B),!1):z.Rp(T)}; yj=function(B,z){if(!s$(z.get(),"html5_ssap_pass_transition_reason"))return 3;switch(B){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Fo("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Fo("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:B}),3;default:sB(B,"unknown layoutExitReason")}}; sSH=function(B){Fo("getExitReason: unexpected reason",void 0,void 0,{reason:B})}; ge=function(B,z){if(s$(z.get(),"html5_ssap_pass_transition_reason"))switch(B){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return sSH(B),"abandoned";case 3:case 1:return sSH(B),"error";default:sB(B,"unexpected transition reason")}else switch(B){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Fo("getExitReason: unexpected reason",void 0,void 0,{reason:B}),"error";default:sB(B,"unexpected transition reason")}}; g.JO=function(B,z,T){jD(B,T)||ZU(B,z,T);jD(B,"video_to_ad")||ZU(B,z,"video_to_ad");jD(B,"ad_to_video")||ZU(B,z,"ad_to_video");jD(B,"ad_to_ad")||ZU(B,z,"ad_to_ad")}; pk=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A,a,V){oD.call(this,B,z,T,R,h,W,b,l,q,c,L,C,r,F,A,a,V);var M=this;this.SF=w;this.yO=L;this.iQ=!0;this.Gs=this.Wv=0;this.lk=rR(function(){opl(FA(M));M.KU.ek(M.slot,M.layout)}); this.ao=rR(function(){FFB(FA(M));M.f4!=="rendering_stop_requested"&&M.yO(M);M.layoutExitReason?M.KU.b$(M.slot,M.layout,M.layoutExitReason):tCK(M)}); this.KQ=new g.Kh(200);this.KQ.listen("tick",function(){M.l$()}); g.m(this,this.KQ)}; Pq=function(B){B.Gs=Date.now();$U(B,B.Wv);B.KQ.start()}; EpY=function(B){B.Wv=B.NF();B.IS(B.Wv/1E3,!0);$U(B,B.Wv)}; $U=function(B,z){z={current:z/1E3,duration:B.NF()/1E3};B.SF.get().Sg("onAdPlaybackProgress",z)}; xU=function(B){pk.call(this,B.KU,B.slot,B.P4,B.PD,B.QI,B.yu,B.DJ,B.RI,B.SF,B.F1,B.d_,B.yO,B.W8,B.SC,B.Qu,B.Ws,B.ez,B.context)}; vq=function(B){pk.call(this,B.KU,B.slot,B.P4,B.PD,B.QI,B.yu,B.DJ,B.RI,B.SF,B.F1,B.d_,B.yO,B.W8,B.SC,B.Qu,B.Ws,B.ez,B.context)}; DZ=function(){vq.apply(this,arguments)}; S0H=function(B){return Qj(B.slot,B.Qu.get())?new DZ(B):new xU(B)}; mi=function(B){oD.call(this,B.callback,B.slot,B.P4,B.PD,B.QI,B.yu,B.DJ,B.RI,B.F1,B.d_,B.yO,B.W8,B.SC,B.Qu,B.Ws,B.ez,B.context);var z=this;this.adCpn="";this.u_=this.C7=0;this.lk=rR(function(){opl(FA(z));z.KU.ek(z.slot,z.layout)}); this.ao=rR(function(){FFB(FA(z));z.f4!=="rendering_stop_requested"&&z.yO(z);z.layoutExitReason?z.KU.b$(z.slot,z.layout,z.layoutExitReason):tCK(z)}); this.C2=B.C2;this.Q2=B.Q2;this.Pc=B.Pc;this.SF=B.SF;this.m5=B.m5;this.yO=B.yO;if(!this.Rp()){s$(this.Qu.get(),"html5_disable_media_load_timeout")||(this.LB=new g.Si(function(){z.At("load_timeout",new bn("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); B=kU(this.Qu.get());var T=Kk(this.Qu.get());B&&T&&(this.fn=new g.Si(function(){var R=E(z.layout.clientMetadata,"metadata_type_preload_player_vars");R&&z.Q2.get().j.preloadVideoByPlayerVars(R,2,300)}))}}; zqH=function(B,z){var T=E(z.clientMetadata,"metadata_type_ad_video_id"),R=E(z.clientMetadata,"metadata_type_legacy_info_card_vast_extension");T&&R&&B.m5.get().j.K().lO.add(T,{B6:R});(z=E(z.clientMetadata,"metadata_type_sodar_extension_data"))&&T2X(B.C2.get(),z);Bnr(B.DJ.get(),!1)}; TnB=function(B){Bnr(B.DJ.get(),!0);var z;((z=B.shrunkenPlayerBytesConfig)==null?0:z.shouldRequestShrunkenPlayerBytes)&&B.DJ.get().Th(!1)}; Rqr=function(B){return new nk(B)}; u5=function(){mi.apply(this,arguments)}; nk=function(){u5.apply(this,arguments)}; hqK=function(B){return S0H(Object.assign({},B,{KU:B.callback,d_:function(){}}))}; W5z=function(B){return new mi(Object.assign({},B,{d_:function(z){B.SF.get().Sg("onAdIntroStateChange",z)}}))}; bMX=function(B){function z(T){B.SF.get().G7(T)} return Qj(B.slot,B.Qu.get())?Rqr(Object.assign({},B,{d_:z})):new mi(Object.assign({},B,{d_:z}))}; Hq=function(B){for(var z=B.P4,T=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],R=g.d(Jg()),h=R.next();!h.done;h=R.next())T.push(h.value);if(Eg(z,{U2:T,e6:["LAYOUT_TYPE_MEDIA_BREAK"]}))return hqK(B);z=B.P4;T=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];R=g.d(Jg());for(h=R.next();!h.done;h=R.next())T.push(h.value);if(Eg(z,{U2:T,e6:["LAYOUT_TYPE_MEDIA"]}))return RV(B.P4.clientMetadata,"metadata_type_ad_intro")?W5z(B):bMX(B)}; lUX=function(B){var z=E(B.clientMetadata,"metadata_type_ad_placement_config").kind,T=E(B.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:B.layoutId,adType:Y4z(T),adBreakType:M5(z)}}; M5=function(B){switch(B){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"}}; Y4z=function(B){switch(B){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; wSl=function(B){try{return new fk(B.Eh,B.slot,B.layout,B.l1,B.Bd,B.yu,B.Ui,B.Q2,B.E0,B.DJ,B.JoJ,B)}catch(z){}}; fk=function(B,z,T,R,h,W,b,l,w,q,c,L){g.K.call(this);this.Eh=B;this.slot=z;this.layout=T;this.l1=R;this.Bd=h;this.yu=W;this.Ui=b;this.Q2=l;this.E0=w;this.DJ=q;this.params=L;this.v4=!0;B=Hq(c);if(!B)throw Error("Invalid params for sublayout");this.MW=B}; q4X=function(){this.T=1;this.U=new FD}; OF=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r){g.K.call(this);this.callback=B;this.yu=z;this.Ui=T;this.Q2=R;this.DJ=h;this.xO=W;this.RI=b;this.MU=l;this.slot=w;this.layout=q;this.l1=c;this.KX=L;this.E0=C;this.Qu=r;this.v4=!0;this.oz=!1;this.Ng=[];this.H$=-1;this.YG=!1;this.xD=new q4X}; iMd=function(B){var z;return(z=B.layout.B8)!=null?z:E(B.layout.clientMetadata,"metadata_type_sub_layouts")}; N5=function(B){return{OJ:B.yu.get(),gR:!1,DP:B.Rp()}}; cYB=function(B,z,T){if(B.qK()===B.Ng.length-1){var R,h;Fo("Unexpected skip requested during the last sublayout",(R=B.Nr())==null?void 0:R.mM(),(h=B.Nr())==null?void 0:h.HD(),{requestingSlot:z,requestingLayout:T})}}; L5B=function(B,z,T){return T.layoutId!==tO(B,z,T)?(Fo("onSkipRequested for a PlayerBytes layout that is not currently active",B.mM(),B.HD()),!1):!0}; CoK=function(B){B.qK()===B.Ng.length-1&&Fo("Unexpected skip with target requested during the last sublayout")}; rYX=function(B,z,T){return T.renderingContent===void 0&&T.layoutId!==tO(B,z,T)?(Fo("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",B.mM(),B.HD(),{requestingSlot:z,requestingLayout:T}),!1):!0}; oXK=function(B,z,T,R){var h=E(z.HD().clientMetadata,"metadata_type_ad_pod_skip_target");if(h&&h>0&&h0)){Fo("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",B.slot,B.layout,{indexToPlay:z,layoutId:B.layout.layoutId});break a}B.H$=z;z=B.Nr();if(B.qK()>0&&!B.Rp()){var T=B.RI.get();T.U=!1;var R={};T.T&&T.videoId&&(R.cttAuthInfo={token:T.T,videoId:T.videoId});tY("ad_to_ad",R)}B.CE(z)}}; eM=function(B){OF.call(this,B.Eh,B.yu,B.Ui,B.Q2,B.DJ,B.xO,B.RI,B.MU,B.slot,B.layout,B.l1,B.KX,B.E0,B.Qu)}; G$z=function(B){(B=B.Nr())&&B.vr()}; sF=function(B){OF.call(this,B.Eh,B.yu,B.Ui,B.Q2,B.DJ,B.xO,B.RI,B.MU,B.slot,B.layout,B.l1,B.KX,B.E0,B.Qu);this.Vl=void 0}; dKP=function(B,z){B.hS()&&!G1(B.xD.U)||B.callback.b$(B.slot,B.layout,z)}; EF=function(B){return s$(B.Qu.get(),"html5_ssap_pass_transition_reason")}; AYd=function(B,z,T){z.v8().currentState<2&&(T=ge(T,B.Qu),z.wz(z.HD(),T));T=z.v8().T;B.dl(B.slot,z.HD(),T)}; aUY=function(B,z){if(B.xD.U.currentState<2){var T=ge(z,B.Qu);T==="error"?B.callback.TM(B.slot,B.layout,new bn("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):ZZ(B.KX,B.layout,T)}}; SM=function(B,z,T){z.v8().currentState>=2||(z.wz(z.HD(),T),G1(z.v8())&&($o(B.MU,B.slot,z.HD(),T),B.Vl=void 0))}; UKd=function(B,z){B.xD.T===2&&z!==B.y_()&&Fo("onClipEntered: unknown cpn",B.slot,B.layout,{cpn:z})}; MDz=function(B,z){var T=B.Nr();if(T){var R=T.HD().layoutId,h=B.qK()+1;B.hS()?SM(B,T,z):T.wz(T.HD(),z);h>=0&&hh&&b.ut(c,h-R);return c}; xKz=function(B,z,T){var R=E(z.clientMetadata,"metadata_type_sodar_extension_data");if(R)try{T2X(T,R)}catch(h){Fo("Unexpected error when loading Sodar",B,z,{error:h})}}; vXz=function(B,z,T,R,h,W,b){bi(B,z,new g.IS(T,new g.b5),R,h,b,!1,W)}; bi=function(B,z,T,R,h,W,b,l){b=b===void 0?!0:b;LW(T)&&CW(h,0,null)&&(!vj(B,"impression")&&l&&l(),B.Zm("impression"));vj(B,"impression")&&(g.dK(T,4)&&!g.dK(T,2)&&B.Ak("pause"),Gv(T,4)<0&&!(Gv(T,2)<0)&&B.Ak("resume"),g.dK(T,16)&&h>=.5&&B.Ak("seek"),b&&g.dK(T,2)&&YY(B,T.state,z,R,h,W))}; YY=function(B,z,T,R,h,W,b,l){vj(B,"impression")&&(W?(W=h-R,W=W>=-1&&W<=2):W=Math.abs(R-h)<=1,li(B,z,W?R:h,T,R,b,l&&W),W&&B.Zm("complete"))}; li=function(B,z,T,R,h,W,b){xQ(B,T*1E3,b);h<=0||T<=0||(z==null?0:g.X(z,16))||(z==null?0:g.X(z,32))||(CW(T,h*.25,R)&&(W&&!vj(B,"first_quartile")&&W("first"),B.Zm("first_quartile")),CW(T,h*.5,R)&&(W&&!vj(B,"midpoint")&&W("second"),B.Zm("midpoint")),CW(T,h*.75,R)&&(W&&!vj(B,"third_quartile")&&W("third"),B.Zm("third_quartile")))}; DKz=function(B,z){vj(B,"impression")&&B.Ak(z?"fullscreen":"end_fullscreen")}; k$P=function(B){vj(B,"impression")&&B.Ak("clickthrough")}; K5l=function(B){B.Ak("active_view_measurable")}; mKY=function(B){vj(B,"impression")&&!vj(B,"seek")&&B.Ak("active_view_fully_viewable_audible_half_duration")}; nXz=function(B){vj(B,"impression")&&!vj(B,"seek")&&B.Ak("active_view_viewable")}; u_5=function(B){vj(B,"impression")&&!vj(B,"seek")&&B.Ak("audio_audible")}; HM5=function(B){vj(B,"impression")&&!vj(B,"seek")&&B.Ak("audio_measurable")}; fUP=function(B,z,T,R,h,W,b,l,w,q,c,L){this.callback=B;this.slot=z;this.layout=T;this.Ui=R;this.SI=h;this.DJ=W;this.Qj=b;this.QI=l;this.C2=w;this.Qu=q;this.PD=c;this.yu=L;this.iQ=!0;this.eF=this.f4=null;this.adCpn=void 0;this.T=!1}; OMz=function(B,z,T){var R;WT(B.PD.get(),"ads_qua","cpn."+E(B.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((R=de(B.yu.get(),2))==null?void 0:R.clientPlaybackNonce)+";qt."+z+";clr."+T)}; NnK=function(B,z){var T,R;WT(B.PD.get(),"ads_imp","cpn."+E(B.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=de(B.yu.get(),2))==null?void 0:T.clientPlaybackNonce)+";clr."+z+";skp."+!!g.u((R=E(B.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:R.skipOrPreviewRenderer,wf))}; qr=function(B){return{enterMs:E(B.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:E(B.clientMetadata,"metadata_type_layout_exit_ms")}}; ii=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r){zI.call(this,B,z,T,R,h,b,l,w,q,L);this.Qj=W;this.C2=c;this.QI=C;this.Qu=r;this.eF=this.f4=null}; tDY=function(B,z){var T;WT(B.PD.get(),"ads_imp","acpn."+((T=de(B.yu.get(),2))==null?void 0:T.clientPlaybackNonce)+";clr."+z)}; jWB=function(B,z,T){var R;WT(B.PD.get(),"ads_qua","cpn."+E(B.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((R=de(B.yu.get(),2))==null?void 0:R.clientPlaybackNonce)+";qt."+z+";clr."+T)}; cT=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A,a,V,M,x,v,n){this.E0=B;this.l1=z;this.KX=T;this.yu=R;this.Ui=h;this.DJ=W;this.xO=b;this.PD=l;this.Qj=w;this.s2=q;this.QI=c;this.C2=L;this.Q2=C;this.Pc=r;this.RI=F;this.SF=A;this.F1=a;this.m5=V;this.Qu=M;this.T=x;this.context=v;this.ez=n}; L$=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A,a,V,M){this.E0=B;this.l1=z;this.KX=T;this.PD=R;this.QI=h;this.C2=W;this.Q2=b;this.yu=l;this.DJ=w;this.xO=q;this.Pc=c;this.RI=L;this.SF=C;this.F1=r;this.m5=F;this.Qu=A;this.Ui=a;this.context=V;this.ez=M}; XSK=function(B,z,T,R){Ll.call(this,"survey-interstitial",B,z,T,R)}; C$=function(B,z,T,R,h){dZ.call(this,T,B,z,R);this.PD=h;B=E(z.clientMetadata,"metadata_type_ad_placement_config");this.SI=new gZ(z.Ta,h,B,z.layoutId)}; rf=function(B){return Math.round(B.width)+"x"+Math.round(B.height)}; FT=function(B,z,T){T=T===void 0?op:T;T.widthB.width*B.height*.2)return{zq:3,Nl:501,errorMessage:"ad("+rf(T)+") to container("+rf(B)+") ratio exceeds limit."};if(T.height>B.height/3-z)return{zq:3,Nl:501,errorMessage:"ad("+rf(T)+") covers container("+rf(B)+") center."}}; ZMz=function(B,z){var T=E(B.clientMetadata,"metadata_type_ad_placement_config");return new gZ(B.Ta,z,T,B.layoutId)}; Ip=function(B){return E(B.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; GI=function(B,z,T,R){Ll.call(this,"invideo-overlay",B,z,T,R);this.interactionLoggingClientData=R}; df=function(B,z,T,R,h,W,b,l,w,q,c,L){dZ.call(this,W,B,z,h);this.PD=T;this.W=b;this.DJ=l;this.F1=w;this.Qu=q;this.X=c;this.V=L;this.SI=ZMz(z,T)}; eqz=function(){var B=["metadata_type_invideo_overlay_ad_renderer"];Jg().forEach(function(z){B.push(z)}); return{U2:B,e6:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; AH=function(B,z,T,R,h,W,b,l,w,q,c,L,C){dZ.call(this,W,B,z,h);this.PD=T;this.W=b;this.J=l;this.DJ=w;this.F1=q;this.Qu=c;this.X=L;this.V=C;this.SI=ZMz(z,T)}; sWP=function(){for(var B=["metadata_type_invideo_overlay_ad_renderer"],z=g.d(Jg()),T=z.next();!T.done;T=z.next())B.push(T.value);return{U2:B,e6:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; ap=function(B){this.DJ=B;this.T=!1}; EXK=function(B,z,T){Ll.call(this,"survey",B,{},z,T)}; UU=function(B,z,T,R,h,W,b){dZ.call(this,T,B,z,R);this.W=h;this.DJ=W;this.Qu=b}; S4z=function(B,z,T,R,h,W,b,l,w,q){this.vB=B;this.DJ=z;this.PD=T;this.W=R;this.QI=h;this.U=W;this.Y=b;this.F1=l;this.Qu=w;this.T=q}; BIz=function(B,z,T,R,h,W,b,l,w,q){this.vB=B;this.DJ=z;this.PD=T;this.W=R;this.QI=h;this.U=W;this.Y=b;this.F1=l;this.Qu=w;this.T=q}; Mr=function(B,z,T,R,h,W,b,l,w,q){hi.call(this,B,z,T,R,h,W,b,w);this.Gc=l;this.yu=q}; zB5=function(){var B=Y0l();B.U2.push("metadata_type_ad_info_ad_metadata");return B}; TIK=function(B,z,T,R,h,W,b){this.vB=B;this.DJ=z;this.PD=T;this.U=R;this.Gc=h;this.T=W;this.yu=b}; RBP=function(B,z,T,R,h,W,b,l){this.vB=B;this.DJ=z;this.PD=T;this.U=R;this.Gc=h;this.T=W;this.Qu=b;this.yu=l}; V7=function(B,z){this.slotId=z;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=B(this.triggerType)}; Q7=function(B,z){this.adPodIndex=B;this.T=z.length;this.adBreakLengthSeconds=z.reduce(function(R,h){return R+h},0); var T=0;for(B+=1;B0}; wr=function(B){return!!(B.M0&&B.slot&&B.layout)}; qQ=function(B){var z,T=(z=B.config)==null?void 0:z.adPlacementConfig;B=B.renderer;return!(!T||T.kind==null||!B)}; FsK=function(B){if(!TC(B.adLayoutMetadata))return!1;B=B.renderingContent;return g.u(B,q_)||g.u(B,iF)||g.u(B,lF)||g.u(B,wt)?!0:!1}; iI=function(B){return B.playerVars!==void 0&&B.pings!==void 0&&B.externalVideoId!==void 0}; Vi=function(B){if(!TC(B.adLayoutMetadata))return!1;B=B.renderingContent;var z=g.u(B,cI);return z?LC(z):(z=g.u(B,CC))?iI(z):(z=g.u(B,ai))?z.playerVars!==void 0:(z=g.u(B,q_))?z.durationMilliseconds!==void 0:g.u(B,Us)||g.u(B,MQ)?!0:!1}; LC=function(B){B=(B.sequentialLayouts||[]).map(function(z){return g.u(z,Qi)}); return B.length>0&&B.every(Vi)}; gr=function(B){return TC(B.adLayoutMetadata)?(B=g.u(B.renderingContent,yi))&&B.pings?!0:!1:!1}; U9B=function(B){if(!TC(B.adLayoutMetadata))return!1;if(g.u(B.renderingContent,Ilz)||g.u(B.renderingContent,GpP))return!0;var z=g.u(B.renderingContent,JM);return g.u(B.renderingContent,pC)||g.u(z==null?void 0:z.sidePanel,d95)||g.u(z==null?void 0:z.sidePanel,AAB)||g.u(z==null?void 0:z.sidePanel,ald)?!0:!1}; g8l=function(B){var z;(z=!B)||(z=B.adSlotMetadata,z=!((z==null?void 0:z.slotId)!==void 0&&(z==null?void 0:z.slotType)!==void 0));if(z||!(M6l(B)||B.slotEntryTrigger&&B.slotFulfillmentTriggers&&B.slotExpirationTriggers))return!1;var T;B=(T=B.fulfillmentContent)==null?void 0:T.fulfilledLayout;return(T=g.u(B,Qi))?Vi(T):(T=g.u(B,$L))?U9B(T):(T=g.u(B,V6X))?FsK(T):(T=g.u(B,QlH))?rAP(T):(T=g.u(B,yAz))?TC(T.adLayoutMetadata)?g.u(T.renderingContent,Ri)?!0:!1:!1:(B=g.u(B,PI))?gr(B):!1}; M6l=function(B){var z;B=g.u((z=B.fulfillmentContent)==null?void 0:z.fulfilledLayout,$L);var T;return B&&((T=B.adLayoutMetadata)==null?void 0:T.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&B.layoutExitNormalTriggers===void 0}; JAH=function(B){var z;return(B==null?void 0:(z=B.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_IN_PLAYER"}; $9z=function(B,z){var T;if((T=B.questions)==null||!T.length||!B.playbackCommands||(z===void 0||!z)&&B.questions.length!==1)return!1;B=g.d(B.questions);for(z=B.next();!z.done;z=B.next()){z=z.value;var R=T=void 0,h=((T=g.u(z,xL))==null?void 0:T.surveyAdQuestionCommon)||((R=g.u(z,vI))==null?void 0:R.surveyAdQuestionCommon);if(!pN5(h))return!1}return!0}; PBB=function(B){B=((B==null?void 0:B.playerOverlay)||{}).instreamSurveyAdRenderer;var z;if(B)if(B.playbackCommands&&B.questions&&B.questions.length===1){var T,R=((z=g.u(B.questions[0],xL))==null?void 0:z.surveyAdQuestionCommon)||((T=g.u(B.questions[0],vI))==null?void 0:T.surveyAdQuestionCommon);z=pN5(R)}else z=!1;else z=!1;return z}; pN5=function(B){if(!B)return!1;B=g.u(B.instreamAdPlayerOverlay,D1);var z=g.u(B==null?void 0:B.skipOrPreviewRenderer,wf),T=g.u(B==null?void 0:B.adInfoRenderer,kL);return(g.u(B==null?void 0:B.skipOrPreviewRenderer,KC)||z)&&T?!0:!1}; x9z=function(B){return B.linearAds!=null&&TC(B.adLayoutMetadata)}; v8b=function(B){return B.linearAd!=null&&B.adVideoStart!=null}; D9H=function(B){if(isNaN(Number(B.timeoutSeconds))||!B.text||!B.ctaButton||!g.u(B.ctaButton,g.mE)||!B.brandImage)return!1;var z;return B.backgroundImage&&g.u(B.backgroundImage,nC)&&((z=g.u(B.backgroundImage,nC))==null?0:z.landscape)?!0:!1}; uI=function(B,z,T,R,h,W,b,l){g.K.call(this);this.Qu=B;this.T=z;this.U=R;this.yu=h;this.W=W;this.Y=b;this.Q2=l}; m9d=function(B,z,T){var R,h=((R=T.adSlots)!=null?R:[]).map(function(l){return g.u(l,HI)}); if(T.Yv)if(E(z.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ox(B.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); else{if(B.Qu.get().j.K().D("h5_check_forecasting_renderer_for_throttled_midroll")){var W=T.dT.filter(function(l){var w;return((w=l.renderer)==null?void 0:w.clientForecastingAdRenderer)!=null}); W.length!==0?kpB(B.Y,W,h,z.slotId,T.ssdaiAdsConfig):ox(B.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId)}else ox(B.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); KsP(B.W,z)}else{var b;R={L0:Math.round(((W=E(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:W.L0)||0),ID:(b=E(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.ID};kpB(B.Y,T.dT,h,z.slotId,T.ssdaiAdsConfig,R)}}; Hvz=function(B,z,T,R,h,W,b){var l=de(B.yu.get(),1);if(n8r(B.Qu.get())){var w=fC(B.U.get(),T,R,h,l.clientPlaybackNonce,l.Nn,l.daiEnabled,l,W,b);uEH(B,w);ox(B.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return w},z)}else ox(B.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return fC(B.U.get(),T,R,h,l.clientPlaybackNonce,l.Nn,l.daiEnabled,l,W,b)},z)}; uEH=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next()){var R=T.value;if(R.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R.fulfilledLayout)if(T=void 0,R.fulfilledLayout.renderingContent)T=E(R.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(R.fulfilledLayout.B8){R=g.d(R.fulfilledLayout.B8);for(var h=R.next();!h.done&&(h=h.value,!h.renderingContent||!(T=E(h.clientMetadata,"metadata_type_player_vars")));h=R.next());}}else T=void 0;if(T){B.Q2.get().j.preloadVideoByPlayerVars(T,2, 300);break}}}; Ovz=function(B,z,T,R,h,W,b){z=flz(z,W,Number(R.prefetchMilliseconds)||0,b);B=z instanceof e?z:Os(B,R,h,z,T);return B instanceof e?B:[B]}; NIz=function(B,z,T,R,h){var W=Fs(B.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");R=[new nO({getAdBreakUrl:R.getAdBreakUrl,L0:0,ID:0}),new B8(!0)];B=z.pauseDurationMs?z.lactThresholdMs?{slotId:W,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new sU(B.T,W),slotFulfillmentTriggers:[new WsB(B.T)],slotExpirationTriggers:[new OU(B.T,h),new XT(B.T,W)],mJ:"core",clientMetadata:new Yo(R),adSlotLoggingData:T}:new e("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new e("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return B instanceof e?B:[B]}; t6z=function(B){var z,T;return((z=B.renderer)==null?void 0:(T=z.adBreakServiceRenderer)==null?void 0:T.getAdBreakUrl)!==void 0}; NQ=function(B,z,T){if(B.beforeContentVideoIdStartedTrigger)B=B.beforeContentVideoIdStartedTrigger?new y7(W8,z,B.id):new e("Not able to create BeforeContentVideoIdStartedTrigger");else{if(B.layoutIdExitedTrigger){var R;z=(R=B.layoutIdExitedTrigger)!=null&&R.triggeringLayoutId?new xY(W8,B.layoutIdExitedTrigger.triggeringLayoutId,B.id):new e("Not able to create LayoutIdExitedTrigger")}else{if(B.layoutExitedForReasonTrigger){var h,W;((h=B.layoutExitedForReasonTrigger)==null?0:h.triggeringLayoutId)&&((W= B.layoutExitedForReasonTrigger)==null?0:W.layoutExitReason)?(z=bvz(B.layoutExitedForReasonTrigger.layoutExitReason),B=z instanceof e?z:new PT(W8,B.layoutExitedForReasonTrigger.triggeringLayoutId,[z],B.id)):B=new e("Not able to create LayoutIdExitedForReasonTrigger")}else{if(B.onLayoutSelfExitRequestedTrigger){var b;z=(b=B.onLayoutSelfExitRequestedTrigger)!=null&&b.triggeringLayoutId?new f$(W8,B.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,B.id):new e("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(B.onNewPlaybackAfterContentVideoIdTrigger)B= B.onNewPlaybackAfterContentVideoIdTrigger?new OU(W8,z,B.id):new e("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(B.skipRequestedTrigger){var l;z=(l=B.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new tH(W8,B.skipRequestedTrigger.triggeringLayoutId,B.id):new e("Not able to create SkipRequestedTrigger")}else if(B.slotIdEnteredTrigger){var w;z=(w=B.slotIdEnteredTrigger)!=null&&w.triggeringSlotId?new jZ(W8,B.slotIdEnteredTrigger.triggeringSlotId,B.id):new e("Not able to create SlotIdEnteredTrigger")}else if(B.slotIdExitedTrigger){var q; z=(q=B.slotIdExitedTrigger)!=null&&q.triggeringSlotId?new XT(W8,B.slotIdExitedTrigger.triggeringSlotId,B.id):new e("Not able to create SkipRequestedTrigger")}else if(B.surveySubmittedTrigger){var c;z=(c=B.surveySubmittedTrigger)!=null&&c.triggeringLayoutId?new SZ(W8,B.surveySubmittedTrigger.triggeringLayoutId,B.id):new e("Not able to create SurveySubmittedTrigger")}else{if(B.mediaResumedTrigger)B=B.mediaResumedTrigger&&B.id?new YyB(B.id):new e("Not able to create MediaResumedTrigger");else{if(B.closeRequestedTrigger){var L; z=(L=B.closeRequestedTrigger)!=null&&L.triggeringLayoutId?new gf(W8,B.closeRequestedTrigger.triggeringLayoutId,B.id):new e("Not able to create CloseRequestedTrigger")}else if(B.slotIdScheduledTrigger){var C;z=(C=B.slotIdScheduledTrigger)!=null&&C.triggeringSlotId?new sU(W8,B.slotIdScheduledTrigger.triggeringSlotId,B.id):new e("Not able to create SlotIdScheduledTrigger")}else{if(B.mediaTimeRangeTrigger){var r;R=Number((r=B.mediaTimeRangeTrigger)==null?void 0:r.offsetStartMilliseconds);var F;b=Number((F= B.mediaTimeRangeTrigger)==null?void 0:F.offsetEndMilliseconds);isFinite(R)&&isFinite(b)?(F=b,F===-1&&(F=T),T=R>F?new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:R,offsetEndMs:F},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",F===T&&R-500<=F):new QN(R,F),B=T instanceof e?T:new m6(W8,z,T,!1,B.id)):B=new e("Not able to create MediaTimeRangeTrigger")}else if(B.contentVideoIdEndedTrigger)B=B.contentVideoIdEndedTrigger?new JH(W8,z,!1,B.id):new e("Not able to create ContentVideoIdEndedTrigger"); else{if(B.layoutIdEnteredTrigger){var A;z=(A=B.layoutIdEnteredTrigger)!=null&&A.triggeringLayoutId?new $Y(W8,B.layoutIdEnteredTrigger.triggeringLayoutId,B.id):new e("Not able to create LayoutIdEnteredTrigger")}else if(B.timeRelativeToLayoutEnterTrigger){var a;z=(a=B.timeRelativeToLayoutEnterTrigger)!=null&&a.triggeringLayoutId?new BI(W8,Number(B.timeRelativeToLayoutEnterTrigger.durationMs),B.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,B.id):new e("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(B.onDifferentLayoutIdEnteredTrigger){var V; z=(V=B.onDifferentLayoutIdEnteredTrigger)!=null&&V.triggeringLayoutId&&B.onDifferentLayoutIdEnteredTrigger.slotType&&B.onDifferentLayoutIdEnteredTrigger.layoutType?new ui(W8,B.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,B.onDifferentLayoutIdEnteredTrigger.slotType,B.onDifferentLayoutIdEnteredTrigger.layoutType,B.id):new e("Not able to create CloseRequestedTrigger")}else{if(B.liveStreamBreakStartedTrigger)B=B.liveStreamBreakStartedTrigger&&B.id?new K$(W8,B.id):new e("Not able to create LiveStreamBreakStartedTrigger"); else if(B.liveStreamBreakEndedTrigger)B=B.liveStreamBreakEndedTrigger&&B.id?new vT(W8,B.id):new e("Not able to create LiveStreamBreakEndedTrigger");else{if(B.liveStreamBreakScheduledDurationMatchedTrigger){var M;z=(M=B.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&M.breakDurationMs?new Dm(Number(B.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,B.id):new e("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(B.liveStreamBreakScheduledDurationNotMatchedTrigger){var x; z=(x=B.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&x.breakDurationMs?new kY(Number(B.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,B.id):new e("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(B.newSlotScheduledWithBreakDurationTrigger){var v;z=(v=B.newSlotScheduledWithBreakDurationTrigger)!=null&&v.breakDurationMs?new n$(Number(B.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,B.id):new e("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else z= B.prefetchCacheExpiredTrigger?new Nr(W8,B.id):new e("Not able to convert an AdsControlflowTrigger.");B=z}z=B}B=z}z=B}B=z}z=B}B=z}z=B}B=z}z=B}B=z}return B}; tM=function(B,z){z.T>=2&&(B.slot_pos=z.adPodIndex);B.autoplay="1"}; XNK=function(B,z,T,R,h,W,b,l){return z===null?new e("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:z,ActionCompanionAdRenderer:R}):[jl5(B,z,b,W,function(w){var q=w.slotId;w=l(w);var c=R.adLayoutLoggingData,L=new Yo([new HR(R),new BV(h)]);q=E$(T.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",q);var C={layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",mJ:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ta:new Map, layoutExitNormalTriggers:[new OU(T.T,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:L,qS:w(C),adLayoutLoggingData:c}})]}; ZvK=function(B,z,T,R,h,W,b,l){return z===null?new e("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:z,TopBannerImageTextIconButtonedLayoutViewModel:R}):[jl5(B,z,b,W,function(w){var q=w.slotId;w=l(w);var c=R.adLayoutLoggingData,L=new Yo([new fN(R),new BV(h)]);q=E$(T.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",q);var C={layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",mJ:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Ta:new Map,layoutExitNormalTriggers:[new OU(T.T,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:L,qS:w(C),adLayoutLoggingData:c}})]}; SyX=function(B,z,T,R,h,W){if(!W)for(z=g.d(z),W=z.next();!W.done;W=z.next())W=W.value,jf(B,W.renderer,W.config.adPlacementConfig.kind);B=Array.from(B.values()).filter(function(c){return eB5(c)}); z=[];W=g.d(B);for(var b=W.next(),l={};!b.done;l={Rz:void 0},b=W.next()){l.Rz=b.value;b=g.d(l.Rz.Vh);for(var w=b.next(),q={};!w.done;q={tQ:void 0},w=b.next())q.tQ=w.value,w=function(c,L){return function(C){return c.tQ.Wj(C,L.Rz.instreamVideoAdRenderer.elementId,c.tQ.Xb)}}(q,l),q.tQ.isContentVideoCompanion?z.push(slr(T,R,h,l.Rz.instreamVideoAdRenderer.elementId,q.tQ.associatedCompositePlayerBytesLayoutId,q.tQ.adSlotLoggingData,w)):B.length>1?z.push(E8P(T,R,h,l.Rz.instreamVideoAdRenderer.elementId,q.tQ.adSlotLoggingData, function(c,L){return function(C){return c.tQ.Wj(C,L.Rz.instreamVideoAdRenderer.elementId,c.tQ.Xb,c.tQ.associatedCompositePlayerBytesLayoutId)}}(q,l))):z.push(E8P(T,R,h,l.Rz.instreamVideoAdRenderer.elementId,q.tQ.adSlotLoggingData,w))}return z}; jf=function(B,z,T){if(z=BzK(z)){z=g.d(z);for(var R=z.next();!R.done;R=z.next())if((R=R.value)&&R.externalVideoId){var h=XQ(B,R.externalVideoId);h.instreamVideoAdRenderer||(h.instreamVideoAdRenderer=R,h.Wh=T)}else Fo("InstreamVideoAdRenderer without externalVideoId")}}; BzK=function(B){var z=[],T=B.sandwichedLinearAdRenderer&&B.sandwichedLinearAdRenderer.linearAd&&g.u(B.sandwichedLinearAdRenderer.linearAd,CC);if(T)return z.push(T),z;if(B.instreamVideoAdRenderer)return z.push(B.instreamVideoAdRenderer),z;if(B.linearAdSequenceRenderer&&B.linearAdSequenceRenderer.linearAds){B=g.d(B.linearAdSequenceRenderer.linearAds);for(T=B.next();!T.done;T=B.next())T=T.value,g.u(T,CC)&&z.push(g.u(T,CC));return z}return null}; eB5=function(B){if(B.instreamVideoAdRenderer===void 0)return Fo("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var z=g.d(B.Vh),T=z.next();!T.done;T=z.next()){T=T.value;if(T.Wj===void 0)return!1;if(T.Xb===void 0)return Fo("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(B.Wh===void 0||T.CS===void 0||B.Wh!==T.CS&&T.CS!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(B.instreamVideoAdRenderer.elementId===void 0)return Fo("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:B.Wh,"matching APSR kind":T.CS}),!1}return!0}; XQ=function(B,z){B.has(z)||B.set(z,{instreamVideoAdRenderer:void 0,Wh:void 0,adVideoId:z,Vh:[]});return B.get(z)}; Z1=function(B,z,T,R,h,W,b,l,w){h?XQ(B,h).Vh.push({KWI:z,CS:T,isContentVideoCompanion:R,Xb:b,associatedCompositePlayerBytesLayoutId:W,adSlotLoggingData:l,Wj:w}):Fo("Companion AdPlacementSupportedRenderer without adVideoId")}; ef=function(B){var z=0;B=g.d(B.questions);for(var T=B.next();!T.done;T=B.next())if(T=T.value,T=g.u(T,xL)||g.u(T,vI)){var R=void 0;z+=((R=T.surveyAdQuestionCommon)==null?void 0:R.durationMilliseconds)||0}return z}; Es=function(B){var z,T,R,h,W=((T=g.u((z=B.questions)==null?void 0:z[0],xL))==null?void 0:T.surveyAdQuestionCommon)||((h=g.u((R=B.questions)==null?void 0:R[0],vI))==null?void 0:h.surveyAdQuestionCommon),b;z=[].concat(g.Q(((b=B.playbackCommands)==null?void 0:b.instreamAdCompleteCommands)||[]),g.Q((W==null?void 0:W.timeoutCommands)||[]));var l,w,q,c,L,C,r,F,A,a,V,M,x,v,n,Z,N,TP,hK,zP;return{impressionCommands:(l=B.playbackCommands)==null?void 0:l.impressionCommands,errorCommands:(w=B.playbackCommands)== null?void 0:w.errorCommands,muteCommands:(q=B.playbackCommands)==null?void 0:q.muteCommands,unmuteCommands:(c=B.playbackCommands)==null?void 0:c.unmuteCommands,pauseCommands:(L=B.playbackCommands)==null?void 0:L.pauseCommands,rewindCommands:(C=B.playbackCommands)==null?void 0:C.rewindCommands,resumeCommands:(r=B.playbackCommands)==null?void 0:r.resumeCommands,skipCommands:(F=B.playbackCommands)==null?void 0:F.skipCommands,progressCommands:(A=B.playbackCommands)==null?void 0:A.progressCommands,krD:(a= B.playbackCommands)==null?void 0:a.clickthroughCommands,fullscreenCommands:(V=B.playbackCommands)==null?void 0:V.fullscreenCommands,activeViewViewableCommands:(M=B.playbackCommands)==null?void 0:M.activeViewViewableCommands,activeViewMeasurableCommands:(x=B.playbackCommands)==null?void 0:x.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(v=B.playbackCommands)==null?void 0:v.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(n=B.playbackCommands)== null?void 0:(Z=n.activeViewTracking)==null?void 0:Z.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(N=B.playbackCommands)==null?void 0:(TP=N.activeViewTracking)==null?void 0:TP.activeViewAudioMeasurableCommands,endFullscreenCommands:(hK=B.playbackCommands)==null?void 0:hK.endFullscreenCommands,abandonCommands:(zP=B.playbackCommands)==null?void 0:zP.abandonCommands,completeCommands:z}}; TzX=function(B,z,T,R,h,W,b){return function(l,w){return zZz(B,w.slotId,l,W,function(q,c){var L=w.layoutId;q=b(q);return Sf(z,L,c,h,q,"LAYOUT_TYPE_SURVEY",[new oJ(T),R],T.adLayoutLoggingData)})}}; WXK=function(B,z,T,R,h,W,b){if(!RZK(B))return new e("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:B});var l=B.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[hZX(W,z,T,R,function(w){var q=w.slotId;w=b(w);q=E$(h.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",q);var c={layoutId:q,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",mJ:"core"},L=new xY(h.T,R);return{layoutId:q,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ta:new Map,layoutExitNormalTriggers:[L], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([new F6(l)]),qS:w(c)}})]}; RZK=function(B){B=g.u(B==null?void 0:B.additionalPlayerOverlay,bNl);if(!B)return!1;var z=B.slidingMessages;return B.title&&z&&z.length!==0?!0:!1}; lib=function(B,z,T,R,h){var W;if((W=B.playerOverlay)==null||!W.instreamSurveyAdRenderer)return function(){return[]}; if(!PBB(B))return function(){return new e("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:B})}; var b=B.playerOverlay.instreamSurveyAdRenderer,l=ef(b);return l<=0?function(){return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b})}:function(w,q){var c=YZz(w,T,R,function(L){var C=L.slotId; L=q(L);var r=Es(b);C=E$(h.U.get(),"LAYOUT_TYPE_SURVEY",C);var F={layoutId:C,layoutType:"LAYOUT_TYPE_SURVEY",mJ:"core"},A=new xY(h.T,R),a=new tH(h.T,C),V=new SZ(h.T,C),M=new ivz(h.T);return{layoutId:C,layoutType:"LAYOUT_TYPE_SURVEY",Ta:new Map,layoutExitNormalTriggers:[A,M],layoutExitSkipTriggers:[a],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[V],qW:[],mJ:"core",clientMetadata:new Yo([new rH(b),new BV(z),new fO(l/1E3),new j3(r)]),qS:L(F),adLayoutLoggingData:b.adLayoutLoggingData}}); w=WXK(B,T,c.slotId,R,h,w,q);return w instanceof e?w:[c].concat(g.Q(w))}}; rDb=function(B,z,T,R,h,W,b){b=b===void 0?!1:b;var l=[];try{var w=[];if(T.renderer.linearAdSequenceRenderer)var q=function(A){A=wRY(A.slotId,T,z,h(A),R,W,b);w=A.SJD;return A.Tp}; else if(T.renderer.instreamVideoAdRenderer)q=function(A){var a=A.slotId;A=h(A);var V=b,M=T.config.adPlacementConfig,x=qZ5(M),v=x.dj,n=x.O9;x=T.renderer.instreamVideoAdRenderer;var Z;if(x==null?0:(Z=x.playerOverlay)==null?0:Z.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=BE(x,V);Z=Math.min(v+N.videoLengthSeconds*1E3,n);V=new Q7(0,[N.videoLengthSeconds]);n=N.videoLengthSeconds;var TP=N.playerVars,hK=N.instreamAdPlayerOverlayRenderer,zP=N.playerOverlayLayoutRenderer, ld=N.adVideoId,t=iNd(T),UH=N.Ta;N=N.Rm;var Qz=x==null?void 0:x.adLayoutLoggingData;x=x==null?void 0:x.sodarExtensionData;a=E$(z.U.get(),"LAYOUT_TYPE_MEDIA",a);var vb={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",mJ:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",Ta:UH,layoutExitNormalTriggers:[new vT(z.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([new bl(R),new yR(n),new gH(TP),new $$(v),new PV(Z),hK&&new Y$(hK), zP&&new ll(zP),new BV(M),new WV(ld),new zQ(V),new KO(t),x&&new pO(x),new UP({current:null}),new vV({}),new e3(N)].filter(cDH)),qS:A(vb),adLayoutLoggingData:Qz}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var c=LXX(B,R,T.adSlotLoggingData,q);l.push(c);for(var L=g.d(w),C=L.next();!C.done;C=L.next()){var r=C.value,F=r(B,h);if(F instanceof e)return F;l.push.apply(l,g.Q(F))}}catch(A){return new e(A,{errorMessage:A.message,AdPlacementRenderer:T,numberOfSurveyRenderers:CZK(T)})}return l}; CZK=function(B){B=(B.renderer.linearAdSequenceRenderer||{}).linearAds;return B!=null&&B.length?B.filter(function(z){var T,R;return((T=g.u(z,CC))==null?void 0:(R=T.playerOverlay)==null?void 0:R.instreamSurveyAdRenderer)!=null}).length:0}; wRY=function(B,z,T,R,h,W,b){var l=z.config.adPlacementConfig,w=qZ5(l),q=w.dj,c=w.O9;w=(z.renderer.linearAdSequenceRenderer||{}).linearAds;if(w==null||!w.length)throw new TypeError("Expected linear ads");var L=[],C={LD:q,W8:0,MZJ:L};w=w.map(function(F){return osK(B,F,C,T,R,l,h,c,b)}).map(function(F,A){A=new Q7(A,L); return F(A)}); var r=w.map(function(F){return F.U4}); return{Tp:FXr(T,B,q,r,l,iNd(z),R,c,W),SJD:w.map(function(F){return F.p4i})}}; osK=function(B,z,T,R,h,W,b,l,w){var q=BE(g.u(z,CC),w),c=T.LD,L=T.W8,C=Math.min(c+q.videoLengthSeconds*1E3,l);T.LD=C;T.W8++;T.MZJ.push(q.videoLengthSeconds);var r,F,A=(r=g.u(z,CC))==null?void 0:(F=r.playerOverlay)==null?void 0:F.instreamSurveyAdRenderer;if(q.adVideoId==="nPpU29QrbiU"&&A==null)throw new TypeError("Survey slate media has no survey overlay");return function(a){tM(q.playerVars,a);var V,M,x=q.videoLengthSeconds,v=q.playerVars,n=q.Ta,Z=q.Rm,N=q.instreamAdPlayerOverlayRenderer,TP=q.playerOverlayLayoutRenderer, hK=q.adVideoId,zP=(V=g.u(z,CC))==null?void 0:V.adLayoutLoggingData;V=(M=g.u(z,CC))==null?void 0:M.sodarExtensionData;M=E$(R.U.get(),"LAYOUT_TYPE_MEDIA",B);var ld={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",mJ:"adapter"};a={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",Ta:n,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"adapter",clientMetadata:new Yo([new bl(b),new yR(x),new gH(v),new $$(c),new PV(C),new x$(L),new UP({current:null}), N&&new Y$(N),TP&&new ll(TP),new BV(W),new WV(hK),new zQ(a),V&&new pO(V),A&&new Z8(A),new vV({}),new e3(Z)].filter(cDH)),qS:h(ld),adLayoutLoggingData:zP};x=lib(g.u(z,CC),W,b,a.layoutId,R);return{U4:a,p4i:x}}}; BE=function(B,z){if(!B)throw new TypeError("Expected instream video ad renderer");if(!B.playerVars)throw new TypeError("Expected player vars in url encoded string");var T=ho(B.playerVars),R=Number(T.length_seconds);if(isNaN(R))throw new TypeError("Expected valid length seconds in player vars");var h=Number(B.trimmedMaxNonSkippableAdDurationMs);R=isNaN(h)?R:Math.min(R,h/1E3);h=B.playerOverlay||{};h=h.instreamAdPlayerOverlayRenderer===void 0?null:h.instreamAdPlayerOverlayRenderer;var W=B.playerOverlay|| {};W=W.playerOverlayLayoutRenderer===void 0?null:W.playerOverlayLayoutRenderer;var b=T.video_id;b||(b=(b=B.externalVideoId)?b:void 0);if(!b)throw new TypeError("Expected valid video id in IVAR");if(z&&R===0){var l;z=(l=IiP[b])!=null?l:R}else z=R;return{playerVars:T,videoLengthSeconds:z,instreamAdPlayerOverlayRenderer:h,playerOverlayLayoutRenderer:W,adVideoId:b,Ta:B.pings?yk(B.pings):new Map,Rm:Qk(B.pings)}}; iNd=function(B){B=Number(B.driftRecoveryMs);return isNaN(B)||B<=0?null:B}; qZ5=function(B){var z=B.adTimeOffset||{};B=z.offsetEndMilliseconds;z=Number(z.offsetStartMilliseconds);if(isNaN(z))throw new TypeError("Expected valid start offset");B=Number(B);if(isNaN(B))throw new TypeError("Expected valid end offset");return{dj:z,O9:B}}; GnH=function(B){var z,T=(z=E(B.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!T)return null;z=E(B.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var R=B.layoutId,h=E(B.clientMetadata,"metadata_type_content_cpn"),W=E(B.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=E(B.clientMetadata,"metadata_type_player_underlay_renderer"),l=E(B.clientMetadata,"metadata_type_ad_placement_config"),w=E(B.clientMetadata,"metadata_type_video_length_seconds"); var q=RV(B.clientMetadata,"metadata_type_layout_enter_ms")&&RV(B.clientMetadata,"metadata_type_layout_exit_ms")?(E(B.clientMetadata,"metadata_type_layout_exit_ms")-E(B.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{W_:R,contentCpn:h,bq:T,DQ:z,instreamAdPlayerOverlayRenderer:W,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:l,videoLengthSeconds:w,I8:q,inPlayerLayoutId:E(B.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:E(B.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; aiY=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F){R=Fs(R,"SLOT_TYPE_PLAYER_BYTES");B=dq5(h,B,b,T,R,w,q);if(B instanceof e)return B;var A;q=(A=E(B.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!q)return new e("Invalid adNotify layout");z=ADz(q,h,W,T,l,z,w,c,L,C,r,F,b);return z instanceof e?z:[B].concat(g.Q(z))}; ADz=function(B,z,T,R,h,W,b,l,w,q,c,L,C){T=UqK(z,T,R,W,b,l,w,q,c,L,C);if(T instanceof e)return T;B=MrB(z,B,b,h,T);return B instanceof e?B:[].concat(g.Q(B.xg),[B.Eu])}; QvK=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r){z=UqK(B,z,T,h,W,l,w,q,c,L,C,r);if(z instanceof e)return z;B=VrB(B,T,W,b,R,l.PB,z);return B instanceof e?B:B.xg.concat(B.Eu)}; UqK=function(B,z,T,R,h,W,b,l,w,q,c,L){var C=zj(R,T,q);return C instanceof bn?new e(C):q.j.K().experiments.Cf("html5_refactor_in_player_slot_generation")?function(r){var F=new Q7(0,[C.dV]);r=yD5(z,C.layoutId,C.uZ,T,Tj(C.playerVars,C.PM,W,w,F),C.dV,h,F,b(r),l.get(C.uZ.externalVideoId),L);F=[];if(C.uZ.playerOverlay.instreamAdPlayerOverlayRenderer){var A=GnH(r);if(!A)return Fo("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,r),{layout:r,xg:[]}; F=[gsB(B,A.contentCpn,A.W_,function(V){return Ro(z,V.slotId,"core",A,Ca(c,V))},A.inPlayerSlotId)].concat(g.Q(F)); if(A.instreamAdPlayerUnderlayRenderer&&hN(q)){var a=A.instreamAdPlayerUnderlayRenderer;F=[JDl(B,A.contentCpn,A.W_,function(V){return pR5(z,V.slotId,a,A.adPlacementConfig,A.W_,Ca(c,V))})].concat(g.Q(F))}}return{layout:r, xg:F}}:function(r){var F=new Q7(0,[C.dV]); return{layout:yD5(z,C.layoutId,C.uZ,T,Tj(C.playerVars,C.PM,W,w,F),C.dV,h,F,b(r),l.get(C.uZ.externalVideoId),L),xg:[]}}}; zj=function(B,z,T){if(!B.playerVars)return new bn("No playerVars available in InstreamVideoAdRenderer.");var R,h;if(B.elementId==null||B.playerVars==null||B.playerOverlay==null||((R=B.playerOverlay)==null?void 0:R.instreamAdPlayerOverlayRenderer)==null&&((h=B.playerOverlay)==null?void 0:h.playerOverlayLayoutRenderer)==null||B.pings==null||B.externalVideoId==null)return new bn("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:B});R=ho(B.playerVars);h=Number(R.length_seconds); isNaN(h)&&(h=0,Fo("Expected valid length seconds in player vars but got NaN"));if(T.Rp(z.kind==="AD_PLACEMENT_KIND_START")){if(B.layoutId===void 0)return new bn("Expected server generated layout ID in instreamVideoAdRenderer");z=B.layoutId}else z=B.elementId;return{layoutId:z,uZ:B,playerVars:R,PM:B.playerVars,dV:h}}; Tj=function(B,z,T,R,h){B.iv_load_policy=R;z=ho(z);if(z.cta_conversion_urls)try{B.cta_conversion_urls=JSON.parse(z.cta_conversion_urls)}catch(W){Fo(W)}T.Y2&&(B.ctrl=T.Y2);T.E6&&(B.ytr=T.E6);T.kf&&(B.ytrcc=T.kf);T.isMdxPlayback&&(B.mdx="1");B.vvt&&(B.vss_credentials_token=B.vvt,T.Vr&&(B.vss_credentials_token_type=T.Vr),T.mdxEnvironment&&(B.mdx_environment=T.mdxEnvironment));tM(B,h);return B}; $ql=function(B){var z=new Map;B=g.d(B);for(var T=B.next();!T.done;T=B.next())(T=T.value.renderer.remoteSlotsRenderer)&&T.hostElementId&&z.set(T.hostElementId,T);return z}; WE=function(B){return B.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; PZK=function(B){return B!=null}; nsP=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r){for(var F=[],A=g.d(B),a=A.next();!a.done;a=A.next())if(a=a.value,!M6l(a)&&!JAH(a)){var V=WE(a)&&!!a.slotEntryTrigger.beforeContentVideoIdStartedTrigger,M=w.Rp(V),x=xqK(a,q,R,T.Nn,M);if(x instanceof e)return x;var v=void 0,n={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(v=a.adSlotMetadata.slotPhysicalPosition)!=null?v:1,mJ:"core",slotEntryTrigger:x.slotEntryTrigger,slotFulfillmentTriggers:x.slotFulfillmentTriggers, slotExpirationTriggers:x.slotExpirationTriggers},Z=g.u(a.fulfillmentContent.fulfilledLayout,Qi);if(Z){if(!Vi(Z))return new e("Invalid PlayerBytesAdLayoutRenderer");v=L&&!(WE(a)&&a.slotEntryTrigger.beforeContentVideoIdStartedTrigger);x=x.slotFulfillmentTriggers.some(function(N){return N instanceof Dm}); M=v?vsz(n,a.adSlotMetadata.triggerEvent,Z,T,R,W,q,B,M,C,x,r):Dqz(n,a.adSlotMetadata.triggerEvent,Z,z,T,R,h,W,b,l,w,q,B,c,M,a.adSlotMetadata.triggeringSourceLayoutId);if(M instanceof e)return M;x=[];WE(a)&&x.push(new zO({g$:WE(a)&&!!a.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));v&&x.push(new vV({}));T.PB&&x.push(new X6({}));x.push(new S3(V));a=Object.assign({},n,{clientMetadata:new Yo(x),fulfilledLayout:M.layout,adSlotLoggingData:a.adSlotMetadata.adSlotLoggingData});F.push.apply(F,g.Q(M.xg)); F.push(a)}else if(V=g.u(a.fulfillmentContent.fulfilledLayout,$L)){if(!U9B(V))return new e("Invalid PlayerUnderlayAdLayoutRenderer");V=knX(V,R,T.Nn,W,n,a.adSlotMetadata.triggerEvent,a.adSlotMetadata.triggeringSourceLayoutId);if(V instanceof e)return V;a=Object.assign({},n,{clientMetadata:new Yo([]),fulfilledLayout:V,adSlotLoggingData:a.adSlotMetadata.adSlotLoggingData});F.push(a)}else if(V=g.u(a.fulfillmentContent.fulfilledLayout,QlH)){if(!rAP(V))return new e("Invalid AboveFeedAdLayoutRenderer");V= KXb(V,R,T.Nn,W,n,a.adSlotMetadata.triggerEvent,a.adSlotMetadata.triggeringSourceLayoutId);if(V instanceof e)return V;a=Object.assign({},n,{clientMetadata:new Yo([]),fulfilledLayout:V,adSlotLoggingData:a.adSlotMetadata.adSlotLoggingData});F.push(a)}else if(V=g.u(a.fulfillmentContent.fulfilledLayout,yAz)){if(!TC(V.adLayoutMetadata)||!g.u(V.renderingContent,Ri))return new e("Invalid BelowPlayerAdLayoutRenderer");V=KXb(V,R,T.Nn,W,n,a.adSlotMetadata.triggerEvent,a.adSlotMetadata.triggeringSourceLayoutId); if(V instanceof e)return V;a=Object.assign({},n,{clientMetadata:new Yo([]),fulfilledLayout:V,adSlotLoggingData:a.adSlotMetadata.adSlotLoggingData});F.push(a)}else if(V=g.u(a.fulfillmentContent.fulfilledLayout,PI)){if(!gr(V))return new e("Invalid PlayerBytesSequenceItemAdLayoutRenderer");V=mqr(V,R,T.Nn,W,n,a.adSlotMetadata.triggerEvent);if(V instanceof e)return V;a=Object.assign({},n,{clientMetadata:new Yo([]),fulfilledLayout:V,adSlotLoggingData:a.adSlotMetadata.adSlotLoggingData});F.push(a)}else return new e("Unable to retrieve a client slot ["+ n.slotType+"] from a given AdSlotRenderer")}return F}; mqr=function(B,z,T,R,h,W){var b={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,mJ:"core"};z=bD(B,z,T);return z instanceof e?z:(T=g.u(B.renderingContent,yi))&&T.pings?Object.assign({},b,{renderingContent:B.renderingContent,Ta:yk(T.pings)},z,{qS:Ca(R,h)(b),clientMetadata:new Yo([new BV(Ym(W))]),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData}):new e("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; KXb=function(B,z,T,R,h,W,b){var l={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,mJ:"core"};z=bD(B,z,T);if(z instanceof e)return z;T=[];T.push(new BV(Ym(W)));W==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&b!==void 0&&T.push(new IJ(b));return Object.assign({},l,{renderingContent:B.renderingContent,Ta:new Map([["impression",ulz(B)]])},z,{qS:Ca(R,h)(l),clientMetadata:new Yo(T),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData})}; knX=function(B,z,T,R,h,W,b){if(B.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(b=g.u(B.renderingContent,JM))if(b=g.u(b.sidePanel,AAB)){var l={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,mJ:"core"};z=bD(B,z,T);B=z instanceof e?z:Object.assign({},l,{renderingContent:B.renderingContent,Ta:new Map([["impression",b.impressionPings||[]],["resume",b.resumePings||[]]])},z,{qS:Ca(R,h)(l),clientMetadata:new Yo([new BV(Ym(W))]),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData})}else B= new e("DismissablePanelTextPortraitImageRenderer is missing");else B=new e("SqueezebackPlayerSidePanelRenderer is missing");else B.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.u(B.renderingContent,Ilz)?(b={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,mJ:"core"},z=bD(B,z,T),B=z instanceof e?z:Object.assign({},b,{renderingContent:B.renderingContent,Ta:new Map},z,{qS:Ca(R,h)(b),clientMetadata:new Yo([new BV(Ym(W))]),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData})): B=new e("CounterfactualRenderer is missing"):B.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?B=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):B.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?B=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):B.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.u(B.renderingContent,pC)?(W={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType, mJ:"core"},z=bD(B,z,T),B=z instanceof e?z:b?Object.assign({},W,{renderingContent:B.renderingContent,Ta:new Map},z,{qS:Ca(R,h)(W),clientMetadata:new Yo([new IJ(b)]),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData}):new e("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):B=new e("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):B.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.u(B.renderingContent,GpP)? (W={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,mJ:"core"},z=bD(B,z,T),B=z instanceof e?z:Object.assign({},W,{renderingContent:B.renderingContent,Ta:new Map([])},z,{qS:Ca(R,h)(W),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Yo([])})):B=new e("AdsEngagementPanelSectionListViewModel is missing"):B=new e("LayoutType ["+B.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return B}; vsz=function(B,z,T,R,h,W,b,l,w,q,c,L){if((L==null?void 0:L.L0)===void 0||(L==null?void 0:L.ID)===void 0)return new e("Cached ad break range from cue point is missing");var C=bD(T,h,R.Nn);if(C instanceof e)return C;C={layoutExitMuteTriggers:[],layoutExitNormalTriggers:C.layoutExitNormalTriggers,layoutExitSkipTriggers:[],qW:[],layoutExitUserInputSubmittedTriggers:[]};if(g.u(T.renderingContent,CC))return B=HNb(B,z,T,C,h,W,l,w,R.Nn,b,L.L0,L.ID),B instanceof e?B:B.J$===void 0?new e("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:B.layout,xg:[B.J$]};var r=g.u(T.renderingContent,cI);if(r){if(!TC(T.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!LC(r))return new e("Invalid sequential layout");r=r.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer}); B=fid(B,z,T,C,r,h,R,W,b,w,l,q,L.L0,L.ID,c);return B instanceof e?B:{layout:B.h5,xg:B.xg}}return new e("Not able to convert a sequential layout")}; fid=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F){var A=ONl(h,C,r);if(A instanceof e)return A;var a=[],V=[];A=g.d(A);for(var M=A.next();!M.done;M=A.next()){var x=M.value;M=B;var v=h[x.W8],n=x,Z=z;x=W;var N=b,TP=l,hK=w,zP=q,ld=c,t=lD(v);if(t instanceof e)M=t;else{var UH={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,mJ:"adapter"};n=NzX(Z,v,n,x);n instanceof e?M=n:(M=Object.assign({},UH,w3,{Ta:t,renderingContent:v.renderingContent,clientMetadata:new Yo(n),qS:Ca(TP,M)(UH),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData}), M=(v=qL(ld,M,x,N.Nn,TP,hK,zP,void 0,!0))?v instanceof e?v:{layout:M,J$:v}:new e("Expecting associatedInPlayerSlot"))}if(M instanceof e)return M;a.push(M.layout);V.push(M.J$)}h={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,mJ:"core"};z=[new KO(Number(T.driftRecoveryMs)),new $$(C),new PV(r),new BV(Ym(z)),new EP(L),new vV({})];F&&z.push(new TO({}));return{h5:Object.assign({},h,R,{B8:a,Ta:new Map,clientMetadata:new Yo(z),qS:Ca(l,B)(h)}),xg:V}}; HNb=function(B,z,T,R,h,W,b,l,w,q,c,L){if(!Vi(T))return new e("Invalid PlayerBytesAdLayoutRenderer");var C=lD(T);if(C instanceof e)return C;var r={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,mJ:"core"},F=g.u(T.renderingContent,CC);if(!F)return new e("Invalid rendering content for DAI media layout");F=BE(F,!1);c={P6:F,W8:0,LD:c,Vg:Math.min(c+F.videoLengthSeconds*1E3,L),hs:new Q7(0,[F.videoLengthSeconds])};var A;L=(A=Number(T.driftRecoveryMs))!=null?A:void 0;z=NzX(z, T,c,h,L);if(z instanceof e)return z;B=Object.assign({},r,R,{Ta:C,renderingContent:T.renderingContent,clientMetadata:new Yo(z),qS:Ca(W,B)(r),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});return(h=qL(b,B,h,w,W,q,l,void 0,!0))?h instanceof e?h:{layout:B,J$:h}:new e("Expecting associatedInPlayerSlot")}; Dqz=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A){var a=bD(T,W,h.Nn);if(a instanceof e)return a;if(g.u(T.renderingContent,CC)){w=trz([T],h,w);if(w instanceof e)return w;if(w.length!==1)return new e("Only expected one media layout.");B=jvY(B,z,T,a,w[0],void 0,"core",R,W,b,l,q,C,r,F,h.Nn,L,void 0,A);return B instanceof e?B:{layout:B.layout,xg:B.J$?[B.J$]:[]}}var V=g.u(T.renderingContent,cI);if(V){if(!TC(T.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!LC(V))return new e("Invalid sequential layout"); V=V.sequentialLayouts.map(function(M){return M.playerBytesAdLayoutRenderer}); B=XRB(B,z,T.adLayoutMetadata,a,V,R,W,h,w,b,l,q,c,L,F,C,r,A);return B instanceof e?B:{layout:B.h5,xg:B.xg}}return new e("Not able to convert a sequential layout")}; XRB=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A,a,V){var M=new hy({current:null}),x=trz(h,l,w);if(x instanceof e)return x;w=[];for(var v=[],n=void 0,Z=0;Z0&&(Z.push(V),Z.push(new RJ(n.adPodSkipTarget)));(W=q.get(n.externalVideoId))&&Z.push(new HV(W));W=Z}else W=new e("Invalid vod media renderer")}if(W instanceof e)return W;B=Object.assign({},b,R,{Ta:x,renderingContent:T.renderingContent,clientMetadata:new Yo(W),qS:Ca(c,B)(b),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});T=g.u(T.renderingContent,CC);if(!T||!iI(T))return new e("Invalid meida renderer");L=XQ(L,T.externalVideoId);L.instreamVideoAdRenderer=T;L.Wh="AD_PLACEMENT_KIND_START";return r?(w=qL(C,B,w,A,c,a,F,V,!1),w instanceof e?w:svr(B.layoutId,C)&&w?{layout:Object.assign({},B,{clientMetadata:new Yo(W.concat(new il(w)))})}:{layout:B,J$:w}): {layout:B}}; ZNl=function(B,z,T,R,h){if(!Vi(z))return new e("Invalid PlayerBytesAdLayoutRenderer");var W=g.u(z.renderingContent,q_);if(!W||W.durationMilliseconds===void 0)return new e("Invalid endcap renderer");var b={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,mJ:"adapter"};R=[new OP(W.durationMilliseconds),new j3({impressionCommands:void 0,abandonCommands:W.abandonCommands?[{commandExecutorCommand:W.abandonCommands}]:void 0,completeCommands:W.completionCommands}),new BV(R), new dH("LAYOUT_TYPE_ENDCAP")];if(h){R.push(new TQ(h.hs.adPodIndex-1));R.push(new x$(h.hs.adPodIndex));var l;R.push(new RJ((l=h.adPodSkipTarget)!=null?l:-1))}return Object.assign({},b,w3,{renderingContent:z.renderingContent,clientMetadata:new Yo(R),Ta:W.skipPings?new Map([["skip",W.skipPings]]):new Map,qS:Ca(T,B)(b),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; qL=function(B,z,T,R,h,W,b,l,w){B=B.filter(function(c){return c.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&c.adSlotMetadata.triggeringSourceLayoutId===z.layoutId}); if(B.length!==0){if(B.length!==1)return new e("Invalid InPlayer slot association for the given PlayerBytes layout");B=B[0];b=xqK(B,W,T,R,b);if(b instanceof e)return b;var q;W={slotId:B.adSlotMetadata.slotId,slotType:B.adSlotMetadata.slotType,slotPhysicalPosition:(q=B.adSlotMetadata.slotPhysicalPosition)!=null?q:1,mJ:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};q=g.u(B.fulfillmentContent.fulfilledLayout, V6X);if(!q||!FsK(q))return new e("Invalid InPlayerAdLayoutRenderer");b={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,mJ:"core"};T=bD(q,T,R);if(T instanceof e)return T;R=[];w&&R.push(new vV({}));if(q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")R.push.apply(R,g.Q(Esb(B.adSlotMetadata.triggerEvent,z)));else if(q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")R.push(new BV(Ym(B.adSlotMetadata.triggerEvent))),l&&R.push(l);else return new e("Not able to parse an SDF InPlayer layout"); h=Object.assign({},b,T,{renderingContent:q.renderingContent,Ta:new Map,qS:Ca(h,W)(b),clientMetadata:new Yo(R),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},W,{fulfilledLayout:h,clientMetadata:new Yo([])})}}; Esb=function(B,z){var T=[];T.push(new BV(Ym(B)));T.push(new IJ(z.layoutId));(B=E(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&T.push(new UP(B));(B=E(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&T.push(new hy(B));(B=E(z.clientMetadata,"metadata_type_remote_slots_data"))&&T.push(new HV(B));(B=E(z.clientMetadata,"metadata_type_ad_next_params"))&&T.push(new tD(B));(B=E(z.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&T.push(new jr(B));(B=E(z.clientMetadata, "metadata_type_ad_pod_info"))&&T.push(new zQ(B));(z=E(z.clientMetadata,"metadata_type_ad_video_id"))&&T.push(new WV(z));return T}; eZ5=function(B,z,T,R,h,W){function b(q){return iD(z,q)} var l=R.Zf.inPlayerSlotId,w={layoutId:R.Zf.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",mJ:"core"};T={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:new $Y(b,B),slotFulfillmentTriggers:[new jZ(b,l)],slotExpirationTriggers:[new XT(b,l),new OU(b,T)]};B=Object.assign({},w,{layoutExitNormalTriggers:[new xY(b,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],Ta:new Map,clientMetadata:new Yo([new LO(R.Zf), new BV(R.adPlacementConfig),h]),qS:Ca(W,T)(w),adLayoutLoggingData:R.Zf.adLayoutLoggingData});return Object.assign({},T,{clientMetadata:new Yo([new mj(B)])})}; svr=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next())if(T=T.value,T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var R=g.u(T.fulfillmentContent.fulfilledLayout,$L);if(R&&(R=g.u(R.renderingContent,JM))&&R.associatedPlayerBytesLayoutId===B)return T}}; xqK=function(B,z,T,R,h){var W=SZH(NQ(B.slotEntryTrigger,T,R),h,B,z);if(W instanceof e)return W;for(var b=[],l=g.d(B.slotFulfillmentTriggers),w=l.next();!w.done;w=l.next()){w=NQ(w.value,T,R);if(w instanceof e)return w;b.push(w)}b=BHK(b,h,B,z);z=[];B=g.d(B.slotExpirationTriggers);for(h=B.next();!h.done;h=B.next()){h=NQ(h.value,T,R);if(h instanceof e)return h;z.push(h)}return{slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:z}}; SZH=function(B,z,T,R){return z&&T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B instanceof y7?new V7(function(h){return iD(R,h)},T.adSlotMetadata.slotId):B}; BHK=function(B,z,T,R){return z&&T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?B.map(function(h){return h instanceof jZ?new sU(function(W){return iD(R,W)},T.adSlotMetadata.slotId):h}):B}; bD=function(B,z,T){for(var R=[],h=g.d(B.layoutExitNormalTriggers||[]),W=h.next();!W.done;W=h.next()){W=NQ(W.value,z,T);if(W instanceof e)return W;R.push(W)}h=[];W=g.d(B.layoutExitSkipTriggers||[]);for(var b=W.next();!b.done;b=W.next()){b=NQ(b.value,z,T);if(b instanceof e)return b;h.push(b)}W=[];b=g.d(B.layoutExitMuteTriggers||[]);for(var l=b.next();!l.done;l=b.next()){l=NQ(l.value,z,T);if(l instanceof e)return l;W.push(l)}b=[];B=g.d(B.layoutExitUserInputSubmittedTriggers||[]);for(l=B.next();!l.done;l= B.next()){l=NQ(l.value,z,T);if(l instanceof e)return l;b.push(l)}return{layoutExitNormalTriggers:R,layoutExitSkipTriggers:h,layoutExitMuteTriggers:W,layoutExitUserInputSubmittedTriggers:b,qW:[]}}; lD=function(B){var z=g.u(B.renderingContent,CC);if(z==null?0:z.pings)return yk(z.pings);B=g.u(B.renderingContent,q_);return(B==null?0:B.skipPings)?new Map([["skip",B.skipPings]]):new Map}; NzX=function(B,z,T,R,h){z=g.u(z.renderingContent,CC);if(!z)return new e("Invalid rendering content for DAI media layout");B=[new bl(R),new yR(T.P6.videoLengthSeconds),new gH(T.P6.playerVars),new $$(T.LD),new PV(T.Vg),new x$(T.W8),new BV(Ym(B)),new WV(T.P6.adVideoId),new zQ(T.hs),z.sodarExtensionData&&new pO(z.sodarExtensionData),new UP({current:null}),new vV({}),new e3(Qk(z.pings))].filter(PZK);h!==void 0&&B.push(new KO(h));return B}; ONl=function(B,z,T){B=B.map(function(w){return BE(g.u(w.renderingContent,CC),!1)}); var R=B.map(function(w){return w.videoLengthSeconds}),h=R.map(function(w,q){return new Q7(q,R)}),W=z,b=T,l=[]; B.forEach(function(w,q){b=Math.min(W+w.videoLengthSeconds*1E3,T);tM(w.playerVars,h[q]);l.push({P6:w,LD:W,Vg:b,W8:q,hs:h[q]});W=b}); return l}; trz=function(B,z,T){for(var R=[],h=g.d(B),W=h.next();!W.done;W=h.next())if(W=g.u(W.value.renderingContent,CC)){if(!iI(W))return new e("Invalid vod media renderer");R.push(zed(W))}h=R.map(function(L){return L.dV}); W=[];for(var b=0,l=0;l0?zP:-1;else if(UH=g.u(t,q_)){t=cyb(B,z,T, UH,W,A,l,N,zP);if(t instanceof e){r=t;break a}t=t(C);a.push(t.P4);V=[].concat(g.Q(t.rI),g.Q(V));M=[].concat(g.Q(t.VG),g.Q(M));t.J$&&(hK=[t.J$].concat(g.Q(hK)))}else if(UH=g.u(t,Us)){if(r===void 0){r=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:UH});break a}t=ryz(B,z,T,W,UH,Z,l,r,A,s$(c,"supports_multi_step_on_desktop"));if(t instanceof e){r=t;break a}t=t(C);a.push(t.P4);t.J$&&hK.push(t.J$);V=[].concat(g.Q(t.rI),g.Q(V));M=[].concat(g.Q(t.VG), g.Q(M));x=[].concat(g.Q(t.nw),g.Q(x));v=[].concat(g.Q(t.Dg),g.Q(v));n=[Z].concat(g.Q(n))}else if(t=g.u(t,MQ)){t=o$l(B,z,T,W,t,Z,l,A);if(t instanceof e){r=t;break a}t=t(C);a.push(t.P4);t.J$&&hK.push(t.J$);M=[].concat(g.Q(t.VG),g.Q(M))}else{r=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={B8:a,layoutExitSkipTriggers:V,layoutExitUserInputSubmittedTriggers:x,qW:v,layoutExitMuteTriggers:M,XL:n,xg:hK}}}else a:if(A=M3d(R,T,c),A instanceof e)r=A;else{a=0;V=[];M=[];x=[];v=[];n= [];Z=[];N=new Mx({current:null});TP=new hy({current:null});hK=!1;ld=[];zP=-1;F=g.d(R);for(t=F.next();!t.done;t=F.next())if(t=t.value,g.u(t,ai)){t=Ljl(z,T,g.u(t,ai),l);if(t instanceof e){r=t;break a}t=t(C);V.push(t.P4);M=[].concat(g.Q(t.rI),g.Q(M));x=[].concat(g.Q(t.VG),g.Q(x));t.J$&&(ld=[t.J$].concat(g.Q(ld)))}else if(g.u(t,CC)){zP=zj(g.u(t,CC),T,c);if(zP instanceof bn){r=new e(zP);break a}t=new Q7(a,A);t=V3z(z,zP.layoutId,zP.uZ,T,Tj(zP.playerVars,zP.PM,b,q,t),zP.dV,W,t,l(C),TP,w.get(zP.uZ.externalVideoId), void 0,L);a++;V.push(t.P4);M=[].concat(g.Q(t.rI),g.Q(M));x=[].concat(g.Q(t.VG),g.Q(x));hK||(Z.push(TP),hK=!0);zP=(zP=zP.uZ.adPodSkipTarget)&&zP>0?zP:-1}else if(g.u(t,q_)){t=cyb(B,z,T,g.u(t,q_),W,a,l,TP,zP);if(t instanceof e){r=t;break a}t=t(C);V.push(t.P4);M=[].concat(g.Q(t.rI),g.Q(M));x=[].concat(g.Q(t.VG),g.Q(x));t.J$&&(ld=[t.J$].concat(g.Q(ld)))}else if(g.u(t,Us)){if(r===void 0){r=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.u(t, Us)});break a}t=ryz(B,z,T,W,g.u(t,Us),N,l,r,a,s$(c,"supports_multi_step_on_desktop"));if(t instanceof e){r=t;break a}t=t(C);V.push(t.P4);t.J$&&ld.push(t.J$);M=[].concat(g.Q(t.rI),g.Q(M));x=[].concat(g.Q(t.VG),g.Q(x));v=[].concat(g.Q(t.nw),g.Q(v));n=[].concat(g.Q(t.Dg),g.Q(n));Z=[N].concat(g.Q(Z))}else if(g.u(t,MQ)){t=o$l(B,z,T,W,g.u(t,MQ),N,l,a);if(t instanceof e){r=t;break a}t=t(C);V.push(t.P4);t.J$&&ld.push(t.J$);x=[].concat(g.Q(t.VG),g.Q(x))}else{r=new e("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}r={B8:V,layoutExitSkipTriggers:M,layoutExitUserInputSubmittedTriggers:v,qW:n,layoutExitMuteTriggers:x,XL:Z,xg:ld}}r instanceof e?C=r:(n=C.slotId,A=r.B8,a=r.layoutExitSkipTriggers,V=r.layoutExitMuteTriggers,M=r.layoutExitUserInputSubmittedTriggers,x=r.XL,C=l(C),v=h?h.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n=h?h.layoutId:E$(z.U.get(),v,n),Z={layoutId:n,layoutType:v,mJ:"core"},C={layout:{layoutId:n,layoutType:v,Ta:new Map,layoutExitNormalTriggers:[new f$(z.T,n)],layoutExitSkipTriggers:a, layoutExitMuteTriggers:V,layoutExitUserInputSubmittedTriggers:M,qW:[],mJ:"core",clientMetadata:new Yo([new VR(A)].concat(g.Q(x))),qS:C(Z)},xg:r.xg});return C}}; M3d=function(B,z,T){var R=[];B=g.d(B);for(var h=B.next();!h.done;h=B.next())if(h=h.value,g.u(h,CC)){h=zj(g.u(h,CC),z,T);if(h instanceof bn)return new e(h);R.push(h.dV)}return R}; yyd=function(B,z,T,R,h,W,b,l){if(!$9z(T,l===void 0?!1:l))return new e("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:T});var w=ef(T);if(w<=0)return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T});var q=new Mx({current:null}),c=TzX(B,z,T,q,R,W,b);return QJH(B,R,W,w,h,function(L,C){var r=L.slotId,F=Es(T);L=b(L);var A,a=(A=r3(z,R,T.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?A: E$(z.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",r);r={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",mJ:"core"};A=c(a,C);var V=E(A.clientMetadata,"metadata_type_fulfilled_layout");V||Fo("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");F=[new BV(R),new OP(w),new j3(F),q];V&&F.push(new dH(V.layoutType));return{yif:{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ta:new Map,layoutExitNormalTriggers:[new f$(z.T,a)],layoutExitSkipTriggers:[new tH(z.T, C.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new SZ(z.T,C.layoutId)],qW:[],mJ:"core",clientMetadata:new Yo(F),qS:L(r)},Gu:A}})}; g$B=function(B){if(!v8b(B))return!1;var z=g.u(B.adVideoStart,d3);return z?g.u(B.linearAd,CC)&&wr(z)?!0:(Fo("Invalid Sandwich with notify"),!1):!1}; JyB=function(B){if(B.linearAds==null)return!1;B=g.u(B.adStart,d3);return B?wr(B)?!0:(Fo("Invalid LASR with notify"),!1):!1}; pVY=function(B){if(!x9z(B))return!1;B=g.u(B.adStart,d3);return B?wr(B)?!0:(Fo("Invalid LASR with notify"),!1):!1}; AN=function(B,z,T,R,h,W,b,l,w,q){this.W=B;this.U=z;this.T=T;this.Qu=R;this.d3=h;this.Y=W;this.DJ=b;this.nk=l;this.SD=w;this.loadPolicy=q===void 0?1:q}; fC=function(B,z,T,R,h,W,b,l,w,q){var c=[];if(z.length===0&&R.length===0&&T.length===0)return c;z=z.filter(qQ);var L=T.filter(g8l),C=R.filter(qQ),r=new Map,F=$ql(z),A=T.some(function(Qz){var vb;return(Qz==null?void 0:(vb=Qz.adSlotMetadata)==null?void 0:vb.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),a=T.some(function(Qz){var vb; return(Qz==null?void 0:(vb=Qz.adSlotMetadata)==null?void 0:vb.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),V=T.some(function(Qz){var vb; return(Qz==null?void 0:(vb=Qz.adSlotMetadata)==null?void 0:vb.slotType)==="SLOT_TYPE_IN_PLAYER"}),M=T.some(function(Qz){var vb,AI; return(Qz==null?void 0:(vb=Qz.adSlotMetadata)==null?void 0:vb.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(Qz==null?void 0:(AI=Qz.adSlotMetadata)==null?void 0:AI.slotType)==="SLOT_TYPE_ABOVE_FEED"}); T=T.some(function(Qz){var vb;return(Qz==null?void 0:(vb=Qz.adSlotMetadata)==null?void 0:vb.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(A||a||V||M||T)q=nsP(L,z,l,h,F,B.d3.get(),B.loadPolicy,r,B.Qu.get(),B.W.get(),V,b,w,q),q instanceof e?Fo(q,void 0,void 0,{contentCpn:h}):c.push.apply(c,g.Q(q));q=g.d(z);for(T=q.next();!T.done;T=q.next())T=T.value,a=$xK(B,r,T,h,W,b,A,l,F,w,L),a instanceof e?Fo(a,void 0,void 0,{renderer:T.renderer,config:T.config.adPlacementConfig,kind:T.config.adPlacementConfig.kind,contentCpn:h,daiEnabled:b}):c.push.apply(c,g.Q(a));PlP(B.Qu.get())||(W=xxz(B,C,h,l,F,r),c.push.apply(c,g.Q(W)));if(B.Y===null||b&&!l.CZ){var x, v,n;B=l.PB&&z.length===1&&((x=z[0].config)==null?void 0:(v=x.adPlacementConfig)==null?void 0:v.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((n=z[0].renderer)==null?void 0:n.adBreakServiceRenderer);if(!c.length&&!B){var Z,N,TP,hK;Fo("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:h,"first APR kind":(Z=z[0])==null?void 0:(N=Z.config)==null?void 0:(TP=N.adPlacementConfig)==null?void 0:TP.kind,renderer:(hK=z[0])==null?void 0: hK.renderer})}return c}x=R.filter(qQ);c.push.apply(c,g.Q(SyX(r,x,B.U.get(),B.Y,h,A)));if(!c.length){var zP,ld,t,UH;Fo("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:h,daiEnabled:b.toString(),"first APR kind":(zP=z[0])==null?void 0:(ld=zP.config)==null?void 0:(t=ld.adPlacementConfig)==null?void 0:t.kind,renderer:(UH=z[0])==null?void 0:UH.renderer})}return c}; xxz=function(B,z,T,R,h,W){function b(C){return Ca(B.d3.get(),C)} var l=[];z=g.d(z);for(var w=z.next();!w.done;w=z.next()){w=w.value;var q=w.renderer,c=q.sandwichedLinearAdRenderer,L=q.linearAdSequenceRenderer;c&&g$B(c)?(Fo("Found AdNotify with SandwichedLinearAdRenderer"),L=g.u(c.adVideoStart,d3),c=g.u(c.linearAd,CC),jf(W,q,w.config.adPlacementConfig.kind),q=void 0,L=ADz((q=L)==null?void 0:q.layout.layoutId,B.U.get(),B.T.get(),w.config.adPlacementConfig,w.adSlotLoggingData,c,T,R,b,h,B.loadPolicy,B.Qu.get(),B.d3.get()),L instanceof e?Fo(L):l.push.apply(l,g.Q(L))): L&&(!L.adLayoutMetadata&&JyB(L)||L.adLayoutMetadata&&pVY(L))&&(Fo("Found AdNotify with LinearAdSequenceRenderer"),jf(W,q,w.config.adPlacementConfig.kind),q=void 0,c=Fjz((q=g.u(L.adStart,d3))==null?void 0:q.layout.layoutId,B.U.get(),B.T.get(),w.config.adPlacementConfig,w.adSlotLoggingData,L.linearAds,TC(L.adLayoutMetadata)?L.adLayoutMetadata:void 0,T,R,b,h,B.loadPolicy,B.Qu.get()),c instanceof e?Fo(c):l.push.apply(l,g.Q(c)))}return l}; $xK=function(B,z,T,R,h,W,b,l,w,q,c){function L(V){return Ca(B.d3.get(),V)} var C=T.renderer,r=T.config.adPlacementConfig,F=r.kind,A=T.adSlotLoggingData,a=l.CZ&&F==="AD_PLACEMENT_KIND_START";a=W&&!a;if(C.adsEngagementPanelRenderer!=null)return Z1(z,T.elementId,F,C.adsEngagementPanelRenderer.isContentVideoEngagementPanel,C.adsEngagementPanelRenderer.adVideoId,C.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.adsEngagementPanelRenderer;V=Ca(B.d3.get(),V);return ao(n,Z,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new OZ(N),M,x,N.impressionPings,V,C.adsEngagementPanelRenderer.adLayoutLoggingData,v)}),[]; if(C.adsEngagementPanelLayoutViewModel)return Z1(z,T.elementId,F,C.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,C.adsEngagementPanelLayoutViewModel.adVideoId,C.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.adsEngagementPanelLayoutViewModel;V=Ca(B.d3.get(),V);return Uu(n,Z,"LAYOUT_TYPE_PANEL",new Nq(N),M,x,V,C.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,v)}),[]; if(C.actionCompanionAdRenderer!=null){if(C.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return XNK(B.U.get(),B.Y,B.T.get(),C.actionCompanionAdRenderer,r,A,R,L);Z1(z,T.elementId,F,C.actionCompanionAdRenderer.isContentVideoCompanion,C.actionCompanionAdRenderer.adVideoId,C.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.actionCompanionAdRenderer;V=Ca(B.d3.get(),V);return ao(n,Z,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new HR(N),M,x,N.impressionPings,V,C.actionCompanionAdRenderer.adLayoutLoggingData,v)})}else if(C.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(C.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return ZvK(B.U.get(),B.Y,B.T.get(),C.topBannerImageTextIconButtonedLayoutViewModel,r,A,R,L); Z1(z,T.elementId,F,C.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,C.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,C.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.topBannerImageTextIconButtonedLayoutViewModel;V=Ca(B.d3.get(),V);return Uu(n,Z,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new fN(N),M,x,V,C.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,v)})}else if(C.imageCompanionAdRenderer)Z1(z, T.elementId,F,C.imageCompanionAdRenderer.isContentVideoCompanion,C.imageCompanionAdRenderer.adVideoId,C.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.imageCompanionAdRenderer; V=Ca(B.d3.get(),V);return ao(n,Z,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Zi(N),M,x,N.impressionPings,V,C.imageCompanionAdRenderer.adLayoutLoggingData,v)}); else if(C.bannerImageLayoutViewModel)Z1(z,T.elementId,F,C.bannerImageLayoutViewModel.isContentVideoCompanion,C.bannerImageLayoutViewModel.adVideoId,C.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.bannerImageLayoutViewModel;V=Ca(B.d3.get(),V);return Uu(n,Z,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new er(N),M,x,V,C.bannerImageLayoutViewModel.adLayoutLoggingData,v)}); else if(C.shoppingCompanionCarouselRenderer)Z1(z,T.elementId,F,C.shoppingCompanionCarouselRenderer.isContentVideoCompanion,C.shoppingCompanionCarouselRenderer.adVideoId,C.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,r,A,function(V,M,x,v){var n=B.T.get(),Z=V.slotId,N=C.shoppingCompanionCarouselRenderer;V=Ca(B.d3.get(),V);return ao(n,Z,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new sZ(N),M,x,N.impressionPings,V,C.shoppingCompanionCarouselRenderer.adLayoutLoggingData,v)}); else if(C.adBreakServiceRenderer){if(!t6z(T))return[];if(F==="AD_PLACEMENT_KIND_PAUSE")return NIz(B.U.get(),r,A,T.renderer.adBreakServiceRenderer,R);if(F!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&F!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Ovz(B.U.get(),r,A,T.renderer.adBreakServiceRenderer,R,h,W);l.PB||Fo("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:F,adPlacementConfig:r,daiEnabledForContentVideo:String(W),isServedFromLiveInfra:String(l.PB),clientPlaybackNonce:l.clientPlaybackNonce}); if(F==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!B.DJ)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!B.SD)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");B.SD.Xk({adPlacementRenderer:T,contentCpn:R,Nn:h});h=B.DJ.get().getCurrentTimeSec(1,!1);return v$K(B.U.get(),T.renderer.adBreakServiceRenderer,r,h,R,A,W)}if(!B.nk)return new e("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); B.nk.Xk({adPlacementRenderer:T,contentCpn:R,Nn:h})}else{if(C.clientForecastingAdRenderer)return Wjb(B.U.get(),B.T.get(),r,A,C.clientForecastingAdRenderer,R,h,L);if(C.invideoOverlayAdRenderer)return wVb(B.U.get(),B.T.get(),r,A,C.invideoOverlayAdRenderer,R,h,L);if(C.instreamAdPlayerOverlayRenderer)return YPY(B.U.get(),B.T.get(),r,A,C.instreamAdPlayerOverlayRenderer,R,L);if((C.linearAdSequenceRenderer||C.instreamVideoAdRenderer)&&a)return rDb(B.U.get(),B.T.get(),T,R,L,q,!B.Qu.get().j.K().D("html5_override_ad_video_length_killswitch")); if(C.linearAdSequenceRenderer&&!a){if(b)return[];jf(z,C,F);if(C.linearAdSequenceRenderer.adLayoutMetadata){if(!x9z(C.linearAdSequenceRenderer))return new e("Received invalid LinearAdSequenceRenderer.")}else if(C.linearAdSequenceRenderer.linearAds==null)return new e("Received invalid LinearAdSequenceRenderer.");if(g.u(C.linearAdSequenceRenderer.adStart,d3)){Fo("Found AdNotify in LinearAdSequenceRenderer");T=g.u(C.linearAdSequenceRenderer.adStart,d3);if(!o8d(T))return new e("Invalid AdMessageRenderer."); W=C.linearAdSequenceRenderer.linearAds;return I8z(B.W.get(),B.U.get(),B.T.get(),B.d3.get(),r,A,T,TC(C.linearAdSequenceRenderer.adLayoutMetadata)?C.linearAdSequenceRenderer.adLayoutMetadata:void 0,W,R,h,l,L,w,B.loadPolicy,B.Qu.get())}return Uxz(B.U.get(),B.T.get(),r,A,C.linearAdSequenceRenderer.linearAds,TC(C.linearAdSequenceRenderer.adLayoutMetadata)?C.linearAdSequenceRenderer.adLayoutMetadata:void 0,R,h,l,L,w,B.loadPolicy,B.Qu.get(),c)}if(!C.remoteSlotsRenderer||W){if(C.instreamVideoAdRenderer&& !a){if(b)return[];jf(z,C,F);return QvK(B.U.get(),B.T.get(),r,A,C.instreamVideoAdRenderer,R,h,l,L,w,B.loadPolicy,B.Qu.get(),B.d3.get(),c)}if(C.instreamSurveyAdRenderer)return yyd(B.U.get(),B.T.get(),C.instreamSurveyAdRenderer,r,A,R,L,s$(B.Qu.get(),"supports_multi_step_on_desktop"));if(C.sandwichedLinearAdRenderer!=null)return v8b(C.sandwichedLinearAdRenderer)?g.u(C.sandwichedLinearAdRenderer.adVideoStart,d3)?(Fo("Found AdNotify in SandwichedLinearAdRenderer"),T=g.u(C.sandwichedLinearAdRenderer.adVideoStart, d3),o8d(T)?(W=g.u(C.sandwichedLinearAdRenderer.linearAd,CC))?aiY(T,W,r,B.W.get(),B.U.get(),B.T.get(),B.d3.get(),A,R,h,l,L,w,B.loadPolicy,B.Qu.get()):new e("Missing IVAR from Sandwich"):new e("Invalid AdMessageRenderer.")):Uxz(B.U.get(),B.T.get(),r,A,[C.sandwichedLinearAdRenderer.adVideoStart,C.sandwichedLinearAdRenderer.linearAd],void 0,R,h,l,L,w,B.loadPolicy,B.Qu.get()):new e("Received invalid SandwichedLinearAdRenderer.");if(C.videoAdTrackingRenderer!=null)return ReK(B.U.get(),B.T.get(),C.videoAdTrackingRenderer, r,A,R,h,l.mP,L)}}return[]}; ML=function(B,z,T,R,h,W,b,l){g.K.call(this);var w=this;this.U=B;this.Y=z;this.s2=R;this.DJ=h;this.Qu=W;this.PD=b;this.Ui=l;this.T=null;T.get().addListener(this);this.addOnDisposeCallback(function(){T.xd()||T.get().removeListener(w)}); R.get().addListener(this);this.addOnDisposeCallback(function(){R.xd()||R.get().removeListener(w)})}; kQH=function(B,z,T){var R=B.DJ.get().getCurrentTimeSec(1,!1);B.Qu.get().j.K().L4()&&WT(B.PD.get(),"sdai","onopp.1;evt."+T.event+";start."+T.startSecs.toFixed(3)+";d."+T.Dc.toFixed(3));ox(B.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var h=B.Y.get(),W=z.adPlacementRenderer.renderer.adBreakServiceRenderer,b=z.contentCpn,l=z.adPlacementRenderer.adSlotLoggingData,w=V3(B.Qu.get()),q=B.PD;if(h.Qu.get().j.K().experiments.Cf("enable_smearing_expansion_dai")){var c=h.Qu.get();c=g.rk(c.j.K().experiments, "max_prefetch_window_sec_for_livestream_optimization");w=h.Qu.get();var L=g.rk(w.j.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");w={Tc:DxB(T),x7:!1,cueProcessedMs:R*1E3};var C=T.startSecs+T.Dc;if(R===0)w.EG=new QN(0,C*1E3);else{L=T.startSecs-L;var r=L-R;w.EG=r<=0?new QN(L*1E3,C*1E3):new QN(Math.floor(R+Math.random()*Math.min(r,c))*1E3,C*1E3)}c=w}else c={Tc:DxB(T),x7:!1},C=T.startSecs+T.Dc,T.startSecs<=R?w=new QN((T.startSecs-4)*1E3,C*1E3):(L=Math.max(0,T.startSecs-R-10),w= new QN(Math.floor(R+Math.random()*(w?R===0?0:Math.min(L,5):L))*1E3,C*1E3)),c.EG=w;W=Os(h,W,b,c,l,[new QR(T)]);Q3(h.Qu.get())&&WT(q.get(),"abrsm","cpi."+T.identifier+";cps."+T.startSecs+";cpd."+T.Dc+";cts."+R+";rbf."+c.EG.start);q.get().j.uI(T.startSecs-R,c.EG.start/1E3-R);return[W]})}; y3=function(B){var z,T=(z=E(B.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!T)return null;z=E(B.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var R=B.layoutId,h=E(B.clientMetadata,"metadata_type_content_cpn"),W=E(B.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=E(B.clientMetadata,"metadata_type_player_overlay_layout_renderer"),l=E(B.clientMetadata,"metadata_type_player_underlay_renderer"),w=E(B.clientMetadata,"metadata_type_ad_placement_config"), q=E(B.clientMetadata,"metadata_type_video_length_seconds");var c=RV(B.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?E(B.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):RV(B.clientMetadata,"metadata_type_layout_enter_ms")&&RV(B.clientMetadata,"metadata_type_layout_exit_ms")?(E(B.clientMetadata,"metadata_type_layout_exit_ms")-E(B.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{W_:R,contentCpn:h,bq:T,DQ:z,instreamAdPlayerOverlayRenderer:W,playerOverlayLayoutRenderer:b, instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:w,videoLengthSeconds:q,I8:c,inPlayerLayoutId:E(B.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:E(B.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; mxz=function(B,z){return KjB(B,z)}; n$Y=function(B,z){z=KjB(B,z);if(!z)return null;var T;z.I8=(T=E(B.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:T.adBreakRemainingLengthSeconds;return z}; KjB=function(B,z){var T,R=(T=E(B.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:T.current;if(!R)return null;T=hwH(B,z);return{vl:RwB(B,z),adPlacementConfig:E(B.clientMetadata,"metadata_type_ad_placement_config"),UB:T,contentCpn:E(B.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:E(B.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:E(B.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:E(B.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,I8:void 0,bq:R,W_:B.layoutId,videoLengthSeconds:E(B.clientMetadata,"metadata_type_video_length_seconds")}}; g3=function(B,z,T,R,h,W,b,l,w){g.K.call(this);this.W=B;this.X=z;this.V=T;this.Y=R;this.T=h;this.U=W;this.d3=b;this.Qu=l;this.yu=w;this.v4=!0}; u6B=function(B,z,T){return JDl(B.T.get(),z.contentCpn,z.W_,function(R){return pR5(B.U.get(),R.slotId,T,z.adPlacementConfig,z.W_,Ca(B.d3.get(),R))})}; JN=function(B,z,T,R,h,W,b,l){g.K.call(this);this.U=B;this.T=z;this.Y=T;this.Qu=R;this.W=h;this.yu=W;this.DJ=b;this.RI=l}; p6=function(B){g.K.call(this);this.T=B}; ox=function(B,z,T,R){B.T().ZR(z,R);T=T();B=B.T();B.Ix.lx("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",z,R,T);z=g.d(T);for(T=z.next();!T.done;T=z.next())a:{R=B;T=T.value;R.Ix.QG("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",T);R.Ix.QG("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",T);try{var h=R.T;if(g.Fy(T.slotId))throw new e("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(U$(h,T))throw new e("Duplicate registration for slot.",{slotId:T.slotId,slotEntryTriggerType:T.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!h.rE.mS.has(T.slotType))throw new e("No fulfillment adapter factory registered for slot of type: "+T.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!h.rE.Ur.has(T.slotType))throw new e("No SlotAdapterFactory registered for slot of type: "+T.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");un(h,"TRIGGER_CATEGORY_SLOT_ENTRY",T.slotEntryTrigger?[T.slotEntryTrigger]:[]);un(h,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", T.slotFulfillmentTriggers);un(h,"TRIGGER_CATEGORY_SLOT_EXPIRATION",T.slotExpirationTriggers);var W=R.T,b=T.slotType+"_"+T.slotPhysicalPosition,l=D$(W,b);if(U$(W,T))throw new e("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(T.slotId,new ecz(T));W.T.set(b,l)}catch(TP){TP instanceof e&&TP.Fe?(R.Ix.Xw("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",TP.Fe,T),Fo(TP,T,void 0,void 0,TP.Ti)):(R.Ix.Xw("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", T),Fo(TP,T));break a}U$(R.T,T).X=!0;try{var w=R.T,q=U$(w,T),c=T.slotEntryTrigger,L=w.rE.Xo.get(c.triggerType);L&&(L.Nj("TRIGGER_CATEGORY_SLOT_ENTRY",c,T,null),q.WD.set(c.triggerId,L));for(var C=g.d(T.slotFulfillmentTriggers),r=C.next();!r.done;r=C.next()){var F=r.value,A=w.rE.Xo.get(F.triggerType);A&&(A.Nj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",F,T,null),q.TZ.set(F.triggerId,A))}for(var a=g.d(T.slotExpirationTriggers),V=a.next();!V.done;V=a.next()){var M=V.value,x=w.rE.Xo.get(M.triggerType);x&&(x.Nj("TRIGGER_CATEGORY_SLOT_EXPIRATION", M,T,null),q.N.set(M.triggerId,x))}var v=w.rE.mS.get(T.slotType).get().build(w.Y,T);q.L=v;var n=w.rE.Ur.get(T.slotType).get().build(w.V,T);n.init();q.U=n}catch(TP){TP instanceof e&&TP.Fe?(R.Ix.Xw("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",TP.Fe,T),Fo(TP,T,void 0,void 0,TP.Ti)):(R.Ix.Xw("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",T),Fo(TP,T));dk(R,T,!0);break a}R.Ix.QG("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",T);R.T.Kx(T);for(var Z=g.d(R.U),N=Z.next();!N.done;N= Z.next())N.value.Kx(T);Q9(R,T)}}; $m=function(B,z,T,R,h){g.K.call(this);var W=this;this.U=B;this.Y=z;this.Pc=T;this.context=h;this.T=new Map;R.get().addListener(this);this.addOnDisposeCallback(function(){R.xd()||R.get().removeListener(W)})}; KsP=function(B,z){var T=0x8000000000000;var R=0;for(var h=g.d(z.slotFulfillmentTriggers),W=h.next();!W.done;W=h.next())W=W.value,W instanceof m6?(T=Math.min(T,W.T.start),R=Math.max(R,W.T.end)):Fo("Found unexpected fulfillment trigger for throttled slot.",z,null,{fulfillmentTrigger:W});R=new QN(T,R);T="throttledadcuerange:"+z.slotId;B.T.set(T,z);B.Pc.get().addCueRange(T,R.start,R.end,!1,B);M_(B.context.Qu.get())&&(z=R.start,R=R.end,h={},B.context.Au.wF("tcrr",(h.cid=T,h.sm=z,h.em=R,h)))}; PE=function(){g.K.apply(this,arguments);this.v4=!0;this.Qe=new Map;this.T=new Map}; xm=function(B,z){B=g.d(B.Qe.values());for(var T=B.next();!T.done;T=B.next())if(T.value.layoutId===z)return!0;return!1}; vE=function(B,z){B=g.d(B.T.values());for(var T=B.next();!T.done;T=B.next()){T=g.d(T.value);for(var R=T.next();!R.done;R=T.next())if(R=R.value,R.layoutId===z)return R}Fo("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Fy(z)),layoutId:z})}; HOX=function(){this.T=new Map}; f8z=function(B,z){this.callback=B;this.slot=z}; DS=function(){}; OO5=function(B,z,T){this.callback=B;this.slot=z;this.DJ=T}; NHz=function(B,z,T){this.callback=B;this.slot=z;this.DJ=T;this.U=!1;this.T=0}; t3z=function(B,z,T){this.callback=B;this.slot=z;this.DJ=T}; km=function(B){this.DJ=B}; K6=function(B){g.K.call(this);this.Ne=B;this.lK=new Map}; mI=function(B,z){for(var T=[],R=g.d(B.lK.values()),h=R.next();!h.done;h=R.next()){h=h.value;var W=h.trigger;W instanceof SZ&&W.triggeringLayoutId===z&&T.push(h)}T.length?P8(B.Ne(),T):Fo("Survey is submitted but no registered triggers can be activated.")}; n6=function(B,z,T){K6.call(this,B);var R=this;this.Qu=T;z.get().addListener(this);this.addOnDisposeCallback(function(){z.xd()||z.get().removeListener(R)})}; uD=function(B){g.K.call(this);this.T=B;this.v4=!0;this.lK=new Map;this.V=new Set;this.Y=new Set;this.W=new Set;this.X=new Set;this.U=new Set}; HE=function(B){g.K.call(this);this.T=B;this.lK=new Map}; f6=function(B,z){for(var T=[],R=g.d(B.lK.values()),h=R.next();!h.done;h=R.next())h=h.value,h.trigger.T===z.layoutId&&T.push(h);T.length&&P8(B.T(),T)}; Ou=function(B,z,T){g.K.call(this);var R=this;this.T=B;this.context=T;this.lK=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.xd()||z.get().removeListener(R)})}; NL=function(B,z,T,R,h){g.K.call(this);var W=this;this.U=B;this.Pc=z;this.DJ=T;this.yu=R;this.context=h;this.v4=!0;this.lK=new Map;this.T=new Set;T.get().addListener(this);this.addOnDisposeCallback(function(){T.xd()||T.get().removeListener(W)})}; jJb=function(B,z,T,R,h,W,b,l,w,q){if(de(B.yu.get(),1).clientPlaybackNonce!==w)throw new e("Cannot register CueRange-based trigger for different content CPN",{trigger:T});B.lK.set(T.triggerId,{C3:new zC(z,T,R,h),cueRangeId:W});B.Pc.get().addCueRange(W,b,l,q,B);M_(B.context.Qu.get())&&(w={},B.context.Au.wF("crr",(w.ca=z,w.tt=T.triggerType,w.st=R.slotType,w.lt=h==null?void 0:h.layoutType,w.cid=W,w.sm=b,w.em=l,w)))}; XVz=function(B,z){B=g.d(B.lK.entries());for(var T=B.next();!T.done;T=B.next()){var R=g.d(T.value);T=R.next().value;R=R.next().value;if(z===R.cueRangeId)return T}return""}; tN=function(B,z){g.K.call(this);var T=this;this.W=B;this.U=new Map;this.Y=new Map;this.T=null;z.get().addListener(this);this.addOnDisposeCallback(function(){z.xd()||z.get().removeListener(T)}); var R;this.T=((R=z.get().zi)==null?void 0:R.slotId)||null}; ZOz=function(B,z){var T=[];B=g.d(B.values());for(var R=B.next();!R.done;R=B.next())R=R.value,R.slot.slotId===z&&T.push(R);return T}; jq=function(B){g.K.call(this);this.T=B;this.v4=!0;this.lK=new Map}; ZZ=function(B,z,T){z=z.layoutId;for(var R=[],h=g.d(B.lK.values()),W=h.next();!W.done;W=h.next())if(W=W.value,W.trigger instanceof f$){var b;if(b=W.trigger.layoutId===z){b=T;var l=fbH.get(W.category);b=l?l===b:!1}b&&R.push(W)}R.length&&P8(B.T(),R)}; Xr=function(B){g.K.call(this);this.T=B;this.v4=!0;this.lK=new Map}; ZS=function(B,z,T,R,h){g.K.call(this);var W=this;this.W=B;this.s2=z;this.DJ=T;this.PD=R;this.T=null;this.v4=!0;this.lK=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.xd()||z.get().removeListener(W)}); h.get().addListener(this);this.addOnDisposeCallback(function(){h.xd()||h.get().removeListener(W)})}; sJK=function(B){B.T&&(B.U&&(B.U.stop(),B.U.start()),eez(B,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; eez=function(B,z){for(var T=[],R=g.d(B.lK.values()),h=R.next();!h.done;h=R.next())h=h.value,h.trigger.triggerType===z&&T.push(h);T.length>0&&P8(B.W(),T)}; eq=function(B,z,T,R,h){for(var W=[],b=g.d(B.lK.values()),l=b.next();!l.done;l=b.next()){var w=l=l.value,q=w.trigger;w=w.slot;if(q.triggerType===z){if(q instanceof Dm||q instanceof kY||q instanceof n$){if(h&&q.breakDurationMs!==T)continue;if(!h&&q.breakDurationMs===T)continue;if(R.has(w.slotId))continue}W.push(l)}}W.length>0&&P8(B.W(),W)}; E$Y=function(B,z){z=(z.Dc+1)*1E3;var T=void 0;B=g.d(B.lK.values());for(var R=B.next();!R.done;R=B.next()){var h=R.value;R=h.trigger;h=h.slot;R instanceof Dm&&R.breakDurationMs<=z&&(!T||R.breakDurationMs>T.trigger.breakDurationMs)&&(T={slot:h,trigger:R})}return T}; SPY=function(B){B=B.adPlacementRenderer.config.adPlacementConfig;if(!B.prefetchModeConfig||!B.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;B=Number(B.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(B)||B<=0?0:Math.floor(Math.random()*B)}; BkH=function(B){B=B.adPlacementRenderer.config.adPlacementConfig;if(B.prefetchModeConfig&&B.prefetchModeConfig.cacheFetchRefreshDurationMs&&(B=Number(B.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(B)||B<=0)))return B}; Eu=function(B){B.T=null;B.lK.clear();B.U&&B.U.stop();B.Y&&B.Y.stop()}; Sq=function(B){g.K.call(this);this.Y=B;this.v4=!0;this.lK=new Map;this.T=new Map;this.U=new Map}; zIB=function(B,z){var T=[];if(z=B.T.get(z.layoutId)){z=g.d(z);for(var R=z.next();!R.done;R=z.next())(R=B.U.get(R.value.triggerId))&&T.push(R)}return T}; BM=function(B){g.K.call(this);this.T=B;this.lK=new Map}; TkH=function(B,z){for(var T=[],R=g.d(B.lK.values()),h=R.next();!h.done;h=R.next())h=h.value,h.trigger instanceof V7&&h.trigger.slotId===z&&T.push(h);T.length>=1&&P8(B.T(),T)}; RIY=function(B,z){var T={slotId:Fs(z,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],mJ:"surface",clientMetadata:new Yo([])},R=Object,h=R.assign;z=E$(z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",T.slotId);z={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ta:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"surface", clientMetadata:new Yo([]),qS:kHX(!1,T.slotId,T.slotType,T.slotPhysicalPosition,T.mJ,T.slotEntryTrigger,T.slotFulfillmentTriggers,T.slotExpirationTriggers,z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return h.call(R,{},B,{M0:!0,slot:T,layout:z})}; flz=function(B,z,T,R){var h=B.kind;R=R?!1:!B.hideCueRangeMarker;switch(h){case "AD_PLACEMENT_KIND_START":return R={Tc:new QN(-0x8000000000000,-0x8000000000000),x7:R},T!=null&&(R.EG=new QN(-0x8000000000000,-0x8000000000000)),R;case "AD_PLACEMENT_KIND_END":return R={Tc:new QN(0x7ffffffffffff,0x8000000000000),x7:R},T!=null&&(R.EG=new QN(Math.max(0,z-T),0x8000000000000)),R;case "AD_PLACEMENT_KIND_MILLISECONDS":h=B.adTimeOffset;h.offsetStartMilliseconds||Fo("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); h.offsetEndMilliseconds||Fo("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");B=Number(h.offsetStartMilliseconds);h=Number(h.offsetEndMilliseconds);h===-1&&(h=z);if(Number.isNaN(B)||Number.isNaN(h)||B>h)return new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:B,offsetEndMs:h},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",h===z&&B-500<=h);R={Tc:new QN(B,h),x7:R};if(T!=null){B=Math.max(0,B-T);if(B===h)return R;R.EG=new QN(B,h)}return R; default:return new e("AdPlacementKind not supported in convertToRange.",{kind:h,adPlacementConfig:B})}}; DxB=function(B){var z=B.startSecs*1E3;return new QN(z,z+B.Dc*1E3)}; hId=function(B){if(!B||!B.adPlacements&&!B.adSlots)return!1;for(var z=g.d(B.adPlacements||[]),T=z.next();!T.done;T=z.next())if(T=T.value)if(T=T.adPlacementRenderer,T!=null&&(T.config&&T.config.adPlacementConfig&&T.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;B=g.d(B.adSlots||[]);for(z=B.next();!z.done;z=B.next()){var R=T=void 0;if(((T=g.u(z.value,HI))==null?void 0:(R=T.adSlotMetadata)==null?void 0:R.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; zc=function(B){this.Qu=B;this.U=new Map;this.T=new Map;this.Y=new Map}; Fs=function(B,z){if(Tc(B.Qu.get())){var T=B.U.get(z)||0;T++;B.U.set(z,T);return z+"_"+T}return g.V6(16)}; E$=function(B,z,T){if(Tc(B.Qu.get())){var R=B.T.get(z)||0;R++;B.T.set(z,R);return T+"_"+z+"_"+R}return g.V6(16)}; iD=function(B,z){if(Tc(B.Qu.get())){var T=B.Y.get(z)||0;T++;B.Y.set(z,T);return z+"_"+T}return g.V6(16)}; WVX=function(B){var z=[new IJ(B.W_),new aJ(B.bq),new BV(B.adPlacementConfig),new yR(B.videoLengthSeconds),new fO(B.I8)];B.instreamAdPlayerOverlayRenderer&&z.push(new Y$(B.instreamAdPlayerOverlayRenderer));B.playerOverlayLayoutRenderer&&z.push(new ll(B.playerOverlayLayoutRenderer));B.DQ&&z.push(new hy(B.DQ));return z}; baB=function(B,z,T,R,h,W){B=T.inPlayerLayoutId?T.inPlayerLayoutId:E$(W,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",B);var b,l,w=T.instreamAdPlayerOverlayRenderer?(b=T.instreamAdPlayerOverlayRenderer)==null?void 0:b.adLayoutLoggingData:(l=T.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;b={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",mJ:z};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ta:new Map,layoutExitNormalTriggers:[new xY(function(q){return iD(W, q)},T.W_)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:z,clientMetadata:R,qS:h(b),adLayoutLoggingData:w}}; RL=function(B,z){var T=this;this.U=B;this.Qu=z;this.T=function(R){return iD(T.U.get(),R)}}; pR5=function(B,z,T,R,h,W){T=new Yo([new wH(T),new BV(R)]);z=E$(B.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",z);R={layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",mJ:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ta:new Map,layoutExitNormalTriggers:[new xY(function(b){return iD(B.U.get(),b)},h)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:T,qS:W(R),adLayoutLoggingData:void 0}}; Ro=function(B,z,T,R,h){var W=WVX(R);return baB(z,T,R,new Yo(W),h,B.U.get())}; Y$z=function(B,z,T,R,h){var W=WVX(R);W.push(new EZ(R.vl));W.push(new Sr(R.UB));return baB(z,T,R,new Yo(W),h,B.U.get())}; ao=function(B,z,T,R,h,W,b,l,w,q){z=E$(B.U.get(),T,z);var c={layoutId:z,layoutType:T,mJ:"core"},L=new Map;b&&L.set("impression",b);b=[new ui(B.T,h,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];q&&b.push(new PT(B.T,q,["normal"]));return{layoutId:z,layoutType:T,Ta:L,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([R,new BV(W),new IJ(h)]),qS:l(c),adLayoutLoggingData:w}}; Uu=function(B,z,T,R,h,W,b,l,w){z=E$(B.U.get(),T,z);var q={layoutId:z,layoutType:T,mJ:"core"},c=[new ui(B.T,h,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&c.push(new PT(B.T,w,["normal"]));return{layoutId:z,layoutType:T,Ta:new Map,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([R,new BV(W),new IJ(h)]),qS:b(q),adLayoutLoggingData:l}}; L6=function(B,z,T){var R=[];R.push(new HT(B.T,T));z&&R.push(z);return R}; cE=function(B,z,T,R,h,W,b){var l={layoutId:z,layoutType:T,mJ:"core"};return{layoutId:z,layoutType:T,Ta:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[new gf(B.T,z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([new Xl(R),new BV(h)]),qS:W(l),adLayoutLoggingData:R.adLayoutLoggingData}}; Sf=function(B,z,T,R,h,W,b,l){var w={layoutId:z,layoutType:W,mJ:"core"};return{layoutId:z,layoutType:W,Ta:new Map,layoutExitNormalTriggers:[new xY(B.T,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([new BV(R)].concat(g.Q(b))),qS:h(w),adLayoutLoggingData:l}}; r3=function(B,z,T,R){if(B.Qu.get().Rp(z.kind==="AD_PLACEMENT_KIND_START"))if(T===void 0)Fo("Expected SSAP layout ID in renderer",void 0,void 0,{caller:R});else return T}; qPB=function(B,z,T,R,h,W,b,l,w,q,c,L,C){B=C6(B,z,T,h,W,b,l,w,L,r3(B,T,R.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),C);z=B.XL;T=new GQ(B.rQ);R=B.layoutExitSkipTriggers;q>0&&(z.push(T),z.push(new RJ(q)),R=[]);z.push(new TQ(c));return{P4:{layoutId:B.layoutId,layoutType:B.layoutType,Ta:B.Ta,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:B.mJ,clientMetadata:new Yo(z),qS:B.qS,adLayoutLoggingData:B.adLayoutLoggingData}, rI:R,VG:B.layoutExitMuteTriggers,nw:B.layoutExitUserInputSubmittedTriggers,Dg:B.qW,J$:B.J$}}; Clz=function(B,z,T,R,h,W,b,l,w,q){z=C6(B,z,T,R,W,new Map,b,function(c){return l(c,w)},void 0,r3(B,T,h.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); B=new SZ(B.T,z.rQ);T=new GQ(z.rQ);q=new TQ(q);return{P4:{layoutId:z.layoutId,layoutType:z.layoutType,Ta:z.Ta,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:z.mJ,clientMetadata:new Yo([].concat(g.Q(z.XL),[T,q])),qS:z.qS,adLayoutLoggingData:z.adLayoutLoggingData},rI:z.layoutExitSkipTriggers,VG:z.layoutExitMuteTriggers,nw:[].concat(g.Q(z.layoutExitUserInputSubmittedTriggers),[B]),Dg:z.qW,J$:z.J$}}; C6=function(B,z,T,R,h,W,b,l,w,q,c){z=q!=null?q:E$(B.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",z);q={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",mJ:"adapter"};l=l(z);var L=E(l.clientMetadata,"metadata_type_fulfilled_layout");L||Fo("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var C=L?L.layoutId:"";T=[new BV(T),new OP(R),new j3(h)];L&&T.push(new dH(L.layoutType));c&&T.push(new x$(c));return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Ta:W,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new tH(B.T,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"adapter",XL:T,qS:b(q),adLayoutLoggingData:w,J$:l,rQ:C}}; yD5=function(B,z,T,R,h,W,b,l,w,q,c){B=l$l(B,z,"core",T,R,h,W,b,l,w,q,void 0,c);return{layoutId:B.layoutId,layoutType:B.layoutType,Ta:B.Ta,layoutExitNormalTriggers:B.layoutExitNormalTriggers,layoutExitSkipTriggers:B.layoutExitSkipTriggers,layoutExitMuteTriggers:B.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:B.layoutExitUserInputSubmittedTriggers,qW:B.qW,mJ:B.mJ,clientMetadata:new Yo(B.P1),qS:B.qS,adLayoutLoggingData:B.adLayoutLoggingData}}; V3z=function(B,z,T,R,h,W,b,l,w,q,c,L,C){z=l$l(B,z,"adapter",T,R,h,W,b,l,w,c,L,C);R=z.layoutExitSkipTriggers;h=z.P1;T.adPodSkipTarget&&T.adPodSkipTarget>0&&(h.push(q),h.push(new RJ(T.adPodSkipTarget)),R=[]);h.push(new TQ(l.adPodIndex));T.isCritical&&(R=[new PT(B.T,z.layoutId,["error"])].concat(g.Q(R)));return{P4:{layoutId:z.layoutId,layoutType:z.layoutType,Ta:z.Ta,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:z.mJ,clientMetadata:new Yo(h), qS:z.qS,adLayoutLoggingData:z.adLayoutLoggingData},rI:R,VG:z.layoutExitMuteTriggers,nw:z.layoutExitUserInputSubmittedTriggers,Dg:z.qW}}; l$l=function(B,z,T,R,h,W,b,l,w,q,c,L,C){var r={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",mJ:T};h=[new BV(h),new zQ(w),new WV(R.externalVideoId),new bl(l),new j3({impressionCommands:R.impressionCommands,abandonCommands:R.onAbandonCommands,completeCommands:R.completeCommands,progressCommands:R.adVideoProgressCommands}),new gH(W),new UP({current:null}),new yR(b)];(W=R.playerOverlay.instreamAdPlayerOverlayRenderer)&&h.push(new Y$(W));(b=R.playerOverlay.playerOverlayLayoutRenderer)&&h.push(new ll(b)); L&&h.push(new Jy(L));(L=R.playerUnderlay)&&h.push(new wH(L));l=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER");L=(L=W?W.elementId:b==null?void 0:b.layoutId)?L:E$(B.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);h.push(new GQ(L));h.push(new Ay(l));h.push(new x$(w.adPodIndex));R.adNextParams&&h.push(new tD(R.adNextParams));R.shrunkenPlayerBytesConfig&&h.push(new cV(R.shrunkenPlayerBytesConfig));R.clickthroughEndpoint&&h.push(new jr(R.clickthroughEndpoint));R.legacyInfoCardVastExtension&&h.push(new Nx(R.legacyInfoCardVastExtension)); R.sodarExtensionData&&h.push(new pO(R.sodarExtensionData));c&&h.push(new HV(c));h.push(new e3(Qk(R.pings)));w=yk(R.pings);if(C){a:{C=g.d(C);for(c=C.next();!c.done;c=C.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(W=g.u(c.fulfillmentContent.fulfilledLayout,$L))&&(W=g.u(W.renderingContent,JM))&&W.associatedPlayerBytesLayoutId===z){C=c;break a}C=void 0}C&&h.push(new qx(C))}return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",Ta:w,layoutExitNormalTriggers:[new f$(B.T,z)],layoutExitSkipTriggers:R.skipOffsetMilliseconds? [new tH(B.T,L)]:[],layoutExitMuteTriggers:[new tH(B.T,L)],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:T,P1:h,qS:q(r),adLayoutLoggingData:R.adLayoutLoggingData}}; FXr=function(B,z,T,R,h,W,b,l,w){R.every(function(c){return hS(c,[],["LAYOUT_TYPE_MEDIA"])})||Fo("Unexpect subLayout type for DAI composite layout"); z=E$(B.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z);var q={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",mJ:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ta:new Map,layoutExitNormalTriggers:[new vT(B.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qW:[],mJ:"core",clientMetadata:new Yo([new $$(T),new PV(l),new VR(R),new BV(h),new KO(W),new vV({}),new EP(w)]),qS:b(q)}}; cDH=function(B){return B!=null}; hT=function(B,z,T){var R=this;this.U=B;this.Y=z;this.Qu=T;this.T=function(h){return iD(R.U.get(),h)}}; v$K=function(B,z,T,R,h,W,b){if(!T.prefetchModeConfig)return new e("AdPlacementConfig for Live Prefetch is missing prefetch_config");T=T.prefetchModeConfig;R*=1E3;var l=[];if(!T.breakLengthMs)return new e("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var w=g.d(T.breakLengthMs),q=w.next();!q.done;q=w.next())if(q=q.value,Number(q)>0){var c=R+Number(T.startTimeOffsetMs),L=c+Number(T.cacheFetchSmearingDurationMs);q={Tc:new QN(L,L+Number(q)),x7:!1,EG:new QN(Math.floor(c+Math.random()* Number(T.cacheFetchSmearingDurationMs)),L),cueProcessedMs:R?R:c};c=[];c.push(new TO({}));L=[];L.push(new Nr(B.T));L.push(new hBB(B.T));b&&c.push(new vV({}));l.push(Os(B,z,h,q,W,c,L))}return l}; Os=function(B,z,T,R,h,W,b){W=W===void 0?[]:W;var l=Fs(B.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");b||(b=[],R.EG&&R.EG.start!==R.Tc.start&&b.push(new m6(B.T,T,new QN(R.EG.start,R.Tc.start),!1)),b.push(new m6(B.T,T,new QN(R.Tc.start,R.Tc.end),R.x7)));R={getAdBreakUrl:z.getAdBreakUrl,L0:R.Tc.start,ID:R.Tc.end,cueProcessedMs:R.cueProcessedMs};z=new eZ(B.T,l);W=[new nO(R)].concat(g.Q(W));return{slotId:l,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:b, slotExpirationTriggers:[new OU(B.T,T),new XT(B.T,l),new Zm(B.T,l)],mJ:"core",clientMetadata:new Yo(W),adSlotLoggingData:h}}; q$r=function(B,z,T){var R=[];T=g.d(T);for(var h=T.next();!h.done;h=T.next())R.push(w8z(B,z,h.value));return R}; w8z=function(B,z,T){return T.triggeringSlotId!=null&&T.triggeringSlotId===B?T.clone(z):T}; zZz=function(B,z,T,R,h){return iaX(B,z,T,R,h)}; iOz=function(B,z,T,R){var h=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER");return iaX(B,h,z,T,R)}; iaX=function(B,z,T,R,h){var W=new $Y(B.T,T),b=[new jZ(B.T,z)];B=[new XT(B.T,z),new OU(B.T,R)];return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(h({slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:B},T))]),adSlotLoggingData:void 0}}; QJH=function(B,z,T,R,h,W){var b=Fs(B.U.get(),"SLOT_TYPE_PLAYER_BYTES"),l=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER"),w=E$(B.U.get(),"LAYOUT_TYPE_SURVEY",l);R=WM(B,z,T,R);var q=[new jZ(B.T,b)];T=[new XT(B.T,b),new OU(B.T,T),new gf(B.T,w)];if(R instanceof e)return R;l=W({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:R,slotFulfillmentTriggers:q,slotExpirationTriggers:T},{slotId:l,layoutId:w});W=l.yif;l=l.Gu;return[{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Fr(B,z,b,R),slotFulfillmentTriggers:Io(B,z,b,q),slotExpirationTriggers:T,mJ:"core",clientMetadata:new Yo([new mj(W),new S3(Gj(z)),new zO({g$:B.g$(z)})]),adSlotLoggingData:h},l]}; Gj=function(B){return B.kind==="AD_PLACEMENT_KIND_START"}; gsB=function(B,z,T,R,h){h=h?h:Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER");T=new $Y(B.T,T);var W=[new jZ(B.T,h)];B=[new OU(B.T,z),new XT(B.T,h)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:W,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(R({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:T,slotFulfillmentTriggers:W,slotExpirationTriggers:B}))])}}; JDl=function(B,z,T,R){var h=Fs(B.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");T=new $Y(B.T,T);var W=[new jZ(B.T,h)];B=[new OU(B.T,z),new XT(B.T,h)];return{slotId:h,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:W,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(R({slotId:h,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:T,slotFulfillmentTriggers:W,slotExpirationTriggers:B}))])}}; dq5=function(B,z,T,R,h,W,b){var l=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER"),w=E$(B.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);R=cSr(B,R,W,b,w);if(R instanceof e)return R;b=[new jZ(B.T,l)];h=[new OU(B.T,W),new jZ(B.T,h),new EU(B.T,h)];T=Ca(T,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:R,slotFulfillmentTriggers:b,slotExpirationTriggers:h});B=B.Y.get();W={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",mJ:"core"};z={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Ta:new Map,layoutExitNormalTriggers:[new cAl(B.T,w,z.durationMs)],layoutExitSkipTriggers:[new CBB(B.T,w,z.durationMs)],qW:[new LsK(B.T,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],mJ:"core",clientMetadata:new Yo([new ty(z)]),qS:T(W)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:R,slotFulfillmentTriggers:b,slotExpirationTriggers:h,clientMetadata:new Yo([new mj(z)])}}; l85=function(B,z,T,R,h,W){z=WM(B,z,T,R);if(z instanceof e)return z;var b=z instanceof m6?new wNr(B.T,T,z.T):null;R=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER");var l=[new jZ(B.T,R)];B=[new OU(B.T,T),new XT(B.T,R)];W=W({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:z,slotFulfillmentTriggers:l,slotExpirationTriggers:B},b);return W instanceof bn?new e(W):{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:l,slotExpirationTriggers:B, mJ:"core",clientMetadata:new Yo([new mj(W)]),adSlotLoggingData:h}}; bOz=function(B,z,T,R){var h=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER"),W=new y7(B.T,z),b=[new sU(B.T,h)];B=[new OU(B.T,z),new XT(B.T,h)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(R({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:B}))]),adSlotLoggingData:T}}; YZz=function(B,z,T,R){var h=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER");T=new $Y(B.T,T);var W=[new jZ(B.T,h)],b=[new XT(B.T,h),new OU(B.T,z)];W={slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:T,slotFulfillmentTriggers:W,slotExpirationTriggers:b};return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:[new jZ(B.T,h)],slotExpirationTriggers:[new OU(B.T,z),new XT(B.T,h)],mJ:"core",clientMetadata:new Yo([new mj(R(W))])}}; hZX=function(B,z,T,R,h){var W=Fs(B.U.get(),"SLOT_TYPE_IN_PLAYER");T=new p$(B.T,R,T);R=[new jZ(B.T,W)];B=[new OU(B.T,z)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:R,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(h({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:T,slotFulfillmentTriggers:R,slotExpirationTriggers:B}))])}}; E8P=function(B,z,T,R,h,W){var b=Fs(B.U.get(),z);return by(B,b,z,new $Y(B.T,R),[new OU(B.T,T),new XT(B.T,b),new PT(B.T,R,["error"])],h,W)}; slr=function(B,z,T,R,h,W,b){var l=Fs(B.U.get(),z);return by(B,l,z,new PT(B.T,h,["normal"]),[new OU(B.T,T),new XT(B.T,l),new PT(B.T,R,["error"])],W,b)}; jl5=function(B,z,T,R,h){var W=Fs(B.U.get(),z);return by(B,W,z,new y7(B.T,T),[new OU(B.T,T),new XT(B.T,W)],R,h)}; THz=function(B,z,T,R,h){T=T?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var W=Fs(B.U.get(),T);z=new y7(B.T,z);var b=[new jZ(B.T,W)];B=[new XT(B.T,W)];return{slotId:W,slotType:T,slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:b,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(h({slotId:W,slotType:T,slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:z,slotFulfillmentTriggers:b,slotExpirationTriggers:B}))]),adSlotLoggingData:R}}; LXX=function(B,z,T,R){var h=Fs(B.U.get(),"SLOT_TYPE_PLAYER_BYTES"),W=new K$(B.T),b=[new sU(B.T,h)];B=[new OU(B.T,z)];return{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(R({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:W,slotFulfillmentTriggers:b,slotExpirationTriggers:B})),new vV({})]),adSlotLoggingData:T}}; Ayb=function(B,z){return PlP(B.Qu.get())?new PT(B.T,z,["normal","error","skipped"]):new PT(B.T,z,["normal"])}; MrB=function(B,z,T,R,h){z=Ayb(B,z);B=oo(B,z,T);h=h({slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,mJ:B.mJ});return h instanceof e?h:{Eu:Object.assign({},B,{clientMetadata:new Yo([new mj(h.layout)]),adSlotLoggingData:R}),xg:h.xg}}; VrB=function(B,z,T,R,h,W,b){T=a8r(B,z,T,R);if(T instanceof e)return T;b=b({slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers,mJ:T.mJ});if(b instanceof e)return b;R=[new S3(Gj(z)),new mj(b.layout),new zO({g$:B.g$(z)})];W&&R.push(new X6({}));return{Eu:{slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:Fr(B, z,T.slotId,T.slotEntryTrigger),slotFulfillmentTriggers:Io(B,z,T.slotId,T.slotFulfillmentTriggers),slotExpirationTriggers:T.slotExpirationTriggers,mJ:T.mJ,clientMetadata:new Yo(R),adSlotLoggingData:h},xg:b.xg}}; Fr=function(B,z,T,R){return B.Qu.get().Rp(Gj(z))?new V7(B.T,T):R}; Io=function(B,z,T,R){return B.Qu.get().Rp(Gj(z))?[new sU(B.T,T)]:R}; oo=function(B,z,T){var R=Fs(B.U.get(),"SLOT_TYPE_PLAYER_BYTES"),h=[new jZ(B.T,R)];B=[new XT(B.T,R),new OU(B.T,T)];return{slotId:R,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:h,slotExpirationTriggers:B,mJ:"core"}}; a8r=function(B,z,T,R){z=WM(B,z,T,R);return z instanceof e?z:oo(B,z,T)}; hez=function(B,z,T,R,h,W){var b=Fs(B.U.get(),"SLOT_TYPE_FORECASTING");z=WM(B,z,T,R);if(z instanceof e)return z;R=[new jZ(B.T,b)];B=[new XT(B.T,b),new OU(B.T,T)];return{slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:R,slotExpirationTriggers:B,mJ:"core",clientMetadata:new Yo([new mj(W({slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:z,slotFulfillmentTriggers:R,slotExpirationTriggers:B}))]),adSlotLoggingData:h}}; LVK=function(B,z,T,R,h){var W=!z.hideCueRangeMarker;switch(z.kind){case "AD_PLACEMENT_KIND_START":return new y7(B.T,T);case "AD_PLACEMENT_KIND_MILLISECONDS":return B=flz(z,R),B instanceof e?B:h(B.Tc,W);case "AD_PLACEMENT_KIND_END":return new JH(B.T,T,W);default:return new e("Cannot construct entry trigger",{kind:z.kind})}}; cSr=function(B,z,T,R,h){return LVK(B,z,T,R,function(W,b){return new llX(B.T,T,W,b,h)})}; WM=function(B,z,T,R){return LVK(B,z,T,R,function(h,W){return new m6(B.T,T,h,W)})}; by=function(B,z,T,R,h,W,b){B=[new sU(B.T,z)];return{slotId:z,slotType:T,slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:B,slotExpirationTriggers:h,mJ:"core",clientMetadata:new Yo([new mj(b({slotId:z,slotType:T,slotPhysicalPosition:1,mJ:"core",slotEntryTrigger:R,slotFulfillmentTriggers:B,slotExpirationTriggers:h}))]),adSlotLoggingData:W}}; ly=function(B,z){g.K.call(this);this.Qu=B;this.T=z;this.eventCount=0}; w8=function(B,z,T,R){ly.call(this,B,z);this.Qu=B;this.yu=T;this.context=R}; qh=function(){this.T=new Map}; iy=function(B){this.dR="pending";this.QC=[];this.F6=[];try{B(this.XU.bind(this),this.reject.bind(this))}catch(z){this.reject(z)}}; CnB=function(){var B,z;return{Ax:new iy(function(T,R){B=T;z=R}), resolve:B,reject:z}}; CX=function(B){return cM(B)?B:LX(B)?new iy(function(z,T){B.then(z,T)}):new iy(function(z){z(B)})}; r8=function(B){return new iy(function(z,T){T(B)})}; oL=function(B){try{return CX(B())}catch(z){return r8(z)}}; IL=function(B,z,T){var R=CnB(),h=R.Ax,W=R.resolve,b=R.reject;B.QC.push(function(l){if(z)try{var w=z(l);W(w)}catch(q){b(q)}else W(l)}); B.F6.push(function(l){if(T)try{var w=T(l);W(w)}catch(q){b(q)}else b(l)}); F7(B);return h}; Gc=function(B,z){return IL(B,void 0,z)}; rSK=function(B,z){IL(B,function(T){return IL(CX(z()),function(){return T})},function(T){return IL(CX(z()),function(){return r8(T)})})}; F7=function(B){if(B.dR==="fulfilled"){var z=B.QC;B.QC=[];B.F6=[];z=g.d(z);for(var T=z.next();!T.done;T=z.next())T=T.value,T(B.result)}else if(B.dR==="rejected")for(z=B.F6,B.QC=[],B.F6=[],z=g.d(z),T=z.next();!T.done;T=z.next())T=T.value,T(B.error)}; d8=function(B){return function(){return ood(B.apply(this,g.K5.apply(0,arguments)))}}; AT=function(B){return CX(B).wait()}; ood=function(B){return oL(function(){return aL(B,B.next())})}; aL=function(B,z){return z.done?CX(z.value):Gc(IL(z.value.Ax,function(T){return aL(B,B.next(T))}),function(T){return aL(B,B.throw(T))})}; UQ=function(B,z){if(B.length===0)return CX(NaN);var T=CnB(),R=T.Ax,h=T.resolve,W=B.length;B=g.d(B.entries());var b=B.next();for(T={};!b.done;T={aF:void 0},b=B.next()){var l=g.d(b.value);b=l.next().value;l=l.next().value;T.aF=b;rSK(l,function(w){return function(){R.dR==="pending"&&(FVl(z)&&z(w.aF)&&R.dR==="pending"?h(w.aF):(--W,W===0&&h(NaN)))}}(T))}return R}; Mh=function(B){return B.map(function(z){return CX(z)})}; Qw=function(B){var z=B.hours||0;var T=B.minutes||0,R=B.seconds||0;z=R+T*60+z*3600+(B.days||0)*86400+(B.weeks||0)*604800+(B.months||0)*2629800+(B.years||0)*31557600;z<=0?z={hours:0,minutes:0,seconds:0}:(B=z,z=Math.floor(B/3600),B%=3600,T=Math.floor(B/60),R=Math.floor(B%60),z={hours:z,minutes:T,seconds:R});var h=z.hours===void 0?0:z.hours;T=z.minutes===void 0?0:z.minutes;B=z.seconds===void 0?0:z.seconds;R=h>0;z=[];if(R){h=(new Intl.NumberFormat("en-u-nu-latn")).format(h);var W=["fr"],b="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); h="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(Vw)?h.replace(",","\u00a0"):W.includes(Vw)?h.replace(",","\u202f"):b.includes(Vw)?h.replace(",","."):h;z.push(h)}R=R===void 0?!1:R;T=(["af","be","lt"].includes(Vw)||R)&&T<10?I$H().format(T):(new Intl.NumberFormat("en-u-nu-latn")).format(T);z.push(T);T=I$H().format(B);z.push(T);T=":";"da fi id si sr sr-Latn".split(" ").includes(Vw)&&(T=".");return z.join(T)}; I$H=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; GOP=function(B,z){var T,R;B=((T=B.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=T.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(T=0;Tz;B=T}else B=!1;return B}; g.nX=function(B,z){return B.yW+"timedtext_video?ref=player&v="+z.videoId}; g.mCB=function(B){var z=this;this.videoData=B;B={};this.T=(B.c1a=function(){var T=[];if(g.KX.isInitialized()){var R="";z.videoData&&z.videoData.H_&&(R=z.videoData.H_+("&r1b="+z.videoData.clientPlaybackNonce));var h={};R=(h.atr_challenge=R,h);ZU("bg_v",void 0,"player_att");(R=KVz(R))?(ZU("bg_s",void 0,"player_att"),T.push("r1a="+R)):(ZU("bg_e",void 0,"player_att"),T.push("r1c=2"))}else ZU("bg_e",void 0,"player_att"),window.trayride||window.botguard?T.push("r1c=1"):T.push("r1c=4");T.push("r1d="+g.KX.getState()); return T.join("&")},B.c6a=function(T){return"r6a="+(Number(T.c)^Lv())},B.c6b=function(T){return"r6b="+(Number(T.c)^Number(g.ek("CATSTAT",0)))},B); this.videoData&&this.videoData.H_?this.I2=ho(this.videoData.H_):this.I2={}}; g.noX=function(B){if(B.videoData&&B.videoData.H_){for(var z=[B.videoData.H_],T=g.d(Object.keys(B.T)),R=T.next();!R.done;R=T.next())R=R.value,B.I2[R]&&B.T[R]&&(R=B.T[R](B.I2))&&z.push(R);return z.join("&")}return null}; g.uy=function(B,z){kOB(B,{Ici:g.rk(z.experiments,"bg_vm_reinit_threshold"),cspNonce:z.cspNonce,yW:z.yW||""})}; um5=function(){var B=XMLHttpRequest.prototype.fetch;return!!B&&B.length===3}; Had=function(B){B=B[Y[7]](Y[8]);HM[Y[24]](B,45);HM[Y[24]](B,57);HM[Y[24]](B,17);HM[Y[24]](B,53);HM[Y[48]](B,72);HM[Y[85]](B,1);HM[Y[48]](B,71);HM[Y[24]](B,50);return B[Y[14]](Y[8])}; Oa5=function(B){f$X=2592E3*(B||1)}; fX=function(B){B=B===void 0?f$X:B;if(B>0&&!(e0z()>(0,g.f)()-B*1E3))return 0;B=g.kK("yt-player-quality");if(typeof B==="string"){if(B=g.nW[B],B>0)return B}else if(B instanceof Object)return B.quality;return 0}; OQ=function(){var B=g.kK("yt-player-proxima-pref");return B==null?null:B}; NkB=function(){var B=g.kK("yt-player-quality");if(B instanceof Object&&B.quality&&B.previousQuality){if(B.quality>B.previousQuality)return 1;if(B.quality0&&z[0]?B.getAutoplayPolicy(z[0]):B.getAutoplayPolicy("mediaelement");if(EoB[T])return EoB[T]}}catch(R){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; sQ=function(B){return B.yn||B.o_||B.mutedAutoplay}; S$K=function(B,z){return sQ(B)?z!==1&&z!==2&&z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":B.r9?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; BZK=function(B,z,T){var R=z.K();B.thirdParty||(B.thirdParty={});R.ancestorOrigins&&(B.thirdParty.embeddedPlayerContext=Object.assign({},B.thirdParty.embeddedPlayerContext,{ancestorOrigins:R.ancestorOrigins}));R.D("embeds_enable_autoplay_and_visibility_signals")&&(R.Wp!=null&&(B.thirdParty.embeddedPlayerContext=Object.assign({},B.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(R.Wp)})),R.Bp&&(B.thirdParty.embeddedPlayerContext=Object.assign({},B.thirdParty.embeddedPlayerContext,{visibilityFractionSource:R.Bp})), B.thirdParty.embeddedPlayerContext=Object.assign({},B.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:eP(),autoplayIntended:sQ(z),autoplayStatus:S$K(z,T)}))}; RQl=function(B,z){Ey(B,2,z.JR,EQ,3);Ey(B,3,z.UD,zQB,3);e6(B,4,z.onesieUstreamerConfig);e6(B,9,z.fU);Ey(B,10,z.TC,SP,3);Ey(B,15,z.reloadPlaybackParams,TZz,3)}; WHB=function(B,z){Ey(B,1,z.formatId,BK,3);XE(B,2,z.startTimeMs);XE(B,3,z.durationMs);XE(B,4,z.w0);XE(B,5,z.bf);Ey(B,9,z.CZE,hQd,3);Ey(B,11,z.JbO,zu,1);Ey(B,12,z.TH,zu,1)}; b3Y=function(B,z){sy(B,1,z.videoId);XE(B,2,z.lmt)}; hQd=function(B,z){if(z.sj)for(var T=0;T>31));XE(B,16,z.ifK);XE(B,17,z.detailedNetworkType);XE(B,18,z.JV);XE(B,19,z.ZU);XE(B,21,z.GMf);XE(B,23,z.nP);XE(B,28,z.ji);XE(B,29,z.Aof);XE(B,34,z.visibility);T=z.playbackRate;if(T!==void 0){var R=new ArrayBuffer(4);(new Float32Array(R))[0]=T;T=(new Uint32Array(R))[0];if(T!==void 0)for(j6(B,285),tA(B,4),R=0;R<4;)B.view.setUint8(B.pos,T&255),T>>=8,B.pos+=1,R+=1}XE(B,36,z.FK); Ey(B,38,z.mediaCapabilities,wjY,3);XE(B,39,z.NDJ);XE(B,40,z.lj);XE(B,44,z.playerState);Zl(B,46,z.RA);XE(B,48,z.RS);XE(B,50,z.BT);XE(B,51,z.cI);XE(B,54,z.hU);if(z.R$)for(T=0;T>31));sy(B,2,z.message)}; IDK=function(B,z){XE(B,1,z.clientState);Ey(B,2,z.zUE,oQr,1)}; rgl=function(B,z){e6(B,1,z.i2E);Ey(B,2,z.vLJ,FHH,3);Ey(B,3,z.coldStartInfo,IDK,3)}; CuH=function(B,z){XE(B,1,z.type);e6(B,2,z.value)}; LHX=function(B,z){sy(B,1,z.hl);sy(B,12,z.deviceMake);sy(B,13,z.deviceModel);XE(B,16,z.clientName);sy(B,17,z.clientVersion);sy(B,18,z.osName);sy(B,19,z.osVersion)}; G8K=function(B,z){sy(B,1,z.name);sy(B,2,z.value)}; dnB=function(B,z){sy(B,1,z.url);if(z.ER)for(var T=0;T1&&(this.V=B[1]==="2")}; Yg=function(B,z,T,R,h){this.U=B;this.T=z;this.Y=T;this.reason=R;this.kd=h===void 0?0:h}; g.la=function(B,z,T,R){return new Yg(g.nW[B]||0,g.nW[z]||0,T,R)}; q$=function(B){if(w$&&B.kd)return!1;var z=g.nW.auto;return B.U===z&&B.T===z}; cK=function(B){return ia[B.T||B.U]||"auto"}; WfB=function(B,z){z=g.nW[z];return B.U<=z&&(!B.T||B.T>=z)}; LQ=function(B){return"["+B.U+"-"+B.T+", override: "+(B.Y+", reason: "+B.reason+"]")}; CQ=function(B,z,T){this.videoInfos=B;this.T=z;this.audioTracks=[];if(this.T){B=new Set;T==null||T({ainfolen:this.T.length});z=g.d(this.T);for(var R=z.next();!R.done;R=z.next())if(R=R.value,!R.HB||B.has(R.HB.id)){var h=void 0,W=void 0,b=void 0;(b=T)==null||b({atkerr:!!R.HB,itag:R.itag,xtag:R.T,lang:((h=R.HB)==null?void 0:h.name)||"",langid:((W=R.HB)==null?void 0:W.id)||""})}else h=new g.ba(R.id,R.HB),B.add(R.HB.id),this.audioTracks.push(h);T==null||T({atklen:this.audioTracks.length})}}; r$=function(){g.K.apply(this,arguments);this.T=null}; wGz=function(B,z,T,R,h,W,b){if(B.T)return B.T;var l={},w=new Set,q={};if(of(R)){for(var c in R.T)R.T.hasOwnProperty(c)&&(B=R.T[c],q[B.info.Ai]=[B.info]);return q}c=bWb(z,R,l);W&&h({aftsrt:FF(c)});for(var L={},C=g.d(Object.keys(c)),r=C.next();!r.done;r=C.next()){r=r.value;for(var F=g.d(c[r]),A=F.next();!A.done;A=F.next()){A=A.value;var a=A.itag,V=void 0,M=r+"_"+(((V=A.video)==null?void 0:V.fps)||0);L.hasOwnProperty(M)?L[M]===!0?q[r].push(A):l[a]=L[M]:(V=If(z,A,T,R.isLive,w),V!==!0?(b.add(r),l[a]=V, V==="disablevp9hfr"&&(L[M]="disablevp9hfr")):(q[r]=q[r]||[],q[r].push(A),L[M]=!0))}}W&&h({bfflt:FF(q)});for(var x in q)q.hasOwnProperty(x)&&(R=x,q[R]&&q[R][0].Mr()&&(q[R]=q[R],q[R]=YzB(z,q[R],l),q[R]=laB(q[R],l)));W&&Object.keys(l).length>0&&h({rjr:Q_(l)});z=g.d(w.values());for(R=z.next();!R.done;R=z.next())(R=T.W.get(R.value))&&--R.cG;W&&h({aftflt:FF(q)});B.T=g.H7(q,function(v){return!!v.length}); return B.T}; iWB=function(B,z,T,R,h,W,b,l){l=l===void 0?!1:l;if(z.LF&&b&&b.length>1&&!(z.FJ>0||z.J)){for(var w=z.U||!!h,q=w&&z.Sk?W:void 0,c=bWb(z,R),L=[],C=[],r={},F=0;F0&&C&&h&&(c=[b,T],a=h.concat(C).filter(function(V){return V})); if(a.length&&!z.LU){A1(a,c);if(w){w=[];z=g.d(a);for(R=z.next();!R.done;R=z.next())w.push(R.value.itag);W({hbdfmt:w.join(".")})}return vP(new CQ(a,B,q))}a=AiX(z);a=g.Cs(a,l);if(!a){if(L[b])return W=L[b],A1(W),vP(new CQ(W,B,q));w&&W({novideo:1});return xv()}z.C4&&(a==="1"||a==="1h")&&L[T]&&(b=af(L[a]),c=af(L[T]),c>b?a=T:c===b&&aad(L[T])&&(a=T));a==="9"&&L.h&&af(L.h)>af(L["9"])&&(a="h");z.aK&&R.isLive&&a==="("&&L.H&&af(L["("])<1440&&(a="H");w&&W({vfmly:U8(a)});z=L[a];if(!z.length)return w&&W({novfmly:U8(a)}), xv();A1(z);return vP(new CQ(z,B,q))}; Lfd=function(B,z){var T=!(!B.m&&!B.M),R=!(!B.mac3&&!B.MAC3),h=!(!B.meac3&&!B.MEAC3);B=!(!B.i&&!B.I);z.pF=B;return T||R||h||B}; aad=function(B){B=g.d(B);for(var z=B.next();!z.done;z=B.next())if(z=z.value,z.itag&&U_d.has(z.itag))return!0;return!1}; riP=function(B){B=g.d(B);for(var z=B.next();!z.done;z=B.next())if(z.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; U8=function(B){switch(B){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return B}}; FF=function(B){var z=[],T;for(T in B)if(B.hasOwnProperty(T)){var R=T;z.push(U8(R));R=g.d(B[R]);for(var h=R.next();!h.done;h=R.next())z.push(h.value.itag)}return z.join(".")}; cil=function(B,z,T,R,h,W){var b={},l={};g.uW(z,function(w,q){w=w.filter(function(c){var L=c.itag;if(!c.Ft)return l[L]="noenc",!1;if(W.O0&&c.Ai==="(h"&&W.EE)return l[L]="lichdr",!1;if(!B.V&&c.Ai==="1e")return l[L]="noav1enc",!1;if(c.Ai==="("||c.Ai==="(h"){if(B.Y&&T&&T.flavor==="widevine"){var C=c.mimeType+"; experimental=allowed";(C=!!c.Ft[T.flavor]&&!!T.T[C])||(l[L]=c.Ft[T.flavor]?"unspt":"noflv");return C}if(!M$(B,VP.CRYPTOBLOCKFORMAT)&&!B.XE||B.WD)return l[L]=B.WD?"disvp":"vpsub",!1}return T&&c.Ft[T.flavor]&& T.T[c.mimeType]?!0:(l[L]=T?c.Ft[T.flavor]?"unspt":"noflv":"nosys",!1)}); w.length&&(b[q]=w)}); R&&Object.entries(l).length&&h({rjr:Q_(l)});return b}; laB=function(B,z){var T=Sb(B,function(R,h){return h.video.fps>32?Math.min(R,h.video.width):R},Infinity); T32||R.video.widthB.X)return"max"+B.X;if(B.MG&&z.Ai==="h"&&z.video&&z.video.qualityOrdinal>1080)return"blkhigh264";if(z.Ai==="(h"&&!T.L)return"enchdr";if((R===void 0?0:R)&&sz(z)&&!B.zZ)return"blk51live";if((z.Ai==="MAC3"||z.Ai==="mac3")&&!B.W)return"blkac3";if((z.Ai==="MEAC3"||z.Ai==="meac3")&&!B.V)return"blkeac3";if(z.Ai==="M"||z.Ai==="m")return"blkaac51"; if((z.Ai==="so"||z.Ai==="sa")&&!B.TZ)return"blkamb";if(!B.O0&&yCK(z)&&(!T.V||z.Ai!=="1e"))return"cbc";if(!T.V&&yCK(z)&&z.Ai==="1e")return"cbcav1";if((z.Ai==="i"||z.Ai==="I")&&!B.Dm)return"blkiamf";var W;if(B.U0&&((W=z.audio)==null?void 0:W.U)===!0)return"blkvbcabr";var b,l;if(B.IK&&(z.Ai==="1"||z.Ai==="1h"||T.V&&z.Ai==="1e")&&((b=z.video)==null?0:b.qualityOrdinal)&&((l=z.video)==null?void 0:l.qualityOrdinal)>B.IK)return"av1cap";if((R=T.W.get(z.Ai))&&R.cG>0)return h.add(z.Ai),"byerr";var w;if((w=z.video)== null?0:w.fps>32){if(!T.RK&&!M$(T,VP.FRAMERATE))return"capHfr";if(B.sE&&z.video.qualityOrdinal>=4320)return"blk8khfr";if(ti(z)&&B.S6&&z.Ft&&z.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(B.kd&&z.kd>B.kd)return"ratecap";B=MR5(T,z);return B!==!0?B:!0}; A1=function(B,z){z=z===void 0?[]:z;g.xP(B,function(T,R){var h=R.kd-T.kd;if(!T.Mr()||!R.Mr())return h;var W=R.video.height*R.video.width-T.video.height*T.video.width;!W&&z&&z.length>0&&(T=z.indexOf(T.Ai)+1,R=z.indexOf(R.Ai)+1,W=T===0||R===0?R||-1:T-R);W||(W=h);return W})}; g.QP=function(B,z){this[Y[11]]=B;this[Y[5]]=z===void 0?!1:z;this[Y[27]]=this[Y[22]]=this[Y[1]]=Y[8];this[Y[17]]={};this[Y[32]]=Y[8]}; g$=function(B){yP(B);return B[Y[27]]}; J1=function(B){return B[Y[11]]?B[Y[11]][Y[4]](Y[43]):B[Y[1]]===Y[43]}; VRz=function(B){yP(B);return g.Op(B[Y[17]],function(z){return z!==null})}; pQ=function(B){yP(B);var z=decodeURIComponent(B[Y[10]](Y[49])||Y[8])[Y[7]](Y[79]);return B[Y[22]]===Y[57]&&z[Y[9]]>1&&!!z[1]}; $g=function(B,z){z=z===void 0?!1:z;yP(B);if(B[Y[22]]!==Y[57]){var T=B[Y[20]]();T[Y[19]](Y[81],Y[72]);return T}var R=B[Y[42]]();T=new g.hX(R);var h=B[Y[10]](Y[21]),W=decodeURIComponent(B[Y[10]](Y[49])||Y[8])[Y[7]](Y[79]);if(h&&W&&W[Y[9]]>1&&W[1])return R=T.T,B=R[Y[78]](/^[^.]*/,Y[8]),g.bb(T,(R[Y[18]](Y[13])===0?Y[13]:Y[67])+h+Y[54]+W[1]+B),T=new g.QP(T[Y[29]]()),T[Y[19]](Y[28],Y[72]),T;if(z)return T=B[Y[20]](),T[Y[19]](Y[28],Y[72]),T;h=T.T[Y[30]](Y[80]);T.T[Y[30]](Y[84])?(g.bb(T,Y[86]),R=T[Y[29]]()): T.T[Y[30]](Y[77])?(g.bb(T,Y[73]),R=T[Y[29]]()):(T=FcP(R),z8(T)&&(R=T));T=new g.QP(R);T[Y[19]](Y[82],Y[72]);h&&T[Y[19]](Y[71],Y[89]);return T}; yP=function(B){if(B[Y[11]]){if(!(z8(B[Y[11]])||B[Y[11]][Y[4]](Y[43])||B[Y[11]][Y[4]](Y[60])||B[Y[11]][Y[4]](Y[44])))throw new g.Z_(Y[25],B[Y[11]]);var z=g.Li(B[Y[11]]);B[Y[1]]=z.V;B[Y[27]]=z.T+(z.Y!=null?Y[63]+z.Y:Y[8]);var T=z.U;if(T[Y[4]](Y[57]))B[Y[22]]=Y[57],T=T[Y[3]](14);else if(T[Y[4]](Y[16]))B[Y[22]]=Y[16],T=T[Y[3]](13);else if(T[Y[4]](Y[15])){var R=T[Y[18]](Y[41],12),h=T[Y[18]](Y[41],R+1);R>0&&h>0?(B[Y[22]]=T[Y[3]](0,h),T=T[Y[3]](h+1)):(B[Y[22]]=T,T=Y[8])}else B[Y[22]]=T,T=Y[8];R=B[Y[17]]; B[Y[17]]=Quz(T);Object[Y[52]](B[Y[17]],yi5(z.W.toString()));Object[Y[52]](B[Y[17]],R);B[Y[17]][Y[26]]===Y[64]&&(delete B[Y[17]][Y[26]],B[Y[22]]+=Y[61]);B[Y[11]]=Y[8];B[Y[32]]=Y[8];B[Y[5]]&&(yP(B),z=B[Y[17]][Y[36]]||null)&&(z=gbl[0](z),B[Y[19]](Y[36],z))}}; Jib=function(B){yP(B);var z=B[Y[1]]+(B[Y[1]]?Y[62]:Y[68])+B[Y[27]]+B[Y[22]];if(VRz(B)){var T=[];g.uW(B[Y[17]],function(R,h){R!==null&&T[Y[2]](h+Y[12]+R)}); z+=Y[69]+T[Y[14]](Y[50])}return z}; Quz=function(B){B=B[Y[7]](Y[41]);var z=0;B[0]||z++;for(var T={};z0?pGz(z,R[Y[3]](0,h),R[Y[3]](h+1)):R&&(z[R]=Y[8])}return z}; pGz=function(B,z,T){if(z===Y[87]){var R;(R=T[Y[18]](Y[12]))>=0?(z=Y[37]+T[Y[3]](0,R),T=T[Y[3]](R+1)):(R=T[Y[18]](Y[74]))>=0&&(z=Y[37]+T[Y[3]](0,R),T=T[Y[3]](R+3))}B[z]=T}; PK=function(B){var z=g.u(B,$_Y)||B[Y[33]];B={Tx:!1,Nt:Y[8],ql:Y[8],s:Y[8]};if(!z)return B;z=ho(z);B[Y[40]]=!0;B[Y[66]]=z[Y[32]];B[Y[59]]=z[Y[23]];B[Y[31]]=z[Y[31]];return B}; xg=function(B,z,T,R,h,W,b,l,w){this.FE=B;this.startTime=z;this.duration=T;this.ingestionTime=R;this.sourceURL=h;this.g3=w;this.endTime=z+T;this.T=b||0;this.range=W||null;this.pending=l||!1;this.g3=w||null}; g.vK=function(){this.segments=[];this.T=null;this.U=!0;this.Y=""}; PFK=function(B,z){if(z>B.CF())B.segments=[];else{var T=Ls(B.segments,function(R){return R.FE>=z},B); T>0&&B.segments.splice(0,T)}}; Dx=function(B,z,T,R,h){h=h===void 0?!1:h;this.data=B;this.offset=z;this.size=T;this.type=R;this.T=(this.U=h)?0:8;this.dataOffset=this.offset+this.T}; kg=function(B){var z=B.data.getUint8(B.offset+B.T);B.T+=1;return z}; KQ=function(B){var z=B.data.getUint16(B.offset+B.T);B.T+=2;return z}; mm=function(B){var z=B.data.getInt32(B.offset+B.T);B.T+=4;return z}; nQ=function(B){var z=B.data.getUint32(B.offset+B.T);B.T+=4;return z}; ua=function(B){var z=B.data;var T=B.offset+B.T;z=z.getUint32(T)*4294967296+z.getUint32(T+4);B.T+=8;return z}; HK=function(B,z){z=z===void 0?NaN:z;if(isNaN(z))var T=B.size;else for(T=B.T;T1?Math.ceil(h*z):Math.floor(h*z))}B.skip(1);T=kg(B)<<16|KQ(B);if(T&256){R=T&1;h=T&4;var W=T&512,b=T&1024,l=T&2048;T=nQ(B);R&&B.skip(4);h&&B.skip(4);R=(W?4:0)+(b?4:0)+(l?4:0);for(h=0;h1?Math.ceil(b*z):Math.floor(b*z)),B.skip(R)}}}; s8=function(B){B=new DataView(B.buffer,B.byteOffset,B.byteLength);return(B=g.Zx(B,0,1836476516))?g.e8(B):NaN}; OW5=function(B){var z=g.Zx(B,0,1937011556);if(!z)return null;z=E8(B,z.dataOffset+8,1635148593)||E8(B,z.dataOffset+8,1635135537);if(!z)return null;var T=E8(B,z.dataOffset+78,1936995172),R=E8(B,z.dataOffset+78,1937126244);if(!R)return null;z=null;if(T)switch(T.skip(4),kg(T)){default:z=0;break;case 1:z=2;break;case 2:z=1;break;case 3:z=255}var h=T=null,W=null;if(R=E8(B,R.dataOffset,1886547818)){var b=E8(B,R.dataOffset,1886546020),l=E8(B,R.dataOffset,2037673328);if(!l&&(l=E8(B,R.dataOffset,1836279920), !l))return null;b&&(b.skip(4),T=mm(b)/65536,W=mm(b)/65536,h=mm(b)/65536);B=x_z(l);B=new DataView(B.buffer,B.byteOffset+8,B.byteLength-8);return new HW5(z,T,W,h,B)}return null}; E8=function(B,z,T){for(;S8(B,z);){var R=BL(B,z);if(R.type===T)return R;z+=R.size}return null}; g.Zx=function(B,z,T){for(;S8(B,z);){var R=BL(B,z);if(R.type===T)return R;z=ze(R.type)?z+8:z+R.size}return null}; g.Te=function(B){if(B.data.getUint8(B.dataOffset)){var z=B.data;B=B.dataOffset+4;z=z.getUint32(B)*4294967296+z.getUint32(B+4)}else z=B.data.getUint32(B.dataOffset+4);return z}; BL=function(B,z){var T=B.getUint32(z),R=B.getUint32(z+4);return new Dx(B,z,T,R)}; g.e8=function(B){var z=B.data.getUint8(B.dataOffset)?20:12;return B.data.getUint32(B.dataOffset+z)}; NtY=function(B){B=new Dx(B.data,B.offset,B.size,B.type,B.U);var z=kg(B);B.skip(7);var T=nQ(B);if(z===0){z=nQ(B);var R=nQ(B)}else z=ua(B),R=ua(B);B.skip(2);for(var h=KQ(B),W=[],b=[],l=0;l122)return!1}return!0}; ze=function(B){return B===1701082227||B===1836019558||B===1836019574||B===1835297121||B===1835626086||B===1937007212||B===1953653094||B===1953653099||B===1836475768}; tRP=function(B){B.skip(4);return{wdJ:HK(B,0),value:HK(B,0),timescale:nQ(B),u2D:nQ(B),lyd:nQ(B),id:nQ(B),PX:HK(B),offset:B.offset}}; g.juB=function(B){var z=E8(B,0,1701671783);if(!z)return null;var T=tRP(z),R=T.wdJ;T=XF(T.PX);if(B=E8(B,z.offset+z.size,1701671783))if(B=tRP(B),B=XF(B.PX),T&&B){z=g.d(Object.keys(B));for(var h=z.next();!h.done;h=z.next())h=h.value,T[h]=B[h]}return T?new t1(T,R):null}; RE=function(B,z){for(var T=E8(B,0,z);T;){var R=T;R.type=1936419184;R.data.setUint32(R.offset+4,1936419184);T=E8(B,T.offset+T.size,z)}}; g.h8=function(B,z){for(var T=0,R=[];S8(B,T);){var h=BL(B,T);h.type===z&&R.push(h);T=ze(h.type)?T+8:T+h.size}return R}; XGl=function(B,z){var T=g.Zx(B,0,1937011556),R=g.Zx(B,0,1953654136);if(!T||!R||B.getUint32(T.offset+12)>=2)return null;var h=new DataView(z.buffer,z.byteOffset,z.length),W=g.Zx(h,0,1937011556);if(!W)return null;z=h.getUint32(W.dataOffset+8);R=h.getUint32(W.dataOffset+12);if(R!==1701733217&&R!==1701733238)return null;R=new vbK(B.byteLength+z);fQ(R,B,0,T.offset+12);R.data.setInt32(R.offset,2);R.offset+=4;fQ(R,B,T.offset+16,T.size-16);fQ(R,h,h.byteOffset+W.dataOffset+8,z);fQ(R,B,T.offset+T.size,B.byteLength- (T.offset+T.size));T=g.d([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(h=T.next();!h.done;h=T.next())h=g.Zx(B,0,h.value),R.data.setUint32(h.offset,h.size+z);B=g.Zx(R.data,0,1953654136);R.data.setUint32(B.offset+16,2);return R.data}; ZWB=function(B){var z=g.Zx(B,0,1937011556);if(!z)return null;var T=B.getUint32(z.dataOffset+12);if(T!==1701733217&&T!==1701733238)return null;z=E8(B,z.offset+24+(T===1701733217?28:78),1936289382);if(!z)return null;T=E8(B,z.offset+8,1935894637);if(!T||B.getUint32(T.offset+12)!==1667392371)return null;z=E8(B,z.offset+8,1935894633);if(!z)return null;z=E8(B,z.offset+8,1952804451);if(!z)return null;T=new Uint8Array(16);for(var R=0;R<16;R++)T[R]=B.getInt8(z.offset+16+R);return T}; WL=function(B,z){this.T=B;this.pos=0;this.start=z||0}; bK=function(B){return B.pos>=B.T.byteLength}; iK=function(B,z,T){var R=new WL(T);if(!YH(R,B))return!1;R=lK(R);if(!wc(R,z))return!1;for(B=0;z;)z>>>=8,B++;z=R.start+R.pos;var h=qU(R,!0);R=B+(R.start+R.pos-z)+h;R=R>9?egz(R-9,8):egz(R-2,1);B=z-B;T.setUint8(B++,236);for(z=0;zT;h++)T=T*256+oE(B),R*=128;return z?T-R:T}; Lm=function(B){var z=qU(B,!0);B.pos+=z}; SzY=function(B){if(!wc(B,440786851,!0))return null;var z=B.pos;qU(B,!1);var T=qU(B,!0)+B.pos-z;B.pos=z+T;if(!wc(B,408125543,!1))return null;qU(B,!0);if(!wc(B,357149030,!0))return null;var R=B.pos;qU(B,!1);var h=qU(B,!0)+B.pos-R;B.pos=R+h;if(!wc(B,374648427,!0))return null;var W=B.pos;qU(B,!1);var b=qU(B,!0)+B.pos-W,l=new Uint8Array(T+12+h+b),w=new DataView(l.buffer);l.set(new Uint8Array(B.T.buffer,B.T.byteOffset+z,T));w.setUint32(T,408125543);w.setUint32(T+4,33554431);w.setUint32(T+8,4294967295); l.set(new Uint8Array(B.T.buffer,B.T.byteOffset+R,h),T+12);l.set(new Uint8Array(B.T.buffer,B.T.byteOffset+W,b),T+12+h);return l}; FU=function(B){var z=B.pos;B.pos=0;var T=1E6;YH(B,[408125543,357149030,2807729])&&(T=cL(B));B.pos=z;return T}; BNP=function(B,z){var T=B.pos;B.pos=0;if(B.T.getUint8(B.pos)!==160&&!IE(B)||!wc(B,160))return B.pos=T,NaN;qU(B,!0);var R=B.pos;if(!wc(B,161))return B.pos=T,NaN;qU(B,!0);oE(B);var h=oE(B)<<8|oE(B);B.pos=R;if(!wc(B,155))return B.pos=T,NaN;R=cL(B);B.pos=T;return(h+R)*z/1E9}; IE=function(B){if(!z8r(B)||!wc(B,524531317))return!1;qU(B,!0);return!0}; z8r=function(B){if(B.VE()){if(!wc(B,408125543))return!1;qU(B,!0)}return!0}; YH=function(B,z){for(var T=0;T0){var R=yi5(z.substring(T+1));g.uW(R,function(h,W){this.set(W,h)},B); z=z.substring(0,T)}z=Quz(z);g.uW(z,function(h,W){this.set(W,h)},B)}; R8z=function(B){var z=B.oQ.Pu(),T=[];g.uW(B.T,function(h,W){T.push(W+"="+h)}); if(!T.length)return z;var R=T.join("&");B=VRz(B.oQ)?"&":"?";return z+B+R}; dc=function(B,z){var T=new g.QP(z);(z=T.get("req_id"))&&B.set("req_id",z);g.uW(B.T,function(R,h){T["set"](h,null)}); return T}; h8Y=function(){this.W=this.Y=this.T=this.timedOut=this.started=this.V=this.U=0}; A8=function(B){B.V=(0,g.f)();B.started=0;B.timedOut=0;B.T=0}; aE=function(B,z){var T=B.started+B.T*4;z&&(T+=B.Y);T=Math.max(0,T-3);return Math.pow(1.6,T)}; UG=function(B,z){B[z]||(B[z]=new h8Y);return B[z]}; MU=function(B){this.N=this.L=this.V=this.Y=0;this.J=this.X=!1;this.T=B;this.U=B.clone()}; W8X=function(B,z,T){if(J1(B.T))return!1;var R=UG(T,g$(B.T));if(R.timedOut<1&&R.T<1)return!1;R=R.timedOut+R.T;B=VE(B,z);T=UG(T,g$(B));return T.timedOut+T.T+01?z=z.ge:(T=UG(T,yE(B,B.T5(z,T),z)),z=Math.max(B.V,T.timedOut)+z.MH*(B.Y-B.V)+.25*B.L,z=z>3?1E3*Math.pow(1.6,z-3):0);return z===0?!0:B.N+z<(0,g.f)()}; b7B=function(B,z,T){B.T.set(z,T);B.U.set(z,T);B.W&&B.W.set(z,T)}; YIz=function(B,z,T,R,h){++B.Y;z&&++B.V;g$(T.oQ).startsWith("redirector.")&&(B.T=B.U.clone(),delete B.W,R.Jr&&delete h[g$(B.T)])}; pm=function(B){return B?(B.itag||"")+";"+(B.lmt||0)+";"+(B.xtags||""):""}; $H=function(B,z,T,R){this.initRange=T;this.indexRange=R;this.T=null;this.Y=!1;this.X=0;this.W=this.jS=this.U=null;this.info=z;this.Rx=new MU(B)}; PL=function(B,z){this.start=B;this.end=z;this.length=z-B+1}; xH=function(B){B=B.split("-");var z=Number(B[0]),T=Number(B[1]);if(!isNaN(z)&&!isNaN(T)&&B.length===2&&(B=new PL(z,T),!isNaN(B.start)&&!isNaN(B.end)&&!isNaN(B.length)&&B.length>0))return B}; vL=function(B,z){return new PL(B,B+z-1)}; loz=function(B){return B.end==null?{start:String(B.start)}:{start:String(B.start),end:String(B.end)}}; Dn=function(B){if(!B)return new PL(0,0);var z=Number(B.start);B=Number(B.end);if(!isNaN(z)&&!isNaN(B)&&(z=new PL(z,B),z.length>0))return z}; kH=function(B,z,T,R,h,W,b,l,w,q,c,L){R=R===void 0?"":R;this.type=B;this.T=z;this.range=T;this.source=R;this.EX=c;this.clipId=L===void 0?"":L;this.N=[];this.J="";this.FE=-1;this.TZ=this.UE=0;this.J=R;this.FE=h>=0?h:-1;this.startTime=W||0;this.duration=b||0;this.U=l||0;this.Y=w>=0?w:this.range?this.range.length:NaN;this.V=this.range?this.U+this.Y===this.range.length:q===void 0?!!this.Y:q;this.range?(this.W=this.startTime+this.duration*this.U/this.range.length,this.L=this.duration*this.Y/this.range.length, this.X=this.W+this.L):wnr(this)}; wnr=function(B){qIH?(B.W=B.startTime+Math.min(B.duration*B.U/B.T.info.kd,B.duration),B.L=Math.min(B.duration,B.duration*B.Y/B.T.info.kd),B.X=Math.min(B.W+B.L,B.startTime+B.duration)):(B.W=B.startTime,B.L=B.duration,B.X=B.W+B.L)}; i7z=function(B,z,T){var R=!(!z||z.T!==B.T||z.type!==B.type||z.FE!==B.FE);return T?R&&!!z&&(B.range&&z.range?z.range.end===B.range.end:z.range===B.range)&&z.U+z.Y===B.U+B.Y:R}; Km=function(B){return B.type===1||B.type===2}; mt=function(B){return B.type===3||B.type===6}; nm=function(B,z){return B.T===z.T?B.range&&z.range?B.range.start+B.U+B.Y===z.range.start+z.U:B.FE===z.FE?B.U+B.Y===z.U:B.FE+1===z.FE&&z.U===0&&B.V:!1}; L8r=function(B,z){return B.FE!==z.FE&&z.FE!==B.FE+1||B.type!==z.type?!1:nm(B,z)?!0:Math.abs(B.W-z.W)<=1E-6&&B.FE===z.FE?!1:cfz(B,z)}; cfz=function(B,z){return nm(B,z)||Math.abs(B.X-z.W)<=1E-6||B.FE+1===z.FE&&z.U===0&&B.V?!0:!1}; uK=function(B){return B.FE+(B.V?1:0)}; CrP=function(B){B.length===1||g.E9(B,function(T){return!!T.range}); for(var z=1;z=z.range.start+z.U&&B.range.start+B.U+B.Y<=z.range.start+z.U+z.Y:B.FE===z.FE&&B.U>=z.U&&(B.U+B.Y<=z.U+z.Y||z.V)}; AfB=function(B,z){return B.T!==z.T?!1:B.type===4&&z.type===3&&B.T.Fh()?(B=B.T.GE(B),Sa(B,function(T){return AfB(T,z)})):B.FE===z.FE&&!!z.Y&&z.U+z.Y>B.U&&z.U+z.Y<=B.U+B.Y}; fm=function(B,z){var T=z.FE;B.J="updateWithSegmentInfo";B.FE=T;if(B.startTime!==z.startTime||B.duration!==z.duration)B.startTime=z.startTime+B.UE,B.duration=z.duration,wnr(B)}; OG=function(B,z){var T=this;this.oK=B;this.W=this.T=null;this.V=this.DS=NaN;this.T5=this.requestId=null;this.Yi={qUO:function(){return T.range}}; this.Rx=B[0].T.Rx;this.U=z||"";this.oK[0].range&&this.oK[0].Y>0&&(rfd(B)?(this.range=CrP(B),this.Y=this.range.length):(this.range=this.oK[this.oK.length-1].range,this.Y=oSK(B)))}; NU=function(B){return!Km(B.oK[B.oK.length-1])}; t8=function(B){return B.oK[B.oK.length-1].type===4}; g.jI=function(B,z,T){T=B.T5===null?B.Rx.T5(z,T,B.oK[0].type):B.T5;if(B.T){z=T?$g(B.T,z.P8):B.T;var R=new Ge(z);R.get("alr")||R.set("alr","yes");B.U&&TNz(R,B.U)}else/http[s]?:\/\//.test(B.U)?R=new Ge(new g.QP(B.U)):(R=QE(B.Rx,T,z),B.U&&TNz(R,B.U));(z=B.range)?R.set("range",z.toString()):B.oK[0].T.hT()&&B.oK.length===1&&B.oK[0].U&&R.set("range",B.oK[0].U+"-");B.requestId&&R.set("req_id",B.requestId);isNaN(B.DS)||R.set("headm",B.DS.toString());isNaN(B.V)||R.set("mffa",B.V+"ms");B.urlParams&&g.uW(B.urlParams, function(h,W){R.set(W,h)}); return R}; aol=function(B){if(B.range)return B.Y;B=B.oK[0];return Math.round(B.L*B.T.info.kd)}; UMH=function(B,z){return Math.max(0,B.oK[0].W-z)}; XU=function(B,z,T,R,h,W){W=W===void 0?0:W;$H.call(this,B,z,R,void 0);this.V=T;this.aq=W;this.index=h||new g.vK}; MxB=function(B,z,T,R,h){this.FE=B;this.startSecs=z;this.Dc=T;this.T=R||NaN;this.U=h||NaN}; Zn=function(B,z,T){for(;B;B=B.parentNode)if(B.attributes&&(!T||B.nodeName===T)){var R=B.getAttribute(z);if(R)return R}return""}; eI=function(B,z){for(;B;B=B.parentNode){var T=B.getElementsByTagName(z);if(T.length>0)return T[0]}return null}; VxP=function(B){if(!B)return 0;var z=B.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return z?(Number(z[2])|0)*3600+(Number(z[4])|0)*60+(Number(z[6])|0):Number(B)|0}; Q_z=function(B){return B.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?B+"Z":B}; sG=function(){this.T=[];this.U=null;this.X=0;this.Y=[];this.V=!1;this.L="";this.W=-1}; yf5=function(B){var z=B.Y;B.Y=[];return z}; gSH=function(){this.W=[];this.T=null;this.U={};this.Y={}}; PrK=function(B,z){var T=[];z=Array.from(z.getElementsByTagName("SegmentTimeline"));z=g.d(z);for(var R=z.next();!R.done;R=z.next()){R=R.value;var h=R.parentNode.parentNode,W=null;h.nodeName==="Period"?W=JfP(B):h.nodeName==="AdaptationSet"?(h=h.getAttribute("id")||h.getAttribute("mimetype")||"",W=pnd(B,h)):h.nodeName==="Representation"&&(h=h.getAttribute("id")||"",W=$MP(B,h));if(W==null)return;W.update(R);g.Vq(T,yf5(W))}g.Vq(B.W,T);Qzz(B.W,function(b){return b.startSecs*1E3+b.T})}; xMl=function(B){B.T&&(B.T.T=[]);g.uW(B.U,function(z){z.T=[]}); g.uW(B.Y,function(z){z.T=[]})}; JfP=function(B){B.T||(B.T=new sG);return B.T}; pnd=function(B,z){B.U[z]||(B.U[z]=new sG);return B.U[z]}; $MP=function(B,z){B.Y[z]||(B.Y[z]=new sG);return B.Y[z]}; SI=function(B){var z=B===void 0?{}:B;B=z.aq===void 0?0:z.aq;var T=z.Zw===void 0?!1:z.Zw;var R=z.pL===void 0?0:z.pL;var h=z.bz===void 0?0:z.bz;var W=z.VW===void 0?Infinity:z.VW;var b=z.uH===void 0?0:z.uH;var l=z.qh===void 0?!1:z.qh;z=z.oG===void 0?!1:z.oG;g.vK.call(this);this.Ca=this.qa=-1;this.qQ=B;this.pL=R;this.Zw=T;this.bz=h;this.VW=W;this.uH=b;((this.qh=l)||isFinite(W)&&this.VW>0)&&T&&EG&&(this.U=!1,this.Y="postLive");this.oG=z}; Bz=function(B,z){return P7(B.segments,function(T){return z-T.FE})}; z5=function(B,z,T){T=T===void 0?{}:T;XU.call(this,B,z,"",void 0,void 0,T.aq||0);this.index=new SI(T)}; T5=function(B,z,T){$H.call(this,B,z);this.V=T;B=this.index=new g.vK;B.U=!1;B.Y="d"}; vS5=function(B,z,T){var R=B.index.nm(z),h=B.index.getStartTime(z),W=B.index.getDuration(z);T?W=T=0:T=B.info.kd*W;return new OG([new kH(3,B,void 0,"otfCreateRequestInfoForSegment",z,h,W,0,T)],R)}; DMX=function(B,z){if(!B.index.isLoaded()){var T=[],R=z.W;z=z.V.split(",").filter(function(c){return c.length>0}); for(var h=0,W=0,b=0,l=/^(\d+)/,w=/r=(\d+)/,q=0;q0&&(h.T=Math.min(h.T+b,10),h.U=W);h.T>0?(h.T--,h=!0):h=!1;if(h)typeof R==="function"&&(R=R()),console.log("plyr."+z,R);else{var l;R=((l=H7z.get(z))!=null?l:0)+1;H7z.set(z,R);R%100===1&&console.warn("plyr","plyr."+z+" is chatty, dropping logs.")}}}; uBK=function(){this.T=10;this.U=Date.now()}; Wz=function(B,z){this.info=B;this.T=z;this.U=null;this.W=this.Y=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.V=this.info.T.G9()&&!this.info.U}; foK=function(B,z){B.T.getLength();z=Math.min(z,B.info.Y);var T=B.T.split(z),R=T.Y3;T=new Wz(new kH(B.info.type,B.info.T,B.info.range,B.info.J,B.info.FE,B.info.startTime,B.info.duration,B.info.U,z,!1,B.info.EX,B.info.clipId),T.Km);T.W=B.W;T.Y=B.Y;z=new Wz(new kH(B.info.type,B.info.T,B.info.range,B.info.J,B.info.FE,B.info.startTime,B.info.duration,B.info.U+z,B.info.Y-z,B.info.V,B.info.EX,B.info.clipId),R);z.W=B.W;z.Y=B.Y;return[T,z]}; g.bP=function(B,z,T,R){T=T===void 0?!1:T;R=R===void 0?0:R;if(B.isLocked||z.isLocked||!nm(B.info,z.info)||B.info.V)return null;if(R){if(B.T.getLength()+z.T.getLength()>R)return null}else if(T&&(T=B.T,R=z.T,T=!(R.W4.length?Dcz(T,R.W4[0]):1)),T)return null;T=new kH(B.info.type,B.info.T,B.info.range,B.info.J,B.info.FE,B.info.startTime,B.info.duration,B.info.U,B.info.Y,B.info.V,B.info.EX,B.info.clipId);R=z.info;T.Y+=R.Y;T.range&&(T.L+=R.L);T.X=R.X;T.V=R.V;R=new AA;al(R,B.T);al(R,z.T);T=new Wz(T,R);T.U!= null&&z.U!=null&&(new g.RH("dash")).T(414627957,"merged slice emsg overridden; prev: "+T.U.vZ()+" next: "+z.U.vZ());T.U=z.U||B.U;T.Y=B.Y!==-1?B.Y:z.Y;T.W=B.W!==-1?B.W:z.W;return T}; g.Yf=function(B){g.Ez(B.info.T.info)||B.info.T.info.Of();if(B.Y!==-1)return B.Y;if(B.U&&KfY(B.U))return B.Y=KfY(B.U),B.Y;if(g.Ez(B.info.T.info)){var z=B.YL();for(var T=B.info.T.T,R=NaN,h=NaN,W=0;S8(z,W);){var b=BL(z,W);b.type===1936286840?h=b.data.getUint32(b.dataOffset+8):b.type===1836476516?h=g.e8(b):b.type===1952867444&&isNaN(R)&&(R=g.Te(b));W=ze(b.type)?W+8:W+b.size}!h&&T&&(h=s8(T));z=R/h}else z=new WL(B.YL()),T=B.V?z:new WL(new DataView(B.info.T.T.buffer)),R=FU(T),T=z.pos,z.pos=0,IE(z)?wc(z, 231)?(R=cL(z)*R/1E9,z.pos=T,z=R):(z.pos=T,z=NaN):(z.pos=T,z=NaN);B.Y=z||B.info.W;return B.Y}; NNH=function(B,z){B.timestampOffset>0&&(z-=B.timestampOffset);var T=g.Yf(B)+z;O7z(B,T);B.timestampOffset=z}; O7z=function(B,z){g.Ez(B.info.T.info)||B.info.T.info.Of();B.Y=z;if(g.Ez(B.info.T.info)){var T=B.YL();B=B.info.T.T;for(var R=NaN,h=NaN,W=0;S8(T,W);){var b=BL(T,W);isNaN(R)&&(b.type===1936286840?R=b.data.getUint32(b.dataOffset+8):b.type===1836476516&&(R=g.e8(b)));if(b.type===1952867444){!R&&B&&(R=s8(B));var l=g.Te(b);isNaN(h)&&(h=Math.round(z*R)-l);var w=b;l+=h;if(w.data.getUint8(w.dataOffset)){var q=w.data;w=w.dataOffset+4;q.setUint32(w,Math.floor(l/4294967296));q.setUint32(w+4,l&4294967295)}else w.data.setUint32(w.dataOffset+ 4,l)}W=ze(b.type)?W+8:W+b.size}return!0}T=new WL(B.YL());B=B.V?T:new WL(new DataView(B.info.T.T.buffer));R=FU(B);B=T.pos;T.pos=0;if(IE(T)&&wc(T,231))if(h=qU(T,!0),z=Math.floor(z*1E9/R),Math.ceil(Math.log(z)/Math.log(2)/8)>h)z=!1;else{for(R=h-1;R>=0;R--)T.T.setUint8(T.pos+R,z&255),z>>>=8;T.pos=B;z=!0}else z=!1;return z}; w_=function(B,z){z=z===void 0?!1:z;var T=lP(B);B=z?0:B.info.L;return T||B}; lP=function(B){g.Ez(B.info.T.info)||B.info.T.info.Of();if(B.U&&B.info.type===6)return B.U.aq;if(g.Ez(B.info.T.info)){var z=B.YL();var T=0;z=g.h8(z,1936286840);z=g.d(z);for(var R=z.next();!R.done;R=z.next())R=NtY(R.value),T+=R.oW[0]/R.timescale;T=T||NaN;if(!(T>=0))a:{T=B.YL();z=B.info.T.T;for(var h=R=0,W=0;S8(T,R);){var b=BL(T,R);if(b.type===1836476516)h=g.e8(b);else if(b.type===1836019558){!h&&z&&(h=s8(z));if(!h){T=NaN;break a}var l=E8(b.data,b.dataOffset,1953653094),w=l;l=h;var q=E8(w.data,w.dataOffset, 1952868452);w=E8(w.data,w.dataOffset,1953658222);var c=mm(q);mm(q);c&2&&mm(q);q=c&8?mm(q):0;var L=mm(w),C=L&1;c=L&4;var r=L&256,F=L&512,A=L&1024;L&=2048;var a=nQ(w);C&&mm(w);c&&mm(w);for(var V=C=0;V2048?"":z.indexOf("https://")===0?z:""}; r_=function(B,z,T){z.match(R95);return B(z,T).then(function(R){var h=g.TeP(R.xhr);return h?r_(B,h,T):R.xhr})}; G5=function(B,z,T){B=B===void 0?"":B;z=z===void 0?null:z;T=T===void 0?!1:T;g.Cl.call(this);var R=this;this.sourceUrl=B;this.isLivePlayback=T;this.IK=this.duration=0;this.isPremiere=this.qh=this.W=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.VW=this.bz=0;this.isOtf=this.PB=!1;this.lO=(0,g.f)();this.TZ=Infinity;this.T={};this.Y=new Map;this.state=this.H4=0;this.timeline=null;this.isManifestless=!1;this.RK=[];this.X=null;this.XE=0;this.V="";this.zZ=NaN;this.WD=this.Dm=this.timestampOffset=this.L= 0;this.Q_=this.Eg=NaN;this.ra=0;this.cD=this.N=!1;this.Kf=[];this.sE={};this.UE=NaN;this.Yi={Sgd:function(l){oH(R,l)}}; var h;this.MG=(h=z)==null?void 0:h.Cf("html5_use_network_error_code_enums");h9r=!!z&&z.Cf("html5_modern_vp9_mime_type");var W;FO=!((W=z)==null||!W.Cf("html5_enable_flush_during_seek"))&&g.jH();var b;IH=!((b=z)==null||!b.Cf("html5_enable_reset_audio_decoder"))&&g.jH()}; Wib=function(B){return g.Op(B.T,function(z){return!!z.info.video&&z.info.video.qualityOrdinal>=2160})}; d_Y=function(B){return g.Op(B.T,function(z){return!!z.info.video&&z.info.video.isHdr()})}; Gu=function(B){return g.Op(B.T,function(z){return!!z.info.Ft})}; g.bkK=function(B){return g.Op(B.T,function(z){return R_(z.info.mimeType)})}; YFl=function(B){return g.Op(B.T,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR":!1})}; lZK=function(B){return g.Op(B.T,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; wqd=function(B){return g.Op(B.T,function(z){return z.info.video?z.info.video.projectionType==="MESH":!1})}; qFB=function(B){return g.Op(B.T,function(z){return z.info.video?z.info.video.stereoLayout===1:!1})}; ikb=function(B){return $BK(B.T,function(z){return z.info.video?z.gr():!0})}; of=function(B){return g.Op(B.T,function(z){return J1(z.Rx.T)})}; oH=function(B,z){B.T[z.info.id]=z;B.Y.set(pm(g.Bn(z.info,B.PB)),z)}; aH=function(B,z,T){T=T===void 0?0:T;var R=B.mimeType||"",h=B.itag;var W=B.xtags;h=h?h.toString():"";W&&(h+=";"+W);W=h;if(Tb(R)){var b=B.width||640;h=B.height||360;var l=B.fps,w=B.qualityLabel,q=B.colorInfo,c=B.projectionType,L;B.stereoLayout&&(L=cOH[B.stereoLayout]);var C=BeB(B)||void 0;if(q==null?0:q.primaries)var r=Lil[q.primaries]||void 0;b=new uF(b,h,l,c,L,void 0,w,C,r);R=d_(R,b,Oz[B.itag||""]);FO&&(R+="; enableflushduringseek=true");IH&&(R+="; enableresetaudiodecoder=true")}var F;if(zb(R)){var A= B.audioSampleRate;L=B.audioTrack;A=new KW(A?+A:void 0,B.audioChannels,B.spatialAudioType,B.isDrc,B.loudnessDb,B.trackAbsoluteLoudnessLkfs,B.audioQuality||"AUDIO_QUALITY_UNKNOWN",B.isVb);L&&(r=L.displayName,h=L.id,L=L.audioIsDefault,r&&(F=new g.Cj(r,h||"",!!L)))}var a;B.captionTrack&&(w=B.captionTrack,L=w.displayName,r=w.vssId,h=w.languageCode,l=w.kind,w=w.id,L&&r&&h&&(a=new ESz(L,r,h,l,B.xtags,w)));L=Number(B.bitrate)/8;r=Number(B.contentLength);h=Number(B.lastModified);w=B.drmFamilies;l=B.type;T= T&&r?r/T:0;B=Number(B.approxDurationMs);if(z&&w){var V={};w=g.d(w);for(q=w.next();!q.done;q=w.next())(q=Ac[q.value])&&(V[q]=z[q])}return new N_(W,R,{audio:A,video:b,HB:F,Ft:V,kd:L,Yr:T,contentLength:r,lastModified:h,captionTrack:a,streamType:l,approxDurationMs:B})}; U6=function(B,z,T){T=T===void 0?0:T;var R=B.type;var h=B.itag;var W=B.xtags;W&&(h=B.itag+";"+W);if(Tb(R)){var b=(B.size||"640x360").split("x");b=new uF(+b[0],+b[1],+B.fps,B.projection_type,+B.stereo_layout,void 0,B.quality_label,B.eotf,B.primaries);R=d_(R,b,Oz[B.itag]);FO&&(R+="; enableflushduringseek=true");IH&&(R+="; enableresetaudiodecoder=true")}var l;if(zb(R)){var w=new KW(+B.audio_sample_rate||void 0,+B.audio_channels||0,B.spatial_audio_type,!!B.drc);B.name&&(l=new g.Cj(B.name,B.audio_track_id, B.isDefault==="1"))}var q;B.caption_display_name&&B.caption_vss_id&&B.caption_language_code&&(q=new ESz(B.caption_display_name,B.caption_vss_id,B.caption_language_code,B.caption_kind,B.xtags,B.caption_id));W=Number(B.bitrate)/8;var c=Number(B.clen),L=Number(B.lmt);T=T&&c?c/T:0;if(z&&B.drm_families){var C={};for(var r=g.d(B.drm_families.split(",")),F=r.next();!F.done;F=r.next())F=F.value,C[F]=z[F]}return new N_(h,R,{audio:w,video:b,HB:l,Ft:C,kd:W,Yr:T,contentLength:c,lastModified:L,captionTrack:q, streamType:B.stream_type,approxDurationMs:Number(B.approx_duration_ms)})}; C5X=function(B){return Sa(B,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; rOK=function(B){return Sa(B,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; oUz=function(B,z){return B.timeline?Qq(B.timeline.W,z):B.RK.length?Qq(B.RK,z):[]}; ME=function(B,z,T){z=z===void 0?"":z;T=T===void 0?"":T;B=new g.QP(B,!0);B.set("alr","yes");T&&(T=Had(decodeURIComponent(T)),B[Y[19]](z,encodeURIComponent(T)));return B}; d5H=function(B,z){var T=Zn(z,"id");T=T.replace(":",";");var R=Zn(z,"mimeType"),h=Zn(z,"codecs");R=h?R+'; codecs="'+h+'"':R;h=Number(Zn(z,"bandwidth"))/8;var W=Number(eI(z,"BaseURL").getAttribute(B.V+":contentLength")),b=B.duration&&W?W/B.duration:0;if(Tb(R)){var l=Number(Zn(z,"width"));var w=Number(Zn(z,"height")),q=Number(Zn(z,"frameRate")),c=Fiz(Zn(z,B.V+":projectionType"));a:switch(Zn(z,B.V+":stereoLayout")){case "layout_left_right":var L=1;break a;case "layout_top_bottom":L=2;break a;default:L= 0}l=new uF(l,w,q,c,L)}if(zb(R)){var C=Number(Zn(z,"audioSamplingRate"));var r=Number(Zn(z.getElementsByTagName("AudioChannelConfiguration")[0],"value"));w=IZP(Zn(z,B.V+":spatialAudioType"));C=new KW(C,r,w);a:{r=Zn(z,"lang")||"und";if(w=eI(z,"Role"))if(c=Zn(w,"value")||"",g.ZF(G2z,c)){w=r+"."+G2z[c];q=c==="main";B=Zn(z,B.V+":langName")||r+" - "+c;r=new g.Cj(B,w,q);break a}r=void 0}}if(z=eI(z,"ContentProtection"))if(z.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var F={};for(z= z.firstChild;z!=null;z=z.nextSibling)z instanceof Element&&/SystemURL/.test(z.nodeName)&&(B=z.getAttribute("type"),w=z.textContent,B&&w&&(F[B]=w.trim()))}else F=void 0;return new N_(T,R,{audio:C,video:l,HB:r,Ft:F,kd:h,Yr:b,contentLength:W})}; Fiz=function(B){switch(B){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"}}; IZP=function(B){switch(B){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"}}; aZd=function(B,z){z=z===void 0?"":z;B.state=1;B.lO=(0,g.f)();return z9K(z||B.sourceUrl).then(function(T){if(!B.xd()){B.H4=T.status;T=T.responseText;var R=new DOMParser;T=Lr(R,D8r(T),"text/xml").getElementsByTagName("MPD")[0];B.TZ=VxP(Zn(T,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(T.attributes){R=g.d(T.attributes);for(var h=R.next();!h.done;h=R.next())if(h=h.value,h.value==="http://youtube.com/yt/2012/10/10"){R=h.name.split(":")[1];break b}}R=""}B.V=R;B.isLive=B.TZ=B.TZ}; MMX=function(B){B.X&&B.X.stop()}; AOY=function(B){var z=B.TZ;isFinite(z)&&(V$(B)?B.refresh():(z=Math.max(0,B.lO+z-(0,g.f)()),B.X||(B.X=new g.Si(B.refresh,z,B),g.m(B,B.X)),B.X.start(z)))}; VMd=function(B){B=B.T;for(var z in B){var T=B[z].index;if(T.isLoaded())return T.CF()+1}return 0}; Q$=function(B){return B.Dm?B.Dm-(B.L||B.timestampOffset):0}; y$=function(B){return B.WD?B.WD-(B.L||B.timestampOffset):0}; g_=function(B){if(!isNaN(B.zZ))return B.zZ;var z=B.T,T;for(T in z){var R=z[T].index;if(R.isLoaded()&&!R_(z[T].info.mimeType)){z=0;for(T=R.dY();T<=R.CF();T++)z+=R.getDuration(T);z/=R.EA();z=Math.round(z/.5)*.5;R.EA()>10&&(B.zZ=z);return z}if(B.isLive&&(R=z[T],R.aq))return R.aq}return NaN}; QDB=function(B,z){B=xBK(B.T,function(R){return R.index.isLoaded()}); if(!B)return NaN;B=B.index;var T=B.Yh(z);return B.getStartTime(T)===z?z:T=0&&h.segments.splice(W,1)}}}; gUX=function(B){for(var z in B.T)R_(B.T[z].info.mimeType)||PFK(B.T[z].index,Infinity)}; $f=function(B,z,T){for(var R in B.T){var h=B.T[R].index,W=z,b=T;h.Zw&&(W&&(h.qa=Math.max(h.qa,W)),b&&(h.Ca=Math.max(h.Ca||0,b)))}T&&(B.UE=T/1E3)}; JOH=function(B){B.WD=0;B.Dm=0;B.ra=0}; Pz=function(B){return B.cD&&B.isManifestless?B.isLiveHeadPlayable:B.isLive}; d_=function(B,z,T){xf===null&&(xf=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(h9r&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return xf||T!=="9"&&T!=="("?xf||T!=="9h"&&T!=="(h"||(B='video/webm; codecs="vp9.2"'):B='video/webm; codecs="vp9"',B;if(!xf&&!vz||B!=='video/webm; codecs="vp9"'&&B!=='video/webm; codecs="vp9.2"')return B; T="00";var R="08",h="01",W="01",b="01";B==='video/webm; codecs="vp9.2"'&&(T="02",R="10",z.primaries==="bt2020"&&(b=h="09"),z.T==="smpte2084"&&(W="16"),z.T==="arib-std-b67"&&(W="18"));return'video/webm; codecs="'+["vp09",T,"51",R,"01",h,W,b,"00"].join(".")+'"'}; kf=function(B,z,T){B=""+B+(z>49?"p60":z>32?"p48":"");z=Nh()[B];if(z!=null&&z>0)return z;z=D6.get(B);if(z!=null&&z>0)return z;T=T==null?void 0:T.get(B);return T!=null&&T>0?T:8192}; pq5=function(B){this.bO=B;this.s0=this.LU=this.XE=this.V=this.W=this.Kf=this.cD=this.TZ=!1;this.L=this.X=0;this.MG=!1;this.UE=!0;this.sE=!1;this.FJ=0;this.fS=this.WD=!1;this.C4=!0;this.lO=this.zZ=!1;this.T={};this.U0=this.JZ=this.disableAv1=this.EE=this.pF=this.eI=this.aK=this.U=this.J=!1;this.fF=this.bO.D("html5_disable_aac_preference");this.ra=Infinity;this.RK=0;this.Sk=this.bO.L4();this.O0=this.bO.experiments.Cf("html5_enable_vp9_fairplay");this.R7=this.bO.D("html5_force_av1_for_testing");this.IK= g.rk(this.bO.experiments,"html5_av1_ordinal_cap");this.S6=this.bO.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.LF=this.bO.D("html5_account_onesie_format_selection_during_format_filter");this.kd=g.rk(this.bO.experiments,"html5_max_byterate");this.Dm=this.bO.D("html5_enable_iamf_audio");this.t0=this.bO.experiments.Cf("html5_allow_capability_merge");this.II=this.bO.D("html5_enable_encrypted_av1")}; AiX=function(B){if(B.cD)return["f"];if(g.NR("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var z=["9h","9","h","8"];B.II&&z.push("1e");z=z.concat(["(h","(","H","*"]);B.WD&&(z.unshift("1"),z.unshift("1h"));B.LU&&z.unshift("h");B.N&&(z=($5X[B.N]||[B.N]).concat(z));return z}; CFb=function(B){var z=["o","a","A"];B.RK===1&&(B.W&&(z=["mac3","MAC3"].concat(z)),B.V&&(z=["meac3","MEAC3"].concat(z)),B.Dm&&(z=["i","I"].concat(z)));B.TZ&&(z=["so","sa"].concat(z));!B.s0||B.XE||B.Y||B.fF||z.unshift("a");B.Y&&(z=($5X[B.Y]||[B.Y]).concat(z));return z}; Kj=function(B,z,T,R){z=z===void 0?{}:z;if(R===void 0?0:R)return z.disabled=1,0;if(M$(B.V,VP.AV1_CODECS)&&M$(B.V,VP.HEIGHT)&&M$(B.V,VP.BITRATE))return z.isCapabilityUsable=1,8192;try{var h=eI5();if(h&&!B.D("disable_av1_setting"))return z.localPref=h}catch(l){}R=1080;h=navigator.hardwareConcurrency;h<=2&&(R=480);z.coreCount=h;if(h=g.rk(B.experiments,"html5_default_av1_threshold"))R=z["default"]=h;!B.D("html5_disable_av1_arm_check")&&Gdb()&&(z.isArm=1,R=240);if(B=B.V.UE)z.mcap=B,R=Math.max(R,B);if(T){var W, b;if(B=(W=T.videoInfos.find(function(l){return Za(l)}))==null?void 0:(b=W.U)==null?void 0:b.powerEfficient)R=8192,z.isEfficient=1; T=T.videoInfos[0].video;W=Math.min(kf("1",T.fps),kf("1",30));z.perfCap=W;R=Math.min(R,W);T.isHdr()&&!B&&(z.hdr=1,R*=.75)}else T=kf("1",30),z.perfCap30=T,R=Math.min(R,T),T=kf("1",60),z.perfCap60=T,R=Math.min(R,T);return z.av1Threshold=R}; me=function(B,z,T,R){this.flavor=B;this.keySystem=z;this.U=T;this.experiments=R;this.T={};this.IK=this.keySystemAccess=null;this.Cl=this.eR=-1;this.VT=null;this.Y=!!R&&R.Cf("edge_nonprefixed_eme");R&&R.Cf("html5_enable_vp9_fairplay")}; uP=function(B){return B.Y?!1:!B.keySystemAccess&&!!nj()&&B.keySystem==="com.microsoft.playready"}; Hz=function(B){return B.keySystem==="com.microsoft.playready"}; fj=function(B){return!B.keySystemAccess&&!!nj()&&B.keySystem==="com.apple.fps.1_0"}; O6=function(B){return B.keySystem==="com.youtube.fairplay"}; NE=function(B){return B.keySystem==="com.youtube.fairplay.sbdl"}; g.tc=function(B){return B.flavor==="fairplay"}; nj=function(){var B=window,z=B.MSMediaKeys;eH()&&!z&&(z=B.WebKitMediaKeys);return z&&z.isTypeSupported?z:null}; XO=function(B){return navigator.requestMediaKeySystemAccess?g.PG&&!g.jH()?gw("45"):g.Zs||g.Ff?B.Cf("edge_nonprefixed_eme"):g.jg?gw("47"):g.Ax&&B.Cf("html5_enable_safari_fairplay")?!1:!0:!1}; P5d=function(B,z,T,R){var h=XN(),W=(T=h||T&&eH())?["com.youtube.fairplay"]:["com.widevine.alpha"];z&&W.unshift("com.youtube.widevine.l3");h&&R&&W.unshift("com.youtube.fairplay.sbdl");return T?W:B?[].concat(g.Q(W),g.Q(Z6.playready)):[].concat(g.Q(Z6.playready),g.Q(W))}; eg=function(B,z,T,R,h){R=R===void 0?!1:R;g.K.call(this);this.bO=z;this.useCobaltWidevine=R;this.OE=h;this.U=[];this.Y={};this.T={};this.callback=null;this.V=!1;this.W=[];this.initialize(B,!T)}; vUz=function(B,z){B.callback=z;B.W=[];XO(B.bO.experiments)?s6(B):x5X(B)}; s6=function(B){if(!B.xd())if(B.U.length===0)B.callback(B.W);else{var z=B.U[0],T=B.Y[z],R=D5l(B,T);if(E6&&E6.keySystem===z&&E6.pdE===JSON.stringify(R))B.OE("remksa",{re:!0}),k2H(B,T,E6.keySystemAccess);else{var h,W;B.OE("remksa",{re:!1,ok:(W=(h=E6)==null?void 0:h.keySystem)!=null?W:""});E6=void 0;navigator.requestMediaKeySystemAccess(z,R).then(g8(function(b){k2H(B,T,b,R)}),g8(function(){B.V=!B.V&&B.Y[B.U[0]].flavor==="widevine"; B.V||B.U.shift();s6(B)}))}}}; k2H=function(B,z,T,R){if(!B.xd()){R&&(E6={keySystem:z.keySystem,keySystemAccess:T,pdE:JSON.stringify(R)});z.keySystemAccess=T;if(Hz(z)){T=pW();R=g.d(Object.keys(B.T[z.flavor]));for(var h=R.next();!h.done;h=R.next())h=h.value,z.T[h]=!!T.canPlayType(h)}else{T=z.keySystemAccess.getConfiguration();if(T.audioCapabilities)for(R=g.d(T.audioCapabilities),h=R.next();!h.done;h=R.next())Kiz(B,z,h.value);if(T.videoCapabilities)for(T=g.d(T.videoCapabilities),R=T.next();!R.done;R=T.next())Kiz(B,z,R.value)}B.W.push(z); B.useCobaltWidevine||B.D("html5_enable_vp9_fairplay")&&NE(z)?(B.U.shift(),s6(B)):B.callback(B.W)}}; Kiz=function(B,z,T){B.D("log_robustness_for_drm")?z.T[T.contentType]=T.robustness||!0:z.T[T.contentType]=!0}; D5l=function(B,z){var T={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(B.D("html5_enable_vp9_fairplay")&&O6(z))return T.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),T.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[T];Hz(z)&&(T.initDataTypes=["keyids","cenc"]);for(var R=g.d(Object.keys(B.T[z.flavor])),h=R.next();!h.done;h=R.next()){h=h.value;var W=h.indexOf("audio/")===0,b=W?T.audioCapabilities:T.videoCapabilities;z.flavor!== "widevine"||B.V?b.push({contentType:h}):W?b.push({contentType:h,robustness:"SW_SECURE_CRYPTO"}):(g.PG&&g.NR("windows nt")&&!B.D("html5_drm_enable_moho")||b.push({contentType:h,robustness:"HW_SECURE_ALL"}),W=h,B.bO.V.Y&&h.includes("vp09")&&(W=h+"; experimental=allowed"),b.push({contentType:W,robustness:"SW_SECURE_DECODE"}),g.Sg(B.bO)==="MWEB"&&(Th()||to())&&(B.OE("swcrypto",{}),b.push({contentType:h,robustness:"SW_SECURE_CRYPTO"})))}return[T]}; x5X=function(B){if(nj()&&(g.Ax||ED))B.W.push(new me("fairplay","com.apple.fps.1_0","",B.bO.experiments));else{var z=m5z(),T=g.Cs(B.U,function(R){var h=B.Y[R],W=!1,b=!1,l;for(l in B.T[h.flavor])z(l,R)&&(h.T[l]=!0,W=W||l.indexOf("audio/")===0,b=b||l.indexOf("video/")===0);return W&&b}); T&&B.W.push(B.Y[T]);B.U=[]}B.callback(B.W)}; m5z=function(){var B=nj();if(B){var z=B.isTypeSupported;return function(R,h){return z(h,R)}}var T=pW(); return T&&(T.addKey||T.webkitAddKey)?function(R,h){return!!T.canPlayType(R,h)}:function(){return!1}}; nUH=function(B){this.experiments=B;this.T=2048;this.W=0;this.UE=(this.L=this.D("html5_streaming_resilience"))?.5:.25;var z=z===void 0?0:z;this.Y=g.rk(this.experiments,"html5_media_time_weight_prop")||z;this.TZ=g.rk(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.N=(this.V=this.experiments.Cf("html5_consider_end_stall"))&&Bo;this.U=this.experiments.Cf("html5_measure_max_progress_handling");this.J=this.D("html5_treat_requests_pre_elbow_as_metadata");this.X=this.D("html5_media_time_weight")|| !!this.Y;this.D("html5_sabr_live_audio_early_return_fix")&&Bo&&(this.T=65536)}; uA5=function(B,z){this.T=void 0;this.experimentIds=B?B.split(","):[];this.flags=TF(z||"","&");B={};z=g.d(this.experimentIds);for(var T=z.next();!T.done;T=z.next())B[T.value]=!0;this.experiments=B}; g.rk=function(B,z){B=B.flags[z];JSON.stringify(B);return Number(B)||0}; zk=function(B,z){return(B=B.flags[z])?B.toString():""}; Hkz=function(B){if(B=B.flags.html5_web_po_experiment_ids)if(B=B.replace(/\[ *(.*?) *\]/,"$1"))return B.split(",").map(Number);return[]}; fZP=function(B){if(B.T)return B.T;if(B.experimentIds.length<=1)return B.T=B.experimentIds,B.T;var z=[].concat(g.Q(B.experimentIds)).map(function(R){return Number(R)}); z.sort();for(var T=z.length-1;T>0;--T)z[T]-=z[T-1];B.T=z.map(function(R){return R.toString()}); B.T.unshift("v1");return B.T}; Ner=function(B){return Okl.then(B)}; Tk=function(B,z,T){this.experiments=B;this.RK=z;this.XE=T===void 0?!1:T;this.N=!!g.sH("cast.receiver.platform.canDisplayType");this.J={};this.TZ=!1;this.W=new Map;this.L=!0;this.U=this.Y=!1;this.T=new Map;this.UE=0;this.WD=this.experiments.Cf("html5_disable_vp9_encrypted");this.V=this.experiments.Cf("html5_enable_encrypted_av1");B=g.sH("cast.receiver.platform.getValue");this.X=!this.N&&B&&B("max-video-resolution-vpx")||null;tMK(this);this.Y=!!(XN()&&OD()>=21)}; MR5=function(B,z,T){T=T===void 0?1:T;var R=z.itag;if(R==="0")return!0;var h=z.mimeType;if(z.Ai==="1e"&&!B.V)return"dav1enc";if(Za(z)&&B.TZ)return"dav1";if(z.video&&(z.video.isHdr()||z.video.primaries==="bt2020")&&!(M$(B,VP.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(R==="338"&&!(g.PG?gw(53):g.jg&&gw(64)))return"dopus";var W=T;W=W===void 0?1: W;T={};z.video&&(z.video.width&&(T[VP.WIDTH.name]=z.video.width),z.video.height&&(T[VP.HEIGHT.name]=z.video.height),z.video.fps&&(T[VP.FRAMERATE.name]=z.video.fps*W),z.video.T&&(T[VP.EOTF.name]=z.video.T),z.kd&&(T[VP.BITRATE.name]=z.kd*8*W),z.Ai==="("&&(T[VP.CRYPTOBLOCKFORMAT.name]="subsample"),z.video.projectionType==="EQUIRECTANGULAR"||z.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z.video.projectionType==="MESH")&&(T[VP.DECODETOTEXTURE.name]="true");z.audio&&z.audio.numChannels&& (T[VP.CHANNELS.name]=z.audio.numChannels);B.Y&&ti(z)&&(T[VP.EXPERIMENTAL.name]="allowed");W=g.d(Object.keys(VP));for(var b=W.next();!b.done;b=W.next()){b=VP[b.value];var l;if(l=T[b.name])if(l=!(b===VP.EOTF&&z.mimeType.indexOf("vp09.02")>0)){l=b;var w=z;l=!(B.experiments.Cf("html5_ignore_h264_framerate_cap")&&l===VP.FRAMERATE&&QSd(w))}if(l)if(M$(B,b))if(B.X){if(B.X[b.name] 1080&&z.Ft&&(h+="; hdcp=2.2");return R==="227"?"hqcenc":R!=="585"&&R!=="588"&&R!=="583"&&R!=="586"&&R!=="584"&&R!=="587"&&R!=="591"&&R!=="592"||B.experiments.Cf("html5_enable_new_hvc_enc")?XN()&&OD()>=21&&g.NR("appletv5")&&(R==="410"||R==="845")?!0:B.isTypeSupported(h)?!0:"tpus":"newhvc"}; Rn=function(){var B=to()&&!gw(29),z=g.NR("google tv")&&g.NR("chrome")&&!gw(30);return B||z?!1:P1d()}; jDr=function(B,z,T){var R=480;z=g.d(z);for(var h=z.next();!h.done;h=z.next()){h=h.value;var W=h.video.qualityOrdinal;W<=1080&&W>R&&MR5(B,h,T)===!0&&(R=W)}return R}; g.hq=function(B,z){z=z===void 0?!1:z;return Rn()&&B.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!z&&B.canPlayType(pW(),"application/x-mpegURL")?!0:!1}; ZkP=function(B){Xqr(function(){for(var z=g.d(Object.keys(VP)),T=z.next();!T.done;T=z.next())M$(B,VP[T.value])})}; M$=function(B,z){z.name in B.J||(B.J[z.name]=e95(B,z));return B.J[z.name]}; e95=function(B,z){if(B.X)return!!B.X[z.name];if(z===VP.BITRATE&&B.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!B.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(z===VP.AV1_CODECS)return B.isTypeSupported("video/mp4; codecs="+z.valid)&&!B.isTypeSupported("video/mp4; codecs="+z.jb);if(z.video){var T='video/webm; codecs="vp9"';B.isTypeSupported(T)||(T='video/mp4; codecs="avc1.4d401e"')}else T='audio/webm; codecs="opus"', B.isTypeSupported(T)||(T='audio/mp4; codecs="mp4a.40.2"');return B.isTypeSupported(T+"; "+z.name+"="+z.valid)&&!B.isTypeSupported(T+"; "+z.name+"="+z.jb)}; sDK=function(B,z){var T=0;B.W.has(z)&&(T=B.W.get(z).er);B.W.set(z,{er:T+1,cG:Math.pow(2,T+1)});B.U=!0}; d$=function(B){for(var z=[],T=g.d(B.T.keys()),R=T.next();!R.done;R=T.next()){R=R.value;var h=B.T.get(R);z.push(R+"_"+h.maxWidth+"_"+h.maxHeight)}return z.join(".")}; obd=function(B,z){for(var T=new Map,R=g.d(B.T.keys()),h=R.next();!h.done;h=R.next()){h=h.value;var W=h.split("_")[0];z.has(W)||T.set(h,B.T.get(h))}B.T=T}; Iar=function(B,z,T){var R,h=((R=T.video)==null?void 0:R.fps)||0;R=z+"_"+h;var W=!!T.audio,b={itag:T.itag,Ai:z,lf:W};if(W)b.numChannels=T.audio.numChannels;else{var l=T.video;b.maxWidth=l==null?void 0:l.width;b.maxHeight=l==null?void 0:l.height;b.maxFramerate=h;M$(B,VP.BITRATE)&&(b.maxBitrateBps=T.kd*8);b.jf=l==null?void 0:l.isHdr()}l=B.T.get(R);l?W||(T=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(b.maxWidth||0,b.maxHeight||0)?l:b,z={itag:T.itag,Ai:z,lf:W,maxWidth:Math.max(l.maxWidth||0,b.maxWidth|| 0),maxHeight:Math.max(l.maxHeight||0,b.maxHeight||0),maxFramerate:h,jf:T.jf},M$(B,VP.BITRATE)&&(z.maxBitrateBps=T.maxBitrateBps),B.T.set(R,z)):B.T.set(R,b)}; G1B=function(B,z,T){var R,h=((R=T.video)==null?void 0:R.fps)||0;R=z+"_"+h;var W=!!T.audio,b=B.T.get(R);a:{var l=B.T.get(R),w=!!T.audio;if(l){if(w){var q=!1;break a}var c;if(!w&&((q=T.video)==null?0:q.height)&&l.maxHeight&&l.maxHeight>=((c=T.video)==null?void 0:c.height)){q=!1;break a}}q=!0}q&&(q=T.itag,z=b?b:{itag:q,Ai:z,lf:W},W?z.numChannels=T.audio.numChannels:(W=T.video,z.maxWidth=W==null?void 0:W.width,z.maxHeight=W==null?void 0:W.height,z.maxFramerate=h,M$(B,VP.BITRATE)&&(z.maxBitrateBps=T.kd* 8),z.jf=W==null?void 0:W.isHdr()),B.T.set(R,z))}; tMK=function(B){var z;(z=navigator.mediaCapabilities)!=null&&z.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(T){T.smooth&&T.powerEfficient&&(B.UE=2160)})}; Wo=function(){g.Cl.call(this);this.items={}}; EUB=function(B,z,T){this.encryptedClientKey=z;this.V=T;this.T=new Uint8Array(B.buffer,0,16);this.Y=new Uint8Array(B.buffer,16)}; SFz=function(B){B.U||(B.U=new g.V5(B.T));return B.U}; bq=function(B){try{return lT(B)}catch(z){return null}}; Bfr=function(B,z){if(!z&&B)try{z=JSON.parse(B)}catch(h){}if(z){B=z.clientKey?bq(z.clientKey):null;var T=z.encryptedClientKey?bq(z.encryptedClientKey):null,R=z.keyExpiresInSeconds?Number(z.keyExpiresInSeconds)*1E3+(0,g.f)():null;B&&T&&R&&(this.T=new EUB(B,T,R));z.onesieUstreamerConfig&&(this.onesieUstreamerConfig=bq(z.onesieUstreamerConfig)||void 0);this.baseUrl=z.baseUrl}}; lq=function(){this.data=new Uint8Array(2048);this.pos=0;YC||(YC=x8("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; wP=function(B,z){B.add(z==null||isNaN(z)?0:z+1)}; qj=function(B){this.T=this.U=0;this.alpha=Math.exp(Math.log(.5)/B)}; iq=function(B){this.U=B===void 0?15:B;this.values=new Float64Array(176);this.T=new Float64Array(11);this.Y=new Float64Array(16)}; co=function(B,z,T,R){T=T===void 0?.5:T;R=R===void 0?0:R;this.resolution=z;this.U=0;this.Y=!1;this.KL=!0;this.T=Math.round(B*this.resolution);this.values=Array(this.T);for(B=0;B0)z=B.byterate,this.TZ=!0;else{var R; T=(((R=navigator.connection)==null?void 0:R.downlink)||0)*64*1024;T>0&&(z=T,this.TZ=!0)}this.Y.ew(this.policy.X,z);B.delay>0&&this.J.ew(1,Math.min(B.delay,2));B.stall>0&&this.L.ew(1,B.stall);B.init>0&&(this.lO=Math.min(B.init,this.lO));B.interruptions&&(this.W=this.W.concat(B.interruptions),this.W.length>16&&this.W.pop());this.UE=(0,g.f)();this.policy.L>0&&(this.cD=new g.Si(this.Kf,this.policy.L,this),g.m(this,this.cD),this.cD.start())}; CY=function(B,z,T,R){B.Y.ew(R===void 0?z:R,T/z);B.X=(0,g.f)()}; Tfz=function(B){B.V||(B.V=(0,g.f)());B.policy.N&&(B.X=(0,g.f)())}; Ril=function(B,z){if(B.V){var T=z-B.V;if(T<6E4){if(T>1E3){var R=B.interruptions;R.push(Math.ceil(T));R.sort(function(h,W){return W-h}); R.length>16&&R.pop()}B.RK+=T}}B.V=z}; rP=function(B,z,T,R,h,W){W=W===void 0?!1:W;B.zZ.ew(z,T/z);B.X=(0,g.f)();h||B.N.ew(1,z-R);W||(B.V=0);B.UE>-1&&(0,g.f)()-B.UE>3E4&&hiX(B)}; on=function(B,z,T){z=Math.max(z,B.U.T);B.L.ew(1,T/z)}; Fk=function(B){B=B.J.EJ()+B.XE.EJ()||0;B=isNaN(B)?.5:B;return B=Math.min(B,5)}; In=function(B,z,T){isNaN(T)||(B.WD+=T);isNaN(z)||(B.IK+=z)}; Gk=function(B){B=B.Y.EJ();return B>0?B:1}; dP=function(B,z,T){z=z===void 0?!1:z;T=T===void 0?1048576:T;var R=Gk(B);R=1/((B.L.EJ()||0)*B.policy.TZ+1/R);var h=B.zZ.EJ();h=h>0?h:1;var W=Math.max(R,h);B.policy.V>0&&h=4E3}; b$z=function(B){this.experiments=B;this.T=17;this.Y=13E4;this.X=.5;this.W=this.U=!1;this.UE=this.D("html5_use_histogram_for_bandwidth");this.V=g.rk(this.experiments,"html5_auxiliary_estimate_weight");this.TZ=g.rk(this.experiments,"html5_stall_factor")||1;this.L=g.rk(this.experiments,"html5_check_for_idle_network_interval_ms");this.J=this.experiments.Cf("html5_trigger_loader_when_idle_network");this.N=this.experiments.Cf("html5_sabr_fetch_on_idle_network_preloaded_players")}; lml=function(B,z){B=B===void 0?{}:B;z=z===void 0?{}:z;g.K.call(this);var T=this;this.values=B;this.EU=z;this.U={};this.Y=this.T=0;this.W=new g.Si(function(){YUz(T)},1E4); g.m(this,this.W)}; an=function(B,z){wTd(B,z);return B.values[z]&&B.EU[z]?B.values[z]/Math.pow(2,B.T/B.EU[z]):0}; wTd=function(B,z){B.values[z]||(z=tAz(),B.values=z.values||{},B.EU=z.halfLives||{},B.U=z.values?Object.assign({},z.values):{})}; YUz=function(B){var z=tAz();if(z.values){z=z.values;for(var T={},R=g.d(Object.keys(B.values)),h=R.next();!h.done;h=R.next())h=h.value,z[h]&&B.U[h]&&(B.values[h]+=z[h]-B.U[h]),T[h]=an(B,h);B.U=T}z=B.EU;T={};T.values=B.U;T.halfLives=z;g.D_("yt-player-memory",T,2592E3)}; Ho=function(B,z,T,R,h){g.K.call(this);this.webPlayerContextConfig=z;this.Rn=R;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.RQ=this.O0=this.XS=this.Up=this.userDisplayName=this.userDisplayImage=this.Mg="";this.T={};this.Sk={};this.controlsType="0";this.II=NaN;this.EE=!1;this.Gj=(0,g.f)();this.Dm=0;this.VT=this.Eg=!1;this.qV=!0;this.preferGapless=this.jQ=this.r3=this.Y=this.L2=!1;this.pk=[];this.tj=!1;this.r_=0;B=B?g.zR(B):{};z&&z.csiPageType&&(this.csiPageType=z.csiPageType);z&&z.csiServiceName&& (this.csiServiceName=z.csiServiceName);z&&z.preferGapless&&(this.preferGapless=z.preferGapless);this.experiments=new uA5(z?z.serializedExperimentIds:B.fexp,z?z.serializedExperimentFlags:B.fflags);this.forcedExperiments=z?z.serializedForcedExperimentIds:l9("",B.forced_experiments)||void 0;this.cspNonce=(z==null?0:z.cspNonce)?z.cspNonce:l9("",B.csp_nonce);this.D("web_player_deprecated_uvr_killswitch");try{var W=document.location.toString()}catch(TP){W=""}this.yl=W;this.ancestorOrigins=(R=window.location.ancestorOrigins)? Array.from(R):[];this.W=WZ(!1,z?z.isEmbed:B.is_embed);if(z&&z.device){if(R=z.device,R.androidOsExperience&&(this.T.caoe=""+R.androidOsExperience),R.androidPlayServicesVersion&&(this.T.capsv=""+R.androidPlayServicesVersion),R.brand&&(this.T.cbrand=R.brand),R.browser&&(this.T.cbr=R.browser),R.browserVersion&&(this.T.cbrver=R.browserVersion),R.cobaltReleaseVehicle&&(this.T.ccrv=""+R.cobaltReleaseVehicle),this.T.c=R.interfaceName||"WEB",this.T.cver=R.interfaceVersion||"html5",R.interfaceTheme&&(this.T.ctheme= R.interfaceTheme),this.T.cplayer=R.interfacePlayerType||"UNIPLAYER",R.model&&(this.T.cmodel=R.model),R.network&&(this.T.cnetwork=R.network),R.os&&(this.T.cos=R.os),R.osVersion&&(this.T.cosver=R.osVersion),R.platform&&(this.T.cplatform=R.platform),W=zk(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),W==="all"||W==="once")R.chipset&&(this.Sk.cchip=R.chipset),R.cobaltAppVersion&&(this.Sk.ccappver=R.cobaltAppVersion),R.firmwareVersion&&(this.Sk.cfrmver=R.firmwareVersion),R.deviceYear&&(this.Sk.crqyear= R.deviceYear)}else this.T.c=B.c||"web",this.T.cver=B.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=z?this.W||qUd(this)&&z.loaderUrl?z.loaderUrl||"":this.yl:this.W||qUd(this)&&B.loaderUrl?l9("",B.loaderUrl):this.yl;this.W&&g.Zz("yt.embedded_player.embed_url",this.loaderUrl);this.J=Bj(this.loaderUrl,i$B);R=this.loaderUrl;var b=b===void 0?!1:b;this.b4=SA(Bj(R,cHz),R,b,"Trusted Ad Domain URL");this.s0=WZ(!1,B.privembed);this.protocol=this.yl.indexOf("http:")===0?"http":"https";this.yW=lYK((z? z.customBaseYoutubeUrl:B.BASE_YT_URL)||"")||lYK(this.yl)||this.protocol+"://www.youtube.com/";b=z?z.eventLabel:B.el;R="detailpage";b==="adunit"?R=this.W?"embedded":"detailpage":b==="embedded"||this.J?R=b9(R,b,L6Y):b&&(R="embedded");this.XE=R;PAY();b=null;R=z?z.playerStyle:B.ps;W=g.F5(CiP,R);!R||W&&!this.J||(b=R);this.playerStyle=b;this.X=g.F5(CiP,this.playerStyle);this.houseBrandUserStatus=z==null?void 0:z.houseBrandUserStatus;this.UE=this.X&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.EM=!this.UE;this.IK=WZ(!1,B.disableplaybackui);this.disablePaidContentOverlay=WZ(!1,z==null?void 0:z.disablePaidContentOverlay);this.disableSeek=WZ(!1,z==null?void 0:z.disableSeek);this.enableSpeedOptions=(z==null?void 0:z.enableSpeedOptions)||(pW().defaultPlaybackRate?Uf||g.zh||Mj?g.jg&&gw("20")||g.PG&&gw("4")||g.VW&&gw("11")||sD():!(g.VW&&!g.NR("chrome")||Uf||g.NR("android")||g.NR("silk")):!1);this.k9=WZ(!1,B.enable_faster_speeds);var l;this.supportsVarispeedExtendedFeatures=(l=z==null?void 0: z.supportsVarispeedExtendedFeatures)!=null?l:!1;this.U=WZ(this.playerStyle==="blazer",B.is_html5_mobile_device||z&&z.isMobileDevice);this.Kf=BZ()||Th();this.Zy=this.D("mweb_allow_background_playback")?!1:this.U&&!this.X;this.zZ=Da();this.xj=g.QW;var w;this.DX=!!(z==null?0:(w=z.embedsHostFlags)==null?0:w.optOutApiDeprecation);var q;this.Wk=!!(z==null?0:(q=z.embedsHostFlags)==null?0:q.allowPfpImaIntegration);this.tU=this.D("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var c;z?z.hideInfo!== void 0&&(c=!z.hideInfo):c=B.showinfo;this.P8=g.yW(this)&&!this.DX||WZ(!gP(this)&&!Jq(this)&&!this.X,c);this.zc=z?!!z.mobileIphoneSupportsInlinePlayback:WZ(!1,B.playsinline);l=this.U&&pY&&$C!=null&&$C>0&&$C<=2.3;w=z?z.useNativeControls:B.use_native_controls;this.L=g.yW(this)&&this.U;q=this.U&&!this.L;w=g.Po(this)||!l&&WZ(q,w)?"3":"1";this.disableOrganicUi=!(z==null||!z.disableOrganicUi);q=z?z.controlsType:B.controls;this.controlsType=this.disableOrganicUi||q==="0"||q===0?"0":w;this.g2=this.U;this.color= b9("red",z?z.progressBarColor:B.color,rHK);this.UI=this.controlsType==="3";this.JZ=!this.W;this.c8=(w=!this.JZ&&!Jq(this)&&!this.UE&&!this.X&&!gP(this))&&!this.UI&&this.controlsType==="1";this.pF=g.xC(this)&&w&&this.controlsType==="0"&&!this.c8&&!(z==null?0:z.embedsEnableEmc3ds);this.yj=this.l4=l;this.LF=(this.controlsType==="3"||this.U||WZ(!1,B.use_media_volume))&&!this.L;this.yr=ED&&!g.QQ(601)?!1:!0;this.Hk=this.W||!1;this.C4=Jq(this)?"":(this.loaderUrl||B.post_message_origin||"").substring(0,128); this.widgetReferrer=l9("",z?z.widgetReferrer:B.widget_referrer);var L;z?z.disableCastApi&&(L=!1):L=B.enablecastapi;L=!this.J||WZ(!0,L);l=!0;z&&z.disableMdxCast&&(l=!1);this.fY=this.D("enable_cast_for_web_unplugged")&&g.vo(this)&&l||g.f0(this)&&l||L&&l&&this.controlsType==="1"&&!this.U&&(Jq(this)||g.xC(this)||g.Df(this));this.qk=!!window.document.pictureInPictureEnabled||vG();L=z?!!z.supportsAutoplayOverride:WZ(!1,B.autoplayoverride);this.mD=!(this.U&&!g.yW(this))&&!g.NR("nintendo wiiu")||L;this.ZS= (z?!!z.enableMutedAutoplay:WZ(!1,B.mutedautoplay))&&!1;L=(Jq(this)||gP(this))&&this.playerStyle==="blazer";this.AY=z?!!z.disableFullscreen:!WZ(!0,B.fs);l=g.cZ(g.kC(this))&&g.yW(this);this.U0=!this.AY&&(L||g.Gh())&&!l;this.YD=this.D("html5_picture_in_picture_logging_onresize");var C;this.nL=(C=g.rk(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?C:.33;this.l9=this.D("html5_picture_in_picture_blocking_onresize");this.nt=this.D("html5_picture_in_picture_blocking_ontimeupdate"); this.OI=this.D("html5_picture_in_picture_blocking_document_fullscreen");this.Fo=this.D("html5_picture_in_picture_blocking_standard_api");C=to()&&gw(58)&&!Th();L=XJ||typeof MediaSource==="undefined";this.Q_=this.D("uniplayer_block_pip")&&(C||L)||this.l9||this.nt||this.Fo;C=g.yW(this)&&!this.DX;var r;z?z.disableRelatedVideos!==void 0&&(r=!z.disableRelatedVideos):r=B.rel;this.t0=C||WZ(!this.X,r);this.c_=WZ(!1,z?z.enableContentOwnerRelatedVideos:B.co_rel);this.N=Th()&&$C>0&&$C<=4.4?"_top":"_blank";this.yn= g.Df(this);this.YY=WZ(this.playerStyle==="blazer",z?z.enableCsiLogging:B.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;case "gmail":r="gm";break;case "gac":r="ga";break;case "ads-preview":r="ap";break;case "books":r="gb";break;case "docs":case "flix":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r="go";break;case "play":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r="hm";break;case "photos-edu":case "picasaweb":r="pw";break; default:r="yt"}this.TZ=r;this.WD=l9("",z?z.authorizedUserIndex:B.authuser);this.ra=g.yW(this)&&(this.s0||!FSr()||this.Kf);var F;z?z.disableWatchLater!==void 0&&(F=!z.disableWatchLater):F=B.showwatchlater;this.S6=((r=!this.ra)||!!this.WD&&r)&&WZ(!this.UE,this.J?F:void 0);this.qr=z?z.isMobileDevice||!!z.disableKeyboardControls:WZ(!1,B.disablekb);this.loop=WZ(!1,B.loop);this.pageId=l9("",z?z.initialDelegatedSessionId:B.pageid);this.P_=WZ(!0,B.canplaylive);this.eI=WZ(!1,B.livemonitor);this.disableSharing= WZ(this.X,z?z.disableSharing:B.ss);(F=z&&this.D("fill_video_container_size_override_from_wpcc")?z.videoContainerOverride:B.video_container_override)?(r=F.split("x"),r.length!==2?F=null:(F=Number(r[0]),r=Number(r[1]),F=isNaN(F)||isNaN(r)||F*r<=0?null:new g.PY(F,r))):F=null;this.Ic=F;this.mute=z?!!z.startMuted:WZ(!1,B.mute);this.storeUserVolume=!this.mute&&WZ(this.controlsType!=="0",z?z.storeUserVolume:B.store_user_volume);F=z?z.annotationsLoadPolicy:B.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:b9(void 0,F,KY);this.captionsLanguagePreference=z?z.captionsLanguagePreference||"":l9("",B.cc_lang_pref);F=b9(2,z?z.captionsLanguageLoadPolicy:B.cc_load_policy,KY);this.controlsType==="3"&&F===2&&(F=3);this.Yo=F;this.R7=z?z.hl||"en_US":l9("en_US",B.hl);this.region=z?z.contentRegion||"US":l9("US",B.cr);this.hostLanguage=z?z.hostLanguage||"en":l9("en",B.host_language);this.wY=!this.s0&&Math.random()=480;this.schedule=new LY(L,new nUH(this.experiments),h);g.m(this,this.schedule);var A;this.enableSafetyMode=(A=z==null?void 0:z.initialEnableSafetyMode)!=null? A:WZ(!1,B.enable_safety_mode);h=this.IK?!1:Jq(this)&&this.playerStyle!=="blazer";var a;z?z.disableAutonav!=null&&(a=!z.disableAutonav):a=B.allow_autonav;this.Nh=WZ(h,!this.UE&&a);this.sendVisitorIdHeader=z?!!z.sendVisitorIdHeader:WZ(!1,B.send_visitor_id_header);var V;this.playerStyle==="docs"&&(z?V=z.disableNativeContextMenu:V=B.disable_native_context_menu);this.disableNativeContextMenu=WZ(!1,V);this.Pk=gk(this)&&this.D("enable_skip_intro_button");this.embedConfig=l9("",z?z.serializedEmbedConfig: B.embed_config);this.RK=i9(B,g.yW(this));this.Y=this.RK==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(z==null||!z.embedsErrorLinks);this.a$=WZ(!1,B.full_window);var M;this.MG=!((M=this.webPlayerContextConfig)==null?0:M.chromeless);var x;this.livingRoomAppMode=b9("LIVING_ROOM_APP_MODE_UNSPECIFIED",B.living_room_app_mode||(z==null?void 0:(x=z.device)==null?void 0:x.livingRoomAppMode),ImB);var v;a=YK(NaN,z==null?void 0:(v=z.device)==null?void 0:v.deviceYear);isNaN(a)||(this.deviceYear=a);this.transparentBackground= z?!!z.transparentBackground:WZ(!1,B.transparent_background);this.showMiniplayerButton=z?!!z.showMiniplayerButton:WZ(!1,B.show_miniplayer_button);var n;g.yW(this)&&!(z==null?0:(n=z.embedsHostFlags)==null?0:n.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=z?!!z.externalFullscreen:WZ(!1,B.external_fullscreen);this.showMiniplayerUiWhenMinimized=z?!!z.showMiniplayerUiWhenMinimized:WZ(!1,B.use_miniplayer_ui);var Z;this.qV=(Z=B.show_loop_video_toggle)!=null?Z:!0;this.Vj=Math.random()< 1E-4;this.Ua=B.onesie_hot_config||(z==null?0:z.onesieHotConfig)?new Bfr(B.onesie_hot_config,z==null?void 0:z.onesieHotConfig):void 0;this.isTectonic=z?!!z.isTectonic:!!B.isTectonic;this.playerCanaryState=T;this.playerCanaryStage=z==null?void 0:z.canaryStage;this.Ip=new lml;g.m(this,this.Ip);this.datasyncId=(z==null?void 0:z.datasyncId)||g.ek("DATASYNC_ID");this.TG=g.ek("LOGGED_IN",!1);this.BV=(z==null?void 0:z.allowWoffleManagement)||!1;this.Oa=Infinity;this.O6=NaN;this.livingRoomPoTokenId=z==null? void 0:z.livingRoomPoTokenId;this.D("html5_high_res_logging_always")?this.r3=!0:this.r3=Math.random()*100=0&&B0&&B.Vj&&(R.sort(),g.KV(new g.Z_("Player client parameters changed after startup",R)));B.userAge=YK(B.userAge,z.user_age);B.Mg=l9(B.Mg,z.user_display_email);B.userDisplayImage=l9(B.userDisplayImage,z.user_display_image);g.T8(B.userDisplayImage)||(B.userDisplayImage= "");B.userDisplayName=l9(B.userDisplayName,z.user_display_name);B.Up=l9(B.Up,z.user_gender);B.csiPageType=l9(B.csiPageType,z.csi_page_type);B.csiServiceName=l9(B.csiServiceName,z.csi_service_name);B.YY=WZ(B.YY,z.enablecsi);B.pageId=l9(B.pageId,z.pageid);if(T=z.enabled_engage_types)B.enabledEngageTypes=new Set(T.split(","));z.living_room_session_po_token&&(B.Qn=z.living_room_session_po_token.toString())}; fY=function(B,z){return!B.X&&to()&&gw(55)&&B.controlsType==="3"&&!z}; g.Of=function(B){B=mR(B.yW);return B==="www.youtube-nocookie.com"?"www.youtube.com":B}; Nj=function(B,z,T){return B.protocol+"://i1.ytimg.com/vi/"+z+"/"+(T||"hqdefault.jpg")}; tq=function(B){return Jq(B)&&!g.vo(B)}; g.Po=function(B){return B.D("html5_local_playsinline")?ED&&!g.QQ(602)&&!("playsInline"in pW()):ED&&!B.zc||g.NR("nintendo wiiu")?!0:!1}; g.Sg=function(B){return B.T.c}; g.JS=function(B){return/^TVHTML5/.test(g.Sg(B))}; g.jj=function(B){return g.Sg(B)==="TVHTML5"}; qUd=function(B){return g.Sg(B)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; F6K=function(B){return B.T.cmodel==="CHROMECAST ULTRA/STEAK"||B.T.cmodel==="CHROMECAST/STEAK"}; g.Xk=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; gk=function(B){return/web/i.test(g.Sg(B))}; g.Zf=function(B){return g.Sg(B).toUpperCase()==="WEB"}; uq=function(B){return g.Sg(B)==="WEB_KIDS"}; g.vo=function(B){return g.Sg(B)==="WEB_UNPLUGGED"}; ej=function(B){return g.Sg(B)==="TVHTML5_UNPLUGGED"}; g.y9=function(B){return g.vo(B)||g.Sg(B)==="TV_UNPLUGGED_CAST"||ej(B)}; g.f0=function(B){return g.Sg(B)==="WEB_REMIX"}; g.sf=function(B){return g.Sg(B)==="WEB_EMBEDDED_PLAYER"}; g.Sj=function(B){return(B.deviceIsAudioOnly||!g.PG||XJ||B.controlsType==="3"?!1:g.zh?B.W&&g.QQ(51):!0)||(B.deviceIsAudioOnly||!g.jg||XJ||B.controlsType==="3"?!1:g.zh?B.W&&g.QQ(48):g.QQ(38))||(B.deviceIsAudioOnly||!g.VW||XJ||B.controlsType==="3"?!1:g.zh?B.W&&g.QQ(37):g.QQ(27))||!B.deviceIsAudioOnly&&g.Ef&&!avb()&&g.QQ(11)||!B.deviceIsAudioOnly&&g.Ax&&g.QQ("604.4")}; AHB=function(B){if(g.xC(B)&&pY)return!1;if(g.jg){if(!g.QQ(47)||!g.QQ(52)&&g.QQ(51))return!1}else if(g.Ax)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; UrH=function(B,z){return B.enabledEngageTypes.has(z.toString())||amX.includes(z)}; Jq=function(B){return B.XE==="detailpage"}; g.xC=function(B){return B.XE==="embedded"}; B3=function(B){return B.XE==="leanback"}; gP=function(B){return B.XE==="adunit"||B.playerStyle==="gvn"}; g.Df=function(B){return B.XE==="profilepage"}; g.yW=function(B){return B.W&&g.xC(B)&&!gP(B)&&!B.X}; zi=function(B){if(!B.userDisplayImage)return"";var z=B.userDisplayImage.split("/");if(z.length===5)return B=z[z.length-1].split("="),B[1]="s20-c",z[z.length-1]=B.join("="),z.join("/");if(z.length===8)return z.splice(7,0,"s20-c"),z.join("/");if(z.length===9)return z[7]+="-s20-c",z.join("/");g.KV(new g.Z_("Profile image not a FIFE URL.",B.userDisplayImage));return B.userDisplayImage}; g.Ti=function(B){var z=g.Of(B);MZz.includes(z)&&(z="www.youtube.com");return B.protocol+"://"+z}; g.RQ=function(B,z){z=z===void 0?"":z;if(B.Rn){var T=new Bq,R,h=B.Rn();h.signedOut?R="":h.token?R=h.token:h.pendingResult.then(function(W){h.signedOut?T.resolve(""):T.resolve(W.token)},function(W){g.KV(new g.Z_("b189348328_oauth_callback_failed",{error:W})); T.resolve(z)}); return R!==void 0?vP(R):new PP(T)}return vP(z)}; W3=function(B,z){z=z===void 0?"":z;return B.TG?CX(!0):Gc(IL(CX(g.RQ(B,z)),function(T){return CX(!!T)}),function(){return CX(!1)})}; mR=function(B){var z=g.GK(B);return(B=Number(g.It(B)[4]||null)||null)?z+":"+B:z}; be=function(B,z){z=z===void 0?!1:z;var T=Oz[B],R=VZK[T],h=Qpl[B];if(!h||!R)return null;z=new uF(z?h.height:h.width,z?h.width:h.height,h.fps);R=d_(R,z,T);return new N_(B,R,{video:z,kd:h.bitrate/8})}; gYb=function(B){var z=VZK[Oz[B]],T=yHX[B];return T&&z?new N_(B,z,{audio:new KW(T.audioSampleRate,T.numChannels)}):null}; YO=function(B){this.T=B}; le=function(B,z,T,R){if(T)return xv();T={};var h=pW();z=g.d(z);for(var W=z.next();!W.done;W=z.next())if(W=W.value,B.canPlayType(h,W.getInfo().mimeType)||R){var b=W.T.video.quality;if(!T[b]||T[b].getInfo().Of())T[b]=W}B=[];T.auto&&B.push(T.auto);R=g.d(HG);for(h=R.next();!h.done;h=R.next())(h=T[h.value])&&B.push(h);return B.length?vP(B):xv()}; JHX=function(B){this.itag=B.itag;this.url=B.url;this.codecs=B.codecs;this.width=B.width;this.height=B.height;this.fps=B.fps;this.bitrate=B.bitrate;var z;this.U=((z=B.audioItag)==null?void 0:z.split(","))||[];this.V6=B.V6;this.Ft=B.Ft||"";this.HB=B.HB;this.audioChannels=B.audioChannels;this.T=""}; pTK=function(B,z,T,R){z=z===void 0?!1:z;T=T===void 0?!0:T;R=R===void 0?{}:R;var h={};B=g.d(B);for(var W=B.next();!W.done;W=B.next()){W=W.value;if(z&&MediaSource&&MediaSource.isTypeSupported){var b=W.type;W.audio_channels&&(b=b+"; channels="+W.audio_channels);if(!MediaSource.isTypeSupported(b)){R[W.itag]="tpus";continue}}if(T||!W.drm_families||W.eotf!=="smpte2084"&&W.eotf!=="arib-std-b67"){b=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},w=W.type.match(/codecs="([^"]*)"/); w=w?w[1]:"";W.audio_track_id&&(b=new g.Cj(W.name,W.audio_track_id,!!W.is_default));var q=W.eotf;W=new JHX({itag:W.itag,url:W.url,codecs:w,width:Number(W.width),height:Number(W.height),fps:Number(W.fps),bitrate:Number(W.bitrate),audioItag:W.audio_itag,V6:q?l[q]:void 0,Ft:W.drm_families,HB:b,audioChannels:Number(W.audio_channels)});h[W.itag]=h[W.itag]||[];h[W.itag].push(W)}else R[W.itag]="enchdr"}return h}; $rY=function(B,z,T,R,h){this.Y=B;this.U=z;this.V=T;this.cpn=R;this.X=h;this.W=0;this.T=""}; Piz=function(B,z){B.Y.some(function(T){var R;return((R=T.HB)==null?void 0:R.getId())===z}); B.T=z}; wo=function(B,z,T){B.cpn&&(z=g.Qn(z,{cpn:B.cpn}));T&&(z=g.Qn(z,{paired:T}));return z}; xr5=function(B,z){B=B.itag.toString();z!==null&&(B+=z.itag.toString());return B}; vYz=function(B){for(var z=[],T=[],R=g.d(B.U),h=R.next();!h.done;h=R.next())h=h.value,h.bitrate<=B.W?z.push(h):T.push(h);z.sort(function(W,b){return b.bitrate-W.bitrate}); T.sort(function(W,b){return W.bitrate-b.bitrate}); B.U=z.concat(T)}; qT=function(B,z,T){this.T=B;this.U=z;this.expiration=T;this.Rx=null}; Drb=function(B,z){if(!(XJ||eH()||XN()))return null;B=pTK(z,B.D("html5_filter_fmp4_in_hls"));if(!B)return null;z=[];for(var T={},R=g.d(Object.keys(B)),h=R.next();!h.done;h=R.next()){h=g.d(B[h.value]);for(var W=h.next();!W.done;W=h.next()){var b=W.value;b.HB&&(W=b.HB.getId(),T[W]||(b=new g.ba(W,b.HB),T[W]=b,z.push(b)))}}return z.length>0?z:null}; uTK=function(B,z,T,R,h,W,b){if(!(XJ||eH()||XN()))return xv();var l={},w=kI5(T),q=pTK(T,B.D("html5_filter_fmp4_in_hls"),B.V.L,l);if(!q)return b({noplst:1}),xv();K6K(q);T={};var c=(T.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",T),L;T=[];var C=[],r=[],F=null,A="";R=R&&R.match(/hls_timedtext_playlist/)?new JHX({itag:"0",url:R,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,HB:new g.Cj("English","en",!1)}):null;for(var a=g.d(Object.keys(q)),V=a.next();!V.done;V=a.next())if(V=V.value,!B.D("html5_disable_drm_hfr_1080")|| V!=="383"&&V!=="373"){V=g.d(q[V]);for(var M=V.next();!M.done;M=V.next())if(M=M.value,M.width){for(var x=g.d(M.U),v=x.next();!v.done;v=x.next())if(v=v.value,q[v]){M.T=v;break}M.T||(M.T=mrz(q,M));if(x=q[M.T])if(T.push(M),M.Ft==="fairplay"&&(L=c),v="",M.V6==="PQ"?v="smpte2084":M.V6==="HLG"&&(v="arib-std-b67"),v&&(A=v),r.push(nYz(x,[M],R,W,M.itag,M.width,M.height,M.fps,w,void 0,void 0,L,v)),!F||M.width*M.height*M.fps>F.width*F.height*F.fps)F=M}else C.push(M)}else l[V]="disdrmhfr";r.reduce(function(n, Z){return Z.getInfo().isEncrypted()&&n},!0)&&(L=c); h=Math.max(h,0);c=F||{};q=c.fps===void 0?0:c.fps;F=c.width===void 0?0:c.width;c=c.height===void 0?0:c.height;a=B.D("html5_native_audio_track_switching");r.push(nYz(C,T,R,W,"93",F,c,q,w,"auto",h,L,A,a));Object.entries(l).length&&b(l);return le(B.V,r,fY(B,z),!1)}; nYz=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r){for(var F=0,A="",a=g.d(B),V=a.next();!V.done;V=a.next())V=V.value,A||(A=V.itag),V.audioChannels&&V.audioChannels>F&&(F=V.audioChannels,A=V.itag);h=new N_(h,"application/x-mpegURL",{audio:new KW(0,F),video:new uF(W,b,l,null,void 0,q,void 0,C),Ft:L,uQ:A});B=new $rY(B,z,T?[T]:[],R,!!r);B.W=c?c:1369843;return new qT(h,B,w)}; kI5=function(B){B=g.d(B);for(var z=B.next();!z.done;z=B.next())if(z=z.value,z.url&&(z=z.url.split("expire/"),!(z.length<=1)))return+z[1].split("/")[0];return NaN}; mrz=function(B,z){for(var T=g.d(Object.keys(B)),R=T.next();!R.done;R=T.next()){R=R.value;var h=B[R][0];if(!h.width&&h.Ft===z.Ft&&!h.audioChannels)return R}return""}; K6K=function(B){for(var z=new Set,T=g.d(Object.values(B)),R=T.next();!R.done;R=T.next())R=R.value,R.length&&(R=R[0],R.height&&R.codecs.startsWith("vp09")&&z.add(R.height));T=[];if(z.size){R=g.d(Object.keys(B));for(var h=R.next();!h.done;h=R.next())if(h=h.value,B[h].length){var W=B[h][0];W.height&&z.has(W.height)&&!W.codecs.startsWith("vp09")&&T.push(h)}}z=g.d(T);for(T=z.next();!T.done;T=z.next())delete B[T.value]}; ie=function(B,z){this.T=B;this.U=z}; H$K=function(B,z,T,R){var h=[];T=g.d(T);for(var W=T.next();!W.done;W=T.next()){var b=W.value;if(b.url){W=new g.QP(b.url,!0);if(b.s){var l=W,w=b.sp,q=Had(decodeURIComponent(b.s));l[Y[19]](w,encodeURIComponent(q))}l=g.d(Object.keys(R));for(w=l.next();!w.done;w=l.next())w=w.value,W.set(w,R[w]);b=hf(b.type,b.quality,b.itag,b.width,b.height);h.push(new ie(b,W))}}return le(B.V,h,fY(B,z),!1)}; c3=function(B,z){this.T=B;this.U=z}; fmd=function(B,z,T){var R=[];T=g.d(T);for(var h=T.next();!h.done;h=T.next())if((h=h.value)&&h.url){var W=hf(h.type,"medium","0");R.push(new c3(W,h.url))}return le(B.V,R,fY(B,z),!1)}; O$B=function(B,z){var T=[],R=hf(z.type,"auto",z.itag);T.push(new c3(R,z.url));return le(B.V,T,!1,!0)}; tZY=function(B){return B&&NfK[B]?NfK[B]:null}; jpK=function(B){switch(B){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":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 B;default:return"sabr.config"}}; XTr=function(B){if(B=B.commonConfig)this.url=B.url,this.urlQueryOverride=B.urlQueryOverride,B.ustreamerConfig&&(this.fU=bq(B.ustreamerConfig)||void 0)}; Z$K=function(B,z){var T;if(z=z==null?void 0:(T=z.watchEndpointSupportedOnesieConfig)==null?void 0:T.html5PlaybackOnesieConfig)B.Az=new XTr(z)}; g.Lb=function(B){B=B===void 0?{}:B;this.languageCode=B.languageCode||"";this.languageName=B.languageName||null;this.kind=B.kind||"";this.name=B.name===void 0?null:B.name;this.displayName=B.displayName||null;this.id=B.id||null;this.T=B.is_servable||!1;this.isTranslateable=B.is_translateable||!1;this.url=B.url||null;this.vssId=B.vss_id||"";this.isDefault=B.is_default||!1;this.translationLanguage=B.translationLanguage||null;this.xtags=B.xtags||"";this.captionId=B.captionId||""}; g.ro=function(B){var z={languageCode:B.languageCode,languageName:B.languageName,displayName:g.Cb(B),kind:B.kind,name:B.name,id:B.id,is_servable:B.T,is_default:B.isDefault,is_translateable:B.isTranslateable,vss_id:B.vssId};B.xtags&&(z.xtags=B.xtags);B.captionId&&(z.captionId=B.captionId);B.translationLanguage&&(z.translationLanguage=B.translationLanguage);return z}; g.oQ=function(B){return B.translationLanguage?B.translationLanguage.languageCode:B.languageCode}; g.ei5=function(B){var z=B.vssId;B.translationLanguage&&z&&(z="t"+z+"."+g.oQ(B));return z}; g.Cb=function(B){var z=[];if(B.displayName)z.push(B.displayName);else{var T=B.languageName||"";z.push(T);B.kind==="asr"&&T.indexOf("(")===-1&&z.push(" (Automatic Captions)");B.name&&z.push(" - "+B.name)}B.translationLanguage&&z.push(" >> "+B.translationLanguage.languageName);return z.join("")}; BrK=function(B,z,T,R){B||(B=z&&spl.hasOwnProperty(z)&&EYz.hasOwnProperty(z)?EYz[z]+"_"+spl[z]:void 0);z=B;if(!z)return null;B=z.match(SUz);if(!B||B.length!==5)return null;if(B=z.match(SUz)){var h=Number(B[3]),W=[7,8,10,5,6];B=!(Number(B[1])===1&&h===8)&&W.indexOf(h)>=0}else B=!1;return T||R||B?z:null}; FS=function(B,z){for(var T={},R=g.d(Object.keys(zTz)),h=R.next();!h.done;h=R.next()){h=h.value;var W=z?z+h:h;W=B[W+"_webp"]||B[W];g.T8(W)&&(T[zTz[h]]=W)}return T}; IQ=function(B){var z={};if(!B||!B.thumbnails)return z;B=B.thumbnails.filter(function(l){return!!l.url}); B.sort(function(l,w){return l.width-w.width||l.height-w.height}); for(var T=g.d(Object.keys(TrH)),R=T.next();!R.done;R=T.next()){var h=Number(R.value);R=TrH[h];for(var W=g.d(B),b=W.next();!b.done;b=W.next())if(b=b.value,b.width>=h){h=RTK(b.url);g.T8(h)&&(z[R]=h);break}}(B=B.pop())&&B.width>=1280&&(B=RTK(B.url),g.T8(B)&&(z["maxresdefault.jpg"]=B));return z}; RTK=function(B){return B.startsWith("//")?"https:"+B:B}; Gi=function(B){return B&&B.baseUrl||""}; Ab=function(B){B=g.bA(B);for(var z=g.d(Object.keys(B)),T=z.next();!T.done;T=z.next()){T=T.value;var R=B[T];B[T]=Array.isArray(R)?R[0]:R}return B}; hTB=function(B,z){B.botguardData=z.playerAttestationRenderer.botguardData;z=z.playerAttestationRenderer.challenge;z!=null&&(B.H_=z)}; YsY=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next()){T=T.value;var R=T.interstitials.map(function(b){var l=g.u(b,WEB);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(b=g.u(b,bCB))return Object.assign({is_yto_interstitial:!0},ho(b))}); R=g.d(R);for(var h=R.next();!h.done;h=R.next())switch(h=h.value,T.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":B.interstitials=B.interstitials.concat({time:0,playerVars:h,eb:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":B.interstitials=B.interstitials.concat({time:0x7ffffffffffff,playerVars:h,eb:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var W=Number(T.podConfig.timeToInsertAtMillis);B.interstitials=B.interstitials.concat({time:W,playerVars:h, eb:W===0?5:7})}}}; l1r=function(B,z){if(z=z.find(function(T){return!(!T||!T.tooltipRenderer)}))B.tooltipRenderer=z.tooltipRenderer}; wIz=function(B,z){z.subscribeCommand&&(B.subscribeCommand=z.subscribeCommand);z.unsubscribeCommand&&(B.unsubscribeCommand=z.unsubscribeCommand);z.addToWatchLaterCommand&&(B.addToWatchLaterCommand=z.addToWatchLaterCommand);z.removeFromWatchLaterCommand&&(B.removeFromWatchLaterCommand=z.removeFromWatchLaterCommand);z.getSharePanelCommand&&(B.getSharePanelCommand=z.getSharePanelCommand)}; qsl=function(B,z){z!=null?(B.Bk=z,B.Jj=!0):(B.Bk="",B.Jj=!1)}; aQ=function(B,z){this.type=B||"";this.id=z||""}; g.U2=function(B){return new aQ(B.substring(0,2),B.substring(2))}; g.MT=function(B,z){this.bO=B;this.author="";this.FN=null;this.playlistLength=0;this.T=this.sessionData=null;this.J={};this.title="";if(z){this.author=z.author||z.playlist_author||"";this.title=z.playlist_title||"";if(B=z.session_data)this.sessionData=TF(B,"&");var T;this.T=((T=z.thumbnail_ids)==null?void 0:T.split(",")[0])||null;this.J=FS(z,"playlist_");this.videoId=z.video_id||void 0;if(T=z.list)switch(z.listType){case "user_uploads":this.playlistId=(new aQ("UU","PLAYER_"+T)).toString();break;default:if(B= z.playlist_length)this.playlistLength=Number(B)||0;this.playlistId=g.U2(T).toString();if(z=z.video)this.videoId=(z[0]||null).video_id||void 0}else z.playlist&&(this.playlistLength=z.playlist.toString().split(",").length)}}; g.VB=function(B,z){this.bO=B;this.Dd=this.author="";this.FN=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.BS=this.lengthText="";this.sessionData=null;this.J={};this.title="";if(z){this.ariaLabel=z.aria_label||void 0;this.author=z.author||"";this.Dd=z.Dd||"";if(B=z.endscreen_autoplay_session_data)this.FN=TF(B,"&");this.Gk=z.Gk;this.isLivePlayback=z.live_playback==="1";this.isUpcoming=!!z.isUpcoming;if(B=z.length_seconds)this.lengthSeconds=typeof B==="string"?Number(B):B;this.lengthText= z.lengthText||"";this.BS=z.BS||"";this.publishedTimeText=z.publishedTimeText||void 0;if(B=z.session_data)this.sessionData=TF(B,"&");this.shortViewCount=z.short_view_count_text||void 0;this.J=FS(z);this.title=z.title||"";this.videoId=z.docid||z.video_id||z.videoId||z.id||void 0;this.watchUrl=z.watchUrl||void 0}}; iCX=function(B){var z,T,R=(z=B.getWatchNextResponse())==null?void 0:(T=z.contents)==null?void 0:T.twoColumnWatchNextResults,h,W,b,l,w;B=(h=B.getWatchNextResponse())==null?void 0:(W=h.playerOverlays)==null?void 0:(b=W.playerOverlayRenderer)==null?void 0:(l=b.endScreen)==null?void 0:(w=l.watchNextEndScreenRenderer)==null?void 0:w.results;if(!B){var q,c;B=R==null?void 0:(q=R.endScreen)==null?void 0:(c=q.endScreen)==null?void 0:c.results}return B}; g.yB=function(B){var z,T,R;B=g.u((z=B.getWatchNextResponse())==null?void 0:(T=z.playerOverlays)==null?void 0:(R=T.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,QB);return g.u(B==null?void 0:B.playerBar,cMz)}; LEX=function(B){this.T=B.playback_progress_0s_url;this.Y=B.playback_progress_2s_url;this.U=B.playback_progress_10s_url}; CIb=function(){if(go===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(z){}a:{try{var B=!!self.localStorage}catch(z){B=!1}if(B&&(B=g.n2(g.eT()+"::yt-player"))){go=new Nk(B);break a}go=void 0}}return go}; g.Jb=function(){var B=CIb();if(!B)return{};try{var z=B.get("yt-player-lv");return JSON.parse(z||"{}")}catch(T){return{}}}; g.rMz=function(B){var z=CIb();z&&(B=JSON.stringify(B),z.set("yt-player-lv",B))}; g.pb=function(B){return g.Jb()[B]||0}; g.$O=function(B,z){var T=g.Jb();z!==T[B]&&(z!==0?T[B]=z:delete T[B],g.rMz(T))}; g.P3=function(B){return g.D(function(z){return z.return(g.Nw(oLz(),B))})}; v3=function(B,z,T,R,h,W,b,l){var w,q,c,L,C,r;return g.D(function(F){switch(F.U){case 1:return w=g.pb(B),w===4?F.return(4):g.P(F,g.Sd(),2);case 2:q=F.T;if(!q)throw g.Uj("wiac");if(!l||b===void 0){F.jI(3);break}return g.P(F,FEb(l,b),4);case 4:b=F.T;case 3:return c=T.lastModified||"0",g.P(F,g.P3(q),5);case 5:return L=F.T,g.AK(F,6),xO++,g.P(F,g.P4(L,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",cB:!0},function(A){if(W!==void 0&&b!==void 0){var a=""+B+"|"+z.id+"|"+c+"|"+String(W).padStart(10, "0");a=g.xi(A.objectStore("media"),b,a)}else a=g.VD.resolve(void 0);var V=I1K(B,z.Mr()),M=I1K(B,!z.Mr()),x={fmts:GCr(R),format:T||{}};V=g.xi(A.objectStore("index"),x,V);var v=R.downloadedEndTime===-1;x=v?A.objectStore("index").get(M):g.VD.resolve(void 0);var n={fmts:"music",format:{}};A=v&&h&&!z.Mr()?g.xi(A.objectStore("index"),n,M):g.VD.resolve(void 0);return g.VD.all([A,x,a,V]).then(function(Z){Z=g.d(Z);Z.next();Z=Z.next().value;xO--;var N=g.pb(B);if(N!==4&&v&&h||Z!==void 0&&g.dQb(Z.fmts))N=1,g.$O(B, N);return N})}),8); case 8:return F.return(F.T);case 6:C=g.JK(F);xO--;r=g.pb(B);if(r===4)return F.return(r);g.$O(B,4);throw C;}})}; g.AMd=function(B){var z,T;return g.D(function(R){if(R.U==1)return g.P(R,g.Sd(),2);if(R.U!=3){z=R.T;if(!z)throw g.Uj("ri");return g.P(R,g.P3(z),3)}T=R.T;return R.return(g.P4(T,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(h){var W=IDBKeyRange.bound(B+"|",B+"~");return h.objectStore("index").getAll(W).then(function(b){return b.map(function(l){return l?l.format:{}})})}))})}; UQB=function(B,z,T,R,h){var W,b,l;return g.D(function(w){if(w.U==1)return g.P(w,g.Sd(),2);if(w.U!=3){W=w.T;if(!W)throw g.Uj("rc");return g.P(w,g.P3(W),3)}b=w.T;l=g.P4(b,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(q){var c=""+B+"|"+z+"|"+T+"|"+String(R).padStart(10,"0");return q.objectStore("media").get(c)}); return h?w.return(l.then(function(q){if(q===void 0)throw Error("No data from indexDb");return a1l(h,q)}).catch(function(q){throw new g.Z_("Error while reading chunk: "+q.name+", "+q.message); })):w.return(l)})}; g.dQb=function(B){return B?B==="music"?!0:B.includes("dlt=-1")||!B.includes("dlt="):!1}; I1K=function(B,z){return""+B+"|"+(z?"v":"a")}; GCr=function(B){var z={};return Rc((z.dlt=B.downloadedEndTime.toString(),z.mket=B.maxKnownEndTime.toString(),z.avbr=B.averageByteRate.toString(),z))}; VfK=function(B){var z={},T={};B=g.d(B);for(var R=B.next();!R.done;R=B.next()){var h=R.value,W=h.split("|");h.match(g.MfB)?(R=Number(W.pop()),isNaN(R)?T[h]="?":(W=W.join("|"),(h=z[W])?(W=h[h.length-1],R===W.end+1?W.end=R:h.push({start:R,end:R})):z[W]=[{start:R,end:R}])):T[h]="?"}B=g.d(Object.keys(z));for(R=B.next();!R.done;R=B.next())R=R.value,T[R]=z[R].map(function(b){return b.start+"-"+b.end}).join(","); return T}; D5=function(B){g.Cl.call(this);this.T=null;this.Y=new f2;this.T=null;this.X=new Set;this.crossOrigin=B||""}; Qir=function(B,z,T){for(T=kO(B,T);T>=0;){var R=B.levels[T];if(R.isLoaded(Kb(R,z))&&(R=g.mx(R,z)))return R;T--}return g.mx(B.levels[0],z)}; gLb=function(B,z,T){T=kO(B,T);for(var R,h;T>=0;T--)if(R=B.levels[T],h=Kb(R,z),!R.isLoaded(h)){R=B;var W=T,b=W+"-"+h;R.X.has(b)||(R.X.add(b),R.Y.enqueue(W,{iG:W,HX:h}))}yMB(B)}; yMB=function(B){if(!B.T&&!B.Y.isEmpty()){var z=B.Y.remove();B.T=JMr(B,z)}}; JMr=function(B,z){var T=document.createElement("img");B.crossOrigin&&(T.crossOrigin=B.crossOrigin);T.src=B.levels[z.iG].Pu(z.HX);T.onload=function(){var R=z.iG,h=z.HX;B.T!==null&&(B.T.onload=null,B.T=null);R=B.levels[R];R.loaded.add(h);yMB(B);var W=R.columns*R.rows;h*=W;R=Math.min(h+W-1,R.Ux()-1);h=[h,R];B.publish("l",h[0],h[1])}; return T}; g.nb=function(B,z,T,R){this.level=B;this.W=z;this.loaded=new Set;this.level=B;this.W=z;B=T.split("#");this.width=Math.floor(Number(B[0]));this.height=Math.floor(Number(B[1]));this.frameCount=Math.floor(Number(B[2]));this.columns=Math.floor(Number(B[3]));this.rows=Math.floor(Number(B[4]));this.T=Math.floor(Number(B[5]));this.Y=B[6];this.signature=B[7];this.videoLength=R}; Kb=function(B,z){return Math.floor(z/(B.columns*B.rows))}; g.mx=function(B,z){z>=B.Ek()&&B.oS();var T=Kb(B,z),R=B.columns*B.rows,h=z%R;z=h%B.columns;h=Math.floor(h/B.columns);var W=B.oS()+1-R*T;if(W1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; pIr=function(B,z,T){return(B=B.levels[z])?B.zb(T):-1}; kO=function(B,z){var T=B.W.get(z);if(T)return T;T=B.levels.length;for(var R=0;R=z)return B.W.set(z,R),R;B.W.set(z,T-1);return T-1}; H3=function(B,z,T,R){T=T.split("#");T=[T[1],T[2],0,T[3],T[4],-1,T[0],""].join("#");g.nb.call(this,B,z,T,0);this.U=null;this.V=R?2:0}; fb=function(B,z,T,R){ue.call(this,B,0,void 0,z,!(R===void 0||!R));for(B=0;B(T!=null?T:50)&&(T=nLK.shift())&&Z5.delete(T),T=h),h!==T&&B.cM("ssei","dcpn_"+h+"_"+T+"_"+B.clientPlaybackNonce),T)}; jL=function(B,z){var T=z.raw_watch_next_response;if(!T){var R=z.watch_next_response;R&&(T=JSON.parse(R))}if(T){B.XE=T;var h=B.XE.playerCueRangeSet;h&&g.eL(B,h);var W=B.XE.playerOverlays;if(W){var b=W.playerOverlayRenderer;if(b){var l=b.autonavToggle;l&&(B.autoplaySwitchButtonRenderer=g.u(l,uQK),B.D("web_player_autonav_use_server_provided_state")&&s2(B)&&(B.autonavState=B.autoplaySwitchButtonRenderer.enabled?2:1));var w=b.videoDetails;if(w){var q=w.embeddedPlayerOverlayVideoDetailsRenderer;var c=w.playerOverlayVideoDetailsRenderer; c&&(c.title&&(z.title=g.aU(c.title)),c.subtitle&&(z.subtitle=g.aU(c.subtitle)))}g.xC(B.bO)&&(B.S6=!!b.addToMenu);HCr(B,b.shareButton);b.startPosition&&b.endPosition&&(B.progressBarStartPosition=b.startPosition,B.progressBarEndPosition=b.endPosition);var L=b.gatedActionsOverlayRenderer;L&&(B.yf=g.u(L,f1B));var C,r,F,A=g.u((C=B.getWatchNextResponse())==null?void 0:(r=C.playerOverlays)==null?void 0:(F=r.playerOverlayRenderer)==null?void 0:F.infoPanel,OCY);if(A){B.Fj=Number(A==null?void 0:A.durationMs)|| NaN;if(A==null?0:A.infoPanelOverviewViewModel)B.yl=A==null?void 0:A.infoPanelOverviewViewModel;if(A==null?0:A.infoPanelDetailsViewModel)B.YY=A==null?void 0:A.infoPanelDetailsViewModel}B.showSeekingControls=!!b.showSeekingControls}}var a,V,M=(a=B.getWatchNextResponse())==null?void 0:(V=a.contents)==null?void 0:V.twoColumnWatchNextResults;if(M){var x=M.desktopOverlay&&g.u(M.desktopOverlay,NrK);x&&(x.suppressShareButton&&(B.showShareButton=!1),x.suppressWatchLaterButton&&(B.S6=!1))}q&&tfB(B,z,q);var v= YK(0,z.autoplay_count),n=B.getWatchNextResponse(),Z,N=(Z=n.contents)==null?void 0:Z.twoColumnWatchNextResults,TP,hK,zP,ld=(TP=n.playerOverlays)==null?void 0:(hK=TP.playerOverlayRenderer)==null?void 0:(zP=hK.autoplay)==null?void 0:zP.playerOverlayAutoplayRenderer,t=iCX(B),UH,Qz=(UH=n.contents)==null?void 0:UH.singleColumnWatchNextResults;if(Qz){var vb;if(((vb=Qz.autoplay)==null?0:vb.autoplay)&&!Qz.playlist){var AI=Qz.autoplay.autoplay.sets,lW={},gX=new g.VB(B.K()),Vz=null,hI;if(AI){for(var U=g.d(AI), Yr=U.next();!Yr.done;Yr=U.next()){var tI=Yr.value.autoplayVideoRenderer;if(tI&&tI.compactVideoRenderer){Vz=tI.compactVideoRenderer;break}}if(hI=AI[0].autoplayVideo){var Av=hI.clickTrackingParams;Av&&(lW.itct=Av);lW.autonav="1";lW.playnext=String(v)}}else lW.feature="related-auto";var gF=g.u(hI,g.E2);if(Vz){gX.videoId=Vz.videoId;var rF=Vz.shortBylineText;rF&&(gX.author=g.aU(rF));var mB=Vz.title;mB&&(gX.title=g.aU(mB))}else gF!=null&&gF.videoId&&(gX.videoId=gF.videoId);gX.FN=lW;B.suggestions=[];B.qk= gX}}if(t){for(var v7=[],JI=g.d(t),y=JI.next();!y.done;y=JI.next()){var J=y.value,p=void 0,k=null;if(J.endScreenVideoRenderer){var H=J.endScreenVideoRenderer,az=H.title;k=new g.VB(B.K());k.videoId=H.videoId;k.lengthSeconds=H.lengthInSeconds||0;var Bb=H.publishedTimeText;Bb&&(k.publishedTimeText=g.aU(Bb));var Iz=H.shortBylineText;Iz&&(k.author=g.aU(Iz));var Rz=H.shortViewCountText;Rz&&(k.shortViewCount=g.aU(Rz));if(az){k.title=g.aU(az);var p5=az.accessibility;if(p5){var el=p5.accessibilityData;el&& el.label&&(k.ariaLabel=el.label)}}var Up=H.navigationEndpoint;if(Up){p=Up.clickTrackingParams;var aP=g.u(Up,g.E2),Ph=g.u(Up,g.fl);aP?k.Gk=aP:Ph!=null&&(k.watchUrl=Ph.url)}var OO=H.thumbnailOverlays;if(OO)for(var jz=g.d(OO),Na=jz.next();!Na.done;Na=jz.next()){var GB=Na.value.thumbnailOverlayTimeStatusRenderer;if(GB)if(GB.style==="LIVE"){k.isLivePlayback=!0;break}else if(GB.style==="UPCOMING"){k.isUpcoming=!0;break}}k.J=IQ(H.thumbnail)}else if(J.endScreenPlaylistRenderer){var q1=J.endScreenPlaylistRenderer, Jp=q1.navigationEndpoint;if(!Jp)continue;var oA=g.u(Jp,g.E2);if(!oA)continue;var pJ=oA.videoId;k=new g.MT(B.K());k.playlistId=q1.playlistId;k.playlistLength=Number(q1.videoCount)||0;k.T=pJ||null;k.videoId=pJ;var NF=q1.title;NF&&(k.title=g.aU(NF));var tl=q1.shortBylineText;tl&&(k.author=g.aU(tl));p=Jp.clickTrackingParams;k.J=IQ(q1.thumbnail)}k&&(p&&(k.sessionData={itct:p}),v7.push(k))}B.suggestions=v7}if(ld){B.JE=!!ld.preferImmediateRedirect;B.fF=B.fF||!!ld.webShowNewAutonavCountdown;B.Bp=B.Bp||!!ld.webShowBigThumbnailEndscreen; if(B.fF||B.Bp){var QX=N||null,h2=new g.VB(B.K());h2.videoId=ld.videoId;var t4=ld.videoTitle;if(t4){h2.title=g.aU(t4);var Wh=t4.accessibility;if(Wh){var gy=Wh.accessibilityData;gy&&gy.label&&(h2.ariaLabel=gy.label)}}var Xx=ld.byline;Xx&&(h2.author=g.aU(Xx));var r1=ld.publishedTimeText;r1&&(h2.publishedTimeText=g.aU(r1));var C7=ld.shortViewCountText;C7&&(h2.shortViewCount=g.aU(C7));var rN=ld.thumbnailOverlays;if(rN)for(var o_=g.d(rN),T$=o_.next();!T$.done;T$=o_.next()){var c0=T$.value.thumbnailOverlayTimeStatusRenderer; if(c0)if(c0.style==="LIVE"){h2.isLivePlayback=!0;break}else if(c0.style==="UPCOMING"){h2.isUpcoming=!0;break}else if(c0.style==="DEFAULT"&&c0.text){h2.lengthText=g.aU(c0.text);var FB=c0.text.accessibility;if(FB){var RW=FB.accessibilityData;RW&&RW.label&&(h2.BS=RW.label||"")}break}}h2.J=IQ(ld.background);var I_=ld.nextButton;if(I_){var Gb=I_.buttonRenderer;if(Gb){var dN=Gb.navigationEndpoint;if(dN){var Af=g.u(dN,g.E2);Af&&(h2.Gk=Af)}}}if(ld.topBadges){var a_=ld.topBadges[0];if(a_){var UI=g.u(a_,jil); UI&&UI.style==="BADGE_STYLE_TYPE_PREMIUM"&&(h2.lRK=!0)}}var zz=ld.alternativeTitle;zz&&(h2.Dd=g.aU(zz));var JX={autonav:"1",playnext:String(v)};h2.playlistId&&(JX.autoplay="1");if(QX){var Tz,HD,hY,MM,WS=(Tz=QX.autoplay)==null?void 0:(HD=Tz.autoplay)==null?void 0:(hY=HD.sets)==null?void 0:(MM=hY[0])==null?void 0:MM.autoplayVideo;if(WS){var Vt=WS.clickTrackingParams;Vt&&(JX.itct=Vt);var bo=g.u(WS,g.E2);bo&&(h2.dB=bo)}}else if(ld){var Qt,gN,Jf,p7=(Qt=ld.nextButton)==null?void 0:(gN=Qt.buttonRenderer)== null?void 0:(Jf=gN.navigationEndpoint)==null?void 0:Jf.clickTrackingParams;p7&&(JX.itct=p7)}JX.itct||(JX.feature="related-auto");h2.FN=JX;B.suggestions||(B.suggestions=[]);B.qk=h2}ld.countDownSecs!=null&&(B.Gb=ld.countDownSecs*1E3);ld.countDownSecsForFullscreen!=null&&(B.tC=ld.countDownSecsForFullscreen>=0?ld.countDownSecsForFullscreen*1E3:-1);B.D("web_autonav_color_transition")&&ld.watchToWatchTransitionRenderer&&(B.watchToWatchTransitionRenderer=g.u(ld.watchToWatchTransitionRenderer,XIb))}var YX= iCX(B);if(YX){var II,$S,lo,wn=YX==null?void 0:(II=YX[0])==null?void 0:($S=II.endScreenVideoRenderer)==null?void 0:(lo=$S.navigationEndpoint)==null?void 0:lo.clickTrackingParams,Pn=g.SL(B);wn&&Pn&&(Pn.sessionData={itct:wn})}B.XE.currentVideoThumbnail&&(B.J=IQ(B.XE.currentVideoThumbnail));var Ry,xS,vn,hd,Do,Gm=(Ry=B.XE)==null?void 0:(xS=Ry.contents)==null?void 0:(vn=xS.twoColumnWatchNextResults)==null?void 0:(hd=vn.results)==null?void 0:(Do=hd.results)==null?void 0:Do.contents;if(Gm&&Gm[1]){var kS, K7,pi,k6,jw=(kS=Gm[1].videoSecondaryInfoRenderer)==null?void 0:(K7=kS.owner)==null?void 0:(pi=K7.videoOwnerRenderer)==null?void 0:(k6=pi.thumbnail)==null?void 0:k6.thumbnails;jw&&jw.length&&(B.profilePicture=jw[jw.length-1].url)}var m8=q4(z),qK,di=(qK=B.getWatchNextResponse())==null?void 0:qK.onResponseReceivedEndpoints;if(di)for(var Ak=g.d(di),io=Ak.next();!io.done;io=Ak.next()){var Xd=io.value;g.u(Xd,Bx)&&(B.IM=g.u(Xd,Bx));var aI=g.u(Xd,ZCH),n7=void 0;if((n7=aI)==null?0:n7.entityKeys)B.AK=aI.entityKeys|| [],aI.visibleOnLoadKeys&&(B.visibleOnLoadKeys=aI.visibleOnLoadKeys)}if(B.D("web_key_moments_markers")){var bN=g.zG.getState().entities,Ch=g.iZ("visibility_override","markersVisibilityOverrideEntity");var Ze=LN(bN,"markersVisibilityOverrideEntity",Ch);B.MG=(Ze==null?void 0:Ze.videoId)===(B.videoId||m8)&&(Ze==null?0:Ze.visibilityOverrideMarkersKey)?Ze.visibilityOverrideMarkersKey:B.visibleOnLoadKeys;B.visibleOnLoadKeys=[].concat(g.Q(B.MG))}}}; s2=function(B){var z;return((z=B.autoplaySwitchButtonRenderer)==null?void 0:z.enabled)!==void 0}; TG=function(B){return!!(B.Y&&B.Y.videoInfos&&B.Y.videoInfos.length)}; g.Yh=function(B){var z=B.L;B.D("html5_gapless_unlimit_format_selection")&&RY(B)&&(z=!1);var T=!!B.T&&B.T.PB,R=B.bO,h=B.WW(),W=hu(B),b=B.Kf,l=z,w=B.isOtf();z=B.fS();var q=B.eI,c=B.getUserAudio51Preference(),L=Wx(B),C=new pq5(R);if(R.L4()||R.D("html5_logging_format_selection"))C.U=!0;C.cD=W;C.Kf=b&&R.J;C.RK=c;g.NR("windows nt 5.1")&&!g.jg&&(C.LU=!0);if(W=h)W=g.Sj(R)?AHB(R):!1;W&&(C.TZ=!0);l&&(C.LU=!0,C.s0=!0);w&&!R.D("html5_otf_prefer_vp9")&&(C.LU=!0);R.playerStyle==="picasaweb"&&(w&&(C.LU=!1),C.UE= !1);q&&(C.LU=!0);M$(R.V,VP.CHANNELS)&&(R.D("html5_enable_ac3")&&(C.W=!0),R.D("html5_enable_eac3")&&(C.V=!0),R.D("html5_enable_ac3_gapless")&&(C.XE=!0));R.D("html5_block_8k_hfr")&&(C.sE=!0);C.X=g.rk(R.experiments,"html5_max_selectable_quality_ordinal");C.L=g.rk(R.experiments,"html5_min_selectable_quality_ordinal");Mj&&(C.ra=480);if(T||h)C.UE=!1;C.MG=!1;C.disableAv1=L;T=Kj(R,C.T,void 0,C.disableAv1);T>0&&T<2160&&(NM()||R.D("html5_format_hybridization"))&&(C.T.supportsChangeType=+NM(),C.FJ=T);T>=2160&& (C.WD=!0);eI5()&&!R.D("disable_av1_setting")&&(C.T.serveVp9OverAv1IfHigherRes=0,C.C4=!1);C.fS=z;C.lO=g.Zs||R6()&&!z?!1:!0;C.J=R.D("html5_format_hybridization");C.aK=R.D("html5_disable_encrypted_vp9_live_non_2k_4k");bs(B)&&(C.JZ=B.D("html5_prefer_language_over_codec"));XN()&&B.playerResponse&&B.playerResponse.playerConfig&&B.playerResponse.playerConfig.webPlayerConfig&&B.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(C.W=!0,C.V=!0);B.L&&B.isAd()&&(B.nL&&(C.N=B.nL),B.YD&& (C.Y=B.YD));C.zZ=B.isLivePlayback&&B.Cp()&&B.bO.D("html5_drm_live_audio_51");C.EE=B.B$;C.U0=!bs(B);return B.qr=C}; Wx=function(B){return B.bO.D("html5_disable_av1")||B.D("html5_gapless_shorts_disable_av1")&&RY(B)?!0:!1}; eTK=function(B){O4("drm_pb_s",void 0,B.N);B.IK||B.T&&Gu(B.T);var z={};B.T&&(z=wGz(B.JK,g.Yh(B),B.bO.V,B.T,function(T){return B.publish("ctmp","fmtflt",T)},!0,new Set)); z=new eg(z,B.bO,B.tJ,B.useCobaltWidevine?XN()?ls(B):!1:!1,function(T,R){B.OE(T,R)}); g.m(B,z);B.P8=!1;B.loading=!0;vUz(z,function(T){O4("drm_pb_f",void 0,B.N);for(var R=g.d(T),h=R.next();!h.done;h=R.next())switch(h=h.value,h.flavor){case "fairplay":h.IK=B.IK;h.eR=B.eR;h.Cl=B.Cl;break;case "widevine":h.VT=B.VT}B.Ic=T;if(B.Ic.length>0&&(B.V=B.Ic[0],B.bO.L4())){T={};R=g.d(Object.entries(B.V.T));for(h=R.next();!h.done;h=R.next()){var W=g.d(h.value);h=W.next().value;W=W.next().value;var b="unk";(h=h.match(/(.*)codecs="(.*)"/))&&(b=h[2]);T[b]=W}B.OE("drmProbe",T)}B.iN()})}; siX=function(B,z){if(z.length===0||w5(B))return null;B.bO.V.Y&&(vz=!0);var T=B.Ft;var R=B.lengthSeconds,h=B.isLivePlayback,W=B.qh,b=B.bO,l=rOK(z);if(h||W){b=b.experiments;R=new G5("",b,!0);R.U=!W;R.PB=!0;R.isManifestless=!0;R.isLive=!W;R.qh=W;z=g.d(z);for(h=z.next();!h.done;h=z.next()){var w=h.value;h=aH(w,T);l=PK(w);l=ME(l.Nt||w.url||"",l.ql,l.s);var q=l.get("id");q&&q.includes("%7E")&&(R.N=!0);var c=void 0;q=(c=b)==null?void 0:c.Cf("html5_max_known_end_time_rebase");c=Number(w.targetDurationSec|| 5);w=Number(w.maxDvrDurationSec||14400);var L=Number(l.get("mindsq")||l.get("min_sq")||"0"),C=Number(l.get("maxdsq")||l.get("max_sq")||"0")||Infinity;R.bz=R.bz||L;R.VW=R.VW||C;var r=!R_(h.mimeType);l&&oH(R,new z5(l,h,{aq:c,Zw:r,pL:w,bz:L,VW:C,uH:300,qh:W,oG:q}))}T=R}else if(l==="FORMAT_STREAM_TYPE_OTF"){R=R===void 0?0:R;W=new G5("",b.experiments,!1);W.duration=R||0;b=g.d(z);for(R=b.next();!R.done;R=b.next())R=R.value,z=aH(R,T,W.duration),h=PK(R),(h=ME(h.Nt||R.url||"",h.ql,h.s))&&(z.streamType==="FORMAT_STREAM_TYPE_OTF"? oH(W,new T5(h,z,"sq/0")):oH(W,new Lj(h,z,Dn(R.initRange),Dn(R.indexRange))));W.isOtf=!0;T=W}else{R=R===void 0?0:R;W=new G5("",b.experiments,!1);W.duration=R||0;b=g.d(z);for(R=b.next();!R.done;R=b.next())l=R.value,R=aH(l,T,W.duration),z=Dn(l.initRange),h=Dn(l.indexRange),q=PK(l),(l=ME(q.Nt||l.url||"",q.ql,q.s))&&oH(W,new Lj(l,R,z,h));T=W}W=B.isLivePlayback&&!B.qh&&!B.TZ&&!B.isPremiere;B.D("html5_live_head_playable")&&(!qp(B)&&W&&B.OE("missingLiveHeadPlayable",{}),B.bO.TZ==="yt"&&(T.cD=!0));return T}; w5=function(B){return XN()?!ls(B):eH()?!(!B.IK||!B.D("html5_enable_safari_fairplay")&&Rn()):!1}; ls=function(B){return B.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.eL=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next())if(T=T.value,T.cueRangeSetIdentifier){var R=void 0;B.PR.set(T.cueRangeSetIdentifier,(R=T.playerCueRanges)!=null?R:[])}}; is=function(B){return!(!B.T||!B.T.isManifestless)}; cx=function(B){return B.JZ?B.isLowLatencyLiveStream&&B.T!=null&&g_(B.T)>=5:B.isLowLatencyLiveStream&&B.T!=void 0&&g_(B.T)>=5}; ELK=function(B){return XN()&&ls(B)?!1:w5(B)&&(g.y9(B.bO)?!B.isLivePlayback:B.hlsvp)||!Rn()||B.W$?!0:!1}; z$B=function(B){B.loading=!0;B.Mg=!1;if(Ssb(B))g.AMd(B.videoId).then(function(R){B3d(B,R)}).then(function(){B.iN()}); else{z8(B.C4)||g.KV(new g.Z_("DASH MPD Origin invalid: ",B.C4));var z=B.C4,T=g.rk(B.bO.experiments,"dash_manifest_version")||4;z=g.Qn(z,{mpd_version:T});B.isLowLatencyLiveStream&&B.latencyClass!=="NORMAL"||(z=g.Qn(z,{pacing:0}));U5b(z,B.bO.experiments,B.isLivePlayback).then(function(R){B.xd()||(Lt(B,R,!0),O4("mrc",void 0,B.N),B.iN())},function(R){B.xd()||(B.loading=!1,B.publish("dataloaderror",new y_("manifest.net.retryexhausted",{backend:"manifest", rc:R.status},1)))}); O4("mrs",void 0,B.N)}}; B3d=function(B,z){var T=z.map(function(w){return w.itag}),R; if((R=B.playerResponse)!=null&&R.streamingData){R=[];if(B.D("html5_offline_always_use_local_formats")){T=0;for(var h=g.d(z),W=h.next();!W.done;W=h.next()){W=W.value;var b=Object.assign({},W);b.signatureCipher="";R.push(b);b=g.d(B.playerResponse.streamingData.adaptiveFormats);for(var l=b.next();!l.done;l=b.next())if(l=l.value,W.itag===l.itag&&W.xtags===l.xtags){T+=1;break}}Tc&&(c=r.getInfo().audio.numChannels)}c>2&&B.OE("hlschl",{mn:c});var a;((a=B.qr)==null?0:a.U)&&B.OE("hlsfmtaf",{itags:L.join(".")});var V;if(B.D("html5_enable_vp9_fairplay")&&((V=B.V)==null?0:NE(V)))for(B.OE("drm",{sbdlfbk:1}),c=g.d(B.Ic),L=c.next();!L.done;L=c.next())if(L=L.value,O6(L)){B.V=L;break}F1(B,q)})}return xv()}; b6b=function(B){if(B.isExternallyHostedPodcast&&B.r3){var z=oY(B.r3);if(!z[0])return xv();B.eLE=z[0];return O$B(B.bO,z[0]).then(function(T){F1(B,T)})}return B.Rn&&B.n5?fmd(B.bO,B.isAd(),B.Rn).then(function(T){F1(B,T)}):xv()}; lSK=function(B){if(B.isExternallyHostedPodcast)return xv();var z=oY(B.r3,B.n3);if(B.hlsvp){var T=$Qd(B.hlsvp,B.clientPlaybackNonce,B.II);z.push(T)}return H$K(B.bO,B.isAd(),z,YuK(B)).then(function(R){F1(B,R)})}; F1=function(B,z){B.t0=z;B.LM(new CQ(g.s9(B.t0,function(T){return T.getInfo()})))}; YuK=function(B){var z={cpn:B.clientPlaybackNonce,c:B.bO.T.c,cver:B.bO.T.cver};B.Er&&(z.ptk=B.Er,z.oid=B.yS,z.ptchn=B.qO,z.pltype=B.IL,B.SR&&(z.m=B.SR));return z}; g.IY=function(B){return w5(B)&&B.IK?(B={},B.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",B):B.U&&B.U.Ft||null}; wEY=function(B){var z=GG(B);return z&&z.text?g.aU(z.text):B.paidContentOverlayText}; quz=function(B){var z=GG(B);return z&&z.durationMs?dO(z.durationMs):B.paidContentOverlayDurationMs}; GG=function(B){var z,T,R;return B.playerResponse&&B.playerResponse.paidContentOverlay&&B.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.u((z=B.XE)==null?void 0:(T=z.playerOverlays)==null?void 0:(R=T.playerOverlayRenderer)==null?void 0:R.playerDisclosure,i6K)||null}; d5=function(B){var z="";if(B.L3)return B.L3;B.isLivePlayback&&(z=B.allowLiveDvr?"dvr":B.isPremiere?"lp":B.TZ?"window":"live");B.qh&&(z="post");return z}; g.Au=function(B,z){return typeof B.keywords[z]!=="string"?null:B.keywords[z]}; cNP=function(B){return!!B.hK||!!B.k6||!!B.kF||!!B.a9||B.Ol}; g.aY=function(B){return!!(B.C4||B.r3||B.Rn||B.hlsvp||B.K_())}; tb=function(B){if(B.D("html5_onesie")&&B.errorCode)return!1;var z=g.F5(B.UE,"ypc");B.ypcPreview&&(z=!1);return B.u1()&&!B.loading&&(g.aY(B)||g.F5(B.UE,"heartbeat")||z)}; oY=function(B,z){B=WP(B);var T={};if(z){z=g.d(z.split(","));for(var R=z.next();!R.done;R=z.next())(R=R.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(T[R[1]]={width:R[2],height:R[3]})}z=g.d(B);for(R=z.next();!R.done;R=z.next()){R=R.value;var h=T[R.itag];h&&(R.width=h.width,R.height=h.height)}return B}; HCr=function(B,z){B.showShareButton=!!z;var T,R,h=((T=g.u(z,g.mE))==null?void 0:T.navigationEndpoint)||((R=g.u(z,g.mE))==null?void 0:R.command);h&&(B.ag=!!g.u(h,LIz))}; PIz=function(B,z){var T=z.raw_embedded_player_response;if(!T){var R=z.embedded_player_response;R&&(T=JSON.parse(R))}T&&(B.Kp=T);if(B.Kp){B.embeddedPlayerConfig=B.Kp.embeddedPlayerConfig||null;if(T=B.Kp.videoFlags)T.playableInEmbed&&(B.allowEmbed=!0),T.isPrivate&&(B.isPrivate=!0),T.userDisplayName&&(z.user_display_name=T.userDisplayName),T.userDisplayImage&&(z.user_display_image=T.userDisplayImage);if(T=B.Kp.embedPreview){T=T.thumbnailPreviewRenderer;qsl(B,T.controlBgHtml);if(R=T.defaultThumbnail)B.J= IQ(R);B.D("embeds_web_enable_search_button")&&T.searchButton&&(R=g.u(T.searchButton,g.mE))&&(B.hNf=g.u(R.navigationEndpoint,g.UR));(R=g.u(T==null?void 0:T.videoDetails,CDX))&&tfB(B,z,R);R=g.u(T==null?void 0:T.videoDetails,rNd);B.S6=!!T.addToWatchLaterButton;HCr(B,T.shareButton);if(R==null?0:R.musicVideoType)B.musicVideoType=R.musicVideoType;var h,W,b,l,w;if(R=g.u((h=B.getEmbeddedPlayerResponse())==null?void 0:(W=h.embedPreview)==null?void 0:(b=W.thumbnailPreviewRenderer)==null?void 0:(l=b.playButton)== null?void 0:(w=l.buttonRenderer)==null?void 0:w.navigationEndpoint,g.E2))Z$K(B,R),B.videoId=R.videoId||B.videoId;T.videoDurationSeconds&&(B.lengthSeconds=dO(T.videoDurationSeconds));T.webPlayerActionsPorting&&wIz(B,T.webPlayerActionsPorting);if(h=g.u(T==null?void 0:T.playlist,omY)){B.nt=!0;W=[];b=Number(h.currentIndex);if(h.contents)for(l=0,w=h.contents.length;l0:B.tj?!1:B.bO.mD||B.bO.ZS||!g.yW(B.bO)?!0:!1:(B.tj?0:B.yn)&&g.yW(B.bO)?!0:!1;B.D("html5_log_detailpage_autoplay")&&xh(B)==="detailpage"&&B.OE("autoplay_info",{autoplay:B.o_,autonav:B.isAutonav,wasDompaused:B.tj,result:z});return z}; g.Kt=function(B){return B.oauthToken||B.bO.RQ}; QoY=function(B){if(B.D("html5_stateful_audio_normalization")){var z=1,T=g.rk(B.bO.experiments,"html5_default_ad_gain");T&&B.isAd()&&(z=T);var R,h;T=(h=(R=B.W)==null?void 0:R.audio.W)!=null?h:B.Lm;if(T==null||isNaN(T))B=VqY(B);else{R=(0,g.f)();B.c8=2;h=R-B.bO.O6<=B.maxStatefulTimeThresholdSec*1E3;B.applyStatefulNormalization&&h?B.c8=4:h||(B.bO.Oa=Infinity,B.bO.O6=NaN);h=(B.c8===4?g.yQ(B.bO.Oa,B.minimumLoudnessTargetLkfs,B.loudnessTargetLkfs):B.loudnessTargetLkfs)-T;if(B.c8!==4){var W,b,l,w,q=((W=B.playerResponse)== null?void 0:(b=W.playerConfig)==null?void 0:(l=b.audioConfig)==null?void 0:(w=l.loudnessNormalizationConfig)==null?void 0:w.statelessLoudnessAdjustmentGain)||0;h+=q}h=Math.min(h,0);B.preserveStatefulLoudnessTarget&&(B.bO.Oa=T+h,B.bO.O6=R);B=Math.min(1,Math.pow(10,h/20))||z}}else B=VqY(B);return B}; VqY=function(B){var z=1,T=g.rk(B.bO.experiments,"html5_default_ad_gain");T&&B.isAd()&&(z=T);if(B.bO.experiments.Cf("html5_audio_gain_null_coalescing")){var R,h;T=(h=(R=B.W)==null?void 0:R.audio.Y)!=null?h:B.pF;T==0&&B.OE("db0fix",{rldb:B.pF})}else{var W;T=((W=B.W)==null?void 0:W.audio.Y)||B.pF}isNaN(T)||(B.c8=1);return Math.min(1,Math.pow(10,-T/20))||z}; hu=function(B){var z=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],T=g.Sg(B.bO)==="TVHTML5_SIMPLY"&&B.bO.T.ctheme==="MUSIC";B.Gj||!g.f0(B.bO)&&!T||!z.includes(B.musicVideoType)&&!B.isExternallyHostedPodcast||(B.Gj=!0);if(z=g.jH())z=/Starboard\/([0-9]+)/.exec(g.Va()),z=(z?parseInt(z[1],10):NaN)<10;T=B.bO;T=(g.Sg(T)==="TVHTML5_CAST"||g.Sg(T)==="TVHTML5"&&(T.T.cver.startsWith("6.20130725")||T.T.cver.startsWith("6.20130726")))&&B.bO.T.ctheme==="MUSIC";var R;if(R=!B.Gj)T||(T=B.bO,T= g.Sg(T)==="TVHTML5"&&T.T.cver.startsWith("7")),R=T;R&&!z&&(z=B.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",T=(B.D("cast_prefer_audio_only_for_atv_and_uploads")||B.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&B.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",z||T||B.isExternallyHostedPodcast)&&(B.Gj=!0);return B.bO.deviceIsAudioOnly||B.Gj&&B.bO.J}; mJ=function(B){var z,T,R;return((z=B.playerResponse)==null?void 0:(T=z.playerConfig)==null?void 0:(R=T.compositeVideoConfig)==null?void 0:R.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.yNl=function(B){return B.D("html5_enable_sabr_live_captions")&&B.PB()&&bs(B)||mJ(B)}; nt=function(B){var z,T,R;return!!((z=B.playerResponse)==null?0:(T=z.playerConfig)==null?0:(R=T.mediaCommonConfig)==null?0:R.splitScreenEligible)}; us=function(B){var z;return!((z=B.playerResponse)==null||!z.compositePlayabilityStatus)}; gmr=function(B){return isNaN(B)?0:Math.max((Date.now()-B)/1E3-30,0)}; Hx=function(B){return!(!B.Ms||!B.bO.J)&&B.K_()}; ft=function(B){return B.Kl&&B.enableServerStitchedDai}; JNd=function(B){return B.fY&&!B.uh}; bs=function(B){var z=B.D("html5_enable_sabr_on_drive")&&B.bO.TZ==="gd";if(B.pm)return B.fY&&B.OE("fds",{fds:!0},!0),!1;if(B.bO.TZ!=="yt"&&!z)return B.fY&&B.OE("dsvn",{ns:B.bO.TZ},!0),!1;if(B.cotn||!B.T||B.T.isOtf||B.mF&&!B.D("html5_enable_sabr_csdai"))return!1;if(B.D("html5_use_sabr_requests_for_debugging"))return!0;B.fY&&B.OE("esfw",{usbc:B.fY,hsu:!!B.uh},!0);if(B.fY&&B.uh)return!0;if(B.D("html5_remove_client_sabr_determination"))return!1;var T=!B.T.PB&&!B.Cp();z=T&&Bo&&B.D("html5_enable_sabr_vod_streaming_xhr"); T=T&&!Bo&&B.D("html5_enable_sabr_vod_non_streaming_xhr");var R=OR(B),h=B.D("html5_enable_sabr_drm_vod_streaming_xhr")&&Bo&&B.Cp()&&!B.T.PB&&(B.drmProduct==="1"?!1:!0);(z=z||T||R||h)&&!B.uh&&B.OE("sabr",{loc:"m"},!0);return z&&!!B.uh}; OR=function(B){var z;if(!(z=Bo&&B.PB()&&B.Cp()&&(B.drmProduct==="1"?!1:!0)&&B.D("html5_sabr_live_drm_streaming_xhr"))){z=B.PB()&&!B.Cp()&&Bo;var T=B.PB()&&B.latencyClass!=="ULTRALOW"&&!B.isLowLatencyLiveStream&&B.D("html5_sabr_live_normal_latency_streaming_xhr"),R=B.isLowLatencyLiveStream&&B.D("html5_sabr_live_low_latency_streaming_xhr"),h=B.latencyClass==="ULTRALOW"&&B.D("html5_sabr_live_ultra_low_latency_streaming_xhr");z=z&&(T||R||h)}T=z;z=B.enableServerStitchedDai&&T&&B.D("html5_enable_sabr_ssdai_streaming_xhr"); T=!B.enableServerStitchedDai&&T;R=B.PB()&&!Bo&&B.D("html5_enable_sabr_live_non_streaming_xhr");B=Bo&&(B.Gz()||nt(B)&&B.D("html5_enable_sabr_for_lifa_eligible_streams"));return z||T||R||B}; Ssb=function(B){var z;if(z=!!B.cotn)z=B.videoId,z=!!z&&g.pb(z)===1;return z&&!B.Ms}; g.Np=function(B){if(!B.T||!B.U||!B.W)return!1;var z=B.T.T,T=!!z[B.U.id]&&J1(z[B.U.id].Rx.T);z=!!z[B.W.id]&&J1(z[B.W.id].Rx.T);return(B.U.itag==="0"||T)&&z}; tu=function(B){return B.wJ?["OK","LIVE_STREAM_OFFLINE"].includes(B.wJ.status):!0}; FIz=function(B){return(B=B.zc)&&B.showError?B.showError:!1}; jv=function(B,z){return B.D(z)?!0:(B.fflags||"").includes(z+"=true")}; pEz=function(B){return B.D("html5_heartbeat_iff_heartbeat_params_filled")}; mQB=function(B,z){z.inlineMetricEnabled&&(B.inlineMetricEnabled=!0);z.playback_progress_0s_url&&(B.a9=new LEX(z));if(z=z.video_masthead_ad_quartile_urls)B.k6=z.quartile_0_url,B.Ko=z.quartile_25_url,B.po=z.quartile_50_url,B.b6=z.quartile_75_url,B.MO=z.quartile_100_url,B.kF=z.quartile_0_urls,B.s5=z.quartile_25_urls,B.d9=z.quartile_50_urls,B.ix=z.quartile_75_urls,B.HJ=z.quartile_100_urls}; KEK=function(B){var z={};B=g.d(B);for(var T=B.next();!T.done;T=B.next()){T=T.value;var R=T.split("=");R.length===2?z[R[0]]=R[1]:z[T]=!0}return z}; vLB=function(B){if(B){if(oZK(B))return B;B=FcP(B);if(oZK(B,!0))return B}return""}; g.$Lz=function(B){return B.captionsLanguagePreference||B.bO.captionsLanguagePreference||g.Au(B,"yt:cc_default_lang")||B.bO.R7}; X1=function(B){return!(!B.isLivePlayback||!B.hasProgressBarBoundaries())}; g.SL=function(B){var z;return B.qk||((z=B.suggestions)==null?void 0:z[0])||null}; g.Zr=function(B){return B.Jj&&(B.D("embeds_enable_pfp_always_unbranded")||B.bO.Wk)}; g.ev=function(B){var z,T;return!!((z=B.embeddedPlayerConfig)==null?0:(T=z.embeddedPlayerFlags)==null?0:T.enableMusicUx)}; PDB=function(B){return B.L||B.D("web_player_media_session_infinity")&&B.isLivePlayback}; sR=function(B){return B.bO.W&&B.isPrivate}; g.Sv=function(B){var z=B.K(),T=g.ER(z),R=z.C4;(z.D("embeds_web_enable_iframe_api_send_full_embed_url")||z.D("embeds_web_enable_rcat_validation_in_havs")||z.D("embeds_enable_autoplay_and_visibility_signals"))&&g.xC(z)&&(R&&(T.thirdParty=Object.assign({},T.thirdParty,{embedUrl:R})),BZK(T,B));if(R=B.lO)T.clickTracking={clickTrackingParams:R};else if(z.D("html5_log_missing_itct")){var h;R=new g.Z_("Missing ITCT in InnerTubeContext",{isAd:B.isAd(),ihK:(h=z.getWebPlayerContextConfig())==null?void 0:h.contextId}); g.kV(R)}h=T.client||{};R="EMBED";var W=xh(B);W==="leanback"?R="WATCH":z.D("gvi_channel_client_screen")&&W==="profilepage"?R="CHANNEL":B.eI?R="LIVE_MONITOR":W==="detailpage"?R="WATCH_FULL_SCREEN":W==="adunit"?R="ADUNIT":W==="sponsorshipsoffer"&&(R="UNKNOWN");h.clientScreen=R;if(z=B.kidsAppInfo)h.kidsAppInfo=JSON.parse(z);(R=B.y5)&&!z&&(h.kidsAppInfo={contentSettings:{ageUpMode:xL5[R]}});if(z=B.sK)h.unpluggedAppInfo={enableFilterMode:!0};(R=B.unpluggedFilterModeType)&&!z&&(h.unpluggedAppInfo={filterModeType:vmK[R]}); if(z=B.Nh)h.unpluggedLocationInfo=z;T.client=h;h=T.request||{};B.BV&&(h.isPrefetch=!0);if(z=B.mdxEnvironment)h.mdxEnvironment=z;if(z=B.mdxControlMode)h.mdxControlMode=DLP[z];T.request=h;h=T.user||{};if(z=B.RK)h.credentialTransferTokens=[{token:z,scope:"VIDEO"}];if(z=B.LF)h.delegatePurchases={oauthToken:z},h.kidsParent={oauthToken:z};T.user=h;if(h=B.contextParams)T.activePlayers=[{playerContextParams:h}];if(B=B.clientScreenNonce)T.clientScreenNonce=B;return T}; g.ER=function(B){var z=g.cS(),T=z.client||{};if(B.forcedExperiments){var R=B.forcedExperiments.split(","),h=[];R=g.d(R);for(var W=R.next();!W.done;W=R.next())h.push(Number(W.value));T.experimentIds=h}if(h=B.homeGroupInfo)T.homeGroupInfo=JSON.parse(h);if(h=B.getPlayerType())T.playerType=h;if(h=B.T.ctheme)T.theme=h;if(h=B.livingRoomAppMode)T.tvAppInfo=Object.assign({},T.tvAppInfo,{livingRoomAppMode:h});h=B.deviceYear;B.D("html5_propagate_device_year")&&h&&(T.tvAppInfo=Object.assign({},T.tvAppInfo,{deviceYear:h})); if(h=B.livingRoomPoTokenId)T.tvAppInfo=Object.assign({},T.tvAppInfo,{livingRoomPoTokenId:h});z.client=T;T=z.user||{};B.enableSafetyMode&&(T=Object.assign({},T,{enableSafetyMode:!0}));B.pageId&&(T=Object.assign({},T,{onBehalfOfUser:B.pageId}));z.user=T;T=B.C4;B.D("embeds_web_enable_iframe_api_send_full_embed_url")||B.D("embeds_web_enable_rcat_validation_in_havs")||B.D("embeds_enable_autoplay_and_visibility_signals")||!T||(z.thirdParty={embedUrl:T});return z}; H65=function(B,z,T){var R=B.videoId,h=g.Sv(B),W=B.K(),b={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(JW()),referer:document.location.toString(),signatureTimestamp:20228};g.fD();B.isAutonav&&(b.autonav=!0);g.OW(0,141)&&(b.autonavState=g.OW(0,140)?"STATE_OFF":"STATE_ON");b.autoCaptionsDefaultOn=g.OW(0,66);MqY(B)&&(b.autoplay=!0);W.J&&B.cycToken&&(b.cycToken=B.cycToken);W.enablePrivacyFilter&&(b.enablePrivacyFilter=!0);B.isFling&&(b.fling=!0);var l=B.forceAdsUrl;if(l){var w={},q=[];l= l.split(",");l=g.d(l);for(var c=l.next();!c.done;c=l.next()){c=c.value;var L=c.split("|");L.length!==3||c.includes("=")||(L[0]="breaktype="+L[0],L[1]="offset="+L[1],L[2]="url="+L[2]);c={adtype:"video_ad"};L=g.d(L);for(var C=L.next();!C.done;C=L.next()){var r=g.d(C.value.split("="));C=r.next().value;r=WBz(r);c[C]=r.join("=")}L=c.url;C=c.presetad;r=c.viralresponseurl;var F=Number(c.campaignid);if(c.adtype==="in_display_ad")L&&(w.url=L),C&&(w.presetAd=C),r&&(w.viralAdResponseUrl=r),F&&(w.viralCampaignId= String(F));else if(c.adtype==="video_ad"){var A={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(c.offset)||0)}};if(c=kjY[c.breaktype])A.breakType=c;L&&(A.url=L);C&&(A.presetAd=C);r&&(A.viralAdResponseUrl=r);F&&(A.viralCampaignId=String(F));q.push(A)}}b.forceAdParameters={videoAds:q,inDisplayAd:w}}B.isInlinePlaybackNoAd&&(b.isInlinePlaybackNoAd=!0);B.isLivingRoomDeeplink&&(b.isLivingRoomDeeplink=!0);w=B.E4;if(w!=null){w={startWalltime:String(w)};if(q=B.fl)w.manifestDuration=String(q||14400); b.liveContext=w}if(B.mutedAutoplay){b.mutedAutoplay=!0;w=W.getWebPlayerContextConfig();var a,V;(w==null?0:(a=w.embedsHostFlags)==null?0:a.allowMutedAutoplayDurationMode)&&(w==null?0:(V=w.embedsHostFlags)==null?0:V.allowMutedAutoplayDurationMode.includes(KIz[B.mutedAutoplayDurationMode]))&&(b.mutedAutoplayDurationMode=KIz[B.mutedAutoplayDurationMode])}if(B.tj?0:B.yn)b.splay=!0;a=B.vnd;a===5&&(b.vnd=a);a={};if(V=B.isMdxPlayback)a.triggeredByMdx=V;if(V=B.kf)a.skippableAdsSupported=V.split(",").includes("ska"); if(q=B.E6){V=B.Tb;w=[];q=g.d(zgr(q));for(l=q.next();!l.done;l=q.next()){l=l.value;c=l.platform;l={applicationState:l.nu?"INACTIVE":"ACTIVE",clientFormFactor:mLr[c]||"UNKNOWN_FORM_FACTOR",clientName:Rgl[l.iY]||"UNKNOWN_INTERFACE",clientVersion:l.deviceVersion||"",platform:nmK[c]||"UNKNOWN_PLATFORM"};c={};if(V){L=void 0;try{L=JSON.parse(V)}catch(x){g.KV(x)}L&&(c={params:[{key:"ms",value:L.ms}]},L.advertising_id&&(c.advertisingId=L.advertising_id),L.limit_ad_tracking!==void 0&&L.limit_ad_tracking!== null&&(c.limitAdTracking=L.limit_ad_tracking),l.osName=L.os_name,l.userAgent=L.user_agent,l.windowHeightPoints=L.window_height_points,l.windowWidthPoints=L.window_width_points)}w.push({adSignalsInfo:c,remoteClient:l})}a.remoteContexts=w}V=B.sourceContainerPlaylistId;w=B.serializedMdxMetadata;if(V||w)q={},V&&(q.mdxPlaybackContainerInfo={sourceContainerPlaylistId:V}),w&&(q.serializedMdxMetadata=w),a.mdxPlaybackSourceContext=q;b.mdxContext=a;a=z.width;a>0&&(b.playerWidthPixels=Math.round(a));if(z=z.height)b.playerHeightPixels= Math.round(z);T!==0&&(b.vis=T);if(T=W.widgetReferrer)b.widgetReferrer=T.substring(0,128);g.yW(W)&&b&&(b.ancestorOrigins=W.ancestorOrigins);B.defaultActiveSourceVideoId&&(b.compositeVideoContext={defaultActiveSourceVideoId:B.defaultActiveSourceVideoId});if(W=W.getWebPlayerContextConfig())b.encryptedHostFlags=W.encryptedHostFlags;R={videoId:R,context:h,playbackContext:{contentPlaybackContext:b}};if(B.EE)if(B.K().D("html5_server_controlled_resume_time_refactor")){var M;R.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(M=B.EE)==null?void 0:M.reloadPlaybackParams}}else R.playbackContext.reloadPlaybackContext={reloadPlaybackParams:B.EE};B.contentCheckOk&&(R.contentCheckOk=!0);if(M=B.clientPlaybackNonce)R.cpn=M;if(M=B.playerParams)R.params=M;if(M=B.playlistId)R.playlistId=M;B.racyCheckOk&&(R.racyCheckOk=!0);M=B.K();if(h=M.embedConfig)R.serializedThirdPartyEmbedConfig=h;R.captionParams={};h=g.OW(g.fD(),65);B.deviceCaptionsOn!=null?R.captionParams.deviceCaptionsOn=B.deviceCaptionsOn:g.Zf(M)&&(R.captionParams.deviceCaptionsOn= h!=null?!h:!1);B.KS&&(R.captionParams.deviceCaptionsLangPref=B.KS);B.Q5.length?R.captionParams.viewerSelectedCaptionLangs=B.Q5:g.Zf(M)&&(h=g.jP(),h==null?0:h.length)&&(R.captionParams.viewerSelectedCaptionLangs=h);h=B.fetchType==="onesie"&&B.D("html5_onesie_attach_po_token");b=B.fetchType!=="onesie"&&B.D("html5_non_onesie_attach_po_token");if(h||b)h=B.K(),h.Qn&&(R.serviceIntegrityDimensions={},R.serviceIntegrityDimensions.poToken=h.Qn);M.D("fetch_att_independently")&&(R.attestationRequest={omitBotguardData:!0}); R.playbackContext||(R.playbackContext={});R.playbackContext.devicePlaybackCapabilities=urz(B);R.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&B.OE("noVp9",{});return R}; urz=function(B){var z=!(B==null?0:B.fS())&&(B==null?void 0:B.PB())&&R6(),T;if(!(T=B==null)){T=g.Yh(B);B=B.K().V;var R=be("243");T=!(R&&If(T,R,B,!0)===!0)}return{supportsVp9Encoding:!(T||z),supportXhr:Bo}}; O6d=function(B,z){var T,R,h;return g.D(function(W){if(W.U==1)return T={context:g.ER(B.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:B.videoId,cpn:B.clientPlaybackNonce}}]},R=g.rn(fSz),g.P(W,g.E4(z,T,R),2);h=W.T;return W.return(h)})}; N3z=function(B,z,T){var R=g.rk(z.experiments,"bg_vm_reinit_threshold");(!mG||(0,g.f)()-mG>R)&&O6d(B,T).then(function(h){h&&(h=h.botguardData)&&g.uy(h,z)},function(h){B.xd()||(h=Ji(h),B.OE("attf",h.details))})}; Bw=function(B,z){g.K.call(this);this.app=B;this.state=z}; YN=function(B,z,T){B.state.T.hasOwnProperty(z)||Ww(B,z,T);B.state.L[z]=function(){return T.apply(B,g.K5.apply(0,arguments))}; B.state.X.add(z)}; lN=function(B,z,T){B.state.T.hasOwnProperty(z)||Ww(B,z,T);B.app.K().J&&(B.state.J[z]=function(){return T.apply(B,g.K5.apply(0,arguments))},B.state.X.add(z))}; Ww=function(B,z,T){B.state.T[z]=function(){return T.apply(B,g.K5.apply(0,arguments))}}; g.w4=function(B,z,T){return B.state.T[z].apply(B.state.T,g.Q(T))}; q2=function(){g.Jn.call(this);this.V=new Map}; iN=function(){g.K.apply(this,arguments);this.element=null;this.X=new Set;this.L={};this.J={};this.T={};this.N=new Set;this.Y=new q2;this.U=new q2;this.W=new q2;this.V=new q2}; tq5=function(B,z,T){typeof B==="string"&&(B={mediaContentUrl:B,startSeconds:z,suggestedQuality:T});a:{if((z=B.mediaContentUrl)&&(z=/\/([ve]|embed)\/([^#?]+)/.exec(z))&&z[2]){z=z[2];break a}z=null}B.videoId=z;return cw(B)}; cw=function(B,z,T){if(typeof B==="string")return{videoId:B,startSeconds:z,suggestedQuality:T};z={};T=g.d(joK);for(var R=T.next();!R.done;R=T.next())R=R.value,B[R]&&(z[R]=B[R]);return z}; XEP=function(B,z,T,R){if(g.zU(B)&&!Array.isArray(B)){z="playlist list listType index startSeconds suggestedQuality".split(" ");T={};for(R=0;R32&&R.push("hfr");z.isHdr()&&R.push("hdr");z.primaries==="bt2020"&&R.push("wcg");T.video_quality_features=R}}if(B=B.getPlaylistId())T.list=B;return T}; FR=function(){LB.apply(this,arguments)}; Iy=function(B,z){var T={};if(B.app.K().UE){B=g.d(Emd);for(var R=B.next();!R.done;R=B.next())R=R.value,z.hasOwnProperty(R)&&(T[R]=z[R]);if(z=T.qoe_cat)B="",typeof z==="string"&&z.length>0&&(B=z.split(",").filter(function(h){return Sud.includes(h)}).join(",")),T.qoe_cat=B; B8B(T)}else for(B=g.d(zyz),R=B.next();!R.done;R=B.next())R=R.value,z.hasOwnProperty(R)&&(T[R]=z[R]);return T}; B8B=function(B){var z=B.raw_player_response;if(!z){var T=B.player_response;T&&(z=JSON.parse(T))}delete B.player_response;delete B.raw_player_response;if(z){B.raw_player_response={streamingData:z.streamingData,playerConfig:z.playerConfig};var R;if((R=z.playbackTracking)==null?0:R.qoeUrl)B.raw_player_response=Object.assign({},B.raw_player_response,{playbackTracking:{qoeUrl:z.playbackTracking.qoeUrl}});var h;if((h=z.videoDetails)==null?0:h.videoId)B.raw_player_response=Object.assign({},B.raw_player_response, {videoDetails:{videoId:z.videoDetails.videoId}})}}; Gz=function(B,z,T){var R=B.app.gt(T);if(!R)return 0;B=R-B.app.getCurrentTime(T);return z-B}; RyK=function(B){var z=z===void 0?5:z;return B?T8K[B]||z:z}; g.d4=function(){FR.apply(this,arguments)}; hyK=function(B){Ww(B,"getInternalApiInterface",B.getInternalApiInterface);Ww(B,"addEventListener",B.g1);Ww(B,"removeEventListener",B.GjJ);Ww(B,"cueVideoByPlayerVars",B.ai);Ww(B,"loadVideoByPlayerVars",B.bfO);Ww(B,"preloadVideoByPlayerVars",B.jpi);Ww(B,"getAdState",B.getAdState);Ww(B,"sendAbandonmentPing",B.sendAbandonmentPing);Ww(B,"setLoopRange",B.setLoopRange);Ww(B,"getLoopRange",B.getLoopRange);Ww(B,"setAutonavState",B.setAutonavState);Ww(B,"seekTo",B.hLD);Ww(B,"seekBy",B.kjm);Ww(B,"seekToLiveHead", B.seekToLiveHead);Ww(B,"requestSeekToWallTimeSeconds",B.requestSeekToWallTimeSeconds);Ww(B,"seekToStreamTime",B.seekToStreamTime);Ww(B,"startSeekCsiAction",B.startSeekCsiAction);Ww(B,"getStreamTimeOffset",B.getStreamTimeOffset);Ww(B,"getVideoData",B.Z7);Ww(B,"setInlinePreview",B.setInlinePreview);Ww(B,"getAppState",B.getAppState);Ww(B,"updateLastActiveTime",B.updateLastActiveTime);Ww(B,"setBlackout",B.setBlackout);Ww(B,"setUserEngagement",B.setUserEngagement);Ww(B,"updateSubtitlesUserSettings",B.updateSubtitlesUserSettings); Ww(B,"getPresentingPlayerType",B.JD);Ww(B,"canPlayType",B.canPlayType);Ww(B,"updatePlaylist",B.updatePlaylist);Ww(B,"updateVideoData",B.updateVideoData);Ww(B,"updateEnvironmentData",B.updateEnvironmentData);Ww(B,"sendVideoStatsEngageEvent",B.TDJ);Ww(B,"productsInVideoVisibilityUpdated",B.productsInVideoVisibilityUpdated);Ww(B,"setSafetyMode",B.setSafetyMode);Ww(B,"isAtLiveHead",function(z){return B.isAtLiveHead(void 0,z)}); Ww(B,"getVideoAspectRatio",B.getVideoAspectRatio);Ww(B,"getPreferredQuality",B.getPreferredQuality);Ww(B,"getPlaybackQualityLabel",B.getPlaybackQualityLabel);Ww(B,"setPlaybackQualityRange",B.BDu);Ww(B,"onAdUxClicked",B.onAdUxClicked);Ww(B,"getFeedbackProductData",B.getFeedbackProductData);Ww(B,"getStoryboardFrame",B.getStoryboardFrame);Ww(B,"getStoryboardFrameIndex",B.getStoryboardFrameIndex);Ww(B,"getStoryboardLevel",B.getStoryboardLevel);Ww(B,"getNumberOfStoryboardLevels",B.getNumberOfStoryboardLevels); Ww(B,"getCaptionWindowContainerId",B.getCaptionWindowContainerId);Ww(B,"getAvailableQualityLabels",B.getAvailableQualityLabels);Ww(B,"addCueRange",B.addCueRange);Ww(B,"addUtcCueRange",B.addUtcCueRange);Ww(B,"showAirplayPicker",B.showAirplayPicker);Ww(B,"dispatchReduxAction",B.dispatchReduxAction);Ww(B,"getPlayerResponse",B.Pz);Ww(B,"getWatchNextResponse",B.S_);Ww(B,"getHeartbeatResponse",B.V9);Ww(B,"getCurrentTime",B.bv);Ww(B,"getDuration",B.lS);Ww(B,"getPlayerState",B.getPlayerState);Ww(B,"getPlayerStateObject", B.cz);Ww(B,"getVideoLoadedFraction",B.getVideoLoadedFraction);Ww(B,"getProgressState",B.getProgressState);Ww(B,"getVolume",B.getVolume);Ww(B,"setVolume",B.HF);Ww(B,"isMuted",B.isMuted);Ww(B,"mute",B.CB);Ww(B,"unMute",B.gk);Ww(B,"loadModule",B.loadModule);Ww(B,"unloadModule",B.unloadModule);Ww(B,"getOption",B.tD);Ww(B,"getOptions",B.getOptions);Ww(B,"setOption",B.setOption);Ww(B,"loadVideoById",B.gf);Ww(B,"loadVideoByUrl",B.Q1);Ww(B,"playVideo",B.QD);Ww(B,"loadPlaylist",B.loadPlaylist);Ww(B,"nextVideo", B.nextVideo);Ww(B,"previousVideo",B.previousVideo);Ww(B,"playVideoAt",B.playVideoAt);Ww(B,"getDebugText",B.getDebugText);Ww(B,"getWebPlayerContextConfig",B.getWebPlayerContextConfig);Ww(B,"notifyShortsAdSwipeEvent",B.notifyShortsAdSwipeEvent);Ww(B,"getVideoContentRect",B.getVideoContentRect);Ww(B,"setSqueezeback",B.setSqueezeback);Ww(B,"toggleSubtitlesOn",B.toggleSubtitlesOn);Ww(B,"isSubtitlesOn",B.isSubtitlesOn);Ww(B,"reportPlaybackIssue",B.reportPlaybackIssue);Ww(B,"setAutonav",B.setAutonav);Ww(B, "isNotServable",B.isNotServable);Ww(B,"channelSubscribed",B.channelSubscribed);Ww(B,"channelUnsubscribed",B.channelUnsubscribed);Ww(B,"togglePictureInPicture",B.togglePictureInPicture);Ww(B,"supportsGaplessAudio",B.supportsGaplessAudio);Ww(B,"supportsGaplessShorts",B.supportsGaplessShorts);Ww(B,"enqueueVideoByPlayerVars",function(z){return void B.enqueueVideoByPlayerVars(z)}); Ww(B,"clearQueue",B.clearQueue);Ww(B,"getAudioTrack",B.TF);Ww(B,"setAudioTrack",B.UQG);Ww(B,"getAvailableAudioTracks",B.YM);Ww(B,"getMaxPlaybackQuality",B.getMaxPlaybackQuality);Ww(B,"getUserPlaybackQualityPreference",B.getUserPlaybackQualityPreference);Ww(B,"getSubtitlesUserSettings",B.getSubtitlesUserSettings);Ww(B,"resetSubtitlesUserSettings",B.resetSubtitlesUserSettings);Ww(B,"setMinimized",B.setMinimized);Ww(B,"setOverlayVisibility",B.setOverlayVisibility);Ww(B,"confirmYpcRental",B.confirmYpcRental); Ww(B,"queueNextVideo",B.queueNextVideo);Ww(B,"handleExternalCall",B.handleExternalCall);Ww(B,"logApiCall",B.logApiCall);Ww(B,"isExternalMethodAvailable",B.isExternalMethodAvailable);Ww(B,"setScreenLayer",B.setScreenLayer);Ww(B,"getCurrentPlaylistSequence",B.getCurrentPlaylistSequence);Ww(B,"getPlaylistSequenceForTime",B.getPlaylistSequenceForTime);Ww(B,"shouldSendVisibilityState",B.shouldSendVisibilityState);Ww(B,"syncVolume",B.syncVolume);Ww(B,"highlightSettingsMenuItem",B.highlightSettingsMenuItem); Ww(B,"openSettingsMenuItem",B.openSettingsMenuItem);Ww(B,"getEmbeddedPlayerResponse",B.getEmbeddedPlayerResponse);Ww(B,"getVisibilityState",B.getVisibilityState);Ww(B,"isMutedByMutedAutoplay",B.isMutedByMutedAutoplay);Ww(B,"isMutedByEmbedsMutedAutoplay",B.isMutedByEmbedsMutedAutoplay);Ww(B,"setGlobalCrop",B.setGlobalCrop);Ww(B,"setInternalSize",B.setInternalSize);Ww(B,"setFauxFullscreen",B.setFauxFullscreen);Ww(B,"setAppFullscreen",B.setAppFullscreen)}; ay=function(B,z,T){B=g.Ad(B.Hu(),z);return T?(T.addOnDisposeCallback(B),null):B}; g.UL=function(B,z,T){return B.app.K().qr?z:g.Ix("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:z,SHORTCUT:T})}; WGK=function(B){B.Hu().element.setAttribute("aria-live","polite")}; g.M2=function(B,z){g.d4.call(this,B,z);hyK(this);lN(this,"addEventListener",this.Wx);lN(this,"removeEventListener",this.H2F);lN(this,"cueVideoByPlayerVars",this.hV);lN(this,"loadVideoByPlayerVars",this.BFf);lN(this,"preloadVideoByPlayerVars",this.RLf);lN(this,"loadVideoById",this.gf);lN(this,"loadVideoByUrl",this.Q1);lN(this,"playVideo",this.QD);lN(this,"loadPlaylist",this.loadPlaylist);lN(this,"nextVideo",this.nextVideo);lN(this,"previousVideo",this.previousVideo);lN(this,"playVideoAt",this.playVideoAt); lN(this,"getVideoData",this.CN);lN(this,"seekBy",this.acK);lN(this,"seekTo",this.dQD);lN(this,"showControls",this.showControls);lN(this,"hideControls",this.hideControls);lN(this,"cancelPlayback",this.cancelPlayback);lN(this,"getProgressState",this.getProgressState);lN(this,"isInline",this.isInline);lN(this,"setInline",this.setInline);lN(this,"setLoopVideo",this.setLoopVideo);lN(this,"getLoopVideo",this.getLoopVideo);lN(this,"getVideoContentRect",this.getVideoContentRect);lN(this,"getVideoStats",this.KR); lN(this,"getCurrentTime",this.j_);lN(this,"getDuration",this.lS);lN(this,"getPlayerState",this.y9);lN(this,"getVideoLoadedFraction",this.Jc);lN(this,"mute",this.CB);lN(this,"unMute",this.gk);lN(this,"setVolume",this.HF);lN(this,"loadModule",this.loadModule);lN(this,"unloadModule",this.unloadModule);lN(this,"getOption",this.tD);lN(this,"getOptions",this.getOptions);lN(this,"setOption",this.setOption);lN(this,"addCueRange",this.addCueRange);lN(this,"getDebugText",this.getDebugText);lN(this,"getStoryboardFormat", this.getStoryboardFormat);lN(this,"toggleFullscreen",this.toggleFullscreen);lN(this,"isFullscreen",this.isFullscreen);lN(this,"getPlayerSize",this.getPlayerSize);lN(this,"toggleSubtitles",this.toggleSubtitles);this.app.K().D("embeds_enable_move_set_center_crop_to_public")||lN(this,"setCenterCrop",this.setCenterCrop);lN(this,"setFauxFullscreen",this.setFauxFullscreen);lN(this,"setSizeStyle",this.setSizeStyle);lN(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);lN(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); e$d(this)}; g.Vx=function(B){B=B.bK();var z=B.vu.get("endscreen");return z&&z.dJ()?!0:B.nD()}; g.Qx=function(B,z){B.getPresentingPlayerType()===3?B.publish("mdxautoplaycancel"):B.uO("onAutonavCancelled",z)}; g.g4=function(B){var z=yx(B.bK());return B.app.qZ&&!B.isFullscreen()||B.getPresentingPlayerType()===3&&z&&z.K1()&&z.xs()||!!B.getPlaylist()}; g.Jd=function(B,z){g.w4(B,"addEmbedsConversionTrackingParams",[z])}; g.$N=function(B){return(B=g.pB(B.bK()))?B.lC():{}}; g.bX5=function(B){B=(B=B.getVideoData())&&B.U;return!!B&&!(!B.audio||!B.video)&&B.mimeType!=="application/x-mpegURL"}; g.Pw=function(B,z,T){B=B.NG().element;var R=P7(B.children,function(h){h=Number(h.getAttribute("data-layer"));return T-h||1}); R<0&&(R=-(R+1));TJ(B,z,R);z.setAttribute("data-layer",String(T))}; g.xN=function(B){var z=B.K();if(!z.Nh)return!1;var T=B.getVideoData();if(!T||B.getPresentingPlayerType()===3)return!1;var R=(!T.isLiveDefaultBroadcast||z.D("allow_poltergust_autoplay"))&&!X1(T);R=T.isLivePlayback&&(!z.D("allow_live_autoplay")||!R);var h=T.isLivePlayback&&z.D("allow_live_autoplay_on_mweb");B=B.getPlaylist();B=!!B&&B.K1();var W=T.XE&&T.XE.playerOverlays||null;W=!!(W&&W.playerOverlayRenderer&&W.playerOverlayRenderer.autoplay);W=T.Jj&&W;return!T.ypcPreview&&(!R||h)&&!g.F5(T.UE,"ypc")&& !B&&(!g.yW(z)||W)}; lRz=function(B,z){B=YQz(B.app.tf().W);B=g.d(B);for(var T=B.next();!T.done;T=B.next()){T=T.value;var R=T.getAvailableAudioTracks(),h=null;R=g.d(R);for(var W=R.next();!W.done;W=R.next())if(W=W.value,W.getLanguageInfo().getId()===z){h=W;break}h&&T.r4(h,!0)}}; vw=function(){u9.apply(this,arguments);this.requestHeaders={}}; kN=function(){Dg||(Dg=new vw);return Dg}; KB=function(B,z){z?B.requestHeaders.Authorization="Bearer "+z:delete B.requestHeaders.Authorization}; g.ml=function(B){g.K.call(this);var z=this;this.iO=B;this.Yi={LH:function(){return z.iO}}}; g.nB=function(B,z,T,R){R=R===void 0?!1:R;g.Gt.call(this,z);var h=this;this.j=B;this.WD=R;this.J=new g.kb(this);this.fade=new g.Yp(this,T,!0,void 0,void 0,function(){h.BQ()}); g.m(this,this.J);g.m(this,this.fade)}; uN=function(B){var z=B.j.getRootNode();return B.j.D("web_watch_pip")||B.j.D("web_shorts_pip")?nr(z):document}; wMB=function(B){B.U&&(document.activeElement&&g.hm(B.element,document.activeElement)&&B.U.focus(),B.U.setAttribute("aria-expanded","false"),B.U=void 0);g.$K(B.J);B.N=void 0}; Hw=function(B,z,T){B.Lk()?B.xW():B.Hc(z,T)}; fB=function(B,z,T,R){R=new g.O({B:"div",nf:["ytp-linked-account-popup-button"],Yd:R,C:{role:"button",tabindex:"0"}});z=new g.O({B:"div",G:"ytp-linked-account-popup",C:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{B:"div",G:"ytp-linked-account-popup-title",Yd:z},{B:"div",G:"ytp-linked-account-popup-description",Yd:T},{B:"div",G:"ytp-linked-account-popup-buttons",S:[R]}]});g.nB.call(this,B,{B:"div",G:"ytp-linked-account-popup-container",S:[z]},100);var h=this;this.dialog=z;g.m(this,this.dialog); R.listen("click",function(){h.xW()}); g.m(this,R);g.Pw(this.j,this.element,4);this.hide()}; g.N2=function(B,z,T,R){g.Gt.call(this,B);this.priority=z;T&&g.OL(this,T);R&&this.oI(R)}; g.td=function(B,z,T,R){B=B===void 0?{}:B;z=z===void 0?[]:z;T=T===void 0?!1:T;R=R===void 0?!1:R;z.push("ytp-menuitem");var h=B;"role"in h||(h.role="menuitem");T||(h=B,"tabindex"in h||(h.tabindex="0"));B={B:T?"a":"div",nf:z,C:B,S:[{B:"div",G:"ytp-menuitem-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-menuitem-label",Yd:"{{label}}"},{B:"div",G:"ytp-menuitem-content",Yd:"{{content}}"}]};R&&B.S.push({B:"div",G:"ytp-menuitem-secondary-icon",Yd:"{{secondaryIcon}}"});return B}; g.OL=function(B,z){B.updateValue("label",z)}; je=function(B){g.N2.call(this,g.td({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var z=this;this.j=B;this.U=this.T=!1;this.WB=B.m0();B.createServerVe(this.element,this,!0);this.Z(this.j,"settingsMenuVisibilityChanged",function(T){z.Ga(T)}); this.Z(this.j,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; Zg=function(B){return B?g.aU(B):""}; ee=function(B){g.K.call(this);this.api=B}; sL=function(B){ee.call(this,B);var z=this;Ww(B,"setAccountLinkState",function(T){z.setAccountLinkState(T)}); Ww(B,"updateAccountLinkingConfig",function(T){z.updateAccountLinkingConfig(T)}); B.addEventListener("videodatachange",function(T,R){z.onVideoDataChange(R)}); B.addEventListener("settingsMenuInitialized",function(){z.menuItem=new je(z.api);g.m(z,z.menuItem)})}; qQz=function(B){this.api=B;this.T={}}; EL=function(B,z,T,R){z in B.T||(T=new g.Wj(T,R,{id:z,priority:2,namespace:"appad"}),B.api.A$([T],1),B.T[z]=T)}; Se=function(B){ee.call(this,B);var z=this;this.events=new g.kb(this);g.m(this,this.events);this.T=new qQz(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){z.T.T={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(T){var R=z.T;EL(R,"part2viewed",1,0x8000000000000);EL(R,"engagedview",Math.max(1,T.U0*1E3),0x8000000000000);if(!T.isLivePlayback){var h=T.lengthSeconds*1E3;RY(T)&&R.api.D("html5_shorts_gapless_ads_duration_fix")&&(h=R.api.getProgressState().seekableEnd*1E3-T.rH);EL(R,"videoplaytime25",h*.25,h);EL(R,"videoplaytime50",h*.5,h);EL(R,"videoplaytime75",h*.75,h);EL(R,"videoplaytime100",h,0x8000000000000);EL(R,"conversionview",h,0x8000000000000); EL(R,"videoplaybackstart",1,h);EL(R,"videoplayback2s",2E3,h);EL(R,"videoplayback10s",1E4,h)}}); this.events.Z(this.api,g.YQ("appad"),this.U);this.events.Z(this.api,g.lu("appad"),this.U)}; Cyb=function(B,z,T){if(!(T in z))return!1;z=z[T];Array.isArray(z)||(z=[z]);z=g.d(z);for(T=z.next();!T.done;T=z.next()){T=T.value;var R={CPN:B.api.getVideoData().clientPlaybackNonce};T=g.Pu(T,R);R=void 0;R=R===void 0?!1:R;(R=SA(Bj(T,iXB),T,R,"Active View 3rd Party Integration URL"))||(R=void 0,R=R===void 0?!1:R,R=SA(Bj(T,cTr),T,R,"Google/YouTube Brand Lift URL"));R||(R=void 0,R=R===void 0?!1:R,R=SA(Bj(T,LGz),T,R,"Nielsen OCR URL"));g.Hg(T,void 0,R)}return!0}; BO=function(B,z){rTz(B,z).then(function(T){g.Hg(z,void 0,void 0,T)})}; z4=function(B,z){z.forEach(function(T){BO(B,T)})}; rTz=function(B,z){return g.JS(B.api.K())&&iA(z)&&qR(z)?g.RQ(B.api.K(),g.Kt(B.api.getVideoData())).then(function(T){var R;T&&(R={Authorization:"Bearer "+T});return R},void 0):vP()}; oTz=function(B){ee.call(this,B);this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"videoready",function(z){if(B.getPresentingPlayerType()===1){var T,R,h={playerDebugData:{pmlSignal:!!((T=z.getPlayerResponse())==null?0:(R=T.adPlacements)==null?0:R.some(function(W){var b;return W==null?void 0:(b=W.adPlacementRenderer)==null?void 0:b.renderer})), contentCpn:z.clientPlaybackNonce}};g.ip("adsClientStateChange",h)}})}; T4=function(B){g.O.call(this,{B:"button",nf:["ytp-button","ytp-autonav-toggle"],C:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{B:"div",G:"ytp-autonav-toggle-button-container",S:[{B:"div",G:"ytp-autonav-toggle-button",C:{"aria-checked":"true"}}]}]});this.j=B;this.U=[];this.T=!1;this.isChecked=!0;B.createClientVe(this.element,this,113681);this.Z(B,"presentingplayerstatechange",this.T0);this.listen("click",this.onClick);this.j.K().D("web_player_autonav_toggle_always_listen")&& FGd(this);ay(B,this.element,this);this.T0()}; FGd=function(B){B.U.push(B.Z(B.j,"videodatachange",B.T0));B.U.push(B.Z(B.j,"videoplayerreset",B.T0));B.U.push(B.Z(B.j,"onPlaylistUpdate",B.T0));B.U.push(B.Z(B.j,"autonavchange",B.ND))}; IRz=function(B){B.isChecked=B.isChecked;B.BD("ytp-autonav-toggle-button").setAttribute("aria-checked",String(B.isChecked));var z=B.isChecked?"Autoplay is on":"Autoplay is off";B.updateValue("title",z);B.updateValue("label",z);B.j.TR()}; Gcz=function(B){return B.j.K().D("web_player_autonav_use_server_provided_state")&&s2(B.O2())}; dhb=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"standardControlsInitialized",function(){var T=new T4(B);g.m(z,T);B.Tk(T,"RIGHT_CONTROLS_LEFT")})}; RM=function(B,z){g.N2.call(this,g.td({role:"menuitemcheckbox","aria-checked":"false"}),z,B,{B:"div",G:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; hh=function(B,z){B.checked=z;B.element.setAttribute("aria-checked",String(B.checked))}; ATb=function(B){var z=!B.K().AY&&B.getPresentingPlayerType()!==3;return B.isFullscreen()||z}; g.WO=function(B,z,T,R){var h=B.currentTarget;if((T===void 0||!T)&&g.p0(B))return B.preventDefault(),!0;z.pauseVideo();B=h.getAttribute("href");g.Xo(B,R,!0);return!1}; g.bx=function(B,z,T){if(tq(z.K())&&z.getPresentingPlayerType()!==2){if(g.p0(T))return z.isFullscreen()&&!z.K().externalFullscreen&&z.toggleFullscreen(),T.preventDefault(),!0}else{var R=g.p0(T);R&&z.pauseVideo();g.Xo(B,void 0,!0);R&&(g.Zw(B),T.preventDefault())}return!1}; Uhz=function(B){B=aRB.includes("en")?B.D("delhi_modern_web_player_icons")?dw5():{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,C:{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"}}]}:B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,C:{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"}}]};B.G="ytp-subtitles-button-icon";return B}; MPH=function(B){return aRB.includes("en")?B?dw5():{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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"}}]}:B?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},S:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Yj=function(){return{B:"div",G:"ytp-spinner-container",S:[{B:"div",G:"ytp-spinner-rotator",S:[{B:"div",G:"ytp-spinner-left",S:[{B:"div",G:"ytp-spinner-circle"}]},{B:"div",G:"ytp-spinner-right",S:[{B:"div",G:"ytp-spinner-circle"}]}]}]}}; lx=function(B){if(document.createRange){var z=document.createRange();z&&(z.selectNodeContents(B),B=window.getSelection())&&(B.removeAllRanges(),B.addRange(z))}}; ix=function(B){var z=B.D("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";RM.call(this,z,g.wQ.oM);var T=this;this.j=B;this.T=!1;this.U=new g.Si(function(){g.iH(T.element,"ytp-menuitem-highlighted")},0); this.WB=B.m0();B=B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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(B);this.subscribe("select",this.Y,this);this.listen(qP,this.W);g.m(this,this.U)}; cO=function(B){ee.call(this,B);var z=this;this.T=!1;B.addEventListener("settingsMenuInitialized",function(){VPl(z)}); B.addEventListener("highlightSettingsMenu",function(T){VPl(z);var R=z.menuItem;T==="menu_item_cinematic_lighting"&&(g.ww(R.element,"ytp-menuitem-highlighted"),g.ww(R.element,"ytp-menuitem-highlight-transition-enabled"),R.U.start())}); Ww(B,"updateCinematicSettings",function(T){z.updateCinematicSettings(T)})}; VPl=function(B){B.menuItem||(B.menuItem=new ix(B.api),g.m(B,B.menuItem),B.menuItem.rF(B.T))}; QLK=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"applicationvideodatachange",function(T,R){R=R.clipConfig;T==="dataloaded"&&R&&R.startTimeMs!=null&&R.endTimeMs!=null&&z.api.setLoopRange({startTimeMs:Math.floor(Number(R.startTimeMs)),endTimeMs:Math.floor(Number(R.endTimeMs)),postId:R.postId,type:"clips"})})}; Lf=function(B){ee.call(this,B);this.events=new g.kb(B);g.m(this,this.events);Ww(B,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Ww(B,"setCreatorEndscreenHideButton",this.T.bind(this))}; Cf=function(B,z,T,R){RM.call(this,"Stable Volume",g.wQ.MI);g.ww(this.element,"ytp-drc-menu-item");this.WB=B.m0();this.Y=z;this.T=T;this.hasDrcAudioTrack=R;B.addEventListener("videodatachange",this.U.bind(this));B.D("mta_drc_mutual_exclusion_removal")&&this.Z(B,"onPlaybackAudioChange",this.U);z=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());B=B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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(B);this.subscribe("select",this.W,this);hh(this,z);this.WB.Fu(this)}; rQ=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);B.D("html5_show_drc_toggle")&&B.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new Cf(z.api,z.setDrcUserPreference.bind(z),z.getDrcUserPreference.bind(z),z.U.bind(z)),g.m(z,z.menuItem))}); Ww(this.api,"setDrcUserPreference",function(R){z.setDrcUserPreference(R)}); Ww(this.api,"getDrcUserPreference",function(){return z.getDrcUserPreference()}); Ww(this.api,"hasDrcAudioTrack",function(){return z.U()}); var T;this.T=(T=g.kK("yt-player-drc-pref"))!=null?T:1;this.updateEnvironmentData()}; oM=function(B){ee.call(this,B);var z=this;this.T={};this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"videodatachange",function(){z.onVideoDataChange()}); this.events.Z(B,g.YQ("embargo"),function(T){z.api.fk(!0);var R,h=(R=z.T[T.id])!=null?R:[];R=g.d(h);for(h=R.next();!h.done;h=R.next()){var W=h.value;z.api.hideControls();z.api.jD("auth",2,"This video isn't available in your current playback area",Q_({embargoed:1,id:T.id,idx:T.U,start:T.start}));h=void 0;(W=(h=W.embargo)==null?void 0:h.onTrigger)&&z.api.uO("innertubeCommand",W)}})}; yTr=function(B,z){var T;return(T=z.onEnter)==null?void 0:T.some(B.U)}; gTz=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next()){T=T.value;var R=void 0,h=Number((R=T.playbackPosition)==null?void 0:R.utcTimeMillis)/1E3,W=void 0;R=h+Number((W=T.duration)==null?void 0:W.seconds);W="embargo_"+h;B.api.addUtcCueRange(W,h,R,"embargo",!1);T.onEnter&&(B.T[W]=T.onEnter.filter(B.U))}}; FC=function(B){ee.call(this,B);var z=this;this.T=[];this.events=new g.kb(B);g.m(this,this.events);Ww(B,"addEmbedsConversionTrackingParams",function(T){z.api.K().tU&&z.addEmbedsConversionTrackingParams(T)}); this.events.Z(B,"veClickLogged",function(T){z.api.hasVe(T)&&(T=T.visualElement.getAsJspb(),T=eK(T,2),z.T.push(T))})}; JTd=function(B){ee.call(this,B);Ww(B,"isEmbedsShortsMode",function(){return B.isEmbedsShortsMode()})}; pMd=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"initialvideodatacreated",function(T){$T(pX(),16623);z.T=g.gd();var R=B.K().mD&&!T.tj;if(kh(T)&&R){$T(pX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(T.getWatchNextResponse()){var h,W=(h=T.getWatchNextResponse())==null?void 0:h.trackingParams;W&&xT(W)}if(T.getPlayerResponse()){var b;(T=(b=T.getPlayerResponse())==null?void 0:b.trackingParams)&&xT(T)}}else $T(pX(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),T.getEmbeddedPlayerResponse()&&(b=(W=T.getEmbeddedPlayerResponse())==null?void 0:W.trackingParams)&&xT(b)}); this.events.Z(B,"loadvideo",function(){$T(pX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.T})}); this.events.Z(B,"cuevideo",function(){$T(pX(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.T})}); this.events.Z(B,"largeplaybuttonclicked",function(T){$T(pX(),27240,T.visualElement)}); this.events.Z(B,"playlistnextbuttonclicked",function(T){$T(pX(),27240,T.visualElement)}); this.events.Z(B,"playlistprevbuttonclicked",function(T){$T(pX(),27240,T.visualElement)}); this.events.Z(B,"playlistautonextvideo",function(){$T(pX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; IM=function(B,z){g.K.call(this);var T=this;this.T=null;this.Y=z;z=[];for(var R=0;R<=100;R++)z.push(R/100);z={threshold:z,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(h){h=h[h.length-1];typeof h.isVisible==="undefined"?document.visibilityState==="visible"&&h.isIntersecting&&h.intersectionRatio>0?T.T=h.intersectionRatio:document.visibilityState==="hidden"?T.T=0:T.T=null:T.T=h.isVisible?h.intersectionRatio:0;typeof T.Y==="function"&&T.Y(T.T)},z): null)&&this.U.observe(B)}; Pyz=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"applicationInitialized",function(){$hK(z)})}; $hK=function(B){var z=B.api.getRootNode(),T,R=B.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((T=z.parentElement)==null?void 0:T.parentElement)||z:z;B.T=new IM(R,function(h){h!=null&&(B.api.K().Wp=h,B.api.K().Bp="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.m(B,B.T);B.events.Z(B.api,"videoStatsPingCreated",function(h){var W=B.T;W=W.T==null?null:Math.round(W.T*100)/100;h.inview=W!=null?W:void 0;W=B.api.getPlayerSize();if(W.height>0&&W.width>0){W=[Math.round(W.width),Math.round(W.height)];var b=g.Xk();b>1&&W.push(b);W=W.join(":")}else W=void 0;h.size=W})}; xhP=function(B){var z;return((z=((B==null?void 0:B.messageRenderers)||[]).find(function(T){return!!T.timeCounterRenderer}))==null?void 0:z.timeCounterRenderer)||null}; G4=function(B){g.O.call(this,{B:"div",nf:["ytp-player-content","ytp-iv-player-content"],S:[{B:"div",G:"ytp-free-preview-countdown-timer",S:[{B:"span",Yd:"{{label}}"},{B:"span",G:"ytp-free-preview-countdown-timer-separator",Yd:"\u2022"},{B:"span",Yd:"{{duration}}"}]}]});this.api=B;this.T=null;this.Y=this.U=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Dhd=function(B,z){B.T||(B.U=z,B.Y=(0,g.f)(),B.T=new g.Ew(function(){vTb(B)},null),vTb(B))}; vTb=function(B){var z=Math,T=z.round,R=Math.min((0,g.f)()-B.Y,B.U);z=T.call(z,(B.U-R)/1E3);B.updateValue("duration",Qw({seconds:z}));z<=0&&B.T?B.stopTimer():B.T&&B.T.start()}; kcK=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"basechromeinitialized",function(){z.T=new G4(B);g.m(z,z.T);g.Pw(B,z.T.element,4);z.T.hide()})}; dQ=function(B){g.O.call(this,{B:"button",nf:["ytp-fullerscreen-edu-button","ytp-button"],S:[{B:"div",nf:["ytp-fullerscreen-edu-text"],Yd:"Scroll for details"},{B:"div",nf:["ytp-fullerscreen-edu-chevron"],S:[{B:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{B:"path",C:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],C:{"data-priority":"2"}});this.Lf=B;this.fade=new g.Yp(this,250,void 0,100);this.U=this.T=!1;B.createClientVe(this.element,this,61214);g.m(this, this.fade);this.Z(B,"fullscreentoggled",this.rF);this.Z(B,"presentingplayerstatechange",this.rF);this.listen("click",this.onClick);this.rF()}; Ah=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);Ww(this.api,"updateFullerscreenEduButtonSubtleModeState",function(R){z.updateFullerscreenEduButtonSubtleModeState(R)}); Ww(this.api,"updateFullerscreenEduButtonVisibility",function(R){z.updateFullerscreenEduButtonVisibility(R)}); var T=B.K();B.D("external_fullscreen_with_edu")&&T.externalFullscreen&&tq(T)&&T.controlsType==="1"&&this.events.Z(B,"standardControlsInitialized",function(){z.T=new dQ(B);g.m(z,z.T);B.Tk(z.T)})}; KG5=function(B){g.O.call(this,{B:"div",G:"ytp-gated-actions-overlay",S:[{B:"div",G:"ytp-gated-actions-overlay-background",S:[{B:"div",G:"ytp-gated-actions-overlay-background-overlay"}]},{B:"button",nf:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],C:{"aria-label":"Close"},S:[g.yy()]},{B:"div",G:"ytp-gated-actions-overlay-bar",S:[{B:"div",G:"ytp-gated-actions-overlay-text-container",S:[{B:"div",G:"ytp-gated-actions-overlay-title",Yd:"{{title}}"},{B:"div",G:"ytp-gated-actions-overlay-subtitle", Yd:"{{subtitle}}"}]},{B:"div",G:"ytp-gated-actions-overlay-button-container"}]}]});var z=this;this.api=B;this.background=this.BD("ytp-gated-actions-overlay-background");this.U=this.BD("ytp-gated-actions-overlay-button-container");this.T=[];this.Z(this.BD("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){z.api.uO("onCloseMiniplayer")}); this.hide()}; nTH=function(B,z){var T=0;T=0;for(var R={};T h&&(h=l.width,W="url("+l.url+")")}T.background.style.backgroundImage=W;nTH(T,R.actionButtons||[]);T.show()}else T.hide()}); g.Pw(this.api,this.T.element,4)}; aM=function(B){ee.call(this,B);var z=this;lN(this.api,"getSphericalProperties",function(){return z.getSphericalProperties()}); lN(this.api,"setSphericalProperties",function(){z.setSphericalProperties.apply(z,g.Q(g.K5.apply(0,arguments)))}); YN(this.api,"getSphericalProperties",function(){return z.api.getPresentingPlayerType()===2?{}:z.getSphericalProperties()}); YN(this.api,"setSphericalProperties",function(){var T=g.K5.apply(0,arguments);z.api.getPresentingPlayerType()!==2&&z.setSphericalProperties.apply(z,g.Q(T))})}; Ut=function(B){ee.call(this,B);Ww(B,"createClientVe",this.createClientVe.bind(this));Ww(B,"createServerVe",this.createServerVe.bind(this));Ww(B,"destroyVe",this.destroyVe.bind(this));Ww(B,"hasVe",this.hasVe.bind(this));Ww(B,"logClick",this.logClick.bind(this));Ww(B,"logVisibility",this.logVisibility.bind(this));Ww(B,"setTrackingParams",this.setTrackingParams.bind(this))}; MP=function(B,z,T,R){function h(b){var l=!(b.status!==204&&b.status!==200&&!b.response),w;b={succ:""+ +l,rc:b.status,lb:((w=b.response)==null?void 0:w.byteLength)||0,rt:((0,g.f)()-W).toFixed(),shost:g.GK(B),trigger:z};HXr(b,B);T&&T(b);R&&!l&&R(new y_("pathprobe.net",b))} var W=(0,g.f)();g.yH(B,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:h,onTimeout:h})}; HXr=function(B,z){var T;((T=window.performance)==null?0:T.getEntriesByName)&&(z=performance.getEntriesByName(z))&&z.length&&(z=z[0],B.pedns=(z.domainLookupEnd-z.startTime).toFixed(),B.pecon=(z.connectEnd-z.domainLookupEnd).toFixed(),B.perqs=(z.requestStart-z.connectEnd).toFixed(),fRr&&(B.perqsa=z.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; OXr=function(B){fRr=B}; Vh=function(B,z){this.jF=B;this.policy=z;this.playbackRate=1}; N8b=function(B,z){var T=Math.min(2.5,Fk(B.jF));B=Qh(B);return z-T*B}; yh=function(B,z,T,R,h){h=h===void 0?!1:h;if(B.policy.Zy)return Math.ceil(B.policy.Zy*z);B.policy.DX&&(R=Math.abs(R));R/=B.playbackRate;var W=1/dP(B.jF);T=Math.max(.9*(R-3),Fk(B.jF)+B.jF.U.T*W)/W*.8/(z+T);T=Math.min(T,R);B.policy.g5>0&&h&&(T=Math.max(T,B.policy.g5));return tPl(B,T,z)}; tPl=function(B,z,T){return Math.ceil(Math.max(Math.max(B.policy.O6,B.policy.a9*T),Math.min(Math.min(B.policy.cD,31*T),Math.ceil(z*T))))||B.policy.O6}; jLz=function(B,z,T){T=yh(B,z.T.info.kd,T.T.info.kd,0);var R=Fk(B.jF)+T/dP(B.jF);return Math.max(R,R+B.policy.sK-T/z.T.info.kd)}; Qh=function(B){return dP(B.jF,!B.policy.a$,B.policy.kF)}; gQ=function(B){return Qh(B)/B.playbackRate}; Jh=function(B,z,T){var R=B.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],h=B.policy.playbackStartPolicy.startMinReadaheadPolicy||[];B=Infinity;z=g.d(z&&R.length>0?R:h);for(R=z.next();!R.done;R=z.next())R=R.value,h=R.minReadaheadMs||0,T<(R.minBandwidthBytesPerSec||0)||B>h&&(B=h);return B0&&(this.U=T.cU)}; eyz=function(B,z,T,R,h){if(!R.info.V){if(T.length===0)T.push(R);else{var W;(B=(W=T.pop())==null?void 0:g.bP(W,R))?T.push(B):T.push(R)}return h}var b;(T=(b=T.pop())==null?void 0:g.bP(b,R))||(T=R);if(B.policy.s0&&T.info.U)return B.logger&&B.logger({incompleteSegment:T.info.Wc()}),h;R=B.uj(T);h=R.FE;R={clipId:R.clipId,formatId:R.formatId,startTimeMs:R.startTimeMs,durationMs:R.XK,w0:h,bf:h};h=XMK(z,R.startTimeMs);if(W=T=h>=0?z[h]:null){W=R;var l=h;b=T.startTimeMs+T.durationMs;var w=W.startTimeMs+W.durationMs; if(W.startTimeMs-b>B.U)W=!1;else if(ZXK(B,T.formatId,W.formatId))T.durationMs=Math.max(b,w)-T.startTimeMs,T.bf=Math.max(T.bf,W.bf),W=!0;else if(Math.abs(T.startTimeMs-W.startTimeMs)<=B.U)if(T.durationMs>W.durationMs+B.U){var q=T.formatId,c=T.w0;l=T.bf;T.formatId=W.formatId;T.durationMs=W.durationMs;T.w0=W.w0;T.bf=W.bf;W.formatId=q;W.startTimeMs=w;W.durationMs=b-w;W.w0=c;W.bf=l;W=!1}else T.formatId=W.formatId,W=!0;else b>W.startTimeMs&&(b>w&&(z.splice(l+1,0,{formatId:T.formatId,startTimeMs:w,durationMs:b- w,w0:W.bf+1,bf:T.bf}),B.logger&&B.logger({splitOldStart:(q=T.startTimeMs)==null?void 0:q.toFixed(3),splitOldEnd:b==null?void 0:b.toFixed(3),splitNewStart:(c=W.startTimeMs)==null?void 0:c.toFixed(3),splitNewEnd:w==null?void 0:w.toFixed(3)})),T.durationMs=W.startTimeMs-T.startTimeMs,T.bf=W.w0-1),W=!1}W?R=T:(h+=1,z.splice(h,0,R));q=0;for(c=h+1;c=w+T.U?T=!0:l+T.U=0?B:-B-2}; sLP=function(B,z){if(B.yI){var T=B.yI.a7();if(T.length!==0){if(B.Y&&z){var R=B.Y,h=R.info.W;!wN(T,h)&&R.info.L>0&&(0,g.f)()-B.X<5E3&&(B.logger&&B.logger({dend:R.info.Wc()}),T=ppB(T,h,h+.01))}B.policy.jQ&&B.logger&&B.logger({cbri:""+B.T});R=[];for(var W=h=0;h=b){var c=Object.assign({},B.Tz[W]),L=B.qG.Y.get(pm(B.Tz[W].formatId)),C=Math.max(w,b);b=L.index.Yh(C+B.U/ 1E3);w=L.index.getStartTime(b);var r=b+ +(Math.abs(w-C)>B.U/1E3);C=r+B.W;r=L.index.getStartTime(r)*1E3;W!==B.T||z?(c.w0=C,c.startTimeMs=r):(B.logger&&B.logger({pEvict:"1",og:c.startTimeMs,adj:w*1E3}),c.w0=b+B.W,c.startTimeMs=w*1E3);b=void 0;w=((b=B.Y)==null?void 0:b.info.duration)||11;W===B.T&&lB.U/1E3);b=w+B.W;L=L.index.QM(w)*1E3;c.bf=b;c.durationMs=L-c.startTimeMs;c.w0<=c.bf&&R.push(c)}q=0&&kj(B.audioTrack,B.T)>=0&&W?((B.videoTrack.V||B.audioTrack.V)&&B.loader.OE("iterativeSeeking",{status:"done",count:B.seekCount}),B.videoTrack.V=!1,B.audioTrack.V=!1):R&&g.MW(function(){if(B.U||!B.policy.EE)nf(B);else{var b=z.startTime,l=z.duration;if(!B.policy.V){var w=T?B.videoTrack.V:B.audioTrack.V,q=B.videoTrack.X!==-1&&B.audioTrack.X!==-1,c=B.T>=b&&B.T432E3&&JOH(B.qG);B.Y&&(h=B.Y,B.Y=0);g.MW(function(){B.policy.V||ux(B,h,102)}); B.loader.OE("initManifestlessSync",{st:h,ost:h+B.loader.p4(),a:B.audioTrack.X,v:B.videoTrack.X});B.W&&(B.W.resolve(h+.1),B.W=null);B.policy.V&&ux(B,h,102)}}}; Ot=function(B,z){var T=this;this.BB=B;this.requestNumber=++q8z;this.T=this.now();this.J=this.N=NaN;this.L=this.T;this.Y=this.ra=this.V=0;this.X=this.T;this.eI=this.UE=this.zZ=this.C4=this.s0=this.RK=this.U=this.W=0;this.TZ=this.isActive=!1;this.Dm=this.EE=0;this.Yi={TRf:function(){return T.S8}}; this.jF=z.jF;this.snapshot=W65(this.jF);this.policy=this.jF.U;this.bD=!!z.bD;this.ob=z.ob;this.Af=z.Af||0;this.qQ=z.qQ||0;z.G3&&(this.XE=new lq);var R;this.S8=(R=z.S8)!=null?R:!1;this.bD||Tfz(this.jF)}; iQr=function(B){B.zZ=Math.max(B.zZ,B.V-B.s0);B.UE=Math.max(B.UE,B.L-B.C4);B.RK=0}; NP=function(B,z,T){Ril(B.jF,z);B.XE&&(B.XE.add(Math.ceil(z)-Math.ceil(B.L)),B.XE.add(Math.max(0,Math.ceil(T/1024)-Math.ceil(B.V/1024))));var R=z-B.L,h=T-B.V;B.ra=h;B.eI=Math.max(B.eI,h/(R+.01)*1E3);B.L=z;B.V=T;B.RK&&T>B.RK&&iQr(B)}; th=function(B,z){B.url=z;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; jF=function(B,z){Ot.call(this,B,z);this.U0=this.Sk=!1;this.lO=this.WD=Infinity;this.cD=NaN;this.O0=!1;this.MG=NaN;this.JZ=this.IK=this.Kf=0;this.tF=z.tF||1;this.kT=z.kT||this.tF;this.NK=z.NK;this.FE=z.FE;this.DS=z.DS;c1z(this);this.Le(this.T);this.aK=(this.MG-this.T)/1E3}; LmY=function(B){var z=B.IK||B.Kf;return z?B.snapshot.delay+Math.min(B.qQ,(B.J-B.N)/1E3)+z:B.aK}; XC=function(B,z,T){if(!B.bD){z=Math.max(z,.01);var R=B.Af?Math.max(z,T/B.Af):z,h=B.jF.U.Y;h&&(R=z,B.Af&&(R=Math.max(z,T/B.Af*h)));CY(B.jF,z,T,R)}}; Cal=function(B){return(B.X-B.T)/1E3}; c1z=function(B){B.cD=B.T+B.snapshot.delay*1E3;B.O0=!1}; Z9=function(B,z){if(B.NK&&B.FE!==void 0&&B.DS!==void 0){var T=Math,R=T.min,h=B.WD;var W=B.NK;var b=B.T;if(r1X(W,B.FE))W=z;else{var l=0;W.jn&&(l=.2);W=b+(W.qQ+l)*1E3}B.WD=R.call(T,h,W);T=Math;R=T.min;h=B.lO;W=B.NK;b=B.T;l=ogr(W,B.FE,B.DS);l!==2&&(z=l?z:b+W.qQ*1E3,W.jn&&(z+=W.qQ*1E3));B.lO=R.call(T,h,z);B.WD<=B.T?c1z(B):(B.cD=B.WD,B.O0=!0)}}; FmB=function(B,z){if(B.p_(z,1)){var T=B.getUint8(z);T=T<128?1:T<192?2:T<224?3:T<240?4:5}else T=0;if(T<1||!B.p_(z,T))return[-1,z];if(T===1)B=B.getUint8(z++);else if(T===2)T=B.getUint8(z++),B=B.getUint8(z++),B=(T&63)+64*B;else if(T===3){T=B.getUint8(z++);var R=B.getUint8(z++);B=B.getUint8(z++);B=(T&31)+32*(R+256*B)}else if(T===4){T=B.getUint8(z++);R=B.getUint8(z++);var h=B.getUint8(z++);B=B.getUint8(z++);B=(T&15)+16*(R+256*(h+256*B))}else T=z+1,B.focus(T),VA(B,T,4)?B=kWz(B).getUint32(T-B.jl,!0):(R= B.getUint8(T+2)+256*B.getUint8(T+3),B=B.getUint8(T)+256*(B.getUint8(T+1)+256*R)),z+=5;return[B,z]}; eF=function(B){this.BB=B;this.T=new AA}; Et=function(B,z){this.info=B;this.callback=z;this.state=1;this.WM=this.u7=!1;this.Vn=null}; Ixr=function(B){return g.E9(B.info.oK,function(z){return z.type===3})}; SF=function(B,z,T,R){var h=this;R=R===void 0?{}:R;this.policy=z;this.BB=T;this.status=0;this.T=new AA;this.U=0;this.xd=this.W=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(R.method||"GET",B);if(R.headers)for(B=R.headers,z=g.d(Object.keys(B)),T=z.next();!T.done;T=z.next())T=T.value,this.xhr.setRequestHeader(T,B[T]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return h.TE()}; this.xhr.onload=function(){return h.onDone()}; this.xhr.onerror=function(){return h.onError()}; this.xhr.fetch(function(W){h.T.append(W);h.U+=W.length;W=(0,g.f)();h.BB.x$(W,h.U)},function(){},R.body||null)}; zZ=function(){this.U=this.Kt=0;this.T=Array.from({length:Be.length}).fill(0)}; Gub=function(){}; d$B=function(){this.startTimeMs=(0,g.f)();this.T=!1}; A1z=function(){this.T=new Gub}; axz=function(B,z,T,R){R=R===void 0?1:R;T>=0&&(z in B.T||(B.T[z]=new zZ),B.T[z].dI(T,R))}; U$l=function(B,z,T,R,h){var W=(0,g.f)(),b=h?h(z):void 0,l;h=(l=b==null?void 0:b.Kt)!=null?l:1;if(h!==0){var w;l=(w=b==null?void 0:b.profile)!=null?w:T;axz(B,l,W-R,h)}return z}; TZ=function(B,z,T,R,h){if(z&&typeof z==="object"){var W=function(b){return U$l(B,b,T,R,h)}; if(LX(z))return z.then(W);if(cM(z))return IL(z,W)}return U$l(B,z,T,R,h)}; M8H=function(){}; V8B=function(B,z){this.U=(new TextEncoder).encode(B);this.T=(new TextEncoder).encode(z)}; FEb=function(B,z){var T,R,h;return g.D(function(W){if(W.U==1){if(!z)return W.return(z);T=RB.vM();R=new g.V5(B.U);return g.P(W,R.encrypt(z,B.T),2)}h=W.T;RB.mN("woe",T,Math.ceil(z.byteLength/16));return W.return(h)})}; a1l=function(B,z){var T,R,h;return g.D(function(W){if(W.U==1){if(!z)return W.return(z);T=RB.vM();R=new g.V5(B.U);return g.P(W,R.decrypt(z,B.T),2)}h=W.T;RB.mN("wod",T,Math.ceil(z.byteLength/16));return W.return(h)})}; y1K=function(B,z){var T=this;this.T=B;this.BB=z;this.loaded=this.status=0;this.error="";B=xH(this.T.get("range")||"");if(!B)throw Error("bad range");this.range=B;this.U=new AA;Qfz(this).then(function(){T.BB.qU()},function(R){T.error=""+R||"unknown_err"; T.BB.qU()})}; Qfz=function(B){var z,T,R,h,W,b,l,w,q,c,L,C,r,F,A;return g.D(function(a){if(a.U==1){B.status=200;z=B.T.get("docid");T=rO(B.T.get("fmtid")||"");R=B.T.get("lmt")||"0";h=+(B.T.get("csz")||0);if(!z||!T||!h)throw Error("Invalid local URL");B.T.get("ck")&&B.T.get("civ")&&(W=new V8B(B.T.get("ck"),B.T.get("civ")));b=B.range;l=Math.floor(b.start/h);w=Math.floor(b.end/h);q=l}if(a.U!=5)return q<=w?g.P(a,UQB(z,T,R,q,W),5):a.jI(0);c=a.T;if(c===void 0)throw Error("invariant: data is undefined");L=q*h;C=(q+1)*h; r=Math.max(0,b.start-L);F=Math.min(b.end+1,C)-(r+L);A=new Uint8Array(c.buffer,r,F);B.U.append(A);B.loaded+=F;B.loaded=400?(B.lastError="net.badstatus",!0):(h===void 0?0:h)?(B.lastError="ump.spsrejectfailure",!0):T||R!==void 0&&R?!1:(B.lastError=z===204?"net.nocontent":"net.connect",!0)}; ce=function(B,z){if(B.policy.W$)return!1;var T=z.getResponseHeader("content-type"),R=z.mV();B=!R||R<=B.policy.xj;return(!z.QL()||!T||T.indexOf("text/plain")!==-1)&&B}; kud=function(B,z){var T="";z=z.M$();z.getLength()<=B.policy.xj&&(T=D$X(B,z.r0()));return T}; D$X=function(B,z){var T=gI(z);return z8(T)?(B.logger.debug(function(){return"Redirecting to "+T}),T):""}; lJ=function(B){return UG(B.Y,g$(B.j6.oQ))}; Kmz=function(B){var z=B.timing.tR();z.shost=g$(B.j6.oQ);return z}; m$B=function(B,z){return(B==null?void 0:B.maxWidth)>(z==null?void 0:z.maxWidth)||(B==null?void 0:B.maxHeight)>(z==null?void 0:z.maxHeight)}; ngK=function(B,z){for(var T=g.d(z.keys()),R=T.next();!R.done;R=T.next())if(R=z.get(R.value),R.length!==0){g.xP(R,function(l,w){return w.maxFramerate-l.maxFramerate}); for(var h=[R[0]],W=0,b=1;bB.T||T.push(R)}return T}; LA=function(B,z,T){var R=fxK[B]||[];T.D("html5_shorts_onesie_mismatched_fix")&&(R=OQz[B]||[]);z.push.apply(z,g.Q(R));T.D("html5_early_media_for_drm")&&z.push.apply(z,g.Q(N$H[B]||[]))}; sfr=function(B,z){var T=g.Yh(B),R=B.K(),h=R.V;R=R.D("html5_shorts_onesie_mismatched_fix");var W=B.mP();if(R){if(!h.U){if(W&&CA)return CA;if(r7)return r7}}else if(r7&&!h.U)return r7;var b=[],l=[],w={},q=oB.concat(t8K);R&&(q=oB.concat(jfH));B.D("html5_early_media_for_drm")&&(q=q.concat(XKr),B.D("allow_vp9_1080p_mq_enc")&&q.push(ZQ5));var c=[].concat(g.Q(eAb));B.D("html5_iamf_audio_onesie_fmt")&&c.push(["773"]);q=g.d(q);for(var L=q.next();!L.done;L=q.next()){var C=!1;L=g.d(L.value);for(var r=L.next();!r.done;r= L.next()){r=r.value;var F=be(r,W&&R);if(F&&F.video&&!(Za(F)&&!T.WD&&F.video.qualityOrdinal>T.FJ)){var A=g.rk(B.K().experiments,"html5_drm_byterate_soft_cap");A>0&&gpH(F)&&F.kd>A||(C?(b.push(r),LA(r,b,B)):(F=If(T,F,h),F===!0?(C=!0,b.push(r),LA(r,b,B)):w[r]=F))}}}c=g.d(c);for(q=c.next();!q.done;q=c.next())for(q=g.d(q.value),C=q.next();!C.done;C=q.next())if(C=C.value,(L=gYb(C))&&L.audio&&(B.D("html5_onesie_51_audio")||!eR(L)&&!sz(L)))if(L=If(T,L,h),L===!0){l.push(C);LA(C,l,B);break}else w[C]=L;if(B.D("html5_block_onesie_hqa_fmt_by_default")&& !B.D("html5_enable_audio_quality_setting"))for(B=g.d(["141","774"]),c=B.next();!c.done;c=B.next())c=c.value,l.includes(c)&&(g.GU(l,c),w[c]="blkhqa");T.U&&z("orfmts",w);if(R)return h.U&&(h.U=!1,CA=r7=void 0),W?CA={video:b,audio:l}:r7={video:b,audio:l};r7={video:b,audio:l};h.U=!1;return r7}; g.Bcz=function(B,z,T){var R=T.V,h=[],W=[],b=T.D("html5_shorts_onesie_mismatched_fix");B=B.mP();var l=oB.concat(t8K);b&&(l=oB.concat(jfH));T.D("html5_early_media_for_drm")&&(l=l.concat(XKr),T.D("allow_vp9_1080p_mq_enc")&&l.push(ZQ5));var w=[].concat(g.Q(eAb));T.D("html5_iamf_audio_onesie_fmt")&&w.push(["773"]);l=g.d(l);for(var q=l.next();!q.done;q=l.next()){q=g.d(q.value);for(var c=q.next();!c.done;c=q.next()){c=c.value;var L=be(c,B&&b);if(L&&L.video){var C=g.rk(T.experiments,"html5_drm_byterate_soft_cap"); if(!(C>0&&gpH(L)&&L.kd>C)&&If(z,L,R)===!0){h.push({videoCodec:EgP[Oz[c]],maxWidth:L.video.width,maxHeight:L.video.height,maxFramerate:L.video.fps});break}}}}b=g.d(w);for(B=b.next();!B.done;B=b.next())for(B=g.d(B.value),w=B.next();!w.done;w=B.next())if(w=w.value,(l=gYb(w))&&l.audio&&(T.D("html5_onesie_51_audio")||!eR(l)&&!sz(l))&&If(z,l,R)===!0){W.push({audioCodec:S8B[Oz[w]],numChannels:l.audio.numChannels});break}return{videoFormatCapabilities:h,audioFormatCapabilities:W}}; IB=function(B){var z={},T=B.iO,R=B.bO,h=T.getVideoData(),W=fX(0),b=T.getPlayerSize(),l=T.getVisibilityState();if(R.D("html5_enable_audio_quality_setting")){var w=g.rk(R.experiments,"html5_default_audio_quality_setting_lr"),q;z.Vf=(q=z4H[w])!=null?q:0}W&&(z.ifK=W,z.lastManualDirection=NkB(),W=e0z()||0,W>0&&(W=(R.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.f)())-W,R.D("html5_use_date_now_for_local_storage")?W>0&&(z.timeSinceLastManualFormatSelectionMs=W):z.timeSinceLastManualFormatSelectionMs= W));W=R.D("html5_use_streamer_bandwidth_for_low_latency_live")&&h.isLowLatencyLiveStream;if(R.schedule.TZ&&!W){var c;W=R.D("html5_disable_bandwidth_cofactors_for_sabr_live")?!((c=B.yU)==null||!c.a$):!1;z.nP=dP(R.schedule,!W)}c=g.Xk();w=g.nW.medium;q=Math.floor(w*16/9);var L=h.mP();if(W=R.D("html5_fix_vieport_for_vertical_video"))if(W=h.T&&h.Y&&h.Y.videoInfos.length!==0)W=h.Y.videoInfos[0],W=!!W.video&&W.video.width0?B.R$:[1,2];B.sabrLicenseConstraint&&(z.sabrLicenseConstraint=B.sabrLicenseConstraint);if(R.D("html5_onesie_media_capabilities")||R.D("html5_enable_server_format_filter"))z.lj=3;R.D("html5_onesie_audio_only_playback")&&hu(h)&&(z.lj=1);var x;((x=B.yU)==null?0:x.t0)&&B.py&&(z.lj=z.lj===void 0?7:z.lj|4);C=h.qr?h.qr:g.Yh(h);R.D("html5_onesie_media_capabilities")&&(z.mediaCapabilities=g.Bcz(h,C,R));var v;if((v=B.yU)==null?0:FW(v)){F=R.V;v=[];r=[];A= new Map;a=Array.from(F.T.values());a=g.d(a);for(V=a.next();!V.done;V=a.next())M=V.value,M.lf?r.push({audioCodec:S8B[M.Ai],numChannels:M.numChannels,spatialCapabilityBitmask:TcK[M.Ai]}):(x=EgP[M.Ai],V={videoCodec:x,maxWidth:M.maxWidth||0,maxHeight:M.maxHeight||0,maxFramerate:M.maxFramerate||0,is10BitSupported:M.jf||!1},M.maxBitrateBps&&(V.maxBitrateBps=M.maxBitrateBps,l=be(M.itag),b=void 0,((b=l)==null?0:b.video)&&If(C,l,F)===!0&&(l=l.kd*8,l>V.maxBitrateBps&&(V.maxBitrateBps=l))),M=x+"_"+M.jf,x=A.get(M)|| [],x.push(V),A.set(M,x));v=ngK(v,A);F={};R.D("html5_ssff_denylist_opus_low")&&(F={itagDenylist:[249,350]});z.mediaCapabilities={videoFormatCapabilities:v,audioFormatCapabilities:r,hdrModeBitmask:3,perPlaybackAttributes:F}}var n;if((n=B.yU)==null?0:n.T){z.LU=C.LU;var Z;z.FJ=(Z=B.yU)==null?void 0:Z.FJ}R.tj&&(z.RA=R.tj);z.ji=B.YC;z.Sf=B.Sf;z.sL=B.sL;z.RS=B.RS;B.BY&&(z.Aof=(0,g.f)()-B.BY);B.isPrefetch&&R.D("html5_report_prefetch_requests")&&(z.isPrefetch=!0);Bo||(z.HfO=!0);n=Fk(R.schedule)*1E3;n>0&&(z.sB= n);var N;((N=B.yU)==null?0:N.wJ)&&B.GT&&B.GT0?TP:R.schedule.interruptions[0]||0);var hK;if((hK=B.yU)==null?0:hK.U0)z.jE=B.jE;if(h.v7||R.aK)z.audioTrackId=h.v7||R.aK;if(us(h)&& !z.audioTrackId){var zP;a:{var ld,t,UH;hK=(ld=h.playerResponse)==null?void 0:(t=ld.playerConfig)==null?void 0:(UH=t.compositeVideoConfig)==null?void 0:UH.sourceConfigs;var Qz,vb;ld=(zP=h.playerResponse)==null?void 0:(Qz=zP.playerConfig)==null?void 0:(vb=Qz.compositeVideoConfig)==null?void 0:vb.defaultActiveSourceVideoId;if(hK&&ld)for(zP=g.d(hK),Qz=zP.next();!Qz.done;Qz=zP.next())if(Qz=Qz.value,Qz.videoId===ld&&Qz.audioTracks)for(Qz=g.d(Qz.audioTracks),vb=Qz.next();!vb.done;vb=Qz.next())if(vb=vb.value, vb.isDefaultForSource){zP=vb.id||"";break a}zP=""}z.audioTrackId=zP;h==null||h.OE("misstrkchg",{"default":z.audioTrackId})}var AI;if((AI=B.yU)==null?0:AI.j5)if(B=VCr())z.detailedNetworkType=R4B[B]||R4B.other;R.D("html5_enable_voice_boost")&&(z.ykF=R.r_);return z}; GZ=function(B,z,T,R,h,W,b){var l={};z&&(l.BM=z);if(!B)return l;l.playbackCookie=T==null?void 0:T.playbackCookie;h&&(l.rZ=h);l.bW=[];l.jX=[];if(b==null?0:b.size)for(z=g.d(b.values()),T=z.next();!T.done;T=z.next())l.jX.push(T.value);if(B.sabrContextUpdates.size>0)for(z=g.d(B.sabrContextUpdates.values()),T=z.next();!T.done;T=z.next())h4z(l,T.value,R);bs(B)&&W&&h4z(l,W,R);B.IZ&&(l.zkI=B.IZ);R=B.K().T;l.clientInfo={clientName:WtX[R.c.toUpperCase()]||0};R.cbrand&&(l.clientInfo.deviceMake=R.cbrand);R.cmodel&& (l.clientInfo.deviceModel=R.cmodel);R.cver&&(l.clientInfo.clientVersion=R.cver);R.cos&&(l.clientInfo.osName=R.cos);R.cosver&&(l.clientInfo.osVersion=R.cosver);R=B.K();R.D("html5_sabr_enable_server_xtag_selection")&&R.R7&&(l.clientInfo.hl=R.R7);B.fU&&(l.fU=B.fU);return l}; h4z=function(B,z,T){var R=z.type||0;(T==null?0:T.has(R))?B.jX.push(z):B.bW.push(R)}; vO=function(B,z,T,R,h,W){var b=W===void 0?{}:W;var l=b.PJ===void 0?[]:b.PJ;var w=b.IG===void 0?!1:b.IG;var q=b.b2===void 0?0:b.b2;var c=b.poToken===void 0?"":b.poToken;var L=b.AM===void 0?void 0:b.AM;var C=b.m1===void 0?"":b.m1;var r=b.GO===void 0?0:b.GO;var F=b.qn===void 0?new Uint8Array(0):b.qn;var A=b.fM===void 0?!1:b.fM;W=b.Kh===void 0?0:b.Kh;b=b.BM===void 0?void 0:b.BM;Et.call(this,z,h);var a=this;this.policy=B;this.logger=new g.RH("dash/request");this.VJ=this.H4=0;this.Mi=!1;this.Ca=this.qa= null;this.WL=!1;this.qn=this.GO=null;this.Yl=this.wu=!1;this.Oq=null;this.Kh=this.rP=0;this.TT=!1;this.Yi={J0:function(M){a.J0(M)}, LHF:function(){return a.Vn}, WSK:function(M){a.Vn=M}, Qmm:function(M){a.H4=M}, gDO:function(M){a.nF.lastError=M}, ri:function(){return a.xhr}}; this.timing=new jF(this,T);this.IG=w;this.GO=r;this.qn=F;this.j6=g.jI(this.info,this.policy,R);this.j6.set("rn",this.Y9().toString());this.j6.set("rbuf",(q*1E3).toFixed().toString());this.IG&&this.j6.set("smb","1");this.policy.nt&&c&&this.j6.set("pot",c);C&&this.j6.set("bbs",C);this.policy.useUmp&&!J1(this.j6.oQ)&&(this.QT=new eF(this),this.j6.set("ump","1"),this.j6.set("srfvp","1"));if(B=this.policy.XG?this.policy.KS&&!isNaN(this.info.DS)&&this.info.DS>this.policy.rN?!1:!0:!1)z=null,this.policy.s5&& this.policy.lF?z=[1]:A&&(z=[]),z!=null&&(this.policy.HP&&z.push(2),this.j6.set("defsel",z.join(",")));this.nF=new Yd(this,this.policy,this.j6,this.info.Rx,this.timing,this.logger,R,L);this.PJ=l||null;this.WM=bmK(this);$$r(this.nF);R=void 0;if(this.policy.Ok||this.QT||this.policy.zZ)R={method:"POST"},l=(0,g.d7)([120,0]),L={},this.policy.xf&&b&&(b=GZ(void 0,b),L.TC=b),this.policy.qw&&this.qn&&(L.videoPlaybackUstreamerConfig=this.qn),this.policy.zZ&&(b=this.info.W)&&Object.assign(L,b),Object.keys(L).length> 0?R.body=g.wz(L,g.Rf):R.body=l;if(this.GO&&this.qn){this.j6.set("iwts","1");R={method:"POST"};b={RS:this.GO*1E3};var V;l=(V=this.info.W)==null?void 0:V.UG;V=g.wz({JR:b,UG:l||void 0,videoPlaybackUstreamerConfig:this.qn},g.Rf);R.body=V}try{this.xhr=h$(this.j6,this.policy.L,this.timing,B,R),this.nF.U.start(),W&&(this.Ps=new g.Si(this.lG,W,this),this.Ps.start(W+(this.timing.jF.J.EJ()||0)*1E3)),this.policy.o9&&th(this.timing,this.Pu()),this.logger.debug(function(){return"Sent, itag="+a.j6.get("itag")+ " seg="+a.info.oK[0].FE+" range="+a.j6.get("range")+" time="+Math.round(a.info.oK[0].W)+"-"+Math.round(g.c7(a.info.oK).X)+" rtp="+(a.timing.D$()-Date.now()).toFixed(0)}),g.MW(function(){})}catch(M){YGr(this,M,!0)}}; bmK=function(B){if(!(t8(B.info)&&B.info.S8()&&B.policy.Ip&&B.PJ)||B.info.Rx.Y>=2||fX()>0||!ZaX())return!1;var z=B.j6.get("aitags");if(!z)return!1;z=rO(z).split(",");for(var T=[],R=g.d(B.PJ),h=R.next();!h.done;h=R.next())h=h.value,g.F5(z,h)&&T.push(h);if(!T.length)return!1;B.j6.set("altitags",g.Cr(T.join(",")));return!0}; YGr=function(B,z,T){T=T===void 0?!1:T;g.kV(z);B.nF.lastError="player.exception";B.errorMessage=z.name+"_"+z.message;T?g.MW(function(){qZ(B.nF)}):qZ(B.nF)}; ln5=function(B,z){B.timing.TZ=!0;B.xhr.QL()&&B.timing.CT();if(B.policy.II){var T;(T=B.Ps)==null||T.stop()}bJ(B.Vn,z,!1)}; wLl=function(B,z){B.info=z;if(B.Vn){var T=B.Vn;z=z.oK;(z.length!==T.oK.length||z.length0){z=g.d(z.oK);for(var T=z.next();!T.done;T=z.next()){var R=void 0;B+=((R=T.value.range)==null?void 0:R.length)||0}return B}if(z.CA.length>0)for(T=g.d(z.CA),R=T.next();!R.done;R=T.next())B+=R.value.MB||0;return B+z.cL}; g7=function(B,z){if(Vp){var T=0;B=B.rz.get(z);if(B==null||!B.JY)return 0;B=g.d(B.JY.values());for(z=B.next();!z.done;z=B.next())T+=z.value.data.getLength();return T}return((T=B.rz.get(z))==null?void 0:T.sf.getLength())||0}; J$=function(B,z){B=B.rz.get(z);if(Vp){if(B==null||!B.G0)return!1;z=B.JY.size>0;return B.yH.length>0||z}return!(B==null||!B.G0)&&!(B==null||!B.sf.getLength())}; r85=function(B,z){var T=B.rz.get(z),R=CKl(B,z),h=!R&&!!T.bytesReceived;if(Vp){var W;if((W=B.qG)==null?0:W.PB){B=g.d(T.JY.values());for(z=B.next();!z.done;z=B.next())if(!z.value.wT)return!1;return h}}else if(W=B.f_(z),h&&B.T&&W!==void 0)return W;return(h||T.bytesReceived===R)&&T.QJ+g7(B,z)===T.bytesReceived}; oHb=function(B,z,T){B.rz.set(z,{sf:new AA,QJ:0,bytesReceived:0,cL:0,Di:!1,i8:!1,f_:!1,lf:T,Ue:[],oK:[],CA:[],G0:!1,JY:new Map,xz:new Map,yH:[]});B.logger.debug(function(){return"[initStream] formatId: "+z})}; FtK=function(B,z,T,R){T.oK.push.apply(T.oK,g.Q(R));if(Vp){T.xz.has(z)||T.xz.set(z,[]);var h;(h=T.xz.get(z)).push.apply(h,g.Q(R))}else if(T.Vn)for(B=g.d(R),z=B.next();!z.done;z=B.next())T.Vn.oK.push(z.value);else{T.Vn=new We(B.yU,[].concat(g.Q(T.oK)));var W;((W=B.yU)==null?0:W.g2)&&g.m(B,T.Vn)}}; Inz=function(B,z,T){var R,h=(R=B.qG)==null?void 0:R.Y.get(z);if(!h)return[];if(T.VE){var W;return((W=h.HT(0,T.clipId))==null?void 0:W.oK)||[]}if(h.eK()){var b=T.startMs,l=T.durationMs,w=1E3,q;if(((q=B.yU)==null?0:q.T)&&T.timeRange){var c;b=(c=T.timeRange.startTicks)!=null?c:-1;var L;l=(L=T.timeRange.R6)!=null?L:-1;var C;w=(C=T.timeRange.timescale)!=null?C:-1}if(T.Jn<0||T.Hw<0||l<0||b<0||T.MB<0||w<0)return yp(B,z),[];B=vL(T.Jn,T.MB);z=T.a8||0;return[new kH(3,h,B,"makeSliceInfosMediaBytes",T.Hw-1,b/ w,l/w,z,B.length-z,void 0,T.EX,T.clipId)]}if(T.Hw<0)return yp(B,z),[];var r;return((r=B.qG)==null?0:r.PB)?(z=h.aq,q=z*h.info.kd,c=((b=B.yU)==null?0:b.s0)?T.a8:void 0,((w=B.yU)==null?0:w.nC)&&T.timeRange&&!c&&(l=T.timeRange.startTicks/T.timeRange.timescale),[new kH(3,h,void 0,"makeSliceInfosMediaBytes",T.Hw,l,z,c,q,!0,T.EX,T.clipId)]):[]}; Ger=function(B,z,T){B.qG=z;B.yU=T;z=g.d(B.rz);for(T=z.next();!T.done;T=z.next()){var R=g.d(T.value);T=R.next().value;R=R.next().value;for(var h=g.d(R.Ue),W=h.next();!W.done;W=h.next()){W=W.value;var b=Inz(B,T,W);FtK(B,W.Bw,R,b)}}}; pA=function(B,z,T,R){B.logger.debug(function(){return"[addStreamData] formatId: "+T+",headerId: "+z+" bytes: "+R.getLength()}); (B=B.rz.get(T))&&!B.i8&&(Vp?(B.JY.has(z)||B.JY.set(z,{data:new AA,Uq:0,wT:!1}),al(B.JY.get(z).data,R)):al(B.sf,R),B.bytesReceived+=R.getLength(),B.Di=!0)}; Qp=function(B,z){B.logger.debug(function(){return"[closeStream] formatId: "+z}); var T=B.rz.get(z);T&&!T.i8&&(T.i8=!0,T.MQ&&T.MQ(),dUX(B)&&B.W.S7())}; dUX=function(B){B=g.d(B.rz.values());for(var z=B.next();!z.done;z=B.next())if(!z.value.i8)return!1;return!0}; A8l=function(B){Vp=B}; $d=function(B,z,T,R,h,W,b){g.K.call(this);this.policy=B;this.info=z;this.qG=T;this.BB=h;this.logger=new g.RH("sabr");this.QT=new eF(this);this.Gd=new UV(this);this.dD=new MZ(this);this.state=1;this.rM=!1;this.GH=0;this.clipId="";this.i9=-1;this.V7=0;this.V0=-1;this.TT=this.AJ=!1;this.hN=0;this.hL=!1;this.policy.qt?this.vc=new A$(this,W):this.vc=new jF(this,W);this.j6=this.policy.U0?z.F3:anB(z,this.policy,R);this.j6.set("rn",""+this.Y9());this.j6.set("alr","yes");Ger(this.dD,T,B);this.nF=new Yd(this, this.policy,this.j6,z.Rx,this.vc,this.logger,R,b,this.policy.enableServerDrivenRequestCancellation);$$r(this.nF);var l;if((l=this.policy)==null?0:l.g2)g.m(this,this.dD),g.m(this,this.nF);B=z.U;z={method:"POST",body:B};B&&(this.V7=B.length);try{this.xhr=h$(this.j6,this.policy.L,this.vc,Bo,z),this.policy.o9&&th(this.vc,this.Pu()),this.nF.U.start()}catch(w){g.KV(w)}}; UUP=function(B){B.policy.Qv&&B.nM&&!B.hL?B.hL=!0:B.vc.CT()}; MId=function(B,z){var T=-1,R=-1,h=-1,W;if((W=B.rr)==null?0:W.items)for(B=g.d(B.rr.items),W=B.next();!W.done;W=B.next())W=W.value,z=l,w=B.qG.isManifestless&&B.policy.eR,b){var q;if(((q=B.T)==null?void 0:q.g3.event)==="predictStart"&&B.T.FEB.X&&(B.X=NaN,B.L=NaN);B.T&&B.T.FE===z?uUB(B,z,T,B.T,h):B.U===1&&Dq(B,5,"noad")}; HmB=function(B,z,T,R,h){R.vZ?Dq(B,4,"cue"):(B.X=z,B.L=T,B.OE("sdai",{joinad:B.U,sg:B.X,st:B.L.toFixed(3)}),B.N=Date.now(),Dq(B,2,B.U===3?"staftpred":"join"),h.GS(R.g3))}; uUB=function(B,z,T,R,h){if(h&&R){var W=R.g3,b=h.r$(W);W.event==="predictStart"&&(B.UE=z);B.OE("sdai",{onqevt:W.event,sq:z,mt:T,gab:b,cst:W.startSecs,cueid:B.policy.Sy&&(b||W.event==="start")?W.identifier:void 0},!0);if(b)if(W.event!=="predictStart")W.event==="start"&&B.UE===z-1&&B.OE("sdai",{gabonstart:z}),HmB(B,z,T,R,h);else if(B.policy.Gj)Dq(B,3,"predict");else{var l=z+Math.max(Math.ceil(-W.T/5E3),1);b=Math.floor(T-W.T/1E3);B.policy.Y?B.V=b:B.W=l;B.OE("sdai",{onpred:T,estsq:l,estmt:b.toFixed(3)}); kd(B.loader,b,b,l);B.N=Date.now();Dq(B,3,"predict");h.GS(R.g3)}else B.U===1?((l=B.Y)==null?0:l.cj(T))?(kd(B.loader,T,T,z),Dq(B,4,"sk2head")):Dq(B,5,"nogab"):W.event==="predictStart"?B.policy.Y&&B.V>0?(T=Math.floor(T-W.T/1E3),B.V!==T&&B.OE("sdai",{updateSt:T,old:B.V}),B.V=T):B.W>0&&(T=z+Math.max(Math.ceil(-W.T/5E3),1),B.W!==T&&(B.OE("sdai",{updateSt:T,old:B.W}),B.W=T)):B.policy.Gj&&B.U===3&&HmB(B,z,T,R,h);var w,q;if(B.Gz&&W.event==="start"&&((w=B.T)==null?void 0:w.g3.event)!=="predictStart"&&((q=B.T)== null?void 0:q.FE)===z-1){var c;B.OE("sdai",{ovlpst:(c=B.T)==null?void 0:c.g3.event,sq:z})}}else B.OE("sdai",{nulldec:1,sq:z,mt:T.toFixed(3),evt:(R==null?void 0:(W=R.g3)==null?void 0:W.event)||"none"})}; Omr=function(B,z,T){if(B.policy.ag&&B.policy.Y)return!(B.U===1||B.U===2||!B.policy.Gj&&B.U===3&&T>=B.W);if(B.U===1||B.U===2)return!1;if(B.U!==0&&z===B.audioTrack){if(B.policy.Y)return fnz(B.videoTrack,T)||fnz(B.videoTrack,T+1);B=KA(B.videoTrack);if(T>(B?B.FE:-1))return!1}return!0}; mQ=function(B,z,T){return(T<0||T===B.X)&&!isNaN(B.L)?B.L:z}; ked=function(B,z){if(B.T){var T=B.T.g3.Dc-(z.startTime+B.J-B.T.g3.startSecs);T<=0||(T=new O8(B.T.g3.startSecs-(isNaN(B.J)?0:B.J),T,B.T.g3.context,B.T.g3.identifier,"stop",B.T.g3.T+z.duration*1E3),B.OE("cuepointdiscontinuity",{segNum:z.FE}),ve(B,T,z.FE))}}; Dq=function(B,z,T){B.U!==z&&(B.OE("sdai",{setsst:z,old:B.U,r:T}),B.U=z)}; nA=function(B,z,T,R){(R===void 0?0:R)?Dq(B,1,"seek"):z>0&&Math.abs(z-T)>=5&&B.U===4&&Dq(B,5,"sk2t")}; uJ=function(B,z,T){this.audio=B;this.video=z;this.reason=T}; He=function(B,z,T){this.T=B;this.reason=z;this.token=T;this.videoId=void 0}; fA=function(B,z,T){g.K.call(this);this.policy=B;this.W=z;this.OE=T;this.Y=new Map;this.V=0;this.X=!1;this.T="";this.U=!1}; OV=function(B,z,T){if(T===void 0?0:T)B.X=!0;++B.V;T=6E4*Math.pow(2,B.V);T=(0,g.f)()+T;B.Y.set(z.info.id,T)}; NZ=function(B){for(var z=g.d(B.Y.entries()),T=z.next();!T.done;T=z.next()){var R=g.d(T.value);T=R.next().value;R=R.next().value;R<(0,g.f)()&&B.Y.delete(T)}return B.Y}; NcY=function(B){return B.X&&NZ(B).size>0}; t$=function(B,z){B.T!==z&&(B.T=z,B.U=!0)}; tI5=function(B,z){var T;z&&(T=g.Cs(B.W.T,function(h){return h.id===z})); if(!T&&(T=g.Cs(B.W.T,function(h){var W;return!((W=h.HB)==null||!W.isDefault)}),z)){var R; B.OE("iaf",{id:z,sid:(R=T)==null?void 0:R.id})}return T}; XW=function(B,z,T,R,h,W){var b=this;W=W===void 0?[]:W;this.loader=B;this.WD=z;this.policy=T;this.qG=R;this.X=h;this.eI=W;this.logger=new g.RH("dash/abr");this.T=O2;this.Y=this.L=null;this.N=-1;this.lO=!1;this.nextVideo=this.U=null;this.W=[];this.IK=new Set;this.zZ={};this.MG=new qj(1);this.J=0;this.Kf=this.UE=this.TZ=!1;this.RK=0;this.sE=!1;this.XE=new Set;this.cD=!1;this.Yi={HG:function(){jp(b)}}; this.V=new fA(this.policy,h,function(l,w){b.loader.OE(l,w)})}; sEb=function(B,z,T){Zq(B,z);z=tI5(B.V,T);T||z||(z=jE5(B));z=z||B.X.T[0];B.U=B.qG.T[z.id];jp(B);B.L=B.U;XLB(B);ZmK(B);B.Y=B.nextVideo;B.L=B.U;return e4H(B)}; B_z=function(B,z){if(EHK(B,z))return null;if(z.reason==="m"&&z.isLocked())return B.logger.debug(function(){return"User sets constraint to: "+LQ(z)}),Zq(B,z),B.J=B.W.length-1,jp(B),ep(B),B.UE=B.UE||B.Y!==B.nextVideo,B.Y=B.nextVideo,new uJ(B.U,B.Y,z.reason); z.reason==="r"&&(B.N=-1);Zq(B,z);ep(B);if(z.reason==="r"&&B.nextVideo===B.Y)return new uJ(B.U,B.nextVideo,z.reason);SGz(B);return null}; zzK=function(B,z,T){B.U=B.qG.T[z];B.L=B.U;return new uJ(B.L,B.Y,T?"t":"m")}; T_z=function(B,z){if(z.info.video){if(B.Y!==z)return B.Y=z,e4H(B)}else B.Kf=B.L!==z,B.L=z;return null}; RzH=function(B,z){if(z.T.info.video&&z.V){var T=(z.U+z.Y)/z.duration,R=z.T.info.kd;T&&R&&(B.MG.ew(1,T/R),B.policy.U&&T/R>1.5&&B.loader.OE("overshoot",{sq:z.FE,br:T,max:R}))}}; sV=function(B,z,T){OV(B.V,z,T===void 0?!1:T);B.N=-1;Zq(B,B.T)}; hzz=function(B,z){return new uJ(B.L,B.Y,z||B.T.reason)}; SGz=function(B){if(B.Y&&B.nextVideo&&EV(B,B.Y.info)B.policy.FJ,l=h<=B.policy.FJ?Za(R):ti(R);if(!W||b||l)T[h]=R}return T}; Zq=function(B,z){B.T=z;var T=B.X.videoInfos;if(!B.T.isLocked()){var R=(0,g.f)();T=g.v6(T,function(l){if(l.kd>this.policy.kd)return!1;var w=this.qG.T[l.id];return NZ(this.V).get(l.id)>R?!1:w.Rx.Y>4||w.X>4?(this.logger.debug(function(){return"Remove "+Wn(l)+"; 4 load failures"}),!1):this.XE.has(+l.itag)?!1:!0},B); NcY(B.V)&&(T=g.v6(T,function(l){return l.video.width<=854&&l.video.height<=480}))}T.length||(T=B.X.videoInfos); var h=T;B.policy.EM&&(h=bjX(B,h,z));h=g.v6(h,z.W,z);if(B.T.isLocked()&&B.V.T){var W=g.Cs(T,function(l){return l.id===B.V.T}); W?h=[W]:t$(B.V,"")}B.policy.EM||(h=bjX(B,h,z));h.length||(h=[T[0]]);h.sort(function(l,w){return EV(B,l)-EV(B,w)}); z={};for(T=1;Tz.rA.video.width?(g.IR(h,T),T--):EV(B,z.Wn)*B.policy.J>EV(B,z.rA)&&(g.IR(h,T-1),T--);var b=h[h.length-1];B.sE=!!B.Y&&!!B.Y.info&&B.Y.info.Ai!==b.Ai;B.logger.debug(function(){return"Constraint: "+LQ(B.T)+", "+h.length+" fmts selectable, max selectable fmt: "+Wn(b)}); B.W=h;B.IK.clear();z=!1;for(T=0;T=1080&&(z=!0);Y6r(B.policy,b,B.qG.PB)}; bjX=function(B,z,T){var R=T.reason==="m"||T.reason==="s";B.policy.L3&&Sp&&g.Ax&&(!R||T.T<1080)&&(z=z.filter(function(q){return q.video&&(!q.U||q.U.powerEfficient)})); if(z.length>0)if(NM()){var h=Wez(B,z);z=z.filter(function(q){return!!q&&!!q.video&&q.Ai===h[q.video.qualityOrdinal].Ai})}else{var W,b,l=(W=z[0])==null?void 0:(b=W.video)==null?void 0:b.qualityOrdinal; if(l){T=z.filter(function(q){return!!q&&!!q.video&&q.video.qualityOrdinal===l}); var w=Wez(B,T)[l].Ai;z=z.filter(function(q){return!!q&&!!q.video&&q.Ai===w})}}return z}; l6z=function(B,z){for(var T=0;T+1R}; jp=function(B){if(!B.U||!B.policy.W&&!B.U.info.HB){var z=B.X.T;B.U&&(z=z.filter(function(R){return R.audio.T===B.U.info.audio.T}),z.length||(z=B.X.T)); B.U=B.qG.T[z[0].id];if(z.length>1&&!B.policy.Kf){if(!B.policy.wY){var T=g.Cs(z,function(R){return R.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); T&&(B.U=B.qG.T[T.id])}T=!1;if(T=B.policy.LF?!0:B.T.isLocked()?B.T.T<240:l6z(B,B.U))B.U=B.qG.T[g.c7(z).id]}}}; ep=function(B){if(!B.nextVideo||!B.policy.W)if(B.T.isLocked())B.nextVideo=B.T.T<=360?B.qG.T[B.W[0].id]:B.qG.T[g.c7(B.W).id],B.logger.debug(function(){return"Select max fmt: "+Wn(B.nextVideo.info)}); else{for(var z=Math.min(B.J,B.W.length-1),T=gQ(B.WD),R=EV(B,B.U.info),h=T/B.policy.TZ-R;z>0&&!(EV(B,B.W[z])<=h);z--);for(var W=T/B.policy.J-R;z=W);z++);B.nextVideo=B.qG.T[B.W[z].id];B.J!==z&&B.logger.info(function(){return"Adapt to: "+Wn(B.nextVideo.info)+", bandwidth: "+T.toFixed(0)+", bandwidth to downgrade: "+h.toFixed(0)+", bandwidth to upgrade: "+W.toFixed(0)+", constraint: "+LQ(B.T)}); B.J=z}}; XLB=function(B){var z=B.policy.TZ,T=gQ(B.WD),R=T/z-EV(B,B.U.info);z=g.oR(B.W,function(h){return EV(this,h)W?h=0:R[b]>B.buffered[b]&&(b===W-1?h=2:b===W-2&&R[b+1]>B.buffered[b+1]&&(h=3))}B.T.add(z<<3|(T&&4)|h);z=Math.ceil(B.track.L1()*1E3);B.T.add(z-B.V);B.V=z;if(h===1)for(B.T.add(W),b=z=0;b=2&&B.T.add(R[W- 1]-B.buffered[W-1]);T&&B.T.add(T);B.buffered=R}; TV=function(B,z,T){var R=this;this.policy=B;this.T=z;this.RK=T;this.W=this.U=0;this.hj=null;this.TZ=new Set;this.N=[];this.indexRange=this.initRange=null;this.J=new Bq;this.UE=this.WD=!1;this.Yi={xkf:function(){return R.Y}, eKm:function(){return R.chunkSize}, MMF:function(){return R.L}, JUm:function(){return R.X}}; (z=Lel(this))?(this.chunkSize=z.csz,this.Y=Math.floor(z.clen/z.csz),this.L=z.ck,this.X=z.civ):(this.chunkSize=B.DT,this.Y=0,this.L=g.V6(16),this.X=g.V6(16));this.V=new Uint8Array(this.chunkSize);this.L&&this.X&&(this.crypto=new V8B(this.L,this.X))}; Lel=function(B){if(B.policy.yn&&B.policy.Fj)for(var z=g.d(B.policy.yn),T=z.next(),R={};!T.done;R={EZ:void 0,jT:void 0},T=z.next())if(T=g.bA(T.value),R.EZ=+T.clen,R.jT=+T.csz,R.EZ>0&&R.jT>0&&B.policy.W===T.docid&&B.T.info.id===T.fmtid&&B.T.info.lastModified===+T.lmt)return B={},B.clen=R.EZ,B.csz=R.jT,B.ck=T.ck,B.civ=T.civ,B}; R7=function(B){return!!B.hj&&B.hj.tY()}; ofB=function(B,z){if(!R7(B)&&!B.xd()){if(!(B.WD||(B.WD=!0,B.Y>0))){var T=h7(B);T=v3(B.policy.W,B.T.info,WX(B),T,B.policy.MG);bL(B,T)}if(z.info.type===1){if(B.hj){Y9(B,Error("Woffle: Expect INIT slices to always start us off"));return}B.initRange=vL(0,z.T.getLength())}else if(z.info.type===2)B.hj&&B.hj.type===1||Y9(B,Error("Woffle: Index before init")),B.indexRange=vL(B.initRange.end+1,z.T.getLength());else if(z.info.type===3){if(!B.hj){Y9(B,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(B.hj.type===3&&!nm(B.hj,z.info)&&(B.N=[],z.info.FE!==uK(B.hj)||z.info.U!==0))return;if(z.info.V){T=g.d(B.N);for(var R=T.next();!R.done;R=T.next())CPH(B,R.value);B.N=[]}else{B.N.push(z);B.hj=z.info;return}}else{Y9(B,Error("Woffle: Unexpected slice type"));return}B.hj=z.info;CPH(B,z);rcr(B)}}; CPH=function(B,z){var T=0,R=z.T.r0();if(B.W=R.length)return;if(T<0)throw Error("Missing data");B.W=B.Y;B.U=0}for(h={};T0){var b=R.getUint32(T+28);W+=b*16+4}var l=R.getUint32(T+W-4);try{var w=Acb(z.subarray(T+W,T+W+l));if(w!==null){var q=w;break a}}catch(c){}}T+=h}q=null;break a}catch(c){q=null;break a}q=void 0}if(q!=null)for(z=tz(aF(q,7,void 0,BW)),z==null||B.Of||(B.cryptoPeriodIndex=z),z=tz(aF(q,10,void 0,BW)),z!=null&&z>0&& !B.Of&&(B.T=z),q=J9(q,2,y2P,void 0===$uK?2:4),q=g.d(q),R=q.next();!R.done;R=q.next())z=B.Y,T=z.push,R=C9(R.value),R=g.bT(R,4),T.call(z,R)}; UEH=function(B){return isNaN(B.cryptoPeriodIndex)?g.bT(B.initData):""+B.cryptoPeriodIndex}; qY=function(B,z,T){var R=T===void 0?{}:T;T=R.videoDuration===void 0?0:R.videoDuration;var h=R.Id===void 0?void 0:R.Id;R=R.sx===void 0?!1:R.sx;this.videoId=B;this.status=z;this.videoDuration=T;this.Id=h;this.sx=R}; MgY=function(B,z,T,R,h){this.videoId=B;this.fd=z;this.U=T;this.bytesDownloaded=R;this.T=h}; iL=function(B){this.T=B;this.offset=0}; cX=function(B){if(B.offset>=B.T.getLength())throw Error();return B.T.getUint8(B.offset++)}; VgB=function(B,z){z=z===void 0?!1:z;var T=cX(B);if(T===1){z=-1;for(T=0;T<7;T++){var R=cX(B);z===-1&&R!==255&&(z=0);z>-1&&(z=z*256+R)}return z}R=128;for(var h=0;h<6&&R>T;h++)T=T*256+cX(B),R*=128;return z?T:T-R}; QHK=function(B){try{var z=VgB(B,!0),T=VgB(B,!1);return{id:z,size:T}}catch(R){return{id:-1,size:-1}}}; ycr=function(B){for(var z=new iL(B),T=-1,R=0,h=0;!R||!h;){var W=QHK(z),b=W.id;W=W.size;if(b<0)return;if(b===176){if(W!==2)return;R=z.Jg()}else if(b===186){if(W!==2)return;h=z.Jg()}b===374648427?T=z.Jg()+W:b!==408125543&&b!==174&&b!==224&&z.skip(W)}z=QA(B,0,T);T=new DataView(z.buffer);T.setUint16(R,3840);T.setUint16(h,2160);R=new AA([z]);al(R,B);return R}; gfb=function(B,z,T){var R=this;this.loader=B;this.policy=z;this.X=T;this.logger=new g.RH("dash");this.U=[];this.T=null;this.WD=-1;this.N=0;this.XE=NaN;this.TZ=0;this.Y=NaN;this.J=this.lO=0;this.sE=-1;this.zZ=this.V=this.W=this.RK=null;this.MG=this.Kf=NaN;this.L=this.UE=this.IK=this.eI=null;this.EE=!1;this.cD=this.timestampOffset=0;this.Yi={mE:function(){return R.U}}; if(this.policy.W){var h=this.X,W=this.policy.W;this.policy.MG&&B.OE("atv",{ap:this.policy.MG});this.L=new TV(this.policy,h,function(b,l,w){LG(B,new qY(R.policy.W,2,{Id:new MgY(W,b,h.info,l,w)}))}); this.L.J.promise.then(function(b){R.L=null;b===1?LG(B,new qY(R.policy.W,b)):R.loader.OE("offlineerr",{status:b.toString()})},function(b){var l=(b.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); b instanceof lL&&!b.T?(R.logger.info(function(){return"Assertion failed: "+l}),R.loader.OE("offlinenwerr",{em:l}),CG(R),LG(B,new qY(R.policy.W,4))):(R.logger.info(function(){return"Failed to write to disk: "+l}),R.loader.OE("dldbwerr",{em:l}),CG(R),LG(B,new qY(R.policy.W,4,{sx:!0})))})}}; JcP=function(B){return B.U.length?B.U[0]:null}; pzK=function(B,z){return B.U.some(function(T){return T.info.FE===z})}; DEd=function(B,z,T,R){R=R===void 0?0:R;if(B.V){var h=B.V.U+B.V.Y;if(T.info.U>0)if(T.info.FE===B.V.FE&&T.info.U=0&&B.V.FE>=0&&!nm(B.V,T.info))throw new g.Z_("improper_continuation",B.V.Wc(),T.info.Wc());L8r(B.V,T.info)||rm(B,"d")}else if(T.info.U>0)throw new g.Z_("continuation_of_null",T.info.Wc());B.V=T.info;B.X=T.info.T;if(T.info.U===0){if(B.T)if(!B.loader.isOffline()||B.policy.Ua)B.loader.OE("slice_not_fully_processed", {buffered:B.T.info.Wc(),push:T.info.Wc()});else throw new g.Z_("slice_not_fully_processed",B.T.info.Wc(),T.info.Wc());o7(B);B.lO=R}else{if(B.lO&&R&&B.lO!==R)throw B=new g.Z_("lmt_mismatch",T.info.FE,B.lO,R),B.level="WARNING",B;!T.info.T.eK()&&B.W&&(R=T.info,h=B.W.i9,R.J="updateWithEmsg",R.FE=h)}if(B.T){R=g.bP(B.T,T);if(!R)throw new g.Z_("failed_to_merge",B.T.info.Wc(),T.info.Wc());B.T=R}else B.T=T;a:{T=g.Ez(B.T.info.T.info);if(B.T.info.type!==3){if(!B.T.info.V)break a;B.T.info.type===6?$E5(B,z,B.T): PPz(B,B.T);B.T=null}for(;B.T;){R=B.T.T.getLength();if(B.WD<=0&&B.N===0){var W=B.T.T,b=-1;h=-1;if(T){for(var l=0;l+80))break;if(L!==408125543)if(L===524531317)l=!0,c>=0&&(h=W.Jg()+c,w=!0);else{if(l&&(L===160||L===163)&&(b<0&&(b=q),w))break;L===163&&(b=Math.max(0,b),h=W.Jg()+c);if(L===160){b<0&&(h=b=W.Jg()+ c);break}W.skip(c)}}b<0&&(h=-1)}if(b<0)break;B.WD=b;B.N=h-b}if(B.WD>R)break;B.WD?(R=xEH(B,B.WD),R.V&&vf5(B,R),$E5(B,z,R),F2(B,R),B.WD=0):B.N&&(R=xEH(B,B.N<0?Infinity:B.N),B.N-=R.T.getLength(),F2(B,R))}}B.T&&B.T.info.V&&(F2(B,B.T),B.T=null)}; PPz=function(B,z){!z.info.T.eK()&&z.info.U===0&&(g.Ez(z.info.T.info)||z.info.T.info.Of())&&Z7l(z);if(z.info.type===1)try{vf5(B,z),k5b(B,z)}catch(h){g.kV(h);var T=HL(z.info);T.hms="1";B.loader.handleError("fmt.unparseable",T||{},1)}T=z.info.T;T.J1(z);B.L&&ofB(B.L,z);if(T.Fh()&&B.policy.T)a:{B=B.loader.qG;z=z.info.clipId;T=g.Bn(T.info,B.PB);if(z){var R=pm({itag:T.itag,lmt:B.PB?0:T.lmt||0,xtags:T.xtags});if(B.sE[R])break a;B.sE[R]=z}B.Kf.push(T)}}; WmB=function(B,z,T){if(B.U.length!==0&&(T||B.U.some(function(W){return W.info.W=GV(b)+l):z=B.getDuration()>=b.getDuration(),z=!z;z&&nfd(T)&&(z=B.RK,I7?(l=j_l(T),b=1/l,l=GV(B,l),z=GV(z)+b-l):z=z.getDuration()- B.getDuration(),z=1+z/T.info.duration,faK(T.YL(),z))}else{b=!1;B.W||(Z7l(T),T.U&&(B.W=T.U,b=!0,W=T.info,R=T.U.i9,W.J="updateWithEmsg",W.FE=R,W=T.U,W.tY&&(R=B.X.index,R.U=!W.tY,R.Y="emsg"),W=T.info.T.info,R=T.YL(),g.Ez(W)?RE(R,1701671783):W.Of()&&iK([408125543],307544935,R)));a:if((W=w_(T,B.policy.Dm))&&Xnz(T))l=uOr(B,T),B.J+=l,W-=l,B.TZ+=W,B.Y=B.policy.YY?B.Y+W:NaN;else{if(B.policy.g7){if(R=w=B.loader.MV(g.Yf(T),1),B.Y>=0&&T.info.type!==6){if(B.policy.YY&&isNaN(B.Kf)){g.KV(new g.Z_("Missing duration while processing previous chunk", T.info.Wc()));B.loader.isOffline()&&!B.policy.Ua||HjK(B,T,R);rm(B,"m");break a}var q=w-B.Y,c=q-B.J,L=T.info.FE,C=B.zZ?B.zZ.FE:-1,r=B.MG,F=B.Kf,A=B.policy.nL&&q>B.policy.nL,a=Math.abs(c)>10,V=Math.abs(B.Y-R)<1E-7;if(Math.abs(c)>1E-4){B.cD+=1;var M=(h=B.W)==null?void 0:j8(h);h={audio:""+ +B.lf(),sq:L.toFixed(),sliceStart:w,lastSq:C.toFixed(),lastSliceStart:r,lastSliceDuration:F,totalDrift:(q*1E3).toFixed(),segDrift:(c*1E3).toFixed(),skipRewrite:""+ +(A||a)};if(M==null?0:M.length)h.adCpn=M[0];B.loader.handleError("qoe.avsync", h);B.sE=L}A||a||V||(R=B.Y);h=uOr(B,T,w);W-=h;B.J=q+h;B.policy.U&&(c&&!V||h)&&(q=(l=B.W)==null?void 0:j8(l),B.loader.OE("discontinuityRewrite",{adCpn:(q==null?0:q.length)?q.join("."):"",itag:T.info.T.info.itag,sq:T.info.FE,originalStartTime:w,rewrittenStartTime:R,startTimeAdjustment:R-w,segDrift:(c*1E3).toFixed(),originalDuration:W+h,rewrittenDuration:W,durationAdjustment:h}))}}else R=isNaN(B.Y)?T.info.startTime:B.Y;HjK(B,T,R)&&(B.TZ+=W,B.Y=R+W,B.policy.YD&&B.cD>=B.policy.YD&&(B.cD=0,B.loader.rY({resetForRewrites:"count"})))}B.zZ= T.info;B.Kf=lP(T);T.Y>=0&&(B.MG=T.Y);if(b&&B.W){b=f6K(B,!0);fm(T.info,b);B.T&&fm(B.T.info,b);z=g.d(z);for(l=z.next();!l.done;l=z.next())l=l.value,h=void 0,B.policy.V&&l.FE!==((h=B.W)==null?void 0:h.i9)||fm(l,b);(T.info.V||B.T&&B.T.info.V)&&T.info.type!==6||(B.UE=b,B.policy.Y?(z=OjK(B.W),B.loader.Ry(B.X,b,z)):(z=B.loader,z.qG.isManifestless&&N_K(z,b,null,!!B.X.info.video)),B.policy.Qn||tgK(B))}}k5b(B,T);B.timestampOffset&&NNH(T,B.timestampOffset)}; F2=function(B,z){if(z.info.V){B.eI=z.info;if(B.W){var T=B.W,R=f6K(B,!1);T=OjK(T);B.loader.Ry(B.X,R,T);B.UE||B.policy.Qn||tgK(B);B.UE=null}o7(B)}B.L&&ofB(B.L,z);if(R=B.Ig())if(R=g.bP(R,z,B.policy.LC,B.policy.yl)){B.U.pop();B.U.push(R);return}B.U.push(z)}; OjK=function(B){if(B.vZ()){var z=B.data["Stitched-Video-Id"]?B.data["Stitched-Video-Id"].split(",").slice(0,-1):[],T=j8(B),R=[];if(B.data["Stitched-Video-Duration-Us"])for(var h=g.d(B.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),W=h.next();!W.done;W=h.next())R.push((Number(W.value)||0)/1E6);h=[];if(B.data["Stitched-Video-Start-Frame-Index"]){W=g.d(B.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var b=W.next();!b.done;b=W.next())h.push(Number(b.value)||0)}h=[]; if(B.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(W=g.d(B.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),b=W.next();!b.done;b=W.next())h.push((Number(b.value)||0)/1E6);B=new dEr(z,T,R,h,g.m_K(B),g.nbd(B))}else B=null;return B}; o7=function(B){B.T=null;B.WD=-1;B.N=0;B.W=null;B.XE=NaN;B.TZ=0;B.UE=null}; rm=function(B,z){z={rst4disc:z,cd:B.J.toFixed(3),sq:B.zZ?B.zZ.FE:-1};B.Y=NaN;B.J=0;B.sE=-1;B.zZ=null;B.MG=NaN;B.Kf=NaN;B.IK=null;B.loader.OE("mdstm",z)}; k5b=function(B,z){if(B.isDrm()){if(z.info.T.info.Of()){var T=new WL(z.YL());if(YH(T,[408125543,374648427,174,28032,25152,20533,18402])){var R=qU(T,!0);T=R!==16?null:rc(T,R)}else T=null;R="webm"}else z.info.N=I6b(z.YL()),T=G5K(z.info.N),R="cenc";T&&T.length&&(T=new wm(T,R),B.policy.xA&&g.Ez(z.info.T.info)&&(R=ZWB(z.YL()))&&(T.U=R),T.Of=z.info.T.info.Of(),z.U&&z.U.cryptoPeriodIndex&&(T.cryptoPeriodIndex=z.U.cryptoPeriodIndex),z.U&&z.U.U&&(T.T=z.U.U),B.loader.CK(T))}}; tgK=function(B){var z=B.W,T=k1K(z);T&&(T.startSecs+=B.XE,B.loader.LO(B.X,T,z.i9,z.vZ()))}; f6K=function(B,z){var T,R=B.W;if(T=k1K(R))T.startSecs+=B.XE;return new xg(R.i9,B.XE,z?R.aq:B.TZ,R.ingestionTime,"sq/"+R.i9,void 0,void 0,z,T)}; HjK=function(B,z,T){if(!O7z(z,T))return z=HL(z.info),z.smst="1",B.loader.handleError("fmt.unparseable",z||{},1),!1;isNaN(B.XE)&&(B.XE=T);return!0}; uOr=function(B,z,T){var R=0;if(z.info.T.info.Of()&&!Xnz(z))return 0;if(B.RK&&!B.lf()){var h=0;T&&g.Ez(z.info.T.info)?h=T-B.Y:z.info.T.info.Of()&&(h=B.J);var W=z.info.FE;T=w_(z,B.policy.Dm);var b=B.RK;var l=b.sE;b=b.J;var w=Math.abs(b-h)>.02;if((W===l||W>l&&W>B.sE)&&w){R=Math.max(.95,Math.min(1.05,(T-(b-h))/T));if(g.Ez(z.info.T.info))faK(z.YL(),R);else if(z.info.T.info.Of()&&(W=h-b,!g.Ez(z.info.T.info)&&(z.info.T.info.Of(),R=new WL(z.YL()),l=z.V?R:new WL(new DataView(z.info.T.T.buffer)),w_(z,!0)))){var q= W*1E3,c=FU(l);l=R.pos;R.pos=0;if(R.T.getUint8(R.pos)===160||IE(R))if(wc(R,160))if(qU(R,!0),wc(R,155)){if(W=R.pos,w=qU(R,!0),R.pos=W,q=q*1E9/c,c=cL(R),q=c+Math.max(-c*.7,Math.min(c,q)),q=Math.sign(q)*Math.floor(Math.abs(q)),!(Math.ceil(Math.log(q)/Math.log(2)/8)>w)){R.pos=W+1;for(W=w-1;W>=0;W--)R.T.setUint8(R.pos+W,q&255),q>>>=8;R.pos=l}}else R.pos=l;else R.pos=l;else R.pos=l}R=w_(z,B.policy.Dm);R=T-R}R&&z.info.T.info.Of()&&B.loader.OE("webmDurationAdjustment",{durationAdjustment:R,videoDrift:h+R, audioDrift:b})}return R}; nfd=function(B){return B.info.T.eK()&&B.info.FE===B.info.T.index.CF()}; GV=function(B,z){z=(z=z===void 0?0:z)?Math.round(B.timestampOffset*z)/z:B.timestampOffset;B.X.W&&z&&(z+=B.X.W.T);return z+B.getDuration()}; jHK=function(B,z){z<0||(B.U.forEach(function(T){NNH(T,z)}),B.timestampOffset=z)}; xj=function(B,z,T,R,h){Et.call(this,T,h);var W=this;this.policy=B;this.formatId=z;this.dD=R;this.lastError=null;this.MQ=function(){W.xd()||(W.dD.rz.has(W.formatId)?(W.isComplete()||W.T.start(),J$(W.dD,W.formatId)&&W.aP(2),W.dD.i8(W.formatId)&&(r85(W.dD,W.formatId)?W.J0(4):(W.lastError="net.closed",W.J0(5)))):(W.lastError="player.exception",W.J0(5)))}; this.T=new g.Si(function(){W.isComplete()||(W.lastError="net.timeout",W.J0(5))},1E3); this.T.start();c8B(this.dD,this.formatId,this.MQ);g.MW(this.MQ)}; dm=function(B,z,T,R){g.K.call(this);var h=this;this.loader=B;this.policy=z;this.T=T;this.timing=R;this.logger=new g.RH("dash");this.Y=[];this.RK=[];this.U=this.yI=null;this.IK=!1;this.lO=this.cD=0;this.X=-1;this.WD=!1;this.XE=-1;this.zZ=null;this.UE=NaN;this.TZ=[];this.Yi={RF:function(){return h.W}, FHE:function(){return h.Y}, sTZ:function(){return h.J}}; this.W=new gfb(B,z,T);this.policy.T&&(this.J=new pf(this.W,this.loader.getManifest(),this.policy,function(W){h.policy.Vj&&h.OE("buftl",W)})); this.policy.O0&&(this.N=new BX(this));this.kd=T.info.kd;this.L=this.policy.UE?!1:T.Pf();this.isManifestless=T.Pf();this.V=this.L;g.m(this,this.zZ)}; A7=function(B,z,T){T=T===void 0?!1:T;z&&I7&&jHK(B.W,z.yM());if(!T){var R;(R=B.J)==null||zAr(R)}B.yI=z;(z=B.J)!=null&&(z.yI=B.yI)}; a7=function(B){var z=B.yI&&B.yI.Wb();if(B.policy.Rn){if((B=B.J)==null)B=void 0;else{var T;B=(T=B.Y)==null?void 0:T.info}return B||null}return z}; XzK=function(B){for(var z={},T=0;T4&&B.RK.shift()}; ZjK=function(B,z){if(z.hg()){var T=z.Uv();T=g.d(T);for(var R=T.next();!R.done;R=T.next())R=R.value,B.policy.U&&z instanceof xj&&B.OE("omblss",{s:R.info.Wc()}),MY(B,z.info.oK,R,z.PN())}}; MY=function(B,z,T,R){R=R===void 0?0:R;isNaN(B.UE)||(B.OE("aswm",{sq:z[0].FE,id:z[0].T.info.itag,xtag:z[0].T.info.T,ep:Date.now()-B.UE}),B.UE=NaN);switch(T.info.type){case 1:case 2:ezH(B,T);break;case 4:var h=T.info.T,W=h.oa(T),b;((b=B.U)==null?0:b.type===4)&&dM5(T.info,B.U)&&(B.U=h.GE(B.U).pop());T=g.d(W);for(h=T.next();!h.done;h=T.next())MY(B,z,h.value,R);break;case 3:T.info.T.info.video?(h=B.timing,h.XE||(h.XE=(0,g.f)(),g.JO("fvb_r",h.XE,h.T))):(h=B.timing,h.X||(h.X=(0,g.f)(),g.JO("fab_r",h.X,h.T))); DEd(B.W,z,T,R);B.policy.T&&sHK(B);break;case 6:DEd(B.W,z,T,R),B.U=T.info}}; ezH=function(B,z){if(z.info.type===1)if(z.info.T.info.video){var T=B.timing;T.lO||(T.lO=(0,g.f)(),g.JO("vis_r",T.lO,T.T))}else T=B.timing,T.J||(T.J=(0,g.f)(),g.JO("ais_r",T.J,T.T));PPz(B.W,z);B=B.loader;B.videoTrack.T.Fh()&&B.audioTrack.T.Fh()&&B.policy.T&&!B.qG.PB&&(z=B.audioTrack.getDuration(),T=B.videoTrack.getDuration(),Math.abs(z-T)>1&&B.OE("trBug",{af:""+g.Bn(B.audioTrack.T.info,!1),vf:""+g.Bn(B.videoTrack.T.info,!1),a:""+z,v:""+T}))}; ff=function(B){return JcP(B.W)}; sHK=function(B){B.Y.length?B.U=g.c7(g.c7(B.Y).info.oK):B.W.U.length?B.U=B.W.Ig().info:B.U=a7(B)}; VY=function(B,z){var T={Tz:[],wv:[]},R;if((B=B.J)==null)B=void 0;else{B$d(B,B.Tz,"og");sLP(B,z);B$d(B,B.Tz,"trim");var h=SQY(B);z=h.Tz;h=h.Ev;for(var W=[],b=0;b0){var C=lr(L,w);C>=0&&(c=(L.end(C)-w+.1)*1E3)}W.push({formatId:g.Bn(l.info.T.info,B.qG.PB), EX:l.info.EX,sequenceNumber:l.info.FE+B.W,N_:q,df:l.info.Y,TP:c})}B={Tz:z,wv:W}}return(R=B)!=null?R:T}; kj=function(B,z,T){T=T===void 0?!1:T;if(B.yI){var R=B.yI.a7(),h=qM(R,z),W=NaN,b=a7(B);b&&(W=qM(R,b.T.index.getStartTime(b.FE)));if(h===W&&B.U&&B.U.Y&&EfH(QY(B),0))return z}B=S6l(B,z,T);return B>=0?B:NaN}; m0=function(B,z,T){B.T.Fh();var R=S6l(B,z);if(R>=0)return R;var h;(h=B.J)==null||ETz(h,z,T);R=Math;h=R.min;var W=B.W;if(W.L)if(W=W.L,W.hj&&W.hj.type===3)W=W.hj.startTime;else if(W.Y>0){var b=W.T.index;b=g.$P(b.offsets.subarray(0,b.count),W.Y*W.chunkSize);W=W.T.index.getStartTime(b>=0?b:Math.max(0,-b-2))}else W=0;else W=Infinity;z=h.call(R,z,W);B.U=B.policy.UE?null:B.T.uL(z).oK[0];yY(B)&&(B.policy.q7&&(T==null?void 0:T.seekSource)===60||B.yI&&B.yI.abort(),B.policy.vU&&(T=B.J)!=null&&(T.Y=void 0)); B.lO=0;return B.U?B.U.startTime:z}; RAB=function(B){B.L=!0;B.V=!0;B.X=-1;m0(B,Infinity)}; gm=function(B){for(var z=0,T=g.d(B.Y),R=T.next();!R.done;R=T.next())z+=aol(R.value.info);return z+=Kez(B.W)}; pG=function(B,z){z=z===void 0?!1:z;var T=B.loader.getCurrentTime(),R=B.W.Ig(),h=(R==null?void 0:R.info.X)||0;B.policy.Nh&&(R==null?0:R.info.T.Pf())&&!R.info.V&&(h=R.info.W);if(!B.yI)return B.policy.T&&z&&!isNaN(T)&&R?h-T:0;var W=a7(B);if(W&&J7(W))return W.X;var b=B.yI.a7(!0);if(z&&R)return W=0,B.policy.T&&(W=L7(b,h+.02)),W+h-T;h=L7(b,T);B.policy.KC&&W&&(z=lr(b,T),b=lr(b,W.W-.02),z===b&&(T=W.X-T,B.policy.U&&T>h+.02&&B.OE("abh",{bh:h,bhtls:T}),h=Math.max(h,T)));return h}; BPB=function(B){var z=a7(B);return z?z.X-B.loader.getCurrentTime():0}; zlX=function(B,z){if(B.Y.length){if(B.Y[0].info.oK[0].startTime<=z)return;D9(B)}for(var T=B.W,R=T.U.length-1;R>=0;R--)T.U[R].info.startTime>z&&T.U.pop();sHK(B);B.U&&z=0;b--){var l=h.U[b];l.info.FE>=z&&(h.U.pop(),h.Y-=w_(l,h.policy.Dm),W=l.info)}W&&(h.V=h.U.length>0?h.U[h.U.length-1].info:h.IK,h.U.length!==0||h.V||rm(h,"r"));h.loader.OE("mdstm",{rollbk:1,itag:W?W.T.info.itag:"",popped:W?W.FE:-1,sq:z,lastslc:h.V?h.V.FE:-1,lastfraget:h.Y.toFixed(3)});if(B.policy.T)return B.U=null,!0;R>T?m0(B,R):B.U=B.T.BZ(z-1,!1).oK[0]}catch(w){return z=Ji(w),z.details.reason="rollbkerr", B.loader.handleError(z.errorCode,z.details,z.severity),!1}return!0}; x9=function(B,z){var T;for(T=0;T0?T||z.FE>=B.XE:T}; vX=function(B){var z;return yY(B)||J7((z=B.W.Ig())==null?void 0:z.info)}; QY=function(B){var z=[],T=a7(B);T&&z.push(T);z=g.aR(z,B.W.nh());T=g.d(B.Y);for(var R=T.next();!R.done;R=T.next()){R=R.value;for(var h=g.d(R.info.oK),W=h.next(),b={};!W.done;b={Ny:void 0},W=h.next())b.Ny=W.value,R.u7&&(z=g.v6(z,function(l){return function(w){return!dM5(w,l.Ny)}}(b))),(mt(b.Ny)||b.Ny.type===4)&&z.push(b.Ny)}B.U&&!i7z(B.U,g.c7(z),B.U.T.eK())&&z.push(B.U); return z}; EfH=function(B,z){if(!B.length)return!1;for(z+=1;z=z){z=W;break a}}z=h}return z<0?NaN:EfH(B,T?z:0)?B[z].startTime:NaN}; Dy=function(B){return!(!B.U||B.U.T===B.T)}; TPl=function(B){return Dy(B)&&B.T.Fh()&&B.U.T.info.kdz&&B.X1080&&!B.JK&&(B.lO=36700160,B.eI=5242880,B.cD=Math.max(4194304,B.cD),B.JK=!0);z.video.qualityOrdinal>2160&&!B.Ms&&(B.lO=104857600,B.kd=13107200,B.Ms=!0);g.rk(B.bO.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?z.isEncrypted()&&g.jH()&&g.NR("samsung")&&(g.NR("kant")||g.NR("muse"))&&(B.kd=g.rk(B.bO.experiments,"html5_samsung_kant_limit_max_bitrate")):z.isEncrypted()&&g.jH()&&g.NR("kant")&&(B.kd=1310720);B.r_!==0&&z.isEncrypted()&& (B.kd=B.r_);B.Eg!==0&&z.isEncrypted()&&T&&(B.kd=B.Eg);z.kd&&(B.kF=Math.max(B.O6,Math.min(B.cD,5*z.kd)))}; FW=function(B){return B.T&&B.Pk}; uL=function(B){return B.T&&B.RQ&&B.playbackStartPolicy}; HX=function(B,z,T,R){B.RQ&&(B.playbackStartPolicy=z,B.yX=T,B.qH=R)}; nG=function(B,z,T){T=T===void 0?0:T;return g.rk(B.bO.experiments,z)||T}; rqb=function(B){var z=B===void 0?{}:B;B=z.lF;var T=z.jn;var R=z.qQ;var h=z.CF;z=z.rT;this.lF=B;this.jn=T;this.qQ=R;this.CF=h;this.rT=z}; r1X=function(B,z){if(z<0)return!0;var T=B.CF();return z0)return 2;if(z<0)return 1;T=B.CF();return z(0,g.f)()?0:1}; O1=function(B,z,T,R,h,W,b,l,w,q,c,L,C,r){r=r===void 0?null:r;g.K.call(this);var F=this;this.loader=B;this.policy=z;this.videoTrack=T;this.audioTrack=R;this.W=h;this.T=W;this.timing=b;this.V=l;this.schedule=w;this.qG=q;this.Y=c;this.TZ=L;this.fM=C;this.qn=r;this.UE=!1;this.m1="";this.NK=null;this.DS=NaN;this.WD=!1;this.U=null;this.GO=this.N=NaN;this.Kh=this.X=0;this.logger=new g.RH("dash");this.Yi={Rj:function(A,a){return F.Rj(A,a)}}; this.policy.yj>0&&(this.m1=g.V6(this.policy.yj));this.policy.kB&&(this.J=new fG(this.loader,this.policy,this.schedule),g.m(this,this.J))}; djX=function(B,z,T){var R=z.U?z.U.T.Rx:z.T.Rx;var h=B.W,W;(W=!B.policy.r9)||(W=g$(R.T)===g$(R.U));W?R=!1:(h=UG(h,g$(R.U)),W=6E4*Math.pow(h.W,1.6),(0,g.f)()=h.W?(h.OE("sdai",{haltrq:W+1,est:h.W}),R=!1):R=h.U!==2;if(!R||!J8(z.U?z.U.T.Rx:z.T.Rx,B.policy,B.W,B.loader.eP())||B.loader.isSuspended&&(!Aq(B.schedule)||B.loader.yk))return!1;if(B.policy.W&&xO>=5)return g.Bi(B.loader.Sx),!1;if(B.qG.isManifestless){if(z.Y.length>0&&z.U&&z.U.FE===-1||z.Y.length>=B.policy.OI||!B.policy.PP&&z.Y.length>0&&!B.policy.L.jn)return!1;if(z.L)return!B.qG.isLive|| !isNaN(B.DS)}if(YfK(z))return B.logger.debug("Pending request with server-selectable format found"),!1;if(!z.U){if(!z.T.Fh())return!1;m0(z,B.loader.getCurrentTime())}if(ff(z)&&(z.Ig()!==ff(z)||B.loader.isSuspended))return!1;h=(R=B.policy.tC)&&!z.Y.length&&pG(z,!0)=B.policy.l4)return!1;R=z.U;if(!R)return!0;R.type===4&&R.T.Fh()&&(z.U=g.c7(R.T.GE(R)),R= z.U);if(!R.tY()&&!R.T.bL(R))return!1;W=B.qG.qh||B.qG.W;if(B.qG.isManifestless&&W){W=z.T.index.CF();var b=T.T.index.CF();W=Math.min(W,b);if(z.T.index.Ox()>0&&W>0&&R.FE>=W)return z.XE=W,T.XE=W,!1}if(R.T.info.audio&&R.type===4||R.tY())return!1;W=!z.V&&!T.V;if(h=!h)h=R.X,h=!!(T.U&&!J7(T.U)&&T.U.XAqz(B,z)?(Aqz(B,z),!1):(B=z.yI)&&B.isLocked()?!1:!0}; Aqz=function(B,z){var T=B.T;T=T.T?T.T.g3:null;if(B.policy.RK&&T)return T.startSecs+T.Dc+15;z=Kf(B.loader,z);B.policy.aK>0&&(T=((0,g.f)()-B.loader.Ls)/1E3,z=Math.min(z,B.policy.aK+B.policy.BV*T));z=B.loader.getCurrentTime()+z;return B.policy.Kl&&(T=af5(B.loader)+B.policy.Kl,T=0||z.Rx.Xn("defrag")==="1"||z.Rx.Xn("otf")==="1"){z=null;break a}h=vL(0,4096)}h=new OG([new kH(5,R.T,h,"createProbeRequestInfo"+R.J,R.FE)],z.U);h.T5=T;h.T=z.T;z=h}z&&t7(B,z)}}; t7=function(B,z){B.loader.Nx(z);var T=aol(z),R=B.loader.Va();T={jF:B.schedule,tF:T,kT:N8b(B.V,T),S8:Km(z.oK[0]),bD:J1(z.Rx.T),G3:B.policy.U,ob:function(b,l){B.loader.My(b,l)}}; if(B.schedule.U.X){var h,W;T.Af=(((h=B.videoTrack.T)==null?void 0:h.info.kd)||0)+(((W=B.audioTrack.T)==null?void 0:W.info.kd)||0)}B.NK&&(T.FE=z.oK[0].FE,T.DS=z.DS,T.NK=B.NK);R={b2:UMH(z,B.loader.getCurrentTime()),PJ:B.policy.Ip&&t8(z)&&z.oK[0].T.info.video?q6d(B.Y):void 0,IG:B.policy.RK,poToken:B.loader.Og(),AM:B.loader.wO(),m1:B.m1,GO:isNaN(B.GO)?null:B.GO,qn:B.qn,fM:B.fM,Kh:B.Kh,BM:R};return new vO(B.policy,z,T,B.W,function(b,l){try{a:{var w=b.info.oK[0].T,q=w.info.video?B.videoTrack:B.audioTrack; if(!(b.state>=2)||b.isComplete()||b.fL()||!(!B.loader.GZ||B.loader.isSuspended||pG(q)>3)){var c=Ifl(b,B.policy,B.W);c===1&&(B.WD=!0);UjH(B,b,c);if(b.isComplete()||b.xd()&&l<3){if(B.policy.U){var L=b.timing.tR();L.rst=b.state;L.strm=b.xhr.QL();L.cncl=b.xhr&&b.nF.W?1:0;B.loader.OE("rqs",L)}b.Mi&&B.loader.OE("sbwe3",{},!0)}if(!B.xd()&&b.state>=2){vHP(B.timing,b,w);var C=B.loader;B.GO&&b.Oq&&C&&(B.GO=NaN,B.loader.Fd(b.Oq),B.loader.Am(),B.loader.OE("cabrUtcSeek",{mediaTimeSeconds:b.Oq}));b.Zv&&B.GO&&b.Zv&& !b.Zv.action&&(B.loader.nT(B.GO),B.GO=NaN,B.loader.OE("cabrUtcSeekFallback",{targetUtcTimeSeconds:B.GO}));b.OU&&B.loader.JS(b.OU);B.policy.II&&(B.Kh=b.Kh);if(b.state===3){x9(q,b);t8(b.info)&&X2(B,q,w,!0);if(B.U){var r=b.info.sA();r&&B.U.yG(b.info.oK[0].FE,w.info.id,r)}B.loader.nQ()}else if(b.isComplete()&&b.info.oK[0].type===5){if(b.state!==4)b.uo()&&B.loader.handleError(b.Sz(),b.XW());else{var F=(b.info.oK[0].T.info.video?B.videoTrack:B.audioTrack).Y[0]||null;F&&F instanceof vO&&F.fL()&&F.R9()}b.dispose()}else{b.uo()|| Mjb(B,b);var A;((A=b.MP)==null?0:A.itagDenylist)&&B.loader.Wt(b.MP.itagDenylist);if(b.state===4)Zy(B,b),B.T&&nHd(B.T,b.info,B.U);else if(B.policy.XG&&b.hg()&&!b.isComplete()&&!Zy(B,b)&&!b.uo())break a;b.uo()&&(Vj5(B,b),isNaN(B.GO)||(B.loader.nT(B.GO),B.GO=NaN));B.policy.Sk&&!b.isComplete()?e5(B.loader):B.loader.nQ();var a=GkB(b,B.policy,B.W);UjH(B,b,a)}}}}}catch(V){l=B.UE?1:0,B.UE=!0,b=gt(l),l=Ji(V,l),B.loader.handleError(l.errorCode,l.details,l.severity),b||B.loader.LX()}},R)}; Mjb=function(B,z){if(z.WM&&z.state>=2&&z.state!==3){var T=z.xhr.getResponseHeader("X-Response-Itag");if(T){B.logger.debug(function(){return"Applying streamer-selected format "+T}); var R=wzX(B.Y,T),h=z.info.Y;h&&(h-=R.XM(),R.Y=!0,z.info.oK[0].T.Y=!1,wLl(z,R.HT(h)),s1(B.loader,B.videoTrack,R),lfr(B.videoTrack,R),B.loader.NT(R.info.video.quality),(h=z.PN())&&R.info.lastModified&&R.info.lastModified!==+h&&x9(B.videoTrack,z))}else z.WM=!1}}; Vj5=function(B,z){var T=z.info.oK[0].T,R=z.Sz();if(J1(T.Rx.T)){var h=g.Yn(z.B4(),3);B.loader.OE("dldbrerr",{em:h||"none"})}h=z.info.oK[0].FE;var W=mQ(B.T,z.info.oK[0].W,h);R==="net.badstatus"&&(B.X+=1);if(z.canRetry()&&QnK(B.loader)){if(!(z.info.Rx.Y>=B.policy.d4&&B.U&&z.info.isDecorated()&&R==="net.badstatus"&&B.U.I4(W,h))){h=(T.info.video&&T.Rx.Y>1||z.H4===410||z.H4===500||z.H4===503)&&!(NZ(B.Y.V).size>0)&&!J1(T.Rx.T);W=z.XW();var b=T.info.video?B.videoTrack:B.audioTrack;h&&(W.stun="1");B.loader.handleError(R, W);B.xd()||(h&&(B.logger.debug(function(){return"Stunning format "+T.info.id}),sV(B.Y,T)),x9(b,z),B.loader.nQ())}}else b=1,B.U&&z.info.isDecorated()&&R==="net.badstatus"&&B.U.I4(W,h)&&(b=0),B.qG.isLive&&z.Sz()==="net.badstatus"&&B.X<=B.policy.fY*2?(gUX(B.qG),B.qG.qh||B.qG.isPremiere?HO(B.loader,0,{Dx:"badStatusWorkaround"}):B.qG.W?HO(B.loader,B.qG.WD,{Dx:"badStatusWorkaround", MV:!0}):E1(B.loader)):B.loader.handleError(R,z.XW(),b)}; Zy=function(B,z){if(B.policy.useUmp&&z.xd())return!1;try{var T=z.info.oK[0].T,R=T.info.video?B.videoTrack:B.audioTrack;if(B.qG.isManifestless&&R){B.X=0;R.L&&(z.xd(),z.isComplete()||z.hg(),R.L=!1);z.i7()&&B.loader.wC.ew(1,z.i7());var h=z.Ox(),W=z.PQ();$f(B.qG,h,W)}if(z.info.S8()&&!NU(z.info))for(var b=g.d(z.Uv()),l=b.next();!l.done;l=b.next())ezH(R,l.value);for(B.loader.getCurrentTime();R.Y.length&&R.Y[0].state===4;){var w=R.Y.shift();ZjK(R,w);R.cD=w.DI()}R.Y.length&&ZjK(R,R.Y[0]);var q=!!ff(R);q&& z instanceof xj&&(T.info.lf()?y8H(B.timing):QEH(B.timing));return q}catch(c){z=z.XW();z.origin="hrhs";a:{B=B.loader;T=c;if(T instanceof Error){z.msg||(z.msg=""+T.message);z.name||(z.name=""+T.name);if(T instanceof g.Z_&&T.args)for(R=g.d(Object.entries(T.args)),h=R.next();!h.done;h=R.next())W=g.d(h.value),h=W.next().value,W=W.next().value,z["arg"+h]=""+W;g.KV(T);if(T.level==="WARNING"){B.iO.rY(z);break a}}B.handleError("fmt.unplayable",z,1)}return!1}}; yqz=function(B){var z=B.videoTrack.T.index;B.NK=new rqb({lF:B.policy.lF,jn:B.policy.L.jn,qQ:z.kC(),CF:function(){return z.CF()}, rT:function(){return z.rT()}})}; X2=function(B,z,T,R){if(!(T.Fh()||T.G9()||T.Y||!J8(T.Rx,B.policy,B.W,B.loader.eP())||T.info.Ai==="f"||B.policy.T)){if(R){R=B.V;var h=T.info;R=tPl(R,h.video?R.policy.ZY:R.policy.Fo,h.kd)}else R=0;R=T.HT(R);B=t7(B,R);NU(R)&&U1(z,B);T.Y=!0}}; S5=function(B,z,T,R,h,W,b,l){g.K.call(this);var w=this;this.loader=B;this.yU=z;this.videoTrack=T;this.audioTrack=R;this.qG=h;this.N=W;this.isAudioOnly=b;this.J=l;this.U=O2;this.WD=!1;this.logger=new g.RH("sabr");this.L=this.UE=this.TZ=!1;this.videoInfos=this.X=this.N.videoInfos;this.Y=this.RK=this.N.T;this.T=new fA(z,W,function(q,c){w.loader.OE(q,c)}); this.isAudioOnly&&gCK(this,this.qG.T["0"])}; Jqb=function(B,z){var T=[];z=g.d(z);for(var R=z.next();!R.done;R=z.next())T.push(g.Bn(R.value,B.qG.PB));return T}; gCK=function(B,z,T){z!==B.W&&(B.W&&(B.WD=!0),B.W=z,B.gQ(z,B.videoTrack,T))}; xjz=function(B,z){B.logger.debug("setConstraint: "+LQ(z));FW(B.yU)&&(B.UE=z.reason==="m"||z.reason==="l"?!0:!1);z.reason==="m"?z.isLocked()&&poB(B,z.T):$jb(B,z)?PqK(B,z.U,z.T):B.videoInfos=B.X;B.U=z}; $jb=function(B,z){return B.yU.c$&&z.reason==="b"||B.yU.Ol&&z.reason==="l"||B.yU.Gb?!1:B.yU.y6?!0:z.reason==="l"||z.reason==="b"||z.reason==="o"}; vCB=function(B,z){return z.isLocked()&&B.T.U||B.U===void 0?!1:z.equals(B.U)}; Djr=function(B,z){var T,R=(T=B.W)==null?void 0:T.info.video.qualityOrdinal;return B.WD?!0:B.W?z!==R?!0:!B.T.U||B.yU.AY&&B.T.T===B.W.info.itag?!1:!0:!1}; poB=function(B,z){var T=B.T.T;if(T){B.videoInfos=B.X;var R=g.Cs(B.videoInfos,function(h){return h.id===T}); R&&R.video.qualityOrdinal===z?B.videoInfos=[R]:(R=B.videoInfos.map(function(h){return h.id}),B.loader.OE("sabrpf",{pfid:""+T, vfids:""+R.join(".")}),PqK(B,z,z),t$(B.T,""))}else PqK(B,z,z)}; PqK=function(B,z,T){B.videoInfos=B.X;B.videoInfos=g.v6(B.videoInfos,function(R){return R.video.qualityOrdinal>=z&&R.video.qualityOrdinal<=T})}; kkH=function(B,z,T){if(B.J){var R=g.v6(B.Y,function(h){return h.id===B.J}); return BJ(R,T).includes(z)}R=g.v6(B.Y,function(h){var W;return!((W=h.HB)==null||!W.isDefault)}); return R.length>0?BJ(R,T).includes(z):BJ(B.Y,T).includes(z)}; BJ=function(B,z){return B.map(function(T){return pm(g.Bn(T,z))})}; KRz=function(B){var z;if((z=B.U)==null?0:z.isLocked())return B.videoInfos;var T=NZ(B.T);z=g.v6(B.videoInfos,function(R){return R.kd>B.yU.kd?!1:!T.has(R.id)}); NcY(B.T)&&(z=g.v6(z,function(R){return R.video.width<=854&&R.video.height<=480})); return z}; nCH=function(B,z,T){var R=B.qG,h=B.iO.getVideoData(),W=B.U5,b=IB({bO:h.K(),iO:B.iO,YC:B.YC,yU:B.yU,BY:B.BY,GT:B.GT,BT:B.BT,cI:B.cI,hU:B.hU,isPrefetch:B.isPrefetch,qN:B.qN,sabrLicenseConstraint:h.sabrLicenseConstraint,RS:B.RS,jE:B.jE,Sf:B.Sf,sL:B.sL,py:!!W,R$:h.R$}),l=GZ(h,B.BM,B.nextRequestPolicy,B.I$,B.rZ,B.Hg,B.fP);T&&z&&(T=l.jX?l.jX.map(function(L){return L.type}):[],z("sabr",{stmctxt:T.join("_"), unsntctxt:l.bW?l.bW.join("_"):""}));z=B.T_;T=B.O5;if(T===void 0&&z===void 0){var w;T=mj5(R.PB,(w=B.zW)==null?void 0:w.video);var q;z=mj5(R.PB,(q=B.zW)==null?void 0:q.audio)}if(h.qn)var c=h.qn;h={JR:b,wv:B.wv,T_:z,O5:T,U5:W,videoPlaybackUstreamerConfig:c,TC:l};B.UG&&(h.UG=B.UG);h.Tz=B.Tz;h.DH=R.Kf;return h}; mj5=function(B,z){return z?[g.Bn(z.info,B)]:[]}; zg=function(B,z,T){var R=this;this.requestType=B;this.Rx=z;this.BB=T;this.U=null;this.Yi={i0Z:function(){var h;return(h=R.data)==null?void 0:h.isPrefetch}, rZ:function(){var h;return(h=R.data)==null?void 0:h.rZ}}}; anB=function(B,z,T){z=QE(B.Rx,ukK(B,z,T),z);B.Uh()&&z.set("probe","1");return z}; ukK=function(B,z,T){B.T5===void 0&&(B.T5=B.Rx.T5(z,T));return B.T5}; HYd=function(B){var z,T;return((z=B.T)==null?void 0:(T=z.JR)==null?void 0:T.ji)||0}; ffl=function(B){var z,T;return!!((z=B.T)==null?0:(T=z.JR)==null?0:T.RS)}; OYz=function(B){var z={},T=[],R=[];if(!B.data)return z;for(var h=0;h0;w--)T.push(l)}T.length!==b?z.error=!0:(W=T.slice(-W),T.length=h,oOd(z,T,W));break;case 1:oOd(z,Lp,q2z);break;case 0:Fxz(z, z.T&7);T=Fu(z,16);h=Fu(z,16);(T^h)!==65535&&(z.error=!0);z.output.set(z.data.subarray(z.U,z.U+T),z.Y);z.U+=T;z.Y+=T;break;default:z.error=!0}B.Y>B.output.length&&(B.output=new Uint8Array(B.Y*2),B.Y=0,B.U=0,B.W=!1,B.T=0,B.register=0)}B.output.length!==B.Y&&(B.output=B.output.subarray(0,B.Y));return B.error?new Uint8Array(0):B.output}; oOd=function(B,z,T){z=Cel(z);T=Cel(T);for(var R=B.data,h=B.output,W=B.Y,b=B.register,l=B.T,w=B.U;;){if(l<15){if(w>R.length){B.error=!0;break}b|=(R[w+1]<<8)+R[w]<>=7;q<0;)q=z[(b&1)-q],b>>=1;else b>>=q&15;l-=q&15;q>>=4;if(q<256)h[W++]=q;else if(B.register=b,B.T=l,B.U=w,q>256){b=ru[q];b+=Fu(B,Cp[q]);w=rbB(B,T);l=o2[w];l+=Fu(B,ibl[w]);if(GiY&&bT.length&&(B.error=!0);B.register|=(T[R+1]<<8)+T[R]<=0)return Fxz(B,T&15),T>>4;for(Fxz(B,7);T<0;)T=z[Fu(B,1)-T];return T>>4}; Fu=function(B,z){for(;B.T=B.data.length)return B.error=!0,0;B.register|=B.data[B.U++]<>=z;B.T-=z;return T}; Fxz=function(B,z){B.T-=z;B.register>>=z}; Cel=function(B){for(var z=[],T=g.d(B),R=T.next();!R.done;R=T.next())R=R.value,z[R]||(z[R]=0),z[R]++;var h=z[0]=0;T=[];var W=0;R=0;for(var b=1;b7&&(W+=z[b]);for(h=1;h>w&1;l=W<<4|b;if(b<=7)for(w=1<<7-b;w--;)R[w<>=7;b--;){R[w]||(R[w]=-z,z+=2);var q=h&1;h>>=1;w=q-R[w]}R[w]=l}}return R}; dTd=function(B){var z,T,R,h,W,b,l;return g.D(function(w){switch(w.U){case 1:if(!("DecompressionStream"in window))return w.return(g.I5r(new g.cbb(B)));z=new DecompressionStream("gzip");T=z.writable.getWriter();T.write(B);T.close();R=z.readable.getReader();h=new AA([]);case 2:return g.P(w,R.read(),5);case 5:W=w.T;b=W.value;if(l=W.done){w.jI(4);break}h.append(b);w.jI(2);break;case 4:return w.return(h.r0())}})}; I2=function(B,z){this.T=B;this.U=z}; AbB=function(B){return Gc(Gc(oL(function(){return IL(B.U,function(z){return B.PL(B.T,z)})}),function(){return B.xQ(B.T)}),function(){return B.zx(B.T)})}; a5X=function(B,z){return AbB(new I2(B,z))}; VLY=function(B){aB.call(this,"onesie");this.hZ=B;this.T={};this.Y=!0;this.W=null;this.queue=new w3B(this);this.V={};this.X=d8(function(z,T){var R=this;return function W(){var b,l,w,q,c,L,C,r,F,A,a,V,M,x,v,n,Z,N,TP,hK,zP,ld;return kr(W,function(t){switch(t.U){case 1:g.MB(t,2);R.hZ.X6();b=function(UH){return function(Qz){throw{name:UH,message:Qz};}}; l=z.r0();g.AK(t,4,5);if(!T){t.jI(7);break}L=n5;return GP(t,Gc(UTH(R.hZ,l,R.iv),b("DecryptError")).wait(),8);case 8:w=L(t.T);case 7:if(!R.hZ.enableCompression){t.jI(9);break}r=n5;return GP(t,Gc(a5X((C=w)!=null?C:l,R.hZ.K().fF),b("DecompressError")).wait(),10);case 10:q=r(t.T);case 9:c=N9((A=(F=q)!=null?F:w)!=null?A:l,Agz);case 5:g.$r(t,0,2);if(V=(a=R.hZ.K())==null?void 0:a.cD)((M=w)==null?void 0:M.buffer)===V.exports.memory.buffer&&V.free(w.byteOffset),((x=q)==null?void 0:x.buffer)===V.exports.memory.buffer&& V.free(q.byteOffset);g.Pb(t,6);break;case 4:throw n=v=g.JK(t),new y_("onesie.response.parse",{name:(hK=n.name)!=null?hK:"unknown",message:(zP=n.message)!=null?zP:"unknown",wasm:((Z=R.hZ.K())==null?0:Z.cD)?((N=R.hZ.K())==null?0:(TP=N.cD)==null?0:TP.T)?"1js":"1":"0",enc:R.Y,gz:R.hZ.enableCompression,webcrypto:!!Mq()});case 6:return MLP(c),ld=g.pv(c.body),t.return(ld);case 2:g.$r(t),g.Pb(t,0)}})}()})}; QQK=function(B){var z=B.queue;z.T.length&&z.T[0].isEncrypted&&!z.U&&(z.T.length=0);z=g.d(Object.keys(B.T));for(var T=z.next();!T.done;T=z.next()){T=T.value;var R=B.T[T];if(!R.UT){var h=B.queue;h.T.push({videoId:R.videoId,formatId:T,isEncrypted:!1});h.U||cJ(h)}}}; gOz=function(B,z){var T=z.getLength(),R=!1;switch(B.W){case 0:B.hZ.D("html5_future_onesie_ump_handler_on_player_response")?Gc(IL(B.X(z,B.Y),function(h){ybH(B.hZ,h)}),function(h){B.hZ.Ep(h)}):B.X6(z,B.Y).then(function(h){ybH(B.hZ,h)},function(h){B.hZ.Ep(h)}); break;case 2:B.u$("ormk");z=z.r0();B.hZ.D("html5_future_onesie_ump_handler_on_media_decryption_key")?B.queue.Y(z,B.hZ.K().fF):B.queue.decrypt(z);break;default:R=!0}B.hZ.SK&&B.hZ.OE("ombup","id.11;pt."+B.W+";len."+T+(R?";ignored.1":""));B.W=null}; MLP=function(B){if(B.LV!==1)throw new y_("onesie.response.badproxystatus",{st:B.LV,webcrypto:!!Mq(),textencoder:!!g.XK.TextEncoder});if(B.httpStatus!==200)throw new y_("onesie.response.badstatus",{st:B.httpStatus});}; Jbd=function(B){return new Promise(function(z){setTimeout(z,B)})}; p3Y=function(B,z){var T=B.K();T=B.BV&&T.D("html5_onesie_preload_use_content_owner");var R=B.Az,h=zk(z.dF.experiments,"debug_bandaid_hostname");if(h)z=wu(z,h);else if((T===void 0?0:T)&&(R==null?0:R.url)&&!z.U){var W=g$(new g.QP(R.url));z=wu(z,W)}else z=(W=z.T.get(0))==null?void 0:W.location.clone();if(z&&B.videoId){W=bq(B.videoId);B=[];if(W)for(W=g.d(W),T=W.next();!T.done;T=W.next())B.push(T.value.toString(16).padStart(2,"0"));z.set("id",B.join(""));return z}}; $TP=function(B,z,T){T=T===void 0?0:T;var R,h;return g.D(function(W){if(W.U==1)return R=[],R.push(z.load()),T>0&&R.push(Jbd(T)),g.P(W,Promise.race(R),2);h=p3Y(B,z);return W.return(h)})}; PeY=function(B,z,T,R){R=R===void 0?!1:R;B.set("cpn",z.clientPlaybackNonce);B.set("opr","1");var h=z.K();B.set("por","1");Mq()||B.set("onem","1");z.startSeconds>0&&B.set("osts",""+z.startSeconds);R||(h.D("html5_onesie_disable_partial_segments")&&B.set("oses","1"),z=h.D("html5_gapless_onesie_no_media_bytes")&&RY(z)&&z.BV,T&&!z?(z=T.audio,B.set("pvi",T.video.join(",")),h.D("html5_onesie_disable_audio_bytes")||B.set("pai",z.join(",")),Bo||B.set("osh","1")):(B.set("oad","0"),B.set("ovd","0"),B.set("oaad", "0"),B.set("oavd","0")))}; xTX=function(B,z,T,R,h){h=h===void 0?!1:h;var W="https://youtubei.googleapis.com/youtubei/"+z.v7.innertubeApiVersion+"/player",b=[{name:"Content-Type",value:"application/json"}];R&&b.push({name:"Authorization",value:"Bearer "+R});b.push({name:"User-Agent",value:g.Va()});g.ek("EOM_VISITOR_DATA")?b.push({name:"X-Goog-EOM-Visitor-Id",value:g.ek("EOM_VISITOR_DATA")}):(T=T.visitorData||g.ek("VISITOR_DATA"))&&b.push({name:"X-Goog-Visitor-Id",value:T});(T=g.ek("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&b.push({name:"X-YouTube-Lava-Device-Context", value:T});(z=zk(z.experiments,"debug_sherlog_username"))&&b.push({name:"X-Youtube-Sherlog-Username",value:z});B=x8(JSON.stringify(B));return{url:W,ER:b,postBody:B,zLD:h,aO:h}}; DTr=function(B,z,T,R,h,W){var b=g.wz(B,dnB,B.aO?void 0:T.cD),l={encryptedClientKey:z.T.encryptedClientKey,JH:!0,aX:!0,y0:vOr(T,!!B.aO),j0:T.experiments.Cf("html5_use_jsonformatter_to_parse_player_response")};if(B.aO)l.g0E=b;else{if(T.cD){B=snz(z).U(b,z.iv);var w;l.mQ=(w=T.cD.pB(B))!=null?w:B}else l.mQ=z.encrypt(b);w=l.mQ;(0,g.f)();w=Tdz(new zcY(z.T.Y),w,z.iv);l.RH=w;l.iv=z.iv}z=R.getVideoData();R=IB({bO:T,iO:R,YC:z.startSeconds*1E3});h={UD:l,JR:R,onesieUstreamerConfig:h,fU:W,TC:GZ(z)};if(z.EE)if(T.D("html5_server_controlled_resume_time_refactor")){var q; h.reloadPlaybackParams=(q=z.EE)==null?void 0:q.reloadPlaybackParams}else h.reloadPlaybackParams=z.EE;return h}; kiH=function(B,z,T){var R,h,W;return g.D(function(b){if(b.U==1)return R=g.wz(z,dnB),g.P(b,ECd(T,R),2);if(b.U!=3)return h=b.T,g.P(b,Sfz(T,h),3);W=b.T;return b.return({mQ:h,encryptedClientKey:T.T.encryptedClientKey,iv:T.iv,RH:W,JH:!0,aX:!0,y0:vOr(B,!!z.aO),j0:B.experiments.Cf("html5_use_jsonformatter_to_parse_player_response")})})}; Kxl=function(B,z,T,R,h,W){var b,l,w,q,c;return g.D(function(L){if(L.U==1)return g.P(L,kiH(T,B,z),2);b=L.T;l=R.getVideoData();w=IB({bO:T,iO:R,YC:l.startSeconds*1E3});q={UD:b,JR:w,onesieUstreamerConfig:h,fU:W,TC:GZ(l)};l.EE&&(T.D("html5_server_controlled_resume_time_refactor")?q.reloadPlaybackParams=(c=l.EE)==null?void 0:c.reloadPlaybackParams:q.reloadPlaybackParams=l.EE);return L.return(q)})}; vOr=function(B,z){B=dP(B.schedule,!0);z=z||!!Mq()&&B>1572864;return"DecompressionStream"in window||!z}; du=function(B,z){g.K.call(this);var T=this;this.iO=B;this.playerRequest=z;this.logger=new g.RH("onesie");this.xhr=null;this.state=1;this.Yj=new Bq;this.QP=!1;this.playerResponse="";this.QT=new eF(this);this.To=new VLY(this);this.pT="";this.wy=this.ZW=!1;this.EQ="";this.enableCompression=this.S4=this.z9=!1;this.rK=[];this.i9=-1;this.dF=this.iO.K();this.videoData=this.iO.getVideoData();this.SK=this.dF.L4();this.Rv=this.dF.Ua;this.gG=new Yu(this.Rv.T,this.dF.fF,NPr(this.dF));this.eC=this.dF.D("html5_onesie_check_timeout"); this.u3=new g.Si(this.GW,500,this);this.Dl=new g.Si(this.Sp,1E4,this);this.yC=new g.Si(function(){if(!T.isComplete()){var R=Gg(T);T.Ep(new y_("net.timeout",R))}},1E3); this.IC=new g.Si(this.ciI,2E3,this);this.YJ=this.iO.wO();this.EC=this.D("html5_onesie_wait_for_media_availability");g.m(this.videoData,this);g.m(this,this.u3);g.m(this,this.Dl);g.m(this,this.IC);g.m(this,this.gG);B=Rn();Bo&&B&&(this.R1=new Map);this.RY=new Map;this.JN=new Map;this.Do=new Map;this.ov=new Map}; i6=function(B,z){var T;return(T=B.R1)==null?void 0:T.get(z)}; nOY=function(B,z,T){var R;return g.D(function(h){if(h.U==1)return B.u$("oprd_s"),mTz(B)?g.P(h,Bo5(B.gG,z,T),3):(R=B.gG.decrypt(z,T),h.jI(2));h.U!=2&&(R=h.T);B.u$("oprd_c");return h.return(R)})}; UTH=function(B,z,T){B.u$("oprd_s");z=snz(B.gG).encrypt(z,T);IL(z,function(){B.u$("oprd_c")}); return z}; uS5=function(B){return B.D("html5_onesie_host_probing")||B.SK?Bo:!1}; ybH=function(B,z){B.u$("oprr");B.playerResponse=z;B.S4||(B.EC=!1);AJ(B)}; AJ=function(B){if(!B.playerResponse)return!1;if(B.z9)return!0;var z=B.videoData.D("html5_onesie_audio_only_playback")&&hu(B.videoData);if(B.R1&&B.EC){if(!B.R1.has(B.pT))return!1;var T=B.R1.get(B.pT),R;if(R=T){R=!1;for(var h=g.d(T.rz.keys()),W=h.next();!W.done;W=h.next())if(W=T.rz.get(W.value))for(var b=g.d(W.CA),l=b.next();!l.done;l=b.next())l.value.MB>0&&(W.lf?R=!0:z=!0);R=!(z&&R)}if(R)return!1}B.u$("ofr");B.Yj.resolve(B.playerResponse);if(!B.eC){var w;(w=B.yC)==null||w.start();B.Dl.start()}return B.z9= !0}; f5d=function(B){if(B.R1&&!B.D("html5_onesie_media_capabilities")){B.u$("ogsf_s");var z=sfr(B.iO.getVideoData(),function(R,h){B.OE(R,h)}),T=HbB(B.iO); z.video=HQH(T,z.video);B.u$("ogsf_c");if(z.video.length)return z;B.OE("ombspf","l."+T.U+";u."+T.T+";o."+T.Y+";r."+T.reason)}}; mTz=function(B,z){return B.D("html5_onesie_sync_request_encryption")||(z==null?0:z.aO)||g.sf(B.dF)&&B.D("html5_embed_onesie_use_sync_encryption")?!1:!!Mq()}; Gg=function(B){if(!B.vc)return{};var z=B.vc.tR(),T;z.d=(T=B.vc.XE)==null?void 0:T.Y0();z.shost=B.F3;z.ty="o";return z}; Obz=function(B,z){var T,R;(R=(B=(T=B.R1)==null?void 0:T.get(z))==null)||(z=B.Y?!1:B.Y=!0,R=!z);return!R}; Noz=function(B,z,T,R,h,W,b,l,w,q,c){g.K.call(this);var L=this;this.iO=B;this.loader=z;this.policy=T;this.audioTrack=R;this.videoTrack=h;this.qG=W;this.jF=b;this.sE=l;this.Y=w;this.timing=q;this.TZ=c;this.T=[];this.V={};this.IK=this.Kf=!1;this.I$=new Set;this.W=this.cD=this.N=this.hU=0;this.J=null;this.WD={Tz:[],wv:[]};this.RK={Tz:[],wv:[]};this.L=null;this.X=[];this.Yi={IzZ:function(){return L.T}, AUd:function(){return L.V}, wwJ:function(){L.T.length=0}, WHJ:function(){return L.I$}, OLf:function(){return L.N}, O6O:function(C){L.N=C}, b6D:function(C){L.W=C}, ub:function(C){L.L=C}, W2:function(C){L.X=C}}; this.videoData=this.iO.getVideoData();this.policy.kB&&(this.zZ=new fG(this.loader,this.policy,this.jF),g.m(this,this.zZ))}; X3B=function(B,z){z=z===void 0?!1:z;if(tLd(B)){B.policy.X&&B.loader.OE("sabrcrq",{create:1});var T=new zg(0,B.qG.J,B);B.policy.r3>0&&B.W++;z=jQP(B,T,z);B.T.push(z);var R;(R=B.zZ)==null||oCr(R,B.qG.J)}}; sQY=function(B,z){var T=ZbK(B);if(B.policy.tj){var R=B.WD;var h=B.RK}else R=a2(B,B.audioTrack),h=a2(B,B.videoTrack);var W=[].concat(g.Q(R.Tz),g.Q(h.Tz));u6(B)&&W.push.apply(W,g.Q(B.X));var b=[].concat(g.Q(R.wv),g.Q(h.wv)),l=B.loader.Va(),w,q,c=B.iO,L=B.qG,C=B.U,r=B.I$,F=B.policy,A=B.loader.Ls,a=af5(B.loader)*1E3,V=(w=B.XE)==null?void 0:w.BT;w=(q=B.XE)==null?void 0:q.cI;var M;q=Number((M=B.Y.W)==null?void 0:M.info.itag)||0;var x;M=Number((x=B.Y.V)==null?void 0:x.info.itag)||0;z={iO:c,qG:L,Tz:W,wv:b, YC:T,nextRequestPolicy:C,I$:r,yU:F,BY:A,GT:a,BT:V,cI:w,hU:B.hU,isPrefetch:z||B.loader.isSuspended,TFF:q,dGf:M,BM:l,fP:B.iO.T6()};T=B.loader.Og();W=bq(T);T&&(z.rZ=W);if(T=B.iO.mO())z.RS=T*1E3;var v;T=B.Y;W=T.TZ;if(((v=T.yU)==null?0:FW(v))&&!W)for(v=g.d(T.Y),b=v.next();!b.done;b=v.next())if(b.value.HB){W=!0;break}v=FW(T.yU)&&!W?[]:Jqb(T,T.Y);z.T_=v;v=B.Y;FW(v.yU)&&!v.UE?v=[]:(T=KRz(v),T.length===0&&(T=v.X),v=Jqb(v,T));z.O5=v;z.U5=u6(B)?[B.L]:void 0;B.policy.Zq&&(z.Sf=eJK(B.loader,B.audioTrack),z.sL= eJK(B.loader,B.videoTrack));if(B.policy.Y){v=B.loader.getCurrentTime();R=HJ(B,R.Tz,v);h=HJ(B,h.Tz,v);h=Math.min(R,h);u6(B)&&B.policy.SE&&(R=HJ(B,B.X,v),B.iO.L4()&&R0&&B.T[0].Mu()&&(z.Hg=B.T[0].z6());return z}; ZbK=function(B){var z,T=B.policy.V&&((z=B.loader)==null?void 0:z.DE());z=B.loader.getCurrentTime()||0;z=EOK(B,z);var R=B.loader.p4()||0;z+=R;R=Qe(B.videoData)||g.Ve(B.videoData);var h=0;T?(R&&(h=Number.MAX_SAFE_INTEGER),B.videoData.TZ&&(h=Math.ceil(B.videoData.WD*1E3))):h=Math.ceil(z*1E3);return Math.min(Number.MAX_SAFE_INTEGER,h)}; u6=function(B){return B.policy.t0&&!!B.L}; EOK=function(B,z){if(B.loader.isSeeking())return z;var T=B.iO.Wu();if(!T)return z;T=T.Ao();if(T.length===0||wN(T,z))return z;if(!KG(B.videoTrack,z)&&!KG(B.audioTrack,z))return B.loader.OE("sundrn",{b:0,lt:z}),z;for(var R=z,h=Infinity,W=0;Wz)){var b=z-T.end(W);b=20)?(B.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),z):R}; HJ=function(B,z,T){B=B.loader.p4()||0;return fp(z,(T+B)*1E3)/1E3+T}; tLd=function(B){if(B.policy.r3>0){var z=Math.floor((0,g.f)()/1E4);if(z===B.cD){if(B.W>=B.policy.r3){if(B.W===B.policy.r3){var T={reason:"toomanyrequests"};T.limit=B.W;B.loader.handleError("player.exception",T);B.W+=1}return!1}}else B.cD=z,B.W=0}if(B.loader.isSuspended&&B.loader.yk)return!1;if(B.UE&&(0,g.f)()0&&(!B.policy.N||B.T.length!==1||!B.T[0].Mu()))return!1;var R;if((R=B.qG.J)==null||!J8(R,B.policy,B.V,B.loader.eP())||vX(B.audioTrack)&&vX(B.videoTrack))return!1; if(Or(B,B.audioTrack)&&Or(B,B.videoTrack))return B.policy.U&&B.loader.OE("sabrHeap",{a:""+gm(B.audioTrack),v:""+gm(B.videoTrack)}),!1;if(z=B.policy.Y){z=!1;if(B.TZ.U===2)z=!0;else if(B.TZ.U===3){ZbK(B);B.loader.p4();var h=VY(B.audioTrack,B.loader.isSeeking()).Tz;R=VY(B.videoTrack,B.loader.isSeeking()).Tz;var W=B.loader.getCurrentTime()||0;h=HJ(B,h,W);R=HJ(B,R,W);R=Math.min(h,R);W=B.TZ;R>=W.V?(W.OE("sdai",{haltrq:R,est:W.V}),R=!0):R=!1;R&&(z=!0)}z&&B.policy.X&&B.loader.OE("sabrcrq",{waitad:1})}if(z)return!1; B.policy.tj&&(B.WD=a2(B,B.audioTrack),B.RK=a2(B,B.videoTrack));if(!B.U)return B.policy.X&&B.loader.OE("sabrcrq",{nopolicy:1}),!0;if(B.iO.mO())return B.policy.X&&B.loader.OE("sabrcrq",{utc:1}),!0;if(B.Y.L)return B.policy.X&&B.loader.OE("sabrcrq",{audio:1}),!0;if(!B.U.targetAudioReadaheadMs||!B.U.targetVideoReadaheadMs)return B.policy.X&&B.loader.OE("sabrcrq",{noreadahead:1}),!0;if(B.policy.V&&B.loader.DE())return B.policy.X&&B.loader.OE("sabrcrq",{seekToHead:1}),!0;z=Math.min(Kf(B.loader,B.audioTrack)* 1E3,B.U.targetAudioReadaheadMs);R=Math.min(Kf(B.loader,B.videoTrack)*1E3,B.U.targetVideoReadaheadMs);var b=Math.min(z,R);W=pG(B.audioTrack,!0)*1E3;h=pG(B.videoTrack,!0)*1E3;var l=B.iO.getCurrentTime()*1E3;if(B.policy.tj){var w=fp(B.WD.Tz,l);var q=fp(B.RK.Tz,l)}else w=W,q=h;var c=wz||R>=0&&h.w0>R+1)break;T=Math.max(T,h.startTimeMs+h.durationMs);R=Math.max(R,h.bf)}return Math.max(0,T-z)}; jQP=function(B,z,T){var R={jF:B.jF,ob:function(w,q){B.iO.My(w,q)}, S8:B.policy.Lt,G3:B.policy.U};B.jF.U.X&&(R.Af=(B.videoTrack.T.info.kd||0)+(B.audioTrack.T.info.kd||0));B.policy.Yo&&(R.qQ=B.audioTrack.T.index.kC(),R.S8=!1);var h=ukK(z,B.policy,B.V)?2:1;h!==B.N&&(B.N=h,B5B(B));T=sQY(B,T);if(B.policy.N&&B.policy.U&&T.I$){for(var W=h="",b=g.d(T.I$),l=b.next();!l.done;l=b.next())l=l.value,B.videoData.sabrContextUpdates.has(l)||B.policy.N&&T.Hg&&T.Hg.type===l?h+="_"+l:W+="_"+l;B.loader.OE("sabrbldrqs",{ctxts:h,misctxts:W})}!z.setData(T,B.policy,B.V)&&B.policy.N&&B.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);R=new $d(B.policy,z,B.qG,B.V,B,R,B.loader.wO());Pe(B.timing);B.policy.X&&B.loader.OE("sabrcrq",{rn:R.Y9(),probe:z.Uh()});return R}; tJ=function(B,z){if(z.xd()||B.xd())B.policy.yr||(B.policy.V?Nm(B.loader):B.loader.nQ());else{if(B.policy.U&&z.isComplete()&&z instanceof $d){var T=B.loader,R=T.OE,h,W,b=Object.assign(z.vc.tR(),{rst:z.state,strm:z.xhr.QL(),d:(h=z.vc.XE)==null?void 0:h.Y0(),cncl:z.xhr&&z.nF.W?1:0,rqb:z.V7,cwt:z.hN,swt:(W=z.nM)==null?void 0:W.x5});h=Object.assign(OYz(z.info),b);R.call(T,"rqs",h)}if(z.isComplete()&&z.Uh()&&z instanceof $d)B.policy.ra?z.sT()?(z.dispose(),B.T.length===0?B.loader.nQ():(B=B.T[0],B instanceof $d&&B.fL()&&B.R9())):z.uo()&&B.loader.handleError(z.Sz(),z.XW()):(z.dispose(),B.loader.nQ());else{if(z.SO())z instanceof $d&&vHP(B.timing,z),B5B(B),zn5(B);else if(z.uo())T=B.iO.mO(),z instanceof $d&&ffl(z.info)&&T&&B.loader.nT(T),z instanceof du?B.T.pop():(T=1,z.canRetry()&&QnK(B.loader)&&(T5z(B,z),T=0),B.loader.handleError(z.Sz(),z.XW(),T));else{if(B.loader.isSuspended&&!z.isComplete())return;zn5(B)}z.xd()||z instanceof du||(z.isComplete()?T=GkB(z,B.policy,B.V):(T=Ifl(z,B.policy,B.V),T===1&&(B.Kf= !0)),T!==0&&(R=new zg(1,z.info.Rx),R.T5=T===2,jQP(B,R)));B.policy.Sk&&!z.isComplete()?e5(B.loader):B.loader.nQ()}}}; zn5=function(B){for(;B.T.length&&B.T[0].BL(B.ma());){var z=B.T.shift();RnK(B,z)}B.T.length&&RnK(B,B.T[0])}; RnK=function(B,z){B.policy.UI&&z instanceof $d&&(B.lO=z);var T=new Set(z.JA(B.ma()));T=g.d(T);for(var R=T.next();!R.done;R=T.next()){var h=R.value;if(!(R=!(z instanceof du))){R=B.Y;var W=R.qG.PB,b=BJ(R.videoInfos,W);W=kkH(R,h,W);var l=b.includes(h);!R.yU.Tb||W||l||R.loader.OE("sabrcpf",{fid:""+h,vfids:""+b.join("."),said:R.J||""});R=W||b.includes(h)}if(R&&(R=z.nh(h,B.ma()),b=B.policy.t0&&R_(R[0].T.info.mimeType),(!(!b&&B.policy.gC&&R.length>0&&(R[0].T.info.lf()?pG(B.audioTrack):pG(B.videoTrack))> 3)||z.isComplete())&&z.hg(h,B.ma())))for(h=z.Uv(h,B.ma()),h=g.d(h),W=h.next();!W.done;W=h.next())if(W=W.value,B.policy.U&&z instanceof du&&B.loader.OE("omblss",{s:W.info.Wc()}),b)l=B.timing,l.TZ||(l.TZ=(0,g.f)(),g.JO("fcb_r",l.TZ,l.T)),l=B,l.videoData.PB()&&l.L&&pm(l.L)===pm(g.Bn(W.info.T.info,l.qG.PB))&&l.iO.publish("sabrCaptionsDataLoaded",W,l.W2.bind(l));else{l=W.info.T.info.lf();var w=W.info.T;if(l){var q=void 0;var c=B.Y,L=(q=z.l7(B.ma()))==null?void 0:q.token;c.L&&w!==c.V?q=!0:(c.L=!1,w!==c.V&& (c.V=w,c.gQ(w,c.audioTrack,L)),q=!1);if(q)continue}else q=void 0,gCK(B.Y,w,(q=z.l7(B.ma()))==null?void 0:q.token);q=l?B.audioTrack:B.videoTrack;z instanceof du&&(q.L=!1,z instanceof du&&(l?y8H(B.timing):QEH(B.timing)));try{MY(q,R,W)}catch(C){W=Ji(C),B.loader.handleError(W.errorCode,W.details,W.severity),q.LX(),B.Hq(!1,"pushSlice"),Nm(B.loader)}}}}; T5z=function(B,z){B.policy.N?B.T.splice(B.T.indexOf(z)).forEach(function(T){T.dispose()}):(B.T.pop(),z==null||z.dispose())}; hnl=function(B,z,T){for(var R=[],h=0;h0)for(var z=g.d(B.videoData.sabrContextUpdates.keys()),T=z.next();!T.done;T=z.next()){T=T.value;var R=void 0;((R=B.videoData.sabrContextUpdates.get(T))==null?0:R.sendByDefault)&&B.I$.add(T)}if(B.policy.N&&B.T.length)for(z=g.d(B.T),T=z.next();!T.done;T=z.next())(T=T.value.z6())&&T.type&&T.sendByDefault&&B.I$.add(T.type)}; WJB=function(B){B.policy.JZ&&(B.XE=void 0,B.hU=0)}; btB=function(B,z){if(z.uo()||z.xd()){var T=B.loader,R=T.OE,h=z.state;B=B.ma();var W,b;if((z=(W=z.R1)==null?void 0:W.get(B))==null)z=void 0;else{W=0;B=z.JA();for(var l=0;l=B.policy.Li,b=!1;if(W){var l=0;!isNaN(z)&&z>B.V&&(l=z-B.V,B.V=z);l/h=B.policy.Bp&&!B.Y;if(!W&&!T&&itd(B,z))return NaN;T&&(B.Y=!0);a:{R=b;T=(0,g.f)()/1E3-(B.VJ.EJ()||0)-B.L.T-B.policy.C4;W=B.U.startTime;T=W+T;if(R){if(isNaN(z)){jX(B,NaN,"n",z);W=NaN;break a}R=z-B.policy.Wp;R=W.W&&R<=W.X){R=!0;break a}R=!1}R=!R}if(R)return B.OE("ostmf",{ct:B.getCurrentTime(),a:z.T.info.lf()}),!1;(B=B.UE)!=null&&(B.rz.get(T).G0=!0);return!0}; IrP=function(B){if(!B.qG.PB)return!0;var z=B.iO.getVideoData();if(B.iO.Xq())return B.OE("ombpa",{}),!1;var T,R;if(B.policy.n3&&!!((T=B.N)==null?0:(R=T.UW)==null?0:R.WaE)!==B.qG.qh)return B.OE("ombplmm",{}),!1;T=z.O0||z.liveUtcStartSeconds||z.R7;if(B.qG.qh&&T)return B.OE("ombplst",{}),!1;if(B.qG.N)return B.OE("ombab",{}),!1;T=Date.now();return Pz(B.qG)&&!isNaN(B.WD)&&T-B.WD>B.policy.b5*1E3?(B.OE("ombttl",{}),!1):B.qG.bz&&B.qG.W||!B.policy.mF&&B.qG.isPremiere||!(Ct(z)===0||B.policy.T&&z.D("html5_enable_onesie_media_for_sabr_proxima_optin"))|| z.D("html5_disable_onesie_media_for_mosaic")&&us(z)||z.Gz()&&!z.D("html5_enable_onesie_media_for_lifa")&&z.isDaiEnabled()&&z.enableServerStitchedDai||z.D("html5_disable_onesie_media_for_lifa_eligible")&&nt(z)?!1:!0}; GGd=function(B,z){var T=z.T,R=B.qG.PB;if(IrP(B))if(B.UE&&B.UE.rz.has(pm(g.Bn(T.info,R)))){if(R=pm(g.Bn(T.info,R)),FJH(B,z)){var h=new OG(B.UE.nh(R)),W=function(b){try{if(b.uo())B.handleError(b.Sz(),b.XW()),x9(z,b),t8(b.info)&&X2(B.V,z,T,!0),B.nQ();else if(Zy(B.V,b)){var l;(l=B.Y)==null||nHd(l,b.info,B.TZ);B.nQ()}}catch(w){b=Ji(w),B.handleError(b.errorCode,b.details,b.severity),B.LX()}}; T.Y=!0;NU(h)&&(U1(z,new xj(B.policy,R,h,B.UE,W)),Pe(B.timing))}}else B.OE("ombfmt",{})}; dpz=function(B,z){z=z||B.videoTrack&&B.videoTrack.U&&B.videoTrack.U.startTime||B.getCurrentTime();var T=s1,R=B.videoTrack,h=B.T;z=h.nextVideo&&h.nextVideo.index.Yh(z)||0;h.RK!==z&&(h.zZ={},h.RK=z,Zq(h,h.T));z=!h.T.isLocked()&&h.N>-1&&(0,g.f)()-h.Nz.T&&z.reason==="b";R||h||T?(B.iO.rY({reattachOnConstraint:R?"u":h?"drm":"perf",lo:z.U,up:z.T}),B.policy.AY||(B.W.T.U=!1)):(B.policy.AY&&(B.W.T.U=!1),Nm(B))}}else if(!EHK(B.T,z)&&B.videoTrack){B.logger.debug(function(){return"Setting constraint: r="+z.reason+" u="+z.T}); T=B.T.T;QYY(B,B_z(B.T,z));dpz(B);R=z.isLocked()&&z.reason==="m"&&B.T.UE;h=B.policy.Mg&&z.reason==="l"&&Dy(B.videoTrack);T=T.T>z.T&&z.reason==="b";var W=B.T.sE&&!NM();R||h||T||W?B.iO.rY({reattachOnConstraint:R?"u":h?"drm":W?"codec":"perf"}):Nm(B)}}; ghb=function(B,z,T){if((!B.GZ||XB(B.GZ)&&!B.policy.c8)&&!B.NQ.isSeeking()&&(B.policy.T||Dy(z)&&z.T.Fh()&&B.T.TZ)){var R=B.getCurrentTime()+jLz(B.J,z,T);B.logger.debug(function(){return"Clearing back to "+R.toFixed(3)}); zlX(z,R)}}; QYY=function(B,z){z&&(B.logger.debug(function(){return"Logging new format: "+Wn(z.video.info)}),Jud(B.iO,new He(z.video,z.reason))); if(B.T.Kf){var T=hzz(B.T,"a");B.iO.Ss(new He(T.audio,T.reason))}}; Nm=function(B){g.Bi(B.O0)}; e5=function(B){B.policy.Sk&&B.policy.XG&&Math.min(BPB(B.videoTrack),BPB(B.audioTrack))*1E3>B.policy.ju?g.Bi(B.U0):B.nQ()}; pxB=function(B,z){var T=(0,g.f)()-z,R=pG(B.audioTrack,!0)*1E3,h=pG(B.videoTrack,!0)*1E3;B.logger.debug(function(){return"Appends paused for "+T}); if(B.policy.U&&(B.OE("apdpe",{dur:T.toFixed(),abuf:R.toFixed(),vbuf:h.toFixed()}),uL(B.policy))){var W=gQ(B.J);B.OE("sdps",{ct:z,ah:R.toFixed(),vh:h.toFixed(),mr:Jh(B.J,B.Oh,W),bw:W.toFixed(),js:B.isSeeking(),re:+B.Oh,ps:(B.policy.yX||"").toString(),rn:(B.policy.qH||"").toString()})}}; $pd=function(B){if(YfK(B.videoTrack))return B.logger.debug("Pausing appends for server-selectable format"),"ssf";if(B.policy.IK&&m_(B.videoTrack)&&m_(B.audioTrack))return"updateEnd";if(vX(B.audioTrack)||vX(B.videoTrack)&&B.videoTrack.T.info.Ai!=="f")return"";if(B.NQ.isSeeking()){var z=B.J;var T=B.videoTrack;var R=B.audioTrack;if(z.policy.T){var h=z.policy.TG;uL(z.policy)&&(h=Jh(z,!1,gQ(z)));z=h;T=pG(R,!0)>=z&&pG(T,!0)>=z}else T.Y.length||R.Y.length?(h=T.T.info.kd+R.T.info.kd,h=10*(1-gQ(z)/h),z=Math.max(h, z.policy.TG),T=pG(R,!0)>=z&&pG(T,!0)>=z):T=!0;if(!T)return"abr";T=B.videoTrack;if(T.Y.length>0&&T.W.U.length===1&&JcP(T.W).info.L360);R=uL(B.policy)&&B.policy.Ic;if(!B.Oh||!R&&T)return"";T=B.policy.v7;uL(B.policy)&&(T=Jh(B.J,B.Oh,gQ(B.J)));T=RlK(B.videoTrack,B.getCurrentTime(),T)||RlK(B.audioTrack,B.getCurrentTime(), T);return uL(B.policy)?T?"mbnm":"":(B.videoTrack.Y.length>0||B.audioTrack.Y.length>0||NY(B.V,B.videoTrack,B.audioTrack)||NY(B.V,B.audioTrack,B.videoTrack))&&T?"nord":""}; PsY=function(B){if(B.L){var z=B.L.nQ(B.audioTrack,ir(B.GZ.U.a7()));z&&B.iO.seekTo(z,{eE:!0,Dx:"pollSubsegmentReadahead",MV:!0})}}; nhl=function(B,z,T){if(B.policy.IK&&m_(z))return!1;if(T.gS())return!0;if(!T.W6())return!1;var R=ff(z);if(!R||R.info.type===6)return!1;var h;if(B.policy.fl||((h=B.Y)==null?0:Omr(h,z,R.info.FE)))B.zZ=0;else return B.NQ.isSeeking()&&Nm(B),B.zZ=B.zZ||(0,g.f)(),!1;if(!Xu(B,z,T,R.info))return!1;if(B.qG.U&&R.info.U===0){if(h=xpH(z,T,R)){var W=a7(z);B.OE("initchg",{it:R.info.T.info.id,sr:!!W&&W.T===R.info.T,ty:R.info.type,seg:R.info.FE})}W=g.Ez(R.info.T.info);B.policy.S6&&W&&!h&&e8H(R)}W=B.L&&!!B.L.W&&z.T.info.audio; h=B.qG.isManifestless||R.V;if(!(B.qG.U&&R.info.U!==0||h&&!W)&&vhP(B,z,T,R))return!0;if(W)return!1;W=Kf(B,z);W=B.getCurrentTime()+W;if(R.info.W>W)return B.policy.T&&DpP(B,z),B.policy.AK&&WmB(z.W,W,!1),!1;kGK(B,z);var b;B.policy.XS&&T===((b=B.GZ)==null?void 0:b.T)&&B.MG&&(T.Ik()===0?(B.MG=!1,B.policy.XS=!1):B.eI=T.Ik());if(!KJd(B,T,R,z))return!1;B.policy.IK&&R.info.tY()?(B.iO.K().L4()&&B.OE("eosl",{ls:R.info.Wc()}),R.isLocked=!0):(z.NB(R),RzH(B.T,R.info),B.logger.debug(function(){return"Appended "+ R.info.Wc()+", buffered: "+YS(T.a7())})); h&&mpz(B,R.info.T.jS);return!0}; DpP=function(B,z){z===B.videoTrack?B.lO=B.lO||(0,g.f)():B.XE=B.XE||(0,g.f)()}; kGK=function(B,z){z===B.videoTrack?B.lO=0:B.XE=0}; KJd=function(B,z,T,R){var h=B.policy.O0?(0,g.f)():0,W=T.V&&T.info.T.T||void 0,b=T.T;T.V&&(b=u1X(B,T,b)||b);var l=b.r0();b=B.policy.O0?(0,g.f)():0;z=Htl(B,z,l,T.info,W);(R=R.N)!=null&&(W=T.info,h=b-h,b=(0,g.f)()-b,!R.U||L8r(R.U,W)&&R.U.FE===W.FE||R.flush(),R.W+=h,R.Y+=b,h=1,!R.U&&W.U&&(h=2),zV(R,h,z),b=Math.ceil(W.U/1024),h===2&&R.T.add(b),R.T.add(Math.ceil((W.U+W.Y)/1024)-b),R.U=W);B.RK=0;if(z===0)return B.cD&&(B.logger.debug("Retry succeed, back to normal append logic."),B.cD=!1,B.aK=!1),B.EE=0, !0;if(z===2||z===5)return frz(B,"checked",z,T.info),!1;if(z===1){if(!B.cD)return B.logger.debug("QuotaExceeded, retrying."),B.cD=!0,!1;if(!B.aK)return B.aK=!0,B.iO.seekTo(B.getCurrentTime(),{Dx:"quotaExceeded",MV:!0}),!1;T.info.Mr()?(h=B.policy,h.lO=Math.floor(h.lO*.8),h.WD=Math.floor(h.WD*.8)):(h=B.policy,h.eI=Math.floor(h.eI*.8),h.WD=Math.floor(h.WD*.8));B.policy.T?OV(B.W.T,T.info.T,!1):sV(B.T,T.info.T)}B.iO.rY({reattachOnAppend:z});return!1}; u1X=function(B,z,T){var R;if(R=B.policy.vS&&B.GZ&&!B.GZ.J&&!B.iO.H6())z=z.info.T.info,R=z.Of()&&ti(z)&&z.video&&z.video.width<3840&&z.video.width>z.video.height;if(R&&(B.GZ.J=!0,xb('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return T=ycr(T),B.policy.U&&B.OE("sp4k",{s:!!T}),T}; frz=function(B,z,T,R){var h="fmt.unplayable",W=1;T===5||T===3?(h="fmt.unparseable",B.policy.T?!R.T.info.video||NZ(B.W.T).size>0||OV(B.W.T,R.T,!1):!R.T.info.video||NZ(B.T.V).size>0||sV(B.T,R.T)):T===2&&(B.EE<15?(B.EE++,h="html5.invalidstate",W=0):h="fmt.unplayable");R=HL(R);var b;R.mrs=(b=B.GZ)==null?void 0:EI(b);R.origin=z;R.reason=T;B.handleError(h,R,W)}; N_K=function(B,z,T,R,h){var W=B.qG;var b=B.policy.T,l=!1,w=-1,q;for(q in W.T){var c=R_(W.T[q].info.mimeType)||W.T[q].info.Mr();if(R===c)if(c=W.T[q].index,c.bZ(z.FE)){l=c;var L=z,C=l.w_(L.FE);C&&C.startTime!==L.startTime?(l.segments=[],l.FY(L),l=!0):l=!1;l?w=z.FE:!z.pending&&b&&(L=c.getDuration(z.FE),L!==z.duration&&(W.publish("clienttemp","mfldurUpdate",{itag:W.T[q].info.itag,seg:z.FE,od:L,nd:z.duration},!1),c.FY(z),l=!0))}else c.FY(z),l=!0}w>=0&&(b={},W.publish("clienttemp","resetMflIndex",(b[R? "v":"a"]=w,b),!1));W=l;wKz(B.NQ,z,R,W);B.Y.Ry(z,T,R,h);if(B.policy.qr&&T){var r;(r=B.s0)!=null&&r.W.set(z.FE,T)}z.FE===B.qG.bz&&W&&y$(B.qG)&&z.startTime>y$(B.qG)&&(B.qG.WD=z.startTime+(isNaN(B.timestampOffset)?0:B.timestampOffset),B.NQ.isSeeking()&&B.NQ.T 5)return B.RK=0,B.iO.rY({initSegStuck:1,as:R.info.Wc()}),!0}else B.RK=0,B.Sk=R;B.policy.cR&&(T.abort(),(b=z.N)!=null&&(zV(b,4),b.flush()));h=Htl(B,T,W,w,h);var q;(q=z.N)==null||ccb(q,h,w);if(h!==0)return OtB(B,h,R),!0;R.info.Mr()?pLz(B.timing):$UY(B.timing);B.logger.debug(function(){return"Appended init for "+R.info.T.info.id}); mpz(B,R.info.T.jS);return T.H7()}; xpH=function(B,z,T){if(z.L_()==null){B=a7(B);if(!(z=!B||B.T!==T.info.T)){a:if(B=B.N,T=T.info.N,B.length!==T.length)T=!1;else{for(z=0;z1)return 6;b.zZ=new g.Si(function(){var l=ff(b);B.xd()||l==null||!l.isLocked?B.iO.K().L4()&&B.OE("eosl",{delayA:l==null?void 0:l.info.Wc()}):N5z(b)?(B.iO.K().L4()&&B.OE("eosl",{dunlock:l==null?void 0:l.info.Wc()}),tvK(B,b===B.audioTrack)):(B.OE("nue",{ls:l.info.Wc()}),l.info.TZ+=1,B.GZ&&B.Xp())},1E4,B); B.iO.K().L4()&&B.OE("eosl",{delayS:R.Wc()});b.zZ.start()}B.policy.FD&&(R==null?void 0:R.T)instanceof XU&&R.tY()&&B.OE("poseos",{itag:R.T.info.itag,seg:R.FE,lseg:R.T.index.CF(),es:R.T.index.Y});z.appendBuffer(T,R,h)}catch(l){if(l instanceof DOMException){if(l.code===11)return 2;if(l.code===12)return 5;if(l.code===22||l.message.indexOf("Not enough storage")===0)return z=Object.assign({name:"QuotaExceededError",buffered:YS(z.a7()).replace(/,/g,"_"),vheap:gm(B.videoTrack),aheap:gm(B.audioTrack),message:g.Yn(l.message, 3),track:B.GZ?z===B.GZ.U?"v":"a":"u"},Csz(B.policy.l5)),B.handleError("player.exception",z),1;g.kV(l)}return 4}return B.GZ.i8()?3:0}; HO=function(B,z,T){B.iO.seekTo(z,T)}; mpz=function(B,z){z&&B.iO.CK(new wm(z.key,z.type))}; LG=function(B,z){B.iO.Bt(z)}; Kf=function(B,z){if(B.cD&&!B.Oh)return 3;if(B.isSuspended)return 1;var T;if((T=B.GZ)==null?0:T.GZ&&T.GZ.streaming===!1)return 4;T=(z.T.info.audio?B.policy.eI:B.policy.lO)/(z.kd*B.policy.zc);if(B.policy.c_>0&&B.GZ&&XB(B.GZ)&&(z=z.T.info.video?B.GZ.U:B.GZ.T)&&!z.H7()){z=z.a7();var R=lr(z,B.getCurrentTime());R>=0&&(z=B.getCurrentTime()-z.start(R),T+=Math.max(0,Math.min(z-B.policy.c_,B.policy.M6)))}B.policy.WD>0&&(T=Math.min(T,B.policy.WD));return T}; eJK=function(B,z){return(Kf(B,z)+B.policy.cP)*z.kd}; Xx5=function(B){B.sE&&!B.isSuspended&&Aq(B.schedule)&&(jYz(B,B.sE),B.sE="")}; jYz=function(B,z){MP(z,"cms",function(T){B.policy.U&&B.OE("pathprobe",T)},function(T){B.iO.handleError(T)})}; Ztb=function(B,z){if(B.GZ&&B.GZ.W&&!B.GZ.i8()&&(z.b2=pG(B.videoTrack),z.U=pG(B.audioTrack),B.policy.U)){var T=gm(B.videoTrack),R=gm(B.audioTrack),h=YS(B.GZ.U.a7(),"_",5),W=YS(B.GZ.T.a7(),"_",5);Object.assign(z.T,{lvq:T,laq:R,lvb:h,lab:W})}z.bandwidthEstimate=Qh(B.J);var b;(b=B.audioTrack.N)==null||b.flush();var l;(l=B.videoTrack.N)==null||l.flush();B.logger.debug(function(){return Q_(z.T)})}; enK=function(B,z){B.TZ=z;B.Y&&(B.Y.Y=z);B.TZ.xH(B.videoTrack.T.info.Of());B.V.U=B.TZ;B.policy.Y&&(B.U.J=B.TZ)}; B4l=function(B,z){if(B.GZ&&B.GZ.U){if(B.policy.lX){var T=qfB(B.audioTrack);if(T&&T.lf()){var R=B.iO;if(R.Jm&&(R.Jm.T=T,T=R.K4(R.Jm.videoId),T.qoe)){T=T.qoe;R=R.Jm;var h=g.sr(T.provider);sYl(T,h,R)}}}B.policy.zD&&(T=qfB(B.videoTrack))&&T.Mr()&&(R=B.iO,R.E5&&(R.E5.T=T,T=R.K4(R.E5.videoId),T.qoe&&EhY(T.qoe,R.E5)));z-=isNaN(B.timestampOffset)?0:B.timestampOffset;B.getCurrentTime()!==z&&B.resume();B.NQ.isSeeking()&&B.GZ&&!B.GZ.i8()&&(R=B.getCurrentTime()<=z&&z=0&&W1?l.Y[0]=z&&ruB(B,R.startTime,!1)}); return T&&T.startTimeB.getCurrentTime())return T.start/1E3;return Infinity}; S2P=function(B){if(B.iO.getVideoData().isLivePlayback)return!1;var z=B.iO.Wu();if(!z)return!1;z=z.getDuration();if(B.GZ&&B.GZ.T&&B.GZ.U){var T=B.getCurrentTime(),R=B.GZ.T.a7();B=B.GZ.U.a7();R=R?qM(R,T):T;T=B?qM(B,T):T;T=Math.min(R,T);z=isNaN(T)?!1:T>=z-.01}else z=!1;return z}; OtB=function(B,z,T){B.policy.rq&&RY(B.iO.getVideoData())?(B.iO.j4()||frz(B,"sepInit",z,T.info),Wl5(B.iO,"sie")):frz(B,"sepInit",z,T.info)}; QnK=function(B){return B.iO.eP()0){var h=R.T.shift();YLz(R,h.info)}R.T.length>0&&(h=R.T[0].time-(0,g.f)(),R.U.start(Math.max(0,h)))}},0); g.m(this,this.U);z.subscribe("widevine_set_need_key_info",this.V,this)}; YLz=function(B,z){a:{var T=z.cryptoPeriodIndex;if(isNaN(T)&&B.Y.size>0)T=!0;else{for(var R=g.d(B.Y.values()),h=R.next();!h.done;h=R.next())if(h.value.cryptoPeriodIndex===T){T=!0;break a}T=!1}}B.publish("log_qoe",{wvagt:"reqnews",canskip:T});T||B.publish("rotated_need_key_info_ready",z)}; lgP=function(){var B={};var z=B.url;var T=B.interval;B=B.retries;this.url=z;this.interval=T;this.retries=B}; wwB=function(B,z){this.statusCode=B;this.message=z;this.U=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; qLH=function(B,z,T){T=T===void 0?"":T;g.K.call(this);this.message=B;this.requestNumber=z;this.KQ=T;this.onError=this.onSuccess=null;this.T=new g.mr(5E3,2E4,.2)}; iBB=function(B,z,T){B.onSuccess=z;B.onError=T}; r7K=function(B,z,T,R){var h={timeout:3E4,onSuccess:function(W){if(!B.xd()){O4("drm_net_r",void 0,B.KQ);var b=W.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(W.license)try{l=lT(W.license)}catch(F){g.kV(F)}if(b!==0||l){l=new wwB(b,l);b!==0&&W.reason&&(l.errorMessage=W.reason);if(W.authorizedFormats){b={};for(var w=[],q={},c=g.d(W.authorizedFormats),L=c.next();!L.done;L=c.next())if(L=L.value,L.trackType&&L.keyId){var C=CLB[L.trackType];if(C){C==="HD"&&W.isHd720&&(C="HD720");L.isHdr&&(C+="HDR");b[C]|| (w.push(C),b[C]=!0);var r=null;try{r=lT(L.keyId)}catch(F){g.kV(F)}r&&(q[g.bT(r,4)]=C)}}l.U=w;l.T=q}W.nextFairplayKeyId&&(l.nextFairplayKeyId=W.nextFairplayKeyId);W.sabrLicenseConstraint&&(l.sabrLicenseConstraint=lT(W.sabrLicenseConstraint));W=l}else W=null;if(W)B.onSuccess(W,B.requestNumber);else B.onError(B,"drm.net","t.p;p.i")}}, onError:function(W){if(!B.xd())if(W&&W.error)W=W.error,B.onError(B,"drm.net.badstatus","t.r;p.i;c."+W.code+";s."+W.status,W.code);else B.onError(B,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){B.onError(B,"drm.net","rt.req."+B.requestNumber)}}; R&&(h.kP="Bearer "+R);g.TW(T,"player/get_drm_license",z,h)}; o9z=function(B,z,T,R){g.Cl.call(this);this.videoData=B;this.dF=z;this.J=T;this.sessionId=R;this.V={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.TZ=this.UE=!1;this.Y=null;this.WD=[];this.W=[];this.R$=[];this.L=!1;this.T={};this.status="";this.X=NaN;this.U=B.V;this.cryptoPeriodIndex=T.cryptoPeriodIndex;B={};Object.assign(B,this.dF.T);B.cpn=this.videoData.clientPlaybackNonce;this.videoData.RK&&(B.vvt=this.videoData.RK,this.videoData.mdxEnvironment&&(B.mdx_environment=this.videoData.mdxEnvironment)); this.dF.WD&&(B.authuser=this.dF.WD);this.dF.pageId&&(B.pageid=this.dF.pageId);isNaN(this.cryptoPeriodIndex)||(B.cpi=this.cryptoPeriodIndex.toString());var h=(h=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Va()))?h[1]:"";h==="ATV"&&(B.cdt=h);this.V=B;this.V.session_id=R;this.N=!0;this.U.flavor==="widevine"&&(this.V.hdr="1");this.U.flavor==="playready"&&(z=Number(zk(z.experiments,"playready_first_play_expiration")),!isNaN(z)&&z>=0&&(this.V.mfpe=""+z),this.N=!1);z="";g.tc(this.U)?NE(this.U)?(R=T.U)&&(z="https://www.youtube.com/api/drm/fps?ek="+ USK(R)):(z=T.initData.subarray(4),z=new Uint16Array(z.buffer,z.byteOffset,z.byteLength/2),z=String.fromCharCode.apply(null,z).replace("skd://","https://")):z=this.U.U;this.baseUrl=z;this.fairplayKeyId=$A(this.baseUrl,"ek")||"";if(z=$A(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(z);this.WD=T.Of?[g.bT(T.initData,4)]:T.Y;T7(this,{sessioninit:T.cryptoPeriodIndex});this.status="in"}; dYY=function(B,z){T7(B,{createkeysession:1});B.status="gr";O4("drm_gk_s",void 0,B.videoData.N);B.url=F_l(B);try{B.Y=z.createSession(B.J,function(T){T7(B,{m:T})})}catch(T){z="t.g"; T instanceof DOMException&&(z+=";c."+T.code);B.publish("licenseerror","drm.unavailable",1,z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}B.Y&&(IyH(B.Y,function(T,R){GVB(B,T,R)},function(T,R,h){if(!B.xd()){R=void 0; var W=1;g.tc(B.U)&&g.vo(B.dF)&&B.dF.D("html5_enable_safari_fairplay")&&h===1212433232&&(R="ERROR_HDCP",W=B.dF.D("html5_safari_fairplay_ignore_hdcp")?0:W);B.error("drm.keyerror",W,T,R)}},function(){B.xd()||(T7(B,{onkyadd:1}),B.TZ||(B.publish("sessionready"),B.TZ=!0))},function(T){B.SM(T)}),g.m(B,B.Y))}; F_l=function(B){var z=B.baseUrl;CUr(z)||B.error("drm.net",2,"t.x");if(!$A(z,"fexp")){var T=["23898307","23914062","23916106","23883098"].filter(function(h){return B.dF.experiments.experiments[h]}); T.length>0&&(B.V.fexp=T.join())}T=g.d(Object.keys(B.V));for(var R=T.next();!R.done;R=T.next())R=R.value,z=Xtl(z,R,B.V[R]);return z}; GVB=function(B,z,T){if(!B.xd())if(z){T7(B,{onkmtyp:T});B.status="km";switch(T){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":A7d(B,z);return;default:B.publish("ctmp","message_type",{t:T,l:z.byteLength})}B.UE||(O4("drm_gk_f",void 0,B.videoData.N),B.UE=!0,B.publish("newsession",B));if(Hz(B.U)&&(z=ayb(z),!z))return;z=new qLH(z,++B.requestNumber,B.videoData.N);iBB(z,function(R){UYK(B,R)},function(R,h,W){if(!B.xd()){var b=0; R.T.U>=3&&(b=1,h="drm.net.retryexhausted");T7(B,{onlcsrqerr:h,info:W});B.error(h,b,W);B.shouldRetry(gt(b),R)&&M5B(B,R)}}); g.m(B,z);V5K(B,z)}else B.error("drm.unavailable",1,"km.empty")}; A7d=function(B,z){T7(B,{sdpvrq:1});B.X=Date.now();if(B.U.flavor!=="widevine")B.error("drm.provision",1,"e.flavor;f."+B.U.flavor+";l."+z.byteLength);else{var T={cpn:B.videoData.clientPlaybackNonce};Object.assign(T,B.dF.T);T=g.Qn("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",T);z={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, z)}),responseType:"arraybuffer"};g.$v(T,z,3,500).then(g8(function(R){R=R.xhr;if(!B.xd()){R=new Uint8Array(R.response);var h=String.fromCharCode.apply(null,R);try{var W=JSON.parse(h)}catch(b){}W&&W.signedResponse?(B.publish("ctmp","drminfo",{provisioning:1}),W=(Date.now()-B.X)/1E3,B.X=NaN,B.publish("ctmp","provs",{et:W.toFixed(3)}),B.Y&&B.Y.update(R)):(W=W&&W.error&&W.error.message,R="e.parse",W&&(R+=";m."+W),B.error("drm.provision",1,R))}}),g8(function(R){B.xd()||B.error("drm.provision",1,"e."+R.errorCode+ ";c."+(R.xhr&&R.xhr.status))}))}}; Rg=function(B){var z;if(z=B.N&&B.Y!=null)B=B.Y,z=!(!B.T||!B.T.keyStatuses);return z}; V5K=function(B,z){B.status="km";O4("drm_net_s",void 0,B.videoData.N);var T=new g.zW(B.dF.v7),R={context:g.cg(T.config_||g.iz())};R.drmSystem=Q7r[B.U.flavor];R.videoId=B.videoData.videoId;R.cpn=B.videoData.clientPlaybackNonce;R.sessionId=B.sessionId;R.licenseRequest=g.bT(z.message);R.drmParams=B.videoData.drmParams;isNaN(B.cryptoPeriodIndex)||(R.isKeyRotated=!0,R.cryptoPeriodIndex=B.cryptoPeriodIndex);var h,W,b=!!((h=B.videoData.U)==null?0:(W=h.video)==null?0:W.isHdr());R.drmVideoFeature=b?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(R.context&&R.context.client){if(h=B.dF.T)R.context.client.deviceMake=h.cbrand,R.context.client.deviceModel=h.cmodel,R.context.client.browserName=h.cbr,R.context.client.browserVersion=h.cbrver,R.context.client.osName=h.cos,R.context.client.osVersion=h.cosver;R.context.user=R.context.user||{};R.context.request=R.context.request||{};B.videoData.RK&&(R.context.user.credentialTransferTokens=[{token:B.videoData.RK,scope:"VIDEO"}]);R.context.request.mdxEnvironment=B.videoData.mdxEnvironment|| R.context.request.mdxEnvironment;B.videoData.LF&&(R.context.user.kidsParent={oauthToken:B.videoData.LF});g.tc(B.U)&&(R.fairplayKeyId=g.bT(MzK(B.fairplayKeyId)));g.RQ(B.dF,g.Kt(B.videoData)).then(function(l){r7K(z,R,T,l);B.status="rs"})}else B.error("drm.net",2,"t.r;ic.0")}; UYK=function(B,z){if(!B.xd())if(T7(B,{onlcsrsp:1}),B.status="rr",z.statusCode!==0)B.error("drm.auth",1,"t.f;c."+z.statusCode,z.errorMessage||void 0);else{O4("drm_kr_s",void 0,B.videoData.N);if(z.heartbeatParams&&z.heartbeatParams.url&&B.videoData.D("outertube_streaming_data_always_use_staging_license_service")){var T=B.U.U.match(/(.*)youtube.com/g);T&&(z.heartbeatParams.url=T[0]+z.heartbeatParams.url)}z.heartbeatParams&&B.publish("newlicense",z.heartbeatParams);z.U&&(B.W=z.U,B.videoData.DT||B.publish("newlicense", new lgP),B.videoData.DT=!0,B.L=Sa(B.W,function(R){return R.includes("HDR")})); z.T&&(B.dF.D("html5_enable_vp9_fairplay")&&NE(B.U)?(T=g.bT(MzK(B.fairplayKeyId),4),B.T[T]={type:z.T[T],status:"unknown"}):B.T=fs(z.T,function(R){return{type:R,status:"unknown"}})); O6(B.U)&&(z.message=mcX(g.bT(z.message)));B.Y&&(T7(B,{updtks:1}),B.status="ku",B.Y.update(z.message).then(function(){O4("drm_kr_f",void 0,B.videoData.N);Rg(B)||(T7(B,{ksApiUnsup:1}),B.publish("keystatuseschange",B))},function(R){R="msuf.req."+B.requestNumber+";msg."+g.Yn(R.message,3); B.error("drm.keyerror",1,R)})); g.tc(B.U)&&B.publish("fairplay_next_need_key_info",B.baseUrl,z.nextFairplayKeyId);B.dF.D("html5_enable_vp9_fairplay")&&NE(B.U)&&B.publish("qualitychange",y7K(B.W));z.sabrLicenseConstraint&&B.publish("sabrlicenseconstraint",z.sabrLicenseConstraint)}}; M5B=function(B,z){var T=z.T.getValue();T=new g.Si(function(){V5K(B,z)},T); g.m(B,T);T.start();g.n8(z.T);T7(B,{rtyrq:1})}; g9K=function(B,z){for(var T=[],R=g.d(Object.keys(B.T)),h=R.next();!h.done;h=R.next())h=h.value,T.push(h+"_"+B.T[h].type+"_"+B.T[h].status);return T.join(z)}; J7B=function(B){var z={};z[B.status]=Rg(B)?g9K(B,"."):B.W.join(".");return z}; pXX=function(B){switch(B.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; he=function(B,z){for(var T in B.T)if(B.T[T].status==="usable"&&B.T[T].type===z)return!0;return!1}; $Yz=function(B,z){for(var T in B.T)if(B.T[T].type===z)return B.T[T].status}; T7=function(B,z){var T=T===void 0?!1:T;Q_(z);(T||B.dF.L4())&&B.publish("ctmp","drmlog",z)}; PLX=function(B){var z=B[0];B[0]=B[3];B[3]=z;z=B[1];B[1]=B[2];B[2]=z;z=B[4];B[4]=B[5];B[5]=z;z=B[6];B[6]=B[7];B[7]=z}; y7K=function(B){return g.F5(B,"UHD2")||g.F5(B,"UHD2HDR")?"highres":g.F5(B,"UHD1")||g.F5(B,"UHD1HDR")?"hd2160":g.F5(B,"HD")||g.F5(B,"HDHDR")?"hd1080":g.F5(B,"HD720")||g.F5(B,"HD720HDR")?"hd720":"large"}; ayb=function(B){for(var z="",T=0;T'.charCodeAt(R);B=B.Y.createSession("video/mp4",z,T);return new Ws(null,null,null,null,B)}; u2b=function(B,z){var T=B.X[z.sessionId];!T&&B.W&&(T=B.W,B.W=null,T.sessionId=z.sessionId,B.X[z.sessionId]=T);return T}; K_r=function(B,z){var T=B.subarray(4);T=new Uint16Array(T.buffer,T.byteOffset,T.byteLength/2);T=String.fromCharCode.apply(null,T).match(/ek=([0-9a-f]+)/)[1];for(var R="",h=0;h19.2999?(B=T.eR,T=T.Cl,T>=B&&(T=B* .75),z=(B-T)*.5,T=new Bs(z,B,B-z-T,this)):T=null;break a;case "widevine":T=new z7(z,this,B);break a;default:T=null}if(this.V=T)g.m(this,this.V),this.V.subscribe("rotated_need_key_info_ready",this.ou,this),this.V.subscribe("log_qoe",this.Ve,this);XO(this.dF.experiments);this.Ve({cks:this.T.getInfo()})}; fyl=function(B){var z=kVK(B.W);z?z.then(g8(function(){Nm5(B)}),g8(function(T){if(!B.xd()){g.kV(T); var R="t.a";T instanceof DOMException&&(R+=";n."+T.name+";m."+T.message);B.publish("licenseerror","drm.unavailable",1,R,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(B.Ve({mdkrdy:1}),B.N=!0); B.TZ&&(z=kVK(B.TZ))}; j7z=function(B,z,T){B.cD=!0;T=new wm(z,T);B.dF.D("html5_eme_loader_sync")&&(B.X.get(z)||B.X.set(z,T));t5B(B,T)}; t5B=function(B,z){if(!B.xd()){B.Ve({onInitData:1});if(B.dF.D("html5_eme_loader_sync")&&B.videoData.Y&&B.videoData.Y.T){var T=B.L.get(z.initData);z=B.X.get(z.initData);if(!T||!z)return;z=T;T=z.initData;B.X.remove(T);B.L.remove(T)}B.Ve({initd:z.initData.length,ct:z.contentType});if(B.T.flavor==="widevine")if(B.XE&&!B.videoData.isLivePlayback)lv(B);else{if(!(B.dF.D("vp9_drm_live")&&B.videoData.isLivePlayback&&z.Of)){B.XE=!0;T=z.cryptoPeriodIndex;var R=z.T;a6H(z);z.Of||(R&&z.T!==R?B.publish("ctmp","cpsmm", {emsg:R,pssh:z.T}):T&&z.cryptoPeriodIndex!==T&&B.publish("ctmp","cpimm",{emsg:T,pssh:z.cryptoPeriodIndex}));B.publish("widevine_set_need_key_info",z)}}else B.ou(z)}}; Nm5=function(B){if(!B.xd())if(B.dF.D("html5_drm_set_server_cert")||NE(B.T)){var z=B.W.setServerCertificate();z?z.then(g8(function(T){B.dF.L4()&&B.publish("ctmp","ssc",{success:T})}),g8(function(T){B.publish("ctmp","ssce",{n:T.name, m:T.message})})).then(g8(function(){XXK(B)})):XXK(B)}else XXK(B)}; XXK=function(B){B.xd()||(B.N=!0,B.Ve({onmdkrdy:1}),lv(B))}; ZGb=function(B){return B.T.flavor==="widevine"&&B.videoData.D("html5_drm_cpi_license_key")}; lv=function(B){if(B.cD&&B.N&&!B.RK){for(;B.Y.length;){var z=B.Y[0],T=ZGb(B)?UEH(z):g.bT(z.initData);if(NE(B.T)&&!z.U)B.Y.shift();else{if(B.U.get(T))if(B.T.flavor!=="fairplay"||NE(B.T)){B.Y.shift();continue}else B.U.delete(T);a6H(z);break}}B.Y.length&&B.createSession(B.Y[0])}}; epb=function(B){var z;if(z=g.jH()){var T;z=!((T=B.W.U)==null||!T.getMetrics)}z&&(z=B.W.getMetrics())&&(z=g.pv(z),B.publish("ctmp","drm",{metrics:z}))}; s7X=function(){var B=KSz();return!(!B||B==="visible")}; S1Y=function(B){var z=E9P();z&&document.addEventListener(z,B,!1)}; Buz=function(B){var z=E9P();z&&document.removeEventListener(z,B,!1)}; E9P=function(){if(document.visibilityState)var B="visibilitychange";else{if(!document[o6+"VisibilityState"])return"";B=o6+"visibilitychange"}return B}; zOH=function(B){g.K.call(this);var z=this;this.iO=B;this.Iw=0;this.X=this.U=this.V=!1;this.W=0;this.bO=this.iO.K();this.videoData=this.iO.getVideoData();this.Y=g.rk(this.bO.experiments,"html5_delayed_retry_count");this.T=new g.Si(function(){z.iO.wD()},g.rk(this.bO.experiments,"html5_delayed_retry_delay_ms")); g.m(this,this.T)}; bpY=function(B,z,T){var R=B.videoData.U,h=B.videoData.W;RY(B.iO.getVideoData())&&B.bO.D("html5_gapless_fallback_on_qoe_restart")&&Wl5(B.iO,"pe");if((z==="progressive.net.retryexhausted"||z==="fmt.unplayable"||z==="fmt.decode")&&!B.iO.CY.V&&R&&R.itag==="22")return B.iO.CY.V=!0,B.h0("qoe.restart",{reason:"fmt.unplayable.22"}),B.iO.B_(),!0;var W=!1;if(B.videoData.isExternallyHostedPodcast){if(W=B.videoData.eLE)T.mimeType=W.type,B.OE("3pp",{url:W.url});T.ns="3pp";B.iO.jD(z,1,"VIDEO_UNAVAILABLE",Q_((new y_(z, T,1)).details));return!0}var b=B.Iw+3E4<(0,g.f)()||B.T.isActive();if(B.bO.D("html5_empty_src")&&B.videoData.isAd()&&z==="fmt.unplayable"&&/Empty src/.test(""+T.msg))return T.origin="emptysrc",B.h0("auth",T),!0;b||Tuz(B.iO.Jf())||(T.nonfg="paused",b=!0,B.iO.pauseVideo());(z==="fmt.decode"||z==="fmt.unplayable")&&(h==null?0:eR(h)||sz(h))&&(sDK(B.bO.V,h.Ai),T.acfallexp=h.Ai,W=b=!0);!b&&B.Y>0&&(B.T.start(),b=!0,T.delayed="1",--B.Y);h=B.iO.loader;!b&&((R==null?0:Za(R))||(R==null?0:ti(R)))&&(sDK(B.bO.V, R.Ai),W=b=!0,T.cfallexp=R.Ai);if(!b)return ROz(B,T);b=!1;B.V?B.Iw=(0,g.f)():b=B.V=!0;var l=B.videoData;if(l.sE){l=l.sE.FU();var w=Date.now()/1E3+1800;l=l6048E5&&qrH(B,"signature");return!1}; qrH=function(B,z){try{z={detail:"pr."+z},g.jj(B.bO)&&B.bO.D("html5_reload_by_kabuki_app")?B.iO.jD("qoe.restart",1,void 0,Q_(z),"7"):(B.h0("qoe.restart",z),window.location.reload())}catch(T){}}; cJb=function(B,z){var T=B.bO.V;T.L=!1;T.U=!0;B.h0("qoe.restart",{e:z===void 0?"fmt.noneavailable":z,detail:"hdr"});B.iO.wD(!0)}; LoB=function(B,z,T,R,h,W){this.videoData=B;this.T=z;this.reason=T;this.U=R;this.token=h;this.videoId=W}; w9=function(B,z,T){this.dF=B;this.k7=z;this.iO=T;this.J=this.X=this.T=this.W=this.L=this.U=0;this.V=!1;this.N=g.rk(this.dF.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Y=new Map}; rJP=function(B,z,T){!B.dF.D("html5_tv_ignore_capable_constraint")&&g.JS(B.dF)&&(T=T.compose(C6l(B,z)));return T}; our=function(B){if(B.iO.Jf().isInline())return O2;var z;B.D("html5_exponential_memory_for_sticky")?z=an(B.dF.Ip,"sticky-lifetime")<.5?"auto":ia[fX()]:z=ia[fX()];return g.la("auto",z,!1,"s")}; I3X=function(B,z){var T,R=Fod(B,(T=z.T)==null?void 0:T.videoInfos);T=B.iO.getPlaybackRate();return T>1&&R?(B=jDr(B.dF.V,z.T.videoInfos,T),new Yg(0,B,!0,"o")):new Yg(0,0,!1,"o")}; Fod=function(B,z){return z&&g.JS(B.dF)?z.some(function(T){return T.video.fps>32}):!1}; GgY=function(B,z){if(B.D("html5_disable_ustreamer_constraint_for_sabr")&&bs(z.videoData))return O2;var T=B.iO.iC();B.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&T&&T.lR>0&&q$(z.videoData.YX)&&(B=T.lR,z.videoData.YX=new Yg(0,B,!1,"u"));return z.videoData.YX}; C6l=function(B,z){if(g.JS(B.dF)&&M$(B.dF.V,VP.HEIGHT))var T=z.T.videoInfos[0].video.qualityOrdinal;else{var R=B.ke(!!z.T.T);hu(z.videoData)||Hx(z.videoData);z=z.T.videoInfos;if(z.length){var h=g.rk(B.dF.experiments,"html5_override_oversend_fraction")||.85,W=z[0].video;W.projectionType!=="MESH"&&W.projectionType!=="EQUIRECTANGULAR"&&W.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||pY||(h=.45);B=g.rk(B.dF.experiments,"html5_viewport_undersend_maximum");for(W=0;W0&&(T=Math.min(T,R));if(R=g.rk(B.dF.experiments,"html5_max_vertical_resolution")){B=4320;for(h=0;hR&&(B=Math.min(B,W.video.qualityOrdinal));if(B<4320){for(h=R=0;h32){h=!0;break a}}h=!1}h&&(T=Math.min(T,R));(R=g.rk(B.dF.experiments,"html5_live_quality_cap"))&&z.videoData.isLivePlayback&&(T=Math.min(T,R));T=AJK(B,z,T);B=g.rk(B.dF.experiments,"html5_byterate_soft_cap");return new Yg(0,T===4320?0:T,!1,"d",B)}; Umd=function(B){var z,T,R,h;return g.D(function(W){switch(W.U){case 1:return B.T.T&&typeof((z=navigator.mediaCapabilities)==null?void 0:z.decodingInfo)==="function"?g.P(W,Promise.resolve(),2):W.return(Promise.resolve());case 2:T=g.d(B.T.videoInfos),R=T.next();case 3:if(R.done){W.jI(0);break}h=R.value;return g.P(W,JCK(h),4);case 4:R=T.next(),W.jI(3)}})}; VXr=function(B,z){if(!z.videoData.U||B.D("html5_disable_performance_downgrade"))return!1;Date.now()-B.L>6E4&&(B.U=0);B.U++;B.L=Date.now();if(B.U!==4)return!1;MXB(B,z.videoData.U);return!0}; yJB=function(B,z,T,R){if(!z||!T||!z.videoData.U)return!1;var h=g.rk(B.dF.experiments,"html5_df_downgrade_thresh"),W=B.D("html5_log_media_perf_info");if(!((0,g.f)()-B.W<5E3?0:W||h>0))return!1;var b=((0,g.f)()-B.W)/1E3;B.W=(0,g.f)();T=T.getVideoPlaybackQuality();if(!T)return!1;var l=T.droppedVideoFrames-B.X,w=T.totalVideoFrames-B.J;B.X=T.droppedVideoFrames;B.J=T.totalVideoFrames;var q=T.displayCompositedVideoFrames===0?0:T.displayCompositedVideoFrames||-1;W&&B.dF.L4()&&B.iO.OE("ddf",{dr:T.droppedVideoFrames, de:T.totalVideoFrames,comp:q});if(R)return B.T=0,!1;if((w-l)/b>B.N||!h||g.JS(B.dF))return!1;B.T=(w>60?l/w:0)>h?B.T+1:0;if(B.T!==3)return!1;MXB(B,z.videoData.U);B.iO.OE("dfd",Object.assign({dr:T.droppedVideoFrames,de:T.totalVideoFrames},Q2K()));return!0}; MXB=function(B,z){var T=z.Ai,R=z.video.fps,h=z.video.qualityOrdinal-1,W=B.Y;z=""+T+(R>49?"p60":R>32?"p48":"");T=kf(T,R,W);h>0&&(T=Math.min(T,h));if(!qN.has(z)&&tT().includes(z)){var b=T;T=Nh();+T[z]>0&&(b=Math.min(+T[z],b));T[z]!==b&&(T[z]=b,g.D_("yt-player-performance-cap",T,2592E3))}else if(qN.has(z)||W==null){a:{b=b===void 0?!0:b;R=tT().slice();if(b){if(R.includes(z))break a;R.push(z)}else{if(!R.includes(z))break a;R.splice(R.indexOf(z),1)}g.D_("yt-player-performance-cap-active-set",R,2592E3)}D6.set(z, T)}else qN.add(z),W==null||W.set(z,T);B.iO.CU()}; guz=function(B,z){if(!z.T.T)return B.V?new Yg(0,360,!1,"b"):O2;for(var T=!1,R=!1,h=g.d(z.T.videoInfos),W=h.next();!W.done;W=h.next())Za(W.value)?T=!0:R=!0;T=T&&R;R=0;h=g.rk(B.dF.experiments,"html5_performance_cap_floor");h=B.dF.U?240:h;z=g.d(z.T.videoInfos);for(W=z.next();!W.done;W=z.next()){var b=W.value;if(!T||!Za(b))if(W=kf(b.Ai,b.video.fps,B.Y),b=b.video.qualityOrdinal,Math.max(W,h)>=b){R=b;break}}return new Yg(0,R,!1,"b")}; JJz=function(B,z){var T=B.iO.Jf();return T.isInline()&&!z.pC?new Yg(0,480,!1,"v"):bs(z)?O2:T.isBackground()&&JW()/1E3>60&&!g.JS(B.dF)?new Yg(0,360,!1,"v"):O2}; pJP=function(B,z,T){if(B.dF.experiments.Cf("html5_disable_client_autonav_cap_for_onesie")&&z.fetchType==="onesie"||g.JS(B.dF)&&(fX(-1)>=1080||z.osid))return O2;var R=g.rk(B.dF.experiments,"html5_autonav_quality_cap"),h=g.rk(B.dF.experiments,"html5_autonav_cap_idle_secs");return R&&z.isAutonav&&JW()/1E3>h?(T&&(R=AJK(B,T,R)),new Yg(0,R,!1,"e")):O2}; AJK=function(B,z,T){if(B.D("html5_optimality_defaults_chooses_next_higher")&&T)for(B=z.T.videoInfos,z=1;z=0||(B.provider.iO.getVisibilityState()===3?B.V=!0:(B.T=g.sr(B.provider),B.delay.start()))}; xmr=function(B){if(!(B.U<0)){var z=g.sr(B.provider),T=z-B.W;B.W=z;B.playerState.state===8?B.playTimeSecs+=T:B.playerState.isBuffering()&&!g.X(B.playerState,16)&&(B.rebufferTimeSecs+=T)}}; vuY=function(B){var z;switch((z=B.dF.playerCanaryStage)==null?void 0:z.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Dmz=function(B){return window.PressureObserver&&new window.PressureObserver(B)}; kgP=function(B){B=B===void 0?Dmz:B;g.K.call(this);var z=this;try{this.Y=B(function(R){z.U=R.at(-1)}); var T;this.W=(T=this.Y)==null?void 0:T.observe("cpu",{sampleInterval:2E3}).catch(function(R){R instanceof DOMException&&(z.T=R)})}catch(R){R instanceof DOMException&&(this.T=R)}}; Kol=function(B){var z={},T=window.h5vcc;z.hwConcurrency=navigator.hardwareConcurrency;B.T&&(z.cpe=B.T.message);B.U&&(z.cpt=B.U.time,z.cps=B.U.state);if(T==null?0:T.cVal)z.cb2s=T.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),z.cb5s=T.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),z.cb30s=T.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return z}; mml=function(B){var z;g.D(function(T){switch(T.U){case 1:return g.AK(T,2),g.P(T,B.W,4);case 4:g.yz(T,3);break;case 2:g.JK(T);case 3:(z=B.Y)==null||z.disconnect(),g.dX(T)}})}; uuP=function(B,z){z?nuz.test(B):(B=g.bA(B),Object.keys(B).includes("cpn"))}; f3H=function(B,z,T,R,h,W,b){var l={format:"RAW"},w={};if(wJ(B)&&qR()){if(b){var q;((q=HpK.uaChPolyfill)==null?void 0:q.state.type)!==2?b=null:(b=HpK.uaChPolyfill.state.data.values,b={"Synth-Sec-CH-UA-Arch":b.architecture,"Synth-Sec-CH-UA-Model":b.model,"Synth-Sec-CH-UA-Platform":b.platform,"Synth-Sec-CH-UA-Platform-Version":b.platformVersion,"Synth-Sec-CH-UA-Full-Version":b.uaFullVersion});w=Object.assign(w,b);l.withCredentials=!0}(b=g.ek("EOM_VISITOR_DATA"))?w["X-Goog-EOM-Visitor-Id"]=b:R?w["X-Goog-Visitor-Id"]= R:g.ek("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=g.ek("VISITOR_DATA"));T&&(w["X-Goog-PageId"]=T);(R=z.WD)&&!ej(z)&&(w["X-Goog-AuthUser"]=R);h&&(w.Authorization="Bearer "+h);z.D("enable_datasync_id_header_in_web_vss_pings")&&z.TG&&z.datasyncId&&(w["X-YouTube-DataSync-Id"]=z.datasyncId);b||w["X-Goog-Visitor-Id"]||h||T||R?l.withCredentials=!0:z.D("html5_send_cpn_with_options")&&nuz.test(B)&&(l.withCredentials=!0)}Object.keys(w).length>0&&(l.headers=w);W&&(l.onFinish=W);return Object.keys(l).length>1? l:null}; OpB=function(B,z,T,R,h,W,b,l){qR()&&T.token&&(B=Yv(B,{ctt:T.token,cttype:T.kH,mdx_environment:T.mdxEnvironment}));R.D("net_pings_low_priority")&&(z||(z={}),z.priority="low");W||l&&R.D("nwl_skip_retry")?(z==null?z={}:uuP(B,R.D("html5_assert_cpn_with_regex")),b?S4().sendAndWrite(B,z):S4().sendThenWrite(B,z,l)):z?(uuP(B,R.D("html5_assert_cpn_with_regex")),YwB(B,z)):g.Hg(B,h)}; Nuz=function(B){for(var z=[],T=0;T0&&T>0&&!B.U&&B.Y<1E7)try{B.W=B.V({sampleInterval:z,maxBufferSize:T});var R;(R=B.W)==null||R.addEventListener("samplebufferfull",function(){return g.D(function(h){if(h.U==1)return g.P(h,B.stop(),2);XJK(B);g.dX(h)})})}catch(h){B.U=j2b(h.message)}}; LR=function(B,z){var T,R;return!!((T=window.h5vcc)==null?0:(R=T.settings)==null?0:R.set(B,z))}; eOX=function(){var B,z,T,R=(B=window.h5vcc)==null?void 0:(z=B.settings)==null?void 0:(T=z.getPersistentSettingAsString)==null?void 0:T.call(z,"cpu_usage_tracker_intervals");if(R!=null){var h;B=(h=JSON.parse(R))!=null?h:[];h=B.filter(function(q){return q.type==="total"}).map(function(q){return q.seconds}); z=g.d(Zp5);for(T=z.next();!T.done;T=z.next())T=T.value,h.indexOf(T)===-1&&B.push({type:"total",seconds:T});var W,b;(W=window.h5vcc)==null||(b=W.settings)==null||b.set("cpu_usage_tracker_intervals_enabled",1);var l,w;(l=window.h5vcc)==null||(w=l.settings)==null||w.set("cpu_usage_tracker_intervals",JSON.stringify(B))}}; s2H=function(){var B=window.H5vccPlatformService,z="";if(B&&B.has("dev.cobalt.coat.clientloginfo")&&(B=B.open("dev.cobalt.coat.clientloginfo",function(){}))){var T=B.send(new ArrayBuffer(0)); T&&(z=String.fromCharCode.apply(String,g.Q(new Uint8Array(T))));B.close()}return z}; g.og=function(B){g.K.call(this);var z=this;this.provider=B;this.logger=new g.RH("qoe");this.T=new Map;this.sequenceNumber=1;this.WD=NaN;this.mu="N";this.J=this.lN=this.Dv=this.UE=this.U=0;this.JZ=this.lO=this.X=this.IK="";this.C4=this.cD=NaN;this.s0=0;this.LF=-1;this.II=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.U0=this.isEmbargoed=this.XE=this.isOffline=this.isBuffering=!1;this.pF=[];this.N=null;this.aK=this.W=this.EE=this.L=!1;this.Y=-1;this.sE=!1;this.t0=new g.Si(this.Oc,750,this);this.dO= this.adCpn=this.TZ=this.contentCpn="";this.adFormat=void 0;this.S6=0;this.eI=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.fF=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.O0=!1;this.ra=NaN;this.zZ=0;this.Dm=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Sk=!1;this.Yi={hv:function(R){z.hv(R)}, B5J:function(){return z.V}, y_:function(){return z.contentCpn}, NVJ:function(){return z.TZ}, reportStats:function(){z.reportStats()}, CDF:function(){return z.T.get("cat")||[]}, Xn:function(R){return z.T.get(R)||[]}, KHJ:function(){return z.T}, C4E:function(){return 0}, HhE:function(){return{adCpn:z.adCpn,dO:z.dO,adFormat:z.adFormat}}}; this.RK=this.provider.dF.D("html5_qoe_relaxed_reporting");var T=g.rk(this.provider.dF.experiments,"html5_qoe_proto_mock_length");T&&!CR.length&&(CR=Nuz(T));g.m(this,this.t0);try{navigator.getBattery().then(function(R){z.N=R})}catch(R){}g.r9(this,0,"vps",["N"]); B.dF.L4()&&(this.zZ=(0,g.f)(),this.ra=g.Ic(function(){var R=(0,g.f)(),h=R-z.zZ;h>500&&z.OE("vmlock",{diff:h.toFixed()});z.zZ=R},250)); this.provider.videoData.Y2&&(this.remoteControlMode=Eu5[this.provider.videoData.Y2]||0);this.provider.videoData.E6&&(T=hgB(this.provider.videoData.E6),T==null?0:T.length)&&(this.remoteConnectedDevices=T);if(B.dF.L4()||B.D("html5_log_cpu_info"))this.MG=new kgP,g.m(this,this.MG);T=g.rk(B.dF.experiments,"html5_js_self_profiler_sample_interval_ms");B=g.rk(B.dF.experiments,"html5_js_self_profiler_max_samples");T>0&&B>0&&(this.Kf=new cs(T,B),g.m(this,this.Kf))}; FI=function(B,z,T){var R=B.T.get(z);R?R.push(T):B.T.set(z,[T])}; g.r9=function(B,z,T,R){FI(B,T,z.toFixed(3)+":"+R.join(":"))}; SrB=function(B,z){var T=B.adCpn||B.provider.videoData.clientPlaybackNonce,R=B.provider.getCurrentTime(T);g.r9(B,z,"cmt",[R.toFixed(3)]);R=B.provider.Aj(T);if(B.V&&R*1E3>B.V.M3+100&&B.V){var h=B.V;T=h.isAd;R=R*1E3-h.M3;B.Hf=z*1E3-h.N3K-R-h.rju;h=(0,g.f)()-R;z=B.Hf;R=B.provider.videoData;var W=R.isAd();if(T||W){W=(T?"ad":"video")+"_to_"+(W?"ad":"video");var b={};R.X&&(b.cttAuthInfo={token:R.X,videoId:R.videoId});b.startTime=h-z;tY(W,b);g.NK({targetVideoId:R.videoId,targetCpn:R.clientPlaybackNonce}, W);O4("pbs",h,W)}else h=B.provider.iO.Op(),h.X!==R.clientPlaybackNonce?(h.V=R.clientPlaybackNonce,h.U=z):R.mP()||g.KV(new g.Z_("CSI timing logged before gllat",{cpn:R.clientPlaybackNonce}));B.OE("gllat",{l:B.Hf.toFixed(),prev_ad:+T});delete B.V}}; Ig=function(B,z){z=z===void 0?NaN:z;z=z>=0?z:g.sr(B.provider);var T=B.provider.iO.EF(),R=T.k$-(B.cD||0);R>0&&g.r9(B,z,"bwm",[R,(T.jR-(B.C4||0)).toFixed(3)]);isNaN(B.cD)&&T.k$&&B.isOffline&&B.hv(!1);B.cD=T.k$;B.C4=T.jR;isNaN(T.bandwidthEstimate)||g.r9(B,z,"bwe",[T.bandwidthEstimate.toFixed(0)]);B.provider.dF.L4()&&Object.keys(T.T).length!==0&&B.OE("bwinfo",T.T);if(B.provider.dF.L4()||B.provider.dF.D("html5_log_meminfo"))R=Csz(B.provider.dF.D("html5_enable_chrobalt_memory_apis")),Object.values(R).some(function(W){return W!== void 0})&&B.OE("meminfo",R); if(B.provider.dF.L4()||B.provider.dF.D("html5_log_cpu_info")){var h;(R=(h=B.MG)==null?void 0:Kol(h))&&Object.values(R).some(function(W){return W!=null})&&B.OE("cpuinfo",R)}B.Kf&&B.OE("jsprof",B.Kf.flush()); B.N&&g.r9(B,z,"bat",[B.N.level,B.N.charging?"1":"0"]);h=B.provider.iO.getVisibilityState();B.LF!==h&&(g.r9(B,z,"vis",[h]),B.LF=h);SrB(B,z);(h=B9P(B.provider))&&h!==B.s0&&(g.r9(B,z,"conn",[h]),B.s0=h);z15(B,z,T)}; z15=function(B,z,T){if(!isNaN(T.b2)){var R=T.b2;T.U96E3&&(new g.Si(B.reportStats,0,B)).start()}}; h1d=function(B){B.provider.videoData.BV&&G7(B,"prefetch");B.provider.videoData.Sk&&B.OE("reload",{r:B.provider.videoData.reloadReason,ct:B.provider.videoData.Sk});B.provider.videoData.eI&&G7(B,"monitor");B.provider.videoData.isLivePlayback&&G7(B,"live");Bo&&G7(B,"streaming");B.provider.videoData.Y2&&B.OE("ctrl",{mode:B.provider.videoData.Y2},!0);if(B.provider.videoData.E6){var z=B.provider.videoData.E6.replace(/,/g,"_");B.OE("ytp",{type:z},!0)}B.provider.videoData.Po&&(z=B.provider.videoData.Po.replace(/,/g, "."),B.OE("ytrexp",{ids:z},!0));var T=B.provider.videoData;z=B.provider.dF.D("enable_white_noise")||B.provider.dF.D("enable_webgl_noop");T=g.r5(T)||g.ye(T)||g.g5(T)||g.Ju(T);(z||T)&&(z=(0,g.d9)())&&B.T.set("gpu",[z]);Hx(B.provider.videoData)&&g.r9(B,g.sr(B.provider),"dt",["1"]);B.provider.dF.L4()&&(z=(0,g.f)()-B.provider.dF.Gj,B.OE("playerage",{secs:Math.pow(1.6,Math.round(Math.log(z/1E3)/Math.log(1.6))).toFixed()}));B.W=!0;B.WD=g.Ic(function(){B.reportStats()},1E4)}; bRH=function(B,z,T){var R=g.sr(B.provider);WOY(B,R,z,0,T);Ig(B,R);R1b(B)}; WOY=function(B,z,T,R,h){var W=B.provider.dF.T.cbrver;B.provider.dF.T.cbr==="Chrome"&&/^96[.]/.test(W)&&T==="net.badstatus"&&/rc\.500/.test(h)&&YCH(B,3);B.provider.dF.D("html5_use_ump")&&/b248180278/.test(h)&&YCH(B,4);W=B.provider.getCurrentTime(B.adCpn||B.provider.videoData.clientPlaybackNonce);R=R===1?"fatal":"";T=[T,R,W.toFixed(3)];R&&(h+=";a6s."+Lv());h&&T.push(lW5(h));g.r9(B,z,"error",T);B.W=!0}; EhY=function(B,z){var T=g.sr(B.provider);if(!B.provider.dF.experiments.Cf("html5_refactor_sabr_video_format_selection_logging")||z.T.id!==B.IK){var R=[z.T.id,z.U,B.IK,z.reason];z.token&&R.push(z.token);g.r9(B,T,"vfs",R);B.IK=z.T.id;R=B.provider.iO.getPlayerSize();if(R.width>0&&R.height>0){R=[Math.round(R.width),Math.round(R.height)];var h=g.Xk();h>1&&R.push(h);g.r9(B,T,"view",R)}B.EE||(B.provider.dF.L4()&&G7(B,"rqs2"),B.provider.videoData.T&&of(B.provider.videoData.T)&&B.T.set("preload",["1"]));B.EE= !0;B.W=!0}z.reason==="m"&&++B.S6===100&&YCH(B,2);g.r9(B,T,"vps",[B.mu]);B.RK||B.reportStats(T)}; wsK=function(B){B.Y>=0||(B.provider.dF.L2||B.provider.iO.getVisibilityState()!==3?B.Y=g.sr(B.provider):B.sE=!0)}; sYl=function(B,z,T){if(B.provider.dF.experiments.Cf("html5_refactor_sabr_audio_format_selection_logging")){z=T.T;var R=[z.audio&&z.video?z.uQ?z.uQ:"":z.id];z.HB&&z.HB.id&&R.push(z.HB.id);z=R.join(";");z!==B.X&&(R=[z,B.X,T.reason],T.token&&R.push(T.token),g.r9(B,g.sr(B.provider),"afs",R),B.X=z)}else T.T.id!==B.X&&(R=[T.T.id,B.X,T.reason],T.token&&R.push(T.token),g.r9(B,z,"afs",R),B.X=T.T.id)}; G7=function(B,z){FI(B,"cat",z)}; Ae=function(B,z,T,R,h,W){var b=g.sr(B.provider);T!==1&&T!==3&&T!==5||g.r9(B,b,"vps",[B.mu]);FI(B,"xvt","t."+b.toFixed(3)+";m."+W.toFixed(3)+";g."+z+";tt."+T+";np.0;c."+R+";d."+h)}; YCH=function(B,z){B.aK||(FI(B,"fcnz",""+z),B.aK=!0)}; lW5=function(B){/[^a-zA-Z0-9;.!_-]/.test(B)&&(B=B.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return B}; qCX=function(B){this.provider=B;this.L=!1;this.T=0;this.W=-1;this.mK=NaN;this.Y=0;this.segments=[];this.X=this.V=0;this.previouslyEnded=!1;this.N=this.provider.iO.getVolume();this.J=this.provider.iO.isMuted()?1:0;this.U=ag(this.provider)}; UC=function(B){B.U.startTime=B.Y;B.U.endTime=B.T;var z=!1;B.segments.length&&g.c7(B.segments).isEmpty()?(B.segments[B.segments.length-1].previouslyEnded&&(B.U.previouslyEnded=!0),B.segments[B.segments.length-1]=B.U,z=!0):B.segments.length&&B.U.isEmpty()||(B.segments.push(B.U),z=!0);z?B.U.endTime===0&&(B.previouslyEnded=!1):B.U.previouslyEnded&&(B.previouslyEnded=!0);B.V+=B.T-B.Y;B.U=ag(B.provider);B.U.previouslyEnded=B.previouslyEnded;B.previouslyEnded=!1;B.Y=B.T}; ceP=function(B){iRb(B);B.X=g.Ic(function(){B.update()},100); B.mK=g.sr(B.provider);B.U=ag(B.provider)}; iRb=function(B){g.dJ(B.X);B.X=NaN}; LOl=function(B,z,T){T-=B.mK;return z===B.T&&T>.5}; Cvd=function(B,z,T,R){this.dF=z;this.JZ=T;this.segments=[];this.experimentIds=[];this.sE=this.ra=this.isFinal=this.delayThresholdMet=this.Dm=this.LF=this.autoplay=this.autonav=!1;this.s0="yt";this.X=[];this.L=this.N=null;this.sendVisitorIdHeader=this.MG=!1;this.J=this.pageId="";this.V=T==="watchtime";this.Y=T==="playback";this.RK=T==="atr";this.L2=T==="engage";this.sendVisitorIdHeader=!1;this.uri=this.RK?"/api/stats/"+T:"//"+z.Lt+"/api/stats/"+T;R&&(this.ra=R.fs,R.rtn&&(this.L=R.rtn),this.V?(this.playerState= R.state,R.rti>0&&(this.N=R.rti)):(this.r3=R.mos,this.yn=R.volume,R.at&&(this.adType=R.at)),R.autonav&&(this.autonav=R.autonav),R.inview!=null&&(this.II=R.inview),R.size&&(this.C4=R.size),R.playerwidth&&(this.qr=R.playerwidth),R.playerheight&&(this.XS=R.playerheight));this.S6=g.zR(z.T);this.J=zk(z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.Sk=g.zR(z.Sk);this.Ip=z.C4;this.experimentIds=fZP(z.experiments);this.Kf=z.R7;this.s0=z.TZ;this.region=z.region; this.userAge=z.userAge;this.EE=z.Up;this.pF=JW();this.sendVisitorIdHeader=z.sendVisitorIdHeader;this.XE=z.D("vss_pings_using_networkless")||z.D("kevlar_woffle");this.Gj=z.D("vss_final_ping_send_and_write");this.zZ=z.D("vss_use_send_and_write");this.pageId=z.pageId;this.tj=z.D("vss_playback_use_send_and_write");z.livingRoomAppMode&&(this.livingRoomAppMode=z.livingRoomAppMode);this.yl=z.W&&z.D("embeds_append_synth_ch_headers");g.yW(z)&&(this.cD=z.RK);g.cZ(g.kC(z))&&this.X.push(1);this.accessToken=g.Kt(B); B.qV[this.JZ]?this.W=B.qV[this.JZ]:B.qV.playback&&(this.W=B.qV.playback);this.adFormat=B.adFormat;this.adQueryId=B.adQueryId;this.autoplay=MqY(B);this.Y&&(this.LF=B.d5&&xh(B)==="adunit"?!0:!1);this.autonav=B.isAutonav||this.autonav;this.contentVideoId=Dr(B);this.clientPlaybackNonce=B.clientPlaybackNonce;this.Dm=B.Jj;B.X&&(this.UE=B.X,this.O0=B.Vr);B.mdxEnvironment&&(this.mdxEnvironment=B.mdxEnvironment);this.T=B.s0;this.U0=B.U0;B.U&&(this.fF=B.U.itag,B.W&&B.W.itag!==this.fF&&(this.aK=B.W.itag));B.T&& of(B.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=xh(B);this.sE=B.tj?!1:B.yn;this.R7=B.lW;if(z=d5(B))this.Qn=z;this.Nh=B.FD;this.partnerId=B.partnerId;this.eventId=B.eventId;this.playlistId=B.mL||B.playlistId;this.vU=B.vU;this.Y2=B.Y2;this.E6=B.E6;this.k9=B.k9;this.subscribed=B.subscribed;this.videoId=B.videoId;this.videoMetadata=B.videoMetadata;this.visitorData=B.visitorData;this.osid=B.osid;this.r8=B.r8;this.referrer=B.referrer;this.r_=B.xP||B.r_;this.eI=B.cR;this.qw=B.qw;this.userGenderAge= B.userGenderAge;this.l4=B.l4;this.embedsRct=B.embedsRct;this.embedsRctn=B.embedsRctn;g.yW(this.dF)&&B.mutedAutoplay&&(B.mutedAutoplayDurationMode===2&&B.limitedPlaybackDurationInSeconds===0&&B.endSeconds===0?this.X.push(7):this.X.push(2));B.isEmbedsShortsMode(new g.PY(this.qr,this.XS),!!this.playlistId)&&this.X.push(3);g.ev(B)&&this.X.push(4);this.IK=B.PP;B.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=B.compositeLiveIngestionOffsetToken)}; reB=function(B,z){var T=B.sendVisitorIdHeader?B.visitorData:void 0;return g.RQ(B.dF,B.accessToken).then(function(R){return f3H(B.uri,B.dF,B.pageId,T,R,z,B.yl)})}; IWz=function(B,z){return function(){B.dF.D("html5_simplify_pings")?(B.T=B.lO,B.t0=z(),B.pF=0,B.send()):reB(B).then(function(T){var R=o7K(B);R.cmt=R.len;R.lact="0";var h=z().toFixed(3);R.rt=Number(h).toString();R=g.Qn(B.uri,R);B.dF.D("vss_through_gel_double")&&FO5(R);B.XE?(T==null&&(T={}),B.zZ?S4().sendAndWrite(R,T):S4().sendThenWrite(R,T)):T?g.yH(R,T):g.Hg(R)})}}; o7K=function(B){var z={ns:B.s0,el:B.eventLabel,cpn:B.clientPlaybackNonce,ver:2,cmt:B.U(B.T),fmt:B.fF,fs:B.ra?"1":"0",rt:B.U(B.t0),adformat:B.adFormat,content_v:B.contentVideoId,euri:B.Ip,lact:B.pF,live:B.Qn,cl:(760609635).toString(),mos:B.r3,state:B.playerState,volume:B.yn};B.subscribed&&(z.subscribed="1");Object.assign(z,B.S6);B.J==="all"?Object.assign(z,B.Sk):B.J==="once"&&B.Y&&Object.assign(z,B.Sk);B.autoplay&&(z.autoplay="1");B.LF&&(z.sautoplay="1");B.Dm&&(z.dni="1");!B.V&&B.cD&&(z.epm=G7l[B.cD]); B.isFinal&&(z["final"]="1");B.sE&&(z.splay="1");B.U0&&(z.delay=B.U0);B.Kf&&(z.hl=B.Kf);B.region&&(z.cr=B.region);B.userGenderAge&&(z.uga=B.userGenderAge);B.userAge!==void 0&&B.EE&&(z.uga=B.EE+B.userAge);B.lO!==void 0&&(z.len=B.U(B.lO));!B.V&&B.experimentIds.length>0&&(z.fexp=B.experimentIds.toString());B.L!==null&&(z.rtn=B.U(B.L));B.r_&&(z.feature=B.r_);B.Y2&&(z.ctrl=B.Y2);B.E6&&(z.ytr=B.E6);B.aK&&(z.afmt=B.aK);B.offlineDownloadUserChoice&&(z.ODUC=B.offlineDownloadUserChoice);B.TZ&&(z.lio=B.U(B.TZ)); B.V?(z.idpj=B.R7,z.ldpj=B.Nh,B.delayThresholdMet&&(z.dtm="1"),B.N!=null&&(z.rti=B.U(B.N)),B.l4&&(z.ald=B.l4),B.compositeLiveIngestionOffsetToken&&(z.clio=B.compositeLiveIngestionOffsetToken)):B.adType!==void 0&&(z.at=B.adType);B.C4&&(B.Y||B.V)&&(z.size=B.C4);B.Y&&B.X.length&&(z.pbstyle=B.X.join(","));B.II!=null&&(B.Y||B.V)&&(z.inview=B.U(B.II));B.V&&(z.volume=MN(B,g.s9(B.segments,function(R){return R.volume})),z.st=MN(B,g.s9(B.segments,function(R){return R.startTime})),z.et=MN(B,g.s9(B.segments,function(R){return R.endTime})), Sa(B.segments,function(R){return R.playbackRate!==1})&&(z.rate=MN(B,g.s9(B.segments,function(R){return R.playbackRate}))),Sa(B.segments,function(R){return R.T!=="-"})&&(z.als=g.s9(B.segments,function(R){return R.T}).join(",")),Sa(B.segments,function(R){return R.previouslyEnded})&&(z.pe=g.s9(B.segments,function(R){return""+ +R.previouslyEnded}).join(","))); z.muted=MN(B,g.s9(B.segments,function(R){return R.muted?1:0})); Sa(B.segments,function(R){return R.visibilityState!==0})&&(z.vis=MN(B,g.s9(B.segments,function(R){return R.visibilityState}))); Sa(B.segments,function(R){return R.connectionType!==0})&&(z.conn=MN(B,g.s9(B.segments,function(R){return R.connectionType}))); Sa(B.segments,function(R){return R.U!==0})&&(z.blo=MN(B,g.s9(B.segments,function(R){return R.U}))); Sa(B.segments,function(R){return!!R.Y})&&(z.blo=g.s9(B.segments,function(R){return R.Y}).join(",")); Sa(B.segments,function(R){return!!R.compositeLiveStatusToken})&&(z.cbs=g.s9(B.segments,function(R){return R.compositeLiveStatusToken}).join(",")); Sa(B.segments,function(R){return R.W!=="-"})&&(z.cc=g.s9(B.segments,function(R){return R.W}).join(",")); Sa(B.segments,function(R){return R.clipId!=="-"})&&(z.clipid=g.s9(B.segments,function(R){return R.clipId}).join(",")); if(Sa(B.segments,function(R){return!!R.audioId})){var T="au"; B.Y&&(T="au_d");z[T]=g.s9(B.segments,function(R){return R.audioId}).join(",")}qR()&&B.UE&&(z.ctt=B.UE,z.cttype=B.O0,z.mdx_environment=B.mdxEnvironment); B.L2&&(z.etype=B.WD!==void 0?B.WD:0);B.eI&&(z.uoo=B.eI);B.livingRoomAppMode&&B.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(z.clram=dNK[B.livingRoomAppMode]||B.livingRoomAppMode);B.W?Ae5(B,z):(z.docid=B.videoId,z.referrer=B.referrer,z.ei=B.eventId,z.of=B.r8,z.osid=B.osid,z.vm=B.videoMetadata,B.adQueryId&&(z.aqi=B.adQueryId),B.autonav&&(z.autonav="1"),B.playlistId&&(z.list=B.playlistId),B.k9&&(z.ssrt="1"),B.qw&&(z.upt=B.qw));B.Y&&(B.embedsRct&&(z.rct=B.embedsRct),B.embedsRctn&&(z.rctn= B.embedsRctn),B.compositeLiveIngestionOffsetToken&&(z.clio=B.compositeLiveIngestionOffsetToken));B.IK&&(z.host_cpn=B.IK);return z}; Ae5=function(B,z){if(z&&B.W){var T=new Set(["q","feature","mos"]),R=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),h=new Set(["aqi","autonav","list","ssrt","upt"]);B.W.ns==="3pp"&&(z.ns="3pp");for(var W=g.d(Object.keys(B.W)),b=W.next();!b.done;b=W.next())b=b.value,R.has(b)||T.has(b)||h.has(b)&&!B.W[b]||(z[b]=B.W[b])}}; MN=function(B,z){return g.s9(z,B.U).join(",")}; FO5=function(B){B.indexOf("watchtime")!==-1&&g.ip("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:B}})}; aWX=function(B,z){B.attestationResponse&&reB(B).then(function(T){T=T||{};T.method="POST";T.postParams={atr:B.attestationResponse};B.XE?B.zZ?S4().sendAndWrite(z,T):S4().sendThenWrite(z,T):g.yH(z,T)})}; Vm=function(B){g.K.call(this);this.provider=B;this.X="paused";this.V=NaN;this.L=[10,10,10,40];this.N=this.J=0;this.UE=this.RK=this.WD=this.TZ=this.Y=!1;this.U=this.W=NaN;this.logger=new g.RH("vss");this.T=new qCX(B)}; yeK=function(B){if(!B.Y){B.provider.videoData.kq===16623&&g.KV(Error("Playback for EmbedPage"));var z=Qm(B,"playback");B.L=UNK(B);ceP(B.T);z.L=ym(B);B.U>0&&(z.T-=B.U);z.send();if(B.provider.videoData.Er){z=B.provider.dF;var T=B.provider.videoData,R={html5:"1",video_id:T.videoId,cpn:T.clientPlaybackNonce,ei:T.eventId,ptk:T.Er,oid:T.yS,ptchn:T.qO,pltype:T.IL,content_v:Dr(T)};T.SR&&Object.assign(R,{m:T.SR});z=g.Qn(z.yW+"ptracking",R);M0z(B,z)}B.provider.videoData.U0||(V0l(B),QgB(B));B.Y=!0;B=B.T;B.T= B.Aj();B.mK=g.sr(B.provider);!(B.Y===0&&B.T<5)&&B.T-B.Y>2&&(B.Y=B.T);B.L=!0}}; UNK=function(B){var z=B.provider.videoData.lW,T=B.provider.videoData.FD,R=[10+z,10,10,40+T-z,40],h,W=(h=B.provider.videoData.getPlayerResponse())==null?void 0:h.playbackTracking,b=W==null?void 0:W.videostatsScheduledFlushWalltimeSeconds;h=W==null?void 0:W.videostatsDefaultFlushIntervalSeconds;if(!(b&&b.length>0&&h))return B.logger.info("Missing valid scheduled pings config "+b+" "+h),R;z=[b[0]+z].concat(g.Q(b.slice(1).map(function(l,w){return l-b[w]})),[h+T-z, h]);return z.some(function(l){return l<0})?(B.logger.T(347111855,"Neg vss scheduled pings "+b+" "+h),R):z}; ym=function(B,z){z=z===void 0?NaN:z;var T=g.sr(B.provider);z=isNaN(z)?T:z;z=Math.ceil(z);var R=B.L[B.J];B.J+11E3;!(W.length>1)&&W[0].isEmpty()||l||(b.L=ym(B,h));b.send();B.N++}},(h-T)*1E3); return B.W=h}; g9=function(B){g.GF(B.V);B.V=NaN}; g7d=function(B){B.T.update();B=B.T;B.segments.length&&B.T===B.Y||UC(B);var z=B.segments;B.segments=[];return z}; Qm=function(B,z){var T=psX(B.provider);Object.assign(T,{state:B.X});z=new Cvd(B.provider.videoData,B.provider.dF,z,T);z.T=B.provider.iO.Aj();T=B.provider.videoData.clientPlaybackNonce;z.T=B.provider.iO.OR(T);B.provider.videoData.isLivePlayback||(z.lO=B.provider.iO.getDuration(T));B.provider.videoData.T&&(T=B.provider.videoData.T.gt(z.T))&&(z.TZ=T-z.T,B.provider.dF.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&mJ(B.provider.videoData)&&(z.T+=B.provider.iO.p4(),z.TZ-=B.provider.iO.p4()));z.t0=g.sr(B.provider); z.segments=[ag(B.provider)];return z}; Jez=function(B,z){var T=Qm(B,"watchtime");$Nz(B)&&(T.delayThresholdMet=!0,B.WD=!0);if(B.U>0){for(var R=g.d(z),h=R.next();!h.done;h=R.next())h=h.value,h.startTime-=B.U,h.endTime-=B.U;T.T-=B.U}else T.T=B.T.T;T.segments=z;return T}; Je=function(B,z){var T=PvY(B,!isNaN(B.W));z&&(B.W=NaN);return T}; PvY=function(B,z){var T=Jez(B,g7d(B));!isNaN(B.W)&&z&&(T.N=B.W);return T}; $Nz=function(B){var z;if(z=B.provider.videoData.isLoaded()&&B.provider.videoData.U0&&B.Y&&!B.WD)z=B.T,z=z.V+z.Aj()-z.Y>=B.provider.videoData.U0;return!!z}; V0l=function(B){B.provider.videoData.youtubeRemarketingUrl&&!B.RK&&(M0z(B,B.provider.videoData.youtubeRemarketingUrl),B.RK=!0)}; QgB=function(B){B.provider.videoData.googleRemarketingUrl&&!B.UE&&(M0z(B,B.provider.videoData.googleRemarketingUrl),B.UE=!0)}; xN5=function(B){if(!B.xd()&&B.Y){B.X="paused";var z=Je(B);z.isFinal=!0;z.send();B.dispose()}}; v7l=function(B,z){if(!B.xd())if(g.X(z.state,2)||g.X(z.state,512)){if(B.X="paused",g.dK(z,2)||g.dK(z,512))g.dK(z,2)&&(B.T.previouslyEnded=!0),B.Y&&(g9(B),Je(B).send(),B.W=NaN)}else if(g.X(z.state,8)){B.X="playing";var T=B.Y&&isNaN(B.V)?ym(B):NaN;if(!isNaN(T)&&(Gv(z,64)<0||Gv(z,512)<0)){var R=PvY(B,!1);R.L=T;R.send()}g.dK(z,16)&&z.state.seekSource===58&&(B.T.previouslyEnded=!0)}else B.X="paused"}; DNz=function(B,z,T){if(!B.TZ){T||(T=Qm(B,"atr"));T.attestationResponse=z;try{T.send()}catch(R){if(R.message!=="Unknown Error")throw R;}B.TZ=!0}}; M0z=function(B,z){var T=B.provider.dF;g.RQ(B.provider.dF,g.Kt(B.provider.videoData)).then(function(R){var h=B.provider.dF.pageId,W=B.provider.dF.sendVisitorIdHeader?B.provider.videoData.visitorData:void 0,b=B.provider.dF.D("vss_pings_using_networkless")||B.provider.dF.D("kevlar_woffle"),l=B.provider.dF.D("allow_skip_networkless");R=f3H(z,T,h,W,R);OpB(z,R,{token:B.provider.videoData.X,kH:B.provider.videoData.Vr,mdxEnvironment:B.provider.videoData.mdxEnvironment},T,void 0,b&&!l,!1,!0)})}; k7X=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.Y=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; pR=function(B,z,T){this.videoData=B;this.dF=z;this.iO=T;this.T=void 0}; g.sr=function(B){return KOb(B)()}; KOb=function(B){if(!B.T){var z=g.bW(function(R){var h=(0,g.f)();R&&h<=631152E6&&(B.iO.OE("ytnerror",{issue:28799967,value:""+h}),h=(new Date).getTime()+2);return h},B.dF.D("html5_validate_yt_now")),T=z(); B.T=function(){return Math.round(z()-T)/1E3}; B.iO.pO()}return B.T}; psX=function(B){var z=B.iO.Nk()||{};z.fs=B.iO.Lh();z.volume=B.iO.getVolume();z.muted=B.iO.isMuted()?1:0;z.mos=z.muted;z.clipid=B.iO.Kw();var T;z.playerheight=((T=B.iO.getPlayerSize())==null?void 0:T.height)||0;var R;z.playerwidth=((R=B.iO.getPlayerSize())==null?void 0:R.width)||0;B=B.videoData;T={};B.U&&(T.fmt=B.U.itag,B.W&&(B.JZ?B.W.itag!==B.U.itag:B.W.itag!=B.U.itag)&&(T.afmt=B.W.itag));T.ei=B.eventId;T.list=B.playlistId;T.cpn=B.clientPlaybackNonce;B.videoId&&(T.v=B.videoId);B.TG&&(T.infringe=1); (B.tj?0:B.yn)&&(T.splay=1);(R=d5(B))&&(T.live=R);B.d5&&(T.sautoplay=1);B.o_&&(T.autoplay=1);B.vU&&(T.sdetail=B.vU);B.partnerId&&(T.partnerid=B.partnerId);B.osid&&(T.osid=B.osid);B.gC&&(T.cc=g.ei5(B.gC));return Object.assign(z,T)}; B9P=function(B){var z=VCr();if(z)return mNX[z]||mNX.other;if(g.JS(B.dF)){B=navigator.userAgent;if(/[Ww]ireless[)]/.test(B))return 3;if(/[Ww]ired[)]/.test(B))return 30}return 0}; ag=function(B){var z=new k7X,T;z.W=((T=psX(B).cc)==null?void 0:T.toString())||"-";z.playbackRate=B.iO.getPlaybackRate();T=B.iO.getVisibilityState();T!==0&&(z.visibilityState=T);B.dF.EE&&(z.U=1);z.Y=B.videoData.UI;z.compositeLiveStatusToken=B.videoData.compositeLiveStatusToken;T=B.iO.getAudioTrack();T.HB&&T.HB.id&&T.HB.id!=="und"&&(z.audioId=T.HB.id);z.connectionType=B9P(B);z.volume=B.iO.getVolume();z.muted=B.iO.isMuted();z.clipId=B.iO.Kw()||"-";z.T=B.videoData.xA||"-";return z}; g.$7=function(B,z){g.K.call(this);var T=this;this.provider=B;this.Y=new Map;this.mu=new g.b5;this.Yi={P4m:function(){return T.qoe}, sRI:function(){return T.T}, UkF:function(){return T.U}}; this.provider.videoData.u1()&&!this.provider.videoData.Rn&&(this.T=new Vm(this.provider),this.T.U=0,g.m(this,this.T),this.qoe=new g.og(this.provider,z),g.m(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.HV=this.provider.videoData.clientPlaybackNonce)&&this.Y.set(this.HV,this.T));if(B.dF.playerCanaryState==="canary"||B.dF.playerCanaryState==="holdback")this.U=new iv(this.provider),g.m(this,this.U)}; Ps=function(B){return g.sr(B.provider)}; x7=function(B){B.U&&P6B(B.U);B.qoe&&wsK(B.qoe)}; n7B=function(B){if(B.qoe){B=B.qoe;for(var z=B.provider.videoData,T=B.provider.dF,R=g.d(T.pk),h=R.next();!h.done;h=R.next())G7(B,h.value);if(B.provider.D("html5_enable_qoe_cat_list"))for(R=g.d(z.Lt),h=R.next();!h.done;h=R.next())G7(B,h.value);else z.pk&&G7(B,B.provider.videoData.pk);z.PB()&&(R=z.T,is(z)&&G7(B,"manifestless"),R&&g_(R)&&G7(B,"live-segment-"+g_(R).toFixed(1)));bs(z)?G7(B,"sabr"):B.Uy(Ct(z));if(nt(z)||z.Gz())z.Gz()&&G7(B,"ssa"),G7(B,"lifa");mJ(z)&&G7(B,"cdm");z.gatewayExperimentGroup&& (R=z.gatewayExperimentGroup,R==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?R="spkadtrt":R==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(R="spkadctrl"),G7(B,R));T.TZ!=="yt"&&B.T.set("len",[z.lengthSeconds.toFixed(2)]);z.cotn&&!Hx(z)&&B.hv(!0);T.L4()&&(z=s2H())&&B.OE("cblt",{m:z});if(T.D("html5_log_screen_diagonal")){T=B.OE;var W;z=((W=window.H5vccScreen)==null?0:W.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;T.call(B,"cbltdiag",{v:z})}}}; uIK=function(B){B.T&&yeK(B.T);if(B.U){B=B.U;var z=g.sr(B.provider);B.T<0&&(B.T=z,B.delay.start());B.U=z;B.W=z}}; HRX=function(B,z){B.T&&(B=B.T,z===58?B.T.update():B.Y&&(g9(B),Je(B).send(),B.W=NaN))}; fWY=function(B,z){if(g.dK(z,1024)||g.dK(z,512)||g.dK(z,4)){if(B.U){var T=B.U;T.U>=0||(T.T=-1,T.delay.stop())}B.qoe&&(T=B.qoe,T.L||(T.Y=-1))}if(B.provider.videoData.enableServerStitchedDai&&B.HV){var R;(R=B.Y.get(B.HV))==null||v7l(R,z)}else B.T&&v7l(B.T,z);if(B.qoe){R=B.qoe;T=z.state;var h=g.sr(R.provider),W=R.getPlayerState(T),b=T.seekSource||void 0;if(W!==R.mu){R.RK||h= 10&&R.playTimeSecs<=180&&(R.T.set("qoealert",["1"]),R.U0=!0)),W!=="B"||R.mu!=="PL"&&R.mu!=="PB"||(R.isBuffering=!0),R.U=h);R.mu==="PL"&&(W==="B"||W==="S")||R.provider.dF.L4()?Ig(R,h):(R.O0||W!=="PL"||(R.O0=!0,z15(R,h,R.provider.iO.EF())),SrB(R,h));W==="PL"&&g.Bi(R.t0);var l=[W];W==="S"&&b&&l.push("ss."+b);g.r9(R,h,"vps",l);R.mu=W;R.UE=h;R.U=h;R.W=!0}W=T.pp;g.X(T,128)&&W&&(W.E8=W.E8||"",WOY(R,h,W.errorCode,W.pJ,W.E8));(g.X(T,2)||g.X(T,128))&&R.reportStats(h);T.isPlaying()&&!R.L&&(R.Y>=0&&R.T.set("user_intent", [R.Y.toString()]),R.L=!0);R1b(R)}B.U&&(B=B.U,xmr(B),B.playerState=z.state,B.U>=0&&g.dK(z,16)&&B.seekCount++,z.state.isError()&&B.send())}; ORl=function(B){B.U&&B.U.send();if(B.qoe){var z=B.qoe;if(z.W){z.mu==="PL"&&(z.mu="N");var T=g.sr(z.provider);g.r9(z,T,"vps",[z.mu]);z.L||(z.Y>=0&&z.T.set("user_intent",[z.Y.toString()]),z.L=!0);z.provider.dF.L4()&&z.OE("finalized",{});z.XE=!0;z.reportStats(T)}}if(B.provider.videoData.enableServerStitchedDai)for(z=g.d(B.Y.values()),T=z.next();!T.done;T=z.next())xN5(T.value);else B.T&&xN5(B.T);B.dispose()}; N9z=function(B,z){B.T&&DNz(B.T,z)}; t0B=function(B){if(!B.T)return null;var z=Qm(B.T,"atr");return function(T){B.T&&DNz(B.T,T,z)}}; jgK=function(B,z,T,R){T.adFormat=T.L2;var h=z.iO;z=new Vm(new pR(T,z.dF,{getDuration:function(){return T.lengthSeconds}, getCurrentTime:function(){return h.getCurrentTime()}, Aj:function(){return h.Aj()}, OR:function(){return h.OR()}, Sj:function(){return h.Sj()}, EF:function(){return h.EF()}, getPlayerSize:function(){return h.getPlayerSize()}, getAudioTrack:function(){return T.getAudioTrack()}, getPlaybackRate:function(){return h.getPlaybackRate()}, vO:function(){return h.vO()}, getVisibilityState:function(){return h.getVisibilityState()}, Op:function(){return h.Op()}, Nk:function(){return h.Nk()}, getVolume:function(){return h.getVolume()}, isMuted:function(){return h.isMuted()}, Lh:function(){return h.Lh()}, Kw:function(){return h.Kw()}, getProximaLatencyPreference:function(){return h.getProximaLatencyPreference()}, pO:function(){h.pO()}, OE:function(W,b){h.OE(W,b)}, hq:function(){return h.hq()}, p4:function(){return h.p4()}})); z.U=R;g.m(B,z);return z}; XsB=function(){this.b2=0;this.Y=this.jR=this.k$=this.U=NaN;this.T={};this.bandwidthEstimate=NaN}; vs=function(B,z,T){g.K.call(this);var R=this;this.dF=B;this.iO=z;this.U=T;this.T=new Map;this.HV="";this.Yi={iZ:function(){return Array.from(R.T.keys())}}}; ZRd=function(){this.T=g.bu;this.array=[]}; sgH=function(B,z,T){var R=[];for(z=e1z(B,z);zT)break}return R}; E7z=function(B,z){var T=[];B=g.d(B.array);for(var R=B.next();!R.done&&!(R=R.value,R.contains(z)&&T.push(R),R.start>z);R=B.next());return T}; SCl=function(B){return B.array.slice(e1z(B,0x7ffffffffffff),B.array.length)}; e1z=function(B,z){B=P7(B.array,function(T){return z-T.start||1}); return B<0?-(B+1):B}; Bp5=function(B,z){var T=NaN;B=g.d(B.array);for(var R=B.next();!R.done;R=B.next())if(R=R.value,R.contains(z)&&(isNaN(T)||R.endz&&(isNaN(T)||R.startB.mediaTime+B.V&&z1)B.W=!0;if((h===void 0?0:h)||isNaN(B.U))B.U=z;if(B.T)z!==B.mediaTime&&(B.T=!1);else if(z>0&&B.mediaTime===z){h=1500;if(B.dF.D("html5_buffer_underrun_transition_fix")){h=g.rk(B.dF.experiments,"html5_min_playback_advance_for_steady_state_secs");var W=g.rk(B.dF.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");h=h>0&&W>0&&Math.abs(z-B.U)(R||!B.W?h:400)}B.mediaTime=z;B.Y=T;return!1}; bnr=function(B,z){this.videoData=B;this.T=z}; YAz=function(B,z,T){return z.vP(T).then(function(){return vP(new bnr(z,z.Y))},function(R){R instanceof Error&&g.KV(R); var h=$b('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),W=xb('audio/mp4; codecs="mp4a.40.2"'),b=h||W,l=z.isLivePlayback&&!g.hq(B.V,!0);R="fmt.noneavailable";l?R="html5.unsupportedlive":b||(R="html5.missingapi");b=l||!b?2:1;h={buildRej:"1",a:z.K_(),d:!!z.C4,drm:z.Cp(),f18:z.r3.indexOf("itag=18")>=0,c18:h};z.T&&(z.Cp()?(h.f142=!!z.T.T["142"],h.f149=!!z.T.T["149"],h.f279=!!z.T.T["279"]):(h.f133=!!z.T.T["133"],h.f140=!!z.T.T["140"],h.f242=!!z.T.T["242"]),h.cAAC=W,h.cAVC=xb('video/mp4; codecs="avc1.42001E"'), h.cVP9=xb('video/webm; codecs="vp9"'));z.V&&(h.drmsys=z.V.keySystem,W=0,z.V.T&&(W=Object.keys(z.V.T).length),h.drmst=W);return new y_(R,h,b)})}; KR=function(B){this.data=window.Float32Array?new Float32Array(B):Array(B);this.U=this.T=B-1}; lA5=function(B){return B.data[B.T]||0}; wBd=function(B){this.V=B;this.Y=this.U=0;this.W=new KR(50)}; nR=function(B,z,T){g.Cl.call(this);this.videoData=B;this.experiments=z;this.V=T;this.U=[];this.Yt=0;this.Y=!0;this.W=!1;this.X=0;T=new qA5;B.latencyClass==="ULTRALOW"&&(T.X=!1);B.eI?T.Y=3:g.Ve(B)&&(T.Y=2);B.latencyClass==="NORMAL"&&(T.V=!0);T.TZ=bs(B)&&z.Cf("html5_refactor_decouple_liveness");g.rk(z,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.rk(z,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||B.latencyClass!=="LOW"&&B.latencyClass!=="ULTRALOW"||(T.V=!0);var R= g.rk(z,"html5_liveness_drift_proxima_override");if(Ct(B)!==0&&R){T.T=R;var h;((h=B.T)==null?0:Wib(h))&&T.T--}bs(B)&&z.Cf("html5_sabr_parse_live_metadata_playback_boundaries")&&(T.UE=!0);if(g.NR("trident/")||g.NR("edge/"))h=g.rk(z,"html5_platform_minimum_readahead_seconds")||3,T.W=Math.max(T.W,h);g.rk(z,"html5_minimum_readahead_seconds")&&(T.W=g.rk(z,"html5_minimum_readahead_seconds"));g.rk(z,"html5_maximum_readahead_seconds")&&(T.N=g.rk(z,"html5_maximum_readahead_seconds"));z.Cf("html5_force_adaptive_readahead")&& (T.X=!0);if(h=g.rk(z,"html5_liveness_drift_chunk_override"))T.T=h;cx(B)&&(T.T=(T.T+1)/5,B.latencyClass==="LOW"&&(T.T*=2));!bs(B)||B.latencyClass!=="ULTRALOW"&&B.latencyClass!=="LOW"||(T.J=g.rk(z,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,T.L=g.rk(z,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=T;this.L=this.policy.Y!==1;this.T=mO(this,inH(this,isNaN(B.liveChunkReadahead)?3:B.liveChunkReadahead,B))}; c0P=function(B,z){if(z)return z=B.videoData,z=inH(B,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z),mO(B,z);if(B.U.length){if(Math.min.apply(null,B.U)>1)return mO(B,B.T-1);if(B.policy.X)return mO(B,B.T+1)}return B.T}; L3d=function(B,z){if(!B.U.length)return!1;var T=B.T;B.T=c0P(B,z===void 0?!1:z);if(z=T!==B.T)B.U=[],B.Yt=0;return z}; uv=function(B,z){return z>=B.ye()-CCY(B)}; r0r=function(B,z,T){z=uv(B,z);T||z?z&&(B.Y=!0):B.Y=!1;B.L=B.policy.Y===2||B.policy.Y===3&&B.Y}; oJl=function(B,z){z=uv(B,z);B.W!==z&&B.publish("livestatusshift",z);B.W=z}; CCY=function(B){var z=B.policy.T;B.W||(z=Math.max(z-1,0));return z*Hs(B)}; inH=function(B,z,T){T.eI&&z--;cx(T)&&(z=1);if(Ct(T)!==0&&(B=g.rk(B.experiments,"html5_live_chunk_readahead_proxima_override"))){z=B;var R;((R=T.T)==null?0:Wib(R))&&z++}return z}; Hs=function(B){return B.videoData.T?g_(B.videoData.T)||5:5}; mO=function(B,z){z=Math.max(Math.max(1,Math.ceil(B.policy.W/Hs(B))),z);return Math.min(Math.min(8,Math.floor(B.policy.N/Hs(B))),z)}; qA5=function(){this.W=0;this.N=Infinity;this.X=!0;this.U=this.T=2;this.Y=1;this.V=!1;this.L=10;this.UE=!1;this.J=1;this.TZ=!1}; NN=function(B){g.K.call(this);this.iO=B;this.T=0;this.U=null;this.X=this.W=0;this.Y={};this.dF=this.iO.K();this.V=new g.Si(this.nQ,1E3,this);this.MG=new fR({delayMs:g.rk(this.dF.experiments,"html5_seek_timeout_delay_ms")});this.RK=new fR({delayMs:g.rk(this.dF.experiments,"html5_long_rebuffer_threshold_ms")});this.eI=OC(this,"html5_seek_set_cmt");this.lO=OC(this,"html5_seek_jiggle_cmt");this.IK=OC(this,"html5_seek_new_elem");this.O0=OC(this,"html5_unreported_seek_reseek");this.UE=OC(this,"html5_long_rebuffer_jiggle_cmt"); this.WD=new fR({delayMs:2E4});this.cD=OC(this,"html5_seek_new_elem_shorts");this.sE=OC(this,"html5_seek_new_media_source_shorts_reuse");this.Kf=OC(this,"html5_seek_new_media_element_shorts_reuse");this.zZ=OC(this,"html5_reseek_after_time_jump");this.J=OC(this,"html5_gapless_handoff_close_end_long_rebuffer");this.N=OC(this,"html5_gapless_slow_seek");this.TZ=OC(this,"html5_gapless_slow_start");this.L=OC(this,"html5_ads_preroll_lock_timeout");this.EE=new fR({delayMs:g.rk(this.dF.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,xt:!this.dF.D("html5_report_slow_ads_as_error")});this.aK=new fR({delayMs:g.rk(this.dF.experiments,"html5_skip_slow_ad_delay_ms")||5E3,xt:!this.dF.D("html5_skip_slow_buffering_ad")});this.U0=new fR({delayMs:g.rk(this.dF.experiments,"html5_slow_start_timeout_delay_ms")});this.XE=OC(this,"html5_slow_start_no_media_source");g.m(this,this.V)}; OC=function(B,z){var T=g.rk(B.dF.experiments,z+"_delay_ms");B=B.dF.D(z+"_cfl");return new fR({delayMs:T,xt:B})}; F3P=function(B,z){B.T=z}; te=function(B,z,T,R,h,W,b,l){z.test(T)?(B.h0(h,z,b),z.xt||W()):(z.WF&&z.U&&!z.W?(T=(0,g.f)(),R?z.T||(z.T=T):z.T=0,W=!R&&T-z.U>z.WF,T=z.T&&T-z.T>z.yD||W?z.W=!0:!1):T=!1,T&&(l=Object.assign({},B.NS(z),l),l.wn=b,l.we=h,l.wsuc=R,B.iO.OE("workaroundReport",l),R&&(z.reset(),B.Y[h]=!1)))}; fR=function(B){var z=B===void 0?{}:B;B=z.delayMs===void 0?0:z.delayMs;var T=z.yD===void 0?1E3:z.yD;var R=z.WF===void 0?3E4:z.WF;z=z.xt===void 0?!1:z.xt;this.T=this.U=this.Y=this.startTimestamp=0;this.W=!1;this.V=Math.ceil(B/1E3);this.yD=T;this.WF=R;this.xt=z}; A0z=function(B){g.K.call(this);var z=this;this.iO=B;this.L=this.T=this.loader=this.mediaElement=this.playbackData=null;this.Y=0;this.V=this.UE=this.W=null;this.WD=!1;this.U0=0;this.TZ=!1;this.timestampOffset=0;this.J=!0;this.IK=0;this.sE=this.Dm=!1;this.X=0;this.eI=!1;this.RK=0;this.dF=this.iO.K();this.videoData=this.iO.getVideoData();this.policy=new IAK;this.N=new NN(this.iO);this.EE=this.cD=this.lO=this.U=NaN;this.zZ=new g.Si(function(){Grz(z,!1)},2E3); this.O0=new g.Si(function(){j0(z)}); this.Kf=new g.Si(function(){z.WD=!0;dzK(z,{})}); this.aK=NaN;this.XE=new g.Si(function(){var T=z.dF.Ip;T.T+=1E4/36E5;T.T-T.Y>1/6&&(YUz(T),T.Y=T.T);z.XE.start()},1E4); g.m(this,this.N);g.m(this,this.zZ);g.m(this,this.Kf);g.m(this,this.O0);g.m(this,this.XE)}; Myd=function(B,z){B.playbackData=z;B.videoData.isLivePlayback&&(B.L=new wBd(function(){a:{if(B.playbackData&&B.playbackData.T.T){if(is(B.videoData)&&B.loader){var R=B.loader.wC.EJ()||0;break a}if(B.videoData.T){R=B.videoData.T.XE;break a}}R=0}return R}),B.T=new nR(B.videoData,B.dF.experiments,function(){return B.D4(!0)})); if(XI(B.iO)){var T;(T=B.videoData.EE)!=null&&T.RM||(z=aAH(B),z.RN?(bs(B.videoData)&&B.tb(z.RN,z.startSeconds),B.Y=z.startSeconds):z.startSeconds>0&&B.seekTo(z.startSeconds,{Dx:"seektimeline_startPlayback",seekSource:15}));B.J=!1}else Uzd(B)||(B.Y=B.Y||B.videoData.startSeconds||0)}; Q4X=function(B,z){(B.loader=z)?Vyl(B,!0):ZW(B)}; y0K=function(B,z){g.Bi(B.N.V);B.D("html5_exponential_memory_for_sticky")&&(z.state.isPlaying()?g.Bi(B.XE):B.XE.stop());if(B.mediaElement)if(z.oldState.state===8&&Lk(z.state)&&z.state.isBuffering()){z=B.mediaElement.getCurrentTime();var T=B.mediaElement.Ao();var R=B.D("manifestless_post_live_ufph")||B.D("manifestless_post_live")?lr(T,Math.max(z-3.5,0)):lr(T,z-3.5);R>=0&&z>T.end(R)-1.1&&R+10?(e0(B.iO,B.getCurrentTime()+B.videoData.limitedPlaybackDurationInSeconds),B.sE=!0):B.videoData.isLivePlayback&&B.videoData.endSeconds>0&&(e0(B.iO,B.getCurrentTime()+B.videoData.endSeconds),B.sE=!0))}; J0z=function(B,z){var T=B.getCurrentTime(),R=B.isAtLiveHead(T);if(B.L&&R){var h=B.L;if(h.T&&!(T>=h.U&&T50&&h.U.shift())),h=B.T,r0r(h,T,z===void 0?!0:z),oJl(h,T),z&&Grz(B,!0));R!==B.Dm&&(z=B.getCurrentTime()-B.EE<=500,T=B.U0>=1E3,z||T||(z=B.iO.K4(),z.qoe&&(z=z.qoe,T=g.sr(z.provider), g.r9(z,T,"lh",[R?"1":"0"])),B.Dm=R,B.U0++,B.EE=B.getCurrentTime()))}; Grz=function(B,z){if(B.T){var T=B.T;var R=B.getCurrentTime(),h=T.ye();var W=T.policy.U;T.W||(W=Math.max(W-1,0));W*=Hs(T);R>=h-W||!T.GX()?T=R0&&T2(B.mediaElement)>0&&(B.U=sC(B,B.U,!1)),!B.mediaElement||!Dzz(B))B.O0.start(750);else if(!isNaN(B.U)&&isFinite(B.U)){var z=B.cD-(B.U-B.timestampOffset);if(!(z===0||Math.abs(z)<.005))if(z=B.mediaElement.getCurrentTime()-B.U,Math.abs(z)<=B.IK||Math.abs(z)<.005)krb(B);else{if(B.videoData.Ro)B.videoData.Ro=!1;else if(!qp(B.videoData)&&B.U>=B.D4()-.1){B.U=B.D4();B.W.resolve(B.D4()); B.iO.E_();return}try{var T=B.U-B.timestampOffset;B.mediaElement.seekTo(T);B.N.T=T;B.cD=T;B.Y=B.U;B.TZ=!1}catch(R){}}}}; Dzz=function(B){if(!B.mediaElement||B.mediaElement.V_()===0||B.mediaElement.hasError())return!1;var z=B.mediaElement.getCurrentTime()>0;if(!(B.videoData.Y&&B.videoData.Y.T||B.videoData.isLivePlayback)&&B.videoData.Cp())return z;if(B.U>=0){var T=B.mediaElement.kt();if(T.length||!z)return wN(T,B.U-B.timestampOffset)}return z}; krb=function(B){B.W&&(B.W.resolve(B.mediaElement.getCurrentTime()),B.N.U=null)}; xzX=function(B,z){B.V&&(B.V.resolve(z),B.iO.sQ(),B.dF.L4()||vJz(B))&&(z=B.NS(),z["native"]=""+ +B.TZ,z.otgt=""+(B.U+B.timestampOffset),B.iO.OE("seekEnd",z));ZW(B)}; ZW=function(B){B.U=NaN;B.cD=NaN;B.W=null;B.UE=null;B.V=null;B.WD=!1;B.TZ=!1;B.IK=0;B.zZ.stop();B.Kf.stop()}; mzP=function(B,z){var T=B.mediaElement,R=z.type;switch(R){case "seeking":var h=T.getCurrentTime()+B.timestampOffset;if(!B.W||B.TZ&&h!==B.U){B.W=new Bq;B.W.then(function(b){xzX(B,b)},function(){ZW(B)}); if(B.videoData.isAd()){var W;WvX({adCpn:B.videoData.clientPlaybackNonce,contentCpn:(W=B.videoData.PP)!=null?W:""},z.T)}B.cD=h;F3P(B.N,T.getCurrentTime());B.seekTo(h,{seekSource:104,Dx:"seektimeline_mediaElementEvent"});B.TZ=!0}break;case "seeked":krb(B);break;case "loadedmetadata":XI(B.iO)||K3l(B);j0(B);break;case "progress":j0(B);break;case "pause":B.X=B.getCurrentTime()}B.X&&((R==="play"||R==="playing"||R==="timeupdate"||R==="progress")&&B.getCurrentTime()-B.X>10&&(B.D("html5_enable_new_media_element_puase_jump")? (B.iO.h0(new y_("qoe.restart",{reason:"pauseJump"})),B.iO.wD(),B.seekTo(B.X,{Dx:"pauseJumpNewElement"})):B.seekTo(B.X,{Dx:"pauseJump"})),R!=="pause"&&R!=="play"&&R!=="playing"&&R!=="progress"&&(B.X=0))}; nJK=function(B){return(Qe(B.videoData)||!!B.videoData.liveUtcStartSeconds)&&(!!B.videoData.liveUtcStartSeconds||Uzd(B))&&!!B.videoData.T}; Uzd=function(B){return!!B.videoData.startSeconds&&isFinite(B.videoData.startSeconds)&&B.videoData.startSeconds>1E9}; aAH=function(B){var z=0,T=NaN,R="";if(!B.J)return{startSeconds:z,RN:T,source:R};B.videoData.TZ?z=B.videoData.WD:qp(B.videoData)&&(z=Infinity);if(g.Ve(B.videoData))return{startSeconds:z,RN:T,source:R};B.videoData.startSeconds?(R="ss",z=B.videoData.startSeconds):B.videoData.R7&&(R="stss",z=B.videoData.R7);B.videoData.liveUtcStartSeconds&&(T=B.videoData.liveUtcStartSeconds);if(isFinite(z)&&(z>B.D4()||zB.D4()||T 0?(R.onesie="0",B.handleError(new y_("html5.missingapi",R)),!1):!0}; ZnB=function(B){var z=kN();KB(z,B);return g.wI(z,ySK())}; tyr=function(B,z){var T,R,h,W,b,l,w,q,c,L,C,r,F,A,a,V,M,x,v,n,Z,N,TP,hK,zP,ld;return g.D(function(t){if(t.U==1)return z.fetchType="onesie",T=H65(z,B.getPlayerSize(),B.getVisibilityState()),R=new du(B,T),g.P(t,R.fetch(),2);h=t.T;W={player_response:h};z.loading=!1;b=B.xi.F4;if(R.R1){l=g.d(R.R1.entries());for(w=l.next();!w.done;w=l.next())q=w.value,c=g.d(q),L=c.next().value,C=c.next().value,r=L,F=C,b.T.set(r,F,180),r===z.videoId&&(A=F.JA(),z.lX=A);b.yv=R}a=g.d(R.RY.entries());for(V=a.next();!V.done;V= a.next())M=V.value,x=g.d(M),v=x.next().value,n=x.next().value,Z=v,N=n,b.U.set(Z,N,180);g.XS(z,W,!0);if(z.loading||tb(z))return t.return(Promise.resolve());b.T.removeAll();b.U.removeAll();z.lX=[];TP={};hK="onesie.response";zP=0;z.errorCode?(hK="auth",TP.ec=z.errorCode,TP.ed=z.errorDetail,TP.es=z.AQ||"",zP=2):(TP.successButUnplayable="1",TP.disposed=""+ +z.xd(),TP.afmts=""+ +/adaptiveFormats/.test(h),TP.cpn=z.clientPlaybackNonce);ld=new y_(hK,TP,zP);return t.return(Promise.reject(ld))})}; On5=function(B,z){var T,R,h,W,b,l,w,q,c,L,C;return g.D(function(r){switch(r.U){case 1:T=z.isAd(),R=!T,h=T?1:3,W=0;case 2:if(!(W0)){r.jI(5);break}return g.P(r,nh(5E3),6);case 6:b=new g.Z_("Retrying OnePlatform request",{attempt:W}),g.KV(b);case 5:return g.AK(r,7),g.P(r,eDP(B,z),9);case 9:return r.return();case 7:l=g.JK(r);w=Ji(l);q=w.errorCode;c=B.K();L=c.D("html5_use_network_error_code_enums")?401:"401";R&&q==="manifest.net.badstatus"&&w.details.rc===L&&(R=!1,W===h-1&&(h+= 1));if(W===h-1)return C=s45(T,w.details),C.details.backend="op",C.details.originec=q,r.return(Promise.reject(C));if(q==="auth"||q==="manifest.net.retryexhausted")return r.return(Promise.reject(w));B.handleError(w);if(gt(w.severity)){r.jI(4);break}case 3:W++;r.jI(2);break;case 4:return r.return(Promise.reject(s45(T,{backend:"op"})))}})}; eDP=function(B,z){function T(hK){hK.readyState===2&&B.u$("ps_c")} var R,h,W,b,l,w,q,c,L,C,r,F,A,a,V,M,x,v,n,Z,N,TP;return g.D(function(hK){switch(hK.U){case 1:z.fetchType="gp";R=B.K();h=g.RQ(R,g.Kt(z));if(!h.T){W=h.getValue();hK.jI(2);break}return g.P(hK,h.T,3);case 3:W=hK.T;case 2:return b=W,l=ZnB(b),w=H65(z,B.getPlayerSize(),B.getVisibilityState()),q=g.rn(EJY),c=g.Kt(z),L=(0,g.f)(),C=!1,r="empty",F=0,B.u$("psns"),A={TE:T},g.P(hK,g.E4(l,w,q,void 0,A),4);case 4:a=hK.T;B.u$("psnr");if(z.xd())return hK.return();a?"error"in a&&a.error?(C=!0,r="esf:"+a.error.message, F=a.error.code):a.errorMetadata&&(C=!0,r="its",F=a.errorMetadata.status):C=!0;if(C)return V=0,M=((0,g.f)()-L).toFixed(),x={},x=R.D("html5_use_network_error_code_enums")?{backend:"op",rc:F,rt:M,reason:r,has_kpt:z.LF?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.ek("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:R.pageId?"1":"0",has_token:c?"1":"0",has_vvt:z.RK?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Y2||"",token_eq:c===g.Kt(z)?"1":"0"}:{backend:"op", rc:""+F,rt:M,reason:r,has_kpt:z.LF?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.ek("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:R.pageId?"1":"0",has_token:c?"1":"0",has_vvt:z.RK?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Y2||"",token_eq:c===g.Kt(z)?"1":"0"},v="manifest.net.connect",F===429?(v="auth",V=2):F>200&&(v="manifest.net.badstatus",F===400&&(V=2)),hK.return(Promise.reject(new y_(v,x,V)));z.loading=!1;g.XS(z,{raw_player_response:a},!0); n=a;g.xC(z.K())&&n&&n.trackingParams&&xT(n.trackingParams);if(z.errorCode)return Z={ec:z.errorCode,ed:z.errorDetail,es:z.AQ||""},hK.return(Promise.reject(new y_("auth",Z,2)));if(!z.loading&&!tb(z))return N=z.isAd()?"auth":"manifest.net.retryexhausted",TP=z.isAd()?2:1,hK.return(Promise.reject(new y_(N,{successButUnplayable:"1",hasMedia:g.aY(z)?"1":"0"},TP)));g.dX(hK)}})}; fA5=function(B,z,T){function R(F){F=Ji(F);if(gt(F.severity))return Promise.reject(F);B.handleError(F);return!1} function h(){return!0} var W,b,l,w,q,c,L,C,r;return g.D(function(F){switch(F.U){case 1:var A=B.K();B.getPlayerSize();B.getVisibilityState();B.isFullscreen();if(z.partnerId===38&&A.playerStyle==="books")A=z.videoId.indexOf(":"),A=g.Qn("//play.google.com/books/volumes/"+z.videoId.slice(0,A)+"/content/media",{aid:z.videoId.slice(A+1),sig:z.uv});else if(z.partnerId===30&&A.playerStyle==="docs")A=g.Qn("https://docs.google.com/get_video_info",{docid:z.videoId,authuser:z.bU,authkey:z.D1,eurl:A.C4});else if(z.partnerId===33&&A.playerStyle=== "google-live")A=g.Qn("//google-liveplayer.appspot.com/get_video_info",{key:z.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+A.TZ);W=A;l=(b=z.isAd())?1:3;w=0;case 2:if(!(w0)){F.jI(5);break}return g.P(F,nh(5E3),6);case 6:c={playerretry:w,playerretrysrc:T},b||(c.recover="embedded"),q=lA(W,c);case 5:return g.P(F,SAz(z,q).then(h,R),7);case 7:if(L=F.T)return F.return();w++;F.jI(2);break;case 4:C=b?"auth":"manifest.net.retryexhausted";r=b?2:1;if(!b&&Math.random()< 1E-4)try{g.KV(new g.Z_("b/152131571",btoa(W)))}catch(a){}return F.return(Promise.reject(new y_(C,{backend:"gvi"},r)))}})}; SAz=function(B,z){function T(a){return R(a.xhr)} function R(a){if(!B.xd()){a=a?a.status:-1;var V=0,M=((0,g.f)()-c).toFixed();M=h.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:a,rt:M}:{backend:"gvi",rc:""+a,rt:M};var x="manifest.net.connect";a===429?(x="auth",V=2):a>200&&(x="manifest.net.badstatus",a===400&&(V=2));return Promise.reject(new y_(x,M,V))}} var h,W,b,l,w,q,c,L,C,r,F,A;return g.D(function(a){if(a.U==1){B.fetchType="gvi";h=B.K();var V={};B.Tb&&(V.ytrext=B.Tb);(l=g.Ep(V)?void 0:V)?(W={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},b=lA(z,{action_display_post:1})):(W={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},b=z);w={};h.sendVisitorIdHeader&&B.visitorData&&(w["X-Goog-Visitor-Id"]=B.visitorData);(q=zk(h.experiments,"debug_sherlog_username"))&&(w["X-Youtube-Sherlog-Username"]=q);Object.keys(w).length> 0&&(W.headers=w);c=(0,g.f)();return g.P(a,r_(pL,b,W).then(void 0,T),2)}L=a.T;if(!L||!L.responseText)return a.return(R(L));B.loading=!1;C=ho(L.responseText);g.XS(B,C,!0);if(B.errorCode)return r={ec:B.errorCode,ed:B.errorDetail,es:B.AQ||""},a.return(Promise.reject(new y_("auth",r,2)));if(!B.loading&&!tb(B))return F=B.isAd()?"auth":"manifest.net.retryexhausted",A=B.isAd()?2:1,a.return(Promise.reject(new y_(F,{successButUnplayable:"1"},A)));g.dX(a)})}; s45=function(B,z){return new y_(B?"auth":"manifest.net.retryexhausted",z,B?2:1)}; Tr=function(B,z,T){T=T===void 0?!1:T;var R,h,W,b;g.D(function(l){if(l.U==1){R=B.K();if(T&&(!g.sf(R)||xh(z)!=="embedded")||z.Xj||xh(z)!=="adunit"&&(g.JS(R)||uq(R)||g.f0(R)||g.vo(R)||g.Sg(R)==="WEB_CREATOR"))return l.return();h=g.RQ(R,g.Kt(z));return h.T?g.P(l,h.T,3):(W=h.getValue(),l.jI(2))}l.U!=2&&(W=l.T);b=W;return l.return(BhK(B,z,b))})}; BhK=function(B,z,T){var R,h,W,b,l;return g.D(function(w){if(w.U==1){g.AK(w,2);R=ZnB(T);var q=z.K();g.fD();var c={context:g.Sv(z),videoId:z.videoId,racyCheckOk:z.racyCheckOk,contentCheckOk:z.contentCheckOk,autonavState:"STATE_NONE"};xh(z)==="adunit"&&(c.isAdPlayback=!0);q.embedConfig&&(c.serializedThirdPartyEmbedConfig=q.embedConfig);q.c_&&(c.showContentOwnerOnly=!0);z.G8&&(c.showShortsOnly=!0);g.OW(0,141)&&(c.autonavState=g.OW(0,140)?"STATE_OFF":"STATE_ON");if(g.Zf(q)){var L=g.OW(0,65);L=L!=null? !L:!1;var C=!!g.kK("yt-player-sticky-caption");c.captionsRequested=L&&C}var r;if(q=(r=q.getWebPlayerContextConfig())==null?void 0:r.encryptedHostFlags)c.playbackContext={encryptedHostFlags:q};h=c;W=g.rn(zXK);B.u$("wn_s");return g.P(w,g.E4(R,h,W),4)}if(w.U!=2)return b=w.T,B.u$("wn_r"),!b||"error"in b&&b.error||(l=b,g.xC(z.K())&&l.trackingParams&&xT(l.trackingParams),g.XS(z,{raw_watch_next_response:b},!1)),g.yz(w,0);g.JK(w);g.dX(w)})}; ThK=function(B){B.u$("vir");B.u$("ps_s");ZU("vir",void 0,"video_to_ad");var z=XBH(B);z.then(function(){B.u$("virc");ZU("virc",void 0,"video_to_ad");B.u$("ps_r");ZU("ps_r",void 0,"video_to_ad")},function(){B.u$("virc"); ZU("virc",void 0,"video_to_ad")}); return z}; g.WB=function(B,z,T,R,h,W,b,l,w,q){w=w===void 0?new g.NT(B):w;q=q===void 0?!0:q;g.Cl.call(this);var c=this;this.dF=B;this.playerType=z;this.n4=T;this.k7=R;this.getVisibilityState=W;this.visibility=b;this.xi=l;this.videoData=w;this.Px=q;this.logger=new g.RH("VideoPlayer");this.kL=null;this.bN=new Y7;this.SG=null;this.i_=!0;this.GZ=this.loader=null;this.oT=[];this.qB=new zr;this.K2=this.FI=null;this.yZ=new zr;this.K9=null;this.b_=this.YS=!1;this.p9=NaN;this.sH=!1;this.playerState=new g.b5;this.s8=[]; this.Ap=new g.kb;this.xo=new zOH(this);this.mediaElement=null;this.D5=new g.Si(this.KME,15E3,this);this.Tf=this.fB=!1;this.hM=NaN;this.EO=!1;this.cn=0;this.Bh=!1;this.WY=NaN;this.un=new EC(new Map([["bufferhealth",function(){return gJz(c.zz)}], ["bandwidth",function(){return c.vj()}], ["networkactivity",function(){return c.dF.schedule.WD}], ["livelatency",function(){return c.isAtLiveHead()&&c.isPlaying()?RXX(c):NaN}], ["rawlivelatency",function(){return RXX(c)}]])); this.Iw=0;this.loop=!1;this.playbackRate=1;this.eO=0;this.zz=new A0z(this);this.T2=!1;this.S3=[];this.q8=this.e1=0;this.uq=this.YV=!1;this.jR=this.k$=0;this.j$=new g.Si(this.fR,0,this);this.KF=null;this.sKi=[this.Ap,this.j$,this.D5,this.un];this.E5=this.Jm=null;this.UJ=function(){var L=c.K4();L.provider.dF.L2||L.provider.iO.getVisibilityState()===3||(L.provider.dF.L2=!0);L.xr();if(L.U){var C=L.U;C.V&&C.T<0&&C.provider.iO.getVisibilityState()!==3&&P6B(C)}L.qoe&&(L=L.qoe,L.sE&&L.Y<0&&L.provider.dF.L2&& wsK(L),L.W&&Ig(L));c.loader&&R4(c);c.dF.Zy&&!c.videoData.backgroundable&&c.mediaElement&&!c.dE()&&(c.isBackground()&&c.mediaElement.Dq()?(c.OE("bgmobile",{suspend:1}),c.A6(!0,!0)):c.isBackground()||h0(c)&&c.OE("bgmobile",{resume:1}))}; this.Yi={SM:function(L){c.SM(L)}, UdK:function(L){c.kL=L}, RiI:function(){return c.F5}, nR:function(){return c.zT}, GG:function(){return c.GZ}, KKf:function(){return c.yh}, pkE:function(){return c.I0}, IGE:function(){}, K:function(){return c.dF}, Wu:function(){return c.mediaElement}, LkK:function(L){c.qY(L)}, ZLF:function(){return c.k7}}; this.logger.debug(function(){return"creating, type "+z}); this.s3=new W3b(this.dF);this.CY=new w9(this.dF,this.k7,this);this.GR=new g.DW(this,function(L,C){L!==g.YQ("endcr")||g.X(c.playerState,32)||c.E_();h(L,C,c.playerType)}); g.m(this,this.GR);g.m(this,this.zz);hXH(this,w);this.videoData.subscribe("dataupdated",this.puu,this);this.videoData.subscribe("dataloaded",this.e$,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.OE,this);this.videoData.subscribe("ctmpstr",this.cM,this);this.JL();S1Y(this.UJ);this.visibility.subscribe("visibilitystatechange",this.UJ);this.yh=new g.Si(this.zB,g.rk(this.dF.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.I0= new g.Si(this.zB,g.rk(this.dF.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.bl=new g.Rm(this.sIm,350,this);g.m(this,this.bl)}; hXH=function(B,z){if(B.playerType===2||B.dF.b4)z.n5=!0;var T=BrK(z.L2,z.g7,B.dF.W,B.dF.J);T&&(z.adFormat=T);B.playerType===2&&(z.o_=!0);if(B.isFullscreen()||B.dF.W)T=g.kK("yt-player-autonavstate"),z.autonavState=T||(B.dF.W?2:B.videoData.autonavState);z.endSeconds&&z.endSeconds>z.startSeconds&&e0(B,z.endSeconds)}; W2H=function(B){ORl(B.F5);g.c6(B.F5);if(B.zT){for(var z=B.zT,T=g.d(z.T.values()),R=T.next();!R.done;R=T.next())ORl(R.value);z.T.clear();g.c6(B.zT)}}; buz=function(B){var z=B.videoData;ThK(B).then(void 0,function(T){B.videoData!==z||z.xd()||(T=Ji(T),T.errorCode==="auth"&&B.videoData.errorDetail?B.jD(T.errorCode,2,unescape(B.videoData.errorReason),Q_(T.details),B.videoData.errorDetail,B.videoData.AQ||void 0):B.handleError(T))})}; wHz=function(B){if(!g.X(B.playerState,128))if(B.videoData.isLoaded(),B.logger.debug("finished loading playback data"),B.oT=g.Mg(B.videoData.UE),g.aY(B.videoData)){B.n4.tick("bpd_s");bC(B).then(function(){B.n4.tick("bpd_c");if(!B.xd()){B.YS&&(B.Oi(we(we(B.playerState,512),1)),h0(B));var R=B.videoData;R.endSeconds&&R.endSeconds>R.startSeconds&&e0(B,R.endSeconds);B.qB.finished=!0;YJ(B,"dataloaded");B.yZ.Qy()&&YkB(B);$mz(B.CY,B.K2)}}); B.D("html5_log_media_perf_info")&&B.OE("loudness",{v:B.videoData.pF.toFixed(3)},!0);var z,T=(z=B.mediaElement)==null?void 0:z.jk();if(T&&"disablePictureInPicture"in T&&B.dF.Fo)try{T.disablePictureInPicture=B.dF.Q_&&!B.videoData.backgroundable}catch(R){g.KV(R)}lNd(B)}else YJ(B,"dataloaded")}; bC=function(B){lC(B);B.K2=null;var z=YAz(B.dF,B.videoData,B.dE());B.FI=z;B.FI.then(function(T){qkX(B,T)},function(T){B.xd()||(T=Ji(T),B.visibility.isBackground()?(wp(B,"vp_none_avail"),B.FI=null,B.qB.reset()):(B.qB.finished=!0,B.jD(T.errorCode,T.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Q_(T.details))))}); return z}; qkX=function(B,z){if(!B.xd()&&!z.videoData.xd()){B.logger.debug("finished building playback data");B.K2=z;Myd(B.zz,B.K2);if(B.videoData.isLivePlayback){var T=iuP(B.xi.F4,B.videoData.videoId)||B.loader&&!isNaN(B.loader.WD);T=B.D("html5_onesie_live")&&T;XI(B)||B.videoData.O0>0&&!is(B.videoData)||T||B.seekTo(B.D4(),{Dx:"videoplayer_playbackData",seekSource:18})}if(B.videoData.Y.T){if(JNd(B.videoData)){B.D("html5_sabr_report_missing_url_as_error_terminal")?B.jD("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", Q_({missabrurl:1})):B.handleError(new y_("fmt.missing",{missabrurl:"1"},2));return}B.loader?g.KV(Error("Duplicated Loader")):(T=g.rk(B.dF.experiments,"html5_onesie_defer_content_loader_ms"))&&B.Xq()&&iuP(B.xi.F4,B.videoData.q0)?g.FN(function(){B.xd()||B.loader||c5b(B)},T):c5b(B)}else!B.videoData.Y.T&&Hx(B.videoData)&&B.Bt(new qY(B.videoData.videoId||"",4)); B.jG();Umd(z).then(function(){var R={};B.CU(R);B.dF.L4()&&B.D("html5_log_media_perf_info")&&B.OE("av1Info",R);R4(B)})}}; YkB=function(B){B.xd();B.logger.debug("try finish readying playback");if(B.yZ.finished)B.logger.debug("already finished readying");else if(B.qB.finished)if(g.X(B.playerState,128))B.logger.debug("cannot finish readying because of error");else if(B.oT.length)B.logger.debug(function(){return"cannot finish readying because of pending preroll: "+B.oT}); else if(B.GR.started||TpP(B.GR),B.SQ())B.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{B.loader&&(B.b_=DUK(B.loader.timing));B.yZ.finished||(B.yZ.finished=!0);var z=B.D("html5_onesie_live")&&B.loader&&!isNaN(B.loader.WD);!B.videoData.isLivePlayback||B.videoData.O0>0&&!is(B.videoData)||z||XI(B)||(B.logger.debug("seek to head for live"),B.seekTo(Infinity,{Dx:"videoplayer_readying",seekSource:18}),B.isBackground()&&(B.Tf=!0));n7B(B.K4());B.logger.debug("finished readying playback"); B.publish("playbackready");jD("pl_c",B.n4.timerName)||(B.n4.tick("pl_c"),ZU("pl_c",void 0,"video_to_ad"));jD("pbr",B.n4.timerName)||(B.n4.tick("pbr"),ZU("pbr",void 0,"video_to_ad"))}else B.logger.debug("playback data not loaded")}; e0=function(B,z){B.SG&&L2Y(B);B.SG=new g.Wj(z*1E3,0x7ffffffffffff);B.SG.namespace="endcr";B.addCueRange(B.SG)}; L2Y=function(B){B.removeCueRange(B.SG);B.SG=null}; CXK=function(B,z,T,R,h){var W=B.K4(h),b=B.videoData;b.U=T;var l=g.qz(B);T=new LoB(b,T,z,l?l.itag:"",R);B.dF.experiments.Cf("html5_refactor_sabr_video_format_selection_logging")?(T.videoId=h,B.E5=T):W.qoe&&EhY(W.qoe,T);h=B.CY;h.U=0;h.T=0;B.publish("internalvideoformatchange",b,z==="m")}; g.qz=function(B){var z=iC(B);return q$(z)||!B.K2?null:g.Cs(B.K2.T.videoInfos,function(T){return z.W(T)})}; iC=function(B){if(B.K2){var z=B.CY;var T=B.K2;B=B.Gi();var R=our(z);if(q$(R)){if(R=C6l(z,T).compose(dmK(z,T)).compose(a3H(z,T)).compose(JJz(z,T.videoData)).compose(pJP(z,T.videoData,T)).compose(guz(z,T)).compose(I3X(z,T)),q$(B)||z.D("html5_apply_pbr_cap_for_drm"))R=R.compose(GgY(z,T))}else z.D("html5_perf_cap_override_sticky")&&(R=R.compose(guz(z,T))),z.D("html5_ustreamer_cap_override_sticky")&&(R=R.compose(GgY(z,T)));R=R.compose(I3X(z,T));z=T.videoData.SE.compose(R).compose(T.videoData.Zq).compose(B)}else z= O2;return z}; HbB=function(B){var z=B.CY;B=B.videoData;var T=JJz(z,B);z.D("html5_disable_client_autonav_cap_for_onesie")||T.compose(pJP(z,B));return T}; R4=function(B){if(B.videoData.Y&&B.videoData.Y.T){var z=iC(B);B.loader&&yuK(B.loader,z)}}; r5d=function(B){var z;return!!(B.D("html5_native_audio_track_switching")&&g.Ax&&((z=B.videoData.U)==null?0:SR(z)))}; olH=function(B){if(!r5d(B))return!1;var z;B=(z=B.mediaElement)==null?void 0:z.audioTracks();return!!(B&&B.length>1)}; INB=function(B){var z=F2b(B);if(z)return B.videoData.getAvailableAudioTracks().find(function(T){return T.HB.getName()===z})}; F2b=function(B){var z;if(B=(z=B.mediaElement)==null?void 0:z.audioTracks())for(z=0;z0&&(z.yn=R.OI));z.Mg=R.Oa;z.FJ=Kj(T,{},R.Y||void 0,Wx(R));z.MG=hu(R)&&g.f0(T);bs(R)&&(z.fF=!0,T.D("html5_sabr_report_partial_segment_estimated_duration")&&(z.Er=!0),z.T=!0,z.Wk=T.D("html5_sabr_enable_live_clock_offset"), z.Ic=T.D("html5_disable_client_resume_policy_for_sabr"),z.xk=T.D("html5_trigger_loader_when_idle_network"),z.qs=T.D("html5_sabr_parse_live_metadata_playback_boundaries"),z.Zr=T.D("html5_enable_platform_backpressure_with_sabr"),z.qV=T.D("html5_consume_onesie_next_request_policy_for_sabr"),z.wJ=T.D("html5_sabr_report_next_ad_break_time"),z.Vj=T.D("html5_log_high_res_buffer_timeline")&&T.L4(),z.AK=T.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),z.Rn=T.D("html5_gapless_sabr_btl_last_slice")&& RY(R),z.vU=T.D("html5_reset_last_appended_slice_on_seek")&&RY(R),is(R)?(z.Ns=!0,z.Io=T.D("html5_estimate_partial_segment_duration"),z.Lt=T.D("html5_disable_variability_tracker_for_live"),z.sE=T.D("html5_sabr_use_accurate_slice_info_params"),T.D("html5_simplified_backup_timeout_sabr_live")&&(z.Q_=!0,z.L2=z.b4)):z.ra=T.D("html5_probe_request_on_sabr_request_progress"),z.SR=T.D("html5_serve_start_seconds_seek_for_post_live_sabr"),z.R7=T.D("html5_flush_index_on_updated_timestamp_offset"),z.N=bs(R),z.Nh= T.D("html5_ignore_partial_segment_from_live_readahead"),T.D("html5_include_partial_segment_for_jumbo_ll")&&cx(R)&&(z.Nh=!1),z.lW=T.D("html5_use_buffer_health_for_readahead"),z.FD=T.D("html5_use_non_active_broadcast_for_post_live"),z.XE=T.D("html5_use_centralized_player_time"),z.Up=T.D("html5_consume_onesie_sabr_seek"),z.UE=T.D("html5_enable_sabr_seek_loader_refactor"),z.nC=T.D("html5_update_segment_start_time_from_media_header"),R.enableServerStitchedDai&&(z.Y=!0,z.YX=T.D("html5_reset_server_stitch_state_for_non_sabr_seek"), z.fl=T.D("html5_remove_ssdai_append_pause")&&!R.Gz(),z.qr=T.D("html5_ssdai_log_ssevt_in_loader")),z.tU=T.L4()||R.Gz());z.V=z.T&&T.D("html5_sabr_live");z.t0=g.yNl(R);M$(T.V,VP.BITRATE)&&(z.kd=NaN);if(l=g.rk(T.experiments,"html5_request_size_max_kb"))z.cD=l*1024;T.V.Y?z.uh="; "+VP.EXPERIMENTAL.name+"=allowed":T.D("html5_enable_cobalt_tunnel_mode")&&(z.uh="; tunnelmode=true");l=R.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(z.RQ=!0,HX(z,l.playbackStartPolicy,2)); l=G9H(B);B.bN.removeAll();a:{T=B.xi.F4;if(R=B.videoData.videoId)if(h=T.T.get(R)){T.T.remove(R);T=h;break a}T=void 0}B.loader=new g.Z3(B,B.dF.schedule,z,B.videoData.T,B.videoData.Y,iC(B),l,B.videoData.enableServerStitchedDai,T,B.videoData.N);z=B.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&B.videoData.isLivePlayback&&B.Xq()?!0:B.YS&&g.JS(B.dF)&&B.videoData.isLivePlayback;B.loader.initialize(B.getCurrentTime(),iC(B),z);B.videoData.probeUrl&&(B.loader.sE=B.videoData.probeUrl);if(B.oT.length|| B.YS)B.videoData.cotn||cB(B,!1);Q4X(B.zz,B.loader);B.KF&&(enK(B.loader,new g.Er(B.KF)),B.OE("sdai",{sdl:1}));g.Np(B.videoData)&&(B=B.loader,B.policy.fY=B.policy.Q5)}; lC=function(B){B.loader&&(B.loader.dispose(),B.loader=null,Q4X(B.zz,null));B.g0()?dbB(B):B.wV()}; dbB=function(B){if(B.GZ)if(B.logger.debug("release media source"),B.yJ(),B.GZ.V)try{B.dF.L4()&&B.OE("rms",{l:"vprms",sr:B.g0(),rs:EI(B.GZ)});B.GZ.clear();var z;(z=B.mediaElement)!=null&&(z.U=B.GZ);B.GZ=null}catch(T){z=new g.Z_("Error while clearing Media Source in VideoPlayer: "+T.name+", "+T.message),z=Ji(z),B.handleError(z),B.wV()}else B.wV()}; A5d=function(B,z){z=z===void 0?!1:z;if(B.GZ)return B.GZ.Y;B.logger.debug("update media source");a:{z=z===void 0?!1:z;try{g.jH()&&B.videoData.WW()&&npr(B.mediaElement);var T=B.mediaElement.GG(B.RT(),B.UR())}catch(h){if(bpY(B.xo,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",h);B.jD("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}B.pG(T,!1,!1,z)}var R;return((R=B.GG())==null?void 0:R.Y)||null}; aNb=function(B,z){z=z===void 0?!1:z;if(B.loader){B.videoData.enableServerStitchedDai&&hN5(B.loader);var T=B.getCurrentTime()-B.p4();B.loader.seek(T,{bI:z}).d2(function(){})}else c5b(B)}; Mtz=function(B,z,T,R){T=T===void 0?!1:T;R=R===void 0?!1:R;if(B.GZ&&(!z||B.GZ===z)){B.logger.debug("media source opened");var h=B.getDuration();!h&&is(B.videoData)&&(h=25200);if(B.GZ.isView){var W=h;B.logger.debug(function(){return"Set media source duration to "+W+", video duration "+h}); W>B.GZ.getDuration()&&UbB(B,W)}else UbB(B,h);MvB(B.loader,B.GZ,T,R);B.publish("mediasourceattached")}}; UbB=function(B,z){if(B.GZ){B.GZ.YB(z);var T;(T=B.loader)!=null&&T.policy.XE&&(T.X=z)}}; Jud=function(B,z){CXK(B,z.reason,z.T.info,z.token,z.videoId)}; YJ=function(B,z){B.publish("internalvideodatachange",z===void 0?"dataupdated":z,B.videoData)}; VtB=function(B){for(var z=g.d("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),T=z.next();!T.done;T=z.next())B.Ap.Z(B.mediaElement,T.value,B.qY,B);B.dF.xB&&B.mediaElement.HU()&&(B.Ap.Z(B.mediaElement,"webkitplaybacktargetavailabilitychanged",B.fJI,B),B.Ap.Z(B.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",B.NFI,B))}; y55=function(B){g.dJ(B.p9);Q$r(B)||(B.p9=g.Ic(function(){return Q$r(B)},100))}; Q$r=function(B){var z=B.mediaElement;z&&B.fB&&!B.videoData.zZ&&!jD("vfp",B.n4.timerName)&&z.V_()>=2&&!z.isEnded()&&cn(z.Ao())&&B.n4.tick("vfp");return(z=B.mediaElement)&&!B.videoData.zZ&&z.getDuration()>0&&(z.isPaused()&&z.V_()>=2&&cn(z.Ao())&&(jD("pbp",B.n4.timerName)||B.n4.tick("pbp"),!B.videoData.g2||B.sH||z.isSeeking()||(B.sH=!0,B.publish("onPlaybackPauseAtStart"))),z=z.getCurrentTime(),k7(B.s3,z))?(B.EL(),!0):!1}; J5P=function(B){B.K4().MQ();if(qp(B.videoData)&&Date.now()>B.eO+6283){if(!(!B.isAtLiveHead()||B.videoData.T&&V$(B.videoData.T))){var z=B.K4();if(z.qoe){z=z.qoe;var T=z.provider.iO.EF(),R=g.sr(z.provider);z15(z,R,T);T=T.Y;isNaN(T)||g.r9(z,R,"e2el",[T.toFixed(3)])}}B.D("html5_alc_live_log_rawlat")?(z=B.videoData,z=g.y9(z.K())?!0:g.jj(z.K())?z.drmProduct==="6":!1):z=g.y9(B.dF);z&&B.OE("rawlat",{l:BB(B.un,"rawlivelatency").toFixed(3)});B.eO=Date.now()}B.videoData.U&&SR(B.videoData.U)&&(z=B.Nd())&&z.videoHeight!== B.q8&&(B.q8=z.videoHeight,CXK(B,"a",glK(B,B.videoData.sE)))}; glK=function(B,z){if(z.T.video.quality==="auto"&&SR(z.getInfo())&&B.videoData.t0)for(var T=g.d(B.videoData.t0),R=T.next();!R.done;R=T.next())if(R=R.value,R.getHeight()===B.q8&&R.T.video.quality!=="auto")return R.getInfo();return z.getInfo()}; RXX=function(B){if(!qp(B.videoData))return NaN;var z=0;B.loader&&B.videoData.T&&(z=is(B.videoData)?B.loader.wC.EJ()||0:B.videoData.T.XE);return(0,g.f)()/1E3-B.gt()-z}; $bb=function(B){B.mediaElement&&B.mediaElement.dE()&&(B.WY=(0,g.f)());B.dF.xj?g.FN(function(){pHX(B)},0):pHX(B)}; pHX=function(B){var z;if((z=B.GZ)==null||!z.u9()){if(B.mediaElement)try{B.K9=B.mediaElement.playVideo()}catch(R){wp(B,"err."+R)}if(B.K9){var T=B.K9;T.then(void 0,function(R){B.logger.debug(function(){return"playMediaElement failed: "+R}); if(!g.X(B.playerState,4)&&!g.X(B.playerState,256)&&B.K9===T)if(R&&R.name==="AbortError"&&R.message&&R.message.includes("load"))B.logger.debug(function(){return"ignore play media element failure: "+R.message}); else{var h="promise";R&&R.name&&(h+=";m."+R.name);wp(B,h);B.T2=!0;B.videoData.tj=!0}})}}}; wp=function(B,z){g.X(B.playerState,128)||(B.Oi(i5(B.playerState,1028,9)),B.OE("dompaused",{r:z}),B.publish("onAutoplayBlocked"))}; h0=function(B,z){z=z===void 0?!1:z;if(!B.mediaElement||!B.videoData.Y)return!1;var T=z;T=T===void 0?!1:T;var R=null;var h;if((h=B.videoData.Y)==null?0:h.T){R=A5d(B,T);var W;(W=B.loader)==null||W.resume()}else lC(B),B.videoData.sE&&(R=B.videoData.sE.i5());h=B.mediaElement.Dq();T=!1;h&&h.equals(R)||(PXH(B,R),T=!0);g.X(B.playerState,2)||(R=B.zz,z=z===void 0?!1:z,R.V||!(R.Y>0)||R.mediaElement&&R.mediaElement.getCurrentTime()>0||(z={Dx:"seektimeline_resumeTime",bI:z},R.videoData.zZ||(z.seekSource=15), R.seekTo(R.Y,z)));a:{z=T;if(bs(B.videoData)){if(!B.videoData.Cp())break a}else if(!g.IY(B.videoData))break a;if(B.mediaElement)if((R=B.videoData.V)&&B.mediaElement.HU()){h=B.mediaElement.jk();if(B.kL)if(h!==B.kL.element)Ln(B);else if(z&&R.flavor==="fairplay"&&!XN())Ln(B);else break a;if(B.D("html5_report_error_for_unsupported_tvos_widevine")&&XN()&&R.flavor==="widevine")B.jD("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{B.kL=new OGd(h,B.videoData,B.dF);B.kL.subscribe("licenseerror", B.bu,B);B.kL.subscribe("qualitychange",B.Mkm,B);B.kL.subscribe("heartbeatparams",B.Fk,B);B.kL.subscribe("keystatuseschange",B.SM,B);B.kL.subscribe("ctmp",B.OE,B);z=g.d(B.bN.keys);for(R=z.next();!R.done;R=z.next())R=B.bN.get(R.value),B.kL.CK(R);B.D("html5_eme_loader_sync")||B.bN.removeAll()}}else B.jD("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return T}; PXH=function(B,z){B.n4.tick("vta");ZU("vta",void 0,"video_to_ad");B.getCurrentTime()>0&&pBd(B.zz,B.getCurrentTime());B.mediaElement.activate(z);B.GZ&&hx(4);!B.videoData.zZ&&B.playerState.isOrWillBePlaying()&&B.D5.start();if(r5d(B)){var T;if(z=(T=B.mediaElement)==null?void 0:T.audioTracks())z.onchange=function(){B.publish("internalaudioformatchange",B.videoData,!0)}}}; Ln=function(B){B.kL&&(B.kL.dispose(),B.kL=null)}; xbz=function(B){var z=z===void 0?!1:z;B.logger.debug("reattachVideoSource");B.mediaElement&&(B.GZ?(Ln(B),B.wV(),A5d(B,z)):(B.videoData.sE&&B.videoData.sE.YH(),B.mediaElement.stopVideo()),B.playVideo())}; vlX=function(B,z){B.dF.D("html5_log_rebuffer_reason")&&(z={r:z,lact:JW()},B.mediaElement&&(z.bh=RD(B.mediaElement)),B.OE("bufreason",z))}; Dbz=function(B,z){if(B.dF.L4()&&B.mediaElement){var T=B.mediaElement.NS();T.omt=(B.mediaElement.getCurrentTime()+B.p4()).toFixed(3);T.ps=B.playerState.state.toString(16);T.rt=(Ps(B.K4())*1E3).toFixed();T.e=z;B.S3[B.e1++%5]=T}try{if(z==="timeupdate"||z==="progress")return}catch(R){}B.logger.debug(function(){return"video element event "+z})}; k9K=function(B){if(B.dF.L4()){B.S3.sort(function(R,h){return+R.rt-+h.rt}); for(var z=g.d(B.S3),T=z.next();!T.done;T=z.next())T=T.value,B.OE("vpe",Object.assign({t:T.rt},T));B.S3=[];B.e1=0}}; K2l=function(B){if(g.NR("cobalt")&&g.NR("nintendo switch")){var z=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;B.OE("nxdock",{d:z})}}; cB=function(B,z){var T;(T=B.loader)==null||eX(T,z)}; lNd=function(B){jv(B.videoData,"html5_set_debugging_opt_in")&&(B=g.fD(),g.OW(0,183)||(tQ(183,!0),B.save()))}; Wl5=function(B,z){B.xi.jw()||(B.OE("sgap",{f:z}),B.xi.clearQueue(!1,z==="pe"))}; XI=function(B){return B.D("html5_disable_video_player_initiated_seeks")&&bs(B.videoData)}; mbY=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);Ww(this.api,"isLifaAdPlaying",function(){return z.api.isLifaAdPlaying()}); this.events.Z(B,"serverstitchedvideochange",function(){var T;(T=z.api.getVideoData())!=null&&T.Gz()&&(z.api.isLifaAdPlaying()?(z.playbackRate=z.api.getPlaybackRate(),z.api.setPlaybackRate(1)):z.api.setPlaybackRate(z.playbackRate))}); this.playbackRate=1}; nlz=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);Ww(this.api,"seekToChapterWithAnimation",function(T){z.seekToChapterWithAnimation(T)}); Ww(this.api,"seekToTimeWithAnimation",function(T,R){z.seekToTimeWithAnimation(T,R)}); Ww(this.api,"renderChapterSeekingAnimation",function(T,R,h){z.api.renderChapterSeekingAnimation(T,R,h)}); Ww(this.api,"setMacroMarkers",function(T){z.setMacroMarkers(B,T)}); Ww(this.api,"changeMarkerVisibility",function(T,R,h){z.changeMarkerVisibility(T,R,h)}); Ww(this.api,"isSameMarkerTypeVisible",function(T){return z.isSameMarkerTypeVisible(T)})}; ujd=function(B,z,T){var R=B.api.getCurrentTime()*1E30&&h>0&&(T.width+=h,g.Ml(z.element,"width",T.width+"px")));B.size=T}}; g.J0=function(B,z){var T=B.T[B.T.length-1];T!==z&&(B.T.push(z),Lad(B,T,z))}; g.pn=function(B){if(!(B.T.length<=1)){var z=B.T.pop(),T=B.T[0];B.T=[T];Lad(B,z,T,!0)}}; Lad=function(B,z,T,R){CYK(B);z&&(z.unsubscribe("size-change",B.RZ,B),z.unsubscribe("back",B.UX,B));T.subscribe("size-change",B.RZ,B);T.subscribe("back",B.UX,B);if(B.vD){g.ww(T.element,R?"ytp-panel-animate-back":"ytp-panel-animate-forward");T.Vu(B.element);T.focus();B.element.scrollLeft=0;B.element.scrollTop=0;var h=B.size;cUP(B);g.vt(B.element,h);B.X=new g.Si(function(){rUd(B,z,T,R)},20,B); B.X.start()}else T.Vu(B.element),z&&z.detach()}; rUd=function(B,z,T,R){B.X.dispose();B.X=null;g.ww(B.element,"ytp-popup-animating");R?(g.ww(z.element,"ytp-panel-animate-forward"),g.iH(T.element,"ytp-panel-animate-back")):(g.ww(z.element,"ytp-panel-animate-back"),g.iH(T.element,"ytp-panel-animate-forward"));g.vt(B.element,B.size);B.L=new g.Si(function(){g.iH(B.element,"ytp-popup-animating");z.detach();g.ci(z.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);B.L.dispose();B.L=null},250,B); B.L.start()}; CYK=function(B){B.X&&g.zE(B.X);B.L&&g.zE(B.L)}; $J=function(B){g.gp.call(this,B,"ytp-shopping-product-menu");this.iz=new g.Qu(this.j);g.m(this,this.iz);this.hide();g.J0(this,this.iz);g.Pw(this.j,this.element,4)}; FaY=function(B,z,T){var R,h=z==null?void 0:(R=z.text)==null?void 0:R.simpleText;h&&(T=o_K(B,T,h,z==null?void 0:z.icon,z==null?void 0:z.secondaryIcon),z.navigationEndpoint&&T.listen("click",function(){B.j.uO("innertubeCommand",z.navigationEndpoint);B.hide()},B))}; ILB=function(B,z,T){var R,h=z==null?void 0:(R=z.text)==null?void 0:R.simpleText;h&&o_K(B,T,h,z==null?void 0:z.icon).listen("click",function(){var W;(z==null?void 0:(W=z.icon)==null?void 0:W.iconType)==="HIDE"?B.j.publish("featuredproductdismissed"):z.serviceEndpoint&&B.j.uO("innertubeCommand",z.serviceEndpoint);B.hide()},B)}; o_K=function(B,z,T,R,h){z=new g.N2(g.td({},[],!1,!!h),z,T);h&&z.updateValue("secondaryIcon",Gfl(h));z.setIcon(Gfl(R));g.m(B,z);B.iz.Fu(z,!0);return z}; Gfl=function(B){if(!B)return null;switch(B.iconType){case "ACCOUNT_CIRCLE":return{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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 Mdz();case "HIDE":return{B:"svg",C:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"g",S:[{B:"path",C:{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 $Z()}}; PB=function(B){Mz.call(this,B,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.O({B:"button",nf:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.m(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.O({B:"img",G:"ytp-suggested-action-badge-img",C:{src:"{{url}}"}}); this.thumbnailImage.hide();g.m(this,this.thumbnailImage);this.thumbnailIcon=new g.O({B:"div",G:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.m(this,this.thumbnailIcon);this.banner=new g.O({B:"a",G:"ytp-suggested-action-container",S:[this.thumbnailImage,this.thumbnailIcon,{B:"div",G:"ytp-suggested-action-details",S:[{B:"text",G:"ytp-suggested-action-title",Yd:"{{title}}"},{B:"text",G:"ytp-suggested-action-subtitle",Yd:"{{subtitle}}"},{B:"text",G:"ytp-suggested-action-metadata-text", Yd:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.m(this,this.banner);this.banner.Vu(this.Y.element);this.Z(this.j,"videodatachange",this.onVideoDataChange);this.Z(this.j,g.YQ("suggested_action_view_model"),this.yZE);this.Z(this.j,g.lu("suggested_action_view_model"),this.LME);this.Z(this.overflowButton.element,"click",this.IV);this.Z(B,"featuredproductdismissed",this.LT);this.j.createServerVe(this.banner.element,this.banner,!0)}; dVB=function(B){B.isInitialized&&(B.enabled=B.isVisible,B.UE=B.isVisible,UA(B),B.iF(),B.thumbnailImage.kW(B.isVisible),B.shouldHideDismissButton||B.dismissButton.kW(B.isVisible),B.shouldShowOverflowButton&&B.overflowButton.kW(B.isVisible))}; xJ=function(){PB.apply(this,arguments)}; AUr=function(B){ee.call(this,B);this.T=new xJ(this.api);g.m(this,this.T);g.Pw(this.api,this.T.element,4)}; vB=function(B){ee.call(this,B);var z=this;this.U="";this.T=!0;this.Y=this.api.D("html5_enable_audio_track_stickiness_phase_two");var T=new g.kb(B);g.m(this,T);T.Z(B,"internalaudioformatchange",function(R,h){aLB(z,R,h)}); T.Z(B,"videoplayerreset",function(){UVz(z)}); T.Z(B,"videodatachange",function(R,h){z.onVideoDataChange(R,h)})}; aLB=function(B,z,T){if(T){var R="";if(MoY(B,z)){R=z;B.Y||(B.U=z);if(T=B.api.getVideoData(void 0,!0))T.v7=z;B.api.K().aK=z}if(B.Y&&R&&VoB(B,R)){lRz(B.api,B.U||R);var h;IL(W3(B.api.K(),(h=B.api.getVideoData())==null?void 0:g.Kt(h)),function(W){Q8d(B,R,W)})}}}; UVz=function(B){if(B.U)yUP(B);else{var z;if(B.Y&&((z=X7())==null?0:z.size)){var T;IL(W3(B.api.K(),(T=B.api.getVideoData())==null?void 0:g.Kt(T)),function(R){if((R=g_K(R))&&VoB(B,R)){var h=B.api.getVideoData(void 0,!0);h&&(h.v7=R);B.api.K().aK=R}})}}}; yUP=function(B){var z=B.api.getVideoData(void 0,!0);z&&(z.v7=B.U)}; Q8d=function(B,z,T){g_K(T)!==z&&(JUY([{settingItemId:DA(T),settingOptionValue:{stringValue:z}}]),IL(B.Ju(),function(R){C0d(R,DA(T),{stringValue:z})}))}; prl=function(B,z){Gc(IL(IL(B.Ju(),function(T){return cjd(T,[DA(z)])}),function(T){if(T){T=g.d(T); for(var R=T.next();!R.done;R=T.next()){var h=R.value;R=h.key;h=h.value;R&&h&&(JUY([{settingItemId:R,settingOptionValue:h}]),UVz(B))}}}),function(){B.T=!0})}; MoY=function(B,z){B=B.api.getAvailableAudioTracks();B=g.d(B);for(var T=B.next();!T.done;T=B.next())if(T=T.value,T.getLanguageInfo().getId()===z)return T;return null}; g_K=function(B){B=DA(B);var z=X7();B=z?z.get(B):void 0;return B&&B.stringValue?B.stringValue:""}; DA=function(B){var z=(484).toString();B&&(z=(483).toString());return z}; VoB=function(B,z){var T;return z.split(".")[0]!==""&&((T=B.api.getVideoData())==null?void 0:!us(T))}; JUY=function(B){var z=X7();z||(z=new Map);B=g.d(B);for(var T=B.next();!T.done;T=B.next())T=T.value,z.set(T.settingItemId,T.settingOptionValue);z=JSON.stringify(Object.fromEntries(z));g.D_("yt-player-user-settings",z,2592E3)}; g.kJ=function(B,z,T,R,h,W,b){g.N2.call(this,g.td({"aria-haspopup":"true"}),z,B);this.WB=R;this.J=!1;this.Y=null;this.options={};this.U=new g.Qu(T,void 0,B,h,W,b);g.m(this,this.U);this.listen("keydown",this.LI);this.listen("click",this.open)}; $VY=function(B){if(B.Y){var z=B.options[B.Y];z.element.getAttribute("aria-checked");z.element.setAttribute("aria-checked","false");B.Y=null}}; PYl=function(B,z){g.kJ.call(this,"Sleep timer",g.wQ.SLEEP_TIMER,B,z);this.j=B;this.N={};this.X=this.o4("Off");this.L=this.T="";B.D("web_settings_menu_icons")&&(z=B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(z)); this.W=new g.O({B:"div",nf:["ytp-menuitem-label-wrapper"],S:[{B:"div",Yd:"End of video"},{B:"div",nf:["ytp-menuitem-sublabel"],Yd:"{{content}}"}]});g.m(this,this.W);this.listen("click",this.onClick);this.Z(B,"videodatachange",this.onVideoDataChange);this.Z(B,"presentingplayerstatechange",this.rF);this.Z(B,"settingsMenuVisibilityChanged",this.l4u);B.createClientVe(this.element,this,218889);this.rF();this.j.uO("onSleepTimerFeatureAvailable")}; xVK=function(B){var z="Off 10 15 20 30 45 60".split(" "),T;((T=B.j.getVideoData())==null?0:T.isLivePlayback)||z.push("End of video");T=B.j.getPlaylist();var R;T&&((R=T.listId)==null?void 0:R.type)!=="RD"&&z.push("End of playlist");B.n1(g.s9(z,B.o4));B.N=g.mK(z,B.o4,B);z=B.o4("End of video");B.options[z]&&g.OL(B.options[z],B.W)}; v_z=function(B,z){var T=B.N[z],R=T==="End of video"||T==="End of playlist";T==="Off"&&(B.T="");B.j.getPlayerState()!==0&&B.j.getPlayerState()!==5||!R?(B.X=z,g.kJ.prototype.BH.call(B,z),B.hk(z),B.j.uO("onSleepTimerSettingsChanged",T)):B.j.uO("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Kn=function(B){ee.call(this,B);var z=this;B.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new PYl(z.api,z.api.m0()),g.m(z,z.menuItem))}); B.addEventListener("openSettingsMenuItem",function(T){if(T==="menu_item_sleep_timer"){if(!z.menuItem){var R;(R=z.api.m0())==null||R.Hc()}z.menuItem.open()}}); Ww(B,"resetSleepTimerMenuSettings",function(){z.resetSleepTimerMenuSettings()}); Ww(B,"setSleepTimerTimeLeft",function(T){z.setSleepTimerTimeLeft(T)}); Ww(B,"setVideoTimeLeft",function(T){z.setVideoTimeLeft(T)})}; DVB=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"onSnackbarMessage",function(T){switch(T){case 1:T=z.api.getPlayerStateObject(),T.isBuffering()&&g.X(T,8)&&g.X(T,16)&&z.api.uO("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.nn=function(B,z,T,R,h){z=z===void 0?!1:z;R=R===void 0?!1:R;h=h===void 0?!1:h;g.Cl.call(this);this.N=h;this.L=!1;this.W=new JQ(this);this.V=this.X=null;this.Y=this.U=!1;g.m(this,this.W);this.target=B;this.T=z;this.J=T||B;this.L=R;z&&(g.X8&&this.target.setAttribute("draggable","true"),h||(this.target.style.touchAction="none"));m3(this)}; uC=function(B){g.$K(B.W,!B.T)}; m3=function(B){B.V=null;B.X=null;B.Z(HB("over"),B.LK);B.Z("touchstart",B.hB);B.T&&B.Z(HB("down"),B.ZfE)}; kfH=function(B,z){for(var T=0;Th.start&&T>=5;A+=V}C=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else C="";b={video_id_and_cpn:String(z.videoId)+" / "+C,codecs:"",dims_and_frames:"",bandwidth_kbps:b.toFixed(0)+" Kbps",buffer_health_seconds:w.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:T,extra_debug_info:"",bandwidth_style:L,network_activity_style:L,network_activity_bytes:l.toFixed(0)+" KB",shader_info:c,shader_info_style:c?"":"display:none",playback_categories:""};l=R.clientWidth+"x"+R.clientHeight+(h>1?"*"+h.toFixed(2):"");w="-";W.totalVideoFrames&&(w=(W.droppedVideoFrames||0)+" dropped of "+W.totalVideoFrames);b.dims_and_frames=l+" / "+w;B=B.getVolume();l=QoY(z);var x;if((x=z.W)==null?0:x.audio.U)x= "VB";else{var v;x=((v=z.W)==null?0:v.audio.T)?"DRC":Math.round(B*l)+"%"}v=Math.round(B)+"% / "+x;x=z.pF.toFixed(1);isFinite(Number(x))&&(v+=" (content loudness "+x+"dB)");b.volume=v;b.resolution=R.videoWidth+"x"+R.videoHeight;if(R=z.U){if(v=R.video)x=v.fps,x>1&&(b.resolution+="@"+x),(x=W.tG)&&x.video&&(b.resolution+=" / "+x.video.width+"x"+x.video.height,x.video.fps>1&&(b.resolution+="@"+x.video.fps)),b.codecs=fLY(R),!z.W||R.audio&&R.video?R.uQ&&(b.codecs+=" / "+R.uQ+"A"):b.codecs+=" / "+fLY(z.W), v.T||v.primaries?(x=v.T||"unknown",x==="smpte2084"?x+=" (PQ)":x==="arib-std-b67"&&(x+=" (HLG)"),b.color=x+" / "+(v.primaries||"unknown"),b.color_style=""):b.color_style="display:none";if(R.debugInfo)for(b.fmt_debug_info="",R=g.d(R.debugInfo),v=R.next();!v.done;v=R.next())v=v.value,b.fmt_debug_info+=v.label+":"+v.text+" ";b.fmt_debug_info_style=b.fmt_debug_info&&b.fmt_debug_info.length>0?"":"display:none"}R=z.isLivePlayback;v=z.qh;b.live_mode_style=R||v?"":"display:none";b.live_latency_style=R?"": "display:none";if(v)b.live_mode="Post-Live"+(is(z)?" Manifestless":"");else if(R){v=W.aH;b.live_latency_secs=v.toFixed(2)+"s";R=is(z)?"Manifestless, ":"";z.TZ&&(R+="Windowed, ");x="Uncertain";if(v>=0&&v<120)if(z.latencyClass&&z.latencyClass!=="UNKNOWN")switch(z.latencyClass){case "NORMAL":x="Optimized for Normal Latency";break;case "LOW":x="Optimized for Low Latency";break;case "ULTRALOW":x="Optimized for Ultra Low Latency";break;default:x="Unknown Latency Setting"}else x=z.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";R+=x;(v=W.fV)&&(R+=", seq "+v.sequence);b.live_mode=R}!W.isGapless||RY(z)&&W.jw||(b.playback_categories+="Gapless ");b.playback_categories_style=b.playback_categories?"":"display:none";b.bandwidth_samples=W.gB;b.network_activity_samples=W.mx;b.live_latency_samples=W.Tv;b.buffer_health_samples=W.Yt;W=g.Np(z);if(z.cotn||W)b.cotn_and_local_media=(z.cotn?z.cotn:"null")+" / "+W;b.cotn_and_local_media_style=b.cotn_and_local_media?"":"display:none"; jv(z,"web_player_release_debug")?(b.release_name=Y[35],b.release_style=""):b.release_style="display:none";b.debug_info&&r.length>0&&b.debug_info.length+r.length<=60?b.debug_info+=" "+r:b.extra_debug_info=r;b.extra_debug_info_style=b.extra_debug_info&&b.extra_debug_info.length>0?"":"display:none";return b}; fLY=function(B){var z=/codecs="([^"]*)"/.exec(B.mimeType);return z&&z[1]?z[1]+" ("+B.itag+")":B.itag}; ZA=function(B,z,T,R,h){g.O.call(this,{B:"div",G:"ytp-horizonchart"});this.L=z;this.sampleCount=T;this.W=R;this.X=h;this.index=0;this.heightPx=-1;this.Y=this.U=null;this.T=Math.round(B/T);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.L+"em"}; ey=function(B,z){if(B.heightPx===-1){var T=null;try{T=g.ES("CANVAS"),B.U=T.getContext("2d")}catch(l){}if(B.U){var R=B.T*B.sampleCount;B.Y=T;B.Y.width=R;B.Y.style.width=R+"px";B.element.appendChild(B.Y)}else for(B.sampleCount=Math.floor(B.sampleCount/4),B.T*=4,T=0;T1?2:1,B.Y.height=B.heightPx*T,B.Y.style.height= B.heightPx+"px",B.U.scale(1,T)));z=g.d(z);for(R=z.next();!R.done;R=z.next()){T=B;var h=B.index,W=R.value;for(R=0;R+20&&g.zJ(z.Y.element);R.classList.add("ytp-timely-actions-overlay");z.Y.element.appendChild(R)}); g.m(this,this.Y);g.Pw(this.api,this.Y.element,4)}; WUb=function(B){B.timelyActions&&(B.W=B.timelyActions.reduce(function(z,T){if(T.cueRangeId===void 0)return z;z[T.cueRangeId]=0;return z},{}))}; z9=function(B,z){if(B.timelyActions){B=g.d(B.timelyActions);for(var T=B.next();!T.done;T=B.next())if(T=T.value,T.cueRangeId===z)return T}}; bxB=function(B,z){if((B=z9(B,z))&&B.onCueRangeExit)return Hc(B.onCueRangeExit)}; BH=function(B){if(B.T!==void 0){var z=(z=z9(B,B.T))&&z.onCueRangeEnter?Hc(z.onCueRangeEnter):void 0;var T=z9(B,B.T);a:if(T&&T.additionalTrigger){var R=g.d(T.additionalTrigger);for(var h=R.next();!h.done;h=R.next())if(h=h.value,h.type){var W=void 0,b=void 0;if((W=B.UE[h.type])==null?0:W((b=h.args)!=null?b:{})){R=!0;break a}}R=!1}else R=!0;z&&R&&(B.api.uO("innertubeCommand",z),B.setTimeout(T),B.W[B.T]!==void 0&&B.W[B.T]++,B.J=!0)}}; zPl=function(B,z){return B.U===void 0?!1:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===5E3?B.U===72:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===1E4?B.U===74:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===5E3?B.U===71:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===1E4?B.U===73:!1}; TCX=function(B){if(B=B.getWatchNextResponse()){var z,T;B=(z=B.playerOverlays)==null?void 0:(T=z.playerOverlayRenderer)==null?void 0:T.timelyActionsOverlayViewModel;z=g.u(B,Ycz);if(z!=null&&z.timelyActions)return z==null?void 0:z.timelyActions.map(function(R){return g.u(R,lXX)}).filter(function(R){return!!R})}}; wdz=function(B){ee.call(this,B);var z=this;YN(this.api,"getPlaybackRate",function(){return z.api.getPlaybackRate()}); YN(this.api,"setPlaybackRate",function(T){typeof T==="number"&&z.api.setPlaybackRate(T)})}; T9=function(B,z,T,R){RM.call(this,"VOICE_BOOST",g.wQ.f$);this.T=!1;this.j=B;this.WB=B.m0();this.W=z;this.Y=T;this.hasVoiceBoostAudioTrack=R;this.Z(B,"videodatachange",this.U);this.setIcon($wz());this.subscribe("select",this.X,this);this.U()}; R$=function(B){ee.call(this,B);var z=this;this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"settingsMenuInitialized",function(){qcl(z)}); Ww(this.api,"getVoiceBoostUserPreference",function(){return z.getVoiceBoostUserPreference()}); Ww(this.api,"setVoiceBoostUserPreference",function(R){z.setVoiceBoostUserPreference(R)}); Ww(this.api,"hasVoiceBoostAudioTrack",function(){return z.hasVoiceBoostAudioTrack()}); var T;this.T=(T=sVb())!=null?T:0;this.updateEnvironmentData()}; qcl=function(B){B.menuItem||(B.menuItem=new T9(B.api,function(z){B.setVoiceBoostUserPreference(z)},function(){return B.getVoiceBoostUserPreference()},function(){return B.hasVoiceBoostAudioTrack()}),g.m(B,B.menuItem))}; ixX=function(B){B=B.Pu();if(!B)return!1;B=g.bA(B).exp||"";return B.includes("xpv")||B.includes("xpe")}; c3K=function(B){B=g.d(g.h5(B,!0));for(var z=B.next();!z.done;z=B.next())if(ixX(z.value))return!0;return!1}; LUX=function(B,z){B=g.d(g.h5(B,!0));for(var T=B.next();!T.done;T=B.next())if(T=T.value,ixX(T)){var R={potc:"1",pot:z};T.url&&(T.url=Yv(T.url,R))}}; CRK=function(B){return g.D(function(z){if(z.U==1)return g.AK(z,2),g.P(z,B,4);if(z.U!=2)return g.yz(z,0);g.JK(z);g.dX(z)})}; bX=function(B){ee.call(this,B);var z=this;this.useLivingRoomPoToken=!1;this.V=new g.CP;this.T=!1;this.n4=null;this.J=!1;this.W=null;this.X=!1;var T=B.K().getWebPlayerContextConfig();this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"spsumpreject",function(R,h,W){z.X=h;R&&z.J&&!z.W&&(z.D("html5_generate_content_po_token")&&W?z.jy(W):z.D("html5_generate_session_po_token")&&r3b(z));z.W||z.api.OE("stp",{s:+z.J,b:+z.X})}); this.events.Z(B,"poTokenVideoBindingChange",function(R){z.jy(R)}); this.useLivingRoomPoToken=!(T==null||!T.useLivingRoomPoToken);B.addEventListener("csiinitialized",function(){z.n4=B.Op();var R=(z.D("html5_generate_session_po_token")||z.D("html5_generate_content_po_token"))&&!z.useLivingRoomPoToken;try{if(z.D("html5_use_shared_owl_instance"))oEK(z);else if(R){z.n4.QQ("pot_isc");var h=g.rk(z.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");h?(z.Y=u8(),g.FN(function(){WH(z)},h)):z.D("html5_webpo_idle_priority_job")?(z.Y=u8(),g.B4(g.To(),function(){WH(z)})): WH(z)}}catch(W){W instanceof Error&&g.KV(W)}}); B.addEventListener("trackListLoaded",this.pX.bind(this));B.De(this)}; FUz=function(B){var z=zk(B.experiments,"html5_web_po_request_key");return z?z:g.JS(B)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; IXz=function(B){var z=new WWX,T={},R=(T["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",T);return new dU(z,B,function(){return R})}; G_X=function(B){return new AG(B)}; Yl=function(B,z){B.D("html5_webpo_bge_ctmp")&&B.api.OE(z,{hwpo:!!B.U,hwpor:B.T})}; oEK=function(B){var z,T;g.D(function(R){if(R.U==1)return Yl(B,"swpo_i"),B.Y=u8(),lX(B),g.P(R,bj(),2);if(R.U!=3)return z=R.T,Yl(B,"swpo_co"),g.P(R,Did(z),3);T=R.T;B.D("html5_web_po_token_disable_caching")||T.Q0(150);B.U=T;Yl(B,"swpo_cc");CRK(T.uV()).then(function(){B.T=!0;B.V.resolve();Yl(B,"swpo_re")}); g.FN(function(){WH(B);Yl(B,"swpo_si")},0); g.dX(R)})}; A3z=function(B){var z=B.api.K(),T=IXz(FUz(z)),R=T.ST.bind(T);T.ST=function(l){var w;return g.D(function(q){if(q.U==1)return g.P(q,R(l),2);w=q.T;B.api.OE("itr",{});return q.return(w)})}; try{var h=G_X({yv:T,KD:{maxAttempts:5},NP:{aQ:"CLEn",disable:z.experiments.Cf("html5_web_po_disable_remote_logging")||dfr.includes(g.GK(z.yW)||""),Sr:Hkz(z.experiments),tIf:B.D("wpo_dis_lfdms")?0:1E3},ImG:g.KV});var W=new mg({fQ:h,yv:T,onError:g.KV});CRK(W.uV()).then(function(){B.T=!0;B.V.resolve()}); B.D("html5_web_po_token_disable_caching")||W.Q0(150);g.m(B,h);g.m(B,W);B.U=W}catch(l){g.KV(l);var b;(b=h)==null||b.dispose()}}; WH=function(B){var z=B.api.K();B.n4.QQ("pot_ist");B.U||A3z(B);B.D("html5_bandaid_attach_content_po_token")||(B.D("html5_generate_session_po_token")&&(lX(B),r3b(B)),z=g.rk(z.experiments,"html5_session_po_token_interval_time_ms")||0,z>0&&(B.L=g.Ic(function(){lX(B)},z)),B.J=!0)}; lX=function(B){var z,T,R,h;g.D(function(W){if(!B.D("html5_generate_session_po_token")||B.useLivingRoomPoToken)return W.return();z=B.api.K();T=g.ek("EOM_VISITOR_DATA")||g.ek("VISITOR_DATA");R=z.TG?z.datasyncId:T;h=zk(z.experiments,"html5_mock_content_binding_for_session_token")||z.livingRoomPoTokenId||R;z.Qn=wh(B,h);g.dX(W)})}; wh=function(B,z){if(!B.U){if(B.Y)try{return B.Y(z)}catch(W){g.KV(W)}return""}try{B.n4.QQ(B.T?"pot_cms":"pot_csms");var T={Gv:!0,tN:!0,sG:z};B.D("html5_web_po_token_disable_caching")||(T.lL={Hn:z,Ej:!0,j9:!0});var R=B.U.ow(T);B.n4.QQ(B.T?"pot_cmf":"pot_csmf");if(B.T){var h;(h=B.W)==null||h.resolve();B.W=null;B.X&&(B.X=!1,B.api.app.Ji().PS(!1))}return R}catch(W){return g.KV(W),""}}; r3b=function(B){B.U&&(B.W=new Bq,B.V.promise.then(function(){B.n4.QQ("pot_if");lX(B)}))}; iX=function(B){ee.call(this,B);var z=this,T=new g.kb(B);g.m(this,T);T.Z(B,"fullscreentoggled",function(){qb(z)}); T.Z(B,"sizestylechange",function(){qb(z)}); Ww(this.api,"setFullscreenQuickActions",function(R){z.setFullscreenQuickActions(R)}); Ww(this.api,"setPlayerOverlayVideoDetailsRenderer",function(R){z.setPlayerOverlayVideoDetailsRenderer(R)}); this.U=this.api.D("web_player_imax_theater_mode")}; qb=function(B){var z=B.api.isFullscreen()||B.U&&B.api.Z_();B.T&&g.KF(B.T,z);B.playerOverlayVideoDetailsRenderer&&g.KF(B.playerOverlayVideoDetailsRenderer,z)}; aXz=function(B){ee.call(this,B);var z=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.kb(B);g.m(this,this.events);this.events.Z(B,"heartbeatRequest",function(T){if(z.freePreviewUsageDetails.length||z.freePreviewWatchedDuration!==null)T.heartbeatRequestParams||(T.heartbeatRequestParams={}),T.heartbeatRequestParams.unpluggedParams||(T.heartbeatRequestParams.unpluggedParams={}),z.freePreviewUsageDetails.length>0?T.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= z.freePreviewUsageDetails:T.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+z.freePreviewWatchedDuration}}); Ww(B,"setFreePreviewWatchedDuration",function(T){z.freePreviewWatchedDuration=T}); Ww(B,"setFreePreviewUsageDetails",function(T){z.freePreviewUsageDetails=T})}; cH=function(B){g.K.call(this);this.features=[];var z=this.T,T=new Ut(B),R=new sL(B),h=new Fe(B),W=new bX(B);var b=g.y9(B.K())?void 0:new oM(B);var l=new o4(B),w=new j8r(B),q=new wdz(B),c=new aM(B);var L=g.y9(B.K())?new aXz(B):void 0;var C=B.D("html5_enable_ssap")?new HoB(B):void 0;var r;var F=(r=B.K().getWebPlayerContextConfig())!=null&&r.cinematicSettingsAvailable?new cO(B):void 0;r=new Ah(B);var A=B.D("enable_courses_player_overlay_purchase")?new u75(B):void 0;var a=g.Zf(B.K())?new kcK(B):void 0; var V=new FC(B);var M=B.K().W?new pMd(B):void 0;var x=g.yW(B.K())?new JTd(B):void 0;var v=B.D("web_player_move_autonav_toggle")&&B.K().Nh?new dhb(B):void 0;var n=g.Zf(B.K())?new nlz(B):void 0;var Z=B.D("web_enable_speedmaster")&&g.Zf(B.K())?new Nz(B):void 0;var N=B.K().a$?void 0:new BCz(B);var TP=B.D("report_pml_debug_signal")?new oTz(B):void 0;var hK=new Sk5(B),zP=new A0(B);var ld=g.f0(B.K())?new wrB(B):void 0;var t=navigator.mediaSession&&window.MediaMetadata&&B.K().ag?new Cn(B):void 0;var UH=B.D("html5_enable_drc")&& !B.K().X?new rQ(B):void 0;var Qz=new Se(B);var vb=g.Zf(B.K())?new AUr(B):void 0;var AI=B.D("html5_enable_d6de4")?new I4(B):void 0;var lW=g.Zf(B.K())&&B.D("web_sleep_timer")?new Kn(B):void 0;var gX=g.yW(B.K())?new Pyz(B):void 0;var Vz=new vB(B),hI=new QLK(B),U=new mbY(B);var Yr=B.D("enable_sabr_snackbar_message")?new DVB(B):void 0;var tI=B.D("web_enable_timely_actions")?new hPz(B):void 0;var Av=new Lf(B);var gF=g.Zf(B.K())?new iX(B):void 0;B=B.D("html5_enable_voice_boost")?new R$(B):void 0;z.call(this, T,R,h,W,b,l,w,q,c,L,C,F,r,A,a,V,M,x,v,n,Z,N,TP,hK,zP,ld,void 0,t,UH,Qz,void 0,vb,AI,lW,gX,void 0,Vz,hI,U,void 0,Yr,tI,Av,gF,B,void 0)}; Ufb=function(){this.U=this.T=NaN}; M$b=function(B,z){this.dF=B;this.timerName="";this.Y=!1;this.U=NaN;this.W=new Ufb;this.T=z||null;this.Y=!1}; V$z=function(B,z,T){var R=g.xC(z.bO)&&!z.bO.X;if(z.bO.YY&&(Jq(z.bO)||z.bO.XE==="shortspage"||B3(z.bO)||R)&&!B.Y){B.Y=!0;B.X=z.clientPlaybackNonce;g.ek("TIMING_ACTION")||jk("TIMING_ACTION",B.dF.csiPageType);B.dF.csiServiceName&&jk("CSI_SERVICE_NAME",B.dF.csiServiceName);if(B.T){R=B.T.Op();for(var h=g.d(Object.keys(R)),W=h.next();!W.done;W=h.next())W=W.value,O4(W,R[W],B.timerName);R=g.BP(NiB)(B.T.z3);g.NK(R,B.timerName);R=B.T;R.U={};R.z3={}}g.NK({playerInfo:{visibilityState:g.BP(OzK)()},playerType:"LATENCY_PLAYER_HTML5"}, B.timerName);B.V!==z.clientPlaybackNonce||Number.isNaN(B.U)||(jD("_start",B.timerName)?T=g.BP(m5)("_start",B.timerName)+B.U:g.KV(new g.Z_("attempted to log gapless pbs before CSI timeline started",{cpn:z.clientPlaybackNonce})));T&&!jD("pbs",B.timerName)&&Lu(B,T)}}; Lu=function(B,z,T){O4("pbs",z!=null?z:(0,g.f)(),T!=null?T:B.timerName)}; Cu=function(B){zEP();B6K();B.timerName=""}; QqY=function(B){if(B.T){var z=B.T;z.U={};z.z3={}}B.Y=!1;B.V=void 0;B.U=NaN}; y3X=function(B,z){g.Cl.call(this);this.bO=B;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.J={};this.U=0;if(B=z.session_data)this.sessionData=TF(B,"&");this.index=Math.max(0,Number(z.index)||0);this.loop=!!z.loop;this.startSeconds=Number(z.startSeconds)||0;this.title=z.playlist_title||"";this.description=z.playlist_description||"";this.author= z.author||z.playlist_author||"";z.video_id&&(this.items[this.index]=z);if(B=z.api)typeof B==="string"&&B.length===16?z.list="PL"+B:z.playlist=B;if(B=z.list)switch(z.listType){case "user_uploads":this.listId=new aQ("UU","PLAYER_"+B);break;default:var T=z.playlist_length;T&&(this.length=Number(T)||0);this.listId=g.U2(B);if(B=z.video)this.items=B.slice(0),this.loaded=!0}else if(z.playlist){B=z.playlist.toString().split(",");this.index>0&&(this.items=[]);B=g.d(B);for(T=B.next();!T.done;T=B.next())(T= T.value)&&this.items.push({video_id:T});this.length=this.items.length;if(B=z.video)this.items=B.slice(0),this.loaded=!0}this.setShuffle(!!z.shuffle);if(B=z.suggestedQuality)this.quality=B;this.J=FS(z,"playlist_");this.Y=(z=z.thumbnail_ids)?z.split(","):[]}; gEH=function(B){return!!(B.playlist||B.list||B.api)}; J3K=function(B){var z=B.index+1;return z>=B.length?0:z}; pdH=function(B){var z=B.index-1;return z<0?B.length-1:z}; g.rh=function(B,z,T,R){z=z!==void 0?z:B.index;z=B.items&&z in B.items?B.items[B.order[z]]:null;var h=null;z&&(T&&(z.autoplay="1"),R&&(z.autonav="1"),h=new g.NT(B.bO,z),g.m(B,h),h.nt=!0,h.startSeconds=B.startSeconds||h.clipStart||0,B.listId&&(h.playlistId=B.listId.toString()));return h}; $fK=function(B,z){B.index=g.yQ(z,0,B.length-1);B.startSeconds=0}; PRP=function(B,z){if(z.video&&z.video.length){B.title=z.title||"";B.description=z.description;B.views=z.views;B.likes=z.likes;B.dislikes=z.dislikes;B.author=z.author||"";var T=z.loop;T&&(B.loop=T);T=g.rh(B);B.items=[];for(var R=g.d(z.video),h=R.next();!h.done;h=R.next())if(h=h.value)h.video_id=h.encrypted_id,B.items.push(h);B.length=B.items.length;(z=z.index)?B.index=z:B.findIndex(T);B.setShuffle(!1);B.loaded=!0;B.U++;B.T&&B.T()}}; DfB=function(B,z){var T,R,h,W,b,l,w;return g.D(function(q){if(q.U==1){T=g.wI();var c=B.K(),L={context:g.Sv(B),playbackContext:{contentPlaybackContext:{ancestorOrigins:c.ancestorOrigins}}},C=c.getWebPlayerContextConfig();if(C==null?0:C.encryptedHostFlags)L.playbackContext.contentPlaybackContext.encryptedHostFlags=C.encryptedHostFlags;if(C==null?0:C.hideInfo)L.playerParams={showinfo:!1};c=c.embedConfig;C=z.docid||z.video_id||z.videoId||z.id;if(!C){C=z.raw_embedded_player_response;if(!C){var r=z.embedded_player_response; r&&(C=JSON.parse(r))}if(C){var F,A,a,V,M,x;C=((x=g.u((F=C)==null?void 0:(A=F.embedPreview)==null?void 0:(a=A.thumbnailPreviewRenderer)==null?void 0:(V=a.playButton)==null?void 0:(M=V.buttonRenderer)==null?void 0:M.navigationEndpoint,g.E2))==null?void 0:x.videoId)||null}else C=null}F=(F=C)?F:void 0;A=B.playlistId?B.playlistId:z.list;a=z.listType;if(A){var v;a==="user_uploads"?v={username:A}:v={playlistId:A};xfB(c,F,z,v);L.playlistRequest=v}else z.playlist?(v={templistVideoIds:z.playlist.toString().split(",")}, xfB(c,F,z,v),L.playlistRequest=v):F&&(v={videoId:F},c&&(v.serializedThirdPartyEmbedConfig=c),L.singleVideoRequest=v);R=L;h=g.rn(vEK);g.AK(q,2);return g.P(q,g.E4(T,R,h),4)}if(q.U!=2)return W=q.T,b=B.K(),z.raw_embedded_player_response=W,b.RK=i9(z,g.yW(b)),b.Y=b.RK==="EMBEDDED_PLAYER_MODE_PFL",W&&(l=W,l.trackingParams&&xT(l.trackingParams)),q.return(new g.NT(b,z));w=g.JK(q);w instanceof Error||(w=Error("b259802748"));g.kV(w);return q.return(B)})}; xfB=function(B,z,T,R){T.index&&(R.playlistIndex=String(Number(T.index)+1));R.videoId=z?z:"";B&&(R.serializedThirdPartyEmbedConfig=B)}; g.Fj=function(B,z){o$.get(B);o$.set(B,z)}; g.I$=function(B){g.Cl.call(this);this.loaded=!1;this.player=B}; k_K=function(){this.U=[];this.T=[]}; g.h5=function(B,z){return z?B.T.concat(B.U):B.T}; g.G9=function(B,z){switch(z.kind){case "asr":KUz(z,B.U);break;default:KUz(z,B.T)}}; KUz=function(B,z){g.Cs(z,function(T){return B.equals(T)})||z.push(B)}; g.dh=function(B){g.K.call(this);this.Lf=B;this.U=new k_K;this.W=null;this.V=[];this.J=[]}; g.A5=function(B,z,T){g.dh.call(this,B);this.videoData=z;this.audioTrack=T;this.T=null;this.Y=!1;this.V=z.qs;this.J=z.JC;this.Y=g.vx(z)}; g.mfB=function(B,z){var T;return B.K().D("safari_live_drm_captions_fix")&&((T=B.getVideoData())==null?0:T.Cp())?!1:g.y9(B.K())&&!z.isManifestless}; g.a$=function(B,z){return R_(B.info.mimeType)?z?B.info.itag===z:!0:!1}; g.nEH=function(B,z){if(B.T!=null&&g.mfB(z,B.T)&&B.T.T.rawcc!=null)return!0;if(!B.PB())return!1;z=!!B.T&&B.T.isManifestless&&Object.values(B.T.T).some(function(T){return g.a$(T,"386")}); B=!!B.T&&!B.T.isManifestless&&g.bkK(B.T);return z||B}; g.Uk=function(B,z,T,R,h,W){g.dh.call(this,B);this.videoId=T;this.l_=h;this.eventId=W;this.X={};this.T=null;B=R||g.bA(z).hl||"";B=B.split("_").join("-");this.Y=Yv(z,{hl:B})}; fXr=function(B,z){var T=uXP;return T.W?IL(HxX(T,z),d8(function(R){return function W(){return kr(W,function(b){if(b.U==1){g.MB(b,2);try{return b.return(new WebAssembly.Instance(R,B))}catch(l){}return GP(b,AT(WebAssembly.instantiate(R,B)),4)}if(b.U!=2)return b.return(b.T);g.$r(b);return g.Pb(b,0)})}()})):r8("wasm.ps.ns")}; OxP=function(B,z){B.T||(B.T=IL(oL(function(){return fetch(z)}),function(T){return T.arrayBuffer()}),Gc(B.T,function(T){B.T=void 0; throw"wasm.ps.f: "+T;}))}; HxX=function(B,z){if(B.U)return B.U;B.U=B.V(z);Gc(B.U,function(T){B.U=void 0;throw"wasm.ps.c: "+T;}); return B.U}; NC5=function(){}; t$P=function(){var B=this;this.proc_exit=function(){}; this.fd_write=function(z,T,R){if(!B.exports)return 1;z=new Uint32Array(B.exports.memory.buffer,T,R*2);T=[];for(var h=0;h=11;B=B.api.K().L&&DN;return!(!z&&!B)}; jt=function(B,z){return!B.api.isInline()&&!gBX(B,yO(z))&&g.p0(z)}; ysd=function(B){B.I1.aD();if(B.vF&&B.Oo)B.Oo=!1;else if(!B.api.K().IK&&!B.sU()){var z=B.api.getPlayerStateObject();g.X(z,2)&&g.Vx(B.api)||B.FA(z);!B.api.K().U0||z.isCued()||g.X(z,1024)?B.wR():B.wd.isActive()?(B.Nc(),B.wd.stop()):B.wd.start()}}; pUz=function(B,z){var T;if((T=B.api.getVideoData())==null?0:T.mutedAutoplay){var R,h;if((R=z.target)==null?0:(h=R.className)==null?0:h.includes("ytp-info-panel"))return!1}return g.p0(z)&&B.api.isMutedByMutedAutoplay()?(B.api.unMute(),B.api.getPresentingPlayerType()===2&&B.api.playVideo(),z=B.api.getPlayerStateObject(),!g.X(z,4)||g.X(z,8)||g.X(z,2)||B.wR(),!0):!1}; $tY=function(B,z,T){B.api.isFullscreen()?T<1-z&&B.api.toggleFullscreen():T>1+z&&B.api.toggleFullscreen()}; QbH=function(B){var z=to()&&fL()>=67&&!B.api.K().L;B=B.api.K().disableOrganicUi;return!g.NR("tizen")&&!Mj&&!z&&!B}; g.Xj=function(B){g.O.call(this,{B:"div",S:[{B:"div",G:"ytp-bezel-text-wrapper",S:[{B:"div",G:"ytp-bezel-text",Yd:"{{title}}"}]},{B:"div",G:"ytp-bezel",C:{role:"status","aria-label":"{{label}}"},S:[{B:"div",G:"ytp-bezel-icon",Yd:"{{icon}}"}]}]});this.j=B;this.U=new g.Si(this.show,10,this);B=this.j.D("delhi_modern_web_player")?1E3:500;this.T=new g.Si(this.hide,B,this);g.m(this,this.U);g.m(this,this.T);this.hide()}; et=function(B,z,T){if(z<=0){T=kZ();z="muted";var R=0}else T=T?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,C:{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"}}]}:{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,C:{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"}}]},R=Math.floor(z),z=R+"volume";ZN(B,T,z,R+"%")}; PtB=function(B,z){z=z?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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"}}]}:UwP();var T=B.j.getPlaybackRate(),R=g.Ix("Speed is $RATE",{RATE:String(T)});ZN(B,z,R,T+"x")}; xtY=function(B,z){z=z?"Subtitles/closed captions on":"Subtitles/closed captions off";ZN(B,Uhz(B.j),z)}; ZN=function(B,z,T,R){R=R===void 0?"":R;B.updateValue("label",T===void 0?"":T);B.updateValue("icon",z);g.TE(B.T);B.U.start();B.updateValue("title",R);g.L2(B.element,"ytp-bezel-text-hide",!R)}; vBr=function(B,z){g.O.call(this,{B:"button",nf:["ytp-button","ytp-cards-button"],C:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.yW(B.K()))},S:[{B:"span",G:"ytp-cards-button-icon-default",S:[{B:"div",G:"ytp-cards-button-icon",S:[B.K().D("player_new_info_card_format")?QhH():{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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"}}]}]}, {B:"div",G:"ytp-cards-button-title",Yd:"Info"}]},{B:"span",G:"ytp-cards-button-icon-shopping",S:[{B:"div",G:"ytp-cards-button-icon",S:[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",G:"ytp-svg-shadow",C:{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"}},{B:"path",G:"ytp-svg-fill",C:{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"}},{B:"path",G:"ytp-svg-shadow-fill",C:{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"}}]}]},{B:"div", G:"ytp-cards-button-title",Yd:"Shopping"}]}]});this.j=B;this.U=z;this.T=null;this.fade=new g.Yp(this,250,!0,100);g.m(this,this.fade);g.L2(this.U,"ytp-show-cards-title",g.yW(B.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Ba(!0)}; Dtz=function(B,z){g.O.call(this,{B:"div",G:"ytp-cards-teaser",S:[{B:"div",G:"ytp-cards-teaser-box"},{B:"div",G:"ytp-cards-teaser-text",S:B.K().D("player_new_info_card_format")?[{B:"button",G:"ytp-cards-teaser-info-icon",C:{"aria-label":"Show cards","aria-haspopup":"true"},S:[QhH()]},{B:"img",G:"ytp-cards-teaser-channel-avatar",C:{alt:"","aria-hidden":"true"}},{B:"span",G:"ytp-cards-teaser-label",Yd:"{{text}}"},{B:"button",G:"ytp-cards-teaser-close-button",C:{"aria-label":"Close"},S:[g.yy()]}]:[{B:"span", G:"ytp-cards-teaser-label",Yd:"{{text}}"}]}]});var T=this;this.j=B;this.R_=z;this.fade=new g.Yp(this,250,!1,250);this.T=null;this.L=new g.Si(this.NaZ,300,this);this.X=new g.Si(this.fmO,2E3,this);this.W=[];this.U=null;this.J=new g.Si(function(){T.element.style.margin="0"},250); this.onClickCommand=this.Y=null;g.m(this,this.fade);g.m(this,this.L);g.m(this,this.X);g.m(this,this.J);B.K().D("player_new_info_card_format")?(g.ww(B.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.BD("ytp-cards-teaser-close-button"),"click",this.MJ),this.Z(this.BD("ytp-cards-teaser-info-icon"),"click",this.fE),this.Z(this.BD("ytp-cards-teaser-label"),"click",this.fE)):this.listen("click",this.fE);this.Z(z.element,"mouseover",this.i6);this.Z(z.element,"mouseout",this.dH);this.Z(B,"cardsteasershow", this.LuJ);this.Z(B,"cardsteaserhide",this.xW);this.Z(B,"cardstatechange",this.TN);this.Z(B,"presentingplayerstatechange",this.TN);this.Z(B,"appresize",this.v5);this.Z(B,"onShowControls",this.v5);this.Z(B,"onHideControls",this.mT);this.listen("mouseenter",this.KI)}; kLz=function(B){g.O.call(this,{B:"button",nf:[sk.BUTTON,sk.TITLE_NOTIFICATIONS],C:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{B:"div",G:sk.TITLE_NOTIFICATIONS_ON,C:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.pl()]},{B:"div",G:sk.TITLE_NOTIFICATIONS_OFF,C:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{B:"svg",C:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{B:"path",C:{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=B;this.T=!1;B.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; KpK=function(B,z){B.T=z;B.element.classList.toggle(sk.NOTIFICATIONS_ENABLED,B.T);var T=B.api.getVideoData();T?(z=z?T.M6:T.ZL)?(B=B.api.Ju())?s4(B,z):g.kV(Error("No innertube service available when updating notification preferences.")):g.kV(Error("No update preferences command available.")):g.kV(Error("No video data when updating notification preferences."))}; nBz=function(B,z,T){var R=R===void 0?800:R;var h=h===void 0?600:h;var W=document.location.protocol;B=OFz(W+"//"+B+"/signin?context=popup","feature",z,"next",W+"//"+location.hostname+"/post_login");mtd(B,T,R,h)}; mtd=function(B,z,T,R){T=T===void 0?800:T;R=R===void 0?600:R;if(B=g.zN(window,B,"loginPopup","width="+T+",height="+R+",resizable=yes,scrollbars=yes"))aMl(function(){z()}),B.moveTo((screen.width-T)/2,(screen.height-R)/2)}; g.Ek=function(B,z,T,R,h,W,b,l,w,q,c,L){B=B.charAt(0)+B.substring(1).toLowerCase();T=T.charAt(0)+T.substring(1).toLowerCase();if(z==="0"||z==="-1")z=null;if(R==="0"||R==="-1")R=null;var C=c.K(),r=C.userDisplayName&&g.xC(C);g.O.call(this,{B:"div",nf:["ytp-button","ytp-sb"],S:[{B:"div",G:"ytp-sb-subscribe",C:r?{title:g.Ix("Subscribe as $USER_NAME",{USER_NAME:C.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":zi(C),"data-tooltip-opaque":String(g.yW(C)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},S:[{B:"div",G:"ytp-sb-text",S:[{B:"div",G:"ytp-sb-icon"},B]},z?{B:"div",G:"ytp-sb-count",Yd:z}:""]},{B:"div",G:"ytp-sb-unsubscribe",C:r?{title:g.Ix("Subscribed as $USER_NAME",{USER_NAME:C.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":zi(C),"data-tooltip-opaque":String(g.yW(C)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{B:"div",G:"ytp-sb-text",S:[{B:"div",G:"ytp-sb-icon"},T]},R?{B:"div",G:"ytp-sb-count", Yd:R}:""]}],C:{"aria-live":"polite"}});var F=this;this.channelId=b;this.j=c;this.Y=L;var A=this.BD("ytp-sb-subscribe"),a=this.BD("ytp-sb-unsubscribe");W&&g.ww(this.element,"ytp-sb-classic");if(h){l?this.T():this.U();var V=function(){if(C.WD){var x=F.channelId;if(w||q){var v={c:x};var n;g.KX.isInitialized()&&(n=KVz(v));v=n||"";if(n=c.getVideoData())if(n=n.subscribeCommand){var Z=c.Ju();Z?(s4(Z,n,{botguardResponse:v,feature:w}),c.uO("SUBSCRIBE",x)):g.kV(Error("No innertube service available when updating subscriptions."))}else g.kV(Error("No subscribe command in videoData.")); else g.kV(Error("No video data available when updating subscription."))}a.focus();a.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}else nBz(g.Of(F.j.K()),"sb_button",F.W)},M=function(){var x=F.channelId; if(w||q){var v=c.getVideoData();s4(c.Ju(),v.unsubscribeCommand,{feature:w});c.uO("UNSUBSCRIBE",x)}A.focus();A.removeAttribute("aria-hidden");a.setAttribute("aria-hidden","true")}; this.Z(A,"click",V);this.Z(a,"click",M);this.Z(A,"keypress",function(x){x.keyCode===13&&V(x)}); this.Z(a,"keypress",function(x){x.keyCode===13&&M(x)}); this.Z(c,"SUBSCRIBE",this.T);this.Z(c,"UNSUBSCRIBE",this.U);this.Y&&r&&(WGK(c),ay(c,A,this),ay(c,a,this))}else g.ww(A,"ytp-sb-disabled"),g.ww(a,"ytp-sb-disabled")}; fhb=function(B){g.O.call(this,{B:"div",G:"ytp-title-channel",S:[{B:"div",G:"ytp-title-beacon"},{B:"a",G:"ytp-title-channel-logo",C:{href:"{{channelLink}}",target:B.K().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{B:"div",G:"ytp-title-expanded-overlay",C:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{B:"div",G:"ytp-title-expanded-heading",S:[{B:"div",G:"ytp-title-expanded-title",S:[{B:"a",Yd:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:B.K().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{B:"div",G:"ytp-title-expanded-subtitle",Yd:"{{expandedSubtitle}}",C:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var z=this;this.api=B;this.channel=this.BD("ytp-title-channel");this.U=this.BD("ytp-title-channel-logo");this.channelName=this.BD("ytp-title-expanded-title");this.X=this.BD("ytp-title-expanded-overlay");this.Y=this.T=this.subscribeButton=null;this.W=!1;B.createClientVe(this.U,this,36925);B.createClientVe(this.channelName,this, 37220);g.yW(this.api.K())&&uVX(this);this.Z(B,"videodatachange",this.rF);this.Z(B,"videoplayerreset",this.rF);this.Z(this.channelName,"click",function(T){z.api.logClick(z.channelName);g.zN(window,HSz(z));T.preventDefault()}); this.Z(this.U,"click",this.WMD);this.rF()}; OSH=function(B){if(!B.api.K().ra){var z=B.api.getVideoData(),T=new g.Ek("Subscribe",null,"Subscribed",null,!0,!1,z.W3,z.subscribed,"channel_avatar",null,B.api,!0);B.api.createServerVe(T.element,B);var R;B.api.setTrackingParams(T.element,((R=z.subscribeButtonRenderer)==null?void 0:R.trackingParams)||null);B.Z(T.element,"click",function(){B.api.logClick(T.element)}); B.subscribeButton=T;g.m(B,B.subscribeButton);B.subscribeButton.Vu(B.X);B.subscribeButton.hide();var h=new kLz(B.api);B.T=h;g.m(B,h);h.Vu(B.X);h.hide();B.Z(B.api,"SUBSCRIBE",function(){z.jQ&&(h.show(),B.api.logVisibility(h.element,!0))}); B.Z(B.api,"UNSUBSCRIBE",function(){z.jQ&&(h.hide(),B.api.logVisibility(h.element,!1),KpK(h,!1))})}}; uVX=function(B){var z=B.api.K();OSH(B);B.updateValue("flyoutUnfocusable","true");B.updateValue("channelTitleFocusable","-1");B.updateValue("shouldHideExpandedTitleForA11y","true");B.updateValue("shouldHideExpandedSubtitleForA11y","true");z.U||z.Kf||(B.Z(B.channel,"mouseenter",B.MR),B.Z(B.channel,"mouseleave",B.wA),B.Z(B.channel,"focusin",B.MR),B.Z(B.channel,"focusout",function(T){B.channel.contains(T.relatedTarget)||B.wA()})); B.Y=new g.Si(function(){B.isExpanded()&&(B.api.logVisibility(B.channelName,!1),B.subscribeButton&&(B.subscribeButton.hide(),B.api.logVisibility(B.subscribeButton.element,!1)),B.T&&(B.T.hide(),B.api.logVisibility(B.T.element,!1)),B.channel.classList.remove("ytp-title-expanded"),B.channel.classList.add("ytp-title-show-collapsed"))},500); g.m(B,B.Y);B.Z(B.channel,N0B,function(){tEd(B)}); B.Z(B.api,"onHideControls",B.Je);B.Z(B.api,"appresize",B.Je);B.Z(B.api,"fullscreentoggled",B.Je)}; tEd=function(B){B.channel.classList.remove("ytp-title-show-collapsed");B.channel.classList.remove("ytp-title-show-expanded")}; jbr=function(B){var z=B.api.getPlayerSize();return g.yW(B.api.K())&&z.width>=524}; HSz=function(B){var z=B.api.K(),T=B.api.getVideoData(),R=g.Ti(z)+T.aK;g.ev(T)&&(R="https://music.youtube.com"+T.aK);if(!g.yW(z))return R;z={};g.w4(B.api,"addEmbedsConversionTrackingParams",[z]);return g.Qn(R,z)}; St=function(B){var z=g.td({"aria-haspopup":"true"});g.N2.call(this,z,B);this.listen("keydown",this.T)}; Br=function(B,z){B.element.setAttribute("aria-haspopup",String(z))}; XUB=function(B,z){g.O.call(this,{B:"div",G:"ytp-user-info-panel",C:{"aria-label":"User info"},S:B.K().WD&&!B.D("embeds_web_always_enable_signed_out_state")?[{B:"div",G:"ytp-user-info-panel-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-user-info-panel-content",S:[{B:"div",G:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable}}",role:"text"},Yd:"{{watchingAsUsername}}"},{B:"div",G:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Yd:"{{watchingAsEmail}}"}]}]:[{B:"div",G:"ytp-user-info-panel-icon", Yd:"{{icon}}"},{B:"div",G:"ytp-user-info-panel-content",S:[{B:"div",S:[{B:"text",C:{tabIndex:"{{userInfoFocusable}}"},Yd:"Signed out"}]},{B:"div",G:"ytp-user-info-panel-login",S:[{B:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Yd:B.K().ra?"":"Sign in on YouTube"}]}]}]});this.Lf=B;this.T=z;B.K().WD||B.K().ra||this.Z(this.BD("ytp-user-info-panel-login"),"click",this.SV);this.closeButton=new g.O({B:"button",nf:["ytp-collapse","ytp-button"],C:{title:"Close"},S:[g.DY()]});this.closeButton.Vu(this.element); g.m(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.pI);this.rF()}; sbX=function(B,z,T){g.Qu.call(this,B);this.WB=z;this.LQ=T;this.getVideoUrl=new St(6);this.gY=new St(5);this.hQ=new St(4);this.NS=new St(3);this.uM=new g.N2(g.td({href:"{{href}}",target:this.j.K().N},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.N2(g.td(),1,"Stats for nerds");this.zk=new g.Gt({B:"div",nf:["ytp-copytext","ytp-no-contextmenu"],C:{draggable:"false",tabindex:"1"},Yd:"{{text}}"});this.mj=new Vu(this.j,this.zk);this.fD=this.iI=null;g.yW(this.j.K())&&(this.closeButton= new g.O({B:"button",nf:["ytp-collapse","ytp-button"],C:{title:"Close"},S:[g.DY()]}),g.m(this,this.closeButton),this.closeButton.Vu(this.element),this.closeButton.listen("click",this.ME,this));g.yW(this.j.K())&&(this.Ov=new g.N2(g.td(),8,"Account"),g.m(this,this.Ov),this.Fu(this.Ov,!0),this.Ov.listen("click",this.Fum,this),B.createClientVe(this.Ov.element,this.Ov,137682));this.j.K().qV&&(this.f1=new RM("Loop",7),g.m(this,this.f1),this.Fu(this.f1,!0),this.f1.listen("click",this.S0E,this),B.createClientVe(this.f1.element, this.f1,28661));g.m(this,this.getVideoUrl);this.Fu(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.H4f,this);B.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.m(this,this.gY);this.Fu(this.gY,!0);this.gY.listen("click",this.mSG,this);B.createClientVe(this.gY.element,this.gY,28660);g.m(this,this.hQ);this.Fu(this.hQ,!0);this.hQ.listen("click",this.tkJ,this);B.createClientVe(this.hQ.element,this.hQ,28658);g.m(this,this.NS);this.Fu(this.NS,!0);this.NS.listen("click",this.GaI, this);g.m(this,this.uM);this.Fu(this.uM,!0);this.uM.listen("click",this.axu,this);g.m(this,this.showVideoInfo);this.Fu(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.zNZ,this);g.m(this,this.zk);this.zk.listen("click",this.XBE,this);g.m(this,this.mj);z=document.queryCommandSupported&&document.queryCommandSupported("copy");jzb("Chromium")>=43&&(z=!0);jzb("Firefox")<=40&&(z=!1);z&&(this.iI=new g.O({B:"textarea",G:"ytp-html5-clipboard",C:{readonly:"",tabindex:"-1"}}),g.m(this,this.iI), this.iI.Vu(this.element));var R;(R=this.Ov)==null||R.setIcon(p4K());var h;(h=this.f1)==null||h.setIcon({B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.NS.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{"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.uM.setIcon(Mdz());this.showVideoInfo.setIcon(Vd5());this.Z(B,"onLoopChange",this.onLoopChange);this.Z(B,"videodatachange",this.onVideoDataChange);ZSP(this);exd(this,this.j.getVideoData())}; zf=function(B,z){var T=!1;if(B.iI){var R=B.iI.element;R.value=z;R.select();try{T=document.execCommand("copy")}catch(h){}}T?B.WB.xW():(B.zk.oI(z,"text"),g.J0(B.WB,B.mj),lx(B.zk.element),B.iI&&(B.iI=null,ZSP(B)));return T}; exd=function(B,z){var T=B.j.K(),R=B.j.getPresentingPlayerType()===2,h=!R||z.isListed;h=!T.UE&&!!z.videoId&&h;T.playerStyle!=="play"?T="https://support.google.com/youtube/?p=report_playback":(T={contact_type:"playbackissue",html5:1,ei:z.eventId,v:z.videoId,p:"movies_playback"},z.U&&(T.fmt=z.U.itag),z.clientPlaybackNonce&&(T.cpn=z.clientPlaybackNonce),z.partnerId&&(T.partnerid=z.partnerId),T=g.Qn("//support.google.com/googleplay/",T));B.hQ.kW(h&&z.allowEmbed);B.getVideoUrl.kW(h);B.gY.kW(h&&!z.isLivePlayback); B.uM.oI(T,"href");var W;(W=B.f1)==null||W.kW(!z.isLivePlayback&&!R);var b;(b=B.Ov)==null||b.kW(!R)}; ZSP=function(B){var z=!!B.iI;g.OL(B.NS,z?"Copy debug info":"Get debug info");Br(B.NS,!z);g.OL(B.hQ,z?"Copy embed code":"Get embed code");Br(B.hQ,!z);g.OL(B.getVideoUrl,z?"Copy video URL":"Get video URL");Br(B.getVideoUrl,!z);g.OL(B.gY,z?"Copy video URL at current time":"Get video URL at current time");Br(B.gY,!z);B.hQ.setIcon(z?Axl():null);B.getVideoUrl.setIcon(z?g2():null);B.gY.setIcon(z?g2():null)}; EBz=function(B){return g.yW(B.j.K())?B.Ov:B.f1}; Bv5=function(B,z){g.gp.call(this,B);this.LQ=z;this.W=new g.kb(this);this.TZ=new g.Si(this.ZQf,1E3,this);this.UE=this.Y=null;g.m(this,this.W);g.m(this,this.TZ);z=this.j.K();B.createClientVe(this.element,this,28656);g.ww(this.element,"ytp-contextmenu");this.j.K().experiments.Cf("delhi_modern_web_player")&&g.Zf(z)&&g.ww(this.element,"ytp-delhi-modern-contextmenu");SxB(this);this.hide()}; SxB=function(B){g.$K(B.W);var z=B.j.K();z.playerStyle==="gvn"||z.U||z.Kf||(z=B.j.NG(),B.W.Z(z,"contextmenu",B.jxJ),B.W.Z(z,"touchstart",B.onTouchStart,null,!0),B.W.Z(z,"touchmove",B.xb,null,!0),B.W.Z(z,"touchend",B.xb,null,!0))}; zaK=function(B){B.j.isFullscreen()?g.Pw(B.j,B.element,10):B.Vu(uN(B).body)}; Tf=function(B,z,T){T=T===void 0?240:T;g.O.call(this,{B:"button",nf:["ytp-button","ytp-copylink-button"],C:{title:"{{title-attr}}","data-tooltip-opaque":String(g.yW(B.K()))},S:[{B:"div",G:"ytp-copylink-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-copylink-title",Yd:"Copy link",C:{"aria-hidden":"true"}}]});this.api=B;this.T=z;this.U=T;this.visible=!1;this.tooltip=this.T.Hu();z=B.K();this.tooltip.element.setAttribute("aria-live","polite");g.L2(this.element,"ytp-show-copylink-title",g.yW(z));B.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Z(B,"videodatachange",this.rF);this.Z(B,"videoplayerreset",this.rF);this.Z(B,"appresize",this.rF);this.rF();this.addOnDisposeCallback(g.Ad(this.tooltip,this.element))}; Tvd=function(B){var z=B.api.K(),T=B.api.getVideoData(),R=B.api.NG().getPlayerSize().width;z=z.Y;return!!T.videoId&&R>=B.U&&T.ag&&!g.Zr(T)&&!B.api.isEmbedsShortsMode()&&!z}; RaB=function(B){B.updateValue("icon",MI());if(B.api.K().U)B.tooltip.z_(B.element,"Link copied to clipboard");else{B.updateValue("title-attr","Link copied to clipboard");B.tooltip.TR();B.tooltip.z_(B.element);var z=B.listen("mouseleave",function(){B.V2(z);B.rF();B.tooltip.yT()})}}; haH=function(B,z){return g.D(function(T){if(T.U==1)return g.AK(T,2),g.P(T,navigator.clipboard.writeText(z),4);if(T.U!=2)return T.return(!0);g.JK(T);var R=T.return,h=!1,W=g.ES("TEXTAREA");W.value=z;W.setAttribute("readonly","");var b=B.api.getRootNode();b.appendChild(W);if(XJ){var l=window.getSelection();l.removeAllRanges();var w=document.createRange();w.selectNodeContents(W);l.addRange(w);W.setSelectionRange(0,z.length)}else W.select();try{h=document.execCommand("copy")}catch(q){}b.removeChild(W); return R.call(T,h)})}; W$z=function(B){g.O.call(this,{B:"div",G:"ytp-doubletap-ui-legacy",S:[{B:"div",G:"ytp-doubletap-fast-forward-ve"},{B:"div",G:"ytp-doubletap-rewind-ve"},{B:"div",G:"ytp-doubletap-static-circle",S:[{B:"div",G:"ytp-doubletap-ripple"}]},{B:"div",G:"ytp-doubletap-overlay-a11y"},{B:"div",G:"ytp-doubletap-seek-info-container",S:[{B:"div",G:"ytp-doubletap-arrows-container",S:[{B:"span",G:"ytp-doubletap-base-arrow"},{B:"span",G:"ytp-doubletap-base-arrow"},{B:"span",G:"ytp-doubletap-base-arrow"}]},{B:"div", G:"ytp-doubletap-tooltip",S:[{B:"div",G:"ytp-seek-icon-text-container",S:[{B:"div",G:"ytp-seek-icon",Yd:"{{seekIcon}}"},{B:"div",G:"ytp-chapter-seek-text-legacy",Yd:"{{seekText}}"}]},{B:"div",G:"ytp-doubletap-tooltip-label",Yd:"{{seekTime}}"}]}]}]});this.j=B;this.W=new g.Si(this.show,10,this);this.U=new g.Si(this.hide,700,this);this.L=this.Y=0;this.TZ=this.X=!1;this.T=this.BD("ytp-doubletap-static-circle");g.m(this,this.W);g.m(this,this.U);this.hide();this.J=this.BD("ytp-doubletap-fast-forward-ve"); this.N=this.BD("ytp-doubletap-rewind-ve");this.j.createClientVe(this.J,this,28240);this.j.createClientVe(this.N,this,28239);this.j.logVisibility(this.J,!0);this.j.logVisibility(this.N,!0);this.X=B.D("web_show_cumulative_seek_time");this.TZ=B.D("web_center_static_circles")}; bdz=function(B,z){z=g.Ix("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:z.toString()});B.updateValue("seekTime",z)}; YKz=function(B){Mz.call(this,B,!1,!0);this.RK=[];this.ra=[];this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.XE=new g.O({B:"div",G:"ytp-featured-product-open-in-new"});g.m(this,this.XE);this.countdownTimer=new g.O({B:"text",G:"ytp-featured-product-countdown",Yd:"{{content}}"});this.countdownTimer.hide();g.m(this,this.countdownTimer);this.U=new g.O({B:"div",G:"ytp-featured-product-trending",S:[{B:"div",G:"ytp-featured-product-trending-icon"},{B:"text",G:"ytp-featured-product-trending-text", Yd:"{{trendingOffer}}"}]});this.U.hide();g.m(this,this.U);this.overflowButton=new g.O({B:"button",nf:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.m(this,this.overflowButton);this.L=new g.O({B:"text",G:"ytp-featured-product-exclusive-countdown",Yd:"{{content}}",C:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.m(this,this.L);this.X=new g.O({B:"div",G:"ytp-featured-product-exclusive-container",C:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, S:[{B:"div",G:"ytp-featured-product-exclusive-badge-container",S:[{B:"div",G:"ytp-featured-product-exclusive-badge",S:[{B:"text",G:"ytp-featured-product-exclusive-badge-text",Yd:"{{exclusive}}",C:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.X.hide();g.m(this,this.X);this.banner=new g.O({B:"a",G:"ytp-featured-product-container",S:[{B:"div",G:"ytp-featured-product-thumbnail",S:[{B:"img",C:{src:"{{thumbnail}}"}},this.XE]},{B:"div",G:"ytp-featured-product-details",S:[{B:"text",G:"ytp-featured-product-title", Yd:"{{title}}"},this.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",G:"ytp-featured-product-price-container",C:{"aria-label":"{{priceA11yText}}"},S:[{B:"text",G:"ytp-featured-product-price-when-promotion-text-enabled",Yd:"{{price}}",C:{"aria-hidden":"true"}},{B:"text",G:"ytp-featured-product-promotion-text",Yd:"{{promotionText}}",C:{"aria-hidden":"true"}}]}:{B:"div",C:{"aria-label":"{{priceA11yText}}"},S:[{B:"text",G:"ytp-featured-product-price",Yd:"{{price}}", C:{"aria-hidden":"true"}},{B:"text",G:"ytp-featured-product-sales-original-price",Yd:"{{salesOriginalPrice}}",C:{"aria-hidden":"true"}},{B:"text",G:"ytp-featured-product-price-drop-reference-price",Yd:"{{priceDropReferencePrice}}",C:{"aria-hidden":"true"}}]},this.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",G:"ytp-featured-product-when-promotion-text-enabled",S:[{B:"text",G:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Yd:"{{affiliateDisclaimer}}"}, this.U,{B:"text",G:"ytp-featured-product-vendor-when-promotion-text-enabled",Yd:"{{vendor}}"}]}:{B:"div",S:[{B:"text",G:"ytp-featured-product-affiliate-disclaimer",Yd:"{{affiliateDisclaimer}}"},this.j.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.U,{B:"text",G:"ytp-featured-product-vendor",Yd:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.m(this,this.banner);this.banner.Vu(this.Y.element);this.Z(this.j,g.YQ("featured_product"),this.gOK);this.Z(this.j, g.lu("featured_product"),this.SL);this.Z(this.j,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.uc);this.Z(B,"featuredproductdismissed",this.LT)}; lQK=function(B){var z,T;B=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:T.itemData;var R,h,W;return(B==null||!B.affiliateDisclaimer)&&(B==null?0:(R=B.exclusivesData)==null?0:R.exclusiveOfferLabelText)&&(B==null?0:(h=B.exclusivesData)==null?0:h.expirationTimestampMs)&&(B==null?0:(W=B.exclusivesData)==null?0:W.exclusiveOfferCountdownText)?!0:!1}; qKH=function(B){var z,T,R,h,W=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:(R=T.itemData)==null?void 0:(h=R.exclusivesData)==null?void 0:h.expirationTimestampMs;z=(Number(W)-Date.now())/1E3;if(z>0){if(z<604800){var b,l,w,q;T=(b=B.T)==null?void 0:(l=b.bannerData)==null?void 0:(w=l.itemData)==null?void 0:(q=w.exclusivesData)==null?void 0:q.exclusiveOfferCountdownText;if(T!==void 0)for(b=Date.now(),l=g.d(T),w=l.next();!w.done;w=l.next())if(w=w.value,w!==void 0&&w.text!==void 0&&(q=Number(w.textDisplayStartTimestampMs), !isNaN(q)&&b>=q)){w.insertCountdown?(z=w.text.replace(/\$0/,String(Qw({seconds:z}))),B.L.oI(z)):B.L.oI(w.text);B.L.show();break}}var c,L,C,r;B.X.update({exclusive:(c=B.T)==null?void 0:(L=c.bannerData)==null?void 0:(C=L.itemData)==null?void 0:(r=C.exclusivesData)==null?void 0:r.exclusiveOfferLabelText});B.X.show();R8(B);var F;(F=B.JZ)==null||F.start()}else wmX(B)}; wmX=function(B){var z;(z=B.JZ)==null||z.stop();B.L.hide();B.X.hide();hU(B)}; id5=function(B){var z,T,R=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:T.itemData;return B.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(R==null||!R.priceReplacementText)&&(R==null?0:R.promotionText)?R==null?void 0:R.promotionText.content:null}; cFb=function(B){var z,T,R=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:T.itemData,h,W;if(!(R!=null&&R.priceReplacementText||B.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(R==null?0:(h=R.dealsData)==null?0:(W=h.sales)==null?0:W.originalPrice)){var b,l;return R==null?void 0:(b=R.dealsData)==null?void 0:(l=b.sales)==null?void 0:l.originalPrice}return null}; L$r=function(B){var z,T,R=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:T.itemData,h,W,b,l;if(!((R==null?0:R.priceReplacementText)||B.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(R==null?0:(h=R.dealsData)==null?0:(W=h.sales)==null?0:W.originalPrice))&&(R==null?0:(b=R.dealsData)==null?0:(l=b.priceDrop)==null?0:l.referencePrice)){var w,q;return R==null?void 0:(w=R.dealsData)==null?void 0:(q=w.priceDrop)==null?void 0:q.referencePrice}return null}; CSz=function(B){var z,T,R=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:T.itemData;if(R==null?0:R.priceReplacementText)return R==null?void 0:R.priceReplacementText;if((R==null?0:R.promotionText)&&B.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var h;return(R==null?void 0:R.price)+" "+(R==null?void 0:(h=R.promotionText)==null?void 0:h.content)}var W,b;if(R==null?0:(W=R.dealsData)==null?0:(b=W.sales)==null?0:b.originalPrice){var l,w;return R==null?void 0:(l=R.dealsData)== null?void 0:(w=l.sales)==null?void 0:w.salesPriceAccessibilityLabel}var q,c;if(R==null?0:(q=R.dealsData)==null?0:(c=q.priceDrop)==null?0:c.referencePrice){var L,C;return(R==null?void 0:R.price)+" "+(R==null?void 0:(L=R.dealsData)==null?void 0:(C=L.priceDrop)==null?void 0:C.referencePrice)}return R==null?void 0:R.price}; rF5=function(B){if(B.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var z,T,R;return B.U.vD?null:(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:(R=T.itemData)==null?void 0:R.vendorName}var h,W,b,l,w,q;return B.U.vD||B.X.vD||((h=B.T)==null?0:(W=h.bannerData)==null?0:(b=W.itemData)==null?0:b.affiliateDisclaimer)?null:(l=B.T)==null?void 0:(w=l.bannerData)==null?void 0:(q=w.itemData)==null?void 0:q.vendorName}; F$d=function(B,z){Wr(B);if(z){var T=g.zG.getState().entities;T=LN(T,"featuredProductsEntity",z);if(T!=null&&T.productsData){z=[];T=g.d(T.productsData);for(var R=T.next();!R.done;R=T.next()){R=R.value;var h=void 0;if((h=R)!=null&&h.identifier&&R.featuredSegments){B.RK.push(R);var W=void 0;h=g.d((W=R)==null?void 0:W.featuredSegments);for(W=h.next();!W.done;W=h.next()){var b=W.value;W=oR5(b.startTimeSec);W!==void 0&&(b=oR5(b.endTimeSec),z.push(new g.Wj(W*1E3,b===void 0?0x7ffffffffffff:b*1E3,{id:R.identifier, namespace:"featured_product"})))}}}B.j.A$(z)}}}; hU=function(B){if(B.trendingOfferEntityKey){var z=g.zG.getState().entities;if(z=LN(z,"trendingOfferEntity",B.trendingOfferEntityKey)){var T,R,h;z.encodedSkuId!==((T=B.T)==null?void 0:(R=T.bannerData)==null?void 0:(h=R.itemData)==null?void 0:h.encodedOfferSkuId)?R8(B):(B.U.update({trendingOffer:z.shortLabel+" \u2022 "+z.countLabel}),B.U.show(),B.banner.update({vendor:rF5(B)}))}else R8(B)}else R8(B)}; R8=function(B){B.U.hide();B.banner.update({vendor:rF5(B)})}; Wr=function(B){B.RK=[];B.SL();B.j.I7("featured_product")}; IQz=function(B){var z,T,R,h,W=(z=B.T)==null?void 0:(T=z.bannerData)==null?void 0:(R=T.itemData)==null?void 0:(h=R.hiddenProductOptions)==null?void 0:h.dropTimestampMs;z=(Number(W)-Date.now())/1E3;B.countdownTimer.oI(Qw({seconds:z}));if(z>0){var b;(b=B.Dm)==null||b.start()}}; Gy5=function(B){var z;(z=B.Dm)==null||z.stop();B.countdownTimer.hide()}; oR5=function(B){if(B!==void 0&&B.trim()!==""&&(B=Math.trunc(Number(B.trim())),!(isNaN(B)||B<0)))return B}; M9P=function(B,z,T){g.O.call(this,{B:"div",nf:["ytp-info-panel-action-item"],S:[{B:"div",G:"ytp-info-panel-action-item-disclaimer",Yd:"{{disclaimer}}"},{B:"a",nf:["ytp-info-panel-action-item-button","ytp-button"],C:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},S:[{B:"div",G:"ytp-info-panel-action-item-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-info-panel-action-item-label",Yd:"{{label}}"}]}]});this.j=B;this.T=T;this.disclaimer=this.BD("ytp-info-panel-action-item-disclaimer");this.button= this.BD("ytp-info-panel-action-item-button");this.u1=!1;this.j.createServerVe(this.element,this,!0);this.listen("click",this.onClick);B="";T=g.u(z==null?void 0:z.onTap,nV);var R=g.u(T,g.fl);this.u1=!1;R?(B=R.url||"",B.startsWith("//")&&(B="https:"+B),this.u1=!0,g.ez(this.button,g.Xy(B))):(R=g.u(T,dOz))&&!this.T?((B=R.phoneNumbers)&&B.length>0?(B="sms:"+B[0],R.messageText&&(B+="?&body="+encodeURI(R.messageText))):B="",this.u1=!0,g.ez(this.button,g.Xy(B,[AFb]))):(T=g.u(T,aQB))&&!this.T&&(B=T.phoneNumber? "tel:"+T.phoneNumber:"",this.u1=!0,g.ez(this.button,g.Xy(B,[UOK])));var h;if(T=(h=z.disclaimerText)==null?void 0:h.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var W;this.update({label:(W=z.bodyText)==null?void 0:W.content,icon:$Z(),disclaimer:T})}else{this.disclaimer.style.display="none";var b;this.update({label:(b=z.bodyText)==null?void 0:b.content,icon:$Z()})}this.j.setTrackingParams(this.element,z.trackingParams||null);this.u1&&(this.U={externalLinkData:{url:B}})}; V9K=function(B,z){var T=r2();g.nB.call(this,B,{B:"div",G:"ytp-info-panel-detail-skrim",S:[{B:"div",G:"ytp-info-panel-detail",C:{role:"dialog",id:T},S:[{B:"div",G:"ytp-info-panel-detail-header",S:[{B:"div",G:"ytp-info-panel-detail-title",Yd:"{{title}}"},{B:"button",nf:["ytp-info-panel-detail-close","ytp-button"],C:{"aria-label":"Close"},S:[g.yy()]}]},{B:"div",G:"ytp-info-panel-detail-body",Yd:"{{body}}"},{B:"div",G:"ytp-info-panel-detail-items"}]}]},250);this.T=z;this.items=this.BD("ytp-info-panel-detail-items"); this.Y=new g.kb(this);this.itemData=[];this.W=T;this.Z(this.BD("ytp-info-panel-detail-close"),"click",this.xW);this.Z(this.BD("ytp-info-panel-detail-skrim"),"click",this.xW);this.Z(this.BD("ytp-info-panel-detail"),"click",function(R){R.stopPropagation()}); g.m(this,this.Y);this.j.createServerVe(this.element,this,!0);this.Z(B,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",B.getVideoData());this.hide()}; Q5X=function(B,z){B=g.d(B.itemData);for(var T=B.next();!T.done;T=B.next())T=T.value,T.j.logVisibility(T.element,z)}; JFb=function(B,z){g.O.call(this,{B:"div",G:"ytp-info-panel-preview",C:{"aria-live":"assertive","aria-atomic":"true","aria-owns":z.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.yW(B.K()))},S:[{B:"div",G:"ytp-info-panel-preview-text",Yd:"{{text}}"},{B:"div",G:"ytp-info-panel-preview-chevron",Yd:"{{chevron}}"}]});var T=this;this.j=B;this.mu=this.T=this.videoId=null;this.Y=this.showControls=this.U=!1;this.Z(this.element,"click",function(){B.logClick(T.element);B.sU();Hw(z)}); this.fade=new g.Yp(this,250,!1,100);g.m(this,this.fade);this.j.createServerVe(this.element,this,!0);this.Z(B,"videodatachange",this.onVideoDataChange);this.Z(B,"presentingplayerstatechange",this.fI);this.Z(this.j,"paidcontentoverlayvisibilitychange",this.AN);this.Z(this.j,"infopaneldetailvisibilitychange",this.AN);var R=B.getVideoData()||{};yFb(R)&&gRP(this,R);this.Z(B,"onShowControls",this.oV);this.Z(B,"onHideControls",this.eV)}; gRP=function(B,z){if(!z.Qn||!B.j.SQ()){var T=z.Fj||1E4,R=yFb(z);B.T?z.videoId&&z.videoId!==B.videoId&&(g.TE(B.T),B.videoId=z.videoId,R?(pmK(B,T,z),B.Hc()):(B.xW(),B.T.dispose(),B.T=null)):R&&(z.videoId&&(B.videoId=z.videoId),pmK(B,T,z),B.Hc())}}; yFb=function(B){var z,T,R,h;return!!((z=B.yl)==null?0:(T=z.title)==null?0:T.content)||!!((R=B.yl)==null?0:(h=R.bodyText)==null?0:h.content)}; pmK=function(B,z,T){B.T&&B.T.dispose();B.T=new g.Si(B.RkD,z,B);g.m(B,B.T);var R;z=((R=T.yl)==null?void 0:R.trackingParams)||null;B.j.setTrackingParams(B.element,z);var h;var W,b;if(T==null?0:(W=T.yl)==null?0:(b=W.title)==null?0:b.content){var l;R=(h=T.yl)==null?void 0:(l=h.title)==null?void 0:l.content;var w,q;if((w=T.yl)==null?0:(q=w.bodyText)==null?0:q.content)R+=" \u2022 ";h=R}else h="";var c,L;T=((c=T.yl)==null?void 0:(L=c.bodyText)==null?void 0:L.content)||"";B.update({text:h+T,chevron:g.Qy()})}; $Ob=function(B,z){B.T&&(g.X(z,8)?(B.U=!0,B.Hc(),B.T.start()):(g.X(z,2)||g.X(z,64))&&B.videoId&&(B.videoId=null))}; bY=function(B){var z=null;try{z=B.toLocaleString("en",{style:"percent"})}catch(T){z=B.toLocaleString(void 0,{style:"percent"})}return z}; Y_=function(B,z){var T=0;B=g.d(B);for(var R=B.next();!(R.done||R.value.startTime>z);R=B.next())T++;return T===0?T:T-1}; PSr=function(B,z){for(var T=0,R=g.d(B),h=R.next();!h.done;h=R.next()){h=h.value;if(z=h.timeRangeStartMillis&&z0?z[0]:null;var T=g.t2("ytp-chrome-bottom"),R=g.t2("ytp-ad-module");B.W=!(T==null||!T.contains(z));B.J=!(R==null||!R.contains(z));B.N=!(z==null||!z.hasAttribute("data-tooltip-target-fixed"));return z}; s5l=function(B,z,T){if(!B.X){if(z){B.tooltipRenderer=z;z=B.tooltipRenderer.text;var R=!1,h;(z==null?0:(h=z.runs)==null?0:h.length)&&z.runs[0].text&&(B.update({title:z.runs[0].text.toString()}),R=!0);g.KF(B.title,R);z=B.tooltipRenderer.detailsText;h=!1;var W;if((z==null?0:(W=z.runs)==null?0:W.length)&&z.runs[0].text){R=z.runs[0].text.toString();W=R.indexOf("$TARGET_ICON");if(W>-1)if(B.tooltipRenderer.targetId){z=[];R=R.split("$TARGET_ICON");var b=new g.oU({B:"span",G:"ytp-promotooltip-details-icon", S:[ZdX[B.tooltipRenderer.targetId]]});g.m(B,b);for(var l=[],w=g.d(R),q=w.next();!q.done;q=w.next())q=new g.oU({B:"span",G:"ytp-promotooltip-details-component",Yd:q.value}),g.m(B,q),l.push(q);R.length===2?(z.push(l[0].element),z.push(b.element),z.push(l[1].element)):R.length===1&&(W===0?(z.push(b.element),z.push(l[0].element)):(z.push(l[0].element),z.push(b.element)));W=z.length?z:null}else W=null;else W=R;if(W){if(typeof W!=="string")for(g.zJ(B.details),h=g.d(W),W=h.next();!W.done;W=h.next())B.details.appendChild(W.value); else B.update({details:W});h=!0}}g.KF(B.details,h);h=B.tooltipRenderer.acceptButton;W=!1;var c,L,C;((c=g.u(h,g.mE))==null?0:(L=c.text)==null?0:(C=L.runs)==null?0:C.length)&&g.u(h,g.mE).text.runs[0].text&&(B.update({acceptButtonText:g.u(h,g.mE).text.runs[0].text.toString()}),W=!0);g.KF(B.acceptButton,W);c=B.tooltipRenderer.dismissButton;L=!1;var r,F,A;((r=g.u(c,g.mE))==null?0:(F=r.text)==null?0:(A=F.runs)==null?0:A.length)&&g.u(c,g.mE).text.runs[0].text&&(B.update({dismissButtonText:g.u(c,g.mE).text.runs[0].text.toString()}), L=!0);g.KF(B.dismissButton,L)}T&&(B.Y=T);B.T=Xm5(B);B.L=!1;B.j.K().D("web_player_hide_nitrate_promo_tooltip")||B.kW(!0);eal(B);B.vD&&!B.TZ&&(B.TZ=!0,B.Yi.Yz(0));B.U&&B.j.logVisibility(B.element,B.vD)}}; Co=function(B){B.kW(!1);B.U&&B.j.logVisibility(B.element,B.vD)}; ERB=function(B){var z,T,R,h=((z=g.u(B.acceptButton,g.mE))==null?void 0:(T=z.text)==null?void 0:(R=T.runs)==null?void 0:R.length)&&!!g.u(B.acceptButton,g.mE).text.runs[0].text,W,b,l;z=((W=g.u(B.dismissButton,g.mE))==null?void 0:(b=W.text)==null?void 0:(l=b.runs)==null?void 0:l.length)&&!!g.u(B.dismissButton,g.mE).text.runs[0].text;return h||z}; eal=function(B){var z;if(!(z=!B.T)){z=B.T;var T=window.getComputedStyle(z);z=T.display==="none"||T.visibility==="hidden"||z.getAttribute("aria-hidden")==="true"}if(z||B.j.isMinimized())B.kW(!1);else if(z=g.Dk(B.T),z.width&&z.height){B.j.w7(B.element,B.T);var R=B.j.NG().getPlayerSize().height;T=g.Dk(B.BD("ytp-promotooltip-container")).height;B.W?B.element.style.top=R-T-z.height-12+"px":B.N||(R=B.j.ZO().height-T-z.height-12,B.element.style.top=R+"px");R=B.BD("ytp-promotooltip-pointer");var h=g.x6(B.T, B.j.getRootNode()),W=Number(B.element.style.left.replace(/[^\d\.]/g,""));B=B.j.isFullscreen()?18:12;R.style.left=h.x-W+z.width/2-B+"px";R.style.top=T+"px"}else B.kW(!1)}; rA=function(B){g.O.call(this,{B:"button",nf:["ytp-replay-button","ytp-button"],C:{title:"Replay"},S:[g.xZ()]});this.j=B;this.Z(B,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.J0(B.getPlayerStateObject());ay(this.j,this.element,this)}; o8=function(B,z){z=z===void 0?240:z;g.O.call(this,{B:"button",nf:["ytp-button","ytp-search-button"],C:{title:"Search","data-tooltip-opaque":String(g.yW(B.K()))},S:[{B:"div",G:"ytp-search-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-search-title",Yd:"Search"}]});this.api=B;this.U=z;this.visible=!1;this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{B:"path",G:"ytp-svg-fill",C:{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"}}]}); B.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.Z(B,"appresize",this.T);this.Z(B,"videodatachange",this.T);ay(B,this.element,this)}; F4=function(B){g.O.call(this,{B:"div",G:"ytp-seek-overlay",S:[{B:"div",nf:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],S:[{B:"div",nf:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{B:"svg",C:{viewBox:"0 0 22 32",width:"22",height:"32"},S:[{B:"path",C:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{B:"div",G:"ytp-seek-overlay-duration",Yd:"{{durationBack}}"}]},{B:"div",nf:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], S:[{B:"div",G:"ytp-seek-overlay-duration",Yd:"{{durationForward}}"},{B:"div",nf:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{B:"svg",C:{viewBox:"0 0 22 32",width:"22",height:"32"},S:[{B:"path",C:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{B:"div",G:"ytp-seek-overlay-message",S:[{B:"div",G:"ytp-seek-overlay-message-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-seek-overlay-message-text",Yd:"{{text}}"}]}]});var z=this;this.j=B;this.L=0;this.T="hidden"; this.TZ=0;this.J=this.BD("ytp-seek-overlay-animation-back");this.N=this.BD("ytp-seek-overlay-animation-forward");this.UE=this.BD("ytp-seek-overlay-message");this.X=new g.Si(function(){SKz(z)},g.rk(this.j.K().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.m(this,this.X);this.j.createClientVe(this.N,this,28240);this.j.createClientVe(this.J,this,28239);this.j.logVisibility(this.N,!0);this.j.logVisibility(this.J,!0);this.hide()}; BMb=function(B,z){B.U=B.Y.animate([{offset:0,opacity:z,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});B.U.addEventListener("finish",function(){B.U=void 0;B.X.start();B.T="lingering"})}; zGb=function(B,z,T){T=T===void 0?!1:T;var R=[],h={offset:0,transform:"translateX("+(B.W===-1?30:-30)+"px)"};T&&(h.opacity="0");R.push(h);T&&R.push({offset:.5,opacity:"1"});R.push({offset:1,transform:"translateX(0)"});T=z.animate(R,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});z.querySelector("path").animate([{offset:0,d:B.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:B.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return T}; TMz=function(B){if((0,g.f)()-B.TZ>=(g.rk(B.j.K().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var z=B.Y.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);z.classList.add("ytp-seek-overlay-arrow-additional");z.classList.remove("ytp-seek-overlay-arrow-persistent");B.Y.appendChild(z);zGb(B,z,!0).addEventListener("finish",function(){z.remove()})}}; SKz=function(B,z,T){T=T===void 0?!0:T;B.U=B.Y.animate([{offset:0,opacity:z===void 0?1:z},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});T&&(B.U.addEventListener("finish",function(){B.U=void 0;RGl(B);B.hide()}),B.T="fading-out")}; hGH=function(B){var z=Number(getComputedStyle(B.Y).opacity);B.U.cancel();B.U=void 0;return z}; RGl=function(B){B.L=0;B.T="hidden";B.W=void 0;B.Y=void 0;B.TZ=0;B.X.stop();B.U=void 0}; WPz=function(B,z,T){B.updateValue("text",z);if(T){a:{switch(T){case "PREMIUM_STANDALONE":z=xwr();break a;case "PREMIUM_STANDALONE_CAIRO":z=viX();break a}z=void 0}B.updateValue("icon",z)}z=g.d(B.UE.getAnimations());for(T=z.next();!T.done;T=z.next())T.value.cancel();B.UE.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){B.updateValue("text","");B.updateValue("icon","")})}; g.I8=function(B,z,T,R){R=R===void 0?240:R;g.O.call(this,{B:"button",nf:["ytp-button","ytp-share-button"],C:{title:"Share","aria-haspopup":"true","aria-owns":T.element.id,"data-tooltip-opaque":String(g.yW(B.K()))},S:[{B:"div",G:"ytp-share-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-share-title",Yd:"Share"}]});this.api=B;this.T=z;this.Y=T;this.W=R;this.U=this.visible=!1;this.tooltip=this.T.Hu();B.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Z(B,"videodatachange",this.rF); this.Z(B,"videoplayerreset",this.rF);this.Z(B,"appresize",this.rF);this.Z(B,"presentingplayerstatechange",this.rF);this.rF();this.addOnDisposeCallback(g.Ad(this.tooltip,this.element))}; bTH=function(B){var z=B.api.K(),T=B.api.getVideoData(),R=g.yW(z)&&g.g4(B.api)&&g.X(B.api.getPlayerStateObject(),128);z=z.Y||z.disableSharing&&B.api.getPresentingPlayerType()!==2||!T.showShareButton||T.ag||R||g.Zr(T)||B.U;R=B.api.NG().getPlayerSize().width;return!!T.videoId&&R>=B.W&&!z}; Yal=function(B,z){z.name!=="InvalidStateError"&&z.name!=="AbortError"&&(z.name==="NotAllowedError"?(B.T.sU(),Hw(B.Y,B.element,!1)):g.kV(z))}; wAB=function(B,z){var T=r2(),R=B.K();T={B:"div",G:"ytp-share-panel",C:{id:r2(),role:"dialog","aria-labelledby":T},S:[{B:"div",G:"ytp-share-panel-inner-content",S:[{B:"div",G:"ytp-share-panel-title",C:{id:T},Yd:"Share"},{B:"a",nf:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:R.N,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Yd:"{{linkText}}"},{B:"label",G:"ytp-share-panel-include-playlist",S:[{B:"input",G:"ytp-share-panel-include-playlist-checkbox",C:{type:"checkbox", checked:"true"}},"Include playlist"]},{B:"div",G:"ytp-share-panel-loading-spinner",S:[Yj()]},{B:"div",G:"ytp-share-panel-service-buttons",Yd:"{{buttons}}"},{B:"div",G:"ytp-share-panel-error",Yd:"An error occurred while retrieving sharing information. Please try again later."}]},{B:"button",nf:["ytp-share-panel-close","ytp-button"],C:{title:"Close"},S:[g.yy()]}]};g.nB.call(this,B,T,250);var h=this;this.moreButton=null;this.api=B;this.tooltip=z.Hu();this.Y=[];this.X=this.BD("ytp-share-panel-inner-content"); this.closeButton=this.BD("ytp-share-panel-close");this.Z(this.closeButton,"click",this.xW);this.addOnDisposeCallback(g.Ad(this.tooltip,this.closeButton));this.W=this.BD("ytp-share-panel-include-playlist-checkbox");this.Z(this.W,"click",this.rF);this.T=this.BD("ytp-share-panel-link");this.addOnDisposeCallback(g.Ad(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.Z(this.T,"click",function(W){W.preventDefault();h.api.logClick(h.T);var b=h.api.getVideoUrl(!0,!0,!1,!1);b=luz(h,b); g.bx(b,h.api,W)&&h.api.uO("SHARE_CLICKED")}); this.listen("click",this.aV);this.Z(B,"videoplayerreset",this.hide);this.Z(B,"fullscreentoggled",this.onFullscreenToggled);this.Z(B,"onLoopRangeChange",this.DGJ);this.hide()}; cEX=function(B,z){qal(B);for(var T=z.links||z.shareTargets,R=0,h={},W=0;W0&&!Z&&!v?(x.length===2&&(x=["noreferrer"]),g.zN(r,A,C,x[0]),r=BUX()):(a=M.join(","),US()&&r.navigator&&r.navigator.standalone&&C&&C!="_self"?(a=g.ES("A"),g.ez(a,A),a.target=C,V&&(a.rel="noreferrer"),((F=F.attributionsrc)||F==="")&&a.setAttribute("attributionsrc",F),F=document.createEvent("MouseEvent"), F.initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(F),r=BUX()):V?(r=g.zN(r,"",C,a),F=g.OB(A),r&&(r.opener=null,F===""&&(F="javascript:''"),F='',F=Sz(F),(A=r.document)&&A.write&&(A.write(BY(F)),A.close()))):((r=g.zN(r,A,C,a))&&F.noopener&&(r.opener=null),r&&F.noreferrer&&(r.opener=null)));r&&(r.opener||(r.opener=window),r.focus());L.preventDefault()}}}(h)); h.OG.addOnDisposeCallback(g.Ad(B.tooltip,h.OG.element));l==="Facebook"?B.api.createClientVe(h.OG.element,h.OG,164504):l==="Twitter"&&B.api.createClientVe(h.OG.element,h.OG,164505);B.Z(h.OG.element,"click",function(c){return function(){B.api.logClick(c.OG.element)}}(h)); B.api.logVisibility(h.OG.element,!0);B.Y.push(h.OG);R++}}var w=z.more||z.moreLink,q=new g.O({B:"a",nf:["ytp-share-panel-service-button","ytp-button"],S:[{B:"span",G:"ytp-share-panel-service-button-more",S:[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{B:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",C:{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"}}]}]}],C:{href:w,target:"_blank",title:"More"}});q.listen("click",function(c){var L=w;B.api.logClick(B.moreButton.element);L=luz(B,L);g.bx(L,B.api,c)&&B.api.uO("SHARE_CLICKED")}); q.addOnDisposeCallback(g.Ad(B.tooltip,q.element));B.api.createClientVe(q.element,q,164506);B.Z(q.element,"click",function(){B.api.logClick(q.element)}); B.api.logVisibility(q.element,!0);B.Y.push(q);B.moreButton=q;B.updateValue("buttons",B.Y)}; luz=function(B,z){var T={};g.yW(B.api.K())&&(g.w4(B.api,"addEmbedsConversionTrackingParams",[T]),z=g.Qn(z,T));return z}; qal=function(B){for(var z=g.d(B.Y),T=z.next();!T.done;T=z.next())T=T.value,T.detach(),g.c6(T);B.Y=[]}; Gf=function(B){return B===void 0||B.startSec===void 0||B.endSec===void 0?!1:!0}; LPb=function(B,z){B.startSec+=z;B.endSec+=z}; rEB=function(B){Mz.call(this,B);this.U=this.T=this.isContentForward=this.L=!1;CGP(this);this.Z(this.j,"changeProductsInVideoVisibility",this.mWu);this.Z(this.j,"videodatachange",this.onVideoDataChange)}; oDP=function(B){B.X&&B.zZ.element.removeChild(B.X.element);B.X=void 0}; Iuz=function(B,z){return z.map(function(T){var R,h;if((T=(R=g.u(T,FPb))==null?void 0:(h=R.thumbnail)==null?void 0:h.thumbnails)&&T.length!==0)return T[0].url}).filter(function(T){return T!==void 0}).map(function(T){T=new g.O({B:"img", G:"ytp-suggested-action-product-thumbnail",C:{alt:"",src:T}});g.m(B,T);return T})}; Gwl=function(B,z){B.isContentForward=z;g.L2(B.badge.element,"ytp-suggested-action-badge-content-forward",z)}; dA=function(B){var z=B.isContentForward&&!B.M2();g.L2(B.badge.element,"ytp-suggested-action-badge-preview-collapsed",z&&B.T);g.L2(B.badge.element,"ytp-suggested-action-badge-preview-expanded",z&&B.U)}; AU=function(B,z,T){return new g.Wj(B*1E3,z*1E3,{priority:9,namespace:T})}; dyB=function(B){B.j.I7("shopping_overlay_visible");B.j.I7("shopping_overlay_preview_collapsed");B.j.I7("shopping_overlay_preview_expanded");B.j.I7("shopping_overlay_expanded")}; CGP=function(B){B.Z(B.j,g.YQ("shopping_overlay_visible"),function(){B.UJ(!0)}); B.Z(B.j,g.lu("shopping_overlay_visible"),function(){B.UJ(!1)}); B.Z(B.j,g.YQ("shopping_overlay_expanded"),function(){B.UE=!0;UA(B)}); B.Z(B.j,g.lu("shopping_overlay_expanded"),function(){B.UE=!1;UA(B)}); B.Z(B.j,g.YQ("shopping_overlay_preview_collapsed"),function(){B.T=!0;dA(B)}); B.Z(B.j,g.lu("shopping_overlay_preview_collapsed"),function(){B.T=!1;dA(B)}); B.Z(B.j,g.YQ("shopping_overlay_preview_expanded"),function(){B.U=!0;dA(B)}); B.Z(B.j,g.lu("shopping_overlay_preview_expanded"),function(){B.U=!1;dA(B)})}; UyP=function(B){g.O.call(this,{B:"div",G:"ytp-shorts-title-channel",S:[{B:"a",G:"ytp-shorts-title-channel-logo",C:{href:"{{channelLink}}",target:B.K().N,"aria-label":"{{channelLogoLabel}}"}},{B:"div",G:"ytp-shorts-title-expanded-heading",S:[{B:"div",G:"ytp-shorts-title-expanded-title",S:[{B:"a",Yd:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:B.K().N,tabIndex:"0"}}]}]}]});var z=this;this.api=B;this.T=this.BD("ytp-shorts-title-channel-logo");this.channelName=this.BD("ytp-shorts-title-expanded-title"); this.subscribeButton=null;B.createClientVe(this.T,this,36925);this.Z(this.T,"click",function(T){z.api.logClick(z.T);g.zN(window,AEB(z));T.preventDefault()}); B.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(T){z.api.logClick(z.channelName);g.zN(window,AEB(z));T.preventDefault()}); aul(this);this.Z(B,"videodatachange",this.rF);this.Z(B,"videoplayerreset",this.rF);this.rF()}; aul=function(B){if(!B.api.K().ra){var z=B.api.getVideoData(),T=new g.Ek("Subscribe",null,"Subscribed",null,!0,!1,z.W3,z.subscribed,"channel_avatar",null,B.api,!0);B.api.createServerVe(T.element,B);var R;B.api.setTrackingParams(T.element,((R=z.subscribeButtonRenderer)==null?void 0:R.trackingParams)||null);B.Z(T.element,"click",function(){B.api.logClick(T.element)}); B.subscribeButton=T;g.m(B,B.subscribeButton);B.subscribeButton.Vu(B.element)}}; AEB=function(B){var z=B.api.K(),T=B.api.getVideoData();T=g.Ti(z)+T.aK;if(!g.yW(z))return T;z={};g.w4(B.api,"addEmbedsConversionTrackingParams",[z]);return g.Qn(T,z)}; a8=function(B){g.nB.call(this,B,{B:"button",nf:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{B:"div",G:"ytp-skip-intro-button-text",Yd:"Skip Intro"}]},100);var z=this;this.Y=!1;this.T=new g.Si(function(){z.hide()},5E3); this.Ip=this.Up=NaN;g.m(this,this.T);this.L=function(){z.show()}; this.X=function(){z.hide()}; this.W=function(){var T=z.j.getCurrentTime();T>z.Up/1E3&&T0?{B:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{B:"path",nf:["ytp-circle-arrow","ytp-svg-fill"],C:{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"}}, {B:"text",nf:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"7.05",y:"15.05"}}]}:{B:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{B:"path",nf:["ytp-circle-arrow","ytp-svg-fill"],C:{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"}}, {B:"text",nf:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"6.5",y:"15"}}]}]});var T=this;this.j=B;this.T=z;this.U=new g.Si(function(){T.Y?(T.Y=!1,T.U.start()):T.element.classList.remove("ytp-jump-spin","backwards")},250); this.Y=!1;(z=z>0)?this.j.createClientVe(this.element,this,36843):this.j.createClientVe(this.element,this,36844);var R=g.Ix(z?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.update({title:R,"data-title-no-tooltip":R,"aria-keyshortcuts":z?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text");this.W.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);ay(B,this.element, this)}; $yB=function(B,z){z?B.element.classList.add("ytp-jump-button-enabled"):B.element.classList.remove("ytp-jump-button-enabled");B.j.logVisibility(B.element,z);B.j.TR()}; JU=function(B,z){MV.call(this,B,z,"timedMarkerCueRange","View key moments");this.Z(B,g.lu("timedMarkerCueRange"),this.l$);this.Z(B,"updatemarkervisibility",this.updateVideoData)}; PGd=function(B){var z,T=(z=B.j.getVideoData())==null?void 0:z.MG;if(T)for(B=B.W.Kf,T=g.d(T),z=T.next();!z.done;z=T.next())if(z=B[z.value]){var R=void 0,h=void 0,W=void 0;if(((R=z.onTap)==null?void 0:(h=R.innertubeCommand)==null?void 0:(W=h.changeEngagementPanelVisibilityAction)==null?void 0:W.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return z}}; po=function(B){var z=B.D("web_enable_pip_on_miniplayer");g.O.call(this,{B:"button",nf:["ytp-miniplayer-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:["{{icon}}"]});this.j=B;this.visible=!1;this.listen("click",this.onClick);this.Z(B,"fullscreentoggled",this.rF);this.updateValue("title",g.UL(B,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer", icon:this.j.D("delhi_modern_web_player_icons")?{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:z?{B:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},S:[{B:"g",C:{transform:"translate(96, -96) scale(0.8)"},S:[{B:"path",i$:!0,C:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:Ppz()});ay(B,this.element,this);B.createClientVe(this.element,this,62946);this.rF()}; $_=function(B,z,T,R,h,W){W=W===void 0?!1:W;var b={B:"div",nf:["ytp-input-slider-section"],S:[{B:"input",G:"ytp-input-slider",C:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};h&&b.S.unshift(h);W&&b.nf.push("ytp-vertical-slider");g.O.call(this,b);this.Y=B;this.W=z;this.X=T;this.initialValue=R;this.header=h;this.U=this.BD("ytp-input-slider");this.T=R?R:B;this.init();this.Z(this.U,"input",this.OC);this.Z(this.U,"keydown", this.AP)}; Pr=function(B,z){B.T=z;B.updateValue("slidervalue",B.T);B.U.valueAsNumber=B.T;xyz(B,z)}; xyz=function(B,z){B.U.style.setProperty("--yt-slider-shape-gradient-percent",(z-B.Y)/(B.W-B.Y)*100+"%")}; vDz=function(B){var z=B.isMuted()?0:B.getVolume();$_.call(this,0,100,1,z,void 0,!0);this.j=B;this.J=oK(this.iP,10,this);this.L=!1;this.Z(B,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"keydown",this.AP);this.Z(this.element,"wheel",this.h9)}; DyK=function(B,z){g.O.call(this,{B:"div",C:{tabindex:"0",title:"Volume"},nf:["ytp-volume-popover"]});var T=this;this.isVisible=!1;this.tooltip=z.Hu();this.U=new vDz(B);g.m(this,this.U);this.U.Vu(this.element);this.T=new g.Si(function(){x_(T,!1)},300); this.listen("mouseenter",function(){T.T.stop()}); this.listen("mouseleave",function(){T.T.start()}); this.listen("focus",function(){T.T.stop()}); this.Z(this.U.U,"focus",function(){T.T.stop()}); this.listen("blur",function(){T.T.start()}); this.addOnDisposeCallback(g.Ad(z.Hu(),this.element,-120));g.m(this,this.T)}; x_=function(B,z){B.element.classList.toggle("ytp-volume-popover-hovering",z);B.isVisible=z}; vr=function(B,z,T){T=T===void 0?!1:T;g.O.call(this,{B:"button",nf:["ytp-mute-button","ytp-button"],C:B.K().zZ?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},S:[{B:"div",G:"ytp-volume-icon",Yd:"{{icon}}"}]});var R=this;this.j=B;this.lO=T;this.U=null;this.L=this.UE=this.J=this.RK=NaN;this.XE=this.N=null;this.X=[];this.W=[];this.visible=!1;this.Y=this.T=this.TZ=null;B.D("delhi_modern_web_player")&& this.update({"data-priority":4});T=this.j.K();this.updateValue("icon",kZ());this.tooltip=z.Hu();this.Y=g.t2("ytp-volume-icon",this.element);this.U=new g.oU({B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"defs",S:[{B:"clipPath",C:{id:"ytp-svg-volume-animation-mask"},S:[{B:"path",C:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{B:"path",C:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{B:"path",G:"ytp-svg-volume-animation-mover",C:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {B:"clipPath",C:{id:"ytp-svg-volume-animation-slash-mask"},S:[{B:"path",G:"ytp-svg-volume-animation-mover",C:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{B:"path",i$:!0,nf:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{"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"}},{B:"path",i$:!0,nf:["ytp-svg-fill","ytp-svg-volume-animation-hider"], C:{"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"}}]});g.m(this,this.U);this.N=this.U.BD("ytp-svg-volume-animation-speaker");this.XE=this.N.getAttribute("d");this.X=g.OS("ytp-svg-volume-animation-mover",this.U.element);this.W=g.OS("ytp-svg-volume-animation-hider",this.U.element);this.zZ=new EA;g.m(this,this.zZ);this.WD=new EA;g.m(this,this.WD);this.Z(B,"appresize",this.T8);this.Z(B,"onVolumeChange",this.onVolumeChange);B.D("delhi_modern_web_player")? this.listen("click",this.S2Z):this.listen("click",this.mB);T.zZ?B.D("delhi_modern_web_player")?(this.T=new DyK(B,z),this.T.Vu(this.element),g.m(this,this.T),this.Z(this.Y,"mouseover",function(){if(!R.j.t6()){var h;(h=R.T)!=null&&x_(h,!0);var W;(W=R.T)!=null&&W.T.stop()}}),this.Z(this.Y,"mouseout",function(){var h; (h=R.T)!=null&&h.T.start()}),this.addOnDisposeCallback(g.Ad(z.Hu(),this.element,-120))):this.addOnDisposeCallback(g.Ad(z.Hu(),this.element)):kwH(this); this.message=null;B.createClientVe(this.element,this,28662);this.T8(B.NG().getPlayerSize());this.setVolume(B.getVolume(),B.isMuted())}; nDz=function(B,z){B.RK=z;var T=B.XE;z&&(T+=s8X(KPH,myY,z));B.N.setAttribute("d",T)}; ubK=function(B,z){B.UE=z;for(var T=20*z,R=0;R=3&&B.j.getPresentingPlayerType()!==2}; tnX=function(B){var z=yx(B.j.bK());return z?B.T?z.K1():z.xs():!1}; fur=function(B){var z={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},T=B.playlist!=null&&B.playlist.K1();T=g.g4(B.j)&&(!B.T||T);var R=B.T&&g.xN(B.j),h=tnX(B),W=B.T&&B.j.getPresentingPlayerType()===5,b=g.UL(B.j,"Next","SHIFT+n"),l=g.UL(B.j,"Previous","SHIFT+p");if(W)z.title="Start video";else if(B.Y)z.title="Replay";else if(T){var w=null;B.playlist&&(w=g.rh(B.playlist,B.T?J3K(B.playlist):pdH(B.playlist)));if(w){if(w.videoId){var q=B.playlist.listId; z.url=B.j.K().getVideoUrl(w.videoId,q?q.toString():void 0)}z.text=w.title;z.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.JC(w.lengthSeconds):null;z.preview=w.VQ("mqdefault.jpg")}B.T?(z.title=b,z["data-title-no-tooltip"]="Next",z["aria-keyshortcuts"]="SHIFT+n"):(z.title=l,z["data-title-no-tooltip"]="Previous",z["aria-keyshortcuts"]="SHIFT+p")}else if(R){if(l=(w=B.videoData)==null?void 0:g.SL(w))z.url=l.Go(),z.text=l.title,z.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.JC(l.lengthSeconds): null,z.preview=l.VQ("mqdefault.jpg");z.title=b;z["data-title-no-tooltip"]="Next";z["aria-keyshortcuts"]="SHIFT+n"}z.disabled=!R&&!T&&!h&&!W;B.update(z);B.L=!!z.url;R||T||B.Y||h||W?B.U||(B.U=g.Ad(B.tooltip,B.element),B.X=B.listen("click",B.onClick,B)):B.U&&(B.U(),B.U=null,B.V2(B.X),B.X=null);B.tooltip.TR();g.L2(B.element,"ytp-playlist-ui",B.T&&(T||B.j.D("web_hide_next_button")))}; XAY=function(B,z){g.O.call(this,{B:"div",G:"ytp-fine-scrubbing",S:[{B:"div",G:"ytp-fine-scrubbing-draggable",S:[{B:"div",G:"ytp-fine-scrubbing-thumbnails",C:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{B:"div",C:{"aria-hidden":"true"},G:"ytp-fine-scrubbing-cursor"},{B:"div",G:"ytp-fine-scrubbing-seek-time",C:{"aria-hidden":"true"}, Yd:"{{seekTime}}"},{B:"div",G:"ytp-fine-scrubbing-play",S:[Pa()],C:{title:"Play from this position",role:"button"}},{B:"div",G:"ytp-fine-scrubbing-dismiss",S:[g.yy()],C:{title:"Exit precise seeking",role:"button"}}]});var T=this;this.api=B;this.X=this.BD("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.BD("ytp-fine-scrubbing-dismiss");this.WD=this.BD("ytp-fine-scrubbing-draggable");this.playButton=this.BD("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.lO=this.T=0;this.zZ=void 0; this.TZ=NaN;this.cD=this.N=this.Y=this.J=0;this.W=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.IK=0;this.isEnabled=this.XE=!1;jjd(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Ad(z,this.dismissButton));this.addOnDisposeCallback(g.Ad(z,this.playButton));this.RK=new g.nn(this.WD,!0);this.RK.subscribe("dragstart",this.OZ,this);this.RK.subscribe("dragmove",this.UZ,this);this.RK.subscribe("dragend",this.Uz,this);this.Z(B,"SEEK_COMPLETE",this.Yn);B.D("web_fix_fine_scrubbing_false_play")&& this.Z(B,"rootnodemousedown",function(R){T.UE=R}); this.X.addEventListener("keydown",function(){}); g.m(this,this.RK);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)}; jjd=function(B,z){var T=g.JC(z),R=g.Ix("Seek to $PROGRESS",{PROGRESS:g.JC(z,!0)});B.update({ariamin:0,ariamax:Math.floor(B.api.getDuration()),arianow:Math.floor(z),arianowtext:R,seekTime:T})}; ZTl=function(B){B.TZ=NaN;B.N=0;B.J=B.Y}; EDz=function(B){var z=B.api.QW();if(z){var T=90*B.scale,R=kO(z,160*B.scale);if(z=z.levels[R]){B.L=z.width;if(!B.W.length){R=[];for(var h=Kb(z,z.oS()),W=z.columns*z.rows,b=z.frameCount,l=0;l<=h;l++)for(var w=bB.W.length;)R= void 0,(R=B.thumbnails.pop())==null||R.dispose();for(;B.thumbnails.lengthT.length;)R=void 0,(R=B.U.pop())==null||R.dispose(); for(;B.U.length-T?-z/T*B.interval*.5:-(z+T/2)/T*B.interval}; SaY=function(B){return-((B.X.offsetWidth||(B.frameCount-1)*B.L*B.scale)-B.T/2)}; eGd=function(){g.O.call(this,{B:"div",G:"ytp-fine-scrubbing-thumbnail"})}; sjB=function(){g.O.call(this,{B:"div",G:"ytp-fine-scrubbing-chapter-title",S:[{B:"div",G:"ytp-fine-scrubbing-chapter-title-content",Yd:"{{chapterTitle}}"}]})}; zKP=function(B){g.O.call(this,{B:"div",G:"ytp-heat-map-chapter",S:[{B:"svg",G:"ytp-heat-map-svg",C:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{B:"defs",S:[{B:"clipPath",C:{id:"{{id}}"},S:[{B:"path",G:"ytp-heat-map-path",C:{d:"",fill:"white"}}]},{B:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},S:[{B:"stop",C:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{B:"stop",C:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{B:"rect",G:"ytp-heat-map-graph",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",G:"ytp-heat-map-hover",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",G:"ytp-heat-map-play",C:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{B:"path",G:"ytp-modern-heat-map",C:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=B;this.J=this.BD("ytp-heat-map-svg");this.X=this.BD("ytp-heat-map-path");this.W=this.BD("ytp-heat-map-graph");this.L=this.BD("ytp-heat-map-play");this.T=this.BD("ytp-heat-map-hover");this.Y=this.BD("ytp-modern-heat-map");this.u1=!1;this.U=60;B=""+g.RR(this);this.update({id:B});B="url(#"+B+")";this.W.setAttribute("clip-path",B);this.L.setAttribute("clip-path",B);this.T.setAttribute("clip-path", B)}; TDz=function(B,z){z>0&&(B.U=z,B.J.style.height=B.U+"px")}; ma=function(){g.O.call(this,{B:"div",G:"ytp-chapter-hover-container",S:[{B:"div",G:"ytp-progress-bar-padding"},{B:"div",G:"ytp-progress-list",S:[{B:"div",nf:["ytp-play-progress","ytp-swatch-background-color"]},{B:"div",G:"ytp-progress-linear-live-buffer"},{B:"div",G:"ytp-load-progress"},{B:"div",G:"ytp-hover-progress"},{B:"div",G:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.BD("ytp-progress-list");this.X=this.BD("ytp-progress-linear-live-buffer"); this.W=this.BD("ytp-ad-progress-list");this.L=this.BD("ytp-load-progress");this.J=this.BD("ytp-play-progress");this.Y=this.BD("ytp-hover-progress");this.T=this.BD("ytp-chapter-hover-container")}; no=function(B,z){g.Ml(B.T,"width",z)}; RKH=function(B,z){g.Ml(B.T,"margin-right",z+"px")}; hKX=function(){this.U=this.position=this.Y=this.T=this.W=this.width=NaN}; WCz=function(){g.O.call(this,{B:"div",G:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Hr=function(B,z){g.Gt.call(this,{B:"div",G:"ytp-progress-bar-container",C:{"aria-disabled":"true"},S:[{B:"div",nf:["ytp-heat-map-container"],S:[{B:"div",G:"ytp-heat-map-edu"}]},{B:"div",nf:["ytp-progress-bar"],C:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{B:"div",G:"ytp-chapters-container"},{B:"div",G:"ytp-timed-markers-container"},{B:"div",G:"ytp-clip-start-exclude"}, {B:"div",G:"ytp-clip-end-exclude"},{B:"div",G:"ytp-scrubber-container",S:[{B:"div",nf:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{B:"div",G:"ytp-scrubber-pull-indicator"},{B:"img",nf:["ytp-decorated-scrubber-button"]}]}]}]},{B:"div",nf:["ytp-fine-scrubbing-container"],S:[{B:"div",G:"ytp-fine-scrubbing-edu"}]},{B:"div",G:"ytp-bound-time-left",Yd:"{{boundTimeLeft}}"},{B:"div",G:"ytp-bound-time-right",Yd:"{{boundTimeRight}}"},{B:"div",G:"ytp-clip-start",C:{title:"{{clipstarttitle}}"},Yd:"{{clipstarticon}}"}, {B:"div",G:"ytp-clip-end",C:{title:"{{clipendtitle}}"},Yd:"{{clipendicon}}"}]});this.api=B;this.yn=!1;this.Ip=this.RQ=this.MG=this.X=this.BV=0;this.L2=null;this.yl=!1;this.IK={};this.s0={};this.clipEnd=Infinity;this.ra=this.BD("ytp-clip-end");this.pF=new g.nn(this.ra,!0);this.t0=this.BD("ytp-clip-end-exclude");this.fF=this.BD("ytp-clip-start-exclude");this.clipStart=0;this.JZ=this.BD("ytp-clip-start");this.S6=new g.nn(this.JZ,!0);this.TZ=this.U0=0;this.progressBar=this.BD("ytp-progress-bar");this.Dm= {};this.Kf={};this.eI=this.BD("ytp-chapters-container");this.Up=this.BD("ytp-timed-markers-container");this.T=[];this.L=[];this.tj={};this.mD=null;this.XE=-1;this.O0=this.zZ=0;this.XS=this.J=null;this.r3=this.BD("ytp-scrubber-button");this.WD=this.BD("ytp-decorated-scrubber-button");this.pk=this.BD("ytp-scrubber-container");this.aK=new g.pr;this.LF=0;this.ZS=new hKX;this.Y=new mF(0,0);this.VI=null;this.N=this.Qn=!1;this.Mg=null;this.UE=this.BD("ytp-heat-map-container");this.Nh=this.BD("ytp-heat-map-edu"); this.W=[];this.heatMarkersDecorations=[];this.EE=this.BD("ytp-fine-scrubbing-container");this.R7=this.BD("ytp-fine-scrubbing-edu");this.U=void 0;this.lO=this.qr=this.cD=!1;this.tooltip=z.Hu();this.addOnDisposeCallback(g.Ad(this.tooltip,this.ra));g.m(this,this.pF);this.pF.subscribe("hoverstart",this.oe,this);this.pF.subscribe("hoverend",this.e7,this);this.Z(this.ra,"click",this.Os);this.addOnDisposeCallback(g.Ad(this.tooltip,this.JZ));g.m(this,this.S6);this.S6.subscribe("hoverstart",this.oe,this); this.S6.subscribe("hoverend",this.e7,this);this.Z(this.JZ,"click",this.Os);b_z(this);this.Z(B,"resize",this.ox);this.Z(B,"presentingplayerstatechange",this.Tu);this.Z(B,"videodatachange",this.MK);this.Z(B,"videoplayerreset",this.iJ);this.Z(B,"cuerangesadded",this.XHE);this.Z(B,"cuerangesremoved",this.mru);this.Z(B,"onLoopRangeChange",this.Uj);this.Z(B,"innertubeCommand",this.onClickCommand);this.Z(B,"onRetroModeChanged",this.dhD);this.Z(B,g.YQ("timedMarkerCueRange"),this.t6K);this.Z(B,"updatemarkervisibility", this.Od);this.Z(B,"serverstitchedvideochange",this.VzJ);this.updateVideoData(B.getVideoData(),!0);this.Uj(B.getLoopRange());uY(this)&&!this.U&&(this.U=new XAY(this.api,this.tooltip),B=g.Pt(this.element).x||0,this.U.ox(B,this.X),this.U.Vu(this.EE),g.m(this,this.U),this.Z(this.U.dismissButton,"click",this.Iz),this.Z(this.U.playButton,"click",this.Cd),this.Z(this.U.element,"dblclick",this.Cd));this.api.createClientVe(this.UE,this,139609,!0);this.api.createClientVe(this.Nh,this,140127,!0);this.api.createClientVe(this.R7, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; b_z=function(B){if(B.T.length===0){var z=new ma;B.T.push(z);g.m(B,z);z.Vu(B.eI,0)}for(;B.T.length>1;)B.T.pop().dispose();no(B.T[0],"100%");B.T[0].startTime=0;B.T[0].title=""}; Ybr=function(B){var z=z===void 0?NaN:z;var T=new zKP(B.api);B.W.push(T);g.m(B,T);T.Vu(B.UE);z>=0&&(T.element.style.width=z+"px")}; lKX=function(B){for(;B.L.length;)B.L.pop().dispose()}; qbz=function(B){var z,T,R,h,W;return(W=g.u((h=g.u((z=B.getWatchNextResponse())==null?void 0:(T=z.playerOverlays)==null?void 0:(R=T.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,QB))==null?void 0:h.playerBar,wvK))==null?void 0:W.chapters}; i_P=function(B){for(var z=B.T,T=[],R=0;R=b&&A<=c&&W.push(C)}w>0&&(B.UE.style.height=w+"px");b=B.W[R];c=W;C=h;F=w;A=R===0;A=A===void 0?!1:A;TDz(b,F);L=c;r=b.U;A=A===void 0?!1:A;var a=1E3/L.length,V=[];V.push({x:0,y:100});for(var M=0;M0&&(T=W[W.length-1])}g.fo(B);l=[];z=g.d(z.heatMarkersDecorations||[]);for(h=z.next();!h.done;h=z.next())if(h=g.u(h.value,IKr))w=h.label,R=T=q=void 0,l.push({visibleTimeRangeStartMillis:(q=h.visibleTimeRangeStartMillis)!=null?q:-1,visibleTimeRangeEndMillis:(T=h.visibleTimeRangeEndMillis)!=null?T:-1,decorationTimeMillis:(R=h.decorationTimeMillis)!=null?R:NaN,label:w?g.aU(w):""});B.heatMarkersDecorations=l}}; CEY=function(B,z){B.L.push(z);g.m(B,z);z.Vu(B.Up,B.Up.children.length)}; ral=function(B,z){z=g.d(z);for(var T=z.next();!T.done;T=z.next()){T=T.value;var R=Oh(B,T.timeRangeStartMillis/(B.Y.T*1E3),NV(B)),h=B.api.D("delhi_modern_web_player")?.667:.6;g.Ml(T.element,"transform","translateX("+R+"px) scaleX("+h+")")}}; ca5=function(B,z){var T=0,R=!1;z=g.d(z);for(var h=z.next();!h.done;h=z.next()){h=h.value;if(g.u(h,d6X)){h=g.u(h,d6X);var W={startTime:NaN,title:null,onActiveCommand:void 0},b=h.title;W.title=b?g.aU(b):"";b=h.timeRangeStartMillis;b!=null&&(W.startTime=b);W.onActiveCommand=h.onActiveCommand;h=W;T===0&&h.startTime!==0&&(B.T[T].startTime=0,B.T[T].title="",B.T[T].onActiveCommand=h.onActiveCommand,T++,R=!0);B.T.length<=T&&(W=new ma,B.T.push(W),g.m(B,W),W.Vu(B.eI,B.eI.children.length));B.T[T].startTime= h.startTime;B.T[T].title=h.title?h.title:"";B.T[T].onActiveCommand=h.onActiveCommand;B.T[T].index=R?T-1:T}T++}for(;T=0;R--)if(B.T[R].width>0){RKH(B.T[R],0);var h=Math.floor(B.T[R].width);B.T[R].width=h;no(B.T[R],h+"px");break}B.T[T].width=0;no(B.T[T],"0")}else T===B.T.length-1?(R=Math.floor(B.T[T].width+z),B.T[T].width=R,no(B.T[T],R+"px")):(z=B.T[T].width+z,R=Math.round(z),z-=R,B.T[T].width=R,no(B.T[T],R+"px"));T=0;if(B.W.length===B.T.length)for(z=0;z< B.W.length;z++)R=B.T[z].width,B.W[z].element.style.width=R+"px",B.W[z].element.style.left=T+"px",T+=R+jo(B);B.api.D("delhi_modern_web_player")&&(B.T.length===1?B.T[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(B.T[0].U.classList.remove("ytp-progress-bar-end"),B.T[0].U.classList.add("ytp-progress-bar-start"),B.T[B.T.length-1].U.classList.add("ytp-progress-bar-end")))}; Aar=function(B,z){var T=0,R=!1,h=B.T.length,W=B.Y.T*1E3;W===0&&(W=B.api.getProgressState().seekableEnd*1E3);if(W>0&&B.X>0){for(var b=B.X-jo(B)*B.zZ,l=B.O0===0?3:b*B.O0,w=g.d(B.T),q=w.next();!q.done;q=w.next())q.value.width=0;for(;T1);q=(W===0?0:w/W*b)+B.T[T].width;if(q>l)B.T[T].width=q;else{B.T[T].width=0;var c=B,L=T,C=c.T[L-1];C!==void 0&&C.width>0? C.width+=q:LB.O0&&(B.O0=w/W),R=!0)}T++}}return R}; tU=function(B){if(B.X){var z=B.api.getProgressState(),T=B.api.getVideoData();if(!(T&&T.enableServerStitchedDai&&T.Kl)||isFinite(z.current)){var R;if(((R=B.api.getVideoData())==null?0:X1(R))&&z.airingStart&&z.airingEnd)var h=X4(B,z.airingStart,z.airingEnd);else if(B.api.getPresentingPlayerType()===2){var W,b,l;h=(T=(h=B.api.getVideoData())==null?void 0:(W=h.getPlayerResponse())==null?void 0:(b=W.playerConfig)==null?void 0:(l=b.webPlayerConfig)==null?void 0:l.skippableAdProgressBarDuration)?X4(B,z.seekableStart, T/1E3):X4(B,z.seekableStart,z.seekableEnd)}else h=X4(B,z.seekableStart,z.seekableEnd);W=n0(h,z.loaded,0);z=n0(h,z.current,0);b=B.Y.U!==h.U||B.Y.T!==h.T;B.Y=h;ZL(B,z,W);b&&aKl(B);U6z(B)}}}; X4=function(B,z,T){return MOB(B)?new mF(Math.max(z,B.VI.startTimeMs/1E3),Math.min(T,B.VI.endTimeMs/1E3)):new mF(z,T)}; Q1H=function(B,z){var T,R,h;z=g.u((T=z.getWatchNextResponse())==null?void 0:(R=T.playerOverlays)==null?void 0:(h=R.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,QB);if(z==null?0:z.progressColor)for(T=0;T1){T=eo(B,z.Y,!0);for(var R=0,h=0;h0&&(R+=B.T[h].width,R+=jo(B));T=(B.T[T].startTime+(z.Y-R)/B.T[T].width*((T===B.T.length-1?B.Y.T*1E3:B.T[T+1].startTime)-B.T[T].startTime))/1E3||0}return T}; Eh=function(B,z,T,R,h){z=z<0?0:Math.floor(Math.min(z,B.api.getDuration())*1E3);T=T<0?0:Math.floor(Math.min(T,B.api.getDuration())*1E3);B=B.progressBar.visualElement;R={seekData:{startMediaTimeMs:z,endMediaTimeMs:T,seekSource:R}};(z=g.gd())&&g.BP(Ba)(void 0,z,B,h,R,void 0)}; g4z=function(B,z,T){if(T>=B.T.length)return!1;var R=B.X-jo(B)*B.zZ;return Math.abs(z-B.T[T].startTime/1E3)/B.Y.T*R<4}; aKl=function(B){B.r3.style.removeProperty("height");for(var z=g.d(Object.keys(B.IK)),T=z.next();!T.done;T=z.next())JaK(B,T.value);So(B);ZL(B,B.TZ,B.U0)}; NV=function(B){var z=B.aK.x;z=g.yQ(z,0,B.X);B.ZS.update(z,B.X);return B.ZS}; z_=function(B){return(B.N?135:90)-Bd(B)}; Bd=function(B){var z=48,T=B.api.K();B.api.D("delhi_modern_web_player")?z=B.N?96:68:B.N?z=54:g.yW(T)&&!T.U&&(z=40);return z}; ZL=function(B,z,T){B.TZ=z;B.U0=T;var R=NV(B),h=B.Y.T;var W=B.Y;W=W.U+B.TZ*W.getLength();var b=g.Ix("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.JC(W,!0),DURATION:g.JC(h,!0)}),l=Y_(B.T,W*1E3);l=B.T[l].title;B.update({ariamin:Math.floor(B.Y.U),ariamax:Math.floor(h),arianow:Math.floor(W),arianowtext:l?l+" "+b:b});h=B.clipStart;W=B.clipEnd;B.VI&&B.api.getPresentingPlayerType()!==2&&(h=B.VI.startTimeMs/1E3,W=B.VI.endTimeMs/1E3);h=n0(B.Y,h,0);l=n0(B.Y,W,1);b=B.api.getVideoData();W=g.yQ(z,h,l);T=(b==null? 0:g.Np(b))?1:g.yQ(T,h,l);z=Oh(B,z,R);g.Ml(B.pk,"transform","translateX("+z+"px)");B.api.D("delhi_modern_web_player")&&B.api.D("delhi_modern_web_player_cutout")&&pvB(B,z);T_(B,R,h,W,"PLAY_PROGRESS");(b==null?0:X1(b))?(z=B.api.getProgressState().seekableEnd)&&T_(B,R,W,n0(B.Y,z),"LIVE_BUFFER"):T_(B,R,h,T,"LOAD_PROGRESS");if(B.api.D("web_player_heat_map_played_bar")){var w;(w=B.W[0])!=null&&w.L.setAttribute("width",(W*100).toFixed(2)+"%")}}; pvB=function(B,z){B.api.getPresentingPlayerType()!==1?B.eI.style.removeProperty("clip-path"):(z||(z=Oh(B,B.TZ,NV(B))),B.eI.style.clipPath='path("'+(B.yl?$6K(B,8,z,B.N?50:36,0,6):$6K(B,4,z,B.N?34:24,2,3))+'")')}; $6K=function(B,z,T,R,h,W){var b=T-R/2;T+=R/2;z+=h;return"M 0 "+h+" L 0 "+(z+" L ")+(b+" "+z+" C ")+(b+W+" "+z+" "+(b+W)+" "+h+" "+b+" "+h+" L 0 ")+(h+" M ")+(T+" "+h+" L ")+(B.X+" "+h+" L ")+(B.X+" "+z+" L ")+(T+" "+z+" C ")+(T-W+" "+z+" "+(T-W)+" "+h+" "+T+" "+h)}; T_=function(B,z,T,R,h){var W=B.T.length,b=z.T-B.zZ*jo(B),l=T*b;T=eo(B,l);var w=R*b;b=eo(B,w);h==="HOVER_PROGRESS"&&(b=eo(B,z.T*R,!0),w=z.T*R-PE5(B,z.T*R)*jo(B));R=Math.max(l-x6H(B,T),0);for(l=T;l=B.T.length)return B.X;for(var T=0,R=0;R0||B.t0.clientWidth>0?(W=z.clientWidth/T,B=-1*B.fF.clientWidth/T):(W/=T,B=-1*B.T[h].element.offsetLeft/T),g.Ml(z,"background-size",W+"px"),g.Ml(z,"background-position-x",B+"px"))}; Rq=function(B,z,T,R,h){h||B.api.K().U?z.style.width=T+"px":g.Ml(z,"transform","scalex("+(R?T/R:0)+")")}; eo=function(B,z,T){var R=0;(T===void 0?0:T)&&(z-=PE5(B,z)*jo(B));T=g.d(B.T);for(var h=T.next();!h.done;h=T.next()){h=h.value;if(z>h.width)z-=h.width;else break;R++}return R===B.T.length?R-1:R}; Oh=function(B,z,T){var R=z*B.Y.T*1E3;for(var h=-1,W=g.d(B.T),b=W.next();!b.done;b=W.next())b=b.value,R>b.startTime&&b.width>0&&h++;R=h<0?0:h;h=T.T-jo(B)*B.zZ;return z*h+jo(B)*R+T.W}; PE5=function(B,z){for(var T=B.T.length,R=0,h=g.d(B.T),W=h.next();!W.done;W=h.next())if(W=W.value,W.width!==0)if(z>W.width)z-=W.width,z-=jo(B),R++;else break;return R===T?T-1:R}; g.kMY=function(B,z,T,R){var h=B.X!==T,W=B.N!==R;B.BV=z;B.X=T;B.N=R;uY(B)&&(z=B.U)!=null&&(z.scale=R?1.5:1);aKl(B);B.T.length===1&&(B.T[0].width=T||0);h&&g.fo(B);B.U&&W&&uY(B)&&(B.U.isEnabled&&(T=B.N?135:90,R=T-Bd(B),B.EE.style.height=T+"px",g.Ml(B.UE,"transform","translateY("+-R+"px)"),g.Ml(B.progressBar,"transform","translateY("+-R+"px)")),EDz(B.U))}; So=function(B){var z=!!B.VI&&B.api.getPresentingPlayerType()!==2,T=B.clipStart,R=B.clipEnd,h=!0,W=!0;z&&B.VI?(T=B.VI.startTimeMs/1E3,R=B.VI.endTimeMs/1E3):(h=T>B.Y.U,W=B.Y.T>0&&RB.TZ);g.L2(B.r3,"ytp-scrubber-button-hover",T===R&&B.T.length>1);if(B.api.D("web_player_heat_map_played_bar")){var W;(W=B.W[0])!=null&&W.T.setAttribute("width",(z.U*100).toFixed(2)+"%")}}}; JaK=function(B,z){var T=B.IK[z];z=B.s0[z];var R=NV(B),h=n0(B.Y,T.start/1E3,0),W=dId(T,B.N)/R.width;var b=n0(B.Y,T.end/1E3,1);W!==Number.POSITIVE_INFINITY&&(h=g.yQ(h,0,b-W));b=Math.min(b,h+W);T.color&&(z.style.background=T.color);T=h;z.style.left=Math.max(T*R.T+R.W,0)+"px";Rq(B,z,g.yQ((b-T)*R.T+R.W,0,R.width),R.width,!0)}; KCz=function(B,z){var T=z.getId();B.IK[T]===z&&(g.RK(B.s0[T]),delete B.IK[T],delete B.s0[T])}; uY=function(B){var z=g.Zf(B.api.K())&&(B.api.D("web_shorts_pip")||B.api.D("web_watch_pip")),T;return!((T=B.api.getVideoData())==null?0:T.isLivePlayback)&&!B.api.isMinimized()&&!B.api.isInline()&&(!B.api.Hv()||!z)}; h3=function(B){B.U&&(B.U.disable(),B.MG=0,B.UE.style.removeProperty("transform"),B.progressBar.style.removeProperty("transform"),B.EE.style.removeProperty("height"),B.element.parentElement&&B.element.parentElement.style.removeProperty("height"))}; m6H=function(B,z){var T=z/z_(B)*Bd(B);g.Ml(B.progressBar,"transform","translateY("+-z+"px)");g.Ml(B.UE,"transform","translateY("+-z+"px)");g.Ml(B.EE,"transform","translateY("+T+"px)");B.EE.style.height=z+T+"px";B.element.parentElement&&(B.element.parentElement.style.height=Bd(B)-T+"px")}; n45=function(B,z){z?B.J||(B.element.removeAttribute("aria-disabled"),B.J=new g.nn(B.progressBar,!0),B.J.subscribe("hovermove",B.MFO,B),B.J.subscribe("hoverend",B.J0K,B),B.J.subscribe("dragstart",B.ZFf,B),B.J.subscribe("dragmove",B.pcF,B),B.J.subscribe("dragend",B.Kli,B),B.api&&B.api.D("delhi_modern_web_player")&&B.api.D("delhi_modern_web_player_cutout")&&(B.XS=new g.nn(B.progressBar,!0),B.XS.subscribe("hoverstart",function(){B.yl=!0;pvB(B)},B),B.XS.subscribe("hoverend",function(){B.yl=!1; pvB(B)},B)),B.Mg=B.listen("keydown",B.gp)):B.J&&(B.element.setAttribute("aria-disabled","true"),B.V2(B.Mg),B.J.cancel(),B.J.dispose(),B.J=null)}; jo=function(B){return B.api.D("delhi_modern_web_player")?4:B.N?3:2}; MOB=function(B){var z;return!((z=B.VI)==null||!z.postId)&&B.api.getPresentingPlayerType()!==2}; Wd=function(B,z){g.O.call(this,{B:"button",nf:["ytp-remote-button","ytp-button"],C:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},Yd:"{{icon}}"});this.j=B;this.WB=z;this.T=null;this.Z(B,"onMdxReceiversChange",this.rF);this.Z(B,"presentingplayerstatechange",this.rF);this.Z(B,"appresize",this.rF);B.createClientVe(this.element,this,139118);this.rF();this.listen("click",this.U,this);ay(B,this.element,this)}; bR=function(B,z){g.O.call(this,{B:"button",nf:["ytp-button","ytp-settings-button"],C:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":r2(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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.va()]});this.j=B;this.WB=z;this.U=!0;this.listen("click",this.Y);this.Z(B,"onPlaybackQualityChange",this.updateBadge);this.Z(B,"videodatachange",this.updateBadge);this.Z(B,"webglsettingschanged",this.updateBadge);this.Z(B,"appresize",this.T);ay(B,this.element,this);this.j.createClientVe(this.element,this,28663);this.updateBadge();this.T(B.NG().getPlayerSize())}; uvY=function(B,z){B.U=!!z;B.T(B.j.NG().getPlayerSize())}; YE=function(B,z){RM.call(this,"Annotations",g.wQ.HA);this.j=B;this.WB=z;this.T=!1;B.D("web_settings_menu_icons")&&(z=B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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(z));this.Z(B,"videodatachange",this.rF);this.Z(B,"onApiChange",this.rF);this.subscribe("select",this.onSelect,this);this.rF()}; lR=function(B,z){g.kJ.call(this,"Audio track",g.wQ.AUDIO,B,z);this.j=B;this.tracks={};g.ww(this.element,"ytp-audio-menu-item");this.countLabel=new g.O({B:"div",S:[{B:"span",Yd:"Audio track"},{B:"span",G:"ytp-menuitem-label-count",Yd:"{{content}}"}]});B.D("web_settings_menu_icons")&&this.setIcon($wz());g.m(this,this.countLabel);g.OL(this,this.countLabel);this.Z(B,"videodatachange",this.rF);this.Z(B,"onPlaybackAudioChange",this.rF);this.rF()}; wC=function(B,z){RM.call(this,"Autoplay",g.wQ.KW);this.j=B;this.WB=z;this.T=!1;this.Y=[];this.Z(B,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);B.createClientVe(this.element,this,113682);this.U()}; H_l=function(B,z){g.N2.call(this,g.td({"aria-haspopup":"false"}),0,"More options");this.j=B;this.WB=z;this.Z(this.element,"click",this.onClick);this.WB.Fu(this)}; fKB=function(B,z){var T;g.Zf(B.K())&&(T={B:"div",G:"ytp-panel-footer-content",S:[{B:"span",Yd:"Adjust download quality from your "},{B:"a",G:"ytp-panel-footer-content-link",Yd:"Settings",C:{href:"/account_downloads"}}]});g.kJ.call(this,"Quality",g.wQ.G$,B,z,void 0,void 0,T);this.j=B;this.WD={};this.N={};this.W={};this.RK=new Set;this.T=this.X=!1;this.L="unknown";this.TZ="";this.UE=new g.Zj;g.m(this,this.UE);this.X=this.j.D("web_player_use_new_api_for_quality_pullback");this.T=this.j.D("web_player_enable_premium_hbr_playback_cap"); B.D("web_settings_menu_icons")&&(z=B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{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(z));g.ww(this.U.element,"ytp-quality-menu");this.Z(B,"videodatachange",this.U3);this.Z(B,"videoplayerreset",this.U3);this.Z(B,"onPlaybackQualityChange",this.Oj);this.U3();B.createClientVe(this.element,this,137721)}; NDB=function(B,z,T){var R=B.WD[z],h=g.nW[z];return O_X(B,R?R.qualityLabel:h?h+"p":"Auto",z,T)}; tOb=function(B,z,T,R,h){var W=(z=B.T?B.W[z]:B.N[z])&&z.quality,b=z&&z.qualityLabel;b=b?b:"Auto";R&&(b="("+b);B=O_X(B,b,W||"",h);R&&B.S.push(")");(R=(R=z&&z.paygatedQualityDetails)&&R.paygatedIndicatorText)&&T&&B.S.push({B:"div",G:"ytp-premium-label",Yd:R});return B}; O_X=function(B,z,T,R){z={B:"span",nf:R,S:[z]};var h;R="ytp-swatch-color";if(B.X||B.T)R="ytp-swatch-color-white";T==="highres"?h="8K":T==="hd2880"?h="5K":T==="hd2160"?h="4K":T.indexOf("hd")===0&&T!=="hd720"&&(h="HD");h&&(z.S.push(" "),z.S.push({B:"sup",G:R,Yd:h}));return z}; qf=function(B){$_.call(this,B.getAvailablePlaybackRates()[0],B.getAvailablePlaybackRates()[B.getAvailablePlaybackRates().length-1],.05,B.getPlaybackRate(),{B:"div",G:"ytp-speedslider-indicator-container",S:[{B:"div",G:"ytp-speedslider-badge"},{B:"p",G:"ytp-speedslider-text"}]});this.j=B;this.J=oK(this.N,50,this);g.ww(this.U,"ytp-speedslider");this.L=this.BD("ytp-speedslider-text");this.UE=this.BD("ytp-speedslider-badge");j1K(this);this.Z(this.U,"change",this.TZ)}; j1K=function(B){B.L.textContent=B.T+"x";B.UE.classList.toggle("ytp-speedslider-premium-badge",B.T>2&&B.j.D("enable_web_premium_varispeed"))}; iR=function(B,z,T,R,h,W,b){g.O.call(this,{B:"div",G:"ytp-slider-section",C:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{B:"div",G:"ytp-slider",S:[{B:"div",G:"ytp-slider-handle"}]}]});this.J=B;this.N=z;this.U=T;this.Y=R;this.TZ=h;this.XE=W;this.range=this.Y-this.U;this.zZ=this.BD("ytp-slider-section");this.W=this.BD("ytp-slider");this.UE=this.BD("ytp-slider-handle");this.L=new g.nn(this.W, !0);this.T=b?b:T;g.m(this,this.L);this.L.subscribe("dragmove",this.Wl,this);this.Z(this.element,"keydown",this.bP);this.Z(this.element,"wheel",this.QB);this.init()}; cd=function(B){iR.call(this,.05,.05,B.getAvailablePlaybackRates()[0],B.getAvailablePlaybackRates()[B.getAvailablePlaybackRates().length-1],150,20,B.getPlaybackRate());this.j=B;this.X=g.ES("P");this.RK=oK(this.WD,50,this);g.ww(this.W,"ytp-speedslider");g.ww(this.X,"ytp-speedslider-text");B=this.X;var z=this.W;z.parentNode&&z.parentNode.insertBefore(B,z.nextSibling);XvY(this);this.Z(this.j,"onPlaybackRateChange",this.updateValues)}; XvY=function(B){B.X.textContent=Z_z(B,B.T)+"x"}; Z_z=function(B,z){B=Number(g.yQ(z,B.U,B.Y).toFixed(2));z=Math.floor((B+.001)*100%5+2E-15);var T=B;z!==0&&(T=B-z*.01);return Number(T.toFixed(2))}; eKY=function(B){g.Gt.call(this,{B:"div",G:"ytp-speedslider-component"});B.D("web_settings_use_input_slider")?this.T=new qf(B):this.T=new cd(B);g.m(this,this.T);this.element.appendChild(this.T.element)}; s1X=function(B){var z=new eKY(B);Vu.call(this,B,z,"Custom");g.m(this,z)}; E4P=function(B,z){var T=new s1X(B);g.kJ.call(this,"Playback speed",g.wQ.Jh,B,z,Lx(B)?void 0:"Custom",Lx(B)?void 0:function(){g.J0(z,T)}); var R=this;this.W=!1;g.m(this,T);this.L=new qf(B);g.m(this,this.L);if(B.D("web_settings_menu_icons")){var h=B.D("delhi_modern_web_player_icons")?{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{B:"path",C:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(h)}this.j=B;this.W=!1;this.TZ=null;Lx(B)?(this.T=g.Ix("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.j.getPlaybackRate().toString()}),this.X=this.j.getPlaybackRate()):this.X=this.T=null;this.N=this.j.getAvailablePlaybackRates();this.Z(B,"presentingplayerstatechange",this.rF);var W;((W=this.j.getVideoData())==null?0:W.Gz())&&this.Z(B,"serverstitchedvideochange",this.rF);this.Z(this.L.U,"change",function(){R.W=!0;R.rF()}); this.rF()}; Sbz=function(B,z){var T=Cx(z);B.T&&(B.W||z===B.X)?(B.hk(B.T),B.oI(z.toString())):B.hk(T)}; zUK=function(B){B.n1(B.N.map(Cx));B.T=null;B.X=null;var z=B.j.getPlaybackRate();Lx(B.j)&&BT5(B,z);!B.N.includes(z)||B.W?B.hk(B.T):B.hk(Cx(z))}; BT5=function(B,z){B.X=z;B.T=g.Ix("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:z.toString()});z=B.N.map(Cx);z.unshift(B.T);B.n1(z)}; Cx=function(B){return B.toString()}; Lx=function(B){return B.D("web_settings_menu_surface_custom_playback")}; TTX=function(B){return B.D("web_settings_menu_surface_custom_playback")&&B.D("web_settings_use_input_slider")}; hUB=function(B,z,T,R){var h=new g.Qu(z,void 0,"Video Override");g.kJ.call(this,R.text||"",B,z,T,"Video Override",function(){g.J0(T,h)}); var W=this;g.ww(this.element,"ytp-subtitles-options-menu-item");this.setting=R.option.toString();B=R.options;this.settings=g.mK(B,this.YP,this);this.X=h;g.m(this,this.X);z=new g.N2({B:"div",G:"ytp-menuitemtitle",Yd:"Allow for a different caption style if specified by the video."},0);g.m(this,z);this.X.Fu(z,!0);this.W=new g.N2({B:"div",G:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},S:[{B:"div",G:"ytp-menuitem-label",Yd:"On"}]},-1);g.m(this,this.W);this.X.Fu(this.W,!0);this.Z(this.W.element, "click",function(){RUK(W,!0)}); this.T=new g.N2({B:"div",G:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},S:[{B:"div",G:"ytp-menuitem-label",Yd:"Off"}]},-2);g.m(this,this.T);this.X.Fu(this.T,!0);this.Z(this.T.element,"click",function(){RUK(W,!1)}); this.n1(g.s9(B,this.YP))}; RUK=function(B,z){B.publish("settingChange",B.setting+"Override",!z);B.WB.UX()}; rC=function(B,z){g.Qu.call(this,B,void 0,"Options");var T=this;this.zQ={};for(var R=0;R=0);if(!(z<0||z===B.W)){B.W=z;z=243*B.scale;var T=141*B.scale,R=Qir(B.U,B.W,z);Qjb(B.bg,R,z,T,!0);B.TZ.start()}}; Pkz=function(B){var z=B.T;B.type===3&&B.UE.stop();B.api.removeEventListener("appresize",B.N);B.L||z.setAttribute("title",B.Y);B.Y="";B.T=null;B.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});B.wrapper.style.width=""}; vMB=function(B){g.O.call(this,{B:"button",nf:["ytp-watch-later-button","ytp-button"],C:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.yW(B.K()))},S:[{B:"div",G:"ytp-watch-later-icon",Yd:"{{icon}}"},{B:"div",G:"ytp-watch-later-title",Yd:"Watch later"}]});this.j=B;this.icon=null;this.visible=this.isRequestPending=this.T=!1;WGK(B);B.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Z(B,"videoplayerreset",this.onReset);this.Z(B,"appresize", this.Yf);this.Z(B,"videodatachange",this.Yf);this.Z(B,"presentingplayerstatechange",this.Yf);this.Yf();B=this.j.K();var z=g.kK("yt-player-watch-later-pending");B.W&&z?(X8r(),xdK(this)):this.rF(2);g.L2(this.element,"ytp-show-watch-later-title",g.yW(B));ay(this.j,this.element,this)}; DdB=function(B){var z=B.j.getPlayerSize(),T=B.j.K(),R=B.j.getVideoData(),h=g.yW(T)&&g.g4(B.j)&&g.X(B.j.getPlayerStateObject(),128),W=T.Y;return T.S6&&z.width>=240&&!R.isAd()&&R.S6&&!h&&!g.Zr(R)&&!B.j.isEmbedsShortsMode()&&!W}; kAX=function(B,z){nBz(g.Of(B.j.K()),"wl_button",function(){X8r({videoId:z});window.location.reload()})}; xdK=function(B){if(!B.isRequestPending){B.isRequestPending=!0;B.rF(3);var z=B.j.getVideoData();z=B.T?z.removeFromWatchLaterCommand:z.addToWatchLaterCommand;var T=B.j.Ju(),R=B.T?function(){B.T=!1;B.isRequestPending=!1;B.rF(2);B.j.K().J&&B.j.uO("WATCH_LATER_VIDEO_REMOVED")}:function(){B.T=!0; B.isRequestPending=!1;B.rF(1);B.j.K().U&&B.j.z_(B.element);B.j.K().J&&B.j.uO("WATCH_LATER_VIDEO_ADDED")}; s4(T,z).then(R,function(){B.isRequestPending=!1;B.rF(4,"An error occurred. Please try again later.");B.j.K().J&&B.j.uO("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; KqX=function(B,z){if(z!==B.icon){switch(z){case 3:var T=Yj();break;case 1:T=MI();break;case 2:T={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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:T={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path", i$:!0,C:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}B.updateValue("icon",T);B.icon=z}}; g.J3=function(){g.Nb.apply(this,arguments);this.Ex=(this.ir=g.yW(this.api.K()))&&(this.api.K().U||Th()||BZ());this.o0=48;this.fz=69;this.UF=this.Kp=null;this.qm=[];this.aU=this.cV=this.h2=this.Im=this.LQ=null;this.pD=[];this.JG=this.contextMenu=this.Cx=this.overflowButton=this.nX=this.R_=this.searchButton=this.copyLinkButton=this.shareButton=this.NU=this.WH=this.title=this.channelAvatar=this.RO=this.tooltip=null;this.Lz=!1;this.Lb=this.QH=this.I6=this.Lv=null;this.a5=this.sD=this.Uo=!1}; mdH=function(B){var z=B.api.K(),T=g.X(B.api.getPlayerStateObject(),128);return z.W&&T&&!B.api.isFullscreen()}; nMH=function(B){if(B.UN()&&!B.api.isEmbedsShortsMode()&&B.nX){var z=B.api.D("web_player_hide_overflow_button_if_empty_menu");!B.NU||z&&!DdB(B.NU)||Hdd(B.nX,B.NU);!B.shareButton||z&&!bTH(B.shareButton)||Hdd(B.nX,B.shareButton);!B.copyLinkButton||z&&!Tvd(B.copyLinkButton)||Hdd(B.nX,B.copyLinkButton)}else{z=B.api.K().getWebPlayerContextConfig();if(B.nX){for(var T=B.nX,R=g.d(T.actionButtons),h=R.next();!h.done;h=R.next())h.value.detach();T.actionButtons=[]}B.searchButton&&!g.hm(B.WH.element,B.searchButton.element)&& B.searchButton.Vu(B.WH.element);!B.NU||(z==null?0:z.hideTopWatchNextButton)||g.hm(B.WH.element,B.NU.element)||B.NU.Vu(B.WH.element);!B.shareButton||(z==null?0:z.hideTopShareButton)||g.hm(B.WH.element,B.shareButton.element)||B.shareButton.Vu(B.WH.element);B.copyLinkButton&&!g.hm(B.WH.element,B.copyLinkButton.element)&&B.copyLinkButton.Vu(B.WH.element)}}; uq5=function(B,z,T){z=T?z.lastElementChild:z.firstElementChild;for(var R=null;z;){if(yC(z,"display")!=="none"&&z.getAttribute("aria-hidden")!=="true"){var h=void 0;z.tabIndex>=0?h=z:h=uq5(B,z,T);h&&(R?T?h.tabIndex>R.tabIndex&&(R=h):h.tabIndexR/1E3+1)return{msg:"in-the-past"};if(W.isLivePlayback&&!isFinite(R))return{msg:"live-infinite"};(R=z.Wu())&&R.isView()&&(R=R.mediaElement);if(R&&R.ZC().length>12&&g.IY(h))return{msg:"played-ranges"};if(!h.Y)return null;if(!b)return{msg:"no-pvd-formats"};if(!h.Y.T||!b.T)return{msg:"non-dash"};R=b.videoInfos[0];var l=h.Y.videoInfos[0];B.N&&RY(W)&&(R=z.RT(),l= T.RT());if(!R||!l)return{msg:"no-video-info"};if(B.W&&(Za(R)||Za(l)))return{msg:"av1"};z=B.U&&W.mP()&&NM();if(l.containerType!==R.containerType)if(z)W.OE("sgap",{ierr:"container"});else return{msg:"container"};if(B.Y&&!z&&(l.Ai!==R.Ai||l.Ai===""||R.Ai===""))return{msg:"codec"};if(B.V&&l.video&&R.video&&Math.abs(l.video.width/l.video.height-R.video.width/R.video.height)>.01)return{msg:"ratio"};if(g.IY(W)&&g.IY(h))return{msg:"content-protection"};b=b.T[0];h=h.Y.T[0];T=b.audio;var w=h.audio;if(T.sampleRate!== w.sampleRate&&!g.PG)if(z)W.OE("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:b.itag,cr:T.sampleRate,ni:h.itag,nr:w.sampleRate};return(T.numChannels||2)!==(w.numChannels||2)?{msg:"channel-count"}:B.L&&W.mP()&&R.video.fps!==l.video.fps?{msg:"fps"}:null}; NT5=function(B,z,T){var R=B.getVideoData(),h=z.getVideoData();if(!R.K().supportsGaplessShorts())return{nq:"env"};if(T.J?R.o_&&!R.isAd()||h.o_&&!h.isAd():T.T?R.o_&&!R.isAd()||h.o_:R.o_||h.o_)return{nq:"autoplay"};if(T.X&&R.endSeconds>0)return{nq:"endcr"};if(!R.L)return{nq:"client"};if(!B.jw())return{nq:"no-empty"};B=OwX(T,B,z,Infinity);return B!=null?{nq:B.msg}:null}; Pd=function(B){g.K.call(this);this.app=B;this.V=this.W=this.U=this.T=null;this.Y=1;this.events=new g.kb(this);this.events.Z(this.app.Lf,g.lu("gaplessshortslooprange"),this.J);g.m(this,this.events)}; t_K=function(){this.X=this.V=this.T=this.J=this.W=this.N=this.L=this.Y=this.U=!1}; jkK=function(B){var z=new t_K;z.U=B.D("h5_gapless_support_types_diff");z.L=B.D("h5_gapless_error_on_fps_diff");z.N=B.D("html5_gapless_use_format_info_fix");z.W=B.D("html5_gapless_disable_on_av1")&&!B.D("html5_gapless_enable_on_av1");z.Y=B.D("html5_gapless_check_codec_diff_strictly");z.J=B.D("html5_gapless_on_ad_autoplay");z.V=B.D("html5_gapless_disable_diff_aspect_radio");z.X=B.D("html5_gapless_disable_on_end_cue_range");z.T=B.D("html5_gapless_ad_autoplay_on_ad_to_video_only");return z}; g.xE=function(B,z,T,R){R=R===void 0?!1:R;z2.call(this);this.mediaElement=B;this.start=z;this.end=T;this.T=R}; XCB=function(B,z,T,R,h,W){W=W===void 0?0:W;g.K.call(this);var b=this;this.policy=B;this.T=z;this.U=T;this.xi=h;this.V=W;this.W=this.Y=null;this.currentVideoDuration=this.X=-1;this.L=!1;this.Yj=new Bq;this.Rc=R-z.p4()*1E3;this.Yj.then(void 0,function(){}); this.timeout=new g.Si(function(){b.gE("timeout")},1E4); g.m(this,this.timeout);this.J=isFinite(R)||this.xi.K().experiments.Cf("html5_pseudogapless_shorts")&&RY(z.getVideoData());this.status={status:0,error:null}}; skH=function(B){var z,T,R,h,W,b,l,w,q,c;return g.D(function(L){if(L.U==1){if(B.xd())return L.return(Promise.reject(Error(B.status.error||"disposed")));B.timeout.start();z=g.vd.vM();return g.P(L,B.Yj,2)}g.vd.mN("gtfta",z);T=B.T.Wu();if(T.isEnded())return B.gE("ended_in_finishTransition"),L.return(Promise.reject(Error(B.status.error||"")));if(!B.W||!XB(B.W))return B.gE("next_mse_closed"),L.return(Promise.reject(Error(B.status.error||"")));if(B.U.GG()!==B.W)return B.gE("next_mse_mismatch"),L.return(Promise.reject(Error(B.status.error|| "")));R=ZwP(B);h=R.hd;W=R.sV;b=R.Za;B.T.Fl(!1,!0);l=eUl(T,h,b,!B.U.getVideoData().isAd());B.U.setMediaElement(l);(w=B.T.sI())&&B.U.kS(w.Dv,w.lN);B.J&&(B.U.seekTo(B.U.getCurrentTime()+.001,{eE:!0,aW:3,Dx:"gapless_pseudo"}),l.play(),vP());q=T.NS();q.cpn=B.T.getVideoData().clientPlaybackNonce;q.st=""+h;q.et=""+b;B.U.OE("gapless",q);B.T.OE("gaplessTo",{cpn:B.U.getVideoData().clientPlaybackNonce});c=B.T.getPlayerType()===B.U.getPlayerType();B.T.Zl(W,!0,!1,c,B.U.getVideoData().clientPlaybackNonce);B.U.Zl(B.U.getCurrentTime(), !0,!0,c,B.T.getVideoData().clientPlaybackNonce);g.MW(function(){!B.U.getVideoData().zZ&&B.U.getPlayerState().isOrWillBePlaying()&&B.U.EL()}); DX(B,6);B.dispose();return L.return(Promise.resolve())})}; zsz=function(B){if(B.U.getVideoData().Y){var z=B.xi.K().D("html5_gapless_suspend_next_loader")&&B.V===1;B.U.pG(B.W,z,EMY(B));DX(B,3);SXH(B);var T=Bxl(B);z=T.P2;T=T.Ni;z.subscribe("updateend",B.Ey,B);T.subscribe("updateend",B.Ey,B);B.Ey(z);B.Ey(T)}}; SXH=function(B){B.T.unsubscribe("internalvideodatachange",B.JQ,B);B.U.unsubscribe("internalvideodatachange",B.JQ,B);B.xi.K().D("html5_gapless_use_format_info_fix")&&(B.T.unsubscribe("internalvideoformatchange",B.JQ,B),B.U.unsubscribe("internalvideoformatchange",B.JQ,B));B.T.unsubscribe("mediasourceattached",B.JQ,B);B.U.unsubscribe("statechange",B.Wo,B)}; eUl=function(B,z,T,R){B=B.isView()?B.mediaElement:B;return new g.xE(B,z,T,R)}; DX=function(B,z){z<=B.status.status||(B.status={status:z,error:null},z===5&&B.Yj.resolve())}; EMY=function(B){return B.xi.K().D("html5_gapless_no_clear_buffer_timeline")&&B.V===1&&bs(B.T.getVideoData())}; ZwP=function(B){var z=B.T.Wu();z=z.isView()?z.start:0;var T=B.T.getVideoData().isLivePlayback?Infinity:B.T.Iq(!0);T=Math.min(B.Rc/1E3,T)+z;var R=B.J?100:0;B=T-B.U.Aj()+R;return{dn:z,hd:B,sV:T,Za:Infinity}}; Bxl=function(B){return{P2:B.Y.T.TY,Ni:B.Y.U.TY}}; kE=function(B){g.K.call(this);var z=this;this.app=B;this.V=this.U=this.T=null;this.J=!1;this.Y=this.W=null;this.L=jkK(this.app.K());this.X=function(){g.MW(function(){Tx5(z)})}}; Rsd=function(B,z,T,R,h){R=R===void 0?0:R;h=h===void 0?0:h;B.jw()||Kx(B);B.W=new Bq;B.T=z;var W=T,b=h===0;b=b===void 0?!0:b;var l=B.app.Ji(),w=l.getVideoData().isLivePlayback?Infinity:l.Iq(!0)*1E3;W>w&&(W=w-200,B.J=!0);b&&l.getCurrentTime()>=W/1E3?B.X():(B.U=l,b&&(b=W,W=B.U,B.app.Lf.addEventListener(g.YQ("vqueued"),B.X),b=isFinite(b)||b/1E3>W.getDuration()?b:0x8000000000000,B.V=new g.Wj(b,0x8000000000000,{namespace:"vqueued"}),W.addCueRange(B.V)));b=R/=1E3;W=z.getVideoData().T;R&&W&&B.U&&(l=R,w=0, z.getVideoData().isLivePlayback&&(b=Math.min(T/1E3,B.U.Iq(!0)),w=Math.max(0,b-B.U.getCurrentTime()),l=Math.min(R,z.Iq()+w)),b=QDB(W,l)||R,b!==R&&B.T.OE("qvaln",{st:R,at:b,rm:w,ct:l}));z=b;R=B.T;R.getVideoData().BV=!0;R.getVideoData().L=!0;R.Ab(!0);W={};B.U&&(W=B.U.L1(),b=B.U.getVideoData().clientPlaybackNonce,W={crt:(W*1E3).toFixed(),cpn:b});R.OE("queued",W);z!==0&&R.seekTo(z+.01,{eE:!0,aW:3,Dx:"videoqueuer_queued"});B.Y=new XCB(B.L,B.app.Ji(),B.T,T,B.app,h);T=B.Y;T.status.status!==Infinity&&(DX(T, 1),T.T.subscribe("internalvideodatachange",T.JQ,T),T.U.subscribe("internalvideodatachange",T.JQ,T),T.xi.K().D("html5_gapless_use_format_info_fix")&&(T.T.subscribe("internalvideoformatchange",T.JQ,T),T.U.subscribe("internalvideoformatchange",T.JQ,T)),T.T.subscribe("mediasourceattached",T.JQ,T),T.U.subscribe("statechange",T.Wo,T),T.T.subscribe("newelementrequired",T.vX,T),T.JQ());return B.W}; Tx5=function(B){var z,T,R,h,W,b,l,w,q;g.D(function(c){switch(c.U){case 1:if(B.xd()||!B.W||!B.T)return c.return();B.J&&B.app.Ji().E_(!0,!1);T=B.app.K().D("html5_force_csdai_gapful_transition")&&((z=B.app.Ji())==null?void 0:z.getVideoData().isDaiEnabled());R=null;if(!B.Y||T){c.jI(2);break}g.AK(c,3);return g.P(c,skH(B.Y),5);case 5:g.yz(c,2);break;case 3:R=h=g.JK(c);case 2:if(!B.T)return c.return();g.vd.xI("vqsp",function(){B.app.oD(B.T)}); if(!B.T)return c.return();W=B.T.Wu();B.app.K().D("html5_gapless_seek_on_negative_time")&&W&&W.getCurrentTime()<-.01&&B.T.seekTo(0);g.vd.xI("vqpv",function(){B.app.playVideo()}); if(R||T)B.T?(b=R?R.message:"forced",(l=B.U)==null||l.OE("gapfulfbk",{r:b}),B.T.Z$(b)):(w=B.U)==null||w.OE("gapsp",{});q=B.W;Kx(B);q&&q.resolve();return c.return(Promise.resolve())}})}; Kx=function(B,z){z=z===void 0?!1:z;if(B.U){if(B.V){var T=B.U;B.app.Lf.removeEventListener(g.YQ("vqueued"),B.X);T.removeCueRange(B.V)}B.U=null;B.V=null}B.Y&&(B.Y.status.status!==6&&(T=B.Y,T.status.status!==Infinity&&T.V!==1&&T.gE("Canceled")),B.Y=null);B.W=null;B.T&&!z&&B.T!==B.app.YW()&&B.T!==B.app.Ji()&&B.T.dispose();B.T&&z&&B.T.wV();B.T=null;B.J=!1}; hsH=function(B){var z;return((z=B.Y)==null?void 0:z.currentVideoDuration)||-1}; WDz=function(B,z,T){if(B.jw())return"qie";if(B.T==null||B.T.xd()||B.T.getVideoData()==null)return"qpd";if(z.videoId!==B.T.ma())return"vinm";if(hsH(B)<=0)return"ivd";if(T!==1)return"upt";if((T=B.Y)==null)B=void 0;else if(T.getStatus().status!==5)B="niss";else if(OwX(T.policy,T.T,T.U,T.Rc)!=null)B="pge";else{z=Bxl(T);B=z.P2;var R=z.Ni;z=g.rk(T.xi.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var h=T.X+z;T.xi.K().experiments.Cf("html5_pseudogapless_shorts")&&(h=ZwP(T).hd+z);T=wN(R.a7(), h);B=wN(B.a7(),h);B=!(z>0)||T&&B?null:"neb"}return B!=null?B:null}; bKb=function(){g.Cl.call(this);var B=this;this.fullscreen=0;this.W=this.Y=this.pictureInPicture=this.T=this.U=this.inline=!1;this.V=function(){B.UJ()}; S1Y(this.V);this.X=this.getVisibilityState(this.dE(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Hv(),this.xJ(),this.tI(),this.Z_())}; Tuz=function(B){return!(B.isMinimized()||B.isInline()||B.isBackground()||B.Hv()||B.xJ()||B.tI()||B.Z_())}; g.mU=function(B){g.K.call(this);this.dF=B;this.videoData=this.playerState=null}; Hd=function(B,z){g.K.call(this);var T=this;this.data=[];this.Y=B||NaN;this.U=z||null;this.T=new g.Si(function(){nx(T);uR(T)}); g.m(this,this.T)}; YQz=function(B){nx(B);return B.data.map(function(z){return z.value})}; nx=function(B){var z=(0,g.f)();B.data.forEach(function(T){T.expire0));(R=g.rk(z, "html5_cobalt_audio_write_ahead_ms"))&&LR("Media.AudioWriteDurationLocal",R);(R=T("html5_cobalt_enable_decode_to_texture"))&&LR("Media.PlayerConfiguration.DecodeToTexturePreferred",R?1:0);(B.L4()||T("html5_log_cpu_info"))&&eOX();Error.stackTraceLimit=50;var h=g.rk(z,"html5_idle_rate_limit_ms");h&&Object.defineProperty(window,"requestIdleCallback",{value:function(W){return window.setTimeout(W,h)}}); ZkP(B.V);A8l(T("html5_use_ump_request_slicer"));OXr(T("html5_record_now"));T("html5_disable_streaming_xhr")&&(Bo=!1);T("html5_byterate_constraints")&&(w$=!0);T("html5_use_non_active_broadcast_for_post_live")&&(EG=!0);T("html5_enable_encrypted_av1")&&(XD=!0);Oa5(g.rk(B.experiments,"html5_sticky_duration_mos"));B.D("html5_estimate_live_partial_slice_duration")&&(qIH=!0)}; C4H=function(B,z){return B.slice(z.length).replace(/_[a-z]/g,function(T){return T.toUpperCase().replace("_","")}).replace("Dot",".")}; r6H=function(B){for(var z={},T=g.d(Object.keys(B.experiments.flags)),R=T.next();!R.done;R=T.next())if(R=R.value,R.startsWith("cobalt_h5vcc"))if(R.startsWith("cobalt_h5vcc_string")){var h=C4H(R,"cobalt_h5vcc_string");R=zk(B.experiments,R);h&&R&&(z[h]=LR(h,R))}else R.startsWith("cobalt_h5vcc")&&(h=C4H(R,"cobalt_h5vcc"),R=g.rk(B.experiments,R),h&&R&&(z[h]=LR(h,R)));return z}; t3=function(B,z,T,R,h){h=h===void 0?[]:h;g.K.call(this);this.dF=B;this.tZ=z;this.segments=h;this.T=new Map}; oqz=function(B,z,T,R){R=R===void 0?0:R;g.ml.call(this,T.LH());this.KF=B;this.videoData=z;this.duration=R;this.endTime=this.startTime=0}; FDP=function(B){this.end=this.start=B}; g.j$=function(){this.T=new Map;this.Y=new Map;this.U=new Map}; g.XX=function(B,z,T,R){g.K.call(this);var h=this;this.api=B;this.dF=z;this.playback=T;this.app=R;this.zZ=new g.j$;this.U=new Map;this.X=[];this.V=[];this.W=new Map;this.s0=new Map;this.L=new Map;this.U0=new Map;this.Kf=null;this.JZ=NaN;this.Dm=this.ra=null;this.Sk=new g.Si(function(){IBB(h,h.JZ,h.ra||void 0)}); this.events=new g.kb(this);this.aK=15E3;this.RK=new g.Si(function(){h.XE=!0;h.playback.vt(h.aK);Gl5(h);if(h.playback.getVideoData().Gz()){var W;h.wF({togab:(W=h.WD)==null?void 0:W.identifier})}h.AA(!1)},this.aK); this.XE=!1;this.N=new Map;this.eI=[];this.WD=null;this.O0=new Set;this.lO=[];this.C4=[];this.pF=[];this.t0=[];this.T=void 0;this.fh=0;this.IK=!0;this.J=!1;this.cD=[];this.MG=new Set;this.S6=new Set;this.fF=new Set;this.e8=0;this.sE=new Set;this.LF=0;this.Gn=this.II=!1;this.xL=this.Y="";this.UE=null;this.logger=new g.RH("dai");this.Yi={tME:function(){return h.U}, fyI:function(){return h.X}, Zhf:function(){return h.W}, MGJ:function(){return h.Y}, nsZ:function(W){h.onCueRangeEnter(h.U.get(W))}, qMm:function(W){h.onCueRangeExit(h.U.get(W))}, hUG:function(W,b){h.U.set(W,b)}, ddJ:function(W){h.xL=W}, m2:function(){return h.m2()}, maI:function(W){return h.L.get(W)}, JRJ:function(){return h.UE}}; this.playback.getPlayerType();this.playback.t2(this);this.EE=this.dF.L4();g.m(this,this.Sk);g.m(this,this.events);g.m(this,this.RK);this.events.Z(this.api,g.YQ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.lu("serverstitchedcuerange"),this.onCueRangeExit);lBX(this.app.tf(),this.playback,!1)}; M75=function(B,z,T,R,h,W,b,l,w){if(B.dF.D("html5_ignore_ads_after_noadresponse")&&w&&B.O0.has(w))return ZX(B,{reason:"addafternoad",cueid:w}),"";w=dsz(B,W,W+h);B.XE&&B.wF({adaftto:1});T||B.wF({missadcon:1,enter:W,len:h,aid:l});B.TZ&&!B.TZ.SA&&(B.TZ.SA=l);B.Gn&&B.wF({adfbk:1,enter:W,len:h,aid:l});var q=B.playback;b=b===void 0?W+h:b;W===b&&!h&&B.dF.D("html5_allow_zero_duration_ads_on_timeline")&&B.wF({attl0d:1});W>b&&ZX(B,{reason:"enterTime_greater_than_return",tZ:W,QU:b});var c=q.NW()*1E3;Wq&&ZX(B,{reason:"parent_return_greater_than_content_duration",QU:b,H0i:q});q=null;c=g.$P(B.V,{QU:W},function(L,C){return L.QU-C.QU}); c>=0&&(q=B.V[c],q.QU>W&&A6z(B,z.video_id||"",W,b,q));if(w&&q)for(c=0;c.5&&B.wF({ttdtb:1,delta:b,cpn:h.cpn,enter:z.adCpn,exit:T.adCpn,seek:R,skip:W});B.api.D("html5_ssdai_enable_media_end_cue_range")&&(!R&&!W&&T.isAd&&T.adCpn?B.api.dP(T.adCpn):(R||W)&&B.wF({mecr:0,seek:R,skip:W}));if(z.isAd&&T.isAd){h=!!W;if(z.adCpn&&T.adCpn){var l=B.W.get(z.adCpn);var w=B.W.get(T.adCpn)}h?B.wF({igtransskip:1,enter:z.adCpn,exit:T.adCpn,seek:R,skip:W}):S$(B,w,l,T.HH,z.HH,R,h)}else if(!z.isAd&&T.isAd){B.xL= h.cpn;B.Ww(h.cpn,h.tZ/1E3);B.api.publish("serverstitchedvideochange");l=sc(B,"a2c");B.wF(l);B.e8=0;if(l=T.zY)B.fh=l.end;var q;T.adCpn&&(q=B.W.get(T.adCpn));q&&B.playback.fT(q,h,T.HH,z.HH,R,!!W)}else if(z.isAd&&!T.isAd){var c;z.adCpn&&(c=B.W.get(z.adCpn));c&&(B.fh=0,B.xL=c.cpn,B.Ww(c.cpn,c.tZ/1E3),Ec(B,c),q=sc(B,"c2a",c),B.wF(q),B.e8=1,B.playback.fT(h,c,T.HH,z.HH,R,!!W))}}; zL=function(B,z,T){T=T===void 0?0:T;var R=g.$P(B.V,{tZ:(z+T)*1E3},function(l,w){return l.tZ-w.tZ}); R=R<0?(R+2)*-1:R;if(R>=0)for(var h=z*1E3,W=R;W<=R+1&&W=b.tZ-T*1E3&&h<=b.QU+T*1E3)return{La:b,Ib:z}}return{La:void 0,Ib:z}}; gqb=function(B,z){var T="";(z=y6b(B,z))&&(T=z.getId());return T?B.W.get(T):void 0}; y6b=function(B,z){if(B.xL){var T=B.U.get(B.xL);if(T&&T.start-200<=z&&T.end+200>=z)return T}B=g.d(B.U.values());for(T=B.next();!T.done;T=B.next())if(T=T.value,T.start<=z&&T.end>=z)return T}; IBB=function(B,z,T){var R=B.Dm||B.app.Ji().getPlayerState();TL(B,!0);B.playback.seekTo(z,T);B=B.app.Ji();z=B.getPlayerState();R.isOrWillBePlaying()&&!z.isOrWillBePlaying()?B.playVideo():R.isPaused()&&!z.isPaused()&&B.pauseVideo()}; TL=function(B,z){B.JZ=NaN;B.ra=null;B.Sk.stop();B.Kf&&z&&B.Kf.Zg();B.Dm=null;B.Kf=null}; p_X=function(B){var z=z===void 0?-1:z;var T=T===void 0?Infinity:T;for(var R=[],h=g.d(B.V),W=h.next();!W.done;W=h.next())W=W.value,(W.tZT)&&R.push(W);B.V=R;R=g.d(B.U.values());for(h=R.next();!h.done;h=R.next())h=h.value,h.start>=z&&h.end<=T&&(B.playback.removeCueRange(h),B.U.delete(h.getId()),B.wF({rmAdCR:1}));R=zL(B,z/1E3);z=R.La;R=R.Ib;if(z&&(R=R*1E3-z.tZ,J6X(B,z,R,z.tZ+R),R=B.U.get(z.cpn))){h=g.d(B.X);for(W=h.next();!W.done;W=h.next())W=W.value,W.start===R.end?W.start=z.tZ+z.durationMs: W.end===R.start&&(W.end=z.tZ);R.start=z.tZ;R.end=z.tZ+z.durationMs}if(z=zL(B,T/1E3).La){var b;R="playback_timelinePlaybackId_"+z.eF+"_video_id_"+((b=z.videoData)==null?void 0:b.videoId)+"_durationMs_"+z.durationMs+"_enterTimeMs_"+z.tZ+"_parentReturnTimeMs_"+z.QU;B.J6("Invalid_clearEndTimeMs_"+T+"_that_falls_during_"+R+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; $sz=function(B){B.zZ.clearAll();B.U.clear();B.X=[];B.V=[];B.W.clear();B.s0.clear();B.L.clear();B.N.clear();B.eI=[];B.WD=null;B.O0.clear();B.lO=[];B.C4=[];B.pF=[];B.t0=[];B.cD=[];B.MG.clear();B.S6.clear();B.fF.clear();B.sE.clear();B.XE=!1;B.T=void 0;B.fh=0;B.IK=!0;B.J=!1;B.e8=0;B.LF=0;B.II=!1;B.Gn=!1;B.Y="";B.RK.isActive()&&e$(B)}; J6X=function(B,z,T,R){z.durationMs=T;z.QU=R;(R=B.U0.get(z.cpn))?R.YB(T/1E3):B.wF({nop_d:z.cpn})}; xsK=function(B,z,T,R,h,W){if(!B.Gn)if(g.P4Y(B,T))B.wF({gdu:"undec",seg:T,itag:h});else if(z=Rb(B,z,T,R,W),!(B.playback.getVideoData().Gz()&&(z==null?0:z.IP)))return z}; Rb=function(B,z,T,R,h){var W=B.N.get(T);if(!W){if(W=vq5(B,z))return W;z=B.a4(T-1,R!=null?R:2);if(h)return B.wF({misscue:h,sq:T,type:R,prevsstate:z==null?void 0:z.hP,prevrecord:B.N.has(T-1)}),B.N.get(T-1);if((z==null?void 0:z.hP)===2)return B.wF({adnf:1,sq:T,type:R,prevrecord:B.N.has(T-1)}),B.N.get(T-1)}return W}; vq5=function(B,z){z+=B.qj();if(B.playback.getVideoData().Gz())a:{var T=1;T=T===void 0?0:T;var R=z*1E3;B=g.d(B.V);for(var h=B.next();!h.done;h=B.next()){h=h.value;var W=h.H8?h.H8*1E3:h.tZ;if(R>=h.tZ-T*1E3&&R<=W+h.durationMs+T*1E3){R={La:h,Ib:z};break a}}R={La:void 0,Ib:z}}else R=zL(B,z),((T=R)==null?0:T.La)||(R=zL(B,z,1));var b;return(b=R)==null?void 0:b.La}; Dsz=function(B,z){z=z===void 0?"":z;var T=bq(z)||void 0;if(!z||!T){var R;B.wF({adcfg:(R=z)==null?void 0:R.length,dcfg:T==null?void 0:T.length})}return T}; klP=function(B){if(B.cD.length)for(var z=g.d(B.cD),T=z.next();!T.done;T=z.next())B.onCueRangeExit(T.value);z=g.d(B.U.values());for(T=z.next();!T.done;T=z.next())B.playback.removeCueRange(T.value);z=g.d(B.X);for(T=z.next();!T.done;T=z.next())B.playback.removeCueRange(T.value);B.U.clear();B.X=[];B.zZ.clearAll();B.T||(B.IK=!0)}; S$=function(B,z,T,R,h,W,b){if(z&&T){B.xL=T.cpn;B.Ww(T.cpn,T.tZ/1E3);Ec(B,T);var l=sc(B,"a2a",T);B.wF(l);B.e8++;B.playback.fT(z,T,R||0,h||0,!!W,!!b)}else B.wF({misspbkonadtrans:1,enter:(T==null?void 0:T.cpn)||"",exit:(z==null?void 0:z.cpn)||"",seek:W,skip:b})}; msb=function(B,z,T,R){if(R)for(R=0;RT){var W=h.end;h.end=z;KDz(B,T,W)}else if(h.start>=z&&h.startT)h.start=T;else if(h.end>z&&h.end<=T&&h.start=z&&h.end<=T){B.playback.removeCueRange(h);if(B.cD.includes(h))B.onCueRangeExit(h);B.X.splice(R,1);continue}R++}else KDz(B,z,T)}; KDz=function(B,z,T){z=V7B(z,T);T=!0;g.kP(B.X,z,function(b,l){return b.start-l.start}); for(var R=0;R0){var h=B.X[R],W=B.X[R-1];if(Math.round(W.end/1E3)>=Math.round(h.start/1E3)){W.end=h.end;h!==z?B.playback.removeCueRange(h):T=!1;B.X.splice(R,1);continue}}R++}if(T)for(B.playback.addCueRange(z),z=B.playback.u4("serverstitchedcuerange",36E5),z=g.d(z),T=z.next();!T.done;T=z.next())B.U.delete(T.value.getId())}; hs=function(B,z,T){if(T===void 0||!T){T=g.d(B.eI);for(var R=T.next();!R.done;R=T.next()){R=R.value;if(z>=R.start&&z<=R.end)return;if(z===R.end+1){R.end+=1;return}}B.eI.push(new FDP(z))}}; g.P4Y=function(B,z){B=g.d(B.eI);for(var T=B.next();!T.done;T=B.next())if(T=T.value,z>=T.start&&z<=T.end)return!0;return!1}; WU=function(B,z,T){var R;if(R=B.playback.getVideoData().Gz()||B.dF.D("html5_ssdai_extent_last_unfinished_ad_cue_range"))R=(R=B.W.get(z))&&R.D_?(B=B.L.get(R==null?void 0:R.D_))&&B.slice(-1)[0].cpn===z:!1;return R&&T===2?1E3:0}; A6z=function(B,z,T,R,h){var W;z={reason:"overlapping_playbacks",qhJ:z,tZ:T,QU:R,PDG:h.eF,cUZ:((W=h.videoData)==null?void 0:W.videoId)||"",FKK:h.durationMs,zKZ:h.tZ,xai:h.QU};ZX(B,z)}; ZX=function(B,z,T){B.playback.iy(z,T)}; nqY=function(B,z){var T=[];B=B.L.get(z);if(!B)return[];B=g.d(B);for(z=B.next();!z.done;z=B.next())z=z.value,z.cpn&&T.push(z.cpn);return T}; uGP=function(B,z,T){var R=0;B=B.L.get(T);if(!B)return-1;B=g.d(B);for(T=B.next();!T.done;T=B.next()){if(T.value.cpn===z)return R;R++}return-1}; HKK=function(B,z){var T=0;B=B.L.get(z);if(!B)return 0;B=g.d(B);for(z=B.next();!z.done;z=B.next())z=z.value,z.durationMs!==0&&z.QU!==z.tZ&&T++;return T}; fBl=function(B,z,T){var R=!1;if(T&&(T=B.L.get(T))){T=g.d(T);for(var h=T.next();!h.done;h=T.next())h=h.value,h.durationMs!==0&&h.QU!==h.tZ&&(h=h.cpn,z===h&&(R=!0),R&&!B.S6.has(h)&&(B.wF({decoratedAd:h}),B.S6.add(h)))}}; Gl5=function(B){B.EE&&B.wF({adf:"0_"+((new Date).getTime()/1E3-B.LF)+"_isTimeout_"+B.XE})}; dsz=function(B,z,T){if(B.lO.length)for(var R=g.d(B.lO),h=R.next(),W={};!h.done;W={Pr:void 0},h=R.next()){W.Pr=h.value;h=W.Pr.startSecs*1E3;var b=W.Pr.Dc*1E3+h;if(z>h&&zh&&T0?B:0}else B.m2().videoData.s0=B.playback.getCurrentTime()}; esz=function(B,z,T,R){g.K.call(this);var h=this;this.api=B;this.dF=z;this.T=T;this.app=R;this.V=new Map;this.U=[];this.Y=this.L=null;this.TZ=NaN;this.X=this.W=this.N=null;this.J=new g.Si(function(){ZKb(h,h.TZ,h.N||void 0)}); this.UE=[];this.WD=new g.Si(function(){var W=h.UE.pop();if(W){var b=W.eF,l=W.playerVars;W=W.playerType;l&&(l.prefer_gapless=!0,h.api.preloadVideoByPlayerVars(l,W,NaN,"",b),h.UE.length&&g.Bi(h.WD,4500))}}); this.events=new g.kb(this);this.Yi={uWF:function(){return h.U}}; this.T.getPlayerType();g.m(this,this.J);g.m(this,this.WD);g.m(this,this.events);this.events.Z(this.api,g.YQ("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.ih)}; BEP=function(B,z,T,R,h,W){var b=z.cpn,l=z.docid||z.video_id||z.videoId||z.id,w=B.T;W=W===void 0?h+R:W;if(h>W)return YB(B,"enterAfterReturn enterTimeMs="+h+" is greater than parentReturnTimeMs="+W.toFixed(3),b,l),"";var q=w.NW()*1E3;if(hq)return w="returnAfterDuration parentReturnTimeMs="+W.toFixed(3)+" is greater than parentDurationMs="+q+". And timestampOffset in seconds is "+ w.p4(),YB(B,w,b,l),"";q=null;for(var c=g.d(B.U),L=c.next();!L.done;L=c.next()){L=L.value;if(h>=L.tZ&&hL.tZ)return YB(B,"overlappingReturn",b,l),"";if(W===L.tZ)return YB(B,"outOfOrder",b,l),"";h===L.QU&&(q=L)}b="cs_childplayback_"+swB++;l={zY:lt(R,!0),Rc:Infinity,target:null};var C={eF:b,playerVars:z,playerType:T,durationMs:R,tZ:h,QU:W,GI:l};B.U=B.U.concat(C).sort(function(A,a){return A.tZ-a.tZ}); q?EqK(B,q,{zY:lt(q.durationMs,!0),Rc:q.GI.Rc,target:C}):(z={zY:lt(h,!1),Rc:h,target:C},B.V.set(z.zY,z),w.addCueRange(z.zY));z=!0;if(B.T===B.app.Ji()&&(w=w.getCurrentTime()*1E3,w>=C.tZ&&wz)break;if(W>z)return{La:R,Ib:z-h};T=W-R.QU/1E3}return{La:null,Ib:z-T}}; ZKb=function(B,z,T){T=T===void 0?{}:T;var R=B.X||B.app.Ji().getPlayerState();it(B,!0);z=isFinite(z)?z:B.T.ye();var h=hfz(B,z);z=h.Ib;var W=(h=h.La)&&!w0(B,h)||!h&&B.T!==B.app.Ji(),b=z*1E3;b=B.Y&&B.Y.start<=b&&b<=B.Y.end;!W&&b||qt(B);h?SiK(B,h,z,T,R):WnH(B,z,T,R)}; WnH=function(B,z,T,R){var h=B.T;h!==B.app.Ji()&&B.app.Yk();h.seekTo(z,Object.assign({},{Dx:"application_timelinemanager"},T));bcB(B,R)}; SiK=function(B,z,T,R,h){var W=w0(B,z);if(!W){z.playerVars.prefer_gapless=!0;B.dF.D("html5_enable_ssap_entity_id")&&(z.playerVars.cached_load=!0);var b=new g.NT(B.dF,z.playerVars);b.eF=z.eF;B.api.Vy(b,z.playerType)}b=B.app.Ji();W||b.addCueRange(z.GI.zY);b.seekTo(T,Object.assign({},{Dx:"application_timelinemanager"},R));bcB(B,h)}; bcB=function(B,z){B=B.app.Ji();var T=B.getPlayerState();z.isOrWillBePlaying()&&!T.isOrWillBePlaying()?B.playVideo():z.isPaused()&&!T.isPaused()&&B.pauseVideo()}; it=function(B,z){B.TZ=NaN;B.N=null;B.J.stop();B.W&&z&&B.W.Zg();B.X=null;B.W=null}; w0=function(B,z){B=B.app.Ji();return!!B&&B.getVideoData().eF===z.eF}; Ymz=function(B){var z=B.U.find(function(h){return w0(B,h)}); if(z){var T=B.app.Ji();qt(B);var R=new g.b5(8);z=Rfz(B,z)/1E3;WnH(B,z,{},R);T.OE("forceParentTransition",{childPlayback:1});B.T.OE("forceParentTransition",{parentPlayback:1})}}; w9z=function(B,z,T){z=z===void 0?-1:z;T=T===void 0?Infinity:T;for(var R=z,h=T,W=g.d(B.V),b=W.next();!b.done;b=W.next()){var l=g.d(b.value);b=l.next().value;l=l.next().value;l.Rc>=R&&l.target&&l.target.QU<=h&&(B.T.removeCueRange(b),B.V.delete(b))}R=z;h=T;W=[];b=g.d(B.U);for(l=b.next();!l.done;l=b.next())if(l=l.value,l.tZ>=R&&l.QU<=h){var w=B;w.L===l&&qt(w);w0(w,l)&&w.app.Yk()}else W.push(l);B.U=W;R=hfz(B,z/1E3);z=R.La;R=R.Ib;z&&(R*=1E3,lCl(B,z,R,z.QU===z.tZ+z.durationMs?z.tZ+R:z.QU));(z=hfz(B,T/1E3).La)&& YB(B,"Invalid clearEndTimeMs="+T+" that falls during playback={timelinePlaybackId="+(z.eF+" video_id="+z.playerVars.video_id+" durationMs="+z.durationMs+" enterTimeMs="+z.tZ+" parentReturnTimeMs="+z.QU+"}.Child playbacks can only have duration updated not their start."))}; lCl=function(B,z,T,R){z.durationMs=T;z.QU=R;R={zY:lt(T,!0),Rc:T,target:null};EqK(B,z,R);w0(B,z)&&B.app.Ji().getCurrentTime()*1E3>T&&(z=Rfz(B,z)/1E3,T=B.app.Ji().getPlayerState(),WnH(B,z,{},T))}; YB=function(B,z,T,R){B.T.OE("timelineerror",{e:z,cpn:T?T:void 0,videoId:R?R:void 0})}; icX=function(B){B&&B!=="web"&&qmz.includes(B)}; cU=function(){g.K.call(this);this.T=new Hd(5,null);g.m(this,this.T);this.U=new Hd(15,null);g.m(this,this.U)}; iuP=function(B,z){return z?!!B.T.get(z):!1}; cPP=function(B,z){B.dataset.version=z}; rPK=function(B){g.O.call(this,{B:"div",nf:["html5-video-player"],C:{tabindex:B.K().disableOrganicUi?"":"-1",id:B.webPlayerContextConfig?B.webPlayerContextConfig.rootElementId:B.config.attrs.id},S:[{B:"div",G:g.ZR.VIDEO_CONTAINER,C:{"data-layer":"0"}}]});var z=this;this.app=B;this.n_=this.BD(g.ZR.VIDEO_CONTAINER);this.Vb=new g.Am(0,0,0,0);this.ax=null;this.oy=new g.Am(0,0,0,0);this.G6=this.e4=this.uA=NaN;this.SY=this.C9=this.Rs=this.nZ=!1;this.iV=NaN;this.zs=!1;this.KA=null;this.Db=function(){z.element.focus({preventScroll:!0})}; this.Pt=function(){z.app.Lf.publish("playerUnderlayVisibilityChange","visible");z.ax.classList.remove(g.ZR.VIDEO_CONTAINER_TRANSITIONING);z.ax.removeEventListener(qP,z.Pt);z.ax.removeEventListener("transitioncancel",z.Pt)}; this.Si=this.Gr=!1;var T=this.element.addEventListener,R=this.element.removeEventListener;this.addEventListener=function(W,b,l){T.apply(z.element,[W,b,l])}; this.removeEventListener=function(W,b,l){R.apply(z.element,[W,b,l])}; var h=B.K();h.transparentBackground&&this.Xy("ytp-transparent");h.controlsType==="0"&&this.Xy("ytp-hide-controls");g.ww(this.element,"ytp-exp-bottom-control-flexbox");g.ww(this.element,"ytp-modern-caption");h.D("enable_new_paid_product_placement")&&!g.sf(h)&&g.ww(this.element,"ytp-exp-ppp-update");h.D("html5_enable_ssap")&&g.ww(this.element,"ytp-ssap");g.ww(this.element,"ytp-livebadge-color");if(h.D("delhi_modern_web_player"))switch(g.ww(this.element,"ytp-delhi-modern"),h.D("delhi_modern_web_player_icons")&& g.ww(this.element,"ytp-delhi-modern-icons"),zk(h.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.ww(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.ww(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.ww(this.element,"ytp-delhi-modern-with-exclusion")}cPP(this.element,LnB(B));this.wM=!1;this.yA=new g.PY(NaN,NaN);CVb(this);this.Z(B.Lf,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; CVb=function(B){function z(){B.ax&&LS(B);CS(B)!==B.zs&&B.resize()} function T(b,l){B.MK(b,l)} function R(b){b.getVideoData()&&B.updateVideoData(b.getVideoData())} function h(){B.oy=new g.Am(0,0,0,0);B.Vb=new g.Am(0,0,0,0)} var W=B.app.Lf;W.addEventListener("initializingmode",h);W.addEventListener("videoplayerreset",R);W.addEventListener("videodatachange",T);W.addEventListener("presentingplayerstatechange",z);B.addOnDisposeCallback(function(){W.removeEventListener("initializingmode",h);W.removeEventListener("videoplayerreset",R);W.removeEventListener("videodatachange",T);W.removeEventListener("presentingplayerstatechange",z)})}; Fnb=function(B){var z=B.app.Ji();if(z=z?z.getVideoData():null){if(g.ye(z)||g.g5(z)||g.Ju(z))return 16/9;if(TG(z)&&z.Y.T)return B=z.Y.videoInfos[0].video,oGH(B.width,B.height)}return(B=B.ax)?oGH(B.videoWidth,B.videoHeight):16/9}; ICK=function(B,z,T,R){var h=T,W=oGH(z.width,z.height);B.nZ?h=TW?{width:z.width,height:z.width/h,aspectRatio:h}:hh?B.width=B.height*T:Tw;if(CS(B)){var q=Fnb(B);var c=isNaN(q)||g.Zs||Sp&&g.Ax||w;XJ&&!g.QQ(601)?q=h.aspectRatio:c=c||W.controlsType==="3";c?w?(c=W.D("place_shrunken_video_on_left_of_player")?16:B.getPlayerSize().width-z.width-16,q=Math.max((B.getPlayerSize().height-z.height)/2,0),c=new g.Am(c,q,z.width, z.height),B.ax.style.setProperty("border-radius","12px")):c=new g.Am(0,0,z.width,z.height):(T=h.aspectRatio/q,c=new g.Am((z.width-h.width/T)/2,(z.height-h.height)/2,h.width/T,h.height),T===1&&g.Ax&&(q=c.width-z.height*q,q>0&&(c.width+=q,c.height+=q)));g.L2(B.element,"ytp-fit-cover-video",Math.max(c.width-h.width,c.height-h.height)<1);if(l||B.wM)B.ax.style.display="";B.zs=!0}else{c=-z.height;XJ?c*=window.devicePixelRatio:g.Ef&&(c-=window.screen.height);c=new g.Am(0,c,z.width,z.height);if(l||B.wM)B.ax.style.display= "none";B.zs=!1}aK(B.oy,c)||(B.oy=c,g.vo(W)?(B.ax.style.setProperty("width",c.width+"px","important"),B.ax.style.setProperty("height",c.height+"px","important")):g.vt(B.ax,c.getSize()),R=new g.pr(c.left,c.top),g.pF(B.ax,Math.round(R.x),Math.round(R.y)),R=!0);z=new g.Am((z.width-h.width)/2,(z.height-h.height)/2,h.width,h.height);aK(B.Vb,z)||(B.Vb=z,R=!0);g.Ml(B.ax,"transform",T===1?"":"scaleX("+T+")");b&&w!==B.C9&&(w&&(B.ax.addEventListener(qP,B.Pt),B.ax.addEventListener("transitioncancel",B.Pt),B.ax.classList.add(g.ZR.VIDEO_CONTAINER_TRANSITIONING)), B.C9=w,B.app.Lf.publish("playerUnderlayVisibilityChange",B.C9?"transitioning":"hidden"));return R}; APr=function(B){B.Gr=!B.Gr;B.Si=!0;B.element.classList.toggle("ytp-retro-player",B.Gr);B.resize();B.Si=!1;B.app.Lf.uO("onRetroModeChanged",B.Gr)}; aCz=function(){this.csn=g.gd();this.clientPlaybackNonce=null;this.elements=new Set;this.Y=new Set;this.T=new Set;this.U=new Set}; UAK=function(B){if(B.csn!==g.gd())if(B.csn==="UNDEFINED_CSN")B.csn=g.gd();else{var z=g.gd(),T=g.yl();if(z&&T){B.csn=z;for(var R=g.d(B.elements),h=R.next();!h.done;h=R.next())(h=h.value.visualElement)&&h.isClientVe()&&z&&T&&(g.ac("combine_ve_grafts")?PM(pX(),h,T):g.BP(g.Zb)(void 0,z,T,h))}if(z)for(B=g.d(B.T),T=B.next();!T.done;T=B.next())(T=T.value.visualElement)&&T.isClientVe()&&g.lU(z,T)}}; g.ob=function(B,z,T,R){g.K.call(this);var h=this;this.logger=new g.RH("App");this.wm=this.qZ=!1;this.N$={};this.m$=[];this.yP=!1;this.OD=null;this.intentionalPlayback=!1;this.d7=!0;this.IW=!1;this.LA=this.N4=this.Ij=null;this.WX=!0;this.mediaElement=this.VI=null;this.kG=NaN;this.lM=!1;this.pQ=this.DL=this.o7=this.screenLayer=this.playlist=null;this.gL=[];this.Zs=0;this.Yi={tf:function(){return h.Bc}, mkE:function(){return h.o7}, pwK:function(){}}; this.logger.debug("constructor begin");this.config=Zid(z||{});this.webPlayerContextConfig=T;lIP();z=this.config.args||{};this.dF=new Ho(z,T,T?T.canaryState:this.config.assets.player_canary_state,R,this);g.m(this,this.dF);LDb(this.dF);R=r6H(this.dF);this.dF.L4()&&r0(this,"h5vcc",R);this.dF.experiments.Cf("jspb_serialize_with_worker")&&tHK();this.dF.experiments.Cf("gzip_gel_with_worker")&&v0z();this.dF.U&&!Muz&&(window.addEventListener(Uf?"touchstart":"click",fPY,{capture:!0,passive:!0}),Muz=!0);this.D("html5_onesie")&& (this.AM=new l6(this.dF),g.m(this,this.AM));this.aJ=WZ(Jq(this.dF)&&!0,z.enablesizebutton);this.lA=WZ(!1,z.player_wide);this.visibility=new bKb;g.m(this,this.visibility);this.D("web_log_theater_mode_visibility")&&this.An(WZ(!1,z.player_wide));this.qZ=WZ(!1,z.external_list);this.events=new g.kb(this);g.m(this,this.events);this.D("start_client_gcf")&&(x2(KH(),{zE:wi,Dk:hWP()}),this.Sa=KH().resolve(wi),YEz(this.Sa));this.lcF=new q2;g.m(this,this.lcF);this.v_=new aCz;R=new iN;this.Lf=new g.M2(this,R); g.m(this,this.Lf);this.template=new rPK(this);g.m(this,this.template);this.appState=1;this.CX=VuP(this);g.m(this,R);R={};this.Pn=(R.internalvideodatachange=this.vdZ,R.playbackready=this.kZu,R.playbackstarted=this.aJE,R.statechange=this.hmJ,R);this.oA=new cH(this.Lf);this.h$=QOd(this);R=this.D("html5_load_wasm");z=this.D("html5_allow_asmjs");R&&yPz||z?(this.dF.fF=Lpz(this.h$,z),Gc(IL(this.dF.fF,function(W){h.dF.cD=W;r0(h,"wasm",{a:W.T})}),function(W){g.KV(W); r0(h,"wasm",{e:"message"in W&&W.message||W.toString()||""})})):R&&!yPz&&r0(this,"wasm",{e:"unavailable"}); R=this.dF.X;!1!==R&&r0(this,"badps",{hbp:R,hostname:window.location.hostname,ps:this.dF.playerStyle});this.n4=new M$b(this.dF,this.h$);this.Lf.publish("csiinitialized");R=10;g.JS(this.dF)&&(R=3);ej(this.dF)&&(R=g.rk(this.dF.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Bc=new g.Oc(this.Lf,R);R=gGX(this);this.Bc.cF(R);JPY(this);R={};this.aC=(R.airplayactivechange=this.UWE,R.airplayavailabilitychange=this.OFK,R.beginseeking=this.QIJ,R.sabrCaptionsDataLoaded=this.P$K,R.endseeking=this.bFu, R.internalAbandon=this.jIu,R.internalaudioformatchange=this.Yiu,R.internalvideodatachange=this.r0d,R.internalvideoformatchange=this.tFO,R.liveviewshift=this.RsO,R.playbackstalledatstart=this.Lld,R.progresssync=this.zsJ,R.onAbnormalityDetected=this.TzF,R.onSnackbarMessage=this.Ixd,R.onLoadProgress=this.Xcm,R.SEEK_COMPLETE=this.c0Z,R.SEEK_TO=this.qiO,R.onVideoProgress=this.HFD,R.onLoadedMetadata=this.VFJ,R.onAutoplayBlocked=this.gif,R.onPlaybackPauseAtStart=this.nif,R.playbackready=this.lxu,R.statechange= this.Qi,R.newelementrequired=this.gw,R.heartbeatparams=this.Bzi,R.videoelementevent=this.GzE,R.drmoutputrestricted=this.Wlf,R.signatureexpired=this.y0E,R.nonfatalerror=this.DWZ,R.reloadplayer=this.xWG,R);this.lI=new g.kb(this);g.m(this,this.lI);this.F4=new cU;g.m(this,this.F4);this.Kd=this.fJ=-1;this.RU=new g.Si(this.template.resize,16,this.template);g.m(this,this.RU);this.KF=new esz(this.Lf,this.dF,this.YW(),this);this.CV=new t3(this.dF);this.U6=new kE(this);g.m(this,this.U6);this.DN=new Pd(this); g.m(this,this.DN);icX(this.dF.T.c);this.events.Z(this.Lf,g.YQ("appapi"),this.AiF);this.events.Z(this.Lf,g.lu("appapi"),this.Edi);this.events.Z(this.Lf,g.YQ("appprogressboundary"),this.SiE);this.events.Z(this.Lf,g.lu("applooprange"),this.ly);this.events.Z(this.Lf,"presentingplayerstatechange",this.ih);this.events.Z(this.Lf,"resize",this.hsE);this.template.Vu(HY(document,B));this.events.Z(this.Lf,"offlineslatestatechange",this.kai);this.events.Z(this.Lf,"sabrCaptionsTrackChanged",this.bQG);this.events.Z(this.Lf, "sabrCaptionsBufferedRangesUpdated",this.WuD);this.h$.j.K().BV&&yJ(this.h$,"offline");this.dF.MG&&g.Fj("ux",g.px);B=g.rk(this.dF.experiments,"html5_defer_fetch_att_ms");this.wH=new g.Si(this.qfJ,B,this);g.m(this,this.wH);this.O2().u1()&&(g.mN()&&this.O2().UE.push("remote"),p9d(this));this.n4.tick("fs");$A5(this);this.dF.MG&&yJ(this.h$,"ux",!0);g.yW(this.h$.j.K())&&yJ(this.h$,"embed");this.D("web_player_sentinel_is_uniplayer")||g.KV(new g.Z_("Player experiment flags missing","web_player_sentinel_is_uniplayer")); B=this.D("web_player_sentinel_yt_experiments_sync");R=g.ac("web_player_sentinel_yt_experiments_sync");B!==R&&g.KV(new g.Z_("b/195699950",{yt:B,player:R}));T||g.KV(new g.Z_("b/179532961"));this.aE=PVH(this);if(T=g.rk(this.dF.experiments,"html5_block_pip_safari_delay"))this.Aq=new g.Si(this.RX,T,this),g.m(this,this.Aq);DM=this.dF.s0;T=g.rk(this.dF.experiments,"html5_performance_impact_profiling_timer_ms");T>0&&(this.MY=new g.Kh(T),g.m(this,this.MY),this.events.Z(this.MY,"tick",function(){h.KV&&xAK.mN("apit", h.KV);h.KV=xAK.vM()})); this.Lf.publish("applicationInitialized");this.logger.debug("constructor end")}; PVH=function(B){function z(T){T.stack&&T.stack.indexOf("player")!==-1&&B.Ji().O8(T)} m7.subscribe("handleError",z);EE.push(z);return function(){m7.unsubscribe("handleError",z);var T=EE.indexOf(z);T!==-1&&EE.splice(T,1)}}; gGX=function(B){var z=new g.NT(B.dF,B.config.args);B.Lf.publish("initialvideodatacreated",z);return FV(B,1,z,!1)}; JPY=function(B){var z=B.YW();z.setPlaybackRate(B.dF.W?1:vGl(B,Number(g.kK("yt-player-playback-rate"))||1));z.j8(B.Pn,B);z.Ew()}; QOd=function(B){var z="",T=LnB(B);T.indexOf("//")===0&&(T=B.dF.protocol+":"+T);var R=T.lastIndexOf("/base.js");R!==-1&&(z=T.substring(0,R+1));if(T=Error().stack)if(T=T.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))T=T[1],T.includes(z)||g.KV(Error("Player module URL mismatch: "+(T+" vs "+z+".")));z=new ePB(B.Lf,z);DAz(B,z);return z}; DAz=function(B,z){var T={};T=(T.destroyed=function(){B.onApiChange()},T); z.Y=T}; VuP=function(B){if(B.dF.storeUserVolume){B=g.kK("yt-player-volume")||{};var z=B.volume;B={volume:isNaN(z)?100:g.yQ(Math.floor(z),0,100),muted:!!B.muted}}else B={volume:100,muted:B.dF.mute};return B}; Ib=function(B){B.mediaElement=B.dF.deviceIsAudioOnly?new g.Xe(g.ES("AUDIO")):$E.pop()||new g.Xe(g.ES("VIDEO"));g.m(B,B.mediaElement);B.Ji().setMediaElement(B.mediaElement);try{B.dF.LF?(B.DL&&B.events.V2(B.DL),B.DL=B.events.Z(B.mediaElement,"volumechange",B.oWd)):(B.mediaElement.SN(B.CX.muted),B.mediaElement.setVolume(B.CX.volume/100))}catch(h){B.gE("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(h&&typeof h==="object"&&"message"in h&&typeof h.message==="string"&&h.message.replace(/[;:,]/g, "_")));return}g.$K(B.lI);k6H(B);var z=B.template,T=B.mediaElement.jk();z.ax=T;z.SY=!1;z.ax.parentNode||TJ(z.n_,z.ax,0);z.oy=new g.Am(0,0,0,0);dAK(z);LS(z);T=z.ax;g.ww(T,"video-stream");g.ww(T,g.ZR.MAIN_VIDEO);var R=z.app.K();R.AY&&T.setAttribute("data-no-fullscreen","true");R.D("html5_local_playsinline")?"playsInline"in pW()&&(T.playsInline=!0):R.zc&&(T.setAttribute("webkit-playsinline",""),T.setAttribute("playsinline",""));R.l4&&z.ax&&z.Z(T,"click",T.play,T);try{B.mediaElement.activate()}catch(h){B.gE("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(h&&typeof h==="object"&&"message"in h&&typeof h.message==="string"&&h.message.replace(/[;:,]/g,"_")))}}; mAB=function(B){if(!Kn5(B)){var z=B.YW().Wu();z&&(z=z.xC(),z instanceof Promise&&z.catch(function(){})); GL(B,Ck(B.getPlayerStateObject()))}}; k6H=function(B){var z=B.mediaElement;vG()?B.lI.Z(z,"webkitpresentationmodechanged",B.j7u):window.document.pictureInPictureEnabled&&(B.lI.Z(z,"enterpictureinpicture",function(){B.w$(!0)}),B.lI.Z(z,"leavepictureinpicture",function(){B.w$(!1)})); ED&&(B.lI.Z(z,"webkitbeginfullscreen",function(){B.Tn(3)}),B.lI.Z(z,"webkitendfullscreen",function(){B.Tn(0)}))}; nGB=function(B,z){var T=z.getPlayerType(),R=B.Bc.Y[T]||null;z!==B.YW()&&z!==R&&(R==null||R.dispose(),B.Bc.Y[T]=z)}; ugY=function(B,z){z=z===void 0?!0:z;B.logger.debug("start clear presenting player");var T;if(T=B.pQ){T=B.pQ;var R=B.mediaElement;T=!!R&&R===T.mediaElement}T&&(B.Fl(),Ib(B));T=B.Ji();T.Fl(!z);T.VL(B.aC,B);T.getPlayerType()!==1&&T.dispose();z=B.Bc;z.U=z.T;Nf(z);B.logger.debug("finish clear presenting player")}; g.Hc5=function(B,z,T,R){var h=B.n4;z===2&&(h=new M$b(B.dF));return new g.WB(B.dF,z,h,B.template,function(W,b,l){B.Lf.publish(W,b,l)},function(){return B.Lf.getVisibilityState()},B.visibility,B,T,R)}; FV=function(B,z,T,R,h){B=g.Hc5(B,z,T,h);B=new g.ml(B);R&&B.Ew();return B}; d0=function(B,z){return B.w3(z)?B.YW():z}; As=function(B,z){var T=B.Ji();return z===B.YW()&&B.w3(z)&&B.w3(T)?T:z}; NEX=function(B){B.logger.debug("start application playback");if(B.YW().getPlayerState().isError())B.logger.debug("start application playback done, player in error state");else{var z=ab(B);B.O2().isLoaded();z&&B.i4(6);fCH(B);bSB(B.h$)||OcP(B)}}; OcP=function(B){if(!ab(B)){var z=J5(B.h$);z&&!z.created&&sql(B.h$)&&(B.logger.debug("reload ad module"),z.create())}}; fCH=function(B){B.logger.debug("start presenter playback");var z=B.getVideoData(),T=B.h$;bSB(T)||T.Yw();!yPz&&T.j.D("html5_allow_asmjs")&&csX(T);yJ(T,"embed");yJ(T,"kids");yJ(T,"remote");yJ(T,"miniplayer");yJ(T,"offline");yJ(T,"unplugged");yJ(T,"ypc",!1,!0);yJ(T,"ypc_clickwrap",!1,!0);yJ(T,"yto",!1,!0);yJ(T,"webgl",!1,!0);YxX(T)||(yJ(T,"captions",!0),yJ(T,"endscreen"),T.FT(),yJ(T,"creatorendscreen",!0));T.Z2();B.Lf.publish("videoready",z)}; Ux=function(B){B=B.O2();B.u1();return kh(B)}; $A5=function(B){B.logger.debug("start prepare initial playback");B.lV();var z=B.config.args;Ib(B);B.events.Z(window,"resize",B.viF);var T=B.O2();B.Lf.Pd("onVolumeChange",B.CX);if(z&&gEH(z)){var R=tq(B.dF);R&&!B.qZ&&(z.fetch=0);var h=g.yW(B.dF);h&&!B.qZ&&(z.fetch=0);Mt(B,z);g.yW(B.dF)&&B.n4.tick("ep_pr_s");if(!R||B.qZ)if(h&&!B.qZ)tuz(B);else if(!T.u1())B.playlist.onReady(function(){V2(B)})}B.oD(B.YW(),!1,!0); g.X(B.YW().getPlayerState(),128)||(z=MCP(!B.dF.deviceIsAudioOnly),z==="fmt.noneavailable"?B.gE("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):z==="html5.missingapi"?B.gE(z,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):T&&T.u1()&&Ux(B)&&(B.dF.mD||B.dF.ZS)?Q2(B):T.rN?B.Lf.mutedAutoplay({durationMode:T.mutedAutoplayDurationMode}):g.kK("yt-player-playback-on-reload")?(g.ip("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!B.dF.WD}),g.D_("yt-player-playback-on-reload",!1), Q2(B)):B3(B.dF)||jOK(B),g.Zf(B.dF)||g.Sg(B.dF)==="MWEB"?(g.B4(g.To(),function(){y2(B)}),g.B4(g.To(),function(){MGB()})):(y2(B),MGB()),B.logger.debug("finish prepare initial playback"))}; y2=function(B){if(!B.D("use_rta_for_player"))if(B.D("fetch_att_independently"))g.Bi(B.wH);else{var z=B.getVideoData().botguardData;z&&g.uy(z,B.dF,B.getVideoData().H_||"")}}; jOK=function(B){B.logger.debug("start initialize to CUED mode");B.Lf.publish("initializingmode");B.i4(2);B.D("embeds_web_enable_defer_loading_remote_js")&&g.sf(B.dF)?g.B4(g.To(),function(){yJ(B.h$,"remote")}):yJ(B.h$,"remote"); yJ(B.h$,"miniplayer");B.logger.debug("initialized to CUED mode")}; Q2=function(B){B.logger.debug("start initialize application playback");var z=B.YW();if(g.X(z.getPlayerState(),128))return!1;var T=z.getVideoData();Ux(B)&&B.dF.ZS&&($E.length&&B.wm?(g0(B,{muted:!1,volume:B.CX.volume},!1),Js(B,!1)):$E.length||B.CX.muted||(g0(B,{muted:!0,volume:B.CX.volume},!1),Js(B,!0)));Ux(B)&&g.yW(B.dF)&&T.mutedAutoplay&&(g0(B,{muted:!0,volume:B.CX.volume},!1),Js(B,!0));T.LS&&g0(B,{muted:!0,volume:B.CX.volume},!1);X9l(B,1,T,!1);z=B.D("web_player_misc_bugfix_b")?B.YW():z;B.Lf.publish("initializingmode"); B.oD(B.YW());B.i4(3);var R;if(!(R=!B.dF.yr)){if(R=B.pQ){R=B.pQ;var h=B.mediaElement;R=!!h&&h===R.mediaElement}R=R&&B.yP}R&&(B.Fl(),Ib(B),z.setMediaElement(B.mediaElement));z.hn();if(g.X(z.getPlayerState(),128))return!1;T.g2||GL(B,3);return B.yP=!0}; ab=function(B){B=yx(B.h$);return!!B&&B.loaded}; ZcX=function(B,z){if(!B.VI)return!1;var T=B.VI.startTimeMs*.001-1,R=B.VI.endTimeMs*.001;B.VI.type==="repeatChapter"&&R--;return Math.abs(z-T)<=1E-6||Math.abs(z-R)<=1E-6||z>=T&&z<=R}; efK=function(B){var z=B.Ji();RY(z.getVideoData())&&!z.AT()&&(z=pS(B)*1E3-B.getVideoData().rH,B.D("html5_gapless_new_slr")?(B=B.DN,$B(B.app,"gaplessshortslooprange"),z=new g.Wj(0,z,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(B=B.app.Ji())&&B.addCueRange(z)):B.setLoopRange({startTimeMs:0,endTimeMs:z,type:"shortsLoop"}))}; sOY=function(B){var z=B.YW();if(!(g.X(z.getPlayerState(),64)&&B.O2().isLivePlayback&&B.VI.startTimeMs<5E3)){if(B.VI.type==="repeatChapter"){var T,R=(T=soP(B.bK()))==null?void 0:T.m4(),h;T=(h=B.getVideoData())==null?void 0:h.ZS;R instanceof g.Nb&&T&&(h=T[Y_(T,B.VI.startTimeMs)],R.renderChapterSeekingAnimation(0,h.title));isNaN(Number(B.VI.loopCount))?B.VI.loopCount=0:B.VI.loopCount++;B.VI.loopCount===1&&B.Lf.uO("innertubeCommand",B.getVideoData().Ec)}R={Dx:"application_loopRangeStart"};if(B.VI.type=== "clips"||B.VI.type==="shortsLoop")R.seekSource=58;z.seekTo(B.VI.startTimeMs*.001,R)}}; vGl=function(B,z){var T=B.Lf.getAvailablePlaybackRates();z=Number(z.toFixed(2));B=T[0];T=T[T.length-1];z<=B?z=B:z>=T?z=T:(B=Math.floor(z*100+.001)%5,z=B===0?z:Math.floor((z-B*.01)*100+.001)/100);return z}; pS=function(B,z){z=B.t$({playerType:z});if(!z)return B.Bc.T.Iq();z=d0(B,z);return PU(B,z.Iq(),z)}; PU=function(B,z,T){if(B.w3(T)&&(T=T.getVideoData(),!xB(B))){B=B.KF;for(var R=g.d(B.U),h=R.next();!h.done;h=R.next())if(h=h.value,T.eF===h.eF){z+=h.tZ/1E3;break}R=z;B=g.d(B.U);for(h=B.next();!h.done;h=B.next()){h=h.value;if(T.eF===h.eF)break;var W=h.tZ/1E3;if(W1&&(h=!1);if(!B.lM||h!==z){T=T.lock(h?"portrait":"landscape");if(T!=null)T["catch"](function(){}); B.lM=!0}}else B.lM&&(B.lM=!1,T.unlock())}; nS=function(B,z,T){B.Lf.publish(z,T);var R=g.JS(B.dF)||g.vo(B.dF)||g.f0(B.dF);if(T&&R){switch(z){case "cuerangemarkersupdated":var h="onCueRangeMarkersUpdated";break;case "cuerangesadded":h="onCueRangesAdded";break;case "cuerangesremoved":h="onCueRangesRemoved"}h&&B.Lf.uO(h,T.map(function(W){return{getId:function(){return this.id}, end:W.end,id:W.getId(),namespace:W.namespace==="ad"?"ad":"",start:W.start,style:W.style,visible:W.visible}}))}}; ut=function(B,z,T,R,h,W){T=T===void 0?!0:T;var b=B.t$({playerType:h});if(!b||(b.getPlayerType()!==2||B.w3(b))&&!g.Ve(b.getVideoData())){var l=B.Bc.Dn;l?l.seekTo(z,{WR:!T,UP:R,Dx:"application",seekSource:W}):(b&&b===B.YW()&&B.VI&&!ZcX(B,z)&&B.setLoopRange(null),B.seekTo(z,T,R,h,W))}}; Cfz=function(B,z,T,R){T&&(B.Fl(),Ib(B));T=B.Ji();T.TB(z);var h=B.getVideoData(),W={};W.video_id=h.videoId;W.adformat=h.adFormat;h.isLivePlayback||(W.start=T.getCurrentTime(),W.resume="1");h.isLivePlayback&&is(h)&&g.y9(B.dF)&&(W.live_utc_start=T.gt(),W.resume="1");h.RK&&(W.vvt=h.RK);h.X&&(W.vss_credentials_token=h.X,W.vss_credentials_token_type=h.Vr);h.oauthToken&&(W.oauth_token=h.oauthToken);W.autoplay=1;W.reload_count=h.Sk+1;W.reload_reason=z;h.cR&&(W.unplugged_partner_opt_out=h.cR);h.mD&&(W.ypc_is_premiere_trailer= h.mD);h.playerParams&&(W.player_params=h.playerParams);B.loadVideoByPlayerVars(W,void 0,!0,void 0,void 0,R);z==="signature"&&B.o7&&OcP(B)}; rVH=function(B,z){B.O2().autonavState=z;g.D_("yt-player-autonavstate",z);B.Lf.publish("autonavchange",z)}; oFb=function(B){var z=B.getVideoData().TG,T=B.dF.EE,R=B.isInline()&&!B.getVideoData().j5,h=B.mediaElement;z||T||R?h.zg():(h.qR(),g0(B,B.CX))}; vU=function(B){var z=J5(B.bK());z&&z.created&&(B.logger.debug("reset ad module"),z.destroy())}; xB=function(B){return B.getVideoData().enableServerStitchedDai&&!!B.o7}; FYz=function(B,z){z.bounds=B.getBoundingClientRect();for(var T=g.d(["display","opacity","visibility","zIndex"]),R=T.next();!R.done;R=T.next())R=R.value,z[R]=yC(B,R);z.hidden=!!B.hidden}; LnB=function(B){if(B.webPlayerContextConfig){var z=B.webPlayerContextConfig.trustedJsUrl;return z?Qr(z).toString():B.webPlayerContextConfig.jsUrl}return B.config.assets&&B.config.assets.js?B.config.assets.js:""}; IT5=function(B,z){var T=B.t$({playerType:1});if(T){if(T.getVideoData().clientPlaybackNonce===z)return T;if((B=B.U6.T)&&B.getVideoData().clientPlaybackNonce===z)return B}return null}; r0=function(B,z,T){B.gL.push({key:z,value:T})}; GDP=function(B){return B.name==="TypeError"&&B.stack.includes("/s/player/")&&fL()<=105}; ded=function(B){return B.isTimeout?"NO_BID":"ERR_BID"}; AVP=function(){var B=null;Pbl().then(function(z){return B=z},function(z){return B=ded(z)}); return B}; aTr=function(){var B=nh(1E3,"NO_BID");return g.DE(ZqB([Pbl(),B]).d2(ded),function(){B.cancel()})}; HU=function(B){return B.Nh?g.OW(g.fD(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; fS=function(B){this.player=B;this.Y=this.T=1}; Vsz=function(B,z,T,R,h,W){z.client||(z.client={});B.player.K().D("h5_remove_url_for_get_ad_break")||(z.client.originalUrl=T);var b=wJ(T),l=g.GK(T)?!1:!0;(b||l)&&typeof Intl!=="undefined"&&(z.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);l=g.GK(T)?!1:!0;if(b||l||R!==""){var w={};T=Rc(CL(R)).split("&");var q=new Map;T.forEach(function(c){c=c.split("=");c.length>1&&q.set(c[0].toString(),decodeURIComponent(c[1].toString()))}); q.has("bid")&&(w.bid=q.get("bid"));w.params=[];Uez.forEach(function(c){q.has(c)&&(c={key:c,value:q.get(c)},w.params.push(c))}); Msz(B,w);z.adSignalsInfo=w}z.client.unpluggedAppInfo||(z.client.unpluggedAppInfo={});z.client.unpluggedAppInfo.enableFilterMode=!1;T=h.T.cosver;T!=null&&T!=="cosver"&&(z.client.osVersion=T);T=h.T.cplatform;T!=null&&T!=="cplatform"&&T!==""&&(z.client.platform=T);T=h.T.cmodel;T!=null&&T!=="cmodel"&&(z.client.deviceModel=T);T=h.T.cplayer;T!=null&&T!=="cplayer"&&(z.client.playerType=T);T=h.T.cbrand;T!=null&&T!=="cbrand"&&(z.client.deviceMake=T);z.user||(z.user={});z.user.lockedSafetyMode=!1;(h.D("embeds_web_enable_iframe_api_send_full_embed_url")|| h.D("embeds_enable_autoplay_and_visibility_signals"))&&g.xC(h)&&BZK(z,W,B.player.getPlayerState(1))}; gFz=function(B,z){var T=!1;if(z==="")return T;z.split(",").forEach(function(R){var h={},W={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},b="ACTIVE";R[0]==="!"&&(R=R.substring(1),b="INACTIVE");R=R.split("-");R.length<3||(R[0]in QdB&&(W.clientName=QdB[R[0]]),R[1]in yV5&&(W.platform=yV5[R[1]]),W.applicationState=b,W.clientVersion=R.length>2?R[2]:"",h.remoteClient=W,B.remoteContexts?B.remoteContexts.push(h):B.remoteContexts=[h],T=!0)}); return T}; p2z=function(B){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in JVH))return!1;B=B.split(RegExp("[:&]"));var z=JVH.FLAG_AUTO_CAPTIONS_DEFAULT_ON,T="f"+(1+Math.floor(z/31)).toString();z=1<=2?b[1]:"";var l=Pfr.test(z),w=xeX.exec(z);w=w!=null&&w.length>=2?w[1]:"";var q=vFY.exec(z);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var c=DeP.exec(z);c=c!=null&&c.length>=2?c[1]:"0";var L=mR(B.player.K().yW),C=B.player.getVideoData(1),r=g.cS(C.lO,!0),F="BISCOTTI_ID"in T?T.BISCOTTI_ID:"";Vsz(B,r,z,F.toString(),B.player.K(), C);C={splay:!1,lactMilliseconds:T.LACT.toString(),playerHeightPixels:Math.trunc(T.P_H),playerWidthPixels:Math.trunc(T.P_W),vis:Math.trunc(T.VIS),signatureTimestamp:20228,autonavState:HU(B.player.K())};R&&(R={},gFz(R,T.YT_REMOTE)&&(C.mdxContext=R));if(R=kDB.includes(L)?void 0:g.m4("PREF")){for(var A=R.split(RegExp("[:&]")),a=0,V=A.length;a1&&M[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn= p2z(R)}z=KYd.exec(z);(z=z!=null&&z.length>=2?z[1]:"")&&w&&(r.user.credentialTransferTokens=[{token:z,scope:"VIDEO"}]);z={contentPlaybackContext:C};b={adBlock:Math.trunc(T.AD_BLOCK),params:b,breakIndex:q,breakPositionMs:c,clientPlaybackNonce:T.CPN,topLevelDomain:L,isProxyAdTagRequest:l,context:r,adSignalsInfoString:Rc(CL(F.toString())),overridePlaybackContext:z};h!==void 0&&(b.cueProcessedMs=Math.round(h).toString());w&&(b.videoId=w);T.LIVE_TARGETING_CONTEXT&&(b.liveTargetingParams=T.LIVE_TARGETING_CONTEXT); T.AD_BREAK_LENGTH&&(b.breakLengthMs=Math.trunc(T.AD_BREAK_LENGTH*1E3).toString());W&&(b.driftFromHeadMs=W.toString());b.currentMediaTimeMs=Math.round(B.player.getCurrentTime(1)*1E3);(B=B.player.getGetAdBreakContext())&&(b.getAdBreakContext=B);return b}; nFB=function(){fS.apply(this,arguments)}; uZP=function(B,z,T,R,h){var W=T.Fx;var b=T.zY;var l=B.player.K().uh,w=0;T.cueProcessedMs&&b&&!W&&(T=b.end-b.start,T>0&&(w=Math.floor(T/1E3)));var q={AD_BLOCK:h,AD_BREAK_LENGTH:W?W.Dc:w,AUTONAV_STATE:HU(B.player.K()),CA_TYPE:"image",CPN:B.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:B.player.In()*1E3,LACT:JW(),LIVE_INDEX:W?B.Y++: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:B.player.getVisibilityState(), P_H:B.player.NG().WV().height,P_W:B.player.NG().WV().width,YT_REMOTE:l?l.join(","):""},c=LL(cP);Object.keys(c).forEach(function(L){c[L]!=null&&(q[L.toUpperCase()]=c[L].toString())}); R!==""&&(q.BISCOTTI_ID=R);R={};iA(z)&&(R.sts="20228",(B=B.player.K().forcedExperiments)&&(R.forced_experiments=B));return lA(g.Pu(z,q),R)}; HZK=function(B,z){var T=B.player.K(),R,h=(R=B.player.getVideoData(1))==null?void 0:R.oauthToken;return g.RQ(T,h).then(function(W){if(W&&qR()){var b=kN();KB(b,W)}return g.E4(B.player.Ju(b),z,"/youtubei/v1/player/ad_break").then(function(l){return l})})}; fT5=function(B){this.PD=B}; OZz=function(B){this.j=B}; NVz=function(B){this.PD=B}; jdd=function(B){g.K.call(this);this.T=B;this.D8=tsY(this)}; tsY=function(B){var z=new Mmz(B.T.SF);g.m(B,z);B=[new fT5(B.T.PD),new OZz(B.T.j),new NVz(B.T.PD),new vR(B.T.eQ,B.T.Pw),new ks,new nN(B.T.OJ,B.T.Pp,B.T.PD),new Di,new xs];B=g.d(B);for(var T=B.next();!T.done;T=B.next())Vm5(z,T.value);B=g.d(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(T=B.next();!T.done;T=B.next())KN(z,T.value,function(){}); return z}; Ox=function(B){var z=B.yu,T=B.Qu;B=B.d3;var R=new HOX,h={Au:new awB(z.get(),T),Qu:T};return{Ix:new w8(T,B,z,h),context:h,ez:R}}; Nt=function(B,z,T,R,h){g.K.call(this);this.U=z;this.DJ=T;this.yu=R;this.s2=h;this.listeners=[];var W=new JQ(this);g.m(this,W);W.Z(B,"internalAbandon",this.Z4O);this.addOnDisposeCallback(function(){g.$K(W)})}; ts=function(B){this.j=B;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.V=!0;this.U=this.Y=!1;this.adFormat=null;this.W="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; X2X=function(B){B.contentCpn=null;B.adCpn=null;B.videoId=null;B.adVideoId=null;B.adFormat=null;B.W="AD_PLACEMENT_KIND_UNKNOWN";B.actionType="unknown_type";B.Y=!1;B.U=!1}; ZZX=function(B,z){B=g.d(z);for(z=B.next();!z.done;z=B.next())if((z=z.value.renderer)&&(z.instreamVideoAdRenderer||z.linearAdSequenceRenderer||z.sandwichedLinearAdRenderer||z.instreamSurveyAdRenderer)){O4("ad_i");g.NK({isMonetized:!0});break}}; ek5=function(B){var z;(z=B.j.getVideoData(1))!=null&&z.zZ&&(B.U=!1,z={},B.T&&B.videoId&&(z.cttAuthInfo={token:B.T,videoId:B.videoId}),tY("video_to_ad",z))}; XA=function(B){B.U=!1;var z={};B.T&&B.videoId&&(z.cttAuthInfo={token:B.T,videoId:B.videoId});tY("ad_to_video",z);sdK(B)}; sdK=function(B){if(B.Y)if(B.W==="AD_PLACEMENT_KIND_START"&&B.actionType==="video_to_ad")uo("video_to_ad");else{var z={adBreakType:M5(B.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:B.videoStreamType};B.actionType==="ad_to_video"?(B.contentCpn&&(z.targetCpn=B.contentCpn),B.videoId&&(z.targetVideoId=B.videoId)):(B.adCpn&&(z.targetCpn=B.adCpn),B.adVideoId&&(z.targetVideoId=B.adVideoId));B.adFormat&&(z.adType=B.adFormat);B.contentCpn&& (z.clientPlaybackNonce=B.contentCpn);B.videoId&&(z.videoId=B.videoId);B.adCpn&&(z.adClientPlaybackNonce=B.adCpn);B.adVideoId&&(z.adVideoId=B.adVideoId);g.NK(z,B.actionType);B.j.K().experiments.Cf("html5_ads_csi_qoes")&&(z=B.j.L1(B.actionType==="ad_to_video"?1:2),z=(0,g.f)()-1E3*z,X_("qoes",z,B.actionType))}}; jE=function(B){g.K.call(this);this.j=B;this.T=new Map;this.U=new JQ(this);g.m(this,this.U);this.U.Z(this.j,g.YQ("ad"),this.onCueRangeEnter,this);this.U.Z(this.j,g.lu("ad"),this.onCueRangeExit,this)}; EFP=function(B,z,T,R,h){g.Wj.call(this,z,T,{id:B,namespace:"ad",priority:h,visible:R})}; XV=function(B){this.j=B}; SJb=function(B,z){B.j.cueVideoByPlayerVars(z,2)}; Zh=function(B){this.j=B}; eE=function(B){this.j=B;g.rk(this.j.K().experiments,"tv_pacf_logging_sample_rate")}; BGY=function(B){return s$(B,"html5_ssap_play_cached_preroll")}; M_=function(B,z){z=z===void 0?!1:z;return B.j.K().D("html5_ssap_force_ads_ctmp")?!0:(z||B.j.K().L4())&&B.j.K().D("html5_ssap_pacf_qoe_ctmp")}; sx=function(B){var z;return(z=B.j.getVideoData(1)==null?void 0:!1)!=null?z:!1}; s$=function(B,z){return B.j.K().D(z)}; zSr=function(B){return B.j.K().D("substitute_ad_cpn_macro_in_ssdai")}; V3=function(B){var z,T,R;return((z=B.j.getVideoData(1).getPlayerResponse())==null?void 0:(T=z.playerConfig)==null?void 0:(R=T.daiConfig)==null?void 0:R.enableServerStitchedDai)||!1}; PlP=function(B){return B.j.K().D("html5_enable_vod_slar_with_notify_pacf")}; TGK=function(B){return B.j.K().D("html5_recognize_predict_start_cue_point")}; hN=function(B){return B.j.K().experiments.Cf("enable_desktop_player_underlay")}; RSz=function(B){return B.j.K().experiments.Cf("html5_load_empty_player_in_media_break_sub_lra")}; kU=function(B){return B.j.K().experiments.Cf("html5_load_ads_instead_of_cue")}; Kk=function(B){return B.j.K().experiments.Cf("html5_preload_ads")}; hSz=function(B){return B.j.K().experiments.Cf("should_ignore_cuepoints_during_lifa_preroll")}; Tc=function(B){return B.j.K().experiments.Cf("enable_ads_control_flow_deterministic_id_generation")}; WLX=function(B){return B.j.K().experiments.Cf("enable_desktop_discovery_video_abandon_pings")||g.jj(B.j.K())}; bUl=function(B){return B.j.K().experiments.Cf("enable_progres_commands_lr_feeds")}; Q3=function(B){return B.j.K().experiments.Cf("html5_cuepoint_identifier_logging")}; n8r=function(B){B=B.j.getVideoData(1);return!!B&&B.D("html5_preload_first_vod_video_ad")&&!B.isDaiEnabled()&&!B.isLivePlayback}; YYX=function(B){switch(B){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}}; l2z=function(){g.Cl.call(this);var B=this;this.T={};this.addOnDisposeCallback(function(){for(var z=g.d(Object.keys(B.T)),T=z.next();!T.done;T=z.next())delete B.T[T.value]})}; Ex=function(){if(w$P===null){w$P=new l2z;Bl(Sw).U="b";var B=Bl(Sw),z=HQ(B)=="h"||HQ(B)=="b",T=!(cy(),!1);z&&T&&(B.V=!0,B.X=new L9d)}return w$P}; qYB=function(B,z,T){B.T[z]=T}; iU5=function(B){switch(B){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}}; SE=function(B,z,T){this.DJ=B;this.j=z;this.Qu=T;this.U=new Set;this.T=new Map;Ex().subscribe("adactiveviewmeasurable",this.JM,this);Ex().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Z5,this);Ex().subscribe("adviewableimpression",this.M7,this);Ex().subscribe("adaudioaudible",this.HS,this);Ex().subscribe("adaudiomeasurable",this.m_,this)}; zy=function(B,z,T){var R=T.Rm,h=T.wK,W=T.listener,b=T.Ez;T=T.DP===void 0?!1:T.DP;if(B.T.has(z))Fo("Unexpected registration of layout in LidarApi");else{if(b){if(B.U.has(b))return;B.U.add(b)}B.T.set(z,W);i2(cy().Xu,"fmd",1);UiH(Bl(Sw),R);var l=T?z:void 0;qYB(Ex(),z,{WN:function(){if(!h)return{};var w=B.j.getPresentingPlayerType(!0),q;return(q=B.j.getVideoData(w))!=null&&q.isAd()?{currentTime:B.DJ.get().getCurrentTimeSec(w,!1,l),duration:h,isPlaying:Bm(B.DJ.get(),w).isPlaying(),isVpaid:!1,isYouTube:!0, volume:B.DJ.get().isMuted()?0:B.DJ.get().getVolume()/100}:{}}})}}; Ty=function(B,z){B.T.has(z)?(B.T.delete(z),delete Ex().T[z]):Fo("Unexpected unregistration of layout in LidarApi")}; cLB=function(B,z){if(B.j.isLifaAdPlaying()){var T=B.j.ZO(!0,!0);B.FX(z,T.width*.5*1.1,T.height*.25*1.1,T.width*.5*.9,T.height*.5*.9)}}; rLH=function(B,z,T){var R={};LLr(B,R,z,T);Cwl(R);R.LACT=R5(function(){return JW().toString()}); R.VIS=R5(function(){return B.getVisibilityState().toString()}); R.SDKV="h.3.0";R.VOL=R5(function(){return B.isMuted()?"0":Math.round(B.getVolume()).toString()}); R.VED="";return R}; ozY=function(B,z){var T={};if(z||!B||!B.kind)return T;if(B.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||B.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!B.adTimeOffset||!B.adTimeOffset.offsetStartMilliseconds)return g.kV(Error("malformed AdPlacementConfig")),T;T.MIDROLL_POS=R5(ct(Math.round(dO(B.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else T.MIDROLL_POS=R5(ct("0"));return T}; R5=function(B){return{toString:function(){return B()}}}; FLl=function(B,z,T){function R(l,w){(w=T[w])&&(W[l]=w)} function h(l,w){(w=T[w])&&(W[l]=b(w))} if(!T||g.Ep(T))return B;var W=Object.assign({},B),b=z?encodeURIComponent:function(l){return l}; h("DV_VIEWABILITY","doubleVerifyViewability");h("IAS_VIEWABILITY","integralAdsViewability");h("MOAT_INIT","moatInit");h("MOAT_VIEWABILITY","moatViewability");R("GOOGLE_VIEWABILITY","googleViewability");R("VIEWABILITY","viewability");return W}; LLr=function(B,z,T,R){z.CPN=R5(function(){var h;(h=B.getVideoData(1))?h=h.clientPlaybackNonce:(g.KV(Error("Video data is null.")),h=null);return h}); z.AD_MT=R5(function(){if(R!=null)var h=R;else{var W=T;B.K().D("html5_ssap_use_cpn_to_get_time")||(W=void 0);if(B.K().D("enable_h5_shorts_ad_fill_ad_mt_macro")||B.K().D("enable_desktop_discovery_pings_ad_mt_macro")||g.jj(B.K())){var b=B.getPresentingPlayerType(!0),l;h=((l=B.getVideoData(b))==null?0:l.isAd())?I2b(B,b,W):0}else h=I2b(B,2,W)}return Gx5(h)}); z.MT=R5(function(){return Gx5(B.getCurrentTime(1,!1))}); z.P_H=R5(function(){return B.NG().WV().height.toString()}); z.P_W=R5(function(){return B.NG().WV().width.toString()}); z.PV_H=R5(function(){return B.NG().getVideoContentRect().height.toString()}); z.PV_W=R5(function(){return B.NG().getVideoContentRect().width.toString()})}; Gx5=function(B){return Math.round(Math.max(0,B*1E3)).toString()}; Cwl=function(B){B.CONN=R5(ct("0"));B.WT=R5(function(){return Date.now().toString()})}; I2b=function(B,z,T){return T!==void 0?B.getCurrentTime(z,!1,T):B.getCurrentTime(z,!1)}; dDP=function(){}; ALz=function(B,z,T,R,h){var W,b,l,w,q,c,L,C,r,F,A,a,V;g.D(function(M){switch(M.U){case 1:W=!!z.scrubReferrer;b=g.Pu(z.baseUrl,FLl(T,W,R));l={};if(!z.headers){M.jI(2);break}w=B.W();if(!w.T){q=w.getValue();M.jI(3);break}return g.P(M,w.T,4);case 4:q=M.T;case 3:c=q;L=g.d(z.headers);for(C=L.next();!C.done;C=L.next())switch(r=C.value,r.headerType){case "VISITOR_ID":g.ek("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.ek("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ek("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= g.ek("EOM_VISITOR_DATA"));break;case "USER_AUTH":c&&(l.Authorization="Bearer "+c);break;case "PLUS_PAGE_ID":(F=B.V())&&(l["X-Goog-PageId"]=F);break;case "AUTH_USER":A=B.T();!c&&A&&(l["X-Goog-AuthUser"]=A);break;case "DATASYNC_ID":if(a=void 0,(a=B.Y())==null?0:a.Cf("enable_datasync_id_header_in_web_vss_pings"))V=B.U(),wJ(b)&&g.ek("LOGGED_IN")&&V&&(l["X-YouTube-DataSync-Id"]=V)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.Hg(b,void 0,W,Object.keys(l).length!== 0?l:void 0,"",!0,h),g.dX(M)}})}; a2r=function(B,z,T,R,h){this.W=B;this.V=z;this.T=T;this.U=R;this.Y=h}; UDr=function(B,z){this.T=B;this.Qu=z}; hF=function(B,z,T,R,h,W,b){var l=l===void 0?new a2r(function(){var w=B.K(),q=B.getVideoData(1);return g.RQ(w,q?g.Kt(q):"")},function(){return B.K().pageId},function(){return B.K().WD},function(){var w; return(w=B.K().datasyncId)!=null?w:""},function(){return B.K().experiments}):l; this.j=B;this.U=z;this.QI=T;this.yu=R;this.Ix=h;this.Qu=W;this.ez=b;this.W=l;this.Ha=null;this.T=new Map;this.Y=new UDr(l,this.Qu)}; VJB=function(B,z,T,R,h){var W=vE(B.U.get(),T);W?(T=p3(B,MJB(W),W,void 0,void 0,R),z.hasOwnProperty("baseUrl")?B.W.send(z,T):B.Y.send(z,T,{},h)):Fo("Trying to ping from an unknown layout",void 0,void 0,{layoutId:T})}; $IY=function(B,z,T,R,h,W){R=R===void 0?[]:R;var b=vE(B.U.get(),z);if(b){var l=B.QI.get().Ak(z,T),w=p3(B,MJB(b),b,h,W);R.forEach(function(q,c){q.baseUrl&&(B.Y.send(q.baseUrl,w,l,q.attributionSrcMode),q.serializedAdPingMetadata&&B.Ix.Bq("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,b,new qyz(q,c),void 0,void 0,b.adLayoutLoggingData))})}else Fo("Trying to track from an unknown layout.",void 0,void 0,{layoutId:z, trackingType:T})}; Ug=function(B,z){B.j.sendVideoStatsEngageEvent(z,void 0,2)}; TI=function(B,z){g.ip("adsClientStateChange",z)}; QGb=function(B,z){B.T.has(z.AF())?Fo("Trying to register an existing AdErrorInfoSupplier."):B.T.set(z.AF(),z)}; yLz=function(B,z){B.T.delete(z.AF())||Fo("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; WT=function(B,z,T){typeof T==="string"?B.j.getVideoData(1).cM(z,T):B.j.getVideoData(1).OE(z,T)}; MJB=function(B){var z=E(B.clientMetadata,"metadata_type_ad_placement_config");B=E(B.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:z,FZ:B}}; p3=function(B,z,T,R,h,W){var b=T?gzY(B):{},l=T?JLH(B,T.layoutId):{},w=p$l(B),q,c=h!=null?h:(q=de(B.yu.get(),2))==null?void 0:q.clientPlaybackNonce;h=void 0;if(T){var L;if((L=B.ez.T.get(T.layoutId))==null?0:L.DP)h=T.layoutId}L={};B=Object.assign({},rLH(B.j,h,R),ozY(z.adPlacementConfig,(T==null?void 0:T.renderingContent)!==void 0),l,b,w,(L.FINAL=R5(function(){return"1"}),L.AD_CPN=R5(function(){return c||""}),L)); (T==null?void 0:T.renderingContent)!==void 0||(B.SLOT_POS=R5(function(){return(z.FZ||0).toString()})); T={};W=Object.assign({},B,W);B=g.d(Object.values($Dz));for(R=B.next();!R.done;R=B.next())R=R.value,b=W[R],b!=null&&b.toString()!=null&&(T[R]=b.toString());return T}; gzY=function(B){var z={},T,R=(T=B.Ha)==null?void 0:T.Wv/1E3;R!=null&&(z.SURVEY_ELAPSED_MS=R5(function(){return Math.round(R*1E3).toString()})); z.SURVEY_LOCAL_TIME_EPOCH_S=R5(function(){return Math.round(Date.now()/1E3).toString()}); return z}; JLH=function(B,z){B=B.T.get(z);if(!B)return{};B=B.Eo();if(!B)return{};z={};return z.YT_ERROR_CODE=B.zq.toString(),z.ERRORCODE=B.Nl.toString(),z.ERROR_MSG=B.errorMessage,z}; p$l=function(B){var z={},T=B.j.getVideoData(1);z.ASR=R5(function(){var R;return(R=T==null?void 0:T.P_)!=null?R:null}); z.EI=R5(function(){var R;return(R=T==null?void 0:T.eventId)!=null?R:null}); return z}; Wm=function(B,z,T){g.K.call(this);this.j=B;this.Qj=z;this.Qu=T;this.listeners=[];this.td=null;this.nz=new Map;z=new g.kb(this);g.m(this,z);z.Z(B,"videodatachange",this.Kuu);z.Z(B,"serverstitchedvideochange",this.V6F);this.zi=de(this)}; de=function(B,z){var T=B.j.getVideoData(z);return T?B.vP(T,z||B.j.getPresentingPlayerType(!0)):null}; Pwd=function(B,z,T){var R=B.vP(z,T);B.zi=R;B.listeners.forEach(function(h){h.VC(R)})}; xDb=function(B){switch(B){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}}; bS=function(B,z,T){g.K.call(this);this.j=B;this.yu=z;this.Qu=T;this.listeners=[];this.v$=[];this.T=function(){Fo("Called 'doUnlockPreroll' before it's initialized.")}; z=new JQ(this);T=new g.kb(this);g.m(this,T);g.m(this,z);z.Z(B,"progresssync",this.C$E);z.Z(B,"presentingplayerstatechange",this.FlO);z.Z(B,"fullscreentoggled",this.onFullscreenToggled);z.Z(B,"onVolumeChange",this.onVolumeChange);z.Z(B,"minimized",this.PH);z.Z(B,"overlayvisibilitychange",this.pY);z.Z(B,"shortsadswipe",this.sX);z.Z(B,"resize",this.ox);T.Z(B,g.YQ("appad"),this.MZ)}; YR=function(B){sx(B.Qu.get())||B.T()}; vzd=function(B,z){B.v$=B.v$.filter(function(T){return T!==z})}; lS=function(B,z,T){return B.getCurrentTimeSec(z,T)}; DDb=function(B,z){var T;z=(T=B.yu.get().nz.get(z))!=null?T:null;if(z===null)return Fo("Expected ad video start time on playback timeline"),0;B=B.j.getCurrentTime(2,!0);return B0){var W=z.end.toString();h.forEach(function(b){(b=b.config&&b.config.adPlacementConfig)&&b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&b.adTimeOffset&&b.adTimeOffset.offsetEndMilliseconds==="-1"&&b.adTimeOffset.offsetEndMilliseconds!==W&&(b.adTimeOffset.offsetEndMilliseconds=W)}); R.map(function(b){return g.u(b,HI)}).forEach(function(b){var l; (b=b==null?void 0:(l=b.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&b.offsetEndMilliseconds==="-1"&&(b.offsetEndMilliseconds=W)})}return{dT:h, adSlots:R,Yv:!1,ssdaiAdsConfig:B.ssdaiAdsConfig}}; Ld=function(B){g.K.call(this);this.j=B;this.listeners=[];this.T=new JQ(this);g.m(this,this.T);this.T.Z(this.j,"aduxclicked",this.onAdUxClicked);this.T.Z(this.j,"aduxmouseover",this.UQ);this.T.Z(this.j,"aduxmouseout",this.T4);this.T.Z(this.j,"muteadaccepted",this.odD)}; ual=function(B,z,T){z=g.s9(z,function(R){return new O1K(R,T,R.id)}); B.j.uO("onAdUxUpdate",z)}; Cd=function(B,z){B=g.d(B.listeners);for(var T=B.next();!T.done;T=B.next())z(T.value)}; rv=function(B,z){this.U=B;this.Y=z===void 0?!1:z;this.T={}}; HUK=function(B,z){var T=B.startSecs+B.Dc;T=T<=0?null:T;if(T===null)return null;switch(B.event){case "start":case "continue":case "stop":break;case "predictStart":if(z)break;return null;default:return null}z=Math.max(B.startSecs,0);return{EB:new QN(z,T),J_:new O8(z,T-z,B.context,B.identifier,B.event,B.T)}}; f2z=function(){this.T=[]}; gXl=function(B,z,T){var R=g.$P(B.T,z);if(R>=0)return z;z=-R-1;return z>=B.T.length||B.T[z]>T?null:B.T[z]}; o5=function(B,z,T){g.K.call(this);this.j=B;this.Qu=z;this.PD=T;this.listeners=[];this.W=!1;this.Q6=[];this.T=null;this.V=new rv(this,TGK(z.get()));this.Y=new f2z;this.U=null}; OUK=function(B,z){B.Q6.push(z);for(var T=!1,R=g.d(B.listeners),h=R.next();!h.done;h=R.next())T=h.value.Zb(z)||T;B.W=T;Q3(B.Qu.get())&&WT(B.PD.get(),"onci","cpi."+z.identifier+";cpe."+z.event+";cps."+z.startSecs+";cbi."+T)}; tJB=function(B,z){TI(B.PD.get(),{cuepointTrigger:{event:NGH(z.event),cuepointId:z.identifier,totalCueDurationMs:z.Dc*1E3,playheadTimeMs:z.T,cueStartTimeMs:z.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:B.j.getVideoData(1).clientPlaybackNonce}})}; NGH=function(B){switch(B){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 sB(B,"Unexpected cuepoint event")}}; FH=function(B){this.j=B}; I5=function(B){this.j=B}; jGb=function(B){switch(B){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:sB(B,"unknown transitionReason")}}; Gy=function(){g.K.apply(this,arguments)}; X$r=function(B){this.j=B}; ZUX=function(B,z,T,R,h){g.K.call(this);var W=this,b=O$(function(){return new zc(W.Qu)}); g.m(this,b);var l=O$(function(){return new RL(b,W.Qu)}); g.m(this,l);var w=O$(function(){return new PE}); g.m(this,w);var q=O$(function(){return new p6(B)}); g.m(this,q);var c=O$(function(){return new hT(b,l,W.Qu)}); g.m(this,c);var L=O$(function(){return new qh}); g.m(this,L);this.vB=O$(function(){return new Ld(z)}); g.m(this,this.vB);this.F1=O$(function(){return new tS(h)}); g.m(this,this.F1);this.RI=O$(function(){return new ts(z)}); g.m(this,this.RI);this.Pc=O$(function(){return new jE(z)}); g.m(this,this.Pc);this.Q2=O$(function(){return new XV(z)}); g.m(this,this.Q2);this.SF=O$(function(){return new Zh(z)}); g.m(this,this.SF);this.Qu=O$(function(){return new eE(z)}); g.m(this,this.Qu);var C=O$(function(){return new cm(R)}); g.m(this,C);var r=O$(function(){return new oV(W.Qu)}); g.m(this,r);this.m5=O$(function(){return new FH(z)}); g.m(this,this.m5);this.zr=O$(function(){return new Z$}); g.m(this,this.zr);this.yu=O$(function(){return new Wm(z,L,W.Qu)}); g.m(this,this.yu);var F=Ox({yu:this.yu,Qu:this.Qu,d3:r}),A=F.context,a=F.ez;this.Ix=F.Ix;this.s2=O$(function(){return new o5(z,W.Qu,W.PD)}); g.m(this,this.s2);this.Ui=O$(function(){return new I5(z)}); g.m(this,this.Ui);this.DJ=O$(function(){return new bS(z,W.yu,W.Qu)}); g.m(this,this.DJ);this.xO=O$(function(){return new Gy}); g.m(this,this.xO);F=O$(function(){return new AN(b,c,l,W.Qu,r,"SLOT_TYPE_ABOVE_FEED",W.DJ,W.nk,W.SD)}); g.m(this,F);this.C2=O$(function(){return new eA(W.Qu)}); this.QI=O$(function(){return new SE(W.DJ,z,W.Qu)}); g.m(this,this.QI);this.PD=O$(function(){return new hF(z,w,W.QI,W.yu,W.Ix,W.Qu,a)}); g.m(this,this.PD);this.uF=new g3(y3,dv,function(M,x,v,n){return Ro(l.get(),M,x,v,n)},q,c,l,r,this.Qu,this.yu); g.m(this,this.uF);this.Bu=new JN(q,F,T,this.Qu,B,this.yu,this.DJ,this.RI);g.m(this,this.Bu);var V=new Nt(z,this.Bu,this.DJ,this.yu,this.s2);this.Lx=O$(function(){return V}); this.KK=V;this.nk=new ML(q,c,this.Lx,this.s2,this.DJ,this.Qu,this.PD,this.Ui);g.m(this,this.nk);this.uf=new $m(q,c,this.Pc,this.Lx,A);g.m(this,this.uf);this.Xt=new uI(this.Qu,q,c,F,this.yu,this.uf,T,this.Q2);g.m(this,this.Xt);this.bF=O$(function(){return new C3(C,l,r,W.Qu,W.PD,W.DJ,W.Ui)}); g.m(this,this.bF);this.Ql=O$(function(){return new rZ}); g.m(this,this.Ql);this.jz=new n6(B,this.vB,this.Qu);g.m(this,this.jz);this.MS=new uD(B);g.m(this,this.MS);this.DC=new HE(B);g.m(this,this.DC);this.Jk=new Ou(B,this.Lx,A);g.m(this,this.Jk);this.eD=new NL(B,this.Pc,this.DJ,this.yu,A);g.m(this,this.eD);this.VH=new tN(B,this.yu);g.m(this,this.VH);this.SD=new ZS(B,this.s2,this.DJ,this.PD,this.Lx);g.m(this,this.SD);this.Bd=new jq(B);g.m(this,this.Bd);this.l1=new BM(B);g.m(this,this.l1);this.s6=new Xr(B);g.m(this,this.s6);this.qp=new Sq(B);g.m(this,this.qp); this.l1=new BM(B);g.m(this,this.l1);this.Uf=O$(function(){return new DS}); g.m(this,this.Uf);this.o$=O$(function(){return new km(W.DJ)}); g.m(this,this.o$);this.p7=O$(function(){return new EZz(W.vB,W.PD,B,w,W.QI)}); g.m(this,this.p7);this.W7=O$(function(){return new S1(W.Xt,q,b)}); g.m(this,this.W7);this.z5=O$(function(){return new T1(W.Qu,W.PD,W.Bd,W.QI)}); g.m(this,this.z5);this.Ck=O$(function(){return new cT(B,W.l1,W.Bd,W.yu,W.Ui,W.DJ,W.xO,W.PD,L,W.s2,W.QI,W.C2,W.Q2,W.Pc,W.RI,W.SF,W.F1,W.m5,W.Qu,w,A,a)}); g.m(this,this.Ck);this.Wg=O$(function(){return new cCB(W.DJ,W.PD,W.F1,W.Qu,W.QI,W.yu)}); g.m(this,this.Wg);this.TQ=O$(function(){return new S4z(W.vB,W.DJ,W.PD,w,W.QI,W.DC,W.qp,W.F1,W.Qu,T)}); g.m(this,this.TQ);this.hw=O$(function(){return new S_b(W.vB,W.PD,w)}); g.m(this,this.hw);this.R0=new iS(B,this.zr,b);g.m(this,this.R0);this.rE={Qb:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Xt],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.nk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uF],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.uf]]),mS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bF],["SLOT_TYPE_ABOVE_FEED",this.Ql],["SLOT_TYPE_FORECASTING",this.Ql], ["SLOT_TYPE_IN_PLAYER",this.Ql],["SLOT_TYPE_PLAYER_BYTES",this.Ql],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ql],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ql],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ql]]),Xo:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jz],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.jz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MS],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MS],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.MS],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MS],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.MS],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.MS],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jk],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.eD],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.eD],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.eD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eD],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.eD],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.VH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.VH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Bd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Jk],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s6],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.qp],["TRIGGER_TYPE_AD_BREAK_STARTED",this.l1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.SD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.SD],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.SD],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.SD],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.SD]]),Ur:new Map([["SLOT_TYPE_ABOVE_FEED",this.Uf], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Uf],["SLOT_TYPE_FORECASTING",this.Uf],["SLOT_TYPE_IN_PLAYER",this.Uf],["SLOT_TYPE_PLAYER_BYTES",this.o$],["SLOT_TYPE_PLAYER_UNDERLAY",this.Uf],["SLOT_TYPE_PLAYBACK_TRACKING",this.Uf],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Uf]]),Rb:new Map([["SLOT_TYPE_ABOVE_FEED",this.p7],["SLOT_TYPE_AD_BREAK_REQUEST",this.W7],["SLOT_TYPE_FORECASTING",this.z5],["SLOT_TYPE_PLAYER_BYTES",this.Ck],["SLOT_TYPE_PLAYBACK_TRACKING",this.Wg],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Wg],["SLOT_TYPE_IN_PLAYER",this.TQ],["SLOT_TYPE_PLAYER_UNDERLAY",this.hw]])};this.listeners=[w.get()];this.Kn={Xt:this.Xt,Pp:this.Qu.get(),ZJ:this.F1.get(),jN:this.DJ.get(),Bu:this.Bu,u2:b.get(),GD:this.zr.get(),Pw:this.jz,eQ:w.get(),OJ:this.yu.get()}}; eSz=function(B,z,T,R,h){g.K.call(this);var W=this,b=O$(function(){return new zc(W.Qu)}); g.m(this,b);var l=O$(function(){return new RL(b,W.Qu)}); g.m(this,l);var w=O$(function(){return new PE}); g.m(this,w);var q=O$(function(){return new p6(B)}); g.m(this,q);var c=O$(function(){return new hT(b,l,W.Qu)}); g.m(this,c);var L=O$(function(){return new qh}); g.m(this,L);this.vB=O$(function(){return new Ld(z)}); g.m(this,this.vB);this.F1=O$(function(){return new tS(h)}); g.m(this,this.F1);this.RI=O$(function(){return new ts(z)}); g.m(this,this.RI);this.Pc=O$(function(){return new jE(z)}); g.m(this,this.Pc);this.Q2=O$(function(){return new XV(z)}); g.m(this,this.Q2);this.SF=O$(function(){return new Zh(z)}); g.m(this,this.SF);this.Qu=O$(function(){return new eE(z)}); g.m(this,this.Qu);var C=O$(function(){return new cm(R)}); g.m(this,C);var r=O$(function(){return new oV(W.Qu)}); g.m(this,r);var F=O$(function(){return new AN(b,c,l,W.Qu,r,null,null,W.nk,W.SD)}); g.m(this,F);this.m5=O$(function(){return new FH(z)}); g.m(this,this.m5);this.zr=O$(function(){return new Z$}); g.m(this,this.zr);this.yu=O$(function(){return new Wm(z,L,W.Qu)}); g.m(this,this.yu);var A=Ox({yu:this.yu,Qu:this.Qu,d3:r}),a=A.context,V=A.ez;this.Ix=A.Ix;this.s2=O$(function(){return new o5(z,W.Qu,W.PD)}); this.DJ=O$(function(){return new bS(z,W.yu,W.Qu)}); g.m(this,this.DJ);this.xO=O$(function(){return new Gy}); g.m(this,this.xO);this.QI=O$(function(){return new SE(W.DJ,z,W.Qu)}); g.m(this,this.QI);this.PD=O$(function(){return new hF(z,w,W.QI,W.yu,W.Ix,W.Qu,V)}); g.m(this,this.PD);this.C2=O$(function(){return new eA(W.Qu)}); g.m(this,this.C2);this.uF=new g3(y3,dv,function(x,v,n,Z){return Ro(l.get(),x,v,n,Z)},q,c,l,r,this.Qu,this.yu); g.m(this,this.uF);this.Bu=new JN(q,F,T,this.Qu,B,this.yu,this.DJ,this.RI);g.m(this,this.Bu);var M=new Nt(z,this.Bu,this.DJ,this.yu,this.s2);this.Lx=O$(function(){return M}); this.KK=M;this.nk=new ML(q,c,this.Lx,this.s2,this.DJ,this.Qu,this.PD);g.m(this,this.nk);this.uf=new $m(q,c,this.Pc,this.Lx,a);g.m(this,this.uf);this.Xt=new uI(this.Qu,q,c,F,this.yu,this.uf,T,this.Q2);g.m(this,this.Xt);this.bF=O$(function(){return new C3(C,l,r,W.Qu,W.PD,W.DJ)}); g.m(this,this.bF);this.Ql=O$(function(){return new rZ}); g.m(this,this.Ql);this.jz=new n6(B,this.vB,this.Qu);g.m(this,this.jz);this.MS=new uD(B);g.m(this,this.MS);this.DC=new HE(B);g.m(this,this.DC);this.Jk=new Ou(B,this.Lx,a);g.m(this,this.Jk);this.eD=new NL(B,this.Pc,this.DJ,this.yu,a);g.m(this,this.eD);this.Bd=new jq(B);g.m(this,this.Bd);this.s6=new Xr(B);g.m(this,this.s6);this.qp=new Sq(B);g.m(this,this.qp);this.Ui=O$(function(){return new I5(z)}); g.m(this,this.Ui);this.l1=new BM(B);g.m(this,this.l1);this.SD=new ZS(B,this.s2,this.DJ,this.PD,this.Lx);g.m(this,this.SD);this.Uf=O$(function(){return new DS}); g.m(this,this.Uf);this.o$=O$(function(){return new km(W.DJ)}); g.m(this,this.o$);this.W7=O$(function(){return new S1(W.Xt,q,b)}); g.m(this,this.W7);this.z5=O$(function(){return new T1(W.Qu,W.PD,W.Bd,W.QI)}); g.m(this,this.z5);this.TQ=O$(function(){return new BIz(W.vB,W.DJ,W.PD,w,W.QI,W.DC,W.qp,W.F1,W.Qu,T)}); g.m(this,this.TQ);this.Ck=O$(function(){return new L$(B,W.l1,W.Bd,W.PD,W.QI,W.C2,W.Q2,W.yu,W.DJ,W.xO,W.Pc,W.RI,W.SF,W.F1,W.m5,W.Qu,W.Ui,a,V)}); g.m(this,this.Ck);this.R0=new iS(B,this.zr,b);g.m(this,this.R0);this.rE={Qb:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Xt],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.nk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uF],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.uf]]),mS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bF],["SLOT_TYPE_FORECASTING",this.Ql],["SLOT_TYPE_IN_PLAYER",this.Ql], ["SLOT_TYPE_PLAYER_BYTES",this.Ql]]),Xo:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MS],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MS],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MS], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.MS],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jk],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eD],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Bd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jk],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s6],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.qp],["TRIGGER_TYPE_AD_BREAK_STARTED",this.l1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.SD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.SD],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.SD],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.SD],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.SD]]),Ur:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uf],["SLOT_TYPE_FORECASTING",this.Uf],["SLOT_TYPE_IN_PLAYER",this.Uf],["SLOT_TYPE_PLAYER_BYTES",this.o$]]), Rb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W7],["SLOT_TYPE_FORECASTING",this.z5],["SLOT_TYPE_IN_PLAYER",this.TQ],["SLOT_TYPE_PLAYER_BYTES",this.Ck]])};this.listeners=[w.get()];this.Kn={Xt:this.Xt,Pp:this.Qu.get(),ZJ:this.F1.get(),jN:this.DJ.get(),Bu:this.Bu,u2:b.get(),GD:this.zr.get(),Pw:this.jz,eQ:w.get(),OJ:this.yu.get()}}; sGK=function(B,z,T,R,h){g.K.call(this);var W=this,b=O$(function(){return new zc(W.Qu)}); g.m(this,b);var l=O$(function(){return new RL(b,W.Qu)}); g.m(this,l);var w=O$(function(){return new PE}); g.m(this,w);var q=O$(function(){return new p6(B)}); g.m(this,q);var c=O$(function(){return new hT(b,l,W.Qu)}); g.m(this,c);var L=O$(function(){return new qh}); g.m(this,L);this.vB=O$(function(){return new Ld(z)}); g.m(this,this.vB);this.F1=O$(function(){return new tS(h)}); g.m(this,this.F1);this.RI=O$(function(){return new ts(z)}); g.m(this,this.RI);this.Pc=O$(function(){return new jE(z)}); g.m(this,this.Pc);this.Q2=O$(function(){return new XV(z)}); g.m(this,this.Q2);this.SF=O$(function(){return new Zh(z)}); g.m(this,this.SF);this.Qu=O$(function(){return new eE(z)}); g.m(this,this.Qu);var C=O$(function(){return new cm(R)}); g.m(this,C);var r=O$(function(){return new oV(W.Qu)}); g.m(this,r);var F=O$(function(){return new AN(b,c,l,W.Qu,r,null,null,null,null)}); g.m(this,F);this.m5=O$(function(){return new FH(z)}); g.m(this,this.m5);this.yu=O$(function(){return new Wm(z,L,W.Qu)}); g.m(this,this.yu);var A=Ox({yu:this.yu,Qu:this.Qu,d3:r}),a=A.context,V=A.ez;this.Ix=A.Ix;this.DJ=O$(function(){return new bS(z,W.yu,W.Qu)}); g.m(this,this.DJ);this.xO=O$(function(){return new Gy}); g.m(this,this.xO);this.QI=O$(function(){return new SE(W.DJ,z,W.Qu)}); g.m(this,this.QI);this.PD=O$(function(){return new hF(z,w,W.QI,W.yu,W.Ix,W.Qu,V)}); g.m(this,this.PD);this.C2=O$(function(){return new eA(W.Qu)}); g.m(this,this.C2);this.uF=new g3(y3,dv,function(x,v,n,Z){return Ro(l.get(),x,v,n,Z)},q,c,l,r,this.Qu,this.yu); g.m(this,this.uF);this.Bu=new JN(q,F,T,this.Qu,B,this.yu,this.DJ,this.RI);g.m(this,this.Bu);var M=new Nt(z,this.Bu,this.DJ,this.yu);this.Lx=O$(function(){return M}); this.KK=M;this.uf=new $m(q,c,this.Pc,this.Lx,a);g.m(this,this.uf);this.Xt=new uI(this.Qu,q,c,F,this.yu,this.uf,T,this.Q2);g.m(this,this.Xt);this.bF=O$(function(){return new C3(C,l,r,W.Qu,W.PD,W.DJ)}); g.m(this,this.bF);this.Ql=O$(function(){return new rZ}); g.m(this,this.Ql);this.jz=new n6(B,this.vB,this.Qu);g.m(this,this.jz);this.MS=new uD(B);g.m(this,this.MS);this.Jk=new Ou(B,this.Lx,a);g.m(this,this.Jk);this.eD=new NL(B,this.Pc,this.DJ,this.yu,a);g.m(this,this.eD);this.Bd=new jq(B);g.m(this,this.Bd);this.s6=new Xr(B);g.m(this,this.s6);this.Ui=O$(function(){return new I5(z)}); g.m(this,this.Ui);this.l1=new BM(B);g.m(this,this.l1);this.Uf=O$(function(){return new DS}); g.m(this,this.Uf);this.o$=O$(function(){return new km(W.DJ)}); g.m(this,this.o$);this.W7=O$(function(){return new S1(W.Xt,q,b)}); g.m(this,this.W7);this.z5=O$(function(){return new T1(W.Qu,W.PD,W.Bd,W.QI)}); g.m(this,this.z5);this.Z6=O$(function(){return new i0P(W.vB,W.DJ,W.PD,w,T,W.Qu)}); g.m(this,this.Z6);this.Ck=O$(function(){return new L$(B,W.l1,W.Bd,W.PD,W.QI,W.C2,W.Q2,W.yu,W.DJ,W.xO,W.Pc,W.RI,W.SF,W.F1,W.m5,W.Qu,W.Ui,a,V)}); g.m(this,this.Ck);this.rE={Qb:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Xt],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uF],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.uf]]),mS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bF],["SLOT_TYPE_FORECASTING",this.Ql],["SLOT_TYPE_IN_PLAYER",this.Ql],["SLOT_TYPE_PLAYER_BYTES",this.Ql]]),Xo:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.MS],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MS],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MS],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MS],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jk],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eD],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Bd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jk],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.l1]]),Ur:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uf],["SLOT_TYPE_ABOVE_FEED",this.Uf],["SLOT_TYPE_FORECASTING",this.Uf],["SLOT_TYPE_IN_PLAYER",this.Uf],["SLOT_TYPE_PLAYER_BYTES",this.o$]]),Rb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W7],["SLOT_TYPE_FORECASTING",this.z5],["SLOT_TYPE_IN_PLAYER", this.Z6],["SLOT_TYPE_PLAYER_BYTES",this.Ck]])};this.listeners=[w.get()];this.Kn={Xt:this.Xt,Pp:this.Qu.get(),ZJ:this.F1.get(),jN:this.DJ.get(),Bu:this.Bu,u2:b.get(),GD:null,Pw:this.jz,eQ:w.get(),OJ:this.yu.get()}}; EzK=function(B,z,T,R,h){g.K.call(this);var W=this,b=O$(function(){return new zc(W.Qu)}); g.m(this,b);var l=O$(function(){return new RL(b,W.Qu)}); g.m(this,l);var w=O$(function(){return new PE}); g.m(this,w);var q=O$(function(){return new p6(B)}); g.m(this,q);var c=O$(function(){return new hT(b,l,W.Qu)}); g.m(this,c);var L=O$(function(){return new qh}); g.m(this,L);this.Gc=O$(function(){return new X$r(z)}); g.m(this,this.Gc);this.vB=O$(function(){return new Ld(z)}); g.m(this,this.vB);this.F1=O$(function(){return new tS(h)}); g.m(this,this.F1);this.RI=O$(function(){return new ts(z)}); g.m(this,this.RI);this.Pc=O$(function(){return new jE(z)}); g.m(this,this.Pc);this.Q2=O$(function(){return new XV(z)}); g.m(this,this.Q2);this.SF=O$(function(){return new Zh(z)}); g.m(this,this.SF);this.Qu=O$(function(){return new eE(z)}); g.m(this,this.Qu);var C=O$(function(){return new cm(R)}); g.m(this,C);var r=O$(function(){return new oV(W.Qu)}); g.m(this,r);var F=O$(function(){return new AN(b,c,l,W.Qu,r,null,null,null,null)}); g.m(this,F);this.m5=O$(function(){return new FH(z)}); g.m(this,this.m5);this.yu=O$(function(){return new Wm(z,L,W.Qu)}); g.m(this,this.yu);var A=Ox({yu:this.yu,Qu:this.Qu,d3:r}),a=A.context,V=A.ez;this.Ix=A.Ix;this.DJ=O$(function(){return new bS(z,W.yu,W.Qu)}); g.m(this,this.DJ);this.xO=O$(function(){return new Gy}); g.m(this,this.xO);this.QI=O$(function(){return new SE(W.DJ,z,W.Qu)}); g.m(this,this.QI);this.PD=O$(function(){return new hF(z,w,W.QI,W.yu,W.Ix,W.Qu,V)}); g.m(this,this.PD);this.C2=O$(function(){return new eA(W.Qu)}); g.m(this,this.C2);this.uF=new g3(mxz,dv,function(x,v,n,Z){return Y$z(l.get(),x,v,n,Z)},q,c,l,r,this.Qu,this.yu); g.m(this,this.uF);this.Bu=new JN(q,F,T,this.Qu,B,this.yu,this.DJ,this.RI);g.m(this,this.Bu);var M=new Nt(z,this.Bu,this.DJ,this.yu);this.Lx=O$(function(){return M}); this.KK=M;this.uf=new $m(q,c,this.Pc,this.Lx,a);g.m(this,this.uf);this.Xt=new uI(this.Qu,q,c,F,this.yu,this.uf,T,this.Q2);g.m(this,this.Xt);this.bF=O$(function(){return new C3(C,l,r,W.Qu,W.PD,W.DJ)}); g.m(this,this.bF);this.Ql=O$(function(){return new rZ}); g.m(this,this.Ql);this.jz=new n6(B,this.vB,this.Qu);g.m(this,this.jz);this.MS=new uD(B);g.m(this,this.MS);this.Jk=new Ou(B,this.Lx,a);g.m(this,this.Jk);this.eD=new NL(B,this.Pc,this.DJ,this.yu,a);g.m(this,this.eD);this.Bd=new jq(B);g.m(this,this.Bd);this.s6=new Xr(B);g.m(this,this.s6);this.Ui=O$(function(){return new I5(z)}); g.m(this,this.Ui);this.l1=new BM(B);g.m(this,this.l1);this.Uf=O$(function(){return new DS}); g.m(this,this.Uf);this.o$=O$(function(){return new km(W.DJ)}); g.m(this,this.o$);this.W7=O$(function(){return new S1(W.Xt,q,b)}); g.m(this,this.W7);this.z5=O$(function(){return new T1(W.Qu,W.PD,W.Bd,W.QI)}); g.m(this,this.z5);this.Ck=O$(function(){return new L$(B,W.l1,W.Bd,W.PD,W.QI,W.C2,W.Q2,W.yu,W.DJ,W.xO,W.Pc,W.RI,W.SF,W.F1,W.m5,W.Qu,W.Ui,a,V)}); g.m(this,this.Ck);this.PA=O$(function(){return new TIK(W.vB,W.DJ,W.PD,w,W.Gc,T,W.yu)}); g.m(this,this.PA);this.rE={Qb:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Xt],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uF],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.uf]]),mS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bF],["SLOT_TYPE_FORECASTING",this.Ql],["SLOT_TYPE_IN_PLAYER",this.Ql],["SLOT_TYPE_PLAYER_BYTES",this.Ql]]),Xo:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.MS],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MS],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MS],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MS],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jk],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eD],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Bd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jk],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.l1]]),Ur:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uf],["SLOT_TYPE_FORECASTING",this.Uf],["SLOT_TYPE_IN_PLAYER",this.Uf],["SLOT_TYPE_PLAYER_BYTES",this.o$]]),Rb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W7],["SLOT_TYPE_FORECASTING",this.z5],["SLOT_TYPE_IN_PLAYER",this.PA],["SLOT_TYPE_PLAYER_BYTES", this.Ck]])};this.listeners=[w.get()];this.Kn={Xt:this.Xt,Pp:this.Qu.get(),ZJ:this.F1.get(),jN:this.DJ.get(),Bu:this.Bu,u2:b.get(),GD:null,Pw:this.jz,eQ:w.get(),OJ:this.yu.get()}}; SYH=function(B,z,T,R,h){g.K.call(this);var W=this,b=O$(function(){return new zc(W.Qu)}); g.m(this,b);var l=O$(function(){return new RL(b,W.Qu)}); g.m(this,l);var w=O$(function(){return new PE}); g.m(this,w);var q=O$(function(){return new p6(B)}); g.m(this,q);var c=O$(function(){return new hT(b,l,W.Qu)}); g.m(this,c);var L=O$(function(){return new qh}); g.m(this,L);this.Gc=O$(function(){return new X$r(z)}); g.m(this,this.Gc);this.vB=O$(function(){return new Ld(z)}); g.m(this,this.vB);this.F1=O$(function(){return new tS(h)}); g.m(this,this.F1);this.RI=O$(function(){return new ts(z)}); g.m(this,this.RI);this.Pc=O$(function(){return new jE(z)}); g.m(this,this.Pc);this.Q2=O$(function(){return new XV(z)}); g.m(this,this.Q2);this.SF=O$(function(){return new Zh(z)}); g.m(this,this.SF);this.Qu=O$(function(){return new eE(z)}); g.m(this,this.Qu);var C=O$(function(){return new cm(R)}); g.m(this,C);var r=O$(function(){return new oV(W.Qu)}); g.m(this,r);this.m5=O$(function(){return new FH(z)}); g.m(this,this.m5);this.yu=O$(function(){return new Wm(z,L,W.Qu)}); g.m(this,this.yu);var F=Ox({yu:this.yu,Qu:this.Qu,d3:r}),A=F.context,a=F.ez;this.Ix=F.Ix;this.s2=O$(function(){return new o5(z,W.Qu,W.PD)}); g.m(this,this.s2);this.Ui=O$(function(){return new I5(z)}); g.m(this,this.Ui);this.DJ=O$(function(){return new bS(z,W.yu,W.Qu)}); g.m(this,this.DJ);this.xO=O$(function(){return new Gy}); g.m(this,this.xO);F=O$(function(){return new AN(b,c,l,W.Qu,r,null,W.DJ,W.nk,W.SD,3)}); g.m(this,F);this.C2=O$(function(){return new eA(W.Qu)}); this.QI=O$(function(){return new SE(W.DJ,z,W.Qu)}); g.m(this,this.QI);this.PD=O$(function(){return new hF(z,w,W.QI,W.yu,W.Ix,W.Qu,a)}); g.m(this,this.PD);this.Bu=new JN(q,F,T,this.Qu,B,this.yu,this.DJ,this.RI);g.m(this,this.Bu);var V=new Nt(z,this.Bu,this.DJ,this.yu,this.s2);this.Lx=O$(function(){return V}); this.KK=V;this.uF=new g3(n$Y,dv,function(M,x,v,n){return Y$z(l.get(),M,x,v,n)},q,c,l,r,this.Qu,this.yu); g.m(this,this.uF);this.nk=new ML(q,c,this.Lx,this.s2,this.DJ,this.Qu,this.PD,this.Ui);g.m(this,this.nk);this.uf=new $m(q,c,this.Pc,this.Lx,A);g.m(this,this.uf);this.Xt=new uI(this.Qu,q,c,F,this.yu,this.uf,T,this.Q2);g.m(this,this.Xt);this.bF=O$(function(){return new C3(C,l,r,W.Qu,W.PD,W.DJ,W.Ui)}); g.m(this,this.bF);this.Ql=O$(function(){return new rZ}); g.m(this,this.Ql);this.jz=new n6(B,this.vB,this.Qu);g.m(this,this.jz);this.MS=new uD(B);g.m(this,this.MS);this.Jk=new Ou(B,this.Lx,A);g.m(this,this.Jk);this.eD=new NL(B,this.Pc,this.DJ,this.yu,A);g.m(this,this.eD);this.VH=new tN(B,this.yu);g.m(this,this.VH);this.SD=new ZS(B,this.s2,this.DJ,this.PD,this.Lx);g.m(this,this.SD);this.Bd=new jq(B);g.m(this,this.Bd);this.s6=new Xr(B);g.m(this,this.s6);this.l1=new BM(B);g.m(this,this.l1);this.Uf=O$(function(){return new DS}); g.m(this,this.Uf);this.o$=O$(function(){return new km(W.DJ)}); g.m(this,this.o$);this.W7=O$(function(){return new S1(W.Xt,q,b)}); g.m(this,this.W7);this.z5=O$(function(){return new T1(W.Qu,W.PD,W.Bd,W.QI)}); g.m(this,this.z5);this.Ck=O$(function(){return new cT(B,W.l1,W.Bd,W.yu,W.Ui,W.DJ,W.xO,W.PD,L,W.s2,W.QI,W.C2,W.Q2,W.Pc,W.RI,W.SF,W.F1,W.m5,W.Qu,w,A,a)}); g.m(this,this.Ck);this.TQ=O$(function(){return new RBP(W.vB,W.DJ,W.PD,w,W.Gc,T,W.Qu,W.yu)}); g.m(this,this.TQ);this.rE={Qb:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Xt],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.nk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uF],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.uf]]),mS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bF],["SLOT_TYPE_FORECASTING",this.Ql],["SLOT_TYPE_IN_PLAYER",this.Ql],["SLOT_TYPE_PLAYER_BYTES",this.Ql]]),Xo:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.jz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.MS],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.MS],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.MS],["TRIGGER_TYPE_SLOT_ID_EXITED",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.MS],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.MS],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jk],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.eD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.VH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.VH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Bd],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jk],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.l1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.SD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.SD],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.SD],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.SD],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.SD]]),Ur:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uf],["SLOT_TYPE_FORECASTING",this.Uf],["SLOT_TYPE_IN_PLAYER",this.Uf],["SLOT_TYPE_PLAYER_BYTES",this.o$]]),Rb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W7],["SLOT_TYPE_FORECASTING",this.z5],["SLOT_TYPE_PLAYER_BYTES",this.Ck],["SLOT_TYPE_IN_PLAYER",this.TQ]])};this.listeners=[w.get()]; this.Kn={Xt:this.Xt,Pp:this.Qu.get(),ZJ:this.F1.get(),jN:this.DJ.get(),Bu:this.Bu,u2:b.get(),GD:null,Pw:this.jz,eQ:w.get(),OJ:this.yu.get()}}; zrK=function(B,z,T,R){function h(){return W.U} g.K.call(this);var W=this;B.K().experiments.Cf("html5_dispose_of_manager_before_dependency")?(this.T=BB5(h,B,z,T,R),this.U=(new NC(this.T)).Y(),g.m(this,this.U),g.m(this,this.T)):(this.T=BB5(h,B,z,T,R),g.m(this,this.T),this.U=(new NC(this.T)).Y(),g.m(this,this.U))}; AF=function(B){return B.T.Kn}; BB5=function(B,z,T,R,h){try{var W=z.K();if(g.Zf(W))var b=new ZUX(B,z,T,R,h);else if(g.sf(W))b=new eSz(B,z,T,R,h);else if(uq(W))b=new sGK(B,z,T,R,h);else if(g.f0(W))b=new EzK(B,z,T,R,h);else if(g.vo(W))b=new SYH(B,z,T,R,h);else throw new TypeError("Unknown web interface");return b}catch(l){return b=z.K(),Fo("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:b.T.cplatform,interface:b.T.c,azK:b.T.cver,khJ:b.T.ctheme,w_m:b.T.cplayer,ShI:b.playerStyle}),new mDK(B,z,T,R,h)}}; TBd=function(B){e2.call(this,B)}; RrK=function(B,z,T,R,h){hC.call(this,B,{B:"div",G:"ytp-ad-timed-pie-countdown-container",S:[{B:"svg",G:"ytp-ad-timed-pie-countdown",C:{viewBox:"0 0 20 20"},S:[{B:"circle",G:"ytp-ad-timed-pie-countdown-background",C:{r:"10",cx:"10",cy:"10"}},{B:"circle",G:"ytp-ad-timed-pie-countdown-inner",C:{r:"5",cx:"10",cy:"10"}},{B:"circle",G:"ytp-ad-timed-pie-countdown-outer",C:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",z,T,R,h);this.W=this.BD("ytp-ad-timed-pie-countdown-container");this.Y=this.BD("ytp-ad-timed-pie-countdown-inner"); this.X=this.BD("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()}; hrr=function(B,z,T,R,h,W){d2.call(this,B,{B:"div",G:"ytp-ad-action-interstitial",C:{tabindex:"0"},S:[{B:"div",G:"ytp-ad-action-interstitial-background-container"},{B:"div",G:"ytp-ad-action-interstitial-slot",S:[{B:"div",G:"ytp-ad-action-interstitial-instream-info"},{B:"div",G:"ytp-ad-action-interstitial-card",S:[{B:"div",G:"ytp-ad-action-interstitial-image-container"},{B:"div",G:"ytp-ad-action-interstitial-headline-container"},{B:"div",G:"ytp-ad-action-interstitial-description-container"},{B:"div", G:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",z,T,R);this.Gf=h;this.J2=W;this.navigationEndpoint=this.T=this.skipButton=this.U=this.actionButton=null;this.cD=this.BD("ytp-ad-action-interstitial-instream-info");this.lO=this.BD("ytp-ad-action-interstitial-image-container");this.N=new tZ(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,"ytp-ad-action-interstitial-image");g.m(this,this.N);this.N.Vu(this.lO);this.XE=this.BD("ytp-ad-action-interstitial-headline-container"); this.X=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,"ytp-ad-action-interstitial-headline");g.m(this,this.X);this.X.Vu(this.XE);this.UE=this.BD("ytp-ad-action-interstitial-description-container");this.Y=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,"ytp-ad-action-interstitial-description");g.m(this,this.Y);this.Y.Vu(this.UE);this.eI=this.BD("ytp-ad-action-interstitial-background-container");this.IK=new tZ(this.api,this.layoutId,this.interactionLoggingClientData, this.ZJ,"ytp-ad-action-interstitial-background",!0);g.m(this,this.IK);this.IK.Vu(this.eI);this.MG=this.BD("ytp-ad-action-interstitial-action-button-container");this.slot=this.BD("ytp-ad-action-interstitial-slot");this.Hd=this.BD("ytp-ad-action-interstitial-card");this.W=new JQ;g.m(this,this.W);this.hide()}; WZY=function(B){var z=g.t2("html5-video-player");z&&g.L2(z,"ytp-ad-display-override",B)}; wk5=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-overlay-slot",S:[{B:"div",G:"ytp-ad-overlay-container"}]},"invideo-overlay",z,T,R);this.N=[];this.eI=this.XE=this.W=this.MG=this.cD=null;this.IK=!1;this.X=null;this.UE=0;B=this.BD("ytp-ad-overlay-container");this.lO=new cp(B,45E3,6E3,.3,.4);g.m(this,this.lO);this.Y=bIl(this);g.m(this,this.Y);this.Y.Vu(B);this.U=YlH(this);g.m(this,this.U);this.U.Vu(B);this.T=lHK(this);g.m(this,this.T);this.T.Vu(B);this.hide()}; bIl=function(B){var z=new g.Gt({B:"div",G:"ytp-ad-text-overlay",S:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",S:[{B:"button",G:"ytp-ad-overlay-close-button",S:[Kl(qlK)]}]},{B:"div",G:"ytp-ad-overlay-title",Yd:"{{title}}"},{B:"div",G:"ytp-ad-overlay-desc",Yd:"{{description}}"},{B:"div",nf:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Yd:"{{displayUrl}}"}]});B.Z(z.BD("ytp-ad-overlay-title"),"click",function(T){a5(B,z.element,T)}); B.Z(z.BD("ytp-ad-overlay-link"),"click",function(T){a5(B,z.element,T)}); B.Z(z.BD("ytp-ad-overlay-close-container"),"click",B.c5);z.hide();return z}; YlH=function(B){var z=new g.Gt({B:"div",nf:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",S:[{B:"button",G:"ytp-ad-overlay-close-button",S:[Kl(qlK)]}]},{B:"div",G:"ytp-ad-overlay-text-image",S:[{B:"img",C:{src:"{{imageUrl}}"}}]},{B:"div",G:"ytp-ad-overlay-title",Yd:"{{title}}"},{B:"div",G:"ytp-ad-overlay-desc",Yd:"{{description}}"},{B:"div",nf:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Yd:"{{displayUrl}}"}]});B.Z(z.BD("ytp-ad-overlay-title"),"click",function(T){a5(B,z.element,T)}); B.Z(z.BD("ytp-ad-overlay-link"),"click",function(T){a5(B,z.element,T)}); B.Z(z.BD("ytp-ad-overlay-close-container"),"click",B.c5);B.Z(z.BD("ytp-ad-overlay-text-image"),"click",B.r$O);z.hide();return z}; lHK=function(B){var z=new g.Gt({B:"div",G:"ytp-ad-image-overlay",S:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",S:[{B:"button",G:"ytp-ad-overlay-close-button",S:[Kl(qlK)]}]},{B:"div",G:"ytp-ad-overlay-image",S:[{B:"img",C:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});B.Z(z.BD("ytp-ad-overlay-image"),"click",function(T){a5(B,z.element,T)}); B.Z(z.BD("ytp-ad-overlay-close-container"),"click",B.c5);z.hide();return z}; iI5=function(B,z){if(z){var T=g.u(z,kL)||null;T==null?g.kV(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(z=g.t2("video-ads ytp-ad-module")||null,z==null?g.kV(Error("Could not locate the root ads container element to attach the ad info dialog.")):(B.XE=new g.Gt({B:"div",G:"ytp-ad-overlay-ad-info-dialog-container"}),g.m(B,B.XE),B.XE.Vu(z),z=new zv(B.api,B.layoutId,B.interactionLoggingClientData,B.ZJ,B.XE.element,!1),g.m(B,z),z.init(ca("ad-info-hover-text-button"),T,B.macros), B.X?(z.Vu(B.X,0),z.subscribe("f",B.uEE,B),z.subscribe("e",B.H0,B),B.Z(B.X,"click",B.emJ),B.Z(g.t2("ytp-ad-button",z.element),"click",function(){var R;if(g.u((R=g.u(T.button,g.mE))==null?void 0:R.serviceEndpoint,BiX))B.IK=B.api.getPlayerState(1)===2,B.api.pauseVideo();else B.api.onAdUxClicked("ad-info-hover-text-button",B.layoutId)}),B.eI=z):g.kV(Error("Ad info button container within overlay ad was not present."))))}else g.KV(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; LZP=function(B,z){if(c_b(B,UK)||B.api.isMinimized())return!1;var T=AZ(z.title),R=AZ(z.description);if(g.Fy(T)||g.Fy(R))return!1;B.createServerVe(B.Y.element,z.trackingParams||null);B.Y.updateValue("title",AZ(z.title));B.Y.updateValue("description",AZ(z.description));B.Y.updateValue("displayUrl",AZ(z.displayUrl));z.navigationEndpoint&&g.Vq(B.N,z.navigationEndpoint);B.Y.show();B.lO.start();B.logVisibility(B.Y.element,!0);B.Z(B.Y.element,"mouseover",function(){B.UE++}); return!0}; Cg5=function(B,z){if(c_b(B,UK)||B.api.isMinimized())return!1;var T=AZ(z.title),R=AZ(z.description);if(g.Fy(T)||g.Fy(R))return!1;B.createServerVe(B.U.element,z.trackingParams||null);B.U.updateValue("title",AZ(z.title));B.U.updateValue("description",AZ(z.description));B.U.updateValue("displayUrl",AZ(z.displayUrl));B.U.updateValue("imageUrl",CpY(z.image));z.navigationEndpoint&&g.Vq(B.N,z.navigationEndpoint);B.MG=z.imageNavigationEndpoint||null;B.U.show();B.lO.start();B.logVisibility(B.U.element,!0); B.Z(B.U.element,"mouseover",function(){B.UE++}); return!0}; r_z=function(B,z){if(B.api.isMinimized())return!1;var T=rxr(z.image),R=T;T.width0?(z=new u1(B.api,B.T), z.Vu(B.playerOverlay),g.m(B,z)):(B=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(z)),g.kV(B))}}else g.kV(Error("addCommonComponents() needs to be called before starting countdown."))}; QTK=function(B){function z(T){return{toString:function(){return T()}}} B.macros.SURVEY_LOCAL_TIME_EPOCH_S=z(function(){var T=new Date;return(Math.round(T.valueOf()/1E3)+-1*T.getTimezoneOffset()*60).toString()}); B.macros.SURVEY_ELAPSED_MS=z(function(){return(Date.now()-B.Y).toString()})}; y_X=function(B,z,T,R,h){y1.call(this,B,z,T,R,"survey-question-multi-select");this.UE=h;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()}; gx5=function(B,z,T){B.noneOfTheAbove=new A_X(B.api,B.layoutId,B.interactionLoggingClientData,B.ZJ);B.noneOfTheAbove.Vu(B.answers);B.noneOfTheAbove.init(ca("survey-none-of-the-above"),z,T)}; pkK=function(B){B.U.forEach(function(z){z.T.toggleButton(!1)}); J_r(B,!0)}; J_r=function(B,z){var T=B.W;B=$7B(B);z=z===void 0?!1:z;T.T&&(B?T.T.hide():T.T.show(),z&&T.T instanceof U0&&!T.T.W&&wgY(T.T,!1));T.U&&(B?T.U.show():T.U.hide())}; $7B=function(B){return B.U.some(function(z){return z.T.isToggled()})||B.noneOfTheAbove.button.isToggled()}; gv=function(B,z,T,R,h){y1.call(this,B,z,T,R,"survey-question-single-select",function(b){W.api.K().D("supports_multi_step_on_desktop")&&h([b])}); var W=this;this.hide()}; JF=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-survey",S:[{B:"div",G:"ytp-ad-survey-questions"}]},"survey",z,T,R);this.questions=[];this.U=[];this.conditioningRules=[];this.T=0;this.X=this.BD("ytp-ad-survey-questions");this.api.K().D("fix_survey_color_contrast_on_destop")&&this.BD("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().D("web_enable_speedmaster")&&this.BD("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; vxd=function(B,z){var T=B.U[z],R;(R=B.Y)==null||R.dispose();g.u(T,vI)?Pgd(B,g.u(T,vI),B.macros):g.u(T,xL)&&x75(B,g.u(T,xL),B.macros);B.T=z}; Pgd=function(B,z,T){var R=new gv(B.api,B.layoutId,B.interactionLoggingClientData,B.ZJ,B.W.bind(B));R.Vu(B.X);R.init(ca("survey-question-single-select"),z,T);B.api.K().D("supports_multi_step_on_desktop")?B.Y=R:B.questions.push(R);g.m(B,R)}; x75=function(B,z,T){var R=new y_X(B.api,B.layoutId,B.interactionLoggingClientData,B.ZJ,B.W.bind(B));R.Vu(B.X);R.init(ca("survey-question-multi-select"),z,T);B.api.K().D("supports_multi_step_on_desktop")?B.Y=R:B.questions.push(R);g.m(B,R)}; pd=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-survey-interstitial",S:[{B:"div",G:"ytp-ad-survey-interstitial-contents",S:[{B:"div",G:"ytp-ad-survey-interstitial-logo",S:[{B:"div",G:"ytp-ad-survey-interstitial-logo-image"}]},{B:"div",G:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",z,T,R);this.T=this.actionButton=null;this.interstitial=this.BD("ytp-ad-survey-interstitial");this.U=this.BD("ytp-ad-survey-interstitial-contents");this.text=this.BD("ytp-ad-survey-interstitial-text"); this.logoImage=this.BD("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Yp(this,500,!1,300);g.m(this,this.transition)}; D7B=function(B,z){z=z&&NI(z)||"";if(g.Fy(z))g.KV(Error("Found ThumbnailDetails without valid image URL"));else{var T=B.style;B=B.style.cssText;var R=document.implementation.createHTMLDocument("").createElement("DIV");R.style.cssText=B;B=ntr(R.style);T.cssText=[B,'background-image:url("'+z+'");'].join("")}}; kYz=function(B){var z=g.t2("html5-video-player");z&&g.L2(z,"ytp-ad-display-override",B)}; $R=function(B,z,T,R,h,W){W=W===void 0?0:W;hC.call(this,B,{B:"div",G:"ytp-preview-ad",S:[{B:"div",G:"ytp-preview-ad__text"}]},"preview-ad",z,T,R,h);var b=this;this.UE=W;this.U=0;this.W=-1;this.Y=this.BD("ytp-preview-ad__text");switch(this.UE){case 1:this.Y.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Yp(this,400,!1,100,function(){b.hide()}); g.m(this,this.transition);this.hide()}; Pm=function(B,z,T,R){d2.call(this,B,{B:"img",G:"ytp-ad-avatar"},"ad-avatar",z,T,R);this.hide()}; KZH=function(B){switch(B.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}}; xR=function(B,z,T,R,h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;d2.call(this,B,{B:"button",G:"ytp-ad-button-vm"},"ad-button",z,T,R);this.buttonText=this.buttonIcon=null;this.hide();this.T=h;this.U=W}; m7z=function(B,z,T,R,h){hC.call(this,B,{B:"div",nf:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],S:[{B:"div",G:"ytp-ad-avatar-lockup-card__avatar_and_text_container",S:[{B:"div",G:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",z,T,R,h);this.startMilliseconds=0;this.adAvatar=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.adAvatar);TJ(this.element,this.adAvatar.element,0);this.headline=new vp(this.api,this.layoutId, this.interactionLoggingClientData,this.ZJ);g.m(this,this.headline);this.headline.Vu(this.BD("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.description);this.description.Vu(this.BD("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new xR(this.api, this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.adButton);this.adButton.Vu(this.element);this.hide()}; vm=function(B,z,T,R){d2.call(this,B,{B:"button",G:"ytp-skip-ad-button",S:[{B:"div",G:"ytp-skip-ad-button__text"}]},"skip-button",z,T,R);var h=this;this.U=!1;this.W=this.BD("ytp-skip-ad-button__text");this.transition=new g.Yp(this,500,!1,100,function(){h.hide()}); g.m(this,this.transition);this.T=new cp(this.element,15E3,5E3,.5,.5,!0);g.m(this,this.T);this.hide()}; nxB=function(B,z,T,R,h){hC.call(this,B,{B:"div",G:"ytp-skip-ad"},"skip-ad",z,T,R,h);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Y=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.Y);this.Y.Vu(this.element);this.hide()}; DQ=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-visit-advertiser-link"},"visit-advertiser-link",z,T,R);this.hide()}; kR=function(B,z,T,R,h){d2.call(this,B,{B:"div",G:"ytp-ad-player-overlay-layout",S:[{B:"div",G:"ytp-ad-player-overlay-layout__player-card-container"},{B:"div",G:"ytp-ad-player-overlay-layout__ad-info-container"},{B:"div",G:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{B:"div",G:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",z,T,R);this.U=h;this.XE=this.BD("ytp-ad-player-overlay-layout__player-card-container");this.T=this.BD("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.BD("ytp-ad-player-overlay-layout__skip-or-preview-container");this.UE=this.BD("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; uiz=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-grid-card-text",S:[{B:"div",G:"ytp-ad-grid-card-text__metadata",S:[{B:"div",G:"ytp-ad-grid-card-text__metadata__headline"},{B:"div",G:"ytp-ad-grid-card-text__metadata__description",S:[{B:"div",G:"ytp-ad-grid-card-text__metadata__description__line"},{B:"div",G:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{B:"div",G:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",z,T,R);this.headline=new vp(this.api,this.layoutId,this.interactionLoggingClientData, this.ZJ);g.m(this,this.headline);this.headline.Vu(this.BD("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new xR(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0);g.m(this,this.moreInfoButton);this.moreInfoButton.Vu(this.BD("ytp-ad-grid-card-text__button"))}; Kd=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",z,T,R);this.T=[]}; m$=function(B,z,T,R,h,W,b){hC.call(this,B,W,b,z,T,R,h);this.playerProgressOffsetMs=0;this.U=!1}; HIB=function(B){var z=g.t2("html5-video-player");z&&g.L2(z,"ytp-ad-display-override",B)}; fHP=function(B,z,T,R,h){m$.call(this,B,z,T,R,h,{B:"div",G:"ytp-display-underlay-text-grid-cards",S:[{B:"div",G:"ytp-display-underlay-text-grid-cards__content_container",S:[{B:"div",G:"ytp-display-underlay-text-grid-cards__content_container__header",S:[{B:"div",G:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{B:"div",G:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{B:"div",G:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {B:"div",G:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Kd(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.adGridCardCollection);this.adGridCardCollection.Vu(this.BD("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new xR(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.adButton);this.adButton.Vu(this.BD("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Y=this.BD("ytp-display-underlay-text-grid-cards__content_container");this.W=this.BD("ytp-display-underlay-text-grid-cards__content_container__header")}; nd=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-ad-details-line"},"ad-details-line",z,T,R);this.T=[];this.hide()}; uS=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-image-background",S:[{B:"img",G:"ytp-image-background-image"}]},"image-background",z,T,R);this.hide()}; OIz=function(B,z,T,R,h){hC.call(this,B,{B:"svg",G:"ytp-timed-pie-countdown",C:{viewBox:"0 0 20 20"},S:[{B:"circle",G:"ytp-timed-pie-countdown__background",C:{r:"10",cx:"10",cy:"10"}},{B:"circle",G:"ytp-timed-pie-countdown__inner",C:{r:"5",cx:"10",cy:"10"}},{B:"circle",G:"ytp-timed-pie-countdown__outer",C:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",z,T,R,h);this.Y=this.BD("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()}; Hm=function(B,z,T,R){d2.call(this,B,{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout",C:{tabindex:"0"},S:[{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content",S:[{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",S:[{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{B:"div",G:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",z,T,R);this.U=null;this.W=this.BD("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Y=new JQ;g.m(this,this.Y);this.hide()}; NBK=function(B){var z=g.t2("html5-video-player");z&&g.L2(z,"ytp-ad-display-override",B)}; tBX=function(B){if(!B.adAvatar||!g.u(B.adAvatar,fd))return g.kV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!B.headline)return g.kV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!B.adBadge||!g.u(B.adBadge,OK))return g.kV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!B.adButton||!g.u(B.adButton,NO))return g.kV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!B.adInfoRenderer|| !g.u(B.adInfoRenderer,kL))return g.kV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;B=B.durationMilliseconds||0;return typeof B!=="number"||B<=0?(g.kV(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+B)),!1):!0}; tF=function(B,z){z=z===void 0?2:z;g.Cl.call(this);this.api=B;this.T=null;this.aI=new JQ(this);g.m(this,this.aI);this.U=qvz;this.aI.Z(this.api,"presentingplayerstatechange",this.iE);this.T=this.aI.Z(this.api,"progresssync",this.l$);this.eb=z;this.eb===1&&this.l$()}; j9=function(B,z,T){e2.call(this,B);this.api=B;this.ZJ=z;this.U={};B=new g.O({B:"div",nf:["video-ads","ytp-ad-module"]});g.m(this,B);Mj&&g.ww(B.element,"ytp-ads-tiny-mode");this.V=new AW(B.element);g.m(this,this.V);g.Pw(this.api,B.element,4);hN(T)&&(T=new g.O({B:"div",nf:["ytp-ad-underlay"]}),g.m(this,T),this.Y=new AW(T.element),g.m(this,this.Y),g.Pw(this.api,T.element,0));g.m(this,mwX())}; jTB=function(B,z){B=g.Sc(B.U,z.id,null);B==null&&g.KV(Error("Component not found for element id: "+z.id));return B||null}; XkP=function(B){g.I$.call(this,B);var z=this;this.U=null;this.created=!1;this.Y=B.K().D("h5_use_refactored_get_ad_break")?new nFB(this.player):new fS(this.player);this.W=function(){if(z.U!=null)return z.U;var R=new jdd({Pw:AF(z.T).Pw,OJ:AF(z.T).OJ,j:z.player,Pp:AF(z.T).Pp,PD:z.T.T.PD,eQ:AF(z.T).eQ,SF:z.T.T.SF});z.U=R.D8;return z.U}; this.T=new zrK(this.player,this,this.Y,this.W);g.m(this,this.T);var T=B.K();!gk(T)||g.vo(T)||uq(T)||(g.m(this,new j9(B,AF(this.T).ZJ,AF(this.T).Pp)),g.m(this,new TBd(B)))}; ZIb=function(B){B.created!==B.loaded&&Fo("Created and loaded are out of sync")}; ExK=function(B){g.I$.prototype.load.call(B);var z=AF(B.T).Pp;try{B.player.getRootNode().classList.add("ad-created")}catch(w){Fo(w instanceof Error?w:String(w))}var T=B.player.getVideoData(1),R=T&&T.videoId||"",h=T&&T.getPlayerResponse()||{},W=(!B.player.K().experiments.Cf("debug_ignore_ad_placements")&&h&&h.adPlacements||[]).map(function(w){return w.adPlacementRenderer}),b=((h==null?void 0:h.adSlots)||[]).map(function(w){return g.u(w,HI)}); h=h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;T&&T.PB();W=erz(W,b,z,AF(B.T).u2);b=T&&T.clientPlaybackNonce||"";T=T&&T.UM||!1;if(M_(z,!0)&&T){var l;z={};(l=B.player.getVideoData())==null||l.OE("p_cpb",(z.cc=b,z))}l=1E3*B.player.getDuration(1);sTP(B);B.T.T.KK.KY(b,l,T,W.Ht,W.u6,W.Ht,h,R)}; sTP=function(B){var z,T;if(T=(z=B.player.getVideoData(1))==null||!z.UM)z=B.player.K(),T=gk(z)&&!g.y9(z)&&z.playerStyle==="desktop-polymer";T&&(B=B.player.getInternalApi(),B.addEventListener("updateKevlarOrC3Companion",okr),B.addEventListener("updateEngagementPanelAction",Fvd),B.addEventListener("changeEngagementPanelVisibility",IjK),window.addEventListener("yt-navigate-start",dXY))}; XH=function(B,z){z===B.jP&&(B.jP=void 0)}; SlY=function(B){var z=AF(B.T).Bu,T=z.W().xa("SLOT_TYPE_PLAYER_BYTES",1);z=de(z.yu.get(),1).clientPlaybackNonce;var R=!1;T=g.d(T);for(var h=T.next();!h.done;h=T.next()){h=h.value;var W=h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.slotEntryTrigger instanceof y7?h.slotEntryTrigger.XX:void 0;W&&W===z&&(R&&Fo("More than 1 preroll playerBytes slot detected",h),R=!0)}R||YR(AF(B.T).jN)}; BXs=function(B){if(sx(AF(B.T).Pp))return!0;var z="";B=g.d(AF(B.T).eQ.Qe.keys());for(var T=B.next();!T.done;T=B.next()){T=T.value;if(T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.mJ==="core")return!0;z+=T.slotType+" "}Math.random()<.01&&Fo("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:z});return!1}; zYI=function(B){B=g.d(AF(B.T).eQ.Qe.values());for(var z=B.next();!z.done;z=B.next())if(z.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; kpB=function(B,z,T,R,h,W){T=T===void 0?[]:T;R=R===void 0?"":R;h=h===void 0?"":h;var b=AF(B.T).Pp,l=B.player.getVideoData(1);l&&l.getPlayerResponse();l&&l.PB();T=erz(z,T,b,AF(B.T).u2);Hvz(AF(B.T).Xt,R,T.Ht,T.u6,z,h,W)}; erz=function(B,z,T,R){z={Ht:[],u6:z};B=g.d(B);for(var h=B.next();!h.done;h=B.next())if((h=h.value)&&h.renderer!=null){var W=h.renderer;if(!T.j.K().D("html5_enable_vod_lasr_with_notify_pacf")){var b=void 0,l=void 0,w=void 0,q=void 0,c=R;g.u((q=W.sandwichedLinearAdRenderer)==null?void 0:q.adVideoStart,d3)?(b=g.u((w=W.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,d3),b=RIY(b,c),g.YZ(W.sandwichedLinearAdRenderer.adVideoStart,d3,b)):g.u((l=W.linearAdSequenceRenderer)==null?void 0:l.adStart,d3)&& (w=g.u((b=W.linearAdSequenceRenderer)==null?void 0:b.adStart,d3),b=RIY(w,c),g.YZ(W.linearAdSequenceRenderer.adStart,d3,b))}z.Ht.push(h)}return z}; g.ZQ=function(B){if(typeof DOMParser!="undefined")return Lr(new DOMParser,D8r(B),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.e9=function(B){g.K.call(this);this.callback=B;this.T=new Mv(0,0,.4,0,.2,1,1,1);this.delay=new g.Ew(this.next,window,this);g.m(this,this.delay)}; g.TXh=function(B){var z=B.K();return z.t0&&!z.Y&&g.yW(z)?B.isEmbedsShortsMode()?(B=B.ZO(),Math.min(B.width,B.height)>=315):!B.UN():!1}; g.sK=function(B){g.O.call(this,{B:"div",G:"ytp-more-videos-view",C:{tabIndex:"-1"}});var z=this;this.api=B;this.U=!0;this.Y=new g.kb(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.W=this.scrollPosition=0;this.title=new g.O({B:"h2",G:"ytp-related-title",Yd:"{{title}}"});this.previous=new g.O({B:"button",nf:["ytp-button","ytp-previous"],C:{"aria-label":"Show previous suggested videos"},S:[g.Vy()]});this.L=new g.e9(function(T){z.suggestions.element.scrollLeft=-T}); this.next=new g.O({B:"button",nf:["ytp-button","ytp-next"],C:{"aria-label":"Show more suggested videos"},S:[g.Qy()]});g.m(this,this.Y);this.X=B.K().W;g.m(this,this.title);this.title.Vu(this.element);this.suggestions=new g.O({B:"div",G:"ytp-suggestions"});g.m(this,this.suggestions);this.suggestions.Vu(this.element);g.m(this,this.previous);this.previous.Vu(this.element);this.previous.listen("click",this.UY,this);g.m(this,this.L);RYp(this);g.m(this,this.next);this.next.Vu(this.element);this.next.listen("click", this.Ty,this);this.Y.Z(this.api,"appresize",this.ox);this.Y.Z(this.api,"fullscreentoggled",this.pK);this.Y.Z(this.api,"videodatachange",this.onVideoDataChange);this.ox(this.api.NG().getPlayerSize());this.onVideoDataChange()}; RYp=function(B){for(var z={Wf:0};z.Wf<16;z={Wf:z.Wf},++z.Wf){var T=new g.O({B:"a",G:"ytp-suggestion-link",C:{href:"{{link}}",target:B.api.K().N,"aria-label":"{{aria_label}}"},S:[{B:"div",G:"ytp-suggestion-image"},{B:"div",G:"ytp-suggestion-overlay",C:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},S:[{B:"div",G:"ytp-suggestion-title",Yd:"{{title}}"},{B:"div",G:"ytp-suggestion-author",Yd:"{{author_and_views}}"},{B:"div",C:{"data-is-live":"{{is_live}}"},G:"ytp-suggestion-duration", Yd:"{{duration}}"}]}]});g.m(B,T);var R=T.BD("ytp-suggestion-link");g.Ml(R,"transitionDelay",z.Wf/20+"s");B.Y.Z(R,"click",function(h){return function(W){var b=h.Wf;if(B.U){var l=B.suggestionData[b],w=l.sessionData;B.X&&B.api.D("web_player_log_click_before_generating_ve_conversion_params")?(B.api.logClick(B.T[b].element),b=l.Go(),l={},g.Jd(B.api,l),b=g.Qn(b,l),g.bx(b,B.api,W)):g.WO(W,B.api,B.X,w||void 0)&&B.api.Dw(l.videoId,w,l.playlistId)}else W.preventDefault(),document.activeElement.blur()}}(z)); T.Vu(B.suggestions.element);B.T.push(T);B.api.createServerVe(T.element,T)}}; hY7=function(B){if(B.api.K().D("web_player_log_click_before_generating_ve_conversion_params"))for(var z=Math.floor(-B.scrollPosition/(B.W+8)),T=Math.min(z+B.columns,B.suggestionData.length)-1;z<=T;z++)B.api.logVisibility(B.T[z].element,!0)}; g.EK=function(B){var z=B.api.F_()?32:16;z=B.J/2+z;B.next.element.style.bottom=z+"px";B.previous.element.style.bottom=z+"px";z=B.scrollPosition;var T=B.containerWidth-B.suggestionData.length*(B.W+8);g.L2(B.element,"ytp-scroll-min",z>=0);g.L2(B.element,"ytp-scroll-max",z<=T)}; b5s=function(B){for(var z=B.suggestionData.length,T=0;T>>0)+"_",h=0;return z}); id("Symbol.iterator",function(B){if(B)return B;B=Symbol("Symbol.iterator");for(var z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),T=0;T0&&T>0;)if(R[--T]!=z[--h])return!1;return h<=0}}); id("Array.prototype.find",function(B){return B?B:function(z,T){return cKY(this,z,T).XH}}); id("Array.prototype.entries",function(B){return B?B:function(){return Hb(this,function(z,T){return[z,T]})}}); id("Array.prototype.keys",function(B){return B?B:function(){return Hb(this,function(z){return z})}}); id("String.prototype.startsWith",function(B){return B?B:function(z,T){var R=ud(this,z,"startsWith");z+="";var h=R.length,W=z.length;T=Math.max(0,Math.min(T|0,R.length));for(var b=0;b=W}}); id("Number.isFinite",function(B){return B?B:function(z){return typeof z!=="number"?!1:!isNaN(z)&&z!==Infinity&&z!==-Infinity}}); id("String.prototype.repeat",function(B){return B?B:function(z){var T=ud(this,null,"repeat");if(z<0||z>1342177279)throw new RangeError("Invalid count value");z|=0;for(var R="";z;)if(z&1&&(R+=T),z>>>=1)T+=T;return R}}); id("Object.entries",function(B){return B?B:function(z){var T=[],R;for(R in z)C5(z,R)&&T.push([R,z[R]]);return T}}); id("Array.from",function(B){return B?B:function(z,T,R){T=T!=null?T:function(l){return l}; var h=[],W=typeof Symbol!="undefined"&&Symbol.iterator&&z[Symbol.iterator];if(typeof W=="function"){z=W.call(z);for(var b=0;!(W=z.next()).done;)h.push(T.call(R,W.value,b++))}else for(W=z.length,b=0;b>>16&65535)*h+R*(T>>>16&65535)<<16>>>0)|0}}); id("Math.trunc",function(B){return B?B:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var T=Math.floor(Math.abs(z));return z<0?-T:T}}); id("Math.clz32",function(B){return B?B:function(z){z=Number(z)>>>0;if(z===0)return 32;var T=0;(z&4294901760)===0&&(z<<=16,T+=16);(z&4278190080)===0&&(z<<=8,T+=8);(z&4026531840)===0&&(z<<=4,T+=4);(z&3221225472)===0&&(z<<=2,T+=2);(z&2147483648)===0&&T++;return T}}); id("Number.isNaN",function(B){return B?B:function(z){return typeof z==="number"&&isNaN(z)}}); id("Array.prototype.values",function(B){return B?B:function(){return Hb(this,function(z,T){return T})}}); id("Array.prototype.fill",function(B){return B?B:function(z,T,R){var h=this.length||0;T<0&&(T=Math.max(0,h+T));if(R==null||R>h)R=h;R=Number(R);R<0&&(R=Math.max(0,h+R));for(T=Number(T||0);T0&&T?T.repeat(Math.ceil(z/T.length)).substring(0,z):"")+R}}); id("Array.prototype.findIndex",function(B){return B?B:function(z,T){return cKY(this,z,T).gm}}); id("Promise.prototype.finally",function(B){return B?B:function(z){return this.then(function(T){return Promise.resolve(z()).then(function(){return T})},function(T){return Promise.resolve(z()).then(function(){throw T; })})}}); id("Math.sign",function(B){return B?B:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}}); id("WeakSet",function(B){function z(T){this.T=new WeakMap;if(T){T=g.d(T);for(var R;!(R=T.next()).done;)this.add(R.value)}} if(function(){if(!B||!Object.seal)return!1;try{var T=Object.seal({}),R=Object.seal({}),h=new B([T]);if(!h.has(T)||h.has(R))return!1;h.delete(T);h.add(R);return!h.has(T)&&h.has(R)}catch(W){return!1}}())return B; z.prototype.add=function(T){this.T.set(T,!0);return this}; z.prototype.has=function(T){return this.T.has(T)}; z.prototype.delete=function(T){return this.T.delete(T)}; return z}); id("AggregateError",function(B){function z(T,R){R=Error(R);"stack"in R&&(this.stack=R.stack);this.errors=T;this.message=R.message} if(B)return B;g.G(z,Error);z.prototype.name="AggregateError";return z}); id("Array.prototype.copyWithin",function(B){function z(T){T=Number(T);return T===Infinity||T===-Infinity?T:T|0} return B?B:function(T,R,h){var W=this.length;T=z(T);R=z(R);h=h===void 0?W:z(h);T=T<0?Math.max(W+T,0):Math.min(T,W);R=R<0?Math.max(W+R,0):Math.min(R,W);h=h<0?Math.max(W+h,0):Math.min(h,W);if(TR;)--h in this?this[--T]=this[h]:delete this[--T];return this}}); id("Int8Array.prototype.copyWithin",OH);id("Uint8Array.prototype.copyWithin",OH);id("Uint8ClampedArray.prototype.copyWithin",OH);id("Int16Array.prototype.copyWithin",OH);id("Uint16Array.prototype.copyWithin",OH);id("Int32Array.prototype.copyWithin",OH);id("Uint32Array.prototype.copyWithin",OH);id("Float32Array.prototype.copyWithin",OH);id("Float64Array.prototype.copyWithin",OH);id("Array.prototype.at",function(B){return B?B:NB}); id("Int8Array.prototype.at",tK);id("Uint8Array.prototype.at",tK);id("Uint8ClampedArray.prototype.at",tK);id("Int16Array.prototype.at",tK);id("Uint16Array.prototype.at",tK);id("Int32Array.prototype.at",tK);id("Uint32Array.prototype.at",tK);id("Float32Array.prototype.at",tK);id("Float64Array.prototype.at",tK);id("String.prototype.at",function(B){return B?B:NB}); id("Array.prototype.findLastIndex",function(B){return B?B:function(z,T){return LBl(this,z,T).gm}}); id("Int8Array.prototype.findLastIndex",jl);id("Uint8Array.prototype.findLastIndex",jl);id("Uint8ClampedArray.prototype.findLastIndex",jl);id("Int16Array.prototype.findLastIndex",jl);id("Uint16Array.prototype.findLastIndex",jl);id("Int32Array.prototype.findLastIndex",jl);id("Uint32Array.prototype.findLastIndex",jl);id("Float32Array.prototype.findLastIndex",jl);id("Float64Array.prototype.findLastIndex",jl);id("Number.parseInt",function(B){return B||parseInt});var Xw,TU,Cdz;Xw=Xw||{};g.XK=this||self;TU="closure_uid_"+(Math.random()*1E9>>>0);Cdz=0;g.qg(iW,Error);iW.prototype.name="CustomError";var $gz;var AKX,Sb,Sa;AKX=Array.prototype.indexOf?function(B,z){return Array.prototype.indexOf.call(B,z,void 0)}:function(B,z){if(typeof B==="string")return typeof z!=="string"||z.length!=1?-1:B.indexOf(z,0); for(var T=0;T=0;T--)if(T in B&&B[T]===z)return T;return-1}; g.Ks=Array.prototype.forEach?function(B,z,T){Array.prototype.forEach.call(B,z,T)}:function(B,z,T){for(var R=B.length,h=typeof B==="string"?B.split(""):B,W=0;W=.3:this.GY>=.5};var Cy={YXm:0,N0J:1},g6l={NONE:0,mjf:1,v2K:2};var DBB="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");hv.prototype.getValue=function(){return this.U}; g.G(b2,hv);b2.prototype.Y=function(B){this.U===null&&g.ec(this.W,B)&&(this.U=B)}; g.G(Y1,hv);Y1.prototype.Y=function(B){this.U===null&&typeof B==="number"&&(this.U=B)}; g.G(l2,hv);l2.prototype.Y=function(B){this.U===null&&typeof B==="string"&&(this.U=B)};w1.prototype.disable=function(){this.U=!1}; w1.prototype.enable=function(){this.U=!0}; w1.prototype.isEnabled=function(){return this.U}; w1.prototype.reset=function(){this.T={};this.U=!0;this.Y={}};var zX=document,im=window;var Cdq=EH(1,!0),Qa=EH(610401301,!1);EH(899588437,!1);EH(725719775,!1);var rKF=EH(513659523,!1),orF=EH(568333945,!1),iTd=EH(1331761403,!1);EH(651175828,!1);EH(722764542,!1);EH(748402145,!1);EH(1981196515,!1);EH(103340015,!1);EH(555019702,!1);EH(2147483644,!1);EH(2147483645,!1);EH(2147483646,Cdq);EH(2147483647,!0);var ya=!!g.sH("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var d1=String.prototype.trim?function(B){return B.trim()}:function(B){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(B)[1]},bs5=/&/g,YpH=//g,w7X=/"/g,qpz=/'/g,isb=/\x00/g,WKH=/[\x00&<>"']/;var g1,FBc=g.XK.navigator;g1=FBc?FBc.userAgentData||null:null;var XbK=globalThis.trustedTypes,Ky;ny.prototype.toString=function(){return this.T+""};fy.prototype.toString=function(){return this.T}; var szB=new fy("about:invalid#zClosurez");var UOK=tv("tel"),AFb=tv("sms"),eYB=[tv("data"),tv("http"),tv("https"),tv("mailto"),tv("ftp"),new NS(function(B){return/^[^:]*([/?#]|$)/.test(B)})],ErK=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;EB.prototype.toString=function(){return this.T+""};RA.prototype.toString=function(){return this.T+""};wO.prototype.toString=function(){return this.T};var ih={};g.IzU=String.prototype.repeat?function(B,z){return B.repeat(z)}:function(B,z){return Array(z+1).join(B)};VQ[" "]=function(){};var VC,Sp,cVX,GPh,dB5,AKF,Uf,Mj,azR;g.VW=x1();g.Ff=H5d();g.Zs=py("Edge");g.Ef=g.Zs||g.Ff;VC=py("Gecko")&&!(GR(g.Va(),"WebKit")&&!py("Edge"))&&!(py("Trident")||py("MSIE"))&&!py("Edge");g.X8=GR(g.Va(),"WebKit")&&!py("Edge");Sp=Mu();cVX=FKz();g.zh=oPz();GPh=aA();dB5=py("iPad");AKF=py("iPod");Uf=US();Mj=GR(g.Va(),"KaiOS"); a:{var UBU="",Ml5=function(){var B=g.Va();if(VC)return/rv:([^\);]+)(\)|;)/.exec(B);if(g.Zs)return/Edge\/([\d\.]+)/.exec(B);if(g.Ff)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(B);if(g.X8)return/WebKit\/(\S+)/.exec(B);if(g.VW)return/(?:Version)[ \/]?(\S+)/.exec(B)}(); Ml5&&(UBU=Ml5?Ml5[1]:"");if(g.Ff){var S9,Vlc=g.XK.document;S9=Vlc?Vlc.documentMode:void 0;if(S9!=null&&S9>parseFloat(UBU)){azR=String(S9);break a}}azR=UBU}var AIY=azR,GUz={};var ED,SH;g.jg=vh();ED=aA()||py("iPod");SH=py("iPad");g.QW=O55();g.PG=Dd();g.Ax=k1()&&!US();var vWz=!g.Ff&&!k1();g.I=g.pr.prototype;g.I.clone=function(){return new g.pr(this.x,this.y)}; g.I.equals=function(B){return B instanceof g.pr&&$I(this,B)}; g.I.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.I.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.I.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.I.scale=function(B,z){this.x*=B;this.y*=typeof z==="number"?z:B;return this};g.I=g.PY.prototype;g.I.clone=function(){return new g.PY(this.width,this.height)}; g.I.aspectRatio=function(){return this.width/this.height}; g.I.isEmpty=function(){return!vY(this)}; g.I.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.I.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.I.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.I.scale=function(B,z){this.width*=B;this.height*=typeof z==="number"?z:B;return this};kI.prototype.toString=function(){return this.T}; var DV={};new kI(DV,"");var Mcz=/^[a-z][a-z\d-]*$/i,Vcz="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),yIX="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),JIP=["action","formaction","href"];var PWz={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.I=mM.prototype;g.I.jk=function(B){return HY(this.T,B)}; g.I.getElementsByTagName=function(B,z){return(z||this.T).getElementsByTagName(String(B))}; g.I.BD=function(B){return g.t2(B,this.T)}; g.I.setProperties=jh;g.I.createElement=function(B){return eh(this.T,B)}; g.I.appendChild=g.Bt;g.I.append=function(B,z){kUK(nr(B),B,arguments,1)}; g.I.canHaveChildren=function(B){if(B.nodeType!=1)return!1;switch(B.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.I.removeNode=g.RK;g.I.getChildren=function(B){return B.children!=void 0?B.children:Array.prototype.filter.call(B.childNodes,function(z){return z.nodeType==1})}; g.I.contains=g.hm;lm.prototype.now=function(){return 0}; lm.prototype.U=function(){return 0}; lm.prototype.Y=function(){return 0}; lm.prototype.T=function(){return 0};g.G(ql,lm);ql.prototype.now=function(){return wR()&&im.performance.now?im.performance.now():lm.prototype.now.call(this)}; ql.prototype.U=function(){return wR()&&im.performance.memory?im.performance.memory.totalJSHeapSize||0:lm.prototype.U.call(this)}; ql.prototype.Y=function(){return wR()&&im.performance.memory?im.performance.memory.usedJSHeapSize||0:lm.prototype.Y.call(this)}; ql.prototype.T=function(){return wR()&&im.performance.memory?im.performance.memory.jsHeapSizeLimit||0:lm.prototype.T.call(this)};var x0z=function(){if(!g.XK.addEventListener||!Object.defineProperty)return!1;var B=!1,z=Object.defineProperty({},"passive",{get:function(){B=!0}}); try{var T=function(){}; g.XK.addEventListener("test",T,z);g.XK.removeEventListener("test",T,z)}catch(R){}return B}();var N0B=u55("AnimationEnd"),qP=u55("TransitionEnd");g.I=F$.prototype;g.I.getHeight=function(){return this.bottom-this.top}; g.I.clone=function(){return new F$(this.top,this.right,this.bottom,this.left)}; g.I.contains=function(B){return this&&B?B instanceof F$?B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom:B.x>=this.left&&B.x<=this.right&&B.y>=this.top&&B.y<=this.bottom:!1}; g.I.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.I.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.I.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.I.scale=function(B,z){z=typeof z==="number"?z:B;this.left*=B;this.right*=B;this.top*=z;this.bottom*=z;return this};g.I=g.Am.prototype;g.I.clone=function(){return new g.Am(this.left,this.top,this.width,this.height)}; g.I.contains=function(B){return B instanceof g.pr?B.x>=this.left&&B.x<=this.left+this.width&&B.y>=this.top&&B.y<=this.top+this.height:this.left<=B.left&&this.left+this.width>=B.left+B.width&&this.top<=B.top&&this.top+this.height>=B.top+B.height}; g.I.getSize=function(){return new g.PY(this.width,this.height)}; g.I.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.I.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.I.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.I.scale=function(B,z){z=typeof z==="number"?z:B;this.left*=B;this.width*=B;this.top*=z;this.height*=z;return this};var fFB={};var ZsX=CF(function(){var B=!1;try{var z=Object.defineProperty({},"passive",{get:function(){B=!0}}); g.XK.addEventListener("test",null,z)}catch(T){}return B});ehB.prototype.isVisible=function(){return um(zX)===1};var N1P=Ht(function(B){return typeof B==="number"}),Oyb=Ht(function(B){return typeof B==="string"}),tz5=Ht(function(B){return typeof B==="boolean"}),LX=Ht(function(B){return B!=null&&typeof B==="object"&&typeof B.then==="function"}),FVl=Ht(function(B){return typeof B==="function"}),QzF=Ht(function(B){return!!B&&(typeof B==="object"||typeof B==="function")});var EPz={o0i:"allow-forms",fSJ:"allow-modals",NEF:"allow-orientation-lock",Akm:"allow-pointer-lock",E0E:"allow-popups",wHK:"allow-popups-to-escape-sandbox",kOG:"allow-presentation",aSm:"allow-same-origin",hwE:"allow-scripts",v0J:"allow-top-navigation",dnJ:"allow-top-navigation-by-user-activation"},T1b=CF(function(){return Spz()});var byb=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");jb.prototype.Pu=function(B,z,T){B=B+"//"+z+T;var R=qBK(this)-T.length;if(R<0)return"";this.T.sort(function(q,c){return q-c}); T=null;z="";for(var h=0;h=w.length){R-=w.length;B+=w;z=this.Y;break}T=T==null?W:T}}R="";T!=null&&(R=""+z+"trn="+T);return B+R};zs.prototype.setInterval=function(B,z){return im.setInterval(B,z)}; zs.prototype.clearInterval=function(B){im.clearInterval(B)}; zs.prototype.setTimeout=function(B,z){return im.setTimeout(B,z)}; zs.prototype.clearTimeout=function(B){im.clearTimeout(B)};var UO=void 0,aa,NOr=typeof TextDecoder!=="undefined",Avz,dS5=typeof String.prototype.isWellFormed==="function",GRz=typeof TextEncoder!=="undefined";var QPB={},wY=null,yvB=VC||g.X8||typeof g.XK.btoa=="function";var Kdr=typeof Uint8Array!=="undefined",P25=!g.Ff&&typeof btoa==="function",xSl=/[-_.]/g,ph5={"-":"+",_:"/",".":"="},iT={};qJ.prototype.isEmpty=function(){return this.T==null}; qJ.prototype.sizeBytes=function(){var B=L9(this);return B?B.length:0}; var kRB;var mSB=void 0;var Ir=typeof Symbol==="function"&&typeof Symbol()==="symbol",yKR=Fn("jas",void 0,!0),fe=Fn(void 0,"1oa"),b$=Fn(void 0,Symbol()),grR=Fn(void 0,"0ub"),IVH=Fn(void 0,"0ubs"),rmY=Fn(void 0,"0ubsb"),UuK=Fn(void 0,"0actk"),RF=Fn("m_m","n$m",!0),oId=Fn(void 0,"vps"),JKq=Fn();Math.max.apply(Math,g.Q(Object.values({vYu:1,hZF:2,aAE:4,NvJ:8,p8E:16,ppJ:32,T0I:64,j$O:128,koF:256,jci:512,hBJ:1024,RZE:2048,Sam:4096})));var uyB={mY:{value:0,configurable:!0,writable:!0,enumerable:!1}},n1b=Object.defineProperties,Gs=Ir?yKR:"mY",Qc,pbh=[];Az(pbh,7);Qc=Object.freeze(pbh);var h9={},U5={},$uK=Object.freeze({}),Qf={};var gY=typeof g.XK.BigInt==="function"&&typeof g.XK.BigInt(0)==="bigint";var Le=Ht(function(B){return gY?B>=$BI&&B<=Pd7:B[0]==="-"?jPz(B,xB5):jPz(B,vrK)}),xB5=Number.MIN_SAFE_INTEGER.toString(),$BI=gY?BigInt(Number.MIN_SAFE_INTEGER):void 0,vrK=Number.MAX_SAFE_INTEGER.toString(),Pd7=gY?BigInt(Number.MAX_SAFE_INTEGER):void 0;var nIl=typeof Uint8Array.prototype.slice==="function",p9=0,$n=0,o6H;var Xn=typeof BigInt==="function"?BigInt.asIntN:void 0,lVH=typeof BigInt==="function"?BigInt.asUintN:void 0,E5=Number.isSafeInteger,Hl=Number.isFinite,SV=Math.trunc,E1z=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var FMH={};var DBg={uSf:!0};var i$;var GNK,dud;var xuB=Jz(0),BW={};g.I=KMH.prototype;g.I.init=function(B,z,T,R){var h=R===void 0?{}:R;R=h.o3===void 0?!1:h.o3;h=h.dk===void 0?!1:h.dk;this.o3=R;this.dk=h;B&&(B=lM(B,this.dk),this.U=B.buffer,this.V=B.T,this.W=z||0,this.Y=T!==void 0?this.W+T:this.U.length,this.T=this.W)}; g.I.free=function(){this.clear();oa.length<100&&oa.push(this)}; g.I.clear=function(){this.U=null;this.V=!1;this.T=this.Y=this.W=0;this.o3=!1}; g.I.reset=function(){this.T=this.W}; g.I.YL=function(){var B=this.X;B||(B=this.U,B=this.X=new DataView(B.buffer,B.byteOffset,B.byteLength));return B}; var oa=[];Fp.prototype.free=function(){this.T.clear();this.U=this.W=-1;Ia.length<100&&Ia.push(this)}; Fp.prototype.reset=function(){this.T.reset();this.Y=this.T.T;this.U=this.W=-1}; var Ia=[];VG.prototype.toJSON=function(){return rq(this)}; VG.prototype.Y0=function(B){return JSON.stringify(rq(this,B))}; VG.prototype.clone=function(){var B=this.iK;return new this.constructor(IF(B,B[Gs]|0,!1))}; VG.prototype[RF]=h9;VG.prototype.toString=function(){return this.iK.toString()};var XYK,eoz;gg.prototype.length=function(){return this.T.length}; gg.prototype.end=function(){var B=this.T;this.T=[];return B};var kw=Dp(),kPF=Dp(),KBh=Dp(),mBU=Dp(),nrR=Dp(),uKI=Dp(),H5W=Dp(),fzR=Dp();var Wk5=m9(function(B,z,T,R,h){if(B.U!==2)return!1;A4(B,OM(z,R,T),h);return!0},h7r),bFz=m9(function(B,z,T,R,h){if(B.U!==2)return!1; A4(B,OM(z,R,T),h);return!0},h7r),EO=Symbol(),jU=Symbol(),eU=Symbol(),cmP=Symbol(),wtP=Symbol(),ng,uM;var O5s=TK(function(B,z,T){if(B.U!==1)return!1;hp(z,T,Cg(B.T));return!0},Wy,H5W),NX5=TK(function(B,z,T){if(B.U!==1)return!1; B=Cg(B.T);hp(z,T,B===0?void 0:B);return!0},Wy,H5W),tlF=TK(function(B,z,T,R){if(B.U!==1)return!1; ne(z,T,R,Cg(B.T));return!0},Wy,H5W),jz7=TK(function(B,z,T){if(B.U!==0)return!1; hp(z,T,qa(B.T));return!0},b3,nrR),Xb5=TK(function(B,z,T){if(B.U!==0)return!1; B=qa(B.T);hp(z,T,B===0?void 0:B);return!0},b3,nrR),Z5R=TK(function(B,z,T,R){if(B.U!==0)return!1; ne(z,T,R,qa(B.T));return!0},b3,nrR),eYg=TK(function(B,z,T){if(B.U!==0)return!1; hp(z,T,iM(B.T));return!0},YA,mBU),szK=TK(function(B,z,T){if(B.U!==0)return!1; B=iM(B.T);hp(z,T,B===0?void 0:B);return!0},YA,mBU),ErI=TK(function(B,z,T,R){if(B.U!==0)return!1; ne(z,T,R,iM(B.T));return!0},YA,mBU),SHg=TK(function(B,z,T){if(B.U!==1)return!1; hp(z,T,Lg(B.T));return!0},function(B,z,T){TR5(B,T,wYb(z))},uKI),BFs=Rt(function(B,z,T){if(B.U!==1&&B.U!==2)return!1; z=xW(z,z[Gs]|0,T);if(B.U==2)for(T=iM(B.T)>>>0,T=B.T.T+T;B.T.T>>0);return!0},function(B,z,T){z=tz(z); z!=null&&z!=null&&(xw(B,T,0),pg(B.T,z))},Dp()),Ypp=TK(function(B,z,T){if(B.U!==0)return!1; hp(z,T,iM(B.T));return!0},function(B,z,T){z=NJ(z); z!=null&&(z=parseInt(z,10),xw(B,T,0),EIH(B.T,z))},Dp());Am5.prototype.register=function(){VQ(this)};g.G(qi,VG);qi.prototype.U=akX([0,NX5,Xb5,-2,szK]);var Jmd={R5u:1,e2:2,tQi:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};$lz.prototype.VD=function(B){if(typeof B==="string"&&B.length!=0){var z=this.Xu;if(z.U){B=B.split("&");for(var T=B.length-1;T>=0;T--){var R=B[T].split("="),h=decodeURIComponent(R[0]);R.length>1?(R=decodeURIComponent(R[1]),R=/^[0-9]+$/g.exec(R)?parseInt(R,10):R):R=1;(h=z.T[h])&&h.Y(R)}}}};var WA=null;var ot=g.XK.performance,lFq=!!(ot&&ot.mark&&ot.measure&&ot.clearMarks),CJ=CF(function(){var B;if(B=lFq){var z=z===void 0?window:z;if(WA===null){WA="";try{B="";try{B=z.top.location.hash}catch(R){B=z.location.hash}if(B){var T=B.match(/\bdeid=([\d,]+)/);WA=T?T[1]:""}}catch(R){}}z=WA;B=!!z.indexOf&&z.indexOf("1337")>=0}return B}); ra.prototype.disable=function(){this.T=!1;this.events!==this.U.google_js_reporting_queue&&(CJ()&&g.Ks(this.events,KkK),this.events.length=0)}; ra.prototype.start=function(B,z){if(!this.T)return null;var T=Dll()||v6B();B=new kJB(B,z,T);z="goog_"+B.label+"_"+B.uniqueId+"_start";ot&&CJ()&&ot.mark(z);return B}; ra.prototype.end=function(B){if(this.T&&typeof B.value==="number"){var z=Dll()||v6B();B.duration=z-B.value;z="goog_"+B.label+"_"+B.uniqueId+"_end";ot&&CJ()&&ot.mark(z);!this.T||this.events.length>2048||this.events.push(B)}};var mlB=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),tbb=/#|$/,jKz=/[?&]($|#)/;ZF5.prototype.M8=function(B,z,T,R,h){h=h||this.iS;try{var W=new jb;W.T.push(1);W.U[1]=X$("context",B);z.error&&z.meta&&z.id||(z=new kA(KJ(z)));if(z.msg){var b=z.msg.substring(0,512);W.T.push(2);W.U[2]=X$("msg",b)}var l=z.meta||{};if(this.Fb)try{this.Fb(l)}catch(r){}if(R)try{R(l)}catch(r){}R=[l];W.T.push(3);W.U[3]=R;var w=ldP();if(w.U){var q=w.U.url||"";W.T.push(4);W.U[4]=X$("top",q)}var c={url:w.T.url||""};if(w.T.url){var L=g.It(w.T.url);var C=Fc(L[1],null,L[3],L[4])}else C="";q=[c,{url:C}];W.T.push(5); W.U[5]=q;Pml(this.T,h,W,T)}catch(r){try{Pml(this.T,h,{context:"ecmserr",rctx:B,msg:KJ(r),url:w&&w.T.url},T)}catch(F){}}return this.Ze}; g.G(kA,xlY);var vy,DG,xA=new ra;vy=new function(){var B="https:";im&&im.location&&im.location.protocol==="http:"&&(B="http:");this.U=B;this.T=.01}; DG=new ZF5;im&&im.document&&(im.document.readyState=="complete"?sKK():xA.T&&nF(im,"load",function(){sKK()}));var BYB=Date.now(),Ni=-1,fJ=-1,wWz,tp=-1,Od=!1;Xc.prototype.equals=function(B,z){return!!B&&(!(z===void 0?0:z)||this.volume==B.volume)&&this.Y==B.Y&&GJ(this.T,B.T)&&!0};ZG.prototype.jk=function(){return this.L}; ZG.prototype.equals=function(B,z){return this.W.equals(B.W,z===void 0?!1:z)&&this.L==B.L&&GJ(this.Y,B.Y)&&GJ(this.X,B.X)&&this.T==B.T&&this.V==B.V&&this.U==B.U&&this.J==B.J};var w7F={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},SS={K$:"start",aM:"firstquartile",z$:"midpoint",p$:"thirdquartile",COMPLETE:"complete",ERROR:"error",Ff:"metric",PAUSE:"pause",Hl:"resume",Z8:"skip",uP:"viewable_impression",Pl:"mute",sz:"unmute",hW:"fullscreen",kV:"exitfullscreen",uw:"bufferstart",S0:"bufferfinish",vA:"fully_viewable_audible_half_duration_impression",lP:"measurable_impression",GN:"abandon",wh:"engagedview",dW:"impression",fW:"creativeview",n$:"loaded", n3d:"progress",CLOSE:"close",dZJ:"collapse",hRu:"overlay_resize",vou:"overlay_unmeasurable_impression",dLi:"overlay_unviewable_impression",TIE:"overlay_viewable_immediate_impression",iaF:"overlay_viewable_end_of_session_impression",N1:"custom_metric_viewable",Zp:"audio_audible",M1:"audio_measurable",JW:"audio_impression"},dil="start firstquartile midpoint thirdquartile resume loaded".split(" "),Apz=["start","firstquartile","midpoint","thirdquartile"],ig5=["abandon"],Ga={UNKNOWN:-1,K$:0,aM:1,z$:2, p$:3,COMPLETE:4,Ff:5,PAUSE:6,Hl:7,Z8:8,uP:9,Pl:10,sz:11,hW:12,kV:13,vA:14,lP:15,GN:16,wh:17,dW:18,fW:19,n$:20,N1:21,uw:22,S0:23,JW:27,M1:28,Zp:29};var TYK={JkK:"addEventListener",ikD:"getMaxSize",T2F:"getScreenSize",UjE:"getState",OkI:"getVersion",IXJ:"removeEventListener",dKZ:"isViewable"};wlY.prototype.update=function(B){B&&B.document&&(this.L=ea(!1,B,this.isMobileDevice),this.T=ea(!0,B,this.isMobileDevice),wDB(this,B),l0K(this,B))};R3.prototype.cancel=function(){Ts().clearTimeout(this.T);this.T=null}; R3.prototype.schedule=function(){var B=this,z=Ts(),T=cy().T.T;this.T=z.setTimeout(i3(T,nJ(143,function(){B.U++;B.Y.sample()})),zud())};g.I=hw.prototype;g.I.aZ=function(){return!1}; g.I.initialize=function(){return this.isInitialized=!0}; g.I.us=function(){return this.T.XE}; g.I.iX=function(){return this.T.TZ}; g.I.Ep=function(B,z){if(!this.TZ||(z===void 0?0:z))this.TZ=!0,this.XE=B,this.J=0,this.T!=this||bO(this)}; g.I.getName=function(){return this.T.cD}; g.I.K6=function(){return this.T.cQ()}; g.I.cQ=function(){return{}}; g.I.AR=function(){return this.T.J}; g.I.t8=function(){var B=B6();B.T=ea(!0,this.Y,B.isMobileDevice)}; g.I.HK=function(){l0K(B6(),this.Y)}; g.I.s9=function(){return this.W.T}; g.I.sample=function(){}; g.I.isActive=function(){return this.T.X}; g.I.iH=function(B){var z=this.T;this.T=B.AR()>=this.J?B:this;z!==this.T?(this.X=this.T.X,bO(this)):this.X!==this.T.X&&(this.X=this.T.X,bO(this))}; g.I.kD=function(B){if(B.U===this.T){var z=!this.W.equals(B,this.N);this.W=B;z&&c9Y(this)}}; g.I.vk=function(){return this.N}; g.I.dispose=function(){this.RK=!0}; g.I.xd=function(){return this.RK};g.I=Y3.prototype;g.I.observe=function(){return!0}; g.I.unobserve=function(){}; g.I.FX=function(B){this.V=B}; g.I.dispose=function(){if(!this.xd()){var B=this.U;g.GU(B.V,this);B.N&&this.vk()&&ieB(B);this.unobserve();this.WD=!0}}; g.I.xd=function(){return this.WD}; g.I.K6=function(){return this.U.K6()}; g.I.AR=function(){return this.U.AR()}; g.I.us=function(){return this.U.us()}; g.I.iX=function(){return this.U.iX()}; g.I.iH=function(){}; g.I.kD=function(){this.Fy()}; g.I.vk=function(){return this.RK};g.I=lO.prototype;g.I.AR=function(){return this.T.AR()}; g.I.us=function(){return this.T.us()}; g.I.iX=function(){return this.T.iX()}; g.I.create=function(B,z,T){var R=null;this.T&&(R=this.R3(B,z,T),W6(this.T,R));return R}; g.I.mw=function(){return this.hC()}; g.I.hC=function(){return!1}; g.I.init=function(B){return this.T.initialize()?(W6(this.T,this),this.W=B,!0):!1}; g.I.iH=function(B){B.AR()==0&&this.W(B.us(),this)}; g.I.kD=function(){}; g.I.vk=function(){return!1}; g.I.dispose=function(){this.V=!0}; g.I.xd=function(){return this.V}; g.I.K6=function(){return{}};wl.prototype.add=function(B,z,T){++this.Y;B=new C$H(B,z,T);this.T.push(new C$H(B.U,B.T,B.Y+this.Y/4096));this.U=!0;return this};G0z.prototype.toString=function(){var B="//pagead2.googlesyndication.com//pagead/gen_204",z=iO(this.T);z.length>0&&(B+="?"+z);return B};g.K.prototype.g5=!1;g.K.prototype.xd=function(){return this.g5}; g.K.prototype.dispose=function(){this.g5||(this.g5=!0,this.gF())}; g.K.prototype[Symbol.dispose]=function(){this.dispose()}; g.K.prototype.addOnDisposeCallback=function(B,z){this.g5?z!==void 0?B.call(z):B():(this.kB||(this.kB=[]),z&&(B=B.bind(z)),this.kB.push(B))}; g.K.prototype.gF=function(){if(this.kB)for(;this.kB.length;)this.kB.shift()()};Cq.prototype.update=function(B,z,T){B&&(this.T+=z,this.U+=z,this.W+=z,this.Y=Math.max(this.Y,this.W));if(T===void 0?!B:T)this.W=0};var MKz=[1,.75,.5,.3,0];rl.prototype.update=function(B,z,T,R,h,W){W=W===void 0?!0:W;z=h?Math.min(B,z):z;for(h=0;h0&&z>=b;b=!(B>0&&B>=b)||T;this.T[h].update(W&&l,R,!W||b)}};Aw.prototype.update=function(B,z,T,R){this.L=this.L!=-1?Math.min(this.L,z.GY):z.GY;this.UE=Math.max(this.UE,z.GY);this.WD=this.WD!=-1?Math.min(this.WD,z.kY):z.kY;this.XE=Math.max(this.XE,z.kY);this.EE.update(z.kY,T.kY,z.T,B,R);this.lO+=B;z.GY===0&&(this.cD+=B);this.U.update(z.GY,T.GY,z.T,B,R);T=R||T.E1!=z.E1?T.isVisible()&&z.isVisible():T.isVisible();z=!z.isVisible()||z.T;this.Kf.update(T,B,z)}; Aw.prototype.QZ=function(){return this.Kf.Y>=this.eI};if(zX&&zX.URL){var qpR=zX.URL,is7;if(is7=!!qpR){var cIq;a:{if(qpR){var LKc=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var bG=LKc.exec(decodeURIComponent(qpR));if(bG){cIq=bG[1]&&bG[1].length>1?bG[1].substring(1):"true";break a}}catch(B){}}cIq=""}is7=cIq.length>0}DG.Ze=!is7};var CWI=new F$(0,0,0,0);var P$z=new F$(0,0,0,0);g.G(yX,g.K);g.I=yX.prototype; g.I.gF=function(){if(this.DA.T){if(this.l2.wS){var B=this.DA.T;typeof B.removeEventListener==="function"&&B.removeEventListener("mouseover",this.l2.wS,mk());this.l2.wS=null}this.l2.ED&&(B=this.DA.T,typeof B.removeEventListener==="function"&&B.removeEventListener("mouseout",this.l2.ED,mk()),this.l2.ED=null)}this.yw&&this.yw.dispose();this.Z4&&this.Z4.dispose();delete this.yY;delete this.Ks;delete this.dh;delete this.DA.Dj;delete this.DA.T;delete this.l2;delete this.yw;delete this.Z4;delete this.Xu; g.K.prototype.gF.call(this)}; g.I.SP=function(){return this.Z4?this.Z4.T:this.position}; g.I.VD=function(B){cy().VD(B)}; g.I.vk=function(){return!1}; g.I.Rk=function(){return new Aw}; g.I.LY=function(){return this.yY}; g.I.LN=function(B){return k0z(this,B,1E4)}; g.I.rF=function(B,z,T,R,h,W,b){this.U_||(this.XN&&(B=this.t5(B,T,h,b),R=R&&this.Xl.GY>=(this.E1()?.3:.5),this.bR(W,B,R),this.mK=z,B.GY>0&&-1===this.qq&&(this.qq=z),this.mp==-1&&this.QZ()&&(this.mp=z),this.HW==-2&&(this.HW=M0(this.SP())?B.GY:-1),this.Xl=B),this.Ks(this))}; g.I.bR=function(B,z,T){this.LY().update(B,z,this.Xl,T)}; g.I.VM=function(){return new ns}; g.I.t5=function(B,z,T,R){T=this.VM();T.T=z;z=Ts().U;z=um(zX)===0?-1:z.isVisible()?0:1;T.U=z;T.GY=this.vn(B);T.E1=this.E1();T.kY=R;return T}; g.I.vn=function(B){return this.opacity===0&&ch(this.Xu,"opac")===1?0:B}; g.I.E1=function(){return!1}; g.I.KM=function(){return this.Cy||this.N0}; g.I.LK=function(){Hy()}; g.I.E$=function(){Hy()}; g.I.lD=function(){return 0}; g.I.QZ=function(){return this.yY.QZ()}; g.I.ej=function(){var B=this.XN;B=(this.hasCompleted||this.xd())&&!B;var z=cy().U!==2||this.hkd;return this.U_||z&&B?2:this.QZ()?4:3}; g.I.w6=function(){return 0};g.Jw.prototype.next=function(){return g.YD}; g.YD={done:!0,value:void 0};g.Jw.prototype.Fw=function(){return this};g.G(f0Y,ns);var lG=Nqz([void 0,1,2,3,4,8,16]),wM=Nqz([void 0,4,8,16]),rIF={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:x3("p0",wM),p1:x3("p1",wM),p2:x3("p2",wM),p3:x3("p3",wM),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:P6("mtos1",[0,2,4],!1,wM),mtos2:P6("mtos2",[0,2,4],!1,wM),mtos3:P6("mtos3",[0,2,4],!1,wM),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:x3("a0",wM),a1:x3("a1",wM),a2:x3("a2",wM),a3:x3("a3",wM),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:x3("c0",wM),c1:x3("c1",wM),c2:x3("c2",wM),c3:x3("c3",wM),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:x3("qmtos",lG),qnc:x3("qnc",lG),qmv:x3("qmv",lG),qnv:x3("qnv",lG), 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:x3("ss0",wM),ss1:x3("ss1",wM),ss2:x3("ss2",wM),ss3:x3("ss3",wM),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"},oPq=Object.assign({},rIF,{avid:ct("audio"),avas:"avas",vs:"vs"}),FKR={atos:"atos",avt:P6("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(B,z){return function(T){return T[B]===void 0&&z!==void 0?z:T[B]}}("ss",0), t:"t"};Kq.prototype.getValue=function(){return this.U}; Kq.prototype.update=function(B,z){B>=32||(this.T&1<=.5;Ed(z.volume)&&(this.W=this.W!=-1?Math.min(this.W,z.volume):z.volume,this.X=Math.max(this.X,z.volume));W&&(this.RK+=B,this.N+=h?B:0);this.T.update(z.GY,T.GY,z.T,B,R,h);this.Y.update(!0,B);this.V.update(h,B);this.TZ.update(T.fullscreen,B);this.aK.update(h&&!W,B);B=Math.floor(z.mediaTime/1E3);this.zZ.update(B,z.isVisible());this.MG.update(B,z.GY>=1);this.sE.update(B, $3(z))}};sFY.prototype.U=function(B){this.Y||(this.T(B)?(B=lGH(this.N,this.W,B),this.V|=B,B=B==0):B=!1,this.Y=B)};g.G(uO,sFY);uO.prototype.T=function(){return!0}; uO.prototype.X=function(){return!1}; uO.prototype.getId=function(){var B=this,z=sp(SS,function(T){return T==B.W}); return Ga[z].toString()}; uO.prototype.toString=function(){var B="";this.X()&&(B+="c");this.Y&&(B+="s");this.V>0&&(B+=":"+this.V);return this.getId()+B};g.G(H6,uO);H6.prototype.U=function(B,z){z=z===void 0?null:z;z!=null&&this.L.push(z);uO.prototype.U.call(this,B)};g.G(OT,EWb);OT.prototype.U=function(){return null}; OT.prototype.Y=function(){return[]};g.G(N0,Y3);g.I=N0.prototype;g.I.J5=function(){if(this.element){var B=this.element,z=this.U.T.Y;try{try{var T=b9r(B.getBoundingClientRect())}catch(q){T=new F$(0,0,0,0)}var R=T.right-T.left,h=T.bottom-T.top,W=tcK(B,z),b=W.x,l=W.y;var w=new F$(Math.round(l),Math.round(b+R),Math.round(l+h),Math.round(b))}catch(q){w=CWI.clone()}this.Y=w;this.T=LbH(this,this.Y)}}; g.I.B1=function(){this.X=this.U.W.T}; g.I.M4=function(B){var z=ch(this.Xu,"od")==1;return $1z(B,this.X,this.element,z)}; g.I.jh=function(){this.timestamp=Hy()}; g.I.Fy=function(){this.jh();this.J5();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var B=this.element;var z=new g.PY(B.videoWidth,B.videoHeight);B=this.T;var T=IK(B),R=B.getHeight(),h=z.width;z=z.height;h<=0||z<=0||T<=0||R<=0||(h/=z,z=T/R,B=B.clone(),h>z?(T/=h,R=(R-T)/2,R>0&&(R=B.top+R,B.top=Math.round(R),B.bottom=Math.round(R+T))):(R*=h,T=Math.round((T-R)/2),T>0&&(T=B.left+T,B.left=Math.round(T),B.right=Math.round(T+R))));this.T=B}this.B1(); B=this.T;T=this.X;B=B.left<=T.right&&T.left<=B.right&&B.top<=T.bottom&&T.top<=B.bottom?new F$(Math.max(B.top,T.top),Math.min(B.right,T.right),Math.min(B.bottom,T.bottom),Math.max(B.left,T.left)):new F$(0,0,0,0);T=B.top>=B.bottom||B.left>=B.right?new F$(0,0,0,0):B;B=this.U.W;z=h=R=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.M4(T))T=new F$(0,0,0,0);else{R=B6().W;z=new F$(0,R.height,R.width,0);var W;R=VX(T,(W=this.V)!=null?W:this.T);h=VX(T,B6().T);z=VX(T,z)}W=T.top>=T.bottom|| T.left>=T.right?new F$(0,0,0,0):dR(T,-this.T.left,-this.T.top);TX()||(h=R=0);this.N=new ZG(B,this.element,this.T,W,R,h,this.timestamp,z)}; g.I.getName=function(){return this.U.getName()};var IFp=new F$(0,0,0,0);g.G(tw,N0);g.I=tw.prototype;g.I.observe=function(){this.W();return!0}; g.I.kD=function(){N0.prototype.Fy.call(this)}; g.I.jh=function(){}; g.I.J5=function(){}; g.I.Fy=function(){this.W();N0.prototype.Fy.call(this)}; g.I.iH=function(B){B=B.isActive();B!==this.J&&(B?this.W():(B6().T=new F$(0,0,0,0),this.T=new F$(0,0,0,0),this.X=new F$(0,0,0,0),this.timestamp=-1));this.J=B};var qy={},lpr=(qy.firstquartile=0,qy.midpoint=1,qy.thirdquartile=2,qy.complete=3,qy);g.G(X9,yX);g.I=X9.prototype;g.I.vk=function(){return!0}; g.I.nU=function(){return this.Mj==2}; g.I.LN=function(B){return k0z(this,B,Math.max(1E4,this.Y/3))}; g.I.rF=function(B,z,T,R,h,W,b){var l=this,w=this.L(this)||{};g.RP(w,h);this.Y=w.duration||this.Y;this.N=w.isVpaid||this.N;this.cD=w.isYouTube||this.cD;Ts();this.EE=!1;h=BgX(this,z);SMB(this)===1&&(W=h);yX.prototype.rF.call(this,B,z,T,R,w,W,b);this.jW&&this.jW.Y&&g.Ks(this.X,function(q){q.U(l)})}; g.I.bR=function(B,z,T){yX.prototype.bR.call(this,B,z,T);sT(this).update(B,z,this.Xl,T);this.eI=$3(this.Xl)&&$3(z);this.XE==-1&&this.MG&&(this.XE=this.LY().Y.T);this.o1.Y=0;B=this.QZ();z.isVisible()&&k3(this.o1,"vs");B&&k3(this.o1,"vw");Ed(z.volume)&&k3(this.o1,"am");$3(z)?k3(this.o1,"a"):k3(this.o1,"mut");this.RP&&k3(this.o1,"f");z.U!=-1&&(k3(this.o1,"bm"),z.U==1&&(k3(this.o1,"b"),$3(z)&&k3(this.o1,"umutb")));$3(z)&&z.isVisible()&&k3(this.o1,"avs");this.eI&&B&&k3(this.o1,"avw");z.GY>0&&k3(this.o1, "pv");ET(this,this.LY().Y.T,!0)&&k3(this.o1,"gdr");GX(this.LY().U,1)>=2E3&&k3(this.o1,"pmx");this.EE&&k3(this.o1,"tvoff")}; g.I.Rk=function(){return new my}; g.I.LY=function(){return this.yY}; g.I.VM=function(){return new f0Y}; g.I.t5=function(B,z,T,R){B=yX.prototype.t5.call(this,B,z,T,R===void 0?-1:R);B.fullscreen=this.RP;B.paused=this.nU();B.volume=T.volume;Ed(B.volume)||(this.U0++,z=this.Xl,Ed(z.volume)&&(B.volume=z.volume));T=T.currentTime;B.mediaTime=T!==void 0&&T>=0?T:-1;return B}; g.I.vn=function(B){return B6(),this.RP?1:yX.prototype.vn.call(this,B)}; g.I.lD=function(){return 1}; g.I.getDuration=function(){return this.Y}; g.I.ej=function(){return this.U_?2:TgK(this)?5:this.QZ()?4:3}; g.I.w6=function(){return this.aK?this.LY().V.Y>=2E3?4:3:2}; g.I.FX=function(B){this.Z4&&this.Z4.FX(B)};var GUF=g.YP();GBP.prototype.reset=function(){this.T=[];this.U=[]}; var hl=Bl(GBP);g.G(Y5,lO);g.I=Y5.prototype;g.I.getName=function(){return(this.U?this.U:this.T).getName()}; g.I.K6=function(){return(this.U?this.U:this.T).K6()}; g.I.AR=function(){return(this.U?this.U:this.T).AR()}; g.I.init=function(B){var z=!1;(0,g.Ks)(this.Y,function(T){T.initialize()&&(z=!0)}); z&&(this.W=B,W6(this.T,this));return z}; g.I.dispose=function(){(0,g.Ks)(this.Y,function(B){B.dispose()}); lO.prototype.dispose.call(this)}; g.I.mw=function(){return Sa(this.Y,function(B){return B.aZ()})}; g.I.hC=function(){return Sa(this.Y,function(B){return B.aZ()})}; g.I.R3=function(B,z,T){return new N0(B,this.T,z,T)}; g.I.kD=function(B){this.U=B.U};var gwl={threshold:[0,.3,.5,.75,1]};g.G(lQ,N0);g.I=lQ.prototype;g.I.observe=function(){var B=this;this.UE||(this.UE=Hy());if(S9P(298,function(){return J4X(B)}))return!0; this.U.Ep("msf");return!1}; g.I.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.L&&(this.L.disconnect(),this.L=null)}catch(B){}}; g.I.Fy=function(){var B=ws(this);B.length>0&&qF(this,B);N0.prototype.Fy.call(this)}; g.I.J5=function(){}; g.I.M4=function(){return!1}; g.I.B1=function(){}; g.I.K6=function(){var B={};return Object.assign(this.U.K6(),(B.niot_obs=this.UE,B.niot_cbk=this.TZ,B))}; g.I.getName=function(){return"nio"};g.G(iQ,lO);iQ.prototype.getName=function(){return"nio"}; iQ.prototype.hC=function(){return!B6().U&&this.T.T.Y.IntersectionObserver!=null}; iQ.prototype.R3=function(B,z,T){return new lQ(B,this.T,z,T)};g.G(cQ,hw);cQ.prototype.s9=function(){return B6().T}; cQ.prototype.aZ=function(){var B=$aX();this.J!==B&&(this.T!=this&&B>this.T.J&&(this.T=this,bO(this)),this.J=B);return B==2};L4.prototype.sample=function(){o0(this,WQ(),!1)}; L4.prototype.W=function(){var B=TX(),z=Hy();B?(Od||(Ni=z,g.Ks(hl.T,function(T){var R=T.LY();R.IK=nq(R,z,T.Mj!=1)})),Od=!0):(this.L=kBK(this,z),Od=!1,wWz=z,g.Ks(hl.T,function(T){T.XN&&(T.LY().J=z)})); o0(this,WQ(),!B)}; var C4=Bl(L4);var mal=null,n4="",mz=!1;var Hgb=upr().gV,I0=upr().QO;var NgH={AYO:"visible",cuO:"audible",V8J:"time",DVG:"timetype"},tUK={visible:function(B){return/^(100|[0-9]{1,2})$/.test(B)}, audible:function(B){return B=="0"||B=="1"}, timetype:function(B){return B=="mtos"||B=="tos"}, time:function(B){return/^(100|[0-9]{1,2})%$/.test(B)||/^([0-9])+ms$/.test(B)}}; Ogr.prototype.setTime=function(B,z,T){z=="ms"?(this.Y=B,this.W=-1):(this.Y=-1,this.W=B);this.V=T===void 0?"tos":T;return this};g.G(a0,uO);a0.prototype.getId=function(){return this.L}; a0.prototype.X=function(){return!0}; a0.prototype.T=function(B){var z=B.LY(),T=B.getDuration();return Sa(this.J,function(R){if(R.T!=void 0)var h=XWz(R,z);else b:{switch(R.V){case "mtos":h=R.U?z.V.Y:z.Y.T;break b;case "tos":h=R.U?z.V.T:z.Y.T;break b}h=0}h==0?R=!1:(R=R.Y!=-1?R.Y:T!==void 0&&T>0?R.W*T:-1,R=R!=-1&&h>=R);return R})};g.G(Uo,jFY);Uo.prototype.T=function(B){var z=new tKY;z.T=DO(B,rIF);z.U=DO(B,FKR);return z};g.G(MF,uO);MF.prototype.T=function(B){return TgK(B)};g.G(VU,EWb);g.G(QU,uO);QU.prototype.T=function(B){return B.LY().QZ()};g.G(yU,H6);yU.prototype.T=function(B){var z=g.F5(this.L,ch(cy().Xu,"ovms"));return!B.U_&&(B.Mj!=0||z)};g.G(gs,VU);gs.prototype.U=function(){return new yU(this.T)}; gs.prototype.Y=function(){return[new QU("viewable_impression",this.T),new MF(this.T)]};g.G(Jl,tw);Jl.prototype.W=function(){var B=g.sH("ima.admob.getViewability"),z=ch(this.Xu,"queryid");typeof B==="function"&&z&&B(z)}; Jl.prototype.getName=function(){return"gsv"};g.G(p4,lO);p4.prototype.getName=function(){return"gsv"}; p4.prototype.hC=function(){var B=B6();cy();return B.U&&!1}; p4.prototype.R3=function(B,z,T){return new Jl(this.T,z,T)};g.G($5,tw);$5.prototype.W=function(){var B=this,z=g.sH("ima.bridge.getNativeViewability"),T=ch(this.Xu,"queryid");typeof z==="function"&&T&&z(T,function(R){g.Ep(R)&&B.L++;var h=R.opt_nativeViewVisibleBounds||{},W=R.opt_nativeViewHidden;B.T=Y5b(R.opt_nativeViewBounds||{});var b=B.U.W;b.T=W?IFp.clone():Y5b(h);B.timestamp=R.opt_nativeTime||-1;B6().T=b.T;R=R.opt_nativeVolume;R!==void 0&&(b.volume=R)})}; $5.prototype.getName=function(){return"nis"};g.G(PQ,lO);PQ.prototype.getName=function(){return"nis"}; PQ.prototype.hC=function(){var B=B6();cy();return B.U&&!1}; PQ.prototype.R3=function(B,z,T){return new $5(this.T,z,T)};g.G(x5,hw);g.I=x5.prototype;g.I.aZ=function(){return this.U.x9!=null}; g.I.cQ=function(){var B={};this.zZ&&(B.mraid=this.zZ);this.WD&&(B.mlc=1);B.mtop=this.U.xQE;this.L&&(B.mse=this.L);this.lO&&(B.msc=1);B.mcp=this.U.compatibility;return B}; g.I.AS=function(B){var z=g.K5.apply(1,arguments);try{return this.U.x9[B].apply(this.U.x9,z)}catch(T){u3(538,T,.01,function(R){R.method=B})}}; g.I.initialize=function(){var B=this;if(this.isInitialized)return!this.iX();this.isInitialized=!0;if(this.U.compatibility===2)return this.L="ng",this.Ep("w"),!1;if(this.U.compatibility===1)return this.L="mm",this.Ep("w"),!1;B6().J=!0;this.Y.document.readyState&&this.Y.document.readyState=="complete"?EwP(this):UT(this.Y,"load",function(){Ts().setTimeout(nJ(292,function(){return EwP(B)}),100)},292); return!0}; g.I.t8=function(){var B=B6(),z=RRX(this,"getMaxSize");B.T=new F$(0,z.width,z.height,0)}; g.I.HK=function(){B6().W=RRX(this,"getScreenSize")}; g.I.dispose=function(){BaB(this);hw.prototype.dispose.call(this)};var QKd=new function(B,z){this.key=B;this.defaultValue=z===void 0?!1:z;this.valueType="boolean"}("45378663");g.I=DJ.prototype;g.I.c6=function(B){gl(B,!1);UaK(B)}; g.I.q9=function(){}; g.I.Kb=function(B,z,T,R){var h=this;B=new X9(im,B,T?z:-1,7,this.bV(),this.MN());B.OX=R;kPX(B.Xu);i2(B.Xu,"queryid",B.OX);B.VD("");nWr(B,function(){return h.wj.apply(h,g.Q(g.K5.apply(0,arguments)))},function(){return h.bJ.apply(h,g.Q(g.K5.apply(0,arguments)))}); (R=Bl(bQ).T)&&D15(B,R);this.Y&&(B.FX(this.Y),this.Y=null);B.DA.Dj&&Bl(PMz);return B}; g.I.iH=function(B){switch(B.AR()){case 0:if(B=Bl(bQ).T)B=B.T,g.GU(B.V,this),B.N&&this.vk()&&ieB(B);K4();break;case 2:rs()}}; g.I.kD=function(){}; g.I.vk=function(){return!1}; g.I.bJ=function(B,z){B.U_=!0;switch(B.lD()){case 1:wyK(B,z);break;case 2:this.Is(B)}}; g.I.xm=function(B){var z=B.L(B);z&&(z=z.volume,B.aK=Ed(z)&&z>0);W9b(B,0);return BQ(B,"start",TX())}; g.I.BR=function(B,z,T){o0(C4,[B],!TX());return this.FW(B,z,T)}; g.I.FW=function(B,z,T){return BQ(B,T,TX())}; g.I.X0=function(B){return Oo(B,"firstquartile",1)}; g.I.D9=function(B){B.MG=!0;return Oo(B,"midpoint",2)}; g.I.Py=function(B){return Oo(B,"thirdquartile",3)}; g.I.By=function(B){var z=Oo(B,"complete",4);ZO(B);return z}; g.I.je=function(B){B.Mj=3;return BQ(B,"error",TX())}; g.I.PG=function(B,z,T){z=TX();if(B.nU()&&!z){var R=B.LY(),h=Hy();R.J=h}o0(C4,[B],!z);B.nU()&&(B.Mj=1);return BQ(B,T,z)}; g.I.F0=function(B,z){z=this.BR(B,z||{},"skip");ZO(B);return z}; g.I.Vm=function(B,z){gl(B,!0);return this.BR(B,z||{},"fullscreen")}; g.I.Rh=function(B,z){gl(B,!1);return this.BR(B,z||{},"exitfullscreen")}; g.I.Om=function(B,z,T){z=B.LY();var R=Hy();z.IK=nq(z,R,B.Mj!=1);o0(C4,[B],!TX());B.Mj==1&&(B.Mj=2);return BQ(B,T,TX())}; g.I.lJ=function(B){o0(C4,[B],!TX());return B.U()}; g.I.sR=function(B){o0(C4,[B],!TX());this.RJ(B);ZO(B);return B.U()}; g.I.wj=function(){}; g.I.Is=function(){}; g.I.RJ=function(){}; g.I.ZM=function(){}; g.I.Bj=function(){}; g.I.MN=function(){this.T||(this.T=this.Bj());return this.T==null?new OT:new gs(this.T)}; g.I.bV=function(){return new Uo};g.G(ZJ,uO);ZJ.prototype.T=function(B){return B.w6()==4};g.G(ew,H6);ew.prototype.T=function(B){B=B.w6();return B==3||B==4};g.G(so,VU);so.prototype.U=function(){return new ew(this.T)}; so.prototype.Y=function(){return[new ZJ(this.T)]};g.G(Eo,jFY);Eo.prototype.T=function(B){B&&(B.e===28&&(B=Object.assign({},B,{avas:3})),B.vs===4||B.vs===5)&&(B=Object.assign({},B,{vs:3}));var z=new tKY;z.T=DO(B,oPq);z.U=DO(B,FKR);return z};Lwb.prototype.U=function(){return g.sH(this.T)};g.G(Sw,DJ);g.I=Sw.prototype;g.I.q9=function(B,z){var T=this,R=Bl(bQ);if(R.T!=null)switch(R.T.getName()){case "nis":var h=Fwl(this,B,z);break;case "gsv":h=oA5(this,B,z);break;case "exc":h=IGH(this,B)}h||(z.opt_overlayAdElement?h=void 0:z.opt_adElement&&(h=iJz(this,B,z.opt_adElement,z.opt_osdId)));h&&h.lD()==1&&(h.L==g.LF&&(h.L=function(W){return T.ZM(W)}),rp5(this,h,z)); return h}; g.I.ZM=function(B){B.U=0;B.RK=0;if(B.W=="h"||B.W=="n"){cy();B.sE&&(cy(),HQ(this)!="h"&&HQ(this));var z=g.sH("ima.common.getVideoMetadata");if(typeof z==="function")try{var T=z(B.OX)}catch(h){B.U|=4}else B.U|=2}else if(B.W=="b")if(z=g.sH("ytads.bulleit.getVideoMetadata"),typeof z==="function")try{T=z(B.OX)}catch(h){B.U|=4}else B.U|=2;else if(B.W=="ml")if(z=g.sH("ima.common.getVideoMetadata"),typeof z==="function")try{T=z(B.OX)}catch(h){B.U|=4}else B.U|=2;else B.U|=1;B.U||(T===void 0?B.U|=8:T===null? B.U|=16:g.Ep(T)?B.U|=32:T.errorCode!=null&&(B.RK=T.errorCode,B.U|=64));T==null&&(T={});z=T;B.J=0;for(var R in w7F)z[R]==null&&(B.J|=w7F[R]);cp5(z,"currentTime");cp5(z,"duration");Ed(T.volume)&&Ed()&&(T.volume*=NaN);return T}; g.I.Bj=function(){cy();HQ(this)!="h"&&HQ(this);var B=GK5(this);return B!=null?new Lwb(B):null}; g.I.Is=function(B){!B.T&&B.U_&&f4(this,B,"overlay_unmeasurable_impression")&&(B.T=!0)}; g.I.RJ=function(B){B.k8&&(B.QZ()?f4(this,B,"overlay_viewable_end_of_session_impression"):f4(this,B,"overlay_unviewable_impression"),B.k8=!1)}; g.I.wj=function(){}; g.I.Kb=function(B,z,T,R){if(ymB()){var h=ch(cy().Xu,"mm"),W={};(h=(W[LJ.m8]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",W[LJ.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",W)[h])&&UiH(this,h);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&u3(1044,Error())}B=DJ.prototype.Kb.call(this,B,z,T,R);this.V&&(z=this.X,B.V==null&&(B.V=new uLr),z.T[B.OX]=B.V,B.V.V=GUF);return B}; g.I.c6=function(B){B&&B.lD()==1&&this.V&&delete this.X.T[B.OX];return DJ.prototype.c6.call(this,B)}; g.I.MN=function(){this.T||(this.T=this.Bj());return this.T==null?new OT:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new so(this.T):new gs(this.T)}; g.I.bV=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Eo:new Uo}; g.I.FX=function(B,z,T,R,h){z=new F$(T,z+R,T+h,z);(B=R0(hl,B))?B.FX(z):this.Y=z}; var dgp=mw(193,Vad,void 0,qdz);g.Zz("Goog_AdSense_Lidar_sendVastEvent",dgp);var AIh=nJ(194,function(B,z){z=z===void 0?{}:z;B=aGz(Bl(Sw),B,z);return MaH(B)}); g.Zz("Goog_AdSense_Lidar_getViewability",AIh);var aFU=mw(195,function(){return o1z()}); g.Zz("Goog_AdSense_Lidar_getUrlSignalsArray",aFU);var UgP=nJ(196,function(){return JSON.stringify(o1z())}); g.Zz("Goog_AdSense_Lidar_getUrlSignalsList",UgP);var iLd=B5("adurl"),qDB=B5("ae"),wPz=B5("dsh");var gAB=L5(["//ep2.adtrafficquality.google/sodar/",""]),Jpl=L5(["//tpc.googlesyndication.com/sodar/",""]);g.G(hB,Error);g.G(Yy,g.K);Yy.prototype.uV=function(){return this.wpc.f()}; Yy.prototype.Q0=function(B){this.wpc.c(B)}; Yy.prototype.xS=function(B){return this.wpc.m(xiY(B))}; Yy.prototype.ow=function(B){return this.wpc.mws(xiY(B))}; g.G(W5,g.K);W5.prototype.snapshot=function(B){return this.fQ.s(Object.assign({},B.sG&&{c:B.sG},B.H2&&{s:B.H2},B.JX!==void 0&&{p:B.JX}))}; W5.prototype.mz=function(B){this.fQ.e(B)}; W5.prototype.ZZ=function(){return this.fQ.l()};var nAd;g.G(wb,g.K);wb.prototype.share=function(){if(this.xd())throw Error("E:AD");this.W++;return this}; wb.prototype.dispose=function(){--this.W||g.K.prototype.dispose.call(this)}; nAd=Symbol.dispose;ucz.prototype.dI=function(B,z){this.T.dI("/client_streamz/bg/frs",B,z)}; HJb.prototype.dI=function(B,z,T,R,h,W){this.T.dI("/client_streamz/bg/wrl",B,z,T,R,h,W)}; fGB.prototype.Zc=function(B,z){this.T.R2("/client_streamz/bg/ec",B,z)}; OJr.prototype.dI=function(B,z,T){this.T.dI("/client_streamz/bg/el",B,z,T)}; NaP.prototype.Zc=function(B,z){this.T.R2("/client_streamz/bg/cec",B,z)}; taz.prototype.Zc=function(B,z){this.T.R2("/client_streamz/bg/po/csc",B,z)}; jtB.prototype.Zc=function(B,z){this.T.R2("/client_streamz/bg/po/ctav",B,z)}; Xyl.prototype.Zc=function(B,z){this.T.R2("/client_streamz/bg/po/cwsc",B,z)};g.G(ZJB,VG);g.G(c5,VG);var F3=[1,2,3];var McR=[0,F3,hhU,ErI,TFF];var VcF=[0,zw,[0,O5s,jz7]];g.G(L8,VG);var oN=[1,2,3];var QRh=[0,oN,Z5R,tlF,Rj,VcF];g.G(C8,VG);var yIF=[0,zw,McR,QRh];var gPW=[0,[1,2,3],Rj,[0,BA,-1,zhI],Rj,[0,BA,-1,eYg,zhI],Rj,[0,BA]];g.G(rb,VG);rb.prototype.eG=function(){var B=J9(this,3,z0,3,!0);Vf(B);return B[void 0]};rb.prototype.U=akX([0,BA,gPW,Rhh,zw,yIF,SHg,BFs]);g.G(std,VG);g.I=IN.prototype;g.I.isEnabled=function(){if(!g.XK.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{pA:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.I.set=function(B,z,T){var R=!1;if(typeof T==="object"){var h=T.EgZ;R=T.secure||!1;var W=T.domain||void 0;var b=T.path||void 0;var l=T.pA}if(/[;=\s]/.test(B))throw Error('Invalid cookie name "'+B+'"');if(/[;\r\n]/.test(z))throw Error('Invalid cookie value "'+z+'"');l===void 0&&(l=-1);T=W?";domain="+W:"";b=b?";path="+b:"";R=R?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.T.cookie=B+"="+z+T+b+l+R+(h!=null?";samesite="+ h:"")}; g.I.get=function(B,z){for(var T=B+"=",R=(this.T.cookie||"").split(";"),h=0,W;h=0;z--)this.remove(B[z])}; var kv=new IN(typeof document=="undefined"?null:document);db.prototype.compress=function(B){var z,T,R,h;return g.D(function(W){switch(W.U){case 1:return z=new CompressionStream("gzip"),T=(new Response(z.readable)).arrayBuffer(),R=z.writable.getWriter(),g.P(W,R.write((new TextEncoder).encode(B)),2);case 2:return g.P(W,R.close(),3);case 3:return h=Uint8Array,g.P(W,T,4);case 4:return W.return(new h(W.T))}})}; db.prototype.isSupported=function(B){return B<1024?!1:typeof CompressionStream!=="undefined"};g.G(AB,VG);aN.prototype.setInterval=function(B){this.intervalMs=B;this.KQ&&this.enabled?(this.stop(),this.start()):this.KQ&&this.stop()}; aN.prototype.start=function(){var B=this;this.enabled=!0;this.KQ||(this.KQ=setTimeout(function(){B.tick()},this.intervalMs),this.U=this.T())}; aN.prototype.stop=function(){this.enabled=!1;this.KQ&&(clearTimeout(this.KQ),this.KQ=void 0)}; aN.prototype.tick=function(){var B=this;if(this.enabled){var z=Math.max(this.T()-this.U,0);z0?T:void 0));T=M1(T,4,O5(h>0?h:void 0));T=M1(T,5,O5(W>0?W:void 0));h=T.iK;W=h[Gs]|0;T=MJ(T,W)?T:new T.constructor(IF(h,W,!0));jK(b,VT,10,T)}b=this.T.clone();T=Date.now().toString();b=M1(b,4,s5(T));B=XL(b,v5,3,B.slice());R&&(b=new U3,R=M1(b,13,O5(R)),b=new MH,R=jK(b,U3,2,R), b=new P5,R=jK(b,MH,1,R),R=WW(R,2,9),jK(B,P5,18,R));z&&TB(B,14,z);return B};g.mr.prototype.U=0;g.mr.prototype.reset=function(){this.T=this.Y=this.W;this.U=0}; g.mr.prototype.getValue=function(){return this.Y};g.G(l3,VG);var JIU=wa(l3);g.G(dlb,VG);var iG;iG=new Am5;g.G(f8,g.K);g.I=f8.prototype;g.I.gF=function(){H5(this);this.U.stop();this.zZ.stop();g.K.prototype.gF.call(this)}; g.I.dispatch=function(B){if(B instanceof v5)this.log(B);else try{var z=new v5,T=B.Y0();var R=Ra(z,8,T);this.log(R)}catch(h){O3(this,4,1)}}; g.I.log=function(B){O3(this,2,1);if(this.lO){B=B.clone();var z=this.Kf++;B=TB(B,21,z);this.componentId&&Ra(B,26,this.componentId);z=B;var T=aF(z,1);var R=R===void 0?!1:R;var h=typeof T;R=T==null?T:h==="bigint"?String(Xn(64,T)):f9(T)?h==="string"?jV(T):R?Zt(T):eV(T):void 0;R==null&&(R=Date.now(),R=Number.isFinite(R)?R.toString():"0",M1(z,1,s5(R)));R=aF(z,15);R!=null&&(typeof R==="bigint"?Le(R)?R=Number(R):(R=Xn(64,R),R=Le(R)?Number(R):String(R)):R=f9(R)?typeof R==="number"?eV(R):jV(R):void 0);R!=null|| TB(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(R=this.experimentIds.clone(),jK(z,AB,16,R));O3(this,1,1);z=this.T.length-1E3+1;z>0&&(this.T.splice(0,z),this.W+=z,O3(this,3,z));this.T.push(B);this.WO||this.U.enabled||this.U.start()}}; g.I.flush=function(B,z){var T=this;if(this.T.length===0)B&&B();else if(this.XE&&this.TZ)this.Y.U=3,aOz(this);else{var R=Date.now();if(this.IK>R&&this.RK0&&(T.RK=Date.now(),T.IK=T.RK+C);C=wF(b$);var A;Ir&&C&&((A=r.iK[C])==null?void 0:A[175237375])!=null&&or(grR,3);a:{var a=a===void 0?!1:a;if(wF(JKq)&&wF(b$)&&void 0===JKq){A=r.iK;C=A[b$];if(!C)break a;if(C=C.Ae)try{C(A,175237375,DBg);break a}catch(V){hz(V)}}a&&(a=r.iK, (A=wF(b$))&&A in a&&(a=a[A])&&delete a[175237375])}a=iG.T?iG.U(r,iG.T,175237375,iG.Y):iG.U(r,175237375,null,iG.Y);if(a=a===null?void 0:a)a=eK(a,1,-1),a!==-1&&(T.V=new g.mr(a<1?1:a,3E5,.1),T.U.setInterval(T.V.getValue()))}}B&&B();T.X=0},c=function(C,r){var F=t9(W,v5,3); var A=Number(vIP(W,14));g.n8(T.V);T.U.setInterval(T.V.getValue());C===401&&b&&(T.cD=b);A&&(T.W+=A);r===void 0&&(r=T.isRetryable(C));r&&(T.T=F.concat(T.T),T.WO||T.U.enabled||T.U.start());O3(T,7,1);z&&z("net-send-failed",C);++T.X},L=function(){T.network&&T.network.send(w,q,c)}; l?l.then(function(C){O3(T,5,h);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=C;w.FQ=2;L()},function(){O3(T,6,h); L()}):L()}}}}; g.I.isRetryable=function(B){return 500<=B&&B<600||B===401||B===0};NH.prototype.send=function(B,z,T){var R=this,h,W,b,l,w,q,c,L,C,r;return g.D(function(F){switch(F.U){case 1:return W=(h=R.NI?new AbortController:void 0)?setTimeout(function(){h.abort()},B.timeoutMillis):void 0,g.AK(F,2,3),b=Object.assign({},{method:B.requestType, headers:Object.assign({},B.requestHeaders)},B.body&&{body:B.body},B.withCredentials&&{credentials:"include"},{signal:B.timeoutMillis&&h?h.signal:null}),g.P(F,fetch(B.url,b),5);case 5:l=F.T;if(l.status!==200){(w=T)==null||w(l.status);F.jI(3);break}if((q=z)==null){F.jI(7);break}return g.P(F,l.text(),8);case 8:q(F.T);case 7:case 3:g.$r(F);clearTimeout(W);g.Pb(F,0);break;case 2:c=g.JK(F);switch((L=c)==null?void 0:L.name){case "AbortError":(C=T)==null||C(408);break;default:(r=T)==null||r(400)}F.jI(3)}})}; NH.prototype.Pb=function(){return 4};g.G(tB,g.K);tB.prototype.fZ=function(){this.V=!0;return this}; tB.prototype.build=function(){this.network||(this.network=new NH);var B=new f8({logSource:this.logSource,MF:this.MF?this.MF:lOY,sessionIndex:this.sessionIndex,n0O:this.yc,Y$:this.W,WO:!1,fZ:this.V,OV:this.OV,network:this.network});g.m(this,B);if(this.U){var z=this.U,T=K8(B.Y);Ra(T,7,z)}B.L=new db;this.componentId&&(B.componentId=this.componentId);this.kX&&(B.kX=this.kX);this.pageId&&(B.pageId=this.pageId);this.T&&((T=this.T)?(B.experimentIds||(B.experimentIds=new AB),z=B.experimentIds,T=T.Y0(),Ra(z, 4,T)):B.experimentIds&&M1(B.experimentIds,4));this.Y&&(B.XE=B.TZ);FyK(B.Y);this.network.Qw&&this.network.Qw(this.logSource);this.network.X4D&&this.network.X4D(B);return B};g.G(jY,g.K);jY.prototype.flush=function(B){B=B||[];if(B.length){for(var z=new std,T=[],R=0;R-1?(z=B[b],T||(z.g6=!1)):(z=new p6Y(z,this.src,W,!!R,h),z.g6=T,B.push(z));return z}; g.I.remove=function(B,z,T,R){B=B.toString();if(!(B in this.listeners))return!1;var h=this.listeners[B];z=R9(h,z,T,R);return z>-1?(B0(h[z]),g.IR(h,z),h.length==0&&(delete this.listeners[B],this.T--),!0):!1}; g.I.removeAll=function(B){B=B&&B.toString();var z=0,T;for(T in this.listeners)if(!B||T==B){for(var R=this.listeners[T],h=0;h-1?B[h]:null}; g.I.hasListener=function(B,z){var T=B!==void 0,R=T?B.toString():"",h=z!==void 0;return g.Op(this.listeners,function(W){for(var b=0;b>>0);g.qg(g.Lh,g.K);g.Lh.prototype[g3l]=!0;g.I=g.Lh.prototype;g.I.addEventListener=function(B,z,T,R){g.W0(this,B,z,T,R)}; g.I.removeEventListener=function(B,z,T,R){KyX(this,B,z,T,R)}; g.I.dispatchEvent=function(B){var z=this.iq;if(z){var T=[];for(var R=1;z;z=z.iq)T.push(z),++R}z=this.wp;R=B.type||B;if(typeof B==="string")B=new g.s3(B,z);else if(B instanceof g.s3)B.target=B.target||z;else{var h=B;B=new g.s3(R,z);g.RP(B,h)}h=!0;var W;if(T)for(W=T.length-1;!B.U&&W>=0;W--){var b=B.currentTarget=T[W];h=rW(b,R,!0,B)&&h}B.U||(b=B.currentTarget=z,h=rW(b,R,!0,B)&&h,B.U||(h=rW(b,R,!1,B)&&h));if(T)for(W=0;!B.U&&W0){this.U--;var B=this.T;this.T=B.next;B.next=null}else B=this.Y();return B};var I9;dW.prototype.add=function(B,z){var T=Oqd.get();T.set(B,z);this.U?this.U.next=T:this.T=T;this.U=T}; dW.prototype.remove=function(){var B=null;this.T&&(B=this.T,this.T=this.T.next,this.T||(this.U=null),B.next=null);return B}; var Oqd=new o9(function(){return new AR},function(B){return B.reset()}); AR.prototype.set=function(B,z){this.T=B;this.scope=z;this.next=null}; AR.prototype.reset=function(){this.next=this.scope=this.T=null};var a9,Un=!1,HqK=new dW;NlK.prototype.reset=function(){this.context=this.U=this.Y=this.T=null;this.W=!1}; var tSr=new o9(function(){return new NlK},function(B){B.reset()}); g.QI.prototype.then=function(B,z,T){return zHK(this,Fw(typeof B==="function"?B:null),Fw(typeof z==="function"?z:null),T)}; g.QI.prototype.$goog_Thenable=!0;g.I=g.QI.prototype;g.I.finally=function(B){var z=this;B=Fw(B);return new Promise(function(T,R){eCl(z,function(h){B();T(h)},function(h){B(); R(h)})})}; g.I.d2=function(B,z){return zHK(this,null,Fw(B),z)}; g.I.catch=g.QI.prototype.d2;g.I.cancel=function(B){if(this.T==0){var z=new kt(B);g.MW(function(){s35(this,z)},this)}}; g.I.OpG=function(B){this.T=0;VI(this,2,B)}; g.I.YND=function(B){this.T=0;VI(this,3,B)}; g.I.Kc=function(){for(var B;B=E35(this);)STX(this,B,this.T,this.L);this.X=!1}; var WzP=hz;g.qg(kt,iW);kt.prototype.name="cancel";g.qg(g.Kh,g.Lh);g.I=g.Kh.prototype;g.I.enabled=!1;g.I.Zx=null;g.I.setInterval=function(B){this.kh=B;this.Zx&&this.enabled?(this.stop(),this.start()):this.Zx&&this.stop()}; g.I.fRd=function(){if(this.enabled){var B=g.YP()-this.Ay;B>0&&B0&&(this.getStatus(),this.X=setTimeout(this.Xz.bind(this), this.TZ)),this.getStatus(),this.N=!0,this.T.send(B),this.N=!1}catch(b){this.getStatus(),dFz(this,b)}}; g.I.Xz=function(){typeof Xw!="undefined"&&this.T&&(this.W="Timed out after "+this.TZ+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.I.abort=function(B){this.T&&this.Y&&(this.getStatus(),this.Y=!1,this.V=!0,this.T.abort(),this.V=!1,this.U=B||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),jN(this))}; g.I.gF=function(){this.T&&(this.Y&&(this.Y=!1,this.V=!0,this.T.abort(),this.V=!1),jN(this,!0));g.tR.gD.gF.call(this)}; g.I.Be=function(){this.xd()||(this.WD||this.N||this.V?Alb(this):this.oiO())}; g.I.oiO=function(){Alb(this)}; g.I.isActive=function(){return!!this.T}; g.I.isComplete=function(){return g.ZE(this)==4}; g.I.getStatus=function(){try{return g.ZE(this)>2?this.T.status:-1}catch(B){return-1}}; g.I.getResponseHeader=function(B){if(this.T&&this.isComplete())return B=this.T.getResponseHeader(B),B===null?void 0:B}; g.I.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};B1.prototype.send=function(B,z,T){z=z===void 0?function(){}:z; T=T===void 0?function(){}:T; IJl(B.url,function(R){R=R.target;eN(R)?z(g.sn(R)):T(R.getStatus())},B.requestType,B.body,B.requestHeaders,B.timeoutMillis,B.withCredentials)}; B1.prototype.Pb=function(){return 1};T3.prototype.done=function(){this.logger.le(this.event,z3()-this.startTime)}; g.G(Rs,wb);g.G(W1,Rs);g.I=W1.prototype;g.I.ZE=function(){}; g.I.Ma=function(){}; g.I.le=function(){}; g.I.J6=function(){}; g.I.GU=function(){}; g.I.JO=function(B,z,T,R){return R}; g.I.FO=function(){}; g.I.VY=function(){}; g.I.lQ=function(){}; g.I.W5=function(){}; g.G(b8,Rs);g.I=b8.prototype;g.I.update=function(B){this.logger.dispose();this.logger=B}; g.I.Ma=function(B){this.logger.Ma(B)}; g.I.le=function(B,z){this.logger.le(B,z)}; g.I.J6=function(B){this.logger.J6(B)}; g.I.GU=function(){this.logger.GU()}; g.I.JO=function(B,z,T,R){return this.logger.JO(B,z,T,R)}; g.I.FO=function(B){this.logger.FO(B)}; g.I.VY=function(B){this.logger.VY(B)}; g.I.lQ=function(B){this.logger.lQ(B)}; g.I.W5=function(B){this.logger.W5(B)}; g.I.ZE=function(B){this.logger.ZE(B)}; g.G(Ya,g.K);g.G(l8,Rs);g.I=l8.prototype;g.I.ZE=function(B){this.metrics.coD.dI(B,this.aQ)}; g.I.Ma=function(B){this.metrics.eventCount.Zc(B,this.aQ)}; g.I.le=function(B,z){this.metrics.Mv.dI(z,B,this.aQ)}; g.I.J6=function(B){this.metrics.errorCount.Zc(B,this.aQ)}; g.I.JO=function(B,z,T,R){function h(l){if(!W.xd()){var w=z3()-b;W.metrics.ISd.dI(w,B,T,l,z,W.aQ)}} var W=this,b=z3();R.then(function(){return void h(0)},function(l){return void h(l instanceof H0?l.code:-1)}); return R}; g.I.FO=function(B){this.metrics.rku.Zc(B,this.aQ)}; g.I.VY=function(B){this.metrics.xR.Zc(B,this.aQ)}; g.I.lQ=function(B){this.metrics.LDD.Zc(B,this.aQ)}; g.G(wU,l8);wU.prototype.W5=function(B){var z=this;B=B.slice();g.xP(B);g.DF(B,this.U)||(this.T.dispose(),this.Y&&this.service.dispose(),this.service=this.options.UK("49",this.options.PO.concat(B)),this.T=new Ya(function(){return void z.service.Pa()},this.options.DD),this.metrics=MwK(this.service),this.U=B)}; wU.prototype.GU=function(){Q0B(this.T)};g.G(q8,VG);g.G(i8,VG);g.G(c1,VG);var n5z=wa(c1),g5K=function(B){return Ht(function(z){return z instanceof B&&!MJ(z)})}(c1); c1.messageId="bfkj";g.G(lj,VG);g.G(LP,VG);var Jlz=wa(LP);g.G(rU,g.K);rU.prototype.snapshot=function(B){if(this.xd())throw Error("Already disposed");this.logger.Ma("n");var z=this.logger.share();return this.Y.then(function(T){var R=T.Ri;return new Promise(function(h){var W=new T3(z,"n");R(function(b){W.done();z.ZE(b.length);z.GU();z.dispose();h(b)},[B.sG, B.H2,B.xV,B.JX])})})}; rU.prototype.KE=function(B){var z=this;if(this.xd())throw Error("Already disposed");this.logger.Ma("n");var T=hG(this.logger,function(){return z.W([B.sG,B.H2,B.xV,B.JX])},"n"); this.logger.ZE(T.length);this.logger.GU();return T}; rU.prototype.mz=function(B){this.Y.then(function(z){var T;(T=z.wuO)==null||T(B)})}; rU.prototype.ZZ=function(){return this.logger.share()};g.G(Is,VG);g.G(G3,VG);dU.prototype.ST=function(B){return O4z(this,B,new W1,0)};g.G(AG,g.K);AG.prototype.snapshot=function(B){var z=this;return g.D(function(T){switch(T.U){case 1:if(z.xd())throw Error("Already disposed");if(z.U||z.L){T.jI(2);break}return g.P(T,z.V.promise,2);case 2:if(!z.U){T.jI(4);break}return g.P(T,z.U.snapshot(B),5);case 5:return T.return(T.T);case 4:throw z.L;}})}; AG.prototype.mz=function(B){var z,T;(z=this.U)==null||(T=z.mz)==null||T.call(z,B)}; AG.prototype.handleError=function(B){if(!this.xd()){this.L=B;this.V.resolve();var z,T;(T=(z=this.options).ImG)==null||T.call(z,B)}}; AG.prototype.ZZ=function(){return this.logger.share()}; var j0d={yju:432E5,cC:3E5,HC:10,CP:1E4,Nv:3E4,QKO:3E4,nOm:6E4,mA:1E3,HE:6E4,Z1:6E5,J3:.25,t3:2,maxAttempts:10};var PWF,TbB=(PWF=Math.imul)!=null?PWF:function(B,z){return B*z|0},V4=[196, 200,224,18];Q4.prototype.Y0=function(){return String(this.T)+","+this.U.join()}; Q4.prototype.sN=function(B,z){var T=void 0;if(this.U[this.T]!==B){var R=this.U.indexOf(B);R!==-1?(this.U.splice(R,1),R0;)z[T++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(B%62),B=Math.floor(B/62);return z.join("")}};var rBX;g.G(gU,g.K);gU.prototype.ow=function(B,z){var T=this.xS(B);z==null||z(T);return hG(this.logger,function(){return g.bT(T,2)},this.U)}; rBX=Symbol.dispose;g.G($a,gU);$a.prototype.xS=function(B,z){var T=this;this.logger.Ma(this.T);++this.V>=this.X&&this.Y.resolve();var R=B();B=hG(this.logger,function(){return T.W(R)},"C"); if(B===void 0)throw new hB(17,"YNJ:Undefined");if(!(B instanceof Uint8Array))throw new hB(18,"ODM:Invalid");z==null||z(B);return B}; g.G(P1,gU);P1.prototype.xS=function(){return this.W}; g.G(xa,gU);xa.prototype.xS=function(){var B=this;return hG(this.logger,function(){return lT(B.W)},"d")}; xa.prototype.ow=function(){return this.W}; g.G(v1,gU);v1.prototype.xS=function(){if(this.W)return this.W;this.W=oyK(this,function(B){return"_"+Cjr(B)}); return oyK(this,function(B){return B})}; g.G(ka,gU);ka.prototype.xS=function(){var B=Math.floor(Date.now()/1E3),z=[Math.random()*255,Math.random()*255],T=z.concat([this.W&255,this.clientState],[B>>24&255,B>>16&255,B>>8&255,B&255]);B=new Uint8Array(2+T.length);B[0]=34;B[1]=T.length;B.set(T,2);T=B.subarray(2);for(var R=z=z.length;R150))try{this.cache=new w5B(B,this.logger)}catch(z){this.reportError(new hB(22,"GBJ:init",z))}}; g.I.reportError=function(B){this.logger.J6(B.code);this.onError(B);return B}; var GTB=function(B){return Ht(function(z){if(!QzF(z))return!1;for(var T=g.d(Object.entries(B)),R=T.next();!R.done;R=T.next()){var h=g.d(R.value);R=h.next().value;h=h.next().value;if(!(R in z)){if(h.dBE===!0)continue;return!1}if(!h(z[R]))return!1}return!0})}({fQ:function(B){return Ht(function(z){return z instanceof B})}(AG)},"");var S7z=(new Date).getTime();g.G(H1,VG);var xg7=wa(H1);gyz.prototype.getMetadata=function(){return this.metadata};fP.prototype.getMetadata=function(){return this.metadata}; fP.prototype.getStatus=function(){return this.status};O7.prototype.L=function(B,z){z=z===void 0?{}:z;return new gyz(B,this,z)}; O7.prototype.getName=function(){return this.name};var vPq=new O7("/google.internal.waa.v1.Waa/Create",Is,H1,function(B){return B.Y0()},xg7);g.G(N8,VG);var fJl=new O7("/google.internal.waa.v1.Waa/GenerateIT",G3,N8,function(B){return B.Y0()},wa(N8));var RtK=new Set(["SAPISIDHASH","APISIDHASH"]);g.G(tG,VG);tG.prototype.getValue=function(){var B=aF(this,2);if(Array.isArray(B)||B instanceof VG)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return $W(this,2)};g.G(jQ,VG);jQ.prototype.getMessage=function(){return EM(this,2)}; var vyY=wa(jQ);Xh.prototype.n0=function(B,z){B=="data"?this.Y.push(z):B=="metadata"?this.V.push(z):B=="status"?this.X.push(z):B=="end"?this.W.push(z):B=="error"&&this.U.push(z);return this}; Xh.prototype.removeListener=function(B,z){B=="data"?SQ(this.Y,z):B=="metadata"?SQ(this.V,z):B=="status"?SQ(this.X,z):B=="end"?SQ(this.W,z):B=="error"&&SQ(this.U,z);return this}; Xh.prototype.cancel=function(){this.T.abort()}; Xh.prototype.cancel=Xh.prototype.cancel;Xh.prototype.removeListener=Xh.prototype.removeListener;Xh.prototype.on=Xh.prototype.n0;g.G(p5H,Error);g.qg(g.Bu,o5H);g.Bu.prototype.T=function(){var B=new zd(this.W,this.Y);this.U&&B.setCredentialsMode(this.U);return B}; g.Bu.prototype.setCredentialsMode=function(B){this.U=B}; g.qg(zd,g.Lh);g.I=zd.prototype;g.I.open=function(B,z){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.TZ=B;this.N=z;this.readyState=1;Td(this)}; g.I.send=function(B){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.T=!0;var z={headers:this.J,method:this.TZ,credentials:this.V,cache:void 0};B&&(z.body=B);(this.UE||g.XK).fetch(new Request(this.N,z)).then(this.Qm.bind(this),this.Jl.bind(this))}; g.I.abort=function(){this.response=this.responseText="";this.J=new Headers;this.status=0;this.Y&&this.Y.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,RC(this));this.readyState=0}; g.I.Qm=function(B){if(this.T&&(this.W=B,this.U||(this.status=this.W.status,this.statusText=this.W.statusText,this.U=B.headers,this.readyState=2,Td(this)),this.T&&(this.readyState=3,Td(this),this.T)))if(this.responseType==="arraybuffer")B.arrayBuffer().then(this.Ym.bind(this),this.Jl.bind(this));else if(typeof g.XK.ReadableStream!=="undefined"&&"body"in B){this.Y=B.body.getReader();if(this.X){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.L=new TextDecoder;DH5(this)}else B.text().then(this.gb.bind(this),this.Jl.bind(this))}; g.I.wg=function(B){if(this.T){if(this.X&&B.value)this.response.push(B.value);else if(!this.X){var z=B.value?B.value:new Uint8Array(0);if(z=this.L.decode(z,{stream:!B.done}))this.response=this.responseText+=z}B.done?RC(this):Td(this);this.readyState==3&&DH5(this)}}; g.I.gb=function(B){this.T&&(this.response=this.responseText=B,RC(this))}; g.I.Ym=function(B){this.T&&(this.response=B,RC(this))}; g.I.Jl=function(){this.T&&RC(this)}; g.I.setRequestHeader=function(B,z){this.J.append(B,z)}; g.I.getResponseHeader=function(B){return this.U?this.U.get(B.toLowerCase())||"":""}; g.I.getAllResponseHeaders=function(){if(!this.U)return"";for(var B=[],z=this.U.entries(),T=z.next();!T.done;)T=T.value,B.push(T[0]+": "+T[1]),T=z.next();return B.join("\r\n")}; g.I.setCredentialsMode=function(B){this.V=B}; Object.defineProperty(zd.prototype,"withCredentials",{get:function(){return this.V==="include"}, set:function(B){this.setCredentialsMode(B?"include":"same-origin")}});g.hX.prototype.toString=function(){var B=[],z=this.V;z&&B.push(ib(z,DgR,!0),":");var T=this.T;if(T||z=="file")B.push("//"),(z=this.J)&&B.push(ib(z,DgR,!0),"@"),B.push(g.Cr(T).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),T=this.Y,T!=null&&B.push(":",String(T));if(T=this.U)this.T&&T.charAt(0)!="/"&&B.push("/"),B.push(ib(T,T.charAt(0)=="/"?kUI:KKs,!0));(T=this.W.toString())&&B.push("?",T);(T=this.X)&&B.push("#",ib(T,mg5));return B.join("")}; g.hX.prototype.resolve=function(B){var z=this.clone(),T=!!B.V;T?g.Wu(z,B.V):T=!!B.J;T?z.J=B.J:T=!!B.T;T?g.bb(z,B.T):T=B.Y!=null;var R=B.U;if(T)g.Yc(z,B.Y);else if(T=!!B.U){if(R.charAt(0)!="/")if(this.T&&!this.U)R="/"+R;else{var h=z.U.lastIndexOf("/");h!=-1&&(R=z.U.slice(0,h+1)+R)}h=R;if(h==".."||h==".")R="";else if(g.IP(h,"./")||g.IP(h,"/.")){R=oP(h,"/");h=h.split("/");for(var W=[],b=0;b1||W.length==1&&W[0]!="")&&W.pop(), R&&b==h.length&&W.push("")):(W.push(l),R=!0)}R=W.join("/")}else R=h}T?z.U=R:T=B.W.toString()!=="";T?lb(z,B.W.clone()):T=!!B.X;T&&(z.X=B.X);return z}; g.hX.prototype.clone=function(){return new g.hX(this)}; var DgR=/[#\/\?@]/g,KKs=/[#\?:]/g,kUI=/[#\?]/g,KrP=/[#\?@]/g,mg5=/#/g;g.I=qo.prototype;g.I.add=function(B,z){Ci(this);this.Y=null;B=ry(this,B);var T=this.T.get(B);T||this.T.set(B,T=[]);T.push(z);this.U=this.U+1;return this}; g.I.remove=function(B){Ci(this);B=ry(this,B);return this.T.has(B)?(this.Y=null,this.U=this.U-this.T.get(B).length,this.T.delete(B)):!1}; g.I.clear=function(){this.T=this.Y=null;this.U=0}; g.I.isEmpty=function(){Ci(this);return this.U==0}; g.I.forEach=function(B,z){Ci(this);this.T.forEach(function(T,R){T.forEach(function(h){B.call(z,h,R,this)},this)},this)}; g.I.iZ=function(){Ci(this);for(var B=Array.from(this.T.values()),z=Array.from(this.T.keys()),T=[],R=0;R0?String(B[0]):z}; g.I.toString=function(){if(this.Y)return this.Y;if(!this.T)return"";for(var B=[],z=Array.from(this.T.keys()),T=0;T>>3;W.Y!=1&&W.Y!=2&&W.Y!=15&&Gd(W,b,l,"unexpected tag");W.T=1;W.U=0;W.W=0} function T(w){W.W++;W.W==5&&w&240&&Gd(W,b,l,"message length too long");W.U|=(w&127)<<(W.W-1)*7;w&128||(W.T=2,W.J=0,typeof Uint8Array!=="undefined"?W.V=new Uint8Array(W.U):W.V=Array(W.U),W.U==0&&h())} function R(w){W.V[W.J++]=w;W.J==W.U&&h()} function h(){if(W.Y<15){var w={};w[W.Y]=W.V;W.L.push(w)}W.T=0} for(var W=this,b=B instanceof Array?B:new Uint8Array(B),l=0;l0?B:null};dy.prototype.isInputValid=function(){return this.T===null}; dy.prototype.B4=function(){return this.T}; dy.prototype.pS=function(){return!1}; dy.prototype.parse=function(B){this.T!==null&&tYK(this,B,"stream already broken");var z=null;try{var T=this.Y;T.Y||NbP(T,B,"stream already broken");T.T+=B;var R=Math.floor(T.T.length/4);if(R==0)var h=null;else{try{var W=Jvb(T.T.slice(0,R*4))}catch(b){NbP(T,T.T,b.message)}T.U+=R*4;T.T=T.T.slice(R*4);h=W}z=h===null?null:this.W.parse(h)}catch(b){tYK(this,B,b.message)}this.U+=B.length;return z};var u5s={INIT:0,P$:1,Qh:2,w4:3,xv:4,zC:5,STRING:6,YN:7,Bo:8,yx:9,Iu:10,L7:11,GL:12,tE:13,Hm:14,Zk:15,Vx:16,Dt:17,n7:18,Ir:19,gA:20};g.I=aC.prototype;g.I.isInputValid=function(){return this.V!=3}; g.I.B4=function(){return this.N}; g.I.done=function(){return this.V===2}; g.I.pS=function(){return!1}; g.I.parse=function(B){function z(){for(;C0;)if(F=B[C++], W.J===4?W.J=0:W.J++,!F)break a;if(F==='"'&&!W.L){W.T=R();break}if(F==="\\"&&!W.L&&(W.L=!0,F=B[C++],!F))break;if(W.L)if(W.L=!1,F==="u"&&(W.J=1),F=B[C++])continue;else break;l.lastIndex=C;F=l.exec(B);if(!F){C=B.length+1;break}C=F.index+1;F=B[F.index];if(!F)break}W.Y+=C-A;continue;case w.yx:if(!F)continue;F==="r"?W.T=w.Iu:Uw(W,B,C);continue;case w.Iu:if(!F)continue;F==="u"?W.T=w.L7:Uw(W,B,C);continue;case w.L7:if(!F)continue;F==="e"?W.T=R():Uw(W,B,C);continue;case w.GL:if(!F)continue;F==="a"?W.T=w.tE: Uw(W,B,C);continue;case w.tE:if(!F)continue;F==="l"?W.T=w.Hm:Uw(W,B,C);continue;case w.Hm:if(!F)continue;F==="s"?W.T=w.Zk:Uw(W,B,C);continue;case w.Zk:if(!F)continue;F==="e"?W.T=R():Uw(W,B,C);continue;case w.Vx:if(!F)continue;F==="u"?W.T=w.Dt:Uw(W,B,C);continue;case w.Dt:if(!F)continue;F==="l"?W.T=w.n7:Uw(W,B,C);continue;case w.n7:if(!F)continue;F==="l"?W.T=R():Uw(W,B,C);continue;case w.Ir:F==="."?W.T=w.gA:Uw(W,B,C);continue;case w.gA:if("0123456789.eE+-".indexOf(F)!==-1)continue;else C--,W.Y--,W.T= R();continue;default:Uw(W,B,C)}}} function R(){var F=b.pop();return F!=null?F:w.P$} function h(F){W.U>1||(F||(F=L===-1?W.W+B.substring(c,C):B.substring(L,C)),W.TZ?W.X.push(F):W.X.push(JSON.parse(F)),L=C)} for(var W=this,b=W.UE,l=W.WD,w=u5s,q=B.length,c=0,L=-1,C=0;C0?(r=W.X,W.X=[],r):null}return null};Mo.prototype.isInputValid=function(){return this.V===null}; Mo.prototype.B4=function(){return this.V}; Mo.prototype.pS=function(){return!1}; Mo.prototype.parse=function(B){function z(w){W.U=6;W.V="The stream is broken @"+W.T+"/"+b+". Error: "+w+". With input:\n";throw Error(W.V);} function T(){W.Y=new aC({uqf:!0,O4:!0})} function R(w){if(w)for(var q=0;q1)&&z("extra status: "+w);W.X=!0;var q={};q[2]=w[0];W.W.push(q)}} for(var W=this,b=0;b0?(B=W.W,W.W=[],B):null};VZ.prototype.ri=function(){return this.T}; VZ.prototype.getStatus=function(){return this.V}; VZ.prototype.TZ=function(B){B=B.target;try{if(B==this.T)a:{var z=g.ZE(this.T),T=this.T.U,R=this.T.getStatus(),h=g.sn(this.T);B=[];if(g.En(this.T)instanceof Array){var W=g.En(this.T);W.length>0&&W[0]instanceof Uint8Array&&(this.N=!0,B=W)}if(!(z<3||z==3&&!h&&B.length==0))if(R=R==200||R==206,z==4&&(T==8?QZ(this,7):T==7?QZ(this,8):R||QZ(this,3)),this.U||(this.U=jNz(this.T),this.U==null&&QZ(this,5)),this.V>2)yZ(this);else{if(B.length>this.Y){var b=B.length;T=[];try{if(this.U.pS())for(var l=0;lthis.Y){l=h.slice(this.Y);this.Y=h.length;try{var q=this.U.parse(l);q!=null&&this.W&&this.W(q)}catch(c){QZ(this,5);yZ(this);break a}}z==4?(h.length!= 0||this.N?QZ(this,2):QZ(this,4),yZ(this)):QZ(this,1)}}}catch(c){QZ(this,6),yZ(this)}};g.I=X5K.prototype;g.I.n0=function(B,z){var T=this.U[B];T||(T=[],this.U[B]=T);T.push(z);return this}; g.I.addListener=function(B,z){this.n0(B,z);return this}; g.I.removeListener=function(B,z){var T=this.U[B];T&&g.GU(T,z);(B=this.T[B])&&g.GU(B,z);return this}; g.I.once=function(B,z){var T=this.T[B];T||(T=[],this.T[B]=T);T.push(z);return this}; g.I.DSG=function(B){var z=this.U.data;z&&Z8z(B,z);(z=this.T.data)&&Z8z(B,z);this.T.data=[]}; g.I.y$u=function(){switch(this.Y.getStatus()){case 1:$c(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$c(this,"error");break;case 8:$c(this,"close");break;case 2:$c(this,"end")}};e6B.prototype.serverStreaming=function(B,z,T,R){var h=this,W=B.substring(0,B.length-R.name.length);return htK(function(b){var l=b.q3,w=b.getMetadata(),q=BWz(h,!1);w=ztd(h,w,q,W+l.getName());var c=TWr(q,l.U,!0);b=l.T(b.nj);q.send(w,"POST",b);return c},this.XR).call(this,R.L(z,T))};WWX.prototype.create=function(B,z){return H45(this.T,this.U+"/$rpc/google.internal.waa.v1.Waa/Create",B,z||{},vPq)};var bhz="://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(" "),YnY=/\bocr\b/;var w0P=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(B){throw B;}},{QTE:!0, bhJ:!0,BVI:rKF,jTJ:orF,RKE:!1,eud:!1,WKE:!0,gsJ:!1});var vu=null,kc=!1,ARY=1,ni=Symbol("SIGNAL"),cA={version:0,O0i:0,KL:!1,l0:void 0,yz:void 0,AU:void 0,eB:0,ZA:void 0,X5:void 0,rB:!1,G2:!1,kind:"unknown",ib:function(){return!1}, Td:function(){}, tL:function(){}, daf:function(){}};var LT=Symbol("UNSET"),CT=Symbol("COMPUTING"),rM=Symbol("ERRORED");Object.assign({},cA,{value:LT,KL:!0,error:null,zA:xc,kind:"computed",ib:function(B){return B.value===LT||B.value===CT}, Td:function(B){if(B.value===CT)throw Error("");var z=B.value;B.value=CT;var T=cRP(B),R=!1;try{var h=B.pP();Dv(null);R=z!==LT&&z!==rM&&h!==rM&&B.zA(z,h)}catch(W){h=rM,B.error=W}finally{LWr(B,T)}R?B.value=z:(B.value=h,B.version++)}});var FWb=Object.assign({},cA,{zA:xc,value:void 0,kind:"signal"});Object.assign({},cA,{value:LT,KL:!0,error:null,zA:xc,kind:"linkedSignal",ib:function(B){return B.value===LT||B.value===CT}, Td:function(B){if(B.value===CT)throw Error("");var z=B.value;B.value=CT;var T=cRP(B);try{var R=B.source();var h=B.pP(R,z===LT||z===rM?void 0:{source:B.IRJ,value:z});B.IRJ=R}catch(W){h=rM,B.error=W}finally{LWr(B,T)}z!==LT&&h!==rM&&B.zA(z,h)?B.value=z:(B.value=h,B.version++)}});Object.assign({},cA,{G2:!0,rB:!1,tL:function(B){B.schedule!==null&&B.schedule(B.o$I)}, eif:!1,E9Z:function(){}});g.G(Hu,g.Lh);Hu.prototype.dispose=function(){window.removeEventListener("offline",this.Y);window.removeEventListener("online",this.Y);this.lZ.Xg(this.V);delete Hu.instance}; Hu.prototype.zO=function(){return this.T}; Hu.prototype.nQ=function(){var B=this;this.V=this.lZ.u0(function(){var z;return g.D(function(T){if(T.U==1)return B.T?((z=window.navigator)==null?0:z.onLine)?T.jI(3):g.P(T,ub(B),3):g.P(T,ub(B),3);B.nQ();g.dX(T)})},3E4)};Ow.prototype.set=function(B,z){z=z===void 0?!0:z;0<=B&&B<52&&Number.isInteger(B)&&this.data[B]!==z&&(this.data[B]=z,this.T=-1)}; Ow.prototype.get=function(B){return!!this.data[B]};var tX;g.qg(g.Ew,g.K);g.I=g.Ew.prototype;g.I.start=function(){this.stop();this.W=!1;var B=VNb(this),z=Q9P(this);B&&!z&&this.U.mozRequestAnimationFrame?(this.T=g.W0(this.U,"MozBeforePaint",this.Y),this.U.mozRequestAnimationFrame(null),this.W=!0):this.T=B&&z?B.call(this.U,this.Y):this.U.setTimeout(HsK(this.Y),20)}; g.I.stop=function(){if(this.isActive()){var B=VNb(this),z=Q9P(this);B&&!z&&this.U.mozRequestAnimationFrame?wW(this.T):B&&z?z.call(this.U,this.T):this.U.clearTimeout(this.T)}this.T=null}; g.I.isActive=function(){return this.T!=null}; g.I.VK=function(){this.W&&this.T&&wW(this.T);this.T=null;this.X.call(this.V,g.YP())}; g.I.gF=function(){this.stop();g.Ew.gD.gF.call(this)};g.qg(g.Si,g.K);g.I=g.Si.prototype;g.I.vR=0;g.I.gF=function(){g.Si.gD.gF.call(this);this.stop();delete this.T;delete this.U}; g.I.start=function(B){this.stop();this.vR=g.mW(this.Y,B!==void 0?B:this.kh)}; g.I.stop=function(){this.isActive()&&g.XK.clearTimeout(this.vR);this.vR=0}; g.I.isActive=function(){return this.vR!=0}; g.I.MD=function(){this.vR=0;this.T&&this.T.call(this.U)};g.G(g.Rm,g.K);g.I=g.Rm.prototype;g.I.XY=function(B){this.Y=arguments;this.Zx||this.U?this.T=!0:hn(this)}; g.I.stop=function(){this.Zx&&(g.XK.clearTimeout(this.Zx),this.Zx=null,this.T=!1,this.Y=null)}; g.I.pause=function(){this.U++}; g.I.resume=function(){this.U--;this.U||!this.T||this.Zx||(this.T=!1,hn(this))}; g.I.gF=function(){g.K.prototype.gF.call(this);this.stop()};g.Wi.prototype[Symbol.iterator]=function(){return this}; g.Wi.prototype.next=function(){var B=this.T.next();return{value:B.done?void 0:this.U.call(void 0,B.value),done:B.done}};g.qg(g.C2,g.Lh);g.I=g.C2.prototype;g.I.isPlaying=function(){return this.T==1}; g.I.isPaused=function(){return this.T==-1}; g.I.dQ=function(){this.NV("begin")}; g.I.lr=function(){this.NV("end")}; g.I.onFinish=function(){this.NV("finish")}; g.I.onStop=function(){this.NV("stop")}; g.I.NV=function(B){this.dispatchEvent(B)};var Hs5=CF(function(){var B=g.ES("DIV"),z=g.X8?"-webkit":VC?"-moz":null,T="transition:opacity 1s linear;";z&&(T+=z+"-transition:opacity 1s linear;");z=gPd({style:T});if(B.nodeType===1&&/^(script|style)$/i.test(B.tagName))throw Error("");B.innerHTML=BY(z);return g.QC(B.firstChild,"transition")!=""});g.qg(rw,g.C2);g.I=rw.prototype;g.I.play=function(){if(this.isPlaying())return!1;this.dQ();this.NV("play");this.startTime=g.YP();this.T=1;if(Hs5())return g.Ml(this.U,this.X),this.Y=g.mW(this.O2f,void 0,this),!0;this.oN(!1);return!1}; g.I.O2f=function(){g.Dk(this.U);JRz(this.U,this.L);g.Ml(this.U,this.W);this.Y=g.mW((0,g.W7)(this.oN,this,!1),this.V*1E3)}; g.I.stop=function(){this.isPlaying()&&this.oN(!0)}; g.I.oN=function(B){g.Ml(this.U,"transition","");g.XK.clearTimeout(this.Y);g.Ml(this.U,this.W);this.endTime=g.YP();this.T=0;if(B)this.onStop();else this.onFinish();this.lr()}; g.I.gF=function(){this.stop();rw.gD.gF.call(this)}; g.I.pause=function(){};var $Wz={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};om("Element","attributes")||om("Node","attributes");om("Element","innerHTML")||om("HTMLElement","innerHTML");om("Node","nodeName");om("Node","nodeType");om("Node","parentNode");om("Node","childNodes");om("HTMLElement","style")||om("Element","style");om("HTMLStyleElement","sheet");var KWl=xWB("getPropertyValue"),mWz=xWB("setProperty");om("Element","namespaceURI")||om("Node","namespaceURI");var kSz={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var fEB,WBq,HhH,uwY,OhX;fEB=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]");WBq=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.fFg=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.Im=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]");HhH=/^http:\/\/.*/;g.OsI=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");uwY=/\s+/;OhX=/[\d\u06f0-\u06f9]/;dw.prototype.Fw=function(){return new An(this.U())}; dw.prototype[Symbol.iterator]=function(){return new am(this.U())}; dw.prototype.T=function(){return new am(this.U())}; g.G(An,g.Jw);An.prototype.next=function(){return this.U.next()}; An.prototype[Symbol.iterator]=function(){return new am(this.U)}; An.prototype.T=function(){return new am(this.U)}; g.G(am,dw);am.prototype.next=function(){return this.Y.next()};Mv.prototype.clone=function(){return new Mv(this.T,this.L,this.Y,this.V,this.W,this.X,this.U,this.J)}; Mv.prototype.equals=function(B){return this.T==B.T&&this.L==B.L&&this.Y==B.Y&&this.V==B.V&&this.W==B.W&&this.X==B.X&&this.U==B.U&&this.J==B.J};QN.prototype.clone=function(){return new QN(this.start,this.end)}; QN.prototype.getLength=function(){return this.end-this.start};(function(){if(cVX){var B=/Windows NT ([0-9.]+)/;return(B=B.exec(g.Va()))?B[1]:"0"}return Sp?(B=/1[0|1][_.][0-9_.]+/,(B=B.exec(g.Va()))?B[0].replace(/_/g,"."):"10"):g.zh?(B=/Android\s+([^\);]+)(\)|;)/,(B=B.exec(g.Va()))?B[1]:""):GPh||dB5||AKF?(B=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(B=B.exec(g.Va()))?B[1].replace(/_/g,"."):""):""})();var tNz=function(){if(g.jg)return yN(/Firefox\/([0-9.]+)/);if(g.Ff||g.Zs||g.VW)return AIY;if(g.PG){if(US()||Mu()){var B=yN(/CriOS\/([0-9.]+)/);if(B)return B}return yN(/Chrome\/([0-9.]+)/)}if(g.Ax&&!US())return yN(/Version\/([0-9.]+)/);if(ED||SH){if(B=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Va()))return B[1]+"."+B[2]}else if(g.QW)return(B=yN(/Android\s+([0-9.]+)/))?B:yN(/Version\/([0-9.]+)/);return""}();g.qg(g.Jn,g.K);g.I=g.Jn.prototype;g.I.subscribe=function(B,z,T){var R=this.U[B];R||(R=this.U[B]=[]);var h=this.X;this.T[h]=B;this.T[h+1]=z;this.T[h+2]=T;this.X=h+3;R.push(h);return h}; g.I.unsubscribe=function(B,z,T){if(B=this.U[B]){var R=this.T;if(B=B.find(function(h){return R[h+1]==z&&R[h+2]==T}))return this.EN(B)}return!1}; g.I.EN=function(B){var z=this.T[B];if(z){var T=this.U[z];this.W!=0?(this.Y.push(B),this.T[B+1]=function(){}):(T&&g.GU(T,B),delete this.T[B],delete this.T[B+1],delete this.T[B+2])}return!!z}; g.I.publish=function(B,z){var T=this.U[B];if(T){var R=Array(arguments.length-1),h=arguments.length,W;for(W=1;W0&&this.W==0)for(;T=this.Y.pop();)this.EN(T)}}return W!=0}return!1}; g.I.clear=function(B){if(B){var z=this.U[B];z&&(z.forEach(this.EN,this),delete this.U[B])}else this.T.length=0,this.U={}}; g.I.gF=function(){g.Jn.gD.gF.call(this);this.clear();this.Y.length=0};g.p2.prototype.set=function(B,z){z===void 0?this.T.remove(B):this.T.set(B,g.fh(z))}; g.p2.prototype.get=function(B){try{var z=this.T.get(B)}catch(T){return}if(z!==null)try{return JSON.parse(z)}catch(T){throw"Storage: Invalid value was encountered";}}; g.p2.prototype.remove=function(B){this.T.remove(B)};g.qg($e,g.p2);$e.prototype.set=function(B,z){$e.gD.set.call(this,B,Zh5(z))}; $e.prototype.U=function(B){B=$e.gD.get.call(this,B);if(B===void 0||B instanceof Object)return B;throw"Storage: Invalid value was encountered";}; $e.prototype.get=function(B){if(B=this.U(B)){if(B=B.data,B===void 0)throw"Storage: Invalid value was encountered";}else B=void 0;return B};g.qg(Pi,$e);Pi.prototype.set=function(B,z,T){if(z=Zh5(z)){if(T){if(T=T.length)return g.YD;var h=T.key(z++);if(B)return g.pq(h);h=T.getItem(h);if(typeof h!=="string")throw"Storage mechanism: Invalid value was encountered";return g.pq(h)}; return R}; g.I.clear=function(){ke(this);this.T.clear()}; g.I.key=function(B){ke(this);return this.T.key(B)};g.qg(K2,DI);g.qg(Etz,DI);g.qg(mh,vi);mh.prototype.set=function(B,z){this.U.set(this.T+B,z)}; mh.prototype.get=function(B){return this.U.get(this.T+B)}; mh.prototype.remove=function(B){this.U.remove(this.T+B)}; mh.prototype.Fw=function(B){var z=this.U[Symbol.iterator](),T=this,R=new g.Jw;R.next=function(){var h=z.next();if(h.done)return h;for(h=h.value;h.slice(0,T.T.length)!=T.T;){h=z.next();if(h.done)return h;h=h.value}return g.pq(B?h.slice(T.T.length):T.U.get(h))}; return R};uH.prototype.getValue=function(){return this.U}; uH.prototype.clone=function(){return new uH(this.T,this.U)};g.I=Hi.prototype;g.I.sN=function(B,z){var T=this.T;T.push(new uH(B,z));B=T.length-1;z=this.T;for(T=z[B];B>0;){var R=B-1>>1;if(z[R].T>T.T)z[B]=z[R],B=R;else break}z[B]=T}; g.I.remove=function(){var B=this.T,z=B.length,T=B[0];if(!(z<=0)){if(z==1)B.length=0;else{B[0]=B.pop();B=0;z=this.T;for(var R=z.length,h=z[B];B>1;){var W=B*2+1,b=B*2+2;W=bh.T)break;z[B]=z[W];B=W}z[B]=h}return T.getValue()}}; g.I.ML=function(){for(var B=this.T,z=[],T=B.length,R=0;R>>16&65535|0;for(var W;T!==0;){W=T>2E3?2E3:T;T-=W;do h=h+z[R++]|0,B=B+h|0;while(--W);h%=65521;B%=65521}return h|B<<16|0};for(var Fx={},oj,ZsF=[],Fb=0;Fb<256;Fb++){oj=Fb;for(var ehg=0;ehg<8;ehg++)oj=oj&1?3988292384^oj>>>1:oj>>>1;ZsF[Fb]=oj}Fx=function(B,z,T,R){T=R+T;for(B^=-1;R>>8^ZsF[(B^z[R])&255];return B^-1};var Y0={};Y0={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 Bf=[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],Re=[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],U8b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cGY=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],i7=Array(576);tn(i7);var cf=Array(60);tn(cf);var Tq=Array(512);tn(Tq);var SW=Array(256);tn(SW);var zq=Array(29);tn(zq);var hr=Array(30);tn(hr);var d8K,AGK,acz,G3z=!1;var ae;ae=[new Ar(0,0,0,0,function(B,z){var T=65535;for(T>B.wI-5&&(T=B.wI-5);;){if(B.uK<=1){Ie(B);if(B.uK===0&&z===0)return 1;if(B.uK===0)break}B.X1+=B.uK;B.uK=0;var R=B.zG+T;if(B.X1===0||B.X1>=R)if(B.uK=B.X1-R,B.X1=R,LE(B,!1),B.Mh.E2===0)return 1;if(B.X1-B.zG>=B.Rq-262&&(LE(B,!1),B.Mh.E2===0))return 1}B.sN=0;if(z===4)return LE(B,!0),B.Mh.E2===0?3:4;B.X1>B.zG&&LE(B,!1);return 1}), new Ar(4,4,8,4,Gq),new Ar(4,5,16,8,Gq),new Ar(4,6,32,32,Gq),new Ar(4,4,16,16,dL),new Ar(8,16,32,32,dL),new Ar(8,16,128,128,dL),new Ar(8,32,128,256,dL),new Ar(32,128,258,1024,dL),new Ar(32,258,258,4096,dL)];var IcK={};IcK=function(){this.input=null;this.y4=this.zo=this.tM=0;this.output=null;this.hX=this.E2=this.kJ=0;this.msg="";this.state=null;this.D0=2;this.VU=0};var MQH=Object.prototype.toString; UE.prototype.push=function(B,z){var T=this.Mh,R=this.options.chunkSize;if(this.ended)return!1;var h=z===~~z?z:z===!0?4:0;typeof B==="string"?T.input=zMr(B):MQH.call(B)==="[object ArrayBuffer]"?T.input=new Uint8Array(B):T.input=B;T.tM=0;T.zo=T.input.length;do{T.E2===0&&(T.output=new Nv.JP(R),T.kJ=0,T.E2=R);B=FgP(T,h);if(B!==1&&B!==0)return this.lr(B),this.ended=!0,!1;if(T.E2===0||T.zo===0&&(h===4||h===2))if(this.options.to==="string"){var W=Nv.tX(T.output,T.kJ);z=W;W=W.length;if(W<65537&&(z.subarray&& X7K||!z.subarray))z=String.fromCharCode.apply(null,Nv.tX(z,W));else{for(var b="",l=0;l0||T.E2===0)&&B!==1);if(h===4)return(T=this.Mh)&&T.state?(R=T.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?B=l7(T,-2):(T.state=null,B=R===113?l7(T,-3):0)):B=-2,this.lr(B),this.ended=!0,B===0;h===2&&(this.lr(0),T.E2=0);return!0}; UE.prototype.lr=function(B){B===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Nv.WQ(this.chunks));this.chunks=[];this.err=B;this.msg=this.Mh.msg};var Vr="@@redux/INIT"+MG(),p1B="@@redux/REPLACE"+MG();var $8d=typeof Symbol==="function"&&Symbol.observable||"@@observable";var sRc=[0,WKp,-3,hE];g.G(k3X,VG);var Acb=function(){var B=[0,Ypp,bss,BA,WKp,BA,-1,hE,WKp,hE,-1,Ypp,hE,bss,zw,sRc,BA,-1,hE];return function(z,T){var R={dk:!0};T&&Object.assign(R,T);z=fVY(z,void 0,void 0,R);try{var h=new k3X,W=h.iK;Zp(B)(W,z);var b=h}finally{z.free()}return b}}();var Kgd=1080692775;var BiX=new g.gL("adInfoDialogEndpoint");var yjz=new g.gL("adPingingEndpoint");var Z0H=new g.gL("crossDeviceProgressCommand");var Ri=new g.gL("actionCompanionAdRenderer");var q_=new g.gL("adActionInterstitialRenderer");var EPR=new g.gL("adDurationRemainingRenderer");var kL=new g.gL("adHoverTextButtonRenderer");var Eib=new g.gL("adInfoDialogRenderer");var d3=new g.gL("adMessageRenderer");var KC=new g.gL("adPreviewRenderer");var WI=new g.gL("adsEngagementPanelRenderer");var AAB=new g.gL("dismissablePanelTextPortraitImageRenderer");var GpP=new g.gL("adsEngagementPanelSectionListViewModel");var Spq=new g.gL("flyoutCtaRenderer");var hM=new g.gL("imageCompanionAdRenderer");var lF=new g.gL("instreamAdPlayerOverlayRenderer");var MBH=new g.gL("instreamSurveyAdBackgroundImageRenderer");var D1=new g.gL("instreamSurveyAdPlayerOverlayRenderer");var Us=new g.gL("instreamSurveyAdRenderer"),vI=new g.gL("instreamSurveyAdSingleSelectQuestionRenderer"),xL=new g.gL("instreamSurveyAdMultiSelectQuestionRenderer"),Ij=new g.gL("instreamSurveyAdAnswerRenderer"),B1P=new g.gL("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var CC=new g.gL("instreamVideoAdRenderer");var zvP=new g.gL("textOverlayAdContentRenderer"),T17=new g.gL("enhancedTextOverlayAdContentRenderer"),Rv7=new g.gL("imageOverlayAdContentRenderer");var wt=new g.gL("playerOverlayLayoutRenderer");var iF=new g.gL("videoInterstitialButtonedCenteredLayoutRenderer");var QlH=new g.gL("aboveFeedAdLayoutRenderer");var yAz=new g.gL("belowPlayerAdLayoutRenderer");var V6X=new g.gL("inPlayerAdLayoutRenderer");var Qi=new g.gL("playerBytesAdLayoutRenderer");var PI=new g.gL("playerBytesSequenceItemAdLayoutRenderer");var $L=new g.gL("playerUnderlayAdLayoutRenderer");var ai=new g.gL("adIntroRenderer");var cI=new g.gL("playerBytesSequentialLayoutRenderer");var bNl=new g.gL("slidingTextPlayerOverlayRenderer");var MQ=new g.gL("surveyTextInterstitialRenderer");var yi=new g.gL("videoAdTrackingRenderer");var hvF=new g.gL("simpleAdBadgeRenderer");var wf=new g.gL("skipAdRenderer"),WdI=new g.gL("skipButtonRenderer");var HI=new g.gL("adSlotRenderer");var JM=new g.gL("squeezebackPlayerSidePanelRenderer");var by7=new g.gL("timedPieCountdownRenderer");var fd=new g.gL("adAvatarViewModel");var OK=new g.gL("adBadgeViewModel");var NO=new g.gL("adButtonViewModel");var YBg=new g.gL("adDetailsLineViewModel");var ldU=new g.gL("adDisclosureBannerViewModel");var whc=new g.gL("adPodIndexViewModel");var qBI=new g.gL("imageBackgroundViewModel");var iyg=new g.gL("adGridCardCollectionViewModel");var cv5=new g.gL("adGridCardTextViewModel");var LdW=new g.gL("adPreviewViewModel");var C2F=new g.gL("playerAdAvatarLockupCardButtonedViewModel");var rv5=new g.gL("skipAdButtonViewModel");var o1q=new g.gL("skipAdViewModel");var Fd7=new g.gL("timedPieCountdownViewModel");var IdP=new g.gL("visitAdvertiserLinkViewModel");var bI=new g.gL("bannerImageLayoutViewModel");var YL=new g.gL("topBannerImageTextIconButtonedLayoutViewModel");var lI=new g.gL("adsEngagementPanelLayoutViewModel");var pC=new g.gL("displayUnderlayTextGridCardsLayoutViewModel");g.UR=new g.gL("browseEndpoint");var GRR=new g.gL("confirmDialogEndpoint");var RPK=new g.gL("commandContext");var I_H=new g.gL("rawColdConfigGroup");var FNd=new g.gL("rawHotConfigGroup");g.aS=new g.gL("commandExecutorCommand");g.G(naz,VG);var oYY={SGJ:0,hOf:1,bUI:32,DUi:61,csF:67,FWD:103,lPK:86,WWF:42,BYG:60,dUF:62,VbE:73,Ruf:76,zuO:88,xUu:90,qgE:99,g9i:98,PZE:100,XwI:102,ysO:41,IPd:69,LWd:70,rsE:71,snK:2,Coi:27,ANDROID:3,UnE:54,OXd:14,Vwm:91,YpE:55,ghD:24,QQi:20,W4I:18,Bsf:21,jQZ:104,nhI:30,zqE:29,xnu:28,AQi:101,P0f:34,Dnm:36,bXf:38,IOS:5,J6F:15,fAf:92,MlE:40,p7d:25,S6I:17,s$d:19,CFD:64,ugm:66,eZf:26,A6u:22,EYJ:33,w7F:68,k5D:35,oYm:53,N2J:37,KXD:39,qGI:7,yQJ:57,IwO:43,rQI:59,LUF:93,F4Z:74,GcK:75,t8E:85,HtI:65,ZtD:80,JQJ:8,PaO:10, KUK:58,M8E:63,mVJ:72,lnf:23,HUi:11,mUE:13,anG:12,cQE:16,QgG:56,n9E:31,MQE:77,Y6d:84,jgE:87,Q$d:89,gYD:94,PoE:95};g.G(Jr,VG);Jr.prototype.Wz=function(){return EM(this,3)}; Jr.prototype.D7=function(){return EM(this,5)}; Jr.prototype.K0=function(B){return Ra(this,5,B)};g.G(pE,VG);g.G(uhK,VG);g.G($0,VG);g.I=$0.prototype;g.I.getDeviceId=function(){return EM(this,6)}; g.I.Cw=function(B){var z=J9(this,9,NJ,3,!0);Vf(z,B);return z[B]}; g.I.getPlayerType=function(){return SK(this,36)}; g.I.setHomeGroupInfo=function(B){return jK(this,uhK,81,B)}; g.I.clearLocationPlayabilityToken=function(){return M1(this,89)};g.G(Pf,VG);Pf.prototype.getValue=function(){return EM(this,u$(this,rQl,2))}; var rQl=[2,3,4,5,6];g.G(x0,VG);x0.prototype.setTrackingParams=function(B){return M1(this,1,Hyl(B,!1))};g.G(vf,VG);g.G(De,VG);De.prototype.Cw=function(B){var z=J9(this,5,tz,3,!0);Vf(z,B);return z[B]};g.G(k0,VG);k0.prototype.getToken=function(){return zB(this,2)}; k0.prototype.setToken=function(B){return Ra(this,2,B)};g.G(KE,VG);KE.prototype.setSafetyMode=function(B){return WW(this,5,B)};g.G(mT,VG);mT.prototype.gK=function(B){return jK(this,$0,1,B)};var nC=new g.gL("thumbnailLandscapePortraitRenderer");g.dSs=new g.gL("changeEngagementPanelVisibilityAction");var V4B=new g.gL("continuationCommand");g.Avq=new g.gL("openPopupAction");g.Gw=new g.gL("webCommandMetadata");var jil=new g.gL("metadataBadgeRenderer");var M4B=new g.gL("signalServiceEndpoint");var nV=new g.gL("innertubeCommand");var izB=new g.gL("loggingDirectives");var ViP={ZYK:"EMBEDDED_PLAYER_MODE_UNKNOWN",tnF:"EMBEDDED_PLAYER_MODE_DEFAULT",mZZ:"EMBEDDED_PLAYER_MODE_PFP",HYO:"EMBEDDED_PLAYER_MODE_PFL"};var Gjz=new g.gL("channelThumbnailEndpoint");var ISr=new g.gL("embeddedPlayerErrorMessageRenderer");var CDX=new g.gL("embeddedPlayerOverlayVideoDetailsRenderer"),dLK=new g.gL("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),ANz=new g.gL("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var OCY=new g.gL("embedsInfoPanelRenderer");var adF=new g.gL("feedbackEndpoint");var US5=new g.gL("callToActionButtonViewModel");var MzI=new g.gL("interactionLoggingCommandMetadata");var ArP={Ygu:"WEB_DISPLAY_MODE_UNKNOWN",iUf:"WEB_DISPLAY_MODE_BROWSER",UUZ:"WEB_DISPLAY_MODE_MINIMAL_UI",OUE:"WEB_DISPLAY_MODE_STANDALONE",TYi:"WEB_DISPLAY_MODE_FULLSCREEN"};g.G(nE,VG);nE.prototype.getPlayerType=function(){return SK(this,7)}; nE.prototype.ma=function(){return EM(this,19)}; nE.prototype.setVideoId=function(B){return Ra(this,19,B)};g.G(u7,VG);g.G(Hf,VG);g.G(fE,VG); var VzK=[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];var QPK=new g.gL("loggingContext");g.G(OE,VG);g.G(NG,VG);NG.prototype.ma=function(){return zB(this,u$(this,LV,1))}; NG.prototype.setVideoId=function(B){return Ke(this,1,LV,BD(B))}; NG.prototype.getPlaylistId=function(){return zB(this,u$(this,LV,2))}; var LV=[1,2];g.G(HPP,VG);var Bx=new g.gL("changeKeyedMarkersVisibilityCommand");var yvK=new g.gL("changeMarkersVisibilityCommand");var ZCH=new g.gL("loadMarkersCommand");var g1F=new g.gL("suggestedActionDataViewModel");var lXX=new g.gL("timelyActionViewModel");var Ycz=new g.gL("timelyActionsOverlayViewModel");var FPb=new g.gL("productListItemRenderer");var Jv7=new g.gL("shoppingOverlayRenderer");var rNd=new g.gL("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var phs=new g.gL("adFeedbackEndpoint");var $SR=new g.gL("menuEndpoint");var aQB=new g.gL("phoneDialerEndpoint");var dOz=new g.gL("sendSmsEndpoint");var LIz=new g.gL("copyTextEndpoint");var P2s=new g.gL("shareEndpoint"),xSc=new g.gL("shareEntityEndpoint"),v1K=new g.gL("shareEntityServiceEndpoint"),DSg=new g.gL("webPlayerShareEntityServiceEndpoint");g.fl=new g.gL("urlEndpoint");g.E2=new g.gL("watchEndpoint");var kRK=new g.gL("watchPlaylistEndpoint");g.KdP=new g.gL("offlineOrchestrationActionCommand");var Zu5=new g.gL("compositeVideoOverlayRenderer");var mSg=new g.gL("miniplayerRenderer");var i6K=new g.gL("paidContentOverlayRenderer");var n17=new g.gL("playerMutedAutoplayOverlayRenderer"),uyg=new g.gL("playerMutedAutoplayEndScreenRenderer");var WEB=new g.gL("unserializedPlayerResponse"),Hyc=new g.gL("unserializedPlayerResponse");var fdU=new g.gL("playlistEditEndpoint");var dM;g.mE=new g.gL("buttonRenderer");dM=new g.gL("toggleButtonRenderer");var Ilz=new g.gL("counterfactualRenderer");var Oy7=new g.gL("resolveUrlCommandMetadata");var N1U=new g.gL("modifyChannelNotificationPreferenceEndpoint");var QXB=new g.gL("pingingEndpoint");var tzs=new g.gL("unsubscribeEndpoint");g.Mp=new g.gL("subscribeButtonRenderer");var jPR=new g.gL("subscribeEndpoint");var mhH=new g.gL("buttonViewModel");var d95=new g.gL("qrCodeRenderer");var ImB={RRF:"LIVING_ROOM_APP_MODE_UNSPECIFIED",b1Z:"LIVING_ROOM_APP_MODE_MAIN",W0J:"LIVING_ROOM_APP_MODE_KIDS",Bvf:"LIVING_ROOM_APP_MODE_MUSIC",jnF:"LIVING_ROOM_APP_MODE_UNPLUGGED",QnE:"LIVING_ROOM_APP_MODE_GAMING"};var uQK=new g.gL("autoplaySwitchButtonRenderer");var QB,wvK,cMz,d6X;QB=new g.gL("decoratedPlayerBarRenderer");wvK=new g.gL("chapteredPlayerBarRenderer");cMz=new g.gL("multiMarkersPlayerBarRenderer");d6X=new g.gL("chapterRenderer");g.LCH=new g.gL("markerRenderer");var VOX=new g.gL("decoratedPlayheadRenderer");var NrK=new g.gL("desktopOverlayConfigRenderer");var ald=new g.gL("engagementPanelSectionListRenderer");var f1B=new g.gL("gatedActionsOverlayViewModel");var FCB=new g.gL("heatMarkerRenderer");var o4B=new g.gL("heatmapRenderer");var XIb=new g.gL("watchToWatchTransitionRenderer");var omY=new g.gL("playlistPanelRenderer");var XhK=new g.gL("productUpsellSuggestedActionViewModel");var ZyK=new g.gL("suggestedActionTimeRangeTrigger"),evs=new g.gL("suggestedActionsRenderer"),sPP=new g.gL("suggestedActionRenderer");var IKr=new g.gL("timedMarkerDecorationRenderer");var $_Y=new g.gL("cipher");var bCB=new g.gL("playerVars");var E1q=new g.gL("playerVars");var AE=g.XK.window,SBP,BOF,tr=(AE==null?void 0:(SBP=AE.yt)==null?void 0:SBP.config_)||(AE==null?void 0:(BOF=AE.ytcfg)==null?void 0:BOF.data_)||{};g.Zz("yt.config_",tr);var EE=[];var Ea5=/^[\w.]*$/,X1B={q:!0,search_query:!0},jsb=String(TF);var cP=new function(){var B=window.document;this.T=window;this.U=B}; g.Zz("yt.ads_.signals_.getAdSignalsString",function(B){return Rc(CL(B))});g.YP();var ByK="XMLHttpRequest"in g.XK?function(){return new XMLHttpRequest}:null;var zoc="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.Q(zoc);var h0b={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"},rXz="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.Q(zoc)),iid=!1,lvH=QH;g.G(Jo,iW);PP.prototype.then=function(B,z,T){return this.T?this.T.then(B,z,T):this.U===1&&B?(B=B.call(T,this.Y))&&typeof B.then==="function"?B:vP(B):this.U===2&&z?(B=z.call(T,this.Y))&&typeof B.then==="function"?B:xv(B):this}; PP.prototype.getValue=function(){return this.Y}; PP.prototype.Xv=function(){return this.U==2}; PP.prototype.$goog_Thenable=!0;var DM=!1;var XJ=ED||SH;var UoB=/^([0-9\.]+):([0-9\.]+)$/;g.G(CD,iW);CD.prototype.name="BiscottiError";g.G(LD,iW);LD.prototype.name="BiscottiMissingError";var yXY={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},rS=null;var zhK=L5(["data-"]),kdl={};var TOp=0,o6=g.X8?"webkit":VC?"moz":g.Ff?"ms":g.VW?"o":"",RoK=g.sH("ytDomDomGetNextId")||function(){return++TOp}; g.Zz("ytDomDomGetNextId",RoK);var uMb={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};a6.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; a6.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; a6.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var UW=g.XK.ytEventsEventsListeners||{};g.Zz("ytEventsEventsListeners",UW);var Oid=g.XK.ytEventsEventsCounter||{count:0};g.Zz("ytEventsEventsCounter",Oid);var Xuz=CF(function(){var B=!1;try{var z=Object.defineProperty({},"passive",{get:function(){B=!0}}); window.addEventListener("test",null,z)}catch(T){}return B}),Nyz=CF(function(){var B=!1; try{var z=Object.defineProperty({},"capture",{get:function(){B=!0}}); window.addEventListener("test",null,z)}catch(T){}return B});var aj;aj=window;g.f=aj.ytcsi&&aj.ytcsi.now?aj.ytcsi.now:aj.performance&&aj.performance.timing&&aj.performance.now&&aj.performance.timing.navigationStart?function(){return aj.performance.timing.navigationStart+aj.performance.now()}:function(){return(new Date).getTime()};g.qg(gS,g.K);gS.prototype.N=function(B){B.T===void 0&&HiH(B);var z=B.T;B.U===void 0&&HiH(B);this.T=new g.pr(z,B.U)}; gS.prototype.SP=function(){return this.T||new g.pr}; gS.prototype.TZ=function(){if(this.T){var B=(0,g.f)();if(this.W!=0){var z=this.X,T=this.T,R=z.x-T.x;z=z.y-T.y;R=Math.sqrt(R*R+z*z)/(B-this.W);this.U[this.Y]=Math.abs((R-this.V)/this.V)>.5?1:0;for(T=z=0;T<4;T++)z+=this.U[T]||0;z>=3&&this.L();this.V=R}this.W=B;this.X=this.T;this.Y=(this.Y+1)%4}}; gS.prototype.gF=function(){g.dJ(this.J);g.VO(this.UE)};g.G(JQ,g.K);JQ.prototype.Z=function(B,z,T,R,h){T=g.BP((0,g.W7)(T,R||this.O0));T={target:B,name:z,callback:T};var W;h&&Xuz()&&(W={passive:!0});B.addEventListener(z,T.callback,W);this.L.push(T);return T}; JQ.prototype.V2=function(B){for(var z=0;z=n.mU)||a.T.version>=Z||a.T.objectStoreNames.contains(v)||M.push(v)}w=M;if(w.length===0){A.jI(5);break}q=Object.keys(T.options.DG); c=l.objectStoreNames();if(T.VT.options.version+1)throw C.close(),T.Y=!1,DvK(T,r);return A.return(C);case 8:throw z(), L instanceof Error&&!g.ac("ytidb_async_stack_killswitch")&&(L.stack=L.stack+"\n"+b.substring(b.indexOf("\n")+1)),ah(L,T.name,"",(F=T.options.version)!=null?F:-1);}})} function z(){T.T===R&&(T.T=void 0)} var T=this;if(!this.Y)throw DvK(this);if(this.T)return this.T;var R,h={blocking:function(W){W.close()}, closed:z,uhE:z,upgrade:this.options.upgrade};return this.T=R=B()};var tx=new Oj("YtIdbMeta",{DG:{databases:{mU:1}},upgrade:function(B,z){z(1)&&g.p1(B,"databases",{keyPath:"actualName"})}});var sj,ed=new function(){}(new function(){});new g.CP;g.G(Bg,Oj);Bg.prototype.U=function(B,z,T){T=T===void 0?{}:T;return(this.options.shared?Nwz:O25)(B,z,Object.assign({},T))}; Bg.prototype.delete=function(B){B=B===void 0?{}:B;return(this.options.shared?Z2H:tWH)(this.name,B)};var c2c={},smd=g.zm("ytGcfConfig",{DG:(c2c.coldConfigStore={mU:1},c2c.hotConfigStore={mU:1},c2c),shared:!1,upgrade:function(B,z){z(1)&&(g.ki(g.p1(B,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.ki(g.p1(B,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.G(RI,g.K);RI.prototype.gF=function(){for(var B=g.d(this.U),z=B.next();!z.done;z=B.next()){var T=this.T;z=T.indexOf(z.value);z>=0&&T.splice(z,1)}this.U.length=0;g.K.prototype.gF.call(this)};wi.prototype.K0=function(B){this.hotHashData=B;g.Zz("yt.gcf.config.hotHashData",this.hotHashData||null)};var LMp=typeof TextEncoder!=="undefined"?new TextEncoder:null,n0d=LMp?function(B){return LMp.encode(B)}:function(B){B=g.Wl(B); for(var z=new Uint8Array(B.length),T=0;T=z?!1:!0}; g.I.Vo=function(){var B=this;if(!kk(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.u8.rj("QUEUED",this.f2).then(function(z){z&&!B.BF(z,B.Y8)?B.lZ.u0(function(){return g.D(function(T){if(T.U==1)return z.id===void 0?T.jI(2):g.P(T,B.u8.MM(z.id,B.f2),2);B.Vo();g.dX(T)})}):B.x0.zO()&&B.gN()})};var nz;var AQK={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519};var r2W={},hLb=g.zm("ServiceWorkerLogsDatabase",{DG:(r2W.SWHealthLog={mU:1},r2W),shared:!0,upgrade:function(B,z){z(1)&&g.ki(g.p1(B,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var fz={},L4b=0;var Ov;tk.prototype.requestComplete=function(B,z){z&&(this.U=!0);B=this.removeParams(B);this.T.get(B)||this.T.set(B,z)}; tk.prototype.isEndpointCFR=function(B){B=this.removeParams(B);return(B=this.T.get(B))?!1:B===!1&&this.U?!0:null}; tk.prototype.removeParams=function(B){return B.split("?")[0]}; tk.prototype.removeParams=tk.prototype.removeParams;tk.prototype.isEndpointCFR=tk.prototype.isEndpointCFR;tk.prototype.requestComplete=tk.prototype.requestComplete;tk.getInstance=j4;g.G(X0,g.Lh);g.I=X0.prototype;g.I.zO=function(){return this.T.zO()}; g.I.r7=function(B){this.T.T=B}; g.I.CR=function(){var B=window.navigator.onLine;return B===void 0?!0:B}; g.I.PE=function(){this.U=!0}; g.I.listen=function(B,z){return this.T.listen(B,z)}; g.I.PF=function(B){B=ub(this.T,B);B.then(function(z){g.ac("use_cfr_monitor")&&j4().requestComplete("generate_204",z)}); return B}; X0.prototype.sendNetworkCheckRequest=X0.prototype.PF;X0.prototype.listen=X0.prototype.listen;X0.prototype.enableErrorFlushing=X0.prototype.PE;X0.prototype.getWindowStatus=X0.prototype.CR;X0.prototype.networkStatusHint=X0.prototype.r7;X0.prototype.isNetworkAvailable=X0.prototype.zO;X0.getInstance=ov5;g.G(g.Zj,g.Lh);g.Zj.prototype.zO=function(){var B=g.sH("yt.networkStatusManager.instance.isNetworkAvailable");return B?B.bind(this.U)():!0}; g.Zj.prototype.r7=function(B){var z=g.sH("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);z&&z(B)}; g.Zj.prototype.PF=function(B){var z=this,T;return g.D(function(R){T=g.sH("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.U);return g.ac("skip_network_check_if_cfr")&&j4().isEndpointCFR("generate_204")?R.return(new Promise(function(h){var W;z.r7(((W=window.navigator)==null?void 0:W.onLine)||!0);h(z.zO())})):T?R.return(T(B)):R.return(!0)})};var e4;g.G(Ev,Kz);Ev.prototype.writeThenSend=function(B,z){z||(z={});z=BF(B,z);g.sW()||(this.T=!1);Kz.prototype.writeThenSend.call(this,B,z)}; Ev.prototype.sendThenWrite=function(B,z,T){z||(z={});z=BF(B,z);g.sW()||(this.T=!1);Kz.prototype.sendThenWrite.call(this,B,z,T)}; Ev.prototype.sendAndWrite=function(B,z){z||(z={});z=BF(B,z);g.sW()||(this.T=!1);Kz.prototype.sendAndWrite.call(this,B,z)}; Ev.prototype.awaitInitialization=function(){return this.Y.promise};var Ao5=g.XK.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Zz("ytNetworklessLoggingInitializationOptions",Ao5);g.zW.prototype.isReady=function(){!this.config_&&C7Y()&&(this.config_=g.iz());return!!this.config_};var oIW,hW,b_;oIW=g.XK.ytPubsubPubsubInstance||new g.Jn;hW=g.XK.ytPubsubPubsubSubscribedKeys||{};b_=g.XK.ytPubsubPubsubTopicToKeys||{};g.WF=g.XK.ytPubsubPubsubIsSynchronous||{};g.Jn.prototype.subscribe=g.Jn.prototype.subscribe;g.Jn.prototype.unsubscribeByKey=g.Jn.prototype.EN;g.Jn.prototype.publish=g.Jn.prototype.publish;g.Jn.prototype.clear=g.Jn.prototype.clear;g.Zz("ytPubsubPubsubInstance",oIW);g.Zz("ytPubsubPubsubTopicToKeys",b_);g.Zz("ytPubsubPubsubIsSynchronous",g.WF); g.Zz("ytPubsubPubsubSubscribedKeys",hW);var yo5={};g.G(oZ,g.K);oZ.prototype.append=function(B){if(!this.U)throw Error("This does not support the append operation");B=B.jk();this.jk().appendChild(B)}; g.G(AW,oZ);AW.prototype.jk=function(){return this.T};g.G(aZ,g.K);aZ.prototype.onTouchStart=function(B){this.L=!0;this.U=B.touches.length;this.T.isActive()&&(this.T.stop(),this.V=!0);B=B.touches;this.X=pPz(this,B)||B.length!=1;var z=B.item(0);this.X||!z?this.N=this.J=Infinity:(this.J=z.clientX,this.N=z.clientY);for(z=this.Y.length=0;z=0)}if(z||B&&Math.pow(B.clientX-this.J,2)+Math.pow(B.clientY-this.N,2)>25)this.W=!0}; aZ.prototype.onTouchEnd=function(B){var z=B.changedTouches;z&&this.L&&this.U==1&&!this.W&&!this.V&&!this.X&&pPz(this,z)&&(this.TZ=B,this.T.start());this.U=B.touches.length;this.U===0&&(this.W=this.L=!1,this.Y.length=0);this.V=!1};var Ue=Date.now().toString();var g6={};var vF=Symbol("injectionDeps");pH.prototype.toString=function(){return"InjectionToken("+this.name+")"}; xRB.prototype.resolve=function(B){return B instanceof $2?D7(this,B.key,[],!0):D7(this,B,[])};var k2;var mA=window;var fH=g.ac("web_enable_lifecycle_monitoring")&&nH()!==0,uNP=g.ac("web_enable_lifecycle_monitoring");K4K.prototype.cancel=function(){for(var B=g.d(this.T),z=B.next();!z.done;z=B.next())z=z.value,z.jobId===void 0||z.f9||this.scheduler.Xg(z.jobId),z.f9=!0;this.U.resolve()};g.I=Oe.prototype;g.I.install=function(B){this.plugins.push(B);return this}; g.I.uninstall=function(){var B=this;g.K5.apply(0,arguments).forEach(function(z){z=B.plugins.indexOf(z);z>-1&&B.plugins.splice(z,1)})}; g.I.transition=function(B,z){var T=this;fH&&DRb(this.state);var R=this.transitions.find(function(W){return Array.isArray(W.from)?W.from.find(function(b){return b===T.state&&W.to===B}):W.from===T.state&&W.to===B}); if(R){this.U&&(mRX(this.U),this.U=void 0);HLH(this,B,z);this.state=B;fH&&u_(this.state);R=R.action.bind(this);var h=this.plugins.filter(function(W){return W[B]}).map(function(W){return W[B]}); R(nvr(this,h),z)}else throw Error("no transition specified from "+this.state+" to "+B);}; g.I.fcf=function(B){var z=g.K5.apply(1,arguments);g.To();for(var T=g.d(B),R=T.next(),h={};!R.done;h={tO:void 0},R=T.next())h.tO=R.value,Yqz(function(W){return function(){tW(W.tO.name);Xz(function(){return W.tO.callback.apply(W.tO,g.Q(z))}); jG(W.tO.name)}}(h))}; g.I.ogd=function(B){var z=g.K5.apply(1,arguments),T,R,h,W;return g.D(function(b){b.U==1&&(g.To(),T=g.d(B),R=T.next(),h={});if(b.U!=3){if(R.done)return b.jI(0);h.X4=R.value;h.Ar=void 0;W=function(l){return function(){tW(l.X4.name);var w=Xz(function(){return l.X4.callback.apply(l.X4,g.Q(z))}); LX(w)?l.Ar=g.ac("web_lifecycle_error_handling_killswitch")?w.then(function(){jG(l.X4.name)}):w.then(function(){jG(l.X4.name)},function(q){kFH(q); jG(l.X4.name)}):jG(l.X4.name)}}(h); Yqz(W);return h.Ar?g.P(b,h.Ar,3):b.jI(3)}h={X4:void 0,Ar:void 0};R=T.next();return b.jI(2)})}; g.I.Cj=function(B){var z=g.K5.apply(1,arguments),T=this,R=B.map(function(h){return{xG:function(){tW(h.name);Xz(function(){return h.callback.apply(h,g.Q(z))}); jG(h.name)}, priority:Nc(T,h)}}); R.length&&(this.U=new K4K(R))}; g.wX.Object.defineProperties(Oe.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var eG;g.G(Z7,Oe);Z7.prototype.V=function(B,z){var T=this;this.T=g.B4(0,function(){T.currentState==="application_navigating"&&T.transition("none")},5E3); B(z==null?void 0:z.event)}; Z7.prototype.X=function(B,z){this.T&&(g.fi.Xg(this.T),this.T=null);B(z==null?void 0:z.event)};var Aj=[];g.Zz("yt.logging.transport.getScrapedGelPayloads",function(){return Aj});se.prototype.storePayload=function(B,z){B=Ee(B);this.store[B]?this.store[B].push(z):(this.U={},this.store[B]=[z]);this.T++;g.ac("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return B}; se.prototype.smartExtractMatchingEntries=function(B){if(!B.keys.length)return[];for(var z=Bc(this,B.keys.splice(0,1)[0]),T=[],R=0;R=0){R=!1;break a}}R=!0}R&&(z=Hc(z))&&this.vJ(z)}}; g.I.US=function(B){return B}; g.I.onTouchStart=function(B){this.WD.onTouchStart(B)}; g.I.onTouchMove=function(B){this.WD.onTouchMove(B)}; g.I.onTouchEnd=function(B){if(this.WD)this.WD.onTouchEnd(B)}; g.I.vJ=function(B){this.layoutId?this.ZJ.executeCommand(B,this.layoutId):(B=new g.Z_("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kV(B))}; g.I.createServerVe=function(B,z){this.api.createServerVe(B,this);this.api.setTrackingParams(B,z)}; g.I.logVisibility=function(B,z){this.api.hasVe(B)&&this.api.logVisibility(B,z,this.interactionLoggingClientData)}; g.I.gF=function(){this.clear(null);this.V2(this.EE);for(var B=g.d(this.RK),z=B.next();!z.done;z=B.next())this.V2(z.value);g.Gt.prototype.gF.call(this)};g.G(mc,d2); mc.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);this.T=z;if(z.text==null&&z.icon==null)g.KV(Error("ButtonRenderer did not have text or an icon set."));else{switch(z.style||null){case "STYLE_UNKNOWN":B="ytp-ad-button-link";break;default:B=null}B!=null&&g.ww(this.element,B);z.text!=null&&(B=g.aU(z.text),g.Fy(B)||(this.element.setAttribute("aria-label",B),this.Y=new g.Gt({B:"span",G:"ytp-ad-button-text",Yd:B}),g.m(this,this.Y),this.Y.Vu(this.element)));z.accessibilityData&&z.accessibilityData.accessibilityData&& z.accessibilityData.accessibilityData.label&&!g.Fy(z.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",z.accessibilityData.accessibilityData.label);z.icon!=null&&(z=Kl(z.icon,this.W),z!=null&&(this.U=new g.Gt({B:"span",G:"ytp-ad-button-icon",S:[z]}),g.m(this,this.U)),this.X?TJ(this.element,this.U.element,0):this.U.Vu(this.element))}}; mc.prototype.clear=function(){this.hide()}; mc.prototype.onClick=function(B){d2.prototype.onClick.call(this,B);B=g.d(K1l(this));for(var z=B.next();!z.done;z=B.next())z=z.value,this.layoutId?this.ZJ.executeCommand(z,this.layoutId):g.kV(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.G(nl,g.K);nl.prototype.gF=function(){this.U&&g.VO(this.U);this.T.clear();uU=null;g.K.prototype.gF.call(this)}; nl.prototype.register=function(B,z){z&&this.T.set(B,z)}; var uU=null;g.G(O_,d2); O_.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);B=z.hoverText||null;z=z.button&&g.u(z.button,g.mE)||null;z==null?g.kV(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,void 0,void 0,void 0,void 0,this.Y),g.m(this,this.button),this.button.init(ca("button"),z,this.macros),B&&this.button.element.setAttribute("aria-label",g.aU(B)),this.button.Vu(this.element),this.N&&!g.lH(this.button.element, "ytp-ad-clickable")&&g.ww(this.button.element,"ytp-ad-clickable"),this.Y&&g.ww(this.button.element,"ytp-ad-hover-text-button--clean-player"),B&&(this.U=new g.Gt({B:"div",G:"ytp-ad-hover-text-container"}),this.X&&(z=new g.Gt({B:"div",G:"ytp-ad-hover-text-callout"}),z.Vu(this.U.element),g.m(this,z)),g.m(this,this.U),this.U.Vu(this.element),z=Ha(B),TJ(this.U.element,z,0)),this.show())}; O_.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();d2.prototype.hide.call(this)}; O_.prototype.show=function(){this.button&&this.button.show();d2.prototype.show.call(this)};g.G(tZ,d2); tZ.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);T=(B=z.thumbnail)&&NI(B)||"";g.Fy(T)?Math.random()<.01&&g.KV(Error("Found AdImage without valid image URL")):(this.T?g.Ml(this.element,"backgroundImage","url("+T+")"):jh(this.element,{src:T}),jh(this.element,{alt:B&&B.accessibility&&B.accessibility.label||""}),z&&z.adRendererCommands&&z.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; tZ.prototype.clear=function(){this.hide()};g.G(j2,d2);g.I=j2.prototype;g.I.hide=function(){d2.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.I.show=function(){this.Y=document.activeElement;d2.prototype.show.call(this);this.W.focus()}; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);this.U=z;z.dialogMessages||z.title!=null?z.confirmLabel==null?g.kV(Error("ConfirmDialogRenderer.confirmLabel was not set.")):z.cancelLabel==null?g.kV(Error("ConfirmDialogRenderer.cancelLabel was not set.")):H1z(this,z):g.kV(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.I.clear=function(){g.$K(this.T);this.hide()}; g.I.gx=function(){this.hide()}; g.I.f5=function(){var B=this.U.cancelEndpoint;B&&(this.layoutId?this.ZJ.executeCommand(B,this.layoutId):g.kV(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.I.Q$=function(){var B=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;B&&(this.layoutId?this.ZJ.executeCommand(B,this.layoutId):g.kV(Error("Missing layoutId for confirm dialog.")));this.hide()};g.G(Xt,d2);g.I=Xt.prototype; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);this.Y=z;if(z.defaultText==null&&z.defaultIcon==null)g.kV(Error("ToggleButtonRenderer must have either text or icon set."));else if(z.defaultIcon==null&&z.toggledIcon!=null)g.kV(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(z.style){switch(z.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":B="ytp-ad-toggle-button-default-style";break;default:B=null}B!=null&&g.ww(this.W,B)}B={};z.defaultText? (T=g.aU(z.defaultText),g.Fy(T)||(B.buttonText=T,this.api.K().experiments.Cf("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",T),this.api.K().experiments.Cf("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",T))):g.KF(this.XE,!1);z.defaultTooltip&&(B.tooltipText=z.defaultTooltip,this.T.hasAttribute("aria-label")||this.U.setAttribute("aria-label",z.defaultTooltip));z.defaultIcon?(T=Kl(z.defaultIcon),this.updateValue("untoggledIconTemplateSpec",T),z.toggledIcon?(this.UE= !0,T=Kl(z.toggledIcon),this.updateValue("toggledIconTemplateSpec",T)):(g.KF(this.N,!0),g.KF(this.X,!1)),g.KF(this.T,!1)):g.KF(this.U,!1);g.Ep(B)||this.update(B);z.isToggled&&(g.ww(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(z.isToggled));ZY(this);this.Z(this.element,"change",this.Kg);this.show()}}; g.I.onClick=function(B){this.RK.length>0&&(this.toggleButton(!this.isToggled()),this.Kg());d2.prototype.onClick.call(this,B)}; g.I.Kg=function(){g.L2(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var B=g.d(fsH(this,this.isToggled())),z=B.next();!z.done;z=B.next())z=z.value,this.layoutId?this.ZJ.executeCommand(z,this.layoutId):g.kV(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);ZY(this)}; g.I.clear=function(){this.hide()}; g.I.toggleButton=function(B){g.L2(this.W,"ytp-ad-toggle-button-toggled",B);this.T.checked=B;ZY(this)}; g.I.isToggled=function(){return this.T.checked};g.G(e2,JQ);e2.prototype.X=function(B){if(Array.isArray(B)){B=g.d(B);for(var z=B.next();!z.done;z=B.next())z=z.value,z instanceof O1K&&this.W(z)}};g.G(s_,d2);g.I=s_.prototype;g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);z.reasons?z.confirmLabel==null?g.kV(Error("AdFeedbackRenderer.confirmLabel was not set.")):(z.cancelLabel==null&&g.KV(Error("AdFeedbackRenderer.cancelLabel was not set.")),z.title==null&&g.KV(Error("AdFeedbackRenderer.title was not set.")),X4b(this,z)):g.kV(Error("AdFeedbackRenderer.reasons were not set."))}; g.I.clear=function(){QO(this.X);QO(this.N);this.W.length=0;this.hide()}; g.I.hide=function(){this.T&&this.T.hide();this.U&&this.U.hide();d2.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.I.show=function(){this.T&&this.T.show();this.U&&this.U.show();this.Y=document.activeElement;d2.prototype.show.call(this);this.X.focus()}; g.I.f8=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.I.M6I=function(){this.hide()}; E_.prototype.jk=function(){return this.T.element}; E_.prototype.getCommand=function(){return this.U}; E_.prototype.isChecked=function(){return this.Y.checked};g.G(S2,j2);S2.prototype.gx=function(B){j2.prototype.gx.call(this,B);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; S2.prototype.f5=function(B){j2.prototype.f5.call(this,B);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; S2.prototype.Q$=function(B){j2.prototype.Q$.call(this,B);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.G(Bp,d2);g.I=Bp.prototype; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);this.X=z;if(z.dialogMessage==null&&z.title==null)g.kV(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{z.confirmLabel==null&&g.KV(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(B=z.closeOverlayRenderer&&g.u(z.closeOverlayRenderer,g.mE)||null)this.T=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.m(this,this.T),this.T.init(ca("button"),B,this.macros),this.T.Vu(this.element);z.title&&(B=g.aU(z.title),this.updateValue("title",B));if(z.adReasons)for(B=z.adReasons,T=0;T=this.lO?(this.UE.hide(),this.IK=!0,this.publish("i")):this.Y&&this.Y.isTemplated()&&(B=Math.max(0,Math.ceil((this.lO-B)/1E3)),B!=this.MG&&(RS(this.Y,{TIME_REMAINING:String(B)}),this.MG=B)))}};g.G(qk,hC);g.I=qk.prototype; g.I.init=function(B,z,T){hC.prototype.init.call(this,B,z,T);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if((B=z.actionButton&&g.u(z.actionButton,g.mE))&&B.navigationEndpoint){var R=this.api.getVideoData(2);if(R!=null)if(z.image&&z.image.thumbnail){var h=z.image.thumbnail.thumbnails;h!=null&&h.length>0&&g.Fy(g.IA(h[0].url))&&(h[0].url=R.profilePicture)}else g.KV(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Y.init(ca("ad-image"),z.image,T);this.X.init(ca("ad-text"), z.headline,T);this.W.init(ca("ad-text"),z.description,T);this.U.init(ca("button"),B,T);T=XM(this.U.element);ji(this.U.element,T+" This link opens in new tab");this.UE=B.navigationEndpoint;this.api.yV()||this.show();this.api.K().D("enable_larger_flyout_cta_on_desktop")&&(this.BD("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.BD("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.BD("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.BD("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.BD("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.BD("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.BD("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.SU.bind(this));this.XE=z.startMs||0;Wp(this)}else g.kV(Error("FlyoutCtaRenderer has no valid action button."));else g.kV(Error("FlyoutCtaRenderer has no description AdText."));else g.kV(Error("FlyoutCtaRenderer has no headline AdText."));else g.KV(Error("FlyoutCtaRenderer has no image."))}; g.I.onClick=function(B){hC.prototype.onClick.call(this,B);this.api.pauseVideo();!g.hm(this.U.element,B.target)&&this.UE&&(this.layoutId?this.ZJ.executeCommand(this.UE,this.layoutId):g.kV(Error("Missing layoutId for flyout cta.")))}; g.I.vp=function(){if(this.T){var B=this.T.getProgressState();(B&&B.current||this.lO)&&1E3*B.current>=this.XE&&(b1(this),g.iH(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}}; g.I.v3=function(){this.clear()}; g.I.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.SU.bind(this))}; g.I.show=function(){this.U&&this.U.show();hC.prototype.show.call(this)}; g.I.hide=function(){this.U&&this.U.hide();hC.prototype.hide.call(this)}; g.I.SU=function(B){B=="hidden"?this.show():this.hide()};g.G(i1,d2);g.I=i1.prototype; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);this.T=z;if(this.T.rectangle)for(B=this.T.likeButton&&g.u(this.T.likeButton,dM),z=this.T.dislikeButton&&g.u(this.T.dislikeButton,dM),this.Y.init(ca("toggle-button"),B,T),this.U.init(ca("toggle-button"),z,T),this.Z(this.element,"change",this.s7),this.W.show(100),this.show(),T=g.d(this.T&&this.T.impressionCommands||[]),B=T.next();!B.done;B=T.next())B=B.value,this.layoutId?this.ZJ.executeCommand(B,this.layoutId):g.kV(Error("Missing layoutId for instream user sentiment."))}; g.I.clear=function(){this.hide()}; g.I.hide=function(){this.Y.hide();this.U.hide();d2.prototype.hide.call(this)}; g.I.show=function(){this.Y.show();this.U.show();d2.prototype.show.call(this)}; g.I.s7=function(){gtz(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.uO("onYtShowToast",this.T.postMessageAction);this.W.hide()}; g.I.onClick=function(B){this.RK.length>0&&this.s7();d2.prototype.onClick.call(this,B)};g.G(cp,g.K);g.I=cp.prototype;g.I.gF=function(){this.reset();g.K.prototype.gF.call(this)}; g.I.reset=function(){g.$K(this.W);this.X=!1;this.T&&this.T.stop();this.V.stop();this.Y&&(this.Y=!1,this.L.play())}; g.I.start=function(){this.reset();this.W.Z(this.U,"mouseover",this.eU,this);this.W.Z(this.U,"mouseout",this.Cg,this);this.TZ&&(this.W.Z(this.U,"focusin",this.eU,this),this.W.Z(this.U,"focusout",this.Cg,this));this.T?this.T.start():(this.X=this.Y=!0,g.Ml(this.U,{opacity:this.N}))}; g.I.eU=function(){this.Y&&(this.Y=!1,this.L.play());this.V.stop();this.T&&this.T.stop()}; g.I.Cg=function(){this.X?this.V.start():this.T&&this.T.start()}; g.I.au=function(){this.Y||(this.Y=!0,this.J.play(),this.X=!0)};var bz5=[new L0("b.f_",!1,0),new L0("j.s_",!1,2),new L0("r.s_",!1,4),new L0("e.h_",!1,6),new L0("i.s_",!0,8),new L0("s.t_",!1,10),new L0("p.h_",!1,12),new L0("s.i_",!1,14),new L0("f.i_",!1,16),new L0("a.b_",!1,18),new L0("a.o_",!1),new L0("g.o_",!1,22),new L0("p.i_",!1,24),new L0("p.m_",!1),new L0("n.k_",!0,20),new L0("i.f_",!1),new L0("a.s_",!0),new L0("m.c_",!1),new L0("n.h_",!1,26),new L0("o.p_",!1),new L0("m.p_",!0,28),new L0("o.a_",!1),new L0("d.p_",!1)].reduce(function(B,z){B[z.U]=z;return B}, {});g.G(AC,hC);g.I=AC.prototype; g.I.init=function(B,z,T){hC.prototype.init.call(this,B,z,T);this.UE=z;(this.XE=ljK(this))&&g.KV(Error("hasAdControlInClickCommands_ is true."));if(!z||g.Ep(z))g.kV(Error("SkipButtonRenderer was not specified or empty."));else if(!z.message||g.Ep(z.message))g.kV(Error("SkipButtonRenderer.message was not specified or empty."));else{B=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};z=Kl(B);z==null?g.kV(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+B.iconType+".")): (this.Y=new g.Gt({B:"button",nf:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],S:[{B:"span",G:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",S:[z]}]}),g.m(this,this.Y),this.Y.Vu(this.W.element),this.U=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,"ytp-ad-skip-button-text"),this.X&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),this.U.init(ca("ad-text"),this.UE.message,T),g.m(this,this.U),TJ(this.Y.element,this.U.element, 0));var R=R===void 0?null:R;T=this.api.K();!(this.RK.length>0)&&T.U&&(Mj?0:"ontouchstart"in document.documentElement&&(sRl()||fF()))&&(this.V2(this.EE),R&&this.V2(R),this.RK=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.I.clear=function(){this.lO.reset();this.hide()}; g.I.hide=function(){this.W.hide();this.U&&this.U.hide();b1(this);hC.prototype.hide.call(this)}; g.I.onClick=function(B){if(this.Y!=null){if(B){var z=B||window.event;z.returnValue=!1;z.preventDefault&&z.preventDefault()}var T;if(hdz(B,{contentCpn:((T=this.api.getVideoData(1))==null?void 0:T.clientPlaybackNonce)||""})===0)this.api.uO("onAbnormalityDetected");else if(hC.prototype.onClick.call(this,B),this.publish("j"),this.api.uO("onAdSkip"),this.IK||!this.XE)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.I.US=function(B){if(!this.IK)return this.XE&&Fo("SkipButton click commands not pruned while ALC exist"),B;var z,T=(z=g.u(B,g.aS))==null?void 0:z.commands;if(!T)return B;B=[];for(z=0;z=this.X&&wgY(this,!0)};g.G(Mk,mc);Mk.prototype.init=function(B,z,T){mc.prototype.init.call(this,B,z,T);B=!1;z.text!=null&&(B=g.aU(z.text),B=!g.Fy(B));B?z.navigationEndpoint==null?g.KV(Error("No visit advertiser clickthrough provided in renderer,")):z.style!=="STYLE_UNKNOWN"?g.KV(Error("Button style was not a link-style type in renderer,")):this.show():g.KV(Error("No visit advertiser text was present in the renderer."))};g.G(VK,d2); VK.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);B=z.text;g.Fy(AZ(B))?g.KV(Error("SimpleAdBadgeRenderer has invalid or empty text")):(B&&B.text&&(z=B.text,this.Y&&!this.U&&(z=this.api.K(),z=B.text+" "+(z&&z.U?"\u2022":"\u00b7")),z={text:z,isTemplated:B.isTemplated},B.style&&(z.style=B.style),B.targetId&&(z.targetId=B.targetId),B=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),B.init(ca("simple-ad-badge"),z,T),B.Vu(this.element),g.m(this,B)),this.show())}; VK.prototype.clear=function(){this.hide()};g.G(QK,Ll);g.G(yK,g.Cl);g.I=yK.prototype;g.I.hx=function(){return this.durationMs}; g.I.stop=function(){this.T&&this.aI.V2(this.T)}; g.I.l$=function(B){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:B.current};this.publish("h")}; g.I.getProgressState=function(){return this.U}; g.I.DK=function(B){g.dK(B,2)&&this.publish("g")};g.G(gK,g.Cl);g.I=gK.prototype;g.I.hx=function(){return this.durationMs}; g.I.start=function(){this.T||(this.T=!0,this.KQ.start())}; g.I.stop=function(){this.T&&(this.T=!1,this.KQ.stop())}; g.I.l$=function(){this.Wv+=100;var B=!1;this.Wv>this.durationMs&&(this.Wv=this.durationMs,this.KQ.stop(),B=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Wv/1E3};this.publish("h");B&&this.publish("g")}; g.I.getProgressState=function(){return this.U};g.G($p,hC);g.I=$p.prototype;g.I.init=function(B,z,T){hC.prototype.init.call(this,B,z,T);var R;if(z==null?0:(R=z.templatedCountdown)==null?0:R.templatedAdText){B=z.templatedCountdown.templatedAdText;if(!B.isTemplated){g.KV(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);this.U.init(ca("ad-text"),B,{});this.U.Vu(this.element);g.m(this,this.U)}this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){b1(this);hC.prototype.hide.call(this)}; g.I.v3=function(){this.hide()}; g.I.vp=function(){if(this.T!=null){var B=this.T.getProgressState();if(B!=null&&B.current!=null&&this.U){var z=this.T instanceof yK?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:B.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof gK?B.seekableEnd:this.api.getDuration(2,!1);B=B.current;var T,R,h=((T=this.api.getVideoData())==null?0:(R=T.Gz)==null?0:R.call(T))?Math.max(z-B,0):z-B;RS(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.JC(h)), TIME_REMAINING:String(Math.ceil(h))})}}}; g.I.show=function(){Wp(this);hC.prototype.show.call(this)};g.G(Pp,Tv);Pp.prototype.onClick=function(B){Tv.prototype.onClick.call(this,B);this.api.onAdUxClicked(this.componentType)};g.G(vp,d2);vp.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(B=z.content){g.Wt(this.element,B);var T,R;z=((T=z.interaction)==null?void 0:(R=T.accessibility)==null?void 0:R.label)||B;this.element.setAttribute("aria-label",z)}else g.kV(Error("AdSimpleAttributedString does not have text content"))}; vp.prototype.clear=function(){this.hide()}; vp.prototype.onClick=function(B){d2.prototype.onClick.call(this,B)};g.G(Dw,d2); Dw.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});(B=z.label)&&B.content&&!g.Fy(B.content)?(this.adBadgeText.init(ca("ad-simple-attributed-string"),new xp(B)),(z=z.adPodIndex)&&z.content&&!g.Fy(z.content)&&(this.T=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),this.T.Vu(this.element),g.m(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(ca("ad-simple-attributed-string"),new xp(z))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.kV(Error("No label is returned in AdBadgeViewModel."))}; Dw.prototype.show=function(){this.adBadgeText.show();var B;(B=this.T)==null||B.show();d2.prototype.show.call(this)}; Dw.prototype.hide=function(){this.adBadgeText.hide();var B;(B=this.T)==null||B.hide();d2.prototype.hide.call(this)};g.G(kp,d2);kp.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});(B=z.adPodIndex)&&B.content&&!g.Fy(B.content)&&(this.T=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),this.T.Vu(this.element),g.m(this,this.T),this.T.init(ca("ad-simple-attributed-string"),new xp(B)),z.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()}; kp.prototype.show=function(){var B;(B=this.T)==null||B.show();d2.prototype.show.call(this)}; kp.prototype.hide=function(){var B;(B=this.T)==null||B.hide();d2.prototype.hide.call(this)};g.G(K0,d2); K0.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(z!=null&&z.text){var T;if(((T=z.text)==null?0:T.content)&&!g.Fy(z.text.content)){this.T=new g.Gt({B:"div",G:"ytp-ad-disclosure-banner__text",Yd:z.text.content});g.m(this,this.T);this.T.Vu(this.element);var R,h;B=((R=z.interaction)==null?void 0:(h=R.accessibility)==null?void 0:h.label)||z.text.content;this.element.setAttribute("aria-label",B);var W;if((W=z.interaction)==null?0:W.onTap)this.U=new g.Gt({B:"div",G:"ytp-ad-disclosure-banner__chevron",S:[g.Qy()]}), g.m(this,this.U),this.U.Vu(this.element);this.show()}}else g.kV(Error("No banner text found in AdDisclosureBanner."))}; K0.prototype.clear=function(){this.hide()};mF.prototype.getLength=function(){return this.T-this.U};g.G(u1,g.Gt);u1.prototype.l$=function(){var B=this.U.getProgressState(),z=B.seekableEnd;this.api.getPresentingPlayerType()===2&&(z=this.Y?this.Y/1E3:B.seekableEnd);B=n0(new mF(B.seekableStart,z),B.current,0);this.progressBar.style.width=B*100+"%"}; u1.prototype.onStateChange=function(){g.vo(this.api.K())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.U.subscribe("h",this.l$,this),this.l$()):this.T!==-1&&(this.hide(),this.U.EN(this.T),this.T=-1))};g.G(Hp,d2); Hp.prototype.init=function(B,z,T,R){d2.prototype.init.call(this,B,z,T);if(z.skipOrPreviewRenderer){if(B=g.u(z.skipOrPreviewRenderer,wf))T=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U,this.N),T.Vu(this.cD),T.init(ca("skip-button"),B,this.macros),g.m(this,T);if(B=g.u(z.skipOrPreviewRenderer,wf))var h=B.skipOffsetMilliseconds}z.brandInteractionRenderer&&(B=z.brandInteractionRenderer.brandInteractionRenderer,T=new i1(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ), T.Vu(this.XE),T.init(ca("instream-user-sentiment"),B,this.macros),g.m(this,T));if(B=g.u(z,Spq))if(B=g.u(B,Spq))T=new qk(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U,!!z.showWithoutLinkedMediaLayout),g.m(this,T),T.Vu(this.X),T.init(ca("flyout-cta"),B,this.macros);R=R&&R.videoAdDurationSeconds;z.adBadgeRenderer&&(T=z.adBadgeRenderer,B=g.u(T,OK),B!=null?(T=new Dw(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!1),g.m(this,T),T.Vu(this.T),T.init(ca("ad-badge"), B,this.macros),this.Y=T.element):(B=T.simpleAdBadgeRenderer,B==null&&(B={text:{text:"Ad",isTemplated:!1}}),T=new VK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0),g.m(this,T),T.Vu(this.T),T.init(ca("simple-ad-badge"),B,this.macros)));z.adPodIndex&&(B=g.u(z.adPodIndex,whc),B!=null&&(T=new kp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,T),T.Vu(this.T),T.init(ca("ad-pod-index"),B)));z.adDurationRemaining&&!z.showWithoutLinkedMediaLayout&&(B=z.adDurationRemaining.adDurationRemainingRenderer, B==null&&(B={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),R=new $p(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U,R,!1),g.m(this,R),R.Vu(this.T),R.init(ca("ad-duration-remaining"),B,this.macros));z.adInfoRenderer&&(R=g.u(z.adInfoRenderer,kL))&&(B=new zv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.element,void 0,!1),g.m(this,B),this.Y!==null?this.T.insertBefore(B.element,this.Y.nextSibling):B.Vu(this.T), B.init(ca("ad-info-hover-text-button"),R,this.macros));z.visitAdvertiserRenderer&&(B=g.u(z.visitAdvertiserRenderer,g.mE))&&(T=ckz(this)&&this.W?this.W:this.T)&&(R=new Mk(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,R),R.Vu(T),R.init(ca("visit-advertiser"),B,this.macros),No(R.element),B=XM(R.element),ji(R.element,B+" This link opens in new tab"));!(R=this.api.K())||g.Po(R)||g.yW(R)||R.controlsType!="3"&&!R.disableOrganicUi||(h=new u1(this.api,this.U,h,!1),h.Vu(this.lO), g.m(this,h));z.adDisclosureBannerRenderer&&(z=g.u(z.adDisclosureBannerRenderer,ldU))&&(h=new K0(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),h.Vu(this.UE),h.init(ca("ad-disclosure-banner"),z),g.m(this,h));this.api.K().D("enable_updated_html5_player_focus_style")&&g.ww(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; Hp.prototype.clear=function(){this.hide()};Nk.prototype.set=function(B,z,T){T=T!==void 0?Date.now()+T:void 0;this.T.set(B,z,T)}; Nk.prototype.get=function(B){return this.T.get(B)}; Nk.prototype.remove=function(B){this.T.remove(B)};var Czb=null;var eC=null,s0=null,E0=null,Gmz=null;g.Zz("yt.www.ads.eventcache.getLastCompanionData",function(){return eC}); g.Zz("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Zz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return s0}); g.Zz("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return E0}); g.Zz("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Gmz});var AkY=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);SC.prototype.handleResponse=function(B,z){if(!z)throw Error("request needs to be passed into ConsistencyService");var T,R;z=((T=z.IT.context)==null?void 0:(R=T.request)==null?void 0:R.consistencyTokenJars)||[];var h;(B=(h=B.responseContext)==null?void 0:h.consistencyTokenJar)&&this.replace(z,B)}; SC.prototype.replace=function(B,z){B=g.d(B);for(var T=B.next();!T.done;T=B.next())delete this.T[T.value.encryptedTokenJarContents];UXb(this,z)};var A2F=window.location.hostname.split(".").slice(-2).join("."),gM;z$.getInstance=function(){gM=g.sH("yt.clientLocationService.instance");gM||(gM=new z$,g.Zz("yt.clientLocationService.instance",gM));return gM}; g.I=z$.prototype; g.I.setLocationOnInnerTubeContext=function(B){B.client||(B.client={});if(this.T)B.client.locationInfo||(B.client.locationInfo={}),B.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),B.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),B.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),B.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Y||this.locationPlayabilityToken)B.client.locationPlayabilityToken=this.Y|| this.locationPlayabilityToken}; g.I.handleResponse=function(B){var z;B=(z=B.responseContext)==null?void 0:z.locationPlayabilityToken;B!==void 0&&(this.locationPlayabilityToken=B,this.T=void 0,g.ek("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=BS(this))&&this.localStorage.set("yt-location-playability-token",B,15552E3):g.KL("YT_CL",JSON.stringify({loctok:B}),15552E3,A2F,!0))}; g.I.clearLocationPlayabilityToken=function(B){B==="TVHTML5"?(this.localStorage=BS(this))&&this.localStorage.remove("yt-location-playability-token"):g.nL("YT_CL");this.Y=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)}; g.I.getCurrentPositionFromGeolocation=function(){var B=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var z=!1,T=1E4;g.ek("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,T=15E3);return new Promise(function(R,h){navigator.geolocation.getCurrentPosition(function(W){B.T=W;R(W)},function(W){h(W)},{enableHighAccuracy:z, maximumAge:0,timeout:T})})}; g.I.createUnpluggedLocationInfo=function(B){var z={};B=B.coords;if(B==null?0:B.latitude)z.latitudeE7=Math.floor(B.latitude*1E7);if(B==null?0:B.longitude)z.longitudeE7=Math.floor(B.longitude*1E7);if(B==null?0:B.accuracy)z.locationRadiusMeters=Math.round(B.accuracy);return z}; g.I.createLocationInfo=function(B){var z={};B=B.coords;if(B==null?0:B.latitude)z.latitudeE7=Math.floor(B.latitude*1E7);if(B==null?0:B.longitude)z.longitudeE7=Math.floor(B.longitude*1E7);return z};g.I=gkY.prototype;g.I.contains=function(B){return Object.prototype.hasOwnProperty.call(this.T,B)}; g.I.get=function(B){if(this.contains(B))return this.T[B]}; g.I.set=function(B,z){this.T[B]=z}; g.I.iZ=function(){return Object.keys(this.T)}; g.I.remove=function(B){delete this.T[B]};LM.prototype.getModuleId=function(B){return B.serviceId.getModuleId()}; LM.prototype.get=function(B){a:{var z=this.mappings.get(B.toString());switch(z.type){case "mapping":B=z.value;break a;case "factory":z=z.value();this.mappings.set(B.toString(),{type:"mapping",value:z});B=z;break a;default:B=sB(z)}}return B}; LM.prototype.registerService=function(B,z){this.mappings.set(B.toString(),{type:"mapping",value:z});return B}; new LM;var JE={},Jkz=(JE.WEB_UNPLUGGED="^unplugged/",JE.WEB_UNPLUGGED_ONBOARDING="^unplugged/",JE.WEB_UNPLUGGED_OPS="^unplugged/",JE.WEB_UNPLUGGED_PUBLIC="^unplugged/",JE.WEB_CREATOR="^creator/",JE.WEB_KIDS="^kids/",JE.WEB_EXPERIMENTS="^experiments/",JE.WEB_MUSIC="^music/",JE.WEB_REMIX="^music/",JE.WEB_MUSIC_EMBEDDED_PLAYER="^music/",JE.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",JE);oW.prototype.V=function(B,z,T){z=z===void 0?{}:z;T=T===void 0?Lz:T;var R={context:g.cS(B.clickTrackingParams,!1,this.W)};var h=this.U(B);if(h){this.T(R,h,z);var W;z=g.rn(this.Y());(h=(W=g.u(B.commandMetadata,g.Gw))==null?void 0:W.apiUrl)&&(z=h);W=IvK(uA(z));B=Object.assign({},{command:B},void 0);R={input:W,Nm:HP(W),IT:R,config:B};R.config.U1?R.config.U1.identity=T:R.config.U1={identity:T};return R}T=new g.Z_("Error: Failed to create Request from Command.",B);g.kV(T)}; g.wX.Object.defineProperties(oW.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.G(F_,oW);g.G(IW,F_);IW.prototype.V=function(){return{input:"/getDatasyncIdsEndpoint",Nm:HP("/getDatasyncIdsEndpoint","GET"),IT:{}}}; IW.prototype.Y=function(){return[]}; IW.prototype.U=function(){}; IW.prototype.T=function(){};var aVh={},wFb=(aVh.GET_DATASYNC_IDS=CM(IW),aVh);var pT={},Uu5=(pT["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",pT["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",pT["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",pT["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",pT["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",pT["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",pT["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", pT["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",pT["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",pT["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",pT["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",pT["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",pT["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",pT["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",pT["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", pT["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",pT["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",pT["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",pT["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",pT["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",pT["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",pT["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", pT["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",pT.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",pT["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",pT["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",pT["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",pT["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",pT["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",pT["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", pT["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",pT["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",pT["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",pT["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",pT["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",pT["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",pT["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",pT["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",pT["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",pT["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",pT.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",pT["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",pT["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",pT["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",pT["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",pT["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",pT["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",pT["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",pT["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",pT["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",pT["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",pT["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pT["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pT["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",pT["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",pT["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",pT["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",pT["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",pT["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",pT["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",pT["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",pT["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", pT["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",pT["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",pT["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",pT["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",pT["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",pT["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",pT["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",pT["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",pT["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", pT["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",pT["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",pT["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",pT["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",pT["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",pT["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",pT["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",pT["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", pT),$D={},kmz=($D.auto_search="LATENCY_ACTION_AUTO_SEARCH",$D.ad_to_ad="LATENCY_ACTION_AD_TO_AD",$D.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",$D.app_startup="LATENCY_ACTION_APP_STARTUP",$D.browse="LATENCY_ACTION_BROWSE",$D.cast_splash="LATENCY_ACTION_CAST_SPLASH",$D.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",$D.channels="LATENCY_ACTION_CHANNELS",$D.chips="LATENCY_ACTION_CHIPS",$D.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",$D.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", $D.editor="LATENCY_ACTION_EDITOR",$D.embed="LATENCY_ACTION_EMBED",$D.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",$D.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",$D.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",$D.explore="LATENCY_ACTION_EXPLORE",$D.favorites="LATENCY_ACTION_FAVORITES",$D.home="LATENCY_ACTION_HOME",$D.inboarding="LATENCY_ACTION_INBOARDING",$D.landing="LATENCY_ACTION_LANDING",$D.library="LATENCY_ACTION_LIBRARY",$D.live= "LATENCY_ACTION_LIVE",$D.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",$D.management="LATENCY_ACTION_MANAGEMENT",$D.mini_app="LATENCY_ACTION_MINI_APP_PLAY",$D.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",$D.onboarding="LATENCY_ACTION_ONBOARDING",$D.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",$D.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",$D.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",$D.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", $D.prebuffer="LATENCY_ACTION_PREBUFFER",$D.prefetch="LATENCY_ACTION_PREFETCH",$D.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",$D.profile_switcher="LATENCY_ACTION_LOGIN",$D.projects="LATENCY_ACTION_PROJECTS",$D.reel_watch="LATENCY_ACTION_REEL_WATCH",$D.results="LATENCY_ACTION_RESULTS",$D.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",$D.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",$D.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",$D.review="LATENCY_ACTION_REVIEW",$D.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",$D.search_ui="LATENCY_ACTION_SEARCH_UI",$D.search_suggest="LATENCY_ACTION_SUGGEST",$D.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",$D.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",$D.seek="LATENCY_ACTION_PLAYER_SEEK",$D.settings="LATENCY_ACTION_SETTINGS",$D.store="LATENCY_ACTION_STORE",$D.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",$D.tenx="LATENCY_ACTION_TENX",$D.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",$D.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", $D.watch="LATENCY_ACTION_WATCH",$D.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",$D["watch,watch7"]="LATENCY_ACTION_WATCH",$D["watch,watch7_html5"]="LATENCY_ACTION_WATCH",$D["watch,watch7ad"]="LATENCY_ACTION_WATCH",$D["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",$D.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",$D.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",$D.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",$D.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",$D.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",$D.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",$D.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",$D.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",$D);Object.assign(kmz,Uu5);g.G(y0,Cz);var sIY=new ri("aft-recorded",y0);var MhR=g.XK.ytLoggingGelSequenceIdObj_||{};g.Zz("ytLoggingGelSequenceIdObj_",MhR);var pM=g.XK.ytLoggingLatencyUsageStats_||{};g.Zz("ytLoggingLatencyUsageStats_",pM);gn.prototype.tick=function(B,z,T,R){$X(this,"tick_"+B+"_"+z)||g.ip("latencyActionTicked",{tickName:B,clientActionNonce:z},{timestamp:T,cttAuthInfo:R})}; gn.prototype.info=function(B,z,T){var R=Object.keys(B).join("");$X(this,"info_"+R+"_"+z)||(B=Object.assign({},B),B.clientActionNonce=z,g.ip("latencyActionInfo",B,{cttAuthInfo:T}))}; gn.prototype.jspbInfo=function(B,z,T){for(var R="",h=0;h=h.length?(z.append(h),B-=h.length):B?(z.append(new Uint8Array(h.buffer,h.byteOffset,B)),T.append(new Uint8Array(h.buffer,h.byteOffset+B,h.length-B)),B=0):T.append(h);return{Km:z,Y3:T}}; g.I.isFocused=function(B){return B>=this.jl&&B=64&&(this.X.set(B.subarray(0,64-this.U),this.U),z=64-this.U,this.U=0,E2l(this,this.X,0));for(;z+64<=T;z+=64)E2l(this,B,z);z=this.start&&(B=2&&T.ssdaiAdsConfig&&Fo("Unexpected ad placement renderers length",B.slot,null,{length:R.length});var h;((h=T.adSlots)==null?0:h.some(function(W){var b,l;return((b=g.u(W,HI))==null?void 0:(l=b.adSlotMetadata)==null?void 0:l.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||R.some(function(W){var b,l,w,q; return!!((b=W.renderer)==null?0:(l=b.linearAdSequenceRenderer)==null?0:(w=l.linearAds)==null?0:w.length)||!((q=W.renderer)==null||!q.instreamVideoAdRenderer)})||AZb(B)})}; wZ.prototype.Kz=function(){blb(this.T)};qn.prototype.cO=function(){var B=this;WcX(this.U,function(){var z=E(B.slot.clientMetadata,"metadata_type_ad_break_request_data");return z.cueProcessedMs?B.T.get().fetch({Xa:z.getAdBreakUrl,Xr:new g.Wj(z.L0,z.ID),cueProcessedMs:z.cueProcessedMs}):B.T.get().fetch({Xa:z.getAdBreakUrl,Xr:new g.Wj(z.L0,z.ID)})})}; qn.prototype.Kz=function(){blb(this.U)};iu.prototype.cO=function(){var B=this.slot.clientMetadata,z,T=(z=this.slot.fulfilledLayout)!=null?z:E(B,"metadata_type_fulfilled_layout");m3H(this.callback,this.slot,T)}; iu.prototype.Kz=function(){AS(this.callback,this.slot,new e("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")};L3.prototype.build=function(B,z){return z.fulfilledLayout||cj(z,{U2:["metadata_type_fulfilled_layout"]})?new iu(B,z):this.Y(B,z)};g.G(C3,L3); C3.prototype.Y=function(B,z){if(cj(z,{U2:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new wZ(B,z,this.T,this.U,this.d3,this.Qu,this.PD,this.DJ,this.Ui);if(cj(z,{U2:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new qn(B,z,this.T,this.U,this.d3,this.Qu);throw new e("Unsupported slot with type: "+z.slotType+" and client metadata: "+ln(z.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.G(rZ,L3);rZ.prototype.Y=function(B,z){throw new e("Unsupported slot with type: "+z.slotType+" and client metadata: "+ln(z.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.I=aYd.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){}; g.I.release=function(){}; g.I.startRendering=function(B){if(B.layoutId!==this.layout.layoutId)this.callback.TM(this.slot,B,new bn("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 z=E(B.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.ek(this.slot,B),m9d(this.Y, this.slot,z)):Fo("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,B)}}; g.I.wz=function(B,z){B.layoutId!==this.layout.layoutId?this.callback.TM(this.slot,B,new bn("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.b$(this.slot,B,z),M2B(this),V2d(this))};g.G(dZ,g.Cl);g.I=dZ.prototype;g.I.mM=function(){return this.U.slot}; g.I.HD=function(){return this.U.layout}; g.I.init=function(){this.Y.get().addListener(this)}; g.I.release=function(){this.Y.get().removeListener(this);this.dispose()}; g.I.Mc=function(){}; g.I.ZF=function(){}; g.I.HN=function(){}; g.I.Hb=function(){}; g.I.startRendering=function(B){var z=this;G8(this.U,B,function(){return void z.pM()})}; g.I.pM=function(){this.Y.get().pM(this.T)}; g.I.wz=function(B,z){var T=this;G8(this.U,B,function(){var R=T.Y.get();ual(R,T.T,3);T.T=[];T.callback.b$(T.slot,B,z)})}; g.I.gF=function(){this.Y.xd()||this.Y.get().removeListener(this);g.Cl.prototype.gF.call(this)}; g.wX.Object.defineProperties(dZ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});gZ.prototype.Ak=function(B,z){z=z===void 0?!1:z;var T=(this.Y.get(B)||[]).concat();if(z=z&&JZX(B)){var R=this.Y.get(z);R&&T.push.apply(T,g.Q(R))}$Q(this,B,T);this.T.add(B);z&&this.T.add(z)}; gZ.prototype.Zm=function(B,z){z=z===void 0?!1:z;if(!this.T.has(B)){var T=z&&JZX(B);T&&(z=!this.T.has(T));this.Ak(B,z)}};g.G(PUK,Ll);g.G(kQ,dZ);g.I=kQ.prototype;g.I.jZ=function(B,z){Mn("ads-engagement-panel-layout",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),g.u(this.HD().renderingContent,lI),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(z,T,R,h,W){return new PUK(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};g.G(vZY,Ll);g.G(K3,dZ);g.I=K3.prototype;g.I.jZ=function(B,z){Mn("banner-image",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),g.u(this.HD().renderingContent,bI),this.callback,"metadata_type_banner_image_layout_view_model",function(z,T,R,h,W){return new vZY(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};g.G(mH,Ll);g.G(n3,dZ);g.I=n3.prototype;g.I.jZ=function(B,z){Mn("action-companion",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),g.u(this.HD().renderingContent,Ri),this.callback,"metadata_type_action_companion_ad_renderer",function(z,T,R,h,W){return new mH(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){z.layoutId===this.layout.layoutId?this.SI.Zm("impression"):this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};g.G(KcK,Ll);g.G(uu,dZ);g.I=uu.prototype;g.I.jZ=function(B,z){Mn("image-companion",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),g.u(this.HD().renderingContent,hM),this.callback,"metadata_type_image_companion_ad_renderer",function(z,T,R,h,W){return new KcK(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){z.layoutId===this.layout.layoutId?this.SI.Zm("impression"):this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};g.G(nZK,Ll);g.G(Hj,dZ);g.I=Hj.prototype;g.I.jZ=function(B,z){Mn("shopping-companion",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(z,T,R,h,W){return new nZK(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){z.layoutId===this.layout.layoutId?this.SI.Zm("impression"):this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};g.G(Og,dZ);g.I=Og.prototype;g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(z,T,R,h,W){return new mH(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(){}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)}; g.I.jZ=function(){};g.I=t2K.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){this.DJ.get().addListener(this);this.DJ.get().v$.push(this);var B=E(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=E(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Vk(this.layout.Ta)&&zy(this.QI.get(),this.layout.layoutId,{Rm:z,wK:B,listener:this})}; g.I.release=function(){this.DJ.get().removeListener(this);vzd(this.DJ.get(),this);Vk(this.layout.Ta)&&Ty(this.QI.get(),this.layout.layoutId)}; g.I.startRendering=function(B){this.callback.ek(this.slot,B)}; g.I.wz=function(B,z){WLX(this.Qu.get())&&!this.T&&(this.SI.Zm("abandon"),this.T=!0);this.callback.b$(this.slot,B,z)}; g.I.MZ=function(B){switch(B.id){case "part2viewed":this.SI.Zm("start");this.SI.Zm("impression");break;case "videoplaytime25":this.SI.Zm("first_quartile");break;case "videoplaytime50":this.SI.Zm("midpoint");break;case "videoplaytime75":this.SI.Zm("third_quartile");break;case "videoplaytime100":WLX(this.Qu.get())?this.T||(this.SI.Zm("complete"),this.T=!0):this.SI.Zm("complete");DD(this.SI)&&xQ(this.SI,Infinity,!0);bUl(this.Qu.get())&&f3(this.U,Infinity,!0);break;case "engagedview":DD(this.SI)||this.SI.Zm("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Fo("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.I.onVolumeChange=function(){}; g.I.vV=function(){}; g.I.PH=function(){}; g.I.pY=function(){}; g.I.onFullscreenToggled=function(){}; g.I.Jo=function(){}; g.I.Mn=function(){}; g.I.W0=function(B){bUl(this.Qu.get())&&f3(this.U,B*1E3,!1);DD(this.SI)&&xQ(this.SI,B*1E3,!1)}; g.I.sX=function(){}; g.I.JM=function(){this.SI.Zm("active_view_measurable")}; g.I.M7=function(){this.SI.Zm("active_view_viewable")}; g.I.Z5=function(){this.SI.Zm("active_view_fully_viewable_audible_half_duration")}; g.I.m_=function(){this.SI.Zm("audio_measurable")}; g.I.HS=function(){this.SI.Zm("audio_audible")};g.G(Nn,dZ);g.I=Nn.prototype;g.I.init=function(){dZ.prototype.init.call(this);var B=E(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z={adsClientData:this.layout.qS};this.T.push(new QK(B,this.layout.layoutId,E(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,!0))}; g.I.ph=function(){this.W||this.DJ.get().resumeVideo(1)}; g.I.startRendering=function(B){dZ.prototype.startRendering.call(this,B);wv(this.DJ.get(),"ad-showing");this.callback.ek(this.slot,B);this.V.jP=this}; g.I.wz=function(B,z){dZ.prototype.wz.call(this,B,z);qO(this.DJ.get(),"ad-showing");XH(this.V,this)}; g.I.jZ=function(B){switch(B){case "ad-info-icon-button":(this.W=this.DJ.get().nU(1))||this.DJ.get().pauseVideo();break;case "visit-advertiser":this.DJ.get().pauseVideo()}}; g.I.gF=function(){dZ.prototype.gF.call(this)};g.G(tg,Ll);g.G(j1,dZ);g.I=j1.prototype;g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,T,R,h,W){return new tg(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(){}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)}; g.I.jZ=function(){};g.G(Xs,Ll);g.G(ZD,dZ);ZD.prototype.init=function(){dZ.prototype.init.call(this);this.T.push(new Xs(g.u(this.layout.renderingContent,pC),this.layout.layoutId,{adsClientData:this.layout.qS}))}; ZD.prototype.jZ=function(){xm(this.W.get(),this.V)&&Ug(this.PD.get(),3)}; ZD.prototype.startRendering=function(B){dZ.prototype.startRendering.call(this,B);this.callback.ek(this.slot,B)}; ZD.prototype.gF=function(){dZ.prototype.gF.call(this)};g.G(e1,Ll);g.G(sg,dZ);sg.prototype.init=function(){dZ.prototype.init.call(this);var B=g.u(this.layout.renderingContent,q_)||E(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),z=Ag(this.SI);this.T.push(new e1(B,z,this.layout.layoutId,{adsClientData:this.layout.qS},!0,!0))}; sg.prototype.startRendering=function(B){dZ.prototype.startRendering.call(this,B);this.callback.ek(this.slot,B)}; sg.prototype.jZ=function(B,z){if(z===this.layout.layoutId)switch(B){case "skip-button":var T;(B=(T=E(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&B.XI(this.mM(),this.layout)}}; sg.prototype.gF=function(){dZ.prototype.gF.call(this)};S1.prototype.build=function(B,z,T,R){if(Eg(R,{U2:["metadata_type_ad_break_response_data"],e6:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new aYd(B,T,R,this.U,this.Y,this.T);throw new bn("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ln(R.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.G(ZlK,Ll);g.G(BG,dZ);g.I=BG.prototype;g.I.jZ=function(B,z){Mn("ads-engagement-panel",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),g.u(this.HD().renderingContent,WI),this.callback,"metadata_type_ads_engagement_panel_renderer",function(z,T,R,h,W){return new ZlK(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){z.layoutId===this.layout.layoutId?this.SI.Zm("impression"):this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};g.G(z1,dZ);g.I=z1.prototype;g.I.jZ=function(B,z){Mn("top-banner-image-text-icon-buttoned",B,this.X.get().Qe,this.PD.get(),this.W,this.V,this.mM(),this.HD(),z)}; g.I.startRendering=function(B){ax(this.SI,this.mM(),this.HD(),g.u(this.HD().renderingContent,YL),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,T,R,h,W){return new tg(z,T,R,h,W)},this.T); dZ.prototype.startRendering.call(this,B)}; g.I.ek=function(B,z){this.V===z.layoutId&&(this.W===null?this.W=this.PD.get().X_():Fo("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.gF=function(){GO(this.E0(),this);dZ.prototype.gF.call(this)};EZz.prototype.build=function(B,z,T,R){if(Eg(R,eVl())||g.u(R.renderingContent,WI)!==void 0)return new BG(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,ktl())||g.u(R.renderingContent,Ri)!==void 0)return new n3(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,mIP())||g.u(R.renderingContent,hM)!==void 0)return new uu(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,utr()))return new Hj(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,N2B()))return new Og(B,T,R,this.vB,this.PD,this.E0, this.QI,this.T);if(Eg(R,DIz())||g.u(R.renderingContent,bI)!==void 0)return new K3(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,sUB())||g.u(R.renderingContent,YL)!==void 0)return new z1(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,jUl()))return new j1(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);if(Eg(R,xIb())||g.u(R.renderingContent,lI)!==void 0)return new kQ(B,T,R,this.vB,this.PD,this.E0,this.QI,this.T);throw new bn("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ ln(R.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};S_b.prototype.build=function(B,z,T,R){if(Eg(R,{U2:["metadata_type_linked_player_bytes_layout_id"],e6:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new ZD(B,T,R,this.vB,this.PD,this.T);throw new bn("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ln(R.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.I=BKz.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){}; g.I.release=function(){}; g.I.startRendering=function(B){B.layoutId!==this.layout.layoutId?this.callback.TM(this.slot,B,new bn("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.ek(this.slot,B),this.SI.Zm("impression"),ZZ(this.KX,B,"normal"))}; g.I.wz=function(B,z){B.layoutId!==this.layout.layoutId?this.callback.TM(this.slot,B,new bn("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.b$(this.slot,B,z)};g.I=TKH.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){}; g.I.release=function(){}; g.I.startRendering=function(B){B.layoutId!==this.layout.layoutId?this.callback.TM(this.slot,B,new bn("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.ek(this.slot,B),this.SI.Zm("impression"),ZZ(this.KX,B,"normal"))}; g.I.wz=function(B,z){B.layoutId!==this.layout.layoutId?this.callback.TM(this.slot,B,new bn("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.b$(this.slot,B,z)};T1.prototype.build=function(B,z,T,R){if(!this.Qu.get().j.K().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Eg(R,zwY()))return new BKz(B,T,R,this.PD,this.KX)}else if(Eg(R,{U2:[],e6:["LAYOUT_TYPE_FORECASTING"]}))return new TKH(B,T,R,this.PD,this.KX);throw new bn("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ln(R.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.G(WFB,Ll);g.G(Ru,dZ);g.I=Ru.prototype;g.I.init=function(){dZ.prototype.init.call(this);var B=g.u(this.layout.renderingContent,wt)||E(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),z={adsClientData:this.layout.qS};this.T.push(new WFB(B,E(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,z))}; g.I.ph=function(){this.W||this.DJ.get().resumeVideo(2)}; g.I.startRendering=function(B){dZ.prototype.startRendering.call(this,B);this.callback.ek(this.slot,B);this.V.jP=this}; g.I.wz=function(B,z){dZ.prototype.wz.call(this,B,z);XH(this.V,this)}; g.I.jZ=function(B,z){if(!s$(this.Qu.get(),"stop_handling_click_for_non_rendering_overlay_layout")||z===this.layout.layoutId){if(xm(this.X.get(),this.L))switch(B){case "visit-advertiser-link":Ug(this.PD.get(),3)}switch(B){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.DJ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.DJ.get().nU(2))||this.DJ.get().pauseVideo();break; case "visit-advertiser-link":this.DJ.get().pauseVideo();b0d(this).Qo();break;case "skip-button":if(B=b0d(this),this.layout.renderingContent&&!RV(this.layout.clientMetadata,"metadata_type_dai")||!B.iQ){var T;(B=(T=E(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&B.XI(this.mM(),this.layout)}else Fo("Requesting to skip by LegacyPlayerBytes when components enabled"),B.fK(this.mM(),this.layout)}}}; g.I.gF=function(){dZ.prototype.gF.call(this)};g.G(hi,dZ);g.I=hi.prototype;g.I.init=function(){dZ.prototype.init.call(this);var B=g.u(this.layout.renderingContent,lF)||E(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z={adsClientData:this.layout.qS},T;(T=!!this.layout.renderingContent)||(T=!WG(this).iQ);this.T.push(new QK(B,this.layout.layoutId,E(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,T))}; g.I.ph=function(){this.W||this.DJ.get().resumeVideo(2)}; g.I.startRendering=function(B){dZ.prototype.startRendering.call(this,B);this.callback.ek(this.slot,B);this.V.jP=this}; g.I.wz=function(B,z){dZ.prototype.wz.call(this,B,z);XH(this.V,this)}; g.I.jZ=function(B,z){if(!this.Qu||!s$(this.Qu.get(),"stop_handling_click_for_non_rendering_overlay_layout")||z===this.layout.layoutId){if(xm(this.X.get(),this.L))switch(B){case "visit-advertiser":Ug(this.PD.get(),3)}switch(B){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.DJ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.DJ.get().nU(2))||this.DJ.get().pauseVideo();break; case "visit-advertiser":this.DJ.get().pauseVideo();WG(this).Qo();break;case "skip-button":if(B=WG(this),this.layout.renderingContent&&!RV(this.layout.clientMetadata,"metadata_type_dai")||!B.iQ){var T;(B=(T=E(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&B.XI(this.mM(),this.layout)}else Fo("Requesting to skip by LegacyPlayerBytes"),B.fK(this.mM(),this.layout)}}}; g.I.gF=function(){dZ.prototype.gF.call(this)};g.G(lwb,Ll);g.G(bF,dZ);g.I=bF.prototype;g.I.startRendering=function(B){var z=this;G8(this.U,B,function(){z.T.push(new lwb(E(z.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),B.layoutId,B.qS));z.pM();z.callback.ek(z.slot,B);g.X(Bm(z.DJ.get(),1),512)&&z.callback.TM(z.mM(),z.HD(),new bn("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.I.Mn=function(){}; g.I.Jo=function(B){if(B.state.isError()){var z;this.callback.TM(this.mM(),this.HD(),new bn("A player error happened during adNotify",{playerErrorCode:(z=B.state.pp)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.I.onFullscreenToggled=function(){}; g.I.PH=function(){}; g.I.pY=function(){}; g.I.vV=function(){}; g.I.onVolumeChange=function(){}; g.I.MZ=function(){}; g.I.sX=function(){}; g.I.jZ=function(){};g.G(q0P,Ll);g.G(Yb,dZ);Yb.prototype.init=function(){dZ.prototype.init.call(this);var B=g.u(this.layout.renderingContent,iF),z=Ag(this.SI);this.T.push(new q0P(B,z,this.layout.layoutId,{adsClientData:this.layout.qS}))}; Yb.prototype.startRendering=function(B){dZ.prototype.startRendering.call(this,B);this.callback.ek(this.slot,B)}; Yb.prototype.jZ=function(B,z){if(z===this.layout.layoutId)switch(B){case "skip-button":var T;(B=(T=E(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&B.XI(this.mM(),this.layout)}}; Yb.prototype.gF=function(){dZ.prototype.gF.call(this)};i0P.prototype.build=function(B,z,T,R){if(B=cG(B,T,R,this.vB,this.DJ,this.PD,this.U,this.T,this.Qu))return B;throw new bn("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ln(R.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.I=rt.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){this.DJ.get().addListener(this);this.DJ.get().v$.push(this);if(this.layout.renderingContent){var B=this.yu.get();B=de(B,1).S1/1E3}else B=E(this.layout.clientMetadata,"metadata_type_video_length_seconds");var z=g.u(this.layout.renderingContent,yi),T=z?Qk(z.pings):E(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");z=z?gZX(z.pings):E(this.layout.clientMetadata,"metadata_type_active_view_identifier");Vk(this.layout.Ta)&&zy(this.QI.get(),this.layout.layoutId,{Rm:T, wK:B,listener:this,Ez:z})}; g.I.release=function(){this.DJ.get().removeListener(this);vzd(this.DJ.get(),this);Vk(this.layout.Ta)&&Ty(this.QI.get(),this.layout.layoutId)}; g.I.startRendering=function(B){this.callback.ek(this.slot,B)}; g.I.wz=function(B,z){ou(this,"abandon");this.callback.b$(this.slot,B,z)}; g.I.MZ=function(B){switch(B.id){case "part2viewed":this.SI.Zm("start");this.SI.Zm("impression");break;case "videoplaytime25":this.SI.Zm("first_quartile");break;case "videoplaytime50":this.SI.Zm("midpoint");break;case "videoplaytime75":this.SI.Zm("third_quartile");break;case "videoplaytime100":ou(this,"complete");DD(this.SI)&&xQ(this.SI,Infinity,!0);break;case "engagedview":DD(this.SI)||this.SI.Zm("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Fo("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.I.onVolumeChange=function(){}; g.I.vV=function(){}; g.I.PH=function(){}; g.I.pY=function(){}; g.I.onFullscreenToggled=function(){}; g.I.Jo=function(B){this.T||(g.dK(B,4)&&!g.dK(B,2)?Pj(this.SI,"pause"):Gv(B,4)<0&&!(Gv(B,2)<0)&&Pj(this.SI,"resume"))}; g.I.Mn=function(){}; g.I.W0=function(B){DD(this.SI)&&xQ(this.SI,B*1E3,!1)}; g.I.sX=function(){ou(this,"swipe")}; g.I.JM=function(){this.SI.Zm("active_view_measurable")}; g.I.M7=function(){this.SI.Zm("active_view_viewable")}; g.I.Z5=function(){this.SI.Zm("active_view_fully_viewable_audible_half_duration")}; g.I.m_=function(){this.SI.Zm("audio_measurable")}; g.I.HS=function(){this.SI.Zm("audio_audible")};cCB.prototype.build=function(B,z,T,R){if(T.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.u(R.renderingContent,yi)!==void 0)return new rt(B,T,R,this.DJ,this.PD,this.Qu,this.QI,this.yu);z=["metadata_type_ad_placement_config"];for(var h=g.d(Jg()),W=h.next();!W.done;W=h.next())z.push(W.value);if(Eg(R,{U2:z,e6:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return T.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new rt(B,T,R,this.DJ,this.PD,this.Qu,this.QI,this.yu):new t2K(B,T,R,this.DJ,this.PD, this.F1,this.Qu,this.QI);throw new bn("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ln(R.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var dt={contentCpn:"",E3:new Map};awB.prototype.wF=function(B,z){var T={};z=Object.assign({},z,(T.cc=this.OJ.y_(),T));this.OJ.j.OE(B,z)};var fVh,kD; fVh={iXJ:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",qpK:"AUTHENTICATION_MALFORMED",yui:"AUTHENTICATION_MISSING",ruG:"BAD_REQUEST",K4i:"CAST_SESSION_DEVICE_MISMATCHED",pVm:"CAST_SESSION_VIDEO_MISMATCHED",Spu:"CAST_TOKEN_EXPIRED",sQm:"CAST_TOKEN_FAILED",C0O:"CAST_TOKEN_MALFORMED",ulK:"CGI_PARAMS_MALFORMED",eqJ:"CGI_PARAMS_MISSING",VnG:"DEVICE_FALLBACK",SXE:"GENERIC_WITH_LINK_AND_CPN",sqI:"ERROR_HDCP",ChJ:"LICENSE",eBf:"VIDEO_UNAVAILABLE",wvE:"FORMAT_UNAVAILABLE",djF:"GEO_FAILURE", lAf:"HTML5_AUDIO_RENDERER_ERROR",FXd:"GENERIC_WITHOUT_LINK",zZu:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",xju:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",PFE:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",c6D:"HTML5_SPS_UMP_STATUS_REJECTED",ZkZ:"INVALID_DRM_MESSAGE",F2D:"PURCHASE_NOT_FOUND",z5d:"PURCHASE_REFUNDED",L2m:"RENTAL_EXPIRED",JgE:"RETRYABLE_ERROR",e5K:"SERVER_ERROR",v3i:"SIGNATURE_EXPIRED",gBF:"STOPPED_BY_ANOTHER_PLAYBACK",QcZ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",WUD:"STREAMING_NOT_ALLOWED", btJ:"STREAM_LICENSE_NOT_FOUND",lwD:"TOO_MANY_REQUESTS",FUu:"TOO_MANY_REQUESTS_WITH_LINK",zOE:"TOO_MANY_STREAMS_PER_ENTITLEMENT",xVi:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",oBF:"VIDEO_FORBIDDEN",fwu:"VIDEO_NOT_FOUND",ZXE:"BROWSER_OR_EXTENSION_ERROR"};kD={}; g.uX=(kD.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.",kD.DEVICE_FALLBACK="Sorry, this video is not available on this device.",kD.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",kD.LICENSE="Sorry, there was an error licensing this video.",kD.VIDEO_UNAVAILABLE= "Video unavailable",kD.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",kD.GEO_FAILURE="This video isn't available in your country.",kD.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",kD.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",kD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",kD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", kD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",kD.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",kD.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",kD.PURCHASE_NOT_FOUND="This video requires payment.",kD.PURCHASE_REFUNDED="This video's purchase has been refunded.",kD.RENTAL_EXPIRED="This video's rental has expired.",kD.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",kD.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",kD.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",kD.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",kD.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",kD.SERVER_ERROR="There was an internal server error. Please try again later.",kD.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",kD.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",kD.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",kD.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",kD.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",kD.TOO_MANY_REQUESTS="Please log in to watch this video.", kD.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",kD.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",kD.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",kD.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",kD.VIDEO_FORBIDDEN="Access to this video is forbidden.",kD.VIDEO_NOT_FOUND="This video can not be found.",kD.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",kD);var OrW;var NOP=g.Va(),thh=NOP.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!thh||thh.length<2)OrW=void 0;else{var jAK=NOP.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);OrW=jAK&&jAK.length===6?Number(jAK[5].replace("_",".")):0}var t5=OrW,DN=t5>=0;g.G(g.kb,JQ);g.kb.prototype.Z=function(B,z,T,R,h){return JQ.prototype.Z.call(this,B,z,T,R,h)};var KT={},Ac=(KT.FAIRPLAY="fairplay",KT.PLAYREADY="playready",KT.WIDEVINE="widevine",KT.CLEARKEY=null,KT.FLASHACCESS=null,KT.UNKNOWN=null,KT.WIDEVINE_CLASSIC=null,KT);KW.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var mP={},VP=(mP.WIDTH={name:"width",video:!0,valid:640,jb:99999},mP.HEIGHT={name:"height",video:!0,valid:360,jb:99999},mP.FRAMERATE={name:"framerate",video:!0,valid:30,jb:9999},mP.BITRATE={name:"bitrate",video:!0,valid:3E5,jb:2E9},mP.EOTF={name:"eotf",video:!0,valid:"bt709",jb:"catavision"},mP.CHANNELS={name:"channels",video:!1,valid:2,jb:99},mP.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",jb:"invalidformat"},mP.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", jb:"nope"},mP.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",jb:"av99.0.05M.08"},mP.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",jb:"invalid"},mP);var XY5=["h","H"],ZrK=["9","("],eoF=["9h","(h"],sAF=["8","*"],EIp=["a","A"],SS5=["o","O"],BRg=["m","M"],z7c=["mac3","MAC3"],TRs=["meac3","MEAC3"],nT={},$5X=(nT.h=XY5,nT.H=XY5,nT["9"]=ZrK,nT["("]=ZrK,nT["9h"]=eoF,nT["(h"]=eoF,nT["8"]=sAF,nT["*"]=sAF,nT.a=EIp,nT.A=EIp,nT.o=SS5,nT.O=SS5,nT.m=BRg,nT.M=BRg,nT.mac3=z7c,nT.MAC3=z7c,nT.meac3=TRs,nT.MEAC3=TRs,nT),R7c=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Ffz=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var S={},Oz=(S["0"]="f",S["160"]="h",S["133"]="h",S["134"]="h",S["135"]="h",S["136"]="h",S["137"]="h",S["264"]="h",S["266"]="h",S["138"]="h",S["298"]="h",S["299"]="h",S["304"]="h",S["305"]="h",S["214"]="h",S["216"]="h",S["374"]="h",S["375"]="h",S["140"]="a",S["141"]="a",S["327"]="sa",S["258"]="m",S["380"]="mac3",S["328"]="meac3",S["161"]="H",S["142"]="H",S["143"]="H",S["144"]="H",S["222"]="H",S["223"]="H",S["145"]="H",S["224"]="H",S["225"]="H",S["146"]="H",S["226"]="H",S["227"]="H",S["147"]="H",S["384"]= "H",S["376"]="H",S["385"]="H",S["377"]="H",S["149"]="A",S["261"]="M",S["381"]="MAC3",S["329"]="MEAC3",S["598"]="9",S["278"]="9",S["242"]="9",S["243"]="9",S["244"]="9",S["775"]="9",S["776"]="9",S["777"]="9",S["778"]="9",S["779"]="9",S["780"]="9",S["781"]="9",S["782"]="9",S["783"]="9",S["247"]="9",S["248"]="9",S["353"]="9",S["355"]="9",S["356"]="9",S["271"]="9",S["577"]="9",S["313"]="9",S["579"]="9",S["272"]="9",S["302"]="9",S["303"]="9",S["407"]="9",S["408"]="9",S["308"]="9",S["315"]="9",S["330"]= "9h",S["331"]="9h",S["332"]="9h",S["333"]="9h",S["334"]="9h",S["335"]="9h",S["336"]="9h",S["337"]="9h",S["338"]="so",S["600"]="o",S["250"]="o",S["251"]="o",S["774"]="o",S["194"]="*",S["195"]="*",S["220"]="*",S["221"]="*",S["196"]="*",S["197"]="*",S["279"]="(",S["280"]="(",S["317"]="(",S["318"]="(",S["273"]="(",S["274"]="(",S["357"]="(",S["358"]="(",S["275"]="(",S["359"]="(",S["360"]="(",S["276"]="(",S["583"]="(",S["584"]="(",S["314"]="(",S["585"]="(",S["561"]="(",S["277"]="(",S["361"]="(h",S["362"]= "(h",S["363"]="(h",S["364"]="(h",S["365"]="(h",S["366"]="(h",S["591"]="(h",S["592"]="(h",S["367"]="(h",S["586"]="(h",S["587"]="(h",S["368"]="(h",S["588"]="(h",S["562"]="(h",S["409"]="(",S["410"]="(",S["411"]="(",S["412"]="(",S["557"]="(",S["558"]="(",S["394"]="1",S["395"]="1",S["396"]="1",S["397"]="1",S["398"]="1",S["399"]="1",S["720"]="1",S["721"]="1",S["400"]="1",S["401"]="1",S["571"]="1",S["402"]="1",S["694"]="1h",S["695"]="1h",S["696"]="1h",S["697"]="1h",S["698"]="1h",S["699"]="1h",S["700"]="1h", S["701"]="1h",S["702"]="1h",S["703"]="1h",S["386"]="3",S["387"]="w",S["406"]="6",S["787"]="1",S["788"]="1",S["548"]="1e",S["549"]="1e",S["550"]="1e",S["551"]="1e",S["809"]="1e",S["810"]="1e",S["552"]="1e",S["811"]="1e",S["812"]="1e",S["553"]="1e",S["813"]="1e",S["814"]="1e",S["554"]="1e",S["815"]="1e",S["816"]="1e",S["555"]="1e",S["817"]="1e",S["818"]="1e",S["572"]="1e",S["556"]="1e",S["645"]="(",S["646"]="(",S["647"]="(",S["648"]="(",S["649"]="(",S["650"]="(",S["651"]="(",S["652"]="(",S["653"]="(", S["654"]="(",S["655"]="(",S["656"]="(",S["657"]="(",S["658"]="(",S["659"]="(",S["660"]="(",S["661"]="(",S["662"]="(",S["663"]="(",S["664"]="(",S["665"]="(",S["666"]="(",S["667"]="(",S["668"]="(",S["669"]="(",S["670"]="(",S["671"]="(",S["672"]="(",S["673"]="(",S["674"]="(h",S["675"]="(h",S["676"]="(h",S["677"]="(h",S["678"]="(h",S["679"]="(h",S["680"]="(h",S["681"]="(h",S["682"]="(h",S["683"]="(h",S["684"]="(h",S["685"]="(h",S["686"]="(h",S["687"]="(h",S["688"]="A",S["689"]="A",S["690"]="A",S["691"]= "MEAC3",S["773"]="i",S["806"]="I",S["805"]="I",S["829"]="9",S["830"]="9",S["831"]="9",S["832"]="9",S["833"]="9",S["834"]="9",S["835"]="9",S["836"]="9",S["837"]="9",S["838"]="9",S["839"]="9",S["840"]="9",S["841"]="(",S["842"]="(",S["843"]="(",S["844"]="(",S["845"]="(",S["846"]="(",S["847"]="(",S["848"]="(",S["849"]="(",S["850"]="(",S["851"]="(",S["852"]="(",S["865"]="9",S["866"]="9",S["867"]="9",S["868"]="9",S["869"]="9",S["870"]="9",S["871"]="9",S["872"]="9",S["873"]="9",S["874"]="9",S["875"]="9", S["876"]="9",S["877"]="(",S["878"]="(",S["879"]="(",S["880"]="(",S["881"]="(",S["882"]="(",S["883"]="(",S["884"]="(",S["885"]="(",S["886"]="(",S["887"]="(",S["888"]="(",S);var uG={},cOH=(uG.STEREO_LAYOUT_UNKNOWN=0,uG.STEREO_LAYOUT_LEFT_RIGHT=1,uG.STEREO_LAYOUT_TOP_BOTTOM=2,uG);var HA,ia;HA={};g.nW=(HA.auto=0,HA.tiny=144,HA.light=144,HA.small=240,HA.medium=360,HA.large=480,HA.hd720=720,HA.hd1080=1080,HA.hd1440=1440,HA.hd2160=2160,HA.hd2880=2880,HA.highres=4320,HA);ia={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var HG="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");uF.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};N_.prototype.Of=function(){return this.containerType===2}; N_.prototype.isEncrypted=function(){return!!this.Ft}; N_.prototype.lf=function(){return!!this.audio}; N_.prototype.Mr=function(){return!!this.video}; var XD=!1;g.G(Hn,g.Cl);g.I=Hn.prototype;g.I.appendBuffer=function(B,z,T){if(this.TY.GA()!==this.appendWindowStart+this.start||this.TY.Eq()!==this.appendWindowEnd+this.start||this.TY.p4()!==this.timestampOffset+this.start)this.TY.supports(1),this.TY.Qt(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.TY.mW(this.timestampOffset+this.start);this.TY.appendBuffer(B,z,T)}; g.I.abort=function(){this.TY.abort()}; g.I.remove=function(B,z){this.TY.remove(B+this.start,z+this.start)}; g.I.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.I.clear=function(){this.TY.clear()}; g.I.Qt=function(B,z){this.appendWindowStart=B;this.appendWindowEnd=z}; g.I.yM=function(){return this.timestampOffset+this.start}; g.I.GA=function(){return this.appendWindowStart}; g.I.Eq=function(){return this.appendWindowEnd}; g.I.mW=function(B){this.timestampOffset=B}; g.I.p4=function(){return this.timestampOffset}; g.I.a7=function(B){B=this.TY.a7(B===void 0?!1:B);return ur(B,this.start,this.end)}; g.I.H7=function(){return this.TY.H7()}; g.I.Ik=function(){return this.TY.Ik()}; g.I.u9=function(){return this.TY.u9()}; g.I.gS=function(){return this.TY.gS()}; g.I.jt=function(){this.TY.jt()}; g.I.Uu=function(B){return this.TY.Uu(B)}; g.I.L_=function(){return this.TY.L_()}; g.I.gy=function(){return this.TY.gy()}; g.I.gU=function(B,z,T){this.TY.gU(B,z,T)}; g.I.QS=function(B,z,T){this.TY.QS(B,z,T)}; g.I.Aa=function(B,z){return this.TY.Aa(B,z)}; g.I.supports=function(B){return this.TY.supports(B)}; g.I.Wb=function(){return this.TY.Wb()}; g.I.isView=function(){return!0}; g.I.W6=function(){return this.TY.W6()?this.isActive:!1}; g.I.isLocked=function(){return this.hp&&!this.isActive}; g.I.NS=function(B){B=this.TY.NS(B);B.vw=this.start+"-"+this.end;return B}; g.I.Qa=function(){return this.TY.Qa()}; g.I.SS=function(){return this.TY.SS()}; g.I.FM=function(){return this.TY.FM()}; g.I.gF=function(){this.TY.VL(this.dc);g.Cl.prototype.gF.call(this)};var I7=!1;g.G(OI,g.Cl);g.I=OI.prototype;g.I.appendBuffer=function(B,z,T){this.oo=!1;T&&(this.qz=T);if(B.length){var R;((R=this.yI)==null?0:R.appendBuffer)?this.yI.appendBuffer(B):this.yI?this.yI.append(B):this.Lp&&this.Lp.webkitSourceAppend(this.id,B)}z&&(z.isEncrypted()&&(this.y3=this.qz),z.type===3&&(this.hj=z),this.Ph.push(z.Wc()),this.Ph.length>4&&this.Ph.shift());this.HM&&(this.HM.length>=2||B.length>1048576?delete this.HM:this.HM.push(B))}; g.I.abort=function(){try{this.yI?this.yI.abort():this.Lp&&this.Lp.webkitSourceAbort(this.id)}catch(z){if(c6b){var B=new g.Z_("Error while abort the source buffer: "+z.name+", "+z.message);g.kV(B)}}this.qz=this.hj=null}; g.I.remove=function(B,z,T){this.oo=!1;var R;if((R=this.yI)==null?0:R.remove)T&&T({b:YS(this.a7()),s:B,e:z}),this.yI.remove(B,z)}; g.I.removeAll=function(){this.remove(this.GA(),this.Eq())}; g.I.clear=function(){this.u9()||(this.abort(),this.removeAll(),this.y3=this.qz=this.hj=null,this.appendWindowStart=this.timestampOffset=0,this.ZQ=br([],[]),this.oo=!1,this.HM=f7?[]:void 0,this.Vk=!0)}; g.I.GA=function(){if(I7&&this.Mr)return this.appendWindowStart;var B;return((B=this.yI)==null?void 0:B.appendWindowStart)||0}; g.I.Eq=function(){var B;return((B=this.yI)==null?void 0:B.appendWindowEnd)||0}; g.I.Qt=function(B,z){this.yI&&(I7&&this.Mr?(this.appendWindowStart=B,this.yI.appendWindowEnd=z):B>this.GA()?(this.yI.appendWindowEnd=z,this.yI.appendWindowStart=B):(this.yI.appendWindowStart=B,this.yI.appendWindowEnd=z))}; g.I.yM=function(){return this.timestampOffset}; g.I.mW=function(B){I7?this.timestampOffset=B:this.supports(1)&&(this.yI.timestampOffset=B)}; g.I.p4=function(){return I7?this.timestampOffset:this.supports(1)?this.yI.timestampOffset:0}; g.I.a7=function(B){if(B===void 0?0:B)return this.oo||this.H7()||(this.ZQ=this.a7(!1),this.oo=!0),this.ZQ;try{return this.yI?this.yI.buffered:this.Lp?this.Lp.webkitSourceBuffered(this.id):br([0],[Infinity])}catch(z){return br([],[])}}; g.I.H7=function(){var B;return((B=this.yI)==null?void 0:B.updating)||!1}; g.I.u9=function(){return this.Vk}; g.I.gS=function(){return!this.Vk&&this.H7()}; g.I.jt=function(){this.Vk=!1}; g.I.Uu=function(B){var z=B==null?void 0:B.Ai;B=B==null?void 0:B.containerType;return!z&&!B||z===this.Ai&&B===this.containerType}; g.I.L_=function(){return this.qz}; g.I.gy=function(){return this.y3}; g.I.Aa=function(B,z){return this.containerType!==B||this.Ai!==z}; g.I.gU=function(B,z,T){if(this.containerType!==B||T&&this.Aa(B,T))this.supports(4),NM()&&this.yI.changeType(z),T&&(this.Ai=T);this.containerType=B}; g.I.QS=function(B,z,T){this.containerType&&this.Aa(B,z)&&NM()&&this.yI.changeType(T);this.containerType=B;this.Ai=z}; g.I.Wb=function(){return this.hj}; g.I.isView=function(){return!1}; g.I.supports=function(B){switch(B){case 1:var z;return((z=this.yI)==null?void 0:z.timestampOffset)!==void 0;case 0:var T;return!((T=this.yI)==null||!T.appendBuffer);case 2:var R;return!((R=this.yI)==null||!R.remove);case 3:var h,W;return!!(((h=this.yI)==null?0:h.addEventListener)&&((W=this.yI)==null?0:W.removeEventListener));case 4:return!(!this.yI||!this.yI.changeType);default:return!1}}; g.I.W6=function(){return!this.H7()}; g.I.isLocked=function(){return!1}; g.I.NS=function(B){B.to=this.p4();B.up=this.H7();var z,T=((z=this.yI)==null?void 0:z.appendWindowStart)||0,R;z=((R=this.yI)==null?void 0:R.appendWindowEnd)||Infinity;B.aw=T.toFixed(3)+"-"+z.toFixed(3);return B}; g.I.Ik=function(){var B;return((B=this.yI)==null?void 0:B.writeHead)||0}; g.I.Qa=function(){for(var B={},z=0;z=7&&UkX(this,function(){g.FN(function(){uob(B,B.getCurrentTime(),0)},500)}); return z}; g.I.seekTo=function(B){this.V_()>0&&(DN&&t5<4&&(B=Math.max(.1,B)),this.setCurrentTime(B))}; g.I.A6=function(){if(!this.U&&this.GZ)if(this.GZ.V)try{var B;ex(this,{l:"mer",sr:(B=this.iO)==null?void 0:B.g0(),rs:EI(this.GZ)});this.GZ.clear();this.U=this.GZ;this.GZ=void 0}catch(z){B=new g.Z_("Error while clearing Media Source in MediaElement: "+z.name+", "+z.message),g.kV(B),this.stopVideo()}else this.stopVideo()}; g.I.stopVideo=function(){var B=this;if(!this.U){var z;(z=this.GZ)==null||KFX(z);if(w_Y){if(!this.Y){var T=new Bq;T.then(void 0,function(){}); this.Y=T;qid&&this.pause();g.FN(function(){B.Y===T&&(hO(B),T.resolve())},200)}}else hO(this)}}; g.I.c7=function(){var B=this.Ao();return cn(B)&&this.getDuration()?qM(B,this.getCurrentTime()):0}; g.I.tT=function(){var B=this.getDuration();return B===Infinity?1:B?this.c7()/B:0}; g.I.NS=function(){try{var B=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:YS(this.ZC(),",",3),vbu:YS(this.Ao()),vbs:YS(this.kt()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.V_(),vns:""+this.jY(),vec:""+this.Sz(),vemsg:this.B4(),vvol:""+this.getVolume(),vdom:""+ +this.Q3(),vsrc:""+ +!!this.gs(),vw:""+B.width,vh:""+B.height}}catch(z){return{}}}; g.I.hasError=function(){return this.Sz()>0}; g.I.addEventListener=function(B,z){this.W.listen(B,z,!1,this);this.rl(B)}; g.I.removeEventListener=function(B,z){this.W.V2(B,z,!1,this)}; g.I.dispatchEvent=function(B){if(this.Y&&B.type==="pause")return!1;if(iKl){var z,T=((z=B.T)==null?void 0:z.timeStamp)||Infinity;z=T>performance.now()?T-Date.now()+performance.now():T;T=this.U||this.GZ;if((T==null?0:T.u9())||z<=((T==null?void 0:T.X)||0)){var R;ex(this,{l:"mede",sr:(R=this.iO)==null?void 0:R.g0(),et:B.type});return!1}if(this.Cm)return ex(this,{l:"medes",et:B.type}),T&&B.type==="seeking"&&(T.X=performance.now(),this.Cm=!1),!1}return this.W.dispatchEvent(B)}; g.I.qR=function(){this.X=!1}; g.I.zg=function(){this.X=!0;this.SN(!0)}; g.I.xK=function(){this.X&&!this.Bb()&&this.SN(!0)}; g.I.equals=function(B){return!!B&&B.jk()===this.jk()}; g.I.gF=function(){this.L&&this.removeEventListener("volumechange",this.xK);w_Y&&hO(this);g.K.prototype.gF.call(this)}; var w_Y=!1,qid=!1,iKl=!1,O0K=!1;g.I=g.b5.prototype;g.I.isPaused=function(){return g.X(this,4)}; g.I.isPlaying=function(){return g.X(this,8)&&!g.X(this,512)&&!g.X(this,64)&&!g.X(this,2)}; g.I.isOrWillBePlaying=function(){return g.X(this,8)&&!g.X(this,2)&&!g.X(this,1024)}; g.I.isCued=function(){return g.X(this,64)&&!g.X(this,8)&&!g.X(this,4)}; g.I.isBuffering=function(){return g.X(this,1)&&!g.X(this,2)}; g.I.isError=function(){return g.X(this,128)}; g.I.isSuspended=function(){return g.X(this,512)}; g.I.O_=function(){return g.X(this,64)&&g.X(this,4)}; g.I.toString=function(){return"PSt."+this.state.toString(16)}; var fT={},Oa=(fT.BUFFERING="buffering-mode",fT.CUED="cued-mode",fT.ENDED="ended-mode",fT.PAUSED="paused-mode",fT.PLAYING="playing-mode",fT.SEEKING="seeking-mode",fT.UNSTARTED="unstarted-mode",fT);g.G(oD,g.K);g.I=oD.prototype;g.I.v8=function(){return this.Y}; g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){var B=E(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=E(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Vk(this.layout.Ta)&&zy(this.QI.get(),this.layout.layoutId,{Rm:z,wK:B,listener:this,DP:this.Rp()});QGb(this.PD.get(),this);B=this.ez;z=this.layout.layoutId;var T={DP:this.Rp()};B.T.set(z,T);this.uC()}; g.I.VV=function(){}; g.I.release=function(){Vk(this.layout.Ta)&&Ty(this.QI.get(),this.layout.layoutId);yLz(this.PD.get(),this);this.ez.T.delete(this.layout.layoutId);this.Oy()}; g.I.cq=function(){}; g.I.ZG=function(){}; g.I.startRendering=function(B){Uz(FA(this));if(ID(this,B)){var z=this.T;M_(z.params.Au.Qu.get(),!0)&&ACl(z,"p_sr",{});G2(this);this.FP(B);this.Rp()||this.kA(!1)}}; g.I.ek=function(B,z){if(z.layoutId===this.layout.layoutId){this.f4="rendering";this.U=this.DJ.get().isMuted()||this.DJ.get().getVolume()===0;this.Zm("impression");this.Zm("start");if(this.DJ.get().isMuted()){Vj(this,"mute");var T;B=((T=re(this))==null?void 0:T.muteCommands)||[];jA(this.F1.get(),B,this.layout.layoutId)}if(this.DJ.get().isFullscreen()){this.Ak("fullscreen");var R;T=((R=re(this))==null?void 0:R.fullscreenCommands)||[];jA(this.F1.get(),T,this.layout.layoutId)}this.Rp()||(R=this.RI.get(), R.Y&&!R.U&&(R.V=!1,R.U=!0,R.actionType!=="ad_to_video"&&(ZU("pbs",void 0,R.actionType),g.ac("finalize_all_timelines")&&T6z(R.actionType))));this.d_(1);this.P0(z);var h;z=((h=re(this))==null?void 0:h.impressionCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.At=function(B,z,T){this.L={zq:3,Nl:B==="load_timeout"?402:400,errorMessage:z.message};this.Zm("error");var R;B=((R=re(this))==null?void 0:R.errorCommands)||[];jA(this.F1.get(),B,this.layout.layoutId);this.Rp()||this.KU.TM(this.slot,this.layout,z,T)}; g.I.uY=function(){if(this.f4==="rendering"){Vj(this,"pause");var B,z=((B=re(this))==null?void 0:B.pauseCommands)||[];jA(this.F1.get(),z,this.layout.layoutId);this.d_(2)}}; g.I.e9=function(){if(this.f4==="rendering"){Vj(this,"resume");var B,z=((B=re(this))==null?void 0:B.resumeCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.IS=function(B,z){z=z===void 0?!1:z;if(this.f4==="rendering"){var T={currentTimeSec:B,flush:z};V_(this.T,"p_ip",T);xQ(this.SI,B*1E3,z);this.U||xQ(this.SI,B*1E3,z===void 0?!1:z);var R=this.NF();if(R){R/=1E3;if(B>=R*.25||z)this.Zm("first_quartile"),V_(this.T,"p_fq",T);if(B>=R*.5||z)this.Zm("midpoint"),V_(this.T,"p_sq",T);if(B>=R*.75||z)this.Zm("third_quartile"),V_(this.T,"p_tq",T);this.Qu.get().j.K().experiments.Cf("enable_progress_command_flush_on_kabuki")?f3(this.W,B*1E3,z):f3(this.W,B*1E3,ew5(this)? z:!1)}}}; g.I.y_=function(){var B;return((B=de(this.yu.get(),1))==null?void 0:B.clientPlaybackNonce)||""}; g.I.GJ=function(B,z){B.layoutId!==this.layout.layoutId?this.KU.TM(this.slot,B,new bn("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"):z()}; g.I.b$=function(B,z,T){if(z.layoutId===this.layout.layoutId)switch(this.f4="not_rendering",this.layoutExitReason=void 0,this.Rp()||(B=T!=="normal"||this.position+1===this.X)&&this.kA(B),this.Cr(T),this.d_(0),T){case "abandoned":if(vj(this.SI,"impression")){var R,h=((R=re(this))==null?void 0:R.abandonCommands)||[];jA(this.F1.get(),h,this.layout.layoutId)}break;case "normal":R=((h=re(this))==null?void 0:h.completeCommands)||[];jA(this.F1.get(),R,this.layout.layoutId);break;case "skipped":var W;R=((W= re(this))==null?void 0:W.skipCommands)||[];jA(this.F1.get(),R,this.layout.layoutId)}}; g.I.AF=function(){return this.layout.layoutId}; g.I.Eo=function(){return this.L}; g.I.JM=function(){if(this.f4==="rendering"){this.SI.Zm("active_view_measurable");var B,z=((B=re(this))==null?void 0:B.activeViewMeasurableCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.Z5=function(){if(this.f4==="rendering"){this.SI.Zm("active_view_fully_viewable_audible_half_duration");var B,z=((B=re(this))==null?void 0:B.activeViewFullyViewableAudibleHalfDurationCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.M7=function(){if(this.f4==="rendering"){this.SI.Zm("active_view_viewable");var B,z=((B=re(this))==null?void 0:B.activeViewViewableCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.HS=function(){if(this.f4==="rendering"){this.SI.Zm("audio_audible");var B,z=((B=re(this))==null?void 0:B.activeViewAudioAudibleCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.m_=function(){if(this.f4==="rendering"){this.SI.Zm("audio_measurable");var B,z=((B=re(this))==null?void 0:B.activeViewAudioMeasurableCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}}; g.I.kA=function(B){this.RI.get().kA(E(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,B,this.position,this.X,!1)}; g.I.onFullscreenToggled=function(B){if(this.f4==="rendering")if(B){this.Ak("fullscreen");var z,T=((z=re(this))==null?void 0:z.fullscreenCommands)||[];jA(this.F1.get(),T,this.layout.layoutId)}else this.Ak("end_fullscreen"),z=((T=re(this))==null?void 0:T.endFullscreenCommands)||[],jA(this.F1.get(),z,this.layout.layoutId)}; g.I.onVolumeChange=function(){if(this.f4==="rendering")if(this.DJ.get().isMuted()){Vj(this,"mute");var B,z=((B=re(this))==null?void 0:B.muteCommands)||[];jA(this.F1.get(),z,this.layout.layoutId)}else Vj(this,"unmute"),B=((z=re(this))==null?void 0:z.unmuteCommands)||[],jA(this.F1.get(),B,this.layout.layoutId)}; g.I.PH=function(){}; g.I.pY=function(){}; g.I.vV=function(){}; g.I.MZ=function(){}; g.I.sX=function(){}; g.I.Ak=function(B){this.SI.Ak(B,!this.U)}; g.I.Zm=function(B){this.SI.Zm(B,!this.U)}; g.I.Rp=function(){var B=E(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return B===void 0?(Fo("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Qu.get().Rp(B)};g.G(pk,oD);g.I=pk.prototype;g.I.uC=function(){}; g.I.Oy=function(){var B=this.PD.get();B.Ha===this&&(B.Ha=null);this.KQ.stop()}; g.I.cq=function(){this.KQ.stop();oD.prototype.uY.call(this)}; g.I.ZG=function(){Pq(this);oD.prototype.e9.call(this)}; g.I.NF=function(){return E(this.HD().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.I.wz=function(B,z){var T=this;this.GJ(B,function(){T.f4!=="rendering_stop_requested"&&(T.f4="rendering_stop_requested",T.layoutExitReason=z,AO(T,z),T.KQ.stop())})}; g.I.l$=function(){var B=Date.now(),z=B-this.Gs;this.Gs=B;this.Wv+=z;this.Wv>=this.NF()?this.fN():(this.IS(this.Wv/1E3),$U(this,this.Wv))}; g.I.Cr=function(){}; g.I.Mn=function(){}; g.G(xU,pk);g.I=xU.prototype;g.I.Jo=function(B){if(this.f4!=="not_rendering"){B=aD(this,B);var z=this.DJ.get().getPresentingPlayerType()===2;this.f4==="rendering_start_requested"?z&&LW(B)&&this.lk():z?g.dK(B,2)?Fo("Receive player ended event during MediaBreak",this.mM(),this.HD()):UF(this,B):this.vr()}}; g.I.FP=function(){XpK(this);KLb(this.DJ.get());this.PD.get().Ha=this;jD("pbp")||jD("pbs")||ZU("pbp");jD("pbp","watch")||jD("pbs","watch")||ZU("pbp",void 0,"watch");this.lk()}; g.I.P0=function(B){this.RI.get();var z=E(B.clientMetadata,"metadata_type_ad_placement_config").kind,T=this.position===0;B=E(B.clientMetadata,"metadata_type_linked_in_player_layout_type");B={adBreakType:M5(z),adType:Y4z(B)};var R=void 0;T?z!=="AD_PLACEMENT_KIND_START"&&(R="video_to_ad"):R="ad_to_ad";O4("ad_mbs",void 0,R);g.NK(B,R);Pq(this)}; g.I.vr=function(){this.ao()}; g.I.fN=function(){EpY(this);this.ao()}; g.G(vq,pk);g.I=vq.prototype;g.I.Jo=function(B){this.f4!=="not_rendering"&&(B=aD(this,B),UF(this,B))}; g.I.FP=function(){Fo("Not used in SSAP")}; g.I.P0=function(){Pq(this)}; g.I.vr=function(){Fo("Not used in SSAP")}; g.I.fN=function(){EpY(this);this.KU.rG(this.mM(),this.HD(),"normal")}; g.G(DZ,vq);DZ.prototype.wz=function(B,z){var T=this;this.GJ(B,function(){Iu(T.Y,z)&&(T.f4="rendering_stop_requested",T.layoutExitReason=z,AO(T,z),T.KQ.stop())})}; DZ.prototype.startRendering=function(B){Uz(FA(this));ID(this,B)&&(G2(this),this.PD.get().Ha=this)};g.G(mi,oD);g.I=mi.prototype;g.I.vr=function(){this.ao()}; g.I.Jo=function(B){if(this.f4!=="not_rendering"){B=aD(this,B);var z=this.DJ.get().getPresentingPlayerType()===2;this.f4==="rendering_start_requested"?z&&LW(B)&&this.lk():!z||g.dK(B,2)?this.ao():UF(this,B)}}; g.I.uC=function(){E(this.HD().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=E(this.HD().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.I.Oy=function(){E(this.HD().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Mk){var B=this.context.Au,z=this.Mk,T=this.HD().layoutId;if(M_(B.Qu.get(),!0)){var R={};B.wF("mccru",(R.cid=z,R.p_ac=T,R))}this.Pc.get().removeCueRange(this.Mk)}this.Mk=void 0;var h;(h=this.LB)==null||h.dispose();this.fn&&this.fn.dispose()}; g.I.FP=function(B){var z=kU(this.Qu.get()),T=Kk(this.Qu.get());if(z&&T&&!this.Rp()){T=E(B.clientMetadata,"metadata_type_preload_player_vars");var R=this.Qu.get();R=g.rk(R.j.K().experiments,"html5_preload_wait_time_secs");T&&this.fn&&this.fn.start(R*1E3)}zqH(this,B);XpK(this);z?(T=this.Q2.get(),B=E(B.clientMetadata,"metadata_type_player_vars"),T.j.loadVideoByPlayerVars(B,!1,2)):SJb(this.Q2.get(),E(B.clientMetadata,"metadata_type_player_vars"));var h;(h=this.LB)==null||h.start();z||this.Q2.get().j.playVideo(2)}; g.I.P0=function(){var B;(B=this.LB)==null||B.stop();this.Mk="adcompletioncuerange:"+this.HD().layoutId;this.Pc.get().addCueRange(this.Mk,0x7ffffffffffff,0x8000000000000,!1,this,2,2);B=this.context.Au;var z=this.Mk,T=this.HD().layoutId;if(M_(B.Qu.get(),!0)){var R={};B.wF("mccr",(R.cid=z,R.p_ac=T,R))}(this.adCpn=jSb(this))||Fo("Media layout confirmed started, but ad CPN not set.");this.SF.get().Sg("onAdStart",this.adCpn);this.C7=Date.now()}; g.I.NF=function(){var B;return(B=de(this.yu.get(),2))==null?void 0:B.S1}; g.I.Qo=function(){this.SI.Ak("clickthrough")}; g.I.wz=function(B,z){var T=this;this.GJ(B,function(){if(T.f4!=="rendering_stop_requested"){T.f4="rendering_stop_requested";T.layoutExitReason=z;AO(T,z);var R;(R=T.LB)==null||R.stop();T.fn&&T.fn.stop();TnB(T)}})}; g.I.onCueRangeEnter=function(B){if(B!==this.Mk)Fo("Received CueRangeEnter signal for unknown layout.",this.mM(),this.HD(),{cueRangeId:B});else{var z=this.context.Au,T=this.HD().layoutId;if(M_(z.Qu.get(),!0)){var R={};z.wF("mccre",(R.cid=B,R.p_ac=T,R))}this.Pc.get().removeCueRange(this.Mk);this.Mk=void 0;s$(this.context.Qu.get(),"html5_ssap_flush_at_stop_rendering")&&this.Rp()||(B=E(this.HD().clientMetadata,"metadata_type_video_length_seconds"),this.IS(B,!0),this.Zm("complete"))}}; g.I.Cr=function(B){B!=="abandoned"&&this.SF.get().Sg("onAdComplete");this.SF.get().Sg("onAdEnd",this.adCpn)}; g.I.onCueRangeExit=function(){}; g.I.Mn=function(B){this.f4==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&B>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.DJ.get().Th(!0),this.IS(B))}; g.I.IS=function(B,z){oD.prototype.IS.call(this,B,z===void 0?!1:z);z=Date.now()-this.C7;var T=B*1E3,R={contentCpn:this.y_(),adCpn:jSb(this)};if(B-this.u_>=5){var h=z=2||(this.MW.wz(this.layout,z),B=s$(this.params.context.Qu.get(),"html5_ssap_pass_transition_reason")&&z==="abandoned",this.Al()&&!B&&(s$(this.params.context.Qu.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(z)||Fo("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:z})),this.Ui.get().finishSegmentByCpn(this.layout.layoutId, de(this.yu.get(),1).clientPlaybackNonce,yj(z,this.params.context.Qu))),this.DJ.get().removeListener(this),this.hS()&&G1(this.MW.v8())&&this.Eh.b$(this.slot,this.layout,this.MW.v8().T))}; g.I.T7=function(B,z,T){Gvl({cpn:B,OJ:this.yu.get(),gR:!0});this.HD().layoutId!==B||s$(this.params.context.Qu.get(),"html5_ssap_pass_transition_reason")&&T===5||(this.MW.v8().currentState<2&&(B=ge(T,this.params.context.Qu),B==="error"?this.Eh.TM(this.slot,this.layout,new bn("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:T},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):ZZ(this.Bd, this.layout,B)),s$(this.params.context.Qu.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Eh.b$(this.slot,this.layout,this.MW.v8().T))};g.G(OF,g.K);g.I=OF.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.VC=function(){}; g.I.Nr=function(){return this.Ng[this.H$]}; g.I.qK=function(){return this.H$}; g.I.cq=function(B,z){var T=this.Nr();z.layoutId!==tO(T,B,z)?Fo("pauseLayout for a PlayerBytes layout that is not currently active",B,z):T.cq()}; g.I.ZG=function(B,z){var T=this.Nr();z.layoutId!==tO(T,B,z)?Fo("resumeLayout for a PlayerBytes layout that is not currently active",B,z):T.ZG()}; g.I.fK=function(B,z){var T=this.Nr();cYB(this,B,z);L5B(T,B,z)&&this.e5(T.mM(),T.HD(),"skipped")}; g.I.XI=function(B,z){var T=this.Nr();CoK(this);rYX(T,B,z)&&(B=oXK(this,T,B,z),B!==void 0&&(this.Rp()?Fo("Should not happen. Should delete"):IUH(this,T.mM(),T.HD(),B)))}; g.I.ll=function(B,z){var T=Object.assign({},N5(this),{layoutId:z.layoutId}),R=T.layoutId,h=T.gR;if(T.DP){var W={};au(T.OJ,"wrse",(W.ec=R,W.is=h,W.ctp=Ai(R),W))}pa(this.MU,B,z)}; g.I.ek=function(B,z){var T;(T=this.Nr())==null||T.ek(B,z)}; g.I.b$=function(B,z,T){z.layoutId===this.HD().layoutId&&(this.oz=!1,GO(this.E0(),this));var R;(R=this.Nr())==null||R.b$(B,z,T)}; g.I.Mn=function(B){var z;(z=this.Nr())==null||z.Mn(B)}; g.I.mf=function(B,z,T){this.qK()===-1&&(this.callback.ek(this.slot,this.layout),this.H$++);var R=this.Nr();R?(R.At(B,z,T),this.Rp()&&this.callback.TM(this.slot,this.layout,z,T)):Fo("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.qK()),layoutId:this.HD().layoutId})}; g.I.onFullscreenToggled=function(B){var z;(z=this.Nr())==null||z.onFullscreenToggled(B)}; g.I.PH=function(B){var z;(z=this.Nr())==null||z.PH(B)}; g.I.vV=function(B){var z;(z=this.Nr())==null||z.vV(B)}; g.I.onVolumeChange=function(){var B;(B=this.Nr())==null||B.onVolumeChange()}; g.I.dl=function(B,z,T){$o(this.MU,B,z,T)}; g.I.CE=function(B){B.startRendering(B.HD())}; g.I.init=function(){var B=E(this.HD().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");B&&(B.current=this);if(this.Ng.length<1)throw new e("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ng.length)});if(B=E(this.HD().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))B.current=this;B=g.d(this.Ng);for(var z=B.next();!z.done;z=B.next())z=z.value,z.init(),nVX(this.MU,this.slot,z.HD()),uPX(this.MU,this.slot,z.HD()); if(this.Rp())for(this.yu.get().addListener(this),LFB(iMd(this),this.yu.get()),B=iMd(this),B=g.d(B),z=B.next();!z.done;z=B.next())this.zl(z.value)}; g.I.zl=function(B){var z=E(B.clientMetadata,"metadata_type_player_vars");z?(B.layoutType!=="LAYOUT_TYPE_MEDIA"&&Fo("Non-video ad contains playerVars",this.slot,B),this.Q2.get().addPlayerResponseForAssociation({playerVars:z})):(B=lUX(B),this.Q2.get().addPlayerResponseForAssociation({pZ:B}))}; g.I.release=function(){var B=E(this.HD().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");B&&(B.current=null);if(B=E(this.HD().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))B.current=null;B=g.d(this.Ng);for(var z=B.next();!z.done;z=B.next())z=z.value,HVd(this.MU,this.slot,z.HD()),z.release();this.Rp()&&(this.yu.get().removeListener(this),C1b())}; g.I.GJ=function(B){return B.layoutId!==this.HD().layoutId?(this.callback.TM(this.mM(),B,new bn("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.HD().layoutId+("and LayoutType: "+this.HD().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.I.eA=function(){this.DJ.get().addListener(this);IV(this.E0(),this)}; g.I.Jo=function(B){if(B.state.isError()){var z,T;this.mf((z=B.state.pp)==null?void 0:z.errorCode,new bn("There was a player error during this media layout.",{playerErrorCode:(T=B.state.pp)==null?void 0:T.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(z=this.Nr())&&z.Jo(B)}; g.I.Rp=function(){var B=E(this.mM().clientMetadata,"metadata_type_eligible_for_ssap");return B===void 0?(Fo("Expected SSAP eligibility in PlayerBytes slots",this.mM(),this.HD()),!1):this.Qu.get().Rp(B)}; g.I.pY=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.MZ=function(){}; g.I.sX=function(){}; g.G(eM,OF);g.I=eM.prototype;g.I.zK=function(B,z,T){this.e5(B,z,T)}; g.I.FB=function(B,z){this.e5(B,z,"error")}; g.I.e5=function(B,z,T){var R=this;F5K(this,B,z,T,function(){jM(R,R.qK()+1)})}; g.I.startRendering=function(B){this.GJ(B)&&(this.eA(),ek5(this.RI.get()),RSz(this.Qu.get())||KLb(this.DJ.get()),this.qK()===-1&&jM(this,this.qK()+1))}; g.I.wz=function(B,z){var T=this;this.oz=!0;this.qK()===this.Ng.length?this.callback.b$(this.slot,this.layout,z):(B=this.Nr(),B.wz(B.HD(),z),this.DW=function(){T.callback.b$(T.slot,T.layout,z)}); this.DJ.get().j.Yk();SJb(this.Q2.get(),{});B=Bm(this.DJ.get(),1);B.isPaused()&&!g.X(B,2)&&this.DJ.get().playVideo();this.DJ.get().removeListener(this);this.oz&&G$z(this)}; g.I.T7=function(){}; g.I.iM=function(){}; g.I.rG=function(){}; g.G(sF,OF);g.I=sF.prototype;g.I.zK=function(B,z,T){B=Object.assign({},N5(this),{layoutId:z.layoutId,layoutExitReason:T});z=B.layoutId;T=B.layoutExitReason;var R={};au(B.OJ,"prse",(R.xc=z,R.ler=T,R.ctp=Ai(z),R))}; g.I.FB=function(){Fo("onSubLayoutError in SSAP")}; g.I.e5=function(){Fo("exitSubLayoutAndPlayNext in SSAP")}; g.I.Nr=function(){return this.Vl}; g.I.qK=function(){var B=this;return this.Ng.findIndex(function(z){var T;return z.HD().layoutId===((T=B.Vl)==null?void 0:T.HD().layoutId)})}; g.I.CE=function(B){oS(this.Vl===void 0,"replacing another adapter");this.Vl=B;B.startRendering(B.HD())}; g.I.dl=function(B,z,T){$o(this.MU,B,z,T);var R;oS(z.layoutId===((R=this.Vl)==null?void 0:R.HD().layoutId),"currentAdapter does not match exiting layout",{slot:B?"slot: "+B.slotType:"",subLayout:rK(z)})&&(this.Vl=void 0)}; g.I.release=function(){OF.prototype.release.call(this);oS(this.Vl===void 0,"currentAdapter is still active during release");this.Vl=void 0}; g.I.Al=function(){return this.DJ.get().getPresentingPlayerType()===2}; g.I.wz=function(B,z){function T(){EF(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(z)||Fo("Composite stopRendering: Unexpected layout exit reason",this.slot,B,{layoutExitReason:z}))} function R(){this.Vl&&SM(this,this.Vl,z);if(this.Al()&&(!EF(this)||z!=="abandoned")){T.call(this);var W;var b=((W=this.yu.get().j.getVideoData())==null?void 0:W.clientPlaybackNonce)||"";W=de(this.yu.get(),1).clientPlaybackNonce;this.Ui.get().finishSegmentByCpn(b,W,yj(z,this.Qu))}dKP(this,z)} function h(){if(this.Vl){var W=this.Vl;W.v8().currentState<2&&W.wz(W.HD(),z);W=EF(this)&&z==="abandoned";this.Al()&&!W&&(T.call(this),this.Ui.get().finishSegmentByCpn(this.Vl.HD().layoutId,de(this.yu.get(),1).clientPlaybackNonce,yj(z,this.Qu)))}} oS(B.layoutId===this.HD().layoutId,"StopRendering for wrong layout")&&Iu(this.xD.U,z)&&(this.hS()?R.call(this):h.call(this))}; g.I.b$=function(B,z,T){OF.prototype.b$.call(this,B,z,T);z.layoutId===this.HD().layoutId&&this.DJ.get().removeListener(this)}; g.I.y_=function(){return de(this.yu.get(),1).clientPlaybackNonce}; g.I.T7=function(B,z,T){Gvl(Object.assign({},N5(this),{cpn:B}));if(!EF(this)||T!==5)if(this.hS()){if(this.Vl&&this.Vl.HD().layoutId!==z){var R=this.Vl.HD().layoutId;R!==B&&Fo("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:R,exitingCpn:B,enteringCpn:z});B=ge(T,this.Qu);SM(this,this.Vl,B)}else this.Vl&&Fo("onClipExited: active layout is entering again");z===this.y_()&&aUY(this,T)}else{if(this.Vl&&this.Vl.HD().layoutId===B)AYd(this,this.Vl,T);else{var h;Fo("Exiting cpn does not match active cpn", this.slot,(R=this.Vl)==null?void 0:R.HD(),{exitingCpn:B,transitionReason:T,activeCpn:(h=this.Vl)==null?void 0:h.HD().layoutId})}z===this.y_()&&(this.Vl!==void 0&&(Fo("active adapter is not properly exited",this.slot,this.layout,{activeLayout:rK(this.Vl.HD())}),AYd(this,this.Vl,T)),aUY(this,T),dKP(this,this.xD.U.T))}}; g.I.hS=function(){return s$(this.Qu.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.I.startRendering=function(B){this.GJ(B)&&(B=this.xD,oS(B.T===1,"tickStartRendering: state is not initial"),B.T=2,this.eA())}; g.I.iM=function(B){Iwd(Object.assign({},N5(this),{cpn:B}));var z=this.Ng.find(function(T){return T.HD().layoutId===B}); z?(this.xD.T!==2&&(TkH(this.l1,this.slot.slotId),oS(this.xD.T===2,"Expect started"),this.callback.ek(this.slot,this.layout)),this.CE(z),pa(this.MU,this.slot,z.HD())):UKd(this,B)}; g.I.fK=function(B,z){cYB(this,B,z);var T=this.Nr();T?L5B(T,B,z)&&MDz(this,"skipped"):VDY(this,"onSkipRequested")}; g.I.XI=function(B,z){var T;a:{if(T=this.Nr()){if(CoK(this),rYX(T,B,z)&&(B=oXK(this,T,B,z),B!==void 0)){T={Ah:T,s1F:this.Ng[B]};break a}}else VDY(this,"SkipWithAdPodSkip");T=void 0}if(B=T)T=B.Ah,z=B.s1F,B=T.HD().layoutId,this.hS()?SM(this,T,"skipped"):T.wz(T.HD(),"skipped"),T=z.HD().layoutId,this.Ui.get().finishSegmentByCpn(B,T,yj("skipped",this.Qu))}; g.I.ll=function(){Fo("Not used in html5_ssap_fix_layout_exit")}; g.I.Jo=function(B){var z;(z=this.Nr())==null||z.Jo(B)}; g.I.mf=function(){Fo("Not used in html5_ssap_fix_layout_exit")}; g.I.rG=function(B,z,T){var R;if(((R=this.Nr())==null?void 0:R.HD().layoutId)!==z.layoutId)return void Fo("requestToExitSubLayout: wrong layout");MDz(this,T)};g.G(BT,g.K);g.I=BT.prototype;g.I.mM=function(){return this.MW.mM()}; g.I.HD=function(){return this.MW.HD()}; g.I.init=function(){var B=E(this.HD().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");B&&(B.current=this);this.uC()}; g.I.uC=function(){this.MW.init()}; g.I.release=function(){var B=E(this.HD().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");B&&(B.current=null);this.Oy()}; g.I.Oy=function(){this.MW.release()}; g.I.cq=function(){this.MW.cq()}; g.I.ZG=function(){this.MW.ZG()}; g.I.fK=function(B,z){Fo("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.mM(),this.HD(),{requestingSlot:B,requestingLayout:z})}; g.I.startRendering=function(B){B.layoutId!==this.HD().layoutId?this.callback.TM(this.mM(),B,new bn("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.HD().layoutId+("and LayoutType: "+this.HD().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.DJ.get().addListener(this),IV(this.E0(),this),ek5(this.RI.get()),RSz(this.Qu.get())||KLb(this.DJ.get()),this.MW.startRendering(B))}; g.I.wz=function(B,z){this.oz=!0;this.MW.wz(B,z);this.DJ.get().j.Yk();SJb(this.Q2.get(),{});B=Bm(this.DJ.get(),1);B.isPaused()&&!g.X(B,2)&&this.DJ.get().playVideo();this.DJ.get().removeListener(this);this.oz&&this.MW.vr()}; g.I.ek=function(B,z){this.MW.ek(B,z)}; g.I.b$=function(B,z,T){z.layoutId===this.HD().layoutId&&(this.oz=!1,GO(this.E0(),this));this.MW.b$(B,z,T);z.layoutId===this.HD().layoutId&&XA(this.RI.get())}; g.I.Mn=function(B){this.MW.Mn(B)}; g.I.Jo=function(B){if(B.state.isError()){var z,T;this.mf((z=B.state.pp)==null?void 0:z.errorCode,new bn("There was a player error during this media layout.",{playerErrorCode:(T=B.state.pp)==null?void 0:T.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.MW.Jo(B)}; g.I.mf=function(B,z,T){this.MW.At(B,z,T)}; g.I.onFullscreenToggled=function(B){this.MW.onFullscreenToggled(B)}; g.I.PH=function(B){this.MW.PH(B)}; g.I.vV=function(B){this.MW.vV(B)}; g.I.onVolumeChange=function(){this.MW.onVolumeChange()}; g.I.pY=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.MZ=function(){}; g.I.sX=function(){};g.I=zI.prototype;g.I.mM=function(){return this.slot}; g.I.HD=function(){return this.layout}; g.I.init=function(){this.s2.get().addListener(this);this.DJ.get().addListener(this);var B=E(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var z=E(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var T=this.s2.get().Q6.slice(-1)[0];T!==void 0&&(B=T.startSecs*1E3,z=(T.startSecs+T.Dc)*1E3)}this.VV(B,z);var R;T=(R=this.yu.get().zi)==null?void 0:R.clientPlaybackNonce;R=this.layout.qS.adClientDataEntry;TI(this.PD.get(),{daiStateTrigger:{filledAdsDurationMs:z-B,contentCpn:T, adClientData:R}});var h=this.s2.get();h=gXl(h.Y,B,z);h!==null&&(TI(this.PD.get(),{daiStateTrigger:{filledAdsDurationMs:h-B,contentCpn:T,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:R}}),this.Ui.get().Br(h,z))}; g.I.release=function(){this.Oy();this.s2.get().removeListener(this);this.DJ.get().removeListener(this)}; g.I.startRendering=function(){this.FP();this.callback.ek(this.slot,this.layout)}; g.I.wz=function(B,z){this.BC(z);this.driftRecoveryMs!==null&&(Rp(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(JYP(this)-E(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.DJ.get().j.In()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.b$(this.slot,this.layout,z)}; g.I.Zb=function(){return!1}; g.I.bB=function(B){var z=E(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),T=E(this.layout.clientMetadata,"metadata_type_layout_exit_ms");B*=1E3;if(z<=B&&B0&&P8(this.T(),z)}; g.I.I_=function(B){this.V.delete(B.slotId);for(var z=[],T=g.d(this.lK.values()),R=T.next();!R.done;R=T.next()){R=R.value;var h=R.trigger;h instanceof EU&&h.triggeringSlotId===B.slotId&&z.push(R)}z.length>0&&P8(this.T(),z)}; g.I.cH=function(B){for(var z=[],T=g.d(this.lK.values()),R=T.next();!R.done;R=T.next()){R=R.value;var h=R.trigger;h instanceof HT&&h.slotType===B.slotType&&h.T!==B.slotId&&z.push(R)}z.length>0&&P8(this.T(),z)}; g.I.FS=function(B){this.Y.add(B.slotId);for(var z=[],T=g.d(this.lK.values()),R=T.next();!R.done;R=T.next())R=R.value,R.trigger instanceof jZ&&B.slotId===R.trigger.triggeringSlotId&&z.push(R);z.length>0&&P8(this.T(),z)}; g.I.zj=function(B){this.Y.delete(B.slotId);this.W.add(B.slotId);for(var z=[],T=g.d(this.lK.values()),R=T.next();!R.done;R=T.next())if(R=R.value,R.trigger instanceof XT)B.slotId===R.trigger.triggeringSlotId&&z.push(R);else if(R.trigger instanceof p$){var h=R.trigger;B.slotId===h.slotId&&this.U.has(h.triggeringLayoutId)&&z.push(R)}z.length>0&&P8(this.T(),z)}; g.I.qg=function(B){for(var z=[],T=g.d(this.lK.values()),R=T.next();!R.done;R=T.next())R=R.value,R.trigger instanceof Zm&&B.slotId===R.trigger.triggeringSlotId&&z.push(R);z.length>0&&P8(this.T(),z)}; g.I.yQ=function(B){for(var z=[],T=g.d(this.lK.values()),R=T.next();!R.done;R=T.next())R=R.value,R.trigger instanceof eZ&&B.slotId===R.trigger.triggeringSlotId&&z.push(R);z.length>0&&P8(this.T(),z)}; g.I.ON=function(B,z){this.X.add(z.layoutId)}; g.I.Xh=function(B,z){this.X.delete(z.layoutId)}; g.I.ek=function(B,z){this.U.add(z.layoutId);for(var T=[],R=g.d(this.lK.values()),h=R.next();!h.done;h=R.next())if(h=h.value,h.trigger instanceof $Y)z.layoutId===h.trigger.triggeringLayoutId&&T.push(h);else if(h.trigger instanceof ui){var W=h.trigger;B.slotType===W.slotType&&z.layoutType===W.layoutType&&z.layoutId!==W.T&&T.push(h)}else h.trigger instanceof p$&&(W=h.trigger,z.layoutId===W.triggeringLayoutId&&this.W.has(W.slotId)&&T.push(h));T.length>0&&P8(this.T(),T)}; g.I.b$=function(B,z,T){this.U.delete(z.layoutId);B=[];for(var R=g.d(this.lK.values()),h=R.next();!h.done;h=R.next())if(h=h.value,h.trigger instanceof xY&&z.layoutId===h.trigger.triggeringLayoutId&&B.push(h),h.trigger instanceof PT){var W=h.trigger;z.layoutId===W.triggeringLayoutId&&W.T.includes(T)&&B.push(h)}B.length>0&&P8(this.T(),B)}; g.I.ZR=function(){}; g.I.KY=function(){this.W.clear()}; g.I.Ag=function(){};g.G(HE,g.K);HE.prototype.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof gf))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CloseRequestedTriggerAdapter");this.lK.set(z.triggerId,new zC(B,z,T,R))}; HE.prototype.h6=function(B){this.lK.delete(B.triggerId)};g.G(Ou,g.K);Ou.prototype.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof y7||z instanceof OU))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.lK.set(z.triggerId,new zC(B,z,T,R))}; Ou.prototype.h6=function(B){this.lK.delete(B.triggerId)}; Ou.prototype.KY=function(B){for(var z=[],T=z.push,R=T.apply,h=[],W=g.d(this.lK.values()),b=W.next();!b.done;b=W.next())b=b.value,b.trigger instanceof y7&&b.trigger.XX===B&&h.push(b);R.call(T,z,g.Q(h));T=z.push;R=T.apply;h=[];W=g.d(this.lK.values());for(b=W.next();!b.done;b=W.next())b=b.value,b.trigger instanceof OU&&b.trigger.T!==B&&h.push(b);R.call(T,z,g.Q(h));z.length&&P8(this.T(),z)}; Ou.prototype.Ag=function(B){for(var z=[],T=z.push,R=T.apply,h=[],W=g.d(this.lK.values()),b=W.next();!b.done;b=W.next()){b=b.value;var l=b.trigger;l instanceof OU&&l.T===B&&h.push(b)}R.call(T,z,g.Q(h));z.length&&P8(this.T(),z)};g.G(NL,g.K);g.I=NL.prototype;g.I.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");var h="adtriggercuerange:"+z.triggerId;if(z instanceof m6)jJb(this,B,z,T,R,h,z.T.start,z.T.end,z.XX,z.visible);else if(z instanceof JH)jJb(this,B,z,T,R,h,0x7ffffffffffff,0x8000000000000,z.XX,z.visible);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CueRangeTriggerAdapter");}; g.I.h6=function(B){var z=this.lK.get(B.triggerId);z&&this.Pc.get().removeCueRange(z.cueRangeId);this.lK.delete(B.triggerId)}; g.I.onCueRangeEnter=function(B){var z=XVz(this,B);if(z&&(z=this.lK.get(z)))if(g.X(Bm(this.DJ.get()),32))this.T.add(z.cueRangeId);else{var T=z==null?void 0:z.C3.trigger;if(T instanceof m6||T instanceof JH){if(M_(this.context.Qu.get())){var R=z.C3.slot,h=z.C3.layout,W={};this.context.Au.wF("cre",(W.ca=z.C3.category,W.tt=T.triggerType,W.st=R.slotType,W.lt=h==null?void 0:h.layoutType,W.cid=B,W))}P8(this.U(),[z.C3])}}}; g.I.onCueRangeExit=function(B){(B=XVz(this,B))&&(B=this.lK.get(B))&&this.T.delete(B.cueRangeId)}; g.I.Jo=function(B){if(Gv(B,16)<0){B=g.d(this.T);for(var z=B.next();!z.done;z=B.next())this.onCueRangeEnter(z.value,!0);this.T.clear()}}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ek=function(){}; g.I.b$=function(){}; g.I.ZR=function(){}; g.I.Mn=function(){}; g.I.onFullscreenToggled=function(){}; g.I.PH=function(){}; g.I.pY=function(){}; g.I.vV=function(){}; g.I.onVolumeChange=function(){}; g.I.MZ=function(){}; g.I.sX=function(){};g.G(tN,g.K);g.I=tN.prototype; g.I.Nj=function(B,z,T,R){if(this.U.has(z.triggerId)||this.Y.has(z.triggerId))throw new e("Tried to re-register the trigger.");B=new zC(B,z,T,R);if(B.trigger instanceof K$)this.U.set(B.trigger.triggerId,B);else if(B.trigger instanceof vT)this.Y.set(B.trigger.triggerId,B);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+B.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(B.trigger.triggerId)&&B.slot.slotId===this.T&&P8(this.W(),[B])}; g.I.h6=function(B){this.U.delete(B.triggerId);this.Y.delete(B.triggerId)}; g.I.VC=function(B){B=B.slotId;if(this.T!==B){var z=[];this.T!=null&&z.push.apply(z,g.Q(ZOz(this.Y,this.T)));B!=null&&z.push.apply(z,g.Q(ZOz(this.U,B)));this.T=B;z.length&&P8(this.W(),z)}}; g.I.T7=function(){}; g.I.iM=function(){};g.G(jq,g.K);g.I=jq.prototype;g.I.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof f$))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.lK.set(z.triggerId,new zC(B,z,T,R))}; g.I.h6=function(B){this.lK.delete(B.triggerId)}; g.I.ek=function(){}; g.I.b$=function(){}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){};g.G(Xr,g.K);g.I=Xr.prototype;g.I.ZR=function(B,z){for(var T=[],R=g.d(this.lK.values()),h=R.next();!h.done;h=R.next()){h=h.value;var W=h.trigger;W.opportunityType===B&&(W.associatedSlotId&&W.associatedSlotId!==z||T.push(h))}T.length&&P8(this.T(),T)}; g.I.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof hVz))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OpportunityEventTriggerAdapter");this.lK.set(z.triggerId,new zC(B,z,T,R))}; g.I.h6=function(B){this.lK.delete(B.triggerId)}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ek=function(){}; g.I.b$=function(){};g.G(ZS,g.K);g.I=ZS.prototype;g.I.Nj=function(B,z,T,R){B=new zC(B,z,T,R);if(z instanceof Dm||z instanceof n$||z instanceof kY||z instanceof Nr||z instanceof hBB){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");this.lK.set(z.triggerId,B)}else throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in PrefetchTriggerAdapter");}; g.I.h6=function(B){this.lK.delete(B.triggerId)}; g.I.Kx=function(B){var z=B.slotFulfillmentTriggers.find(function(T){return T instanceof Dm}); z&&(eq(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",z.breakDurationMs,new Set([B.slotId]),!0),WT(this.PD.get(),"ads_css","sid."+B.slotId+";bd."+z.breakDurationMs))}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ek=function(){}; g.I.b$=function(){}; g.I.ZR=function(){}; g.I.Zb=function(B){var z=this;if(!this.T)return Fo("Unexpected cue break before fetch instructions are available"),!1;this.U&&this.U.stop();this.Y&&g.Bi(this.Y);var T=E$Y(this,B);if(!T){for(var R=[],h=g.d(this.lK.values()),W=h.next();!W.done;W=h.next())W=W.value.trigger,W instanceof Dm&&R.push(W.breakDurationMs);WT(this.PD.get(),"ads_ncfs","cid."+B.identifier+";cd."+B.Dc.toFixed(3)+R.slice(0,6).map(function(b){return";bd."+b}).join("")); return!1}(new g.Si(function(){var b=T.trigger,l=T.slot;eq(z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",b.breakDurationMs,new Set,!0);eq(z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",b.breakDurationMs,new Set,!1);for(var w=0,q=g.d(z.lK.values()),c=q.next();!c.done;c=q.next()){c=c.value;var L=c.trigger;c.slot.slotId===l.slotId&&(z.lK.delete(L.triggerId),w++)}WT(z.PD.get(),"ads_csf","sid."+l.slotId+";bd."+b.breakDurationMs+";dt."+w)},10)).start(); return!0}; g.I.bB=function(){}; g.I.KY=function(B){this.T&&this.T.contentCpn!==B?(Fo("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:B,fetchInstructionsCpn:this.T.contentCpn}),Eu(this)):sJK(this)}; g.I.Ag=function(B){this.T&&this.T.contentCpn!==B&&Fo("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:B,fetchInstructionsCpn:this.T.contentCpn},!0);Eu(this)}; g.I.Xk=function(B){var z=this;if(this.T)Fo("Unexpected multiple fetch instructions for the current content");else{this.T=B;B=BkH(B);this.U=new g.Si(function(){sJK(z)},B?B:6E5); this.U.start();this.Y=new g.Si(function(){z.T&&(z.U&&(z.U.stop(),z.U.start()),eez(z,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},SPY(this.T)); B=this.DJ.get().getCurrentTimeSec(1,!1);for(var T=g.d(this.s2.get().Q6),R=T.next();!R.done;R=T.next())R=R.value,WT(this.PD.get(),"nocache","ct."+Date.now()+";cmt."+B+";d."+R.Dc.toFixed(3)+";tw."+(R.startSecs-B)+";cid."+R.identifier+";")}}; g.I.gF=function(){g.K.prototype.gF.call(this);Eu(this)};g.G(Sq,g.K);g.I=Sq.prototype;g.I.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof BI))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.lK.set(z.triggerId,new zC(B,z,T,R));B=this.T.has(z.triggeringLayoutId)?this.T.get(z.triggeringLayoutId):new Set;B.add(z);this.T.set(z.triggeringLayoutId,B)}; g.I.h6=function(B){this.lK.delete(B.triggerId);if(!(B instanceof BI))throw new e("Incorrect TriggerType: Tried to unregister trigger of type "+B.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var z=this.U.get(B.triggerId);z&&(z.dispose(),this.U.delete(B.triggerId));if(z=this.T.get(B.triggeringLayoutId))z.delete(B),z.size===0&&this.T.delete(B.triggeringLayoutId)}; g.I.Kx=function(){}; g.I.I_=function(){}; g.I.cH=function(){}; g.I.FS=function(){}; g.I.zj=function(){}; g.I.qg=function(){}; g.I.yQ=function(){}; g.I.ON=function(){}; g.I.Xh=function(){}; g.I.ZR=function(){}; g.I.ek=function(B,z){var T=this;if(this.T.has(z.layoutId)){B=this.T.get(z.layoutId);B=g.d(B);var R=B.next();for(z={};!R.done;z={Tq:void 0},R=B.next())z.Tq=R.value,R=new g.Si(function(h){return function(){var W=T.lK.get(h.Tq.triggerId);P8(T.Y(),[W])}}(z),z.Tq.durationMs),R.start(),this.U.set(z.Tq.triggerId,R)}}; g.I.b$=function(){};g.G(BM,g.K);BM.prototype.Nj=function(B,z,T,R){if(this.lK.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof V7))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in VideoTransitionTriggerAdapter.");this.lK.set(z.triggerId,new zC(B,z,T,R))}; BM.prototype.h6=function(B){this.lK.delete(B.triggerId)};hT.prototype.g$=function(B){return B.kind==="AD_PLACEMENT_KIND_START"};g.G(ly,g.K);g.I=ly.prototype;g.I.logEvent=function(B){this.Bq(B)}; g.I.QG=function(B,z,T){this.Bq(B,void 0,void 0,void 0,z,void 0,void 0,void 0,z.adSlotLoggingData,void 0,void 0,T)}; g.I.a_=function(B,z,T,R){this.Bq(B,void 0,void 0,void 0,z,T?T:void 0,void 0,void 0,z.adSlotLoggingData,T?T.adLayoutLoggingData:void 0,void 0,R)}; g.I.AB=function(B,z,T,R){s$(this.Qu.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+B,"trigger:",T,"slot:",z,"layout:",R);La(this.T.get())&&this.Bq(B,void 0,void 0,void 0,z,R?R:void 0,void 0,T,z.adSlotLoggingData,R?R.adLayoutLoggingData:void 0)}; g.I.lx=function(B,z,T,R,h){this.Bq(B,z,T,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h)}; g.I.Xw=function(B,z,T,R){this.Bq("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,T,R,void 0,void 0,T.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,{errorType:B,errorMessage:z})}; g.I.Bq=function(B,z,T,R,h,W,b,l,w,q,c,L){var C=this;L=L===void 0?0:L;s$(this.Qu.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+B,"slot:",h,"layout:",W,"ping:",b,"Opportunity:",{opportunityType:z,associatedSlotId:T,z8d:R,cAI:l,adSlotLoggingData:w,adLayoutLoggingData:q});try{var r=function(){if(!C.Qu.get().j.K().D("html5_disable_client_tmp_logs")&&B!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){B||Fo("Empty PACF event type",h,W);var F=La(C.T.get()),A={eventType:B,eventOrder:++C.eventCount},a={}; h&&(a.slotData=c8(F,h));W&&(a.layoutData=vVr(F,W));b&&(a.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:b.T.serializedAdPingMetadata,pingIndex:b.index});l&&(a.triggerData=qC(l.trigger,l.category));z&&(a.opportunityData=D3z(F,z,T,R));F={organicPlaybackContext:{contentCpn:de(C.yu.get(),1).clientPlaybackNonce}};F.organicPlaybackContext.isLivePlayback=de(C.yu.get(),1).PB;var V;F.organicPlaybackContext.isMdxPlayback=(V=de(C.yu.get(),1))==null?void 0:V.isMdxPlayback; var M;if((M=de(C.yu.get(),1))==null?0:M.daiEnabled)F.organicPlaybackContext.isDaiContent=!0;var x;if(V=(x=de(C.yu.get(),2))==null?void 0:x.clientPlaybackNonce)F.adVideoPlaybackContext={adVideoCpn:V};F&&(a.externalContext=F);A.adClientData=a;w&&(A.serializedSlotAdServingData=w.serializedSlotAdServingDataEntry);q&&(A.serializedAdServingData=q.serializedAdServingDataEntry);c&&(A.errorInfo=c);g.ip("adsClientStateChange",{adsClientEvent:A})}}; L&&L>0?g.B4(g.To(),function(){return r()},L):r()}catch(F){s$(this.Qu.get(),"html5_log_pacf_logging_errors")&&g.B4(g.To(),function(){Fo(F instanceof Error?F:String(F),h,W,{pacf_message:"exception during pacf logging"})})}};var Wks=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.G(w8,ly);g.I=w8.prototype; g.I.QG=function(B,z,T){ly.prototype.QG.call(this,B,z,T);M_(this.Qu.get())&&(T={},this.context.Au.wF("pacf",(T.et=B,T.st=z.slotType,T.si=z.slotId,T)))}; g.I.a_=function(B,z,T,R){var h=Wks.has(B);ly.prototype.a_.call(this,B,z,T,R);M_(this.Qu.get(),h)&&(R={},this.context.Au.wF("pacf",(R.et=B,R.st=z.slotType,R.si=z.slotId,R.lt=T==null?void 0:T.layoutType,R.li=T==null?void 0:T.layoutId,R.p_ac=T==null?void 0:T.layoutId,R)))}; g.I.lx=function(B,z,T,R,h){ly.prototype.lx.call(this,B,z,T,R,h);M_(this.Qu.get())&&(T={},this.context.Au.wF("pacf",(T.et=B,T.ot=z,T.ss=R==null?void 0:R.length,T)))}; g.I.AB=function(B,z,T,R){ly.prototype.AB.call(this,B,z,T,R);if(M_(this.Qu.get())){var h={};this.context.Au.wF("pacf",(h.et=B,h.tt=T.trigger.triggerType,h.tc=T.category,h.st=z.slotType,h.si=z.slotId,h.lt=R==null?void 0:R.layoutType,h.li=R==null?void 0:R.layoutId,h.p_ac=R==null?void 0:R.layoutId,h))}}; g.I.Xw=function(B,z,T,R){ly.prototype.Xw.call(this,B,z,T,R);if(M_(this.Qu.get(),!0)){var h={};this.context.Au.wF("perror",(h.ert=B,h.erm=z,h.st=T.slotType,h.si=T.slotId,h.lt=R==null?void 0:R.layoutType,h.li=R==null?void 0:R.layoutId,h.p_ac=R==null?void 0:R.layoutId,h))}}; g.I.Bq=function(B,z,T,R,h,W,b,l,w,q,c){var L=this.Qu.get();g.JS(L.j.K())?(L=this.Qu.get(),L=g.rk(L.j.K().experiments,"H5_async_logging_delay_ms")):L=void 0;ly.prototype.Bq.call(this,B,z,T,R,h,W,b,l,w,q,c,L)};qh.prototype.clear=function(){this.T.clear()};g.I=iy.prototype;g.I.state=function(){return this.dR==="fulfilled"?{state:"fulfilled",value:this.result}:this.Xv()?{state:"rejected",reason:this.error}:{state:"pending"}}; g.I.Xv=function(){return this.dR==="rejected"}; g.I.wait=function(){var B=this;return function T(){return kr(T,function(R){if(R.U==1)return g.MB(R,2),g.P(R,{Ax:B},4);if(R.U!=2)return R.return(R.T);g.$r(R);return g.Pb(R,0)})}()}; g.I.XU=function(B){LX(B)||cM(B)?IL(CX(B),this.XU.bind(this),this.reject.bind(this)):(this.dR="fulfilled",this.result=B,F7(this))}; g.I.reject=function(B){this.dR="rejected";this.error=B;F7(this)}; var cM=Ht(function(B){return QzF(B)?B instanceof iy:!1});Object.freeze({H6f:function(B){var z=Mh(B);return IL(UQ(z,function(T){return z[T].Xv()}),function(T){return Number.isNaN(T)?z.map(function(R){return R.state().value}):z[T]})}, mdE:function(B){var z=Mh(B);return IL(UQ(z),function(){return z.map(function(T){return T.state()})})}, Z6u:function(B){var z=Mh(B);return IL(UQ(z,function(T){return z[T].dR==="fulfilled"}),function(T){return Number.isNaN(T)?r8(new AggregateError(z.map(function(R){return R.state().reason}))):z[T].state().value})}, JAE:function(B){var z=Mh(B);return IL(UQ(z,function(){return!0}),function(T){return z[T]})}});var Vw=window.Jsu||"en";g.I=JT.prototype;g.I.gK=function(B){this.client=B}; g.I.KZ=function(B,z){var T=this;z=z===void 0?{}:z;g.BP(function(){var R,h,W,b=((R=g.u(B==null?void 0:B.commandMetadata,g.Gw))==null?void 0:R.rootVe)||((h=g.u(B==null?void 0:B.commandMetadata,MzI))==null?void 0:(W=h.screenVisualElement)==null?void 0:W.uiType);if(b){R=g.u(B==null?void 0:B.commandMetadata,Oy7);if(R==null?0:R.parentTrackingParams){var l=g.Vl(R.parentTrackingParams);if(R.parentCsn)var w=R.parentCsn}else z.clickedVisualElement?l=z.clickedVisualElement:B.clickTrackingParams&&(l=g.Vl(B.clickTrackingParams)); a:{R=g.u(B,g.E2);h=g.u(B,kRK);if(R){if(h=GOP(R,"VIDEO")){R={token:h,videoId:R.videoId};break a}}else if(h&&(R=GOP(h,"PLAYLIST"))){R={token:R,playlistId:h.playlistId};break a}R=void 0}z=Object.assign({},{cttAuthInfo:R,parentCsn:w},z);if(g.ac("expectation_logging")){var q;z.loggingExpectations=((q=g.u(B==null?void 0:B.commandMetadata,MzI))==null?void 0:q.loggingExpectations)||void 0}$T(T,b,l,z)}else g.KV(new g.Z_("Error: Trying to create a new screen without a rootVeType",B))})()}; g.I.clickCommand=function(B,z,T){B=B.clickTrackingParams;T=T===void 0?0:T;B?(T=g.gd(T===void 0?0:T))?(zt(this.client,T,g.Vl(B),z),z=!0):z=!1:z=!1;return z}; g.I.stateChanged=function(B,z,T){this.visualElementStateChanged(g.Vl(B),z,T===void 0?0:T)}; g.I.visualElementStateChanged=function(B,z,T){T=T===void 0?0:T;T===0&&this.U.has(T)?this.J.push([B,z]):VAB(this,B,z,T)};DR.prototype.fetch=function(B,z,T){var R=this,h=goK(B,z,T);return new Promise(function(W,b){function l(){if(T==null?0:T.CL)try{var q=R.handleResponse(B,h.status,h.response,T);W(q)}catch(c){b(c)}else W(R.handleResponse(B,h.status,h.response,T))} h.onerror=l;h.onload=l;var w;h.send((w=z.body)!=null?w:null)})}; DR.prototype.handleResponse=function(B,z,T,R){T=T.replace(")]}'","");try{var h=JSON.parse(T)}catch(W){g.KV(new g.Z_("JSON parsing failed after XHR fetch",B,z,T));if((R==null?0:R.CL)&&T)throw new g.bB(1,"JSON parsing failed after XHR fetch");h={}}z!==200&&(g.KV(new g.Z_("XHR API fetch failed",B,z,T)),h=Object.assign({},h,{errorMetadata:{status:z}}));return h};kT.getInstance=function(){var B=g.sH("ytglobal.storage_");B||(B=new kT,g.Zz("ytglobal.storage_",B));return B}; kT.prototype.estimate=function(){var B,z,T;return g.D(function(R){B=navigator;return((z=B.storage)==null?0:z.estimate)?R.return(B.storage.estimate()):((T=B.webkitTemporaryStorage)==null?0:T.queryUsageAndQuota)?R.return(p8H()):R.return()})}; g.Zz("ytglobal.storageClass_",kT);wj.prototype.J6=function(B){this.handleError(B)}; wj.prototype.logEvent=function(B,z){switch(B){case "IDB_DATA_CORRUPTED":g.ac("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":g.ac("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":Pnz(this,z);break;case "TRANSACTION_ENDED":this.Y&&Math.random()<=.1&&this.T("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":B= Object.assign({},z,{hasWindowUnloaded:this.U}),this.T("idbTransactionAborted",B)}};var Ny={},oLz=g.zm("yt-player-local-media",{DG:(Ny.index={mU:2},Ny.media={mU:2},Ny.captions={mU:5},Ny),shared:!1,upgrade:function(B,z){z(2)&&(g.p1(B,"index"),g.p1(B,"media"));z(5)&&g.p1(B,"captions");z(6)&&($i(B,"metadata"),$i(B,"playerdata"))}, version:5});var bFq={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},tE;a:{var jn=g.Va();jn=jn.toLowerCase();if(g.IP(jn,"android")){var Y9K=jn.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Y9K){var lkP=parseFloat(Y9K[1]);if(lkP<100){tE=lkP;break a}}var wtU=jn.match("("+Object.keys(bFq).join("|")+")");tE=wtU?bFq[wtU[0]]:0}else tE=void 0}var $C=tE,pY=$C>=0;var HpK=window;var xCd=CF(function(){var B,z;return(z=(B=window).matchMedia)==null?void 0:z.call(B,"(prefers-reduced-motion: reduce)").matches});var mG;g.KX=new PR;mG=0;var Bo=um5()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Zs?!0:!1;var HM={ug:function(B,z){var T=B[0];B[0]=B[z%B[Y[9]]];B[z%B[Y[9]]]=T}, kO:function(B){B[Y[38]]()}, nG:function(B,z){B[Y[47]](0,z)}};var L6Y={u_f:"adunit",Xvm:"detailpage",LPD:"editpage",Gom:"embedded",O1i:"leanback",X3J:"previewpage",DLZ:"profilepage",C$:"unplugged",BIu:"playlistoverview",YGd:"sponsorshipsoffer",w3G:"shortspage",bki:"handlesclaiming",y6D:"immersivelivepage",bYF:"creatormusic",IAE:"immersivelivepreviewpage",Mzi:"admintoolyurt",E3f:"shortsaudiopivot",UZK:"consumption"};var f$X=2592E3;var Xb,q9F,Uc;Xb={};g.ZR=(Xb.STOP_EVENT_PROPAGATION="html5-stop-propagation",Xb.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Xb.IV_DRAWER_OPEN="ytp-iv-drawer-open",Xb.MAIN_VIDEO="html5-main-video",Xb.VIDEO_CONTAINER="html5-video-container",Xb.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Xb.HOUSE_BRAND="house-brand",Xb);q9F={};Uc=(q9F.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",q9F.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",q9F);var EoB={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var TtK={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},Rgl={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"},Eu5={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var DQY={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.ba.prototype.getLanguageInfo=function(){return this.HB}; g.ba.prototype.getXtags=function(){if(!this.xtags){var B=this.id.split(";");B.length>1&&(this.xtags=B[1])}return this.xtags}; g.ba.prototype.toString=function(){return this.HB.name}; g.ba.prototype.getLanguageInfo=g.ba.prototype.getLanguageInfo;Yg.prototype.equals=function(B){return this.U===B.U&&this.T===B.T&&this.Y===B.Y&&this.reason===B.reason&&(!w$||this.kd===B.kd)}; Yg.prototype.isLocked=function(){return this.Y&&!!this.U&&this.U===this.T}; Yg.prototype.compose=function(B){if(B.Y&&q$(B))return O2;if(B.Y||q$(this))return B;if(this.Y||q$(B))return this;var z=this.U&&B.U?Math.max(this.U,B.U):this.U||B.U,T=this.T&&B.T?Math.min(this.T,B.T):this.T||B.T;z=Math.min(z,T);var R=0;w$&&(R=this.kd!==0&&B.kd!==0?Math.min(this.kd,B.kd):this.kd===0?B.kd:this.kd);return w$&&z===this.U&&T===this.T&&R===this.kd||!w$&&z===this.U&&T===this.T?this:w$?new Yg(z,T,!1,T===this.T&&R===this.kd?this.reason:B.reason,R):new Yg(z,T,!1,T===this.T?this.reason:B.reason)}; Yg.prototype.W=function(B){return!B.video||w$&&this.kd!==0&&this.kd=0}; g.I.p6=function(){var B=this.segments[this.segments.length-1];return B?B.endTime:NaN}; g.I.NW=function(){return this.segments[0].startTime}; g.I.EA=function(){return this.segments.length}; g.I.Jg=function(){return 0}; g.I.Yh=function(B){return(B=this.Hr(B))?B.FE:-1}; g.I.nm=function(B){return(B=this.w_(B))?B.sourceURL:""}; g.I.getStartTime=function(B){return(B=this.w_(B))?B.startTime:0}; g.I.QM=function(B){return this.getStartTime(B)+this.getDuration(B)}; g.I.zS=Wb(1);g.I.isLoaded=function(){return this.segments.length>0}; g.I.w_=function(B){if(this.T&&this.T.FE===B)return this.T;B=g.$P(this.segments,new xg(B,0,0,0,""),function(z,T){return z.FE-T.FE}); return this.T=B>=0?this.segments[B]:null}; g.I.Hr=function(B){if(this.T&&this.T.startTime<=B&&B=0?this.segments[B]:this.segments[Math.max(0,-B-2)]}; g.I.append=function(B){if(B.length)if(B=g.Mg(B),this.segments.length){var z=this.segments.length?g.c7(this.segments).endTime:0,T=B[0].FE-this.CF();T>1&&azz(this.segments);for(T=T>0?0:-T+1;TB.FE&&this.index.dY()<=B.FE+1}; g.I.update=function(B,z,T){this.index.append(B);PFK(this.index,T);B=this.index;B.U=z;B.Y="update"}; g.I.Fh=function(){return this.G9()?!0:$H.prototype.Fh.call(this)}; g.I.BZ=function(B,z){var T=this.index.nm(B),R=this.index.getStartTime(B),h=this.index.getDuration(B),W;z?h=W=0:W=this.info.kd>0?this.info.kd*h:1E3;return new OG([new kH(3,this,void 0,"liveCreateRequestInfoForSegment",B,R,h,0,W,!z)],T)}; g.I.XM=function(){return this.G9()?0:this.initRange.length}; g.I.gr=function(){return!1};sG.prototype.update=function(B){var z=void 0;this.U&&(z=this.U);var T=new sG,R=Array.from(B.getElementsByTagName("S"));if(R.length){var h=+Zn(B,"timescale")||1,W=(+R[0].getAttribute("t")||0)/h,b=+Zn(B,"startNumber")||0;T.W=W;var l=z?z.startSecs+z.Dc:0,w=Date.parse(Q_z(Zn(B,"yt:segmentIngestTime")))/1E3;T.V=B.parentElement.tagName==="SegmentTemplate";T.V&&(T.L=Zn(B,"media"));B=z?b-z.FE:1;T.X=B>0?0:-B+1;B=g.d(R);for(R=B.next();!R.done;R=B.next()){R=R.value;for(var q=+R.getAttribute("d")/h,c=(+R.getAttribute("yt:sid")|| 0)/h,L=+R.getAttribute("r")||0,C=0;C<=L;C++)if(z&&b<=z.FE)b++;else{var r=new MxB(b,l,q,w+c,W);T.T.push(r);var F=R;var A=h,a=r.startSecs;r=F.getAttribute("yt:cuepointTimeOffset");var V=F.getAttribute("yt:cuepointDuration");if(r&&V){r=Number(r);a=-r/A+a;A=Number(V)/A;V=F.getAttribute("yt:cuepointContext")||null;var M=F.getAttribute("yt:cuepointIdentifier")||"";F=F.getAttribute("yt:cuepointEvent")||"";F=new O8(a,A,V,M,cmU[F]||"unknown",r)}else F=null;F&&T.Y.push(F);b++;l+=q;W+=q;w+=q+c}}T.T.length&& (T.U=g.c7(T.T))}this.X=T.X;this.U=T.U||this.U;g.Vq(this.T,T.T);g.Vq(this.Y,T.Y);this.V=T.V;this.L=T.L;this.W===-1&&(this.W=T.getStreamTimeOffset())}; sG.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.G(SI,g.vK);g.I=SI.prototype;g.I.kC=function(){return this.qQ}; g.I.bZ=function(B,z){B=Bz(this,B);return B>=0&&(z||!this.segments[B].pending)}; g.I.dY=function(){return this.Zw?this.segments.length?this.Hr(this.NW()).FE:-1:g.vK.prototype.dY.call(this)}; g.I.NW=function(){if(this.qh)return 0;if(!this.Zw)return g.vK.prototype.NW.call(this);if(!this.segments.length)return 0;var B=Math.max(g.c7(this.segments).endTime-this.pL,0);return this.bz>0&&this.Hr(B).FE0)return this.Ca/1E3;if(!this.segments.length)return g.vK.prototype.p6.call(this);var B=this.CF();if(!this.Zw||B<=this.segments[this.segments.length-1].FE)B=this.segments[this.segments.length-1];else{var z=this.segments[this.segments.length-1];B=new xg(B,Math.max(0,z.startTime-(z.FE-B)*this.qQ),this.qQ,0,"sq/"+B,void 0,void 0,!0)}return this.qh?Math.min(this.pL,B.endTime):B.endTime}; g.I.EA=function(){return this.Zw?this.segments.length?this.CF()-this.dY()+1:0:g.vK.prototype.EA.call(this)}; g.I.CF=function(){var B=Math.min(this.VW,Math.max(g.vK.prototype.CF.call(this),this.qa)),z=this.pL*1E3;z=this.Ca>0&&this.Ca0&&this.qa>0&&!z&&(z=this.Hr(this.pL))&&(B=Math.min(z.FE-1,B));return B}; g.I.rT=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.I.FY=function(B){var z=Bz(this,B.FE);if(z>=0)this.segments[z]=B;else if(this.segments.splice(-(z+1),0,B),this.uH&&B.FE%(300/this.qQ)===0){var T=this.segments[0].FE,R=Math.floor(this.uH/this.qQ);B=B.FE-R;z=-(z+1)-R;z>0&&B>T&&(this.segments=this.segments.slice(z))}}; g.I.Ox=function(){return this.qa}; g.I.nA=function(B){return EG?!this.U&&B>=0&&this.CF()<=B:g.vK.prototype.nA.call(this,B)}; g.I.Hr=function(B){if(!this.Zw)return g.vK.prototype.Hr.call(this,B);if(!this.segments.length)return null;var z=this.segments[this.segments.length-1];if(B=z.endTime)z=z.FE+Math.floor((B-z.endTime)/this.qQ+1);else{z=P7(this.segments,function(R){return B=R.endTime?1:0}); if(z>=0)return this.segments[z];var T=-(z+1);z=this.segments[T-1];T=this.segments[T];z=Math.floor((B-z.endTime)/((T.startTime-z.endTime)/(T.FE-z.FE-1))+1)+z.FE}return this.w_(z)}; g.I.w_=function(B){if(!this.Zw)return g.vK.prototype.w_.call(this,B);if(!this.segments.length)return null;var z=Bz(this,B);if(z>=0)return this.segments[z];var T=-(z+1);z=this.qQ;if(T===0)var R=Math.max(0,this.segments[0].startTime-(this.segments[0].FE-B)*z);else T===this.segments.length?(R=this.segments[this.segments.length-1],R=R.endTime+(B-R.FE-1)*z):(R=this.segments[T-1],z=this.segments[T],z=(z.startTime-R.endTime)/(z.FE-R.FE-1),R=R.endTime+(B-R.FE-1)*z);return new xg(B,R,z,0,"sq/"+B,void 0,void 0, !0)}; var EG=!1;g.G(z5,XU);g.I=z5.prototype;g.I.Pf=function(){return!0}; g.I.Fh=function(){return!0}; g.I.bL=function(B){return this.hT()&&B.Y&&!B.V||!B.T.index.nA(B.FE)}; g.I.HT=function(){}; g.I.uL=function(B,z){return typeof B!=="number"||isFinite(B)?XU.prototype.uL.call(this,B,z===void 0?!1:z):new OG([new kH(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.aq,void 0,this.aq*this.info.kd)],"")}; g.I.BZ=function(B,z){var T=T===void 0?!1:T;if(this.index.bZ(B))return XU.prototype.BZ.call(this,B,z);var R=this.index.getStartTime(B),h=Math.round(this.aq*this.info.kd),W=this.aq;z&&(W=h=0);return new OG([new kH(T?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",B,R,W,void 0,h,!z)],B>=0?"sq/"+B:"")};g.G(T5,$H);g.I=T5.prototype;g.I.eK=function(){return!1}; g.I.hT=function(){return!1}; g.I.Pf=function(){return!1}; g.I.HT=function(){return new OG([new kH(1,this,void 0,"otfInit")],this.V)}; g.I.eX=function(){return null}; g.I.dC=function(B){this.bL(B);return vS5(this,uK(B),!1)}; g.I.uL=function(B,z){z=z===void 0?!1:z;B=this.index.Yh(B);z&&(B=Math.min(this.index.CF(),B+1));return vS5(this,B,!0)}; g.I.J1=function(B){B.info.type===1&&(this.T||(this.T=QA(B.T)),B.U&&B.U.uri==="http://youtube.com/streaming/otf/durations/112015"&&DMX(this,B.U))}; g.I.bL=function(B){return B.Y===0?!0:this.index.CF()>B.FE&&this.index.dY()<=B.FE+1}; g.I.XM=function(){return 0}; g.I.gr=function(){return!1};g.RH.prototype.info=function(){}; g.RH.prototype.debug=function(){}; g.RH.prototype.T=function(B){hc.apply(null,[5,this.tag,B].concat(g.Q(g.K5.apply(1,arguments))))}; var mMK=new Map,H7z=new Map,nSX=new function(){var B=this;this.T=new Map;this.Yi={SMJ:function(){return B.T}}};Wz.prototype.YL=function(){return this.T.YL()};g.I=g.iP.prototype;g.I.bZ=function(B){return B<=this.CF()}; g.I.Jg=function(B){return this.offsets[B]}; g.I.getStartTime=function(B){return this.startTicks[B]/this.T}; g.I.QM=function(B){return this.getStartTime(B)+this.getDuration(B)}; g.I.zS=Wb(0);g.I.gt=function(){return NaN}; g.I.getDuration=function(B){B=this.nN(B);return B>=0?B/this.T:-1}; g.I.nN=function(B){return B+1=0}; g.I.p6=function(){return this.U?this.startTicks[this.count]/this.T:NaN}; g.I.NW=function(){return 0}; g.I.EA=function(){return this.count}; g.I.nm=function(){return""}; g.I.Yh=function(B){B=g.$P(this.startTicks.subarray(0,this.count),B*this.T);return B>=0?B:Math.max(0,-B-2)}; g.I.isLoaded=function(){return this.CF()>=0}; g.I.yd=function(B,z){if(B>=this.CF())return 0;var T=0;for(z=this.getStartTime(B)+z;Bthis.getStartTime(B);B++)T=Math.max(T,s_r(this,B)/this.getDuration(B));return T}; g.I.resize=function(B){B+=2;var z=this.offsets;this.offsets=new Float64Array(B+1);var T=this.startTicks;this.startTicks=new Float64Array(B+1);for(B=0;B0&&B&&(T=T.range.end+1,B=Math.min(B,this.info.contentLength-T),B>0&&R.push(new kH(4,this,vL(T,B),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z)));return new OG(R)}; g.I.J1=function(B){if(B.info.type===1){if(this.T)return;this.T=QA(B.T)}else if(B.info.type===2){if(this.V||this.index.CF()>=0)return;if(g.Ez(this.info)){var z=this.index,T=B.YL();B=B.info.range.start;var R=g.Zx(T,0,1936286840);T=NtY(R);z.T=T.timescale;var h=T.VF;z.offsets[0]=T.kc+B+R.size;z.startTicks[0]=h;z.U=!0;B=T.oW.length;for(R=0;R0&&B===W[0].nJ)for(B=0;B=z+T)break}h.length||(B=new g.Z_("b189619593",""+B,""+z,""+T),g.kV(B));return new OG(h)}; g.I.oa=function(B){for(var z=this.GE(B.info),T=B.info.range.start+B.info.U,R=[],h=0;h=this.index.Jg(T+1);)T++;return this.A4(T,z,B.Y).oK}; g.I.bL=function(B){B.tY();return this.Fh()?!0:B.range.end+1this.info.contentLength&&(z=new PL(z.start,this.info.contentLength-1)),new OG([new kH(4,B.T,z,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,B.clipId)]);B.type===4&&(B=this.GE(B),B=B[B.length-1]);var T=0,R=B.range.start+B.U+B.Y;B.type===3&&(B.tY(),T=B.FE,R===B.range.end+1&&(T+=1));return this.A4(T,R,z)}; g.I.dC=function(){return null}; g.I.uL=function(B,z){z=z===void 0?!1:z;B=this.index.Yh(B);z&&(B=Math.min(this.index.CF(),B+1));return this.A4(B,this.index.Jg(B),0,void 0)}; g.I.eK=function(){return!0}; g.I.hT=function(){return!0}; g.I.Pf=function(){return!1}; g.I.XM=function(){return this.indexRange.length+this.initRange.length}; g.I.gr=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var en={},Lil=(en.COLOR_PRIMARIES_BT709="bt709",en.COLOR_PRIMARIES_BT2020="bt2020",en.COLOR_PRIMARIES_UNKNOWN=null,en.COLOR_PRIMARIES_UNSPECIFIED=null,en),sa={},SIb=(sa.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",sa.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",sa.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",sa.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",sa.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,sa.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,sa);g.Cj.prototype.getName=function(){return this.name}; g.Cj.prototype.getId=function(){return this.id}; g.Cj.prototype.getIsDefault=function(){return this.isDefault}; g.Cj.prototype.toString=function(){return this.name}; g.Cj.prototype.getName=g.Cj.prototype.getName;g.Cj.prototype.getId=g.Cj.prototype.getId;g.Cj.prototype.getIsDefault=g.Cj.prototype.getIsDefault;var R95=/action_display_post/;var h9r,FO,IH;g.G(G5,g.Cl);g.I=G5.prototype;g.I.isLoading=function(){return this.state===1}; g.I.uo=function(){return this.state===3}; g.I.f4d=function(B){var z=B.getElementsByTagName("Representation");if(B.getElementsByTagName("SegmentList").length>0||B.getElementsByTagName("SegmentTemplate").length>0){this.PB=this.U=!0;this.timeline||(this.timeline=new gSH);PrK(this.timeline,B);this.publish("refresh");for(B=0;B=0?c=xH(C):L=L+"?range="+C}w.call(l,new xg(q.FE,q.startSecs,q.Dc,q.T,L,c,q.U))}R=h}T.update(R,this.isLive,this.IK)}xMl(this.timeline);return!0}this.duration=VxP(Zn(B,"mediaPresentationDuration")); a:{for(B=0;B0))return this.D4()-B}}B=this.T;for(var z in B){var T=B[z].index;if(T.isLoaded()&&!R_(B[z].info.mimeType))return T.NW()}return 0}; g.I.getStreamTimeOffset=function(){return this.L}; g.I.gt=function(B){for(var z in this.T){var T=this.T[z].index;if(T.isLoaded()){var R=T.Yh(B),h=T.gt(R);if(h)return h+B-T.getStartTime(R)}}return NaN}; var xf=null,LkR,vz=!((LkR=navigator.mediaCapabilities)==null||!LkR.decodingInfo),G2z={commentary:1,alternate:2,dub:3,main:4};var qN=new Set,D6=new Map;me.prototype.clone=function(B){return new me(this.flavor,B,this.U,this.experiments)}; me.prototype.NS=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; me.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 Cmg={},Z6=(Cmg.playready=["com.youtube.playready","com.microsoft.playready"],Cmg.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Cmg),Ea={},Q7r=(Ea.widevine="DRM_SYSTEM_WIDEVINE",Ea.fairplay="DRM_SYSTEM_FAIRPLAY",Ea.playready="DRM_SYSTEM_PLAYREADY",Ea),Sn={},rmh=(Sn.widevine=1,Sn.fairplay=2,Sn.playready=3,Sn);var E6;g.G(eg,g.K); eg.prototype.initialize=function(B,z){for(var T=this,R=g.d(Object.keys(B)),h=R.next();!h.done;h=R.next()){h=g.d(B[h.value]);for(var W=h.next();!W.done;W=h.next())if(W=W.value,W.Ft)for(var b=g.d(Object.keys(W.Ft)),l=b.next();!l.done;l=b.next()){var w=l.value;l=w;w=Z6[w];!w&&this.D("html5_enable_vp9_fairplay")&&l==="fairplay"&&(w=["com.youtube.fairplay.sbdl"]);if(w){w=g.d(w);for(var q=w.next();!q.done;q=w.next())q=q.value,this.Y[q]=this.Y[q]||new me(l,q,W.Ft[l],this.bO.experiments),this.T[l]=this.T[l]|| {},this.T[l][W.mimeType]=!0}}}XN()&&(this.Y["com.youtube.fairplay"]=new me("fairplay","com.youtube.fairplay","",this.bO.experiments),this.D("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=P5d(z,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay")&&!0,this.D("html5_enable_vp9_fairplay")).filter(function(c){return!!T.Y[c]})}; eg.prototype.D=function(B){return this.bO.experiments.Cf(B)};var o6p={"":"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"};nUH.prototype.D=function(B){return this.experiments.Cf(B)};var rHK={RED:"red",GrJ:"white"};uA5.prototype.Cf=function(B){B=this.flags[B];JSON.stringify(B);return B==="true"};var Okl=Promise.resolve(),Xqr=window.queueMicrotask?window.queueMicrotask.bind(window):Ner;Tk.prototype.canPlayType=function(B,z){B=B.canPlayType?B.canPlayType(z):!1;XJ?B=B||Fkq[z]:$C===2.2?B=B||IkP[z]:to()&&(B=B||GJg[z]);return!!B}; Tk.prototype.isTypeSupported=function(B){return this.N?window.cast.receiver.platform.canDisplayType(B):xb(B)}; var IkP={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},GJg={"application/x-mpegURL":"maybe"},Fkq={"application/x-mpegURL":"maybe"};g.G(Wo,g.Cl);Wo.prototype.add=function(B,z){if(!this.items[B]&&(z.B6||z.sZ||z.S9)){var T=this.items,R=z;Object.isFrozen&&!Object.isFrozen(z)&&(R=Object.create(z),Object.freeze(R));T[B]=R;this.publish("vast_info_card_add",B)}}; Wo.prototype.remove=function(B){var z=this.get(B);delete this.items[B];return z}; Wo.prototype.get=function(B){return this.items[B]||null}; Wo.prototype.isEmpty=function(){return g.Ep(this.items)};var YC;lq.prototype.add=function(B){if(this.pos+20>this.data.length){var z=new Uint8Array(this.data.length*2);z.set(this.data);this.data=z}for(;B>31;)this.data[this.pos++]=YC[(B&31)+32],B>>=5;this.data[this.pos++]=YC[B|0]}; lq.prototype.Y0=function(){return g.pv(this.data.subarray(0,this.pos))}; lq.prototype.reset=function(){this.pos=0};qj.prototype.ew=function(B,z){var T=Math.pow(this.alpha,B);this.T=z*(1-T)+T*this.T;this.U+=B}; qj.prototype.EJ=function(){return this.T/(1-Math.pow(this.alpha,this.U))};iq.prototype.ew=function(B,z){for(var T=0;T<10;T++){var R=this.T[T],h=R+(T===0?B:0),W=1*Math.pow(2,T);if(h<=W)break;R=Math.min(1,(h-W*.5)/R);for(h=0;h<16;h++)W=this.values[T*16+h]*R,this.values[(T+1)*16+h]+=W,this.T[T+1]+=W,this.values[T*16+h]-=W,this.T[T]-=W}R=T=0;h=8192;z>8192&&(T=Math.ceil(Math.log(z/8192)/Math.log(2)),R=8192*Math.pow(2,T-1),h=R*2);T+2>16?this.values[15]+=B:(z=(z-R)/(h-R),this.values[T]+=B*(1-z),this.values[T+1]+=B*z);this.T[0]+=B}; iq.prototype.EJ=function(){var B=B===void 0?this.U:B;var z=z===void 0?.02:z;var T=T===void 0?.98:T;for(var R=this.Y,h=0;h<16;h++)R[h]=this.values[h];h=this.T[0];for(var W=1;W<11;W++){var b=this.T[W];if(b===0)break;for(var l=Math.min(1,(B-h)/b),w=0;w<16;w++)R[w]+=this.values[W*16+w]*l;h+=b*l;if(l<1)break}for(W=B=b=0;W<16;W++){l=b+R[W]/h;B+=Math.max(0,Math.min(l,T)-Math.max(b,z))*(W>0?8192*Math.pow(2,W-1):0);if(l>T)break;b=l}return B/(T-z)};co.prototype.ew=function(B,z){B=Math.min(this.T,Math.max(1,Math.round(B*this.resolution)));B+this.U>=this.T&&(this.Y=!0);for(;B--;)this.values[this.U]=z,this.U=(this.U+1)%this.T;this.KL=!0}; co.prototype.percentile=function(B){var z=this;if(!this.Y&&this.U===0)return 0;this.KL&&(g.xP(this.V,function(T,R){return z.values[T]-z.values[R]}),this.KL=!1); return this.values[this.V[Math.round(B*((this.Y?this.T:this.U)-1))]]||0}; co.prototype.EJ=function(){return this.X?(this.percentile(this.W-this.X)+this.percentile(this.W)+this.percentile(this.W+this.X))/3:this.percentile(this.W)};g.G(LY,g.K);LY.prototype.Kf=function(){var B;(B=this.cD)==null||B.start();if(Aq(this)&&this.policy.J){var z;(z=this.xi)==null||z.yy()}};b$z.prototype.D=function(B){return this.experiments.Cf(B)};g.G(lml,g.K);var CiP="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),drY={Rqd:"caoe",XVJ:"capsv",HXd:"cbrand",mnE:"cbr",JuO:"cbrver",fnu:"cchip",hqE:"ccappver",vhZ:"ccrv",E2I:"cfrmver",r6E:"c",HkK:"cver",tlJ:"ctheme",G5E:"cplayer",GGO:"cmodel",qI:"cnetwork",aOJ:"cos",OS_VERSION:"cosver",Yvf:"cplatform",tKm:"crqyear"};g.G(Ho,g.K);g.I=Ho.prototype;g.I.D=function(B){return this.experiments.Cf(B)}; g.I.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.I.getVideoUrl=function(B,z,T,R,h,W,b){z={list:z};T&&(h?z.time_continue=T:z.t=T);T=b?"music.youtube.com":g.Of(this);h=T==="www.youtube.com";!W&&R&&h?W="https://youtu.be/"+B:g.vo(this)?(W="https://"+T+"/fire",z.v=B):(W&&h?(W=this.protocol+"://"+T+"/shorts/"+B,R&&(z.feature="share")):(W=this.protocol+"://"+T+"/watch",z.v=B),XJ&&(B=fc5())&&(z.ebc=B));return g.Qn(W,z)}; g.I.getVideoEmbedCode=function(B,z,T,R){z="https://"+g.Of(this)+"/embed/"+z;R&&(z=g.Qn(z,{list:R}));R=T.width;T=T.height;z=F8(z);B=F8(B!=null?B:"YouTube video player");return'')}; g.I.supportsGaplessAudio=function(){return g.PG&&!XJ&&fL()>=74||g.jg&&g.QQ(68)?!0:!1}; g.I.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.Kf||g.Ax?!1:!0}; g.I.getPlayerType=function(){return this.T.cplayer}; g.I.L4=function(){return this.r3}; var MZz=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],GIz=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],amX=[19];var Bv={},yHX=(Bv["140"]={numChannels:2},Bv["141"]={numChannels:2},Bv["251"]={audioSampleRate:48E3,numChannels:2},Bv["774"]={audioSampleRate:48E3,numChannels:2},Bv["380"]={numChannels:6},Bv["328"]={numChannels:6},Bv["773"]={},Bv),zM={},VZK=(zM["1"]='video/mp4; codecs="av01.0.08M.08"',zM["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',zM["1e"]='video/mp4; codecs="av01.0.08M.08"',zM["9"]='video/webm; codecs="vp9"',zM["("]='video/webm; codecs="vp9"',zM["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', zM.h='video/mp4; codecs="avc1.64001e"',zM.H='video/mp4; codecs="avc1.64001e"',zM.o='audio/webm; codecs="opus"',zM.a='audio/mp4; codecs="mp4a.40.2"',zM.ah='audio/mp4; codecs="mp4a.40.2"',zM.mac3='audio/mp4; codecs="ac-3"; channels=6',zM.meac3='audio/mp4; codecs="ec-3"; channels=6',zM.i='audio/mp4; codecs="iamf.001.001.Opus"',zM),TM={},Qpl=(TM["337"]={width:3840,height:2160,bitrate:3E7,fps:30},TM["336"]={width:2560,height:1440,bitrate:15E6,fps:30},TM["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, TM["702"]={width:7680,height:4320,bitrate:4E7,fps:60},TM["701"]={width:3840,height:2160,bitrate:2E7,fps:60},TM["700"]={width:2560,height:1440,bitrate:1E7,fps:60},TM["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},TM["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},TM["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},TM["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, TM["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},TM["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},TM["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},TM["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},TM["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},TM["315"]={width:3840,height:2160,bitrate:2E7,fps:60},TM["308"]={width:2560, height:1440,bitrate:1E7,fps:60},TM["303"]={width:1920,height:1080,bitrate:5E6,fps:60},TM["302"]={width:1280,height:720,bitrate:25E5,fps:60},TM["299"]={width:1920,height:1080,bitrate:75E5,fps:60},TM["298"]={width:1280,height:720,bitrate:35E5,fps:60},TM["571"]={width:7680,height:4320,bitrate:3E7,fps:60},TM["401"]={width:3840,height:2160,bitrate:15E6,fps:60},TM["400"]={width:2560,height:1440,bitrate:75E5,fps:60},TM["399"]={width:1920,height:1080,bitrate:2E6,fps:60},TM["398"]={width:1280,height:720,bitrate:1E6, fps:60},TM["397"]={width:854,height:480,bitrate:4E5,fps:30},TM["396"]={width:640,height:360,bitrate:25E4,fps:30},TM["787"]={width:1080,height:608,bitrate:2E5,fps:30},TM["788"]={width:1080,height:608,bitrate:4E5,fps:30},TM["572"]={width:7680,height:4320,bitrate:3E7,fps:60},TM["555"]={width:3840,height:2160,bitrate:15E6,fps:60},TM["554"]={width:2560,height:1440,bitrate:75E5,fps:60},TM["553"]={width:1920,height:1080,bitrate:2E6,fps:60},TM["552"]={width:1280,height:720,bitrate:1E6,fps:60},TM["551"]={width:854, height:480,bitrate:4E5,fps:30},TM["550"]={width:640,height:360,bitrate:25E4,fps:30},TM["313"]={width:3840,height:2160,bitrate:8E6,fps:30},TM["271"]={width:2560,height:1440,bitrate:4E6,fps:30},TM["248"]={width:1920,height:1080,bitrate:2E6,fps:30},TM["247"]={width:1280,height:720,bitrate:15E5,fps:30},TM["244"]={width:854,height:480,bitrate:52E4,fps:30},TM["243"]={width:640,height:360,bitrate:28E4,fps:30},TM["137"]={width:1920,height:1080,bitrate:4E6,fps:30},TM["136"]={width:1280,height:720,bitrate:3E6, fps:30},TM["135"]={width:854,height:480,bitrate:1E6,fps:30},TM["385"]={width:1920,height:1080,bitrate:6503313,fps:60},TM["376"]={width:1280,height:720,bitrate:5706960,fps:60},TM["384"]={width:1280,height:720,bitrate:3660979,fps:60},TM["225"]={width:1280,height:720,bitrate:5805E3,fps:30},TM["224"]={width:1280,height:720,bitrate:453E4,fps:30},TM["145"]={width:1280,height:720,bitrate:2682052,fps:30},TM);g.I=YO.prototype;g.I.getInfo=function(){return this.T}; g.I.i5=function(){return null}; g.I.FU=function(){var B=this.i5();return B?(B=g.bA(B.Rx),Number(B.expire)):NaN}; g.I.YH=function(){}; g.I.getHeight=function(){return this.T.video.height};$rY.prototype.build=function(){vYz(this);var B=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],z={};a:if(this.T)var T=this.T;else{T="";for(var R=g.d(this.Y),h=R.next();!h.done;h=R.next())if(h=h.value,h.HB){if(h.HB.getIsDefault()){T=h.HB.getId();break a}T||(T=h.HB.getId())}}R=g.d(this.Y);for(h=R.next();!h.done;h=R.next())if(h=h.value,this.X||!h.HB||h.HB.getId()===T)z[h.itag]||(z[h.itag]=[]),z[h.itag].push(h);T=g.d(this.U);for(R=T.next();!R.done;R=T.next())if(R=R.value,h=z[R.T]){h=g.d(h);for(var W=h.next();!W.done;W= h.next()){var b=B,l=b.push;W=W.value;var w="#EXT-X-MEDIA:TYPE=AUDIO,",q="YES",c="audio";if(W.HB){c=W.HB;var L=c.getId().split(".")[0];L&&(w+='LANGUAGE="'+L+'",');(this.T?this.T===c.getId():c.getIsDefault())||(q="NO");c=c.getName()}L="";R!==null&&(L=R.itag.toString());L=wo(this,W.url,L);w=w+('NAME="'+c+'",DEFAULT='+(q+',AUTOSELECT=YES,GROUP-ID="'))+(xr5(W,R)+'",URI="'+(L+'"'));l.call(b,w)}}T=g.d(this.V);for(R=T.next();!R.done;R=T.next())R=R.value,h=dl7,R=(b=R.HB)?'#EXT-X-MEDIA:URI="'+wo(this,R.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+h+'",LANGUAGE="'+b.getId()+'",NAME="'+b.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,R&&B.push(R);T=this.V.length>0?dl7:void 0;R=g.d(this.U);for(h=R.next();!h.done;h=R.next())h=h.value,l=z[h.T],b=void 0,((b=l)==null?void 0:b.length)>0&&(b=h,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(b.bitrate+l.bitrate)+',CODECS="'+(b.codecs+","+l.codecs+'",RESOLUTION=')+(b.width+"x"+b.height+',AUDIO="')+(xr5(l,b)+'",')+(T?'SUBTITLES="'+T+'",':"")+"CLOSED-CAPTIONS=NONE",b.fps>1&&(l+= ",FRAME-RATE="+b.fps),b.V6&&(l+=",VIDEO-RANGE="+b.V6),B.push(l),B.push(wo(this,h.url,"")));return B.join("\n")}; var dl7="text";g.G(qT,YO);qT.prototype.FU=function(){return this.expiration}; qT.prototype.i5=function(){if(!this.Rx||this.Rx.xd()){var B=this.U.build();B="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(B);this.Rx=new tf(B)}return this.Rx};g.G(ie,YO);ie.prototype.i5=function(){return new tf(this.U.Pu())}; ie.prototype.YH=function(){this.U=$g(this.U)};g.G(c3,YO);c3.prototype.i5=function(){return new tf(this.U)};var R1={},NfK=(R1.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",R1.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",R1.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",R1);g.I=g.Lb.prototype;g.I.getId=function(){return this.id}; g.I.getName=function(){return this.name}; g.I.isServable=function(){return this.T}; g.I.Pu=function(){return this.url}; g.I.getXtags=function(){return this.xtags}; g.I.toString=function(){return this.languageCode+": "+g.Cb(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.I.equals=function(B){return B?this.toString()===B.toString():!1}; g.I.u1=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var spl={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},EYz={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},SUz=/^(\d*)_((\d*)_?(\d*))$/;var zTz={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},TrH={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var ha={},Ams=(ha.ALWAYS=1,ha.BY_REQUEST=3,ha.UNKNOWN=void 0,ha),Wv={},akF=(Wv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Wv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Wv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Wv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Wv);var v2z; v2z=function(B){for(var z=Object.keys(B),T={},R=0;RR-z?-1:B}; g.I.oS=function(){return this.U.CF()}; g.I.Ek=function(){return this.U.dY()}; g.I.fg=function(B){this.U=B};g.G(fb,ue);fb.prototype.U=function(B,z){return ue.prototype.U.call(this,"$N|"+B,z)}; fb.prototype.V=function(B,z,T){return new H3(B,z,T,this.isLive)};var nLK=[],Z5=new Set;g.G(g.NT,g.Cl);g.I=g.NT.prototype; g.I.setData=function(B){B=B||{};var z=B.errordetail;z!=null&&(this.errorDetail=z);var T=B.errorcode;T!=null?this.errorCode=T:B.status==="fail"&&(this.errorCode="auth");var R=B.reason;R!=null&&(this.errorReason=R);var h=B.subreason;h!=null&&(this.AQ=h);this.D("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=B.cpn||(this.bO.L4()?"r"+g.V6(15):g.V6(16)));this.eI=WZ(this.bO.eI,B.livemonitor);PIz(this,B);var W=B.raw_player_response;if(W)this.rq=W;else{var b=B.player_response; b&&(W=JSON.parse(b))}if(this.D("html5_enable_ssap_entity_id")){var l=B.cached_load;l&&(this.UM=WZ(this.UM,l));if(!this.clientPlaybackNonce){var w=B.cpn;w?(this.cM("ssei","shdc"),this.clientPlaybackNonce=w):this.clientPlaybackNonce=this.bO.L4()?"r"+g.V6(15):g.V6(16)}}W&&(this.playerResponse=W);if(this.playerResponse){var q=this.playerResponse.annotations;if(q)for(var c=g.d(q),L=c.next();!L.done;L=c.next()){var C=L.value.playerAnnotationsUrlsRenderer;if(C){C.adsOnly&&(this.c_=!0);var r=C.loadPolicy; r&&(this.annotationsLoadPolicy=Ams[r]);var F=C.invideoUrl;F&&(this.cD=Rx(F));break}}var A=this.playerResponse.attestation;A&&hTB(this,A);var a=this.playerResponse.cotn;a&&(this.cotn=a);var V=this.playerResponse.heartbeatParams;if(V){pEz(this)&&(this.ge=!0);var M=V.heartbeatToken;M&&(this.drmSessionId=V.drmSessionId||"",this.heartbeatToken=M,this.jB=Number(V.intervalMilliseconds),this.Gw=Number(V.maxRetries),this.o8=!!V.softFailOnError,this.DZ=!!V.useInnertubeHeartbeatsForDrm,this.Zy=!0);this.heartbeatServerData= V.heartbeatServerData;var x;this.Yo=!((x=V.heartbeatAttestationConfig)==null||!x.requiresAttestation)}var v=this.playerResponse.messages;v&&l1r(this,v);var n=this.playerResponse.overlay;if(n){var Z=n.playerControlsOverlayRenderer;if(Z)if(qsl(this,Z.controlBgHtml),Z.mutedAutoplay){var N=g.u(Z.mutedAutoplay,n17);if(N&&N.endScreen){var TP=g.u(N.endScreen,uyg);TP&&TP.text&&(this.rh=g.aU(TP.text))}}else this.mutedAutoplay=!1}var hK=this.playerResponse.playabilityStatus;if(hK){var zP=hK.backgroundability; zP&&zP.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var ld,t;if((ld=hK.offlineability)==null?0:(t=ld.offlineabilityRenderer)==null?0:t.offlineable)this.offlineable=!0;var UH=hK.contextParams;UH&&(this.contextParams=UH);var Qz=hK.pictureInPicture;Qz&&Qz.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);hK.playableInEmbed&&(this.allowEmbed=!0);var vb=hK.ypcClickwrap;if(vb){var AI=vb.playerLegacyDesktopYpcClickwrapRenderer,lW=vb.ypcRentalActivationRenderer;if(AI)this.Pk= AI.durationMessage||"",this.Qn=!0;else if(lW){var gX=lW.durationMessage;this.Pk=gX?g.aU(gX):"";this.Qn=!0}}var Vz=hK.errorScreen;if(Vz){if(Vz.playerLegacyDesktopYpcTrailerRenderer){var hI=Vz.playerLegacyDesktopYpcTrailerRenderer;this.Vj=hI.trailerVideoId||"";var U=Vz.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Yr=U&&U.ypcTrailerRenderer}else if(Vz.playerLegacyDesktopYpcOfferRenderer)hI=Vz.playerLegacyDesktopYpcOfferRenderer;else if(Vz.ypcTrailerRenderer){Yr=Vz.ypcTrailerRenderer;var tI=Yr.fullVideoMessage; this.tU=tI?g.aU(tI):"";var Av,gF;this.Vj=((Av=g.u(Yr,Hyc))==null?void 0:(gF=Av.videoDetails)==null?void 0:gF.videoId)||""}hI&&(this.Hk=hI.itemTitle||"",hI.itemUrl&&(this.xk=hI.itemUrl),hI.itemBuyUrl&&(this.vS=hI.itemBuyUrl),this.d4=hI.itemThumbnail||"",this.HI=hI.offerHeadline||"",this.EM=hI.offerDescription||"",this.DX=hI.offerId||"",this.Li=hI.offerButtonText||"",this.b5=hI.offerButtonFormattedText||null,this.b4=hI.overlayDurationMsec||NaN,this.tU=hI.fullVideoMessage||"",this.AY=!0);if(Yr){var rF= g.u(Yr,Hyc);if(rF)this.l9={raw_player_response:rF};else{var mB=g.u(Yr,E1q);this.l9=mB?ho(mB):null}this.AY=!0}}}var v7=this.playerResponse.playbackTracking;if(v7){var JI=B,y=Gi(v7.googleRemarketingUrl);y&&(this.googleRemarketingUrl=y);var J=Gi(v7.youtubeRemarketingUrl);J&&(this.youtubeRemarketingUrl=J);var p={},k=Gi(v7.ptrackingUrl);if(k){var H=Ab(k),az=H.oid;az&&(this.yS=az);var Bb=H.pltype;Bb&&(this.IL=Bb);var Iz=H.ptchn;Iz&&(this.qO=Iz);var Rz=H.ptk;Rz&&(this.Er=encodeURIComponent(Rz));var p5=H.m; p5&&(this.SR=p5)}var el=Gi(v7.qoeUrl);if(el){for(var Up=g.bA(el),aP=g.d(Object.keys(Up)),Ph=aP.next();!Ph.done;Ph=aP.next()){var OO=Ph.value,jz=Up[OO];Up[OO]=Array.isArray(jz)?jz.join(","):jz}this.HP=Up;var Na=Up.cat;Na&&(this.D("html5_enable_qoe_cat_list")?this.Lt=this.Lt.concat(Na.split(",")):this.pk=Na);var GB=Up.live;GB&&(this.L3=GB);var q1=Up.drm_product;q1&&(this.drmProduct=q1)}var Jp=Gi(v7.videostatsPlaybackUrl);if(Jp){var oA=Ab(Jp),pJ=oA.adformat;if(pJ){JI.adformat=pJ;var NF=this.K(),tl=BrK(pJ, this.g7,NF.W,NF.J);tl&&(this.adFormat=tl)}var QX=oA.aqi;QX&&(JI.ad_query_id=QX);var h2=oA.autoplay;h2&&(this.o_=h2=="1",this.d5=h2=="1");var t4=oA.autonav;t4&&(this.isAutonav=t4=="1");var Wh=oA.delay;Wh&&(this.U0=dO(Wh));var gy=oA.ei;gy&&(this.eventId=gy);if(oA.adcontext||pJ)this.o_=!0;var Xx=oA.feature;Xx&&(this.r_=Xx);var r1=oA.list;r1&&(this.playlistId=r1);var C7=oA.of;C7&&(this.r8=C7);var rN=oA.osid;rN&&(this.osid=rN);var o_=oA.referrer;o_&&(this.referrer=o_);var T$=oA.sdetail;T$&&(this.vU=T$); var c0=oA.ssrt;c0&&(this.k9=c0=="1");var FB=oA.subscribed;FB&&(this.subscribed=FB=="1");var RW=oA.uga;RW&&(this.userGenderAge=RW);var I_=oA.upt;I_&&(this.qw=I_);var Gb=oA.vm;Gb&&(this.videoMetadata=Gb);p.playback=oA}var dN=Gi(v7.videostatsWatchtimeUrl);if(dN){var Af=Ab(dN),a_=Af.ald;a_&&(this.l4=a_);p.watchtime=Af}var UI=Gi(v7.atrUrl);if(UI){var zz=Ab(UI);p.atr=zz}var JX=Gi(v7.engageUrl);if(JX){var Tz=Ab(JX);p.engage=Tz}this.qV=p;if(v7.promotedPlaybackTracking){var HD=v7.promotedPlaybackTracking; HD.startUrls&&(this.kF=HD.startUrls);HD.firstQuartileUrls&&(this.s5=HD.firstQuartileUrls);HD.secondQuartileUrls&&(this.d9=HD.secondQuartileUrls);HD.thirdQuartileUrls&&(this.ix=HD.thirdQuartileUrls);HD.completeUrls&&(this.HJ=HD.completeUrls);HD.engagedViewUrls&&(HD.engagedViewUrls.length>1&&g.KV(new g.Z_("There are more than one engaged_view_urls.")),this.hK=HD.engagedViewUrls[0])}}var hY=this.playerResponse.playerCueRanges;hY&&hY.length>0&&(this.cueRanges=hY);var MM=this.playerResponse.playerCueRangeSet; MM&&g.eL(this,MM);a:{var WS=this.playerResponse.adPlacements;if(WS)for(var Vt=g.d(WS),bo=Vt.next();!bo.done;bo=Vt.next()){var Qt=void 0,gN=void 0,Jf=(Qt=bo.value.adPlacementRenderer)==null?void 0:(gN=Qt.renderer)==null?void 0:gN.videoAdTrackingRenderer;if(Jf){var p7=Jf;break a}}p7=null}var YX=p7;v7&&v7.promotedPlaybackTracking&&YX&&g.KV(new g.Z_("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var II;if(!(II=YX))a:{for(var $S=g.d(this.playerResponse.adSlots||[]), lo=$S.next();!lo.done;lo=$S.next()){var wn=g.u(lo.value,HI);if(wn===void 0||!g8l(wn))break;var Pn=void 0,Ry=(Pn=wn.fulfillmentContent)==null?void 0:Pn.fulfilledLayout,xS=g.u(Ry,PI);if(xS&&gr(xS)){II=!0;break a}}II=!1}II&&(this.Ol=!0);var vn=this.playerResponse.playerAds;if(vn)for(var hd=B,Do=g.d(vn),Gm=Do.next();!Gm.done;Gm=Do.next()){var kS=Gm.value;if(kS){var K7=kS.playerLegacyDesktopWatchAdsRenderer;if(K7){var pi=K7.playerAdParams;if(pi){pi.autoplay=="1"&&(this.d5=this.o_=!0);this.P_=pi.encodedAdSafetyReason|| null;pi.showContentThumbnail!==void 0&&(this.Wp=!!pi.showContentThumbnail);hd.enabled_engage_types=pi.enabledEngageTypes;break}}}}var k6=this.playerResponse.playerConfig;if(k6){var jw=k6.manifestlessWindowedLiveConfig;if(jw){var m8=Number(jw.minDvrSequence),qK=Number(jw.maxDvrSequence),di=Number(jw.minDvrMediaTimeMs),Ak=Number(jw.maxDvrMediaTimeMs),io=Number(jw.startWalltimeMs);m8&&(this.bz=m8);di&&(this.WD=di/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&bs(this)&&(this.Eg=di/ 1E3));qK&&(this.VW=qK);Ak&&(this.Dm=Ak/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&bs(this)&&(this.Q_=Ak/1E3));io&&(this.ra=io/1E3);(m8||di)&&(qK||Ak)&&(this.allowLiveDvr=this.isLivePlayback=this.TZ=!0,this.qh=!1)}var Xd=k6.daiConfig;if(Xd){if(Xd.enableDai){this.w3=!0;var aI=Xd.enableServerStitchedDai;aI&&(this.enableServerStitchedDai=aI);var n7=Xd.enablePreroll;n7&&(this.Kl=n7)}var bN;if(Xd.daiType==="DAI_TYPE_SS_DISABLED"||((bN=Xd.debugInfo)==null?0:bN.isDisabledUnpluggedChannel))this.xf= !0;Xd.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.mF=!0)}var Ch=k6.audioConfig;if(Ch){var Ze=Ch.loudnessDb;Ze!=null&&(this.pF=Ze);var cdd=Ch.trackAbsoluteLoudnessLkfs;cdd!=null&&(this.Lm=cdd);var Llr=Ch.loudnessTargetLkfs;Llr!=null&&(this.loudnessTargetLkfs=Llr);Ch.audioMuted&&(this.TG=!0);Ch.muteOnStart&&(this.LS=!0);var rr=Ch.loudnessNormalizationConfig;if(rr){rr.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);rr.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var CNd=rr.minimumLoudnessTargetLkfs;CNd!=null&&(this.minimumLoudnessTargetLkfs=CNd);var rdX=rr.maxStatefulTimeThresholdSec;rdX!=null&&(this.maxStatefulTimeThresholdSec=rdX)}Ch.playAudioOnly&&(this.Gj=!0)}var q5z=k6.playbackEndConfig;if(q5z){var oNB=q5z.endSeconds,Fld=q5z.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(oNB&&(this.endSeconds=oNB),Fld&&(this.limitedPlaybackDurationInSeconds=Fld))}var Ur=k6.fairPlayConfig;if(Ur){var Igz=Ur.certificate;Igz&&(this.IK=bq(Igz));var GzK=Number(Ur.keyRotationPeriodMs); GzK>0&&(this.eR=GzK);var d2K=Number(Ur.keyPrefetchMarginMs);d2K>0&&(this.Cl=d2K)}var S6=k6.playbackStartConfig;if(S6){this.yr=Number(S6.startSeconds);var Adl=S6.liveUtcStartSeconds,agr=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;Adl&&!agr&&(this.liveUtcStartSeconds=Number(Adl));var i9d=S6.startPosition;if(i9d){var U2B=i9d.utcTimeMillis;U2B&&!agr&&(this.liveUtcStartSeconds=Number(U2B)*.001);var Mel=i9d.streamTimeMillis;Mel&&(this.R7=Number(Mel)*.001)}this.progressBarStartPosition=S6.progressBarStartPosition; this.progressBarEndPosition=S6.progressBarEndPosition}else{var czd=k6.skippableSegmentsConfig;if(czd){var VeH=czd.introSkipDurationMs;VeH&&(this.xB=Number(VeH)/1E3);var Qyl=czd.outroSkipDurationMs;Qyl&&(this.zD=Number(Qyl)/1E3)}}var Luz=k6.skippableIntroConfig;if(Luz){var ydP=Number(Luz.startMs),gNX=Number(Luz.endMs);isNaN(ydP)||isNaN(gNX)||(this.Up=ydP,this.Ip=gNX)}var JdP=k6.streamSelectionConfig;JdP&&(this.II=Number(JdP.maxBitrate));var pwz=k6.vrConfig;pwz&&(this.cf=pwz.partialSpherical=="1"); var oi=k6.webDrmConfig;if(oi){oi.skipWidevine&&(this.tJ=!0);var $2K=oi.widevineServiceCert;$2K&&(this.VT=bq($2K));oi.useCobaltWidevine&&(this.useCobaltWidevine=!0);oi.startWithNoQualityConstraint&&(this.Oa=!0)}var Zv=k6.mediaCommonConfig;if(Zv){var Mm=Zv.dynamicReadaheadConfig;if(Mm){this.maxReadAheadMediaTimeMs=Mm.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Mm.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Mm.readAheadGrowthRateMs||NaN;var PNl,x2H=Zv==null?void 0:(PNl=Zv.mediaUstreamerRequestConfig)== null?void 0:PNl.videoPlaybackUstreamerConfig;x2H&&(this.qn=bq(x2H));var CTH=Zv==null?void 0:Zv.sabrContextUpdates;if(CTH&&CTH.length>0)for(var vN5=g.d(CTH),rzH=vN5.next();!rzH.done;rzH=vN5.next()){var Fz=rzH.value;if(Fz.type&&Fz.value){var seF={type:Fz.type,scope:Fz.scope,value:bq(Fz.value)||void 0,sendByDefault:Fz.sendByDefault};this.sabrContextUpdates.set(Fz.type,seF)}}}var D2b=Zv.serverPlaybackStartConfig;D2b&&(this.serverPlaybackStartConfig=D2b);Zv.useServerDrivenAbr&&(this.fY=!0);var kzK=Zv.requestPipeliningConfig; kzK&&(this.requestPipeliningConfig=kzK)}var KlK=k6.inlinePlaybackConfig;KlK&&(this.j5=!!KlK.showAudioControls);var Vd=k6.embeddedPlayerConfig;if(Vd){this.embeddedPlayerConfig=Vd;var onX=Vd.embeddedPlayerMode;if(onX){var m2B=this.K();m2B.RK=onX;m2B.Y=onX==="EMBEDDED_PLAYER_MODE_PFL"}var nNr=Vd.permissions;nNr&&(this.allowImaMonetization=!!nNr.allowImaMonetization)}var Qd=k6.webPlayerConfig;Qd&&(Qd.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Qd.gatewayExperimentGroup),Qd.isProximaEligible&& (this.isProximaLatencyEligible=!0))}var ei=this.playerResponse.streamingData;if(ei){var FuY=ei.formats;if(FuY){for(var FQ=[],uRX=g.d(FuY),ItB=uRX.next();!ItB.done;ItB=uRX.next()){var Gsl=ItB.value;FQ.push(Gsl.itag+"/"+Gsl.width+"x"+Gsl.height)}this.n3=FQ.join(",");FQ=[];for(var HBH=g.d(FuY),dJl=HBH.next();!dJl.done;dJl=HBH.next()){var Ii=dJl.value,GC={itag:Ii.itag,type:Ii.mimeType,quality:Ii.quality},fgb=Ii.url;fgb&&(GC.url=fgb);var yd=PK(Ii),E05=yd.Nt,SEp=yd.ql,BJs=yd.s;yd.Tx&&(GC.url=E05,GC.sp= SEp,GC.s=BJs);FQ.push(g.Vn(GC))}this.r3=FQ.join(",")}var AzB=ei.hlsFormats;if(AzB&&!this.D("safari_live_drm_captions_fix")){var OBY=k6||null,gu={};if(OBY){var at5=OBY.audioPairingConfig;if(at5&&at5.pairs)for(var N4K=g.d(at5.pairs),UJB=N4K.next();!UJB.done;UJB=N4K.next()){var teb=UJB.value,MVK=teb.videoItag;gu[MVK]||(gu[MVK]=[]);gu[MVK].push(teb.audioItag)}}for(var jyP={},Xwl=g.d(AzB),VVK=Xwl.next();!VVK.done;VVK=Xwl.next()){var ZBz=VVK.value;jyP[ZBz.itag]=ZBz.bitrate}for(var eN5=[],syX=g.d(AzB),QrK= syX.next();!QrK.done;QrK=syX.next()){var By=QrK.value,JR={itag:By.itag,type:By.mimeType,url:By.url,bitrate:By.bitrate,width:By.width,height:By.height,fps:By.fps},JJ=By.audioTrack;if(JJ){var ENd=JJ.displayName;ENd&&(JR.name=ENd,JR.audio_track_id=JJ.id,JJ.audioIsDefault&&(JR.is_default="1"))}if(By.drmFamilies){for(var SLz=[],BQH=g.d(By.drmFamilies),yzP=BQH.next();!yzP.done;yzP=BQH.next())SLz.push(Ac[yzP.value]);JR.drm_families=SLz.join(",")}var pp=gu[By.itag];if(pp&&pp.length){JR.audio_itag=pp.join(","); var zjz=jyP[pp[0]];zjz&&(JR.bitrate+=zjz)}var TQY=BeB(By);TQY&&(JR.eotf=TQY);By.audioChannels&&(JR.audio_channels=By.audioChannels);eN5.push(g.Vn(JR))}this.hlsFormats=eN5.join(",")}var gnb=ei.licenseInfos;if(gnb&&gnb.length>0){for(var Rjl={},hj5=g.d(gnb),Jzz=hj5.next();!Jzz.done;Jzz=hj5.next()){var W0z=Jzz.value,bfd=W0z.drmFamily,YtX=W0z.url;bfd&&YtX&&(Rjl[Ac[bfd]]=YtX)}this.Ft=Rjl}var l9B=ei.drmParams;l9B&&(this.drmParams=l9B);var wOb=ei.dashManifestUrl;wOb&&(this.C4=g.Qn(wOb,{cpn:this.clientPlaybackNonce})); var qtP=ei.hlsManifestUrl;qtP&&(this.hlsvp=qtP);var ifz=ei.probeUrl;ifz&&(this.probeUrl=Rx(g.Qn(ifz,{cpn:this.clientPlaybackNonce})));var chK=ei.serverAbrStreamingUrl;chK&&(this.uh=new g.QP(chK,!0))}var L0K=this.playerResponse.trackingParams;L0K&&(this.lO=L0K);var WY=this.playerResponse.videoDetails;if(WY){var ph=B,plB=WY.videoId;plB&&(this.videoId=plB,ph.video_id||(ph.video_id=plB));var $JK=WY.title;$JK&&(this.title=$JK,ph.title||(ph.title=$JK));var PTd=WY.lengthSeconds;PTd&&(this.lengthSeconds= Number(PTd),ph.length_seconds||(ph.length_seconds=PTd));var CxY=WY.keywords;CxY&&(this.keywords=KEK(CxY));var xJP=WY.channelId;xJP&&(this.W3=xJP,ph.ucid||(ph.ucid=xJP));var rhY=WY.viewCount;rhY&&(this.rawViewCount=Number(rhY));var vnY=WY.author;vnY&&(this.author=vnY,ph.author||(ph.author=vnY));var ojH=WY.shortDescription;ojH&&(this.shortDescription=ojH);var F0Y=WY.isCrawlable;F0Y&&(this.isListed=F0Y);var I9r=WY.musicVideoType;I9r&&(this.musicVideoType=I9r);var DJH=WY.isLive;DJH!=null&&(this.isLivePlayback= DJH);if(DJH||WY.isUpcoming)this.isPremiere=!WY.isLiveContent;var G4B=WY.thumbnail;G4B&&(this.J=IQ(G4B));var dPd=WY.isExternallyHostedPodcast;dPd&&(this.isExternallyHostedPodcast=dPd);var ksB=WY.viewerLivestreamJoinPosition;if(ksB==null?0:ksB.utcTimeMillis)this.q7=dO(ksB.utcTimeMillis);var Ahz=k6||null,Kuz=B;WY.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);WY.isUpcoming&&(this.isUpcoming=!0);if(WY.isPostLiveDvr){this.qh=!0;var a9X=WY.latencyClass;a9X&&(this.latencyClass=akF[a9X]||"UNKNOWN"); WY.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var mJP=!1;this.eI?(this.allowLiveDvr=Rn()?!0:SH&&t5<5?!1:!0,this.isLivePlayback=!0):WY.isLive?(Kuz.livestream="1",this.allowLiveDvr=WY.isLiveDvrEnabled?Rn()?!0:SH&&t5<5?!1:!0:!1,this.partnerId=27,mJP=!0):WY.isUpcoming&&(mJP=!0);if(WY.isLive||this.eI){WY.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var UPb=WY.latencyClass;UPb&&(this.latencyClass=akF[UPb]||"UNKNOWN");var MFd=WY.liveChunkReadahead;MFd&&(this.liveChunkReadahead= MFd);var BR=Ahz&&Ahz.livePlayerConfig;if(BR){BR.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);BR.hasSubfragmentedWebm&&(this.TD=!0);BR.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var VFB=BR.liveExperimentalContentId;VFB&&(this.liveExperimentalContentId=Number(VFB));var QMl=BR.isLiveHeadPlayable;this.D("html5_live_head_playable")&&QMl!=null&&(this.isLiveHeadPlayable=QMl)}}mJP&&(this.isLivePlayback=!0,Kuz.adformat&&Kuz.adformat.split("_")[1]!=="8"||this.UE.push("heartbeat"), this.Zy=!0)}var yhK=WY.isPrivate;yhK!==void 0&&(this.isPrivate=WZ(this.isPrivate,yhK))}if(hK){var gjz=WY||null,JhX=!1,zn=hK.errorScreen;JhX=zn&&(zn.playerLegacyDesktopYpcOfferRenderer||zn.playerLegacyDesktopYpcTrailerRenderer||zn.ypcTrailerRenderer)?!0:gjz&&gjz.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(hK.status);if(!JhX){this.errorCode=tZY(hK.errorCode)||"auth";var $u=zn&&zn.playerErrorMessageRenderer;if($u){this.playerErrorMessageRenderer=$u;var pOB=$u.reason;pOB&&(this.errorReason= g.aU(pOB));var nnz=$u.subreason;nnz&&(this.AQ=g.aU(nnz),this.o9=nnz)}else this.errorReason=hK.reason||null;var unl=hK.status;if(unl==="LOGIN_REQUIRED")this.errorDetail="1";else if(unl==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(unl==="AGE_CHECK_REQUIRED"){var $PX=hK.errorScreen,PxB=$PX&&$PX.playerKavRenderer;this.errorDetail=PxB&&PxB.kavUrl?"4":"3"}else this.errorDetail=hK.isBlockedInRestrictedMode?"5":"0"}}var xPr=this.playerResponse.interstitialPods;xPr&&YsY(this,xPr);this.cD&&this.eventId&& (this.cD=lA(this.cD,{ei:this.eventId}));var H9z=this.playerResponse.captions;if(H9z&&H9z.playerCaptionsTracklistRenderer)a:{var $t=H9z.playerCaptionsTracklistRenderer;this.captionTracks=[];if($t.captionTracks)for(var vjH=g.d($t.captionTracks),ftb=vjH.next();!ftb.done;ftb=vjH.next()){var P0=ftb.value,DPz=vLB(P0.baseUrl);if(!DPz)break a;var O9z={is_translateable:!!P0.isTranslatable,languageCode:P0.languageCode,languageName:P0.name&&g.aU(P0.name),url:DPz,vss_id:P0.vssId,kind:P0.kind};O9z.name=P0.trackName; O9z.displayName=P0.name&&g.aU(P0.name);this.captionTracks.push(new g.Lb(O9z))}this.m3=$t.audioTracks||[];this.Jr=$t.defaultAudioTrackIndex||0;this.qs=[];if($t.translationLanguages)for(var k4r=g.d($t.translationLanguages),NYr=k4r.next();!NYr.done;NYr=k4r.next()){var Tn=NYr.value,IZ={};IZ.languageCode=Tn.languageCode;IZ.languageName=g.aU(Tn.languageName);if(Tn.translationSourceTrackIndices){IZ.translationSourceTrackIndices=[];for(var K0X=g.d(Tn.translationSourceTrackIndices),tVY=K0X.next();!tVY.done;tVY= K0X.next())IZ.translationSourceTrackIndices.push(tVY.value)}if(Tn.excludeAudioTrackIndices){IZ.excludeAudioTrackIndices=[];for(var mPr=g.d(Tn.excludeAudioTrackIndices),jrr=mPr.next();!jrr.done;jrr=mPr.next())IZ.excludeAudioTrackIndices.push(jrr.value)}this.qs.push(IZ)}this.JC=[];if($t.defaultTranslationSourceTrackIndices)for(var njz=g.d($t.defaultTranslationSourceTrackIndices),XlH=njz.next();!XlH.done;XlH=njz.next())this.JC.push(XlH.value);this.cU=!!$t.contribute&&!!$t.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.yr=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&wIz(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var uCB;this.compositeLiveIngestionOffsetToken=(uCB=this.playerResponse.playbackTracking)==null?void 0:uCB.compositeLiveIngestionOffsetToken; var Hfd;this.compositeLiveStatusToken=(Hfd=this.playerResponse.playbackTracking)==null?void 0:Hfd.compositeLiveStatusToken}jL(this,B);B.queue_info&&(this.queueInfo=B.queue_info);var f9K=B.hlsdvr;f9K!=null&&(this.allowLiveDvr=Number(f9K)===1?Rn()?!0:SH&&t5<5?!1:!0:!1);this.adQueryId=B.ad_query_id||null;this.P_||(this.P_=B.encoded_ad_safety_reason||null);this.TG=WZ(this.TG,B.infringe||B.muted);this.D1=B.authkey;this.bU=B.authuser;this.mutedAutoplay=WZ(this.mutedAutoplay,B&&B.playmuted);this.mutedAutoplayDurationMode= YK(this.mutedAutoplayDurationMode,B&&B.muted_autoplay_duration_mode);this.rN=WZ(this.rN,B&&B.mutedautoplay);var PJ=B.length_seconds;PJ&&(this.lengthSeconds=typeof PJ==="string"?dO(PJ):PJ);if(this.isAd()||this.nt||!g.cZ(g.kC(this.bO)))this.endSeconds=YK(this.endSeconds,this.zD||B.end||B.endSeconds);else{var zL7=g.kC(this.bO),xu=this.lengthSeconds;switch(zL7){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":xu>30?this.limitedPlaybackDurationInSeconds=30:xu<30&&xu>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=xu*.2}}this.lO=l9(this.lO,B.itct);this.qt=WZ(this.qt,B.is_live_destination);this.isLivePlayback=WZ(this.isLivePlayback,B.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.PB();B.isUpcoming&&(this.isUpcoming=WZ(this.isUpcoming,B.isUpcoming));this.qh=WZ(this.qh,B.post_live_playback);this.TZ&&(this.qh=!1);this.isMdxPlayback=WZ(this.isMdxPlayback,B.mdx);var vJ=B.mdx_control_mode; vJ&&(this.mdxControlMode=typeof vJ==="number"?vJ:dO(vJ));this.isInlinePlaybackNoAd=WZ(this.isInlinePlaybackNoAd,B.is_inline_playback_no_ad);this.Sk=YK(this.Sk,B.reload_count);this.reloadReason=l9(this.reloadReason,B.reload_reason);this.Wp=WZ(this.Wp,B.show_content_thumbnail);this.cycToken=B.cyc||null;var Of5=FS(B);Object.keys(Of5).length>0&&(this.J=Of5);this.RK=l9(this.RK,B.vvt);this.mdxEnvironment=l9(this.mdxEnvironment,B.mdx_environment);B.source_container_playlist_id&&(this.sourceContainerPlaylistId= B.source_container_playlist_id);B.serialized_mdx_metadata&&(this.serializedMdxMetadata=B.serialized_mdx_metadata);this.uv=B.osig;this.eventId||(this.eventId=B.eventid);this.osid||(this.osid=B.osid);this.playlistId=l9(this.playlistId,B.list);B.index&&(this.playlistIndex=this.playlistIndex===void 0?YK(0,B.index):YK(this.playlistIndex,B.index));this.jo=B.pyv_view_beacon_url;this.l6=B.pyv_quartile25_beacon_url;this.Fi=B.pyv_quartile50_beacon_url;this.z8=B.pyv_quartile75_beacon_url;this.Xi=B.pyv_quartile100_beacon_url; var NQK=B.session_data;!this.xP&&NQK&&(this.xP=TF(NQK,"&").feature);this.isFling=YK(this.isFling?1:0,B.is_fling)===1;this.vnd=YK(this.vnd,B.vnd);this.forceAdsUrl=l9(this.forceAdsUrl,B.force_ads_url);this.Y2=l9(this.Y2,B.ctrl);this.E6=l9(this.E6,B.ytr);this.kf=B.ytrcc;this.Po=B.ytrexp;this.Tb=B.ytrext;this.L2=l9(this.L2,B.adformat);this.g7=l9(this.g7,B.attrib);this.slotPosition=YK(this.slotPosition,B.slot_pos);this.breakType=B.break_type;this.k9=WZ(this.k9,B.ssrt);this.videoId=q4(B)||this.videoId; this.X=l9(this.X,B.vss_credentials_token);this.Vr=l9(this.Vr,B.vss_credentials_token_type);this.Gj=WZ(this.Gj,B.audio_only);this.Kf=WZ(this.Kf,B.aac_high);this.ZY=WZ(this.ZY,B.prefer_low_quality_audio);this.pC=WZ(this.pC,B.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?B.qoe_cat&&(this.Lt=this.Lt.concat(B.qoe_cat.split(","))):this.pk=l9(this.pk,B.qoe_cat);this.Ms=WZ(this.Ms,B.download_media);var tFd=B.prefer_gapless;this.L=tFd!=null?WZ(this.L,tFd):this.L?this.L:this.bO.preferGapless&&this.bO.supportsGaplessShorts(); hId(this.playerResponse)&&this.UE.push("ad");var jMK=B.adaptive_fmts;jMK&&(this.adaptiveFormats=jMK,this.OE("adpfmts",{},!0));var XOP=B.allow_embed;XOP&&(this.allowEmbed=Number(XOP)===1);var ZfH=B.backgroundable;ZfH&&(this.backgroundable=Number(ZfH)===1);var ejH=B.autonav;ejH&&(this.isAutonav=Number(ejH)===1);var sMr=B.autoplay;sMr&&(this.o_=this.d5=Number(sMr)===1);var Ejb=B.iv_load_policy;Ejb&&(this.annotationsLoadPolicy=b9(this.annotationsLoadPolicy,Ejb,KY));var StY=B.cc_lang_pref;StY&&(this.captionsLanguagePreference= l9(StY,this.captionsLanguagePreference));var B7P=B.cc_load_policy;B7P&&(this.nC=b9(this.nC,B7P,KY));var z2Y;this.deviceCaptionsOn=(z2Y=B.device_captions_on)!=null?z2Y:void 0;var T7P;this.KS=(T7P=B.device_captions_lang_pref)!=null?T7P:"";var R2H;this.Q5=(R2H=B.viewer_selected_caption_langs)!=null?R2H:[];if(!this.D("html5_enable_ssap_entity_id")){var h2B=B.cached_load;h2B&&(this.UM=WZ(this.UM,h2B))}if(B.dash==="0"||B.dash===0||B.dash===!1)this.W$=!0;var WQz=B.dashmpd;WQz&&(this.C4=g.Qn(WQz,{cpn:this.clientPlaybackNonce})); var bAz=B.delay;bAz&&(this.U0=dO(bAz));var Z9B=this.zD||B.end;if(this.JZ?Z9B!=null:Z9B!=void 0)this.clipEnd=YK(this.clipEnd,Z9B);var YVB=B.fmt_list;YVB&&(this.n3=YVB);B.heartbeat_preroll&&this.UE.push("heartbeat");this.lW=-Math.floor(Math.random()*10);this.FD=-Math.floor(Math.random()*40);var lq5=B.is_listed;lq5&&(this.isListed=WZ(this.isListed,lq5));var wel=B.is_private;wel&&(this.isPrivate=WZ(this.isPrivate,wel));var qVb=B.is_dni;qVb&&(this.Jj=WZ(this.Jj,qVb));var iAH=B.dni_color;iAH&&(this.Bk= l9(this.Bk,iAH));var c$5=B.pipable;c$5&&(this.pipable=WZ(this.pipable,c$5));this.Ho=(this.yX=this.pipable&&this.bO.qk)&&!this.bO.showMiniplayerButton;var LQr=B.paid_content_overlay_duration_ms;LQr&&(this.paidContentOverlayDurationMs=dO(LQr));var CJK=B.paid_content_overlay_text;CJK&&(this.paidContentOverlayText=CJK);var r$d=B.url_encoded_fmt_stream_map;r$d&&(this.r3=r$d);var odb=B.hls_formats;odb&&(this.hlsFormats=odb);var FQP=B.hlsvp;FQP&&(this.hlsvp=FQP);var D3=B.live_start_walltime;D3&&(this.E4= typeof D3==="number"?D3:dO(D3));var ku=B.live_manifest_duration;ku&&(this.fl=typeof ku==="number"?ku:dO(ku));var Iqz=B.player_params;Iqz&&(this.playerParams=Iqz);var GZd=B.partnerid;GZd&&(this.partnerId=YK(this.partnerId,GZd));var dZz=B.probe_url;dZz&&(this.probeUrl=Rx(g.Qn(dZz,{cpn:this.clientPlaybackNonce})));var eur=B.pyv_billable_url;eur&&cZB(eur)&&(this.hK=eur);var srr=B.pyv_conv_url;srr&&cZB(srr)&&(this.Ru=srr);mQB(this,B);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.yr||this.xB||B.start||B.startSeconds)&&this.OE("lss",{css:this.startSeconds,pcss:this.yr,iss:this.xB,ps:B.start||void 0,pss:B.startSeconds||void 0}):this.O0=this.startSeconds=YK(this.startSeconds,this.yr||this.xB||B.start||B.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var A$B=B.live_utc_start;if(A$B!=null)this.liveUtcStartSeconds=Number(A$B);else{var Enr=this.startSeconds;Enr&&isFinite(Enr)&&Enr>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var aqr=B.utc_start_millis;aqr&&(this.liveUtcStartSeconds=Number(aqr)*.001)}var UZz=B.stream_time_start_millis;UZz&&(this.R7=Number(UZz)*.001);var S5r=this.xB||B.start;(this.JZ?S5r==null||Number(B.resume)===1:S5r==void 0||B.resume=="1")||this.isLivePlayback||(this.clipStart=YK(this.clipStart,S5r));var Mpz=B.url_encoded_third_party_media;Mpz&&(this.Rn=WP(Mpz));var BqX=B.ypc_offer_button_formatted_text;if(BqX){var Vpz=JSON.parse(BqX);this.b5=Vpz!=null?Vpz:null;this.JJ=BqX}var QBX= B.ypc_offer_button_text;QBX&&(this.Li=QBX);var y$z=B.ypc_offer_description;y$z&&(this.EM=y$z);var gd5=B.ypc_offer_headline;gd5&&(this.HI=gd5);var J$l=B.ypc_full_video_message;J$l&&(this.tU=J$l);var pel=B.ypc_offer_id;pel&&(this.DX=pel);var $ZY=B.ypc_buy_url;$ZY&&(this.vS=$ZY);var PJY=B.ypc_item_thumbnail;PJY&&(this.d4=PJY);var xZz=B.ypc_item_title;xZz&&(this.Hk=xZz);var vdP=B.ypc_item_url;vdP&&(this.xk=vdP);var DZz=B.ypc_vid;DZz&&(this.Vj=DZz);B.ypc_overlay_timeout&&(this.b4=Number(B.ypc_overlay_timeout)); var kZz=B.ypc_trailer_player_vars;kZz&&(this.l9=ho(kZz));var KQr=B.ypc_original_itct;KQr&&(this.P8E=KQr);this.W3=l9(this.W3,B.ucid);this.Qv=B.storyboard_spec||null;this.Ns=B.live_storyboard_spec||null;this.ys=B.iv_endscreen_url||null;this.Zy=WZ(this.Zy,B.ypc_license_checker_module);this.AY=WZ(this.AY,B.ypc_module);this.Qn=WZ(this.Qn,B.ypc_clickwrap_module);this.AY&&this.UE.push("ypc");this.Qn&&this.UE.push("ypc_clickwrap");this.rU={video_id:B.video_id,eventid:B.eventid,cbrand:B.cbrand,cbr:B.cbr,cbrver:B.cbrver, c:B.c,cver:B.cver,ctheme:B.ctheme,cplayer:B.cplayer,cmodel:B.cmodel,cnetwork:B.cnetwork,cos:B.cos,cosver:B.cosver,cplatform:B.cplatform,user_age:B.user_age,user_display_image:B.user_display_image,user_display_name:B.user_display_name,user_gender:B.user_gender,csi_page_type:B.csi_page_type,csi_service_name:B.csi_service_name,enablecsi:B.enablecsi,enabled_engage_types:B.enabled_engage_types};xQH(this,B);var mZP=B.cotn;mZP&&(this.cotn=mZP);if(ELK(this))w5(this)&&(this.isLivePlayback&&this.C4&&(this.Mg= !0),this.IK&&(this.P8=!0));else if(Ssb(this))this.Mg=!0;else{var ndY,uWX,HA5=((ndY=this.playerResponse)==null?void 0:(uWX=ndY.streamingData)==null?void 0:uWX.adaptiveFormats)||[];if(HA5.length>0)var dr=siX(this,HA5);else{var fqH=this.adaptiveFormats;if(fqH&&!w5(this)){this.bO.V.Y&&(vz=!0);var Rv=oY(fqH),z5r=this.Ft,OAz=this.lengthSeconds,TJU=this.isLivePlayback,AM=this.qh,hD=this.bO,RLs=C5X(Rv);if(TJU||AM){var N7B=hD==null?void 0:hD.experiments,fq=new G5("",N7B,!0);fq.PB=!0;fq.isManifestless=!0;fq.U= !AM;fq.isLive=!AM;fq.qh=AM;for(var tpP=g.d(Rv),Tqb=tpP.next();!Tqb.done;Tqb=tpP.next()){var WR=Tqb.value,jBK=U6(WR,z5r),GW=ME(WR.url,WR.sp,WR.s),Xez=GW.get("id");Xez&&Xez.includes("%7E")&&(fq.N=!0);var ZAK=void 0,hL7=(ZAK=N7B)==null?void 0:ZAK.Cf("html5_max_known_end_time_rebase"),W4c=Number(WR.target_duration_sec)||5,bLK=Number(WR.max_dvr_duration_sec)||14400,e2d=Number(GW.get("mindsq")||GW.get("min_sq")||"0"),sBd=Number(GW.get("maxdsq")||GW.get("max_sq")||"0")||Infinity;fq.bz=fq.bz||e2d;fq.VW=fq.VW|| sBd;var YD7=!R_(jBK.mimeType);GW&&oH(fq,new z5(GW,jBK,{aq:W4c,Zw:YD7,pL:bLK,bz:e2d,VW:sBd,uH:300,qh:AM,oG:hL7}))}var EdK=fq}else{if(RLs==="FORMAT_STREAM_TYPE_OTF"){var Kp=OAz;Kp=Kp===void 0?0:Kp;var bZ=new G5("",hD==null?void 0:hD.experiments,!1);bZ.duration=Kp||0;for(var SVz=g.d(Rv),R5z=SVz.next();!R5z.done;R5z=SVz.next()){var Ys=R5z.value,h5z=U6(Ys,z5r,bZ.duration),WbY=ME(Ys.url,Ys.sp,Ys.s);if(WbY)if(h5z.streamType==="FORMAT_STREAM_TYPE_OTF")oH(bZ,new T5(WbY,h5z,"sq/0"));else{var lMc=xH(Ys.init), wPF=xH(Ys.index);oH(bZ,new Lj(WbY,h5z,lMc,wPF))}}bZ.isOtf=!0;var Bmz=bZ}else{var mo=OAz;mo=mo===void 0?0:mo;var np=new G5("",hD==null?void 0:hD.experiments,!1);np.duration=mo||0;for(var zpK=g.d(Rv),beX=zpK.next();!beX.done;beX=zpK.next()){var lZ=beX.value,qDK=U6(lZ,z5r,np.duration),iLW=xH(lZ.init),co7=xH(lZ.index),TmX=ME(lZ.url,lZ.sp,lZ.s);TmX&&oH(np,new Lj(TmX,qDK,iLW,co7))}Bmz=np}EdK=Bmz}var Rpl=EdK;if(Rv.length>0){var hpB=Rv[0];if(this.K().playerStyle==="hangouts-meet"&&hpB.url){var L47=g.bA(hpB.url); this.Wk=this.Wk||Number(L47.expire)}}var CAU=this.isLivePlayback&&!this.qh&&!this.TZ&&!this.isPremiere;this.D("html5_live_head_playable")&&(!qp(this)&&CAU&&this.OE("missingLiveHeadPlayable",{}),this.bO.TZ==="yt"&&(Rpl.cD=!0));dr=Rpl}else dr=null;this.OE("pafmts",{isManifestFilled:!!dr})}if(dr){Lt(this,dr);var W_z=!0}else W_z=!1;W_z?this.enableServerStitchedDai=this.enableServerStitchedDai&&is(this):this.C4&&(this.bO.TZ==="yt"&&this.PB()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")? this.OE("deprecateMflFallback",{}):this.Mg=!0)}var YMd=B.adpings;YMd&&(this.xj=YMd?ho(YMd):null);var bGz=B.feature;bGz&&(this.r_=bGz);var Y1l=B.referrer;Y1l&&(this.referrer=Y1l);this.clientScreenNonce=l9(this.clientScreenNonce,B.csn);this.kq=YK(this.kq,B.root_ve_type);this.y5=YK(this.y5,B.kids_age_up_mode);this.JZ||B.kids_app_info==void 0||(this.kidsAppInfo=B.kids_app_info);this.JZ&&B.kids_app_info!=null&&(this.kidsAppInfo=B.kids_app_info);this.sK=WZ(this.sK,B.upg_content_filter_mode);this.unpluggedFilterModeType= YK(this.unpluggedFilterModeType,B.unplugged_filter_mode_type);var lyr=B.unplugged_location_info;lyr&&(this.Nh=lyr);var wXY=B.unplugged_partner_opt_out;wXY&&(this.cR=l9("",wXY));this.Xj=WZ(this.Xj,B.disable_watch_next);this.z0=l9(this.z0,B.internal_ip_override);this.c$=!!B.is_yto_interstitial;(this.interstitials.length||this.c$)&&this.UE.push("yto");var q1l=B.NL;q1l&&(this.NL=q1l);this.N=l9(this.N,B.csi_timer);B.watchUrl&&(this.watchUrl=B.watchUrl);var d6=B.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&& d6&&Z$K(this,d6);if(d6==null?0:d6.ustreamerConfig)this.fU=bq(d6.ustreamerConfig);var iGz,c7X,L_B=d6==null?void 0:(iGz=d6.loggingContext)==null?void 0:(c7X=iGz.qoeLoggingContext)==null?void 0:c7X.serializedContextData;L_B&&(this.xrf=L_B);g.yW(this.bO)&&this.bO.jQ&&(this.embedsRct=l9(this.embedsRct,B.rct),this.embedsRctn=l9(this.embedsRctn,B.rctn));this.g2=this.g2||!!B.pause_at_start;B.default_active_source_video_id&&(this.defaultActiveSourceVideoId=B.default_active_source_video_id)}; g.I.K=function(){return this.bO}; g.I.D=function(B){return this.bO.D(B)}; g.I.TO=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.I.hasSupportedAudio51Tracks=function(){var B;return!((B=this.qr)==null||!B.eI)}; g.I.getUserAudio51Preference=function(){var B=1;ej(this.bO)&&this.D("html5_ytv_surround_toggle_default_off")?B=0:g.jj(this.bO)&&this.isLivePlayback&&this.Cp()&&(B=0);var z;return(z=g.kK("yt-player-audio51"))!=null?z:B}; g.I.EW=function(){this.xd()||(this.T.U||this.T.unsubscribe("refresh",this.EW,this),this.FC(-1))}; g.I.FC=function(B){if(!this.isLivePlayback||!this.V||this.V.flavor!=="fairplay"){var z=oUz(this.T,this.Io);if(z.length>0){for(var T=g.d(z),R=T.next();!R.done;R=T.next())R=R.value,R.startSecs=Math.max(R.startSecs,this.NW()),this.D("html5_cuepoint_identifier_logging")&&R.event==="start"&&this.OE("cuepoint",{pubCue:R.identifier,segNum:B});this.publish("cuepointupdated",z,B);this.Io+=z.length;if(is(this)&&this.bO.L4())for(z=g.d(z),T=z.next();!T.done;T=z.next())T=T.value,this.OE("cuepoint",{segNum:B,event:T.event, startSecs:T.startSecs,id:T.identifier.slice(-16)}),T.event==="start"&&(T=T.startSecs,this.y6.start=this.s0,this.y6.end=T+3)}}}; g.I.iN=function(){this.xd()||(this.loading=!1,this.publish("dataloaded"))}; g.I.Cp=function(){return this.yj!==void 0?this.yj:this.yj=!!this.Ft||!!this.T&&Gu(this.T)}; g.I.vP=function(B){var z=this;if(this.xd())return xv();this.t0=this.sE=this.Y=null;jv(this,"html5_high_res_logging_always")&&(this.bO.r3=!0);return R$z(this,B).then(void 0,function(){return WIY(z,B)}).then(void 0,function(){return b6b(z)}).then(void 0,function(){return lSK(z)})}; g.I.LM=function(B){this.Y=B;h$B(this,this.Y.getAvailableAudioTracks());if(this.Y){B=g.d(this.Y.videoInfos);for(var z=B.next();!z.done;z=B.next()){z=z.value;var T=z.containerType;T!==0&&(this.KC[T]=z.id)}}B=this.getAvailableAudioTracks();B=B.concat(this.Ua);for(z=0;z0?this.Y.getAvailableAudioTracks():this.O6||[]:[]}; g.I.getAudioTrack=function(){var B=this;if(this.W&&!SR(this.W)){var z=g.Cs(this.getAvailableAudioTracks(),function(h){return h.id===B.W.id}),T; if(!z&&((T=this.W.HB)==null?0:T.id)){var R=this.W.HB.id;z=g.Cs(this.getAvailableAudioTracks(),function(h){return h.HB.id===R}); this.OE("nat",{id:this.W.id,track:!!z})}return z||this.Ua}if(this.O6){if(!this.wY)for(z=g.d(this.O6),T=z.next();!T.done;T=z.next())if(T=T.value,T.HB.getIsDefault()){this.wY=T;break}return this.wY||this.Ua}return this.Ua}; g.I.getPlayerResponse=function(){return this.playerResponse}; g.I.getWatchNextResponse=function(){return this.XE}; g.I.getHeartbeatResponse=function(){return this.l5}; g.I.Go=function(){return this.watchUrl?this.watchUrl:this.bO.getVideoUrl(this.videoId)}; g.I.WW=function(){return!!this.T&&(YFl(this.T)||lZK(this.T)||wqd(this.T))}; g.I.getEmbeddedPlayerResponse=function(){return this.Kp}; g.I.mP=function(){return(this.eventLabel||this.bO.XE)==="shortspage"}; g.I.isAd=function(){return!!this.adFormat}; g.I.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.I.Gz=function(){var B,z,T;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((B=this.playerResponse)==null?0:(z=B.playerConfig)==null?0:(T=z.daiConfig)==null?0:T.ssaEnabledPlayback)}; g.I.qA=function(){return pEz(this)?this.ge:this.Zy||this.mD}; g.I.nD=function(){return this.AY||this.mD}; g.I.fS=function(){return jv(this,"html5_samsung_vp9_live")}; g.I.OE=function(B,z,T){this.publish("ctmp",B,z,T)}; g.I.cM=function(B,z,T){this.publish("ctmpstr",B,z,T)}; g.I.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.I.getGetAdBreakContext=function(B,z){B=B===void 0?NaN:B;z=z===void 0?NaN:z;var T={isSabr:bs(this)},R,h=(R=this.getHeartbeatResponse())==null?void 0:R.adBreakHeartbeatParams;h&&(T.adBreakHeartbeatParams=h);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(B)&&!isNaN(z)){z=B-z;for(var W in this.T.T)if(R=this.T.T[W],R.info.Mr()||R.info.lf())if(R=R.index,R.isLoaded()){W=R.Yh(z);R=R.gt(W)+z-R.getStartTime(W);this.OE("gabc",{t:B.toFixed(3),mt:z.toFixed(3),sg:W,igt:R.toFixed(3)}); T.livePlaybackPosition={utcTimeMillis:""+(R*1E3).toFixed(0)};break}}return T}; g.I.isEmbedsShortsMode=function(B,z){if(!g.yW(this.bO)||(this.bO.RK||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||z)return!1;var T,R;return!!(((T=this.embeddedPlayerConfig)==null?0:(R=T.embeddedPlayerFlags)==null?0:R.isShortsExperienceEligible)&&B.width<=B.height)}; g.I.gF=function(){g.Cl.prototype.gF.call(this);this.xj=null;delete this.Yc;delete this.accountLinkingConfig;delete this.T;this.Y=this.l5=this.playerResponse=this.XE=null;this.r3=this.adaptiveFormats="";delete this.botguardData;this.MG=this.suggestions=this.qk=null;this.sabrContextUpdates.clear()};var mLr={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},nmK={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},kjY={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},xL5={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"},DLP={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},vmK={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"},KIz={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.G(Bw,g.K);g.I=Bw.prototype;g.I.handleExternalCall=function(B,z,T){var R=this.state.L[B],h=this.state.J[B],W=R;if(h)if(T&&Bj(T,Hrq))W=h;else if(!R)throw Error('API call from an untrusted origin: "'+T+'"');this.logApiCall(B,T);if(W){T=!1;R=g.d(z);for(h=R.next();!h.done;h=R.next())if(String(h.value).includes("javascript:")){T=!0;break}T&&g.KV(Error('Dangerous call to "'+B+'" with ['+z+"]."));return W.apply(this,z)}throw Error('Unknown API method: "'+B+'".');}; g.I.logApiCall=function(B,z,T){var R=this.app.K();R.wY&&!this.state.N.has(B)&&(this.state.N.add(B),g.ip("webPlayerApiCalled",{callerUrl:R.loaderUrl,methodName:B,origin:z||void 0,playerStyle:R.playerStyle||void 0,embeddedPlayerMode:R.RK,errorCode:T}))}; g.I.publish=function(B){var z=g.K5.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[B].concat(g.Q(z)));if(B==="videodatachange"||B==="resize"||B==="cardstatechange")this.state.U.publish.apply(this.state.U,[B].concat(g.Q(z))),this.state.W.publish.apply(this.state.W,[B].concat(g.Q(z)))}; g.I.uO=function(B){var z=g.K5.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[B].concat(g.Q(z)));this.state.U.publish.apply(this.state.U,[B].concat(g.Q(z)))}; g.I.A0=function(B){var z=g.K5.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[B].concat(g.Q(z)));this.state.U.publish.apply(this.state.U,[B].concat(g.Q(z)));this.state.W.publish.apply(this.state.W,[B].concat(g.Q(z)))}; g.I.Pd=function(B){var z=g.K5.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[B].concat(g.Q(z)));this.state.U.publish.apply(this.state.U,[B].concat(g.Q(z)));this.state.W.publish.apply(this.state.W,[B].concat(g.Q(z)));this.state.V.publish.apply(this.state.V,[B].concat(g.Q(z)))}; g.I.D=function(B){return this.app.K().D(B)}; g.I.gF=function(){if(this.state.element){var B=this.state.element,z;for(z in this.state.T)this.state.T.hasOwnProperty(z)&&(B[z]=null);this.state.element=null}g.K.prototype.gF.call(this)};g.G(q2,g.Jn);q2.prototype.publish=function(B){var z=g.K5.apply(1,arguments);if(this.V.has(B))return this.V.get(B).push(z),!0;var T=!1;try{for(z=[z],this.V.set(B,z);z.length;)T=g.Jn.prototype.publish.call.apply(g.Jn.prototype.publish,[this,B].concat(g.Q(z.shift())))}finally{this.V.delete(B)}return T};g.G(iN,g.K);iN.prototype.gF=function(){this.V.dispose();this.W.dispose();this.U.dispose();this.Y.dispose();this.N=this.T=this.J=this.L=this.X=void 0};var joK=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.G(LB,Bw);g.I=LB.prototype;g.I.getApiInterface=function(){return Array.from(this.state.X)}; g.I.Qf=function(B,z){this.state.V.subscribe(B,z)}; g.I.tDm=function(B,z){this.state.V.unsubscribe(B,z)}; g.I.getPlayerState=function(B){return EGz(this.app,B)}; g.I.qo=function(){return EGz(this.app)}; g.I.vgE=function(B,z,T){oy(this)&&(KS(this.app,!0,1),ut(this.app,B,z,T,1))}; g.I.getCurrentTime=function(B,z,T){var R=this.getPlayerState(B);if(this.app.getAppState()===2&&R===5){var h;return((h=this.app.getVideoData())==null?void 0:h.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&R===0?pS(this.app,B):B?this.app.getCurrentTime(B,z,T):this.app.getCurrentTime(B)}; g.I.Bz=function(){return this.app.getCurrentTime(1)}; g.I.FF=function(){var B=this.app.gt(1);return isNaN(B)?this.getCurrentTime(1):B}; g.I.XF=function(){return this.app.getDuration(1)}; g.I.HF=function(B,z){B=g.yQ(Math.floor(B),0,100);isFinite(B)&&g0(this.app,{volume:B,muted:this.isMuted()},z)}; g.I.DQm=function(B){this.HF(B,!1)}; g.I.CB=function(B){g0(this.app,{muted:!0,volume:this.getVolume()},B)}; g.I.MIO=function(){this.CB(!1)}; g.I.gk=function(B){r4(this.app)&&!this.D("embeds_enable_emc3ds_muted_autoplay")||g0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},B)}; g.I.Ugd=function(){r4(this.app)&&this.D("embeds_enable_emc3ds_muted_autoplay")||this.gk(!1)}; g.I.getPlayerMode=function(){var B={};this.app.getVideoData().Jj&&(B.pfp={enableIma:g.Zr(this.app.getVideoData())&&this.app.O2().allowImaMonetization,autoplay:kh(this.app.O2()),mutedAutoplay:this.app.O2().mutedAutoplay});return B}; g.I.QD=function(){var B=this.app.getPresentingPlayerType();if(B===2&&!this.app.w3()){var z=J5(this.app.bK());if(!(BXs(z)||this.app.K().D("embeds_emc3ds_dompaused_fix")&&g.yW(this.app.K())&&g.X(this.app.Ji().getPlayerState(),1024))||zYI(z))return}(z=this.app.tf().Dn)?z.playVideo():this.app.playVideo(B)}; g.I.UrE=function(){KS(this.app,!0,1);this.QD()}; g.I.pauseVideo=function(B){var z=this.app.getPresentingPlayerType();if(z!==2||this.app.w3()||BXs(J5(this.app.bK()))){var T=this.app.tf().Dn;T?T.pauseVideo():this.app.pauseVideo(z,B)}}; g.I.mQJ=function(){var B=this.app,z=!1;B.dF.JZ&&(B.Lf.publish("pageTransition"),z=!0);B.stopVideo(z)}; g.I.clearVideo=function(){}; g.I.getAvailablePlaybackRates=function(){var B=this.app.K();return B.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(B.W?B.ancestorOrigins[0]:window.location.origin)||B.k9?FMp:B.supportsVarispeedExtendedFeatures?IVp:B.D("web_remix_allow_up_to_3x_playback_rate")&&g.f0(B)?GN5:yF:[1]}; g.I.getPlaybackQuality=function(B){return(B=this.app.n2(B))?B.getPlaybackQuality():"unknown"}; g.I.bxJ=function(){}; g.I.getAvailableQualityLevels=function(B){return(B=this.app.n2(B))?(B=g.s9(B.ac(),function(z){return z.quality}),B.length&&(B[0]==="auto"&&B.shift(),B=B.concat(["auto"])),B):[]}; g.I.gg=function(){return this.getAvailableQualityLevels(1)}; g.I.GF=function(){return this.uS()}; g.I.mC=function(){return 1}; g.I.getVideoLoadedFraction=function(B){return this.app.getVideoLoadedFraction(B)}; g.I.uS=function(){return this.getVideoLoadedFraction()}; g.I.Mo=function(){return 0}; g.I.getSize=function(){var B=this.app.NG().getPlayerSize();return{width:B.width,height:B.height}}; g.I.setSize=function(){this.app.NG().resize()}; g.I.loadVideoById=function(B,z,T,R){if(!B)return!1;B=cw(B,z,T);return this.app.loadVideoByPlayerVars(B,R)}; g.I.WJJ=function(B,z,T){B=this.loadVideoById(B,z,T,1);KS(this.app,B,1)}; g.I.cueVideoById=function(B,z,T,R){B=cw(B,z,T);this.app.cueVideoByPlayerVars(B,R)}; g.I.kR=function(B,z,T){this.cueVideoById(B,z,T,1)}; g.I.loadVideoByUrl=function(B,z,T,R){B=tq5(B,z,T);return this.app.loadVideoByPlayerVars(B,R)}; g.I.jKJ=function(B,z,T){B=this.loadVideoByUrl(B,z,T,1);KS(this.app,B,1)}; g.I.cueVideoByUrl=function(B,z,T,R){B=tq5(B,z,T);this.app.cueVideoByPlayerVars(B,R)}; g.I.vx=function(B,z,T){this.cueVideoByUrl(B,z,T,1)}; g.I.pR=function(){var B=this.app.K();if(B.UE)return"";var z=this.app.O2(),T=void 0;z.isLivePlayback||(T=Math.floor(this.app.getCurrentTime(1)));return B.getVideoUrl(z.videoId,this.getPlaylistId()||void 0,T)}; g.I.RB=function(){return this.app.getDebugText()}; g.I.getVideoEmbedCode=function(){var B=this.app.K();if(B.UE)return"";var z=this.app.O2();return B.getVideoEmbedCode(z.isPrivate?"":z.title,this.app.O2().videoId,this.app.NG().getPlayerSize(),this.getPlaylistId()||void 0)}; g.I.YR=function(B,z,T){return bZH(this.app,B,z,T)}; g.I.removeCueRange=function(B){return lTz(this.app,B)}; g.I.loadPlaylist=function(B,z,T,R){this.app.loadPlaylist(B,z,T,R)}; g.I.gdf=function(B,z,T,R){this.loadPlaylist(B,z,T,R);KS(this.app,!0,1)}; g.I.cuePlaylist=function(B,z,T,R){this.app.cuePlaylist(B,z,T,R)}; g.I.nextVideo=function(B,z){this.app.nextVideo(B,z)}; g.I.KJO=function(){this.nextVideo();KS(this.app,!0,1)}; g.I.previousVideo=function(B){this.app.previousVideo(B)}; g.I.VDm=function(){this.previousVideo();KS(this.app,!0,1)}; g.I.playVideoAt=function(B){this.app.playVideoAt(B)}; g.I.T3E=function(B){this.playVideoAt(B);KS(this.app,!0,1)}; g.I.setShuffle=function(B){var z=this.app.getPlaylist();z&&z.setShuffle(B)}; g.I.setLoop=function(B){var z=this.app.getPlaylist();z&&(z.loop=B)}; g.I.IB=function(){var B=this.app.getPlaylist();if(!B)return null;for(var z=[],T=0;T=400)if(B=this.O2(),this.j.K().D("client_respect_autoplay_switch_button_renderer"))B=!!B.autoplaySwitchButtonRenderer;else{var z,T,R,h;B=!!((z=B.getWatchNextResponse())==null?0:(T=z.contents)==null?0:(R=T.twoColumnWatchNextResults)==null?0:(h=R.autoplay)==null?0:h.autoplay)!==!1}if(B)this.T||(this.T=!0,this.kW(this.T),this.j.K().D("web_player_autonav_toggle_always_listen")||FGd(this), z=this.O2(),this.ND(z.autonavState),this.j.logVisibility(this.element,this.T));else if(this.T=!1,this.kW(this.T),!this.j.K().D("web_player_autonav_toggle_always_listen"))for(this.j.K().D("web_player_autonav_toggle_always_listen"),z=g.d(this.U),T=z.next();!T.done;T=z.next())this.V2(T.value)}; g.I.ND=function(B){Gcz(this)?this.isChecked=B!==1:((B=B!==1)||(g.fD(),B=g.ac("web_autonav_allow_off_by_default")&&!g.OW(0,141)&&g.ek("AUTONAV_OFF_BY_DEFAULT")?!1:!g.OW(0,140)),this.isChecked=B);IRz(this)}; g.I.onClick=function(){this.isChecked=!this.isChecked;this.j.by(this.isChecked?2:1);IRz(this);if(Gcz(this)){var B=this.O2().autoplaySwitchButtonRenderer;this.isChecked&&(B==null?0:B.onEnabledCommand)?this.j.uO("innertubeCommand",B.onEnabledCommand):!this.isChecked&&(B==null?0:B.onDisabledCommand)&&this.j.uO("innertubeCommand",B.onDisabledCommand)}this.j.logClick(this.element)}; g.I.getValue=function(){return this.isChecked}; g.I.O2=function(){return this.j.getVideoData(1)};g.G(dhb,ee);g.G(RM,g.N2);RM.prototype.onClick=function(){this.enabled&&(hh(this,!this.checked),this.publish("select",this.checked))}; RM.prototype.getValue=function(){return this.checked}; RM.prototype.setEnabled=function(B){(this.enabled=B)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var aRB=["en-CA","en","es-MX","fr-CA"];g.G(ix,RM);ix.prototype.rF=function(B){B?this.T||(this.WB.Fu(this),this.T=!0):this.T&&(this.WB.sJ(this),this.T=!1);this.T&&hh(this,voz())}; ix.prototype.W=function(){g.iH(this.element,"ytp-menuitem-highlight-transition-enabled")}; ix.prototype.Y=function(B){var z=voz();B!==z&&(z=g.fD(),tQ(190,B),tQ(192,!0),z.save(),this.j.uO("cinematicSettingsToggleChange",B))}; ix.prototype.gF=function(){this.T&&this.WB.sJ(this);RM.prototype.gF.call(this)};g.G(cO,ee);cO.prototype.updateCinematicSettings=function(B){this.T=B;var z;(z=this.menuItem)==null||z.rF(B);this.api.publish("onCinematicSettingsVisibilityChange",B)};g.G(QLK,ee);g.G(Lf,ee);Lf.prototype.setCreatorEndscreenVisibility=function(B){var z;(z=xl(this.api.bK()))==null||z.kW(B)}; Lf.prototype.T=function(B){function z(R){R==="creatorendscreen"&&(R=xl(T.api.bK()))&&R.Q1E(T.hideButton)} var T=this;this.hideButton=B;this.events.Z(this.api,"modulecreated",z);z("creatorendscreen")};g.G(Cf,RM);Cf.prototype.W=function(B){this.Y(B?1:0)}; Cf.prototype.U=function(){var B=this.hasDrcAudioTrack(),z=this.T()===1&&B;hh(this,z);this.setEnabled(B)}; Cf.prototype.gF=function(){this.WB.sJ(this);RM.prototype.gF.call(this)};g.G(rQ,ee);rQ.prototype.getDrcUserPreference=function(){return this.T}; rQ.prototype.setDrcUserPreference=function(B){g.D_("yt-player-drc-pref",B,31536E3);B!==this.T&&(this.T=B,this.updateEnvironmentData(),this.U()&&this.api.B_())}; rQ.prototype.updateEnvironmentData=function(){this.api.K().tj=this.T===1}; rQ.prototype.U=function(){var B,z,T=(B=this.api.getVideoData())==null?void 0:(z=B.Y)==null?void 0:z.T;if(!T)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var R,h,W=(R=this.api.JF())==null?void 0:(h=R.HB)==null?void 0:h.id;return Sa(T,function(b){var l;return b.audio.T&&((l=b.HB)==null?void 0:l.id)===W})}return Sa(T,function(b){var l; return((l=b.audio)==null?void 0:l.T)===!0})};g.G(oM,ee);oM.prototype.onVideoDataChange=function(){var B=this,z=this.api.getVideoData();this.api.I7("embargo",1);var T=z==null?void 0:z.PR.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(T==null?0:T.length)?gTz(this,T.filter(function(R){return yTr(B,R)})):(z==null?0:z.cueRanges)&&gTz(this,z.cueRanges.filter(function(R){return yTr(B,R)}))}; oM.prototype.U=function(B){return B.embargo!==void 0}; oM.prototype.gF=function(){ee.prototype.gF.call(this);this.T={}};g.G(FC,ee); FC.prototype.addEmbedsConversionTrackingParams=function(B){var z=this.api.K(),T=z.widgetReferrer,R=z.C4,h=this.T,W="",b=z.getWebPlayerContextConfig();b&&(W=b.embedsIframeOriginParam||"");T.length>0&&(B.embeds_widget_referrer=T);R.length>0&&(B.embeds_referring_euri=R);z.W&&W.length>0&&(B.embeds_referring_origin=W);b&&b.embedsFeature&&(B.feature=b.embedsFeature);h.length>0&&(z.D("embeds_web_enable_lite_experiment_control_arm_logging")?h.unshift(28572):g.cZ(g.kC(z))&&h.unshift(159628),z=h.join(","),z= g.jH()?z:g.Yn(z,4),B.source_ve_path=z);this.T.length=0};g.G(JTd,ee);g.G(pMd,ee);g.G(IM,g.K);IM.prototype.gF=function(){g.K.prototype.gF.call(this);this.T=null;this.U&&this.U.disconnect()};g.G(Pyz,ee);g.G(G4,g.O);G4.prototype.show=function(){g.O.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; G4.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)}; G4.prototype.onVideoDataChange=function(B){var z,T,R=(z=this.api.getVideoData())==null?void 0:(T=z.getPlayerResponse())==null?void 0:T.playabilityStatus;R&&(z=xhP(R),g.X(this.api.getPlayerStateObject(),128)||B==="dataloaderror"||!z?(this.U=0,this.stopTimer(),this.hide()):(B=(z.remainingTimeSecs||0)*1E3,B>0&&(this.show(),this.updateValue("label",yw(z.label)),Dhd(this,B))))}; G4.prototype.gF=function(){this.stopTimer();g.O.prototype.gF.call(this)};g.G(kcK,ee);g.G(dQ,g.O);dQ.prototype.onClick=function(){this.Lf.logClick(this.element);this.Lf.uO("onFullerscreenEduClicked")}; dQ.prototype.rF=function(){this.Lf.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.Lf.logVisibility(this.element,this.Lf.isFullscreen()&&!this.T)};g.G(Ah,ee);Ah.prototype.updateFullerscreenEduButtonSubtleModeState=function(B){var z;(z=this.T)!=null&&(g.L2(z.element,"ytp-fullerscreen-edu-button-subtle",B),B&&!z.U&&(z.element.setAttribute("title","Scroll for details"),ay(z.Lf,z.element,z),z.U=!0))}; Ah.prototype.updateFullerscreenEduButtonVisibility=function(B){var z;(z=this.T)!=null&&(z.T=B,z.rF())};g.G(KG5,g.O);g.G(u75,ee);g.G(aM,ee);aM.prototype.getSphericalProperties=function(){var B=g.pB(this.api.bK());return B?B.getSphericalProperties():{}}; aM.prototype.setSphericalProperties=function(B){if(B){var z=g.pB(this.api.bK());z&&z.setSphericalProperties(B,!0)}};g.G(Ut,ee);g.I=Ut.prototype;g.I.createClientVe=function(B,z,T,R){this.api.createClientVe(B,z,T,R===void 0?!1:R)}; g.I.createServerVe=function(B,z,T){this.api.createServerVe(B,z,T===void 0?!1:T)}; g.I.setTrackingParams=function(B,z){this.api.setTrackingParams(B,z)}; g.I.logClick=function(B,z){this.api.logClick(B,z)}; g.I.logVisibility=function(B,z,T){this.api.logVisibility(B,z,T)}; g.I.hasVe=function(B){return this.api.hasVe(B)}; g.I.destroyVe=function(B){this.api.destroyVe(B)};var fRr=!1;Vh.prototype.setPlaybackRate=function(B){this.playbackRate=Math.max(1,B)}; Vh.prototype.getPlaybackRate=function(){return this.playbackRate};pf.prototype.uj=function(B){var z=g.Bn(B.info.T.info,this.qG.PB),T=B.info.FE+this.W,R=B.info.startTime*1E3;if(this.policy.sE)try{R=this.policy.sE?g.Yf(B)*1E3:B.info.startTime*1E3}catch(b){Math.random()>.99&&this.logger&&(R=QA(B.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:B.info.Wc(),encodedDataView:g.bT(R,4)})),R=B.info.startTime*1E3}var h=B.info.clipId,W=this.policy.sE?g.txz(B)*1E3:B.info.duration*1E3;this.policy.sE&&(R<0||W<0)&&(this.logger&&(this.logger({missingSegInfo:B.info.Wc(), startTimeMs:R,durationMs:W}),this.policy.l9||(R<0&&(R=B.info.startTime*1E3),W<0&&(W=B.info.duration*1E3))),this.policy.l9&&(R<0&&(R=B.info.startTime*1E3),W<0&&(W=B.info.duration*1E3)));return{formatId:z,FE:T,startTimeMs:R,clipId:h,XK:W}}; pf.prototype.mW=function(B){this.timestampOffset=B};PO.prototype.seek=function(B,z){B!==this.T&&(this.seekCount=0);this.T=B;var T=this.videoTrack.U,R=this.audioTrack.U,h=this.audioTrack.yI,W=Y8r(this,this.videoTrack,B,this.videoTrack.yI,z);z=Y8r(this,this.audioTrack,this.policy.fF?B:W,h,z);B=Math.max(B,W,z);this.V=!0;this.qG.isManifestless&&(T$P(this,this.videoTrack,T),T$P(this,this.audioTrack,R));return B}; PO.prototype.isSeeking=function(){return this.V}; PO.prototype.Fd=function(B){this.Y=B}; var bQB=2/24;var q8z=0;g.I=Ot.prototype;g.I.KT=function(){this.N=this.now();Ril(this.jF,this.N);this.BB.KT()}; g.I.x$=function(B,z){var T=this.policy.U?(0,g.f)():0;NP(this,B,z);B-this.X<10&&this.U>0||this.m6(B,z);this.BB.x$(B,z);this.policy.U&&(B=(0,g.f)()-T,this.Dm+=B,this.EE=Math.max(B,this.EE))}; g.I.m6=function(B,z){var T=(B-this.X)/1E3,R=z-this.Y;this.bD||(In(this.jF,T,R),this.ob(T,R));this.X=B;this.Y=z}; g.I.qU=function(){this.RK&&iQr(this);this.BB.qU()}; g.I.F2=function(B){this.RK||(this.RK=this.V-this.ra+B,this.s0=this.V,this.C4=this.L)}; g.I.CT=function(B,z){B=B===void 0?this.L:B;z=z===void 0?this.V:z;this.U>0||(this.J=B,this.U=z,this.TZ=this.isActive=!0)}; g.I.bC=function(){return this.qQ||2}; g.I.Q7=function(){}; g.I.tR=function(){var B,z={rn:this.requestNumber,rt:(this.L-this.T).toFixed(),lb:this.V,stall:(1E3*this.W).toFixed(),ht:(this.N-this.T).toFixed(),elt:(this.J-this.T).toFixed(),elb:this.U,d:(B=this.XE)==null?void 0:B.Y0()};this.url&&HXr(z,this.url);this.policy.U&&(z.mph=this.EE.toFixed(),z.tph=this.Dm.toFixed());z.ulb=this.zZ;z.ult=this.UE;return z}; g.I.now=function(){return(0,g.f)()}; g.I.deactivate=function(){this.isActive&&(this.isActive=!1)};g.G(jF,Ot);g.I=jF.prototype;g.I.tR=function(){var B=Ot.prototype.tR.call(this);B.pb=this.tF;B.pt=(1E3*this.aK).toFixed();B.se=this.JZ;return B}; g.I.jM=function(){var B=this.BB;this.sE||(this.sE=B.jM?B.jM():1);return this.sE}; g.I.Ds=function(){return this.NK?this.jM()!==1:!1}; g.I.vW=function(B,z,T){if(!this.Sk){this.Sk=!0;if(!this.bD){NP(this,B,z);this.m6(B,z);var R=this.jM();this.JZ=T;if(!this.bD)if(R===2){R=B-this.J0)||XC(this,R,z),this.U>0&&on(this.jF,z,this.W));B=(B-this.T)/ 1E3||.01;this.policy.J&&!(this.U>0)||rP(this.jF,B,this.Y,LmY(this),this.S8)}this.deactivate()}}; g.I.Hs=function(B,z,T){T&&(this.sE=2);B<0&&this.qQ&&(B=this.qQ);z?this.Kf+=B:this.IK+=B}; g.I.bC=function(){return this.IK||this.Kf||Ot.prototype.bC.call(this)}; g.I.m6=function(B,z){var T=(B-this.X)/1E3,R=z-this.Y,h=this.jM();this.isActive?h===1&&((R>0||this.policy.V)&&(T>.2||R<1024)?(this.W+=T,R>0&&T>.2&&XC(this,this.Af?T:.05,R),this.U0=!0):R>0&&(XC(this,T,R),this.U0=!0)):z&&z>=this.policy.T&&this.CT(B,z);Ot.prototype.m6.call(this,B,z)}; g.I.El=function(B){if(!this.bD){NP(this,B,this.V);var z=(B-this.T)/1E3;this.jM()!==2&&this.U>0&&(this.W+=(B-this.X)/1E3,on(this.jF,this.Y,this.W));rP(this.jF,z,this.Y,LmY(this),this.S8,!0);B=(B-this.X)/1E3;In(this.jF,B,0);this.ob(B,0)}}; g.I.CT=function(B,z){B=B===void 0?this.L:B;z=z===void 0?this.V:z;if(!(this.U>0)&&(Ot.prototype.CT.call(this,B,z),this.jM()===1)){z=(this.N-this.T)/1E3;var T=(B-this.N)/1E3;this.NK&&Z9(this,this.now());this.O0||this.bD||(this.qQ&&(T=Math.max(0,T-this.qQ)),B=this.jF,B.J.ew(1,z),B.XE.ew(1,T))}}; g.I.ZI=function(){this.NK&&Z9(this,this.now());return this.cD}; g.I.vT=function(){var B;if(B=this.Y>this.kT)B=(B=this.Y)?B>=this.policy.T:!1;return B}; g.I.D$=function(){return this.MG}; g.I.Le=function(B){B=B===void 0?this.now():B;if(this.NK){Z9(this,B);if(this.sE?this.Ds():this.WD!==this.lO){var z=this.lO;if(B0?T+B:T+Math.max(B,z)}; g.I.v6=function(){return this.now()-this.J}; g.I.nH=function(){return(this.Y-this.U)*1E3/this.v6()||0}; g.I.Mx=function(){return this.J};eF.prototype.feed=function(B){al(this.T,B);this.nQ()}; eF.prototype.nQ=function(){if(this.W){if(!this.T.getLength())return;var B=this.T.split(this.Y-this.U),z=B.Km;B=B.Y3;if(!this.BB.F2(this.W,z,this.U,this.Y))return;this.U+=z.getLength();this.T=B;this.U===this.Y&&(this.W=this.Y=this.U=void 0)}for(;;){var T=0;B=g.d(FmB(this.T,T));z=B.next().value;T=B.next().value;T=g.d(FmB(this.T,T));B=T.next().value;T=T.next().value;if(z<0||B<0)break;if(!this.T.p_(T,B)){if(!this.BB.F2||!this.T.p_(T,1))break;T=this.T.split(T).Y3;this.BB.F2(z,T,0,B)&&(this.W=z,this.U= T.getLength(),this.Y=B,this.T=new AA([]));break}B=this.T.split(T).Y3.split(B);T=B.Y3;this.BB.Y7(z,B.Km);this.T=T}}; eF.prototype.dispose=function(){this.T=new AA};g.I=Et.prototype;g.I.i7=function(){return 0}; g.I.Ox=function(){return null}; g.I.PQ=function(){return null}; g.I.Qy=function(){return this.state>=1}; g.I.isComplete=function(){return this.state>=3}; g.I.uo=function(){return this.state===5}; g.I.onStateChange=function(){}; g.I.J0=function(B){var z=this.state;this.state=B;this.onStateChange(z);this.callback&&this.callback(this,z)}; g.I.aP=function(B){B&&this.state=this.xhr.HEADERS_RECEIVED}; g.I.getResponseHeader=function(B){try{return this.xhr.getResponseHeader(B)}catch(z){return""}}; g.I.mV=function(){return+this.getResponseHeader("content-length")}; g.I.ZX=function(){return this.U}; g.I.iT=function(){return this.status>=200&&this.status<300&&!!this.U}; g.I.C1=function(){return this.T.getLength()>0}; g.I.DY=function(){var B=this.T;this.T=new AA;return B}; g.I.M$=function(){return this.T}; g.I.abort=function(){this.xd=!0;this.xhr.abort()}; g.I.QL=function(){return!0}; g.I.wQ=function(){return this.Y}; g.I.B4=function(){return""};zZ.prototype.dI=function(B,z){z=z===void 0?1:z;this.Kt+=z;this.U+=B;B/=z;for(var T=0;T0)R+="."+Be[h].toFixed(0)+"_"+T.T[h].toFixed(0);else break;T=R}T&&(B[z]=T)}this.T=new Gub;return B}; g.I.toString=function(){return""};g.I=M8H.prototype;g.I.isActive=function(){return!1}; g.I.N9=function(){}; g.I.lH=function(){}; g.I.vM=function(){}; g.I.mN=function(){}; g.I.xI=function(B,z){z()}; g.I.bS=function(){return{}}; g.I.toString=function(){return""};var Y4,UlR,Mbc,Vb5,QKW,lE,VJ,RB,xAK;Y4=new M8H;UlR=!!+sE("html5_enable_profiler");Mbc=!!+sE("html5_onesie_enable_profiler");Vb5=!!+sE("html5_offline_encryption_enable_profiler");QKW=!!+sE("html5_performance_impact_profiling_timer_ms");lE=UlR||Mbc||Vb5||QKW?new A1z:Y4;g.vd=UlR?lE:Y4;VJ=Mbc?lE:Y4;RB=Vb5?lE:Y4;xAK=QKW?lE:Y4;g.I=y1K.prototype;g.I.getResponseHeader=function(B){return B==="content-type"?this.T.get("type"):""}; g.I.abort=function(){}; g.I.hA=function(){return!0}; g.I.mV=function(){return this.range.length}; g.I.ZX=function(){return this.loaded}; g.I.iT=function(){return!!this.loaded}; g.I.C1=function(){return!!this.U.getLength()}; g.I.DY=function(){var B=this.U;this.U=new AA;return B}; g.I.M$=function(){return this.U}; g.I.QL=function(){return!0}; g.I.wQ=function(){return!!this.error}; g.I.B4=function(){return this.error};g.I=J1b.prototype;g.I.start=function(B){var z={credentials:"include",cache:"no-store"};Object.assign(z,this.L);this.W&&(z.signal=this.W.signal);B=new Request(B,z);fetch(B).then(this.N,this.onError).then(void 0,qw)}; g.I.onDone=function(){this.xd()||this.BB.qU()}; g.I.getResponseHeader=function(B){return this.responseHeaders?this.responseHeaders.get(B):null}; g.I.hA=function(){return!!this.responseHeaders}; g.I.ZX=function(){return this.U}; g.I.mV=function(){return+this.getResponseHeader("content-length")}; g.I.iT=function(){return this.status>=200&&this.status<300&&!!this.U}; g.I.C1=function(){return!!this.T.getLength()}; g.I.DY=function(){this.C1();var B=this.T;this.T=new AA;return B}; g.I.M$=function(){this.C1();return this.T}; g.I.xd=function(){return this.V}; g.I.abort=function(){this.Y&&this.Y.cancel().catch(function(){}); this.W&&this.W.abort();this.V=!0}; g.I.QL=function(){return!0}; g.I.wQ=function(){return this.X}; g.I.B4=function(){return this.errorMessage};g.I=pKX.prototype;g.I.onDone=function(){if(!this.xd){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(B){}this.T=!0;this.BB.qU()}}; g.I.TE=function(){this.xhr.readyState===2&&this.BB.KT()}; g.I.MQ=function(B){this.xd||(this.status=this.xhr.status,this.T||(this.U=B.loaded),this.BB.x$((0,g.f)(),B.loaded))}; g.I.hA=function(){return this.xhr.readyState>=2}; g.I.getResponseHeader=function(B){try{return this.xhr.getResponseHeader(B)}catch(z){return g.KV(Error("Could not read XHR header "+B)),""}}; g.I.mV=function(){return+this.getResponseHeader("content-length")}; g.I.ZX=function(){return this.U}; g.I.iT=function(){return this.status>=200&&this.status<300&&this.T&&!!this.U}; g.I.C1=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.I.DY=function(){this.C1();var B=this.response;this.response=void 0;return new AA([new Uint8Array(B)])}; g.I.M$=function(){this.C1();return new AA([new Uint8Array(this.response)])}; g.I.abort=function(){this.xd=!0;this.xhr.abort()}; g.I.QL=function(){return!1}; g.I.wQ=function(){return!1}; g.I.B4=function(){return""};g.G(We,g.K);We.prototype.Uv=function(){if(!this.sf.length)return[];var B=this.sf;this.sf=[];this.Y=g.c7(B).info;return B}; We.prototype.z7=function(){return this.sf}; We.prototype.gF=function(){g.K.prototype.gF.call(this);this.T=null;this.sf.length=0;this.oK.length=0;this.Y=null};g.G(Yd,g.K);g.I=Yd.prototype; g.I.MDu=function(){if(!this.xd()){var B=(0,g.f)(),z=!1;if(this.policy.Q_){B=B-(this.timing.U>0?this.timing.J:this.timing.T)-this.timing.bC()*1E3;var T=aE(lJ(this),!1);B>=2E3*T?z=!0:B>=this.policy.b4*T&&(this.T=this.policy.Oa)}else if(this.timing.U>0){if(this.V){this.policy.ra&&(this.T=0);return}var R=this.timing.D$();this.timing.Le();var h=this.timing.D$();h-R>=this.policy.L2*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(h-R).toFixed(0)}),z=this.T>=5):this.T=0}else{var W=B-this.timing.ZI(); this.policy.Oa&&W>0&&(this.T+=1);z=aE(lJ(this),!1)*this.policy.IZ;(z=W>z*1E3)&&this.logger.debug(function(){return"Elbow late by "+W.toFixed(3)})}this.T>0&&this.BB.KH(); z?this.R9():this.U.start()}}; g.I.R9=function(){this.W=!0;this.BB.aS();this.lastError="net.timeout";qZ(this)}; g.I.canRetry=function(B){var z=lJ(this);B=B?this.policy.d4:this.policy.fY;return z.timedOut0&&(z=z.T.getUint8(0),B.ubyte=z,T===1&&z===0&&(B.b248180278=!0))}this.H4&&(B.rc=this.policy.VT?this.H4:this.H4.toString());this.policy.II&&this.Gt&&(B.tr=this.Gt);B.itag=this.info.oK[0].T.info.itag;B.ml=""+ +this.info.oK[0].T.Fh();B.sq=""+this.info.oK[0].FE;this.j6&&(B.ifi=""+ +pQ(this.info.Rx.U));this.H4!==410&&this.H4!==500&&this.H4!==503||(B.fmt_unav="true");var R;(T=this.errorMessage||((R=this.xhr)==null? void 0:R.B4()))&&(B.msg=T);this.IG&&(B.smb="1");this.info.isDecorated()&&(B.sdai="1");return B}; g.I.DI=function(){return Cal(this.timing)}; g.I.B4=function(){return this.xhr.B4()||""}; g.I.vT=function(){return this.isComplete()||this.timing.vT()}; g.I.x$=function(){!this.xd()&&this.xhr&&(this.H4=this.xhr.status,this.policy.P_&&this.Vn&&this.Ka(!1),this.hg()?this.aP(2):!this.WL&&this.vT()&&(this.aP(),this.WL=!0))}; g.I.KT=function(){if(!this.xd()&&this.xhr){if(!this.VJ&&this.xhr.hA()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var B=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.VJ=((0,g.f)()-B)/1E3}this.xhr.hA()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.jB&&!ZaX()&&g.D_("yt-player-headers-readable",!0,2592E3);B=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var z=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),T;(T=this.Ps)==null||T.stop();this.qa=B||this.qa; this.Ca=z||this.Ca}}; g.I.qU=function(){var B=this.xhr;if(!this.xd()&&B){this.H4=B.status;B=this.CH(B);if(this.policy.II){var z;(z=this.Ps)==null||z.stop()}B===5?qZ(this.nF):this.J0(B);this.nF.U.stop()}}; g.I.CH=function(B){var z=this;qGl(this);if(iJ(this.nF,this.xhr.status,this.rP?this.timing.TZ||this.Yl:this.xhr.iT(),!1,this.TT))return 5;var T="";ce(this.nF,this.xhr)&&(T=kud(this.nF,this.xhr));if(T)return A8(lJ(this.nF)),this.info.yG(this.j6,T),3;T=B.ZX();if(this.QT){this.Ka(!0);qGl(this);if(iJ(this.nF,this.xhr.status,this.timing.TZ||this.Yl,!1,this.TT))return 5;if(!this.wu){if(this.Yl)return A8(lJ(this.nF)),3;this.nF.lastError="net.closed";return 5}}else{if(iJ(this.nF,this.xhr.status,this.xhr.iT(), !1,this.TT))return 5;var R=this.info.Y;if(R&&R!==T||B.wQ())return this.nF.lastError="net.closed",5;this.Ka(!0)}R=Ixr(this)?B.getResponseHeader("X-Bandwidth-Est"):0;if(B=Ixr(this)?B.getResponseHeader("X-Bandwidth-Est3"):0)this.Mi=!0,this.policy.LS&&(R=B);vgH(this.nF,T,R?Number(R):0,this.info.oK[0].type===5);this.logger.debug(function(){var h=z.timing;return"Succeeded, rtpd="+(h.aK*1E3+h.T-Date.now()).toFixed(0)}); return 4}; g.I.canRetry=function(){this.xd();var B=this.info.isDecorated();return this.nF.canRetry(B)}; g.I.onStateChange=function(){this.isComplete()&&(this.policy.Hk?this.aS():this.timing.deactivate())}; g.I.R9=function(){this.nF.R9()}; g.I.KH=function(){this.callback&&this.callback(this,this.state)}; g.I.fL=function(){return this.nF.fL()}; g.I.dispose=function(){Et.prototype.dispose.call(this);this.nF.dispose();var B;(B=this.Ps)==null||B.dispose();this.policy.Hk||this.aS()}; g.I.aS=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.I.Uv=function(){if(!this.z7().length)return[];this.u7=!0;return this.Vn.Uv()}; g.I.hg=function(){if(this.state<1)return!1;if(this.Vn&&this.Vn.sf.length)return!0;var B;return((B=this.xhr)==null?0:B.C1())?!0:!1}; g.I.z7=function(){this.Ka(!1);return this.Vn?this.Vn.z7():[]}; g.I.Ka=function(B){try{if(B||this.xhr.hA()&&this.xhr.C1()&&!ce(this.nF,this.xhr)&&!this.WM)this.Vn||(this.Vn=new We(this.policy,this.info.oK)),this.xhr.C1()&&(this.QT?this.QT.feed(this.xhr.DY()):bJ(this.Vn,this.xhr.DY(),B&&!this.xhr.C1()))}catch(z){this.QT?YGr(this,z):g.KV(z)}}; g.I.Y7=function(B,z){switch(B){case 21:B=z.split(1).Y3;ln5(this,B);break;case 22:this.wu=!0;bJ(this.Vn,new AA([]),!0);break;case 43:if(B=uB(new vN(z),1))this.info.yG(this.j6,B),this.Yl=!0;break;case 45:z=WK(new vN(z));B=z.vg;z=z.dL;B&&z&&(this.Oq=B/z);break;case 44:this.Zv=Z3K(new vN(z));var T,R,h;!this.timing.TZ&&((T=this.Zv)==null?void 0:T.action)===4&&((R=this.Zv)==null?0:(h=R.Lj)==null?0:h.rP)&&(this.rP=this.Zv.Lj.rP);break;case 53:this.policy.II&&(B=t1l(new vN(z)).Kh)&&(this.Ps||(this.Kh=B,this.Ps= new g.Si(this.lG,B,this)),this.Ps.start());break;case 60:this.MP=h1(new vN(z));break;case 58:if(B=UnK(new vN(z)))this.OU=B,B.OU===3&&(this.TT=!0)}}; g.I.F2=function(B,z,T,R){T||this.timing.F2(R);if(B!==21)return!1;if(B=this.policy.P_)if(R=z.getLength()+T===R,B*=this.info.oK[0].T.info.kd,!R&&z.getLength()0)return!1;if(!this.xhr.hA())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.QT)var B=!this.info.Y;else this.xhr.mV()?B=!1:(B=this.xhr.getResponseHeader("content-type"),B=B==="audio/mp4"||B==="video/mp4"||B==="video/webm");if(!B)return!1;if(isNaN(this.info.DS)){B=this.xhr.getResponseHeader("x-head-seqnum");var z=this.timing.policy.L?1:0;if(!B)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(B)>this.info.oK[0].FE+z)return!1}return!0}; g.I.PN=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.I.Ox=function(){this.xhr&&(this.qa=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.qa}; g.I.PQ=function(){this.xhr&&(this.Ca=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ca}; g.I.Sz=function(){return this.nF.Sz()}; g.I.lG=function(){if(!this.xd()&&this.xhr){this.Gt="heartbeat";var B=this.nF;B.T+=2;this.KH()}};g.G(A$,Ot);g.I=A$.prototype;g.I.m6=function(B,z){var T=(B-this.X)/1E3,R=z-this.Y;this.U>0?R>0&&(this.WD&&(T>.2||R<1024?(this.W+=T,T>.2&&imX(this,.05,R)):imX(this,T,R)),this.lO&&(this.cD+=R,this.IK+=T)):z>this.policy.T&&this.CT(B,z);Ot.prototype.m6.call(this,B,z)}; g.I.vW=function(B,z){NP(this,B,z);this.m6(B,z);this.WD&&(z=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.U>0&&on(this.jF,this.cD,this.W),B=(B-this.T)/1E3||.01,this.policy.J&&!(this.U>0)||rP(this.jF,B,this.Y,z,!1))}; g.I.El=function(B){NP(this,B,this.V);var z=(B-this.X)/1E3;In(this.jF,z,0);this.ob(z,0);!this.WD&&this.U>0||(z=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.U>0&&(this.W+=(B-this.X)/1E3,on(this.jF,this.cD,this.W)),rP(this.jF,((B-this.T)/1E3||.01)*this.policy.TZ,this.Y,z,!1,!0))}; g.I.Vz=function(B){B=B.Gl||2147483647;(B&2)!==2&&(this.lO=!1);(B&1)===1&&(this.WD=!0)}; g.I.Yq=function(B){B=B.Gl||2147483647;(B&2)===2&&(this.lO=!1);(B&1)===1&&(this.WD=!1)}; g.I.Mx=function(){return this.J}; g.I.v6=function(){var B=this.lO?this.now()-this.X:0;return Math.max(this.IK*1E3+B,1)}; g.I.nH=function(){return this.cD*1E3/this.v6()}; g.I.CT=function(B,z){B=B===void 0?this.L:B;z=z===void 0?this.V:z;this.U>0||(Ot.prototype.CT.call(this,B,z),z=this.jF,B=(B-this.N)/1E3,z.J.ew(1,(this.N-this.T)/1E3),z.XE.ew(1,B))}; g.I.Q7=function(B){this.Kf=B}; g.I.tR=function(){var B=Ot.prototype.tR.call(this);B.rbw=this.nH();B.rbe=+this.lO;B.gbe=+this.WD;B.ackt=(this.Kf-this.T).toFixed();return B}; g.I.Le=function(){}; g.I.D$=function(){return NaN}; g.I.ZI=function(){return this.T+this.snapshot.delay*1E3};aB.prototype.Y7=function(B,z){z.getLength();switch(B){case 20:B=new vN(z);B={Bw:Kv(B,1),videoId:uB(B,2),itag:Kv(B,3),lmt:Kv(B,4),xtags:uB(B,5),Jn:Kv(B,6),VE:ms(B,8),Hw:Kv(B,9),UaE:Kv(B,10),startMs:Kv(B,11),durationMs:Kv(B,12),MB:Kv(B,14),timeRange:HN(B,15,Ygz),EX:Kv(B,16),a8:Kv(B,17),clipId:uB(B,1E3)};this.I5(B);break;case 21:this.y$(z,!1);break;case 22:this.sM(z);break;case 31:B=N9(z,KHB);this.GQ(B);break;case 52:B=N9(z,jxB);this.Uw(B);break;default:this.R5(B,z)}}; aB.prototype.I5=function(){}; aB.prototype.R5=function(){};g.G(UV,aB);g.I=UV.prototype; g.I.R5=function(B,z){z.getLength();switch(B){case 35:this.Ch(z);break;case 44:this.BJ(z);break;case 43:this.Sc(z);break;case 53:this.Jz(z);break;case 55:B=new vN(z);HN(B,1,sxX);HN(B,2,BtB);break;case 56:this.WJ();break;case 57:this.ue(z);break;case 42:this.nO(z);break;case 45:this.uD(z);break;case 59:this.bM(z);break;case 51:this.Rd(z);break;case 49:this.Vz(z);break;case 50:this.Yq(z);break;case 47:this.jL(z);break;case 58:this.JS(z);break;case 61:this.BB.vc.Q7((0,g.f)());break;case 66:this.zU(z); break;case 46:this.gZ(z);break;case 67:this.onSnackbarMessage(z)}}; g.I.Rd=function(B){B=new vN(B);B={kUi:Oy(B,1,Tu),wqO:Oy(B,2,Tu)};this.BB.Rd(B)}; g.I.bM=function(B){var z=new vN(B);B=fv(z,1);var T=fv(z,2);z=fv(z,3);this.BB.bM(B,T,z)}; g.I.uD=function(B){B=WK(new vN(B));this.BB.uD(B)}; g.I.jL=function(B){B=N9(B,usB);this.BB.jL(B)}; g.I.nO=function(B){B=new vN(B);B={videoId:uB(B,1),formatId:HN(B,2,Tu),endTimeMs:Kv(B,3),DaF:Kv(B,4),mimeType:uB(B,5),q4:HN(B,6,$nP),indexRange:HN(B,7,$nP),fd:HN(B,8,Puz)};this.BB.nO(B)}; g.I.ue=function(B){B=BtB(new vN(B));this.BB.ue(B)}; g.I.WJ=function(){this.BB.WJ()}; g.I.Ch=function(B){B=mnK(new vN(B));this.BB.Ch(B)}; g.I.Jz=function(B){B=t1l(new vN(B));this.BB.Jz(B)}; g.I.BJ=function(B){B=Z3K(new vN(B));this.BB.BJ(B)}; g.I.Sc=function(B){B={redirectUrl:uB(new vN(B),1)};this.BB.Sc(B)}; g.I.y$=function(B){var z=B.getUint8(0);if(B.getLength()!==1){B=B.split(1).Y3;var T=this.U[z]||null;T&&pA(this.BB.dD,z,T,B)}}; g.I.sM=function(B){B=B.getUint8(0);var z=this.U[B]||null;z&&this.BB.sM(B,z)}; g.I.Uw=function(B){this.BB.Uw(B)}; g.I.I5=function(B){var z=B.Bw,T=B.VE,R=B.Jn,h=B.a8,W=B.EX,b=B.Hw,l=B.startMs,w=B.durationMs,q=B.timeRange,c=B.MB,L=B.clipId,C=pm(B);B=R7c.has(Oz[""+B.itag]);this.U[z]=C;this.BB.Hs(C,B,{Bw:z,VE:!!T,Jn:R!=null?R:-1,Hw:b!=null?b:-1,startMs:l!=null?l:-1,durationMs:w!=null?w:-1,MB:c,a8:h,EX:W,clipId:L,timeRange:q})}; g.I.Vz=function(B){B={Gl:Kv(new vN(B),1)};this.BB.Vz(B)}; g.I.Yq=function(B){B={Gl:Kv(new vN(B),1)};this.BB.Yq(B)}; g.I.GQ=function(B){this.BB.GQ(B)}; g.I.JS=function(B){B=UnK(new vN(B));this.BB.JS(B)}; g.I.zU=function(B){B={bX:HN(new vN(B),1,O3Y)};this.BB.zU(B)}; g.I.onSnackbarMessage=function(B){B=Kv(new vN(B),1);this.BB.onSnackbarMessage(B)}; g.I.gZ=function(B){B=new vN(B);B={reloadPlaybackParams:HN(B,1,aDl),RM:ms(B,2)};this.BB.gZ(B)};g.G(MZ,g.K);g.I=MZ.prototype;g.I.JA=function(){return Array.from(this.rz.keys())}; g.I.NB=function(B){B=this.rz.get(B);var z=B.sf;B.QJ+=z.getLength();B.sf=new AA;return z}; g.I.i8=function(B){return this.rz.get(B).i8}; g.I.f_=function(B){return this.rz.get(B).f_}; g.I.Hs=function(B,z,T,R){this.rz.get(B)||oHb(this,B,z);z=this.rz.get(B);if(this.qG){B=Inz(this,B,T);if(R)for(var h=g.d(B),W=h.next();!W.done;W=h.next()){W=W.value;var b=R;W.UE=b;W.startTime+=b;W.W+=b;W.X+=b}FtK(this,T.Bw,z,B)}else T.VE?z.cL=T.MB:z.CA.push(T),z.Ue.push(T)}; g.I.nh=function(B){var z;return((z=this.rz.get(B))==null?void 0:z.oK)||[]}; g.I.aP=function(){for(var B=g.d(this.rz.values()),z=B.next();!z.done;z=B.next())z=z.value,z.Di&&(z.MQ&&z.MQ(),z.Di=!1)}; g.I.sM=function(B,z){this.logger.debug(function(){return"[onMediaEnd] formatId: "+z}); var T=this.rz.get(z);if(Vp){if(T&&!T.i8){if(T.JY.get(B))T.JY.get(B).wT=!0;else{var R;((R=this.yU)==null?0:R.s0)&&T.JY.set(B,{data:new AA,Uq:0,wT:!0})}T.f_=!0}}else T&&!T.f_&&(T.f_=!0)}; g.I.Uv=function(B){if(Vp){var z=this.rz.get(B);if(z)for(var T=g.d(z.JY),R=T.next();!R.done;R=T.next()){var h=g.d(R.value);R=h.next().value;h=h.next().value;var W=z.xz.get(R);if(Km(W[0])){if(!h.wT)continue;var b=W,l=h.data;l.getLength();W=0;var w=[];b=g.d(b);for(var q=b.next();!q.done;q=b.next()){q=q.value;var c=q.Y,L=Uy(l,W,c);W+=c;w.push(new Wz(q,L))}z.yH.push.apply(z.yH,g.Q(w))}else if(h.data.getLength()>0||!W[0].range&&h.wT)l=void 0,W=W[0],w=h.Uq,b=h.data,W.range||(l=h.wT),q=b.getLength(),l=new Wz(GbK(W, W.U+w,q,l),b),h.Uq+=l.info.Y,z.yH.push(l);z.JY.get(R).data=new AA;h.wT&&z.JY.delete(R)}B=this.rz.get(B);if(!B)return[];z=B.yH;B.yH=[];T=g.d(z);for(R=T.next();!R.done;R=T.next())B.QJ+=R.value.info.Y;return z||[]}T=(z=this.rz.get(B))==null?void 0:z.Vn;if(!T)return[];this.Ka(B,T);return T.Uv()}; g.I.hg=function(B){if(Vp)return J$(this,B);var z,T,R;return!!((T=(z=this.rz.get(B))==null?void 0:z.Vn)==null?0:(R=T.z7())==null?0:R.length)||J$(this,B)}; g.I.Ka=function(B,z){for(;J$(this,B);){var T=this.NB(B);var R=B;R=this.rz.get(R).i8&&!g7(this,R);bJ(z,T,R&&r85(this,B))}}; g.I.gF=function(){g.K.prototype.gF.call(this);for(var B=g.d(this.rz.keys()),z=B.next();!z.done;z=B.next())Qp(this,z.value);var T;if((T=this.yU)==null?0:T.g2)for(B=g.d(this.rz.values()),z=B.next();!z.done;z=B.next())z=z.value,z.JY.clear(),z.xz.clear(),z.yH.length=0,z.oK.length=0,z.Ue.length=0,z.CA.length=0;this.rz.clear()}; var Vp=!1;g.G($d,g.K);g.I=$d.prototype;g.I.x$=function(){!this.xd()&&this.xhr&&(this.Ka(!1),tJ(this.BB,this))}; g.I.KT=function(){}; g.I.qU=function(){if(!this.xd()&&this.xhr){var B=this.CH();B===5?qZ(this.nF):this.J0(B);this.nF.U.stop();var z;(z=this.eL)==null||z.stop()}}; g.I.CH=function(){var B="";ce(this.nF,this.xhr)&&(B=kud(this.nF,this.xhr));if(B)return this.info.Rx.yG(this.j6,B),3;this.Ka(!0);if(iJ(this.nF,this.xhr.status,this.xhr.iT(),this.info.Uh(),this.TT))return 5;if(this.rM)return 3;vgH(this.nF,this.xhr.ZX(),0,this.Uh());this.policy.JZ&&WJB(this.BB);return 4}; g.I.Ka=function(B){var z=this.xhr;if((B||!ce(this.nF,this.xhr))&&z.C1()){B=z.DY();var T=B.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+T}); this.QT.feed(B)}}; g.I.Y7=function(B,z){this.xhr.QL()&&B===21&&UUP(this);this.Gd.Y7(B,z)}; g.I.F2=function(B,z,T,R){T||(this.vc.F2(R),this.policy.Qv&&B===21&&UUP(this));if(B!==21)return!1;this.vc.TZ=!0;B=z.getLength();T||(this.V0=z.getUint8(0),z=z.split(1).Y3);var h=this.policy.ZL,W=this.Gd.U[this.V0],b=this.qG.Y.get(W);if(h&&b&&(h*=b.info.kd,B+T!==R&&B0){this.policy.Q_&&this.nF.U.stop();B=this.vc.v6();z=this.vc.nH();var T=MId(this,B);if(!(z>T.Jt||T.Ad>0&&this.info.Ya()>T.Ad)){this.GH=(0,g.f)();var R;(R=this.eL)==null||R.stop();this.policy.JZ&&(R=this.BB,B={BT:Math.round(z*B/1E3),cI:B},R.policy.JZ&&(R.XE=B,R.hU++));this.R9()}}}}; g.I.R9=function(){this.nF.R9()}; g.I.BJ=function(B){this.BB.BJ(B,this.Y9())}; g.I.Sc=function(B){this.rM=!0;this.info.Rx.yG(this.j6,B.redirectUrl)}; g.I.Vz=function(B){this.vc instanceof A$&&this.vc.Vz(B)}; g.I.Yq=function(B){this.vc instanceof A$&&this.vc.Yq(B)}; g.I.nO=function(B){var z=B.formatId,T=pm({itag:z.itag,lmt:z.lmt,xtags:z.xtags}),R,h,W=new PL(((R=B.q4)==null?void 0:R.first)||0,((h=B.q4)==null?void 0:h.Cu)||0),b,l;R=new PL(((b=B.indexRange)==null?void 0:b.first)||0,((l=B.indexRange)==null?void 0:l.Cu)||0);this.qG.Y.get(T)||(T=B.fd||{},T.mimeType=B.mimeType,T.itag=z.itag,T.lastModified=""+(z.lmt||0),T.xtags=z.xtags,B=this.qG,z=ME(""),T=aH(T,null),oH(B,new Lj(z,T,W,R)))}; g.I.uD=function(B){this.BB.uD(B)}; g.I.onSnackbarMessage=function(B){if(this.policy.y5)this.BB.onSnackbarMessage(B)}; g.I.GQ=function(B){this.nM=B;this.hN=(0,g.f)();this.BB.GQ(B)}; g.I.bM=function(B,z,T){this.BB.bM(B,z,T)}; g.I.ue=function(B){B.scope===2&&(this.kI=B);this.BB.ue(B)}; g.I.WJ=function(){this.AJ=!0;this.BB.WJ()}; g.I.Rd=function(B){this.policy.Pk&&this.BB.Rd(B)}; g.I.jL=function(B){this.BB.jL(B,this.Y9())}; g.I.JS=function(B){B.OU===3&&(this.TT=!0);this.BB.JS(B)}; g.I.zU=function(B){this.BB.zU(B)}; g.I.gZ=function(B){this.BB.gZ(B)}; g.I.canRetry=function(){this.xd();return this.nF.canRetry(!1)}; g.I.dispose=function(){if(!this.xd()){g.K.prototype.dispose.call(this);this.nF.dispose();var B;(B=this.eL)==null||B.dispose();this.J0(-1);this.aS()}}; g.I.J0=function(B){this.state=B;tJ(this.BB,this)}; g.I.Uh=function(){return this.info.Uh()}; g.I.Mu=function(){return this.AJ}; g.I.z6=function(){return this.kI}; g.I.Hs=function(B,z,T){T.clipId&&(this.clipId=T.clipId);this.policy.Y&&!z&&(this.i9=T.Hw);this.dD.Hs(B,z,T,0);if(this.policy.Yo&&this.nM&&this.vc instanceof jF){var R=this.nM.UL;this.vc.Hs(T.durationMs/1E3,z,R>0&&T.Hw+1>=R)}this.dD.rz.get(B).G0=!0}; g.I.sM=function(B,z){this.dD.sM(B,z)}; g.I.Uw=function(B){this.requestIdentifier=B}; g.I.Uv=function(B){return this.dD.Uv(B)}; g.I.nh=function(B){return this.dD.nh(B)}; g.I.hg=function(B){return this.dD.hg(B)}; g.I.JA=function(){return this.dD.JA()}; g.I.jM=function(){return 1}; g.I.Y9=function(){return this.vc.requestNumber}; g.I.l7=function(){return this.requestIdentifier}; g.I.Pu=function(){return this.j6.Pu()}; g.I.S7=function(){this.aS()}; g.I.aS=function(){this.vc.deactivate();var B;(B=this.xhr)==null||B.abort()}; g.I.isComplete=function(){return this.state>=3}; g.I.SO=function(){return this.state===3}; g.I.uo=function(){return this.state===5}; g.I.sT=function(){return this.state===4}; g.I.BL=function(){return this.isComplete()}; g.I.Qy=function(){return this.state>=1}; g.I.fL=function(){return this.policy.ra?this.nF.fL():0}; g.I.KH=function(){this.policy.ra&&tJ(this.BB,this)}; g.I.KN=function(){return HYd(this.info)}; g.I.Sz=function(){return this.nF.Sz()}; g.I.XW=function(){var B=Kmz(this.nF);Object.assign(B,OYz(this.info));B.req="sabr";B.rn=this.Y9();var z;if((z=this.xhr)==null?0:z.status)B.rc=this.policy.VT?this.xhr.status:this.xhr.status.toString();var T;(z=(T=this.xhr)==null?void 0:T.B4())&&(B.msg=z);this.GH&&(T=MId(this,this.GH-this.vc.Mx()),B.letm=T.vy,B.mrbps=T.Jt,B.mram=T.Ad);return B};VIz.prototype.tick=function(B,z){this.ticks[B]=z?window.performance.timing.navigationStart+z:(0,g.f)()};g.G(xd,g.Cl);g.I=xd.prototype; g.I.Ry=function(B,z,T,R){if(this.policy.ag&&this.policy.Y){var h=B.g3||null;h?(uUB(this,B.FE,mQ(this,B.startTime,B.FE),{g3:h,FE:B.FE,vZ:!!z,Mr:T},this.Y),R&&this.Y&&this.Y.Zj(B.FE,B.startTime,this.U,(z==null?void 0:z.T)||[],(z==null?void 0:z.Y)||[],(z==null?void 0:z.U)||[],T,(z==null?void 0:z.hP)||0,(z==null?void 0:z.W)||void 0)):this.U===1&&Dq(this,5,"noad")}else{var W=!1;this.policy.Y&&(W=T?this.RK===B.FE:this.WD===B.FE);if(this.Y&&R&&!W){R=[];W=[];var b=[],l=void 0,w=0;z&&(R=z.T,W=z.Y,b=z.U,l= z.W,w=z.hP,this.OE("sdai",{sq:B.FE,ssvicpns:R.join("."),ssvid:W.join(".")}));this.policy.Y&&(T?this.RK=B.FE:this.WD=B.FE);this.Y.Zj(B.FE,B.startTime,this.U,R,W,b,T,w,l)}this.policy.Y?T&&(this.U===1&&Dq(this,5,"noad"),B.FE!==((h=this.T)==null?void 0:h.FE)&&(Ktd(this,B,z,T),isNaN(B.startTime)||mUH(this,B.FE,mQ(this,B.startTime,B.FE),!!z,this.Y))):T&&Ktd(this,B,z)}}; g.I.LO=function(B,z,T){var R=this.videoTrack.T.index.CF()<=z;this.T={g3:B,FE:z,vZ:T};R&&ve(this,B,z)}; g.I.Mw=function(){this.Y&&this.Y.Mw()}; g.I.OE=function(B,z,T){(B!=="sdai"||this.policy.tU||(T===void 0?0:T))&&this.loader.OE(B,z)}; g.I.Qr=function(B,z){var T=this.videoTrack.T.index.Yh(B);if(T>=0){var R;var h=((R=z.KF.a4(T,2))==null?void 0:R.PT)||"";if(this.policy.Y||h)return z.Tm(B,T),kd(this.loader,B,B,T),this.OE("sdai",{cmskpad:1,t:B.toFixed(3),sq:T}),!0}this.OE("sdai",{cmskpad:0,t:B.toFixed(3),sq:T});return!1};g.G(fA,g.K);fA.prototype.CU=function(B,z,T){T=T===void 0?{}:T;this.policy.FJ=Kj(B,T,this.W,z===void 0?!1:z)};XW.prototype.Wt=function(B){var z=this;if(this.policy.z0){var T=new Set(B);T.size===this.XE.size&&[].concat(g.Q(T)).every(function(R){return z.XE.has(R)})||(this.loader.OE("lwnmow",{itagDenylist:[].concat(g.Q(B)).join(",")}),this.loader.WI(!!T.size),this.N=-1,this.XE=T,Zq(this,this.T),this.cD=!0)}}; XW.prototype.CU=function(B,z,T){T=T===void 0?{}:T;var R=this.policy.FJ;this.V.CU(B,z===void 0?!1:z,T);if(R!==this.policy.FJ){Zq(this,this.T);ep(this);var h,W;R>this.policy.FJ&&((h=this.Y)==null?0:Za(h.info))&&((W=this.nextVideo)==null||!Za(W.info))&&(this.TZ=!0)}};BX.prototype.mW=function(B){this.timestampOffset=B;this.flush()}; BX.prototype.flush=function(){if(this.T.pos>0){var B={a:this.track.lf(),u:this.T.Y0(),pd:Math.round(this.W),ad:Math.round(this.Y)},z=this.U;if(z){var T=z.T.info;B.itag=T.itag;T.T&&(B.xtags=T.T);B.sq=z.FE;B.st=z.startTime;B.sd=z.duration;this.track.policy.PR&&(B.si=z.Wc());z.V&&(B.esl=z.U+z.Y);z.tY()&&(B.eos=1)}isNaN(this.timestampOffset)||(B.to=this.timestampOffset);var R;if(z=(R=this.track.yI)==null?void 0:R.NS({})){for(var h in z)this.X[h]!==z[h]&&(B["sb_"+h]=z[h]);this.X=z}this.track.OE("sbu", B);this.T.reset();this.buffered=[];this.V=this.Y=this.W=0;this.timestampOffset=this.U=void 0}};TV.prototype.dispose=function(){this.UE=!0}; TV.prototype.xd=function(){return this.UE}; g.G(lL,Error);iL.prototype.skip=function(B){this.offset+=B}; iL.prototype.Jg=function(){return this.offset};g.I=gfb.prototype;g.I.mE=function(){return this.U}; g.I.Ig=function(){return this.U.length?this.U[this.U.length-1]:null}; g.I.LX=function(){this.U=[];o7(this);CG(this)}; g.I.NB=function(B){this.IK=this.U.shift().info;B.info.equals(this.IK)}; g.I.nh=function(){return g.s9(this.U,function(B){return B.info})}; g.I.lf=function(){return!!this.X.info.audio}; g.I.isDrm=function(){return!!this.X.info.Ft}; g.I.getDuration=function(){return this.X.index.p6()};g.G(xj,Et);g.I=xj.prototype;g.I.onStateChange=function(){this.xd()&&(yp(this.dD,this.formatId),this.T.dispose())}; g.I.XW=function(){var B=CKl(this.dD,this.formatId),z;var T=((z=this.dD.rz.get(this.formatId))==null?void 0:z.bytesReceived)||0;var R;z=((R=this.dD.rz.get(this.formatId))==null?void 0:R.QJ)||0;return{expected:B,received:T,bytesShifted:z,sliceLength:g7(this.dD,this.formatId),isAnyMediaEndReceived:this.dD.f_(this.formatId)}}; g.I.DI=function(){return 0}; g.I.vT=function(){return!0}; g.I.Uv=function(){return this.dD.Uv(this.formatId)}; g.I.z7=function(){return[]}; g.I.hg=function(){return this.dD.hg(this.formatId)}; g.I.Sz=function(){return this.lastError}; g.I.fL=function(){return 0};g.G(dm,g.K);g.I=dm.prototype;g.I.lf=function(){return!!this.T.info.audio}; g.I.Ig=function(){return this.W.Ig()}; g.I.NB=function(B){this.W.NB(B);var z;(z=this.J)!=null&&(z.V.add(B.info.FE),z.T=eyz(z,z.Tz,z.Ev,B,z.T),z.Y=B,z.X=(0,g.f)());this.kd=Math.max(this.kd,B.info.T.info.kd||0)}; g.I.getDuration=function(){return this.T.index.p6()}; g.I.LX=function(){D9(this);this.W.LX()}; g.I.RF=function(){return this.W}; g.I.isRequestPending=function(B){return this.Y.length?B===this.Y[this.Y.length-1].info.oK[0].FE:!1}; g.I.mW=function(B){var z;(z=this.J)==null||z.mW(B);var T;(T=this.N)==null||T.mW(B)}; g.I.OE=function(B,z){this.loader.OE(B,z)}; g.I.L1=function(){return this.loader.L1()}; g.I.dispose=function(){var B;(B=this.N)==null||B.flush();g.K.prototype.dispose.call(this)};g.G(fG,g.K);fG.prototype.Y=function(){this.U++>15||(this.T=!this.T,new FRB(this.loader,this.policy,this.jF,this.Rx,this.T),this.delay.start())}; g.I=FRB.prototype;g.I.KT=function(){}; g.I.x$=function(){}; g.I.qU=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.ZX()===this.size)this.loader.OE("rqs",this.getInfo());else{var B="net.connect";this.xhr.status>200?B="net.badstatus":this.xhr.hA()&&(B="net.closed");this.onError(B)}}; g.I.onError=function(B){var z=this;this.loader.handleError(B,this.getInfo());MP("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(T){z.loader.OE("pathprobe",T)},function(T){z.loader.handleError(T.errorCode,T.details)})}; g.I.getInfo=function(){var B=this.timing.tR();B.shost=g$(this.location.oQ);B.pb=this.size;return B};g.G(O1,g.K); O1.prototype.L=function(B,z){if(B.L){this.qG.isLive?(B=this.qG.bz&&this.qG.W?B.T.BZ(this.qG.bz,!1):B.T.uL(Infinity),B.DS=this.DS):B=B.T.BZ(0,!1);if(this.TZ){var T=this.TZ;B.DS===0&&(B.V=T.J)}else B.V=this.N;return B}T=B.U;if(!T.T.Fh())return T.T.eK()?(B=yh(this.V,B.T.info.kd,z.T.info.kd,0),B=T.T.eX(T,B)):B=T.T.dC(T),B;var R=T.X-this.loader.getCurrentTime(),h=!T.range||T.Y===0&&T.U===0?0:T.range.length-(T.U+T.Y),W=T.T;this.Rj(B,R)&&h===0&&(this.qG.isManifestless?W=B.T:(W=T.startTime+SR5,T.Y&&(W+=T.duration), m0(B,W),T=B.U,W=T.T));W.eK()?(h=this.Y,z=yh(this.V,W.info.kd,z.T.info.kd,R,h.W.length>0&&h.J===0&&this.loader.Oh),R=Dy(B),B=T.T.eX(T,z),(z=B.Y)&&B.oK.length>1&&(R||B.Rx.Y||B.oK[0].T!==T.T?B=T.T.eX(T,B.oK[0].Y):(R=B.oK[B.oK.length-1],W=R.Y/z,!R.V&&W<.4&&(B=T.T.eX(T,z-R.Y))))):(T.FE<0&&(z=HL(T),z.pr=""+B.Y.length,this.loader.isSeeking()&&(z.sk="1"),z.snss=T.J,this.loader.OE("nosq",z)),B=W.dC(T));if(this.policy.RK)for(T=g.d(B.oK),z=T.next();!z.done;z=T.next())z.value.type=6;return B}; O1.prototype.Rj=function(B,z){if(!Dy(B)||!B.T.Fh())return!1;var T=this.Y.cD||TPl(B)||z<=this.policy.q6||this.Y.TZ;this.logger.debug(function(){return"ready to adapt: "+T+", upgrade pending: "+TPl(B)+", health: "+z}); return T}; O1.prototype.gF=function(){g.K.prototype.gF.call(this)}; var SR5=2/24;g.G(S5,g.K);S5.prototype.gQ=function(B,z,T){var R;var h=((R=this.U)==null?void 0:R.reason)==="m"?"m":this.U&&$jb(this,this.U)?this.U.reason:"a";this.loader.gQ(new He(B,h,T));s1(this.loader,z,B,!0)}; S5.prototype.HG=function(B,z){for(var T=g.d(this.RK),R=T.next();!R.done;R=T.next())if(R.value.id===B)return this.V=this.qG.T[B],FW(this.yU)&&(this.TZ=!0),B=new He(this.V,z?"t":"m"),z&&(this.L=!0),B;this.Y=[];return null}; S5.prototype.CU=function(B,z,T){T=T===void 0?{}:T;this.T.CU(B,z===void 0?!1:z,T)};zg.prototype.setData=function(B,z,T){var R=this;T=T===void 0?{}:T;if(z==null?0:z.U0)this.F3=anB(this,z,T),B.jE=this.Rx.jE();if(this.Uh())return!0;this.data=B;this.T=nCH(B,function(h,W){var b;(b=R.BB)==null||b.wF(h,W)},z==null?void 0:z.U); if(!this.T)return!1;this.U=g.wz(this.T,ygH);return!0}; zg.prototype.Uh=function(){return this.requestType===1}; zg.prototype.Ya=function(){var B;return((B=this.BB)==null?void 0:B.Ya())||0}; zg.prototype.isDecorated=function(){var B;return!((B=this.data)==null||!B.UG)};Tg.prototype.encrypt=function(B){this.T.exports.AES128CTRCipher_encrypt(this.cipher,B.byteOffset,B.byteLength);return B}; Tg.prototype.xd=function(){return this.cipher===0}; Tg.prototype.dispose=function(){this.T.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};R2.prototype.encrypt=function(B,z){return CX(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:z},this.key,B).catch(function(T){return Promise.reject(T.name+": "+T.message)}).then(function(T){return new Uint8Array(T)}))}; R2.prototype.xd=function(){return this.T}; R2.prototype.dispose=function(){this.T=!0}; hJ.prototype.encrypt=function(B,z){return CX(this.U(B,z))}; hJ.prototype.U=function(B,z){AD(this.Y,z);return this.Y.encrypt(B)}; hJ.prototype.xd=function(){return this.T}; hJ.prototype.dispose=function(){this.T=!0}; WJ.prototype.encrypt=function(B,z){return CX(this.U(B,z))}; WJ.prototype.U=function(B,z){z=this.Y.ij(z);var T=this.T;T.T.exports.AES128CTRCipher_setCounter(T.cipher,z.byteOffset);this.Y.free(z.byteOffset);z=this.Y.ij(B);this.T.encrypt(z!=null?z:B);return z?this.Y.pB(z):B}; WJ.prototype.xd=function(){return this.T.xd()}; WJ.prototype.dispose=function(){this.T.dispose()}; VJ.lH(R2,{encrypt:tjl("oan2")});VJ.lH(hJ,{encrypt:tjl("oap")});VJ.lH(WJ,{encrypt:tjl("oalw")});b6.prototype.encrypt=function(B,z){var T=this,R=r8("");B.length<=this.va&&this.T&&!this.V&&(R=Gc(R,function(){return T.T?T.T.encrypt(B,z):r8("wasm unavailable")})); B.length<=this.Fs&&(this.T&&this.V&&(R=Gc(R,function(){return T.T?T.T.encrypt(B,z):r8("wasm unavailable")})),R=Gc(R,function(){return ZYz(T,B,z)})); return Gc(Gc(R,function(){return elz(T,B,z)}),function(){return ZYz(T,B,z)})}; b6.prototype.U=function(B,z){if(this.T)return this.T.U(B,z);this.Y||(this.Y=new hJ(this.key));return this.Y.U(B,z)}; b6.prototype.xd=function(){return this.X}; b6.prototype.dispose=function(){this.X=!0;var B;(B=this.W)==null||IL(B,g.c6);g.c6(this.T);g.c6(this.Y)};Yu.prototype.encrypt=function(B){(0,g.f)();return(new g.Q5(this.T.T)).encrypt(B,this.iv)}; Yu.prototype.decrypt=function(B,z){(0,g.f)();return(new g.Q5(this.T.T)).decrypt(B,z)}; Yu.prototype.xd=function(){return this.Y}; Yu.prototype.dispose=function(){this.Y=!0;g.c6(this.U)};g.G(l6,g.K);l6.prototype.Y=function(B,z){if(z){z=z instanceof g.QP?z:wu(this,z);var T;((T=this.T.get(B))==null?void 0:g$(T.location))!==g$(z)&&this.T.set(B,new bbb(z,B))}else this.T.delete(B)}; l6.prototype.load=function(){var B=this,z,T,R,h,W,b,l,w,q,c;return g.D(function(L){switch(L.U){case 1:z=B.T.get(0);g.AK(L,2);var C;if(C=z&&!B.U)C=g$(z.location),C=B.U===w7(C);if(C){L.jI(4);break}return g.P(L,hJ5(B,B.U?2:0),5);case 5:if(T=L.T)B.Y(0,T),pQ(T)&&B.Y(1,$g(T));case 4:g.yz(L,3);break;case 2:R=g.JK(L);g.KV(R);if(!B.U){L.jI(3);break}B.U=!1;return g.P(L,B.load(),7);case 7:return L.return();case 3:if(!B.dF.experiments.Cf("html5_onesie_probe_ec_hosts")){L.jI(0);break}g.AK(L,9);h=B;W=h.Y;b=3;return g.P(L, hJ5(B,1),11);case 11:return W.call(h,b,L.T),l=B,w=l.Y,q=4,g.P(L,hJ5(B,2),12);case 12:w.call(l,q,L.T);g.yz(L,0);break;case 9:c=g.JK(L),g.KV(c),g.dX(L)}})}; l6.prototype.L=function(){var B=this,z,T;return g.D(function(R){g.Bi(B.J);z=g.rk(B.dF.experiments,"html5_onesie_prewarm_max_lact_ms");if(JW()>=z)return R.return();(T=B.T.get(0))&&RJz(B,T);g.dX(R)})}; var zJP={VKF:0,C9O:1,cgE:2,uwm:3,RBZ:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};w3B.prototype.decrypt=function(B){var z=this,T,R,h,W,b,l;return g.D(function(w){switch(w.U){case 1:if(Y2B(z))return w.return();z.U=!0;z.To.u$("omd_s");T=new Uint8Array(16);Mq()?R=new g.V5(B):h=new g.Q5(B);case 2:if(!z.T.length||!z.T[0].isEncrypted){w.jI(4);break}W=z.T.shift();if(!R){b=h.decrypt(W.buffer.r0(),T);w.jI(5);break}return g.P(w,R.decrypt(W.buffer.r0(),T),6);case 6:b=w.T;case 5:l=b;l5l(T);var q=z.To,c=W.videoId,L=W.Bw,C=W.formatId,r=new AA([l]),F;(F=i6(q.hZ,c))==null||pA(F,L,C,r);w.jI(2); break;case 4:z.To.u$("omd_c"),cJ(z),z.U=!1,z.To.j3(),g.dX(w)}})}; w3B.prototype.enqueue=function(B,z,T,R,h){this.T.push({videoId:B,Bw:z,formatId:T,buffer:R,isEncrypted:h});this.U||cJ(this)};var GiY=!!Uint8Array.prototype.copyWithin,Lp=[],q2z=[],LxB=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ru=[],Cp=[],o2=[],ibl=[];I2.prototype.zx=function(B){return g.I5r(new g.cbb(B))}; I2.prototype.xQ=function(B){function z(b){if(!b.done)return W.append(b.value),h.read().then(function(l){return z(l)})} if(!("DecompressionStream"in window))return r8("native decompression unavailable");var T=new DecompressionStream("gzip"),R=T.writable.getWriter();R.write(B).then(function(){return R.close()}); var h=T.readable.getReader(),W=new AA([]);return Gc(IL(IL(CX(h.read()),z),function(){return W.r0()}),function(b){return r8(b.message)})}; I2.prototype.PL=function(B,z){var T=void 0,R=z.ij(B);R&&(T=R.byteOffset,B=R);R=z.exports.getInflatedSize(B.byteOffset,B.length);if(R===0)return r8("bad compressed input");var h=z.malloc(R);if(z.exports.inflateGzip(B.byteOffset,B.length,h))return z.free(h),r8("inflateGzip failed");T&&z.free(T);return CX(new Uint8Array(z.exports.memory.buffer,h,R))}; VJ.lH(I2,{zx:function(B){return{profile:"gzjb",Kt:Math.ceil(B.byteLength/16)}}, xQ:function(B){return{profile:"gznb",Kt:Math.ceil(B.byteLength/16)}}, PL:function(B){return{profile:"gzwb",Kt:Math.ceil(B.byteLength/16)}}});g.G(VLY,aB);g.I=VLY.prototype;g.I.j3=function(){this.hZ.j3()}; g.I.R5=function(B,z){switch(B){case 10:var T=N9(z,DnY);B=T.ELE;var R=!1;switch(B){case 0:this.Y=!T.oC.Se;this.iv=T.oC.iv;break;case 2:break;case 23:var h=this.hZ;T=T.IJI;h.u$("omp_r");T.videoId&&(h.pT=T.videoId);h.pT!==h.videoData.videoId&&(h.videoData.q0=h.pT,h.OE("ompp","vid."+h.pT));h.S4=!0;break;case 24:T=this.hZ;T.u$("omp_c");T.S4=!1;T.EC=!1;var W=(h=T.R1)==null?void 0:h.get(T.pT);T.notifySubscribers(T.pT);W!=null&&(W.T=!0);AJ(T);break;default:R=!0}this.hZ.SK&&this.hZ.OE("ombup","id.10;pt."+ B+";len."+z.getLength()+(R?";ignored.1":""));this.W=B;break;case 11:gOz(this,z);break;case 12:this.y$(z,!0);break;case 37:z=N9(z,k8B);(z.DU||z.lR)&&z.videoId&&this.hZ.RY.set(z.videoId,z);break;case 60:this.xT(z);break;case 47:this.D("html5_server_playback_start_policy")&&(z=N9(z,usB),this.hZ.playbackStartPolicy=z);break;case 35:this.Ch(z);break;case 45:this.uD(z);break;case 66:this.zU(z);break;default:this.hZ.SK&&this.hZ.OE("ombup","id."+B+";len."+z.getLength()+";ignored.1")}}; g.I.GQ=function(B){this.hZ.GQ(B)}; g.I.xT=function(B){B=N9(B,h1);this.hZ.xT(B)}; g.I.uD=function(B){B=N9(B,WK);this.hZ.uD(B)}; g.I.I5=function(B){var z=B.Bw,T=B.VE,R=B.Jn,h=B.EX,W=B.Hw,b=B.startMs,l=B.durationMs,w=B.timeRange,q=B.MB,c=pm(B),L=R7c.has(Oz[""+B.itag]);T&&this.u$(L?"oais_r":"ovis_r");var C=this.T[c]!==void 0;this.hZ.SK&&this.hZ.OE("ombup","id.20;hid."+z+";fid."+c);var r=B.videoId||"";this.U[z]=c;this.V[z]=r;C||(this.T[c]={videoId:r,UT:!1,lf:L,headers:[]});this.T[c].headers.push(B);this.hZ.Hs(r,c,L,{Bw:z,VE:!!T,Jn:R!=null?R:-1,Hw:W!=null?W:-1,startMs:b!=null?b:-1,durationMs:l!=null?l:-1,MB:q!=null?q:0,EX:h,timeRange:w})}; g.I.y$=function(B,z){var T=B.getUint8(0);this.hZ.SK&&this.hZ.OE("ombup","id."+(z?12:21)+";len."+B.getLength()+";hid."+T);if(B.getLength()!==1){B=B.split(1).Y3;var R=this.U[T]||null,h=this.V[T]||"";R&&(this.QQ(this.T[R].lf?"oafs_r":"ovfs_r"),this.queue.enqueue(h,T,R,B,z))}}; g.I.sM=function(B){var z=B.getUint8(0);this.hZ.SK&&this.hZ.OE("ombup","id.22;len."+B.getLength()+";hid."+z);B=this.U[z]||null;var T=this.V[z]||"";if(B)if(this.D("html5_use_ump_request_slicer")){var R=this.queue;R.T.push({videoId:T,Bw:z,formatId:B,isEncrypted:!1,dg:!0});R.U||cJ(R)}else this.hZ.sM(T,z,B)}; g.I.Uw=function(B){this.hZ.Uw(B)}; g.I.X6=function(B,z){var T=this,R,h,W,b,l,w,q,c,L,C;return g.D(function(r){switch(r.U){case 1:T.hZ.X6();R=B.r0();if(!z){W=R;r.jI(2);break}return g.P(r,nOY(T.hZ,R,T.iv),3);case 3:W=r.T;case 2:h=W;if(!T.hZ.enableCompression){r.jI(4);break}l=(b=performance)==null?void 0:b.now();return g.P(r,dTd(h),5);case 5:h=r.T,T.hZ.OE("decompression",{ds:"DecompressionStream"in window,rt:((w=performance)==null?NaN:w.now())-l});case 4:try{q=N9(h,Agz)}catch(F){return c=F instanceof Error?{name:F.name,message:F.message}: {},c.webcrypto=""+ +!!Mq(),c.enc=""+ +T.Y,L=new y_("onesie.response.parse",c),r.return(Promise.reject(L))}MLP(q);C=g.pv(q.body);return r.return(C)}})}; g.I.Ch=function(B){this.D("html5_consume_onesie_next_request_policy_for_sabr")&&(B=N9(B,mnK),this.hZ.Ch(B))}; g.I.zU=function(B){B={bX:HN(new vN(B),1,O3Y)};this.hZ.zU(B)}; g.I.u$=function(B){this.hZ.u$(B)}; g.I.QQ=function(B){return this.hZ.QQ(B)}; g.I.D=function(B){return this.hZ.D(B)};g.G(du,g.K);g.I=du.prototype;g.I.JA=function(B){var z,T;return((T=(z=this.R1)==null?void 0:z.get(B))==null?void 0:T.JA())||[]}; g.I.hg=function(B,z){var T;return!((T=i6(this,z))==null||!T.hg(B))}; g.I.Uv=function(B,z){var T;return((T=i6(this,z))==null?void 0:T.Uv(B))||[]}; g.I.nh=function(B,z){var T;return((T=i6(this,z))==null?void 0:T.nh(B))||[]}; g.I.J0=function(B){this.state=B;this.notifySubscribers()}; g.I.Uh=function(){return!1}; g.I.Mu=function(){return!1}; g.I.z6=function(){}; g.I.u$=function(B){this.iO.u$(B)}; g.I.QQ=function(B){return this.iO.QQ(B)}; g.I.F2=function(B,z,T,R){T||this.vc.F2(R);return!1}; g.I.Y7=function(B,z){this.To.Y7(B,z)}; g.I.V$=function(){this.u$("orfb");this.wy=!0;if(uS5(this)&&this.xhr){var B={rc:this.xhr.status,lb:this.xhr.ZX(),rt:(1E3*Cal(this.vc)).toFixed(),shost:g.GK(this.EQ),trigger:"o1"};this.OE("pathprobe",Q_(B))}}; g.I.X6=function(){this.u$("opr_r");this.QP=!0}; g.I.Hs=function(B,z,T,R){if(this.R1){if(!this.R1.has(B)){var h=new MZ(this);this.R1.set(B,h);g.m(this,h)}var W;(W=this.R1.get(B))==null||W.Hs(z,T,R);AJ(this);T||(this.i9=R.Hw)}else AJ(this)}; g.I.GQ=function(B){this.UW=B;B.XO!=null&&this.iO.Uy(B.XO)}; g.I.xT=function(B){this.MP=B}; g.I.Ch=function(B){B.videoId&&this.JN.set(B.videoId,B)}; g.I.j3=function(){if(this.R1)for(var B=g.d(this.R1.keys()),z=B.next();!z.done;z=B.next()){var T=void 0;(T=this.R1.get(z.value))==null||T.aP()}}; g.I.uD=function(B){this.GK=B}; g.I.zU=function(B){if(B==null?0:B.bX)if(B=B.bX.jj){B=g.d(B);for(var z=B.next();!z.done;z=B.next())z=z.value,z.videoId&&this.ov.set(z.videoId,z)}}; g.I.OE=function(B,z,T){this.iO.OE(B,z,T===void 0?!1:T)}; g.I.sM=function(B,z,T){var R;(R=i6(this,B))==null||R.sM(z,T)}; g.I.Uw=function(B){this.Do.set(B.videoId,B)}; g.I.fetch=function(){var B=this,z,T,R,h,W,b,l,w,q,c,L,C,r,F,A,a,V,M,x,v,n;return g.D(function(Z){switch(Z.U){case 1:B.logger.debug("Onesie fetch started.");B.eC?B.u3.start():B.Dl.start();B.u$("or_i");z=B.dF.experiments.Cf("html5_onesie_verbose_timing");T={};R=(0,g.f)();h=function(N){z&&(T[N]=(0,g.f)()-R)}; h("loc_s");if(W=p3Y(B.videoData,B.YJ)){Z.jI(2);break}h("loc_async");b=g.rk(B.dF.experiments,"html5_onesie_redirector_timeout_ms");return g.P(Z,$TP(B.videoData,B.YJ,b),3);case 3:W=Z.T;case 2:if(!W)return B.logger.info("Onesie URL creation failed."),l={url:"0"},w=new y_("onesie.unavailable.hotconfig",l),B.Ep(w),Z.return(B.Yj);B.F3=g$(W);h("loc_e");q=g.RQ(B.dF,g.Kt(B.videoData));c=!!q.T;if(!c){L=q.getValue();Z.jI(4);break}return g.P(Z,q.T,5);case 5:L=Z.T;case 4:C=L;B.D("html5_log_onesie_empty_oauth")&& !C&&B.OE("no_token",{async:c});h("oauth");r=xTX(B.playerRequest,B.dF,B.videoData,C,w7(B.F3));g.AK(Z,6);if(!mTz(B,r)){h("or_s_sync");B.Iy=DTr(r,B.gG,B.dF,B.iO,B.Rv.onesieUstreamerConfig,(F=B.videoData.Az)==null?void 0:F.fU);Z.jI(8);break}h("or_s_async");return g.P(Z,Kxl(r,B.gG,B.dF,B.iO,B.Rv.onesieUstreamerConfig,(A=B.videoData.Az)==null?void 0:A.fU),9);case 9:B.Iy=Z.T;case 8:g.yz(Z,7);break;case 6:return a=g.JK(Z),B.logger.info("Failed to create OnesieRequestProto."),B.Ep(a),Z.return(B.Yj);case 7:return h("or_e"), z&&B.OE("oreqvt",T),B.enableCompression=B.Iy.UD.y0,B.u$("osor"),V=LRr(),M=g.wz(B.Iy,RQl),x={method:"POST",body:M,headers:{"Content-Type":"text/plain",Referer:location.origin}},v=B.D("html5_onesie_media_capabilities"),PeY(W,B.videoData,f5d(B),v),B.logger.debug("Starting Onesie network request."),B.SK&&B.OE("ombrs","1"),n=B.iO.K().schedule,B.vc=new jF(B,{jF:n,G3:B.SK,ob:function(N,TP){B.iO.My(N,TP)}, S8:!0}),W.set("rn",""+B.vc.requestNumber),B.EQ=W.Pu(),th(B.vc,B.EQ),B.u$("or_p"),B.xhr=h$(new Ge(W),V,B.vc,Bo,x),B.IC.start(),Z.return(B.Yj)}})}; g.I.jM=function(){return 2}; g.I.KT=function(){this.u$("orh_r")}; g.I.x$=function(){!this.wy&&this.xhr.ZX()&&this.V$();if(this.z9&&!this.eC){var B;(B=this.yC)==null||B.start()}this.Ka()}; g.I.qU=function(B){B=B===void 0?!1:B;this.logger.debug("onXhrDone");this.Ka();if(!(this.xd()||this.state>=4)){var z=Gg(this),T=this.xhr;z.rc=T.status;B&&(z.ab=!0);if(T.B4()){var R="onesie.net";z.msg=T.B4()}else T.status>=400?R="onesie.net.badstatus":T.iT()?this.QP||(R="onesie.response.noplayerresponse"):R=T.status===204?"onesie.net.nocontent":"onesie.net.connect";R?this.Ep(new y_(R,z)):(this.u$("or_fs"),this.vc.vW((0,g.f)(),T.ZX(),0),this.J0(4),this.SK&&this.OE("rqs",z));this.SK&&this.OE("ombre", "ok."+ +!R);this.EC=!1;AJ(this);QQK(this.To);if(!this.eC){this.Dl.stop();var h;(h=this.yC)==null||h.stop()}var W;if(B=(W=this.YJ)==null?void 0:WxK(W))for(W=0;W1E3){var B;(B=this.vc)==null||B.El((0,g.f)());B=Gg(this);if(this.dF.L4()&&this.xhr instanceof SF){var z=this.xhr;B.xrs=z.xhr.readyState;B.xpb=z.T.getLength();B.xdc=z.W}this.Ep(new y_("net.timeout",B))}}else(0,g.f)()-this.vc.T>1E4&&((z=this.vc)==null||z.El((0,g.f)()),this.Sp());this.isComplete()||this.u3.start()}}; g.I.Sp=function(){this.logger.info("Onesie request timed out");this.EC=!1;if(!AJ(this)){var B=Gg(this);B.timeout="1";this.Ep(new y_("onesie.request",B))}}; g.I.Ep=function(B){var z=this;B=Ji(B);this.z9?this.iO.h0(B):(this.Yj.reject(B),this.z9=!0);QQK(this.To);this.eC||this.Dl.stop();this.u$("or_fe");var T,R;(T=this.YJ)==null||(R=WxK(T))==null||R.forEach(function(h){z.OE("pathprobe",h)}); this.J0(5);this.dispose()}; g.I.isComplete=function(){return this.state>=3}; g.I.sT=function(){return this.state===4}; g.I.BL=function(B){var z,T;return this.isComplete()||!!((z=this.R1)==null?0:(T=z.get(B))==null?0:T.T)}; g.I.SO=function(){return!1}; g.I.uo=function(){return this.state===5}; g.I.notifySubscribers=function(B){for(var z=0;z102400&&!this.ZW&&(this.u$("or100k"),this.ZW=!0);if(B.C1()){var z=B.DY(),T=z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+T}); this.SK&&this.OE("ombrss","len."+T);this.QT.feed(z)}if(this.R1)for(var R=g.d(this.R1.keys()),h=R.next();!h.done;h=R.next()){var W=h.value;B=void 0;(B=this.R1.get(W))==null||B.aP();this.notifySubscribers(W)}}catch(b){this.Ep(b)}}; g.I.Y9=function(){return this.vc.requestNumber}; g.I.l7=function(B){return this.Do.get(B)};g.G(Noz,g.K);g.I=Noz.prototype;g.I.Hq=function(B,z){this.UE=void 0;WJB(this);hnl(this,B,z)}; g.I.BW=function(B){if(this.T.length===0)return!1;var z=this.T[0];return z instanceof du?B===this.loader.getCurrentTime()*1E3:!(z instanceof $d&&ffl(z.info))&&Math.abs(z.KN()-B)<50}; g.I.Ch=function(B){this.U=B;this.UE=(0,g.f)()+(B.backoffTimeMs||0)}; g.I.BJ=function(B,z){if(B.action===void 0){var T=this.iO.mO();T!==void 0&&this.loader.nT(T)}else if(B.action!==0||!this.IK)switch(B.action===0&&this.policy.Ro&&(B.action=2),T={},T.reason=B.FV,T.action=B.action,T.rn=z,B.action){case 1:this.policy.Y&&this.J&&this.J.I4(void 0,void 0,T);break;case 0:this.IK=!0;this.videoData.Gz()&&this.policy.Y&&this.J&&this.J.I4(void 0,void 0,T,!1);this.loader.xw(T);break;case 2:jpK(B.FV)!=="sabr.config"&&delete T.reason;this.loader.handleError(jpK(B.FV),T,1);break; case 3:this.policy.U0&&((B=this.qG.J)!=null&&(B.J=!0),this.loader.handleError("sabr.hostfallback",T))}}; g.I.ue=function(B){B&&(this.loader.OE("sabrctxt",{onsbrctxt:B.type,scp:B.scope,dflt:B.sendByDefault}),B.type&&B.sendByDefault&&this.I$.add(B.type),B.scope!==2&&(B.type&&this.videoData.sabrContextUpdates.set(B.type,B),this.iO.ue(B)))}; g.I.WJ=function(){}; g.I.uD=function(B){if(B.vg!==void 0&&B.dL){var z=B.vg/B.dL;this.audioTrack.L=!1;this.videoTrack.L=!1;if(this.policy.UE||this.policy.Up||this.policy.yr)this.loader.NQ.U=!1;this.loader.MV(z,1);if(this.iO.getCurrentTime()!==z){var T={Dx:"sabr_seek",bI:!0,hH:!0};B.seekSource&&(T.seekSource=B.seekSource);HO(this.loader,z+.1,T)}}}; g.I.onSnackbarMessage=function(B){this.iO.publish("onSnackbarMessage",B)}; g.I.GQ=function(B){B.UL&&B.U$&&$f(this.qG,B.UL,B.U$);this.policy.qs&&(B.L8&&B.rf&&(this.qG.Eg=B.L8/B.rf),B.XZ&&B.V1&&(this.qG.Q_=B.XZ/B.V1));this.policy.Lm&&Qe(this.videoData)&&!this.videoData.TZ&&B.U$&&this.loader.MV(B.U$,1E3);B.XO!=null&&this.iO.Uy(B.XO);this.policy.Wk&&B.x5&&(B=((0,g.f)()-B.x5)/1E3,this.loader.wC.ew(1,B))}; g.I.JS=function(B){this.loader.JS(B)}; g.I.Ln=function(B){return this.I$.has(B)}; g.I.bM=function(B,z,T){this.policy.U&&this.loader.OE("sabrctxtplc",{start:B?B.join("_"):"",stop:z?z.join("_"):"",discard:T?T.join("_"):""});if(B){B=g.d(B);for(var R=B.next();!R.done;R=B.next())this.I$.add(R.value)}if(z)for(z=g.d(z),B=z.next();!B.done;B=z.next())B=B.value,this.I$.has(B)&&this.I$.delete(B);if(T)for(T=g.d(T),z=T.next();!z.done;z=T.next())if(z=z.value,this.videoData.sabrContextUpdates.has(z)&&(this.videoData.sabrContextUpdates.delete(z),z===3&&(this.videoData.IZ="")),this.policy.N&&this.T.length)for(B= g.d(this.T),R=B.next();!R.done;R=B.next())if(R=R.value,!(R instanceof du)){var h=void 0;((h=R.kI)==null?void 0:h.type)===z&&(R.kI=void 0)}}; g.I.Rd=function(){}; g.I.ub=function(B){this.L=B}; g.I.W2=function(B){this.X=B}; g.I.jL=function(B,z){HX(this.policy,B,4,z)}; g.I.zU=function(B){if(B==null?0:B.bX)if(B=B.bX.jj){B=g.d(B);for(var z=B.next();!z.done;z=B.next())if(z=z.value,z.formatId){var T=this.qG.Y.get(pm(z.formatId));T&&T.info&&(T.info.debugInfo=z.debugInfo)}}}; g.I.gZ=function(B){this.videoData.K().D("html5_server_controlled_resume_time_refactor")?this.iO.publish("reloadplayer",B):(B=B==null?void 0:B.reloadPlaybackParams)&&this.iO.publish("reloadplayer",B)}; g.I.ma=function(){return this.iO.ma()||""}; g.I.Ya=function(){var B=pG(this.audioTrack,!0)*1E3,z=pG(this.videoTrack,!0)*1E3;return Math.min(B,z)}; g.I.wF=function(B,z){this.loader.OE(B,z)}; g.I.Nx=function(B){QYY(this.loader,T_z(this.sE,B))}; g.I.gF=function(){g.K.prototype.gF.call(this);this.U=void 0;hnl(this,!0,"i");this.T=[]};lrr.prototype.nQ=function(B,z){if(this.W)return LJY(this,z);if(z=ff(B)){var T=z.U;T&&T.Y&&T.T&&(B=B.Y.length?B.Y[0]:null)&&B.state>=2&&!B.uo()&&B.info.DS===0&&(this.W=B,this.L=T,this.U=z.info,this.X=this.startTimeSecs=Date.now()/1E3,this.V=this.U.startTime)}return NaN}; lrr.prototype.clear=function(){this.U=this.L=this.W=null;this.T=this.V=this.X=this.startTimeSecs=NaN;this.Y=!1};g.G(g.Z3,g.K);g.I=g.Z3.prototype;g.I.initialize=function(B,z,T){this.logger.debug(function(){return"Initialized, t="+B}); B=B||0;this.policy.T||(z=hzz(this.T),Jud(this.iO,new He(z.video,z.reason)),this.iO.Ss(new He(z.audio,z.reason)));this.policy.T&&j5(this);this.qG.isManifestless&&yqz(this.V);this.L&&qRX(this.L,this.videoTrack.T);z=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var R=!this.qG.isManifestless;this.policy.SR&&(R=R||this.qG.qh);this.policy.XE||(this.currentTime=R?B:z);this.policy.UE&&this.seek(this.getCurrentTime(),{}).d2(function(){}); if(this.policy.T){var h;((h=this.N)==null?0:Obz(h,this.ma()||""))&&IrP(this)&&FJH(this,this.videoTrack)&&FJH(this,this.audioTrack)&&(btB(this.U,this.N),this.policy.V&&ohP(this))}else this.UE&&(GGd(this,this.videoTrack),GGd(this,this.audioTrack),LtH(this.UE),delete this.UE);T?(this.policy.mD?(this.Dm=T,eX(this,T)):eX(this,!1),g.Bi(this.Sx)):(T=this.getCurrentTime()===0,X2(this.V,this.videoTrack,this.videoTrack.T,T),X2(this.V,this.audioTrack,this.audioTrack.T,T),this.policy.T&&X3B(this.U,!0),this.policy.UE|| this.seek(this.getCurrentTime(),{}).d2(function(){}),this.timing.tick("gv")); (this.qG.bz||this.qG.VW||this.qG.WD||this.qG.Dm||this.qG.ra)&&this.iO.Ja(this.qG)}; g.I.resume=function(){if(this.isSuspended||this.Oh){this.logger.debug("Resumed.");this.yk=this.Oh=this.isSuspended=!1;try{this.nQ()}catch(B){g.kV(B)}}}; g.I.AT=function(){return!this.policy.pF}; g.I.yJ=function(B,z){B=B===void 0?!1:B;z=z===void 0?!1:z;this.logger.debug("detaching media source");Upb(this);this.iO.g0()&&(this.X=NaN);B?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.zZ&&this.OE("loader",{setsmb:1}),this.policy.RK=!0,this.LX()):(this.policy.mD?eX(this,this.Dm):eX(this,!1),z||this.LX())}; g.I.setAudioTrack=function(B,z,T){T=T===void 0?!1:T;if(!this.xd()){var R=!isNaN(z);T&&R&&(this.audioTrack.UE=Date.now(),this.policy.XS&&(this.MG=!0));if(this.policy.T){var h=this.W.HG(B.id,R);this.logger.debug(function(){return"Logging new audio format: "+h.T.info.id}); this.iO.Ss(h)}else{var W=zzK(this.T,B.id,R);this.logger.debug(function(){return"Logging new audio format: "+W.audio.info.id}); this.iO.Ss(new He(W.audio,W.reason))}if(R&&(T=this.audioTrack.T.index.Yh(z),this.OE("setAudio",{id:B.id,cmt:z,sq:T}),T>=0)){this.policy.T&&this.Hq(!0,"mosaic");$9(this.audioTrack,T,NaN,NaN);!this.policy.R7&&this.qG.isLive&&pj(this.qG,T,!1);return}this.iO.rY()}}; g.I.setPlaybackRate=function(B){B!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(B)}; g.I.fG=function(B){var z=this.U.L;this.U.ub(B);this.OE("scfidc",{curr:pm(z),"new":pm(B)});B&&pm(B)!==pm(z)&&(this.Hq(!0,"caption change"),this.nQ())}; g.I.oO=function(B){this.U.W2(B)}; g.I.gQ=function(B){var z=B.T.info.lf();this.logger.debug(function(){return"New "+(z?"audio":"video")+" format from SABR: "+Wn(B.T.info)}); z?this.iO.Ss(B):Jud(this.iO,B)}; g.I.Nx=function(B){mt(B.oK[B.oK.length-1])&&QYY(this,T_z(this.T,B.oK[0].T))}; g.I.Og=function(){return this.iO.Og()}; g.I.Va=function(){return this.iO.Va()}; g.I.JS=function(B){this.iO.K().L4()&&this.OE("sps",{status:B.OU||""});if(B.OU===1)this.iO.videoData.q6=0;else if(B.OU===2||B.OU===3){var z=!1;if(B.OU===3){z=this.iO.eP();var T;this.C4=(T=B.LaO)!=null?T:Infinity;this.iO.videoData.q6=z+1;(z=QnK(this))&&this.PS(!0)}this.iO.uB(!0,z)}}; g.I.wO=function(){return this.iO.wO()}; g.I.Zn=function(){return this.iO.Zn()}; g.I.NT=function(B){this.iO.NT(B)}; g.I.QpI=function(){var B,z=(B=this.iO.Wu())==null?void 0:B.getCurrentTime();z?this.iO.OE("rms",{cta:z}):g.Bi(this.JZ)}; g.I.nQ=function(){Vv5(this);if(this.GZ&&XB(this.GZ)&&!this.GZ.H7()&&(!this.policy.XE||isFinite(this.getCurrentTime()))){var B=a7(this.videoTrack);B=this.policy.HJ&&B&&B.tY();this.qG.isManifestless&&this.qG.W&&Q$(this.qG)?(this.X=Q$(this.qG),this.GZ.YB(this.X)):Pz(this.qG)&&!B?isNaN(this.X)?(this.X=this.getCurrentTime()+3600,this.GZ.YB(this.X)):this.X<=this.getCurrentTime()+1800&&(this.X=Math.max(this.X+1800,this.getCurrentTime()+3600),this.GZ.YB(this.X)):this.GZ.isView||(B=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==B)&&B>0&&(this.GZ.YB(B),this.X=B))}if(!this.xd())if(V$(this.qG)&&this.qG.uo()){var z=this.qG;this.handleError("manifest.net.retryexhausted",z.MG?{rc:z.H4}:{rc:z.H4.toString()},1)}else if(this.policy.T)a:{try{zn5(this.U);this.qG.isManifestless&&this.policy.V&&nf(this.NQ);var T;((T=this.GZ)==null?0:sI(T))&&this.Xp();X3B(this.U)}catch(b){g.KV(b);z=b;if(z.message.includes("changeType")){this.OE("ctype",{exp:z.name,msg:z.message,s:z.stack});break a}this.handleError("fmt.unplayable", {exp:z.name,msg:z.message,s:z.stack},1)}Xx5(this);g.Bi(this.Kf)}else if(!this.qG.U||!WRd(this.videoTrack)&&!WRd(this.audioTrack)||(this.videoTrack.V||this.audioTrack.V)&&this.policy.EE?T=!1:(this.LX(),this.iO.seekTo(Infinity,{Dx:"checkLoaderTracksSync",MV:!0}),T=!0),!T){Vv5(this);this.qG.isManifestless&&(bYX(this.videoTrack),bYX(this.audioTrack),nf(this.NQ),(T=ff(this.videoTrack))&&T.U&&(T=T.U.Y&&!this.policy.lF,this.OE(T===this.policy.L.jn?"strm":"strmbug",{strm:T,sfmp4:this.policy.L.jn,dfs:this.policy.lF}, !0)));if(this.GZ)this.Xp();else if(this.policy.W){var R;T=!1;if(this.policy.JC){var h;B=g.d([this.videoTrack,this.audioTrack]);for(h=B.next();!h.done;h=B.next()){var W=h.value;for(h=ff(W);h&&W.Ig()!==a7(W);h=ff(W))W.NB(h);T=T||!!h}}else(z=ff(this.videoTrack))&&this.videoTrack.NB(z),(R=ff(this.audioTrack))&&this.audioTrack.NB(R);yY(this.videoTrack)&&yY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(z||R||T)&&Nm(this)}dpz(this);X2(this.V,this.videoTrack,this.videoTrack.T, !1);X2(this.V,this.audioTrack,this.audioTrack.T,!1);this.policy.Xj||ghb(this,this.videoTrack,this.audioTrack);djX(this.V,this.videoTrack,this.audioTrack);djX(this.V,this.audioTrack,this.videoTrack);Xx5(this);this.L&&(z=this.L,z.W?(R=z.X+z.policy.Li,z.Y||(R=Math.min(R,z.startTimeSecs+z.policy.Bp)),z=Math.max(0,R*1E3-Date.now())):z=NaN,isNaN(z)||g.Bi(this.II,z));g.Bi(this.Kf)}}; g.I.xw=function(B){this.iO.xw(B)}; g.I.Xp=function(){var B=this;if(this.GZ){var z=this.GZ.T,T=this.GZ.U;T4r(this,this.audioTrack);T4r(this,this.videoTrack);var R=$pd(this);if(R){if(this.policy.XG){if(!z.L_()){var h=ff(this.audioTrack);if(h){if(!Xu(this,this.audioTrack,z,h.info))return;vhP(this,this.audioTrack,z,h)}}if(!T.L_()&&(h=ff(this.videoTrack))){if(!Xu(this,this.videoTrack,T,h.info))return;vhP(this,this.videoTrack,T,h)}}this.iD||(this.iD=(0,g.f)(),this.logger.debug(function(){return"Appends pause start "+B.iD+" reason "+R}), this.policy.U&&this.OE("apdps",{r:R}))}else if(this.iD&&(pxB(this,this.iD),this.iD=0),PsY(this),h=!1,nhl(this,this.videoTrack,T)&&(h=!0,gH5(this.timing),PKr(this.timing)),this.GZ&&!this.GZ.i8()&&(nhl(this,this.audioTrack,z)&&(h=!0,J8z(this.timing),xUz(this.timing)),!this.xd()&&this.GZ))!this.policy.pF&&yY(this.videoTrack)&&yY(this.audioTrack)&&XB(this.GZ)&&!this.GZ.H7()&&(T=!1,T=a7(this.audioTrack).T,T=T===this.qG.T[T.info.id])&&(this.logger.debug("Setting EOS"),Dkb(this.GZ),hiX(this.schedule)),h&& !this.GZ.isAsync()&&Nm(this)}}; g.I.Fz=function(B){var z,T=B===((z=this.GZ)==null?void 0:z.T)?this.audioTrack:this.videoTrack,R;if((R=ff(T))==null?0:R.isLocked){if(this.iO.K().L4()){var h;this.OE("eosl",{ounlock:(h=ff(T))==null?void 0:h.info.Wc()})}var W;tvK(this,B===((W=this.GZ)==null?void 0:W.T))}var b;if(this.policy.XS&&B===((b=this.GZ)==null?void 0:b.T)&&this.eI){z=this.eI-this.getCurrentTime();var l;this.iO.OE("asl",{l:z,xtag:(l=a7(this.audioTrack))==null?void 0:l.T.info.T});this.MG=!1;this.eI=0}B.u9()&&B.a7().length===0&& (B.jt(),this.GZ&&!this.GZ.u9()&&(this.iO.K().L4()&&this.iO.OE("rms",{ld:"seek"}),this.GZ.X=performance.now(),this.iO.eT(),this.iO.K().L4()&&g.Bi(this.JZ)));var w;(w=T.N)!=null&&zV(w,0);this.policy.Sk?e5(this):this.nQ()}; g.I.wDG=function(B){if(this.GZ){var z=a7(B===this.GZ.T?this.audioTrack:this.videoTrack);if(B=B.FM())for(var T=0;T5&&B.TZ.shift();z=z.FE;var q;if((q=this.iO.getVideoData())==null?0:q.enableServerStitchedDai)q=iYb(this.audioTrack,z),T=iYb(this.videoTrack,z),q!==0&&T!==0&&q!==T&&this.handleError("ssdai.avsync",{sq:z,a:q,v:T},0)}}; g.I.LO=function(B,z,T,R){B.info.video&&this.Y.LO(z,T,R)}; g.I.Wt=function(B){this.T.Wt(B)}; g.I.a6=Wb(20);g.I.DE=function(){return this.videoTrack.L||this.audioTrack.L}; g.I.seek=function(B,z){if(this.xd())return xt();if(this.DE())return xt("seeking to head");if(this.policy.UE&&!isFinite(B))return hAB(this.NQ),g.gW(Infinity);Vv5(this);j5(this);this.policy.T||dpz(this,B);this.GZ&&this.GZ.T&&this.GZ.U&&!this.iO.getVideoData().I3&&(this.GZ.T.isLocked()||this.GZ.U.isLocked())&&this.iO.rY({reattachOnLockedBuffer:1,vsb:""+this.GZ.U.isLocked(),asb:""+this.GZ.T.isLocked()});var T=this.getCurrentTime(),R=this.NQ.seek(B,z);this.policy.XE||(this.currentTime=R);nA(this.Y,B,T, this.policy.YX&&!z.bI);Nm(this);return g.gW(R)}; g.I.BW=function(B){return this.policy.T&&this.U.BW(B)}; g.I.Ln=function(B){return this.U.Ln(B)}; g.I.Hq=function(B,z){this.U.Hq(B,z)}; g.I.getCurrentTime=function(){if(this.policy.XE){var B=this.p4()||0;return this.iO.getCurrentTime()-B}return this.currentTime}; g.I.UR=function(){return this.audioTrack.T.info}; g.I.RT=function(){return this.videoTrack.T.info}; g.I.pw=function(){return this.audioTrack.T.info.Ai}; g.I.St=function(){return this.videoTrack.T.info.Ai}; g.I.gF=function(){try{this.yJ(),D9(this.audioTrack),D9(this.videoTrack),k9(this.audioTrack),k9(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.K.prototype.gF.call(this)}catch(B){g.kV(B)}}; g.I.handleError=function(B,z,T){T=T===void 0?0:T;var R=gt(T);B==="fmt.unplayable"&&this.qG.isLive&&(this.policy.XG=!1,Jc(this.qG));z=new y_(B,z,T);g.RR(this);Q_(z.details);this.iO.handleError(z);B!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&B!=="fmt.unparseable"&&R&&this.dispose()}; g.I.NS=function(){var B=a7(this.audioTrack),z=a7(this.videoTrack);B={lct:this.getCurrentTime().toFixed(3),lsk:this.NQ.isSeeking(),lmf:this.T.T.isLocked(),lbw:Gk(this.schedule).toFixed(3),lhd:Fk(this.schedule).toFixed(3),lst:((this.schedule.L.EJ()||0)*1E9).toFixed(3),laa:B?B.Wc():"",lva:z?z.Wc():"",lar:this.audioTrack.U?this.audioTrack.U.Wc():"",lvr:this.videoTrack.U?this.videoTrack.U.Wc():"",laq:""+gm(this.audioTrack),lvq:""+gm(this.videoTrack)};this.GZ&&!this.GZ.i8()&&this.GZ.T&&this.GZ.U&&(B.lab= YS(this.GZ.T.a7()),B.lvb=YS(this.GZ.U.a7()));this.iD&&(B.lapt=((0,g.f)()-this.iD).toFixed(0),B.lapr=$pd(this));this.XE&&(B.lapmabht=((0,g.f)()-this.XE).toFixed(0),B.lapmabh=Kf(this,this.audioTrack).toFixed(0));this.lO&&(B.lapmvbht=((0,g.f)()-this.lO).toFixed(0),B.lapmvbh=Kf(this,this.videoTrack).toFixed(0));this.zZ&&(B.lapsdai=((0,g.f)()-this.zZ).toFixed(0));return B}; g.I.LX=function(){try{this.policy.T&&this.U.Hq(!1,"pending"),this.audioTrack.LX(),this.videoTrack.LX()}catch(B){g.kV(B)}this.policy.W=""}; g.I.vj=function(){return Qh(this.J)}; g.I.OE=function(B,z,T){this.iO.OE(B,z,T===void 0?!1:T)}; g.I.ma=function(){return this.iO.ma()}; g.I.MV=function(B,z){B/=z;isNaN(this.timestampOffset)&&RNP(this,B-Math.min(B,this.policy.HR));return(B-this.timestampOffset)*z}; g.I.p4=function(){return this.timestampOffset}; g.I.isSeeking=function(){return this.NQ.isSeeking()}; g.I.Mw=function(){this.Y.Mw()}; g.I.CU=function(B,z,T){z=z===void 0?!1:z;T=T===void 0?{}:T;this.policy.T?this.W.CU(B,z,T):this.T.CU(B,z,T)}; g.I.Qr=function(B,z){if(this.TZ&&this.Y.Qr(B,this.TZ))return RNP(this,this.timestampOffset-z),Nm(this),this.policy.Y&&(Jc(this.qG),k9(this.audioTrack),k9(this.videoTrack),this.LX()),!0;z=this.videoTrack.T.index.Yh(B);this.handleError("ad.skipfailed",{dec:!!this.TZ,t:B.toFixed(3),sq:z});return!1}; g.I.getManifest=function(){return this.qG}; g.I.isOffline=function(){return!!this.iO.getVideoData().cotn}; g.I.My=function(B,z){this.iO.My(B,z)}; g.I.tb=function(B){if(this.policy.T)this.U.Hq(!0,"utc"),this.nQ();else{var z=this.iO.getVideoData().qn;if(z){var T=this.V;T.GO=B;T.qn=z;E1(this)}}}; g.I.nT=function(B){this.videoTrack.L=!1;this.audioTrack.L=!1;this.NQ.U=!1;this.iO.nT(B)}; g.I.Fd=function(B){this.NQ.Fd(B-this.p4())}; g.I.Am=function(){this.iO.Am()}; g.I.PS=function(B){B!==this.policy.ZS&&((this.policy.ZS=B)||this.nQ())}; g.I.qb=function(B,z){var T=this.audioTrack.yI,R=this.videoTrack.yI;T&&R&&(T.remove(B,z),R.remove(B,z))}; g.I.rY=function(B){this.iO.rY(B)}; g.I.WI=function(B){this.iO.WI(B)}; g.I.eP=function(){return this.iO.eP()}; g.I.Ow=function(){Jc(this.qG);this.LX()};g.I=g.Er.prototype;g.I.sA=function(B,z,T,R,h,W){return this.KF.sA(B,z,T,R,h,W)}; g.I.ya=function(B,z,T,R,h,W){return this.KF.ya(B,z,T,R,h,W)}; g.I.cN=function(B){return this.KF.cN(B)}; g.I.GS=function(B){this.KF.GS(B)}; g.I.I4=function(B,z,T,R){return this.KF.I4(B,z,T,R)}; g.I.Mw=function(){this.KF.Mw()}; g.I.Tm=function(B,z){this.KF.Tm(B,z)}; g.I.Ke=function(){this.KF.Ke()}; g.I.Z3=Wb(62);g.I.yG=function(B,z,T){this.KF.yG(B,z,T)}; g.I.Dr=Wb(65);g.I.Zj=function(B,z,T,R,h,W,b,l,w){this.KF.Zj(B,z,T,R,h,W,b,l,w)}; g.I.xH=function(B){this.KF.xH(B)}; g.I.r$=function(B){return this.KF.r$(B)}; g.I.cj=function(B){return this.KF.cj(B)};g.G(SX,g.Cl);g.G(Bs,SX);Bs.prototype.X=function(B,z){if(B&&z){var T=Number($A(B,"cpi"))*1+1;isNaN(T)||T<=0||Tthis.Y&&(this.Y=T,g.Ep(this.T)||(this.T={},this.W.stop(),this.U.stop())),this.T[z]=B,g.Bi(this.U))}}; Bs.prototype.V=function(){for(var B=g.d(Object.keys(this.T)),z=B.next();!z.done;z=B.next()){var T=z.value;z=this.publish;for(var R=this.Y,h=g.It(this.T[T]),W=[],b=g.d(h[6].split("&")),l=b.next();!l.done;l=b.next())l=l.value,l.indexOf("cpi=")===0?W.push("cpi="+R.toString()):l.indexOf("ek=")===0?W.push("ek="+g.Cr(T)):W.push(l);h[6]="?"+W.join("&");T="skd://"+h.slice(2).join("");h=T.length*2;R=new Uint8Array(h+4);R[0]=h%256;R[1]=(h-R[0])/256;for(h=0;h0)for(var T=g.d(this.T),R=T.next();!R.done;R=T.next())if(z===R.value.info.cryptoPeriodIndex){z=!0;break a}z=!1}if(!z){z=(0,g.f)();a:{T=B.cryptoPeriodIndex;if(!isNaN(T)){R=g.d(this.Y.values());for(var h=R.next();!h.done;h=R.next())if(Math.abs(h.value.cryptoPeriodIndex-T)<=1){T=!0;break a}}T=!1}T?(T=B.T,T=Math.max(0,Math.random()*((isNaN(T)?120:T)-30))*1E3):T=0;this.publish("log_qoe",{wvagt:"delay."+T,cpi:B.cryptoPeriodIndex,reqlen:this.T.length, ignore:this.W});T<=0?YLz(this,B):this.W||(this.T.push({time:z+T,info:B}),g.Bi(this.U,T))}}; z7.prototype.gF=function(){this.T=[];SX.prototype.gF.call(this)};var o1={},CLB=(o1.DRM_TRACK_TYPE_AUDIO="AUDIO",o1.DRM_TRACK_TYPE_SD="SD",o1.DRM_TRACK_TYPE_HD="HD",o1.DRM_TRACK_TYPE_UHD1="UHD1",o1);g.G(qLH,g.K);g.G(o9z,g.Cl);g.I=o9z.prototype;g.I.SM=function(B){var z=this;if(!(this.xd()||B.size<=0)){var T={};B.forEach(function(R,h){var W=Hz(z.U)?h:R;h=new Uint8Array(Hz(z.U)?R:h);Hz(z.U)&&PLX(h);R=g.bT(h,4);PLX(h);h=g.bT(h,4);z.T[R]?z.T[R].status=W:z.T[h]?z.T[h].status=W:z.T[R]={type:"",status:W};W=z.T[R].type;R=pXX(W);he(z,W)&&!T[R]&&(z.R$.push(R),T[R]=!0)}); g9K(this,",");T7(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.I.error=function(B,z,T,R){this.xd()||(this.publish("licenseerror",B,z,T,R),B==="drm.provision"&&(B=(Date.now()-this.X)/1E3,this.X=NaN,this.publish("ctmp","provf",{et:B.toFixed(3)})));gt(z)&&this.dispose()}; g.I.shouldRetry=function(B,z){return!B&&this.requestNumber===z.requestNumber}; g.I.gF=function(){this.T={};g.Cl.prototype.gF.call(this)}; g.I.NS=function(){var B={ctype:this.J.contentType||"",length:this.J.initData.length,requestedKeyIds:this.WD,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Y&&(B.keyStatuses=this.T);return B}; g.I.getInfo=function(){var B=this.W.join();if(Rg(this)){var z=new Set,T;for(T in this.T)this.T[T].status!=="usable"&&z.add(this.T[T].type);B+="/UKS."+Array.from(z)}return B+="/"+this.cryptoPeriodIndex}; g.I.Pu=function(){return this.url};g.G(Ws,g.K);g.I=Ws.prototype;g.I.zV=function(B){if(this.V){var z=B.messageType||"license-request";this.V(new Uint8Array(B.message),z)}}; g.I.SM=function(){this.L&&this.L(this.T.keyStatuses)}; g.I.onClosed=function(){this.xd()||g.NR("xboxone")&&this.Y&&this.Y("closedShouldNotRetry")}; g.I.Yb=function(B){this.V&&this.V(B.message,"license-request")}; g.I.OH=function(B){if(this.Y){if(this.U){var z=this.U.error.code;B=this.U.error.systemCode}else z=B.errorCode,B=B.systemCode;this.Y("t.prefixedKeyError;c."+z+";sc."+B,z,B)}}; g.I.UH=function(){this.X&&this.X()}; g.I.update=function(B){var z=this;if(this.T)return this.T.update(B).then(null,g8(function(T){v9r(z,"t.update",T)})); this.U?this.U.update(B):this.element.addKey?this.element.addKey(this.J.keySystem,B,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.J.keySystem,B,this.initData,this.sessionId);return vP()}; g.I.gF=function(){this.T&&(this.N?this.T.close().catch(g.KV):this.T.close());this.element=null;g.K.prototype.gF.call(this)};g.G(bv,g.K);g.I=bv.prototype;g.I.setServerCertificate=function(){return this.U.setServerCertificate?this.T.flavor==="widevine"&&this.T.VT?this.U.setServerCertificate(this.T.VT):NE(this.T)&&this.T.IK?this.U.setServerCertificate(this.T.IK):null:null}; g.I.createSession=function(B,z){var T=B.initData;if(this.T.keySystemAccess){z&&z("createsession");var R=this.U.createSession();O6(this.T)?T=K_r(T,this.T.IK):NE(this.T)&&(T=bBd(T)||new Uint8Array(0));z&&z("genreq");B=R.generateRequest(B.contentType,T);var h=new Ws(null,null,null,R,null,this.L);B.then(function(){z&&z("genreqsuccess")},g8(function(b){v9r(h,"t.generateRequest",b)})); return h}if(uP(this.T))return n9H(this,T);if(fj(this.T))return mYH(this,T);if((R=this.element)==null?0:R.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,T);else{var W;(W=this.element)==null||W.webkitGenerateKeyRequest(this.T.keySystem,T)}return this.W=new Ws(this.element,this.T,T,null,null,this.L)}; g.I.qJ=function(B){var z=u2b(this,B);z&&z.Yb(B)}; g.I.Pi=function(B){var z=u2b(this,B);z&&z.OH(B)}; g.I.xp=function(B){var z=u2b(this,B);z&&z.UH(B)}; g.I.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var B=this.U.getMetrics()}catch(z){}return B}; g.I.gF=function(){this.Y=this.U=null;var B;(B=this.W)==null||B.dispose();B=g.d(Object.values(this.X));for(var z=B.next();!z.done;z=B.next())z.value.dispose();this.X={};g.K.prototype.gF.call(this);delete this.element};g.I=Y7.prototype;g.I.get=function(B){B=this.findIndex(B);return B!==-1?this.values[B]:null}; g.I.remove=function(B){B=this.findIndex(B);B!==-1&&(this.keys.splice(B,1),this.values.splice(B,1))}; g.I.removeAll=function(){this.keys=[];this.values=[]}; g.I.set=function(B,z){var T=this.findIndex(B);T!==-1?this.values[T]=z:(this.keys.push(B),this.values.push(z))}; g.I.findIndex=function(B){return g.oR(this.keys,function(z){return g.DF(B,z)})};g.G(OGd,g.Cl);g.I=OGd.prototype;g.I.q0Z=function(B){this.Ve({onecpt:1});B.initData&&j7z(this,new Uint8Array(B.initData),B.initDataType)}; g.I.EWD=function(B){this.Ve({onndky:1});j7z(this,B.initData,B.contentType)}; g.I.CK=function(B){this.Ve({onneedkeyinfo:1});this.dF.D("html5_eme_loader_sync")&&(this.L.get(B.initData)||this.L.set(B.initData,B));t5B(this,B)}; g.I.ou=function(B){this.Y.push(B);lv(this)}; g.I.createSession=function(B){var z=ZGb(this)?UEH(B):g.bT(B.initData);this.U.get(z);this.RK=!0;B=new o9z(this.videoData,this.dF,B,this.drmSessionId);this.U.set(z,B);B.subscribe("ctmp",this.uG,this);B.subscribe("keystatuseschange",this.SM,this);B.subscribe("licenseerror",this.bu,this);B.subscribe("newlicense",this.dw,this);B.subscribe("newsession",this.il,this);B.subscribe("sessionready",this.D6,this);B.subscribe("fairplay_next_need_key_info",this.wf,this);this.dF.D("html5_enable_vp9_fairplay")&&B.subscribe("qualitychange", this.RL,this);B.subscribe("sabrlicenseconstraint",this.BtG,this);dYY(B,this.W)}; g.I.dw=function(B){this.xd()||(this.Ve({onnelcswhb:1}),B&&!this.heartbeatParams&&(this.heartbeatParams=B,this.publish("heartbeatparams",B)))}; g.I.il=function(){this.xd()||(this.Ve({newlcssn:1}),this.Y.shift(),this.RK=!1,lv(this))}; g.I.D6=function(){if(uP(this.T)&&(this.Ve({onsnrdy:1}),this.lO--,this.lO===0)){var B=this.TZ,z,T;(z=B.element)==null||(T=z.msSetMediaKeys)==null||T.call(z,B.Y)}}; g.I.SM=function(B){if(!this.xd()){!this.zZ&&this.videoData.D("html5_log_drm_metrics_on_key_statuses")&&(epb(this),this.zZ=!0);this.Ve({onksch:1});var z=this.RL;if(!Rg(B)&&g.Zs&&B.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var T="large";else{T=[];var R=!0;if(Rg(B))for(var h=g.d(Object.keys(B.T)),W=h.next();!W.done;W=h.next())W=W.value,B.T[W].status==="usable"&&T.push(B.T[W].type),B.T[W].status!=="unknown"&&(R=!1);if(!Rg(B)||R)T=B.W;T=y7K(T)}z.call(this,T);if(!Rg(B)){z= {};T=[];R=g.d(B.W);for(h=R.next();!h.done;h=R.next())h=pXX(h.value),z[h]||(T.push(h),z[h]=!0);B.R$=T}this.videoData.R$=B.R$;this.publish("keystatuseschange",B)}}; g.I.uG=function(B,z){this.xd()||this.publish("ctmp",B,z)}; g.I.wf=function(B,z){this.xd()||this.publish("fairplay_next_need_key_info",B,z)}; g.I.bu=function(B,z,T,R){this.xd()||(this.videoData.D("html5_log_drm_metrics_on_error")&&epb(this),this.publish("licenseerror",B,z,T,R))}; g.I.Gi=function(){return this.J}; g.I.RL=function(B){var z=g.la("auto",B,!1,"l");if(this.videoData.Oa){if(this.J.equals(z))return}else if(WfB(this.J,B))return;this.J=z;this.publish("qualitychange");this.Ve({updtlq:B})}; g.I.BtG=function(B){this.videoData.sabrLicenseConstraint=B}; g.I.gF=function(){this.T.keySystemAccess&&this.element&&(this.WD?this.element.setMediaKeys(null).catch(g.KV):this.element.setMediaKeys(null));this.element=null;this.Y=[];for(var B=g.d(this.U.values()),z=B.next();!z.done;z=B.next())z=z.value,z.unsubscribe("ctmp",this.uG,this),z.unsubscribe("keystatuseschange",this.SM,this),z.unsubscribe("licenseerror",this.bu,this),z.unsubscribe("newlicense",this.dw,this),z.unsubscribe("newsession",this.il,this),z.unsubscribe("sessionready",this.D6,this),z.unsubscribe("fairplay_next_need_key_info", this.wf,this),this.dF.D("html5_enable_vp9_fairplay")&&z.unsubscribe("qualitychange",this.RL,this),z.dispose();this.U.clear();this.X.removeAll();this.L.removeAll();this.heartbeatParams=null;g.Cl.prototype.gF.call(this)}; g.I.NS=function(){for(var B={systemInfo:this.T.NS(),sessions:[]},z=g.d(this.U.values()),T=z.next();!T.done;T=z.next())B.sessions.push(T.value.NS());return B}; g.I.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.V?"/KR":"")}; g.I.Ve=function(B,z){z=z===void 0?!1:z;this.xd()||(Q_(B),(this.dF.L4()||z)&&this.publish("ctmp","drmlog",B))};g.G(zOH,g.K);g.I=zOH.prototype;g.I.H6=function(){return!!this.Iw}; g.I.Ou=function(){return this.U}; g.I.handleError=function(B){var z=this;YrX(this,B);if((B.errorCode!=="html5.invalidstate"&&B.errorCode!=="fmt.unplayable"&&B.errorCode!=="fmt.unparseable"||!bpY(this,B.errorCode,B.details))&&!ipX(this,B)){if(this.bO.TZ!=="yt"&&wJd(this,B)&&this.videoData.Wk&&(0,g.f)()/1E3>this.videoData.Wk&&this.bO.TZ==="hm"){var T=Object.assign({e:B.errorCode},B.details);T.stalesigexp="1";T.expire=this.videoData.Wk;T.init=this.videoData.Lo/1E3;T.now=(0,g.f)()/1E3;T.systelapsed=((0,g.f)()-this.videoData.Lo)/1E3;B= new y_(B.errorCode,T,2);this.iO.jD(B.errorCode,2,"SIGNATURE_EXPIRED",Q_(B.details))}if(gt(B.severity)){var R;T=(R=this.iO.loader)==null?void 0:R.T.T;if(this.bO.D("html5_use_network_error_code_enums"))if(l3r(B)&&T&&T.isLocked())var h="FORMAT_UNAVAILABLE";else if(this.bO.X||B.errorCode!=="auth"||B.details.rc!==429)B.errorCode==="ump.spsrejectfailure"&&(h="HTML5_SPS_UMP_STATUS_REJECTED");else{h="TOO_MANY_REQUESTS";var W="6"}else l3r(B)&&T&&T.isLocked()?h="FORMAT_UNAVAILABLE":this.bO.X||B.errorCode!== "auth"||B.details.rc!=="429"?B.errorCode==="ump.spsrejectfailure"&&(h="HTML5_SPS_UMP_STATUS_REJECTED"):(h="TOO_MANY_REQUESTS",W="6");this.iO.jD(B.errorCode,B.severity,h,Q_(B.details),W)}else this.iO.publish("nonfatalerror",B),R=/^pp/.test(this.videoData.clientPlaybackNonce),this.h0(B.errorCode,B.details),R&&B.errorCode==="manifest.net.connect"&&(B="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.f)(),MP(B,"manifest",function(b){z.X=!0;z.OE("pathprobe",b)}, function(b){z.h0(b.errorCode,b.details)}))}}; g.I.OE=function(B,z){this.iO.K4().OE(B,z)}; g.I.h0=function(B,z){z=Q_(z);this.iO.K4().h0(B,z)};w9.prototype.wl=function(B){var z=our(this);if(!B)return{pV:O2,oX:O2,du:O2,F9:O2,v1:O2,Tt:O2,bY:z};var T=O2;if(q$(z)||this.D("html5_perf_cap_override_sticky"))T=guz(this,B);return{pV:T,oX:a3H(this,B),du:dmK(this,B),F9:JJz(this,B.videoData),v1:pJP(this,B.videoData,B),Tt:I3X(this,B),bY:z}}; w9.prototype.ke=function(B){var z;g.Po(this.dF)&&(z=window.screen&&window.screen.width?new g.PY(window.screen.width,window.screen.height):null);z||(z=this.dF.Ic?this.dF.Ic.clone():this.k7.WV());(ED||Sp||B)&&z.scale(g.Xk());return z}; w9.prototype.D=function(B){return this.dF.D(B)};g.G(iv,g.K);iv.prototype.onError=function(B){if(B!=="player.fatalexception"||this.provider.D("html5_exception_to_health"))B==="sabr.fallback"&&(this.encounteredSabrFallback=!0),B.match(ymg)?this.networkErrorCount++:this.nonNetworkErrorCount++}; iv.prototype.send=function(){if(!(this.Y||this.T<0)){xmr(this);var B=g.sr(this.provider)-this.T,z="PLAYER_PLAYBACK_STATE_UNKNOWN",T=this.playerState.pp;this.playerState.isError()?z=T&&T.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.X(this.playerState,2)?z="PLAYER_PLAYBACK_STATE_ENDED":g.X(this.playerState,64)?z="PLAYER_PLAYBACK_STATE_UNSTARTED":g.X(this.playerState,16)||g.X(this.playerState,32)?z="PLAYER_PLAYBACK_STATE_SEEKING":g.X(this.playerState,1)&&g.X(this.playerState, 4)?z="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.X(this.playerState,1)?z="PLAYER_PLAYBACK_STATE_BUFFERING":g.X(this.playerState,4)?z="PLAYER_PLAYBACK_STATE_PAUSED":g.X(this.playerState,8)&&(z="PLAYER_PLAYBACK_STATE_PLAYING");T=o6p[d5(this.provider.videoData)];a:switch(this.provider.dF.playerCanaryState){case "canary":var R="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":R="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:R="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var h=vuY(this.provider), W=this.U<0?B:this.U-this.T;B=this.provider.dF.Gj+36E5<(0,g.f)();z={started:this.U>=0,stateAtSend:z,joinLatencySecs:W,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:R,playerCanaryStage:h,isAd:this.provider.videoData.isAd(),liveMode:T,hasDrm:!!g.IY(this.provider.videoData),isGapless:this.provider.videoData.L,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:bs(this.provider.videoData)};B||g.ip("html5PlayerHealthEvent",z);this.Y=!0;this.dispose()}}; iv.prototype.gF=function(){this.Y||this.send();window.removeEventListener("error",this.dG);window.removeEventListener("unhandledrejection",this.dG);g.K.prototype.gF.call(this)}; var ymg=/\bnet\b/;g.G(kgP,g.K);kgP.prototype.gF=function(){mml(this);g.K.prototype.gF.call(this)};var nuz=/[?&]cpn=/;g.G(cs,g.K);cs.prototype.flush=function(){var B={};this.U&&(B.pe=this.U);this.T.length>0&&(B.pt=this.T.join("."));this.T=[];return B}; cs.prototype.stop=function(){var B=this,z,T,R;return g.D(function(h){if(h.U==1)return g.AK(h,2),g.P(h,(z=B.W)==null?void 0:z.stop(),4);if(h.U!=2)return(T=h.T)&&B.logTrace(T),g.yz(h,0);R=g.JK(h);B.U=j2b(R.message);g.dX(h)})}; cs.prototype.logTrace=function(B){this.encoder.reset();this.encoder.add(1);this.encoder.add(B.resources.length);for(var z=g.d(B.resources),T=z.next();!T.done;T=z.next()){T=T.value.replace("https://www.youtube.com/s/","");this.encoder.add(T.length);for(var R=0;R=0?B:g.sr(this.provider),this.RK?g6c.has(this.mu)&&(this.T.size||(this.mu==="PL"?B>=this.U+30:B<=this.UE+30||B>=this.U+1200&&B<=this.UE+86400))&&(g.r9(this,B,"vps",[this.mu]),this.U=B):["PL","B","S"].indexOf(this.mu)>-1&&(this.T.size||B>=this.U+30)&&(g.r9(this,B,"vps",[this.mu]),this.U=B),this.T.size)){this.sequenceNumber===7E3&&g.KV(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Ig(this,B);var z=this.provider.iO.hq(); z=g.d(z);for(var T=z.next();!T.done;T=z.next())T=T.value,this.OE(T.key,T.value);z=B;T=this.provider.iO.vO();var R=T.droppedVideoFrames||0,h=T.totalVideoFrames||0,W=R-this.Dv,b=h&&!this.lN;R>T.totalVideoFrames||W>5E3?bRH(this,"html5.badframedropcount","df."+R+";tf."+T.totalVideoFrames):(W>0||b)&&g.r9(this,z,"df",[W]);this.Dv=R;this.lN=h;this.J>0&&(g.r9(this,B,"glf",[this.J]),this.J=0);lE.isActive()&&(B=lE.bS(),Object.keys(B).length>0&&this.OE("profile",B));this.Dm&&G7(this,"lwnmow");this.provider.dF.L4()&& this.provider.D("html5_record_now")&&this.OE("now",{wt:(0,g.f)()});B={};this.provider.videoData.U&&(B.fmt=this.provider.videoData.U.itag,(z=this.provider.videoData.W)&&z.itag!==B.fmt&&(B.afmt=z.itag));B.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(B.adcpn=this.adCpn);this.dO&&(B.addocid=this.dO);this.contentCpn&&(B.ccpn=this.contentCpn);this.TZ&&(B.cdocid=this.TZ);this.provider.videoData.cotn&&(B.cotn=this.provider.videoData.cotn);B.el=xh(this.provider.videoData);B.content_v=Dr(this.provider.videoData); B.ns=this.provider.dF.TZ;B.fexp=fZP(this.provider.dF.experiments).toString();B.cl=(760609635).toString();(z=this.provider.videoData.adFormat||this.adFormat)&&(B.adformat=z);(z=d5(this.provider.videoData))&&(B.live=z);this.provider.videoData.Cp()&&(B.drm=1,this.provider.videoData.V&&(B.drm_system=rmh[this.provider.videoData.V.flavor]||0),this.provider.videoData.drmProduct&&(B.drm_product=this.provider.videoData.drmProduct));qR()&&this.provider.videoData.X&&(B.ctt=this.provider.videoData.X,B.cttype= this.provider.videoData.Vr,this.provider.videoData.mdxEnvironment&&(B.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(B.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Es&&(B.dai_fallback="1")):this.provider.videoData.eF?B.dai="cs":this.provider.videoData.xf&&(B.dai="disabled");B.seq=this.sequenceNumber++;if(this.provider.videoData.HP){if(z=this.provider.videoData.HP,B&&z)for(z.ns==="3pp"&&(B.ns="3pp"),this.fF.has(z.ns)&& G7(this,"hbps"),z.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=z.shbpslc),this.provider.dF.experiments.Cf("html5_use_server_qoe_el_value")&&this.eI.delete("el"),T=g.d(Object.keys(z)),R=T.next();!R.done;R=T.next())R=R.value,this.eI.has(R)||(B[R]=z[R])}else B.event="streamingstats",B.docid=this.provider.videoData.videoId,B.ei=this.provider.videoData.eventId;this.isEmbargoed&&(B.embargoed="1");Object.assign(B,this.provider.dF.T);if(z=B.seq)z={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+z,serializedWatchEndpointLoggingContext:this.provider.videoData.xrf},this.serializedHouseBrandPlayerServiceLoggingContext&&(z.serializedHouseBrandPlayerServiceLoggingContext=lT(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(z.playerResponseCpn=this.provider.videoData.playerResponseCpn),CR.length&&(z.decoderInfo=CR),this.remoteControlMode&&(z.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(z.remoteConnectedDevices= this.remoteConnectedDevices),z=g.wz(z,pjb),z=g.bT(z,4),this.T.set("qclc",[z]);B=g.Qn("//"+this.provider.dF.Lt+"/api/stats/qoe",B);T=z="";R=g.d(this.T.entries());for(h=R.next();!h.done;h=R.next())W=g.d(h.value),h=W.next().value,W=W.next().value,b=void 0,(b=W)!=null&&b.join&&(h="&"+h+"="+W.join(","),h.length>100?T+=h:z+=h);T9H(this,B+z,T.replace(/ /g,"%20"))}this.T.clear()}}; g.I.WI=function(B){this.Dm=B}; g.I.sS=function(){if(this.provider.videoData.V){var B=this.provider.videoData.V;G7(this,"eme-"+(B.keySystemAccess?"final":uP(B)?"ms":O6(B)?"ytfp":fj(B)?"safarifp":"nonfinal"))}}; g.I.Ea=Wb(59);g.I.fk=function(B){this.isEmbargoed=B}; g.I.SZ=Wb(36);g.I.fp=Wb(42);g.I.onPlaybackRateChange=function(B){var z=g.sr(this.provider);B&&B!==this.II&&(g.r9(this,z,"rate",[B]),this.II=B);this.RK||this.reportStats(z)}; g.I.d0=Wb(30);g.I.getPlayerState=function(B){if(g.X(B,128))return"ER";if(g.X(B,2048))return"B";if(g.X(B,512))return"SU";if(g.X(B,16)||g.X(B,32))return"S";if(B.isOrWillBePlaying()&&g.X(B,64))return"B";var z=JmW[Ck(B)];g.JS(this.provider.dF)&&z==="B"&&this.provider.iO.getVisibilityState()===3&&(z="SU");z==="B"&&g.X(B,4)&&(z="PB");return z}; g.I.gF=function(){g.K.prototype.gF.call(this);g.dJ(this.WD);g.dJ(this.ra)}; g.I.hv=function(B){this.isOffline=B;g.r9(this,g.sr(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.I.OE=function(B,z,T){var R=this.pF.indexOf(B)!==-1;R||this.pF.push(B);if(!T||!R){var h=typeof z!=="string"?Q_(z):z;h=lW5(h);if(!T&&!/^t[.]/.test(h)){var W=g.sr(this.provider)*1E3;h="t."+W.toFixed()+";"+h}FI(this,"ctmp",B+":"+h);this.logger.debug(function(){return"ctmp "+B+" "+h}); R1b(this);return W}}; g.I.eg=function(B,z,T){this.V={N3K:Number(this.OE("glrem",{nst:B.toFixed(),rem:z.toFixed(),ca:+T})),M3:B,rju:z,isAd:T}}; g.I.rR=function(B,z,T){g.r9(this,g.sr(this.provider),"ad_playback",[B,z,T])}; g.I.uI=function(B,z){var T=g.sr(this.provider)*1E3;FI(this,"daism","t."+T.toFixed(0)+";smw."+(B*1E3).toFixed(0)+";smo."+(z*1E3).toFixed(0))}; g.I.resume=function(){var B=this;isNaN(this.WD)?h1d(this):this.WD=g.Ic(function(){B.reportStats()},1E4)}; var Fv={},JmW=(Fv[5]="N",Fv[-1]="N",Fv[3]="B",Fv[0]="EN",Fv[2]="PA",Fv[1]="PL",Fv[-1E3]="ER",Fv[1E3]="N",Fv),g6c=new Set(["PL","B","S"]),CR=[];qCX.prototype.update=function(){if(this.L){var B=this.Aj()||0,z=g.sr(this.provider);B>=this.provider.iO.getDuration()-.1&&(this.previouslyEnded=!0);if(B!==this.T||LOl(this,B,z)){var T;if(!(T=Bz-this.mK+2||LOl(this,B,z))){T=this.provider.iO.getVolume();var R=T!==this.N,h=this.provider.iO.isMuted()?1:0;h!==this.J?(this.J=h,T=!0):(!R||this.W>=0||(this.N=T,this.W=z),T=z-this.W,this.W>=0&&T>2?(this.W=-1,T=!0):T=!1)}T&&(UC(this),this.Y=B);this.mK=z;this.T=B}}}; qCX.prototype.Aj=function(){var B=this.provider.iO.Aj();return this.provider.dF.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&mJ(this.provider.videoData)?B+this.provider.iO.p4():B};Cvd.prototype.send=function(B){var z=this;if(!this.MG){var T=o7K(this),R=g.Qn(this.uri,T);this.dF.D("vss_through_gel_double")&&FO5(R);this.RK&&!this.dF.D("html5_simplify_pings")?aWX(this,R):reB(this,B).then(function(h){z.RK&&(h=h||{},h.method="POST",h.postParams={atr:z.attestationResponse});OpB(R,h,{token:z.UE,kH:z.O0,mdxEnvironment:z.mdxEnvironment},z.dF,B,z.XE,z.isFinal&&z.Gj||z.zZ||z.Y&&z.tj)}); this.MG=!0}}; Cvd.prototype.U=function(B){B===void 0&&(B=NaN);return Number(B.toFixed(3)).toString()}; var I1={},dNK=(I1.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,I1.LIVING_ROOM_APP_MODE_MAIN=1,I1.LIVING_ROOM_APP_MODE_KIDS=2,I1.LIVING_ROOM_APP_MODE_MUSIC=3,I1.LIVING_ROOM_APP_MODE_UNPLUGGED=4,I1.LIVING_ROOM_APP_MODE_GAMING=5,I1),GM={},G7l=(GM.EMBEDDED_PLAYER_MODE_UNKNOWN=0,GM.EMBEDDED_PLAYER_MODE_DEFAULT=1,GM.EMBEDDED_PLAYER_MODE_PFP=2,GM.EMBEDDED_PLAYER_MODE_PFL=3,GM);g.G(Vm,g.K);Vm.prototype.MQ=function(){this.T.update();$Nz(this)&&(V0l(this),QgB(this))}; Vm.prototype.gF=function(){g.K.prototype.gF.call(this);g9(this);iRb(this.T)}; Vm.prototype.NS=function(){return o7K(Qm(this,"playback"))}; Vm.prototype.X_=function(B){var z=Qm(this,"engage");z.WD=B;return IWz(z,KOb(this.provider))};k7X.prototype.isEmpty=function(){return this.endTime===this.startTime};pR.prototype.D=function(B){return this.dF.D(B)}; pR.prototype.getCurrentTime=function(){return this.iO.getCurrentTime()}; pR.prototype.Aj=function(){return this.iO.Aj()}; var mNX={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.G(g.$7,g.K);g.I=g.$7.prototype;g.I.MQ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.HV){var B;(B=this.Y.get(this.HV))==null||B.MQ()}else this.T&&this.T.MQ()}; g.I.fk=function(B){this.qoe&&this.qoe.fk(B)}; g.I.SZ=Wb(35);g.I.fp=Wb(41);g.I.uI=function(B,z){this.qoe&&this.qoe.uI(B,z)}; g.I.xr=function(){if(this.provider.videoData.enableServerStitchedDai&&this.HV){var B;(B=this.Y.get(this.HV))!=null&&UC(B.T)}else this.T&&UC(this.T.T)}; g.I.h0=function(B,z){this.qoe&&bRH(this.qoe,B,z);if(this.U)this.U.onError(B)}; g.I.onPlaybackRateChange=function(B){if(this.qoe)this.qoe.onPlaybackRateChange(B);this.T&&UC(this.T.T)}; g.I.Ea=Wb(58);g.I.OE=function(B,z,T){this.qoe&&this.qoe.OE(B,z,T)}; g.I.eg=function(B,z,T){this.qoe&&this.qoe.eg(B,z,T)}; g.I.Uy=function(B){var z;(z=this.qoe)==null||z.Uy(B)}; g.I.Ja=function(B){var z;(z=this.qoe)==null||z.Ja(B)}; g.I.WI=function(B){this.qoe&&this.qoe.WI(B)}; g.I.rR=function(B,z,T){this.qoe&&this.qoe.rR(B,z,T)}; g.I.d0=Wb(29);g.I.sF=function(){if(this.qoe)return this.qoe.sF()}; g.I.NS=function(){if(this.provider.videoData.enableServerStitchedDai&&this.HV){var B,z;return(z=(B=this.Y.get(this.HV))==null?void 0:B.NS())!=null?z:{}}return this.T?this.T.NS():{}}; g.I.sI=function(){var B;return(B=this.qoe)==null?void 0:B.sI()}; g.I.kS=function(B,z){var T;(T=this.qoe)==null||T.kS(B,z)}; g.I.X_=function(B){return this.T?this.T.X_(B):function(){}}; g.I.getVideoData=function(){return this.provider.videoData}; g.I.resume=function(){this.qoe&&this.qoe.resume()};g.G(vs,g.K);vs.prototype.JL=function(){if(this.T.has(void 0)){var B=this.T.get(void 0);if(!(void 0).videoId||B.T&&B.qoe)return;this.T.has(void 0)&&(ORl(this.T.get(void 0)),this.T.delete(void 0))}if(!this.T.has(void 0)){B=new pR(void 0,this.dF,this.iO);var z=Math.round(Ps(this.U)*1E3);B=new g.$7(B,z);B.T&&B.qoe||this.U.OE("nqv",{vv:(void 0).videoId});z=this.U.getVideoData();this.T.set(void 0,B);if(B.qoe){var T=B.qoe,R=z.videoId||"";T.contentCpn=z.clientPlaybackNonce;T.TZ=R}n7B(B)}}; vs.prototype.DB=function(B){if(B!==void 0){var z=this.K4(B),T=this.K4(),R,h=B===((R=z.getVideoData())==null?void 0:R.clientPlaybackNonce),W;R=void 0===((W=T.getVideoData())==null?void 0:W.clientPlaybackNonce);var b;W=h?((b=z.getVideoData())==null?void 0:b.videoId)||"":"nvd";var l;b=R?((l=T.getVideoData())==null?void 0:l.videoId)||"":"nvd";h&&(z=z.qoe)!=null&&(Ae(z,4,0,void 0,b),z.reportStats());R&&(x7(T),(z=T.qoe)!=null&&(Ae(z,4,1,B,W),z.reportStats()),fWY(T,new g.IS(void 0,T.mu)),uIK(T))}}; vs.prototype.K4=function(B){B=B||this.HV;return this.T.get(B)||this.U};g.G(g.DW,g.K);g.I=g.DW.prototype;g.I.A$=function(B,z){this.sync();z&&this.T.array.length>=2E3&&this.u4("captions",1E4);z=this.T;if(B.length>1&&B.length>z.array.length)z.array=z.array.concat(B),z.array.sort(z.T);else{B=g.d(B);for(var T=B.next();!T.done;T=B.next())T=T.value,!z.array.length||z.T(T,z.array[z.array.length-1])>0?z.array.push(T):g.kP(z.array,T,z.T)}this.Y=NaN;this.sync()}; g.I.w2=function(B){B.length>1E4&&g.KV(new g.Z_("Over 10k cueRanges removal occurs with a sample: ",B[0]));if(!this.xd()){var z=new Set(B);this.U=this.U.filter(function(T){return!z.has(T)}); zDb(this.T,z);this.sync()}}; g.I.u4=function(B,z){var T=(isNaN(this.Y)?g.X(this.iO.getPlayerState(),2)?0x8000000000000:this.iO.getCurrentTime()*1E3:this.Y)-z;z=this.Zn().filter(function(R){return R.namespace===B&&R.endthis.T,W=g.X(T,8)&&g.X(T,16),b=this.iO.Jf().isBackground()||T.isSuspended();te(this,this.MG,W&&!b,h,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.T);l=W&&l&&fwz(z,this.T);var w=!R||Math.abs(R-this.T)>10,q=this.dF.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),c=R===0&&this.U&&[11,10].includes(this.U);te(this,this.eI,l&&w&&!b&&(!q||!c),h,"qoe.slowseek",function(){z.seekTo(B.T)},"set_cmt"); w=l&&wN(z.Ao(),this.T);var L=this.iO.loader;l=!L||L.AT();var C=function(){z.seekTo(B.T+.001)}; te(this,this.lO,w&&l&&!b,h,"qoe.slowseek",C,"jiggle_cmt");l=function(){return B.iO.wD()}; te(this,this.IK,w&&!b,h,"qoe.slowseek",l,"new_elem");w=Lk(T);q=T.isBuffering();var r=z.Ao(),F=lr(r,R),A=F>=0&&r.end(F)>R+5,a=w&&q&&A;c=this.iO.getVideoData();te(this,this.cD,R<.002&&this.T<.002&&W&&g.JS(this.dF)&&g.vx(c)&&!b,h,"qoe.slowseek",l,"slow_seek_shorts");te(this,this.N,c.mP()&&W&&!b&&!c.zZ,h,"qoe.slowseek",l,"slow_seek_gapless_shorts");te(this,this.UE,a&&!b,w&&!q,"qoe.longrebuffer",C,"jiggle_cmt");te(this,this.WD,a&&!b,w&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(L){var V=L.getCurrentTime(); W=z.ZC();W=$kP(W,V);W=!L.isSeeking()&&R===W;te(this,this.O0,w&&q&&W&&!b,w&&!q&&!W,"qoe.longrebuffer",function(){z.seekTo(V)},"seek_to_loader")}W={}; C=lr(r,Math.max(R-3.5,0));a=C>=0&&R>r.end(C)-1.1;var M=C>=0&&C+1=0&&a&&M<11;W.close2edge=a;W.gapsize=M;W.buflen=r.length;this.U&&(W.seekSour=this.U);te(this,this.RK,w&&q&&!b,w&&!q,"qoe.longrebuffer",function(){},"timeout",W); W=T.isSuspended();W=this.iO.Xq()&&!W;te(this,this.L,W,!W,"qoe.start15s",function(){B.iO.YO("ad")},"ads_preroll_timeout"); W=this.dF.experiments.Cf("html5_use_playback_rate_in_skip_slow_ad")?this.iO.getPlaybackRate()*1E3:1E3;F=R-this.W5;te(this,this.sE,g.vx(c)&&L,w&&!q,"qoe.longrebuffer",function(){B.iO.rY()},"reset_media_source"); te(this,this.Kf,g.vx(c)&&L,w&&!q,"qoe.longrebuffer",l,"reset_media_element");this.W===0&&(this.X=R);L=q&&this.T===0&&R>1&&R===this.X;te(this,this.zZ,g.vx(c)&&L,w&&!q,"qoe.slowseek",function(){z.seekTo(0)},"reseek_after_time_jump"); b=T.isOrWillBePlaying()&&!b;A=this.iO.Iq()-R<6&&!A&&this.iO.TU();te(this,this.J,c.mP()&&b&&q&&A,w&&!q,"qoe.longrebuffer",function(){B.iO.wD(!1,!0)},"handoff_end_long_buffer_reload"); T=RY(c)&&this.U===104&&b&&(q||g.X(T,8)&&g.X(T,16));te(this,this.TZ,T,h,"qoe.start15s",l,"gapless_slow_start");this.W=R;this.V.start()}}; NN.prototype.h0=function(B,z,T){z=this.NS(z);z.wn=T;z.wdup=this.Y[B]?"1":"0";this.iO.h0(new y_(B,z));this.Y[B]=!0}; NN.prototype.NS=function(B){B=Object.assign(this.iO.NS(!0),B.NS());this.T&&(B.stt=this.T.toFixed(3));this.iO.getVideoData().isLivePlayback&&(B.ct=this.iO.getCurrentTime().toFixed(3),B.to=this.iO.p4().toFixed(3));delete B.uga;delete B.euri;delete B.referrer;delete B.fexp;delete B.vm;return B}; fR.prototype.reset=function(){this.T=this.U=this.Y=this.startTimestamp=0;this.W=!1}; fR.prototype.test=function(B){if(!this.V||this.U)return!1;if(!B)return this.reset(),!1;B=(0,g.f)();if(!this.startTimestamp)this.startTimestamp=B,this.Y=0;else if(this.Y>=this.V)return this.U=B,!0;this.Y+=1;return!1}; fR.prototype.NS=function(){var B={},z=(0,g.f)();this.startTimestamp&&(B.wsd=(z-this.startTimestamp).toFixed());this.U&&(B.wtd=(z-this.U).toFixed());this.T&&(B.wssd=(z-this.T).toFixed());return B};g.G(A0z,g.K);g.I=A0z.prototype;g.I.setMediaElement=function(B){(this.mediaElement=B)?(this.mediaElement&&(this.V||this.Y||!this.mediaElement.Zi()||this.seekTo(.01,{Dx:"seektimeline_setupMediaElement"})),j0(this)):ZW(this)}; g.I.getCurrentTime=function(){if(XI(this.iO)){if(!isNaN(this.U))return this.U}else if(!isNaN(this.U)&&isFinite(this.U))return this.U;return this.mediaElement&&Dzz(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Y||0}; g.I.mO=function(){return this.MG}; g.I.Aj=function(){return this.getCurrentTime()-this.p4()}; g.I.ye=function(){return this.T?this.T.ye():Infinity}; g.I.isAtLiveHead=function(B){if(!this.T)return!1;B===void 0&&(B=this.getCurrentTime());return uv(this.T,B)}; g.I.GX=function(){return!!this.T&&this.T.GX()}; g.I.seekTo=function(B,z){var T=z===void 0?{}:z;z=T.WR===void 0?!1:T.WR;var R=T.UP===void 0?0:T.UP;var h=T.eE===void 0?!1:T.eE;var W=T.aW===void 0?0:T.aW;var b=T.Dx===void 0?"":T.Dx;var l=T.seekSource===void 0?void 0:T.seekSource;var w=T.MV===void 0?!1:T.MV;var q=T.bI===void 0?!1:T.bI;T=T.hH===void 0?!1:T.hH;w&&(B+=this.p4());bs(this.videoData)&&l===29&&(this.MG=void 0);w=B=this.D4())||!g.Ve(this.videoData),c||(A={st:A,mst:this.D4()},this.T&&this.D("html5_high_res_seek_logging")&&(A.ht=this.T.ye(),A.adft=CCY(this.T)),this.iO.OE("seeknotallowed",A)),A=c));if(!A)return this.W&&(this.W=null,PCr(this)),g.gW(this.getCurrentTime());A=.005;q&&this.D("html5_sabr_seek_no_shift_tolerance")&&(A=0);if(Math.abs(B-this.U)<=A&&this.WD)return this.V;b&&(A=B,(this.dF.L4()||this.D("html5_log_seek_reasons"))&&this.iO.OE("seekreason",{reason:b, tgt:A}));l&&(this.N.U=l);this.WD&&ZW(this);this.V||(this.V=new Bq);B&&!isFinite(B)&&Vyl(this,!1);(b=T||w)||(b=B,b=!(this.videoData.isLivePlayback&&this.videoData.Y&&!this.videoData.Y.T&&!(this.mediaElement&&this.mediaElement.V_()>0&&T2(this.mediaElement)>0)||is(this.videoData)&&this.NW()===this.D4(!1)?0:isFinite(b)||!is(this.videoData)));b||(B=sC(this,B,h));B&&!isFinite(B)&&Vyl(this,!1);this.Y=B;this.IK=W;this.U=B;this.X=0;this.T&&(h=this.T,W=B,r0r(h,W,!1),oJl(h,W));h=this.iO;W=B;b={WR:z,seekSource:l}; h.zz.Y=W;T=h.s3;T.mediaTime=W;T.T=!0;b.WR&&h.dN(b);b=W>h.videoData.endSeconds&&W>h.videoData.limitedPlaybackDurationInSeconds;h.SG&&b&&isFinite(W)&&L2Y(h);Wz.start&&L2Y(this.iO);return this.V}; g.I.D4=function(B){if(!this.videoData.isLivePlayback)return this.iO.videoData.D4();var z;return X1(this.videoData)&&((z=this.mediaElement)==null?0:z.isPaused())&&this.videoData.T?(B=this.getCurrentTime(),gmr(this.gt(B)*1E3)+B):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&bs(this.videoData)&&this.videoData.T?B?this.videoData.T.UE||0:this.videoData.T.Q_||0:is(this.videoData)&&this.videoData.TZ&&this.videoData.T?this.videoData.T.D4()+this.timestampOffset:this.videoData.Y&&this.videoData.Y.T? !B&&this.T?this.T.ye():this.iO.videoData.D4()+this.timestampOffset:this.mediaElement?XN()?gmr(this.mediaElement.nS().getTime()):T2(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.I.NW=function(){if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&bs(this.videoData)){var B;return((B=this.videoData.T)==null?void 0:B.Eg)||0}B=this.videoData?this.videoData.NW()+this.timestampOffset:this.timestampOffset;if(X1(this.videoData)&&this.videoData.T){var z,T=Number((z=this.videoData.progressBarStartPosition)==null?void 0:z.utcTimeMillis)/1E3;z=this.getCurrentTime();z=this.gt(z)-z;if(!isNaN(T)&&!isNaN(z))return Math.max(B,T-z)}return B}; g.I.eT=function(){this.V||this.seekTo(this.Y,{Dx:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.I.DE=function(){return this.WD&&!isFinite(this.U)}; g.I.gF=function(){Q4X(this,null);this.N.dispose();g.K.prototype.gF.call(this)}; g.I.NS=function(){var B={};this.loader&&Object.assign(B,this.loader.NS());this.mediaElement&&Object.assign(B,this.mediaElement.NS());return B}; g.I.fO=function(B){this.timestampOffset=B}; g.I.getStreamTimeOffset=function(){return is(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.I.p4=function(){return this.timestampOffset}; g.I.gt=function(B){return this.videoData&&this.videoData.T?this.videoData.T.gt(B-this.timestampOffset):NaN}; g.I.tT=function(){if(!this.mediaElement)return 0;if(Qe(this.videoData)){var B=this.mediaElement,z=B.Ao();B=(cn(z)&&B.getDuration()?z.end(z.length-1):0)+this.timestampOffset-this.NW();z=this.D4()-this.NW();return Math.max(0,Math.min(1,B/z))}return this.mediaElement.tT()}; g.I.Ss=function(B){this.L&&(this.L.T=B)}; g.I.tb=function(B,z){this.iO.OE("requestUtcSeek",{time:B});bs(this.videoData)&&(this.MG=B);var T;(T=this.loader)==null||T.tb(B);z&&(this.RK=z)}; g.I.nT=function(B){bs(this.videoData)&&(this.MG=void 0);if(this.RK)this.iO.OE("utcSeekingFallback",{source:"streamTime",timeSeconds:this.RK}),this.iO.seekTo(this.RK,{Dx:"utcSeekingFallback_streamTime"}),this.RK=0;else{var z=this.getCurrentTime();isNaN(z)||(B=this.gt(z)-B,z-=B,this.iO.OE("utcSeekingFallback",{source:"estimate",timeSeconds:z}),this.iO.seekTo(z,{Dx:"utcSeekingFallback_estimate"}))}}; g.I.Am=function(){this.RK=0}; g.I.D=function(B){return this.dF&&this.dF.D(B)};g.G(EC,g.K);EC.prototype.start=function(){this.U.start()}; EC.prototype.stop=function(){this.U.stop()}; EC.prototype.clear=function(){for(var B=g.d(this.T.values()),z=B.next();!z.done;z=B.next())z.value.clear()}; EC.prototype.sample=function(){for(var B=g.d(this.Y),z=B.next();!z.done;z=B.next()){var T=g.d(z.value);z=T.next().value;T=T.next().value;this.T.has(z)||this.T.set(z,new HnX(ptP.has(z)));this.T.get(z).update(T())}this.U.start()}; var ptP=new Set(["networkactivity"]);HnX.prototype.update=function(B){this.U?(this.buffer.add(B-this.T||0),this.T=B):this.buffer.add(B)}; HnX.prototype.clear=function(){this.buffer.clear();this.T=0};zr.prototype.Qy=function(){return this.started}; zr.prototype.start=function(){this.started=!0}; zr.prototype.reset=function(){this.finished=this.started=!1};var j4b=!1;g.G(g.WB,g.Cl);g.I=g.WB.prototype;g.I.gF=function(){this.logger.debug("dispose");g.dJ(this.p9);Buz(this.UJ);this.visibility.unsubscribe("visibilitystatechange",this.UJ);W2H(this);lC(this);g.fi.Xg(this.hM);this.Fl();this.K2=null;g.c6(this.videoData);g.c6(this.xo);g.c6(this.yh);g.c6(this.I0);g.Lq(this.sKi);this.SG=null;g.Cl.prototype.gF.call(this)}; g.I.rR=function(B,z,T,R,h){if(this.dF.D("html5_log_ad_playback_docid")){var W=this.K4();if(W.qoe){W=W.qoe;var b=this.dF.TZ||"yt";g.r9(W,g.sr(W.provider),"ad_playback",[B,z,T,h,b])}}else this.K4().rR(B,z,T);this.D("html5_log_media_perf_info")&&this.OE("adloudness",{ld:R.toFixed(3),cpn:B})}; g.I.pw=function(){var B;return(B=this.loader)==null?void 0:B.pw()}; g.I.St=function(){var B;return(B=this.loader)==null?void 0:B.St()}; g.I.RT=function(){var B;return(B=this.loader)==null?void 0:B.RT()}; g.I.UR=function(){var B;return(B=this.loader)==null?void 0:B.UR()}; g.I.Cp=function(){return this.videoData.Cp()}; g.I.g0=function(){return this.D("html5_not_reset_media_source")&&!this.Cp()&&!this.videoData.isLivePlayback&&g.vx(this.videoData)&&!this.dF.supportsGaplessShorts()}; g.I.Ew=function(){this.videoData.L&&(this.videoData.YD=this.videoData.YD||this.xi.Ji().pw(),this.videoData.nL=this.videoData.nL||this.xi.Ji().St());if(FIz(this.videoData)||!tu(this.videoData)){var B=this.videoData.errorDetail;this.jD(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),B,B,this.videoData.AQ||void 0)}this.D("html5_generate_content_po_token")&&this.jy();this.D("html5_enable_d6de4")&&this.CD()}; g.I.nR=function(){return this.zT}; g.I.JL=function(){!this.F5||this.F5.xd();this.F5=new g.$7(new pR(this.videoData,this.dF,this));this.dF.D("html5_ssap_logging_manager_cleanup")||(this.zT=new vs(this.dF,this,this.F5))}; g.I.getVideoData=function(){return this.videoData}; g.I.K=function(){return this.dF}; g.I.wl=function(){return this.CY.wl(this.K2)}; g.I.K4=function(B){if(this.dF.D("html5_ssap_logging_manager_cleanup"))B=this.F5;else if(B)a:{for(var z=this.zT,T=g.d(z.T.values()),R=T.next();!R.done;R=T.next())if(R=R.value,R.getVideoData().videoId===B){B=R;break a}B=z.U}else B=this.zT.K4();return B}; g.I.Jf=function(){return this.visibility}; g.I.Nd=function(){return this.mediaElement&&this.mediaElement.HU()?this.mediaElement.jk():null}; g.I.Wu=function(){return this.mediaElement}; g.I.Vv=function(){if(this.D("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.K().X&&this.K().houseBrandUserStatus&&this.OE("hbut",{status:this.K().houseBrandUserStatus});if(this.videoData.u1())return!0;this.jD("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.I.Ab=function(B){(B=B===void 0?!1:B)||x7(this.K4());this.YS=B;!this.Vv()||this.qB.Qy()?g.JS(this.dF)&&this.videoData.isLivePlayback&&this.qB.Qy()&&!this.qB.finished&&!this.YS&&this.e$():(this.qB.start(),B=this.K4(),Ps(B),B.qoe&&h1d(B.qoe),this.e$())}; g.I.e$=function(){if(this.videoData.isLoaded()){var B=this.xo;g.rk(B.bO.experiments,"html5_player_min_build_cl")>0&&g.rk(B.bO.experiments,"html5_player_min_build_cl")>760609635&&qrH(B,"oldplayer");wHz(this)}else this.videoData.Mg||this.videoData.P8?this.YS&&g.JS(this.dF)&&this.videoData.isLivePlayback||(this.videoData.Mg?z$B(this.videoData):(B=this.K4(),B.qoe&&(B=B.qoe,G7(B,"protected"),B.provider.videoData.V?B.sS():B.provider.videoData.subscribe("dataloaded",B.sS,B)),eTK(this.videoData))):!this.videoData.loading&& this.Px&&buz(this)}; g.I.t2=function(B){this.KF=B;this.loader&&(enK(this.loader,new g.Er(B)),this.OE("sdai",{sdsstm:1}))}; g.I.Sj=function(){return null}; g.I.Tr=Wb(16);g.I.isFullscreen=function(){return this.visibility.isFullscreen()}; g.I.isBackground=function(){return this.visibility.isBackground()}; g.I.B_=function(){var B=this;this.logger.debug("Updating for format change");bC(this).then(function(){return h0(B)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.I.hn=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Ab();this.Vv()&&!g.X(this.playerState,128)&&(this.yZ.Qy()||(this.yZ.start(),this.videoData.g2?this.Oi(we(this.playerState,4)):this.Oi(we(we(this.playerState,8),1))),YkB(this))}; g.I.V8=function(){return this.qB.finished}; g.I.sendAbandonmentPing=function(){g.X(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.zB(!0),W2H(this),g.fi.Xg(this.hM))}; g.I.E_=function(B,z){B=B===void 0?!0:B;(z===void 0||z)&&this.mediaElement&&this.mediaElement.pause();this.Oi(B?new g.b5(14):new g.b5)}; g.I.TI=function(){this.K4().xr()}; g.I.jD=function(B,z,T,R,h,W){this.logger.debug(function(){return"set player error: ec="+B+", detail="+h}); var b,l;g.ec(fVh,T)?b=T:T?l=T:b="GENERIC_WITHOUT_LINK";R=(R||"")+(";a6s."+Lv());if(B==="auth"||B==="drm.auth"||B==="heartbeat.stop")T&&(R+=";r."+T.replaceAll(" ","_")),W&&(R+="sr."+W.replaceAll(" ","_"));z={errorCode:B,errorDetail:h,errorMessage:l||g.uX[b]||"",Hj:b,AQ:W||"",E8:R,pJ:z,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=B;YJ(this,"dataloaderror");this.Oi(l5(this.playerState,128,z));g.fi.Xg(this.hM);lC(this);this.A6()}; g.I.YO=function(B){this.oT=this.oT.filter(function(z){return B!==z}); this.logger.debug(function(){return"set preroll ready for "+B}); this.yZ.Qy()&&YkB(this)}; g.I.SQ=function(){var B;(B=!!this.oT.length)||(B=this.GR.T.array[0],B=!!B&&B.start<=-0x8000000000000);return B}; g.I.GX=function(){return this.zz.GX()}; g.I.isPlaying=function(){return this.playerState.isPlaying()}; g.I.O_=function(){return this.playerState.O_()&&this.videoData.g2}; g.I.getPlayerState=function(){return this.playerState}; g.I.fG=function(B){var z;(z=this.loader)==null||z.fG(B)}; g.I.oO=function(B){var z;(z=this.loader)==null||z.oO(B)}; g.I.getPlayerType=function(){return this.playerType}; g.I.getPreferredQuality=function(){if(this.K2){var B=this.K2;B=B.videoData.SE.compose(B.videoData.Zq);B=cK(B)}else B="auto";return B}; g.I.Dy=Wb(22);g.I.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.I.setMediaElement=function(B){this.logger.debug("set media element");if(this.mediaElement&&B.jk()===this.mediaElement.jk()&&(B.isView()||this.mediaElement.isView())){if(B.isView()||!this.mediaElement.isView())this.yb(),this.mediaElement=B,this.mediaElement.iO=this,VtB(this),this.zz.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Fl();if(!this.playerState.isError()){var z=q5(this.playerState,512);g.X(z,8)&&!g.X(z,2)&&(z=we(z,1));B.isView()&&(z=q5(z,64));this.Oi(z)}this.mediaElement= B;this.mediaElement.iO=this;!g.JS(this.dF)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);VtB(this);this.zz.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.xo.H6()&&mkK(this.mediaElement)}}; g.I.Fl=function(B,z,T){B=B===void 0?!1:B;z=z===void 0?!1:z;T=T===void 0?!1:T;this.logger.debug("remove media element");if(this.mediaElement){var R=this.getCurrentTime();R>0&&(this.zz.Y=R);this.zz.setMediaElement(null);!B&&this.g0()?dbB(this):this.wV(T);this.loader&&(Nm(this.loader),cB(this,z));this.D5.stop();if(this.mediaElement&&(!this.yZ.Qy()&&!this.Xq()||this.playerState.isError()||g.X(this.playerState,2)||this.Oi(we(this.playerState,512)),this.mediaElement)){this.yb();if(B||!this.mediaElement.isView())this.n4.BU("mesv_s"), this.mediaElement.stopVideo(),Ln(this);this.mediaElement=this.mediaElement.iO=null}}}; g.I.playVideo=function(B,z){B=B===void 0?!1:B;z=z===void 0?!1:z;var T=this,R,h,W,b,l,w;return g.D(function(q){if(q.U==1){T.logger.debug("start play video");var c=window.google_image_requests;c&&c.length>10&&(window.google_image_requests=c.slice(-10));if(g.X(T.playerState,128))return q.return();if(T.xo.Ou())return T.publish("signatureexpired"),q.return();T.mediaElement&&x7(T.K4());T.hn();(g.X(T.playerState,64)||B)&&T.Oi(we(T.playerState,8));return T.yZ.finished&&T.mediaElement?T.K2||!T.FI?q.jI(2): g.P(q,T.FI,3):q.return()}if(q.U!=2&&g.X(T.playerState,128))return q.return();if(!T.videoData.Y)return T.videoData.isLivePlayback&&!g.hq(T.dF.V,!0)?(R="html5.unsupportedlive",h=2):(R=T.videoData.Cp()?"fmt.unplayable":"fmt.noneavailable",h=1),g.KV(Error("selectableFormats")),T.jD(R,h,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),q.return();if(T.dE()&&T.videoData.Y.T)return T.logger.debug("rebuild playbackData for airplay"),q.return(bC(T));if(XI(T))c=T.zz,qp(c.videoData)&&!c.isAtLiveHead(c.getCurrentTime())&& c.GX()&&c.iO.seekTo(Infinity,{Dx:"seektimeline_peggedToLive",seekSource:34});else if(qp(T.videoData)&&(W=T.getCurrentTime()b;if(!l||!b){W&&l&&(R=Math.max(R,W));var w;W=Fod(z,(w=h.T)==null?void 0:w.videoInfos);w=z.iO.getPlaybackRate();w>1&&W&&(w=jDr(z.dF.V,h.T.videoInfos,w),B.T!==0&& w=480;if(z.D("html5_exponential_memory_for_sticky")){q=z.dF.Ip;c=1;var L=L===void 0?!1:L;wTd(q,"sticky-lifetime");q.values["sticky-lifetime"]&&q.EU["sticky-lifetime"]||(q.values["sticky-lifetime"]=0,q.EU["sticky-lifetime"]=0);L&&an(q,"sticky-lifetime")>.0625&&(c=q.EU["sticky-lifetime"]*2); q.values["sticky-lifetime"]+=1*Math.pow(2,q.T/c);q.EU["sticky-lifetime"]=c;q.W.start()}if(z.D("html5_perf_cap_override_sticky")){L=z.Y;q=z.D("html5_perserve_av1_perf_cap");q=q===void 0?!1:q;if(q===void 0?0:q){c=Nh();B=g.d(Object.keys(c));for(z=B.next();!z.done;z=B.next())z=z.value,z.indexOf("1")!==0&&delete c[z];g.D_("yt-player-performance-cap",c,2592E3)}else g.KD("yt-player-performance-cap");jVz(q);if(q){q=g.d(D6.keys());for(c=q.next();!c.done;c=q.next())c=c.value,c.startsWith("1")||D6.delete(c); q=g.d(qN.values());for(c=q.next();!c.done;c=q.next())c=c.value,c.startsWith("1")||qN.delete(c);q=g.d(L.keys());for(c=q.next();!c.done;c=q.next())c=c.value,c.startsWith("1")||L.delete(c)}else D6.clear(),qN.clear(),L.clear()}}}this.loader&&(L=this.loader,T=T||"",L.policy.T?t$(L.W.T,T):t$(L.T.V,T));this.jG()}; g.I.getUserPlaybackQualityPreference=function(){return this.videoData.Y&&!this.videoData.Y.T?cK(this.videoData.SE):ia[fX()]}; g.I.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.I.setUserAudio51Preference=function(B,z){this.getUserAudio51Preference()!==B&&(this.OE("toggle51",{pref:B}),g.D_("yt-player-audio51",B,z?31536E3:2592E3),this.B_())}; g.I.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.I.setProximaLatencyPreference=function(B){var z=this.getProximaLatencyPreference();this.OE("proxima",{pref:B});g.D_("yt-player-proxima-pref",B,31536E3);z!==B&&(B=this.zz,B.eI=!0,B.iO.seekTo(Infinity,{Dx:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.I.getProximaLatencyPreference=function(){var B;return(B=OQ())!=null?B:0}; g.I.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.I.jy=function(){this.videoData.videoId?this.xi.jy(this.videoData):this.OE("povid",{})}; g.I.CD=function(){this.videoData.videoId?this.xi.CD(this.videoData):this.OE("piavid",{})}; g.I.jG=function(){if(!this.xd()&&!g.X(this.playerState,128)&&this.videoData.Y){if(this.videoData.Y.T)R4(this);else{var B=iC(this),z=this.videoData;a:{var T=this.videoData.t0;if(B.T){for(var R=g.d(T),h=R.next();!h.done;h=R.next()){h=h.value;var W=h.getInfo(),b=g.nW[W.video.quality];if((!B.Y||W.video.quality!=="auto")&&b<=B.T){T=h;break a}}T=T[T.length-1]}else T=T[0]}z.sE=T;CXK(this,B.reason,glK(this,this.videoData.sE))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.zz.J= !1,this.playVideo()}}; g.I.r4=function(B,z){if(this.xd()||g.X(this.playerState,128))return!1;var T,R=!((T=this.videoData.Y)==null||!T.T);T=R&&z?this.getCurrentTime()-this.p4():NaN;if(this.dF.experiments.Cf("html5_record_audio_format_intent")){var h=this.K4();if(h.qoe){h=h.qoe;var W=[B.HB.id,isNaN(T)?"m":"t"];g.r9(h,g.sr(h.provider),"afi",W)}}if(R)return z&&(R=gJz(this.zz),this.OE("aswh",{id:B.id,xtags:B.xtags,bh:R.toFixed(3)})),this.loader.setAudioTrack(B,T,z),!0;if(olH(this)){a:{z=this.mediaElement.audioTracks();for(R= 0;R=0?B:this.getCurrentTime()}; g.I.gt=function(){var B;return((B=this.videoData.T)==null?0:B.gt)?this.videoData.T.gt(this.getCurrentTime()-this.p4()):this.mediaElement&&(B=this.mediaElement.nS())&&(B=B.getTime(),!isNaN(B))?B/1E3+this.getCurrentTime():NaN}; g.I.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.p4():this.D4()?this.D4():0}; g.I.EF=function(){var B=new XsB;if(this.loader){var z=this.dF.schedule,T=this.dF.L4();T=T===void 0?!1:T;B.k$=z.WD;B.jR=z.IK;B.bandwidthEstimate=dP(z);if(T){T=(z.J.EJ()*1E3).toFixed();var R=(z.XE.EJ()*1E3).toFixed(),h=Fk(z).toFixed(2),W=((z.L.EJ()||0)*1E9).toFixed(2),b=z.Y.EJ().toFixed(0),l=z.zZ.EJ().toFixed(0),w=z.N.percentile(.5).toFixed(2),q=z.N.percentile(.92).toFixed(2),c=z.N.percentile(.96).toFixed(2),L=z.N.percentile(.98).toFixed(2);z.T?z.T.reset():z.T=new lq;z.T.add(z.RK);z.T.add(z.interruptions.length); for(var C=0,r=z.interruptions.length-1;r>=0;r--){var F=z.interruptions[r];z.T.add(F-C);C=F}C=0;for(r=z.W.length-1;r>=0;r--){F=z.W[r];var A=F.stamp/36E5;z.T.add(A-C);C=A;z.T.add(F.net/1E3);z.T.add(F.max)}z=z.T.Y0();B.T={ttr:T,ttm:R,d:h,st:W,bw:b,abw:l,v50:w,v92:q,v96:c,v98:L,"int":z}}Ztb(this.loader,B)}else this.mediaElement&&(B.b2=RD(this.mediaElement));B.k$=this.k$;B.jR=this.jR;B.Y=this.isAtLiveHead()&&this.isPlaying()?RXX(this):NaN;return B}; g.I.My=function(B,z){this.jR+=B;this.k$+=z}; g.I.tT=function(){return this.mediaElement?g.Ve(this.videoData)?1:Qe(this.videoData)?this.isAtLiveHead()||this.GX()?1:this.zz.tT():this.mediaElement.tT():0}; g.I.hF=function(){var B=this.un,z=BB(B,"bandwidth"),T=BB(B,"bufferhealth"),R=BB(B,"livelatency"),h=BB(B,"networkactivity"),W=S0(B,"bandwidth"),b=S0(B,"bufferhealth"),l=S0(B,"livelatency");B=S0(B,"networkactivity");var w=this.vO(),q=w.droppedVideoFrames;w=w.totalVideoFrames;var c=this.getCurrentTime();if(this.kL){var L="IT/"+(this.kL.T.getInfo()+"/"+cK(this.Gi()));L+="/"+this.kL.getInfo()}else L="";var C=this.isGapless(),r=this.jw(),F=this.sF(),A=g.qz(this),a=this.getPlayerState(),V=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var M=0;var x="";if(this.KF){if(this.KF.Gn){x="D,";break a}M=this.KF.e8;x=this.KF.xL.substring(0,4)}M>0?(M="AD"+M+", ",x&&(M+=x+", "),x=M):x=""}return{gB:W,Yt:b,currentTime:c,jS:L,droppedVideoFrames:q,isGapless:C,jw:r,Hf:F,ET:z,wc:T,aH:R,vL:h,Tv:l,mx:B,tG:A,playerState:a,fV:V,Lr:x,totalVideoFrames:w}}; g.I.NS=function(B){var z={};if(B===void 0?0:B){Object.assign(z,this.K4().NS());this.mediaElement&&(Object.assign(z,this.mediaElement.NS()),B=this.vO(),z.dvf=B.droppedVideoFrames,z.tvf=B.totalVideoFrames);this.loader&&Object.assign(z,this.loader.NS());this.kL&&(z.drm=JSON.stringify(this.kL.NS()));z.state=this.playerState.state.toString(16);g.X(this.playerState,128)&&(z.debug_error=JSON.stringify(this.playerState.pp));this.SQ()&&(z.prerolls=this.oT.join(","));this.videoData.II&&(z.ismb=this.videoData.II); this.videoData.latencyClass!=="UNKNOWN"&&(z.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(z.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)z.is_mosaic=1;this.videoData.cotn&&(z.is_offline=1,z.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(z.playerResponseCpn=this.videoData.playerResponseCpn);this.xi.isOrchestrationLeader()&&(z.leader=1);this.videoData.isLivePlayback&& (this.videoData.T&&g_(this.videoData.T)&&(z.segduration=g_(this.videoData.T)),B=this.zz,z.lat=B.L?lA5(B.L.W):0,z.liveutcstart=this.videoData.liveUtcStartSeconds);z.relative_loudness=this.videoData.pF.toFixed(3);if(B=g.qz(this))z.optimal_format=B.video.qualityLabel;z.user_qual=fX();z.release_version=Y[35]}z.debug_videoId=this.videoData.videoId;return z}; g.I.addCueRange=function(B){this.Vc([B])}; g.I.removeCueRange=function(B){this.GR.w2([B])}; g.I.UC=function(){this.GR.sync()}; g.I.u4=function(B,z){return this.GR.u4(B,z)}; g.I.Vc=function(B,z){this.GR.A$(B,z)}; g.I.Q4=function(B){this.GR.w2(B)}; g.I.Zn=function(){return this.GR.Zn()||[]}; g.I.Y1=function(){return this.Bh}; g.I.dE=function(){return this.visibility.dE()}; g.I.ZP=function(){this.mediaElement&&this.mediaElement.ZP()}; g.I.puu=function(){YJ(this)}; g.I.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.I.yb=function(){g.$K(this.Ap)}; g.I.sIm=function(){this.l$();this.publish("onLoadProgress",this.tT())}; g.I.qY=function(B){var z=B.target.gs();if(this.mediaElement&&this.mediaElement.gs()&&this.mediaElement.gs()===z){Dbz(this,B.type);switch(B.type){case "error":var T=Wq(this.mediaElement)||"",R=this.mediaElement.B4();if(T==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.OE("capchg",{msg:R}),this.wD(!0)):bC(this);return}if(this.mediaElement.hasError()&&bpY(this.xo,T,{msg:R}))return;if(this.isBackground()&&this.mediaElement.Sz()===4){this.A6();wp(this,"unplayable");return}break; case "durationchange":T=this.mediaElement.getDuration();isFinite(T)&&(!this.GZ||T>0)&&T!==1&&this.YB(T);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());TpP(this.GR);this.K4().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":K2l(this);this.publish("onLoadedMetadata");y55(this);T=this.gt();this.videoData.q7&&(this.videoData.q7=T);break;case "loadstart":y55(this);break;case "progress":case "suspend":this.bl.XY();break;case "playing":this.n4.BU("plev"); this.Tf&&!XI(this)&&(this.Tf=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Dx:"videoplayer_onPlaying"})));break;case "timeupdate":T=this.mediaElement&&!this.mediaElement.getCurrentTime();R=this.mediaElement&&this.mediaElement.V_()===0;if(T&&(!this.fB||R))return;this.fB=this.fB||!!this.mediaElement.getCurrentTime();Q$r(this);this.l$();if(!this.mediaElement||this.mediaElement.gs()!==z)return;this.publish("onVideoProgress",this.getCurrentTime());break; case "waiting":if(this.mediaElement.ZC().length>0&&this.mediaElement.Ao().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.V_()>2||!this.mediaElement.isSeeking()&&wN(this.mediaElement.Ao(),this.mediaElement.getCurrentTime()))&&(T=this.mediaElement.NS(),T.bh=RD(this.mediaElement).toFixed(3),this.OE("uwe",T));break;case "resize":K2l(this);this.videoData.U&& this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.T2&&g.X(this.playerState,8)&&!g.X(this.playerState,1024)&&this.getCurrentTime()===0&&g.Ax){wp(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.gs()===z){mzP(this.zz,B);this.publish("videoelementevent",B);z=this.playerState;R=this.s3;var h=this.mediaElement;T=this.videoData.clientPlaybackNonce;if(!g.X(z,128)){var W=z.state;h=h?h:B.target;var b= h.getCurrentTime();if(!g.X(z,64)||B.type!=="ended"&&B.type!=="pause"){var l=h.getDuration();l=h.isEnded()||b>1&&Math.abs(b-l)<1.1;var w=B.type==="pause"&&h.isEnded();b=B.type==="ended"||B.type==="waiting"||B.type==="timeupdate"&&!g.X(z,4)&&!k7(R,b);if(w||l&&b)h.jY()>0&&h.gs()&&(W=14);else switch(B.type){case "error":Wq(h)&&(W|=128);break;case "pause":g.X(z,256)?(W^=256)||(W=64):g.X(z,32)||g.X(z,2)||g.X(z,4)||(W=4,g.X(z,1)&&g.X(z,8)&&(W|=1));break;case "playing":b=W;W=(W|8)&-1093;b&4?(W|=1,YU(R,h, !0)):k7(R,h.getCurrentTime())&&(W&=-2);g.X(z,1)&&YU(R,h)&&(W|=1);break;case "seeking":W|=16;g.X(z,8)&&(W|=1);W&=-3;break;case "seeked":W&=-17;YU(R,h,!0);break;case "waiting":g.X(z,2)||(W|=1);YU(R,h);break;case "timeupdate":b=g.X(z,16),l=g.X(z,4),(g.X(z,8)||b)&&!l&&k7(R,h.getCurrentTime())&&(W=8),YU(R,h)&&(W|=1)}}R=W;W=null;R&128&&(W=B.target,h=Wq(W),b=1,h?(h==="capability.changed"&&(b=2),l="GENERIC_WITHOUT_LINK",w=W.NS(),w.mediaElem="1",/AUDIO_RENDERER/.test(W.B4())&&(l="HTML5_AUDIO_RENDERER_ERROR"), W={errorCode:h,errorMessage:g.uX[l]||"",Hj:l,E8:Q_(w),pJ:b,cpn:z.pp?z.pp.cpn:""}):W=null,W&&(W.cpn=T));z=l5(z,R,W)}!g.X(this.playerState,1)&&g.X(z,1)&&vlX(this,"evt"+B.type);this.Oi(z)}}}; g.I.fJI=function(B){B=B.T.availability==="available";B!==this.Bh&&(this.Bh=B,this.publish("airplayavailabilitychange"))}; g.I.NFI=function(){var B=(0,g.f)(),z=this.mediaElement.dE();this.OE("airplay",{ia:z});!z&&!isNaN(this.WY)&&B-this.WY<2E3||(this.WY=B,z!==this.dE()&&(B=this.visibility,B.T!==z&&(B.T=z,B.UJ()),this.OE("airplay",{rbld:z}),this.B_()),this.publish("airplayactivechange"))}; g.I.AA=function(B){if(this.loader){var z=this.loader,T=z.Y,R=z.getCurrentTime(),h=Date.now()-T.N;T.N=NaN;T.OE("sdai",{adfetchdone:B,d:h});B&&!isNaN(T.L)&&T.U!==3&&kd(T.loader,R,T.L,T.X);T.policy.Y?T.V=NaN:T.W=NaN;Dq(T,4,T.U===3?"adfps":"adf");Nm(z)}}; g.I.EL=function(){g.dJ(this.p9);this.D5.stop();this.videoData.zZ=!0;this.dF.Eg=!0;this.dF.Dm=0;var B=this.xo;if(B.videoData.U){var z=B.bO.V,T=B.videoData.U.Ai;z.W.has(T)&&(z.W.delete(T),z.U=!0)}B.T.stop();this.f3();g.X(this.playerState,8)&&this.Oi(q5(this.playerState,65));this.YS=!1;uIK(this.K4());g.Bi(this.yh);this.publish("playbackstarted");(B=g.sH("yt.scheduler.instance.clearPriorityThreshold"))?B():hx(0)}; g.I.f3=function(){var B=this.xi.O2(),z={},T={};!jD("pbs",this.n4.timerName)&&PS.measure&&PS.getEntriesByName&&(PS.getEntriesByName("mark_nr")[0]?REK("mark_nr"):REK());B.videoId&&(z.videoId=B.videoId);B.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(z.clientPlaybackNonce=B.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(T.isPausedOnLoad=!0);T.itag=B.U?Number(B.U.itag):-1;B.BV&&(T.preloadType=String(this.b_?2:1));z.liveStreamMode=o6p[d5(B)];z.playerInfo=T;this.n4.infoGel(z); if(this.loader){B=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(B.Y&&(z=window.performance.getEntriesByName(B.Y),z.length&&(z=z[0],B.tick("vri",z.fetchStart),B.tick("vdns",z.domainLookupEnd),B.tick("vreq",z.requestStart),B.tick("vrc",z.responseEnd))),B.U&&(z=window.performance.getEntriesByName(B.U),z.length&&(z=z[0],B.tick("ari",z.fetchStart),B.tick("adns",z.domainLookupEnd),B.tick("areq",z.requestStart),B.tick("arc",z.responseEnd))));B=B.ticks;for(var R in B)B.hasOwnProperty(R)&& this.n4.tick(R,B[R])}}; g.I.l$=function(B){var z=this;B=B===void 0?!1:B;if(this.mediaElement&&this.videoData){J0z(this.zz,this.isPlaying());var T=this.getCurrentTime();!this.loader||g.X(this.playerState,4)&&g.Ve(this.videoData)||g.X(this.playerState,32)&&bs(this.videoData)||B4l(this.loader,T);T>5&&(this.zz.Y=T);var R=g.Rh();R?g.fi.Xg(this.hM):g.GF(this.hM);var h=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!h||X1(this.videoData))&&!g.X(this.playerState,128)){var W=function(){if(z.mediaElement&&!g.X(z.playerState, 128)){z.dF.L4()&&Dbz(z,"pfx");var b=z.getCurrentTime();z.D("html5_buffer_underrun_transition_fix")&&(b-=z.p4());var l=RD(z.mediaElement),w=g.X(z.playerState,8),q=k7(z.s3,b),c=NKd(z.s3,b,(0,g.f)(),l);w&&q?z.Oi(q5(z.playerState,1)):w&&c?(w=z.getDuration(),q=qp(z.videoData),w&&Math.abs(w-b)<1.1?(z.OE("setended",{ct:b,bh:l,dur:w,live:q}),z.mediaElement.Ug()?(z.logger.debug("seek to 0 because of looping"),z.seekTo(0,{Dx:"videoplayer_loop",seekSource:37})):z.E_()):(z.playerState.isBuffering()||vlX(z,"progress_fix"), z.Oi(we(z.playerState,1)))):(w&&!q&&!c&&b>0&&(w=(Date.now()-z.Iw)/1E3,q=z.getDuration(),b>q-1&&z.OE("misspg",{t:b.toFixed(2),d:q.toFixed(2),r:w.toFixed(2),bh:l.toFixed(2)})),z.playerState.isPaused()&&z.playerState.isBuffering()&&RD(z.mediaElement)>5&&z.Oi(q5(z.playerState,1)));z.l$()}}; this.mediaElement.ZC().length===0?this.hM=R?g.fi.u0(W,100):g.FN(W,100):this.hM=R?g.fi.u0(W,500):g.FN(W,500)}this.videoData.s0=T;!B&&this.isPlaying()&&J5P(this);yJB(this.CY,this.K2,this.Wu(),this.isBackground())&&R4(this);this.publish("progresssync",B);h&&X1(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.I.fR=function(){this.jD("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.I.sF=function(){return this.K4().sF()}; g.I.vj=function(){return this.loader?this.loader.vj():dP(this.dF.schedule,!0)}; g.I.Oi=function(B){if(!g.cq(this.playerState,B)){this.logger.debug(function(){return"Setting state "+B.toString()}); var z=new g.IS(B,this.playerState);this.playerState=B;k9K(this);var T=!this.s8.length;this.s8.push(z);var R=this.mediaElement&&this.mediaElement.isSeeking();R=z.oldState.state===8&&!R;g.dK(z,1)&&R&&g.X(this.playerState,8)&&!g.X(this.playerState,64)&&this.loader&&(AuB(this.loader),this.mediaElement&&RD(this.mediaElement)>=5&&VXr(this.CY,this.K2)&&R4(this));(R=g.rk(this.dF.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.X(B,1)&&(g.X(B,8)||g.X(B,16))?this.j$.start(R):this.j$.stop();(Gv(z, 8)<0||g.dK(z,1024))&&this.D5.stop();!g.dK(z,8)||this.videoData.zZ||g.X(z.state,1024)||this.D5.start();g.X(z.state,8)&&Gv(z,16)<0&&!g.X(z.state,32)&&!g.X(z.state,2)&&this.playVideo();g.X(z.state,2)&&Qe(this.videoData)&&(this.YB(this.getCurrentTime()),this.l$(!0));g.dK(z,2)&&(this.zB(!0),this.dF.L4()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&bs(this.videoData)&&this.videoData.T&&(R={minst:""+this.videoData.T.Eg,cminst:""+(this.videoData.T.NW()+this.p4()),maxst:""+this.videoData.T.Q_, hts:""+this.videoData.T.UE,cmaxst:""+(this.videoData.T.D4()+this.p4())},this.OE("sabrSeekableBoundaries",R)));g.dK(z,128)&&this.A6();this.videoData.T&&this.videoData.isLivePlayback&&!this.YV&&(Gv(z,8)<0?MMX(this.videoData.T):g.dK(z,8)&&this.videoData.T.resume());y0K(this.zz,z);fWY(this.K4(),z);if(T&&!this.xd())try{for(var h=g.d(this.s8),W=h.next();!W.done;W=h.next()){var b=W.value;RDz(this.GR,b);this.publish("statechange",b)}}finally{this.s8.length=0}}}; g.I.pO=function(){this.n4.tick("qoes")}; g.I.eT=function(){this.zz.eT()}; g.I.bu=function(B,z,T,R){a:{var h=this.xo;R=R===void 0?"LICENSE":R;T=T.substring(0,256);var W=gt(z);B==="drm.keyerror"&&this.kL&&this.kL.U.keys.length>1&&h.W<96&&(B="drm.sessionlimitexhausted",W=!1);var b=h.bO.experiments.Cf("html5_retry_on_drm_unavailable"),l=h.bO.experiments.Cf("html5_retry_on_drm_key_error"),w=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(b&&B==="drm.unavailable"||l&&B==="drm.keyerror"&&!T.match(w))h.h0("qoe.restart",{retryOnDrmError:1,e:B,detail:T}),h.iO.wD(!0);else{if(W)if(h.videoData.U&& h.videoData.U.video.isHdr())cJb(h,B);else{if(h.iO.jD(B,z,R,T),ROz(h,{detail:T}))break a}else h.h0(B,{detail:T});B==="drm.sessionlimitexhausted"&&(h.OE("retrydrm",{sessionLimitExhausted:1}),h.W++,xbz(h.iO))}}}; g.I.Mkm=function(){var B=this,z=g.rk(this.dF.experiments,"html5_license_constraint_delay"),T=R6();z&&T?(z=new g.Si(function(){B.jG();YJ(B)},z),g.m(this,z),z.start()):(this.jG(),YJ(this))}; g.I.Fk=function(B){this.publish("heartbeatparams",B)}; g.I.SM=function(B){this.OE("keystatuses",J7B(B));var z="auto",T=!1;this.videoData.U&&(z=this.videoData.U.video.quality,T=this.videoData.U.video.isHdr());a:{switch(z){case "highres":case "hd2880":z="UHD2";break;case "hd2160":case "hd1440":z="UHD1";break;case "hd1080":case "hd720":z="HD";break;case "large":case "medium":case "small":case "light":case "tiny":z="SD";break;default:z="";break a}T&&(z+="HDR")}z=Rg(B)?he(B,z):B.W.includes(z);if(this.D("html5_enable_vp9_fairplay")){if(T)if(B.L){var R;if((R= this.kL)==null?0:NE(R.T))if((T=this.kL)==null)T=0;else{for(var h=R=void 0,W=g.d(T.U.values()),b=W.next();!b.done;b=W.next())b=b.value,R||(R=$Yz(b,"SD")),h||(h=$Yz(b,"AUDIO"));T.Ve({sd:R,audio:h});T=R==="output-restricted"||h==="output-restricted"}else T=!z;if(T){this.OE("drm",{dshdr:1});cJb(this.xo);return}}else{this.videoData.B$||(this.videoData.B$=!0,this.OE("drm",{dphdr:1}),this.wD(!0));return}var l;if((l=this.kL)==null?0:NE(l.T))return}else if(l=B.L&&z,T&&!l){cJb(this.xo);return}z||he(B,"AUDIO")&& he(B,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),B=J7B(B),this.uq?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.jD("drm.keyerror",2,void 0,"info."+B)):(this.uq=!0,this.h0(new y_("qoe.restart",Object.assign({},{retrydrm:1},B))),R4(this),xbz(this)))}; g.I.KME=function(){if(!this.videoData.zZ&&this.mediaElement&&!this.isBackground()){var B="0";this.mediaElement.V_()>0&&RD(this.mediaElement)>=5&&this.videoData.Y&&this.videoData.Y.T&&(this.Oi(we(this.playerState,1)),vlX(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),B="1");k9K(this);var z=this.videoData.Y;B={restartmsg:B,mfmt:!TG(this.videoData),mdrm:!(!(z&&z.videoInfos&&z.videoInfos.length&&z.videoInfos[0].Ft)||this.kL),mfmtinfo:!this.videoData.U,prerolls:this.SQ()?this.oT.join(","): "0"};if(this.kL){z=this.kL;if(z.U.size<=0){var T="ns;";z.N||(T+="nr;");z=T+="ql."+z.Y.length}else z=J7B(z.U.values().next().value),z=Q_(z);B.drmp=z}var R;Object.assign(B,((R=this.loader)==null?void 0:R.NS())||{});var h;Object.assign(B,((h=this.mediaElement)==null?void 0:h.NS())||{});this.K4().h0("qoe.start15s",Q_(B));this.publish("loadsofttimeout")}}; g.I.YB=function(B){this.videoData.lengthSeconds!==B&&(this.videoData.lengthSeconds=B,YJ(this))}; g.I.zB=function(B,z){var T=this;B=B===void 0?!1:B;if(!this.EO)if(jD("att_s","player_att")||ZU("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var h,W,b,l;return g.D(function(w){switch(w.U){case 1:if(!(h=B)){w.jI(2);break}return g.P(w,g.$cd(),3);case 3:h=!w.T;case 2:if(h)return w.return();g.AK(w,4);W=t0B(T.K4());if(!W)throw Error();b={};return g.P(w,g.pFK((b.cpn=T.videoData.clientPlaybackNonce,b.encryptedVideoId=T.videoData.videoId||"",b),3E4),6);case 6:l=w.T;if(T.EO)throw Error(); if(!l.challenge)throw g.KV(Error("Not sending attestation ping; no attestation challenge string")),Error();T.EO=!0;var q=[l.challenge];l.error?q.push("r1c="+l.error):l.webResponse&&q.push("r1a="+l.webResponse);var c;((c=l.adblockReporting)==null?void 0:c.reportingStatus)!==void 0&&q.push("r6a="+l.adblockReporting.reportingStatus);var L;((L=l.adblockReporting)==null?void 0:L.broadSpectrumDetectionResult)!==void 0&&q.push("r6b="+l.adblockReporting.broadSpectrumDetectionResult);W(q.join("&"));ZU("att_f", void 0,"player_att");g.yz(w,0);break;case 4:g.JK(w),ZU("att_e",void 0,"player_att"),g.dX(w)}})})().then(function(){z==null||z()}); else{var R=new g.mCB(this.videoData);if("c1a"in R.I2&&!g.KX.isInitialized()){ZU("att_wb",void 0,"player_att");this.cn===2&&Math.random()<.01&&g.KV(Error("Botguard not available after 2 attempts"));if(B)return;if(this.cn<5){g.Bi(this.I0);this.cn++;return}}(R=g.noX(R))?(ZU("att_f",void 0,"player_att"),N9z(this.K4(),R),this.EO=!0):ZU("att_e",void 0,"player_att")}}; g.I.Iq=function(B){B=B===void 0?!1:B;return qp(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.GX()||g.Ve(this.videoData))?this.getCurrentTime():this.D4(B)}; g.I.oR=function(){return this.NW()}; g.I.D4=function(B){return this.zz.D4(B===void 0?!1:B)}; g.I.NW=function(){return this.zz.NW()}; g.I.p4=function(){return this.zz?this.zz.p4():0}; g.I.getStreamTimeOffset=function(){return this.zz?this.zz.getStreamTimeOffset():0}; g.I.qj=function(){var B=0;this.dF.D("web_player_ss_media_time_offset")&&(B=this.getStreamTimeOffset()===0?this.p4():this.getStreamTimeOffset());return B}; g.I.setPlaybackRate=function(B){var z;this.playbackRate!==B&&Fod(this.CY,(z=this.videoData.Y)==null?void 0:z.videoInfos)&&(this.playbackRate=B,R4(this));this.playbackRate=B;this.mediaElement&&this.mediaElement.setPlaybackRate(B)}; g.I.getPlaybackRate=function(){return this.playbackRate}; g.I.getPlaybackQuality=function(){var B="unknown";if(this.videoData.U&&(B=this.videoData.U.video.quality,B==="auto"&&this.mediaElement)){var z=this.Nd();z&&z.videoHeight>0&&(B=mf(z.videoWidth,z.videoHeight))}return B}; g.I.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; g.I.sendVideoStatsEngageEvent=function(B,z){var T=this.K4();T.T?(T=Qm(T.T,"engage"),T.WD=B,T.send(z)):z&&z()}; g.I.X_=function(B){return this.K4().X_(B)}; g.I.isAtLiveHead=function(B,z){z=z===void 0?!1:z;return qp(this.videoData)&&(this.i_||z)?this.zz.isAtLiveHead(B):!1}; g.I.In=function(){var B=this.D4(),z=this.getCurrentTime(),T;(T=!qp(this.videoData))||(T=this.zz,T=!(T.T&&T.T.Y));return T||this.GX()||isNaN(B)||isNaN(z)?0:Math.max(0,B-z)}; g.I.B5=function(B){(this.i_=B)||this.D5.stop();this.videoData.T&&(B?this.videoData.T.resume():MMX(this.videoData.T));if(this.loader){var z=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.Xq()&&this.videoData.isLivePlayback;B&&!z?this.loader.resume():cB(this,!0)}g.X(this.playerState,2)||B?g.X(this.playerState,512)&&B&&this.Oi(q5(this.playerState,512)):this.Oi(we(this.playerState,512));z=this.K4();z.qoe&&(z=z.qoe,g.r9(z,g.sr(z.provider),"stream",[B?"A":"I"]))}; g.I.O8=function(B){B={n:B.name,m:B.message};this.K4().h0("player.exception",Q_(B))}; g.I.d0=Wb(28);g.I.Ea=Wb(57);g.I.fk=function(B){this.K4().fk(B)}; g.I.Uy=function(B){this.K4().Uy(B)}; g.I.WI=function(B){this.K4().WI(B)}; g.I.SZ=Wb(34);g.I.fp=Wb(40);g.I.Ja=function(B){this.K4().Ja(B)}; g.I.zw=function(){this.OE("hidden",{},!0)}; g.I.vO=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.I.AT=function(){return this.loader?this.loader.AT():!0}; g.I.setLoop=function(B){this.loop=B;this.mediaElement&&!g.JS(this.dF)&&this.mediaElement.setLoop(B)}; g.I.Ug=function(){return this.mediaElement&&!g.JS(this.dF)?this.mediaElement.Ug():this.loop}; g.I.fO=function(B){this.OE("timestamp",{o:B.toString()});this.zz.fO(B)}; g.I.u$=function(B){this.n4.tick(B)}; g.I.QQ=function(B){return this.n4.QQ(B)}; g.I.BU=function(B){this.n4.BU(B)}; g.I.OE=function(B,z,T){T=T===void 0?!1:T;this.K4().OE(B,z,T)}; g.I.cM=function(B,z,T){T=T===void 0?!1:T;this.K4().OE(B,z,T)}; g.I.h0=function(B){this.K4().h0(B.errorCode,Q_(B.details));B=B.errorCode;if(this.videoData.isLivePlayback&&(B==="qoe.longrebuffer"||B==="qoe.slowseek")||B==="qoe.restart"){B=this.loader?XzK(this.loader.videoTrack):{};var z,T;this.OE("lasoe",Object.assign(this.loader?XzK(this.loader.audioTrack):{},(z=this.GZ)==null?void 0:(T=z.T)==null?void 0:T.Qa()));var R,h;this.OE("lvsoe",Object.assign(B,(R=this.GZ)==null?void 0:(h=R.U)==null?void 0:h.Qa()))}}; g.I.eg=function(B,z,T){this.K4().eg(B,z,T)}; g.I.fT=function(B,z,T,R,h,W,b,l){var w;if((w=this.videoData.T)!=null&&w.isLive){var q=z.playerType===2?z:B,c=B.videoData.videoId,L=z.videoData.videoId;if(c&&L){w=this.K4();if(w.qoe){var C=w.qoe,r=B.cpn,F=z.cpn,A=q.videoData.L2,a=C.provider.videoData.clientPlaybackNonce,V=C.provider.videoData.videoId,M=F!==a&&L!==V;a=r!==a&&c!==V;C.reportStats();C.adCpn&&C.adCpn!==r||(C.adCpn=a?r:"",C.dO=a?c:"",C.adFormat=a?A:void 0,Ae(C,2,W?4:h?2:0,F,L,R),C.reportStats(),C.adCpn=M?F:"",C.dO=M?L:"",C.adFormat=M?A: void 0,Ae(C,2,W?5:h?3:1,r,c,T),C.reportStats())}T=B.cpn;if(w.Y.has(T)){if(h=w.Y.get(T),Je(h,!0).send(),g9(h),T!==w.provider.videoData.clientPlaybackNonce){xN5(h);var x;(x=w.T)==null||g7d(x);w.Y.delete(T)}}else w.HV=w.provider.videoData.clientPlaybackNonce,w.HV&&w.T&&(w.Y.set(w.HV,w.T),Je(w.T).send(),g9(w.T));x=z.cpn;q=q.videoData;R-=this.qj();if(w.Y.has(x)){R=w.Y.get(x);var v=R.Y&&isNaN(R.V)?ym(R):NaN;R=PvY(R,!1);isNaN(v)||(R.L=v);R.send()}else R=jgK(w,w.provider,q,R),w.Y.set(x,R),v7l(R,new g.IS(we(new g.b5, 8),new g.b5)),yeK(R),(v=w.T)==null||g9(v);w.HV=x;if(this.D("html5_unify_csi_server_stitched_transition_logging")){if(w=this.n4,v=z.cpn,R=this.videoData.clientPlaybackNonce,z=z.videoData,B=(B.cpn===R?"video":"ad")+"_to_"+(v===R?"video":"ad"),B!=="video_to_ad"){R=B==="ad_to_video"?void 0:z;q=R==null?void 0:R.pZ;x={};if(z==null?0:z.X)x.cttAuthInfo={token:z.X,videoId:z.videoId};b&&(x.startTime=b);tY(B,x);var n,Z,N;b={targetVideoId:(n=z==null?void 0:z.videoId)!=null?n:"empty_video",targetCpn:v,adVideoId:(Z= R==null?void 0:R.videoId)!=null?Z:"empty_video",adClientPlaybackNonce:(N=q==null?void 0:q.cpn)!=null?N:R==null?void 0:R.clientPlaybackNonce};q&&(b.adBreakType=q.adBreakType,b.adType=q.adType);g.NK(b,B);Lu(w,l,B)}}else n=this.n4,N=this.videoData.clientPlaybackNonce,Z=z.videoData,N=(B.cpn===N?"video":"ad")+"_to_"+(z.cpn===N?"video":"ad"),B={},Z.X&&(B.cttAuthInfo={token:Z.X,videoId:Z.videoId}),b&&(B.startTime=b),tY(N,B),g.NK({targetVideoId:Z.videoId,targetCpn:z.cpn,isSsdai:!0},N),n.dF.D("html5_enable_ssdai_transition_with_only_enter_cuerange")? b||Lu(n,l,N):Lu(n,l,N)}}else this.logger.T(360717806,"SSTEvent for nonSS")}; g.I.hq=function(){var B=this.xi,z=B.gL;B.gL=[];return z}; g.I.xw=function(B){this.videoData.pm=!0;this.h0(new y_("sabr.fallback",B));this.wD(!0)}; g.I.If=function(B,z){this.videoData.Es=!0;if(z===void 0||z)this.h0(new y_("qoe.restart",B)),this.wD(!0);this.videoData.Gz()&&this.D("html5_reload_caption_on_ssdai_fallback")&&this.xi.g4()}; g.I.vt=function(B){this.OE("sdai",{aftimeout:B});this.h0(new y_("ad.fetchtimeout",{timeout:B}))}; g.I.iy=function(B,z){this.OE("timelineerror",B);B=new y_("dai.timelineerror",B);z?this.jD("dai.timelineerror",1,"RETRYABLE_ERROR",Q_(B.details)):this.h0(B)}; g.I.L1=function(){return Ps(this.K4())}; g.I.getPlayerSize=function(){return this.k7.getPlayerSize()}; g.I.WV=function(){return this.k7.WV()}; g.I.Op=function(){return this.n4}; g.I.Nk=function(){return this.xi.Nk()}; g.I.getVolume=function(){return this.xi.getVolume()}; g.I.Lh=function(){return this.xi.Lh()}; g.I.isMuted=function(){return this.xi.isMuted()}; g.I.Kw=function(){return this.xi.Kw()}; g.I.IU=function(){this.YV=!0}; g.I.D=function(B){return this.dF.D(B)}; g.I.Zl=function(B,z,T,R,h){this.OE("xvt",{m:B,g:z?1:0,tt:T?1:0,np:R?1:0,c:h})}; g.I.X3=function(){var B;(B=this.loader)==null||B.resume()}; g.I.Xq=function(){return g.F5(this.oT,"ad")}; g.I.Qr=function(){var B=this.getCurrentTime(),z=B-this.p4();var T=this.mediaElement?ir(this.mediaElement.Ao()):0;T=Math.floor(Math.max(T-z,0))+100;var R;return((R=this.loader)==null?0:R.Qr(z,T))?(this.OE("sdai",{skipad:1,ct:z.toFixed(3),adj:T.toFixed(3)}),bs(this.videoData)&&this.loader.seek(z+T,{seekSource:89,Dx:"videoplayer_skipServerStitchedAd"}),uez(this.zz,B),!0):!1}; g.I.L4=function(){return this.dF.L4()}; g.I.Og=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.MH||"";this.xi.Bm();return this.dF.Qn||""}; g.I.Va=function(){if(this.videoData.videoId)return this.videoData.Sy}; g.I.ma=function(){return this.videoData.videoId}; g.I.wO=function(){return this.xi.AM}; g.I.qP=function(){return this.YS}; g.I.TU=function(){return this.xi.TU()}; g.I.tb=function(B,z){this.zz.tb(B,z)}; g.I.Am=function(){this.zz.Am()}; g.I.uB=function(B,z){var T=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.xi.uB(B,z,T)}; g.I.qb=function(B,z){var T;(T=this.loader)==null||T.qb(B,z)}; g.I.Wr=function(){var B=this.GG();return!!B&&B.Wr()}; g.I.kS=function(B,z){this.K4().kS(B,z)}; g.I.sI=function(){return this.K4().sI()}; g.I.eP=function(){return this.videoData.q6}; g.I.jw=function(){return this.xi.jw()}; g.I.j4=function(){return this.xi.j4(this)}; g.I.PS=function(B){var z;(z=this.loader)==null||z.PS(B)}; g.I.Ow=function(){var B;(B=this.loader)==null||B.Ow()};g.G(mbY,ee);g.G(nlz,ee);g.I=nlz.prototype;g.I.seekToChapterWithAnimation=function(B){var z=this;if(g.CB(this.api)&&!(B<0)){var T=this.api.getVideoData(),R=T.ZS;if(R&&B=0)return;z=~z;g.yq(this.items,z,0,B);TJ(this.menuItems.element,B.element,z)}B.subscribe("size-change",this.G4,this);this.menuItems.publish("size-change")}; g.I.sJ=function(B){B.unsubscribe("size-change",this.G4,this);this.xd()||(g.GU(this.items,B),this.menuItems.element.removeChild(B.element),this.menuItems.publish("size-change"))}; g.I.G4=function(){this.menuItems.publish("size-change")}; g.I.focus=function(){for(var B=0,z=0;z1&&g.pn(this)}; g.I.RZ=function(){CYK(this);this.vD&&(cUP(this),g.vt(this.element,this.size))}; g.I.UX=function(){var B=this.T.pop();Lad(this,B,this.T[this.T.length-1],!0)}; g.I.yK=function(B){if(!B.defaultPrevented)switch(B.keyCode){case 27:this.xW();B.preventDefault();break;case 37:this.T.length>1&&this.UX();B.preventDefault();break;case 39:B.preventDefault()}}; g.I.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.I.gF=function(){g.nB.prototype.gF.call(this);this.X&&this.X.dispose();this.L&&this.L.dispose()};g.G($J,g.gp);$J.prototype.open=function(B,z){this.initialize(B.items)&&this.Hc(z,!!z)}; $J.prototype.initialize=function(B){g.yu(this.iz);if(B===void 0||B.length===0)return!1;var z=B.length;B=g.d(B);for(var T=B.next();!T.done;T=B.next())this.Fu(T.value,z--);return!0}; $J.prototype.Fu=function(B,z){B.menuNavigationItemRenderer?FaY(this,B.menuNavigationItemRenderer,z):B.menuServiceItemRenderer&&ILB(this,B.menuServiceItemRenderer,z)};g.G(PB,Mz);g.I=PB.prototype;g.I.hO=function(B){B.target!==this.dismissButton.element&&B.target!==this.overflowButton.element&&(this.cS(),this.onClickCommand&&this.j.uO("innertubeCommand",this.onClickCommand))}; g.I.LT=function(){this.enabled=!1;this.N.hide()}; g.I.ip=function(){return!!this.T&&this.enabled}; g.I.onVideoDataChange=function(B,z){this.Kj(z);if(this.T){this.Sv();a:if(!this.isCounterfactual){var T,R,h;this.banner.update({title:(T=this.T)==null?void 0:T.title,subtitle:(R=this.T)==null?void 0:R.subtitle,metadata:(h=this.T)==null?void 0:h.metadataText});var W;this.onClickCommand=g.u((W=this.T)==null?void 0:W.onTap,nV);var b;if(B=g.u((b=this.T)==null?void 0:b.onOverflow,nV))this.L=g.u(B,$SR);var l;if((l=this.T)==null?0:l.thumbnailImage){var w,q;b=((w=this.T)==null?void 0:(q=w.thumbnailImage)== null?void 0:q.sources)||[];if(b.length===0)break a;this.thumbnailImage.update({url:b[0].url})}else{var c;if((c=this.T)==null?0:c.thumbnailIconName){var L;this.thumbnailIcon.update({icon:(L=this.T)==null?void 0:L.thumbnailIconName})}}var C;this.shouldShowOverflowButton=!((C=this.T)==null||!C.shouldShowOverflowButton);var r;this.shouldHideDismissButton=!((r=this.T)==null||!r.shouldHideDismissButton)}var F;this.banner.element.setAttribute("aria-label",((F=this.T)==null?void 0:F.a11yLabel)||"");var A; this.Kf=(A=this.T)==null?void 0:A.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;dVB(this)}}; g.I.yZE=function(){this.isVisible=!0;dVB(this)}; g.I.LME=function(){this.isVisible=!1;dVB(this)}; g.I.qf=function(){Mz.prototype.qf.call(this);this.U&&this.j.logVisibility(this.banner.element,this.isVisible)}; g.I.cS=function(){Mz.prototype.cS.call(this,!1);this.U&&this.j.logClick(this.banner.element)}; g.I.IV=function(B){this.X||(this.X=new $J(this.j),g.m(this,this.X));var z,T;if((z=this.L)==null?0:(T=z.menu)==null?0:T.menuRenderer)this.X.open(this.L.menu.menuRenderer,B.target),B.preventDefault()}; g.I.Kj=function(){}; g.I.Sv=function(){}; g.I.gF=function(){this.j.I7("suggested_action_view_model");Mz.prototype.gF.call(this)};g.G(xJ,PB); xJ.prototype.Kj=function(B){var z,T,R;this.productUpsellSuggestedActionViewModel=g.u((z=B.getWatchNextResponse())==null?void 0:(T=z.playerOverlays)==null?void 0:(R=T.playerOverlayRenderer)==null?void 0:R.suggestedActionViewModel,XhK);var h;if((h=this.productUpsellSuggestedActionViewModel)==null?0:h.content){var W;this.T=g.u((W=this.productUpsellSuggestedActionViewModel)==null?void 0:W.content,g1F)}var b,l;if(this.U=!!((b=this.productUpsellSuggestedActionViewModel)==null?0:(l=b.loggingDirectives)==null? 0:l.trackingParams)){var w,q;this.j.setTrackingParams(this.banner.element,((w=this.productUpsellSuggestedActionViewModel)==null?void 0:(q=w.loggingDirectives)==null?void 0:q.trackingParams)||null)}var c;this.isCounterfactual=!((c=this.productUpsellSuggestedActionViewModel)==null||!c.isCounterfactualServing)}; xJ.prototype.Sv=function(){var B=[],z,T=g.d(((z=this.productUpsellSuggestedActionViewModel)==null?void 0:z.ranges)||[]);for(z=T.next();!z.done;z=T.next()){var R=z.value;R&&(z=Number(R.startTimeMilliseconds),R=Number(R.endTimeMilliseconds),isNaN(z)||isNaN(R)||B.push(new g.Wj(z,R,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.j.A$(B)};g.G(AUr,ee);g.G(vB,ee);vB.prototype.onVideoDataChange=function(B,z){var T=this;if(!us(z)){B==="newdata"&&UVz(this);var R=this.api.D("html5_fix_duplicate_get_setting_values_requests");if(this.Y&&this.T&&B==="dataloaded"){R&&(this.T=!1);var h;Gc(IL(W3(this.api.K(),(h=this.api.getVideoData())==null?void 0:g.Kt(h)),function(W){R||(T.T=!1);prl(T,W)}),function(){T.T=!0})}}}; vB.prototype.Ju=function(){var B=this;if(g.JS(this.api.K())){var z,T=g.RQ(this.api.K(),(z=this.api.getVideoData())==null?void 0:g.Kt(z));return IL(CX(T),function(R){var h=kN();KB(h,R);return B.api.Ju(h)})}return CX(this.api.Ju())};g.G(g.kJ,g.N2);g.I=g.kJ.prototype;g.I.open=function(){g.J0(this.WB,this.U)}; g.I.hk=function(B){$VY(this);var z=this.options[B];z&&(z.element.setAttribute("aria-checked","true"),this.oI(this.DO(B)),this.Y=B)}; g.I.n1=function(B){g.yu(this.U);for(var z={},T=!1,R=0;R=0?this.T.playbackRate:1}catch(B){return 1}}; g.I.setPlaybackRate=function(B){this.getPlaybackRate()!==B&&(this.T.playbackRate=B);return B}; g.I.Ug=function(){return this.T.loop}; g.I.setLoop=function(B){this.T.loop=B}; g.I.canPlayType=function(B,z){return this.T.canPlayType(B,z)}; g.I.isPaused=function(){return this.T.paused}; g.I.isSeeking=function(){return this.T.seeking}; g.I.isEnded=function(){return this.T.ended}; g.I.Bb=function(){return this.T.muted}; g.I.SN=function(B){Da();this.T.muted=B}; g.I.ZC=function(){return this.T.played||br([],[])}; g.I.Ao=function(){try{var B=this.T.buffered}catch(z){}return B||br([],[])}; g.I.kt=function(){return this.T.seekable||br([],[])}; g.I.nS=function(){var B=this.T;return B.getStartDate?B.getStartDate():null}; g.I.getCurrentTime=function(){return this.T.currentTime}; g.I.setCurrentTime=function(B){this.T.currentTime=B}; g.I.getDuration=function(){return this.T.duration}; g.I.load=function(){var B=this.T.playbackRate;try{this.T.load()}catch(z){}this.T.playbackRate=B}; g.I.pause=function(){this.T.pause()}; g.I.play=function(){var B=this.T.play();if(!B||!B.then)return null;B.then(void 0,function(){}); return B}; g.I.V_=function(){return this.T.readyState}; g.I.jY=function(){return this.T.networkState}; g.I.Sz=function(){return this.T.error?this.T.error.code:null}; g.I.B4=function(){return this.T.error?this.T.error.message:""}; g.I.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var B=this.T,z=B.webkitDroppedFrameCount;if(B=B.webkitDecodedFrameCount)return{droppedVideoFrames:z||0,totalVideoFrames:B}}return{}}; g.I.dE=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.I.ZP=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.I.togglePictureInPicture=function(){var B=this.T,z=window.document;window.document.pictureInPictureEnabled?this.T!==z.pictureInPictureElement?B.requestPictureInPicture():z.exitPictureInPicture():vG()&&B.webkitSetPresentationMode(B.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.I.SP=function(){var B=this.T;return new g.pr(B.offsetLeft,B.offsetTop)}; g.I.getSize=function(){return g.Dk(this.T)}; g.I.setSize=function(B){g.vt(this.T,B)}; g.I.getVolume=function(){return this.T.volume}; g.I.setVolume=function(B){Da();this.T.volume=B}; g.I.rl=function(B){this.V[B]||(this.T.addEventListener(B,this.listener),this.V[B]=this.listener)}; g.I.setAttribute=function(B,z){this.T.setAttribute(B,z)}; g.I.removeAttribute=function(B){this.T.removeAttribute(B)}; g.I.hasAttribute=function(B){return this.T.hasAttribute(B)}; g.I.ZT=Wb(67);g.I.G_=Wb(69);g.I.tp=Wb(71);g.I.R4=Wb(73);g.I.xC=function(){return AQ(this.T)}; g.I.Xy=function(B){g.ww(this.T,B)}; g.I.wq=function(B){return g.QC(this.T,B)}; g.I.Q3=function(){return g.hm(document.body,this.T)}; g.I.audioTracks=function(){var B=this.T;if("audioTracks"in B)return B.audioTracks}; g.I.gF=function(){for(var B=g.d(Object.keys(this.V)),z=B.next();!z.done;z=B.next())z=z.value,this.T.removeEventListener(z,this.V[z]);z2.prototype.gF.call(this)}; g.I.jq=function(B){this.T.disableRemotePlayback=B};g.G(ZA,g.O);g.G(sA,g.O);sA.prototype.show=function(){g.O.prototype.show.call(this);this.rF();this.Lf.D("html5_enable_moving_s4n_window")&&g.JS(this.Lf.K())&&this.J()}; sA.prototype.hide=function(){g.O.prototype.hide.call(this);this.delay.stop();this.W.stop()}; sA.prototype.rF=function(){var B=(0,g.f)(),z=Ooz(this.Lf);ey(this.T,z.bandwidth_samples);ey(this.L,z.network_activity_samples);ey(this.Y,z.live_latency_samples);ey(this.U,z.buffer_health_samples);var T={};z=g.d(Object.entries(z));for(var R=z.next();!R.done;R=z.next()){var h=g.d(R.value);R=h.next().value;h=h.next().value;this.N[R]!==h&&(T[R]=" "+String(h));this.N[R]=h}this.update(T);B=(0,g.f)()-B>25?5E3:500;this.delay.start(B)}; sA.prototype.J=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.W.start(2E4)};g.G(j8r,ee);g.G(EA,g.K);EA.prototype.T=function(){var B=(0,g.f)()-this.startTime;B=Bthis.W[B])&&(this.T=B,BH(this))}; g.I.onCueRangeExit=function(B){var z=bxB(this,B);z&&this.T===B&&this.api.uO("innertubeCommand",z);this.clearTimeout();this.T=void 0}; g.I.onTimeout=function(B){this.T!==void 0&&(B==null?void 0:B.cueRangeId)===this.T&&(this.J=!1,(B=bxB(this,this.T))&&this.api.uO("innertubeCommand",B))}; g.I.CO=function(B){this.U=B}; g.I.sQ=function(){BH(this);this.U=void 0}; g.I.setTimeout=function(B){var z=this,T=Number(B==null?void 0:B.maxVisibleDurationMilliseconds);T&&(this.clearTimeout(),this.N=setTimeout(function(){z.onTimeout(B)},T))}; g.I.clearTimeout=function(){this.N&&clearTimeout(this.N);this.N=void 0;this.J=!1}; g.I.gF=function(){this.timelyActions=this.U=this.T=this.videoId=void 0;this.W={};this.w2();this.clearTimeout();ee.prototype.gF.call(this)};g.G(wdz,ee);g.G(T9,RM);T9.prototype.X=function(B){this.W(B?2:1)}; T9.prototype.U=function(){var B=this.j.getPresentingPlayerType();B===2||B===3?(this.T=!1,this.WB.sJ(this)):this.T||(B=this.hasVoiceBoostAudioTrack(),this.setEnabled(B),B=this.Y()===2&&B,hh(this,B),this.WB.Fu(this),this.T=!0)}; T9.prototype.gF=function(){this.WB.sJ(this);RM.prototype.gF.call(this)};g.G(R$,ee);R$.prototype.getVoiceBoostUserPreference=function(){return this.T}; R$.prototype.setVoiceBoostUserPreference=function(B){this.api.OE("vb_set",{pref:B});g.D_("yt-player-voice-boost",B);B!==this.T&&(this.T=B,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.B_())}; R$.prototype.hasVoiceBoostAudioTrack=function(){var B,z,T=(B=this.api.getVideoData())==null?void 0:(z=B.Y)==null?void 0:z.T;return T?Sa(T,function(R){var h;return((h=R.audio)==null?void 0:h.U)===!0}):!1}; R$.prototype.updateEnvironmentData=function(){this.api.K().r_=this.T};var dfr=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.G(bX,ee);bX.prototype.gF=function(){this.L&&(g.dJ(this.L),this.L=void 0);ee.prototype.gF.call(this)}; bX.prototype.Bm=function(){(this.U?!this.T:this.Y)&&lX(this)}; bX.prototype.pX=function(B,z,T){var R=this;if(c3K(B)){var h=T||"";if(this.T)z=wh(this,h),LUX(B,z);else{var W=new g.CP;z.push(W.promise);this.V.promise.then(function(){var b=wh(R,h);LUX(B,b);W.resolve()})}}}; bX.prototype.jy=function(B){var z=this;if(this.U||this.Y)B.MH=wh(this,B.videoId),this.T||(this.W=new Bq,this.V.promise.then(function(){z.n4.QQ("pot_if");B.MH=wh(z,B.videoId)}))};g.G(iX,ee);iX.prototype.setFullscreenQuickActions=function(B){this.T&&this.api.getRootNode().removeChild(this.T);B?(g.ww(B,"ytp-fullscreen-quick-actions"),g.ww(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.Pw(this.api,B,4)):g.iH(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.T=B;qb(this)}; iX.prototype.setPlayerOverlayVideoDetailsRenderer=function(B){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);B?(g.ww(B,"ytp-fullscreen-metadata"),this.api.D("delhi_modern_web_player_fullscreen_metadata_bottom")?g.ww(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.ww(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.Pw(this.api,B,4)):(g.iH(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.iH(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=B;qb(this)};g.G(aXz,ee);g.G(cH,g.K);cH.prototype.T=function(){for(var B=g.d(g.K5.apply(0,arguments)),z=B.next();!z.done;z=B.next())(z=z.value)&&this.features.push(z)}; cH.prototype.gF=function(){for(var B=this.features.length-1;B>=0;B--)this.features[B].dispose();this.features.length=0;g.K.prototype.gF.call(this)};Ufb.prototype.reset=function(){this.T=this.U=NaN};g.I=M$b.prototype;g.I.reset=function(){uo(this.timerName)}; g.I.tick=function(B,z){O4(B,z,this.timerName)}; g.I.QQ=function(B){return X_(B,void 0,this.timerName)}; g.I.BU=function(B){g.JO(B,void 0,this.timerName)}; g.I.infoGel=function(B){g.NK(B,this.timerName)};g.G(y3X,g.Cl);g.I=y3X.prototype;g.I.K1=function(B){return this.loop||!!B||this.index+1=0}; g.I.setShuffle=function(B){this.shuffle=B;B=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var z=0;z0)||vH(this,1,!0)}; g.I.h8=function(){this.X=!0;this.T.V2(this.V);this.V=this.T.Z(document,"mouseup",this.Hi)}; g.I.Hi=function(){this.X=!1;vH(this,8,!1);this.T.V2(this.V);this.V=this.T.Z(this.target,"mousedown",this.h8)}; g.I.vK=function(B){if(B=(B=B.changedTouches)&&B[0])this.WD=B.identifier,this.T.V2(this.J),this.J=this.T.Z(this.target,"touchend",this.ZK,void 0,!0),vH(this,1024,!0)}; g.I.ZK=function(B){if(B=B.changedTouches)for(var z=0;z1280||h>720)if(z=R.VQ("maxresdefault.jpg"))break;if(W>640||h>480)if(z=R.VQ("maxresdefault.jpg"))break;if(W>320||h>180)if(z=R.VQ("sddefault.jpg")||R.VQ("hqdefault.jpg")||R.VQ("mqdefault.jpg"))break;if(z=R.VQ("default.jpg"))break}g.sf(B)&&(B=new Image,B.addEventListener("load", function(){l7X()}),B.src=z?z:"",this.api.Op().tick("ftr")); this.W.style.backgroundImage=z?"url("+z+")":""};g.G(g.m2,g.O);g.m2.prototype.resize=function(){}; g.m2.prototype.U=function(B){var z=this;this.Y=!1;dtz(this);var T=B.Hj,R=this.api.K();T!=="GENERIC_WITHOUT_LINK"||R.X?T==="TOO_MANY_REQUESTS"?(R=this.api.getVideoData(),this.oI(HH(this,"TOO_MANY_REQUESTS_WITH_LINK",R.Go(),void 0,void 0,void 0,!1))):T!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||R.X?this.api.K().D("html5_enable_bandaid_error_screen")&&T==="HTML5_SPS_UMP_STATUS_REJECTED"&&!R.X?(R=R.hostLanguage,B="//support.google.com/youtube?p=videoError",R&&(B=g.Qn(B,{hl:R})),this.oI(HH(this,"HTML5_SPS_UMP_STATUS_REJECTED", B))):this.api.K().D("enable_adb_handling_in_sabr")&&T==="BROWSER_OR_EXTENSION_ERROR"&&!R.X?(R=R.hostLanguage,B="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",R&&(B=g.Qn(B,{hl:R})),this.oI(HH(this,"BROWSER_OR_EXTENSION_ERROR",B))):this.oI(g.nu(B.errorMessage)):this.oI(HH(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(B=R.hostLanguage,T="//support.google.com/youtube/?p=player_error1",B&&(T=g.Qn(T, {hl:B})),this.oI(HH(this,"GENERIC_WITH_LINK_AND_CPN",T,!0)),R.JZ&&!R.W&&GL5(this,function(W){if(g.WO(W,z.api,!tq(z.api.K()))){W={as3:!1,html5:!0,player:!0,cpn:z.api.getVideoData().clientPlaybackNonce};var b=z.api;b.A0("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:W});b.isFullscreen()&&b.toggleFullscreen()}})); if(this.Y){var h=this.BD("ytp-error-link");h&&(this.api.createClientVe(h,this,216104),this.api.logVisibility(h,!0),GL5(this,function(){z.api.logClick(h)}))}}; var IhB=/([^<>]+)<\/a>/;g.G(Asl,g.O);g.I=Asl.prototype;g.I.onClick=function(B){this.innertubeCommand?(this.j.uO("innertubeCommand",this.innertubeCommand),B.preventDefault()):g.WO(B,this.j,!0);this.j.logClick(this.element)}; g.I.onVideoDataChange=function(B,z){UtY(this,z);this.mu&&MEH(this,this.mu)}; g.I.J9=function(B){var z=this.j.getVideoData();this.videoId!==z.videoId&&UtY(this,z);this.T&&MEH(this,B.state);this.mu=B.state}; g.I.Hc=function(){this.fade.show();this.j.publish("paidcontentoverlayvisibilitychange",!0);this.j.logVisibility(this.element,!0)}; g.I.xW=function(){this.fade.hide();this.j.publish("paidcontentoverlayvisibilitychange",!1);this.j.logVisibility(this.element,!1)};g.G(fu,g.O);fu.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.O.prototype.hide.call(this)}; fu.prototype.onStateChange=function(B){this.J0(B.state)}; fu.prototype.J0=function(B){if(g.X(B,128)||this.api.qP())var z=!1;else{var T;z=this.api.D("web_watch_enable_multiview_manager")&&((T=this.api.getVideoData())==null?0:us(T))?!1:g.X(B,16)||g.X(B,1)?!0:!1}z?this.T.start():this.hide()}; fu.prototype.U=function(){this.message.style.display="block"};g.G(Ok,g.nB);Ok.prototype.onMutedAutoplayChange=function(B){this.Y&&(B?(VEr(this),this.Hc()):(this.T&&this.logClick(),this.xW()))}; Ok.prototype.ih=function(B){this.api.isMutedByMutedAutoplay()&&g.dK(B,2)&&this.xW()}; Ok.prototype.onClick=function(){this.api.unMute();this.logClick()}; Ok.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.G(g.Nb,g.kb);g.I=g.Nb.prototype;g.I.init=function(){var B=this.api,z=B.getPlayerStateObject();this.eY=B.getPlayerSize();this.Oi(z);this.RR();this.ox();this.api.publish("basechromeinitialized",this);this.qc()&&this.api.publish("standardControlsInitialized")}; g.I.onVideoDataChange=function(B,z){var T=this.y8!==z.videoId;if(T||B==="newdata")B=this.api,B.isFullscreen()||(this.eY=B.getPlayerSize());T&&(this.y8=z.videoId,T=this.I1,T.RK=3E3,vH(T,512,!0),this.RR());this.api.D("web_render_jump_buttons")&&z.showSeekingControls&&(this.vG=572)}; g.I.iFI=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.I.wG=function(){var B=this.api.B7()&&this.api.TX(),z=this.api.Tw();return this.Uo||B||this.fH||z}; g.I.iL=function(){var B=!this.wG();g.L2(this.api.getRootNode(),"ytp-menu-shown",!B)}; g.I.bk=function(B){try{if(!g.hm(this.api.getRootNode(),B))return!1}catch(z){return!1}for(;B&&!mgK(B);)B=B===this.api.getRootNode()?null:B.parentElement||null;return!!B}; g.I.hI=function(B){var z=this.api.getRootNode();g.L2(z,"ytp-autohide",B);g.L2(z,"ytp-autohide-active",!0);this.hJ.start(B?250:100);B&&(this.vF=!1,g.iH(z,"ytp-touch-mode"));this.Oo=!B;this.api.q2(!B)}; g.I.OQ=function(){var B=this.api.getRootNode();g.L2(B,"ytp-autohide-active",!1)}; g.I.Q7d=function(){this.v2=!0}; g.I.gLD=function(B){if(this.api.K().D("player_doubletap_to_seek")||this.api.K().L)this.v2=!1,this.dU&&this.V2(this.dU),this.w8===0&&jt(this,B)?(this.Nc(),this.LJ.start(),this.dU=this.Z(this.api.NG(),"touchmove",this.Q7d,void 0,!0)):this.LJ.stop();Jsz(this)&&jt(this,B)&&!this.api.K().L&&ysd(this);var z=this.OP.Lk();if(!g.yW(this.api.K())&&Uf&&pUz(this,B))z&&B.preventDefault();else if(this.vF=!0,g.ww(this.api.getRootNode(),"ytp-touch-mode"),this.I1.aD(),this.api.K().D("player_doubletap_to_seek")||this.api.K().L)if(z= this.api.getPlayerStateObject(),!(!this.api.TO()||g.X(z,2)&&g.Vx(this.api)||g.X(z,64))){z=Date.now()-this.fu;this.w8+=1;if(z<=350){this.BO=!0;z=this.api.getPlayerSize().width/3;var T=this.api.getRootNode().getBoundingClientRect(),R=B.targetTouches[0].clientX-T.left;T=B.targetTouches[0].clientY-T.top;var h=(this.w8-1)*10;R>0&&Rz*2&&R=650,R=B.width<528;this.I1.resize();g.L2(z,"ytp-fullscreen",this.api.isFullscreen());g.L2(z,"ytp-large-width-mode",T);this.api.D("delhi_modern_web_player")?g.L2(z,"ytp-xsmall-width-mode",R):g.L2(z,"ytp-small-mode",this.UN());g.L2(z,"ytp-tiny-mode",this.Ul());g.L2(z,"ytp-big-mode",this.F_());this.rD&&this.rD.resize(B)}; g.I.ih=function(B){this.Oi(B.state);this.RR()}; g.I.uN=Wb(5);g.I.BN=function(){var B=!!this.y8&&!this.api.lz()&&!this.v0,z=this.api.getPresentingPlayerType()===2,T=this.api.K();if(z){if(dB5&&T.D("enable_visit_advertiser_support_on_ipad_mweb"))return!1;z=J5(this.api.bK());B&&(z&&z.player?B=(B=z.player.getVideoData(2))?B.isListed&&!g.y9(z.player.K()):!1:(Fo("showInfoBarDuringAd: this is null"),B=!1));return B}return B&&(T.P8||this.api.isFullscreen()||T.a$)}; g.I.RR=function(){var B=this.BN();this.Rg!==B&&(this.Rg=B,g.L2(this.api.getRootNode(),"ytp-hide-info-bar",!B))}; g.I.Oi=function(B){var z=B.isCued()||this.api.SQ()&&this.api.getPresentingPlayerType()!==3;z!==this.isCued&&(this.isCued=z,this.iR&&this.V2(this.iR),this.iR=this.Z(this.api.NG(),"touchstart",this.gLD,void 0,z));var T=this.I1,R=B.isPlaying()&&!g.X(B,32)||this.api.Xs();vH(T,128,!R);T=this.I1;R=this.api.getPresentingPlayerType()===3;vH(T,256,R);T=this.api.getRootNode();g.X(B,2)?R=[Oa.ENDED]:(R=[],g.X(B,8)?R.push(Oa.PLAYING):g.X(B,4)&&R.push(Oa.PAUSED),g.X(B,1)&&!g.X(B,32)&&R.push(Oa.BUFFERING),g.X(B, 32)&&R.push(Oa.SEEKING),g.X(B,64)&&R.push(Oa.UNSTARTED));g.DF(this.Bn,R)||(g.ci(T,this.Bn),this.Bn=R,g.qv(T,R));R=this.api.K();var h=g.X(B,2);a:{var W=this.api.K();var b=W.controlsType;switch(b){case "2":case "0":W=!1;break a}W=b==="3"&&!g.X(B,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:zYI(J5(this.api.bK())))||this.api.Tw()||g.yW(W)&&this.api.getPresentingPlayerType()===2?!1:!0}g.L2(T,"ytp-hide-controls",!W);g.L2(T,"ytp-native-controls",R.controlsType==="3"&&!z&&!h&&!this.fH);g.X(B, 128)&&!g.yW(R)?(this.rD||(this.rD=new g.m2(this.api),g.m(this,this.rD),g.Pw(this.api,this.rD.element,4)),this.rD.U(B.pp),this.rD.show()):this.rD&&(this.rD.dispose(),this.rD=null)}; g.I.sU=function(){return this.api.B7()&&this.api.TX()?(this.api.KG(!1,!1),!0):this.api.lz()?(g.Qx(this.api,!0),!0):!1}; g.I.onMutedAutoplayChange=function(B){this.fH=B;this.iL()}; g.I.F_=function(){return!1}; g.I.UN=function(){return!this.F_()&&(this.api.getPlayerSize().width=0&&z.left>=0&&z.bottom>z.top&&z.right>z.left?z:null;z=this.size;B=B.clone();z=z.clone();R&&(b=z,h=5,(h&65)==65&&(B.x=R.right)&&(h&=-2),(h&132)==132&&(B.y=R.bottom)&&(h&=-5),B.xR.right&&(b.width=Math.min(R.right-B.x,W+b.width-R.left),b.width=Math.max(b.width,0))),B.x+b.width>R.right&&h&1&&(B.x=Math.max(R.right-b.width,R.left)),B.yR.bottom&&(b.height=Math.min(R.bottom-B.y,W+b.height-R.top),b.height=Math.max(b.height,0))),B.y+b.height>R.bottom&&h&4&&(B.y=Math.max(R.bottom-b.height,R.top)));R=new g.Am(0,0,0,0);R.left=B.x;R.top=B.y;R.width= z.width;R.height=z.height;g.pF(this.element,new g.pr(R.left,R.top));g.$K(this.W);this.W.Z(uN(this),"contextmenu",this.zYi);this.W.Z(this.j,"fullscreentoggled",this.onFullscreenToggled);this.W.Z(this.j,"pageTransition",this.CI)}; g.I.zYi=function(B){if(!B.defaultPrevented){var z=yO(B);g.hm(this.element,z)||this.xW();this.j.K().disableNativeContextMenu&&B.preventDefault()}}; g.I.onFullscreenToggled=function(){this.xW();zaK(this)}; g.I.CI=function(){this.xW()};g.G(Tf,g.O);Tf.prototype.onClick=function(){var B=this,z,T,R,h;return g.D(function(W){if(W.U==1)return z=B.api.K(),T=B.api.getVideoData(),R=B.api.getPlaylistId(),h=z.getVideoUrl(T.videoId,R,void 0,!0),g.P(W,haH(B,h),2);W.T&&RaB(B);B.api.logClick(B.element);g.dX(W)})}; Tf.prototype.rF=function(){this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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.visible=Tvd(this);g.L2(this.element,"ytp-copylink-button-visible",this.visible); this.kW(this.visible);this.tooltip.TR();this.api.logVisibility(this.element,this.visible&&this.V)}; Tf.prototype.Ga=function(B){g.O.prototype.Ga.call(this,B);this.api.logVisibility(this.element,this.visible&&B)}; Tf.prototype.gF=function(){g.O.prototype.gF.call(this);g.iH(this.element,"ytp-copylink-button-visible")};g.G(W$z,g.O);g.I=W$z.prototype;g.I.show=function(){g.O.prototype.show.call(this);g.Bi(this.U)}; g.I.hide=function(){this.W.stop();this.Y=0;this.BD("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.iH(this.element,"ytp-chapter-seek");g.iH(this.element,"ytp-time-seeking");g.O.prototype.hide.call(this)}; g.I.LG=function(B,z,T,R){this.Y=B===this.L?this.Y+R:R;this.L=B;var h=B===-1?this.N:this.J;h&&this.j.logClick(h);this.X?this.U.stop():g.TE(this.U);this.W.start();this.element.setAttribute("data-side",B===-1?"back":"forward");var W=3*this.j.NG().getPlayerSize().height;h=this.j.NG().getPlayerSize();h=h.width/3-3*h.height;this.T.style.width=W+"px";this.T.style.height=W+"px";B===1?(this.T.style.left="",this.T.style.right=h+"px"):B===-1&&(this.T.style.right="",this.T.style.left=h+"px");var b=W*2.5;W=b/ 2;var l=this.BD("ytp-doubletap-ripple");l.style.width=b+"px";l.style.height=b+"px";B===1?(B=this.j.NG().getPlayerSize().width-z+Math.abs(h),l.style.left="",l.style.right=B-W+"px"):B===-1&&(B=Math.abs(h)+z,l.style.right="",l.style.left=B-W+"px");l.style.top="calc((33% + "+Math.round(T)+"px) - "+W+"px)";if(T=this.BD("ytp-doubletap-ripple"))T.classList.remove("ytp-doubletap-ripple"),T.classList.add("ytp-doubletap-ripple");bdz(this,this.X?this.Y:R)}; g.I.aT=function(B,z,T){if(T=T===void 0?null:T){var R=B===-1?this.N.visualElement:this.J.visualElement;T={seekData:T};var h=g.gd();h&&g.BP(Ba)(void 0,h,R,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",T,void 0)}this.Y=B===this.L?this.Y+z:z;this.L=B;R=this.j.NG().getPlayerSize();this.X?this.U.stop():g.TE(this.U);this.W.start();this.element.setAttribute("data-side",B===-1?"back":"forward");g.ww(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";T=R.width*.1-15;B=== 1?this.TZ?(this.T.style.right=T+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=R.width*.8-30+"px"):B===-1&&(this.TZ?(this.T.style.right="",this.T.style.left=T+"px"):(this.T.style.right="",this.T.style.left=R.width*.1-15+"px"));this.T.style.top=R.height*.5+15+"px";bdz(this,this.X?this.Y:z)}; g.I.Cb=function(B,z,T){T=T===void 0?null:T;g.TE(this.U);this.W.start();switch(B){case -1:B="back";break;case 1:B="forward";break;default:B=""}this.element.setAttribute("data-side",B);this.T.style.width="0";this.T.style.height="0";g.ww(this.element,"ytp-chapter-seek");this.updateValue("seekText",z);this.updateValue("seekTime","");z=this.BD("ytp-seek-icon");if(T){a:if(T){switch(T){case "PREMIUM_STANDALONE":T=xwr();break a;case "PREMIUM_STANDALONE_CAIRO":T=viX();break a}T=void 0}else T=null;this.updateValue("seekIcon", T);z.style.display="inline-block"}else z.style.display="none"};g.G(YKz,Mz);g.I=YKz.prototype;g.I.uc=function(B){this.lO||(this.lO=new $J(this.j),g.m(this,this.lO));var z,T;if((z=this.U0)==null?0:(T=z.menu)==null?0:T.menuRenderer)this.lO.open(this.U0.menu.menuRenderer,B.target),B.preventDefault()}; g.I.ip=function(){return!!this.T}; g.I.M2=function(){return!!this.T}; g.I.hO=function(B){B.target===this.overflowButton.element?B.preventDefault():(this.C4&&this.j.uO("innertubeCommand",this.C4),this.cS(!1))}; g.I.LT=function(){this.cS(!0);var B,z;((B=this.T)==null?0:(z=B.bannerData)==null?0:z.dismissedStatusKey)&&this.ra.push(this.T.bannerData.dismissedStatusKey);this.SL()}; g.I.A8=function(){this.SL();Wr(this)}; g.I.gOK=function(B){var z=this,T;if(B.id!==((T=this.T)==null?void 0:T.identifier)){this.SL();T=g.d(this.RK);for(var R=T.next();!R.done;R=T.next()){var h=R.value,W=void 0,b=void 0;if((R=(W=h)==null?void 0:(b=W.bannerData)==null?void 0:b.itemData)&&h.identifier===B.id){b=W=void 0;var l=((W=h)==null?void 0:(b=W.bannerData)==null?void 0:b.dismissedStatusKey)||"";if(this.ra.includes(l))return;this.T=h;this.banner.element.setAttribute("aria-label",R.accessibilityLabel||"");R.trackingParams&&(this.W=!0, this.j.setTrackingParams(this.badge.element,R.trackingParams));this.N.show();UA(this);this.XE.kW(!R.stayInApp);Gy5(this);wmX(this);hU(this);this.C4=g.u(R.onTapCommand,nV);if(h=g.u(R.menuOnTap,nV))this.U0=g.u(h,$SR);h=void 0;this.banner.update({thumbnail:(h=(R.thumbnailSources||[])[0])==null?void 0:h.url,title:R.productTitle,price:R.priceReplacementText?R.priceReplacementText:R.price,salesOriginalPrice:cFb(this),priceDropReferencePrice:L$r(this),promotionText:id5(this),priceA11yText:CSz(this),affiliateDisclaimer:R.affiliateDisclaimer, vendor:rF5(this)});l=b=W=h=void 0;((h=R)==null?0:(W=h.hiddenProductOptions)==null?0:W.showDropCountdown)&&((b=R)==null?0:(l=b.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Dm=new g.Si(function(){IQz(z)},1E3),this.XE.hide(),this.countdownTimer.show(),IQz(this)); this.j.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&lQK(this)&&(this.JZ=new g.Si(function(){qKH(z)},1E3),qKH(this))}}this.j.getRootNode()&&g.ww(this.j.getRootNode(),"ytp-featured-product-shown")}}; g.I.SL=function(){this.T&&(this.T=void 0,this.iF(),this.j.getRootNode()&&g.iH(this.j.getRootNode(),"ytp-featured-product-shown"))}; g.I.onVideoDataChange=function(B,z){var T=this;B==="dataloaded"&&Wr(this);var R,h,W;B=g.u((R=z.getWatchNextResponse())==null?void 0:(h=R.playerOverlays)==null?void 0:(W=h.playerOverlayRenderer)==null?void 0:W.productsInVideoOverlayRenderer,Jv7);this.overflowButton.show();this.dismissButton.hide();var b=B==null?void 0:B.featuredProductsEntityKey;this.trendingOfferEntityKey=B==null?void 0:B.trendingOfferEntityKey;this.RK.length||(F$d(this,b),hU(this));var l;(l=this.II)==null||l.call(this);this.II=g.zG.subscribe(function(){F$d(T, b);hU(T)})}; g.I.gF=function(){Wr(this);Gy5(this);wmX(this);Mz.prototype.gF.call(this)};g.G(M9P,g.O);M9P.prototype.onClick=function(){this.j.logClick(this.element,this.U)};g.G(V9K,g.nB);g.I=V9K.prototype;g.I.show=function(){g.nB.prototype.show.call(this);this.j.publish("infopaneldetailvisibilitychange",!0);this.j.logVisibility(this.element,!0);Q5X(this,!0)}; g.I.hide=function(){g.nB.prototype.hide.call(this);this.j.publish("infopaneldetailvisibilitychange",!1);this.j.logVisibility(this.element,!1);Q5X(this,!1)}; g.I.getId=function(){return this.W}; g.I.VO=function(){return this.itemData.length}; g.I.onVideoDataChange=function(B,z){if(z){var T,R,h,W;this.update({title:((T=z.YY)==null?void 0:(R=T.title)==null?void 0:R.content)||"",body:((h=z.YY)==null?void 0:(W=h.bodyText)==null?void 0:W.content)||""});var b;B=((b=z.YY)==null?void 0:b.trackingParams)||null;this.j.setTrackingParams(this.element,B);b=g.d(this.itemData);for(B=b.next();!B.done;B=b.next())B.value.dispose();this.itemData=[];var l;if((l=z.YY)==null?0:l.ctaButtons)for(z=g.d(z.YY.ctaButtons),l=z.next();!l.done;l=z.next())if(l=g.u(l.value, US5))l=new M9P(this.j,l,this.T),l.u1&&(this.itemData.push(l),l.Vu(this.items))}}; g.I.gF=function(){this.hide();g.nB.prototype.gF.call(this)};g.G(JFb,g.O);g.I=JFb.prototype;g.I.onVideoDataChange=function(B,z){gRP(this,z);this.mu&&$Ob(this,this.mu)}; g.I.fI=function(B){var z=this.j.getVideoData();this.videoId!==z.videoId&&gRP(this,z);$Ob(this,B.state);this.mu=B.state}; g.I.AN=function(B){(this.Y=B)?this.hide():this.T&&this.show()}; g.I.oV=function(){this.U||this.Hc();this.showControls=!0}; g.I.eV=function(){this.U||this.xW();this.showControls=!1}; g.I.Hc=function(){var B,z=(B=this.j)==null?void 0:B.getPlayerSize();B=z.width<380;var T;z=z.height<(((T=this.j)==null?0:T.isEmbedsShortsMode())?400:280);var R,h;(((R=this.j)==null?0:R.getPlayerStateObject().isCued())||((h=this.j)==null?0:g.X(h.getPlayerStateObject(),1024)))&&B&&z||!this.T||this.Y||(this.fade.show(),this.j.publish("infopanelpreviewvisibilitychange",!0),this.j.logVisibility(this.element,!0))}; g.I.xW=function(){this.T&&!this.Y&&(this.fade.hide(),this.j.publish("infopanelpreviewvisibilitychange",!1),this.j.logVisibility(this.element,!1))}; g.I.RkD=function(){this.U=!1;this.showControls||this.xW()};var v6K={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(v6K).reduce(function(B,z){B[v6K[z]]=z;return B},{}); var Dlc={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Dlc).reduce(function(B,z){B[Dlc[z]]=z;return B},{}); var kJg={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(kJg).reduce(function(B,z){B[kJg[z]]=z;return B},{});var KkI,mlg;KkI=[{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"}];mlg=[{option:0,text:bY(0)},{option:.25,text:bY(.25)},{option:.5,text:bY(.5)},{option:.75,text:bY(.75)},{option:1,text:bY(1)}]; g.qV=[{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 color",options:KkI},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:bY(.5)},{option:-1,text:bY(.75)},{option:0,text:bY(1)},{option:1,text:bY(1.5)},{option:2, text:bY(2)},{option:3,text:bY(3)},{option:4,text:bY(4)}]},{option:"background",text:"Background color",options:KkI},{option:"backgroundOpacity",text:"Background opacity",options:mlg},{option:"windowColor",text:"Window color",options:KkI},{option:"windowOpacity",text:"Window opacity",options:mlg},{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:bY(.25)},{option:.5,text:bY(.5)},{option:.75,text:bY(.75)},{option:1,text:bY(1)}]}];var n65=[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.G(K$z,g.kb);g.I=K$z.prototype; g.I.aY=function(B){B.repeat||(this.Y.OL=!1);var z=!1,T=B.keyCode,R=yO(B),h=!B.altKey&&!B.ctrlKey&&!B.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||n65.includes(T)),W=!1,b=!1,l=this.api.K();B.defaultPrevented?(h=!1,b=!0):l.qr&&!this.api.isMutedByEmbedsMutedAutoplay()&&(h=!1);if(T===9)z=!0;else{if(R)switch(T){case 32:case 13:if(R.tagName==="BUTTON"||R.tagName==="A"||R.tagName==="INPUT")z=!0,h=!1;else if(h){var w=R.getAttribute("role");!w||w!=="option"&&w!=="button"&&w.indexOf("menuitem")!==0|| (z=!0,R.click(),W=!0)}break;case 37:case 39:case 36:case 35:z=R.getAttribute("role")==="slider";break;case 38:case 40:w=R.getAttribute("role"),R=T===38?R.previousSibling:R.nextSibling,w==="slider"?z=!0:h&&(w==="option"?(R&&R.getAttribute("role")==="option"&&R.focus(),W=z=!0):w&&w.indexOf("menuitem")===0&&(R&&R.hasAttribute("role")&&R.getAttribute("role").indexOf("menuitem")===0&&R.focus(),W=z=!0))}if(h&&!W)switch(T){case 38:W=Math.min(this.api.getVolume()+5,100);et(this.LQ,W,!1);this.api.setVolume(W); b=W=!0;break;case 40:W=Math.max(this.api.getVolume()-5,0);et(this.LQ,W,!0);this.api.setVolume(W);b=W=!0;break;case 36:this.api.TO()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),b=W=!0);break;case 35:this.api.TO()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),b=W=!0)}}z&&lY(this,!0);(z||b)&&this.I1.aD();(W||h&&this.handleGlobalKeyDown(T,B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code,B.repeat))&&B.preventDefault();l.J&&(B={keyCode:B.keyCode, altKey:B.altKey,ctrlKey:B.ctrlKey,metaKey:B.metaKey,shiftKey:B.shiftKey,handled:B.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Pd("onKeyPress",B))}; g.I.hD=function(B){var z=B.keyCode;(!this.api.D("web_player_spacebar_control_bugfix")||this.api.D("web_player_spacebar_control_bugfix")&&!this.Y.Yu)&&this.handleGlobalKeyUp(z,B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code)&&B.preventDefault()}; g.I.handleGlobalKeyUp=function(B,z,T,R,h,W,b){this.api.publish("keyboardserviceglobalkeyup",{keyCode:B,shiftKey:z,ctrlKey:T,altKey:R,metaKey:h,key:W,code:b});z=!1;if(this.Y.OL)return z;(W=g.pB(this.api.bK()))&&(W=W.Or)&&W.vD&&(W.E9(B),z=!0);switch(B){case 9:lY(this,!0);z=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&(!this.api.D("web_player_spacebar_control_bugfix")&&!this.Y.Yu||this.api.D("web_player_spacebar_control_bugfix"))&&!this.api.K().qr){var l,w;B=(l=this.progressBar)== null?void 0:(w=l.U)==null?void 0:w.isEnabled;z=this.wR(B)}break;case 39:(Sp?R:T)&&!h&&this.api.TO()&&this.api.D("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),l=(l=this.api.getVideoData())?l.ZS:[],w=xOK(l,this.api.getCurrentTime()*1E3),w!==-1&&this.T!=null&&(this.T.Cb(1,l[w].title),this.api.seekTo(l[w].startTime/1E3,void 0,void 0,void 0,52),z=!0))}return z}; g.I.handleGlobalKeyDown=function(B,z,T,R,h,W,b,l){l||(this.Y.OL=!1);var w=!1,q=this.api.K();if(q.qr&&!this.api.isMutedByEmbedsMutedAutoplay())return w;var c=g.pB(this.api.bK());if(c&&(c=c.Or)&&c.vD)switch(B){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:w=c.AD(B)}q.X||w||(w=W||String.fromCharCode(B).toLowerCase(),this.U+=w,"awesome".indexOf(this.U)===0||this.api.D("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(w=!0,4===this.U.length&&this.U==="bday"&&this.api.D("web_player_rtr_ctrls")&& (APr(this.V),this.I1.aD()),7===this.U.length&&this.U==="awesome"&>z(this.api.getRootNode(),"ytp-color-party")):(this.U=w,w="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!w&&(!this.api.isMutedByEmbedsMutedAutoplay()||n65.includes(B))){var L=this.api.getVideoData(),C,r;c=(C=this.progressBar)==null?void 0:(r=C.U)==null?void 0:r.isEnabled;C=L?L.ZS:[];r=Sp?R:T;switch(B){case 80:z&&!q.IK&&(ZN(this.LQ,Dwl(),"Previous"),this.api.previousVideo(),w=!0);break;case 78:z&&!q.IK&&(ZN(this.LQ, JZ(),"Next"),this.api.nextVideo(),w=!0);break;case 74:this.api.TO()&&(this.api.startSeekCsiAction(),this.T?this.api.D("enable_key_press_seek_logging")?(w=wA(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.aT(-1,10,w)):this.T.aT(-1,10):ZN(this.LQ,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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),w=!0);break;case 76:this.api.TO()&&(this.api.startSeekCsiAction(),this.T?this.api.D("enable_key_press_seek_logging")?(w=wA(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.aT(1,10,w)):this.T.aT(1,10):ZN(this.LQ,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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),w=!0);break;case 37:this.api.TO()&&(this.api.startSeekCsiAction(),r?(r=vRH(C,this.api.getCurrentTime()*1E3),r!==-1&&this.T!=null&&(this.T.Cb(-1,C[r].title),this.api.seekTo(C[r].startTime/1E3,void 0,void 0,void 0,53),w=!0)):(this.T?this.api.D("enable_key_press_seek_logging")?(w=wA(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.T.aT(-1,5,w)):this.T.aT(-1,5):ZN(this.LQ,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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),w=!0));break;case 39:this.api.TO()&&(this.api.startSeekCsiAction(),r?this.api.D("web_enable_keyboard_shortcut_for_timely_actions")||(r=xOK(C,this.api.getCurrentTime()*1E3),r!==-1&&this.T!=null&&(this.T.Cb(1,C[r].title),this.api.seekTo(C[r].startTime/1E3,void 0,void 0,void 0,52),w=!0)):(this.T!=null?this.api.D("enable_key_press_seek_logging")?(w=wA(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.aT(1,5,w)):this.T.aT(1, 5):ZN(this.LQ,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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),w=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),et(this.LQ,this.api.getVolume(),!1)):(this.api.mute(),et(this.LQ,0,!0));w=!0;break;case 32:w=this.api.D("web_speedmaster_spacebar_control")?!this.api.K().IK:this.wR(c);break;case 75:w=this.wR(c);break;case 190:z?q.enableSpeedOptions&&nR5(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w+.25,!0),PtB(this.LQ,!1),w=!0):this.api.TO()&&(this.step(1),w=!0);break;case 188:z? q.enableSpeedOptions&&nR5(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w-.25,!0),PtB(this.LQ,!0),w=!0):this.api.TO()&&(this.step(-1),w=!0);break;case 70:ATb(this.api)&&(this.api.toggleFullscreen().catch(function(){}),w=!0); break;case 27:c?(this.progressBar.Iz(),w=!0):this.X()&&(w=!0)}if(q.controlsType!=="3")switch(B){case 67:g.QJ(this.api.bK())&&(q=this.api.getOption("captions","track"),this.api.toggleSubtitles(),xtY(this.LQ,!q||q&&!q.displayName),w=!0);break;case 79:iY(this,"textOpacity");break;case 87:iY(this,"windowOpacity");break;case 187:case 61:iY(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:iY(this,"fontSizeIncrement",!0,!0)}var F;z||T||R||(B>=48&&B<=57?F=B-48:B>=96&&B<=105&&(F=B-96));F!=null&&this.api.TO()&& (this.api.startSeekCsiAction(),q=this.api.getProgressState(),this.api.seekTo(F/10*(q.seekableEnd-q.seekableStart)+q.seekableStart,void 0,void 0,void 0,81),w=!0);w&&this.I1.aD()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:B,shiftKey:z,ctrlKey:T,altKey:R,metaKey:h,key:W,code:b,repeat:l},this.Y);return w}; g.I.step=function(B){this.api.TO();if(this.api.getPlayerStateObject().isPaused()){var z=this.api.getVideoData().U;z&&(z=z.video)&&this.api.seekBy(B/(z.fps||30),void 0,void 0,B>0?77:78)}}; g.I.wR=function(B){if(!this.api.K().IK){var z;var T,R=(z=this.api.getVideoData())==null?void 0:(T=z.getPlayerResponse())==null?void 0:T.playabilityStatus;if(R){var h;z=((h=g.u(R.miniplayer,mSg))==null?void 0:h.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else z=!1;z&&this.api.uO("onExpandMiniplayer");B?this.progressBar.Cd():(B=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.LQ.FA(B),B?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.I.gF=function(){g.TE(this.W);g.kb.prototype.gF.call(this)};g.G(g.cr,g.O);g.cr.prototype.C0=Wb(11); g.cr.prototype.rF=function(){var B=this.j.K(),z=B.Y||this.j.D("web_player_hide_overflow_button_if_empty_menu")&&this.nX.isEmpty();B=g.yW(B)&&g.g4(this.j)&&g.X(this.j.getPlayerStateObject(),128);var T=this.j.getPlayerSize();this.visible=this.j.UN()&&!B&&T.width>=240&&!g.Zr(this.j.getVideoData())&&!z&&!this.T&&!this.j.isEmbedsShortsMode();g.L2(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.j.TR();this.j.logVisibility(this.element,this.visible&&this.V)}; g.cr.prototype.Ga=function(B){g.O.prototype.Ga.call(this,B);this.j.logVisibility(this.element,this.visible&&B)}; g.cr.prototype.gF=function(){g.O.prototype.gF.call(this);g.iH(this.element,"ytp-overflow-button-visible")};g.G(uHY,g.nB);g.I=uHY.prototype;g.I.NJ=function(B){B=yO(B);g.hm(this.element,B)&&(g.hm(this.T,B)||g.hm(this.closeButton,B)||Hw(this))}; g.I.xW=function(){g.nB.prototype.xW.call(this);this.j.yT(this.element)}; g.I.show=function(){this.vD&&this.j.publish("OVERFLOW_PANEL_OPENED");g.nB.prototype.show.call(this);this.element.setAttribute("aria-modal","true");fQK(this,!0)}; g.I.hide=function(){g.nB.prototype.hide.call(this);this.element.removeAttribute("aria-modal");fQK(this,!1)}; g.I.onFullscreenToggled=function(B){!B&&this.Lk()&&Hw(this)}; g.I.isEmpty=function(){return this.actionButtons.length===0}; g.I.focus=function(){for(var B=g.d(this.actionButtons),z=B.next();!z.done;z=B.next())if(z=z.value,z.vD){z.focus();break}};g.G(Odz,g.O);g.G(Nvz,g.O);Nvz.prototype.onClick=function(B){g.WO(B,this.api)&&this.api.playVideoAt(this.index)};g.G(t9K,g.nB);g.I=t9K.prototype;g.I.show=function(){g.nB.prototype.show.call(this);this.T.Z(this.api,"videodatachange",this.dA);this.T.Z(this.api,"onPlaylistUpdate",this.dA);this.dA()}; g.I.hide=function(){g.nB.prototype.hide.call(this);g.$K(this.T);this.updatePlaylist(null)}; g.I.dA=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().Y&&(this.BD("ytp-playlist-menu-title-name").removeAttribute("href"),this.Y&&(this.V2(this.Y),this.Y=null))}; g.I.jm=function(){var B=this.playlist,z=B.author,T=z?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",R={CURRENT_POSITION:String(B.index+1),PLAYLIST_LENGTH:String(B.getLength())};z&&(R.AUTHOR=z);this.update({title:B.title,subtitle:g.Ix(T,R),playlisturl:this.api.getVideoUrl(!0)});z=B.U;if(z===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[B.index];else{T=g.d(this.playlistData);for(R=T.next();!R.done;R=T.next())R.value.dispose(); T=B.getLength();this.playlistData=[];for(R=0;R=this.U&&!B.Y&&!z.isAd()&&!this.api.isEmbedsShortsMode()}else B=!1;this.visible=B;this.kW(this.visible);g.L2(this.element,"ytp-search-button-visible",this.visible);g.L2(this.element,"ytp-show-search-title",!this.api.UN());this.api.logVisibility(this.element,this.visible&&this.V)}; o8.prototype.Ga=function(B){g.O.prototype.Ga.call(this,B);this.api.logVisibility(this.element,this.visible&&B)};g.G(F4,g.O); F4.prototype.trigger=function(B,z,T,R){this.show();if(this.W&&B!==this.W){var h=1;this.U&&(h=hGH(this));SKz(this,h,!1);RGl(this)}this.W=B;this.Y=this.W===-1?this.J:this.N;B="";z?(this.L+=z,B=g.JC(this.L)):this.L=0;this.updateValue(this.W===-1?"durationBack":"durationForward",B);if(this.T==="hidden"||this.T==="fading-out")z=0,this.T==="fading-out"&&(z=hGH(this),TMz(this)),BMb(this,z),this.T!=="fading-out"&&zGb(this,this.Y.querySelector(".ytp-seek-overlay-arrow-persistent")),this.T="fading-in";else if(this.T=== "fading-in"||this.T==="lingering")z=this.Y.querySelector(".ytp-seek-overlay-duration"),B=g.rk(this.j.K().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,z.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+B+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),TMz(this),this.T==="lingering"&&(this.X.stop(),this.X.start());this.TZ=(0,g.f)();T&&WPz(this,T,R)}; F4.prototype.LG=function(B,z,T,R){this.trigger(B,R)}; F4.prototype.aT=function(B,z,T){this.trigger(B,z);T&&(B=B===-1?this.N.visualElement:this.J.visualElement,T={seekData:T},(z=g.gd())&&g.BP(Ba)(void 0,z,B,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",T,void 0))}; F4.prototype.Cb=function(B,z,T){this.trigger(B,void 0,z,T)};g.G(g.I8,g.O);g.I=g.I8.prototype;g.I.eW=Wb(8);g.I.onClick=function(){var B=this,z=this.api.K(),T=this.api.getVideoData(this.api.getPresentingPlayerType()),R=this.api.getPlaylistId();z=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):z.getVideoUrl(T.videoId,R,void 0,!0);if(navigator.share)try{var h=navigator.share({title:T.title,url:z});h instanceof Promise&&h.catch(function(W){Yal(B,W)})}catch(W){W instanceof Error&&Yal(this,W)}else this.T.sU(),Hw(this.Y,this.element,!1); this.api.logClick(this.element)}; g.I.rF=function(){var B=this.api.K(),z=this.api.isEmbedsShortsMode();g.L2(this.element,"ytp-show-share-title",g.yW(B)&&!z);this.T.F_()&&z?(B=(this.api.NG().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ml(this.element,"right",B+"px")):z&&g.Ml(this.element,"right","0px");this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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=bTH(this);g.L2(this.element,"ytp-share-button-visible",this.visible);this.kW(this.visible);this.tooltip.TR();this.api.logVisibility(this.element,bTH(this)&&this.V)}; g.I.Ga=function(B){g.O.prototype.Ga.call(this,B);this.api.logVisibility(this.element,this.visible&&B)}; g.I.gF=function(){g.O.prototype.gF.call(this);g.iH(this.element,"ytp-share-button-visible")};g.G(wAB,g.nB);g.I=wAB.prototype;g.I.aV=function(B){B=yO(B);g.hm(this.X,B)||g.hm(this.closeButton,B)||Hw(this)}; g.I.xW=function(){g.nB.prototype.xW.call(this);this.tooltip.yT(this.element);this.api.logVisibility(this.T,!1);for(var B=g.d(this.Y),z=B.next();!z.done;z=B.next())z=z.value,this.api.hasVe(z.element)&&this.api.logVisibility(z.element,!1)}; g.I.show=function(){var B=this.vD;g.nB.prototype.show.call(this);this.rF();B||this.api.uO("onSharePanelOpened")}; g.I.DGJ=function(){this.vD&&this.rF()}; g.I.rF=function(){var B=this;g.ww(this.element,"ytp-share-panel-loading");g.iH(this.element,"ytp-share-panel-fail");var z=this.api.getVideoData(),T=this.api.getPlaylistId()&&this.W.checked;z.getSharePanelCommand&&s4(this.api.Ju(),z.getSharePanelCommand,{includeListId:T}).then(function(R){B.xd()||(g.iH(B.element,"ytp-share-panel-loading"),cEX(B,R))}); z=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",z);this.updateValue("linkText",z);this.updateValue("shareLinkWithUrl",g.Ix("Share link $URL",{URL:z}));lx(this.T);this.api.logVisibility(this.T,!0)}; g.I.onFullscreenToggled=function(B){!B&&this.Lk()&&Hw(this)}; g.I.focus=function(){this.T.focus()}; g.I.gF=function(){g.nB.prototype.gF.call(this);qal(this)};g.G(rEB,Mz);g.I=rEB.prototype;g.I.gF=function(){dyB(this);Mz.prototype.gF.call(this)}; g.I.hO=function(B){B.target!==this.dismissButton.element&&(this.cS(!1),this.j.uO("innertubeCommand",this.onClickCommand))}; g.I.LT=function(){this.sE=!0;this.cS(!0);this.iF()}; g.I.mWu=function(B){this.L=B;this.iF()}; g.I.onVideoDataChange=function(B,z){if(B=!!z.videoId&&this.videoId!==z.videoId)this.videoId=z.videoId,this.sE=!1,this.WD=!0,this.J=this.UE=!1,dyB(this),Gwl(this,!1),this.U=this.T=!1,dA(this),oDP(this);if(B||!z.videoId)this.TZ=this.W=!1;var T,R;if(z==null?0:(T=z.getPlayerResponse())==null?0:(R=T.videoDetails)==null?0:R.isLiveContent)this.UJ(!1);else{var h,W,b;z=g.u((h=z.getWatchNextResponse())==null?void 0:(W=h.playerOverlays)==null?void 0:(b=W.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer, Jv7);this.L=this.enabled=!1;if(z){if(h=z==null?void 0:z.featuredProductsEntityKey){W=g.zG.getState().entities;var l;if((l=LN(W,"featuredProductsEntity",h))==null?0:l.productsData){this.UJ(!1);return}}this.enabled=!0;if(!this.W){var w;l=(w=z.badgeInteractionLogging)==null?void 0:w.trackingParams;(this.W=!!l)&&this.j.setTrackingParams(this.badge.element,l||null)}if(!this.TZ){var q;if(this.TZ=!((q=z.dismissButton)==null||!q.trackingParams)){var c;this.j.setTrackingParams(this.dismissButton.element,((c= z.dismissButton)==null?void 0:c.trackingParams)||null)}}z.isContentForward&&(w=z.productsData,Gwl(this,!0),oDP(this),w=Iuz(this,w),q=[],w.length>0&&q.push(w[0]),w.length>1&&(c=new g.O({B:"div",G:"ytp-suggested-action-more-products-icon"}),g.m(this,c),q.push(c),q.push.apply(q,g.Q(w.slice(1)))),this.X=new g.O({B:"div",S:q,G:"ytp-suggested-action-content-forward-container"}),g.m(this,this.X),this.zZ.element.append(this.X.element));this.text=g.aU(z.text);var L;if(w=(L=z.dismissButton)==null?void 0:L.a11yLabel)this.Kf= g.aU(w);this.onClickCommand=z.onClickCommand;this.timing=z.timing;this.A$()}qhB(this);UA(this);this.iF()}}; g.I.ip=function(){return!this.L&&this.enabled&&!this.sE&&!this.j.UN()&&!this.O0&&(this.J||this.WD)}; g.I.U8=function(B){Mz.prototype.U8.call(this,B);if(this.T||this.U)this.timing&&Gf(this.timing.preview)&&(this.T=!1,dA(this),this.U=!1,dA(this),this.j.I7("shopping_overlay_preview_collapsed"),this.j.I7("shopping_overlay_preview_expanded"),B=AU(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Gf(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.j.I7("shopping_overlay_expanded"),B.end=this.timing.expanded.endSec*1E3),this.j.A$([B])), this.UE=!0,UA(this);dA(this)}; g.I.UJ=function(B){(this.J=B)?(a4(this),UA(this,!1)):(dyB(this),this.cD.start());this.iF()}; g.I.A$=function(B){var z=this.timing;B=(B===void 0?0:B)+this.j.getCurrentTime();var T=[],R=z.visible,h=z.preview;z=z.expanded;Gf(R)&&(LPb(R,B),T.push(AU(R.startSec,R.endSec,"shopping_overlay_visible")));Gf(h)&&(LPb(h,B),R=h.startSec+1,T.push(AU(h.startSec,R,"shopping_overlay_preview_collapsed")),T.push(AU(R,h.endSec,"shopping_overlay_preview_expanded")));Gf(z)&&(LPb(z,B),T.push(AU(z.startSec,z.endSec,"shopping_overlay_expanded")));this.j.A$(T)}; g.I.iF=function(){Mz.prototype.iF.call(this);this.j.getRootNode()&&g.L2(this.j.getRootNode(),"ytp-shopping-pill-shown",this.ip())};g.G(UyP,g.O); UyP.prototype.rF=function(){var B=this.api.K();this.kW(g.yW(B)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.vD);var z=this.api.getVideoData(),T=!1;this.api.getPresentingPlayerType()===2?T=!!z.videoId&&!!z.isListed&&!!z.author&&!!z.aK&&!!z.profilePicture:g.yW(B)&&(T=!!z.videoId&&!!z.aK&&!!z.profilePicture&&!g.Zr(z)&&!B.Y&&!(B.L&&this.api.getPlayerSize().width<200));var R=z.profilePicture;B=g.yW(B)?z.expandedTitle:z.author;R=R===void 0? "":R;B=B===void 0?"":B;T?(this.U!==R&&(this.T.style.backgroundImage="url("+R+")",this.U=R),this.updateValue("channelLogoLabel",g.Ix("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:B})),g.ww(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.iH(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,T&&this.V);this.api.logVisibility(this.channelName,T&&this.V);this.subscribeButton&&(this.subscribeButton.channelId=z.W3);this.updateValue("expandedTitle",z.expandedTitle)};g.G(a8,g.nB);a8.prototype.show=function(){g.nB.prototype.show.call(this);this.T.start()}; a8.prototype.hide=function(){g.nB.prototype.hide.call(this);this.T.stop()}; a8.prototype.MK=function(B,z){B==="dataloaded"&&((this.Up=z.Up,this.Ip=z.Ip,isNaN(this.Up)||isNaN(this.Ip))?this.Y&&(this.j.I7("intro"),this.j.removeEventListener(g.YQ("intro"),this.L),this.j.removeEventListener(g.lu("intro"),this.X),this.j.removeEventListener("onShowControls",this.W),this.hide(),this.Y=!1):(this.j.addEventListener(g.YQ("intro"),this.L),this.j.addEventListener(g.lu("intro"),this.X),this.j.addEventListener("onShowControls",this.W),B=new g.Wj(this.Up,this.Ip,{priority:9,namespace:"intro"}), this.j.A$([B]),this.Y=!0))};g.G(Uh,g.O);Uh.prototype.onClick=function(){this.j.ZP()}; Uh.prototype.rF=function(){var B=!0;g.yW(this.j.K())&&(B=B&&this.j.NG().getPlayerSize().width>=480);this.kW(B);this.updateValue("icon",this.j.dE()?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,C:{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"}}]}: {B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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"}}]})};g.G(VnB,g.O);VnB.prototype.gF=function(){this.T=null;g.O.prototype.gF.call(this)};g.G(MV,g.O);MV.prototype.onClick=function(){this.j.uO("innertubeCommand",this.U)}; MV.prototype.TZ=function(B){B!==this.L&&(this.update({title:B,ariaLabel:B}),this.L=B);B?this.show():this.hide()}; MV.prototype.N=function(){this.T.disabled=this.U==null;g.L2(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.l$()};g.G(VL,MV);VL.prototype.onClickCommand=function(B){g.u(B,Bx)&&this.l$()}; VL.prototype.updateVideoData=function(B,z){var T,R,h;B=g.u((T=z.getWatchNextResponse())==null?void 0:(R=T.playerOverlays)==null?void 0:(h=R.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,QB);T=g.u(B==null?void 0:B.playerBarActionButton,g.mE);if(this.j.D("web_player_updated_entrypoint")){this.J=yw(T==null?void 0:T.text);var W;R=(W=T==null?void 0:T.tooltip)!=null?W:"View chapter";this.X.setAttribute("title",R)}this.U=T==null?void 0:T.command;MV.prototype.N.call(this)}; VL.prototype.l$=function(){var B=this.J,z=this.W.T,T,R=((T=this.j.getLoopRange())==null?void 0:T.type)==="clips";if(z.length>1&&!R){B=this.j.getProgressState().current*1E3;T=Y_(z,B);B=z[T].title||"Chapters";if(T!==this.currentIndex||this.Y)this.j.uO("innertubeCommand",z[T].onActiveCommand),this.currentIndex=T;this.Y=!1}else this.Y=!0;MV.prototype.TZ.call(this,B)};g.G(QL,g.Gt);QL.prototype.U=function(){var B;(B=this.element.parentElement)==null||B.classList.contains("ytp-right-controls-left");(this.T=!this.T)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; QL.prototype.isExpanded=function(){return this.T};g.G(yL,g.O);yL.prototype.Y=function(B){g.X(B.state,32)?yEr(this,this.api.QW()):this.vD&&(g.X(B.state,16)||g.X(B.state,1))||this.fade.hide()}; yL.prototype.MQ=function(){var B=this.api.getPlayerStateObject();(g.X(B,32)||g.X(B,16))&&gDd(this)}; yL.prototype.W=function(){this.frameIndex=NaN;gDd(this)}; yL.prototype.hide=function(){this.T&&yEr(this,null);g.O.prototype.hide.call(this)};g.G(JEP,g.O);g.I=JEP.prototype;g.I.onClick=function(){var B=this;if(this.j.K().U0||this.j.K().L){this.j.logClick(this.element);try{this.j.toggleFullscreen().catch(function(z){B.d8(z)})}catch(z){this.d8(z)}}else Hw(this.message,this.element,!0)}; g.I.d8=function(B){String(B).includes("fullscreen error")?g.KV(B):g.kV(B);this.lB()}; g.I.lB=function(){this.disable();this.message.Hc(this.element,!0)}; g.I.pK=function(){dS()===this.j.getRootNode()?this.Y.start():(this.Y.stop(),this.message&&this.message.hide())}; g.I.LP=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var B=window.screen.width*.9,z=window.screen.height*.9,T=Math.max(window.outerWidth,window.innerWidth),R=Math.max(window.outerHeight,window.innerHeight);if(T>R!==B>z){var h=T;T=R;R=h}B>T&&z>R&&this.lB()}}; g.I.disable=function(){var B=this;if(!this.message){var z=(FY(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.nB(this.j,{B:"div",nf:["ytp-popup","ytp-generic-popup"],C:{role:"alert",tabindex:"0"},S:[z[0],{B:"a",C:{href:"https://support.google.com/youtube/answer/6276924", target:this.j.K().N},Yd:z[2]},z[4]]},100,!0);this.message.hide();g.m(this,this.message);this.message.subscribe("show",function(T){B.U.D3(B.message,T)}); g.Pw(this.j,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.I.rF=function(){var B=ATb(this.j),z=this.j.K().L&&this.j.getPlayerSize().width<250;this.kW(B&&!z);var T;((T=this.j.K())==null?0:T.D("embeds_use_parent_visibility_in_ve_logging"))?this.j.logVisibility(this.element,this.vD&&this.V):this.j.logVisibility(this.element,this.vD)}; g.I.Tn=function(B){if(B){var z=g.UL(this.j,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.j.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(T){g.KV(T)})}else z=g.UL(this.j,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); B=pA5(this,B);z=this.message?null:z;this.update({title:z,icon:B});this.U.Hu().TR()}; g.I.gF=function(){this.message||((0,this.T)(),this.T=null);g.O.prototype.gF.call(this)}; g.I.Ga=function(B){g.O.prototype.Ga.call(this,B);var z;((z=this.j.K())==null?0:z.D("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.vD&&B)};g.G(gA,g.O);gA.prototype.onClick=function(){this.j.logClick(this.element);this.j.seekBy(this.T,!0);var B=this.T>0?1:-1,z=Math.abs(this.T),T=this.j.m4().Im;T&&T.aT(B,z);this.U.isActive()?this.Y=!0:(B=["ytp-jump-spin"],this.T<0&&B.push("backwards"),this.element.classList.add.apply(this.element.classList,g.Q(B)),g.Bi(this.U))};g.G(JU,MV);JU.prototype.onClickCommand=function(B){g.u(B,yvK)&&this.l$()}; JU.prototype.updateVideoData=function(){var B,z;this.U=(B=PGd(this))==null?void 0:(z=B.onTap)==null?void 0:z.innertubeCommand;MV.prototype.N.call(this)}; JU.prototype.l$=function(){var B="",z=this.W.L,T,R=(T=PGd(this))==null?void 0:T.headerTitle;T=R?g.aU(R):"";var h;R=((h=this.j.getLoopRange())==null?void 0:h.type)==="clips";z.length>1&&!R&&(B=this.j.getProgressState().current*1E3,h=PSr(z,B),B=h!=null?z[h].title:T,h!=null&&h!==this.currentIndex&&(this.j.uO("innertubeCommand",z[h].onActiveCommand),this.currentIndex=h));MV.prototype.TZ.call(this,B)};g.G(po,g.O);po.prototype.onClick=function(){this.j.uO("onCollapseMiniplayer");this.j.logClick(this.element)}; po.prototype.rF=function(){this.visible=!this.j.isFullscreen();this.kW(this.visible);this.j.logVisibility(this.element,this.visible&&this.V)}; po.prototype.Ga=function(B){g.O.prototype.Ga.call(this,B);this.j.logVisibility(this.element,this.visible&&B)};g.G($_,g.O);$_.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.X);this.updateValue("slidervalue",this.T);xyz(this,this.T)}; $_.prototype.OC=function(){Pr(this,Number(this.U.value));this.U.focus()}; $_.prototype.AP=function(B){if(!B.defaultPrevented){switch(B.code){case "ArrowDown":B=-this.X;break;case "ArrowUp":B=this.X;break;default:return}Pr(this,Math.min(this.W,Math.max(Number((this.T+B).toFixed(2)),this.Y)))}};g.G(vDz,$_);g.I=vDz.prototype;g.I.onVolumeChange=function(B){if(this.L)this.L=!1;else{var z=B.volume;z===0||B.muted?Pr(this,0):Pr(this,z)}}; g.I.OC=function(){$_.prototype.OC.call(this);this.J(this.T)}; g.I.AP=function(B){$_.prototype.AP.call(this,B);this.J(this.T)}; g.I.h9=function(B){var z=B.deltaX||B.deltaY;z=B.deltaMode?g.yQ(this.T+z,0,100):g.yQ(this.T+g.yQ(z/10,-10,10),0,100);z===0?Pr(this,0):Pr(this,z);this.J(z);B.preventDefault()}; g.I.iP=function(B,z){this.L=!0;B===0||z?this.j.mute():(this.j.isMuted()&&this.j.unMute(),this.j.setVolume(B))};g.G(DyK,g.O);g.G(vr,g.O);g.I=vr.prototype;g.I.T8=function(B){this.visible=B.width>=300||this.lO;this.kW(this.visible);this.j.logVisibility(this.element,this.visible&&this.V)}; g.I.mB=function(){this.j.K().zZ?this.j.isMuted()?this.j.unMute():this.j.mute():Hw(this.message,this.element,!0);this.j.logClick(this.element)}; g.I.S2Z=function(B){if(this.j.K().zZ&&this.T)if(B.target===this.Y){var z;if(!this.j.t6()||((z=this.T)==null?0:z.isVisible))this.mB();else{var T;(T=this.T)!=null&&x_(T,!0)}}else{var R;(R=this.T)!=null&&x_(R,!0)}else this.mB()}; g.I.onVolumeChange=function(B){this.setVolume(B.volume,B.muted)}; g.I.setVolume=function(B,z){var T=this,R=z?0:B/100,h=this.j.K();B=R===0?1:B>50?1:0;if(this.J!==B){var W=this.RK;isNaN(W)?nDz(this,B):ebX(this.zZ,function(l){nDz(T,W+(T.J-W)*l)},250); this.J=B}R=R===0?1:0;if(this.L!==R){var b=this.UE;isNaN(b)?ubK(this,R):ebX(this.WD,function(l){ubK(T,b+(T.L-b)*l)},250); this.L=R}h.zZ&&(h=g.UL(this.j,"Mute","m"),R=g.UL(this.j,"Unmute","m"),this.updateValue("title",z?R:h),this.update({"data-title-no-tooltip":z?"Unmute":"Mute"}),this.tooltip.TR(-120))}; g.I.Ga=function(B){g.O.prototype.Ga.call(this,B);this.j.logVisibility(this.element,this.visible&&B)}; var KPH=["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"],myY=["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.G(g.DL,g.O);g.I=g.DL.prototype;g.I.onStateChange=function(B){this.J0(B.state);var z;((z=this.j.K())==null?0:z.D("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.vD&&this.V)}; g.I.J0=function(B){var z=g.Ve(this.j.getVideoData()),T=!1;B.isOrWillBePlaying()?B=z?4:2:g.X(B,2)?(B=3,T=z):B=1;this.element.disabled=T;if(this.T!==B){z=null;switch(B){case 2:z=g.UL(this.j,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:z="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:z=g.UL(this.j,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:z="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}B=== 3?this.update({title:z,icon:HTb(this,B)}):(this.update({title:z}),(z=HTb(this,B))&&this.T&&this.T!==3?E_l(this.transition,this.element,z):this.updateValue("icon",z));this.tooltip.TR();this.T=B}}; g.I.onVideoDataChange=function(){g.L2(this.element,"ytp-play-button-playlist",g.g4(this.j))}; g.I.wR=function(B){this.j.logClick(this.element);if(this.j.getPlayerStateObject().isOrWillBePlaying())this.j.pauseVideo();else{if(this.j.isMinimized()&&this.j.getPlayerStateObject().isCued()){var z={},T;if((T=this.j.getVideoData())==null?0:T.X)z.cttAuthInfo={token:this.j.getVideoData().X,videoId:this.j.getVideoData().videoId};tY("direct_playback",z);this.j.Op().timerName="direct_playback"}this.j.playVideo()}this.j.isMinimized()&&(B==null?void 0:B.type)==="click"&&this.element.blur()}; g.I.Ga=function(B){g.O.prototype.Ga.call(this,B);var z;((z=this.j.K())==null?0:z.D("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.vD&&B)};g.G(g.k_,g.O);g.I=g.k_.prototype;g.I.onVideoDataChange=function(){OTP(this);this.W&&(this.V2(this.W),this.W=null);this.videoData=this.j.getVideoData(1);if(this.playlist=this.j.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.Z(this.j,"progresssync",this.T$);this.Y=NMl(this);fur(this);this.Tl(this.j.NG().getPlayerSize())}; g.I.Tl=function(B){B=B===void 0?this.j.NG().getPlayerSize():B;var z,T=((z=this.j.getLoopRange())==null?void 0:z.type)==="clips";B=(g.g4(this.j)||this.T&&g.xN(this.j)&&!this.j.D("web_hide_next_button")||tnX(this))&&!T&&(this.T||B.width>=400);this.kW(B);this.j.logVisibility(this.element,B)}; g.I.onClick=function(B){this.j.logClick(this.element);var z=!0;this.L?z=g.WO(B,this.j):B.preventDefault();z&&(this.T&&this.j.getPresentingPlayerType()===5?this.j.publish("ytoprerollinternstitialnext"):this.T?(Cu(this.j.Op()),this.j.publish("playlistnextbuttonclicked",this.element),this.j.nextVideo(!0)):this.Y?this.j.seekTo(0):(Cu(this.j.Op()),this.j.publish("playlistprevbuttonclicked",this.element),this.j.previousVideo(!0)))}; g.I.T$=function(){var B=NMl(this);B!==this.Y&&(this.Y=B,fur(this))}; g.I.gF=function(){this.U&&(this.U(),this.U=null);OTP(this);g.O.prototype.gF.call(this)};g.G(XAY,g.O);g.I=XAY.prototype;g.I.Oz=function(B){this.OZ(B.pageX);this.UZ(B.pageX+B.deltaX);ZTl(this)}; g.I.OZ=function(B){this.TZ=B-this.lO}; g.I.UZ=function(B){B-=this.lO;!isNaN(this.TZ)&&this.thumbnails.length>0&&(this.N=B-this.TZ,this.thumbnails.length>0&&this.N!==0&&(this.Y=this.J+this.N,B=BDz(this,this.Y),this.Y<=this.T/2&&this.Y>=SaY(this)?(this.api.seekTo(B,!1,void 0,void 0,25),g.Ml(this.WD,"transform","translateX("+(this.Y-this.T/2)+"px)"),jjd(this,B)):this.Y=this.J))}; g.I.Uz=function(){this.UE&&(this.UE.jx=!0);var B=(0,g.f)()-this.IK<300;if(Math.abs(this.N)<5&&!B){this.IK=(0,g.f)();B=this.TZ+this.N;var z=this.T/2-B;this.OZ(B);this.UZ(B+z);ZTl(this);this.api.logClick(this.X)}ZTl(this)}; g.I.Yn=function(){Ko(this,this.api.getCurrentTime())}; g.I.play=function(B){this.api.seekTo(BDz(this,this.Y),void 0,void 0,void 0,26);this.api.playVideo();B&&this.api.logClick(this.playButton)}; g.I.onExit=function(B){this.api.seekTo(this.cD,void 0,void 0,void 0,63);this.api.playVideo();B&&this.api.logClick(this.dismissButton)}; g.I.ox=function(B,z){this.lO=B;this.T=z;Ko(this,this.api.getCurrentTime())}; g.I.enable=function(){this.isEnabled||(this.isEnabled=!0,this.cD=this.api.getCurrentTime(),jjd(this,this.cD),g.L2(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.zZ=this.Z(this.element,"wheel",this.Oz),this.logVisibility(this.isEnabled))}; g.I.disable=function(){this.isEnabled=!1;this.hide();g.L2(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.zZ&&this.V2(this.zZ);this.logVisibility(this.isEnabled)}; g.I.reset=function(){this.disable();this.W=[];this.XE=!1}; g.I.logVisibility=function(B){this.api.logVisibility(this.element,B);this.api.logVisibility(this.X,B);this.api.logVisibility(this.dismissButton,B);this.api.logVisibility(this.playButton,B)}; g.I.gF=function(){for(;this.U.length;){var B=void 0;(B=this.U.pop())==null||B.dispose()}g.O.prototype.gF.call(this)}; g.G(eGd,g.O);g.G(sjB,g.O);g.G(zKP,g.O);g.G(ma,g.O);ma.prototype.jk=function(B){return B==="PLAY_PROGRESS"?this.J:B==="LOAD_PROGRESS"?this.L:B==="LIVE_BUFFER"?this.X:this.Y};hKX.prototype.update=function(B,z,T,R){T=T===void 0?0:T;this.width=z;this.W=T;this.T=z-T-(R===void 0?0:R);this.position=g.yQ(B,T,T+this.T);this.Y=this.position-T;this.U=this.Y/this.T};g.G(WCz,g.O);g.G(g.Hr,g.Gt);g.I=g.Hr.prototype; g.I.Od=function(){var B=!1,z=this.api.getVideoData();if(!z)return B;this.api.I7("timedMarkerCueRange");lKX(this);for(var T=g.d(z.MG),R=T.next();!R.done;R=T.next()){R=R.value;var h=void 0,W=(h=this.Kf[R])==null?void 0:h.markerType;h=void 0;var b=(h=this.Kf[R])==null?void 0:h.markers;if(!b)break;if(W==="MARKER_TYPE_TIMESTAMPS"){B=g.d(b);for(W=B.next();!W.done;W=B.next()){h=W.value;W=new WCz;b=void 0;W.title=((b=h.title)==null?void 0:b.simpleText)||"";W.timeRangeStartMillis=Number(h.startMillis);W.T= Number(h.durationMillis);var l=b=void 0;W.onActiveCommand=(l=(b=h.onActive)==null?void 0:b.innertubeCommand)!=null?l:void 0;CEY(this,W)}ral(this,this.L);B=this.L;W=this.tj;h=[];b=null;for(l=0;lw&&(b.end=w);w=DOB(w,w+c);h.push(w);b=w;W[w.id]=B[l].onActiveCommand}}this.api.A$(h);this.mD=this.Kf[R];B=!0}else if(W==="MARKER_TYPE_HEATMAP"){R=this.Kf[R];c=q=h=w=l=b=void 0;if(R&& R.markers){W=(h=(c=R.markersMetadata)==null?void 0:(q=c.heatmapMetadata)==null?void 0:q.minHeightDp)!=null?h:0;h=(b=(w=R.markersMetadata)==null?void 0:(l=w.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?b:60;b=this.T.length;l=null;for(w=0;w=c&&F<=L&&q.push(r)}h>0&&(this.UE.style.height= h+"px");c=this.W[w];L=q;r=W;var A=h,a=w===0;a=a===void 0?!1:a;TDz(c,A);C=L;F=c.U;a=a===void 0?!1:a;var V=1E3/C.length,M=[];M.push({x:0,y:100});for(var x=0;x0&&(l=q[q.length-1])}g.fo(this)}h=void 0;W=[];if(R=(h=R.markersDecoration)==null?void 0:h.timedMarkerDecorations)for(R=g.d(R),h=R.next();!h.done;h=R.next())h=h.value,w=l=b=void 0,W.push({visibleTimeRangeStartMillis:(b=h.visibleTimeRangeStartMillis)!=null?b:-1,visibleTimeRangeEndMillis:(l=h.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(w=h.decorationTimeMillis)!= null?w:NaN,label:h.label?g.aU(h.label):""});R=W;this.heatMarkersDecorations=R}}z.qH=this.L;g.L2(this.element,"ytp-timed-markers-enabled",B);return B}; g.I.ox=function(){g.fo(this);tU(this);ral(this,this.L);if(this.U){var B=g.Pt(this.element).x||0;this.U.ox(B,this.X)}}; g.I.dhD=function(){var B=this.api.getVideoData();B&&Q1H(this,B)}; g.I.onClickCommand=function(B){if(B=g.u(B,Bx)){var z=B.key;B.isVisible&&z&&GM5(this,z)}}; g.I.t6K=function(B){this.api.uO("innertubeCommand",this.tj[B.id])}; g.I.l$=function(){tU(this);var B=this.api.getCurrentTime();(Bthis.clipEnd)&&this.Os()}; g.I.gp=function(B){if(!B.defaultPrevented){var z=!1;switch(B.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);z=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);z=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);z=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);z=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&Eh(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);z=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&Eh(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),z=!0}z&&B.preventDefault()}}; g.I.MK=function(B,z){this.updateVideoData(z,B==="newdata")}; g.I.iJ=function(){this.MK("newdata",this.api.getVideoData())}; g.I.updateVideoData=function(B,z){z=z===void 0?!1:z;var T=!!B&&B.u1();T&&(X1(B)||MOB(this)?this.Qn=!1:this.Qn=B.allowLiveDvr,g.L2(this.api.getRootNode(),"ytp-enable-live-buffer",!(B==null||!X1(B))),this.api.D("enable_custom_playhead_parsing")&&Q1H(this,B));n45(this,this.api.TO());if(z){if(T){z=B.clipEnd;this.clipStart=B.clipStart;this.clipEnd=z;So(this);for(ZL(this,this.TZ,this.U0);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.Dm={};var R;(R=this.U)==null||R.reset(); h3(this);g.L2(this.api.getRootNode(),"ytp-fine-scrubbing-exp",uY(this))}else this.Os();this.b0()}if(B){var h;R=((h=this.VI)==null?void 0:h.type)==="clips";if(h=!B.isLivePlayback){h=this.api.getVideoData();z=g.yB(h);T=qbz(h);var W;h=z!=null||T!=null&&T.length>0||((W=h.AK)==null?void 0:W.length)>0}if(h&&!R){W=this.api.getVideoData();R=g.yB(W);h=!1;if(R==null?0:R.markersMap){h=this.api.getVideoData();var b;h.Zr=((b=R.visibleOnLoad)==null?void 0:b.key)||h.Zr;b=g.d(R.markersMap);for(R=b.next();!R.done;R= b.next())R=R.value,R.key&&R.value&&(this.Dm[R.key]=R.value,R.value.onChapterRepeat&&(h.Ec=R.value.onChapterRepeat));h.Zr!=null&&GM5(this,h.Zr);h=!0}var l;if(((l=W.AK)==null?void 0:l.length)>0){l=g.zG.getState().entities;b=g.d(W.AK);for(R=b.next();!R.done;R=b.next()){R=R.value;T=void 0;z=(T=LN(l,"macroMarkersListEntity",R))==null?void 0:T.markersList;var w=T=void 0;if(((T=z)==null?void 0:T.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=z)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.Kf[R]= z}h=this.Od()||h}!h&&(l=qbz(W))&&(ca5(this,l),W.ZS=this.T,i_P(this));yaz(this,null);B.IM&&this.W.length===0&&(B=B.IM,l=B.key,B.isVisible&&l&&GM5(this,l))}else b_z(this),lKX(this)}tU(this)}; g.I.Tu=function(B){this.J&&!g.X(B.state,32)&&this.api.getPresentingPlayerType()!==3&&this.J.cancel();var z;((z=this.U)==null?0:z.isEnabled)&&g.X(B.state,8)&&this.api.pauseVideo();B=this.api.getPresentingPlayerType()===2||!this.api.TO()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.L2(this.r3,"ytp-hide-scrubber-button",B)}; g.I.Uj=function(B){var z=!!this.VI!==!!B,T=this.VI;this.VI=B;yaz(this,T);(B==null?void 0:B.type)!=="clips"&&B||(B?(this.updateValue("clipstarticon",gi5()),this.updateValue("clipendicon",gi5()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",GoY()),this.updateValue("clipendicon",IsX()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),z&&(this.updateVideoData(this.api.getVideoData(), !0),g.fo(this)),So(this));ZL(this,this.TZ,this.U0)}; g.I.MFO=function(B,z,T){var R=g.Pt(this.element),h=NV(this).T,W=T?T.getAttribute("data-tooltip"):void 0,b=T?T.getAttribute("data-position"):void 0,l=T?T.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;b&&(B=n0(this.Y,Number(T.getAttribute("data-position")),0)*h+g.Pt(this.progressBar).x);this.aK.x=B-R.x;this.aK.y=z-R.y;B=NV(this);T=sh(this,B);z=0;var w;if((w=this.api.getVideoData())==null?0:X1(w))(w=this.api.getProgressState().seekableEnd)&&T>w&&(T=w,B.position=n0(this.Y,w)*NV(this).T),z=this.Y.U; MOB(this)&&(z=this.Y.U);w=W||g.JC(this.Qn?T-this.Y.T:T-z);z=B.position+this.BV;T-=this.api.p4();var q;if((q=this.U)==null||!q.isEnabled)if(this.api.QW()){if(this.T.length>1){q=eo(this,this.aK.x,!0);if(!this.VI)for(R=0;R1)for(R=0;R0)for(q=this.aK.x,R=g.d(this.L),h=R.next();!h.done;h=R.next())h=h.value,b=Oh(this,h.timeRangeStartMillis/ (this.Y.T*1E3),NV(this)),g.L2(h.element,"ytp-timed-marker-hover",b<=q&&b+6>=q);R=this.tooltip.scale;q=this.api.D("delhi_modern_web_player")?67:45;l=(isNaN(l)?0:l)-q*R;this.api.D("web_key_moments_markers")?this.mD?(q=PSr(this.L,T*1E3),q=q!=null?this.L[q].title:""):(q=Y_(this.T,T*1E3),q=this.T[q].title):(q=Y_(this.T,T*1E3),q=this.T[q].title);q||(l+=16*R);this.tooltip.scale===.6&&(g.Zf(this.api.K())?(l=this.api.NG().getPlayerSize().height-225,R=this.api.D("delhi_modern_web_player")?70:110,l=q?l+R:l+ R+16):l=q?110:126);R=Y_(this.T,T*1E3);this.XE=g4z(this,T,R)?R:g4z(this,T,R+1)?R+1:-1;g.L2(this.api.getRootNode(),"ytp-progress-bar-snap",this.XE!==-1&&this.T.length>1);R=!1;h=g.d(this.heatMarkersDecorations);for(b=h.next();!b.done;b=h.next()){b=b.value;var c=T*1E3;c>=b.visibleTimeRangeStartMillis&&c<=b.visibleTimeRangeEndMillis&&(q=b.label,w=g.JC(b.decorationTimeMillis/1E3),R=!0)}this.qr!==R&&(this.qr=R,this.api.logVisibility(this.Nh,this.qr));g.L2(this.api.getRootNode(),"ytp-progress-bar-decoration", R);R=160*this.tooltip.scale*2;h=q.length*(this.N?8.55:5.7);h=h<=R?h:R;b=h<160*this.tooltip.scale;R=3;!b&&h/2>B.position&&(R=1);!b&&h/2>this.X-B.position&&(R=2);this.api.K().L&&(l-=10);this.W.length&&this.W[0].u1&&(l-=14*(this.N?2:1),this.cD||(this.cD=!0,this.api.logVisibility(this.UE,this.cD)));var L;if(uY(this)&&(((L=this.U)==null?0:L.isEnabled)||this.MG>0)){var C;l-=((C=this.U)==null?0:C.isEnabled)?z_(this):this.MG}L=void 0;uY(this)&&!this.api.D("web_player_hide_fine_scrubbing_edu")&&(L="Pull up for precise seeking", this.lO||(this.lO=!0,this.api.logVisibility(this.R7,this.lO)));this.tooltip.Sm(z,T,w,!!W,l,q,R,L)}else this.tooltip.Sm(z,T,w,!!W,l);g.ww(this.api.getRootNode(),"ytp-progress-bar-hover");U6z(this)}; g.I.J0K=function(){this.b0();g.iH(this.api.getRootNode(),"ytp-progress-bar-hover");this.cD&&(this.cD=!1,this.api.logVisibility(this.UE,this.cD));this.lO&&(this.lO=!1,this.api.logVisibility(this.R7,this.lO))}; g.I.ZFf=function(B,z){var T=g.Pt(this.element);this.LF=B-T.x;uY(this)&&this.U&&(this.U.XE?Ko(this.U,this.api.getCurrentTime()):EDz(this.U),this.U.show(),g.L2(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.L2&&(this.L2.dispose(),this.L2=null);this.RQ=z;this.Ip=this.api.getCurrentTime();this.T.length>1&&this.XE!==-1?this.api.seekTo(this.T[this.XE].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(sh(this,NV(this)),!1,void 0,void 0,7);g.ww(this.element,"ytp-drag");(this.yn= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.I.Kli=function(){if(uY(this)&&this.U){var B=z_(this);this.MG>=B*.5?(this.U.enable(),Ko(this.U,this.api.getCurrentTime()),m6H(this,B)):h3(this)}if(g.X(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var z;if((z=this.U)==null?0:z.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.XE!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&Eh(this,this.Ip,this.T[this.XE].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.XE].startTime/1E3,void 0,void 0,void 0,7);else{B=sh(this,NV(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&Eh(this,this.Ip,B,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(B,void 0,void 0,void 0,7);z=g.d(this.heatMarkersDecorations);for(var T=z.next();!T.done;T=z.next())T=T.value,B*1E3>=T.visibleTimeRangeStartMillis&&B*1E3<=T.visibleTimeRangeEndMillis&& this.api.logClick(this.Nh)}g.iH(this.element,"ytp-drag");this.RK&&(this.WD.src=this.RK);this.yn&&!g.X(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.I.pcF=function(B,z){var T=this,R=NV(this),h=sh(this,R);this.api.D("enable_custom_playhead_parsing")&&!this.api.NG().Gr&&(R.position>this.LF+2?this.C4&&(this.WD.src=this.C4):R.position1);this.kW(B&&this.j.NG().getPlayerSize().width>=400);this.j.logVisibility(this.element,this.vD);var z=1;B&&this.isActive()&&(z=2);if(this.T!==z){this.T=z;switch(z){case 1:this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{B:"path",i$:!0,C:{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",g.oid())}g.L2(this.element,"ytp-remote-button-active",this.isActive())}}; Wd.prototype.U=function(){if(this.j.getOption("remote","quickCast"))this.j.setOption("remote","quickCast",!0);else{var B=this.WB,z=this.element;if(B.Lk())B.xW();else{B.initialize();a:{var T=g.d(B.iz.items);for(var R=T.next();!R.done;R=T.next())if(R=R.value,R.priority===1){T=R;break a}T=null}T&&(T.open(),B.Hc(z));B.Hc(z)}}this.j.logClick(this.element)};g.G(bR,g.O);bR.prototype.T=function(B){var z=this.j.K(),T=400;this.j.D("web_player_small_hbp_settings_menu")&&z.X?T=300:z.L&&(T=200);B=this.U&&B.width>=T;this.kW(B);this.j.D("embeds_use_parent_visibility_in_ve_logging")?this.j.logVisibility(this.element,B&&this.V):this.j.logVisibility(this.element,B)}; bR.prototype.Y=function(){if(this.WB.vD)this.WB.xW();else{var B=g.QJ(this.j.bK());B&&!B.loaded&&(B.vH("tracklist",{includeAsr:!0}).length||B.load());this.j.logClick(this.element);this.WB.Hc(this.element)}}; bR.prototype.updateBadge=function(){var B=this.j.isHdr(),z=this.j.getPresentingPlayerType(),T=z!==2&&z!==3,R=g.$N(this.j),h=T&&!!g.pB(this.j.bK());z=h&&R.displayMode===1;R=h&&R.displayMode===2;T=(h=z||R)||!T?null:this.j.getPlaybackQuality();g.L2(this.element,"ytp-hdr-quality-badge",B);g.L2(this.element,"ytp-hd-quality-badge",!B&&(T==="hd1080"||T==="hd1440"));g.L2(this.element,"ytp-4k-quality-badge",!B&&T==="hd2160");g.L2(this.element,"ytp-5k-quality-badge",!B&&T==="hd2880");g.L2(this.element,"ytp-8k-quality-badge", !B&&T==="highres");g.L2(this.element,"ytp-3d-badge-grey",!B&&h&&z);g.L2(this.element,"ytp-3d-badge",!B&&h&&R)};g.G(YE,RM);YE.prototype.isLoaded=function(){var B=g.PH(this.j.bK());return B!==void 0&&B.loaded}; YE.prototype.rF=function(){g.PH(this.j.bK())!==void 0&&this.j.getPresentingPlayerType()!==3?this.T||(this.WB.Fu(this),this.T=!0):this.T&&(this.WB.sJ(this),this.T=!1);hh(this,this.isLoaded())}; YE.prototype.onSelect=function(B){this.isLoaded();B?this.j.loadModule("annotations_module"):this.j.unloadModule("annotations_module");this.j.publish("annotationvisibility",B)}; YE.prototype.gF=function(){this.T&&this.WB.sJ(this);RM.prototype.gF.call(this)};g.G(lR,g.kJ);lR.prototype.rF=function(){var B=this.j.getAvailableAudioTracks();B.length>1?(this.n1(g.s9(B,this.T)),this.tracks=g.mK(B,this.T,this),this.countLabel.oI(B.length?" ("+B.length+")":""),this.publish("size-change"),this.hk(this.T(this.j.getAudioTrack())),this.enable(!0)):this.enable(!1)}; lR.prototype.BH=function(B){g.kJ.prototype.BH.call(this,B);this.j.setAudioTrack(this.tracks[B]);this.WB.UX()}; lR.prototype.T=function(B){return B.toString()};g.G(wC,RM); wC.prototype.U=function(){var B=this.j.getPresentingPlayerType();if(B!==2&&B!==3&&g.xN(this.j))this.T||(this.WB.Fu(this),this.T=!0,this.Y.push(this.Z(this.j,"videodatachange",this.U)),this.Y.push(this.Z(this.j,"videoplayerreset",this.U)),this.Y.push(this.Z(this.j,"onPlaylistUpdate",this.U)),this.Y.push(this.Z(this.j,"autonavchange",this.W)),B=this.j.getVideoData(),this.W(B.autonavState),this.j.logVisibility(this.element,this.T));else if(this.T){this.WB.sJ(this);this.T=!1;B=g.d(this.Y);for(var z=B.next();!z.done;z= B.next())this.V2(z.value)}}; wC.prototype.W=function(B){hh(this,B!==1)}; wC.prototype.onSelect=function(B){this.j.by(B?2:1);this.T&&(this.j.logVisibility(this.element,this.T),this.j.logClick(this.element))}; wC.prototype.gF=function(){this.T&&this.WB.sJ(this);RM.prototype.gF.call(this)};g.G(H_l,g.N2);H_l.prototype.onClick=function(B){B.preventDefault();var z,T;(z=g.CB(this.j))==null||(T=z.m0())==null||T.xW();var R,h;(R=g.CB(this.j))==null||(h=R.Vd())==null||h.Hc(B.target)};g.G(fKB,g.kJ);g.I=fKB.prototype; g.I.U3=function(){var B=this.j.getPresentingPlayerType();if(B!==2&&B!==3){this.WD=this.j.ac();var z=this.j.getAvailableQualityLevels();if(this.T){this.W={};B=g.w4(this.j,"getAvailableQualityData",[]);B=g.d(B);for(var T=B.next();!T.done;T=B.next())T=T.value,this.W[T.qualityLabel]=T;B=Object.keys(this.W);z[z.length-1]==="auto"&&B.push("auto");this.RK=new Set(z)}else if(this.X){T=g.w4(this.j,"getAvailableQualityData",[]);B=[];T=g.d(T);for(var R=T.next();!R.done;R=T.next())R=R.value,this.N[R.quality]= R,R.quality&&B.push(R.quality);z[z.length-1]==="auto"&&B.push("auto")}else B=z;g.bX5(this.j)&&this.j.K_()&&B.unshift("missing-qualities");z=this.j.app.Ji();T=z.getVideoData();if(!T.U||!T.U.video||T.U.video.qualityOrdinal<1080||T.Av)z=!1;else{R=/^qsa/.test(T.clientPlaybackNonce);var h="r";T.U.id.indexOf(";")>=0&&(R=/^[a-p]/.test(T.clientPlaybackNonce),h="x");R?(z.OE("iqss",{trigger:h},!0),z=!0):z=!1}z&&B.unshift("inline-survey");this.n1(B);z=this.j.getVideoData().cotn?!0:!1;T=this.UE.zO();T=!g.Zf(this.j.K())|| !(z===void 0?0:z)||!(T===void 0||T);z=this.U;T=T===void 0?!1:T;z.OT&&g.L2(z.BD("ytp-panel-footer"),"ytp-panel-hide-footer",T===void 0?!1:T);if(B.length){this.Oj();this.enable(!0);return}}this.enable(!1)}; g.I.Oj=function(){if(this.T){var B=this.j.getPreferredQuality();this.RK.has(B)&&(this.L=this.j.getPlaybackQuality(),this.TZ=this.j.getPlaybackQualityLabel(),B==="auto"?(this.hk(B),this.oI(this.DO(B))):this.hk(this.TZ))}else B=this.j.getPreferredQuality(),this.options[B]&&(this.L=this.j.getPlaybackQuality(),this.hk(B),B==="auto"&&this.oI(this.DO(B)))}; g.I.BH=function(B){if(B!=="missing-qualities"){g.kJ.prototype.BH.call(this,B);var z=this.T?this.W[B]:this.N[B];var T=z==null?void 0:z.quality,R=z==null?void 0:z.formatId,h=z==null?void 0:z.paygatedQualityDetails;z=h==null?void 0:h.endpoint;if(h){var W;h=(W=this.options[B])==null?void 0:W.element;this.j.logClick(h)}if(this.T){var b,l;if((b=g.u(z,g.Avq))==null?0:(l=b.popup)==null?0:l.notificationActionRenderer)this.j.uO("innertubeCommand",z);else if(z){this.j.uO("innertubeCommand",z);return}R?this.j.setPlaybackQuality(T, R):this.j.setPlaybackQuality(T)}else{if(this.X){var w,q;if((w=g.u(z,g.Avq))==null?0:(q=w.popup)==null?0:q.notificationActionRenderer)this.j.uO("innertubeCommand",z);else if(z){this.j.uO("innertubeCommand",z);return}}this.j.setPlaybackQuality(B)}this.WB.xW();this.U3()}}; g.I.open=function(){for(var B=g.d(Object.values(this.options)),z=B.next();!z.done;z=B.next()){z=z.value;var T=void 0;this.j.hasVe((T=z)==null?void 0:T.element)&&(T=void 0,this.j.logVisibility((T=z)==null?void 0:T.element,!0))}g.kJ.prototype.open.call(this);this.j.logClick(this.element)}; g.I.gO=function(B,z,T){var R=this;if(B==="missing-qualities")return new g.N2({B:"a",nf:["ytp-menuitem"],C:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.j.K().N,tabindex:"0",role:"menuitemradio"},S:[{B:"div",nf:["ytp-menuitem-label"],Yd:"{{label}}"}]},z,this.DO(B));if(B!=="inline-survey"){var h,W=(h=this.T?this.W[B]:this.N[B])==null?void 0:h.paygatedQualityDetails;h=W==null?void 0:W.veType;W=W==null?void 0:W.trackingParams;z=g.kJ.prototype.gO.call(this,B,z,T);W?(this.j.createServerVe(z.element, this,!0),this.j.setTrackingParams(z.element,W)):h&&this.j.createClientVe(z.element,this,h,!0);return z}B=[{B:"span",Yd:"Looks good?"}];T=g.d([!0,!1]);W=T.next();for(h={};!W.done;h={wi:void 0},W=T.next())h.wi=W.value,W=new g.O({B:"span",G:"ytp-menuitem-inline-survey-response",S:[h.wi?yxK():asb()],C:{tabindex:"0",role:"button"}}),W.listen("click",function(b){return function(){var l=R.j.app.Ji();l.OE("iqsr",{tu:b.wi});l.getVideoData().Av=!0;R.WB.xW();R.U3()}}(h)),B.push(W); return new g.N2({B:"div",G:"ytp-menuitem",C:{"aria-disabled":"true"},S:[{B:"div",nf:["ytp-menuitem-label"],S:B}]},z)}; g.I.DO=function(B,z){z=z===void 0?!1:z;if(B==="missing-qualities")return{B:"div",Yd:"Missing options?"};if(B==="inline-survey")return"";var T=this.X||this.T?[tOb(this,B,z,!1)]:[NDB(this,B)];var R=this.j.getPreferredQuality();z||R!=="auto"||B!=="auto"||(T.push(" "),this.T?T.push(tOb(this,this.TZ,z,!0,["ytp-menu-label-secondary"])):this.X?T.push(tOb(this,this.L,z,!0,["ytp-menu-label-secondary"])):T.push(NDB(this,this.L,["ytp-menu-label-secondary"])));return{B:"div",S:T}};g.G(qf,$_);qf.prototype.OC=function(){$_.prototype.OC.call(this);this.L&&j1K(this)}; qf.prototype.TZ=function(){this.J()}; qf.prototype.N=function(){this.j.setPlaybackRate(this.T,!0)}; qf.prototype.AP=function(B){$_.prototype.AP.call(this,B);this.J();j1K(this);B.preventDefault()};g.G(iR,g.O);g.I=iR.prototype;g.I.init=function(){this.V4(this.T);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.Y)}; g.I.bP=function(B){if(!B.defaultPrevented){switch(B.keyCode){case 37:case 40:var z=-this.J;break;case 39:case 38:z=this.J;break;default:return}this.V4(this.T+z);B.preventDefault()}}; g.I.QB=function(B){var z=this.T;z+=(B.deltaX||-B.deltaY)<0?-this.N:this.N;this.V4(z);B.preventDefault()}; g.I.Wl=function(B){B=(B-g.Pt(this.W).x)/this.TZ*this.range+this.U;this.V4(B)}; g.I.V4=function(B,z){z=z===void 0?"":z;B=g.yQ(B,this.U,this.Y);z===""&&(z=B.toString());this.updateValue("valuenow",B);this.updateValue("valuetext",z);this.UE.style.left=(B-this.U)/this.range*(this.TZ-this.XE)+"px";this.T=B}; g.I.focus=function(){this.zZ.focus()};g.G(cd,iR);cd.prototype.WD=function(){this.j.setPlaybackRate(this.T,!0)}; cd.prototype.V4=function(B){iR.prototype.V4.call(this,B,Z_z(this,B).toString());this.X&&(XvY(this),this.RK())}; cd.prototype.updateValues=function(){var B=this.j.getPlaybackRate();Z_z(this,this.T)!==B&&(this.V4(B),XvY(this))};g.G(eKY,g.Gt);eKY.prototype.focus=function(){this.T.focus()};g.G(s1X,Vu);g.G(E4P,g.kJ);g.I=E4P.prototype;g.I.DO=function(B){return B==="1"?"Normal":B.toLocaleString()}; g.I.rF=function(){var B,z=(B=this.j.getVideoData())==null?void 0:B.Gz();B=this.j.getPresentingPlayerType(z);this.enable(B!==2&&B!==3);zUK(this)}; g.I.n1=function(B){g.kJ.prototype.n1.call(this,B);this.L&&this.L.U.focus()}; g.I.Np=function(B){g.kJ.prototype.Np.call(this,B);B?(this.TZ=this.Z(this.j,"onPlaybackRateChange",this.onPlaybackRateChange),zUK(this),Sbz(this,this.j.getPlaybackRate())):(this.V2(this.TZ),this.TZ=null)}; g.I.onPlaybackRateChange=function(B){var z=this.j.getPlaybackRate();!this.W&&this.N.includes(z)||BT5(this,z);Sbz(this,B)}; g.I.gO=function(B,z,T){return B===this.T&&TTX(this.j)?g.kJ.prototype.gO.call(this,B,z,T,{B:"div",G:"ytp-speed-slider-menu-footer",S:[this.L]}):g.kJ.prototype.gO.call(this,B,z,T)}; g.I.BH=function(B){g.kJ.prototype.BH.call(this,B);B===this.T?this.j.setPlaybackRate(this.X,!0):this.j.setPlaybackRate(Number(B),!0);TTX(this.j)&&B===this.T||this.WB.UX()}; g.I.wk=function(B){var z=B===this.T;this.W=!1;z&&Lx(this.j)&&!TTX(this.j)?(B=new s1X(this.j),g.J0(this.WB,B)):g.kJ.prototype.wk.call(this,B)};g.G(hUB,g.kJ);g.I=hUB.prototype;g.I.hk=function(B){g.kJ.prototype.hk.call(this,B)}; g.I.YP=function(B){return B.option.toString()}; g.I.getOption=function(B){return this.settings[B]}; g.I.DO=function(B){return this.getOption(B).text||""}; g.I.BH=function(B){g.kJ.prototype.BH.call(this,B);this.publish("settingChange",this.setting,this.settings[B].option)};g.G(rC,g.Qu);rC.prototype.PV=function(B){for(var z=g.d(Object.keys(B)),T=z.next();!T.done;T=z.next()){var R=T.value;if(T=this.zQ[R]){var h=B[R].toString();R=!!B[R+"Override"];T.options[h]&&(T.hk(h),T.W.element.setAttribute("aria-checked",String(!R)),T.T.element.setAttribute("aria-checked",String(R)))}}}; rC.prototype.Sl=function(B,z){this.publish("settingChange",B,z)};g.G(oq,g.kJ);oq.prototype.T=function(B){return B.languageCode}; oq.prototype.DO=function(B){return this.languages[B].languageName||""}; oq.prototype.BH=function(B){this.publish("select",B);this.j.logClick(this.element);g.pn(this.WB)};g.G(YXY,g.kJ);g.I=YXY.prototype;g.I.O3=function(B){return g.Ep(B)?"__off__":B.displayName}; g.I.DO=function(B){return B==="__off__"?"Off":B==="__translate__"?"Auto-translate":B==="__contribute__"?"Add subtitles/CC":B==="__correction__"?"Suggest caption corrections":(B==="__off__"?{}:this.tracks[B]).displayName}; g.I.BH=function(B){if(B==="__translate__")this.T.open();else if(B==="__contribute__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();var z=g.nX(this.j.K(),this.j.getVideoData());g.Zw(z)}else if(B==="__correction__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();var T=lPz(this);FX(this,T);g.kJ.prototype.BH.call(this,this.O3(T));var R,h;T=(z=this.j.getVideoData().getPlayerResponse())==null?void 0:(R=z.captions)==null?void 0:(h=R.playerCaptionsTracklistRenderer)== null?void 0:h.openTranscriptCommand;this.j.uO("innertubeCommand",T);this.WB.UX();this.W&&this.j.logClick(this.W)}else{if(B==="__correction__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();z=lPz(this);FX(this,z);g.kJ.prototype.BH.call(this,this.O3(z));var W,b;z=(T=this.j.getVideoData().getPlayerResponse())==null?void 0:(W=T.captions)==null?void 0:(b=W.playerCaptionsTracklistRenderer)==null?void 0:b.openTranscriptCommand;this.j.uO("innertubeCommand",z)}else this.j.logClick(this.element), FX(this,B==="__off__"?{}:this.tracks[B]),g.kJ.prototype.BH.call(this,B);this.WB.UX()}}; g.I.rF=function(){var B=this.j.getOptions();B=B&&B.indexOf("captions")!==-1;var z=this.j.getVideoData(),T=z&&z.cU,R,h=!((R=this.j.getVideoData())==null||!g.Np(R));R={};if(B||T){var W;if(B){var b=this.j.getOption("captions","track");R=this.j.getOption("captions","tracklist",{includeAsr:!0});var l=h?[]:this.j.getOption("captions","translationLanguages");this.tracks=g.mK(R,this.O3,this);h=g.s9(R,this.O3);var w,q;lPz(this)&&((W=z.getPlayerResponse())==null?0:(w=W.captions)==null?0:(q=w.playerCaptionsTracklistRenderer)== null?0:q.openTranscriptCommand)&&h.push("__correction__");if(l.length&&!g.Ep(b)){if((W=b.translationLanguage)&&W.languageName){var c=W.languageName;W=l.findIndex(function(L){return L.languageName===c}); JKz(l,W)}Wqd(this.T,l);h.push("__translate__")}W=this.O3(b)}else this.tracks={},h=[],W="__off__";h.unshift("__off__");this.tracks.__off__={};T&&h.unshift("__contribute__");this.tracks[W]||(this.tracks[W]=b,h.push(W));this.n1(h);this.hk(W);b&&b.translationLanguage?this.T.hk(this.T.T(b.translationLanguage)):$VY(this.T);B&&this.X.PV(this.j.getSubtitlesUserSettings());this.countLabel.oI(R&&R.length?" ("+R.length+")":"");this.publish("size-change");this.j.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.I.Bl=function(B){var z=this.j.getOption("captions","track");z=g.zR(z);z.translationLanguage=this.T.languages[B];FX(this,z)}; g.I.Sl=function(B,z){if(B==="reset")this.j.resetSubtitlesUserSettings();else{var T={};T[B]=z;this.j.updateSubtitlesUserSettings(T)}bwz(this,!0);this.L.start();this.X.PV(this.j.getSubtitlesUserSettings())}; g.I.nLi=function(B){B||g.TE(this.L)}; g.I.gF=function(){g.TE(this.L);g.kJ.prototype.gF.call(this)}; g.I.open=function(){g.kJ.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.j.createClientVe(this.W,this,167341),this.j.logVisibility(this.W,!0))};g.G(wCK,g.gp);g.I=wCK.prototype; g.I.initialize=function(){if(!this.isInitialized){var B=this.j.K();this.isInitialized=!0;try{this.zH=new fKB(this.j,this)}catch(T){g.KV(Error("QualityMenuItem creation failed"))}g.m(this,this.zH);var z=new YXY(this.j,this);g.m(this,z);B.Y||(z=new YE(this.j,this),g.m(this,z));B.enableSpeedOptions&&(z=new E4P(this.j,this),g.m(this,z));(g.yW(B)||B.X)&&(B.U||B.Kf)&&(z=new H_l(this.j,this),g.m(this,z));B.Nh&&!B.D("web_player_move_autonav_toggle")&&(B=new wC(this.j,this),g.m(this,B));B=new lR(this.j,this); g.m(this,B);this.j.publish("settingsMenuInitialized");uvY(this.settingsButton,this.iz.VO())}}; g.I.Fu=function(B){this.initialize();this.iz.Fu(B);uvY(this.settingsButton,this.iz.VO())}; g.I.sJ=function(B){this.vD&&this.iz.VO()<=1&&this.hide();this.iz.sJ(B);uvY(this.settingsButton,this.iz.VO())}; g.I.Hc=function(B){this.initialize();this.iz.VO()>0&&g.gp.prototype.Hc.call(this,B)}; g.I.xW=function(){this.tv?this.tv=!1:g.gp.prototype.xW.call(this)}; g.I.show=function(){g.gp.prototype.show.call(this);g.ww(this.j.getRootNode(),"ytp-settings-shown")}; g.I.hide=function(){g.gp.prototype.hide.call(this);g.iH(this.j.getRootNode(),"ytp-settings-shown")}; g.I.UJ=function(B){this.j.logVisibility(this.element,B);this.j.publish("settingsMenuVisibilityChanged",B)};g.G(iwB,g.O);g.I=iwB.prototype;g.I.onClick=function(){if(ctb(this)&&(this.j.toggleSubtitles(),this.j.logClick(this.element),!this.isEnabled())){var B=!1,z=g.OW(g.fD(),65);g.Zf(this.j.K())&&z!=null&&(B=!z);B&&this.j.K().D("web_player_nitrate_promo_tooltip")&&this.j.publish("showpromotooltip",this.element)}}; g.I.mhE=function(B){var z,T;(z=g.CB(this.j))==null||(T=z.m0())==null||T.Hc(B)}; g.I.isEnabled=function(){return!!this.j.getOption("captions","track").displayName}; g.I.rF=function(){var B=ctb(this),z=300;this.j.K().L&&(z=480);if(this.j.K().X){this.updateValue("title",g.UL(this.j,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var T=B}else{if(B)(T=this.BD("ytp-subtitles-button-icon"))==null||T.setAttribute("fill-opacity","1"),this.updateValue("title",g.UL(this.j,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var R;(R=this.BD("ytp-subtitles-button-icon"))== null||R.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}T=!0}this.tooltip.TR();T=T&&this.j.NG().getPlayerSize().width>=z;this.kW(T);this.j.D("embeds_use_parent_visibility_in_ve_logging")?this.j.logVisibility(this.element,T&&this.V):this.j.logVisibility(this.element,T);B?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.I.Ga=function(B){g.O.prototype.Ga.call(this,B);this.j.K().D("embeds_use_parent_visibility_in_ve_logging")&&this.j.logVisibility(this.element,this.vD&&B)};g.G(g.Iq,g.O);g.I=g.Iq.prototype; g.I.l$=function(){var B=this.api.NG().getPlayerSize().width,z=this.N;this.api.K().L&&(z=400);z=B>=z&&(!G_(this)||!g.X(this.api.getPlayerStateObject(),64));this.kW(z);g.L2(this.element,"ytp-time-display-allow-autohide",z&&B<400);B=this.api.getProgressState();if(z){var T=this.api.getPresentingPlayerType();z=this.api.getCurrentTime(T,!1);this.U&&(z-=B.airingStart);dC(this)&&(z-=this.VI.startTimeMs/1E3);dC(this)||G_(this)||!this.Y||(z-=this.api.getDuration(T,!1));var R=g.JC(z);this.W!==R&&(this.updateValue("currenttime", R),this.W=R);T=dC(this)?(this.VI.endTimeMs-this.VI.startTimeMs)/1E3:this.api.getDuration(T,!1);R=g.JC(T);this.X!==R&&(this.updateValue("duration",R),this.X=R,z&&(z=g.Ix("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.JC(z,!0),DURATION:g.JC(T,!0)}),this.updateValue("timeDisplayAriaLabel",z)))}Lqz(this,B.isAtLiveHead);Ckd(this,this.api.getLoopRange())}; g.I.onLoopRangeChange=function(B){var z=this.VI!==B;this.VI=B;z&&(this.l$(),rtl(this))}; g.I.s7F=function(){this.api.setLoopRange(null)}; g.I.VkE=function(){this.Y=!this.Y;this.l$()}; g.I.onVideoDataChange=function(B,z,T){this.updateVideoData((this.api.K().D("enable_topsoil_wta_for_halftime")||this.api.K().D("enable_topsoil_wta_for_halftime_live_infra"))&&T===2?this.api.getVideoData(1):z);this.l$();rtl(this)}; g.I.updateVideoData=function(B){this.Rw=B.isLivePlayback&&!B.eI;this.U=X1(B);this.isPremiere=B.isPremiere;g.L2(this.element,"ytp-live",G_(this))}; g.I.onClick=function(B){B.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.I.gF=function(){this.T&&this.T();g.O.prototype.gF.call(this)};g.G(FqY,g.O);g.I=FqY.prototype;g.I.pK=function(){var B=this.api.F_();this.Y!==B&&(this.Y=B,oMK(this,this.api.getVolume(),this.api.isMuted()))}; g.I.gH=function(B){this.kW(B.width>=350)}; g.I.Xf=function(B){if(!B.defaultPrevented){var z=B.keyCode,T=null;z===37?T=this.volume-5:z===39?T=this.volume+5:z===36?T=0:z===35&&(T=100);T!==null&&(T=g.yQ(T,0,100),T===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(T)),B.preventDefault())}}; g.I.j2=function(B){var z=B.deltaX||-B.deltaY;B.deltaMode?this.api.setVolume(this.volume+(z<0?-10:10)):this.api.setVolume(this.volume+g.yQ(z/10,-10,10));B.preventDefault()}; g.I.P1O=function(){A3(this,this.T,!0,this.U,this.api.t6());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.I.Rr=function(B){var z=this.Y?78:52,T=this.Y?18:12;B-=g.Pt(this.J).x;this.api.setVolume(g.yQ((B-T/2)/(z-T),0,1)*100)}; g.I.xhZ=function(){A3(this,this.T,!1,this.U,this.api.t6());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.I.onVolumeChange=function(B){oMK(this,B.volume,B.muted)}; g.I.z2=function(){A3(this,this.T,this.isDragging,this.U,this.api.t6())}; g.I.gF=function(){g.O.prototype.gF.call(this);g.iH(this.L,"ytp-volume-slider-active")};g.G(aq,g.O); aq.prototype.onVideoDataChange=function(){var B=this.api.K();this.ox();this.visible=!!this.api.getVideoData().videoId&&!g.Zr(this.api.getVideoData(1));this.kW(this.visible);this.api.logVisibility(this.element,this.visible&&this.V);if(this.visible){var z=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",z)}B.Y&&(this.T&&(this.V2(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.ww(this.element,"no-link")); z=this.api.K();B=this.api.getVideoData();var T="";z.Y||(z=g.Of(z),z.indexOf("www.")===0&&(z=z.substring(4)),T=g.ev(B)?"Watch on YouTube Music":z==="youtube.com"?"Watch on YouTube":g.Ix("Watch on $WEBSITE",{WEBSITE:z}));this.updateValue("title",T)}; aq.prototype.onClick=function(B){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var z=this.api.K(),T=this.api.getVideoUrl(!g.p0(B),!1,!0,!0);if(g.yW(z)){var R={};g.yW(z)&&g.w4(this.api,"addEmbedsConversionTrackingParams",[R]);T=g.Qn(T,R)}g.bx(T,this.api,B);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; aq.prototype.ox=function(){var B={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{B:"path",i$:!0,G:"ytp-svg-fill",C:{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 "}}]}, z=28666,T=this.api.getVideoData();this.api.isEmbedsShortsMode()?B={B:"svg",C:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},S:[{B:"path",C:{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.ev(T)&&(B={B:"svg",C:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},S:[{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}}]},z=216163);g.ev(T)?g.ww(this.element,"ytp-youtube-music-button"):g.iH(this.element,"ytp-youtube-music-button");B.C=Object.assign({},B.C,{"aria-hidden":"true"});this.updateValue("logoSvg",B);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,z,!0)}; aq.prototype.Ga=function(B){g.O.prototype.Ga.call(this,B);this.api.logVisibility(this.element,this.visible&&B)};g.G(ddB,g.kb);g.I=ddB.prototype;g.I.MQ=function(){if(this.j.D("web_player_max_seekable_on_ended")||!g.X(this.j.getPlayerStateObject(),2))this.progressBar.l$(),this.zZ.l$()}; g.I.hI=function(){this.jd();this.I1.U?this.MQ():this.progressBar.b0()}; g.I.VB=function(){this.MQ();this.N.start()}; g.I.jd=function(){var B;if(B=!this.j.K().U){B=this.progressBar;var z=2*g.Xk()*B.X;B=B.Y.getLength()*1E3/B.api.getPlaybackRate()/z<300}B=B&&this.j.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;z=!B;this.I1.U||(B=z=!1);z?this.WD||(this.WD=this.Z(this.j,"progresssync",this.MQ)):this.WD&&(this.V2(this.WD),this.WD=null);B?this.N.isActive()||this.N.start():this.N.stop()}; g.I.ox=function(){var B=this.j.F_(),z=this.j.NG().getPlayerSize(),T=this.j.NG().Gr,R=aPK(this),h=Udz(this),W=Math.max(z.width-R*2,100);if(this.U0!==z.width||this.aK!==B||this.j.D("web_player_rtr_ctrls")&&this.LA!==T)this.U0=z.width,this.aK=B,this.LA=T,this.W.element.style.width=h+"px",this.W.element.style.left=R+"px",g.kMY(this.progressBar,R,h,B),this.j.Hu().Qx=h;T=this.Y;W=Math.min(570*(B?1.5:1),W);B=Math.min(413*(B?1.5:1),Math.round((z.height-M_H(this))*.82));T.maxWidth=W;T.maxHeight=B;T.RZ();this.jd(); this.j.K().D("html5_player_dynamic_bottom_gradient")&&MnK(this.EE,z.height)}; g.I.onVideoDataChange=function(){var B=this.j.getVideoData();this.Kf.style.background=B.Jj?B.Bk:"";this.UE&&$yB(this.UE,B.showSeekingControls);this.TZ&&$yB(this.TZ,B.showSeekingControls)}; g.I.jk=function(){return this.W.element};g.G(V_r,Mz);g.I=V_r.prototype;g.I.hO=function(B){B.target!==this.dismissButton.element&&(this.onClickCommand&&this.j.uO("innertubeCommand",this.onClickCommand),this.LT())}; g.I.LT=function(){this.enabled=!1;this.N.hide()}; g.I.onVideoDataChange=function(B,z){B==="dataloaded"&&QkP(this);B=[];var T,R,h,W;if(z=(W=g.u((T=z.getWatchNextResponse())==null?void 0:(R=T.playerOverlays)==null?void 0:(h=R.playerOverlayRenderer)==null?void 0:h.suggestedActionsRenderer,evs))==null?void 0:W.suggestedActions)for(T=g.d(z),R=T.next();!R.done;R=T.next())(R=g.u(R.value,sPP))&&g.u(R.trigger,ZyK)&&B.push(R);if(B.length!==0){T=[];B=g.d(B);for(R=B.next();!R.done;R=B.next())if(R=R.value,h=g.u(R.trigger,ZyK))W=(W=R.title)?g.aU(W):"View Chapters", z=h.timeRangeStartMillis,h=h.timeRangeEndMillis,z!=null&&h!=null&&R.tapCommand&&(T.push(new g.Wj(z,h,{priority:9,namespace:"suggested_action_button_visible",id:W})),this.suggestedActions[W]=R.tapCommand);this.j.A$(T)}}; g.I.ip=function(){return this.enabled}; g.I.UJ=function(){this.enabled?this.cD.start():a4(this);this.iF()}; g.I.gF=function(){QkP(this);Mz.prototype.gF.call(this)};var Ub={},Vg=(Ub.CHANNEL_NAME="ytp-title-channel-name",Ub.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Ub.LINK="ytp-title-link",Ub.SESSIONLINK="yt-uix-sessionlink",Ub.SUBTEXT="ytp-title-subtext",Ub.TEXT="ytp-title-text",Ub.TITLE="ytp-title",Ub);g.G(Qg,g.O);Qg.prototype.onClick=function(B){this.api.logClick(this.element);var z=this.api.K(),T=this.api.getVideoUrl(!g.p0(B),!1,!0);g.yW(z)&&(z={},g.w4(this.api,"addEmbedsConversionTrackingParams",[z]),T=g.Qn(T,z));g.bx(T,this.api,B)}; Qg.prototype.rF=function(){var B=this.api.getVideoData(),z=this.api.K();this.updateValue("title",B.title);var T={B:"a",G:Vg.CHANNEL_NAME,C:{href:"{{channelLink}}",target:"_blank"},Yd:"{{channelName}}"};this.api.K().Y&&(T={B:"span",G:Vg.CHANNEL_NAME,Yd:"{{channelName}}",C:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",T);ytK(this);this.api.getPresentingPlayerType()===2&&(T=this.api.getVideoData(),T.videoId&&T.isListed&&T.author&&T.aK&&T.profilePicture?(this.updateValue("channelLink", T.aK),this.updateValue("channelName",T.author),this.updateValue("channelTitleFocusable","0")):ytK(this));T=z.externalFullscreen||!this.api.isFullscreen()&&z.a$;g.L2(this.link,Vg.FULLERSCREEN_LINK,T);z.UE||!B.videoId||T||g.Zr(B)||z.Y?this.T&&(this.updateValue("url",null),this.V2(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.Z(this.link,"click",this.onClick)));z.Y&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.yW(z)?B.expandedTitle: B.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.G(g.gC,g.O);g.I=g.gC.prototype;g.I.setEnabled=function(B){if(this.type!=null)if(B)switch(this.type){case 3:case 2:Jtz(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.X=B}; g.I.Sm=function(B,z,T,R,h,W,b,l){if(!this.WD||this.env.L){this.type===3&&this.b0();this.type!==1&&(g.Ye(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.X&&this.fade.show(),this.U&&this.U.dispose(),(this.U=this.api.QW())&&this.U.subscribe("l",this.kU,this));if(l){var w=g.Dk(this.bg).height||141;this.RK.style.bottom=w+2+"px"}else this.RK.style.display="none";this.env.D("delhi_modern_web_player")?(this.update({pillTimeStamp:T,pillTitle:W!=null?W:"",eduText:l!=null?l:""}),g.ww(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:T,title:W!=null?W:"",eduText:l!=null?l:""}),g.L2(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!W));this.api.isInline()&&g.ww(this.bottomText,"ytp-modern-tooltip-text");g.L2(this.element,"ytp-text-detail",!!R);T=-1;this.U&&(T=kO(this.U,243*this.scale),this.env.D("web_l3_storyboard")&&this.U.levels.length===4&&(T=this.U.levels.length-1),T=pIr(this.U,T,z));$dr(this,T);if(b)switch(z=g.Dk(this.element).width,b){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=z+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=z/2+"px",this.title.style.textAlign="center"}pCP(this,!!R,B,h)}}; g.I.A1=function(){this.type===1&&this.b0()}; g.I.z_=function(B,z){if(this.type)if(this.type===3)this.b0();else return;gMd(this,B,3,z)}; g.I.TR=function(B){this.T&&!this.L&&this.T.hasAttribute("title")&&(this.Y=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.X&&Jtz(this,B))}; g.I.kU=function(B,z){B<=this.W&&this.W<=z&&(B=this.W,this.W=NaN,$dr(this,B))}; g.I.YEu=function(){gLb(this.U,this.W,243*this.scale)}; g.I.b0=function(){switch(this.type){case 2:var B=this.T;B.removeEventListener("mouseout",this.J);B.addEventListener("mouseover",this.XE);B.removeEventListener("blur",this.J);B.addEventListener("focus",this.XE);Pkz(this);break;case 3:Pkz(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.kU,this),this.U=null),this.api.removeEventListener("videoready",this.N),this.TZ.stop()}this.type=null;this.X&&this.fade.hide()}; g.I.yT=function(){if(this.T)for(var B=0;B=0;z--)if(this.qm[z]===B){this.qm.splice(z,1);break}vH(this.I1,64,this.qm.length>0)}; g.I.wG=function(){this.api.B7()&&this.api.TX();return!!this.UF||mdH(this)||g.Nb.prototype.wG.call(this)}; g.I.CG=Wb(3);g.I.eW=Wb(7);g.I.C0=Wb(10); g.I.iL=function(){var B=!this.wG(),z=B&&this.api.B7()&&!g.X(this.api.getPlayerStateObject(),2)&&!g.Zr(this.api.getVideoData())&&!this.api.K().Y&&!this.api.isEmbedsShortsMode(),T=this.ir&&g.g4(this.api)&&g.X(this.api.getPlayerStateObject(),128);B||T?(this.aU.show(),this.h2.show()):(this.aU.hide(),this.h2.hide(),this.api.yT(this.cV.element));z?this.R_.Hc():this.R_.xW();this.Cx&&AtY(this.Cx,this.a5||!B);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&nMH(this);g.Nb.prototype.iL.call(this)}; g.I.w7=function(B,z,T,R,h){B.style.left="";B.style.top="";B.style.bottom="";var W=g.Dk(B),b=R||this.Cx&&g.hm(this.Cx.jk(),z),l=R=null;T!=null&&b||(R=g.Dk(z),l=g.x6(z,this.api.getRootNode()),T==null&&(T=l.x+R.width/2));T-=W.width/2;b?(z=this.Cx,R=aPK(z),l=Udz(z),b=this.api.NG().getPlayerSize().height,T=g.yQ(T,R,R+l-W.width),W=b-M_H(z)-W.height):g.hm(this.cV.element,z)?(z=this.api.NG().getPlayerSize().width,T=g.yQ(T,12,z-W.width-12),W=this.F_()?this.fz:this.o0,this.api.K().playerStyle==="gvn"&&(W+= 20),this.ir&&(W-=this.F_()?26:18)):(z=this.api.NG().getPlayerSize(),T=g.yQ(T,12,z.width-W.width-12),W=l.y>(z.height-R.height)/2?l.y-W.height-12:l.y+R.height+12);B.style.top=W+(h||0)+"px";B.style.left=T+"px"}; g.I.hI=function(B){B&&(this.api.yT(this.cV.element),this.Cx&&this.api.yT(this.Cx.jk()));this.Ex&&(g.L2(this.contextMenu.element,"ytp-autohide",B),g.L2(this.contextMenu.element,"ytp-autohide-active",!0));g.Nb.prototype.hI.call(this,B)}; g.I.OQ=function(){g.Nb.prototype.OQ.call(this);this.Ex&&(g.L2(this.contextMenu.element,"ytp-autohide-active",!1),this.Ex&&(this.contextMenu.hide(),this.nX&&this.nX.hide()))}; g.I.ZO=function(B,z){var T=this.api.NG().getPlayerSize();T=new g.Am(0,0,T.width,T.height);if(B||this.I1.U&&!this.wG()){if(this.api.K().P8||z)B=this.F_()?this.fz:this.o0,T.top+=B,T.height-=B;this.Cx&&(T.height-=M_H(this.Cx))}return T}; g.I.pK=function(B){var z=this.api.getRootNode();B?z.parentElement?(z.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.K().externalFullscreen||(z.parentElement.insertBefore(this.Lv.element,z),z.parentElement.insertBefore(this.I6.element,z.nextSibling))):g.kV(Error("Player not in DOM.")):(z.setAttribute("aria-label","YouTube Video Player"),this.Lv.detach(),this.I6.detach());this.ox();this.RR()}; g.I.F_=function(){var B=this.api.K();return this.api.isFullscreen()&&!B.L||!1}; g.I.showControls=function(B){this.Uo=!B;this.iL()}; g.I.ox=function(){var B=this.F_();this.tooltip.scale=B?1.5:1;this.contextMenu&&g.L2(this.contextMenu.element,"ytp-big-mode",B);this.iL();this.api.D("web_player_hide_overflow_button_if_empty_menu")||nMH(this);this.RR();var z=this.api.isEmbedsShortsMode();z&&B?(B=(this.api.NG().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ml(this.cV.element,"padding-left",B+"px"),g.Ml(this.cV.element,"padding-right",B+"px")):z&&(g.Ml(this.cV.element,"padding-left",""),g.Ml(this.cV.element,"padding-right", ""));g.Nb.prototype.ox.call(this)}; g.I.BN=function(){if(mdH(this)&&!g.g4(this.api))return!1;var B=this.api.getVideoData();return!g.yW(this.api.K())||this.api.getPresentingPlayerType()===2||!this.Kp||((B=this.Kp||B.Kp)?(B=B.embedPreview)?(B=B.thumbnailPreviewRenderer,B=B.videoDetails&&g.u(B.videoDetails,CDX)||null):B=null:B=null,B&&B.collapsedRenderer&&B.expandedRenderer)?g.Nb.prototype.BN.call(this):!1}; g.I.RR=function(){g.Nb.prototype.RR.call(this);this.api.logVisibility(this.title.element,!!this.Rg);this.RO&&this.RO.Ga(!!this.Rg);this.channelAvatar.Ga(!!this.Rg);this.overflowButton&&this.overflowButton.Ga(this.UN()&&!!this.Rg);this.shareButton&&this.shareButton.Ga(!this.UN()&&!!this.Rg);this.NU&&this.NU.Ga(!this.UN()&&!!this.Rg);this.searchButton&&this.searchButton.Ga(!this.UN()&&!!this.Rg);this.copyLinkButton&&this.copyLinkButton.Ga(!this.UN()&&!!this.Rg);if(!this.Rg){this.api.yT(this.cV.element); for(var B=0;B5&&z.OE("glrs",{cmt:T});z.seekTo(0,{seekSource:58});z.OE("glrre",{cmt:T})}}; Pd.prototype.gF=function(){this.T=null;g.K.prototype.gF.call(this)};g.G(g.xE,z2);g.I=g.xE.prototype;g.I.isView=function(){return!0}; g.I.Zi=function(){var B=this.mediaElement.getCurrentTime();if(B1;wN(B.a7(),R-.01)&&!h&&(DX(this,4),T.isActive=!1,T.hp=T.hp||T.isActive,(this.V===1?this.T:this.U).OE("sbh",{}),z.isActive=!0,z.hp=z.hp||z.isActive,this.V!==0&&(this.T.getVideoData().I3=!0));B=this.W.U;if(this.W.T.isActive&&B.isActive&&(DX(this,5),this.V!==0)){B=this.U.RT();T=this.T.RT(); this.T.OE("sbs",{citag:T==null?void 0:T.itag,nitag:B==null?void 0:B.itag});this.U.OE("gitags",{pitag:T==null?void 0:T.itag,citag:B==null?void 0:B.itag});var W;(W=this.U)==null||W.Nf()}}}; g.I.vX=function(){this.TU()&&this.gE("player-reload-after-handoff")}; g.I.gE=function(B,z){z=z===void 0?{}:z;if(!this.xd()&&this.status.status!==6){var T=this.status.status>=4&&B!=="player-reload-after-handoff";this.status={status:Infinity,error:B};if(this.T&&this.U){var R=this.U.getVideoData().clientPlaybackNonce;this.T.h0(new y_("dai.transitionfailure",Object.assign(z,{cpn:R,transitionTimeMs:this.Rc,msg:B})));this.T.JT(T)}this.Yj.reject(B);this.dispose()}}; g.I.TU=function(){return this.status.status>=4&&this.status.status<6}; g.I.gF=function(){SXH(this);this.T.unsubscribe("newelementrequired",this.vX,this);if(this.Y){var B=this.Y.U;this.Y.T.TY.unsubscribe("updateend",this.Ey,this);B.TY.unsubscribe("updateend",this.Ey,this)}g.K.prototype.gF.call(this)}; g.I.Wo=function(B){g.dK(B,128)&&this.gE("player-error-event")};g.G(kE,g.K);kE.prototype.clearQueue=function(B,z){B=B===void 0?!1:B;z=z===void 0?!1:z;this.W&&this.W.reject("Queue cleared");this.app.K().D("html5_gapless_fallback_on_qoe_restart_v2")||z&&this.U&&this.U.JT(!1);Kx(this,B)}; kE.prototype.jw=function(){return!this.T}; kE.prototype.TU=function(){var B;return((B=this.Y)==null?void 0:B.TU())||!1}; kE.prototype.gF=function(){Kx(this);g.K.prototype.gF.call(this)};g.G(bKb,g.Cl);g.I=bKb.prototype;g.I.getVisibilityState=function(B,z,T,R,h,W,b,l){return B?4:s7X()?3:z?2:T?1:R?5:h?7:W?8:b?9:l?10:0}; g.I.Tn=function(B){this.fullscreen!==B&&(this.fullscreen=B,this.UJ())}; g.I.setMinimized=function(B){this.U!==B&&(this.U=B,this.UJ())}; g.I.setInline=function(B){this.inline!==B&&(this.inline=B,this.UJ())}; g.I.w$=function(B){this.pictureInPicture!==B&&(this.pictureInPicture=B,this.UJ())}; g.I.setSqueezeback=function(B){this.Y!==B&&(this.Y=B,this.UJ())}; g.I.An=function(B){this.W!==B&&(this.W=B,this.UJ())}; g.I.dE=function(){return this.T}; g.I.Lh=function(){return this.fullscreen!==0}; g.I.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.I.Kv=function(){return this.fullscreen}; g.I.isMinimized=function(){return this.U}; g.I.isInline=function(){return this.inline}; g.I.isBackground=function(){return s7X()}; g.I.Hv=function(){return this.pictureInPicture}; g.I.xJ=function(){return!1}; g.I.tI=function(){return this.Y}; g.I.Z_=function(){return this.W}; g.I.UJ=function(){this.publish("visibilitychange");var B=this.getVisibilityState(this.dE(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Hv(),this.xJ(),this.tI(),this.Z_());B!==this.X&&this.publish("visibilitystatechange");this.X=B}; g.I.gF=function(){Buz(this.V);g.Cl.prototype.gF.call(this)};g.G(g.mU,g.K);g.I=g.mU.prototype;g.I.gF=function(){this.videoData=this.playerState=null;g.K.prototype.gF.call(this)}; g.I.addCueRange=function(){}; g.I.Vc=function(){}; g.I.f3=function(){}; g.I.Wr=function(){return!1}; g.I.Vv=function(){return!1}; g.I.H1=function(){return!1}; g.I.xr=function(){}; g.I.If=function(){}; g.I.u4=function(){return[]}; g.I.Zg=function(){}; g.I.getAudioTrack=function(){return this.getVideoData().Ua}; g.I.JF=function(){return null}; g.I.getAvailableAudioTracks=function(){return[]}; g.I.ac=function(){return[]}; g.I.Md=function(){return[]}; g.I.P7=function(){return""}; g.I.Zn=function(){return[]}; g.I.pw=function(){}; g.I.Aj=function(){return 0}; g.I.getCurrentTime=function(){return 0}; g.I.St=function(){}; g.I.RT=function(){}; g.I.NS=function(){return{}}; g.I.getDuration=function(){return 0}; g.I.ye=function(){return 0}; g.I.gt=function(){return 0}; g.I.Y1=function(){return!1}; g.I.In=function(){return 0}; g.I.c7=function(){return 0}; g.I.Tr=Wb(15);g.I.L1=function(){return 0}; g.I.Ug=function(){return!1}; g.I.Iq=function(){return 0}; g.I.Wu=function(){return null}; g.I.GG=function(){return null}; g.I.NW=function(){return 0}; g.I.oR=function(){return 0}; g.I.wD=function(){return g.D(function(B){g.dX(B)})}; g.I.Dy=Wb(21);g.I.getPlaybackQuality=function(){return"auto"}; g.I.getPlaybackRate=function(){return 1}; g.I.getPlayerState=function(){this.playerState||(this.playerState=new g.b5);return this.playerState}; g.I.getPlayerType=function(){return 0}; g.I.getPlaylistSequenceForTime=function(){return null}; g.I.X_=function(){return function(){}}; g.I.Og=function(){return""}; g.I.getPreferredQuality=function(){return"unknown"}; g.I.sI=function(){}; g.I.getProximaLatencyPreference=function(){return 0}; g.I.Fn=function(){return O2}; g.I.QW=function(){return null}; g.I.getStoryboardFormat=function(){return null}; g.I.getStreamTimeOffset=function(){return 0}; g.I.qj=function(){return 0}; g.I.p4=function(){return 0}; g.I.hF=function(){return{gB:[],Yt:[],currentTime:0,jS:"",droppedVideoFrames:0,isGapless:!1,jw:!0,Hf:0,ET:0,wc:0,aH:0,vL:0,Tv:[],mx:[],tG:null,playerState:this.getPlayerState(),fV:null,Lr:"",totalVideoFrames:0}}; g.I.getUserAudio51Preference=function(){return 0}; g.I.getUserPlaybackQualityPreference=function(){return""}; g.I.getVideoData=function(){this.videoData||(this.videoData=new g.NT(this.dF),g.m(this,this.videoData));return this.videoData}; g.I.LH=function(){return null}; g.I.Nd=function(){return null}; g.I.ma=function(){}; g.I.getVideoLoadedFraction=function(){return 0}; g.I.AA=function(){}; g.I.handleError=function(){}; g.I.JT=function(){}; g.I.Z$=function(){}; g.I.zX=Wb(46);g.I.SQ=function(){return!1}; g.I.hasSupportedAudio51Tracks=function(){return!1}; g.I.Xq=function(){return!1}; g.I.dE=function(){return!1}; g.I.isAtLiveHead=function(){return!1}; g.I.AT=function(){return!0}; g.I.isGapless=function(){return!1}; g.I.isHdr=function(){return!1}; g.I.O_=function(){return!1}; g.I.V8=function(){return!1}; g.I.qP=function(){return!1}; g.I.isProximaLatencyEligible=function(){return!1}; g.I.jw=function(){return!0}; g.I.Ln=function(){return!1}; g.I.Ou=function(){return!1}; g.I.zw=function(){}; g.I.PS=function(){}; g.I.Nf=function(){}; g.I.yy=function(){}; g.I.EL=function(){}; g.I.UC=function(){}; g.I.O8=function(){}; g.I.Ea=Wb(56);g.I.d0=Wb(27);g.I.Ow=function(){}; g.I.pauseVideo=function(){}; g.I.playVideo=function(){return g.D(function(B){return B.return()})}; g.I.rR=function(){}; g.I.SZ=Wb(33);g.I.fp=Wb(39);g.I.Zl=function(){}; g.I.OE=function(){}; g.I.fk=function(){}; g.I.uI=function(){}; g.I.eg=function(){}; g.I.h0=function(){}; g.I.vt=function(){}; g.I.iy=function(){}; g.I.fT=function(){}; g.I.WG=function(){}; g.I.TB=function(){}; g.I.A6=function(){}; g.I.qb=function(){}; g.I.removeCueRange=function(){}; g.I.Q4=function(){}; g.I.I7=function(){return[]}; g.I.wV=function(){}; g.I.Fl=function(){}; g.I.yb=function(){}; g.I.Fc=function(){}; g.I.X3=function(){}; g.I.tb=function(){}; g.I.seekTo=function(){}; g.I.sendAbandonmentPing=function(){}; g.I.sendVideoStatsEngageEvent=function(){}; g.I.E_=function(){}; g.I.setLoop=function(){}; g.I.IU=function(){}; g.I.setMediaElement=function(){}; g.I.pG=function(){}; g.I.setPlaybackRate=function(){}; g.I.jD=function(){}; g.I.kS=function(){}; g.I.YO=function(){}; g.I.setProximaLatencyPreference=function(){}; g.I.oO=function(){}; g.I.fG=function(){}; g.I.Ew=function(){}; g.I.t2=function(){}; g.I.setUserAudio51Preference=function(){}; g.I.jC=function(){}; g.I.g0=function(){return!1}; g.I.ZP=function(){}; g.I.Qr=function(){return!1}; g.I.Ab=function(){}; g.I.hn=function(){}; g.I.dN=function(){}; g.I.stopVideo=function(){}; g.I.subscribe=function(){return NaN}; g.I.j8=function(){}; g.I.togglePictureInPicture=function(){}; g.I.dP=function(){return 0}; g.I.unsubscribe=function(){return!1}; g.I.VL=function(){}; g.I.r4=function(){return!1}; g.I.jG=function(){}; g.I.B5=function(){}; g.I.B_=function(){};g.G(Hd,g.K);g.I=Hd.prototype;g.I.get=function(B){nx(this);var z=this.data.find(function(T){return T.key===B}); return z?z.value:null}; g.I.set=function(B,z,T){this.remove(B,!0);nx(this);B={key:B,value:z,expire:Infinity};T&&isFinite(T)&&(T*=1E3,B.expire=(0,g.f)()+T);for(this.data.push(B);this.data.length>this.Y;)(T=this.data.shift())&&fx(this,T,!0);uR(this)}; g.I.remove=function(B,z){z=z===void 0?!1:z;var T=this.data.find(function(R){return R.key===B}); T&&(fx(this,T,z),g.dF(this.data,function(R){return R.key===B}),uR(this))}; g.I.removeAll=function(B){if(B=B===void 0?!1:B)for(var z=g.d(this.data),T=z.next();!T.done;T=z.next())fx(this,T.value,B);this.data=[];uR(this)}; g.I.gF=function(){var B=this;g.K.prototype.gF.call(this);this.data.forEach(function(z){fx(B,z,!0)}); this.data=[]};g.G(g.Oc,g.K);g.I=g.Oc.prototype;g.I.gF=function(){for(var B=g.d(Object.values(this.Y)),z=B.next();!z.done;z=B.next())z.value.dispose();Yiz(this);this.T.dispose();g.K.prototype.gF.call(this)}; g.I.n2=function(B){return B?B===1?this.J:this.U.getVideoData().enableServerStitchedDai&&B===2?this.U.getVideoData().Kl?this.Y[2]||this.U:this.U:this.Y[B]||null:this.U}; g.I.t$=function(B){var z=B.cpn;B=B.playerType;if(z)a:{B=g.d(Object.values(this.Y));for(var T=B.next();!T.done;T=B.next())if(T=T.value,T.P7()===z){z=T;break a}z=this.L[z]||null}else z=B?this.n2(B):this.U;return z}; g.I.YW=function(){return this.J}; g.I.cF=function(B){this.J=B}; g.I.Ji=function(){return this.U}; g.I.oD=function(B){this.U=B;Nf(this)}; g.I.Wa=Wb(52);g.I.sC=Wb(54);g.G(t3,g.K);t3.prototype.enqueue=function(B){if(B.T()!==this)return!1;this.segments.push(B);return!0}; t3.prototype.removeAll=function(){for(;this.segments.length;){var B=void 0;(B=this.segments.pop())==null||B.dispose()}this.T.clear()}; t3.prototype.gF=function(){this.removeAll();g.K.prototype.gF.call(this)};g.G(oqz,g.ml);g.I=oqz.prototype;g.I.wB=function(){}; g.I.P7=function(){return this.videoData.clientPlaybackNonce}; g.I.getVideoData=function(){if(g.ml.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state"))var B=this.videoData;else{var z=this.KF;var T=g.ml.prototype.getCurrentTime.call(this);if(z.Gn)z=void 0;else{var R=void 0;z.xL&&(R=z.W.get(z.xL));if(!R){R=gqb(z,T*1E3);var h,W=(h=R)==null?void 0:h.cpn;z.xL?W&&z.xL!==W&&z.wF({cpcnm:W+"_"+z.xL,cmt:T.toFixed(3)}):z.wF({cpcna:W,cmt:T.toFixed(3)})}z=(B=R)==null?void 0:B.videoData}B=z||g.ml.prototype.getVideoData.call(this)}return B}; g.I.getCurrentTime=function(B){var z=g.ml.prototype.getCurrentTime.call(this);g.ml.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")?this.endTime===0?B||(z-=this.startTime):B&&(z=this.endTime-this.startTime):(B?B=this.KF.fh/1E3||z:(B=z,B=(z=y6b(this.KF,B*1E3))?B-z.start/1E3:B),z=B);return z}; g.I.getDuration=function(){if(g.ml.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state"))var B=this.duration;else{B=this.KF;var z=g.ml.prototype.getCurrentTime.call(this);B=(B=gqb(B,z*1E3))?B.durationMs/1E3:0}return B}; g.I.YB=function(B){this.duration=B};g.j$.prototype.a4=function(B,z){if(z===1)return this.T.get(B);if(z===2)return this.Y.get(B);if(z===3)return this.U.get(B)}; g.j$.prototype.Dr=Wb(64);g.j$.prototype.Zj=function(B,z,T,R){T={PT:R,hP:T};z?this.Y.set(B,T):this.T.set(B,T)}; g.j$.prototype.clearAll=function(){this.T.clear();this.Y.clear();this.U.clear()}; g.G(g.XX,g.K);g.I=g.XX.prototype;g.I.qM=function(B){var z=B.H8?B.H8*1E3:B.tZ,T=this.U.get(B.cpn);T&&this.playback.removeCueRange(T);this.U.delete(B.cpn);this.W.delete(B.cpn);T=this.V.indexOf(B);T>=0&&this.V.splice(T,1);T=[];for(var R=g.d(this.X),h=R.next();!h.done;h=R.next())h=h.value,h.end<=z?this.playback.removeCueRange(h):T.push(h);this.X=T;KDz(this,0,z+B.durationMs)}; g.I.onCueRangeEnter=function(B){this.cD.push(B);var z=B.getId();this.wF({oncueEnter:1,cpn:z,start:B.start,end:B.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Aj()||0).toFixed(3)});var T=z==="";this.sE.add(B.U);var R=this.W.get(z);if(T){var h;if(this.playback.getVideoData().Gz()&&((h=this.T)==null?0:h.d1)&&this.Y){this.e8=0;this.T=void 0;this.UE&&(this.events.V2(this.UE),this.UE=null);this.Y="";this.IK=!0;return}}else if(this.wF({enterAdCueRange:1}),this.playback.getVideoData().Gz()&& (R==null?0:R.IP))return;if(this.IK&&!this.T)this.IK=!1,!T&&R&&(T=this.playback.getCurrentTime(),BU(this,{zY:B,isAd:!0,rV:!0,HH:T,adCpn:z},{isAd:!1,rV:!1,HH:T}),this.xL=R.cpn,this.Ww(R.cpn,T),Ec(this,R),B=sc(this,"midab",R),this.wF(B),this.e8=1),this.J=!1;else if(this.T){if(this.T.rV)this.wF({a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.HH,cpn:z,currentTime:this.playback.getCurrentTime()}),R=this.playback.getCurrentTime(),B={zY:B,isAd:!T,rV:!0,HH:R,adCpn:z},z={zY:this.T.zY, isAd:this.T.isAd,rV:!1,HH:R,adCpn:this.T.adCpn},this.T.zY&&this.sE.delete(this.T.zY.U),BU(this,B,z);else{if(this.T.zY===B){this.wF({same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.HH,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:B.start,cueRangeEndTime:B.end});this.T=void 0;return}if(this.T.adCpn===z){z&&this.wF({dchtsc:z});this.T=void 0;return}B={zY:B,isAd:!T,rV:!0,HH:this.playback.getCurrentTime(),adCpn:z};BU(this,B,this.T)}this.T=void 0;this.J=!1}else this.T= {zY:B,isAd:!T,rV:!0,HH:this.playback.getCurrentTime(),adCpn:z}}; g.I.Ww=function(B,z){if(B===this.playback.P7())lBX(this.app.tf(),this.playback,!1);else{var T=this.U0.get(B);T?(T.endTime=0,T.startTime=z,lBX(this.app.tf(),T,!0)):this.wF({nop_s:B})}}; g.I.onCueRangeExit=function(B){var z=B.getId();this.wF({oncueExit:1,cpn:z,start:B.start,end:B.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Aj()||0).toFixed(3)});var T=z==="",R=this.W.get(z);T||QwB(this,z,this.playback.getCurrentTime());if(this.playback.getVideoData().Gz()&&!T&&R){if(R.IP)return;R.IP=!0;this.N.clear();if(this.dF.D("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Wr()){var h=R.tZ;this.playback.qb(h/1E3,(h+R.durationMs)/1E3)}else this.playback.OE("lifa",{remove:0})}if(this.sE.has(B.U))if(this.sE.delete(B.U), this.cD=this.cD.filter(function(W){return W!==B}),this.IK&&(this.J=this.IK=!1,this.wF({cref:1})),this.T){if(this.T.rV){if(this.T.zY===B){this.wF({same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.HH,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:B.start,cueRangeEndTime:B.end});this.T=void 0;return}if(this.T.adCpn===z){z&&this.wF({dchtsc:z});this.T=void 0;return}z={zY:B,isAd:!T,rV:!1,HH:this.playback.getCurrentTime(),adCpn:z};BU(this,this.T,z)}else if(this.wF({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.HH,upcomingCpn:z,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.T.adCpn===z)return;this.T=void 0;this.J=!1}else this.T={zY:B,isAd:!T,rV:!1,HH:this.playback.getCurrentTime(),adCpn:z};else this.wF({ignore_single_exit:1})}; g.I.m2=function(){return{cpn:this.playback.P7(),durationMs:0,tZ:0,playerType:1,QU:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.I.F8=function(){if(this.Gn)return!1;var B=void 0;this.xL&&(B=this.W.get(this.xL));return this.playback.getVideoData().Gz()?!!B&&!B.IP:!!B}; g.I.seekTo=function(B,z,T,R){B=B===void 0?0:B;z=z===void 0?{}:z;T=T===void 0?!1:T;R=R===void 0?null:R;if(this.playback.getVideoData().Gz()&&B<=this.fh/1E3)this.playback.pauseVideo(),this.fh=0,this.J=!0,this.playback.wD(),this.playback.seekTo(B),this.playback.playVideo();else if(this.J=!0,T)IBB(this,B,z);else{T=this.app.Ji();var h=T===this.Kf?this.Dm:null;TL(this,!1);this.JZ=B;this.ra=z;R!=null&&this.Sk.start(R);T&&(this.Dm=h||T.getPlayerState(),T.dN(z),this.Kf=T)}}; g.I.gF=function(){TL(this,!1);p_X(this);$sz(this);g.K.prototype.gF.call(this)}; g.I.xH=function(B){this.II=B;this.wF({swebm:B})}; g.I.yG=function(B,z,T){if(T&&z){var R=this.N.get(B);if(R){R.locations||(R.locations=new Map);var h=Number(z.split(";")[0]);T=new g.QP(T);this.wF({hdlredir:1,itag:z,seg:B,hostport:g$(T)});R.locations.set(h,T)}}}; g.I.ya=function(B,z,T,R,h,W){var b=R===3,l=xsK(this,B,z,R,T,W);if(!l){hs(this,z,b);var w=g.P4Y(this,z)?"undec":"ncp";this.wF({gvprp:w,mt:B,seg:z,tt:R,itag:T,ce:W});return null}b||this.N.set(z,l);W=l.D_;var q;R=((q=this.a4(z-1,R,h))==null?void 0:q.PT)||"";R===""&&this.wF({eds:1});q=Dsz(this,l.ssdaiAdsConfig);h=this.playback.getVideoData();var c;b=((c=h.U)==null?void 0:c.containerType)||0;c=h.KC[b];l=l.UU&&z>=l.UU?l.UU:void 0;c={vI:W?nqY(this,W):[],f7:q,PT:R,MA:l,Dp:dO(c.split(";")[0]),nW:c.split(";")[1]|| ""};l={UG:c};this.EE&&(B={gvprpro:"v",sq:z,mt:B.toFixed(3),itag:T,acpns:((w=c.vI)==null?void 0:w.join("_"))||"none",abid:W},this.wF(B));return l}; g.I.cN=function(B){a:{if(!this.Gn){var z=vq5(this,B);if(!(this.playback.getVideoData().Gz()&&(z==null?0:z.IP)))break a}z=void 0}var T=z;if(!T)return this.wF({gvprp:"ncp",mt:B}),null;z=T.D_;var R=Dsz(this,T.ssdaiAdsConfig);T=T.UU&&T.uy&&B>=T.uy?T.UU:void 0;var h=this.playback.getVideoData(),W,b=((W=h.U)==null?void 0:W.containerType)||0;W=h.KC[b];W={vI:z?nqY(this,z):[],f7:R,MA:T,Dp:dO(W.split(";")[0]),nW:W.split(";")[1]||""};var l;B={gvprpro:"v",mt:B.toFixed(3),acpns:((l=W.vI)==null?void 0:l.join("_"))|| "none",abid:z};this.wF(B);return W}; g.I.sA=function(B,z,T,R,h,W){var b=Number(T.split(";")[0]),l=R===3;B=xsK(this,B,z,R,T,W);this.wF({gdu:1,seg:z,itag:b,pb:""+!!B});if(!B)return hs(this,z,l),null;B.locations||(B.locations=new Map);if(!B.locations.has(b)){var w,q;W=(w=B.videoData.getPlayerResponse())==null?void 0:(q=w.streamingData)==null?void 0:q.adaptiveFormats;if(!W)return this.wF({gdu:"noadpfmts",seg:z,itag:b}),hs(this,z,l),null;w=W.find(function(C){return C.itag===b}); if(!w||!w.url){var c=B.videoData.videoId;B=[];var L=g.d(W);for(R=L.next();!R.done;R=L.next())B.push(R.value.itag);this.wF({gdu:"nofmt",seg:z,vid:c,itag:b,fullitag:T,itags:B.join(",")});hs(this,z,l);return null}B.locations.set(b,new g.QP(w.url,!0))}W=B.locations.get(b);if(!W)return this.wF({gdu:"nourl",seg:z,itag:b}),hs(this,z,l),null;W=new Ge(W);this.II&&(W.get("dvc")?this.wF({dvc:W.get("dvc")||""}):W.set("dvc","webm"));(R=(L=this.a4(z-1,R,h))==null?void 0:L.PT)&&W.set("daistate",R);B.UU&&z>=B.UU&& W.set("skipsq",""+B.UU);(L=this.playback.getVideoData().clientPlaybackNonce)&&W.set("cpn",L);L=[];B.D_&&(L=nqY(this,B.D_),L.length>0&&W.set("acpns",L.join(",")));l||this.N.set(z,B);l=null;l=W.get("aids");R=W.Pu();(R==null?void 0:R.length)>2048&&this.wF({urltoolong:1,sq:z,itag:b,len:R.length});this.EE&&(R&&(W=B.cpn,h=B.D_,fBl(this,W,h),h&&!this.fF.has(h)&&(W=uGP(this,W,h),w=HKK(this,h),this.wF({iofa:W}),this.wF({noawnzd:w-W}),this.wF({acpns:L.join("."),aids:(c=l)==null?void 0:c.replace(/,/g,".")}), this.fF.add(h))),this.wF({gdu:"v",seg:z,itag:T,ast:B.tZ.toFixed(3),alen:B.durationMs.toFixed(3),acpn:B.cpn,avid:B.videoData.videoId}));return R}; g.I.Tm=function(B,z,T){T=T===void 0?!1:T;var R=Rb(this,B,z);if(R){var h=void 0,W=R.D_;if(W){this.wF({skipadonsq:z,sts:T,abid:W,acpn:R.cpn,avid:R.videoData.videoId});T=this.L.get(W);if(!T)return;T=g.d(T);for(W=T.next();!W.done;W=T.next())W=W.value,W.UU=z,W.uy=B,W.tZ>R.tZ&&(h=W)}this.Y=R.cpn;klP(this);B=this.playback.getCurrentTime();S$(this,R,h,B,B,!1,!0)}}; g.I.Ke=function(){for(var B=g.d(this.V),z=B.next();!z.done;z=B.next())z=z.value,z.UU=NaN,z.uy=NaN;klP(this);this.wF({rsac:"resetSkipAd",sac:this.Y});this.Y=""}; g.I.a4=function(B,z,T){return this.zZ.a4(B,z,T)}; g.I.Dr=Wb(63); g.I.Zj=function(B,z,T,R,h,W,b,l,w){R.length>0&&this.wF({onssinfo:1,sq:B,start:z.toFixed(3),cpns:R.join(","),ds:h.join(","),isVideo:b?1:0});w&&this.zZ.Zj(B,b,l,w);if(b){if(R.length&&h.length)for(this.Y&&this.Y===R[0]&&this.wF({skipfail:1,sq:B,acpn:this.Y}),B=z+this.qj(),b=0;b0&&(this.e8=0,this.xL="",this.api.publish("serverstitchedvideochange"));this.playback.If(T,R);return!0}; g.I.Mw=function(){this.wF({rstdaist:1});this.zZ.clearAll()}; g.I.tS=function(B){var z;if(B!==((z=this.WD)==null?void 0:z.identifier))this.wF({ignorenoad:B});else{this.O0.add(B);this.wF({noadrcv:B});var T;((T=this.WD)==null?void 0:T.identifier)===B&&e$(this)}}; g.I.r$=function(B){if(this.Gn)return this.wF({dai_disabled:B.event}),!1;if(this.playback.getVideoData().Gz()&&(this.dF.D("html5_lifa_no_gab_on_predict_start")&&B.event==="predictStart"||B.event==="continue"||B.event==="stop"))return this.wF({cuepoint_skipped:B.event}),!1;var z=J5(this.api.bK());if(z=z?z.r$(B):!1)this.TZ={AV:B.identifier,sO:B.startSecs};else if(this.TZ&&this.TZ.AV===B.identifier&&B.startSecs>this.TZ.sO+1){this.wF({cueStChg:B.identifier,oldSt:this.TZ.sO.toFixed(3),newSt:B.startSecs.toFixed(3), abid:this.TZ.SA});if(this.TZ.SA){var T=B.startSecs-this.TZ.sO,R=this.L.get(this.TZ.SA);if(R){R=g.d(R);for(var h=R.next();!h.done;h=R.next())h=h.value,h.tZ>=0&&(h.tZ+=T*1E3,this.dF.D("html5_ssdai_update_timeline_on_start_time_change")&&(h.QU+=T*1E3),this.wF({newApEt:h.tZ,newApPrt:h.QU,acpn:h.cpn}))}}this.TZ.sO=B.startSecs}return z}; g.I.cj=function(B){return this.Gn?!1:!!vq5(this,B)}; g.I.CM=function(B){var z=this;if(this.dF.D("html5_lifa_ignore_multiple_skips")&&this.UE)return this.wF({ufs_ad:this.Y,ufs_cur:this.xL,ufs_cont:this.m2().cpn}),!1;this.playback.pauseVideo();var T=this.playback.getCurrentTime(),R=this.dF.D("html5_lifa_reset_segment_index_on_skip"),h=R?T+this.playback.qj():T,W=this.W.get(this.xL),b=this.U.get(this.xL);if(W){this.Y=this.xL;this.J=!1;W.IP=!0;T=this.playback.getCurrentTime();this.T={zY:b,isAd:!0,rV:!1,HH:T,adCpn:this.xL,d1:W,FSd:B};this.playback.fT(W,this.m2(), T,this.playback.getCurrentTime(),!1,!0,B,(0,g.f)());R&&this.playback.Ow();if(b==null?0:b.start)this.fh=T*1E3-b.start;this.N.clear();this.playback.wD();B=this.m2();this.xL=B.cpn;this.Ww(B.cpn,T);this.api.publish("serverstitchedvideochange");this.playback.seekTo(h,{seekSource:89,Dx:"lifa_skip"});this.playback.playVideo();this.UE||(this.UE=this.events.Z(this.api,"progresssync",function(){z.qM(W)})); return!0}this.wF({skipFail:T},!0);return!1}; g.I.wF=function(B,z){((z===void 0?0:z)||this.EE||this.playback.getVideoData().Gz())&&this.playback.OE("sdai",B)}; var aBB=0;g.G(OK5,g.XX);g.I=OK5.prototype; g.I.onCueRangeEnter=function(B){var z=B.getId();this.playback.OE("sdai",{oncueEnter:1,cpn:z,start:B.start,end:B.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Aj()||0).toFixed(3)});var T=this.W.get(z);this.playback.OE("sdai",{enterAdCueRange:1});var R=this.xL||this.m2().cpn,h;R=(h=this.W.get(R))!=null?h:this.m2();T&&(T={Jq:R,Gg:T,tq:this.playback.getCurrentTime()},this.DB(T),this.api.D("html5_ssdai_log_ssevt_in_loader")&&Nxd(this,z,B.start/1E3,this.playback.getCurrentTime()))}; g.I.onCueRangeExit=function(B){for(var z=this.playback.getCurrentTime()*1E3,T=B.getId(),R=g.d(this.U.values()),h=R.next();!h.done;h=R.next())if(h=h.value,h.getId()!==T&&z>=h.start&&z<=h.end)return;if(z=this.W.get(T))z={Jq:z,Gg:this.m2(),tq:this.playback.getCurrentTime()},this.DB(z),this.api.D("html5_ssdai_log_ssevt_in_loader")&&Nxd(this,this.playback.P7(),B.end/1E3,this.playback.getCurrentTime())}; g.I.DB=function(B){this.Y||this.J||bt(this,this.xL);var z=B.Jq,T=B.Gg;if(T.cpn===this.xL)this.playback.OE("sdai",{igtranssame:1,enter:T.cpn,exit:z.cpn});else{var R=this.J,h=!!this.Y;this.Y="";var W=B.tq,b=z.playerType===2?z.tZ/1E3+z.videoData.s0:this.m2().videoData.s0;this.api.D("html5_ssdai_enable_media_end_cue_range")&&(h||R||z.playerType!==2?(R||h)&&this.wF({mecr:0,seek:R,skip:h}):this.api.dP(z.cpn));if(z.playerType===2&&T.playerType===2)h?this.playback.OE("sdai",{igtransskip:1,enter:T.cpn,exit:z.cpn, seek:R,skip:this.Y}):S$(this,z,T,b,W,R,h);else{this.xL=T.cpn;QwB(this,z.cpn,W);this.Ww(T.cpn,W);B=B.Pfd;if(z.playerType===1&&T.playerType===2){this.fh=0;Ec(this,T);var l=sc(this,"c2a",T);this.playback.OE("sdai",l);this.e8++}else if(z.playerType===2&&T.playerType===1){l=z.videoData.s0;this.api.publish("serverstitchedvideochange");var w=sc(this,"a2c");this.playback.OE("sdai",w);this.e8=0;this.fh=l*1E3;this.R7=b;X_B(this,z.D_)}this.playback.fT(z,T,b,W,R,h,B)}this.Y="";this.J=!1}}; g.I.seekTo=function(B,z,T,R){B=B===void 0?0:B;z=z===void 0?{}:z;T=T===void 0?!1:T;R=R===void 0?null:R;bt(this,this.xL);this.playback.getVideoData().Gz()&&B<=this.R7?(this.playback.pauseVideo(),this.R7=this.fh=0,t7B(this,B)):g.XX.prototype.seekTo.call(this,B,z,T,R)}; g.I.Tm=function(B,z,T){T=T===void 0?!1:T;var R=Rb(this,B,z);if(R){var h=void 0,W=R.D_;if(W){this.playback.OE("sdai",{skipadonsq:z,sts:T,abid:W,acpn:R.cpn,avid:R.videoData.videoId});T=this.L.get(W);if(!T)return;T=g.d(T);for(W=T.next();!W.done;W=T.next())W=W.value,W.UU=z,W.uy=B,W.tZ>R.tZ&&(h=W)}bt(this,this.xL);this.Y=R.cpn;klP(this);B=this.playback.getCurrentTime();S$(this,R,h,B,B,!1,!0);this.Y="";this.J=!1}}; g.I.Zj=function(B,z,T,R,h,W,b,l,w){R.length>0&&this.playback.OE("sdai",{onssinfo:1,sq:B,start:z.toFixed(3),cpns:R.join(","),ds:h.join(","),isVideo:b?1:0});w&&this.zZ.Zj(B,b,l,w);if(b){if(R.length&&h.length)for(this.Y&&this.Y===R[0]&&this.playback.OE("sdai",{skipfail:1,sq:B,acpn:this.Y}),B=z+this.qj(),T=0;T=0&&this.V.splice(B,1)};g.G(esz,g.K);g.I=esz.prototype;g.I.onCueRangeEnter=function(B){if(this.T===this.app.Ji()){var z=this.V.get(B);z?TEr(this,z.target,z.Rc,B):this.h0("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:B.toString()})}else if(z=this.U.find(function(h){return h.GI.zY===B})){var T=z.GI,R=T.target; T=T.Rc;R?TEr(this,R,T,B):zfK(this,z.QU,T,B)}}; g.I.onQueuedVideoLoaded=function(){var B=this.L;qt(this);if(B){if(!w0(this,B)){var z=this.app.Ji();this.h0("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:z==null?void 0:z.getVideoData().clientPlaybackNonce,ccpn:""+B.playerVars.cpn})}this.app.Ji().addCueRange(B.GI.zY)}}; g.I.seekTo=function(B,z,T,R){B=B===void 0?0:B;z=z===void 0?{}:z;R=R===void 0?null:R;if(T===void 0?0:T)ZKb(this,B,z);else{T=this.app.Ji()||null;var h=T===this.W?this.X:null;it(this,!1);this.TZ=B;this.N=z;R!=null&&this.J.start(R);T&&(this.X=h||T.getPlayerState(),T.dN(),this.W=T)}}; g.I.ih=function(B){g.dK(B,128)&&Ymz(this)}; g.I.isManifestless=function(){return is(this.T.getVideoData())}; g.I.gF=function(){it(this,!1);w9z(this);g.K.prototype.gF.call(this)}; g.I.h0=function(B,z){this.T.h0(new y_(B,z))}; var swB=0;var qmz="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.G(cU,g.K);cU.prototype.iC=function(B){if(B)return this.U.get(B)}; cU.prototype.gF=function(){this.T.removeAll();this.U.removeAll();g.K.prototype.gF.call(this)};g.u$F=CF(function(){var B=window.AudioContext||window.webkitAudioContext;try{return new B}catch(z){return z.name}});g.G(rPK,g.O);g.I=rPK.prototype;g.I.Xy=function(){g.qv(this.element,g.K5.apply(0,arguments))}; g.I.Fl=function(){this.ax&&(this.ax.removeEventListener("focus",this.Db),g.RK(this.ax),this.ax=null)}; g.I.lV=function(){this.xd();var B=this.app.K();B.yr||this.Xy("tag-pool-enabled");B.X&&this.Xy(g.ZR.HOUSE_BRAND);B.playerStyle==="gvn"&&(this.Xy("ytp-gvn"),this.element.style.backgroundColor="transparent");B.JZ&&(this.iV=g.Y2("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.I.q2=function(B){g.Po(this.app.K());this.SY=!B;LS(this)}; g.I.resize=function(){if(this.ax){var B=this.WV();if(!B.isEmpty()){var z=!g.xI(B,this.Vb.getSize()),T=dAK(this);z&&(this.Vb.width=B.width,this.Vb.height=B.height);B=this.app.K();(T||z||this.Si||B.JZ)&&this.app.Lf.publish("resize",this.getPlayerSize())}}}; g.I.MK=function(B,z){this.updateVideoData(z)}; g.I.updateVideoData=function(B){if(this.ax){var z=this.app.K();XJ&&(this.ax.setAttribute("x-webkit-airplay","allow"),B.title?this.ax.setAttribute("title",B.title):this.ax.removeAttribute("title"));this.ax.setAttribute("controlslist","nodownload");z.yj&&B.videoId&&(this.ax.poster=B.VQ("default.jpg"))}z=g.Au(B,"yt:bgcolor");this.n_.style.backgroundColor=z?z:"";this.uA=wS(g.Au(B,"yt:stretch"));this.e4=wS(g.Au(B,"yt:crop"),!0);g.L2(this.element,"ytp-dni",B.Jj);this.resize()}; g.I.setGlobalCrop=function(B){this.G6=wS(B,!0);this.resize()}; g.I.setCenterCrop=function(B){this.nZ=B;this.resize()}; g.I.Tn=function(){}; g.I.getPlayerSize=function(){var B=this.app.K(),z=this.app.Lf.isFullscreen(),T=B.externalFullscreen&&g.yW(B);if(z&&to()&&!T)return new g.PY(window.outerWidth,window.outerHeight);T=!isNaN(this.yA.width)&&!isNaN(this.yA.height);var R=this.app.K().D("kevlar_player_enable_squeezeback_fullscreen_sizing");if(z&&!T&&R)return new g.PY(this.element.clientWidth,this.element.clientHeight);if(z||B.Hk){if(window.matchMedia){B="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.KA&&this.KA.media=== B||(this.KA=window.matchMedia(B));var h=this.KA&&this.KA.matches}if(h)return new g.PY(window.innerWidth,window.innerHeight)}else if(T)return this.yA.clone();return new g.PY(this.element.clientWidth,this.element.clientHeight)}; g.I.WV=function(){var B=this.app.K().D("enable_desktop_player_underlay"),z=this.getPlayerSize(),T=g.rk(this.app.K().experiments,"player_underlay_min_player_width");return B&&this.Rs&&z.width>T?(B=g.rk(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.PY(Math.min(z.height*this.getVideoAspectRatio(),z.width*B),Math.min(z.height,z.width*B/this.getVideoAspectRatio()))):z}; g.I.getVideoAspectRatio=function(){return isNaN(this.uA)?Fnb(this):this.uA}; g.I.getVideoContentRect=function(B){var z=this.WV();B=ICK(this,z,this.getVideoAspectRatio(),B);return new g.Am((z.width-B.width)/2,(z.height-B.height)/2,B.width,B.height)}; g.I.Th=function(B){this.Rs=B;this.resize()}; g.I.yV=function(){return this.C9}; g.I.onMutedAutoplayChange=function(){LS(this)}; g.I.setInternalSize=function(B){g.xI(this.yA,B)||(this.yA=B,this.resize())}; g.I.gF=function(){this.iV&&g.l_(this.iV);this.Fl();g.O.prototype.gF.call(this)};g.I=aCz.prototype;g.I.click=function(B,z){this.elements.has(B);this.T.has(B);var T=g.gd();T&&B.visualElement&&g.iU(T,B.visualElement,z)}; g.I.createClientVe=function(B,z,T,R){var h=this;R=R===void 0?!1:R;this.elements.has(B);this.elements.add(B);T=MTd(T);B.visualElement=T;var W=g.gd(),b=g.yl();W&&b&&(g.ac("combine_ve_grafts")?PM(pX(),T,b):g.BP(g.Zb)(void 0,W,b,T));z.addOnDisposeCallback(function(){h.elements.has(B)&&h.destroyVe(B)}); R&&this.U.add(B)}; g.I.createServerVe=function(B,z,T){var R=this;T=T===void 0?!1:T;this.elements.has(B);this.elements.add(B);z.addOnDisposeCallback(function(){R.destroyVe(B)}); T&&this.U.add(B)}; g.I.destroyVe=function(B){this.elements.has(B);this.elements.delete(B);this.Y.delete(B);this.T.delete(B);this.U.delete(B)}; g.I.KZ=function(B,z){this.clientPlaybackNonce!==z&&(this.clientPlaybackNonce=z,$T(pX(),B),UAK(this))}; g.I.setTrackingParams=function(B,z){this.elements.has(B);z&&(B.visualElement=g.Vl(z))}; g.I.kW=function(B,z,T){this.elements.has(B);z?this.T.add(B):this.T.delete(B);var R=g.gd(),h=B.visualElement;this.U.has(B)?R&&h&&(z?g.w2(R,[h]):g.qI(R,[h])):z&&!this.Y.has(B)&&(R&&h&&g.lU(R,h,void 0,T),this.Y.add(B))}; g.I.hasVe=function(B){return this.elements.has(B)};g.G(g.ob,g.K);g.ob.create=function(B,z,T,R){try{var h=typeof B==="string"?B:"player"+g.RR(B),W=M6[h];if(W){try{W.dispose()}catch(l){g.kV(l)}M6[h]=null}var b=new g.ob(B,z,T,R);b.addOnDisposeCallback(function(){M6[h]=null;b.aE&&b.aE()}); return M6[h]=b}catch(l){throw g.kV(l),(l&&l instanceof Error?l:Error(String(l))).stack;}}; g.I=g.ob.prototype;g.I.Jf=function(){return this.visibility}; g.I.cF=function(B){var z=this.YW();if(B!==z){B.getVideoData().autonavState=z.getVideoData().autonavState;z.VL(this.Pn,this);var T=z.getPlaybackRate();z.dispose();this.Bc.cF(B);B.setPlaybackRate(T);B.j8(this.Pn,this);p9d(this)}}; g.I.Ju=function(){this.OD||(this.OD=g.wI(kN(),ySK()));return this.OD}; g.I.Fl=function(B){if(this.mediaElement){this.DL&&(this.events.V2(this.DL),this.DL=null);g.$K(this.lI);this.Ji().Fl(!0,!1,B);this.template.Fl();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Yy()}catch(z){g.KV(z)}this.mediaElement=null}}; g.I.oD=function(B,z,T){T=T===void 0?!1:T;if(B!==this.Ji()){this.logger.debug(function(){return"start set presenting player, type "+B.getPlayerType()+", vid "+B.getVideoData().videoId}); var R=null;T||(T=this.Ji(),R=T.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),gh(this.h$,3),nS(this,"cuerangesremoved",T.Zn()),this.U6&&!B.isGapless()&&T.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),T=B.g0()&&T.g0(),this.n4.BU("iv_s"),ugY(this,T));B.getPlayerType()===1&&this.cF(B);nGB(this,B);this.Bc.oD(B);this.mediaElement&&B.setMediaElement(this.mediaElement);B.j8(this.aC,this);B.Ou()?Cfz(this,"setPresenting",!1):(this.MK("newdata",B,B.getVideoData()), R&&!g.cq(R,B.getPlayerState())&&this.Qi(new g.IS(B.getPlayerState(),R)),z=z&&this.D("html5_player_preload_ad_fix")&&B.getPlayerType()===1,B.V8()&&!z&&this.MK("dataloaded",B,B.getVideoData()),(z=(z=B.getVideoData().U)&&z.video)&&this.Lf.Pd("onPlaybackQualityChange",z.quality),nS(this,"cuerangesadded",B.Zn()),z=B.getPlayerState(),g.X(z,2)?mAB(this):g.X(z,8)?B.playVideo():B.O_()&&B.pauseVideo(),z=this.YW(),B.getPlayerType()===2&&(B.getVideoData().PP=z.getVideoData().clientPlaybackNonce),B.getPlayerType()!== 2||this.w3()||(R=B.getVideoData(),z.rR(R.clientPlaybackNonce,R.L2||"",R.breakType||0,R.pF,R.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.I.Yk=function(){if(this.YW()!==this.Ji()){var B=this.Ji();this.logger.debug(function(){return"release presenting player, type "+B.getPlayerType()+", vid "+B.getVideoData().videoId}); this.oD(this.YW())}}; g.I.tf=function(){return this.Bc}; g.I.t$=function(B){return this.Bc.t$(B)}; g.I.n2=function(B){return this.Bc.n2(B)}; g.I.YW=function(){return this.Bc.YW()}; g.I.Ji=function(){return this.Bc.Ji()}; g.I.TA=Wb(50);g.I.kZu=function(){ab(this)||(this.logger.debug("application playback ready"),this.i4(5))}; g.I.lxu=function(){if(!ab(this)){this.logger.debug("playback ready");qJr(this);var B=this.Ji(),z=B.getPlayerState();B.O_()?this.pauseVideo():z.isOrWillBePlaying()&&this.playVideo()}}; g.I.canPlayType=function(B){return $b(B)}; g.I.K=function(){return this.dF}; g.I.getVideoData=function(){return this.Ji().getVideoData()}; g.I.a6=Wb(19);g.I.O2=function(){return this.YW().getVideoData()}; g.I.getVideoLoadedFraction=function(B){return(B=this.t$({playerType:B}))?B.getVideoLoadedFraction():this.Bc.T.getVideoLoadedFraction()}; g.I.NG=function(){return this.template}; g.I.bK=function(){return this.h$}; g.I.Op=function(){return this.n4}; g.I.eN=function(B){var z=this.t$({playerType:1});z&&z.E_(B)}; g.I.Nk=function(){var B=this.h$.Nk();this.Lf.publish("videoStatsPingCreated",B);return B}; g.I.getVolume=function(){return Math.round(this.Lf.getVolume())}; g.I.isMuted=function(){return this.Lf.isMuted()}; g.I.Kw=function(){if(this.YW()===this.Ji()&&this.VI)return this.VI.postId}; g.I.qfJ=function(){var B=this;this.D("use_rta_for_player")||(g.JS(this.dF)?g.RQ(this.dF,g.Kt(this.getVideoData())).then(function(z){KB(kN(),z);N3z(B.getVideoData(),B.dF,B.Ju())}):N3z(this.getVideoData(),this.dF,this.Ju()))}; g.I.jy=function(B){this.Lf.publish("poTokenVideoBindingChange",B)}; g.I.CD=function(B){this.Lf.publish("d6de4videobindingchange",B)}; g.I.Bm=function(){this.AG&&this.AG.Bm()}; g.I.De=function(B){this.AG=B}; g.I.G7=function(B){if(B===1){this.n4.tick("vr");var z=this.Ji();z.f3();V$z(this.n4,z.getVideoData(),w2r(this));lhX(this.h$)}z=this.dF;if(B3(z)&&z.J||g.vo(z)){var T;(((T=this.Ji().getVideoData())==null?0:T.enableServerStitchedDai)||!this.w3())&&this.Lf.Pd("onAdStateChange",B)}}; g.I.setLoopVideo=function(B){var z=this.Ji();z===this.YW()&&z.Ug()!==B&&(z.setLoop(B),this.Lf.uO("onLoopChange",B))}; g.I.getLoopVideo=function(){return this.Ji().Ug()}; g.I.setLoopRange=function(B){var z=!1;!!this.VI!==!!B?z=!0:this.VI&&B&&(z=this.VI.startTimeMs!==B.startTimeMs||this.VI.endTimeMs!==B.endTimeMs||this.VI.postId!==B.postId||this.VI.type!==B.type);if(z){z=this.Ji();RY(z.getVideoData())&&z.OE("slr",{et:(B==null?void 0:B.endTimeMs)||-1});z=this.YW();z.I7("applooprange");if(B){var T=new g.Wj(B.startTimeMs,B.endTimeMs,{id:"looprange",namespace:"applooprange"});z.addCueRange(T)}else{this.O2().clipConfig=void 0;var R;((T=this.VI)==null?void 0:T.type)!=="repeatChapter"|| isNaN(Number((R=this.VI)==null?void 0:R.loopCount))||(T={loopCount:String(this.VI.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.ip("repeatChapterLoopEvent",T))}this.VI=B;this.Lf.uO("onLoopRangeChange",B||void 0);this.YW()===this.Ji()&&(this.ly(),z.xr())}}; g.I.getLoopRange=function(){return this.VI}; g.I.ly=function(){var B="",z=this.YW();this.VI?z!==this.Ji()?B="pnea":ZcX(this,z.getCurrentTime())&&(this.VI.loopCount=0,B="ilr"):B="nlr";var T=this.Ji();if(RY(T.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var R,h;T.OE("slrre",{rej:B,ct:z.getCurrentTime(),lst:(R=this.VI)==null?void 0:R.startTimeMs,let:(h=this.VI)==null?void 0:h.endTimeMs})}else T.OE("slrre",{});B||sOY(this)}; g.I.setPlaybackRate=function(B,z){if(!isNaN(B)){B=vGl(this,B);var T=this.YW();T.getPlaybackRate()!==B&&(T.setPlaybackRate(B),z&&!this.dF.W&&g.D_("yt-player-playback-rate",B),this.Lf.Pd("onPlaybackRateChange",B))}}; g.I.getCurrentTime=function(B,z){z=z===void 0?!0:z;var T=this.Bc.Dn;if(T)return T.getCurrentTime();var R=B===2&&this.getVideoData().enableServerStitchedDai;T=null;R?T=this.Ji():T=this.t$({playerType:B});return T?R&&this.o7?(B=this.Bc.X)?B.getCurrentTime(z):T.getCurrentTime():z?(z=As(this,T),PU(this,z.getCurrentTime(),z)):T.getCurrentTime():this.Bc.T.getCurrentTime()}; g.I.c7=function(){var B=this.t$({playerType:void 0});if(!B)return this.Bc.T.c7();B=As(this,B);return PU(this,B.c7(),B)}; g.I.getDuration=function(B,z){z=z===void 0?!0:z;var T=this.Bc.Dn;if(T)return T.getDuration();T=this.getVideoData();var R=B===2&&T.enableServerStitchedDai,h=null;R?h=this.Ji():h=this.t$({playerType:B});if(!h)return this.Bc.T.getDuration();if(T.hasProgressBarBoundaries()&&!R){var W,b=Number((W=T.progressBarStartPosition)==null?void 0:W.utcTimeMillis),l;W=Number((l=T.progressBarEndPosition)==null?void 0:l.utcTimeMillis);if(!isNaN(b)&&!isNaN(W))return(W-b)/1E3}if(RY(T)&&!T.isLivePlayback)return pS(this, B);if(z)return B=d0(this,h),PU(this,B.getDuration(),B);if(R&&this.o7){if(this.D("html5_huli_ssdai_use_playback_state"))return B=this.Bc,B=B.V===B.X?B.V:null,(B==null?void 0:B.getDuration())||0;var w;return((w=this.Bc.X)==null?void 0:w.getDuration())||0}return h.getDuration()}; g.I.gt=function(B){var z=this.t$({playerType:B});return z?this.w3(z)?(z=d0(this,z),z.gt()-z.getCurrentTime()+this.getCurrentTime(B)):z.gt():this.Bc.T.gt()}; g.I.addPlayerResponseForAssociation=function(){}; g.I.finishSegmentByCpn=function(){return[]}; g.I.lV=function(){this.template.lV();var B=this.Lf;B.state.element=this.template.element;var z=B.state.element,T;for(T in B.state.T)B.state.T.hasOwnProperty(T)&&(z[T]=B.state.T[T]);(B=moz(this.template.element))&&this.events.Z(this.template,B,this.onFullscreenChange)}; g.I.getDebugText=function(B){var z=this.YW().NS(B),T=this.Ji();if(T!==this.YW()){T=T.NS(B);for(var R=g.d(Object.keys(T)),h=R.next();!h.done;h=R.next())h=h.value,z["ad"+h]=T[h];if(B){T=z;R={};if(h=HY(document,"movie_player"))R.bounds=h.getBoundingClientRect(),R["class"]=h.className;h={};var W=g.t2("video-ads");W?(FYz(W,h),h.html=W.outerHTML):h.missing=1;W={};var b=g.t2("videoAdUiSkipContainer"),l=g.t2("ytp-ad-skip-button-container"),w=g.t2("ytp-skip-ad-button"),q=b||l||w;q?(FYz(q,W),W.ima=b?1:0,W.bulleit= l?1:0,W.component=w?1:0):W.missing=1;R=JSON.stringify({player:R,videoAds:h,skipButton:W});T.ad_skipBtnDbgInfo=R}}B&&this.mediaElement&&(z["0sz"]=""+(+vY(this.mediaElement.getSize())===0),z.op=this.mediaElement.wq("opacity"),T=this.mediaElement.SP().y+this.mediaElement.getSize().height,z.yof=""+(+T<=0),z.dis=this.mediaElement.wq("display"));B&&((B=(0,g.d9)())&&(z.gpu=B),(B=this.dF.playerStyle)&&(z.ps=B),this.dF.Kf&&(z.webview=1));z.debug_playbackQuality=this.Lf.getPlaybackQuality(1);z.debug_date=(new Date).toString(); z.origin=window.origin;z.timestamp=Date.now();delete z.uga;delete z.q;return JSON.stringify(z,null,2)}; g.I.getFeedbackProductData=function(){var B={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:Y[35]},z=this.getPlayerStateObject().pp;z&&(B.player_error_code=z.errorCode,B.player_error_details=JSON.stringify(z.errorDetail));return B}; g.I.getPresentingPlayerType=function(B){if(this.appState===1)return 1;if(ab(this))return 3;var z;return B&&((z=this.o7)==null?0:z.F8(this.getCurrentTime()))?2:this.Ji().getPlayerType()}; g.I.Tw=function(){return!1}; g.I.getPlayerStateObject=function(B){var z=this.Bc.Dn;return z?z.getPlayerState():this.t$({playerType:B}).getPlayerState()}; g.I.getAppState=function(){return this.appState}; g.I.GzE=function(B){switch(B.type){case "loadedmetadata":this.RU.start();B=g.d(this.m$);for(var z=B.next();!z.done;z=B.next())z=z.value,YJP(this,z.id,z.xgD,z.zwm,void 0,!1);this.m$=[];break;case "loadstart":this.n4.BU("gv");break;case "progress":case "timeupdate":ir(B.target.Ao())>=2&&this.n4.BU("l2s");break;case "playing":g.Ef&&this.RU.start();if(g.JS(this.dF))B=!1;else{z=g.pB(this.bK());B=this.mediaElement.wq("display")==="none"||vY(this.mediaElement.getSize())===0;var T=CS(this.template),R=this.Ji().getVideoData(), h=g.f0(this.dF);R=hu(R);z=!T||z||h||R||this.dF.EE;B=B&&!z}B&&(B=this.Ji(),B.zw(),this.getVideoData().Sk||(this.getVideoData().Sk=1,this.gw(),B.playVideo()))}}; g.I.Xcm=function(B){this.Lf.A0("onLoadProgress",B)}; g.I.Lld=function(){this.Lf.publish("playbackstalledatstart")}; g.I.P$K=function(B,z){this.Lf.publish("sabrCaptionsDataLoaded",B,z)}; g.I.bQG=function(B){this.Ji().fG(B)}; g.I.WuD=function(B){this.Ji().oO(B)}; g.I.HFD=function(B){B=As(this,this.Ji());B=PU(this,B.getCurrentTime(),B);this.Lf.Pd("onVideoProgress",B);this.dF.nt&&Rkb(this,this.visibility.Hv())&&this.pauseVideo()}; g.I.gif=function(){this.Lf.Pd("onAutoplayBlocked");var B=this.Ji().getVideoData();B&&(B.r9=!0);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.yW(this.dF)&&(B={autoplayBrowserPolicy:eP(),autoplayIntended:sQ(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ip("embedsAutoplayStatusChanged",B))}; g.I.zsJ=function(){this.Lf.publish("progresssync")}; g.I.nif=function(){this.Lf.A0("onPlaybackPauseAtStart")}; g.I.hmJ=function(B){if(this.getPresentingPlayerType()===1){g.dK(B,1)&&!g.X(B.state,64)&&this.O2().isLivePlayback&&this.YW().isAtLiveHead()&&this.Lf.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.dK(B,2)){if(this.VI&&this.VI.endTimeMs>=(this.getDuration()-1)*1E3){sOY(this);return}mAB(this)}if(g.X(B.state,128)){var z=B.state;this.cancelPlayback(5);z=z.pp;JSON.stringify({errorData:z,debugInfo:this.getDebugText(!0)});this.Lf.Pd("onError",RyK(z.errorCode));this.Lf.A0("onDetailedError",{errorCode:z.errorCode, errorDetail:z.errorDetail,message:z.errorMessage,messageKey:z.Hj,cpn:z.cpn});(0,g.f)()-this.dF.Gj>6048E5&&this.Lf.A0("onReloadRequired")}z={};if(B.state.isPlaying()&&!B.state.isBuffering()&&!jD("pbresume","ad_to_video")&&jD("_start","ad_to_video")){var T=this.getVideoData();z.clientPlaybackNonce=T.clientPlaybackNonce;T.videoId&&(z.videoId=T.videoId);g.NK(z,"ad_to_video");O4("pbresume",void 0,"ad_to_video");lhX(this.h$)}this.Lf.publish("applicationplayerstatechange",B)}}; g.I.Qi=function(B){this.Bc.Dn||this.Lf.publish("presentingplayerstatechange",B)}; g.I.ih=function(B){GL(this,Ck(B.state));g.X(B.state,1024)&&this.Lf.isMutedByMutedAutoplay()&&(g0(this,{muted:!1,volume:this.CX.volume},!1),Js(this,!1))}; g.I.vdZ=function(B,z){B==="newdata"&&p9d(this);this.Lf.publish("applicationvideodatachange",B,z)}; g.I.Yiu=function(B,z){this.D("html5_afmt_change_update_volume")&&qJr(this);this.Lf.A0("onPlaybackAudioChange",this.Lf.getAudioTrack().HB.name);this.Lf.publish("internalaudioformatchange",this.Lf.getAudioTrack().HB.id,z)}; g.I.tFO=function(B){var z=this.Ji().getVideoData();B===z&&this.Lf.Pd("onPlaybackQualityChange",B.U.video.quality)}; g.I.XT=function(){var B=this.Bc.Y[2]||null;B&&(B=B.getVideoData(),this.Ji().OE("ssdai",{cleanaply:1,acpn:B==null?void 0:B.clientPlaybackNonce,avid:B.videoId,isDai:this.O2().enableServerStitchedDai?1:0}),delete this.Bc.Y[2])}; g.I.r0d=function(B,z){this.MK(B,this.Ji(),z)}; g.I.MK=function(B,z,T){this.logger.debug(function(){return"on video data change "+B+", player type "+z.getPlayerType()+", vid "+T.videoId}); this.dF.L4()&&z.OE("vdc",{type:B,vid:T.videoId||"",cpn:T.clientPlaybackNonce||""});z===this.YW()&&(this.dF.RQ=T.oauthToken);z===this.YW()&&(this.getVideoData().enableServerStitchedDai&&!this.o7?(this.YW().OE("sdai",{initSstm:1}),this.o7=this.D("html5_enable_ssdai_transition_with_only_enter_cuerange")||this.D("html5_ssdai_log_ssevt_in_loader")?new OK5(this.Lf,this.dF,this.YW(),this):new g.XX(this.Lf,this.dF,this.YW(),this)):!this.getVideoData().enableServerStitchedDai&&this.o7&&(this.o7.dispose(), this.o7=null,Yiz(this.Bc)));if(B==="newdata")this.logger.debug("new video data, destroy modules"),gh(this.h$,2),this.Lf.publish("videoplayerreset",z);else{if(!this.mediaElement)return;B==="dataloaded"&&(this.YW()===this.Ji()?(nY(T.bO,T.rU),NEX(this)):fCH(this));z.getPlayerType()===1&&(this.dF.zZ&&oFb(this),this.getVideoData().isLivePlayback&&!this.dF.P_&&this.gE("html5.unsupportedlive",2,"DEVICE_FALLBACK"),T.isLoaded()&&((cNP(T)||this.getVideoData().xj)&&this.Lf.publish("legacyadtrackingpingchange", this.getVideoData()),T.hasProgressBarBoundaries()&&SmY(this)));this.Lf.publish("videodatachange",B,T,z.getPlayerType())}this.Lf.Pd("onVideoDataChange",{type:B,playertype:z.getPlayerType()});this.ly();var R=T.kq;R?this.v_.KZ(R,T.clientPlaybackNonce):UAK(this.v_)}; g.I.A5=function(){Mt(this,null);this.Lf.A0("onPlaylistUpdate")}; g.I.SiE=function(B){delete this.N$[B.getId()];this.YW().removeCueRange(B);a:{B=this.getVideoData();var z,T,R,h,W,b,l,w,q,c,L=((z=B.XE)==null?void 0:(T=z.contents)==null?void 0:(R=T.singleColumnWatchNextResults)==null?void 0:(h=R.autoplay)==null?void 0:(W=h.autoplay)==null?void 0:W.sets)||((b=B.XE)==null?void 0:(l=b.contents)==null?void 0:(w=l.twoColumnWatchNextResults)==null?void 0:(q=w.autoplay)==null?void 0:(c=q.autoplay)==null?void 0:c.sets);if(L)for(z=g.d(L),T=z.next();!T.done;T=z.next())if(T= T.value,h=R=void 0,T=T.autoplayVideo||((R=T.autoplayVideoRenderer)==null?void 0:(h=R.autoplayEndpointRenderer)==null?void 0:h.endpoint),R=g.u(T,g.E2),W=h=void 0,T!=null&&((h=R)==null?void 0:h.videoId)===B.videoId&&((W=R)==null?0:W.continuePlayback)){B=T;break a}B=null}(z=g.u(B,g.E2))&&this.Lf.uO("onPlayVideo",{sessionData:{autonav:"1",itct:B==null?void 0:B.clickTrackingParams},videoId:z.videoId,watchEndpoint:z})}; g.I.i4=function(B){var z=this;B!==this.appState&&(this.logger.debug(function(){return"app state change "+z.appState+" -> "+B}),B===2&&this.getPresentingPlayerType()===1&&(GL(this,-1),GL(this,5)),this.appState=B,this.Lf.publish("appstatechange",B))}; g.I.gE=function(B,z,T,R,h){this.YW().jD(B,z,T,R,h)}; g.I.f0=function(B,z){this.YW().handleError(new y_(B,z))}; g.I.isAtLiveHead=function(B,z){z=z===void 0?!1:z;var T=this.t$({playerType:B});if(!T)return this.Bc.T.isAtLiveHead();B=d0(this,T);T=As(this,T);return B!==T?B.isAtLiveHead(PU(this,T.getCurrentTime(),T),!0):B.isAtLiveHead(void 0,z)}; g.I.In=function(){var B=this.t$({playerType:void 0});return B?d0(this,B).In():this.Bc.T.In()}; g.I.seekTo=function(B,z,T,R,h){z=z!==!1;if(R=this.t$({playerType:R}))this.appState===2&&Q2(this),this.w3(R)?xB(this)?this.o7.seekTo(B,{seekSource:h},z,T):this.KF.seekTo(B,{seekSource:h},z,T):R.seekTo(B,{WR:!z,UP:T,Dx:"application",seekSource:h})}; g.I.seekBy=function(B,z,T,R){this.seekTo(this.getCurrentTime()+B,z,T,R)}; g.I.c0Z=function(){this.Lf.Pd("SEEK_COMPLETE")}; g.I.TzF=function(){this.Lf.uO("onAbnormalityDetected")}; g.I.Ixd=function(B){this.Lf.uO("onSnackbarMessage",B)}; g.I.qiO=function(B){var z=this.Ji(),T=z.getVideoData();if(this.appState===1||this.appState===2)T.startSeconds=B;this.appState===2?g.X(z.getPlayerState(),512)||Q2(this):this.Lf.Pd("SEEK_TO",B)}; g.I.UWE=function(){this.Lf.publish("airplayactivechange");this.dF.D("html5_external_airplay_events")&&this.Lf.A0("onAirPlayActiveChange",this.Lf.dE())}; g.I.OFK=function(){this.Lf.publish("airplayavailabilitychange");this.dF.D("html5_external_airplay_events")&&this.Lf.A0("onAirPlayAvailabilityChange",this.Lf.Bh())}; g.I.showAirplayPicker=function(){this.Ji().ZP()}; g.I.QIJ=function(){this.Lf.publish("beginseeking")}; g.I.bFu=function(){this.Lf.publish("endseeking")}; g.I.getStoryboardFormat=function(B){return(B=this.t$({playerType:B}))?d0(this,B).getStoryboardFormat():this.Bc.T.getStoryboardFormat()}; g.I.QW=function(B){return(B=this.t$({playerType:B}))?d0(this,B).getVideoData().QW():this.Bc.T.QW()}; g.I.w3=function(B){B=(B||this.Ji()).getVideoData();if(xB(this))B=B===this.o7.playback.getVideoData();else a:{var z=this.KF;if(B===z.T.getVideoData()&&z.U.length)B=!0;else{z=g.d(z.U);for(var T=z.next();!T.done;T=z.next())if(B.eF===T.value.eF){B=!0;break a}B=!1}}return B}; g.I.m7=function(B,z,T,R,h,W,b,l){this.logger.debug(function(){return"Adding video to timeline id="+B.video_id+"\n lengthMs="+R+" enterTimeMs="+h}); var w="",q=xB(this);this.Ji().OE("appattl",{sstm:this.o7?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:q});w=q?M75(this.o7,B,z,T,R,h,W,b,l):BEP(this.KF,B,T,R,h,W);this.logger.debug(function(){return"Video added to timeline id="+B.video_id+" timelinePlaybackId="+w}); return w}; g.I.g8=function(B,z,T,R,h,W,b,l){if(xB(this)){var w=M75(this.o7,B,z,T,R,h,W,b,l);this.logger.debug(function(){return"Remaining video added to timeline id="+B.video_id+" timelinePlaybackId="+w})}return""}; g.I.tS=function(B){var z;(z=this.o7)==null||z.tS(B)}; g.I.Br=function(B,z){B=B===void 0?-1:B;z=z===void 0?Infinity:z;xB(this)||w9z(this.KF,B,z)}; g.I.ut=function(B,z,T){if(xB(this)){var R=this.o7,h=R.s0.get(B);h?(T===void 0&&(T=h.QU),J6X(R,h,z,T)):R.J6("Invalid_timelinePlaybackId_"+B+"_specified")}else{R=this.KF;h=null;for(var W=g.d(R.U),b=W.next();!b.done;b=W.next())if(b=b.value,b.eF===B){h=b;break}h?(T===void 0&&(T=h.QU),lCl(R,h,z,T)):YB(R,"InvalidTimelinePlaybackId timelinePlaybackId="+B)}}; g.I.enqueueVideoByPlayerVars=function(B,z,T,R){T=T===void 0?Infinity:T;R=R===void 0?"":R;this.w3();B=new g.NT(this.dF,B);R&&(B.eF=R);BVl(this,B,z,T)}; g.I.queueNextVideo=function(B,z,T,R,h){T=T===void 0?NaN:T;B=this.preloadVideoByPlayerVars(B,z===void 0?1:z,T,R===void 0?"":R,h===void 0?"":h);z=this.Ji();B&&(this.D("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&z.getVideoData().L&&(T=this.DN,R=this.U6.L,T.W!==B&&(T.U=z,T.W=B,T.Y=1,T.T=B.getVideoData(),T.V=R,T.T.isLoaded()?T.X():T.T.subscribe("dataloaded",T.X,T))):(T=NT5(z,B,this.U6.L),T!=null?(z.OE("sgap",T),z.getVideoData().L&&z.JT(!1)):(B=B.getVideoData(),z=this.DN,z.T!== B&&(z.T=B,z.Y=1,B.isLoaded()?z.L():z.T.subscribe("dataloaded",z.L,z)))))}; g.I.Jx=function(B,z,T,R){var h=this;T=T===void 0?0:T;R=R===void 0?0:R;d0(this,this.Ji()).IU();Rsd(this.U6,B,z,T,R).then(function(){h.Lf.A0("onQueuedVideoLoaded")},function(){})}; g.I.jw=function(){return this.U6.jw()}; g.I.j4=function(B){var z=this.U6.T;return z?z.H1(B):!1}; g.I.clearQueue=function(B,z){B=B===void 0?!1:B;z=z===void 0?!1:z;this.logger.debug("Clearing queue");this.U6.clearQueue(B,z)}; g.I.loadVideoByPlayerVars=function(B,z,T,R,h,W){z=z===void 0?1:z;var b=this.YW();if(z===2&&this.O2().enableServerStitchedDai&&b&&!b.Xq())return b.OE("lvonss",{vid:(B==null?void 0:B.videoId)||"",ptype:z}),!1;var l=!1;b=new g.NT(this.dF,B);b.EE=W;g.sf(this.dF)&&!b.o_&&Cu(this.n4);var w;W=this.n4;var q=(w=b.N)!=null?w:"";W.timerName=q;this.n4.QQ("pl_i");this.D("web_player_early_cpn")&&b.clientPlaybackNonce&&this.n4.infoGel({clientPlaybackNonce:b.clientPlaybackNonce});urz(b).supportsVp9Encoding===!1&& this.Ji().OE("noVp9enc",{});if(this.K().supportsGaplessShorts()){w=WDz(this.U6,b,z);if(w==null){GL(this,-1);this.dF.L4()&&this.dF.D("html5_short_gapless_unlisten_after_seek")&&this.Ji().OE("sgap",{ul:1});B=this.U6;B.app.K().D("html5_gapless_new_slr")?$B(B.app,"gaplessshortslooprange"):B.app.setLoopRange(null);B.app.getVideoData().Ro=!0;var c;(c=B.T)==null||c.X3();var L;(L=B.T)==null||L.WG();T={Dx:"gapless_to_next_video",seekSource:60};R=g.rk(B.app.K().experiments,"html5_gapless_seek_offset");var C; (C=B.app.Ji())==null||C.seekTo(hsH(B)+R,T);if(!B.app.getPlayerStateObject(z).isPlaying()){var r;(r=B.app.Ji())==null||r.playVideo(!0)}if(B.app.K().D("html5_short_gapless_unlisten_after_seek")){var F;(F=B.app.Ji())==null||F.yb()}B.X();return!0}C=this.D("html5_shorts_gapless_preload_fallback");r=this.U6.T;C&&r&&!r.xd()&&(F=r.getVideoData(),F=this.dF.D("html5_autonav_autoplay_in_preload_key")?Dh(this,z,F):kB(this,z,F.videoId,F.eF),this.Bc.W.set(F,r,3600));this.U6.clearQueue(C);this.Ji().OE("sgap",{f:w})}if(h){for(;b.NL.length&& b.NL[0].isExpired();)b.NL.shift();l=b.NL.length-1;l=l>0&&h.U(b.NL[l])&&h.U(b.NL[l-1]);b.NL.push(h)}T||(B&&gEH(B)?(tq(this.dF)&&!this.qZ&&(B.fetch=0),Mt(this,B)):this.playlist&&Mt(this,null),B&&(this.qZ=WZ(!1,B.external_list)));this.Lf.publish("loadvideo");z=this.Vy(b,z,R);l&&this.gE("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+b.NL.join()).replace(/[;:,]/g,"_"));return z}; g.I.preloadVideoByPlayerVars=function(B,z,T,R,h){z=z===void 0?1:z;T=T===void 0?NaN:T;R=R===void 0?"":R;h=h===void 0?"":h;var W="";if(this.dF.D("html5_autonav_autoplay_in_preload_key"))W=TVK(this,z,B,h);else{var b=q4(B);W=kB(this,z,b,h)}if(this.Bc.W.get(W))return this.logger.debug(function(){return"already preloaded "+W}),null; B=new g.NT(this.dF,B);h&&(B.eF=h);return zkl(this,B,z,T,R)}; g.I.setMinimized=function(B){this.visibility.setMinimized(B);(B=iSK(this.h$))&&(this.isMinimized()?B.load():B.unload());this.Lf.publish("minimized")}; g.I.setInline=function(B){this.visibility.setInline(B)}; g.I.setInlinePreview=function(B){this.visibility.setInline(B)}; g.I.w$=function(B){hkr(this,B)||this.visibility.w$(B)}; g.I.setSqueezeback=function(B){this.visibility.setSqueezeback(B)}; g.I.RX=function(){var B,z=(B=this.mediaElement)==null?void 0:B.jk();z&&(this.dF.OI&&Gc(oL(function(){return document.exitFullscreen()}),function(){}),Gc(oL(function(){return AQ(z)}),function(){}))}; g.I.j7u=function(){this.mediaElement.jk();this.mediaElement.jk().webkitPresentationMode==="picture-in-picture"?this.w$(!0):this.w$(!1)}; g.I.togglePictureInPicture=function(){this.Ji().togglePictureInPicture()}; g.I.Vy=function(B,z,T){z=z===void 0?1:z;this.logger.debug(function(){return"start load video, id "+B.videoId+", type "+z}); jD("_start",this.n4.timerName)||g.BP(kX)(void 0,this.n4.timerName);var R=!1,h=X9l(this,z,B,!1);h?(R=!0,B.dispose()):(h=FV(this,z,B,!0,T),(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&h.Vv()&&h.Ab(),this.RU.stop(),z===1&&z!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,z),this.oD(h));h===this.YW()&&(this.dF.RQ=B.oauthToken);if(!h.Vv())return!1;if(h===this.YW())return this.i4(1),T=Q2(this),R&&this.D("html5_player_preload_ad_fix")&&h.getPlayerType()===1&& h.V8()&&this.MK("dataloaded",h,h.getVideoData()),T;h.hn();return!0}; g.I.cueVideoByPlayerVars=function(B,z){var T=this;z=z===void 0?1:z;var R=this.YW();if(this.O2().enableServerStitchedDai&&R&&!R.Xq()&&B&&Object.keys(B).length>0)R.OE("qvonss",{vid:(B==null?void 0:B.videoId)||"",ptype:z});else if(B&&gEH(B))if(this.d7=!0,Mt(this,B),(B=g.rh(this.playlist))&&B.u1())mp(this,B,z);else this.playlist.onReady(function(){V2(T)}); else{z||(z=this.getPresentingPlayerType());z===1&&this.A5();R=new g.NT(this.dF,B);var h=g.yW(this.dF)&&!this.dF.UE&&z===1&&!R.isAd()&&!R.L2;this.Lf.publish("cuevideo");h?(this.Ji().getVideoData().loading=!0,DfB(R,B?B:{}).then(function(W){mp(T,W,z)}),R.dispose()):mp(this,R,z)}}; g.I.Dw=function(B,z,T,R,h,W,b){if(!B&&!T)throw Error("Playback source is invalid");if(Jq(this.dF)||g.y9(this.dF))return z=z||{},z.lact=JW(),z.vis=this.Lf.getVisibilityState(),this.Lf.uO("onPlayVideo",{videoId:B,watchEndpoint:W,sessionData:z,listId:T}),!1;QqY(this.n4);this.n4.reset();B={video_id:B};R&&(B.autoplay="1");R&&(B.autonav="1");W&&(B.player_params=W.playerParams);b&&(B.oauth_token=b);T?(B.list=T,this.loadPlaylist(B)):this.loadVideoByPlayerVars(B,1);return!0}; g.I.cuePlaylist=function(B,z,T,R){this.d7=!0;WYK(this,B,z,T,R)}; g.I.loadPlaylist=function(B,z,T,R){this.d7=!1;WYK(this,B,z,T,R)}; g.I.HO=function(){return this.Lf.isMutedByMutedAutoplay()?!1:this.Bc.Dn?!0:!(!this.playlist||!this.playlist.K1())}; g.I.Zd=Wb(13); g.I.nextVideo=function(B,z){var T=g.SL(this.YW().getVideoData());g.xN(this.Lf)&&T?this.Dw(T.videoId,z?T.FN:T.sessionData,T.playlistId,z,void 0,T.dB||void 0):this.qZ?this.Lf.A0("onPlaylistNext"):this.getPresentingPlayerType()===3?yx(this.h$).nextVideo():!this.playlist||tq(this.dF)&&!this.Lf.isFullscreen()||(this.playlist.K1(B)&&$fK(this.playlist,J3K(this.playlist)),this.playlist.loaded?(B=z&&this.dF.D("html5_player_autonav_logging"),z&&this.Lf.publish("playlistautonextvideo"),this.Vy(g.rh(this.playlist,void 0, z,B),1)):this.d7=!1)}; g.I.previousVideo=function(B){this.qZ?this.Lf.A0("onPlaylistPrevious"):this.getPresentingPlayerType()===3?yx(this.h$).e3():!this.playlist||tq(this.dF)&&!this.Lf.isFullscreen()||(this.playlist.xs(B)&&$fK(this.playlist,pdH(this.playlist)),this.playlist.loaded?this.Vy(g.rh(this.playlist),1):this.d7=!1)}; g.I.playVideoAt=function(B){this.qZ?this.Lf.A0("onPlaylistIndex",B):this.playlist&&(this.playlist.loaded?this.Vy(g.rh(this.playlist,B),1):this.d7=!1,$fK(this.playlist,B))}; g.I.getPlaylist=function(){return this.playlist}; g.I.eS=Wb(25);g.I.AiF=function(B){this.Lf.Pd("onCueRangeEnter",B.getId())}; g.I.Edi=function(B){this.Lf.Pd("onCueRangeExit",B.getId())}; g.I.g4=function(){var B=g.QJ(this.bK());B&&B.g4()}; g.I.Vc=function(B,z,T){var R=this.t$({playerType:z});if(R){if(this.D("html5_ssdai_enable_media_end_cue_range")&&this.o7){R.getPlayerType()===2&&this.o7.F8(this.getCurrentTime())&&(R=this.YW());for(var h=g.d(B),W=h.next();!W.done;W=h.next())W.value.Y=this.o7.xL}R.Vc(B,T);z&&this.getPresentingPlayerType()!==z||nS(this,"cuerangesadded",B)}}; g.I.Q4=function(B,z){var T=this.t$({playerType:z});T&&(T.Q4(B),z&&this.getPresentingPlayerType()!==z||nS(this,"cuerangesremoved",B))}; g.I.dP=function(B){return this.Ji().dP(B)}; g.I.aJE=function(){function B(){var R=z.screenLayer||(z.isMinimized()?3:0),h=g.gd(R);if(h&&h!=="UNDEFINED_CSN"){var W=z.dF.D("web_player_attach_player_response_ve"),b=z.dF.D("web_playback_associated_ve");R={cpn:z.getVideoData().clientPlaybackNonce,csn:h};z.getVideoData().lO&&(W||b)&&(W=g.Vl(z.getVideoData().lO),g.lU(h,W),b&&(R.playbackVe=W.getAsJson()));z.getVideoData().queueInfo&&(R.queueInfo=z.getVideoData().queueInfo);h={};z.D("web_playback_associated_log_ctt")&&z.getVideoData().X&&(h.cttAuthInfo= {token:z.getVideoData().X,videoId:z.getVideoData().videoId});g.ip("playbackAssociated",R,h)}else g.KV(new g.Z_("CSN Missing or undefined during playback association"))} var z=this,T=this.Ji();this.getPresentingPlayerType();V$z(this.n4,T.getVideoData(),w2r(this));Ux(this)&&this.dF.W&&xh(this.O2())==="embedded"&&this.WX&&Math.random()<.01&&g.ip("autoplayTriggered",{intentional:this.intentionalPlayback});this.WX=!1;lhX(this.h$);this.D("web_player_defer_ad")&&OcP(this);this.Lf.A0("onPlaybackStartExternal");(this.dF.D("mweb_client_log_screen_associated"),uq(this.dF))||B();T={};this.getVideoData().X&&(T.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId}); T.sampleRate=20;tY("player_att",T);if(this.getVideoData().botguardData||this.D("fetch_att_independently"))g.Zf(this.dF)||g.Sg(this.dF)==="MWEB"?g.B4(g.To(),function(){y2(z)}):y2(this); this.ly();efK(this);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.yW(this.dF)&&(T={autoplayBrowserPolicy:eP(),autoplayIntended:sQ(this.getVideoData()),autoplayStatus:S$K(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ip("embedsAutoplayStatusChanged",T))}; g.I.jIu=function(){this.Lf.publish("internalAbandon");vU(this)}; g.I.onApiChange=function(){var B=this.Ji();this.dF.J?this.Lf.Pd("onApiChange",B.getPlayerType()):this.Lf.Pd("onApiChange")}; g.I.oWd=function(){var B=this.mediaElement;B={volume:g.yQ(Math.floor(B.getVolume()*100),0,100),muted:B.Bb()};B.muted||Js(this,!1);this.CX=g.zR(B);this.Lf.Pd("onVolumeChange",B)}; g.I.mutedAutoplay=function(B){var z=this.getVideoData().videoId;isNaN(this.kG)&&(this.kG=this.getVideoData().startSeconds);if((B==null?0:B.videoId)||z)this.loadVideoByPlayerVars({video_id:(B==null?0:B.videoId)?B==null?void 0:B.videoId:z,playmuted:!0,start:this.kG,muted_autoplay_duration_mode:B==null?void 0:B.durationMode}),this.Lf.A0("onMutedAutoplayStarts")}; g.I.onFullscreenChange=function(){var B=iZd(this);this.Tn(B?1:0);LYr(this,!!B)}; g.I.Tn=function(B){var z=!!B,T=!!this.Kv()!==z;this.visibility.Tn(B);this.template.Tn(z);this.D("html5_media_fullscreen")&&!z&&this.mediaElement&&iZd(this)===this.mediaElement.jk()&&this.mediaElement.xC();this.template.resize();T&&this.n4.tick("fsc");T&&(this.Lf.publish("fullscreentoggled",z),B=this.O2(),z={fullscreen:z,videoId:B.ju||B.videoId,time:this.getCurrentTime()},this.Lf.getPlaylistId()&&(z.listId=this.Lf.getPlaylistId()),this.Lf.Pd("onFullscreenChange",z))}; g.I.Lh=function(){return this.visibility.Lh()}; g.I.isFullscreen=function(){return this.visibility.isFullscreen()}; g.I.Kv=function(){return this.visibility.Kv()}; g.I.viF=function(){var B=this.Kv();B!==0&&B!==1||this.Tn(iZd(this)?1:0);B=window.screen.width*window.screen.height;var z=window.outerHeight*window.outerWidth;this.dF.YD?(this.Zs=Math.max(this.Zs,B,z),B=z/this.Zs0&&(w=Math.floor(q/1E3))}w=z?z.Dc:w;var c={AD_BLOCK:this.T++,AD_BREAK_LENGTH:w,AUTONAV_STATE:HU(this.player.K()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.In()*1E3,LACT:JW(),LIVE_INDEX:z?this.Y++:1,LIVE_TARGETING_CONTEXT:z&&z.context?z.context:"",MIDROLL_POS:W? Math.round(W.start/1E3):0,MIDROLL_POS_MS:W?Math.round(W.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.NG().WV().height,P_W:this.player.NG().WV().width,YT_REMOTE:h?h.join(","):""},L=LL(cP);Object.keys(L).forEach(function(r){L[r]!=null&&(c[r.toUpperCase()]=L[r].toString())}); T!==""&&(c.BISCOTTI_ID=T);T={};iA(B)&&(T.sts="20228",(z=this.player.K().forcedExperiments)&&(T.forced_experiments=z));var C=lA(g.Pu(B,c),T);return C.split("?").length!==2?xt(Error("Invalid AdBreakInfo URL")):g.RQ(this.player.K(),l==null?void 0:l.oauthToken).then(function(r){if(r&&qR()){var F=kN();KB(F,r)}r=R.player.Ju(F);F=mel(R,C,c,l.isMdxPlayback,b);return g.E4(r,F,"/youtubei/v1/player/ad_break").then(function(A){return A})})}; fS.prototype.reset=function(){this.Y=this.T=1};g.G(nFB,fS); nFB.prototype.U=function(B,z,T){z=z===void 0?{}:z;var R=z.Fx;var h=z.zY;var W=z.cueProcessedMs;T=T===void 0?"":T;z=this.T;this.T++;var b=this.player.K().D("h5_disable_macro_substitution_in_get_ad_break")?B:uZP(this,B,{Fx:R,zY:h,cueProcessedMs:W},T,z);if(b.split("?").length!==2)return Math.random()<.1&&g.KV(Error("Invalid AdBreakInfo URL")),xt(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,w=T;T=$el.exec(b);T=T!=null&&T.length>=2?T[1]:"";B=Pfr.test(b);var q=xeX.exec(b); q=q!=null&&q.length>=2?q[1]:"";var c=vFY.exec(b);c=c!=null&&c.length>=2&&!Number.isNaN(Number(c[1]))?Number(c[1]):1;var L=DeP.exec(b);L=L!=null&&L.length>=2?L[1]:"0";var C=mR(this.player.K().yW),r=g.cS(this.player.getVideoData(1).lO,!0);Vsz(this,r,b,w===""?"":w,this.player.K(),this.player.getVideoData(1));w={splay:!1,lactMilliseconds:String(JW()),playerHeightPixels:Math.trunc(this.player.NG().WV().height),playerWidthPixels:Math.trunc(this.player.NG().WV().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20228,autonavState:HU(this.player.K())};if(l){l={};var F=this.player.K().uh;gFz(l,F?F.join(","):"")&&(w.mdxContext=l)}if(l=kDB.includes(C)?void 0:g.m4("PREF")){F=l.split(RegExp("[:&]"));for(var A=0,a=F.length;A1&&V[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn=p2z(l)}b=KYd.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&q&&(r.user.credentialTransferTokens= [{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};w=this.player.getVideoData(1).getGetAdBreakContext();l=this.player.getVideoData(1).clientPlaybackNonce;F=W!==void 0?Math.round(W).toString():void 0;A=(R==null?0:R.context)?R.context:void 0;a=0;W&&h&&!R&&(h=h.end-h.start,h>0&&(a=Math.floor(h/1E3)));R=(R=Math.trunc((R?R.Dc:a)*1E3))?String(R):void 0;h=this.player.In()*1E3;h=Number.isNaN(h)?0:Math.trunc(h);z={adBlock:z,params:T,breakIndex:c,breakPositionMs:L,clientPlaybackNonce:l,topLevelDomain:C, isProxyAdTagRequest:B,context:r,overridePlaybackContext:b,cueProcessedMs:F,videoId:q?q:void 0,liveTargetingParams:A,breakLengthMs:R,driftFromHeadMs:h?String(h):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:w?w:void 0};return HZK(this,z)};var fkp={rgI:"replaceUrlMacros",EoG:"onAboutThisAdPopupClosed",f_O:"executeCommand"};fT5.prototype.eG=function(){return"adPingingEndpoint"}; fT5.prototype.wP=function(B,z,T){VJB(this.PD.get(),B,z,T)};OZz.prototype.eG=function(){return"changeEngagementPanelVisibilityAction"}; OZz.prototype.wP=function(B){this.j.uO("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:B})};NVz.prototype.eG=function(){return"loggingUrls"}; NVz.prototype.wP=function(B,z,T){B=g.d(B);for(var R=B.next();!R.done;R=B.next())R=R.value,VJB(this.PD.get(),R.baseUrl,z,T,R.attributionSrcMode)};g.G(jdd,g.K);g.G(Nt,g.K);g.I=Nt.prototype;g.I.addListener=function(B){this.listeners.push(B)}; g.I.removeListener=function(B){this.listeners=this.listeners.filter(function(z){return z!==B})}; g.I.KY=function(B,z,T,R,h,W,b,l){if(B==="")Fo("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(B!==this.T||T){this.T=B;this.DJ.get().KY(B,z,T,R,h,W,b,l);this.yu.get().KY(B,z,T,R,h,W,b,l);var w;(w=this.s2)==null||w.get().KY(B,z,T,R,h,W,b,l);this.U.KY(B,z,T,R,h,W,b,l);w=g.d(this.listeners);for(var q=w.next();!q.done;q=w.next())q.value.KY(B,z,T,R,h,W,b,l)}else Fo("Duplicate content video loaded signal")}; g.I.Z4O=function(){this.T&&this.Ag(this.T)}; g.I.Ag=function(B){this.T=void 0;for(var z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.Ag(B)};ts.prototype.kA=function(B,z,T,R,h){X2X(this);this.V=!z&&T===0;var W=this.j.getVideoData(1),b=this.j.getVideoData(2);W&&(this.contentCpn=W.clientPlaybackNonce,this.videoId=W.videoId,this.T=W.X);b&&(this.adCpn=b.clientPlaybackNonce,this.adVideoId=b.videoId,this.adFormat=b.adFormat);this.W=B;R<=0?(X2X(this),this.V=!z&&T===0):(this.actionType=this.V?z?"unknown_type":"video_to_ad":z?"ad_to_video":"ad_to_ad",this.videoStreamType=h?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Y=!0,jD("_start",this.actionType)&&sdK(this)))}; ts.prototype.reset=function(){return new ts(this.j)};g.G(jE,g.K);jE.prototype.addCueRange=function(B,z,T,R,h,W,b){W=W===void 0?3:W;b=b===void 0?1:b;this.T.has(B)?Fo("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:B}):(B=new EFP(B,z,T,R,W),this.T.set(B.id,{zY:B,listener:h,eb:b}),this.j.A$([B],b))}; jE.prototype.removeCueRange=function(B){var z=this.T.get(B);z?(this.j.w2([z.zY],z.eb),this.T.delete(z.zY.id)):Fo("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:B})}; jE.prototype.onCueRangeEnter=function(B){if(this.T.has(B.id))this.T.get(B.id).listener.onCueRangeEnter(B.id)}; jE.prototype.onCueRangeExit=function(B){if(this.T.has(B.id))this.T.get(B.id).listener.onCueRangeExit(B.id)}; g.G(EFP,g.Wj);XV.prototype.addPlayerResponseForAssociation=function(B){this.j.addPlayerResponseForAssociation(B)};Zh.prototype.G7=function(B){this.j.G7(B)}; Zh.prototype.Sg=function(B){var z=g.K5.apply(1,arguments);B==="onAdStart"||B==="onAdEnd"?this.j.Pd.apply(this.j,[B].concat(g.Q(z))):this.j.uO.apply(this.j,[B].concat(g.Q(z)))};eE.prototype.Rp=function(B){return B&&sx(this)};var w$P=null;g.G(l2z,g.Cl);l2z.prototype.WN=function(B){return this.T.hasOwnProperty(B)?this.T[B].WN():{}}; g.Zz("ytads.bulleit.getVideoMetadata",function(B){return Ex().WN(B)}); g.Zz("ytads.bulleit.triggerExternalActivityEvent",function(B,z,T){var R=Ex();T=YYX(T);T!==null&&R.publish(T,{queryId:B,viewabilityString:z})});g.I=SE.prototype;g.I.Ak=function(B,z){if(!this.T.has(B))return{};if(z==="seek"){z=!1;z=z===void 0?!1:z;var T=Bl(Sw).q9(B,{});T?ZO(T):z&&(B=Bl(Sw).Kb(null,Hy(),!1,B),B.Mj=3,VUB([B]));return{}}z=iU5(z);if(z===null)return{};var R=this.j.Nd();if(!R)return{};var h=this.j.getPresentingPlayerType(!0);if((T=this.j.getVideoData(h))==null||!T.isAd())return{};T={opt_adElement:R,opt_fullscreen:this.DJ.get().isFullscreen()};return Vad(z,B,T)}; g.I.FX=function(B,z,T,R,h){this.T.has(B)&&(R<=0||h<=0||Bl(Sw).FX(B,z,T,R,h))}; g.I.JM=function(B){var z;(z=this.T.get(B.queryId))==null||z.JM()}; g.I.Z5=function(B){var z;(z=this.T.get(B.queryId))==null||z.Z5()}; g.I.M7=function(B){var z;(z=this.T.get(B.queryId))==null||z.M7()}; g.I.HS=function(B){var z;(z=this.T.get(B.queryId))==null||z.HS()}; g.I.m_=function(B){var z;(z=this.T.get(B.queryId))==null||z.m_()};dDP.prototype.send=function(B,z,T,R){try{ALz(this,B,z,T,R===void 0?!1:R)}catch(h){}};g.G(a2r,dDP);UDr.prototype.send=function(B,z,T,R){var h=!1;try{if(R==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||R==="ATTRIBUTION_SRC_MODE_XHR_OPTION")h=!0,B=CAP(B);R=h;var W=g.It(B);if(W[1]==="https")var b=B;else W[1]="https",b=Fc("https",W[2],W[3],W[4],W[5],W[6],W[7]);var l=lEP(b);W=[];var w=ssz(b)&&this.Qu.get().j.K().experiments.Cf("add_auth_headers_to_remarketing_google_dot_com_ping");if(iA(b)||w)W.push({headerType:"USER_AUTH"}),W.push({headerType:"PLUS_PAGE_ID"}),W.push({headerType:"VISITOR_ID"}),W.push({headerType:"EOM_VISITOR_ID"}), W.push({headerType:"AUTH_USER"}),W.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:b,scrubReferrer:l,headers:W},z,T,R)}catch(q){}};hF.prototype.X_=function(){return this.j.X_(1)};g.G(Wm,g.K);g.I=Wm.prototype;g.I.y_=function(){return this.j.getVideoData(1).clientPlaybackNonce}; g.I.addListener=function(B){this.listeners.push(B)}; g.I.removeListener=function(B){this.listeners=this.listeners.filter(function(z){return z!==B})}; g.I.KY=function(){this.nz.clear();this.td=null;this.Qj.get().clear()}; g.I.Ag=function(){}; g.I.Kuu=function(B,z,T,R,h){z.videoId==="nPpU29QrbiU"&&this.j.OE("ads_ssm_vdc_s",{pt:T,dvt:B});V3(this.Qu.get())&&B!=="dataloaded"||Pwd(this,z,T);if(sx(this.Qu.get())&&B==="newdata"&&h!==void 0){B=this.y_();var W=z.clientPlaybackNonce,b={};au(this,"rte",(b.ec=W,b.xc=R==null?void 0:R.clientPlaybackNonce,b.tr=h,b.pt=T,b.ia=W!==B,b.ctp=Ai(W),b));z=z.clientPlaybackNonce;R=R==null?void 0:R.clientPlaybackNonce;h=xDb(h);if(h!==1)if(R!==void 0)for(T=g.d(this.listeners),B=T.next();!B.done;B=T.next())B.value.T7(R, z,h);else Fo("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:z,transitionReason:String(h)});h=g.d(this.listeners);for(R=h.next();!R.done;R=h.next())R.value.iM(z)}}; g.I.V6F=function(B,z){B!==void 0&&(this.td=B,z===void 0?Fo("Expected ad video start time on SS video changed"):this.nz.set(B,z));var T=this.j.getPresentingPlayerType(!0),R=this.j.getVideoData(T),h;B===void 0?h=null:h=this.Qj.get().T.get(B)||null;this.j.getVideoData(1).OE("ads_ssvc",{pt:T,cpn:R==null?void 0:R.clientPlaybackNonce,crtt:this.j.getCurrentTime(1,!1),atlh:this.j.isAtLiveHead(),adstt:z,pid:B,slid:h==null?void 0:h.layoutId});R?Pwd(this,R,T):Fo("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.j.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:B})}; g.I.vP=function(B,z){var T=B.author,R=B.clientPlaybackNonce,h=B.isListed,W=B.eF,b=B.title,l=B.Y2,w=B.E6,q=B.isMdxPlayback,c=B.Vr,L=B.mdxEnvironment,C=B.isAutonav,r=B.d5,F=B.o_,A=B.UM,a=B.videoId||"",V=B.profilePicture||"",M=B.W3||"",x=B.mP()||!1,v=B.Gz()||!1;B=B.kf||void 0;W=this.Qj.get().T.get(W)||{layoutId:null,slotId:null};var n=this.j.getVideoData(1),Z=n.PB();n=n.getPlayerResponse();z=1E3*this.j.getDuration(z);var N=1E3*this.j.getDuration(1),TP,hK,zP=(n==null?void 0:(TP=n.playerConfig)==null? void 0:(hK=TP.daiConfig)==null?void 0:hK.enableDai)||!1,ld,t;TP=(n==null?void 0:(ld=n.playerConfig)==null?void 0:(t=ld.daiConfig)==null?void 0:t.enablePreroll)||!1;return Object.assign({},W,{videoId:a,author:T,clientPlaybackNonce:R,S1:z,Nn:N,daiEnabled:zP,CZ:TP,isListed:h,PB:Z,profilePicture:V,title:b,W3:M,Y2:l,E6:w,kf:B,isMdxPlayback:q,Vr:c,mdxEnvironment:L,isAutonav:C,d5:r,o_:F,UM:A,mP:x,Gz:v})}; g.I.gF=function(){this.listeners.length=0;this.zi=null;g.K.prototype.gF.call(this)};g.G(bS,g.K);g.I=bS.prototype;g.I.KY=function(){var B=this;sx(this.Qu.get())||(this.T=rR(function(){B.j.xd()||B.j.YO("ad",1)}))}; g.I.Ag=function(){}; g.I.addListener=function(B){this.listeners.push(B)}; g.I.removeListener=function(B){this.listeners=this.listeners.filter(function(z){return z!==B})}; g.I.W0=function(){}; g.I.playVideo=function(){this.j.playVideo()}; g.I.pauseVideo=function(){this.j.pauseVideo()}; g.I.resumeVideo=function(B){this.nU(B)&&this.j.playVideo()}; g.I.nU=function(B){return this.j.getPlayerState(B)===2}; g.I.getCurrentTimeSec=function(B,z,T){var R=this.yu.get().td;if(B===2&&!z&&R!==null)return DDb(this,R);s$(this.Qu.get(),"html5_ssap_use_cpn_to_get_time")||(T=void 0);return T!==void 0?this.j.getCurrentTime(B,z,T):this.j.getCurrentTime(B,z)}; g.I.getVolume=function(){return this.j.getVolume()}; g.I.isMuted=function(){return this.j.isMuted()}; g.I.getPresentingPlayerType=function(){return this.j.getPresentingPlayerType(!0)}; g.I.getPlayerState=function(B){return this.j.getPlayerState(B)}; g.I.isFullscreen=function(){return this.j.isFullscreen()}; g.I.isAtLiveHead=function(){return this.j.isAtLiveHead()}; g.I.Th=function(B){this.j.Th(B)}; g.I.C$E=function(){var B=this.j.getPresentingPlayerType(!0),z=this.getCurrentTimeSec(B,!1);if(B===2){B=g.d(this.listeners);for(var T=B.next();!T.done;T=B.next())T.value.Mn(z)}else if(B===1)for(B=g.d(this.v$),T=B.next();!T.done;T=B.next())T.value.W0(z)}; g.I.FlO=function(B){for(var z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.Jo(B,this.getPresentingPlayerType())}; g.I.onFullscreenToggled=function(B){for(var z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.onFullscreenToggled(B)}; g.I.onVolumeChange=function(){for(var B=g.d(this.listeners),z=B.next();!z.done;z=B.next())z.value.onVolumeChange()}; g.I.PH=function(){for(var B=this.j.isMinimized(),z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.PH(B)}; g.I.pY=function(B){for(var z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.pY(B)}; g.I.ox=function(){for(var B=this.j.NG().WV(),z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.vV(B)}; g.I.MZ=function(B){for(var z=g.d(this.listeners),T=z.next();!T.done;T=z.next())T.value.MZ(B)}; g.I.sX=function(){for(var B=g.d(this.listeners),z=B.next();!z.done;z=B.next())z.value.sX()};g.G(mDK,g.K);g.G(iS,g.K);iS.prototype.gF=function(){this.zr.xd()||this.zr.get().removeListener(this);g.K.prototype.gF.call(this)};cm.prototype.fetch=function(B){var z=B.Xr;return this.T.fetch(B.Xa,{Fx:B.Fx===void 0?void 0:B.Fx,zY:z,cueProcessedMs:B.cueProcessedMs===void 0?0:B.cueProcessedMs}).then(function(T){return nzP(T,z)})};g.G(Ld,g.K);g.I=Ld.prototype;g.I.addListener=function(B){this.listeners.push(B)}; g.I.removeListener=function(B){this.listeners=this.listeners.filter(function(z){return z!==B})}; g.I.pM=function(B){ual(this,B,1)}; g.I.onAdUxClicked=function(B,z){Cd(this,function(T){T.jZ(B,z)})}; g.I.UQ=function(B){Cd(this,function(z){z.ZF(B)})}; g.I.T4=function(B){Cd(this,function(z){z.HN(B)})}; g.I.odD=function(B){Cd(this,function(z){z.Hb(B)})};rv.prototype.reduce=function(B){switch(B.event){case "unknown":return}var z=B.identifier;var T=this.T[z];T?z=T:(T={OF:null,kQ:-Infinity},z=this.T[z]=T);T=B.startSecs+B.T/1E3;if(!(T=this.T.startSecs&&T.startSecs<=this.T.startSecs+this.T.Dc)){var R=void 0;if(Q3(this.Qu.get())&&T.identifier!==((R=this.T)==null?void 0:R.identifier)){var h=R=void 0,W=void 0,b=void 0;WT(this.PD.get(),"ocud","ccpi."+T.identifier+";ccpe."+T.event+";ccps."+T.startSecs+";\n ccpd."+T.Dc+";pcpi."+((R=this.T)==null?void 0:R.identifier)+ ";pcpe."+((h=this.T)==null?void 0:h.event)+";\n pcps."+((W=this.T)==null?void 0:W.startSecs)+";pcpd."+((b=this.T)==null?void 0:b.Dc)+";")}R=void 0;T.identifier!==((R=this.T)==null?void 0:R.identifier)&&Fo("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=T,OUK(this,T)}}; g.I.gF=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.B0,this),this.U=null);this.listeners.length=0;this.Q6.length=0;g.K.prototype.gF.call(this)};g.I=I5.prototype;g.I.m7=function(B,z,T,R,h,W,b){return this.j.m7(B,z,T,R,h,W,b)}; g.I.Br=function(B,z){this.j.Br(B,z)}; g.I.ut=function(B,z,T){this.j.ut(B,z,T)}; g.I.tS=function(B){this.j.tS(B)}; g.I.g8=function(B,z,T,R,h,W,b){return this.j.g8(B,z,T,R,h,W,b)}; g.I.Qr=function(B){return this.j.Qr(B)}; g.I.finishSegmentByCpn=function(B,z,T){T=jGb(T);this.j.finishSegmentByCpn(B,z,T)};g.G(Gy,g.K);g.G(ZUX,g.K);g.G(eSz,g.K);g.G(sGK,g.K);g.G(EzK,g.K);g.G(SYH,g.K);g.G(zrK,g.K);zrK.prototype.Y=function(){return this.U};g.G(TBd,e2); TBd.prototype.W=function(B){var z=B.content;if(z.componentType==="shopping-companion")switch(B.actionType){case 1:case 2:B=this.T.getVideoData(1);this.T.uO("updateKevlarOrC3Companion",{contentVideoId:B&&B.videoId,shoppingCompanionCarouselRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.T,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:this.T.uO("updateKevlarOrC3Companion",{})}else if(z.componentType==="action-companion")switch(B.actionType){case 1:case 2:B=this.T.getVideoData(1); this.T.uO("updateKevlarOrC3Companion",{contentVideoId:B&&B.videoId,actionCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.T,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.T.getVideoData(1),this.T.uO("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.T.uO("updateKevlarOrC3Companion",{})}else if(z.componentType==="image-companion")switch(B.actionType){case 1:case 2:B=this.T.getVideoData(1);this.T.uO("updateKevlarOrC3Companion", {contentVideoId:B&&B.videoId,imageCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.T,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.T.getVideoData(1),this.T.uO("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.T.uO("updateKevlarOrC3Companion",{})}else if(z.componentType==="top-banner-image-text-icon-buttoned")switch(B.actionType){case 1:case 2:B=this.T.getVideoData(1);this.T.uO("updateKevlarOrC3Companion", {contentVideoId:B&&B.videoId,topBannerImageTextIconButtonedLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.T,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.T.getVideoData(1),this.T.uO("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.T.uO("updateKevlarOrC3Companion",{})}else if(z.componentType==="banner-image")switch(B.actionType){case 1:case 2:B=this.T.getVideoData(1);this.T.uO("updateKevlarOrC3Companion", {contentVideoId:B&&B.videoId,bannerImageLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.T,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.T.getVideoData(1),this.T.uO("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.T.uO("updateKevlarOrC3Companion",{})}else if(z.componentType==="ads-engagement-panel")switch(z=z.renderer,B.actionType){case 1:case 2:this.T.uO("updateEngagementPanelAction",z.addAction);this.T.uO("changeEngagementPanelVisibility", z.expandAction);break;case 3:this.T.uO("changeEngagementPanelVisibility",z.hideAction),this.T.uO("updateEngagementPanelAction",z.removeAction)}else if(z.componentType==="ads-engagement-panel-layout"){var T=z.renderer;switch(B.actionType){case 1:case 2:this.T.uO("updateEngagementPanelAction",{action:Hc(T.addAction),layoutId:z.layoutId,onLayoutVisibleCallback:z.T,interactionLoggingClientData:z.interactionLoggingClientData});this.T.uO("changeEngagementPanelVisibility",Hc(T.expandAction));break;case 3:this.T.uO("changeEngagementPanelVisibility", Hc(T.hideAction)),this.T.uO("updateEngagementPanelAction",{action:Hc(T.removeAction)})}}};g.G(RrK,hC);g.I=RrK.prototype;g.I.init=function(B,z,T){hC.prototype.init.call(this,B,z,T);g.Ml(this.Y,"stroke-dasharray","0 "+this.U);this.Y.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.W.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){b1(this);hC.prototype.hide.call(this)}; g.I.show=function(){Wp(this);hC.prototype.show.call(this)}; g.I.v3=function(){this.hide()}; g.I.vp=function(){if(this.T){var B=this.T.getProgressState();B!=null&&B.current!=null&&g.Ml(this.Y,"stroke-dasharray",B.current/B.seekableEnd*this.U+" "+this.U)}};g.G(hrr,d2);g.I=hrr.prototype; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if(z.backgroundImage&&z.backgroundImage.thumbnail)if(z.actionButton&&g.u(z.actionButton,g.mE))if(B=z.durationMilliseconds||0,typeof B!=="number"||B<=0)g.kV(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+B));else if(z.navigationEndpoint){var R=this.api.getVideoData(2);if(R!=null){var h=z.image.thumbnail.thumbnails;h!=null&& h.length>0&&g.Fy(g.IA(h[0].url))&&(h[0].url=R.profilePicture,g.Fy(g.IA(R.profilePicture))&&kb5("VideoPlayer",239976093,"Expected non-empty profile picture."));h=z.backgroundImage.thumbnail.thumbnails;h!=null&&h.length>0&&g.Fy(g.IA(h[0].url))&&(h[0].url=R.VQ());h=z.headline;h!=null&&g.Fy(g.IA(h.text))&&(h.text=R.author)}this.N.init(ca("ad-image"),z.image,T);this.X.init(ca("ad-text"),z.headline,T);this.Y.init(ca("ad-text"),z.description,T);this.IK.init(ca("ad-image"),z.backgroundImage,T);R=["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.Y.element.classList.add("ytp-ad-action-interstitial-description-light");R.push("ytp-ad-action-interstitial-action-button-dark");this.api.K().U&&(R.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),R.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().D("enable_unified_action_endcap_on_web")&& !this.api.K().U&&(R.push("ytp-ad-action-interstitial-action-button-unified"),this.MG.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.eI.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Hd.classList.add("ytp-ad-action-interstitial-card-unified"),this.UE.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.XE.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.lO.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.cD.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,R);g.m(this,this.actionButton);this.actionButton.Vu(this.MG); this.actionButton.init(ca("button"),g.u(z.actionButton,g.mE),T);No(this.actionButton.element);R=XM(this.actionButton.element);ji(this.actionButton.element,R+" This link opens in new tab");this.navigationEndpoint=z.navigationEndpoint;this.W.Z(this.lO,"click",this.Z0,this);this.W.Z(this.UE,"click",this.Z0,this);!this.api.K().D("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.K().U||this.W.Z(this.XE,"click",this.Z0,this);this.T=this.Gf?new yK(this.api,B):new gK(B);g.m(this,this.T);if(z.skipButton){(B= g.u(z.skipButton,WdI))&&this.T&&(this.skipButton=new AC(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.T,this.J2),g.m(this,this.skipButton),this.skipButton.Vu(this.element),this.skipButton.init(ca("skip-button"),B,T));if(T=z.adBadgeRenderer)if(T=g.u(T,hvF))B=new VK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0,!0),B.Vu(this.cD),B.init(ca("simple-ad-badge"),T,this.macros),g.m(this,B);if(T=z.adInfoRenderer)if(T=g.u(T,kL))B=new zv(this.api,this.layoutId,this.interactionLoggingClientData, this.ZJ,this.element,void 0,!0),B.Vu(this.cD),B.init(ca("ad-info-hover-text-button"),T,this.macros),g.m(this,B)}else z.nonskippableOverlayRenderer&&(B=g.u(z.nonskippableOverlayRenderer,KC))&&this.T&&(this.U=new wK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.T,!1),g.m(this,this.U),this.U.Vu(this.element),this.U.init(ca("ad-preview"),B,T));z.countdownRenderer&&(z=z.countdownRenderer,g.u(z,by7)&&this.T&&(T=new RrK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ, this.T),g.m(this,T),T.Vu(this.element),T.init(ca("timed-pie-countdown"),g.u(z,by7),this.macros)));this.show();this.element.focus()}else g.kV(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.kV(Error("AdActionInterstitialRenderer has no button."));else g.kV(Error("AdActionInterstitialRenderer has no background AdImage."));else g.kV(Error("AdActionInterstitialRenderer has no description AdText."));else g.kV(Error("AdActionInterstitialRenderer has no headline AdText."));else g.kV(Error("AdActionInterstitialRenderer has no image."))}; g.I.clear=function(){g.$K(this.W);this.hide()}; g.I.show=function(){WZY(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();d2.prototype.show.call(this)}; g.I.hide=function(){WZY(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();d2.prototype.hide.call(this)}; g.I.Z0=function(){this.navigationEndpoint&&(this.layoutId?this.ZJ.executeCommand(this.navigationEndpoint,this.layoutId):g.kV(Error("Missing layoutId for ad action interstitial.")))};var qlK={iconType:"CLOSE"},UK=new g.PY(320,63);g.G(wk5,d2);g.I=wk5.prototype; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);this.W=z;this.N=g.Mg(this.W.onClickCommands||[]);this.cD=this.W.onErrorCommand||null;if(B=this.W.contentSupportedRenderer)B=this.W.contentSupportedRenderer,z=this.W.adInfoRenderer||null,g.u(B,zvP)?(this.X=g.t2("ytp-ad-overlay-ad-info-button-container",this.Y.element),iI5(this,z),B=LZP(this,g.u(B,zvP))):g.u(B,T17)?(this.X=g.t2("ytp-ad-overlay-ad-info-button-container",this.U.element),iI5(this,z),B=Cg5(this,g.u(B,T17))):g.u(B,Rv7)?(this.X= g.t2("ytp-ad-overlay-ad-info-button-container",this.T.element),iI5(this,z),B=r_z(this,g.u(B,Rv7))):(g.kV(Error("InvideoOverlayAdRenderer content could not be initialized.")),B=!1);B&&(this.show(),oxK(this,!0))}; g.I.clear=function(){oxK(this,!1);this.lO.reset();this.UE=0;this.Y.hide();this.logVisibility(this.Y.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.I.r$O=function(){this.MG&&(this.layoutId?this.ZJ.executeCommand(this.MG,this.layoutId):g.kV(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.I.c5=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var B=this.W.closeButton.buttonRenderer;if(B.serviceEndpoint){B=[B.serviceEndpoint];break a}}B=[]}B=g.d(B);for(var z=B.next();!z.done;z=B.next())z=z.value,this.layoutId?this.ZJ.executeCommand(z,this.layoutId):g.kV(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.I.uEE=function(){this.IK||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.I.H0=function(){this.IK||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.H0("invideo-overlay")}; g.I.emJ=function(B){B.target===this.X&&g.t2("ytp-ad-button",this.eI.element).click()};g.G(FZz,hC);g.I=FZz.prototype;g.I.init=function(B,z,T){hC.prototype.init.call(this,B,z,T);B=z.durationMs;this.Y=B==null||B===0?0:B+this.T.getProgressState().current*1E3;if(z.text)var R=z.text.templatedAdText;else z.staticMessage&&(R=z.staticMessage);this.messageText.init(ca("ad-text"),R,T);this.messageText.Vu(this.U.element);this.W.show(100);this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){IHK(this,!1);hC.prototype.hide.call(this);this.U.hide();this.messageText.hide();b1(this)}; g.I.show=function(){IHK(this,!0);hC.prototype.show.call(this);Wp(this);this.U.show();this.messageText.show()}; g.I.v3=function(){this.hide()}; g.I.vp=function(){if(this.T!=null){var B=this.T.getProgressState();B!=null&&B.current!=null&&(B=1E3*B.current,!this.UE&&B>=this.Y?(this.W.hide(),this.UE=!0):this.messageText&&this.messageText.isTemplated()&&(B=Math.max(0,Math.ceil((this.Y-B)/1E3)),B!==this.X&&(RS(this.messageText,{TIME_REMAINING:String(B)}),this.X=B)))}};g.G(GYz,d2);g.I=GYz.prototype; g.I.init=function(B,z,T){d2.prototype.init.call(this,B,z,{});z.image&&z.image.thumbnail?z.headline?z.description?z.actionButton&&g.u(z.actionButton,g.mE)?(this.Y.init(ca("ad-image"),z.image,T),this.U.init(ca("ad-text"),z.headline,T),this.W.init(ca("ad-text"),z.description,T),B=["ytp-ad-underlay-action-button"],this.api.K().D("use_blue_buttons_for_desktop_player_underlay")&&B.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ, B),z.backgroundColor&&g.Ml(this.element,"background-color",g.O0(z.backgroundColor)),g.m(this,this.actionButton),this.actionButton.Vu(this.X),this.actionButton.init(ca("button"),g.u(z.actionButton,g.mE),T),z=g.rk(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().D("place_shrunken_video_on_left_of_player")?(T=this.T,g.iH(T,"ytp-ad-underlay-left-container"),g.ww(T,"ytp-ad-underlay-right-container"),g.Ml(this.T,"margin-left",Math.round((z+.02)*100)+"%")):(T=this.T,g.iH(T,"ytp-ad-underlay-right-container"), g.ww(T,"ytp-ad-underlay-left-container")),g.Ml(this.T,"width",Math.round((1-z-.04)*100)+"%"),this.api.yV()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.sP.bind(this)),this.api.addEventListener("resize",this.Sd.bind(this))):g.kV(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.kV(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.kV(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.kV(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.I.show=function(){d7d(!0);this.actionButton&&this.actionButton.show();d2.prototype.show.call(this)}; g.I.hide=function(){d7d(!1);this.actionButton&&this.actionButton.hide();d2.prototype.hide.call(this)}; g.I.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.sP.bind(this));this.api.removeEventListener("resize",this.Sd.bind(this));this.hide()}; g.I.onClick=function(B){d2.prototype.onClick.call(this,B);this.actionButton&&g.hm(this.actionButton.element,B.target)&&this.api.pauseVideo()}; g.I.sP=function(B){B==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):B==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):B==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.I.Sd=function(B){B.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):B.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.Ml(this.U.element,"font-size",B.width/40+"px")};g.G(MO,d2); MO.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);z.toggledLoggingParams&&(this.toggledLoggingParams=z.toggledLoggingParams);z.answer&&g.u(z.answer,g.mE)?(B=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),B.Vu(this.answer),B.init(ca("ytp-ad-survey-answer-button"),g.u(z.answer,g.mE),T),B.show()):z.answer&&g.u(z.answer,dM)&&(this.T=new Xt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ, ["ytp-ad-survey-answer-toggle-button"]),this.T.Vu(this.answer),g.m(this,this.T),this.T.init(ca("survey-answer-button"),g.u(z.answer,dM),T));this.show()}; MO.prototype.vJ=function(B){this.layoutId?Xm(this.ZJ,B,this.layoutId,this.macros):(B=new g.Z_("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kV(B))}; MO.prototype.onClick=function(B){d2.prototype.onClick.call(this,B);if(this.api.K().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; MO.prototype.clear=function(){this.hide()};g.G(A_X,d2);A_X.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);z.answer&&g.u(z.answer,dM)&&(this.button=new Xt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Vu(this.T),this.button.init(ca("survey-none-of-the-above-button"),g.u(z.answer,dM),T));this.show()};g.G(V1,mc);V1.prototype.init=function(B,z,T){mc.prototype.init.call(this,B,z,T);B=!1;z.text&&(z=g.aU(z.text),B=!g.Fy(z));B||g.KV(Error("No submit text was present in the renderer."))}; V1.prototype.onClick=function(B){this.publish("l");mc.prototype.onClick.call(this,B)};g.G(Q1,d2); Q1.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);if(B=z.skipOrPreviewRenderer)g.u(B,wf)?(B=g.u(B,wf),T=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.W,!0),T.Vu(this.skipOrPreview),T.init(ca("skip-button"),B,this.macros),g.m(this,T),this.T=T):g.u(B,KC)&&(B=g.u(B,KC),T=new wK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.W,!1),T.Vu(this.skipOrPreview),T.init(ca("ad-preview"),B,this.macros),T.UE.show(100),T.show(),g.m(this,T), this.T=T);this.T==null&&(B=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(z)),g.kV(B));z.submitButton&&(B=z.submitButton,g.u(B,g.mE)&&(B=g.u(B,g.mE),T=new V1(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),T.Vu(this.submitButton),T.init(ca("survey-submit"),B,this.macros),g.m(this,T),this.U=T));if(B=z.adBadgeRenderer)B=g.u(B,hvF),T=new VK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0,!0,!0),T.Vu(this.Y),T.init(ca("simple-ad-badge"), B,this.macros),this.adBadge=T.element,g.m(this,T);if(B=z.adDurationRemaining)B=g.u(B,EPR),T=new $p(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.W,void 0,!0),T.Vu(this.Y),T.init(ca("ad-duration-remaining"),B,this.macros),g.m(this,T);(z=z.adInfoRenderer)&&g.u(z,kL)&&(B=new zv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.element,void 0,!0),g.m(this,B),this.adBadge!==void 0?this.Y.insertBefore(B.element,this.adBadge.nextSibling):B.Vu(this.Y),B.init(ca("ad-info-hover-text-button"), g.u(z,kL),this.macros));this.show()}; Q1.prototype.clear=function(){this.hide()};g.G(y1,d2);y1.prototype.init=function(B,z,T){d2.prototype.init.call(this,B,z,T);QTK(this)}; y1.prototype.show=function(){this.Y=Date.now();d2.prototype.show.call(this)}; y1.prototype.BG=function(){};g.G(y_X,y1);g.I=y_X.prototype;g.I.init=function(B,z,T){var R=this;y1.prototype.init.call(this,B,z,T);z.questionText&&aHl(this,z.questionText);z.answers&&z.answers.forEach(function(h,W){g.u(h,Ij)&&U7B(R,g.u(h,Ij),T,W)}); this.X=new Set(this.U.map(function(h){return h.T.T})); (B=z.noneOfTheAbove)&&(B=g.u(B,B1P))&&gx5(this,B,T);z.surveyAdQuestionCommon&&VBz(this,z.surveyAdQuestionCommon);z.submitEndpoints&&(this.submitEndpoints=z.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.I.BG=function(){J_r(this,!1);this.W.U.subscribe("l",this.I4J,this)}; g.I.onChange=function(B){B.target===this.noneOfTheAbove.button.T?pkK(this):this.X.has(B.target)&&(this.noneOfTheAbove.button.toggleButton(!1),J_r(this,!0))}; g.I.I4J=function(){var B=[],z=this.U.reduce(function(h,W,b){var l=W.toggledLoggingParams;W.T&&W.T.isToggled()&&l&&(h.push(l),B.push(b));return h},[]).join("&"),T=this.submitEndpoints.map(function(h){if(!h.loggingUrls)return h; h=g.TR(h);h.loggingUrls=h.loggingUrls.map(function(W){W.baseUrl&&(W.baseUrl=yn(W.baseUrl,z));return W}); return h}); if(T){T=g.d(T);for(var R=T.next();!R.done;R=T.next())R=R.value,this.layoutId?Xm(this.ZJ,R,this.layoutId,this.macros):g.kV(Error("Missing layoutId for multi_select_question."))}this.api.K().D("supports_multi_step_on_desktop")&&this.UE(B)}; g.I.clear=function(){this.api.K().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.G(gv,y1);gv.prototype.init=function(B,z,T){var R=this;y1.prototype.init.call(this,B,z,T);z.questionText&&aHl(this,z.questionText);z.answers&&z.answers.forEach(function(h,W){g.u(h,Ij)&&U7B(R,g.u(h,Ij),T,W)}); z.surveyAdQuestionCommon?VBz(this,z.surveyAdQuestionCommon):qw(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(z)));this.show()}; gv.prototype.clear=function(){this.api.K().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.G(JF,d2);JF.prototype.init=function(B,z,T){var R=this;d2.prototype.init.call(this,B,z,T);if(this.api.K().D("supports_multi_step_on_desktop")){var h;this.conditioningRules=(h=z.conditioningRules)!=null?h:[];var W;this.U=(W=z.questions)!=null?W:[];var b;((b=z.questions)==null?0:b.length)&&vxd(this,0)}else(z.questions||[]).forEach(function(l){g.u(l,vI)?Pgd(R,g.u(l,vI),T):g.u(l,xL)&&x75(R,g.u(l,xL),T)}); this.show()}; JF.prototype.clear=function(){this.api.K().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; JF.prototype.W=function(B){var z=this;if(this.api.K().D("supports_multi_step_on_desktop")){var T;if((T=this.conditioningRules)==null?0:T.length){var R;if(B.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(h){return h.questionIndex===z.T})==null)g.kV(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(h){if(h.questionIndex===z.T)switch(h.condition){case "CONDITION_ALL_OF":var W;if((W=h.answerIndices)==null?0:W.every(function(l){return B.includes(l)}))R=h.nextQuestionIndex; break;case "CONDITION_ANY_OF":var b;if((b=h.answerIndices)==null?0:b.some(function(l){return B.includes(l)}))R=h.nextQuestionIndex; break;default:g.kV(Error("Expected specified condition in survey conditioning rules."))}}),R!=null)vxd(this,R); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.kV(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.G(pd,d2); pd.prototype.init=function(B,z,T){var R=this;d2.prototype.init.call(this,B,z,T);B=z.timeoutSeconds||0;if(typeof B!=="number"||B<0)g.kV(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+B));else if(z.timeoutCommands)if(z.text)if(z.ctaButton&&g.u(z.ctaButton,g.mE))if(z.brandImage)if(z.backgroundImage&&g.u(z.backgroundImage,nC)&&g.u(z.backgroundImage,nC).landscape){this.layoutId||g.kV(Error("Missing layoutId for survey interstitial."));D7B(this.interstitial,g.u(z.backgroundImage, nC).landscape);D7B(this.logoImage,z.brandImage);g.Wt(this.text,g.aU(z.text));var h=["ytp-ad-survey-interstitial-action-button"];h.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,h);g.m(this,this.actionButton);this.actionButton.Vu(this.U);this.actionButton.init(ca("button"),g.u(z.ctaButton,g.mE),T);this.actionButton.show();this.T=new yK(this.api,B*1E3);this.T.subscribe("g",function(){R.transition.hide()}); g.m(this,this.T);this.Z(this.element,"click",function(W){var b=W.target===R.interstitial;W=R.actionButton.element.contains(W.target);if(b||W)if(R.transition.hide(),b)R.api.onAdUxClicked(R.componentType,R.layoutId)}); this.transition.show(100)}else g.kV(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.kV(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.kV(Error("SurveyTextInterstitialRenderer has no button."));else g.kV(Error("SurveyTextInterstitialRenderer has no text."));else g.kV(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; pd.prototype.clear=function(){this.hide()}; pd.prototype.show=function(){kYz(!0);d2.prototype.show.call(this)}; pd.prototype.hide=function(){kYz(!1);d2.prototype.hide.call(this)};g.G($R,hC);g.I=$R.prototype; g.I.init=function(B,z){hC.prototype.init.call(this,B,z,{});if(z.durationMilliseconds){if(z.durationMilliseconds<0){g.kV(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+z.durationMilliseconds));return}this.U=z.durationMilliseconds}else this.U=this.T.hx();var T;if((T=z.previewText)==null||!T.text||g.Fy(z.previewText.text))g.kV(Error("No text is returned for AdPreview."));else{this.X=z.previewText;z.previewText.isTemplated||g.Wt(this.Y,z.previewText.text);var R; if(((R=this.api.getVideoData(1))==null?0:R.Wp)&&z.previewImage){var h,W;(B=((W=JD(((h=z.previewImage)==null?void 0:h.sources)||[],52,!1))==null?void 0:W.url)||"")&&B.length?(this.previewImage=new g.Gt({B:"img",G:"ytp-preview-ad__image",C:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",B),g.m(this,this.previewImage),this.previewImage.Vu(this.element)):g.kV(Error("Failed to get imageUrl in AdPreview."))}else this.Y.classList.add("ytp-preview-ad__text--padding--wide")}}; g.I.clear=function(){this.hide()}; g.I.hide=function(){b1(this);hC.prototype.hide.call(this)}; g.I.show=function(){Wp(this);hC.prototype.show.call(this)}; g.I.v3=function(){this.hide()}; g.I.vp=function(){if(this.T){var B=this.T.getProgressState();if(B!=null&&B.current)if(B=1E3*B.current,B>=this.U)this.transition.hide();else{var z;if((z=this.X)==null?0:z.isTemplated)if(z=Math.max(0,Math.ceil((this.U-B)/1E3)),z!==this.W){var T,R;(B=(T=this.X)==null?void 0:(R=T.text)==null?void 0:R.replace("{TIME_REMAINING}",String(z)))&&g.Wt(this.Y,B);this.W=z}}}};g.G(Pm,d2); Pm.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});var T,R;if((B=((R=JD(((T=z.image)==null?void 0:T.sources)||[],KZH(z),!0))==null?void 0:R.url)||"")&&B.length){T=this.BD("ytp-ad-avatar");T.src=B;var h,W;if(R=(h=z.interaction)==null?void 0:(W=h.accessibility)==null?void 0:W.label)T.alt=R;switch(z.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(z.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.kV(Error("Failed to get imageUrl in AdAvatar."))}; Pm.prototype.clear=function(){this.hide()}; Pm.prototype.onClick=function(B){d2.prototype.onClick.call(this,B)};g.G(xR,d2); xR.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});var T;B=(T=z.label)==null?void 0:T.content;if((T=B!=null&&!g.Fy(B))||z.iconImage){T&&(this.buttonText=new g.Gt({B:"span",G:"ytp-ad-button-vm__text",Yd:B}),g.m(this,this.buttonText),this.buttonText.Vu(this.element));var R,h,W=((R=z.interaction)==null?0:(h=R.accessibility)==null?0:h.label)||T?B:"";W&&ji(this.element,W+" This link opens in new tab");No(this.element);if(z.iconImage){R=void 0;if(z.iconImage){a:{h=z.iconImage;if(h.sources)for(h= g.d(h.sources),B=h.next();!B.done;B=h.next())if(B=B.value,W=void 0,(W=B.clientResource)==null?0:W.imageName){h=B;break a}h=void 0}if(h){var b;R={iconType:(b=h.clientResource)==null?void 0:b.imageName}}}b=Kl(R,!1,this.U);b!=null&&(this.buttonIcon=new g.Gt({B:"span",G:"ytp-ad-button-vm__icon",S:[b]}),g.m(this,this.buttonIcon),z.iconLeading?(TJ(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):T?(this.buttonIcon.Vu(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Vu(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(z.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.T?"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(z.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.KV(Error("AdButton does not have label or an icon."))}; xR.prototype.clear=function(){this.hide()}; xR.prototype.onClick=function(B){d2.prototype.onClick.call(this,B)};g.G(m7z,hC);g.I=m7z.prototype; g.I.init=function(B,z){hC.prototype.init.call(this,B,z,{});this.api.K().D("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.BD("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),TJ(this.BD("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(B=g.u(z.avatar,fd)){var T=z.headline;if(T){var R=z.description;if(R){var h=g.u(z.button,NO);h?(this.adAvatar.init(ca("ad-avatar"),B),this.headline.init(ca("ad-simple-attributed-string"),new xp(T)),this.description.init(ca("ad-simple-attributed-string"),new xp(R)),T.content&&T.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(ca("ad-button"),h),this.startMilliseconds=z.startMs||0,this.api.yV()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Co.bind(this)),Wp(this)):g.kV(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kV(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kV(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kV(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.I.vp=function(){if(this.T){var B=this.T.getProgressState();B&&B.current&&1E3*B.current>=this.startMilliseconds&&(b1(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.I.v3=function(){this.clear()}; g.I.onClick=function(B){this.api.pauseVideo();hC.prototype.onClick.call(this,B)}; g.I.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Co.bind(this))}; g.I.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();hC.prototype.show.call(this)}; g.I.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();hC.prototype.hide.call(this)}; g.I.Co=function(B){B==="hidden"?this.show():this.hide()};g.G(vm,d2);g.I=vm.prototype; g.I.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(!z.label||g.Fy(z.label))g.kV(Error("No label is returned for SkipAdButton."));else if(g.Wt(this.W,z.label),B=Kl({iconType:"SKIP_NEXT_NEW"}),B==null)g.kV(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Y=new g.Gt({B:"span",G:"ytp-skip-ad-button__icon",S:[B]}),g.m(this,this.Y),this.Y.Vu(this.element),this.api.K().experiments.Cf("enable_skip_to_next_messaging")&&(z=g.IA(z.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",z), this.element.setAttribute("data-tooltip-target-fixed","")}; g.I.onClick=function(B){B&&B.preventDefault();var z,T;hdz(B,{contentCpn:(T=(z=this.api.getVideoData(1))==null?void 0:z.clientPlaybackNonce)!=null?T:""})===0?this.api.uO("onAbnormalityDetected"):(d2.prototype.onClick.call(this,B),this.api.uO("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.I.clear=function(){this.T.reset();this.hide()}; g.I.hide=function(){d2.prototype.hide.call(this)}; g.I.show=function(){this.T.start();d2.prototype.show.call(this);this.U&&this.api.K().experiments.Cf("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.G(nxB,hC);g.I=nxB.prototype; g.I.init=function(B,z){hC.prototype.init.call(this,B,z,{});B=g.u(z.preskipState,LdW);var T;if((T=this.api.getVideoData())==null?0:T.isDaiEnabled()){if(!B){g.kV(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.U=new $R(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.T);g.m(this,this.U);this.U.Vu(this.element);var R;(R=this.U)==null||R.init(ca("preview-ad"),B);(T=this.U)!=null&&(T.transition.show(100),T.show())}(T=g.u(z.skippableState,rv5))?(z.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=z.skipOffsetMilliseconds:(g.KV(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Y.init(ca("skip-button"),T),this.show()):g.kV(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.I.show=function(){Wp(this);hC.prototype.show.call(this)}; g.I.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.Y&&this.Y.hide();b1(this);hC.prototype.hide.call(this)}; g.I.clear=function(){var B;(B=this.U)==null||B.clear();this.Y&&this.Y.clear();b1(this);hC.prototype.hide.call(this)}; g.I.v3=function(){this.hide()}; g.I.vp=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var B;(B=this.U)!=null&&B.transition.hide();(B=this.Y)!=null&&(B.transition.show(),B.show())}};g.G(DQ,d2); DQ.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(z.label){var T;((T=z.label)==null?0:T.content)&&!g.Fy(z.label.content)&&(this.linkText=new g.Gt({B:"span",G:"ytp-visit-advertiser-link__text",Yd:z.label.content}),g.m(this,this.linkText),this.linkText.Vu(this.element));var R,h;if((R=z.interaction)==null?0:(h=R.accessibility)==null?0:h.label)ji(this.element,z.interaction.accessibility.label+" This link opens in new tab");else{var W;((W=z.label)==null?0:W.content)&&!g.Fy(z.label.content)&&ji(this.element, z.label.content+" This link opens in new tab")}No(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.kV(Error("No label found in VisitAdvertiserLink."))}; DQ.prototype.onClick=function(B){d2.prototype.onClick.call(this,B);this.api.onAdUxClicked(this.componentType,this.layoutId)}; DQ.prototype.clear=function(){this.hide()};g.G(kR,d2); kR.prototype.init=function(B,z,T,R){d2.prototype.init.call(this,B,z,{});if(z.skipOrPreview){T=z.skipOrPreview;B=g.u(T,o1q);T=g.u(T,LdW);if(B)this.Tm=new nxB(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U),g.m(this,this.Tm),this.Tm.Vu(this.N),this.Tm.init(ca("skip-ad"),B);else{var h;T&&((h=this.api.getVideoData())==null?0:h.isDaiEnabled())&&(this.W=new $R(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U,1),g.m(this,this.W),this.W.Vu(this.N),this.W.init(ca("ad-preview"), T),h=this.W,h.transition.show(100),h.show())}if(h=g.u(z.skipOrPreview,o1q))var W=h.skipOffsetMilliseconds}z.playerAdCard&&(h=g.u(z.playerAdCard,C2F))&&(this.playerAdCard=new m7z(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U),g.m(this,this.playerAdCard),this.playerAdCard.Vu(this.XE),this.playerAdCard.init(ca("ad-avatar-lockup-card"),h));z.adBadgeRenderer&&((h=g.u(z.adBadgeRenderer,OK))?(this.Y=new Dw(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0),g.m(this, this.Y),this.Y.Vu(this.T),this.Y.init(ca("ad-badge"),h)):g.kV(Error("AdBadgeViewModel is not found in player overlay layout.")));z.adPodIndex&&(h=g.u(z.adPodIndex,whc))&&(this.adPodIndex=new kp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.adPodIndex),this.adPodIndex.Vu(this.T),this.adPodIndex.init(ca("ad-pod-index"),h));z.adInfoRenderer&&((h=g.u(z.adInfoRenderer,kL))?(this.adInfoButton=new zv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.element, void 0,!0),g.m(this,this.adInfoButton),this.Y!==void 0?this.T.insertBefore(this.adInfoButton.element,this.Y.element.nextSibling):this.adInfoButton.Vu(this.T),this.adInfoButton.init(ca("ad-info-hover-text-button"),h,this.macros)):g.KV(Error("AdInfoRenderer is not found in player overlay layout.")));var b;h=(b=this.api.getVideoData())==null?void 0:b.isDaiEnabled();z.adDurationRemaining&&h&&(b=g.u(z.adDurationRemaining,EPR))&&(this.adDurationRemaining=new $p(this.api,this.layoutId,this.interactionLoggingClientData, this.ZJ,this.U,R.videoAdDurationSeconds,!0),g.m(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Vu(this.T),this.adDurationRemaining.init(ca("ad-duration-remaining"),b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));z.visitAdvertiserLink&&(R=g.u(z.visitAdvertiserLink,IdP))&&(this.visitAdvertiserLink=new DQ(this.api,this.layoutId, this.interactionLoggingClientData,this.ZJ),g.m(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Vu(this.T),this.visitAdvertiserLink.init(ca("visit-advertiser-link"),R));z.adDisclosureBanner&&(z=g.u(z.adDisclosureBanner,ldU))&&(this.adDisclosureBanner=new K0(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.adDisclosureBanner),this.adDisclosureBanner.Vu(this.UE),this.adDisclosureBanner.init(ca("ad-disclosure-banner"),z));this.X=new u1(this.api,this.U,W,!0);g.m(this, this.X);g.Pw(this.api,this.X.element,4);this.show()}; kR.prototype.clear=function(){this.hide()};g.G(uiz,d2);g.I=uiz.prototype; g.I.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(z!=null&&z.title)if(B=z.title)if(this.headline.init(ca("ad-simple-attributed-string"),new xp(B)),B=g.u(z.moreInfoButton,NO)){if(this.moreInfoButton.init(ca("ad-button"),B),z.descriptions)z.descriptions.length>0&&(B=z.descriptions[0])&&(this.T=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.T),this.T.Vu(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(ca("ad-simple-attributed-string"), new xp(B))),z.descriptions.length>1&&(z=z.descriptions[1])&&(this.U=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.U),this.U.Vu(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(ca("ad-simple-attributed-string"),new xp(z)))}else g.kV(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.kV(Error("No headline found in AdGridCardText."));else g.kV(Error("No headline found in AdGridCardText."))}; g.I.onClick=function(B){d2.prototype.onClick.call(this,B);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.I.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var B;(B=this.T)==null||B.clear();var z;(z=this.U)==null||z.clear()}; g.I.hide=function(){this.headline.hide();this.moreInfoButton.hide();var B;(B=this.T)==null||B.hide();var z;(z=this.U)==null||z.hide();d2.prototype.hide.call(this)}; g.I.show=function(){d2.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var B;(B=this.T)==null||B.show();var z;(z=this.U)==null||z.show()};g.G(Kd,d2);Kd.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(z!=null&&z.gridCards)if(z.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.kV(Error("Only single column style is currently supported in AdGridCardCollection."));else for(B=g.d(z.gridCards),z=B.next();!z.done;z=B.next()){if(z=g.u(z.value,cv5)){var T=new uiz(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,T);T.Vu(this.element);T.init(ca("ad-grid-card-text"),z);this.T.push(T)}}else g.kV(Error("No grid cards found in AdGridCardCollection."))}; Kd.prototype.show=function(){for(var B=g.d(this.T),z=B.next();!z.done;z=B.next())z.value.show();d2.prototype.show.call(this)}; Kd.prototype.clear=function(){this.hide();for(var B=g.d(this.T),z=B.next();!z.done;z=B.next())z.value.clear()}; Kd.prototype.hide=function(){for(var B=g.d(this.T),z=B.next();!z.done;z=B.next())z.value.hide();d2.prototype.hide.call(this)};g.G(m$,hC);g.I=m$.prototype;g.I.init=function(B,z,T,R,h){h=h===void 0?0:h;hC.prototype.init.call(this,B,z,T,R);this.playerProgressOffsetMs=h;Wp(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.vQ.bind(this));this.api.addEventListener("resize",this.uR.bind(this));this.api.yV()?(this.U=!0,this.api.Th(!0),this.show()):this.hide()}; g.I.vp=function(){if(this.T){var B=this.T.getProgressState();B&&B.current&&!this.U&&1E3*B.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.Th(!0),this.show())}}; g.I.v3=function(){this.U&&this.api.Th(!1);this.hide()}; g.I.clear=function(){this.api.Th(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.vQ.bind(this));this.api.removeEventListener("resize",this.uR.bind(this));b1(this);this.hide()}; g.I.hide=function(){HIB(!1);hC.prototype.hide.call(this)}; g.I.show=function(){HIB(!0);hC.prototype.show.call(this)};g.G(fHP,m$);g.I=fHP.prototype; g.I.init=function(B,z,T,R){if(z!=null&&z.adGridCardCollection)if(z!=null&&z.adButton){var h=Number(z.playerProgressOffsetMs||"0");isNaN(h)?m$.prototype.init.call(this,B,z,T,R):m$.prototype.init.call(this,B,z,T,R,h);B=z.headline;T=g.u(z.adAvatar,fd);B&&T?(this.headline=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.headline),this.headline.Vu(this.BD("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(ca("ad-simple-attributed-string"),new xp(B)), this.adAvatar=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.adAvatar),this.adAvatar.Vu(this.BD("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(ca("ad-avatar"),T)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");B=g.u(z.adGridCardCollection,iyg);this.adGridCardCollection.init(ca("ad-grid-card-collection"),B);z=g.u(z.adButton,NO);this.adButton.init(ca("ad-button"),z); this.hide()}else g.kV(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.kV(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.I.onClick=function(B){(this.adButton&&g.hm(this.adButton.element,B.target)||this.adAvatar&&g.hm(this.adAvatar.element,B.target))&&this.api.pauseVideo();m$.prototype.onClick.call(this,B);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.I.uR=function(){}; g.I.clear=function(){this.hide();var B;(B=this.headline)==null||B.clear();var z;(z=this.adAvatar)==null||z.clear();this.adGridCardCollection.clear();this.adButton.clear();m$.prototype.clear.call(this)}; g.I.show=function(){var B;(B=this.headline)==null||B.show();var z;(z=this.adAvatar)==null||z.show();this.adGridCardCollection.show();this.adButton.show();m$.prototype.show.call(this)}; g.I.hide=function(){var B;(B=this.headline)==null||B.hide();var z;(z=this.adAvatar)==null||z.hide();this.adGridCardCollection.hide();this.adButton.hide();m$.prototype.hide.call(this)}; g.I.vQ=function(B){B==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):B==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):B==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))};g.G(nd,d2); nd.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(z.attributes===void 0)g.kV(Error("No attributes found in AdDetailsLineViewModel."));else if(z.style===void 0)g.kV(Error("No style found in AdDetailsLineViewModel."));else{B=g.d(z.attributes);for(var T=B.next();!T.done;T=B.next())if(T=T.value,T.text!==void 0){T=T.text;var R=z.style,h=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,h);h.Vu(this.element);a:switch(R){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":R="ytp-ad-details-line__text--style-responsive"; break a;default:R="ytp-ad-details-line__text--style-standard"}h.element.classList.add(R);h.init(ca("ad-simple-attributed-string"),new xp(T));this.T.push(h)}this.show()}}; nd.prototype.show=function(){this.T.forEach(function(B){B.show()}); d2.prototype.show.call(this)}; nd.prototype.clear=function(){this.hide()}; nd.prototype.hide=function(){this.T.forEach(function(B){B.hide()}); d2.prototype.hide.call(this)};g.G(uS,d2);uS.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});var T,R;(B=((R=JD(((T=z.image)==null?void 0:T.sources)||[]))==null?void 0:R.url)||"")&&B.length?(T=this.BD("ytp-image-background-image"),g.Ml(T,"backgroundImage","url("+B+")"),z.blurLevel!==void 0&&g.Ml(T,"filter","blur("+z.blurLevel+"px)"),z.gradient!==void 0&&(z=new g.O({B:"div",nf:["ytp-image-background--gradient-vertical"]}),g.m(this,z),z.Vu(this.element)),this.show()):g.kV(Error("Failed to get imageUrl in ImageBackground."))}; uS.prototype.clear=function(){this.hide()};g.G(OIz,hC);g.I=OIz.prototype;g.I.init=function(B,z){hC.prototype.init.call(this,B,z,{});g.Ml(this.Y,"stroke-dasharray","0 "+this.U);this.show()}; g.I.clear=function(){this.hide()}; g.I.hide=function(){b1(this);hC.prototype.hide.call(this)}; g.I.show=function(){Wp(this);hC.prototype.show.call(this)}; g.I.v3=function(){this.hide()}; g.I.vp=function(){if(this.T){var B=this.T.getProgressState();B!=null&&B.current!=null&&g.Ml(this.Y,"stroke-dasharray",B.current/B.seekableEnd*this.U+" "+this.U)}};g.G(Hm,d2); Hm.prototype.init=function(B,z){d2.prototype.init.call(this,B,z,{});if(tBX(z)){this.adAvatar=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.adAvatar);this.adAvatar.Vu(this.BD("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(ca("ad-avatar"),g.u(z.adAvatar,fd));this.headline=new vp(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ);g.m(this,this.headline);this.headline.Vu(this.BD("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(ca("ad-simple-attributed-string"),new xp(z.headline));if(B=g.u(z.adDetailsLine,YBg))this.detailsLine=new nd(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.detailsLine),this.detailsLine.Vu(this.BD("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(ca("ad-details-line"),B);this.adButton=new xR(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0);g.m(this,this.adButton); this.adButton.Vu(this.BD("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(ca("ad-button"),g.u(z.adButton,NO));this.adBadge=new Dw(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,!0);g.m(this,this.adBadge);this.adBadge.Vu(this.W);this.adBadge.init(ca("ad-badge"),g.u(z.adBadge,OK));this.adInfoButton=new zv(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.element,void 0,!0);g.m(this,this.adInfoButton);this.adInfoButton.Vu(this.W); this.adInfoButton.init(ca("ad-info-hover-text-button"),g.u(z.adInfoRenderer,kL),this.macros);if(B=g.u(z.skipAdButton,rv5))this.skipAdButton=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.skipAdButton),this.skipAdButton.Vu(this.element),this.skipAdButton.init(ca("skip-button"),B);this.U=new gK(z.durationMilliseconds);g.m(this,this.U);if(B=g.u(z.countdownViewModel,Fd7))this.T=new OIz(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ,this.U),g.m(this, this.T),this.T.Vu(this.BD("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(ca("timed-pie-countdown"),B);if(z=g.u(z.imageBackground,qBI))this.imageBackground=new uS(this.api,this.layoutId,this.interactionLoggingClientData,this.ZJ),g.m(this,this.imageBackground),this.imageBackground.Vu(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(ca("image-background"), z);this.show();this.element.focus()}}; Hm.prototype.clear=function(){g.$K(this.Y);this.hide()}; Hm.prototype.show=function(){NBK(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();d2.prototype.show.call(this)}; Hm.prototype.hide=function(){NBK(!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.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();d2.prototype.hide.call(this)};g.G(tF,g.Cl);g.I=tF.prototype;g.I.hx=function(){return 1E3*this.api.getDuration(this.eb,!1)}; g.I.stop=function(){this.T&&this.aI.V2(this.T)}; g.I.l$=function(){var B=this.api.getProgressState(this.eb);this.U={seekableStart:B.seekableStart,seekableEnd:B.seekableEnd,current:this.api.getCurrentTime(this.eb,!1)};this.publish("h")}; g.I.getProgressState=function(){return this.U}; g.I.iE=function(B){g.dK(B,2)&&this.publish("g")};var OFR="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.G(j9,e2); j9.prototype.W=function(B){var z=B.id,T=B.content,R=T.componentType;if(!OFR.includes(R))switch(B.actionType){case 1:B=this.api;var h=this.ZJ,W=T.layoutId,b=T.interactionLoggingClientData,l=T instanceof e1?T.Gf:!1,w=T instanceof e1||T instanceof QK?T.J2:!1;b=b===void 0?{}:b;l=l===void 0?!1:l;w=w===void 0?!1:w;switch(R){case "invideo-overlay":B=new wk5(B,W,b,h);break;case "player-overlay":B=new Hp(B,W,b,h,new tF(B),w);break;case "player-overlay-layout":B=new kR(B,W,b,h,new tF(B));break;case "survey":B= new JF(B,W,b,h);break;case "ad-action-interstitial":B=new hrr(B,W,b,h,l,w);break;case "video-interstitial-buttoned-centered":B=new Hm(B,W,b,h);break;case "survey-interstitial":B=new pd(B,W,b,h);break;case "ad-message":B=new FZz(B,W,b,h,new tF(B,1));break;case "player-underlay":B=new GYz(B,W,b,h);break;case "display-underlay-text-grid-cards":B=new fHP(B,W,b,h,new tF(B));break;default:B=null}if(!B){g.KV(Error("No UI component returned from ComponentFactory for type: "+R));break}g.ZF(this.U,z)?g.KV(Error("Ad UI component already registered: "+ z)):this.U[z]=B;B.bind(T);T instanceof Xs?this.Y?this.Y.append(B.Em):g.KV(Error("Underlay view was not created but UnderlayRenderer was created")):this.V.append(B.Em);break;case 2:z=jTB(this,B);if(z==null)break;z.bind(T);break;case 3:T=jTB(this,B),T!=null&&(g.c6(T),g.ZF(this.U,z)?(T=this.U,z in T&&delete T[z]):g.KV(Error("Ad UI component does not exist: "+z)))}}; j9.prototype.gF=function(){g.Lq(Object.values(this.U));this.U={};e2.prototype.gF.call(this)};g.G(XkP,g.I$);g.I=XkP.prototype;g.I.create=function(){try{ZIb(this),this.load(),this.created=!0,ZIb(this)}catch(B){Fo(B instanceof Error?B:String(B))}}; g.I.load=function(){try{ExK(this)}finally{sx(AF(this.T).Pp)&&this.player.YO("ad",1)}}; g.I.destroy=function(){var B=this.player.getVideoData(1);this.T.T.KK.Ag(B&&B.clientPlaybackNonce||"");this.unload();this.created=!1}; g.I.unload=function(){g.I$.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(z){Fo(z instanceof Error?z:String(z))}if(this.U!=null){var B=this.U;this.U=null;B.dispose()}this.Y.reset()}; g.I.g_=function(){return!1}; g.I.getAdState=function(){return-1}; g.I.getOptions=function(){return Object.values(fkp)}; g.I.vH=function(B,z){z=z===void 0?{}:z;switch(B){case "replaceUrlMacros":return B=z,B.url?(z=rLH(this.player),Object.assign(z,B.sgE),B=g.Pu(B.url,z)):B=null,B;case "onAboutThisAdPopupClosed":this.ph(z);break;case "executeCommand":B=z;B.command&&B.layoutId&&this.executeCommand(B);break;default:return null}}; g.I.r$=function(B){var z;return!((z=this.T.T.s2)==null||!z.get().r$(B))}; g.I.ph=function(B){B.isMuted&&abB(AF(this.T).eQ,AF(this.T).Pw,B.layoutId);this.jP&&this.jP.ph()}; g.I.executeCommand=function(B){AF(this.T).ZJ.executeCommand(B.command,B.layoutId)};g.Zz("yt.player.Application.create",g.ob.create);g.Zz("yt.player.Application.createAlternate",g.ob.create);uYd(Pc(),HF7);var NRF=g.sH("ytcsi.tick");NRF&&NRF("pe");g.Fj("ad",XkP);g.G(g.e9,g.K);g.e9.prototype.start=function(B,z,T){this.config={from:B,to:z,duration:T,startTime:(0,g.f)()};this.next()}; g.e9.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.e9.prototype.next=function(){if(this.config){var B=this.config,z=B.from,T=B.to,R=B.duration;B=B.startTime;var h=(0,g.f)()-B;B=this.T;R=NWK(B,h/R);if(R==0)B=B.L;else if(R==1)B=B.J;else{h=J2(B.L,B.V,R);var W=J2(B.V,B.X,R);B=J2(B.X,B.J,R);h=J2(h,W,R);W=J2(W,B,R);B=J2(h,W,R)}B=g.yQ(B,0,1);this.callback(z+(T-z)*B);B<1&&this.delay.start()}};g.G(g.sK,g.O);g.I=g.sK.prototype;g.I.hasSuggestions=function(){return this.suggestionData.length>0}; g.I.Ty=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.I.show=function(){g.O.prototype.show.call(this);hY7(this)}; g.I.UY=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.I.pK=function(){this.ox(this.api.NG().getPlayerSize())}; g.I.ox=function(B){var z=this.api.isEmbedsShortsMode()?.5625:16/9,T=this.api.F_();B=B.width-(T?112:58);T=Math.ceil(B/(T?320:192));var R=(B-T*8)/T;z=Math.floor(R/z);for(var h=g.d(this.T),W=h.next();!W.done;W=h.next())W=W.value.BD("ytp-suggestion-image"),W.style.width=R+"px",W.style.height=z+"px";this.suggestions.element.style.height=z+"px";this.W=R;this.J=z;this.containerWidth=B;this.columns=T;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.EK(this)}; g.I.onVideoDataChange=function(){var B=this.api.K(),z=this.api.getVideoData();this.X=z.Jj?!1:B.W;this.suggestionData=z.suggestions?g.v6(z.suggestions,function(T){return T&&!T.playlistId}):[]; b5s(this);z.Jj?this.title.update({title:g.Ix("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:z.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.I.scrollTo=function(B){B=g.yQ(B,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.L.start(this.scrollPosition,B,1E3);this.scrollPosition=B;g.EK(this);hY7(this)};})(_yt_player);