var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* Copyright 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 */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var t='url},}youtube.player.web_20251015_22_RC00}}length}X}rr}set}j}join}cmo=pf}call}1}---}path}W}=}get}indexOf}"(;),}N}undefined}/}r}&}cmo}split}push}startsWith}n}scheme}\\.a1\\.googlevideo\\.com$}local}wC}sp}splice}reverse}clone}1969-12-31T17:15:42.000-06:45}cmo=}prototype}slice}/videoplayback}1970-01-01T03:45:06.000+03:45}toString}mn}fromCharCode}fallback_count}1970-01-01T04:01:02.000+04:00}:}file}1970-01-01T01:30:02.000+01:30}match}qiF64}s}1969-12-31T22:45:34.000-01:15}//}playerfallback}forEach}://}\\.googlevideo\\.com$}/api/manifest}https://local}replace}signatureCipher}jK5yWHyDHqsmJ8B5-D-_w8_}Untrusted URL}ej}a1.googlevideo.com}finally}U}assign}([]({}%3D}pop}index.m3u8}RL}/initplayback}unshift}pow}/file/index.m3u8}1970-01-01T02:15:00.000+02:15}1970-01-01T02:16:08.000+02:15}wc}cmo=td}?}Li}1970-01-01T09:00:38.000+09:00}http://local}Uc}1970-01-01T11:15:22.000+11:15}fvip}redirector.googlevideo.com}www.youtube.com}rr?[1-9].*\\.c\\.youtube\\.com$'.split("}"), Wps,hDz,Bs,SYY,OY,GeC,Ize,cs,d_D,JFs,R2,sY,az2,LR,wsF,Wh,Q2F,Gn,dt,$_D,Tn,nCY,Y4,gt,iRs,u3,qv,AFs,RDC,Sg,yFs,PsD,eg,ZRs,kb,bRY,s2Y,RV,pa,Vp2,Xs_,IF,mn,qYp,lze,gCF,LpC,Kj_,Wjs,UvC,hOR,jFD,SWL,fHe,tf_,GnY,IHF,u1,dv_,zG,PX,pr,Bt_,b1,HZL,rIz,XW,whp,xK,WE,QFY,mO,CR,fm,tl,Q_,OZC,YU,g4C,FjC,b_,ni,Fu,KLs,hbC,jVz,Uf,mi,mss,tgL,G2z,IPC,dsC,HF,BGD,rr,aZ,YH,TGL,wBs,Fz,$s2,ue,ie,Mh,cWC,PF,nbs,VV,Xz,gbp,vF,FLp,L_,Wj,k2Y,jo,my,tN,Id,d8,ia$,EL,zb$,Qs,NGY,AWL,kw,yWD,vCp,pW,obs,od,Za$,XBY,tG,dB,JG,Cm,C5$,lP2,WnY,UXs, H1,hqL,O$,mXe,fkY,uh,IkC,dXD,Has,oA,BdR,ak$,wXD,v1,xr,QvF,YFp,cDY,LB,uW$,kGL,WT,irp,Ndp,Sr,AD2,GN,RqC,IC,dh,er,Ev,M6p,BT,P1s,wh,xX2,iH,KOs,UiY,j0s,PT,p5,ZF,bH,VT,Sop,fcR,tVD,L5,GPD,WJ,IcF,mr,Jl2,tY,eY_,G_,I$,HJ,rF,Y6,cJ,FV,uI,iI,Hmp,AY,R$,yn,Q0p,Ln_,pL,m_F,gU$,XV,vJ,im$,RYY,lI,ylF,bap,MVL,pE2,Jc,oUC,ZmL,bmL,hd,jd,Sd,s0$,td,IL,Qb,ed,D0,HP,rK,vUz,lc$,$I,LOp,O1,Kmz,Wmp,U$p,p6,Z0,jpF,m$p,Xc,vP,fis,C6,tes,hl,Iie,d$p,eWY,ExF,hL,tL,Ki,D$$,rb_,dk,aiD,f_,eG,wMp,Ois,wk,cbs,nx_,Fmp,Od,gk,F9,kxL,iU,Ov,zR,AL, M2,RW$,jr,ybY,nK_,sd,VG,PZL,CC,xiD,ufD,lU,YZz,pMs,Zis,uNe,m5,XMF,Sa,vxs,LmD,U0,hO,jF,md,SF,KiC,UhC,jZC,SfC,tA2,Gk_,IP,JO,Ioe,dhs,E0,eA,vj,YfF,O_$,cys,nHs,wK,gHR,FiC,uzs,aP,i_e,Ya,zRC,O0,Ays,yys,MAD,PeD,pFF,Z_2,jG,z1,b_2,sZs,Nj,RP,XFR,vHe,qfp,xhe,oP,loC,Tx,qj,xa,C7,Ky$,WyC,lE,UCR,fde,tos,rlC,dC2,a1,Q6,$E,YE,ca,Pj,d$,zo,R1,Mq,pX,o1,b0,sK,DCL,CX,l0,adz,KG,wjD,Qdp,hM,$CF,SD,tM,YLC,tc,OWR,dv,cNe,Wa,uDs,mT,ED,HI,k4C,iWp,z$p,HN,N8s,TW,ah,NR,QX,pi,R$2,k2,M1,owC,ZWp,bWs,sdF,Vop,vwD,Zl,bp,xCs,CoF,sD,aV,LG, URs,hi$,rq,jAp,SFz,G$,tB$,GAp,Is$,dn,dRC,JGs,By,eiR,ErF,DRs,gr,wn,Oj,FI,uV,ass,Ai,w1p,RH,QAp,nr2,gr2,FUC,iBp,zi2,lV,HM,KS,U2,h7,yG2,jS,m9,xvp,fS,t7,J7,eS,E2,BY,DW,p1_,or$,HY,bBs,P5s,FpL,$Q,q$C,nS,Fb,xRp,uP,Kxp,z7,f5,Nt,Ry,yr,jvD,Mt,PY,mrC,pS,Svs,fF_,bP,qt,IFY,CS,drD,G1,Jce,Ev2,UI,hC,BhL,Drs,tC,rcC,GE,ThF,JC,QC_,$rD,YvR,O5R,DU,HR,rl,ccs,wV,nvC,x2,ROz,$$,gvY,Fxz,uap,OI,kNC,cR,i5L,gV,rNs,Acs,Rap,ycC,Mr_,Zu,Z52,xR,ot,by,b5R,sI,Vrp,Xx,CHL,Lx_,hk,Kre,j2s,Uk$,j5,S5,QZ,hsY,Gs,mkL,SBC,PI,fLD,rT,tIR,wT,G_$, JYe,esC,E6F,BFR,$J,Mr,Dks,rY$,cV,aLp,Q$C,$ke,YB_,OLR,k6,cY_,uO,n6L,kJ,FrD,uV$,zsz,C3$,AYs,dip,Rss,yYz,MIs,bO,XE,gKR,foF,vV,qx,xJ,bLp,Ll,KY,s$C,$H,XJF,v6p,tj,cr,qBF,Ix,d4,lLL,Lrz,KT_,UPs,jLC,Q7,Zs,I0p,dPs,PoL,ax,e6_,w4,ag,BK2,H6R,iN,a0Y,N7,wPz,QLF,$P$,M7,FD,Pw,Vn,cds,bN,nIp,yZ,vw,gIC,qR,SS,MR,q7,xA,kle,Lz,Xb,UR,ha,i6L,Adp,R6s,rD,yde,x4,wD,QI,oIs,Z6C,gD,F$,DL,uS,sLe,VdR,kD,XPF,xPC,pM,o_,ZE,vO,qY,xsL,EK,KT,hm,Vr,jZ,l0L,fT,Sd$,bh,fuC,tm,Iq,GR2,Jm,eZ,Ca,E6,Iu2,JLY,D$,EfY,aq,HCC,rLY,s$,$M,TS,dq,TkY,YM, O6,cQ,og,w_D,ORp,Qg_,gx,iF,z3,Rq,$2F,Ma,YdY,OCD,yNp,pT,oq,cL_,bF,uQ,s6,VU,XS,nfs,gfs,qa,iC$,LT,z5C,AL2,S6,MGp,PUF,mq,SJ,ofp,fD,G0,J_,pBs,eqz,Eb,Bx,sgY,VGL,Hx,vfR,qd2,CUC,$G,Ob,luz,LlC,e52,uU,g9,F1,i8,lb,N8,$f,Px,pD,hRC,mWC,b8,u8e,S9e,B1,Vf,fYL,ta2,X1,vx,yI$,hyF,xG,DWe,CD,n6,l8,US,mt,H_,Gp,$Wz,Ib,dZ,OAC,giR,e7,BL,Q3,MaY,S$L,YB,pIC,SR,ois,np,gZ,zp,bA2,sRp,Vas,XD,AO,ty,xW_,pp,Zh,uE,WdF,UjY,fB,Vh,WrL,mjR,Lp,S0Y,Wc,ji,f6L,tFs,Si,G1p,S8,I6s,J3,dj$,aE,D7,Hc,rH,cX,TX,ee2,$L,EaR,cc,pl,gH,F_,ug,T0p,kL,ig,vQ, Ej,mvC,fL,BI,wrp,Nd,yu,$js,ml,O7z,Z7,gaC,N0p,Cd,ReL,MFs,W3,wJ,oaR,Sy,b7_,f3,sPC,VFp,JP,ey,Xr2,DD,H3,rW,Nz$,Qp,q0e,OX,c3,n3,nG,xjC,YG,l62,K0$,Ci,W0z,UqF,ik,tEs,GoD,IbR,p3,na,TP,mF,eNR,ZD,dT,sX,Vp,Blz,r6Y,TlF,Pr,wap,Q1Y,qc,C3,YKC,QY,fz,c6s,W2,W_,F0D,uJ$,xM,ko$,zNe,NlL,vy,TV,A6C,J0,y6s,Dt,H2,paD,TT,bXR,s1$,a8,VEC,Xap,vEL,Y7,Cp,Ka,gxR,L0F,c2,nJ,gw,W1F,U1_,jhD,k7,m1p,SDp,zT,Nn,tDD,GWe,R8,yQ,erz,E2p,D1R,pJ,Tl,bL,G3,VQ,mA,Xy,qn,CJ,lL,VAp,UT,AMs,RrF,hZ,yMp,MDC,f$,OK,ym,II,o2C,dS,NBL,VDD,XNF,yj,DQ,v22,rS, eap,qDp,wS,x1p,L1e,j7,K7,WAe,UJ_,h_s,jHF,mJe,YF,MP,gEY,fgs,G$C,Igz,dJp,uJ,kF,iJ,N5,DJY,Htp,rie,RI,agC,PW,p$,oI,wyL,QHL,MdC,Ot_,cip,bJ,sT,nRR,M$,FAY,xF,K1,its,uL,NnF,h4,Ai$,AN,jh,R_D,hNR,yiR,M8Y,PVY,pyR,oRR,bk,db,btp,KU2,V8p,E4e,Xyp,HC,lge,im,zt,LAs,Y$2,W9s,ZL$,A4,hgp,ly,E8,tSC,TE,IWz,dtz,J7_,Bcz,ZR,bm,ea,Qf,TcF,aW$,vC,YL,wYs,Qyp,oR,OSY,VE,PB,nQY,L1,KX,F9p,KO,ubF,le,pYs,oQC,mP,sy$,fO,q22,ts,IJ,WUs,j6,lWR,DY,L9s,ew,at,DJ,KF$,U0s,y7,ci,fUe,IUY,g6,FA,JCL,kp,AW,emp,E$D,BVp,e5,sFD,D0$,TVL,mx,wRD,HBY,$0e, oJ,ZJ,sh,YIz,gd,um,IA,g$p,ux2,Zz_,bzR,Wis,LO,VRC,Wm,Uq,v$L,x02,Cys,Iz,UxC,jER,mxC,WN,Ifp,dx_,Eq,Bm,Jk2,ww,Dm,eCp,rU,cI,wU,EJD,BTR,Dxp,QO,uw,$P,rkC,CbR,TT$,hW,Oq,afR,gU,Fi,ut,zM,mPC,A1,nJF,FuD,aI,uEY,Pm,VVL,ks_,bt,L7,ilF,zCY,RCp,yk$,q8,M5_,VO,mK,pVD,Xa,LLC,xP,oJp,QT,rv,Wk,V5L,Uz,ju,me,Su,XVz,Yjs,fc,NJ,Gz,J9,Lip,eu,Luz,brD,rO,Lds,Tz,wO,Qd,$8,hEp,Y8,Oz,ck,nc,uY,OlD,S8_,k8,tkz,PE,GT,qoC,IOY,oL,A9,JjC,c7$,yd,cFs,Pk,eE_,EA2,oi,TN,ZV,D7_,X4,HYs,x8,T4C,aOz,wwp,KC,QxD,ZL,KZ,Lc,$7_,KN,xw,ln,he,OYC,v2,cjs,gA_, te,FXC,MkD,da,Xw,Je,pw2,kf,oAR,ZY2,bY$,VkY,GlR,A6,EV,LX$,$i,ra,xQ,WKY,hV2,OV,cq,nN,mYY,SRR,Do,fEp,zD,tvF,w9,IED,cw,eVp,EDC,HXC,BDC,pm,F4,oK,wOs,ZB,Q_z,sV,$YC,OMC,caR,Xk,vq,nDC,P1,FK2,u$$,iMs,zV_,DP,NDp,LN,K9,BnC,RVp,n_,Wf,yaC,Mvp,oDe,VvR,SO,Jd,XOe,o6Y,tx,XEe,CSC,lEe,Jx,LX,LF_,eO,Ep,Bf,KIz,t3,Dx,uLC,Hf,rY,wY,Qz,map,S6p,dY,Ym,I$Y,L5p,Op,Jms,ee,n9,gY,EMD,wH,ec,TxR,QqD,iL,$a$,F8,Y6C,OTe,ux,cme,zPp,AN2,RmC,AmR,RPF,zZ,T$e,KW,Ax,DsC,oML,p9,oG,ZTp,DF,VZF,qK,XQs,q6,xm,q6s,lx,Kk,l$p,Kq$,Wqs,RE,aJ,ix,j2,jjs, Sbz,Ga,Y2,f82,JK,e2,Bu,tJp,NY,J_C,qHz,wM,QL,hWe,O4,D8C,vk,r_C,cu,aC,JL,T9Y,a8C,gM,wxs,Qjs,FM,$8s,uj,ij,s4,VL,qX,qw,iDp,UK,lj,zKe,N92,RKY,Wp,Ut,y_$,MJ_,SL,v3,fQ,EG2,UH,tR,VJ_,qb2,x8C,C8e,d_,Lq2,Jde,Kts,hdz,r_,jbC,Gpe,kW,iq,Ihp,dKe,JrY,Fw,edp,izp,RT,DKC,PHC,XF,nUY,sF,wLp,YP,gn,Zn,V8,Ez,QbY,aL,KA,lH,op,vp,ql,crL,z9,CQ,lq,nB2,qm,FtL,uwD,CA,fN,Wb,Ul,ip$,zdp,jP2,NZF,Ar,tO,nz,IX,Jis,Pnz,oB$,ZpR,rj,TI,wj,nA,zrL,vBC,qSY,xKz,Cn_,lh$,LtY,KwY,XL,Wwz,sl,Vl,XT,IR,dw,qV,AGL,qWp,Fp,xq,mdY,SMp,GXp,l2,I7C,ddp,t7p, J3F,evR,ELL,Wg,BHL,Ddp,vQ2,zN,Uk,Hds,r3s,jQ,N9,m8,a7R,tv,nLF,ap,Tz$,Sk,u_R,kXs,idR,y3$,T8L,Pgs,pc$,oL2,nf,Zd$,F1Y,n1,bdC,bls,ss2,Vie,XcD,uW,hCs,ke,qMD,iW,$3,z6,jCL,G0C,CgR,UcF,hLs,jlR,mc$,SXY,oQ,ZT,bW,sk,V2,AOD,YQ,zOY,GV_,IDL,dcR,Xh,qD,eLL,a9,E9e,xe,BWC,H32,rPL,Yr,Ig,Lf,HWR,zes,WD,TWC,iQ,aDp,w3_,QlY,xB,$cs,YXD,LU,aQ,Ir,du,lZ,EP,uXe,Da,ru,i3s,zLs,APC,Ml,RLR,m8R,ar,pX$,Mys,Pk2,p3D,Ys,niR,GGs,cD,nj,Z3F,$a,slC,gu,tyC,ks,ic,v9C,UWL,Y8C,DY$,wF,TtF,Kz,Jbs,K6L,W6R,rd,ki,pj,mnL,Sss,fts,tWY,Xjs,IH,sP,J02,Cj, eXs,zE,lc,DnD,r0C,Lj,ACp,xtD,atR,xqF,c1,Ba,mE,$ne,YsD,OJC,c0e,f4,g7s,F6L,uy_,kTe,zXL,NwC,IU,dE,A0C,E3,m0D,A_,rE,MWY,vN,RR,Pq,p2C,wE,o7L,THz,Qo,yE,x2Y,kA$,qsp,xnC,KcL,Wc$,UtD,U5s,$_,jIC,Y_,sB,NV,x9,Gr,ST$,d5Y,yPC,X$,rk,e4Y,Nxs,ct,EFe,T3,gE,ui,Pbp,NtD,qv2,aup,H$L,ii,VBC,J6$,Nq,z_,NF,rZL,ZZ$,aQp,Ah,dYD,RU,Fy,wWC,YTp,yo,O$_,MF,x7,Pt,v7p,C_z,zA,Fce,YRY,s3,z4Y,NSD,AZs,R4_,ApC,yZL,oFs,ll$,b$2,L4,XWC,SE,mR,WQz,Ie,Eu,BZ,mBe,BC,Fh,Hk,eE,SCp,HZ,thD,ro,ae,IRz,dBL,J4$,$T,cZ,NX,cGD,eSC,FO,uX,Ejs,K_,tQ,jD,YA,kT, Pb,iX,PN,H12,BbL,fPD,zg,Af,WV,MZz,NB,Wt,yY,sAz,O1F,ML,lm,Gt,zYF,Mg,njz,PZ,xkR,FQe,oe,uFC,U_s,Z4,zSC,Uh,tb,Nbe,A4s,xD,Mh2,xxC,Pmp,pCe,ojY,Z1C,iAY,s92,XCp,WK,xH,vjY,Ui,SU,KPY,GI,eU,UUe,kVL,Ei,Dr,twD,Grz,IJp,JsC,w5,EpD,B6L,Qx,ol,Oi,aJY,QJY,PNp,cK,GA,$UD,Fq,WO,fZ,gpY,Mj,FPs,uAR,FX,ul,kc,Qc,C9,Xm,zkp,Asp,R4,bZY,ME,a4,qjL,PK,y8,pI,vAC,yss,MwL,as,pis,opp,gwp,SSL,pk,sJL,bl,QhY,yLz,XiF,uo,Jg,Vx,qhp,xUC,vK,bU,pQ,jg,Cwp,KDz,s9,MV,Da$,Odz,LI,SqD,fms,vE,h6s,WxL,GMR,Im_,dmL,J1s,Vq,ejY,EP2,Qr,BU$,YR,J1,DA,fd,HH, bTY,wm$,D4,rN,t5_,Qzz,T8,ak,Ow$,wN,c12,nPp,$1,gPs,FDe,kMD,zjz,NUp,ekR,Y1,A1z,OG,Rjp,iZs,y1L,Mc2,cH,Ptp,pmL,oPC,nH,pRR,gN,szp,XmR,vPC,qqs,oHs,Bw,Fwp,HJs,lmp,LDs,uSR,MS,HK,PH,Rk,pH,Py2,hzC,Mx,jip,m9s,am$,s8,bB,sG,l5,VD,WZ,UYL,vH,fVD,tuz,YK,GzL,gl,E8e,Z7p,lB,D9Y,LH,SzD,mc,HcR,Kg,h5,$B,ZOz,WID,r9p,x5$,TOY,t5,GC,ld,QiC,J5,$9C,n8C,Hz,g8p,rX,HO$,Qk,kq,TC,ic$,Qy,zzF,yN,F2,ia,jJ,fDY,Mm,bd,RzY,pN,Mu2,PYp,lDs,mC_,cP,oE,h4C,wz,M4,zaF,pg,kSC,Zc$,bcp,VSL,ou,si$,Is,Xke,qzL,Ums,Nx,CYF,KMY,ULC,hGY,Zts,Dg,fBp,Go,DV, wX,t_L,GDe,jP,Vy,IB_,dLF,X2,Bw2,vz,q4,xc,zY,uq,Jez,la,lW,wl,Lg,eGs,E3R,Ba_,fC,hx,DLe,Bp,U7,O9,hw,Tas,ms,St,kkY,wqs,fn,CFs,JaF,m2,YVp,Gm,n3C,Iw,dQ,$x,g3p,MRR,cee,Bv,FMY,D3,ES,ukL,Xg,Hv,pB,iNs,BkY,zGs,nAs,zV,Ql,Z$F,o3e,Are,QS,B$s,cv,gLs,Zi,bNp,u6,XqC,i6,NM,lFC,CdC,lB$,K0,LMY,Kz2,B0C,hv$,MM,U62,hf2,QQ,ow,jGs,oT,YMs,SpC,oK_,Ag,g_,AID,GZs,pTL,O3,$is,QPp,Xd,efF,vv,LyF,qM,rrs,pY,YSe,t6,l6,BY_,Lep,lOD,Ky,WG,Um,D6s,vD,H92,Js,rxC,ovR,hT,eP,TYF,wfC,EK2,YpY,JZ,O9C,cxD,A_$,nmL,fy,tT,de,gmC,Gh,RR$,Pv,Fz$,yK,aHp, CU,uU_,ds,Axp,Rf2,qF_,bn,n$,sGF,ai,Yn,Xfp,SIs,o4p,cG,ny,vmF,i2,qp2,gs,hK,x6Y,lxC,KaC,WaY,UC,Uwe,iR,mw$,zh,Gap,AT,Mo,PG,Zt,oS,I5C,eBR,EyC,pd,BMs,XY,nyY,tGR,gyz,Cy,lR,Ly,bx,dX,A3,uMs,KE,kaF,wo,zBR,ho,NMp,jj,AK$,jv,mf,to,Bk,RBe,yK2,M2p,aw,fg,EU,oyL,LTe,BS,aN,bkF,DN,h2,i1F,r2,sNs,Y9,V2s,XuC,h5C,R9,TJ,Mf_,rDs,xwC,CjC,Las,ac,WS2,gJz,l5p,OU,hxY,au,jTp,g2,GyR,ml_,uC,EQ,OB,eo,rJ,fnC,rsY,kd,tLs,fH,I9,G9,GbF,In2,XTC,WY,D2s,exs,BH,aK,y5,X3p,cC,Fds,P8Y,B_2,YCY,D6,sU,Jv,Cks,V5,pqR,XK,ER,vS,Xr,tzR,rRF,IQ,Jp,bY, an_,QTL,$lC,f1,CE,U6,Yt$,OQ2,cRe,nWC,u0R,fk,Ju,Rp,e3,TUp,Sw,VLD,EJ,L6D,$r,X5,dF,pLC,YY$,vWz,KJ,DG,qte,Y3,Td,wi,C_,sjp,Gg,QF,fQL,$S,YS,CqL,J6,RJ,OJ,FP,uK,BvR,Tj,ko,kS,$d,SlD,GI2,x6,XO,dVp,HTs,VK,WF,$R,lR2,zd,VeY,ZSe,NO,Au,RO,JgY,euC,yF,EqL,Bjp,MO,HUF,hQ,p8,qJ,yU,XI,f6,rgp,oO,a2C,ERp,qF,jRs,Nr,QXp,Xp,Pjp,$VD,GX,YlY,bK,OUL,nqD,S7,gqs,u5R,HE,uTF,zus,NjR,Ag2,Tp,ex,TSY,KQC,MPY,bC,P2R,q_,pbD,MJ,bUp,sXY,CJF,vT,VPp,XP,aF,vo,Yy,Jw,qO,Ao,uIL,qlL,xVF,OBD,QN2,l2C,o8s,gQ,iJ2,zs,j$s,mDL,SkR,QE,G6C,vM,hPC,MG,f9, ITR,bc,dDe,Jvs,e02,RGp,eDe,Bep,LE,DV_,Ru,dN,jm,Hw,rvL,Tee,xJe,JRz,SP,wgD,eR,Am,iXp,Jxe,QQF,kRp,Pp,Ykp,OfR,axC,cvL,Hy,fRC,nep,Cr,geL,F8p,GR,JA,uhL,k6Y,BW,WD2,Sx,Eg,Bd,DM,IS,t2,t4,Hd,R0_,pf2,pg2,rP,OH,Rd,ZfY,lg,bfs,ZGs,sQD,IZ,VQs,Yd,XgL,QU,T5,JZ$,b6,SQ,ve_,wTs,qk$,lTC,AR,ao,Kj,W2Y,gT,QM,Rvs,$5,XN,mHz,lC,faF,Og,Po,BO$,tbs,WMs,eL,jss,rmD,$tD,dHC,bO2,T$,eJL,cd,Ess,qTp,ygY,BuC,ZBC,DHR,HjF,PD,i0,aas,$HR,ma,uc2,PWz,Jl,Sz,yQz,Mbp,FR,Gy,cy,Pc$,CNs,pDC,vL,wu,srC,XX,o$,ta,uf,k5,VbL,oj,O8,z5,CcL,yH,C5,mX,nX,z_R, lap,nr,L2D,zI,KEL,UFL,gDs,AA,Rs,UnL,Ro,i9s,Gjz,I9C,UD,yM,dFC,MT,xo,Jh$,DFs,H4R,yO,wte,ev,bf,Y32,O42,pE,FEs,xU,VM,PQ,urC,Na,zQp,sm,CL,qT,N0,AhC,tK,x5,Of,o_L,ff,Ps,Ul2,ffp,sUp,vrp,J4,fTR,GD,XpL,NVz,CV,n4R,xFs,Cie,GBe,l9_,LE$,KR2,WRs,X_p,UgC,LV,Sus,Ko,c3L,f4C,B4p,GgD,iV,Us,nse,Jfe,UJ,eoz,BoR,Dg2,pU,rfs,CWF,m2_,KU,qC$,a4C,wZ2,qU,hE,j9,Qe_,mh,U3,iP,AD,kbR,$g2,mQ,hy,YuL,fo,S3z,tI,Hs,Rg,Fc,sKF,HS2,cf2,xaF,nTY,Tj2,fOC,FTR,uOC,WP,Dis,kge,No2,Afp,Rop,sez,VCC,dH,vTs,quC,QJ,Pxp,y9R,fG,eKD,d1C,zl,zyz,nT,LRC,KNR, dW,rL,TL,gB,aa,WNp,UEY,wL,j4s,hSz,fr2,tUL,Gfp,Ire,JXp,di,q$,nw,enF,Bxp,vm,Q4,EcD,lQ,C$,E4,lkC,B9e,U1,HIp,T5C,W8$,wKC,Yk,$ER,IV,YiC,OIC,Dt2,eh,cp,TY,M0,wW,BK,MLe,gcR,GEC,FNs,i_,gP,c$,dJ,C8,U9p,pc,N52,AXs,Bt,no,tu,FyL,gL,mmp,HL,vsC,ARD,LN2,lf,Fls,vFD,WOD,WX,e_,$Dz,WGF,VIC,als,abp,aFe,USL,h3C,rn,xi,Za,Z0Y,fAR,AG,mM,bs,gj,k1F,Q2,nB,Ew,qd,WI,v8s,J2Y,e3$,Xq,Ra,Ik,HHe,vR,l_,XKC,TN2,Al,gB$,G8L,aAY,wH2,KI,Mb,Rip,po,oCC,$S2,w2C,E1C,q0,mm,xlD,OHY,c2p,g1z,FGs,ZAL,Mn,k8_,ft,DEs,vb,k3$,os,DS_,No,ua,Wez,qH,OmC, NNY,A2$,jT,Vd,y2e,P3z,PL$,R5C,PBp,fi,o1C,ZHe,bHF,v$,skY,V1p,qGp,xSp,K$C,W$C,qb,U4s,ahC,hwY,G8,xn,Dq2,jup,osF,m4s,TKY,eJ,xk,Co,PPz,G6,l7,tKD,GCC,dO,IjF,nZ,nR,d4L,J5e,ewR,Lo,Up,Ub,cm,Eo_,Ke,W4,BXR,dnp,I4p,mVp,Hgs,aVD,TXD,Nk,ckC,ajD,d7s,wz$,U5,HAR,OgC,ZY,c5s,no$,goL,mW,bw2,u2s,kCs,vc,YH_,h0,AX,cW,g_L,Lz_,Pas,OC,oos,ZgD,Rks,bg_,Qsp,zx,tq,su2,VK$,JMC,y4,ZM,nw$,zX,bR,voC,Cap,L$C,Wsp,UMY,rd$,hFC,E5,n$D,sx$,jwC,E9,mMF,f3Y,LU$,I3$,NW,yx,cN,BQY,DM$,Hn$,H4,rw2,rA,wvL,upC,XM,Tv,mw,IG,GYz,Vz,xHD,wA,p0,ggz,FsL, V6$,$dC,UDC,x$s,IE,jl,f7s,NQF,XD_,Awp,RFD,ywp,wpz,JR,Ors,GxR,Zn_,bnC,Q8,sw_,Vt_,YZ,O5,XvD,vgY,C6p,l3C,yeF,c4,LsL,XzL,Kgs,vbF,s7,jSs,T9,ne,$7,mo2,SmD,CG,Pf,fvF,vG,gA,txC,Fe,ur,XJ,tg,ktp,fJ,WB,KL,zv,ST,xS,IvL,doe,Ok,dd,wkR,JTs,e7e,npC,DoC,rTC,TsR,nEY,Yx,$oR,fl,Aq,gFz,n5,RM,nnz,gns,aTC,uYs,khp,iy_,z7p,Nse,Mxp,PRe,P4,CL_,Dm2,lQL,Zyp,Als,Ww,s4R,egz,Vxe,vnD,KGR,sHL,qmC,xop,CRF,lvY,v,hjR,JOY,KfD,CZL,Tf,UG2,hHp,cpR,mGs,Zq,eHL,f8,EdF,Vcz,cx,B2C,r7L,DGp,bI,HEC,ro$,cOY,T2$,E_p,wSp,cos,VZ,bip,nn,kIR,iZ,yXD,FIz, I1,gdR,j1,v4,qZ,Lw,Ff2,Yg,Hfs,BzF,oa,h6,UV,HDL,N2p,AoR,xZ,dls,RHF,yoR,PCC,pSp,ods,K3,CT,bEz,Hq,BJ,or,ZNp,Tm,xp,sn,lr,StD,VjR,$Xz,XSL,Vi,S42,MTs,l7$,sEs,qUs,xGC,j1F,ep,lNs,zfF,Hyp,TBs,UOF,hA_,jOF,mOR,NS,j8C,Y$,fu,eAs,ESC,Bi$,SiL,DDs,mB,LKp,TiC,H0F,ps$,t_,T_2,A5s,wo$,tS,QOs,$Os,qr,HrC,b6s,Gw,MW,YJe,O8D,T0,cus,m6Y,nS$,bIp,mH,jx,eV,l8R,XA,Nip,yuF,M3s,LYC,PKC,JQ,vi$,vJ2,Kp,iUR,pf,Er,jC,d6$,B8,po_,oSL,Zke,H8,Z8z,lde,kB,vI,W7p,iE2,Fs,wVs,M_,am,SZY,VWs,UTY,CQ2,fp,hU_,joF,Qt,$h,Zf,fMz,jE,lVY,VN,G5L,R7p,o$p, a6Y,Op_,lK,dTs,JAY,Vue,sVs,BPp,e8,Qn,GTp,pNR,DTC,rAe,TPp,xx,Or,B4,c8,P_,Oh,Tb_,QoD,$Te,g3,YgC,inY,cAp,Ed,L8,qC,n5C,F7_,Tvs,Hr,usp,ttY,CxD,JF,k5s,iHF,lp,zUL,NPC,IdC,nD,Ege,Uw,UaL,$s,mgL,yTC,lJC,AAp,A9p,RUF,SLC,hD,e$s,lte,yxL,PfC,uD,pdY,ng,Oce,ZVF,soe,TZC,VmR,XdC,Hm,v5_,Ems,A7,qgY,xT$,Cfz,ti,lMp,IK,L7F,iD,el,GmC,KhC,k9F,rV,dz,$p,N_L,CtC,zw,vde,vaC,mbD,U7p,TR,iTs,SnC,G4p,NN,t9L,QW,p1,GLR,pA,Ip2,JEe,ecC,EkR,TM2,BLs,kjD,v4s,F5,Yj,F5F,$o,Hop,al,oc,Yo,UP,rEp,TLY,r1$,aps,RA,fY,MN,Wu,w$e,Rbs,cE$,Jw_,jrC,Ud2, nk$,jf,s1,QuC,I_,gkD,Fh_,utC,kL2,SwL,yP,zcD,BN,flC,Ip,kYC,U8,aUD,VH,AE_,RcF,yEC,M9e,Ljp,lYL,P7Y,FC_,om,Os,nk,Em,qnF,ZK,xbC,cb,C7D,bG2,SPD,VJ,q7e,hnp,h9,fW,p_,iis,LhR,KWp,yV,cKD,qwR,jkL,UZ2,cIC,$6L,kZ,mLC,T_,dqR,KBD,jML,i3,Ak,mZe,S5C,zy,Bg,n1s,z3R,BAp,YW,RQp,DZ2,$KC,Oys,f$$,Hep,x7R,Lk,y6,rqs,TAz,e6,fpF,Dz,Vv,vvF,QMp,$ZD,TdC,Oe_,cS,sb$,Sl,RuR,TDz,wD_,nZL,gZ$,mg,FWs,M7R,fxL,ue2,Cu,kvD,CpD,ie_,zZC,oU,zS,boL,RZL,yqz,MlL,T4,lsR,PrF,AC,p4F,hK$,oZL,WM,R3e,lD,qN,q5z,eZR,V9F,xrR,KHp,WHp,UNL,LI2,Qke,kJ_,HNs, Z9,b1e,R0,vh,h8D,WE_,tZD,jmL,yv,Xt,mN$,zm$,Srp,SH_,Kq,Ow,It_,Zx,Di,gX,W5,Uc,Gwp,Aw,B2,nM,Pc,IKC,dNL,h0s,DNz,$$C,T3L,I0,aKp,C2z,iO,ac2,w82,Ou$,K8Y,A0,hf,xEY,ghs,FHY,dZz,KpF,vY,ETC,o9,IGY,Gvp,Ot,iue,z8C,N32,VO$,ASs,R82,rep,ySL,El,et,M0z,PV,p8Y,ZW,x_2,qL,ohe,Sn,GU,Oo2,vcp,I3,V0p,qis,Tn_,qrY,Qi,ib,Rc,t32,LH$,ob,KZY,EY,L9,O0F,Uzs,htF,oX,fM,j3$,mze,NeC,ScR,d0e,km,ugD,jqs,fee,nQ,id,BBR,LcR,U9,tn$,Sp,en,nMY,rSL,Fes,IeY,dzF,q9,J8C,Un,E1,X_,oGY,znR,iIR,K7_,oN,BIC,IO,i$p,KlF,De,f9F,ZMC,K5,QD,TIL,Wo,Chz,GV,aeL, H5,uH,NT,d8F,aPF,w5p,Q3z,$zC,Ycz,TU,gjz,L$,EB2,PM,Oqs,gXp,NC,Cs2,Yf,jcF,ZEz,FZz,uGe,yy,AP,kUF,a3,S1D,iqR,wI,E5p,bV_,jQe,Ek,ECs,g4,lGY,I8C,CCD,RtL,MnL,P4D,FT,QSs,oXL,z6Y,S_,Zqp,Ja,bqp,vt,KD,s3R,yW,Vn_,aRp,az,XHY,fhs,YX,xz$,C4Y,XLp,Oc,zz,AQF,$4_,rjC,r9,LZe,cg,nY,kEF,c5,UeC,spp,h1s,aGz,mep,OQ,Sy$,fIR,a5$,$k,xs,JtC,EVe,ByF,yDR,OR,Dee,Ce,be$,r4,mG,HFs,rtp,Ym2,aj,ZCY,pn,OT,eQC,qQC,aIs,UF,QnL,$ep,OF2,u4,OaR,tr2,Nae,V7,Ht,Lu,UKs,nV$,gVL,HpF,cMz,FSC,kX,Fbe,px_,uZe,Wt$,sms,kiY,K1p,Eh,iFp,Nyz,EI,fbY,bZ,Hk2, ytL,hq,Gds,Tqs,AjD,Lt,Pzp,OzF,Yz_,B_,ZFR,Mm2,uCp,EXL,bFC,jds,zts,EEs,MzF,vVC,Va,KSz,ocp,Nkp,QRD,HR$,lIe,LbY,KVC,Yp,h2p,jfY,KuC,cz,SaD,huY,QGs,fCY,R_,xMp,Fd,GqD,Nq2,ICL,dQs,saF,E$,Bg$,DQD,hXY,c8p,rVY,TgF,A8,aCC,Qfz,Ve,CI,Hi,XG,$Qs,TZ,NFp,X8C,Yc,Lfs,WZD,Yap,QN,kn$,Dc,dU$,O2R,phR,ars,b0s,FVp,i2L,sH,v5,Vt,z2D,NgY,dSR,sts,Av,qz,OOR,yVR,daR,u8,Vj,za,FBp,VUp,eB,PTs,pAR,ozD,Dlp,jw,i0e,u9p,G4,BD,Z2Y,sfC,XAD,vzs,dc,l4,Fns,L6,vu,WL,J9e,MQY,hkC,kmC,dEC,LBp,xQY,r2s,XC,t2L,ch,WC,KF,p7C,zvC,UIs,ov,n9Y,uB,jWp,kR, mIe,dD,I2s,Uy,AeR,XU,jKz,m0,Sx_,fSz,tp,tYF,Yb,Gc2,jU,BJR,nm,ISC,dIs,lbp,nU,tE,JH$,PER,yvp,gMs,lfC,Pg,sr,B1C,DIz,Tuz,JT,T1s,wQ$,bQ,zP,h_,RX,j_p,jz,QH,w6R,ngL,QWD,PhC,lep,FJY,Ubp,lK$,uHD,kcL,cPe,NKs,N1e,gv,j$,AHp,Dd,RTL,uc,OF,Cg,yH$,MYD,y4C,PGs,p6D,EM,oN_,ZPC,Bc,eFp,f0,bPp,sWe,VYs,P_F,rz,vNR,fF,q4$,qxL,dA,rZ,lSF,Hu,bys,puC,kv,tqR,rX2,lU$,Lws,tt,CKp,Kf,xce,BR,$RF,Y5s,Ufs,nV,S0,FR_,fI,KKR,KA_,mfp,SNs,KbY,In,ub,fyp,tRe,tNC,Y2p,Fk,DT,GQe,IyY,cs$,dfC,C0,Rt,K2p,MoD,c_,pK$,Rl,HhY,avs,Clz,BEe,e$,Ey,rB$,P8, B7,aR,FG,zFF,TRR,SVz,cF,wa,Dzz,wnC,pC,H7,QDp,$fF,r4C,Oh$,Kse,QUs,Jb,gYs,X2$,u7R,kQY,t1,Cq,r5s,ih2,hg,zI_,NRz,uos,A2,tZ,HGR,SW,pO_,WBC,ABe,cws,RID,ATs,MBY,yBC,sc,Ti,LGz,MN_,gb,pns,Xs,cM,k_,oYD,u2,Aa,JVY,ZN,dr,b7,Pi,B5,hmp,bhz,tpe,S7C,b4,NE$,sDF,RQ,aEY,lt,VNs,j_,tlz,kE,Vhp,Ple,kA,mQp,vYC,kyp,w0,MqD,Ze,fX,xfp,Nhz,IM,Cvs,lyC,s0,ZG,BZL,KkF,HT,mUY,v_z,CGe,xX,QEY,cSC,LPs,rpR,FW,hM_,Xi,mpC,fE,T6z,e_Y,wb,IxC,gy,f1p,GKR,I1F,TJe,qq,dpC,kfY,FZ,eM$,oo,Hg,hrC,XRp,Bi,VwD,K5p,PQ$,uR,xT,ENs,EuR,DI,BfC,Vc,UG,xIs,uz, JBR,Hx$,pGz,Kr,cO,Tf2,iVC,a1p,Dq,o3,kV,je,Mi,xDs,g9F,gI,Wfp,eQ,Im,wep,mZ,Q6p,wq,RX$,w6,vg,$mz,YAz,mT2,rB,Aj,QrL,Oxe,EWs,h$p,cUe,aSD,oM,nuz,Nvz,gu2,YQC,Tr,f2C,bb,gG,ZP,OD,kKs,cX2,ix$,HLY,cL,zMC,NfF,Oy,yUe,O3D,wc,MXp,Gx,$X,P9p,uZ,$xL,prp,xj,ZxC,zB,ZXL,iz,jDC,bxp,X1_,s6C,VXC,A5,qP_,qAR,v1p,D5p,cB_,aqC,Ne,xpY,C9s,hP,oC,Abp,l1C,Kvs,hTp,SEY,EG,ba,kP$,fXC,H2$,W5z,tHL,ZO,XGp,SgC,Xn2,un,GF2,IXz,dy_,JJz,Rn,ZQR,yi,yR,g5L,BpR,DyF,yq,sz,hj,kqD,mu,bD,e12,vi,Qm,bQ_,Wx,$y,Dn,eD,rJe,HVs,FC,Me,ab,aX2,mEY,Cw,wlD,$yp, EQD,La,kZC,Nh,wED,zop,XeC,mS,BSz,VI,YEC,ppp,TB,yl,rap,VfF,uR$,kx,shs,YI,A8p,lis,$W,nlz,glL,P3,Fvs,RF,oEF,hh,Dfp,ru_,uQL,EhD,Shp,zJ,zi,P7,jt_,Tg,kFY,ptC,fz2,ivz,zl$,pPC,nX2,yD,ry,w4$,WW$,At,wQ,YV,py,nY2,lpC,NrL,GZ,pF,m1,m5C,B8_,i72,iS,tdC,tip,yh,MHs,j6s,P$2,HQY,Jq,POR,AE,v_,DXC,olY,ZvL,Hp,KCz,Ft,wx,S1,bvC,zxp,a$_,XlY,V7p,Gh_,br,IIe,xy2,Yi,YDs,uue,JPD,kI,xmC,GNL,LvD,Lq,K4F,e2s,Joz,W4p,AaC,UAL,rw,g6p,bM$,gK,c9D,GL,V$C,Ii,HO,S_s,XYL,fwC,t4D,ays,rUs,tOs,ZI,EF,rGC,Iws,LCY,Kn,bw,Dp,dAL,eps,i4p,tr,EOL,rK$, dgY,jR,B7e,TG,DAz,SC,z$,D4F,E7,t9,HKF,bi,LC,awp,w0e,n7,Q7C,WQ,XZ,y_,kM,ZjL,$AR,MZ,Y_$,qyC,WV$,z8,dy,v7,oy,KV,WbD,YGC,IQz,ei,rFR,OKR,c$R,nOD,LWC,dl,fqY,Y42,vkY,ay,qe,B5p,kH$,P2,HqL,$A,sqp,PL,Tt,Om,ZJ_,Qw_,DE,V4,xe$,i4,iKp,DO_,pl_,ZIs,t62,X$C,nFp,N4,zpF,D9,Z2,A$_,Xhp,aX,Dcz,rHF,Rpp,lz,M4p,b2,G7p,LF,BM,dM,D8,t8,Pds,zHF,e9,clC,p0e,oOs,D2,ZKs,li,bKs,HV,IAL,xdL,PqL,tCL,s7$,V4_,mY,CF,Xn,RS2,Uo,lF,X0R,VC,t$e,q_C,k_F,CAe,Yh,DB_,Ou,X7p,hX,MgD,MU_,pq,C1s,qW,t0,L4s,MO_,K_C,qKY,N6Y,dU,W_2,nt,uds,WXL,vuD,IL_,K2, qcp,ZU,hhe,SJs,T1,svC,cf,des,jBF,fA,Jh,F0,QIp,mu2,SOC,r8R,Zrp,Kop,f5s,NOC,$9,D_Y,Sj,Gv,pH$,Jr,pO,NE,J8,UrY,YW2,G9Y,fZe,tML,TM,y8Y,GUz,a3Y,yJp,IqC,qXp,WCz,fr,nu,TF$,Dpe,gq,n7p,DvF,ef,aU;Wps=function(K,W){var U,h,m,S;g.r(function(f){if(f.j==1)return U=K.V(),h=g.UY(U,g.mp(W)),h.j?g.T(f,h.j,3):(m=h.getValue(),f.O5(2));f.j!=2&&(m=f.X);S=m;return f.return(KpF(W,S))})}; hDz=function(K,W,U,h,m,S,f,G){this.callback=K;this.slot=W;this.layout=U;this.dk=h;this.zm=m;this.Xx=f;this.yg=G;this.j=!1;K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId);var I;K=((I=Sp(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:I.progressCommands)||[];var d=Sp(U.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.X=new U_s(S,K,U.layoutId,function(){return d*1E3})}; Bs=function(K,W,U,h,m){JF.call(this,K,W,U,h,m,{T:"div",Z:"ytp-display-underlay-text-grid-cards",K:[{T:"div",Z:"ytp-display-underlay-text-grid-cards__content_container",K:[{T:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{T:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{T:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{T:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {T:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new ep(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);g.k(this,this.adGridCardCollection);this.adGridCardCollection.U5(this.yH("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new EY(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);g.k(this,this.adButton);this.adButton.U5(this.yH("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.N=this.yH("ytp-display-underlay-text-grid-cards__content_container");this.W=this.yH("ytp-display-underlay-text-grid-cards__content_container__header")}; SYY=function(K,W,U,h){return Dz().N?!1:Hs(K)<=0||K.getHeight()<=0?!0:U&&h?j2s(208,function(){return m_F(K,W,U)}):!1}; OY=function(K,W){g.r$.call(this,K);this.Y$=W;this.X=new g.Te(this);this.Y=new g.QC(this.yOp,1E3,this);this.J=this.FI=null;g.k(this,this.X);g.k(this,this.Y);W=this.D.V();K.createClientVe(this.element,this,28656);g.$C(this.element,"ytp-contextmenu");this.D.V().experiments.Rk("delhi_modern_web_player")&&g.YC(W)&&g.$C(this.element,"ytp-delhi-modern-contextmenu");fz2(this);this.hide()}; GeC=function(K){return K===void 0||K instanceof tpe?K:new tpe(K)}; Ize=function(K,W){for(var U=0;U=3&&(f=1,m="drm.net.retryexhausted");VC(K,{onlcsrqerr:m,info:S});K.error(m,f,S);K.shouldRetry(CR(f),h)&&rFR(K,h)}}); g.k(K,W);T$e(K,W)}else K.error("drm.unavailable",1,"km.empty")}; LR=function(){this.v2=0;this.j=!1;this.X=-1;this.IU=!1;this.bT=0}; wsF=function(K){K.Bh>8?KZ(K,K.sP):K.Bh>0&&(K.mf[K.pending++]=K.sP);K.sP=0;K.Bh=0}; Wh=function(K){return K.includes("vtt")||K.includes("text/mp4")}; Q2F=function(K,W){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("Object expected.");if(U===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var U=W[Symbol.dispose]}if(typeof U!=="function")throw new TypeError("Object not disposable.");K.stack.push({value:W,dispose:U,async:!1})}return W}; g.hI=function(K,W,U){for(var h in K)W.call(U,K[h],h,K)}; Gn=function(K){jf.call(this,K);var W=this;fZ(K,"setAccountLinkState",function(U){W.setAccountLinkState(U)}); fZ(K,"updateAccountLinkingConfig",function(U){W.updateAccountLinkingConfig(U)}); K.addEventListener("videodatachange",function(U,h){W.onVideoDataChange(h)}); K.addEventListener("settingsMenuInitialized",function(){W.menuItem=new tI(W.api);g.k(W,W.menuItem)})}; dt=function(K,W,U){return K.parseFromString(IF(W),U)}; $_D=function(K,W){var U=g.JI;K=K.split(".");for(var h=0;h4);m++)W[Qb(K[m])]||(U+="\nInner error "+h++ +": ",K[m].stack&&K[m].stack.indexOf(K[m].toString())==0||(U+=typeof K[m]==="string"?K[m]:K[m].message+"\n"),U+=Y4(K[m],W));m>4)){for(var E=W[t[26]](t[24]),B={},D=0;D>4>=2&&(K^54)>>4<3&&(D=g.P(W,kes)||W[t[64]],E={Uc:!1,wc:t[3],RL:t[3],s:t[3]},D?(D=nZ(D),E[t[89]]=!0,E[t[83]]=D[t[0]],E[t[76]]=D[t[34]],E[t[54]]=D[t[54]],a=E):a=E);(K-4|14)=K&&(a=h(f,G,I,d,J,e));K-3<12&&K+7>>3>=2&&(a=W!==null);return a}; iRs=function(K,W){K.j=W}; u3=function(K,W){2&W&&(K|=2);return K|1}; g.k4=function(K){var W=K.length;if(W>0){for(var U=Array(W),h=0;h0:!1}; var N$Y=function(K){return XN[t[11]](this,23,K)}; qv=function(K,W,U,h,m,S,f){vh.call(this,K,W,U,h,m,S);this.j=f;g.k(this,this.j);this.tK=this.J=-1}; AFs=function(K){K=K.adPlacementRenderer.config.adPlacementConfig;if(!K.prefetchModeConfig||!K.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;K=Number(K.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(K)||K<=0?0:Math.floor(Math.random()*K)}; RDC=function(K){var W=x4();K=W?W.createScript(K):K;return new Ka(K)}; Sg=function(K,W,U,h,m,S){vh.call(this,K,{T:"div",Z:"ytp-ad-action-interstitial",B:{tabindex:"0"},K:[{T:"div",Z:"ytp-ad-action-interstitial-background-container"},{T:"div",Z:"ytp-ad-action-interstitial-slot",K:[{T:"div",Z:"ytp-ad-action-interstitial-instream-info"},{T:"div",Z:"ytp-ad-action-interstitial-card",K:[{T:"div",Z:"ytp-ad-action-interstitial-image-container"},{T:"div",Z:"ytp-ad-action-interstitial-headline-container"},{T:"div",Z:"ytp-ad-action-interstitial-description-container"},{T:"div", Z:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",W,U,h);this.s6=m;this.aJ=S;this.navigationEndpoint=this.j=this.skipButton=this.X=this.actionButton=null;this.tK=this.yH("ytp-ad-action-interstitial-instream-info");this.Le=this.yH("ytp-ad-action-interstitial-image-container");this.J=new WB(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,"ytp-ad-action-interstitial-image");g.k(this,this.J);this.J.U5(this.Le);this.hK=this.yH("ytp-ad-action-interstitial-headline-container"); this.U=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,"ytp-ad-action-interstitial-headline");g.k(this,this.U);this.U.U5(this.hK);this.uX=this.yH("ytp-ad-action-interstitial-description-container");this.N=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,"ytp-ad-action-interstitial-description");g.k(this,this.N);this.N.U5(this.uX);this.Ik=this.yH("ytp-ad-action-interstitial-background-container");this.vp=new WB(this.api,this.layoutId,this.interactionLoggingClientData, this.s5,"ytp-ad-action-interstitial-background",!0);g.k(this,this.vp);this.vp.U5(this.Ik);this.JK=this.yH("ytp-ad-action-interstitial-action-button-container");this.slot=this.yH("ytp-ad-action-interstitial-slot");this.J9=this.yH("ytp-ad-action-interstitial-card");this.W=new jg;g.k(this,this.W);this.hide()}; g.fa=function(K){return Array.prototype.concat.apply([],arguments)}; yFs=function(K){if(K!==tW)throw Error("illegal external caller");}; PsD=function(K,W,U){Mp2&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+K.constructor.name+"] '"+K.state+"' to '"+W+"'"),console.log("with message: ",U),console.groupEnd())}; g.dG=function(K,W,U){W=IV(K,W,U);return W<0?null:typeof K==="string"?K.charAt(W):K[W]}; eg=function(K){g.p.call(this);this.logger=K;this.N=new g.JW}; g.OZ=function(K,W,U,h,m,S,f,G,I,d,J,e){K=K.charAt(0)+K.substring(1).toLowerCase();U=U.charAt(0)+U.substring(1).toLowerCase();if(W==="0"||W==="-1")W=null;if(h==="0"||h==="-1")h=null;var E=J.V(),B=E.userDisplayName&&g.EZ(E);g.y.call(this,{T:"div",Hp:["ytp-button","ytp-sb"],K:[{T:"div",Z:"ytp-sb-subscribe",B:B?{title:J.V().L("player_tooltip_data_title_killswitch")?g.BB("Subscribe as $USER_NAME",{USER_NAME:E.userDisplayName}):"","data-tooltip-title":g.BB("Subscribe as $USER_NAME",{USER_NAME:E.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":DP(E),"data-tooltip-opaque":String(g.HB(E)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},K:[{T:"div",Z:"ytp-sb-text",K:[{T:"div",Z:"ytp-sb-icon"},K]},W?{T:"div",Z:"ytp-sb-count",bX:W}:""]},{T:"div",Z:"ytp-sb-unsubscribe",B:B?{title:J.L("player_tooltip_data_title_killswitch")?g.BB("Subscribed as $USER_NAME",{USER_NAME:E.userDisplayName}):"","data-tooltip-title":g.BB("Subscribed as $USER_NAME",{USER_NAME:E.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":DP(E),"data-tooltip-opaque":String(g.HB(E)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},K:[{T:"div",Z:"ytp-sb-text",K:[{T:"div",Z:"ytp-sb-icon"},U]},h?{T:"div",Z:"ytp-sb-count",bX:h}:""]}],B:{"aria-live":"polite"}});var D=this;this.channelId=f;this.D=J;this.N=e;var a=this.yH("ytp-sb-subscribe"),Q=this.yH("ytp-sb-unsubscribe");S&&g.$C(this.element,"ytp-sb-classic");if(m){G?this.j():this.X();var u=function(){if(E.DA){var N= D.channelId;if(I||d){var A={c:N};var Z;g.T2.isInitialized()&&(Z=ps$(A));A=Z||"";if(Z=J.getVideoData())if(Z=Z.subscribeCommand){var x=J.Tz();x?(aV(x,Z,{botguardResponse:A,feature:I}),J.Fx("SUBSCRIBE",N)):g.wG(Error("No innertube service available when updating subscriptions."))}else g.wG(Error("No subscribe command in videoData."));else g.wG(Error("No video data available when updating subscription."))}Q.focus();Q.removeAttribute("aria-hidden");a.setAttribute("aria-hidden","true")}else Q3(g.$b(D.D.V()), "sb_button",D.W)},O=function(){var N=D.channelId; if(I||d){var A=J.getVideoData();aV(J.Tz(),A.unsubscribeCommand,{feature:I});J.Fx("UNSUBSCRIBE",N)}a.focus();a.removeAttribute("aria-hidden");Q.setAttribute("aria-hidden","true")}; this.S(a,"click",u);this.S(Q,"click",O);this.S(a,"keypress",function(N){N.keyCode===13&&u(N)}); this.S(Q,"keypress",function(N){N.keyCode===13&&O(N)}); this.S(J,"SUBSCRIBE",this.j);this.S(J,"UNSUBSCRIBE",this.X);this.N&&B&&(oCC(J),Yb(J,a,this),Yb(J,Q,this))}else g.$C(a,"ytp-sb-disabled"),g.$C(Q,"ytp-sb-disabled")}; ZRs=function(K){var W=K.layoutId,U=K.V9;if(K.wQ){var h={};na(K.i5,"slso",(h.ec=W,h.is=U,h.ctp=gG(W),h))}}; kb=function(K){g.r$.call(this,K,"ytp-settings-menu");var W=this;this.bB=new g.Ff(this.D);this.wd=this.Kk=this.settingsButton=null;this.isInitialized=this.rY=!1;g.k(this,this.bB);this.hide();g.u5(this,this.bB);K.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(m){W.mG(m)}); this.S(K,"highlightSettingsMenu",function(){W.rY=!0;W.Kr()}); this.S(K,"openSettingsMenuItem",function(m){if(m&&(W.rY=!0,W.Kr(),m==="menu_item_video_quality_advanced")){var S;(S=W.Kk)==null||S.open()}}); K.L("html5_enable_voice_boost")&&(this.S(K,"onPlaybackAudioChange",this.s4),this.S(K,"videodatachange",this.s4));var U,h;((U=this.D.V())==null?0:(h=U.getWebPlayerContextConfig())==null?0:h.enableFullscreenComponentsFeature)&&this.S(this.element,"wheel",function(m){m.stopPropagation()})}; bRY=function(){var K=g.i5();return K?Ns("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(W){return AW(K,W)})||AW(K,"OMI/")&&!AW(K,"XiaoMi/")?!0:AW(K,"Presto")&&AW(K,"Linux")&&!AW(K,"X11")&&!AW(K,"Android")&&!AW(K,"Mobi"):!1}; s2Y=function(K){var W=K.api.getPlayerSize();return g.HB(K.api.V())&&W.width>=524}; RV=function(K){K.AK&&K.AK.CC()&&K.Lp()}; g.Ms=function(K,W){for(var U=1;U=0&&K.indexOf(W,U)==U}; u1=function(K){return K.D.V().experiments.Rk("enable_ads_control_flow_deterministic_id_generation")}; g.i5=function(){var K=g.qs.navigator;return K&&(K=K.userAgent)?K:""}; dv_=function(K,W,U){g.kK(function(){K.apply(W,U)})}; g.i1=function(K,W){return K.j?K.j.getResponseHeader(W):null}; zG=function(K){return K==null||typeof K==="string"?K:void 0}; g.Rv=function(K){var W=W===void 0?!1:W;return NX(AD(K,JIe),K,W,"Trusted Image URL")}; PX=function(K,W,U){var h=K.iZ;return yj(K,h,h[MX]|0,W,U,void 0===eO$?2:4,void 0,!1,!0)}; pr=function(K){K.D.cueVideoByPlayerVars({videoId:"empty_video"},2)}; Bt_=function(K,W,U){if(K.policy.Q7&&K.policy.X)return!(K.X===1||K.X===2||!K.policy.rS&&K.X===3&&U>=K.W);if(K.X===1||K.X===2)return!1;if(K.X!==0&&W===K.audioTrack){if(K.policy.X)return E4e(K.videoTrack,U)||E4e(K.videoTrack,U+1);K=ov(K.videoTrack);if(U>(K?K.kx:-1))return!1}return!0}; g.V=function(K,W){K.prototype=DvF(W.prototype);K.prototype.constructor=K;if(Zk)Zk(K,W);else for(var U in W)if(U!="prototype")if(Object.defineProperties){var h=Object.getOwnPropertyDescriptor(W,U);h&&Object.defineProperty(K,U,h)}else K[U]=W[U];K.j7=W.prototype}; b1=function(K,W,U){U=U===void 0?!1:U;g.p.call(this);this.element=K;this.j=W;this.Y=U;this.G={};this.W=null;this.U=new g.Te(this);this.N=this.X=null;g.k(this,this.U)}; HZL=function(K){for(var W=[],U=0;U19.2999?(K=U.FT,U=U.KA,U>= K&&(U=K*.75),W=(K-U)*.5,U=new TP(W,K,K-W-U,this)):U=null;break a;case "widevine":U=new wJ(W,this,K);break a;default:U=null}if(this.U=U)g.k(this,this.U),this.U.subscribe("rotated_need_key_info_ready",this.KH,this),this.U.subscribe("log_qoe",this.Jc,this);Jl(this.C.experiments);this.Jc({cks:this.j.getInfo()})}; OZC=function(K){return g.$U?"webkit"+K:K.toLowerCase()}; YU=function(K){return K.api.L("allow_autohide_on_paused_videos")?!(K.X&-129):!K.X}; g4C=function(K){K=K===void 0?function(){return{}}:K; Oo.Xl="av-js";cE.j=.01;cIC([function(W){var U=nm(),h={};h=(h.bin=U.X,h.type="error",h);U=aF(U.Lr);if(!gJ.N){var m=gJ,S=Fl.document,f=kU>=0?i_()-kU:-1,G=i_();m.j.UU==-1&&(f=G);var I=Dz(),d=nm(),J=aF(d.Lr),e=zP();try{if(e.length>0){var E=I.j;E&&(J.bs=[Hs(E),E.getHeight()]);var B=I.U;B&&(J.ps=[B.width,B.height]);Fl.screen&&(J.scs=[Fl.screen.width,Fl.screen.height])}else J.url=encodeURIComponent(Fl.location.href.substring(0,512)),S.referrer&&(J.referrer=encodeURIComponent(S.referrer.substring(0,512))); J.tt=f;J.pt=kU;J.bin=d.X;Fl.google_osd_load_pub_page_exp!==void 0&&(J.olpp=Fl.google_osd_load_pub_page_exp);J.deb=[1,m.j.JQ,m.j.Jw,m.j.iJ,m.j.UU,0,m.X.X,m.j.mD,m.j.LP,m.j.kB,m.j.Xhr,-1].join(";");J.tvt=n4R(m,G);I.X&&(J.inapp=1);if(Fl!==null&&Fl!=Fl.top){e.length>0&&(J.iframe_loc=encodeURIComponent(Fl.location.href.substring(0,512)));var D=I.Y;J.is=[Hs(D),D.getHeight()]}}catch(a){J.error=1}gJ.N=J}E=g.Ni(gJ.N);B=nm().j;Al(B.N,"prf")==1?(D=new R0,m=B.j,S=0,m.j>-1&&(S=m.N.j.now()-m.j),D=y_(D,1,Mi(m.W+ S),0),m=B.j,D=y_(D,5,PE(m.j>-1?m.X+1:m.X),0),D=y_(D,2,pm(B.X.j.N()),"0"),D=y_(D,3,pm(B.X.j.X()),"0"),B=y_(D,4,pm(B.X.j.j()),"0"),D={},B=(D.pf=g.o0(B.N()),D)):B={};g.Zc(E,B);g.Zc(W,h,U,E,K())}])}; FjC=function(K){this.offset=0;this.data=new DataView(new ArrayBuffer(K))}; b_=function(K){return/web/i.test(Cr(K))}; g.so=function(K,W){return K.indexOf(W)!=-1}; g.qi=function(K){var W=g.Xl.apply(1,arguments);if(W.length===0)return vE(K[0]);for(var U=K[0],h=0;hg.N$(WL$).length?null:Ab(W,function(U,h){h=h.toLowerCase().split("=");if(h.length!=2||Usp[h[0]]===void 0||!Usp[h[0]](h[1]))throw Error("Entry ("+h[0]+", "+h[1]+") is invalid.");U[h[0]]=h[1];return U},{})}catch(U){return null}}; jVz=function(K,W,U,h,m,S){function f(d){return Rp(W,d)} var G=h.Gt.inPlayerSlotId,I={layoutId:h.Gt.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",wk:"core"};U={slotId:G,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:new yW(f,K),slotFulfillmentTriggers:[new M$(f,G)],slotExpirationTriggers:[new PM(f,G),new pi(f,U)]};K=Object.assign({},I,{layoutExitNormalTriggers:[new op(f,K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],uZ:new Map,clientMetadata:new Zi([new bZ(h.Gt), new vM(h.adPlacementConfig),m]),t7:q$(S,U)(I),adLayoutLoggingData:h.Gt.adLayoutLoggingData});return Object.assign({},U,{clientMetadata:new Zi([new xx(K)])})}; Uf=function(K,W,U,h){Ci(K);var m=K.iZ,S=m[MX]|0;if(h==null)return gd(m,S,U),K;if(!Array.isArray(h))throw lZ();for(var f=h===Li?7:h[MX]|0,G=f,I=YK(f),d=I||Object.isFrozen(h),J=!0,e=!0,E=0;E>4)){var U;eA(49,W);if(U=W[t[8]][t[29]]||null)U=JW_[0](U),W[t[7]](t[29],U);var h=[W]}if(!(K<<2&4)){U=W[t[26]](t[22]);var m=0;U[0]||m++;for(var S={};m1&&!!U[1]);return h}; BGD=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;var h=U.interstitials.map(function(f){var G=g.P(f,eb$);if(G)return{is_yto_interstitial:!0,raw_player_response:G};if(f=g.P(f,EbC))return Object.assign({is_yto_interstitial:!0},nZ(f))}); h=g.z(h);for(var m=h.next();!m.done;m=h.next())switch(m=m.value,U.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":K.interstitials=K.interstitials.concat({time:0,playerVars:m,O0:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":K.interstitials=K.interstitials.concat({time:0x7ffffffffffff,playerVars:m,O0:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var S=Number(U.podConfig.timeToInsertAtMillis);K.interstitials=K.interstitials.concat({time:S,playerVars:m, O0:S===0?5:7})}}}; rr=function(K){var W=K;return function(){if(W){var U=W;W=null;U()}}}; g.Tk=function(K){return document.createTextNode(String(K))}; aZ=function(K){return K==="gelDebuggingEvent"}; g.wr=function(K,W,U){g.wr=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?DsC:Has;return g.wr.apply(null,arguments)}; YH=function(K,W){for(var U=K.search(QV),h=0,m,S=[];(m=$H(K,h,W,U))>=0;)S.push(K.substring(h,m)),h=Math.min(K.indexOf("&",m)+1||U,U);S.push(K.slice(h));return S.join("").replace(rWp,"$1")}; TGL=function(K){var W="true".toString(),U=[new Of];if(U.length===0)throw Error("");if(U.map(function(h){if(h instanceof Of)h=h.j;else throw Error("");return h}).every(function(h){return"data-loaded".indexOf(h)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); K.setAttribute("data-loaded",W)}; wBs=function(){this.j={};var K=f_();cF(this,K,document);var W=aPF();try{if("1"==W){for(var U=K.parent;U!=K.top;U=U.parent)cF(this,U,U.document);cF(this,K.top,K.top.document)}}catch(h){}}; Fz=function(K,W){var U=U===void 0?0:U;var h;return(h=n_(gr(K,W)))!=null?h:U}; $s2=function(K){return QVL[K]||""}; ue=function(K,W,U){if(Array.isArray(W))for(var h=0;hW&&(W=U.length);return 3997-W-K.N.length-1}; vF=function(K,W){g.y.call(this,{T:"div",Z:"ytp-promotooltip-wrapper",K:[{T:"div",Z:"ytp-promotooltip-container",K:[{T:"div",Z:"ytp-promotooltip-content",K:[{T:"div",Z:"ytp-promotooltip-title",bX:"{{title}}"},{T:"div",Z:"ytp-promotooltip-details",bX:"{{details}}"}]},{T:"div",Z:"ytp-promotooltip-buttons",K:[{T:"div",Z:"ytp-promotooltip-dismiss-button",bX:"{{dismissButtonText}}",B:{tabindex:"0"}},{T:"div",Z:"ytp-promotooltip-accept-button",bX:"{{acceptButtonText}}",B:{tabindex:"0","aria-haspopup":"true"}}]}]}, {T:"div",Z:"ytp-promotooltip-pointer"}]});var U=this;this.tooltipRenderer=K;this.D=W;this.j=this.sourceElement=null;this.title=this.yH("ytp-promotooltip-title");this.details=this.yH("ytp-promotooltip-details");this.acceptButton=this.yH("ytp-promotooltip-accept-button");this.dismissButton=this.yH("ytp-promotooltip-dismiss-button");this.X=this.W=!1;this.N=!0;this.J=this.U=this.Y=this.G=!1;this.xd={GV:function(h){U.GV(h)}}; this.J7(!1);K=this.tooltipRenderer.trackingParams||null;if(this.X=!!K)this.D.createServerVe(this.element,this,!0),this.D.setTrackingParams(this.element,K);this.S(W,"onShowControls",this.Ex);this.S(W,"onHideControls",this.sx);this.S(W,"resize",this.IW);this.S(this.acceptButton,"click",this.Nex);this.S(this.dismissButton,"click",this.F6x);this.S(document,"click",this.KE)}; FLp=function(K){return qh.includes("en")?K?xH():{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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"}}]}:K?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},K:[{T:"path",B:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; L_=function(K,W){if(C_(K,W))return le(K)}; Wj=function(K,W){W>>>=0;K>>>=0;if(W<=2097151)var U=""+(4294967296*W+K);else KW()?U=""+(BigInt(W)<>>24|W<<8)&16777215,W=W>>16&65535,K=(K&16777215)+U*6777216+W*6710656,U+=W*8147497,W*=2,K>=1E7&&(U+=K/1E7>>>0,K%=1E7),U>=1E7&&(W+=U/1E7>>>0,U%=1E7),U=W+ufD(U)+ufD(K));return U}; k2Y=function(K,W,U){if(W){var h=W.adLayoutLoggingData;g.UL(g.hN(),function(){K.X!=null&&h&&g.N_("adsSeenClientLogging",{serializedAdServingDataEntry:h.serializedAdServingDataEntry})},U!=null?U:0)}}; jo=function(K,W){W===K.MV&&(K.MV=void 0)}; my=function(K){return K}; tN=function(K,W){return new g.So(new fW(function(U,h){function m(){var S=K?W(K):null;S?S.then(function(f){K=f;m()},h):U()} m()}))}; Id=function(){G4.apply(this,arguments)}; d8=function(K,W){W&&$_D(K,W)}; g.JN=function(K){return{value:K,done:!1}}; ia$=function(K){for(var W=[],U=0;U=0;--m){var S=K[m];!U&&qZR.test(S.url)&&(U=S);if(S.url&&!S.j){W=S;break}}m=null;S=K.length&&K[h].url;W.depth!==0&&S&&(m=K[h]);return new xsL(W,m,U)}; g.T=function(K,W,U){K.j=U;return{value:W}}; lP2=function(K){var W=K.length;if(K[0]==="-"?W<20||W===20&&K<="-9223372036854775808":W<19||W===19&&K<="9223372036854775807")return K;E$(K);return P5s()}; WnY=function(K,W,U,h){var m={timeout:3E4,onSuccess:function(S){if(!K.qs()){XL("drm_net_r",void 0,K.timer);var f=S.status==="LICENSE_STATUS_OK"?0:9999,G=null;if(S.license)try{G=B1(S.license)}catch(D){g.wG(D)}if(f!==0||G){G=new LLC(f,G);f!==0&&S.reason&&(G.errorMessage=S.reason);if(S.authorizedFormats){f={};for(var I=[],d={},J=g.z(S.authorizedFormats),e=J.next();!e.done;e=J.next())if(e=e.value,e.trackType&&e.keyId){var E=KnR[e.trackType];if(E){E==="HD"&&S.isHd720&&(E="HD720");e.isHdr&&(E+="HDR");f[E]|| (I.push(E),f[E]=!0);var B=null;try{B=B1(e.keyId)}catch(D){g.wG(D)}B&&(d[g.o0(B,4)]=E)}}G.X=I;G.j=d}S.nextFairplayKeyId&&(G.nextFairplayKeyId=S.nextFairplayKeyId);S.sabrLicenseConstraint&&(G.sabrLicenseConstraint=B1(S.sabrLicenseConstraint));S=G}else S=null;if(S)K.onSuccess(S,K.requestNumber);else K.onError(K,"drm.net","t.p;p.i")}}, onError:function(S){if(!K.qs())if(S&&S.error)S=S.error,K.onError(K,"drm.net.badstatus","t.r;p.i;c."+S.code+";s."+S.status,S.code);else K.onError(K,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){K.onError(K,"drm.net","rt.req."+K.requestNumber)}}; h&&(m.cA="Bearer "+h);g.Ds(U,"player/get_drm_license",W,m)}; UXs=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; H1=function(K,W){this.X=K>>>0;this.j=W>>>0}; hqL=function(K,W,U,h,m){var S;W={reason:"overlapping_playbacks",ohm:W,Ua:U,W2:h,Kqk:m.Ze,FqU:((S=m.videoData)==null?void 0:S.videoId)||"",wvx:m.durationMs,s1k:m.Ua,E_V:m.W2};rB(K,W)}; g.aA=function(){return{innertubeApiKey:g.TA("INNERTUBE_API_KEY"),innertubeApiVersion:g.TA("INNERTUBE_API_VERSION"),VK:g.TA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),dO:g.TA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Fs:g.TA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.TA("INNERTUBE_CONTEXT_CLIENT_VERSION"),H7:g.TA("INNERTUBE_CONTEXT_HL"),Dq:g.TA("INNERTUBE_CONTEXT_GL"),Rf:g.TA("INNERTUBE_HOST_OVERRIDE")||"",P4:!!g.TA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),lAe:!!g.TA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.TA("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.Qq=function(K){return jvD(g.wB(K)[3]||null)}; O$=function(K,W,U,h,m){var S=K.iZ,f=S[MX]|0;h=WF(K,f)?1:h;m=!!m||h===3;h===2&&$r(K)&&(S=K.iZ,f=S[MX]|0);K=Yr(S,W);var G=K===Li?7:K[MX]|0,I=u3(G,f);var d=4&I?!1:!0;if(d){4&I&&(K=cX(K),G=0,I=nr(I,f),f=gd(S,f,W,K));for(var J=0,e=0;JK.policy.PB*1E3?(K.rk("ombttl",{}),!1):K.Gm.DE&&K.Gm.W||nB(W)!==0&&!K.policy.j||W.L("html5_disable_onesie_media_for_mosaic")&&gB(W)||W.L("html5_disable_onesie_media_for_lifa_eligible")&& F8(W)?!1:!0}; fkY=function(){zx();return SFz()}; uh=function(K,W){var U=W.kx;K.G="updateWithSegmentInfo";K.kx=U;if(K.startTime!==W.startTime||K.duration!==W.duration)K.startTime=W.startTime+0,K.duration=W.duration,t62(K)}; IkC=function(K,W,U,h){var m=this[kr],S=this[ih],f=zA(void 0,m.iS),G=vj(K);if(G){var I=!1,d=m.extensions;if(d){m=function(D,a,Q){if(Q.length!==0)if(d[a])for(D=g.z(Q),a=D.next();!a.done;a=D.next()){a=GGs(a.value);try{I=!0,S(f,a)}finally{a.free()}}else h==null||h(K,a,Q)}; if(W==null)qC(G,m);else if(G!=null){var J=G[W];J&&m(G,W,J)}if(I){var e=K[MX]|0;if(e&2&&e&2048&&(U==null||!U.nLK))throw Error();var E=NR(e),B=function(D,a){if(Vj(K,D,E)!=null)switch(U==null?void 0:U.T2k){case 1:return;default:throw Error();}a!=null&&(e=gd(K,e,D,a,E));delete G[D]}; W==null?bap(f,f[MX]|0,function(D,a){B(D,a)}):B(W,Vj(f,W,E))}}}}; dXD=function(K){var W,U,h,m,S=(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:(h=U.itemData)==null?void 0:(m=h.hiddenProductOptions)==null?void 0:m.dropTimestampMs;W=(Number(S)-Date.now())/1E3;K.countdownTimer.setContent(AG({seconds:W}));if(W>0){var f;(f=K.DO)==null||f.start()}}; var JDp=function(K){return Do[t[11]](this,12,K)}; Has=function(K,W,U){if(!K)throw Error();if(arguments.length>2){var h=Array.prototype.slice.call(arguments,2);return function(){var m=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(m,h);return K.apply(W,m)}}return function(){return K.apply(W,arguments)}}; oA=function(){var K=[new RA(Fl)],W=yq(MR);W.X=K;eqz(W,function(){P1("i")})?gJ.done||(EK2(),pB()):P1("i")}; BdR=function(K){var W=g.k4(K.U);g.tD(W,function(U){U.IA(K.W)})}; ak$=function(K,W,U,h,m,S,f,G,I,d,J,e,E){U=DXC(W,U,h,S,f,G,I,d,J,e,E);HrC(S)?(h=rDs(W,K),K=Zs(W.X.get(),"SLOT_TYPE_IN_PLAYER"),S=bh(W.X.get(),"LAYOUT_TYPE_SURVEY",K),G=s$(W,h,G),W=[].concat(g.z4(G.slotExpirationTriggers),[new Vq(W.j,S)]),K=U({slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:W,wk:G.wk},{slotId:K,layoutId:S}),m=K instanceof v?K:{sQ:Object.assign({}, G,{slotExpirationTriggers:W,clientMetadata:new Zi([new xx(K.layout)]),adSlotLoggingData:m}),A9:K.A9}):m=TdC(W,K,G,m,U);return m instanceof v?m:[].concat(g.z4(m.A9),[m.sQ])}; wXD=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; v1=function(K,W){var U=U===void 0?0:U;K=gr(K,W);K=K==null?K:X8(K)?K|0:void 0;return K!=null?K:U}; xr=function(K){this.iZ=qR(K)}; QvF=function(K){var W="Off 10 15 20 30 45 60".split(" "),U;((U=K.D.getVideoData())==null?0:U.isLivePlayback)||W.push("End of video");U=K.D.getPlaylist();var h;U&&((h=U.listId)==null?void 0:h.type)!=="RD"&&W.push("End of playlist");K.Wa(g.CB(W,K.ED));K.G=g.GG(W,K.ED,K);W=K.ED("End of video");K.options[W]&&g.lh(K.options[W],K.X)}; YFp=function(K,W){var U="";(W=$Xz(K,W))&&(U=W.getId());return U?K.j.Yv({cpn:U}):void 0}; cDY=function(K){var W=K.U,U=Ors(W);U&&(U.startSecs+=K.DA,K.loader.xA(K.Wp,U,W.Vn,W.oA()))}; LB=function(K,W,U){K.insertBefore(W,K.childNodes[U]||null)}; uW$=function(K,W,U,h,m){W=nK_(W,h);W!=null&&(U=gKR(K,U),m(W,K),Fns(K,U))}; kGL=function(K){if(K.playlist&&(g.EZ(K.C)||K.C.Ns==="background_audio_playback")&&K.tq()){var W=K.C.L("html5_player_autonav_logging");K.nextVideo(!1,W);return!0}return!1}; WT=function(K,W,U,h){K5("https://"+W+"/videoplayback?probe=1",U,function(m){!h.L("html5_onesie_host_racing")||h.videoData.isLivePlayback||h.L("html5_onesie_probe_ec_hosts")||h.I9||h.Mp();K.W.push(m)},function(m){K.W.push(m.details)})}; irp=function(){this.endTime=this.startTime=-1;this.N="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.X=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; Ndp=function(){var K=g.Uv();return K.v3(192)?K.v3(190):!(g.hc("web_watch_cinematics_disabled_by_default")||g.hc("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&zqY())}; Sr=function(K,W,U,h){return K.Xx.get().k5(jr(W))?[new mx(K.j,U)]:h}; AD2=function(K){if(K.nodeType==1)return fPD(K);K=K.changedTouches?K.changedTouches[0]:K;return new g.SA(K.clientX,K.clientY)}; GN=function(K){if(!f5(K.videoData))return NaN;var W=0;K.loader&&K.videoData.j&&(W=tc(K.videoData)?K.loader.KV.xv()||0:K.videoData.j.hK);return(0,g.AI)()/1E3-K.hv()-W}; RqC=function(K,W){W=String.fromCharCode.apply(null,W);return K==null?W:K+W}; IC=function(K){var W=K.layoutId,U=K.V9;if(K.wQ){var h={};na(K.i5,"slse",(h.ec=W,h.is=U,h.ctp=gG(W),h))}}; dh=function(K,W,U){K[W]=U.uI}; er=function(K,W,U,h){return y_(K,W,Jc(U),"",h)}; Ev=function(K,W,U){W=g.z(W);var h=W.next();yDR(h);if(h.done)K.X=h.value,K.j=U;else return K.W=W,g.T(K,h.value,U)}; M6p=function(K,W,U){this.j=K;this.slot=W;this.layout=U}; BT=function(K){this.D=K}; P1s=function(K){var W=Number(getComputedStyle(K.W).opacity),U;(U=K.N)==null||U.cancel();K.N=void 0;return W}; wh=function(K,W){W=W===void 0?!1:W;if(!K.mediaElement||!K.videoData.N)return!1;var U=W;U=U===void 0?!1:U;var h=null;var m;if((m=K.videoData.N)==null?0:m.j){h=pX$(K,U);var S;(S=K.loader)==null||S.resume()}else DF(K),K.videoData.hK&&(h=K.videoData.hK.xI());m=K.mediaElement.Mz();U=!1;m&&m.equals(h)||(oK_(K,h),U=!0);g.C(K.playerState,2)||(h=K.tS,W=W===void 0?!1:W,h.U||!(h.N>0)||h.mediaElement&&h.mediaElement.getCurrentTime()>0||(W={JS:"seektimeline_resumeTime",Xa:W},h.videoData.J||(W.seekSource=15),h.seekTo(h.N, W)));a:{W=U;if(HT(K.videoData)){if(!K.videoData.nC())break a}else if(!g.rh(K.videoData))break a;if(K.mediaElement)if((h=K.videoData.U)&&K.mediaElement.Ib()){m=K.mediaElement.H3();if(K.iB)if(m!==K.iB.element)TN(K);else if(W&&h.flavor==="fairplay"&&!aC())TN(K);else break a;if(K.L("html5_report_error_for_unsupported_tvos_widevine")&&aC()&&h.flavor==="widevine")K.jB("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{K.iB=new Q_(m,K.videoData,K.C,K.mediaElement);K.iB.subscribe("licenseerror", K.Kh,K);K.iB.subscribe("qualitychange",K.NvA,K);K.iB.subscribe("heartbeatparams",K.Ey,K);K.iB.subscribe("keystatuseschange",K.TZ,K);K.iB.subscribe("ctmp",K.rk,K);W=g.z(K.rz.keys);for(h=W.next();!h.done;h=W.next())h=K.rz.get(h.value),K.iB.Gi(h);K.L("html5_eme_loader_sync")||K.rz.removeAll()}}else K.jB("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return U}; g.$v=function(K,W){var U=K.style[Zrp(W)];return typeof U!=="undefined"?U:K.style[QT(K,W)]||""}; xX2=function(K,W){!W.info.Wp.LK()&&W.info.j===0&&(g.Yv(W.info.Wp.info)||W.info.Wp.info.yh())&&brD(W);if(W.info.type===1)try{svC(K,W),V6$(K,W)}catch(m){g.wG(m);var U=Ov(W.info);U.hms="1";K.loader.handleError("fmt.unparseable",U||{},1)}U=W.info.Wp;U.C0(W);K.G&&qF_(K.G,W);if(U.LC()&&K.policy.j)a:{K=K.loader.Gm;W=W.info.clipId;U=g.cT(U.info,K.mK);if(W){var h=n5({itag:U.itag,lmt:K.mK?0:U.lmt||0,xtags:U.xtags});if(K.JK[h])break a;K.JK[h]=W}K.Bp.push(U)}}; iH=function(K,W){W=W===void 0?NaN:W;W=W>=0?W:g.gh(K.provider);var U=K.provider.iX.o2(),h=U.Bv-(K.vp||0);h>0&&g.Fa(K,W,"bwm",[h,(U.U2-(K.Ny||0)).toFixed(3)]);isNaN(K.vp)&&U.Bv&&K.isOffline&&K.iq(!1);K.vp=U.Bv;K.Ny=U.U2;isNaN(U.bandwidthEstimate)||g.Fa(K,W,"bwe",[U.bandwidthEstimate.toFixed(0)]);K.provider.C.G9()&&Object.keys(U.j).length!==0&&K.rk("bwinfo",U.j);if(K.provider.C.G9()||K.provider.C.L("html5_log_meminfo"))h=C1s(),Object.values(h).some(function(S){return S!==void 0})&&K.rk("meminfo",h); if(K.provider.C.G9()){var m;(h=(m=K.Ik)==null?void 0:lkC(m))&&Object.values(h).some(function(S){return S!=null})&&K.rk("cpuinfo",h)}K.JK&&K.rk("jsprof",K.JK.flush()); K.jV&&g.Fa(K,W,"bat",[K.jV.level,K.jV.charging?"1":"0"]);m=K.provider.iX.getVisibilityState();K.Ea!==m&&(g.Fa(K,W,"vis",[m]),K.Ea=m);uH(K,W);(m=Ln_(K.provider))&&m!==K.oW&&(g.Fa(K,W,"conn",[m]),K.oW=m);kv(K,W,U)}; KOs=function(K,W,U,h){zN(K,Nr(W||g.Ac,U||null,h))}; g.RC=function(K){g.p.call(this);this.Yx=K;this.X=new WOD;this.N=null;this.U=[];this.J=[]}; g.yT=function(K,W){for(var U in K)if(K[U]==W)return!0;return!1}; UiY=function(){this.next=this.context=this.X=this.N=this.j=null;this.W=!1}; j0s=function(K,W,U,h,m){this.listener=K;this.proxy=null;this.src=W;this.type=U;this.capture=!!h;this.handler=m;this.key=++hYs;this.removed=this.fF=!1}; PT=function(K){(K=Mr(K.h7()))&&K.created&&K.destroy()}; p5=function(K,W,U){W==="data"?K.X.push(U):W==="metadata"?K.W.push(U):W==="status"?K.U.push(U):W==="end"?K.N.push(U):W==="error"&&K.j.push(U)}; ZF=function(K){g.y.call(this,{T:"div",Z:"ytp-spinner",K:[oC(),{T:"div",Z:"ytp-spinner-message",bX:"If playback doesn't begin shortly, try restarting your device."}]});this.api=K;this.message=this.yH("ytp-spinner-message");this.j=new g.QC(this.show,500,this);g.k(this,this.j);this.S(K,"presentingplayerstatechange",this.onStateChange);this.S(K,"playbackstalledatstart",this.X);this.Bl(K.getPlayerStateObject())}; bH=function(K){var W=K.getStatus();a:switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var U=!0;break a;default:U=!1}if(!U){if(W=W===0)K=g.wB(String(K.J))[1]||null,!K&&g.qs.self&&g.qs.self.location&&(K=g.qs.self.location.protocol.slice(0,-1)),W=!miz.test(K?K.toLowerCase():"");U=W}return U}; VT=function(K,W){K.X.add(W)}; Sop=function(K,W){Xa(K,1,W.type);vT(K,2,W.value)}; g.xv=function(K,W,U,h){W=qr(W);return W!==void 0?K.open(W,U,h):null}; fcR=function(K,W){cs(K.j);var U=K.j.W;if(U)return C5(K,"return"in U?U["return"]:function(h){return{value:h,done:!0}},W,K.j.return); K.j.return(W);return lH(K)}; tVD=function(K){this.iZ=qR(K)}; L5=function(K,W){W=new FpL(new uLC(W));Zk&&K.prototype&&Zk(W,K.prototype);return W}; GPD=function(K,W){K=K.player.V();if(KL(K)||T4(K)){K=g.TA("INNERTUBE_CONTEXT");var U,h;(K==null?0:(U=K.adSignalsInfo)==null?0:U.advertisingId)&&typeof(K==null?void 0:(h=K.adSignalsInfo)==null?void 0:h.limitAdTracking)!=="undefined"&&(W.advertisingId=K.adSignalsInfo.advertisingId,W.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",W.limitAdTracking=K.adSignalsInfo.limitAdTracking)}}; WJ=function(K){return K.PS?K.PS-(K.J||K.timestampOffset):0}; IcF=function(K){K&&UB&&hY()&&(UB.clearMarks("goog_"+K.label+"_"+K.uniqueId+"_start"),UB.clearMarks("goog_"+K.label+"_"+K.uniqueId+"_end"))}; g.jI=function(K){return dip(K.X)}; mr=function(K){for(var W=[],U=g.z(K.j.keys()),h=U.next();!h.done;h=U.next()){h=h.value;var m=K.j.get(h);W.push(h+"_"+m.maxWidth+"_"+m.maxHeight)}return W.join(".")}; Jl2=function(K){g.SI("yt-player-bandwidth",K,2592E3)}; tY=function(K){return K===void 0?K:Number(K)?fL(K,3):0}; eY_=function(){}; G_=function(K,W){return function(){var U=g.Xl.apply(0,arguments);if(K.j>-1)return W.apply(null,g.z4(U));try{return K.j=K.N.j.now(),W.apply(null,g.z4(U))}finally{K.W+=K.N.j.now()-K.j,K.j=-1,K.X+=1}}}; I$=function(K){if(K instanceof Ka)return K.j;throw Error("");}; HJ=function(K,W,U){U=U===void 0?!1:U;K.M5=dF(K.M5,W.video_id);K.bG=dF(K.bG,W.eventid);K.bG&&(JY=K.bG);for(var h=[],m=g.z(Object.keys(EUp)),S=m.next();!S.done;S=m.next()){S=EUp[S.value];var f=W[S];f!=null&&(f!==K.j[S]&&h.push(S),K.j[S]=f)}!U&&h.length>0&&K.Q7&&(h.sort(),g.eI(new g.EB("Player client parameters changed after startup",h)));K.userAge=BJ(K.userAge,W.user_age);K.N2=dF(K.N2,W.user_display_email);K.userDisplayImage=dF(K.userDisplayImage,W.user_display_image);g.Rv(K.userDisplayImage)||(K.userDisplayImage= "");K.userDisplayName=dF(K.userDisplayName,W.user_display_name);K.Sz=dF(K.Sz,W.user_gender);K.csiPageType=dF(K.csiPageType,W.csi_page_type);K.csiServiceName=dF(K.csiServiceName,W.csi_service_name);K.fK=DL(K.fK,W.enablecsi);K.pageId=dF(K.pageId,W.pageid);if(U=W.enabled_engage_types)K.enabledEngageTypes=new Set(U.split(","));W.living_room_session_po_token&&(K.u5=W.living_room_session_po_token.toString())}; rF=function(K){this.iZ=qR(K)}; Y6=function(K,W,U,h){W=W===void 0?{}:W;if(h===void 0?0:h)return W.disabled=1,0;if(T_(K.U,a$.AV1_CODECS)&&T_(K.U,a$.HEIGHT)&&T_(K.U,a$.BITRATE))return W.isCapabilityUsable=1,8192;try{var m=BJR();if(m&&!K.L("disable_av1_setting"))return W.localPref=m}catch(G){}h=1080;m=navigator.hardwareConcurrency;m<=2&&(h=480);W.coreCount=m;if(m=g.jV(K.experiments,"html5_default_av1_threshold"))h=W["default"]=m;if(K=K.U.uX)W.mcap=K,h=Math.max(h,K);if(U){var S,f;if(K=(S=U.videoInfos.find(function(G){return wF(G)}))== null?void 0:(f=S.X)==null?void 0:f.powerEfficient)h=8192,W.isEfficient=1; U=U.videoInfos[0].video;S=Math.min(Qn("1",U.fps),Qn("1",30));W.perfCap=S;h=Math.min(h,S);U.isHdr()&&!K&&(W.hdr=1,h*=.75)}else U=Qn("1",30),W.perfCap30=U,h=Math.min(h,U),U=Qn("1",60),W.perfCap60=U,h=Math.min(h,U);return W.av1Threshold=h}; cJ=function(K,W){if(K.policy.JK&&K.AK){var U,h,m=W?(U=K.AK)==null?void 0:U.j:(h=K.AK)==null?void 0:h.X;U=W?K.audioTrack:K.videoTrack;W=OB(U);if(W==null?0:W.isLocked){K.iX.V().G9()&&K.rk("eosl",{unlock:W.info.m6()});var S;(S=U.hK)==null||S.stop();W.isLocked=!1;U.qr(W);Dis(K.j,W.info);m=m==null?void 0:m.pX();(m==null?void 0:m.m6())!==W.info.m6()&&K.rk("oue",{bls:m==null?void 0:m.m6(),tls:W.info.m6()})}}}; FV=function(K){var W;if(!(W=!K.j)){W=K.j;var U=window.getComputedStyle(W);W=U.display==="none"||U.visibility==="hidden"||W.getAttribute("aria-hidden")==="true"}if(W||K.D.isMinimized())K.J7(!1);else if(W=g.nL(K.j),W.width&&W.height){K.D.KZ(K.element,K.j);var h=K.D.xx().getPlayerSize().height;U=g.nL(K.yH("ytp-promotooltip-container")).height;K.N?K.element.style.top=h-U-W.height-12+"px":K.Y||(h=K.D.Lv().height-U-W.height-12,K.element.style.top=h+"px");h=K.yH("ytp-promotooltip-pointer");var m=g.gF(K.j, K.D.getRootNode()),S=Number(K.element.style.left.replace(/[^\d\.]/g,""));K=K.D.isFullscreen()?18:12;h.style.left=m.x-S+W.width/2-K+"px";h.style.top=U+"px"}else K.J7(!1)}; uI=function(K){this.iZ=qR(K)}; iI=function(K,W){return k6(K,W)}; Hmp=function(K){if(!K)return null;switch(K.iconType){case "ACCOUNT_CIRCLE":return{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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 z_();case "HIDE":return{T:"svg",B:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"g",K:[{T:"path",B:{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 Nk()}}; AY=function(K,W,U){U=U===void 0?!1:U;var h=K.U();if(h){for(;K.W0&&(W.fexp=K.experimentIds.toString());K.Y!==null&&(W.rtn=K.X(K.Y));K.uq&&(W.feature=K.uq);K.Lf&&(W.ctrl=K.Lf);K.uT&&(W.ytr=K.uT);K.M5&&(W.afmt=K.M5);K.offlineDownloadUserChoice&&(W.ODUC=K.offlineDownloadUserChoice);K.Ms&&(W.lio=K.X(K.Ms)); K.U?(W.idpj=K.QA,W.ldpj=K.bG,K.delayThresholdMet&&(W.dtm="1"),K.jV!=null&&(W.rti=K.X(K.jV)),K.nF&&(W.ald=K.nF),K.compositeLiveIngestionOffsetToken&&(W.clio=K.compositeLiveIngestionOffsetToken)):K.adType!==void 0&&(W.at=K.adType);K.XI&&(K.N||K.U)&&(W.size=K.XI);K.N&&K.G.length&&(W.pbstyle=K.G.join(","));K.oW!=null&&(K.N||K.U)&&(W.inview=K.X(K.oW));K.U&&(W.volume=sB(K,g.CB(K.segments,function(h){return h.volume})),W.st=sB(K,g.CB(K.segments,function(h){return h.startTime})),W.et=sB(K,g.CB(K.segments, function(h){return h.endTime})),Ns(K.segments,function(h){return h.playbackRate!==1})&&(W.rate=sB(K,g.CB(K.segments,function(h){return h.playbackRate}))),Ns(K.segments,function(h){return h.j!=="-"})&&(W.als=g.CB(K.segments,function(h){return h.j}).join(",")),Ns(K.segments,function(h){return h.previouslyEnded})&&(W.pe=g.CB(K.segments,function(h){return""+ +h.previouslyEnded}).join(","))); W.muted=sB(K,g.CB(K.segments,function(h){return h.muted?1:0})); Ns(K.segments,function(h){return h.visibilityState!==0})&&(W.vis=sB(K,g.CB(K.segments,function(h){return h.visibilityState}))); Ns(K.segments,function(h){return h.connectionType!==0})&&(W.conn=sB(K,g.CB(K.segments,function(h){return h.connectionType}))); Ns(K.segments,function(h){return h.X!==0})&&(W.blo=sB(K,g.CB(K.segments,function(h){return h.X}))); Ns(K.segments,function(h){return!!h.W})&&(W.blo=g.CB(K.segments,function(h){return h.W}).join(",")); Ns(K.segments,function(h){return!!h.compositeLiveStatusToken})&&(W.cbs=g.CB(K.segments,function(h){return h.compositeLiveStatusToken}).join(",")); Ns(K.segments,function(h){return!!h.heartbeatLoggingToken})&&(W.hb_data=g.CB(K.segments,function(h){return h.heartbeatLoggingToken}).join(",")); Ns(K.segments,function(h){return h.N!=="-"})&&(W.cc=g.CB(K.segments,function(h){return h.N}).join(",")); Ns(K.segments,function(h){return h.clipId!=="-"})&&(W.clipid=g.CB(K.segments,function(h){return h.clipId}).join(",")); if(Ns(K.segments,function(h){return!!h.audioId})){var U="au"; K.N&&(U="au_d");W[U]=g.CB(K.segments,function(h){return h.audioId}).join(",")}Vn()&&K.uX&&(W.ctt=K.uX,W.cttype=K.Qg,W.mdx_environment=K.mdxEnvironment); K.qb&&(W.etype=K.Ns!==void 0?K.Ns:0);K.Ik&&(W.uoo=K.Ik);K.livingRoomAppMode&&K.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(W.clram=ul2[K.livingRoomAppMode]||K.livingRoomAppMode);K.W?kP$(K,W):(W.docid=K.videoId,W.referrer=K.referrer,W.ei=K.eventId,W.of=K.DY,W.osid=K.osid,W.vm=K.videoMetadata,K.adQueryId&&(W.aqi=K.adQueryId),K.autonav&&(W.autonav="1"),K.playlistId&&(W.list=K.playlistId),K.ws&&(W.ssrt="1"),K.Ju&&(W.upt=K.Ju));K.N&&(K.embedsRct&&(W.rct=K.embedsRct),K.embedsRctn&&(W.rctn= K.embedsRctn),K.compositeLiveIngestionOffsetToken&&(W.clio=K.compositeLiveIngestionOffsetToken));K.vp&&(W.host_cpn=K.vp);return W}; vJ=function(){eo.apply(this,arguments)}; im$=function(K){var W;if(K=(W=K.mediaElement)==null?void 0:W.audioTracks())for(W=0;WW.length)return!1;if(K.lengthm)return!1;if(h=5:K.isLowLatencyLiveStream&&K.j!=void 0&&YI(K.j)>=5}; Kmz=function(K){return g.C(K.iX.getPlayerState(),2)?0x8000000000000:K.iX.getCurrentTime()*1E3}; Wmp=function(){var K={};var W=K.url;var U=K.interval;K=K.retries;this.url=W;this.interval=U;this.retries=K}; U$p=function(K,W,U,h){var m=Fz(W,2)*1E3;if(m<=0)throw new cP(31,"TTM:Invalid");if(n6(W,4))return new gK(K.logger,n6(W,4),m);if(!Fz(W,3))return new Fc(K.logger,uQ(kI(W,1)),m);if(!h)throw new cP(4,"PMD:Undefined");h=h(uQ(kI(W,1)));if(!(h instanceof Function))throw new cP(16,"APF:Failed");K.G=Math.floor((Date.now()+m)/1E3);K=new iQ(K.logger,h,Fz(W,3),m);K.addOnDisposeCallback(function(){return void U.resolve()}); return K}; p6=function(){var K=zl()&&!MP(29),W=g.PP("google tv")&&g.PP("chrome")&&!MP(30);return K||W?!1:hWe()}; Z0=function(K){K.lO=Date.now();oL(K,K.Zg);K.timer.start()}; jpF=function(K,W,U,h,m,S){h.index&&(m.playlistIndex=String(Number(h.index)+1));m.videoId=U?U:"";W&&S.Rk("embeds_enable_per_video_embed_config")?m.serializedThirdPartyEmbedConfig=W:K&&(m.serializedThirdPartyEmbedConfig=K)}; m$p=function(K,W){var U=W.totalLength,h=!1;switch(K.N){case 0:K.Mq(W,K.W).then(function(m){var S=K.e_;S.qy("oprr");S.playerResponse=m;S.XN||(S.h_=!1);bQ(S)},function(m){K.e_.fail(m)}); break;case 2:K.qy("ormk");W=s1(W);K.queue.decrypt(W);break;default:h=!0}K.e_.d4&&K.e_.rk("ombup","id.11;pt."+K.N+";len."+U+(h?";ignored.1":""));K.N=null}; Xc=function(K,W){g.Vk("ytglobal.timing"+(W||"")+"ready_",K)}; vP=function(K,W){var U=0;K=g.z(K.X);for(var h=K.next();!h.done;h=K.next()){h=h.value;var m=h.Ua/1E3+U,S=m+h.durationMs/1E3;if(m>W)break;if(S>W)return{Go:h,PL:W-m};U=S-h.W2/1E3}return{Go:null,PL:W-U}}; fis=function(K,W){g.qP(K.X,W,function(U,h){return U.Ua===h.Ua?U.durationMs-h.durationMs:U.Ua-h.Ua}); K.N.set(W.cpn,W);W.Ze&&!K.U&&K.W.set(W.Ze,W);W.zS&&SwL(K,W.zS,W)}; C6=function(K,W,U){return U&2?!0:U&32&&!(U&4096)?(OF(W,U|2),K.j=xI,!0):!1}; tes=function(K){for(var W=Array(K.j),U=0;U(W==null?void 0:W.maxWidth)||(K==null?void 0:K.maxHeight)>(W==null?void 0:W.maxHeight)}; f_=function(K){return K?K.defaultView:window}; eG=function(K,W){g.C(K.playerState,128)||(K.uY(JL(K.playerState,1028,9)),K.rk("dompaused",{r:W}),K.publish("onAutoplayBlocked"))}; wMp=function(K){var W=K.policy.Ns,U=Ed(K.Ns)/W-B_(K,K.X.info);W=g.Du(K.W,function(h){return B_(this,h)=0)throw Error("Database name cannot contain ':'");}; kxL=function(K){var W=K.offsetWidth,U=K.offsetHeight,h=g.$U&&!W&&!U;return(W===void 0||h)&&K.getBoundingClientRect?(K=uU(K),new g.rt(K.right-K.left,K.bottom-K.top)):new g.rt(W,U)}; iU=function(){kf.apply(this,arguments)}; Ov=function(K){var W={};W.itag=K.Wp.info.itag;W.type=""+K.type;W.src=""+K.source;W.segsrc=K.G;W.seg=String(K.kx);K.range&&(W.range=K.range.start+K.j+"-"+(K.range.start+K.j+K.X-1));W.time=K.W.toFixed(1)+"-"+(K.W+K.Y).toFixed(1);W.off=String(K.j);W.len=String(K.X);K.N&&(W.end="1");K.xM()&&(W.eos="1");K.clipId&&(W.cid=K.clipId);return W}; zR=function(){this.currentState=1;this.j="unknown"}; AL=function(K){var W=this;this.j={};this.N={};this.xd={uOx:function(){return W.j}}; this.videoData=K;var U,h=(U=K.N)==null?void 0:U.X;h&&h.length>0?this.X=h:(K=K.getAvailableAudioTracks(),this.X=K.length>0?iis(K):[]);K=g.z(N2);for(U=K.next();!U.done;U=K.next())U=U.value,this.j[U]=zWz[U](this.X);this.s4()}; M2=function(K,W){Rg(12,W.j)||(K.T9=W,K.X=0,g.yG(K.delay))}; RW$=function(K){if(K.isExternallyHostedPodcast&&K.qI){var W=P_(K.qI);if(!W[0])return pC();K.EU=W[0];return Nz$(K.Tm,W[0]).then(function(U){og(K,U)})}return K.u5&&K.Gb?Abp(K.Tm,K.isAd(),K.u5).then(function(U){og(K,U)}):pC()}; jr=function(K){return K.kind==="AD_PLACEMENT_KIND_START"}; ybY=function(K){return new Zu(Object.assign({},K,{vY:function(W){K.xm.get().V7("onAdIntroStateChange",W)}}))}; nK_=function(K,W){if(K instanceof bU)return K.iZ;if(Array.isArray(K))return zA(K,W)}; sd=function(K){var W,U,h;return K.playerResponse&&K.playerResponse.paidContentOverlay&&K.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.P((W=K.Ns)==null?void 0:(U=W.playerOverlays)==null?void 0:(h=U.playerOverlayRenderer)==null?void 0:h.playerDisclosure,Mep)||null}; VG=function(K){this.value=K}; PZL=function(K){K.length===1||g.X9(K,function(U){return!!U.range}); for(var W=1;W=G&&U=0;W--)delete K[W];K.length=0}; dhs=function(K){K.X=!0;return K}; g.eF=function(K,W){this.j=K[g.qs.Symbol.iterator]();this.X=W}; E0=function(){this.X=this.N=this.W=this.j=0}; g.Br=function(K,W){W=IV(K,W);W>=0&&g.wd(K,W)}; eA=function(K,W){if((K+7&44)=K){eA(55,W);var U=W[t[20]]}if((K+4&7)>=2&&(K^54)<9&&W[t[5]]){var h=D6(88,W);W=h[0]}if((K|24)==K)a:{h=W[t[26]](t[3]);var m=[-2044037833,-19487984,oxL,null,lHL,57276729,675982131,-977736907,-45498273,-1695274354,50051010,Jy_,-2001112242,t[69],2051034183,-1935767679,1846288351,h,-1160685540,eRs,EHL,1564214609,-2140773782,-745871879,814878508,-1306646552,-188224226,t[19],-1709534709,BrL,-1855786533,-1052870559,-1229143520,749803101,-745871879,Dhs,1998139197,h, 2065486183,-933469389,H_p,t[72],-181497758,null,-477457485,-456490707,457182039,1185216539,2130505135,HiY,function(f,G,I){var d=f[t[4]];G[t[58]](function(J,e,E){this[t[27]](E[e]=f[(f[t[18]](J)-f[t[18]](this[e])+e+d--)%f[t[4]]])},I[t[26]](t[3]))}, 107711494,35609374,661440217,-557337738,-197956537,ry2,-137345433,-1864803853,t[53],TrY,aop,1904861518,1256295103,zDs,-1261844680,JDp,function(f,G){G=(G%f[t[4]]+f[t[4]])%f[t[4]];f[t[35]](-G)[t[36]]()[t[58]](function(I){f[t[78]](I)})}, wFs,h,-2067887682,-1401990507,1514300263,-1828268119,1267211243,837217772,-1894156432,-1156822852,573719083,null,-1575353112,-1261844680,-1376143298,N$Y,QZL];m[3]=m;m[43]=m;m[79]=m;if(typeof $hL===t[21])U=W;else{try{var S=D6(67,m);m=S[0]}catch(f){U=t[65]+W;break a}U=h[t[9]](t[3])}}return U}; vj=function(K){var W=Hr(r0);return W?K[W]:void 0}; YfF=function(){this.X=this.j=""}; g.JW=function(){var K=this;this.promise=new Promise(function(W,U){K.resolve=W;K.reject=U})}; O_$=function(K){K.Zg=K.Kp();K.HF(K.Zg/1E3,!0);oL(K,K.Zg)}; cys=function(){}; nHs=function(K){var W=null;K.j!=null&&(W=[K.j.serviceEndpoint,K.j.navigationEndpoint].filter(function(U){return U!=null}),K.j.command&&(W=W.concat(K.j.command))); return W||[]}; wK=function(K){this.U=!1;this.j=K;this.W=function(){}}; gHR=function(){return new Promise(function(K){var W=window;W.ntpevasrs!==void 0?K(new T1(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(U){K(new T1(U))}))})}; FiC=function(K){this.end=this.start=K}; uzs=function(K){return K.D.V().experiments.Rk("enable_desktop_discovery_video_abandon_pings")||KL(K.D.V())}; var ry2=function(K,W){return D6[t[11]](this,8,K,W)}; aP=function(K){Rd(K);var W=ys(Number(K));if(MC(W))return String(W);W=K.indexOf(".");W!==-1&&(K=K.substring(0,W));return lP2(K)}; i_e=function(K,W){var U=K.j;U=U.j?U.j.Nk:null;if(K.policy.eV&&U)return U.startSecs+U.k$+15;W=w0(K.loader,W);K.policy.DO>0&&(U=((0,g.AI)()-K.loader.c7)/1E3,W=Math.min(W,K.policy.DO+K.policy.N$*U));W=K.loader.getCurrentTime()+W;return K.policy.Qj&&(U=kkY(K.loader)+K.policy.Qj,U.5}; O0=function(K,W){g.y.call(this,{T:"div",Hp:["ytp-overlay","ytp-speedmaster-overlay"],K:[{T:"div",Z:"ytp-speedmaster-user-edu",K:[{T:"div",Z:"ytp-speedmaster-label",bX:W},{T:"div",Z:"ytp-speedmaster-icon",bX:"{{icon}}"}]}]});this.D=K;this.j=this.yH("ytp-speedmaster-user-edu");this.updateValue("icon",UvC());g.$C(this.j,"ytp-speedmaster-has-icon");this.D.createClientVe(this.j,this,173040,!0);this.Dc()}; Ays=function(K){for(var W in K.j)Wh(K.j[W].info.mimeType)||NrL(K.j[W].index,Infinity)}; yys=function(K){K=RR$(K);return cr(K)}; MAD=function(K){if(K.iX.getVideoData().isLivePlayback)return!1;var W=K.iX.lY();if(!W)return!1;W=W.getDuration();if(K.AK&&K.AK.j&&K.AK.X){var U=K.getCurrentTime(),h=K.AK.j.Nb();K=K.AK.X.Nb();h=h?n7(h,U):U;U=K?n7(K,U):U;U=Math.min(h,U);W=isNaN(U)?!1:U>=W-.01}else W=!1;return W}; PeD=function(K,W,U,h,m,S,f){g.g0.call(this,W,U,{id:K,namespace:"ad",priority:m,visible:h,associatedClipId:S,markerPositionMs:f})}; pFF=function(K,W){K.attestationResponse&&FR(K).then(function(U){U=U||{};U.method="POST";U.postParams={atr:K.attestationResponse};K.hK?K.eV?uE().sendAndWrite(W,U):uE().sendThenWrite(W,U):g.ka(W,U)})}; Z_2=function(){switch(oHs()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; jG=function(K){if(typeof K==="function")return K;K[iE]||(K[iE]=function(W){return K.handleEvent(W)}); return K[iE]}; z1=function(K){this.X=K}; b_2=function(){return g.vB("yt.ads.biscotti.lastId_")||""}; sZs=function(){this.N=!1}; Nj=function(K){return K.substr(0,K.indexOf(":"))||K}; RP=function(K,W,U,h,m){var S=U.rR,f,G;K[W]=function(I,d,J){return S(I,d,J,G||(G=E1(kr,AO,RP,h).iS),f||(f=yY(h)),m)}}; XFR=function(K,W,U){if(K.j){var h=Mj(YH(W,"key"))||"/UNKNOWN_PATH";K.j.start(h)}K=U;g.hc("wug_networking_gzip_request")&&(K=VAp(U));return new window.Request(W,K)}; vHe=function(K,W){if(!K.Uz)return!1;var U=K.Uz.startTimeMs*.001-1,h=K.Uz.endTimeMs*.001;K.Uz.type==="repeatChapter"&&h--;return Math.abs(W-U)<=1E-6||Math.abs(W-h)<=1E-6||W>=U&&W<=h}; qfp=function(K){var W,U;K=(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:U.itemData;var h,m,S;return(K==null||!K.affiliateDisclaimer)&&(K==null?0:(h=K.exclusivesData)==null?0:h.exclusiveOfferLabelText)&&(K==null?0:(m=K.exclusivesData)==null?0:m.expirationTimestampMs)&&(K==null?0:(S=K.exclusivesData)==null?0:S.exclusiveOfferCountdownText)?!0:!1}; g.p7=function(K){if(K.simpleText)return K=document.createTextNode(K.simpleText),K;var W=[];if(K.runs)for(var U=0;U>>0;u0=W>>>0}else nX(K)}; d$=function(K,W,U,h,m){m=m===void 0?null:m;this.N=K;this.zm=W;this.layoutId=h;this.W=0;this.G=null;this.U=void 0;this.j=new Set;this.X=Array.from(this.N.get("progress")||[]);this.X.sort(function(S,f){return(S.offsetMilliseconds||0)-(f.offsetMilliseconds||0)}); this.Y={adPlacementConfig:U,Fe:m}}; zo=function(K,W,U){W=W==null||typeof W==="number"?W:W==="NaN"||W==="Infinity"||W==="-Infinity"?Number(W):void 0;W!=null&&(kE(K,U,1),K=K.j,U=JNs||(JNs=new DataView(new ArrayBuffer(8))),U.setFloat64(0,+W,!0),FJ=U.getUint32(0,!0),u0=U.getUint32(4,!0),i0(K,FJ),i0(K,u0))}; var aop=function(K,W){return D6[t[11]](this,49,K,W)}; R1=function(K,W){for(var U=[],h=g.z(K.Lg.values()),m=h.next();!m.done;m=h.next()){m=m.value;var S=m.trigger;S instanceof Nq&&S.triggeringLayoutId===W&&U.push(m)}U.length?A6(K.A5(),U):UF("Survey is submitted but no registered triggers can be activated.")}; Mq=function(K){var W=":"+(y6.getInstance().j++).toString(36);return K+W}; g.Pa=function(K){window.clearInterval(K)}; pX=function(){this.Y=!1;this.W=null;this.X=void 0;this.j=1;this.U=this.G=0;this.jV=this.N=null}; o1=function(K,W,U){for(var h=K.AO[U],m=U<<1;m<=K.G_;){m0&&K.length;)U.push(K.shift()),W--;K.length&&U.push(K.join(":"));return U}; tc=function(K){return!(!K.j||!K.j.isManifestless)}; OWR=function(K){g.tD(K.j,function(W){W.X=0})}; g.Ih=function(K,W,U,h){h=h===void 0?!1:h;g.GW.call(this,W);var m=this;this.D=K;this.Ms=h;this.U=new g.Te(this);this.fade=new g.Wr(this,U,!0,void 0,void 0,function(){m.HI()}); g.k(this,this.U);g.k(this,this.fade)}; dv=function(K,W){var U=U===void 0?0:U;var h=h===void 0?!0:h;kx(W,function(m,S){h&&m===void 0||K.add(S,m,U)}); return K}; cNe=function(K){var W=K.api.getRootNode();if(g.C(K.api.getPlayerStateObject(),256)||g.C(K.api.getPlayerStateObject(),32)||g.C(K.api.getPlayerStateObject(),16))var U=K.Y;else if(K.eV&&K.api.getPlayerStateObject().isPaused()){var h;U=(((h=K.U)==null?void 0:h.element.clientWidth)||0)*.5625/3*K.Le||K.Ns}else U=K.Ns;K.Y=U;W.style.setProperty("--ytp-grid-peek-height",K.Y+"px");g.JM(W,"ytp-disable-bottom-gradient",K.Y<=12&&K.G===0)}; Wa=function(K,W,U){g.p.call(this);this.D=K;this.Xx=W;this.zm=U;this.listeners=[];this.W=!1;this.us=[];this.j=null;this.U=new eD(this,nw$(W.get()));this.N=new gwp;this.X=null}; uDs=function(K,W,U){U=U===void 0?!0:U;K.N=K.W.animate([{offset:0,opacity:W===void 0?1:W},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});U&&(K.N.addEventListener("finish",function(){K.N=void 0;FyL(K);K.hide()}),K.j="fading-out")}; mT=function(K){this.Av=K}; ED=function(){return yV("iPhone")&&!yV("iPod")&&!yV("iPad")}; HI=function(K){this.j=K}; k4C=function(K){var W;(W=K.D.getVideoData(1))!=null&&W.J&&(K.X=!1,W={},K.j&&K.videoId&&(W.cttAuthInfo={token:K.j,videoId:K.videoId}),BN("video_to_ad",W))}; iWp=function(K){var W=new fm;qC(K,function(U,h,m){W[h]=cX(m)}); W.X_=K.X_;return W}; z$p=function(K){var W=K.j[K.j.length-1];if(W){g.Dl(K.element,K.maxWidth||"100%",K.maxHeight||"100%");g.Zd(W.element,"width","");g.Zd(W.element,"height","");g.Zd(W.element,"maxWidth","100%");g.Zd(W.element,"maxHeight","100%");g.Zd(W.content.element,"height","");var U=g.nL(W.element);U.width+=1;U.height+=1;g.Zd(W.element,"width",U.width+"px");g.Zd(W.element,"height",U.height+"px");g.Zd(W.element,"maxWidth","");g.Zd(W.element,"maxHeight","");var h=0;W.n2&&(h=g.nL(W.yH("ytp-panel-header")).height);var m= 0;W.H4&&(m=W.yH("ytp-panel-footer"),g.Zd(m,"width",U.width+"px"),m=g.nL(m).height);g.Zd(W.content.element,"height",U.height-h-m+"px");W.element instanceof HTMLElement&&(h=W.element,m=h.scrollWidth-h.clientWidth,h.offsetWidth-h.clientWidth>0&&m>0&&(U.width+=m,g.Zd(W.element,"width",U.width+"px")));K.size=U}}; HN=function(K){K.zRx=!0;return K}; N8s=function(){var K=dJ();if(K){var W=K.isTypeSupported;return function(h,m){return W(m,h)}}var U=rv(); return U&&(U.addKey||U.webkitAddKey)?function(h,m){return!!U.canPlayType(h,m)}:function(){return!1}}; TW=function(K,W){if(!K.X){if(K.N)try{return K.N(W)}catch(S){g.eI(S)}return""}try{K.aW.XK(K.j?"pot_cms":"pot_csms");var U={jO:!0,MQ:!0,vM:W};K.L("html5_web_po_token_disable_caching")||(U.yd={mT:W,oz:!0,Sn:!0});var h=K.X.jm(U);K.aW.XK(K.j?"pot_cmf":"pot_csmf");if(K.j){var m;(m=K.W)==null||m.resolve();K.W=null;K.G&&(K.G=!1,K.api.app.E5().WD(!1))}return h}catch(S){return g.eI(S),""}}; ah=function(K){var W=K.D.getRootNode();return K.D.L("web_watch_pip")||K.D.L("web_shorts_pip")?ty(W):document}; NR=function(K){return K&128?Ud:void 0}; QX=function(K){this.j=K;this.X=null;this.U=this.N=0;this.jV=!1;this.W=this.Y=this.G=null;this.J=new g.wv(this);this.J.listen(this.j,"readystatechange",this.Ms)}; pi=function(K,W,U){this.j=W;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=U||K(this.triggerType)}; R$2=function(K){var W=g.z(AN2(K,$2));K=W.next().value;W=W.next().value;return K.toString(16)+W.toString(16)}; k2=function(K,W,U){U=U===void 0?K.V().schedule:U;g.p.call(this);var h=this;this.iX=K;this.playerRequest=W;this.dH=U;this.logger=new g.io("onesie");this.xhr=null;this.state=1;this.Jf=new Y2;this.m7=!1;this.playerResponse="";this.I5=new OD(this);this.eD=new cN(this);this.J8="";this.I9=this.x6=!1;this.TW="";this.enableCompression=this.XN=this.dI=!1;this.CG=[];this.Vn=-1;this.K3=0;this.C=this.iX.V();this.videoData=this.iX.getVideoData();this.d4=this.C.G9();this.Tt=this.C.Ez;this.Zj=new nG(this.Tt.j); this.O$=this.C.L("html5_onesie_check_timeout");this.AY=new g.QC(this.yf,500,this);this.Y9=new g.QC(this.Mp,1E4,this);this.lN=new g.QC(function(){if(!h.isComplete()){var m=gv(h);h.fail(new g.F3("net.timeout",m))}},1E3); this.Mj=new g.QC(this.FKk,2E3,this);this.rI=this.iX.Rq();this.h_=this.L("html5_onesie_wait_for_media_availability");g.k(this.videoData,this);g.k(this,this.AY);g.k(this,this.Y9);g.k(this,this.Mj);K=p6();up&&K&&(this.T5=new Map);this.Lm=new Map;this.NQ=new Map;this.sf=new Map;this.Iv=new Map}; M1=function(K,W,U,h,m,S,f,G){var I,d,J,e,E,B;return g.r(function(D){switch(D.j){case 1:return I=g.xf(K),I===4?D.return(4):g.T(D,g.ip(),2);case 2:d=D.X;if(!d)throw g.zW("wiac");if(!G||f===void 0){D.O5(3);break}return g.T(D,yNp(G,f),4);case 4:f=D.X;case 3:return J=U.lastModified||"0",g.T(D,g.N1(d),5);case 5:return e=D.X,g.Bj(D,6),AM++,g.T(D,g.b5(e,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",e0:!0},function(a){if(S!==void 0&&f!==void 0){var Q=""+K+"|"+W.id+"|"+J+"|"+String(S).padStart(10, "0");Q=g.Rh(a.objectStore("media"),f,Q)}else Q=g.So.resolve(void 0);var u=MoD(K,W.ZE()),O=MoD(K,!W.ZE()),N={fmts:PoL(h),format:U||{}};u=g.Rh(a.objectStore("index"),N,u);var A=h.downloadedEndTime===-1;N=A?a.objectStore("index").get(O):g.So.resolve(void 0);var Z={fmts:"music",format:{}};a=A&&m&&!W.ZE()?g.Rh(a.objectStore("index"),Z,O):g.So.resolve(void 0);return g.So.all([a,N,Q,u]).then(function(x){x=g.z(x);x.next();x=x.next().value;AM--;var b=g.xf(K);if(b!==4&&A&&m||x!==void 0&&g.pjs(x.fmts))b=1,g.yX(K, b);return b})}),8); case 8:return D.return(D.X);case 6:E=g.SV(D);AM--;B=g.xf(K);if(B===4)return D.return(B);g.yX(K,4);throw E;}})}; owC=function(K,W,U){if(!K.isSeeking())return-1;U=(U?K.videoTrack:K.audioTrack).Wp.index;var h=U.IQ(K.targetTime);return(U.v0(K.Gm.DE)||W.kx===K.Gm.DE)&&h0?" "+h:h;g.pG(K,W)}}; ZWp=function(K,W){W&&W.screen&&(K.W=new g.rt(W.screen.width,W.screen.height))}; bWs=function(K,W){K.sj("dataloaded",W,W.getVideoData());K.seekTo(Infinity);K.playVideo()}; sdF=function(K){for(var W=0,U=0;U=m.timeRangeStartMillis&&W/g,">").replace(/"/g,""").replace(/'/g,"'");return cr(K)}; tB$=function(K){return Array.isArray(K)?K[0]instanceof IH?K:[fsY,K]:[K,void 0]}; GAp=function(K,W){if(K.B2){if(W.getName()===K.B2.getName())return;K.B2.dispose();K.B2=null}W=W.create(K.Zf.j,K.Lr,K.eI());if(W=W!=null&&W.observe()?W:null)K.B2=W}; Is$=function(K,W){return(w0(K,W)+K.policy.XC)*W.j0}; dn=function(){this.X=this.j=null}; dRC=function(K){var W,U,h=K.length,m=0;for(W=0;W>>6:(S<65536?G[U++]=224|S>>>12:(G[U++]=240|S>>>18,G[U++]=128|S>>>12&63),G[U++]=128|S>>> 6&63),G[U++]=128|S&63);return G}; JGs=function(K){this.iZ=qR(K)}; By=function(K){for(var W=e8(K,!0),U=Ej(K),h=1;h0}; h7=function(K){return K=="\r"||K=="\n"||K==" "||K=="\t"}; yG2=function(K){var W={cpn:K.clientPlaybackNonce,c:K.Tm.j.c,cver:K.Tm.j.cver};K.b7&&(W.ptk=K.b7,W.oid=K.yy,W.ptchn=K.Nj,W.pltype=K.W5,K.tP&&(W.m=K.tP));return W}; jS=function(){return g.TA("EXPERIMENTS_TOKEN","")}; m9=function(K){return K.currentTime+K.timestampOffset}; xvp=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);K.addEventListener("settingsMenuInitialized",function(){var U=new SS(W.api,W.api.Es());g.k(W,U)})}; fS=function(K,W){g.p.call(this);var U=this;this.policy=K;this.Ce=W;this.X=0;this.j=null;this.s_=[];this.N=null;this.xd={GR:function(){return U.Ce}}; this.Ce.length===1||g.X9(this.Ce,function(h){return!!h.range})}; t7=function(K,W,U){for(;K;K=K.parentNode)if(K.attributes&&(!U||K.nodeName===U)){var h=K.getAttribute(W);if(h)return h}return""}; g.G7=function(K){return!!K.j&&MBY(K.j)}; J7=function(K,W,U,h){if(Iy.length){var m=Iy.pop();m.init(K,W,U,h);K=m}else K=new dc(K,W,U,h);this.j=K;this.W=this.j.j;this.X=this.N=-1;PhC(this,h)}; eS=function(K,W,U,h){if(K.C.L("html5_ssdai_log_ssevt_in_loader")||K.C.L("html5_ssdai_log_ssevt_in_loader_200ms")||K.C.L("html5_ssdai_log_ssevt_in_loader_timers")||K.C.L("html5_ssdai_log_ssevt_in_loader_cuerange"))h=K.Ms?0:Math.round((h-U)*1E3),K.playback.rk("ssevt",{tag:"sstme",ad:W!==K.playback.fC(),cpn:W,st:(U-K.playback.RN()).toFixed(3),late:h})}; E2=function(K,W,U,h){var m=K.W.K7();m.ssr_sk=(W*1E3).toFixed(0);m.ssr_t=(K.j*1E3).toFixed(0);m.ssr_r=U;m.ssr_st=(K.startTimeSecs*1E3).toFixed(0);m.ssr_n=(0,g.AI)().toFixed(0);m.ssr_f=(K.Y.j*1E3).toFixed(0);m.ssr_fa=K.N?"1":"0";m.ssr_o=(K.OD.xv()*1E3||0).toFixed(0);m.ssr_v=(h*1E3).toFixed(0);W=K.X.Wp.index;W.v0(K.X.kx,!0)&&(m.ssr_ist=(W.getStartTime(K.X.kx)*1E3).toFixed(0),m.ssr_id=(W.getDuration(K.X.kx)*1E3).toFixed(0));K.loader.rk("ssr",m)}; BY=function(K,W){K.mf[K.pending++]=W}; DW=function(K){return K.isLive&&(0,g.AI)()-K.Le>=K.uX}; p1_=function(K){K.j===-1&&(K.j=K.data.reduce(function(W,U,h){return W+(U?Math.pow(2,h):0)},0)); return K.j}; or$=function(K,W){K.T9&&K.T9.equals(W)||(K.T9&&K.T9.dispose(),K.T9=W)}; HY=function(K,W){W=g.z(W.j);for(var U=W.next();!U.done;U=W.next())K.append(U.value)}; g.rc=function(K){return(new ZBC).ri(K)}; bBs=function(K){UF("getExitReason: unexpected reason",void 0,void 0,{reason:K})}; g.yG=function(K,W){K.isActive()||K.start(W)}; P5s=function(){var K=FJ,W=u0;W&2147483648?KW()?K=""+(BigInt(W|0)<>>0)):(W=g.z(gl(K,W)),K=W.next().value,W=W.next().value,K="-"+Wj(K,W)):K=Wj(K,W);return K}; g.T7=function(K,W){if(W){W=Number(W);if(isNaN(W)||W<0)throw Error("Bad port number "+W);K.N=W}else K.N=null}; FpL=function(K){this.next=function(W){cs(K.j);K.j.W?W=C5(K,K.j.W.next,W,K.j.J):(K.j.J(W),W=lH(K));return W}; this.throw=function(W){cs(K.j);K.j.W?W=C5(K,K.j.W["throw"],W,K.j.J):(ay(K.j,W),W=lH(K));return W}; this.return=function(W){return fcR(K,W)}; this[Symbol.iterator]=function(){return this}}; $Q=function(K,W){if(typeof K==="string")return new wc(sAz(K),W);if(Array.isArray(K))return new wc(new Uint8Array(K),W);if(K.constructor===Uint8Array)return new wc(K,!1);if(K.constructor===ArrayBuffer)return K=new Uint8Array(K),new wc(K,!1);if(K.constructor===Qr)return W=fB(K)||new Uint8Array(0),new wc(W,!0,K);if(K instanceof Uint8Array)return K=K.constructor===Uint8Array?K:new Uint8Array(K.buffer,K.byteOffset,K.byteLength),new wc(K,!1);throw Error();}; q$C=function(K){if(!K.isInitialized){K.isInitialized=!0;try{var W=i_(),U=nm(),h=Dz();kU=W;U.N=79463069;K.X!=="o"&&(Cep=VBC(Fl));if(X1_()){gJ.j.Jw=0;gJ.j.UU=i_()-W;var m=vrp(),S=yq(MR);S.X=m;eqz(S,function(){oA()})?gJ.done||(EK2(),YQ(S.j.j,K),pB()):h.N?oA():pB()}else O2=!0}catch(f){throw cY.reset(),f; }}}; nS=function(K,W){var U={};g.y.call(this,{T:"button",Hp:["ytp-playlist-menu-button","ytp-button"],B:(U.title=K.L("player_tooltip_data_title_killswitch")?"{{title}}":"",U["data-tooltip-title"]="{{tooltip-title}}",U["aria-owns"]=String(W.element.id),U["aria-haspopup"]="true",U["aria-label"]="Playlist",U["data-overlay-order"]="3",U),K:[{T:"div",Z:"ytp-playlist-menu-button-icon",K:[{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z", fill:"#fff"}}]}]},{T:"div",Z:"ytp-playlist-menu-button-title",bX:"{{playlistTitle}}"},{T:"div",Z:"ytp-playlist-menu-button-text",bX:"{{text}}"}]});var h=this;this.api=K;this.playlist=null;this.visible=!1;K.createClientVe(this.element,this,70344);this.S(K,"videodatachange",this.j);this.S(K,"videoplayerreset",this.j);this.S(K,"onPlaylistUpdate",this.j);this.S(K,"presentingplayerstatechange",this.SV);this.S(K,"appresize",this.SV);this.hide();this.j();Yb(K,this.element,this);this.listen("click",function(){K.logClick(h.element); K.L("delhi_web_player_use_external_playlist_panel")?K.Fx("onToggleExternalPlaylistPanel"):m1(W,h.element,!1)})}; Fb=function(K,W,U){var h=0;return function(m){g.qs.clearTimeout(h);var S=arguments;h=g.qs.setTimeout(function(){K.apply(U,S)},W)}}; xRp=function(K){return K?(K=("responseXML"in K?K.responseXML:K).getElementsByTagName("root"))&&K.length>0?K[0]:null:null}; uP=function(K,W,U,h,m){W===U?m(new TypeError("Circular promise chain detected.")):U.then(function(S){S instanceof g.So?uP(K,W,S,h,m):h(S)},function(S){m(S)})}; g.kQ=function(K){return K&&window.yterr?function(){try{return K.apply(this,arguments)}catch(W){g.aH(W)}}:K}; g.Iv=function(K,W){W=qr(W);W!==void 0&&(K.href=W)}; g.gF=function(K,W){K=AD2(K);W=AD2(W);return new g.SA(K.x-W.x,K.y-W.y)}; Kxp=function(K,W,U){var h={dH:K.dH,o8:function(I,d){K.iX.MF(I,d)}, TR:K.policy.pO,zt:K.policy.N};K.dH.X.G&&(h.YF=(K.videoTrack.Wp.info.j0||0)+(K.audioTrack.Wp.info.j0||0));K.policy.rQ&&(h.q9=K.audioTrack.Wp.index.fY(),h.TR=!1);var m=Chz(W,K.policy,K.W)?2:1;m!==K.Ms&&(K.Ms=m,lsR(K));U=LU$(K,U);if(K.policy.Ms&&K.policy.N&&U.a6){for(var S=m="",f=g.z(U.a6),G=f.next();!G.done;G=f.next())G=G.value,K.videoData.sabrContextUpdates.has(G)||K.policy.Ms&&U.gD&&U.gD.type===G?m+="_"+G:S+="_"+G;K.loader.rk("sabrbldrqs",{ctxts:m,misctxts:S})}!W.setData(U,K.policy,K.W)&&K.policy.Ms&& K.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);h=new y7(K.policy,W,K.Gm,K.W,K,h,K.loader.Rq());iP(K.timing);K.policy.Y&&K.loader.rk("sabrcrq",{rn:h.PN(),probe:W.B1()});return h}; z7=function(K){return K.width*K.height}; f5=function(K){return K.L("html5_live_head_playable")&&tc(K)&&K.Tm.Ms==="yt"?K.isLiveHeadPlayable:K.isLivePlayback}; Nt=function(K){this.N=K;this.X=0;this.j=null}; Ry=function(K){g.p.call(this);var W=this;this.options=K;this.G=new g.JW;this.BJ=this.G.promise;this.U=new g.JW;this.J=1;this.N=new g.JW;this.W=[];this.RX=K.RX||function(){}; this.logger=new A7(WxL(K.EM||{}));UrY(this,K.Lj,K.Dox,K.O4k,K.Y2r,Object.assign({},haY,K.QF||{}));this.addOnDisposeCallback(function(){return void jCL(W)})}; yr=function(K){this.value=K}; jvD=function(K){return K?decodeURI(K):K}; Mt=function(K){this.iZ=qR(K)}; PY=function(){if(!g.qs.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.qs.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.qs.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.qs.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.qs.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(K){return"WEB_DISPLAY_MODE_UNKNOWN"}}; mrC=function(K){if(!K)return null;var W=K.split("x");if(W.length!==2)return null;K=Number(W[0]);W=Number(W[1]);return isNaN(K)||isNaN(W)||K*W<=0?null:new g.rt(K,W)}; pS=function(K,W,U,h){K.j=3;K.G="The stream is broken @"+K.jV+"/"+U+". Error: "+h+". With input:\n"+W;throw Error(K.G);}; Svs=function(K){var W=[];K=g.z(K.split(","));for(var U=K.next();!U.done;U=K.next()){var h=U.value;h&&((U=h.startsWith("!"))&&(h=h.substring(1)),h=h.split("-"),h.length<3||W.push({nW:h[0],platform:h[1],deviceVersion:h[2],Ap:U}))}return W}; fF_=function(K,W,U,h){U.adFormat=U.Ez;var m=W.iX;W=new oy(new ZW(U,W.C,{getDuration:function(){return U.lengthSeconds}, getCurrentTime:function(){return m.getCurrentTime()}, Ho:function(){return m.Ho()}, N1:function(){return m.N1()}, o2:function(){return m.o2()}, getPlayerSize:function(){return m.getPlayerSize()}, getAudioTrack:function(){return U.getAudioTrack()}, getPlaybackRate:function(){return m.getPlaybackRate()}, CY:function(){return m.CY()}, getVisibilityState:function(){return m.getVisibilityState()}, Wh:function(){return m.Wh()}, z_:function(){return m.z_()}, getVolume:function(){return m.getVolume()}, isMuted:function(){return m.isMuted()}, MR:function(){return m.MR()}, Ag:function(){return m.Ag()}, getProximaLatencyPreference:function(){return m.getProximaLatencyPreference()}, u2:function(){m.u2()}, rk:function(S,f){m.rk(S,f)}, jk:function(){return m.jk()}, A7:function(){return m.A7()}, tI:function(){return m.tI()}})); W.X=h;g.k(K,W);return W}; bP=function(K,W){K=K.element.element;W?K.setAttribute("aria-hidden","true"):K.removeAttribute("aria-hidden")}; g.s2=function(K,W,U){U=U===void 0?350:U;g.y.call(this,{T:"div",Hp:["ytp-time-display","notranslate"],B:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},K:[{T:"span",Z:"ytp-time-wrapper",K:[{T:"div",Z:"ytp-time-contents",K:[{T:"span",Z:"ytp-time-clip-icon",bX:"{{clipicon}}",B:{"aria-label":"Clip"}},{T:"span",Z:"ytp-time-current",bX:"{{currenttime}}"},{T:"span",Z:"ytp-time-separator",bX:" / "},{T:"span",Z:"ytp-time-duration",bX:"{{duration}}"}]}]},{T:"span",Z:"ytp-clip-watch-full-video-button-separator", bX:"\u2022"},{T:"span",Z:"ytp-clip-watch-full-video-button",bX:"{{watchfullvideo}}"}]});var h=this;this.api=K;this.Ms=U;this.liveBadge=new g.y({T:"button",Hp:["ytp-live-badge","ytp-button"],B:{disabled:"true"},bX:"{{content}}"});this.j=null;this.Ls=this.X=!1;this.J=this.Y=this.G=null;this.isPremiere=!1;this.U=this.W=null;this.N=!1;this.Uz=this.liveIndicatorText=null;this.uX=this.yH("ytp-clip-watch-full-video-button");this.liveBadge.setContent("Live");g.k(this,this.liveBadge);this.api.L("web_player_updated_entrypoint")|| this.api.L("delhi_modern_web_player")?this.liveBadge.U5(this.yH("ytp-time-contents")):this.liveBadge.U5(this.element);this.tooltip=W.Fd();this.liveBadge.listen("click",this.onClick.bind(this));this.api.L("delhi_modern_web_player")&&(W=this.yH("ytp-time-wrapper"),this.S(W,"click",this.V_x),W.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.S(this.uX,"click",this.U9r);this.S(this.api,"serverstitchedvideochange",function(){tr2(h,h.api.getProgressState().isAtLiveHead)}); this.S(K,"presentingplayerstatechange",this.Ym);this.S(K,"appresize",this.Ym);this.S(K,"onLoopRangeChange",this.onLoopRangeChange);this.S(K,"videodatachange",this.onVideoDataChange);(W=K.getVideoData())&&this.updateVideoData(W);this.Ym();GNL(this,K.getLoopRange())}; qt=function(K,W,U,h,m){for(var S=[],f=g.z(K.Lg.values()),G=f.next();!G.done;G=f.next()){var I=G=G.value,d=I.trigger;I=I.slot;if(d.triggerType===W){if(d instanceof Vr||d instanceof Xb||d instanceof vY){if(m&&d.breakDurationMs!==U)continue;if(!m&&d.breakDurationMs===U)continue;if(h.has(I.slotId))continue}S.push(G)}}S.length>0&&A6(K.G(),S)}; IFY=function(K,W){K.hK=!0;K.L("html5_use_centralized_player_time")&&(K.X=K.G,K.N=K.X,K.G=NaN);dC2(K,W)}; CS=function(K){K=K===void 0?!1:K;var W=xQ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(K)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null}; drD=function(K){K=K===void 0?null:K;return K!=null&&(K=K.thumbnail,K!=null&&K.thumbnails!=null&&K.thumbnails.length!=0&&K.thumbnails[0].url!=null)?g.lP(K.thumbnails[0].url):""}; G1=function(K){return K.xS||K.RS!==void 0}; Jce=function(K,W){var U=g.LS(K,0,1937011556),h=g.LS(K,0,1953654136);if(!U||!h||K.getUint32(U.offset+12)>=2)return null;var m=new DataView(W.buffer,W.byteOffset,W.length),S=g.LS(m,0,1937011556);if(!S)return null;W=m.getUint32(S.dataOffset+8);h=m.getUint32(S.dataOffset+12);if(h!==1701733217&&h!==1701733238)return null;h=new FjC(K.byteLength+W);Kz(h,K,0,U.offset+12);h.data.setInt32(h.offset,2);h.offset+=4;Kz(h,K,U.offset+16,U.size-16);Kz(h,m,m.byteOffset+S.dataOffset+8,W);Kz(h,K,U.offset+U.size,K.byteLength- (U.offset+U.size));U=g.z([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(m=U.next();!m.done;m=U.next())m=g.LS(K,0,m.value),h.data.setUint32(m.offset,m.size+W);K=g.LS(h.data,0,1953654136);h.data.setUint32(K.offset+16,2);return h.data}; Ev2=function(K,W,U){K.J&&clearTimeout(K.J);K.j===0&&g.WR(K.api.getRootNode(),"ytp-grid-scrolling");W?eap(K,U):K.j<.1&&(K.J=window.setTimeout(function(){eap(K)},1E3))}; UI=function(K,W){K.N.KR=W;g.JM(K.api.getRootNode(),"ytp-probably-keyboard-focus",W);g.JM(K.contextMenu.element,"ytp-probably-keyboard-focus",W)}; hC=function(K){this.X={};this.logger=new g.io(K)}; BhL=function(K,W,U,h,m){m=m===void 0?!1:m;var S="https://youtubei.googleapis.com/youtubei/"+W.WS.innertubeApiVersion+"/player",f=[{name:"Content-Type",value:"application/json"}];h&&f.push({name:"Authorization",value:"Bearer "+h});f.push({name:"User-Agent",value:g.i5()});g.TA("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.TA("EOM_VISITOR_DATA")}):(U=U.visitorData||g.TA("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:U});(U=g.TA("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&f.push({name:"X-YouTube-Lava-Device-Context", value:U});(W=L6(W.experiments,"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:W});K=jR(JSON.stringify(K));return{url:S,Tf:f,postBody:K,C5k:m,TM:m}}; Drs=function(K,W){W=W===void 0?{}:W;var U;return g.r(function(h){if(h.j==1)return g.T(h,g.ip(),2);if(h.j!=3){U=h.X;if(!U)return h.return();F9(K);return g.T(h,mF(K,W),3)}return g.T(h,SR(K,U),0)})}; tC=function(K){return{itag:L_(K,1),lmt:L_(K,2),xtags:fz(K,3)}}; rcC=function(K){if(!K)return H5s||(H5s=new H1(0,0));if(!/^\d+$/.test(K))return null;E$(K);return new H1(FJ,u0)}; GE=function(K){K.J.removeAll();if(K.j){var W=K.j;K.j=null;W.abort();W.dispose()}}; ThF=function(K){var W=nZ(K.playerVars),U=Number(W.length_seconds);isNaN(U)&&(U=0,UF("Expected valid length seconds in player vars but got NaN"));return{playerVars:W,O9:K.playerVars,mu:U}}; JC=function(K,W,U){g.It.call(this,"Audio track",g.dV.AUDIO,K,W);this.D=K;this.j=U;this.tracks={};g.$C(this.element,"ytp-audio-menu-item");this.countLabel=new g.y({T:"div",K:[{T:"span",bX:"Audio track"},{T:"span",Z:"ytp-menuitem-label-count",bX:"{{content}}"}]});K.L("web_settings_menu_icons")&&!this.D.L("html5_enable_new_audio_settings_menu")&&(W=K.L("delhi_modern_web_player_icons")?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:aFe(),this.setIcon(W));g.k(this,this.countLabel);g.lh(this,this.countLabel);K.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.S(K,"videodatachange",this.SV);this.S(K,"onPlaybackAudioChange",this.SV);this.SV()}; g.Du=function(K,W,U){var h=K.length,m=typeof K==="string"?K.split(""):K;for(--h;h>=0;h--)if(h in m&&W.call(U,m[h],h,K))return h;return-1}; QC_=function(K){for(var W="",U=0;U0)return U[0]}return null}; rl=function(K){var W=K.policy.j;K.W||(W=Math.max(W-1,0));return W*rV(K)}; ccs=function(K,W,U,h,m){W=nK_(W,h);W!=null&&(U=gKR(K,U),m(W,K),Fns(K,U))}; wV=function(K){g.GW.call(this,{T:"div",Z:"ytp-speedslider-component"});K.L("web_settings_use_input_slider")?this.j=new TE(K):this.j=new at(K);g.k(this,this.j);this.element.appendChild(this.j.element)}; nvC=function(K,W,U,h,m,S){if(Array.isArray(U))for(var f=0;f=0)Y$(K,W);else{for(var U=0;U<9;U++)K.j.push(W&127|128),W>>=7;K.j.push(1)}}; uap=function(K){var W=null;K.X&&(W=K.X,K.X=W.next,W.next=null);K.X||(K.W=null);return W}; OI=function(K,W){g.ad.call(this,g.w8({role:"menuitemcheckbox","aria-checked":"false"}),W,K,{T:"div",Z:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; kNC=function(K){var W=K.api.V(),U=g.C(K.api.getPlayerStateObject(),128);return W.W&&U&&!K.api.isFullscreen()}; cR=function(K,W,U){return $a(K,W,pm(U))}; i5L=function(K){g.Vk("yt.abuse.playerAttLoaderRun",K)}; gV=function(K,W){var U=nz(K,!isNaN(K.W));W&&(K.W=NaN);return U}; rNs=function(K){K.X!==void 0&&(K.N.forEach(function(W){var U;(U=K.X)==null||U.removeEventListener(W,K.W)}),K.X=void 0)}; Acs=function(K,W){var U=K.X[W],h;(h=K.N)==null||h.dispose();g.P(U,Fx)?zaF(K,g.P(U,Fx),K.macros):g.P(U,uy)&&Nhz(K,g.P(U,uy),K.macros);K.j=W}; Rap=function(K,W){return g.r(function(U){if(U.j==1)return g.Bj(U,2),g.T(U,navigator.clipboard.writeText(W),4);if(U.j!=2)return U.return(!0);g.SV(U);var h=U.return,m=!1,S=g.k$("TEXTAREA");S.value=W;S.setAttribute("readonly","");var f=K.api.getRootNode();f.appendChild(S);if(iy){var G=window.getSelection();G.removeAllRanges();var I=document.createRange();I.selectNodeContents(S);G.addRange(I);S.setSelectionRange(0,W.length)}else S.select();try{m=document.execCommand("copy")}catch(d){}f.removeChild(S); return h.call(U,m)})}; ycC=function(K,W){if(!W)return!1;for(var U=0;U0&&K.api.getPlayerSize().width<=U;K=K.api.getRootNode();K.classList.toggle("ytp-delhi-modern-compact-controls",W);U=W?"8px":"12px";var h=W?"56px":"72px",m=W?"56px":"64px",S=W?"48px":"56px",f=W?"12px":"20px",G=W?"72px":"96px";K.style.setProperty("--yt-delhi-pill-height",W?"40px":"48px");K.style.setProperty("--yt-delhi-pill-top-height", U);K.style.setProperty("--yt-delhi-bottom-controls-height",h);K.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",m);K.style.setProperty("--yt-delhi-big-mode-pill-height",S);K.style.setProperty("--yt-delhi-big-mode-pill-top-height",f);K.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",G)}; Zu=function(K){zE.call(this,K.callback,K.slot,K.z5,K.zm,K.yg,K.ZA,K.dk,K.Hl,K.kd,K.vY,K.iA,K.w4,K.Ng,K.Xx,K.u3,K.Pu,K.context);var W=this;this.adCpn="";this.y_=this.sR=0;this.XT=rr(function(){ZRs(N0(W));W.rf.Fo(W.slot,W.layout)}); this.IS=rr(function(){PHC(N0(W));W.RW!=="rendering_stop_requested"&&W.iA(W);W.layoutExitReason?W.rf.De(W.slot,W.layout,W.layoutExitReason):pTL(W)}); this.E_=K.E_;this.hS=K.hS;this.Oa=K.Oa;this.xm=K.xm;this.JO=K.JO;this.iA=K.iA;if(!this.k5()){AC(this.Xx.get(),"html5_disable_media_load_timeout")||(this.Oq=new g.QC(function(){W.eJ("load_timeout",new Rt("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); K=ym(this.Xx.get());var U=M0(this.Xx.get());K&&U&&(this.sM=new g.QC(function(){var h=Sp(W.layout.clientMetadata,"metadata_type_preload_player_vars");h&&W.hS.get().D.preloadVideoByPlayerVars(h,2,300)}))}}; Z52=function(K,W,U){U.Vr&&W--;O1(U)&&(W=1);if(nB(U)!==0&&(K=g.jV(K.experiments,"html5_live_chunk_readahead_proxima_override"))){W=K;var h;((h=U.j)==null?0:ovR(h))&&W++}return W}; xR=function(K,W){W=W===void 0?{}:W;this.DZk=K;this.metadata=W;this.status=null}; g.pz=function(K){K.isActive()&&g.PR(K)}; ot=function(K,W){this.slotId=W;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=K(this.triggerType)}; by=function(K,W){if(K){K=K.split("&");for(var U=0;U=0){var S=K[U].substring(0,h);m=K[U].substring(h+1)}else S=K[U];W(S,m?ZU(m):"")}}}; g.sZ=function(K,W,U){K=K.j.openCursor(W.query,W.direction);return U9(K).then(function(h){return tN(h,U)})}; b5R=function(K){var W=[],U=[];g.hI(K,function(h,m){if(!(m in Object.prototype)&&typeof h!="undefined")switch(Array.isArray(h)&&(h=h.join(",")),h=[m,"=",h].join(""),m){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":W.unshift(h);break;case "req":case "url":case "referrer":case "iframe_loc":U.push(h);break;default:W.push(h)}}); return W.concat(U)}; sI=function(K){this.iZ=qR(K)}; Vrp=function(K){return g.Vm(sCL(),K)}; Xx=function(K,W,U){var h,m=new Promise(function(S){h=setTimeout(S,W)}); return Promise.race([K.finally(function(){return void clearTimeout(h)}), m.then(U)])}; CHL=function(K,W,U,h,m){try{var S=W.V();if(g.YC(S))var f=new fde(K,W,U,h,m);else if(g.Hh(S))f=new XTC(K,W,U,h,m);else if(vR(S))f=new vvF(K,W,U,h,m);else if(g.l1(S))f=new LmD(K,W,U,h,m);else if(g.r8(S))f=new qv2(K,W,U,h,m);else throw new TypeError("Unknown web interface");return f}catch(G){return f=W.V(),UF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:f.j.cplatform,interface:f.j.c,mok:f.j.cver,LM5:f.j.ctheme,nhV:f.j.cplayer,rer:f.playerStyle}),new xrR(K,W,U,h,m)}}; Lx_=function(K,W,U,h){function m(){q0({writeThenSend:!0},W,U.tier)} W=W===void 0?!1:W;h=h===void 0?!1:h;K&&(x$=new K);K=g.Cz("tvhtml5_logging_max_batch_ads_fork")||g.Cz("tvhtml5_logging_max_batch")||g.Cz("web_logging_max_batch")||100;var S=(0,g.AI)(),f=ly(W,U.tier),G=f.W;h&&(f.N=!0);h=0;U&&(h=Lz().getSequenceCount(U));h>=1E3?m():h>=K?Kl||(Kl=WV(function(){m();Kl=void 0},0)):S-G>=10&&(lFC(W,U.tier),f.W=S)}; hk=function(K,W,U,h,m){UH.call(this,K,W,U,h);K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,m,K,U.layoutId)}; Kre=function(){}; j2s=function(K,W){return WrL(K,W)}; Uk$=function(){return{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"rect",B:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{T:"rect",B:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{T:"path",B:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{T:"defs",K:[{T:"linearGradient",B:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},K:[{T:"stop",B:{offset:"0.3","stop-color":"#E1002D"}},{T:"stop",B:{offset:"0.9","stop-color":"#E01378"}}]}]}]}}; j5=function(K){for(var W=g.z(K.N.entries()),U=W.next();!U.done;U=W.next()){var h=g.z(U.value);U=h.next().value;h=h.next().value;h<(0,g.AI)()&&K.N.delete(U)}return K.N}; S5=function(K,W){return mu(K,W,function(U){return U.N})}; QZ=function(K){this.D=K}; hsY=function(K){switch(K){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:fl(K,"unknown transitionReason")}}; Gs=function(K,W,U,h){h=h===void 0?240:h;g.y.call(this,{T:"button",Hp:["ytp-button","ytp-share-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":U.element.id,"data-tooltip-opaque":String(g.HB(K.V()))},K:[{T:"div",Z:"ytp-share-icon",bX:"{{icon}}"},{T:"div",Z:"ytp-share-title",bX:"Share"}]});this.api=K;this.j=W;this.X=U;this.N=h;this.visible=!1;this.tooltip=this.j.Fd();K.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.S(K,"videodatachange",this.SV);this.S(K,"videoplayerreset",this.SV);this.S(K,"appresize",this.SV);this.S(K,"presentingplayerstatechange",this.SV);this.SV();this.addOnDisposeCallback(g.tk(this.tooltip,this.element))}; mkL=function(K,W){var U=K.Bp[W];W=K.oW[W];var h=IE(K),m=dT(K.N,U.start/1E3,0),S=j$s(U,K.U)/h.width;var f=dT(K.N,U.end/1E3,1);S!==Number.POSITIVE_INFINITY&&(m=g.Jk(m,0,f-S));f=Math.min(f,m+S);U.color&&(W.style.background=U.color);U=m;W.style.left=Math.max(U*h.j+h.W,0)+"px";e5(K,W,g.Jk((f-U)*h.j+h.W,0,h.width),h.width,!0)}; g.EH=function(K,W){var U;return K.V().L("safari_live_drm_captions_fix")&&((U=K.getVideoData())==null?0:U.nC())?!1:g.Lm(K.V())&&!W.isManifestless}; SBC=function(K){var W=g.BV("LOGGED_IN",function(U){K.apply(void 0,arguments);g.Df(W)})}; g.Vk=function(K,W,U){K=K.split(".");U=U||g.qs;for(var h;K.length&&(h=K.shift());)K.length||W===void 0?U[h]&&U[h]!==Object.prototype[h]?U=U[h]:U=U[h]={}:U[h]=W}; PI=function(K,W,U,h,m,S,f,G){g.p.call(this);this.Xx=K;this.j=W;this.X=h;this.ZA=m;this.W=S;this.N=f;this.hS=G}; fLD=function(K,W){if(W)return W=K.videoData,W=Z52(K,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W),HV(K,W);if(K.X.length){if(Math.min.apply(null,K.X)>1)return HV(K,K.j-1);if(K.policy.J)return HV(K,K.j+1)}return K.j}; rT=function(K,W,U,h){K.N.gj(h===void 0?W:h,U/W);K.G=(0,g.AI)()}; tIR=function(K){var W="";g.tD(K.childNodes,function(U){W+=U.nodeValue}); return W}; wT=function(K){this.j=(K=g.Ts(K))?new aE(K):null;this.X=document.domain||window.location.hostname}; G_$=function(K){K.X&&(K.W=new Y2,K.U.promise.then(function(){K.aW.XK("pot_if");QH(K)}))}; JYe=function(){var K=IL_();if(K!=null&&K.effectiveType)return dkR.hasOwnProperty(K.effectiveType)?dkR[K.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; esC=function(K,W){KL(K.api.V())&&(W?K.U.show():K.U.hide())}; E6F=function(K){var W={};g.tD(K,function(U){var h=U.event,m=W[h];W.hasOwnProperty(h)?m!==null&&(U.equals(m)||(W[h]=null)):W[h]=U}); SWL(K,function(U){return W[U.event]===null})}; BFR=function(){}; $J=function(K,W,U){if(K==null)throw new TypeError("The 'this' value for String.prototype."+U+" must not be null or undefined");if(W instanceof RegExp)throw new TypeError("First argument to String.prototype."+U+" must not be a regular expression");return K+""}; Mr=function(K){return K.Hd.get("ad")}; Dks=function(K,W){W=g.YJ[W];return K.X<=W&&(!K.j||K.j>=W)}; rY$=function(K,W,U,h,m,S,f){return[HLY(K,S,h,function(G){var I=G.slotId;G=f(G);I=bh(W.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",I);var d={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wk:"core"};return{layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uZ:new Map,layoutExitNormalTriggers:[new pi(W.j,S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new OH(m), new vM(U)]),t7:G(d),adLayoutLoggingData:m.adLayoutLoggingData}})]}; g.io=function(K){this.tag=K}; cV=function(K,W){var U=K.V(),h=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];U.N&&h.push("no-link");var m={title:K.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:U.jV,"data-priority":"6","data-sessionlink":"feature=player-button"};U.N||(m.href="{{url}}");g.y.call(this,{T:"a",Hp:h,B:m,bX:"{{logoSvg}}"});this.j=null;this.api=K;this.visible=!1;U.N||(this.j=this.listen("click",this.onClick));this.S(K,"videodatachange",this.onVideoDataChange); this.S(K,"videoplayerreset",this.onVideoDataChange);this.S(K,"onLoopRangeChange",this.onVideoDataChange);this.S(K,"appresize",this.IW);this.onVideoDataChange();U.N||this.addOnDisposeCallback(g.tk(W.Fd(),this.element));this.IW()}; g.nl=function(K,W,U){this.name=K;this.id=W;this.isDefault=U}; aLp=function(K){return TF$(K,!0)}; Q$C=function(K){wJs(function(){for(var W=g.z(Object.keys(a$)),U=W.next();!U.done;U=W.next())T_(K,a$[U.value])})}; $ke=function(){var K=["metadata_type_action_companion_ad_renderer"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; YB_=function(K,W,U){K.isPaused()||K.getCurrentTime()>W||U>10||(K.play(),g.FE(function(){YB_(K,K.getCurrentTime(),U+1)},500))}; OLR=function(K){K.j||(K.j=!0,K.api.logVisibility(K.element,!0))}; k6=function(K,W,U,h){return G_(nm().j.j,function(){var m=g.Xl.apply(0,arguments);return WrL(K,function(){return W.apply(U,m)},h)})}; cY_=function(K){this.iZ=qR(K)}; uO=function(){this.done=!1;this.j={JQ:0,Jw:0,a7e:0,iJ:0,UU:-1,mD:0,LP:0,kB:0,Xhr:0};this.U=null;this.G=!1;this.N=null;this.Y=0;this.X=new Nt(this)}; n6L=function(K,W,U,h,m){this.videoId=K;this.Rv=W;this.X=U;this.bytesDownloaded=h;this.j=m}; kJ=function(K,W){(W===void 0||W)&&g6p(K);K.j=null}; FrD=function(K){if(g.SG(K))for(var W in K)W==="html_content"||IHF(W,"_html")?K[W]=cr(K[W]):FrD(K[W])}; uV$=function(K,W){if(K.loader.isSeeking())return W;var U=K.iX.lY();if(!U)return W;U=U.Po();if(U.length===0||iO(U,W))return W;if(!K.videoTrack.Sq(W)&&!K.audioTrack.Sq(W))return K.loader.rk("sundrn",{b:0,lt:W}),W;for(var h=W,m=Infinity,S=0;SW)){var f=W-U.end(S);f=20)?(K.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),W):h}; zsz=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B){W=DXC(K,W,U,m,S,f,I,d,J,e,E,B);HrC(m)?(m=k_F(K,U,f,G),m instanceof v?K=m:(G=Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER"),I=bh(K.X.get(),"LAYOUT_TYPE_SURVEY",G),f=[].concat(g.z4(m.slotExpirationTriggers),[new Vq(K.j,I)]),G=W({slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,wk:m.wk,slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:f},{slotId:G,layoutId:I}),K=G instanceof v?G:{sQ:{slotId:m.slotId, slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:zs(K,U,m.slotId,m.slotEntryTrigger),slotFulfillmentTriggers:Sr(K,U,m.slotId,m.slotFulfillmentTriggers),slotExpirationTriggers:f,wk:m.wk,clientMetadata:new Zi([new Nx(jr(U)),new xx(G.layout),new Ak({pu:K.pu(U)})]),adSlotLoggingData:h},A9:G.A9})):K=iLs(K,U,f,G,h,I.mK,W);return K instanceof v?K:K.A9.concat(K.sQ)}; C3$=function(K){jf.call(this,K);var W=this;this.X=new Set;this.j={};this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"videodatachange",function(U){U==="newdata"&&(W.api.L5("stationsEmbargo"),W.api.L5("stationsMetadataUpdate"),W.j={},W.X.clear());U=W.api.getVideoData().M3;var h=U.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");h&&NFp(W,h,"stationsEmbargo");(U=U.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&NFp(W,U,"stationsMetadataUpdate")}); this.events.S(K,g.$w("stationsEmbargo"),function(U){W.api.Oj(!0);var h,m=(h=W.j[U.id])!=null?h:[];h=g.z(m);for(m=h.next();!m.done;m=h.next())if(m=m.value.embargo)W.api.hideControls(),W.api.jB("auth",2,RE(m.errorRenderer.reason),GR({embargoed:1,id:U.id,idx:U.X,start:U.start})),(m=m.onTrigger)&&W.api.Fx("innertubeCommand",m)}); this.events.S(K,g.$w("stationsMetadataUpdate"),function(U){var h;U=(h=W.j[U.id])!=null?h:[];h=g.z(U);for(U=h.next();!U.done;U=h.next())(U=U.value.command)&&W.api.Fx("innertubeCommand",U)})}; g.JM=function(K,W,U){U?g.$C(K,W):g.WR(K,W)}; AYs=function(K,W){Xa(K,1,W.videoCodec);Xa(K,3,W.maxHeight);Xa(K,4,W.maxWidth);Xa(K,11,W.maxFramerate);Xa(K,12,W.maxBitrateBps);yH(K,15,W.is10BitSupported)}; dip=function(K,W,U){W=W===void 0?0:W;U=U===void 0?-1:U;if(!K.totalLength||!U)return new DataView(new ArrayBuffer(0));U<0&&(U=K.totalLength-W);K.focus(W);if(!Mx(K,W,U)){var h=K.X,m=K.N;K.focus(W+U-1);m=new Uint8Array(K.N+K.j[K.X].length-m);for(var S=0,f=h;f<=K.X;f++)m.set(K.j[f],S),S+=K.j[f].length;K.j.splice(h,K.X-h+1,m);PV(K);K.focus(W)}h=K.j[K.X];return new DataView(h.buffer,h.byteOffset+W-K.N,U)}; Rss=function(K){return K}; yYz=function(){var K,W,U,h;return((h=pl().resolve(new oE(sF))==null?void 0:(K=Zf())==null?void 0:(W=K.loggingHotConfig)==null?void 0:(U=W.csiConfig)==null?void 0:U.debugTicks)!=null?h:[]).map(function(m){return Object.values(m)[0]})}; MIs=function(K,W,U){if(!K.policy.U){K=W.Wp.index;var h=W.j.kx;K.v0(h)||U&&U.kx===h?(W.W=!K.v0(h),W.uX=!K.v0(h)):(W.W=!0,W.uX=!0)}}; bO=function(K,W,U,h,m,S,f,G){this.callback=K;this.slot=W;this.layout=U;this.dk=h;this.zm=m;this.Xx=S;this.yg=f;this.ZA=G;this.j=!1;K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; XE=function(K){function W(D,a,Q,u){if(!h.logger.qs()){var O="k";a?O="h":Q&&(O="u");O!=="k"?u!==0&&(h.logger.QB(O),h.logger.XQ(O,D)):h.X<=0?(h.logger.QB(O),h.logger.XQ(O,D),h.X=Math.floor(Math.random()*200)):h.X--}} function U(D,a,Q,u){Promise.resolve().then(function(){I.done();G.Ol();G.dispose();f.resolve({f$:D,CaV:a,e$X:Q,TNk:u})})} g.p.call(this);var h=this;this.X=Math.floor(Math.random()*200);this.j=new sH;if("challenge"in K&&PI2(K.challenge)){var m=n6(K.challenge,4,void 0,Ud);var S=n6(K.challenge,5,void 0,Ud);n6(K.challenge,7,void 0,Ud)&&(this.j=pJe(n6(K.challenge,7,void 0,Ud)))}else m=K.program,S=K.globalName;this.addOnDisposeCallback(function(){var D,a,Q;return g.r(function(u){if(u.j==1)return g.T(u,h.N,2);D=u.X;a=D.CaV;(Q=a)==null||Q();g.q1(u)})}); this.logger=WxL(K.EM||{},this.j);g.k(this,this.logger);var f=new g.JW;this.N=f.promise;this.logger.QB("t");var G=this.logger.share(),I=new VH(G,"t");if(!g.qs[S])throw this.logger.Ro(25),Error("EGOU");if(!g.qs[S].a)throw this.logger.Ro(26),Error("ELIU");try{var d=g.qs[S].a;S=[];for(var J=[],e=o6Y(this.j),E=0;E=0&&W0&&K[K.length-1]!=null&&K[K.length-1].url!=null?g.Qq(K[K.length-1].url)||"":"";this.j=new HP(0,0,0,0);this.W=new g.rt(0,0);this.U=new g.rt(0,0);this.Y=new HP(0,0,0,0);this.frameOffset=new g.SA(0,0);this.G=0;this.J=!1;this.X=!(!Fl||!GlR(Fl).IP);this.update(Fl)}; dPs=function(K,W){g.X9(W,function(m){return m.depth>=0}); var U=Ab(W,function(m,S){return Math.max(m,S.depth)},-1),h=HZL(U+2); h[0]=K;g.tD(W,function(m){return h[m.depth+1]=m.j}); return h}; PoL=function(K){var W={};return r4((W.dlt=K.downloadedEndTime.toString(),W.mket=K.maxKnownEndTime.toString(),W.avbr=K.averageByteRate.toString(),W))}; ax=function(K,W,U){if(TB(K.params.bu.Xx.get(),!0)){var h=U.flush,m={};Jde(K,W,(m.cts=U.currentTimeSec,m.f=h,m))}}; e6_=function(K,W){this.j=K;this.options=W;this.transactionCount=0;this.N=Math.round((0,g.AI)());this.X=!1}; w4=function(K,W){K.J=W;var U,h;(h=(U=K.options).l1x)==null||h.call(U,W)}; ag=function(K){return K?K.passive&&EIY()?K:K.capture||!1:!1}; g.Xl=function(){for(var K=Number(this),W=[],U=K;U0}; g.Qa=function(K,W){for(;K.G.length;){var U=K.G.pop(),h=void 0;W&&DPz()&&(h={passive:!0});U.target.removeEventListener(U.name,U.callback,h)}}; H6R=function(K){var W=[new fY(K.Ew),new $A(K.tT),new vM(K.adPlacementConfig),new YA(K.videoLengthSeconds),new O8(K.TE)];K.instreamAdPlayerOverlayRenderer&&W.push(new OH(K.instreamAdPlayerOverlayRenderer));K.playerOverlayLayoutRenderer&&W.push(new cw(K.playerOverlayLayoutRenderer));K.Xj&&W.push(new VG(K.Xj));return W}; iN=function(K,W){if(K.policy.useUmp&&W.qs())return!1;try{var U=W.info.Ce[0].Wp,h=U.info.video?K.videoTrack:K.audioTrack;if(K.Gm.isManifestless&&h){K.G=0;h.G&&(W.qs(),W.isComplete()||W.ZU(),h.G=!1);W.uo()&&K.loader.KV.gj(1,W.uo());var m=W.Aq(),S=W.AU();nY(K.Gm,m,S)}if(W.info.TR()&&!g4(W.info))for(var f=g.z(W.sC()),G=f.next();!G.done;G=f.next())rd$(h,G.value);for(K.loader.getCurrentTime();h.X.length&&h.X[0].state===4;){var I=h.X.shift();TKY(h,I);h.Le=I.tU()}h.X.length&&TKY(h,h.X[0]);var d=!!OB(h);d&& W instanceof kA&&(U.info.yR()?OBD(K.timing):cGD(K.timing));return d}catch(J){W=W.K7();W.origin="hrhs";a:{K=K.loader;U=J;if(U instanceof Error){W.msg||(W.msg=""+U.message);W.name||(W.name=""+U.name);if(U instanceof g.EB&&U.args)for(h=g.z(Object.entries(U.args)),m=h.next();!m.done;m=h.next())S=g.z(m.value),m=S.next().value,S=S.next().value,W["arg"+m]=""+S;g.eI(U);if(U.level==="WARNING"){K.iX.ll(W);break a}}K.handleError("fmt.unplayable",W,1)}return!1}}; a0Y=function(K,W,U){if(K.appInstallData)if(W){var h;U=(h=W_(W,zB,62))!=null?h:new zB;Ya(U,6,K.appInstallData);rk(W,zB,62,U)}else U&&(U.client.configInfo=U.client.configInfo||{},U.client.configInfo.appInstallData=K.appInstallData)}; N7=function(K){var W=K.data.getUint32(K.offset+K.j);K.j+=4;return W}; wPz=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; QLF=function(K){this.j=K.playback_progress_0s_url;this.N=K.playback_progress_2s_url;this.X=K.playback_progress_10s_url}; $P$=function(){this.VX=null;this.status=0;this.mf=null;this.wrap=this.pending=this.Bn=this.GJ=0;this.Uv=null;this.YV=0;this.method=8;this.Gx=-1;this.Z7=this.BK=this.Ac=0;this.window=null;this.E7=0;this.head=this.nw=null;this.TX=this.Mt=this.strategy=this.level=this.uP=this.sb=this.AB=this.Kg=this.JG=this.Oz=this.yQ=this.qj=this.Wd=this.OC=this.tR=this.eq=this.Xw=this.e9=this.IR=0;this.S$=new Ji.Rx(1146);this.HW=new Ji.Rx(122);this.rg=new Ji.Rx(78);Aj(this.S$);Aj(this.HW);Aj(this.rg);this.Qc=this.UZ= this.xZ=null;this.NU=new Ji.Rx(16);this.AO=new Ji.Rx(573);Aj(this.AO);this.pU=this.G_=0;this.depth=new Ji.Rx(573);Aj(this.depth);this.Bh=this.sP=this.RQ=this.matches=this.Cx=this.uQ=this.lx=this.m4=this.Ks=this.Fw=0}; M7=function(K){var W=K.Ac,U;do{var h=K.E7-K.Kg-K.Oz;if(K.Oz>=W+(W-262)){Ji.jE(K.window,K.window,W,W,0);K.JG-=W;K.Oz-=W;K.OC-=W;var m=U=K.e9;do{var S=K.head[--m];K.head[m]=S>=W?S-W:0}while(--U);m=U=W;do S=K.nw[--m],K.nw[m]=S>=W?S-W:0;while(--U);h+=W}if(K.VX.wg===0)break;m=K.VX;U=K.window;S=K.Oz+K.Kg;var f=m.wg;f>h&&(f=h);f===0?U=0:(m.wg-=f,Ji.jE(U,m.input,m.mx,f,S),m.state.wrap===1?m.n5=Rx(m.n5,U,f,S):m.state.wrap===2&&(m.n5=ya(m.n5,U,f,S)),m.mx+=f,m.DR+=f,U=f);K.Kg+=U;if(K.Kg+K.RQ>=3)for(h=K.Oz-K.RQ, K.IR=K.window[h],K.IR=(K.IR<=f){h=f;break}}return new ZO(0,h,!1,"b")}; g.Vm=function(K,W){if(!W)throw g.zW("openWithToken",Nj(K.name));return K.open()}; g.vB=function(K,W){K=K.split(".");W=W||g.qs;for(var U=0;U0)W=z6Y(K,h);else if(!K.L("html5_deprecate_adaptive_formats_string")){K.rk("pafmtstr",{s:K.adaptiveFormats.substring(0,50)});if((h=K.adaptiveFormats)&&!mK(K)){K.Tm.U.N&&(Sv=!0);h=P_(h);W=K.zL;var m=K.lengthSeconds,S=K.isLivePlayback;U=K.tv;var f=K.Tm,G=NKs(h);if(S||U){f=f==null?void 0:f.experiments;m=new fM("",f,!0);m.mK=!0;m.isManifestless=!0;m.X=!U;m.isLive=!U; m.tv=U;S=g.z(h);for(G=S.next();!G.done;G=S.next()){var I=G.value;G=ta(I,W);var d=Gy(I.url,I.sp,I.s),J=d.get("id");J&&J.includes("%7E")&&(m.Ms=!0);var e=void 0;J=(e=f)==null?void 0:e.Rk("html5_max_known_end_time_rebase");e=Number(I.target_duration_sec)||5;I=Number(I.max_dvr_duration_sec)||14400;var E=Number(d.get("mindsq")||d.get("min_sq")||"0"),B=Number(d.get("maxdsq")||d.get("max_sq")||"0")||Infinity;m.DE=m.DE||E;m.L_=m.L_||B;var D=!Wh(G.mimeType);d&&I_(m,new dD(d,G,{GI:e,yr:D,T_:I,DE:E,L_:B,VJ:300, tv:U,h1:J}))}W=m}else if(G==="FORMAT_STREAM_TYPE_OTF"){m=m===void 0?0:m;U=new fM("",f==null?void 0:f.experiments,!1);U.duration=m||0;f=g.z(h);for(m=f.next();!m.done;m=f.next())if(d=m.value,m=ta(d,W,U.duration),S=Gy(d.url,d.sp,d.s))m.streamType==="FORMAT_STREAM_TYPE_OTF"?I_(U,new Ja(S,m,"sq/0")):(G=ev(d.init),d=ev(d.index),I_(U,new ER(S,m,G,d)));U.isOtf=!0;W=U}else{m=m===void 0?0:m;U=new fM("",f==null?void 0:f.experiments,!1);U.duration=m||0;f=g.z(h);for(m=f.next();!m.done;m=f.next())d=m.value,m=ta(d, W,U.duration),S=ev(d.init),G=ev(d.index),(d=Gy(d.url,d.sp,d.s))&&I_(U,new ER(d,m,S,G));W=U}h.length>0&&(h=h[0],K.V().playerStyle==="hangouts-meet"&&h.url&&(h=g.BO(h.url),K.TI=K.TI||Number(h.expire)));h=K.isLivePlayback&&!K.tv&&!K.Cf&&!K.isPremiere;K.L("html5_live_head_playable")&&(!f5(K)&&h&&K.rk("missingLiveHeadPlayable",{}),K.Tm.Ms==="yt"&&(W.tK=!0))}else W=null;K.rk("pafmts",{isManifestFilled:!!W})}if(!W)return!1;DE(K,W);return!0}; R6s=function(){return{T:"svg",B:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",B:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; rD=function(K,W){K.Qg||(HO(K,"fcnz",""+W),K.Qg=!0)}; yde=function(K){g.hI(K.j,function(W){W.j>1E5||++W.j})}; x4=function(){Ty===void 0&&(Ty=MdC());return Ty}; wD=function(){this.data=new Uint8Array(2048);this.pos=0;a_||(a_=jR("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; QI=function(K){K=K.D.getVideoData();var W;if(W=K.L("web_player_defer_ad")){if(g.BX(K.XY,"ad")||PQ$(K)||K.enableServerStitchedDai)K=!1;else{W=K.playerResponse;K=K.startSeconds;var U=W==null?void 0:W.adPlacements;if(W=U){W=Number.MAX_VALUE;U=g.z(U);for(var h=U.next();!h.done;h=U.next())if(h=h.value.adPlacementRenderer){var m=void 0,S=(m=h.config)==null?void 0:m.adPlacementConfig;m=void 0;if(((m=S)==null?void 0:m.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var f=m=void 0;S=Number((m=S)==null?void 0:(f= m.adTimeOffset)==null?void 0:f.offsetStartMilliseconds)||0;f=m=void 0;h=Number(((m=h.renderer)==null?void 0:(f=m.adBreakServiceRenderer)==null?void 0:f.prefetchMilliseconds)||0);h=S-h;h>4);f!=64&&(W(S<<4&240|f>>2),G!=64&&W(f<<6&192|G))}}; Z6C=function(K,W){K.isContentForward=W;g.JM(K.badge.element,"ytp-suggested-action-badge-content-forward",W)}; gD=function(K,W){var U=b6s(K.provider);Object.assign(U,{state:K.G});W=new OR(K.provider.videoData,K.provider.C,W,U);W.j=K.provider.iX.Ho();U=K.provider.videoData.clientPlaybackNonce;W.j=K.provider.iX.N1(U);K.provider.videoData.isLivePlayback||(W.Le=K.provider.iX.getDuration(U));K.provider.videoData.j&&(U=K.provider.videoData.j.hv(W.j))&&(W.Ms=U-W.j,cO(K.provider.videoData)&&(W.j+=K.provider.iX.A7(),W.Ms-=K.provider.iX.A7()));W.AS=g.gh(K.provider);W.segments=[nM(K.provider)];return W}; F$=function(K){if(K.j==="fulfilled"){var W=K.X;K.X=[];K.N=[];W=g.z(W);for(var U=W.next();!U.done;U=W.next())U=U.value,U(K.result)}else if(K.j==="rejected")for(W=K.N,K.X=[],K.N=[],W=g.z(W),U=W.next();!U.done;U=W.next())U=U.value,U(K.error)}; DL=function(K,W){return W===void 0||W===null?K:W==="1"||W===!0||W===1||W==="True"?!0:!1}; uS=function(){return g.hc("idb_immediate_commit")}; sLe=function(K){this.C=K;this.N=this.X=this.mediaTime=NaN;this.W=this.j=!1;this.U=.001;g.PJ(K)&&(this.U=.01)}; VdR=function(K,W){var U=arguments.length==2?D$$(arguments[1],0):D$$(arguments,1);return WO(K,U)}; kD=function(K,W,U,h){fG.call(this,K,W,U,h,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; XPF=function(K){var W=K.Le.toString(10).padStart(2,"0");W=""+K.DO+W;K.Le<99&&K.Le++;return W}; xPC=function(K,W,U,h,m,S,f,G){var I=vIe(),d=new iS({veType:W,youtubeData:S,jspbYoutubeData:void 0});S=zy({},I);m&&(S.cttAuthInfo=m);m={csn:I,pageVe:d.getAsJson()};g.hc("expectation_logging")&&G&&G.screenCreatedLoggingExpectations&&(m.screenCreatedLoggingExpectations=G.screenCreatedLoggingExpectations);U&&U.visualElement?(m.implicitGesture={parentCsn:U.clientScreenNonce,gesturedVe:U.visualElement.getAsJson()},f&&(m.implicitGesture.gestureType=f)):U&&g.eI(new g.EB("newScreen() parent element does not have a VE - rootVe", W));h&&(m.cloneCsn=h);K?NY("screenCreated",m,K,S):g.N_("screenCreated",m,S);Aa(q1p,new R_(I));yI.clear();MY.clear();PO.clear();return I}; pM=function(K,W){K.focus(W);return K.j[K.X][W-K.N]}; o_=function(K,W,U){K.Bh>16-U?(K.sP|=W<>16-K.Bh,K.Bh+=U-16):(K.sP|=W<0)&&U&&LM&&(this.X=!1,this.N="postLive");this.h1=W}; hm=function(K,W){K=K instanceof Uint8Array?new WQ([K]):K;return W(new U6(K))}; Vr=function(K,W){this.breakDurationMs=K;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=W||""}; jZ=function(K,W){for(var U=0;U":(K=m2_(W.map(function(h){return h instanceof Ca?h:G$(String(h))})),U+=">"+K.toString()+""); return cr(U)}; bh=function(K,W,U){if(u1(K.Xx.get())){var h=K.j.get(W)||0;h++;K.j.set(W,h);return U+"_"+W+"_"+h}return g.DO(16)}; fuC=function(K){return K.scrollingElement?K.scrollingElement:g.$U||K.compatMode!="CSS1Compat"?K.body||K.documentElement:K.documentElement}; tm=function(K,W){var U=K.X[W],h=U[1];K.N+=U[0];h>0&&K.j[W]==0&&(K.j[W]=1)}; Iq=function(K,W){g.y.call(this,{T:"div",Z:"ytp-info-panel-preview",B:{"aria-live":"assertive","aria-atomic":"true","aria-owns":W.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.HB(K.V()))},K:[{T:"div",Z:"ytp-info-panel-preview-text",bX:"{{text}}"},{T:"div",Z:"ytp-info-panel-preview-chevron",bX:"{{chevron}}"}]});var U=this;this.D=K;this.RR=this.j=this.videoId=null;this.isDismissed=this.N=this.showControls=this.X=!1;this.S(this.element,"click",function(){K.logClick(U.element);K.hR();m1(W)}); this.fade=new g.Wr(this,250,!1,100);g.k(this,this.fade);this.D.createServerVe(this.element,this,!0);this.S(K,"videodatachange",this.onVideoDataChange);this.S(K,"presentingplayerstatechange",this.Js);this.S(this.D,"paidcontentoverlayvisibilitychange",this.zX);this.S(this.D,"infopaneldetailvisibilitychange",this.zX);var h=K.getVideoData()||{};tGR(h)&&G3(this,h);this.S(K,"onShowControls",this.BB);this.S(K,"onHideControls",this.As);this.S(this.D,"infopaneldetaildismissed",function(){K.L("embeds_enable_info_panel_dismissal")&& (U.isDismissed=!0,U.hide())})}; g.dx=function(K,W){return(W||document).querySelectorAll("."+K)}; GR2=function(K){if(K.j)return K.j;if(K.experimentIds.length<=1)return K.j=K.experimentIds,K.j;var W=[].concat(g.z4(K.experimentIds)).map(function(h){return Number(h)}); W.sort();for(var U=W.length-1;U>0;--U)W[U]-=W[U-1];K.j=W.map(function(h){return h.toString()}); K.j.unshift("v1");return K.j}; Jm=function(K,W){W!==K.IK&&(K.IK=W,K.Yx.Ov("onMutedAutoplayChange",W))}; eZ=function(K){this.P8=3;this.qV=K;this.defaultValue=0;this.E1="double"}; Ca=function(K){this.j=K}; E6=function(K,W){return W.td?W.td:W.vM?OK(K.logger,function(){return W.td=z$(W.vM)},"c"):[]}; Iu2=function(K,W){W.inlineMetricEnabled&&(K.inlineMetricEnabled=!0);W.playback_progress_0s_url&&(K.jh=new QLF(W));if(W=W.video_masthead_ad_quartile_urls)K.Ae=W.quartile_0_url,K.BV=W.quartile_25_url,K.LS=W.quartile_50_url,K.zy=W.quartile_75_url,K.t1=W.quartile_100_url,K.t$=W.quartile_0_urls,K.wD=W.quartile_25_urls,K.sA=W.quartile_50_urls,K.EA=W.quartile_75_urls,K.Vu=W.quartile_100_urls}; g.V3=function(K){K.cursor.continue(void 0);return U9(K.request)}; JLY=function(K){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in d2L))return!1;K=K.split(RegExp("[:&]"));var W=d2L.FLAG_AUTO_CAPTIONS_DEFAULT_ON,U="f"+(1+Math.floor(W/31)).toString();W=1<=this.length))return this[K]}; og=function(K,W){K.Ik=W;K.Qa(new nT(g.CB(K.Ik,function(U){return U.getInfo()})))}; w_D=function(K){g.kQ(aup)("action_finished",K,void 0)}; ORp=function(K){var W=K.webPlayerContextConfig.trustedJsUrl;return W?gx(W).toString():K.webPlayerContextConfig.jsUrl}; g.uF=function(K){return K instanceof g.FS?K.clone():new g.FS(K)}; Qg_=function(K,W){K.configData=W;g.Vk("yt.gcf.config.coldConfigData",K.configData||null)}; gx=function(K){return K?(K=K.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?vE(K):null:null}; g.SZ=function(K){var W=g.Dk.Jt(),U=g.Dk.wK();if(!W&&!U||!window.JSON)return null;try{var h=W.get(K)}catch(m){}if(typeof h!=="string")try{h=U.get(K)}catch(m){}if(typeof h!=="string")return null;try{h=JSON.parse(h,void 0)}catch(m){}return h}; iF=function(){kM.apply(this,arguments)}; z3=function(K){return function(){return K}}; Rq=function(K,W,U,h){(h===void 0?0:h)>1?W=W.LKV:(U=Na(U,Am(K,K.n1(W,U),W)),W=Math.max(K.U,U.timedOut)+W.Zu*(K.N-K.U)+.25*K.Y,W=W>3?1E3*Math.pow(1.6,W-3):0);return W===0?!0:K.jV+W<(0,g.AI)()}; $2F=function(K,W,U,h,m){yU.call(this,"ads-engagement-panel-layout",K,W,U,h,m)}; Ma=function(K){this.iZ=qR(K)}; YdY=function(K){this.j=K}; OCD=function(K){this.iZ=qR(K)}; yNp=function(K,W){var U;return g.r(function(h){if(!W)return h.return(W);U=new g.Zz(K.X);return h.return(U.encrypt(W,K.j))})}; pT=function(K){K.readyState=4;K.W=null;K.N=null;K.Y=null;PQ(K)}; oq=function(K){var W=K.state,U=W.pending;U>K.C5&&(U=K.C5);U!==0&&(Ji.jE(K.output,W.mf,W.Bn,U,K.RK),K.RK+=U,W.Bn+=U,K.WK+=U,K.C5-=U,W.pending-=U,W.pending===0&&(W.Bn=0))}; cL_=function(K){return K.D.V().experiments.Rk("html5_load_empty_player_in_media_break_sub_lra")}; bF=function(K,W){isNaN(K.Ms)||K.rk("aswr",{sq:W.info.Ce[0].kx,id:W.info.Ce[0].Wp.info.itag,xtag:W.info.Ce[0].Wp.info.j,ep:Date.now()-K.Ms});K.X.push(W);K.j=g.Z$(W.info.Ce);K.Ns.push(W.m6());K.Ns.length>4&&K.Ns.shift()}; uQ=function(K){return new Uint8Array(fB(K)||0)}; s6=function(K,W,U){K.U=3;K.jV="The stream is broken @"+K.N+"/"+U+". With input:\n"+W;throw Error(K.jV);}; VU=function(K){this.iZ=qR(K)}; XS=function(){this.N=new Set;this.X=new Set;this.W=new Map;this.client=void 0;this.csn=null}; nfs=function(){LR.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; gfs=function(K,W,U){var h=K.M5||K.app.E5().getPlayerState();vQ(K,!0);K.playback.seekTo(W,U);K=K.app.E5();W=K.getPlayerState();h.isOrWillBePlaying()&&!W.isOrWillBePlaying()?K.playVideo():h.isPaused()&&!W.isPaused()&&K.pauseVideo()}; qa=function(K){switch(K.X){case 0:K.X!=0?qa(K):xM(K.j);break;case 1:K=K.j;CT(K,K.j+8);break;case 2:if(K.X!=2)qa(K);else{var W=lF(K.j)>>>0;K=K.j;CT(K,K.j+W)}break;case 5:K=K.j;CT(K,K.j+4);break;case 3:W=K.N;do{if(!Fls(K))throw Error();if(K.X==4){if(K.N!=W)throw Error();break}qa(K)}while(1);break;default:throw Error();}}; iC$=function(K,W,U){K.N||(K.N=new u9p(K.X));return kRp(K.N,W,U)}; LT=function(){}; z5C=function(K){K.N&&g.PR(K.N);K.W&&g.PR(K.W)}; AL2=function(K,W,U,h,m,S,f){var G={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,wk:"core"};W=KD(K,W,U);if(W instanceof v)return W;U=[];U.push(new vM(Wx(S)));S==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&f!==void 0&&U.push(new fY(f));return Object.assign({},G,{renderingContent:K.renderingContent,uZ:new Map([["impression",Nkp(K)]])},W,{t7:q$(h,m)(G),clientMetadata:new Zi(U),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData})}; S6=function(K){return K.j&&K.iK}; MGp=function(K){var W=cY;if(R5C(W,K)){switch(K.oN()){case 0:var U=function(){return null}; case 2:U=function(){return yLz(W,K.nf)}; break;case 1:U=function(){return Ub(W,K.nf)}}for(var h=U();h;h=U())R5C(W,h)}}; PUF=function(K){return ZE(K.slot,K.Xx.get())?new h_(K):new jJ(K)}; mq=function(K){switch(K.KN()){case 2:return"progressive.net.retryexhausted";case 3:return K=K.Xh(),(K==null?0:K.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||p_$&&(K==null?0:K.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}}; SJ=function(K){return typeof K==="object"&&Array.isArray(K)}; ofp=function(K){var W;for(W=0;W<286;W++)K.S$[W*2]=0;for(W=0;W<30;W++)K.HW[W*2]=0;for(W=0;W<19;W++)K.rg[W*2]=0;K.S$[512]=1;K.uQ=K.Cx=0;K.m4=K.matches=0}; fD=function(K){var W=K.docid||K.video_id||K.videoId||K.id;if(W)return W;W=K.raw_player_response;W||(K=K.player_response)&&(W=JSON.parse(K));return W&&W.videoDetails&&W.videoDetails.videoId||null}; G0=function(K,W){var U=ZCY(K.N,W.X);if(K.j.length>1){U=t_(K,W.N,!0);for(var h=0,m=0;m0&&(h+=K.j[m].width,h+=tl(K));U=(K.j[U].startTime+(W.N-h)/K.j[U].width*((U===K.j.length-1?K.N.j*1E3:K.j[U+1].startTime)-K.j[U].startTime))/1E3||0}return U}; J_=function(K){for(var W in Ij)Ij[W][0]==K&&g.d9(W)}; pBs=function(K){this.N=K;this.j=-1;this.X=this.W=0}; eqz=function(K,W){function U(h,m){W(h,m)} if(K.X==null)return!1;K.j=g.dG(K.X,function(h){return h!=null&&h.lU()}); K.j&&(K.j.init(U)?Fmp(K.j.j):W(K.j.j.sD(),K.j));return K.j!=null}; Eb=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-ad-grid-card-text",K:[{T:"div",Z:"ytp-ad-grid-card-text__metadata",K:[{T:"div",Z:"ytp-ad-grid-card-text__metadata__headline"},{T:"div",Z:"ytp-ad-grid-card-text__metadata__description",K:[{T:"div",Z:"ytp-ad-grid-card-text__metadata__description__line"},{T:"div",Z:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{T:"div",Z:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",W,U,h);this.headline=new eJ(this.api,this.layoutId,this.interactionLoggingClientData, this.s5);g.k(this,this.headline);this.headline.U5(this.yH("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new EY(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0);g.k(this,this.moreInfoButton);this.moreInfoButton.U5(this.yH("ytp-ad-grid-card-text__button"))}; Bx=function(K,W){for(;K.j=K.data.length)return K.error=!0,0;K.register|=K.data[K.X++]<>=W;K.j-=W;return U}; sgY=function(K){K=Object.keys(K);K=g.z(K);for(var W=K.next();!W.done;W=K.next())if(W=W.value,bC_[W])return W}; VGL=function(K,W){if(W=W.content&&W.content.confirmDialogRenderer||null)K.W=new D8(K.api,K.layoutId,K.interactionLoggingClientData,K.s5),g.k(K,K.W),K.W.init(Mq("ad-mute-confirm-dialog"),W,K.macros),K.W.U5(K.hK),K.W.subscribe("b",function(){return K.publish("c")})}; Hx=function(){}; vfR=function(K,W){if(X_p(K,W))return null;if(W.reason==="m"&&W.isLocked())return r9(K,W),K.J=K.W.length-1,T0(K),aj(K),K.uX=K.uX||K.N!==K.nextVideo,K.N=K.nextVideo,new w9(K.X,K.N,W.reason);W.reason==="r"&&(K.jV=-1);r9(K,W);aj(K);if(W.reason==="r"&&K.nextVideo===K.N)return new w9(K.X,K.nextVideo,W.reason);K.N&&K.nextVideo&&B_(K,K.N.info)1)));f=f.next)m||(S=f);m&&(U.j==0&&h==1?qd2(U,W):(S?(h=S,h.next==U.W&&(U.W=h),h.next=h.next.next):uap(U),x2Y(U,m,3,W)))}K.N=null}else Qf(K,3,W)}; CUC=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; $G=function(K){this.j=[];if(K)a:{if(K instanceof $G){var W=K.FA();K=K.hC();if(this.j.length<=0){for(var U=this.j,h=0;h=0;h--){var m=K[h];if(W.call(U,m,h,K))return{uw:h,IJ:m}}return{uw:-1,IJ:void 0}}; g.Uj=function(){g.p.call(this);this.NK=new nD(this);this.BU=this;this.HR=null}; e52=function(K,W,U){var h=[];U=g.z(U);for(var m=U.next();!m.done;m=U.next()){var S=h,f=S.push;var G=K;var I=W;m=m.value;G=m.triggeringSlotId!=null&&m.triggeringSlotId===G?m.clone(I):m;f.call(S,G)}return h}; uU=function(K){try{return K.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}}; g9=function(K){if(K.app.getAppState()===1)return!1;if(K.app.getAppState()===6)return!0;var W=K.app.E5();if(!W||W.kF())return!1;K=K.app.Yx.getPlayerStateObject();W=!g.C(K,2)||W&&W.getVideoData().Y;var U=g.C(K,1024);return K&&W&&!U&&!K.isCued()}; F1=function(K){K.j&&K.J===-1&&(K.J=K.j.subscribe("h",K.Ba,K),K.tK=K.j.subscribe("g",K.Yr,K),K.Ba())}; g.kG=function(K,W){W>=K.J5()&&K.PF();var U=u8(K,W),h=K.columns*K.rows,m=W%h;W=m%K.columns;m=Math.floor(m/K.columns);var S=K.PF()+1-h*U;if(S0&&UWL(K,W,S)}else UWL(K,W)}; $f=function(K,W,U){try{if(K){if(!W.top)return new HP(-12245933,-12245933,-12245933,-12245933);W=W.top}var h=cWC(K,W,U),m=h.height,S=h.width;if(S===-12245933)return new HP(S,S,S,S);var f=A_(W.document);var G=hyF(f.j);var I=G.x,d=G.y;return new HP(d,I+S,d+m,I)}catch(J){return new HP(-12245933,-12245933,-12245933,-12245933)}}; Px=function(K,W){Rj||(yf?yf.logEvent(K,W):(M8.push({type:"EVENT",eventType:K,payload:W}),M8.length>10&&M8.shift()))}; pD=function(K,W){return K===void 0||K==="undefined"?!0:K===W}; hRC=function(K){switch(K){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 fl(K,"Unexpected cuepoint event")}}; mWC=function(){var K=jRs;return function(){var W=pl();if(!W.resolve(new oE(K))){var U={};oj(W,(U.RT=K,U.KT=K,U[Z8]=void 0,U))}return W.resolve(K)}}; b8=function(K){return K?"layout: "+K.layoutType:""}; u8e=function(K,W){return W.reduce(function(U,h){return function(m){return h.intercept(m,U)}},K)}; S9e=function(){this.startTimeMs=(0,g.AI)();this.j=!1}; g.WR=function(K,W){K.classList?K.classList.remove(W):g.sb(K,W)&&g.pG(K,Array.prototype.filter.call(PN(K),function(U){return U!=W}).join(" "))}; B1=function(K){var W=K.length,U=W*3/4;U%3?U=Math.floor(U):g.so("=.",K[W-1])&&(U=g.so("=.",K[W-2])?U-2:U-1);var h=new Uint8Array(U),m=0;oIs(K,function(S){h[m++]=S}); return m!==U?h.subarray(0,m):h}; Vf=function(K,W,U){return K.getCurrentTimeSec(W,U)}; fYL=function(K){this.rk=K;this.j={}}; ta2=function(K,W){g.JM(K.element,"ytp-volume-control-hover",W);VI(K,W,K.isDragging,K.X,K.api.FY())}; X1=function(K,W,U){return K?!0:(g.eI(new g.EB("Assertion: "+W,U)),!1)}; vx=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",W,U,h);this.button=null;this.j=this.yH("ytp-ad-survey-none-of-the-above");this.hide()}; yI$=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"standardControlsInitialized",function(){var U=new q8(K);g.k(W,U);K.gt(U,"RIGHT_CONTROLS_LEFT")})}; hyF=function(K){var W=fuC(K);K=K.defaultView;return new g.SA((K==null?void 0:K.pageXOffset)||W.scrollLeft,(K==null?void 0:K.pageYOffset)||W.scrollTop)}; xG=function(K){GSY.test(K)&&(K.indexOf("&")!=-1&&(K=K.replace(IYF,"&")),K.indexOf("<")!=-1&&(K=K.replace(dWD,"<")),K.indexOf(">")!=-1&&(K=K.replace(Jpp,">")),K.indexOf('"')!=-1&&(K=K.replace(eyC,""")),K.indexOf("'")!=-1&&(K=K.replace(Eis,"'")),K.indexOf("\x00")!=-1&&(K=K.replace(Bq$,"�")));return K}; var H_p=function(K,W){return i3[t[11]](this,1,K,W)}; DWe=function(K){var W;if(W=!!K.cotn)W=K.videoId,W=!!W&&g.xf(W)===1;return W&&!K.xr}; CD=function(K){K.policy.Ny&&K.policy.WM&&Math.min(HAR(K.videoTrack),HAR(K.audioTrack))*1E3>K.policy.gC?g.yG(K.Ez):K.TL()}; n6=function(K,W,U,h){U=U===void 0?"":U;var m;return(m=zG(gr(K,W,h)))!=null?m:U}; l8=function(K,W){W={rst4disc:W,cd:K.Y.toFixed(3),sq:K.hK?K.hK.kx:-1};K.N=NaN;K.Y=0;K.Bp=-1;K.hK=null;K.JK=NaN;K.vp=NaN;K.tK=null;K.loader.rk("mdstm",W)}; g.LD=function(){return{T:"svg",B:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{T:"path",B:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; US=function(K){var W=[],U=Kp(K);U&&W.push(U);W=g.fa(W,K.N.GR());U=g.z(K.X);for(var h=U.next();!h.done;h=U.next()){h=h.value;for(var m=g.z(h.info.Ce),S=m.next(),f={};!S.done;f={Op:void 0},S=m.next())f.Op=S.value,h.Qp&&(W=g.yb(W,function(G){return function(I){return!rpR(I,G.Op)}}(f))),(WL(f.Op)||f.Op.type===4)&&W.push(f.Op)}K.j&&!Tqs(K.j,g.Z$(W),K.j.Wp.LK())&&W.push(K.j); return W}; mt=function(K,W){if(W){hr=W==null||W===my||W[aYs]!==wIz?my:W;try{return j7(K)}finally{hr=void 0}}return j7(K)}; H_=function(K){var W=W_(K.j,S7,1);W||(W=new S7,fp(K,W));K=W;W=W_(K,tr,11);W||(W=new tr,rk(K,tr,11,W));return W}; Gp=function(K,W){var U=ty(K);return U.defaultView&&U.defaultView.getComputedStyle&&(K=U.defaultView.getComputedStyle(K,null))?K[W]||K.getPropertyValue(W)||"":""}; $Wz=function(){this.j=new QRD;this.X="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; Ib=function(K,W){g.hI(W,function(U,h){h=="style"?K.style.cssText=U:h=="class"?K.className=U:h=="for"?K.htmlFor=U:Y9p.hasOwnProperty(h)?K.setAttribute(Y9p[h],U):CL(h,"aria-")||CL(h,"data-")?K.setAttribute(h,U):K[h]=U})}; dZ=function(K,W,U,h,m,S,f,G,I){UH.call(this,K,W,U,h);this.dk=m;this.zm=S;this.G=f;this.U=G;this.Xx=I;this.W=!1;this.Y=Sp(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; OAC=function(K){K.Yx.publish("initializingmode");K.ZC(2);Jr(K.f5,"remote");Jr(K.f5,"miniplayer")}; giR=function(K,W){g.JM(K.element,"ytp-preview",W>=0);if(!(W<0||W===K.W)){K.W=W;W=243*K.scale;var U=141*K.scale,h=cpR(K.X,K.W,W);niR(K.bg,h,W,U,!0);K.uX.start()}}; e7=function(K,W){g.Uj.call(this);this.Ns=K;this.G=W;this.U=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.jV=new Headers;this.X=null;this.uX="GET";this.Ms="";this.j=!1;this.Y=this.N=this.W=null;this.J=new AbortController}; BL=function(){g.p.apply(this,arguments);this.element=null;this.G=new Set;this.Y={};this.J={};this.j={};this.jV=new Set;this.N=new ES;this.X=new ES;this.W=new ES;this.U=new ES}; g.wZ=function(K,W,U){W=W===void 0?!1:W;U=U===void 0?!1:U;var h=g.TA("INNERTUBE_CONTEXT");if(!h)return g.wG(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};h=g.Dh(h);g.hc("web_no_tracking_params_in_shell_killswitch")||delete h.clickTracking;h.client||(h.client={});var m=h.client;m.clientName==="MWEB"&&m.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(m.clientFormFactor=g.TA("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");m.screenWidthPoints=window.innerWidth;m.screenHeightPoints= window.innerHeight;m.screenPixelDensity=Math.round(window.devicePixelRatio||1);m.screenDensityFloat=window.devicePixelRatio||1;m.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var S=S===void 0?!1:S;var f=g.Uv(),G="USER_INTERFACE_THEME_LIGHT";f.v3(165)?G="USER_INTERFACE_THEME_DARK":f.v3(174)?G="USER_INTERFACE_THEME_LIGHT":!g.hc("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (G="USER_INTERFACE_THEME_DARK");S=S?G:F5F()||G;m.userInterfaceTheme=S;if(!W){if(S=u5R())m.connectionType=S;g.hc("web_log_effective_connection_type")&&(S=JYe())&&(h.client.effectiveConnectionType=S)}var I;if(g.hc("web_log_memory_total_kbytes")&&((I=g.qs.navigator)==null?0:I.deviceMemory)){var d;I=(d=g.qs.navigator)==null?void 0:d.deviceMemory;h.client.memoryTotalKbytes=""+I*1E6}g.hc("web_gcf_hashes_innertube")&&(S=kSC())&&(d=S.coldConfigData,I=S.coldHashData,S=S.hotHashData,h.client.configInfo=h.client.configInfo|| {},d&&(h.client.configInfo.coldConfigData=d),I&&(h.client.configInfo.coldHashData=I),S&&(h.client.configInfo.hotHashData=S));d=g.BO(g.qs.location.href);!g.hc("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(m.internalGeo=d.internalcountrycode);m.clientName==="MWEB"||m.clientName==="WEB"?(m.mainAppWebInfo||(m.mainAppWebInfo={}),m.mainAppWebInfo.graftUrl=g.qs.location.href,g.hc("kevlar_woffle")&&iAY.instance&&(d=iAY.instance,m.mainAppWebInfo.pwaInstallabilityStatus=!d.j&&d.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),m.mainAppWebInfo.webDisplayMode=PY(),m.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):m.clientName==="TVHTML5"&&(!g.hc("web_lr_app_quality_killswitch")&&(d=g.TA("LIVING_ROOM_APP_QUALITY"))&&(m.tvAppInfo=Object.assign(m.tvAppInfo||{},{appQuality:d})),d=g.TA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(m.tvAppInfo=Object.assign(m.tvAppInfo||{},{certificationScope:d}));if(!g.hc("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var J=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(Z){}J=void 0}J&&(m.timeZone=J)}(J=jS())?m.experimentsToken=J:delete m.experimentsToken;J=HL();rZ.instance||(rZ.instance=new rZ);h.request=Object.assign({},h.request,{internalExperimentFlags:J,consistencyTokenJars:E8(rZ.instance.j)});!g.hc("web_prequest_context_killswitch")&&(J=g.TA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(h.request.externalPrequestContext=J);m=g.Uv();J=m.v3(58);m=m.get("gsml","");h.user=Object.assign({}, h.user);J&&(h.user.enableSafetyMode=J);m&&(h.user.lockedSafetyMode=!0);g.hc("warm_op_csn_cleanup")?U&&(W=g.z0())&&(h.clientScreenNonce=W):!W&&(W=g.z0())&&(h.clientScreenNonce=W);K&&(h.clickTracking={clickTrackingParams:K});if(K=g.vB("yt.mdx.remote.remoteClient_"))h.remoteClient=K;Tp.getInstance().setLocationOnInnerTubeContext(h);try{var e=ab(),E=e.bid;delete e.bid;h.adSignalsInfo={params:[],bid:E};for(var B=g.z(Object.entries(e)),D=B.next();!D.done;D=B.next()){var a=g.z(D.value),Q=a.next().value, u=a.next().value;e=Q;E=u;K=void 0;(K=h.adSignalsInfo.params)==null||K.push({key:e,value:""+E})}var O,N;if(((O=h.client)==null?void 0:O.clientName)==="TVHTML5"||((N=h.client)==null?void 0:N.clientName)==="TVHTML5_UNPLUGGED"){var A=g.TA("INNERTUBE_CONTEXT");A.adSignalsInfo&&(h.adSignalsInfo.advertisingId=A.adSignalsInfo.advertisingId,h.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",h.adSignalsInfo.limitAdTracking=A.adSignalsInfo.limitAdTracking)}}catch(Z){g.wG(Z)}return h}; Q3=function(K,W,U){var h=h===void 0?800:h;var m=m===void 0?600:m;var S=document.location.protocol;K=VdR(S+"//"+K+"/signin?context=popup","feature",W,"next",S+"//"+location.hostname+"/post_login");zyz(K,U,h,m)}; g.Qh=function(K){K=K===void 0?{}:K;g.Uj.call(this);var W=this;this.j=this.W=0;this.X=Nq2();var U=g.vB("yt.networkStatusManager.instance.listen").bind(this.X);U&&(K.rateLimit?(this.rateLimit=K.rateLimit,U("networkstatus-online",function(){ApC(W,"publicytnetworkstatus-online")}),U("networkstatus-offline",function(){ApC(W,"publicytnetworkstatus-offline")})):(U("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),U("networkstatus-offline",function(){W.dispatchEvent("publicytnetworkstatus-offline")})))}; MaY=function(K,W){var U=!1;if(W==="")return U;W.split(",").forEach(function(h){var m={},S={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},f="ACTIVE";h[0]==="!"&&(h=h.substring(1),f="INACTIVE");h=h.split("-");h.length<3||(h[0]in RyF&&(S.clientName=RyF[h[0]]),h[1]in ype&&(S.platform=ype[h[1]]),S.applicationState=f,S.clientVersion=h.length>2?h[2]:"",m.remoteClient=S,K.remoteContexts?K.remoteContexts.push(m):K.remoteContexts=[m],U=!0)}); return U}; S$L=function(){function K(G,I){return G==null?I:G} var W=eB(),U=Math.max(W.length-1,0),h=C5$(W);W=h.j;var m=h.X,S=h.N,f=[];S&&f.push(new $B([S.url,S.j?2:0],K(S.depth,1)));m&&m!=S&&f.push(new $B([m.url,2],0));W.url&&W!=S&&f.push(new $B([W.url,0],K(W.depth,U)));h=g.CB(f,function(G,I){return f.slice(0,f.length-I)}); !W.url||(S||m)&&W!=S||(m=Pbp(W.url))&&h.push([new $B([m,1],K(W.depth,U))]);h.push([]);return g.CB(h,function(G){return dPs(U,G)})}; YB=function(K){var W;return!((W=K.Uz)==null||!W.postId)&&K.api.getPresentingPlayerType()!==2}; pIC=function(K,W,U){var h=K.YF?Math.max(W,U/K.YF):W,m=K.dH.X.N;m&&(h=W,K.YF&&(h=Math.max(W,U/K.YF*m)));rT(K.dH,W,U,h)}; SR=function(K,W){var U;return g.r(function(h){if(h.j==1)return K?g.T(h,g.Vm(OS,W),2):h.return();U=h.X;return h.return(U.delete("databases",K))})}; ois=function(){if(g.hc("embeds_web_enable_cookie_detection_fix")){if(!g.qs.navigator.cookieEnabled)return!1}else if(!lN.isEnabled())return!1;if(!lN.isEmpty())return!0;g.hc("embeds_web_enable_cookie_detection_fix")?lN.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):lN.set("TESTCOOKIESENABLED","1",{maxAge:60});if(lN.get("TESTCOOKIESENABLED")!=="1")return!1;lN.remove("TESTCOOKIESENABLED");return!0}; np=function(K,W,U){for(U=U===void 0?!1:U;K.W=W||(h[K]=U+1,K=Error(),vi$(K,"incident"),Ar(K))}}; AO=function(K,W,U,h){var m=U.rR;K[W]=h?function(S,f,G){return m(S,f,G,h)}:m}; ty=function(K){return K.nodeType==9?K:K.ownerDocument||K.document}; xW_=function(K,W){var U=0,h=!1;W=g.z(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;if(g.P(m,q9z)){m=g.P(m,q9z);var S={startTime:NaN,title:null,onActiveCommand:void 0},f=m.title;S.title=f?g.Rb(f):"";f=m.timeRangeStartMillis;f!=null&&(S.startTime=f);S.onActiveCommand=m.onActiveCommand;m=S;U===0&&m.startTime!==0&&(K.j[U].startTime=0,K.j[U].title="",K.j[U].onActiveCommand=m.onActiveCommand,U++,h=!0);K.j.length<=U&&(S=new yh,K.j.push(S),g.k(K,S),S.U5(K.gk,K.gk.children.length));K.j[U].startTime= m.startTime;K.j[U].title=m.title?m.title:"";K.j[U].onActiveCommand=m.onActiveCommand;K.j[U].index=h?U-1:U}U++}for(;U>>8&255;K.mf[K.lx+K.m4*2+1]=W&255;K.mf[K.Fw+K.m4]=U&255;K.m4++;W===0?K.S$[U*2]++:(K.matches++,W--,K.S$[(UM[U]+256+1)*2]++,K.HW[(W<256?h3[W]:h3[256+(W>>>7)])*2]++);return K.m4===K.Ks-1}; f6L=function(K,W){var U=g.vB("yt.embedded_player.embed_url");U&&(K?(W=W_(K,Ma,7)||new Ma,Ya(W,4,U),rk(K,Ma,7,W)):W&&(W.thirdParty={embedUrl:U}))}; tFs=function(K){K.menuItem||(K.menuItem=new mw(K.api,function(W){K.setVoiceBoostUserPreference(W)},function(){return K.getVoiceBoostUserPreference()},function(){return K.getVoiceBoostState()}),g.k(K,K.menuItem))}; Si=function(K,W,U){gd(K,K[MX]|0,W,U,NR(K[MX]|0))}; G1p=function(K){var W=/codecs="([^"]*)"/.exec(K.mimeType);return W&&W[1]?W[1]+" ("+K.itag+")":K.itag}; S8=function(K,W,U){g.kQ(function(){if(!fd(U)||t3(K,U))return!1;XL(K,W,U);return!0})()}; I6s=function(K,W,U,h,m){GX(U,W);h=zy({cttAuthInfo:Is(W)||void 0},W);U={csn:W,ve:U.getAsJson(),eventType:1};m&&(U.clientData=m);W==="UNDEFINED_CSN"?dH("visualElementShown",h,U):K?NY("visualElementShown",U,K,h):g.N_("visualElementShown",U,h)}; J3=function(){$G.apply(this,arguments)}; dj$=function(K,W){return g.PJ(K.api.V())&&ei(W)&&Vn(W)?g.UY(K.api.V(),g.mp(K.api.getVideoData())).then(function(U){var h;U&&(h={Authorization:"Bearer "+U});return h},void 0):EM()}; aE=function(K){this.D1=K}; D7=function(K,W,U,h,m,S,f,G,I,d,J,e){g.p.call(this);var E=this;this.iX=K;this.loader=W;this.policy=U;this.audioTrack=h;this.videoTrack=m;this.Gm=S;this.dH=f;this.gk=G;this.N=I;this.timing=d;this.uX=J;this.Ns=e;this.j=[];this.W={};this.Bp=this.Ik=!1;this.Ms=this.JK=this.zZ=0;this.Le={hd:0,qR:0};this.Pp={hd:0,qR:0};this.Y=null;this.hK={Wl:[],Sv:[]};this.eV={Wl:[],Sv:[]};this.G=null;this.U=[];this.xd={l4H:function(){return E.j}, dVr:function(){return E.W}, aMV:function(){E.j.length=0}, SOx:function(){return E.videoData.Le}, GaV:function(){return E.Ms}, kk5:function(B){E.Ms=B}, Z4X:function(B){E.Le.qR=B}, QT:function(B){E.G=B}, LJ:function(B){E.U=B}}; this.videoData=this.iX.getVideoData();this.J=this.videoData.latencyClass==="LOW"?this.policy.Eh:this.videoData.latencyClass==="ULTRALOW"?this.policy.Wrx:this.policy.ib;this.policy.XX&&(this.DA=new Bc(this.loader,this.policy,this.dH),g.k(this,this.DA))}; Hc=function(K){z1.call(this,function(){return K}); this.N=K}; rH=function(K){return K.pos>=K.j.byteLength}; cX=function(K){return Array.prototype.slice.call(K)}; TX=function(K){return K.lX==="9"||K.lX==="("||K.lX==="9h"||K.lX==="(h"}; ee2=function(K,W,U){g.UY(K.provider.C,g.mp(K.provider.videoData)).then(function(h){var m=!1;W.includes("&dt=")||W.includes("&cotn=")?m=!0:K.provider.C.L("qoe_with_networkless")&&(m=!0);var S=K.provider.C.L("qoe_send_and_write"),f=K.provider.C;h=as(W,f,K.provider.C.pageId,K.provider.C.sendVisitorIdHeader?K.provider.videoData.visitorData:void 0,h);f.L("html5_simplify_pings")&&(h=h||{});h?(h.method="POST",h.postBody=U,wH(W,h,{token:K.provider.videoData.G,XW:K.provider.videoData.oC,mdxEnvironment:K.provider.videoData.mdxEnvironment}, f,void 0,m,S&&K.eV)):m?(m=K.provider.C.L("networkless_ajax"),f={method:"POST",postBody:U},S&&K.eV?uE().sendAndWrite(W,f):m?g.ka(W,{method:"POST",postBody:U}):uE().sendThenWrite(W,f)):(S=U,S=S===void 0?"":S,JOY(W,S)||g.Qu(W,void 0,void 0,void 0,S))})}; $L=function(K,W){W<=K.status.status||(K.status={status:W,error:null},W===5&&K.Jf.resolve())}; EaR=function(K,W){var U=YL;g.OM(K,function(h,m){return U(W(h),W(m))})}; cc=function(K,W,U){K.jV&&K.jV.Vh(W,U)}; pl=function(){nd||(nd=new B0C);return nd}; gH=function(K,W){if(!K)return-1;try{for(var U=0;U=W)return U}catch(h){}return-1}; F_=function(K){K.j.stop();var W=Infinity;for(var U=g.z(K.data),h=U.next();!h.done;h=U.next())h=h.value,h.expire=0}else K=!1;return U||h||K?W:null}; kL=function(K,W,U,h,m){a6Y(K,W,U,void 0,h,m)}; ig=function(){eo.apply(this,arguments)}; vQ=function(K,W){K.DO=NaN;K.W3=null;K.Qg.stop();K.eV&&W&&K.eV.YO();K.M5=null;K.eV=null}; Ej=function(K){return K.j.getUint8(K.pos++)}; mvC=function(K,W){var U=K.length,h=typeof K==="string"?K.split(""):K;for(--U;U>=0;--U)U in h&&W.call(void 0,h[U],U,K)}; fL=function(K,W){W=Math.pow(10,W);return Math.floor(K*W)/W}; BI=function(){this.j=new Map}; wrp=function(K){return{targetAudioReadaheadMs:L_(K,1),targetVideoReadaheadMs:L_(K,2),backoffTimeMs:L_(K,4),playbackCookie:zX(K,7),videoId:fz(K,8)}}; Nd=function(){this.data=[];this.j=-1}; yu=function(K,W){K.C.L("html5_log_rebuffer_reason")&&(W={r:W,lact:A3()},K.mediaElement&&(W.bh=Rs(K.mediaElement)),K.rk("bufreason",W))}; $js=function(K,W,U){U=U===void 0?{}:U;return QPp(K,W,!1,U)}; g.y=function(K){g.Md.call(this,K);this.Xo=!0;this.jV=!1;this.listeners=[]}; ml=function(K){return!(!K||!K[Y0p])}; O7z=function(K){K=Pc(K);var W=pd();K=W?W.get(K):void 0;return K&&K.stringValue?K.stringValue:""}; Z7=function(K,W,U){if(W=cOY(W)){W=g.z(W);for(var h=W.next();!h.done;h=W.next())if((h=h.value)&&h.externalVideoId){var m=os(K,h.externalVideoId);m.instreamVideoAdRenderer||(m.instreamVideoAdRenderer=h,m.UB=U)}else UF("InstreamVideoAdRenderer without externalVideoId")}}; gaC=function(){naC=bg=sM=Vu=null}; N0p=function(K){X_(K,function(){var W=this;return function h(){var m,S,f,G,I,d,J,e,E;return L5(h,function(B){switch(B.j){case 1:g.bE(B,2);W.aW.tick("wasm_s");m=vc(W.f5)?function(D){return qd(Fds(W.f5),function(a){return a.CXx(D)})}:void 0; S=g.jV(W.C.experiments,"html5_wasm_initialization_delay_ms");f=W.L("html5_wasm_initialization_disable_sync");G=W.L("html5_wasm_initialization_wait_for_idle");if(!(S>0)){B.O5(4);break}I=l0;return Ev(B,qj(uR$(S)),5);case 5:I(B.X);case 4:if(!G){B.O5(6);break}d=l0;return Ev(B,qj(k1F()),7);case 7:d(B.X);case 6:return g.Bj(B,8),J=i72(W.webPlayerContextConfig.wasmModuleUrl,m,W.oa.bind(W),f),e=l0,Ev(B,qj(J),10);case 10:E=e(B.X);W.aW.tick(E.j?"wasm_fa":"wasm_fw");zes(W.C,E);g.xL(B,2);break;case 8:g.SV(B), W.aW.tick("wasm_ferr");case 2:g.VY(B),g.vr(B,0)}})}()})}; Cd=function(K,W,U,h,m,S){this.slot=W;this.j=U;this.X=new AOD(K,W,h,m,S)}; ReL=function(K){return K?K.dataset?K.dataset[UPs()]:K.getAttribute("data-loaded"):null}; MFs=function(){var K=[];kx(yOs,function(W){K.push(W)}); return K}; g.Ld=function(K,W,U){K.j=U?lg(W,!0):W}; W3=function(K,W){function U(){var m;return g.r(function(S){m=h-Date.now();return m<1E3?g.T(S,PER(K),0):(K3(U,0,Math.min(m,6E4)),S.O5(0))})} var h=Date.now()+W;U()}; wJ=function(K,W){hP.call(this);var U=this;this.N=K;this.j=[];this.X=new g.QC(function(){U.publish("log_qoe",{wvagt:"timer",reqlen:U.j?U.j.length:-1});if(U.j){if(U.j.length>0){var h=U.j.shift();prp(U,h.info)}U.j.length>0&&(h=U.j[0].time-(0,g.AI)(),U.X.start(Math.max(0,h)))}},0); g.k(this,this.X);W.subscribe("widevine_set_need_key_info",this.W,this)}; g.jy=function(K){this.D1=K}; oaR=function(K,W){for(var U;;){if(K.Kg===0&&(M7(K),K.Kg===0)){if(W===0)return 1;break}K.Wd=0;U=ji(K,0,K.window[K.Oz]);K.Kg--;K.Oz++;if(U&&(mB(K,!1),K.VX.C5===0))return 1}K.RQ=0;return W===4?(mB(K,!0),K.VX.C5===0?3:4):K.m4&&(mB(K,!1),K.VX.C5===0)?1:2}; Sy=function(K){g.p.call(this);this.j=K;this.logger=new g.io("onesie");this.Vt=new Map;this.N=this.X=!1;this.P2=this.Gm=null;this.W=!1}; b7_=function(K,W,U,h,m){var S=!1;h=Vj(K,h,m,function(f){var G=Z7p(f,U,W);S=G!==f&&G!=null;return G}); if(h!=null)return S&&!WF(h)&&FW(K,W),h}; f3=function(K){this.G=K}; sPC=function(){return{T:"svg",B:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{T:"path",B:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}}; VFp=function(K){var W=K.timing.lA();W.shost=eA(9,K.GL.ji);return W}; g.Il=function(K,W){var U=0;K=tP(String(K)).split(".");W=tP(String(W)).split(".");for(var h=Math.max(K.length,W.length),m=0;U==0&&m32&&h.push("hfr");W.isHdr()&&h.push("hdr");W.primaries==="bt2020"&&h.push("wcg");U.video_quality_features=h}}if(K=K.getPlaylistId())U.list=K;return U}; OX=function(K,W){g.y.call(this,{T:"div",Z:"ytp-storyboard-framepreview",K:[{T:"div",Z:"ytp-storyboard-framepreview-timestamp",bX:"{{timestamp}}"},{T:"div",Z:"ytp-storyboard-framepreview-img"}]});this.api=K;this.X=this.yH("ytp-storyboard-framepreview-img");this.j=null;this.frameIndex=NaN;this.events=new g.Te(this);this.fade=new g.Wr(this,100);g.k(this,this.events);g.k(this,this.fade);this.S(this.api,"presentingplayerstatechange",this.N);W&&this.S(this.element,"click",function(){W.m5()})}; c3=function(K,W){K.add(W==null||isNaN(W)?0:W+1)}; n3=function(K){return K.lX==="9h"||K.lX==="(h"}; nG=function(K){this.j=K;this.iv=(0,g.gW)(FX(16))}; xjC=function(){var K;return((K=uk)==null?void 0:K.c8)!==!1}; g.CED=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{d:"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 M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 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 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", fill:"#fff"}}]}}; YG=function(K,W){this.j=K;this.X=W}; l62=function(K,W){var U;return g.r(function(h){if(h.j==1)return g.T(h,ZP(W),2);U=h.X;return h.return(g.b5(U,["LogsRequestsStore"],{mode:"readwrite",e0:!0},function(m){var S=m.objectStore("LogsRequestsStore");return S.get(K).then(function(f){if(f)return f.status="QUEUED",g.Rh(S,f).then(function(){return f})})}))})}; K0$=function(K,W,U){var h;if((h=W.yd)!=null&&h.oz)try{var m,S=(m=K.cache)==null?void 0:Lds(m,E6(K,W),W.yd.mT);return S?U?OK(K.logger,function(){return g.o0(S,2)},"a"):S:void 0}catch(f){K.reportError(new cP(23,"RXO:read",f))}}; Ci=function(K){if(!$r(K)&&WF(K,K.iZ[MX]|0))throw Error();}; g.k9=function(K,W){g.kQ(function(){g.tD(W,function(U){GX(U,K);var h=zy({cttAuthInfo:Is(K)||void 0},K);U={csn:K,ve:U.getAsJson(),eventType:4};K==="UNDEFINED_CSN"?dH("visualElementShown",h,U):g.N_("visualElementShown",U,h)})})()}; W0z=function(K,W){return K.X.some(function(U){return U.info.kx===W})}; UqF=function(K){K&&(K.dataset?K.dataset[UPs()]="true":TGL(K))}; ik=function(K,W){W=String(W);K.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return K.createElement(W)}; tEs=function(K,W,U,h){U=U===void 0?{}:U;var m={};g.Zc(m,{opt_adElement:void 0,opt_fullscreen:void 0},U);var S=K.hx(W,U);U=S?S.zW:K.bv();if(m.opt_bounds)return U.j(zV("ol",h));if(h!==void 0)if(hNR(h)!==void 0)if(O2)K=zV("ue",h);else if(q$C(K),Nc=="i")K=zV("i",h),K["if"]=0;else if(W=K.hx(W,m)){b:{Nc=="i"&&(W.gB=!0);S=m.opt_fullscreen;S!==void 0&&AP(W,!!S);var f;if(S=!Dz().X)(S=AW(g.i5(),"CrKey")&&!(AW(g.i5(),"CrKey")&&AW(g.i5(),"SmartSpeaker"))||AW(g.i5(),"PlayStation")||AW(g.i5(),"Roku")||bRY()||AW(g.i5(), "Xbox"))||(S=g.i5(),S=AW(S,"AppleTV")||AW(S,"Apple TV")||AW(S,"CFNetwork")||AW(S,"tvOS")),S||(S=g.i5(),S=AW(S,"sdk_google_atv_x86")||AW(S,"Android TV")),S=!S;S&&(zx(),S=Rl(yp)===0);if(f=S){switch(W.oN()){case 1:j1F(W,"pv");break;case 2:K.cR(W)}P1("pv")}S=h.toLowerCase();if(f=!f)f=Al(nm().Lr,"ssmol")&&S==="loaded"?!1:g.BX(mqC,S);if(f&&W.oo==0){Nc!="i"&&(gJ.done=!1);f=m!==void 0?m.opt_nativeTime:void 0;Mc=f=typeof f==="number"?f:i_();W.QN=!0;var G=$R();W.oo=1;W.ez={};W.ez.start=!1;W.ez.firstquartile= !1;W.ez.midpoint=!1;W.ez.thirdquartile=!1;W.ez.complete=!1;W.ez.resume=!1;W.ez.pause=!1;W.ez.skip=!1;W.ez.mute=!1;W.ez.unmute=!1;W.ez.viewable_impression=!1;W.ez.measurable_impression=!1;W.ez.fully_viewable_audible_half_duration_impression=!1;W.ez.fullscreen=!1;W.ez.exitfullscreen=!1;W.Hm=0;G||(W.Rd().J=f);Q7(gJ,[W],!G)}(f=W.ew[S])&&tm(W.Ru,f);Al(nm().Lr,"fmd")||g.BX(SK2,S)&&W.Fk&&W.Fk.X(W,null);switch(W.oN()){case 1:var I=lI(S)?K.Y.custom_metric_viewable:K.Y[S];break;case 2:I=K.J[S]}if(I&&(h=I.call(K, W,m,h),Al(nm().Lr,"fmd")&&g.BX(SK2,S)&&W.Fk&&W.Fk.X(W,null),h!==void 0)){m=zV(void 0,S);g.Zc(m,h);h=m;break b}h=void 0}W.oo==3&&K.D$(W);K=h}else K=zV("nf",h);else K=void 0;else O2?K=zV("ue"):S?(K=zV(),g.Zc(K,fbY(S,!0,!1,!1))):K=zV("nf");return typeof K==="string"?U.j():U.j(K)}; GoD=function(K){K.policy.Cs&&K.l7&&!K.uJ?K.uJ=!0:K.p5.ES()}; IbR=function(K){return K.linearAd!=null&&K.adVideoStart!=null}; p3=function(K,W,U,h){P3.call(this,K,0,void 0,W,!(h===void 0||!h));for(K=0;K0;return W>=0&&(K=K.P9(),K.length||!U)?iO(K,W):U}; Pr=function(K,W,U){var h=arguments,m=document,S=h[1],f=ik(m,String(h[0]));S&&(typeof S==="string"?f.className=S:Array.isArray(S)?f.className=S.join(" "):Ib(f,S));h.length>2&&abp(m,f,h,2);return f}; wap=function(K,W){K.N=K.W.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:W},{offset:1,opacity:1}],{duration:200,fill:"forwards"});K.N.addEventListener("finish",function(){K.N=void 0;K.G.start();K.j="lingering"})}; Q1Y=function(K,W,U,h){U=new g.ad({T:"div",Hp:["ytp-menuitem"],B:{tabindex:"0",role:"menuitemradio","aria-checked":h?"true":"false"},K:[{T:"div",Hp:["ytp-menuitem-label"],K:[{T:"div",Hp:["ytp-menuitem-container-with-badge"],K:[{T:"div",bX:"{{label}}"},K.J]}]}]},U,K.mZ(W));U.listen("click",function(){K.XS(W)}); return U}; qc=function(){this.N=0;this.j=[];this.X=!1}; C3=function(K,W,U,h){vh.call(this,K,{T:"button",Z:"ytp-skip-ad-button",K:[{T:"div",Z:"ytp-skip-ad-button__text"}]},"skip-button",W,U,h);var m=this;this.X=!1;this.W=this.yH("ytp-skip-ad-button__text");this.transition=new g.Wr(this,500,!1,100,function(){m.hide()}); g.k(this,this.transition);this.j=new x9(this.element,15E3,5E3,.5,.5,!0);g.k(this,this.j);this.hide()}; YKC=function(K,W){var U=$qp;return Object.prototype.hasOwnProperty.call(U,K)?U[K]:U[K]=W(K)}; QY=function(K){var W=(0,g.AI)();K.c7=W}; fz=function(K,W){if(K=zX(K,W))return g.lk(K)}; c6s=function(K){a:{var W=K.initData;try{for(var U=0,h=new DataView(W.buffer);U0){var f=h.getUint32(U+28);S+=f*16+4}var G=h.getUint32(U+S-4);try{var I=OXC(W.subarray(U+S,U+S+G));if(I!==null){var d=I;break a}}catch(J){}}U+=m}d=null;break a}catch(J){d=null;break a}d=void 0}if(d!=null)for(W=n_(gr(d,7,void 0,L3)),W==null||K.yh||(K.cryptoPeriodIndex=W),W=n_(gr(d,10,void 0,L3)),W!=null&&W>0&& !K.yh&&(K.j=W),d=O$(d,2,aLp,void 0===eO$?2:4),d=g.z(d),h=d.next();!h.done;h=d.next())W=K.N,U=W.push,h=uQ(h.value),h=g.o0(h,4),U.call(W,h)}; W2=function(K,W,U){U=U===void 0?!1:U;var h,m,S,f;g.r(function(G){if(G.j==1){h=K.V();if(U&&(!g.Hh(h)||KJ(W)!=="embedded")||W.gN||KJ(W)!=="adunit"&&(g.PJ(h)||vR(h)||g.l1(h)||g.Lr(h)||g.r8(h)||Cr(h)==="WEB_CREATOR"))return G.return();m=g.UY(h,g.mp(W));return m.j?g.T(G,m.j,3):(S=m.getValue(),G.O5(2))}G.j!=2&&(S=G.X);f=S;return G.return(nEY(K,W,f))})}; W_=function(K,W,U,h){var m=K.iZ,S=m[MX]|0;W=b7_(m,S,W,U,h);if(W==null)return W;S=m[MX]|0;if(!WF(K,S)){var f=gEY(W);f!==W&&($r(K)&&(m=K.iZ,S=m[MX]|0),W=f,S=gd(m,S,U,W,h),FW(m,S))}return W}; F0D=function(K,W){if(W.title){var U=g.Rb(W.title);K.updateValue("title",U)}if(W.dialogMessages){U=g.z(W.dialogMessages);for(var h=U.next();!h.done;h=U.next())h=Us(h.value),K.uX.appendChild(h)}W.cancelLabel&&(U=g.Rb(W.cancelLabel),K.updateValue("cancelLabel",U),K.j.S(K.W,"click",function(m){return K.Sb(m)})); W.confirmLabel&&(W=g.Rb(W.confirmLabel),K.updateValue("confirmLabel",W),K.j.S(K.U,"click",function(m){return K.Gs(m)})); K.j.S(K.J,"click",function(m){return K.qG(m)})}; uJ$=function(K){K.CONN=h0(z3("0"));K.WT=h0(function(){return Date.now().toString()})}; g.jW=function(K){this.W=K.Ofe||null;this.N=K.Ab||!1;this.X=void 0}; xM=function(K){for(var W=0,U=K.j,h=U+10,m=K.X;U=W&&m.end<=U&&(K.playback.removeCueRange(m),K.X.delete(m.getId()),K.bZ({rmAdCR:1}));h=rw(K,W/1E3);W=h.Go;h=h.PL;W&&(h=h*1E3-W.Ua,ZXL(K,W,h,W.Ua+h),h=K.X.get(W.cpn))&&(h.start=W.Ua,h.end=W.Ua+W.durationMs);if(W=rw(K,U/1E3).Go){var S;h="playback_timelinePlaybackId_"+W.Ze+"_video_id_"+((S=W.videoData)==null?void 0:S.videoId)+"_durationMs_"+W.durationMs+ "_enterTimeMs_"+W.Ua+"_parentReturnTimeMs_"+W.W2;K.Ro("Invalid_clearEndTimeMs_"+U+"_that_falls_during_"+h+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; bXR=function(){var K=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; s1$=function(K){/[^a-zA-Z0-9;.!_-]/.test(K)&&(K=K.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return K}; a8=function(K){K.removeCueRange(K.OL);K.OL=null}; VEC=function(K,W){this.j=K;this.index=W}; Xap=function(K){var W=K===void 0?{}:K;K=W.vN===void 0?!1:W.vN;var U=W.vS===void 0?!1:W.vS;W=W.WM===void 0?!1:W.WM;return K?W?3:2:U?-1:1}; vEL=function(K,W){var U=g.LS(K,0,1952868452);K=g.LS(K,0,1953658222);if(U&&K){U.skip(1);var h=ww(U)<<16|QQ(U);U.skip(4);h&1&&U.skip(8);h&2&&U.skip(4);if(h&8){h=U.j;var m=N7(U);U.data.setUint32(U.offset+h,W>1?Math.ceil(m*W):Math.floor(m*W))}K.skip(1);U=ww(K)<<16|QQ(K);if(U&256){h=U&1;m=U&4;var S=U&512,f=U&1024,G=U&2048;U=N7(K);h&&K.skip(4);m&&K.skip(4);h=(S?4:0)+(f?4:0)+(G?4:0);for(m=0;m1?Math.ceil(f*W):Math.floor(f*W)),K.skip(h)}}}; Y7=function(K,W){if(K=$7(W)[K])return typeof K==="number"?K:K[K.length-1]}; g.C0s=function(K,W,U,h){var m=K.G!==U,S=K.U!==h;K.iK=W;K.G=U;K.U=h;Os(K)&&(W=K.X)!=null&&(W.scale=h?1.5:1);qKY(K);K.j.length===1&&(K.j[0].width=U||0);m&&g.MK(K);K.X&&S&&Os(K)&&(K.X.isEnabled&&(U=K.U?135:90,h=U-K.Ns,K.M5.style.height=U+"px",g.Zd(K.uX,"transform","translateY("+-h+"px)"),g.Zd(K.progressBar,"transform","translateY("+-h+"px)")),xqF(K.X))}; Cp=function(K,W,U,h,m){var S=K.j;S!==K.app.E5()&&K.app.gy();K.C.L("html5_sabr_csdai_seek_log")||(m="");var f;S.seekTo(W,Object.assign({},{JS:"application_timelinemanager"+((f=m)!=null?f:"")},U));lbp(K,h)}; Ka=function(K){this.j=K}; gxR=function(K,W){a:{var U=K.j?new g.rt(Hs(K.j),K.j.getHeight()):new g.rt(0,0);W=W===void 0?Fl:W;W!==null&&W!=W.top&&(W=W.top);var h=0,m=0;try{var S=W.document,f=S.body,G=S.documentElement;if(S.compatMode=="CSS1Compat"&&G.scrollHeight)h=G.scrollHeight!=U.height?G.scrollHeight:G.offsetHeight,m=G.scrollWidth!=U.width?G.scrollWidth:G.offsetWidth;else{var I=G.scrollHeight,d=G.scrollWidth,J=G.offsetHeight,e=G.offsetWidth;G.clientHeight!=J&&(I=f.scrollHeight,d=f.scrollWidth,J=f.offsetHeight,e=f.offsetWidth); I>U.height?I>J?(h=I,m=d):(h=J,m=e):IW&&(isNaN(U)||h.start0)){D.O5(5);break}return g.T(D,Fy(5E3),6);case 6:J={playerretry:I,playerretrysrc:U},f||(J.recover="embedded"),d=gw(S,J);case 5:return g.T(D,hrC(W,d).then(h,m),7);case 7:if(e=D.X)return D.return();I++;D.O5(2);break;case 4:E=f?"auth":"manifest.net.retryexhausted";B=f?2:1;if(!f&&Math.random()< 1E-4)try{g.eI(new g.EB("b/152131571",btoa(S)))}catch(Q){}return D.return(Promise.reject(new g.F3(E,{backend:"gvi"},B)))}})}; k7=function(K,W,U,h,m,S,f,G,I,d,J,e){g.p.call(this);this.Sx=K;this.slot=W;this.layout=U;this.m1=h;this.Lc=m;this.ZA=S;this.TK=f;this.hS=G;this.lZ=I;this.dk=d;this.params=e;this.l5=!0;K=uL(J);if(!K)throw Error("Invalid params for sublayout");this.on=K}; m1p=function(K){var W=fL(K.n_.v2,2),U=K.Ru.N,h=K.n_,m=m5(K),S=tY(m.W),f=tY(m.G),G=tY(h.volume),I=fL(m.Y,2),d=fL(m.uX,2),J=fL(h.v2,2),e=fL(m.Ns,2),E=fL(m.hK,2);h=fL(h.bT,2);var B=K.AV().clone().round();K=K.B2&&K.B2.N?(K.B2?K.B2.N:null).clone().round():null;m=iL(m,!1);return{rcx:W,aG:U,aX:S,QZ:f,G1:G,hm:I,X1:d,v2:J,dh:e,Nw:E,bT:h,position:B,oS:K,HC:m}}; SDp=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;a:switch(La(K.j,U.slot).W){case "not_filled":var h=!0;break a;default:h=!1}h&&(K.Yd.L1("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",U.slot),K.j.dK(U.slot))}}; zT=function(K){var W={};K=K.split("\r\n");for(var U=0;U1){for(var W=[K[0]],U=1;U=f&&a<=J&&S.push(E)}I>0&&(K.uX.style.height=I+"px");f=K.W[h];J=S;E=m;D=I;a=h===0;a=a===void 0?!1:a;YDs(f,D);e=J;B=f.X;a=a===void 0?!1:a;var Q=1E3/e.length,u=[];u.push({x:0,y:100});for(var O=0;O0&&(U=S[S.length-1])}g.MK(K);G=[];W=g.z(W.heatMarkersDecorations||[]);for(m=W.next();!m.done;m=W.next())if(m=g.P(m.value,OGs))I=m.label,h=U=d=void 0,G.push({visibleTimeRangeStartMillis:(d=m.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(U=m.visibleTimeRangeEndMillis)!=null?U:-1,decorationTimeMillis:(h=m.decorationTimeMillis)!=null?h:NaN,label:I?g.Rb(I):""});K.heatMarkersDecorations=G}}; G3=function(K,W){if(!W.Br||!K.D.kF()){var U=W.Pz||1E4,h=tGR(W);K.j?W.videoId&&W.videoId!==K.videoId&&(g.pz(K.j),K.videoId=W.videoId,h?(cMz(K,U,W),K.Kr()):(K.z9(),K.j.dispose(),K.j=null)):h&&(W.videoId&&(K.videoId=W.videoId),cMz(K,U,W),K.Kr())}}; VQ=function(K,W){this.version=K;this.args=W}; mA=function(K,W,U,h,m){this.loader=K;this.policy=W;this.schedule=U;this.OD=h;this.jV=m;this.Ms=NaN;this.X=this.Y=this.W=null;this.j=this.U=this.G=this.startTimeSecs=NaN;this.N=!1;this.J=NaN}; Xy=function(K){return/(vp9|vp09|vp8|avc1|av01)/.test(K)}; qn=function(K){return v2(K.dH,!K.policy.cY,K.policy.UK)}; CJ=function(K,W){return x7(K.segments,function(U){return W-U.kx})}; lL=function(K,W){return typeof W==="string"?K.getElementById(W):W}; VAp=function(K){var W=W===void 0?!1:W;var U=U===void 0?!1:U;var h=(0,g.AI)(),m={startTime:h,ticks:{},infos:{}},S=W?g.vB("yt.logging.gzipForFetch",!1):!0;if(LJ&&S){if(!K.body)return K;try{var f=U?K.body:typeof K.body==="string"?K.body:JSON.stringify(K.body);S=f;if(!U&&typeof f==="string"){var G=i6L(f);if(G!=null&&(G>n2Y||G=kWz)if(WW++,g.hc("abandon_compression_after_N_slow_zips_lr")){W=WW/K$;var d=iGC/g.Cz("compression_disable_point");K$>0&&K$%g.Cz("compression_disable_point")===0&&W>=d&&(LJ=!1)}else LJ=!1;zrL(m)}}K.headers=Object.assign({},{"Content-Encoding":"gzip"},K.headers||{});K.body=S;return K}catch(J){return jv(J),K}}else return K}; UT=function(K,W,U,h){g.y.call(this,{T:"div",Z:"ytp-chapter-container",K:[{T:"button",Hp:["ytp-chapter-title","ytp-button"],K:[{T:"span",B:{"aria-hidden":"true"},Z:"ytp-chapter-title-prefix",bX:"\u2022"},{T:"div",Z:"ytp-chapter-title-content",bX:"{{chapterTitle}}",B:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:K.L("player_tooltip_data_title_killswitch")?h:"","data-tooltip-title":h}},{T:"div",Z:"ytp-chapter-title-chevron",K:[{T:"svg",B:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{T:"path", B:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.D=K;this.W=W;this.G="";this.currentIndex=0;this.X=void 0;this.N=!0;this.Ns=this.yH("ytp-chapter-container");this.j=this.yH("ytp-chapter-title");this.U=this.yH("ytp-chapter-title-content");this.J();this.updateVideoData("newdata",this.D.getVideoData());this.S(K,"videodatachange",this.updateVideoData);this.S(K,"resize",this.J);this.S(this.Ns,"click",this.onClick);this.S(K,g.$w(U),this.Ym);this.S(K,"onLoopRangeChange", this.Ym);this.S(K,"innertubeCommand",this.onClickCommand);(K=g.yC(this.D.V()))&&g.JM(this.j,"ytp-profile-page",!0);g.HB(this.D.V())||K||Yb(this.D,this.U,this)}; AMs=function(K,W){var U=document.createElement("img");K.crossOrigin&&(U.crossOrigin=K.crossOrigin);U.src=K.levels[W.L8].ej(W.pD);U.onload=function(){var h=W.L8,m=W.pD;K.j!==null&&(K.j.onload=null,K.j=null);h=K.levels[h];h.loaded.add(m);Nvz(K);var S=h.columns*h.rows;m*=S;h=Math.min(m+S-1,h.gE()-1);m=[m,h];K.publish("l",m[0],m[1])}; return U}; RrF=function(){var K,W=(K=m6.getEntriesByType)==null?void 0:K.call(m6,"mark");W&&W.forEach(function(U){if(U.name.startsWith("mark_")){var h;(h=m6.clearMarks)==null||h.call(m6,U.name)}})}; hZ=function(K,W){HO(K,"cat",W)}; g.LS=function(K,W,U){for(;jz(K,W);){var h=mc(K,W);if(h.type===U)return h;W=Sz(h.type)?W+8:W+h.size}return null}; yMp=function(K,W){for(var U in K)if(!W.call(void 0,K[U],U,K))return!1;return!0}; MDC=function(K,W){for(var U=0;U=.15&&K.qe("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),K.j=0,aI(K),g.WR(K.api.getRootNode(),"ytp-grid-scrolling"))}; qDp=function(K,W,U,h,m){this.callback=K;this.slot=W;this.layout=U;this.zm=h;this.oD=m;K=Sp(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; wS=function(K){this.iZ=qR(K,4)}; x1p=function(K){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;K.j=K.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);K.X=K.clientY+W}}; L1e=function(K,W){return W?CpD(W):K?ll$(K):Promise.resolve()}; j7=function(K){K=K.iZ;return QE(K,K[MX]|0,KA_)}; K7=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D,a,Q,u,O){this.lZ=K;this.m1=W;this.oD=U;this.zm=h;this.yg=m;this.E_=S;this.hS=f;this.ZA=G;this.dk=I;this.au=d;this.Oa=J;this.Hl=e;this.xm=E;this.kd=B;this.JO=D;this.Xx=a;this.TK=Q;this.context=u;this.Pu=O}; WAe=function(K,W){var U=W/((K.U?135:90)-K.Ns)*K.Ns;g.Zd(K.progressBar,"transform","translateY("+-W+"px)");g.Zd(K.uX,"transform","translateY("+-W+"px)");g.Zd(K.M5,"transform","translateY("+U+"px)");K.M5.style.height=W+U+"px";K.element.parentElement&&(K.element.parentElement.style.height=K.Ns-U+"px")}; UJ_=function(K){K.qs()||(K.N.resolve(),K.N=new g.JW)}; h_s=function(K){return K.fields.map(function(W){return W.fieldName})}; jHF=function(K){return g.LL(K.j,function(W){return!!W.info.video&&W.info.video.isHdr()})}; mJe=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next())if(U=U.value,U.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var h=g.P(U.fulfillmentContent.fulfilledLayout,Wy);if(h&&(h=g.P(h.renderingContent,$F))&&h.associatedPlayerBytesLayoutId===K)return U}}; YF=function(K){g.Ih.call(this,K,{T:"button",Hp:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{T:"div",Z:"ytp-skip-intro-button-text",bX:"Skip Intro"}]},100);var W=this;this.X=!1;this.j=new g.QC(function(){W.hide()},5E3); this.CO=this.sF=NaN;g.k(this,this.j);this.Y=function(){W.show()}; this.W=function(){W.hide()}; this.N=function(){var U=W.D.getCurrentTime();U>W.sF/1E3&&U=0}; gEY=function(K){var W=K.iZ,U=W[MX]|0;return WF(K,U)?C6(K,W,U)?OT(K,W,!0):new K.constructor(cW(W,U,!1)):K}; fgs=function(K){if(K.length!==0){var W=[];K=g.z(K);for(var U=K.next();!U.done;U=K.next())(U=n$(U.value))&&W.push(U);return{commandExecutorCommand:{commands:W}}}}; G$C=function(K,W,U){U=U===void 0?{}:U;var h=new Image,m=""+t8L++;gS[m]=h;h.onload=h.onerror=function(){W&&gS[m]&&W();delete gS[m]}; U.scrubReferrer&&(h.referrerPolicy="no-referrer");h.src=K}; Igz=function(K,W){return Fp(K,W)-1}; dJp=function(K){switch(K){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; uJ=function(K){this.value=K}; kF=function(K,W){return K1p(K,W||{},!0)}; iJ=function(K,W,U,h,m,S,f,G,I){function d(){(J&&"readyState"in J?J.readyState:0)===4&&W&&g.kQ(W)(J)} U=U===void 0?"GET":U;h=h===void 0?"":h;G=G===void 0?!1:G;var J=Jis();if(!J)return null;"onloadend"in J?J.addEventListener("loadend",d,!1):J.onreadystatechange=d;g.hc("debug_forward_web_query_parameters")&&(K=e_Y(K));J.open(U,K,!0);S&&(J.responseType=S);f&&(J.withCredentials=!0);U=U==="POST"&&(window.FormData===void 0||!(h instanceof FormData));if(m=ERp(K,m))for(var e in m)J.setRequestHeader(e,m[e]),"content-type"===e.toLowerCase()&&(U=!1);U&&J.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); I&&"onprogress"in J&&(J.onprogress=function(){I(J.responseText)}); if(G&&"setAttributionReporting"in XMLHttpRequest.prototype){K={eventSourceEligible:!0,triggerEligible:!1};try{J.setAttributionReporting(K)}catch(E){jv(E)}}J.send(h);return J}; N5=function(K){z9.call(this,"fully_viewable_audible_half_duration_impression",K)}; g.AZ=function(K,W){var U=new BnC(4096);W(U,K);return new Uint8Array(U.j.buffer,U.j.byteOffset,U.pos)}; DJY=function(K,W){return g.sZ(K,{query:W},function(U){return U.delete().then(function(){return g.V3(U)})}).then(function(){})}; Htp=function(K,W){return od(K,W)?(K.ov?K.ov.start():K.Wb(),!0):!1}; rie=function(K,W){return K.L("html5_onesie_sync_request_encryption")||(W==null?0:W.TM)||g.Hh(K.C)&&K.L("html5_embed_onesie_use_sync_encryption")?!1:!!M_()}; RI=function(K,W,U,h){var m=new g.Ff(W,void 0,"Video Override");g.It.call(this,h.text||"",K,W,U,"Video Override",function(){g.u5(U,m)}); var S=this;g.$C(this.element,"ytp-subtitles-options-menu-item");this.setting=h.option.toString();K=h.options;this.settings=g.GG(K,this.xJ,this);this.N=m;g.k(this,this.N);W=new g.ad({T:"div",Z:"ytp-menuitemtitle",bX:"Allow for a different caption style if specified by the video."},0);g.k(this,W);this.N.j_(W,!0);this.X=new g.ad({T:"div",Z:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},K:[{T:"div",Z:"ytp-menuitem-label",bX:"On"}]},-1);g.k(this,this.X);this.N.j_(this.X,!0);this.S(this.X.element, "click",function(){Tn_(S,!0)}); this.j=new g.ad({T:"div",Z:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},K:[{T:"div",Z:"ytp-menuitem-label",bX:"Off"}]},-2);g.k(this,this.j);this.N.j_(this.j,!0);this.S(this.j.element,"click",function(){Tn_(S,!1)}); this.Wa(g.CB(K,this.xJ))}; agC=function(K){var W=g.N$(K.X),U=0,h;for(h in K.j)g.BX(W,h)&&K.j[h]==1&&(U+=K.X[h][1],K.j[h]=2);return U}; PW=function(K){var W=yE();switch(W){case 1:M5.h5vcc.traceEvent.traceBegin("YTLR",K);break;case 2:M5.performance.mark(K+"-start");break;case 0:break;default:fl(W,"unknown trace type")}}; p$=function(K){g.GP.call(this);this.j=!1;this.Zg=0;this.handler=new jg(this);g.k(this,this.handler);this.durationMs=K;this.timer=new g.j8(100);g.k(this,this.timer);this.handler.S(this.timer,"tick",this.Ym);this.X={seekableStart:0,seekableEnd:K/1E3,current:0};this.start()}; oI=function(K,W,U,h){var m=h;Ci(K);h=K.iZ;K=yj(K,h,h[MX]|0,U,W,2,void 0,!0);m=m!=null?K_(m,U):new U;K.push(m);W=U=K===Li?7:K[MX]|0;(m=WF(m))?(U&=-9,K.length===1&&(U&=-4097)):U|=4096;U!==W&&OF(K,U);m||FW(h)}; g.N_=function(K,W,U){U=U===void 0?{}:U;var h=g.ZQ;g.TA("ytLoggingEventsDefaultDisabled",!1)&&g.ZQ===g.ZQ&&(h=null);NY(K,W,h,U)}; wyL=function(K){var W=0;return function(){return W0&&U.push(g.k$("BR"));U.push(g.Tk(S))}):U.push(g.Tk(h))}return U}; uL=function(K){for(var W=K.z5,U=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],h=g.z(gT()),m=h.next();!m.done;m=h.next())U.push(m.value);if(WC(W,{Xd:U,oR:["LAYOUT_TYPE_MEDIA_BREAK"]}))return z_R(K);W=K.z5;U=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];h=g.z(gT());for(m=h.next();!m.done;m=h.next())U.push(m.value);if(WC(W,{Xd:U,oR:["LAYOUT_TYPE_MEDIA"]}))return UC(K.z5.clientMetadata,"metadata_type_ad_intro")?ybY(K):zNe(K)}; NnF=function(K,W){return K.N===void 0?!1:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===5E3?K.N===72:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===1E4?K.N===74:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===5E3?K.N===71:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===1E4?K.N===73:!1}; h4=function(K){jg.call(this);this.j=K;this.S(this.j,"onAdUxUpdate",this.U)}; Ai$=function(K,W){K.sY()?W=0:K.uA==-1?W=0:(W-=K.uA,W=W>Math.max(1E4,K.N/3)?0:W);var U=K.Y(K)||{};U=U.currentTime!==void 0?U.currentTime:K.Ms;var h=U-K.Ms,m=0;h>=0?(K.uX+=W,K.eV+=Math.max(W-h,0),m=Math.min(h,K.uX)):K.vp+=Math.abs(h);h!=0&&(K.uX=0);K.Bp==-1&&h>0&&(K.Bp=Mc>=0?i_()-Mc:-1);K.Ms=U;return m}; AN=function(K,W,U){UF("Slot stage was "+W+" when calling method "+U,K)}; jh=function(K,W){typeof K=="number"&&(K=(W?Math.round(K):K)+"px");return K}; R_D=function(K,W,U){W&&(K.QU=W);U&&(K.n6=U)}; hNR=function(K){var W=lI(K)?"custom_metric_viewable":K.toLowerCase();return mQ(Sh,function(U){return U==W})}; yiR=function(K,W,U,h){var m=U,S=f1(W.width,W.height);K.d0?m=US?{width:W.width,height:W.width/m,aspectRatio:m}:mm?K.width=K.height*U:U=U?W=U:(K=Math.floor(W*100+.001)%5,W=K===0?W:Math.floor((W-K*.01)*100+.001)/100);return W}; PVY=function(K){var W=1,U=g.jV(K.Tm.experiments,"html5_default_ad_gain");U&&K.isAd()&&(W=U);var h,m;U=((h=K.W)==null?void 0:h.audio.N)!=null?(m=K.W)==null?void 0:m.audio.N:K.lj;isNaN(U)||(K.Sz=4);return Math.min(1,Math.pow(10,-U/20))||W}; pyR=function(K,W,U){return new Promise(function(h,m){function S(){E||(E=new e6_(f.result,{closed:e}));return E} var f=W!==void 0?self.indexedDB.open(K,W):self.indexedDB.open(K);var G=U.blocked,I=U.blocking,d=U.D2p,J=U.upgrade,e=U.closed,E;f.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(f.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");B.dataLoss&&B.dataLoss!=="none"&&Px("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:Nj(K)});var D=S(),a=new t4(f.transaction); J&&J(D,function(Q){return B.oldVersion=Q},a); a.done.catch(function(Q){m(Q)})}catch(Q){m(Q)}}); f.addEventListener("success",function(){var B=f.result;I&&B.addEventListener("versionchange",function(){I(S())}); B.addEventListener("close",function(){Px("IDB_UNEXPECTEDLY_CLOSED",{dbName:Nj(K),dbVersion:B.version});d&&d()}); h(S())}); f.addEventListener("error",function(){m(f.error)}); G&&f.addEventListener("blocked",function(){G()})})}; oRR=function(K){this.iZ=qR(K)}; bk=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}}; db=function(K,W,U){U=U===void 0?1:U;if(W.Av()){var h=Gt(K,U,W,!1);K.cancelPlayback(4,U);K.z4(h);h.Kx();U===1&&(K.ZC(1),g.HB(K.C)&&!Y9(W)?(W.dispose(),K.rH().dispose()):OAC(K))}else W.dispose(),(W=K.Yv({playerType:U}))&&W.dispose(),I9(K.yX())&&U===2&&K.pA()}; btp=function(K,W,U){var h=W.videoId;h&&(K.videoId=h,U.video_id||(U.video_id=h));if(h=W.title)K.title=h,U.title||(U.title=h);if(h=W.lengthSeconds)K.lengthSeconds=Number(h),U.length_seconds||(U.length_seconds=h);if(h=W.keywords)K.keywords=Zts(h);if(h=W.channelId)K.R5=h,U.ucid||(U.ucid=h);if(h=W.viewCount)K.rawViewCount=Number(h);if(h=W.author)K.author=h,U.author||(U.author=h);if(U=W.shortDescription)K.shortDescription=U;if(U=W.isCrawlable)K.isListed=U;if(U=W.musicVideoType)K.musicVideoType=U;U=W.isLive; U!=null&&(K.isLivePlayback=U);if(U||W.isUpcoming)K.isPremiere=!W.isLiveContent;if(U=W.thumbnail)K.i$=J4(U);if(U=W.isExternallyHostedPodcast)K.isExternallyHostedPodcast=U;(U=W.stationType)&&U!=="STATION_TYPE_UNKNOWN"&&(K.WK5=!0);W=W.viewerLivestreamJoinPosition;if(W==null?0:W.utcTimeMillis)K.xE=eh(W.utcTimeMillis)}; KU2=function(K,W,U){var h,m,S,f,G,I,d;return g.r(function(J){if(J.j==1){S=((h=W)==null?void 0:(m=h.xN)==null?void 0:m.identity)||VX;I=(f=W)==null?void 0:(G=f.xN)==null?void 0:G.sessionIndex;var e=g.EC(K.j.eY(S,{sessionIndex:I}));return g.T(J,e,2)}d=J.X;return J.return(Promise.resolve(Object.assign({},sHL(U),d)))})}; V8p=function(K,W,U){K.j="The stream is broken @"+K.X+". Error: "+U+". With input:\n"+W;throw Error(K.j);}; E4e=function(K,W){var U;return!((U=K.Y)==null||!U.U.has(W))||W0z(K.N,W)}; Xyp=function(K){if(K=K.commonConfig)this.url=K.url,this.urlQueryOverride=K.urlQueryOverride,K.ustreamerConfig&&(this.aN=BC(K.ustreamerConfig)||void 0)}; HC=function(K){if(!K.L("use_rta_for_player"))if(K.L("fetch_att_independently"))g.yG(K.PA);else{var W=K.getVideoData().botguardData;W&&g.DR(W,K.C,K.getVideoData().Q9||"")}}; g.FF=function(K,W){if(!rb){var U=pl();oj(U,{RT:vRY,KT:Tt});var h={IB:{feedbackEndpoint:a9(wb),modifyChannelNotificationPreferenceEndpoint:a9(Qi),playlistEditEndpoint:a9(Yj),shareEntityEndpoint:a9(f3),subscribeEndpoint:a9(OC),unsubscribeEndpoint:a9(cC),webPlayerShareEntityServiceEndpoint:a9(n1)}},m=Tp.getInstance(),S={};m&&(S.client_location=m);K===void 0&&(K=qjL());W===void 0&&(W=U.resolve(vRY));xJe(h,W,K,S);oj(U,{RT:CVs,Zb:gb.instance});rb=U.resolve(CVs)}return rb}; lge=function(K){var W=zl()&&um()>=67&&!K.api.V().Y;K=K.api.V().disableOrganicUi;return!g.PP("tizen")&&!kj&&!W&&!K}; im=function(K){this.D1=K}; zt=function(K,W){K.coldHashData=W;g.Vk("yt.gcf.config.coldHashData",K.coldHashData||null)}; LAs=function(K,W){W=W instanceof cP?W:new cP(5,"TVD:error",W);return K.reportError(W)}; Y$2=function(K,W,U){W!==K.W&&(K.W&&(K.Ns=!0),K.W=W,K.wh(W,K.videoTrack,U))}; W9s=function(K){if(K=K.colorInfo)if(K=K.transferCharacteristics)return K9$[K];return null}; ZL$=function(K){var W=W===void 0?51:W;var U=[];PX(K,$E,6).forEach(function(h){NB(h,2)>W&&U.push(NB(h,1))}); return U}; A4=function(K){g.y.call(this,{T:"div",Z:"ytp-seek-overlay",K:[{T:"div",Hp:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],K:[{T:"div",Hp:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{T:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{T:"path",B:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{T:"div",Z:"ytp-seek-overlay-duration",bX:"{{durationBack}}"}]},{T:"div",Hp:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],K:[{T:"div",Z:"ytp-seek-overlay-duration",bX:"{{durationForward}}"},{T:"div",Hp:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{T:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{T:"path",B:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{T:"div",Z:"ytp-seek-overlay-message",K:[{T:"div",Z:"ytp-seek-overlay-message-icon",bX:"{{icon}}"},{T:"div",Z:"ytp-seek-overlay-message-text", bX:"{{text}}"}]}]});var W=this;this.D=K;this.U=0;this.j="hidden";this.Y=this.yH("ytp-seek-overlay-animation-back");this.J=this.yH("ytp-seek-overlay-animation-forward");this.Ms=this.yH("ytp-seek-overlay-message");this.G=new g.QC(function(){uDs(W)},g.jV(this.D.V().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.k(this,this.G);this.D.createClientVe(this.J,this,28240);this.D.createClientVe(this.Y,this,28239);this.D.logVisibility(this.J,!0);this.D.logVisibility(this.Y,!0);this.hide()}; hgp=function(K){var W=UtD();W.update(K);return W.KP().toLowerCase()}; ly=function(K,W){W=W===void 0?200:W;return K?W===300?jye:mts:W===300?S2e:fWD}; E8=function(K){var W=[],U=0,h;for(h in K)W[U++]=K[h];return W}; tSC=function(K){bg=K}; TE=function(K){R9.call(this,K.getAvailablePlaybackRates()[0],K.getAvailablePlaybackRates()[K.getAvailablePlaybackRates().length-1],.05,K.getPlaybackRate(),{T:"div",Z:"ytp-speedslider-indicator-container",K:[{T:"div",Z:"ytp-speedslider-badge"},{T:"p",Z:"ytp-speedslider-text"}]});this.D=K;this.Ms=Fb(this.Ns,50,this);g.$C(this.X,"ytp-speedslider");this.J=this.yH("ytp-speedslider-text");this.uX=this.yH("ytp-speedslider-badge");yi(this);this.S(this.X,"change",this.DA)}; g.MB=function(K){var W=[];if(K.displayName)W.push(K.displayName);else{var U=K.languageName||"";W.push(U);K.kind==="asr"&&U.indexOf("(")===-1&&W.push(" (Automatic Captions)");K.name&&W.push(" - "+K.name)}K.translationLanguage&&W.push(" >> "+K.translationLanguage.languageName);return W.join("")}; g.PC=function(K){var W={languageCode:K.languageCode,languageName:K.languageName,displayName:g.MB(K),kind:K.kind,name:K.name,id:K.id,is_servable:K.j,is_default:K.isDefault,is_translateable:K.isTranslateable,vss_id:K.vssId};K.xtags&&(W.xtags=K.xtags);K.captionId&&(W.captionId=K.captionId);K.translationLanguage&&(W.translationLanguage=K.translationLanguage);return W}; g.Cz=function(K,W){K=p1(K);return K===void 0&&W!==void 0?W:Number(K||0)}; g.HW=function(K,W,U){K=K.xx().element;var h=x7(K.children,function(m){m=Number(m.getAttribute("data-layer"));return U-m||1}); h<0&&(h=-(h+1));LB(K,W,h);W.setAttribute("data-layer",String(U))}; IWz=function(K){var W=[],U=[].concat(g.z4(K.tC));K.Wl.forEach(function(f){W.push(Object.assign({},f))}); for(var h=K.j,m=g.z(K.Y.RV()),S=m.next();!S.done;S=m.next())h=G7p(K,W,U,S.value,h);W.forEach(function(f){f.startTimeMs&&(f.startTimeMs+=K.timestampOffset*1E3)}); return{Wl:W,tC:U}}; dtz=function(K){Mv(K);return K.data.map(function(W){return W.value})}; J7_=function(K){var W={},U=[],h=[];if(!K.data)return W;for(var m=0;mh)&&y6s(K,U).then(function(m){m&&(m=m.botguardData)&&g.DR(m,W)},function(m){K.qs()||(m=XI(m),K.rk("attf",m.details))})}; aW$=function(K){var W=ty(K),U=Vi(K,"position"),h=U=="fixed"||U=="absolute";for(K=K.parentNode;K&&K!=W;K=K.parentNode)if(K.nodeType==11&&K.host&&(K=K.host),U=Vi(K,"position"),h=h&&U=="static"&&K!=W.documentElement&&K!=W.body,!h&&(K.scrollWidth>K.clientWidth||K.scrollHeight>K.clientHeight||U=="fixed"||U=="absolute"||U=="relative"))return K;return null}; vC=function(K){var W=e8(K,!0),U=K.j.byteOffset+K.pos;U=new DataView(K.j.buffer,U,Math.min(W,K.j.buffer.byteLength-U));U=new XF(U,K.start+K.pos);K.pos+=W;return U}; YL=function(K,W){return K>W?1:K=128;)W=pM(K.j,K.pos),++K.pos,h*=128,U+=(W&127)*h;return U}; pYs=function(K){var W={},U=K.experiments,h=U.KY();U=U.qk();var m=h.j.v3(k7$);Wi(m)&&Number(m)>0&&(W.SetPreferMinimalPostProcessing=Uh("SetPreferMinimalPostProcessing",Number(m)===1?1:0));if(U.j.v3(iSF))(K=h.j.v3(zgC))&&(W["MediaSource.EnableUsingMediaSourceBufferedRange"]=Uh("MediaSource.EnableUsingMediaSourceBufferedRange",K===1?1:0)),(K=h.j.v3(NcD))&&(W.HTTP3=Uh("HTTP3",K===1?1:0)),(K=h.j.v3(A7s))&&(W["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=Uh("MediaSource.EnableUsingMediaSourceAttachmentMethods", K===1?1:0)),(K=h.j.v3(Rgp))&&(W.QUIC=Uh("QUIC",K===1?1:0)),(K=h.j.v3(y7F))&&(W["Media.PlayerConfiguration.DecodeToTexturePreferred"]=Uh("Media.PlayerConfiguration.DecodeToTexturePreferred",K===1?1:0)),(K=h.j.v3(MSD))&&(W["Media.AudioWriteDurationLocal"]=Uh("Media.AudioWriteDurationLocal",Number(K)));else for(h=Object.keys(K.experiments.flags),h=g.z(h),U=h.next();!U.done;U=h.next())U=U.value,U.startsWith("cobalt_h5vcc")&&(U.startsWith("cobalt_h5vcc_string")?(m=PPz(U,"cobalt_h5vcc_string"),U=L6(K.experiments, U),m&&U&&(W[m]=Uh(m,U))):U.startsWith("cobalt_h5vcc")&&(m=PPz(U,"cobalt_h5vcc"),U=g.jV(K.experiments,U),m&&U&&(W[m]=Uh(m,U))));return W}; oQC=function(K){var W=K.text||"",U=g.$K("ytp-suggested-action-badge-title",K.element);U&&g.hs(U,W);K.badge.element.setAttribute("aria-label",W);K.dismissButton.element.setAttribute("aria-label",K.Bp?K.Bp:"")}; mP=function(K,W,U){var h=new XF(U);if(!jw(h,K))return!1;h=vC(h);if(!EI(h,W))return!1;for(K=0;W;)W>>>=8,K++;W=h.start+h.pos;var m=e8(h,!0);h=K+(h.start+h.pos-W)+m;h=h>9?ZSe(h-9,8):ZSe(h-2,1);K=W-K;U.setUint8(K++,236);for(W=0;W-1&&(delete w$["@type"],b=w$);a&&K.X.has(a)&&K.X.delete(a);((Sf=W.config)==null?0:Sf.HNp)&&XL(W.config.HNp);if(b||(mj=K.N)==null||!mj.WqX(W.input,W.jI)){AF.O5(15);break}return g.T(AF,K.N.vhm(W.input,W.jI),16);case 16:b=AF.X;case 15:return xtD(K, b,W),((c=W.config)==null?0:c.lpx)&&XL(W.config.lpx),h(),AF.return(b||void 0)}})}; j6=function(K,W){return(K=K.j.get(W))?K:new Map}; lWR=function(K){return!!K.playlist&&!K.j&&!!K.videoData&&!K.videoData.isLivePlayback&&K.D.getCurrentTime()>=3&&K.D.getPresentingPlayerType()!==2}; DY=function(K){g.p.call(this);this.D=K;this.listeners=[];this.j=new jg(this);g.k(this,this.j);this.j.S(this.D,"aduxclicked",this.onAdUxClicked);this.j.S(this.D,"aduxmouseover",this.mA);this.j.S(this.D,"aduxmouseout",this.L9);this.j.S(this.D,"muteadaccepted",this.Tem)}; L9s=function(K){if(!g.B3())throw K=new g.Zb("AUTH_INVALID",{dbName:K}),Js(K),K;var W=g.EX();return{actualName:K+":"+W,publicName:K,userIdentifier:W}}; ew=function(K,W,U,h,m){this.name=K;this.methodType="unary";this.requestType=W;this.responseType=U;this.j=h;this.X=m}; at=function(K){Eh.call(this,.05,.05,K.getAvailablePlaybackRates()[0],K.getAvailablePlaybackRates()[K.getAvailablePlaybackRates().length-1],150,20,K.getPlaybackRate());this.D=K;this.U=g.k$("P");this.DA=Fb(this.Ns,50,this);g.$C(this.W,"ytp-speedslider");g.$C(this.U,"ytp-speedslider-text");K=this.U;var W=this.W;W.parentNode&&W.parentNode.insertBefore(K,W.nextSibling);Bi(this);this.S(this.D,"onPlaybackRateChange",this.updateValues)}; DJ=function(K,W){return W?"&"+K+"="+encodeURIComponent(W):""}; KF$=function(K,W){var U=K.gH.zz;if(U)return Hi(U.getPlayerState());if(K.getVideoData().enableServerStitchedDai&&W===2){var h,m,S;return(K.C.qk().j.v3(r6)?(S=(h=K.gH.X)==null?void 0:h.isAd())!=null&&S:(m=K.x$)==null?0:Tr(m,K.getCurrentTime()))?K.EZ:-1}return W!==2||K.Wo()?K.EZ:K.Bm}; U0s=function(K,W){var U=g.vB("ytDebugData.callbacks");U||(U={},g.Vk("ytDebugData.callbacks",U));if(g.hc("web_dd_iu")||WFp.includes(K))U[K]=W}; y7=function(K,W,U,h,m,S,f){g.p.call(this);this.policy=K;this.info=W;this.Gm=U;this.N5=m;this.logger=new g.io("sabr");this.I5=new OD(this);this.TQ=new aJ(this);this.Cc=new Sy(this);this.state=1;this.lL=!1;this.Ck=0;this.clipId="";this.Vn=-1;this.w5=0;this.O1=-1;this.eK=this.uJ=this.lm=this.Iz=!1;this.policy.lI?this.p5=new w6(this,S):this.p5=new Qc(this,S);this.GL=this.policy.q5?W.iV:hmp(W,this.policy,h);this.GL.set("rn",""+this.PN());this.GL.set("alr","yes");jt_(this.Cc,U,K);this.zK=new $p(this,this.policy, this.GL,W.T9,this.p5,this.logger,h,f,this.policy.enableServerDrivenRequestCancellation);m0D(this.zK);var G;if((G=this.policy)==null?0:G.M3)g.k(this,this.Cc),g.k(this,this.zK);K=W.X;W={method:"POST",body:K};K&&(this.w5=K.length);try{this.xhr=Yp(this.GL,this.policy.J,this.p5,up,W),this.policy.O3&&Oh(this.p5,this.ej()),this.zK.X.start()}catch(I){g.eI(I)}}; ci=function(K,W,U){if(K.j==null)return W.Wy|=4,!1;K=SIs(K.j,U,W);W.Wy|=K;return K==0}; fUe=function(K){if(!EI(K,440786851,!0))return null;var W=K.pos;e8(K,!1);var U=e8(K,!0)+K.pos-W;K.pos=W+U;if(!EI(K,408125543,!1))return null;e8(K,!0);if(!EI(K,357149030,!0))return null;var h=K.pos;e8(K,!1);var m=e8(K,!0)+K.pos-h;K.pos=h+m;if(!EI(K,374648427,!0))return null;var S=K.pos;e8(K,!1);var f=e8(K,!0)+K.pos-S,G=new Uint8Array(U+12+m+f),I=new DataView(G.buffer);G.set(new Uint8Array(K.j.buffer,K.j.byteOffset+W,U));I.setUint32(U,408125543);I.setUint32(U+4,33554431);I.setUint32(U+8,4294967295); G.set(new Uint8Array(K.j.buffer,K.j.byteOffset+h,m),U+12);G.set(new Uint8Array(K.j.buffer,K.j.byteOffset+S,f),U+12+m);return G}; IUY=function(K,W,U,h){W.durationMs=U;W.W2=h;h={Vv:ha(U,!0),Fm:U,target:null};tRe(K,W,h);kw(K,W)&&K.app.E5().getCurrentTime()*1E3>U&&(W=GEC(K,W)/1E3,U=K.app.E5().getPlayerState(),Cp(K,W,{},U,"_update"))}; g6=function(K,W){g.nO.call(this,K?K.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;K&&this.init(K,W)}; FA=function(){this.j=null;this.X=0;this.N=new d0e;this.W=new xa}; JCL=function(K,W,U,h,m){this.W=K;this.U=W;this.j=U;this.X=h;this.N=m}; kp=function(K){uw.call(this);this.W=K}; AW=function(K,W){return g.so(K.toLowerCase(),W.toLowerCase())}; emp=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; E$D=function(K,W){K.W(W);K.X<100&&(K.X++,W.next=K.j,K.j=W)}; BVp=function(K){iw[K]&&(K=iw[K],g.tD(K,function(W){zr[W]&&delete zr[W]}),K.length=0)}; e5=function(K,W,U,h,m){m||K.api.V().X?W.style.width=U+"px":g.Zd(W,"transform","scalex("+(h?U/h:0)+")")}; sFD=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);fZ(this.api,"isLifaAdPlaying",function(){return W.api.isLifaAdPlaying()}); this.events.S(K,"serverstitchedvideochange",function(){var U;(U=W.api.getVideoData())!=null&&U.Sj()&&(W.api.isLifaAdPlaying()?(W.playbackRate=W.api.getPlaybackRate(),W.api.setPlaybackRate(1)):W.api.setPlaybackRate(W.playbackRate))}); this.playbackRate=1}; D0$=function(K){var W={},U=K.D.getVideoData(1);W.ASR=h0(function(){var h;return(h=U==null?void 0:U.qz)!=null?h:null}); W.EI=h0(function(){var h;return(h=U==null?void 0:U.eventId)!=null?h:null}); return W}; TVL=function(K){var W=HzF[NU[K]],U=rCp[K];return U&&W?new GT(K,W,{audio:new fJ(U.audioSampleRate,U.numChannels)}):null}; mx=function(K,W,U){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=U||K(this.triggerType)}; g.As=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{T:"path",B:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; wRD=function(K,W,U,h){var m=aUD(cY,U);m!==null&&m.nf!==W&&(K.D$(m),m=null);m||(W=K.bq(U,i_(),!1,W),cY.X.length==0&&(nm().N=79463069),gIC([W]),m=W,m.W=RJ(K),h&&(m.JK=h));return m}; g.yc=function(K,W){return K.C.experiments.qk().j.v3(Qte)?K.gH.Yv(W)||K.gH.j:K.Yv(W)}; HBY=function(){var K=g.MU;Pi.instance||(Pi.instance=new Pi(K));return Pi.instance}; $0e=function(K){var W=K.index-1;return W<0?K.length-1:W}; oJ=function(K){pO.call(this,"audio_measurable",K)}; ZJ=function(K){var W,U;return new Map([["impression",K.impressionPings||[]],["error",K.errorPings||[]],["mute",K.mutePings||[]],["unmute",K.unmutePings||[]],["pause",K.pausePings||[]],["rewind",K.rewindPings||[]],["resume",K.resumePings||[]],["skip",K.skipPings||[]],["swipe",K.swipePings||[]],["close",K.closePings||[]],["progress",K.progressPings||[]],["clickthrough",K.clickthroughPings||[]],["fullscreen",K.fullscreenPings||[]],["active_view_viewable",K.activeViewViewablePings||[]],["active_view_measurable", K.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",K.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((W=K.activeViewTracking)==null?void 0:W.activeViewAudioAudiblePings)||[]],["audio_measurable",((U=K.activeViewTracking)==null?void 0:U.activeViewAudioMeasurablePings)||[]],["end_fullscreen",K.endFullscreenPings||[]],["channel_clickthrough",K.channelClickthroughPings||[]],["abandon",K.abandonPings||[]],["start",K.startPings||[]],["first_quartile", K.firstQuartilePings||[]],["midpoint",K.secondQuartilePings||[]],["third_quartile",K.thirdQuartilePings||[]],["complete",K.completePings||[]],["unmuted_impression",K.unmutedImpressionPings||[]],["unmuted_error",K.unmutedErrorPings||[]],["unmuted_mute",K.unmutedMutePings||[]],["unmuted_unmute",K.unmutedUnmutePings||[]],["unmuted_pause",K.unmutedPausePings||[]],["unmuted_resume",K.unmutedResumePings||[]],["unmuted_close",K.unmutedClosePings||[]],["unmuted_progress",K.unmutedProgressPings||[]],["unmuted_clickthrough", K.unmutedClickthroughPings||[]],["unmuted_fullscreen",K.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",K.unmutedEndFullscreenPings||[]],["unmuted_abandon",K.unmutedAbandonPings||[]],["unmuted_start",K.unmutedStartPings||[]],["unmuted_first_quartile",K.unmutedFirstQuartilePings||[]],["unmuted_midpoint",K.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",K.unmutedThirdQuartilePings||[]],["unmuted_complete",K.unmutedCompletePings||[]],["unmuted_skip",K.unmutedSkipPings||[]]])}; sh=function(K){if(K!=null&&typeof K!=="boolean")throw Error("Expected boolean but got "+bw(K)+": "+K);return K}; YIz=function(K,W,U,h){yU.call(this,"player-overlay-layout",K,{},U,h);this.videoAdDurationSeconds=W;this.interactionLoggingClientData=h}; gd=function(K,W,U,h,m){var S=U+(m?0:-1),f=K.length-1;if(f>=1+(m?0:-1)&&S>=f){var G=K[f];if(G!=null&&typeof G==="object"&&G.constructor===Object)return G[U]=h,W}if(S<=f)return K[S]=h,W;if(h!==void 0){var I;f=((I=W)!=null?I:W=K[MX]|0)>>14&1023||536870912;U>=f?h!=null&&(S={},K[f+(m?0:-1)]=(S[U]=h,S)):K[S]=h}return W}; um=function(){var K=/Chrome\/(\d+)/.exec(g.i5());return K?parseFloat(K[1]):NaN}; IA=function(K,W,U,h,m){h===0||U.includes(h);var S=GA(K),f=XW(S,K,W,U,m);f!==h&&(f&&(W=gd(K,W,f,void 0,m)),S.set(U,h));return W}; g$p=function(K){var W=K.api.V();OzF(K);K.updateValue("flyoutUnfocusable","true");K.updateValue("channelTitleFocusable","-1");K.updateValue("shouldHideExpandedTitleForA11y","true");K.updateValue("shouldHideExpandedSubtitleForA11y","true");W.X||W.vp||(K.S(K.channel,"mouseenter",K.Ad),K.S(K.channel,"mouseleave",K.Fj),K.S(K.channel,"focusin",K.Ad),K.S(K.channel,"focusout",function(U){K.channel.contains(U.relatedTarget)||K.Fj()})); K.N=new g.QC(function(){K.isExpanded()&&(K.api.logVisibility(K.channelName,!1),K.subscribeButton&&(K.subscribeButton.hide(),K.api.logVisibility(K.subscribeButton.element,!1)),K.j&&(K.j.hide(),K.api.logVisibility(K.j.element,!1)),K.channel.classList.remove("ytp-title-expanded"),K.channel.classList.add("ytp-title-show-collapsed"))},500); g.k(K,K.N);K.S(K.channel,cCp,function(){n$D(K)}); K.S(K.api,"onHideControls",K.ME);K.S(K.api,"appresize",K.ME);K.S(K.api,"fullscreentoggled",K.ME)}; ux2=function(K){return K&&FF_[K]?FF_[K]:null}; g.F3=function(K,W,U){W=W===void 0?{}:W;this.errorCode=K;this.details=W;this.severity=U===void 0?0:U}; Zz_=function(K,W,U,h,m,S,f){function G(Z){return!!e[Z]} var I=W.X||!!m,d=I&&W.Ez?S:void 0,J=new Set,e=kEF(K,W,U,h,S,I,J);Vc(h)&&(e=izp(U,e,m,I,S,W),I&&S({enflt:XA(e)}));W.gk=zm$(e,W);var E=NVz(W);K=[];m=g.z(Object.values(e));for(var B=m.next();!B.done;B=m.next()){B=B.value;var D=void 0;((D=B)==null?0:D.length)&&B[0].yR()&&K.push.apply(K,g.z4(B))}if(vi(h))return S=g.dG(Object.values(e),function(Z){return!!Z.length&&!!Z[0].audio}),I=g.dG(Object.values(e),function(Z){return!!Z.length&&!!Z[0].video}),S&&I||pC(),EM(new nT(I,S,d,K)); m=e.a;B=!1;W.DA&&E[0]!=="a"&&ACp(m)&&(E.unshift("a"),B=!0);I&&(S({audioPrefOrder:E.join("_")}),S({preferHighQualityAudio:W.DA}),S({forcedAacForHqa:B}));m=[];if(W.oW){E=g.yb(E,G);B=new Set;D=g.z(E);for(var a=D.next();!a.done;a=D.next()){var Q=new Set;a=g.z(e[a.value]);for(var u=a.next();!u.done;u=a.next()){u=u.value;var O=void 0,N=(O=u.ZO)==null?void 0:O.id;N&&(B.has(N)?Q.has(N)&&m.push(u):(Q.add(N),B.add(N),m.push(u)))}}if(m.length===0){if(E.length===0)return I&&S({noaudio:1}),pC();m=e[E[0]]}}else{m= g.dG(E,G);if(!m)return I&&S({noaudio:1}),pC();m=e[m]}e["9"]&&e.h&&h.mK&&!W.vp&&(I&&S({dltvp9:1}),delete e["9"]);if(f){I&&S({bfsflt:XA(e),bfsflta:mr(U)});RmC(U,J);I&&S({bfsfltb:mr(U)});for(var A in e)if(e.hasOwnProperty(A)&&(f=A,!(f==="f"||W.eV===0&&yCL.has(f))))for(J=g.z(e[f]),E=J.next();!E.done;E=J.next())E=E.value,W.Pl?MRR(U,f,E):Py2(U,f,E);I&&S({aftsflt:mr(U)})}f=e["1h"]?"1h":"1";U=e["9h"]?"9h":"9";E=e[f];B=e["2"];D=e[U];E&&E.length&&(W.j.highestAv1Resolution=E[E.length-1].video.qualityOrdinal); D&&D.length&&(W.j.highestVp9Resolution=D[D.length-1].video.qualityOrdinal);A=[];J=[];if(W.Ev&&B)A=B,J=["2"];else if(W.ZX&&E)A=E,J=[f],S({forceAv1:f});else if(W.J&&!W.fl)for(J=jHF(h)?e["1h"]||e["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],I&&S({newhybpref:J.join(".")}),E=g.z(J),B=E.next();!B.done;B=E.next())A=A.concat(e[B.value]).filter(function(Z){return Z}); else W.V6>0&&D&&E&&(J=[f,U],A=E.concat(D).filter(function(Z){return Z})); if(A.length&&!W.fl){qU(A,J);if(I){I=[];W=g.z(A);for(h=W.next();!h.done;h=W.next())I.push(h.value.itag);S({hbdfmt:I.join(".")})}return EM(new nT(A,m,d,K))}A=pRR(W);A=g.dG(A,G);if(!A){if(e[f])return S=e[f],qU(S),EM(new nT(S,m,d,K));I&&S({novideo:1});return pC()}W.AS&&(A==="1"||A==="1h")&&e[U]&&(f=Wc(e[A]),J=Wc(e[U]),J>f?A=U:J===f&&o$p(e[U])&&(A=U));A==="9"&&e.h&&Wc(e.h)>Wc(e["9"])&&(A="h");W.Qg&&h.isLive&&A==="("&&e.H&&Wc(e["("])<1440&&(A="H");I&&S({vfmly:xp(A)});W=e[A];if(!W.length)return I&&S({novfmly:xp(A)}), pC();qU(W);return EM(new nT(W,m,d,K))}; bzR=function(K,W){function U(){var h=g.Xl.apply(0,arguments);K.removeEventListener("playing",U);W.apply(null,g.z4(h))} K.addEventListener("playing",U)}; g.lw=function(K,W){g.y.call(this,{T:"div",K:[{T:"div",Z:"ytp-tooltip-text-wrapper",B:{"aria-hidden":"{{ariaHidden}}"},K:[{T:"div",Z:"ytp-tooltip-edu",K:[{T:"svg",B:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",B:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{T:"span",bX:"{{eduText}}"}]},{T:"div",Z:"ytp-tooltip-image"},{T:"div",Z:"ytp-tooltip-title",K:[{T:"span",bX:"{{title}}"},{T:"div",Z:"ytp-tooltip-keyboard-shortcut", bX:"{{keyBoardShortcutTitle}}"}]},{T:"div",Z:"ytp-tooltip-bottom-text",K:[{T:"span",Z:"ytp-tooltip-text",bX:"{{text}}"},{T:"div",Z:"ytp-tooltip-keyboard-shortcut",bX:"{{keyBoardShortcut}}"}]},{T:"div",Z:"ytp-tooltip-progress-bar-pill",K:[{T:"div",Z:"ytp-tooltip-progress-bar-pill-time-stamp",bX:"{{pillTimeStamp}}"},{T:"div",Z:"ytp-tooltip-progress-bar-pill-title",bX:"{{pillTitle}}"}]}]},{T:"div",Z:"ytp-tooltip-bg",K:[{T:"div",Z:"ytp-tooltip-duration",bX:"{{duration}}"}]}]});var U=this;this.api=K;this.eV= W;this.J=function(h){(h=h.relatedTarget)&&g.Hj(U.j,h)||U.Dc()}; this.U=function(h){U.type===3&&U.Dc();(h=h.currentTarget)&&h.nodeType===1&&!U.type&&(h.removeEventListener("mouseover",U.U),h.addEventListener("mouseout",U.J),h.removeEventListener("focus",U.U),h.addEventListener("blur",U.J),sts(U,h,2))}; this.Ms=function(){U.Dc()}; this.type=this.j=null;this.Y=!1;this.X=null;this.N="";this.G=!0;this.scale=1;this.env=this.api.V();this.DA=this.env.X;this.wrapper=this.yH("ytp-tooltip-text-wrapper");this.bg=this.yH("ytp-tooltip-bg");this.hK=this.yH("ytp-tooltip-edu");this.image=this.yH("ytp-tooltip-image");this.text=this.yH("ytp-tooltip-text");this.bottomText=this.yH("ytp-tooltip-bottom-text");this.title=this.yH("ytp-tooltip-title");this.fade=new g.Wr(this,100);this.W=NaN;this.lM=this.api.xx().getPlayerSize().width;this.uX=new g.QC(this.k9K, 250,this);this.Ns=new g.QC(this.Dc,5E3,this);g.k(this,this.fade);g.k(this,this.uX);g.k(this,this.Ns);CO&&(K=this.yH("ytp-tooltip-text"),K.setAttribute("role","text"),K.setAttribute("aria-live","polite"))}; Wis=function(K){K=g.Qq(K);return K!==null?K.split(".").reverse():null}; LO=function(K,W){K=Error.call(this,K);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.j=W===void 0?!1:W}; VRC=function(K,W){this.j=K;this.duration=W}; Wm=function(K){g.p.call(this);var W=this;this.provider=K;this.j=-1;this.U=!1;this.X=-1;this.playerState=new g.Kw;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.W=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.QC(this.send,6E4,this);this.N=!1;this.jsErrorCount=0;this.xd={cL:function(){W.cL()}}; this.cL=function(){W.jsErrorCount++}; g.k(this,this.delay);window.addEventListener("error",this.cL);window.addEventListener("unhandledrejection",this.cL)}; Uq=function(K){var W=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(K)&&!W.test(K)}; g.h1=function(K,W){switch(W.kind){case "asr":XRp(W,K.X);break;default:XRp(W,K.j)}}; v$L=function(K,W,U,h,m){var S=[];kx(K,function(f,G){(f=ti(f,W,U,h,m))&&S.push(G+"="+f)}); return S.join(W)}; g.mD=function(K,W,U,h,m,S){S=S===void 0?{}:S;g.jc(K,W,U,[h],m===void 0?!1:m,S)}; x02=function(K,W){var U,h,m,S,f,G,I;return g.r(function(d){if(d.j==1){U=g.FF();var J=K.V(),e={context:g.Sc(K),playbackContext:{contentPlaybackContext:{ancestorOrigins:J.ancestorOrigins}}},E=J.getWebPlayerContextConfig();if(E==null?0:E.encryptedHostFlags)e.playbackContext.contentPlaybackContext.encryptedHostFlags=E.encryptedHostFlags;if(E==null?0:E.hideInfo)e.playerParams={showinfo:!1};E=J.embedConfig;var B=K.U0;var D=W.docid||W.video_id||W.videoId||W.id;if(!D){D=W.raw_embedded_player_response;if(!D){var a= W.embedded_player_response;a&&(D=JSON.parse(a))}if(D){var Q,u,O,N,A,Z;D=((Z=g.P((Q=D)==null?void 0:(u=Q.embedPreview)==null?void 0:(O=u.thumbnailPreviewRenderer)==null?void 0:(N=O.playButton)==null?void 0:(A=N.buttonRenderer)==null?void 0:A.navigationEndpoint,g.fw))==null?void 0:Z.videoId)||null}else D=null}Q=(Q=D)?Q:void 0;u=K.playlistId?K.playlistId:W.list;O=W.listType;if(u){var x;O==="user_uploads"?x={username:u}:x={playlistId:u};jpF(E,B,Q,W,x,J.experiments);e.playlistRequest=x}else W.playlist? (x={templistVideoIds:W.playlist.toString().split(",")},jpF(E,B,Q,W,x,J.experiments),e.playlistRequest=x):Q&&(x={videoId:Q},B&&J.L("embeds_enable_per_video_embed_config")?x.serializedThirdPartyEmbedConfig=B:E&&(x.serializedThirdPartyEmbedConfig=E),e.singleVideoRequest=x);h=e;m=g.ek(qIY);g.Bj(d,2);return g.T(d,g.Es(U,h,m),4)}if(d.j!=2)return S=d.X,f=K.V(),W.raw_embedded_player_response=S,f.hK=L1(W,g.HB(f)),f.N=f.hK==="EMBEDDED_PLAYER_MODE_PFL",S&&(G=S,G.trackingParams&&t1(G.trackingParams)),d.return(new g.GM(f, W));I=g.SV(d);I instanceof Error||(I=Error("b259802748"));g.wG(I);return d.return(K)})}; Cys=function(K,W){W=Fp(K,W)+1;return W=U))return h.push(m.getValue()),g.V3(m)}).then(function(){return h})}; BTR=function(K,W,U,h,m){yU.call(this,"shopping-companion",K,W,U,h,m)}; Dxp=function(K,W,U,h,m){yU.call(this,"image-companion",K,W,U,h,m)}; QO=function(K,W){this.j=K;this.cipher=this.j.exports.AES128CTRCipher_create(W.byteOffset)}; g.nL=function(K){var W=kxL;if(Vi(K,"display")!="none")return W(K);var U=K.style,h=U.display,m=U.visibility,S=U.position;U.visibility="hidden";U.position="absolute";U.display="inline";K=W(K);U.display=h;U.position=S;U.visibility=m;return K}; uw=function(){this.X=null;this.j=!1}; $P=function(K,W,U,h){if(U==="child"){g.QG(W);var m;h===void 0?m=void 0:m=!Array.isArray(h)||h&&typeof h.T==="string"?[h]:h;U=its(K,m);U=g.z(U);for(K=U.next();!K.done;K=U.next())W.appendChild(K.value)}else U==="style"?g.Zd(W,"cssText",h?h:""):h===null||h===void 0?W.removeAttribute(U):(K=h.toString(),U==="href"&&(K=g.CM(g.ox(K))),W.setAttribute(U,K))}; rkC=function(K){return Object.values(Hl2).includes(K)}; CbR=function(K){YP(K)&&!K.jY&&(K.j=!0,K.mH&&Math.random()<=K.MJ&&K.oQ.WP(K.ow),K.cj(),K.LN.nN()&&K.pS(),K.LN.listen(K.OA,K.pS.bind(K)),K.LN.listen(K.n9,K.tY.bind(K)))}; TT$=function(K,W,U){for(var h="",m=0;m0&&(W.request={internalExperimentFlags:U});QEY(K,void 0,W);f6L(void 0,W);$xL(void 0,W);a0Y(K,void 0,W);YH_(void 0,W);g.hc("start_client_gcf")&&OlD(void 0,W);g.TA("DELEGATED_SESSION_ID")&& !g.hc("pageid_as_header_web")&&(W.user={onBehalfOfUser:g.TA("DELEGATED_SESSION_ID")});!g.hc("fill_delegate_context_in_gel_killswitch")&&(K=g.TA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:K}));K=g.TA("INNERTUBE_CONTEXT");var h;if(g.hc("enable_persistent_device_token")&&(K==null?0:(h=K.client)==null?0:h.rolloutToken)){var m;W.client.rolloutToken=K==null?void 0:(m=K.client)==null?void 0:m.rolloutToken}h=Object;m=h.assign;K=W.client; U={};for(var S=g.z(Object.entries(nZ(g.TA("DEVICE","")))),f=S.next();!f.done;f=S.next()){var G=g.z(f.value);f=G.next().value;G=G.next().value;f==="cbrand"?U.deviceMake=G:f==="cmodel"?U.deviceModel=G:f==="cbr"?U.browserName=G:f==="cbrver"?U.browserVersion=G:f==="cos"?U.osName=G:f==="cosver"?U.osVersion=G:f==="cplatform"&&(U.platform=G)}W.client=m.call(h,K,U);return W}; mPC=function(){yq(ckC);var K=yq(MR);K.j!=null&&K.j.j?Fmp(K.j.j):Dz().update(Fl)}; A1=function(K){this.iZ=qR(K)}; g.Df=function(K){var W=g.Rz();W&&(typeof K==="number"?K=[K]:typeof K==="string"&&(K=[parseInt(K,10)]),g.tD(K,function(U){W.unsubscribeByKey(U);delete zr[U]}))}; nJF=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{T:"path",Qt:!0,B:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; FuD=function(K){return{startMinReadaheadPolicy:yO(K,1,gJz),resumeMinReadaheadPolicy:yO(K,2,gJz)}}; aI=function(K){K.j===0&&K.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var W=K.j-K.G,U=W;K.j!==0&&(U=g.Jk(W,-.01,.01));K.G+=U;K.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+K.G.toString());K.G!==K.j&&aI(K)})}; uEY=function(K,W){K.qs()||(K.X=W,K.logger.update(W.Tc()),K.U.resolve(),K.G.resolve(void 0),K.RX())}; Pm=function(){Mm.apply(this,arguments);this.xd={wW:function(){return[]}}}; VVL=function(K){return!(K.isMinimized()||K.isInline()||K.isBackground()||K.K_()||K.Dz()||K.eT()||K.F8())}; ks_=function(K){if(!kGL(K)){var W=K.rH().lY();W&&(W=W.hq(),W instanceof Promise&&W.catch(function(){})); kB(K,Hi(K.getPlayerStateObject()))}}; bt=function(K){var W=K.api.V(),U=K.api.getVideoData(),h=g.pw(W)+U.tK;g.oz(U)&&(h="https://music.youtube.com"+U.tK);if(!g.HB(W))return h;W={};g.Zm(K.api,"addEmbedsConversionTrackingParams",[W]);return g.sL(h,W)}; L7=function(){var K,W,U;return(U=(K=globalThis.performance)==null?void 0:(W=K.now)==null?void 0:W.call(K))!=null?U:Date.now()}; ilF=function(K){if(K.j==null)K.callback.PC(K.slot);else try{K.j.cancel(),K.j=null,K.callback.PC(K.slot)}catch(W){K.j=null,ey(K.callback,K.slot,new v(W,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; zCY=function(K,W,U,h){U=U===void 0?!0:U;var m;return g.r(function(S){if(S.j==1)return g.T(S,ZP(W),2);m=S.X;return S.return(g.b5(m,["LogsRequestsStore"],{mode:"readwrite",e0:!0},function(f){var G=f.objectStore("LogsRequestsStore");return G.get(K).then(function(I){return I?(I.status="NEW",U&&(I.sendCount+=1),h!==void 0&&(I.options.compress=h),g.Rh(G,I).then(function(){return I})):g.So.resolve(void 0)})}))})}; RCp=function(K,W,U,h,m){var S=window;var f=f===void 0?!1:f;var G;U?G=(f===void 0?0:f)?"//ep1.adtrafficquality.google/bg/"+xG(U)+".js":"//pagead2.googlesyndication.com/bg/"+xG(U)+".js":G="";f=f===void 0?!1:f;U=S.document;var I={};W&&(I._scs_=W);I._bgu_=G;I._bgp_=h;I._li_="v_h.3.0.0.0";m&&(I._upb_=m);(W=S.GoogleTyFxhY)&&typeof W.push=="function"||(W=S.GoogleTyFxhY=[]);W.push(I);W=A_(U).createElement("SCRIPT");W.type="text/javascript";W.async=!0;K=(f===void 0?0:f)?g.qi(NTR,xG(K)+".js"):g.qi(AkD,xG(K)+ ".js");g.sq(W,K);(S=(S.GoogleTyFxhYEET||{})[W.src])?S():U.getElementsByTagName("head")[0].appendChild(W)}; yk$=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{T:"path",Qt:!0,B:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; q8=function(K){g.y.call(this,{T:"button",Hp:["ytp-button","ytp-autonav-toggle"],B:{title:K.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{T:"div",Z:"ytp-autonav-toggle-button-container",K:[{T:"div",Z:"ytp-autonav-toggle-button",B:{"aria-checked":"true"}}]}]});this.D=K;this.X=[];this.j=!1;this.isChecked=!0;K.createClientVe(this.element,this, 113681);this.S(K,"presentingplayerstatechange",this.CS);this.listen("click",this.onClick);this.X.push(this.S(this.D,"videodatachange",this.CS));this.X.push(this.S(this.D,"videoplayerreset",this.CS));this.X.push(this.S(this.D,"onPlaylistUpdate",this.CS));this.X.push(this.S(this.D,"autonavchange",this.yz));Yb(K,this.element,this);this.CS()}; M5_=function(){if(typeof MessageChannel!=="undefined"){var K=new MessageChannel,W={},U=W;K.port1.onmessage=function(){if(W.next!==void 0){W=W.next;var h=W.Om;W.Om=null;h()}}; return function(h){U.next={Om:h};U=U.next;K.port2.postMessage(0)}}return function(h){g.qs.setTimeout(h,0)}}; VO=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B){g.p.call(this);this.callback=K;this.ZA=W;this.TK=U;this.hS=h;this.dk=m;this.au=S;this.Hl=f;this.p7=G;this.slot=I;this.layout=d;this.m1=J;this.oD=e;this.lZ=E;this.Xx=B;this.l5=!0;this.wG=!1;this.gi=[];this.z1=-1;this.LR=!1;this.OO=new POR}; mK=function(K){return aC()?!Xi(K):vm()?!(!K.yC||!K.L("html5_enable_safari_fairplay")&&p6()):!1}; pVD=function(K,W){return Rip(K,function(U){return U.N},W===void 0?!0:W)}; Xa=function(K,W,U){U!==void 0&&(qm(K,W*8),qm(K,U))}; LLC=function(K,W){this.statusCode=K;this.message=W;this.X=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; xP=function(K,W){K.D.cueVideoByPlayerVars(W,2)}; oJp=function(K){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!W)return new Cw(K);var U=W.split(",");if(U.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Cw(K);W=U.slice(1);W.length===1&&W[0]===""&&(W=[]);U=Number(U[0]);return isNaN(U)||U<0||U>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Cw(K)):new Cw(K,U,W)}; QT=function(K,W){var U=ZlF[W];if(!U){var h=Zrp(W);U=h;K.style[h]===void 0&&(h=(g.$U?"Webkit":nC?"Moz":null)+bls(h),K.style[h]!==void 0&&(U=h));ZlF[W]=U}return U}; rv=function(){var K=g.vB("yt.player.utils.videoElement_");K||(K=g.k$("VIDEO"),g.Vk("yt.player.utils.videoElement_",K));return K}; Wk=function(K,W,U,h){var m=Kp(W);!m||m.N||lt(m,h)||(U.abort(),K.policy.n7&&(m=W.Y)!=null&&(m.N=void 0),(W=W.J)!=null&&(Lw(W,4),W.flush()));if(!U.BQ()||dr())try{K.policy.LeV?U.aL(h.Wp.info.containerType,h.Wp.info.lX)&&U.LB(h.Wp.info.containerType,h.Wp.info.lX,h.Wp.info.mimeType):U.nB(h.Wp.info.containerType,h.Wp.info.mimeType)}catch(S){return U=S,g.eI(U),K.rk("ctexp",{name:U.name,msg:U.message}),!1}else h.Wp.info.containerType!==U.BQ()&&K.rk("ctu",{ct:dr(),prev_c:U.BQ(),curr_c:h.Wp.info.containerType}); W=h.Wp.W;K.policy.b3&&W&&(h=0+W.duration,W=-W.j,0===U.zH()&&h===U.o0()||U.nJ(0,h),W!==U.A7()&&(U.gQ(W),Kc&&sEs(K.audioTrack.DI(),U.wA())));return!0}; V5L=function(K,W){var U=Sp(K.clientMetadata,"metadata_type_ad_placement_config");return new d$(K.uZ,W,U,K.layoutId)}; Uz=function(K,W,U){var h=K.j.N,m=lF(K.j)>>>0;m=K.j.j+m;var S=m-h;S<=0&&(K.j.N=m,U(W,K,void 0,void 0,void 0),S=m-K.j.j);if(S)throw Error();K.j.j=m;K.j.N=h}; ju=function(K,W,U,h,m,S,f,G,I){if(W===K)if(I){if(I===G.layoutId){a:{K=g.z(U.keys());for(W=K.next();!W.done;W=K.next())if(W=W.value,W.slotType==="SLOT_TYPE_PLAYER_BYTES"&&S===U.get(W).layoutId){U=!0;break a}U=!1}U?h9(h,1):m?m():UF("Tried to call engagePingCallback but it is null",f,G)}}else UF("Companion AdUxClick received without a layoutId",f,G)}; me=function(K,W){g.p.call(this);this.app=K;this.state=W}; Su=function(K){var W,U;return(U=K==null?void 0:(W=K.activeViewTracking)==null?void 0:W.trafficType)!=null?U:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; XVz=function(K){var W={c:K.vM,e:K.td,mc:K.jO,me:K.MQ};K.yd&&(W.co={c:K.yd.mT,a:K.yd.oz,s:K.yd.Sn});return W}; Yjs=function(K,W){var U=0;do U|=K&1,K>>>=1,U<<=1;while(--W>0);return U>>>1}; fc=function(K,W,U){W=W===void 0?",":W;U=U===void 0?K?K.length:0:U;var h=[];if(K)for(U=Math.max(K.length-U,0);U0&&!x&&!A?(N.length===2&&(N=["noreferrer"]),g.xv(B,a,E,N[0]),B=Ky$()):(Q=O.join(","),Bk()&&B.navigator&&B.navigator.standalone&&E&&E!="_self"?(Q=g.k$("A"),g.Iv(Q,a),Q.target=E,u&&(Q.rel="noreferrer"),((D=D.attributionsrc)||D==="")&&Q.setAttribute("attributionsrc",D),D=document.createEvent("MouseEvent"), D.initMouseEvent("click",!0,!0,B,1),Q.dispatchEvent(D),B=Ky$()):u?(B=g.xv(B,"",E,Q),D=g.CM(a),B&&(B.opener=null,D===""&&(D="javascript:''"),D='',D=cr(D),(a=B.document)&&a.write&&(a.write(IF(D)),a.close()))):((B=g.xv(B,a,E,Q))&&D.noopener&&(B.opener=null),B&&D.noreferrer&&(B.opener=null)));B&&(B.opener||(B.opener=window),B.focus());e.preventDefault()}}}(m)); m.AC.addOnDisposeCallback(g.tk(K.tooltip,m.AC.element));G==="Facebook"?K.api.createClientVe(m.AC.element,m.AC,164504):G==="Twitter"&&K.api.createClientVe(m.AC.element,m.AC,164505);K.S(m.AC.element,"click",function(J){return function(){K.api.logClick(J.AC.element)}}(m)); K.api.logVisibility(m.AC.element,!0);K.X.push(m.AC);h++}}var I=W.more||W.moreLink,d=new g.y({T:"a",Hp:["ytp-share-panel-service-button","ytp-button"],K:[{T:"span",Z:"ytp-share-panel-service-button-more",K:[{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{T:"rect",B:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{T:"path",B:{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"}}]}]}],B:{href:I,target:"_blank",title:"More"}});d.listen("click",function(J){var e=I;K.api.logClick(K.moreButton.element);e=lfC(K,e);g.sf(e,K.api,J)&&K.api.Fx("SHARE_CLICKED")}); d.addOnDisposeCallback(g.tk(K.tooltip,d.element));K.api.createClientVe(d.element,d,164506);K.S(d.element,"click",function(){K.api.logClick(d.element)}); K.api.logVisibility(d.element,!0);K.X.push(d);K.moreButton=d;K.updateValue("buttons",K.X)}; brD=function(K){if(!K.j){g.Yv(K.info.Wp.info)||K.info.Wp.info.yh();if(g.Yv(K.info.Wp.info))var W=g.KXs(g.jI(K));else{W=new XF(g.jI(K));var U=W.pos;W.pos=0;var h=null,m=null;if(jw(W,[408125543,307544935]))for(var S=W.pos+e8(W,!0);W.pos-1&&(0,g.AI)()-K.uX>3E4&&(Jl2(ai(K)),K.uX=(0,g.AI)(),K.Ms=!0)}; Qd=function(K){this.zm=K}; $8=function(K,W,U,h,m){g.y.call(this,{T:"div",Z:"ytp-horizonchart"});this.G=W;this.sampleCount=U;this.W=h;this.U=m;this.index=0;this.heightPx=-1;this.N=this.X=null;this.j=Math.round(K/U);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.G+"em"}; hEp=function(){this.j=g.TA("ALT_PREF_COOKIE_NAME","PREF");this.X=g.TA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var K=g.LY(this.j);K&&this.parse(K)}; Y8=function(K,W){this.j=K;this.X=W}; Oz=function(K,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=K(this.triggerType)}; ck=function(K){var W=g.k4(K.U);g.tD(W,function(U){U.gW(K.j)}); K.j!=K||BdR(K)}; nc=function(K,W,U,h,m){var S=K.L("html5_enable_new_audio_settings_menu");OI.call(this,"Stable Volume",S?jxp.o$:g.dV.o$);this.D=K;this.W=W;this.X=U;this.hasDrcAudioTrack=h;this.getDrcState=m;this.N=this.enableNewAudioSettingsMenu=this.j=!1;g.$C(this.element,"ytp-drc-menu-item");this.pg=(this.enableNewAudioSettingsMenu=S)?K.Es().wd:K.Es();K.L("html5_enable_voice_boost")?(this.N=!0,this.S(K,"onFilterAudioFeatures",this.Kc)):K.addEventListener("videodatachange",this.Kc.bind(this));K.L("mta_drc_mutual_exclusion_removal")&& this.S(K,"onPlaybackAudioChange",this.Kc);K.createClientVe(this.element,this,273317);this.listen("click",this.G);W=this.X()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(K=K.L("delhi_modern_web_player_icons")?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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(K));this.subscribe("select",this.U,this);this.enableNewAudioSettingsMenu||this.N?this.Kc():(this.setEnabled(this.hasDrcAudioTrack()),Sw(this,W),this.pg.j_(this))}; uY=function(K,W){if(W){var U=g.P(W,gO)||null;U==null?g.wG(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(W=g.$K("video-ads ytp-ad-module")||null,W==null?g.wG(Error("Could not locate the root ads container element to attach the ad info dialog.")):(K.hK=new g.GW({T:"div",Z:"ytp-ad-overlay-ad-info-dialog-container"}),g.k(K,K.hK),K.hK.U5(W),W=new F4(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,K.hK.element,!1),g.k(K,W),W.init(Mq("ad-info-hover-text-button"),U,K.macros), K.U?(W.U5(K.U,0),W.subscribe("f",K.ySx,K),W.subscribe("e",K.C9,K),K.S(K.U,"click",K.W6e),K.S(g.$K("ytp-ad-button",W.element),"click",function(){var h;if(g.P((h=g.P(U.button,g.Jy))==null?void 0:h.serviceEndpoint,m72))K.vp=K.api.getPlayerState(1)===2,K.api.pauseVideo();else K.api.onAdUxClicked("ad-info-hover-text-button",K.layoutId)}),K.Ik=W):g.wG(Error("Ad info button container within overlay ad was not present."))))}else g.eI(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; OlD=function(K,W){var U=kSC();if(U){var h=U.coldConfigData,m=U.coldHashData;U=U.hotHashData;if(K){var S;W=(S=W_(K,zB,62))!=null?S:new zB;h=Ya(W,1,h);Ya(h,3,m).LM(U);rk(K,zB,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},h&&(W.client.configInfo.coldConfigData=h),m&&(W.client.configInfo.coldHashData=m),U&&(W.client.configInfo.hotHashData=U))}}; S8_=function(){return{T:"svg",B:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},K:[{T:"path",B:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z", fill:"white"}}]}}; k8=function(K,W,U,h,m){var S=(W=K.j?K.X[W]:K.G[W])&&W.quality,f=W&&W.qualityLabel;f=f?f:"Auto";h&&(f="("+f);K=fOC(K,f,S||"",m);h&&K.K.push(")");(h=(h=W&&W.paygatedQualityDetails)&&h.paygatedIndicatorText)&&U&&K.K.push({T:"div",Z:"ytp-premium-label",bX:h});return K}; tkz=function(K,W,U){var h=[];K=g.z(K);for(var m=K.next();!m.done;m=K.next())if(m=m.value,g.P(m,iY)){m=zz(g.P(m,iY),W,U);if(m instanceof Rt)return new v(m);h.push(m.mu)}return h}; PE=function(K){return K==null?K:w1p(K)}; GT=function(K,W,U){U=U===void 0?{}:U;this.id=K;this.mimeType=W;U.j0>0||(U.j0=16E3);Object.assign(this,U);K=g.z(this.id.split(";"));this.itag=K.next().value;this.j=K.next().value;this.containerType=N9(W);this.lX=NU[this.itag]||""}; qoC=function(K){K.l3("removeEventListener",K.X.IP.AFMA_LIDAR,C_z);K.Ns=!1}; IOY=function(K,W){if(!K.length)return!1;for(W+=1;W>=7}}; c7$=function(K,W,U,h,m){var S=K[W];if(S==null||!S[U])return K;h=g.Ri(S[U],h,m==="REPEATED_FIELDS_MERGE_OPTION_APPEND");m={};S={};return Object.assign({},K,(S[W]=Object.assign({},K[W],(m[U]=h,m)),S))}; yd=function(){XS.instance||(XS.instance=new XS);return XS.instance}; cFs=function(K){function W(){K.md=new g.Bh(0,0,0,0);K.XG=new g.Bh(0,0,0,0)} function U(f,G){K.sj(f,G)} function h(f){f.getVideoData()&&K.updateVideoData(f.getVideoData())} function m(f){K.iY&&T3(K);g9(K)!==K.JI&&K.resize();K.app.V().L("web_enable_smart_zoom")&&K.TG&&(f.state.isPaused()?K.TG.pause():g.M9(f,8)&&K.TG.playState==="paused"&&K.TG.play())} var S=K.app.Yx;S.addEventListener("initializingmode",W);S.addEventListener("videoplayerreset",h);S.addEventListener("videodatachange",U);S.addEventListener("presentingplayerstatechange",m);K.addOnDisposeCallback(function(){S.removeEventListener("initializingmode",W);S.removeEventListener("videoplayerreset",h);S.removeEventListener("videodatachange",U);S.removeEventListener("presentingplayerstatechange",m)})}; Pk=function(K,W,U,h,m){m=m===void 0?!1:m;yU.call(this,"player-overlay",K,{},W,h);this.videoAdDurationSeconds=U;this.interactionLoggingClientData=h;this.aJ=m}; eE_=function(){}; EA2=function(K,W){var U;return function(){U||(U=new pc(K,W));return U}}; oi=function(){this.j=new Map;this.X=!1}; TN=function(K){K.iB&&(K.iB.dispose(),K.iB=null)}; ZV=function(K,W){return function(U){return W(U)?U[K]:void 0}}; D7_=function(K,W){if(W.UM)for(var U=0;U>>8&255}; Lc=function(K,W){K.K6&&!K.LN.nN()?K.K6(W):K.handleError(W)}; $7_=function(K){this.j=K}; KN=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout",B:{tabindex:"0"},K:[{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{T:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",W,U,h);this.X=null;this.W=this.yH("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new jg;g.k(this,this.N);this.hide()}; g.Wq=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{T:"path",B:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; xw=function(K,W){W.length!==0&&(K.N.push(W),K.X+=W.length)}; ln=function(K,W,U){this.X=K;this.W=W;this.fields=U||[];this.j=new Map}; he=function(K){K.U=null;K.G=null;K.S(UV("over"),K.D0);K.S("touchstart",K.wR);K.j&&K.S(UV("down"),K.irV)}; OYC=function(K,W,U,h,m,S,f){if(W&&U){K.Rw=U.cpn;K.FO(U.cpn,U.startTimeSecs||m);Y8C(K,U);var G=j_(K,"a2a",U);K.bZ(G);K.aU++;K.playback.pG(W,U,h||0,m||0,!!S,!!f)}else K.bZ({misspbkonadtrans:1,enter:(U==null?void 0:U.cpn)||"",exit:(W==null?void 0:W.cpn)||"",seek:S,skip:f})}; v2=function(K,W,U){W=W===void 0?!1:W;U=U===void 0?1048576:U;var h=mM(K);h=1/((K.Y.xv()||0)*K.policy.Ms+1/h);var m=K.eV.xv();m=m>0?m:1;var S=Math.max(h,m);K.policy.U>0&&m=2?f[1]:"";var G=kBL.test(W),I=iYs.exec(W);I=I!=null&&I.length>=2?I[1]:"";var d=zEe.exec(W);d=d!=null&&d.length>=2&&!Number.isNaN(Number(d[1]))?Number(d[1]):1;var J=N4L.exec(W);J=J!=null&&J.length>=2?J[1]:"0";var e=GD(K.player.V().M$),E=K.player.getVideoData(1),B=g.wZ(E.Ms,!0),D="BISCOTTI_ID"in U?U.BISCOTTI_ID:"";AjD(K,B,W,D.toString(),K.player.V(), E);E={splay:!1,lactMilliseconds:U.LACT.toString(),playerHeightPixels:Math.trunc(U.P_H),playerWidthPixels:Math.trunc(U.P_W),vis:Math.trunc(U.VIS),signatureTimestamp:20376,autonavState:IK(K.player.V())};h&&(h={},MaY(h,U.YT_REMOTE)&&(E.mdxContext=h));if(h=REF.includes(e)?void 0:g.LY("PREF")){for(var a=h.split(RegExp("[:&]")),Q=0,u=a.length;Q1&&O[1].toUpperCase()==="TRUE"){B.user.lockedSafetyMode=!0;break}}E.autoCaptionsDefaultOn= JLY(h)}W=yjC.exec(W);(W=W!=null&&W.length>=2?W[1]:"")&&I&&(B.user.credentialTransferTokens=[{token:W,scope:"VIDEO"}]);W={contentPlaybackContext:E};f={adBlock:Math.trunc(U.AD_BLOCK),params:f,breakIndex:d,breakPositionMs:J,clientPlaybackNonce:U.CPN,topLevelDomain:e,isProxyAdTagRequest:G,context:B,adSignalsInfoString:r4(ab(D.toString())),overridePlaybackContext:W};m!==void 0&&(f.cueProcessedMs=Math.round(m).toString());I&&(f.videoId=I);U.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=U.LIVE_TARGETING_CONTEXT); U.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(U.AD_BREAK_LENGTH*1E3).toString());S&&(f.driftFromHeadMs=S.toString());f.currentMediaTimeMs=Math.round(K.player.getCurrentTime(1)*1E3);(K=K.player.getGetAdBreakContext())&&(f.getAdBreakContext=K);return f}; da=function(K){this.value=K}; Xw=function(K){PNp.call(this,Error(K),{message:K})}; Je=function(K){this.iZ=qR(K)}; pw2=function(K){this.j=K;K.jD("/client_streamz/bg/ec",g.Mk("en"),g.Mk("mk"))}; kf=function(){Zu.apply(this,arguments)}; oAR=function(K,W,U,h,m){function S(I){G||(G=!0,h.call(m,I))} function f(I){G||(G=!0,U.call(m,I))} var G=!1;try{W.call(K,f,S)}catch(I){S(I)}}; ZY2=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; bY$=function(K,W,U){var h=K.KF(W,U);K.hM=h;K.listeners.forEach(function(m){m.IX(h)})}; VkY=function(K){return sx$(K,function(W){return g.sb(W,"ytp-ad-has-logging-urls")})}; GlR=function(K){var W=K!==K.top,U=K.top===VBC(K),h=-1,m=0;if(W&&U&&K.top.mraid){h=3;var S=K.top.mraid}else h=(S=K.mraid)?W?U?2:1:0:-1;S&&(S.IS_GMA_SDK||(m=2),yMp(Xwp,function(f){return typeof S[f]==="function"})||(m=1)); return{IP:S,compatibility:m,gLp:h}}; A6=function(K,W){W.sort(function(S,f){function G(I){UF("TriggerCategoryOrder enum does not contain trigger category: "+I)} return S.category===f.category?S.trigger.triggerId.localeCompare(f.trigger.triggerId):vAC(S.category,G)-vAC(f.category,G)}); var U=new Map;W=g.z(W);for(var h=W.next();!h.done;h=W.next())if(h=h.value,l5(K.j,h.slot))if(La(K.j,h.slot).G)La(K.j,h.slot).J.push(h);else{K.Yd.Bq("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",h.slot,h,h.layout);var m=U.get(h.category);m||(m=[]);m.push(h);U.set(h.category,m)}W=g.z(q82);for(h=W.next();!h.done;h=W.next())m=g.z(h.value),h=m.next().value,m=m.next().value,(h=U.get(h))&&x7R(K,h,m);(W=U.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&CNs(K,W);(W=U.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&SDp(K, W);(U=U.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&lOD(K,U)}; EV=function(K){var W;(W=K.Ez)==null||W.stop();K.G.hide();K.U.hide();e_(K)}; g.TA=function(K,W){return K in Bq?Bq[K]:W}; LX$=function(K){Uf(DB,Hq,1,K)}; $i=function(K){this.j=K}; ra=function(K,W,U,h){z5C(K);W&&(W.unsubscribe("size-change",K.yG,K),W.unsubscribe("back",K.HN,K));U.subscribe("size-change",K.yG,K);U.subscribe("back",K.HN,K);if(K.Xo){g.$C(U.element,h?"ytp-panel-animate-back":"ytp-panel-animate-forward");U.U5(K.content);U.focus();K.element.scrollLeft=0;K.element.scrollTop=0;var m=K.size;z$p(K);g.Dl(K.element,m);K.N=new g.QC(function(){KKR(K,W,U,h)},20,K); K.N.start()}else U.U5(K.content),W&&W.detach()}; xQ=function(K,W){var U;Ns(K,function(h){U=W[h];return!!U}); return U}; g.TD=function(K,W){for(var U in K)if(!(U in W)||K[U]!==W[U])return!1;for(var h in W)if(!(h in K))return!1;return!0}; WKY=function(K,W){aK(K,W.DL(),function(U,h,m){W.KO(U,h,m)})}; g.sj=function(K,W,U){t3(K,U)||S8(K,W,U);t3(K,"video_to_ad")||S8(K,W,"video_to_ad");t3(K,"ad_to_video")||S8(K,W,"ad_to_video");t3(K,"ad_to_ad")||S8(K,W,"ad_to_ad")}; hV2=function(K,W,U,h){h=h===void 0?!1:h;W=g.hc("web_fp_via_jspb")?Object.assign({},W):W;g.hc("use_cfr_monitor")&&UYL(K,W);if(g.hc("use_request_time_ms_header"))W.headers&&wa(K)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.AI)())));else{var m;if((m=W.postParams)==null?0:m.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,g.AI)())}U&&Object.keys(W).length===0?g.Qu(K):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),QJ(K,W.postBody, W,g.ka,h)):QJ(K,JSON.stringify(W.postParams),W,$3,h):g.ka(K,W)}; OV=function(){return j_p()||Y3()||xF()?!0:g.TA("EOM_VISITOR_DATA")?!1:!0}; cq=function(){g.p.call(this);var K=this;this.j=new Map;this.X=VkY(function(W){if(W.target&&(W=K.j.get(W.target))&&W)for(var U=0;U=U))return h.push(m.getValue()),g.V3(m)}).then(function(){return h})}; SRR=function(K){var W=Fk(K.D.h7());return W?K.j?W.zP():W.cM():!1}; Do=function(K,W,U,h){((K|3)&15)>=13&&(K>>1&16)<4&&W[t[36]]();if((K|56)==K){if(U===t[25]){var m;(m=h[t[18]](t[16]))>=0?(U=t[39]+h[t[41]](0,m),h=h[t[41]](m+1)):(m=h[t[18]](t[73]))>=0&&(U=t[39]+h[t[41]](0,m),h=h[t[41]](m+3))}W[U]=h}if(K-6>>3>=1&&K-2>>5<1){m=W[t[18]](t[22],12);var S=W[t[18]](t[22],m+1);m>0&&S>0?(U[t[14]]=W[t[41]](0,S),W=W[t[41]](S+1)):(U[t[14]]=W,W=t[3]);var f=[W,U]}(K-6^7)>=K&&K+8>>255&&(U+=64);var h=new Uint8Array(U);h[0]=128;for(var m=K.W*8,S=1;S<9;S++){var f=m%256;h[U-S]=f;m=(m-f)/256}K.update(h);for(U=0;U<8;U++)W[U*4]=K.j[U]>>>24,W[U*4+1]=K.j[U]>>>16&255,W[U*4+2]=K.j[U]>>>8&255,W[U*4+3]=K.j[U]&255;GyR(K);return W}; cw=function(K){this.value=K}; eVp=function(K,W,U){var h=String(g.qs.location.href);return h&&K&&W?[W,dYD(JaF(h),K,U||null)].join(" "):null}; EDC=function(K,W,U,h){(K=g.qs[K])||typeof document==="undefined"||(K=(new jd(document)).get(W));return K?eVp(K,U,h):null}; HXC=function(K){K.j.unsubscribe("internalvideodatachange",K.W0,K);K.X.unsubscribe("internalvideodatachange",K.W0,K);K.vl.V().L("html5_gapless_use_format_info_fix")&&(K.j.unsubscribe("internalvideoformatchange",K.W0,K),K.X.unsubscribe("internalvideoformatchange",K.W0,K));K.j.unsubscribe("mediasourceattached",K.W0,K);K.X.unsubscribe("statechange",K.CB,K)}; BDC=function(K){K.D.isFullscreen()?g.HW(K.D,K.element,10):K.U5(ah(K).body)}; pm=function(K){return K==null?K:Jk2(K)}; g.NL=function(K){K=K===void 0?{}:K;this.languageCode=K.languageCode||"";this.languageName=K.languageName||null;this.kind=K.kind||"";this.name=K.name===void 0?null:K.name;this.displayName=K.displayName||null;this.id=K.id||null;this.j=K.is_servable||!1;this.isTranslateable=K.is_translateable||!1;this.url=K.url||null;this.vssId=K.vss_id||"";this.isDefault=K.is_default||!1;this.translationLanguage=K.translationLanguage||null;this.xtags=K.xtags||"";this.captionId=K.captionId||""}; F4=function(K,W,U,h,m,S,f){ML.call(this,K,W,U,h,S===void 0?!0:S,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",f===void 0?!1:f);this.j=null;this.W=m;this.hide()}; g.SG=function(K){var W=typeof K;return W=="object"&&K!=null||W=="function"}; oK=function(K,W,U,h,m,S,f,G,I){K=K.filter(function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&e.adSlotMetadata.triggeringSourceLayoutId===W.layoutId}); if(K.length!==0){if(K.length!==1)return new v("Invalid InPlayer slot association for the given PlayerBytes layout");K=K[0];f=DY$(K,S,U,h,f);if(f instanceof v)return f;var d;S={slotId:K.adSlotMetadata.slotId,slotType:K.adSlotMetadata.slotType,slotPhysicalPosition:(d=K.adSlotMetadata.slotPhysicalPosition)!=null?d:1,wk:"core",slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers};d=g.P(K.fulfillmentContent.fulfilledLayout, HMR);if(!d||!rap(d))return new v("Invalid InPlayerAdLayoutRenderer");f={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,wk:"core"};U=KD(d,U,h);if(U instanceof v)return U;h=[];var J=d.adLayoutMetadata.layoutType;I&&h.push(new Pq({}));if(J==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")h.push.apply(h,g.z4(TDz(K.adSlotMetadata.triggerEvent,W))),(G=aEY(U,W.layoutId))&&h.push(new pN(G));else if(J==="LAYOUT_TYPE_ENDCAP"||J==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){h.push(new vM(Wx(K.adSlotMetadata.triggerEvent))); if(J==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new v("Cannot parse endcap layout since AdUxReadyApi is not provided");G&&h.push(G)}else return new v("Not able to parse an SDF InPlayer layout");m=Object.assign({},f,U,{renderingContent:d.renderingContent,uZ:new Map,t7:q$(m,S)(f),clientMetadata:new Zi(h),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},S,{fulfilledLayout:m,clientMetadata:new Zi([])})}}; wOs=function(K){if(!K.length)return[];K=(0,g.yb)(K,function(U){return U!=null&&U.It()}); for(var W=1;W0&&(this.X=U.j8)}; $YC=function(K,W,U){if(!K.CX||K.uA==-1||W.X===-1||K.CX.X===-1)return 0;K=W.X-K.CX.X;return K>U?0:K}; OMC=function(){function K(U){return W.call(K.src,K.listener,U)} var W=YRY;return K}; caR=function(K){var W,U,h=(U=(W=K.iX.lY())==null?void 0:W.getCurrentTime())!=null?U:K.iX.getCurrentTime(),m=K.W.IQ(h);vxs(K,m,h,!0);K.isSeeking=!1;Array.from(K.X.keys()).sort(function(S,f){return S-f}).forEach(function(S){S>m?VJ(K,S,K.X.get(S)):S===m&&VJ(K,S,K.X.get(S),h-K.W.getStartTime(S))})}; Xk=function(K,W,U){(K=K.j[W])&&K.N(U)}; vq=function(){}; var eRs=function(K,W,U,h,m,S,f,G,I,d,J){return gt[t[11]](this,16,K,W,U,h,m,S,f,G,I,d,J)}; nDC=function(){this.j=this.h8=null}; g.$w=function(K){return"crn_"+K}; P1=function(K){gJ.X.cancel();Nc=K;gJ.done=!0}; FK2=function(K,W){Xa(K,1,W.clientState);bY(K,2,W.KM5,gDs,1)}; u$$=function(K,W){if(W<0)return"0";K=Math.floor(Math.min(W,K.api.getDuration())*1E3);return K>2147483647?"0":String(K)}; iMs=function(K,W,U){K.button==null?g.wG(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(K.X&&g.$C(K.X.element,"ytp-ad-info-hover-text-short"),(W=W&&W.serviceEndpoint&&g.P(W.serviceEndpoint,m72)||null)?(kyp(K,W,U),K.button.listen("click",function(){K.j&&!K.j.Xo&&(K.j.show(),fHe(K))})):K.button.listen("click",function(){return fHe(K)}))}; zV_=function(K,W,U){K.j[W]=U}; DP=function(K){if(!K.userDisplayImage)return"";var W=K.userDisplayImage.split("/");if(W.length===5)return K=W[W.length-1].split("="),K[1]="s20-c",W[W.length-1]=K.join("="),W.join("/");if(W.length===8)return W.splice(7,0,"s20-c"),W.join("/");if(W.length===9)return W[7]+="-s20-c",W.join("/");g.eI(new g.EB("Profile image not a FIFE URL.",K.userDisplayImage));return K.userDisplayImage}; NDp=function(K){K.provider.videoData.youtubeRemarketingUrl&&!K.DA&&(wx(K,K.provider.videoData.youtubeRemarketingUrl),K.DA=!0)}; g.CN=function(K){g.p.call(this);this.callback=K;this.j=new qL(0,0,.4,0,.2,1,1,1);this.delay=new g.x3(this.next,window,this);g.k(this,this.delay)}; LN=function(K,W){ld(K,W.reason,W.j.info,W.token,W.videoId)}; K9=function(K){this.j=K;this.offset=0}; BnC=function(K){this.pos=0;this.X=[];this.j=AaC(K===void 0?4096:K);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; RVp=function(K,W,U,h){U||(h?W.keyCode!==32||W.repeat||K.N||!K.W||g.yG(K.delay):Jd(K))}; n_=function(K){if(K==null)return K;if(typeof K==="string"&&K)K=+K;else if(typeof K!=="number")return;return X8(K)?K>>>0:void 0}; Wf=function(K){this.value=K}; yaC=function(K){switch(K){case "OPEN_IN_NEW":return Nk();case "NOT_INTERESTED":return{T:"svg",B:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return z_();default:return Nk()}}; Mvp=function(K){for(var W=g.z(K.Vt),U=W.next();!U.done;U=W.next()){var h=g.z(U.value);U=h.next().value;h=h.next().value;h.mE||Up(K,U)}}; g.PSC=function(K){var W;K.responseType&&K.responseType!=="text"?K.responseType==="arraybuffer"&&(W=hx(new Uint8Array(K.response))):W=K.responseText;return!W||W.length>2048?"":W.indexOf("https://")===0?W:""}; oDe=function(K,W){var U=US(K.videoTrack).find(function(h){return h.startTime>=W&&pO_(K,h.startTime,!1)}); return U&&U.startTime0&&K.set("osts",""+W.startSeconds);h||(m.L("html5_onesie_disable_partial_segments")&&K.set("oses","1"),W=m.L("html5_gapless_onesie_no_media_bytes")&&IG(W)&&W.Cg,U&&!W?(W=U.audio,K.set("pvi",U.video.join(",")),m.L("html5_onesie_disable_audio_bytes")||K.set("pai",W.join(",")),up||K.set("osh","1")):(K.set("oad","0"),K.set("ovd","0"),K.set("oaad", "0"),K.set("oavd","0")))}; Jx=function(K,W){W&&g.hs(K.element,dY(K.j,W))}; LX=function(K){this.value=K}; LF_=function(K,W){return er(K,2,W)}; eO=function(K,W,U){LKp(K,U.JS||"unknown");K.iX.seekTo(W,U)}; Ep=function(K,W,U,h,m,S,f,G,I){this.slot=W;this.X=U;this.zm=f;this.dk=G;this.TK=I;this.j=new AOD(K,W,h,m,S)}; Bf=function(K,W,U,h){g.p.call(this);this.X=W;this.Yd=U;this.Xx=h;this.j=K(this,this,this,this,this);g.k(this,this.j);K=g.z(W);for(W=K.next();!W.done;W=K.next())g.k(this,W.value)}; KIz=function(K){return K.lX==="H"||K.lX==="h"}; t3=function(K,W){return g.kQ(function(){var U=$7(W);return K in U})()}; Dx=function(K,W,U){var h=K.api.getCurrentTime(),m=WID(K,h);K=WID(K,h+W);return{startMediaTimeMs:m,endMediaTimeMs:K,seekSource:U}}; g.qB=function(K){for(var W in K)return W}; uLC=function(K){this.j=new pX;this.X=K}; Hf=function(K,W){g.y.call(this,{T:"button",Hp:["ytp-fullscreen-button","ytp-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},bX:"{{icon}}"});this.D=K;this.X=W;this.message=null;this.j=g.tk(this.X.Fd(),this.element);this.N=new g.QC(this.N8,2E3,this);g.k(this,this.N);this.S(K,"fullscreentoggled",this.wX); this.S(K,"presentingplayerstatechange",this.SV);this.S(K,"resize",this.SV);this.listen("click",this.onClick);g.lY()&&(W=this.D.xx(),this.S(W,UaL(),this.sy),this.S(W,hPC(document),this.vD));K.V().gk||K.V().Y||this.disable();K.createClientVe(this.element,this,139117);this.SV();this.wX(K.isFullscreen())}; rY=function(){var K=g.vB("yt.abuse.playerAttLoader");return K&&["bgvma","bgvmb","bgvmc"].every(function(W){return W in K})?K:null}; wY=function(K){var W,U=K.policy.U&&((W=K.loader)==null?void 0:W.zb());W=K.loader.getCurrentTime()||0;W=uV$(K,W);if(K.policy.Cw&&K.loader.isSeeking()){var h=TZ(K.videoTrack,W);K.loader.rk("asmtfnctv",{b:W,a:h});isNaN(h)||(W=h)}h=K.loader.A7()||0;W+=h;h=S_(K.videoData)||g.aG(K.videoData);var m=0;U?(h&&(m=Number.MAX_SAFE_INTEGER),K.videoData.Cf&&(m=Math.ceil(K.videoData.PS*1E3))):m=Math.ceil(W*1E3);return Math.min(Number.MAX_SAFE_INTEGER,m)}; Qz=function(K,W,U){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(U===void 0?0:U)&&Symbol.for&&K?Symbol.for(K):K!=null?Symbol(K):Symbol():W}; map=function(K,W){return jqs(function(U){return U.publicName===K&&U.userIdentifier!==void 0},W)}; S6p=function(K,W){K.vl.Hh()||(K.rk("sgap",{f:W}),K.vl.clearQueue(!1,W==="pe"))}; dY=function(K,W){K=K===void 0?null:K;W=W===void 0?null:W;if(K==null)return g.eI(Error("Got null or undefined adText object")),"";var U=g.lP(K.text);if(!K.isTemplated)return U;if(W==null)return g.eI(Error("Missing required parameters for a templated message")),U;K=g.z(Object.entries(W));for(W=K.next();!W.done;W=K.next()){var h=g.z(W.value);W=h.next().value;h=h.next().value;U=U.replace("{"+W+"}",h)}return U}; Ym=function(){if(!$m){var K=$m=new f$$;K.Re.length=0;K.y9.length=0;tZD(K,G32)}return $m}; I$Y=function(K,W){if(W.itagDenylist)for(var U=0;U1?W[K[0]]=K[1]:K.length===1&&Object.assign(W,K[0])}; TxR=function(K,W){Vd(K,1,W.cpn);Xa(K,2,W.sequenceNumber);Vd(K,3,W.serializedWatchEndpointLoggingContext);if(W.decoderInfo)for(var U=0;U0)){B.O5(5);break}return g.T(B,Fy(5E3),6);case 6:f=new g.EB("Retrying OnePlatform request",{attempt:S}),g.eI(f);case 5:return g.Bj(B,7),g.T(B,a$_(K,W),9);case 9:return B.return();case 7:G=g.SV(B);I=XI(G);d=I.errorCode;J=K.V();e=J.L("html5_use_network_error_code_enums")?401:"401";h&&d==="manifest.net.badstatus"&&I.details.rc===e&&(h=!1,S===m-1&&(m+= 1));if(S===m-1)return E=wQ$(U,I.details),E.details.backend="op",E.details.originec=d,B.return(Promise.reject(E));if(d==="auth"||d==="manifest.net.retryexhausted")return B.return(Promise.reject(I));K.handleError(I);if(CR(I.severity)){B.O5(4);break}case 3:S++;B.O5(2);break;case 4:return B.return(Promise.reject(wQ$(U,{backend:"op"})))}})}; iL=function(K,W){return pVD(K.X,W===void 0?!0:W)}; $a$=function(K){this.iZ=qR(K)}; F8=function(K){var W,U,h;return!!((W=K.playerResponse)==null?0:(U=W.playerConfig)==null?0:(h=U.mediaCommonConfig)==null?0:h.splitScreenEligible)}; g.FU=function(K){try{return K.j?K.j.responseText:""}catch(W){return""}}; Y6C=function(K){switch(Math.trunc(K.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; OTe=function(K){if(!(K.X<0)){var W=g.gh(K.provider),U=W-K.W;K.W=W;K.playerState.state===8?K.playTimeSecs+=U:K.playerState.isBuffering()&&!g.C(K.playerState,16)&&(K.rebufferTimeSecs+=U)}}; ux=function(K){g.y.call(this,{T:"div",Hp:["ytp-overlays-container"],K:[{T:"div",Z:"ytp-overlay-top-left"},{T:"div",Z:"ytp-overlay-top-right"},{T:"div",Z:"ytp-overlay-bottom-left"},{T:"div",Z:"ytp-overlay-bottom-right"}]});this.N=this.yH("ytp-overlay-top-left");this.W=this.yH("ytp-overlay-top-right");this.j=this.yH("ytp-overlay-bottom-left");this.X=this.yH("ytp-overlay-bottom-right");g.HW(K,this.element,4)}; cme=function(K){if(K.FA&&typeof K.FA=="function")return K.FA();if(!K.hC||typeof K.hC!="function"){if(typeof Map!=="undefined"&&K instanceof Map)return Array.from(K.keys());if(!(typeof Set!=="undefined"&&K instanceof Set)){if(g.y3(K)||typeof K==="string"){var W=[];K=K.length;for(var U=0;UD.width*D.height*D.fps)D=O}else E.push(O)}else G[u]="disdrmhfr";B.reduce(function(Z, x){return x.getInfo().isEncrypted()&&Z},!0)&&(e=J); m=Math.max(m,0);J=D||{};d=J.fps===void 0?0:J.fps;D=J.width===void 0?0:J.width;J=J.height===void 0?0:J.height;Q=K.L("html5_native_audio_track_switching");B.push(iTs(E,U,h,S,"93",D,J,d,I,"auto",m,e,a,Q));Object.entries(G).length&&f(G);return wW(K.U,B,km(K,W),!1)}; AN2=function(K,W){return[ix(K,0,K.length>>1,W),ix(K,K.length>>1)]}; RmC=function(K,W){for(var U=new Map,h=g.z(K.j.keys()),m=h.next();!m.done;m=h.next()){m=m.value;var S=m.split("_")[0];W.has(S)||U.set(m,K.j.get(m))}K.j=U}; AmR=function(K){return{type:L_(K,1),event:L_(K,2),ePs:Nxs(K,3),Do:Nxs(K,4),BP:fz(K,5),identifier:fz(K,6),q$:L_(K,9)}}; RPF=function(K){return isNaN(K)?0:Math.max((Date.now()-K)/1E3-30,0)}; zZ=function(K,W,U){if(!K.W){if(W){K.tooltipRenderer=W;W=K.tooltipRenderer.text;var h=!1,m;(W==null?0:(m=W.runs)==null?0:m.length)&&W.runs[0].text&&(K.update({title:W.runs[0].text.toString()}),h=!0);g.Z6(K.title,h);W=K.tooltipRenderer.detailsText;m=!1;var S;if((W==null?0:(S=W.runs)==null?0:S.length)&&W.runs[0].text){h=W.runs[0].text.toString();S=h.indexOf("$TARGET_ICON");if(S>-1)if(K.tooltipRenderer.targetId){W=[];h=h.split("$TARGET_ICON");var f=new g.Md({T:"span",Z:"ytp-promotooltip-details-icon", K:[ym_[K.tooltipRenderer.targetId]]});g.k(K,f);for(var G=[],I=g.z(h),d=I.next();!d.done;d=I.next())d=new g.Md({T:"span",Z:"ytp-promotooltip-details-component",bX:d.value}),g.k(K,d),G.push(d);h.length===2?(W.push(G[0].element),W.push(f.element),W.push(G[1].element)):h.length===1&&(S===0?(W.push(f.element),W.push(G[0].element)):(W.push(G[0].element),W.push(f.element)));S=W.length?W:null}else S=null;else S=h;if(S){if(typeof S!=="string")for(g.QG(K.details),m=g.z(S),S=m.next();!S.done;S=m.next())K.details.appendChild(S.value); else K.update({details:S});m=!0}}g.Z6(K.details,m);m=K.tooltipRenderer.acceptButton;S=!1;var J,e,E;((J=g.P(m,g.Jy))==null?0:(e=J.text)==null?0:(E=e.runs)==null?0:E.length)&&g.P(m,g.Jy).text.runs[0].text&&(K.update({acceptButtonText:g.P(m,g.Jy).text.runs[0].text.toString()}),S=!0);g.Z6(K.acceptButton,S);J=K.tooltipRenderer.dismissButton;e=!1;var B,D,a;((B=g.P(J,g.Jy))==null?0:(D=B.text)==null?0:(a=D.runs)==null?0:a.length)&&g.P(J,g.Jy).text.runs[0].text&&(K.update({dismissButtonText:g.P(J,g.Jy).text.runs[0].text.toString()}), e=!0);g.Z6(K.dismissButton,e)}U&&(K.sourceElement=U);K.j=MZz(K);K.U=!1;K.D.V().L("web_player_hide_nitrate_promo_tooltip")||K.J7(!0);FV(K);K.Xo&&!K.J&&(K.J=!0,K.xd.GV(0));K.X&&K.D.logVisibility(K.element,K.Xo)}}; T$e=function(K,W){K.status="km";XL("drm_net_s",void 0,K.videoData.jV);var U=new g.ZQ(K.C.WS),h={context:g.Nm(U.config_||g.aA())};h.drmSystem=PFL[K.X.flavor];h.videoId=K.videoData.videoId;h.cpn=K.videoData.clientPlaybackNonce;h.sessionId=K.sessionId;h.licenseRequest=g.o0(W.message);h.drmParams=K.videoData.drmParams;isNaN(K.cryptoPeriodIndex)||(h.isKeyRotated=!0,h.cryptoPeriodIndex=K.cryptoPeriodIndex);var m,S,f=!!((m=K.videoData.X)==null?0:(S=m.video)==null?0:S.isHdr());h.drmVideoFeature=f?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";K.C.experiments.qk().j.v3(pQC)&&(h.context=g.Sc(K.videoData));if(h.context&&h.context.client){if(m=K.C.j)h.context.client.deviceMake=m.cbrand,h.context.client.deviceModel=m.cmodel,h.context.client.browserName=m.cbr,h.context.client.browserVersion=m.cbrver,h.context.client.osName=m.cos,h.context.client.osVersion=m.cosver;K.C.experiments.qk().j.v3(pQC)||(h.context.user=h.context.user||{},K.videoData.uX&&(h.context.user.credentialTransferTokens=[{token:K.videoData.uX,scope:"VIDEO"}]), K.videoData.Pp&&(h.context.user.kidsParent={oauthToken:K.videoData.Pp}));h.context.request=h.context.request||{};h.context.request.mdxEnvironment=K.videoData.mdxEnvironment||h.context.request.mdxEnvironment;g.N6(K.X)&&(h.fairplayKeyId=g.o0(ia$(K.fairplayKeyId)));g.UY(K.C,g.mp(K.videoData)).then(function(G){WnY(W,h,U,G);K.status="rs"})}else K.error("drm.net",2,"t.r;ic.0")}; KW=function(){return typeof BigInt==="function"}; Ax=function(K,W,U){K.state.j.hasOwnProperty(W)||fZ(K,W,U);K.app.V().J&&(K.state.J[W]=function(){return U.apply(K,g.Xl.apply(0,arguments))},K.state.G.add(W))}; DsC=function(K,W,U){return K.call.apply(K.bind,arguments)}; g.yz=function(K,W){g.p.call(this);var U=this;this.provider=K;this.N=new Map;this.RR=new g.Kw;this.xd={Ptr:function(){return U.qoe}, WMp:function(){return U.j}, t5s:function(){return U.X}}; this.provider.videoData.Av()&&!this.provider.videoData.u5&&(this.j=new oy(this.provider),this.j.X=0,g.k(this,this.j),this.qoe=new g.RG(this.provider,W),g.k(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.aQ=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.aQ,this.j));if(K.C.playerCanaryState==="canary"||K.C.playerCanaryState==="holdback")this.X=new Wm(this.provider),g.k(this,this.X)}; oML=function(K,W,U,h,m){if(Array.isArray(W))for(var S=0;S>>8|f<<24,f+=S|0,f^=G+38293,S=S<<3|S>>>29,S^=f,I=I>>>8|I<<24,I+=G|0,I^=d+38293,G=G<<3|G>>>29,G^=I;S=[S,f];K[m]^=S[0];m+1=2||tK()>0||!m8R())return!1;var W=K.GL.get("aitags");if(!W)return!1;W=ZU(W).split(",");for(var U=[],h=g.z(K.VE),m=h.next();!m.done;m=h.next())m=m.value,g.BX(W,m)&&U.push(m);if(!U.length)return!1;K.GL.set("altitags",g.kH(U.join(",")));return!0}; Ga=function(K){this.value=K}; Y2=function(){var K=this;this.fk=this.uF=eY_;this.promise=new g.X3(function(W,U){K.uF=W;K.fk=U})}; f82=function(K,W,U,h,m,S){if(!K.Xm)if(g.IN(K,U))K.bZ({gdu:"undec",seg:U,itag:m});else if(W=dM(K,W,U,h,S),!(K.playback.getVideoData().Sj()&&(W==null?0:W.Q_)))return W}; JK=function(K){return Object.values(K.tracks).find(function(W){return W.languageCode==="en"&&W.kind==="asr"})}; e2=function(K,W){K=n7(K,W);return K>=0?K-W:0}; Bu=function(K,W,U){return E4(K,K.state|W,null,U===void 0?null:U)}; g.q1=function(K){K.j=0}; tJp=function(K,W){var U=g.gh(K.provider);if(!K.provider.C.experiments.Rk("html5_refactor_sabr_video_format_selection_logging")||W.j.id!==K.Bp){var h=[W.j.id,W.X,K.Bp,W.reason];K.provider.C.qk().j.v3(g.D5)&&!K.hK&&h.push(Hu(K,W));W.token&&h.push(W.token);g.Fa(K,U,"vfs",h);K.Bp=W.j.id;h=K.provider.iX.getPlayerSize();if(h.width>0&&h.height>0){h=[Math.round(h.width),Math.round(h.height)];var m=g.rM();m>1&&h.push(m);g.Fa(K,U,"view",h)}K.hK||(K.provider.C.G9()&&hZ(K,"rqs2"),K.provider.videoData.j&&vi(K.provider.videoData.j)&& K.j.set("preload",["1"]));K.hK=!0;K.W=!0}W.reason==="m"&&++K.Ev===100&&rD(K,2);g.Fa(K,U,"vps",[K.RR]);K.Ns||K.reportStats(U)}; NY=function(K,W,U,h){h=h===void 0?{}:h;var m={},S=Math.round(h.timestamp||(0,g.AI)());m.eventTimeMs=SK.N)throw Error();K.j=W;return U}; gM=function(K,W){var U=this;this.handleError=K;this.j=W;this.X=!1;self.document===void 0||self.addEventListener("beforeunload",function(){U.X=!0}); this.N=Math.random()<=.2}; wxs=function(K,W,U,h){var m=null;switch(W){case "JSON":try{var S=U.responseText}catch(f){throw h=Error("Error reading responseText"),h.params=K,jv(h),f;}K=U.getResponseHeader("Content-Type")||"";S&&K.indexOf("json")>=0&&(S.substring(0,5)===")]}'\n"&&(S=S.substring(5)),m=JSON.parse(S));break;case "XML":if(K=(K=U.responseXML)?xRp(K):null)m={},g.tD(K.getElementsByTagName("*"),function(f){m[f.tagName]=tIR(f)})}h&&FrD(m); return m}; Qjs=function(K,W){return K.NW.N?!1:K.XW.X?!1:typeof K.jtypeof W.j?!1:K.j0?K.SX=-K.SX:K.Oes&&K.SX>0&&K.SX<16&&(K.SX+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.VX=new ODs;this.VX.C5=0;var W=this.VX;var U=K.level,h=K.method,m=K.SX,S=K.PZx,f=K.strategy;if(W){var G=1;U===-1&&(U=6);m<0?(G=0,m=-m):m>15&&(G=2,m-=16);if(S<1||S>9||h!==8||m<8||m>15||U<0||U>9||f<0||f>4)W=za(W,-2);else{m===8&&(m=9); var I=new $P$;W.state=I;I.VX=W;I.wrap=G;I.Uv=null;I.BK=m;I.Ac=1<>=7;S<30;S++)for(RN[S]=f<<7,m=0;m<1<=d.Ac&&(W===0&&(Aj(d.head),d.Oz=0,d.OC=0,d.RQ=0),U=new Ji.GM(d.Ac),Ji.jE(U,S,f-d.Ac,d.Ac,0),S=U,f=d.Ac);U=K.wg;h=K.mx;m=K.input;K.wg=f;K.mx=0;K.input=S;for(M7(d);d.Kg>=3;){S=d.Oz;f=d.Kg-2;do d.IR=(d.IR<1E5||++W.j})}; C8e=function(){this.j={}}; d_=function(){}; Lq2=function(K,W,U){var h=[];U=g.z(U);for(var m=U.next();!m.done;m=U.next())h.push(l8R(K,W,m.value));return h}; Jde=function(K,W,U){if(!K.j.has(W)){K.j.add(W);var h={};K.params.bu.bZ(W,Object.assign({},U,(h.p_ac=K.params.adCpn,h.p_isv=K.params.y7K&&K.params.ZE,h)))}}; Kts=function(K,W,U,h,m){if(!K.LR){var S=K.Pd();if(S){S.VH().layoutId!==U.layoutId&&UF("SubLayout mismatch in exitSubLayout",W,U,{exitingSubLayout:U.layoutId,activeSubLayout:S.VH().layoutId});K.LR=!0;S.iG(S.VH(),h);S=Object.assign({},JR(K),{layoutId:U.layoutId,layoutExitReason:h});var f=S.layoutId,G=S.layoutExitReason;if(S.wQ){var I={};na(S.i5,"wrsx",(I.xc=f,I.ler=G,I.ctp=gG(f),I))}K.fz(W,U,h);K.LR=!1;K.Sc?(K.Sc(),K.k5()||eL(K.Hl.get())):m()}else UF("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", W,U)}}; hdz=function(K){if(!g.C(K.playerState,128))if(K.videoData.isLoaded(),K.Q3=g.k4(K.videoData.XY),g.Et(K.videoData)){K.aW.tick("bpd_s");Bp(K).then(function(){K.aW.tick("bpd_c");if(!K.qs()){K.Mo&&(K.uY(Bu(Bu(K.playerState,512),1)),wh(K));var h=K.videoData;h.endSeconds&&h.endSeconds>h.startSeconds&&ut(K,h.endSeconds);K.X4.finished=!0;Dn(K,"dataloaded");K.Nr.rr()&&Hp(K);Wt$(K.Dg,K.T7)}}); K.L("html5_log_media_perf_info")&&K.rk("loudness",{v:K.videoData.lj.toFixed(3)},!0);var W,U=(W=K.mediaElement)==null?void 0:W.H3();if(U&&"disablePictureInPicture"in U&&K.C.n7)try{U.disablePictureInPicture=K.C.l0&&!K.videoData.backgroundable}catch(h){g.eI(h)}UKs(K);K.e8=new AL(K.videoData)}else Dn(K,"dataloaded")}; r_=function(K,W){K.HE=W||K.iX.V().L("html5_allow_multiview_tile_preload")&&K.iX.getVideoData().fn;K.policy.eV||(K.isSuspended=!0,K.policy.BV&&(K.AG.stop(),K.Ez.stop(),K.XI.stop()),K.Ik.stop())}; jbC=function(K){return Array.prototype.map.call(K,function(W){W=W.toString(16);return W.length>1?W:"0"+W}).join("")}; g.w_=function(K,W,U){if(g.Tb(U))return K;U=g.mKD(U);if(typeof K==="string")return UR(K,g.kH(W),U);g.aT(K,W,U);return K}; Gpe=function(K,W,U,h,m,S,f,G){if(!SSL(U,G===void 0?!1:G))return new v("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:U});var I=Q8(U);if(I<=0)return new v("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:U});var d=new $W({current:null}),J=fhs(K,W,U,d,h,S,f);return t7p(K,h,S,I,m,function(e,E){var B=e.slotId,D=YW(U);e=f(e);var a,Q=(a=Ot(W,h,U.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?a: bh(W.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",B);B={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wk:"core"};a=J(Q,E);var u=Sp(a.clientMetadata,"metadata_type_fulfilled_layout");u||UF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");D=[new vM(h),new cp(I),new nQ(D),d];u&&D.push(new g_(u.layoutType));return{R4s:{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uZ:new Map,layoutExitNormalTriggers:[new F0(W.j,Q)],layoutExitSkipTriggers:[new uq(W.j, E.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Nq(W.j,E.layoutId)],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi(D),t7:e(B)},cKU:a}})}; kW=function(K){this.P8=3;this.qV=K;this.defaultValue=!1;this.E1="bool"}; iq=function(K){return K&&K.length?K.end(K.length-1):NaN}; Ihp=function(K,W){if(W=W.raw_reel_item_watch_response)K.reelItemWatchResponse=W}; dKe=function(K,W){for(var U=[],h=g.z(K.Lg.values()),m=h.next();!m.done;m=h.next())m=m.value,m.trigger.triggerType===W&&U.push(m);U.length>0&&A6(K.G(),U)}; JrY=function(){Fl&&typeof Fl.google_measure_js_timing!="undefined"&&(Fl.google_measure_js_timing||zb.disable())}; Fw=function(K,W,U){K.C.eV&&(K.xq=W,W.muted||Jm(K,!1),U&&K.C.storeUserVolume&&!K.C.oW&&(U={volume:Math.floor(W.volume),muted:W.muted},U.unstorable||(g.SI("yt-player-volume",U),g.SI("yt-player-volume",U,2592E3))),gZ(K),U=g.Nl&&K.mediaElement&&!K.mediaElement.aD(),K.C.oW&&!U||K.Yx.Bd("onVolumeChange",{muted:W.muted,volume:W.volume,unstorable:!K.C.storeUserVolume}))}; edp=function(K){var W,U;return g.r(function(h){return h.j==1?g.T(h,AR(K),2):h.j!=3?(W=h.X,U=void 0,g.T(h,g.b5(W,["coldConfigStore"],{mode:"readwrite",e0:!0},function(m){return g.hp(m.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(S){U=S.getValue()})}),3)):h.return(U)})}; izp=function(K,W,U,h,m,S){var f={},G={};g.hI(W,function(I,d){I=I.filter(function(J){var e=J.itag;if(!J.zL)return G[e]="noenc",!1;if(S.q5&&J.lX==="(h"&&S.M5)return G[e]="lichdr",!1;if(!K.U&&J.lX==="1e")return G[e]="noav1enc",!1;if(J.lX==="("||J.lX==="(h"){if(K.N&&U&&U.flavor==="widevine"){var E=J.mimeType+"; experimental=allowed";(E=!!J.zL[U.flavor]&&!!U.j[E])||(G[e]=J.zL[U.flavor]?"unspt":"noflv");return E}if(!T_(K,a$.CRYPTOBLOCKFORMAT)&&!K.hK||K.Ns)return G[e]=K.Ns?"disvp":"vpsub",!1}return U&&J.zL[U.flavor]&& U.j[J.mimeType]?!0:(G[e]=U?J.zL[U.flavor]?"unspt":"noflv":"nosys",!1)}); I.length&&(f[d]=I)}); h&&Object.entries(G).length&&m({rjr:GR(G)});return f}; RT=function(K){this.iZ=qR(K)}; DKC=function(K,W){var U,h=(U=Sp(K.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:U.current;if(!h)return null;U=EB2(K,W);return{Vq:BZL(K,W),adPlacementConfig:Sp(K.clientMetadata,"metadata_type_ad_placement_config"),EV:U,contentCpn:Sp(K.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Sp(K.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Sp(K.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Sp(K.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,TE:void 0,tT:h,Ew:K.layoutId,videoLengthSeconds:Sp(K.clientMetadata,"metadata_type_video_length_seconds")}}; PHC=function(K){var W=K.layoutId,U=K.V9,h=K.i5;K.wQ&&(K={},na(h,"sleo",(K.xc=W,K.is=U,K.ctp=gG(W),K)),dqR(h))}; XF=function(K,W){this.j=K;this.pos=0;this.start=W||0}; nUY=function(K,W,U){(0,g.tD)(K.N,function(h){var m=K.j;if(!h.j&&(h.N(W,U),h.W())){h.j=!0;var S=h.X(),f=new qc;f.add("id","av-js");f.add("type","verif");f.add("vtype",h.U);h=yq(HpF);f.add("i",h.j++);f.add("adk",m);dv(f,S);m=new rrs(f);O5R(m)}})}; sF=function(){var K=this;this.U=!1;this.N=this.W=0;this.G=new y8;this.xd={Hum:function(){K.U=!0}, TBX:function(){return K.j}, q2k:function(W){Ml(K,W)}, LM:function(W){K.LM(W)}, H4e:function(W){Pp(K,W)}, BG:function(){return K.coldHashData}, IF:function(){return K.hotHashData}, vXH:function(){return K.X}, zcU:function(){return pQ()}, qOs:function(){return oT()}, kaK:function(){return g.vB("yt.gcf.config.coldHashData")}, ecH:function(){return g.vB("yt.gcf.config.hotHashData")}, FUH:function(){TZC(K)}, WUp:function(){K.LM(void 0);zt(K);delete sF.instance}, mIm:function(W){K.N=W}, nXk:function(){return K.N}}}; g.Yv=function(K){return K.containerType===1}; wLp=function(K){var W,U,h,m;return g.r(function(S){switch(S.j){case 1:return K.j.j&&typeof((W=navigator.mediaCapabilities)==null?void 0:W.decodingInfo)==="function"?g.T(S,Promise.resolve(),2):S.return(Promise.resolve());case 2:U=g.z(K.j.videoInfos),h=U.next();case 3:if(h.done){S.O5(0);break}m=h.value;return g.T(S,ahC(m),4);case 4:h=U.next(),S.O5(3)}})}; YP=function(K){return!!K.ow||K.Ii}; gn=function(K){g.yG(K.XI)}; Zn=function(K,W){var U;if((U=K.api.getVideoData())==null?0:U.mutedAutoplay){var h,m;if((h=W.target)==null?0:(m=h.className)==null?0:m.includes("ytp-info-panel"))return!1}return g.oZ(W)&&K.api.isMutedByMutedAutoplay()?(K.api.unMute(),K.api.getPresentingPlayerType()===2&&K.api.playVideo(),W=K.api.getPlayerStateObject(),!g.C(W,4)||g.C(W,8)||g.C(W,2)||K.AZ(),!0):!1}; V8=function(K,W,U,h,m,S,f){W={id:W,namespace:f!=null?f:"appapi"};S==="chapter"?(W.style=bq.CHAPTER_MARKER,W.visible=!0):isNaN(m)||(S==="ad"?W.style=bq.AD_MARKER:(W.style=bq.TIME_MARKER,W.color=m),W.visible=!0);K.Qd([new g.g0(U*1E3,h*1E3,W)],1);return!0}; Ez=function(){return yV("Firefox")||yV("FxiOS")}; QbY=function(K){Pp(K,g.TA("RAW_COLD_CONFIG_GROUP"));zt(K,g.TA("SERIALIZED_COLD_HASH_DATA"));var W;Qg_(K,(W=K.j)==null?void 0:W.configData)}; aL=function(K,W,U){K.l3("addEventListener",W,U)}; g.X0=function(K,W,U){return g.b5(K,[W],{mode:"readwrite",e0:!0,commit:uS()},function(h){return g.Rh(h.objectStore(W),U)})}; KA=function(K){Rd(K);K=ys(K);MC(K)||(Pj(K),K=$KC(FJ,u0));return K}; lH=function(K){for(;K.j.j;)try{var W=K.X(K.j);if(W)return K.j.Y=!1,{value:W.value,done:!1}}catch(U){K.j.X=void 0,ay(K.j,U)}K.j.Y=!1;if(K.j.N){W=K.j.N;K.j.N=null;if(W.Md)throw W.yO;return{value:W.return,done:!0}}return{value:void 0,done:!0}}; op=function(K,W,U){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=U||K(this.triggerType)}; vp=function(K,W){this.X=this.j=null;this.N=K||null;this.W=!!W}; ql=function(K,W,U){if(U&&U!==K.slotType)return!1;W=g.z(W);for(U=W.next();!U.done;U=W.next())if(!UC(K.clientMetadata,U.value))return!1;return!0}; crL=function(K,W,U,h){if(!W||!U||!W.videoData.X)return!1;var m=g.jV(K.C.experiments,"html5_df_downgrade_thresh"),S=K.L("html5_log_media_perf_info");if(!((0,g.AI)()-K.W<5E3?0:S||m>0))return!1;var f=((0,g.AI)()-K.W)/1E3;K.W=(0,g.AI)();U=U.getVideoPlaybackQuality();if(!U)return!1;var G=U.droppedVideoFrames-K.G,I=U.totalVideoFrames-K.J;K.G=U.droppedVideoFrames;K.J=U.totalVideoFrames;var d=U.displayCompositedVideoFrames===0?0:U.displayCompositedVideoFrames||-1;S&&K.C.G9()&&K.iX.rk("ddf",{dr:U.droppedVideoFrames, de:U.totalVideoFrames,comp:d});if(h)return K.j=0,!1;if((I-G)/f>K.jV||!m||g.PJ(K.C))return!1;K.j=(I>60?G/I:0)>m?K.j+1:0;if(K.j!==3)return!1;YSe(K,W.videoData.X);K.iX.rk("dfd",Object.assign({dr:U.droppedVideoFrames,de:U.totalVideoFrames},Op_()));return!0}; z9=function(K,W){this.N=!1;this.W=K;this.jV=W;this.U=0}; CQ=function(K,W,U,h){h=h===void 0?0:h;g.xW.call(this,U.F7());var m=this;this.S_=K;this.videoData=W;this.duration=h;this.j=this.startTimeSecs=0;this.X=this.N=!0;this.W=new fYL(function(S,f){return void m.rk(S,f)})}; lq=function(K,W,U,h,m,S,f,G){var I={layoutId:W,layoutType:S,wk:"core"};return{layoutId:W,layoutType:S,uZ:new Map,layoutExitNormalTriggers:[new op(K.j,U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new vM(h)].concat(g.z4(f))),t7:m(I),adLayoutLoggingData:G}}; nB2=function(K){if(K.linearAds==null)return!1;K=g.P(K.adStart,LQ);return K?fQ(K)?!0:(UF("Invalid LASR with notify"),!1):!1}; qm=function(K,W){if(W>268435455){KU(K,4);for(var U=W&1073741823,h=0;h<4;h++)K.view.setUint8(K.pos,U&127|128),U>>=7,K.pos+=1;W=Math.floor(W/268435456)}for(KU(K,4);W>127;)K.view.setUint8(K.pos,W&127|128),W>>=7,K.pos+=1;K.view.setUint8(K.pos,W);K.pos+=1}; FtL=function(K,W){vT(K,1,W.YTV);bY(K,2,W.ZC5,gB$,3);bY(K,3,W.coldStartInfo,FK2,3)}; uwD=function(K){var W=!!Al(nm().Lr,"umt");return K.jV||!W&&!K.tK?0:1}; CA=function(K){this.dk=K}; g.aT=function(K,W,U){K.W.set(W,U)}; fN=function(K){return!!K.videoData.startSeconds&&isFinite(K.videoData.startSeconds)&&K.videoData.startSeconds>1E9}; Wb=function(K,W,U){K.X!==W&&(K.rk("sdai",{setsst:W,old:K.X,r:U}),K.X=W)}; Ul=function(){Kk.apply(this,arguments)}; ip$=function(K){if(K==null)return K;var W=typeof K;if(W==="bigint")return String(kp_(64,K));if(Rd(K)){if(W==="string")return Rd(K),W=ys(Number(K)),MC(W)&&W>=0?K=String(W):(W=K.indexOf("."),W!==-1&&(K=K.substring(0,W)),K[0]==="-"?W=!1:(W=K.length,W=W<20?!0:W===20&&K<="18446744073709551615"),W||(E$(K),K=Wj(FJ,u0))),K;if(W==="number")return Rd(K),K=ys(K),K>=0&&MC(K)||(Pj(K),K=hg(FJ,u0)),K}}; zdp=function(K){var W=jP(K.j).DX,U=W.W().Sk("SLOT_TYPE_PLAYER_BYTES",1);W=Xp(W.ZA.get(),1).clientPlaybackNonce;var h=!1;U=g.z(U);for(var m=U.next();!m.done;m=U.next()){m=m.value;var S=m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.slotEntryTrigger instanceof mY?m.slotEntryTrigger.Hr:void 0;S&&S===W&&(h&&UF("More than 1 preroll playerBytes slot detected",m),h=!0)}h||SP(jP(K.j).bR)}; jP2=function(K,W,U,h,m){var S=kw(K,W);if(!S){W.playerVars.prefer_gapless=!0;var f=new g.GM(K.C,W.playerVars);f.Ze=W.Ze;K.api.a8(f,W.playerType)}f=K.app.E5();S||f.addCueRange(W.kX.Vv);f.seekTo(U,Object.assign({},{JS:"application_timelinemanager"},h));lbp(K,m)}; NZF=function(K){return K.info.Wp.info.yh()&&pM(K.X,0)===160}; Ar=function(K){g.qs.setTimeout(function(){throw K;},0)}; tO=function(K,W){g.N_("adsClientStateChange",W)}; g.fU=function(K,W,U){g.kQ(kL)(void 0,K,W,U,void 0)}; nz=function(K,W){var U=Are(K,tg(K));!isNaN(K.W)&&W&&(U.jV=K.W);return U}; IX=function(K,W){W=W===void 0?!1:W;var U=NU[K],h=HzF[U],m=Rde[K];if(!m||!h)return null;W=new t0(W?m.height:m.width,W?m.width:m.height,m.fps);h=GI(h,W,U);return new GT(K,h,{video:W,j0:m.bitrate/8})}; Jis=function(){if(!yrL)return null;var K=yrL();return"open"in K?K:null}; Pnz=function(K,W){K=g.z(g.dj(K,!0));for(var U=K.next();!U.done;U=K.next())if(U=U.value,M7R(U)){var h={potc:"1",pot:W};U.url&&(U.url=kF(U.url,h))}}; oB$=function(K,W,U){var h=W.V();K.thirdParty||(K.thirdParty={});h.L("embeds_enable_embed_url_in_ads_request")&&(K.thirdParty=Object.assign({},K.thirdParty,{embedUrl:h.loaderUrl}));h.ancestorOrigins&&(K.thirdParty.embeddedPlayerContext=Object.assign({},K.thirdParty.embeddedPlayerContext,{ancestorOrigins:h.ancestorOrigins}));h.g4!=null&&(K.thirdParty.embeddedPlayerContext=Object.assign({},K.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(h.g4)}));h.il&&(K.thirdParty.embeddedPlayerContext= Object.assign({},K.thirdParty.embeddedPlayerContext,{visibilityFractionSource:h.il}));K.thirdParty.embeddedPlayerContext=Object.assign({},K.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Jg(),autoplayIntended:eP(W),autoplayStatus:pLC(W,U)})}; ZpR=function(K){K=K.W;if(!K)return"";var W=DJ("uap",K.platform)+DJ("uapv",K.platformVersion)+DJ("uafv",K.uaFullVersion)+DJ("uaa",K.architecture)+DJ("uam",K.model)+DJ("uab",K.bitness);K.fullVersionList&&(W+="&uafvl="+encodeURIComponent(K.fullVersionList.map(function(U){return encodeURIComponent(U.brand)+";"+encodeURIComponent(U.version)}).join("|"))); K.wow64!=null&&(W+="&uaw="+Number(K.wow64));return W.slice(1)}; g.bpD=function(K,W,U,h){var m=K.aW;W===2&&(m=new El(K.C));return new g.Bb(K.C,W,m,K.template,function(S,f,G){K.Yx.publish(S,f,G)},function(){return K.Yx.getVisibilityState()},K.visibility,K,K.dH,U,h)}; rj=function(K,W){if(W.info.N){K.Pp=W.info;if(K.U){var U=K.U,h=sb$(K,!1);U=V7p(U);K.loader.F1(K.Wp,h,U);K.Ms||K.policy.Dp||cDY(K);K.Ms=null}D2(K)}K.G&&qF_(K.G,W);if(h=K.Hg())if(h=g.Hb(h,W,K.policy.wl,K.policy.qb)){K.X.pop();K.X.push(h);return}K.X.push(W)}; TI=function(K){var W;return(W=K.D.getVideoData(1)==null?void 0:!1)!=null?W:!1}; wj=function(K,W){var U,h,m,S,f,G,I,d;return g.r(function(J){if(J.j==1){U=aX(K,"redirector.googlevideo.com");U.set("alr","yes");U.set("id",""+Math.round(Math.random()*1E5));if(W===1||W===2)U.set("cmo=sensitive_content","yes"),U.set("sc","yes");W===2&&U.set("cmo=td","c.youtube.com");h={format:"RAW",timeout:5E3};return g.T(J,Mn(U.ej(),h),2)}m=J.X;if(m.xhr.status!==200||!m.xhr.responseText)return J.return(Promise.reject(new g.EB("b204258371_no_host",U.ej(),m.xhr.status)));S=new g.va(m.xhr.responseText); f=eA(41,S);G=S.get("ms");I=aX(K,f);d=S.get("mm");I.set("ms",G);I.set("mm",d);return f&&XLp(f)?W!==2||Uq(f)?J.return(I):J.return(Promise.reject(new g.EB("b204258371_untrusted",f,G))):J.return(Promise.reject(new g.EB("b204258371_invalid",f,G)))})}; nA=function(K,W,U){g.p.call(this);this.D=K;this.VB=W;this.Xx=U;this.listeners=[];this.CR=null;this.NW=new Map;W=new g.Te(this);g.k(this,W);W.S(K,"videodatachange",this.OCU);W.S(K,"serverstitchedvideochange",this.o55);this.hM=Xp(this)}; zrL=function(K){g.hc("gel_compression_csi_killswitch")||!g.hc("log_gel_compression_latency")&&!g.hc("log_gel_compression_latency_lr")||Ql("gel_compression",K,{sampleRate:.1})}; vBC=function(){if($q)return $q();var K={};$q=g.Yq("LogsDatabaseV2",{gP:(K.LogsRequestsStore={N3:2},K),shared:!1,upgrade:function(W,U,h){U(2)&&g.jk(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});U(3);U(5)&&(h=h.objectStore("LogsRequestsStore"),h.j.indexNames.contains("newRequest")&&h.j.deleteIndex("newRequest"),g.Ol(h,"newRequestV2",["status","interface","timestamp"]));U(7)&&cb(W,"sapisid");U(9)&&cb(W,"SWHealthLog")}, version:9});return $q()}; qSY=function(K,W){var U=K.Pd();if(U){var h=U.VH().layoutId,m=K.JD()+1;K.jX()?nU(K,U,W):U.iG(U.VH(),W);m>=0&&mW);h=K.next())U++;return U===0?U:U-1}; xq=function(K){var W=this;this.C=K;this.X=[];this.N=new Map;this.W=new Map;this.j=new Map;this.xd={kW:function(){return W.N}, iOA:function(){return W.W}, zD:function(){return W.X}}; this.U=this.C.L("html5_huli_ssdai_deprecate_playback_timeline_id")}; mdY=function(K,W){jss(K.program,W.uKK)&&(S8("bg_i",void 0,"player_att"),g.T2.initialize(K,function(){S8("bg_l",void 0,"player_att");sC=(0,g.AI)()},W.cspNonce,W.M$))}; SMp=function(K){var W=CU(K.audioTrack,!0)*1E3;K=CU(K.videoTrack,!0)*1E3;return{sH:W,fT:K}}; GXp=function(K,W){VC(K,{createkeysession:1});K.status="gr";XL("drm_gk_s",void 0,K.videoData.jV);K.url=f7s(K);try{K.N=W.createSession(K.J,function(U){VC(K,{m:U})})}catch(U){W="t.g"; U instanceof DOMException&&(W+=";c."+U.code);K.publish("licenseerror","drm.unavailable",1,W,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}K.N&&(tip(K.N,function(U,h){az2(K,U,h)},function(U,h,m){if(!K.qs()){h=void 0; var S=1;g.N6(K.X)&&g.r8(K.C)&&K.C.L("html5_enable_safari_fairplay")&&m===1212433232&&(h="ERROR_HDCP",S=K.C.L("html5_safari_fairplay_ignore_hdcp")?0:S);K.error("drm.keyerror",S,U,h)}},function(){K.qs()||(VC(K,{onkyadd:1}),K.Ms||(K.publish("sessionready"),K.Ms=!0))},function(U){K.TZ(U)}),g.k(K,K.N))}; l2=function(K){this.value=K}; I7C=function(K){var W,U=(W=K.api.getVideoData())==null?void 0:W.Sj();return K.api.getPresentingPlayerType(U)!==2}; ddp=function(K){var W=g.$K("html5-video-player");W&&g.JM(W,"ytp-ad-display-override",K)}; t7p=function(K,W,U,h,m,S){var f=Zs(K.X.get(),"SLOT_TYPE_PLAYER_BYTES"),G=Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER"),I=bh(K.X.get(),"LAYOUT_TYPE_SURVEY",G);h=LU(K,W,U,h);var d=[new M$(K.j,f)];U=[new PM(K.j,f),new pi(K.j,U),new Vq(K.j,I)];if(h instanceof v)return h;G=S({slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:h,slotFulfillmentTriggers:d,slotExpirationTriggers:U},{slotId:G,layoutId:I});S=G.R4s;G=G.cKU;return[{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:zs(K,W,f,h),slotFulfillmentTriggers:Sr(K,W,f,d),slotExpirationTriggers:U,wk:"core",clientMetadata:new Zi([new xx(S),new Nx(jr(W)),new Ak({pu:K.pu(W)})]),adSlotLoggingData:m},G]}; J3F=function(K,W,U){if(U.videoId)var h="VIDEO";else if(U.playlistId)h="PLAYLIST";else return;K.credentialTransferTokenTargetId=U;K.context=K.context||{};K.context.user=K.context.user||{};K.context.user.credentialTransferTokens=[{token:W,scope:h}]}; evR=function(K){return K.linearAds!=null&&Kf(K.adLayoutMetadata)}; ELL=function(K){var W=K.index+1;return W>=K.length?0:W}; Wg=function(K){var W=[];K=g.z(K.values());for(var U=K.next();!U.done;U=K.next())U=U.value,U.l5&&W.push(U);return W}; BHL=function(K,W,U,h){var m,S,f;return g.r(function(G){switch(G.j){case 1:return m={config:K,hashData:W,timestamp:h!==void 0?h:(0,g.AI)()},g.T(G,AR(U),2);case 2:return S=G.X,g.T(G,S.clear("hotConfigStore"),3);case 3:return g.T(G,g.X0(S,"hotConfigStore",m),4);case 4:return f=G.X,G.return(f)}})}; Ddp=function(K,W){return K?W?TkY():aN():W?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:emp()}; vQ2=function(K){return K.isTimeout?"NO_BID":"ERR_BID"}; zN=function(K,W){K.X||K.j!=2&&K.j!=3||HS2(K);K.W?K.W.next=W:K.X=W;K.W=W}; Uk=function(K){if(K.D.V().N)return!1;if(K=K.D.getVideoData(1).getPlayerResponse()){var W=K.adPlacements;if(W)for(var U=0;U=0?1:K.indexOf("/webm")>=0?2:K.indexOf("/x-flv")>=0?3:K.indexOf("/vtt")>=0?4:0}; m8=function(K,W){try{navigator.mediaSession.setActionHandler(K,W)}catch(U){}}; a7R=function(K,W,U,h,m){W=g.P(W.renderingContent,iY);if(!W)return new v("Invalid rendering content for DAI media layout");K=[new i2(h),new YA(U.dE.videoLengthSeconds),new zI(U.dE.playerVars),new SQ(U.lq),new ff(U.Jb),new yl(U.w4),new vM(Wx(K)),new kq(U.dE.adVideoId),new u2(U.L7),W.sodarExtensionData&&new oX(W.sodarExtensionData),new NV({current:null}),new Pq({}),new vJ(Su(W.pings))].filter(THz);m!==void 0&&K.push(new l2(m));return K}; tv=function(K){var W={};W.dt=wc2;W.flash="0";a:{try{var U=K.j.top.location.href}catch(d){K=2;break a}K=U?U===K.X.location.href?0:1:2}W=(W.frm=K,W);try{W.u_tz=-(new Date).getTimezoneOffset();try{var h=Fl.history.length}catch(d){h=0}W.u_his=h;var m;W.u_h=(m=Fl.screen)==null?void 0:m.height;var S;W.u_w=(S=Fl.screen)==null?void 0:S.width;var f;W.u_ah=(f=Fl.screen)==null?void 0:f.availHeight;var G;W.u_aw=(G=Fl.screen)==null?void 0:G.availWidth;var I;W.u_cd=(I=Fl.screen)==null?void 0:I.colorDepth}catch(d){}return W}; nLF=function(K,W,U){if(K.policy.JK&&G6(W))return!1;if(U.mB())return!0;if(!U.xG())return!1;var h=OB(W);if(!h||h.info.type===6)return!1;var m;if(K.policy.dc||((m=K.N)==null?0:Bt_(m,W,h.info.kx)))K.vp=0;else return K.tO.isSeeking()&&gn(K),K.vp=K.vp||(0,g.AI)(),!1;if(!Wk(K,W,U,h.info))return!1;if(K.Gm.X&&h.info.j===0){if(U.zp()==null){m=Kp(W);var S;if(!(S=!m||m.Wp!==h.info.Wp)){b:if(m=m.J,S=h.info.J,m.length!==S.length)m=!1;else{for(var f=0;fS)return K.policy.j&&(W===K.videoTrack?K.Bp=K.Bp||(0,g.AI)():K.tK=K.tK||(0,g.AI)()),K.policy.HT&&$dC(W.N,S,!1),!1;W===K.videoTrack?K.Bp=0:K.tK=0;var G;K.policy.Ev&&U===((G=K.AK)==null?void 0:G.j)&&K.M5&&(U.DD()===0?(K.M5=!1,K.policy.Ev=!1):K.Qg=U.DD());a:{G=K.policy.XI?(0,g.AI)():0;f=h.U&&h.info.Wp.j||void 0;S=h.X;h.U&&(S=YMs(K,h,S)||S);var I=s1(S);S=K.policy.XI?(0,g.AI)():0;U=Odz(K,U,I,h.info,f);(f=W.J)!=null&&(I=h.info,G=S-G,S=(0,g.AI)()-S,!f.X||c3L(f.X, I)&&f.X.kx===I.kx||f.flush(),f.W+=G,f.N+=S,G=1,!f.X&&I.j&&(G=2),Lw(f,G,U),S=Math.ceil(I.j/1024),G===2&&f.j.add(S),f.j.add(Math.ceil((I.j+I.X)/1024)-S),f.X=I);K.eV=0;if(U===0)K.Le&&(K.Le=!1,K.Cg=!1),K.W3=0,U=!0;else{if(U===2||U===5)eQ(K,"checked",U,h.info);else{if(U===1){if(!K.Le){K.Le=!0;U=!1;break a}if(!K.Cg){K.Cg=!0;K.iX.seekTo(K.getCurrentTime(),{JS:"quotaExceeded",zo:!0});U=!1;break a}h.info.ZE()?(G=K.policy,G.vp=Math.floor(G.vp*.8),G.hK=Math.floor(G.hK*.8)):(G=K.policy,G.gk=Math.floor(G.gk*.8), G.hK=Math.floor(G.hK*.8));K.policy.j?tx(K.W.j,h.info.Wp,!1):Ek(K.j,h.info.Wp)}K.iX.ll({reattachOnAppend:U})}U=!1}}if(!U)return!1;K.policy.JK&&h.info.xM()?(K.iX.V().G9()&&K.rk("eosl",{ls:h.info.m6()}),h.isLocked=!0):(W.qr(h),Dis(K.j,h.info));m&&(W=h.info.Wp.pY)&&K.iX.Gi(new Bg(W.key,W.type));return!0}; ap=function(K){jf.call(this,K);var W=this;this.G=this.j=this.X=0;this.J=null;this.Y=this.W=0;this.isEnded=!1;this.jV=null;var U=new g.Te(K);g.k(this,U);this.Ns=g.jV(this.api.V().experiments,"web_player_default_peeking_px");this.eV=this.api.L("delhi_modern_player_enable_pause_peeking");this.Le=g.jV(this.api.V().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.tK=this.api.L("web_player_imax_theater_mode");this.N=this.api.L("web_player_enable_fullscreen_grid_components");this.hK=this.api.L("web_player_enable_more_videos_button"); this.DA=this.api.L("web_player_use_external_grid_component");g.$C(this.api.getRootNode(),"ytp-grid-scrollable");U.S(K,"fullscreentoggled",function(){DT(W)}); U.S(K,"videodatachange",function(){if(W.N){var h=W.api.getVideoData(1);W.videoData!==h&&W.X===2&&(g.WR(W.api.getRootNode(),"ytp-grid-scrolling"),T9(W,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));W.videoData=h}},this); U.S(K,"sizestylechange",function(){W.N&&DT(W)}); fZ(this.api,"setFullscreenQuickActions",function(h){W.setFullscreenQuickActions(h)}); fZ(this.api,"setPlayerOverlayVideoDetailsRenderer",function(h){W.setPlayerOverlayVideoDetailsRenderer(h)}); this.DA&&fZ(this.api,"setFullscreenGrid",function(h){W.setFullscreenGrid(h)}); this.N&&gLs(this,U,K)}; Tz$=function(K){var W=new Bf(function(U,h,m,S){return new Hg(K.j.YL,U,h,m,S,K.j.Xx)},new Set(Fwp(K.j.YL).concat(K.j.listeners)),K.j.Yd,K.j.Xx); g.k(K,W);return W}; Sk=function(K,W,U,h){this.triggeringLayoutId=W;this.j=U;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=h||K(this.triggerType)}; g.T6=function(K){var W,U,h,m;return(g.re(K)?(W=K.Ns)==null?void 0:(U=W.cards)==null?void 0:U.cardCollectionRenderer:(h=K.playerResponse)==null?void 0:(m=h.cards)==null?void 0:m.cardCollectionRenderer)||null}; u_R=function(K){if(!K)return null;K=aQ(K,4);return K===null||K===void 0?null:vE(K)}; kXs=function(K,W,U){for(var h=[],m=0;m0&&(this.x9=g.DO(this.policy.ix));this.policy.XX&&(this.J=new Bc(this.loader,this.policy,this.schedule),g.k(this,this.J))}; hCs=function(K){var W=K.N[K.W];if(W){var U=K.Y[W];W=U.playerVars;U=U.playerType;K.j=!0;K.W++;var h=K.api.getVideoData(1);W=Object.assign({oauth_token:h.oauthToken},W);K.api.loadVideoByPlayerVars(W,!0,U,!0);K.j=!1}}; ke=function(){this.W=this.j=this.X=0;this.N=!1}; qMD=function(K,W){var U={slotId:Zs(W,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],wk:"surface",clientMetadata:new Zi([])},h=Object,m=h.assign;W=bh(W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",U.slotId);W={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",uZ:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], wk:"surface",clientMetadata:new Zi([]),t7:vLp(!1,U.slotId,U.slotType,U.slotPhysicalPosition,U.wk,U.slotEntryTrigger,U.slotFulfillmentTriggers,U.slotExpirationTriggers,W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return m.call(h,{},K,{M0A:!0,slot:U,layout:W})}; iW=function(){eo.apply(this,arguments)}; $3=function(K,W){W.method="POST";W.postParams||(W.postParams={});return g.ka(K,W)}; z6=function(K){return{enterMs:Sp(K.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Sp(K.clientMetadata,"metadata_type_layout_exit_ms")}}; jCL=function(K){K.Y=Error("Cancelled by dispose");K.U.resolve();xdL(K.G.promise);K.G.reject(Error("Cancelled by dispose"));K.logger.dispose();Promise.all(K.W).then(function(){var U;return g.r(function(h){(U=K.X)==null||U.dispose();K.X=void 0;g.q1(h)})}); K.W=[];var W;(W=K.j)!=null&&(W.endTimeMs=0,W.uF(1));xdL(K.N.promise);K.N.reject(Error("Cancelled by dispose"))}; G0C=function(K){Ta[K]=K in Ta?Ta[K]+1:0;return Ta[K]}; CgR=function(K,W){Xa(K,1,W.audioCodec);Xa(K,2,W.numChannels);Xa(K,3,W.maxBitrateBps);Xa(K,6,W.spatialCapabilityBitmask)}; UcF=function(K,W,U,h){h=h===void 0?{}:h;var m=void 0;h.layer||(h.layer=0);m=h.parentLayer!==void 0?h.parentLayer:h.layer;var S=g.z0(m);m=g.ND(m);var f=U||m,G;f&&(h.parentCsn!==void 0?G={clientScreenNonce:h.parentCsn,visualElement:f}:S&&S!=="UNDEFINED_CSN"&&(G={clientScreenNonce:S,visualElement:f}));var I,d=g.TA("EVENT_ID");S==="UNDEFINED_CSN"&&d&&(I={servletData:{serializedServletEventId:d}});g.hc("combine_ve_grafts")&&S&&Av(K,S);g.hc("no_client_ve_attach_unless_shown")&&f&&S&&RQ(f,S);try{var J=xPC(K.client, W,G,h.KL,h.cttAuthInfo,I,h.implicitGestureType,h.loggingExpectations)}catch(B){l7$(B,{HJ:W,rootVe:m,jbx:U,n_H:S,i4V:G,KL:h.KL});g.wG(B);return}Ifp(J,W,h.layer,h.cttAuthInfo);S&&S!=="UNDEFINED_CSN"&&m&&!Lws(S)&&KBD(K.client,S,m,!0);K.j[K.j.length-1]&&!K.j[K.j.length-1].csn&&(K.j[K.j.length-1].csn=J||"");g.y2({clientScreenNonce:J});rS.instance||(rS.instance=new rS);g.kQ(yd().j).bind(yd())();var e=g.ND(h.layer);S&&S!=="UNDEFINED_CSN"&&e&&(g.hc("web_mark_root_visible")||g.hc("music_web_mark_root_visible"))&& g.MD(J,e);K.X.delete(h.layer||0);K.W=void 0;var E;(E=K.Ns.get(h.layer))==null||E.forEach(function(B,D){B?Pg(K,D,B,h.layer):e&&Pg(K,D,e,h.layer)}); WBC(K)}; hLs=function(K,W){for(var U=0;U+1h}; jlR=function(K){K=K.charCodeAt(0);return"%"+(K>>4&15).toString(16)+(K&15).toString(16)}; mc$=function(K){if(K.j.length===0){var W=new yh;K.j.push(W);g.k(K,W);W.U5(K.gk,0)}for(;K.j.length>1;)K.j.pop().dispose();pf(K.j[0],"100%");K.j[0].startTime=0;K.j[0].title=""}; SXY=function(K,W,U){this.layoutId=W;this.offsetMs=U;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=K(this.triggerType)}; g.SI=function(K,W,U){var h=U&&U>0?U:0;U=h?Date.now()+h*1E3:0;if((h=h?g.Dk.wK():g.Dk.Jt())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{h.set(K,W,U)}catch(m){h.remove(K)}}}; oQ=function(K,W,U,h,m,S,f){UH.call(this,U,K,W,h);this.W=m;this.dk=S;this.Xx=f}; ZT=function(K,W,U,h,m,S){UH.call(this,U,K,W,h);this.dk=m;this.Xx=S}; bW=function(K,W){g.p.call(this);var U=this;this.N=[];this.Y=!1;this.X=0;this.U=this.G=this.W=!1;this.Ms=null;var h=(0,g.wr)(K,W);this.j=new g.QC(function(){return h(U.Ms)},300); g.k(this,this.j);this.jV=this.J=Infinity}; sk=function(K){return K.getVideoData().enableServerStitchedDai&&!!K.x$}; V2=function(K){K.N||(K.N=ass())}; AOD=function(K,W,U,h,m){this.callback=K;this.slot=W;this.X=U;this.uB=h;this.Xx=m;this.j=null}; YQ=function(K,W){g.BX(K.U,W)||(K.U.push(W),W.gW(K.j),W.IA(K.W),W.eI()&&(K.jV=!0))}; zOY=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.j=new fDY(this.api);g.k(this,this.j);this.events.S(K,"videodatachange",function(){var U,h=(U=W.api.getVideoData())==null?void 0:U.fI;U=W.j;if(h){var m,S,f=((m=h.title)==null?void 0:m.content)||"";m=((S=h.subtitle)==null?void 0:S.content)||"";U.update({title:f,subtitle:m});f=h.thumbnail;S="none";if(f==null?0:f.sources){m=0;f=g.z(f.sources);for(var G=f.next();!G.done;G=f.next())G=G.value,G.width&&G.url&&G.width> m&&(m=G.width,S="url("+G.url+")")}U.background.style.backgroundImage=S;tyC(U,h.actionButtons||[]);U.show()}else U.hide()}); g.HW(this.api,this.j.element,4)}; GV_=function(K){switch(K){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}}; IDL=function(K){var W;return(W=K.layout.sX)!=null?W:Sp(K.layout.clientMetadata,"metadata_type_sub_layouts")}; dcR=function(){var K=["metadata_type_invideo_overlay_ad_renderer"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Xh=function(K,W,U,h,m){yU.call(this,"top-banner-image-text-icon-buttoned",K,W,U,h,m)}; qD=function(K,W,U,h,m,S,f,G){S=S===void 0?U.schedule:S;var I=K.GG,d=K.Nl;K=K.FeX;var J=I!==void 0&&d!==void 0,e=h.getVideoData(),E,B=W.j.encryptedClientKey;W=J?W.iv:void 0;J=S;J=J===void 0?U.schedule:J;J=v2(J,!0);m=m||!!M_()&&J>1572864;return{innertubeRequest:{Kek:K,MP:I,Nl:d,encryptedClientKey:B,iv:W,A3H:!0,lE:!0,pm:"DecompressionStream"in window||!m,ifk:U.experiments.Rk("html5_use_jsonformatter_to_parse_player_response")},Z5:JPD({dH:S,Tm:U,iX:h,hP:e.startSeconds*1E3}),onesieUstreamerConfig:f,aN:G, cJ:vg(e),reloadPlaybackParams:(E=e.Q6)==null?void 0:E.reloadPlaybackParams}}; eLL=function(K,W){if(W=W&&W.buttonRenderer||null)W.serviceEndpoint?(K.X=new fG(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.k(K,K.X),K.X.init(Mq("ad-feedback-undo-mute-button"),W,K.macros),K.X.listen("click",K.TS5,K),K.X.U5(K.hK)):g.eI(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; a9=function(K){return function(){return new K}}; E9e=function(K){for(var W=0;W=K&&(e=U(h,m,S));return e}; g.Rb=function(K){if(K.simpleText)return K.simpleText;if(K.runs){var W=[];K=g.z(K.runs);for(var U=K.next();!U.done;U=K.next())U=U.value,U.text&&W.push(U.text);return W.join("")}return""}; Lf=function(K){var W=null;try{W=K.toLocaleString("en",{style:"percent"})}catch(U){W=K.toLocaleString(void 0,{style:"percent"})}return W}; HWR=function(K,W){var U=W.indexOf("?");if(U>0){var h=gt(4,W.substring(U+1));g.hI(h,function(m,S){this.set(S,m)},K); W=W.substring(0,U)}W=HF(6,W);g.hI(W,function(m,S){this.set(S,m)},K)}; zes=function(K,W){K.VA=W;var U,h;(U=K.Ez)!=null&&(h=U.j)!=null&&(h.j=new Kj(W,h.X,h.N),g.k(h,h.j))}; WD=function(){return g.PP("(ps3; leanback shell)")||g.PP("ps3")&&g.Km()}; TWC=function(K){K.updateValue("channelLink","");K.updateValue("channelName","");g.EZ(K.api.V())||K.api.L("enable_channel_title_always_focusable")?K.updateValue("channelTitleFocusable","0"):K.updateValue("channelTitleFocusable","-1")}; iQ=function(K,W,U,h){eg.call(this,K);this.W=W;this.G=U;this.j="m";this.X="x";this.U=0;UP(this,h)}; aDp=function(K){return g.X9(K.info.Ce,function(W){return W.type===3})}; w3_=function(K){var W=new hQ;W=Ya(W,1,K.X);var U=h_s(K);W=BvR(W,U,QFY);U=[];for(var h=[],m=g.z(K.j.keys()),S=m.next();!S.done;S=m.next())h.push(S.value.split(","));for(m=0;mthis.policy.dU?!1:!0:!1)W=null,this.policy.JWs&& this.policy.vS?W=[1]:a&&(W=[]),W!=null&&(this.policy.eP&&W.push(2),this.GL.set("defsel",W.join(",")));this.zK=new $p(this,this.policy,this.GL,this.info.T9,this.timing,this.logger,h,e);this.VE=G||null;this.M7=Sbz(this);m0D(this.zK);h=void 0;if(this.policy.ycx||this.I5||this.policy.tK)h={method:"POST"},G=(0,g.gW)([120,0]),e={},this.policy.cq&&f&&(f=vg(void 0,f),e.cJ=f),this.policy.Cd&&this.Zc&&(e.videoPlaybackUstreamerConfig=this.Zc),this.policy.tK&&(f=this.info.W)&&Object.assign(e,f),Object.keys(e).length> 0?h.body=g.AZ(e,g.eb):h.body=G;if(this.Se&&this.Zc){this.GL.set("iwts","1");h={method:"POST"};f={tf:this.Se*1E3};var u;G=(u=this.info.W)==null?void 0:u.Qn;u=g.AZ({Z5:f,Qn:G||void 0,videoPlaybackUstreamerConfig:this.Zc},g.eb);h.body=u}try{this.xhr=Yp(this.GL,this.policy.J,this.timing,K,h),this.zK.X.start(),S&&(this.kh=new g.QC(this.K8,S,this),this.kh.start(S+(this.timing.dH.J.xv()||0)*1E3)),this.policy.O3&&Oh(this.timing,this.ej()),g.kK(function(){})}catch(O){g9F(this,O,!0)}}; uXe=function(K,W,U){var h={};FBp(K,h,W,U);uJ$(h);h.LACT=h0(function(){return A3().toString()}); h.VIS=h0(function(){return K.getVisibilityState().toString()}); h.SDKV="h.3.0";h.VOL=h0(function(){return K.isMuted()?"0":Math.round(K.getVolume()).toString()}); h.VED="";return h}; Da=function(K){var W=BD(K),U=BD(K);K=(U>>31)*2+1;var h=U>>>20&2047;W=4294967296*(U&1048575)+W;return h==2047?W?NaN:K*Infinity:h==0?K*4.9E-324*W:K*Math.pow(2,h-1075)*(W+4503599627370496)}; ru=function(K){if(HD&&K.j0)return!1;var W=g.YJ.auto;return K.X===W&&K.j===W}; i3s=function(K,W,U,h,m,S,f){m=m===void 0?U.schedule:m;var G=g.AZ(K,TY),I;if(!K.TM)if(I=kVL(W,G)){var d=I.LL;I=I.signature}else I=d=W.encrypt(G),(0,g.AI)(),I=kRp(new u9p(W.j.N),I,W.iv);return qD(d&&I?{GG:d,Nl:I}:{FeX:G},W,U,h,!!K.TM,m,S,f)}; zLs=function(K){this.params=K;this.j=new Set}; APC=function(K){if(NWL.test(K))return K}; Ml=function(K,W){K.X=W;g.Vk("yt.gcf.config.hotConfigGroup",K.X||null)}; RLR=function(K){if(Sp(K.slot.clientMetadata,"metadata_type_prefetch_metadata")){var W=EfY(K,K.slot);qX(K.j.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[W]})}}; m8R=function(){return!!g.SZ("yt-player-headers-readable")}; ar=function(K,W,U,h,m){return W>=400?(K.lastError="net.badstatus",!0):(m===void 0?0:m)?(K.lastError="ump.spsrejectfailure",!0):U||h!==void 0&&h?!1:(K.lastError=W===204?"net.nocontent":"net.connect",!0)}; pX$=function(K,W){if(K.AK)return K.AK.N;a:{W=W===void 0?!1:W;W=W===void 0?!1:W;try{g.Km()&&K.videoData.kU()&&yPC(K.mediaElement);var U=K.mediaElement.TJ(K.E0(),K.X7())}catch(m){if(wu(K.a5,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",m);K.jB("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}K.Sl(U,!1,!1,W)}var h;return((h=K.TJ())==null?void 0:h.N)||null}; Mys=function(K,W){W=Math.min(W,K.info.X);var U=K.X.split(W),h=U.Kv;U=new QN(new TG(K.info.type,K.info.Wp,K.info.range,K.info.G,K.info.kx,K.info.startTime,K.info.duration,K.info.j,W,!1,K.info.Uj,K.info.clipId),U.Gw);U.W=K.W;U.N=K.N;W=new QN(new TG(K.info.type,K.info.Wp,K.info.range,K.info.G,K.info.kx,K.info.startTime,K.info.duration,K.info.j+W,K.info.X-W,K.info.N,K.info.Uj,K.info.clipId),h);W.W=K.W;W.N=K.N;return[U,W]}; Pk2=function(K,W,U,h,m,S,f,G,I,d,J,e,E){K=Ok(K,W,U,m,S,f,G,I,e,Ot(K,U,h.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),E);W=K.T3;U=new yr(K.i7);h=K.layoutExitSkipTriggers;d>0&&(W.push(U),W.push(new $s(d)),h=[]);W.push(new cg(J));return{z5:{layoutId:K.layoutId,layoutType:K.layoutType,uZ:K.uZ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:K.wk,clientMetadata:new Zi(W),t7:K.t7, adLayoutLoggingData:K.adLayoutLoggingData},QC:h,GS:K.layoutExitMuteTriggers,hg:K.layoutExitUserInputSubmittedTriggers,aq:K.layoutExitUserCancelledTriggers,Jv:K.Jv}}; p3D=function(K){this.experiments=K;this.j=17;this.N=13E4;this.G=.5;this.W=this.X=!1;this.uX=this.L("html5_use_histogram_for_bandwidth");this.U=g.jV(this.experiments,"html5_auxiliary_estimate_weight");this.Ms=g.jV(this.experiments,"html5_stall_factor")||1;this.Y=g.jV(this.experiments,"html5_check_for_idle_network_interval_ms");this.J=this.experiments.Rk("html5_trigger_loader_when_idle_network");this.jV=this.experiments.Rk("html5_sabr_fetch_on_idle_network_preloaded_players")}; Ys=function(K,W){var U=W.MC,h=W.yl.ZS,m=W.yl.qt,S=W.yl.xB,f,G=-1;K.G_=0;K.pU=573;for(f=0;f>1;f>=1;f--)o1(K,U,f);I=S;do f=K.AO[1],K.AO[1]=K.AO[K.G_--],o1(K,U,1),h=K.AO[1],K.AO[--K.pU]=f,K.AO[--K.pU]=h,U[I*2]=U[f*2]+U[h*2],K.depth[I]=(K.depth[f]>=K.depth[h]?K.depth[f]:K.depth[h])+1,U[f*2+1]=U[h*2+1]=I,K.AO[1]=I++,o1(K,U,1);while(K.G_>= 2);K.AO[--K.pU]=K.AO[1];f=W.MC;I=W.wI;h=W.yl.ZS;m=W.yl.qt;S=W.yl.D9;var d=W.yl.Uu,J=W.yl.KKe,e,E=0;for(e=0;e<=15;e++)K.NU[e]=0;f[K.AO[K.pU]*2+1]=0;for(W=K.pU+1;W<573;W++){var B=K.AO[W];e=f[f[B*2+1]*2+1]+1;e>J&&(e=J,E++);f[B*2+1]=e;if(!(B>I)){K.NU[e]++;var D=0;B>=d&&(D=S[B-d]);var a=f[B*2];K.uQ+=a*(e+D);m&&(K.Cx+=a*(h[B*2+1]+D))}}if(E!==0){do{for(e=J-1;K.NU[e]===0;)e--;K.NU[e]--;K.NU[e+1]+=2;K.NU[J]--;E-=2}while(E>0);for(e=J;e!==0;e--)for(B=K.NU[e];B!==0;)h=K.AO[--W],h>I||(f[h*2+1]!==e&&(K.uQ+=(e- f[h*2+1])*f[h*2],f[h*2+1]=e),B--)}Ot_(U,G,K.NU)}; var Dhs=function(){return XN[t[11]](this,69)}; niR=function(K,W,U,h,m){var S=W.UQ/W.rows,f=Math.min(U/(W.MS/W.columns),h/S),G=W.MS*f,I=W.UQ*f;G=Math.floor(G/W.columns)*W.columns;I=Math.floor(I/W.rows)*W.rows;var d=G/W.columns,J=I/W.rows,e=-W.column*d,E=-W.row*J;m&&S<=45&&(J-=1/f);d-=2/f;K=K.style;K.width=d+"px";K.height=J+"px";m||(h=(h-J)/2,U=(U-d)/2,K.marginTop=Math.floor(h)+"px",K.marginBottom=Math.ceil(h)+"px",K.marginLeft=Math.floor(U)+"px",K.marginRight=Math.ceil(U)+"px");K.background="url("+W.url+") "+e+"px "+E+"px/"+G+"px "+I+"px"}; GGs=function(K,W,U,h){if(OP.length){var m=OP.pop();PhC(m,h);m.j.init(K,W,U,h);return m}return new J7(K,W,U,h)}; cD=function(K,W,U,h){K.NN&&(K.playbackStartPolicy=W,K.TY=U,K.yq=h)}; nj=function(K){this.j=new aE(K)}; Z3F=function(K){this.Tm=K;this.Ny=this.fl=this.Le=this.U=this.W=this.DA=this.Bp=this.Ms=!1;this.Y=this.G=0;this.Ik=!1;this.uX=!0;this.Pp=!1;this.V6=0;this.Zx=this.hK=!1;this.AS=!0;this.vp=this.tK=!1;this.j={};this.W3=this.DO=this.oW=this.disableAv1=this.M5=this.QA=this.gk=this.Qg=this.X=this.J=!1;this.Ns=0;this.bG=this.Tm.L("html5_disable_aac_preference");this.XI=Infinity;this.eV=0;this.Ez=this.Tm.G9();this.q5=this.Tm.experiments.Rk("html5_enable_vp9_fairplay");this.ZX=this.Tm.L("html5_force_av1_for_testing"); this.Ev=this.Tm.qk().j.v3(o9C);this.JK=g.jV(this.Tm.experiments,"html5_av1_ordinal_cap");this.QX=this.Tm.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Iu=this.Tm.L("html5_account_onesie_format_selection_during_format_filter");this.j0=g.jV(this.Tm.experiments,"html5_max_byterate");this.Cg=this.Tm.L("html5_enable_iamf_audio");this.Pl=this.Tm.experiments.Rk("html5_allow_capability_merge");this.Ea=this.Tm.L("html5_enable_encrypted_av1")}; $a=function(K,W,U,h){Ci(K);var m=K.iZ;gd(m,m[MX]|0,W,U,h);return K}; slC=function(K,W,U){U=U===void 0?b3D:U;K=gr(K,W);W=typeof K;K=K==null?K:W==="bigint"?LC(ET(64,K)):Rd(K)?W==="string"?XNF(K):pMs(K):void 0;return K!=null?K:U}; gu=function(K){g.wG(K)}; tyC=function(K,W){var U=0;U=0;for(var h={};U=K.length)throw Error();}; v9C=function(K){var W=K.W.map(KG);K.X&&W.push(K.X);K.Wa(W);K.j=null;K.Y=null;W=K.D.getPlaybackRate();zY(K.D)&&X3p(K,W);!K.W.includes(W)||K.G?K.b$(K.j):K.b$(KG(W))}; UWL=function(K,W,U){K=qXp(K);W=W?g.NH(W):"";U=U||5;OV()&&g.AQ(K,W,U)}; Y8C=function(K,W){var U=K.app;I9(U.yX())&&U.gH.W[2]&&g.Rr(K.logger,360717806,"SSTM lingering playback");K.api.pA();K.api.publish("serverstitchedvideochange",W.Ze,W.bb)}; DY$=function(K,W,U,h,m){var S=xce(yN(K.slotEntryTrigger,U,h),m,K,W);if(S instanceof v)return S;for(var f=[],G=g.z(K.slotFulfillmentTriggers),I=G.next();!I.done;I=G.next()){I=yN(I.value,U,h);if(I instanceof v)return I;f.push(I)}f=Cks(f,m,K,W);W=[];K=g.z(K.slotExpirationTriggers);for(m=K.next();!m.done;m=K.next()){m=yN(m.value,U,h);if(m instanceof v)return m;W.push(m)}return{slotEntryTrigger:S,slotFulfillmentTriggers:f,slotExpirationTriggers:W}}; wF=function(K){return K.lX==="1"||K.lX==="1h"||MH&&K.lX==="1e"}; TtF=function(K,W,U,h,m,S,f){U=U===void 0?[]:U;h=h===void 0?"":h;m=m===void 0?"":m;var G=jP(K.j).hB,I=K.player.getVideoData(1);I&&I.getPlayerResponse();I&&I.mK();U=lDs(W,U,G,jP(K.j).JM);LBp(jP(K.j).H2,h,U.u7,U.ER,W,m,S,f)}; Kz=function(K,W,U,h){(new Uint8Array(K.data.buffer,K.offset,h)).set(new Uint8Array(W.buffer,U+W.byteOffset,h));K.offset+=h}; Jbs=function(K){this.iZ=qR(K)}; K6L=function(K,W){K.D.getPlayerStateObject().isCued()||W?W&&(K.DA.hide(),K.hK.hide(),K.muteButton&&K.muteButton.My(!1),K.U&&K.U.My(!1),K.W&&K.W.My(!1),K.D.u0(K.H3())):W||(K.DA.show(),K.hK.show(),K.muteButton&&K.muteButton.My(!0),K.U&&K.U.My(!0),K.W&&K.W.My(!0),K.fU())}; W6R=function(K,W){if(!K.X.length)return!1;var U=K.j;K.j=fLD(K,W===void 0?!1:W);if(W=U!==K.j)K.X=[],K.bd=0;return W}; rd=function(K,W){var U=this;this.Ce=K;this.W=this.j=null;this.U=this.U4=NaN;this.n1=this.requestId=null;this.xd={cVk:function(){return U.range}}; this.T9=K[0].Wp.T9;this.X=W||"";this.Ce[0].range&&this.Ce[0].X>0&&(UnL(K)?(this.range=PZL(K),this.N=this.range.length):(this.range=this.Ce[this.Ce.length-1].range,this.N=hXY(K)))}; ki=function(K,W,U){this.dk=K;this.D=W;this.Xx=U;this.X=new Set;this.j=new Map;PD().subscribe("adactiveviewmeasurable",this.G6,this);PD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.qY,this);PD().subscribe("adviewableimpression",this.Z0,this);PD().subscribe("adaudioaudible",this.z6,this);PD().subscribe("adaudiomeasurable",this.k8,this)}; pj=function(K){this.iZ=qR(K)}; mnL=function(K,W,U){if(W.endpoint==="log_event"){or(void 0,W);var h=Za(W,!0),m=new Map;m.set(h,[mt(W.payload)]);U&&(x$=new U);return new g.X3(function(S){x$&&x$.isReady()?j8C(m,x$,S,{bypassNetworkless:!0},!0,aZ(K)):S()})}}; Sss=function(K){K.N.read().then(K.DsH.bind(K)).catch(K.kZ.bind(K))}; fts=function(K,W){this.location=K;this.j=W}; tWY=function(K,W){W=g.BB("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:W.toString()});K.updateValue("seekTime",W)}; Xjs=function(K,W,U){E6F(W);var h=K.j;g.tD(W,function(m){var S=g.CB(m.criteria,function(f){var G=hbC(f);if(G==null)f=null;else if(f=new AWL,G.visible!=null&&(f.j=G.visible/100),G.audible!=null&&(f.X=G.audible==1),G.time!=null){var I=G.timetype=="mtos"?"mtos":"tos",d=IHF(G.time,"%")?"%":"ms";G=parseInt(G.time,10);d=="%"&&(G/=100);f.setTime(G,d,I)}return f}); Ns(S,function(f){return f==null})||GTp(U,new bc(m.id,m.event,S,h))})}; IH=function(K,W,U){this.rR=K;this.uI=W;K=Hr(Ct);this.j=!!K&&U===K||!1}; sP=function(K){dw.call(this,K);this.X=this.j=this.isContentForward=this.G=!1;this.element.setAttribute("data-overlay-order","8");NGY(this);this.S(this.D,"changeProductsInVideoVisibility",this.Xdx);this.S(this.D,"videodatachange",this.onVideoDataChange)}; J02=function(K){if(!It_(K,K.Le)||LG(K.audioTrack)&&LG(K.videoTrack))return!1;if(K.policy.X)if(K.policy.G){var W;if((W=K.Ns)==null)var U=0;else{U=!1;W=g.z(W.j.entries());for(var h=W.next();!h.done;h=W.next())if(h=g.z(h.value),h.next(),h=h.next().value,h.event!=="predictStart"&&h.l$===5){var m=void 0,S=void 0;((m=h)==null?0:m.QL)&&Date.now()-((S=h)==null?NaN:S.QL)>1E4?h.l$=1:U=!0}}if(U)return!1}else if(U=!1,K.uX.X===2?U=!0:K.uX.X===3&&(wY(K),K.loader.A7(),m=VN(K.audioTrack,K.loader.isSeeking()).Wl, W=VN(K.videoTrack,K.loader.isSeeking()).Wl,h=K.loader.getCurrentTime()||0,m=Xn(K,m,h),W=Xn(K,W,h),W=Math.min(m,W),h=K.uX,W>=h.U?(h.rk("sdai",{haltrq:W,est:h.U}),W=!0):W=!1,W&&(U=!0)),U&&K.policy.Y&&K.loader.rk("sabrcrq",{waitad:1}),U)return!1;K.policy.u5&&(K.hK=vD(K,K.audioTrack),K.eV=vD(K,K.videoTrack));if(!K.X)return K.policy.Y&&K.loader.rk("sabrcrq",{nopolicy:1}),!0;if(K.iX.S5())return K.policy.Y&&K.loader.rk("sabrcrq",{utc:1}),!0;if(K.N.Y)return K.policy.Y&&K.loader.rk("sabrcrq",{audio:1}),!0; if(!K.X.targetAudioReadaheadMs||!K.X.targetVideoReadaheadMs)return K.policy.Y&&K.loader.rk("sabrcrq",{noreadahead:1}),!0;if(K.policy.U&&K.loader.zb())return K.policy.Y&&K.loader.rk("sabrcrq",{seekToHead:1}),!0;U=Math.min(w0(K.loader,K.audioTrack)*1E3,K.X.targetAudioReadaheadMs);W=Math.min(w0(K.loader,K.videoTrack)*1E3,K.X.targetVideoReadaheadMs);var f=Math.min(U,W),G=K.iX.getCurrentTime()*1E3,I=dnp(K,G);h=I.FV;m=I.Pb;S=I.sH;I=I.fT;var d=hK.W.length;)h= void 0,(h=K.thumbnails.pop())==null||h.dispose();for(;K.thumbnails.lengthU.length;)h=void 0,(h=K.X.pop())==null||h.dispose(); for(;K.X.length>7,K.error.code]);h.set(U,4);return h}; OJC=function(){var K=null;try{K=g.qs.sessionStorage||null}catch(W){}ST.call(this,K)}; c0e=function(K,W){var U=[];if(W=K.j.get(W.layoutId)){W=g.z(W);for(var h=W.next();!h.done;h=W.next())(h=K.X.get(h.value.triggerId))&&U.push(h)}return U}; f4=function(K){return function(){return n7p[K].apply(this,arguments)}}; g7s=function(K,W){if(!K)return NaN;W=gH(K,W);return W>=0?K.start(W):NaN}; F6L=function(){var K=Dz(),W={},U={},h={};return Object.assign({},(W.sv="968",W),th!==null&&(U.v=th,U),(h["if"]=K.N?"1":"0",h.nas=String(cY.j.length),h))}; uy_=function(K){var W=g.$K("html5-video-player");W&&g.JM(W,"ytp-ad-display-override",K)}; kTe=function(){return{Xd:["metadata_type_valid_ad_message_renderer"],oR:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; zXL=function(K,W,U,h){var m=Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER");return iJ2(K,m,W,U,h)}; g.Gj=function(K){var W=Fk(K.h7());return K.app.EP&&!K.isFullscreen()||K.getPresentingPlayerType()===3&&W&&W.zP()&&W.cM()||!!K.getPlaylist()}; NwC=function(K,W,U){U=U3(K,U);for(var h,m;U>=0;U--)if(h=K.levels[U],m=u8(h,W),!h.isLoaded(m)){h=K;var S=U,f=S+"-"+m;h.G.has(f)||(h.G.add(f),h.N.enqueue(S,{L8:S,pD:m}))}Nvz(K)}; IU=function(K){this.j=K}; dE=function(K){var W=null;W={T:"button",Hp:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],B:{title:"close"},bX:"[X]"};g.y.call(this,{T:"div",Hp:["html5-video-info-panel","ytp-sfn"],K:[W,{T:"div",Hp:["html5-video-info-panel-content","ytp-sfn-content"],K:[{T:"div",K:[{T:"div",bX:"Video ID / sCPN"},{T:"span",bX:"{{video_id_and_cpn}}",Z:"ytp-sfn-cpn"}]},{T:"div",K:[{T:"div",bX:"Viewport / Frames"},{T:"span",bX:"{{dims_and_frames}}"}]},{T:"div",K:[{T:"div",bX:"Current / Optimal Res"},{T:"span", bX:"{{resolution}}"}]},{T:"div",K:[{T:"div",bX:"Volume / Normalized"},{T:"span",bX:"{{volume}}"}]},{T:"div",K:[{T:"div",bX:"Codecs"},{T:"span",bX:"{{codecs}}"}]},{T:"div",B:{style:"{{shader_info_style}}"},K:[{T:"div",bX:"Shader Info"},{T:"span",bX:"{{shader_info}}"}]},{T:"div",B:{style:"{{color_style}}"},K:[{T:"div",bX:"Color"},{T:"span",bX:"{{color}}"}]},{T:"div",B:{style:"{{drm_style}}"},K:[{T:"div",bX:"Protected"},{T:"span",bX:"{{drm}}"}]},{T:"div",B:{style:"{{bandwidth_style}}"},K:[{T:"div",bX:"Connection Speed"}, {T:"span",K:[{T:"span",bX:"{{bandwidth_chart}}"},{T:"span",bX:"{{bandwidth_kbps}}"}]}]},{T:"div",B:{style:"{{network_activity_style}}"},K:[{T:"div",bX:"Network Activity"},{T:"span",K:[{T:"span",bX:"{{network_activity_chart}}"},{T:"span",bX:"{{network_activity_bytes}}"}]}]},{T:"div",K:[{T:"div",bX:"Buffer Health"},{T:"span",K:[{T:"span",bX:"{{buffer_health_chart}}"},{T:"span",bX:"{{buffer_health_seconds}}"}]}]},{T:"div",B:{style:"{{live_latency_style}}"},K:[{T:"div",bX:"Live Latency"},{T:"span",K:[{T:"span", bX:"{{live_latency_chart}}"},{T:"span",bX:"{{live_latency_secs}}"}]}]},{T:"div",B:{style:"{{live_mode_style}}"},K:[{T:"div",bX:"Live Mode"},{T:"span",bX:"{{live_mode}}"}]},{T:"div",B:{style:"{{playback_categories_style}}"},K:[{T:"div",bX:"Playback Categories"},{T:"span",bX:"{{playback_categories}}"}]},{T:"div",B:{style:"{{fmt_debug_info_style}}"},K:[{T:"div",bX:"Format Debug Info"},{T:"span",bX:"{{fmt_debug_info}}"}]},{T:"div",K:[{T:"div",bX:"Mystery Text"},{T:"span",bX:"{{debug_info}}"}]},{T:"div", B:{style:"{{extra_debug_info_style}}"},K:[{T:"div",bX:""},{T:"span",K:[{T:"span",bX:"{{extra_debug_info}}"}]}]},{T:"div",K:[{T:"div",bX:"Date"},{T:"span",bX:"{{date}}"}]},{T:"div",B:{style:"{{cotn_and_local_media_style}}"},K:[{T:"div",bX:"COTN / Local Media"},{T:"span",bX:"{{cotn_and_local_media}}"}]},{T:"div",B:{style:"{{release_style}}"},K:[{T:"div",bX:"Player Release"},{T:"span",bX:"{{release_name}}"}]}]}]});this.Yx=K;this.position=0;this.U=!0;W?this.S(this.yH("ytp-sfn-close"),"click",this.hide): this.S(this.element,"click",this.hide);K=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];W="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var U=K.map(function(h){return h/4}); this.Y={};this.j=new $8(300,1,150,K,W);g.k(this,this.j);this.updateValue("bandwidth_chart",this.j);this.N=new $8(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.k(this,this.N);this.updateValue("live_latency_chart",this.N);this.X=new $8(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.k(this,this.X);this.updateValue("buffer_health_chart",this.X);this.G=new $8(300,1,150,U,W);g.k(this,this.G);this.updateValue("network_activity_chart", this.G);this.delay=new g.QC(this.SV,500,this);g.k(this,this.delay);this.W=new g.QC(this.J,2E4,this);g.k(this,this.W)}; A0C=function(K){var W=K.iZ;return yj(K,W,W[MX]|0,Jh,2,1)}; E3=function(K,W){var U="f"+(Math.floor(K/31)+1);K=1<0&&(this.items=[]);K=g.z(K);for(U=K.next();!U.done;U=K.next())(U=U.value)&& this.items.push({video_id:U});this.length=this.items.length;if(K=W.video)this.items=K.slice(0),this.loaded=!0}this.setShuffle(!!W.shuffle);if(K=W.suggestedQuality)this.quality=K;this.i$=Ht(W,"playlist_");this.N=(W=W.thumbnail_ids)?W.split(","):[]}; g.xW=function(K){g.p.call(this);var W=this;this.iX=K;this.xd={F7:function(){return W.iX}}}; MWY=function(K){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=K(this.triggerType)}; vN=function(K){K&&(K.startsWith("https://accounts.google.com/AddSession")?Tj():K.startsWith("https://accounts.google.com/ServiceLogin")?Tj():K.startsWith("https://myaccount.google.com")&&g.uF(K).X.endsWith("/youtubeoptions")&&Tj());if(g.TA("LOGGED_IN",!0)&&PL$()){var W=g.TA("VALID_SESSION_TEMPDATA_DOMAINS",[]);var U=g.Qq(window.location.href);U&&W.push(U);U=g.Qq(K);g.BX(W,U)||!U&&CL(K,"/")?(W=Qm(K),(W=W5z(W))?(W=qXp(W),W=(W=g.LY(W)||null)?nZ(W):{}):W=null):W=null;W==null&&(W={});U=W;var h=void 0; PL$()?(h||(h=g.TA("LOGIN_INFO")),h?(U.session_logininfo=h,U=!0):U=!1):U=!1;U&&N8(K,W)}}; RR=function(K,W,U,h,m,S,f,G){g.p.call(this);this.X=K;this.j=W;this.N=U;this.Xx=h;this.W=m;this.ZA=S;this.dk=f;this.Hl=G}; Pq=function(K){this.value=K}; p2C=function(K,W,U){if(K.jV.length)for(var h=g.z(K.jV),m=h.next(),S={};!m.done;S={DT:void 0},m=h.next()){S.DT=m.value;m=S.DT.startSecs*1E3;var f=S.DT.k$*1E3+m;if(W>m&&Wm&&U0&&(m.push(d),m.push(new $s(U.adPodSkipTarget)),h=[]);m.push(new cg(G.adPodIndex));U.isCritical&&(h=[new Sk(K.j,W.layoutId,["error"])].concat(g.z4(h)));return{z5:{layoutId:W.layoutId,layoutType:W.layoutType,uZ:W.uZ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], wk:W.wk,clientMetadata:new Zi(m),t7:W.t7,adLayoutLoggingData:W.adLayoutLoggingData},QC:h,GS:W.layoutExitMuteTriggers,hg:W.layoutExitUserInputSubmittedTriggers,aq:W.layoutExitUserCancelledTriggers}}; THz=function(K){return K!=null}; Qo=function(K){return K.D.V().experiments.Rk("html5_cuepoint_identifier_logging")}; yE=function(){var K,W;return"h5vcc"in M5&&((K=M5.h5vcc.traceEvent)==null?0:K.traceBegin)&&((W=M5.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in M5&&M5.performance.mark&&M5.performance.measure?2:0}; x2Y=function(K,W,U,h){if(U==3&&W.X&&!W.W)for(;K&&K.U;K=K.N)K.U=!1;if(W.j)W.j.N=null,ZJ_(W,U,h);else try{W.W?W.N.call(W.context):ZJ_(W,U,h)}catch(m){bJC.call(null,m)}E$D(s8$,W)}; kA$=function(K,W,U){var h=W.f8,m=W.getMetadata(),S=VWs(K,!0);K=X2$(K,m,S,U+h.getName());U=DRs(S,h.X,!1);v7p(U,m["X-Goog-Encode-Response-If-Executable"]==="base64");W=h.j(W.Ef);S.send(K,"POST",W);return U}; qsp=function(){var K=bs();K.info||(K.info={});return K.info}; xnC=function(K,W){W.subscribeCommand&&(K.subscribeCommand=W.subscribeCommand);W.unsubscribeCommand&&(K.unsubscribeCommand=W.unsubscribeCommand);W.addToWatchLaterCommand&&(K.addToWatchLaterCommand=W.addToWatchLaterCommand);W.removeFromWatchLaterCommand&&(K.removeFromWatchLaterCommand=W.removeFromWatchLaterCommand);W.getSharePanelCommand&&(K.getSharePanelCommand=W.getSharePanelCommand)}; KcL=function(K,W,U){try{if(K.qs())throw new cP(21,"BNT:disposed");if(!K.j&&K.X)throw K.X;var h,m;return(m=(h=CL_(K,W,U))!=null?h:K0$(K,W,U))!=null?m:lte(K,W,U)}catch(S){if(!W.MQ)throw LAs(K,S);return L6D(K,U,S)}}; Wc$=function(K,W){var U=W.filter(function(m){return Oq(K,m)===10}),h=W.filter(function(m){return Oq(K,m)!==10}); return K.W.S2m?function(){var m=g.Xl.apply(0,arguments);return g.r(function(S){if(S.j==1)return g.T(S,K.mZm.apply(K,[U].concat(g.z4(m))),2);K.b6.apply(K,[h].concat(g.z4(m)));g.q1(S)})}:function(){var m=g.Xl.apply(0,arguments); K.zVs.apply(K,[U].concat(g.z4(m)));K.b6.apply(K,[h].concat(g.z4(m)))}}; UtD=function(){function K(){var e=[],E=J*8;d<56?h(G,56-d):h(G,64-(d-56));for(var B=63;B>=56;B--)S[B]=E&255,E>>>=8;W(S);for(B=E=0;B<5;B++)for(var D=24;D>=0;D-=8)e[E++]=m[B]>>D&255;return e} function W(e){for(var E=f,B=0;B<64;B+=4)E[B/4]=e[B]<<24|e[B+1]<<16|e[B+2]<<8|e[B+3];for(B=16;B<80;B++)e=E[B-3]^E[B-8]^E[B-14]^E[B-16],E[B]=(e<<1|e>>>31)&4294967295;e=m[0];var D=m[1],a=m[2],Q=m[3],u=m[4];for(B=0;B<80;B++){if(B<40)if(B<20){var O=Q^D&(a^Q);var N=1518500249}else O=D^a^Q,N=1859775393;else B<60?(O=D&a|Q&(D|a),N=2400959708):(O=D^a^Q,N=3395469782);O=((e<<5|e>>>27)&4294967295)+O+u+N+E[B]&4294967295;u=Q;Q=a;a=(D<<30|D>>>2)&4294967295;D=e;e=O}m[0]=m[0]+e&4294967295;m[1]=m[1]+D&4294967295;m[2]= m[2]+a&4294967295;m[3]=m[3]+Q&4294967295;m[4]=m[4]+u&4294967295} function U(){m[0]=1732584193;m[1]=4023233417;m[2]=2562383102;m[3]=271733878;m[4]=3285377520;J=d=0} function h(e,E){if(typeof e==="string"){e=unescape(encodeURIComponent(e));for(var B=[],D=0,a=e.length;D=0&&(f={},S.publish("clienttemp","resetMflIndex",(f[h? "v":"a"]=I,f),!1));S=G;h4C(K.tO,W,h,S);K.N.F1(W,U,h,m);W.kx===K.Gm.DE&&S&&WJ(K.Gm)&&W.startTime>WJ(K.Gm)&&(K.Gm.PS=W.startTime+(isNaN(K.timestampOffset)?0:K.timestampOffset),K.tO.isSeeking()&&K.tO.targetTime0&&m&&(U=Math.max(U,K.policy.fK));return m5C(K,U,W)}; sB=function(K,W){return g.CB(W,K.X).join(",")}; NV=function(K){this.value=K}; x9=function(K,W,U,h,m,S){m=m===void 0?0:m;S=S===void 0?!1:S;g.p.call(this);this.X=K;this.N=!1;this.jV=h;this.Ms=S;this.G=!1;this.j=null;W>0&&(this.j=new g.QC(this.l_,W,this),g.k(this,this.j));this.U=new g.QC(this.l_,U,this);g.k(this,this.U);this.J=tos(this.X,m,1,h);g.k(this,this.J);this.Y=tos(this.X,0,h,1);g.k(this,this.Y);this.W=new jg;g.k(this,this.W)}; Gr=function(){eo.apply(this,arguments)}; ST$=function(K,W,U){W={cpn:W};K.indexOf("/ibw/")===-1&&(W.ibw=U?String(U):"1369843");return{url:g.sL(K,W),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; d5Y=function(K,W,U,h,m,S,f){var G=W.config.adPlacementConfig,I=fQL(G),d=I.QO,J=I.WI;I=(W.renderer.linearAdSequenceRenderer||{}).linearAds;if(I==null||!I.length)throw new TypeError("Expected linear ads");var e=[],E={lq:d,w4:0,Tjk:e};I=I.map(function(D){return tzR(K,D,E,U,h,G,m,J,f)}).map(function(D,a){a=new O3(a,e); return D(a)}); var B=I.map(function(D){return D.Vf}); return{Jl:G9Y(U,K,d,B,G,IQz(W),h,J,S),hPH:I.map(function(D){return D.ack})}}; yPC=function(K){K.X&&(K.X.dispose(),K.X=void 0)}; X$=function(K,W,U){var h=Math.floor(W),m=h+"% volume"+(U?" muted":"");U=U?0:W/100;K.updateValue("valuenow",h);K.updateValue("valuetext",m);h=K.N?78:52;m=!K.api.L("delhi_modern_web_player")&&K.N?18:12;K.uX.style.left=(h-m)*U+"px";K.volume=W}; rk=function(K,W,U,h,m){h=JZ$(h,W);$a(K,U,h,m);h&&!WF(h)&&FW(K.iZ);return K}; e4Y=function(K){K.j.enabled||K.j.start();K.W++;K.W>=K.N&&K.nT()}; g.M6=function(K,W,U,h){W=W!==void 0?W:K.index;W=K.items&&W in K.items?K.items[K.order[W]]:null;var m=null;W&&(U&&(W.autoplay="1"),h&&(W.autonav="1"),m=new g.GM(K.Tm,W),g.k(K,m),m.Dp=!0,m.startSeconds=K.startSeconds||m.clipStart||0,K.listId&&(m.playlistId=K.listId.toString()));return m}; Nxs=function(K,W){if(C_(K,W))return W=s1(K.j,K.pos,8),K.pos+=8,(new DataView(W.buffer,W.byteOffset,W.byteLength)).getFloat64(0,!0)}; ct=function(K){this.iZ=qR(K,36)}; EFe=function(K){this.iZ=qR(K)}; T3=function(K){var W=K.app.V().controlsType==="3"&&!K.YZ&&g9(K)&&!K.app.IK||!1;K.iY.controls=W;K.iY.tabIndex=W?0:-1;K.app.V().W&&(K.iY.ariaHidden="true");W?K.iY.removeEventListener("focus",K.VU):K.iY.addEventListener("focus",K.VU)}; g.n4=function(K){g.p.call(this);this.Y=K;this.W=0;this.N=100;this.U=!1;this.X=new Map;this.G=new Set;this.flushInterval=3E4;this.j=new g.j8(this.flushInterval);this.j.listen("tick",this.nT,!1,this);g.k(this,this.j)}; gE=function(K,W,U){return new IH(K,W,U)}; ui=function(K){g.y.call(this,{T:"button",Hp:["ytp-replay-button","ytp-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},K:[g.Fr()]});this.D=K;this.S(K,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Bl(K.getPlayerStateObject());Yb(this.D,this.element,this)}; Pbp=function(K){var W,U;return(U=(W=/https?:\/\/[^\/]+/.exec(K))==null?void 0:W[0])!=null?U:""}; NtD=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"basechromeinitialized",function(){W.j=new k_(K);g.k(W,W.j);g.HW(K,W.j.element,4);W.j.hide()})}; qv2=function(K,W,U,h,m){g.p.call(this);var S=this,f=tp(function(){return new IR(S.Xx)}); g.k(this,f);var G=tp(function(){return new dq(f,S.Xx)}); g.k(this,G);var I=tp(function(){return new Jp}); g.k(this,I);var d=tp(function(){return new ea(K)}); g.k(this,d);var J=tp(function(){return new E9(f,G,S.Xx)}); g.k(this,J);var e=tp(function(){return new BI}); g.k(this,e);this.Qr=tp(function(){return new qwR(W)}); g.k(this,this.Qr);this.bY=tp(function(){return new DY(W)}); g.k(this,this.bY);this.kd=tp(function(){return new HI(m)}); g.k(this,this.kd);this.Hl=tp(function(){return new rq(W)}); g.k(this,this.Hl);this.Oa=tp(function(){return new TS(W)}); g.k(this,this.Oa);this.hS=tp(function(){return new aR(W)}); g.k(this,this.hS);this.xm=tp(function(){return new wq(W)}); g.k(this,this.xm);this.Xx=tp(function(){return new QZ(W)}); g.k(this,this.Xx);var E=tp(function(){return new $i(h)}); g.k(this,E);var B=tp(function(){return new Yi(S.Xx)}); g.k(this,B);this.JO=tp(function(){return new cI(W)}); g.k(this,this.JO);this.ZA=tp(function(){return new nA(W,e,S.Xx)}); g.k(this,this.ZA);var D=gq({ZA:this.ZA,Xx:this.Xx,uB:B}),a=D.context,Q=D.Pu;this.Yd=D.Yd;this.K5=tp(function(){return new Wa(W,S.Xx,S.zm)}); g.k(this,this.K5);this.TK=tp(function(){return new BT(W)}); g.k(this,this.TK);this.dk=tp(function(){return new F5(W,S.ZA,S.Xx)}); g.k(this,this.dk);this.au=tp(function(){return new ub}); g.k(this,this.au);D=tp(function(){return new O9(f,J,G,S.Xx,B,null,S.dk,S.J3,S.wm,3)}); g.k(this,D);this.E_=tp(function(){return new zS(S.Xx)}); this.yg=tp(function(){return new ki(S.dk,W,S.Xx)}); g.k(this,this.yg);this.zm=tp(function(){return new ib(W,I,S.yg,S.ZA,S.Yd,S.Xx,Q)}); g.k(this,this.zm);this.DX=new RR(d,D,U,this.Xx,K,this.ZA,this.dk,this.Hl);g.k(this,this.DX);var u=new yZ(W,this.DX,this.dk,this.ZA,this.K5);this.G5=tp(function(){return u}); this.Y8=u;this.C1=new NW(BSz,Ap,function(O,N,A,Z){return CZL(G.get(),O,N,A,Z)},d,J,G,B,this.Xx,this.ZA); g.k(this,this.C1);this.J3=new jE(d,J,this.G5,this.K5,this.dk,this.Xx,this.zm,this.TK);g.k(this,this.J3);this.KC=new MW(d,J,this.Oa,this.G5,a);g.k(this,this.KC);this.H2=new PI(this.Xx,d,J,D,this.ZA,this.KC,U,this.hS);g.k(this,this.H2);this.qN=tp(function(){return new pA(E,G,B,S.Xx,S.zm,S.dk,S.TK)}); g.k(this,this.qN);this.O_=tp(function(){return new oR}); g.k(this,this.O_);this.Wu=new ZY(K,this.bY,this.Xx);g.k(this,this.Wu);this.sz=new bb(K);g.k(this,this.sz);this.Bu=new s9(K,this.G5,a);g.k(this,this.Bu);this.Iw=new VZ(K,this.Oa,this.dk,this.ZA,a);g.k(this,this.Iw);this.uj=new SE(K,this.ZA);g.k(this,this.uj);this.wm=new fX(K,this.K5,this.dk,this.zm,this.G5,this.J3);g.k(this,this.wm);this.Lc=new X5(K);g.k(this,this.Lc);this.xT=new vI(K);g.k(this,this.xT);this.m1=new qW(K);g.k(this,this.m1);this.Xc=tp(function(){return new xi}); g.k(this,this.Xc);this.g_=tp(function(){return new CA(S.dk)}); g.k(this,this.g_);this.kT=tp(function(){return new lb(S.H2,d,f)}); g.k(this,this.kT);this.AD=tp(function(){return new LA(S.Xx,S.zm,S.Lc,S.yg)}); g.k(this,this.AD);this.lK=tp(function(){return new Go(K,S.m1,S.Lc,S.ZA,S.TK,S.dk,S.au,S.zm,e,S.K5,S.yg,S.E_,S.hS,S.Oa,S.Hl,S.xm,S.kd,S.JO,S.Xx,I,a,Q)}); g.k(this,this.lK);this.xX=tp(function(){return new D5p(S.bY,S.dk,S.zm,I,S.Qr,U,S.Xx,S.ZA)}); g.k(this,this.xX);this.YL={jl:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.H2],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.J3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.C1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.KC]]),Ga:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qN],["SLOT_TYPE_FORECASTING",this.O_],["SLOT_TYPE_IN_PLAYER",this.O_],["SLOT_TYPE_PLAYER_BYTES",this.O_]]),IC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Wu],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.sz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.sz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.sz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.sz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.sz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.sz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.sz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.sz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.sz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Iw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Iw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uj],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Lc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.m1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.wm],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wm],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wm],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wm]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xc],["SLOT_TYPE_FORECASTING",this.Xc],["SLOT_TYPE_IN_PLAYER",this.Xc],["SLOT_TYPE_PLAYER_BYTES",this.g_]]),Wx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kT],["SLOT_TYPE_FORECASTING",this.AD],["SLOT_TYPE_PLAYER_BYTES",this.lK],["SLOT_TYPE_IN_PLAYER",this.xX]])};this.listeners=[I.get()]; this.vL={H2:this.H2,hB:this.Xx.get(),s5:this.kd.get(),bR:this.dk.get(),DX:this.DX,JM:f.get(),w6:null,RP:this.Wu,tB:I.get(),i5:this.ZA.get()}}; aup=function(K,W,U){m6&&m6.measure&&(K.startsWith("measure_")||(K="measure_"+K),U?m6.measure(K,W,U):W?m6.measure(K,W):m6.measure(K))}; H$L=function(K,W,U){switch(W){case 35:K.hf(U);break;case 44:K.Ld(U);break;case 43:K.b2(U);break;case 53:K.pk(U);break;case 56:K.Dj();break;case 57:K.BD(U);break;case 42:K.wL(U);break;case 45:K.dZ(U);break;case 59:K.Hn(U);break;case 51:K.qS(U);break;case 49:K.Gr(U);break;case 50:K.hL(U);break;case 47:K.zr(U);break;case 58:K.vx(U);break;case 61:K.N5.p5.SR((0,g.AI)());break;case 66:K.pM(U);break;case 46:K.Un(U);break;case 67:K.onSnackbarMessage(U);break;case 69:K.iQ(U)}}; ii=function(K,W,U,h,m){qv.call(this,K,{T:"div",Z:"ytp-ad-timed-pie-countdown-container",K:[{T:"svg",Z:"ytp-ad-timed-pie-countdown",B:{viewBox:"0 0 20 20"},K:[{T:"circle",Z:"ytp-ad-timed-pie-countdown-background",B:{r:"10",cx:"10",cy:"10"}},{T:"circle",Z:"ytp-ad-timed-pie-countdown-inner",B:{r:"5",cx:"10",cy:"10"}},{T:"circle",Z:"ytp-ad-timed-pie-countdown-outer",B:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",W,U,h,m);this.W=this.yH("ytp-ad-timed-pie-countdown-container");this.N=this.yH("ytp-ad-timed-pie-countdown-inner"); this.U=this.yH("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; VBC=function(K){for(var W=K;K&&K!=K.parent;)K=K.parent,ZL(K)&&(W=K);return W}; J6$=function(K){return new Promise(function(W,U){Vas(K,W,U)})}; Nq=function(K,W,U){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=U||K(this.triggerType)}; z_=function(){return{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; NF=function(K,W){zj[W]=zj[W]||{count:0};var U=zj[W];U.count++;U.time=(0,g.AI)();K.j||(K.j=g.UL(0,function(){var h=(0,g.AI)(),m;for(m in zj)zj[m]&&h-zj[m].time>6E4&&delete zj[m];K&&(K.j=0)},5E3)); return U.count>5?(U.count===6&&Math.random()*1E5<1&&(U=new g.EB("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||g.eI(U)),!0):!1}; rZL=function(K){return K.data["Stitched-Video-Cpn"]?K.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; ZZ$=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"applicationInitialized",function(){TSY(W)})}; aQp=function(K){return Ns(K,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Ah=function(K,W){return K.D.getPlayerStateObject(W)}; dYD=function(K,W,U){var h=[],m=[];if((Array.isArray(U)?2:1)==1)return m=[W,K],g.tD(h,function(G){m.push(G)}),hgp(m.join(" ")); var S=[],f=[];g.tD(U,function(G){f.push(G.key);S.push(G.value)}); U=Math.floor((new Date).getTime()/1E3);m=S.length==0?[U,W,K]:[S.join(":"),U,W,K];g.tD(h,function(G){m.push(G)}); K=hgp(m.join(" "));K=[U,K];f.length==0||K.push(f.join(""));return K.join("_")}; RU=function(K,W,U){return arguments.length<=2?Array.prototype.slice.call(K,W):Array.prototype.slice.call(K,W,U)}; Fy=function(K,W){var U=null;return(new g.X3(function(h,m){U=g.GB(function(){h(W)},K); U==-1&&m(Error("Failed to schedule timer."))})).Df(function(h){g.qs.clearTimeout(U); throw h;})}; wWC=function(K){var W=sd(K);return W&&W.text?g.Rb(W.text):K.paidContentOverlayText}; YTp=function(){var K=QIp("IFRAME"),W={};g.tD($5$(),function(U){K.sandbox&&K.sandbox.supports&&K.sandbox.supports(U)&&(W[U]=!0)}); return W}; yo=function(K,W){K.X=!!W;K.j(K.D.xx().getPlayerSize())}; O$_=function(K){var W=K.W.filter(function(U){return U.isChecked()}); W.length!==0&&(W=W[0].getCommand(),K.layoutId?K.s5.executeCommand(W,K.layoutId):g.wG(Error("Missing layoutId for ad feedback dialog.")),K.api.onAdUxClicked("ad-feedback-dialog-confirm-button",K.layoutId),K.publish("a"),K.hide())}; MF=function(){this.U=this.N=null;this.X=this.j=0;this.W=[];this.G=!1}; x7=function(K,W){return cZp(K,W,!0)}; Pt=function(){this.j=[]}; v7p=function(K,W){var U=new nFp;g.p4(K.xhr,"complete",function(){if(bH(K.xhr)){var h=g.FU(K.xhr);if(W&&K.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");h=atob(h)}try{var m=K.Y(h)}catch(G){oU(K,Z9(new WN(13,"Error when deserializing response data; error: "+G+(", response: "+h)),U));return}h=dJp(K.xhr.getStatus());jZ(K,H2(K));h===0?MDC(K,m):oU(K,Z9(new WN(h,"Xhr succeeded but the status code is not 200"),U))}else{h=g.FU(K.xhr);m=H2(K);if(h){var S= gFz(K,h);h=S.code;var f=S.details;S=S.metadata}else h=2,f="Rpc failed due to xhr error. uri: "+String(K.xhr.J)+", error code: "+(K.xhr.X+", error: ")+K.xhr.getLastError(),S=m;jZ(K,m);oU(K,Z9(new WN(h,f,S),U))}})}; C_z=function(K,W){try{var U=yq(bi);U.uX=!0;var h=K?new HP(K.y,K.x+K.width,K.y+K.height,K.x):new HP(0,0,0,0);var m=i_(),S=$R();var f=new sT(m,S,U);f.j=h;f.volume=W;U.IA(f)}catch(G){Tl(542,G)}}; zA=function(K,W){return FTR(K,W[0],W[1])}; Fce=function(K,W){Vd(K,1,W.token)}; YRY=function(K,W){if(K.removed)K=!0;else{W=new g6(W,this);var U=K.listener,h=K.handler||K.src;K.fF&&K1(K);K=U.call(h,W)}return K}; s3=function(K,W,U,h,m,S,f,G,I){W=bh(K.X.get(),U,W);var d={layoutId:W,layoutType:U,wk:"core"},J=[new mX(K.j,m,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];I&&J.push(new Sk(K.j,I,["normal"]));return{layoutId:W,layoutType:U,uZ:new Map,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([h,new vM(S),new fY(m)]),t7:f(d),adLayoutLoggingData:G}}; z4Y=function(K,W){var U=W||upC(K)||K.isExternallyHostedPodcast;if(!K.j||U)return K.rk("skipDash",{dm:!!K.j,air:W,dd:K.x_,mss:p6(),"3pp":K.isExternallyHostedPodcast}),pC();WE(K)&&k9F(K.j,K.isLivePlayback);return EM().then(function(){return i$p(K.cY,g.Vo(K),K.Tm.U,K.j,K.U,function(h){return K.publish("ctmp","fmtflt",h)},K.vr,Xr(K)).then(function(h){K.Qa(h); K.cY.j=null;/^av/.test(K.clientPlaybackNonce)&&K.DO&&K.rk("av1",K.DO.j)})})}; NSD=function(K){var W,U,h,m,S=(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:(h=U.itemData)==null?void 0:(m=h.exclusivesData)==null?void 0:m.expirationTimestampMs;W=(Number(S)-Date.now())/1E3;if(W>0){if(W<604800){var f,G,I,d;U=(f=K.j)==null?void 0:(G=f.bannerData)==null?void 0:(I=G.itemData)==null?void 0:(d=I.exclusivesData)==null?void 0:d.exclusiveOfferCountdownText;if(U!==void 0)for(f=Date.now(),G=g.z(U),I=G.next();!I.done;I=G.next())if(I=I.value,I!==void 0&&I.text!==void 0&&(d=Number(I.textDisplayStartTimestampMs), !isNaN(d)&&f>=d)){I.insertCountdown?(W=I.text.replace(/\$0/,String(AG({seconds:W}))),K.G.setContent(W)):K.G.setContent(I.text);K.G.show();break}}var J,e,E,B;K.U.update({exclusive:(J=K.j)==null?void 0:(e=J.bannerData)==null?void 0:(E=e.itemData)==null?void 0:(B=E.exclusivesData)==null?void 0:B.exclusiveOfferLabelText});K.U.show();vt(K);var D;(D=K.Ez)==null||D.start()}else EV(K)}; AZs=function(K,W){this.X=this.j=0;this.j=W.x-K.x;this.X=W.y-K.y}; R4_=function(K,W){var U,h;return(U=qF(K,"macroMarkersListEntity",W))==null?void 0:(h=U.markersList)==null?void 0:h.markerType}; ApC=function(K,W){K.rateLimit?K.j?(g.MU.tD(K.W),K.W=g.MU.C_(function(){K.N!==W&&(K.dispatchEvent(W),K.N=W,K.j=(0,g.AI)())},K.rateLimit-((0,g.AI)()-K.j))):(K.dispatchEvent(W),K.N=W,K.j=(0,g.AI)()):K.dispatchEvent(W)}; yZL=function(K){var W=K.j;W&&W.kx===-1&&(K=K.N.Hg())&&WL(K.info)&&(K=K.info.kx,W.G="updateLastSliceRequested",W.kx=K)}; oFs=function(K,W){if(W=W.playerControlsOverlayRenderer)MzF(K,W.controlBgHtml),W.mutedAutoplay?(W=g.P(W.mutedAutoplay,PJD))&&W.endScreen&&(W=g.P(W.endScreen,pWD))&&W.text&&(K.r7=g.Rb(W.text)):K.mutedAutoplay=!1}; ll$=function(K){return new Promise(function(W){var U=g.k$("SCRIPT");if(K){var h=aQ(K,6);h=h===null||h===void 0?null:RDC(h)}else h=null;U.textContent=I$(h);Q6(U);(g.K4("HEAD")[0]||document.documentElement).appendChild(U);g.f7(U);W()})}; b$2=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D){h=Zs(h,"SLOT_TYPE_PLAYER_BYTES");K=Z$F(m,K,f,U,h,I,d);if(K instanceof v)return K;var a;d=(a=Sp(K.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:a.layoutId;if(!d)return new v("Invalid adNotify layout");W=r_C(d,m,S,U,G,W,I,J,e,E,B,D,f);return W instanceof v?W:[K].concat(g.z4(W))}; g.Zc=function(K,W){for(var U,h,m=1;m>>0;K=K.j;var U=a8C(K,W);K=K.X;if(Vzp){var h=K,m;(m=x_)||(m=x_=new TextDecoder("utf-8",{fatal:!0}));W=U+W;h=U===0&&W===h.length?h:h.subarray(U,W);try{var S=m.decode(h)}catch(d){if(C4===void 0){try{m.decode(new Uint8Array([128]))}catch(J){}try{m.decode(new Uint8Array([97])),C4=!0}catch(J){C4=!1}}!C4&&(x_=void 0);throw d;}}else{S=U;W=S+W;U=[];for(var f=null,G,I;S=W?li():(I=K[S++],G<194||(I&192)!==128?(S--,li()):U.push((G&31)<<6|I&63)): G<240?S>=W-1?li():(I=K[S++],(I&192)!==128||G===224&&I<160||G===237&&I>=160||((m=K[S++])&192)!==128?(S--,li()):U.push((G&15)<<12|(I&63)<<6|m&63)):G<=244?S>=W-2?li():(I=K[S++],(I&192)!==128||(G<<28)+(I-144)>>30!==0||((m=K[S++])&192)!==128||((h=K[S++])&192)!==128?(S--,li()):(G=(G&7)<<18|(I&63)<<12|(m&63)<<6|h&63,G-=65536,U.push((G>>10&1023)+55296,(G&1023)+56320))):li(),U.length>=8192&&(f=RqC(f,U),U.length=0);S=RqC(f,U)}return S}; XWC=function(K){var W=g.dG(K.G.j,function(h){return h.audio.j}),U=g.dG(K.G.j,function(h){return!h.audio.j}); return W?K.policy.UV?W:U:null}; SE=function(K,W){g.p.call(this);var U=this;this.W=K;this.X=new Map;this.N=new Map;this.j=null;W.get().addListener(this);this.addOnDisposeCallback(function(){W.qs()||W.get().removeListener(U)}); var h;this.j=((h=W.get().hM)==null?void 0:h.slotId)||null}; mR=function(K){g.p.call(this);var W=this;this.componentId="";this.j=[];this.tK="";this.pageId=null;this.vp=this.DA=-1;this.Y=this.experimentIds=null;this.G=this.W=0;this.jV=null;this.uX=this.Ns=0;this.Bp=1;this.timeoutMillis=0;this.hK=!1;this.logSource=K.logSource;this.SE=K.SE||function(){}; this.N=new K0(K.logSource,K.JR);this.network=K.network||null;this.FQ=K.FQ||null;this.J=K.C$5||null;this.sessionIndex=K.sessionIndex||null;this.ip=K.ip||!1;this.logger=null;this.withCredentials=!K.zG;this.JR=K.JR||!1;this.Ms=!this.JR&&!!f_()&&!!f_().navigator&&f_().navigator.sendBeacon!==void 0;this.Le=typeof URLSearchParams!=="undefined"&&!!(new URL(WZ())).searchParams&&!!(new URL(WZ())).searchParams.set;var U=vFD(new S7);fp(this.N,U);this.U=new g.Uu(1E4,3E5,.1);K=qTp(this,K.pL);this.X=new hf(this.U.getValue(), K);this.eV=new hf(6E5,K);this.ip||this.eV.start();this.JR||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){jC(W);var h;(h=W.jV)==null||h.flush()}}),document.addEventListener("pagehide",function(){jC(W); var h;(h=W.jV)==null||h.flush()}))}; WQz=function(K,W,U){if(U.info.Wp.LK()){if(K.Ik&&x5$(U)&&(W=g.jI(U),W=g.LS(W,0,1953658222))){W.skip(1);var h=ww(W)<<16|QQ(W),m=h&1,S=h&4;if(h&256){var f=h&512,G=h&1024;h&=2048;var I=N7(W);I<2||(m&&W.skip(4),S&&W.skip(4),m=N7(W),W.skip((I-1)*(4+(f?4:0)+(G?4:0)+(h?4:0))-4),W.data.setUint32(W.offset+W.j,m))}}if(W=K.Ns&&!!K.Ns.Wp.W)if(W=U.info.ZE())W=CJF(U),f=K.Ns,Kc?(G=1/W,W=SC(K,W)>=SC(f)+G):W=K.getDuration()>=f.getDuration(),W=!W;W&&x5$(U)&&(W=K.Ns,Kc?(G=CJF(U),f=1/G,G=SC(K,G),W=SC(W)+f-G):W=W.getDuration()- K.getDuration(),W=1+W/U.info.duration,vEL(g.jI(U),W))}else{f=!1;K.U||(brD(U),U.j&&(K.U=U.j,f=!0,m=U.info,S=U.j.Vn,m.G="updateWithEmsg",m.kx=S,m=U.j,m.xM&&(S=K.Wp.index,S.X=!m.xM,S.N="emsg"),m=U.info.Wp.info,S=g.jI(U),g.Yv(m)?de(S,1701671783):m.yh()&&mP([408125543],307544935,S)));a:if((m=f0(U,K.policy.oW))&&NZF(U))G=lQL(K,U),K.Y+=G,m-=G,K.jV+=m,K.N=K.policy.jh?K.N+m:NaN;else{if(K.policy.yF){if(S=I=K.loader.zo(g.tf(U),1),K.N>=0&&U.info.type!==6){if(K.policy.jh&&isNaN(K.vp)){g.eI(new g.EB("Missing duration while processing previous chunk", U.info.m6()));K.loader.isOffline()&&!K.policy.CK||LcR(K,U,S);l8(K,"m");break a}h=I-K.N;var d=h-K.Y,J=U.info.kx,e=K.hK?K.hK.kx:-1,E=K.JK,B=K.vp,D=K.policy.Ys&&h>K.policy.Ys,a=Math.abs(d)>10,Q=Math.abs(K.N-S)<1E-7;if(Math.abs(d)>1E-4){K.Le+=1;var u=(G=K.U)==null?void 0:rZL(G);G={audio:""+ +K.yR(),sq:J.toFixed(),sliceStart:I,lastSq:e.toFixed(),lastSliceStart:E,lastSliceDuration:B,totalDrift:(h*1E3).toFixed(),segDrift:(d*1E3).toFixed(),skipRewrite:""+ +(D||a)};if(u==null?0:u.length)G.adCpn=u[0];K.loader.handleError("qoe.avsync", G);K.Bp=J}D||a||Q||(S=K.N);G=lQL(K,U,I);m-=G;K.Y=h+G}}else S=isNaN(K.N)?U.info.startTime:K.N;LcR(K,U,S)&&(K.jV+=m,K.N=S+m,K.policy.ZR&&K.Le>=K.policy.ZR&&(K.Le=0,K.loader.ll({resetForRewrites:"count"})))}K.hK=U.info;K.vp=Gg(U);U.N>=0&&(K.JK=U.N);if(f&&K.U){f=sb$(K,!0);uh(U.info,f);K.j&&uh(K.j.info,f);W=g.z(W);for(G=W.next();!G.done;G=W.next())G=G.value,m=void 0,K.policy.U&&G.kx!==((m=K.U)==null?void 0:m.Vn)||uh(G,f);(U.info.N||K.j&&K.j.info.N)&&U.info.type!==6||(K.Ms=f,K.policy.X?(W=V7p(K.U),K.loader.F1(K.Wp, f,W)):(W=K.loader,W.Gm.isManifestless&&jIC(W,f,null,!!K.Wp.info.video)),K.policy.Dp||cDY(K))}}V6$(K,U);K.timestampOffset&&KQC(U,K.timestampOffset)}; Ie=function(K,W,U,h){h=h===void 0?{}:h;g.kQ(function(){UBe.includes(W)||(g.eI(new g.EB("createClientScreen() called with a non-page VE",W)),W=83769);h.isHistoryNavigation||(K.uX=[],K.j.push({rootVe:W,key:h.key||""}));K.Y=[];K.J=[];h.xp?hSz(K,W,U,h):UcF(K,W,U,h)})()}; Eu=function(K){var W={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},U=K.playlist!=null&&K.playlist.zP();U=g.Gj(K.D)&&(!K.j||U);var h=K.j&&g.Jf(K.D),m=SRR(K),S=K.j&&K.D.getPresentingPlayerType()===5,f=g.U4(K.D,"Next","SHIFT+n"),G=g.U4(K.D,"Previous","SHIFT+p");if(S)W.title="Start video",W["tooltip-title"]="Start video";else if(K.N)W.title="Replay",W["tooltip-title"]="Replay";else if(U){var I=null;K.playlist&&(I= g.M6(K.playlist,K.j?ELL(K.playlist):$0e(K.playlist)));if(I){if(I.videoId){var d=K.playlist.listId;W.url=K.D.V().getVideoUrl(I.videoId,d?d.toString():void 0)}W.text=I.title;W.duration=I.lengthText?I.lengthText:I.lengthSeconds?g.sp(I.lengthSeconds):null;W.preview=I.S7("mqdefault.jpg")}K.j?(W.title=f,W["tooltip-title"]=f,W["data-title-no-tooltip"]="Next",W["aria-keyshortcuts"]="SHIFT+n"):(W.title=G,W["tooltip-title"]=G,W["data-title-no-tooltip"]="Previous",W["aria-keyshortcuts"]="SHIFT+p")}else if(h){if(G= (I=K.videoData)==null?void 0:g.eC(I))W.url=G.cN(),W.text=G.title,W.duration=G.lengthText?G.lengthText:G.lengthSeconds?g.sp(G.lengthSeconds):null,W.preview=G.S7("mqdefault.jpg");W.title=f;W["tooltip-title"]=f;W["data-title-no-tooltip"]="Next";W["aria-keyshortcuts"]="SHIFT+n"}W.disabled=!h&&!U&&!m&&!S;K.update(W);K.G=!!W.url;h||U||K.N||m||S?K.X||(K.X=g.tk(K.tooltip,K.element),K.U=K.listen("click",K.onClick,K)):K.X&&(K.X(),K.X=null,K.GK(K.U),K.U=null);K.tooltip.T8();g.JM(K.element,"ytp-playlist-ui", K.j&&(U||K.D.L("web_hide_next_button")))}; BZ=function(K,W,U){U=g.z(U);for(var h=U.next();!h.done;h=U.next())if(h=h.value,!K.YL.IC.get(h.triggerType))throw new Rt("No trigger adapter registered for "+j92.get(W)+" trigger of type: "+h.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; mBe=function(K,W,U){U=U===void 0?{}:U;return QPp(K,W,!0,U)}; BC=function(K){try{return B1(K)}catch(W){return null}}; Fh=function(K,W,U){for(;jz(K,W);){var h=mc(K,W);if(h.type===U)return h;W+=h.size}return null}; Hk=function(K,W){this.data=K;this.uri=W||"http://youtube.com/streaming/metadata/segment/102015";this.Vn=D4(this,"Sequence-Number");this.W=D4(this,"Segment-Count");this.U=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=D4(this,"Ingestion-Walltime-Us")/1E6;this.j=(D4(this,"First-Frame-Time-Us")+D4(this,"First-Frame-Uncertainty-Us"))/1E6;this.GI=D4(this,"Target-Duration-Us")/1E6;this.xM=this.data["Stream-Finished"]==="T";this.N=this.data.Streamable==="T";this.cryptoPeriodIndex=D4(this,"Crypto-Period-Index"); this.X=D4(this,"Crypto-Period-Seconds")}; eE=function(K){K.X=NaN;K.G=NaN;K.tK=NaN;K.W=null;K.Ns=null;K.U=null;K.hK=!1;K.uX=!1;K.vp=0;K.eV.stop();K.Bp.stop()}; SCp=function(K,W,U){U=K.j[W].H3(U);e5(K,U,0,K.j[W].width)}; g.EC=function(K){if(K instanceof g.X3)return K;var W=new g.X3(g.Ac);Qf(W,2,K);return W}; HZ=function(K,W,U,h,m){K={retry:!0,onSuccess:U,onError:h,networklessOptions:K,dangerousLogToVisitorSession:W,yZx:!!m,headers:{},postBodyFormat:"",postBody:"",compress:g.hc("compress_gel")||g.hc("compress_gel_lr")};Eq()&&(K.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.AI)())));return K}; thD=function(K,W,U,h,m){return O3D(K,W,U,h,function(S,f){return new fRC(K.j,U,S,f,m)})}; ro=function(K){g.y.call(this,{T:"button",Hp:["ytp-airplay-button","ytp-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},bX:"{{icon}}"});this.D=K;this.listen("click",this.onClick);this.S(K,"airplayactivechange",this.SV);this.S(K,"airplayavailabilitychange",this.SV);this.SV();Yb(K,this.element,this)}; ae=function(K){Tg.call(this,!0);this.j=K}; IRz=function(K,W){K.fflags=dF(K.fflags,W.fflags);var U=W.iv_invideo_url;U&&(K.r4=wo(U));K.SN=DL(K.SN,W.iv_ads_only);if(U=W.cta_conversion_urls)K.cq=U;K.isPharma=DL(K.isPharma,W.is_pharma);K.author=dF(K.author,W.author);K.W3=OSY(W.ttsurl)||K.W3;K.A3=DL(K.A3,W.cc_asr);K.tK=dF(K.tK,W.channel_path);if(U=W.profile_picture)K.profilePicture=dF(K.profilePicture,U);K.videoCountText=dF(K.videoCountText,W.video_count_text);K.autonavState=lm(K.autonavState,W.autonav_state,Gt_);K.clientPlaybackNonce=dF(K.clientPlaybackNonce, W.cpn);K.subscribed=DL(K.subscribed,W.subscribed);K.rawViewCount=BJ(K.rawViewCount,W.view_count);K.shortViewCount=dF(K.shortViewCount,W.short_view_count_text);K.publishedTimeText=dF(K.publishedTimeText||"",W.publishedTimeText);K.lengthText=dF(K.lengthText||"",W.lengthText);K.MY=dF(K.MY||"",W.MY);K.XO=dF(K.XO||"",W.XO);K.title=dF(K.title,W.title);K.subtitle=dF(K.subtitle,W.subtitle);K.expandedTitle=dF(K.expandedTitle,W.expanded_title);K.expandedSubtitle=dF(K.expandedSubtitle,W.expanded_subtitle);K.ypcPreview= dF(K.ypcPreview,W.ypc_preview);K.BF=dF(K.BF,W.ypc_origin);K.bG=DL(K.bG,W.ypc_is_premiere_trailer);K.Ge=dF(K.Ge,W.ypc_clickwrap_message);K.paygated=DL(K.paygated,W.paygated);K.yD=DL(K.yD,W.requires_purchase);K.showShareButton=!DL(!K.showShareButton,W.ss);K.XI=DL(K.XI,W.showwatchlater);K.rS=DL(K.rS,W.shownotifybutton);K.N$=DL(K.N$,W.copy_share);if(U=W.el)K.eventLabel=U;if(U=W.keywords)K.keywords=Zts(U.split(","));if(U=W.rvs)K.suggestions=q6(U).map(function(h){return h.playlist||h.list||h.api?new XU(K.Tm, h):new bx(K.Tm,h)}); K.contentCheckOk=DL(K.contentCheckOk,W.cco);K.racyCheckOk=DL(K.racyCheckOk,W.rco);K.isLivingRoomDeeplink=DL(K.isLivingRoomDeeplink,W.is_living_room_deeplink);K.oauthToken=dF(K.oauthToken,W.oauth_token);K.Pp=dF(K.Pp,W.kpt);K.visitorData=dF(K.visitorData,W.visitor_data);if(U=W.session_data)K.sessionData=Ii(U,"&");K.U3=dF(K.U3,W.endscreen_ad_tracking_data);K.hJ=DL(K.hJ,W.wait_for_vast_info_cards_xml);K.El=DL(K.El,W.suppress_creator_endscreen);K.e2=DL(K.e2,W.is_trueview_action);K.ai=dF(K.ai,W.tracking_list); Iu2(K,W)}; dBL=function(K){return{token:fz(K,1)}}; J4$=function(K,W,U){for(var h=K.Y,m=K.j[0],S=K.j[1],f=K.j[2],G=K.j[3],I=K.j[4],d=K.j[5],J=K.j[6],e=K.j[7],E,B,D,a=0;a<64;)a<16?(h[a]=D=W[U]<<24|W[U+1]<<16|W[U+2]<<8|W[U+3],U+=4):(E=h[a-2],B=h[a-15],D=h[a-7]+h[a-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),h[a]=D),E=e+QK[a]+D+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&d^~I&J),B=((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+(m&S^m&f^S&f),e=E+B,G+=E,a++,a<16?(h[a]=D=W[U]<<24|W[U+1]<<16|W[U+2]<<8|W[U+3],U+=4):(E= h[a-2],B=h[a-15],D=h[a-7]+h[a-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),h[a]=D),E=J+QK[a]+D+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25|G<<7))+(G&I^~G&d),B=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&m^e&S^m&S),J=E+B,f+=E,a++,a<16?(h[a]=D=W[U]<<24|W[U+1]<<16|W[U+2]<<8|W[U+3],U+=4):(E=h[a-2],B=h[a-15],D=h[a-7]+h[a-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),h[a]=D),E=d+QK[a]+D+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&G^ ~f&I),B=((J>>>2|J<<30)^(J>>>13|J<<19)^(J>>>22|J<<10))+(J&e^J&m^e&m),d=E+B,S+=E,a++,a<16?(h[a]=D=W[U]<<24|W[U+1]<<16|W[U+2]<<8|W[U+3],U+=4):(E=h[a-2],B=h[a-15],D=h[a-7]+h[a-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3),h[a]=D),E=I+QK[a]+D+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&f^~S&G),B=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&J^d&e^J&e),D=e,e=G,G=D,D=J,J=f,f=D,D=d,d=S,S=D,I=m+E,m=E+B,a++;K.j[0]=m+K.j[0]|0;K.j[1]=S+K.j[1]|0;K.j[2]=f+K.j[2]|0;K.j[3]= G+K.j[3]|0;K.j[4]=I+K.j[4]|0;K.j[5]=d+K.j[5]|0;K.j[6]=J+K.j[6]|0;K.j[7]=e+K.j[7]|0}; $T=function(K){return K.L("web_settings_menu_surface_custom_playback")&&K.L("web_settings_use_input_slider")}; cZ=function(K,W,U,h,m){Ou.call(this,K,W,U,h,"survey-question-single-select",function(f){S.api.V().L("supports_multi_step_on_desktop")&&m([f])}); var S=this;this.hide()}; NX=function(K,W,U,h){!K&&(U===void 0?0:U)&&g.eI(Error("Player URL validator detects invalid url. "+(h===void 0?"":h)+": "+W));return K}; cGD=function(K){K.DA||(K.DA=(0,g.AI)(),g.sj("ovfs_rp",K.DA,K.j))}; eSC=function(K){function W(U){U.stack&&U.stack.indexOf("player")!==-1&&K.E5().Jm(U)} n0.subscribe("handleError",W);go.push(W);return function(){n0.unsubscribe("handleError",W);var U=go.indexOf(W);U!==-1&&go.splice(U,1)}}; FO=function(K){var W=e8(K,!0),U=0;W===4?U=K.j.getFloat32(K.pos):W===8&&(U=K.j.getFloat64(K.pos));K.pos+=W;return U}; uX=function(K){this.jV=this.Y=this.U=this.N=0;this.J=this.G=!1;this.j=K;this.X=K.clone()}; Ejs=function(K,W){Array.isArray(W)||(W=[W]);W=W.map(function(U){return typeof U==="string"?U:U.property+" "+U.duration+"s "+U.timing+" "+U.delay+"s"}); g.Zd(K,"transition",W.join(","))}; K_=function(K,W){if(!(K instanceof W))throw Error("Expected instanceof "+BbL(W)+" but got "+(K&&BbL(K.constructor)));return K}; tQ=function(K,W,U,h,m){this.Hr=W;this.j=U;this.visible=h;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=m||K(this.triggerType)}; jD=function(K,W){return K.j.has(W)}; YA=function(K){this.value=K}; kT=function(K,W){W+=K.RN();var U;if(K.playback.getVideoData().Sj()){a:{var h=W*1E3;K=g.z(K.j.X);for(U=K.next();!U.done;U=K.next()){U=U.value;var m=U.bb?U.bb*1E3:U.Ua;if(h>=U.Ua-1E3&&h<=m+U.durationMs+1E3){h=U;break a}}h=void 0}U={Go:h,PL:W}}else U=rw(K,W),((h=U)==null?0:h.Go)||(U=rw(K,W,1));var S;return(S=U)==null?void 0:S.Go}; Pb=function(K){this.value=K}; iX=function(K){var W=K.j,U=K.api.getCurrentTime(),h=K.api.xx().getPlayerSize(),m=U3(W,h.width);m=DB_(W,m,U);K.update({timestamp:g.sp(U)});m!==K.frameIndex&&(K.frameIndex=m,NwC(W,m,h.width),W=cpR(W,m,h.width),niR(K.X,W,h.width,h.height))}; PN=function(K){return K.classList?K.classList:Zis(K).match(/\S+/g)||[]}; H12=function(K,W){for(var U=K.element.getElementsByTagName("a"),h=0;h0?W[0]:null;var U=g.$K("ytp-chrome-bottom"),h=g.$K("ytp-ad-module");K.N=!(U==null||!U.contains(W));K.G=!(h==null||!h.contains(W));K.Y=!(W==null||!W.hasAttribute("data-tooltip-target-fixed"));return W}; NB=function(K,W,U){U=U===void 0?0:U;K=Vh(gr(K,W));return K!=null?K:U}; Wt=function(K,W,U){var h=Sp(K.VH().clientMetadata,"metadata_type_linked_in_player_layout_id");return h?h:(UF("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",K.Vg(),K.VH(),{requestingSlot:W,requestingLayout:U}),null)}; yY=function(K){var W=K[ih];if(W!=null)return W;var U=E1(kr,AO,RP,K);W=U.p8?function(h,m){return Re(h,m,U)}:function(h,m){for(;Fls(m)&&m.X!=4;){var S=m.N,f=U[S]; if(f==null){var G=U.extensions;G&&(G=G[S])&&(G=Tb_(G),G!=null&&(f=U[S]=G))}if(f==null||!f(m,h,S)){G=m;f=G.W;qa(G);if(G.kY)var I=void 0;else{var d=G.j.j-f;G.j.j=f;I=aRp(G.j,d)}d=G=f=void 0;var J=h;I&&((f=(G=(d=J[r0])!=null?d:J[r0]=new fm)[S])!=null?f:G[S]=[]).push(I)}}if(h=vj(h))h.X_=U.iE[wCF];return!0}; K[ih]=W;K[wCF]=IkC.bind(K);return W}; sAz=function(K){if(!Q9e)return B1(K);K=$BF.test(K)?K.replace($BF,$s2):K;K=atob(K);for(var W=new Uint8Array(K.length),U=0;U1E3){var h=K.interruptions;h.push(Math.ceil(U));h.sort(function(m,S){return S-m}); h.length>16&&h.pop()}K.DA+=U}}K.U=W}; xD=function(K,W){if(K.W)if(K.videoData.isLivePlayback&&K.videoData.N&&!K.videoData.N.j&&K.mediaElement&&K.mediaElement.yn()>0&&VK(K.mediaElement)>0&&(K.X=XO(K,K.X,!1)),W=K.L("html5_pseudogapless_shorts_seek_to_next_start")&&(W==null?void 0:W.seekSource)===60,!K.mediaElement||!RS2(K,W))K.DO.start(750);else if(!isNaN(K.X)&&isFinite(K.X)&&(W=K.tK-(K.X-K.timestampOffset),!(W===0||Math.abs(W)<.005)))if(W=K.mediaElement.getCurrentTime()-K.X,Math.abs(W)<=K.vp||Math.abs(W)<.005)y4C(K);else{if(K.videoData.CM)K.videoData.CM= !1;else if(!f5(K.videoData)&&K.X>=K.jj()-.1){K.X=K.jj();K.W.resolve(K.jj());K.C.G9()&&K.iX.rk("setEndedInSeek",{tgt:""+K.X,maxst:""+K.jj()});K.iX.Cu();return}try{var U=K.X-K.timestampOffset;K.mediaElement.seekTo(U);K.Ms.j=U;K.tK=U;K.N=K.X;K.uX=!1}catch(h){}}}; Mh2=function(K,W){var U={};W=g.z(W);for(var h=W.next();!h.done;h=W.next())if((h=h.value)&&h.video){var m=h.video.qualityOrdinal,S=U[m],f=S&&wF(S)&&S.video.qualityOrdinal>K.policy.V6,G=m<=K.policy.V6?wF(h):TX(h);if(!S||f||G)U[m]=h}return U}; xxC=function(K){for(var W=g.z(K.X),U=W.next();!U.done;U=W.next())U=U.value,U.detach(),g.vZ(U);K.X=[]}; Pmp=function(K,W){K=new Set(K.map(W));K.delete(void 0);return K.size>=2}; pCe=function(K,W,U){var h=K.m8();if(K.isComplete()||!h||K.info.T9.n1(W,U))return 0;var m=W.g4;if(!m||h>>1),I=void 0; U?I=W.call(void 0,K[G],G,K):I=W(h,K[G]);I>0?m=G+1:(S=G,f=!I)}return f?m:-m-1},vLp=function(K,W,U,h,m,S,f,G,I,d,J){return{adClientDataEntry:{slotData:hX(K,{slotId:W, slotType:U,slotPhysicalPosition:h,wk:m,slotEntryTrigger:S,slotFulfillmentTriggers:f,slotExpirationTriggers:G,clientMetadata:new Zi([])}),layoutData:qC$(K,{layoutId:I,layoutType:d,wk:J,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],uZ:new Map,clientMetadata:new Zi([]),t7:{}})}}},xBL=function(K){K.gk.add(K.N); K.N="";K.Ms=!1},Cm_=function(K){var W=jU(); W&&(typeof K==="number"&&(K=[K]),g.tD(K,function(U){W.unsubscribeByKey(U);delete mN[U]}))},iLs=function(K,W,U,h,m,S,f){U=k_F(K,W,U,h); if(U instanceof v)return U;f=f({slotId:U.slotId,slotType:U.slotType,slotPhysicalPosition:U.slotPhysicalPosition,slotEntryTrigger:U.slotEntryTrigger,slotFulfillmentTriggers:U.slotFulfillmentTriggers,slotExpirationTriggers:U.slotExpirationTriggers,wk:U.wk});if(f instanceof v)return f;h=[new Nx(jr(W)),new xx(f.layout),new Ak({pu:K.pu(W)})];S&&h.push(new iW({}));return{sQ:{slotId:U.slotId,slotType:U.slotType,slotPhysicalPosition:U.slotPhysicalPosition,slotEntryTrigger:zs(K,W,U.slotId,U.slotEntryTrigger), slotFulfillmentTriggers:Sr(K,W,U.slotId,U.slotFulfillmentTriggers),slotExpirationTriggers:U.slotExpirationTriggers,wk:U.wk,clientMetadata:new Zi(h),adSlotLoggingData:m},A9:f.A9}}; var Jy_=function(){return i3[t[11]](this,41)}; SU=function(K,W,U,h){h=g.z(h);for(var m=h.next();!m.done;m=h.next()){m=m.value;var S=K.YL.IC.get(m.triggerType);S.M4(U,m,W.slot,W.layout?W.layout:null);W.uX.set(m.triggerId,S)}}; KPY=function(K,W,U){W=fI(W);U=fI(U);for(var h=K.data,m=K.output,S=K.N,f=K.register,G=K.j,I=K.X;;){if(G<15){if(I>h.length){K.error=!0;break}f|=(h[I+1]<<8)+h[I]<>=7;d<0;)d=W[(f&1)-d],f>>=1;else f>>=d&15;G-=d&15;d>>=4;if(d<256)m[S++]=d;else if(K.register=f,K.j=G,K.X=I,d>256){f=tX[d];f+=Bx(K,Gf[d]);I=lR2(K,U);G=I4[I];G+=Bx(K,d5[I]);if(LQC&&fg.hi()}; Ei=function(K){K.JK&&K.bZ({adf:"0_"+((new Date).getTime()/1E3-K.XI)+"_isTimeout_"+K.J})}; Dr=function(K,W){var U=BK(W);if(K.X[U])return K.X[U];var h=Object.keys(K.store)||[];if(h.length<=1&&BK(W)===h[0])return h;for(var m=[],S=0;S-1&&(W=W*256+h)}return W}h=128;for(var m=0;m<6&&h>U;m++)U=U*256+Tf(K),h*=128;return W?U:U-h}; IJp=function(K){for(var W=new Uint8Array(K.length),U=0;U1&&(m=!1);K.vn&&m===W||(h=h.lock(m?"portrait":"landscape"),h!=null&&h.catch(function(){}),K.vn=!0)}else K.vn&&(K.vn=!1,h.unlock())}; PNp=function(K,W,U){U=U===void 0?{}:U;this.error=K;this.meta=U;this.context=W.context;this.msg=W.message||"";this.id=W.id||"jserror"}; cK=function(){uw.call(this)}; GA=function(K){if(nI){var W;return(W=K[g5])!=null?W:K[g5]=new Map}if(g5 in K)return K[g5];W=new Map;Object.defineProperty(K,g5,{value:W});return W}; $UD=function(K){if(!K.stack)return!0;var W=!K.stack.includes("\n");return W&&K.stack.includes("ErrorType: ")||W&&K.stack.includes("Anonymous function (Unknown script")||K.stack.toLowerCase()==="not available"||K.fileName==="user-script"||K.fileName.startsWith("user-script:")?!0:!1}; Fq=function(){var K=Yh_;var W=W===void 0?[]:W;var U=U===void 0?[]:U;W=OOR.apply(null,[cs$.apply(null,g.z4(W))].concat(g.z4(U)));this.store=npC(K,void 0,W)}; g.Rr=function(K,W){Rbs.apply(null,[5,K instanceof g.io?K.tag:K,W].concat(g.z4(g.Xl.apply(2,arguments))))}; WO=function(K,W){if(!W)return K;var U=K.indexOf("#");U<0&&(U=K.length);var h=K.indexOf("?");if(h<0||h>U){h=U;var m=""}else m=K.substring(h+1,U);K=[K.slice(0,h),m,K.slice(U)];U=K[1];K[1]=W?U?U+"&"+W:W:U;return K[0]+(K[1]?"?"+K[1]:"")+K[2]}; fZ=function(K,W,U){K.state.j[W]=function(){return U.apply(K,g.Xl.apply(0,arguments))}}; gpY=function(K){var W=K.W.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);W.classList.add("ytp-seek-overlay-arrow-additional");W.classList.remove("ytp-seek-overlay-arrow-persistent");K.W.appendChild(W);FQe(K,W,!0,!0).addEventListener("finish",function(){W.remove()})}; Mj=function(K){return jvD(g.wB(K)[5]||null)}; FPs=function(){return{T:"svg",B:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},K:[{T:"path",B:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z", fill:"white"}}]}}; uAR=function(K){if(K.C.G9()){K.OW.sort(function(h,m){return+h.rt-+m.rt}); for(var W=g.z(K.OW),U=W.next();!U.done;U=W.next())U=U.value,K.rk("vpe",Object.assign({t:U.rt},U));K.OW=[];K.Uf=0}}; FX=function(K){if(window.crypto&&window.crypto.getRandomValues)try{var W=Array(K),U=new Uint8Array(K);window.crypto.getRandomValues(U);for(var h=0;h0;I--)U.push(G)}U.length!==f?W.error=!0:(S=U.slice(-S),U.length=m,KPY(W,U,S));break;case 1:KPY(W,il,zf);break;case 0:NE(W, W.j&7);U=Bx(W,16);m=Bx(W,16);(U^m)!==65535&&(W.error=!0);W.output.set(W.data.subarray(W.X,W.X+U),W.N);W.X+=U;W.N+=U;break;default:W.error=!0}K.N>K.output.length&&(K.output=new Uint8Array(K.N*2),K.N=0,K.X=0,K.W=!1,K.j=0,K.register=0)}K.output.length!==K.N&&(K.output=K.output.subarray(0,K.N));return K.error?new Uint8Array(0):K.output}; Qc=function(K,W){AX.call(this,K,W);this.M5=this.DO=!1;this.Le=this.Ns=Infinity;this.tK=NaN;this.Qg=!1;this.Pp=NaN;this.Ez=this.vp=this.Bp=0;this.eE=W.eE||1;this.UA=W.UA||this.eE;this.Za=W.Za;this.kx=W.kx;this.U4=W.U4;wED(this);this.xC(this.j);this.q5=(this.Pp-this.j)/1E3}; C9=function(){var K;return(K=g.SZ("yt-player-performance-cap-active-set"))!=null?K:[]}; Xm=function(K){var W=Sp(K.clientMetadata,"metadata_type_ad_placement_config");K=Sp(K.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:W,Fe:K}}; zkp=function(K){K=K===void 0?null:K;return K!=null&&(K=K.thumbnail,K!=null&&K.thumbnails!=null&&K.thumbnails.length!=0&&K.thumbnails[0].width!=null&&K.thumbnails[0].height!=null)?new g.rt(K.thumbnails[0].width||0,K.thumbnails[0].height||0):new g.rt(0,0)}; Asp=function(K,W){var U,h,m,S;return g.r(function(f){if(f.j==1)return U={startTime:(0,g.AI)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.T(f,ZP(W),2);if(f.j!=3)return h=f.X,m=Object.assign({},K,{options:JSON.parse(JSON.stringify(K.options)),interface:g.TA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.T(f,g.X0(h,"LogsRequestsStore",m),3);S=f.X;U.ticks.tc=(0,g.AI)();N6Y(U);return f.return(S)})}; R4=function(){this.mappings=new Rks}; bZY=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"applicationvideodatachange",function(U,h){h=h.clipConfig;U==="dataloaded"&&h&&h.startTimeMs!=null&&h.endTimeMs!=null&&W.api.setLoopRange({startTimeMs:Math.floor(Number(h.startTimeMs)),endTimeMs:Math.floor(Number(h.endTimeMs)),postId:h.postId,type:"clips"})})}; ME=function(){g.p.call(this);this.j=new yx(5,null);g.k(this,this.j);this.X=new yx(15,null);g.k(this,this.X)}; a4=function(K,W,U,h,m,S,f){g.p.call(this);this.callback=K;this.hS=W;this.dk=U;this.Hl=h;this.on=m;this.lZ=S;this.Xx=f;this.l5=!0;this.wG=!1}; g.SA=function(K,W){this.x=K!==void 0?K:0;this.y=W!==void 0?W:0}; qjL=function(){YE.instance||(YE.instance=new YE);return YE.instance}; PK=function(K,W){K.actionButtons.includes(W)||(K.actionButtons.push(W),K.updateValue("buttons",K.actionButtons))}; y8=function(){g.p.call(this);this.X=[];this.j=[];var K=g.vB("yt.gcf.config.hotUpdateCallbacks");K?(this.X=[].concat(g.z4(K)),this.j=K):(this.j=[],g.Vk("yt.gcf.config.hotUpdateCallbacks",this.j))}; pI=function(K){var W,U=(W=K.config)==null?void 0:W.adPlacementConfig;K=K.renderer;return!(!U||U.kind==null||!K)}; vAC=function(K,W){switch(K){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return W(K),8}}; yss=function(K,W,U,h){h=h===void 0?{}:h;K.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return mQ(Ij,function(m){var S=typeof m[4]==="boolean"&&m[4]==!!h,f=g.SG(m[4])&&g.SG(h)&&g.TD(m[4],h);return!!m.length&&m[0]==K&&m[1]==W&&m[2]==U&&(S||f)})}; MwL=function(K,W,U,h){h=h===void 0?null:h;var m=g.k$("SCRIPT");m.id=W;m.onload=function(){U&&setTimeout(U,0)}; m.onreadystatechange=function(){switch(m.readyState){case "loaded":case "complete":m.onload()}}; h&&m.setAttribute("nonce",h);g.sq(m,typeof K==="string"?g.o4(K):K);K=document.getElementsByTagName("head")[0]||document.body;K.insertBefore(m,K.firstChild);return m}; as=function(K,W,U,h,m,S){var f={format:"RAW"},G={};if(wa(K)&&Vn()){var I=g.TA("EOM_VISITOR_DATA");I?G["X-Goog-EOM-Visitor-Id"]=I:h?G["X-Goog-Visitor-Id"]=h:g.TA("VISITOR_DATA")&&(G["X-Goog-Visitor-Id"]=g.TA("VISITOR_DATA"));U&&(G["X-Goog-PageId"]=U);(h=W.DA)&&!T4(W)&&(G["X-Goog-AuthUser"]=h);m&&(G.Authorization="Bearer "+m);W.L("enable_datasync_id_header_in_web_vss_pings")&&W.SD&&W.datasyncId&&(G["X-YouTube-DataSync-Id"]=W.datasyncId);if(W.L("enable_rollout_token_header")){var d,J,e=(d=g.TA("INNERTUBE_CONTEXT"))== null?void 0:(J=d.client)==null?void 0:J.rolloutToken;e&&(G["X-YouTube-Rollout-Token"]=e)}I||G["X-Goog-Visitor-Id"]||m||U||h?f.withCredentials=!0:W.L("html5_send_cpn_with_options")&&Pws.test(K)&&(f.withCredentials=!0)}Object.keys(G).length>0&&(f.headers=G);S&&(f.onFinish=S);return Object.keys(f).length>1?f:null}; pis=function(K,W,U,h,m){m=m?m:Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER");U=new yW(K.j,U);var S=[new M$(K.j,m)];K=[new pi(K.j,W),new PM(K.j,m)];return{slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:S,slotExpirationTriggers:K,wk:"core",clientMetadata:new Zi([new xx(h({slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:U,slotFulfillmentTriggers:S,slotExpirationTriggers:K}))])}}; opp=function(K,W){var U;W===1?U=K.D.L("delhi_modern_web_player_icons")?{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:TM():U=K.X;K.Ns=W;if(K.D.L("delhi_modern_web_player_icons"))K.X.yH("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-W+") translate(-18,-12)")),K.X.yH("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(K.Y-W+") translate(-22, -12)"));else{for(var h=20*W,m=0;m=0&&(U.element.style.width=W+"px")}; yLz=function(K,W){return g.dG(K.X,function(U){return U.oN()==2&&U.nf==W})}; XiF=function(K,W){var U=Ub(cY,W);U||(U=eu(K,W,"h",-1));return U}; uo=function(K){var W=K.isContentForward&&!K.UN();g.JM(K.badge.element,"ytp-suggested-action-badge-preview-collapsed",W&&K.j);g.JM(K.badge.element,"ytp-suggested-action-badge-preview-expanded",W&&K.X)}; Jg=function(){try{var K=window.navigator;if(K.getAutoplayPolicy&&typeof K.getAutoplayPolicy==="function"){var W=document.getElementsByClassName(g.EW.D3A);var U=W.length>0&&W[0]?K.getAutoplayPolicy(W[0]):K.getAutoplayPolicy("mediaelement");if(vpC[U])return vpC[U]}}catch(h){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Vx=function(K,W,U,h,m){m=m===void 0?!1:m;this.data=K;this.offset=W;this.size=U;this.type=h;this.j=(this.X=m)?0:8;this.dataOffset=this.offset+this.j}; qhp=function(K){for(var W=0,U=0;U=400&&G.status<500)?G.json().then(d,function(){d(null)}):d(null)}}).catch(function(){W.onError&&W.onError.call(m,{},{})}); K=W.timeout||0;W.onFetchTimeout&&K>0&&(f=g.FE(function(){S||(S=!0,g.qE(f),W.onFetchTimeout.call(W.context||g.qs))},K))}else g.ka(K,W)}; Odz=function(K,W,U,h,m){try{var S,f=W===((S=K.AK)==null?void 0:S.j)?K.audioTrack:K.videoTrack;if(K.policy.JK&&(h==null?0:h.xM())){if((h==null?void 0:h.jV)>1)return 6;f.hK=new g.QC(function(){var G=OB(f);K.qs()||G==null||!G.isLocked?K.iX.V().G9()&&K.rk("eosl",{delayA:G==null?void 0:G.info.m6()}):hjR(f)?(K.iX.V().G9()&&K.rk("eosl",{dunlock:G==null?void 0:G.info.m6()}),cJ(K,f===K.audioTrack)):(K.rk("nue",{ls:G.info.m6()}),G.info.jV+=1,K.AK&&K.QY())},1E4,K); K.iX.V().G9()&&K.rk("eosl",{delayS:h.m6()});f.hK.start()}K.policy.Gy&&(h==null?void 0:h.Wp)instanceof xc&&h.xM()&&K.rk("poseos",{itag:h.Wp.info.itag,seg:h.kx,lseg:h.Wp.index.Rn(),es:h.Wp.index.N});W.appendBuffer(U,h,m)}catch(G){if(G instanceof DOMException){if(G.code===11)return 2;if(G.code===12)return 5;if(G.code===22||G.message.indexOf("Not enough storage")===0)return W=Object.assign({name:"QuotaExceededError",buffered:fc(W.Nb()).replace(/,/g,"_"),vheap:CI(K.videoTrack),aheap:CI(K.audioTrack),message:g.ll(G.message, 3),track:K.AK?W===K.AK.X?"v":"a":"u"},C1s()),K.handleError("player.exception",W),1;g.wG(G)}return 4}return K.AK.CC()?3:0}; LI=function(K,W,U,h){hW.call(this,K,W,U,h,"ytp-video-ad-top-bar-title","ad-title")}; SqD=function(K,W,U){U=U===void 0?null:U;var h=Kj_(typeof K==="string"?K:K.toString()),m=document.getElementById(h),S=m&&ReL(m),f=m&&!S;S?W&&W():(W&&(S=g.BV(h,W),W=""+g.NK(W),jzs[W]=S),f||(m=MwL(K,h,function(){ReL(m)||(UqF(m),g.KH(h),g.FE(function(){mmp(h)},0))},U)))}; fms=function(K){g.hc("always_send_and_write")&&(K.writeThenSend=!1)}; g.WH=function(){}; vE=function(K){var W=x4();K=W?W.createScriptURL(K):K;return new ob(K)}; h6s=function(K){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(K.length===1)return K[0];var U=tcF[W];if(U){U=new RegExp(U);for(var h=g.z(K),m=h.next();!m.done;m=h.next())if(m=m.value,U.exec(m))return m}var S=[];Object.entries(tcF).forEach(function(f){var G=g.z(f);f=G.next().value;G=G.next().value;W!==f&&S.push(G)}); U=new RegExp(S.join("|"));K.sort(function(f,G){return f.length-G.length}); h=g.z(K);for(m=h.next();!m.done;m=h.next())if(m=m.value,!U.exec(m))return m;return K[0]}; WxL=function(K,W){if(K.disable)return new kR;W=W?o6Y(W):[];K={OP:K.OP,sZ:K.hj,p9:K.lOU,D4:K.D4,VZ:K.VZ,gz:K.gz};W=W===void 0?[]:W;return new UG(K,W)}; GMR=function(K){var W=lF(K.j)>>>0;return aRp(K.j,W)}; Im_=function(K){var W=K.Dg;K=K.videoData;var U=h2(W,K);W.L("html5_disable_client_autonav_cap_for_onesie")||U.compose(j1(W,K));return U}; g.z=function(K){var W=typeof Symbol!="undefined"&&Symbol.iterator&&K[Symbol.iterator];if(W)return W.call(K);if(typeof K.length=="number")return{next:wyL(K)};throw Error(String(K)+" is not an iterable or ArrayLike");}; dmL=function(K,W,U,h,m,S,f){var G=Zs(K.X.get(),W);return Q2(K,G,W,new Sk(K.j,m,["normal"]),[new pi(K.j,U),new PM(K.j,G),new Sk(K.j,h,["error"])],S,f)}; J1s=function(K,W,U,h,m){var S=Zs(K.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");h=[new mG({getAdBreakUrl:h.getAdBreakUrl,Wv:0,y3:0}),new S1(!0)];K=W.pauseDurationMs?W.lactThresholdMs?{slotId:S,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new mx(K.j,S),slotFulfillmentTriggers:[new MWY(K.j)],slotExpirationTriggers:[new pi(K.j,m),new PM(K.j,S)],wk:"core",clientMetadata:new Zi(h),adSlotLoggingData:U}:new v("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new v("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return K instanceof v?K:[K]}; Vq=function(K,W,U){this.j=W;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=U||K(this.triggerType)}; ejY=function(K){return{lz:fH(K,2),videoId:fz(K,3),S4:L_(K,4)}}; EP2=function(K){sM=K}; Qr=function(K,W){yFs(W);this.j=K;if(K!=null&&K.length===0)throw Error("ByteString should be constructed with non-empty values");}; BU$=function(K){if(K.N)if(K.W==="AD_PLACEMENT_KIND_START"&&K.actionType==="video_to_ad")t2("video_to_ad");else{var W={adBreakType:ma(K.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:K.videoStreamType};K.actionType==="ad_to_video"?(K.contentCpn&&(W.targetCpn=K.contentCpn),K.videoId&&(W.targetVideoId=K.videoId)):(K.adCpn&&(W.targetCpn=K.adCpn),K.adVideoId&&(W.targetVideoId=K.adVideoId));K.adFormat&&(W.adType=K.adFormat);K.contentCpn&& (W.clientPlaybackNonce=K.contentCpn);K.videoId&&(W.videoId=K.videoId);K.adCpn&&(W.adClientPlaybackNonce=K.adCpn);K.adVideoId&&(W.adVideoId=K.adVideoId);g.y2(W,K.actionType);K.D.V().experiments.Rk("html5_ads_csi_qoes")&&(W=K.D.Da(K.actionType==="ad_to_video"?1:2),W=(0,g.AI)()-1E3*W,G8("qoes",W,K.actionType))}}; g.J2=function(K,W){g.GW.call(this,{T:"div",Z:"ytp-progress-bar-container",B:{"aria-disabled":"true"},K:[{T:"div",Hp:["ytp-heat-map-container"],K:[{T:"div",Z:"ytp-heat-map-edu"}]},{T:"div",Hp:["ytp-progress-bar"],B:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{T:"div",Z:"ytp-chapters-container"},{T:"div",Z:"ytp-timed-markers-container"},{T:"div",Z:"ytp-clip-start-exclude"}, {T:"div",Z:"ytp-clip-end-exclude"},{T:"div",Z:"ytp-scrubber-container",K:[{T:"div",Hp:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{T:"div",Z:"ytp-scrubber-pull-indicator"},{T:"img",Hp:["ytp-decorated-scrubber-button"]}]}]}]},{T:"div",Hp:["ytp-fine-scrubbing-container"],K:[{T:"div",Z:"ytp-fine-scrubbing-edu"}]},{T:"div",Z:"ytp-bound-time-left",bX:"{{boundTimeLeft}}"},{T:"div",Z:"ytp-bound-time-right",bX:"{{boundTimeRight}}"},{T:"div",Z:"ytp-clip-start",B:{title:"{{clipstarttitle}}"},bX:"{{clipstarticon}}"}, {T:"div",Z:"ytp-clip-end",B:{title:"{{clipendtitle}}"},bX:"{{clipendicon}}"}]});this.api=K;this.VA=!1;this.u5=this.NN=this.Ik=this.Ns=this.G=this.iK=0;this.Dp=null;this.rS=!1;this.Bp={};this.oW={};this.clipEnd=Infinity;this.Ez=this.yH("ytp-clip-end");this.bG=new g.sR(this.Ez,!0);this.Pl=this.yH("ytp-clip-end-exclude");this.QX=this.yH("ytp-clip-start-exclude");this.clipStart=0;this.XI=this.yH("ytp-clip-start");this.ZX=new g.sR(this.XI,!0);this.Ms=this.W3=0;this.progressBar=this.yH("ytp-progress-bar"); this.q5={};this.JK={};this.gk=this.yH("ytp-chapters-container");this.TI=this.yH("ytp-timed-markers-container");this.j=[];this.Y=[];this.N2={};this.Q6=null;this.eV=-1;this.DO=this.Le=0;this.M9=this.J=null;this.A3=this.yH("ytp-scrubber-button");this.DA=this.yH("ytp-decorated-scrubber-button");this.WS=this.yH("ytp-scrubber-container");this.Qg=new g.SA;this.Ea=0;this.XX=new Dm2;this.N=new Ik(0,0);this.Uz=null;this.U=this.Sz=!1;this.N$=null;this.uX=this.yH("ytp-heat-map-container");this.qb=this.yH("ytp-heat-map-edu"); this.W=[];this.heatMarkersDecorations=[];this.M5=this.yH("ytp-fine-scrubbing-container");this.Ev=this.yH("ytp-fine-scrubbing-edu");this.X=void 0;this.tK=this.pC=this.vp=!1;this.tooltip=W.Fd();this.addOnDisposeCallback(g.tk(this.tooltip,this.Ez));g.k(this,this.bG);this.bG.subscribe("hoverstart",this.H6,this);this.bG.subscribe("hoverend",this.D6,this);this.S(this.Ez,"click",this.wY);this.addOnDisposeCallback(g.tk(this.tooltip,this.XI));g.k(this,this.ZX);this.ZX.subscribe("hoverstart",this.H6,this); this.ZX.subscribe("hoverend",this.D6,this);this.S(this.XI,"click",this.wY);mc$(this);this.S(K,"resize",this.IW);this.S(K,"presentingplayerstatechange",this.q5A);this.S(K,"videodatachange",this.sj);this.S(K,"videoplayerreset",this.kmH);this.S(K,"cuerangesadded",this.cWH);this.S(K,"cuerangesremoved",this.Wsr);this.S(K,"onLoopRangeChange",this.fB);this.S(K,"innertubeCommand",this.onClickCommand);this.S(K,"onRetroModeChanged",this.Y_k);this.S(K,g.$w("timedMarkerCueRange"),this.QuH);this.S(K,"updatemarkervisibility", this.qm);this.S(K,"serverstitchedvideochange",this.x25);this.updateVideoData(K.getVideoData(),!0);this.fB(K.getLoopRange());Os(this)&&!this.X&&(this.X=new dN(this.api,this.tooltip),K=g.Gk(this.element).x||0,this.X.IW(K,this.G),this.X.U5(this.M5),g.k(this,this.X),this.S(this.X.dismissButton,"click",this.m5),this.S(this.X.playButton,"click",this.wx),this.S(this.X.element,"dblclick",this.wx));this.api.createClientVe(this.uX,this,139609,!0);this.api.createClientVe(this.qb,this,140127,!0);this.api.createClientVe(this.Ev, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; YR=function(K,W,U){var h=K.Bt[W];if(h!=null)return h;h=VvR(K,W);var m=mQ(Sh,function(S){return S==W}); K=fbY(K,h,h,U,Hwe[Sh[m]]);W=="fully_viewable_audible_half_duration_impression"&&(K.std="csm");return K}; g.e1=function(K){if(g.r8(K.D.V()))return K.Hd.get("unplugged")}; J1=function(K){K=K===void 0?0:K;return K===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+K}; DA=function(K,W,U){W=r1$(W);if(W!=null){switch(typeof W){case "string":TUp(W)}if(W!=null)switch(kE(K,U,0),typeof W){case "number":K=K.j;Pj(W);EG(K,FJ,u0);break;case "bigint":U=BigInt.asUintN(64,W);U=new BH(Number(U&BigInt(4294967295)),Number(U>>BigInt(32)));EG(K.j,U.X,U.j);break;default:U=TUp(W),EG(K.j,U.X,U.j)}}}; fd=function(K){return g.kQ(function(){return t3("_start",K)})()}; HH=function(K){return K.tagName=="A"&&K.hasAttribute("href")||K.tagName=="INPUT"||K.tagName=="TEXTAREA"||K.tagName=="SELECT"||K.tagName=="BUTTON"?!K.disabled&&(!K.hasAttribute("tabindex")||am$(K)):K.hasAttribute("tabindex")&&am$(K)}; bTY=function(K){if(K.AK)if(K.Lp(),K.AK.U)try{K.C.G9()&&K.rk("rms",{l:"vprms",sr:K.vu(),rs:pL(K.AK)});K.AK.clear();var W;(W=K.mediaElement)!=null&&(W.X=K.AK);K.AK=null}catch(U){W=new g.EB("Error while clearing Media Source in VideoPlayer: "+U.name+", "+U.message),W=XI(W),K.handleError(W),K.Lw()}else K.Lw()}; wm$=function(K,W,U){W=W==null||typeof W==="boolean"?W:typeof W==="number"?!!W:void 0;W!=null&&(kE(K,U,0),K.j.j.push(W?1:0))}; D4=function(K,W){return Number(K.data[W])||0}; rN=function(K){var W;g.lY()?CS()==K&&(W=document):W=K;return W&&(K=xQ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))?(W=K.call(W),W instanceof Promise?W:Promise.resolve()):Promise.resolve()}; t5_=function(K,W){W=W===void 0?0:W;var U=g.TA("client-screen-nonce-store");U||(U={},ec("client-screen-nonce-store",U));U[W]=K}; Qzz=function(K){return K.startsWith("//")?"https:"+K:K}; T8=function(K,W){bY(K,1,W.clientInfo,$mz,3);vT(K,2,W.R7);vT(K,3,W.playbackCookie);vT(K,4,W.aN);if(W.bF)for(var U=0;U0?U.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= W.freePreviewUsageDetails:U.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+W.freePreviewWatchedDuration}}); fZ(K,"setFreePreviewWatchedDuration",function(U){W.freePreviewWatchedDuration=U}); fZ(K,"setFreePreviewUsageDetails",function(U){W.freePreviewUsageDetails=U})}; y1L=function(K){if(K.layout.renderingContent){var W;return(W=Sp(K.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current}return Sp(K.layout.clientMetadata,"metadata_type_player_bytes_callback")}; Mc2=function(K){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=K(this.triggerType)}; cH=function(K,W,U,h,m){vh.call(this,K,{T:"div",Z:"ytp-ad-player-overlay-layout",K:[{T:"div",Z:"ytp-ad-player-overlay-layout__player-card-container"},{T:"div",Z:"ytp-ad-player-overlay-layout__ad-info-container"},{T:"div",Z:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{T:"div",Z:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",W,U,h);this.X=m;this.hK=this.yH("ytp-ad-player-overlay-layout__player-card-container");this.j=this.yH("ytp-ad-player-overlay-layout__ad-info-container"); this.J=this.yH("ytp-ad-player-overlay-layout__skip-or-preview-container");this.uX=this.yH("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Ptp=function(){for(var K=rx.length;K<4;K++){var W=g.k$("VIDEO");W.load();rx.push(new g.HQ(W))}}; pmL=function(K,W,U){var h=[],m=W?156595:151874;K=g.z(K);for(var S=K.next();!S.done;S=K.next()){var f=S.value;S=f.video;f={formatId:f.id,qualityLabel:S.qualityLabel,quality:S.quality,isPlayable:W};if(S=U.get(S.qualityLabel))f.paygatedQualityDetails={paygatedIndicatorText:S.paygatedIndicatorText,endpoint:S.endpoint,veType:m,trackingParams:S.trackingParams};h.push(f)}return h}; oPC=function(K,W){var U=0;K=K.j.j.get(W);if(!K)return 0;K=g.z(K);for(W=K.next();!W.done;W=K.next())W=W.value,W.durationMs!==0&&W.W2!==W.Ua&&U++;return U}; nH=function(K){K.U=(0,g.AI)();K.started=0;K.timedOut=0;K.j=0}; pRR=function(K){if(K.Bp)return["f"];if(g.PP("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var W=["9h","9","h","8"];K.Ea&&W.push("1e");W=W.concat(["(h","(","H","*"]);K.hK&&(W.unshift("1"),W.unshift("1h"));K.fl&&W.unshift("h");K.jV&&(W=(Zwe[K.jV]||[K.jV]).concat(W));return W}; gN=function(K){QI(K)&&K.Mf();bw2(K)&&(Jr(K,"captions",!0),Jr(K,"endscreen"),K.yL(),Jr(K,"creatorendscreen",!0))}; szp=function(K){var W=K.cpn,U=K.i5;K=K.V9;var h=U.UC(),m={};na(U,"cx",(m.xc=W,m.ia=W!==h,m.r=Fg.E3.has(W),m.is=K,m.ctp=gG(W),m))}; XmR=function(K,W,U){U=U===void 0?null:U;var h=h===void 0?K.withCredentials:h;var m={},S=new URL(Vcz(K));U&&(m.Authorization=U);K.sessionIndex&&(m["X-Goog-AuthUser"]=K.sessionIndex,S.searchParams.set("authuser",K.sessionIndex));K.pageId&&(Object.defineProperty(m,"X-Goog-PageId",{value:K.pageId}),S.searchParams.set("pageId",K.pageId));return{url:S.toString(),body:W,jZ:1,requestHeaders:m,requestType:"POST",withCredentials:h,timeoutMillis:K.timeoutMillis}}; vPC=function(){return{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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"}}]}}; qqs=function(K){return ZE(K.slot,K.Xx.get())?new Ul(K):new uB(K)}; g.k1=function(K){var W=K.data.getUint8(K.dataOffset)?20:12;return K.data.getUint32(K.dataOffset+W)}; oHs=function(){var K=document;if("visibilityState"in K)return K.visibilityState;var W=iB+"VisibilityState";if(W in K)return K[W]}; Bw=function(K,W,U){var h=this;this.network=K;this.options=W;this.X=U;this.j=null;if(W.oNs){var m=new g.JW;this.j=m.promise;g.qs.ytAtRC&&K3(function(){var S,f;return g.r(function(G){if(G.j==1){if(!g.qs.ytAtRC)return G.return();S=z8(null);return g.T(G,NS(h,S),2)}f=G.X;g.qs.ytAtRC&&g.qs.ytAtRC(JSON.stringify(f));g.q1(G)})},2); gHR().then(function(S){var f,G,I,d;return g.r(function(J){if(J.j==1)return S.bindInnertubeChallengeFetcher(function(e){return NS(h,z8(e))}),g.T(J,lx(),2); f=J.X;G=S.getLatestChallengeResponse();I=G.challenge;if(!I)throw Error("BGE_MACIL");d={challenge:I,b0:A2(I),Mb:f,bgChallenge:new dU};m.resolve(d);S.registerChallengeFetchedCallback(function(e){e=e.challenge;if(!e)throw Error("BGE_MACR");e={challenge:e,b0:A2(e),Mb:f,bgChallenge:new dU};h.j=Promise.resolve(e)}); g.q1(J)})})}else W.preload&&xmC(this,new Promise(function(S){g.UL(0,function(){S(Rk(h))},0)}))}; g.Km=function(){return g.PP("cobalt")}; g.wd=function(K,W){return Array.prototype.splice.call(K,W,1).length==1}; Fwp=function(K){return Wg(K.jl).concat(Wg(K.IC)).concat(Wg(K.Ga)).concat(Wg(K.Ql)).concat(Wg(K.Wx))}; HJs=function(){this.N=[];this.X=0;this.j=new Pt}; lmp=function(K,W,U){var h=g.gh(K.provider);CtC(K,h,W,0,U);iH(K,h);yD(K)}; LDs=function(K){jD(K,"impression")&&!jD(K,"seek")&&K.jz("audio_audible")}; uSR=function(K){this.itag=K.itag;this.url=K.url;this.codecs=K.codecs;this.width=K.width;this.height=K.height;this.fps=K.fps;this.bitrate=K.bitrate;var W;this.X=((W=K.audioItag)==null?void 0:W.split(","))||[];this.Ty=K.Ty;this.zL=K.zL||"";this.ZO=K.ZO;this.audioChannels=K.audioChannels;this.j=""}; MS=function(K,W){if(W){if(K==="fullwidth")return Infinity;if(K==="fullheight")return 0}return K&&(W=K.match(Ke2))&&(K=Number(W[2]),W=Number(W[1]),!isNaN(K)&&!isNaN(W)&&K>0)?W/K:NaN}; HK=function(K){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(K)}; PH=function(K){K=new DataView(K.buffer,K.byteOffset,K.byteLength);return(K=g.LS(K,0,1836476516))?g.k1(K):NaN}; Rk=function(K,W){W=W===void 0?0:W;var U,h,m,S,f,G,I,d,J,e,E,B;return g.r(function(D){switch(D.j){case 1:U=z8(pa().j);if(g.hc("att_fet_ks"))return g.Bj(D,7),g.T(D,NS(K,U),9);g.Bj(D,4);return g.T(D,Wez(K,U),6);case 6:f=D.X;m=f.z$r;S=f.k5p;h=f;g.xL(D,3);break;case 4:return g.SV(D),g.eI(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),W3(K,864E5),D.return({challenge:"",b0:{},Mb:void 0,bgChallenge:void 0});case 9:h=D.X;if(!h)throw Error("Fetching Attestation challenge returned falsy"); if(!h.challenge)throw Error("Missing Attestation challenge");m=h.challenge;S=A2(m);if("c1a"in S&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.xL(D,3);break;case 7:G=g.SV(D);g.eI(G);W++;if(W>=5)return g.eI(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),W3(K,864E5),D.return({challenge:"",b0:{},Mb:void 0,bgChallenge:void 0});I=1E3*Math.pow(2,W-1)+Math.random()*1E3;return D.return(new Promise(function(a){g.UL(0, function(){a(Rk(K,W))},I)})); case 3:d=Number(S.t)||7200;W3(K,d*1E3);J=void 0;if(!("c1a"in S&&h.bgChallenge)){D.O5(10);break}e=U9p(h.bgChallenge);g.Bj(D,11);return g.T(D,XJF(pa(),e),13);case 13:g.xL(D,12);break;case 11:return E=g.SV(D),g.eI(E),D.return({challenge:m,b0:S,Mb:J,bgChallenge:e});case 12:return g.Bj(D,14),J=new XE({challenge:e,EM:{OP:"aGIf"}}),g.T(D,J.BJ,16);case 16:g.xL(D,10);break;case 14:B=g.SV(D),g.eI(B),J=void 0;case 10:return D.return({challenge:m,b0:S,Mb:J,bgChallenge:e})}})}; pH=function(K,W){var U={},h;for(h in K)U[h]=W.call(void 0,K[h],h,K);return U}; Py2=function(K,W,U){var h,m=((h=U.video)==null?void 0:h.fps)||0;h=W+"_"+m;var S=!!U.audio,f=K.j.get(h);a:{var G=K.j.get(h),I=!!U.audio;if(G){if(I){var d=!1;break a}var J;if(!I&&((d=U.video)==null?0:d.height)&&G.maxHeight&&G.maxHeight>=((J=U.video)==null?void 0:J.height)){d=!1;break a}}d=!0}d&&(d=U.itag,W=f?f:{itag:d,lX:W,yR:S},S?W.numChannels=U.audio.numChannels:(S=U.video,W.maxWidth=S==null?void 0:S.width,W.maxHeight=S==null?void 0:S.height,W.maxFramerate=m,T_(K,a$.BITRATE)&&(W.maxBitrateBps=U.j0* 8),W.Hi=S==null?void 0:S.isHdr()),K.j.set(h,W))}; hzC=function(K,W,U,h){K.j&&K.j.dispose();K.j=new g.QC(K.z9,W,K);g.k(K,K.j);h=sd(h);W=h==null?void 0:h.navigationEndpoint;var m;h=h==null?void 0:(m=h.icon)==null?void 0:m.iconType;var S;m=(S=g.P(W,g.ok))==null?void 0:S.url;K.D.setTrackingParams(K.element,(W==null?void 0:W.clickTrackingParams)||null);W&&!m?(K.innertubeCommand=W,m="#!"):K.innertubeCommand=null;var f;K.X.update({href:(f=m)!=null?f:"#",text:U,icon:h==="MONEY_HAND"?{T:"svg",B:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, K:[{T:"path",B:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:m||K.innertubeCommand?g.Wq():null})}; Mx=function(K,W,U){K.isFocused(W);return W-K.N+U<=K.j[K.X].length}; jip=function(K,W){return K.D.L("delhi_modern_web_player_icons")?vPC():W?{T:"svg",B:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{T:"g",B:{transform:"translate(96, -96) scale(0.8)"},K:[{T:"path",Qt:!0,B:{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"}}]}]}:bk()}; m9s=function(){return yV("Android")&&!(Mh()||Ez()||qx()||yV("Silk"))}; am$=function(K){K=K.tabIndex;return typeof K==="number"&&K>=0&&K<32768}; s8=function(K,W){K=g.z(K.j.values());for(var U=K.next();!U.done;U=K.next()){U=g.z(U.value);for(var h=U.next();!h.done;h=U.next())if(h=h.value,h.layoutId===W)return h}UF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.YD(W)),layoutId:W})}; bB=function(K,W,U,h){var m=g.ZA(K.api.h7());if(m&&m.loaded){var S=K.api.getSubtitlesUserSettings();m=void 0;for(var f=0;f1E3;!(S.length>1)&&S[0].isEmpty()||G||(f.Y=vH(K,m));f.send();K.jV++}},(m-U)*1E3); return K.W=m}; fVD=function(K){var W=K.api.V(),U=K.api.getVideoData();U=g.pw(W)+U.tK;if(!g.HB(W))return U;W={};g.Zm(K.api,"addEmbedsConversionTrackingParams",[W]);return g.sL(U,W)}; tuz=function(K,W){var U=new Map;K=g.z(K);for(var h=K.next();!h.done;h=K.next()){h=h.value;if(h.layoutType==="LAYOUT_TYPE_MEDIA")var m="v";else h.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(m=Sp(h.clientMetadata,"metadata_type_linked_in_player_layout_type"),m=m==="LAYOUT_TYPE_ENDCAP"||m==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":m==="LAYOUT_TYPE_SURVEY"?"s":m==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):m="u";U.set(h.layoutId,m);if(m==="u"){var S={};m=W;h=(S.c=h.layoutId,S);m.D.rk("uct",h)}}K= W.UC();Fg={contentCpn:K,E3:U};h={};U=(h.ct=U.size,h.c=K,h);W.D.rk("acc",U)}; YK=function(K){return!!(2&K)&&!!(4&K)||!!(256&K)}; GzL=function(K,W,U){this.callback=K;this.slot=W;this.dk=U}; gl=function(K,W){W=~W;K?K=~K+1:W+=1;return[K,W]}; E8e=function(K){if(!K)return"";var W=document.createElement("div").style;UjY(K).forEach(function(U){var h=g.$U&&U in IVY?U:U.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");CL(h,"--")||CL(h,"var")||(U=bLp(d9R,K,K.getPropertyValue?"getPropertyValue":"getAttribute",[U])||"",U=J9e(U),U!=null&&bLp(ezY,W,W.setProperty?"setProperty":"setAttribute",[h,U]))}); return W.cssText||""}; Z7p=function(K,W,U){if(K!=null&&K[qS]===x1)return K;if(Array.isArray(K)){var h=K[MX]|0;U=h|U&32|U&2;U!==h&&OF(K,U);return new W(K)}}; lB=function(K,W,U){var h=K.vp;CH||U||K.J==-1||(h+=W-K.J);return h}; D9Y=function(K){return{videoId:fz(K,1),formatId:Wu(K,2,tC),debugInfo:yO(K,3,BO$)}}; g.PP=function(K){var W=g.i5();return W?W.toLowerCase().indexOf(K)>=0:!1}; LH=function(K,W,U){this.client=K;this.requestKey=W;this.j=U}; SzD=function(K,W){g.ZA(K.api.h7())&&K.api.setOption("captions","sampleSubtitles",W)}; mc=function(K,W){var U=K.getUint32(W),h=K.getUint32(W+4);return new Vx(K,W,U,h)}; HcR=function(K,W,U){var h,m=-1,S=W[1],f=0,G=7,I=4;S===0&&(G=138,I=3);W[(U+1)*2+1]=65535;for(h=0;h<=U;h++){var d=S;S=W[(h+1)*2+1];++f2147483647?"0":String(K)}; r9p=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){var h=U.value,m=void 0;U=Number((m=h.playbackRelativePosition)==null?void 0:m.utcTimeMs)/1E3;var S=void 0;m=U+Number((S=h.duration)==null?void 0:S.seconds);S="composite_embargo_"+U;h.onEnter&&(h=h.onEnter.filter(K.U),h.length&&(K.X.set(S,h),K.api.addUtcCueRange(S,U,m,"compositeembargo",!1)))}}; x5$=function(K){return K.info.Wp.LK()&&K.info.kx===K.info.Wp.index.Rn()}; TOY=function(K,W){if(W>=K.j.length)return K.G;for(var U=0,h=0;h0&&K.every(fg)}; GC=function(K,W){var U={type:K.triggerType};W!=null&&(U.category=W);K.triggeringSlotId!=null&&(U.triggerSourceData||(U.triggerSourceData={}),U.triggerSourceData.associatedSlotId=K.triggeringSlotId);K.triggeringLayoutId!=null&&(U.triggerSourceData||(U.triggerSourceData={}),U.triggerSourceData.associatedLayoutId=K.triggeringLayoutId);return U}; ld=function(K,W,U,h,m){var S=K.S0,f=K.videoData;f.X=U;var G=g.Iu(K);U=new JG(f,U,W,G?G.itag:"",h);K.C.experiments.Rk("html5_refactor_sabr_video_format_selection_logging")?(U.videoId=m,K.oJ=U):S.qoe&&tJp(S.qoe,U);m=K.Dg;m.X=0;m.j=0;K.publish("internalvideoformatchange",f,W==="m")}; QiC=function(K,W){if(!K||!K.state||W>5||W<0)return K?za(K,-2):-2;var U=K.state;if(!K.output||!K.input&&K.wg!==0||U.status===666&&W!==4)return za(K,K.C5===0?-5:-2);U.VX=K;var h=U.Gx;U.Gx=W;if(U.status===42)if(U.wrap===2)K.n5=0,BY(U,31),BY(U,139),BY(U,8),U.Uv?(BY(U,(U.Uv.text?1:0)+(U.Uv.fO?2:0)+(U.Uv.extra?4:0)+(U.Uv.name?8:0)+(U.Uv.comment?16:0)),BY(U,U.Uv.time&255),BY(U,U.Uv.time>>8&255),BY(U,U.Uv.time>>16&255),BY(U,U.Uv.time>>24&255),BY(U,U.level===9?2:U.strategy>=2||U.level<2?4:0),BY(U,U.Uv.os& 255),U.Uv.extra&&U.Uv.extra.length&&(BY(U,U.Uv.extra.length&255),BY(U,U.Uv.extra.length>>8&255)),U.Uv.fO&&(K.n5=ya(K.n5,U.mf,U.pending,0)),U.YV=0,U.status=69):(BY(U,0),BY(U,0),BY(U,0),BY(U,0),BY(U,0),BY(U,U.level===9?2:U.strategy>=2||U.level<2?4:0),BY(U,3),U.status=113);else{var m=8+(U.BK-8<<4)<<8;m|=(U.strategy>=2||U.level<2?0:U.level<6?1:U.level===6?2:3)<<6;U.Oz!==0&&(m|=32);U.status=113;dX(U,m+(31-m%31));U.Oz!==0&&(dX(U,K.n5>>>16),dX(U,K.n5&65535));K.n5=1}if(U.status===69)if(U.Uv.extra){for(m= U.pending;U.YV<(U.Uv.extra.length&65535)&&(U.pending!==U.GJ||(U.Uv.fO&&U.pending>m&&(K.n5=ya(K.n5,U.mf,U.pending-m,m)),oq(K),m=U.pending,U.pending!==U.GJ));)BY(U,U.Uv.extra[U.YV]&255),U.YV++;U.Uv.fO&&U.pending>m&&(K.n5=ya(K.n5,U.mf,U.pending-m,m));U.YV===U.Uv.extra.length&&(U.YV=0,U.status=73)}else U.status=73;if(U.status===73)if(U.Uv.name){m=U.pending;do{if(U.pending===U.GJ&&(U.Uv.fO&&U.pending>m&&(K.n5=ya(K.n5,U.mf,U.pending-m,m)),oq(K),m=U.pending,U.pending===U.GJ)){var S=1;break}S=U.YVm&&(K.n5=ya(K.n5,U.mf,U.pending-m,m));S===0&&(U.YV=0,U.status=91)}else U.status=91;if(U.status===91)if(U.Uv.comment){m=U.pending;do{if(U.pending===U.GJ&&(U.Uv.fO&&U.pending>m&&(K.n5=ya(K.n5,U.mf,U.pending-m,m)),oq(K),m=U.pending,U.pending===U.GJ)){S=1;break}S=U.YVm&&(K.n5=ya(K.n5,U.mf,U.pending-m,m));S===0&&(U.status=103)}else U.status= 103;U.status===103&&(U.Uv.fO?(U.pending+2>U.GJ&&oq(K),U.pending+2<=U.GJ&&(BY(U,K.n5&255),BY(U,K.n5>>8&255),K.n5=0,U.status=113)):U.status=113);if(U.pending!==0){if(oq(K),K.C5===0)return U.Gx=-1,0}else if(K.wg===0&&(W<<1)-(W>4?9:0)<=(h<<1)-(h>4?9:0)&&W!==4)return za(K,-5);if(U.status===666&&K.wg!==0)return za(K,-5);if(K.wg!==0||U.Kg!==0||W!==0&&U.status!==666){h=U.strategy===2?oaR(U,W):U.strategy===3?aVD(U,W):Z5[U.level].func(U,W);if(h===3||h===4)U.status=666;if(h===1||h===3)return K.C5===0&&(U.Gx= -1),0;if(h===2&&(W===1?(o_(U,2,3),$1(U,256,Mw),U.Bh===16?(KZ(U,U.sP),U.sP=0,U.Bh=0):U.Bh>=8&&(U.mf[U.pending++]=U.sP&255,U.sP>>=8,U.Bh-=8)):W!==5&&(o_(U,0,3),wkR(U,0,0),W===3&&(Aj(U.head),U.Kg===0&&(U.Oz=0,U.OC=0,U.RQ=0))),oq(K),K.C5===0))return U.Gx=-1,0}if(W!==4)return 0;if(U.wrap<=0)return 1;U.wrap===2?(BY(U,K.n5&255),BY(U,K.n5>>8&255),BY(U,K.n5>>16&255),BY(U,K.n5>>24&255),BY(U,K.DR&255),BY(U,K.DR>>8&255),BY(U,K.DR>>16&255),BY(U,K.DR>>24&255)):(dX(U,K.n5>>>16),dX(U,K.n5&65535));oq(K);U.wrap>0&& (U.wrap=-U.wrap);return U.pending!==0?0:1}; J5=function(K){return Sp(K.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; $9C=function(K,W,U,h,m){var S,f,G,I,d,J,e,E,B,D,a,Q,u;g.r(function(O){switch(O.j){case 1:S=!!W.scrubReferrer;f=g.eK(W.baseUrl,YXD(U,S,h));G={};if(!W.headers){O.O5(2);break}I=K.W();if(!I.j){d=I.getValue();O.O5(3);break}return g.T(O,I.j,4);case 4:d=O.X;case 3:J=d;e=g.z(W.headers);for(E=e.next();!E.done;E=e.next())switch(B=E.value,B.headerType){case "VISITOR_ID":g.TA("VISITOR_DATA")&&(G["X-Goog-Visitor-Id"]=g.TA("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.TA("EOM_VISITOR_DATA")&&(G["X-Goog-EOM-Visitor-Id"]= g.TA("EOM_VISITOR_DATA"));break;case "USER_AUTH":J&&(G.Authorization="Bearer "+J);break;case "PLUS_PAGE_ID":(D=K.U())&&(G["X-Goog-PageId"]=D);break;case "AUTH_USER":a=K.j();!J&&a&&(G["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":if(Q=void 0,(Q=K.N())==null?0:Q.Rk("enable_datasync_id_header_in_web_vss_pings"))u=K.X(),wa(f)&&g.TA("LOGGED_IN")&&u&&(G["X-YouTube-DataSync-Id"]=u)}"X-Goog-EOM-Visitor-Id"in G&&"X-Goog-Visitor-Id"in G&&delete G["X-Goog-Visitor-Id"];case 2:g.Qu(f,void 0,S,Object.keys(G).length!== 0?G:void 0,"",!0,m),g.q1(O)}})}; g.Es=function(K,W,U,h,m){function S(){} m=m===void 0?{xN:{identity:VX}}:m;var f=f===void 0?!0:f;S=Yz_(Oce(U));W.context||(W.context=g.wZ(h,f));return new g.X3(function(G){var I,d,J,e,E;return g.r(function(B){if(B.j==1)return I=$$(U),d=wa(I)?"same-origin":"cors",K.j.wF?(J=LyF(K,m,d),B.O5(2)):g.T(B,KU2(K,m,d),3);B.j!=2&&(J=B.X);e=c9D($$(U));E={input:e,fu:EQ(e),jI:W,config:m};G(WUs(K,E,J,S));g.q1(B)})})}; n8C=function(){var K=Fy(1E3,"NO_BID");return g.Bz(paD([XYL(),K]).Df(vQ2),function(){K.cancel()})}; Hz=function(K){return Kf(K.adLayoutMetadata)?(K=g.P(K.renderingContent,Dj))&&K.pings?!0:!1:!1}; g8p=function(K,W,U){return K instanceof LH?CSC(K,U,W,1):K.V2(U)}; rX=function(K){g.y.call(this,{T:"div",Z:"ytp-shorts-title-channel",K:[{T:"a",Z:"ytp-shorts-title-channel-logo",B:{href:"{{channelLink}}",target:K.V().jV,"aria-label":"{{channelLogoLabel}}"}},{T:"div",Z:"ytp-shorts-title-expanded-heading",K:[{T:"div",Z:"ytp-shorts-title-expanded-title",K:[{T:"a",bX:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:K.V().jV,tabIndex:"0"}}]}]}]});var W=this;this.api=K;this.j=this.yH("ytp-shorts-title-channel-logo");this.channelName=this.yH("ytp-shorts-title-expanded-title"); this.subscribeButton=null;K.createClientVe(this.j,this,36925);this.S(this.j,"click",function(U){W.api.logClick(W.j);g.xv(window,fVD(W));U.preventDefault()}); K.createClientVe(this.channelName,this,37220);this.S(this.channelName,"click",function(U){W.api.logClick(W.channelName);g.xv(window,fVD(W));U.preventDefault()}); Fes(this);this.S(K,"videodatachange",this.SV);this.S(K,"videoplayerreset",this.SV);this.SV()}; HO$=function(K){if(K.policy.X8&&K.policy.Pq)for(var W=g.z(K.policy.X8),U=W.next(),h={};!U.done;h={Kz:void 0,Xy:void 0},U=W.next())if(U=g.BO(U.value),h.Kz=+U.clen,h.Xy=+U.csz,h.Kz>0&&h.Xy>0&&K.policy.W===U.docid&&K.j.info.id===U.fmtid&&K.j.info.lastModified===+U.lmt)return K={},K.clen=h.Kz,K.csz=h.Xy,K.ck=U.ck,K.civ=U.civ,K}; Qk=function(K,W,U){this.N=K;this.tK=U===void 0?"na":U;this.U=[];this.isInitialized=!1;this.W=new sT(-1,!0,this);this.j=this;this.J=W;this.Ms=this.jV=!1;this.hK="uk";this.DA=!1;this.G=!0}; g.u4e=function(K){for(var W in K)delete K[W]}; kq=function(){eo.apply(this,arguments)}; TC=function(K){return kzF[K]||"LATENCY_ACTION_UNKNOWN"}; ic$=function(K,W){K.N[W]||(K.N[W]=new au);return K.N[W]}; Qy=function(K,W){K.N||K.Ms||wX(K,K.Rw);var U=W.VL,h=W.SF;if(h.cpn===K.Rw)K.bZ({igtranssame:1,enter:h.cpn,exit:U.cpn});else{var m=K.Ms,S=!!K.N;K.N="";var f=W.AP,G=U.playerType===2?U.Ua/1E3+U.videoData.Qg:K.H0().videoData.Qg;K.api.L("html5_ssdai_enable_media_end_cue_range")&&(S||m||U.playerType!==2?(m||S)&&K.bZ({mecr:0,seek:m,skip:S}):K.api.d2(U.cpn));if(U.playerType===2&&h.playerType===2)S?K.bZ({igtransskip:1,enter:h.cpn,exit:U.cpn,seek:m,skip:K.N}):OYC(K,U,h,G,f,m,S);else{K.Rw=h.cpn;K.FO(h.cpn,h.startTimeSecs|| f);W=W.i_m;if(U.playerType===1&&h.playerType===2){K.Bx=0;Y8C(K,h);var I=j_(K,"c2a",h);K.bZ(I);K.aU++}else if(U.playerType===2&&h.playerType===1){K.api.publish("serverstitchedvideochange");I=j_(K,"a2c");K.bZ(I);K.aU=0;K.Bx=G;I=U.cpn;var d=K.Bx;if(I!==K.playback.fC()){var J=K.DA.get(I);J?J.j=d:K.bZ({nop_e:I})}K.Bf(U.zS)}K.playback.pG(U,h,G,f,m,S,W)}xBL(K)}}; zzF=function(K,W){this.j=K;this.Xx=W}; yN=function(K,W,U){if(K.beforeContentVideoIdStartedTrigger)K=K.beforeContentVideoIdStartedTrigger?new mY($o,W,K.id):new v("Not able to create BeforeContentVideoIdStartedTrigger");else{if(K.layoutIdExitedTrigger){var h;W=(h=K.layoutIdExitedTrigger)!=null&&h.triggeringLayoutId?new op($o,K.layoutIdExitedTrigger.triggeringLayoutId,K.id):new v("Not able to create LayoutIdExitedTrigger")}else{if(K.layoutExitedForReasonTrigger){var m,S;((m=K.layoutExitedForReasonTrigger)==null?0:m.triggeringLayoutId)&&((S= K.layoutExitedForReasonTrigger)==null?0:S.layoutExitReason)?(W=NOC(K.layoutExitedForReasonTrigger.layoutExitReason),K=W instanceof v?W:new Sk($o,K.layoutExitedForReasonTrigger.triggeringLayoutId,[W],K.id)):K=new v("Not able to create LayoutIdExitedForReasonTrigger")}else{if(K.onLayoutSelfExitRequestedTrigger){var f;W=(f=K.onLayoutSelfExitRequestedTrigger)!=null&&f.triggeringLayoutId?new F0($o,K.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,K.id):new v("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(K.onNewPlaybackAfterContentVideoIdTrigger)K= K.onNewPlaybackAfterContentVideoIdTrigger?new pi($o,W,K.id):new v("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(K.skipRequestedTrigger){var G;W=(G=K.skipRequestedTrigger)!=null&&G.triggeringLayoutId?new uq($o,K.skipRequestedTrigger.triggeringLayoutId,K.id):new v("Not able to create SkipRequestedTrigger")}else if(K.slotIdEnteredTrigger){var I;W=(I=K.slotIdEnteredTrigger)!=null&&I.triggeringSlotId?new M$($o,K.slotIdEnteredTrigger.triggeringSlotId,K.id):new v("Not able to create SlotIdEnteredTrigger")}else if(K.slotIdExitedTrigger){var d; W=(d=K.slotIdExitedTrigger)!=null&&d.triggeringSlotId?new PM($o,K.slotIdExitedTrigger.triggeringSlotId,K.id):new v("Not able to create SkipRequestedTrigger")}else if(K.surveySubmittedTrigger){var J;W=(J=K.surveySubmittedTrigger)!=null&&J.triggeringLayoutId?new Nq($o,K.surveySubmittedTrigger.triggeringLayoutId,K.id):new v("Not able to create SurveySubmittedTrigger")}else{if(K.mediaResumedTrigger)K=K.mediaResumedTrigger&&K.id?new A9p(K.id):new v("Not able to create MediaResumedTrigger");else{if(K.closeRequestedTrigger){var e; W=(e=K.closeRequestedTrigger)!=null&&e.triggeringLayoutId?new Vq($o,K.closeRequestedTrigger.triggeringLayoutId,K.id):new v("Not able to create CloseRequestedTrigger")}else if(K.slotIdScheduledTrigger){var E;W=(E=K.slotIdScheduledTrigger)!=null&&E.triggeringSlotId?new mx($o,K.slotIdScheduledTrigger.triggeringSlotId,K.id):new v("Not able to create SlotIdScheduledTrigger")}else{if(K.mediaTimeRangeTrigger){var B;h=Number((B=K.mediaTimeRangeTrigger)==null?void 0:B.offsetStartMilliseconds);var D;f=Number((D= K.mediaTimeRangeTrigger)==null?void 0:D.offsetEndMilliseconds);isFinite(h)&&isFinite(f)?(D=f,D===-1&&(D=U),U=h>D?new v("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:h,offsetEndMs:D},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",D===U&&h-500<=D):new Yo(h,D),K=U instanceof v?U:new tQ($o,W,U,!1,K.id)):K=new v("Not able to create MediaTimeRangeTrigger")}else if(K.contentVideoIdEndedTrigger)K=K.contentVideoIdEndedTrigger?new OQ($o,W,!1,K.id):new v("Not able to create ContentVideoIdEndedTrigger"); else{if(K.layoutIdEnteredTrigger){var a;W=(a=K.layoutIdEnteredTrigger)!=null&&a.triggeringLayoutId?new yW($o,K.layoutIdEnteredTrigger.triggeringLayoutId,K.id):new v("Not able to create LayoutIdEnteredTrigger")}else if(K.timeRelativeToLayoutEnterTrigger){var Q;W=(Q=K.timeRelativeToLayoutEnterTrigger)!=null&&Q.triggeringLayoutId?new O6($o,Number(K.timeRelativeToLayoutEnterTrigger.durationMs),K.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,K.id):new v("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(K.onDifferentLayoutIdEnteredTrigger){var u; W=(u=K.onDifferentLayoutIdEnteredTrigger)!=null&&u.triggeringLayoutId&&K.onDifferentLayoutIdEnteredTrigger.slotType&&K.onDifferentLayoutIdEnteredTrigger.layoutType?new mX($o,K.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,K.onDifferentLayoutIdEnteredTrigger.slotType,K.onDifferentLayoutIdEnteredTrigger.layoutType,K.id):new v("Not able to create CloseRequestedTrigger")}else{if(K.liveStreamBreakStartedTrigger)K=K.liveStreamBreakStartedTrigger&&K.id?new cz($o,K.id):new v("Not able to create LiveStreamBreakStartedTrigger"); else if(K.liveStreamBreakEndedTrigger)K=K.liveStreamBreakEndedTrigger&&K.id?new ng($o,K.id):new v("Not able to create LiveStreamBreakEndedTrigger");else{if(K.liveStreamBreakScheduledDurationMatchedTrigger){var O;W=(O=K.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&O.breakDurationMs?new Vr(Number(K.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,K.id):new v("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(K.liveStreamBreakScheduledDurationNotMatchedTrigger){var N; W=(N=K.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&N.breakDurationMs?new Xb(Number(K.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,K.id):new v("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(K.newSlotScheduledWithBreakDurationTrigger){var A;W=(A=K.newSlotScheduledWithBreakDurationTrigger)!=null&&A.breakDurationMs?new vY(Number(K.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,K.id):new v("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else W= K.prefetchCacheExpiredTrigger?new gX($o,K.id):new v("Not able to convert an AdsControlflowTrigger.");K=W}W=K}K=W}W=K}K=W}W=K}K=W}W=K}K=W}W=K}K=W}return K}; F2=function(K){return K.j||K.Xx.get().D.V().L("html5_force_debug_data_for_client_tmp_logs")}; g.eb=function(K,W){bY(K,1,W.Z5,ua,3);vT(K,3,W.videoPlaybackUstreamerConfig);bY(K,5,W.cJ,T8,3);bY(K,6,W.Qn,ko,3)}; ia=function(K){if(K.layout.renderingContent){var W;return(W=Sp(K.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current}return Sp(K.layout.clientMetadata,"metadata_type_player_bytes_callback")}; g.jV=function(K,W,U){U=U===void 0?0:U;K=K.v3(W);JSON.stringify(K);return K===void 0?U:Number(K)}; jJ=function(K){VO.call(this,K.Sx,K.ZA,K.TK,K.hS,K.dk,K.au,K.Hl,K.p7,K.slot,K.layout,K.m1,K.oD,K.lZ,K.Xx)}; fDY=function(K){g.y.call(this,{T:"div",Z:"ytp-gated-actions-overlay",K:[{T:"div",Z:"ytp-gated-actions-overlay-background",K:[{T:"div",Z:"ytp-gated-actions-overlay-background-overlay"}]},{T:"button",Hp:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],B:{"aria-label":"Close"},K:[g.LD()]},{T:"div",Z:"ytp-gated-actions-overlay-bar",K:[{T:"div",Z:"ytp-gated-actions-overlay-text-container",K:[{T:"div",Z:"ytp-gated-actions-overlay-title",bX:"{{title}}"},{T:"div",Z:"ytp-gated-actions-overlay-subtitle", bX:"{{subtitle}}"}]},{T:"div",Z:"ytp-gated-actions-overlay-button-container"}]}]});var W=this;this.api=K;this.background=this.yH("ytp-gated-actions-overlay-background");this.X=this.yH("ytp-gated-actions-overlay-button-container");this.j=[];this.S(this.yH("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){W.api.Fx("onCloseMiniplayer")}); this.hide()}; Mm=function(){g.p.apply(this,arguments);this.X=1}; bd=function(K){return K?function(){try{return K.apply(this,arguments)}catch(W){g.wG(W)}}:K}; RzY=function(K){K=g.z(g.dj(K,!0));for(var W=K.next();!W.done;W=K.next())if(M7R(W.value))return!0;return!1}; pN=function(K){this.value=K}; Mu2=function(K,W){bY(K,2,W.Z5,ua,3);bY(K,3,W.innertubeRequest,y9R,3);vT(K,4,W.onesieUstreamerConfig);vT(K,9,W.aN);bY(K,10,W.cJ,T8,3);bY(K,15,W.reloadPlaybackParams,Fce,3)}; PYp=function(K){if(!evR(K))return!1;K=g.P(K.adStart,LQ);return K?fQ(K)?!0:(UF("Invalid LASR with notify"),!1):!1}; lDs=function(K,W,U,h){W={u7:[],ER:W};K=g.z(K);for(var m=K.next();!m.done;m=K.next())if((m=m.value)&&m.renderer!=null){var S=m.renderer;if(!U.D.V().L("html5_enable_vod_lasr_with_notify_pacf")){var f=void 0,G=void 0,I=void 0,d=void 0,J=h;g.P((d=S.sandwichedLinearAdRenderer)==null?void 0:d.adVideoStart,LQ)?(f=g.P((I=S.sandwichedLinearAdRenderer)==null?void 0:I.adVideoStart,LQ),f=qMD(f,J),g.zC(S.sandwichedLinearAdRenderer.adVideoStart,LQ,f)):g.P((G=S.linearAdSequenceRenderer)==null?void 0:G.adStart,LQ)&& (I=g.P((f=S.linearAdSequenceRenderer)==null?void 0:f.adStart,LQ),f=qMD(I,J),g.zC(S.linearAdSequenceRenderer.adStart,LQ,f))}W.u7.push(m)}return W}; mC_=function(K,W,U,h,m,S,f,G,I,d){this.bY=K;this.dk=W;this.zm=U;this.W=h;this.yg=m;this.X=S;this.N=f;this.kd=G;this.Xx=I;this.j=d}; g.Iu=function(K){var W=N4(K);return ru(W)||!K.T7?null:g.dG(K.T7.j.videoInfos,function(U){return W.W(U)})}; cP=function(K,W,U){U=U===void 0?Error():U;var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=K;W+=":";U instanceof Error?(this.message=W+U.message,this.stack=U.stack||""):(this.message=W+String(U),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; g.oz=function(K){var W,U;return!!((W=K.embeddedPlayerConfig)==null?0:(U=W.embeddedPlayerFlags)==null?0:U.enableMusicUx)}; oE=function(K){this.key=K}; h4C=function(K,W,U,h){if(K.policy.U)!h||!K.j&&K.policy.Qg||g.kK(function(){A5(K)}); else{if(K.isSeeking()&&K.targetTime){var m=owC(K,W,U);if(m!==-1){K.videoTrack.W=!1;K.audioTrack.W=!1;K.j=!0;K.X=0;g.kK(function(){K.loader.rk("seekreason",{reason:"behindMinSq",tgt:m});Ru(K,m)}); return}}U?K.videoTrack.uX=!1:K.audioTrack.uX=!1;var S=!K.j;yy(K.videoTrack,K.targetTime)>=0&&yy(K.audioTrack,K.targetTime)>=0&&S?((K.videoTrack.W||K.audioTrack.W)&&K.loader.rk("iterativeSeeking",{status:"done",count:K.seekCount}),K.videoTrack.W=!1,K.audioTrack.W=!1):h&&g.kK(function(){if(K.j||!K.policy.Qg)A5(K);else{var f=W.startTime,G=W.duration;if(!K.policy.U){var I=K.videoTrack.U!==-1&&K.audioTrack.U!==-1,d=!K.videoTrack.uX&&!K.audioTrack.uX;(U?K.videoTrack.W:K.audioTrack.W)&&I&&d&&(K.targetTime>= f&&K.targetTime=K.provider.videoData.An;return!!W}; VSL=function(){return{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}}; ou=function(){this.Y=[];this.J=[];this.j=[];this.uX=[];this.U=[];this.jV=[];this.N=new Map;this.G=new Map;this.X=new Set;this.Ns=new Map}; si$=function(K,W){K.N.some(function(U){var h;return((h=U.ZO)==null?void 0:h.getId())===W}); K.j=W}; Is=function(K){return Vue()[K]}; var TrY=function(K,W){return D6[t[11]](this,16,K,W)}; Xke=function(K,W){var U=!g.sb(K,W);g.JM(K,W,U)}; g.tf=function(K){g.Yv(K.info.Wp.info)||K.info.Wp.info.yh();if(K.N!==-1)return K.N;if(K.j&&v8s(K.j))return K.N=v8s(K.j),K.N;if(g.Yv(K.info.Wp.info)){var W=g.jI(K);for(var U=K.info.Wp.j,h=NaN,m=NaN,S=0;jz(W,S);){var f=mc(W,S);f.type===1936286840?m=f.data.getUint32(f.dataOffset+8):f.type===1836476516?m=g.k1(f):f.type===1952867444&&isNaN(h)&&(h=g.Zj(f));S=Sz(f.type)?S+8:S+f.size}!m&&U&&(m=PH(U));W=h/m}else W=new XF(g.jI(K)),U=K.U?W:new XF(new DataView(K.info.Wp.j.buffer)),h=ba(U),U=W.pos,W.pos=0,eR(W)? EI(W,231)?(h=By(W)*h/1E9,W.pos=U,W=h):(W.pos=U,W=NaN):(W.pos=U,W=NaN);K.N=W||K.info.W;return K.N}; qzL=function(K,W){var U=W.cancelRenderer&&W.cancelRenderer.buttonRenderer||null;U&&(K.j=new fG(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,["ytp-ad-feedback-dialog-close-button"],"button"),g.k(K,K.j),K.j.init(Mq("button"),U,K.macros),K.j.listen("click",K.nD,K),K.j.U5(K.element));W.title&&(U=g.Rb(W.title),K.updateValue("title",U));W.reasonsTitle&&(U=g.Rb(W.reasonsTitle),K.updateValue("reasonsTitle",U));W.reasons&&luz(K,W.reasons);W.cancelLabel&&(U=g.Rb(W.cancelLabel),K.updateValue("cancelLabel", U),g.JD(K.U,"click",function(){return K.nD()})); W.confirmLabel&&(U=g.Rb(W.confirmLabel),K.updateValue("confirmLabel",U),g.JD(K.J,"click",function(){return O$_(K)})); W.undoRenderer&&eLL(K,W.undoRenderer)}; Ums=function(K,W){var U=g.TA("XSRF_FIELD_NAME"),h=g.TA("XSRF_TOKEN"),m=W.postBody||"",S=W.postParams,f=g.TA("XSRF_FIELD_NAME"),G;W.headers&&(G=W.headers["Content-Type"]);W.excludeXsrf||g.Qq(K)&&!W.withCredentials&&g.Qq(K)!==document.location.hostname||W.method!=="POST"||G&&G!=="application/x-www-form-urlencoded"||W.postParams&&W.postParams[f]||(S||(S={}),S[U]=h);(g.hc("ajax_parse_query_data_only_when_filled")&&S&&Object.keys(S).length>0||S)&&typeof m==="string"&&(m=nZ(m),g.Zc(m,S),m=W.postBodyFormat&& W.postBodyFormat==="JSON"?JSON.stringify(m):g.NH(m));S=m||S&&!g.Tb(S);!x9C&&S&&W.method!=="POST"&&(x9C=!0,g.aH(Error("AJAX request with postData should use POST")));return m}; Nx=function(K){this.value=K}; CYF=function(K,W){return W.priority-K.priority}; KMY=function(K,W){var U=Sp(W.clientMetadata,"metadata_type_ad_video_id"),h=Sp(W.clientMetadata,"metadata_type_legacy_info_card_vast_extension");U&&h&&K.JO.get().D.V().Le.add(U,{jF:h});(W=Sp(W.clientMetadata,"metadata_type_sodar_extension_data"))&&lVY(K.E_.get(),W);Lep(K.dk.get(),!1)}; ULC=function(){g.r(function(K){return g.T(K,WMs("LogsDatabaseV2"),0)})}; hGY=function(){for(var K=["metadata_type_invideo_overlay_ad_renderer"],W=g.z(gT()),U=W.next();!U.done;U=W.next())K.push(U.value);return{Xd:K,oR:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Zts=function(K){var W={};K=g.z(K);for(var U=K.next();!U.done;U=K.next()){U=U.value;var h=U.split("=");h.length===2?W[h[0]]=h[1]:W[U]=!0}return W}; Dg=function(K){K.j||(K.j=new Map,K.X=0,K.N&&by(K.N,function(W,U){K.add(ZU(W),U)}))}; fBp=function(K,W){switch(W){case "ad":return Uk(K);case "annotations_module":return K.D.isEmbedsShortsMode()?K=!1:(W=K.D,K=W.V(),W=W.getVideoData(),K=K.N||W.e2||K.controlsType==="3"?!1:K.Le.isEmpty()&&K.playerStyle!=="annotation-editor"&&K.playerStyle!=="live-dashboard"?!!W.r4||!!g.T6(W)||!!g.sQ(W):!0),K;case "asmjs":return vc(K);case "creatorendscreen":return jKz(K);case "embed":return g.HB(K.D.V());case "endscreen":return g.vDz(K);case "heartbeat":return K.BZ();case "kids":return vR(K.D.V());case "remote":return K.D.V().TI; case "miniplayer":return K.D.V().showMiniplayerUiWhenMinimized;case "offline":return K.D.V().Q6;case "captions":return mLC(K);case "unplugged":return g.r8(K.D.V());case "ux":return K.D.V().JK;case "webgl":return SVz(K);case "ypc":return K.VP();default:return g.wG(Error("Module descriptor "+W+" does not match")),!1}}; Go=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D,a,Q,u,O,N,A,Z){this.lZ=K;this.m1=W;this.oD=U;this.ZA=h;this.TK=m;this.dk=S;this.au=f;this.zm=G;this.VB=I;this.K5=d;this.yg=J;this.E_=e;this.hS=E;this.Oa=B;this.Hl=D;this.xm=a;this.kd=Q;this.JO=u;this.Xx=O;this.j=N;this.context=A;this.Pu=Z}; DV=function(K){var W=e8(K,!0);K.pos+=W}; wX=function(K,W){var U=W||K.Rw,h=K.j.Yv({cpn:U});if(h){W=h.videoData;var m,S;U=h.bb||((S=(m=K.X.get(U))==null?void 0:m.start)!=null?S:0)/1E3;K=K.playback.getCurrentTime()-U;W.Qg=K>0?K:0}else K.H0().videoData.Qg=K.playback.getCurrentTime()}; t_L=function(K){K=K.X;return K.cancelAnimationFrame||K.cancelRequestAnimationFrame||K.webkitCancelRequestAnimationFrame||K.mozCancelRequestAnimationFrame||K.oCancelRequestAnimationFrame||K.msCancelRequestAnimationFrame||null}; GDe=function(K,W,U,h){K.N=h;h=W.Ze;var m=W.playerVars,S=W.playerType;K.Y=W;m&&K.api.enqueueVideoByPlayerVars(m,S,U,h)}; jP=function(K){return K.j.vL}; Vy=function(K,W){g.It.call(this,"Auto-translate",0,K,W);this.D=K;this.languages={};K.createClientVe(this.element,this,127301);K.logVisibility(this.element,!0)}; IB_=function(K,W){this.i5=K;this.Xx=W}; dLF=function(K){var W,U,h,m=(W=K.playerResponse)==null?void 0:(U=W.playerConfig)==null?void 0:(h=U.compositeVideoConfig)==null?void 0:h.sourceConfigs,S,f,G;K=(S=K.playerResponse)==null?void 0:(f=S.playerConfig)==null?void 0:(G=f.compositeVideoConfig)==null?void 0:G.defaultActiveSourceVideoId;if(!m||!m.length)return"";K||(K=m[0].videoId||"");m=g.z(m);for(S=m.next();!S.done;S=m.next())if(S=S.value,S.videoId===K&&S.audioTracks)for(S=g.z(S.audioTracks),f=S.next();!f.done;f=S.next())if(f=f.value,f.isDefaultForSource)return f.id|| "";return""}; X2=function(K){for(var W=K.length;--W>=0;)K[W]=0}; Bw2=function(K){switch(K){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:fl(K,"unknown result type")}}; vz=function(){}; q4=function(K,W,U,h,m){vh.call(this,K,{T:"span",Z:m?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",W,U,h);this.X=m;this.adBadgeText=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);this.adBadgeText.U5(this.element);g.k(this,this.adBadgeText);m?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),iy&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; xc=function(K,W,U,h,m,S){S=S===void 0?0:S;xo.call(this,K,W,h,void 0);this.U=U;this.GI=S;this.index=m||new g.lS}; zY=function(K){return K.L("web_settings_menu_surface_custom_playback")}; uq=function(K,W,U){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=U||K(this.triggerType)}; g.sR=function(K,W,U,h,m){W=W===void 0?!1:W;h=h===void 0?!1:h;m=m===void 0?!1:m;g.GP.call(this);this.jV=m;this.Y=!1;this.W=new jg(this);this.U=this.G=null;this.N=this.X=!1;g.k(this,this.W);this.target=K;this.j=W;this.J=U||K;this.Y=h;W&&(g.$U&&this.target.setAttribute("draggable","true"),m||(this.target.style.touchAction="none"));he(this)}; Jez=function(K){var W;return!((W=K.Tm.getWebPlayerContextConfig())==null||!W.enableProximaLowLatency)}; la=function(K){var W=new wV(K);Cg.call(this,K,W,"Custom");g.k(this,W)}; lW=function(){ou.instance||(ou.instance=new ou);return ou.instance}; wl=function(K){K=K===void 0?document:K;var W,U;K=(U=(W=K).querySelector)==null?void 0:U.call(W,"script[nonce]");return K==null?"":K.nonce||K.getAttribute("nonce")||""}; Lg=function(K){this.value=K}; eGs=function(K,W,U){if(U>=K.j.length)return!1;var h=K.G-tl(K)*K.Le;return Math.abs(W-K.j[U].startTime/1E3)/K.N.j*h<4}; E3R=function(K,W,U,h){h=h===void 0?1:h;U>=0&&(W in K.j||(K.j[W]=new Kn),K.j[W].JB(U,h))}; Ba_=function(K){var W={};var U=g.hi()-K.U;W=(W.ptlt=U,W);(U=K.X)&&(W.pnk=U);(U=K.N)&&(W.pnc=U);(U=K.W)&&(W.pnmm=U);(K=K.j)&&(W.pns=K);return W}; fC=function(K,W){if(Error.captureStackTrace)Error.captureStackTrace(this,fC);else{var U=Error().stack;U&&(this.stack=U)}K&&(this.message=String(K));W!==void 0&&(this.cause=W)}; hx=function(K){return K.length?Wv?Wv.decode(K):String.fromCharCode.apply(null,K):""}; DLe=function(K){K.j>=0||(K.provider.iX.getVisibilityState()===3?K.U=!0:(K.j=g.gh(K.provider),K.delay.start()))}; Bp=function(K){DF(K);K.T7=null;var W=HNs(K.C,K.videoData,K.Dw());K.Sm=W;K.Sm.then(function(U){rep(K,U)},function(U){K.qs()||(U=XI(U),K.visibility.isBackground()?(eG(K,"vp_none_avail"),K.Sm=null,K.X4.reset()):(K.X4.finished=!0,K.jB(U.errorCode,U.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",GR(U.details))))}); return W}; U7=function(K,W,U){if(!K.Jn){W=Math.max(W,.01);var h=K.YF?Math.max(W,U/K.YF):W,m=K.dH.X.N;m&&(h=W,K.YF&&(h=Math.max(W,U/K.YF*m)));rT(K.dH,W,U,h)}}; O9=function(K,W,U,h,m,S,f,G,I,d){this.W=K;this.X=W;this.j=U;this.Xx=h;this.uB=m;this.N=S;this.dk=f;this.J3=G;this.wm=I;this.loadPolicy=d===void 0?1:d}; hw=function(K,W){this.dH=K;this.policy=W;this.playbackRate=1}; g.P0R=function(K,W,U){Dt2(K,W,U,null)||g.kK(g.jt(W,K))}; g.eW=function(K){var W=g.wZ(),U=W.client||{};if(K.forcedExperiments){var h=K.forcedExperiments.split(","),m=[];h=g.z(h);for(var S=h.next();!S.done;S=h.next())m.push(Number(S.value));U.experimentIds=m}if(m=K.homeGroupInfo)U.homeGroupInfo=JSON.parse(m);if(m=K.getPlayerType())U.playerType=m;if(m=K.j.ctheme)U.theme=m;if(m=K.livingRoomAppMode)U.tvAppInfo=Object.assign({},U.tvAppInfo,{livingRoomAppMode:m});m=K.deviceYear;K.L("html5_propagate_device_year")&&m&&(U.tvAppInfo=Object.assign({},U.tvAppInfo,{deviceYear:m})); if(m=K.livingRoomPoTokenId)U.tvAppInfo=Object.assign({},U.tvAppInfo,{livingRoomPoTokenId:m});W.client=U;m=W.user||{};K.enableSafetyMode&&(m=Object.assign({},m,{enableSafetyMode:!0}));var f;((f=U.tvAppInfo)==null?0:f.usePageidAsHeader)||!K.pageId||(m=Object.assign({},m,{onBehalfOfUser:K.pageId}));W.user=m;return W}; Tas=function(K){g.Pa(K.G);K.G=NaN}; ms=function(K,W,U,h,m){vh.call(this,K,{T:"div",Z:"ytp-ad-survey-player-overlay",K:[{T:"div",Z:"ytp-ad-survey-player-overlay-instream-info"},{T:"div",Z:"ytp-ad-survey-player-overlay-skip-preview-submit",K:[{T:"div",Z:"ytp-ad-survey-player-overlay-skip-or-preview"},{T:"div",Z:"ytp-ad-survey-player-overlay-submit"}]},{T:"div",Z:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",W,U,h);this.W=m;this.X=this.j=null;this.N=this.yH("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.yH("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.yH("ytp-ad-survey-player-overlay-submit");g.k(this,this.W);this.hide()}; g.aBp=function(K,W,U){var h=W.query;W=W.direction;K="openKeyCursor"in IDBObjectStore.prototype?K.j.openKeyCursor(h,W):K.j.openCursor(h,W);return xkR(K).then(function(m){return tN(m,U)})}; St=function(K,W,U){var h=K[MX]|0,m=NR(h),S=Vj(K,U,m);if(S!=null&&S[qS]===x1){if(!WF(S))return $r(S),S.iZ;var f=S.iZ}else Array.isArray(S)&&(f=S);if(f){var G=f[MX]|0;G&2&&(f=cW(f,G))}f=zA(f,W);f!==S&&gd(K,h,U,f,m);return f}; kkY=function(K){var W=K.E4().filter(function(h){return h.namespace==="ad"}); W=g.z(W);for(var U=W.next();!U.done;U=W.next())if(U=U.value,U.start/1E3>K.getCurrentTime())return U.start/1E3;return Infinity}; wqs=function(K,W,U){var h=Sp(W.clientMetadata,"metadata_type_sodar_extension_data");if(h)try{lVY(U,h)}catch(m){UF("Unexpected error when loading Sodar",K,W,{error:m})}}; fn=function(K){var W=K.data.getInt32(K.offset+K.j);K.j+=4;return W}; CFs=function(){try{var K,W;return!!((K=window)==null?0:(W=K.top)==null?0:W.location.href)&&!1}catch(U){return!0}}; JaF=function(K){if(!K)return"";if(/^about:(?:blank|srcdoc)$/.test(K))return window.origin||"";K.indexOf("blob:")===0&&(K=K.substring(5));K=K.split("#")[0].split("?")[0];K=K.toLowerCase();K.indexOf("//")==0&&(K=window.location.protocol+K);/^[\w\-]*:\/\//.test(K)||(K=window.location.href);var W=K.substring(K.indexOf("://")+3),U=W.indexOf("/");U!=-1&&(W=W.substring(0,U));U=K.substring(0,K.indexOf("://"));if(!U)throw Error("URI is missing protocol: "+K);if(U!=="http"&&U!=="https"&&U!=="chrome-extension"&& U!=="moz-extension"&&U!=="file"&&U!=="android-app"&&U!=="chrome-search"&&U!=="chrome-untrusted"&&U!=="chrome"&&U!=="app"&&U!=="devtools")throw Error("Invalid URI scheme in origin: "+U);K="";var h=W.indexOf(":");if(h!=-1){var m=W.substring(h+1);W=W.substring(0,h);if(U==="http"&&m!=="80"||U==="https"&&m!=="443")K=":"+m}return U+"://"+W+K}; m2=function(K){this.iZ=qR(K)}; g.tw=function(K,W,U){if(W instanceof g.SA){var h=W.x;W=W.y}else h=W,W=U;K.style.left=jh(h,!1);K.style.top=jh(W,!1)}; YVp=function(K){if(!Kf(K.adLayoutMetadata))return!1;if(g.P(K.renderingContent,vGp)||g.P(K.renderingContent,Gb))return!0;var W=g.P(K.renderingContent,$F);return g.P(K.renderingContent,IT)||g.P(W==null?void 0:W.sidePanel,QKs)||g.P(W==null?void 0:W.sidePanel,XxR)||g.P(W==null?void 0:W.sidePanel,$L2)?!0:!1}; Gm=function(K,W,U,h){K.qs();W.loggingUrls&&Wqs(K,"loggingUrls",W.loggingUrls,U,h);W=g.z(Object.entries(W));for(var m=W.next();!m.done;m=W.next()){var S=g.z(m.value);m=S.next().value;S=S.next().value;m==="openPopupAction"?K.xm.get().V7("innertubeCommand",{openPopupAction:S}):m==="confirmDialogEndpoint"?K.xm.get().V7("innertubeCommand",{confirmDialogEndpoint:S}):ONp.hasOwnProperty(m)||Wqs(K,m,S,U,h)}}; n3C=function(K){var W,U,h,m,S,f;return g.r(function(G){switch(G.j){case 1:if(K.j)return G.return(pQ());if(!K.U)return W=g.zW("getColdConfig IDB not initialized"),jv(W),G.return(Promise.reject(W));U=d4();h=g.TA("TIME_CREATED_MS");if(!U){m=g.zW("getColdConfig");jv(m);G.O5(2);break}return g.T(G,edp(U),3);case 3:if((S=G.X)&&S.timestamp>h)return Pp(K,S.config),Qg_(K,S.configData),zt(K,S.hashData),G.return(pQ());case 2:QbY(K);if(!(U&&K.j&&K.coldHashData&&K.configData)){G.O5(4);break}return g.T(G,cee(K.j, K.coldHashData,K.configData,U,h),4);case 4:return K.j?G.return(pQ()):(f=new g.EB("Config not available in ytConfig"),jv(f),G.return(Promise.reject(f)))}})}; Iw=function(K,W){K=g.qs[K];return K&&K.prototype?(W=Object.getOwnPropertyDescriptor(K.prototype,W))&&W.get||null:null}; dQ=function(K){K=K||"";var W=EEs();if(W[K])return W[K];var U=XX(),h={timerName:K,info:{},tick:{},span:{},jspbInfo:[]};U.push(h);return W[K]=h}; g.M9=function(K,W){return Jw(K,W)>0}; $x=function(K){jf.call(this,K);var W=this;this.loaded=!1;this.J=0;this.j=!1;this.Y={};this.N=[];this.W=0;this.G=!1;this.events=new g.Te(K);g.k(this,this.events);this.X=new g.Te(K);g.k(this,this.X);this.events.S(K,"modulesCreated",function(){W.JC()&&W.load()}); this.events.S(K,"modulesDestroyed",function(U){var h=W.api.getPresentingPlayerType();switch(U){case 2:case 3:U=h!==1&&!(h===5||h===6||h===7);break;case 4:U=!W.j;break;default:U=!0}U&&W.unload()})}; g3p=function(K){var W=K.E5();if(K.L("html5_disable_loop_range_for_shorts_ads")&&W.getVideoData().isAd()?0:IG(W.getVideoData())&&!W.Fi())W=et(K)*1E3-K.getVideoData().Wf,K.L("html5_gapless_new_slr")?(K=K.P$,E7(K.app,"gaplessshortslooprange"),W=new g.g0(0,W,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(K=K.app.E5())&&K.addCueRange(W)):K.setLoopRange({startTimeMs:0,endTimeMs:W,type:"shortsLoop"})}; MRR=function(K,W,U){var h,m=((h=U.video)==null?void 0:h.fps)||0;h=W+"_"+m;var S=!!U.audio,f={itag:U.itag,lX:W,yR:S};if(S)f.numChannels=U.audio.numChannels;else{var G=U.video;f.maxWidth=G==null?void 0:G.width;f.maxHeight=G==null?void 0:G.height;f.maxFramerate=m;T_(K,a$.BITRATE)&&(f.maxBitrateBps=U.j0*8);f.Hi=G==null?void 0:G.isHdr()}G=K.j.get(h);G?S||(U=Math.max(G.maxWidth||0,G.maxHeight||0)>Math.max(f.maxWidth||0,f.maxHeight||0)?G:f,W={itag:U.itag,lX:W,yR:S,maxWidth:Math.max(G.maxWidth||0,f.maxWidth|| 0),maxHeight:Math.max(G.maxHeight||0,f.maxHeight||0),maxFramerate:m,Hi:U.Hi},T_(K,a$.BITRATE)&&(W.maxBitrateBps=U.maxBitrateBps),K.j.set(h,W)):K.j.set(h,f)}; cee=function(K,W,U,h,m){var S,f,G;return g.r(function(I){switch(I.j){case 1:return S={config:K,hashData:W,configData:U,timestamp:m!==void 0?m:(0,g.AI)()},g.T(I,AR(h),2);case 2:return f=I.X,g.T(I,f.clear("coldConfigStore"),3);case 3:return g.T(I,g.X0(f,"coldConfigStore",S),4);case 4:return G=I.X,I.return(G)}})}; Bv=function(K,W,U,h,m,S){U=U===void 0?!0:U;var f=g.yc(K,{playerType:m});if(!f||(f.getPlayerType()!==2||K.Wo(f))&&!g.aG(f.getVideoData())){var G=K.gH.zz;G?G.seekTo(W,{QG:!U,Db:h,JS:"application",seekSource:S}):(f&&f===K.rH()&&K.Uz&&!vHe(K,W)&&K.setLoopRange(null),K.seekTo(W,U,h,m,S,"_request"))}}; FMY=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){var h=U.value;if(h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.fulfilledLayout)if(U=void 0,h.fulfilledLayout.renderingContent)U=Sp(h.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(h.fulfilledLayout.sX){h=g.z(h.fulfilledLayout.sX);for(var m=h.next();!m.done&&(m=m.value,!m.renderingContent||!(U=Sp(m.clientMetadata,"metadata_type_player_vars")));m=h.next());}}else U=void 0;if(U){K.hS.get().D.preloadVideoByPlayerVars(U, 2,300);break}}}; D3=function(K,W){return ql(K,W.Xd,W.slotType)?!0:!1}; ES=function(){g.fj.call(this);this.U=new Map}; ukL=function(K,W,U,h){var m=Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER");U=new yW(K.j,U);var S=[new M$(K.j,m)],f=[new PM(K.j,m),new pi(K.j,W)];S={slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:U,slotFulfillmentTriggers:S,slotExpirationTriggers:f};return{slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:[new M$(K.j,m)],slotExpirationTriggers:[new pi(K.j,W),new PM(K.j,m)],wk:"core",clientMetadata:new Zi([new xx(h(S))])}}; Xg=function(){if(!oi.instance){var K=g.vB("yt.networkRequestMonitor.instance")||new oi;g.Vk("yt.networkRequestMonitor.instance",K);oi.instance=K}return oi.instance}; g.kD_=function(K){var W=K.V();return W.Ny&&!W.N&&g.HB(W)?K.isEmbedsShortsMode()?(K=K.Lv(),Math.min(K.width,K.height)>=315):!K.je():!1}; Hv=function(K){dw.call(this,K,!1,!0);this.isCounterfactual=this.X=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.y({T:"button",Hp:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.y({T:"img",Z:"ytp-suggested-action-badge-img",B:{src:"{{url}}"}}); this.thumbnailImage.hide();g.k(this,this.thumbnailImage);this.thumbnailIcon=new g.y({T:"div",Z:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.k(this,this.thumbnailIcon);this.banner=new g.y({T:"a",Z:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{T:"div",Z:"ytp-suggested-action-details",K:[{T:"text",Z:"ytp-suggested-action-title",bX:"{{title}}"},{T:"text",Z:"ytp-suggested-action-subtitle",bX:"{{subtitle}}"},{T:"text",Z:"ytp-suggested-action-metadata-text", bX:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.k(this,this.banner);this.banner.U5(this.N.element);this.S(this.D,"videodatachange",this.onVideoDataChange);this.S(this.D,g.$w("suggested_action_view_model"),this.cSx);this.S(this.D,g.g8("suggested_action_view_model"),this.CYK);this.S(this.overflowButton.element,"click",this.dC);this.S(K,"featuredproductdismissed",this.eG);this.D.createServerVe(this.banner.element,this.banner,!0)}; pB=function(){var K=gJ;K.G||(K.G=!0,l$p(K,function(){return K.W.apply(K,g.z4(g.Xl.apply(0,arguments)))}),K.W())}; iNs=function(K,W){if(W.T==="path")return W.B.d;if(W.K)for(var U=0;U0){for(var h=g.z(W),m=h.next();!m.done;m=h.next())m=m.value,m.startTime-=K.X,m.endTime-=K.X;U.j-=K.X}else U.j=K.j.j;U.segments=W;return U}; QS=function(){}; g.O7=function(K,W,U,h){g.p.call(this);var m=this;this.api=K;this.C=W;this.playback=U;this.app=h;this.uX=new g.$g;this.X=new Map;this.Cg=new Map;this.DA=new Map;this.eV=null;this.DO=NaN;this.M5=this.W3=null;this.Qg=new g.QC(function(){gfs(m,m.DO,m.W3||void 0)}); this.events=new g.Te(this);this.Pp=15E3;this.Y=new g.QC(function(){m.J=!0;m.playback.Ss(m.Pp);Ei(m);if(m.playback.getVideoData().Sj()){var S;m.bZ({togab:(S=m.G)==null?void 0:S.identifier})}m.EO(!1)},this.Pp); this.J=!1;this.U=new Map;this.Bp=[];this.G=null;this.bG=new Set;this.jV=[];this.Ik=[];this.AS=[];this.oW=[];this.tK=new Set;this.Bx=0;this.Ms=!1;this.Ny=new Set;this.Pl=new Set;this.Ea=new Set;this.gk=new Set;this.XI=this.aU=0;this.Xm=this.Ez=!1;this.Rw=this.N="";this.Ns=null;this.logger=new g.io("dai");this.Ev="";this.vp=!0;this.Le=new Map;this.q5=new Map;this.xd={lMV:function(){return m.X}, kW:function(){return m.j.xd.kW()}, buH:function(){return m.N}, Vxm:function(S){m.onCueRangeEnter(m.X.get(S))}, IMx:function(S){m.onCueRangeExit(m.X.get(S))}, DIA:function(S,f){m.X.set(S,f)}, nNx:function(S){m.Rw=S}, H0:function(){return m.H0()}, g_x:function(S){return m.j.j.get(S)}, uaV:function(){return m.Ns}, zD:function(){return m.j.xd.zD()}, Uw:function(S,f){m.Uw(S,f)}, a4H:function(){return m.Cg}, Bf:function(S){m.Bf(S)}}; this.playback.getPlayerType();this.j=new xq(this.C);this.playback.ya(this);this.JK=this.C.G9();g.k(this,this.Qg);g.k(this,this.events);g.k(this,this.Y);this.qb=this.C.L("html5_use_new_ssdai_transition_detector");this.ZX=this.playback.getVideoData().oL;this.qb?this.playback.subscribe("playbackstarted",this.Uw,this):(this.events.S(this.api,g.$w("serverstitchedcuerange"),this.onCueRangeEnter),this.events.S(this.api,g.g8("serverstitchedcuerange"),this.onCueRangeExit));this.QX=this.C.L("html5_ssdai_report_stitch_error_after_skip_ad"); Yg(this.app.FK(),this.playback,!1)}; B$s=function(K,W,U){U=U===void 0?"":U;g.p.call(this);this.message=K;this.requestNumber=W;this.timer=U;this.onError=this.onSuccess=null;this.j=new g.Uu(5E3,2E4,.2)}; g.OM=function(K,W){K.sort(W||YL)}; cv=function(K,W,U,h){function m(){return S.X} g.p.call(this);var S=this;K.V().experiments.Rk("html5_dispose_of_manager_before_dependency")?(this.j=CHL(m,K,W,U,h),this.X=(new dk(this.j)).N(),g.k(this,this.X),g.k(this,this.j)):(this.j=CHL(m,K,W,U,h),g.k(this,this.j),this.X=(new dk(this.j)).N(),g.k(this,this.X))}; gLs=function(K,W,U){W.S(U,"keyboardserviceglobalkeydown",function(h,m){K.N&&h.keyCode===86&&!h.repeat&&K.X!==0&&(m&&(m.ys=!0),K.qe("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); W.S(K.api.getRootNode(),"wheel",function(h){if(!K.jV){var m;if(K.N&&(m=K.U)!=null&&m.element&&!g.C(K.api.getPlayerStateObject(),2)&&K.X!==0&&nn(K))if(g.$C(K.api.getRootNode(),"ytp-grid-scrolling"),K.W===0&&(K.W=window.innerHeight),K.X===1)K.W!==0&&(K.j+=h.deltaY/K.W,K.j=g.Jk(K.j,0,.7),aI(K),Ev2(K,K.Y/K.W+K.j>=.7,2));else if(K.X===2){m=h.deltaY<0;var S,f,G=((f=(S=K.U)==null?void 0:S.X)==null?void 0:f.scrollTop)===0;S=K.j!==0;m&&G||S&&!m?K.W!==0&&(K.j=Math.max(0,K.j-h.deltaY/K.W),aI(K),Ev2(K,K.Y/K.W+ Math.abs(K.j)>=.7,1)):K.j!==0&&(K.j=0,aI(K))}}},K,!0); W.S(U,"standardControlsInitialized",function(){if(!K.U){K.U=new qV(K.api,K.HeV.bind(K));K.hK&&(K.Ms=new xA(K.api),g.k(K,K.Ms),K.Ms.element.setAttribute("data-overlay-order","12"),K.api.Yq(K.Ms.element,4),K.Ms.listen("click",K.qe,K));g.k(K,K.U);var h=K.api.getRootNode().querySelector(".ytp-chrome-bottom");h&&h.parentNode&&h.parentNode.insertBefore(K.U.element,h.nextSibling);cNe(K)}}); W.S(U,"presentingplayerstatechange",function(){gQ(K)}); W.S(U,"autonavvisibility",function(){gQ(K)}); K.api.dj().subscribe("visibilitystatechange",function(){gQ(K)}); ZNp(K,K.X)}; Zi=function(K){var W=new Map;K.forEach(function(U){W.set(U.j(),U)}); this.j=W}; bNp=function(K){K&&(K.Tg=void 0,K.FP=!0);return Fd(K)}; g.Ds=function(K,W,U,h){function m(d){try{if((d===void 0?0:d)&&h.retry&&!h.networklessOptions.bypassNetworkless)S.method="POST",h.networklessOptions.writeThenSend?uE().writeThenSend(I,S):uE().sendAndWrite(I,S);else if(h.compress){var J=!h.networklessOptions.writeThenSend;if(S.postBody){var e=S.postBody;typeof e!=="string"&&(e=JSON.stringify(S.postBody));QJ(I,e,S,g.ka,J)}else QJ(I,JSON.stringify(S.postParams),S,$3,J)}else $3(I,S)}catch(E){if(E.name==="InvalidAccessError")jv(Error("An extension is blocking network request.")); else throw E;}} !g.TA("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&jv(new g.EB("Missing VISITOR_DATA when sending innertube request.",W,U,h));if(!K.isReady())throw K=new g.EB("innertube xhrclient not ready",W,U,h),g.aH(K),K;var S={headers:h.headers||{},method:"POST",postParams:U,postBody:h.postBody,postBodyFormat:h.postBodyFormat||"JSON",onTimeout:function(){h.onTimeout()}, onFetchTimeout:h.onTimeout,onSuccess:function(d,J){if(h.onSuccess)h.onSuccess(J)}, onFetchSuccess:function(d){if(h.onSuccess)h.onSuccess(d)}, onProgress:function(d){if(h.onProgress)h.onProgress(d)}, onError:function(d,J){if(h.onError)h.onError(J)}, onFetchError:function(d){if(h.onError)h.onError(d)}, timeout:h.timeout,withCredentials:!0,compress:h.compress};S.headers["Content-Type"]||(S.headers["Content-Type"]="application/json");U="";var f=K.config_.Rf;f&&(U=f);f=K.config_.P4||!1;var G=sKF(f,U,h);Object.assign(S.headers,G);S.headers.Authorization&&!U&&f&&(S.headers["x-origin"]=window.location.origin);var I=kF(""+U+("/youtubei/"+K.config_.innertubeApiVersion+"/"+W),{alt:"json"});g.vB("ytNetworklessLoggingInitializationOptions")&&V_C.isNwlInitialized?XCp().then(function(d){m(d)}):m(!1)}; u6=function(K,W,U,h,m,S){this.startSecs=K;this.k$=W;this.context=U;this.identifier=h;this.event=m;this.j=S}; XqC=function(K,W,U,h){if(!K.qs()){h&&(kg={keySystem:W.keySystem,keySystemAccess:U,UZk:JSON.stringify(h)});W.keySystemAccess=U;if(q_(W)){U=rv();h=g.z(Object.keys(K.j[W.flavor]));for(var m=h.next();!m.done;m=h.next())m=m.value,W.j[m]=!!U.canPlayType(m)}else{U=W.keySystemAccess.getConfiguration();if(U.audioCapabilities)for(h=g.z(U.audioCapabilities),m=h.next();!m.done;m=h.next())W.j[m.value.contentType]=!0;if(U.videoCapabilities)for(U=g.z(U.videoCapabilities),h=U.next();!h.done;h=U.next())W.j[h.value.contentType]= !0}K.W.push(W);K.useCobaltWidevine||K.L("html5_enable_vp9_fairplay")&&eV(W)?(K.X.shift(),A0(K)):K.callback(K.W)}}; i6=function(K,W){K.j!==W&&(K.j=W,K.X=!0)}; g.zm=function(K,W){g.y.call(this,{T:"button",Hp:["ytp-play-button","ytp-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},bX:"{{icon}}"});this.D=K;this.j=null;this.transition=new BR;this.tooltip=W.Fd();g.k(this,this.transition);K.createClientVe(this.element,this,36842);K.logVisibility(this.element,!0);this.S(K,"fullscreentoggled",this.onVideoDataChange); this.S(K,"presentingplayerstatechange",this.onStateChange);this.S(K,"videodatachange",this.onVideoDataChange);this.Bl(K.getPlayerStateObject());this.listen("click",this.AZ,this);this.addOnDisposeCallback(g.tk(W.Fd(),this.element))}; NM=function(){var K=null;try{K=g.qs.localStorage||null}catch(W){}ST.call(this,K)}; lFC=function(K,W){function U(){q0({writeThenSend:!0},K,W)} K=K===void 0?!1:K;W=W===void 0?200:W;var h=ly(K,W),m=h===jye||h===S2e?5E3:v3F;g.hc("web_gel_timeout_cap")&&!h.j&&(m=WV(function(){U()},m),h.j=m); Aw(h.X);m=g.TA("LOGGING_BATCH_TIMEOUT",g.Cz("web_gel_debounce_ms",1E4));g.hc("shorten_initial_gel_batch_timeout")&&Rw&&(m=qVs);m=WV(function(){g.Cz("gel_min_batch_size")>0?Lz().getSequenceCount({cttAuthInfo:void 0,isJspb:K,tier:W})>=xLR&&U():U()},m); h.X=m}; CdC=function(K,W,U){var h=U.reason==="m"||U.reason==="s";K.policy.iC&&yS&&g.$c&&(!h||U.j<1080)&&(W=W.filter(function(d){return d.video&&(!d.X||d.X.powerEfficient)})); if(W.length>0)if(dr()){var m=Mh2(K,W);W=W.filter(function(d){return!!d&&!!d.video&&d.lX===m[d.video.qualityOrdinal].lX})}else{var S,f,G=(S=W[0])==null?void 0:(f=S.video)==null?void 0:f.qualityOrdinal; if(G){U=W.filter(function(d){return!!d&&!!d.video&&d.video.qualityOrdinal===G}); var I=Mh2(K,U)[G].lX;W=W.filter(function(d){return!!d&&!!d.video&&d.lX===I})}}return W}; lB$=function(K,W){K.settingsButton=W;K.element.id=W.element.getAttribute("aria-controls")}; K0=function(K,W){this.JR=W=W===void 0?!1:W;this.uach=this.locale=null;this.X=0;this.isFinal=!1;this.j=new Dm;Number.isInteger(K)&&this.j.Y4(K);W||(this.locale=document.documentElement.getAttribute("lang"));fp(this,new S7)}; LMY=function(K,W){K.policy.Ms?K.j.splice(K.j.indexOf(W)).forEach(function(U){U.dispose()}):(K.j.pop(),W==null||W.dispose())}; Kz2=function(K,W,U){var h=Ub(cY,W);h||(h=eu(K,W,"n",U.opt_nativeTime||-1));return h}; B0C=function(){var K=this;this.j=new Map;this.N=new Map;this.X=new Map;this.xd={AVm:function(){return new Map(K.j)}}}; hv$=function(K,W,U){var h,m,S;g.r(function(f){if(f.j==1)return h={context:g.wZ(),settingItemId:W,newValue:U},m=g.ek(Wze),g.T(f,g.Es(K,h,m),2);S=f.X;if(!S||S.errorMetadata)return sjp("SetSettingRequest",S),f.return(void 0);g.q1(f)})}; MM=function(K){this.D=K}; U62=function(K,W){var U=0,h=s1(W.X);if(K.W=h.length)return;if(U<0)throw Error("Missing data");K.W=K.N;K.X=0}for(m={};UW.video.height;if(h&&(K.AK.J=!0,b6('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return U=m6Y(U),K.policy.N&&K.rk("sp4k",{s:!!U}),U}; SpC=function(K){var W=g.z(K.split("."));K=W.next().value;W=W.next().value;return[Number(K),W]}; oK_=function(K,W){K.aW.tick("vta");S8("vta",void 0,"video_to_ad");K.getCurrentTime()>0&&fxL(K.tS,K.getCurrentTime());K.mediaElement.activate(W);K.AK&&s7(4);!K.videoData.J&&K.playerState.isOrWillBePlaying()&&K.bj.start();if(tOs(K)){var U;if(W=(U=K.mediaElement)==null?void 0:U.audioTracks())W.onchange=function(){K.publish("internalaudioformatchange",K.videoData,!0)}}}; Ag=function(K){this.value=K}; g_=function(K){this.value=K}; g.GB=function(K,W,U){if(typeof K==="function")U&&(K=(0,g.wr)(K,U));else if(K&&typeof K.handleEvent=="function")K=(0,g.wr)(K.handleEvent,K);else throw Error("Invalid listener argument");return Number(W)>2147483647?-1:g.qs.setTimeout(K,W||0)}; AID=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"initialvideodatacreated",function(U){Ie(lW(),16623);W.j=g.z0();var h=K.V().A3&&!U.oW;if(QU(U)&&h){Ie(lW(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(U.getWatchNextResponse()){var m,S=(m=U.getWatchNextResponse())==null?void 0:m.trackingParams;S&&t1(S)}if(U.getPlayerResponse()){var f;(U=(f=U.getPlayerResponse())==null?void 0:f.trackingParams)&&t1(U)}}else Ie(lW(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),U.getEmbeddedPlayerResponse()&&(f=(S=U.getEmbeddedPlayerResponse())==null?void 0:S.trackingParams)&&t1(f)}); this.events.S(K,"loadvideo",function(){Ie(lW(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.j})}); this.events.S(K,"cuevideo",function(U){K.L("html5_embed_no_ads_cue_video_logging")&&U!==1||Ie(lW(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.j})}); this.events.S(K,"largeplaybuttonclicked",function(U){Ie(lW(),27240,U.visualElement)}); this.events.S(K,"playlistnextbuttonclicked",function(U){Ie(lW(),27240,U.visualElement)}); this.events.S(K,"playlistprevbuttonclicked",function(U){Ie(lW(),27240,U.visualElement)}); this.events.S(K,"playlistautonextvideo",function(){Ie(lW(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; g.VS=function(K){try{if(!K.j)return null;if("response"in K.j)return K.j.response;switch(K.DA){case "":case "text":return K.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in K.j)return K.j.mozResponseArrayBuffer}return null}catch(W){return null}}; GZs=function(K){K.timelyActions&&(K.W=K.timelyActions.reduce(function(W,U){if(U.cueRangeId===void 0)return W;W[U.cueRangeId]=0;return W},{}))}; pTL=function(K){UF("Received layout exit signal when not in layout exit flow.",K.slot,K.layout)}; O3=function(K,W){this.adPodIndex=K;this.j=W.length;this.adBreakLengthSeconds=W.reduce(function(h,m){return h+m},0); var U=0;for(K+=1;K49?"p60":h>32?"p48":"");U=Qn(U,h,S);m>0&&(U=Math.min(U,m));if(!xg.has(W)&&C9().includes(W)){var f=U;U=H3();+U[W]>0&&(f=Math.min(+U[W],f));U[W]!==f&&(U[W]=f,g.SI("yt-player-performance-cap",U,2592E3))}else if(xg.has(W)||S==null){a:{f=f===void 0?!0:f;h=C9().slice();if(f){if(h.includes(W))break a;h.push(W)}else{if(!h.includes(W))break a;h.splice(h.indexOf(W),1)}g.SI("yt-player-performance-cap-active-set",h,2592E3)}Cn.set(W, U)}else xg.add(W),S==null||S.set(W,U);K.iX.XA()}; t6=function(K){g.p.call(this);this.N=K;this.l5=!0;this.Lg=new Map;this.j=new Map;this.X=new Map}; l6=function(K){this.iZ=qR(K)}; BY_=function(K,W){Xa(K,1,W.defaultPolicy);Xa(K,2,W.smooth);Xa(K,3,W.visibility);Xa(K,4,W.uW);Xa(K,5,W.performance);Xa(K,6,W.speed)}; Lep=function(K,W){var U=K.D.V();g.Ln(U)||U.controlsType!=="3"||K.D.xx().r3(W)}; lOD=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;K.Yd.L1("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",U.slot);for(var h=g.z(K.X),m=h.next();!m.done;m=h.next())m.value.kL(U.slot);try{var S=K.j,f=U.slot,G=La(S,f);if(!G)throw new v("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!G.X)throw new v("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(G.j!=="scheduled")throw new v("Tried to enter a slot from stage: "+ G.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(Kr(G))throw new v("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var I=g.z(j6(S,f.slotType+"_"+f.slotPhysicalPosition).values()),d=I.next();!d.done;d=I.next()){var J=d.value,e;if(e=G!==J&&Kr(J))m=h=void 0,e=!(((m=G.slot.fulfilledLayout)==null?void 0:m.layoutType)==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"&&((h=J.layout)==null?void 0:h.layoutType)==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"); if(e)throw new v("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:J.j},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(E){E instanceof v&&E.TP?(K.Yd.lT("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",E.TP,U.slot),UF(E,U.slot,WX(K.j,U.slot),void 0,E.f4)):(K.Yd.lT("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",U.slot),UF(E,U.slot));mn(K,U.slot,!0);continue}U=La(K.j,U.slot);U.j!=="scheduled"&&AN(U.slot,U.j,"enterSlot");U.j="enter_requested"; U.X.vE()}}; Ky=function(K){this.data=window.Float32Array?new Float32Array(K):Array(K);this.X=this.j=K-1}; WG=function(K,W,U,h,m,S){UH.call(this,K,W,U,h);this.dk=m;this.U=S;this.W=!1}; Um=function(K,W,U,h){this.category=K;this.trigger=W;this.slot=U;this.layout=h}; D6s=function(K,W){if(K.playerType===2||K.C.b3)W.Gb=!0;var U=T0p(W.Ez,W.c$,K.C.W,K.C.J);U&&(W.adFormat=U);K.playerType===2&&(W.pN=!0);if(K.isFullscreen()||K.C.W)U=g.SZ("yt-player-autonavstate"),W.autonavState=U||(K.C.W?2:K.videoData.autonavState);W.endSeconds&&W.endSeconds>W.startSeconds&&ut(K,W.endSeconds)}; vD=function(K,W){wY(K);K.loader.A7();return VN(W,K.loader.isSeeking())}; H92=function(K,W,U,h){return new TG(K.type,K.Wp,K.range,"reslice"+K.G,K.kx,K.startTime,K.duration,W,U,h,K.Uj,K.clipId)}; Js=function(K){Rj||(yf?yf.Ro(K):(M8.push({type:"ERROR",payload:K}),M8.length>10&&M8.shift()))}; rxC=function(K,W,U,h,m,S,f,G,I,d,J,e,E){this.callback=K;this.slot=W;this.layout=U;this.TK=h;this.Ke=m;this.dk=S;this.VB=f;this.yg=G;this.E_=I;this.Xx=d;this.zm=J;this.ZA=e;this.Oa=E;this.o9=!0;this.Ze=this.RW=null;this.adCpn=void 0;this.j=!1}; ovR=function(K){return g.LL(K.j,function(W){return!!W.info.video&&W.info.video.qualityOrdinal>=2160})}; hT=function(K,W){g.hc("use_event_time_ms_header")&&wa(K)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.AI)())));return W}; eP=function(K){return K.Ny||K.pN||K.mutedAutoplay}; TYF=function(K){K.N.read().then(K.Y,K.onError).then(void 0,gu)}; wfC=function(K){var W=new XF(K);W.JF();if(jw(W,[408125543,374648427,174,224]))W=vC(W);else return null;for(var U=K=null;!rH(W);){var h=e8(W,!1);if(h===21432)switch(By(W)){default:K=0;break;case 1:K=1;break;case 3:K=2;break;case 15:K=255}else h===30320?U=vC(W):DV(W)}if(!U)return null;for(var m,S=h=W=null;!rH(U);)switch(e8(U,!1)){case 30321:if(By(U)!==3)return null;break;case 30324:W=FO(U);break;case 30323:S=FO(U);break;case 30325:h=FO(U);break;case 30322:m=e8(U,!0);m=jx(U,m);m=new DataView(m.buffer, m.byteOffset,m.byteLength);break;default:DV(U)}return m?new axC(K,W,S,h,m):null}; EK2=function(){var K=yq(MR);if(K.j!=null){var W=K.j;g.tD(zP(),function(U){return GAp(U,W)})}}; YpY=function(K,W){var U=K.mediaElement,h=W.type;switch(h){case "seeking":var m=U.getCurrentTime()+K.timestampOffset;if(!K.W||K.uX&&m!==K.X){K.W=new Y2;K.W.then(function(f){Ba(K,f)},function(){eE(K)}); if(K.videoData.isAd()){var S;QGs({adCpn:K.videoData.clientPlaybackNonce,contentCpn:(S=K.videoData.ix)!=null?S:""},W.j)}K.tK=m;iRs(K.Ms,U.getCurrentTime());K.seekTo(m,{seekSource:104,JS:"seektimeline_mediaElementEvent"});K.uX=!0}break;case "seeked":y4C(K);break;case "loadedmetadata":mg(K.iX)||$6L(K);xD(K);break;case "progress":xD(K);break;case "pause":K.Y=K.getCurrentTime()}K.Y&&((h==="play"||h==="playing"||h==="timeupdate"||h==="progress")&&K.getCurrentTime()-K.Y>10&&(K.L("html5_sky_skip_pause_jump")? K.iX.rk("skipPauseJump",{evt:h,cmt:K.getCurrentTime(),lpt:K.Y}):K.seekTo(K.Y,{JS:"pauseJump"})),h!=="pause"&&h!=="play"&&h!=="playing"&&h!=="progress"&&(K.Y=0))}; JZ=function(K,W){W=W===void 0?"":W;return K.SD?s0(!0):Sx(qd(s0(g.UY(K,W)),function(U){return s0(!!U)}),function(){return s0(!1)})}; O9C=function(K){g.kQ(function(){fd(K)&&XL("aa",void 0,K);Blz(K);t2(K)})()}; cxD=function(K,W){var U=Math.min(2.5,qY(K.dH));K=qn(K);return W-U*K}; A_$=function(K){return{videoId:fz(K,2)}}; nmL=function(K,W){if(typeof K!=="object")return K;if(Array.isArray(K)){var U=K[MX]|0;K.length===0&&U&1?K=void 0:U&2||(!W||4096&U||16&U?K=cW(K,U,!1,W&&!(U&16)):(J6(K,34),U&4&&Object.freeze(K)));return K}if(K!=null&&K[qS]===x1)return W=K.iZ,U=W[MX]|0,WF(K,U)?K:C6(K,W,U)?OT(K,W):cW(W,U);if(K instanceof Qr)return K}; fy=function(K,W){var U=K.X[W];U&&U.forEach(function(h){try{h()}catch(m){}}); (U=K.j[W])&&U.forEach(function(h){h()}); K.j[W]=[]}; tT=function(K,W,U){if(!W&&!U)return null;var h=W?String(W).toUpperCase():null;return bI(K,function(m){return(!h||m.nodeName==h)&&(!U||typeof m.className==="string"&&g.BX(m.className.split(/\s+/),U))},!0)}; g.Zo=function(K,W,U){W=W===void 0?{}:W;U=U===void 0?!1:U;var h=g.TA("EVENT_ID");h&&(W.ei||(W.ei=h));W&&N8(K,W);U||(vN(K),g.bSp(K))}; de=function(K,W){for(var U=Fh(K,0,W);U;){var h=U;h.type=1936419184;h.data.setUint32(h.offset+4,1936419184);U=Fh(K,U.offset+U.size,W)}}; gmC=function(K){return{Bg:L_(K,1),bNV:L_(K,2)}}; Gh=function(K){var W={};g.y.call(this,{T:"div",Z:"ytp-paid-content-overlay",B:(W["aria-live"]="assertive",W["aria-atomic"]="true",W["data-overlay-order"]="5",W)});this.D=K;this.videoId=null;this.N=!1;this.innertubeCommand=this.RR=this.j=null;W=K.V();K.L("enable_new_paid_product_placement")&&!g.Hh(W)?(this.X=new g.y({T:"a",Z:"ytp-paid-content-overlay-link",B:{href:"{{href}}",target:"_blank"},K:[{T:"div",Z:"ytp-paid-content-overlay-indicator"},{T:"div",Z:"ytp-paid-content-overlay-icon",bX:"{{icon}}"}, {T:"div",Z:"ytp-paid-content-overlay-text",bX:"{{text}}"},{T:"div",Z:"ytp-paid-content-overlay-chevron",bX:"{{chevron}}"}]}),this.S(this.X.element,"click",this.onClick)):this.X=new g.y({T:"div",Hp:["ytp-button","ytp-paid-content-overlay-text"],bX:"{{text}}"});this.fade=new g.Wr(this.X,250,!1,100);g.k(this,this.X);this.X.U5(this.element);g.k(this,this.fade);this.D.createServerVe(this.element,this);this.S(K,"videodatachange",this.onVideoDataChange);this.S(K,"presentingplayerstatechange",this.kt)}; RR$=function(K){return K===null?"null":K===void 0?"undefined":K}; Pv=function(K){return!!K.lB&&K.lB.xM()}; Fz$=function(K){return Cr(K)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; yK=function(K,W){if(K.j){K.G&&(clearTimeout(K.G),K.G=null);var U=K.j;K.j=null;W||K.dispatchEvent("ready");try{U.onreadystatechange=null}catch(h){}}}; aHp=function(K,W){var U=0x8000000000000,h=0,m=0x8000000000000;var S=g.z(W.slotFulfillmentTriggers);for(var f=S.next();!f.done;f=S.next())if(f=f.value,f instanceof tQ){var G=f.j.start;U=Math.min(U,G);h=Math.max(h,f.j.end);f.visible&&(m=Math.min(m,G))}else UF("Found unexpected fulfillment trigger for throttled slot.",W,null,{fulfillmentTrigger:f});S=U;m=m<0x8000000000000&&UW+.02&&K.rk("abh",{bh:W,bhtls:U}),W=Math.max(W,U)));return W}; uU_=function(K,W,U){K=K.map(function(I){return IS(g.P(I.renderingContent,iY),!1)}); var h=K.map(function(I){return I.videoLengthSeconds}),m=h.map(function(I,d){return new O3(d,h)}),S=W,f=U,G=[]; K.forEach(function(I,d){f=Math.min(S+I.videoLengthSeconds*1E3,U);cf(I.playerVars,m[d]);G.push({dE:I,lq:S,Jb:f,w4:d,L7:m[d]});S=f}); return G}; g.AQ=function(K,W,U,h,m){CY||lN.set(""+K,W,{maxAge:U,path:"/",domain:h===void 0?"youtube.com":h,secure:m===void 0?!1:m})}; ds=function(K,W){try{if(W.length){K.Ms||(K.Ms=i_());var U=kZC(W),h=tgL(K.element,K.X.j.N),m=h.x,S=h.y;K.N=new HP(Math.round(S),Math.round(m)+U.boundingClientRect.width,Math.round(S)+U.boundingClientRect.height,Math.round(m));K.j=i9s(K,K.N);var f=zfF(U.intersectionRect);K.G=o$(f,K.N.left-f.left,K.N.top-f.top)}}catch(G){K.unobserve(),Tl(299,G)}}; Axp=function(K){return NYC.then(K)}; Rf2=function(){var K=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; qF_=function(K,W){if(!Pv(K)&&!K.qs()){if(!(K.Ns||(K.Ns=!0,K.N>0))){var U=tG(K);U=M1(K.policy.W,K.j.info,x8(K),U,K.policy.Ik);pn(K,U)}if(W.info.type===1){if(K.lB){q9(K,Error("Woffle: Expect INIT slices to always start us off"));return}K.initRange=JT(0,W.X.totalLength)}else if(W.info.type===2)K.lB&&K.lB.type===1||q9(K,Error("Woffle: Index before init")),K.indexRange=JT(K.initRange.end+1,W.X.totalLength);else if(W.info.type===3){if(!K.lB){q9(K,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(K.lB.type===3&&!lt(K.lB,W.info)&&(K.jV=[],W.info.kx!==ex(K.lB)||W.info.j!==0))return;if(W.info.N){U=g.z(K.jV);for(var h=U.next();!h.done;h=U.next())U62(K,h.value);K.jV=[]}else{K.jV.push(W);K.lB=W.info;return}}else{q9(K,Error("Woffle: Unexpected slice type"));return}K.lB=W.info;U62(K,W);yxL(K)}}; bn=function(){var K=Em.call;BG||(BG=new g.Qh({A8V:!0,SlU:!0}));K.call(Em,this,{oQ:{WP:Vp2,H9:MO_,EJ:Pxp,J7s:l62,pJ:zCY,set:Asp},LN:BG,handleError:function(W,U,h){var m,S=h==null?void 0:(m=h.error)==null?void 0:m.code;if(S===400||S===415){var f;W=new g.EB(W.message,U,h==null?void 0:(f=h.error)==null?void 0:f.code);jv(W,void 0,void 0,void 0,!0)}else g.aH(W)}, jT:jv,sendFn:hV2,now:g.AI,K6:pf2,EY:g.hN(),OA:"publicytnetworkstatus-online",n9:"publicytnetworkstatus-offline",mH:!0,MJ:.1,UW:g.Cz("potential_esf_error_limit",10),Rk:g.hc,jY:!(g.B3()&&g.Qq(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.JW;g.hc("networkless_immediately_drop_all_requests")&&ULC();Drs("LogsDatabaseV2")}; n$=function(K){var W=g.P(K,Fn);if(W)return W;if((W=g.P(K,omD))&&W.commands)return fgs(W.commands);if((W=g.P(K,Z9p))&&W.commands)return fgs(W.commands);if((K=g.P(K,b9C))&&K.identifier&&K.command&&(Dv||(Dv=[]),!Dv.includes(K.identifier)))return Dv.push(K.identifier),g.P(K.command,Fn)}; g.Fr=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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"}}]}}; sGF=function(K){if(K.D.V().showMiniplayerUiWhenMinimized)return K.Hd.get("miniplayer")}; ai=function(K){var W={delay:qY(K),stall:K.Y.xv()||0,byterate:mM(K),init:K.Le},U=K.W[0];U.stamp=Math.round(K.G/36E5)*36E5;U.net=Math.ceil(K.DA);U.max=K.interruptions[0]||0;W.interruptions=K.W;return W}; g.$n=function(K){return(K.deviceIsAudioOnly||!g.Nl||iy||K.controlsType==="3"?!1:g.q5?K.W&&g.rs(51):!0)||(K.deviceIsAudioOnly||!g.aS||iy||K.controlsType==="3"?!1:g.q5?K.W&&g.rs(48):g.rs(38))||(K.deviceIsAudioOnly||!g.ws||iy||K.controlsType==="3"?!1:g.q5?K.W&&g.rs(37):g.rs(27))||!K.deviceIsAudioOnly&&g.Qv&&!VO$()&&g.rs(11)||!K.deviceIsAudioOnly&&g.$c&&g.rs("604.4")}; Yn=function(K,W){switch(W){case "normal":K.wH("complete");break;case "skipped":K.wH("skip");break;case "abandoned":jD(K.Ke,"impression")&&K.wH("abandon")}}; Xfp=function(K,W){Vd(K,1,W.videoId);Xa(K,2,W.lmt)}; SIs=function(K,W,U){K=K.X();if(typeof K==="function"){var h={};var m={};h=Object.assign({},th!==null&&(h.v=th,h),(m.sv="968",m.cb=M_Y,m.e=Hds(W),m));m=YR(U,W,$R());g.Zc(h,m);U.Bt[W]=m;h=U.oN()==2?b5R(h).join("&"):U.zW.j(h).j;try{return K(U.nf,h,W),0}catch(S){return 2}}else return 1}; o4p=function(K){jf.call(this,K);this.j=new Om(this.api);g.k(this,this.j);g.HW(this.api,this.j.element,4)}; cG=function(K,W,U){this.triggeringLayoutId=W;this.slotId=U;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=K(this.triggerType)}; ny=function(K,W,U,h,m,S,f,G,I){this.kx=K;this.startTime=W;this.duration=U;this.ingestionTime=h;this.sourceURL=m;this.Nk=I;this.endTime=W+U;this.j=f||0;this.range=S||null;this.pending=G||!1;this.Nk=I||null}; vmF=function(K){return g.HB(K.D.V())?K.EC:K.GP}; i2=function(K){this.value=K}; qp2=function(K,W,U){yU.call(this,"survey",K,{},W,U)}; gs=function(K,W){K.startSec+=W;K.endSec+=W}; hK=function(){}; x6Y=function(K){return K.X.some(function(W){return W.j.isToggled()})||K.noneOfTheAbove.button.isToggled()}; lxC=function(K){K=g.z(K||[]);for(var W=K.next();!W.done;W=K.next()){var U=g.P(W.value,vX);if(U===void 0||!CxD(U))break;W=void 0;U=(W=U.fulfillmentContent)==null?void 0:W.fulfilledLayout;if((W=g.P(U,FY))&&Hz(W))return!0}return!1}; KaC=function(K,W,U){U=U===void 0?{}:U;K=tEs(yq(uR),W,U,K);return Lz_(K)}; g.GM=function(K,W){g.GP.call(this);var U=this;this.Tm=K;this.adaptiveFormats="";this.qz=this.adQueryId=this.SD=null;this.jq={start:NaN,end:NaN};this.cueRanges=this.zL=null;this.M3=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.r4="";this.SN=!1;this.Cs=null;this.Br=this.tE=this.Vp=!1;this.W=null;this.fH=this.M0=!1;this.lj=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec= 0;this.TD=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Sz=0;this.He=!1;this.cycToken=null;this.author="";this.Qj=!1;this.Qg=0;this.A3=!1;this.D5=null;this.AE=[];this.jQ=this.x_=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.tK=this.W3="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.An=0;this.Ug=this.yC=this.X=null;this.Ky="";this.loading=!1;this.gf=this.n7=0;this.pV=this.pipable= this.GZ=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.pN=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Vr=this.isPrivate=this.isListed=this.oW=!1;this.jd="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Ti=this.Cf=this.tv=!1;this.latencyClass="UNKNOWN";this.dc=this.Q7=this.KX=this.bx=this.CM=this.qJ=this.C2=this.rWr=this.oL=this.enableServerStitchedDai=this.Wo=this.isMdxPlayback=this.isUpcoming= this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Bp=0;this.reloadReason="";this.Gb=this.Ny=!1;this.keywords={};this.Pp="";this.wr=0;this.Sw=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.l0=null;this.Cw=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.D3=this.paygated=!1;this.zJ=[];this.Dp=!1;this.XY=[];this.Zc=null;this.Td=this.racyCheckOk=!1;this.qg={};this.isProximaLatencyEligible=!1;this.HJ=0;this.N=null;this.autonavState= 1;this.gq=null;this.shortDescription="";this.J=this.OH=!1;this.Y_=this.vp=this.startSeconds=0;this.ul=this.Nc=this.bl=BE;this.KK=this.suggestions=null;this.NN=this.WS=void 0;this.isExternallyHostedPodcast=!1;this.u5=null;this.wN=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.eV=[];this.AS=[];this.hlsFormats=this.qI="";this.CK=this.rQ=this.QX=this.Ik=this.hK=this.XX=this.Ev=null;this.oC="vvt";this.bG=!1;this.w$=null;this.Dx="";this.SM=NaN;this.A1=this.iI=this.Y2=this.g3= this.CT=this.d8=this.ZW=this.MO=this.vV=this.jb="";this.DN=null;this.yD=!1;this.clipStart=0;this.clipEnd=Infinity;this.L2=!1;this.heartbeatToken="";this.tp=this.ZD=NaN;this.Cg=this.N2=this.Ea=this.If=this.GB=!1;this.Ic=!0;this.i$={};this.captionTracks=[];this.Gv=[];this.Tq=0;this.Zr=[];this.i9=[];this.CF=!1;this.fK={};this.ZX=new g.kn("und",new g.nl("Default","und",!0));this.n4=0;this.U=null;this.VA=[];this.pO=!1;this.c$=this.Ez="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.reelItemWatchResponse= this.Ns=this.eX=this.dB=this.playerResponse=this.O3=this.il=this.X8=this.wj=null;this.gN=!1;this.M5=null;this.isInlinePlaybackNoAd=this.DZ=this.lQ=this.useCobaltWidevine=this.OI=this.nU=!1;this.rM=!0;this.CO=this.sF=NaN;this.defraggedFromSubfragments=this.uc=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Le=new Set;this.sabrContextUpdates=new Map;this.iW=!1;this.gatewayExperimentGroup="";this.gZ=this.DA=this.YN=!1;this.interstitials=[];this.Mk=this.UK=!1;this.VV="";this.allowImaMonetization= !1;this.r7="";this.V3=!1;this.oT="";this.fd=[];this.vr=[];this.Ze="";this.vF=this.Y=this.Yz=!1;this.Ge="";this.ww=this.hT=this.D2=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.N$=!1;this.rS=this.XI=!0;this.errorDetail=this.userGenderAge="";this.ZR=this.Ys=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.hF=this.errorReason= this.errorCode=null;this.xr=!1;this.iK=[];this.Af=this.PS=this.X5=this.L_=this.DE=0;this.fetchType=null;this.eM=!0;this.transitionEndpointAtEndOfStream=void 0;this.pn=this.XR=-1;this.pC=this.gk=!1;this.DO=null;this.jV="";this.watchUrl=null;this.g4=[];this.visibleOnLoadKeys=[];this.Mc=[];this.inlineMetricEnabled=this.M9=!1;this.U0=this.embedsRctn=this.embedsRct="";this.Pz=NaN;this.authorizedFormats=[];this.yF=(0,g.AI)();this.xE=this.TI=0;this.aN=null;this.WK5=this.j8=this.zM=this.Qx=!1;this.JL={}; this.Mg=.25;this.Cd=2;this.UH=this.fn=!1;this.JK=this.Tm.experiments.Rk("html5_use_triple_equals");this.Wf=g.jV(this.Tm.experiments,"html5_gapless_loop_seek_offset_in_milli");this.xd={setData:function(h){U.setData(h)}, x0:function(){U.x0()}, Qa:function(h){U.Qa(h)}}; this.gk=this.L("web_new_autonav_countdown");this.pC=this.L("web_new_big_thumbnail_endscreen");this.Tm.CK&&(this.Ms=this.Tm.CK);this.setData(W);this.cY=new ZD;g.k(this,this.cY)}; WaY=function(K,W){var U=-1,h=-1,m=-1,S;if((S=K.l2)==null?0:S.items)for(K=g.z(K.l2.items),S=K.next();!S.done;S=K.next())S=S.value,W=m.X&&U50&&m.X.shift())),m=K.j,S42(m,U,W===void 0?!0:W),f5s(m,U),W&&t2L(K,!0));h!==K.q5&&(W=K.getCurrentTime()-K.M5<=500,U=K.W3>=1E3,W||U||(W=K.iX.S0,W.qoe&&(W=W.qoe,U=g.gh(W.provider), g.Fa(W,U,"lh",[h?"1":"0"])),K.q5=h,K.W3++,K.M5=K.getCurrentTime()))}; AT=function(K){var W=rv();return!!(W&&W.canPlayType&&W.canPlayType(K))}; Mo=function(){RS||(RS=new yv);return RS}; PG=function(K,W){W=W===void 0?"":W;K=y3$(K)[0][A3C];var U;W=(U=W)!=null?U:"[signal]";K.debugName=W}; Zt=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;var h=py(K,U.timeRangeStartMillis/(K.N.j*1E3),IE(K)),m=K.api.L("delhi_modern_web_player")?.667:.6;g.Zd(U.element,"transform","translateX("+h+"px) scaleX("+m+")")}}; g.y3=function(K){var W=bw(K);return W=="array"||W=="object"&&typeof K.length=="number"}; oS=function(K,W,U,h,m,S,f,G){UH.call(this,K,W,U,h);this.zm=m;this.lZ=S;this.G=G;this.l5=!0;this.W=null;this.U=Sp(U.clientMetadata,"metadata_type_linked_player_bytes_layout_id");VT(this.lZ(),this);this.adPlacementConfig=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,this.adPlacementConfig,U.layoutId)}; I5C=function(K,W){if(!K.Xm){var U=void 0;K.Rw&&(U=K.j.Yv({cpn:K.Rw}));if(!U){U=YFp(K,W*1E3);var h,m=(h=U)==null?void 0:h.cpn;K.Rw?m&&K.Rw!==m&&K.bZ({cpcnm:m+"_"+K.Rw,cmt:W.toFixed(3)}):K.bZ({cpcna:m,cmt:W.toFixed(3)})}var S;return(S=U)==null?void 0:S.videoData}}; g.Jk=function(K,W,U){return Math.min(Math.max(K,W),U)}; eBR=function(K){if(g.YD(g.lP(K)))return!1;if(K.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var W=new g.FS(K)}catch(U){return g.dG(dwR,function(h){return K.search(h)>0})!=null}return W.G.match(JKC)?!0:g.dG(dwR,function(U){return K.match(U)!=null})!=null}; g.Zv=function(K){for(var W=[],U=0,h=0;h>6|192:((m&64512)==55296&&h+1>18|240,W[U++]=m>>12&63|128):W[U++]=m>>12|224,W[U++]=m>>6&63|128),W[U++]=m&63|128)}return W}; EyC=function(){bR.instance||(bR.instance=new bR);return bR.instance}; pd=function(){var K=g.SZ("yt-player-user-settings"),W=new Map;if(K){K=g.z(Object.entries(K));for(var U=K.next();!U.done;U=K.next()){var h=g.z(U.value);U=h.next().value;h=h.next().value;W.set(U,h)}}return W}; BMs=function(K){return-((K.U.offsetWidth||(K.frameCount-1)*K.G*K.scale)-K.j/2)}; g.Dwp=function(){return g.Km()&&(g.PP("ps4 vr")||g.PP("ps4 pro vr"))}; XY=function(K){PT(K);K.setLoopVideo(!1);K.setLoopRange(null);K.Yx.publish("legacyadtrackingpingreset");K.qD={};K.mN=[];F9p(K.aW);if(K.x$){var W=K.x$,U=K.rH();U.getPlayerType();vQ(W,!1);TT(W);Hk2(W);W.playback=U}W=K.S_;K=K.rH();K.getPlayerType()!==1&&sm(W,"invalidParentVideoPlayerType");qK(W,!1);Vv(W);W.j=K}; nyY=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D){for(var a=[],Q=g.z(K),u=Q.next();!u.done;u=Q.next())if(u=u.value,!hi$(u)&&!rK$(u)){var O=zg(u)&&!!u.slotEntryTrigger.beforeContentVideoIdStartedTrigger,N=I.k5(O),A=DY$(u,d,h,U.JW,N);if(A instanceof v)return A;var Z=void 0,x={slotId:u.adSlotMetadata.slotId,slotType:u.adSlotMetadata.slotType,slotPhysicalPosition:(Z=u.adSlotMetadata.slotPhysicalPosition)!=null?Z:1,wk:"core",slotEntryTrigger:A.slotEntryTrigger,slotFulfillmentTriggers:A.slotFulfillmentTriggers, slotExpirationTriggers:A.slotExpirationTriggers},b=g.P(u.fulfillmentContent.fulfilledLayout,SK);if(b){if(!fg(b))return new v("Invalid PlayerBytesAdLayoutRenderer");Z=e&&!(zg(u)&&u.slotEntryTrigger.beforeContentVideoIdStartedTrigger);A=A.slotFulfillmentTriggers.some(function(KR){return KR instanceof Vr}); N=Z?TM2(x,u.adSlotMetadata.triggerEvent,b,U,h,S,d,K,N,E,A,B):a5$(x,u.adSlotMetadata.triggerEvent,b,W,U,h,m,S,f,G,I,d,K,J,N,u.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof v)return N;A=[];D?A.push(new vG({current:D})):A.push(new vG({current:null}));zg(u)&&A.push(new Ak({pu:zg(u)&&!!u.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));Z&&A.push(new Pq({}));U.mK&&A.push(new iW({}));A.push(new Nx(O));u=Object.assign({},x,{clientMetadata:new Zi(A),fulfilledLayout:N.layout,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData}); a.push.apply(a,g.z4(N.A9));a.push(u)}else if(O=g.P(u.fulfillmentContent.fulfilledLayout,Wy)){if(!YVp(O))return new v("Invalid PlayerUnderlayAdLayoutRenderer");O=qb2(O,h,U.JW,S,x,u.adSlotMetadata.triggerEvent,u.adSlotMetadata.triggeringSourceLayoutId);if(O instanceof v)return O;u=Object.assign({},x,{clientMetadata:new Zi([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});a.push(u)}else if(O=g.P(u.fulfillmentContent.fulfilledLayout,wus)){if(!Kf(O.adLayoutMetadata)||!g.P(O.renderingContent, Gb))return new v("Invalid InPlayerOrganicOverlayAdLayoutRenderer");O=O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?QN2(O,h,U.JW,S,x):new v("LayoutType ["+O.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(O instanceof v)return O;u=Object.assign({},x,{clientMetadata:new Zi([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});a.push(u)}else if(O=g.P(u.fulfillmentContent.fulfilledLayout,$wC)){if(!Y42(O))return new v("Invalid AboveFeedAdLayoutRenderer"); O=AL2(O,h,U.JW,S,x,u.adSlotMetadata.triggerEvent,u.adSlotMetadata.triggeringSourceLayoutId);if(O instanceof v)return O;u=Object.assign({},x,{clientMetadata:new Zi([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});a.push(u)}else if(O=g.P(u.fulfillmentContent.fulfilledLayout,Okp)){if(!Kf(O.adLayoutMetadata)||!g.P(O.renderingContent,qo))return new v("Invalid BelowPlayerAdLayoutRenderer");O=AL2(O,h,U.JW,S,x,u.adSlotMetadata.triggerEvent,u.adSlotMetadata.triggeringSourceLayoutId); if(O instanceof v)return O;u=Object.assign({},x,{clientMetadata:new Zi([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});a.push(u)}else if(O=g.P(u.fulfillmentContent.fulfilledLayout,FY)){if(!Hz(O))return new v("Invalid PlayerBytesSequenceItemAdLayoutRenderer");O=cKD(O,h,U.JW,S,x,u.adSlotMetadata.triggerEvent);if(O instanceof v)return O;u=Object.assign({},x,{clientMetadata:new Zi([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});a.push(u)}else return new v("Unable to retrieve a client slot ["+ x.slotType+"] from a given AdSlotRenderer")}return a}; tGR=function(K){var W,U,h,m;return!!((W=K.q5)==null?0:(U=W.title)==null?0:U.content)||!!((h=K.q5)==null?0:(m=h.bodyText)==null?0:m.content)}; gyz=function(K){return L1(K,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; Cy=function(K,W,U,h,m,S,f,G,I,d){xn.call(this,K,W,U,h,m,S,f,I);this.Qr=G;this.ZA=d}; lR=function(){return FaD||(FaD=new Qr(null,tW))}; Ly=function(){}; bx=function(K,W){this.Tm=K;this.XO=this.author="";this.WQ=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.MY=this.lengthText="";this.sessionData=null;this.i$={};this.title="";if(W){this.ariaLabel=W.aria_label||void 0;this.author=W.author||"";this.XO=W.XO||"";if(K=W.endscreen_autoplay_session_data)this.WQ=Ii(K,"&");this.q0=W.q0;this.isLivePlayback=W.live_playback==="1";this.isUpcoming=!!W.isUpcoming;if(K=W.length_seconds)this.lengthSeconds=typeof K==="string"?Number(K):K;this.lengthText= W.lengthText||"";this.MY=W.MY||"";this.publishedTimeText=W.publishedTimeText||void 0;if(K=W.session_data)this.sessionData=Ii(K,"&");this.shortViewCount=W.short_view_count_text||void 0;this.i$=Ht(W);this.title=W.title||"";this.videoId=W.docid||W.video_id||W.videoId||W.id||void 0;this.watchUrl=W.watchUrl||void 0}}; dX=function(K,W){K.mf[K.pending++]=W>>>8&255;K.mf[K.pending++]=W&255}; A3=function(){var K=g.vB("_lact",window);return K==null?-1:Math.max(Date.now()-K,0)}; g.sb=function(K,W){return K.classList?K.classList.contains(W):g.BX(PN(K),W)}; uMs=function(K,W,U){var h=Ub(cY,W);h||(h=U.opt_nativeTime||-1,h=eu(K,W,RJ(K),h),U.opt_osdId&&(h.JK=U.opt_osdId));return h}; KE=function(K,W){var U=[];if(!W.length)return U;for(var h=0;h=S)puC(K,I,B,f,D,W.join(),m),G=D;Q.O5(2);break;case 4:return Q.return(Promise.reject(G))}})}; aw=function(K,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=K(this.triggerType)}; fg=function(K){if(!Kf(K.adLayoutMetadata))return!1;K=K.renderingContent;var W=g.P(K,GJ);return W?t5(W):(W=g.P(K,iY))?Qx(W):(W=g.P(K,Ic))?W.playerVars!==void 0:(W=g.P(K,d2))?W.durationMilliseconds!==void 0:g.P(K,Jo)||g.P(K,ej)?!0:!1}; EU=function(){Sa.apply(this,arguments)}; oyL=function(K,W){K=g.z(K.Ce);for(var U=K.next();!U.done;U=K.next())if(U=U.value,U.type===3&&W>=U.W&&W<=U.U)return!0;return!1}; LTe=function(K){g.SI("yt-player-watch-later-pending",K)}; BS=function(K,W,U){var h;((h=K.iX)==null?0:h.G9())&&K.iX.rk("rms",W,U===void 0?!1:U)}; aN=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}}; bkF=function(K){var W;if((W=K.X)==null?0:W.isLocked())return K.videoInfos;var U=j5(K.j);W=g.yb(K.videoInfos,function(h){return h.j0>K.P2.j0?!1:!U.has(h.id)}); Zke(K.j)&&(W=g.yb(W,function(h){return h.video.width<=854&&h.video.height<=480})); return W}; DN=function(K){var W=K.api.V(),U=K.api.getVideoData(),h=g.HB(W)&&g.Gj(K.api)&&g.C(K.api.getPlayerStateObject(),128);W=W.N||W.disableSharing&&K.api.getPresentingPlayerType()!==2||!U.showShareButton||U.N$||h||U.Mk||!1;h=K.api.xx().getPlayerSize().width;return!!U.videoId&&h>=K.N&&!W}; g.VY=function(K,W,U,h){h?K.jV[h]=K.N:K.jV=[K.N];K.G=W||0;K.U=U||0}; h2=function(K,W){var U=K.iX.dj();return U.isInline()&&!W.vF?new ZO(0,480,!1,"v"):HT(W)?BE:U.isBackground()&&A3()/1E3>60&&!g.PJ(K.C)?new ZO(0,360,!1,"v"):BE}; i1F=function(K){var W;if(((W=K.adVideoOffset)==null?void 0:W.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var U;return((U=K.adVideoOffset)==null?void 0:U.milliseconds)!=null&&!isNaN(Number(K.adVideoOffset.milliseconds))}; r2=function(K){g.p.call(this);this.qy=K;this.j=null;this.X=HS;this.qy("ismp_i")}; sNs=function(K){if(K=K.v3("html5_web_po_experiment_ids"))if(K=K.replace(/\[ *(.*?) *\]/,"$1"))return K.split(",").map(Number);return[]}; Y9=function(K){return K.il?["OK","LIVE_STREAM_OFFLINE"].includes(K.il.status):!0}; V2s=function(K,W){var U=(W-K.j)/(K.X-K.j);if(U<=0)return 0;if(U>=1)return 1;for(var h=0,m=1,S=0,f=0;f<8;f++){S=JP(K,U);var G=(JP(K,U+1E-6)-S)/1E-6;if(Math.abs(S-W)<1E-6)return U;if(Math.abs(G)<1E-6)break;else S1E-6&&f<8;f++)S0&&(S.nM=K.nM):K.Qn&&(S.Qn=K.Qn);S.Wl=K.Wl;S.UM=m.Bp;return S}; g.Q5=function(K,W){w2.get(K);w2.set(K,W)}; gJz=function(K){return{minBandwidthBytesPerSec:L_(K,1),minReadaheadMs:L_(K,2)}}; l5p=function(K){var W=g.i5();if(K==="Internet Explorer"){if(HCC())if((K=/rv: *([\d\.]*)/.exec(W))&&K[1])W=K[1];else{K="";var U=/MSIE +([\d\.]+)/.exec(W);if(U&&U[1])if(W=/Trident\/(\d.\d)/.exec(W),U[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":K="8.0";break;case "5.0":K="9.0";break;case "6.0":K="10.0";break;case "7.0":K="11.0"}else K="7.0";else K=U[1];W=K}else W="";return W}var h=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");U=[];for(var m;m=h.exec(W);)U.push([m[1],m[2],m[3]||void 0]); W=Ul2(U);switch(K){case "Opera":if(qx())return W(["Version","Opera"]);if(b3()?Nh("Opera"):yV("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(b3()?0:yV("Edge"))return W(["Edge"]);if(URs())return W(["Edg"]);break;case "Chromium":if(Mh())return W(["Chrome","CriOS","HeadlessChrome"])}return K==="Firefox"&&Ez()||K==="Safari"&&$d()||K==="Android Browser"&&m9s()||K==="Silk"&&yV("Silk")?(W=U[2])&&W[1]||"":""}; OU=function(K,W,U,h,m){vh.call(this,K,{T:"div",Z:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",W,U,h,m===void 0?null:m);var S=this;this.j=null;this.N=new Yd(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,["ytp-ad-instream-user-sentiment-like-button"]);g.k(this,this.N);this.N.U5(this.element);this.X=new Yd(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,["ytp-ad-instream-user-sentiment-dislike-button"]);g.k(this,this.X);this.X.U5(this.element); this.W=new g.Wr(this,400,!1,500,function(){return S.hide()}); g.k(this,this.W);this.hide()}; g.Ye=function(K){K&=16777215;var W=[(K&16711680)>>16,(K&65280)>>8,K&255];K=W[0];var U=W[1];W=W[2];K=Number(K);U=Number(U);W=Number(W);if(K!=(K&255)||U!=(U&255)||W!=(W&255))throw Error('"('+K+","+U+","+W+'") is not a valid RGB color');U=K<<16|U<<8|W;return K<16?"#"+(16777216|U).toString(16).slice(1):"#"+U.toString(16)}; hxY=function(K,W){return(K=K.flags.get(""+W))?K.toString():""}; au=function(){this.j=[];this.X=null;this.G=0;this.N=[];this.U=!1;this.Y="";this.W=-1}; jTp=function(K){K.j.forEach(function(W){cS(K,W)})}; g2=function(){g.nE.apply(this,arguments);this.Ft=(this.v1=g.HB(this.api.V()))&&(this.api.V().X||xF()||Y3());this.JY=48;this.VS=69;this.cT=this.wj=null;this.qo=[];this.ey=this.Gz=this.Gc=this.nO=this.Y$=null;this.X3=[];this.contextMenu=this.ET=this.overflowButton=this.kq=this.ou=this.searchButton=this.copyLinkButton=this.shareButton=this.hn=this.e7=this.title=this.channelAvatar=this.EQ=this.tooltip=null;this.Dr=!1;this.I7=this.ij=this.nY=this.LY=null;this.LfX=this.NG=this.gJ=!1}; GyR=function(K){K.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];K.Y=[];K.Y.length=64;K.W=0;K.X=0}; ml_=function(K,W,U){K=K.X;var h=g.FK(K,{Ua:W},function(f,G){return f.Ua-G.Ua}); h=h<0?(h+2)*-1:h;if(h>=0)for(var m=h;m<=h+1&&m=S.Ua-U&&W<=S.W2+U)return S}}; uC=function(K){this.zm=K}; EQ=function(K,W){var U=U===void 0?{}:U;K={method:W===void 0?"POST":W,mode:wa(K)?"same-origin":"cors",credentials:wa(K)?"same-origin":"include"};W={};for(var h=g.z(Object.keys(U)),m=h.next();!m.done;m=h.next())m=m.value,U[m]&&(W[m]=U[m]);Object.keys(W).length>0&&(K.headers=W);return K}; OB=function(K){return StD(K.N)}; eo=function(K){this.value=K}; rJ=function(){var K=/\sCobalt\/(\S+)\s/.exec(g.i5());if(!K)return NaN;var W=[];K=g.z(K[1].split("."));for(var U=K.next();!U.done;U=K.next())U=parseInt(U.value,10),U>=0&&W.push(U);return parseFloat(W.join("."))}; fnC=function(){this.j=this.Y=this.N=this.X=this.jV=this.G=this.Ms=this.J=this.U=this.W=!1}; rsY=function(K,W){this.X=(new TextEncoder).encode(K);this.j=(new TextEncoder).encode(W)}; kd=function(K,W){Xa(K,1,W.startTicks);Xa(K,2,W.rK);Xa(K,3,W.timescale)}; tLs=function(K){this.j=K}; fH=function(K,W){for(var U=[];C_(K,W);)U.push(le(K));return U.length?U:void 0}; I9=function(K){return K.qJ&&K.enableServerStitchedDai}; G9=function(K){var W=K.api.V().L("enable_linear_program_progress"),U=K.api.getPresentingPlayerType()===2;return K.Ls&&!tZ(K)&&(!W||!K.X)&&!U}; GbF=function(K){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=K(this.triggerType)}; In2=function(){this.j=new Map}; XTC=function(K,W,U,h,m){g.p.call(this);var S=this,f=tp(function(){return new IR(S.Xx)}); g.k(this,f);var G=tp(function(){return new dq(f,S.Xx)}); g.k(this,G);var I=tp(function(){return new Jp}); g.k(this,I);var d=tp(function(){return new ea(K)}); g.k(this,d);var J=tp(function(){return new E9(f,G,S.Xx)}); g.k(this,J);var e=tp(function(){return new BI}); g.k(this,e);this.bY=tp(function(){return new DY(W)}); g.k(this,this.bY);this.kd=tp(function(){return new HI(m)}); g.k(this,this.kd);this.Hl=tp(function(){return new rq(W)}); g.k(this,this.Hl);this.Oa=tp(function(){return new TS(W)}); g.k(this,this.Oa);this.hS=tp(function(){return new aR(W)}); g.k(this,this.hS);this.xm=tp(function(){return new wq(W)}); g.k(this,this.xm);this.Xx=tp(function(){return new QZ(W)}); g.k(this,this.Xx);var E=tp(function(){return new $i(h)}); g.k(this,E);var B=tp(function(){return new Yi(S.Xx)}); g.k(this,B);var D=tp(function(){return new O9(f,J,G,S.Xx,B,null,null,S.J3,S.wm)}); g.k(this,D);this.JO=tp(function(){return new cI(W)}); g.k(this,this.JO);this.F0=tp(function(){return new KX}); g.k(this,this.F0);this.ZA=tp(function(){return new nA(W,e,S.Xx)}); g.k(this,this.ZA);var a=gq({ZA:this.ZA,Xx:this.Xx,uB:B}),Q=a.context,u=a.Pu;this.Yd=a.Yd;this.K5=tp(function(){return new Wa(W,S.Xx,S.zm)}); this.dk=tp(function(){return new F5(W,S.ZA,S.Xx)}); g.k(this,this.dk);this.au=tp(function(){return new ub}); g.k(this,this.au);this.yg=tp(function(){return new ki(S.dk,W,S.Xx)}); g.k(this,this.yg);this.zm=tp(function(){return new ib(W,I,S.yg,S.ZA,S.Yd,S.Xx,u)}); g.k(this,this.zm);this.E_=tp(function(){return new zS(S.Xx)}); g.k(this,this.E_);this.C1=new NW(UK,Ap,function(N,A,Z,x){return h6(G.get(),N,A,Z,x)},d,J,G,B,this.Xx,this.ZA); g.k(this,this.C1);this.DX=new RR(d,D,U,this.Xx,K,this.ZA,this.dk,this.Hl);g.k(this,this.DX);var O=new yZ(W,this.DX,this.dk,this.ZA,this.K5);this.G5=tp(function(){return O}); this.Y8=O;this.J3=new jE(d,J,this.G5,this.K5,this.dk,this.Xx,this.zm);g.k(this,this.J3);this.KC=new MW(d,J,this.Oa,this.G5,Q);g.k(this,this.KC);this.H2=new PI(this.Xx,d,J,D,this.ZA,this.KC,U,this.hS);g.k(this,this.H2);this.qN=tp(function(){return new pA(E,G,B,S.Xx,S.zm,S.dk)}); g.k(this,this.qN);this.O_=tp(function(){return new oR}); g.k(this,this.O_);this.Wu=new ZY(K,this.bY,this.Xx);g.k(this,this.Wu);this.sz=new bb(K);g.k(this,this.sz);this.NB=new m0(K);g.k(this,this.NB);this.Bu=new s9(K,this.G5,Q);g.k(this,this.Bu);this.Iw=new VZ(K,this.Oa,this.dk,this.ZA,Q);g.k(this,this.Iw);this.Lc=new X5(K);g.k(this,this.Lc);this.xT=new vI(K);g.k(this,this.xT);this.Ue=new t6(K);g.k(this,this.Ue);this.TK=tp(function(){return new BT(W)}); g.k(this,this.TK);this.m1=new qW(K);g.k(this,this.m1);this.wm=new fX(K,this.K5,this.dk,this.zm,this.G5,this.J3);g.k(this,this.wm);this.Xc=tp(function(){return new xi}); g.k(this,this.Xc);this.g_=tp(function(){return new CA(S.dk)}); g.k(this,this.g_);this.kT=tp(function(){return new lb(S.H2,d,f)}); g.k(this,this.kT);this.AD=tp(function(){return new LA(S.Xx,S.zm,S.Lc,S.yg)}); g.k(this,this.AD);this.xX=tp(function(){return new dls(S.bY,S.dk,S.zm,I,S.yg,S.NB,S.Ue,S.kd,S.Xx,U)}); g.k(this,this.xX);this.lK=tp(function(){return new K7(K,S.m1,S.Lc,S.zm,S.yg,S.E_,S.hS,S.ZA,S.dk,S.au,S.Oa,S.Hl,S.xm,S.kd,S.JO,S.Xx,S.TK,Q,u)}); g.k(this,this.lK);this.uC=new I1(K,this.F0,f);g.k(this,this.uC);this.YL={jl:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.H2],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.J3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.C1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.KC]]),Ga:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qN],["SLOT_TYPE_FORECASTING",this.O_],["SLOT_TYPE_IN_PLAYER",this.O_], ["SLOT_TYPE_PLAYER_BYTES",this.O_]]),IC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wu],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.sz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.sz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.sz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.sz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.sz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.sz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.sz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.sz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.sz], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.sz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.NB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Iw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Iw],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Iw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Lc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Ue],["TRIGGER_TYPE_AD_BREAK_STARTED",this.m1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.wm],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wm],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wm],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wm]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xc],["SLOT_TYPE_FORECASTING",this.Xc],["SLOT_TYPE_IN_PLAYER",this.Xc],["SLOT_TYPE_PLAYER_BYTES",this.g_]]), Wx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kT],["SLOT_TYPE_FORECASTING",this.AD],["SLOT_TYPE_IN_PLAYER",this.xX],["SLOT_TYPE_PLAYER_BYTES",this.lK]])};this.listeners=[I.get()];this.vL={H2:this.H2,hB:this.Xx.get(),s5:this.kd.get(),bR:this.dk.get(),DX:this.DX,JM:f.get(),w6:this.F0.get(),RP:this.Wu,tB:I.get(),i5:this.ZA.get()}}; WY=function(K){return K!=null&&K>=0&&K<=1}; D2s=function(K){var W=K.Us(),U=1,h=!1,m=yiR(K,W,K.getVideoAspectRatio()),S=K.app.V(),f=S.L("enable_desktop_player_underlay"),G=VO$(),I=g.jV(S.experiments,"player_underlay_min_player_width");I=f&&K.YC&&K.getPlayerSize().width>I;if(g9(K)){var d=JRz(K);var J=isNaN(d)||g.iC||yS&&g.$c||I;iy&&!g.rs(601)?d=m.aspectRatio:J=J||S.controlsType==="3";J?I?(J=S.L("place_shrunken_video_on_left_of_player")?16:K.getPlayerSize().width-W.width-16,d=Math.max((K.getPlayerSize().height-W.height)/2,0),J=new g.Bh(J,d,W.width, W.height),K.iY.style.setProperty("border-radius","12px")):J=new g.Bh(0,0,W.width,W.height):(U=m.aspectRatio/d,J=new g.Bh((W.width-m.width/U)/2,(W.height-m.height)/2,m.width/U,m.height),U===1&&g.$c&&(d=J.width-W.height*d,d>0&&(J.width+=d,J.height+=d)));g.JM(K.element,"ytp-fit-cover-video",Math.max(J.width-m.width,J.height-m.height)<1);if(G||K.W_)K.iY.style.display="";K.JI=!0}else{J=-W.height;iy?J*=window.devicePixelRatio:g.Qv&&(J-=window.screen.height);J=new g.Bh(0,J,W.width,W.height);if(G||K.W_)K.iY.style.display= "none";K.JI=!1}zJ(K.md,J)||(K.md=J,g.r8(S)?(K.iY.style.setProperty("width",J.width+"px","important"),K.iY.style.setProperty("height",J.height+"px","important")):g.Dl(K.iY,J.getSize()),h=new g.SA(J.left,J.top),g.tw(K.iY,Math.round(h.x),Math.round(h.y)),h=!0);W=new g.Bh((W.width-m.width)/2,(W.height-m.height)/2,m.width,m.height);zJ(K.XG,W)||(K.XG=W,h=!0);g.Zd(K.iY,"transform",U===1?"":"scaleX("+U+")");f&&I!==K.h$&&(I&&(K.iY.addEventListener(DH,K.cC),K.iY.addEventListener("transitioncancel",K.cC),K.iY.classList.add(g.EW.VIDEO_CONTAINER_TRANSITIONING)), K.h$=I,K.app.Yx.publish("playerUnderlayVisibilityChange",K.h$?"transitioning":"hidden"));return h}; g.NG=function(K){return K.translationLanguage?K.translationLanguage.languageCode:K.languageCode}; exs=function(K){var W=Array.from(K.j.keys()).sort(function(h,m){return nk(K,K.j[m])-nk(K,K.j[h])}); W=g.z(W);for(var U=W.next();!U.done;U=W.next())U=K.j[U.value],U.jobId===void 0||U.z2||(K.scheduler.tD(U.jobId),K3(U.sU,10))}; BH=function(K,W){this.X=K>>>0;this.j=W>>>0}; aK=function(K,W,U){K.qs();K.j.get(W)&&g.wG(Error("Extension name "+W+" already registered"));K.j.set(W,U)}; y5=function(K){var W=K.mediaElement;W&&K.kQ&&!K.videoData.J&&!t3("vfp",K.aW.timerName)&&W.yn()>=2&&!W.isEnded()&&Ao(W.Po())&&K.aW.tick("vfp");return(W=K.mediaElement)&&!K.videoData.J&&W.getDuration()>0&&(W.isPaused()&&W.yn()>=2&&Ao(W.Po())&&(t3("pbp",K.aW.timerName)||K.aW.tick("pbp"),!K.videoData.M9||K.h2||W.isSeeking()||(K.h2=!0,K.publish("onPlaybackPauseAtStart"))),W=W.getCurrentTime(),Rc(K.S8,W))?(K.NS(),!0):!1}; X3p=function(K,W){K.Y=W;K.j=g.BB("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:W.toString()});W=K.W.map(KG);W.unshift(K.j);K.X&&W.push(K.X);K.Wa(W)}; cC=function(){}; Fds=function(K){return MG(function(){var W;return(W=K.Hd.get("asmjs"))!=null?W:EWs(K)})}; P8Y=function(K){fZ(K,"getInternalApiInterface",K.getInternalApiInterface);fZ(K,"addEventListener",K.IM);fZ(K,"removeEventListener",K.XuH);fZ(K,"cueVideoByPlayerVars",K.vP);fZ(K,"loadVideoByPlayerVars",K.G95);fZ(K,"preloadVideoByPlayerVars",K.Ipk);fZ(K,"getAdState",K.getAdState);fZ(K,"sendAbandonmentPing",K.sendAbandonmentPing);fZ(K,"setLoopRange",K.setLoopRange);fZ(K,"getLoopRange",K.getLoopRange);fZ(K,"setAutonavState",K.setAutonavState);fZ(K,"seekTo",K.G8x);fZ(K,"seekBy",K.eVV);fZ(K,"seekToLiveHead", K.seekToLiveHead);fZ(K,"requestSeekToWallTimeSeconds",K.requestSeekToWallTimeSeconds);fZ(K,"seekToStreamTime",K.seekToStreamTime);fZ(K,"prefetchKeyPlay",K.prefetchKeyPlay);fZ(K,"startSeekCsiAction",K.startSeekCsiAction);fZ(K,"getStreamTimeOffset",K.getStreamTimeOffset);fZ(K,"getVideoData",K.rKk);fZ(K,"setInlinePreview",K.setInlinePreview);fZ(K,"getAppState",K.getAppState);fZ(K,"updateLastActiveTime",K.updateLastActiveTime);fZ(K,"setBlackout",K.setBlackout);fZ(K,"setUserEngagement",K.setUserEngagement); fZ(K,"updateSubtitlesUserSettings",K.updateSubtitlesUserSettings);fZ(K,"getPresentingPlayerType",K.fm);fZ(K,"canPlayType",K.canPlayType);fZ(K,"updatePlaylist",K.updatePlaylist);fZ(K,"updateVideoData",K.updateVideoData);fZ(K,"updateEnvironmentData",K.updateEnvironmentData);fZ(K,"sendVideoStatsEngageEvent",K.S4k);fZ(K,"productsInVideoVisibilityUpdated",K.productsInVideoVisibilityUpdated);fZ(K,"setSafetyMode",K.setSafetyMode);fZ(K,"isAtLiveHead",function(W){return K.isAtLiveHead(void 0,W)}); fZ(K,"getVideoAspectRatio",K.getVideoAspectRatio);fZ(K,"getPreferredQuality",K.getPreferredQuality);fZ(K,"getPlaybackQualityLabel",K.getPlaybackQualityLabel);fZ(K,"setPlaybackQualityRange",K.Fsx);fZ(K,"onAdUxClicked",K.onAdUxClicked);fZ(K,"getFeedbackProductData",K.getFeedbackProductData);fZ(K,"getStoryboardFrame",K.getStoryboardFrame);fZ(K,"getStoryboardFrameIndex",K.getStoryboardFrameIndex);fZ(K,"getStoryboardLevel",K.getStoryboardLevel);fZ(K,"getNumberOfStoryboardLevels",K.getNumberOfStoryboardLevels); fZ(K,"getCaptionWindowContainerId",K.getCaptionWindowContainerId);fZ(K,"getAvailableQualityLabels",K.getAvailableQualityLabels);fZ(K,"addCueRange",K.addCueRange);fZ(K,"addUtcCueRange",K.addUtcCueRange);fZ(K,"showAirplayPicker",K.showAirplayPicker);fZ(K,"dispatchReduxAction",K.dispatchReduxAction);fZ(K,"getPlayerResponse",K.cG);fZ(K,"getWatchNextResponse",K.Nkr);fZ(K,"getHeartbeatResponse",K.F$);fZ(K,"getCurrentTime",K.Jj);fZ(K,"getDuration",K.Zt);fZ(K,"getPlayerState",K.getPlayerState);fZ(K,"getPlayerStateObject", K.xe);fZ(K,"getVideoLoadedFraction",K.getVideoLoadedFraction);fZ(K,"getProgressState",K.getProgressState);fZ(K,"getVolume",K.getVolume);fZ(K,"setVolume",K.W$);fZ(K,"isMuted",K.isMuted);fZ(K,"mute",K.nh);fZ(K,"unMute",K.B$);fZ(K,"loadModule",K.loadModule);fZ(K,"unloadModule",K.unloadModule);fZ(K,"getOption",K.Fl);fZ(K,"getOptions",K.getOptions);fZ(K,"setOption",K.setOption);fZ(K,"loadVideoById",K.GN);fZ(K,"loadVideoByUrl",K.ZG);fZ(K,"playVideo",K.qq);fZ(K,"loadPlaylist",K.loadPlaylist);fZ(K,"nextVideo", K.nextVideo);fZ(K,"previousVideo",K.previousVideo);fZ(K,"playVideoAt",K.playVideoAt);fZ(K,"getDebugText",K.getDebugText);fZ(K,"getWebPlayerContextConfig",K.getWebPlayerContextConfig);fZ(K,"notifyShortsAdSwipeEvent",K.notifyShortsAdSwipeEvent);fZ(K,"getVideoContentRect",K.getVideoContentRect);fZ(K,"setSqueezeback",K.setSqueezeback);fZ(K,"toggleSubtitlesOn",K.toggleSubtitlesOn);fZ(K,"isSubtitlesOn",K.isSubtitlesOn);fZ(K,"getAudioTrack",K.GA);fZ(K,"setAudioTrack",K.Bik);fZ(K,"getAvailableAudioTracks", K.vG);fZ(K,"reportPlaybackIssue",K.reportPlaybackIssue);fZ(K,"setAutonav",K.setAutonav);fZ(K,"isNotServable",K.isNotServable);fZ(K,"channelSubscribed",K.channelSubscribed);fZ(K,"channelUnsubscribed",K.channelUnsubscribed);fZ(K,"togglePictureInPicture",K.togglePictureInPicture);fZ(K,"supportsGaplessAudio",K.supportsGaplessAudio);fZ(K,"supportsGaplessShorts",K.supportsGaplessShorts);fZ(K,"enqueueVideoByPlayerVars",function(W){return void K.enqueueVideoByPlayerVars(W)}); fZ(K,"clearQueue",K.clearQueue);fZ(K,"getMaxPlaybackQuality",K.getMaxPlaybackQuality);fZ(K,"getUserPlaybackQualityPreference",K.getUserPlaybackQualityPreference);fZ(K,"getSubtitlesUserSettings",K.getSubtitlesUserSettings);fZ(K,"resetSubtitlesUserSettings",K.resetSubtitlesUserSettings);fZ(K,"setMinimized",K.setMinimized);fZ(K,"setOverlayVisibility",K.setOverlayVisibility);fZ(K,"confirmYpcRental",K.confirmYpcRental);fZ(K,"queueNextVideo",K.queueNextVideo);fZ(K,"handleExternalCall",K.handleExternalCall); fZ(K,"logApiCall",K.logApiCall);fZ(K,"isExternalMethodAvailable",K.isExternalMethodAvailable);fZ(K,"setScreenLayer",K.setScreenLayer);fZ(K,"getCurrentPlaylistSequence",K.getCurrentPlaylistSequence);fZ(K,"getPlaylistSequenceForTime",K.getPlaylistSequenceForTime);fZ(K,"shouldSendVisibilityState",K.shouldSendVisibilityState);fZ(K,"syncVolume",K.syncVolume);fZ(K,"highlightSettingsMenuItem",K.highlightSettingsMenuItem);fZ(K,"openSettingsMenuItem",K.openSettingsMenuItem);fZ(K,"getEmbeddedPlayerResponse", K.getEmbeddedPlayerResponse);fZ(K,"getVisibilityState",K.getVisibilityState);fZ(K,"isMutedByMutedAutoplay",K.isMutedByMutedAutoplay);fZ(K,"isMutedByEmbedsMutedAutoplay",K.isMutedByEmbedsMutedAutoplay);fZ(K,"setGlobalCrop",K.setGlobalCrop);fZ(K,"setInternalSize",K.setInternalSize);fZ(K,"setFauxFullscreen",K.setFauxFullscreen);fZ(K,"setAppFullscreen",K.setAppFullscreen)}; B_2=function(K){Object.keys(K).forEach(function(W){var U=K[W];if(typeof U(void 0,{type:PS})==="undefined")throw Error('The slice reducer for key "'+W+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof U(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+KY()})==="undefined")throw Error('The slice reducer for key "'+ W+"\" returned undefined when probed with a random type. Don't try to handle '"+(PS+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; YCY=function(K){K.uX||(K.uX=!0,K.dispatchEvent("complete"),K.dispatchEvent("error"))}; D6=function(K,W,U){if((K|88)==K){if(!(pE(W[t[5]])||W[t[5]][t[28]](t[32])||W[t[5]][t[28]](t[62])||W[t[5]][t[28]](t[88])))throw new g.EB(t[66],W[t[5]]);var h=g.uF(W[t[5]]);W[t[30]]=h[t[70]];W[t[20]]=h[t[8]]+(h[t[20]]!=null?t[49]+h[t[20]]:t[3]);var m=h[t[5]];if(m[t[28]](t[42]))W[t[14]]=t[42],m=m[t[41]](14);else if(m[t[28]](t[77]))W[t[14]]=t[77],m=m[t[41]](13);else if(m[t[28]](t[61])){var S=Do(16,m,W);m=S[0];W=S[1]}else W[t[14]]=m,m=t[3];S=W[t[8]];W[t[8]]=HF(4,m);Object[t[71]](W[t[8]],gt(1,h[t[15]][t[44]]())); Object[t[71]](W[t[8]],S);W[t[8]][t[50]]===t[75]&&(delete W[t[8]][t[50]],W[t[14]]+=t[80]);W[t[5]]=t[3];W[t[0]]=t[3];W[t[15]]&&(h=HF(49,W),W=h[0]);var f=[W]}if((K-8&15)>=1&&(K|6)>>5<1)for(W=(W%U[t[4]]+U[t[4]])%U[t[4]];W--;)U[t[78]](U[t[74]]());if((K+6&59)=K){try{W[0]!==10&&(W[1]!==5?(0,W[66])(W[37]):(0,W[50])((0,W[35])(),W[69],W[13]))}catch(I){(0,W[50])((0,W[35])(),W[69],W[13])}try{W[28]<-7&&(0,W[19])((0,W[60])(W[25],W[96%Math[t[79]](3,new Date(t[51])/1E3)+11]),(0,W[84])((0,W[2])((0,W[67])(W[17], W[32]),W[60],(0,W[50])((0,W[11])(),W[69],W[13]),W[1],W[37]),W[40],W[37],W[70]),W[84],(0,W[84])((0,W[56])(W[17],W[55]),W[60],W[81],W[69]),((0,W[40])(W[79],W[48]),W[60])(W[7],W[3]),(0,W[28])(W[31],W[new Date(t[43])/1E3]),W[48],W[32],W[67])}catch(I){(0,W[64])(W[35])}try{var G=Rg(1,W,Date);W=G[0];Date=G[1]}catch(I){G=Ig(65,W),W=G[0]}f=[W]}(K&47)==K&&(U=(U%W[t[4]]+W[t[4]])%W[t[4]],W[t[35]](U,1));(K<<2&15)==4&&U[t[35]](U[t[4]],0,W);return f}; sU=function(){oc.call(this);this.N=new E0;this.vp=this.jV=this.DA=0;this.J=-1;this.M5=new E0;this.U=new E0;this.j=new ZN;this.G=this.W=-1;this.Ms=new E0;this.Ik=2E3;this.eV=new bC;this.Pp=new bC;this.JK=new bC}; Jv=function(K,W,U,h){h.info.Wp.LC();var m=h.info.Wp.j;if(!m||!U.xG()||U.zp()===m)return!1;var S=m,f=U.j9();if(K.policy.e2&&f&&U.isView()&&g.Yv(h.info.Wp.info)){var G=new DataView(m.buffer,m.byteOffset,m.byteLength);(f=Jce(G,f))?S=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):K.rk("fenc",{})}K.policy.eM&&(f=YMs(K,h,new WQ([S])))&&(S=s1(f));var I;(f=h.info.Wp.Gp(0,h.info.clipId))&&(I=f.Ce[0]);if(h===K.oW){if(K.eV+=1,K.iX.getVideoData().L("html5_shorts_gapless_restart_on_init_seg_retries")&&K.eV> 5)return K.eV=0,K.iX.ll({initSegStuck:1,as:h.info.m6()}),!0}else K.eV=0,K.oW=h;K.policy.J1&&(U.abort(),(f=W.J)!=null&&(Lw(f,4),f.flush()));m=Odz(K,U,S,I,m);(W=W.J)!=null&&(W.flush(),W.X=I,Lw(W,3,m));if(m!==0)return K.policy.xY&&IG(K.iX.getVideoData())?(K.iX.Zq()||eQ(K,"sepInit",m,h.info),S6p(K.iX,"sie")):eQ(K,"sepInit",m,h.info),!0;h.info.ZE()?(I=K.timing,I.eV||(I.eV=(0,g.AI)(),g.sj("vis_a",I.eV,I.j))):(I=K.timing,I.Y||(I.Y=(0,g.AI)(),g.sj("ais_a",I.Y,I.j)));(h=h.info.Wp.pY)&&K.iX.Gi(new Bg(h.key, h.type));return U.ev()}; Cks=function(K,W,U,h){return W&&U.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?K.map(function(m){return m instanceof M$?new mx(function(S){return Rp(h,S)},U.adSlotMetadata.slotId):m}):K}; V5=function(K,W){if(K.JD()===K.gi.length-1)K.z1++,nw(K.oD,K.layout,"normal"),K.k5()||eL(K.Hl.get());else a:{if(K.JD()===-1&&(K.callback.Fo(K.slot,K.layout),W>0)){UF("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",K.slot,K.layout,{indexToPlay:W,layoutId:K.layout.layoutId});break a}K.z1=W;W=K.Pd();if(K.JD()>0&&!K.k5()){var U=K.Hl.get();U.X=!1;var h={};U.j&&U.videoId&&(h.cttAuthInfo={token:U.j,videoId:U.videoId});BN("ad_to_ad",h)}U=g.P(W.VH().renderingContent,d2);if(U==null?0: U.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var m;U=!((m=K.au.get().BSA.get(U.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&m)}else U=!1;U?V5(K,K.JD()+1):K.l4(W)}}; pqR=function(K,W){this.layoutId=W;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=K(this.triggerType)}; g.kn=function(K,W){this.id=K;this.ZO=W;this.captionTracks=[];this.N=this.W=null;this.xtags="";this.G=this.U=!1;this.j=null;this.X="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";K=this.ZO.id.split(".");K.length>1&&(this.U=K[1]==="2",this.G=K[1]==="4")}; XK=function(K,W,U){U=U===void 0?!1:U;var h=K.V().eV?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:K.L("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};h=K.L("delhi_modern_web_player")?{T:"div",Z:"ytp-mute-button",K:[{T:"button",B:h,Hp:["ytp-volume-icon", "ytp-button"],bX:"{{icon}}"}]}:{T:"button",Hp:["ytp-mute-button","ytp-button"],B:h,K:[{T:"div",Z:"ytp-volume-icon",bX:"{{icon}}"}]};g.y.call(this,h);this.D=K;this.Le=U;this.X=null;this.G=this.Ns=this.J=this.Y=NaN;this.hK=this.Ms=null;this.U=[];this.W=[];this.visible=!1;this.N=this.j=this.uX=null;K.L("delhi_modern_web_player")&&this.update({"data-priority":4});U=this.D.V();this.updateValue("icon",TM());this.tooltip=W.Fd();this.updateValue("dataTooltipOffsetY",0);this.N=g.$K("ytp-volume-icon",this.element); h=this.D.L("delhi_modern_web_player_icons")?{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",Hp:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{T:"path",Z:"ytp-svg-volume-animation-small-ripple",B:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{T:"path",Z:"ytp-svg-volume-animation-big-ripple",B:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"defs",K:[{T:"clipPath",B:{id:"ytp-svg-volume-animation-mask"},K:[{T:"path",B:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{T:"path",B:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{T:"path",Z:"ytp-svg-volume-animation-mover",B:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{T:"clipPath",B:{id:"ytp-svg-volume-animation-slash-mask"},K:[{T:"path",Z:"ytp-svg-volume-animation-mover", B:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{T:"path",Qt:!0,Hp:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{T:"path",Qt:!0,Hp:["ytp-svg-fill","ytp-svg-volume-animation-hider"],B:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.X=new g.Md(h);g.k(this,this.X);this.Ms=this.X.yH("ytp-svg-volume-animation-speaker");this.hK=this.Ms.getAttribute("d");this.U=g.dx("ytp-svg-volume-animation-mover",this.X.element);this.D.L("delhi_modern_web_player_icons");this.W=g.dx("ytp-svg-volume-animation-hider",this.X.element);this.D.L("delhi_modern_web_player_icons");this.eV=new BR;g.k(this,this.eV);this.DA=new BR;g.k(this,this.DA);this.S(K,"appresize",this.PK);this.S(K,"onVolumeChange",this.onVolumeChange);K.L("delhi_modern_web_player")? this.listen("click",this.h$r):this.listen("click",this.gL);U.eV?(K.L("delhi_modern_web_player")&&!K.L("delhi_modern_web_player_horizontal_volume_controls")&&(this.j=new Dlp(K,W),this.j.U5(this.element),g.k(this,this.j),this.S(this.N,"mouseover",this.Rr),this.S(this.N,"focus",this.Rr),this.S(this.N,"mouseout",this.Zi),this.S(this.N,"blur",this.Zi)),U=K.L("delhi_modern_web_player")?this.N:this.element,this.addOnDisposeCallback(g.tk(W.Fd(),U))):v22(this);this.message=null;K.createClientVe(this.element, this,28662);this.PK(K.xx().getPlayerSize());this.setVolume(K.getVolume(),K.isMuted())}; ER=function(K,W,U,h){xo.call(this,K,W,U,h);var m=this;this.U=null;this.xd={R2:function(S,f,G,I){return m.R2(S,f,G,I)}}; this.index=new g.BQ}; vS=function(K){if(K.D.L("web_player_rtr_ctrls")&&K.D.xx().Cl)return 0;var W=K.D.Hu(),U=K.D.getVideoData().Mk,h=0;K.D.Hu()&&K.D.isEmbedsShortsMode()&&(h=(K.D.xx().getPlayerSize().width-K.D.getVideoContentRect().width)/2);return 12*(U?0:W?2:1)+h}; Xr=function(K){var W=K.L("html5_enable_server_format_filter")&&!K.nC(),U=K.L("html5_enable_server_format_filter_for_drm")&&K.nC();return HT(K)&&(W||U)}; tzR=function(K,W,U,h,m,S,f,G,I){var d=IS(g.P(W,iY),I),J=U.lq,e=U.w4,E=Math.min(J+d.videoLengthSeconds*1E3,G);U.lq=E;U.w4++;U.Tjk.push(d.videoLengthSeconds);var B,D,a=(B=g.P(W,iY))==null?void 0:(D=B.playerOverlay)==null?void 0:D.instreamSurveyAdRenderer;if(d.adVideoId==="nPpU29QrbiU"&&a==null)throw new TypeError("Survey slate media has no survey overlay");return function(Q){cf(d.playerVars,Q);var u,O,N=d.videoLengthSeconds,A=d.playerVars,Z=d.uZ,x=d.rB,b=d.instreamAdPlayerOverlayRenderer,KR=d.playerOverlayLayoutRenderer, fR=d.adVideoId,jp=(u=g.P(W,iY))==null?void 0:u.adLayoutLoggingData;u=(O=g.P(W,iY))==null?void 0:O.sodarExtensionData;O=bh(h.X.get(),"LAYOUT_TYPE_MEDIA",K);var I2={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",wk:"adapter"};Q={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",uZ:Z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"adapter",clientMetadata:new Zi([new i2(f),new YA(N),new zI(A),new SQ(J),new ff(E), new yl(e),new NV({current:null}),b&&new OH(b),KR&&new cw(KR),new vM(S),new kq(fR),new u2(Q),u&&new oX(u),a&&new ig(a),new Pq({}),new vJ(x)].filter(NMp)),t7:m(I2),adLayoutLoggingData:jp};N=HQY(g.P(W,iY),S,f,Q.layoutId,h);return{Vf:Q,ack:N}}}; g.Rh=function(K,W,U){return p0(K.j.put(W,U))}; g.qG=function(K){return new iS({trackingParams:K})}; rRF=function(K,W,U,h,m,S){S=S===void 0?!0:S;var f=K.hv();if(!f)return S&&K.getVideoData().isLivePlayback&&K.mN.push({id:W,pNe:U,Mis:h}),!1;S=f-K.getCurrentTime();return V8(K,W,U-S,h-S,void 0,void 0,m)}; IQ=function(K){if(!K.G){if(g.Yv(K.info.Wp.info)){var W=g.jI(K);var U=Fh(W,0,1836019574);if(U){U=U.offset+U.size;var h=new Uint8Array(U);h.set(new Uint8Array(W.buffer,W.byteOffset,U));W=h}else W=null}else W=fUe(new XF(g.jI(K)));W&&(K.info.Wp.j=W,K.G=!0)}}; Jp=function(){g.p.apply(this,arguments);this.l5=!0;this.kM=new Map;this.j=new Map}; bY=function(K,W,U,h,m){U&&(T_2(K,W,m===void 0?3:m),h(K,U),JjC(K))}; an_=function(K){var W=KJ(K)==="adunit"?K.GZ:QU(K)?KJ(K)==="detailpage"||KJ(K)==="shortspage"?K.isAutonav||K.Bp>0:K.oW?!1:K.Tm.A3||K.Tm.X8||!g.HB(K.Tm)?!0:!1:(K.oW?0:K.Ny)&&g.HB(K.Tm)?!0:!1;K.L("html5_log_detailpage_autoplay")&&KJ(K)==="detailpage"&&K.rk("autoplay_info",{autoplay:K.pN,autonav:K.isAutonav,wasDompaused:K.oW,result:W});return W}; QTL=function(K,W){if(W.info.video){if(K.N!==W)return K.N=W,wpz(K)}else K.Bp=K.Y!==W,K.Y=W;return null}; $lC=function(K,W){return new g.Zb("INCOMPATIBLE_DB_VERSION",{dbName:K.name,oldVersion:K.options.version,newVersion:W})}; f1=function(K,W){return Math.abs(xd*W-K)<1||Math.abs(xd/K-W)<1?xd:K/W}; CE=function(K,W){K.j.delete(W.Fg())||UF("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; U6=function(K){this.j=K;this.pos=0;this.X=-1}; Yt$=function(K,W,U){K instanceof String&&(K=String(K));for(var h=K.length,m=0;m1E5||++W.X})}; nWC=function(K){var W=im$(K);if(W)return K.videoData.getAvailableAudioTracks().find(function(U){return U.ZO.getName()===W})}; u0R=function(K,W){var U=pl().resolve(gWR);if(FSC(W)){var h=xT(W,"gclid");W={handleEvent:function(G){K&&!K.closed&&typeof K.postMessage==="function"&&G&&G.origin&&G.source===K&&G.data&&G.data.action==="gcl_setup"&&K.postMessage(Object.assign({},{action:"gcl_transfer"},h&&{gclid:h},{gadSource:2}),G.origin)}}; for(var m=g.z(U.j),S=m.next();!S.done;S=m.next()){var f=g.z(S.value);S=f.next().value;f=f.next().value;if(S.closed)try{window.removeEventListener("message",f),U.j.delete(S)}catch(G){g.wG(G)}}K&&U.j.size<15&&(U.j.set(K,W),window.addEventListener("message",W))}}; fk=function(K){return K.Ce[K.Ce.length-1].type===4}; Ju=function(K,W,U,h,m){g.p.call(this);this.webPlayerContextConfig=W;this.rQ=h;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.XX=this.M5=this.bG=this.Sz=this.userDisplayName=this.userDisplayImage=this.N2="";this.j={};this.W3={};this.controlsType="0";this.gf=NaN;this.Ik=!1;this.pC=(0,g.AI)();this.Qg=0;this.ul=this.fM=!1;this.cY=!0;this.preferGapless=this.jh=this.qb=this.N=this.Ev=!1;this.oT=[];this.rS=!1;this.ub=0;K=K?g.Ni(K):{};W&&W.csiPageType&&(this.csiPageType=W.csiPageType);W&&W.csiServiceName&& (this.csiServiceName=W.csiServiceName);W&&W.preferGapless&&(this.preferGapless=W.preferGapless);this.experiments=new J9(W?W.serializedExperimentIds:K.fexp,W?W.serializedExperimentFlags:K.fflags,W!=null?W:{});this.forcedExperiments=W?W.serializedForcedExperimentIds:dF("",K.forced_experiments)||void 0;this.cspNonce=(W==null?0:W.cspNonce)?W.cspNonce:dF("",K.csp_nonce);kbR(this.L("web_player_deprecated_uvr_killswitch"));try{var S=document.location.toString()}catch(KR){S=""}this.ZX=S;this.ancestorOrigins= (h=window.location.ancestorOrigins)?Array.from(h):[];this.W=DL(!1,W?W.isEmbed:K.is_embed);W&&W.device?d$p(this,W.device):(this.j.c=K.c||"web",this.j.cver=K.cver||"html5",this.j.cplayer="UNIPLAYER");this.loaderUrl=W?this.W||Fz$(this)&&W.loaderUrl?W.loaderUrl||"":this.ZX:this.W||Fz$(this)&&K.loaderUrl?dF("",K.loaderUrl):this.ZX;this.W&&g.Vk("yt.embedded_player.embed_url",this.loaderUrl);this.J=AD(this.loaderUrl,iQC);this.b3=zxp(this.loaderUrl);this.Cg=DL(!1,K.privembed);this.protocol=this.ZX.indexOf("http:")=== 0?"http":"https";this.M$=N_L((W?W.customBaseYoutubeUrl:K.BASE_YT_URL)||"")||N_L(this.ZX)||this.protocol+"://www.youtube.com/";this.Ns=kMD(this,W?W.eventLabel:K.el);ARD();h=null;S=W?W.playerStyle:K.ps;var f=g.BX(RxC,S);!S||f&&!this.J||(h=S);this.playerStyle=h;this.G=g.BX(RxC,this.playerStyle);this.houseBrandUserStatus=W==null?void 0:W.houseBrandUserStatus;this.uX=this.G&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.Pz=!this.uX;this.tK=DL(!1,K.disableplaybackui);this.disablePaidContentOverlay= DL(!1,W==null?void 0:W.disablePaidContentOverlay);this.disableSeek=DL(!1,W==null?void 0:W.disableSeek);this.enableSpeedOptions=(W==null?void 0:W.enableSpeedOptions)||(rv().defaultPlaybackRate?CO||g.q5||kj?g.aS&&MP("20")||g.Nl&&MP("4")||g.ws&&MP("11")||lC():!(g.ws&&!g.PP("chrome")||CO||g.PP("android")||g.PP("silk")):!1);this.lQ=DL(!1,K.enable_faster_speeds);var G;this.supportsVarispeedExtendedFeatures=(G=W==null?void 0:W.supportsVarispeedExtendedFeatures)!=null?G:!1;this.X=DL(this.playerStyle==="blazer", K.is_html5_mobile_device||W&&W.isMobileDevice);this.vp=Y3()||xF();this.dB=this.L("mweb_allow_background_playback")?!1:this.X&&!this.G;this.eV=LE();this.Ae=g.K8;var I;this.bl=!!(W==null?0:(I=W.embedsHostFlags)==null?0:I.optOutApiDeprecation);var d;W?W.hideInfo!==void 0&&(d=!W.hideInfo):d=K.showinfo;this.ib=g.HB(this)&&!this.bl||DL(!Wo(this)&&!UJ(this)&&!this.G,d);this.Cw=W?!!W.mobileIphoneSupportsInlinePlayback:DL(!1,K.playsinline);G=this.X&&hu&&j3!=null&&j3>0&&j3<=2.3;I=W?W.useNativeControls:K.use_native_controls; this.Y=g.HB(this)&&this.X;d=this.X&&!this.Y;I=g.Ln(this)||!G&&DL(d,I)?"3":"1";this.disableOrganicUi=!(W==null||!W.disableOrganicUi);d=W?W.controlsType:K.controls;this.controlsType=this.disableOrganicUi||d==="0"||d===0?"0":I;this.xr=this.X;this.color=lm("red",W?W.progressBarColor:K.color,yRz);this.Ti=this.controlsType==="3";this.q5=!this.W;this.jq=(I=!this.q5&&!UJ(this)&&!this.uX&&!this.G&&!Wo(this))&&!this.Ti&&this.controlsType==="1";this.AS=g.EZ(this)&&I&&this.controlsType==="0"&&!this.jq&&!(W== null?0:W.embedsEnableEmc3ds);this.El=this.vr=G;this.oW=(this.controlsType==="3"||this.X||DL(!1,K.use_media_volume))&&!this.Y;this.MU=rQ&&!g.rs(601)?!1:!0;this.pO=this.W||!1;this.M9=UJ(this)?"":(this.loaderUrl||K.post_message_origin||"").substring(0,128);this.widgetReferrer=dF("",W?W.widgetReferrer:K.widget_referrer);var J;W?W.disableCastApi&&(J=!1):J=K.enablecastapi;J=!this.J||DL(!0,J);G=!0;W&&W.disableMdxCast&&(G=!1);this.TI=this.L("enable_cast_for_web_unplugged")&&g.r8(this)&&G||g.l1(this)&&G|| J&&G&&this.controlsType==="1"&&!this.X&&(UJ(this)||g.EZ(this)||g.yC(this));this.wN=!!window.document.pictureInPictureEnabled||X4();J=W?!!W.supportsAutoplayOverride:DL(!1,K.autoplayoverride);this.A3=!(this.X&&!g.HB(this))&&!g.PP("nintendo wiiu")||J;this.X8=(W?!!W.enableMutedAutoplay:DL(!1,K.mutedautoplay))&&!1;J=(UJ(this)||Wo(this))&&this.playerStyle==="blazer";this.iK=W?!!W.disableFullscreen:!DL(!0,K.fs);G=g.bX(g.mC(this))&&g.HB(this);this.gk=!this.iK&&(J||g.lY())&&!G;this.n4=this.L("html5_picture_in_picture_logging_onresize"); var e;this.eX=(e=g.jV(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?e:.33;this.D5=this.L("html5_picture_in_picture_blocking_onresize");this.HM=this.L("html5_picture_in_picture_blocking_ontimeupdate");this.wr=this.L("html5_picture_in_picture_blocking_document_fullscreen");this.n7=this.L("html5_picture_in_picture_blocking_standard_api");e=zl()&&MP(58)&&!xF();J=iy||typeof MediaSource==="undefined";this.l0=this.L("uniplayer_block_pip")&&(e||J)||this.D5||this.HM||this.n7;e= g.HB(this)&&!this.bl;var E;W?W.disableRelatedVideos!==void 0&&(E=!W.disableRelatedVideos):E=K.rel;this.Ny=e||DL(!this.G,E);this.V3=DL(!1,W?W.enableContentOwnerRelatedVideos:K.co_rel);this.jV=xF()&&j3>0&&j3<=4.4?"_top":"_blank";this.Dp=g.yC(this);this.fK=DL(this.playerStyle==="blazer",W?W.enableCsiLogging:K.enablecsi);switch(this.playerStyle){case "blogger":E="bl";break;case "discover-ads":E="dd";break;case "gmail":E="gm";break;case "gac":E="ga";break;case "ads-preview":E="ap";break;case "books":E= "gb";break;case "docs":case "flix":E="gd";break;case "duo":E="gu";break;case "google-live":E="gl";break;case "google-one":E="go";break;case "play":case "play-ads":E="gp";break;case "chat":E="hc";break;case "hangouts-meet":E="hm";break;case "photos-edu":case "picasaweb":E="pw";break;default:E="yt"}this.Ms=E;this.DA=dF("",W?W.authorizedUserIndex:K.authuser);this.DO=g.HB(this)&&(this.Cg||!ois()||this.vp);var B;W?W.disableWatchLater!==void 0&&(B=!W.disableWatchLater):B=K.showwatchlater;this.XI=((E=!this.DO)|| !!this.DA&&E)&&DL(!this.uX,this.J?B:void 0);this.QX=W?W.isMobileDevice||!!W.disableKeyboardControls:DL(!1,K.disablekb);this.loop=DL(!1,K.loop);this.pageId=dF("",W?W.initialDelegatedSessionId:K.pageid);this.Je=DL(!0,K.canplaylive);this.Xk=2;this.Vr=DL(!1,K.livemonitor);this.disableSharing=DL(this.G,W?W.disableSharing:K.ss);this.pn=mrC(W&&this.L("fill_video_container_size_override_from_wpcc")?W.videoContainerOverride:K.video_container_override);this.mute=W?!!W.startMuted:DL(!1,K.mute);this.storeUserVolume= !this.mute&&DL(this.controlsType!=="0",W?W.storeUserVolume:K.store_user_volume);B=W?W.annotationsLoadPolicy:K.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:lm(void 0,B,S3);this.captionsLanguagePreference=W?W.captionsLanguagePreference||"":dF("",K.cc_lang_pref);B=lm(2,W?W.captionsLanguageLoadPolicy:K.cc_load_policy,S3);this.controlsType==="3"&&B===2&&(B=3);this.U0=B;this.Ea=W?W.hl||"en_US":dF("en_US",K.hl);this.region=W?W.contentRegion||"US":dF("US",K.cr);this.hostLanguage=W? W.hostLanguage||"en":dF("en",K.host_language);this.x_=!this.Cg&&Math.random()=0);g.JM(K.element,"ytp-scroll-max",W<=U)}; YY$=function(K,W){K.dataset.version=W}; vWz=function(K,W,U,h){var m=Math.min(K.lM,300*K.scale);K.element.style.maxWidth=W?"":m+"px";K.eV.KZ(K.element,K.j,U,K.type===1,h);K.element.style.top?g.$C(K.element,"ytp-bottom"):K.element.style.bottom&&g.$C(K.element,"ytp-top");K.type===3&&K.Ns.start()}; KJ=function(K){return K.adFormat&&(K.JK?K.adFormat!=="1_5":K.adFormat!="1_5")?"adunit":K.eventLabel||K.Tm.Ns}; DG=function(K){var W="";if(K.jd)return K.jd;K.isLivePlayback&&(W=K.allowLiveDvr?"dvr":K.isPremiere?"lp":K.Cf?"window":"live");K.tv&&(W="post");return W}; g.re=function(K){return K.L("enable_wn_infocards")}; qte=function(K){g.p.call(this);var W=this;this.xm=K;this.j=new Map;aK(this,"commandExecutorCommand",function(U,h,m){vaC(W,U.commands,h,m)}); aK(this,"clickTrackingParams",function(){})}; g.Ho=function(K,W,U,h){this.level=K;this.W=W;this.loaded=new Set;this.level=K;this.W=W;K=U.split("#");this.width=Math.floor(Number(K[0]));this.height=Math.floor(Number(K[1]));this.frameCount=Math.floor(Number(K[2]));this.columns=Math.floor(Number(K[3]));this.rows=Math.floor(Number(K[4]));this.j=Math.floor(Number(K[5]));this.N=K[6];this.signature=K[7];this.videoLength=h}; Y3=function(){return(rQ||ri)&&g.PP("applewebkit")&&!g.PP("version")&&(!g.PP("safari")||g.PP("gsa/"))}; Td=function(K,W,U){g.p.call(this);this.policy=K;this.W=W;this.rk=U;this.N=new Map;this.U=0;this.G=!1;this.j="";this.X=!1}; wi=function(K,W,U){K.D.L("delhi_modern_web_player")?W.U5(K.X.yH(aO[U])):W.U5(K.X.element)}; C_=function(K,W){var U=K.X;for(K.X=-1;K.pos+1<=K.j.totalLength;){U<0&&(U=le(K));var h=U>>3,m=U&7;if(h===W)return!0;if(h>W){K.X=U;break}U=-1;switch(m){case 0:le(K);break;case 1:K.pos+=8;break;case 2:h=le(K);K.pos+=h;break;case 5:K.pos+=4}}return!1}; sjp=function(K,W){W?W.errorMetadata&&g.eI(new g.EB(K+" failed with status "+W.errorMetadata.status)):g.eI(new g.EB(K+" failed with empty response"))}; Gg=function(K){g.Yv(K.info.Wp.info)||K.info.Wp.info.yh();if(K.j&&K.info.type===6)return K.j.GI;if(g.Yv(K.info.Wp.info)){var W=g.jI(K);var U=0;W=g.ge(W,1936286840);W=g.z(W);for(var h=W.next();!h.done;h=W.next())h=xlD(h.value),U+=h.Mh[0]/h.timescale;U=U||NaN;if(!(U>=0))a:{U=g.jI(K);W=K.info.Wp.j;for(var m=h=0,S=0;jz(U,h);){var f=mc(U,h);if(f.type===1836476516)m=g.k1(f);else if(f.type===1836019558){!m&&W&&(m=PH(W));if(!m){U=NaN;break a}var G=Fh(f.data,f.dataOffset,1953653094),I=G;G=m;var d=Fh(I.data, I.dataOffset,1952868452);I=Fh(I.data,I.dataOffset,1953658222);var J=fn(d);fn(d);J&2&&fn(d);d=J&8?fn(d):0;var e=fn(I),E=e&1;J=e&4;var B=e&256,D=e&512,a=e&1024;e&=2048;var Q=N7(I);E&&fn(I);J&&fn(I);for(var u=E=0;u= 2)){var S=window.sessionStorage.getItem("session_logininfo");if(S){var f;(f=W.contentWindow)==null||f.postMessage({loginInfo:S},h)}}}}catch(G){}}; ko=function(K,W){if(W.ob)for(var U=0;UU+1&&W0||K.J)return!0;K=zx().X.isVisible();var W=Rl(yp)===0;return K||W}; lR2=function(K,W){if(K.j<7){var U=K.data,h=K.X;h>U.length&&(K.error=!0);K.register|=(U[h+1]<<8)+U[h]<=0)return NE(K,U&15),U>>4;for(NE(K,7);U<0;)U=W[Bx(K,1)-U];return U>>4}; zd=function(K){var W=[{T:"div",Hp:["ytp-unmute-icon"],K:[{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {T:"div",Hp:["ytp-unmute-text"],bX:"Tap to unmute"}];W.push({T:"div",Hp:["ytp-unmute-box"],K:[]});g.Ih.call(this,K,{T:"button",Hp:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],K:[{T:"div",Z:"ytp-unmute-inner",K:W}]},100);this.j=this.clicked=!1;this.api=K;this.api.createClientVe(this.element,this,51663);this.S(K,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.S(K,"presentingplayerstatechange",this.dg);this.listen("click",this.onClick,this);K=K.isMutedByMutedAutoplay()&& !g.HB(this.api.V());this.J7(K);K&&OLR(this);this.X=K}; VeY=function(K){var W;return!((W=K.FI)==null||!W.Xo)}; ZSe=function(K,W){W||(W=Math.ceil(Math.log(K+2)/Math.log(2)/7));for(var U=1<<8-W,h=[];h.length1E5||++W.N})}; euC=function(K){K=K.api.V();return g.l1(K)&&K.X}; yF=function(K,W,U){!K.C.L("html5_tv_ignore_capable_constraint")&&g.PJ(K.C)&&(U=U.compose(K.gK(W)));return U}; EqL=function(K,W){if((K=K.iX.lY())&&(W.errorCode==="fmt.unplayable"||W.errorCode==="html5.invalidstate")){var U=K.KN();W.details.merr=U?U.toString():"0";W.details.mmsg=K.Xh()}}; Bjp=function(K){!K.X&&hWe()&&(K.N?K.N.then(function(){return Bjp(K)}):K.aD()||(K.X=K.TJ()))}; MO=function(){this.j={};this.X=!0;this.N={}}; HUF=function(K,W,U,h,m,S,f,G){K=DV_(K,U,S,f,h,function(I,d){var J=I.slotId;I=G(I);var e=m.contentSupportedRenderer;e?e.textOverlayAdContentRenderer?(e=bh(W.X.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",J),d=IJ(W,e,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",m,U,I,Po(W,d,J))):e.enhancedTextOverlayAdContentRenderer?(e=bh(W.X.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",J),d=IJ(W,e,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",m,U,I,Po(W,d,J))):e.imageOverlayAdContentRenderer?(e=bh(W.X.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", J),d=Po(W,d,J),d.push(new O6(W.j,45E3,e)),d=IJ(W,e,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",m,U,I,d)):d=new Rt("InvideoOverlayAdRenderer without appropriate sub renderer"):d=new Rt("InvideoOverlayAdRenderer without contentSupportedRenderer");return d}); return K instanceof v?K:[K]}; hQ=function(K){this.iZ=qR(K)}; p8=function(K,W){return""+K.getAsJson().veType+K.getAsJson().veCounter+W}; qJ=function(K,W){for(var U in K.j)if(K.j[U].status==="usable"&&K.j[U].type===W)return!0;return!1}; yU=function(K,W,U,h,m,S){U=U===void 0?{}:U;this.componentType=K;this.renderer=W===void 0?null:W;this.macros=U;this.layoutId=h;this.interactionLoggingClientData=m;this.j=S;this.id=Mq(K)}; XI=function(K,W){W=W===void 0?0:W;if(K instanceof g.F3)return K;K=K&&K instanceof Error?K:Error(""+K);CR(W)?g.wG(K):g.eI(K);return new g.F3(W===1?"player.fatalexception":"player.exception",{name:""+K.name,message:""+K.message},W)}; f6=function(K){return{fieldType:2,fieldName:K}}; rgp=function(K){try{var W=Grz(K,!0),U=Grz(K,!1);return{id:W,size:U}}catch(h){return{id:-1,size:-1}}}; oO=function(K){dw.call(this,K,!1);var W=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.S(this.D,"videodatachange",this.onVideoDataChange);this.S(this.D,g.$w("suggested_action_button_visible"),function(U){Tj2(W,U.id);W.enabled=!0;W.mG()}); this.S(this.D,g.g8("suggested_action_button_visible"),function(U){W.enabled=!1;W.mG();W.D.removeCueRange(U.id)}); this.S(K,"presentingplayerstatechange",this.onStateChange)}; a2C=function(K,W){return K.D.L("delhi_modern_web_player_icons")?W?{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:W?{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"g",Z:"ytp-fullscreen-button-corner-2",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{T:"g",Z:"ytp-fullscreen-button-corner-3",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{T:"g",Z:"ytp-fullscreen-button-corner-0",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{T:"g",Z:"ytp-fullscreen-button-corner-1", K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"g",Z:"ytp-fullscreen-button-corner-0",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{T:"g",Z:"ytp-fullscreen-button-corner-1",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{T:"g",Z:"ytp-fullscreen-button-corner-2",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill", B:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{T:"g",Z:"ytp-fullscreen-button-corner-3",K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; ERp=function(K,W){W=W===void 0?{}:W;var U=wa(K),h=g.TA("INNERTUBE_CLIENT_NAME"),m=g.hc("web_ajax_ignore_global_headers_if_set"),S;for(S in wbp){var f=g.TA(wbp[S]),G=S==="X-Goog-AuthUser"||S==="X-Goog-PageId";S!=="X-Goog-Visitor-Id"||f||(f=g.TA("VISITOR_DATA"));var I;if(!(I=!f)){if(!(I=U||(g.Qq(K)?!1:!0))){I=K;var d;if(d=g.hc("add_auth_headers_to_remarketing_google_dot_com_ping")&&S==="Authorization"&&(h==="TVHTML5"||h==="TVHTML5_UNPLUGGED"||h==="TVHTML5_SIMPLY")&&UhC(I))I=Mj(I)||"",I=I.split("/"), I="/"+(I.length>1?I[1]:""),d=I==="/pagead";I=d?!0:!1}I=!I}I||m&&W[S]!==void 0||h==="TVHTML5_UNPLUGGED"&&G||(W[S]=f)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(U||!g.Qq(K))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(U||!g.Qq(K)){try{var J=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}J&&(W["X-YouTube-Time-Zone"]=J)}document.location.hostname.endsWith("youtubeeducation.com")||!U&&g.Qq(K)||(W["X-YouTube-Ad-Signals"]= r4(ab()));return W}; qF=function(K,W,U){return K[W]?K[W][U]||null:null}; jRs=function(){}; g.FS=function(K){this.j=this.J=this.U="";this.N=null;this.G=this.X="";this.Y=!1;var W;K instanceof g.FS?(this.Y=K.Y,g.WS(this,K.U),this.J=K.J,g.Ld(this,K.j),g.T7(this,K.N),this.X=K.X,ZG(this,K.W.clone()),this.G=K.G):K&&(W=g.wB(String(K)))?(this.Y=!1,g.WS(this,W[1]||"",!0),this.J=lg(W[2]||""),g.Ld(this,W[3]||"",!0),g.T7(this,W[4]),this.X=lg(W[5]||"",!0),ZG(this,W[6]||"",!0),this.G=lg(W[7]||"")):(this.Y=!1,this.W=new vp(null,this.Y))}; Nr=function(K,W,U){var h=s8$.get();h.N=K;h.X=W;h.context=U;return h}; QXp=function(K,W){K=K.D.L("delhi_modern_web_player_icons");switch(W){case 1:return K?bm():bJ();case 2:return K?FPs():UXs();case 3:return K?{T:"svg",B:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},K:[{T:"path",B:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z", fill:"white"}}]}:g.Fr();case 4:return K?S8_():ZY2();default:return null}}; Xp=function(K,W){var U=K.D.getVideoData(W);return U?K.KF(U,W||K.D.getPresentingPlayerType(!0)):null}; Pjp=function(K,W,U){var h=new Promise(function(m,S){try{var f=W(K);U&&K.commit();f.then(function(G){m(G)}).catch(S)}catch(G){S(G),K.abort()}}); return Promise.all([h,K.done]).then(function(m){return g.z(m).next().value})}; $VD=function(K){return!!K.zL&&!!K.zL.fairplay&&(K.lX==="("||K.lX==="(h"||K.lX==="A"||K.lX==="MEAC3")||MH&&!!K.zL&&K.lX==="1e"}; GX=function(K,W){if(g.hc("no_client_ve_attach_unless_shown")){var U=p8(K,W);MY.set(U,!0);RQ(K,W)}}; YlY=function(K){jD(K,"impression")&&!jD(K,"seek")&&K.jz("active_view_viewable")}; bK=function(K,W){if(K.timelyActions){K=g.z(K.timelyActions);for(var U=K.next();!U.done;U=K.next())if(U=U.value,U.cueRangeId===W)return U}}; OUL=function(K,W,U,h,m){return K instanceof LH?UxC(K,h,m,W,U):UxC(K,h,m,new kR,0)}; g.z0=function(K){K=SH_(K===void 0?0:K);if(!K&&!g.TA("USE_CSN_FALLBACK",!0))return null;K||(K="UNDEFINED_CSN");return K?K:null}; g.wB=function(K){return K.match(cgL)}; nqD=function(K){return K.localStorage===void 0?new wT("yt-client-location"):K.localStorage}; S7=function(K){this.iZ=qR(K)}; g.vZ=function(K){K&&typeof K.dispose=="function"&&K.dispose()}; gqs=function(){this.next=this.scope=this.j=null}; u5R=function(){var K=IL_();if(K){var W=FY2[K.type||"unknown"]||"CONN_UNKNOWN";K=FY2[K.effectiveType||"unknown"]||"CONN_UNKNOWN";W==="CONN_CELLULAR_UNKNOWN"&&K!=="CONN_UNKNOWN"&&(W=K);if(W!=="CONN_UNKNOWN")return W;if(K!=="CONN_UNKNOWN")return K}}; HE=function(K,W,U,h){for(var m=0;m0&&S.width>0){S=[Math.round(S.width),Math.round(S.height)];var f=g.rM();f>1&&S.push(f);S=S.join(":")}else S=void 0;m.size=S})}; KQC=function(K,W){K.timestampOffset>0&&(W-=K.timestampOffset);var U=g.tf(K)+W;ygY(K,U);K.timestampOffset=W}; MPY=function(K){return K.ZO!==void 0}; bC=function(){this.j=this.X=0}; P2R=function(K){return{Oy:L_(K,1),Uq:L_(K,2),minReadaheadMs:L_(K,3)}}; q_=function(K){return K.keySystem==="com.microsoft.playready"}; pbD=function(K){return K.X?!0:K.Tm.Ms==="yt"?K.videoData.J?K.videoData.Bp<25:!K.videoData.Bp:!1}; MJ=function(K,W){return K.map(function(U){return n5(g.cT(U,W))})}; bUp=function(K){if(K=K.getWatchNextResponse()){var W,U;K=(W=K.playerOverlays)==null?void 0:(U=W.playerOverlayRenderer)==null?void 0:U.timelyActionsOverlayViewModel;W=g.P(K,oqz);if(W!=null&&W.timelyActions)return W==null?void 0:W.timelyActions.map(function(h){return g.P(h,ZU$)}).filter(function(h){return!!h})}}; sXY=function(K,W,U,h){g.p.call(this);var m=this;this.api=K;this.C=W;this.j=U;this.app=h;this.U=new Map;this.X=[];this.N=this.Y=null;this.Ms=NaN;this.G=this.W=this.jV=null;this.J=new g.QC(function(){mjR(m,m.Ms,m.jV||void 0)}); this.uX=[];this.Ns=new g.QC(function(){var S=m.uX.pop();if(S){var f=S.Ze,G=S.playerVars;S=S.playerType;G&&(G.prefer_gapless=!0,m.api.preloadVideoByPlayerVars(G,S,NaN,"",f),m.uX.length&&g.yG(m.Ns,4500))}}); this.events=new g.Te(this);this.xd={NBx:function(){return m.X}}; this.j.getPlayerType();g.k(this,this.J);g.k(this,this.Ns);g.k(this,this.events);this.events.S(this.api,g.$w("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.dg)}; CJF=function(K){var W=g.jI(K);var U=(U=g.LS(W,0,1936286840))?U.data.getUint32(U.dataOffset+8):NaN;isNaN(U)&&(K=K.info.Wp.j,U=(W=g.LS(W,0,1836476516))?g.k1(W):K?PH(K):NaN);return U}; g.VF=function(K,W,U){g.p.call(this);this.W=U!=null?K.bind(U):K;this.y6=W;this.N=null;this.j=!1;this.X=0;this.In=null}; vT=function(K,W,U){U!==void 0&&(qm(K,W*8+2),W=U.length,qm(K,W),KU(K,W),K.j.set(U,K.pos),K.pos+=W)}; VPp=function(K){return K.zM&&!K.Q4}; XP=function(K,W,U,h){(K=K.Vt.get(U))&&!K.CC&&(I8?(K.gg.has(W)||K.gg.set(W,{data:new WQ,Ri:0,RU:!1}),HY(K.gg.get(W).data,h)):HY(K.s_,h),K.bytesReceived+=h.totalLength,K.BR=!0)}; aF=function(K){var W={},U=g.d6(K.j,function(h){return h.j}); g.hI(U,function(h,m){h=K.N[m]!==void 0?String(K.N[m]):h.j&&h.X!==null?String(h.X):"";h.length>0&&(W[m]=h)},K); return W}; vo=function(K){var W=K.j.lY();W=W.isView()?W.start:0;var U=K.j.getVideoData().isLivePlayback?Infinity:K.j.Id(!0);U=Math.min(K.Fm/1E3,U)+W;var h=K.J?100:0;K=U-K.X.Ho()+h;return{Rp:W,zE:K,Ip:U,X9:Infinity}}; g.mC=function(K){var W,U;if(!((W=K.webPlayerContextConfig)==null?0:(U=W.embedsHostFlags)==null?0:U.enableLiteUx)||K.Cg||K.G||K.N||K.hK==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";K=g.jV(K.experiments,"embeds_web_lite_mode");return K===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":K>=0&&K0}; uIL=function(K){return K in vqR?vqR[K]:vqR[K]="on"+K}; qlL=function(K,W,U){var h;(h=K.app.FK().U[W.clientPlaybackNonce]||null)==null||h.dispose();W=new CQ(K,W,K.playback,U/1E3);K.DA.set(W.fC(),W);K.app.FK().U[W.fC()]=W}; xVF=function(K){return new TG(K.type,K.Wp,K.range,"getEmptyStubAfter"+K.G,K.kx,K.startTime+K.duration,0,K.j+K.X,0)}; OBD=function(K){K.Ns||(K.Ns=(0,g.AI)(),g.sj("oafs_rp",K.Ns,K.j))}; QN2=function(K,W,U,h,m){if(!g.P(K.renderingContent,Gb))return new v("AdsEngagementPanelSectionListViewModel is missing");var S={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,wk:"core"};W=KD(K,W,U);return W instanceof v?W:Object.assign({},S,{renderingContent:K.renderingContent,uZ:new Map([])},W,{t7:q$(h,m)(S),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Zi([])})}; l2C=function(K){return MG(function(){return C2z(K,K.next())})}; g.Wd=function(K,W,U,h,m,S,f,G,I,d){G=G===void 0?!1:G;g.p.call(this);var J=this;this.iX=K;this.schedule=W;this.policy=U;this.Gm=h;this.uX=I;this.bG=d;this.Sh=this.AK=null;this.vp=this.Bp=this.tK=this.Ns=0;this.rZ=this.HE=this.isSuspended=!1;this.gk="";this.QX={};this.DO=NaN;this.W3=this.Xq=0;this.U=null;this.Cg=this.Le=!1;this.c7=0;this.M5=!1;this.eV=this.Qg=0;this.oW=null;this.wP=!1;this.Da=function(){return J.iX.Da()}; this.timing=new LYC(this.bG);this.jV=new hw(this.schedule,this.policy);this.XI=new g.QC(this.TL,0,this);this.Ez=new g.QC(this.TL,this.policy.Ny,this);this.AG=new g.QC(this.TL,1E3,this);this.Pl=new g.QC(this.TL,void 0,this);this.Ik=new g.QC(function(){J.isSuspended||J.TL()},1E4,this); this.AS=new g.QC(this.wok,250,this);this.Y=this.currentTime=NaN;this.KV=new xS(5);this.hK=this.timestampOffset=NaN;this.logger=new g.io("dash");this.Ea=Infinity;this.xd={yVe:function(){return J.tO}, hcm:function(){return J.N}, getAudioTrack:function(){return J.audioTrack}, y85:function(){return J.videoTrack}, HOk:function(){return J.DA}, getManifest:function(){return J.Gm}, j8x:function(){return J.X}, TL:function(){J.TL()}, QY:function(){J.Ns=0;J.QY()}, b4e:function(E){return Wk(J,J.videoTrack,J.AK.X,E)}}; K=I&&I.YX();I&&(jt_(I,this.Gm,this.policy),this.hK=Date.now());this.j=new K8Y(this,this.jV,U,this.Gm,m,K);U=W8$(this.j,S,f&&f.id);this.audioTrack=new C8(this,this.policy,U.audio,this.timing);this.videoTrack=new C8(this,this.policy,U.video,this.timing);this.videoTrack.N.Ns=this.audioTrack.DI();this.Pp={updateend:this.T$,error:this.dys};g.k(this,this.XI);g.k(this,this.Ez);g.k(this,this.AG);g.k(this,this.Pl);g.k(this,this.Ik);U=this.policy.agx&&this.policy.vS?!KIz(this.videoTrack.Wp.info):!1;this.Ny= Xap({vN:this.policy.J.vN||U,vS:this.policy.vS&&!U,WM:this.policy.WM});this.J=jAp(this,this.policy,this.Ny,this.schedule,this.KV,function(E,B){return pO_(J,E,B)}); this.N=new ug(this,this.Gm,this.policy,this.videoTrack,this.audioTrack,G);this.policy.A3&&this.policy.X&&(this.DA=new UDC(this.policy.G,function(E,B){J.rk(E,B)})); this.tO=new lK(this,this.Gm,this.videoTrack,this.audioTrack,this.policy);G=this.policy.Cd?this.iX.getVideoData().Zc:null;this.G=new uW(this,this.policy,this.videoTrack,this.audioTrack,this.QX,this.N,this.timing,this.jV,this.schedule,this.Gm,this.j,this.J,U,G);g.k(this,this.G);this.W=new L8(this,this.policy,this.videoTrack,this.audioTrack,this.Gm,m,WE(this.iX.getVideoData()),f==null?void 0:f.id);g.k(this,this.W);lze(this.W,S);this.X=new D7(this.iX,this,this.policy,this.audioTrack,this.videoTrack,this.Gm, this.schedule,this.j,this.W,this.timing,this.N,this.DA);g.k(this,this.X);this.Ms=this.iX.vl.nu.Lj;this.policy.U||h0s(this);if(this.policy.Ez){var e;this.JK=new KV(this.videoTrack.Wp.index,(e=this.iX.getVideoData().clientPlaybackNonce)!=null?e:"",this.iX,this.policy.M5);this.policy.M5===3&&(this.q5=new g.QC(this.Xu,200,this),this.q5.start(),g.k(this,this.q5))}}; o8s=function(){var K;return(K=g.SZ("yt-player-voice-boost"))!=null?K:void 0}; gQ=function(K){if(K.N)if(g.WR(K.api.getRootNode(),"ytp-grid-scrolling"),K.api.getPresentingPlayerType()===2||K.api.U_()||K.api.isMinimized())T9(K,0);else{var W=g.C(K.api.getPlayerStateObject(),2);if(W)T9(K,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(K.isEnded&&!W){var U=nn(K)?1:0;K.isEnded=W;T9(K,U)}else nn(K)?K.X!==2&&T9(K,1):T9(K,0);K.isEnded=W}}; iJ2=function(K,W,U,h,m){var S=new yW(K.j,U),f=[new M$(K.j,W)];K=[new PM(K.j,W),new pi(K.j,h)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:f,slotExpirationTriggers:K,wk:"core",clientMetadata:new Zi([new xx(m({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:S,slotFulfillmentTriggers:f,slotExpirationTriggers:K},U))]),adSlotLoggingData:void 0}}; zs=function(K,W,U,h){return K.Xx.get().k5(jr(W))?new ot(K.j,U):h}; j$s=function(K,W){switch(K.style){case bq.CHAPTER_MARKER:return W?8:5;case bq.AD_MARKER:return 6;case bq.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.p=function(){this.QA=this.QA;this.Iu=this.Iu}; mDL=function(K){K.X&&DLe(K.X);K.qoe&&jQe(K.qoe)}; SkR=function(K){for(var W=0;W=f){var D=E-J,a=void 0;((a=W)!=null?a:W={})[D]=B}else S[E]=B}if(e)for(var Q in e)G=e[Q],G!= null&&(G=U(G,h))!=null&&(E=+Q,B=void 0,d&&!Number.isNaN(E)&&(B=E+J)K.j||U.push(h)}return U}; vM=function(K){this.value=K}; hPC=function(K){return g.dG(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in K})}; MG=function(K){try{return s0(K())}catch(W){return xUC(W)}}; f9=function(K){return K.Ns==="leanback"}; ITR=function(K){return K.fX()&&!K.eK}; bc=function(K,W,U,h){z9.call(this,W,h);this.Y=K;this.J=U}; dDe=function(K,W,U,h,m,S,f,G,I,d){if(Xp(K.ZA.get(),1).clientPlaybackNonce!==I)throw new v("Cannot register CueRange-based trigger for different content CPN",{trigger:U});K.Lg.set(U.triggerId,{Az:new Um(W,U,h,m),cueRangeId:S});K.Oa.get().addCueRange(S,f,G,d,K);TB(K.context.Xx.get())&&(I={},K.context.bu.bZ("crr",(I.ca=W,I.tt=U.triggerType,I.st=h.slotType,I.lt=m==null?void 0:m.layoutType,I.cid=S,I.sm=f,I.em=G,I)))}; Jvs=function(K,W,U,h,m,S,f,G,I){jD(K,"impression")&&(S?(S=m-h,S=S>=-1&&S<=2):S=Math.abs(h-m)<=1,iR(K,W,S?h:m,U,h,f,G&&S),S&&!I&&K.wH("complete"))}; e02=function(K,W){for(var U in K.j)if(K.j[U].type===W)return K.j[U].status}; RGp=function(K){return K.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?K+"Z":K}; g.eK=function(K,W){return K.replace(EeF,function(U,h){try{var m=g.Ug(W,h);if(m==null||m.toString()==null)return U;m=m.toString();if(m==""||!g.YD(g.lP(m)))return encodeURIComponent(m).replace(/%2C/g,",")}catch(S){}return U})}; eDe=function(K,W){VC(K,{sdpvrq:1});K.G=Date.now();if(K.X.flavor!=="widevine")K.error("drm.provision",1,"e.flavor;f."+K.X.flavor+";l."+W.byteLength);else{var U={cpn:K.videoData.clientPlaybackNonce};Object.assign(U,K.C.j);U=g.sL("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",U);W={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,W)}), responseType:"arraybuffer"};g.hA(U,W,3,500).then(bd(function(h){h=h.xhr;if(!K.qs()){h=new Uint8Array(h.response);var m=String.fromCharCode.apply(null,h);try{var S=JSON.parse(m)}catch(f){}S&&S.signedResponse?(K.publish("ctmp","drminfo",{provisioning:1}),S=(Date.now()-K.G)/1E3,K.G=NaN,K.publish("ctmp","provs",{et:S.toFixed(3)}),K.N&&K.N.update(h)):(S=S&&S.error&&S.error.message,h="e.parse",S&&(h+=";m."+S),K.error("drm.provision",1,h))}}),bd(function(h){K.qs()||K.error("drm.provision",1,"e."+h.errorCode+ ";c."+(h.xhr&&h.xhr.status))}))}}; Bep=function(K){var W,U,h=(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:U.itemData;return K.D.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(h==null||!h.priceReplacementText)&&(h==null?0:h.promotionText)?h==null?void 0:h.promotionText.content:null}; LE=function(){var K=rv();try{var W=K.muted;K.muted=!W;return K.muted!==W}catch(U){}return!1}; DV_=function(K,W,U,h,m,S){W=LU(K,W,U,h);if(W instanceof v)return W;var f=W instanceof tQ?new DDs(K.j,U,W.j):null;h=Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER");var G=[new M$(K.j,h)];K=[new pi(K.j,U),new PM(K.j,h)];S=S({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:W,slotFulfillmentTriggers:G,slotExpirationTriggers:K},f);return S instanceof Rt?new v(S):{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:G,slotExpirationTriggers:K, wk:"core",clientMetadata:new Zi([new xx(S)]),adSlotLoggingData:m}}; Ru=function(K,W,U){K.j&&K.videoTrack.U!==-1&&K.audioTrack.U!==-1&&(K.j=!1,K.targetTime=W,eO(K.loader,W+.1,{Vk:!0,JS:"chunkSelectorSynchronize",zo:!0,seekSource:U}))}; dN=function(K,W){g.y.call(this,{T:"div",Z:"ytp-fine-scrubbing",K:[{T:"div",Z:"ytp-fine-scrubbing-draggable",K:[{T:"div",Z:"ytp-fine-scrubbing-thumbnails",B:{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}}"}}]},{T:"div",B:{"aria-hidden":"true"},Z:"ytp-fine-scrubbing-cursor"},{T:"div",Z:"ytp-fine-scrubbing-seek-time",B:{"aria-hidden":"true"}, bX:"{{seekTime}}"},{T:"div",Z:"ytp-fine-scrubbing-play",K:[K.L("delhi_modern_web_player_icons")?bm():bJ()],B:{title:"Play from this position",role:"button"}},{T:"div",Z:"ytp-fine-scrubbing-dismiss",K:[g.LD()],B:{title:"Exit precise seeking",role:"button"}}]});var U=this;this.api=K;this.U=this.yH("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.yH("ytp-fine-scrubbing-dismiss");this.Ns=this.yH("ytp-fine-scrubbing-draggable");this.playButton=this.yH("ytp-fine-scrubbing-play");this.thumbnails= [];this.X=[];this.Le=this.j=0;this.eV=void 0;this.Ms=NaN;this.tK=this.J=this.N=this.Y=0;this.W=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.vp=0;this.isEnabled=this.hK=!1;Hfs(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.tk(W,this.dismissButton));this.addOnDisposeCallback(g.tk(W,this.playButton));this.DA=new g.sR(this.Ns,!0);this.DA.subscribe("dragstart",this.XH,this);this.DA.subscribe("dragmove",this.Qb,this);this.DA.subscribe("dragend",this.Yy,this);this.S(K,"SEEK_COMPLETE", this.SH);K.L("web_fix_fine_scrubbing_false_play")&&this.S(K,"rootnodemousedown",function(h){U.uX=h}); this.U.addEventListener("keydown",function(){}); g.k(this,this.DA);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.U,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; jm=function(K,W){K.j.has(W)?(K.j.delete(W),delete PD().j[W]):UF("Unexpected unregistration of layout in LidarApi")}; Hw=function(){return(Ph||oF)&&ZH?!ZH.mobile&&(yV("iPad")||yV("Android")||yV("Silk")):yV("iPad")||yV("Android")&&!yV("Mobile")||yV("Silk")}; rvL=function(K,W){var U=K.X.indexOf(W);U>=0&&K.X.splice(U,1);K.N.delete(W.cpn);W.Ze&&K.W.delete(W.Ze)}; Tee=function(K,W){var U=OB(K);return U&&U.info.type!==6?!Bt_(W,K,U.info.kx):!1}; xJe=function(K,W,U,h){if(gb.instance!==void 0){if(h=gb.instance,K=[K!==h.Z$,W!==h.LN,U!==h.j,!1,!1,!1,void 0!==h.N],K.some(function(m){return m}))throw new g.EB("InnerTubeTransportService is already initialized",K); }else gb.instance=new gb(K,W,U,h)}; JRz=function(K){var W=K.app.E5();if(W=W?W.getVideoData():null){if(g.m7(W)||g.Sm(W)||g.mz(W))return 16/9;if(aTC(W)&&W.N.j)return K=W.N.videoInfos[0].video,f1(K.width,K.height)}return(K=K.iY)?f1(K.videoWidth,K.videoHeight):16/9}; SP=function(K){TI(K.Xx.get())||K.j()}; wgD=function(K,W){if(O4(K,fV)||K.api.isMinimized())return!1;var U=dY(W.title),h=dY(W.description);if(g.YD(U)||g.YD(h))return!1;K.createServerVe(K.X.element,W.trackingParams||null);K.X.updateValue("title",dY(W.title));K.X.updateValue("description",dY(W.description));K.X.updateValue("displayUrl",dY(W.displayUrl));K.X.updateValue("imageUrl",drD(W.image));W.navigationEndpoint&&g.Ms(K.J,W.navigationEndpoint);K.JK=W.imageNavigationEndpoint||null;K.X.show();K.Le.start();K.logVisibility(K.X.element,!0);K.S(K.X.element, "mouseover",function(){K.uX++}); return!0}; eR=function(K){if(!Qsp(K)||!EI(K,524531317))return!1;e8(K,!0);return!0}; Am=function(K,W,U){return eA(42,W?OJ(K,U):K.j)}; iXp=function(K){return new iU(K)}; g.tA=function(){return g.SZ("yt-remote-session-screen-id")}; Jxe=function(K){go.forEach(function(W){return W(K)})}; QQF=function(K){if(!K.adAvatar||!g.P(K.adAvatar,G5))return g.wG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!K.headline)return g.wG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!K.adBadge||!g.P(K.adBadge,Io))return g.wG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!K.adButton||!g.P(K.adButton,dP))return g.wG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!K.adInfoRenderer|| !g.P(K.adInfoRenderer,gO))return g.wG(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;K=K.durationMilliseconds||0;return typeof K!=="number"||K<=0?(g.wG(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+K)),!1):!0}; kRp=function(K,W,U){K=new $Dz(K.j);K.update(W);K.update(U);W=IED(K);K.update(K.U);K.update(W);W=IED(K);K.reset();return W}; Pp=function(K,W){K.j=W;g.Vk("yt.gcf.config.coldConfigGroup",K.j||null)}; Ykp=function(){var K,W;return{Pm:new Xq(function(U,h){K=U;W=h}), resolve:K,reject:W}}; OfR=function(K){m8("play",function(){K.api.playVideo()}); m8("pause",function(){K.api.pauseVideo()}); m8("seekbackward",function(){K.api.seekBy(-5*K.api.getPlaybackRate())}); m8("seekforward",function(){K.api.seekBy(5*K.api.getPlaybackRate())}); m8("seekto",function(W){W=W.seekTime;W!=null&&K.api.seekTo(W)})}; axC=function(K,W,U,h,m){this.X=m;this.j=K||0;this.pitch=W||0;this.yaw=U||0;this.roll=h||0;this.crc=m.getUint32(4)}; cvL=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-ad-feedback-dialog-background",K:[{T:"div",Z:"ytp-ad-feedback-dialog-container",K:[{T:"div",Z:"ytp-ad-feedback-dialog-form",B:{role:"dialog",tabindex:"-1"},K:[{T:"div",Z:"ytp-ad-feedback-dialog-title",K:[{T:"span",bX:"{{title}}"}]},{T:"span",Z:"ytp-ad-info-dialog-feedback-options-title",bX:"{{reasonsTitle}}"},{T:"div",Z:"ytp-ad-info-dialog-feedback-options"},{T:"div",Z:"ytp-ad-feedback-dialog-confirm-container",K:[{T:"button",Z:"ytp-ad-feedback-dialog-cancel-button", bX:"{{cancelLabel}}"},{T:"button",Z:"ytp-ad-feedback-dialog-confirm-button",bX:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",W,U,h);this.W=[];this.j=null;this.U=this.yH("ytp-ad-feedback-dialog-cancel-button");this.J=this.yH("ytp-ad-feedback-dialog-confirm-button");this.uX=this.yH("ytp-ad-info-dialog-feedback-options");this.hK=this.yH("ytp-ad-feedback-dialog-title");this.N=this.X=null;this.hide()}; Hy=function(K,W){W=String(W);K.W&&(W=W.toLowerCase());return W}; fRC=function(K,W,U,h,m){this.Hr=W;this.j=U;this.visible=h;this.layoutId=m;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=K(this.triggerType)}; nep=function(K){jD(K,"impression")&&!jD(K,"seek")&&K.jz("audio_measurable")}; Cr=function(K){return K.j.c}; geL=function(K){var W,U;return g.r(function(h){return h.j==1?g.T(h,AR(K),2):h.j!=3?(W=h.X,U=void 0,g.T(h,g.b5(W,["hotConfigStore"],{mode:"readwrite",e0:!0},function(m){return g.hp(m.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(S){U=S.getValue()})}),3)):h.return(U)})}; F8p=function(K,W){K.timing.Ms=!0;K.xhr.Wr()&&K.timing.ES();if(K.policy.Pl){var U;(U=K.kh)==null||U.stop()}to(K.hO,W,!1)}; GR=function(K){var W=[];if(K){K=g.z(Object.entries(K));for(var U=K.next();!U.done;U=K.next()){var h=g.z(U.value);U=h.next().value;h=h.next().value;h!==void 0&&(h=typeof h==="boolean"?""+ +h:(""+h).replace(/[:,=]/g,"_"),W.push(U+"."+h))}}return W.join(";")}; JA=function(K,W){for(var U=[],h=g.z(K.Lg.values()),m=h.next();!m.done;m=h.next())m=m.value,m.trigger.j===W.layoutId&&U.push(m);U.length&&A6(K.j(),U)}; uhL=function(K){if(K.range)return K.N;K=K.Ce[0];return Math.round(K.Y*K.Wp.info.j0)}; k6Y=function(K,W){return W+1=h.start&&W<=h.end)return;if(W===h.end+1){h.end+=1;return}}K.Bp.push(new FiC(W))}}; OH=function(K){this.value=K}; g.oZ=function(K){return(!("button"in K)||typeof K.button!=="number"||K.button===0)&&!("shiftKey"in K&&K.shiftKey)&&!("altKey"in K&&K.altKey)&&!("metaKey"in K&&K.metaKey)&&!("ctrlKey"in K&&K.ctrlKey)}; Rd=function(K){switch(typeof K){case "bigint":return!0;case "number":return X8(K);case "string":return oeR.test(K);default:return!1}}; ZfY=function(K,W){var U;if(((U=K.Uz)==null?void 0:U.type)==="repeatChapter"||(W==null?void 0:W.type)==="repeatChapter")W&&(W=K.j[Fp(K.j,W.startTimeMs)],g.JM(W.j,"ytp-repeating-chapter",!1)),K.Uz&&(W=K.j[Fp(K.j,K.Uz.startTimeMs)],g.JM(W.j,"ytp-repeating-chapter",!0)),K.j.forEach(function(h){g.JM(h.j,"ytp-exp-chapter-hover-container",!K.Uz)})}; lg=function(K,W){return K?W?decodeURI(K.replace(/%25/g,"%2525")):decodeURIComponent(K):""}; bfs=function(K,W,U){var h=new XMLHttpRequest;if(U==null?0:U.lw)h.onreadystatechange=function(S){U.lw(h,S)}; var m;h.open((m=W.method)!=null?m:"GET",K,!0);h.responseType="text";h.withCredentials=!0;if(W.headers)for(K=g.z(Object.entries(W.headers)),W=K.next();!W.done;W=K.next())m=g.z(W.value),W=m.next().value,m=m.next().value,h.setRequestHeader(W,m);return h}; ZGs=function(K,W){K=K.api.getAvailableAudioTracks();K=g.z(K);for(var U=K.next();!U.done;U=K.next())if(U=U.value,U.getLanguageInfo().getId()===W)return U;return null}; sQD=function(K,W,U){var h=K.uX[W],m=g.YJ[W];return fOC(K,h?h.qualityLabel:m?m+"p":"Auto",W,U)}; IZ=function(K,W){return n5(g.cT(K.info,W))}; VQs=function(K){try{var W=b6('video/mp4; codecs="avc1.42001E"')||b6('video/webm; codecs="vp9"');return(b6('audio/mp4; codecs="mp4a.40.2"')||b6('audio/webm; codecs="opus"'))&&(W||!K)||AT('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(U){return"html5.missingapi"}}; Yd=function(K,W,U,h,m,S){m=m===void 0?[]:m;S=S===void 0?"toggle-button":S;var f=Mq("ytp-ad-toggle-button-input"),G={role:"button","aria-label":"{{tooltipText}}"};K.V().experiments.Rk("fix_h5_toggle_button_a11y")&&(G.tabindex="0");G.role="checkbox";vh.call(this,K,{T:"div",Hp:["ytp-ad-toggle-button"].concat(m),K:[{T:"label",Z:"ytp-ad-toggle-button-label",B:{"for":f},K:[{T:"span",Z:"ytp-ad-toggle-button-icon",B:G,K:[{T:"span",Z:"ytp-ad-toggle-button-untoggled-icon",bX:"{{untoggledIconTemplateSpec}}"}, {T:"span",Z:"ytp-ad-toggle-button-toggled-icon",bX:"{{toggledIconTemplateSpec}}"}]},{T:"input",Z:"ytp-ad-toggle-button-input",B:{id:f,type:"checkbox"}},{T:"span",Z:"ytp-ad-toggle-button-text",bX:"{{buttonText}}"},{T:"span",Z:"ytp-ad-toggle-button-tooltip",bX:"{{tooltipText}}"}]}]},S,W,U,h);this.W=this.yH("ytp-ad-toggle-button");this.j=this.yH("ytp-ad-toggle-button-input");this.X=this.yH("ytp-ad-toggle-button-icon");this.J=this.yH("ytp-ad-toggle-button-untoggled-icon");this.U=this.yH("ytp-ad-toggle-button-toggled-icon"); this.hK=this.yH("ytp-ad-toggle-button-text");this.N=null;this.uX=!1;this.hide()}; XgL=function(K,W){W?K.element.classList.add("ytp-jump-button-enabled"):K.element.classList.remove("ytp-jump-button-enabled");K.D.logVisibility(K.element,W);K.D.T8()}; QU=function(K){return K.pN||KJ(K)==="detailpage"||KJ(K)==="shortspage"||K.mutedAutoplay}; T5=function(K){this.value=K}; JZ$=function(K,W){K!=null?K_(K,W):K=void 0;return K}; b6=function(K){if(/opus/.test(K)&&g.Nl&&!MP("38")&&!g.Km())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(K);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(K);if(/webm/.test(K)&&!zKe())return!1;K==='audio/mp4; codecs="mp4a.40.2"'&&(K='video/mp4; codecs="avc1.4d401f"');return!!AT(K)}; SQ=function(K){this.value=K}; ve_=function(K,W){var U;((U=K.j)==null?void 0:U.id)!==(W==null?void 0:W.id)&&(K.j&&(K.X.delete(K.j.id),K.api.hD([K.j],1)),K.j=W)}; wTs=function(K,W,U,h){h=h===void 0?!1:h;W=new AZs(W||K,U||K);return{x:K.x+((h===void 0?0:h)?W.j*-1:W.j)*.2,y:K.y+((h===void 0?0:h)?W.X*-1:W.X)*.2}}; g.$C=function(K,W){if(K.classList)K.classList.add(W);else if(!g.sb(K,W)){var U=Zis(K);g.pG(K,U+(U.length>0?" "+W:W))}}; qk$=function(K,W,U,h,m,S){h=h===void 0?[]:h;var f=s8(K.X.get(),W);if(f){var G=K.yg.get().jz(W,U),I=Va(K,Xm(f),f,m,S);h.forEach(function(d,J){d.baseUrl&&(K.N.send(d.baseUrl,I,G,d.attributionSrcMode),d.serializedAdPingMetadata&&K.Yd.Kn("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,f,new VEC(d,J),void 0,void 0,f.adLayoutLoggingData))})}else UF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:W, trackingType:U})}; g.Lr=function(K){return Cr(K)==="WEB_MUSIC_INTEGRATIONS"}; lTC=function(K){if(xDs()){K.aW=K.api.Wh();K.j=new Y2;K.N=2;var W=g.jV(K.api.V().experiments,"html5_d6de4_defer_timeout_ms");K.aW.XK("pt_pish");W?g.FE(function(){CWF(K)},W):K.api.L("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){CWF(K)}):CWF(K)}}; AR=function(K){return g.Vm(L8C(),K)}; ao=function(K){this.state=K;this.plugins=[];this.N=void 0;this.W={};Ng&&PW(this.state)}; g.o4=function(K){K=RR$(K);return vE(K)}; Kj=function(K,W,U){this.j=K;this.N=!1;W=this.j.Tp(W);this.X=new QO(K,W);this.j.free(W.byteOffset);this.W=this.j.Tp(U)}; W2Y=function(K){g.wP.prototype.load.call(K);var W=jP(K.j).hB;try{K.player.getRootNode().classList.add("ad-created")}catch(I){UF(I instanceof Error?I:String(I))}var U=K.player.getVideoData(1),h=U&&U.videoId||"",m=U&&U.getPlayerResponse()||{},S=(m&&m.adPlacements||[]).map(function(I){return I.adPlacementRenderer}),f=((m==null?void 0:m.adSlots)||[]).map(function(I){return g.P(I,vX)}); m=m.playerConfig&&m.playerConfig.daiConfig&&m.playerConfig.daiConfig.enableDai||!1;U&&U.mK();S=lDs(S,f,W,jP(K.j).JM);f=U&&U.clientPlaybackNonce||"";U=U&&U.jQ||!1;if(TB(W,!0)&&U){var G;W={};(G=K.player.getVideoData())==null||G.rk("p_cpb",(W.cc=f,W))}G=1E3*K.player.getDuration(1);K2p(K);K.j.j.Y8.MN(f,G,U,S.u7,S.ER,S.u7,m,h)}; gT=function(){return["metadata_type_ad_placement_config"]}; QM=function(K,W,U){for(var h=g.z(UHD),m=h.next();!m.done;m=h.next()){m=m.value;var S=K.Hd.get(m);S&&(U||S.tZ(W))&&(g.vZ(S),K.Hd.delete(m))}K.D.publish("modulesDestroyed",W)}; Rvs=function(K,W){if(!xjC())throw Error();K.TH(K.value,W)||(K.value=W,K.version++,hJR++,jrC(K))}; $5=function(K,W){if(K.length<2)return!1;var U=W(K[0]);return K.some(function(h){return W(h)!==U})}; XN=function(K,W,U){if((K-7^6)=K){for(var h=64,m=[];++h-m[t[4]]-32;)switch(h){case 58:h=96;continue;case 91:h=44;break;case 65:h=47;continue;case 46:h=153;case 123:h-=58;default:m[t[27]](String[t[46]](h))}var S=m}(K^68)>=2&&(K<<1&14)<5&&(W=(W%U[t[4]]+U[t[4]])%U[t[4]],h=U[0],U[0]=U[W],U[W]=h,S=[W,U]);if((K|16)==K)for(h=W[t[4]];h;)W[t[27]](W[t[35]](--h,1)[0]);K-5<18&&(K|9)>=4&&(h=W[t[26]](t[3]),Y5[t[33]](h,49),Y5[t[86]](h,1),Y5[t[33]](h,49),Y5[t[33]](h,23),S=h[t[9]](t[3]));if((K^94)>>4< 2&&(K-1&15)>=4){h=64;for(m=[];++h-m[t[4]]-32;){switch(h){case 58:h-=14;case 91:case 92:case 93:continue;case 123:h=47;case 94:case 95:case 96:continue;case 46:h=95}m[t[27]](String[t[46]](h))}S=m}return S}; mHz=function(K){K=bs(K);K.metadata||(K.metadata={});return K.metadata}; lC=function(){var K=/WebKit\/([0-9]+)/.exec(g.i5());return!!(K&&parseInt(K[1],10)>=602)}; g.KXs=function(K){var W=Fh(K,0,1701671783);if(!W)return null;var U=SPD(W),h=U.q4k;U=zT(U.o_);if(K=Fh(K,W.offset+W.size,1701671783))if(K=SPD(K),K=zT(K.o_),U&&K){W=g.z(Object.keys(K));for(var m=W.next();!m.done;m=W.next())m=m.value,U[m]=K[m]}return U?new Hk(U,h):null}; faF=function(K){var W=g.P(K.renderingContent,iY);if(W==null?0:W.pings)return ZJ(W.pings);K=g.P(K.renderingContent,d2);return(K==null?0:K.skipPings)?new Map([["skip",K.skipPings]]):new Map}; Og=function(K){var W=[{cpn:K.N.fC()}];K.X&&W.push({cpn:K.X.fC()});K.api.publish("playbackChange",{prV:W})}; Po=function(K,W,U){var h=[];h.push(new SO(K.j,U));W&&h.push(W);return h}; BO$=function(K){return{label:fz(K,1),text:fz(K,2)}}; tbs=function(K,W){if(O4(K,fV)||K.api.isMinimized())return!1;var U=dY(W.title),h=dY(W.description);if(g.YD(U)||g.YD(h))return!1;K.createServerVe(K.N.element,W.trackingParams||null);K.N.updateValue("title",dY(W.title));K.N.updateValue("description",dY(W.description));K.N.updateValue("displayUrl",dY(W.displayUrl));W.navigationEndpoint&&g.Ms(K.J,W.navigationEndpoint);K.N.show();K.Le.start();K.logVisibility(K.N.element,!0);K.S(K.N.element,"mouseover",function(){K.uX++}); return!0}; WMs=function(K){var W=W===void 0?{}:W;var U,h;return g.r(function(m){if(m.j==1)return g.T(m,g.ip(),2);if(m.j!=3){U=m.X;if(!U)return m.return();F9(K);return g.T(m,map(K,U),3)}h=m.X;return g.T(m,GYz(h,W,U),0)})}; eL=function(K){K.X=!1;var W={};K.j&&K.videoId&&(W.cttAuthInfo={token:K.j,videoId:K.videoId});BN("ad_to_video",W);BU$(K)}; jss=function(K,W){if(K){var U;g.T2.isLoading()?U=!1:U=!sC||(0,g.AI)()-sC>W;K=U}else K=!1;return K}; rmD=function(K,W){Xa(K,1,W.deviceInterface);Vd(K,2,W.deviceVersion);yH(K,3,W.isSleeping)}; $tD=function(K,W){W=W===void 0?!1:W;return NX(AD(K,IaC),K,W,"Captions URL")}; dHC=function(K){var W=K.D.Hu()?72:50,U=K.D.V();g.YC(U)&&(U.L("delhi_modern_web_player")?(W=g.jV(U.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),W=K.D.L("delhi_modern_web_player_compact_controls")||W>0&&K.D.getPlayerSize().width<=W,W=K.D.Hu()?112:W?70:78,K.D.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(K=getComputedStyle(K.D.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",W+=Number(K.replace("px","")))):W=62,g.EZ(U)&&(W=54));return W}; bO2=function(){}; T$=function(){JQz||(JQz=new wT("yt.offline"));return JQz}; eJL=function(K){K=g.z(jP(K.j).tB.kM.values());for(var W=K.next();!W.done;W=K.next())if(W.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; cd=function(K,W){K=g.z(K.kM.values());for(var U=K.next();!U.done;U=K.next())if(U.value.layoutId===W)return!0;return!1}; Ess=function(K,W,U){W=U?W.lastElementChild:W.firstElementChild;for(var h=null;W;){if(Gp(W,"display")!=="none"&&W.getAttribute("aria-hidden")!=="true"){var m=void 0;W.tabIndex>=0?m=W:m=Ess(K,W,U);m&&(h?U?m.tabIndex>h.tabIndex&&(h=m):m.tabIndexm)W=!1;else{for(h=m-1;h>=0;h--)U.j.setUint8(U.pos+h,W&255),W>>>=8;U.pos=K;W=!0}else W=!1;return W}; BuC=function(){this.j=10;this.X=Date.now()}; ZBC=function(){}; g.Sm=function(K){return!!K.j&&MJ_(K.j)}; DHR=function(K){var W=G$("");return cr(K.map(function(U){return IF(G$(U))}).join(IF(W).toString()))}; HjF=function(K){K=(K.j.cookie||"").split(";");for(var W=[],U=[],h,m,S=0;S>>0&255);K.j.push(W>>>8&255);K.j.push(W>>>16&255);K.j.push(W>>>24&255)}; aas=function(K,W,U){this.i5=K;this.j=W;this.zm=U;oj(pl(),{RT:gWR,KT:In2})}; $HR=function(K,W){var U=K.Vt.get(W),h=wD_(K,W),m=!h&&!!U.bytesReceived;if(I8){var S;if((S=K.Gm)==null?0:S.mK){K=g.z(U.gg.values());for(W=K.next();!W.done;W=K.next())if(!W.value.RU)return!1;return m}}else if(S=K.EF(W),m&&K.X&&S!==void 0)return S;return(m||U.bytesReceived===h)&&U.Xg+QrL(K,W)===U.bytesReceived}; ma=function(K){switch(K){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"}}; uc2=function(K,W){switch(W){case 2:W="Hide videos";var U="Hide recommendations grid";break;default:W="More videos",U="Show recommendations grid"}K.updateValue("title",W);K.element.ariaLabel=U;K.N.textContent=W}; PWz=function(K,W,U,h,m,S,f){K=K===void 0?-1:K;W=W===void 0?"":W;U=U===void 0?"":U;h=h===void 0?!1:h;m=m===void 0?"":m;g.p.call(this);this.logSource=K;this.componentId=W;S?W=S:(K=new eU(K,"0"),K.componentId=W,g.k(this,K),U!==""&&(K.D4=U),h&&(K.N=!0),m&&lLL(K,m),f&&yvp(K,f),W=K.build());this.j=W}; g.wG=function(K,W){var U=U===void 0?{}:U;U.name=g.TA("INNERTUBE_CONTEXT_CLIENT_NAME",1);U.version=g.TA("INNERTUBE_CONTEXT_CLIENT_VERSION");W=W===void 0?"ERROR":W;var h=!1;W=W===void 0?"ERROR":W;h=h===void 0?!1:h;if(K){K.hasOwnProperty("level")&&K.level&&(W=K.level);if(g.hc("console_log_js_exceptions")){var m=[];m.push("Name: "+K.name);m.push("Message: "+K.message);K.hasOwnProperty("params")&&m.push("Error Params: "+JSON.stringify(K.params));K.hasOwnProperty("args")&&m.push("Error args: "+JSON.stringify(K.args)); m.push("File name: "+K.fileName);m.push("Stacktrace: "+K.stack);window.console.log(m.join("\n"),K)}if(!(YPD>=5)){m=[];for(var S=g.z(OjF),f=S.next();!f.done;f=S.next()){f=f.value;try{f()&&m.push(f())}catch(a){}}m=[].concat(g.z4(cQL),g.z4(m));var G=Xs_(K);S=G.message||"Unknown Error";f=G.name||"UnknownError";var I=G.stack||K.X||"Not available";if(I.startsWith(f+": "+S)){var d=I.split("\n");d.shift();I=d.join("\n")}d=G.lineNumber||"Not available";G=G.fileName||"Not available";var J=0;if(K.hasOwnProperty("args")&& K.args&&K.args.length)for(var e=0;e=500);e++);else if(K.hasOwnProperty("params")&&K.params){var E=K.params;if(typeof K.params==="object")for(e in E){if(E[e]){var B="params."+e,D=id(E[e]);U[B]=D;J+=B.length+D.length;if(J>500)break}}else U.params=id(E)}if(m.length)for(e=0;e=500);e++);navigator.vendor&&!U.hasOwnProperty("vendor")&&(U["device.vendor"]=navigator.vendor);U={message:S,name:f,lineNumber:d, fileName:G,stack:I,params:U,sampleWeight:1};e=Number(K.columnNumber);isNaN(e)||(U.lineNumber=U.lineNumber+":"+e);if(K.level==="IGNORED")K=0;else a:{K=Ym();e=g.z(K.Re);for(m=e.next();!m.done;m=e.next())if(m=m.value,U.message&&U.message.match(m.Ie)){K=m.weight;break a}K=g.z(K.y9);for(e=K.next();!e.done;e=K.next())if(e=e.value,e.callback(U)){K=e.weight;break a}K=1}U.sampleWeight=K;K=g.z(gsp);for(e=K.next();!e.done;e=K.next())if(e=e.value,e.Xz[U.name])for(S=g.z(e.Xz[U.name]),m=S.next();!m.done;m=S.next())if(f= m.value,m=U.message.match(f.ao)){U.params["params.error.original"]=m[0];S=f.groups;f={};for(d=0;d=0;f--){var G=m.X[f];G.info.kx>=W&&(m.X.pop(),m.N-=f0(G,m.policy.oW),S=G.info)}S&&(m.W=m.X.length>0?m.X[m.X.length-1].info:m.tK,m.X.length!==0||m.W||l8(m,"r"));m.loader.rk("mdstm",{rollbk:1,itag:S?S.Wp.info.itag:"",popped:S?S.kx:-1,sq:W,lastslc:m.W?m.W.kx:-1,lastfraget:m.N.toFixed(3)});if(K.policy.j)return K.j=null,!0;h>U?gP(K,h):K.j=K.Wp.o1(W-1,!1).Ce[0]}catch(I){return W=XI(I),W.details.reason= "rollbkerr",K.loader.handleError(W.errorCode,W.details,W.severity),!1}return!0}; Pc$=function(){}; CNs=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next())mn(K,U.value.slot,!1)}; pDC=function(K){return K.W&&K.W.takeRecords?K.W.takeRecords():[]}; vL=function(K){var W=K.toString();K.name&&W.indexOf(K.name)==-1&&(W+=": "+K.name);K.message&&W.indexOf(K.message)==-1&&(W+=": "+K.message);if(K.stack)a:{K=K.stack;var U=W;try{K.indexOf(U)==-1&&(K=U+"\n"+K);for(var h;K!=h;)h=K,K=K.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");W=K.replace(/\n */g,"\n");break a}catch(m){W=U;break a}W=void 0}return W}; wu=function(K,W,U){var h=K.videoData.X,m=K.videoData.W,S=K.Tm.L("html5_disable_codec_fallback_for_drm")&&K.videoData.nC();IG(K.iX.getVideoData())&&K.Tm.L("html5_gapless_fallback_on_qoe_restart")&&S6p(K.iX,"pe");if((W==="progressive.net.retryexhausted"||W==="fmt.unplayable"||W==="fmt.decode")&&!K.iX.Dg.U&&h&&h.itag==="22")return K.iX.Dg.U=!0,K.aR("qoe.restart",{reason:"fmt.unplayable.22"}),K.iX.yV(),!0;var f=!1;if(K.videoData.isExternallyHostedPodcast){if(f=K.videoData.EU)U.mimeType=f.type,K.rk("3pp", {url:f.url});U.ns="3pp";K.iX.jB(W,1,"VIDEO_UNAVAILABLE",GR((new g.F3(W,U,1)).details));return!0}var G=K.Bi+3E4<(0,g.AI)()||K.j.isActive();if(K.Tm.L("html5_empty_src")&&K.videoData.isAd()&&W==="fmt.unplayable"&&/Empty src/.test(""+U.msg))return U.origin="emptysrc",K.aR("auth",U),!0;G||VVL(K.iX.dj())||(U.nonfg="paused",G=!0,K.iX.pauseVideo());(W==="fmt.decode"||W==="fmt.unplayable")&&(m==null?0:WP(m)||U1(m))&&(osF(K.Tm.U,m.lX),U.acfallexp=m.lX,f=G=!0);!G&&K.N>0&&(K.j.start(),G=!0,U.delayed="1",--K.N); m=K.iX.loader;G||!((h==null?0:wF(h))||(h==null?0:TX(h)))||S||(osF(K.Tm.U,h.lX),f=G=!0,U.cfallexp=h.lX);if(!G)return o3e(K,U);S=!1;K.U?K.Bi=(0,g.AI)():S=K.U=!0;G=K.videoData;if(G.hK){G=G.hK.YW();var I=Date.now()/1E3+1800;G=G>>0;FJ=W;u0=(K-W)/4294967296>>>0}; z_R=function(K){return qqs(Object.assign({},K,{rf:K.callback,vY:function(){}}))}; lap=function(K){g.y.call(this,{T:"div",Z:"ytp-title-channel",K:[{T:"div",Z:"ytp-title-beacon"},{T:"a",Z:"ytp-title-channel-logo",B:{href:"{{channelLink}}",target:K.V().jV,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{T:"div",Z:"ytp-title-expanded-overlay",B:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{T:"div",Z:"ytp-title-expanded-heading",K:[{T:"div",Z:"ytp-title-expanded-title",K:[{T:"a",bX:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:K.V().jV,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{T:"div",Z:"ytp-title-expanded-subtitle",bX:"{{expandedSubtitle}}",B:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var W=this;this.api=K;this.channel=this.yH("ytp-title-channel");this.X=this.yH("ytp-title-channel-logo");this.channelName=this.yH("ytp-title-expanded-title");this.U=this.yH("ytp-title-expanded-overlay");this.N=this.j=this.subscribeButton=null;this.W=!1;K.createClientVe(this.X,this,36925);K.createClientVe(this.channelName,this, 37220);g.HB(this.api.V())&&g$p(this);this.S(K,"videodatachange",this.SV);this.S(K,"videoplayerreset",this.SV);this.S(this.channelName,"click",function(U){W.api.logClick(W.channelName);g.xv(window,bt(W));U.preventDefault()}); this.S(this.X,"click",this.YaV);this.SV()}; nr=function(K,W){return K=(2&W?K|2:K&-3)&-273}; L2D=function(K){var W=K.api.getVideoData();K.button.J7(W.OH)}; g.mKD=function(K){var W="";g.hI(K,function(U,h){W+=h;W+=":";W+=U;W+="\r\n"}); return W}; zI=function(K){this.value=K}; KEL=function(K,W,U){yU.call(this,"ad-message",K,void 0,W,U)}; UFL=function(K,W,U){var h=g.EZ(W.Tm)&&!W.Tm.G;if(W.Tm.fK&&(UJ(W.Tm)||W.Tm.Ns==="shortspage"||f9(W.Tm)||h)&&!K.N){K.N=!0;K.G=W.clientPlaybackNonce;g.TA("TIMING_ACTION")||ec("TIMING_ACTION",K.C.csiPageType);K.C.csiServiceName&&ec("CSI_SERVICE_NAME",K.C.csiServiceName);if(K.j){h=K.j.Wh();for(var m=g.z(Object.keys(h)),S=m.next();!S.done;S=m.next())S=S.value,XL(S,h[S],K.timerName);h=g.kQ(WE_)(K.j.WE);g.y2(h,K.timerName);h=K.j;h.j={};h.WE={}}g.y2({playerInfo:{visibilityState:g.kQ(Z_2)()},playerType:"LATENCY_PLAYER_HTML5"}, K.timerName);K.U!==W.clientPlaybackNonce||Number.isNaN(K.X)||(t3("_start",K.timerName)?U=g.kQ(Y7)("_start",K.timerName)+K.X:g.eI(new g.EB("attempted to log gapless pbs before CSI timeline started",{cpn:W.clientPlaybackNonce})));U&&!t3("pbs",K.timerName)&&NT(K,U)}}; g.Sc=function(K){var W=K.V(),U=g.eW(W),h=W.M9;g.EZ(W)&&(h&&(U.thirdParty=Object.assign({},U.thirdParty,{embedUrl:h})),oB$(U,K));if(h=K.Ms)U.clickTracking={clickTrackingParams:h};else if(g.EZ(K.V())&&g.TA("EVENT_ID"))U.clickTracking={clickTrackingParams:g.TA("EVENT_ID")};else if(W.L("html5_log_missing_itct")){var m;h=new g.EB("Missing ITCT in InnerTubeContext",{isAd:K.isAd(),HMe:(m=W.getWebPlayerContextConfig())==null?void 0:m.contextId});g.wG(h)}m=U.client||{};h="EMBED";var S=KJ(K);S==="leanback"? h="WATCH":W.L("gvi_channel_client_screen")&&S==="profilepage"?h="CHANNEL":K.Vr?h="LIVE_MONITOR":S==="detailpage"?h="WATCH_FULL_SCREEN":S==="adunit"?h="ADUNIT":S==="sponsorshipsoffer"&&(h="UNKNOWN");m.clientScreen=h;if(W=K.kidsAppInfo)m.kidsAppInfo=JSON.parse(W);(h=K.wr)&&!W&&(m.kidsAppInfo={contentSettings:{ageUpMode:hQs[h]}});if(W=K.Sw)m.unpluggedAppInfo={enableFilterMode:!0};(h=K.unpluggedFilterModeType)&&!W&&(m.unpluggedAppInfo={filterModeType:jUp[h]});if(W=K.M5)m.unpluggedLocationInfo=W;U.client= m;m=U.request||{};K.Cg&&(m.isPrefetch=!0);if(W=K.mdxEnvironment)m.mdxEnvironment=W;if(W=K.mdxControlMode)m.mdxControlMode=mF$[W];U.request=m;m=U.user||{};if(W=K.uX)m.credentialTransferTokens=[{token:W,scope:"VIDEO"}];if(W=K.Pp)m.delegatePurchases={oauthToken:W},m.kidsParent={oauthToken:W};U.user=m;if(m=K.contextParams)U.activePlayers=[{playerContextParams:m}];if(K=K.clientScreenNonce)U.clientScreenNonce=K;return U}; gDs=function(K,W){Xa(K,1,W.Zue);Xa(K,2,W.EhU)}; g.dK=function(K){return(K=S3z(K.app.h7()))?K.Kf():null}; AA=function(K,W){return K.Wo(W)?K.rH():W}; Rs=function(K){return e2(K.Po(),K.getCurrentTime())}; UnL=function(K){for(var W=1;W>>13;h-=m;h-=U;h^=U<<8;m-=U;m-=h;m^=h>>>13;U-=h;U-=m;U^=m>>>12;h-=m;h-=U;h^=U<<16;m-=U;m-=h;m^=h>>>5;U-=h;U-=m;U^=m>>>3;h-=m;h-=U;h^=U<<10;m-=U;m-=h;m^=h>>>15} K=f9F(K);for(var U=2654435769,h=2654435769,m=314159265,S=K.length,f=S,G=0;f>=12;f-=12,G+=12)U+=zh(K,G),h+=zh(K,G+4),m+=zh(K,G+8),W();m+=S;switch(f){case 11:m+=K[G+10]<<24;case 10:m+=K[G+9]<<16;case 9:m+=K[G+8]<<8;case 8:h+=K[G+7]<<24;case 7:h+=K[G+6]<<16;case 6:h+=K[G+5]<<8;case 5:h+=K[G+4];case 4:U+=K[G+3]<<24;case 3:U+=K[G+2]<<16;case 2:U+=K[G+1]<<8;case 1:U+=K[G+0]}W();return tTY.toString(m)}; I9C=function(K,W){K.env.L("delhi_modern_web_player")&&K.scale!==.6&&(K.scale=W?.8:1)}; UD=function(K,W,U){U=U===void 0?!1:U;W.Qp&&((U===void 0?0:U)||!W.info.Ce[0].Wp.oU())&&(K=K.N,K.Ms&&!K.policy.g8&&(U=K.loader,U.Gm.isManifestless&&nt(U.Gm,K.Ms.kx,!!K.Wp.info.video)),K.Ms=null,K.U=null,K.W=K.Pp,K.N=K.W?K.N-K.jV:NaN,D2(K));W.dispose()}; yM=function(K,W){K.U!=W&&(K.U=W,K.Y&&K.Y())}; g.wP=function(K){g.GP.call(this);this.loaded=!1;this.player=K}; dFC=function(K,W){var U=K.V();U=K.Cg&&U.L("html5_onesie_preload_use_content_owner");var h=K.Ch;U=U===void 0?!1:U;var m=L6(W.C.experiments,"debug_bandaid_hostname");if(m)W=aX(W,m);else if(U&&(h==null?0:h.url)&&!W.X){var S=eA(10,new g.va(h.url));W=aX(W,S)}else W=(S=W.j.get(0))==null?void 0:S.location.clone();if(W&&K.videoId){S=BC(K.videoId);K=[];if(S)for(S=g.z(S),U=S.next();!U.done;U=S.next())K.push(U.value.toString(16).padStart(2,"0"));W.set("id",K.join(""));return W}}; MT=function(K){if(K.D.V().Q6)return K.Hd.get("offline")}; xo=function(K,W,U,h){this.initRange=U;this.indexRange=h;this.j=null;this.N=!1;this.G=0;this.W=this.pY=this.X=null;this.info=W;this.T9=new uX(K)}; Jh$=function(K){return K.Tm.L("html5_disable_av1")?!0:!1}; DFs=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D,a,Q,u){var O=new VG({current:null}),N=eQC(m,G,I);if(N instanceof v)return N;I=[];for(var A=[],Z=void 0,x=0;x0))return K}; bf=function(K,W,U){K.Ms=W;K.W3=U;var h=IE(K),m=K.N.j,S=ZCY(K.N,K.Ms),f=g.BB("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.sp(S,!0),DURATION:g.sp(m,!0)}),G=Fp(K.j,S*1E3);G=K.j[G].title;K.update({ariamin:Math.floor(K.N.X),ariamax:Math.floor(m),arianow:Math.floor(S),arianowtext:G?G+" "+f:f});m=K.clipStart;S=K.clipEnd;K.Uz&&K.api.getPresentingPlayerType()!==2&&(m=K.Uz.startTimeMs/1E3,S=K.Uz.endTimeMs/1E3);m=dT(K.N,m,0);G=dT(K.N,S,1);f=K.api.getVideoData();S=g.Jk(W,m,G);U=(f==null?0:g.pV(f))?1:g.Jk(U, m,G);W=py(K,W,h);g.Zd(K.WS,"transform","translateX("+W+"px)");K.api.L("delhi_modern_web_player")&&K.api.L("delhi_modern_web_player_cutout")&&QUs(K,W);oo(K,h,m,S,"PLAY_PROGRESS");(f==null?0:ZM(f))?(W=K.api.getProgressState().seekableEnd)&&oo(K,h,S,dT(K.N,W),"LIVE_BUFFER"):oo(K,h,m,U,"LOAD_PROGRESS");if(K.api.L("web_player_heat_map_played_bar")){var I;(I=K.W[0])!=null&&I.G.setAttribute("width",(S*100).toFixed(2)+"%")}}; Y32=function(K){$FC=K}; O42=function(K,W){if(W.videoFormatCapabilities)for(var U=0;Uh)return Ml(K,S.config),K.LM(S.hashData),G.return(oT());case 2:NE$(K);if(!(U&&K.X&&K.hotHashData)){G.O5(4);break}return g.T(G,BHL(K.X,K.hotHashData,U,h),4);case 4:return K.X? G.return(oT()):(f=new g.EB("Config not available in ytConfig"),jv(f),G.return(Promise.reject(f)))}})}; g.Vo=function(K){var W=K.Y;K.L("html5_gapless_unlimit_format_selection")&&IG(K)&&(W=!1);var U=!!K.j&&K.j.mK,h=K.Tm,m=K.kU(),S=WE(K),f=K.DA,G=W,I=K.isOtf();W=K.Zx();var d=K.Vr,J=K.getUserAudio51Preference(),e=Jh$(K),E=cO(K),B=new Z3F(h);if(h.G9()||h.L("html5_logging_format_selection"))B.X=!0;B.Bp=S;B.DA=f&&h.J;B.eV=J;g.PP("windows nt 5.1")&&!g.aS&&(B.fl=!0);if(S=m)S=g.$n(h)?RQp(h):!1;S&&(B.Ms=!0);G&&(B.fl=!0,B.Ny=!0);I&&!h.L("html5_otf_prefer_vp9")&&(B.fl=!0);h.playerStyle==="picasaweb"&&(I&&(B.fl= !1),B.uX=!1);d&&(B.fl=!0);T_(h.U,a$.CHANNELS)&&(h.L("html5_enable_ac3")&&(B.W=!0),h.L("html5_enable_eac3")&&(B.U=!0),h.L("html5_enable_ac3_gapless")&&(B.Le=!0));h.L("html5_block_8k_hfr")&&(B.Pp=!0);B.G=g.jV(h.experiments,"html5_max_selectable_quality_ordinal");B.Y=g.jV(h.experiments,"html5_min_selectable_quality_ordinal");kj&&(B.XI=480);if(U||m)B.uX=!1;B.Ik=!1;B.disableAv1=e;U=Y6(h,B.j,void 0,B.disableAv1);U>0&&U<2160&&(dr()||h.L("html5_format_hybridization"))&&(B.j.supportsChangeType=+dr(),B.V6= U);U>=2160&&(B.hK=!0);BJR()&&!h.L("disable_av1_setting")&&(B.j.serveVp9OverAv1IfHigherRes=0,B.AS=!1);B.Zx=W;B.vp=g.iC||sG()&&!W?!1:!0;B.J=h.L("html5_format_hybridization");B.Qg=h.L("html5_disable_encrypted_vp9_live_non_2k_4k");B.W3=E;HT(K)&&(B.oW=K.L("html5_prefer_language_over_codec"));aC()&&K.playerResponse&&K.playerResponse.playerConfig&&K.playerResponse.playerConfig.webPlayerConfig&&K.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(B.W=!0,B.U=!0);K.Y&&K.isAd()&&(K.WS&& (B.jV=K.WS),K.NN&&(B.N=K.NN));K.WN()&&(B.Ns=g.jV(K.Tm.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));B.tK=K.isLivePlayback&&K.nC()&&K.Tm.L("html5_drm_live_audio_51");B.M5=K.lQ;B.DO=!HT(K);return K.DO=B}; tK=function(K){K=K===void 0?yhF:K;if(K>0&&!(MTs()>(0,g.AI)()-K*1E3))return 0;K=g.SZ("yt-player-quality");if(typeof K==="string"){if(K=g.YJ[K],K>0)return K}else if(K instanceof Object)return K.quality;return 0}; g.u5=function(K,W){var U=K.j[K.j.length-1];U!==W&&(K.j.push(W),ra(K,U,W))}; x5=function(K,W,U,h){h=h===void 0?!1:h;g.GW.call(this,{T:"div",Z:"ytp-ad-persistent-progress-bar-container",K:[{T:"div",Z:"ytp-ad-persistent-progress-bar"}]});this.api=K;this.X=W;this.N=U;h&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.k(this,this.X);this.progressBar=this.yH("ytp-ad-persistent-progress-bar");this.j=-1;this.S(K,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Of=function(){this.j=Piz[0].toLowerCase()}; g.yX=function(K,W){var U=g.q2();W!==U[K]&&(W!==0?U[K]=W:delete U[K],g.ZDD(U))}; g.hA=function(K,W,U,h,m,S){function f(I){return new g.X3(function(d){setTimeout(d,I)})} function G(I,d,J){return I.Df(function(e){if(d<=0||ptC(e.xhr)===403)return x2(new Tm("Request retried too many times","net.retryexhausted",e.xhr,e));var E=Math.pow(2,U-d+1)*J,B=m>0?Math.min(m,E):E;return f(J).then(function(){S&&S(e,d-1);return G(Mn(K,W),d-1,B)})})} m=m===void 0?-1:m;return G(Mn(K,W),U-1,h)}; o_L=function(K){switch(K){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; ff=function(K){this.value=K}; Ps=function(K,W){this.X=K;this.subtleCrypto=W}; Ul2=function(K){var W={};K.forEach(function(U){W[U[0]]=U[1]}); return function(U){return W[U.find(function(h){return h in W})]||""}}; ffp=function(K,W,U){var h=Vue();(U=g.z0(U))&&delete h[U];W&&(h[K]=W)}; g.JD=function(K,W,U,h){h=h===void 0?{}:h;if(!K||!K.addEventListener&&!K.attachEvent)return"";var m=yss(K,W,U,h);if(m)return m;m=++Z4s.count+"";var S=!(W!="mouseenter"&&W!="mouseleave"||!K.addEventListener||"onmouseenter"in document);var f=S?function(G){G=new xm(G);if(!bI(G.relatedTarget,function(I){return I==K},!0))return G.currentTarget=K,G.type=W,U.call(K,G)}:function(G){G=new xm(G); G.currentTarget=K;return U.call(K,G)}; f=g.kQ(f);K.addEventListener?(W=="mouseenter"&&S?W="mouseover":W=="mouseleave"&&S?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),b4R()||typeof h==="boolean"?K.addEventListener(W,f,h):K.addEventListener(W,f,!!h.capture)):K.attachEvent("on"+W,f);Ij[m]=[K,W,U,f,h];return m}; sUp=function(K,W){if(W=W.find(function(U){return!(!U||!U.tooltipRenderer)}))K.tooltipRenderer=W.tooltipRenderer}; vrp=function(){var K=[],W=nm();K.push(yq(NO));Al(W.Lr,"mvp_lv")&&K.push(yq(bi));W=[new TJ,new $I];W.push(new OG(K));W.push(new RA(Fl));return W}; J4=function(K){var W={};if(!K||!K.thumbnails)return W;K=K.thumbnails.filter(function(G){return!!G.url}); K.sort(function(G,I){return G.width-I.width||G.height-I.height}); for(var U=g.z(Object.keys(VT2)),h=U.next();!h.done;h=U.next()){var m=Number(h.value);h=VT2[m];for(var S=g.z(K),f=S.next();!f.done;f=S.next())if(f=f.value,f.width>=m){m=Qzz(f.url);g.Rv(m)&&(W[h]=m);break}}(K=K.pop())&&K.width>=1280&&(K=Qzz(K.url),g.Rv(K)&&(W["maxresdefault.jpg"]=K));return W}; fTR=function(K,W){W<100||XD(Xtp,1)}; GD=function(K){var W=g.Qq(K);return(K=Number(g.wB(K)[4]||null)||null)?W+":"+K:W}; XpL=function(K){function W(S){K.error=K.hasError?new SuppressedError(S,K.error,"An error was suppressed during disposal."):S;K.hasError=!0} function U(){for(;h=K.stack.pop();)try{if(!h.async&&m===1)return m=0,K.stack.push(h),Promise.resolve().then(U);if(h.dispose){var S=h.dispose.call(h.value);if(h.async)return m|=2,Promise.resolve(S).then(U,function(f){W(f);return U()})}else m|=1}catch(f){W(f)}if(m===1)return K.hasError?Promise.reject(K.error):Promise.resolve(); if(K.hasError)throw K.error;} var h,m=0;U()}; NVz=function(K){var W=["o","a","A"];K.eV===1&&(K.W&&(W=["mac3","MAC3"].concat(W)),K.U&&(W=["meac3","MEAC3"].concat(W)),K.Cg&&(W=["i","I"].concat(W)));K.Ms&&(W=["so","sa"].concat(W));!K.Ny||K.Le||K.N||K.bG||W.unshift("a");K.N&&(W=(Zwe[K.N]||[K.N]).concat(W));return W}; CV=function(K){K.uu();K.tO.isSeeking();K.J&&CjC(K.J,K.videoTrack.Wp);gn(K);return v_z(K.tO)}; n4R=function(K,W){K=K.Y;CH&&(K+=W-q3s);return K}; xFs=function(K){var W={veType:253246};return g.kQ(function(){if(!W.veType)return gu(new g.EB("Error: Trying to graft a client VE without a veType.")),null;if(W.visibilityTypes){var U=W.visibilityTypes.reduce(function(h,m){return h|m}); U={visibility:{types:String(U)}}}U=WdF(W.veType,W.visualElement,W.elementIndex,W.clientYouTubeData,void 0,U);return Pg(K,U)?U:null})()}; Cie=function(K){this.jV=null;this.G=[];this.W="";this.uX=[];this.N=this.X=0;this.Y=!1;this.J=0;this.Ns=/[\\"]/g;this.j=this.U=0;this.Ms=!(!K||!K.w9)}; GBe=function(K,W){return lt(K,W)||Math.abs(K.U-W.W)<=1E-6||K.kx+1===W.kx&&W.j===0&&K.N?!0:!1}; l9_=function(K,W,U){return W?W.map(function(h){return h instanceof oE?lf(K,h.key,U,!0):lf(K,h,U)}):[]}; LE$=function(K){K.Cl=!K.Cl;K.u4=!0;K.element.classList.toggle("ytp-retro-player",K.Cl);K.resize();K.u4=!1;K.app.Yx.Fx("onRetroModeChanged",K.Cl)}; KR2=function(){return VV()?ZH.platform==="Android":yV("Android")}; WRs=function(K,W,U,h,m){h=h===void 0?Infinity:h;m=m===void 0?0:m;var S=K.E5();U=U||S.getPlayerType();(S=un(K,U,W,!0))||(S=Gt(K,U,W,!0));W=K.rH();U===2&&W&&(U=S.getVideoData(),W.T4(U.clientPlaybackNonce,U.Ez||"",U.breakType||0,U.lj,U.videoId||""));K.Y1(S,h,0,m)}; X_p=function(K,W){var U;return K.j.equals(W)&&(!K.U.j||!K.j.isLocked()||((U=K.nextVideo)==null?void 0:U.info.id)===K.U.j)}; UgC=function(K,W){if(W!==K.icon){switch(W){case 3:var U=oC();break;case 1:U=ZR();break;case 2:U={T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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:U={T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path", Qt:!0,B:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}K.updateValue("icon",U);K.icon=W}}; LV=function(K,W){K.D.setOption("captions","track",W)}; Sus=function(K){var W=Y7("_start",K),U=cip(K),h=!hoe;W&&U&&h&&(Aa(jes,new mgL(Math.round(U-W),K)),hoe=!0)}; Ko=function(){return(g.hc("csi_use_time_origin")||g.hc("csi_use_time_origin_tvhtml5"))&&m6.timeOrigin?Math.floor(m6.timeOrigin):m6.timing.navigationStart}; c3L=function(K,W){return K.kx!==W.kx&&W.kx!==K.kx+1||K.type!==W.type?!1:lt(K,W)?!0:Math.abs(K.W-W.W)<=1E-6&&K.kx===W.kx?!1:GBe(K,W)}; f4C=function(K,W){if(K.B3){var U=K.B3.Nb();if(U.length!==0){if(K.N&&W){var h=K.N,m=h.info.W;!iO(U,m)&&h.info.Y>0&&(0,g.AI)()-K.G<5E3&&(K.logger&&K.logger({dend:h.info.m6()}),U=ZmL(U,m,m+.01))}K.policy.HM&&K.logger&&K.logger({cbri:""+K.j});h=[];for(var S=m=0;m=f){var J=Object.assign({},K.Wl[S]),e=K.Gm.N.get(n5(K.Wl[S].formatId)),E=Math.max(I,f);f=e.index.IQ(E+K.X/ 1E3);I=e.index.getStartTime(f);var B=f+ +(Math.abs(I-E)>K.X/1E3);E=B+K.W;B=e.index.getStartTime(B)*1E3;S!==K.j||W?(J.q$=E,J.startTimeMs=B):(K.logger&&K.logger({pEvict:"1",og:J.startTimeMs,adj:I*1E3}),J.q$=f+K.W,J.startTimeMs=I*1E3);f=void 0;I=((f=K.N)==null?void 0:f.info.duration)||11;S===K.j&&GK.X/1E3);f=I+K.W;e=e.index.Tu(I)*1E3;J.QR=f;J.durationMs=e-J.startTimeMs;J.q$<=J.QR&&h.push(J)}d500));h++);h=m}else if(typeof K==="object")for(m in K){if(K[m]){var S=m;var f=K[m],G=W,I=U;S=typeof f!=="string"||S!=="clickTrackingParams"&&S!=="trackingParams"?0:(f=dgY(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?zD(S+".ve",f,G,I):0;h+=S;h+=zD(m,K[m],W,U);if(h>500)break}}else U[W]=id(K),h+=U[W].length;else U[W]=id(K),h+=U[W].length;return h}; Jfe=function(K,W){K=document.querySelector(K);if(!K)return!1;var U="",h=K.nodeName;h==="SCRIPT"?(U=K.src,U||(U=K.getAttribute("data-timing-href"))&&(U=window.location.protocol+U)):h==="LINK"&&(U=K.href);wl(document)&&K.setAttribute("nonce",wl(document));return U?(K=m6.getEntriesByName(U))&&K[0]&&(K=K[0],U=Ko(),b2("rsf_"+W,U+Math.round(K.fetchStart)),b2("rse_"+W,U+Math.round(K.responseEnd)),K.transferSize!==void 0&&K.transferSize===0)?!0:!1:!1}; UJ=function(K){return K.Ns==="detailpage"}; eoz=function(K){this.value=K}; BoR=function(){g.GP.call(this);var K=this;this.fullscreen=0;this.W=this.N=this.pictureInPicture=this.j=this.X=this.inline=!1;this.U=function(){K.mG()}; ETC(this.U);this.G=this.getVisibilityState(this.Dw(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.K_(),this.Dz(),this.eT(),this.F8())}; Dg2=function(K){h4.call(this,K)}; pU=function(){eo.apply(this,arguments)}; rfs=function(K){K=K.uX&&K.uX.adRendererCommands;return(K&&K.clickCommand&&g.P(K.clickCommand,g.W$)&&g.P(K.clickCommand,g.W$).commands||[]).some(function(W){return W.adLifecycleCommand?H0F(W.adLifecycleCommand):!1})}; CWF=function(K){if(xDs()){K.aW=K.api.Wh();var W=g.jV(K.api.V().experiments,"html5_d6de4_cloud_project_number");K.aW.XK("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:W}).then(function(h){K.X=h;var m;(m=K.j)==null||m.resolve();K.aW.XK("pt_pif")}).catch(function(h){Un(h,"player_start"); K.aW.XK("pt_pie");var m;(m=K.j)==null||m.reject(h)})}catch(h){Un(h,"player_start_catch"); K.api.rk("pfes",{});var U;(U=K.j)==null||U.reject(h)}}}; m2_=function(K){return DHR(K)}; KU=function(K,W){W=K.pos+W;if(!(K.j.length>=W)){for(var U=K.j.length*2;U0&&(U=W.indexOf(U.lX)+1,h=W.indexOf(h.lX)+1,S=U===0||h===0?h||-1:U-h);S||(S=m);return S})}; hE=function(K){return K.Hd.get("creatorendscreen")}; j9=function(K,W,U){g.nO.call(this,W,K);this.j=U}; Qe_=function(K,W,U,h){if(!U.playerVars)return new v("No playerVars available in AdIntroRenderer.");var m=nZ(U.playerVars);m.autoplay="1";return function(S){var f=S.slotId;S=h(S);f=bh(K.X.get(),"LAYOUT_TYPE_MEDIA",f);var G={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",wk:"adapter"};return{z5:{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",uZ:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"adapter", clientMetadata:new Zi([new T5({}),new vM(W),new NV({current:null}),new zI(m)]),t7:S(G)},QC:[new Sk(K.j,f,["error"])],GS:[],hg:[],aq:[]}}}; mh=function(K,W){this.name=K;this.options=W;this.N=!0;this.U=this.W=0}; U3=function(K,W){var U=K.W.get(W);if(U)return U;U=K.levels.length;for(var h=0;h=W)return K.W.set(W,h),h;K.W.set(W,U-1);return U-1}; iP=function(K){K.uX||(K.uX=(0,g.AI)(),g.sj("mb_s",K.uX,K.j))}; AD=function(K,W){return W&&W.test(K)?!0:!1}; kbR=function(){}; $g2=function(K){K.policy.QX=!1;try{K.QY()}catch(W){g.wG(W)}}; mQ=function(K,W){for(var U in K)if(W.call(void 0,K[U],U,K))return U}; hy=function(K,W){return{start:function(U){return K[U]}, end:function(U){return W[U]}, length:K.length}}; YuL=function(){var K={};this.X=(K.vs=[1,0],K.vw=[0,1],K.am=[2,2],K.a=[4,4],K.f=[8,8],K.bm=[16,16],K.b=[32,32],K.avw=[0,64],K.avs=[64,0],K.pv=[256,256],K.gdr=[0,512],K.p=[0,1024],K.r=[0,2048],K.m=[0,4096],K.um=[0,8192],K.ef=[0,16384],K.s=[0,32768],K.pmx=[0,16777216],K.mut=[33554432,33554432],K.umutb=[67108864,67108864],K.tvoff=[134217728,134217728],K);this.j={};for(var W in this.X)this.X[W][1]>0&&(this.j[W]=0);this.N=0}; fo=function(K){g.y.call(this,{T:"div",Z:S9.TITLE,K:[{T:"div",Hp:[S9.TEXT,K.L("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],K:[{T:"a",Hp:[S9.LINK,S9.SESSIONLINK],B:{target:K.V().jV,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},bX:"{{title}}"},{T:"div",Z:S9.SUBTEXT,K:["{{subtextElement}}"]}]}]});this.api=K;this.j=null;this.link=this.yH(S9.LINK);K.createClientVe(this.element,this,23851);this.S(K,"videodatachange",this.SV); this.S(K,"videoplayerreset",this.SV);this.SV()}; S3z=function(K){if(K.D.V().JK)return K.Hd.get("ux")}; tI=function(K){g.ad.call(this,g.w8({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var W=this;this.D=K;this.X=this.j=!1;this.pg=K.Es();K.createServerVe(this.element,this,!0);this.S(this.D,"settingsMenuVisibilityChanged",function(U){W.My(U)}); this.S(this.D,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; Hs=function(K){return K.right-K.left}; Rg=function(K,W,U,h,m,S,f,G,I){if((K+2&13)==1){W[24]!=-9&&(W[6]!==10&&((0,W[82])((0,W[2])(W[4],W[77]),W[59],W[29],W[77]),1)||(0,W[82])((0,W[48])((0,W[18])(),W[35],W[11]),W[62],W[23],W[67]));W[78]!=-7&&((0,W[65])(W[77],W[6]),1)||(0,W[75])((0,W[60])(),W[8],W[84]);W[12]!==-7?(((0,W[23])((((0,W[85])(W[61],W[42]),W[29])(W[30],W[18]),W[81])(W[42],W[49]),W[29],W[17],W[68]),W[5])(W[62]),W[65])(W[new U(t[38])/1E3],W[39]):(((((0,W[23])((0,W[85])(W[34],W[8]),W[75],(0,W[54])(),W[62],W[84]),W[27])(W[8]),W[75])((0,W[60])(), W[62],W[84]),W[81])(W[42],W[37]),W[75])((0,W[54])(),W[62],W[38]);W[17]>-8&&(0,W[new U(t[90])/1E3])((0,W[85])(W[63],W[68]),W[16],(0,W[16])(W[36],W[25]),W[9],W[45]);W[41]<2&&(W[46]!==-6?(0,W[66])(((0,W[33])((0,W[3])(),W[20],W[42]),W[50])(W[new U(t[48])/1E3],W[4]),W[70],(0,W[48])(W[40],(0,W[20])(W[23],W[57]),(0,W[20])(W[49],W[10]),(0,W[36])(W[17],W[81]),(0,W[47])(W[17],W[51]),W[new U(t[55])/1E3],W[49]),W[2],W[17]):(0,W[29])(((0,W[36])(W[69],W[8]),((0,W[new U(t[82])/1E3])(W[83]),(0,W[30])((0,W[9])(), W[49],W[39]),W[30])((0,W[77])(),W[83],W[79]),(0,W[40])(W[43],W[23]),W[68])(W[49]),W[64],(0,W[36])(W[49],W[new U(t[81])/1E3]),W[36],W[23],W[52]));(W[80]<=0||((((0,W[70])(W[19],W[49]),W[63])((0,W[70])(W[new U(t[87])/1E3],W[49]),W[70],((0,W[44])(W[27],W[69]),(0,W[20])(W[23],W[53]),W[70])(W[41],W[23]),W[31],W[23]),W[70])(W[25],W[23]),0))&&((((0,W[47])(W[17],W[26]),W[36])(W[23],W[13]),(0,W[47])(W[83],W[55]),W[45])(W[23],W[37]),(0,W[36])(W[69],W[32]),W[64])((0,W[44])(W[6],W[59]),W[36],W[49],W[76]);W[61]< 4&&(W[2]>=4&&(((0,W[30])((0,W[77])(),W[17],W[79]),W[40])(W[22],W[59]),/,\//)||(0,W[64])((0,W[40])(W[56],W[23]),W[63],W[1],W[29]));var d=[W,U]}((K|1)&14)==4&&(d=U(m,S,f));(K^12)&15||(d=W[t[5]]?W[t[5]][t[28]](t[32]):W[t[30]]===t[32]);if((K|48)==K){for(var J=64,e=[];++J-e[t[4]]-32;){switch(J){case 91:J=44;continue;case 123:J=65;break;case 65:J-=18;continue;case 58:J=96;continue;case 46:J=95}e[t[27]](String[t[46]](J))}d=e}(K^50)&9||(d=W(f,G,I));return d}; Fc=function(K,W,U){eg.call(this,K);this.W=W;this.j="f";this.X="z";UP(this,U)}; sKF=function(K,W,U){U=U===void 0?{}:U;var h={};g.TA("EOM_VISITOR_DATA")?h={"X-Goog-EOM-Visitor-Id":g.TA("EOM_VISITOR_DATA")}:h={"X-Goog-Visitor-Id":U.visitorData||g.TA("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return h;W=U.cA||g.TA("AUTHORIZATION");W||(K?W="Bearer "+g.vB("gapi.auth.getToken")().access_token:(K=qjL().eY(VX),g.hc("pageid_as_header_web")||delete K["X-Goog-PageId"],h=Object.assign({},h,K)));W&&(h.Authorization=W);return h}; HS2=function(K){K.G||(K.G=!0,g.kK(K.aF,K))}; cf2=function(K){K.j.queryid||(K.j.queryid=new O0F)}; xaF=function(){if(g.hc("bg_st_hr"))return"havuokmhhs-0";var K,W=((K=globalThis.performance)==null?void 0:K.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)}; nTY=function(K){if(!K)throw Error("Fetching Attestation challenge returned falsy");if(!K.challenge)throw Error("Missing Attestation challenge");var W=K.challenge,U=A2(W);if("c1a"in U&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},K,{z$r:W,k5p:U})}; Tj2=function(K,W){K.text=W;oQC(K);var U;K.onClickCommand=(U=K.suggestedActions[W])==null?void 0:U.tapCommand}; fOC=function(K,W,U,h){W={T:"span",Hp:h,K:[W]};var m;h="ytp-swatch-color";if(K.N||K.j)h="ytp-swatch-color-white";U==="highres"?m="8K":U==="hd2880"?m="5K":U==="hd2160"?m="4K":U.indexOf("hd")===0&&U!=="hd720"&&(m="HD");m&&(W.K.push(" "),W.K.push({T:"sup",Z:h,bX:m}));return W}; FTR=function(K,W,U,h){h=h===void 0?0:h;if(K==null){var m=32;U?(K=[U],m|=128):K=[];W&&(m=m&-16760833|(W&1023)<<14)}else{if(!Array.isArray(K))throw Error("narr");m=K[MX]|0;if(gT2&&1&m)throw Error("rfarr");2048&m&&!(2&m)&&FR_();if(m&256)throw Error("farr");if(m&64)return(m|h)!==m&&OF(K,m|h),K;if(U&&(m|=128,U!==K[0]))throw Error("mid");a:{U=K;m|=64;var S=U.length;if(S){var f=S-1,G=U[f];if(G!=null&&typeof G==="object"&&G.constructor===Object){W=m&128?0:-1;f-=W;if(f>=1024)throw Error("pvtlmt");for(var I in G)S= +I,S1024)throw Error("spvt");m=m&-16760833|(I&1023)<<14}}}OF(K,m|64|h);return K}; uOC=function(K,W){W=W&&tE(W)||"";if(g.YD(W))g.eI(Error("Found ThumbnailDetails without valid image URL"));else{var U=K.style;K=K.style.cssText;var h=document.implementation.createHTMLDocument("").createElement("DIV");h.style.cssText=K;K=E8e(h.style);U.cssText=[K,'background-image:url("'+W+'");'].join("")}}; WP=function(K){return K.lX==="mac3"||K.lX==="meac3"||K.lX==="m"||K.lX==="i"}; Dis=function(K,W){if(W.Wp.info.video&&W.N){var U=(W.j+W.X)/W.duration,h=W.Wp.info.j0;U&&h&&(K.Pp.gj(1,U/h),K.policy.N&&U/h>1.5&&K.loader.rk("overshoot",{sq:W.kx,br:U,max:h}))}}; kge=function(K,W,U,h,m,S,f,G){f=f===void 0?!0:f;GL(U)&&lU(m,0,null)&&(!jD(K,"impression")&&G&&G(),K.wH("impression"));jD(K,"impression")&&(g.M9(U,4)&&!g.M9(U,2)&&K.jz("pause"),Jw(U,4)<0&&!(Jw(U,2)<0)&&K.jz("resume"),g.M9(U,16)&&m>=.5&&K.jz("seek"),f&&g.M9(U,2)&&Jvs(K,U.state,W,h,m,S))}; No2=function(K,W,U,h,m,S,f,G,I){var d=U.pings;return d?[i0e(K,S,G,m,function(J){var e=J.slotId;J=I(J);var E=U.adLayoutLoggingData,B=U.progressCommands;e=bh(W.X.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",e);var D={layoutId:e,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",wk:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",uZ:ZJ(d),layoutExitNormalTriggers:[new pi(W.j,S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new vM(h),new vJ(Su(d)),new EL(zop(d)),new YA(f/1E3),new nQ({progressCommands:B}),new O8(f/1E3)]),t7:J(D),adLayoutLoggingData:E}})]:new v("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:U})}; Afp=function(K,W){var U="",h=g.U4(K.player,"More videos","v");W===2?U="Hide videos":W===1&&(U="More videos");K.element.setAttribute("title",h);K.element.setAttribute("data-title-no-tooltip",U);K.element.setAttribute("aria-label",U);W=K.yH("ytp-fullscreen-grid-expand-button");var m=K.yH("ytp-fullscreen-grid-hover-overlay");m&&(m.setAttribute("title",h),m.setAttribute("data-title-no-tooltip",U),m.setAttribute("aria-label",U));W&&(W.setAttribute("title",h),W.setAttribute("data-title-no-tooltip",U),W.setAttribute("aria-label", U));K.player.T8()}; Rop=function(K,W,U,h,m){this.N=K;this.X=W;this.U=U;this.cpn=h;this.G=m;this.W=0;this.j=""}; sez=function(K,W){var U=g.Vo(K),h=K.V(),m=h.U;h=h.L("html5_shorts_onesie_mismatched_fix");var S=K.WN();if(h){if(!m.X){if(S&&Ia)return Ia;if(dL)return dL}}else if(dL&&!m.X)return dL;var f=[],G=[],I={},d=JE.concat(yfR);h&&(d=JE.concat(MCe));K.L("html5_early_media_for_drm")&&(d=d.concat(PXY),K.L("allow_vp9_1080p_mq_enc")&&d.push(pZY));var J=[].concat(g.z4(oTC));K.L("html5_iamf_audio_onesie_fmt")&&J.push(["773"]);d=g.z(d);for(var e=d.next();!e.done;e=d.next()){var E=!1;e=g.z(e.value);for(var B=e.next();!B.done;B= e.next()){B=B.value;var D=IX(B,S&&h);if(D&&D.video&&!(wF(D)&&!U.hK&&D.video.qualityOrdinal>U.V6)){var a=g.jV(K.V().experiments,"html5_drm_byterate_soft_cap");a>0&&Z0Y(D)&&D.j0>a||(E?(f.push(B),b0s(B,f,K)):(D=e9(U,D,m),D===!0?(E=!0,f.push(B),b0s(B,f,K)):I[B]=D))}}}J=g.z(J);for(d=J.next();!d.done;d=J.next())for(d=g.z(d.value),E=d.next();!E.done;E=d.next())if(E=E.value,(e=TVL(E))&&e.audio&&(K.L("html5_onesie_51_audio")||!WP(e)&&!U1(e)))if(e=e9(U,e,m),e===!0){G.push(E);b0s(E,G,K);break}else I[E]=e;if(!K.L("html5_enable_audio_quality_setting"))for(K= g.z(["141","774"]),J=K.next();!J.done;J=K.next())J=J.value,G.includes(J)&&(g.sS(G,J),I[J]="blkhqa");U.X&&W("orfmts",I);if(h)return m.X&&(m.X=!1,Ia=dL=void 0),S?Ia={video:f,audio:G}:dL={video:f,audio:G};dL={video:f,audio:G};m.X=!1;return dL}; VCC=function(){this.W=0;this.jV=Infinity;this.J=!0;this.X=this.j=2;this.N=1;this.U=!1;this.G=10;this.uX=!1;this.Y=1;this.Ms=!1}; dH=function(K,W,U){En.push({payloadName:K,payload:U,tGe:void 0,options:W});XZs||(XZs=KDz())}; vTs=function(K){return K.Y||K.L("web_player_media_session_infinity")&&K.isLivePlayback}; quC=function(K,W,U,h){var m=this;h=h===void 0?{}:h;this.policy=W;this.N5=U;this.G=h;this.status=0;this.response=void 0;this.X=0;this.aborted=this.U=!1;this.errorMessage="";this.J=function(S){if(S)if(m.status=S.status,S.ok&&S.body&&m.status!==204)m.status=m.status||242,m.N=S.body.getReader(),m.qs()?m.N.cancel().catch(function(){}):(m.responseHeaders=S.headers,m.N5.A8(),TYF(m)); else m.onDone();else m.onError(Error("null_response"))}; this.Y=function(S){var f=(0,g.AI)();m.qs()||(S.done?(m.N=void 0,m.onDone()):(S=S.value,m.X+=S.length,m.j.append(S),TYF(m),m.N5.rN(f,m.X)))}; this.onError=function(S){m.errorMessage=String(S);m.U=!0;m.onDone()}; this.j=new WQ;this.W=window.AbortController?new AbortController:void 0;this.start(K)}; QJ=function(K,W,U,h,m){m=m===void 0?!1:m;var S={startTime:(0,g.AI)(),ticks:{},infos:{}};if(LJ)try{var f=i6L(W);if(f!=null&&(f>n2Y||f1)throw new Dp;K=K.id;Rjp(K);H$=EM(K);erz(18E5,2);return K}; zl=function(){return g.PP("android")&&g.PP("chrome")&&!(g.PP("trident/")||g.PP("edge/"))&&!g.PP("cobalt")}; zyz=function(K,W,U,h){U=U===void 0?800:U;h=h===void 0?600:h;if(K=g.xv(window,K,"loginPopup","width="+U+",height="+h+",resizable=yes,scrollbars=yes"))SBC(function(){W()}),K.moveTo((screen.width-U)/2,(screen.height-h)/2)}; nT=function(K,W,U,h){this.videoInfos=K;this.j=W;this.audioTracks=[];this.X=h||[];if(this.j){K=new Set;U==null||U({ainfolen:this.j.length});W=g.z(this.j);for(h=W.next();!h.done;h=W.next())if(h=h.value,!h.ZO||K.has(h.ZO.id)){var m=void 0,S=void 0,f=void 0;(f=U)==null||f({atkerr:!!h.ZO,itag:h.itag,xtag:h.j,lang:((m=h.ZO)==null?void 0:m.name)||"",langid:((S=h.ZO)==null?void 0:S.id)||""})}else m=new g.kn(h.id,h.ZO),K.add(h.ZO.id),this.audioTracks.push(m);U==null||U({atklen:this.audioTracks.length})}}; LRC=function(K){var W=W===void 0?5:W;return K?l4C[K]||W:W}; KNR=function(K,W,U){K.api.isFullscreen()?U<1-W&&K.api.toggleFullscreen():U>1+W&&K.api.toggleFullscreen()}; dW=function(K,W,U){return K+U*(W-K)}; rL=function(K,W){this.T9=K;this.j=W===void 0?!1:W;this.X=!1}; TL=function(K){return(K=K.exec(g.i5()))?K[1]:""}; gB=function(K){var W;return!((W=K.playerResponse)==null||!W.compositePlayabilityStatus)}; aa=function(K){var W=K.data;var U=K.offset+K.j;W=W.getUint32(U)*4294967296+W.getUint32(U+4);K.j+=8;return W}; WNp=function(K){return AC(K,"html5_ssap_play_cached_preroll")}; UEY=function(K,W,U){U=U===void 0?1:U;var h=W.itag;if(h==="0")return!0;var m=W.mimeType;if(W.lX==="1e"&&!K.U)return"dav1enc";if(wF(W)&&K.Ms)return"dav1";if(W.video&&(W.video.isHdr()||W.video.primaries==="bt2020")&&!(T_(K,a$.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(h==="338"&&!(g.Nl?MP(53):g.aS&&MP(64)))return"dopus";var S=U;S=S===void 0?1: S;U={};W.video&&(W.video.width&&(U[a$.WIDTH.name]=W.video.width),W.video.height&&(U[a$.HEIGHT.name]=W.video.height),W.video.fps&&(U[a$.FRAMERATE.name]=W.video.fps*S),W.video.j&&(U[a$.EOTF.name]=W.video.j),W.j0&&(U[a$.BITRATE.name]=W.j0*8*S),W.lX==="("&&(U[a$.CRYPTOBLOCKFORMAT.name]="subsample"),W.video.projectionType==="EQUIRECTANGULAR"||W.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||W.video.projectionType==="MESH")&&(U[a$.DECODETOTEXTURE.name]="true");var f;((f=W.audio)==null?0:f.numChannels)&& W.lX!=="i"&&W.lX!=="I"&&(U[a$.CHANNELS.name]=W.audio.numChannels);K.N&&TX(W)&&(U[a$.EXPERIMENTAL.name]="allowed");f=g.z(Object.keys(a$));for(S=f.next();!S.done;S=f.next()){S=a$[S.value];var G;if(G=U[S.name])if(G=!(S===a$.EOTF&&W.mimeType.indexOf("vp09.02")>0)){G=S;var I=W;G=!(K.experiments.Rk("html5_ignore_h264_framerate_cap")&&G===a$.FRAMERATE&&KIz(I))}if(G)if(T_(K,S))if(K.G){if(K.G[S.name]1080&&W.zL&&(m+="; hdcp=2.2");return h==="227"?"hqcenc":h!=="585"&&h!=="588"&&h!=="583"&&h!=="586"&&h!=="584"&&h!=="587"&&h!=="591"&&h!=="592"||K.experiments.Rk("html5_enable_new_hvc_enc")?aC()&&rJ()>=21&&g.PP("appletv5")&&(h==="410"||h==="845")?!0:K.isTypeSupported(m)?!0:"tpus":"newhvc"}; wL=function(K,W,U,h,m,S){qv.call(this,K,{T:"div",Z:"ytp-ad-skip-button-slot"},"skip-button",W,U,h,m);var f=this;this.uX=null;this.hK=!1;this.vp=S;this.U=this.api.V().experiments.Rk("enable_modern_skip_button_on_web");this.JK=!1;this.W=new g.GW({T:"span",Hp:["ytp-ad-skip-button-container"]});this.U&&this.W.element.classList.add("ytp-ad-skip-button-container-detached");g.k(this,this.W);this.W.U5(this.element);this.X=this.N=null;this.Ik=new g.Wr(this.W,500,!1,100,function(){return f.hide()}); g.k(this,this.Ik);this.Le=new x9(this.W.element,15E3,5E3,.5,.5,this.U);g.k(this,this.Le);this.hide()}; j4s=function(K){var W=new qte(K.j.xm);g.k(K,W);K=[new Qd(K.j.zm),new MM(K.j.D),new uC(K.j.zm),new Mbp(K.j.tB,K.j.RP),new QS,new aas(K.j.i5,K.j.hB,K.j.zm),new RO,new hnp];K=g.z(K);for(var U=K.next();!U.done;U=K.next())WKY(W,U.value);K=g.z(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(U=K.next();!U.done;U=K.next())aK(W,U.value,function(){}); return W}; hSz=function(K,W,U,h){h=h===void 0?{}:h;K.X.add(h.layer||0);K.W=function(){UcF(K,W,U,h);var f=g.ND(h.layer);if(f){for(var G=g.z(K.Y),I=G.next();!I.done;I=G.next())I=I.value,Pg(K,I[0],I[1]||f,h.layer);f=g.z(K.J);for(G=f.next();!G.done;G=f.next())G=G.value,mEY(K,G[0],G[1])}}; U||g.z0(h.layer)||K.W();if(h.xp)for(var m=g.z(h.xp),S=m.next();!S.done;S=m.next())SiL(K,S.value,h.layer);else g.wG(Error("Delayed screen needs a data promise."))}; fr2=function(K){if(K.C.storeUserVolume){K=g.SZ("yt-player-volume")||{};var W=K.volume;K={volume:isNaN(W)?100:g.Jk(Math.floor(W),0,100),muted:!!K.muted}}else K={volume:100,muted:K.C.mute};return K}; tUL=function(K,W,U){K.noneOfTheAbove=new vx(K.api,K.layoutId,K.interactionLoggingClientData,K.s5);K.noneOfTheAbove.U5(K.answers);K.noneOfTheAbove.init(Mq("survey-none-of-the-above"),W,U)}; Gfp=function(K,W,U,h,m,S,f,G,I,d){d=d===void 0?!1:d;var J=Q8(m);if(!SSL(m,d))return new v("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:m});if(J<=0)return new v("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:m});var e=fhs(K,W,m,S,U,h,f);return e instanceof v?e:function(E){return oL2(W,E.slotId,U,J,m,YW(m),f(E),e,G,I)}}; Ire=function(K,W,U){var h,m=(h=K.Gm)==null?void 0:h.N.get(W);if(!m)return[];if(U.JF){var S;return((S=m.Gp(0,U.clipId))==null?void 0:S.Ce)||[]}if(m.LK()){var f=U.startMs,G=U.durationMs;h=1E3;var I;if(((I=K.P2)==null?0:I.j)&&U.timeRange){var d;f=(d=U.timeRange.startTicks)!=null?d:-1;var J;G=(J=U.timeRange.rK)!=null?J:-1;var e;h=(e=U.timeRange.timescale)!=null?e:-1}if(U.Gg<0||U.zI<0||G<0||f<0||U.Hv<0||h<0)return Up(K,W),[];K=JT(U.Gg,U.Hv);W=U.ZJ||0;return[new TG(3,m,K,"makeSliceInfosMediaBytes",U.zI- 1,f/h,G/h,W,K.length-W,void 0,U.Uj,U.clipId)]}if(U.zI<0)return Up(K,W),[];var E;return((E=K.Gm)==null?0:E.mK)?(W=m.GI,I=W*m.info.j0,d=U.ZJ,(((f=K.P2)==null?0:f.kI)&&K.j.Gu()!=="ONESIE"||K.j.fX())&&U.timeRange&&!d&&(G=U.timeRange.startTicks/U.timeRange.timescale),[new TG(3,m,void 0,"makeSliceInfosMediaBytes",U.zI,G,W,d,I,!0,U.Uj,U.clipId)]):[]}; JXp=function(K,W){var U=W==null?void 0:W.primary;K.N(0,U);U=U?dEC(U):void 0;K.N(2,U);K.N(1,W==null?void 0:W.secondary)}; di=function(K){this.experiments=K;this.j=2048;this.W=0;this.Ms=(this.Y=this.L("html5_streaming_resilience"))?.5:.25;var W=W===void 0?0:W;this.N=g.jV(this.experiments,"html5_media_time_weight_prop")||W;this.jV=(this.U=this.experiments.Rk("html5_consider_end_stall"))&&up;this.X=this.experiments.Rk("html5_measure_max_progress_handling");this.J=this.L("html5_treat_requests_pre_elbow_as_metadata");this.G=this.L("html5_media_time_weight")||!!this.N;this.L("html5_sabr_live_audio_early_return_fix")&&up&& (this.j=65536)}; q$=function(K,W){return function(U){return vLp(F2(K),W.slotId,W.slotType,W.slotPhysicalPosition,W.wk,W.slotEntryTrigger,W.slotFulfillmentTriggers,W.slotExpirationTriggers,U.layoutId,U.layoutType,U.wk)}}; nw=function(K,W,U){W=W.layoutId;for(var h=[],m=g.z(K.Lg.values()),S=m.next();!S.done;S=m.next())if(S=S.value,S.trigger instanceof F0){var f;if(f=S.trigger.layoutId===W){f=U;var G=q82.get(S.category);f=G?G===f:!1}f&&h.push(S)}h.length&&A6(K.j(),h)}; enF=function(K,W){Sx(qd(qd(K.Tz(),function(U){return VJ_(U,[Pc(W)])}),function(U){if(U){U=g.z(U); for(var h=U.next();!h.done;h=U.next()){var m=h.value;h=m.key;m=m.value;h&&m&&(Ud2([{settingItemId:h,settingOptionValue:m}]),Lt(K))}}}),function(){K.j=!0})}; g.lO=function(K,W){var U=W.type;U in K.listeners&&g.sS(K.listeners[U],W)&&(L$(W),K.listeners[U].length==0&&(delete K.listeners[U],K.j--))}; Bxp=function(K,W){W?Pws.test(K):(K=g.BO(K),Object.keys(K).includes("cpn"))}; vm=function(){var K=/WebKit\/([0-9]+)/.exec(g.i5());return!!(K&&parseInt(K[1],10)>=600)}; Q4=function(K){g.Qa(K.W,!K.j)}; EcD=function(K,W){if(W.encryptedTokenJarContents&&(K.j[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var U=Number(W.expirationSeconds);setTimeout(function(){delete K.j[W.encryptedTokenJarContents]},U*1E3); K.X&&g.AQ("CONSISTENCY",W.encryptedTokenJarContents,U,void 0,!0)}}; lQ=function(K,W,U){kE(K,W,2);Y$(K.j,U.length);xw(K,K.j.end());xw(K,U)}; C$=function(K){K=K[lJ];return K instanceof nD?K:null}; E4=function(K,W,U,h){if(!(W===K.state&&U===K.wi&&h===K.seekSource||W!==void 0&&(W&128&&!U||W&2&&W&16))){var m;if(m=W)m=W||K.state,m=!!(m&16||m&32);K=new g.Kw(W,U,m?h?h:K.seekSource:null)}return K}; lkC=function(K){var W={},U=window.h5vcc;W.hwConcurrency=navigator.hardwareConcurrency;K.j&&(W.cpe=K.j.message);K.X&&(W.cpt=K.X.time,W.cps=K.X.state);if(U==null?0:U.cVal)W.cb2s=U.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),W.cb5s=U.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),W.cb30s=U.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return W}; B9e=function(){return{T:"svg",B:{viewBox:"0 0 24 24"},K:[{T:"path",B:{d:"M0 0h24v24H0z",fill:"none"}},{T:"path",B:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; U1=function(K){return K.lX==="MAC3"||K.lX==="MEAC3"||K.lX==="M"||K.lX==="I"}; HIp=function(K){if(K.je()&&!K.api.isEmbedsShortsMode()&&K.kq){var W=K.api.L("web_player_hide_overflow_button_if_empty_menu");!K.hn||W&&!B5p(K.hn)||PK(K.kq,K.hn);!K.shareButton||W&&!DN(K.shareButton)||PK(K.kq,K.shareButton);!K.copyLinkButton||W&&!DEs(K.copyLinkButton)||PK(K.kq,K.copyLinkButton)}else{W=K.api.V().getWebPlayerContextConfig();if(K.kq){for(var U=K.kq,h=g.z(U.actionButtons),m=h.next();!m.done;m=h.next())m.value.detach();U.actionButtons=[]}K.searchButton&&!g.Hj(K.e7.element,K.searchButton.element)&& K.searchButton.U5(K.e7.element);!K.hn||(W==null?0:W.hideTopWatchNextButton)||g.Hj(K.e7.element,K.hn.element)||K.hn.U5(K.e7.element);!K.shareButton||(W==null?0:W.hideTopShareButton)||g.Hj(K.e7.element,K.shareButton.element)||K.shareButton.U5(K.e7.element);K.copyLinkButton&&!g.Hj(K.e7.element,K.copyLinkButton.element)&&K.copyLinkButton.U5(K.e7.element)}}; T5C=function(K){var W=(K.L("html5_generate_session_po_token")||K.L("html5_generate_content_po_token"))&&!K.useLivingRoomPoToken;try{if(K.L("html5_use_shared_owl_instance"))rX2(K);else if(W){K.aW.XK("pot_isc");var U=g.jV(K.api.V().experiments,"html5_webpo_kaios_defer_timeout_ms");U?(V2(K),g.FE(function(){$k(K)},U)):K.L("html5_webpo_idle_priority_job")?(V2(K),g.UL(g.hN(),function(){$k(K)})):$k(K)}}catch(h){h instanceof Error&&g.eI(h)}}; W8$=function(K,W,U){r9(K,W);W=ars(K.U,U);U||W||(W=XWC(K));W=W||K.G.j[0];K.X=K.Gm.j[W.id];T0(K);K.Y=K.X;wMp(K);G2z(K);K.N=K.nextVideo;K.Y=K.X;return wpz(K)}; wKC=function(K,W,U,h,m){return iJ2(K,W,U,h,m)}; Yk=function(K,W){W=g.z(Q4$[W]);for(var U=W.next();!U.done;U=W.next())K.D.CN(U.value)}; $ER=function(K){K.j=null;K.Lg.clear();K.X&&K.X.stop();K.U&&K.U.stop();var W;(W=K.N)==null||W.stop();delete K.N}; IV=function(K,W,U){for(var h=K.length,m=typeof K==="string"?K.split(""):K,S=0;S=0)return h;var m;(m=K.Y)==null||kfY(m,W,U);h=Math;m=h.min;var S=K.N;if(S.G)if(S=S.G,S.lB&&S.lB.type===3)S=S.lB.startTime;else if(S.N>0){var f=S.j.index;f=g.FK(f.offsets.subarray(0,f.count),S.N*S.chunkSize);S=S.j.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else S=0;else S=Infinity;W=m.call(h,W,S);K.j=K.policy.uX?null:K.Wp.Vd(W).Ce[0];CG(K)&&(K.policy.qg&&(U==null?void 0:U.seekSource)===60||K.B3&&K.B3.abort(),K.policy.Gb&&(U=K.Y)!=null&&(U.N=void 0)); K.eV=0;return K.j?K.j.startTime:W}; c$=function(){var K="youtube.player.web_20251015_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251015_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251015_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251015_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),W;if(((W=K)==null?void 0:W.length)==2)return K[1];K="youtube.player.web_20251015_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var U;return((U=K)==null?void 0:U.length)==3?"20"+K[1]+K[2]:null}; dJ=function(){var K=window,W=K.MSMediaKeys;vm()&&!W&&(W=K.WebKitMediaKeys);return W&&W.isTypeSupported?W:null}; C8=function(K,W,U,h){g.p.call(this);var m=this;this.loader=K;this.policy=W;this.Wp=U;this.timing=h;this.logger=new g.io("dash");this.X=[];this.Ns=[];this.j=this.B3=null;this.tK=!1;this.eV=this.Le=0;this.U=-1;this.uX=!1;this.DA=-1;this.hK=null;this.Ms=NaN;this.jV=[];this.xd={DI:function(){return m.N}, I4r:function(){return m.X}, QAV:function(){return m.Y}}; this.N=new iIR(K,W,U);this.policy.j&&(this.Y=new sV(this.N,this.loader.getManifest(),this.policy,function(S){m.policy.V3&&m.rk("buftl",S)})); this.policy.XI&&(this.J=new znR(this));this.j0=U.info.j0;this.G=this.policy.uX?!1:U.HL();this.isManifestless=U.HL();this.W=this.G;g.k(this,this.hK)}; U9p=function(K){var W=new dU;if(K.interpreterJavascript){var U=QAp(K.interpreterJavascript);U=I$(U).toString();var h=new Ww;Ya(h,6,U);rk(W,Ww,1,h,Ud)}else K.interpreterUrl&&(U=gx(K.interpreterUrl),U=Zh(U).toString(),h=new U8,Ya(h,4,U),rk(W,U8,2,h,Ud));K.interpreterHash&&er(W,3,K.interpreterHash,Ud);K.program&&er(W,4,K.program,Ud);K.globalName&&er(W,5,K.globalName,Ud);K.clientExperimentsStateBlob&&er(W,7,K.clientExperimentsStateBlob,Ud);return W}; pc=function(K,W){mh.call(this,K,W);this.options=W;F9(K)}; N52=function(K,W){K5(W,"cms",function(U){K.policy.N&&K.rk("pathprobe",U)},function(U){K.iX.handleError(U)})}; AXs=function(K,W){if(K.api.isMinimized())return!1;var U=zkp(W.image),h=U;U.width=21)}; FyL=function(K){K.U=0;K.j="hidden";K.X=void 0;K.W=void 0;K.G.stop();K.N=void 0}; gL=function(K,W){for(var U,h;;){if(K.Kg<262){M7(K);if(K.Kg<262&&W===0)return 1;if(K.Kg===0)break}U=0;K.Kg>=3&&(K.IR=(K.IR<4096)&&(K.Wd=2));if(K.AB>=3&&K.Wd<=K.AB){h=K.Oz+K.Kg-3;U=ji(K,K.Oz-1-K.qj,K.AB-3);K.Kg-=K.AB-1;K.AB-=2;do++K.Oz<=h&&(K.IR=(K.IR<-1)throw Error("Deps cycle for: "+W);if(K.X.has(W))return K.X.get(W);if(!K.j.has(W)){if(h)return;throw Error("No provider for: "+W);}h=K.j.get(W);U.push(W);if(h.Zb!==void 0)var m=h.Zb;else if(h.gqp)m=h[Z8]?l9_(K,h[Z8],U):[],m=h.gqp.apply(h,g.z4(m));else if(h.KT){m=h.KT;var S=m[Z8]?l9_(K,m[Z8],U):[];m=new (Function.prototype.bind.apply(m,[null].concat(g.z4(S))))}else throw Error("Could not resolve providers for: "+W);U.pop();h.wrr||K.X.set(W,m); return m}; g.eC=function(K){var W;return K.KK||((W=K.suggestions)==null?void 0:W[0])||null}; Fls=function(K){var W=K.j;if(W.j==W.N)return!1;K.W=K.j.j;var U=lF(K.j)>>>0;W=U>>>3;U&=7;if(!(U>=0&&U<=5))throw Error();if(W<1)throw Error();K.N=W;K.X=U;return!0}; vFD=function(K){return a1(K,1,1)}; WOD=function(){this.X=[];this.j=[]}; WX=function(K,W){(K=La(K,W))?K.layout!=null&&!K.layout&&UF("Unexpected empty layout",W):UF("Unexpected undefined slotState",W);return(K==null?void 0:K.layout)||null}; e_=function(K){if(K.trendingOfferEntityKey){var W=g.qg.getState().entities;if(W=qF(W,"trendingOfferEntity",K.trendingOfferEntityKey)){var U,h,m;W.encodedSkuId!==((U=K.j)==null?void 0:(h=U.bannerData)==null?void 0:(m=h.itemData)==null?void 0:m.encodedOfferSkuId)?vt(K):(K.X.update({trendingOffer:W.shortLabel+" \u2022 "+W.countLabel}),K.X.show(),K.banner.update({vendor:KGR(K)}))}else vt(K)}else vt(K)}; $Dz=function(K){this.U=new Uint8Array(64);this.N=new Uint8Array(64);this.W=0;this.G=new Uint8Array(64);this.X=0;this.U.set(K);this.N.set(K);for(K=0;K<64;K++)this.U[K]^=92,this.N[K]^=54;this.reset()}; WGF=function(K,W,U){if(K.logger){for(var h=[],m=0;m0)m(S);else{a:{if(S&&typeof S.length=="number"){if(g.SG(S)){var f=typeof S.item=="function"||typeof S.item=="string";break a}if(typeof S==="function"){f=typeof S.item=="function";break a}}f=!1}g.tD(f?g.k4(S):S,m)}}}; aFe=function(){return{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]}}; USL=function(K){var W=W===void 0?!1:W;var U,h,m,S,f;return g.r(function(G){if(G.j==1)return(U=K.Hd.get("asmjs"))&&!W?G.return(U):(h=w2.get("asmjs"))!=null?(m=h,G.O5(2)):g.T(G,new Promise(function(I,d){o2C(K,"asmjs",function(){var J=w2.get("asmjs");J?I(J):d("cannot load module asmjs")},d)}),3); G.j!=2&&(m=G.X);S=m;if(!S)return G.return(Promise.reject("cannot load module asmjs"));f=new S(K.D);K.Hd.set("asmjs",f);f.create();return G.return(f)})}; h3C=function(K,W,U){K.playback.Os();K.playback.seekTo(W,U);K.playback.playVideo()}; rn=function(K,W){this.X=[];this.W=[];this.U=[];this.N=[];this.j=[];this.G=K.brU;this.Y=W;this.xhr=K.xhr;this.G&&jkL(this)}; xi=function(){}; Za=function(K,W){var U="";if(K.dangerousLogToVisitorSession)U="visitorOnlyApprovedKey";else if(K.cttAuthInfo){if(W===void 0?0:W){W=K.cttAuthInfo.token;U=K.cttAuthInfo;var h=new l6;U.videoId?h.setVideoId(U.videoId):U.playlistId&&dB(h,2,u7,Jc(U.playlistId));kk[W]=h}else W=K.cttAuthInfo,U={},W.videoId?U.videoId=W.videoId:W.playlistId&&(U.playlistId=W.playlistId),i7[K.cttAuthInfo.token]=U;U=K.cttAuthInfo.token}return U}; Z0Y=function(K){return K.lX==="("||K.lX==="(h"||K.lX==="H"||MH&&K.lX==="1e"}; fAR=function(K){var W;if((W=K[mS_])!=null)K=W;else{if(zL!==zL)throw Error();K=K[mS_]=SGz(K.j)}return K}; g.t1p=function(K,W){var U;return g.r(function(h){var m=g.vB("yt.aba.att");return(U=m?m:Bw.instance!==void 0?Bw.instance.N.bind(Bw.instance):null)?h.return(U("ENGAGEMENT_TYPE_PLAYBACK",K,W)):h.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; AG=function(K){var W=K.hours||0;var U=K.minutes||0,h=K.seconds||0;W=h+U*60+W*3600+(K.days||0)*86400+(K.weeks||0)*604800+(K.months||0)*2629800+(K.years||0)*31557600;W<=0?W={hours:0,minutes:0,seconds:0}:(K=W,W=Math.floor(K/3600),K%=3600,U=Math.floor(K/60),h=Math.floor(K%60),W={hours:W,minutes:U,seconds:h});var m=W.hours===void 0?0:W.hours;U=W.minutes===void 0?0:W.minutes;K=W.seconds===void 0?0:W.seconds;h=m>0;W=[];if(h){m=(new Intl.NumberFormat("en-u-nu-latn")).format(m);var S=["fr"],f="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(" "); m="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(Nb)?m.replace(",","\u00a0"):S.includes(Nb)?m.replace(",","\u202f"):f.includes(Nb)?m.replace(",","."):m;W.push(m)}h=h===void 0?!1:h;U=(["af","be","lt"].includes(Nb)||h)&&U<10?G8L().format(U):(new Intl.NumberFormat("en-u-nu-latn")).format(U);W.push(U);U=G8L().format(K);W.push(U);U=":";"da fi id si sr sr-Latn".split(" ").includes(Nb)&&(U=".");return W.join(U)}; mM=function(K){K=K.N.xv();return K>0?K:1}; bs=function(K){return g.vB("ytcsi."+(K||"")+"data_")||NeC(K)}; gj=function(K){return AC(K.Xx.get(),"html5_ssap_pass_transition_reason")}; k1F=function(){var K=K===void 0?2E3:K;var W=W===void 0?15:W;var U=U===void 0?5:U;var h=h===void 0?2:h;return window&&"requestIdleCallback"in window?new Xq(function(m){requestIdleCallback(function(){m()},{timeout:K})}):IAL(K,W,U,h)}; Q2=function(K,W,U,h,m,S,f){K=[new mx(K.j,W)];return{slotId:W,slotType:U,slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:K,slotExpirationTriggers:m,wk:"core",clientMetadata:new Zi([new xx(f({slotId:W,slotType:U,slotPhysicalPosition:1,wk:"core",slotEntryTrigger:h,slotFulfillmentTriggers:K,slotExpirationTriggers:m}))]),adSlotLoggingData:S}}; nB=function(K){if(!K.isProximaLatencyEligible)return 0;var W=dSR();return Jez(K)?2:W===1?1:K.L("html5_enable_proxima")?2:0}; Ew=function(K){jf.call(this,K);var W=this;this.events=new g.Te(this);g.k(this,this.events);this.j=new v6p(this.api);this.events.S(this.api,"legacyadtrackingpingreset",function(){W.j.j={}}); this.events.S(this.api,"legacyadtrackingpingchange",function(U){var h=W.j;AE(h,"part2viewed",1,0x8000000000000);AE(h,"engagedview",Math.max(1,U.An*1E3),0x8000000000000);if(!U.isLivePlayback){var m=U.lengthSeconds*1E3;IG(U)&&h.api.L("html5_shorts_gapless_ads_duration_fix")&&(m=h.api.getProgressState().seekableEnd*1E3-U.Wf);AE(h,"videoplaytime25",m*.25,m);AE(h,"videoplaytime50",m*.5,m);AE(h,"videoplaytime75",m*.75,m);AE(h,"videoplaytime100",m,0x8000000000000);AE(h,"conversionview",m,0x8000000000000); AE(h,"videoplaybackstart",1,m);AE(h,"videoplayback2s",2E3,m);AE(h,"videoplayback10s",1E4,m)}}); this.events.S(this.api,g.$w("appad"),this.X);this.events.S(this.api,g.g8("appad"),this.X)}; qd=function(K,W,U){var h=Ykp(),m=h.Pm,S=h.resolve,f=h.reject;K.X.push(function(G){if(W)try{var I=W(G);S(I)}catch(d){f(d)}else S(G)}); K.N.push(function(G){if(U)try{var I=U(G);S(I)}catch(d){f(d)}else f(G)}); F$(K);return m}; WI=function(K,W,U){K.state.j.hasOwnProperty(W)||fZ(K,W,U);K.state.Y[W]=function(){return U.apply(K,g.Xl.apply(0,arguments))}; K.state.G.add(W)}; v8s=function(K){return Number(K.data["Start-Media-Time-Us"])/1E6||0}; J2Y=function(K){K.Wl=[];K.tC=[];K.U.clear();K.j=-1;K.N=void 0}; e3$=function(K){var W;return((W=K.N)==null?void 0:W.currentVideoDuration)||-1}; Xq=function(K){this.j="pending";this.X=[];this.N=[];try{K(this.W.bind(this),this.reject.bind(this))}catch(W){this.reject(W)}}; Ra=function(K,W,U){var h=U.rB,m=U.nQ,S=U.listener,f=U.AQ;U=U.wQ===void 0?!1:U.wQ;if(K.j.has(W))UF("Unexpected registration of layout in LidarApi");else{if(f){if(K.X.has(f))return;K.X.add(f)}K.j.set(W,S);Xk(nm().Lr,"fmd",1);E1C(yq(uR),h);var G=U?W:void 0;zV_(PD(),W,{Oi:function(){if(!m)return{};var I=K.D.getPresentingPlayerType(!0),d;return(d=K.D.getVideoData(I))!=null&&d.isAd()?{currentTime:K.dk.get().getCurrentTimeSec(I,!1,G),duration:m,isPlaying:Ah(K.dk.get(),I).isPlaying(),isVpaid:!1,isYouTube:!0, volume:K.dk.get().isMuted()?0:K.dk.get().getVolume()/100}:{}}})}}; g.BNe=function(K){if(K.info.Wp.LK())return K.info.duration;K.W===-1&&(K.W=Gg(K));return K.W||K.info.duration}; Ik=function(K,W){this.X=K;this.j=W}; HHe=function(K,W){K=DS_(K.j,function(h){return h.index.isLoaded()}); if(!K)return NaN;K=K.index;var U=K.IQ(W);return K.getStartTime(U)===W?W:U0){var J=h+Number(U.startTimeOffsetMs),e=J+Number(U.cacheFetchSmearingDurationMs);d={xV:new Yo(e,e+Number(d)),lS:!1,wf:new Yo(Math.floor(J+Math.random()* Number(U.cacheFetchSmearingDurationMs)),e),cueProcessedMs:h?h:J};J=[];J.push(new y4({}));e=[];e.push(new gX(K.j));e.push(new Mc2(K.j));f&&J.push(new Pq({}));G.push(r2s(K,W,m,d,S,J,e))}return G}; TN2=function(K){for(var W,U=[];!(W=K.next()).done;)U.push(W.value);return U}; Al=function(K,W){if(g.r5(K.N,W))return K.N[W];if(K=K.j[W])return K.getValue()}; gB$=function(K,W){var U=W.code;U!==void 0&&(qm(K,8),qm(K,U<<1^U>>31));Vd(K,2,W.message)}; G8L=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; aAY=function(K,W){UF(W+": undefined adapter",K.slot,K.layout)}; wH2=function(K,W,U,h){for(var m=0;m=0||W.T9.Xt("defrag")==="1"||W.T9.Xt("otf")==="1"){W=null;break a}m=JT(0,4096)}m=new rd([new TG(5,h.Wp,m,"createProbeRequestInfo"+h.G,h.kx)],W.X);m.n1=U;m.j=W.j;W=m}W&&n1s(K,W)}}; FGs=function(K,W,U,h,m,S,f,G){UH.call(this,K,W,U,h);this.zm=m;this.lZ=S;this.G=G;this.l5=!0;this.W=null;this.U=Sp(U.clientMetadata,"metadata_type_linked_player_bytes_layout_id");VT(this.lZ(),this);K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; ZAL=function(K){if(K.L("html5_stateful_audio_normalization")){var W=1,U=g.jV(K.Tm.experiments,"html5_default_ad_gain");U&&K.isAd()&&(W=U);var h,m;U=(m=(h=K.W)==null?void 0:h.audio.W)!=null?m:K.TD;if(U==null||isNaN(U))K=PVY(K);else{h=(0,g.AI)();K.Sz=1;m=h-K.Tm.RC<=K.maxStatefulTimeThresholdSec*1E3;K.applyStatefulNormalization&&m?K.Sz=2:m||(K.Tm.KK=Infinity,K.Tm.RC=NaN);m=(K.Sz===2?g.Jk(K.Tm.KK,K.minimumLoudnessTargetLkfs,K.loudnessTargetLkfs):K.loudnessTargetLkfs)-U;if(K.Sz!==2){var S,f,G,I,d=((S= K.playerResponse)==null?void 0:(f=S.playerConfig)==null?void 0:(G=f.audioConfig)==null?void 0:(I=G.loudnessNormalizationConfig)==null?void 0:I.statelessLoudnessAdjustmentGain)||0;m+=d}m=Math.min(m,0);K.preserveStatefulLoudnessTarget&&(K.Tm.KK=U+m,K.Tm.RC=h);K=Math.min(1,Math.pow(10,m/20))||W}}else K=PVY(K);return K}; Mn=function(K,W){var U=g.Ni(W),h;return(new g.X3(function(m,S){U.onSuccess=function(f){g.B$(f)?m(new ugD(f)):S(new Tm("Request failed, status="+ptC(f),"net.badstatus",f))}; U.onError=function(f){S(new Tm("Unknown request error","net.unknown",f))}; U.onTimeout=function(f){S(new Tm("Request timed out","net.timeout",f))}; h=g.ka(K,U)})).Df(function(m){if(m instanceof tL){var S; (S=h)==null||S.abort()}return x2(m)})}; k8_=function(K,W,U,h,m,S){this.ids=K;this.j=W;this.X=U;this.W=h;this.N=m;this.lF=S}; ft=function(){var K=Number(g.TA("DCLKSTAT",0));return isNaN(K)?0:K}; DEs=function(K){var W=K.api.V(),U=K.api.getVideoData(),h=K.api.xx().getPlayerSize().width;W=W.N;return!!U.videoId&&h>=K.X&&U.N$&&!U.Mk&&!K.api.isEmbedsShortsMode()&&!W}; g.ZA=function(K){return K.Hd.get("captions")}; vb=function(K){g.JM(K.badge.element,"ytp-suggested-action-badge-with-controls",K.Ns||!K.Y)}; k3$=function(K,W){for(var U=g.z(Object.keys(K)),h=U.next();!h.done;h=U.next()){h=h.value;var m=K[h][0];if(!m.width&&m.zL===W.zL&&!m.audioChannels)return h}return""}; os=function(K,W){K.has(W)||K.set(W,{instreamVideoAdRenderer:void 0,UB:void 0,adVideoId:W,QS:[]});return K.get(W)}; DS_=function(K,W){return(W=mQ(K,W))&&K[W]}; No=function(K){return K.mediaElement?Rs(K.mediaElement):0}; ua=function(K,W){Xa(K,13,W.timeSinceLastManualFormatSelectionMs);var U=W.lastManualDirection;U!==void 0&&(qm(K,112),qm(K,U<<1^U>>31));Xa(K,16,W.D5V);Xa(K,17,W.detailedNetworkType);Xa(K,18,W.eW);Xa(K,19,W.qv);Xa(K,21,W.b_k);Xa(K,23,W.C$);Xa(K,28,W.ZY);Xa(K,29,W.kzK);Xa(K,34,W.visibility);U=W.playbackRate;if(U!==void 0){var h=new ArrayBuffer(4);(new Float32Array(h))[0]=U;U=(new Uint32Array(h))[0];if(U!==void 0)for(qm(K,285),KU(K,4),h=0;h<4;)K.view.setUint8(K.pos,U&255),U>>=8,K.pos+=1,h+=1}Xa(K,36,W.cP); bY(K,38,W.mediaCapabilities,O42,3);Xa(K,39,W.zPV);Xa(K,40,W.yN);Xa(K,44,W.playerState);yH(K,46,W.oZ);Xa(K,48,W.tf);Xa(K,50,W.im);Xa(K,51,W.hE);Xa(K,54,W.zZ);if(W.xu)for(U=0;U0)){G.O5(5);break}m.r0=1E3*Math.pow(2,h-1)+Math.random()*1E3;return g.T(G,new Promise(function(I){return function(d){g.UL(0,function(){d(void 0)},I.r0)}}(m)),5); case 5:return g.Bj(G,7),g.T(G,NS(K,W),9);case 9:return S=G.X,G.return(nTY(S));case 7:U=f=g.SV(G),f instanceof Error&&g.eI(f);case 8:h++;m={r0:void 0};G.O5(2);break;case 4:throw U;}})}; g.Zp=function(K){if(typeof DOMParser!="undefined")return dt(new DOMParser,yys(K),"application/xml");throw Error("Your browser does not support loading xml documents");}; qH=function(K){return K.policy.bG&&!!K.G}; OmC=function(){var K=window.document;return K&&typeof K.elementFromPoint==="function"}; NNY=function(K){K.gk&&!K.isSuspended&&z3R(K.schedule)&&(N52(K,K.gk),K.gk="")}; g.pG=function(K,W){typeof K.className=="string"?K.className=W:K.setAttribute&&K.setAttribute("class",W)}; A2$=function(K){HE(K.U,K.element,["keymessage","webkitkeymessage"],K.Ux);HE(K.U,K.element,["keyerror","webkitkeyerror"],K.hs);HE(K.U,K.element,["keyadded","webkitkeyadded"],K.aI)}; jT=function(){g.y.call(this,{T:"div",Z:"ytp-fine-scrubbing-chapter-title",K:[{T:"div",Z:"ytp-fine-scrubbing-chapter-title-content",bX:"{{chapterTitle}}"}]})}; Vd=function(K,W,U){U!==void 0&&(T_2(K,W,Math.ceil(Math.log2(U.length*4+2)/7)),KU(K,U.length*1.2),W=b7(U,K.j.subarray(K.pos)),K.pos+W>K.j.length&&(KU(K,W),W=b7(U,K.j.subarray(K.pos))),K.pos+=W,JjC(K))}; y2e=function(K,W,U,h){if(!K.j||!K.X)return null;var m=K.j.isView()?K.j.uG:K.j,S=K.X.isView()?K.X.uG:K.X,f=new sn(K.mediaElement,K.AK,!0);f.N=K.N;R3e(f,new V4(m,W,U,h),new V4(S,W,U,h));Op(K)||K.j.gQ(K.j.A7());return f}; g.M1e=function(K,W){return K.start-W.start||K.priority-W.priority||K.X-W.X}; P3z=function(K){jf.call(this,K);this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"videoready",function(W){if(K.getPresentingPlayerType()===1){var U,h,m={playerDebugData:{pmlSignal:!!((U=W.getPlayerResponse())==null?0:(h=U.adPlacements)==null?0:h.some(function(S){var f;return S==null?void 0:(f=S.adPlacementRenderer)==null?void 0:f.renderer})), contentCpn:W.clientPlaybackNonce}};g.N_("adsClientStateChange",m)}})}; PL$=function(){var K=!1;try{K=!!window.sessionStorage.getItem("session_logininfo")}catch(W){K=!0}return(g.TA("INNERTUBE_CLIENT_NAME")==="WEB"||g.TA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&K}; R5C=function(K,W){K=W.oN()==1?K.j:K.X;var U=IV(K,function(h){return h==W}); return U!=-1?(K.splice(U,1),W.B2&&W.B2.unobserve(),W.dispose(),!0):!1}; PBp=function(){return{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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"}}]}}; fi=function(K){jf.call(this,K);var W=this;this.j=[];this.events=new g.Te(K);g.k(this,this.events);fZ(K,"addEmbedsConversionTrackingParams",function(U){W.addEmbedsConversionTrackingParams(U)}); this.events.S(K,"veClickLogged",function(U){W.api.hasVe(U)&&(U=U.visualElement.getAsJspb(),U=NB(U,2),W.j.push(U))})}; o1C=function(K,W,U,h){h=h===void 0?!0:h;if(U&&!K.hK.has(W.kx)){for(var m=W.startTime,S=[],f=0;f=G,I=K.Gm.isManifestless,f){var d;if(((d=K.j)==null?void 0:d.Nk.event)==="predictStart"&&K.j.kx=1&&A6(K.j(),U)}; v$=function(K){return K.X.every(function(W){return W.hasOwnProperty("offsetMilliseconds")})}; skY=function(K,W){var U="";W=W.yw();W.totalLength<=K.policy.Sw&&(K=s1(W),K=hx(K),U=pE(K)?K:"");return U}; V1p=function(K,W){K=x7(K.array,function(U){return W-U.start||1}); return K<0?-(K+1):K}; qGp=function(K,W,U){U=iNs(K,U);var h=W.getElementsByTagName("path")[0],m=h.getAttribute("d");if(h.getAttribute("id")){var S=BW();W=W.getElementsByTagName("use");for(var f=0;f255){var G=Error("go/unicode-to-byte-error");if(U)throw G;h[m++]=f&255;f>>=8}h[m++]=f}K=g.o0(h,W)}return K}; eJ=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ad-simple-attributed-string"},"ad-simple-attributed-string",W,U,h);this.hide()}; g.eI=function(K){g.wG(K,"WARNING")}; xk=function(K){xk[" "](K);return K}; Co=function(K,W,U){return K.protocol+"://i1.ytimg.com/vi/"+W+"/"+(U||"hqdefault.jpg")}; PPz=function(K,W){return K.slice(W.length).replace(/_[a-z]/g,function(U){return U.toUpperCase().replace("_","")}).replace("Dot",".")}; G6=function(K){var W;return!((W=OB(K))==null||!W.isLocked)}; l7=function(K){g.p.call(this);var W=this;this.C=K;this.j=new Map;this.W=[];this.X=!M_();this.jV=g.jV(this.C.experiments,"html5_onesie_prewarm_interval_ms");this.J=new g.QC(this.Y,this.jV,this);this.G=-1;this.xd={ZOA:function(){return W.j}, JV5:function(){return W.U}, YOX:function(){return fjL}}; g.k(this,this.J);JXp(this,g.SZ("yt-player-bandaid-host"));this.U=this.load();this.jV&&this.U.then(function(){W.Y()})}; tKD=function(K,W,U,h,m,S,f,G){UH.call(this,K,W,U,h);this.zm=m;this.lZ=S;this.G=G;this.l5=!0;this.W=null;this.U=Sp(U.clientMetadata,"metadata_type_linked_player_bytes_layout_id");VT(this.lZ(),this);K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; GCC=function(K){this.j=K}; dO=function(K){var W;K=Ii((W=K.serializedClientExperimentFlags)!=null?W:"","&");this.flags=new Map(Object.entries(K).map(function(U){var h=g.z(U);U=h.next().value;h=h.next().value;return typeof h==="string"?[U,h]:[U,h[0]]}))}; IjF=function(K){K.sourceElement&&(document.activeElement&&g.Hj(K.element,document.activeElement)&&K.sourceElement.focus(),K.sourceElement.setAttribute("aria-expanded","false"),K.sourceElement=void 0);g.Qa(K.U);K.G=void 0}; nZ=function(K){K.charAt(0)==="?"&&(K=K.substring(1));return Ii(K,"&")}; nR=function(K){var W;return((W=K.autoplaySwitchButtonRenderer)==null?void 0:W.enabled)!==void 0}; d4L=function(K,W){var U=K.j;W=Math.min(W,U.X.totalLength);if(W===U.X.totalLength)return K.j=null,U;U=Mys(U,W);K.j=U[1];return U[0]}; J5e=function(K,W,U,h,m){yU.call(this,"banner-image",K,W,U,h,m)}; ewR=function(K){K.j.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",K.Y.isExpanded())}; Lo=function(K,W){return W>=K.FX()-rl(K)}; Up=function(K,W){K.Vt.has(W)&&(I8?K.Vt.get(W).gg.clear():K.Vt.get(W).s_=new WQ,nJ(K,W),K.N=!0)}; Ub=function(K,W){return g.dG(K.j,function(U){return U.nf==W})}; cm=function(K,W){if(AC(W.get(),"html5_ssap_pass_transition_reason"))switch(K){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return bBs(K),"abandoned";case 3:case 1:return bBs(K),"error";default:fl(K,"unexpected transition reason")}else switch(K){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return UF("getExitReason: unexpected reason",void 0,void 0,{reason:K}),"error";default:fl(K,"unexpected transition reason")}}; Eo_=function(K){var W=K.X.find(function(m){return kw(K,m)}); if(W){var U=K.app.E5();xB(K);var h=new g.Kw(8);W=GEC(K,W)/1E3;Cp(K,W,{},h,"_force");U.rk("forceParentTransition",{childPlayback:1});K.j.rk("forceParentTransition",{parentPlayback:1})}}; Ke=function(K){K.X&&(K.X.disable(),K.Ik=0,K.uX.style.removeProperty("transform"),K.progressBar.style.removeProperty("transform"),K.M5.style.removeProperty("height"),K.element.parentElement&&K.element.parentElement.style.removeProperty("height"))}; g.MEY=function(K){var W={};K=(K.j&&g.ez(K)>=2?K.j.getAllResponseHeaders()||"":"").split("\r\n");for(var U=0;U=3&&K.Oz>0&&(h=K.Oz-1,U=S[h],U===S[++h]&&U===S[++h]&&U===S[++h])){for(m=K.Oz+258;U===S[++h]&&U===S[++h]&&U===S[++h]&&U===S[++h]&&U===S[++h]&&U===S[++h]&&U===S[++h]&&U===S[++h]&&hK.Kg&&(K.Wd=K.Kg)}K.Wd>=3?(U=ji(K,1,K.Wd-3),K.Kg-=K.Wd,K.Oz+=K.Wd,K.Wd=0):(U=ji(K,0,K.window[K.Oz]),K.Kg--,K.Oz++);if(U&&(mB(K,!1),K.VX.C5===0))return 1}K.RQ=0;return W=== 4?(mB(K,!0),K.VX.C5===0?3:4):K.m4&&(mB(K,!1),K.VX.C5===0)?1:2}; TXD=function(K){return{Nk:Wu(K,1,AmR),trackType:L_(K,2),zI:L_(K,3),timeRange:Wu(K,4,r5s)}}; g.EB=function(K){var W=g.Xl.apply(1,arguments);var U=Error.call(this,K);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.args=[].concat(g.z4(W));Object.setPrototypeOf(this,this.constructor.prototype)}; Nk=function(){return{T:"svg",B:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},K:[{T:"path",B:{d:"M0 0h48v48H0z",fill:"none"}},{T:"path",B:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}}; ckC=function(){}; ajD=function(K,W,U,h,m,S){K=U.inPlayerLayoutId?U.inPlayerLayoutId:bh(S,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",K);var f,G,I=U.instreamAdPlayerOverlayRenderer?(f=U.instreamAdPlayerOverlayRenderer)==null?void 0:f.adLayoutLoggingData:(G=U.playerOverlayLayoutRenderer)==null?void 0:G.adLayoutLoggingData;f={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wk:W};return{layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uZ:new Map,layoutExitNormalTriggers:[new op(function(d){return Rp(S, d)},U.Ew)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:W,clientMetadata:h,t7:m(f),adLayoutLoggingData:I}}; d7s=function(K,W,U){return U===void 0||U?g.yb(K,function(h,m){return g.BX(W,m)}):g.CB(W,function(h,m,S){return K.slice(m>0?S[m-1]+1:0,h+1).reduce(function(f,G){return f+G},0)})}; wz$=function(K,W,U){W.mR().currentState<2&&(U=cm(U,K.Xx),W.iG(W.VH(),U));U=W.mR().j;K.fz(K.slot,W.VH(),U)}; U5=function(K,W){W?K.requestHeaders.Authorization="Bearer "+W:delete K.requestHeaders.Authorization}; HAR=function(K){var W=Kp(K);return W?W.U-K.loader.getCurrentTime():0}; OgC=function(K,W,U,h,m,S,f){m=m===void 0?{}:m;var G=Math.round((0,g.AI)()),I=K.size,d=QuC(f);K=g.z(K);var J=K.next();for(f={};!J.done;f={DH:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Nq:void 0,Sd:void 0},J=K.next()){var e=g.z(J.value);J=e.next().value;e=e.next().value;f.batchRequest=g.Dh({context:g.Nm(W.config_||g.aA())});if(!g.y3(e)&&!g.hc("throw_err_when_logevent_malformed_killswitch")){h();break}f.batchRequest.events=e;(e=i7[J])&&J3F(f.batchRequest,J,e);delete i7[J];f.dangerousLogToVisitorSession= J==="visitorOnlyApprovedKey";$4_(f.batchRequest,G,f.dangerousLogToVisitorSession);fms(m);f.Nq=function(E){g.hc("start_client_gcf")&&g.MU.C_(function(){return g.r(function(B){return g.T(B,YQC(E),0)})}); I--;I||U()}; f.DH=0;f.Sd=function(E){return function(){E.DH++;if(m.bypassNetworkless&&E.DH===1)try{g.Ds(W,d,E.batchRequest,HZ({writeThenSend:!0},E.dangerousLogToVisitorSession,E.Nq,E.Sd,S)),Rw=!1}catch(B){g.aH(B),h()}I--;I||U()}}(f); try{g.Ds(W,d,f.batchRequest,HZ(m,f.dangerousLogToVisitorSession,f.Nq,f.Sd,S)),Rw=!1}catch(E){g.aH(E),h()}}}; ZY=function(K,W,U){hq.call(this,K);var h=this;this.Xx=U;W.get().addListener(this);this.addOnDisposeCallback(function(){W.qs()||W.get().removeListener(h)})}; g.Bz=function(K,W){W=Wz(W);W=Nr(W,W);W.W=!0;zN(K,W);return K}; c5s=function(K,W,U,h,m){W=ZTp(W,U,h,m);(U=g.HB(K.C)&&!K.C.uX)&&!K.EP&&(W.fetch=0);jl(K,W);g.HB(K.C)&&K.aW.tick("ep_a_pr_s");if(U&&!K.EP)U=K.yX(),x02(U,W).then(function(S){K.JA=!0;w5(K,S)}); else K.playlist.onReady(function(){p9(K)}); g.HB(K.C)&&K.aW.tick("ep_a_pr_r")}; no$=function(K){return{nm:yO(K,1,D9Y)}}; goL=function(K,W){var U=K.startSecs+K.k$;U=U<=0?null:U;if(U===null)return null;switch(K.event){case "start":case "continue":case "stop":break;case "predictStart":if(W)break;return null;default:return null}W=Math.max(K.startSecs,0);return{Gh:new Yo(W,U),jWr:new u6(W,U-W,K.context,K.identifier,K.event,K.j)}}; mW=function(K,W){return mu(K,W,function(U){return U.X})}; bw2=function(K){var W=K.D.getVideoData(),U=K.G&&!W.isInlinePlaybackNoAd;K.D.L("html5_defer_modules_on_ads_only")&&!W.isAd()&&(U=!1);return U}; u2s=function(K,W,U,h){K.Bl(5);var m=!!K.M$&&F$s.includes(g.Qq(K.M$)||"");try{var S=new XE({program:W,globalName:U,EM:{disable:!g.hc("att_web_record_metrics")||!g.hc("att_skip_metrics_for_cookieless_domains_ks")&&m,OP:"aGIf"}});S.BJ.then(function(){K.Bl(6);h&&h(W)}); K.Y7(S)}catch(f){K.Bl(7),f instanceof Error&&g.eI(f)}}; kCs=function(K){var W,U,h;return K.D.L("web_fix_annotations")&&!!((W=K.D.getWatchNextResponse())==null?0:(U=W.playerOverlays)==null?0:(h=U.playerOverlayRenderer)==null?0:h.isAnnotationsEnabled)}; vc=function(K){return K.D.V().L("html5_allow_asmjs")}; YH_=function(K,W){var U=u5R();U&&(K?a1(K,61,igR[U]):W&&(W.client.connectionType=U));g.hc("web_log_effective_connection_type")&&(U=JYe())&&(K?a1(K,94,zwD[U]):W&&(W.client.effectiveConnectionType=U))}; h0=function(K){return{toString:function(){return K()}}}; AX=function(K,W){var U=this;this.N5=K;this.requestNumber=++NXL;this.j=this.now();this.J=this.jV=NaN;this.Y=this.j;this.N=this.Cg=this.U=0;this.G=this.j;this.Ik=this.uX=this.eV=this.oW=this.XI=this.DA=this.X=this.W=0;this.Ms=this.isActive=!1;this.W3=this.gk=0;this.xd={eRp:function(){return U.TR}}; this.dH=W.dH;this.snapshot=ai(this.dH);this.policy=this.dH.X;this.Jn=!!W.Jn;this.o8=W.o8;this.YF=W.YF||0;this.q9=W.q9||0;W.zt&&(this.hK=new wD);var h;this.TR=(h=W.TR)!=null?h:!1;this.Jn||A5s(this.dH)}; cW=function(K,W,U,h){h!=null||(h=!!(34&W));K=QE(K,W,nmL,h);h=32;U&&(h|=2);W=W&16769217|h;OF(K,W);return K}; g_L=function(K,W,U,h,m){xgs=!1;var S=(0,g.AI)();W.ticks.gelc=S;K$++;g.hc("disable_compression_due_to_performance_degredation")&&S-W.startTime>=kWz&&(WW++,LJ=!1);zrL(W);h.headers||(h.headers={});h.headers["Content-Encoding"]="gzip";h.postBody=K;h.postParams=void 0;m(U,h)}; g.MKC=function(K){this.Tm=K;this.J=new P_F;this.bx=this.pV=!1;this.vF=2;this.vp=20971520;this.gk=8388608;this.hK=120;this.Qx=this.rP=this.ZN=2;this.ul=this.CM=!1;this.Je=1E3;this.DO=15;this.N$=1;this.jV=1.15;this.Ns=1.05;this.ub=1;this.cY=this.Sz=!1;this.U0=6;this.N=!1;this.zy=100;this.KK=10;this.RI=6;this.WS=!1;this.El=1;this.vS=this.M9=!1;this.g4=2;this.Cw=this.yF=this.VA=!1;this.Qg=!0;this.QX=this.TI=this.DA=this.QA=!1;this.b3=!0;this.e2=!1;this.W="";this.X8=[];this.fM=this.XI=!1;this.V6=0;this.SD= "";this.gN=this.BV=this.V3=this.Yz=this.N2=this.iK=this.U=this.U3=this.NN=this.j=this.Ik=this.eV=this.Gb=this.n7=this.Ms=this.Dp=this.qg=!1;this.Ev=!0;this.yj=this.n4=this.xr=this.pO=this.Mc=this.X=this.Pp=!1;this.JK=!0;this.bG=this.Mg=this.uX=this.Q6=this.Cg=this.Le=!1;this.Pn=3;this.q_=this.D3=this.ZX=this.AS=this.kI=this.dc=this.nV=this.Gy=!1;this.x_=0;this.Ez=this.wr=this.HT=!1;this.M5=1;this.Nc=this.XR=this.G=this.Ti=!1;this.BF=g.jV(this.Tm.experiments,"html5_min_readbehind_secs");this.eH=g.jV(this.Tm.experiments, "html5_min_readbehind_cap_secs");this.CK=this.Tm.L("html5_offline_reset_media_stream_on_unresumable_slices");this.j0=NaN;this.il=Sl(this,"html5_request_size_min_kb",64)*1024;this.Bp=2097152;this.Nz=Sl(this,"html5_bypass_contention_secs");this.UK=1048576;this.pC=Sl(this,"html5_repredict_interval_ms",1800);this.aH=Sl(this,"html5_head_miss_secs",5);this.II=Sl(this,"html5_min_upgrade_health_secs",10);this.GT=Sl(this,"html5_min_seconds_between_format_selections",8);this.TT=Sl(this,"html5_max_buffer_health_for_downgrade_secs", 15);this.WM=up;this.l0=g.jV(this.Tm.experiments,"html5_min_startup_buffered_media_duration_secs");this.Qj=g.jV(this.Tm.experiments,"html5_post_interrupt_readahead");this.OH=this.Tm.L("html5_disable_classic_alr");this.T1=g.jV(this.Tm.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.t1=Sl(this,"html5_ssdai_failure_retry_limit",3);this.lQ=this.Tm.experiments.Rk("html5_clone_original_for_fallback_location");this.Iu=g.jV(this.Tm.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.D5=g.jV(this.Tm.experiments,"html5_subsegment_readahead_timeout_secs");this.iNX=g.jV(this.Tm.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.bl=g.jV(this.Tm.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Lsx=g.jV(this.Tm.experiments,"html5_subsegment_readahead_min_load_speed");this.LS=g.jV(this.Tm.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.xZH=g.jV(this.Tm.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.fK=Sl(this,"html5_hopeless_secs",15);this.gV=this.Tm.L("html5_restrict_streaming_xhr_on_sqless_requests");this.dU=g.jV(this.Tm.experiments,"html5_max_headm_for_streaming_xhr");this.Qq=this.Tm.L("html5_pipeline_manifestless_allow_nonstreaming");this.HU=this.Tm.L("html5_prefer_server_bwe3");this.gv5=this.Tm.L("html5_last_slice_transition");this.x5k=this.Tm.L("html5_store_xhr_headers_readable");this.Ys=g.jV(this.Tm.experiments,"html5_max_drift_per_track_secs");this.g8=this.Tm.L("html5_no_placeholder_rollbacks"); this.rSx=this.Tm.L("html5_subsegment_readahead_enable_mffa");this.W3=this.Tm.L("html5_allow_video_keyframe_without_audio");this.Cw=g.PJ(this.Tm)&&!g.Km()&&this.Tm.L("html5_adjust_media_time_for_non_cobalt_tv");this.p$=this.Tm.L("html5_enable_vp9_fairplay");this.Dx=1048576;this.Pq=this.Tm.L("html5_woffle_resume");this.jq=this.Tm.L("html5_abs_buffer_health");this.gO=this.Tm.L("html5_interruption_resets_seeked_time");this.zT=g.jV(this.Tm.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.d$r=this.Tm.L("html5_report_captions_ctmp_qoe");this.eX=this.Tm.L("html5_explicitly_dispose_xhr");this.wl=!this.Tm.L("html5_encourage_array_coalescing");this.Tm.L("html5_limit_media_merge_size")?up?rJ()<21?this.qb=786432:this.qb=8388608:this.qb=262144:this.qb=0;this.iC=this.Tm.L("html5_filter_non_efficient_formats_for_safari");this.Tm.L("html5_format_hybridization");this.J1=this.Tm.L("html5_abort_before_separate_init");this.bE=lC();this.IAx=this.Tm.L("html5_serialize_server_stitched_ad_request"); this.pn=this.Tm.L("html5_attach_po_token_to_bandaid");this.Sw=g.jV(this.Tm.experiments,"html5_max_redirect_response_length")||8192;this.jh=this.Tm.L("html5_rewrite_timestamps_for_webm");this.oW=this.Tm.L("html5_only_media_duration_for_discontinuities");this.Zu=g.jV(this.Tm.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Tm.L("html5_onesie_live");this.PB=g.jV(this.Tm.experiments,"html5_onesie_live_ttl_secs")||8;this.ix=g.jV(this.Tm.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.LeV=this.Tm.L("html5_update_container_type_on_codec_family_change");this.Tm.L("html5_apply_ssap_slice_info_adjustment");this.q5=this.Tm.L("html5_enable_sabr_host_fallback");this.xY=this.Tm.L("html5_gapless_fallback_on_append_error");this.THA=this.Tm.L("html5_shorts_stop_request_when_buffer_to_end");this.hQX=this.Tm.L("html5_vod_stop_request_when_buffer_to_end");this.tK=this.Tm.L("html5_ssdai_use_post_for_media")&&this.Tm.L("gab_return_sabr_ssdai_config");this.ycx=this.Tm.L("html5_use_post_for_media"); this.Pl=this.Tm.L("html5_use_live_ump_heartbeat");this.useUmp=this.Tm.L("html5_use_ump");this.UV=this.Tm.rS;this.GY=this.Tm.L("html5_reset_primary_stats_on_redirector_failure");this.zY=this.Tm.L("html5_remap_to_original_host_when_redirected");this.gZ=this.Tm.L("html5_use_network_error_code_enums");this.ai=this.Tm.L("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.Tm.L("html5_enable_server_driven_request_cancellation");this.lI=this.Tm.L("html5_enable_sabr_request_timing"); this.fI=this.Tm.L("html5_enable_lawnmower");this.XX=this.Tm.G9()?g.jV(this.Tm.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Xl5=g.jV(this.Tm.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.agx=this.Tm.L("html5_live_defrag_only_h264_playbacks");this.JWs=this.Tm.L("html5_live_defrag_only_h264_formats");this.O3=this.Tm.L("html5_record_now");this.dB=g.jV(this.Tm.experiments,"html5_drm_byterate_soft_cap");this.Pz=g.jV(this.Tm.experiments,"html5_drm_live_byterate_soft_cap"); this.Y=this.Tm.L("html5_sabr_log_request_creation");this.u5=this.Tm.L("html5_use_buffer_timeline_for_sabr_request_creation");this.Ea=this.Tm.L("html5_sabr_report_request_cancellation_info");this.eM=this.Tm.L("html5_spoof_4k");this.AE=Sl(this,"html5_min_media_duration_for_cabr_slice");this.q6=Sl(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.eP=this.Tm.L("html5_remove_defrag_without_frame_level_streaming");this.yD=this.Tm.L("html5_consume_all_buffered_bytes_one_poll");this.UH= this.Tm.L("html5_disable_urgent_adaptation");this.VF=this.Tm.L("html5_apply_constraints_in_client_for_sabr");this.Cd=this.Tm.L("html5_send_video_playback_ustreamer_config");this.ZR=Sl(this,"html5_max_discontinuity_rewrite_count");this.vr=Sl(this,"html5_fixed_media_duration_for_request");this.MU=this.Tm.L("html5_apply_fix_for_missing_seg_info_without_logger");this.TI=this.Tm.L("html5_enable_audio_quality_setting");this.Tm.L("html5_enable_audio_quality_setting_feature");this.ib=Sl(this,"html5_sabr_request_limit_per_period"); this.Eh=Sl(this,"html5_sabr_request_limit_per_period_for_low_latency");this.Wrx=Sl(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.M3=this.Tm.L("html5_sabr_dispose_media_objects");this.RC=this.Tm.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.cq=this.Tm.L("html5_enable_d6de4");this.Tm.L("html5_high_res_seek_logging");this.j5=this.Tm.L("html5_disable_chunk_synchronization_sabr_seek");this.Tm.L("html5_enable_ssap_multi_audio_format_filtering");this.j8=g.jV(this.Tm.experiments, "html5_override_micro_discontinuities_threshold_ms");this.Ae=this.Tm.L("html5_byterate_constraints");this.wO=this.Tm.L("html5_refactor_sabr_audio_format_selection_logging");this.CI=this.Tm.L("enable_sabr_snackbar_message");this.Tm.L("html5_reinit_source_buffer_by_new_element");this.EU=this.Tm.L("html5_refactor_sabr_video_format_selection_logging");this.Q$=this.Tm.L("html5_log_slice_info_in_sbu");this.Ny=Sl(this,"html5_paced_poll_ms");this.gC=Sl(this,"html5_paced_poll_min_health_ms");this.hJ=this.Tm.L("html5_disable_sabr_fallback"); this.HM=this.Tm.L("html5_track_current_buffered_range_at_sync");this.LKV=g.PJ(this.Tm)?500:2E3;this.rQ=this.Tm.L("html5_sabr_live_timing");this.Wf=this.Tm.L("html5_count_updating_slice_for_buffer_health");this.tQ=this.Tm.L("html5_report_max_buffer_bytes_limit_to_sabr");this.Cs=this.Tm.L("html5_sabr_live_audio_early_return_fix");this.XC=g.jV(this.Tm.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.Td=this.Tm.L("html5_cuepoint_identifier_logging");this.Q7=this.Tm.L("html5_new_sabr_ssdai_cuepoint_logic"); this.jH=this.Tm.L("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.h4H=this.Tm.L("html5_skip_client_drm_license_constraint");this.rS=this.Tm.L("html5_ssdai_not_block_on_predict_start");this.qg=this.Tm.L("html5_pseudogapless_shorts_skip_abort_on_transition");this.U$V=this.Tm.L("html5_live_metadata_resets_timeout");this.Ti=this.Tm.L("html5_sabr_log_invalid_sabr_current_time");this.A3=this.Tm.L("html5_ssdai_new_decoration_logic");this.gR=this.Tm.L("html5_enable_smooth_audio_offset");this.wN= this.Tm.L("html5_enable_playback_cookie_logging");this.Vzr=this.Tm.qk().j.v3(Rw_);this.xa=this.Tm.qk().j.v3(g.D5);this.YP=this.Tm.qk().j.v3(y5R)}; Lz_=function(K){var W={};return W.viewability=K.j,W.googleViewability=K.X,W}; Pas=function(K){return Math.round(Math.max(0,K*1E3)).toString()}; OC=function(){}; g.ip=function(){var K=d4();return K?Promise.resolve(K):XCp().then(function(W){(W=W?pzL:void 0)&&g.Vk("ytglobal.idbToken_",W);return W})}; oos=function(K){return(K=K.X8)&&K.showError?K.showError:!1}; ZgD=function(K){return isNaN(K.cryptoPeriodIndex)?g.o0(K.initData):""+K.cryptoPeriodIndex}; Rks=function(){this.j={}}; bg_=function(K){Tas(K);K.G=g.KQ(function(){K.update()},100); K.uA=g.gh(K.provider);K.X=nM(K.provider)}; Qsp=function(K){if(K.JF()){if(!EI(K,408125543))return!1;e8(K,!0)}return!0}; zx=function(){var K=yq(eE_);if(!K.j){if(!Fl)throw Error("Context has not been set and window is undefined.");K.j=yq(j2)}return K.j}; tq=function(K,W,U,h,m,S,f){h=h===void 0?!1:h;m=m===void 0?!1:m;f=f===void 0?!0:f;m||(m=K.api.V().W);var G=K.api.getVideoData();W=g.BB(g.fe[W]||"",h?{CPN:G.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);h=[];S&&h.push({T:"h2",bX:S});h.push(W[0]);f&&h.push({T:"br"});h.push({T:"a",B:{href:U,target:m?"_blank":null},Z:"ytp-error-link",bX:W[2]});K.N=!0;h.push(W[4]);return{T:"span",K:h}}; su2=function(K,W){return K.Y?RU(K.Y.W,W):K.DA.length?RU(K.DA,W):[]}; VK$=function(K,W,U){K.Yd.u$("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,U,void 0);K=g.z(K.X);for(var h=K.next();!h.done;h=K.next())h.value.MZ(W,U)}; JMC=function(K,W){W=new XzL(W);Rjp("");H$=pC(W);K>0&&erz(12E4,K-1);throw W;}; y4=function(K){this.value=K}; ZM=function(K){return!(!K.isLivePlayback||!K.hasProgressBarBoundaries())}; nw$=function(K){return K.D.V().L("html5_recognize_predict_start_cue_point")}; zX=function(K,W){if(C_(K,W)){W=le(K);var U=s1(K.j,K.pos,W);K.pos+=W;return U}}; bR=function(){}; voC=function(){return"INNERTUBE_API_KEY"in Bq&&"INNERTUBE_API_VERSION"in Bq}; Cap=function(K){var W,U,h,m,S,f,G;g.r(function(I){switch(I.j){case 1:if(K.qs()||!K.W||!K.j)return I.return();K.J&&K.app.E5().Cu(!0,!1);W=null;if(!K.N){I.O5(2);break}g.Bj(I,3);return g.T(I,qQC(K.N),5);case 5:g.xL(I,2);break;case 3:W=U=g.SV(I);case 2:if(!K.j)return I.return();x4C.Ia("vqsp",function(){K.app.z4(K.j)}); if(!K.j)return I.return();h=K.j.lY();K.app.V().L("html5_gapless_seek_on_negative_time")&&h&&h.getCurrentTime()<-.01&&K.j.seekTo(0);x4C.Ia("vqpv",function(){K.app.playVideo()}); W&&(K.j?(m=W?W.message:"forced",(S=K.X)==null||S.rk("gapfulfbk",{r:m}),K.j.zw(m)):(f=K.X)==null||f.rk("gapsp",{}));G=K.W;Gv(K);G&&G.resolve();return I.return(Promise.resolve())}})}; L$C=function(K){for(var W=K.suggestionData.length,U=0;U1&&K.rk("trBug",{af:""+g.cT(K.audioTrack.Wp.info,!1),vf:""+g.cT(K.videoTrack.Wp.info,!1),a:""+W,v:""+U}))}; hFC=function(K){var W=0,U=0,h=0,m=K.X,S=K.j;do{var f=m[S++];W|=(f&127)<32)for(U|=(f&127)>>4,h=3;h<32&&f&128;h+=7)f=m[S++],U|=(f&127)<>>0,U>>>0);throw Error();}; E5=function(K){g.p.call(this);this.app=K;this.U=this.W=this.X=this.j=null;this.N=1;this.events=new g.Te(this);this.events.S(this.app.Yx,g.g8("gaplessshortslooprange"),this.J);g.k(this,this.events)}; n$D=function(K){K.channel.classList.remove("ytp-title-show-collapsed");K.channel.classList.remove("ytp-title-show-expanded")}; sx$=function(K,W){var U=document.body||document;return g.JD(U,"click",function(h){var m=bI(h.target,function(S){return S===U||W(S)},!0); m&&m!==U&&!m.disabled&&(h.currentTarget=m,K.call(m,h))})}; jwC=function(K,W,U,h,m){qv.call(this,K,{T:"div",Z:"ytp-ad-message-overlay",K:[{T:"div",Z:"ytp-ad-message-slot"}]},"ad-message",W,U,h,m);var S=this;this.U=-1;this.N=0;this.uX=!1;this.hK=this.yH("ytp-ad-message-slot");this.X=new g.GW({T:"span",Z:"ytp-ad-message-container"});this.X.U5(this.hK);g.k(this,this.X);this.messageText=new hW(this.api,this.layoutId,this.interactionLoggingClientData,h,"ytp-ad-message-text");g.k(this,this.messageText);this.messageText.U5(this.X.element);this.W=new g.Wr(this.X, 400,!1,100,function(){S.hide()}); g.k(this,this.W);this.hide()}; E9=function(K,W,U){var h=this;this.X=K;this.N=W;this.Xx=U;this.j=function(m){return Rp(h.X.get(),m)}}; mMF=function(K,W,U,h){h=new g.y({T:"div",Hp:["ytp-linked-account-popup-button"],bX:h,B:{role:"button",tabindex:"0"}});W=new g.y({T:"div",Z:"ytp-linked-account-popup",B:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{T:"div",Z:"ytp-linked-account-popup-title",bX:W},{T:"div",Z:"ytp-linked-account-popup-description",bX:U},{T:"div",Z:"ytp-linked-account-popup-buttons",K:[h]}]});g.Ih.call(this,K,{T:"div",Z:"ytp-linked-account-popup-container",K:[W]},100);var m=this;this.dialog=W;g.k(this,this.dialog); h.listen("click",function(){m.z9()}); g.k(this,h);g.HW(this.D,this.element,4);this.hide()}; f3Y=function(K){var W=S7C(K);if(W.binP)return W.binP;W.binP=Promise.resolve().then(function(){return fetch(K)}).then(function(U){if(!U.ok)throw Error("HTTP"+U.statusText); return U.arrayBuffer()}); W.binP.then(function(U){W.bin=U},function(){NjR(K)}); return W.binP}; LU$=function(K,W){var U=B4(K.loader)&&W&&W.r8!==void 0&&!W.R9?W.r8*1E3+(K.loader.A7()||0):wY(K);if(K.policy.u5){var h=K.hK;var m=K.eV}else h=vD(K,K.audioTrack),m=vD(K,K.videoTrack);var S=[].concat(g.z4(h.Wl),g.z4(m.Wl));qH(K)&&S.push.apply(S,g.z4(K.U));var f=[].concat(g.z4(h.Sv),g.z4(m.Sv)),G=K.loader.Ne();if(K.policy.Ti&&!K.videoData.isLivePlayback){var I=K.videoData.lengthSeconds*1E3;U>=I&&K.loader.rk("invalidSabrCmt",{cmt:U,vd:I})}var d,J;I=K.dH;var e=K.iX,E=K.Gm,B=K.X,D=K.videoData.Le,a=K.policy, Q=K.loader.c7,u=kkY(K.loader)*1E3,O=(d=K.tK)==null?void 0:d.im;d=(J=K.tK)==null?void 0:J.hE;var N;J=Number((N=K.N.W)==null?void 0:N.info.itag)||0;var A;N=Number((A=K.N.U)==null?void 0:A.info.itag)||0;A=K.zZ;var Z=K.iX.Q8();var x=(W==null?0:W.iT)?W.iT:K.loader.isSuspended?4:void 0;U={dH:I,iX:e,Gm:E,Wl:S,Sv:f,hP:U,nextRequestPolicy:B,a6:D,P2:a,iN:Q,nZ:u,im:O,hE:d,zZ:A,ndU:J,d55:N,uR:G,q8:Z,iT:x};S=K.loader.tF();f=BC(S);S&&(U.R7=f);if(W=B4(K.loader)&&(W==null?0:W.R9)?W.r8:K.iX.S5())U.tf=W*1E3;var b; W=K.N;S=W.Ms;if(((b=W.P2)==null?0:S6(b))&&!S)for(b=g.z(W.N),f=b.next();!f.done;f=b.next())if(f.value.ZO){S=!0;break}b=S6(W.P2)&&!S?[]:H4R(W,W.N);U.qF=b;b=K.N;S6(b.P2)&&!b.uX?b=[]:(W=bkF(b),W.length===0&&(W=b.G),b=H4R(b,W));U.t_=b;U.eL=qH(K)?[K.G]:void 0;K.policy.tQ&&(U.xj=Is$(K.loader,K.audioTrack),U.lc=Is$(K.loader,K.videoTrack));if(K.policy.X){b=K.loader.getCurrentTime();h=Xn(K,h.Wl,b);m=Xn(K,m.Wl,b);m=Math.min(h,m);qH(K)&&(h=Xn(K,K.U,b),K.iX.G9()&&h0))for(fR.rk("clsdai",{updcids:1,mt:h.toFixed(3),cid:b.join(","),rn:W}),fR.X.clear(),h=g.z(b),b=h.next();!b.done;b=h.next())fR.X.add(b.value);h=g.z(fR.X);for(W=h.next();!W.done;W=h.next()){b=fR;if(W=W.value){b=b.j.get(W);W={cuepointId:W}; if(b==null?0:b.zd)W.adsConfig=BC(b.zd)||void 0;if(b==null?0:b.tJ)W.ob=b.tJ;if(b==null?0:b.Fb)W.Pe=b.Fb;KR&&(W.YJ=eh(KR.split(";")[0]),W.vK=KR.split(";")[1]||"");W.l$=(b==null?void 0:b.l$)||0;b=W}else b=void 0;b&&m.push(b)}fR=m}U.nM=fR;var jp;(jp=K.Ns)!=null&&jp.X.clear()}else if(jp=(fR=K.Y)==null?void 0:fR.Bs(m))U.Qn=jp}else K.policy.G&&GmC(K.videoData)&&(U.nM=[{l$:7}]);K.policy.Ms&&K.j.length>0&&K.j[0].qW()&&(U.gD=K.j[0].Yw());return U}; I3$=function(K){this.iZ=qR(K)}; NW=function(K,W,U,h,m,S,f,G,I){g.p.call(this);this.W=K;this.G=W;this.U=U;this.N=h;this.j=m;this.X=S;this.uB=f;this.Xx=G;this.ZA=I;this.l5=!0}; g.jt=function(K,W){var U=Array.prototype.slice.call(arguments,1);return function(){var h=U.slice();h.push.apply(h,arguments);return K.apply(this,h)}}; g.dMR=function(K){var W=K.vssId;K.translationLanguage&&W&&(W="t"+W+"."+g.NG(K));return W}; yx=function(K,W){g.p.call(this);var U=this;this.data=[];this.N=K||NaN;this.X=W||null;this.j=new g.QC(function(){Mv(U);F_(U)}); g.k(this,this.j)}; cN=function(K){hC.call(this,"onesie");this.e_=K;this.j={};this.W=!0;this.N=null;this.queue=new Jw_(this);this.U={}}; BQY=function(K){K.S0.onProgress();if(f5(K.videoData)&&Date.now()>K.P7+6283){if(K.L("html5_unified_live_latency_reporting")){var W=K.S0;W.qoe&&eFp(W.qoe)}else!K.isAtLiveHead()||K.videoData.j&&DW(K.videoData.j)||(W=K.S0,W.qoe&&eFp(W.qoe));W=g.Lm(K.C);var U=K.L("html5_always_log_rawlat");(W||U)&&K.rk("rawlat",{l:Dq(K.CJ,"rawlivelatency").toFixed(3)});K.P7=Date.now()}K.videoData.X&&VM(K.videoData.X)&&(W=K.sO())&&W.videoHeight!==K.R6&&(K.R6=W.videoHeight,ld(K,"a",Ege(K,K.videoData.hK)))}; DM$=function(){k5.apply(this,arguments)}; Hn$=function(K,W){if((K=bK(K,W))&&K.onCueRangeExit)return n$(K.onCueRangeExit)}; H4=function(K){return K.keySystem==="com.youtube.fairplay"}; rw2=function(K){var W=new $Wz,U={},h=(U["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",U);return new LH(W,K,function(){return h})}; g.TQD=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next())if(U=U.value,U.cueRangeSetIdentifier){var h=void 0;K.M3.set(U.cueRangeSetIdentifier,(h=U.playerCueRanges)!=null?h:[])}}; rA=function(K){K=Fk(K.f5);return!!K&&K.loaded}; wvL=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next())U=U.value,vK(U)?K.push(a3Y({},U)):SJ(U)?K.push(wvL([],U)):K.push(U);return K}; upC=function(K){return aC()&&Xi(K)?!1:mK(K)&&(g.Lm(K.Tm)?!K.isLivePlayback:K.hlsvp)||!p6()||K.x_?!0:!1}; XM=function(K,W,U){if(U.length==0)throw new v("No "+j92.get(W)+" triggers found for slot.",void 0,Qw_(W));U=g.z(U);for(var h=U.next();!h.done;h=U.next())if(h=h.value,!K.YL.IC.get(h.triggerType))throw new v("No trigger adapter registered for "+W+" trigger of type: "+h.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; g.$Me=function(K){K=g.wB(K);return wN(K[1],K[2],K[3],K[4])}; Tv=function(K){var W=!1,U;return function(){W||(U=K(),W=!0);return U}}; mw=function(K,W,U,h){OI.call(this,"Voice boost",g.dV.vA);this.D=K;this.N=W;this.X=U;this.getVoiceBoostState=h;this.j=!1;this.pg=this.D.L("html5_enable_new_audio_settings_menu")?K.Es().wd:K.Es();this.S(K,"onFilterAudioFeatures",this.Kc);this.D.L("html5_enable_new_audio_settings_menu")||this.setIcon(aFe());this.subscribe("select",this.W,this);this.Kc()}; IG=function(K){return K.WN()&&K.V().supportsGaplessShorts()}; GYz=function(K,W,U){K=K.map(function(h){return g.r(function(m){return m.j==1?g.T(m,mF(h.actualName,W),2):g.T(m,SR(h.actualName,U),0)})}); return Promise.all(K).then(function(){})}; g.OnR=function(K){var W,U,h;K=g.P((W=K.getWatchNextResponse())==null?void 0:(U=W.playerOverlays)==null?void 0:(h=U.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,$e);return g.P(K==null?void 0:K.playerBar,Y7_)}; Vz=function(K){return new D9(K.substring(0,2),K.substring(2))}; g.aM=function(K){this.name=K}; xHD=function(K,W,U,h,m,S){if(!S)for(W=g.z(W),S=W.next();!S.done;S=W.next())S=S.value,Z7(K,S.renderer,S.config.adPlacementConfig.kind);K=Array.from(K.values()).filter(function(J){return cws(J)}); W=[];S=g.z(K);for(var f=S.next(),G={};!f.done;G={rG:void 0},f=S.next()){G.rG=f.value;f=g.z(G.rG.QS);for(var I=f.next(),d={};!I.done;d={X0:void 0},I=f.next())d.X0=I.value,I=function(J,e){return function(E){return J.X0.uv(E,e.rG.instreamVideoAdRenderer.elementId,J.X0.bC)}}(d,G),d.X0.isContentVideoCompanion?W.push(dmL(U,h,m,G.rG.instreamVideoAdRenderer.elementId,d.X0.associatedCompositePlayerBytesLayoutId,d.X0.adSlotLoggingData,I)):K.length>1?W.push(ngL(U,h,m,G.rG.instreamVideoAdRenderer.elementId,d.X0.adSlotLoggingData, function(J,e){return function(E){return J.X0.uv(E,e.rG.instreamVideoAdRenderer.elementId,J.X0.bC,J.X0.associatedCompositePlayerBytesLayoutId)}}(d,G))):W.push(ngL(U,h,m,G.rG.instreamVideoAdRenderer.elementId,d.X0.adSlotLoggingData,I))}return W}; wA=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",W,U,h);this.hide()}; p0=function(K){return new g.So(new fW(function(W,U){Vas(K,W,U)}))}; ggz=function(K){return{r5:L_(K,1),httpStatus:L_(K,2),body:zX(K,4)}}; FsL=function(K,W,U){if(K.provider.C.experiments.Rk("html5_refactor_sabr_audio_format_selection_logging")){W=U.j;var h=[W.audio&&W.video?W.Lh?W.Lh:"":W.id];W.ZO&&W.ZO.id&&h.push(W.ZO.id);W=h.join(";");W!==K.G&&(h=[W,K.G,U.reason],K.provider.C.qk().j.v3(g.D5)&&U.reason==="i"&&h.push(Hu(K,U)),U.token&&h.push(U.token),g.Fa(K,g.gh(K.provider),"afs",h),K.G=W)}else U.j.id!==K.G&&(h=[U.j.id,K.G,U.reason],K.provider.C.qk().j.v3(g.D5)&&U.reason==="i"&&h.push(Hu(K,U)),U.token&&h.push(U.token),g.Fa(K,W,"afs", h),K.G=U.j.id)}; V6$=function(K,W){if(K.isDrm()){if(W.info.Wp.info.yh()){var U=new XF(g.jI(W));if(jw(U,[408125543,374648427,174,28032,25152,20533,18402])){var h=e8(U,!0);U=h!==16?null:jx(U,h)}else U=null;h="webm"}else W.info.J=uds(g.jI(W)),U=kmC(W.info.J),h="cenc";U&&U.length&&(U=new Bg(U,h),K.policy.p$&&g.Yv(W.info.Wp.info)&&(h=Vie(g.jI(W)))&&(U.X=h),U.yh=W.info.Wp.info.yh(),W.j&&W.j.cryptoPeriodIndex&&(U.cryptoPeriodIndex=W.j.cryptoPeriodIndex),W.j&&W.j.X&&(U.j=W.j.X),K.loader.Gi(U))}}; $dC=function(K,W,U){if(K.X.length!==0&&(U||K.X.some(function(S){return S.info.W0&&(K.U.fexp=U.join())}U=g.z(Object.keys(K.U));for(var h=U.next();!h.done;h=U.next())h=h.value,W=zFF(W,h,K.U[h]);return W}; NQF=function(K,W,U){if(W.endpoint==="log_event"){or(void 0,W);var h=Za(W,!0),m=T4C(K),S=200;if(m){if(m.enabled===!1&&!g.hc("web_payload_policy_disabled_killswitch"))return;S=o_L(m.tier);if(S===400){mnL(K,W,U);return}}$Z[h]=!0;h={cttAuthInfo:h,isJspb:!0,tier:S};Lz().storePayload(h,mt(W.payload));Lx_(U,!0,h,aZ(K))}}; g.Kw=function(K,W,U){this.wi=W===void 0?null:W;this.seekSource=U===void 0?null:U;this.state=K||64}; XD_=function(K){var W=new Map;K=g.z(K);for(var U=K.next();!U.done;U=K.next())(U=U.value.renderer.remoteSlotsRenderer)&&U.hostElementId&&W.set(U.hostElementId,U);return W}; Awp=function(K){var W,U;return!!((W=K.j)==null?0:(U=W.Z5)==null?0:U.tf)}; RFD=function(K,W,U,h){yU.call(this,"video-interstitial-buttoned-centered",K,W,U,h);this.interactionLoggingClientData=h}; ywp=function(){var K=["metadata_type_client_forecasting_ad_renderer"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_FORECASTING"]}}; g.EX=function(K){if(g.TA("DATASYNC_ID")!==void 0)return g.TA("DATASYNC_ID");throw new g.EB("Datasync ID not set",K===void 0?"unknown":K);}; wpz=function(K){K.Le?K.Le=!1:K.jV=(0,g.AI)();K.Ms=!1;K.tK=!1;return new w9(K.Y,K.N,K.j.reason)}; JR=function(K){return{i5:K.ZA.get(),V9:!1,wQ:K.k5()}}; Ors=function(K){return K.data["Cuepoint-Type"]?new u6(-(Number(K.data["Cuepoint-Playhead-Time-Sec"])||0),Number(K.data["Cuepoint-Total-Duration-Sec"])||0,K.data["Cuepoint-Context"],K.data["Cuepoint-Identifier"]||"",Mtz[K.data["Cuepoint-Event"]||""]||"unknown",(Number(K.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; GxR=function(K){var W=!1;W=W===void 0?!1:W;if(P6p){if(W&&(pv_?!K.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(K)))throw Error("Found an unpaired surrogate");K=(ogC||(ogC=new TextEncoder)).encode(K)}else{for(var U=0,h=new Uint8Array(3*K.length),m=0;m>6|192;else{if(S>=55296&&S<=57343){if(S<=56319&&m=56320&&f<=57343){S=(S-55296)*1024+ f-56320+65536;h[U++]=S>>18|240;h[U++]=S>>12&63|128;h[U++]=S>>6&63|128;h[U++]=S&63|128;continue}else m--}if(W)throw Error("Found an unpaired surrogate");S=65533}h[U++]=S>>12|224;h[U++]=S>>6&63|128}h[U++]=S&63|128}}K=U===h.length?h:h.subarray(0,U)}return K}; Zn_=function(K){return g.TA(J1(K===void 0?0:K))}; bnC=function(K,W,U,h){var m=[];U=g.z(U);for(var S=U.next();!S.done;S=U.next()){var f=S.value;if(f.url){S=new g.va(f.url,!0);if(f.s){var G=S,I=f.sp,d=XN(12,decodeURIComponent(f.s));G[t[7]](I,encodeURIComponent(d))}G=g.z(Object.keys(h));for(I=G.next();!I.done;I=G.next())I=I.value,S.set(I,h[I]);f=TV(f.type,f.quality,f.itag,f.width,f.height);m.push(new Y8(f,S))}}return wW(K.U,m,km(K,W),!1)}; Q8=function(K){var W=0;K=g.z(K.questions);for(var U=K.next();!U.done;U=K.next())if(U=U.value,U=g.P(U,uy)||g.P(U,Fx)){var h=void 0;W+=((h=U.surveyAdQuestionCommon)==null?void 0:h.durationMilliseconds)||0}return W}; sw_=function(K){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?K+"&nis=6":K+"&nis=5"}; Vt_=function(K,W,U,h){W={opportunityType:W};K&&(h||U)&&(h=g.CB(h||[],function(m){return hX(K,m)}),W.debugData=Object.assign({},U&&U.length>0?{associatedSlotId:U}:{},h.length>0?{slots:h}:{})); return W}; YZ=function(K){K=K||window.event;var W;K.composedPath&&typeof K.composedPath==="function"?W=K.composedPath():W=K.path;W&&W.length?K=W[0]:(K=K||window.event,K=K.target||K.srcElement,K.nodeType==3&&(K=K.parentNode));return K}; O5=function(K){g.p.call(this);this.wpc=K}; XvD=function(K,W){var U=new la(K);g.It.call(this,"Playback speed",g.dV.aM,K,W,zY(K)?void 0:"Custom",zY(K)?void 0:function(){g.u5(W,U)}); var h=this;this.J=new g.y({T:"div",Z:"ytp-menuitem-premium-badge",B:{"aria-label":"Premium"}});this.G=!1;this.xd={Xxe:function(){return h.W}}; g.k(this,U);this.N=new TE(K);g.k(this,this.N);if(K.L("web_settings_menu_icons")){var m=K.L("delhi_modern_web_player_icons")?{T:"svg",B:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z"}}]}:{T:"svg",B:{height:"24", viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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(m)}this.D= K;this.G=!1;this.uX=null;zY(K)?(this.j=g.BB("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.D.getPlaybackRate().toString()}),this.Y=this.D.getPlaybackRate()):this.Y=this.j=null;g.k(this,this.J);var S,f,G,I;this.Ns=(S=this.D.getVideoData())==null?void 0:(f=S.getWatchNextResponse())==null?void 0:(G=f.playerOverlays)==null?void 0:(I=G.playerOverlayRenderer)==null?void 0:I.showPlaybackRateUpsellPanelCommand;J_C(K,this.Ns)?(this.X=KG(4),this.D.createClientVe(this.J.element,this,273508)):this.X= null;this.D.L("enable_web_premium_varispeed_upsell")&&this.D.createClientVe(this.element,this,278479);this.W=this.D.getAvailablePlaybackRates();this.S(K,"presentingplayerstatechange",this.SV);var d;((d=this.D.getVideoData())==null?0:d.Sj())&&this.S(K,"serverstitchedvideochange",this.SV);this.S(K,"videodatachange",this.onVideoDataChange);this.S(this.N.X,"change",function(){h.G=!0;h.SV()}); this.SV()}; vgY=function(K){return new Promise(function(W){setTimeout(W,K)})}; C6p=function(K,W,U,h){K.j&&UF("Currently active request ongoing for slot. This should never happen",K.slot);K.j=W();K.j.then(function(m){K.j=null;h&&h(m);var S=m.M_?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",f=K.X.get(),G=K.slot.slotId,I=q$(K.uB.get(),{slotId:K.slot.slotId,slotType:K.slot.slotType,slotPhysicalPosition:K.slot.slotPhysicalPosition,wk:K.slot.wk,slotEntryTrigger:K.slot.slotEntryTrigger,slotFulfillmentTriggers:K.slot.slotFulfillmentTriggers,slotExpirationTriggers:K.slot.slotExpirationTriggers}), d=bh(f.X.get(),S,G),J={layoutId:d,layoutType:S,wk:"core"};m={layoutId:d,layoutType:S,uZ:new Map,layoutExitNormalTriggers:[new q7e(f.j,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new Au(m)]),t7:I(J)};xMp(K.callback,K.slot,m)},function(m){K.j=null; U&&U();m instanceof tL||ey(K.callback,K.slot,new v(m,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; l3C=function(K){K=["object"==typeof globalThis&&globalThis,K,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;WW&&K.U0&&Z0Y(e)&&e.j0>E)&&e9(W,e,h)===!0){m.push({videoCodec:WgC[NU[J]],maxWidth:e.video.width,maxHeight:e.video.height,maxFramerate:e.video.fps});break}}}}f=g.z(I);for(K=f.next();!K.done;K=f.next())for(K=g.z(K.value),I=K.next();!I.done;I=K.next())if(I=I.value,(G=TVL(I))&&G.audio&&(U.L("html5_onesie_51_audio")||!WP(G)&&!U1(G))&&e9(W,G,h)===!0){S.push({audioCodec:Uo_[NU[I]],numChannels:G.audio.numChannels});break}return{videoFormatCapabilities:m,audioFormatCapabilities:S}}; vbF=function(K,W){this.url=K;this.j=!!W;this.depth=null}; g.tk=function(K,W){if(K.DA)return function(){}; W.addEventListener("mouseover",K.U);W.addEventListener("focus",K.U);var U=K.env.L("player_tooltip_data_title_killswitch")?W.getAttribute("title"):W.getAttribute("data-tooltip-title");U&&!W.hasAttribute("aria-label")&&W.setAttribute("aria-label",U);return function(){K.j===W&&K.Dc();W.removeEventListener("mouseover",K.U);W.removeEventListener("focus",K.U)}}; s7=function(K){var W=g.vB("yt.scheduler.instance.setPriorityThreshold");W&&W(K)}; jSs=function(K){var W=K.api.Hu();K.N!==W&&(K.N=W,X$(K,K.api.getVolume(),K.api.isMuted()))}; T9=function(K,W,U){K.X=W;var h;(h=K.U)==null||h.Bl(W,U);var m;(m=K.Ms)==null||m.Bl(W);K.j=0;aI(K);ZNp(K,W)}; ne=function(K,W){OI.call(this,"Autoplay",g.dV.gT);this.D=K;this.pg=W;this.j=!1;this.X=[];this.S(K,"presentingplayerstatechange",this.Kc);this.subscribe("select",this.onSelect,this);K.createClientVe(this.element,this,113682);this.Kc()}; $7=function(K){K=bs(K);K.tick||(K.tick={});return K.tick}; mo2=function(K){if(K.D.L("delhi_modern_web_player_icons"))return K=qh.includes("en")?po(K)&&K.isEnabled()?{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:xH():po(K)&&K.isEnabled()?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:PBp()}; SmD=function(K,W){var U;return g.r(function(h){(0,g.AI)();if(K.j.j)return h.return(zb$(K,W,K.iv));U=LpC(K.j);return h.return(U.encrypt(W,K.iv))})}; CG=function(K){var W;!(W=K.Wp.info.lX==="f")&&(W=K.policy.W)&&(W=K.N,W=!!W.G&&Pv(W.G));if(W)return!0;W=Kp(K);if(!W)return!1;var U=lp(W)&&W.N;return K.isManifestless&&K.DA>0?U||W.kx>=K.DA:U}; Pf=function(K,W,U){W&&(W=g.yc(K,{playerType:U}))&&W===K.rH()&&(W.getVideoData().Ny=!0)}; fvF=function(K){if(!IbR(K))return!1;var W=g.P(K.adVideoStart,LQ);return W?g.P(K.linearAd,iY)&&fQ(W)?!0:(UF("Invalid Sandwich with notify"),!1):!1}; vG=function(K){this.value=K}; gA=function(K){g.r$.call(this,K,"ytp-shopping-product-menu");this.bB=new g.Ff(this.D);g.k(this,this.bB);this.hide();g.u5(this,this.bB);g.HW(this.D,this.element,4)}; txC=function(){return{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",Z:"ytp-svg-fill",B:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; Fe=function(K){var W,U,h,m,S;return!((W=K.get("active_view_viewable"))==null||!W.length)||!((U=K.get("active_view_measurable"))==null||!U.length)||!((h=K.get("active_view_fully_viewable_audible_half_duration"))==null||!h.length)||!((m=K.get("audio_audible"))==null||!m.length)||!((S=K.get("audio_measurable"))==null||!S.length)}; g.ZQ=function(K){this.config_=null;K?this.config_=K:voC()&&(this.config_=g.aA())}; ur=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-image-background",K:[{T:"img",Z:"ytp-image-background-image"}]},"image-background",W,U,h);this.hide()}; XJ=function(K){this.ji=K;this.j={};this.url=""}; tg=function(K){K.j.update();K=K.j;K.segments.length&&K.j===K.N||kZ(K);var W=K.segments;K.segments=[];return W}; ktp=function(K){var W;if(((W=K.adVideoOffset)==null?void 0:W.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var U;return((U=K.adVideoOffset)==null?void 0:U.percent)!=null}; fJ=function(K,W,U,h,m,S,f,G){this.sampleRate=K===void 0?0:K;this.numChannels=W===void 0?0:W;this.spatialAudioType=U===void 0?"SPATIAL_AUDIO_TYPE_NONE":U;this.j=h===void 0?!1:h;this.N=m;this.W=S;this.audioQuality=f===void 0?"AUDIO_QUALITY_UNKNOWN":f;this.X=G===void 0?!1:G}; g.ir=function(K){K.j=Math.min(K.U,K.j*K.Y);K.N=Math.min(K.U,K.j+(K.G?Math.round(K.G*(Math.random()-.5)*2*K.j):0));K.X++}; WB=function(K,W,U,h,m,S){S=S===void 0?!1:S;vh.call(this,K,{T:"img",Z:"ytp-ad-image"},"ad-image",W,U,h,m===void 0?null:m);this.j=S;this.hide()}; KL=function(K){return Cr(K)==="TVHTML5"}; zv=function(){this.isInitialized=!1;this.j=this.X=null;var K={};this.Y=(K.start=this.Krm,K.firstquartile=this.JKH,K.midpoint=this.wpA,K.thirdquartile=this.FrU,K.complete=this.S5x,K.error=this.AKk,K.pause=this.m$,K.resume=this.oh,K.skip=this.ExK,K.viewable_impression=this.PM,K.mute=this.N_,K.unmute=this.N_,K.fullscreen=this.VVx,K.exitfullscreen=this.Bk5,K.fully_viewable_audible_half_duration_impression=this.PM,K.measurable_impression=this.PM,K.abandon=this.m$,K.engagedview=this.PM,K.impression=this.PM, K.creativeview=this.PM,K.progress=this.N_,K.custom_metric_viewable=this.PM,K.bufferstart=this.m$,K.bufferfinish=this.oh,K.audio_measurable=this.PM,K.audio_audible=this.PM,K);K={};this.J=(K.overlay_resize=this.sk5,K.abandon=this.pR,K.close=this.pR,K.collapse=this.pR,K.overlay_unmeasurable_impression=function(W){return YR(W,"overlay_unmeasurable_impression",$R())},K.overlay_viewable_immediate_impression=function(W){return YR(W,"overlay_viewable_immediate_impression",$R())},K.overlay_unviewable_impression= function(W){return YR(W,"overlay_unviewable_impression",$R())},K.overlay_viewable_end_of_session_impression=function(W){return YR(W,"overlay_viewable_end_of_session_impression",$R())},K); nm().X=3;Gh_(this);this.N=null}; ST=function(K){this.j=K;this.X=null}; xS=function(K){this.j=this.X=0;this.alpha=Math.exp(Math.log(.5)/K)}; g.So=function(K){function W(m){if(h.state.status==="PENDING"){h.state={status:"FULFILLED",value:m};m=g.z(h.j);for(var S=m.next();!S.done;S=m.next())S=S.value,S()}} function U(m){if(h.state.status==="PENDING"){h.state={status:"REJECTED",reason:m};m=g.z(h.X);for(var S=m.next();!S.done;S=m.next())S=S.value,S()}} var h=this;this.state={status:"PENDING"};this.j=[];this.X=[];K=K.j;try{K(W,U)}catch(m){U(m)}}; IvL=function(K){return window.PressureObserver&&new window.PressureObserver(K)}; doe=function(K){K=K.adPlacementRenderer.config.adPlacementConfig;if(K.prefetchModeConfig&&K.prefetchModeConfig.cacheFetchRefreshDurationMs&&(K=Number(K.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(K)||K<=0)))return K}; Ok=function(K,W,U,h,m,S,f,G,I,d,J){W=d!=null?d:bh(K.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",W);d={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wk:"adapter"};G=G(W);var e=Sp(G.clientMetadata,"metadata_type_fulfilled_layout");e||UF("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var E=e?e.layoutId:"";U=[new vM(U),new cp(h),new nQ(m)];e&&U.push(new g_(e.layoutType));J&&U.push(new yl(J));return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", uZ:S,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new uq(K.j,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"adapter",T3:U,t7:f(d),adLayoutLoggingData:I,Jv:G,i7:E}}; dd=function(K){for(var W=0,U=0;U>>0;return W}; wkR=function(K,W,U){wsF(K);KZ(K,U);KZ(K,~U);Ji.jE(K.mf,K.window,W,U,K.pending);K.pending+=U}; JTs=function(){var K=navigator;return new Promise(function(W,U){var h;(h=K.webkitTemporaryStorage)!=null&&h.queryUsageAndQuota?K.webkitTemporaryStorage.queryUsageAndQuota(function(m,S){W({usage:m,quota:S})},function(m){U(m)}):U(Error("webkitTemporaryStorage is not supported."))})}; e7e=function(K){K=sY(K);K.gelInfos||(K.gelInfos={});return K.gelInfos}; npC=function(K,W,U){function h(B){if(typeof B!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof B+"'");if(J)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var D=!0;d===I&&(d=I.slice()); d.push(B);return function(){if(D){if(J)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");D=!1;d===I&&(d=I.slice());d.splice(d.indexOf(B),1);I=null}}} function m(){if(J)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return G} function S(B){if(typeof B!=="object"||B===null)var D=!1;else{for(D=B;Object.getPrototypeOf(D)!==null;)D=Object.getPrototypeOf(D);D=Object.getPrototypeOf(B)===D}if(!D)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof B+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof B.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(J)throw Error("Reducers may not dispatch actions.");try{J=!0,G=f(G,B)}finally{J=!1}D=I=d;for(var a=0;a=0)&&g.wd(K,W);return U}; aTC=function(K){return!!(K.N&&K.N.videoInfos&&K.N.videoInfos.length)}; uYs=function(K,W){W=W?{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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"}}]}:UvC();var U=K.D.getPlaybackRate(),h=g.BB("Speed is $RATE",{RATE:String(U)});az(K,W,h,U+"x")}; khp=function(K){K.j&&(K.W=!0,K.X&&(K.X.stop(),K.X.start()),dKe(K,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),VE(K.zm.get(),"ads_ce","bdc."+QlY(K).length))}; iy_=function(K,W,U){var h,m=W==null?void 0:(h=W.text)==null?void 0:h.simpleText;m&&(U=D8C(K,U,m,W==null?void 0:W.icon,W==null?void 0:W.secondaryIcon),W.navigationEndpoint&&U.listen("click",function(){K.D.Fx("innertubeCommand",W.navigationEndpoint);K.hide()},K))}; z7p=function(){var K=K===void 0?g.qs:K;return(K=K.performance)&&K.now&&K.timing?Math.floor(K.now()+K.timing.navigationStart):g.hi()}; Nse=function(){var K=["metadata_type_ad_action_interstitial_renderer"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_ENDCAP"]}}; Mxp=function(K){if(ATs(K.videoTrack))return"ssf";if(K.policy.JK&&G6(K.videoTrack)&&G6(K.audioTrack))return"updateEnd";if(LG(K.audioTrack)||LG(K.videoTrack)&&K.videoTrack.Wp.info.lX!=="f")return"";if(K.tO.isSeeking()){var W=K.jV;var U=K.videoTrack;var h=K.audioTrack;if(W.policy.j){var m=W.policy.l0;MZ(W.policy)&&(m=R7p(W,!1,Ed(W)));W=m;U=CU(h,!0)>=W&&CU(U,!0)>=W}else U.X.length||h.X.length?(m=U.Wp.info.j0+h.Wp.info.j0,m=10*(1-Ed(W)/m),W=Math.max(m,W.policy.l0),U=CU(h,!0)>=W&&CU(U,!0)>=W):U=!0;if(!U)return"abr"; U=K.videoTrack;if(U.X.length>0&&U.N.X.length===1&&StD(U.N).info.Y360);if(!K.rZ||U)return"";U=K.policy.U0;MZ(K.policy)&&(U=R7p(K.jV,K.rZ,Ed(K.jV)));U=Kgs(K.videoTrack,K.getCurrentTime(),U)||Kgs(K.audioTrack,K.getCurrentTime(),U);return MZ(K.policy)?U?"mbnm":"":(K.videoTrack.X.length>0||K.audioTrack.X.length>0|| yTC(K.G,K.videoTrack,K.audioTrack)||yTC(K.G,K.audioTrack,K.videoTrack))&&U?"nord":""}; PRe=function(){this.j=new Map}; P4=function(K,W,U){var h=U===void 0?{}:U;U=h.videoDuration===void 0?0:h.videoDuration;var m=h.FD===void 0?void 0:h.FD;h=h.vO===void 0?!1:h.vO;this.videoId=K;this.status=W;this.videoDuration=U;this.FD=m;this.vO=h}; CL_=function(K,W,U){var h;return(h=K.j)==null?void 0:ca(h,function(){return E6(K,W)},U,function(m){var S; if(K.j instanceof iQ&&((S=W.yd)==null?0:S.Sn))try{var f;(f=K.cache)==null||pGz(f,E6(K,W),m,W.yd.mT,K.G-120)}catch(G){K.reportError(new cP(24,"ELX:write",G))}})}; g.on$=function(K){if(K.El)return null;var W=K.Cs;W||(W=K.playerResponse&&K.playerResponse.endscreen&&K.playerResponse.endscreen.endscreenUrlRenderer&&K.playerResponse.endscreen.endscreenUrlRenderer.url);return W||null}; g.ad=function(K,W,U,h){g.GW.call(this,K);this.priority=W;U&&g.lh(this,U);h&&this.setContent(h)}; Dm2=function(){this.X=this.position=this.N=this.j=this.W=this.width=NaN}; lQL=function(K,W,U){var h=0;if(W.info.Wp.info.yh()&&!NZF(W))return 0;if(K.Ns&&!K.yR()){var m=0;U&&g.Yv(W.info.Wp.info)?m=U-K.N:W.info.Wp.info.yh()&&(m=K.Y);var S=W.info.kx;U=f0(W,K.policy.oW);var f=K.Ns;var G=f.Bp;f=f.Y;var I=Math.abs(f-m)>.02;if((S===G||S>G&&S>K.Bp)&&I){h=Math.max(.95,Math.min(1.05,(U-(f-m))/U));if(g.Yv(W.info.Wp.info))vEL(g.jI(W),h);else if(W.info.Wp.info.yh()&&(S=m-f,!g.Yv(W.info.Wp.info)&&(W.info.Wp.info.yh(),h=new XF(g.jI(W)),G=W.U?h:new XF(new DataView(W.info.Wp.j.buffer)), f0(W,!0)))){var d=S*1E3,J=ba(G);G=h.pos;h.pos=0;if(h.j.getUint8(h.pos)===160||eR(h))if(EI(h,160))if(e8(h,!0),EI(h,155)){if(S=h.pos,I=e8(h,!0),h.pos=S,d=d*1E9/J,J=By(h),d=J+Math.max(-J*.7,Math.min(J,d)),d=Math.sign(d)*Math.floor(Math.abs(d)),!(Math.ceil(Math.log(d)/Math.log(2)/8)>I)){h.pos=S+1;for(S=I-1;S>=0;S--)h.j.setUint8(h.pos+S,d&255),d>>>=8;h.pos=G}}else h.pos=G;else h.pos=G;else h.pos=G}h=f0(W,K.policy.oW);h=U-h}h&&W.info.Wp.info.yh()&&K.loader.rk("webmDurationAdjustment",{durationAdjustment:h, videoDrift:m+h,audioDrift:f})}return h}; Zyp=function(K,W,U,h,m,S){this.callback=K;this.slot=W;this.layout=U;this.N=h;this.j=m;this.X=S}; Als=function(K,W,U,h,m,S,f,G){h=h===void 0?{}:h;G=G===void 0?{value:0}:G;S=QuC(S);h=HZ(h,f,function(I){g.hc("start_client_gcf")&&g.MU.C_(function(){return g.r(function(d){return g.T(d,YQC(I),0)})}); G.value--;G.value||U()},function(){G.value--; G.value||U()},m); h.headers["Content-Type"]="application/json+protobuf";h.postBodyFormat="JSPB";h.postBody=K;g.Ds(W,S,"",h);Rw=!1}; Ww=function(K){this.iZ=qR(K)}; s4R=function(K){var W,U;return((W=K.renderer)==null?void 0:(U=W.adBreakServiceRenderer)==null?void 0:U.getAdBreakUrl)!==void 0}; egz=function(K,W,U,h){var m=Zs(K.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");U=new yW(K.j,U);var S=[new M$(K.j,m)];K=[new pi(K.j,W),new PM(K.j,m)];return{slotId:m,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:S,slotExpirationTriggers:K,wk:"core",clientMetadata:new Zi([new xx(h({slotId:m,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:U,slotFulfillmentTriggers:S,slotExpirationTriggers:K}))])}}; Vxe=function(K,W,U,h,m){if(W&&typeof W==="object"){var S=function(f){return bys(K,f,U,h,m)}; if(pe(W))return W.then(S);if(sSY(W))return qd(W,S)}return bys(K,W,U,h,m)}; vnD=function(K){var W=g.LS(K,0,1937011556);if(!W)return null;W=Fh(K,W.dataOffset+8,1635148593)||Fh(K,W.dataOffset+8,1635135537);if(!W)return null;var U=Fh(K,W.dataOffset+78,1936995172),h=Fh(K,W.dataOffset+78,1937126244);if(!h)return null;W=null;if(U)switch(U.skip(4),ww(U)){default:W=0;break;case 1:W=2;break;case 2:W=1;break;case 3:W=255}var m=U=null,S=null;if(h=Fh(K,h.dataOffset,1886547818)){var f=Fh(K,h.dataOffset,1886546020),G=Fh(K,h.dataOffset,2037673328);if(!G&&(G=Fh(K,h.dataOffset,1836279920), !G))return null;f&&(f.skip(4),U=fn(f)/65536,S=fn(f)/65536,m=fn(f)/65536);K=XGp(G);K=new DataView(K.buffer,K.byteOffset+8,K.byteLength-8);return new axC(W,U,S,m,K)}return null}; KGR=function(K){if(K.D.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var W,U,h;return K.X.Xo?null:(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:(h=U.itemData)==null?void 0:h.vendorName}var m,S,f,G,I,d;return K.X.Xo||K.U.Xo||((m=K.j)==null?0:(S=m.bannerData)==null?0:(f=S.itemData)==null?0:f.affiliateDisclaimer)?null:(G=K.j)==null?void 0:(I=G.bannerData)==null?void 0:(d=I.itemData)==null?void 0:d.vendorName}; g.EZ=function(K){return K.Ns==="embedded"}; sHL=function(K){var W={"Content-Type":"application/json"};g.TA("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=g.TA("EOM_VISITOR_DATA"):g.TA("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=g.TA("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=g.TA("LOGGED_IN",!1);g.TA("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=g.TA("DEBUG_SETTINGS_METADATA"));if(K!=="cors"){var U=g.TA("INNERTUBE_CONTEXT_CLIENT_NAME");U&&(W["X-Youtube-Client-Name"]=U);(U=g.TA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]= U);(U=g.TA("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=U);(U=g.TA("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=U)}g.TA("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(K=g.TA("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=K):K!=="cors"&&g.TA("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(K=g.TA("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=K);return W}; qmC=function(K,W){K.botguardData=W.playerAttestationRenderer.botguardData;W=W.playerAttestationRenderer.challenge;W!=null&&(K.Q9=W)}; xop=function(){}; CRF=function(K,W,U){K.G=W;K.U=U}; lvY=function(K,W){K.OO.j===2&&W!==K.UC()&&UF("onClipEntered: unknown cpn",K.slot,K.layout,{cpn:W})}; v=function(K,W,U,h){h=h===void 0?!1:h;fC.call(this,K);this.TP=U;this.f4=h;this.args=[];W&&this.args.push(W)}; hjR=function(K){var W,U=(W=OB(K))==null?void 0:W.info;return!U||K.Sq(Math.min(U.W+LgY,U.U))}; g.qE=function(K){window.clearTimeout(K)}; JOY=function(K,W){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(K,W===void 0?"":W))return!0}catch(U){}return!1}; KfD=function(K){XL("drm_pb_s",void 0,K.jV);K.yC||K.j&&Vc(K.j);var W={};K.j&&(W=kEF(K.cY,g.Vo(K),K.Tm.U,K.j,function(U){return K.publish("ctmp","fmtflt",U)},!0,new Set)); W=new oM(W,K.Tm,K.OI,K.useCobaltWidevine?aC()?Xi(K):!1:!1,function(U,h){K.rk(U,h)}); g.k(K,W);K.N2=!1;K.loading=!0;tDD(W,function(U){XL("drm_pb_f",void 0,K.jV);for(var h=g.z(U),m=h.next();!m.done;m=h.next())switch(m=m.value,m.flavor){case "fairplay":m.yC=K.yC;m.FT=K.FT;m.KA=K.KA;break;case "widevine":m.Ug=K.Ug}K.VA=U;if(K.VA.length>0&&(K.U=K.VA[0],K.Tm.G9())){U={};h=g.z(Object.entries(K.U.j));for(m=h.next();!m.done;m=h.next()){var S=g.z(m.value);m=S.next().value;S=S.next().value;var f="unk";(m=m.match(/(.*)codecs="(.*)"/))&&(f=m[2]);U[f]=S}K.rk("drmProbe",U)}K.x0()})}; CZL=function(K,W,U,h,m){var S=H6R(h);S.push(new tR(h.Vq));S.push(new Wf(h.EV));return ajD(W,U,h,new Zi(S),m,K.X.get())}; Tf=function(K){if(K.offset>=K.j.totalLength)throw Error();return pM(K.j,K.offset++)}; UG2=function(K){Wfp(K,function(W,U){W=new URL(W);W.searchParams.set("format","json");var h=!1;try{h=f_().navigator.sendBeacon(W.toString(),U.ri())}catch(m){}h||(K.Ms=!1);return h})}; hHp=function(K,W,U,h,m){var S=Zs(K.X.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new cz(K.j),G=[new mx(K.j,S)];K=[new pi(K.j,W)];W=[];W.push(new xx(h({slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:f,slotFulfillmentTriggers:G,slotExpirationTriggers:K})));W.push(new Pq({}));m&&W.push(new vG({current:m}));return{slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:G,slotExpirationTriggers:K,wk:"core",clientMetadata:new Zi(W), adSlotLoggingData:U}}; cpR=function(K,W,U){for(U=U3(K,U);U>=0;){var h=K.levels[U];if(h.isLoaded(u8(h,W))&&(h=g.kG(h,W)))return h;U--}return g.kG(K.levels[0],W)}; mGs=function(K,W,U){K.tK=!0;U=new Bg(W,U);K.C.L("html5_eme_loader_sync")&&(K.G.get(W)||K.G.set(W,U));jcF(K,U)}; Zq=function(K){K=g.BO(K);for(var W=g.z(Object.keys(K)),U=W.next();!U.done;U=W.next()){U=U.value;var h=K[U];K[U]=Array.isArray(h)?h[0]:h}return K}; eHL=function(K,W,U){var h=K.videoId,m=g.Sc(K),S=K.V(),f={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(A3()),referer:document.location.toString(),signatureTimestamp:20376},G=g.Uv();K.isAutonav&&(f.autonav=!0);G.v3(141)&&(f.autonavState=G.v3(140)?"STATE_OFF":"STATE_ON");f.autoCaptionsDefaultOn=G.v3(66);an_(K)&&(f.autoplay=!0);S.J&&K.cycToken&&(f.cycToken=K.cycToken);S.enablePrivacyFilter&&(f.enablePrivacyFilter=!0);K.isFling&&(f.fling=!0);var I=K.forceAdsUrl;if(I){G={};var d=[];I=I.split(","); I=g.z(I);for(var J=I.next();!J.done;J=I.next()){J=J.value;var e=J.split("|");e.length!==3||J.includes("=")||(e[0]="breaktype="+e[0],e[1]="offset="+e[1],e[2]="url="+e[2]);J={adtype:"video_ad"};e=g.z(e);for(var E=e.next();!E.done;E=e.next()){var B=g.z(E.value.split("="));E=B.next().value;B=TN2(B);J[E]=B.join("=")}e=J.url;E=J.presetad;B=J.viralresponseurl;var D=Number(J.campaignid);if(J.adtype==="in_display_ad")e&&(G.url=e),E&&(G.presetAd=E),B&&(G.viralAdResponseUrl=B),D&&(G.viralCampaignId=String(D)); else if(J.adtype==="video_ad"){var a={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(J.offset)||0)}};if(J=SU2[J.breaktype])a.breakType=J;e&&(a.url=e);E&&(a.presetAd=E);B&&(a.viralAdResponseUrl=B);D&&(a.viralCampaignId=String(D));d.push(a)}}f.forceAdParameters={videoAds:d,inDisplayAd:G}}K.isInlinePlaybackNoAd&&(f.isInlinePlaybackNoAd=!0);K.isLivingRoomDeeplink&&(f.isLivingRoomDeeplink=!0);G=K.lI;if(G!=null){G={startWalltime:String(G)};if(d=K.l0)G.manifestDuration=String(d||14400);f.liveContext= G}if(K.mutedAutoplay){f.mutedAutoplay=!0;G=S.getWebPlayerContextConfig();var Q,u;(G==null?0:(Q=G.embedsHostFlags)==null?0:Q.allowMutedAutoplayDurationMode)&&(G==null?0:(u=G.embedsHostFlags)==null?0:u.allowMutedAutoplayDurationMode.includes(fNC[K.mutedAutoplayDurationMode]))&&(f.mutedAutoplayDurationMode=fNC[K.mutedAutoplayDurationMode])}if(K.oW?0:K.Ny)f.splay=!0;Q=K.vnd;Q===5&&(f.vnd=Q);Q={};if(u=K.isMdxPlayback)Q.triggeredByMdx=u;if(u=K.FR)Q.skippableAdsSupported=u.split(",").includes("ska");if(d= K.uT){u=K.Je;G=[];d=g.z(Svs(d));for(I=d.next();!I.done;I=d.next()){I=I.value;J=I.platform;I={applicationState:I.Ap?"INACTIVE":"ACTIVE",clientFormFactor:tjp[J]||"UNKNOWN_FORM_FACTOR",clientName:GJ_[I.nW]||"UNKNOWN_INTERFACE",clientVersion:I.deviceVersion||"",platform:INp[J]||"UNKNOWN_PLATFORM"};J={};if(u){e=void 0;try{e=JSON.parse(u)}catch(N){g.eI(N)}e&&(J={params:[{key:"ms",value:e.ms}]},e.advertising_id&&(J.advertisingId=e.advertising_id),e.limit_ad_tracking!==void 0&&e.limit_ad_tracking!==null&& (J.limitAdTracking=e.limit_ad_tracking),I.osName=e.os_name,I.userAgent=e.user_agent,I.windowHeightPoints=e.window_height_points,I.windowWidthPoints=e.window_width_points)}G.push({adSignalsInfo:J,remoteClient:I})}Q.remoteContexts=G}u=K.sourceContainerPlaylistId;G=K.serializedMdxMetadata;if(u||G)d={},u&&(d.mdxPlaybackContainerInfo={sourceContainerPlaylistId:u}),G&&(d.serializedMdxMetadata=G),Q.mdxPlaybackSourceContext=d;f.mdxContext=Q;Q=W.width;Q>0&&(f.playerWidthPixels=Math.round(Q));if(W=W.height)f.playerHeightPixels= Math.round(W);U!==0&&(f.vis=U);if(U=S.widgetReferrer)f.widgetReferrer=U.substring(0,128);g.HB(S)&&f&&(f.ancestorOrigins=S.ancestorOrigins);K.defaultActiveSourceVideoId&&(f.compositeVideoContext={defaultActiveSourceVideoId:K.defaultActiveSourceVideoId});if(S=S.getWebPlayerContextConfig())f.encryptedHostFlags=S.encryptedHostFlags;h={videoId:h,context:m,playbackContext:{contentPlaybackContext:f}};if(K.Q6){var O;h.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(O=K.Q6)==null?void 0:O.reloadPlaybackParams}}K.contentCheckOk&& (h.contentCheckOk=!0);if(O=K.clientPlaybackNonce)h.cpn=O;if(O=K.playerParams)h.params=O;if(O=K.playlistId)h.playlistId=O;K.racyCheckOk&&(h.racyCheckOk=!0);O=K.V();m=O.embedConfig;K.U0&&O.L("embeds_enable_per_video_embed_config")?h.serializedThirdPartyEmbedConfig=K.U0:m&&(h.serializedThirdPartyEmbedConfig=m);h.captionParams={};m=g.Uv().v3(65);K.deviceCaptionsOn!=null?h.captionParams.deviceCaptionsOn=K.deviceCaptionsOn:g.YC(O)&&(h.captionParams.deviceCaptionsOn=m!=null?!m:!1);K.T1&&(h.captionParams.deviceCaptionsLangPref= K.T1);K.AE.length?h.captionParams.viewerSelectedCaptionLangs=K.AE:g.YC(O)&&(m=g.dGR(),m==null?0:m.length)&&(h.captionParams.viewerSelectedCaptionLangs=m);m=K.fetchType==="onesie"&&K.L("html5_onesie_attach_po_token");f=K.fetchType!=="onesie"&&K.L("html5_non_onesie_attach_po_token");if(m||f)m=K.V(),m.u5&&(h.serviceIntegrityDimensions={},h.serviceIntegrityDimensions.poToken=m.u5);O.L("fetch_att_independently")&&(h.attestationRequest={omitBotguardData:!0});h.playbackContext||(h.playbackContext={});h.playbackContext.devicePlaybackCapabilities= Joz(K);h.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&K.rk("noVp9",{});return h}; f8=function(){g.GP.call(this);this.items={}}; EdF=function(K,W,U,h,m,S,f,G){UH.call(this,K,W,U,h);this.zm=m;this.lZ=S;this.G=G;this.l5=!0;this.W=null;this.U=Sp(U.clientMetadata,"metadata_type_linked_player_bytes_layout_id");VT(this.lZ(),this);K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; Vcz=function(K){K.J||(K.J=WZ());try{return(new URL(K.J)).toString()}catch(W){return(new URL(K.J,f_().location.origin)).toString()}}; cx=function(K,W){this.X=W;this.j=new g.GW({T:"label",Z:"ytp-ad-feedback-dialog-reason-label",K:[{T:"input",Z:"ytp-ad-feedback-dialog-reason-input",B:{type:"radio",name:"feedback-reason-group"}},{T:"span",Z:"ytp-ad-feedback-dialog-reason-text",bX:g.Rb(K)}]});this.N=this.j.yH("ytp-ad-feedback-dialog-reason-input")}; B2C=function(K,W,U){if(U!=null){switch(typeof U){case "string":rcC(U)}kE(K,W,1);switch(typeof U){case "number":K=K.j;nX(U);i0(K,FJ);i0(K,u0);break;case "bigint":U=BigInt.asUintN(64,U);U=new H1(Number(U&BigInt(4294967295)),Number(U>>BigInt(32)));K=K.j;W=U.j;i0(K,U.X);i0(K,W);break;default:U=rcC(U),K=K.j,W=U.j,i0(K,U.X),i0(K,W)}}}; r7L=function(K,W){K.U=!0;g.kK(function(){K.U&&bJC.call(null,W)})}; DGp=function(K,W){return function(){K.C.L("html5_simplify_pings")?(K.j=K.Le,K.AS=W(),K.Ea=0,K.send()):FR(K).then(function(U){var h=XV(K);h.cmt=h.len;h.lact="0";var m=W().toFixed(3);h.rt=Number(m).toString();h=g.sL(K.uri,h);K.C.L("vss_through_gel_double")&&JFs(h);K.hK?(U==null&&(U={}),K.eV?uE().sendAndWrite(h,U):uE().sendThenWrite(h,U)):U?g.ka(h,U):g.Qu(h)})}}; bI=function(K,W,U){K&&!U&&(K=K.parentNode);for(U=0;K;){if(W(K))return K;K=K.parentNode;U++}return null}; HEC=function(K,W){return W?!!K.j.get(W):!1}; ro$=function(K,W){g.ad.call(this,g.w8({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.dV.C6);this.D=K;this.pg=W;g.$C(this.element,"ytp-audio-settings-menu-item");this.FI=new g.Ff(K,void 0,"Audio");this.countLabel=new g.y({T:"div",K:[{T:"span",bX:"Audio"},{T:"span",Z:"ytp-menuitem-label-count",bX:"{{content}}"}]});K.L("web_settings_menu_icons")&&this.setIcon({T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.xP=new JC(K,this.pg,this);g.k(this,this.xP);this.S(K,"settingsMenuInitialized",this.Kc.bind(this));this.S(K,"videodatachange",this.Kc.bind(this));g.k(this,this.countLabel);g.lh(this,this.countLabel);this.pg.j_(this);this.S(K,"onPlaybackAudioChange",this.s4);this.listen("keydown",this.RD);this.listen("click",this.open)}; cOY=function(K){var W=[],U=K.sandwichedLinearAdRenderer&&K.sandwichedLinearAdRenderer.linearAd&&g.P(K.sandwichedLinearAdRenderer.linearAd,iY);if(U)return W.push(U),W;if(K.instreamVideoAdRenderer)return W.push(K.instreamVideoAdRenderer),W;if(K.linearAdSequenceRenderer&&K.linearAdSequenceRenderer.linearAds){K=g.z(K.linearAdSequenceRenderer.linearAds);for(U=K.next();!U.done;U=K.next())U=U.value,g.P(U,iY)&&W.push(g.P(U,iY));return W}return null}; T2$=function(K,W){K.api.L("html5_enable_d6de4_cold_start_and_error")&&(W.rP={coldStartInfo:{clientState:K.N}})}; g.aNs=function(K){K=(K=K.getVideoData())&&K.X;return!!K&&!(!K.audio||!K.video)&&K.mimeType!=="application/x-mpegURL"}; E_p=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D,a,Q,u,O){if(!fg(U))return new v("Invalid PlayerBytesAdLayoutRenderer");var N=faF(U);if(N instanceof v)return N;f={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,wk:f};a:{var A=U.adLayoutMetadata.layoutId,Z=g.P(U.renderingContent,iY);if(Z&&Qx(Z)){var x=[];if(B)x.push(new vM(Wx(W)));else{b:{G=g.z(G);for(W=G.next();!W.done;W=G.next()){W=W.value;var b=cOY(W.renderer)||[],KR=g.z(b);for(b=KR.next();!b.done;b=KR.next())if(b=b.value, b.associatedPlayerBytesLayoutId===A){b.associatedPlayerBytesLayoutId?(G=b.playerOverlay,KR=G!==void 0&&G.playerOverlayLayoutRenderer!==void 0&&G.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&G.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,G=G!==void 0&&G.instreamAdPlayerOverlayRenderer!==void 0&&G.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&G.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||KR):G=!1;W=G?{instreamVideoAdRenderer:b,adPlacementConfig:W.config.adPlacementConfig}: new v("Invalid InPlayer shim");break b}}W=new v("Not able to find associated InPlayer slot")}if(W instanceof v){S=W;break a}G=W.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;b=W.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var fR;KR=(fR=G==null?void 0:G.inPlayerSlotId)!=null?fR:b==null?void 0:b.inPlayerSlotId;var jp;fR=(jp=G==null?void 0:G.inPlayerLayoutId)!=null?jp:b==null?void 0:b.inPlayerLayoutId;if(KR===void 0){S=new v("InPlayer shim slot id is undefined"); break a}if(fR===void 0){S=new v("InPlayer shim layout id is undefined");break a}x.push(new yr(fR),new qw(KR),new yl(m.L7.adPodIndex),new vM(W.adPlacementConfig));G&&x.push(new OH(G));b&&x.push(new cw(b))}x.push(new u2(m.L7),new kq(Z.externalVideoId),new i2(I),new nQ({impressionCommands:Z.impressionCommands,abandonCommands:Z.onAbandonCommands,completeCommands:Z.completeCommands,progressCommands:Z.adVideoProgressCommands}),new zI(m.Z3),new NV({current:null}),new YA(m.JO5.mu),new vJ(Su(Z.pings)),new cg(m.L7.adPodIndex)); O&&x.push(new fY(O));(m=mJe(A,E))&&x.push(new rW(m));S&&x.push(new Ag(S.Z3));Z.adNextParams&&x.push(new RH(Z.adNextParams));Z.clickthroughEndpoint&&x.push(new Pb(Z.clickthroughEndpoint));Z.legacyInfoCardVastExtension&&x.push(new pU(Z.legacyInfoCardVastExtension));Z.sodarExtensionData&&x.push(new oX(Z.sodarExtensionData));u&&Z.adPodSkipTarget&&Z.adPodSkipTarget>0&&(x.push(u),x.push(new $s(Z.adPodSkipTarget)));(S=d.get(Z.externalVideoId))&&x.push(new Z2(S));S=x}else S=new v("Invalid vod media renderer")}if(S instanceof v)return S;K=Object.assign({},f,h,{uZ:N,renderingContent:U.renderingContent,clientMetadata:new Zi(S),t7:q$(J,K)(f),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData});U=g.P(U.renderingContent,iY);if(!U||!Qx(U))return new v("Invalid meida renderer");e=os(e,U.externalVideoId);e.instreamVideoAdRenderer=U;e.UB="AD_PLACEMENT_KIND_START";return B?(I=oK(E,K,I,a,J,Q,D,u,!1),I instanceof v?I:mJe(K.layoutId,E)&&I?{layout:Object.assign({},K,{clientMetadata:new Zi(S.concat(new FM(I)))})}:{layout:K,Jv:I}): {layout:K}}; wSp=function(K,W){W=W===void 0?!1:W;K.AK&&K.AK.j&&K.AK.X&&(K.AK.j.L4(K.Pp,K),K.AK.X.L4(K.Pp,K));br(K.audioTrack,null,W);br(K.videoTrack,null,W);K.AK&&(K.AK.W=!1);K.AK=null}; cos=function(){this.N=void 0;this.X=this.G=0;this.U=-1;this.Lr=new MO;Xd(this.Lr,"mv",Qce).j=!0;Xd(this.Lr,"omid",s5);Xd(this.Lr,"epoh",s5).j=!0;Xd(this.Lr,"epph",s5).j=!0;Xd(this.Lr,"umt",s5).j=!0;Xd(this.Lr,"phel",s5).j=!0;Xd(this.Lr,"phell",s5).j=!0;Xd(this.Lr,"oseid",$Gz).j=!0;var K=this.Lr;K.j.sloi||(K.j.sloi=new cK);K.j.sloi.j=!0;Xd(this.Lr,"mm",YUC);Xd(this.Lr,"ovms",OE$).j=!0;Xd(this.Lr,"xdi",s5).j=!0;Xd(this.Lr,"amp",s5).j=!0;Xd(this.Lr,"prf",s5).j=!0;Xd(this.Lr,"gtx",s5).j=!0;Xd(this.Lr, "mvp_lv",s5).j=!0;Xd(this.Lr,"ssmol",s5).j=!0;Xd(this.Lr,"fmd",s5).j=!0;Xd(this.Lr,"gen204simple",s5);this.j=new obs(zx(),this.Lr);this.W=!1;this.flags=new C8e}; g.VP=function(K){return K.Hd.get("webgl")}; VZ=function(K,W,U,h,m){g.p.call(this);var S=this;this.X=K;this.Oa=W;this.dk=U;this.ZA=h;this.context=m;this.l5=!0;this.Lg=new Map;this.j=new Set;U.get().addListener(this);this.addOnDisposeCallback(function(){U.qs()||U.get().removeListener(S)})}; bip=function(K){var W=K.getVideoData(),U=K.lY(),h=U.H3(),m=K.V(),S=K.c9(),f=S.hH*8/1024,G=S.Hc/1024,I=S.Ub,d=S.pY,J=S.playerState.state.toString(16),e=U.getCurrentTime().toFixed(2),E=fc(U.Po(),",",3),B="";if(W.isDaiEnabled()){W.enableServerStitchedDai&&(B+=W.KX?"DS":"SS");B=W.Sj()?B+"LIFA, ":B+"DAI, ";var D=S.fW;D&&(B+=D)}F8(W)&&!W.Sj()&&(B+="LIFAE, ");HT(W)&&(B+="SABR, ");if(W.fetchType){switch(W.fetchType){case "onesie":D="o";break;case "gp":D="gp";break;default:D="gvi"}B+="vd:"+D+", "}(m=m.VA)&& (B=m.j?B+"wa, ":B+"w, ");B+="s:"+J+" t:"+e+" b:"+E+" ";U.isSeeking()&&(B+="S");U.isPaused()&&(B+="P");U.isEnded()&&(B+="E");K.isOrchestrationLeader()&&(B+=" L");(U=S.tG)&&(B+=" l:"+U.toFixed());U=S.currentTime;J=W.jq;U&&U>J.start&&U>=5;a+=u}m=a.substr(0,4)+" "+a.substr(4,4)+" "+a.substr(8,4)+" "+(a.substr(12,4)+" "+a.substr(16,4))}else m="";f={video_id_and_cpn:String(W.videoId)+" / "+m,codecs:"",dims_and_frames:"",bandwidth_kbps:f.toFixed(0)+" Kbps",buffer_health_seconds:I.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:d?"":"display:none",drm:d,debug_info:U,extra_debug_info:"",bandwidth_style:E,network_activity_style:E,network_activity_bytes:G.toFixed(0)+" KB",shader_info:e,shader_info_style:e?"":"display:none",playback_categories:""};G=h.clientWidth+"x"+h.clientHeight+(J>1?"*"+J.toFixed(2):"");I="-";S.totalVideoFrames&&(I=(S.droppedVideoFrames||0)+" dropped of "+S.totalVideoFrames);f.dims_and_frames=G+" / "+I;K=K.getVolume();G=ZAL(W);var N;if((N=W.W)==null?0:N.audio.X)N= "VB";else{var A;N=((A=W.W)==null?0:A.audio.j)?"DRC":Math.round(K*G)+"%"}A=Math.round(K)+"% / "+N;N=W.lj.toFixed(1);isFinite(Number(N))&&(A+=" (content loudness "+N+"dB)");f.volume=A;f.resolution=h.videoWidth+"x"+h.videoHeight;if(h=W.X){if(A=h.video)N=A.fps,N>1&&(f.resolution+="@"+N),(N=S.bL)&&N.video&&(f.resolution+=" / "+N.video.width+"x"+N.video.height,N.video.fps>1&&(f.resolution+="@"+N.video.fps)),f.codecs=G1p(h),!W.W||h.audio&&h.video?h.Lh&&(f.codecs+=" / "+h.Lh+"A"):f.codecs+=" / "+G1p(W.W), A.j||A.primaries?(N=A.j||"unknown",N==="smpte2084"?N+=" (PQ)":N==="arib-std-b67"&&(N+=" (HLG)"),f.color=N+" / "+(A.primaries||"unknown"),f.color_style=""):f.color_style="display:none";if(h.debugInfo)for(f.fmt_debug_info="",h=g.z(h.debugInfo),A=h.next();!A.done;A=h.next())A=A.value,f.fmt_debug_info+=A.label+":"+A.text+" ";f.fmt_debug_info_style=f.fmt_debug_info&&f.fmt_debug_info.length>0?"":"display:none"}h=W.isLivePlayback;A=W.tv;f.live_mode_style=h||A?"":"display:none";f.live_latency_style=h?"": "display:none";if(A)f.live_mode="Post-Live"+(tc(W)?" Manifestless":"");else if(h){A=S.DG;f.live_latency_secs=A.toFixed(2)+"s";h=tc(W)?"Manifestless, ":"";W.Cf&&(h+="Windowed, ");N="Uncertain";if(A>=0&&A<120)if(W.latencyClass&&W.latencyClass!=="UNKNOWN")switch(W.latencyClass){case "NORMAL":N="Optimized for Normal Latency";break;case "LOW":N="Optimized for Low Latency";break;case "ULTRALOW":N="Optimized for Ultra Low Latency";break;default:N="Unknown Latency Setting"}else N=W.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";h+=N;(A=S.H5)&&(h+=", seq "+A.sequence);f.live_mode=h}!S.isGapless||IG(W)&&S.Hh||(f.playback_categories+="Gapless ");f.playback_categories_style=f.playback_categories?"":"display:none";f.bandwidth_samples=S.u1;f.network_activity_samples=S.Qo;f.live_latency_samples=S.zN;f.buffer_health_samples=S.bd;S=g.pV(W);if(W.cotn||S)f.cotn_and_local_media=(W.cotn?W.cotn:"null")+" / "+S;f.cotn_and_local_media_style=f.cotn_and_local_media?"":"display:none"; DM(W,"web_player_release_debug")?(f.release_name=t[2],f.release_style=""):f.release_style="display:none";f.debug_info&&B.length>0&&f.debug_info.length+B.length<=60?f.debug_info+=" "+B:f.extra_debug_info=B;f.extra_debug_info_style=f.extra_debug_info&&f.extra_debug_info.length>0?"":"display:none";return f}; g.sQ=function(K){if(!K.playerResponse||!K.playerResponse.annotations)return null;K=g.z(K.playerResponse.annotations);for(var W=K.next();!W.done;W=K.next())if(W=W.value,W.playerAnnotationsExpandedRenderer&&W.playerAnnotationsExpandedRenderer.featuredChannel)return W.playerAnnotationsExpandedRenderer;return null}; nn=function(K){return K.api.isFullscreen()||K.tK&&K.api.F8()}; kIR=function(K,W){K=K.flags.get(""+W);return Number(K)||0}; iZ=function(K,W){var U={};U[K]=W;return[U]}; yXD=function(K){Xd(K,"od",ndD);Xd(K,"opac",s5).j=!0;Xd(K,"sbeos",s5).j=!0;Xd(K,"prf",s5).j=!0;Xd(K,"mwt",s5).j=!0;Xd(K,"iogeo",s5)}; FIz=function(K){for(var W=new Set,U=g.z(Object.values(K)),h=U.next();!h.done;h=U.next())h=h.value,h.length&&(h=h[0],h.height&&h.codecs.startsWith("vp09")&&W.add(h.height));U=[];if(W.size){h=g.z(Object.keys(K));for(var m=h.next();!m.done;m=h.next())if(m=m.value,K[m].length){var S=K[m][0];S.height&&W.has(S.height)&&!S.codecs.startsWith("vp09")&&U.push(m)}}W=g.z(U);for(U=W.next();!U.done;U=W.next())delete K[U.value]}; I1=function(K,W){g.p.call(this);this.F0=W;this.F0.get().addListener(this)}; gdR=function(K){return!!K&&isFinite(K)&&K>1E9}; j1=function(K,W,U){if(K.C.experiments.Rk("html5_disable_client_autonav_cap_for_onesie")&&W.fetchType==="onesie"||g.PJ(K.C)&&(tK(-1)>=1080||W.osid))return BE;var h=g.jV(K.C.experiments,"html5_autonav_quality_cap"),m=g.jV(K.C.experiments,"html5_autonav_cap_idle_secs");return h&&W.isAutonav&&A3()/1E3>m?(U&&(h=hwY(K,U,h)),new ZO(0,h,!1,"e")):BE}; v4=function(K){K.DA=[];K.QP();K.D.L5("featured_product")}; qZ=function(K,W){K.X.delete(W)}; Lw=function(K,W,U){var h=[],m=K.track.B3;if(m){m=m.Nb();for(var S=0;SS?m=0:h[f]>K.buffered[f]&&(f===S-1?m=2:f===S-2&&h[f+1]>K.buffered[f+1]&&(m=3))}K.j.add(W<<3|(U&&4)|m);W=Math.ceil(K.track.Da()*1E3);K.j.add(W-K.U);K.U=W;if(m===1)for(K.j.add(S),f=W=0;f=2&&K.j.add(h[S- 1]-K.buffered[S-1]);U&&K.j.add(U);K.buffered=h}; Ff2=function(K){this.value=K}; Yg=function(K,W,U){K.U[W.fC()]=W;K.X=W;U&&(K.G=W);Og(K)}; Hfs=function(K,W){var U=g.sp(W),h=g.BB("Seek to $PROGRESS",{PROGRESS:g.sp(W,!0)});K.update({ariamin:0,ariamax:Math.floor(K.api.getDuration()),arianow:Math.floor(W),arianowtext:h,seekTime:U})}; BzF=function(K,W,U,h,m,S){if(!W)throw Error("Invalid event type");var f=g.SG(m)?!!m.capture:!!m,G=C$(K);G||(K[lJ]=G=new nD(K));U=G.add(W,U,h,f,S);if(U.proxy)return U;h=OMC();U.proxy=h;h.src=K;h.listener=U;if(K.addEventListener)uKF||(m=f),m===void 0&&(m=!1),K.addEventListener(W.toString(),h,m);else if(K.attachEvent)K.attachEvent(uIL(W.toString()),h);else if(K.addListener&&K.removeListener)K.addListener(h);else throw Error("addEventListener and attachEvent are unavailable.");k$e++;return U}; oa=function(K){g.y.call(this,{T:"button",Hp:["ytp-fullerscreen-edu-button","ytp-button"],K:[{T:"div",Hp:["ytp-fullerscreen-edu-text"],bX:"Scroll for details"},{T:"div",Hp:["ytp-fullerscreen-edu-chevron"],K:[sPC()]}],B:{"data-priority":"2"}});this.Yx=K;this.fade=new g.Wr(this,250,void 0,100);this.X=this.j=!1;K.createClientVe(this.element,this,61214);g.k(this,this.fade);this.S(K,"fullscreentoggled",this.SV);this.S(K,"presentingplayerstatechange",this.SV);this.listen("click",this.onClick);this.SV()}; h6=function(K,W,U,h,m){var S=H6R(h);return ajD(W,U,h,new Zi(S),m,K.X.get())}; g.Zj=function(K){if(K.data.getUint8(K.dataOffset)){var W=K.data;K=K.dataOffset+4;W=W.getUint32(K)*4294967296+W.getUint32(K+4)}else W=K.data.getUint32(K.dataOffset+4);return W}; UV=function(K){return window.navigator.msPointerEnabled?"MSPointer"+K.charAt(0).toUpperCase()+K.substring(1):"mouse"+K}; HDL=function(K,W,U,h,m,S,f,G,I,d,J,e){var E=zz(h,U,d);return E instanceof Rt?new v(E):d.D.V().experiments.Rk("html5_refactor_in_player_slot_generation")?function(B){var D=new O3(0,[E.mu]);B=kJ_(W,E.layoutId,E.To,U,n9(E.playerVars,E.O9,S,I,D),E.mu,m,D,f(B),G.get(E.To.externalVideoId),e);D=[];if(E.To.playerOverlay.instreamAdPlayerOverlayRenderer){var a=iE2(B);if(!a)return UF("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,B),{layout:B,A9:[]}; D=[pis(K,a.contentCpn,a.Ew,function(u){return h6(W,u.slotId,"core",a,q$(J,u))},a.inPlayerSlotId)].concat(g.z4(D)); if(a.instreamAdPlayerUnderlayRenderer&&zHF(d)){var Q=a.instreamAdPlayerUnderlayRenderer;D=[egz(K,a.contentCpn,a.Ew,function(u){return EQD(W,u.slotId,Q,a.adPlacementConfig,a.Ew,q$(J,u))})].concat(g.z4(D))}}return{layout:B, A9:D}}:function(B){var D=new O3(0,[E.mu]); return{layout:kJ_(W,E.layoutId,E.To,U,n9(E.playerVars,E.O9,S,I,D),E.mu,m,D,f(B),G.get(E.To.externalVideoId),e),A9:[]}}}; g.Z$=function(K){return K[K.length-1]}; N2p=function(K){var W;g.r(function(U){switch(U.j){case 1:return g.Bj(U,2),g.T(U,K.W,4);case 4:g.xL(U,3);break;case 2:g.SV(U);case 3:(W=K.N)==null||W.disconnect(),g.q1(U)}})}; AoR=function(K,W){for(var U=g.z(W.keys()),h=U.next();!h.done;h=U.next())if(h=W.get(h.value),h.length!==0){g.OM(h,function(G,I){return I.maxFramerate-G.maxFramerate}); for(var m=[h[0]],S=0,f=1;f0&&Math.abs(W-U)>=5&&K.X===4&&Wb(K,5,"sk2t")}; dls=function(K,W,U,h,m,S,f,G,I,d){this.bY=K;this.dk=W;this.zm=U;this.W=h;this.yg=m;this.X=S;this.N=f;this.kd=G;this.Xx=I;this.j=d}; RHF=function(K,W,U){var h,m=-1,S=W[1],f=0,G=7,I=4;S===0&&(G=138,I=3);for(h=0;h<=U;h++){var d=S;S=W[(h+1)*2+1];if(!(++f=1?K[K.length-1]:null;for(var h=g.z(K),m=h.next();!m.done;m=h.next())if(m=m.value,m.width&&m.height&&(U&&m.width>=W||!U&&m.height>=W))return m;for(W=K.length-1;W>=0;W--)if(U&&K[W].width||!U&&K[W].height)return K[W];return K[0]}; ods=function(K,W,U,h,m){if(h=h>1)K.W=!0;if((m===void 0?0:m)||isNaN(K.X))K.X=W;if(K.j)W!==K.mediaTime&&(K.j=!1);else if(W>0&&K.mediaTime===W){m=1500;if(K.C.L("html5_buffer_underrun_transition_fix")){m=g.jV(K.C.experiments,"html5_min_playback_advance_for_steady_state_secs");var S=g.jV(K.C.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");m=m>0&&S>0&&Math.abs(W-K.X)(h||!K.W?m:400)}K.mediaTime=W;K.N=U;return!1}; K3=function(K,W,U){U!==void 0&&Number.isNaN(Number(U))&&(U=void 0);var h=g.vB("yt.scheduler.instance.addJob");return h?h(K,W,U):U===void 0?(K(),NaN):g.FE(K,U||0)}; g.DO=function(K){K=FX(K);for(var W=[],U=0;UK.N)throw Error();}; bEz=function(K,W,U){var h=K.getVideoData(),m=W.getVideoData();if(!h.V().supportsGaplessShorts())return{nq:"env"};if((!U.jV||h.pN&&!h.isAd()||m.pN&&!m.isAd())&&(!U.X||h.pN&&!h.isAd()||m.pN)&&(!U.N||m.pN&&!m.isAd()||h.pN)&&(h.pN||m.pN))return{nq:"autoplay"};if(h.endSeconds>0)return{nq:"endcr"};if(!h.Y)return{nq:"client"};if(!K.Hh())return{nq:"no-empty"};K=ZEz(U,K,W,Infinity);return K!=null?{nq:K.msg}:null}; Hq=function(K){this.iZ=qR(K)}; BJ=function(K,W){return W===void 0||W===null?K:Number(W)}; or=function(K,W){var U=g.vB("yt.logging.transport.enableScrapingForTest"),h=p1("il_payload_scraping");h=(h!==void 0?String(h):"")==="enable_il_payload_scraping";if(!U)if(h)scC=[],g.Vk("yt.logging.transport.enableScrapingForTest",!0),g.Vk("yt.logging.transport.scrapedPayloadsForTesting",scC),g.Vk("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Vk("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Vk("yt.logging.transport.scrapeClientEvent",!0);else return;U=g.vB("yt.logging.transport.scrapedPayloadsForTesting");h=g.vB("yt.logging.transport.payloadToScrape");W&&(W=W.payload,(W=g.vB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W)())&&U.push(W));W=g.vB("yt.logging.transport.scrapeClientEvent");if(h&&h.length>=1)for(var m=0;m0;return K.aT.length>0||W}return!(K==null||!K.mE)&&!(K==null||!K.s_.totalLength)}; StD=function(K){return K.X.length?K.X[0]:null}; VjR=function(K){var W=g.qs.CSSStyleDeclaration;return W&&W.prototype&&W.prototype[K]||null}; $Xz=function(K,W){if(K.Rw){var U=K.X.get(K.Rw);if(U&&U.start-200<=W&&U.end+200>=W)return U}K=g.z(K.X.values());for(U=K.next();!U.done;U=K.next())if(U=U.value,U.start<=W&&U.end>=W)return U}; XSL=function(K){var W=new fnC;W.W=K.L("h5_gapless_support_types_diff");W.J=!1;W.Ms=K.L("html5_gapless_use_format_info_fix");W.G=K.L("html5_gapless_disable_on_av1")&&!K.L("html5_gapless_enable_on_av1");W.U=K.L("html5_gapless_check_codec_diff_strictly");W.jV=K.L("html5_gapless_on_ad_autoplay");W.Y=K.L("html5_gapless_disable_diff_aspect_radio");W.X=K.L("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!K.L("html5_disable_loop_range_for_shorts_ads");W.j=K.L("html5_pseudogapless_shorts_seek_to_next_start"); W.N=K.L("html5_gapless_ad_autoplay_on_video_to_ad_only");return W}; g.lS=function(){this.segments=[];this.j=null;this.X=!0;this.N=""}; Vi=function(K,W){return Gp(K,W)||(K.currentStyle?K.currentStyle[W]:null)||K.style&&K.style[W]}; S42=function(K,W,U){W=Lo(K,W);U||W?W&&(K.N=!0):K.N=!1;K.Y=K.policy.N===2||K.policy.N===3&&K.N}; MTs=function(){var K=g.Dk.wK();if(K&&(K=K.xO("yt-player-quality")))return K.creation}; g.PJ=function(K){return/^TVHTML5/.test(Cr(K))}; l7$=function(K){var W=g.Xl.apply(1,arguments);K.args||(K.args=[]);Array.isArray(K.args)&&K.args.push.apply(K.args,g.z4(W))}; sEs=function(K,W){W<0||(K.X.forEach(function(U){KQC(U,W)}),K.timestampOffset=W)}; g.Le=function(K){return vde(K,K)}; qUs=function(K,W,U,h,m){try{if(K.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var S=U(K.state.value);S instanceof g.So?uP(K,W,S,h,m):h(S)}catch(f){m(f)}}; g.Ol=function(K,W,U){K.j.createIndex(W,U,{unique:!1})}; xGC=function(K){if(K.isAd()&&(K.JK?K.videoId!==K.Tm.M5:K.videoId!=K.Tm.M5))return K.Tm.M5}; j1F=function(K,W){if(!K.W3){var U=YR(K,"start",$R());U=K.zW.j(U).j;var h={id:"lidarv"};h.r=W;h.sv="968";th!==null&&(h.v=th);by(U,function(m,S){return h[m]=m=="mtos"||m=="tos"?S:encodeURIComponent(S)}); W=loC();by(W,function(m,S){return h[m]=encodeURIComponent(S)}); W="//pagead2.googlesyndication.com/pagead/gen_204?"+CCD(dv(new qc,h));O5R(W);K.W3=!0}}; ep=function(K,W,U,h){vh.call(this,K,{T:"div",Z:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",W,U,h);this.j=[]}; lNs=function(K,W){W=g.FK(K.X,{W2:W},function(U,h){return U.W2-h.W2}); return W>=0?K.X[W]:null}; zfF=function(K){return new HP(K.top,K.right,K.bottom,K.left)}; Hyp=function(K,W,U){if(!K.Ms){U||(U=gD(K,"atr"));U.attestationResponse=W;try{U.send()}catch(h){if(h.message!=="Unknown Error")throw h;}K.Ms=!0}}; TBs=function(K,W,U){for(var h=K.length;h=0&&!(K.counter[f]=-~K.counter[f]);f--);for(var G,I,d=4;d<40;)f=Ku[U>>>24]^W8[h>>16&255]^Ur[m>>8&255]^hS[S&255]^W[d++],G=Ku[h>>>24]^W8[m>>16&255]^Ur[S>>8&255]^hS[U&255]^W[d++],I=Ku[m>>>24]^W8[S>>16&255]^Ur[U>>8&255]^hS[h&255]^W[d++],S=Ku[S>>>24]^W8[U>>16&255]^Ur[h>>8&255]^hS[m&255]^W[d++],U=f,h=G,m=I;K=K.X;f=W[40];K[0]=j0[U>>>24]^f>>>24;K[1]=j0[h>>16&255]^f>>16&255;K[2]=j0[m>>8&255]^ f>>8&255;K[3]=j0[S&255]^f&255;f=W[41];K[4]=j0[h>>>24]^f>>>24;K[5]=j0[m>>16&255]^f>>16&255;K[6]=j0[S>>8&255]^f>>8&255;K[7]=j0[U&255]^f&255;f=W[42];K[8]=j0[m>>>24]^f>>>24;K[9]=j0[S>>16&255]^f>>16&255;K[10]=j0[U>>8&255]^f>>8&255;K[11]=j0[h&255]^f&255;f=W[43];K[12]=j0[S>>>24]^f>>>24;K[13]=j0[U>>16&255]^f>>16&255;K[14]=j0[h>>8&255]^f>>8&255;K[15]=j0[m&255]^f&255}; NS=function(K,W){var U;return g.r(function(h){U=K.X;if(!U||U.nN())return h.return(NS(K.network,W));S8("att_pna",void 0,"attestation_challenge_fetch");return h.return(new Promise(function(m){U.EB("publicytnetworkstatus-online",function(){NS(K.network,W).then(m)})}))})}; j8C=function(K,W,U,h,m,S){h=h===void 0?{}:h;var f=Math.round((0,g.AI)()),G={value:K.size},I=new Map([].concat(g.z4(K)));I=g.z(I);for(var d=I.next();!d.done;d=I.next()){var J=g.z(d.value).next().value,e=K.get(J);d=new SJs;var E=W.config_||g.aA(),B=new sI,D=new sD;Ya(D,1,E.H7);Ya(D,2,E.Dq);a1(D,16,E.Fs);Ya(D,17,E.innertubeContextClientVersion);if(E.VK){var a=E.VK,Q=new zB;a.coldConfigData&&Ya(Q,1,a.coldConfigData);a.appInstallData&&Ya(Q,6,a.appInstallData);a.coldHashData&&Ya(Q,3,a.coldHashData);a.hotHashData&& Q.LM(a.hotHashData);rk(D,zB,62,Q)}(a=g.qs.devicePixelRatio)&&a!=1&&$a(D,65,Mi(a));a=jS();a!==""&&Ya(D,54,a);a=HL();if(a.length>0){Q=new Mt;for(var u=0;u127;)K.j.push(W&127|128),W>>>=7;K.j.push(W)}; fu=function(K,W,U){g.GP.call(this);this.videoData=K;this.experiments=W;this.U=U;this.X=[];this.bd=0;this.N=!0;this.W=!1;this.G=0;U=new VCC;K.latencyClass==="ULTRALOW"&&(U.J=!1);K.Vr?U.N=3:g.aG(K)&&(U.N=2);K.latencyClass==="NORMAL"&&(U.U=!0);U.Ms=HT(K);if(K.latencyClass==="LOW"||K.latencyClass==="ULTRALOW")U.U=!0;var h=g.jV(W,"html5_liveness_drift_proxima_override");if(nB(K)!==0&&h){U.j=h;var m;((m=K.j)==null?0:ovR(m))&&U.j--}HT(K)&&W.Rk("html5_sabr_parse_live_metadata_playback_boundaries")&&(U.uX= !0);if(g.PP("trident/")||g.PP("edge/"))m=g.jV(W,"html5_platform_minimum_readahead_seconds")||3,U.W=Math.max(U.W,m);g.jV(W,"html5_minimum_readahead_seconds")&&(U.W=g.jV(W,"html5_minimum_readahead_seconds"));g.jV(W,"html5_maximum_readahead_seconds")&&(U.jV=g.jV(W,"html5_maximum_readahead_seconds"));if(W=g.jV(W,"html5_liveness_drift_chunk_override"))U.j=W;O1(K)&&(U.j=(U.j+1)/5,K.latencyClass==="LOW"&&(U.j*=2));!HT(K)||K.latencyClass!=="ULTRALOW"&&K.latencyClass!=="LOW"||(U.Y=3,U.G=25);this.policy=U; this.Y=this.policy.N!==1;this.j=HV(this,Z52(this,isNaN(K.liveChunkReadahead)?3:K.liveChunkReadahead,K))}; eAs=function(K,W){return K.enabledEngageTypes.has(W.toString())||Jus.includes(W)}; ESC=function(K,W){K.U=W;K.N&&(K.N.N=W);K.U.vZ(K.videoTrack.Wp.info.yh());K.G.X=K.U;K.policy.X&&(K.X.Y=K.U)}; Bi$=function(K){var W,U,h=(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:U.itemData;if(h==null?0:h.priceReplacementText)return h==null?void 0:h.priceReplacementText;if((h==null?0:h.promotionText)&&K.D.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var m;return(h==null?void 0:h.price)+" "+(h==null?void 0:(m=h.promotionText)==null?void 0:m.content)}var S,f;if(h==null?0:(S=h.dealsData)==null?0:(f=S.sales)==null?0:f.originalPrice){var G,I;return h==null?void 0:(G=h.dealsData)== null?void 0:(I=G.sales)==null?void 0:I.salesPriceAccessibilityLabel}var d,J;if(h==null?0:(d=h.dealsData)==null?0:(J=d.priceDrop)==null?0:J.referencePrice){var e,E;return(h==null?void 0:h.price)+" "+(h==null?void 0:(e=h.dealsData)==null?void 0:(E=e.priceDrop)==null?void 0:E.referencePrice)}return h==null?void 0:h.price}; SiL=function(K,W,U){U=U===void 0?0:U;g.kQ(function(){W.then(function(h){K.X.has(U)&&K.W&&K.W();var m=g.z0(U),S=g.ND(U);if(m&&S){var f={automatedLogEventSource:3},G;(h==null?0:(G=h.response)==null?0:G.trackingParams)&&g.mD(K.client,m,S,g.qG(h.response.trackingParams),!1,f);var I;(h==null?0:(I=h.playerResponse)==null?0:I.trackingParams)&&g.mD(K.client,m,S,g.qG(h.playerResponse.trackingParams),!1,f)}})})()}; DDs=function(K,W,U){this.Hr=W;this.j=U;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=K(this.triggerType)}; mB=function(K,W){var U=K.OC>=0?K.OC:-1,h=K.Oz-K.OC,m=0;if(K.level>0){K.VX.U1===2&&(K.VX.U1=DO_(K));Ys(K,K.xZ);Ys(K,K.UZ);HcR(K,K.S$,K.xZ.wI);HcR(K,K.HW,K.UZ.wI);Ys(K,K.Qc);for(m=18;m>=3&&K.rg[H8$[m]*2+1]===0;m--);K.uQ+=3*(m+1)+5+5+4;var S=K.uQ+3+7>>>3;var f=K.Cx+3+7>>>3;f<=S&&(S=f)}else S=f=h+5;if(h+4<=S&&U!==-1)o_(K,W?1:0,3),wkR(K,U,h);else if(K.strategy===4||f===S)o_(K,2+(W?1:0),3),ru_(K,Mw,Pu);else{o_(K,4+(W?1:0),3);U=K.xZ.wI+1;h=K.UZ.wI+1;m+=1;o_(K,U-257,5);o_(K,h-1,5);o_(K,m-4,4);for(S=0;Sm.width)W-=m.width;else break;h++}return h===K.j.length?h-1:h}; T_2=function(K,W,U){U=U===void 0?2:U;qm(K,W*8+2);K.X.push(K.pos);K.X.push(U);K.pos+=U}; A5s=function(K){K.U||(K.U=(0,g.AI)());K.policy.jV&&(K.G=(0,g.AI)())}; wo$=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D){var a=uU_(m,E,B);if(a instanceof v)return a;var Q=[],u=[];a=g.z(a);for(var O=a.next();!O.done;O=a.next()){var N=O.value;O=K;var A=m[N.w4],Z=N,x=W;N=S;var b=f,KR=G,fR=I,jp=d,I2=J,hF=faF(A);if(hF instanceof v)O=hF;else{var w$={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,wk:"adapter"};Z=a7R(x,A,Z,N);Z instanceof v?O=Z:(O=Object.assign({},w$,Pd,{uZ:hF,renderingContent:A.renderingContent,clientMetadata:new Zi(Z),t7:q$(KR,O)(w$), adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}),O=(A=oK(I2,O,N,b.JW,KR,fR,jp,void 0,!0))?A instanceof v?A:{layout:O,Jv:A}:new v("Expecting associatedInPlayerSlot"))}if(O instanceof v)return O;Q.push(O.layout);u.push(O.Jv)}m={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,wk:"core"};W=[new l2(Number(U.driftRecoveryMs)),new SQ(E),new ff(B),new vM(Wx(W)),new da(e),new Pq({})];D&&W.push(new y4({}));return{RB:Object.assign({},m,h,{sX:Q,uZ:new Map,clientMetadata:new Zi(W), t7:q$(G,K)(m)}),A9:u}}; tS=function(K,W){K.L("html5_webpo_bge_ctmp")&&K.api.rk(W,{hwpo:!!K.X,hwpor:K.j})}; QOs=function(K,W){K=K.itag.toString();W!==null&&(K+=W.itag.toString());return K}; $Os=function(K){K.eV=Math.max(K.eV,K.U-K.XI);K.uX=Math.max(K.uX,K.Y-K.oW);K.DA=0}; qr=function(K){return K instanceof pY?g.CM(K):APC(K)}; HrC=function(K){K=g.z(K);for(var W=K.next();!W.done;W=K.next())if(g.P(W.value,Jo))return!0;return!1}; b6s=function(K){var W=K.iX.z_()||{};W.fs=K.iX.MR();W.volume=K.iX.getVolume();W.muted=K.iX.isMuted()?1:0;W.mos=W.muted;W.clipid=K.iX.Ag();var U;W.playerheight=((U=K.iX.getPlayerSize())==null?void 0:U.height)||0;var h;W.playerwidth=((h=K.iX.getPlayerSize())==null?void 0:h.width)||0;K=K.videoData;U={};K.X&&(U.fmt=K.X.itag,K.W&&(K.JK?K.W.itag!==K.X.itag:K.W.itag!=K.X.itag)&&(U.afmt=K.W.itag));U.ei=K.eventId;U.list=K.playlistId;U.cpn=K.clientPlaybackNonce;K.videoId&&(U.v=K.videoId);K.M0&&(U.infringe=1); (K.oW?0:K.Ny)&&(U.splay=1);(h=DG(K))&&(U.live=h);K.GZ&&(U.sautoplay=1);K.pN&&(U.autoplay=1);K.J$&&(U.sdetail=K.J$);K.partnerId&&(U.partnerid=K.partnerId);K.osid&&(U.osid=K.osid);K.ub&&(U.cc=g.dMR(K.ub));return Object.assign(W,U)}; g.g8=function(K){return"crx_"+K}; Gw=function(K,W,U){K.Yx.publish(W,U);var h=g.PJ(K.C)||g.r8(K.C)||g.l1(K.C);if(U&&h){switch(W){case "cuerangemarkersupdated":var m="onCueRangeMarkersUpdated";break;case "cuerangesadded":m="onCueRangesAdded";break;case "cuerangesremoved":m="onCueRangesRemoved"}m&&K.Yx.Fx(m,U.map(function(S){return{getId:function(){return this.id}, end:S.end,id:S.getId(),namespace:S.namespace==="ad"?"ad":"",start:S.start,style:S.style,visible:S.visible,markerPositionMs:S.markerPositionMs}}))}}; MW=function(K,W,U,h,m){g.p.call(this);var S=this;this.X=K;this.N=W;this.Oa=U;this.context=m;this.j=new Map;h.get().addListener(this);this.addOnDisposeCallback(function(){h.qs()||h.get().removeListener(S)})}; YJe=function(K,W){if(K.j&&K.loader){var U=!1;W?U=!0:K.videoData.isLowLatencyLiveStream||K.videoData.latencyClass==="LOW"||K.videoData.latencyClass==="ULTRALOW"?U=W6R(K.j):K.Ik&&(K.Ik=!1,U=W6R(K.j,!0));U&&(W=K.iX.S0,U=K.j,U=rV(U)*U.j,W.qoe&&(W=W.qoe,g.Fa(W,g.gh(W.provider),"lra",[U]),W.rk("live-readahead-seconds",{v:U})));W=K.loader;U=K.j.j;K=K.j;K=(K.j-1+K.policy.j)*rV(K);var h=NaN,m=W.Ny;m===2||m===-1?O1(W.iX.getVideoData())&&(h=W.policy.Xl5):--U;U=Math.max(U,0);m=W.G;m.U4=U;m.jV=h;W.J&&(W.J.Ms= K)}}; O8D=function(){var K=nm().N,W=kU>=0?i_()-kU:-1,U=CH?i_()-q3s:-1,h=Mc>=0?i_()-Mc:-1;if(K==947190542)return 100;if(K==79463069)return 200;K=[2E3,4E3];var m=[250,500,1E3];Tl(637,Error(),.001);var S=W;U!=-1&&U1500&&h<4E3?500:f}; T0=function(K){if(!K.X||!K.policy.W&&!K.X.info.ZO){var W=K.G.j;K.X&&(W=W.filter(function(h){return h.audio.j===K.X.info.audio.j}),W.length||(W=K.G.j)); K.X=K.Gm.j[W[0].id];if(W.length>1&&!K.policy.DA){if(!K.policy.TI){var U=g.dG(W,function(h){return h.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); U&&(K.X=K.Gm.j[U.id])}U=!1;if(U=K.policy.QA?!0:K.j.isLocked()?K.j.j<240:hLs(K,K.X))K.X=K.Gm.j[g.Z$(W).id]}}}; cus=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;var h=U[1];U[0]===1?K.Y(g.$w(h.namespace),h):K.Y(g.g8(h.namespace),h)}}; g.hs=function(K,W){if("textContent"in K)K.textContent=W;else if(K.nodeType==3)K.data=String(W);else if(K.firstChild&&K.firstChild.nodeType==3){for(;K.lastChild!=K.firstChild;)K.removeChild(K.lastChild);K.firstChild.data=String(W)}else g.QG(K),K.appendChild(ty(K).createTextNode(String(W)))}; m6Y=function(K){for(var W=new K9(K),U=-1,h=0,m=0;!h||!m;){var S=rgp(W),f=S.id;S=S.size;if(f<0)return;if(f===176){if(S!==2)return;h=W.aC()}else if(f===186){if(S!==2)return;m=W.aC()}f===374648427?U=W.aC()+S:f!==408125543&&f!==174&&f!==224&&W.skip(S)}W=Im(K,0,U);U=new DataView(W.buffer);U.setUint16(h,3840);U.setUint16(m,2160);h=new WQ([W]);HY(h,K);return h}; nS$=function(K){switch(K.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}}; bIp=function(K){this.value=K}; mH=function(K){this.iZ=qR(K)}; jx=function(K,W){var U=new Uint8Array(K.j.buffer,K.j.byteOffset+K.pos,W);K.pos+=W;return U}; eV=function(K){return K.keySystem==="com.youtube.fairplay.sbdl"}; l8R=function(K,W,U){return U.triggeringSlotId!=null&&U.triggeringSlotId===K?U.clone(W):U}; g.w8=function(K,W,U,h){K=K===void 0?{}:K;W=W===void 0?[]:W;U=U===void 0?!1:U;h=h===void 0?!1:h;W.push("ytp-menuitem");var m=K;"role"in m||(m.role="menuitem");U||(m=K,"tabindex"in m||(m.tabindex="0"));K={T:U?"a":"div",Hp:W,B:K,K:[{T:"div",Z:"ytp-menuitem-icon",bX:"{{icon}}"},{T:"div",Z:"ytp-menuitem-label",bX:"{{label}}"},{T:"div",Z:"ytp-menuitem-content",bX:"{{content}}"}]};h&&K.K.push({T:"div",Z:"ytp-menuitem-secondary-icon",bX:"{{secondaryIcon}}"});return K}; XA=function(K){var W=[],U;for(U in K)if(K.hasOwnProperty(U)){var h=U;W.push(xp(h));h=g.z(K[h]);for(var m=h.next();!m.done;m=h.next())W.push(m.value.itag)}return W.join(".")}; Nip=function(K,W){var U=W.raw_embedded_player_response;if(!U){var h=W.embedded_player_response;h&&(U=JSON.parse(h))}U&&(K.wj=U);if(K.wj){K.embeddedPlayerConfig=K.wj.embeddedPlayerConfig||null;if(U=K.wj.videoFlags)U.playableInEmbed&&(K.allowEmbed=!0),U.isPrivate&&(K.isPrivate=!0),U.userDisplayName&&(W.user_display_name=U.userDisplayName),U.userDisplayImage&&(W.user_display_image=U.userDisplayImage);if(U=K.wj.embedPreview){U=U.thumbnailPreviewRenderer;MzF(K,U.controlBgHtml);if(h=U.defaultThumbnail)K.i$= J4(h);K.L("embeds_web_enable_search_button")&&U.searchButton&&(h=g.P(U.searchButton,g.Jy))&&(K.xY=g.P(h.navigationEndpoint,g.d3));(h=g.P(U==null?void 0:U.videoDetails,gSY))&&FC_(K,W,h);h=g.P(U==null?void 0:U.videoDetails,uP$);K.XI=!!U.addToWatchLaterButton;SfC(K,U.shareButton);if(h==null?0:h.musicVideoType)K.musicVideoType=h.musicVideoType;var m,S,f,G,I;if(h=g.P((m=K.getEmbeddedPlayerResponse())==null?void 0:(S=m.embedPreview)==null?void 0:(f=S.thumbnailPreviewRenderer)==null?void 0:(G=f.playButton)== null?void 0:(I=G.buttonRenderer)==null?void 0:I.navigationEndpoint,g.fw))LsL(K,h),K.videoId=h.videoId||K.videoId;U.videoDurationSeconds&&(K.lengthSeconds=eh(U.videoDurationSeconds));U.webPlayerActionsPorting&&xnC(K,U.webPlayerActionsPorting);if(m=g.P(U==null?void 0:U.playlist,kdp)){K.Dp=!0;S=[];f=Number(m.currentIndex);if(m.contents)for(G=0,I=m.contents.length;G0&&m))return h;W=[f[0]+W].concat(g.z4(f.slice(1).map(function(G,I){return G-f[I]})),[m+U-W, m]);return W.some(function(G){return G<0})?(g.Rr(K.logger,347111855,"Neg vss scheduled pings "+f+" "+m),h):W}; JQ=function(K,W){this.info=K;this.callback=W;this.state=1;this.M7=this.Qp=!1;this.hO=null}; vi$=function(K,W){K.__closure__error__context__984382||(K.__closure__error__context__984382={});K.__closure__error__context__984382.severity=W}; vJ2=function(K){this.j=K}; Kp=function(K){var W=K.B3&&K.B3.pX();if(K.policy.n7){if((K=K.Y)==null)K=void 0;else{var U;K=(U=K.N)==null?void 0:U.info}return K||null}return W}; iUR=function(K,W){if(K=K.flags.get(""+W))if(K=K.replace(/\[ *(.*?) *\]/,"$1"))return K.split(",").map(Number);return[]}; pf=function(K,W){g.Zd(K.j,"width",W)}; Er=function(K,W){K.U||(W=new g.e0(W.state,new g.Kw),K.U=!0);return W}; jC=function(K){K.N.isFinal=!0;K.flush();K.N.isFinal=!1}; d6$=function(K,W,U){U=U===void 0?{}:U;return pyR(K,W,U)}; B8=function(K,W,U,h){(h===void 0?0:h)&&!W.tK&&(dr()||(h=W.B3)&&!h.Cj(U.info)&&K.iX.Os(),W.tK=!0);W.Wp!==U&&(W.Wp=U)}; g.DK=function(K){g.Uj.call(this);this.headers=new Map;this.hK=K||null;this.N=!1;this.j=null;this.J="";this.X=0;this.W="";this.U=this.Ns=this.jV=this.uX=!1;this.Ms=0;this.G=null;this.DA="";this.Y=!1}; po_=function(){}; oSL=function(K,W){if(W=W.content&&W.content.adFeedbackRenderer||null)K.X=new cvL(K.api,K.layoutId,K.interactionLoggingClientData,K.s5),g.k(K,K.X),K.X.init(Mq("ad-feedback-dialog"),W,K.macros),K.X.U5(K.hK),K.X.subscribe("a",function(){return K.publish("c")})}; Zke=function(K){return K.G&&j5(K).size>0}; H8=function(K,W,U){for(var h=[],m=[],S=0;SU||(h.push(Math.max(W,K.start(S))-W),m.push(Math.min(U,K.end(S))-W));return hy(h,m)}; Z8z=function(K,W){var U=Math.max(K,W);K=Math.min(K,W);W=On[0];for(var h=0;h=Math.floor(S*16/9)*1.3||K>=S*1.3)return W;W=m}return"tiny"}; g.nO=function(K,W){this.type=K;this.currentTarget=this.target=W;this.defaultPrevented=this.X=!1}; lde=function(K,W){a:{K=K.Z$;var U,h=(U=g.P(W,b8e))==null?void 0:U.signal;if(h&&K.WF&&(U=K.WF[h])){var m=U();break a}var S;if((U=(S=g.P(W,sOD))==null?void 0:S.request)&&K.Cz&&(S=K.Cz[U])){m=S();break a}for(m in W)if(K.IB[m]&&(W=K.IB[m])){m=W();break a}m=void 0}if(m!==void 0)return Promise.resolve(m)}; kB=function(K,W){var U=K.E5(),h=U.getPlayerType();if(h!==2||K.Wo()){if(h===2&&K.Wo()||h===5||h===6||h===7)if(W===-1||W===0||W===5)return;if(W===0){if(K.Uz)return;if(U.q3()&&g.PJ(K.C)){K.playVideo();return}}K.EZ!==W&&(K.EZ=W,K.Yx.Bd("onStateChange",W))}else K.Bm!==W&&(K.Bm=W,K.Yx.Bd("onAdStateChange",W))}; vI=function(K){g.p.call(this);this.j=K;this.l5=!0;this.Lg=new Map}; W7p=function(K){var W=K.experiments,U=W.Rk.bind(W);V3C=U("html5_use_async_stopVideo");Xoe=U("html5_pause_for_async_stopVideo");vSR=U("html5_not_reset_media_source");U("html5_listen_for_audio_output_changed")&&(p_$=!0);qJC=U("html5_not_reset_media_source");xOF=U("html5_not_reset_media_source");jA=U("html5_retain_source_buffer_appends_for_debugging");zjz(U("web_watch_pip")||U("web_shorts_pip"));Y32(U("log_foreground_not_focused_as_background"));CKp(U("web_player_pip_logging_fix"));U("html5_mediastream_applies_timestamp_offset")&& (Kc=!0);var h=g.jV(W,"html5_cobalt_override_quic");h&&Uh("QUIC",+(h>0));K.G9()&&lGY();Error.stackTraceLimit=50;var m=g.jV(W,"html5_idle_rate_limit_ms");m&&Object.defineProperty(window,"requestIdleCallback",{value:function(S){return window.setTimeout(S,m)}}); Q$C(K.U);LCY(U("html5_use_ump_request_slicer"));Ow$(U("html5_record_now"));U("html5_disable_streaming_xhr")&&(up=!1);U("html5_byterate_constraints")&&(HD=!0);U("html5_use_non_active_broadcast_for_post_live")&&(LM=!0);U("html5_enable_encrypted_av1")&&(MH=!0);K7_(g.jV(K.experiments,"html5_sticky_duration_mos"))}; iE2=function(K){var W,U=(W=Sp(K.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!U)return null;W=Sp(K.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var h=K.layoutId,m=Sp(K.clientMetadata,"metadata_type_content_cpn"),S=Sp(K.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=Sp(K.clientMetadata,"metadata_type_player_underlay_renderer"),G=Sp(K.clientMetadata,"metadata_type_ad_placement_config"),I=Sp(K.clientMetadata,"metadata_type_video_length_seconds"); var d=UC(K.clientMetadata,"metadata_type_layout_enter_ms")&&UC(K.clientMetadata,"metadata_type_layout_exit_ms")?(Sp(K.clientMetadata,"metadata_type_layout_exit_ms")-Sp(K.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Ew:h,contentCpn:m,tT:U,Xj:W,instreamAdPlayerOverlayRenderer:S,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:G,videoLengthSeconds:I,TE:d,inPlayerLayoutId:Sp(K.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Sp(K.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Fs=function(){var K=oHs();return!(!K||K==="visible")}; wVs=function(K,W){if(K.j){W=Math.floor(W*.4);W=Math.max(W,47);var U=W+2;if(K.N!==U){K.N=U;K.X.height=U;K.j.clearRect(0,0,1,U);var h=K.j.createLinearGradient(0,2,0,2+W),m=W-42;h.addColorStop(0,"rgba(0, 0, 0, 0)");h.addColorStop(m/W,"rgba(0, 0, 0, 0.3)");h.addColorStop(1,"rgba(0, 0, 0, 0.68)");K.j.fillStyle=h;K.j.fillRect(0,2,1,W);K.element.style.height=U+"px";try{K.element.style.backgroundImage="url("+K.X.toDataURL()+")"}catch(S){}}}}; M_=function(){if(!r3&&!g.iC){if(Tw)return Tw;var K;Tw=(K=window.crypto)==null?void 0:K.subtle;var W,U,h;if(((W=Tw)==null?0:W.importKey)&&((U=Tw)==null?0:U.sign)&&((h=Tw)==null?0:h.encrypt))return Tw;Tw=void 0}}; am=function(K){this.iZ=qR(K)}; SZY=function(K,W){try{return xk(K[W]),!0}catch(U){}return!1}; g.lk=function(K){if(!K.length)return"";try{if(Wv)return Wv.decode(K);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(K)}catch(f){}for(var W=0,U=[],h=K.length;W>10;S=56320|S&1023}w3[m++]=S}}S=String.fromCharCode.apply(String,w3); m<1024&&(S=S.substring(0,m));U.push(S)}return U.join("")}; VWs=function(K,W){W=K.j&&!W;return K.Vs||W?new g.DK(new g.jW({Ofe:K.Vs,Ab:W})):new g.DK}; UTY=function(K){this.value=K}; CQ2=function(K,W){K.J7(W.width>=350)}; fp=function(K,W){rk(K.j,S7,1,W);v1(W,1)||vFD(W);K.JR||(W=H_(K),n6(W,5)||Ya(W,5,K.locale));K.uach&&(W=H_(K),W_(W,TR,9)||rk(W,TR,9,K.uach))}; hU_=function(K,W){jD(K,"impression")&&K.jz(W?"fullscreen":"end_fullscreen")}; joF=function(K,W){K.qy("ismp_p");K.X=W}; Qt=function(K,W,U,h,m,S){S=S===void 0?function(){}:S; vh.call(this,K,{T:"div",Z:"ytp-ad-survey-answer"},"survey-answer",W,U,h);this.index=m;this.onSelected=S;this.j=null;this.toggledLoggingParams="";this.answer=this.yH("ytp-ad-survey-answer");this.hide()}; $h=function(K,W){g.y.call(this,{T:"button",Hp:["ytp-button","ytp-jump-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},K:[W>0?{T:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{T:"path",Hp:["ytp-circle-arrow","ytp-svg-fill"],B:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {T:"text",Hp:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"7.05",y:"15.05"}}]}:{T:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{T:"path",Hp:["ytp-circle-arrow","ytp-svg-fill"],B:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {T:"text",Hp:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"6.5",y:"15"}}]}]});var U=this;this.D=K;this.j=W;this.X=new g.QC(function(){U.N?(U.N=!1,U.X.start()):U.element.classList.remove("ytp-jump-spin","backwards")},250); this.N=!1;(W=W>0)?this.D.createClientVe(this.element,this,36843):this.D.createClientVe(this.element,this,36844);var h=g.BB(W?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.D.L("player_tooltip_data_title_killswitch")?this.update({title:h,"data-title-no-tooltip":h,"aria-keyshortcuts":W?"\u2192":"\u2190"}):this.update({"tooltip-title":h,"data-title-no-tooltip":h,"aria-keyshortcuts":W?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text"); this.W.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);Yb(K,this.element,this)}; Zf=function(){var K;return(K=oT())!=null?K:g.TA("RAW_HOT_CONFIG_GROUP")}; fMz=function(K,W){K.playbackData=W;K.videoData.isLivePlayback&&(K.J=new mT2(function(){a:{if(K.playbackData&&K.playbackData.j.j){if(tc(K.videoData)&&K.loader){var h=K.loader.KV.xv()||0;break a}if(K.videoData.j){h=K.videoData.j.hK;break a}}h=0}return h}),K.j=new fu(K.videoData,K.C.experiments,function(){return K.jj(!0)})); if(mg(K.iX)){var U;(U=K.videoData.Q6)!=null&&U.vt||(W=SgC(K),W.Fv?(HT(K.videoData)&&K.hZ(W.Fv,W.startSeconds),K.N=W.startSeconds):W.startSeconds>0&&K.seekTo(W.startSeconds,{JS:"seektimeline_startPlayback",seekSource:15}));K.jV=!1}else fN(K)||(K.N=K.N||K.videoData.startSeconds||0,K.videoData.isLivePlayback||(W=K.iX.videoData.jj(),K.N>W&&(K.L("html5_sabr_log_invalid_sabr_current_time")&&K.iX.rk("invalidSabrCmtStart",{rt:K.N,mst:W}),K.L("html5_sabr_vod_invalid_start_time_fallback")&&(K.N=0))))}; jE=function(K,W,U,h,m,S,f,G){g.p.call(this);var I=this;this.X=K;this.N=W;this.K5=h;this.dk=m;this.Xx=S;this.zm=f;this.TK=G;this.j=null;U.get().addListener(this);this.addOnDisposeCallback(function(){U.qs()||U.get().removeListener(I)}); h.get().addListener(this);this.addOnDisposeCallback(function(){h.qs()||h.get().removeListener(I)})}; lVY=function(K,W){var U=W.bgp&&W.bgub,h=!!W.upb;W.siub&&W.scs&&(U||h)&&(h&&AC(K.Xx.get(),"html5_export_sodar_snapshot")&&i5L(function(m){var S;return g.r(function(f){if(f.j==1)return g.T(f,lx(),2);S=f.X;return f.return(S.snapshot(m))})}),RCp(W.siub,W.scs,W.bgub,W.bgp,W.upb))}; g.Yq=function(K,W){return EA2(K,W)}; VN=function(K,W){var U={Wl:[],Sv:[]},h;if((K=K.Y)==null)K=void 0;else{WGF(K,K.Wl,"og");f4C(K,W);WGF(K,K.Wl,"trim");var m=IWz(K);W=m.Wl;m=m.tC;for(var S=[],f=0;f0){var E=gH(e,I);E>=0&&(J=(e.end(E)-I+.1)*1E3)}S.push({formatId:g.cT(G.info.Wp.info,K.Gm.mK), Uj:G.info.Uj,sequenceNumber:G.info.kx+K.W,R0:d,n8:G.info.X,NC:J})}K={Wl:W,Sv:S}}return(h=K)!=null?h:U}; G5L=function(K,W,U,h,m){var S=U.OF;var f=U.Vv;var G=K.player.V().N$,I=0;U.cueProcessedMs&&f&&!S&&(U=f.end-f.start,U>0&&(I=Math.floor(U/1E3)));var d={AD_BLOCK:m,AD_BREAK_LENGTH:S?S.k$:I,AUTONAV_STATE:IK(K.player.V()),CA_TYPE:"image",CPN:K.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:K.player.dX()*1E3,LACT:A3(),LIVE_INDEX:S?K.N++:1,LIVE_TARGETING_CONTEXT:S&&S.context?S.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:K.player.getVisibilityState(), P_H:K.player.xx().Us().height,P_W:K.player.xx().Us().width,YT_REMOTE:G?G.join(","):""},J=tv(tmD);Object.keys(J).forEach(function(e){J[e]!=null&&(d[e.toUpperCase()]=J[e].toString())}); h!==""&&(d.BISCOTTI_ID=h);h={};ei(W)&&(h.sts="20376",(K=K.player.V().forcedExperiments)&&(h.forced_experiments=K));return gw(g.eK(W,d),h)}; R7p=function(K,W,U){var h=K.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],m=K.policy.playbackStartPolicy.startMinReadaheadPolicy||[];K=Infinity;W=g.z(W&&h.length>0?h:m);for(h=W.next();!h.done;h=W.next())h=h.value,m=h.minReadaheadMs||0,U<(h.minBandwidthBytesPerSec||0)||K>m&&(K=m);return KU;m++)U=U*256+Ej(K),h*=128;return W?U-h:U}; Qn=function(K,W,U){K=""+K+(W>49?"p60":W>32?"p48":"");W=H3()[K];if(W!=null&&W>0)return W;W=Cn.get(K);if(W!=null&&W>0)return W;U=U==null?void 0:U.get(K);return U!=null&&U>0?U:8192}; GTp=function(K,W){Ns(K.G,function(U){return U.W==W.W})||K.G.push(W)}; pNR=function(K,W,U,h){function m(){K.qs()||U.call(K)} function S(){K.qs()||h.call(K)} for(var f=g.K4("SCRIPT"),G=!1,I,d=0;d0?void 0:K===0?wdz||(wdz=[0,void 0]):[-K,void 0];case "string":return[0,K];case "object":return K}}; $Te=function(K,W){K.policy.Y&&K.loader.rk("sabrcrq",{create:1});return Kxp(K,new nu(0,K.Gm.jV,K),W)}; g3=function(K){if(K.j){var W=K.j.getAttribute("data-tooltip-text");if(K.N&&K.j.getAttribute("aria-label")!==K.N)var U=K.N;var h=K.j.getAttribute("aria-keyshortcuts"),m=K.j.getAttribute("data-title-no-tooltip");h&&m&&(U=g.BB("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:m,SHORTCUT_KEY:h}));U&&K.j.setAttribute("aria-label",U);if(W&&!K.Y){I9C(K,!0);var S=K.j;K.updateValue("text",W);U=S.getAttribute("data-duration");K.update({title:K.N,duration:U});S=S.getAttribute("data-preview");K.env.L("delhi_modern_web_player")? (K.updateValue("title",m),K.updateValue("keyBoardShortcutTitle",h.toUpperCase())):I9C(K,!1);h=243*K.scale;m=141*K.scale;K.bg.style.width=h+"px";K.bg.style.height=m+"px";K.bg.style.backgroundImage=S?"url("+S+")":"";K.bg.style.backgroundSize=h+"px "+m+"px";K.wrapper.style.width=h+"px";g.oh(K.element,["ytp-text-detail","ytp-preview"]);g.JM(K.element,"ytp-has-duration",!!U)}else m&&h&&K.env.L("delhi_modern_web_player")?(K.updateValue("text",m),K.updateValue("keyBoardShortcut",h.toUpperCase())):K.updateValue("text", K.N),g.Jj(K.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);U=K.j;U.hasAttribute("data-tooltip-offset-y")?(U=Number(U.getAttribute("data-tooltip-offset-y")),U=isNaN(U)?0:U):U=0;vWz(K,!!W,void 0,U)}}; YgC=function(K){return K.Xq0)if(U.info.kx===K.W.kx&&U.info.j=0&&K.W.kx>=0&&!lt(K.W,U.info))throw new g.EB("improper_continuation",K.W.m6(),U.info.m6());c3L(K.W,U.info)||l8(K,"d")}else if(U.info.j>0)throw new g.EB("continuation_of_null",U.info.m6());K.W=U.info;K.Wp=U.info.Wp;if(U.info.j===0){if(K.j)if(!K.loader.isOffline()||K.policy.CK)K.loader.rk("slice_not_fully_processed", {buffered:K.j.info.m6(),push:U.info.m6()});else throw new g.EB("slice_not_fully_processed",K.j.info.m6(),U.info.m6());D2(K);K.eV=h}else{if(K.eV&&h&&K.eV!==h)throw K=new g.EB("lmt_mismatch",U.info.kx,K.eV,h),K.level="WARNING",K;!U.info.Wp.LK()&&K.U&&(h=U.info,m=K.U.Vn,h.G="updateWithEmsg",h.kx=m)}if(K.j){h=g.Hb(K.j,U);if(!h)throw new g.EB("failed_to_merge",K.j.info.m6(),U.info.m6());K.j=h}else K.j=U;a:{U=g.Yv(K.j.info.Wp.info);if(K.j.info.type!==3){if(!K.j.info.N)break a;K.j.info.type===6?WQz(K,W, K.j):xX2(K,K.j);K.j=null}for(;K.j;){h=K.j.X.totalLength;if(K.uX<=0&&K.J===0){var S=K.j.X,f=-1;m=-1;if(U){for(var G=0;G+80))break;if(e!==408125543)if(e===524531317)G=!0,J>=0&&(m=S.aC()+J,I=!0);else{if(G&&(e===160||e===163)&&(f<0&&(f=d),I))break;e===163&&(f=Math.max(0,f),m=S.aC()+J);if(e===160){f<0&&(m=f= S.aC()+J);break}S.skip(J)}}f<0&&(m=-1)}if(f<0)break;K.uX=f;K.J=m-f}if(K.uX>h)break;K.uX?(h=d4L(K,K.uX),h.U&&svC(K,h),WQz(K,W,h),rj(K,h),K.uX=0):K.J&&(h=d4L(K,K.J<0?Infinity:K.J),K.J-=h.X.totalLength,rj(K,h))}}K.j&&K.j.info.N&&(rj(K,K.j),K.j=null)}; Tvs=function(K,W){K.Y.push(W);g.k(K,W);W.U5(K.TI,K.TI.children.length)}; Hr=function(K){return K}; usp=function(K){K.X.length?K.j=g.Z$(g.Z$(K.X).info.Ce):K.N.X.length?K.j=K.N.Hg().info:K.j=Kp(K)}; ttY=function(K,W){for(var U="",h=[],m=g.z(K.j.entries()),S=m.next();!S.done;S=m.next()){var f=g.z(S.value);S=f.next().value;f=f.next().value;var G=void 0,I=void 0,d=void 0;((G=f)==null?void 0:G.startTimeSecs)<=W&&W<=((I=f)==null?void 0:I.startTimeSecs)+((d=f)==null?void 0:d.k$)&&h.push(S);I=G=void 0;U+=S+":"+((G=f)==null?void 0:G.startTimeSecs.toFixed(3))+":"+((I=f)==null?void 0:I.k$.toFixed(3))+";"}h.length===0&&K.rk("clsdai",{no_cid:1,mt:W.toFixed(3),adConfigMap:U.substring(0,1024)});return h}; CxD=function(K){var W;(W=!K)||(W=K.adSlotMetadata,W=!((W==null?void 0:W.slotId)!==void 0&&(W==null?void 0:W.slotType)!==void 0));if(W||!(hi$(K)||K.slotEntryTrigger&&K.slotFulfillmentTriggers&&K.slotExpirationTriggers))return!1;var U;K=(U=K.fulfillmentContent)==null?void 0:U.fulfilledLayout;return(U=g.P(K,SK))?fg(U):(U=g.P(K,Wy))?YVp(U):(U=g.P(K,HMR))?rap(U):(U=g.P(K,$wC))?Y42(U):(U=g.P(K,Okp))?Kf(U.adLayoutMetadata)?g.P(U.renderingContent,qo)?!0:!1:!1:(U=g.P(K,FY))?Hz(U):(K=g.P(K,wus))?Kf(K.adLayoutMetadata)? g.P(K.renderingContent,Gb)?!0:!1:!1:!1}; JF=function(K,W,U,h,m,S,f){qv.call(this,K,S,f,W,U,h,m);this.playerProgressOffsetMs=0;this.X=!1}; k5s=function(K,W,U){isNaN(U)||(K.Ns+=U);isNaN(W)||(K.vp+=W)}; iHF=function(K,W){if(W.authorizedFormats)for(var U=0;U=m.W?(m.rk("sdai",{haltrq:S+1,est:m.W}),h=!1):h=m.X!==2;if(!h||!Rq(W.j?W.j.Wp.T9:W.Wp.T9,K.policy,K.W,K.loader.Xq)||K.loader.isSuspended&&(!z3R(K.schedule)||K.loader.HE))return!1;if(K.policy.W&&AM>=5)return g.yG(K.loader.AG),!1;if(K.Gm.isManifestless){if(W.X.length>0&&W.j&&W.j.kx===-1||W.X.length>=K.policy.El||!K.policy.Qq&&W.X.length>0&&!K.policy.J.vN)return!1;if(W.G)return!K.Gm.isLive|| !isNaN(K.U4)}if(ATs(W))return!1;if(!W.j){if(!W.Wp.LC())return!1;gP(W,K.loader.getCurrentTime())}if(OB(W)&&(W.Hg()!==OB(W)||K.loader.isSuspended))return!1;m=(h=K.policy.Nz)&&!W.X.length&&CU(W,!0)=K.policy.vF)return!1;h=W.j;if(!h)return!0;h.type===4&&h.Wp.LC()&&(W.j=g.Z$(h.Wp.nx(h)),h=W.j);if(!h.xM()&&!h.Wp.R1(h))return!1;S=K.Gm.tv||K.Gm.W;if(K.Gm.isManifestless&& S){S=W.Wp.index.Rn();var f=U.Wp.index.Rn();S=Math.min(S,f);if(W.Wp.index.Aq()>0&&S>0&&h.kx>=S)return W.DA=S,U.DA=S,!1}if(h.Wp.info.audio&&h.type===4||h.xM())return!1;S=!W.W&&!U.W;if(m=!m)m=h.U,m=!!(U.j&&!lp(U.j)&&U.j.Ui_e(K,W)?(i_e(K,W),!1):(K=W.B3)&&K.isLocked()?!1:!0}; lJC=function(K){if(En){for(var W=g.z(En),U=W.next();!U.done;U=W.next())U=U.value,U.payload&&(U.payload.csn=K.csn,g.N_(U.payloadName,U.payload,U.options));En.length=0}XZs=0}; AAp=function(K){K.isChecked=K.isChecked;K.yH("ytp-autonav-toggle-button").setAttribute("aria-checked",String(K.isChecked));var W=K.isChecked?"Autoplay is on":"Autoplay is off";K.D.V().L("player_tooltip_data_title_killswitch")?K.update({title:W,label:W}):K.update({"data-tooltip-title":W,label:W});K.D.T8()}; A9p=function(K){this.triggerId=K;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; RUF=function(K,W){return K.Tm.L("html5_use_network_error_code_enums")&&W.details.rc===403||W.details.rc==="403"?(K=W.errorCode,K==="net.badstatus"||K==="manifest.net.retryexhausted"):!1}; SLC=function(K,W,U){this.bY=K;this.zm=W;this.j=U}; hD=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;var h=K.uX.get(U.triggerId);h&&(h.Xp(U),K.uX.delete(U.triggerId))}}; e$s=function(K,W,U,h){var m=W*2,S=U*2;return K[m]K.Ms);g.JM(K.A3,"ytp-scrubber-button-hover",U===h&&K.j.length>1);if(K.api.L("web_player_heat_map_played_bar")){var S;(S=K.W[0])!=null&&S.j.setAttribute("width",(W.X*100).toFixed(2)+"%")}}}; uD=function(){}; pdY=function(K,W){return Math.max(0,K.Ce[0].W-W)}; ng=function(K,W){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=W||K(this.triggerType)}; Oce=function(K){if(!g.hc("universal_csi_network_ticks"))return"";K=Mj(K)||"";for(var W=Object.keys(o5Y),U=0;U1080&&!K.pV&&(K.vp=36700160,K.gk=5242880,K.Bp=Math.max(4194304,K.Bp),K.pV=!0);W.video.qualityOrdinal>2160&&!K.bx&&(K.vp=104857600,K.j0=13107200,K.bx=!0);g.jV(K.Tm.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?W.isEncrypted()&&g.Km()&&g.PP("samsung")&&(g.PP("kant")||g.PP("muse"))&&(K.j0=g.jV(K.Tm.experiments,"html5_samsung_kant_limit_max_bitrate")):W.isEncrypted()&&g.Km()&&g.PP("kant")&&(K.j0=1310720);K.dB!==0&&W.isEncrypted()&& (K.j0=K.dB);K.Pz!==0&&W.isEncrypted()&&U&&(K.j0=K.Pz);W.j0&&(K.UK=Math.max(K.il,Math.min(K.Bp,5*W.j0)))}; g.m7=function(K){return!!K.j&&bV_(K.j)}; soe=function(K){if(!(K.length<=28))for(var W=(0,g.gW)([60,0,75,0,73,0,68,0,62,0]),U=28;U0&&ru(W.videoData.bl)&&(K=U.S4,W.videoData.bl=new ZO(0,K,!1,"u"));return W.videoData.bl}; g.GW=function(K){g.y.call(this,K);this.Pp=new g.GP;g.k(this,this.Pp)}; Ems=function(K,W){(0,g.tD)(W.j,function(U){K.add(U.X,U.j,Y6C(U))})}; g.BB=function(K,W){for(var U=g.z(Object.keys(W)),h=U.next(),m={};!h.done;m={placeholder:void 0},h=U.next())h=h.value,m.placeholder=W[h],K=K.replace(new RegExp("\\$"+h,"gi"),function(S){return function(){return S.placeholder}}(m)); return K}; A7=function(K){Pm.call(this);var W=this;this.logger=K;this.xd={DVs:function(){return W.logger}, wW:function(){return W.logger.xd.wW()}}; this.addOnDisposeCallback(function(){return void W.logger.dispose()})}; qgY=function(K){return K.name==="TypeError"&&K.stack.includes("/s/player/")&&um()<=105}; xT$=function(K){for(;K.j.length&&K.j[0].k6(K.G7());){var W=K.j.shift();nr2(K,W)}K.j.length&&nr2(K,K.j[0])}; Cfz=function(K){K.U&&K.eV.element.removeChild(K.U.element);K.U=void 0}; ti=function(K,W,U,h,m){if(K==null)return"";W=W||"&";U=U||",$";typeof U==="string"&&(U=U.split(""));if(K instanceof Array){if(h||(h=0),h=U?(globalThis.sessionStorage.removeItem(K),["e"]):["a",new Uint8Array(h.buffer,W+4)]}; TR=function(K){this.iZ=qR(K)}; iTs=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B){for(var D=0,a="",Q=g.z(K),u=Q.next();!u.done;u=Q.next())u=u.value,a||(a=u.itag),u.audioChannels&&u.audioChannels>D&&(D=u.audioChannels,a=u.itag);m=new GT(m,"application/x-mpegURL",{audio:new fJ(0,D),video:new t0(S,f,G,null,void 0,d,void 0,void 0,E),zL:e,Lh:a});K=new Rop(K,W,U?[U]:[],h,!!B);K.W=J?J:1369843;return new kc(m,K,I)}; SnC=function(K){typeof K.X.IP.AFMA_LIDAR==="string"?(K.Ns=!0,lc$(K)):(K.X.compatibility=3,K.Y="nc",K.fail("w"))}; G4p=function(K,W){K.Ns||(K.loader?isFinite(K.X)?K.Ns=K.loader.seek(K.X-K.timestampOffset,W):(f5(K.videoData),K.L("html5_unified_live_latency_reporting")&&(K.iX.P7=0),K.Ns=CV(K.loader),fpF(K.videoData)||(K.X=K.loader.getCurrentTime()+K.timestampOffset)):K.Ns=g.EC(K.X-K.timestampOffset));return K.Ns}; NN=function(K){g.GP.call(this);this.j=null;this.N=new J3;this.j=null;this.G=new Set;this.crossOrigin=K||""}; t9L=function(K){var W="",U=ORp(K);U.indexOf("//")===0&&(U=K.C.protocol+":"+U);var h=U.lastIndexOf("/base.js");h!==-1&&(W=U.substring(0,h+1));if(U=Error().stack)if(U=U.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))U=U[1],U.includes(W)||g.eI(Error("Player module URL mismatch: "+(U+" vs "+W+".")));W=new R8(K.Yx,W);U={};FDe(W,(U.destroyed=function(){K.onApiChange()},U)); return W}; QW=function(K){jf.call(this,K);var W=this;this.j=null;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"applicationvideodatachange",function(){W.zs()})}; p1=function(K){return g.TA("EXPERIMENT_FLAGS",{})[K]}; GLR=function(K,W,U,h,m,S,f,G,I,d,J){P2.call(this,K,W,U,h,m,S,f,G,I,d);this.N=J;this.X=this.j=null;K=g.z(this.N);for(W=K.next();!W.done;W=K.next())W=W.value,UC(W.VH().clientMetadata,"metadata_type_survey_overlay")&&(this.X=W.VH().layoutId)}; g.Rm=function(K){var W=["ytp-cued-thumbnail-overlay"];K.V().G&&W.push("ytp-exp-contain-thumbnail");g.y.call(this,{T:"div",Hp:W,K:[{T:"div",Z:"ytp-cued-thumbnail-overlay-image"}]});W=this.yH("ytp-cued-thumbnail-overlay");var U=new g.AS(K);g.k(this,U);U.U5(W);this.X=new g.Te(this);g.k(this,this.X);this.api=K;this.W=this.yH("ytp-cued-thumbnail-overlay-image");this.N=U;this.fade=new g.Wr(this,250);g.k(this,this.fade);this.j=new g.QC(this.SV,0,this);g.k(this,this.j);this.SV();this.S(K,"appresize",this.IW); this.S(K,"presentingplayerstatechange",this.onStateChange);this.S(K,"ypcStateChanged",this.nvx);UJ(K.V())&&this.S(K,"videoplayerreset",this.onReset)}; pA=function(K,W,U,h,m,S,f){this.j=K;this.X=W;this.uB=U;this.Xx=h;this.zm=m;this.dk=S;this.TK=f}; Ip2=function(K){var W;return g.r(function(U){if(K.qs())throw Error("Already disposed");(W=K.j)!=null&&(W.endTimeMs=0,W.uF(1));return g.T(U,K.N.promise,0)})}; g.Vs=function(K,W,U,h){var m=K.currentTarget;if((U===void 0||!U)&&g.oZ(K))return K.preventDefault(),!0;W.pauseVideo();K=m.getAttribute("href");g.Zo(K,h,!0);return!1}; JEe=function(K){var W=W===void 0?!1:W;return NX(AD(K,dbp),K,W,"Trusted Promoted Video Domain URL")}; ecC=function(K){(K=K.Pd())&&K.Cp()}; EkR=function(K,W){W?K.J||(K.element.removeAttribute("aria-disabled"),K.J=new g.sR(K.progressBar,!0),K.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&K.J.subscribe("hoverstart",K.y9e,K),K.J.subscribe("hovermove",K.Tmk,K),K.J.subscribe("hoverend",K.WGK,K),K.J.subscribe("dragstart",K.Nme,K),K.J.subscribe("dragmove",K.aE5,K),K.J.subscribe("dragend",K.Ocm,K),K.api&&K.api.L("delhi_modern_web_player")&&K.api.L("delhi_modern_web_player_cutout")&&(K.M9=new g.sR(K.progressBar, !0),K.M9.subscribe("hoverstart",function(){K.rS=!0;QUs(K)},K),K.M9.subscribe("hoverend",function(){K.rS=!1; QUs(K)},K)),K.N$=K.listen("keydown",K.RD)):K.J&&(K.element.setAttribute("aria-disabled","true"),K.GK(K.N$),K.J.cancel(),K.J.dispose(),K.J=null)}; TM2=function(K,W,U,h,m,S,f,G,I,d,J,e){if((e==null?void 0:e.Wv)===void 0||(e==null?void 0:e.y3)===void 0)return new v("Cached ad break range from cue point is missing");var E=KD(U,m,h.JW);if(E instanceof v)return E;E={layoutExitMuteTriggers:[],layoutExitNormalTriggers:E.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.P(U.renderingContent,iY))return K=yuF(K,W,U,E,m,S,G,I,h.JW,f,e.Wv,e.y3),K instanceof v?K:K.Jv===void 0? new v("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:K.layout,A9:[K.Jv]};var B=g.P(U.renderingContent,GJ);if(B){if(!Kf(U.adLayoutMetadata))return new v("Invalid ad layout metadata");if(!t5(B))return new v("Invalid sequential layout");B=B.sequentialLayouts.map(function(D){return D.playerBytesAdLayoutRenderer}); K=wo$(K,W,U,E,B,m,h,S,f,I,G,d,e.Wv,e.y3,J);return K instanceof v?K:{layout:K.RB,A9:K.A9}}return new v("Not able to convert a sequential layout")}; BLs=function(){return g.r(function(K){return g.T(K,WMs("ytGcfConfig"),0)})}; kjD=function(){this.W=this.N=this.j=this.timedOut=this.started=this.U=this.X=0}; v4s=function(K){jf.call(this,K);var W=this;fZ(this.api,"getAudioTrackState",function(){return W.api.dQ(0)})}; F5=function(K,W,U){g.p.call(this);this.D=K;this.ZA=W;this.Xx=U;this.listeners=[];this.PT=[];this.j=function(){UF("Called 'doUnlockPreroll' before it's initialized.")}; W=new jg(this);U=new g.Te(this);g.k(this,U);g.k(this,W);W.S(K,"progresssync",this.dbr);W.S(K,"presentingplayerstatechange",this.fXx);W.S(K,"fullscreentoggled",this.onFullscreenToggled);W.S(K,"onVolumeChange",this.onVolumeChange);W.S(K,"minimized",this.z8);W.S(K,"overlayvisibilitychange",this.r_);W.S(K,"shortsadswipe",this.bK);W.S(K,"resize",this.IW);U.S(K,g.$w("appad"),this.j$)}; Yj=function(){}; F5F=function(){var K=K===void 0?window.location.href:K;if(g.hc("kevlar_disable_theme_param"))return null;var W=Mj(K);if(g.hc("enable_dark_theme_only_on_shorts")&&W!=null&&W.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var U=g.BO(K).theme;return DbC.get(U)||null}catch(h){}return null}; $o=function(){return""}; Hop=function(K,W){for(var U={},h=0;h0&&(m.j=Math.min(m.j+f,10),m.X=S);m.j>0?(m.j--,m=!0):m=!1;if(m)typeof h==="function"&&(h=h()),console.log("plyr."+W,h);else{var G;h=((G=YnD.get(W))!=null?G:0)+1;YnD.set(W,h);h%100===1&&console.warn("plyr","plyr."+W+" is chatty, dropping logs.")}}}; cE$=function(K,W,U){var h,m;return g.r(function(S){if(S.j==1){h=M_();if(!h)return S.return(iC$(K,W,U));g.Bj(S,3);return g.T(S,Oo2(K,W,U,h),5)}if(S.j!=3)return S.return(S.X);m=g.SV(S);g.eI(m);r3=!0;return S.return(iC$(K,W,U))})}; Jw_=function(K){this.eD=K;this.X=!1;this.j=[]}; jrC=function(K){if(K.RS!==void 0){var W=we;we=!0;try{for(var U=K.RS;U!==void 0;U=U.zi){var h=U.Yp;h.BM||(K=void 0,h.BM=!0,jrC(h),(K=h.SW)==null||K.call(h,h))}}finally{we=W}}}; Ud2=function(K){var W=pd();W||(W=new Map);K=g.z(K);for(var U=K.next();!U.done;U=K.next())U=U.value,W.set(U.settingItemId,U.settingOptionValue);W=JSON.stringify(Object.fromEntries(W));g.SI("yt-player-user-settings",W,2592E3)}; nk$=function(K,W){var U=K.G[W.sessionId];!U&&K.W&&(U=K.W,K.W=null,U.sessionId=W.sessionId,K.G[W.sessionId]=U);return U}; jf=function(K){g.p.call(this);this.api=K}; s1=function(K,W,U){K=dip(K,W===void 0?0:W,U===void 0?-1:U);return new Uint8Array(K.buffer,K.byteOffset,K.byteLength)}; QuC=function(K){return(K===void 0?0:K)&&g.hc("vss_through_gel_video_stats")?"video_stats":"log_event"}; I_=function(K,W){K.j[W.info.id]=W;K.N.set(IZ(W,K.mK),W)}; gkD=function(K,W,U){function h(){var S=m.endTimeMs-Date.now();S<=U?m.uF(0):setTimeout(h,Math.min(S,W))} var m=this;this.endTimeMs=Date.now()+K;this.promise=new Promise(function(S){m.uF=S}); h()}; Fh_=function(K){var W=g.$K("html5-video-player");W&&g.JM(W,"ytp-ad-display-override",K)}; utC=function(){var K=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; kL2=function(K,W){var U=BW(),h=K.V();U={T:"div",Z:"ytp-share-panel",B:{id:BW(),role:"dialog","aria-labelledby":U},K:[{T:"div",Z:"ytp-share-panel-inner-content",K:[{T:"div",Z:"ytp-share-panel-title",B:{id:U},bX:"Share"},{T:"a",Hp:["ytp-share-panel-link","ytp-no-contextmenu"],B:{href:"{{link}}",target:h.jV,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},bX:"{{linkText}}"},{T:"label",Z:"ytp-share-panel-include-playlist",K:[{T:"input",Z:"ytp-share-panel-include-playlist-checkbox",B:{type:"checkbox", checked:"true"}},"Include playlist"]},{T:"div",Z:"ytp-share-panel-loading-spinner",K:[oC()]},{T:"div",Z:"ytp-share-panel-service-buttons",bX:"{{buttons}}"},{T:"div",Z:"ytp-share-panel-error",bX:"An error occurred while retrieving sharing information. Please try again later."}]},{T:"button",Hp:["ytp-share-panel-close","ytp-button"],B:{title:"Close"},K:[g.LD()]}]};g.Ih.call(this,K,U,250);var m=this;this.moreButton=null;this.api=K;this.tooltip=W.Fd();this.X=[];this.W=this.yH("ytp-share-panel-inner-content"); this.closeButton=this.yH("ytp-share-panel-close");this.S(this.closeButton,"click",this.z9);this.addOnDisposeCallback(g.tk(this.tooltip,this.closeButton));this.N=this.yH("ytp-share-panel-include-playlist-checkbox");this.S(this.N,"click",this.SV);this.j=this.yH("ytp-share-panel-link");this.addOnDisposeCallback(g.tk(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.S(this.j,"click",function(S){S.preventDefault();m.api.logClick(m.j);var f=m.api.getVideoUrl(!0,!0,!1,!1);f=lfC(m,f); g.sf(f,m.api,S)&&m.api.Fx("SHARE_CLICKED")}); this.listen("click",this.Fr);this.S(K,"videoplayerreset",this.hide);this.S(K,"fullscreentoggled",this.onFullscreenToggled);this.S(K,"onLoopRangeChange",this.BHx);this.hide()}; SwL=function(K,W,U){var h=K.j.get(W);h?(h.push(U),g.OM(h,function(m,S){return m.Ua-S.Ua})):K.j.set(W,[U])}; yP=function(K,W,U){if(typeof K==="string")return{videoId:K,startSeconds:W,suggestedQuality:U};W={};U=g.z(ioD);for(var h=U.next();!h.done;h=U.next())h=h.value,K[h]&&(W[h]=K[h]);if(K=K.embedConfig||K.embed_config)if(typeof K==="string")W.embed_config=K;else if(g.SG(K))try{var m=JSON.stringify(K);W.embed_config=m}catch(S){console.error("Invalid embedConfig JSON",S)}return W}; zcD=function(K){var W,U,h=(W=K.getWatchNextResponse())==null?void 0:(U=W.contents)==null?void 0:U.twoColumnWatchNextResults,m,S,f,G,I;K=(m=K.getWatchNextResponse())==null?void 0:(S=m.playerOverlays)==null?void 0:(f=S.playerOverlayRenderer)==null?void 0:(G=f.endScreen)==null?void 0:(I=G.watchNextEndScreenRenderer)==null?void 0:I.results;if(!K){var d,J;K=h==null?void 0:(d=h.endScreen)==null?void 0:(J=d.endScreen)==null?void 0:J.results}return K}; BN=function(K,W){W=W===void 0?{}:W;g.kQ(function(){O9C(K);var U=W.sampleRate;if(!g.hc("web_csi_action_sampling_enabled")||U===void 0||U<=1)U=!1;else{var h=P8(K);U=sdF(h)%U!==0}U&&(bs(K).actionDisabled=!0);dQ(K||"").info.actionType=K;W.cttAuthInfo&&(bs(K).cttAuthInfo=W.cttAuthInfo);ec(K+"TIMING_ACTION",K);g.kQ(iD)(W.startTime,K);U={actionType:TC(K)};W.Brx&&(U.previousAction=TC(g.TA("TIMING_ACTION")));(h=g.z0())&&h!=="UNDEFINED_CSN"&&(U.clientScreenNonce=h);g.y2(U,K);Xc(!0,K)})()}; flC=function(K){if(dJ()&&(g.$c||rQ))K.W.push(new Tz("fairplay","com.apple.fps.1_0","",K.Tm.experiments));else{var W=N8s(),U=g.dG(K.X,function(h){var m=K.N[h],S=!1,f=!1,G;for(G in K.j[m.flavor])W(G,h)&&(m.j[G]=!0,S=S||G.indexOf("audio/")===0,f=f||G.indexOf("video/")===0);return S&&f}); U&&K.W.push(K.N[U]);K.X=[]}K.callback(K.W)}; Ip=function(K){jf.call(this,K);this.events=new g.Te;g.k(this,this.events);this.events.S(K,"applicationInitialized",function(){var W={};for(yf=new gM(W.handleError===void 0?gu:W.handleError,W.logEvent===void 0?g.N_:W.logEvent);M8.length>0;)switch(W=M8.shift(),W.type){case "ERROR":yf.Ro(W.payload);break;case "EVENT":yf.logEvent(W.eventType,W.payload)}}); fZ(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));fZ(this.api,"updateDownloadState",this.updateDownloadState.bind(this));fZ(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));fZ(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));fZ(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));fZ(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));fZ(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; kYC=function(K,W){var U=W.params||{};K={urlParams:{a:"logerror",t:"jserror",type:W.name,msg:W.message.substr(0,250),line:W.lineNumber,level:K,"client.name":U.name},postParams:{url:g.TA("PAGE_NAME",window.location.href),file:W.fileName},method:"POST"};U.version&&(K["client.version"]=U.version);if(K.postParams){W.stack&&(K.postParams.stack=W.stack);W=g.z(Object.keys(U));for(var h=W.next();!h.done;h=W.next())h=h.value,K.postParams["client."+h]=U[h];if(U=g.TA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(W= g.z(Object.keys(U)),h=W.next();!h.done;h=W.next())h=h.value,K.postParams[h]=U[h];(U=g.TA("LAVA_VERSION"))&&(K.postParams["lava.version"]=U);U=g.TA("SERVER_NAME");W=g.TA("SERVER_VERSION");U&&W&&(K.postParams["server.name"]=U,K.postParams["server.version"]=W)}g.ka(g.TA("ECATCHER_REPORT_HOST","")+"/error_204",K)}; U8=function(K){this.iZ=qR(K)}; g.HB=function(K){return K.W&&g.EZ(K)&&!Wo(K)&&!K.G}; aUD=function(K,W){return W?g.dG(K.j,function(U){return U.Zf.h8==W}):null}; VH=function(K,W){this.logger=K;this.event=W;this.startTime=L7()}; g.NLR=function(K,W){if(K.suggestion!==W){K.suggestion=W;var U=K.api.V(),h="hqdefault.jpg";W.S7("sddefault.jpg")&&(h="sddefault.jpg");g.vf(K,W,h);g.HB(U)&&!K.api.L("web_player_log_click_before_generating_ve_conversion_params")&&(U=W.cN(),h={},g.Zm(K.api,"addEmbedsConversionTrackingParams",[h]),U=g.sL(U,h),K.updateValue("url",U));(W=(W=W.sessionData)&&W.itct)&&K.api.setTrackingParams(K.element,W)}}; AE_=function(K){if(navigator.mediaSession.setPositionState)if(K.api.L("web_player_media_session_infinity")&&K.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(h){}else{var W=K.api.getProgressState().seekableEnd,U=Math.min(K.api.getCurrentTime(),W);W&&Number.isFinite(U)&&navigator.mediaSession.setPositionState({duration:W,playbackRate:K.api.getPlaybackRate(),position:U})}}; RcF=function(K,W){var U=this;this.j=K;this.N5=W;this.loaded=this.status=0;this.error="";K=ev(this.j.get("range")||"");if(!K)throw Error("bad range");this.range=K;this.X=new WQ;this.run().then(function(){U.N5.P0()},function(h){U.error=""+h||"unknown_err"; U.N5.P0()})}; yEC=function(K,W){if(!K.index.isLoaded()){var U=[],h=W.W;W=W.U.split(",").filter(function(J){return J.length>0}); for(var m=0,S=0,f=0,G=/^(\d+)/,I=/r=(\d+)/,d=0;dh)return null}else if(U&&(U=K.X,h=W.X,U=!(h.j.length?n5C(U,h.j[0]):1)),U)return null;U=new TG(K.info.type,K.info.Wp,K.info.range,K.info.G,K.info.kx,K.info.startTime,K.info.duration,K.info.j,K.info.X,K.info.N,K.info.Uj,K.info.clipId);h=W.info;U.X+=h.X;U.range&&(U.Y+=h.Y);U.U=h.U;U.N=h.N;h=new WQ;HY(h,K.X);HY(h,W.X);U=new QN(U,h);U.j!= null&&W.j!=null&&g.Rr("dash",414627957,"merged slice emsg overridden; prev: "+U.j.oA()+" next: "+W.j.oA());U.j=W.j||K.j;U.N=K.N!==-1?K.N:W.N;U.W=K.W!==-1?K.W:W.W;return U}; cb=function(K,W){K.j.objectStoreNames.contains(W)&&K.j.deleteObjectStore(W)}; C7D=function(K,W){uD.getInstance().estimate().then(function(U){U=Object.assign({},W,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:uFC(U==null?void 0:U.usage),deviceStorageQuotaMbytes:uFC(U==null?void 0:U.quota)});K.j("idbQuotaExceeded",U)})}; bG2=function(K,W){var U;return W.split(".")[0]!==""&&((U=K.api.getVideoData())==null?void 0:!gB(U))}; SPD=function(K){K.skip(4);return{q4k:XdC(K,0),value:XdC(K,0),timescale:N7(K),Qb5:N7(K),eventDuration:N7(K),id:N7(K),o_:XdC(K),offset:K.offset}}; VJ=function(K,W,U,h){h=h===void 0?0:h;var m;if(W!==K.J||((m=K.X.get(W))==null?void 0:m.N)!==(U==null?void 0:U.N))if(U?K.X.set(W,U):K.X.delete(W),!K.isSeeking){var S=K.W.getStartTime(W);K.J=W;$oR(K,W);if(U){var f=S;U.j.forEach(function(G,I){fK.jj()||U>4<1&&(K^35)>=23&&U[t[4]]!=0&&(W=(W%U[t[4]]+U[t[4]])%U[t[4]],U[t[35]](0,1,U[t[35]](W,1,U[0])[0]));if(K>>2<27&&K>>1>=20){for(var h=64,m=[];++h-m[t[4]]-32;)switch(h){case 46:h=95;default:m[t[27]](String[t[46]](h));case 94:case 95:case 96:break;case 123:h-=76;case 92:case 93:continue;case 58:h=44;case 91:}var S=m}(K-1|27)>=K&&(K-9^20)=2)||f.isComplete()||f.m8()||!(!K.loader.AK||K.loader.isSuspended||CU(d)>3)){var J=pCe(f,K.policy,K.W);J===1&&(K.Ns=!0);g1z(K,f,J);if(f.isComplete()||f.qs()&&G<3){if(K.policy.N){var e=f.timing.lA();e.rst=f.state;e.strm=f.xhr.Wr();e.cncl=f.xhr&&f.zK.U?1:0;K.loader.rk("rqs",e)}f.jn&&K.loader.rk("sbwe3",{},!0)}if(!K.qs()&&f.state>=2){tlz(K.timing,f,I);var E=K.loader;K.Se&&f.oi&&E&&(K.Se=NaN,K.loader.Zk(f.oi),K.loader.s3(),K.loader.rk("cabrUtcSeek",{mediaTimeSeconds:f.oi}));f.zg&&K.Se&&f.zg&& !f.zg.action&&(K.loader.US(K.Se),K.Se=NaN,K.loader.rk("cabrUtcSeekFallback",{targetUtcTimeSeconds:K.Se}));f.Bg&&K.loader.vx(f.Bg);K.policy.Pl&&(K.NR=f.NR);if(f.state===3){Aq(d,f);fk(f.info)&&Vt(K,d,I,!0);if(K.X){var B=f.info.VM();B&&K.X.w_(f.info.Ce[0].kx,I.info.id,B)}K.loader.TL()}else if(f.isComplete()&&f.info.Ce[0].type===5){if(f.state!==4)f.q4()&&K.loader.handleError(f.KN(),f.K7());else{var D=(f.info.Ce[0].Wp.info.video?K.videoTrack:K.audioTrack).X[0]||null;D&&D instanceof EP&&D.m8()&&D.D7()}f.dispose()}else{if(!f.q4()&& f.M7&&f.state>=2&&f.state!==3){var a=f.xhr.getResponseHeader("X-Response-Itag");if(a){var Q=Gvp(K.N,a),u=f.info.N;if(u){var O=u-Q.Hs();Q.N=!0;f.info.Ce[0].Wp.N=!1;var N=Q.Gp(O);f.info=N;if(f.hO){var A=f.hO,Z=N.Ce;(Z.length!==A.Ce.length||Z.length=K.policy.t1&&K.X&&f.info.isDecorated()&&w$==="net.badstatus"&&K.X.mj(mj,Sf))){var c=(hF.info.video&&hF.T9.N>1||f.Bo===410||f.Bo===500||f.Bo===503)&&!(j5(K.N.U).size>0)&&!Rg(28,hF.T9.j),AF=f.K7(),sW=hF.info.video?K.videoTrack:K.audioTrack;c&&(AF.stun="1");K.loader.handleError(w$,AF);K.qs()||(c&&Ek(K.N,hF),Aq(sW,f),K.loader.TL())}}else Q=1,K.X&&f.info.isDecorated()&& w$==="net.badstatus"&&K.X.mj(mj,Sf)&&(Q=0),K.Gm.isLive&&f.KN()==="net.badstatus"&&K.G<=K.policy.KK*2?(Ays(K.Gm),K.Gm.tv||K.Gm.isPremiere?eO(K.loader,0,{JS:"badStatusWorkaround"}):K.Gm.W?eO(K.loader,K.Gm.PS,{JS:"badStatusWorkaround",zo:!0}):CV(K.loader)):K.loader.handleError(w$,f.K7(),Q);isNaN(K.Se)||(K.loader.US(K.Se),K.Se=NaN)}K.policy.Ny&&!f.isComplete()?CD(K.loader):K.loader.TL();var $4=dZz(f,K.policy,K.W);g1z(K,f,$4)}}}}}catch(zn){w$=K.uX?1:0,K.uX=!0,f=CR(w$),w$=XI(zn,w$),K.loader.handleError(w$.errorCode, w$.details,w$.severity),f||K.loader.uu()}},h)}; z3R=function(K){return(0,g.AI)()-K.G>=4E3}; BAp=function(K,W){var U,h,m,S,f;return g.r(function(G){switch(G.j){case 1:K.e_.qy("oprgz_s");if(!Jqs){G.O5(2);break}g.Bj(G,3);return g.T(G,eZR(W),5);case 5:return U=G.X,K.e_.qy("oprgz_n"),K.e_.rk("oprsgz",{i:"n"}),G.return(U);case 3:h=g.SV(G),K.e_.rk("gzerr",{impl:"native",err:""+h});case 2:if(m=K.e_.V().VA)try{var I=v8.PJ(),d=m.Tp(W),J=m,e=d!=null?d:W,E=e.byteOffset,B=e.byteLength,D=J.exports.getInflatedSize(E,B);if(D===0)throw Error("wasm_gz: bad input");var a=J.malloc(D),Q=J.exports.inflateGzip(E, B,a);if(Q)throw J.free(a),Error("wasm_gz: fail"+Q);var u=new Uint8Array(J.exports.memory.buffer,a,D);d&&m.free(d.byteOffset);var O=m.uS(u);v8.ZT("gzwb",I,Math.ceil(O.byteLength/16));S=O;K.e_.qy("oprgz_w");K.e_.rk("oprsgz",{i:"w"});return G.return(S)}catch(N){K.e_.rk("gzerr",{impl:"wasm",err:""+N})}I=v8.PJ();d=g.iOz(new g.EZC(W));v8.ZT("gzjb",I,Math.ceil(d.byteLength/16));f=d;K.e_.qy("oprgz_p");K.e_.rk("oprsgz",{i:"j"});return G.return(f)}})}; YW=function(K){var W,U,h,m,S=((U=g.P((W=K.questions)==null?void 0:W[0],uy))==null?void 0:U.surveyAdQuestionCommon)||((m=g.P((h=K.questions)==null?void 0:h[0],Fx))==null?void 0:m.surveyAdQuestionCommon),f;W=[].concat(g.z4(((f=K.playbackCommands)==null?void 0:f.instreamAdCompleteCommands)||[]),g.z4((S==null?void 0:S.timeoutCommands)||[]));var G,I,d,J,e,E,B,D,a,Q,u,O,N,A,Z,x,b,KR,fR,jp;return{impressionCommands:(G=K.playbackCommands)==null?void 0:G.impressionCommands,errorCommands:(I=K.playbackCommands)== null?void 0:I.errorCommands,muteCommands:(d=K.playbackCommands)==null?void 0:d.muteCommands,unmuteCommands:(J=K.playbackCommands)==null?void 0:J.unmuteCommands,pauseCommands:(e=K.playbackCommands)==null?void 0:e.pauseCommands,rewindCommands:(E=K.playbackCommands)==null?void 0:E.rewindCommands,resumeCommands:(B=K.playbackCommands)==null?void 0:B.resumeCommands,skipCommands:(D=K.playbackCommands)==null?void 0:D.skipCommands,progressCommands:(a=K.playbackCommands)==null?void 0:a.progressCommands,hx5:(Q= K.playbackCommands)==null?void 0:Q.clickthroughCommands,fullscreenCommands:(u=K.playbackCommands)==null?void 0:u.fullscreenCommands,activeViewViewableCommands:(O=K.playbackCommands)==null?void 0:O.activeViewViewableCommands,activeViewMeasurableCommands:(N=K.playbackCommands)==null?void 0:N.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(A=K.playbackCommands)==null?void 0:A.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(Z=K.playbackCommands)== null?void 0:(x=Z.activeViewTracking)==null?void 0:x.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(b=K.playbackCommands)==null?void 0:(KR=b.activeViewTracking)==null?void 0:KR.activeViewAudioMeasurableCommands,endFullscreenCommands:(fR=K.playbackCommands)==null?void 0:fR.endFullscreenCommands,abandonCommands:(jp=K.playbackCommands)==null?void 0:jp.abandonCommands,completeCommands:W}}; RQp=function(K){if(g.EZ(K)&&hu)return!1;if(g.aS){if(!g.rs(47)||!g.rs(52)&&g.rs(51))return!1}else if(g.$c)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; g.r5=function(K,W){return K!==null&&W in K}; g.vd=function(K,W,U,h){Array.prototype.splice.apply(K,RU(arguments,1))}; DZ2=function(K){K.qs()||(K.jV=!0,K.Jc({onmdkrdy:1}),qN(K))}; $KC=function(K,W){var U=W&2147483648;U&&(K=~K+1>>>0,W=~W>>>0,K==0&&(W=W+1>>>0));K=hg(K,W);return typeof K==="number"?U?-K:K:U?"-"+K:K}; Oys=function(K){return new TG(K.type,K.Wp,K.range,"getEmptyStubBefore"+K.G,K.kx,K.startTime,0,K.j,0)}; f$$=function(){this.y9=[];this.Re=[]}; Hep=function(K){K.G=!0;K.W=!0;K.U=-1;gP(K,Infinity)}; x7R=function(K,W,U){W=g.z(W);for(var h=W.next();!h.done;h=W.next())h=h.value,h.layout&&NC(K.j,h.slot)&&MgD(K,h.slot,h.layout,U)}; Lk=function(K){return{itagDenylist:fH(K,1)}}; y6=function(){}; rqs=function(K,W){if(K.currentState>1){g.eI(new g.EB("Exit already started",{current:K.currentState}));var U=!1}else U=!0;if(!U)return!1;K.currentState=2;K.j=W;return!0}; TAz=function(K,W,U){this.callback=K;this.slot=W;this.dk=U;this.X=!1;this.j=0}; e6=function(){g.vB("_lact",window)==null&&(ARD(),g.vB("_lact",window));var K=Date.now();g.Vk("_lact",K,window);g.vB("_fact",window)==-1&&g.Vk("_fact",K,window);(K=g.vB("ytglobal.ytUtilActivityCallback_"))&&K()}; fpF=function(K){var W;if(!(W=up&&K.mK()&&K.nC()&&(K.drmProduct==="1"?!1:!0)&&K.L("html5_sabr_live_drm_streaming_xhr"))){W=K.mK()&&!K.nC()&&up;var U=K.mK()&&K.latencyClass!=="ULTRALOW"&&!K.isLowLatencyLiveStream&&K.L("html5_sabr_live_normal_latency_streaming_xhr"),h=K.isLowLatencyLiveStream&&K.L("html5_sabr_live_low_latency_streaming_xhr"),m=K.latencyClass==="ULTRALOW"&&K.L("html5_sabr_live_ultra_low_latency_streaming_xhr");W=W&&(U||h||m)}U=W;W=K.enableServerStitchedDai&&U&&K.L("html5_enable_sabr_ssdai_streaming_xhr"); U=!K.enableServerStitchedDai&&U;h=K.mK()&&!up&&K.L("html5_enable_sabr_live_non_streaming_xhr");K=up&&(K.Sj()||F8(K)&&K.L("html5_enable_sabr_for_lifa_eligible_streams"));return W||U||h||K}; Dz=function(){return yq(I0p)}; Vv=function(K,W,U){W=W===void 0?-1:W;U=U===void 0?Infinity:U;for(var h=W,m=U,S=g.z(K.U),f=S.next();!f.done;f=S.next()){var G=g.z(f.value);f=G.next().value;G=G.next().value;G.Fm>=h&&G.target&&G.target.W2<=m&&(K.j.removeCueRange(f),K.U.delete(f))}h=W;m=U;S=[];f=g.z(K.X);for(G=f.next();!G.done;G=f.next())if(G=G.value,G.Ua>=h&&G.W2<=m){var I=K;I.Y===G&&xB(I);kw(I,G)&&I.app.gy()}else S.push(G);K.X=S;h=vP(K,W/1E3);W=h.Go;h=h.PL;W&&(h*=1E3,IUY(K,W,h,W.W2===W.Ua+W.durationMs?W.Ua+h:W.W2));(W=vP(K,U/1E3).Go)&& sm(K,"Invalid clearEndTimeMs="+U+" that falls during playback={timelinePlaybackId="+(W.Ze+" video_id="+W.playerVars.video_id+" durationMs="+W.durationMs+" enterTimeMs="+W.Ua+" parentReturnTimeMs="+W.W2+"}.Child playbacks can only have duration updated not their start."))}; vvF=function(K,W,U,h,m){g.p.call(this);var S=this,f=tp(function(){return new IR(S.Xx)}); g.k(this,f);var G=tp(function(){return new dq(f,S.Xx)}); g.k(this,G);var I=tp(function(){return new Jp}); g.k(this,I);var d=tp(function(){return new ea(K)}); g.k(this,d);var J=tp(function(){return new E9(f,G,S.Xx)}); g.k(this,J);var e=tp(function(){return new BI}); g.k(this,e);this.bY=tp(function(){return new DY(W)}); g.k(this,this.bY);this.kd=tp(function(){return new HI(m)}); g.k(this,this.kd);this.Hl=tp(function(){return new rq(W)}); g.k(this,this.Hl);this.Oa=tp(function(){return new TS(W)}); g.k(this,this.Oa);this.hS=tp(function(){return new aR(W)}); g.k(this,this.hS);this.xm=tp(function(){return new wq(W)}); g.k(this,this.xm);this.Xx=tp(function(){return new QZ(W)}); g.k(this,this.Xx);var E=tp(function(){return new $i(h)}); g.k(this,E);var B=tp(function(){return new Yi(S.Xx)}); g.k(this,B);var D=tp(function(){return new O9(f,J,G,S.Xx,B,null,null,null,null)}); g.k(this,D);this.JO=tp(function(){return new cI(W)}); g.k(this,this.JO);this.ZA=tp(function(){return new nA(W,e,S.Xx)}); g.k(this,this.ZA);var a=gq({ZA:this.ZA,Xx:this.Xx,uB:B}),Q=a.context,u=a.Pu;this.Yd=a.Yd;this.dk=tp(function(){return new F5(W,S.ZA,S.Xx)}); g.k(this,this.dk);this.au=tp(function(){return new ub}); g.k(this,this.au);this.yg=tp(function(){return new ki(S.dk,W,S.Xx)}); g.k(this,this.yg);this.zm=tp(function(){return new ib(W,I,S.yg,S.ZA,S.Yd,S.Xx,u)}); g.k(this,this.zm);this.E_=tp(function(){return new zS(S.Xx)}); g.k(this,this.E_);this.C1=new NW(UK,Ap,function(N,A,Z,x){return h6(G.get(),N,A,Z,x)},d,J,G,B,this.Xx,this.ZA); g.k(this,this.C1);this.DX=new RR(d,D,U,this.Xx,K,this.ZA,this.dk,this.Hl);g.k(this,this.DX);var O=new yZ(W,this.DX,this.dk,this.ZA);this.G5=tp(function(){return O}); this.Y8=O;this.KC=new MW(d,J,this.Oa,this.G5,Q);g.k(this,this.KC);this.H2=new PI(this.Xx,d,J,D,this.ZA,this.KC,U,this.hS);g.k(this,this.H2);this.qN=tp(function(){return new pA(E,G,B,S.Xx,S.zm,S.dk)}); g.k(this,this.qN);this.O_=tp(function(){return new oR}); g.k(this,this.O_);this.Wu=new ZY(K,this.bY,this.Xx);g.k(this,this.Wu);this.sz=new bb(K);g.k(this,this.sz);this.Bu=new s9(K,this.G5,Q);g.k(this,this.Bu);this.Iw=new VZ(K,this.Oa,this.dk,this.ZA,Q);g.k(this,this.Iw);this.Lc=new X5(K);g.k(this,this.Lc);this.xT=new vI(K);g.k(this,this.xT);this.TK=tp(function(){return new BT(W)}); g.k(this,this.TK);this.m1=new qW(K);g.k(this,this.m1);this.Xc=tp(function(){return new xi}); g.k(this,this.Xc);this.g_=tp(function(){return new CA(S.dk)}); g.k(this,this.g_);this.kT=tp(function(){return new lb(S.H2,d,f)}); g.k(this,this.kT);this.AD=tp(function(){return new LA(S.Xx,S.zm,S.Lc,S.yg)}); g.k(this,this.AD);this.XM=tp(function(){return new aqC(S.bY,S.dk,S.zm,I,U,S.Xx)}); g.k(this,this.XM);this.lK=tp(function(){return new K7(K,S.m1,S.Lc,S.zm,S.yg,S.E_,S.hS,S.ZA,S.dk,S.au,S.Oa,S.Hl,S.xm,S.kd,S.JO,S.Xx,S.TK,Q,u)}); g.k(this,this.lK);this.YL={jl:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.H2],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.C1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.KC]]),Ga:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qN],["SLOT_TYPE_FORECASTING",this.O_],["SLOT_TYPE_IN_PLAYER",this.O_],["SLOT_TYPE_PLAYER_BYTES",this.O_]]),IC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wu],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.sz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.sz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.sz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.sz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.sz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.sz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.sz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.sz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.sz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Iw],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Iw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Lc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.m1]]),Ql:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xc],["SLOT_TYPE_ABOVE_FEED",this.Xc],["SLOT_TYPE_FORECASTING",this.Xc],["SLOT_TYPE_IN_PLAYER",this.Xc],["SLOT_TYPE_PLAYER_BYTES",this.g_]]),Wx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kT],["SLOT_TYPE_FORECASTING",this.AD],["SLOT_TYPE_IN_PLAYER", this.XM],["SLOT_TYPE_PLAYER_BYTES",this.lK]])};this.listeners=[I.get()];this.vL={H2:this.H2,hB:this.Xx.get(),s5:this.kd.get(),bR:this.dk.get(),DX:this.DX,JM:f.get(),w6:null,RP:this.Wu,tB:I.get(),i5:this.ZA.get()}}; QMp=function(K,W,U,h,m){var S;W!==((S=K.j)==null?void 0:S.kx)||K.X===1||h||K.j.Nk.event==="predictStart"||K.rk("sdai",{undecevt:1,sq:W,mt:U,evt:K.j.Nk.event},!0);W>K.G&&(K.G=NaN,K.Y=NaN);K.j&&K.j.kx===W?w4$(K,W,U,K.j,m):K.X===1&&Wb(K,5,"noad")}; $ZD=function(K,W,U){this.callback=K;this.slot=W;this.dk=U}; TdC=function(K,W,U,h,m){W=rDs(K,W);K=s$(K,W,U);m=m({slotId:K.slotId,slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:K.slotExpirationTriggers,wk:K.wk});return m instanceof v?m:{sQ:Object.assign({},K,{clientMetadata:new Zi([new xx(m.layout)]),adSlotLoggingData:h}),A9:m.A9}}; Oe_=function(K,W){var U;return g.r(function(h){(0,g.AI)();var m=K.j;m.U||(m.U=new Y5s(m.N));U=m.U;return h.return(cE$(U,W,K.iv))})}; cS=function(K,W){var U=uV(K);Ut(K.iX.getPlayerState())&&(U>=W.mediaTime?(W.resolve([W.mediaTime,W.id]),K.j.delete(W.id)):(W.delay.dispose(),U=(W.mediaTime-U)*1E3/K.iX.getPlaybackRate(),W.delay=new g.QC(function(){cS(K,W)},U/2),W.delay.start()))}; sb$=function(K,W){var U,h=K.U;if(U=Ors(h))U.startSecs+=K.DA;var m=K.DA,S=0;K.policy.Vzr?K.Wp instanceof xc&&(S=K.Wp.GI):S=h.GI;return new ny(h.Vn,m,W?S:K.jV,h.ingestionTime,"sq/"+h.Vn,void 0,void 0,W,U)}; Sl=function(K,W,U){U=U===void 0?0:U;return g.jV(K.Tm.experiments,W)||U}; RuR=function(K,W){g.p.call(this);var U=this;this.j=null;this.N=W;W=[];for(var h=0;h<=100;h++)W.push(h/100);W={threshold:W,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(m){m=m[m.length-1];var S=null;typeof m.isVisible==="undefined"?document.visibilityState==="visible"&&m.isIntersecting&&m.intersectionRatio>0?S=m.intersectionRatio:document.visibilityState==="hidden"?S=0:S=null:S=m.isVisible?m.intersectionRatio:0;S!=null&&(S=Math.max(S,0),S=Math.min(S, 1));U.j=S;typeof U.N==="function"&&U.N(U.j)},W):null)&&this.X.observe(K)}; TDz=function(K,W){var U=[];U.push(new vM(Wx(K)));U.push(new fY(W.layoutId));(K=Sp(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&U.push(new NV(K));(K=Sp(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&U.push(new VG(K));(K=Sp(W.clientMetadata,"metadata_type_remote_slots_data"))&&U.push(new Z2(K));(K=Sp(W.clientMetadata,"metadata_type_ad_next_params"))&&U.push(new RH(K));(K=Sp(W.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&U.push(new Pb(K));(K= Sp(W.clientMetadata,"metadata_type_ad_pod_info"))&&U.push(new u2(K));(W=Sp(W.clientMetadata,"metadata_type_ad_video_id"))&&U.push(new kq(W));return U}; g.d9=function(K){K&&(typeof K=="string"&&(K=[K]),g.tD(K,function(W){if(W in Ij){var U=Ij[W],h=U[0],m=U[1],S=U[3];U=U[4];h.removeEventListener?b4R()||typeof U==="boolean"?h.removeEventListener(m,S,U):h.removeEventListener(m,S,!!U.capture):h.detachEvent&&h.detachEvent("on"+m,S);delete Ij[W]}}))}; g.BO=function(K){return K.indexOf("?")!==-1?(K=(K||"").split("#")[0],K=K.split("?",2),nZ(K.length>1?K[1]:K[0])):{}}; wD_=function(K,W){W=K.Vt.get(W);if(!W)return 0;K=0;if(W.Ce.length>0){W=g.z(W.Ce);for(var U=W.next();!U.done;U=W.next()){var h=void 0;K+=((h=U.value.range)==null?void 0:h.length)||0}return K}if(W.g6.length>0)for(U=g.z(W.g6),h=U.next();!h.done;h=U.next())K+=h.value.Hv||0;return K+W.Vm}; g.cqs=function(K){var W,U;return g.r(function(h){if(h.j==1)return g.T(h,g.ip(),2);if(h.j!=3){W=h.X;if(!W)throw g.zW("ri");return g.T(h,g.N1(W),3)}U=h.X;return h.return(g.b5(U,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(m){var S=IDBKeyRange.bound(K+"|",K+"~");return m.objectStore("index").getAll(S).then(function(f){return f.map(function(G){return G?G.format:{}})})}))})}; nZL=function(K){if(K.iX.dj().isInline())return BE;K=d0[tK()];return g.xh("auto",K,!1,"s")}; gZ$=function(K,W,U){return W=W.filter(function(h){if(h.video.qualityOrdinal<=K.XI)return!0;U[h.itag]="maxquality";return!1})}; mg=function(K){return K.L("html5_disable_video_player_initiated_seeks")&&HT(K.videoData)}; FWs=function(K,W){if(K.AK){K.AK.BY(W);var U;(U=K.loader)!=null&&U.policy.Le&&(U.Y=W)}}; M7R=function(K){K=K.ej();if(!K)return!1;K=g.BO(K).exp||"";return K.includes("xpv")||K.includes("xpe")}; fxL=function(K,W){K.N=W}; ue2=function(K){if(!K.qs()&&K.N){K.G="paused";var W=gV(K);W.isFinal=!0;W.send();K.dispose()}}; Cu=function(K,W){return K==W?!0:K&&W?K.x==W.x&&K.y==W.y:!1}; kvD=function(K,W,U,h,m,S){Px("TRANSACTION_ENDED",{objectStoreNames:h,connectionHasUnknownAbortedTransaction:K.X,duration:m,isSuccessful:W,tryCount:U,tag:S===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":S})}; g.Jf=function(K){var W=K.V();if(!W.Pl)return!1;var U=K.getVideoData();if(!U||K.getPresentingPlayerType()===3)return!1;var h=(!U.isLiveDefaultBroadcast||W.L("allow_poltergust_autoplay"))&&!ZM(U);h=U.isLivePlayback&&(!W.L("allow_live_autoplay")||!h);var m=U.isLivePlayback&&W.L("allow_live_autoplay_on_mweb");K=K.getPlaylist();K=!!K&&K.zP();var S=U.Ns&&U.Ns.playerOverlays||null;S=!!(S&&S.playerOverlayRenderer&&S.playerOverlayRenderer.autoplay);S=U.Mk&&S;return!U.ypcPreview&&(!h||m)&&!g.BX(U.XY,"ypc")&& !K&&(!g.HB(W)||S)}; CpD=function(K){return new Promise(function(W,U){var h=g.k$("SCRIPT"),m=u_R(K);g.sq(h,m);h.onload=function(){g.f7(h);W()}; h.onerror=function(){g.f7(h);U(Error("EWLS"))}; (g.K4("HEAD")[0]||document.documentElement).appendChild(h)})}; ie_=function(K){if(!K)return"unknown";switch(K){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; zZC=function(K){var W=[];K.j.forEach(function(U){U=g.z(U.values());for(var h=U.next();!h.done;h=U.next())W.push(h.value.slot)}); return W}; g.Zb=function(K,W,U,h,m){W=W===void 0?{}:W;U=U===void 0?Ewe[K]:U;h=h===void 0?NAC[K]:h;m=m===void 0?Aqz[K]:m;g.EB.call(this,U,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:K},W));this.type=K;this.message=U;this.level=h;this.j=m;Object.setPrototypeOf(this,g.Zb.prototype)}; oU=function(K,W){for(var U=0;U32){m=!0;break a}}m=!1}m&&(U=Math.min(U,h));(h=g.jV(K.C.experiments,"html5_live_quality_cap"))&&W.videoData.isLivePlayback&&(U=Math.min(U,h));U=hwY(K,W,U);K=g.jV(K.C.experiments,"html5_byterate_soft_cap");return new ZO(0,U===4320?0:U,!1,"d",K)}; MlL=function(K,W){K=g.z(K.itemData);for(var U=K.next();!U.done;U=K.next())U=U.value,U.D.logVisibility(U.element,W)}; T4=function(K){return Cr(K)==="TVHTML5_UNPLUGGED"}; lsR=function(K){K.videoData.Le.clear();if(K.videoData.sabrContextUpdates.size>0)for(var W=g.z(K.videoData.sabrContextUpdates.keys()),U=W.next();!U.done;U=W.next()){U=U.value;var h=void 0;((h=K.videoData.sabrContextUpdates.get(U))==null?0:h.sendByDefault)&&K.videoData.Le.add(U)}if(K.policy.Ms&&K.j.length)for(W=g.z(K.j),U=W.next();!U.done;U=W.next())(U=U.value.Yw())&&U.type&&U.sendByDefault&&K.videoData.Le.add(U.type)}; PrF=function(K){return K.j.flavor==="widevine"&&K.videoData.L("html5_drm_cpi_license_key")}; AC=function(K,W){return K.D.V().L(W)}; p4F=function(K){return{token:fz(K,1),videoId:fz(K,2)}}; hK$=function(K){switch(K){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; oZL=function(K,W,U){K=g.z(K.X);for(var h=K.next();!h.done;h=K.next())h.value.OT(W,U)}; WM=function(K){jf.call(this,K);var W=this;this.X=new Map;this.W=this.j=void 0;this.compositeVideoState=null;this.N=void 0;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"modulecreated",function(U){var h;a:{var m,S,f,G=(m=W.api.getVideoData())==null?void 0:(S=m.getPlayerResponse())==null?void 0:(f=S.overlay)==null?void 0:f.playerControlsOverlayRenderer;if(G&&(m=g.P(G.compositeVideoOverlay,ZeY),m==null?0:(h=m.sources)==null?0:h.length))for(h=g.z(m==null?void 0:m.sources),m=h.next();!m.done;m= h.next())if(m=m.value,m.isActive){h=m;break a}h=void 0}U==="captions"&&(h==null?void 0:h.topLeftCornerX)!==void 0&&(h==null?void 0:h.topLeftCornerY)!==void 0&&(h==null?void 0:h.width)!==void 0&&(h==null?void 0:h.height)!==void 0&&W.api.Va({top:h.topLeftCornerY,right:1-h.topLeftCornerX-h.width,bottom:1-h.topLeftCornerY-h.height,left:h.topLeftCornerX})}); this.events.S(K,"videodatachange",function(U){var h=W.api.getVideoData();W.j=void 0;W.X.clear();W.api.L5("compositeembargo",1);var m=h==null?void 0:h.M3.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(m==null?0:m.length)?r9p(W,m.filter(function(S){return be$(W,S)})):(h==null?0:h.cueRanges)&&r9p(W,h.cueRanges.filter(function(S){return be$(W,S)})); U==="dataupdated"&&(h==null?void 0:h.compositeLiveStatusToken)!==W.W&&(W.W=h==null?void 0:h.compositeLiveStatusToken,W.api.JZ())}); this.events.S(K,g.$w("compositeembargo"),function(U){var h;if(((h=W.j)==null?void 0:h.id)!==U.id&&(W.api.Oj(!0),W.X.has(U.id))){var m=W.X.get(U.id);h=W.api.getVideoData();m=g.z(m);for(var S=m.next();!S.done;S=m.next()){var f=void 0;S=(f=S.value.compositeEmbargo)==null?void 0:f.embargoStatusToken;h.HM!==S&&(h.HM=S,W.api.JZ());ve_(W,U)}}}); this.events.S(K,g.g8("compositeembargo"),function(U){var h;if(((h=W.j)==null?void 0:h.id)===U.id&&(W.api.Oj(!1),W.X.has(U.id))){if(U=W.api.getVideoData())U.HM=void 0;W.api.JZ();ve_(W)}}); this.events.S(K,"heartbeatRequest",function(U){W.compositeVideoState!==null&&(U.playbackState||(U.playbackState={}),U.playbackState.compositeVideoState=W.compositeVideoState)}); this.events.S(K,"internalaudioformatchange",function(U,h){var m=W.api.getVideoData(void 0,!0);m==null||m.rk("atrkchg",{id:U,m:h});if(m&&gB(m))for(h=W.api.getAvailableAudioTracks(),h=g.z(h),m=h.next();!m.done;m=h.next())if(m.value.getLanguageInfo().getId()===U){W.api.V().Pp=U;break}}); this.events.S(K,"onPlaybackAudioChange",function(){W.api.JZ();var U=K.getVideoData();if(U==null?0:U.V().L("html5_preload_on_mosaic_audio_track_change")){if(U==null)U=void 0;else{var h,m,S,f;U=(f=(h=U.playerResponse)==null?void 0:(m=h.playerConfig)==null?void 0:(S=m.compositeVideoConfig)==null?void 0:S.sourceConfigs)!=null?f:[]}if(m=U)for(h=K.getAudioTrack().ZO.getId(),m=g.z(m),S=m.next();!S.done;S=m.next())for(S=S.value,U=void 0,f=g.z((U=S.audioTracks)!=null?U:[]),U=f.next();!U.done;U=f.next())U.value.id=== h&&K.preloadVideoByPlayerVars({videoId:S.videoId,fn:!0},1)}}); fZ(K,"setCompositeParam",function(U){W.compositeVideoState=U}); this.api.L("web_watch_enable_multiview_manager")&&fZ(K,"setCompositeVideoOverlayRendererComponent",function(U){W.setCompositeVideoOverlayRendererComponent(U)})}; R3e=function(K,W,U){if(qJC){var h;BS(K.mediaElement,{l:"mswssb",sr:(h=K.mediaElement.iX)==null?void 0:h.vu()},!1);W.EX(K.Y,K);U.EX(K.Y,K)}K.j=W;K.X=U;g.k(K,W);g.k(K,U)}; lD=function(K,W,U,h,m,S,f,G,I,d,J,e,E){UH.call(this,S,K,W,m);this.zm=U;this.W=f;this.J=G;this.dk=I;this.kd=d;this.Xx=J;this.G=e;this.U=E;this.Ke=V5L(W,U)}; qN=function(K){if(K.tK&&K.jV&&!K.DA){for(;K.N.length;){var W=K.N[0],U=PrF(K)?ZgD(W):g.o0(W.initData);if(eV(K.j)&&!W.X)K.N.shift();else{if(K.X.get(U))if(K.j.flavor!=="fairplay"||eV(K.j)){K.N.shift();continue}else K.X.delete(U);c6s(W);break}}K.N.length&&K.createSession(K.N[0])}}; q5z=function(){if(OV()){var K=g.TA("PLAYER_VARS",{});if(g.Ug(K,"privembed",!1)!="1"&&!gyz(K)){var W=function(){sMC=!0;"google_ad_status"in window?ec("DCLKSTAT",1):ec("DCLKSTAT",2)}; try{g.Vlp(X4s,W)}catch(U){}vZD.push(g.MU.C_(function(){if(!(sMC||"google_ad_status"in window)){try{if(X4s.toString()&&W){var U=""+g.NK(W),h=jzs[U];h&&g.Df(h)}}catch(m){}sMC=!0;ec("DCLKSTAT",3)}},5E3))}}}; eZR=function(K){var W,U,h,m,S,f,G,I,d;return g.r(function(J){switch(J.j){case 1:if(!Jqs)throw Error("DecompressionStream is not supported");W=v8.PJ();U=new DecompressionStream("gzip");h=U.writable.getWriter();h.write(K);h.close();m=U.readable.getReader();S=new WQ([]);case 2:return g.T(J,m.read(),5);case 5:f=J.X;G=f.value;if(I=f.done){J.O5(4);break}S.append(G);J.O5(2);break;case 4:return d=s1(S),v8.ZT("gznb",W,Math.ceil(d.byteLength/16)),J.return(d)}})}; V9F=function(K){var W=new g.GW({T:"div",Z:"ytp-ad-text-overlay",K:[{T:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{T:"div",Z:"ytp-ad-overlay-close-container",K:[{T:"button",Z:"ytp-ad-overlay-close-button",K:[wM(xZC)]}]},{T:"div",Z:"ytp-ad-overlay-title",bX:"{{title}}"},{T:"div",Z:"ytp-ad-overlay-desc",bX:"{{description}}"},{T:"div",Hp:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],bX:"{{displayUrl}}"}]});K.S(W.yH("ytp-ad-overlay-title"),"click",function(U){Lu(K,W.element,U)}); K.S(W.yH("ytp-ad-overlay-link"),"click",function(U){Lu(K,W.element,U)}); K.S(W.yH("ytp-ad-overlay-close-container"),"click",K.yb);W.hide();return W}; xrR=function(K,W,U,h,m){g.p.call(this);var S=this,f=tp(function(){return new IR(S.Xx)}); g.k(this,f);var G=tp(function(){return new dq(f,S.Xx)}); g.k(this,G);var I=tp(function(){return new Jp}); g.k(this,I);h=tp(function(){return new ea(K)}); g.k(this,h);var d=tp(function(){return new E9(f,G,S.Xx)}); g.k(this,d);var J=tp(function(){return new BI}); g.k(this,J);this.kd=tp(function(){return new HI(m)}); g.k(this,this.kd);this.Hl=tp(function(){return new rq(W)}); g.k(this,this.Hl);this.Oa=tp(function(){return new TS(W)}); g.k(this,this.Oa);this.hS=tp(function(){return new aR(W)}); g.k(this,this.hS);this.xm=tp(function(){return new wq(W)}); g.k(this,this.xm);this.Xx=tp(function(){return new QZ(W)}); g.k(this,this.Xx);var e=tp(function(){return new Yi(S.Xx)}); g.k(this,e);var E=tp(function(){return new O9(f,d,G,S.Xx,e,null,null,null,null)}); g.k(this,E);this.ZA=tp(function(){return new nA(W,J,S.Xx)}); g.k(this,this.ZA);var B=gq({ZA:this.ZA,Xx:this.Xx,uB:e}),D=B.context,a=B.Pu;this.Yd=B.Yd;this.dk=tp(function(){return new F5(W,S.ZA,S.Xx)}); g.k(this,this.dk);this.yg=tp(function(){return new ki(S.dk,W,S.Xx)}); g.k(this,this.yg);this.zm=tp(function(){return new ib(W,I,S.yg,S.ZA,S.Yd,S.Xx,a)}); g.k(this,this.zm);this.DX=new RR(h,E,U,this.Xx,K,this.ZA,this.dk,this.Hl);g.k(this,this.DX);var Q=new yZ(W,this.DX,this.dk,this.ZA);this.G5=tp(function(){return Q}); this.Y8=Q;this.KC=new MW(h,d,this.Oa,this.G5,D);g.k(this,this.KC);this.H2=new PI(this.Xx,h,d,E,this.ZA,this.KC,U,this.hS);g.k(this,this.H2);this.YL={jl:new Map,Ga:new Map,IC:new Map,Ql:new Map,Wx:new Map};this.listeners=[];this.vL={H2:this.H2,hB:this.Xx.get(),s5:this.kd.get(),bR:this.dk.get(),DX:this.DX,JM:f.get(),w6:null,RP:{gA:function(){}}, tB:I.get(),i5:this.ZA.get()}}; KHp=function(K){g.p.call(this);var W=this;this.N=new g.JW;this.W=0;this.X=void 0;this.state=2;this.Mb=K.Mb;this.Lj=K.Lj;this.QF=Object.assign({},Cre,K.QF||{});this.logger=K.Mb.Tc();var U;this.onError=(U=K.onError)!=null?U:function(){}; this.FB=K.FB||!1;if(lqR(K)){var h=this.Mb;this.U=function(){return Ip2(h).catch(function(f){f=W.reportError(new cP(W.j?20:32,"TRG:Disposed",f));W.X=f;var G;(G=W.j)==null||G.dispose();W.j=void 0;W.N.reject(f)})}; L7F(h,function(){return void LWC(W)}); h.J===2&&LWC(this)}else this.U=K.c8r,LWC(this);var m=this.logger.share();m.QB("o");var S=new VH(m,"o");this.N.promise.then(function(){S.done();m.Ol();m.dispose()},function(){return void m.dispose()}); this.addOnDisposeCallback(function(){W.j?(W.j.dispose(),W.j=void 0):W.X?W.logger.Ol():(W.X=W.reportError(new cP(32,"TNP:Disposed")),W.logger.Ol(),W.N.reject(W.X))}); g.k(this,this.logger)}; g.MD=function(K,W,U,h){g.kQ(I6s)(void 0,K,W,U,h,void 0)}; WHp=function(K,W,U,h){yU.call(this,"invideo-overlay",K,W,U,h);this.interactionLoggingClientData=h}; UNL=function(K,W){var U=!!K.j;K.j=W;K.j?(U||(K.events.S(K.api,"videodatachange",function(){UNL(K,K.api.hW())}),K.events.S(K.api,"progresssync",K.onProgress),K.events.S(K.api,"appresize",K.W)),K.frameIndex=NaN,iX(K),K.fade.show(200)):(U&&g.Qa(K.events),K.fade.hide(),K.fade.stop())}; LI2=function(K){return{mF:L_(K,1)}}; Qke=function(K){return g.CB(K,function(W,U,h){return U>0?h[U]-h[U-1]:h[U]})}; kJ_=function(K,W,U,h,m,S,f,G,I,d,J){K=LtY(K,W,"core",U,h,m,S,f,G,I,d,void 0,J);return{layoutId:K.layoutId,layoutType:K.layoutType,uZ:K.uZ,layoutExitNormalTriggers:K.layoutExitNormalTriggers,layoutExitSkipTriggers:K.layoutExitSkipTriggers,layoutExitMuteTriggers:K.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:K.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:K.layoutExitUserCancelledTriggers,wk:K.wk,clientMetadata:new Zi(K.mP),t7:K.t7,adLayoutLoggingData:K.adLayoutLoggingData}}; HNs=function(K,W,U){return W.KF(U).then(function(){return EM(new UZ2(W,W.N))},function(h){h instanceof Error&&g.eI(h); var m=AT('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),S=b6('audio/mp4; codecs="mp4a.40.2"'),f=m||S,G=W.isLivePlayback&&!g.Kt(K.U,!0);h="fmt.noneavailable";G?h="html5.unsupportedlive":f||(h="html5.missingapi");f=G||!f?2:1;m={buildRej:"1",a:W.SQ(),d:!!W.W1,drm:W.nC(),f18:W.qI.indexOf("itag=18")>=0,c18:m};W.j&&(W.nC()?(m.f142=!!W.j.j["142"],m.f149=!!W.j.j["149"],m.f279=!!W.j.j["279"]):(m.f133=!!W.j.j["133"],m.f140=!!W.j.j["140"],m.f242=!!W.j.j["242"]),m.cAAC=S,m.cAVC=b6('video/mp4; codecs="avc1.42001E"'), m.cVP9=b6('video/webm; codecs="vp9"'));W.U&&(m.drmsys=W.U.keySystem,S=0,W.U.j&&(S=Object.keys(W.U.j).length),m.drmst=S);return new g.F3(h,m,f)})}; Z9=function(K,W){W.stack&&(K.stack+="\n"+W.stack);return K}; b1e=function(K){K.audioTrack.jV=[];K.videoTrack.jV=[]}; R0=function(K){this.iZ=qR(K)}; vh=function(K,W,U,h,m,S,f){f=f===void 0?null:f;g.GW.call(this,W);this.api=K;this.macros={};this.componentType=U;this.G=this.Y=null;this.M5=f;this.layoutId=h;this.interactionLoggingClientData=m;this.s5=S;this.Bp=null;this.NE=new ae(this.element);g.k(this,this.NE);this.gk=this.S(this.element,"click",this.onClick);this.DA=[];this.Ns=new bW(this.onClick,this);g.k(this,this.Ns);this.Qg=!1;this.eV=this.Ms=null}; h8D=function(K,W,U,h,m,S,f){f==="PLAY_PROGRESS"&&(U=!h||K.api.V().X?1:U/h,K.QX.clientWidth>0||K.Pl.clientWidth>0?(S=W.clientWidth/U,K=-1*K.QX.clientWidth/U):(S/=U,K=-1*K.j[m].element.offsetLeft/U),g.Zd(W,"background-size",S+"px"),g.Zd(W,"background-position-x",K+"px"))}; WE_=function(K){function W(S,f,G){f=f.match("_rid")?f.split("_rid")[0]:f;typeof G==="number"&&(G=JSON.stringify(G));S.requestIds?S.requestIds.push({endpoint:f,id:G}):S.requestIds=[{endpoint:f,id:G}]} var U={};K=g.z(Object.entries(K));for(var h=K.next();!h.done;h=K.next()){var m=g.z(h.value);h=m.next().value;m=m.next().value;switch(h){case "GetBrowse_rid":W(U,h,m);break;case "GetGuide_rid":W(U,h,m);break;case "GetHome_rid":W(U,h,m);break;case "GetPlayer_rid":W(U,h,m);break;case "GetSearch_rid":W(U,h,m);break;case "GetSettings_rid":W(U,h,m);break;case "GetTrending_rid":W(U,h,m);break;case "GetWatchNext_rid":W(U,h,m);break;case "yt_red":U.isRedSubscriber=!!m;break;case "yt_ad":U.isMonetized=!!m}}return U}; tZD=function(K,W){W.Re&&K.Re.push.apply(K.Re,W.Re);W.y9&&K.y9.push.apply(K.y9,W.y9)}; g.Ff=function(K,W,U,h,m,S){W=W===void 0?null:W;var f={role:"menu"};W&&(f.id=W);W=new g.GW({T:"div",Z:"ytp-panel-menu",B:f});Cg.call(this,K,W,U,h,m,S);this.menuItems=W;this.items=[];g.k(this,this.menuItems)}; jmL=function(K){return K.array.slice(V1p(K,0x7ffffffffffff),K.array.length)}; yv=function(){YE.apply(this,arguments);this.requestHeaders={}}; Xt=function(K,W,U){W.startSecs+=isNaN(K.J)?0:K.J;K=K.Gm;K.DA.push(W);K.publish("cuepointsadded",U)}; mN$=function(K){K.D.L5("shopping_overlay_visible");K.D.L5("shopping_overlay_preview_collapsed");K.D.L5("shopping_overlay_preview_expanded");K.D.L5("shopping_overlay_expanded")}; zm$=function(K,W){var U=!(!K.m&&!K.M),h=!(!K.mac3&&!K.MAC3),m=!(!K.meac3&&!K.MEAC3);K=!(!K.i&&!K.I);W.QA=K;return U||h||m||K}; Srp=function(K){this.provider=K;this.Y=!1;this.j=0;this.W=-1;this.uA=NaN;this.N=0;this.segments=[];this.G=this.U=0;this.previouslyEnded=!1;this.jV=this.provider.iX.getVolume();this.J=this.provider.iX.isMuted()?1:0;this.X=nM(this.provider)}; g.Ug=function(K,W,U){return K!==null&&W in K?K[W]:U}; SH_=function(K){return g.TA("client-screen-nonce-store",{})[K===void 0?0:K]}; Kq=function(K,W){var U=[];K=g.z(K.array);for(var h=K.next();!h.done&&!(h=h.value,h.contains(W)&&U.push(h),h.start>W);h=K.next());return U}; Ow=function(K){jf.call(this,K);var W=this;this.loaded=!1;this.overlay=null;this.events=new g.Te(K);g.k(this,this.events);this.j=new g.Te(K);g.k(this,this.j);this.events.S(K,"modulesCreated",function(){W.JC()&&W.load()}); this.events.S(K,"modulesDestroyed",function(U){var h=!0;switch(U){case 2:case 3:h=!1;break;case 4:h=W.api.getPresentingPlayerType()===1}h&&W.unload()})}; g.PR=function(K){K.stop();K.jA()}; It_=function(K,W){a:{if(K.J>0){var U=Math.floor((0,g.AI)()/1E4);if(U===W.hd){if(W.qR>=K.J){W.qR===K.J&&(U={reason:"toomanyrequests"},U.limit=W.qR,K.loader.handleError("player.exception",U),W.qR+=1);W=!1;break a}}else W.hd=U,W.qR=0}W=!0}if(!W||K.loader.isSuspended&&K.loader.HE)return!1;if(K.jV&&(0,g.AI)()0)||K.policy.Ms&&K.j.length===1&&K.j[0].qW()?!0:!1){var h;W=(h=K.Gm.jV)!=null&&Rq(h,K.policy,K.W,K.loader.Xq)?!0:!1}return W?!0:!1}; Zx=function(K,W){(K.loader=W)?YJe(K,!0):eE(K)}; Di=function(K){jf.call(this,K);var W=this;K.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new VL(W.api,W.api.Es()),g.k(W,W.menuItem))}); K.addEventListener("openSettingsMenuItem",function(U){if(U==="menu_item_sleep_timer"){if(!W.menuItem){var h;(h=W.api.Es())==null||h.Kr()}W.menuItem.open()}}); fZ(K,"resetSleepTimerMenuSettings",function(){W.resetSleepTimerMenuSettings()}); fZ(K,"setSleepTimerTimeLeft",function(U){W.setSleepTimerTimeLeft(U)}); fZ(K,"setVideoTimeLeft",function(U){W.setVideoTimeLeft(U)})}; gX=function(K,W){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=W||K(this.triggerType)}; W5=function(K,W){Array.isArray(W)&&(W=W.join(" "));W===""||W==void 0?(fK_||(W={},fK_=(W.atomic=!1,W.autocomplete="none",W.dropeffect="none",W.haspopup=!1,W.live="off",W.multiline=!1,W.multiselectable=!1,W.orientation="vertical",W.readonly=!1,W.relevant="additions text",W.required=!1,W.sort="none",W.busy=!1,W.disabled=!1,W.hidden=!1,W.invalid="false",W)),W=fK_,"label"in W?K.setAttribute("aria-label",W.label):K.removeAttribute("aria-label")):K.setAttribute("aria-label",W)}; Uc=function(K,W,U,h){for(var m=Number(W.getAttribute("data-overlay-order"))||0,S=0,f=null,G=g.z(U.children),I=G.next();!I.done;I=G.next()){I=I.value;if(h&&I.classList.contains("ytp-overlay-inline-container")){f=I;break}if(m<(Number(I.getAttribute("data-overlay-order"))||0))break;S++}f?Uc(K,W,f,!1):h?(K=document.createElement("div"),K.classList.add("ytp-overlay-inline-container"),K.setAttribute("data-overlay-order",""+m),f=K,f.appendChild(W),LB(U,f,S)):LB(U,W,S)}; Gwp=function(K){if(!K.element)return!1;var W=K.element,U=K.X.j.N,h=nm().j.j;K.W=new U.IntersectionObserver(G_(h,function(m){return ds(K,m)}),t0p); h=G_(h,function(){K.W.unobserve(W);K.W.observe(W);ds(K,pDC(K))}); U.ResizeObserver?(K.J=new U.ResizeObserver(h),K.J.observe(W)):U.MutationObserver&&(K.Y=new g.qs.MutationObserver(h),K.Y.observe(W,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));K.W.observe(W);ds(K,pDC(K));return!0}; Aw=function(K){g.hc("transport_use_scheduler")?g.MU.tD(K):g.qE(K)}; B2=function(){this.j=0}; nM=function(K){var W=new irp,U;W.N=((U=b6s(K).cc)==null?void 0:U.toString())||"-";W.playbackRate=K.iX.getPlaybackRate();U=K.iX.getVisibilityState();U!==0&&(W.visibilityState=U);K.C.Ik&&(W.X=1);W.W=K.videoData.HM;W.compositeLiveStatusToken=K.videoData.compositeLiveStatusToken;W.heartbeatLoggingToken=K.videoData.heartbeatLoggingToken;U=K.iX.getAudioTrack();U.ZO&&U.ZO.id&&U.ZO.id!=="und"&&(W.audioId=U.ZO.id);W.connectionType=Ln_(K);W.volume=K.iX.getVolume();W.muted=K.iX.isMuted();W.clipId=K.iX.Ag()|| "-";W.j=K.videoData.g8||"-";return W}; Pc=function(K){var W=(484).toString();K&&(W=(483).toString());return W}; IKC=function(K,W){for(var U=[],h=g.z(Object.keys(K.j)),m=h.next();!m.done;m=h.next())m=m.value,U.push(m+"_"+K.j[m].type+"_"+K.j[m].status);return U.join(W)}; dNL=function(K){for(var W=[],U=[],h=g.z(K.X),m=h.next();!m.done;m=h.next())m=m.value,m.bitrate<=K.W?W.push(m):U.push(m);W.sort(function(S,f){return f.bitrate-S.bitrate}); U.sort(function(S,f){return S.bitrate-f.bitrate}); K.X=W.concat(U)}; g.q2=function(){var K=oGY();if(!K)return{};try{var W=K.get("yt-player-lv");return JSON.parse(W||"{}")}catch(U){return{}}}; h0s=function(K){var W,U;if((W=K.Ms)==null?0:(U=W.Y0)==null?0:U.itagDenylist){var h;K.Eq((h=K.Ms)==null?void 0:h.Y0.itagDenylist)}var m;if((m=K.Ms)==null?0:m.playbackStartPolicy){var S,f;cD(K.policy,(S=K.Ms)==null?void 0:S.playbackStartPolicy,3,(f=K.Ms)==null?void 0:f.PN())}if(K.policy.gN){W=K.G7();var G;(U=W?(G=K.Ms)==null?void 0:G.NQ.get(W):void 0)&&K.X.hf(U,-1)}if(!K.Gm.Ms){var I;G=(I=K.Ms)==null?void 0:I.kR;(G==null?0:G.Xf)&&(G==null?0:G.MM)&&K.Gm.mK&&nY(K.Gm,G.Xf,G.MM)}var d;((d=K.Ms)==null?0: d.Iv)&&(I=K.Ms.Iv.get(K.G7()||""))&&K.Gm&&I.formatId&&(K=K.Gm.N.get(n5(I.formatId)))&&(K.info.debugInfo=I.debugInfo)}; g.rM=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; DNz=function(K,W){var U={};if(K.app.V().uX){K=g.z(JS$);for(var h=K.next();!h.done;h=K.next())h=h.value,W.hasOwnProperty(h)&&(U[h]=W[h]);if(W=U.qoe_cat)K="",typeof W==="string"&&W.length>0&&(K=W.split(",").filter(function(m){return e8Y.includes(m)}).join(",")),U.qoe_cat=K; EhD(U)}else for(K=g.z(B3s),h=K.next();!h.done;h=K.next())h=h.value,W.hasOwnProperty(h)&&(U[h]=W[h]);return U}; $$C=function(K,W){W=W===void 0?Qpp:W;if(!Hue){var U;K=(U=K.navigator)==null?void 0:U.userAgentData;if(!K||typeof K.getHighEntropyValues!=="function"||K.brands&&typeof K.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));LX$((K.brands||[]).map(function(m){var S=new Hq;S=Ya(S,1,m.brand);return Ya(S,2,m.version)})); typeof K.mobile==="boolean"&&$a(DB,2,sh(K.mobile));Hue=K.getHighEntropyValues(W)}var h=new Set(W);return Hue.then(function(m){var S=DB.clone();h.has("platform")&&Ya(S,3,m.platform);h.has("platformVersion")&&Ya(S,4,m.platformVersion);h.has("architecture")&&Ya(S,5,m.architecture);h.has("model")&&Ya(S,6,m.model);h.has("uaFullVersion")&&Ya(S,7,m.uaFullVersion);return S.ri()}).catch(function(){return DB.ri()})}; T3L=function(K){var W=K.videoData;rSL(K,K.dH).then(void 0,function(U){K.videoData!==W||W.qs()||(U=XI(U),U.errorCode==="auth"&&K.videoData.errorDetail&&K.videoData.errorDetail!=="7"?K.jB(U.errorCode,2,unescape(K.videoData.errorReason),GR(U.details),K.videoData.errorDetail,K.videoData.hF||void 0):K.handleError(U))})}; I0=function(){this.keys=[];this.values=[]}; aKp=function(K){for(var W=g.z(Object.values(K.U)),U=W.next();!U.done;U=W.next())U.value.dispose();K.U={};K.X=null;K.G=null;Og(K)}; C2z=function(K,W){return W.done?s0(W.value):Sx(qd(W.value.Pm,function(U){return C2z(K,K.next(U))}),function(U){return C2z(K,K.throw(U))})}; iO=function(K,W){return gH(K,W)>=0}; ac2=function(K,W,U){if(!TJe(K,W))return 0;if(!K.vN||!isNaN(U)&&U>0)return 2;if(W<0)return 1;U=K.Rn();return W(0,g.AI)()?0:1}; KpF=function(K,W){var U,h,m,S;return g.r(function(f){if(f.j==1)return g.Bj(f,2),U=avs(W),h={context:g.Sc(K),playerRequest:{videoId:K.videoId},disablePlayerResponse:!0},m=g.ek(kwY),g.T(f,g.Es(U,h,m),4);if(f.j!=2)return S=f.X,!S||"error"in S&&S.error||g.NZ(K,{raw_reel_item_watch_response:S}),g.xL(f,0);g.SV(f);g.q1(f)})}; vY=function(K,W){this.breakDurationMs=K;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=W||""}; ETC=function(K){var W=E5p();W&&document.addEventListener(W,K,!1)}; o9=function(K){var W,U;return((W=K.j)==null?void 0:(U=W.Z5)==null?void 0:U.ZY)||0}; IGY=function(K){this.iZ=qR(K)}; Gvp=function(K,W){K=DS_(K.Gm.j,function(U){return U.info.itag===W}); if(!K)throw Error("Itag "+W+" from server not known.");return K}; Ot=function(K,W,U,h){if(K.Xx.get().k5(W.kind==="AD_PLACEMENT_KIND_START"))if(U===void 0)UF("Expected SSAP layout ID in renderer",void 0,void 0,{caller:h});else return U}; iue=function(K,W,U){return X_(K,function(){var h=this;return function S(){var f,G,I,d,J,e,E,B,D;return L5(S,function(a){switch(a.j){case 1:g.bE(a,2);f=[];G=function(){return"wasm.ps.c: ["+f.map(function(Q){return'"'+Q+'"'}).join(", ")+"]"}; I=S7C(W);if(I.mod)return a.return(I.mod);if(!I.modP){a.O5(4);break}g.Bj(a,5);d=l0;return Ev(a,qj(I.modP),7);case 7:return a.return(d(a.X));case 5:g.SV(a),f.unshift("pcm");case 4:if((J=I.bin)||!I.binP){a.O5(8);break}g.Bj(a,9);e=l0;return Ev(a,qj(I.binP),11);case 11:J=e(a.X);g.xL(a,8);break;case 9:g.SV(a),f.unshift("pfb");case 8:if(J){a.O5(12);break}g.Bj(a,13);E=l0;return Ev(a,qj(f3Y(W)),15);case 15:J=E(a.X);g.xL(a,12);break;case 13:throw g.SV(a),h.X=!1,f.unshift("fb"),G();case 12:if(h.j&&!U)try{return a.return(new WebAssembly.Module(J))}catch(Q){h.j= !1,f.unshift("cs")}g.Bj(a,16);B=l0;return Ev(a,qj(WebAssembly.compile(J)),18);case 18:return a.return(B(a.X));case 16:D=g.SV(a),NjR(W),f.unshift("ca: "+D);case 17:throw G();case 2:g.VY(a),g.vr(a,0)}})}()})}; g.x3=function(K,W,U){g.p.call(this);this.j=null;this.W=!1;this.G=K;this.U=U;this.X=W||window;this.N=(0,g.wr)(this.Qi,this)}; z8C=function(K,W,U,h){Kts(K,W,U,"skipped",function(){V5(K,h)})}; N32=function(K,W,U){var h=!1;if(U=K.j.j.get(U)){U=g.z(U);for(var m=U.next();!m.done;m=U.next())m=m.value,m.durationMs!==0&&m.W2!==m.Ua&&(m=m.cpn,W===m&&(h=!0),h&&!K.Pl.has(m)&&(K.bZ({decoratedAd:m}),K.Pl.add(m)))}}; VO$=function(){return g.PP("iemobile")||g.PP("windows phone")&&g.PP("edge")}; g.dGR=function(){var K=g.SZ("yt-player-caption-language-preferences");return K?K:[]}; ASs=function(){var K=document.queryCommandSupported&&document.queryCommandSupported("copy");Las("Chromium")>=43&&(K=!0);Las("Firefox")<=40&&(K=!1);return K}; R82=function(K,W,U){var h=W.j?W.j.Wp.T9:W.Wp.T9;var m=K.W,S;(S=!K.policy.zY)||(S=eA(43,h.j)===eA(10,h.X));S?h=!1:(m=Na(m,eA(42,h.X)),S=6E4*Math.pow(m.W,1.6),(0,g.AI)()0&&!tc(K.videoData)||U||K.seekTo(K.jj(),{JS:"videoplayer_playbackData",seekSource:18})}if(K.videoData.N.j){if(VPp(K.videoData)){K.jB("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",GR({missabrurl:1}));return}K.loader?g.eI(Error("Duplicated Loader")):(U=g.jV(K.C.experiments,"html5_onesie_defer_content_loader_ms"))&& K.B0()&&HEC(K.vl.nu,K.videoData.gR)?g.FE(function(){K.qs()||K.loader||C0(K)},U):C0(K)}else!K.videoData.N.j&&te(K.videoData)&&K.Aa(new P4(K.videoData.videoId||"",4)); K.Kw();wLp(W).then(function(){var h={};K.XA(h);K.C.G9()&&K.L("html5_log_media_perf_info")&&K.rk("av1Info",h);dA(K)})}}; ySL=function(K,W){return Object.is(K,W)}; El=function(K,W){this.C=K;this.timerName="";this.N=!1;this.X=NaN;this.W=new kle;this.j=W||null;this.N=!1}; g.jn=function(K,W){var U=g.Xl.apply(2,arguments);K=K===void 0?0:K;g.EB.call(this,W,U);this.errorType=K;Object.setPrototypeOf(this,this.constructor.prototype)}; et=function(K,W){W=g.yc(K,{playerType:W});if(!W)return K.gH.j.Id();W=AA(K,W);return mZ(K,W.Id(),W)}; M0z=function(K,W,U){U=U===void 0?K.V().schedule:U;var h,m,S,f,G,I,d,J,e,E,B,D,a,Q,u,O,N,A,Z,x,b,KR,fR,jp,I2,hF;return g.r(function(w$){if(w$.j==1)return W.fetchType="onesie",h=eHL(W,K.getPlayerSize(),K.getVisibilityState()),m=new k2(K,h,U),g.T(w$,m.fetch(),2);S=w$.X;f={player_response:S};W.loading=!1;G=K.vl.nu;if(m.T5){I=g.z(m.T5.entries());for(d=I.next();!d.done;d=I.next())J=d.value,e=g.z(J),E=e.next().value,B=e.next().value,D=E,a=B,G.j.set(D,a,180),D===W.videoId&&(Q=a.YX(),W.vr=Q);G.Lj=m}u=g.z(m.Lm.entries()); for(O=u.next();!O.done;O=u.next())N=O.value,A=g.z(N),Z=A.next().value,x=A.next().value,b=Z,KR=x,G.X.set(b,KR,180);g.NZ(W,f,!0);if(W.loading||xe(W))return w$.return(Promise.resolve());G.j.removeAll();G.X.removeAll();W.vr=[];fR={};jp="onesie.response";I2=0;W.errorCode?(jp="auth",fR.ec=W.errorCode,fR.ed=W.errorDetail,fR.es=W.hF||"",I2=2):(fR.successButUnplayable="1",fR.disposed=""+ +W.qs(),fR.afmts=""+ +/adaptiveFormats/.test(S),fR.cpn=W.clientPlaybackNonce);hF=new g.F3(jp,fR,I2);return w$.return(Promise.reject(hF))})}; g.k$=function(K){return ik(document,K)}; PV=function(K){K.W=void 0;K.X=0;K.N=0}; p8Y=function(K){K&&K!=="web"&&PD_.includes(K)}; ZW=function(K,W,U){this.videoData=K;this.C=W;this.iX=U;this.j=void 0}; x_2=function(K,W){var U=K.j.j;if(U){K.videoInfos=K.G;var h=g.dG(K.videoInfos,function(m){return m.id===U}); h&&h.video.qualityOrdinal===W?K.videoInfos=[h]:(h=K.videoInfos.map(function(m){return m.id}),K.loader.rk("sabrpf",{pfid:""+U, vfids:""+h.join(".")}),fr(K,W,W),i6(K.j,""))}else fr(K,W,W)}; qL=function(K,W,U,h,m,S,f,G){this.j=K;this.Y=W;this.N=U;this.U=h;this.W=m;this.G=S;this.X=f;this.J=G}; ohe=function(K,W){return function(U,h){var m={YE:!0};h&&Object.assign(m,h);U=GGs(U,void 0,void 0,m);try{var S=new K,f=S.iZ;yY(W)(f,U);var G=S}finally{U.free()}return G}}; Sn=function(K){var W=K.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";OI.call(this,W,g.dV.N6);var U=this;this.D=K;this.j=!1;this.X=new g.QC(function(){g.WR(U.element,"ytp-menuitem-highlighted")},0); this.pg=K.Es();K=K.L("delhi_modern_web_player_icons")?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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(K);this.subscribe("select",this.N,this);this.listen(DH,this.W);g.k(this,this.X)}; GU=function(K,W,U,h,m,S,f,G,I){return WC(U,Dcz())||U.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.P(U.renderingContent,fq)!==void 0?new xn(K,W,U,h,m,S,f,G,I):WC(U,{Xd:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],oR:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||U.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.P(U.renderingContent,ZuR)!==void 0? new dZ(K,W,U,h,m,S,f,G,I):WC(U,Nse())||U.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.P(U.renderingContent,d2)!==void 0?new t8(K,W,U,h,S):WC(U,kTe())?new ZT(W,U,K,h,m,I):WC(U,{Xd:["metadata_type_instream_ad_player_overlay_renderer"],oR:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new WG(K,W,U,h,m,G):U.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.P(U.renderingContent,buC)!==void 0?new hk(K,W,U,h,S):null}; Oo2=function(K,W,U,h){var m,S,f;return g.r(function(G){switch(G.j){case 1:if(K.j){G.O5(2);break}return g.T(G,h.importKey("raw",K.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:K.j=G.X;case 2:return m=new Uint8Array(W.length+U.length),m.set(W),m.set(U,W.length),S={name:"HMAC",hash:"SHA-256"},g.T(G,h.sign(S,K.j,m),4);case 4:return f=G.X,G.return(new Uint8Array(f))}})}; vcp=function(K,W,U,h,m,S,f,G){K=DnD(K,U,S,f,h,function(I){var d=I.slotId;I=G(I);d=bh(W.X.get(),"LAYOUT_TYPE_FORECASTING",d);var J={layoutId:d,layoutType:"LAYOUT_TYPE_FORECASTING",wk:"core"},e=new Map,E=m.impressionUrls;E&&e.set("impression",E);return{layoutId:d,layoutType:"LAYOUT_TYPE_FORECASTING",uZ:e,layoutExitNormalTriggers:[new F0(W.j,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new Ff2(m), new vM(U)]),t7:I(J)}}); return K instanceof v?K:[K]}; I3=function(K){return!!K.j||!!K.X}; V0p=function(K,W){if(W+1<=K.totalLength){var U=pM(K,W);U=U<128?1:U<192?2:U<224?3:U<240?4:5}else U=0;if(U<1||!(W+U<=K.totalLength))return[-1,W];if(U===1)K=pM(K,W++);else if(U===2)U=pM(K,W++),K=pM(K,W++),K=(U&63)+64*K;else if(U===3){U=pM(K,W++);var h=pM(K,W++);K=pM(K,W++);K=(U&31)+32*(h+256*K)}else if(U===4){U=pM(K,W++);h=pM(K,W++);var m=pM(K,W++);K=pM(K,W++);K=(U&15)+16*(h+256*(m+256*K))}else U=W+1,K.focus(U),Mx(K,U,4)?K=sms(K).getUint32(U-K.N,!0):(h=pM(K,U+2)+256*pM(K,U+3),K=pM(K,U)+256*(pM(K,U+1)+ 256*h)),W+=5;return[K,W]}; qis=function(K,W,U,h,m,S,f,G){f=f===void 0?!1:f;var I=[];try{var d=[];if(U.renderer.linearAdSequenceRenderer)var J=function(Q){Q=d5Y(Q.slotId,U,W,m(Q),h,S,f);d=Q.hPH;return Q.Jl}; else if(U.renderer.instreamVideoAdRenderer)J=function(Q){var u=Q.slotId;Q=m(Q);var O=f,N=U.config.adPlacementConfig,A=fQL(N),Z=A.QO,x=A.WI;A=U.renderer.instreamVideoAdRenderer;var b;if(A==null?0:(b=A.playerOverlay)==null?0:b.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var KR=IS(A,O);b=Math.min(Z+KR.videoLengthSeconds*1E3,x);O=new O3(0,[KR.videoLengthSeconds]);x=KR.videoLengthSeconds;var fR=KR.playerVars,jp=KR.instreamAdPlayerOverlayRenderer,I2= KR.playerOverlayLayoutRenderer,hF=KR.adVideoId,w$=IQz(U),vs=KR.uZ;KR=KR.rB;var Sf=A==null?void 0:A.adLayoutLoggingData;A=A==null?void 0:A.sodarExtensionData;u=bh(W.X.get(),"LAYOUT_TYPE_MEDIA",u);var mj={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",wk:"core"};return{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",uZ:vs,layoutExitNormalTriggers:[new ng(W.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new i2(h), new YA(x),new zI(fR),new SQ(Z),new ff(b),jp&&new OH(jp),I2&&new cw(I2),new vM(N),new kq(hF),new u2(O),new l2(w$),A&&new oX(A),new NV({current:null}),new Pq({}),new vJ(KR)].filter(NMp)),t7:Q(mj),adLayoutLoggingData:Sf}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var e=hHp(K,h,U.adSlotLoggingData,J,G);I.push(e);for(var E=g.z(d),B=E.next();!B.done;B=E.next()){var D=B.value,a=D(K,m);if(a instanceof v)return a;I.push.apply(I,g.z4(a))}}catch(Q){return new v(Q,{errorMessage:Q.message,AdPlacementRenderer:U,numberOfSurveyRenderers:X8C(U)})}return I}; g.dI=function(K,W){var U=U===void 0?0:U;var h=new BnC;vT(h,2,jR(K));K=vhe[W];if(typeof K==="undefined")throw U=new g.EB("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),g.wG(U),U;Xa(h,4,K);Xa(h,5,1);W=new Uint8Array(h.j.buffer,h.j.byteOffset,h.pos);return encodeURIComponent(g.o0(W,U))}; g.dj=function(K,W){return W?K.j.concat(K.X):K.j}; Tn_=function(K,W){K.publish("settingChange",K.setting+"Override",!W);K.pg.HN()}; qrY=function(K){return g.SZ("yt-player-drc-pref")?g.yb(K,WK):K}; var xNR=function(K){return gt[t[11]](this,9,K)}; Qi=function(){}; ib=function(K,W,U,h,m,S,f){var G=G===void 0?new JCL(function(){var I=K.V(),d=K.getVideoData(1);return g.UY(I,d?g.mp(d):"")},function(){return K.V().pageId},function(){return K.V().DA},function(){var I; return(I=K.V().datasyncId)!=null?I:""},function(){return K.V().experiments}):G; this.D=K;this.X=W;this.yg=U;this.ZA=h;this.Yd=m;this.Xx=S;this.Pu=f;this.W=G;this.jM=null;this.j=new Map;this.N=new zzF(G,this.Xx)}; Rc=function(K,W){return W>K.mediaTime+K.U&&W0){var f=W.onTimeout;var G=g.FE(function(){m||(m=!0,S.abort(),g.qE(G),f.call(W.context||g.qs,S))},h)}return S}; t32=function(K){switch(K){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}}; LH$=function(K){return K.data[K.j]||0}; ob=function(K){this.j=K}; g.KH=function(K,W){var U=g.Rz();return U?U.publish.apply(U,arguments):!1}; var BrL=function(){return XN[t[11]](this,35)}; KZY=function(){g.kQ(function(){var K=P8();requestAnimationFrame(function(){setTimeout(function(){K===P8()&&XL("ftl",void 0,void 0)},0)})})()}; EY=function(K,W,U,h,m,S){m=m===void 0?!1:m;S=S===void 0?!1:S;vh.call(this,K,{T:"button",Z:"ytp-ad-button-vm"},"ad-button",W,U,h);this.buttonText=this.buttonIcon=null;this.hide();this.j=m;this.X=S}; L9=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B,D,a,Q,u){zE.call(this,K,W,U,h,m,S,f,G,d,J,e,E,B,D,a,Q,u);var O=this;this.xm=I;this.iA=e;this.o9=!0;this.lO=this.Zg=0;this.XT=rr(function(){ZRs(N0(O));O.rf.Fo(O.slot,O.layout)}); this.IS=rr(function(){PHC(N0(O));O.RW!=="rendering_stop_requested"&&O.iA(O);O.layoutExitReason?O.rf.De(O.slot,O.layout,O.layoutExitReason):pTL(O)}); this.timer=new g.j8(200);this.timer.listen("tick",function(){O.Ym()}); g.k(this,this.timer)}; g.Ts=function(K){var W=new NM;return W.isAvailable()?K?new J8(W,K):W:null}; O0F=function(){uw.call(this)}; Uzs=function(K){return o8s()===2?g.yb(K,WZD):K}; htF=function(K){if((K=K.Y)==null)K=void 0;else if(K.Wl.length===0||K.policy.HM&&K.j<0)K=null;else{var W=K.Wl[K.j]?K.Wl[K.j].formatId:null;K=W?(K=K.Gm.N.get(n5(W)))?K.info:null:null}return K||null}; oX=function(K){this.value=K}; fM=function(K,W,U){K=K===void 0?"":K;W=W===void 0?null:W;U=U===void 0?!1:U;g.GP.call(this);var h=this;this.sourceUrl=K;this.isLivePlayback=U;this.vp=this.duration=0;this.isPremiere=this.tv=this.W=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.L_=this.DE=0;this.isOtf=this.mK=!1;this.Le=(0,g.AI)();this.uX=Infinity;this.j={};this.N=new Map;this.state=this.Bo=0;this.Y=null;this.isManifestless=!1;this.DA=[];this.U=null;this.hK=0;this.G="";this.eV=NaN;this.PS=this.X5=this.timestampOffset=this.J=0;this.q7= this.LG=NaN;this.Af=0;this.tK=this.Ms=!1;this.Bp=[];this.JK={};this.Ns=NaN;this.xd={rZx:function(G){I_(h,G)}}; var m;this.Pp=(m=W)==null?void 0:m.Rk("html5_use_network_error_code_enums");WP2=!!W&&W.Rk("html5_modern_vp9_mime_type");var S;co=!((S=W)==null||!S.Rk("html5_enable_flush_during_seek"))&&g.Km();var f;n8=!((f=W)==null||!f.Rk("html5_enable_reset_audio_decoder"))&&g.Km()}; j3$=function(){var K=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; g.K6=function(K,W,U,h){h=h===void 0?!1:h;Eg.call(this);this.mediaElement=K;this.start=W;this.end=U;this.j=h}; g.xh=function(K,W,U,h){return new ZO(g.YJ[K]||0,g.YJ[W]||0,U,h)}; mze=function(K,W){K.yX().autonavState=W;g.SI("yt-player-autonavstate",W);K.Yx.publish("autonavchange",W)}; NeC=function(K){var W={tick:{},info:{}};g.Vk("ytcsi."+(K||"")+"data_",W);return W}; ScR=function(K,W,U,h,m,S,f,G,I){var d=Number(h.durationMilliseconds);return isNaN(d)?new v("Expected valid duration for AdActionInterstitialRenderer."):function(J){return Pk2(W,J.slotId,U,h,d,{impressionCommands:void 0,abandonCommands:h.abandonCommands?[{commandExecutorCommand:h.abandonCommands}]:void 0,completeCommands:h.completionCommands},h.skipPings?new Map([["skip",h.skipPings]]):new Map,f(J),function(e){return zXL(K,e,m,function(E,B){var D=E.slotId;E=f(E);D=bh(W.X.get(),"LAYOUT_TYPE_ENDCAP", D);return lq(W,D,B,U,E,"LAYOUT_TYPE_ENDCAP",[new bZ(h),G],h.adLayoutLoggingData)})},I,S-1,h.adLayoutLoggingData,S)}}; d0e=function(){this.N=!0;this.X=0;this.j=""}; g.HQ=function(K){Eg.call(this);var W=this;this.j=K;this.U={};this.listener=function(U){W.dispatchEvent(new j9(W,U.type,U))}}; km=function(K,W){return!K.G&&zl()&&MP(55)&&K.controlsType==="3"&&!W}; ugD=function(K){this.xhr=K}; jqs=function(K,W){var U,h;return g.r(function(m){return m.j==1?(U=[],g.T(m,g.Vm(OS,W),2)):m.j!=3?(h=m.X,g.T(m,g.b5(h,["databases"],{e0:!0,mode:"readonly"},function(S){U.length=0;return g.sZ(S.objectStore("databases"),{},function(f){K(f.getValue())&&U.push(f.getValue());return g.V3(f)})}),3)):m.return(U)})}; fee=function(K){Lep(K.dk.get(),!0);var W;((W=K.shrunkenPlayerBytesConfig)==null?0:W.shouldRequestShrunkenPlayerBytes)&&K.dk.get().Yo(!1)}; nQ=function(){eo.apply(this,arguments)}; id=function(K){try{return(typeof K==="string"?K:String(JSON.stringify(K))).substr(0,500)}catch(W){return"unable to serialize "+typeof K+" ("+W.message+")"}}; BBR=function(K){K=this.N=K;var W=(0,g.wr)(this.wlU,this);K.W=W;K=this.N;W=(0,g.wr)(this.jur,this);K.Y=W;this.X={};this.j={}}; LcR=function(K,W,U){if(!ygY(W,U))return W=Ov(W.info),W.smst="1",K.loader.handleError("fmt.unparseable",W||{},1),!1;isNaN(K.DA)&&(K.DA=U);return!0}; U9=function(K){return p0(K).then(function(W){return W?new ak(K,W):null})}; tn$=function(K,W){K.jX()&&!DTC(K.OO.X)||K.callback.De(K.slot,K.layout,W)}; Sp=function(K,W){K=K.j.get(W);if(K!==void 0)return K.get()}; en=function(){var K=window;this.events=[];this.X=K||g.qs;var W=null;K&&(K.google_js_reporting_queue=K.google_js_reporting_queue||[],this.events=K.google_js_reporting_queue,W=K.google_measure_js_timing);this.j=hY()||(W!=null?W:Math.random()<1)}; nMY=function(K){K=g.z(K);for(var W=K.next();!W.done;W=K.next())if(W=W.value,W.url&&(W=W.url.split("expire/"),!(W.length<=1)))return+W[1].split("/")[0];return NaN}; rSL=function(K,W){W=W===void 0?K.V().schedule:W;K.qy("vir");K.qy("ps_s");S8("vir",void 0,"video_to_ad");W=GUz(K,W);W.then(function(){K.qy("virc");S8("virc",void 0,"video_to_ad");K.qy("ps_r");S8("ps_r",void 0,"video_to_ad")},function(){K.qy("virc"); S8("virc",void 0,"video_to_ad")}); return W}; Fes=function(K){if(!K.api.V().DO){var W=K.api.getVideoData(),U=new g.OZ("Subscribe",null,"Subscribed",null,!0,!1,W.R5,W.subscribed,"channel_avatar",null,K.api,!0);K.api.createServerVe(U.element,K);var h;K.api.setTrackingParams(U.element,((h=W.subscribeButtonRenderer)==null?void 0:h.trackingParams)||null);K.S(U.element,"click",function(){K.api.logClick(U.element)}); K.subscribeButton=U;g.k(K,K.subscribeButton);K.subscribeButton.U5(K.element)}}; IeY=function(K,W){W.sort(function(U,h){return U.toString().localeCompare(h.toString(),K.Tm.hostLanguage)})}; dzF=function(K,W,U,h,m,S,f,G,I,d){var J=m-h,e,E=((e=K.fulfilledLayout||Sp(K.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Sp(e.clientMetadata,"metadata_type_ssdai_ads_config"))||"",B,D;(e=(B=Sp(K.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(D=B.current)==null?void 0:D.identifier)||UF("Cue point identifier is undefined",K,W,I());if(!J)return f.OB(U,E,2,S,h,m,K.slotId,e),VE(d,"ads_iraot","slid."+W.layoutId+";enterMs."+h+";exitMs."+m+";vid."+U.video_id),null;J= f.kz(U,E,2,S,h,m,K.slotId,e);VE(d,"ads_atct","slid."+W.layoutId+";enterMs."+h+";exitMs."+m+";vid."+U.video_id+";pid."+J+";cid."+e);if(!J)return UF("Unexpected failure to add to playback timeline",K,W,I()),null;K=K.slotId;W=W.layoutId;J?(G.j.has(J)&&UF("Unexpected remap of timeline playback"),G.j.set(J,{slotId:K,layoutId:W})):UF("Invalid timeline playback ID");h+S>m&&f.Te(J,m-h);return J}; q9=function(K,W){g.xf(K.policy.W)!==4&&(g.yX(K.policy.W,4),g.eI(W),K.J.reject(new LO(W.message)))}; J8C=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{T:"path",B:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{T:"path",B:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; Un=function(K,W){K.message&&g.eI(Error(W+"_"+K.message))}; E1=function(K,W,U,h){var m=h[K];if(m)return m;m={};m.iE=h;m.iS=QoD(h[0]);var S=h[1],f=1;S&&S.constructor===Object&&(m.extensions=S,S=h[++f],typeof S==="function"&&(m.p8=!0,Re!=null||(Re=S),eUp!=null||(eUp=h[f+1]),S=h[f+=2]));for(var G={};S&&Array.isArray(S)&&S.length&&typeof S[0]==="number"&&S[0]>0;){for(var I=0;IJ&&(J=B.getInfo().audio.numChannels)}J>2&&K.rk("hlschl",{mn:J});var Q;((Q=K.DO)==null?0:Q.X)&&K.rk("hlsfmtaf",{itags:e.join(".")});var u;if(K.L("html5_enable_vp9_fairplay")&&((u=K.U)==null?0:eV(u)))for(K.rk("drm",{sbdlfbk:1}),J=g.z(K.VA),e=J.next();!e.done;e=J.next())if(e=e.value,H4(e)){K.U=e;break}og(K,d)})}return pC()}; IO=function(K,W,U,h){g.p.call(this);this.policy=K;this.X=W;this.vl=U;this.JK=h;this.Ns=this.vp=0;this.uX=-1;this.DA=this.U=0;this.Ms=!1;this.interruptions=[];this.W=[{stamp:0,net:0,max:0}];this.Le=this.G=(0,g.AI)();this.J=new B5(4,1,.6,.4);this.hK=new B5(4,1,.6,.4);this.Y=new B5(20,1,.5,.4);K.uX?this.N=new Dzz(K.j):K.X?this.N=new xS(K.j):this.N=new B5(K.j,20,.5,.4);this.eV=new B5(5,1,.25);this.jV=new B5(30,1,.5);K=g.SZ("yt-player-bandwidth")||{};W=this.policy.N;if(K.byterate>0)W=K.byterate,this.Ms= !0;else{var m;U=(((m=navigator.connection)==null?void 0:m.downlink)||0)*64*1024;U>0&&(W=U,this.Ms=!0)}this.N.gj(this.policy.G,W);K.delay>0&&this.J.gj(1,Math.min(K.delay,2));K.stall>0&&this.Y.gj(1,K.stall);K.init>0&&(this.Le=Math.min(K.init,this.Le));K.interruptions&&(this.W=this.W.concat(K.interruptions),this.W.length>16&&this.W.pop());this.uX=(0,g.AI)();this.policy.Y>0&&(this.tK=new g.QC(this.Bp,this.policy.Y,this),g.k(this,this.tK),this.tK.start())}; i$p=function(K,W,U,h,m,S,f,G){G=G===void 0?!1:G;if(W.Iu&&f&&f.length>1&&!(W.V6>0||W.J)){for(var I=W.X||!!m,d=I&&W.Ez?S:void 0,J=HqL(W,h),e=[],E=[],B={},D=0;D=15E3?!0:K.Pp?(U===void 0?0:U)?!0:K.N>0?W>=K.N/2:K.hK>0?W>=K.hK:!1:!1}; TIL=function(K,W,U,h){yU.call(this,"survey-interstitial",K,W,U,h)}; Wo=function(K){return K.Ns==="adunit"||K.playerStyle==="gvn"}; Chz=function(K,W,U){K.n1===void 0&&(K.n1=K.T9.n1(W,U));return K.n1}; GV=function(K,W){return KW?1:0}; aeL=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;var h=void 0,m=Number((h=U.playbackPosition)==null?void 0:h.utcTimeMillis)/1E3,S=void 0;h=m+Number((S=U.duration)==null?void 0:S.seconds);S="embargo_"+m;K.api.addUtcCueRange(S,m,h,"embargo",!1);U.onEnter&&(K.j[S]=U.onEnter.filter(K.X))}}; H5=function(K,W){if((K=K.j.get(W))==null)K=void 0;else{K=K.buffer;for(W=[];K.X!==K.j;)K.X=(K.X+1)%K.data.length,W.push(K.data[K.X]);K=W}return K||[]}; uH=function(K,W){var U=K.adCpn||K.provider.videoData.clientPlaybackNonce,h=K.provider.getCurrentTime(U);g.Fa(K,W,"cmt",[h.toFixed(3)]);U=h=K.provider.Ho(U);if((!K.U||K.provider.C.L("html5_shorts_gapless_no_gllat")&&IG(K.provider.videoData)?0:U*1E3>K.U.W6+100)&&K.U){var m=K.U;U=m.isAd;h=h*1E3-m.W6;K.tG=W*1E3-m.k8s-h-m.QQK;m=(0,g.AI)()-h;W=K.tG;h=K.provider.videoData;var S=h.isAd();if(U||S){S=(U?"ad":"video")+"_to_"+(S?"ad":"video");var f={};h.G&&(f.cttAuthInfo={token:h.G,videoId:h.videoId});f.startTime= m-W;BN(S,f);g.y2({targetVideoId:h.videoId,targetCpn:h.clientPlaybackNonce},S);XL("pbs",m,S)}else m=K.provider.iX.Wh(),m.G!==h.clientPlaybackNonce?(m.U=h.clientPlaybackNonce,m.X=W):h.WN()||g.eI(new g.EB("CSI timing logged before gllat",{cpn:h.clientPlaybackNonce}));K.rk("gllat",{l:K.tG.toFixed(),prev_ad:+U});delete K.U}}; NT=function(K,W,U){XL("pbs",W!=null?W:(0,g.AI)(),U!=null?U:K.timerName)}; d8F=function(K,W){if(K.endpoint==="log_event"){or(K);var U=Za(K),h=sgY(K.payload)||"",m=T4C(h),S=200;if(m){if(m.enabled===!1&&!g.hc("web_payload_policy_disabled_killswitch"))return;S=o_L(m.tier);if(S===400){I8C(K,W);return}}$Z[U]=!0;U={cttAuthInfo:U,isJspb:!1,tier:S};Lz().storePayload(U,K.payload);Lx_(W,!1,U,aZ(h))}}; aPF=function(){var K=document.documentElement;try{if(!ZL(f_().top))return"2";var W=[],U=f_(K.ownerDocument);for(K=U;K!=U.top;K=K.parent)if(K.frameElement)W.push(K.frameElement);else break;return W&&W.length!=0?"1":"0"}catch(h){return"2"}}; w5p=function(K){K.provider.videoData.Cg&&hZ(K,"prefetch");K.provider.videoData.Bp&&K.rk("reload",{r:K.provider.videoData.reloadReason,ct:K.provider.videoData.Bp});K.provider.videoData.Vr&&hZ(K,"monitor");K.provider.videoData.isLivePlayback&&hZ(K,"live");up&&hZ(K,"streaming");K.provider.videoData.Lf&&K.rk("ctrl",{mode:K.provider.videoData.Lf},!0);if(K.provider.videoData.uT){var W=K.provider.videoData.uT.replace(/,/g,"_");K.rk("ytp",{type:W},!0)}K.provider.videoData.Nz&&(W=K.provider.videoData.Nz.replace(/,/g, "."),K.rk("ytrexp",{ids:W},!0));W=K.provider.videoData;var U=K.provider.C.L("enable_white_noise")||K.provider.C.L("enable_webgl_noop"),h=g.G7(W)||g.m7(W)||g.Sm(W)||g.mz(W);(U||h)&&(U=(0,g.rI)())&&K.j.set("gpu",[U]);te(K.provider.videoData)&&g.Fa(K,g.gh(K.provider),"dt",["1"]);W.cotn&&!te(W)&&K.iq(!0);K.provider.C.G9()&&(W=(0,g.AI)()-K.provider.C.pC,K.rk("playerage",{secs:Math.pow(1.6,Math.round(Math.log(W/1E3)/Math.log(1.6))).toFixed()}));K.W=!0;K.uX=g.KQ(function(){K.reportStats()},1E4)}; Q3z=function(K){var W=new g.GM(K.C,K.Jx);K.Yx.publish("initialvideodatacreated",W);return Gt(K,1,W,!1)}; $zC=function(K,W,U,h,m,S){var f=f===void 0?"trayride":f;U?(K.Bl(2),g.Vlp(g.o4(U),function(){if(window[f])u2s(K,h,f,m);else{K.Bl(3);var G=Kj_(U),I=document.getElementById(G);I&&(mmp(G),I.parentNode.removeChild(I));g.eI(new g.EB("BL:ULB",""+U))}},S)):W?(S=g.k$("SCRIPT"),W instanceof Ka?(S.textContent=I$(W),Q6(S)):S.textContent=W,S.nonce=wl(document),document.head.appendChild(S),document.head.removeChild(S),window[f]?u2s(K,h,f,m):(K.Bl(4),g.eI(new g.EB("BL:ULBJ")))):g.eI(new g.EB("BL:ULV"))}; Ycz=function(K,W,U){var h=W.formats;if(h){for(var m=[],S=g.z(h),f=S.next();!f.done;f=S.next())f=f.value,m.push(f.itag+"/"+f.width+"x"+f.height);K.Ky=m.join(",");m=[];h=g.z(h);for(S=h.next();!S.done;S=h.next()){f=S.value;S={itag:f.itag,type:f.mimeType,quality:f.quality};var G=f.url;G&&(S.url=G);f=gt(39,f);G=f.wc;var I=f.RL,d=f.s;f.Uc&&(S.url=G,S.sp=I,S.s=d);m.push(g.NH(S))}K.qI=m.join(",")}if(S=W.hlsFormats){m={};if(U&&(U=U.audioPairingConfig)&&U.pairs)for(U=g.z(U.pairs),h=U.next();!h.done;h=U.next())h= h.value,f=h.videoItag,m[f]||(m[f]=[]),m[f].push(h.audioItag);U={};h=g.z(S);for(f=h.next();!f.done;f=h.next())f=f.value,U[f.itag]=f.bitrate;h=[];S=g.z(S);for(f=S.next();!f.done;f=S.next()){f=f.value;G={itag:f.itag,type:f.mimeType,url:f.url,bitrate:f.bitrate,width:f.width,height:f.height,fps:f.fps};if(I=f.audioTrack)if(d=I.displayName)G.name=d,G.audio_track_id=I.id,I.audioIsDefault&&(G.is_default="1");if(f.drmFamilies){I=[];d=g.z(f.drmFamilies);for(var J=d.next();!J.done;J=d.next())I.push(gi[J.value]); G.drm_families=I.join(",")}(I=m[f.itag])&&I.length&&(G.audio_itag=I.join(","),(I=U[I[0]])&&(G.bitrate+=I));(I=W9s(f))&&(G.eotf=I);f.audioChannels&&(G.audio_channels=f.audioChannels);h.push(g.NH(G))}K.hlsFormats=h.join(",")}if((U=W.licenseInfos)&&U.length>0){m={};U=g.z(U);for(h=U.next();!h.done;h=U.next())S=h.value,h=S.drmFamily,S=S.url,h&&S&&(m[gi[h]]=S);K.zL=m}if(m=W.drmParams)K.drmParams=m;if(m=W.dashManifestUrl)K.W1=g.sL(m,{cpn:K.clientPlaybackNonce});if(m=W.hlsManifestUrl)K.hlsvp=m;if(m=W.probeUrl)K.probeUrl= wo(g.sL(m,{cpn:K.clientPlaybackNonce}));if(W=W.serverAbrStreamingUrl)K.Q4=new g.va(W,!0)}; TU=function(K){var W=g.Xl.apply(1,arguments);if(!vK(K)||W.some(function(h){return!vK(h)}))throw Error("Only objects may be merged."); W=g.z(W);for(var U=W.next();!U.done;U=W.next())a3Y(K,U.value)}; gjz=function(K,W){this.request=K;this.cursor=W}; L$=function(K){K.removed=!0;K.listener=null;K.proxy=null;K.src=null;K.handler=null}; EB2=function(K,W){return UC(K.clientMetadata,"metadata_ad_video_is_listed")?Sp(K.clientMetadata,"metadata_ad_video_is_listed"):W?W.isListed:(UF("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; PM=function(K,W,U){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=U||K(this.triggerType)}; Oqs=function(K,W,U,h,m){h.oA?Wb(K,4,"cue"):(K.G=W,K.Y=U,K.rk("sdai",{joinad:K.X,sg:K.G,st:K.Y.toFixed(3)}),K.jV=Date.now(),Wb(K,2,K.X===3?"staftpred":"join"),m.HO(h.Nk))}; gXp=function(K,W){if(!YP(K))throw Error("IndexedDB is not supported: updateRequestHandlers");var U=W.options.onError?W.options.onError:function(){}; W.options.onError=function(m,S){var f,G,I,d;return g.r(function(J){switch(J.j){case 1:f=c8p(S);(G=nX2(S))&&K.Rk&&K.Rk("web_enable_error_204")&&K.handleError(Error("Request failed due to compression"),W.url,S);if(!(K.Rk&&K.Rk("nwl_consider_error_code")&&f||K.Rk&&!K.Rk("nwl_consider_error_code")&&K.potentialEsfErrorCounter<=K.UW)){J.O5(2);break}if(!K.LN.Ma){J.O5(3);break}return g.T(J,K.LN.Ma(),3);case 3:if(K.LN.nN()){J.O5(2);break}U(m,S);if(!K.Rk||!K.Rk("nwl_consider_error_code")||((I=W)==null?void 0: I.id)===void 0){J.O5(6);break}return g.T(J,K.oQ.pJ(W.id,K.ow,!1),6);case 6:return J.return();case 2:if(K.Rk&&K.Rk("nwl_consider_error_code")&&!f&&K.potentialEsfErrorCounter>K.UW)return J.return();K.potentialEsfErrorCounter++;if(((d=W)==null?void 0:d.id)===void 0){J.O5(8);break}return W.sendCounth/1E3+1)return{msg:"in-the-past"};if(S.isLivePlayback&&!isFinite(h))return{msg:"live-infinite"};(h=W.lY())&&h.isView()&&(h=h.mediaElement);if(h&&h.ZZ().length>12&&g.rh(m))return{msg:"played-ranges"};if(!m.N)return null;if(!f)return{msg:"no-pvd-formats"};if(!m.N.j||!f.j)return{msg:"non-dash"};h=f.videoInfos[0];var G=m.N.videoInfos[0];K.Ms&&IG(S)&&(h=W.E0(), G=U.E0());if(!h||!G)return{msg:"no-video-info"};if(K.G&&(wF(h)||wF(G)))return{msg:"av1"};W=K.W&&S.WN()&&dr();if(G.containerType!==h.containerType)if(W)S.rk("sgap",{ierr:"container"});else return{msg:"container"};if(K.U&&!W&&(G.lX!==h.lX||G.lX===""||h.lX===""))return{msg:"codec"};if(K.Y&&G.video&&h.video&&Math.abs(G.video.width/G.video.height-h.video.width/h.video.height)>.01)return{msg:"ratio"};if(g.rh(S)&&g.rh(m))return{msg:"content-protection"};f=f.j[0];m=m.N.j[0];U=f.audio;var I=m.audio;if(U.sampleRate!== I.sampleRate&&!g.Nl)if(W)S.rk("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:f.itag,cr:U.sampleRate,ni:m.itag,nr:I.sampleRate};return(U.numChannels||2)!==(I.numChannels||2)?{msg:"channel-count"}:K.J&&S.WN()&&h.video.fps!==G.video.fps?{msg:"fps"}:null}; FZz=function(){var K=g.SZ("yt-player-quality");if(K instanceof Object&&K.quality&&K.previousQuality){if(K.quality>K.previousQuality)return 1;if(K.quality=0?K:NaN}; AP=function(K,W){W!=K.OM&&(K.OM=W,K=Dz(),W?K.G++:K.G>0&&K.G--)}; kUF=function(K){return!K.keySystemAccess&&!!dJ()&&K.keySystem==="com.apple.fps.1_0"}; a3=function(K,W,U){W=Math.max(W,K.X.j);K.Y.gj(1,U/W)}; S1D=function(K,W,U){if(K.B2){K.B2.Wz();var h=K.B2.jV,m=h.W,S=m.j;if(h.G!=null){var f=h.N;K.YQ=new g.SA(f.left-S.left,f.top-S.top)}S=K.d3()?Math.max(h.j,h.U):h.j;f={};m.volume!==null&&(f.volume=m.volume);m=K.sJ(h);K.CX=h;K.SV(S,W,U,!1,f,m,h.J)}}; iqR=function(K){if(TI(jP(K.j).hB))return!0;var W="";K=g.z(jP(K.j).tB.kM.keys());for(var U=K.next();!U.done;U=K.next()){U=U.value;if(U.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U.wk==="core")return!0;W+=U.slotType+" "}Math.random()<.01&&UF("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:W});return!1}; wI=function(K){var W;(W=K.Y)==null||J2Y(W);K.jV=[]}; g.Qe=function(K){return K.Hd.get("annotations_module")}; E5p=function(){if(document.visibilityState)var K="visibilitychange";else{if(!document[iB+"VisibilityState"])return"";K=iB+"visibilitychange"}return K}; bV_=function(K){return g.LL(K.j,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR":!1})}; jQe=function(K){K.N>=0||(K.provider.C.Ev||K.provider.iX.getVisibilityState()!==3?K.N=g.gh(K.provider):K.Pp=!0)}; Ek=function(K,W,U){tx(K.U,W,U===void 0?!1:U);K.jV=-1;r9(K,K.j)}; ECs=function(K){for(var W="",U=0;U-1&&K.splice(W,1)}; zz=function(K,W,U){if(!K.playerVars)return new Rt("No playerVars available in InstreamVideoAdRenderer.");var h,m;if(K.elementId==null||K.playerVars==null||K.playerOverlay==null||((h=K.playerOverlay)==null?void 0:h.instreamAdPlayerOverlayRenderer)==null&&((m=K.playerOverlay)==null?void 0:m.playerOverlayLayoutRenderer)==null||K.pings==null||K.externalVideoId==null)return new Rt("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:K});h=nZ(K.playerVars);m=Number(h.length_seconds); isNaN(m)&&(m=0,UF("Expected valid length seconds in player vars but got NaN"));if(U.k5(W.kind==="AD_PLACEMENT_KIND_START")){if(K.layoutId===void 0)return new Rt("Expected server generated layout ID in instreamVideoAdRenderer");W=K.layoutId}else W=K.elementId;return{layoutId:W,To:K,playerVars:h,O9:K.playerVars,mu:m}}; AQF=function(K){var W=Bq.EXPERIMENT_FLAGS;return W?W[K]:void 0}; $4_=function(K,W,U){Eq()||(K.requestTimeMs=String(W));g.hc("unsplit_gel_payloads_in_logs")&&(K.unsplitGelPayloadsInLogs=!0);!U&&(W=g.TA("EVENT_ID"))&&(U=Gds(),K.serializedClientEventId={serializedEventId:W,clientCounter:String(U)})}; rjC=function(K){return K.end==null?{start:String(K.start)}:{start:String(K.start),end:String(K.end)}}; r9=function(K,W){K.j=W;var U=K.G.videoInfos;if(!K.j.isLocked()){var h=(0,g.AI)();U=g.yb(U,function(f){if(f.j0>this.policy.j0)return!1;var G=this.Gm.j[f.id];return j5(this.U).get(f.id)>h||G.T9.N>4||G.G>4?!1:this.hK.has(+f.itag)?!1:!0},K); Zke(K.U)&&(U=g.yb(U,function(f){return f.video.width<=854&&f.video.height<=480}))}U.length||(U=K.G.videoInfos); var m=U;K.policy.Ae&&(m=CdC(K,m,W));m=g.yb(m,W.W,W);if(K.j.isLocked()&&K.U.j){var S=g.dG(U,function(f){return f.id===K.U.j}); S?m=[S]:i6(K.U,"")}K.policy.Ae||(m=CdC(K,m,W));m.length||(m=[U[0]]);m.sort(function(f,G){return B_(K,f)-B_(K,G)}); W={};for(U=1;UW.H8.video.width?(g.wd(m,U),U--):B_(K,W.jC)*K.policy.jV>B_(K,W.H8)&&(g.wd(m,U-1),U--);W=m[m.length-1];K.JK=!!K.N&&!!K.N.info&&K.N.info.lX!==W.lX;K.W=m;K.vp.clear();U=!1;for(S=0;S=1080&&(U=!0);ZVF(K.policy,W,K.Gm.mK)}; LZe=function(K,W,U){this.Ef=K;this.f8=W;this.metadata=U}; cg=function(K){this.value=K}; nY=function(K,W,U){for(var h in K.j){var m=K.j[h].index,S=W,f=U;m.yr&&(S&&(m.xD=Math.max(m.xD,S)),f&&(m.DU=Math.max(m.DU||0,f)))}U&&(K.Ns=U/1E3)}; kEF=function(K,W,U,h,m,S,f){if(K.j)return K.j;var G={},I=new Set,d={};if(vi(h)){for(var J in h.j)h.j.hasOwnProperty(J)&&(K=h.j[J],d[K.info.lX]=[K.info]);return d}J=HqL(W,h,G);S&&m({aftsrt:XA(J)});for(var e={},E=g.z(Object.keys(J)),B=E.next();!B.done;B=E.next()){B=B.value;for(var D=g.z(J[B]),a=D.next();!a.done;a=D.next()){a=a.value;var Q=a.itag,u=void 0,O=B+"_"+(((u=a.video)==null?void 0:u.fps)||0);e.hasOwnProperty(O)?e[O]===!0?d[B].push(a):G[Q]=e[O]:(u=e9(W,a,U,h.isLive,I),u!==!0?(f.add(B),G[Q]=u, u==="disablevp9hfr"&&(e[O]="disablevp9hfr")):(d[B]=d[B]||[],d[B].push(a),e[O]=!0))}}S&&m({bfflt:XA(d)});for(var N in d)d.hasOwnProperty(N)&&(h=N,d[h]&&d[h][0].ZE()&&(d[h]=d[h],d[h]=gZ$(W,d[h],G),d[h]=KbY(d[h],G)));S&&Object.keys(G).length>0&&m({rjr:GR(G)});W=g.z(I.values());for(h=W.next();!h.done;h=W.next())(h=U.W.get(h.value))&&--h.P5;S&&m({aftflt:XA(d)});K.j=g.d6(d,function(A){return!!A.length}); return K.j}; c5=function(K){return K&&K.baseUrl||""}; UeC=function(K,W){v4(K);if(W){var U=g.qg.getState().entities;U=qF(U,"featuredProductsEntity",W);if(U!=null&&U.productsData){W=[];U=g.z(U.productsData);for(var h=U.next();!h.done;h=U.next()){h=h.value;var m=void 0;if((m=h)!=null&&m.identifier&&h.featuredSegments){K.DA.push(h);var S=void 0;m=g.z((S=h)==null?void 0:S.featuredSegments);for(S=m.next();!S.done;S=m.next()){var f=S.value;S=WbD(f.startTimeSec);S!==void 0&&(f=WbD(f.endTimeSec),W.push(new g.g0(S*1E3,f===void 0?0x7ffffffffffff:f*1E3,{id:h.identifier, namespace:"featured_product"})))}}}K.D.lG(W)}}}; spp=function(K,W){var U=VeY(K);K.FI||(K.FI=new dE(K.api),g.k(K,K.FI),g.HW(K.api,K.FI.element,4));K.FI.J7(W);var h=Fk(K.api.h7());h&&h.loaded&&U!==W&&h.Qs();W&&K.api.rk("sfn",{},!0)}; h1s=function(K,W){var U;a:if((U=W.j)&&U.videoInfos.length){for(var h=g.z(U.videoInfos),m=h.next();!m.done;m=h.next()){m=m.value;var S=void 0;if((S=m.X)==null?0:S.smooth){U=m.video.qualityOrdinal;break a}}U=U.videoInfos[0].video.qualityOrdinal}else U=0;(g.PP("armv7")||g.PP("aarch64")||g.PP("android"))&&!g.PJ(K.C)&&TX(W.j.videoInfos[0])&&(U=Math.min(U,g.YJ.large));h=g.jV(K.C.experiments,"html5_chipset_soft_cap");h>0&&(U=Math.min(U,h));if(h=g.jV(K.C.experiments,"html5_max_vertical_resolution")){m=4320; for(S=0;Sh&&(m=Math.min(m,f.video.qualityOrdinal))}if(m<4320){for(f=S=0;fS.width)W-=S.width,W-=tl(K),h++;else break;return h===U?U-1:h}; mep=function(K,W,U,h,m,S){var f=W.cpn,G=W.docid||W.video_id||W.videoId||W.id,I=K.j;S=S===void 0?m+h:S;if(m>S)return sm(K,"enterAfterReturn enterTimeMs="+m+" is greater than parentReturnTimeMs="+S.toFixed(3),f,G),"";var d=I.Cr()*1E3;if(md)return I="returnAfterDuration parentReturnTimeMs="+S.toFixed(3)+" is greater than parentDurationMs="+d+". And timestampOffset in seconds is "+ I.A7(),sm(K,I,f,G),"";d=null;for(var J=g.z(K.X),e=J.next();!e.done;e=J.next()){e=e.value;if(m>=e.Ua&&me.Ua)return sm(K,"overlappingReturn",f,G),"";if(S===e.Ua)return sm(K,"outOfOrder",f,G),"";m===e.W2&&(d=e)}f="cs_childplayback_"+jn$++;G={Vv:ha(h,!0),Fm:Infinity,target:null};var E={Ze:f,playerVars:W,playerType:U,durationMs:h,Ua:m,W2:S,kX:G};K.X=K.X.concat(E).sort(function(a,Q){return a.Ua-Q.Ua}); d?tRe(K,d,{Vv:ha(d.durationMs,!0),Fm:d.kX.Fm,target:E}):(W={Vv:ha(m,!1),Fm:m,target:E},K.U.set(W.Vv,W),I.addCueRange(W.Vv));W=!0;if(K.j===K.app.E5()&&(I=I.getCurrentTime()*1E3,I>=E.Ua&&I0&&(K.J=g.KQ(function(){QH(K)},W)),K.Y=!0)}; xs=function(K,W){var U=0,h=-1;K=g.z(K);for(var m=K.next();!m.done;m=K.next())if(m=m.value,!(m.startTimeMs+m.durationMsW||h>=0&&m.q$>h+1)break;U=Math.max(U,m.startTimeMs+m.durationMs);h=Math.max(h,m.QR)}return Math.max(0,U-W)}; g.RG=function(K){g.p.call(this);var W=this;this.provider=K;this.logger=new g.io("qoe");this.j=new Map;this.sequenceNumber=1;this.uX=NaN;this.RR="N";this.J=this.yY=this.N7=this.Ms=this.X=0;this.XI=this.tK=this.G=this.Bp="";this.Ny=this.vp=NaN;this.oW=0;this.Ea=-1;this.AS=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.W3=this.isEmbargoed=this.eV=this.isOffline=this.isBuffering=!1;this.bG=[];this.jV=null;this.Qg=this.W=this.M5=this.hK=this.Y=!1;this.N=-1;this.Pp=!1;this.Pl=new g.QC(this.eUV,750,this); this.Ca=this.adCpn=this.DA=this.contentCpn="";this.adFormat=void 0;this.Ev=0;this.gk=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.ZX=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.DO=!1;this.Ez=NaN;this.Le=0;this.q5=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Cg=!1;this.QX=new Set;this.xd={iq:function(S){W.iq(S)}, BBe:function(){return W.U}, UC:function(){return W.contentCpn}, OOe:function(){return W.DA}, reportStats:function(){W.reportStats()}, Xzx:function(){return W.j.get("cat")||[]}, Xt:function(S){return W.j.get(S)||[]}, Q8X:function(){return W.j}, Tr5:function(){return 0}, CQk:function(){return{adCpn:W.adCpn,Ca:W.Ca,adFormat:W.adFormat}}}; this.Ns=this.provider.C.L("html5_qoe_relaxed_reporting");var U=g.jV(this.provider.C.experiments,"html5_qoe_proto_mock_length");U&&!nq.length&&(nq=eNR(U));g.k(this,this.Pl);try{var h,m;(m=(h=navigator).getBattery)==null||m.call(h).then(function(S){W.jV=S})}catch(S){}g.Fa(this,0,"vps",["N"]); K.C.G9()&&(this.Le=(0,g.AI)(),this.Ez=g.KQ(function(){var S=(0,g.AI)(),f=S-W.Le;f>500&&W.rk("vmlock",{diff:f.toFixed()});W.Le=S},250)); this.provider.videoData.Lf&&(this.remoteControlMode=GiD[this.provider.videoData.Lf]||0);this.provider.videoData.uT&&(U=IIe(this.provider.videoData.uT),U==null?0:U.length)&&(this.remoteConnectedDevices=U);K.C.G9()&&(this.Ik=new des,g.k(this,this.Ik));XMF(K.C)&&(this.JK=new du,g.k(this,this.JK))}; JtC=function(K){if(K.name==="JavaException")return!0;K=K.stack;return K.includes("chrome://")||K.includes("-extension://")||K.includes("webkit-masked-url://")}; EVe=function(K,W,U){W=g.CB(W,function(h){return new e12(h,U,h.id)}); K.D.Fx("onAdUxUpdate",W)}; ByF=function(K,W,U){var h=W.type||0;(U==null?0:U.has(h))?K.bF.push(W):K.X2.push(h)}; yDR=function(K){if(!(K instanceof Object))throw new TypeError("Iterator result "+K+" is not an object");}; OR=function(K,W,U,h){this.C=W;this.Cg=U;this.segments=[];this.experimentIds=[];this.JK=this.q5=this.isFinal=this.delayThresholdMet=this.W3=this.Ny=this.autoplay=this.autonav=!1;this.Ez="yt";this.G=[];this.Y=this.jV=null;this.sendVisitorIdHeader=this.Pp=!1;this.J=this.pageId="";this.U=U==="watchtime";this.N=U==="playback";this.DA=U==="atr";this.qb=U==="engage";this.sendVisitorIdHeader=!1;this.uri=this.DA?"/api/stats/"+U:"//"+W.rP+"/api/stats/"+U;h&&(this.q5=h.fs,h.rtn&&(this.Y=h.rtn),this.U?(this.playerState= h.state,h.rti>0&&(this.jV=h.rti)):(this.M9=h.mos,this.Dp=h.volume,h.at&&(this.adType=h.at)),h.autonav&&(this.autonav=h.autonav),h.inview!=null&&(this.oW=h.inview),h.size&&(this.XI=h.size),h.playerwidth&&(this.ZX=h.playerwidth),h.playerheight&&(this.QX=h.playerheight));this.Pl=g.Ni(W.j);this.J=L6(W.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.DO=g.Ni(W.W3);this.Ev=W.M9;this.experimentIds=GR2(W.experiments);this.Bp=W.Ea;this.Ez=W.Ms;this.region=W.region; this.userAge=W.userAge;this.gk=W.Sz;this.Ea=A3();this.sendVisitorIdHeader=W.sendVisitorIdHeader;this.hK=W.L("vss_pings_using_networkless")||W.L("kevlar_woffle");this.pC=W.L("vss_final_ping_send_and_write");this.eV=W.L("vss_use_send_and_write");this.pageId=W.pageId;this.rS=W.L("vss_playback_use_send_and_write");W.livingRoomAppMode&&(this.livingRoomAppMode=W.livingRoomAppMode);g.HB(W)&&(this.tK=W.hK);g.bX(g.mC(W))&&this.G.push(1);this.accessToken=g.mp(K);K.JL[this.Cg]?this.W=K.JL[this.Cg]:K.JL.playback&& (this.W=K.JL.playback);this.adFormat=K.adFormat;this.adQueryId=K.adQueryId;this.autoplay=an_(K);this.N&&(this.Ny=K.GZ&&KJ(K)==="adunit"?!0:!1);this.autonav=K.isAutonav||this.autonav;this.contentVideoId=xGC(K);this.clientPlaybackNonce=K.clientPlaybackNonce;this.W3=K.Mk;K.G&&(this.uX=K.G,this.Qg=K.oC);K.mdxEnvironment&&(this.mdxEnvironment=K.mdxEnvironment);this.j=K.Qg;this.An=K.An;K.X&&(this.Iu=K.X.itag,K.W&&K.W.itag!==this.Iu&&(this.M5=K.W.itag));K.j&&vi(K.j)&&(this.offlineDownloadUserChoice="1"); this.eventLabel=KJ(K);this.JK=K.oW?!1:K.Ny;this.QA=K.n7;if(W=DG(K))this.u5=W;this.bG=K.Cw;this.partnerId=K.partnerId;this.eventId=K.eventId;this.playlistId=K.ai||K.playlistId;this.J$=K.J$;this.Lf=K.Lf;this.uT=K.uT;this.ws=K.ws;this.subscribed=K.subscribed;this.videoId=K.videoId;this.videoMetadata=K.videoMetadata;this.visitorData=K.visitorData;this.osid=K.osid;this.DY=K.DY;this.referrer=K.referrer;this.uq=K.wl||K.uq;this.Ik=K.ib;this.Ju=K.Ju;this.userGenderAge=K.userGenderAge;this.nF=K.nF;this.embedsRct= K.embedsRct;this.embedsRctn=K.embedsRctn;g.HB(this.C)&&K.mutedAutoplay&&(K.mutedAutoplayDurationMode===2&&K.limitedPlaybackDurationInSeconds===0&&K.endSeconds===0?this.G.push(7):this.G.push(2));K.isEmbedsShortsMode(new g.rt(this.ZX,this.QX),!!this.playlistId)&&this.G.push(3);g.oz(K)&&this.G.push(4);this.vp=K.ix;K.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=K.compositeLiveIngestionOffsetToken)}; Dee=function(K,W){var U;if((U=OB(W))!=null&&U.isLocked&&hjR(W)){if(K.iX.V().G9()){var h;K.rk("eosl",{munlock:(h=OB(W))==null?void 0:h.info.m6()})}cJ(K,W===K.audioTrack)}}; Ce=function(K){for(;K.j.length&&!K.j[0].isEncrypted;){var W=K.j.shift(),U=W.videoId,h=W.C7,m=W.formatId,S=W.buffer;W=W.tj;if(S)W=void 0,(W=sl(K.eD.e_,U))==null||XP(W,h,m,S);else if(W)K.eD.e_.Ow(U,h,m);else if(h=K.eD,h.j[m].Di=!0,U=sl(h.e_,U),U==null?0:U.Vt.has(m))U==null||nJ(U,m)}}; be$=function(K,W){var U;return(U=W.onEnter)==null?void 0:U.some(K.U)}; r4=function(K){var W=[];g.hI(K,function(U,h){var m=g.kH(h);g.tD(Array.isArray(U)?U:[U],function(S){S==""?W.push(m):W.push(m+"="+g.kH(S))})}); return W.join("&")}; mG=function(K){this.value=K}; HFs=function(K,W){var U=W.backgroundability;U&&U.backgroundabilityRenderer.backgroundable&&(K.backgroundable=!0);var h,m;if((h=W.offlineability)==null?0:(m=h.offlineabilityRenderer)==null?0:m.offlineable)K.offlineable=!0;if(U=W.contextParams)K.contextParams=U;(U=W.pictureInPicture)&&U.pictureInPictureRenderer.playableInPip&&(K.pipable=!0);W.playableInEmbed&&(K.allowEmbed=!0);if(U=W.ypcClickwrap)W=U.playerLegacyDesktopYpcClickwrapRenderer,U=U.ypcRentalActivationRenderer,W?(K.Ge=W.durationMessage|| "",K.Br=!0):U&&(W=U.durationMessage,K.Ge=W?g.Rb(W):"",K.Br=!0)}; rtp=function(K,W){bY(K,1,W.formatId,sz,3);Xa(K,2,W.Uj);Xa(K,3,W.sequenceNumber);bY(K,4,W.R0,kd,1);Xa(K,5,W.n8);Xa(K,6,W.NC)}; Ym2=function(K,W){return K.Wp!==W.Wp?!1:K.type===4&&W.type===3&&K.Wp.LC()?(K=K.Wp.nx(K),Ns(K,function(U){return Ym2(U,W)})):K.kx===W.kx&&!!W.X&&W.j+W.X>K.j&&W.j+W.X<=K.j+K.X}; g.y2=function(K,W,U){g.kQ(gI)(K,W,U===void 0?!1:U)}; g.$b=function(K){K=GD(K.M$);return K==="www.youtube-nocookie.com"?"www.youtube.com":K}; aj=function(K){if(!K.nextVideo||!K.policy.W)if(K.j.isLocked())K.nextVideo=K.j.j<=360?K.Gm.j[K.W[0].id]:K.Gm.j[g.Z$(K.W).id];else{for(var W=Math.min(K.J,K.W.length-1),U=Ed(K.Ns),h=B_(K,K.X.info),m=U/K.policy.Ns-h;W>0&&!(B_(K,K.W[W])<=m);W--);for(U=U/K.policy.jV-h;W=U);W++);K.nextVideo=K.Gm.j[K.W[W].id];K.J=W}}; ZCY=function(K,W){return K.X+W*(K.j-K.X)}; pn=function(K,W,U){U=U===void 0?!1:U;W.then(function(h){K.Ms.delete(W);(U||h===4)&&K.J.resolve(h)},function(h){K.J.reject(h)})}; OT=function(K,W,U){K=new K.constructor(W);U&&(K.j=xI);K.X=xI;return K}; eQC=function(K,W,U){for(var h=[],m=g.z(K),S=m.next();!S.done;S=m.next())if(S=g.P(S.value.renderingContent,iY)){if(!Qx(S))return new v("Invalid vod media renderer");h.push(ThF(S))}m=h.map(function(e){return e.mu}); S=[];for(var f=0,G=0;G=0||$H(K,0,"gad_source",K.search(QV))>=0}; kX=function(K,W,U){U=U===void 0?240:U;g.y.call(this,{T:"button",Hp:["ytp-button","ytp-copylink-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.HB(K.V()))},K:[{T:"div",Z:"ytp-copylink-icon",bX:"{{icon}}"},{T:"div",Z:"ytp-copylink-title",bX:"Copy link",B:{"aria-hidden":"true"}}]});this.api=K;this.j=W;this.X=U;this.visible=!1;this.tooltip=this.j.Fd();W=K.V();this.tooltip.element.setAttribute("aria-live", "polite");g.JM(this.element,"ytp-show-copylink-title",g.HB(W));K.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.S(K,"videodatachange",this.SV);this.S(K,"videoplayerreset",this.SV);this.S(K,"appresize",this.SV);this.SV();this.addOnDisposeCallback(g.tk(this.tooltip,this.element))}; Fbe=function(K,W){var U=1;K.isTrusted===!1&&(U=0);ec("ISDSTAT",U);lc(U,"i.s_",{triggerContext:"sk",metadata:W});return U}; px_=function(K){WI(K,"cueVideoById",K.YB);WI(K,"loadVideoById",K.t0r);WI(K,"cueVideoByUrl",K.Al);WI(K,"loadVideoByUrl",K.Yzs);WI(K,"playVideo",K.STk);WI(K,"pauseVideo",K.pauseVideo);WI(K,"stopVideo",K.Nje);WI(K,"clearVideo",K.clearVideo);WI(K,"getVideoBytesLoaded",K.MVx);WI(K,"getVideoBytesTotal",K.ppr);WI(K,"getVideoLoadedFraction",K.i8);WI(K,"getVideoStartBytes",K.bek);WI(K,"cuePlaylist",K.cuePlaylist);WI(K,"loadPlaylist",K.qzx);WI(K,"nextVideo",K.pls);WI(K,"previousVideo",K.P5X);WI(K,"playVideoAt", K.vvK);WI(K,"setShuffle",K.setShuffle);WI(K,"setLoop",K.setLoop);WI(K,"getPlaylist",K.gp);WI(K,"getPlaylistIndex",K.getPlaylistIndex);WI(K,"getPlaylistId",K.getPlaylistId);WI(K,"loadModule",K.qd);WI(K,"unloadModule",K.Ht);WI(K,"setOption",K.e3);WI(K,"getOption",K.oF);WI(K,"getOptions",K.L0);WI(K,"mute",K.M_5);WI(K,"unMute",K.whV);WI(K,"isMuted",K.isMuted);WI(K,"setVolume",K.fwH);WI(K,"getVolume",K.getVolume);WI(K,"seekTo",K.ZNV);WI(K,"getPlayerMode",K.getPlayerMode);WI(K,"getPlayerState",K.lW);WI(K, "getAvailablePlaybackRates",K.getAvailablePlaybackRates);WI(K,"getPlaybackQuality",function(){return K.getPlaybackQuality(1)}); WI(K,"setPlaybackQuality",K.Ksm);WI(K,"getAvailableQualityLevels",K.SU);WI(K,"getCurrentTime",K.Ve);WI(K,"getDuration",K.Kt);WI(K,"addEventListener",K.RM);WI(K,"removeEventListener",K.Nir);WI(K,"getDebugText",K.Eu);WI(K,"getVideoData",function(){return q0e(K)}); WI(K,"addCueRange",K.FC);WI(K,"removeCueRange",K.removeCueRange);WI(K,"setSize",K.setSize);WI(K,"getApiInterface",K.getApiInterface);WI(K,"destroy",K.destroy);WI(K,"mutedAutoplay",K.mutedAutoplay);var W=K.app.V();W.G||(WI(K,"getVideoEmbedCode",K.getVideoEmbedCode),WI(K,"getVideoUrl",K.Xpx));WI(K,"getMediaReferenceTime",K.RF);WI(K,"getSize",K.getSize);WI(K,"setFauxFullscreen",K.Ve5);W.L("embeds_enable_move_set_center_crop_to_public")&&WI(K,"setCenterCrop",K.setCenterCrop);W.G||WI(K,"logImaAdEvent", K.logImaAdEvent);WI(K,"preloadVideoById",K.Ffk);WI(K,"wakeUpControls",K.wakeUpControls)}; uZe=function(K,W,U){K.j[W]||(K.rk("huli-sdai-err",U),K.j[W]=!0)}; Wt$=function(K,W){K.L("html5_log_media_perf_info")&&(K.iX.rk("perfdb",Op_()),K.iX.rk("sessionperfdb",Object.fromEntries(Cn.entries())),K.iX.rk("playbackperfdb",Object.fromEntries(K.N.entries())),K.iX.rk("hwc",{nch:navigator.hardwareConcurrency},!0),W&&K.iX.rk("mcdb",{itags:W.j.videoInfos.filter(function(U){var h;return((h=U.X)==null?void 0:h.smooth)===!1}).map(function(U){return U.itag}).join("-")}))}; sms=function(K){if(!K.W){var W=K.j[K.X];K.W=new DataView(W.buffer,W.byteOffset,W.length)}return K.W}; kiY=function(K){K.playlist&&K.playlist.unsubscribe("shuffle",K.onVideoDataChange,K)}; K1p=function(K,W,U){var h=K.split("#",2);K=h[0];h=h.length>1?"#"+h[1]:"";var m=K.split("?",2);K=m[0];m=nZ(m[1]||"");for(var S in W)if(U||!g.r5(m,S))m[S]=W[S];return g.sL(K,m)+h}; Eh=function(K,W,U,h,m,S,f){g.y.call(this,{T:"div",Z:"ytp-slider-section",B:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{T:"div",Z:"ytp-slider",K:[{T:"div",Z:"ytp-slider-handle"}]}]});this.Y=K;this.J=W;this.X=U;this.N=h;this.Ms=m;this.hK=S;this.range=this.N-this.X;this.eV=this.yH("ytp-slider-section");this.W=this.yH("ytp-slider");this.uX=this.yH("ytp-slider-handle");this.G=new g.sR(this.W, !0);this.j=f?f:U;g.k(this,this.G);this.G.subscribe("dragmove",this.BH,this);this.S(this.element,"keydown",this.J6);this.S(this.element,"wheel",this.A6);this.init()}; iFp=function(K){if(K==null||typeof K=="string"||K instanceof Qr)return K}; Nyz=function(K,W,U,h,m,S,f){var G=new g.DK;z1R.push(G);W&&G.listen("complete",W);G.EB("ready",G.Th);S&&(G.Ms=Math.max(0,S));f&&(G.Y=f);G.send(K,U,h,m)}; EI=function(K,W,U){U=U===void 0?!1:U;if(rH(K))return!1;for(var h=K.pos;e8(K,!1)!==W;)if(DV(K),h=K.pos,rH(K))return!1;U&&(K.pos=h);return!0}; fbY=function(K,W,U,h,m){if(K.gB)return{"if":0,vs:0};var S=K.AV().clone().round(),f=K.B2?K.B2.N:null,G=Dz(),I=nm(),d=K.Rd(),J=K.B2?K.B2.getName():"ns",e={};e["if"]=G.N?1:void 0;e.sdk=K.W?K.W:void 0;e.t=K.timeCreated;e.p=[S.top,S.left,S.bottom,S.right];S&&f&&!lE(f,S)&&(S=f.round(),e.cp=[S.top,S.left,S.bottom,S.right]);e.tos=KS(d.X,!1);e.mtos=iL(d);e.mcvt=d.Bp.N;e.ps=void 0;S=lB(d,i_(),K.sY());e.vht=S;e.mut=d.M5.N;e.a=tY(K.n_.volume);e.mv=tY(d.G);e.fs=K.OM?1:0;e.ft=d.Ms.j;e.at=d.U.j;e.as=d.W>0?1:0;e.atos= KS(d.j);e.ssb=KS(d.gk,!1);e.amtos=pVD(d.j,!1);e.uac=K.Qg;e.vpt=d.N.j;J=="nio"&&(e.nio=1,e.avms="nio");e.gmm="4";e.gdr=QD(K,d.N.j,!0)?1:0;e.efpf=K.q5;if(J=="gsv"||J=="nis")J=K.B2,J.Y>0&&(e.nnut=J.Y);e.tcm=uwD(K);e.nmt=K.vp;e.bt=K.eV;e.pst=K.Bp;e.vpaid=K.jV;e.dur=K.N;e.vmtime=K.Ms;e.is=K.Ru.N;K.j.length>=1&&(e.i0=K.j[0].aG,e.a0=[K.j[0].G1],e.c0=[K.j[0].v2],e.ss0=[K.j[0].bT],J=K.j[0].position,S=K.j[0].oS,e.p0=J?W4(J):void 0,J&&S&&!lE(S,J)&&(e.cp0=W4(S)));K.j.length>=2&&(e.i1=K.j[1].aG,e.a1=jF(K.j[1].aX, K.j[1].G1,K.j[1].QZ),e.c1=jF(K.j[1].hm,K.j[1].v2,K.j[1].X1),e.ss1=jF(K.j[1].dh,K.j[1].bT,K.j[1].Nw),J=K.j[1].position,S=K.j[1].oS,e.p1=J?W4(J):void 0,J&&S&&!lE(S,J)&&(e.cp1=W4(S)),e.mtos1=K.j[1].HC);K.j.length>=3&&(e.i2=K.j[2].aG,e.a2=jF(K.j[2].aX,K.j[2].G1,K.j[2].QZ),e.c2=jF(K.j[2].hm,K.j[2].v2,K.j[2].X1),e.ss2=jF(K.j[2].dh,K.j[2].bT,K.j[2].Nw),J=K.j[2].position,S=K.j[2].oS,e.p2=J?W4(J):void 0,J&&S&&!lE(S,J)&&(e.cp2=W4(S)),e.mtos2=K.j[2].HC);K.j.length>=4&&(e.i3=K.j[3].aG,e.a3=jF(K.j[3].aX,K.j[3].G1, K.j[3].QZ),e.c3=jF(K.j[3].hm,K.j[3].v2,K.j[3].X1),e.ss3=jF(K.j[3].dh,K.j[3].bT,K.j[3].Nw),J=K.j[3].position,S=K.j[3].oS,e.p3=J?W4(J):void 0,J&&S&&!lE(S,J)&&(e.cp3=W4(S)),e.mtos3=K.j[3].HC);e.cs=vUz(K.Ru);W&&(e.ic=agC(K.Ru),e.dvpt=d.N.X,e.dvs=mW(d.X,.5),e.dfvs=mW(d.X,1),e.davs=mW(d.j,.5),e.dafvs=mW(d.j,1),U&&(d.N.X=0,OWR(d.X),OWR(d.j)),K.sL()&&(e.dtos=d.DA,e.dav=d.jV,e.dtoss=K.Hm+1,U&&(d.DA=0,d.jV=0,K.Hm++)),e.dat=d.U.X,e.dft=d.Ms.X,U&&(d.U.X=0,d.Ms.X=0));e.ps=[G.U.width,G.U.height];e.bs=[Hs(G.j), G.j.getHeight()];e.scs=[G.W.width,G.W.height];e.dom=G.domain;K.Wy&&(e.vds=K.Wy);if(K.G.length>0||K.Fk)W=g.k4(K.G),K.Fk&&W.push(K.Fk),e.pings=g.CB(W,function(E){return E.toString()}); W=g.CB(g.yb(K.G,function(E){return E.G()}),function(E){return E.getId()}); sRp(W);e.ces=W;K.X&&(e.vmer=K.X);K.J&&(e.vmmk=K.J);K.DA&&(e.vmiec=K.DA);e.avms=K.B2?K.B2.getName():"ns";K.B2&&g.Zc(e,K.B2.vz());h?(e.c=fL(K.n_.v2,2),e.ss=fL(K.n_.bT,2)):e.tth=i_()-AtD;e.mc=fL(d.uX,2);e.nc=fL(d.Y,2);e.mv=tY(d.G);e.nv=tY(d.W);e.lte=fL(K.MG,2);h=m5(K,m);iL(d);e.qmtos=iL(h);e.qnc=fL(h.Y,2);e.qmv=tY(h.G);e.qnv=tY(h.W);e.qas=h.W>0?1:0;e.qi=K.nf;e.avms||(e.avms="geo");e.psm=d.eV.j;e.psv=d.eV.getValue();e.psfv=d.Pp.getValue();e.psa=d.JK.getValue();I=nCY(I.Lr);I.length&&(e.veid=I);K.U&&g.Zc(e, Ba_(K.U));e.avas=K.PE();e.vs=K.jc();e.co=XPF(K);e.tm=d.Le;e.tu=d.tK;return e}; bZ=function(K){this.value=K}; Hk2=function(K){K.uX.clearAll();K.X.clear();K.j.clear();K.U.clear();K.Bp=[];K.G=null;K.bG.clear();K.tK.clear();K.jV=[];K.Ik=[];K.AS=[];K.oW=[];K.Ny.clear();K.Pl.clear();K.Ea.clear();K.gk.clear();K.J=!1;K.Bx=0;K.Ms=!1;K.vp=!1;K.aU=0;K.XI=0;K.Ez=!1;K.Xm=!1;K.N="";aKp(K.app.FK());Yg(K.app.FK(),K.playback,!1);K.DA.clear();K.Y.isActive()&&i4(K)}; ytL=function(K,W,U,h){W.isLiveDefaultBroadcast&&(K.isLiveDefaultBroadcast=!0);W.isUpcoming&&(K.isUpcoming=!0);if(W.isPostLiveDvr){K.tv=!0;if(h=W.latencyClass)K.latencyClass=R1s[h]||"UNKNOWN";W.isLowLatencyLiveStream&&(K.isLowLatencyLiveStream=!0)}else{var m=!1;K.Vr?(K.allowLiveDvr=p6()?!0:ri&&zU<5?!1:!0,K.isLivePlayback=!0):W.isLive?(h.livestream="1",K.allowLiveDvr=W.isLiveDvrEnabled?p6()?!0:ri&&zU<5?!1:!0:!1,K.partnerId=27,m=!0):W.isUpcoming&&(m=!0);if(W.isLive||K.Vr){W.isLowLatencyLiveStream&&(K.isLowLatencyLiveStream= !0);var S=W.latencyClass;S&&(K.latencyClass=R1s[S]||"UNKNOWN");if(W=W.liveChunkReadahead)K.liveChunkReadahead=W;if(W=U&&U.livePlayerConfig){W.hasSubfragmentedFmp4&&(K.hasSubfragmentedFmp4=!0);W.hasSubfragmentedWebm&&(K.uc=!0);W.defraggedFromSubfragments&&(K.defraggedFromSubfragments=!0);if(U=W.liveExperimentalContentId)K.liveExperimentalContentId=Number(U);W=W.isLiveHeadPlayable;K.L("html5_live_head_playable")&&W!=null&&(K.isLiveHeadPlayable=W)}}m&&(K.isLivePlayback=!0,h.adformat&&h.adformat.split("_")[1]!== "8"||K.XY.push("heartbeat"))}}; hq=function(K){g.p.call(this);this.A5=K;this.Lg=new Map}; Gds=function(){var K=g.TA("BATCH_CLIENT_COUNTER")||0;K||(K=Math.floor(Math.random()*65535/2));K++;K>65535&&(K=1);ec("BATCH_CLIENT_COUNTER",K);return K}; Tqs=function(K,W,U){var h=!(!W||W.Wp!==K.Wp||W.type!==K.type||W.kx!==K.kx);return U?h&&!!W&&(K.range&&W.range?W.range.end===K.range.end:W.range===K.range)&&W.j+W.X===K.j+K.X:h}; AjD=function(K,W,U,h,m,S){W.client||(W.client={});K.player.V().L("h5_remove_url_for_get_ad_break")||(W.client.originalUrl=U);var f=wa(U),G=g.Qq(U)?!1:!0;(f||G)&&typeof Intl!=="undefined"&&(W.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);G=g.Qq(U)?!1:!0;if(f||G||h!==""){var I={};U=r4(ab(h)).split("&");var d=new Map;U.forEach(function(J){J=J.split("=");J.length>1&&d.set(J[0].toString(),decodeURIComponent(J[1].toString()))}); d.has("bid")&&(I.bid=d.get("bid"));I.params=[];M$s.forEach(function(J){d.has(J)&&(J={key:J,value:d.get(J)},I.params.push(J))}); GPD(K,I);W.adSignalsInfo=I}W.client.unpluggedAppInfo||(W.client.unpluggedAppInfo={});W.client.unpluggedAppInfo.enableFilterMode=!1;U=m.j.cosver;U!=null&&U!=="cosver"&&(W.client.osVersion=U);U=m.j.cplatform;U!=null&&U!=="cplatform"&&U!==""&&(W.client.platform=U);U=m.j.cmodel;U!=null&&U!=="cmodel"&&(W.client.deviceModel=U);U=m.j.cplayer;U!=null&&U!=="cplayer"&&(W.client.playerType=U);U=m.j.cbrand;U!=null&&U!=="cbrand"&&(W.client.deviceMake=U);W.user||(W.user={});W.user.lockedSafetyMode=!1;g.EZ(m)&& oB$(W,S,K.player.getPlayerState(1));if(K=m.livingRoomPoTokenId)W.client.tvAppInfo=Object.assign({},W.client.tvAppInfo,{livingRoomPoTokenId:K})}; Lt=function(K){var W;if((W=pd())==null?0:W.size){var U;qd(JZ(K.api.V(),(U=K.api.getVideoData())==null?void 0:g.mp(U)),function(h){(h=O7z(h))&&bG2(K,h)&&(K.api.V().Pp=h)})}}; Pzp=function(){}; OzF=function(K){if(!K.api.V().DO){var W=K.api.getVideoData(),U=new g.OZ("Subscribe",null,"Subscribed",null,!0,!1,W.R5,W.subscribed,"channel_avatar",null,K.api,!0);K.api.createServerVe(U.element,K);var h;K.api.setTrackingParams(U.element,((h=W.subscribeButtonRenderer)==null?void 0:h.trackingParams)||null);K.S(U.element,"click",function(){K.api.logClick(U.element)}); K.subscribeButton=U;g.k(K,K.subscribeButton);K.subscribeButton.U5(K.U);K.subscribeButton.hide();var m=new p7C(K.api);K.j=m;g.k(K,m);m.U5(K.U);m.hide();K.S(K.api,"SUBSCRIBE",function(){W.rS&&(m.show(),K.api.logVisibility(m.element,!0))}); K.S(K.api,"UNSUBSCRIBE",function(){W.rS&&(m.hide(),K.api.logVisibility(m.element,!1),BWC(m,!1))})}}; Yz_=function(K){if(!g.hc("universal_csi_network_ticks"))return function(){}; var W=o5Y[K];return W?(G8(W),function(){var U=g.hc("universal_csi_network_ticks")?(U=oVC[K])?G8(U):!1:!1;return U}):function(){}}; B_=function(K,W){if(!K.eV[W.id]){var U=K.Gm.j[W.id].index.VO(K.DA,15);U=W.rW&&K.N&&K.N.index.isLoaded()?U||W.rW:U||W.j0;K.eV[W.id]=U}U=K.eV[W.id];K.vp.has(W.itag)&&(U*=1.5);return U*=Math.max(1,K.Pp.xv()||0)}; ZFR=function(K,W,U,h){var m=K.kind;h=h?!1:!K.hideCueRangeMarker;switch(m){case "AD_PLACEMENT_KIND_START":return h={xV:new Yo(-0x8000000000000,-0x8000000000000),lS:h},U!=null&&(h.wf=new Yo(-0x8000000000000,-0x8000000000000)),h;case "AD_PLACEMENT_KIND_END":return h={xV:new Yo(0x7ffffffffffff,0x8000000000000),lS:h},U!=null&&(h.wf=new Yo(Math.max(0,W-U),0x8000000000000)),h;case "AD_PLACEMENT_KIND_MILLISECONDS":m=K.adTimeOffset;m.offsetStartMilliseconds||UF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); m.offsetEndMilliseconds||UF("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");K=Number(m.offsetStartMilliseconds);m=Number(m.offsetEndMilliseconds);m===-1&&(m=W);if(Number.isNaN(K)||Number.isNaN(m)||K>m)return new v("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:K,offsetEndMs:m},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",m===W&&K-500<=m);h={xV:new Yo(K,m),lS:h};if(U!=null){K=Math.max(0,K-U);if(K===m)return h;h.wf=new Yo(K,m)}return h; default:return new v("AdPlacementKind not supported in convertToRange.",{kind:m,adPlacementConfig:K})}}; Mm2=function(K){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(K.j.index.H1()),averageByteRate:Math.round(K.j.info.rW)}}; uCp=function(K,W){var U=K.started+K.j*4;W&&(U+=K.N);U=Math.max(0,U-3);return Math.pow(1.6,U)}; EXL=function(K,W){if(!(iy||vm()||aC()))return null;K=gMs(W,K.L("html5_filter_fmp4_in_hls"));if(!K)return null;W=[];for(var U={},h=g.z(Object.keys(K)),m=h.next();!m.done;m=h.next()){m=g.z(K[m.value]);for(var S=m.next();!S.done;S=m.next()){var f=S.value;f.ZO&&(S=f.ZO.getId(),U[S]||(f=new g.kn(S,f.ZO),U[S]=f,W.push(f)))}}return W.length>0?W:null}; bFC=function(K,W){var U=W.getAudioTrack();return U.id!=="und"?g.yb(K,function(h){var m;return((m=h.ZO)==null?void 0:m.name)===U.getLanguageInfo().name}):K}; g.ye=function(K,W,U,h){g.p.call(this);var m=this;this.logger=new g.io("App");this.IK=this.EP=!1;this.qD={};this.mN=[];this.K2=!1;this.nR=null;this.intentionalPlayback=!1;this.xg=!0;this.JA=!1;this.Jr=this.Ob=this.fR=null;this.YR=!0;this.mediaElement=this.Uz=null;this.dL=NaN;this.vn=!1;this.wv=this.Og=this.x$=this.screenLayer=this.playlist=null;this.HZ=[];this.rL=0;this.xd={FK:function(){return m.gH}, pxs:function(){return m.x$}}; if(!U)throw Error("b/179532961");this.Jx=(W==null?void 0:W.args)||{};this.webPlayerContextConfig=U;W=this.Jx;this.C=new Ju(W,U,U.canaryState,h,this);g.k(this,this.C);W7p(this.C);U=pYs(this.C);this.C.G9()&&this.oa("h5vcc",U);this.C.experiments.Rk("jspb_serialize_with_worker")&&RYY();this.C.experiments.Rk("gzip_gel_with_worker")&&FEs();this.C.X&&!sn2&&(window.addEventListener(CO?"touchstart":"click",Ptp,{capture:!0,passive:!0}),sn2=!0);this.L("html5_onesie")&&(this.wy=new l7(this.C),g.k(this,this.wy)); this.qk().j.v3(Gd)&&(this.dH=new IO(ppp(g.PJ(this.C),this.C.gf,this.C.experiments),new di(this.C.experiments),void 0,function(){return void m.xn()}),g.k(this,this.dH)); this.UI=DL(UJ(this.C)&&!0,W.enablesizebutton);this.AI=DL(!1,W.player_wide);this.visibility=new BoR;g.k(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.E9(DL(!1,W.player_wide));this.EP=DL(!1,W.external_list);this.events=new g.Te(this);g.k(this,this.events);this.L("start_client_gcf")&&(oj(pl(),{RT:sF,Zb:rIz()}),this.Dd=pl().resolve(sF),V$C(this.Dd));this.x9H=new ES;g.k(this,this.x9H);this.ZL=new E2p;U=new BL;this.Yx=new g.jL(this,U);g.k(this,this.Yx);this.template=new Tn(this); g.k(this,this.template);this.appState=1;this.xq=fr2(this);g.k(this,U);U={};this.aB=(U.internalvideodatachange=this.zs,U.playbackready=this.DyK,U.playbackstarted=this.HrH,U.statechange=this.nmx,U);this.nt=new ni(this.Yx);this.f5=t9L(this);U=this.C.G;!1!==U&&this.oa("badps",{hbp:U,hostname:window.location.hostname,ps:this.C.playerStyle});this.aW=new El(this.C,this.f5);this.Yx.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||vc(this.f5))&&N0p(this);U=10;g.PJ(this.C)&&(U=3);T4(this.C)&& (U=g.jV(this.C.experiments,"tvhtml5_unplugged_preload_cache_size"));this.gH=new g.Nz(this.Yx,U);U=Q3z(this);this.gH.pT(U);Qyp(this);U={};this.zC=(U.airplayactivechange=this.v$x,U.airplayavailabilitychange=this.Svp,U.beginseeking=this.Jvp,U.sabrCaptionsDataLoaded=this.lXk,U.endseeking=this.w2x,U.internalAbandon=this.E$U,U.internalaudioformatchange=this.AvH,U.internalvideodatachange=this.pd5,U.internalvideoformatchange=this.uck,U.liveviewshift=this.K1V,U.playbackstalledatstart=this.MB5,U.progresssync= this.cvx,U.onAbnormalityDetected=this.Yve,U.onSnackbarMessage=this.jwH,U.onLoadProgress=this.F15,U.SEEK_COMPLETE=this.CGm,U.SEEK_TO=this.g$r,U.onVideoProgress=this.Qws,U.onLoadedMetadata=this.IXA,U.onAutoplayBlocked=this.Bve,U.onPlaybackPauseAtStart=this.o$V,U.playbackready=this.PGX,U.statechange=this.Vo,U.newelementrequired=this.JN,U.heartbeatparams=this.sRV,U.videoelementevent=this.r9r,U.drmoutputrestricted=this.Vje,U.signatureexpired=this.ick,U.nonfatalerror=this.RlK,U.reloadplayer=this.xke,U); this.Hx=new g.Te(this);g.k(this,this.Hx);this.nu=new ME;g.k(this,this.nu);this.Bm=this.EZ=-1;this.Pj=new g.QC(this.template.resize,16,this.template);g.k(this,this.Pj);this.S_=new sXY(this.Yx,this.C,this.rH(),this);this.Si=new A8(this);g.k(this,this.Si);this.P$=new E5(this);g.k(this,this.P$);p8Y(this.C.j.c);this.events.S(this.Yx,g.$w("appapi"),this.hAs);this.events.S(this.Yx,g.g8("appapi"),this.Uym);this.events.S(this.Yx,g.$w("appprogressboundary"),this.h9x);this.events.S(this.Yx,g.g8("applooprange"), this.gY);this.events.S(this.Yx,"presentingplayerstatechange",this.dg);this.events.S(this.Yx,"resize",this.G7V);this.template.U5(lL(document,K));this.events.S(this.Yx,"offlineslatestatechange",this.kLk);this.events.S(this.Yx,"sabrCaptionsTrackChanged",this.E5V);this.events.S(this.Yx,"sabrCaptionsBufferedRangesUpdated",this.sws);this.f5.D.V().Q6&&Jr(this.f5,"offline");this.C.JK&&g.Q5("ux",g.R3);K=g.jV(this.C.experiments,"html5_defer_fetch_att_ms");this.PA=new g.QC(this.puH,K,this);g.k(this,this.PA); this.yX().Av()&&(g.tA()&&this.yX().XY.push("mdx"),XY(this));this.aW.tick("fs");X7p(this);this.C.JK&&Jr(this.f5,"ux",!0);g.HB(this.f5.D.V())&&Jr(this.f5,"embed");this.L("web_player_sentinel_is_uniplayer")||g.eI(new g.EB("Player experiment flags missing","web_player_sentinel_is_uniplayer"));K=this.L("web_player_sentinel_yt_experiments_sync");U=g.hc("web_player_sentinel_yt_experiments_sync");K!==U&&g.eI(new g.EB("b/195699950",{yt:K,player:U}));this.dT=eSC(this);if(K=g.jV(this.C.experiments,"html5_block_pip_safari_delay"))this.ov= new g.QC(this.Wb,K,this),g.k(this,this.ov);CY=this.C.Cg;this.Yx.publish("applicationInitialized")}; jds=function(K,W,U,h,m,S){this.dk=K;this.zm=W;this.kd=U;this.Xx=h;this.yg=m;this.ZA=S}; zts=function(K){var W=[];oIs(K,function(U){W.push(U)}); return W}; EEs=function(){var K=g.vB("ytcsi.reference");if(K)return K;XX();return g.vB("ytcsi.reference")}; MzF=function(K,W){W!=null?(K.VV=W,K.Mk=!0):(K.VV="",K.Mk=!1)}; vVC=function(K,W){bY(K,1,W.Z5,ua,3);if(W.UM)for(var U=0;U0)||U&&K?null:"neb"}return K!=null?K:null}; Yp=function(K,W,U,h,m){if(Rg(12,K.ji))return new RcF(K,U);K=K.ej();return h?WV$()?new TiC(K,W,U,m):new quC(K,W,U,m):new Q_z(K,U,m)}; h2p=function(K,W){if(W){var U=W.background;U&&g.P(U,UQ_)&&(U=(U=g.P(U,UQ_).image)&&tE(U)||"",g.YD(U)?g.eI(Error("Found ThumbnailDetails without valid image URL")):g.Zd(K.Le,"backgroundImage","url("+U+")"));if(W.durationMilliseconds==null||W.durationMilliseconds===void 0||W.durationMilliseconds===0)K=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(W)),g.wG(K);else{K.N=g.hi();K.j=new mE(K.api,W.durationMilliseconds);g.k(K,K.j);if(K.j&&W.instreamAdPlayerOverlay&&g.P(W.instreamAdPlayerOverlay, jK))try{var h=new ms(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,K.j);h.U5(K.playerOverlay);h.init(Mq("survey-player-overlay"),g.P(W.instreamAdPlayerOverlay,jK),K.macros);K.W=h;g.k(K,h);K.B5()}catch(m){h=Error("ISAPOR had an error when initializing. Error: "+(m+" SurveyAdQuestionCommon: "+JSON.stringify(W))),g.wG(h)}else h=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(W)),g.wG(h);K.j&&W.durationMilliseconds&&W.durationMilliseconds>0?(W=new x5(K.api,K.j), W.U5(K.playerOverlay),g.k(K,W)):(K=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(W)),g.wG(K))}}else g.wG(Error("addCommonComponents() needs to be called before starting countdown."))}; jfY=function(K){this.iZ=qR(K)}; g.MK=function(K){K.Le=K.j.length-1;K.DO=0;mQp(K,!0)&&mQp(K,!1);for(var W=0,U=0;U=0;h--)if(K.j[h].width>0){NPC(K.j[h],0);var m=Math.floor(K.j[h].width);K.j[h].width=m;pf(K.j[h],m+"px");break}K.j[U].width=0;pf(K.j[U],"0")}else U===K.j.length-1?(h=Math.floor(K.j[U].width+W),K.j[U].width=h,pf(K.j[U],h+"px")):(W=K.j[U].width+W,h=Math.round(W),W-=h,K.j[U].width=h,pf(K.j[U],h+"px"));U=0;if(K.W.length===K.j.length)for(W=0;W< K.W.length;W++)h=K.j[W].width,K.W[W].element.style.width=h+"px",K.W[W].element.style.left=U+"px",U+=h+tl(K);K.api.L("delhi_modern_web_player")&&(K.j.length===1?K.j[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(K.j[0].X.classList.remove("ytp-progress-bar-end"),K.j[0].X.classList.add("ytp-progress-bar-start"),K.j[K.j.length-1].X.classList.add("ytp-progress-bar-end")))}; KuC=function(K,W){return er(K,1,W)}; cz=function(K,W){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=W||K(this.triggerType)}; SaD=function(K){var W=new Set,U=new Map,h={};K=g.z(K);for(var m=K.next();!m.done;m=K.next()){m=m.value;var S=m.quality,f=m.isPlayable,G=m.qualityLabel;G&&S&&(f&&U.has(S)&&U.get(S)!==G?W.add(S):f&&U.set(S,G),h[G]||(h[G]=m))}U=[];h=g.z(Object.values(h));for(K=h.next();!K.done;K=h.next())m=K.value,(K=m.quality)&&!W.has(K)&&(m.formatId=void 0),U.push(m);return U}; huY=function(K,W,U,h,m,S){this.displayName=K;this.vssId=W;this.languageCode=U;this.kind=h===void 0?"":h;this.xtags=m===void 0?"":m;this.id=S===void 0?"":S}; QGs=function(K,W){var U=[];W?W.isTrusted===!0?U.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):W.isTrusted===!1?U.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):U.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):U.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");lc(0,"a.s_",{metadata:K,states:U});ec("ASDSTAT",0)}; g.Ln=function(K){return K.L("html5_local_playsinline")?rQ&&!g.rs(602)&&!("playsInline"in rv()):rQ&&!K.Cw||g.PP("nintendo wiiu")?!0:!1}; g.p4=function(K,W,U,h,m){if(h&&h.once)return hL(K,W,U,h,m);if(Array.isArray(W)){for(var S=0;S0&&gI(W);W={isNavigation:!0,actionType:TC(g.TA("TIMING_ACTION"))};var U=g.TA("PREVIOUS_ACTION");U&&(W.previousAction=TC(U));if(U=g.TA("CLIENT_PROTOCOL"))W.httpProtocol=U;if(U=g.TA("CLIENT_TRANSPORT"))W.transportProtocol=U;(U=g.z0())&&U!=="UNDEFINED_CSN"&&(W.clientScreenNonce=U);U=Z_2();if(U===1||U===-1)W.isVisible= !0;U=mHz().loadType==="cold";var h=qsp();U||(U=h.yt_lt==="cold");if(U){W.loadType="cold";U=qsp();h=JVY();var m=Ko(),S=g.TA("CSI_START_TIMESTAMP_MILLIS",0);S>0&&!g.hc("embeds_web_enable_csi_start_override_killswitch")&&(m=S);m&&(b2("srt",h.responseStart),U.prerender!==1&&iD(m));U=ko$();U>0&&b2("fpt",U);U=JVY();U.isPerformanceNavigationTiming&&gI({performanceNavigationTiming:!0},void 0);b2("nreqs",U.requestStart,void 0);b2("nress",U.responseStart,void 0);b2("nrese",U.responseEnd,void 0);U.redirectEnd- U.redirectStart>0&&(b2("nrs",U.redirectStart,void 0),b2("nre",U.redirectEnd,void 0));U.domainLookupEnd-U.domainLookupStart>0&&(b2("ndnss",U.domainLookupStart,void 0),b2("ndnse",U.domainLookupEnd,void 0));U.connectEnd-U.connectStart>0&&(b2("ntcps",U.connectStart,void 0),b2("ntcpe",U.connectEnd,void 0));U.secureConnectionStart>=Ko()&&U.connectEnd-U.secureConnectionStart>0&&(b2("nstcps",U.secureConnectionStart,void 0),b2("ntcpe",U.connectEnd,void 0));m6&&"getEntriesByType"in m6&&e2s();U=[];if(document.querySelector&& m6&&m6.getEntriesByName)for(var f in EzF)EzF.hasOwnProperty(f)&&(h=EzF[f],Jfe(f,h)&&U.push(h));if(U.length>0)for(W.resourceInfo=[],f=g.z(U),U=f.next();!U.done;U=f.next())W.resourceInfo.push({resourceCache:U.value})}gI(W);W=sY();W.preLoggedGelInfos||(W.preLoggedGelInfos=[]);f=W.preLoggedGelInfos;W=e7e();U=void 0;for(h=0;h>>0,u0=Number(K>>BigInt(32)&BigInt(4294967295));else{var W=+(K[0]==="-");u0=FJ=0;for(var U=K.length,h=0+W,m=(U-W)%6+W;m<=U;h=m,m+=6)h=Number(K.slice(h,m)),u0*=1E6,FJ=FJ*1E6+h,FJ>=4294967296&&(u0+=Math.trunc(FJ/4294967296),u0>>>=0,FJ>>>=0);W&&(W=g.z(gl(FJ,u0)),K=W.next().value,W=W.next().value,FJ=K,u0=W)}}; Bg$=function(K,W,U,h){g.GP.call(this);this.videoData=K;this.C=W;this.J=U;this.sessionId=h;this.U={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Ms=this.uX=!1;this.N=null;this.Ns=[];this.W=[];this.authorizedFormats=[];this.Y=!1;this.j={};this.status="";this.G=NaN;this.X=K.U;this.cryptoPeriodIndex=U.cryptoPeriodIndex;K={};Object.assign(K,this.C.j);K.cpn=this.videoData.clientPlaybackNonce;this.videoData.uX&&(K.vvt=this.videoData.uX,this.videoData.mdxEnvironment&&(K.mdx_environment= this.videoData.mdxEnvironment));this.C.DA&&(K.authuser=this.C.DA);this.C.pageId&&(K.pageid=this.C.pageId);isNaN(this.cryptoPeriodIndex)||(K.cpi=this.cryptoPeriodIndex.toString());var m=(m=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.i5()))?m[1]:"";m==="ATV"&&(K.cdt=m);this.U=K;this.U.session_id=h;this.jV=!0;this.X.flavor==="widevine"&&(this.U.hdr="1");this.X.flavor==="playready"&&(W=Number(L6(W.experiments,"playready_first_play_expiration")),!isNaN(W)&&W>=0&&(this.U.mfpe=""+W),this.jV=!1);W="";g.N6(this.X)? eV(this.X)?(h=U.X)&&(W="https://www.youtube.com/api/drm/fps?ek="+jbC(h)):(W=U.initData.subarray(4),W=new Uint16Array(W.buffer,W.byteOffset,W.byteLength/2),W=String.fromCharCode.apply(null,W).replace("skd://","https://")):W=this.X.X;this.baseUrl=W;this.fairplayKeyId=xT(this.baseUrl,"ek")||"";if(W=xT(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(W);this.Ns=U.yh?[g.o0(U.initData,4)]:U.N;VC(this,{sessioninit:U.cryptoPeriodIndex});this.status="in"}; DQD=function(K,W){K.index=g.Jk(W,0,K.length-1);K.startSeconds=0}; hXY=function(K){var W=0;K=g.z(K);for(var U=K.next();!U.done;U=K.next())W+=U.value.range.length;return W}; c8p=function(K){var W;return(K=K==null?void 0:(W=K.error)==null?void 0:W.code)&&K>=400&&K<=599?!1:!0}; rVY=function(K,W){var U=W.Wp,h=K.Gm.mK;if(mXe(K))if(K.uX&&K.uX.Vt.has(IZ(U,h))){if(h=IZ(U,h),H2$(K,W)){var m=new rd(K.uX.GR(h)),S=function(f){try{if(f.q4())K.handleError(f.KN(),f.K7()),Aq(W,f),fk(f.info)&&Vt(K.G,W,U,!0),K.TL();else if(iN(K.G,f)){var G;(G=K.N)==null||IqC(G,f.info,K.U);K.TL()}}catch(I){f=XI(I),K.handleError(f.errorCode,f.details,f.severity),K.uu()}}; U.N=!0;g4(m)&&(bF(W,new kA(K.policy,h,m,K.uX,S)),iP(K.timing))}}else K.rk("ombfmt",{})}; TgF=function(K){if(!/^\w+$/.test(K))throw Error("ExpectedRegexMismatch: "+K);}; g.It=function(K,W,U,h,m,S,f){g.ad.call(this,g.w8({"aria-haspopup":"true"}),W,K);this.pg=h;this.Ms=!1;this.U=null;this.options={};this.FI=new g.Ff(U,void 0,K,m,S,f);g.k(this,this.FI);this.listen("keydown",this.RD);this.listen("click",this.open)}; A8=function(K){g.p.call(this);var W=this;this.app=K;this.G=this.X=this.j=null;this.J=!1;this.N=this.W=null;this.U=XSL(this.app.V());this.Y=function(){g.kK(function(){Cap(W)})}}; aCC=function(K,W,U,h,m){vh.call(this,K,{T:"div",Z:"ytp-ad-info-dialog-background",K:[{T:"div",Z:"ytp-ad-info-dialog-container",K:[{T:"div",Z:"ytp-ad-info-dialog-form",B:{role:"dialog",tabindex:"-1"},K:[{T:"div",Z:"ytp-ad-info-dialog-title",bX:"{{title}}"},{T:"ul",Z:"ytp-ad-info-dialog-ad-reasons"},{T:"div",Z:"ytp-ad-info-dialog-message"},{T:"div",Z:"ytp-ad-info-dialog-mute-container"},{T:"div",Z:"ytp-ad-info-dialog-confirm-container",K:[{T:"button",Z:"ytp-ad-info-dialog-confirm-button",bX:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",W,U,h);this.j=this.X=null;this.J=this.yH("ytp-ad-info-dialog-confirm-button");this.JK=this.yH("ytp-ad-info-dialog-mute-container");this.vp=this.yH("ytp-ad-info-dialog-message");this.Le=this.yH("ytp-ad-info-dialog-ad-reasons");this.W=this.N=null;this.hK=m;this.U=null;this.tK=!1;this.uX=null;this.hide()}; Qfz=function(K){var W;return(W=K[wA_])!=null?W:K[wA_]=new Map(A0C(fAR(K)).map(function(U){return[U.getName(),NB(U,2)]}))}; Ve=function(K){return window.Int32Array?new Int32Array(K):Array(K)}; CI=function(K){for(var W=0,U=g.z(K.X),h=U.next();!h.done;h=U.next())W+=uhL(h.value.info);return W+=QxD(K.N)}; g.DR=function(K,W){mdY(K,{uKK:g.jV(W.experiments,"bg_vm_reinit_threshold"),cspNonce:W.cspNonce,M$:W.M$||""})}; Hi=function(K){return g.C(K,128)?-1:g.C(K,2)?0:g.C(K,2048)?3:g.C(K,64)?-1:g.C(K,1)&&!g.C(K,32)?3:g.C(K,8)?1:g.C(K,4)?2:-1}; g.zC=function(K,W,U){U===void 0?delete K[W.name]:K[W.name]=U}; XG=function(K){return K.X5?K.X5-(K.J||K.timestampOffset):0}; $Qs=function(K,W){return(K=$Xz(K,W*1E3))?W-K.start/1E3:W}; TZ=function(K,W,U){U=U===void 0?!1:U;if(!K.j||!K.j.X)return NaN;K=US(K);a:{W+=.02;var h=U;h=h===void 0?!1:h;for(var m=-1,S=0;S=W){W=S;break a}}W=m}return W<0?NaN:IOY(K,U?W:0)?K[W].startTime:NaN}; NFp=function(K,W,U){W=g.z(W);for(var h=W.next();!h.done;h=W.next()){h=h.value;var m=void 0,S=Number((m=h.playbackRelativePosition)==null?void 0:m.utcTimeMs)/1E3,f=void 0;m=S+Number((f=h.duration)==null?void 0:f.seconds);f="stations:"+U+":"+S;K.X.has(f)||(K.X.add(f),h.onEnter&&(K.j[f]=h.onEnter),K.api.addUtcCueRange(f,S,m,U,!1))}}; X8C=function(K){K=(K.renderer.linearAdSequenceRenderer||{}).linearAds;return K!=null&&K.length?K.filter(function(W){var U,h;return((U=g.P(W,iY))==null?void 0:(h=U.playerOverlay)==null?void 0:h.instreamSurveyAdRenderer)!=null}).length:0}; Yc=function(K,W){var U=Error.call(this);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.index=K;this.objectStore=W;Object.setPrototypeOf(this,Yc.prototype)}; Lfs=function(K){K.j||(K.j=new au);return K.j}; WZD=function(K){var W;return((W=K.audio)==null?void 0:W.X)===!0}; Yap=function(K){var W={};W[K.status]=vy(K)?IKC(K,"."):K.W.join(".");return W}; QN=function(K,W){this.info=K;this.X=W;this.j=null;this.W=this.N=-1;this.timestampOffset=0;this.isLocked=this.G=!1;this.U=this.info.Wp.qM()&&!this.info.j}; kn$=function(K){jf.call(this,K);var W=this;WI(this.api,"getPlaybackRate",function(){return W.api.getPlaybackRate()}); WI(this.api,"setPlaybackRate",function(U){typeof U==="number"&&W.api.setPlaybackRate(U)})}; Dc=function(K){return K.N?!1:!K.keySystemAccess&&!!dJ()&&K.keySystem==="com.microsoft.playready"}; dU$=function(K){try{return new k7(K.Sx,K.slot,K.layout,K.m1,K.Lc,K.ZA,K.TK,K.hS,K.lZ,K.dk,K.WeA,K)}catch(W){}}; g.e0=function(K,W){this.state=K;this.oldState=W}; O2R=function(K,W){var U;return(U=W.onEnter)==null?void 0:U.some(K.X)}; phR=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);fZ(this.api,"musicDisableUi",function(){g.$C(W.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); fZ(this.api,"musicEnableUi",function(){g.WR(W.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; ars=function(K,W){var U;W&&(U=g.dG(K.W.j,function(m){return m.id===W})); if(!U&&(U=g.dG(K.W.j,function(m){var S;return!((S=m.ZO)==null||!S.isDefault)}),W)){var h; K.rk("iaf",{id:W,sid:(h=U)==null?void 0:h.id})}return U}; b0s=function(K,W,U){var h=cV$[K]||[];U.L("html5_shorts_onesie_mismatched_fix")&&(h=nze[K]||[]);W.push.apply(W,g.z4(h));U.L("html5_early_media_for_drm")&&W.push.apply(W,g.z4(gzD[K]||[]))}; FVp=function(K){K.jz("active_view_measurable")}; i2L=function(K,W){var U,h=uos(K,(U=W.j)==null?void 0:U.videoInfos);U=K.iX.getPlaybackRate();return U>1&&h?(K=kqD(K.C.U,W.j.videoInfos,U),new ZO(0,K,!0,"o")):new ZO(0,0,!1,"o")}; sH=function(K){this.iZ=qR(K)}; g.Zm=function(K,W,U){return K.state.j[W].apply(K.state.j,g.z4(U))}; v5=function(K,W,U){Bm.call(this,K,W,U)}; Vt=function(K,W,U,h){if(!(U.LC()||U.qM()||U.N||!Rq(U.T9,K.policy,K.W,K.loader.Xq)||U.info.lX==="f"||K.policy.j)){if(h){h=K.U;var m=U.info;h=m5C(h,m.video?h.policy.ZN:h.policy.rP,m.j0)}else h=0;h=U.Gp(h);K=n1s(K,h);g4(h)&&bF(W,K);U.N=!0}}; z2D=function(K){if(!K.qs())if(K.C.L("html5_drm_set_server_cert")||eV(K.j)){var W=K.W.setServerCertificate();W?W.then(bd(function(U){K.C.G9()&&K.publish("ctmp","ssc",{success:U})}),bd(function(U){K.publish("ctmp","ssce",{n:U.name, m:U.message})})).then(bd(function(){DZ2(K)})):DZ2(K)}else DZ2(K)}; NgY=function(K){switch(K){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; dSR=function(){var K=g.SZ("yt-player-proxima-pref");return K==null?null:K}; sts=function(K,W,U,h){if(W&&!W.hasAttribute)K=new g.EB("showElementTooltip called with non-element.",W.toString()),g.wG(K);else{isNaN(K.W)||(K.W=NaN,K.bg.style.background="");g.WR(K.element,"ytp-tooltip-progress-bar-style");K.j=W;K.Y=!!h;h?K.N=h:(K.env.L("player_tooltip_data_title_killswitch")?K.N=W.getAttribute("title"):K.N=W.getAttribute("data-tooltip-title"),K.env.L("player_tooltip_data_title_killswitch")?W.removeAttribute("title"):W.removeAttribute("data-tooltip-title"));g.pG(K.element,"ytp-tooltip"); var m=W.getAttribute("data-tooltip-image");m&&(K.image.style.backgroundImage="url("+m+")");h?K.update({ariaHidden:"false"}):K.update({ariaHidden:"true"});g.JM(K.element,"ytp-tooltip-image-enabled",!!m);W=W.getAttribute("data-tooltip-opaque");g.JM(K.element,"ytp-tooltip-opaque",!!W);K.type=U;K.api.addEventListener("appresize",K.Ms);K.G&&(g3(K),K.fade.show(0))}}; g.WS=function(K,W,U){K.U=U?lg(W,!0):W;K.U&&(K.U=K.U.replace(/:$/,""))}; g.N1=function(K){return g.r(function(W){return W.return(g.Vm(AVe(),K))})}; g.g0=function(K,W,U){U=U===void 0?{}:U;this.start=K;this.end=W;this.active=!0;this.color="";this.X=R2Y++;this.id=U.id||"";this.priority=U.priority||9;this.visible=U.visible||!1;this.style=U.style||bq.AD_MARKER;this.namespace=U.namespace||"";if(K=U.color)K=K.toString(16),this.color="#"+Array(7-K.length).join("0")+K;this.tooltip=U.tooltip;this.icons=U.icons?U.icons.filter(function(h){return g.X9(h.thumbnails,function(m){return g.Rv(m.url)})}):null; this.associatedClipId=U.associatedClipId;this.markerPositionMs=U.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start}; Av=function(K,W){if(W===void 0)for(var U=Cn_(),h=0;h=S){var f=K[S];if(f!=null&&typeof f==="object"&&f.constructor===Object){U=f[W];var G=!0}else if(m===S)U=f;else return}else U=K[m];if(h&&U!=null){h=h(U);if(h==null)return h;if(!Object.is(h,U))return G?f[W]=h:K[m]=h,h}return U}}; za=function(K,W){K.msg=bj[W];return W}; FBp=function(K,W,U,h){W.CPN=h0(function(){var m;(m=K.getVideoData(1))?m=m.clientPlaybackNonce:(g.eI(Error("Video data is null.")),m=null);return m}); W.AD_MT=h0(function(){if(h!=null)var m=h;else{var S=U;K.V().L("html5_ssap_use_cpn_to_get_time")||(S=void 0);if(K.V().L("enable_h5_shorts_ad_fill_ad_mt_macro")||K.V().L("enable_desktop_discovery_pings_ad_mt_macro")||KL(K.V())){var f=K.getPresentingPlayerType(!0),G;m=((G=K.getVideoData(f))==null?0:G.isAd())?MqD(K,f,S):0}else m=MqD(K,2,S)}return Pas(m)}); W.MT=h0(function(){return Pas(K.getCurrentTime(1,!1))}); W.P_H=h0(function(){return K.xx().Us().height.toString()}); W.P_W=h0(function(){return K.xx().Us().width.toString()}); W.PV_H=h0(function(){return K.xx().getVideoContentRect().height.toString()}); W.PV_W=h0(function(){return K.xx().getVideoContentRect().width.toString()})}; VUp=function(K,W,U,h,m,S,f){W=ZFR(W,S,Number(h.prefetchMilliseconds)||0,f);K=W instanceof v?W:r2s(K,h,m,W,U);return K instanceof v?K:[K]}; eB=function(){var K=g.qs,W=[],U=null;do{var h=K;if(ZL(h)){var m=h.location.href;U=h.document&&h.document.referrer||null}else m=U,U=null;W.push(new vbF(m||""));try{K=h.parent}catch(S){K=null}}while(K&&h!==K);h=0;for(K=W.length-1;h<=K;++h)W[h].depth=K-h;h=g.qs;if(h.location&&h.location.ancestorOrigins&&h.location.ancestorOrigins.length===W.length-1)for(K=1;K>>0}; Z2Y=function(K){K.j.forEach(function(W){W.delay.dispose()}); K.j.clear()}; sfC=function(K){var W={},U={};K=g.z(K);for(var h=K.next();!h.done;h=K.next()){var m=h.value,S=m.split("|");m.match(g.b2F)?(h=Number(S.pop()),isNaN(h)?U[m]="?":(S=S.join("|"),(m=W[S])?(S=m[m.length-1],h===S.end+1?S.end=h:m.push({start:h,end:h})):W[S]=[{start:h,end:h}])):U[m]="?"}K=g.z(Object.keys(W));for(h=K.next();!h.done;h=K.next())h=h.value,U[h]=W[h].map(function(f){return f.start+"-"+f.end}).join(","); return U}; XAD=function(K){var W=K.V();if(W.L("html5_disable_onesie")||!W.L("html5_onesie")||!W.L("html5_onesie_inline")&&K.getVisibilityState()===5||W.Ms!=="yt")return!1;var U=W.Ez;if(!U||!U.j)return K.handleError(new g.F3("onesie.unavailable.hotconfig",{key:"0"})),!1;if(U.j.G<(0,g.AI)()&&(K.rk("okexp","1"),(U=K.Rq())&&W.L("html5_prefer_trusted_host_on_key_expiration"))){U.X=!0;var h;(W=(h=U.j.get(0))==null?void 0:eA(11,h.location))&&!Uq(W)&&U.j.delete(0)}if(VqD)return K.rk("ost3","1"),!1;h={};return Object.keys(h).length> 0?(h.onesie="0",K.handleError(new g.F3("html5.missingapi",h)),!1):!0}; vzs=function(K){if(K!==zL)throw Error();}; dc=function(K,W,U,h){this.X=null;this.U=!1;this.j=this.N=this.W=0;this.init(K,W,U,h)}; l4=function(K){this.dk=K;this.j=!1}; Fns=function(K,W){var U=W.pop();for(U=K.X+K.j.length()-U;U>127;)W.push(U&127|128),U>>>=7,K.X++;W.push(U);K.X++}; L6=function(K,W){return(K=K.v3(W))?K.toString():""}; vu=function(K,W){if(l5(K.j,W)){La(K.j,W).G=!1;var U=A6;W=La(K.j,W);var h=[].concat(g.z4(W.J));Ioe(W.J);U(K,h)}}; WL=function(K){return K.type===3||K.type===6}; J9e=function(K){K=tP(K);if(K=="")return null;var W=String(K.slice(0,4)).toLowerCase();if(("url("1||K&&K.split(")"),null;if(K.indexOf("(")>0){if(/"|'/.test(K))return null;W=/([\-\w]+)\(/g;for(var U;U=W.exec(K);)if(!(U[1].toLowerCase()in qap))return null}return K}; MQY=function(K,W){K.j=W}; hkC=function(K,W,U){U=K.j.Tp(U);var h=K.X;h.j.exports.AES128CTRCipher_setCounter(h.cipher,U.byteOffset);K.j.free(U.byteOffset);W=K.j.Tp(W);K.X.encrypt(W);return W}; kmC=function(K){var W=Ab(K,function(m,S){return m+S.length},0); W=new Uint8Array(W);var U=0;K=g.z(K);for(var h=K.next();!h.done;h=K.next())h=h.value,W.set(h,U),U+=h.length;return W}; dEC=function(K){return K.replace(/(\d+)---/g,function(W,U){W=Number(U);return(W===1?2:W-1)+"---"})}; g.Mk=function(K){return{fieldType:3,fieldName:K}}; LBp=function(K,W,U,h,m,S,f,G){var I=Xp(K.ZA.get(),1);if(iDp(K.Xx.get())){var d=CcL(K.X.get(),U,h,m,I.clientPlaybackNonce,I.JW,I.daiEnabled,I,S,f);FMY(K,d);qX(K.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return d},W)}else qX(K.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return CcL(K.X.get(),U,h,m,I.clientPlaybackNonce,I.JW,I.daiEnabled,I,S,f,G)},W)}; xQY=function(K,W){K instanceof String&&(K+="");var U=0,h=!1,m={next:function(){if(!h&&U=m-S||!U.pw()?U=h>3)){var m=W[U],S=m[t[18]](t[16]);S>0?Do(57,h,m[t[41]](0,S),m[t[41]](S+1)):m&&(h[m]=t[3]);var f=[W,U,h]}K<<1&7||U[t[4]]==0||(W=(W%U[t[4]]+U[t[4]])%U[t[4]],U[t[35]](0,1,U[t[35]](W,1,U[0])[0]));if((K|9)>>3==1)if(U=U===void 0?!1:U,eA(50,W),W[t[14]]!==t[42])m=W[t[37]](),m[t[7]](t[57],t[12]),f=m;else{S=W[t[67]]();m=new g.FS(S);var G=W[t[17]](t[91]),I=decodeURIComponent(W[t[17]](t[45])||t[3])[t[26]](t[1]);if(G&&I&&I[t[4]]>1&&I[1]){S=m[t[8]];var d=S[t[63]](/^[^.]*/,t[3]); g.Ld(m,(S[t[18]](t[6])===0?t[6]:t[23])+G+t[13]+I[1]+d);m=new g.va(m[t[44]]());m[t[7]](t[47],t[12]);f=m}else U?(m=W[t[37]](),m[t[7]](t[47],t[12]),f=m):(G=m[t[8]][t[52]](t[31]),m[t[8]][t[52]](t[60])?(g.Ld(m,t[92]),S=m[t[44]]()):m[t[8]][t[52]](t[94])?(g.Ld(m,t[93]),S=m[t[44]]()):(m=Y2p(S),pE(m)&&(S=m)),m=new g.va(S),m[t[7]](t[10],t[12]),G&&m[t[7]](t[84],t[68]),f=m)}(K>>2&16)<8&&((K|4)&15)>=12&&(eA(48,W),f=g.LL(W[t[8]],xNR));return f}; WC=function(K,W){return nN(K,W.Xd,W.oR)?!0:!1}; KF=function(K){var W=!!K.Uz&&K.api.getPresentingPlayerType()!==2,U=K.clipStart,h=K.clipEnd,m=!0,S=!0;W&&K.Uz?(U=K.Uz.startTimeMs/1E3,h=K.Uz.endTimeMs/1E3):(m=U>K.N.X,S=K.N.j>0&&h.4?-1:1;return(W==0?null:W)==-1?"rtl":"ltr"}; zvC=function(K,W){var U=K.NJ,h=G1(K);U!==void 0?(W.zi=U.zi,U.zi=W):(W.zi=void 0,K.RS=W);W.Hj=U;K.NJ=W;if(!h)for(K=K.producers;K!==void 0;K=K.LZ)zvC(K.kc,K)}; UIs=function(K,W,U,h){U=U.split("#");U=[U[1],U[2],0,U[3],U[4],-1,U[0],""].join("#");g.Ho.call(this,K,W,U,0);this.X=null;this.U=h?2:0}; ov=function(K){var W=K.N.Hg();return W?W.info:Kp(K)}; n9Y=function(K){var W=K.sampleInterval,U=K.maxBufferSize;if(W>0&&U>0&&!K.X&&K.N<1E7)try{K.W=K.U({sampleInterval:W,maxBufferSize:U});var h;(h=K.W)==null||h.addEventListener("samplebufferfull",function(){return g.r(function(m){if(m.j==1)return g.T(m,K.stop(),2);n9Y(K);g.q1(m)})})}catch(m){K.X=s1$(m.message)}}; uB=function(K){L9.call(this,K.rf,K.slot,K.z5,K.zm,K.yg,K.ZA,K.dk,K.Hl,K.xm,K.kd,K.vY,K.iA,K.w4,K.Ng,K.Xx,K.u3,K.Pu,K.context)}; jWp=function(K,W,U,h,m){h=h===void 0?0:h;m=m===void 0?0:m;K.Hh()||Gv(K);K.W=new Y2;K.j=W;var S=U,f=m===0;f=f===void 0?!0:f;var G=K.app.E5(),I=G.getVideoData().isLivePlayback?Infinity:G.Id(!0)*1E3;S>I&&(S=I-200,K.J=!0);f&&G.getCurrentTime()>=S/1E3?K.Y():(K.X=G,f&&(f=S,S=K.X,K.app.Yx.addEventListener(g.$w("vqueued"),K.Y),f=isFinite(f)||f/1E3>S.getDuration()?f:0x8000000000000,K.G=new g.g0(f,0x8000000000000,{namespace:"vqueued"}),S.addCueRange(K.G)));f=h/=1E3;S=W.getVideoData().j;h&&S&&K.X&&(G=h,I=0, W.getVideoData().isLivePlayback&&(f=Math.min(U/1E3,K.X.Id(!0)),I=Math.max(0,f-K.X.getCurrentTime()),G=Math.min(h,W.Id()+I)),f=HHe(S,G)||h,f!==h&&K.j.rk("qvaln",{st:h,at:f,rm:I,ct:G}));W=f;h=K.j;h.getVideoData().Cg=!0;h.getVideoData().Y=!0;h.ZM(!0);S={};K.X&&(S=K.X.Da(),f=K.X.getVideoData().clientPlaybackNonce,S={crt:(S*1E3).toFixed(),cpn:f});h.rk("queued",S);W!==0&&h.seekTo(W+.01,{Vk:!0,Nh:3,JS:"videoqueuer_queued"});K.N=new hTp(K.U,K.app.E5(),K.j,U,K.app,m);U=K.N;U.status.status!==Infinity&&($L(U, 1),U.j.subscribe("internalvideodatachange",U.W0,U),U.X.subscribe("internalvideodatachange",U.W0,U),U.vl.V().L("html5_gapless_use_format_info_fix")&&(U.j.subscribe("internalvideoformatchange",U.W0,U),U.X.subscribe("internalvideoformatchange",U.W0,U)),U.j.subscribe("mediasourceattached",U.W0,U),U.X.subscribe("statechange",U.CB,U),U.j.subscribe("newelementrequired",U.GX,U),U.W0());return K.W}; kR=function(){Pm.apply(this,arguments)}; mIe=function(K){return Math.max(K.bottom-K.top,0)*Math.max(K.right-K.left,0)}; dD=function(K,W,U){U=U===void 0?{}:U;xc.call(this,K,W,"",void 0,void 0,U.GI||0);this.index=new KT(U)}; I2s=function(K){K=qh.includes("en")?K.L("delhi_modern_web_player_icons")?xH():{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{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"}}]}:K.L("delhi_modern_web_player_icons")?PBp():{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{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"}}]};K.Z="ytp-subtitles-button-icon"; return K}; Uy=function(K,W,U){Bm.call(this,K,W,U)}; AeR=function(K){if(!K)return 0;var W=K.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return W?(Number(W[2])|0)*3600+(Number(W[4])|0)*60+(Number(W[6])|0):Number(K)|0}; XU=function(K,W){this.Tm=K;this.author="";this.WQ=null;this.playlistLength=0;this.j=this.sessionData=null;this.i$={};this.title="";if(W){this.author=W.author||W.playlist_author||"";this.title=W.playlist_title||"";if(K=W.session_data)this.sessionData=Ii(K,"&");var U;this.j=((U=W.thumbnail_ids)==null?void 0:U.split(",")[0])||null;this.i$=Ht(W,"playlist_");this.videoId=W.video_id||void 0;if(U=W.list)switch(W.listType){case "user_uploads":this.playlistId=(new D9("UU","PLAYER_"+U)).toString();break;default:if(K= W.playlist_length)this.playlistLength=Number(K)||0;this.playlistId=Vz(U).toString();if(W=W.video)this.videoId=(W[0]||null).video_id||void 0}else W.playlist&&(this.playlistLength=W.playlist.toString().split(",").length)}}; jKz=function(K){if(K.D.isEmbedsShortsMode())return!1;K=K.D;var W=K.V();if(W.N)return!1;var U;if(((U=W.getWebPlayerContextConfig())==null?0:U.embedsEnableEmc3ds)||W.controlsType==="3")return!1;if(W.playerStyle==="creator-endscreen-editor")return!0;U=K.getVideoData();return!!U&&(!!g.on$(U)||!!g.qLY(U))}; m0=function(K){g.p.call(this);this.j=K;this.Lg=new Map}; Sx_=function(K,W,U){if(W==null)U.push("null");else{if(typeof W=="object"){if(Array.isArray(W)){var h=W;W=h.length;U.push("[");for(var m="",S=0;S0){var S=W.end.toString();m.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&f.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&f.adTimeOffset&&f.adTimeOffset.offsetEndMilliseconds==="-1"&&f.adTimeOffset.offsetEndMilliseconds!==S&&(f.adTimeOffset.offsetEndMilliseconds=S)}); h.map(function(f){return g.P(f,vX)}).forEach(function(f){var G; (f=f==null?void 0:(G=f.slotEntryTrigger)==null?void 0:G.mediaTimeRangeTrigger)&&f.offsetEndMilliseconds==="-1"&&(f.offsetEndMilliseconds=S)})}return{Pr:m, adSlots:h,M_:!1,ssdaiAdsConfig:K.ssdaiAdsConfig}}; jU=function(){return g.vB("ytPubsub2Pubsub2Instance")}; BJR=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(K){return 0}}; nm=function(){return yq(cos)}; ISC=function(K,W,U){U=U===void 0?0:U;var h,m;return g.r(function(S){if(S.j==1)return h=[],h.push(W.load()),U>0&&h.push(vgY(U)),g.T(S,Promise.race(h),2);m=dFC(K,W);return S.return(m)})}; dIs=function(K){K.menuItem||(K.menuItem=new Sn(K.api),g.k(K,K.menuItem),K.menuItem.SV(K.j))}; lbp=function(K,W){K=K.app.E5();var U=K.getPlayerState();W.isOrWillBePlaying()&&!U.isOrWillBePlaying()?K.playVideo():W.isPaused()&&!U.isPaused()&&K.pauseVideo()}; nU=function(K,W,U){W.mR().currentState>=2||(W.iG(W.VH(),U),DTC(W.mR())&&(RM(K.p7,K.slot,W.VH(),U),K.eB=void 0))}; tE=function(K){return K&&K.thumbnails&&(K.thumbnails||null).length!=0&&K.thumbnails[0].url?g.lP(K.thumbnails[0].url):""}; JH$=function(K,W,U,h){B4(K)&&K.Sh&&h&&h!==96&&(h=U?K.iX.eh(W):W,K.Sq(h)||K.Sh.j||K.rk("prebuffer",{miss:1,t:W.toFixed(3),isUtc:U}))}; PER=function(K){var W,U,h;return g.r(function(m){if(m.j==1)return g.T(m,Promise.race([K.j,null]),2);W=m.X;var S=Rk(K);K.j=S;(U=W)==null||(h=U.Mb)==null||h.dispose();g.q1(m)})}; g.Uv=function(){eTL||(eTL=new hEp);return eTL}; yvp=function(K,W){K.network=W;return K}; g.N$=function(K){var W=[],U=0,h;for(h in K)W[U++]=h;return W}; gMs=function(K,W,U,h){W=W===void 0?!1:W;U=U===void 0?!0:U;h=h===void 0?{}:h;var m={};K=g.z(K);for(var S=K.next();!S.done;S=K.next()){S=S.value;if(W&&MediaSource&&MediaSource.isTypeSupported){var f=S.type;S.audio_channels&&(f=f+"; channels="+S.audio_channels);if(!MediaSource.isTypeSupported(f)){h[S.itag]="tpus";continue}}if(U||!S.drm_families||S.eotf!=="smpte2084"&&S.eotf!=="arib-std-b67"){f=void 0;var G={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},I=S.type.match(/codecs="([^"]*)"/); I=I?I[1]:"";S.audio_track_id&&(f=new g.nl(S.name,S.audio_track_id,!!S.is_default));var d=S.eotf;S=new uSR({itag:S.itag,url:S.url,codecs:I,width:Number(S.width),height:Number(S.height),fps:Number(S.fps),bitrate:Number(S.bitrate),audioItag:S.audio_itag,Ty:d?G[d]:void 0,zL:S.drm_families,ZO:f,audioChannels:Number(S.audio_channels)});m[S.itag]=m[S.itag]||[];m[S.itag].push(S)}else h[S.itag]="enchdr"}return m}; lfC=function(K,W){var U={};g.HB(K.api.V())&&(g.Zm(K.api,"addEmbedsConversionTrackingParams",[U]),W=g.sL(W,U));return W}; Pg=function(K,W,U,h){h=h===void 0?0:h;return g.kQ(function(){if(K.X.has(h))return K.Y.push([W,U]),!0;var m=g.z0(h),S=U||g.ND(h);if(m&&S){if(g.hc("combine_ve_grafts")){var f=K.N.get(S.toString());f?f.push(W):(K.G.set(S.toString(),S),K.N.set(S.toString(),[W]));K.Ms||(K.Ms=g.UL(0,function(){Av(K,m)},1200))}else g.mD(K.client,m,S,W); return!0}return!1})()}; sr=function(K,W,U,h,m,S){qv.call(this,K,{T:"div",Z:"ytp-ad-skip-ad-slot"},"skip-ad",W,U,h,m);this.uX=S;this.W=!1;this.U=0;this.N=this.X=null;this.hide()}; B1C=function(K,W){var U=wWC(W),h=ENs(W);if(!W.Br||!K.D.kF())if(K.j||K.D.L("enable_paid_content_overlay_bugfix")){if(W.videoId&&W.videoId!==K.videoId){var m;(m=K.j)==null||g.pz(m);!K.D.L("enable_paid_content_overlay_bugfix")||U&&h?(K.videoId=W.videoId,K.N=!!h,K.N&&U&&hzC(K,h,U,W)):K.N=!1}}else U&&h&&!K.D.L("enable_paid_content_overlay_bugfix")&&hzC(K,h,U,W)}; DIz=function(K){if(!K)throw Error();throw K;}; Tuz=function(){g.GP.call(this);var K=this;this.j={};this.addOnDisposeCallback(function(){for(var W=g.z(Object.keys(K.j)),U=W.next();!U.done;U=W.next())delete K.j[U.value]})}; JT=function(K,W){return new v_(K,K+W-1)}; T1s=function(K){if(K.isExternallyHostedPodcast)return pC();var W=P_(K.qI,K.Ky);if(K.hlsvp){var U=K.hlsvp,h;if((h=K.Tm.qk())==null?0:h.j.v3(HPe))U=rHF(U);U=ST$(U,K.clientPlaybackNonce,K.gf);W.push(U)}return bnC(K.Tm,K.isAd(),W,yG2(K)).then(function(m){og(K,m)})}; g.sp=function(K,W){var U=Math.abs(Math.floor(K)),h=Math.floor(U/86400),m=Math.floor(U%86400/3600),S=Math.floor(U%3600/60);U=Math.floor(U%60);if(W){W="";h>0&&(W+=" "+h+" Days");if(h>0||m>0)W+=" "+m+" Hours";W+=" "+S+" Minutes";W+=" "+U+" Seconds";h=W.trim()}else{W="";h>0&&(W+=h+":",m<10&&(W+="0"));if(h>0||m>0)W+=m+":",S<10&&(W+="0");W+=S+":";U<10&&(W+="0");h=W+U}return K>=0?h:"-"+h}; wQ$=function(K,W){return new g.F3(K?"auth":"manifest.net.retryexhausted",W,K?2:1)}; bQ=function(K){if(!K.playerResponse)return!1;if(K.dI)return!0;var W=K.videoData.L("html5_onesie_audio_only_playback")&&WE(K.videoData);if(K.T5&&K.h_){if(!K.T5.has(K.J8))return!1;var U=K.T5.get(K.J8),h;if(h=U){h=!1;for(var m=g.z(U.Vt.keys()),S=m.next();!S.done;S=m.next())if(S=U.Vt.get(S.value))for(var f=g.z(S.g6),G=f.next();!G.done;G=f.next())G.value.Hv>0&&(S.yR?h=!0:W=!0);h=!(W&&h)}if(h)return!1}K.qy("ofr");K.Jf.resolve(K.playerResponse);if(!K.O$){var I;(I=K.lN)==null||I.start();K.Y9.start()}return K.dI= !0}; zP=function(){var K=cY;return K.j.length==0?K.X:K.X.length==0?K.j:g.fa(K.X,K.j)}; h_=function(K){VO.call(this,K.Sx,K.ZA,K.TK,K.hS,K.dk,K.au,K.Hl,K.p7,K.slot,K.layout,K.m1,K.oD,K.lZ,K.Xx);this.eB=void 0}; RX=function(K){this.value=K}; j_p=function(){var K=g.qs.__SAPISID||g.qs.__APISID||g.qs.__3PSAPISID||g.qs.__1PSAPISID||g.qs.__OVERRIDE_SID;if(K)return!0;typeof document!=="undefined"&&(K=new jd(document),K=K.get("SAPISID")||K.get("APISID")||K.get("__Secure-3PAPISID")||K.get("__Secure-1PAPISID"));return!!K}; jz=function(K,W){if(K.byteLength-W<8)return!1;var U=K.getUint32(W);if(U<8||K.byteLength-W122)return!1}return!0}; QH=function(K){var W,U,h,m;g.r(function(S){if(!K.L("html5_generate_session_po_token")||K.useLivingRoomPoToken)return S.return();W=K.api.V();U=g.TA("EOM_VISITOR_DATA")||g.TA("VISITOR_DATA");h=W.SD?W.datasyncId:U;m=L6(W.experiments,"html5_mock_content_binding_for_session_token")||W.livingRoomPoTokenId||h;W.u5=TW(K,m);g.q1(S)})}; w6R=function(K){return QSs()===1?g.yb(K,aSD):K}; ngL=function(K,W,U,h,m,S){var f=Zs(K.X.get(),W);return Q2(K,f,W,new yW(K.j,h),[new pi(K.j,U),new PM(K.j,f),new Sk(K.j,h,["error"])],m,S)}; QWD=function(K,W,U,h,m){try{if(U){var S=w2.get(W);if(S)return new S(K.D);o2C(K,W,h,m)}else Yk(K,W)}catch(f){Yk(K,W),g.wG(f)}return null}; PhC=function(K,W){W=W===void 0?{}:W;K.kY=W.kY===void 0?!1:W.kY}; lep=function(K,W){var U=W.raw_watch_next_response;if(!U){var h=W.watch_next_response;h&&(U=JSON.parse(h))}if(U){K.Ns=U;var m=K.Ns.playerCueRangeSet;m&&g.TQD(K,m);var S=K.Ns.playerOverlays;if(S){var f=S.playerOverlayRenderer;if(f){var G=f.autonavToggle;G&&(K.autoplaySwitchButtonRenderer=g.P(G,$ID),K.L("web_player_autonav_use_server_provided_state")&&nR(K)&&(K.autonavState=K.autoplaySwitchButtonRenderer.enabled?2:1));var I=f.videoDetails;if(I){var d=I.embeddedPlayerOverlayVideoDetailsRenderer;var J= I.playerOverlayVideoDetailsRenderer;J&&(J.title&&(W.title=g.Rb(J.title)),J.subtitle&&(W.subtitle=g.Rb(J.subtitle)))}g.EZ(K.Tm)&&(K.XI=!!f.addToMenu);SfC(K,f.shareButton);f.startPosition&&f.endPosition&&(K.progressBarStartPosition=f.startPosition,K.progressBarEndPosition=f.endPosition);var e=f.gatedActionsOverlayRenderer;e&&(K.fI=g.P(e,Yx$));var E,B,D,a=g.P((E=K.getWatchNextResponse())==null?void 0:(B=E.playerOverlays)==null?void 0:(D=B.playerOverlayRenderer)==null?void 0:D.infoPanel,i8p);if(a){K.Pz= Number(a==null?void 0:a.durationMs)||NaN;if(a==null?0:a.infoPanelOverviewViewModel)K.q5=a==null?void 0:a.infoPanelOverviewViewModel;if(a==null?0:a.infoPanelDetailsViewModel)K.qb=a==null?void 0:a.infoPanelDetailsViewModel}K.showSeekingControls=!!f.showSeekingControls}}var Q,u,O=(Q=K.getWatchNextResponse())==null?void 0:(u=Q.contents)==null?void 0:u.twoColumnWatchNextResults;if(O){var N=O.desktopOverlay&&g.P(O.desktopOverlay,OPC);N&&(N.suppressShareButton&&(K.showShareButton=!1),N.suppressWatchLaterButton&& (K.XI=!1))}d&&FC_(K,W,d);var A=BJ(0,W.autoplay_count),Z=K.getWatchNextResponse(),x,b=(x=Z.contents)==null?void 0:x.twoColumnWatchNextResults,KR,fR,jp,I2=(KR=Z.playerOverlays)==null?void 0:(fR=KR.playerOverlayRenderer)==null?void 0:(jp=fR.autoplay)==null?void 0:jp.playerOverlayAutoplayRenderer,hF=zcD(K),w$,vs=(w$=Z.contents)==null?void 0:w$.singleColumnWatchNextResults;if(vs){var Sf;if(((Sf=vs.autoplay)==null?0:Sf.autoplay)&&!vs.playlist){var mj=vs.autoplay.autoplay.sets,c={},AF=new bx(K.V()),sW=null, $4;if(mj){for(var zn=g.z(mj),l3=zn.next();!l3.done;l3=zn.next()){var Vb=l3.value.autoplayVideoRenderer;if(Vb&&Vb.compactVideoRenderer){sW=Vb.compactVideoRenderer;break}}if($4=mj[0].autoplayVideo){var Ge=$4.clickTrackingParams;Ge&&(c.itct=Ge);c.autonav="1";c.playnext=String(A)}}else c.feature="related-auto";var FN=g.P($4,g.fw);if(sW){AF.videoId=sW.videoId;var Y=sW.shortBylineText;Y&&(AF.author=g.Rb(Y));var Ws=sW.title;Ws&&(AF.title=g.Rb(Ws))}else FN!=null&&FN.videoId&&(AF.videoId=FN.videoId);AF.WQ= c;K.suggestions=[];K.KK=AF}}if(hF){for(var rG=[],mL=g.z(hF),Xf=mL.next();!Xf.done;Xf=mL.next()){var G2=Xf.value,xC=void 0,ls=null;if(G2.endScreenVideoRenderer){var cB=G2.endScreenVideoRenderer,F=cB.title;ls=new bx(K.V());ls.videoId=cB.videoId;ls.lengthSeconds=cB.lengthInSeconds||0;var w=cB.publishedTimeText;w&&(ls.publishedTimeText=g.Rb(w));var n=cB.shortBylineText;n&&(ls.author=g.Rb(n));var R=cB.shortViewCountText;R&&(ls.shortViewCount=g.Rb(R));if(F){ls.title=g.Rb(F);var q=F.accessibility;if(q){var tF= q.accessibilityData;tF&&tF.label&&(ls.ariaLabel=tF.label)}}var l=cB.navigationEndpoint;if(l){xC=l.clickTrackingParams;var X=g.P(l,g.fw),M=g.P(l,g.ok);X?ls.q0=X:M!=null&&(ls.watchUrl=M.url)}var kC=cB.thumbnailOverlays;if(kC)for(var is=g.z(kC),a2=is.next();!a2.done;a2=is.next()){var FL=a2.value.thumbnailOverlayTimeStatusRenderer;if(FL)if(FL.style==="LIVE"){ls.isLivePlayback=!0;break}else if(FL.style==="UPCOMING"){ls.isUpcoming=!0;break}}ls.i$=J4(cB.thumbnail)}else if(G2.endScreenPlaylistRenderer){var UW= G2.endScreenPlaylistRenderer,g$$=UW.navigationEndpoint;if(!g$$)continue;var oV=g.P(g$$,g.fw);if(!oV)continue;var z2=oV.videoId;ls=new XU(K.V());ls.playlistId=UW.playlistId;ls.playlistLength=Number(UW.videoCount)||0;ls.j=z2||null;ls.videoId=z2;var CZ=UW.title;CZ&&(ls.title=g.Rb(CZ));var us=UW.shortBylineText;us&&(ls.author=g.Rb(us));xC=g$$.clickTrackingParams;ls.i$=J4(UW.thumbnail)}ls&&(xC&&(ls.sessionData={itct:xC}),rG.push(ls))}K.suggestions=rG}if(I2){K.eM=!!I2.preferImmediateRedirect;K.gk=K.gk|| !!I2.webShowNewAutonavCountdown;K.pC=K.pC||!!I2.webShowBigThumbnailEndscreen;if(K.gk||K.pC){var V_=b||null,ze=new bx(K.V());ze.videoId=I2.videoId;var wt=I2.videoTitle;if(wt){ze.title=g.Rb(wt);var pR=wt.accessibility;if(pR){var Yw=pR.accessibilityData;Yw&&Yw.label&&(ze.ariaLabel=Yw.label)}}var OW=I2.byline;OW&&(ze.author=g.Rb(OW));var LZ=I2.publishedTimeText;LZ&&(ze.publishedTimeText=g.Rb(LZ));var UZ=I2.shortViewCountText;UZ&&(ze.shortViewCount=g.Rb(UZ));var pZ=I2.thumbnailOverlays;if(pZ)for(var Nv= g.z(pZ),av=Nv.next();!av.done;av=Nv.next()){var u_=av.value.thumbnailOverlayTimeStatusRenderer;if(u_)if(u_.style==="LIVE"){ze.isLivePlayback=!0;break}else if(u_.style==="UPCOMING"){ze.isUpcoming=!0;break}else if(u_.style==="DEFAULT"&&u_.text){ze.lengthText=g.Rb(u_.text);var Ef=u_.text.accessibility;if(Ef){var BF=Ef.accessibilityData;BF&&BF.label&&(ze.MY=BF.label||"")}break}}ze.i$=J4(I2.background);var CW=I2.nextButton;if(CW){var lo=CW.buttonRenderer;if(lo){var Se=lo.navigationEndpoint;if(Se){var a0= g.P(Se,g.fw);a0&&(ze.q0=a0)}}}if(I2.topBadges){var LW=I2.topBadges[0];if(LW){var KB=g.P(LW,cHC);KB&&KB.style==="BADGE_STYLE_TYPE_PREMIUM"&&(ze.lwp=!0)}}var W1=I2.alternativeTitle;W1&&(ze.XO=g.Rb(W1));var VW={autonav:"1",playnext:String(A)};ze.playlistId&&(VW.autoplay="1");if(V_){var Ay,RZ,OL,U$,cj=(Ay=V_.autoplay)==null?void 0:(RZ=Ay.autoplay)==null?void 0:(OL=RZ.sets)==null?void 0:(U$=OL[0])==null?void 0:U$.autoplayVideo;if(cj){var hG=cj.clickTrackingParams;hG&&(VW.itct=hG);var jB=g.P(cj,g.fw);jB&& (ze.gq=jB)}}else if(I2){var mU,gz,SB,Xu=(mU=I2.nextButton)==null?void 0:(gz=mU.buttonRenderer)==null?void 0:(SB=gz.navigationEndpoint)==null?void 0:SB.clickTrackingParams;Xu&&(VW.itct=Xu)}VW.itct||(VW.feature="related-auto");ze.WQ=VW;K.suggestions||(K.suggestions=[]);K.KK=ze}I2.countDownSecs!=null&&(K.XR=I2.countDownSecs*1E3);I2.countDownSecsForFullscreen!=null&&(K.pn=I2.countDownSecsForFullscreen>=0?I2.countDownSecsForFullscreen*1E3:-1);K.L("web_autonav_color_transition")&&I2.watchToWatchTransitionRenderer&& (K.watchToWatchTransitionRenderer=g.P(I2.watchToWatchTransitionRenderer,nNC))}var nW=zcD(K);if(nW){var GS,NP,Py,$6=nW==null?void 0:(GS=nW[0])==null?void 0:(NP=GS.endScreenVideoRenderer)==null?void 0:(Py=NP.navigationEndpoint)==null?void 0:Py.clickTrackingParams,Ad=g.eC(K);$6&&Ad&&(Ad.sessionData={itct:$6})}K.Ns.currentVideoThumbnail&&(K.i$=J4(K.Ns.currentVideoThumbnail));var RL,pt,oH,Zg,bV,yk=(RL=K.Ns)==null?void 0:(pt=RL.contents)==null?void 0:(oH=pt.twoColumnWatchNextResults)==null?void 0:(Zg=oH.results)== null?void 0:(bV=Zg.results)==null?void 0:bV.contents;if(yk&&yk[0]){var Db=yk[0].videoPrimaryInfoRenderer;Db&&Db&&Db.subtitle&&(K.wN=g.Rb(Db.subtitle))}if(yk&&yk[1]){var Ae,Fm,RK,UX,Ha=(Ae=yk[1].videoSecondaryInfoRenderer)==null?void 0:(Fm=Ae.owner)==null?void 0:(RK=Fm.videoOwnerRenderer)==null?void 0:(UX=RK.thumbnail)==null?void 0:UX.thumbnails;Ha&&Ha.length&&(K.profilePicture=Ha[Ha.length-1].url)}var HG=fD(W),uN,rhD=(uN=K.getWatchNextResponse())==null?void 0:uN.onResponseReceivedEndpoints;if(rhD)for(var TEC= g.z(rhD),XXL=TEC.next();!XXL.done;XXL=TEC.next()){var vKe=XXL.value;g.P(vKe,ht)&&(K.Pn=g.P(vKe,ht));var Th=g.P(vKe,gN$),a9$=void 0;if((a9$=Th)==null?0:a9$.entityKeys)K.g4=Th.entityKeys||[],Th.visibleOnLoadKeys&&(K.visibleOnLoadKeys=Th.visibleOnLoadKeys)}if(K.L("web_key_moments_markers")){var Rs3=g.qg.getState().entities,yYH=g.dI("visibility_override","markersVisibilityOverrideEntity");var yJ=qF(Rs3,"markersVisibilityOverrideEntity",yYH);K.eV=(yJ==null?void 0:yJ.videoId)===(K.videoId||HG)&&(yJ==null? 0:yJ.visibilityOverrideMarkersKey)?yJ.visibilityOverrideMarkersKey:K.visibleOnLoadKeys;K.visibleOnLoadKeys=[].concat(g.z4(K.eV))}}}; FJY=function(K){var W=K(),U=W&127;if(W<128)return U;W=K();U|=(W&127)<<7;if(W<128)return U;W=K();U|=(W&127)<<14;if(W<128)return U;W=K();return W<128?U|(W&127)<<21:Infinity}; Ubp=function(K){/[^a-zA-Z0-9;.!_-]/.test(K)&&(K=K.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return K}; lK$=function(K,W,U){if(W&&W.status===204)return!0;switch(K){case "JSON":return!!U;case "XML":return Number(U&&U.return_code)===0;case "RAW":return!0;default:return!!U}}; uHD=function(K){var W=g.i1(K,"Content-Type");if(!W)return null;W=W.toLowerCase();return W.startsWith("application/json")?W.startsWith("application/json+protobuf")?new MF:new Cie:W.startsWith("application/x-protobuf")?(K=g.i1(K,"Content-Transfer-Encoding"))?K.toLowerCase()=="base64"?new FA:null:new xa:null}; kcL=function(K,W){if(K.AK&&K.AK.X){if(K.policy.wO){var U=htF(K.audioTrack);if(U&&U.yR()){var h=K.iX;if(h.VD&&(h.VD.j=U,U=h.S0,U.qoe)){U=U.qoe;h=h.VD;var m=g.gh(U.provider);FsL(U,m,h)}}}K.policy.EU&&(U=htF(K.videoTrack))&&U.ZE()&&(h=K.iX,h.oJ&&(h.oJ.j=U,U=h.S0,U.qoe&&tJp(U.qoe,h.oJ)));W-=isNaN(K.timestampOffset)?0:K.timestampOffset;K.getCurrentTime()!==W&&K.resume();K.tO.isSeeking()&&K.AK&&!K.AK.CC()&&(h=K.getCurrentTime()<=W&&W=0}; cPe=function(K){return window.Profiler&&new window.Profiler(K)}; NKs=function(K){return Ns(K,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; N1e=function(K,W){if(W.playerLegacyDesktopYpcTrailerRenderer){var U=W.playerLegacyDesktopYpcTrailerRenderer;K.A1=U.trailerVideoId||"";var h=(h=W.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&h.ypcTrailerRenderer}else if(W.playerLegacyDesktopYpcOfferRenderer)U=W.playerLegacyDesktopYpcOfferRenderer;else if(W.ypcTrailerRenderer){h=W.ypcTrailerRenderer;W=h.fullVideoMessage;K.ZW=W?g.Rb(W):"";var m,S;K.A1=((m=g.P(h,iPp))==null?void 0:(S=m.videoDetails)==null?void 0:S.videoId)||""}U&&(K.Y2=U.itemTitle|| "",U.itemUrl&&(K.iI=U.itemUrl),U.itemBuyUrl&&(K.CT=U.itemBuyUrl),K.g3=U.itemThumbnail||"",K.MO=U.offerHeadline||"",K.vV=U.offerDescription||"",K.d8=U.offerId||"",K.jb=U.offerButtonText||"",K.w$=U.offerButtonFormattedText||null,K.SM=U.overlayDurationMsec||NaN,K.ZW=U.fullVideoMessage||"",K.tE=!0);h&&((U=g.P(h,iPp))?K.DN={raw_player_response:U}:(U=g.P(h,zTC),K.DN=U?nZ(U):null),K.tE=!0)}; gv=function(K){if(!K.p5)return{};var W=K.p5.lA(),U;W.d=(U=K.p5.hK)==null?void 0:U.ri();W.shost=K.iV;W.ty="o";return W}; j$=function(K,W){return!K.api.isInline()&&!yQz(K,YZ(W))&&g.oZ(W)}; AHp=function(K){K.X.forEach(function(W){W.j.toggleButton(!1)}); jML(K,!0)}; Dd=function(K,W,U){var h,m=(h=K.j.j)==null?void 0:h.encrypt(W,U);return m?m:(new g.o2(K.j.X)).encrypt(W,U)}; RTL=function(K,W,U,h,m){var S=this;this.loader=K;this.policy=W;this.dH=U;this.T9=h;this.n1=m;this.done=!1;this.onTimeout=function(){S.done||(S.done=!0,S.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*v2(this.dH)));this.timing=new Qc(this,{dH:this.dH,eE:this.size,Jn:!0,o8:function(){}, zt:this.policy.N});K=qq(this.T9,this.n1,this.policy).ji.clone();eA(49,K);K[t[14]]!=="/videogoodput"&&(K[t[14]]="/videogoodput",K[t[0]]=t[3]);this.location=new XJ(K);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=Yp(this.location,this.policy.J,this.timing,this.policy.WM,{});setTimeout(this.onTimeout,1E4)}; uc=function(K,W,U){U=U===void 0?!1:U;K.j.has(W)?cL(K,W,[]):K.wH(W,U)}; OF=function(K,W){nI||MX in K||lnR(K,LSz);K[MX]=W}; Cg=function(K,W,U,h,m,S){var f={T:"div",Z:"ytp-panel"};if(U){var G="ytp-panel-back-button";var I="ytp-panel-title";var d={T:"div",Z:"ytp-panel-header",K:[{T:"div",Hp:["ytp-panel-back-button-container"],K:[{B:{"aria-label":"Back to previous menu"},T:"button",Hp:["ytp-button",G]}]},{T:"span",Hp:[I],B:K.L("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,K:[U]}]};if(m){var J="ytp-panel-options";d.K.push({T:"button",Hp:["ytp-button",J],K:[h]})}f.K=[d]}h=!1;S&&(S={T:"div", Z:"ytp-panel-footer",K:[S]},h=!0,f.K?f.K.push(S):f.K=[S]);g.GW.call(this,f);this.content=W;h&&f.K?W.U5(this.element,f.K.length-1):W.U5(this.element);this.n2=!1;this.H4=h;U&&(this.backButton=this.yH(G),U=this.yH(I),this.S(this.backButton,"click",this.Uo),this.S(U,"click",this.Uo),this.n2=!0,m&&this.S(this.yH(J),"click",m));W.subscribe("size-change",this.LD,this);this.S(K,"fullscreentoggled",this.LD);this.D=K}; yH$=function(K,W){for(var U;;){if(K.Kg<262){M7(K);if(K.Kg<262&&W===0)return 1;if(K.Kg===0)break}U=0;K.Kg>=3&&(K.IR=(K.IR<=3)if(U=ji(K,K.Oz-K.JG,K.Wd-3),K.Kg-=K.Wd,K.Wd<=K.uP&&K.Kg>=3){K.Wd--;do K.Oz++,K.IR=(K.IR<-U?-W/U*K.interval*.5:-(W+U/2)/U*K.interval}; g.Nz=function(K,W){g.p.call(this);var U=this;this.api=K;this.W={};this.zz=null;this.U={};this.G=this.X=null;W=new yx(W,function(h){h!==U.Yv({playerType:h.getPlayerType()})&&h.dispose()}); g.k(this,W);this.N=this.J=this.j=new g.S$(K.V());this.Y=W}; EM=function(K){var W=new s4;K=K===void 0?null:K;W.N=1;W.X=K===void 0?null:K;return W}; oN_=function(K){if(K.T5&&!K.L("html5_onesie_media_capabilities")){K.qy("ogsf_s");var W=sez(K.iX.getVideoData(),function(h,m){K.rk(h,m)}),U=Im_(K.iX); W.video=G6C(U,W.video);K.qy("ogsf_c");if(W.video.length)return W;K.rk("ombspf","l."+U.X+";u."+U.j+";o."+U.N+";r."+U.reason)}}; ZPC=function(K,W){var U=[];K=K.j.j.get(W);if(!K)return[];K=g.z(K);for(W=K.next();!W.done;W=K.next())W=W.value,W.cpn&&U.push(W.cpn);return U}; Bc=function(K,W,U){g.p.call(this);this.loader=K;this.policy=W;this.dH=U;this.X=0;this.j=!1;this.delay=new g.QC(this.N,this.policy.XX,this);g.k(this,this.delay)}; eFp=function(K){var W=K.provider.iX.o2(),U=g.gh(K.provider);kv(K,U,W);var h=W.N;W=W.W;isNaN(h)||(K.provider.C.L("html5_unified_live_latency_reporting")&&!isNaN(W)&&W?g.Fa(K,U,"e2el",[h.toFixed(3),W.toFixed(3)]):g.Fa(K,U,"e2el",[h.toFixed(3)]))}; f0=function(K,W){W=W===void 0?!1:W;var U=Gg(K);K=W?0:K.info.Y;return U||K}; bPp=function(K,W,U){if(Rg(12,K.j))return!1;var h=Na(U,eA(43,K.j));if(h.timedOut<1&&h.j<1)return!1;h=h.timedOut+h.j;K=OJ(K,W);U=Na(U,eA(11,K));return U.timedOut+U.j+00&&g.QG(W.X.element);h.classList.add("ytp-timely-actions-overlay");W.X.element.appendChild(h)}); g.k(this,this.X);this.L("web_player_overlay_positioned_layout")?this.events.S(K,"basechromeinitialized",function(){W.api.Yq(W.X.element,4,!0);W.X.element.setAttribute("data-overlay-order","10")}):g.HW(this.api,this.X.element,4)}; vNR=function(){var K=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];gT().forEach(function(W){K.push(W)}); return{Xd:K,oR:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; fF=function(K,W){if(K.heightPx===-1){var U=null;try{U=g.k$("CANVAS"),K.X=U.getContext("2d")}catch(G){}if(K.X){var h=K.j*K.sampleCount;K.N=U;K.N.width=h;K.N.style.width=h+"px";K.element.appendChild(K.N)}else for(K.sampleCount=Math.floor(K.sampleCount/4),K.j*=4,U=0;U1?2:1,K.N.height=K.heightPx*U,K.N.style.height= K.heightPx+"px",K.X.scale(1,U)));W=g.z(W);for(h=W.next();!h.done;h=W.next()){U=K;var m=K.index,S=h.value;for(h=0;h+2W.j&&W.reason==="b";h||m||U?(K.iX.ll({reattachOnConstraint:h?"u":m?"drm":"perf",lo:W.X,up:W.j}), K.policy.RC||(K.W.j.X=!1)):(K.policy.RC&&(K.W.j.X=!1),gn(K))}}else!X_p(K.j,W)&&K.videoTrack&&(m=K.j.j,xIs(K,vfR(K.j,W)),CGe(K),U=W.isLocked()&&W.reason==="m"&&K.j.uX,h=K.policy.VA&&W.reason==="l"&&dS(K.videoTrack),W=m.j>W.j&&W.reason==="b",m=K.j.JK&&!dr(),U||h||W||m?K.iX.ll({reattachOnConstraint:U?"u":h?"drm":m?"codec":"perf"}):gn(K))}}; rZ=function(){this.j={};if(this.X=ois()){var K=g.LY("CONSISTENCY");K&&EcD(this,{encryptedTokenJarContents:K})}}; lSF=function(K,W,U,h,m){Ou.call(this,K,W,U,h,"survey-question-multi-select");this.uX=m;this.noneOfTheAbove=null;this.submitEndpoints=[];this.U=null;this.hide()}; Hu=function(K,W){var U=K.provider;K=U.iX;U=U.videoData;g.pV(U)?W=4:K.tI()?W=3:(W=W.j.yR()?U.HT:U.nV,W=W!=null?W:0);K="sms."+W;if(W===3||W===4)K+="_1";return K}; bys=function(K,W,U,h,m){var S=(0,g.AI)(),f=m?m(W):void 0,G;m=(G=f==null?void 0:f.MB)!=null?G:1;if(m!==0){var I;G=(I=f==null?void 0:f.profile)!=null?I:U;E3R(K,G,S-h,m)}return W}; puC=function(K,W,U,h,m,S,f){W=U-W;m?(m instanceof g.Zb&&(m.type==="QUOTA_EXCEEDED"||m.type==="QUOTA_MAYBE_EXCEEDED")&&Px("QUOTA_EXCEEDED",{dbName:Nj(K.j.name),objectStoreNames:S,transactionCount:K.transactionCount,transactionMode:f.mode}),m instanceof g.Zb&&m.type==="UNKNOWN_ABORT"&&(U-=K.N,U<0&&U>=2147483648&&(U=0),Px("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:S,transactionDuration:W,transactionCount:K.transactionCount,dbDuration:U}),K.X=!0),kvD(K,!1,h,S,W,f.tag),Js(m)):kvD(K,!0,h,S,W, f.tag)}; kv=function(K,W,U){if(!isNaN(U.g2)){var h=U.g2;U.X0?MJ(h,U).includes(W):MJ(K.N,U).includes(W)}; Y5s=function(K){this.X=K}; g.sq=function(K,W){K.src=Zh(W);Q6(K)}; Ufs=function(K,W){return W!=null?DL(K.Y,W):K.Y?K.Y:K.Tm.preferGapless&&K.Tm.supportsGaplessShorts()}; nV=function(K,W){this.j=K===F2s&&W||""}; S0=function(K){this.iZ=qR(K,500)}; FR_=function(){if(gT2)throw Error("carr");XD(hIs,5)}; fI=function(K){for(var W=[],U=g.z(K),h=U.next();!h.done;h=U.next())h=h.value,W[h]||(W[h]=0),W[h]++;var m=W[0]=0;U=[];var S=0;h=0;for(var f=1;f7&&(S+=W[f]);for(m=1;m>I&1;G=S<<4|f;if(f<=7)for(I=1<<7-f;I--;)h[I<>=7;f--;){h[I]||(h[I]=-W,W+=2);var d=m&1;m>>=1;I=d-h[I]}h[I]=G}}return h}; KKR=function(K,W,U,h){K.N.dispose();K.N=null;g.$C(K.element,"ytp-popup-animating");h?(g.$C(W.element,"ytp-panel-animate-forward"),g.WR(U.element,"ytp-panel-animate-back")):(g.$C(W.element,"ytp-panel-animate-back"),g.WR(U.element,"ytp-panel-animate-forward"));g.Dl(K.element,K.size);K.W=new g.QC(function(){g.WR(K.element,"ytp-popup-animating");W.detach();g.Jj(W.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);K.W.dispose();K.W=null},250,K); K.W.start()}; KA_=function(K){switch(typeof K){case "number":return Number.isFinite(K)?K:""+K;case "bigint":return Wi(K)?Number(K):""+K;case "boolean":return K?1:0;case "object":if(Array.isArray(K)){var W=K[MX]|0;return K.length===0&&W&1?void 0:QE(K,W,KA_)}if(K!=null&&K[qS]===x1)return j7(K);if(K instanceof Qr){W=K.j;if(W==null)K="";else if(typeof W==="string")K=W;else{if(Q9e){for(var U="",h=0,m=W.length-10240;h=11;K=K.api.V().Y&&Gi;return!(!W&&!K)}; KbY=function(K,W){var U=Ab(K,function(h,m){return m.video.fps>32?Math.min(h,m.video.width):h},Infinity); U32||h.video.width0&&(W.X8=U.iK));W.VA=U.DZ;W.V6=Y6(h,{},U.N||void 0,Jh$(U));W.Ik=WE(U)&&(g.l1(h)||g.Lr(h));HT(U)&&(W.U=!0,W.n4=h.L("html5_estimate_live_partial_slice_duration"),g.PJ(h)&&!g.Km()&&h.L("html5_force_audio_to_cover_video_keyframe")?W.W3=!1:W.W3=!0,G=h.experiments.qk(), W.WM||U.isLivePlayback||!G.j.v3(eIR)||(W.q_=!0,G=G.j.v3(EYz),W.x_=G),h.L("html5_sabr_report_partial_segment_estimated_duration")&&(W.nV=!0),W.j=!0,W.BV=h.L("html5_trigger_loader_when_idle_network"),W.Mc=h.L("html5_sabr_parse_live_metadata_playback_boundaries"),W.gN=h.L("html5_consume_onesie_next_request_policy_for_sabr"),W.Yz=h.L("html5_sabr_report_next_ad_break_time"),W.V3=h.L("html5_log_high_res_buffer_timeline")&&h.G9(),W.HT=h.L("html5_remove_stuck_slices_beyond_max_buffer_limits"),W.n7=h.L("html5_gapless_sabr_btl_last_slice")&& IG(U),W.Gb=h.L("html5_reset_last_appended_slice_on_seek")&&IG(U),tc(U)?(W.D3=!0,W.pO=h.L("html5_disable_variability_tracker_for_live"),W.Pp=!0,h.L("html5_simplified_backup_timeout_sabr_live")&&(W.ul=!0,W.pC=W.Je)):W.AS=h.L("html5_probe_request_on_sabr_request_progress"),W.yj=h.L("html5_serve_start_seconds_seek_for_post_live_sabr"),W.ZX=h.L("html5_flush_index_on_updated_timestamp_offset"),W.Ms=HT(U),W.xr=h.L("html5_ignore_partial_segment_from_live_readahead"),h.L("html5_include_partial_segment_for_jumbo_ll")&& O1(U)&&(W.xr=!1),W.Gy=h.L("html5_use_non_active_broadcast_for_post_live"),W.Le=h.L("html5_use_centralized_player_time"),W.Cg=h.L("html5_log_centralized_player_time"),W.Q6=h.L("html5_consume_onesie_sabr_seek"),W.uX=h.L("html5_enable_sabr_seek_loader_refactor"),W.Pn=g.jV(h.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),W.kI=h.L("html5_update_segment_start_time_from_media_header"),U.enableServerStitchedDai&&(W.X=!0,W.Mg=h.L("html5_reset_server_stitch_state_for_non_sabr_seek"),W.dc= h.L("html5_remove_ssdai_append_pause")&&!U.Sj(),W.Ez=h.L("html5_ssdai_log_ssevt_in_loader")||h.L("html5_ssdai_log_ssevt_in_loader_200ms")||h.L("html5_ssdai_log_ssevt_in_loader_timers")||h.L("html5_ssdai_log_ssevt_in_loader_cuerange"),h.L("html5_ssdai_log_ssevt_in_loader_timers")?W.M5=1:h.L("html5_ssdai_log_ssevt_in_loader_200ms")?W.M5=3:h.L("html5_ssdai_log_ssevt_in_loader_cuerange")&&(W.M5=0)),W.wr=h.G9(),W.XR=U.mK()&&h.L("html5_prebuffer_instream_media_live")&&h.L("html5_report_prefetch_requests"), W.Nc=!U.mK()&&h.L("html5_prebuffer_instream_media_vod")&&h.L("html5_report_prefetch_requests"));W.bG=g.BR_(U);T_(h.U,a$.BITRATE)&&(W.j0=NaN);if(G=g.jV(h.experiments,"html5_request_size_max_kb"))W.Bp=G*1024;h.U.N?W.SD="; "+a$.EXPERIMENTAL.name+"=allowed":h.L("html5_enable_cobalt_tunnel_mode")&&g.Km()&&(h=a$.TUNNELMODE,W.SD="; "+h.name+"="+h.valid);U=U.serverPlaybackStartConfig;(U==null?0:U.enable)&&(U==null?0:U.playbackStartPolicy)&&(W.NN=!0,cD(W,U.playbackStartPolicy,2));U=srC(K);K.rz.removeAll(); a:{h=K.vl.nu;if(G=K.videoData.videoId)if(m=h.j.get(G)){h.j.remove(G);h=m;break a}h=void 0}K.loader=new g.Wd(K,K.dH,W,K.videoData.j,K.videoData.N,N4(K),U,K.videoData.enableServerStitchedDai,h,K.videoData.jV);W=K.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&K.videoData.isLivePlayback&&K.B0()?!0:K.Mo&&Dfp(K);K.loader.initialize(K.getCurrentTime(),N4(K),W);K.videoData.probeUrl&&(K.loader.gk=K.videoData.probeUrl);if(K.Q3.length||K.Mo)K.videoData.cotn||YX(K,!1);Zx(K.tS,K.loader);K.S_&&(ESC(K.loader, new g.Jt(K.S_)),K.rk("sdai",{sdl:1}));g.pV(K.videoData)&&(K=K.loader,K.policy.KK=K.policy.RI)}; Rt=function(K,W,U,h){h=h===void 0?!1:h;fC.call(this,K);this.TP=U;this.f4=h;this.args=[];W&&this.args.push(W)}; K2p=function(K){var W,U;if(U=(W=K.player.getVideoData(1))==null||!W.jQ)W=K.player.V(),U=b_(W)&&!g.Lm(W)&&W.playerStyle==="desktop-polymer";U&&(K=K.player.getInternalApi(),K.addEventListener("updateKevlarOrC3Companion",XOe),K.addEventListener("updateEngagementPanelAction",EP2),K.addEventListener("changeEngagementPanelVisibility",tSC),window.addEventListener("yt-navigate-start",gaC))}; MoD=function(K,W){return""+K+"|"+(W?"v":"a")}; g.bo=function(K,W){g.Zm(K,"addEmbedsConversionTrackingParams",[W])}; c_=function(K,W,U){K.qs();var h=YU(K);U?(K.X|=W,W&1&&K.jV.start(),W&2&&K.Ms.start(),W&2048&&K.uX.start()):(K.X&=~W,W&1&&K.jV.stop(),W&2&&K.Ms.stop(),W&2048&&K.uX.stop(),W&512&&K.Ns.stop());K.X&512&&!(K.X&128)&&g.yG(K.Ns,K.hK);W=YU(K);h!==W&&K.publish("autohideupdate",W)}; pK$=function(K){this.value=K}; g.Et=function(K){return!!(K.W1||K.qI||K.u5||K.hlsvp||K.SQ())}; Rl=function(K){if(K.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[K.visibilityState||K.webkitVisibilityState||K.mozVisibilityState||""])!=null?W:0}; HhY=function(K,W){if(K.C.G9()&&K.mediaElement){var U=K.mediaElement.P3();U.omt=(K.mediaElement.getCurrentTime()+K.A7()).toFixed(3);U.ps=K.playerState.state.toString(16);U.rt=(g.gh(K.S0.provider)*1E3).toFixed();U.e=W;K.OW[K.Uf++%5]=U}}; avs=function(K){var W=Mo();U5(W,K);return g.FF(W,EyC())}; Clz=function(K,W,U,h,m,S,f,G,I,d,J,e,E,B){W=HDL(K,W,U,m,S,G,I,d,J,e,E,B);if(W instanceof v)return W;K=iLs(K,U,S,f,h,G.mK,W);return K instanceof v?K:K.A9.concat(K.sQ)}; g.z4=function(K){return K instanceof Array?K:TN2(g.z(K))}; BEe=function(K,W,U,h,m){if(!fg(W))return new v("Invalid PlayerBytesAdLayoutRenderer");var S=g.P(W.renderingContent,d2);if(!S||S.durationMilliseconds===void 0)return new v("Invalid endcap renderer");var f={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,wk:"adapter"};h=[new cp(S.durationMilliseconds),new nQ({impressionCommands:void 0,abandonCommands:S.abandonCommands?[{commandExecutorCommand:S.abandonCommands}]:void 0,completeCommands:S.completionCommands}),new vM(h), new g_("LAYOUT_TYPE_ENDCAP")];if(m){h.push(new cg(m.L7.adPodIndex-1));h.push(new yl(m.L7.adPodIndex));var G;h.push(new $s((G=m.adPodSkipTarget)!=null?G:-1))}return Object.assign({},f,Pd,{renderingContent:W.renderingContent,clientMetadata:new Zi(h),uZ:S.skipPings?new Map([["skip",S.skipPings]]):new Map,t7:q$(U,K)(f),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}; e$=function(K,W,U,h,m){W=u$$(K,W);U=u$$(K,U);K=K.progressBar.visualElement;h={seekData:{startMediaTimeMs:W,endMediaTimeMs:U,seekSource:h}};(W=g.z0())&&ul(W,K,m,h)}; Ey=function(K,W){K.j=W;K.update({slidervalue:K.j,ariaValueNow:K.j});K.X.valueAsNumber=K.j;ErF(K,W)}; rB$=function(K){if(!tOs(K))return!1;var W;K=(W=K.mediaElement)==null?void 0:W.audioTracks();return!!(K&&K.length>1)}; P8=function(K){var W=bs(K).nonce;W||(W=g.DO(16),bs(K).nonce=W);return W}; B7=function(K,W){ln.call(this,K,3,W)}; aR=function(K){this.D=K}; FG=function(K){this.X=K}; zFF=function(K,W,U){return UR(YH(K,W),W,U)}; TRR=function(K,W,U){g.p.call(this);this.encryptedClientKey=W;this.G=U;this.X=new Uint8Array(K.buffer,0,16);this.N=new Uint8Array(K.buffer,16)}; SVz=function(K){var W=K.D.getVideoData();K=K.D.V();var U=g.Dwp(),h=K.L("enable_spherical_kabuki"),m=g.$n(K);if(g.mz(W))return U||h||m;if(g.m7(W))return m||U||h;if(g.Sm(W))return m||U||!1;if(g.G7(W))return m||!1;U=W.X&&W.X.video&&W.X.video.isHdr();return m&&!g.rh(W)&&!U&&K.L("enable_webgl_noop")}; g.aG=function(K){return f5(K)&&!K.allowLiveDvr}; g.AS=function(K){g.y.call(this,{T:"button",Hp:["ytp-large-play-button","ytp-button"],B:{"aria-label":"Play",title:"Play"},K:["{{largePlayButtonChildren}}"]});this.api=K;this.S(K,"videodatachange",this.SV);this.S(K,"basechromeinitialized",this.RPK);K=this.api.V();K.Y&&Gi&&(this.listen("click",this.hUs,this),this.listen("touchstart",this.ove,this));g.EZ(K)&&g.$C(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.SV()}; cF=function(K,W,U){DD(U,"mousedown",function(){return JgY(K)},301); DD(W,"scroll",function(){return yde(K)},302); DD(U,"touchmove",function(){return x8C(K)},303); DD(U,"mousemove",function(){return ays(K)},304); DD(U,"keydown",function(){return cRe(K)},305)}; wa=function(K){if(!W)var W=window.location.href;var U=g.wB(K)[1]||null,h=g.Qq(K);U&&h?(K=g.wB(K),W=g.wB(W),K=K[3]==W[3]&&K[1]==W[1]&&K[4]==W[4]):K=h?g.Qq(W)===h&&(Number(g.wB(W)[4]||null)||null)===(Number(g.wB(K)[4]||null)||null):!0;return K}; Dzz=function(K){this.X=K===void 0?15:K;this.values=new Float64Array(176);this.j=new Float64Array(11);this.N=new Float64Array(16)}; wnC=function(K){return function(W){for(var U=0;U1/6&&(MnL(U),U.N=U.j);W.gk.start()},1E4); g.k(this,this.Ms);g.k(this,this.eV);g.k(this,this.Bp);g.k(this,this.DO);g.k(this,this.gk)}; QUs=function(K,W){K.api.getPresentingPlayerType()!==1?K.gk.style.removeProperty("clip-path"):(W||(W=py(K,K.Ms,IE(K))),K.gk.style.clipPath='path("'+(K.rS?cB_(K,8,W,K.U?50:36,0,6):cB_(K,4,W,K.U?34:24,2,3))+'")')}; Jb=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"videodatachange",function(){W.updateMetadata()}); this.events.S(K,"presentingplayerstatechange",function(){nY2(W)}); this.events.S(K,"SEEK_COMPLETE",function(){AE_(W)})}; gYs=function(K,W){Op(K)?g.kK(function(){W(K)}):K.callback=W}; X2$=function(K,W,U,h){W["Content-Type"]="application/json+protobuf";W["X-User-Agent"]="grpc-web-javascript/0.1";var m=W.Authorization;if(m&&Fos.has(m.split(" ")[0])||K.withCredentials)U.Y=!0;if(K.VT)h=g.w_(h,"$httpHeaders",W);else for(K=g.z(Object.keys(W)),m=K.next();!m.done;m=K.next())m=m.value,U.headers.set(m,W[m]);return h}; g.hN=function(){iF.instance||(iF.instance=new iF);return iF.instance}; u7R=function(K,W){return isNaN(W)?!0:isNaN(K.j)?!1:W>>0);return Number.isSafeInteger(U)?U:Wj(K,W)}; zI_=function(K,W){this.logger=W;try{var U=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(h){U=!1}U&&(this.index=oJp(K))}; NRz=function(K,W){K=K.api.getRootNode();g.JM(K,"ytp-ad-overlay-open",W);g.JM(K,"ytp-ad-overlay-closed",!W)}; uos=function(K,W){return W&&g.PJ(K.C)?W.some(function(U){return U.video.fps>32}):!1}; A2=function(K){var W={};K=K.split("&");K=g.z(K);for(var U=K.next();!U.done;U=K.next())U=U.value.split("="),U.length===2&&(W[U[0]]=U[1]);return W}; tZ=function(K){return!!K.Uz&&!!K.Uz.postId&&K.api.getPresentingPlayerType()!==2&&(!K.Uz.type||K.Uz.type==="clips")}; HGR=function(K){for(var W=K.j,U=[],h=0;h=0?K:-K-2}; ATs=function(K){return Ns(K.X,function(W){return W.M7})}; MBY=function(K){return g.LL(K.j,function(W){return W.info.video?W.info.video.stereoLayout===1:!1})}; yBC=function(K){var W=K.j;K.type===3&&K.Ns.stop();K.api.removeEventListener("appresize",K.Ms);K.Y||(K.env.L("player_tooltip_data_title_killswitch")?W.setAttribute("title",K.N):W.setAttribute("data-tooltip-title",K.N));K.N="";K.j=null;K.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});K.wrapper.style.width=""}; sc=function(K,W){g.y.call(this,{T:"button",Hp:["ytp-remote-button","ytp-button"],B:{title:K.L("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},bX:"{{icon}}"});this.D=K;this.pg=W;this.j=null;this.S(K,"onMdxReceiversChange",this.SV);this.S(K,"presentingplayerstatechange",this.SV);this.S(K,"appresize",this.SV);K.createClientVe(this.element,this,139118);this.SV();this.listen("click",this.X,this);Yb(K,this.element,this)}; g.GP=function(K){K=K===void 0?!1:K;g.p.call(this);this.Pl=new g.fj(K);g.k(this,this.Pl)}; Ti=function(K,W,U,h,m,S){vh.call(this,K,{T:"div",Z:"ytp-ad-player-overlay",K:[{T:"div",Z:"ytp-ad-player-overlay-flyout-cta"},{T:"div",Z:"ytp-ad-player-overlay-instream-info"},{T:"div",Z:"ytp-ad-player-overlay-skip-or-preview"},{T:"div",Z:"ytp-ad-player-overlay-progress-bar"},{T:"div",Z:"ytp-ad-player-overlay-instream-user-sentiment"},{T:"div",Z:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",W,U,h);this.J=S;this.U=this.yH("ytp-ad-player-overlay-flyout-cta");this.U.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.j=this.yH("ytp-ad-player-overlay-instream-info");this.W=null;euC(this)&&(K=Pr("div"),g.$C(K,"ytp-ad-player-overlay-top-bar-gradients"),W=this.j,W.parentNode&&W.parentNode.insertBefore(K,W),(W=this.api.getVideoData(2))&&W.isListed&&W.title&&(U=new LI(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),U.U5(K),U.init(Mq("ad-title"),{text:W.title},this.macros),g.k(this,U)),this.W=K);this.N=null;this.tK=this.yH("ytp-ad-player-overlay-skip-or-preview");this.Le=this.yH("ytp-ad-player-overlay-progress-bar"); this.hK=this.yH("ytp-ad-player-overlay-instream-user-sentiment");this.uX=this.yH("ytp-ad-player-overlay-ad-disclosure-banner");this.X=m;g.k(this,this.X);this.hide()}; LGz=function(K){if(!rA(K)){var W=Mr(K.f5);W&&!W.created&&Uk(K.f5)&&W.create()}}; MN_=function(K,W,U,h){W={VL:W,SF:U,AP:K.playback.getCurrentTime(),i_m:h};Qy(K,W)}; gb=function(K,W,U,h){this.Z$=K;this.LN=W;this.j=U;this.W=h;this.N=void 0;this.X=new Map;K.WF||(K.WF={});K.WF=Object.assign({},PvD,K.WF)}; pns=function(K){var W=K.D.xx().getPlayerSize().width;return Math.max(W-vS(K)*2,100)}; Xs=function(K,W,U,h,m,S){S=S===void 0?!1:S;g.p.call(this);this.element=K;this.J=W;this.initData=U;this.j=h;this.X=m;this.jV=S;this.sessionId="";this.Y=this.G=this.N=this.U=null;this.W=new g.Te(this);g.k(this,this.W);DoC(this)}; cM=function(K){jf.call(this,K);var W=this;fZ(this.api,"dismissFeaturedProductOverlay",function(){W.dismissFeaturedProductOverlay()})}; g.an=function(K){if(!(K.j.length<=1)){var W=K.j.pop(),U=K.j[0];K.j=[U];ra(K,W,U,!0)}}; k_=function(K){g.y.call(this,{T:"div",Hp:["ytp-player-content","ytp-iv-player-content"],K:[{T:"div",Z:"ytp-free-preview-countdown-timer",K:[{T:"span",bX:"{{label}}"},{T:"span",Z:"ytp-free-preview-countdown-timer-separator",bX:"\u2022"},{T:"span",bX:"{{duration}}"}]}]});this.api=K;this.j=null;this.N=this.X=0;this.S(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; oYD=function(K,W){K.X=W}; g.wy=function(K){g.y.call(this,{T:"div",K:[{T:"div",Z:"ytp-bezel-text-wrapper",K:[{T:"div",Z:"ytp-bezel-text",bX:"{{title}}"}]},{T:"div",Z:"ytp-bezel",B:{role:"status","aria-label":"{{label}}"},K:[{T:"div",Z:"ytp-bezel-icon",bX:"{{icon}}"}]}]});this.D=K;this.X=new g.QC(this.show,10,this);K=this.D.L("delhi_modern_web_player")?1E3:500;this.j=new g.QC(this.hide,K,this);g.k(this,this.X);g.k(this,this.j);this.hide()}; u2=function(K){this.value=K}; Aa=function(K,W){var U=jU();U&&U.publish.call(U,K.toString(),K,W)}; g.nE=function(K){g.Te.call(this);var W=this;this.api=K;this.NG=!1;this.AF=null;this.gJ=!1;this.Zp=null;this.jg=this.ZP=!1;this.Ot=this.Ut=null;this.TN=NaN;this.TO=this.Mi=!1;this.yE=0;this.pz=[];this.dD=!1;this.BO={height:0,width:0};this.dF=480;this.TgK=["ytp-player-content","html5-endscreen","ytp-overlay"];this.DJ={Tx:!1};this.Q1=null;var U=K.V(),h=K.xx();this.BO=K.getPlayerSize();this.CH=new g.QC(this.kA,0,this);g.k(this,this.CH);U.disableOrganicUi||(this.OY=new g.Rm(K),g.k(this,this.OY),g.HW(K, this.OY.element,4));this.api.L("web_player_overlay_positioned_layout")&&(this.Q1=new ux(this.api),g.k(this,this.Q1));if(lge(this)){var m=new ZF(K);g.k(this,m);m=m.element;g.HW(K,m,4)}var S=K.getVideoData();this.Fc=new gk(h,K,function(G){return W.lk(G)},S,U.xr,!1); g.k(this,this.Fc);this.Fc.subscribe("autohideupdate",this.fU,this);YU(this.Fc);if(!U.disablePaidContentOverlay){var f=new Gh(K);g.k(this,f);this.Q1?this.Q1.Yq(f.element,g.Hh(U)?3:1):g.HW(K,f.element,4)}this.HK=new zd(K);g.k(this,this.HK);g.HW(this.api,this.HK.element,2);this.Np=this.api.isMutedByMutedAutoplay();this.S(K,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.qa=new g.QC(this.AZ,200,this);g.k(this,this.qa);this.Ar=S.videoId;this.Ih=new g.QC(function(){W.yE=0},350); g.k(this,this.Ih);this.LA=new g.QC(function(){W.TO||ZHe(W)},350,this); g.k(this,this.LA);S=K.getRootNode();S.setAttribute("aria-label","YouTube Video Player");switch(U.color){case "white":g.$C(S,"ytp-color-white")}this.S(K,"appresize",this.IW);this.S(K,"presentingplayerstatechange",this.dg);this.S(K,"videodatachange",this.onVideoDataChange);this.S(K,"videoplayerreset",this.Z5k);this.S(K,"autonavvisibility",function(){W.F5()}); this.S(K,"sizestylechange",function(){W.F5()}); this.S(h,"click",this.v5s,this);this.S(h,"dblclick",this.S_p,this);this.S(h,"mousedown",this.J9m,this);U.gk&&(this.S(h,"gesturechange",this.A9r,this),this.S(h,"gestureend",this.BmH,this));this.XD=[h.yk];this.OY&&this.XD.push(this.OY.element);m&&this.XD.push(m);this.api.L("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(h.element,this,247482),this.api.logVisibility(h.element,!0))}; JVY=function(){var K;if(g.hc("csi_use_performance_navigation_timing")){var W,U,h,m=m6==null?void 0:(K=m6.getEntriesByType)==null?void 0:(W=K.call(m6,"navigation"))==null?void 0:(U=W[0])==null?void 0:(h=U.toJSON)==null?void 0:h.call(U);m?(m.requestStart=SW(m.requestStart),m.responseEnd=SW(m.responseEnd),m.redirectStart=SW(m.redirectStart),m.redirectEnd=SW(m.redirectEnd),m.domainLookupEnd=SW(m.domainLookupEnd),m.connectStart=SW(m.connectStart),m.connectEnd=SW(m.connectEnd),m.responseStart=SW(m.responseStart), m.secureConnectionStart=SW(m.secureConnectionStart),m.domainLookupStart=SW(m.domainLookupStart),m.isPerformanceNavigationTiming=!0,K=m):K=m6.timing}else K=g.hc("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(m6.timing)):m6.timing;return K}; ZN=function(K){this.X=K=K===void 0?ZhR:K;this.j=g.CB(this.X,function(){return new E0})}; dr=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; b7=function(K,W){var U;if((U=QR)==null?0:U.encodeInto)return W=QR.encodeInto(K,W),W.read>6|192:((m&64512)===55296&&h+1>18|240,W[U++]=m>>12&63|128):W[U++]=m>>12|224,W[U++]=m>>6&63|128),W[U++]=m&63|128)}return U}; Pi=function(K){g.Uj.call(this);var W=this;this.U=this.X=0;this.EY=K!=null?K:{C_:function(m,S){return setTimeout(m,S)}, tD:function(m){clearTimeout(m)}}; var U,h;this.j=(h=(U=window.navigator)==null?void 0:U.onLine)!=null?h:!0;this.N=function(){return g.r(function(m){return g.T(m,Lj(W),0)})}; window.addEventListener("offline",this.N);window.addEventListener("online",this.N);this.U||this.TL()}; g.Fa=function(K,W,U,h){HO(K,U,W.toFixed(3)+":"+h.join(":"))}; B5=function(K,W,U,h){U=U===void 0?.5:U;h=h===void 0?0:h;this.resolution=W;this.X=0;this.N=!1;this.BM=!0;this.j=Math.round(K*this.resolution);this.values=Array(this.j);for(K=0;KK.Ac-262?K.Oz-(K.Ac-262):0,G=K.window,I=K.Z7,d=K.nw,J=K.Oz+258,e=G[h+m-1],E=G[h+m];K.AB>=K.Mt&&(U>>=2);S>K.Kg&&(S=K.Kg);do{var B=W;if(G[B+m]===E&&G[B+m-1]===e&&G[B]===G[h]&&G[++B]===G[h+1]){h+=2;for(B++;G[++h]===G[++B]&&G[++h]===G[++B]&&G[++h]===G[++B]&&G[++h]===G[++B]&&G[++h]===G[++B]&&G[++h]===G[++B]&&G[++h]===G[++B]&&G[++h]===G[++B]&&hm){K.JG=W;m=B;if(B>=S)break;e=G[h+m-1];E=G[h+m]}}}while((W=d[W&I])>f&&--U!== 0);return m<=K.Kg?m:K.Kg}; kA=function(K,W,U,h,m){JQ.call(this,U,m);var S=this;this.policy=K;this.formatId=W;this.Cc=h;this.lastError=null;this.onProgress=function(){S.qs()||(S.Cc.Vt.has(S.formatId)?(S.isComplete()||S.j.start(),lr(S.Cc,S.formatId)&&S.oK(2),S.Cc.CC(S.formatId)&&($HR(S.Cc,S.formatId)?S.Bl(4):(S.lastError="net.closed",S.Bl(5)))):(S.lastError="player.exception",S.Bl(5)))}; this.j=new g.QC(function(){S.isComplete()||(S.lastError="net.timeout",S.Bl(5))},1E3); this.j.start();Xn2(this.Cc,this.formatId,this.onProgress);g.kK(this.onProgress)}; mQp=function(K,W){var U=0,h=!1,m=K.j.length,S=K.N.j*1E3;S===0&&(S=K.api.getProgressState().seekableEnd*1E3);if(S>0&&K.G>0){for(var f=K.G-tl(K)*K.Le,G=K.DO===0?3:f*K.DO,I=g.z(K.j),d=I.next();!d.done;d=I.next())d.value.width=0;for(;U1);d=(S===0?0:I/S*f)+K.j[U].width;if(d>G)K.j[U].width=d;else{K.j[U].width=0;var J=K,e=U,E=J.j[e-1];E!==void 0&&E.width>0? E.width+=d:eK.DO&&(K.DO=I/S),h=!0)}U++}}return h}; vYC=function(K,W,U,h,m,S,f){m=m===void 0?U.schedule:m;var G=g.AZ(K,TY);if(G=kVL(W,G))return qD({GG:G.LL,Nl:G.signature},W,U,h,!!K.TM,m,S,f)}; kyp=function(K,W,U){W=W.dialog&&g.P(W.dialog,qNs)||null;W==null?g.wG(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(K.j=new aCC(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,K.W),g.k(K,K.j),K.j.init(Mq("ad-info-dialog"),W,U),K.j.U5(K.W),K.j.subscribe("d",function(){return K.publish("f")}),K.j.subscribe("c",function(){return K.publish("e")}))}; g.$V=function(K,W,U,h,m,S){g.RC.call(this,K);this.videoId=U;this.B4=m;this.eventId=S;this.G={};this.j=null;K=h||g.BO(W).hl||"";K=K.split("_").join("-");this.W=kF(W,{hl:K})}; w0=function(K,W){if(K.policy.uX&&K.Le&&!K.rZ)return K.policy.Pn;if(K.Le&&!K.rZ)return 3;if(K.isSuspended)return 1;var U;if((U=K.AK)==null?0:U.AK&&U.AK.streaming===!1)return 4;U=(W.Wp.info.audio?K.policy.gk:K.policy.vp)/(W.j0*K.policy.ub);if(K.policy.BF>0&&K.AK&&Op(K.AK)&&(W=W.Wp.info.video?K.AK.X:K.AK.j)&&!W.ev()){W=W.Nb();var h=gH(W,K.getCurrentTime());h>=0&&(W=K.getCurrentTime()-W.start(h),U+=Math.max(0,Math.min(W-K.policy.BF,K.policy.eH)))}K.policy.hK>0&&(U=Math.min(U,K.policy.hK));return U}; MqD=function(K,W,U){return U!==void 0?K.getCurrentTime(W,!1,U):K.getCurrentTime(W,!1)}; Ze=function(K,W){g.y.call(this,{T:"button",Hp:["ytp-button","ytp-settings-button"],B:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":BW(),title:K.L("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},K:[K.L("delhi_modern_web_player_icons")?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{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.Z3()]});this.D=K;this.pg=W;this.X=!0;this.listen("click",this.N);this.S(K,"onPlaybackQualityChange",this.updateBadge);this.S(K,"videodatachange",this.updateBadge);this.S(K,"webglsettingschanged",this.updateBadge);this.S(K,"appresize",this.j);Yb(K,this.element,this);this.D.createClientVe(this.element,this,28663);this.updateBadge();this.j(K.xx().getPlayerSize())}; g.NH=function(K){var W=[],U;for(U in K)ue(U,K[U],W);return W.join("&")}; fX=function(K,W,U,h,m,S){g.p.call(this);var f=this;this.G=K;this.K5=W;this.dk=U;this.zm=h;this.J3=S;this.j=null;this.W=!1;this.l5=!0;this.Lg=new Map;W.get().addListener(this);this.addOnDisposeCallback(function(){W.qs()||W.get().removeListener(f)}); m.get().addListener(this);this.addOnDisposeCallback(function(){m.qs()||m.get().removeListener(f)})}; xfp=function(K){return K.L("html5_onesie_host_probing")||K.d4?up:!1}; Nhz=function(K,W,U){var h=new lSF(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,K.W.bind(K));h.U5(K.U);h.init(Mq("survey-question-multi-select"),W,U);K.api.V().L("supports_multi_step_on_desktop")?K.N=h:K.questions.push(h);g.k(K,h)}; IM=function(){this.finished=this.started=!1}; g.rh=function(K){return mK(K)&&K.yC?(K={},K.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",K):K.X&&K.X.zL||null}; Cvs=function(K){var W=K.cpn,U=K.i5;K=K.V9;var h=U.UC(),m={};na(U,"ce",(m.ec=W,m.ia=W!==h,m.r=Fg.E3.has(W),m.is=K,m.ctp=gG(W),m))}; lyC=function(K,W,U,h){YV.call(this,K,W);this.Xx=K;this.ZA=U;this.context=h}; s0=function(K){return sSY(K)?K:pe(K)?new Xq(function(W,U){K.then(W,U)}):new Xq(function(W){W(K)})}; ZG=function(K,W,U){W instanceof vp?(K.W=W,FAY(K.W,K.Y)):(U||(W=Oy(W,Lop)),K.W=new vp(W,K.Y))}; BZL=function(K,W){return UC(K.clientMetadata,"metadata_type_ad_info_ad_metadata")?Sp(K.clientMetadata,"metadata_type_ad_info_ad_metadata"):W?{channelId:W.R5,channelThumbnailUrl:W.profilePicture,channelTitle:W.author,videoTitle:W.title}:(UF("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; KkF=function(K,W,U){var h,m,S;return g.r(function(f){switch(f.j){case 1:if(!g.hc("start_client_gcf")){f.O5(0);break}U&&Ml(K,U);K.LM(W);h=d4();if(!h){f.O5(3);break}if(U){f.O5(4);break}return g.T(f,geL(h),5);case 5:m=f.X,U=(S=m)==null?void 0:S.config;case 4:return g.T(f,BHL(U,W,h),3);case 3:if(U)for(var G=U,I=g.z(K.G.j),d=I.next();!d.done;d=I.next())d=d.value,d(G);g.q1(f)}})}; HT=function(K){var W=K.L("html5_enable_sabr_on_drive")&&K.Tm.Ms==="gd";if(K.dc)return K.zM&&K.rk("fds",{fds:!0},!0),!1;if(K.Tm.Ms!=="yt"&&!W)return K.zM&&K.rk("dsvn",{ns:K.Tm.Ms},!0),!1;if(K.cotn||!K.j||K.j.isOtf&&!K.L("html5_enable_sabr_otf_in_client")||K.N&&!K.N.j||K.C2&&!K.L("html5_enable_sabr_csdai"))return!1;if(K.L("html5_use_sabr_requests_for_debugging"))return!0;K.zM&&K.rk("esfw",{usbc:K.zM,hsu:!!K.Q4},!0);if(K.zM&&K.Q4)return!0;if(K.L("html5_remove_client_sabr_determination"))return!1;var U= !K.j.mK&&!K.nC();W=U&&up&&K.L("html5_enable_sabr_vod_streaming_xhr");U=U&&!up&&K.L("html5_enable_sabr_vod_non_streaming_xhr");var h=fpF(K),m=K.L("html5_enable_sabr_drm_vod_streaming_xhr")&&up&&K.nC()&&!K.j.mK&&(K.drmProduct==="1"?!1:!0);(W=W||U||h||m)&&!K.Q4&&K.rk("sabr",{loc:"m"},!0);return W&&!!K.Q4}; mUY=function(K){switch(K){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"}}; v_z=function(K){var W=Math.max(K.videoTrack.N.N||0,K.audioTrack.N.N||0);Hep(K.videoTrack);Hep(K.audioTrack);K.policy.U||Ays(K.Gm);K.Gm.isManifestless&&!K.policy.U&&(K.j=!0,K.X=0);var U=K.loader;if(!U.policy.Le||U.policy.Cg)U.currentTime=W;K.W=!0;K.N=new Y2;return K.N}; CGe=function(K,W){W=W||K.videoTrack&&K.videoTrack.j&&K.videoTrack.j.startTime||K.getCurrentTime();var U=K.videoTrack,h=K.j;W=h.nextVideo&&h.nextVideo.index.IQ(W)||0;h.DA!==W&&(h.eV={},h.DA=W,r9(h,h.j));W=!h.j.isLocked()&&h.jV>-1&&(0,g.AI)()-h.jV=W.range.start+W.j&&K.range.start+K.j+K.X<=W.range.start+W.j+W.X:K.kx===W.kx&&K.j>=W.j&&(K.j+K.X<=W.j+W.X||W.N)}; FW=function(K,W){W===void 0&&(W=K[MX]|0);W&32&&!(W&4096)&&OF(K,W|4096)}; hM_=function(K){return!!K.j&&K.j.kx!==-1&&K.j.kx2?K.j.statusText:""}catch(U){W=""}K.W=W+" ["+K.getStatus()+"]";YCY(K)}}finally{yK(K)}}}; I1F=function(){var K=Oh$();if(K!==void 0)return x2(K);H$||(H$=Mn("//googleads.g.doubleclick.net/pagead/id",IlC).then(d1C).Df(function(W){return JMC(2,W)})); return H$}; g.be=function(K,W,U,h,m){m=m===void 0?!1:m;U&&N8(K,U);U=g.ox(K);var S=g.CM(U);K!=S&&jv(Error("Unsafe window.open URL: "+K));K=S;W=W||dd(K).toString(36);try{if(m)return m=K,m=sw_(m),vN(m),g.xv(window,m,W,"attributionsrc")}catch(f){g.aH(f)}vN(K);return g.xv(window,U,W,h)}; TJe=function(K,W){if(W<0)return!0;var U=K.Rn();return WU)break}return h}; kfY=function(K,W,U){U!=null&&U.Xa||(K.tC=[]);K.policy.HM?(W=g.FK(K.Wl,{startTimeMs:W*1E3},function(h,m){return h.startTimeMs-m.startTimeMs}),K.j!==W&&(K.j=-1,K.N=void 0)):(f4C(K,!0),K.j=RID(K.Wl,W*1E3))}; FZ=function(K,W,U,h,m,S,f,G){W?W.test(U)?(K.aR(m,W,f),W.G||S()):(!W.X||W.W?U=!1:(U=(0,g.AI)(),h?W.j||(W.j=U):W.j=0,S=!h&&U-W.X>3E4,U=W.j&&U-W.j>1E3||S?W.W=!0:!1),U&&(G=Object.assign({},K.P3(W),G),G.wn=f,G.we=m,G.wsuc=h,K.iX.rk("workaroundReport",G),h&&(W.reset(),K.N[m]=!1))):K.iX.jB("auth",2,"BROWSER_OR_EXTENSION_ERROR",GR({source:"watchdog",name:f}))}; eM$=function(K){g.p.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.j=16;if(!JUD){var W,U=new Uint8Array(256),h=new Uint8Array(256);var m=1;for(W=0;W<256;W++)U[m]=W,h[W]=m,m^=m<<1^(m>>7&&283);j0=new Uint8Array(256);Ku=Ve(256);W8=Ve(256);Ur=Ve(256);hS=Ve(256);for(var S=0;S<256;S++){m=S?h[255^U[S]]:0;m^=m<<1^m<<2^m<<3^m<<4;m=m&255^m>>>8^99;j0[S]=m;W=m<<1^(m>>7&&283);var f=W^m;Ku[S]=W<<24|m<<16|m<<8|f;W8[S]=f<<24|Ku[S]>>>8;Ur[S]=m<<24|W8[S]>>>8;hS[S]=m<<24|Ur[S]>>>8}JUD=!0}m=Ve(44); for(U=0;U<4;U++)m[U]=K[4*U]<<24|K[4*U+1]<<16|K[4*U+2]<<8|K[4*U+3];for(h=1;U<44;U++)K=m[U-1],U%4||(K=(j0[K>>16&255]^h)<<24|j0[K>>8&255]<<16|j0[K&255]<<8|j0[K>>>24],h=h<<1^(h>>7&&283)),m[U]=m[U-4]^K;this.key=m}; oo=function(K,W,U,h,m){var S=K.j.length,f=W.j-K.Le*tl(K),G=U*f;U=t_(K,G);var I=h*f;f=t_(K,I);m==="HOVER_PROGRESS"&&(f=t_(K,W.j*h,!0),I=W.j*h-aGz(K,W.j*h)*tl(K));h=Math.max(G-TOY(K,U),0);for(G=U;G200&&(N="manifest.net.badstatus",Q===400&&(u=2));return Promise.reject(new g.F3(N,O,u))}} var m,S,f,G,I,d,J,e,E,B,D,a;return g.r(function(Q){if(Q.j==1){K.fetchType="gvi";m=K.V();var u={};K.Je&&(u.ytrext=K.Je);(G=g.Tb(u)?void 0:u)?(S={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:G},f=gw(W,{action_display_post:1})):(S={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},f=W);I={};m.sendVisitorIdHeader&&K.visitorData&&(I["X-Goog-Visitor-Id"]=K.visitorData);(d=L6(m.experiments,"debug_sherlog_username"))&&(I["X-Youtube-Sherlog-Username"]=d);Object.keys(I).length> 0&&(S.headers=I);J=(0,g.AI)();return g.T(Q,LN2(Mn,f,S).then(void 0,U),2)}e=Q.X;if(!e||!e.responseText)return Q.return(h(e));K.loading=!1;E=nZ(e.responseText);g.NZ(K,E,!0);if(K.errorCode)return B={ec:K.errorCode,ed:K.errorDetail,es:K.hF||""},Q.return(Promise.reject(new g.F3("auth",B,2)));if(!K.loading&&!xe(K))return D=K.isAd()?"auth":"manifest.net.retryexhausted",a=K.isAd()?2:1,Q.return(Promise.reject(new g.F3(D,{successButUnplayable:"1"},a)));g.q1(Q)})}; XRp=function(K,W){g.dG(W,function(U){return K.equals(U)})||W.push(K)}; Bi=function(K){K.U.textContent=U4s(K,K.j)+"x"}; VwD=function(K){g.y.call(this,{T:"div",Z:"ytp-heat-map-chapter",K:[{T:"svg",Z:"ytp-heat-map-svg",B:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{T:"defs",K:[{T:"clipPath",B:{id:"{{id}}"},K:[{T:"path",Z:"ytp-heat-map-path",B:{d:"",fill:"white"}}]},{T:"linearGradient",B:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{T:"stop",B:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{T:"stop",B:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{T:"rect",Z:"ytp-heat-map-graph",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{T:"rect",Z:"ytp-heat-map-hover",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{T:"rect",Z:"ytp-heat-map-play",B:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{T:"path",Z:"ytp-modern-heat-map",B:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=K;this.Y=this.yH("ytp-heat-map-svg");this.U=this.yH("ytp-heat-map-path");this.W=this.yH("ytp-heat-map-graph");this.G=this.yH("ytp-heat-map-play");this.j=this.yH("ytp-heat-map-hover");this.N=this.yH("ytp-modern-heat-map");this.Av=!1;this.X=60;K=""+g.NK(this);this.update({id:K});K="url(#"+K+")";this.W.setAttribute("clip-path",K);this.G.setAttribute("clip-path",K);this.j.setAttribute("clip-path",K)}; K5p=function(K){if(!K.j){var W=g.jt(function(h){var m=(0,g.AI)();h&&m<=631152E6&&(K.iX.rk("ytnerror",{issue:28799967,value:""+m}),m=(new Date).getTime()+2);return m},K.C.L("html5_validate_yt_now")),U=W(); K.j=function(){return Math.round(W()-U)/1E3}; K.iX.u2()}return K.j}; PQ$=function(K){return!!K.G2||!!K.Ae||!!K.t$||!!K.jh||K.D3}; g.xL=function(K,W,U){K.j=W;K.G=U||0}; uR=function(){zv.call(this);this.G=null;this.U=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; xT=function(K,W){var U=K.search(QV),h=$H(K,0,W,U);if(h<0)return null;var m=K.indexOf("&",h);if(m<0||m>U)m=U;h+=W.length+1;return ZU(K.slice(h,m!==-1?m:0))}; ENs=function(K){var W=sd(K);return W&&W.durationMs?eh(W.durationMs):K.paidContentOverlayDurationMs}; EuR=function(K,W){K.us.push(W);for(var U=!1,h=g.z(K.listeners),m=h.next();!m.done;m=h.next())U=m.value.j6(W)||U;K.W=U;Qo(K.Xx.get())&&VE(K.zm.get(),"onci","cpi."+W.identifier+";cpe."+W.event+";cps."+W.startSecs+";cbi."+U)}; DI=function(K,W,U){A4s(K.dH,W);K.hK&&(K.hK.add(Math.ceil(W)-Math.ceil(K.Y)),K.hK.add(Math.max(0,Math.ceil(U/1024)-Math.ceil(K.U/1024))));var h=W-K.Y,m=U-K.U;K.Cg=m;K.Ik=Math.max(K.Ik,m/(h+.01)*1E3);K.Y=W;K.U=U;K.DA&&U>K.DA&&$Os(K)}; BfC=function(K){if(K.api.V().L("web_player_log_click_before_generating_ve_conversion_params"))for(var W=Math.floor(-K.scrollPosition/(K.W+8)),U=Math.min(W+K.columns,K.suggestionData.length)-1;W<=U;W++)K.api.logVisibility(K.j[W].element,!0)}; g.UY=function(K,W){W=W===void 0?"":W;if(K.rQ){var U=new Y2,h,m=K.rQ();m.signedOut?h="":m.token?h=m.token:m.pendingResult.then(function(S){m.signedOut?U.resolve(""):U.resolve(S.token)},function(S){g.eI(new g.EB("b189348328_oauth_callback_failed",{error:S})); U.resolve(W)}); return h!==void 0?EM(h):new s4(U)}return EM(W)}; Vc=function(K){return g.LL(K.j,function(W){return!!W.info.zL})}; UG=function(K,W){W=W===void 0?[]:W;var U={OP:K.OP||"_",sZ:K.sZ||[],p9:K.p9|0,D4:K.D4,VZ:K.VZ||function(){}, gz:K.gz||function(S,f){return pg2(S,f,U.VZ,U.D4)}},h=U.gz("51",U.sZ.concat(W)); u4.call(this,{jDx:new Q0p(h),errorCount:new xCs(h),eventCount:new pw2(h),Ou:new xwC(h),Qdr:new WyC(h),Ng5:new s0$(h),pP:new fEp(h),XNK:new $fF(h)},U.OP);var m=this;this.xd={wW:function(){return m.options.sZ.concat(m.W).sort(function(S,f){return S-f})}}; this.options=U;this.service=h;this.N=!K.gz;this.j=new s$C(function(){return void m.service.nT()},U.p9); this.addOnDisposeCallback(function(){m.j.dispose();m.N&&m.service.dispose()}); g.OM(this.W=W.slice())}; xIs=function(K,W){W&&LN(K.iX,new qz(W.video,W.reason));K.j.Bp&&(W=Dpe(K.j,"a"),K.iX.St(new qz(W.audio,W.reason)))}; uz=function(K,W,U){U=U===void 0?!1:U;return ods(K,W.getCurrentTime(),(0,g.AI)(),Rs(W),U)}; JBR=function(K,W,U){K.j.set(W,U);K.X.set(W,U);K.W&&K.W.set(W,U)}; Hx$=function(K,W,U,h,m,S){S=S===void 0?new CC:S;no.call(this,W,U,h);this.zW=m;this.Hm=0;this.ez={};this.Ru=new YuL;this.Bt={};this.nf="";this.JK=null;this.W3=!1;this.j=[];this.Fk=S.X();this.G=S.N();this.W=null;this.N=-1;this.tK=this.jV=void 0;this.uX=this.Ms=0;this.hK=-1;this.Ik=this.Pp=!1;this.DA=this.J=this.X=this.Wy=this.Qg=0;new ZN;this.eV=this.vp=0;this.Bp=-1;this.oo=0;this.Y=g.Ac;this.Ns=[this.QK()];this.q5=2;this.ew={};this.ew.pause="p";this.ew.resume="r";this.ew.skip="s";this.ew.mute="m"; this.ew.unmute="um";this.ew.exitfullscreen="ef";this.U=null;this.gk=this.M5=!1;this.DO=Math.floor(Date.now()/1E3-1704067200);this.Le=0}; pGz=function(K,W,U,h,m){var S=K.index?OK(K.logger,function(){return rUs(K.index,R$2(W),U,h,m)},"W"):"u"; K.logger.rh(S)}; Kr=function(K){return K.j==="enter_requested"||K.isActive()}; cO=function(K){var W,U,h;return((W=K.playerResponse)==null?void 0:(U=W.playerConfig)==null?void 0:(h=U.compositeVideoConfig)==null?void 0:h.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; Tf2=function(){var K=zb;this.j=cE;this.Xl="jserror";this.F_=!0;this.W8=null;this.X=this.bP;this.In=K===void 0?null:K}; iVC=function(K){var W=[];return g.aBp(K,{query:void 0},function(U){W.push(U.cursor.primaryKey);return g.CIs(U)}).then(function(){return W})}; a1p=function(K){var W=K.top||0,U=K.left||0;return new HP(W,U+(K.width||0),W+(K.height||0),U)}; Dq=function(K,W){var U;return((U=K.j.get(W))==null?void 0:LH$(U.buffer))||0}; g.BR_=function(K){return K.mK()&&HT(K)}; o3=function(K,W){UT.call(this,K,W,"chapterCueRange","View chapter");this.Y=""}; kV=function(K,W,U){this.instance=K;this.j=U;this.exports=this.instance.exports;W.wasi_snapshot_preview1.exports=this.exports;K=Math.floor(Math.random()*256);W=Math.floor(Math.random()*256);U=0;try{U=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,U,16)).fill(K);if(this.exports.sentinel(U,16,W)!==W*16%256)throw"wasm.wm.vi";for(var h=new Uint8Array(this.exports.memory.buffer,U,16),m=0;m<16;m++)if(h[m]!==(K+W)%256)throw"wasm.wm.vi"+m;}finally{U!==0&&this.exports.free(U)}}; je=function(K){jf.call(this,K);var W=this;this.j=!1;K.addEventListener("settingsMenuInitialized",function(){dIs(W)}); K.addEventListener("highlightSettingsMenu",function(U){dIs(W);var h=W.menuItem;U==="menu_item_cinematic_lighting"&&(g.$C(h.element,"ytp-menuitem-highlighted"),g.$C(h.element,"ytp-menuitem-highlight-transition-enabled"),h.X.start())}); fZ(K,"updateCinematicSettings",function(U){W.updateCinematicSettings(U)})}; Mi=function(K){if(K!=null&&typeof K!=="number")throw Error("Value of float/double field must be a number, found "+typeof K+": "+K);return K}; xDs=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; g9F=function(K,W,U){U=U===void 0?!1:U;g.wG(W);K.zK.lastError="player.exception";K.errorMessage=W.name+"_"+W.message;U?g.kK(function(){H7(K.zK)}):H7(K.zK)}; gI=function(K,W){if(!g.hc("web_csi_action_sampling_enabled")||!bs(W).actionDisabled){var U=dQ(W||"");TU(U.info,K);K.loadType&&(U=K.loadType,mHz(W).loadType=U);TU(e7e(W),K);U=P8(W);W=bs(W).cttAuthInfo;Dt().info(K,U,W)}}; Wfp=function(K,W){if(K.j.length!==0){var U=new URL(Vcz(K));U.searchParams.delete("format");var h=K.SE();h&&U.searchParams.set("auth",h);U.searchParams.set("authuser",K.sessionIndex||"0");for(h=0;h<10&&K.j.length;++h){var m=K.j.slice(0,32),S=K.N.build(m,K.W,K.G,K.FQ,K.Ns,K.uX);if(!W(U.toString(),S)){++K.G;break}K.W=0;K.G=0;K.Ns=0;K.uX=0;K.j=K.j.slice(m.length)}K.X.enabled&&K.X.stop()}}; eQ=function(K,W,U,h){var m="fmt.unplayable",S=1;U===5||U===3?(m="fmt.unparseable",K.policy.j?!h.Wp.info.video||j5(K.W.j).size>0||tx(K.W.j,h.Wp,!1):!h.Wp.info.video||j5(K.j.U).size>0||Ek(K.j,h.Wp)):U===2&&(K.W3<15?(K.W3++,m="html5.invalidstate",S=0):m="fmt.unplayable");h=Ov(h);var f;h.mrs=(f=K.AK)==null?void 0:pL(f);h.origin=W;h.reason=U;h.trg="appenderr";K.handleError(m,h,S)}; Im=function(K,W,U){K=s1(K,W===void 0?0:W,U===void 0?-1:U);W=new Uint8Array(K.length);try{W.set(K)}catch(h){for(U=0;U'.charCodeAt(h);K=K.N.createSession("video/mp4",W,U);return new Xs(null,null,null,null,K)}; mZ=function(K,W,U){if(K.Wo(U)&&(U=U.getVideoData(),!sk(K))){K=K.S_;for(var h=g.z(K.X),m=h.next();!m.done;m=h.next())if(m=m.value,U.Ze===m.Ze){W+=m.Ua/1E3;break}h=W;K=g.z(K.X);for(m=K.next();!m.done;m=K.next()){m=m.value;if(U.Ze===m.Ze)break;var S=m.Ua/1E3;if(S0)for(W=g.z(K.sabrContextUpdates.values()),U=W.next();!U.done;U=W.next())ByF(G,U.value,h);HT(K)&&S&&ByF(G,S,h);h=K.V().j;G.clientInfo={clientName:$ps[h.c.toUpperCase()]||0};h.cbrand&&(G.clientInfo.deviceMake=h.cbrand);h.cmodel&&(G.clientInfo.deviceModel= h.cmodel);h.cver&&(G.clientInfo.clientVersion=h.cver);h.cos&&(G.clientInfo.osName=h.cos);h.cosver&&(G.clientInfo.osVersion=h.cosver);h=K.V();h.L("html5_sabr_enable_server_xtag_selection")&&h.Ea&&(G.clientInfo.hl=h.Ea);K.aN&&(G.aN=K.aN);return G}; $mz=function(K,W){Vd(K,1,W.hl);Vd(K,12,W.deviceMake);Vd(K,13,W.deviceModel);Xa(K,16,W.clientName);Vd(K,17,W.clientVersion);Vd(K,18,W.osName);Vd(K,19,W.osVersion)}; YAz=function(K){if(g.PP("cobalt")&&g.PP("nintendo switch")){var W=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;K.rk("nxdock",{d:W})}}; mT2=function(K){this.U=K;this.N=this.X=0;this.W=new Ky(50)}; rB=function(K,W,U){K.playback.A$(W,U)}; Aj=function(K){for(var W=K.length;--W>=0;)K[W]=0}; QrL=function(K,W){if(I8){var U=0;K=K.Vt.get(W);if(K==null||!K.gg)return 0;K=g.z(K.gg.values());for(W=K.next();!W.done;W=K.next())U+=W.value.data.totalLength;return U}return((U=K.Vt.get(W))==null?void 0:U.s_.totalLength)||0}; Oxe=function(K){K.loading=!0;K.Ea=!1;if(DWe(K))g.cqs(K.videoId).then(function(h){var m;if((m=K.playerResponse)!=null&&m.streamingData){m=[];h=g.z(h);for(var S=h.next();!S.done;S=h.next())S=Object.assign({},S.value),S.signatureCipher="",m.push(S);m.length<2&&K.rk("offmlf",{len:m.length});m=z6Y(K,m);WE(K)&&k9F(m,!1);DE(K,m);K.rk("dlr",{})}else K.rk("offsdm",{cotn:K.eX?K.eX.cotn:"0",cpn:K.clientPlaybackNonce})}).then(function(){K.x0()}); else{pE(K.W1)||g.eI(new g.EB("DASH MPD Origin invalid: ",K.W1));var W=K.W1,U;W&&((U=K.Tm.qk())==null?0:U.j.v3(HPe))&&(W=rHF(W));U=g.jV(K.Tm.experiments,"dash_manifest_version")||4;W=g.sL(W,{mpd_version:U});K.isLowLatencyLiveStream&&K.latencyClass!=="NORMAL"||(W=g.sL(W,{pacing:0}));gA_(W,K.Tm.experiments,K.isLivePlayback).then(function(h){K.qs()||(DE(K,h,!0),XL("mrc",void 0,K.jV),K.x0())},function(h){K.qs()||(K.loading=!1,K.publish("dataloaderror",new g.F3("manifest.net.retryexhausted",{backend:"manifest", rc:h.status},1)))}); XL("mrs",void 0,K.jV)}}; EWs=function(K){var W,U;return g.r(function(h){if(h.j==1)return g.T(h,USL(K),2);U=W=h.X;return h.return(U)})}; h$p=function(K,W,U,h,m){this.bY=K;this.zm=W;this.lZ=U;this.j=h;this.yg=m}; cUe=function(K){K=K.j;for(var W in K){var U=K[W].index;if(U.isLoaded())return U.Rn()+1}return 0}; aSD=function(K){var W;return((W=K.audio)==null?void 0:W.audioQuality)==="AUDIO_QUALITY_HIGH"}; oM=function(K,W,U,h,m){h=h===void 0?!1:h;g.p.call(this);this.Tm=W;this.useCobaltWidevine=h;this.rk=m;this.X=[];this.N={};this.j={};this.callback=null;this.U=!1;this.W=[];this.initialize(K,!U)}; nuz=function(K){switch(K){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return K;default:return"sabr.config"}}; Nvz=function(K){if(!K.j&&!K.N.isEmpty()){var W=K.N.remove();K.j=AMs(K,W)}}; gu2=function(K,W,U){var h;VE(K.zm.get(),"ads_qua","cpn."+Sp(K.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((h=Xp(K.ZA.get(),2))==null?void 0:h.clientPlaybackNonce)+";qt."+W+";clr."+U)}; YQC=function(K){var W,U,h,m,S,f,G,I,d,J;return g.r(function(e){return e.j==1?(h=(W=K)==null?void 0:(U=W.responseContext)==null?void 0:U.globalConfigGroup,m=g.P(h,FkC),f=(S=h)==null?void 0:S.hotHashData,G=g.P(h,uBF),d=(I=h)==null?void 0:I.coldHashData,(J=pl().resolve(new oE(sF)))?f?m?g.T(e,KkF(J,f,m),2):g.T(e,KkF(J,f),2):e.O5(2):e.return()):d?G?g.T(e,RtL(J,d,G),0):g.T(e,RtL(J,d),0):e.O5(0)})}; Tr=function(K){if(K.Xm)return!1;var W=void 0;K.Rw&&(W=K.j.Yv({cpn:K.Rw}));return K.playback.getVideoData().Sj()?!!W&&!W.Q_:!!W}; f2C=function(K,W,U,h,m){m=JZ$(m,W);dB(K,U,h,m);m&&!WF(m)&&FW(K.iZ);return K}; bb=function(K){g.p.call(this);this.j=K;this.l5=!0;this.Lg=new Map;this.U=new Set;this.N=new Set;this.W=new Set;this.G=new Set;this.X=new Set}; gG=function(K){var W;return(W=Fg.E3.get(K))!=null?W:"u"}; g.hZ$=function(K,W){if(K.j!=null&&g.EH(W,K.j)&&K.j.j.rawcc!=null)return!0;if(!K.mK())return!1;W=!!K.j&&K.j.isManifestless&&Object.values(K.j.j).some(function(U){return g.Zr(U,"386")}); K=!!K.j&&!K.j.isManifestless&&g.pkL(K.j);return W||K}; ZP=function(K){return g.Vm(vBC(),K)}; OD=function(K){this.N5=K;this.j=new WQ}; kKs=function(K){var W,U,h=(W=K.j)==null?void 0:(U=W.bannerData)==null?void 0:U.itemData,m,S,f,G;if(!((h==null?0:h.priceReplacementText)||K.D.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(h==null?0:(m=h.dealsData)==null?0:(S=m.sales)==null?0:S.originalPrice))&&(h==null?0:(f=h.dealsData)==null?0:(G=f.priceDrop)==null?0:G.referencePrice)){var I,d;return h==null?void 0:(I=h.dealsData)==null?void 0:(d=I.priceDrop)==null?void 0:d.referencePrice}return null}; cX2=function(K,W){Vd(K,1,W.name);Vd(K,2,W.value)}; ix$=function(K){var W=(0,g.AI)(),U=K.getCurrentTime();K=K.getVideoData();U=1E3*(U-K.startSeconds);K.isLivePlayback&&(U=0);return W-Math.max(U,0)}; HLY=function(K,W,U,h){var m=Zs(K.X.get(),"SLOT_TYPE_IN_PLAYER"),S=new mY(K.j,W),f=[new mx(K.j,m)];K=[new pi(K.j,W),new PM(K.j,m)];return{slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:f,slotExpirationTriggers:K,wk:"core",clientMetadata:new Zi([new xx(h({slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,wk:"core",slotEntryTrigger:S,slotFulfillmentTriggers:f,slotExpirationTriggers:K}))]),adSlotLoggingData:U}}; cL=function(K,W,U){var h;qk$(K.zm.get(),K.layoutId,W,U,(h=K.G)!=null?h:void 0,K.U)}; zMC=function(K,W,U,h){h=new Qt(K.api,K.layoutId,K.interactionLoggingClientData,K.s5,h,K.hK);h.U5(K.answers);h.init(Mq("survey-answer"),W,U);K.J&&(W=K.questionText.getAttribute("id"),W!=null&&(h.j!==null?h.j.X.setAttribute("aria-describedby",W):h.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",W)));K.X.push(h)}; NfF=function(K,W){K.iX.rk("sdai",{adj4t:W.toFixed(3)});K.Le=W;W+=1;K.X=W;K.N=W;EK(K).then(function(U){Ba(K,U)},function(){eE(K)})}; Oy=function(K,W,U){return typeof K==="string"?(K=encodeURI(K).replace(W,jlR),U&&(K=K.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),K):null}; yUe=function(K,W){K.Y=W;var U=K.hK;K.D.L("delhi_modern_web_player_icons")?K.X.yH("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(W+") translate(-22,-12)")):W&&(U+=TT$(AUC,RMe,W));K.Ms.setAttribute("d",U)}; O3D=function(K,W,U,h,m){var S=!W.hideCueRangeMarker;switch(W.kind){case "AD_PLACEMENT_KIND_START":return new mY(K.j,U);case "AD_PLACEMENT_KIND_MILLISECONDS":return K=ZFR(W,h),K instanceof v?K:m(K.xV,S);case "AD_PLACEMENT_KIND_END":return new OQ(K.j,U,S);default:return new v("Cannot construct entry trigger",{kind:W.kind})}}; wc=function(K,W,U){this.buffer=K;if(U&&!W)throw Error();this.j=W}; MXp=function(K){return yMp(K.j,function(W){return W.info.video?W.kC():!0})}; Gx=function(K){jf.call(this,K);var W=this;this.W=this.N=!1;this.X=new g.Te(K);g.k(this,this.X);this.jV="2x";this.speedmasterUserEdu=new O0(K,this.jV);g.k(this,this.speedmasterUserEdu);g.HW(this.api,this.speedmasterUserEdu.element,4);this.j=new g.sR(this.api.xx().yk,!0,null,!1,!0);g.k(this,this.j);this.delay=new g.QC(this.DA,500,this);g.k(this,this.delay);this.X.S(K,"videodatachange",function(){ed(W)},this); this.X.S(K,"presentingplayerstatechange",function(){ed(W)},this); this.X.S(K,"autonavvisibility",function(){ed(W)},this); this.api.dj().subscribe("visibilitystatechange",function(){ed(W)}); this.X.S(K,"rootnodemousedown",function(U){W.Y=U}); this.L("web_speedmaster_spacebar_control")&&(this.X.S(K,"keyboardserviceglobalkeydown",function(U,h){W.Ms=h;RVp(W,U,h.KR,!0)},this),this.X.S(K,"keyboardserviceglobalkeyup",function(U){RVp(W,U,!1,!1)},this))}; $X=function(K){if(!K)return new v_(0,0);var W=Number(K.start);K=Number(K.end);if(!isNaN(W)&&!isNaN(K)&&(W=new v_(W,K),W.length>0))return W}; P9p=function(K,W,U,h,m){yU.call(this,"action-companion",K,W,U,h,m)}; uZ=function(){this.N="&";this.X={};this.W=0;this.j=[]}; $xL=function(K,W){var U;if(g.hc("web_log_memory_total_kbytes")&&((U=g.qs.navigator)==null?0:U.deviceMemory)){var h;U=(h=g.qs.navigator)==null?void 0:h.deviceMemory;K?$a(K,95,pm(U*1E6)):W&&(W.client.memoryTotalKbytes=""+U*1E6)}}; prp=function(K,W){a:{var U=W.cryptoPeriodIndex;if(isNaN(U)&&K.N.size>0)U=!0;else{for(var h=g.z(K.N.values()),m=h.next();!m.done;m=h.next())if(m.value.cryptoPeriodIndex===U){U=!0;break a}U=!1}}K.publish("log_qoe",{wvagt:"reqnews",canskip:U});U||K.publish("rotated_need_key_info_ready",W)}; xj=function(K,W,U,h){if(h===void 0)return h=Object.assign({},K[W]||{}),U=(delete h[U],h),h={},Object.assign({},K,(h[W]=U,h));var m={},S={};return Object.assign({},K,(S[W]=Object.assign({},K[W],(m[U]=h,m)),S))}; g.pep=function(K){return K.captionsLanguagePreference||K.Tm.captionsLanguagePreference||g.o8(K,"yt:cc_default_lang")||K.Tm.Ea}; ZxC=function(K,W,U){if(U!==zL)throw Error();this.typeName=K;this.j=W;if(U!==zL)throw Error();ouC.set(K,this)}; zB=function(K){this.iZ=qR(K)}; ZXL=function(K,W,U,h){W.durationMs=U;W.W2=h;(h=K.DA.get(W.cpn))?h.BY(U/1E3):K.bZ({nop_d:W.cpn})}; iz=function(K,W,U,h,m,S,f,G,I,d,J,e){UH.call(this,S,K,W,m);this.zm=U;this.W=f;this.dk=G;this.kd=I;this.Xx=d;this.G=J;this.U=e;this.Ke=V5L(W,U)}; g.hi=function(){return Date.now()}; jDC=function(K,W){var U;return g.r(function(h){if(h.j==1){if(!W)return h.return(W);U=new g.Zz(K.X);return g.T(h,U.decrypt(W,K.j),2)}return h.return(h.X)})}; bxp=function(K){if(!K||!K.adPlacements&&!K.adSlots)return!1;for(var W=g.z(K.adPlacements||[]),U=W.next();!U.done;U=W.next())if(U=U.value)if(U=U.adPlacementRenderer,U!=null&&(U.config&&U.config.adPlacementConfig&&U.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;K=g.z(K.adSlots||[]);for(W=K.next();!W.done;W=K.next()){var h=U=void 0;if(((U=g.P(W.value,vX))==null?void 0:(h=U.adSlotMetadata)==null?void 0:h.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; X1_=function(){zx();var K=Fl.document;return!!(K&&K.body&&K.body.getBoundingClientRect&&typeof Fl.setInterval==="function"&&typeof Fl.clearInterval==="function"&&typeof Fl.setTimeout==="function"&&typeof Fl.clearTimeout==="function")}; s6C=function(K){var W;switch((W=K.C.playerCanaryStage)==null?void 0:W.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; VXC=function(K,W,U){K.N=!1;throw Error("The stream is broken @"+K.X+". Error: "+U+". With input:\n"+W);}; A5=function(K){var W=K.videoTrack.U!==-1,U=K.audioTrack.U!==-1;if(!W||!U)if(W=!W&&OB(K.videoTrack),U=!U&&OB(K.audioTrack),W||U){U=W?K.videoTrack:K.audioTrack;W=W?K.audioTrack:K.videoTrack;U.U=OB(U).info.kx;if(K.policy.U){var h;W.U=((h=OB(W))==null?void 0:h.info.kx)||W.U}if(W.U!==-1){var m=Math.max(W.Wp.index.getStartTime(W.U),U.Wp.index.getStartTime(U.U));WJ(K.Gm)&&Math.abs(m-WJ(K.Gm))>432E3&&XeC(K.Gm);K.X&&(m=K.X,K.X=0);g.kK(function(){K.policy.U||Ru(K,m,102)}); K.loader.rk("initManifestlessSync",{st:m,ost:m+K.loader.A7(),a:K.audioTrack.U,v:K.videoTrack.U});K.N&&(K.N.resolve(m+.1),K.N=null);K.policy.U&&Ru(K,m,102)}}}; qP_=function(K,W,U,h,m,S){function f(E){return q$(K.uB.get(),E)} var G=[];W=g.z(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;var d=I.renderer,J=d.sandwichedLinearAdRenderer,e=d.linearAdSequenceRenderer;J&&fvF(J)?(UF("Found AdNotify with SandwichedLinearAdRenderer"),e=g.P(J.adVideoStart,LQ),J=g.P(J.linearAd,iY),Z7(S,d,I.config.adPlacementConfig.kind),d=void 0,e=r_C((d=e)==null?void 0:d.layout.layoutId,K.X.get(),K.j.get(),I.config.adPlacementConfig,I.adSlotLoggingData,J,U,h,f,m,K.loadPolicy,K.Xx.get(),K.uB.get()),e instanceof v?UF(e):G.push.apply(G,g.z4(e))): e&&(!e.adLayoutMetadata&&nB2(e)||e.adLayoutMetadata&&PYp(e))&&(UF("Found AdNotify with LinearAdSequenceRenderer"),Z7(S,d,I.config.adPlacementConfig.kind),d=void 0,J=ak$((d=g.P(e.adStart,LQ))==null?void 0:d.layout.layoutId,K.X.get(),K.j.get(),I.config.adPlacementConfig,I.adSlotLoggingData,e.linearAds,Kf(e.adLayoutMetadata)?e.adLayoutMetadata:void 0,U,h,f,m,K.loadPolicy,K.Xx.get()),J instanceof v?UF(J):G.push.apply(G,g.z4(J)))}return G}; qAR=function(K,W,U){g.Ff.call(this,K);var h=this;this.pg=W;this.Y$=U;this.getVideoUrl=new zi(6);this.ZF=new zi(5);this.Ll=new zi(4);this.P3=new zi(3);this.WJ=new g.ad(g.w8({href:"{{href}}",target:this.D.V().jV},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.ad(g.w8(),1,"Stats for nerds");this.dW=new g.GW({T:"div",Hp:["ytp-copytext","ytp-no-contextmenu"],B:{draggable:"false",tabindex:"1"},bX:"{{text}}"});this.Bb=new Cg(this.D,this.dW);this.U$=this.cz=null;g.HB(this.D.V())&&(this.closeButton= new g.y({T:"button",Hp:["ytp-collapse","ytp-button"],B:{title:"Close"},K:[g.KM()]}),g.k(this,this.closeButton),this.closeButton.U5(this.element),this.closeButton.listen("click",this.aZ,this));g.HB(this.D.V())&&(this.EC=new g.ad(g.w8(),8,"Account"),g.k(this,this.EC),this.j_(this.EC,!0),this.EC.listen("click",this.c9U,this),K.createClientVe(this.EC.element,this.EC,137682));this.D.V().cY&&(this.GP=new OI("Loop",7),g.k(this,this.GP),this.j_(this.GP,!0),this.GP.listen("click",this.TvX,this),K.createClientVe(this.GP.element, this.GP,28661));this.D.L("web_player_miniplayer_in_context_menu")&&(this.P1=new g.ad(g.w8(),6,"Miniplayer"),g.k(this,this.P1),this.j_(this.P1,!0),this.P1.listen("click",this.Dkp,this),K.createClientVe(this.P1.element,this.P1,62946));g.k(this,this.getVideoUrl);this.j_(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.rvx,this);K.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.k(this,this.ZF);this.j_(this.ZF,!0);this.ZF.listen("click",this.b5e,this);K.createClientVe(this.ZF.element, this.ZF,28660);g.k(this,this.Ll);this.j_(this.Ll,!0);this.Ll.listen("click",this.p2H,this);K.createClientVe(this.Ll.element,this.Ll,28658);g.k(this,this.P3);this.j_(this.P3,!0);this.P3.listen("click",this.Mjp,this);g.k(this,this.WJ);this.j_(this.WJ,!0);this.WJ.listen("click",this.tBk,this);g.k(this,this.showVideoInfo);this.j_(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.xbH,this);g.k(this,this.dW);this.dW.listen("click",this.JSk,this);g.k(this,this.Bb);ASs()&&(this.cz=new g.y({T:"textarea", Z:"ytp-html5-clipboard",B:{readonly:"",tabindex:"-1"}}),g.k(this,this.cz),this.cz.U5(this.element));var m;(m=this.EC)==null||m.setIcon(txC());var S;(S=this.GP)==null||S.setIcon(VSL());var f;(f=this.P1)==null||f.setIcon(this.D.L("delhi_modern_web_player_icons")?vPC():bk());this.P3.setIcon({T:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{"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.WJ.setIcon(z_());this.showVideoInfo.setIcon(eKD());this.S(K,"onLoopChange",this.onLoopChange);this.S(K,"videodatachange",this.onVideoDataChange);this.S(K,"fullscreentoggled",function(){KwY(h)}); uue(this);vuD(this,this.D.getVideoData())}; v1p=function(K,W,U){K.X=W;K.startTime=(0,g.AI)();K.duration=U;K.j()}; D5p=function(K,W,U,h,m,S,f,G){this.bY=K;this.dk=W;this.zm=U;this.X=h;this.Qr=m;this.j=S;this.Xx=f;this.ZA=G}; cB_=function(K,W,U,h,m,S){var f=U-h/2;U+=h/2;W+=m;return"M 0 "+m+" L 0 "+(W+" L ")+(f+" "+W+" C ")+(f+S+" "+W+" "+(f+S)+" "+m+" "+f+" "+m+" L 0 ")+(m+" M ")+(U+" "+m+" L ")+(K.G+" "+m+" L ")+(K.G+" "+W+" L ")+(U+" "+W+" C ")+(U-S+" "+W+" "+(U-S)+" "+m+" "+U+" "+m)}; aqC=function(K,W,U,h,m,S){this.bY=K;this.dk=W;this.zm=U;this.X=h;this.j=m;this.Xx=S}; Ne=function(K,W){K.element.setAttribute("aria-haspopup",String(W))}; xpY=function(K,W,U,h,m,S,f){kge(K,W,new g.e0(U,new g.Kw),h,m,f,!1,S)}; C9s=function(K,W){var U=W.manifestlessWindowedLiveConfig;if(U){var h=Number(U.minDvrSequence),m=Number(U.maxDvrSequence),S=Number(U.minDvrMediaTimeMs),f=Number(U.maxDvrMediaTimeMs);U=Number(U.startWalltimeMs);h&&(K.DE=h);S&&(K.PS=S/1E3,K.L("html5_sabr_parse_live_metadata_playback_boundaries")&&HT(K)&&(K.LG=S/1E3));m&&(K.L_=m);f&&(K.X5=f/1E3,K.L("html5_sabr_parse_live_metadata_playback_boundaries")&&HT(K)&&(K.q7=f/1E3));U&&(K.Af=U/1E3);(h||S)&&(m||f)&&(K.Cf=!0,K.isLivePlayback=!0,K.allowLiveDvr=!0, K.tv=!1)}if(h=W.daiConfig){if(h.enableDai){K.Wo=!0;if(m=h.enableServerStitchedDai)K.enableServerStitchedDai=m;if(m=h.enablePreroll)K.qJ=m}var G;if(h.daiType==="DAI_TYPE_SS_DISABLED"||((G=h.debugInfo)==null?0:G.isDisabledUnpluggedChannel))K.KX=!0;h.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(K.C2=!0);h.allowUstreamerRequestAdconfig&&(K.oL=!0);h.sendSsdaiMissingAdBreakReasons&&(K.rWr=!0)}if(G=W.audioConfig){h=G.loudnessDb;h!=null&&(K.lj=h);h=G.trackAbsoluteLoudnessLkfs;h!=null&&(K.TD=h);h=G.loudnessTargetLkfs; h!=null&&(K.loudnessTargetLkfs=h);G.audioMuted&&(K.M0=!0);G.muteOnStart&&(K.fH=!0);if(h=G.loudnessNormalizationConfig)h.applyStatefulNormalization&&(K.applyStatefulNormalization=!0),h.preserveStatefulLoudnessTarget&&(K.preserveStatefulLoudnessTarget=!0),m=h.minimumLoudnessTargetLkfs,m!=null&&(K.minimumLoudnessTargetLkfs=m),h=h.maxStatefulTimeThresholdSec,h!=null&&(K.maxStatefulTimeThresholdSec=h);G.playAudioOnly&&(K.YN=!0)}if(h=W.playbackEndConfig)G=h.endSeconds,h=h.limitedPlaybackDurationInSeconds, K.mutedAutoplay&&(G&&(K.endSeconds=G),h&&(K.limitedPlaybackDurationInSeconds=h));if(G=W.fairPlayConfig){if(h=G.certificate)K.yC=BC(h);h=Number(G.keyRotationPeriodMs);h>0&&(K.FT=h);G=Number(G.keyPrefetchMarginMs);G>0&&(K.KA=G)}if(G=W.playbackStartConfig){K.ww=Number(G.startSeconds);m=G.liveUtcStartSeconds;h=!!K.liveUtcStartSeconds&&K.liveUtcStartSeconds>0;m&&!h&&(K.liveUtcStartSeconds=Number(m));if(m=G.startPosition)if((S=m.utcTimeMillis)&&!h&&(K.liveUtcStartSeconds=Number(S)*.001),h=m.streamTimeMillis)K.Y_= Number(h)*.001;K.progressBarStartPosition=G.progressBarStartPosition;K.progressBarEndPosition=G.progressBarEndPosition}else if(G=W.skippableSegmentsConfig){if(h=G.introSkipDurationMs)K.D2=Number(h)/1E3;if(G=G.outroSkipDurationMs)K.hT=Number(G)/1E3}if(h=W.skippableIntroConfig)G=Number(h.startMs),h=Number(h.endMs),isNaN(G)||isNaN(h)||(K.sF=G,K.CO=h);if(G=W.streamSelectionConfig)K.gf=Number(G.maxBitrate);if(G=W.vrConfig)K.nU=G.partialSpherical=="1";if(G=W.webDrmConfig){G.skipWidevine&&(K.OI=!0);if(h= G.widevineServiceCert)K.Ug=BC(h);G.useCobaltWidevine&&(K.useCobaltWidevine=!0);G.startWithNoQualityConstraint&&(K.DZ=!0)}if(G=W.mediaCommonConfig){if(h=G.dynamicReadaheadConfig){K.maxReadAheadMediaTimeMs=h.maxReadAheadMediaTimeMs||NaN;K.minReadAheadMediaTimeMs=h.minReadAheadMediaTimeMs||NaN;K.readAheadGrowthRateMs=h.readAheadGrowthRateMs||NaN;var I;if(h=G==null?void 0:(I=G.mediaUstreamerRequestConfig)==null?void 0:I.videoPlaybackUstreamerConfig)K.Zc=BC(h);if((I=G==null?void 0:G.sabrContextUpdates)&& I.length>0)for(I=g.z(I),h=I.next();!h.done;h=I.next())h=h.value,h.type&&h.value&&(m={type:h.type,scope:h.scope,value:BC(h.value)||void 0,sendByDefault:h.sendByDefault},K.sabrContextUpdates.set(h.type,m))}if(I=G.serverPlaybackStartConfig)K.serverPlaybackStartConfig=I;G.useServerDrivenAbr&&(K.zM=!0);if(I=G.requestPipeliningConfig)K.requestPipeliningConfig=I}if(I=W.inlinePlaybackConfig)K.rM=!!I.showAudioControls;if(I=W.embeddedPlayerConfig){K.embeddedPlayerConfig=I;if(G=I.embeddedPlayerMode)h=K.V(), h.hK=G,h.N=G==="EMBEDDED_PLAYER_MODE_PFL";if(I=I.permissions)K.allowImaMonetization=!!I.allowImaMonetization}if(I=W.ssapConfig)K.iW=I.ssapPrerollEnabled||!1;if(W=W.webPlayerConfig)W.gatewayExperimentGroup&&(K.gatewayExperimentGroup=W.gatewayExperimentGroup),W.isProximaEligible&&(K.isProximaLatencyEligible=!0)}; hP=function(){g.GP.apply(this,arguments)}; oC=function(){return{T:"div",Z:"ytp-spinner-container",K:[{T:"div",Z:"ytp-spinner-rotator",K:[{T:"div",Z:"ytp-spinner-left",K:[{T:"div",Z:"ytp-spinner-circle"}]},{T:"div",Z:"ytp-spinner-right",K:[{T:"div",Z:"ytp-spinner-circle"}]}]}]}}; Abp=function(K,W,U){var h=[];U=g.z(U);for(var m=U.next();!m.done;m=U.next())if((m=m.value)&&m.url){var S=TV(m.type,"medium","0");h.push(new al(S,m.url))}return wW(K.U,h,km(K,W),!1)}; l1C=function(K,W,U){return U.renderingContent===void 0&&U.layoutId!==Wt(K,W,U)?(UF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",K.Vg(),K.VH(),{requestingSlot:W,requestingLayout:U}),!1):!0}; Kvs=function(K,W,U,h,m,S,f,G,I){var d=p2C(K,S,S+m);K.J&&K.bZ({adaftto:1});U||K.bZ({missadcon:1,enter:S,len:m,aid:G});K.W&&!K.W.LF&&(K.W.LF=G);K.Xm&&K.bZ({adfbk:1,enter:S,len:m,aid:G});var J=K.playback;S>f&&rB(K,{reason:"enterTime_greater_than_return",Ua:S,W2:f});var e=J.Cr()*1E3;SJ&&rB(K,{reason:"parent_return_greater_than_content_duration",W2:f,ghp:J});(J=lNs(K.j,S))&&J.W2>S&&hqL(K,W.video_id|| "",S,f,J);if(d&&J)for(e=0;e0?(K="sms:"+K[0],h.messageText&&(K+="?&body="+encodeURI(h.messageText))):K="",this.Av=!0,g.Iv(this.button,g.ox(K,[Uye]))):(U=g.P(U,hlF))&&!this.X&&(K=U.phoneNumber? "tel:"+U.phoneNumber:"",this.Av=!0,g.Iv(this.button,g.ox(K,[j5_])));this.D.L("embeds_enable_info_panel_dismissal")&&!K&&(U=g.P(W==null?void 0:W.onTap,Fn),h=g.P(U,myD))&&(this.Av=!0,this.j=U,this.feedbackToken=h.feedbackToken);var m;if(U=(m=W.disclaimerText)==null?void 0:m.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var S,f;this.update({label:(S=W.bodyText)==null?void 0:S.content,icon:this.D.L("embeds_enable_info_panel_dismissal")?yaC((f=W.icon)== null?void 0:f.iconType):Nk(),disclaimer:U})}else{this.disclaimer.style.display="none";var G,I;this.update({label:(G=W.bodyText)==null?void 0:G.content,icon:this.D.L("embeds_enable_info_panel_dismissal")?yaC((I=W.icon)==null?void 0:I.iconType):Nk()})}this.D.setTrackingParams(this.element,W.trackingParams||null);this.Av&&(this.N={externalLinkData:{url:K}})}; EG=function(K,W,U){for(;U>0||W>127;)K.j.push(W&127|128),W=(W>>>7|U<<25)>>>0,U>>>=7;K.j.push(W)}; ba=function(K){var W=K.pos;K.pos=0;var U=1E6;jw(K,[408125543,357149030,2807729])&&(U=By(K));K.pos=W;return U}; kP$=function(K,W){if(W&&K.W){var U=new Set(["q","feature","mos"]),h=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),m=new Set(["aqi","autonav","list","ssrt","upt"]);K.W.ns==="3pp"&&(W.ns="3pp");for(var S=g.z(Object.keys(K.W)),f=S.next();!f.done;f=S.next())f=f.value,h.has(f)||U.has(f)||m.has(f)&&!K.W[f]||(W[f]=K.W[f])}}; fXC=function(K){var W;(W=K.DO)==null||W.stop();K.countdownTimer.hide()}; H2$=function(K,W){var U=IZ(W.Wp,K.Gm.mK),h,m=((h=K.uX)==null?void 0:h.GR(U))||[];if(m.length===0)return K.rk("ombmsi",{}),!1;h=new rd(m);if((!K.policy.uX||isFinite(K.getCurrentTime())||K.iX.S5())&&!oyL(h,K.getCurrentTime()))return K.rk("ostmf",{ct:K.getCurrentTime(),a:W.Wp.info.yR()}),!1;(K=K.uX)!=null&&(K.Vt.get(U).mE=!0);return!0}; W5z=function(K){var W=K.indexOf("#");return W<0?K:K.slice(0,W)}; g.bE=function(K,W){K.G=0;K.U=W||0}; tHL=function(K,W,U){var h=g.M6(W,U),m=h.S7("default.jpg");g.y.call(this,{T:"a",Hp:["ytp-video-menu-item","ytp-button"],B:{role:"menuitemradio","aria-label":h.title,href:K.V().getVideoUrl(h.videoId,W.listId?W.listId.toString():null)},K:[{T:"div",Z:"ytp-video-menu-item-index",bX:String(U+1)},{T:"div",Z:"ytp-video-menu-item-now-playing",bX:"\u25b6"},{T:"div",Z:"ytp-video-menu-item-thumbnail",B:{style:m?"background-image: url("+m+");":void 0}},{T:"div",Z:"ytp-video-menu-item-title",bX:h.title},{T:"div", Z:"ytp-video-menu-item-author",bX:h.author}]});this.api=K;this.index=U;this.listen("click",this.onClick)}; ZO=function(K,W,U,h,m){this.X=K;this.j=W;this.N=U;this.reason=h;this.j0=m===void 0?0:m}; XGp=function(K){return new Uint8Array(K.data.buffer,K.offset+K.data.byteOffset,K.size)}; SgC=function(K){var W=0,U=NaN,h="";if(!K.jV)return{startSeconds:W,Fv:U,source:h};K.videoData.Cf?W=K.videoData.PS:f5(K.videoData)&&(W=Infinity);if(g.aG(K.videoData))return{startSeconds:W,Fv:U,source:h};K.videoData.startSeconds?(h="ss",W=K.videoData.startSeconds):K.videoData.Y_&&(h="stss",W=K.videoData.Y_);K.videoData.liveUtcStartSeconds&&(U=K.videoData.liveUtcStartSeconds);if(isFinite(W)&&(W>K.jj()||W2&&K.D.L("enable_web_premium_varispeed");K.uX.classList.toggle("ytp-speedslider-premium-badge",W);K.uX.setAttribute("aria-label",W?"Premium":"")}; yR=function(K){this.content=K.content;if(K.commandRuns){K=g.z(K.commandRuns);for(var W=K.next();!W.done;W=K.next())W=W.value,this.loggingDirectives=g.P(W,elC),W.onTap&&(this.interaction={onTap:W.onTap})}}; g5L=function(K,W){K.focus(W);return Mx(K,W,4)?sms(K).getUint32(W-K.N):256*(256*(256*pM(K,W)+pM(K,W+1))+pM(K,W+2))+pM(K,W+3)}; BpR=function(K){K=g.P(K==null?void 0:K.additionalPlayerOverlay,ElF);if(!K)return!1;var W=K.slidingMessages;return K.title&&W&&W.length!==0?!0:!1}; DyF=function(K,W,U,h,m,S,f,G){UH.call(this,K,W,U,h);this.zm=m;this.lZ=S;this.G=G;this.l5=!0;this.W=null;this.U=Sp(U.clientMetadata,"metadata_type_linked_player_bytes_layout_id");VT(this.lZ(),this);K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; yq=function(K){var W="di";if(K.di&&K.hasOwnProperty(W))return K.di;var U=new K;K.di=U;K.hasOwnProperty(W);return U}; g.k=function(K,W){K.addOnDisposeCallback(g.jt(g.vZ,W))}; sz=function(K,W){Xa(K,1,W.itag);Xa(K,2,W.lmt);Vd(K,3,W.xtags)}; hj=function(K){this.j=K}; kqD=function(K,W,U){var h=480;W=g.z(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var S=m.video.qualityOrdinal;S<=1080&&S>h&&UEY(K,m,U)===!0&&(h=S)}return h}; mu=function(K,W,U){var h=g.Du(K.X,function(m){return W<=m}); return h==-1?0:U(K.j[h])}; bD=function(K,W,U){var h=K.X[W];h||(h=[],K.X[W]=h);h.push(U)}; e12=function(K,W,U){this.actionType=W;this.id=U;this.content=K}; vi=function(K){return g.LL(K.j,function(W){return Rg(92,W.T9.j)})}; Qm=function(K){K=g.wB(K);return wN(null,null,null,null,K[5],K[6],K[7])}; bQ_=function(K,W){K=K===void 0?{}:K;W=W===void 0?{}:W;g.p.call(this);var U=this;this.values=K;this.j2=W;this.X={};this.N=this.j=0;this.W=new g.QC(function(){MnL(U)},1E4); g.k(this,this.W)}; Wx=function(K){switch(K){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; $y=function(K,W,U){U=U===void 0?Hvz:U;U.widthK.width*K.height*.2)return{pI:3,DW:501,errorMessage:"ad("+uf(U)+") to container("+uf(K)+") ratio exceeds limit."};if(U.height>K.height/3-W)return{pI:3,DW:501,errorMessage:"ad("+uf(U)+") covers container("+uf(K)+") center."}}; Dn=function(K,W){K.publish("internalvideodatachange",W===void 0?"dataupdated":W,K.videoData)}; eD=function(K,W){this.X=K;this.N=W===void 0?!1:W;this.j={}}; rJe=function(K){return{Xf:L_(K,3),MM:L_(K,4),Jy:L_(K,5),Evk:vk(K,8),a1V:L_(K,10),C8:L_(K,12),g1:L_(K,13),V_:L_(K,14),w1:L_(K,15),jJ:L_(K,16)}}; g.o0=function(K,W){W===void 0&&(W=0);pPC();W=Tpe[W];for(var U=Array(Math.floor(K.length/3)),h=W[64]||"",m=0,S=0;m>2];f=W[(f&3)<<4|G>>4];G=W[(G&15)<<2|I>>6];I=W[I&63];U[S++]=""+d+f+G+I}d=0;I=h;switch(K.length-m){case 2:d=K[m+1],I=W[(d&15)<<2]||h;case 1:K=K[m],U[S]=""+W[K>>2]+W[(K&3)<<4|d>>4]+I+h}return U.join("")}; HVs=function(K){g.p.call(this);this.j=K;this.IH=j4s(this)}; FC=function(K){return K.IK&&K.getVideoData().mutedAutoplay}; Me=function(K,W){var U=K.E5();return W===K.rH()&&K.Wo(W)&&K.Wo(U)?U:W}; ab=function(K){var W=tmD;K=K===void 0?b_2():K;var U=Object,h=U.assign,m=tv(W);var S=W.j;try{var f=S.screenX;var G=S.screenY}catch(u){}try{var I=S.outerWidth;var d=S.outerHeight}catch(u){}try{var J=S.innerWidth;var e=S.innerHeight}catch(u){}try{var E=S.screenLeft;var B=S.screenTop}catch(u){}try{J=S.innerWidth,e=S.innerHeight}catch(u){}try{var D=S.screen.availWidth;var a=S.screen.availTop}catch(u){}S=[E,B,f,G,D,a,I,d,J,e];f=cWC(!1,W.j.top);G={};var Q=Q===void 0?g.qs:Q;I=new Nd;"SVGElement"in Q&&"createElementNS"in Q.document&&I.set(0);d=YTp();d["allow-top-navigation-by-user-activation"]&&I.set(1);d["allow-popups-to-escape-sandbox"]&&I.set(2);Q.crypto&&Q.crypto.subtle&&I.set(3);"TextDecoder"in Q&&"TextEncoder"in Q&&I.set(4);Q=p1_(I);W=(G.bc=Q,G.bih=f.height,G.biw=f.width,G.brdim=S.join(),G.vis=Rl(W.X),G.wgl=!!Fl.WebGLRenderingContext,G);U=h.call(U,m,W);U.ca_type="image";K&&(U.bid=K);return U}; aX2=function(K,W){try{W={detail:"pr."+W},(KL(K.Tm)||Cr(K.Tm)==="TVHTML5_FOR_KIDS")&&K.Tm.L("html5_reload_by_kabuki_app")?K.iX.jB("qoe.restart",1,void 0,GR(W),"7"):(K.aR("qoe.restart",W),window.location.reload())}catch(U){}}; mEY=function(K,W,U,h){h=h===void 0?0:h;var m=g.z0(h);W=W||g.ND(h);m&&W&&(K=K.client,h=zy({cttAuthInfo:Is(m)||void 0},m),U={csn:m,ve:W.getAsJson(),clientData:U},m==="UNDEFINED_CSN"?dH("visualElementStateChanged",h,U):K?NY("visualElementStateChanged",U,K,h):g.N_("visualElementStateChanged",U,h))}; Cw=function(K,W,U){U=U===void 0?[]:U;this.maxItems=K;this.j=W===void 0?0:W;this.X=U}; wlD=function(K,W){K.PT=K.PT.filter(function(U){return U!==W})}; $yp=function(K){var W=K.getVideoData(),U=K.f5;QI(U)||U.Mf();!Q5$&&U.D.L("html5_allow_asmjs")&&EWs(U);Jr(U,"embed");Jr(U,"kids");Jr(U,"remote");Jr(U,"miniplayer");Jr(U,"offline");Jr(U,"unplugged");Jr(U,"ypc",!1,!0);Jr(U,"webgl",!1,!0);bw2(U)||(Jr(U,"captions",!0),Jr(U,"endscreen"),U.yL(),Jr(U,"creatorendscreen",!0));U.Jh();U.D.publish("modulesCreated");K.Yx.publish("videoready",W)}; EQD=function(K,W,U,h,m,S){U=new Zi([new RX(U),new vM(h)]);W=bh(K.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W);h={layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wk:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",uZ:new Map,layoutExitNormalTriggers:[new op(function(f){return Rp(K.X.get(),f)},m)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:U,t7:S(h),adLayoutLoggingData:void 0}}; La=function(K,W){return j6(K,W.slotType+"_"+W.slotPhysicalPosition).get(W.slotId)}; g.Uu=function(K,W,U,h){this.W=K;this.U=W;this.j=this.N=K;this.G=U||0;this.Y=h||2}; kZC=function(K){return Ab(K,function(W,U){return W.time>U.time?W:U},K[0])}; Nh=function(K){if(!Ph&&!oF||!ZH)return!1;for(var W=0;W=480;return h}; g.OvC=function(K){return K.data["Serialized-State"]?K.data["Serialized-State"]:""}; TB=function(K,W){W=W===void 0?!1:W;return K.D.V().L("html5_ssap_force_ads_ctmp")?!0:(W||K.D.V().G9())&&K.D.V().L("html5_ssap_pacf_qoe_ctmp")}; yl=function(K){this.value=K}; rap=function(K){if(!Kf(K.adLayoutMetadata))return!1;K=K.renderingContent;return g.P(K,d2)||g.P(K,buC)||g.P(K,cJs)||g.P(K,fq)||g.P(K,ZuR)?!0:!1}; VfF=function(K){jf.call(this,K);var W=this;this.events=new g.Te(K);g.k(this,this.events);this.events.S(K,"onSnackbarMessage",function(U){switch(U){case 1:W.api.getPlayerStateObject().isBuffering()&&W.api.Fx("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"}})}})}; uR$=function(K){return new Xq(function(W){g.GB(W,K)})}; kx=function(K,W){if(K)for(var U in K)Object.prototype.hasOwnProperty.call(K,U)&&W(K[U],U,K)}; shs=function(K,W){K=dtz(K.app.FK().Y);K=g.z(K);for(var U=K.next();!U.done;U=K.next()){U=U.value;var h=U.getAvailableAudioTracks(),m=null;h=g.z(h);for(var S=h.next();!S.done;S=h.next())if(S=S.value,S.getLanguageInfo().getId()===W){m=S;break}m&&U.La(m,!0)}}; YI=function(K){if(!isNaN(K.eV))return K.eV;var W=K.j,U;for(U in W){var h=W[U].index;if(h.isLoaded()&&!Wh(W[U].info.mimeType)){W=0;for(U=h.zR();U<=h.Rn();U++)W+=h.getDuration(U);W/=h.Iq();W=Math.round(W/.5)*.5;h.Iq()>10&&(K.eV=W);return W}if(K.isLive&&(h=W[U],h.GI))return h.GI}return NaN}; A8p=function(K){var W=K.X;K=K.j;return K===""?W:typeof K==="boolean"?K?W:"":Array.isArray(K)?K.length===0?W:W+"="+K.join():W+"="+(g.BX(["mtos","tos","p"],W)?K:encodeURIComponent(K))}; lis=function(K,W,U,h,m,S,f){this.bY=K;this.dk=W;this.zm=U;this.X=h;this.Qr=m;this.j=S;this.ZA=f}; $W=function(K){this.value=K}; nlz=function(K,W,U,h){var m=Sp(W.VH().clientMetadata,"metadata_type_ad_pod_skip_target");if(m&&m>0&&m0&&(K[W]=Math.floor(U*1E3))}; P3=function(K,W,U,h,m){h=h===void 0?!1:h;m=m===void 0?!1:m;NN.call(this,U);this.isLive=h;this.Y=!!m;this.levels=this.X(K,W);this.W=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Fvs=function(K,W){K.languages=g.GG(W,K.j,K);K.Wa(g.CB(W,K.j))}; RF=function(K,W,U){U&&K.X&&K.X(W.value)}; oEF=function(K,W,U){QnL(K.j,function(h){return h.Ua>=W&&h.W2<=U})}; hh=function(K,W){K.uX&&(K.uX.Tx=!0);K.update({seekTime:g.sp(W)});var U=K.G*K.scale;W=W>>7)];$1(K,f,U);G=yL[f];G!==0&&(m-=RN[f],o_(K,m,G))}}while(h96E3&&(new g.QC(K.reportStats,0,K)).start()}}; g.rt=function(K,W){this.width=K;this.height=W}; g.rs=function(K){return YKC(K,function(){return g.Il(AJF,K)>=0})}; ry=function(K){ao.call(this,K===void 0?"none":K);this.j=null;this.N=10;this.transitions=[{from:"none",to:"application_navigating",action:this.U},{from:"application_navigating",to:"none",action:this.G},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]}; w4$=function(K,W,U,h,m){if(!K.policy.G||!K.policy.X)if(m&&h){var S=h.Nk,f=m.Wg(S);S.event==="predictStart"&&(K.uX=W);K.rk("sdai",{onqevt:S.event,sq:W,mt:U,gab:f,cst:S.startSecs,cueid:K.policy.Td&&(f||S.event==="start")?S.identifier:void 0},!0);if(f)S.event!=="predictStart"?(S.event==="start"&&K.uX===W-1&&K.rk("sdai",{gabonstart:W}),Oqs(K,W,U,h,m)):K.policy.rS?Wb(K,3,"predict"):(W+=Math.max(Math.ceil(-S.j/5E3),1),S=Math.floor(U-S.j/1E3),K.policy.X?K.U=S:K.W=W,K.rk("sdai",{onpred:U,estsq:W,estmt:S.toFixed(3)}), FI(K.loader,S,S,W),K.jV=Date.now(),Wb(K,3,"predict"),m.HO(h.Nk));else if(K.X===1){var G;((G=K.N)==null?0:G.qf(U))?(FI(K.loader,U,U,W),Wb(K,4,"sk2head")):Wb(K,5,"nogab")}else S.event==="predictStart"?K.policy.X&&K.U>0?(U=Math.floor(U-S.j/1E3),K.U!==U&&K.rk("sdai",{updateSt:U,old:K.U}),K.U=U):K.W>0&&(U=W+Math.max(Math.ceil(-S.j/5E3),1),K.W!==U&&(K.rk("sdai",{updateSt:U,old:K.W}),K.W=U)):K.policy.rS&&K.X===3&&Oqs(K,W,U,h,m)}else K.rk("sdai",{nulldec:1,sq:W,mt:U.toFixed(3),evt:(h==null?void 0:(S=h.Nk)== null?void 0:S.event)||"none"})}; WW$=function(K){switch(K){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; At=function(K,W){return K+"_"+W.videoId+"_"+W.Ze+"_"+ +W.isAutonav+ +W.GZ}; wQ=function(K){this.value=K}; YV=function(K,W){g.p.call(this);this.Xx=K;this.j=W;this.eventCount=0;this.X=mWC()()}; py=function(K,W,U){var h=W*K.N.j*1E3;for(var m=-1,S=g.z(K.j),f=S.next();!f.done;f=S.next())f=f.value,h>f.startTime&&f.width>0&&m++;h=m<0?0:m;m=U.j-tl(K)*K.Le;return W*m+tl(K)*h+U.W}; nY2=function(K){K=K.api.getPlayerStateObject();K=K.isCued()||K.isError()?"none":K.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=K}; lpC=function(K,W,U,h){K.Y=U;U=W+"."+U;K.U.has(W)?K.U.get(W).push(U):K.U.set(W,[U]);K.j===1&&VNs(K.N,h,U).then(function(m){var S=g.z(m);m=S.next().value;S=S.next().value;S=g.z(SpC(S));S.next();S=S.next().value;fA(K,S,m,uV(K.N))}); K.j===0&&(K.b5.sW("transitiondetector",U),W=(h+K.iX.A7())*1E3,K.b5.lG([new g.g0(W,W+5E3,{id:U,namespace:"transitiondetector",priority:9})]))}; NrL=function(K,W){if(W>K.Rn())K.segments=[];else{var U=IV(K.segments,function(h){return h.kx>=W},K); U>0&&K.segments.splice(0,U)}}; GZ=function(K){this.iZ=qR(K)}; pF=function(K,W){g.WR(K.D.getRootNode(),W)}; m1=function(K,W,U){K.Ej()?K.z9():K.Kr(W,U)}; m5C=function(K,W,U){return Math.ceil(Math.max(Math.max(K.policy.il,K.policy.Qx*U),Math.min(Math.min(K.policy.Bp,31*U),Math.ceil(W*U))))||K.policy.il}; B8_=function(){for(var K;K=RAp.remove();){try{K.j.call(K.scope)}catch(W){Ar(W)}E$D(RlF,K)}Aup=!1}; i72=function(K,W,U,h){h=h===void 0?!1:h;var m=m===void 0?!0:m;return X_(void 0,function(){return function f(){var G,I,d,J,e,E,B,D,a,Q,u,O,N,A,Z,x,b,KR,fR;return L5(f,function(jp){switch(jp.j){case 1:g.bE(jp,2);G=v8.PJ();I=K&&Q5$;if(!I&&!W)return J={},(d=U)==null||d("wasmns",(J.p=K?"1":"0",J.a=W?"1":"0",J.s=Q5$?"1":"0",J)),jp.return(xUC(Error("wasm.wm.ns")));e=new a4C;if(!I){jp.O5(4);break}g.Bj(jp,5);E=l0;return Ev(jp,qj(yJp(e,K,h)),7);case 7:return B=E(jp.X),D=new kV(B,e,!1,m),v8.ZT("winit",G),(a= U)==null||a("wasmsw",{}),jp.return(D);case 5:if(Q=g.SV(jp),O={},(u=U)==null||u("wasmerrw",(O.e=""+Q,O)),!W)throw Error("wasm.wm.iw: "+Q);case 4:if(!W)throw Error("wasm.wm.xx");g.Bj(jp,8);N=l0;return Ev(jp,qj(W(e)),10);case 10:return A=N(jp.X),Z=new kV({exports:A},e,!0,m),v8.ZT("winitjs",G),(x=U)==null||x("wasmsa",{}),jp.return(Z);case 8:throw b=g.SV(jp),fR={},(KR=U)==null||KR("wasmerra",(fR.e=""+b,fR)),Error("wasm.wm.ia: "+b);case 2:g.VY(jp),g.vr(jp,0)}})}()})}; iS=function(K){this.j=K}; tdC=function(){return(Ph||oF)&&ZH?ZH.mobile:!Hw()&&(yV("iPod")||yV("iPhone")||yV("Android")||yV("IEMobile"))}; tip=function(K,W,U,h,m){K.U=W;K.N=U;K.G=h;K.Y=m}; yh=function(){g.y.call(this,{T:"div",Z:"ytp-chapter-hover-container",K:[{T:"div",Z:"ytp-progress-bar-padding"},{T:"div",Z:"ytp-progress-list",K:[{T:"div",Hp:["ytp-play-progress","ytp-swatch-background-color"]},{T:"div",Z:"ytp-progress-linear-live-buffer"},{T:"div",Z:"ytp-load-progress"},{T:"div",Z:"ytp-hover-progress"},{T:"div",Z:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.yH("ytp-progress-list");this.U=this.yH("ytp-progress-linear-live-buffer"); this.W=this.yH("ytp-ad-progress-list");this.G=this.yH("ytp-load-progress");this.Y=this.yH("ytp-play-progress");this.N=this.yH("ytp-hover-progress");this.j=this.yH("ytp-chapter-hover-container")}; MHs=function(K){switch(K){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; j6s=function(K){var W;if((W=K.AK)==null||!W.nK()){if(K.mediaElement)try{K.Wj=K.mediaElement.playVideo()}catch(h){eG(K,"err."+h)}if(K.Wj){var U=K.Wj;U.then(void 0,function(h){if(!(g.C(K.playerState,4)||g.C(K.playerState,256)||K.Wj!==U||h&&h.name==="AbortError"&&h.message&&h.message.includes("load"))){var m="promise";h&&h.name&&(m+=";m."+h.name);eG(K,m);K.jW=!0;K.videoData.oW=!0}})}}}; P$2=function(K){K.RW="rendering_start_requested";K.vY(-1)}; HQY=function(K,W,U,h,m){var S;if((S=K.playerOverlay)==null||!S.instreamSurveyAdRenderer)return function(){return[]}; if(!W$C(K))return function(){return new v("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:K})}; var f=K.playerOverlay.instreamSurveyAdRenderer,G=Q8(f);return G<=0?function(){return new v("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:f})}:function(I,d){var J=ukL(I,U,h,function(e){var E=e.slotId; e=d(e);var B=YW(f);E=bh(m.X.get(),"LAYOUT_TYPE_SURVEY",E);var D={layoutId:E,layoutType:"LAYOUT_TYPE_SURVEY",wk:"core"},a=new op(m.j,h),Q=new uq(m.j,E),u=new Nq(m.j,E),O=new GbF(m.j);return{layoutId:E,layoutType:"LAYOUT_TYPE_SURVEY",uZ:new Map,layoutExitNormalTriggers:[a,O],layoutExitSkipTriggers:[Q],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[u],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new eoz(f),new vM(W),new O8(G/1E3),new nQ(B)]),t7:e(D),adLayoutLoggingData:f.adLayoutLoggingData}}); I=pl_(K,U,J.slotId,h,m,I,d);return I instanceof v?I:[J].concat(g.z4(I))}}; Jq=function(K){g.p.call(this);this.N=K;this.j=new Map;this.X=new g.QC(this.sample,250,this);g.k(this,this.X);this.start()}; POR=function(){this.j=1;this.X=new zR}; AE=function(K,W,U,h){W in K.j||(U=new g.g0(U,h,{id:W,priority:2,namespace:"appad"}),K.api.lG([U],1),K.j[W]=U)}; v_=function(K,W){this.start=K;this.end=W;this.length=W-K+1}; DXC=function(K,W,U,h,m,S,f,G,I,d,J,e){return function(E,B){if(ym(J)&&M0(J))a:{var D=tkz(h,U,J);if(D instanceof v)B=D;else{for(var a=0,Q=[],u=[],O=[],N=[],A=[],Z=[],x=new $W({current:null}),b=new VG({current:null}),KR=!1,fR=[],jp=0,I2=[],hF=0;hF0?jp:-1;else if(w$= g.P(hF,d2)){hF=ScR(K,W,U,w$,S,a,G,b,jp);if(hF instanceof v){B=hF;break a}hF=hF(E);Q.push(hF.z5);u=[].concat(g.z4(hF.QC),g.z4(u));O=[].concat(g.z4(hF.GS),g.z4(O));hF.Jv&&(fR=[hF.Jv].concat(g.z4(fR)))}else if(w$=g.P(hF,Jo)){if(B===void 0){B=new v("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:w$});break a}hF=Gfp(K,W,U,S,w$,x,G,B,a,AC(J,"supports_multi_step_on_desktop"));if(hF instanceof v){B=hF;break a}hF=hF(E);Q.push(hF.z5);hF.Jv&&fR.push(hF.Jv); u=[].concat(g.z4(hF.QC),g.z4(u));O=[].concat(g.z4(hF.GS),g.z4(O));N=[].concat(g.z4(hF.hg),g.z4(N));A=[].concat(g.z4(hF.aq),g.z4(A));Z=[x].concat(g.z4(Z))}else if(hF=g.P(hF,ej)){hF=nV$(K,W,U,S,hF,x,G,a);if(hF instanceof v){B=hF;break a}hF=hF(E);Q.push(hF.z5);hF.Jv&&fR.push(hF.Jv);O=[].concat(g.z4(hF.GS),g.z4(O))}else{B=new v("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}B={sX:Q,layoutExitSkipTriggers:u,layoutExitUserInputSubmittedTriggers:N,layoutExitUserCancelledTriggers:A,layoutExitMuteTriggers:O, T3:Z,A9:fR}}}else a:if(a=tkz(h,U,J),a instanceof v)B=a;else{Q=0;u=[];O=[];N=[];A=[];Z=[];x=[];b=new $W({current:null});KR=new VG({current:null});fR=!1;I2=[];jp=-1;D=g.z(h);for(hF=D.next();!hF.done;hF=D.next())if(hF=hF.value,g.P(hF,Ic)){hF=Qe_(W,U,g.P(hF,Ic),G);if(hF instanceof v){B=hF;break a}hF=hF(E);u.push(hF.z5);O=[].concat(g.z4(hF.QC),g.z4(O));N=[].concat(g.z4(hF.GS),g.z4(N));hF.Jv&&(I2=[hF.Jv].concat(g.z4(I2)))}else if(g.P(hF,iY)){jp=zz(g.P(hF,iY),U,J);if(jp instanceof Rt){B=new v(jp);break a}hF= new O3(Q,a);hF=o7L(W,jp.layoutId,jp.To,U,n9(jp.playerVars,jp.O9,f,d,hF),jp.mu,S,hF,G(E),KR,I.get(jp.To.externalVideoId),void 0,e);Q++;u.push(hF.z5);O=[].concat(g.z4(hF.QC),g.z4(O));N=[].concat(g.z4(hF.GS),g.z4(N));fR||(x.push(KR),fR=!0);jp=(jp=jp.To.adPodSkipTarget)&&jp>0?jp:-1}else if(g.P(hF,d2)){hF=ScR(K,W,U,g.P(hF,d2),S,Q,G,KR,jp);if(hF instanceof v){B=hF;break a}hF=hF(E);u.push(hF.z5);O=[].concat(g.z4(hF.QC),g.z4(O));N=[].concat(g.z4(hF.GS),g.z4(N));hF.Jv&&(I2=[hF.Jv].concat(g.z4(I2)))}else if(g.P(hF, Jo)){if(B===void 0){B=new v("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.P(hF,Jo)});break a}hF=Gfp(K,W,U,S,g.P(hF,Jo),b,G,B,Q,AC(J,"supports_multi_step_on_desktop"));if(hF instanceof v){B=hF;break a}hF=hF(E);u.push(hF.z5);hF.Jv&&I2.push(hF.Jv);O=[].concat(g.z4(hF.QC),g.z4(O));N=[].concat(g.z4(hF.GS),g.z4(N));A=[].concat(g.z4(hF.hg),g.z4(A));Z=[].concat(g.z4(hF.aq),g.z4(Z));x=[b].concat(g.z4(x))}else if(g.P(hF,ej)){hF=nV$(K,W,U,S,g.P(hF,ej), b,G,Q);if(hF instanceof v){B=hF;break a}hF=hF(E);u.push(hF.z5);hF.Jv&&I2.push(hF.Jv);N=[].concat(g.z4(hF.GS),g.z4(N))}else{B=new v("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}B={sX:u,layoutExitSkipTriggers:O,layoutExitUserInputSubmittedTriggers:A,layoutExitUserCancelledTriggers:Z,layoutExitMuteTriggers:N,T3:x,A9:I2}}B instanceof v?E=B:(Z=E.slotId,a=B.sX,Q=B.layoutExitSkipTriggers,u=B.layoutExitMuteTriggers,O=B.layoutExitUserInputSubmittedTriggers,N=B.T3,E=G(E),A=m?m.layoutType: "LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Z=m?m.layoutId:bh(W.X.get(),A,Z),x={layoutId:Z,layoutType:A,wk:"core"},E={layout:{layoutId:Z,layoutType:A,uZ:new Map,layoutExitNormalTriggers:[new F0(W.j,Z)],layoutExitSkipTriggers:Q,layoutExitMuteTriggers:u,layoutExitUserInputSubmittedTriggers:O,layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new gU(a)].concat(g.z4(N))),t7:E(x)},A9:B.A9});return E}}; g.FK=function(K,W,U){return cZp(K,U||YL,!1,W)}; olY=function(K){var W=nm(),U=yq(bi);K&&!W.W&&(W.W=!0,U.Le=!0,U.Y&&U.fail("w",!0))}; ZvL=function(K,W,U){var h=K.api.getCurrentTime()*1E30&&!tc(K.videoData)||W||mg(K)||(K.seekTo(Infinity,{JS:"videoplayer_readying",seekSource:18}),K.isBackground()&&(K.hA=!0));W=K.S0;if(W.qoe){W=W.qoe;for(var U=W.provider.videoData, h=W.provider.C,m=g.z(h.oT),S=m.next();!S.done;S=m.next())hZ(W,S.value);if(W.provider.L("html5_enable_qoe_cat_list"))for(m=g.z(U.fd),S=m.next();!S.done;S=m.next())hZ(W,S.value);else U.oT&&hZ(W,W.provider.videoData.oT);U.mK()&&(m=U.j,tc(U)&&hZ(W,"manifestless"),m&&YI(m)&&hZ(W,"live-segment-"+YI(m).toFixed(1)));HT(U)?hZ(W,"sabr"):W.cD(nB(U));if(F8(U)||U.Sj())U.Sj()&&hZ(W,"ssa"),hZ(W,"lifa");cO(U)&&hZ(W,"cdm");W.provider.videoData.fn&&hZ(W,"mvtile");U.gatewayExperimentGroup&&(m=U.gatewayExperimentGroup, m==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?m="spkadtrt":m==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(m="spkadctrl"),hZ(W,m));h.Ms!=="yt"&&W.j.set("len",[U.lengthSeconds.toFixed(2)]);U.cotn&&!te(U)&&W.iq(!0);h.G9()&&(U=A1z())&&W.rk("cblt",{m:U});if(h.L("html5_log_screen_diagonal")){h=W.rk;var f;U=((f=window.H5vccScreen)==null?0:f.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;h.call(W,"cbltdiag",{v:U})}}K.publish("playbackready");t3("pl_c",K.aW.timerName)||(K.aW.tick("pl_c"),S8("pl_c",void 0, "video_to_ad"));t3("pbr",K.aW.timerName)||(K.aW.tick("pbr"),S8("pbr",void 0,"video_to_ad"))}}}; KCz=function(K,W){K.X[W]||(K.X[W]=new au);return K.X[W]}; Ft=function(K){this.value=K}; wx=function(K,W){var U=K.provider.C;g.UY(K.provider.C,g.mp(K.provider.videoData)).then(function(h){var m=K.provider.C.pageId,S=K.provider.C.sendVisitorIdHeader?K.provider.videoData.visitorData:void 0,f=K.provider.C.L("vss_pings_using_networkless")||K.provider.C.L("kevlar_woffle"),G=K.provider.C.L("allow_skip_networkless");h=as(W,U,m,S,h);wH(W,h,{token:K.provider.videoData.G,XW:K.provider.videoData.oC,mdxEnvironment:K.provider.videoData.mdxEnvironment},U,void 0,f&&!G,!1,!0)})}; g.Qj=function(K,W,U,h){K=h||K;return(W=W&&W!="*"?String(W).toUpperCase():"")||U?K.querySelectorAll(W+(U?"."+U:"")):K.getElementsByTagName("*")}; S1=function(K){this.value=K}; g.on=function(K,W){return n7p[K]=W}; bvC=function(K,W){var U=Date.now()/1E3,h=U-K.startTimeSecs,m=U-K.G,S=m>=K.policy.LS,f=!1;if(S){var G=0;!isNaN(W)&&W>K.U&&(G=W-K.U,K.U=W);G/m=K.policy.D5&&!K.N;if(!S&&!U&&u7R(K,W))return NaN;U&&(K.N=!0);a:{h=f;U=(0,g.AI)()/1E3-(K.OD.xv()||0)-K.Y.j-K.policy.Iu;S=K.X.startTime;U=S+U;if(h){if(isNaN(W)){E2(K,NaN,"n",W);S=NaN;break a}h=W-K.policy.bl;h200&&(A="manifest.net.badstatus",D===400&&(u=2)),fR.return(Promise.reject(new g.F3(A,N,u)));W.loading=!1;g.NZ(W,{raw_player_response:Q},!0); Z=Q;g.EZ(W.V())&&Z&&Z.trackingParams&&t1(Z.trackingParams);if(W.errorCode)return x={ec:W.errorCode,ed:W.errorDetail,es:W.hF||""},fR.return(Promise.reject(new g.F3("auth",x,2)));if(!W.loading&&!xe(W))return b=W.isAd()?"auth":"manifest.net.retryexhausted",KR=W.isAd()?2:1,fR.return(Promise.reject(new g.F3(b,{successButUnplayable:"1",hasMedia:g.Et(W)?"1":"0"},KR)));g.q1(fR)}})}; XlY=function(K,W){W=W===void 0?"":W;var U=BC(W)||void 0;if(!W||!U){var h;K.bZ({adcfg:(h=W)==null?void 0:h.length,dcfg:U==null?void 0:U.length})}return U}; V7p=function(K){if(K.oA()){var W=K.data["Stitched-Video-Id"]?K.data["Stitched-Video-Id"].split(",").slice(0,-1):[],U=rZL(K),h=[];if(K.data["Stitched-Video-Duration-Us"])for(var m=g.z(K.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),S=m.next();!S.done;S=m.next())h.push((Number(S.value)||0)/1E6);m=[];if(K.data["Stitched-Video-Start-Frame-Index"]){S=g.z(K.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var f=S.next();!f.done;f=S.next())m.push(Number(f.value)||0)}m=[]; if(K.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(S=g.z(K.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),f=S.next();!f.done;f=S.next())m.push((Number(f.value)||0)/1E6);K=new k8_(W,U,h,m,g.OvC(K),g.c4p(K))}else K=null;return K}; Gh_=function(K){g4C(function(){var W=F6L();K.X!=null&&(W.sdk=K.X);var U=yq(MR);U.j!=null&&(W.avms=U.j.getName());return W})}; br=function(K,W,U){U=U===void 0?!1:U;W&&Kc&&sEs(K.N,W.wA());if(!U){var h;(h=K.Y)==null||J2Y(h)}K.B3=W;(W=K.Y)!=null&&(W.B3=K.B3)}; IIe=function(K){return Svs(K).map(function(W){return{deviceInterface:vl$[GJ_[W.nW]]||0,deviceVersion:W.deviceVersion||"",isSleeping:W.Ap}})}; xy2=function(K,W,U,h,m){if(!W.Wp.LC()){if(!(m=U===0||!!W.X.length&&W.X[0]instanceof kA))a:{if(W.X.length&&(m=W.X[0],m instanceof EP&&m.Se&&m.Zc)){m=!0;break a}m=!1}m||K.policy.j||hM(W);return U}var S=yy(W,U);if(!isNaN(S))return S;if(K.loader.Gf(U*1E3))return U;m.Xa?K.policy.D3&&(K=w0(K.loader,W),$dC(W.N,U+K,!0)):(W.uu(),K.loader.Ul(!1,"sta_"+ +W.Wp.info.yR()));return h&&(K=n7(h.Nb(),U),!isNaN(K))?(gP(W,K+qEs,m),U):gP(W,U,m)}; Yi=function(K){this.Xx=K;K=Math.random();var W=this.Xx.get();W=g.jV(W.D.V().experiments,"html5_debug_data_log_probability");W=Number.isFinite(W)&&W>=0&&W<=1?W:0;this.j=K0&&(K.X=W,K.Y.style.height=K.X+"px")}; uue=function(K){var W=!!K.cz;g.lh(K.P3,W?"Copy debug info":"Get debug info");Ne(K.P3,!W);g.lh(K.Ll,W?"Copy embed code":"Get embed code");Ne(K.Ll,!W);g.lh(K.getVideoUrl,W?"Copy video URL":"Get video URL");Ne(K.getVideoUrl,!W);g.lh(K.ZF,W?"Copy video URL at current time":"Get video URL at current time");Ne(K.ZF,!W);K.Ll.setIcon(W?R6s():null);K.getVideoUrl.setIcon(W?Vp():null);K.ZF.setIcon(W?Vp():null)}; JPD=function(K){var W,U={},h=K.iX,m=K.Tm,S=K.dH,f=h.getVideoData(),G=tK(0),I=h.getVisibilityState(),d;if((d=K.P2)==null?0:d.TI)U.Xk=m.Xk;G&&(U.D5V=G,U.lastManualDirection=FZz(),G=MTs()||0,G>0&&(G=(m.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.AI)())-G,m.L("html5_use_date_now_for_local_storage")?G>0&&(U.timeSinceLastManualFormatSelectionMs=G):U.timeSinceLastManualFormatSelectionMs=G));G=m.L("html5_use_streamer_bandwidth_for_low_latency_live")&&f.isLowLatencyLiveStream;if(S.Ms&&!G){var J; G=m.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((J=K.P2)==null||!J.cY):!1;U.C$=v2(S,!G)}G=g.YJ.medium;d=Math.floor(G*16/9);(J=f.WN())||(f.j&&f.N&&f.N.videoInfos.length!==0?(J=f.N.videoInfos[0],J=!!J.video&&J.video.width0?{authorizedFormats:K.authorizedFormats}:{authorizedFormats:W};K.sabrLicenseConstraint&&(U.mY.sabrLicenseConstraint=K.sabrLicenseConstraint);if(m.L("html5_onesie_media_capabilities")||Xr(f))U.yN=3;m.L("html5_onesie_audio_only_playback")&& WE(f)&&(U.yN=1);var O;((O=K.P2)==null?0:O.bG)&&K.r7x&&(U.yN=U.yN===void 0?7:U.yN|4);O=f.DO?f.DO:g.Vo(f);m.L("html5_onesie_media_capabilities")&&(U.mediaCapabilities=g.h7C(f,O,m));var N;if((N=K.P2)==null?0:S6(N)){E=m.U;N=[];W=[];B=new Map;D=Array.from(E.j.values());D=g.z(D);for(a=D.next();!a.done;a=D.next())Q=a.value,Q.yR?W.push({audioCodec:Uo_[Q.lX],numChannels:Q.numChannels,spatialCapabilityBitmask:C$Y[Q.lX]}):(u=WgC[Q.lX],a={videoCodec:u,maxWidth:Q.maxWidth||0,maxHeight:Q.maxHeight||0,maxFramerate:Q.maxFramerate|| 0,is10BitSupported:Q.Hi||!1},Q.maxBitrateBps&&(a.maxBitrateBps=Q.maxBitrateBps,I=IX(Q.itag),J=void 0,((J=I)==null?0:J.video)&&e9(O,I,E)===!0&&(I=I.j0*8,I>a.maxBitrateBps&&(a.maxBitrateBps=I))),Q=u+"_"+Q.Hi,u=B.get(Q)||[],u.push(a),B.set(Q,u));N=AoR(N,B);E={};m.L("html5_ssff_denylist_opus_low")&&(E={itagDenylist:[249,350]});U.mediaCapabilities={videoFormatCapabilities:N,audioFormatCapabilities:W,hdrModeBitmask:3,perPlaybackAttributes:E}}var A;if((A=K.P2)==null?0:A.j){U.fl=O.fl;var Z;U.V6=(Z=K.P2)== null?void 0:Z.V6}m.rS&&(U.oZ=m.rS);U.ZY=K.hP;U.xj=K.xj;U.lc=K.lc;U.tf=K.tf;K.iN&&(U.kzK=(0,g.AI)()-K.iN);K.iT&&m.L("html5_report_prefetch_requests")&&(U.iT=K.iT);up||(U.CZx=!0);A=qY(S)*1E3;A>0&&(U.HP=A);var x;((x=K.P2)==null?0:x.Yz)&&K.nZ&&K.nZ0?b:S.interruptions[0]||0;var KR;if((KR=K.P2)==null?0:KR.q5)U.pj=K.pj;m.Pp&&(U.audioTrackId=m.Pp);gB(f)&&!U.audioTrackId&&(m.L("html5_fill_default_mosaic_audio_track_id")||(K=dLF(f),U.audioTrackId=K),f==null||f.rk("misstrkchg",{"default":U.audioTrackId}));if(f=$is())U.detailedNetworkType=lX$[f]||lX$.other;m.L("html5_enable_voice_boost")&&(U.bfX=m.ub);return U}; kI=function(K,W){K=gr(K,W,void 0,void 0,aLp);return K==null?lR():K}; xmC=function(K,W){K.j=W}; GNL=function(K,W){var U=K.Uz!==W;K.Uz=W;U&&II(K)}; g.jc=function(K,W,U,h,m,S){m=m===void 0?!1:m;S=S===void 0?{}:S;Object.assign(S,zy({cttAuthInfo:Is(W)||void 0},W));for(var f=g.z(h),G=f.next();!G.done;G=f.next()){G=G.value;var I=G.getAsJson();(g.Tb(I)||!I.trackingParams&&!I.veType)&&g.eI(Error("Child VE logged with no data"));if(g.hc("no_client_ve_attach_unless_shown")){var d=p8(G,W);if(I.veType&&!MY.has(d)&&!PO.has(d)&&!m){if(!g.hc("il_attach_cache_limit")||yI.size<1E3){yI.set(d,[K,W,U,G]);return}g.hc("il_attach_cache_limit")&&yI.size>1E3&&g.eI(new g.EB("IL Attach cache exceeded limit"))}G= p8(U,W);yI.has(G)?RQ(U,W):PO.set(G,!0)}}h=h.filter(function(J){J.csn!==W?(J.csn=W,J=!0):J=!1;return J}); U={csn:W,parentVe:U.getAsJson(),childVes:g.CB(h,function(J){return J.getAsJson()})}; W==="UNDEFINED_CSN"?dH("visualElementAttached",S,U):K?NY("visualElementAttached",U,K,S):g.N_("visualElementAttached",U,S)}; g.wv=function(K){g.p.call(this);this.X=K;this.j={}}; LvD=function(K,W){this.callback=K;this.slot=W}; Lq=function(K,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=K(this.triggerType)}; K4F=function(K,W){var U=Number(W==null?void 0:W.maxVisibleDurationMilliseconds);U&&(c8(K),K.uX=setTimeout(function(){if(K.j!==void 0&&(W==null?void 0:W.cueRangeId)===K.j){K.jV=!1;var h=Hn$(K,K.j);h&&K.api.Fx("innertubeCommand",h)}},U))}; e2s=function(){var K=window.location.protocol,W=m6.getEntriesByType("resource");W=g.yb(W,function(U){return U.name.indexOf(K+"//fonts.gstatic.com/s/")===0}); (W=Ab(W,function(U,h){return h.duration>U.duration?h:U},{duration:0}))&&W.startTime>0&&W.responseEnd>0&&(b2("wffs",SW(W.startTime)),b2("wffe",SW(W.responseEnd)))}; Joz=function(K){var W=!(K==null?0:K.Zx())&&(K==null?void 0:K.mK())&&sG(),U;if(!(U=K==null)){U=g.Vo(K);K=K.V().U;var h=IX("243");U=!(h&&e9(U,h,K,!0)===!0)}return{supportsVp9Encoding:!(U||W),supportXhr:up}}; W4p=function(K,W){return W==null?null:K.N.find(function(U){return U.VH().layoutId===W})||null}; AaC=function(K,W){K=new Uint8Array(K);W&&K.set(W);return K}; UAL=function(K,W){return W.getUserAudio51Preference()?g.yb(K,hd):K}; rw=function(K,W,U){return{Go:ml_(K.j,W*1E3,(U===void 0?0:U)*1E3),PL:W}}; g6p=function(K){K.j&&(K.j.dispose(),K.qy("ismp_d"))}; bM$=function(K){return g.LL(K.j,function(W){return W.info.video?W.info.video.projectionType==="MESH":!1})}; gK=function(K,W,U){eg.call(this,K);this.W=W;this.j="w";this.X="z";UP(this,U)}; c9D=function(K){var W={};g.hc("json_condensed_response")&&(W.prettyPrint="false");return K=gw(K,W)}; GL=function(K){return!K.oldState.isPlaying()&&K.state.isPlaying()}; V$C=function(K){var W;g.r(function(U){if(U.j==1)return g.hc("start_client_gcf")||g.hc("delete_gcf_config_db")?g.hc("start_client_gcf")?g.T(U,g.ip(),3):U.O5(2):U.return();U.j!=2&&((W=U.X)&&g.B3()&&!g.hc("delete_gcf_config_db")?(K.U=!0,TZC(K)):(QbY(K),NE$(K)));return g.hc("delete_gcf_config_db")?g.T(U,BLs(),0):U.O5(0)})}; Ii=function(K,W){W=K.split(W);for(var U={},h=0,m=W.length;hU.trigger.breakDurationMs)&&(U={slot:m,trigger:h})}return U}; t4D=function(){try{var K=yq(bi);K.l3("removeEventListener","ready",t4D);SnC(K)}catch(W){Tl(541,W)}}; ays=function(K){g.hI(K.j,function(W){W.W>1E5||++W.W})}; rUs=function(K,W,U,h,m){var S=(4-($2.length+U.length)%4)%4,f=new Uint8Array(4+S+$2.length+4+U.length),G=new DataView(f.buffer),I=0;G.setUint32(I,Math.random()*4294967295);I=I+4+S;f.set($2,I);I+=$2.length;G.setUint32(I,m);f.set(U,I+4);XQs(f,h);return K.RQ(W,function(d){return void globalThis.sessionStorage.removeItem(d)})?Xr2(W,g.o0(f))?"s":"t":"i"}; tOs=function(K){var W;return!!(K.L("html5_native_audio_track_switching")&&g.$c&&((W=K.videoData.X)==null?0:VM(W)))}; ZI=function(K){this.name=K}; EF=function(K,W){GHR[K]||(GHR[K]=!0,g.MU.C_(function(){e6();GHR[K]=!1},W))}; rGC=function(K,W){TBs(K.j,W,function(){return{rcx:0,aG:void 0,aX:-1,QZ:-1,G1:-1,hm:-1,X1:-1,v2:-1,dh:-1,Nw:-1,bT:-1,position:void 0,oS:void 0,HC:[]}}); K.j[W]=m1p(K)}; Iws=function(K,W,U,h,m,S){UH.call(this,K,W,U,h);this.zm=m;this.lZ=S;this.l5=!0;VT(this.lZ(),this);K=Sp(U.clientMetadata,"metadata_type_ad_placement_config");this.Ke=new d$(U.uZ,this.zm,K,U.layoutId)}; LCY=function(K){I8=K}; Kn=function(){this.X=this.MB=0;this.j=Array.from({length:bz.length}).fill(0)}; bw=function(K){var W=typeof K;return W!="object"?W:K?Array.isArray(K)?"array":W:"null"}; Dp=function(){fC.call(this,"Biscotti ID is missing from server")}; dAL=function(K,W){if(W.q4()||W.qs()){var U=K.loader,h=U.rk,m=W.state;K=K.G7();var S,f;if((W=(S=W.T5)==null?void 0:S.get(K))==null)W=void 0;else{S=0;K=W.YX();for(var G=0;G1&&g.eI(new g.EB("There are more than one engaged_view_urls.")),K.G2=W.engagedViewUrls[0]))}; i4p=function(K,W){var U=K.subarray(4);U=new Uint16Array(U.buffer,U.byteOffset,U.byteLength/2);U=String.fromCharCode.apply(null,U).match(/ek=([0-9a-f]+)/)[1];for(var h="",m=0;m0&&K.seekTo(0),K.EW(),K.load(),or$(K,null));delete K.N}; rK$=function(K){var W;return(K==null?void 0:(W=K.adSlotMetadata)==null?void 0:W.slotType)==="SLOT_TYPE_IN_PLAYER"}; dgY=function(K){function W(){return K.charCodeAt(h++)} var U=K.length,h=0;do{var m=FJY(W);if(m===Infinity)break;var S=m>>3;switch(m&7){case 0:m=FJY(W);if(S===2)return m;break;case 1:if(S===2)return;h+=8;break;case 2:m=FJY(W);if(S===2)return K.substr(h,m);h+=m;break;case 5:if(S===2)return;h+=4;break;default:return}}while(hU&&(W=W.subarray(0,U));return W}; B7e=function(K){return K.D.V().experiments.Rk("enable_progres_commands_lr_feeds")}; TG=function(K,W,U,h,m,S,f,G,I,d,J,e){h=h===void 0?"":h;this.type=K;this.Wp=W;this.range=U;this.source=h;this.Uj=J;this.clipId=e===void 0?"":e;this.J=[];this.G="";this.kx=-1;this.jV=0;this.G=h;this.kx=m>=0?m:-1;this.startTime=S||0;this.duration=f||0;this.j=G||0;this.X=I>=0?I:this.range?this.range.length:NaN;this.N=this.range?this.j+this.X===this.range.length:d===void 0?!!this.X:d;this.range?(this.W=this.startTime+this.duration*this.j/this.range.length,this.Y=this.duration*this.X/this.range.length, this.U=this.W+this.Y):t62(this)}; DAz=function(K,W){var U=W4p(K,W);U||UF("Expected subLRA found by layout ID",K.slot,K.layout,{layoutId:W});K.j={gX:U};U?U.startRendering(U.VH()):W===K.X&&UF("Failed to find rendering adapter for survey media layout",K.slot,K.layout,{surveyMediaLayoutId:W})}; SC=function(K,W){W=(W=W===void 0?0:W)?Math.round(K.timestampOffset*W)/W:K.timestampOffset;K.Wp.W&&W&&(W+=K.Wp.W.j);return W+K.getDuration()}; z$=function(K){return globalThis.TextEncoder?(new TextEncoder).encode(K):g.Zv(K)}; D4F=function(){sy==null&&(sy=new cq);return sy}; E7=function(K,W,U){var h=g.yc(K,{playerType:U});h&&(W=h.L5(W),U&&K.getPresentingPlayerType()!==U||Gw(K,"cuerangesremoved",W))}; t9=function(K,W,U,h,m,S,f,G){this.W=K;this.Y=W;this.N=U;this.G=h;this.j=m;this.U=S;this.X=f;this.J=G}; HKF=function(K){var W=K.vp||K.Bp;return W?K.snapshot.delay+Math.min(K.q9,(K.J-K.jV)/1E3)+W:K.q5}; bi=function(){Qk.call(this,Fl,2,"mraid");this.eV=0;this.uX=this.Ns=!1;this.Y=null;this.X=GlR(this.N);this.W.j=new HP(0,0,0,0);this.Le=!1}; LC=function(K){var W=K;if(mAp(W)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(W))throw Error(String(W));}else if(r$s(W)&&!Number.isSafeInteger(W))throw Error(String(W));return VR?BigInt(K):K=T7e(K)?K?"1":"0":mAp(K)?K.trim()||"0":String(K)}; awp=function(K){nm();switch(RJ(K)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; w0e=function(K){var W,U=(W=K.D.getVideoData())==null?void 0:W.eV;if(U)for(K=K.W.JK,U=g.z(U),W=U.next();!W.done;W=U.next())if(W=K[W.value]){var h=void 0,m=void 0,S=void 0;if(((h=W.onTap)==null?void 0:(m=h.innertubeCommand)==null?void 0:(S=m.changeEngagementPanelVisibilityAction)==null?void 0:S.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return W}}; n7=function(K,W){if(!K)return NaN;W=gH(K,W);return W>=0?K.end(W):NaN}; Q7C=function(K,W){var U=[];if(!W.length)return U;W.sort(g.M1e);W=g.z(W);for(var h=W.next();!h.done;h=W.next())h=h.value,K.X.splice(K.X.indexOf(h),1),U.push([2,h]);return U}; WQ=function(K){var W=this;K=K===void 0?[]:K;this.j=[];this.N=this.X=0;this.W=void 0;this.totalLength=0;K.forEach(function(U){W.append(U)})}; XZ=function(K,W,U){return new IH(K,W,U)}; y_=function(K,W,U,h,m){Ci(K);var S=K.iZ;gd(S,S[MX]|0,W,(h==="0"?Number(U)===0:U===h)?void 0:U,m);return K}; kM=function(){this.j=new WeakMap}; ZjL=function(K){if(!K.X){K.X=!0;var W=K.iX.getPlayerState();W=W.isPaused()||W.isSuspended();K.iX.rX();W&&!te(K.videoData)||K.iX.publish("signatureexpired")}}; $AR=function(K){K.suggestedActions={};K.D.L5("suggested_action_button_visible")}; g.l1=function(K){return Cr(K)==="WEB_REMIX"}; g.$vz=function(){return g.CB(FX(16),function(K){return(K&15).toString(16)}).join("")}; MZ=function(K){return K.j&&K.NN&&K.playbackStartPolicy}; Y_$=function(K){K.updateValue("icon",ZR());if(K.api.V().X)K.tooltip.KG(K.element,"Link copied to clipboard");else{K.updateValue("title-attr","Link copied to clipboard");K.updateValue("tooltip-title","Link copied to clipboard");K.tooltip.T8();K.tooltip.KG(K.element);var W=K.listen("mouseleave",function(){K.GK(W);K.SV();K.tooltip.u0()})}}; qyC=function(K){var W={},U,h=(U=K.jM)==null?void 0:U.Zg/1E3;h!=null&&(W.SURVEY_ELAPSED_MS=h0(function(){return Math.round(h*1E3).toString()})); W.SURVEY_LOCAL_TIME_EPOCH_S=h0(function(){return Math.round(Date.now()/1E3).toString()}); return W}; WV$=function(){var K=XMLHttpRequest.prototype.fetch;return!!K&&K.length===3}; z8=function(K){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};K&&(W.interpreterHash=K);return W}; dy=function(K){var W,U,h;return((W=K.D.getVideoData(1).getPlayerResponse())==null?void 0:(U=W.playerConfig)==null?void 0:(h=U.daiConfig)==null?void 0:h.enableServerStitchedDai)||!1}; g.gRe=function(K,W,U){K.remove(W);U.length>0&&(K.N=null,K.j.set(Hy(K,W),g.k4(U)),K.X=K.X+U.length)}; v7=function(K,W,U){return YB(K)?new Ik(Math.max(W,K.Uz.startTimeMs/1E3),Math.min(U,K.Uz.endTimeMs/1E3)):new Ik(W,U)}; oy=function(K){g.p.call(this);this.provider=K;this.G="paused";this.U=NaN;this.Y=[10,10,10,40];this.jV=this.J=0;this.uX=this.DA=this.Ns=this.Ms=this.N=!1;this.X=this.W=NaN;this.logger=new g.io("vss");this.j=new Srp(K)}; KV=function(K,W,U,h){var m=this;this.W=K;this.cpn=W;this.iX=U;this.j=h;this.X=new Map;this.U=new Map;this.jV=this.J=NaN;this.G=!1;this.Y=this.aQ="";this.isSeeking=!1;this.Ms=0;this.N=new jGs(U);this.b5=U.b5;this.iX.subscribe("statechange",this.uX,this);this.iX.subscribe("SEEK_TO",function(){m.k9()}); this.iX.subscribe("SEEK_COMPLETE",function(){caR(m)}); this.aQ=this.Y=this.cpn}; WbD=function(K){if(K!==void 0&&K.trim()!==""&&(K=Math.trunc(Number(K.trim())),!(isNaN(K)||K<0)))return K}; YGC=function(K,W,U,h,m,S){var f=x$;U=U===void 0?{}:U;h=h===void 0?!1:h;m=m===void 0?200:m;S=S===void 0?!1:S;var G=new Map,I=new Map,d={isJspb:h,cttAuthInfo:void 0,tier:m},J={isJspb:h,cttAuthInfo:void 0};if(h){W=g.z(Object.keys($Z));for(m=W.next();!m.done;m=W.next())m=m.value,I=g.hc("enable_web_tiered_gel")?Lz().smartExtractMatchingEntries({keys:[d,J],sizeLimit:1E3}):Lz().extractMatchingEntries({isJspb:!0,cttAuthInfo:m}),I.length>0&&G.set(m,I),(g.hc("web_fp_via_jspb_and_json")&&U.writeThenSend||!g.hc("web_fp_via_jspb_and_json"))&& delete $Z[m];j8C(G,f,K,U,!1,S)}else{G=g.z(Object.keys($Z));for(d=G.next();!d.done;d=G.next())d=d.value,J=g.hc("enable_web_tiered_gel")?Lz().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:m},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):Lz().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),J.length>0&&I.set(d,J),(g.hc("web_fp_via_jspb_and_json")&&U.writeThenSend||!g.hc("web_fp_via_jspb_and_json"))&&delete $Z[d];OgC(I,f,K,W,U,!1,S)}}; IQz=function(K){K=Number(K.driftRecoveryMs);return isNaN(K)||K<=0?null:K}; g.Wr=function(K,W,U,h,m,S){g.p.call(this);this.element=K;this.state=null;U||K.hide();this.X=W;this.N=h===void 0?W:h;this.j=S;this.onHidden=m;this.delay=new g.QC(this.jN,0,this);g.k(this,this.delay)}; ei=function(K){K=Wis(K);return K===null?!1:K[0]==="com"&&K[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; rFR=function(K,W){var U=W.j.getValue();U=new g.QC(function(){T$e(K,W)},U); g.k(K,U);U.start();g.ir(W.j);VC(K,{rtyrq:1})}; OKR=function(K){switch(K){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; g.R3=function(K){g.wP.call(this,K);this.chrome=null;this.load()}; c$R=function(K,W){W.bounds=K.getBoundingClientRect();for(var U=g.z(["display","opacity","visibility","zIndex"]),h=U.next();!h.done;h=U.next())h=h.value,W[h]=Gp(K,h);W.hidden=!!K.hidden}; nOD=function(K,W){if(!RUF(K,W)&&!K.X)return!1;W.details.sts="20376";if(pbD(K))return CR(W.severity)&&(W=Object.assign({e:W.errorCode},W.details),W=new g.F3("qoe.restart",W)),K.aR(W.errorCode,W.details),ZjL(K),!0;(0,g.AI)()-K.Tm.pC>6048E5&&aX2(K,"signature");return!1}; LWC=function(K){var W,U,h,m,S,f,G,I,d,J,e,E,B,D,a;return g.r(function(Q){switch(Q.j){case 1:W=void 0;K.W++;U=new g.JW;K.Mb instanceof Ry&&K.Mb.W.push(U.promise);if(!K.FB){Q.O5(2);break}h=new g.JW;setTimeout(function(){return void h.resolve()}); return g.T(Q,h.promise,2);case 2:return m=K.logger.share(),g.Bj(Q,4,5),K.state=5,S={},f=[],g.T(Q,Xx(K.Mb.snapshot({vM:S,wT:f}),K.QF.MzK,function(){return Promise.reject(new cP(15,"MDA:Timeout"))}),7); case 7:G=Q.X;if(K.qs())throw new cP(K.j?20:32,"MDA:Disposed");I=f[0];K.state=6;return g.T(Q,Xx(g8p(K.Lj,m,G),K.QF.mz,function(){return Promise.reject(new cP(10,"BWB:Timeout"))}),8); case 8:d=Q.X;if(K.qs())throw new cP(K.j?20:32,"BWB:Disposed");K.state=7;W=OK(m,function(){var O=U$p(K,d,U,I);O.N.promise.then(function(){return void K.U()}); return O},"i"); case 5:g.VY(Q);m.dispose();g.vr(Q,6);break;case 4:J=g.SV(Q);(e=W)==null||e.dispose();if(!K.X){E=Qdp(K,J);U.resolve();var u;if(u=K.Mb instanceof Ry&&K.W<2)a:if(J instanceof cP)u=J.code!==32&&J.code!==20&&J.code!==10;else{if(J instanceof WN)switch(J.code){case 2:case 13:case 14:case 4:break;default:u=!1;break a}u=!0}if(u)return B=(1+Math.random()*.25)*(K.j?6E4:1E3),D=setTimeout(function(){return void K.U()},B),K.addOnDisposeCallback(function(){return void clearTimeout(D)}),Q.return(); K.X=E}m.Ro(K.j?13:14);K.N.reject(K.X);return Q.return();case 6:K.state=8,K.W=0,(a=K.j)==null||a.dispose(),K.j=W,K.N.resolve(),g.q1(Q)}})}; dl=function(K,W,U,h,m){g.Ck.call(this);this.X=K;this.U=W;this.G=U;this.W=h;this.Y=Array.isArray(m)?m:[m]}; fqY=function(K){var W=[];if(K.j.reason==="m"||K.j.reason==="s")return W;if(MXp(K.Gm)){for(var U=Math.max(0,K.J-2);U=240&&!h.isAd()&&h.XI&&!m&&!h.Mk&&!K.D.isEmbedsShortsMode()&&!S}; kH$=function(K){K.X&&K.X.send();if(K.qoe){var W=K.qoe;if(W.W){W.RR==="PL"&&(W.RR="N");var U=g.gh(W.provider);g.Fa(W,U,"vps",[W.RR]);W.Y||(W.N>=0&&W.j.set("user_intent",[W.N.toString()]),W.Y=!0);W.provider.C.G9()&&W.rk("finalized",{});W.eV=!0;W.reportStats(U)}}if(K.provider.videoData.enableServerStitchedDai)for(W=g.z(K.N.values()),U=W.next();!U.done;U=W.next())ue2(U.value);else K.j&&ue2(K.j);K.dispose()}; P2=function(K,W,U,h,m,S,f,G,I,d){this.callback=K;this.slot=W;this.layout=U;this.ZA=h;this.TK=m;this.K5=S;this.dk=f;this.Ke=G;this.zm=I;this.U=d;this.driftRecoveryMs=Sp(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.W=Sp(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; HqL=function(K,W,U){var h={},m;for(m in W.j)if(W.j.hasOwnProperty(m)){var S=W.j[m].info;if(K.Y&&S.video&&S.video.qualityOrdinal=0)return W;W=-h-1;return W>=K.j.length||K.j[W]>U?null:K.j[W]}; PL=function(K){if(K.G){var W=K.api.getProgressState(),U=K.api.getVideoData();if(!(U&&U.enableServerStitchedDai&&U.qJ)||isFinite(W.current)){var h;if(((h=K.api.getVideoData())==null?0:ZM(h))&&W.airingStart&&W.airingEnd)var m=v7(K,W.airingStart,W.airingEnd);else if(K.api.getPresentingPlayerType()===2){var S,f,G;m=(U=(m=K.api.getVideoData())==null?void 0:(S=m.getPlayerResponse())==null?void 0:(f=S.playerConfig)==null?void 0:(G=f.webPlayerConfig)==null?void 0:G.skippableAdProgressBarDuration)?v7(K,W.seekableStart, U/1E3):v7(K,W.seekableStart,W.seekableEnd)}else m=v7(K,W.seekableStart,W.seekableEnd);S=dT(m,W.loaded,0);W=dT(m,W.current,0);f=K.N.X!==m.X||K.N.j!==m.j;K.N=m;bf(K,W,S);f&&qKY(K);PfC(K);W=48;m=K.api.V();S=g.jV(K.api.V().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");S=K.api.L("delhi_modern_web_player_compact_controls")||S>0&&K.api.getPlayerSize().width<=S;K.api.L("delhi_modern_web_player")?W=K.api.getPlayerSize().width<=528?S?56:64:K.U?S?72:96:S?56:72:K.U?W=54:g.HB(m)&& !m.X&&(W=40);K.Ns=W}}}; Tt=function(K){this.j=K}; Om=function(){Hv.apply(this,arguments)}; ZJ_=function(K,W,U){W==2?K.N.call(K.context,U):K.X&&K.X.call(K.context,U)}; Qw_=function(K){switch(K){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; g.Vlp=function(K,W,U){SqD(K,W,U===void 0?null:U)}; DE=function(K,W,U){U=U===void 0?!1:U;K.RC=void 0;K.j=W;g.k(K,W);W.DE=K.DE;W.L_=K.L_;W.PS=K.PS;W.X5=K.X5;W.Af=K.Af;K.Q4&&(W.jV=new uX(K.Q4));(K.kU()||g.G7(K))&&K.XY.push("webgl");K.j.isLive||(K.isLivePlayback=!1);var h=W.sourceUrl.split("/");if(K.JK?h.indexOf("manifest_duration")!==-1:h.indexOf("manifest_duration")!=-1)K.l0=Number(h[h.indexOf("manifest_duration")+1]);if(W.X||W.isManifestless)W.subscribe("clienttemp",K.rk,K),U?W.subscribe("refresh",K.qQ,K):W.subscribe("cuepointsadded",K.Dy,K);Vc(W)? K.N2=!0:kg=void 0;K.Cf&&(W.W=K.Cf,W.isLive=!0,K.isLivePlayback=!0);W.isPremiere=K.isPremiere;W.isLiveHeadPlayable=K.isLiveHeadPlayable}; V4=function(K,W,U,h){g.GP.call(this);var m=this;this.uG=K;this.start=W;this.end=U;this.isActive=h;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Oc={error:function(){!m.qs()&&m.isActive&&m.publish("error",m)}, updateend:function(){!m.qs()&&m.isActive&&m.publish("updateend",m)}}; this.uG.EX(this.Oc);this.ze=this.isActive}; xe$=function(K,W){var U={};if(W||!K||!K.kind)return U;if(K.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||K.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!K.adTimeOffset||!K.adTimeOffset.offsetStartMilliseconds)return g.wG(Error("malformed AdPlacementConfig")),U;U.MIDROLL_POS=h0(z3(Math.round(eh(K.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else U.MIDROLL_POS=h0(z3("0"));return U}; i4=function(K){K.J=!1;K.Y.isActive()&&Ei(K);K.Y.stop();K.EO(!1)}; iKp=function(K,W,U){K=K.iZ;return XW(GA(K),K,void 0,W)===U?U:-1}; DO_=function(K){var W=4093624447,U;for(U=0;U<=31;U++,W>>>=1)if(W&1&&K.S$[U*2]!==0)return 0;if(K.S$[18]!==0||K.S$[20]!==0||K.S$[26]!==0)return 1;for(U=32;U<256;U++)if(K.S$[U*2]!==0)return 1;return 0}; pl_=function(K,W,U,h,m,S,f){if(!BpR(K))return new v("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:K});var G=K.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[urC(S,W,U,h,function(I){var d=I.slotId;I=f(I);d=bh(m.X.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",d);var J={layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wk:"core"},e=new op(m.j,h);return{layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",uZ:new Map,layoutExitNormalTriggers:[e], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new $S2(G)]),t7:I(J)}})]}; ZIs=function(K){this.value=K}; t62=function(K){K.W=K.startTime;K.Y=K.duration;K.U=K.W+K.Y}; g.S$=function(K){g.p.call(this);this.C=K;this.videoData=this.playerState=null}; X$C=function(K){var W=new g.GW({T:"div",Hp:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{T:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{T:"div",Z:"ytp-ad-overlay-close-container",K:[{T:"button",Z:"ytp-ad-overlay-close-button",K:[wM(xZC)]}]},{T:"div",Z:"ytp-ad-overlay-text-image",K:[{T:"img",B:{src:"{{imageUrl}}"}}]},{T:"div",Z:"ytp-ad-overlay-title",bX:"{{title}}"},{T:"div",Z:"ytp-ad-overlay-desc",bX:"{{description}}"},{T:"div",Hp:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], bX:"{{displayUrl}}"}]});K.S(W.yH("ytp-ad-overlay-title"),"click",function(U){Lu(K,W.element,U)}); K.S(W.yH("ytp-ad-overlay-link"),"click",function(U){Lu(K,W.element,U)}); K.S(W.yH("ytp-ad-overlay-close-container"),"click",K.yb);K.S(W.yH("ytp-ad-overlay-text-image"),"click",K.uhx);W.hide();return W}; nFp=function(){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)}; N4=function(K){if(K.T7){var W=K.Dg;var U=K.T7;K=K.eQ();var h=nZL(W);if(ru(h)){if(h=W.gK(U).compose(h1s(W,U)).compose(yqz(W,U)).compose(h2(W,U.videoData)).compose(j1(W,U.videoData,U)).compose(bN(W,U)).compose(i2L(W,U)),ru(K)||W.L("html5_apply_pbr_cap_for_drm"))h=h.compose(v5_(W,U))}else W.L("html5_perf_cap_override_sticky")&&(h=h.compose(bN(W,U))),W.L("html5_ustreamer_cap_override_sticky")&&(h=h.compose(v5_(W,U)));h=h.compose(i2L(W,U));W=U.videoData.ul.compose(h).compose(U.videoData.Nc).compose(K)}else W= BE;return W}; zpF=function(K){jD(K,"impression")&&K.jz("clickthrough")}; D9=function(K,W){this.type=K||"";this.id=W||""}; Z2=function(K){this.value=K}; A$_=function(K,W){return W.map(function(U){var h,m;if((U=(h=g.P(U,N7p))==null?void 0:(m=h.thumbnail)==null?void 0:m.thumbnails)&&U.length!==0)return U[0].url}).filter(function(U){return U!==void 0}).map(function(U){U=new g.y({T:"img", Z:"ytp-suggested-action-product-thumbnail",B:{alt:"",src:U}});g.k(K,U);return U})}; Xhp=function(K){jf.call(this,K);var W=this;K.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new fO(W.api),g.k(W,W.menuItem))}); K.addEventListener("videodatachange",function(U,h){U=W.api.getPresentingPlayerType()===2;var m;(m=W.menuItem)==null||m.J7(!h.isLivePlayback&&!U)})}; aX=function(K,W){return new g.va("https://"+W+K.C.Ez.baseUrl)}; Dcz=function(){return{Xd:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],oR:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; g.xV=function(K,W){g.kQ(function(){g.tD(W,function(U){KBD(void 0,K,U)})})()}; rHF=function(K){try{var W=(new g.va(K,!0)).get("n");if(W){var U=K.match(/\/n\/([^/]+)/);if(U&&U[1]&&U[1]!==W)return K.replace("/n/"+U[1],"/n/"+W)}}catch(h){g.eI(h)}return K}; Rpp=function(K){g.Pa(K.T2);y5(K)||(K.T2=g.KQ(function(){return y5(K)},100))}; lz=function(K,W,U,h,m,S,f,G){h=h||Sp(U.clientMetadata,S);K=CF(K);var I=rr(function(){m.Fo(W,U)}); G.push(f(h,K,U.layoutId,{adsClientData:U.t7},function(){I()}))}; M4p=function(K,W){W=g.z(W);for(var U=W.next();!U.done;U=W.next())if(U=U.value.playerAnnotationsUrlsRenderer){U.adsOnly&&(K.SN=!0);if(W=U.loadPolicy)K.annotationsLoadPolicy=y$C[W];if(W=U.invideoUrl)K.r4=wo(W);K.Vp=!0;break}}; b2=function(K,W,U){if(!g.hc("web_csi_action_sampling_enabled")||!bs(U).actionDisabled){var h=P8(U),m;if(m=g.hc("web_csi_debug_sample_enabled")&&h){(pl().resolve(new oE(sF))==null?0:Zf())&&!PAD&&(PAD=!0,b2("gcfl",(0,g.AI)(),U));var S,f,G;m=(pl().resolve(new oE(sF))==null?void 0:(S=Zf())==null?void 0:(f=S.loggingHotConfig)==null?void 0:(G=f.csiConfig)==null?void 0:G.debugSampleWeight)||0;if(S=m!==0)b:{S=yYz();if(S.length>0)for(f=0;f=0?W[m]:null){S=h;var G=m;f=U.startTimeMs+U.durationMs;var I=S.startTimeMs+S.durationMs;if(S.startTimeMs- f>K.X)S=!1;else if(m4s(K,U.formatId,S.formatId))U.durationMs=Math.max(f,I)-U.startTimeMs,U.QR=Math.max(U.QR,S.QR),S=!0;else if(Math.abs(U.startTimeMs-S.startTimeMs)<=K.X)if(U.durationMs>S.durationMs+K.X){var d=U.formatId,J=U.q$;G=U.QR;U.formatId=S.formatId;U.durationMs=S.durationMs;U.q$=S.q$;U.QR=S.QR;S.formatId=d;S.startTimeMs=I;S.durationMs=f-I;S.q$=J;S.QR=G;S=!1}else U.formatId=S.formatId,S=!0;else f>S.startTimeMs&&(f>I&&(W.splice(G+1,0,{formatId:U.formatId,startTimeMs:I,durationMs:f-I,q$:S.QR+ 1,QR:U.QR}),K.logger&&K.logger({splitOldStart:(d=U.startTimeMs)==null?void 0:d.toFixed(3),splitOldEnd:f==null?void 0:f.toFixed(3),splitNewStart:(J=S.startTimeMs)==null?void 0:J.toFixed(3),splitNewEnd:I==null?void 0:I.toFixed(3)})),U.durationMs=S.startTimeMs-U.startTimeMs,U.QR=S.q$-1),S=!1}S?h=U:(m+=1,W.splice(m,0,h));d=0;for(J=m+1;J=I+U.X?U=!0:G+U.XK.G)return"max"+K.G;if(K.Ik&&W.lX==="h"&&W.video&&W.video.qualityOrdinal>1080)return"blkhigh264";if(W.lX==="(h"&&!U.Y)return"enchdr";if((h===void 0?0:h)&&U1(W)&&!K.tK)return"blk51live";if((W.lX==="MAC3"||W.lX==="mac3")&&!K.W)return"blkac3";if((W.lX==="MEAC3"||W.lX==="meac3")&&!K.U)return"blkeac3";if(W.lX==="M"||W.lX==="m")return"blkaac51"; if((W.lX==="so"||W.lX==="sa")&&!K.Ms)return"blkamb";if(!K.q5&&$VD(W)&&(!U.U||W.lX!=="1e"))return"cbc";if(!U.U&&$VD(W)&&W.lX==="1e")return"cbcav1";if((W.lX==="i"||W.lX==="I")&&!K.Cg)return"blkiamf";var S;if(K.DO&&((S=W.audio)==null?void 0:S.X)===!0)return"blkvbcabr";var f,G;if(K.JK&&(W.lX==="1"||W.lX==="1h"||U.U&&W.lX==="1e")&&((f=W.video)==null?0:f.qualityOrdinal)&&((G=W.video)==null?void 0:G.qualityOrdinal)>K.JK)return"av1cap";h=U.W.get(W.lX);if(!K.W3&&h&&h.P5>0)return m.add(W.lX),"byerr";var I; if((I=W.video)==null?0:I.fps>32){if(!U.DA&&!T_(U,a$.FRAMERATE))return"capHfr";if(K.Pp&&W.video.qualityOrdinal>=4320)return"blk8khfr";if(TX(W)&&K.QX&&W.zL&&W.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(K.j0&&W.j0>K.j0)return"ratecap";if(K.Ns>0&&W.ZE()&&W.video.height>K.Ns)return"mvhcap";K=UEY(U,W);return K!==!0?K:!0}; clC=function(K,W){if(!K||!W)return!1;for(var U=0;K!==null&&U++<100;){if(K===W)return!0;try{if(K=K.parentElement||K){var h=ty(K),m=h&&f_(h),S=m&&m.frameElement;S&&(K=S)}}catch(f){break}}return!1}; p0e=function(K,W){K=g.Ug(K.components,W.id,null);K==null&&g.eI(Error("Component not found for element id: "+W.id));return K||null}; oOs=function(K){switch(K){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}}; D2=function(K){K.j=null;K.uX=-1;K.J=0;K.U=null;K.DA=NaN;K.jV=0;K.Ms=null}; ZKs=function(K,W){if(K.D.V().eV){var U=g.U4(K.D,"Mute","m"),h=g.U4(K.D,"Unmute","m");U=W?h:U;K.D.V().L("player_tooltip_data_title_killswitch")?K.updateValue("title",U):K.update({"tooltip-title":U,"aria-label":U});K.update({"data-title-no-tooltip":W?"Unmute":"Mute"});K.tooltip.T8()}}; g.EZC=function(K){this.data=K;this.j=0;this.W=!1;this.N=0;this.error=!1;this.register=this.X=0;if(il.length===0){il.length=288;il.fill(8);for(K=144;K<280;K++)il[K]=K<=255?9:7;zf.length=32;zf.fill(5);Gf.length=286;Gf.fill(0);for(K=261;K<285;K++)Gf[K]=Math.floor((K-261)/4);tX[257]=3;for(K=258;K<285;K++){var W=tX[K-1];W+=1<G){D.O5(2);break}E=d+W;B=e-E;B30?K.limitedPlaybackDurationInSeconds=30:U<30&&U>10&&(K.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":K.limitedPlaybackDurationInSeconds=U*.2}}; mY=function(K,W,U){this.Hr=W;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=U||K(this.triggerType)}; CF=function(K){var W=K.zm.get();return Va(W,K.Y)}; Xn=function(K,W,U){K=K.loader.A7()||0;return xs(W,(U+K)*1E3)/1E3+U}; RS2=function(K,W){W=W===void 0?!1:W;if(!K.mediaElement||K.mediaElement.yn()===0||K.mediaElement.hasError())return!1;var U=K.mediaElement.getCurrentTime()>0;return K.videoData.N&&K.videoData.N.j||K.videoData.isLivePlayback||!K.videoData.nC()?K.X>=0&&!W&&(W=K.mediaElement.P9(),W.length||!U)?iO(W,K.X-K.timestampOffset):U:U}; g.IN=function(K,W){K=g.z(K.Bp);for(var U=K.next();!U.done;U=K.next())if(U=U.value,W>=U.start&&W<=U.end)return!0;return!1}; Uo=function(K,W,U){U=U===void 0?null:U;var h=h===void 0?0:h;return new hl(g.jV(K.C.experiments,W)||h,U?K.C.L(U):!1)}; lF=function(K){var W=K.X,U=K.j,h=W[U++],m=h&127;if(h&128&&(h=W[U++],m|=(h&127)<<7,h&128&&(h=W[U++],m|=(h&127)<<14,h&128&&(h=W[U++],m|=(h&127)<<21,h&128&&(h=W[U++],m|=h<<28,h&128&&W[U++]&128&&W[U++]&128&&W[U++]&128&&W[U++]&128&&W[U++]&128)))))throw Error();CT(K,U);return m}; X0R=function(K,W){W=mIe(W);return W===0?0:mIe(K)/W}; VC=function(K,W){var U=U===void 0?!1:U;GR(W);(U||K.C.G9())&&K.publish("ctmp","drmlog",W)}; t$e=function(K){var W=K.api.V(),U=GF2(W);U=rw2(U);var h=U.V2.bind(U);U.V2=function(G){var I;return g.r(function(d){if(d.j==1)return g.T(d,h(G),2);I=d.X;K.api.rk("itr",{});return d.return(I)})}; try{var m=RBe({Lj:U,QF:{maxAttempts:5},EM:{OP:"CLEn",disable:W.experiments.Rk("html5_web_po_disable_remote_logging"),hj:sNs(W.experiments),gz:function(G){var I=vOC.get(G);I||(I=new GI2(G),I=new g.n4(I),vOC.set(G,I));return I}, lOU:K.L("wpo_dis_lfdms")?0:1E3},xyk:g.eI});var S=new KHp({Mb:m,Lj:U,onError:g.eI});KWp(S.s1()).then(function(){K.j=!0;K.U.resolve()}); K.L("html5_web_po_token_disable_caching")||S.py(150);g.k(K,m);g.k(K,S);K.X=S}catch(G){g.eI(G);var f;(f=m)==null||f.dispose()}}; q_C=function(K){return(K.G-K.j)/1E3}; k_F=function(K,W,U,h){W=LU(K,W,U,h);return W instanceof v?W:s$(K,W,U)}; CAe=function(K){var W,U,h,m,S;return(S=g.P((m=g.P((W=K.getWatchNextResponse())==null?void 0:(U=W.playerOverlays)==null?void 0:(h=U.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,$e))==null?void 0:m.playerBar,xAF))==null?void 0:S.chapters}; Yh=function(K,W,U){h4.call(this,K);this.api=K;this.s5=W;this.components={};K=new g.y({T:"div",Hp:["video-ads","ytp-ad-module"]});g.k(this,K);kj&&g.$C(K.element,"ytp-ads-tiny-mode");this.W=new ae(K.element);g.k(this,this.W);g.HW(this.api,K.element,4);zHF(U)&&(U=new g.y({T:"div",Hp:["ytp-ad-underlay"]}),g.k(this,U),this.X=new ae(U.element),g.k(this,this.X),g.HW(this.api,U.element,0));g.k(this,D4F())}; g.UL=function(K,W,U){return K3(W,0,U)}; DB_=function(K,W,U){return(K=K.levels[W])?K.QD(U):-1}; Ou=function(K,W,U,h,m,S){S=S===void 0?function(){}:S; vh.call(this,K,{T:"div",Z:"ytp-ad-survey-question",K:[{T:"div",Hp:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{T:"div",Hp:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{T:"div",Hp:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{T:"div",Z:"ytp-ad-survey-question-background"}]},m,W,U,h);this.hK=S;this.W=null;this.X=[];this.j=null;this.J=this.api.V().experiments.Rk("a11y_h5_associate_survey_question");this.question=this.yH("ytp-ad-survey-question"); this.Le=this.yH("ytp-ad-survey-question-background");this.questionText=this.yH("ytp-ad-survey-question-text");this.answers=this.yH("ytp-ad-survey-answers");this.playerOverlay=this.yH("ytp-ad-survey-question-player-overlay");this.N=Date.now()}; X7p=function(K){K.Dv();var W=K.Jx;aq(K);K.events.S(window,"resize",K.Zck);var U=K.yX();K.Yx.Bd("onVolumeChange",K.xq);if(W&&EJ(W)){var h=p_(K.C);h&&!K.EP&&(W.fetch=0);var m=g.HB(K.C);m&&!K.EP&&(W.fetch=0);jl(K,W);g.HB(K.C)&&K.aW.tick("ep_pr_s");if(!h||K.EP)if(m&&!K.EP)w5(K);else if(!U.Av())K.playlist.onReady(function(){p9(K)})}K.z4(K.rH(),!1,!0); g.C(K.rH().getPlayerState(),128)||(W=VQs(!K.C.deviceIsAudioOnly),W==="fmt.noneavailable"?K.Qv("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):W==="html5.missingapi"?K.Qv(W,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):U&&U.Av()&&$M(K)&&(K.C.A3||K.C.X8)?zp(K):U.V3?K.Yx.mutedAutoplay({durationMode:U.mutedAutoplayDurationMode}):g.SZ("yt-player-playback-on-reload")?(g.N_("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!K.C.DA}),g.SI("yt-player-playback-on-reload",!1),zp(K)): f9(K.C)||OAC(K),g.YC(K.C)||Cr(K.C)==="MWEB"?(g.UL(g.hN(),function(){HC(K)}),g.UL(g.hN(),function(){q5z()})):(HC(K),q5z()))}; hX=function(K,W){var U={type:W.slotType,controlFlowManagerLayer:ToF.get(W.wk)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(U.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(U.slotPhysicalPosition=W.slotPhysicalPosition);if(K){U.debugData={slotId:W.slotId};if(K=W.slotEntryTrigger)U.debugData.slotEntryTriggerData=GC(K);K=W.slotFulfillmentTriggers;U.debugData.fulfillmentTriggerData=[];K=g.z(K);for(var h=K.next();!h.done;h=K.next())U.debugData.fulfillmentTriggerData.push(GC(h.value)); W=W.slotExpirationTriggers;U.debugData.expirationTriggerData=[];W=g.z(W);for(K=W.next();!K.done;K=W.next())U.debugData.expirationTriggerData.push(GC(K.value))}return U}; g.Tb=function(K){for(var W in K)return!1;return!0}; MgD=function(K,W,U,h){if(l5(K.j,W)){var m=K.Yd,S=m.u$,f;var G=((f=eP_.get(h))==null?void 0:f.MA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";S.call(m,G,W,U);K=La(K.j,W);K.j!=="rendering"&&AN(K.slot,K.j,"exitLayout");K.j="rendering_stop_requested";K.N.iG(U,h)}}; MU_=function(K){K=K.Zf.h8;var W;if(W=K&&K.getAttribute)W=/-[a-z]/.test("googleAvInapp")?!1:lws&&K.dataset?"googleAvInapp"in K.dataset:K.hasAttribute?K.hasAttribute("data-"+wXD()):!!K.getAttribute("data-"+wXD());W&&(Dz().X=!0)}; pq=function(K){g.qE(K.U);K.U=NaN}; C1s=function(){var K={},W=window.performance;if(W){var U=W.memory;if(U){K.jsTotal=U.totalJSHeapSize;K.jsUsed=U.usedJSHeapSize;K.jsLimit=U.jsHeapSizeLimit;var h,m;K.msTotal=(m=(h=U.getMediaSourceTotalAllocatedMemory)==null?void 0:h.call(U))!=null?m:U.totalMediaSourceSize;var S,f;K.msLimit=(f=(S=U.getMediaSourceMaximumMemoryCapacity)==null?void 0:S.call(U))!=null?f:U.mediaSourceSizeLimit;var G,I;K.msUsed=(I=(G=U.getMediaSourceCurrentMemoryCapacity)==null?void 0:G.call(U))!=null?I:U.usedMediaSourceMemorySize}W.measureAvailableCpuMemory&& (K.cbFree=W.measureAvailableCpuMemory());W.measureUsedCpuMemory&&(K.cbUsed=W.measureUsedCpuMemory())}var d;if((d=window.h5vcc)==null?0:d.cVal)K.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),K.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),K.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return K}; qW=function(K){g.p.call(this);this.j=K;this.Lg=new Map}; t0=function(K,W,U,h,m,S,f,G,I,d){this.width=K;this.height=W;this.X=G;this.quality=S||Z8z(K,W);this.qualityOrdinal=g.YJ[this.quality];this.fps=U||0;this.stereoLayout=!m||h!=null&&h!=="UNKNOWN"&&h!=="RECTANGULAR"?0:m;this.projectionType=h?h==="EQUIRECTANGULAR"&&m===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":h:"UNKNOWN";(K=f)||(K=g.YJ[this.quality],K===0?K="Auto":(W=this.fps,U=this.projectionType,K=K.toString()+(U==="EQUIRECTANGULAR"||U==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||U==="MESH"?"s":"p")+(W>55?"60": W>49?"50":W>39?"48":"")));this.qualityLabel=K;this.j=I||"";this.primaries=d||""}; L4s=function(K){if(K.started&&!K.qs()){K.W.stop();var W=K.iX.getPlayerState();g.C(W,32)&&K.J.start();for(var U=Kmz(K),h=K.isEnded(W,U),m=[],S=[],f=g.z(K.X),G=f.next();!G.done;G=f.next())G=G.value,G.active&&(h?G.end<0x8000000000000:!G.contains(U))&&S.push(G);m=m.concat(Q7C(K,S));f=S=null;h?(W=Kq(K.j,0x7ffffffffffff),S=W.filter(function(I){return I.end<0x8000000000000}),f=jmL(K.j)):W=K.N<=U&&Ut(W)?dpC(K.j,K.N,U):Kq(K.j,U); m=m.concat(KE(K,W));S&&(m=m.concat(Q7C(K,S)));f&&(m=m.concat(KE(K,f)));K.N=U;cus(K,m)}}; g.Dl=function(K,W,U){if(W instanceof g.rt)U=W.height,W=W.width;else if(U==void 0)throw Error("missing height argument");K.style.width=jh(W,!0);K.style.height=jh(U,!0)}; MO_=function(K,W){var U;return g.r(function(h){if(h.j==1)return g.T(h,ZP(W),2);U=h.X;return h.return(U.delete("LogsRequestsStore",K))})}; K_C=function(K,W){g.y.call(this,{T:"div",Z:"ytp-cards-teaser",K:[{T:"div",Z:"ytp-cards-teaser-box"},{T:"div",Z:"ytp-cards-teaser-text",K:K.V().L("player_new_info_card_format")?[{T:"button",Z:"ytp-cards-teaser-info-icon",B:{"aria-label":"Show cards","aria-haspopup":"true"},K:[CUC()]},{T:"img",Z:"ytp-cards-teaser-channel-avatar",B:{alt:"","aria-hidden":"true"}},{T:"span",Z:"ytp-cards-teaser-label",bX:"{{text}}"},{T:"button",Z:"ytp-cards-teaser-close-button",B:{"aria-label":"Close"},K:[g.LD()]}]:[{T:"span", Z:"ytp-cards-teaser-label",bX:"{{text}}"}]}]});var U=this;this.D=K;this.ou=W;this.fade=new g.Wr(this,250,!1,250);this.j=null;this.G=new g.QC(this.n$U,300,this);this.U=new g.QC(this.H5X,2E3,this);this.W=[];this.N=null;this.Y=new g.QC(function(){U.element.style.margin="0"},250); this.onClickCommand=this.X=null;g.k(this,this.fade);g.k(this,this.G);g.k(this,this.U);g.k(this,this.Y);K.V().L("player_new_info_card_format")?(g.$C(K.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.yH("ytp-cards-teaser-close-button"),"click",this.qL),this.S(this.yH("ytp-cards-teaser-info-icon"),"click",this.r$),this.S(this.yH("ytp-cards-teaser-label"),"click",this.r$)):this.listen("click",this.r$);this.S(W.element,"mouseover",this.nH);this.S(W.element,"mouseout",this.HA);this.S(K,"cardsteasershow", this.rOx);this.S(K,"cardsteaserhide",this.z9);this.S(K,"cardstatechange",this.zl);this.S(K,"presentingplayerstatechange",this.zl);this.S(K,"appresize",this.EG);this.S(K,"onShowControls",this.EG);this.S(K,"onHideControls",this.Oh);this.listen("mouseenter",this.G$)}; qKY=function(K){K.A3.style.removeProperty("height");for(var W=g.z(Object.keys(K.Bp)),U=W.next();!U.done;U=W.next())mkL(K,U.value);KF(K);bf(K,K.Ms,K.W3)}; N6Y=function(K){g.hc("nwl_csi_killswitch")||Ql("networkless_performance",K,{sampleRate:1})}; dU=function(K){this.iZ=qR(K,0,dU.messageId)}; W_2=function(K,W,U,h,m){yU.call(this,"ads-engagement-panel",K,W,U,h,m)}; nt=function(K,W,U){for(var h in K.j){var m=Wh(K.j[h].info.mimeType)||K.j[h].info.ZE();if(U===m&&(m=K.j[h].index)!=null){var S=CJ(m,W);S>=0&&m.segments.splice(S,1)}}}; g.UuL=function(K,W){K%=W;return K*W<0?K+W:K}; uds=function(K){K=g.ge(K,1886614376);for(var W=g.z(K),U=W.next();!U.done;U=W.next());return g.CB(K,function(h){return XGp(h)})}; WXL=function(K){var W=e8(K,!0);return hx(jx(K,W))}; vuD=function(K,W){var U=K.D.V(),h=K.D.getPresentingPlayerType()===2,m=!h||W.isListed;m=!U.uX&&!!W.videoId&&m;U.playerStyle!=="play"?U="https://support.google.com/youtube/?p=report_playback":(U={contact_type:"playbackissue",html5:1,ei:W.eventId,v:W.videoId,p:"movies_playback"},W.X&&(U.fmt=W.X.itag),W.clientPlaybackNonce&&(U.cpn=W.clientPlaybackNonce),W.partnerId&&(U.partnerid=W.partnerId),U=g.sL("//support.google.com/googleplay/",U));K.Ll.J7(m&&W.allowEmbed);K.getVideoUrl.J7(m);K.ZF.J7(m&&!W.isLivePlayback); K.WJ.setContent(U,"href");var S;(S=K.GP)==null||S.J7(!W.isLivePlayback&&!h);KwY(K);var f;(f=K.EC)==null||f.J7(!h)}; IL_=function(){var K=g.qs.navigator;return K?K.connection:void 0}; K2=function(K){return K===void 0||K.startSec===void 0||K.endSec===void 0?!1:!0}; qcp=function(K){var W,U;(U=(W=window).onerror)==null||U.call(W,K.message,"",0,0,K)}; ZU=function(K){return decodeURIComponent(K.replace(/\+/g," "))}; hhe=function(K){K.offsets.length=2&&(K.slot_pos=W.adPodIndex);K.autoplay="1"}; des=function(K){K=K===void 0?IvL:K;g.p.call(this);var W=this;try{this.N=K(function(h){W.X=h.at(-1)}); var U;this.W=(U=this.N)==null?void 0:U.observe("cpu",{sampleInterval:2E3}).catch(function(h){h instanceof DOMException&&(W.j=h)})}catch(h){h instanceof DOMException&&(this.j=h)}}; jBF=function(K){K.j&&(K.j.j=[]);g.hI(K.X,function(W){W.j=[]}); g.hI(K.N,function(W){W.j=[]})}; fA=function(K,W,U,h,m){m=m===void 0?!1:m;W!==K.aQ&&(m||K.iX.rk("ssevt",{tag:K.j===0?"sstd-cr":K.j===1?"sstd-tm":K.j===2?"sstd-poll":K.j===3?"sstd-poll100":"sstd-unknown",ad:K.cpn!==W,cpn:W,st:U.toFixed(3),late:Math.round((h-U)*1E3)}),K.aQ=W,K.iX.publish("playbackstarted",W,U+K.iX.A7(),m))}; Jh=function(K){this.iZ=qR(K)}; F0=function(K,W,U){this.layoutId=W;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=U||K(this.triggerType)}; QIp=function(K,W){W=W===void 0?document:W;return W.createElement(String(K).toLowerCase())}; mu2=function(K){nm().W=!!K.l3("isViewable");aL(K,"viewableChange",olY);K.l3("getState")==="loading"?aL(K,"ready",t4D):SnC(K)}; SOC=function(K,W){K=g.z(K.actionButtons);for(var U=K.next();!U.done;U=K.next())U.value.My(W)}; r8R=function(K,W){var U;((U=window.performance)==null?0:U.getEntriesByName)&&(W=performance.getEntriesByName(W))&&W.length&&(W=W[0],K.pedns=(W.domainLookupEnd-W.startTime).toFixed(),K.pecon=(W.connectEnd-W.domainLookupEnd).toFixed(),K.perqs=(W.requestStart-W.connectEnd).toFixed(),YqC&&(K.perqsa=W.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Zrp=function(K){return String(K).replace(/\-([a-z])/g,function(W,U){return U.toUpperCase()})}; Kop=function(){this.state=1;this.Mb=null;this.M$=void 0}; f5s=function(K,W){W=Lo(K,W);K.W!==W&&K.publish("livestatusshift",W);K.W=W}; NOC=function(K){switch(K){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new v("Invalid layout exit reason: "+ K)}}; $9=function(K){return K.Tm.W&&K.isPrivate}; D_Y=function(K,W,U){K.onSuccess=W;K.onError=U}; Sj=function(K){return K.type===1||K.type===2}; Gv=function(K,W){W=W===void 0?!1:W;if(K.X){if(K.G){var U=K.X;K.app.Yx.removeEventListener(g.$w("vqueued"),K.Y);U.removeCueRange(K.G)}K.X=null;K.G=null}K.N&&(K.N.status.status!==6&&(U=K.N,U.status.status!==Infinity&&U.U!==1&&U.Qv("Canceled")),K.N=null);K.W=null;K.j&&!W&&K.j!==K.app.rH()&&K.j!==K.app.E5()&&K.j.dispose();K.j&&W&&K.j.Lw();K.j=null;K.J=!1}; pH$=function(K,W){if(K.j){var U=K.j.Nk.k$-(W.startTime+K.J-K.j.Nk.startSecs);U<=0||(U=new u6(K.j.Nk.startSecs-(isNaN(K.J)?0:K.J),U,K.j.Nk.context,K.j.Nk.identifier,"stop",K.j.Nk.j+W.duration*1E3),K.rk("cuepointdiscontinuity",{segNum:W.kx}),Xt(K,U,W.kx))}}; Jr=function(K,W,U,h,m){var S;U=U===void 0?!1:U;h=h===void 0?!1:h;var f=K.Hd.get(W);if(!f||h)if(m||(m=function(){Jr(K,W,U,h)}),S||(S=function(){Yk(K,W)}),f=f||QWD(K,W,fBp(K,W),m,S))K.Hd.set(W,f),f.create(),K.D.publish("modulecreated",W),U&&K.D.Bd("onApiChange")}; pO=function(K,W){z9.call(this,K,W);this.Y=[]}; NE=function(K,W){K.j-=W;K.register>>=W}; J8=function(K,W){this.X=K;this.j=W+"::"}; UrY=function(K,W,U,h,m,S){h=h===void 0?pa():h;m=m===void 0?Promise.resolve(void 0):m;var f,G,I,d,J,e,E,B,D,a,Q,u;g.r(function(O){switch(O.j){case 1:return g.T(O,0,3);case 3:G=null;if(!f){O.O5(6);break}w4(K,7);g.Bj(O,7);return g.T(O,Xx(f.snapshot({}),S.nP,function(){return Promise.resolve("E:CTO")}),9); case 9:G=O.X;g.xL(O,6);break;case 7:g.SV(O),G="E:UCE";case 6:I=void 0,d=f?S.NP:S.ye,J=new g.Uu(d,S.WG,S.TA,S.X$),e=1;case 10:if(!(e<=S.maxAttempts)){O.O5(12);break}if(e===1){O.O5(13);break}w4(K,0);K.j=new gkD(J.getValue(),S.Iy,S.x3);return g.T(O,K.j.promise,14);case 14:E=O.X,K.j=void 0,E===1?(e=1,J.reset()):g.ir(J);case 13:g.Bj(O,15);B=void 0;if(U){B=U;O.O5(17);break}w4(K,5);D=h.j;return g.T(O,Xx(OUL(W,K.logger,e,D,G),S.Lt,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:B=O.X;case 17:return w4(K,3),g.T(O,Xx(XJF(h,B),S.e45,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return w4(K,8),g.T(O,m,20);case 20:return a=new XE({challenge:B,EM:K.options.EM,S1:K.options.S1}),g.T(O,Xx(a.BJ,S.c3x,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:I=a;O.O5(12);break;case 15:Q=g.SV(O),K.handleError(Q),UJ_(K);case 11:e++;O.O5(10);break;case 12:if(K.qs()){O.O5(5);break}I&&(U=void 0,Vop(K,f),f=I,uEY(K,I),UJ_(K));w4(K,2);K.j=new gkD(S.r3p,S.Iy,S.x3);return g.T(O,K.j.promise,22);case 22:K.j=void 0;if(K.qs()){O.O5(5);break}O.O5(3);break;case 5:(u=f)==null||u.dispose(),g.q1(O)}})}; YW2=function(K){var W=bqp(K.W,K.mediaElement);W?W.then(bd(function(){z2D(K)}),bd(function(U){if(!K.qs()){g.wG(U); var h="t.a";U instanceof DOMException&&(h+=";n."+U.name+";m."+U.message);K.publish("licenseerror","drm.unavailable",1,h,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(K.Jc({mdkrdy:1}),K.jV=!0); K.Ms&&(W=bqp(K.Ms,K.mediaElement))}; G9Y=function(K,W,U,h,m,S,f,G,I){h.every(function(J){return nN(J,[],["LAYOUT_TYPE_MEDIA"])})||UF("Unexpect subLayout type for DAI composite layout"); W=bh(K.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W);var d={layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wk:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uZ:new Map,layoutExitNormalTriggers:[new ng(K.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],wk:"core",clientMetadata:new Zi([new SQ(U),new ff(G),new gU(h),new vM(m),new l2(S),new Pq({}),new da(I)]),t7:f(d)}}; fZe=function(K,W,U){var h=0;K=K.j.j.get(U);if(!K)return-1;K=g.z(K);for(U=K.next();!U.done;U=K.next()){if(U.value.cpn===W)return h;h++}return-1}; tML=function(K,W){if(J02(K)){W=$Te(K,W);K.j.push(W);var U;(U=K.DA)==null||M2(U,K.Gm.jV);K.J>0&&K.Le.qR++}}; TM=function(){return{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; y8Y=function(){var K={values:{},j2:{}};try{var W=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);K.values=W.values;K.halfLives=W.halfLives}catch(U){}return K}; GUz=function(K,W){function U(S){return h.Ms!=="yt"&&(m.partnerId===38&&h.playerStyle==="books"||m.partnerId===30&&h.playerStyle==="docs"||m.partnerId===33&&h.playerStyle==="google-live")?jhD(K,m,S):QqD(K,m).then(function(){h.L("embeds_enable_shorts")&&K.V().gN&&m.isEmbedsShortsMode(new g.rt(0,0),!!m.playlistId)?Wps(K,m):W2(K,m)},function(f){W2(K,m,!0); throw f;})} W=W===void 0?K.V().schedule:W;var h=K.V(),m=K.getVideoData();m.qs();m.loading=!0;return XAD(K)?M0z(K,m,W).then(function(){W2(K,m)},function(S){S=XI(S); if(CR(S.severity))return W2(K,m,!0),Promise.reject(S);S.errorCode==="onesie.response.badproxystatus"&&""+S.details.st==="3"&&(VqD=!0);K.handleError(S);return U("onesie")}):U("gvi")}; a3Y=function(K,W){for(var U in W)if(vK(W[U])){if(U in K&&!vK(K[U]))throw Error("Cannot merge an object into a non-object.");U in K||(K[U]={});a3Y(K[U],W[U])}else if(SJ(W[U])){if(U in K&&!SJ(K[U]))throw Error("Cannot merge an array into a non-array.");U in K||(K[U]=[]);wvL(K[U],W[U])}else K[U]=W[U];return K}; yJp=function(K,W,U){var h=Gus;U=U===void 0?!1:U;return X_(h,function(){var m=this;return function f(){var G,I,d;return L5(f,function(J){switch(J.j){case 1:g.bE(J,2);if(!m.X)throw"wasm.ps.ns";G=K;I=l0;return Ev(J,qj(iue(m,W,U)),4);case 4:d=I(J.X);if(!d)throw"wasm.ps.um";if(m.j&&!U)try{return J.return(new WebAssembly.Instance(d,G))}catch(e){m.j=!1}return Ev(J,qj(WebAssembly.instantiate(d,G)),5);case 5:return J.return(J.X);case 2:g.VY(J),g.vr(J,0)}})}()})}; IqC=function(K,W,U){if(K.X!==0&&U&&W.Ce[0].ZE()){var h=W.Ce[0].kx,m=W.Ce[0].W;W=W.isDecorated();QMp(K,h,m,W,U)}}; qXp=function(K){for(var W=g.z(IZe),U=W.next();!U.done;U=W.next())K=YH(K,U.value);return"ST-"+dd(K).toString(36)}; WCz=function(K){var W=K.N;K.N=[];return W}; fr=function(K,W,U){K.videoInfos=K.G;K.videoInfos=g.yb(K.videoInfos,function(h){return h.video.qualityOrdinal>=W&&h.video.qualityOrdinal<=U})}; g.WA=function(K){var W=K.V(),U=g.Nl||g.ws?{style:"will-change: opacity"}:void 0,h=W.W,m=["ytp-modern-videowall-still"];W.X&&m.push("ytp-videowall-show-text");g.y.call(this,{T:"a",Hp:m,B:{href:"{{url}}",target:h?W.jV:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},K:[{T:"div",Z:"ytp-modern-videowall-still-image",B:{style:"{{background}}"},K:[{T:"span",Z:"ytp-modern-videowall-still-info-duration",bX:"{{duration}}"}]},{T:"span",Z:"ytp-modern-videowall-still-info", B:{"aria-hidden":"true"},K:[{T:"span",Z:"ytp-modern-videowall-still-info-bg",K:[{T:"span",Z:"ytp-modern-videowall-still-info-content",B:U,K:[{T:"span",Z:"ytp-modern-videowall-still-info-title",bX:"{{title}}"},{T:"span",Z:"ytp-modern-videowall-still-info-author",bX:"{{author}}"},{T:"span",Z:"ytp-modern-videowall-still-view-count-and-date-info",bX:"{{views_and_publish_time}}"},{T:"span",Z:"ytp-modern-videowall-still-info-live",bX:"Live"}]}]}]},{T:"span",Hp:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],B:{"aria-hidden":"true"},K:[{T:"span",Z:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{T:"span",Z:"ytp-modern-videowall-still-listlabel-length",K:[" (",{T:"span",bX:"{{playlist_length}}"},")"]}]},{T:"span",Hp:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],B:{"aria-hidden":"true"},K:[{T:"span",Z:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{T:"span",Z:"ytp-modern-videowall-still-listlabel-length",bX:" (50+)"}]}]}); this.suggestion=null;this.X=h;this.api=K;this.j=new g.Te(this);g.k(this,this.j);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.j.S(K,"videodatachange",this.onVideoDataChange);K.createServerVe(this.element,this);this.onVideoDataChange()}; nu=function(K,W,U){var h=this;this.requestType=K;this.T9=W;this.N5=U;this.X=null;this.xd={iT:function(){var m;return(m=h.data)==null?void 0:m.iT}, R7:function(){var m;return(m=h.data)==null?void 0:m.R7}, tf:function(){var m;return(m=h.data)==null?void 0:m.tf}}}; TF$=function(K,W){if(K!=null)if(typeof K==="string")K=K?new Qr(K,tW):lR();else if(K.constructor!==Qr)if(he2&&K!=null&&K instanceof Uint8Array)K=K.length?new Qr(new Uint8Array(K),tW):lR();else{if(!W)throw Error();K=void 0}return K}; Dpe=function(K,W){return new w9(K.Y,K.N,W||K.j.reason)}; gq=function(K){var W=K.ZA,U=K.Xx;K=K.uB;var h=new PRe,m={bu:new IB_(W.get(),U),Xx:U};return{Yd:new lyC(U,K,W,m),context:m,Pu:h}}; n7p=[];DvF=typeof Object.create=="function"?Object.create:function(K){function W(){} W.prototype=K;return new W}; ef=typeof Object.defineProperties=="function"?Object.defineProperty:function(K,W,U){if(K==Array.prototype||K==Object.prototype)return K;K[W]=U.value;return K}; g.JI=l3C(this);aU="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");g.JI.BigInt64Array&&(aU.push("BigInt64"),aU.push("BigUint64"));var dus=function(){function K(){function U(){} new U;Reflect.construct(U,[],function(){}); return new U instanceof U} if(typeof Reflect!="undefined"&&Reflect.construct){if(K())return Reflect.construct;var W=Reflect.construct;return function(U,h,m){U=W(U,h);m&&Reflect.setPrototypeOf(U,m.prototype);return U}}return function(U,h,m){m===void 0&&(m=U); m=DvF(m.prototype||Object.prototype);return Function.prototype.apply.call(U,m,h)||m}}(),Jz2; if(typeof Object.setPrototypeOf=="function")Jz2=Object.setPrototypeOf;else{var eh_;a:{var EtC={a:!0},BmC={};try{BmC.__proto__=EtC;eh_=BmC.a;break a}catch(K){}eh_=!1}Jz2=eh_?function(K,W){K.__proto__=W;if(K.__proto__!==W)throw new TypeError(K+" is not extensible");return K}:null}var Zk=Jz2,DuL=typeof Object.assign=="function"?Object.assign:function(K,W){if(K==null)throw new TypeError("No nullish arg"); K=Object(K);for(var U=1;U>>0)+"_",m=0;return W}); d8("Symbol.iterator",function(K){if(K)return K;K=Symbol("Symbol.iterator");ef(Array.prototype,K,{configurable:!0,writable:!0,value:function(){return nx_(wyL(this))}}); return K}); d8("Promise",function(K){function W(f){this.j=0;this.N=void 0;this.X=[];this.Y=!1;var G=this.W();try{f(G.resolve,G.reject)}catch(I){G.reject(I)}} function U(){this.j=null} function h(f){return f instanceof W?f:new W(function(G){G(f)})} if(K)return K;U.prototype.X=function(f){if(this.j==null){this.j=[];var G=this;this.N(function(){G.U()})}this.j.push(f)}; var m=g.JI.setTimeout;U.prototype.N=function(f){m(f,0)}; U.prototype.U=function(){for(;this.j&&this.j.length;){var f=this.j;this.j=[];for(var G=0;G0&&U>0;)if(h[--U]!=W[--m])return!1;return m<=0}}); d8("Array.prototype.find",function(K){return K?K:function(W,U){return Yt$(this,W,U).IJ}}); d8("Array.prototype.entries",function(K){return K?K:function(){return xQY(this,function(W,U){return[W,U]})}}); d8("Array.prototype.keys",function(K){return K?K:function(){return xQY(this,function(W){return W})}}); d8("String.prototype.startsWith",function(K){return K?K:function(W,U){var h=$J(this,W,"startsWith");W+="";var m=h.length,S=W.length;U=Math.max(0,Math.min(U|0,h.length));for(var f=0;f=S}}); d8("Number.isFinite",function(K){return K?K:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}}); d8("String.prototype.repeat",function(K){return K?K:function(W){var U=$J(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("Invalid count value");W|=0;for(var h="";W;)if(W&1&&(h+=U),W>>>=1)U+=U;return h}}); d8("Object.entries",function(K){return K?K:function(W){var U=[],h;for(h in W)qb(W,h)&&U.push([h,W[h]]);return U}}); d8("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); d8("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); d8("Array.from",function(K){return K?K:function(W,U,h){U=U!=null?U:function(G){return G}; var m=[],S=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof S=="function"){W=S.call(W);for(var f=0;!(S=W.next()).done;)m.push(U.call(h,S.value,f++))}else for(S=W.length,f=0;f>>0;if(W===0)return 32;var U=0;(W&4294901760)===0&&(W<<=16,U+=16);(W&4278190080)===0&&(W<<=8,U+=8);(W&4026531840)===0&&(W<<=4,U+=4);(W&3221225472)===0&&(W<<=2,U+=2);(W&2147483648)===0&&U++;return U}}); d8("Number.isNaN",function(K){return K?K:function(W){return typeof W==="number"&&isNaN(W)}}); d8("Array.prototype.values",function(K){return K?K:function(){return xQY(this,function(W,U){return U})}}); d8("Array.prototype.fill",function(K){return K?K:function(W,U,h){var m=this.length||0;U<0&&(U=Math.max(0,m+U));if(h==null||h>m)h=m;h=Number(h);h<0&&(h=Math.max(0,m+h));for(U=Number(U||0);U0&&U?U.repeat(Math.ceil(W/U.length)).substring(0,W):"")+h}}); d8("Array.prototype.findIndex",function(K){return K?K:function(W,U){return Yt$(this,W,U).uw}}); d8("Promise.prototype.finally",function(K){return K?K:function(W){return this.then(function(U){return Promise.resolve(W()).then(function(){return U})},function(U){return Promise.resolve(W()).then(function(){throw U; })})}}); d8("Math.imul",function(K){return K?K:function(W,U){W=Number(W);U=Number(U);var h=W&65535,m=U&65535;return h*m+((W>>>16&65535)*m+h*(U>>>16&65535)<<16>>>0)|0}}); d8("Math.sign",function(K){return K?K:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}}); d8("WeakSet",function(K){function W(U){this.j=new WeakMap;if(U){U=g.z(U);for(var h;!(h=U.next()).done;)this.add(h.value)}} if(function(){if(!K||!Object.seal)return!1;try{var U=Object.seal({}),h=Object.seal({}),m=new K([U]);if(!m.has(U)||m.has(h))return!1;m.delete(U);m.add(h);return!m.has(U)&&m.has(h)}catch(S){return!1}}())return K; W.prototype.add=function(U){this.j.set(U,!0);return this}; W.prototype.has=function(U){return this.j.has(U)}; W.prototype.delete=function(U){return this.j.delete(U)}; return W}); d8("Array.prototype.copyWithin",function(K){function W(U){U=Number(U);return U===Infinity||U===-Infinity?U:U|0} return K?K:function(U,h,m){var S=this.length;U=W(U);h=W(h);m=m===void 0?S:W(m);U=U<0?Math.max(S+U,0):Math.min(U,S);h=h<0?Math.max(S+h,0):Math.min(h,S);m=m<0?Math.max(S+m,0):Math.min(m,S);if(Uh;)--m in this?this[--U]=this[m]:delete this[--U];return this}}); wE("copyWithin",function(K){return K?K:Array.prototype.copyWithin}); d8("Array.prototype.at",function(K){return K?K:cQ}); wE("at",function(K){return K?K:cQ}); d8("String.prototype.at",function(K){return K?K:cQ}); d8("Array.prototype.findLastIndex",function(K){return K?K:function(W,U){return LlC(this,W,U).uw}}); wE("findLastIndex",function(K){return K?K:function(W,U){return LlC(this,W,U).uw}}); d8("Number.parseInt",function(K){return K||parseInt});var tXp,CBp,lAR;tXp=tXp||{};g.qs=this||self;CBp="closure_uid_"+(Math.random()*1E9>>>0);lAR=0;g.sJ(fC,Error);fC.prototype.name="CustomError";var y0L;var Fge,Ab,Ns;Fge=Array.prototype.indexOf?function(K,W){return Array.prototype.indexOf.call(K,W,void 0)}:function(K,W){if(typeof K==="string")return typeof W!=="string"||W.length!=1?-1:K.indexOf(W,0); for(var U=0;U=0;U--)if(U in K&&K[U]===W)return U;return-1}; g.tD=Array.prototype.forEach?function(K,W,U){Array.prototype.forEach.call(K,W,U)}:function(K,W,U){for(var h=K.length,m=typeof K==="string"?K.split(""):K,S=0;S=.3:this.v2>=.5};var s5={ivA:0,Kyk:1},Qce={NONE:0,GJs:1,cBs:2};var sID="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");uw.prototype.getValue=function(){return this.X}; g.V(kp,uw);kp.prototype.N=function(K){this.X===null&&g.yT(this.W,K)&&(this.X=K)}; g.V(cK,uw);cK.prototype.N=function(K){this.X===null&&typeof K==="number"&&(this.X=K)}; g.V(O0F,uw);O0F.prototype.N=function(K){this.X===null&&typeof K==="string"&&(this.X=K)};MO.prototype.disable=function(){this.X=!1}; MO.prototype.enable=function(){this.X=!0}; MO.prototype.isEnabled=function(){return this.X}; MO.prototype.reset=function(){this.j={};this.X=!0;this.N={}};var yp=document,Fl=window;var rzY=Fu(1,!0),Ph=Fu(610401301,!1);Fu(899588437,!1);var Tm$=Fu(772657768,!1),aZs=Fu(513659523,!1),w9C=Fu(568333945,!0),COC=Fu(1331761403,!1);Fu(651175828,!1);Fu(722764542,!1);Fu(748402145,!1);Fu(748402146,!1);var gT2=Fu(748402147,!0);Fu(333098724,!1);Fu(2147483644,!1);Fu(2147483645,!1);Fu(2147483646,rzY);Fu(2147483647,!0);var oF=!!g.vB("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var tP=String.prototype.trim?function(K){return K.trim()}:function(K){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(K)[1]},IYF=/&/g,dWD=//g,eyC=/"/g,Eis=/'/g,Bq$=/\x00/g,GSY=/[\x00&<>"']/;var ZH,QB$=g.qs.navigator;ZH=QB$?QB$.userAgentData||null:null;var $JF=globalThis.trustedTypes,Ty;ob.prototype.toString=function(){return this.j+""};pY.prototype.toString=function(){return this.j}; var O6s=new pY("about:invalid#zClosurez");var j5_=Sd("tel"),Uye=Sd("sms"),Y1p=[Sd("data"),Sd("http"),Sd("https"),Sd("mailto"),Sd("ftp"),new mT(function(K){return/^[^:]*([/?#]|$)/.test(K)})],NWL=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Ca.prototype.toString=function(){return this.j+""};Ka.prototype.toString=function(){return this.j+""};Of.prototype.toString=function(){return this.j};var xb={};g.$uL=String.prototype.repeat?function(K,W){return K.repeat(W)}:function(K,W){return Array(W+1).join(K)};xk[" "]=function(){};var nC,yS,wiC,YOs,OsF,czs,CO,kj,ntC;g.ws=qx();g.Cl=HCC();g.iC=yV("Edge");g.Qv=g.iC||g.Cl;nC=yV("Gecko")&&!(AW(g.i5(),"WebKit")&&!yV("Edge"))&&!(yV("Trident")||yV("MSIE"))&&!yV("Edge");g.$U=AW(g.i5(),"WebKit")&&!yV("Edge");yS=rK();wiC=FXC();g.q5=KR2();YOs=ED();OsF=yV("iPad");czs=yV("iPod");CO=Bk();kj=AW(g.i5(),"KaiOS"); a:{var gtC="",F_p=function(){var K=g.i5();if(nC)return/rv:([^\);]+)(\)|;)/.exec(K);if(g.iC)return/Edge\/([\d\.]+)/.exec(K);if(g.Cl)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(K);if(g.$U)return/WebKit\/(\S+)/.exec(K);if(g.ws)return/(?:Version)[ \/]?(\S+)/.exec(K)}(); F_p&&(gtC=F_p?F_p[1]:"");if(g.Cl){var Ua,u6p=g.qs.document;Ua=u6p?u6p.documentMode:void 0;if(Ua!=null&&Ua>parseFloat(gtC)){ntC=String(Ua);break a}}ntC=gtC}var AJF=ntC,$qp={};var rQ,ri;g.aS=Ez();rQ=ED()||yV("iPod");ri=yV("iPad");g.K8=m9s();g.Nl=Mh();g.$c=$d()&&!Bk();var lws=!g.Cl&&!$d();g.H=g.SA.prototype;g.H.clone=function(){return new g.SA(this.x,this.y)}; g.H.equals=function(K){return K instanceof g.SA&&Cu(this,K)}; g.H.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.H.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.H.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.H.scale=function(K,W){this.x*=K;this.y*=typeof W==="number"?W:K;return this};g.H=g.rt.prototype;g.H.clone=function(){return new g.rt(this.width,this.height)}; g.H.aspectRatio=function(){return this.width/this.height}; g.H.isEmpty=function(){return!z7(this)}; g.H.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.H.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.H.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.H.scale=function(K,W){this.width*=K;this.height*=typeof W==="number"?W:K;return this};nV.prototype.toString=function(){return this.j}; var F2s={};new nV(F2s,"");var WlR=/^[a-z][a-z\d-]*$/i,U2_="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),jgL="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),vyD=["action","formaction","href"];var Y9p={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.H=PF.prototype;g.H.H3=function(K){return lL(this.j,K)}; g.H.getElementsByTagName=function(K,W){return(W||this.j).getElementsByTagName(String(K))}; g.H.yH=function(K){return g.$K(K,this.j)}; g.H.setProperties=Ib;g.H.createElement=function(K){return ik(this.j,K)}; g.H.appendChild=g.ky;g.H.append=function(K,W){abp(ty(K),K,arguments,1)}; g.H.canHaveChildren=function(K){if(K.nodeType!=1)return!1;switch(K.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.H.removeNode=g.f7;g.H.getChildren=function(K){return K.children!=void 0?K.children:Array.prototype.filter.call(K.childNodes,function(W){return W.nodeType==1})}; g.H.contains=g.Hj;g.H.isFocusable=HH;hK.prototype.now=function(){return 0}; hK.prototype.X=function(){return 0}; hK.prototype.N=function(){return 0}; hK.prototype.j=function(){return 0};g.V(xJ,hK);xJ.prototype.now=function(){return sK()&&Fl.performance.now?Fl.performance.now():hK.prototype.now.call(this)}; xJ.prototype.X=function(){return sK()&&Fl.performance.memory?Fl.performance.memory.totalJSHeapSize||0:hK.prototype.X.call(this)}; xJ.prototype.N=function(){return sK()&&Fl.performance.memory?Fl.performance.memory.usedJSHeapSize||0:hK.prototype.N.call(this)}; xJ.prototype.j=function(){return sK()&&Fl.performance.memory?Fl.performance.memory.jsHeapSizeLimit||0:hK.prototype.j.call(this)};var uKF=function(){if(!g.qs.addEventListener||!Object.defineProperty)return!1;var K=!1,W=Object.defineProperty({},"passive",{get:function(){K=!0}}); try{var U=function(){}; g.qs.addEventListener("test",U,W);g.qs.removeEventListener("test",U,W)}catch(h){}return K}();var cCp=OZC("AnimationEnd"),DH=OZC("TransitionEnd");g.H=HP.prototype;g.H.getHeight=function(){return this.bottom-this.top}; g.H.clone=function(){return new HP(this.top,this.right,this.bottom,this.left)}; g.H.contains=function(K){return this&&K?K instanceof HP?K.left>=this.left&&K.right<=this.right&&K.top>=this.top&&K.bottom<=this.bottom:K.x>=this.left&&K.x<=this.right&&K.y>=this.top&&K.y<=this.bottom:!1}; g.H.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.H.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.H.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.H.scale=function(K,W){W=typeof W==="number"?W:K;this.left*=K;this.right*=K;this.top*=W;this.bottom*=W;return this};g.H=g.Bh.prototype;g.H.clone=function(){return new g.Bh(this.left,this.top,this.width,this.height)}; g.H.contains=function(K){return K instanceof g.SA?K.x>=this.left&&K.x<=this.left+this.width&&K.y>=this.top&&K.y<=this.top+this.height:this.left<=K.left&&this.left+this.width>=K.left+K.width&&this.top<=K.top&&this.top+this.height>=K.top+K.height}; g.H.getSize=function(){return new g.rt(this.width,this.height)}; g.H.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.H.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.H.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.H.scale=function(K,W){W=typeof W==="number"?W:K;this.left*=K;this.width*=K;this.top*=W;this.height*=W;return this};var ZlF={};var EIY=Tv(function(){var K=!1;try{var W=Object.defineProperty({},"passive",{get:function(){K=!0}}); g.qs.addEventListener("test",null,W)}catch(U){}return K});BFR.prototype.isVisible=function(){return Rl(yp)===1};var qZR=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");uZ.prototype.ej=function(K,W,U){K=K+"//"+W+U;var h=gbp(this)-U.length;if(h<0)return"";this.j.sort(function(d,J){return d-J}); U=null;W="";for(var m=0;m=I.length){h-=I.length;K+=I;W=this.N;break}U=U==null?S:U}}h="";U!=null&&(h=""+W+"trn="+U);return K+h};var r$s=HN(function(K){return typeof K==="number"}),mAp=HN(function(K){return typeof K==="string"}),T7e=HN(function(K){return typeof K==="boolean"}),pe=HN(function(K){return K!=null&&typeof K==="object"&&typeof K.then==="function"}),kus=HN(function(K){return!!K&&(typeof K==="object"||typeof K==="function")});var yOs={Acp:"allow-forms",Bgk:"allow-modals",Jcm:"allow-orientation-lock",Vim:"allow-pointer-lock",wNx:"allow-popups",sdK:"allow-popups-to-escape-sandbox",EMU:"allow-presentation",KtX:"allow-same-origin",Ftx:"allow-scripts",IgA:"allow-top-navigation",RQV:"allow-top-navigation-by-user-activation"},$5$=Tv(function(){return MFs()});j2.prototype.setInterval=function(K,W){return Fl.setInterval(K,W)}; j2.prototype.clearInterval=function(K){Fl.clearInterval(K)}; j2.prototype.setTimeout=function(K,W){return Fl.setTimeout(K,W)}; j2.prototype.clearTimeout=function(K){Fl.clearTimeout(K)};var C4=void 0,x_,Vzp=typeof TextDecoder!=="undefined",ogC,pv_=typeof String.prototype.isWellFormed==="function",P6p=typeof TextEncoder!=="undefined";var Tpe={},$D=null,SQD=nC||g.$U||typeof g.qs.btoa=="function";var he2=typeof Uint8Array!=="undefined",Q9e=!g.Cl&&typeof btoa==="function",$BF=/[-_.]/g,QVL={"-":"+",_:"/",".":"="},tW={};Qr.prototype.isEmpty=function(){return this.j==null}; Qr.prototype.sizeBytes=function(){var K=fB(this);return K?K.length:0}; var FaD;var XIs=void 0;var nI=typeof Symbol==="function"&&typeof Symbol()==="symbol",iss=Qz("jas",void 0,!0),g5=Qz(void 0,"1oa"),r0=Qz(void 0,Symbol()),zhF=Qz(void 0,"0ub"),Xtp=Qz(void 0,"0ubs"),Vg_=Qz(void 0,"0ubsb"),hIs=Qz(void 0,"0actk"),qS=Qz("m_m","wxp",!0),aYs=Qz(void 0,"vps"),NmR=Qz();Math.max.apply(Math,g.z4(Object.values({lUk:1,xKA:2,cCr:4,oVx:8,rRK:16,JFp:32,lfx:64,XYx:128,oFp:256,voH:512,faK:1024,N4x:2048,VhV:4096,ilK:8192})));var LSz={gxe:{value:0,configurable:!0,writable:!0,enumerable:!1}},lnR=Object.defineProperties,MX=nI?iss:"gxe",Li,Azp=[];OF(Azp,7);Li=Object.freeze(Azp);var x1={},xI={},eO$=Object.freeze({}),zL={},Ud={};var VR=typeof g.qs.BigInt==="function"&&typeof g.qs.BigInt(0)==="bigint";var Wi=HN(function(K){return VR?K>=RhD&&K<=yze:K[0]==="-"?ylF(K,MM$):ylF(K,PMC)}),MM$=Number.MIN_SAFE_INTEGER.toString(),RhD=VR?BigInt(Number.MIN_SAFE_INTEGER):void 0,PMC=Number.MAX_SAFE_INTEGER.toString(),yze=VR?BigInt(Number.MAX_SAFE_INTEGER):void 0;var X5L=typeof Uint8Array.prototype.slice==="function",FJ=0,u0=0,JNs;var ET=typeof BigInt==="function"?BigInt.asIntN:void 0,kp_=typeof BigInt==="function"?BigInt.asUintN:void 0,MC=Number.isSafeInteger,X8=Number.isFinite,ys=Math.trunc,oeR=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var wIz={};var p9s={nLK:!0};var hr;var aMp,wdz;var b3D=LC(0),L3={};dc.prototype.init=function(K,W,U,h){var m=h===void 0?{}:h;h=m.Gd===void 0?!1:m.Gd;m=m.YE===void 0?!1:m.YE;this.Gd=h;this.YE=m;K&&(K=$Q(K,this.YE),this.X=K.buffer,this.U=K.j,this.W=W||0,this.N=U!==void 0?this.W+U:this.X.length,this.j=this.W)}; dc.prototype.free=function(){this.clear();Iy.length<100&&Iy.push(this)}; dc.prototype.clear=function(){this.X=null;this.U=!1;this.j=this.N=this.W=0;this.Gd=!1}; dc.prototype.reset=function(){this.j=this.W}; var Iy=[];J7.prototype.free=function(){this.j.clear();this.X=this.N=-1;OP.length<100&&OP.push(this)}; J7.prototype.reset=function(){this.j.reset();this.W=this.j.j;this.X=this.N=-1}; var OP=[];var H5s,sTe;Pt.prototype.length=function(){return this.j.length}; Pt.prototype.end=function(){var K=this.j;this.j=[];return K};var Ct=Mb(),otR=Mb(),Zs$=Mb(),bsR=Mb(),sBs=Mb(),VMs=Mb(),X9p=Mb(),vt2=Mb(),qO_=Mb(),xu_=Mb(),CMs=Mb();bU.prototype.toJSON=function(){return mt(this)}; bU.prototype.ri=function(K){return JSON.stringify(mt(this,K))}; bU.prototype.clone=function(){var K=this.iZ,W=K[MX]|0;return C6(this,K,W)?OT(this,K,!0):new this.constructor(cW(K,W,!1))}; bU.prototype[qS]=x1;bU.prototype.toString=function(){return this.iZ.toString()};var etC=lV(function(K,W,U,h,m){if(K.X!==2)return!1;Uz(K,St(W,h,U),m);return!0},uW$),fsY=lV(function(K,W,U,h,m){if(K.X!==2)return!1; Uz(K,St(W,h,U),m);return!0},uW$),BP=Symbol(),kr=Symbol(),ih=Symbol(),qR$=Symbol(),wCF=Symbol(),Re,eUp;var lZF=XZ(function(K,W,U){if(K.X!==1)return!1;Si(W,U,Da(K.j));return!0},zo,qO_),L__=XZ(function(K,W,U){if(K.X!==1)return!1; K=Da(K.j);Si(W,U,K===0?void 0:K);return!0},zo,qO_),K3p=XZ(function(K,W,U,h){if(K.X!==1)return!1; Iz(W,U,h,Da(K.j));return!0},zo,qO_),W3s=XZ(function(K,W,U){if(K.X!==0)return!1; Si(W,U,hFC(K.j));return!0},DA,X9p),U3R=XZ(function(K,W,U){if(K.X!==0)return!1; K=hFC(K.j);Si(W,U,K===0?void 0:K);return!0},DA,X9p),h9C=XZ(function(K,W,U,h){if(K.X!==0)return!1; Iz(W,U,h,hFC(K.j));return!0},DA,X9p),jYz=XZ(function(K,W,U){if(K.X!==0)return!1; Si(W,U,lF(K.j));return!0},ts,bsR),m3Y=XZ(function(K,W,U){if(K.X!==0)return!1; K=lF(K.j);Si(W,U,K===0?void 0:K);return!0},ts,bsR),Sez=XZ(function(K,W,U,h){if(K.X!==0)return!1; Iz(W,U,h,lF(K.j));return!0},ts,bsR),f_s=XZ(function(K,W,U){if(K.X!==1)return!1; Si(W,U,bKs(K.j));return!0},function(K,W,U){B2C(K,U,ip$(W))},vt2),tsD=gE(function(K,W,U){if(K.X!==1&&K.X!==2)return!1; W=md(W,W[MX]|0,U);if(K.X==2)for(U=lF(K.j)>>>0,U=K.j.j+U;K.j.j>>0);return!0},function(K,W,U){W=n_(W); W!=null&&W!=null&&(kE(K,U,0),Y$(K.j,W))},sBs),tV=XZ(function(K,W,U){if(K.X!==0)return!1; Si(W,U,lF(K.j));return!0},function(K,W,U){W=Vh(W); W!=null&&(W=parseInt(W,10),kE(K,U,0),Fxz(K.j,W))},CMs);var ouC=new Map;g.V(ZxC,vzs);eWY.prototype.register=function(){xk(this)};g.V(R0,bU);R0.prototype.N=r0C([0,L__,U3R,-2,m3Y]);C8e.prototype.v3=function(K){var W=this.j[K.key];if(K.valueType==="proto"){try{var U=JSON.parse(W);if(Array.isArray(U))return U}catch(h){}return K.defaultValue}return typeof W===typeof K.defaultValue?W:K.defaultValue};var $Gz={Tfk:1,qH:2,GRk:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};cos.prototype.S6=function(K){if(typeof K==="string"&&K.length!=0){var W=this.Lr;if(W.X){K=K.split("&");for(var U=K.length-1;U>=0;U--){var h=K[U].split("="),m=decodeURIComponent(h[0]);h.length>1?(h=decodeURIComponent(h[1]),h=/^[0-9]+$/g.exec(h)?parseInt(h,10):h):h=1;(m=W.j[m])&&m.N(h)}}}};var Gq=null;var UB=g.qs.performance,D3z=!!(UB&&UB.mark&&UB.measure&&UB.clearMarks),hY=Tv(function(){var K;if(K=D3z){var W=W===void 0?window:W;if(Gq===null){Gq="";try{K="";try{K=W.top.location.hash}catch(h){K=W.location.hash}if(K){var U=K.match(/\bdeid=([\d,]+)/);Gq=U?U[1]:""}}catch(h){}}W=Gq;K=!!W.indexOf&&W.indexOf("1337")>=0}return K}); en.prototype.disable=function(){this.j=!1;this.events!==this.X.google_js_reporting_queue&&(hY()&&g.tD(this.events,IcF),this.events.length=0)}; en.prototype.start=function(K,W){if(!this.j)return null;var U=YvR()||z7p();K=new nbs(K,W,U);W="goog_"+K.label+"_"+K.uniqueId+"_start";UB&&hY()&&UB.mark(W);return K}; en.prototype.end=function(K){if(this.j&&typeof K.value==="number"){var W=YvR()||z7p();K.duration=W-K.value;W="goog_"+K.label+"_"+K.uniqueId+"_end";UB&&hY()&&UB.mark(W);!this.j||this.events.length>2048||this.events.push(K)}};var cgL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),QV=/#|$/,rWp=/[?&]($|#)/;Tf2.prototype.bP=function(K,W,U,h,m){m=m||this.Xl;try{var S=new uZ;S.j.push(1);S.X[1]=iZ("context",K);W.error&&W.meta&&W.id||(W=new Xw(vL(W)));if(W.msg){var f=W.msg.substring(0,512);S.j.push(2);S.X[2]=iZ("msg",f)}var G=W.meta||{};if(this.W8)try{this.W8(G)}catch(B){}if(h)try{h(G)}catch(B){}h=[G];S.j.push(3);S.X[3]=h;var I=C5$();if(I.X){var d=I.X.url||"";S.j.push(4);S.X[4]=iZ("top",d)}var J={url:I.j.url||""};if(I.j.url){var e=g.wB(I.j.url);var E=wN(e[1],null,e[3],e[4])}else E="";d=[J,{url:E}];S.j.push(5); S.X[5]=d;KLs(this.j,m,S,U)}catch(B){try{KLs(this.j,m,{context:"ecmserr",rctx:K,msg:vL(B),url:I&&I.j.url},U)}catch(D){}}return this.F_}; g.V(Xw,PNp);var cE,Oo,zb=new en;cE=new function(){var K="https:";Fl&&Fl.location&&Fl.location.protocol==="http:"&&(K="http:");this.X=K;this.j=.01}; Oo=new Tf2;Fl&&Fl.document&&(Fl.document.readyState=="complete"?JrY():zb.j&&wk(Fl,"load",function(){JrY()}));var uqR=Date.now(),q3s=-1,kU=-1,AtD,Mc=-1,CH=!1;sT.prototype.equals=function(K,W){return!!K&&(!(W===void 0?0:W)||this.volume==K.volume)&&this.N==K.N&&lE(this.j,K.j)&&!0};t9.prototype.H3=function(){return this.Y}; t9.prototype.equals=function(K,W){return this.W.equals(K.W,W===void 0?!1:W)&&this.Y==K.Y&&lE(this.N,K.N)&&lE(this.G,K.G)&&this.j==K.j&&this.U==K.U&&this.X==K.X&&this.J==K.J};var Hbp={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Sh={hQ:"start",Dh:"firstquartile",xt:"midpoint",dV:"thirdquartile",COMPLETE:"complete",ERROR:"error",cB:"metric",PAUSE:"pause",WU:"resume",OV:"skip",kP:"viewable_impression",CE:"mute",n$:"unmute",HH:"fullscreen",Uk:"exitfullscreen",rU:"bufferstart",po:"bufferfinish",Lo:"fully_viewable_audible_half_duration_impression",fE:"measurable_impression",I4:"abandon",h6:"engagedview",t6:"impression",y$:"creativeview",LOADED:"loaded", UXp:"progress",CLOSE:"close",ffV:"collapse",ClA:"overlay_resize",gVx:"overlay_unmeasurable_impression",i7k:"overlay_unviewable_impression",Mrs:"overlay_viewable_immediate_impression",jNH:"overlay_viewable_end_of_session_impression",WH:"custom_metric_viewable",f6:"audio_audible",le:"audio_measurable",xK:"audio_impression"},mqC="start firstquartile midpoint thirdquartile resume loaded".split(" "),SK2=["start","firstquartile","midpoint","thirdquartile"],s_C=["abandon"],hv={UNKNOWN:-1,hQ:0,Dh:1,xt:2, dV:3,COMPLETE:4,cB:5,PAUSE:6,WU:7,OV:8,kP:9,CE:10,n$:11,HH:12,Uk:13,Lo:14,fE:15,I4:16,h6:17,t6:18,y$:19,LOADED:20,WH:21,rU:22,po:23,xK:27,le:28,f6:29};var Xwp={kIe:"addEventListener",CT5:"getMaxSize",gFA:"getScreenSize",iKV:"getState",jCx:"getVersion",PhH:"removeEventListener",C0X:"isViewable"};I0p.prototype.update=function(K){K&&K.document&&(this.Y=$f(!1,K,this.isMobileDevice),this.j=$f(!0,K,this.isMobileDevice),gxR(this,K),ZWp(this,K))};Nt.prototype.cancel=function(){zx().clearTimeout(this.j);this.j=null}; Nt.prototype.schedule=function(){var K=this,W=zx(),U=nm().j.j;this.j=W.setTimeout(G_(U,iI(143,function(){K.X++;K.N.sample()})),O8D())};g.H=Qk.prototype;g.H.It=function(){return!1}; g.H.initialize=function(){return this.isInitialized=!0}; g.H.sD=function(){return this.j.hK}; g.H.r6=function(){return this.j.Ms}; g.H.fail=function(K,W){if(!this.Ms||(W===void 0?0:W))this.Ms=!0,this.hK=K,this.J=0,this.j!=this||ck(this)}; g.H.getName=function(){return this.j.tK}; g.H.vz=function(){return this.j.BI()}; g.H.BI=function(){return{}}; g.H.qU=function(){return this.j.J}; g.H.cw=function(){var K=Dz();K.j=$f(!0,this.N,K.isMobileDevice)}; g.H.xf=function(){ZWp(Dz(),this.N)}; g.H.Cm=function(){return this.W.j}; g.H.sample=function(){}; g.H.isActive=function(){return this.j.G}; g.H.gW=function(K){var W=this.j;this.j=K.qU()>=this.J?K:this;W!==this.j?(this.G=this.j.G,ck(this)):this.G!==this.j.G&&(this.G=this.j.G,ck(this))}; g.H.IA=function(K){if(K.X===this.j){var W=!this.W.equals(K,this.jV);this.W=K;W&&BdR(this)}}; g.H.eI=function(){return this.jV}; g.H.dispose=function(){this.DA=!0}; g.H.qs=function(){return this.DA};g.H=NJ.prototype;g.H.observe=function(){return!0}; g.H.unobserve=function(){}; g.H.kN=function(K){this.U=K}; g.H.dispose=function(){if(!this.qs()){var K=this.X;g.sS(K.U,this);K.jV&&this.eI()&&Zc$(K);this.unobserve();this.Ns=!0}}; g.H.qs=function(){return this.Ns}; g.H.vz=function(){return this.X.vz()}; g.H.qU=function(){return this.X.qU()}; g.H.sD=function(){return this.X.sD()}; g.H.r6=function(){return this.X.r6()}; g.H.gW=function(){}; g.H.IA=function(){this.Wz()}; g.H.eI=function(){return this.DA};g.H=wK.prototype;g.H.qU=function(){return this.j.qU()}; g.H.sD=function(){return this.j.sD()}; g.H.r6=function(){return this.j.r6()}; g.H.create=function(K,W,U){var h=null;this.j&&(h=this.ly(K,W,U),YQ(this.j,h));return h}; g.H.lU=function(){return this.Rt()}; g.H.Rt=function(){return!1}; g.H.init=function(K){return this.j.initialize()?(YQ(this.j,this),this.W=K,!0):!1}; g.H.gW=function(K){K.qU()==0&&this.W(K.sD(),this)}; g.H.IA=function(){}; g.H.eI=function(){return!1}; g.H.dispose=function(){this.U=!0}; g.H.qs=function(){return this.U}; g.H.vz=function(){return{}};qc.prototype.add=function(K,W,U){++this.N;K=new gvY(K,W,U);this.j.push(new gvY(K.X,K.j,K.N+this.N/4096));this.X=!0;return this};rrs.prototype.toString=function(){var K="//pagead2.googlesyndication.com//pagead/gen_204",W=CCD(this.j);W.length>0&&(K+="?"+W);return K};g.p.prototype.QA=!1;g.p.prototype.qs=function(){return this.QA}; g.p.prototype.dispose=function(){this.QA||(this.QA=!0,this.QH())}; g.p.prototype[Symbol.dispose]=function(){this.dispose()}; g.p.prototype.addOnDisposeCallback=function(K,W){this.QA?W!==void 0?K.call(W):K():(this.Iu||(this.Iu=[]),W&&(K=K.bind(W)),this.Iu.push(K))}; g.p.prototype.QH=function(){if(this.Iu)for(;this.Iu.length;)this.Iu.shift()()};var rnY=[0,W3s,GOe,-1];E0.prototype.update=function(K,W,U){K&&(this.j+=W,this.X+=W,this.W+=W,this.N=Math.max(this.N,this.W));if(U===void 0?!K:U)this.W=0};var ZhR=[1,.75,.5,.3,0];ZN.prototype.update=function(K,W,U,h,m,S){S=S===void 0?!0:S;W=m?Math.min(K,W):W;for(m=0;m0&&W>=f;f=!(K>0&&K>=f)||U;this.j[m].update(S&&G,h,!S||f)}};oc.prototype.update=function(K,W,U,h){this.Y=this.Y!=-1?Math.min(this.Y,W.v2):W.v2;this.uX=Math.max(this.uX,W.v2);this.Ns=this.Ns!=-1?Math.min(this.Ns,W.bT):W.bT;this.hK=Math.max(this.hK,W.bT);this.gk.update(W.bT,U.bT,W.j,K,h);this.Le+=K;W.v2===0&&(this.tK+=K);this.X.update(W.v2,U.v2,W.j,K,h);U=h||U.IU!=W.IU?U.isVisible()&&W.isVisible():U.isVisible();W=!W.isVisible()||W.j;this.Bp.update(U,K,W)}; oc.prototype.sL=function(){return this.Bp.N>=this.Ik};if(yp&&yp.URL){var TC$=yp.URL,a_C;a:{if(TC$){var wUD=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var If=wUD.exec(decodeURIComponent(TC$));if(If){a_C=If[1]&&If[1].length>1?If[1].substring(1):"true";break a}}catch(K){}}a_C=""}Oo.F_=!(a_C.length>0)};var QYD=new HP(0,0,0,0);var RnF=new HP(0,0,0,0);g.V(no,g.p);g.H=no.prototype; g.H.QH=function(){if(this.Zf.j){if(this.WW.Uy){var K=this.Zf.j;typeof K.removeEventListener==="function"&&K.removeEventListener("mouseover",this.WW.Uy,ag());this.WW.Uy=null}this.WW.hk&&(K=this.Zf.j,typeof K.removeEventListener==="function"&&K.removeEventListener("mouseout",this.WW.hk,ag()),this.WW.hk=null)}this.fG&&this.fG.dispose();this.B2&&this.B2.dispose();delete this.WC;delete this.QU;delete this.n6;delete this.Zf.h8;delete this.Zf.j;delete this.WW;delete this.fG;delete this.B2;delete this.Lr; g.p.prototype.QH.call(this)}; g.H.AV=function(){return this.B2?this.B2.j:this.position}; g.H.S6=function(K){nm().S6(K)}; g.H.eI=function(){return!1}; g.H.QK=function(){return new oc}; g.H.Rd=function(){return this.WC}; g.H.sJ=function(K){return $YC(this,K,1E4)}; g.H.SV=function(K,W,U,h,m,S,f){this.gB||(this.QN&&(K=this.Lz(K,U,m,f),h=h&&this.n_.v2>=(this.IU()?.3:.5),this.zO(S,K,h),this.uA=W,K.v2>0&&-1===this.Ry&&(this.Ry=W),this.l6==-1&&this.sL()&&(this.l6=W),this.MG==-2&&(this.MG=mIe(this.AV())?K.v2:-1),this.n_=K),this.QU(this))}; g.H.zO=function(K,W,U){this.Rd().update(K,W,this.n_,U)}; g.H.n0=function(){return new LR}; g.H.Lz=function(K,W,U,h){U=this.n0();U.j=W;W=zx().X;W=Rl(yp)===0?-1:W.isVisible()?0:1;U.X=W;U.v2=this.oB(K);U.IU=this.IU();U.bT=h;return U}; g.H.oB=function(K){return this.opacity===0&&Al(this.Lr,"opac")===1?0:K}; g.H.IU=function(){return!1}; g.H.d3=function(){return this.bgs||this.NHk}; g.H.D0=function(){i_()}; g.H.Fn=function(){i_()}; g.H.Gu=function(){return this.requestSource}; g.H.oN=function(){return 0}; g.H.sL=function(){return this.WC.sL()}; g.H.jc=function(){var K=this.QN;K=(this.hasCompleted||this.qs())&&!K;var W=nm().X!==2||this.YsU;return this.gB||W&&K?2:this.sL()?4:3}; g.H.PE=function(){return 0};g.Gl.prototype.next=function(){return g.dg}; g.dg={done:!0,value:void 0};g.Gl.prototype.Cv=function(){return this};g.V(nfs,LR);var JV=wnC([void 0,1,2,3,4,8,16]),eq=wnC([void 0,4,8,16]),$3s={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:ZV("p0",eq),p1:ZV("p1",eq),p2:ZV("p2",eq),p3:ZV("p3",eq),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:A9("mtos1",[0,2,4],!1,eq),mtos2:A9("mtos2",[0,2,4],!1,eq),mtos3:A9("mtos3",[0,2,4],!1,eq),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:ZV("a0",eq),a1:ZV("a1",eq),a2:ZV("a2",eq),a3:ZV("a3",eq),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:ZV("c0",eq),c1:ZV("c1",eq),c2:ZV("c2",eq),c3:ZV("c3",eq),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:ZV("qmtos",JV),qnc:ZV("qnc",JV),qmv:ZV("qmv",JV),qnv:ZV("qnv",JV), 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:ZV("ss0",eq),ss1:ZV("ss1",eq),ss2:ZV("ss2",eq),ss3:ZV("ss3",eq),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"},YeF=Object.assign({},$3s,{avid:z3("audio"),avas:"avas",vs:"vs"}),Obz={atos:"atos",avt:A9("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(K,W){return function(U){return U[K]===void 0&&W!==void 0?W:U[K]}}("ss",0), t:"t"};bC.prototype.getValue=function(){return this.X}; bC.prototype.update=function(K,W){K>=32||(this.j&1<=.5;WY(W.volume)&&(this.W=this.W!=-1?Math.min(this.W,W.volume):W.volume,this.G=Math.max(this.G,W.volume));S&&(this.DA+=K,this.jV+=m?K:0);this.j.update(W.v2,U.v2,W.j,K,h,m);this.N.update(!0,K);this.U.update(m,K);this.Ms.update(U.fullscreen,K);this.M5.update(m&&!S,K);K=Math.floor(W.mediaTime/1E3);this.eV.update(K,W.isVisible());this.Pp.update(K,W.v2>=1);this.JK.update(K, U2(W))}};sZs.prototype.X=function(K){this.N||(this.j(K)?(K=SIs(this.jV,this.W,K),this.U|=K,K=K==0):K=!1,this.N=K)};g.V(z9,sZs);z9.prototype.j=function(){return!0}; z9.prototype.G=function(){return!1}; z9.prototype.getId=function(){var K=this,W=mQ(Sh,function(U){return U==K.W}); return hv[W].toString()}; z9.prototype.toString=function(){var K="";this.G()&&(K+="c");this.N&&(K+="s");this.U>0&&(K+=":"+this.U);return this.getId()+K};g.V(pO,z9);pO.prototype.X=function(K,W){W=W===void 0?null:W;W!=null&&this.Y.push(W);z9.prototype.X.call(this,K)};g.V(CC,cys);CC.prototype.X=function(){return null}; CC.prototype.N=function(){return[]};g.V(Ai,NJ);g.H=Ai.prototype;g.H.kS=function(){if(this.element){var K=this.element,W=this.X.j.N;try{try{var U=zfF(K.getBoundingClientRect())}catch(d){U=new HP(0,0,0,0)}var h=U.right-U.left,m=U.bottom-U.top,S=tgL(K,W),f=S.x,G=S.y;var I=new HP(Math.round(G),Math.round(f+h),Math.round(G+m),Math.round(f))}catch(d){I=QYD.clone()}this.N=I;this.j=i9s(this,this.N)}}; g.H.Nv=function(){this.G=this.X.W.j}; g.H.jf=function(K){var W=Al(this.Lr,"od")==1;return SYY(K,this.G,this.element,W)}; g.H.yc=function(){this.timestamp=i_()}; g.H.Wz=function(){this.yc();this.kS();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var K=this.element;var W=new g.rt(K.videoWidth,K.videoHeight);K=this.j;var U=Hs(K),h=K.getHeight(),m=W.width;W=W.height;m<=0||W<=0||U<=0||h<=0||(m/=W,W=U/h,K=K.clone(),m>W?(U/=m,h=(h-U)/2,h>0&&(h=K.top+h,K.top=Math.round(h),K.bottom=Math.round(h+U))):(h*=m,U=Math.round((U-h)/2),U>0&&(U=K.left+U,K.left=Math.round(U),K.right=Math.round(U+h))));this.j=K}this.Nv(); K=this.j;U=this.G;K=K.left<=U.right&&U.left<=K.right&&K.top<=U.bottom&&U.top<=K.bottom?new HP(Math.max(K.top,U.top),Math.min(K.right,U.right),Math.min(K.bottom,U.bottom),Math.max(K.left,U.left)):new HP(0,0,0,0);U=K.top>=K.bottom||K.left>=K.right?new HP(0,0,0,0):K;K=this.X.W;W=m=h=0;if((this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0)if(this.jf(U))U=new HP(0,0,0,0);else{h=Dz().W;W=new HP(0,h.height,h.width,0);var S;h=X0R(U,(S=this.U)!=null?S:this.j);m=X0R(U,Dz().j);W=X0R(U,W)}S=U.top>=U.bottom|| U.left>=U.right?new HP(0,0,0,0):o$(U,-this.j.left,-this.j.top);$R()||(m=h=0);this.jV=new t9(K,this.element,this.j,S,h,m,this.timestamp,W)}; g.H.getName=function(){return this.X.getName()};var cnC=new HP(0,0,0,0);g.V(Bm,Ai);g.H=Bm.prototype;g.H.observe=function(){this.W();return!0}; g.H.IA=function(){Ai.prototype.Wz.call(this)}; g.H.yc=function(){}; g.H.kS=function(){}; g.H.Wz=function(){this.W();Ai.prototype.Wz.call(this)}; g.H.gW=function(K){K=K.isActive();K!==this.J&&(K?this.W():(Dz().j=new HP(0,0,0,0),this.j=new HP(0,0,0,0),this.G=new HP(0,0,0,0),this.timestamp=-1));this.J=K};var Ea={},Hwe=(Ea.firstquartile=0,Ea.midpoint=1,Ea.thirdquartile=2,Ea.complete=3,Ea);g.V(Hx$,no);g.H=Hx$.prototype;g.H.eI=function(){return!0}; g.H.sY=function(){return this.oo==2}; g.H.sJ=function(K){return $YC(this,K,Math.max(1E4,this.N/3))}; g.H.SV=function(K,W,U,h,m,S,f){var G=this,I=this.Y(this)||{};g.Zc(I,m);this.N=I.duration||this.N;this.jV=I.isVpaid||this.jV;this.tK=I.isYouTube||this.tK;zx();this.gk=!1;m=Ai$(this,W);uwD(this)===1&&(S=m);no.prototype.SV.call(this,K,W,U,h,I,S,f);this.Fk&&this.Fk.N&&g.tD(this.G,function(d){d.X(G)})}; g.H.zO=function(K,W,U){no.prototype.zO.call(this,K,W,U);m5(this).update(K,W,this.n_,U);this.Ik=U2(this.n_)&&U2(W);this.hK==-1&&this.Pp&&(this.hK=this.Rd().N.j);this.Ru.N=0;K=this.sL();W.isVisible()&&tm(this.Ru,"vs");K&&tm(this.Ru,"vw");WY(W.volume)&&tm(this.Ru,"am");U2(W)?tm(this.Ru,"a"):tm(this.Ru,"mut");this.OM&&tm(this.Ru,"f");W.X!=-1&&(tm(this.Ru,"bm"),W.X==1&&(tm(this.Ru,"b"),U2(W)&&tm(this.Ru,"umutb")));U2(W)&&W.isVisible()&&tm(this.Ru,"avs");this.Ik&&K&&tm(this.Ru,"avw");W.v2>0&&tm(this.Ru, "pv");QD(this,this.Rd().N.j,!0)&&tm(this.Ru,"gdr");S5(this.Rd().X,1)>=2E3&&tm(this.Ru,"pmx");this.gk&&tm(this.Ru,"tvoff")}; g.H.QK=function(){return new sU}; g.H.Rd=function(){return this.WC}; g.H.n0=function(){return new nfs}; g.H.Lz=function(K,W,U,h){K=no.prototype.Lz.call(this,K,W,U,h===void 0?-1:h);K.fullscreen=this.OM;K.paused=this.sY();K.volume=U.volume;WY(K.volume)||(this.Qg++,W=this.n_,WY(W.volume)&&(K.volume=W.volume));U=U.currentTime;K.mediaTime=U!==void 0&&U>=0?U:-1;return K}; g.H.oB=function(K){return Dz(),this.OM?1:no.prototype.oB.call(this,K)}; g.H.oN=function(){return 1}; g.H.getDuration=function(){return this.N}; g.H.jc=function(){return this.gB?2:c12(this)?5:this.sL()?4:3}; g.H.PE=function(){return this.M5?this.Rd().U.N>=2E3?4:3:2}; g.H.kN=function(K){this.B2&&this.B2.kN(K)};var n0s=g.hi();W1F.prototype.reset=function(){this.j=[];this.X=[]}; var cY=yq(W1F);g.V(OG,wK);g.H=OG.prototype;g.H.getName=function(){return(this.X?this.X:this.j).getName()}; g.H.vz=function(){return(this.X?this.X:this.j).vz()}; g.H.qU=function(){return(this.X?this.X:this.j).qU()}; g.H.init=function(K){var W=!1;(0,g.tD)(this.N,function(U){U.initialize()&&(W=!0)}); W&&(this.W=K,YQ(this.j,this));return W}; g.H.dispose=function(){(0,g.tD)(this.N,function(K){K.dispose()}); wK.prototype.dispose.call(this)}; g.H.lU=function(){return Ns(this.N,function(K){return K.It()})}; g.H.Rt=function(){return Ns(this.N,function(K){return K.It()})}; g.H.ly=function(K,W,U){return new Ai(K,this.j,W,U)}; g.H.IA=function(K){this.X=K.X};var t0p={threshold:[0,.3,.5,.75,1]};g.V(ZB,Ai);g.H=ZB.prototype;g.H.observe=function(){var K=this;this.uX||(this.uX=i_());if(j2s(298,function(){return Gwp(K)}))return!0; this.X.fail("msf");return!1}; g.H.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.Y&&(this.Y.disconnect(),this.Y=null)}catch(K){}}; g.H.Wz=function(){var K=pDC(this);K.length>0&&ds(this,K);Ai.prototype.Wz.call(this)}; g.H.kS=function(){}; g.H.jf=function(){return!1}; g.H.Nv=function(){}; g.H.vz=function(){var K={};return Object.assign(this.X.vz(),(K.niot_obs=this.uX,K.niot_cbk=this.Ms,K))}; g.H.getName=function(){return"nio"};g.V(RA,wK);RA.prototype.getName=function(){return"nio"}; RA.prototype.Rt=function(){return!Dz().X&&this.j.j.N.IntersectionObserver!=null}; RA.prototype.ly=function(K,W,U){return new ZB(K,this.j,W,U)};g.V(NO,Qk);NO.prototype.Cm=function(){return Dz().j}; NO.prototype.It=function(){var K=NUp();this.J!==K&&(this.j!=this&&K>this.j.J&&(this.j=this,ck(this)),this.J=K);return K==2};uO.prototype.sample=function(){Q7(this,zP(),!1)}; uO.prototype.W=function(){var K=$R(),W=i_();K?(CH||(q3s=W,g.tD(cY.j,function(U){var h=U.Rd();h.vp=lB(h,W,U.oo!=1)})),CH=!0):(this.Y=n4R(this,W),CH=!1,AtD=W,g.tD(cY.j,function(U){U.QN&&(U.Rd().J=W)})); Q7(this,zP(),!K)}; var gJ=yq(uO);var Cep=null,Nc="",O2=!1;var M_Y=bhz().YD,th=bhz().Sr;var WL$={Fyx:"visible",afe:"audible",BZx:"time",Jfm:"timetype"},Usp={visible:function(K){return/^(100|[0-9]{1,2})$/.test(K)}, audible:function(K){return K=="0"||K=="1"}, timetype:function(K){return K=="mtos"||K=="tos"}, time:function(K){return/^(100|[0-9]{1,2})%$/.test(K)||/^([0-9])+ms$/.test(K)}}; AWL.prototype.setTime=function(K,W,U){W=="ms"?(this.N=K,this.W=-1):(this.N=-1,this.W=K);this.U=U===void 0?"tos":U;return this};g.V(bc,z9);bc.prototype.getId=function(){return this.Y}; bc.prototype.G=function(){return!0}; bc.prototype.j=function(K){var W=K.Rd(),U=K.getDuration();return Ns(this.J,function(h){if(h.j!=void 0)var m=bA2(h,W);else b:{switch(h.U){case "mtos":m=h.X?W.U.N:W.N.j;break b;case "tos":m=h.X?W.U.j:W.N.j;break b}m=0}m==0?h=!1:(h=h.N!=-1?h.N:U!==void 0&&U>0?h.W*U:-1,h=h!=-1&&m>=h);return h})};g.V(Xz,xop);Xz.prototype.j=function(K){var W=new YfF;W.j=In(K,$3s);W.X=In(K,Obz);return W};g.V(N5,z9);N5.prototype.j=function(K){return c12(K)};g.V(Sa,cys);g.V(KO,z9);KO.prototype.j=function(K){return K.Rd().sL()};g.V(VbL,pO);VbL.prototype.j=function(K){var W=g.BX(this.Y,Al(nm().Lr,"ovms"));return!K.gB&&(K.oo!=0||W)};g.V(EU,Sa);EU.prototype.X=function(){return new VbL(this.j)}; EU.prototype.N=function(){return[new KO("viewable_impression",this.j),new N5(this.j)]};g.V(v5,Bm);v5.prototype.W=function(){var K=g.vB("ima.admob.getViewability"),W=Al(this.Lr,"queryid");typeof K==="function"&&W&&K(W)}; v5.prototype.getName=function(){return"gsv"};g.V(TJ,wK);TJ.prototype.getName=function(){return"gsv"}; TJ.prototype.Rt=function(){var K=Dz();nm();return K.X&&!1}; TJ.prototype.ly=function(K,W,U){return new v5(this.j,W,U)};g.V(Uy,Bm);Uy.prototype.W=function(){var K=this,W=g.vB("ima.bridge.getNativeViewability"),U=Al(this.Lr,"queryid");typeof W==="function"&&U&&W(U,function(h){g.Tb(h)&&K.Y++;var m=h.opt_nativeViewVisibleBounds||{},S=h.opt_nativeViewHidden;K.j=a1p(h.opt_nativeViewBounds||{});var f=K.X.W;f.j=S?cnC.clone():a1p(m);K.timestamp=h.opt_nativeTime||-1;Dz().j=f.j;h=h.opt_nativeVolume;h!==void 0&&(f.volume=h)})}; Uy.prototype.getName=function(){return"nis"};g.V($I,wK);$I.prototype.getName=function(){return"nis"}; $I.prototype.Rt=function(){var K=Dz();nm();return K.X&&!1}; $I.prototype.ly=function(K,W,U){return new Uy(this.j,W,U)};g.V(bi,Qk);g.H=bi.prototype;g.H.It=function(){return this.X.IP!=null}; g.H.BI=function(){var K={};this.eV&&(K.mraid=this.eV);this.Ns&&(K.mlc=1);K.mtop=this.X.gLp;this.Y&&(K.mse=this.Y);this.Le&&(K.msc=1);K.mcp=this.X.compatibility;return K}; g.H.l3=function(K){var W=g.Xl.apply(1,arguments);try{return this.X.IP[K].apply(this.X.IP,W)}catch(U){Tl(538,U,.01,function(h){h.method=K})}}; g.H.initialize=function(){var K=this;if(this.isInitialized)return!this.r6();this.isInitialized=!0;if(this.X.compatibility===2)return this.Y="ng",this.fail("w"),!1;if(this.X.compatibility===1)return this.Y="mm",this.fail("w"),!1;Dz().J=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?mu2(this):DD(this.N,"load",function(){zx().setTimeout(iI(292,function(){return mu2(K)}),100)},292); return!0}; g.H.cw=function(){var K=Dz(),W=ozD(this,"getMaxSize");K.j=new HP(0,W.width,W.height,0)}; g.H.xf=function(){Dz().W=ozD(this,"getScreenSize")}; g.H.dispose=function(){qoC(this);Qk.prototype.dispose.call(this)};var g0L=new function(K,W){this.key=K;this.defaultValue=W===void 0?!1:W;this.valueType="boolean"}("45378663");g.H=zv.prototype;g.H.D$=function(K){AP(K,!1);MGp(K)}; g.H.hx=function(){}; g.H.bq=function(K,W,U,h){var m=this;K=new Hx$(Fl,K,U?W:-1,7,this.bv(),this.Vc());K.nf=h;cf2(K.Lr);Xk(K.Lr,"queryid",K.nf);K.S6("");R_D(K,function(){return m.Nt.apply(m,g.z4(g.Xl.apply(0,arguments)))},function(){return m.vxX.apply(m,g.z4(g.Xl.apply(0,arguments)))}); (h=yq(MR).j)&&GAp(K,h);this.N&&(K.kN(this.N),this.N=null);K.Zf.h8&&yq(ckC);return K}; g.H.gW=function(K){switch(K.qU()){case 0:if(K=yq(MR).j)K=K.j,g.sS(K.U,this),K.jV&&this.eI()&&Zc$(K);oA();break;case 2:pB()}}; g.H.IA=function(){}; g.H.eI=function(){return!1}; g.H.vxX=function(K,W){K.gB=!0;switch(K.oN()){case 1:j1F(K,W);break;case 2:this.cR(K)}}; g.H.Krm=function(K){var W=K.Y(K);W&&(W=W.volume,K.M5=WY(W)&&W>0);rGC(K,0);return YR(K,"start",$R())}; g.H.N_=function(K,W,U){Q7(gJ,[K],!$R());return this.PM(K,W,U)}; g.H.PM=function(K,W,U){return YR(K,U,$R())}; g.H.JKH=function(K){return Oj(K,"firstquartile",1)}; g.H.wpA=function(K){K.Pp=!0;return Oj(K,"midpoint",2)}; g.H.FrU=function(K){return Oj(K,"thirdquartile",3)}; g.H.S5x=function(K){var W=Oj(K,"complete",4);yQ(K);return W}; g.H.AKk=function(K){K.oo=3;return YR(K,"error",$R())}; g.H.oh=function(K,W,U){W=$R();if(K.sY()&&!W){var h=K.Rd(),m=i_();h.J=m}Q7(gJ,[K],!W);K.sY()&&(K.oo=1);return YR(K,U,W)}; g.H.ExK=function(K,W){W=this.N_(K,W||{},"skip");yQ(K);return W}; g.H.VVx=function(K,W){AP(K,!0);return this.N_(K,W||{},"fullscreen")}; g.H.Bk5=function(K,W){AP(K,!1);return this.N_(K,W||{},"exitfullscreen")}; g.H.m$=function(K,W,U){W=K.Rd();var h=i_();W.vp=lB(W,h,K.oo!=1);Q7(gJ,[K],!$R());K.oo==1&&(K.oo=2);return YR(K,U,$R())}; g.H.sk5=function(K){Q7(gJ,[K],!$R());return K.X()}; g.H.pR=function(K){Q7(gJ,[K],!$R());this.J2(K);yQ(K);return K.X()}; g.H.Nt=function(){}; g.H.cR=function(){}; g.H.J2=function(){}; g.H.Cb=function(){}; g.H.Q2=function(){}; g.H.Vc=function(){this.j||(this.j=this.Q2());return this.j==null?new CC:new EU(this.j)}; g.H.bv=function(){return new Xz};g.V(w82,z9);w82.prototype.j=function(K){return K.PE()==4};g.V(oJ,pO);oJ.prototype.j=function(K){K=K.PE();return K==3||K==4};g.V(oG,Sa);oG.prototype.X=function(){return new oJ(this.j)}; oG.prototype.N=function(){return[new w82(this.j)]};g.V(LT,xop);LT.prototype.j=function(K){K&&(K.e===28&&(K=Object.assign({},K,{avas:3})),K.vs===4||K.vs===5)&&(K=Object.assign({},K,{vs:3}));var W=new YfF;W.j=In(K,YeF);W.X=In(K,Obz);return W};GCC.prototype.X=function(){return g.vB(this.j)};g.V(uR,zv);g.H=uR.prototype;g.H.hx=function(K,W){var U=this,h=yq(MR);if(h.j!=null)switch(h.j.getName()){case "nis":var m=Kz2(this,K,W);break;case "gsv":m=uMs(this,K,W);break;case "exc":m=XiF(this,K)}m||(W.opt_overlayAdElement?m=void 0:W.opt_adElement&&(m=wRD(this,K,W.opt_adElement,W.opt_osdId)));m&&m.oN()==1&&(m.Y==g.Ac&&(m.Y=function(S){return U.Cb(S)}),vwD(this,m,W)); return m}; g.H.Cb=function(K){K.X=0;K.DA=0;if(K.W=="h"||K.W=="n"){nm();K.JK&&(nm(),RJ(this)!="h"&&RJ(this));var W=g.vB("ima.common.getVideoMetadata");if(typeof W==="function")try{var U=W(K.nf)}catch(m){K.X|=4}else K.X|=2}else if(K.W=="b")if(W=g.vB("ytads.bulleit.getVideoMetadata"),typeof W==="function")try{U=W(K.nf)}catch(m){K.X|=4}else K.X|=2;else if(K.W=="ml")if(W=g.vB("ima.common.getVideoMetadata"),typeof W==="function")try{U=W(K.nf)}catch(m){K.X|=4}else K.X|=2;else K.X|=1;K.X||(U===void 0?K.X|=8:U===null? K.X|=16:g.Tb(U)?K.X|=32:U.errorCode!=null&&(K.DA=U.errorCode,K.X|=64));U==null&&(U={});W=U;K.J=0;for(var h in Hbp)W[h]==null&&(K.J|=Hbp[h]);glL(W,"currentTime");glL(W,"duration");WY(U.volume)&&WY()&&(U.volume*=NaN);return U}; g.H.Q2=function(){nm();RJ(this)!="h"&&RJ(this);var K=awp(this);return K!=null?new GCC(K):null}; g.H.cR=function(K){!K.j&&K.gB&&ci(this,K,"overlay_unmeasurable_impression")&&(K.j=!0)}; g.H.J2=function(K){K.Tj&&(K.sL()?ci(this,K,"overlay_viewable_end_of_session_impression"):ci(this,K,"overlay_unviewable_impression"),K.Tj=!1)}; g.H.Nt=function(){}; g.H.bq=function(K,W,U,h){if(nm().flags.v3(g0L)){var m=Al(nm().Lr,"mm"),S={};(m=(S[YUC.Pt]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",S[YUC.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",S)[m])&&E1C(this,m);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Tl(1044,Error())}K=zv.prototype.bq.call(this,K,W,U,h);this.U&&(W=this.G,K.U==null&&(K.U=new sy$),W.j[K.nf]=K.U,K.U.U=n0s);return K}; g.H.D$=function(K){K&&K.oN()==1&&this.U&&delete this.G.j[K.nf];return zv.prototype.D$.call(this,K)}; g.H.Vc=function(){this.j||(this.j=this.Q2());return this.j==null?new CC:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new oG(this.j):new EU(this.j)}; g.H.bv=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new LT:new Xz}; g.H.kN=function(K,W,U,h,m){W=new HP(U,W+h,U+m,W);(K=Ub(cY,K))?K.kN(W):this.N=W}; var F3e=k6(193,KaC,void 0,F6L);g.Vk("Goog_AdSense_Lidar_sendVastEvent",F3e);var ujs=iI(194,function(K,W){W=W===void 0?{}:W;K=tEs(yq(uR),K,W);return Lz_(K)}); g.Vk("Goog_AdSense_Lidar_getViewability",ujs);var kO_=k6(195,function(){return fkY()}); g.Vk("Goog_AdSense_Lidar_getUrlSignalsArray",kO_);var ibp=iI(196,function(){return JSON.stringify(fkY())}); g.Vk("Goog_AdSense_Lidar_getUrlSignalsList",ibp);var NTR=g.Le(["//ep2.adtrafficquality.google/sodar/",""]),AkD=g.Le(["//tpc.googlesyndication.com/sodar/",""]);g.V(cP,Error);g.V(O5,g.p);O5.prototype.s1=function(){return this.wpc.f()}; O5.prototype.py=function(K){this.wpc.c(K)}; O5.prototype.mM=function(K){return this.wpc.m(XVz(K))}; O5.prototype.jm=function(K){return this.wpc.mws(XVz(K))}; g.V(CX,g.p);CX.prototype.snapshot=function(K){return this.Mb.s(Object.assign({},K.vM&&{c:K.vM},K.KJ&&{s:K.KJ},K.RY!==void 0&&{p:K.RY}))}; CX.prototype.Qw=function(K){this.Mb.e(K)}; CX.prototype.Tc=function(){return this.Mb.l()};g.V(Mm,g.p);Mm.prototype.share=function(){if(this.qs())throw Error("E:AD");this.X++;return this}; Mm.prototype.dispose=function(){--this.X||g.p.prototype.dispose.call(this)};Q0p.prototype.JB=function(K,W){this.j.JB("/client_streamz/bg/frs",K,W)}; WyC.prototype.JB=function(K,W,U,h,m,S){this.j.JB("/client_streamz/bg/wrl",K,W,U,h,m,S)}; pw2.prototype.Vh=function(K,W){this.j.xF("/client_streamz/bg/ec",K,W)}; xwC.prototype.JB=function(K,W,U){this.j.JB("/client_streamz/bg/el",K,W,U)}; xCs.prototype.Vh=function(K,W){this.j.xF("/client_streamz/bg/cec",K,W)}; s0$.prototype.Vh=function(K,W){this.j.xF("/client_streamz/bg/po/csc",K,W)}; fEp.prototype.Vh=function(K,W){this.j.xF("/client_streamz/bg/po/ctav",K,W)}; $fF.prototype.Vh=function(K,W){this.j.xF("/client_streamz/bg/po/cwsc",K,W)};g.V(tVD,bU);g.V(m2,bU);var Sb=[1,2,3];var z9L=[0,Sb,e9R,Sez,d3C];var NCR=[0,jq,[0,lZF,W3s]];g.V(Pw,bU);var jb=[1,2,3];var AnC=[0,jb,h9C,K3p,Sq,NCR];g.V(Je,bU);var R9R=[0,jq,z9L,AnC];var yn$=[0,hV];g.V(uI,bU);var Ms2=[0,hV,-1,I_Y];var Pu2=[0,hV,-1,jYz,I_Y];g.V(VU,bU);var tPp=[1,2,3];var pUC=[0,tPp,Sq,Ms2,Sq,Pu2,Sq,yn$];g.V(hQ,bU);hQ.prototype.DL=function(){var K=O$(this,3,zG,3,!0);ic(K);return K[void 0]};hQ.prototype.N=r0C([0,hV,pUC,Jnp,jq,R9R,f_s,tsD]);g.V(EFe,bU);g.H=jd.prototype;g.H.isEnabled=function(){if(!g.qs.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.H.set=function(K,W,U){var h=!1;if(typeof U==="object"){var m=U.sameSite;h=U.secure||!1;var S=U.domain||void 0;var f=U.path||void 0;var G=U.maxAge}if(/[;=\s]/.test(K))throw Error('Invalid cookie name "'+K+'"');if(/[;\r\n]/.test(W))throw Error('Invalid cookie value "'+W+'"');G===void 0&&(G=-1);U=S?";domain="+S:"";f=f?";path="+f:"";h=h?";secure":"";G=G<0?"":G==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+G*1E3)).toUTCString();this.j.cookie=K+"="+W+U+f+G+h+(m!=null? ";samesite="+m:"")}; g.H.get=function(K,W){for(var U=K+"=",h=(this.j.cookie||"").split(";"),m=0,S;m=0;W--)this.remove(K[W])}; var lN=new jd(typeof document=="undefined"?null:document);Pc$.prototype.compress=function(K){var W,U,h,m;return g.r(function(S){switch(S.j){case 1:return W=new CompressionStream("gzip"),U=(new Response(W.readable)).arrayBuffer(),h=W.writable.getWriter(),g.T(S,h.write((new TextEncoder).encode(K)),2);case 2:return g.T(S,h.close(),3);case 3:return m=Uint8Array,g.T(S,U,4);case 4:return S.return(new m(S.X))}})}; Pc$.prototype.isSupported=function(K){return K<1024?!1:typeof CompressionStream!=="undefined"};g.V(Ob,bU);hf.prototype.setInterval=function(K){this.intervalMs=K;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; hf.prototype.start=function(){var K=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){K.tick()},this.intervalMs),this.X=this.j())}; hf.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; hf.prototype.tick=function(){var K=this;if(this.enabled){var W=Math.max(this.j()-this.X,0);W0?U:void 0));U=$a(U,4,PE(m>0?m:void 0));U=$a(U,5,PE(S>0?S:void 0));m=U.iZ;S=m[MX]|0;U=WF(U,S)?U:C6(U,m,S)?OT(U,m):new U.constructor(cW(m,S,!0));rk(f,YM,10,U)}f=this.j.clone();U=Date.now().toString();f=$a(f,4,pm(U));K=Uf(f,ct,3,K.slice());h&&(f=new I3$,h=$a(f,13,PE(h)),f=new M3s, h=rk(f,I3$,2,h),f=new wS,h=rk(f,M3s,1,h),h=a1(h,2,9),rk(K,wS,18,h));W&&cR(K,14,W);return K};g.Uu.prototype.X=0;g.Uu.prototype.reset=function(){this.j=this.N=this.W;this.X=0}; g.Uu.prototype.getValue=function(){return this.N};g.V(KC,bU);var o0F=R$(KC);g.V(Jbs,bU);var BA;BA=new eWY;g.V(mR,g.p);g.H=mR.prototype;g.H.QH=function(){jC(this);this.X.stop();this.eV.stop();g.p.prototype.QH.call(this)}; g.H.dispatch=function(K){if(K instanceof ct)this.log(K);else try{var W=new ct,U=K.ri();var h=Ya(W,8,U);this.log(h)}catch(m){cc(this,4,1)}}; g.H.log=function(K){cc(this,2,1);if(this.Le){K=K.clone();var W=this.Bp++;K=cR(K,21,W);this.componentId&&Ya(K,26,this.componentId);W=K;var U=gr(W,1);var h=h===void 0?!1:h;var m=typeof U;h=U==null?U:m==="bigint"?String(ET(64,U)):Rd(U)?m==="string"?aP(U):h?pW(U):KA(U):void 0;h==null&&(h=Date.now(),h=Number.isFinite(h)?h.toString():"0",$a(W,1,pm(h)));h=gr(W,15);h!=null&&(typeof h==="bigint"?Wi(h)?h=Number(h):(h=ET(64,h),h=Wi(h)?Number(h):String(h)):h=Rd(h)?typeof h==="number"?KA(h):aP(h):void 0);h!=null|| cR(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(h=this.experimentIds.clone(),rk(W,Ob,16,h));cc(this,1,1);W=this.j.length-1E3+1;W>0&&(this.j.splice(0,W),this.W+=W,cc(this,3,W));this.j.push(K);this.ip||this.X.enabled||this.X.start()}}; g.H.flush=function(K,W){var U=this;if(this.j.length===0)K&&K();else if(this.hK&&this.Ms)this.N.X=3,UG2(this);else{var h=Date.now();if(this.vp>h&&this.DA0&&(U.DA=Date.now(),U.vp=U.DA+E);E=Hr(r0);var a;nI&&E&&((a=B.iZ[E])==null?void 0:a[175237375])!=null&&XD(zhF,3);a:{var Q=Q===void 0?!1:Q;if(Hr(NmR)&&Hr(r0)&&void 0===NmR){a=B.iZ;E=a[r0];if(!E)break a;if(E=E.X_)try{E(a,175237375,p9s);break a}catch(u){Ar(u)}}Q&&(Q=B.iZ,(a=Hr(r0))&&a in Q&&(Q=Q[a])&&delete Q[175237375])}Q=BA.j?BA.X(B,BA.j, 175237375,BA.N):BA.X(B,175237375,null,BA.N);if(Q=Q===null?void 0:Q)Q=NB(Q,1,-1),Q!==-1&&(U.U=new g.Uu(Q<1?1:Q,3E5,.1),U.X.setInterval(U.U.getValue()))}}K&&K();U.G=0}; G?G.then(function(E){cc(U,5,m);I.requestHeaders["Content-Encoding"]="gzip";I.requestHeaders["Content-Type"]="application/binary";I.body=E;I.jZ=2;d()},function(){cc(U,6,m); d()}):d()}}}}; g.H.isRetryable=function(K){return 500<=K&&K<600||K===401||K===0};PZ.prototype.send=function(K,W,U){var h=this,m,S,f,G,I,d,J,e,E,B;return g.r(function(D){switch(D.j){case 1:return S=(m=h.vU?new AbortController:void 0)?setTimeout(function(){m.abort()},K.timeoutMillis):void 0,g.Bj(D,2,3),f=Object.assign({},{method:K.requestType, headers:Object.assign({},K.requestHeaders)},K.body&&{body:K.body},K.withCredentials&&{credentials:"include"},{signal:K.timeoutMillis&&m?m.signal:null}),g.T(D,fetch(K.url,f),5);case 5:G=D.X;if(G.status!==200){(I=U)==null||I(G.status);D.O5(3);break}if((d=W)==null){D.O5(7);break}return g.T(D,G.text(),8);case 8:d(D.X);case 7:case 3:g.VY(D);clearTimeout(S);g.vr(D,0);break;case 2:J=g.SV(D);switch((e=J)==null?void 0:e.name){case "AbortError":(E=U)==null||E(408);break;default:(B=U)==null||B(400)}D.O5(3)}})}; PZ.prototype.a9=function(){return 4};g.V(eU,g.p);eU.prototype.zG=function(){this.W=!0;return this}; eU.prototype.build=function(){this.network||(this.network=new PZ);var K=new mR({logSource:this.logSource,SE:this.SE?this.SE:S5C,sessionIndex:this.sessionIndex,C$5:this.D4,JR:this.N,ip:!1,zG:this.W,pL:this.pL,network:this.network});g.k(this,K);if(this.buildLabel){var W=this.buildLabel,U=H_(K.N);Ya(U,7,W)}K.Y=new Pc$;this.componentId&&(K.componentId=this.componentId);this.FQ&&(K.FQ=this.FQ);this.pageId&&(K.pageId=this.pageId);this.j&&((U=this.j)?(K.experimentIds||(K.experimentIds=new Ob),W=K.experimentIds, U=U.ri(),Ya(W,4,U)):K.experimentIds&&$a(K.experimentIds,4));this.X&&(K.hK=K.Ms);Ois(K.N);this.network.Y4&&this.network.Y4(this.logSource);this.network.oLk&&this.network.oLk(K);return K};g.V(PWz,g.p);PWz.prototype.flush=function(K){K=K||[];if(K.length){for(var W=new EFe,U=[],h=0;h-1?(W=K[f],U||(W.fF=!1)):(W=new j0s(W,this.src,S,!!h,m),W.fF=U,K.push(W));return W}; g.H.remove=function(K,W,U,h){K=K.toString();if(!(K in this.listeners))return!1;var m=this.listeners[K];W=wH2(m,W,U,h);return W>-1?(L$(m[W]),g.wd(m,W),m.length==0&&(delete this.listeners[K],this.j--),!0):!1}; g.H.removeAll=function(K){K=K&&K.toString();var W=0,U;for(U in this.listeners)if(!K||U==K){for(var h=this.listeners[U],m=0;m-1?K[m]:null}; g.H.hasListener=function(K,W){var U=K!==void 0,h=U?K.toString():"",m=W!==void 0;return g.LL(this.listeners,function(S){for(var f=0;f>>0);g.sJ(g.Uj,g.p);g.Uj.prototype[Y0p]=!0;g.H=g.Uj.prototype;g.H.addEventListener=function(K,W,U,h){g.p4(this,K,W,U,h)}; g.H.removeEventListener=function(K,W,U,h){oML(this,K,W,U,h)}; g.H.dispatchEvent=function(K){var W=this.HR;if(W){var U=[];for(var h=1;W;W=W.HR)U.push(W),++h}W=this.BU;h=K.type||K;if(typeof K==="string")K=new g.nO(K,W);else if(K instanceof g.nO)K.target=K.target||W;else{var m=K;K=new g.nO(h,W);g.Zc(K,m)}m=!0;var S;if(U)for(S=U.length-1;!K.X&&S>=0;S--){var f=K.currentTarget=U[S];m=Ll(f,h,!0,K)&&m}K.X||(f=K.currentTarget=W,m=Ll(f,h,!0,K)&&m,K.X||(m=Ll(f,h,!1,K)&&m));if(U)for(S=0;!K.X&&S0){this.X--;var K=this.j;this.j=K.next;K.next=null}else K=this.N();return K};var UQ;dn.prototype.add=function(K,W){var U=RlF.get();U.set(K,W);this.X?this.X.next=U:this.j=U;this.X=U}; dn.prototype.remove=function(){var K=null;this.j&&(K=this.j,this.j=this.j.next,this.j||(this.X=null),K.next=null);return K}; var RlF=new OIC(function(){return new gqs},function(K){return K.reset()}); gqs.prototype.set=function(K,W){this.j=K;this.scope=W;this.next=null}; gqs.prototype.reset=function(){this.next=this.scope=this.j=null};var V6,Aup=!1,RAp=new dn;UiY.prototype.reset=function(){this.context=this.X=this.N=this.j=null;this.W=!1}; var s8$=new OIC(function(){return new UiY},function(K){K.reset()}); g.X3.prototype.then=function(K,W,U){return UUe(this,Wz(typeof K==="function"?K:null),Wz(typeof W==="function"?W:null),U)}; g.X3.prototype.$goog_Thenable=!0;g.H=g.X3.prototype;g.H.finally=function(K){var W=this;K=Wz(K);return new g.X3(function(U,h){KOs(W,function(m){K();U(m)},function(m){K(); h(m)})})}; g.H.Df=function(K,W){return UUe(this,null,Wz(K),W)}; g.H.catch=g.X3.prototype.Df;g.H.cancel=function(K){if(this.j==0){var W=new tL(K);g.kK(function(){qd2(this,W)},this)}}; g.H.sDK=function(K){this.j=0;Qf(this,2,K)}; g.H.Eqx=function(K){this.j=0;Qf(this,3,K)}; g.H.aF=function(){for(var K;K=uap(this);)x2Y(this,K,this.j,this.Y);this.G=!1}; var bJC=Ar;g.sJ(tL,fC);tL.prototype.name="cancel";g.sJ(g.j8,g.Uj);g.H=g.j8.prototype;g.H.enabled=!1;g.H.In=null;g.H.setInterval=function(K){this.y6=K;this.In&&this.enabled?(this.stop(),this.start()):this.In&&this.stop()}; g.H.m2s=function(){if(this.enabled){var K=g.hi()-this.a_;K>0&&K0&&(this.getStatus(),this.G=setTimeout(this.bf.bind(this), this.Ms)),this.getStatus(),this.jV=!0,this.j.send(K),this.jV=!1}catch(f){this.getStatus(),O1F(this,f)}}; g.H.bf=function(){typeof tXp!="undefined"&&this.j&&(this.W="Timed out after "+this.Ms+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.H.abort=function(K){this.j&&this.N&&(this.getStatus(),this.N=!1,this.U=!0,this.j.abort(),this.U=!1,this.X=K||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),yK(this))}; g.H.QH=function(){this.j&&(this.N&&(this.N=!1,this.U=!0,this.j.abort(),this.U=!1),yK(this,!0));g.DK.j7.QH.call(this)}; g.H.KD=function(){this.qs()||(this.Ns||this.jV||this.U?GKR(this):this.n5H())}; g.H.n5H=function(){GKR(this)}; g.H.isActive=function(){return!!this.j}; g.H.isComplete=function(){return g.ez(this)==4}; g.H.getStatus=function(){try{return g.ez(this)>2?this.j.status:-1}catch(K){return-1}}; g.H.getResponseHeader=function(K){if(this.j&&this.isComplete())return K=this.j.getResponseHeader(K),K===null?void 0:K}; g.H.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};Ly.prototype.send=function(K,W,U){W=W===void 0?function(){}:W; U=U===void 0?function(){}:U; Nyz(K.url,function(h){h=h.target;bH(h)?W(g.FU(h)):U(h.getStatus())},K.requestType,K.body,K.requestHeaders,K.timeoutMillis,K.withCredentials)}; Ly.prototype.a9=function(){return 1};VH.prototype.done=function(){this.logger.XQ(this.event,L7()-this.startTime)}; g.V(Pm,Mm);g.V(kR,Pm);g.H=kR.prototype;g.H.Ff=function(){}; g.H.QB=function(){}; g.H.XQ=function(){}; g.H.Ro=function(){}; g.H.Ol=function(){}; g.H.IG=function(K,W,U,h){return h}; g.H.uN=function(){}; g.H.Mw=function(){}; g.H.rh=function(){}; g.V(A7,Pm);g.H=A7.prototype;g.H.update=function(K){this.logger.dispose();this.logger=K}; g.H.QB=function(K){this.logger.QB(K)}; g.H.XQ=function(K,W){this.logger.XQ(K,W)}; g.H.Ro=function(K){this.logger.Ro(K)}; g.H.Ol=function(){this.logger.Ol()}; g.H.IG=function(K,W,U,h){return this.logger.IG(K,W,U,h)}; g.H.uN=function(K){this.logger.uN(K)}; g.H.Mw=function(K){this.logger.Mw(K)}; g.H.rh=function(K){this.logger.rh(K)}; g.H.Ff=function(K){this.logger.Ff(K)}; g.V(s$C,g.p);g.V(u4,Pm);g.H=u4.prototype;g.H.Ff=function(K){this.metrics.jDx.JB(K,this.OP)}; g.H.QB=function(K){this.metrics.eventCount.Vh(K,this.OP)}; g.H.XQ=function(K,W){this.metrics.Ou.JB(W,K,this.OP)}; g.H.Ro=function(K){this.metrics.errorCount.Vh(K,this.OP)}; g.H.IG=function(K,W,U,h){function m(G){if(!S.qs()){var I=L7()-f;S.metrics.Qdr.JB(I,K,U,G,W,S.OP)}} var S=this,f=L7();h.then(function(){return void m(0)},function(G){return void m(G instanceof WN?G.code:-1)}); return h}; g.H.uN=function(K){this.metrics.Ng5.Vh(K,this.OP)}; g.H.Mw=function(K){this.metrics.pP.Vh(K,this.OP)}; g.H.rh=function(K){this.metrics.XNK.Vh(K,this.OP)}; g.V(UG,u4);UG.prototype.Ol=function(){UCR(this.j)};g.V(Ww,bU);g.V(U8,bU);g.V(dU,bU);var Wus=R$(dU),PI2=function(K){return HN(function(W){return W instanceof K&&!WF(W)})}(dU); dU.messageId="bfkj";g.V($E,bU);g.V(sH,bU);var pJe=R$(sH);g.V(XE,g.p);XE.prototype.snapshot=function(K){if(this.qs())throw Error("Already disposed");this.logger.QB("n");var W=this.logger.share();return this.N.then(function(U){var h=U.f$;return new Promise(function(m){var S=new VH(W,"n");h(function(f){S.done();W.Ff(f.length);W.Ol();W.dispose();m(f)},[K.vM, K.KJ,K.wT,K.RY])})})}; XE.prototype.H_=function(K){var W=this;if(this.qs())throw Error("Already disposed");this.logger.QB("n");var U=OK(this.logger,function(){return W.W([K.vM,K.KJ,K.wT,K.RY])},"n"); this.logger.Ff(U.length);this.logger.Ol();return U}; XE.prototype.Qw=function(K){this.N.then(function(W){var U;(U=W.e$X)==null||U(K)})}; XE.prototype.Tc=function(){return this.logger.share()};g.V(D$,bU);g.V(GZ,bU);LH.prototype.V2=function(K){return CSC(this,K,new kR,0)};g.V(Ry,g.p);Ry.prototype.snapshot=function(K){var W=this;return g.r(function(U){switch(U.j){case 1:if(W.qs())throw Error("Already disposed");if(W.X||W.Y){U.O5(2);break}return g.T(U,W.U.promise,2);case 2:if(!W.X){U.O5(4);break}return g.T(U,W.X.snapshot(K),5);case 5:return U.return(U.X);case 4:throw W.Y;}})}; Ry.prototype.Qw=function(K){var W,U;(W=this.X)==null||(U=W.Qw)==null||U.call(W,K)}; Ry.prototype.handleError=function(K){if(!this.qs()){this.Y=K;this.U.resolve();var W,U;(U=(W=this.options).xyk)==null||U.call(W,K)}}; Ry.prototype.Tc=function(){return this.logger.share()}; var haY={r3p:432E5,Iy:3E5,x3:10,nP:1E4,Lt:3E4,e45:3E4,c3x:6E4,ye:1E3,NP:6E4,WG:6E5,TA:.25,X$:2,maxAttempts:10};var sYp,U8s=(sYp=Math.imul)!=null?sYp:function(K,W){return K*W|0},$2=[196, 200,224,18];Cw.prototype.ri=function(){return String(this.j)+","+this.X.join()}; Cw.prototype.RQ=function(K,W){var U=void 0;if(this.X[this.j]!==K){var h=this.X.indexOf(K);h!==-1?(this.X.splice(h,1),h0;)W[U++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(K%62),K=Math.floor(K/62);return W.join("")}};g.V(eg,g.p);eg.prototype.jm=function(K,W){var U=this.mM(K);W==null||W(U);return OK(this.logger,function(){return g.o0(U,2)},this.X)}; g.V(iQ,eg);iQ.prototype.mM=function(K,W){var U=this;this.logger.QB(this.j);++this.U>=this.G&&this.N.resolve();var h=K();K=OK(this.logger,function(){return U.W(h)},"C"); if(K===void 0)throw new cP(17,"YNJ:Undefined");if(!(K instanceof Uint8Array))throw new cP(18,"ODM:Invalid");W==null||W(K);return K}; g.V(Fc,eg);Fc.prototype.mM=function(){return this.W}; g.V(gK,eg);gK.prototype.mM=function(){var K=this;return OK(this.logger,function(){return B1(K.W)},"d")}; gK.prototype.jm=function(){return this.W}; g.V(IP,eg);IP.prototype.mM=function(){if(this.W)return this.W;this.W=YsD(this,function(K){return"_"+Gjz(K)}); return YsD(this,function(K){return K})}; g.V(iV,eg);iV.prototype.mM=function(){var K=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],U=W.concat([this.W&255,this.clientState],[K>>24&255,K>>16&255,K>>8&255,K&255]);K=new Uint8Array(2+U.length);K[0]=34;K[1]=U.length;K.set(U,2);U=K.subarray(2);for(var h=W=W.length;h150))try{this.cache=new zI_(K,this.logger)}catch(W){this.reportError(new cP(22,"GBJ:init",W))}}; g.H.reportError=function(K){this.logger.Ro(K.code);this.onError(K);return K}; var lqR=function(K){return HN(function(W){if(!kus(W))return!1;for(var U=g.z(Object.entries(K)),h=U.next();!h.done;h=U.next()){var m=g.z(h.value);h=m.next().value;m=m.next().value;if(!(h in W)){if(m.qS5===!0)continue;return!1}if(!m(W[h]))return!1}return!0})}({Mb:function(K){return HN(function(W){return W instanceof K})}(Ry)},"");var wc2=(new Date).getTime();g.V(jfY,bU);var Vs2=R$(jfY);LZe.prototype.getMetadata=function(){return this.metadata};xR.prototype.getMetadata=function(){return this.metadata}; xR.prototype.getStatus=function(){return this.status};ew.prototype.Y=function(K,W){W=W===void 0?{}:W;return new LZe(K,this,W)}; ew.prototype.getName=function(){return this.name};var XUp=new ew("/google.internal.waa.v1.Waa/Create",D$,jfY,function(K){return K.ri()},Vs2);g.V(rF,bU);var xYe=new ew("/google.internal.waa.v1.Waa/GenerateIT",GZ,rF,function(K){return K.ri()},R$(rF));var Fos=new Set(["SAPISIDHASH","APISIDHASH"]);g.V(Gz,bU);Gz.prototype.getValue=function(){var K=gr(this,2);if(Array.isArray(K)||K instanceof bU)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return kI(this,2)};g.V(LbY,bU);LbY.prototype.getMessage=function(){return n6(this,2)}; var cTC=R$(LbY);rn.prototype.removeListener=function(K,W){K==="data"?Oc(this.X,W):K==="metadata"?Oc(this.W,W):K==="status"?Oc(this.U,W):K==="end"?Oc(this.N,W):K==="error"&&Oc(this.j,W);return this}; rn.prototype.cancel=function(){this.xhr.abort()}; g.V(nFp,Error);g.sJ(g.jW,s3R);g.jW.prototype.j=function(){var K=new e7(this.W,this.N);this.X&&K.setCredentialsMode(this.X);return K}; g.jW.prototype.setCredentialsMode=function(K){this.X=K}; g.sJ(e7,g.Uj);g.H=e7.prototype;g.H.open=function(K,W){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.uX=K;this.Ms=W;this.readyState=1;PQ(this)}; g.H.send=function(K){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.J.signal.aborted)throw this.abort(),Error("Request was aborted.");this.j=!0;var W={headers:this.jV,method:this.uX,credentials:this.U,cache:void 0,signal:this.J.signal};K&&(W.body=K);(this.Ns||g.qs).fetch(new Request(this.Ms,W)).then(this.Ze5.bind(this),this.kZ.bind(this))}; g.H.abort=function(){this.response=this.responseText="";this.jV=new Headers;this.status=0;this.J.abort("Request was aborted.");this.N&&this.N.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.j&&this.readyState!=4&&(this.j=!1,pT(this));this.readyState=0}; g.H.Ze5=function(K){if(this.j&&(this.W=K,this.X||(this.status=this.W.status,this.statusText=this.W.statusText,this.X=K.headers,this.readyState=2,PQ(this)),this.j&&(this.readyState=3,PQ(this),this.j)))if(this.responseType==="arraybuffer")K.arrayBuffer().then(this.tVU.bind(this),this.kZ.bind(this));else if(typeof g.qs.ReadableStream!=="undefined"&&"body"in K){this.N=K.body.getReader();if(this.G){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.Y=new TextDecoder;Sss(this)}else K.text().then(this.GmH.bind(this),this.kZ.bind(this))}; g.H.DsH=function(K){if(this.j){if(this.G&&K.value)this.response.push(K.value);else if(!this.G){var W=K.value?K.value:new Uint8Array(0);if(W=this.Y.decode(W,{stream:!K.done}))this.response=this.responseText+=W}K.done?pT(this):PQ(this);this.readyState==3&&Sss(this)}}; g.H.GmH=function(K){this.j&&(this.response=this.responseText=K,pT(this))}; g.H.tVU=function(K){this.j&&(this.response=K,pT(this))}; g.H.kZ=function(){this.j&&pT(this)}; g.H.setRequestHeader=function(K,W){this.jV.append(K,W)}; g.H.getResponseHeader=function(K){return this.X?this.X.get(K.toLowerCase())||"":""}; g.H.getAllResponseHeaders=function(){if(!this.X)return"";for(var K=[],W=this.X.entries(),U=W.next();!U.done;)U=U.value,K.push(U[0]+": "+U[1]),U=W.next();return K.join("\r\n")}; g.H.setCredentialsMode=function(K){this.U=K}; Object.defineProperty(e7.prototype,"withCredentials",{get:function(){return this.U==="include"}, set:function(K){this.setCredentialsMode(K?"include":"same-origin")}});g.FS.prototype.toString=function(){var K=[],W=this.U;W&&K.push(Oy(W,v0z,!0),":");var U=this.j;if(U||W=="file")K.push("//"),(W=this.J)&&K.push(Oy(W,v0z,!0),"@"),K.push(g.kH(U).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),U=this.N,U!=null&&K.push(":",String(U));if(U=this.X)this.j&&U.charAt(0)!="/"&&K.push("/"),K.push(Oy(U,U.charAt(0)=="/"?qe_:x3e,!0));(U=this.W.toString())&&K.push("?",U);(U=this.G)&&K.push("#",Oy(U,CuY));return K.join("")}; g.FS.prototype.resolve=function(K){var W=this.clone(),U=!!K.U;U?g.WS(W,K.U):U=!!K.J;U?W.J=K.J:U=!!K.j;U?g.Ld(W,K.j):U=K.N!=null;var h=K.X;if(U)g.T7(W,K.N);else if(U=!!K.X){if(h.charAt(0)!="/")if(this.j&&!this.X)h="/"+h;else{var m=W.X.lastIndexOf("/");m!=-1&&(h=W.X.slice(0,m+1)+h)}m=h;if(m==".."||m==".")h="";else if(g.so(m,"./")||g.so(m,"/.")){h=CL(m,"/");m=m.split("/");for(var S=[],f=0;f1||S.length==1&&S[0]!="")&&S.pop(), h&&f==m.length&&S.push("")):(S.push(G),h=!0)}h=S.join("/")}else h=m}U?W.X=h:U=K.W.toString()!=="";U?ZG(W,K.W.clone()):U=!!K.G;U&&(W.G=K.G);return W}; g.FS.prototype.clone=function(){return new g.FS(this)}; var v0z=/[#\/\?@]/g,x3e=/[#\?:]/g,qe_=/[#\?]/g,Lop=/[#\?@]/g,CuY=/#/g;g.H=vp.prototype;g.H.add=function(K,W){Dg(this);this.N=null;K=Hy(this,K);var U=this.j.get(K);U||this.j.set(K,U=[]);U.push(W);this.X=this.X+1;return this}; g.H.remove=function(K){Dg(this);K=Hy(this,K);return this.j.has(K)?(this.N=null,this.X=this.X-this.j.get(K).length,this.j.delete(K)):!1}; g.H.clear=function(){this.j=this.N=null;this.X=0}; g.H.isEmpty=function(){Dg(this);return this.X==0}; g.H.forEach=function(K,W){Dg(this);this.j.forEach(function(U,h){U.forEach(function(m){K.call(W,m,h,this)},this)},this)}; g.H.FA=function(){Dg(this);for(var K=Array.from(this.j.values()),W=Array.from(this.j.keys()),U=[],h=0;h0?String(K[0]):W}; g.H.toString=function(){if(this.N)return this.N;if(!this.j)return"";for(var K=[],W=Array.from(this.j.keys()),U=0;U>>3;S.N!=1&&S.N!=2&&S.N!=15&&pS(S,f,G,"unexpected tag");S.j=1;S.X=0;S.W=0} for(var S=this,f=K instanceof Array?K:new Uint8Array(K),G=0;G0?K:null};FA.prototype.isInputValid=function(){return this.j===null}; FA.prototype.Xh=function(){return this.j}; FA.prototype.Hf=function(){return!1}; FA.prototype.parse=function(K){this.j!==null&&V8p(this,K,"stream already broken");var W=null;try{var U=this.N;U.N||VXC(U,K,"stream already broken");U.j+=K;var h=Math.floor(U.j.length/4);if(h==0)var m=null;else{try{var S=zts(U.j.slice(0,h*4))}catch(f){VXC(U,U.j,f.message)}U.X+=h*4;U.j=U.j.slice(h*4);m=S}W=m===null?null:this.W.parse(m)}catch(f){V8p(this,K,f.message)}this.X+=K.length;return W};var L3s={INIT:0,aS:1,R$:2,cF:3,nS:4,Hy:5,STRING:6,FH:7,LH:8,G0:9,Zl:10,Yu:11,Et:12,KB:13,FW:14,Ir:15,m_:16,z0:17,eA:18,MH:19,I$:20};g.H=Cie.prototype;g.H.isInputValid=function(){return this.U!=3}; g.H.Xh=function(){return this.jV}; g.H.done=function(){return this.U===2}; g.H.Hf=function(){return!1}; g.H.parse=function(K){function W(){for(;E1||(D||(D=e===-1?S.W+K.substring(J,E):K.substring(e,E)),S.Ms?S.G.push(D):S.G.push(JSON.parse(D)),e=E)} function h(){var D=f.pop();return D!=null?D:I.aS} function m(){for(var D;;){D=K[E++];if(!D)break;S.N++;switch(S.j){case I.INIT:D==="{"?S.j=I.R$:D==="["?S.j=I.nS:h7(D)||s6(S,K,E);continue;case I.FH:case I.R$:if(h7(D))continue;if(S.j===I.FH)f.push(I.LH);else if(D==="}"){U("{}");S.j=h();continue}else f.push(I.cF);D==='"'?S.j=I.STRING:s6(S,K,E);continue;case I.LH:case I.cF:if(h7(D))continue;D===":"?(S.j===I.cF&&(f.push(I.cF),S.X++),S.j=I.aS):D==="}"?(S.X--,U(),S.j=h()):D===","?(S.j===I.cF&&f.push(I.cF),S.j=I.FH):s6(S,K,E);continue;case I.nS:case I.aS:if(h7(D))continue; if(S.j===I.nS)if(S.X++,S.j=I.aS,D==="]"){S.X--;if(S.X===0){S.j=I.Hy;return}U("[]");S.j=h();continue}else f.push(I.Hy);D==='"'?S.j=I.STRING:D==="{"?S.j=I.R$:D==="["?S.j=I.nS:D==="t"?S.j=I.G0:D==="f"?S.j=I.Et:D==="n"?S.j=I.m_:D!=="-"&&("0123456789".indexOf(D)!==-1?S.j=I.I$:s6(S,K,E));continue;case I.Hy:if(D===",")f.push(I.Hy),S.j=I.aS,S.X===1&&(e=E);else if(D==="]"){S.X--;if(S.X===0)return;U();S.j=h()}else if(h7(D))continue;else s6(S,K,E);continue;case I.STRING:var a=E;a:for(;;){for(;S.J>0;)if(D=K[E++], S.J===4?S.J=0:S.J++,!D)break a;if(D==='"'&&!S.Y){S.j=h();break}if(D==="\\"&&!S.Y&&(S.Y=!0,D=K[E++],!D))break;if(S.Y)if(S.Y=!1,D==="u"&&(S.J=1),D=K[E++])continue;else break;G.lastIndex=E;D=G.exec(K);if(!D){E=K.length+1;break}E=D.index+1;D=K[D.index];if(!D)break}S.N+=E-a;continue;case I.G0:if(!D)continue;D==="r"?S.j=I.Zl:s6(S,K,E);continue;case I.Zl:if(!D)continue;D==="u"?S.j=I.Yu:s6(S,K,E);continue;case I.Yu:if(!D)continue;D==="e"?S.j=h():s6(S,K,E);continue;case I.Et:if(!D)continue;D==="a"?S.j=I.KB: s6(S,K,E);continue;case I.KB:if(!D)continue;D==="l"?S.j=I.FW:s6(S,K,E);continue;case I.FW:if(!D)continue;D==="s"?S.j=I.Ir:s6(S,K,E);continue;case I.Ir:if(!D)continue;D==="e"?S.j=h():s6(S,K,E);continue;case I.m_:if(!D)continue;D==="u"?S.j=I.z0:s6(S,K,E);continue;case I.z0:if(!D)continue;D==="l"?S.j=I.eA:s6(S,K,E);continue;case I.eA:if(!D)continue;D==="l"?S.j=h():s6(S,K,E);continue;case I.MH:D==="."?S.j=I.I$:s6(S,K,E);continue;case I.I$:if("0123456789.eE+-".indexOf(D)!==-1)continue;else E--,S.N--,S.j= h();continue;default:s6(S,K,E)}}} for(var S=this,f=S.uX,G=S.Ns,I=L3s,d=K.length,J=0,e=-1,E=0;E0?(B=S.G,S.G=[],B):null}return null};MF.prototype.isInputValid=function(){return this.U===null}; MF.prototype.Xh=function(){return this.U}; MF.prototype.Hf=function(){return!1}; MF.prototype.parse=function(K){function W(I){S.X=6;S.U="The stream is broken @"+S.j+"/"+f+". Error: "+I+". With input:\n";throw Error(S.U);} function U(){S.N=new Cie({Q15:!0,w9:!0})} function h(I){if(I)for(var d=0;d1)&&W("extra status: "+I);S.G=!0;var d={};d[2]=I[0];S.W.push(d)}} for(var S=this,f=0;f0?(K=S.W,S.W=[],K):null};QX.prototype.RO=function(){return this.j}; QX.prototype.getStatus=function(){return this.U}; QX.prototype.Ms=function(K){K=K.target;try{if(K==this.j)a:{var W=g.ez(this.j),U=this.j.X,h=this.j.getStatus(),m=g.FU(this.j);K=[];if(g.VS(this.j)instanceof Array){var S=g.VS(this.j);S.length>0&&S[0]instanceof Uint8Array&&(this.jV=!0,K=S)}if(!(W<3||W==3&&!m&&K.length==0))if(h=h==200||h==206,W==4&&(U==8?yM(this,7):U==7?yM(this,8):h||yM(this,3)),this.X||(this.X=uHD(this.j),this.X==null&&yM(this,5)),this.U>2)GE(this);else{if(K.length>this.N){var f=K.length;U=[];try{if(this.X.Hf())for(var G=0;Gthis.N){G=m.slice(this.N);this.N=m.length;try{var d=this.X.parse(G);d!=null&&this.W&&this.W(d)}catch(J){yM(this,5);GE(this);break a}}W==4?(m.length!= 0||this.jV?yM(this,2):yM(this,4),GE(this)):yM(this,1)}}}catch(J){yM(this,6),GE(this)}};g.H=BBR.prototype;g.H.addListener=function(K,W){bD(this,K,W);return this}; g.H.removeListener=function(K,W){var U=this.X[K];U&&g.sS(U,W);(K=this.j[K])&&g.sS(K,W);return this}; g.H.once=function(K,W){var U=this.j[K];U||(U=[],this.j[K]=U);U.push(W);return this}; g.H.wlU=function(K){var W=this.X.data;W&&Hop(K,W);(W=this.j.data)&&Hop(K,W);this.j.data=[]}; g.H.jur=function(){switch(this.N.getStatus()){case 1:fy(this,"readable");break;case 5:case 6:case 4:case 7:case 3:fy(this,"error");break;case 8:fy(this,"close");break;case 2:fy(this,"end")}};QRD.prototype.serverStreaming=function(K,W,U,h){var m=this,S=K.substring(0,K.length-h.name.length);return xKz(function(f){var G=f.f8,I=f.getMetadata(),d=VWs(m,!1);I=X2$(m,I,d,S+G.getName());var J=DRs(d,G.X,!0);f=G.j(f.Ef);d.send(I,"POST",f);return J},this.B_).call(this,h.Y(W,U))};$Wz.prototype.create=function(K,W,U){var h=this.j,m=this.X+"/$rpc/google.internal.waa.v1.Waa/Create";W=W||{};U=U===void 0?{}:U;return iBp(h,m,K,W,XUp,U)};var Gd,HPe,bj$,o9C,pQC,y5R,Rw_,iSF,Wp3,eIR,EYz,r6,Qte;Gd=new kW(45724570);HPe=new kW(45730569);bj$=new kW(45732791);g.D5=new kW(45728572);g.KpI=new kW(45728933);o9C=new kW(45731083);pQC=new kW(45728553);y5R=new kW(45731831);Rw_=new kW(45731202);iSF=new kW(45725537);Wp3=new kW(45727949);eIR=new kW(45728333);EYz=new eZ(45728334);r6=new kW(45728181);Qte=new kW(45729215);var MSD=new eZ(45725542),y7F=new eZ(45725543),NcD=new eZ(45725539),Rgp=new eZ(45725541),A7s=new eZ(45725540),zgC=new eZ(45725538),k7$=new function(K,W,U,h){this.P8=K;this.qV=W;this.defaultValue=h;this.E1="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",LC("0"));var dwR="://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(" "),JKC=/\bocr\b/;var EeF=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.V(cbs,bU);g.V(vjY,bU);g.V(Jh,bU);Jh.prototype.getName=function(){return n6(this,1)}; Jh.prototype.getOptions=function(){return W_(this,vjY,3)}; Jh.prototype.clearOptions=function(){return $a(this,3)};g.V(QL,bU);g.H=QL.prototype;g.H.getName=function(){return n6(this,1)}; g.H.getOptions=function(){return W_(this,cbs,3)}; g.H.clearOptions=function(){return $a(this,3)}; g.H.dj=function(){return v1(this,6)}; g.H.J7=function(K){a1(this,6,K)};var SGz=function(K){return function(W){W=JSON.parse(W);if(!Array.isArray(W))throw Error("Expected jspb data to be an array, got "+bw(W)+": "+W);J6(W,34);return new K(W)}}(QL);var mS_=Symbol();var wA_=Symbol();Object.assign({},{attributes:{},handleError:function(K){throw K;}},{k4x:!0, exX:!0,txH:!1,G4r:aZs,ZMH:w9C,Yl5:!1,v_A:!1,XvU:!1,qlx:!0,AZp:Tm$,zxr:!1,fMA:!1,YSm:!1});var uk=null,we=!1,hJR=1,A3C=Symbol("SIGNAL"),DC={version:0,GiU:0,BM:!1,producers:void 0,Tg:void 0,RS:void 0,NJ:void 0,FP:!1,c8:!1,xS:!1,kind:"unknown",eR:function(){return!1}, t2:function(){}, SW:function(){}, Drp:function(){}};var HA=Symbol("UNSET"),rg=Symbol("COMPUTING"),Tq=Symbol("ERRORED");Object.assign({},DC,{value:HA,BM:!0,error:null,TH:ySL,kind:"computed",eR:function(K){return K.value===HA||K.value===rg}, t2:function(K){if(K.value===rg)throw Error("");var W=K.value;K.value=rg;var U=bNp(K),h=!1;try{var m=K.d9();Fd(null);h=W!==HA&&W!==Tq&&m!==Tq&&K.TH(W,m)}catch(S){m=Tq,K.error=S}finally{Fd(U),K&&tA2(K)}h?K.value=W:(K.value=m,K.version++)}});Object.assign({},DC,{xS:!0,c8:!0,BM:!0,kind:"effect"});var NH2=Object.assign({},DC,{TH:ySL,value:void 0,kind:"signal"});Object.assign({},DC,{value:HA,BM:!0,error:null,TH:ySL,kind:"linkedSignal",eR:function(K){return K.value===HA||K.value===rg}, t2:function(K){if(K.value===rg)throw Error("");var W=K.value;K.value=rg;var U=bNp(K);try{var h=K.source();var m=K.d9(h,W===HA||W===Tq?void 0:{source:K.phe,value:W});K.phe=h}catch(S){m=Tq,K.error=S}finally{Fd(U),K&&tA2(K)}W!==HA&&m!==Tq&&K.TH(W,m)?K.value=W:(K.value=m,K.version++)}});Object.assign({},DC,{xS:!0,c8:!1,SW:function(K){K.schedule!==null&&K.schedule(K.N2r)}, OMH:function(){}});g.V(Pi,g.Uj);Pi.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.EY.tD(this.U);delete Pi.instance}; Pi.prototype.nN=function(){return this.j}; Pi.prototype.TL=function(){var K=this;this.U=this.EY.C_(function(){var W;return g.r(function(U){if(U.j==1)return K.j?((W=window.navigator)==null?0:W.onLine)?U.O5(3):g.T(U,Lj(K),3):g.T(U,Lj(K),3);K.TL();g.q1(U)})},3E4)};g.V(cY_,bU);var J$p=ohe(cY_,[0,tV,rnY,jYz,tV,-2,jYz,W3s]);Nd.prototype.set=function(K,W){W=W===void 0?!0:W;0<=K&&K<52&&Number.isInteger(K)&&this.data[K]!==W&&(this.data[K]=W,this.j=-1)}; Nd.prototype.get=function(K){return!!this.data[K]};var fK_;g.sJ(g.x3,g.p);g.H=g.x3.prototype;g.H.start=function(){this.stop();this.W=!1;var K=Zd$(this),W=t_L(this);K&&!W&&this.X.mozRequestAnimationFrame?(this.j=g.p4(this.X,"MozBeforePaint",this.N),this.X.mozRequestAnimationFrame(null),this.W=!0):this.j=K&&W?K.call(this.X,this.N):this.X.setTimeout(qYp(this.N),20)}; g.H.stop=function(){if(this.isActive()){var K=Zd$(this),W=t_L(this);K&&!W&&this.X.mozRequestAnimationFrame?K1(this.j):K&&W?W.call(this.X,this.j):this.X.clearTimeout(this.j)}this.j=null}; g.H.isActive=function(){return this.j!=null}; g.H.Qi=function(){this.W&&this.j&&K1(this.j);this.j=null;this.G.call(this.U,g.hi())}; g.H.QH=function(){this.stop();g.x3.j7.QH.call(this)};g.sJ(g.QC,g.p);g.H=g.QC.prototype;g.H.Py=0;g.H.QH=function(){g.QC.j7.QH.call(this);this.stop();delete this.j;delete this.X}; g.H.start=function(K){this.stop();this.Py=g.GB(this.N,K!==void 0?K:this.y6)}; g.H.stop=function(){this.isActive()&&g.qs.clearTimeout(this.Py);this.Py=0}; g.H.isActive=function(){return this.Py!=0}; g.H.jA=function(){this.Py=0;this.j&&this.j.call(this.X)};g.V(g.VF,g.p);g.H=g.VF.prototype;g.H.CQ=function(K){this.N=arguments;this.In||this.X?this.j=!0:Ix(this)}; g.H.stop=function(){this.In&&(g.qs.clearTimeout(this.In),this.In=null,this.j=!1,this.N=null)}; g.H.pause=function(){this.X++}; g.H.resume=function(){this.X--;this.X||!this.j||this.In||(this.j=!1,Ix(this))}; g.H.QH=function(){g.p.prototype.QH.call(this);this.stop()};g.eF.prototype[Symbol.iterator]=function(){return this}; g.eF.prototype.next=function(){var K=this.j.next();return{value:K.done?void 0:this.X.call(void 0,K.value),done:K.done}};g.sJ(g.Ck,g.Uj);g.H=g.Ck.prototype;g.H.isPlaying=function(){return this.j==1}; g.H.isPaused=function(){return this.j==-1}; g.H.vC=function(){this.aP("begin")}; g.H.jx=function(){this.aP("end")}; g.H.onFinish=function(){this.aP("finish")}; g.H.onStop=function(){this.aP("stop")}; g.H.aP=function(K){this.dispatchEvent(K)};var U_3=Tv(function(){var K=g.k$("DIV"),W=g.$U?"-webkit":nC?"-moz":null,U="transition:opacity 1s linear;";W&&(U+=W+"-transition:opacity 1s linear;");W=Sd$({style:U});if(K.nodeType===1&&/^(script|style)$/i.test(K.tagName))throw Error("");K.innerHTML=IF(W);return g.$v(K.firstChild,"transition")!=""});g.sJ(dl,g.Ck);g.H=dl.prototype;g.H.play=function(){if(this.isPlaying())return!1;this.vC();this.aP("play");this.startTime=g.hi();this.j=1;if(U_3())return g.Zd(this.X,this.G),this.N=g.GB(this.AOU,void 0,this),!0;this.Ya(!1);return!1}; g.H.AOU=function(){g.nL(this.X);Ejs(this.X,this.Y);g.Zd(this.X,this.W);this.N=g.GB((0,g.wr)(this.Ya,this,!1),this.U*1E3)}; g.H.stop=function(){this.isPlaying()&&this.Ya(!0)}; g.H.Ya=function(K){g.Zd(this.X,"transition","");g.qs.clearTimeout(this.N);g.Zd(this.X,this.W);this.endTime=g.hi();this.j=0;if(K)this.onStop();else this.onFinish();this.jx()}; g.H.QH=function(){this.stop();dl.j7.QH.call(this)}; g.H.pause=function(){};var qap={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};Iw("Element","attributes")||Iw("Node","attributes");Iw("Element","innerHTML")||Iw("HTMLElement","innerHTML");Iw("Node","nodeName");Iw("Node","nodeType");Iw("Node","parentNode");Iw("Node","childNodes");Iw("HTMLElement","style")||Iw("Element","style");Iw("HTMLStyleElement","sheet");var d9R=VjR("getPropertyValue"),ezY=VjR("setProperty");Iw("Element","namespaceURI")||Iw("Node","namespaceURI");var IVY={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var KJs,ljL,LVL,CTY,WJp;KJs=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]");ljL=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.hDH=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.lCp=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]");LVL=/^http:\/\/.*/;g.j2h=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");CTY=/\s+/;WJp=/[\d\u06f0-\u06f9]/;z1.prototype.Cv=function(){return new FG(this.X())}; z1.prototype[Symbol.iterator]=function(){return new Hc(this.X())}; z1.prototype.j=function(){return new Hc(this.X())}; g.V(FG,g.Gl);FG.prototype.next=function(){return this.X.next()}; FG.prototype[Symbol.iterator]=function(){return new Hc(this.X)}; FG.prototype.j=function(){return new Hc(this.X)}; g.V(Hc,z1);Hc.prototype.next=function(){return this.N.next()};qL.prototype.clone=function(){return new qL(this.j,this.Y,this.N,this.U,this.W,this.G,this.X,this.J)}; qL.prototype.equals=function(K){return this.j==K.j&&this.Y==K.Y&&this.N==K.N&&this.U==K.U&&this.W==K.W&&this.G==K.G&&this.X==K.X&&this.J==K.J};Yo.prototype.clone=function(){return new Yo(this.start,this.end)};(function(){if(wiC){var K=/Windows NT ([0-9.]+)/;return(K=K.exec(g.i5()))?K[1]:"0"}return yS?(K=/1[0|1][_.][0-9_.]+/,(K=K.exec(g.i5()))?K[0].replace(/_/g,"."):"10"):g.q5?(K=/Android\s+([^\);]+)(\)|;)/,(K=K.exec(g.i5()))?K[1]:""):YOs||OsF||czs?(K=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(K=K.exec(g.i5()))?K[1].replace(/_/g,"."):""):""})();var Sjp=function(){if(g.aS)return TL(/Firefox\/([0-9.]+)/);if(g.Cl||g.iC||g.ws)return AJF;if(g.Nl){if(Bk()||rK()){var K=TL(/CriOS\/([0-9.]+)/);if(K)return K}return TL(/Chrome\/([0-9.]+)/)}if(g.$c&&!Bk())return TL(/Version\/([0-9.]+)/);if(rQ||ri){if(K=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.i5()))return K[1]+"."+K[2]}else if(g.K8)return(K=TL(/Android\s+([0-9.]+)/))?K:TL(/Version\/([0-9.]+)/);return""}();g.sJ(g.fj,g.p);g.H=g.fj.prototype;g.H.subscribe=function(K,W,U){var h=this.X[K];h||(h=this.X[K]=[]);var m=this.G;this.j[m]=K;this.j[m+1]=W;this.j[m+2]=U;this.G=m+3;h.push(m);return m}; g.H.unsubscribe=function(K,W,U){if(K=this.X[K]){var h=this.j;if(K=K.find(function(m){return h[m+1]==W&&h[m+2]==U}))return this.M2(K)}return!1}; g.H.M2=function(K){var W=this.j[K];if(W){var U=this.X[W];this.W!=0?(this.N.push(K),this.j[K+1]=function(){}):(U&&g.sS(U,K),delete this.j[K],delete this.j[K+1],delete this.j[K+2])}return!!W}; g.H.publish=function(K,W){var U=this.X[K];if(U){var h=Array(arguments.length-1),m=arguments.length,S;for(S=1;S0&&this.W==0)for(;U=this.N.pop();)this.M2(U)}}return S!=0}return!1}; g.H.clear=function(K){if(K){var W=this.X[K];W&&(W.forEach(this.M2,this),delete this.X[K])}else this.j.length=0,this.X={}}; g.H.QH=function(){g.fj.j7.QH.call(this);this.clear();this.N.length=0};g.jy.prototype.set=function(K,W){W===void 0?this.D1.remove(K):this.D1.set(K,g.rc(W))}; g.jy.prototype.get=function(K){try{var W=this.D1.get(K)}catch(U){return}if(W!==null)try{return JSON.parse(W)}catch(U){throw"Storage: Invalid value was encountered";}}; g.jy.prototype.remove=function(K){this.D1.remove(K)};g.sJ(im,g.jy);im.prototype.set=function(K,W){im.j7.set.call(this,K,GeC(W))}; im.prototype.xO=function(K){K=im.j7.get.call(this,K);if(K===void 0||K instanceof Object)return K;throw"Storage: Invalid value was encountered";}; im.prototype.get=function(K){if(K=this.xO(K)){if(K=K.data,K===void 0)throw"Storage: Invalid value was encountered";}else K=void 0;return K};g.sJ(aE,im);aE.prototype.set=function(K,W,U){if(W=GeC(W)){if(U){if(U=U.length)return g.dg;var m=U.key(W++);if(K)return g.JN(m);m=U.getItem(m);if(typeof m!=="string")throw"Storage mechanism: Invalid value was encountered";return g.JN(m)}; return h}; g.H.clear=function(){cu(this);this.j.clear()}; g.H.key=function(K){cu(this);return this.j.key(K)};g.sJ(NM,ST);g.sJ(OJC,ST);g.sJ(J8,d_);J8.prototype.set=function(K,W){this.X.set(this.j+K,W)}; J8.prototype.get=function(K){return this.X.get(this.j+K)}; J8.prototype.remove=function(K){this.X.remove(this.j+K)}; J8.prototype.Cv=function(K){var W=this.X[Symbol.iterator](),U=this,h=new g.Gl;h.next=function(){var m=W.next();if(m.done)return m;for(m=m.value;m.slice(0,U.j.length)!=U.j;){m=W.next();if(m.done)return m;m=m.value}return g.JN(K?m.slice(U.j.length):U.X.get(m))}; return h};YG.prototype.getValue=function(){return this.X}; YG.prototype.clone=function(){return new YG(this.j,this.X)};g.H=$G.prototype;g.H.RQ=function(K,W){var U=this.j;U.push(new YG(K,W));K=U.length-1;W=this.j;for(U=W[K];K>0;){var h=K-1>>1;if(W[h].j>U.j)W[K]=W[h],K=h;else break}W[K]=U}; g.H.remove=function(){var K=this.j,W=K.length,U=K[0];if(!(W<=0)){if(W==1)K.length=0;else{K[0]=K.pop();K=0;W=this.j;for(var h=W.length,m=W[K];K>1;){var S=K*2+1,f=K*2+2;S=fm.j)break;W[K]=W[S];K=S}W[K]=m}return U.getValue()}}; g.H.hC=function(){for(var K=this.j,W=[],U=K.length,h=0;h>>16&65535|0;for(var S;U!==0;){S=U>2E3?2E3:U;U-=S;do m=m+W[h++]|0,K=K+m|0;while(--S);m%=65521;K%=65521}return m|K<<16|0};for(var ya={},af,Ge4=[],wg=0;wg<256;wg++){af=wg;for(var Izn=0;Izn<8;Izn++)af=af&1?3988292384^af>>>1:af>>>1;Ge4[wg]=af}ya=function(K,W,U,h){U=h+U;for(K^=-1;h>>8^Ge4[(K^W[h])&255];return K^-1};var bj={};bj={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 AK=[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],yL=[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],u1$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H8$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Mw=Array(576);X2(Mw);var Pu=Array(60);X2(Pu);var h3=Array(512);X2(h3);var UM=Array(256);X2(UM);var Nw=Array(29);X2(Nw);var RN=Array(30);X2(RN);var nGp,gG$,FqD,c_s=!1;var Z5;Z5=[new P7(0,0,0,0,function(K,W){var U=65535;for(U>K.GJ-5&&(U=K.GJ-5);;){if(K.Kg<=1){M7(K);if(K.Kg===0&&W===0)return 1;if(K.Kg===0)break}K.Oz+=K.Kg;K.Kg=0;var h=K.OC+U;if(K.Oz===0||K.Oz>=h)if(K.Kg=K.Oz-h,K.Oz=h,mB(K,!1),K.VX.C5===0)return 1;if(K.Oz-K.OC>=K.Ac-262&&(mB(K,!1),K.VX.C5===0))return 1}K.RQ=0;if(W===4)return mB(K,!0),K.VX.C5===0?3:4;K.Oz>K.OC&&mB(K,!1);return 1}), new P7(4,4,8,4,yH$),new P7(4,5,16,8,yH$),new P7(4,6,32,32,yH$),new P7(4,4,16,16,gL),new P7(8,16,32,32,gL),new P7(8,16,128,128,gL),new P7(8,32,128,256,gL),new P7(32,128,258,1024,gL),new P7(32,258,258,4096,gL)];var ODs={};ODs=function(){this.input=null;this.DR=this.wg=this.mx=0;this.output=null;this.WK=this.C5=this.RK=0;this.msg="";this.state=null;this.U1=2;this.n5=0};var k0C=Object.prototype.toString; ij.prototype.push=function(K,W){var U=this.VX,h=this.options.chunkSize;if(this.ended)return!1;var m=W===~~W?W:W===!0?4:0;typeof K==="string"?U.input=dRC(K):k0C.call(K)==="[object ArrayBuffer]"?U.input=new Uint8Array(K):U.input=K;U.mx=0;U.wg=U.input.length;do{U.C5===0&&(U.output=new Ji.GM(h),U.RK=0,U.C5=h);K=QiC(U,m);if(K!==1&&K!==0)return this.jx(K),this.ended=!0,!1;if(U.C5===0||U.wg===0&&(m===4||m===2))if(this.options.to==="string"){var S=Ji.E6(U.output,U.RK);W=S;S=S.length;if(S<65537&&(W.subarray&& tpn||!W.subarray))W=String.fromCharCode.apply(null,Ji.E6(W,S));else{for(var f="",G=0;G0||U.C5===0)&&K!==1);if(m===4)return(U=this.VX)&&U.state?(h=U.state.status,h!==42&&h!==69&&h!==73&&h!==91&&h!==103&&h!==113&&h!==666?K=za(U,-2):(U.state=null,K=h===113?za(U,-3):0)):K=-2,this.jx(K),this.ended=!0,K===0;m===2&&(this.jx(0),U.C5=0);return!0}; ij.prototype.jx=function(K){K===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Ji.hU(this.chunks));this.chunks=[];this.err=K;this.msg=this.VX.msg};var PS="@@redux/INIT"+KY(),EnC="@@redux/REPLACE"+KY();var BsR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var d_O=[0,E0L,-3,f2];g.V(oRR,bU);var OXC=ohe(oRR,[0,tV,BCz,hV,E0L,hV,-1,f2,E0L,f2,-1,tV,f2,BCz,jq,d_O,hV,-1,f2]);var $hL=1888677666;var JFh=function(K,W){return function(){var U=new ZxC(K,W,zL);return function(){return U}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var m72=new g.aM("adInfoDialogEndpoint");var jaz=new g.aM("adPingingEndpoint");var p5Y=new g.aM("crossDeviceProgressCommand");var qo=new g.aM("actionCompanionAdRenderer");var d2=new g.aM("adActionInterstitialRenderer");var eDn=new g.aM("adDurationRemainingRenderer");var gO=new g.aM("adHoverTextButtonRenderer");var qNs=new g.aM("adInfoDialogRenderer");var LQ=new g.aM("adMessageRenderer");var m$=new g.aM("adPreviewRenderer");var Mz=new g.aM("adsEngagementPanelRenderer");var XxR=new g.aM("dismissablePanelTextPortraitImageRenderer");var Gb=new g.aM("adsEngagementPanelSectionListViewModel");var EC3=new g.aM("flyoutCtaRenderer");var P5=new g.aM("imageCompanionAdRenderer");var fq=new g.aM("instreamAdPlayerOverlayRenderer");var UQ_=new g.aM("instreamSurveyAdBackgroundImageRenderer");var jK=new g.aM("instreamSurveyAdPlayerOverlayRenderer");var Jo=new g.aM("instreamSurveyAdRenderer"),Fx=new g.aM("instreamSurveyAdSingleSelectQuestionRenderer"),uy=new g.aM("instreamSurveyAdMultiSelectQuestionRenderer"),Q1=new g.aM("instreamSurveyAdAnswerRenderer"),B$3=new g.aM("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var iY=new g.aM("instreamVideoAdRenderer");var D_W=new g.aM("textOverlayAdContentRenderer"),HRt=new g.aM("enhancedTextOverlayAdContentRenderer"),rFZ=new g.aM("imageOverlayAdContentRenderer");var ZuR=new g.aM("playerOverlayLayoutRenderer");var buC=new g.aM("videoInterstitialButtonedCenteredLayoutRenderer");var $wC=new g.aM("aboveFeedAdLayoutRenderer");var Okp=new g.aM("belowPlayerAdLayoutRenderer");var HMR=new g.aM("inPlayerAdLayoutRenderer");var wus=new g.aM("inPlayerOrganicOverlayAdLayoutRenderer");var SK=new g.aM("playerBytesAdLayoutRenderer");var FY=new g.aM("playerBytesSequenceItemAdLayoutRenderer");var Wy=new g.aM("playerUnderlayAdLayoutRenderer");var Ic=new g.aM("adIntroRenderer");var GJ=new g.aM("playerBytesSequentialLayoutRenderer");var ElF=new g.aM("slidingTextPlayerOverlayRenderer");var ej=new g.aM("surveyTextInterstitialRenderer");var Dj=new g.aM("videoAdTrackingRenderer");var cJs=new g.aM("videoInterstitialCenteredLayoutViewModel");var T$n=new g.aM("simpleAdBadgeRenderer");var vW=new g.aM("skipAdRenderer"),azF=new g.aM("skipButtonRenderer");var vX=new g.aM("adSlotRenderer");var $F=new g.aM("squeezebackPlayerSidePanelRenderer");var wsI=new g.aM("timedPieCountdownRenderer");var G5=new g.aM("adAvatarViewModel");var Io=new g.aM("adBadgeViewModel");var dP=new g.aM("adButtonViewModel");var Q2I=new g.aM("adDetailsLineViewModel");var $_O=new g.aM("adDisclosureBannerViewModel");var YYt=new g.aM("adPodIndexViewModel");var ORf=new g.aM("imageBackgroundViewModel");var cFh=new g.aM("adGridCardCollectionViewModel");var nCW=new g.aM("adGridCardTextViewModel");var gCI=new g.aM("adPreviewViewModel");var FpN=new g.aM("playerAdAvatarLockupCardButtonedViewModel");var uL4=new g.aM("skipAdButtonViewModel");var ke3=new g.aM("skipAdViewModel");var iRh=new g.aM("timedPieCountdownViewModel");var zDh=new g.aM("visitAdvertiserLinkViewModel");var gO2=new g.aM("bannerImageLayoutViewModel");var F4e=new g.aM("topBannerImageTextIconButtonedLayoutViewModel");var uvD=new g.aM("adsEngagementPanelLayoutViewModel");var IT=new g.aM("displayUnderlayTextGridCardsLayoutViewModel");g.d3=new g.aM("browseEndpoint");var N$W=new g.aM("confirmDialogEndpoint");var X6D=new g.aM("commandContext");var uBF=new g.aM("rawColdConfigGroup");var FkC=new g.aM("rawHotConfigGroup");g.W$=new g.aM("commandExecutorCommand");g.V(JGs,bU);var ncC={ukx:0,DUK:1,Zns:32,JRA:61,ILs:67,seA:103,w1r:86,G_k:42,YLH:60,nnA:62,BPr:73,SLH:76,Enx:88,K85:90,RnK:99,enK:98,F8V:100,ARU:102,onk:41,PbV:69,fLU:70,cRm:71,w0m:2,sPx:27,ANDROID:3,fgp:54,x$p:14,b1m:91,lgm:55,Cu5:24,gMX:20,i1K:18,M$p:21,pSr:104,XSx:30,WZU:29,T_k:28,One:101,O1K:34,QoU:36,joK:38,IOS:5,YXU:15,K4K:92,vrr:40,ACV:25,B4V:17,JCx:19,VDU:64,wYp:66,sCx:26,IU5:22,Rar:33,ork:68,P0e:35,ErK:53,F4m:37,SX5:39,RIU:7,ooX:57,PAU:43,cfk:59,fC5:93,yDe:74,xRr:75,lCV:85,CAm:65,in5:80,jeX:8,FJ5:10, p1s:58,MqU:63,gox:72,N_x:23,Cbe:11,gnp:13,RFU:12,ICx:16,tqe:56,VqU:31,AFp:77,MDH:84,vnU:87,rCr:89,pYp:94,nVk:95};g.V(zB,bU);zB.prototype.BG=function(){return n6(this,3)}; zB.prototype.IF=function(){return n6(this,5)}; zB.prototype.LM=function(K){return Ya(this,5,K)};g.V(pj,bU);g.V(OCD,bU);g.V(sD,bU);g.H=sD.prototype;g.H.getDeviceId=function(){return n6(this,6)}; g.H.wW=function(K){var W=O$(this,9,Vh,3,!0);ic(W,K);return W[K]}; g.H.getPlayerType=function(){return v1(this,36)}; g.H.setHomeGroupInfo=function(K){return rk(this,OCD,81,K)}; g.H.clearLocationPlayabilityToken=function(){return $a(this,89)};g.V(xr,bU);xr.prototype.getValue=function(){return n6(this,iKp(this,fGp,2))}; var fGp=[2,3,4,5,6];g.V(am,bU);am.prototype.setTrackingParams=function(K){return $a(this,1,TF$(K,!1))};g.V(Mt,bU);g.V(Ma,bU);Ma.prototype.wW=function(K){var W=O$(this,5,n_,3,!0);ic(W,K);return W[K]};g.V(mH,bU);mH.prototype.getToken=function(){return aQ(this,2)}; mH.prototype.setToken=function(K){return Ya(this,2,K)};g.V(RT,bU);RT.prototype.setSafetyMode=function(K){return a1(this,5,K)};g.V(sI,bU);sI.prototype.Zs=function(K){return rk(this,sD,1,K)};var Cc=new g.aM("thumbnailLandscapePortraitRenderer");g.AFh=new g.aM("changeEngagementPanelVisibilityAction");var sOD=new g.aM("continuationCommand");g.RDb=new g.aM("openPopupAction");var Yy_=new g.aM("signalAction");g.$z=new g.aM("webCommandMetadata");var cHC=new g.aM("metadataBadgeRenderer");var b8e=new g.aM("signalServiceEndpoint");var Fn=new g.aM("innertubeCommand");var elC=new g.aM("loggingDirectives");var gQY={tvK:"EMBEDDED_PLAYER_MODE_UNKNOWN",kPk:"EMBEDDED_PLAYER_MODE_DEFAULT",epp:"EMBEDDED_PLAYER_MODE_PFP",qCk:"EMBEDDED_PLAYER_MODE_PFL"};var p$p=new g.aM("channelThumbnailEndpoint");var zAC=new g.aM("embeddedPlayerErrorMessageRenderer");var gSY=new g.aM("embeddedPlayerOverlayVideoDetailsRenderer"),okC=new g.aM("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),ZoL=new g.aM("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var i8p=new g.aM("embedsInfoPanelRenderer");var myD=new g.aM("feedbackEndpoint");var yFh=new g.aM("callToActionButtonViewModel");var MpF=new g.aM("interactionLoggingCommandMetadata");var WkR={qL5:"WEB_DISPLAY_MODE_UNKNOWN",L8x:"WEB_DISPLAY_MODE_BROWSER",zne:"WEB_DISPLAY_MODE_MINIMAL_UI",k_K:"WEB_DISPLAY_MODE_STANDALONE",mU5:"WEB_DISPLAY_MODE_FULLSCREEN"};g.V(A1,bU);A1.prototype.getPlayerType=function(){return v1(this,7)}; A1.prototype.G7=function(){return n6(this,19)}; A1.prototype.setVideoId=function(K){return Ya(this,19,K)};g.V(qxL,bU);g.V(VD,bU);g.V(S0,bU); var PsO=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var pst=new g.aM("loggingContext");g.V(IGY,bU);g.V(l6,bU);l6.prototype.G7=function(){return aQ(this,iKp(this,u7,1))}; l6.prototype.setVideoId=function(K){return dB(this,1,u7,Jc(K))}; l6.prototype.getPlaylistId=function(){return aQ(this,iKp(this,u7,2))}; var u7=[1,2];g.V(SJs,bU);var oC4=new g.aM("dismissPlayerOverlayCommand");var ht=new g.aM("changeKeyedMarkersVisibilityCommand");var ZR3=new g.aM("changeMarkersVisibilityCommand");var gN$=new g.aM("loadMarkersCommand");var bRW=new g.aM("suggestedActionDataViewModel");var ZU$=new g.aM("timelyActionViewModel");var oqz=new g.aM("timelyActionsOverlayViewModel");var N7p=new g.aM("productListItemRenderer");var s2W=new g.aM("shoppingOverlayRenderer");var uP$=new g.aM("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var VpF=new g.aM("adFeedbackEndpoint");var Xsv=new g.aM("menuEndpoint");var hlF=new g.aM("phoneDialerEndpoint");var Wv$=new g.aM("sendSmsEndpoint");var mhY=new g.aM("copyTextEndpoint");var vCj=new g.aM("shareEndpoint"),qYj=new g.aM("shareEntityEndpoint"),x_F=new g.aM("shareEntityServiceEndpoint"),CsF=new g.aM("webPlayerShareEntityServiceEndpoint");g.ok=new g.aM("urlEndpoint");g.fw=new g.aM("watchEndpoint");var lzn=new g.aM("watchPlaylistEndpoint");g.Lpb=new g.aM("offlineOrchestrationActionCommand");var ZeY=new g.aM("compositeVideoOverlayRenderer");var Kjv=new g.aM("miniplayerRenderer");var Mep=new g.aM("paidContentOverlayRenderer");var PJD=new g.aM("playerMutedAutoplayOverlayRenderer"),pWD=new g.aM("playerMutedAutoplayEndScreenRenderer");var eb$=new g.aM("unserializedPlayerResponse"),iPp=new g.aM("unserializedPlayerResponse");var Wjh=new g.aM("playlistEditEndpoint");var Yz;g.Jy=new g.aM("buttonRenderer");Yz=new g.aM("toggleButtonRenderer");var vGp=new g.aM("counterfactualRenderer");var Uv4=new g.aM("resolveUrlCommandMetadata");var hOZ=new g.aM("modifyChannelNotificationPreferenceEndpoint");var hce=new g.aM("pingingEndpoint");var jFO=new g.aM("unsubscribeEndpoint");g.pu=new g.aM("subscribeButtonRenderer");var mvb=new g.aM("subscribeEndpoint");var Vyp=new g.aM("buttonViewModel");var QKs=new g.aM("qrCodeRenderer");var oWC={WRX:"LIVING_ROOM_APP_MODE_UNSPECIFIED",X0e:"LIVING_ROOM_APP_MODE_MAIN",QPr:"LIVING_ROOM_APP_MODE_KIDS",NQK:"LIVING_ROOM_APP_MODE_MUSIC",yFp:"LIVING_ROOM_APP_MODE_UNPLUGGED",blp:"LIVING_ROOM_APP_MODE_GAMING"};var $ID=new g.aM("autoplaySwitchButtonRenderer");var $e,xAF,Y7_,q9z;$e=new g.aM("decoratedPlayerBarRenderer");xAF=new g.aM("chapteredPlayerBarRenderer");Y7_=new g.aM("multiMarkersPlayerBarRenderer");q9z=new g.aM("chapterRenderer");g.rMz=new g.aM("markerRenderer");var Mi_=new g.aM("decoratedPlayheadRenderer");var OPC=new g.aM("desktopOverlayConfigRenderer");var $L2=new g.aM("engagementPanelSectionListRenderer");var Yx$=new g.aM("gatedActionsOverlayViewModel");var $12=new g.aM("heatMarkerRenderer");var wNC=new g.aM("heatmapRenderer");var nNC=new g.aM("watchToWatchTransitionRenderer");var kdp=new g.aM("playlistPanelRenderer");var SWN=new g.aM("productUpsellSuggestedActionViewModel");var fHn=new g.aM("suggestedActionTimeRangeTrigger"),tfv=new g.aM("suggestedActionsRenderer"),GnW=new g.aM("suggestedActionRenderer");var OGs=new g.aM("timedMarkerDecorationRenderer");var kes=new g.aM("cipher");var EbC=new g.aM("playerVars");var zTC=new g.aM("playerVars");var Oa=g.qs.window,IHI,dvv,Bq=(Oa==null?void 0:(IHI=Oa.yt)==null?void 0:IHI.config_)||(Oa==null?void 0:(dvv=Oa.ytcfg)==null?void 0:dvv.data_)||{};g.Vk("yt.config_",Bq);var go=[];var Mjs=/^[\w.]*$/,j7C={q:!0,search_query:!0},hpp=String(Ii);var tmD=new function(){var K=window.document;this.j=window;this.X=K}; g.Vk("yt.ads_.signals_.getAdSignalsString",function(K){return r4(ab(K))});g.hi();var yrL="XMLHttpRequest"in g.qs?function(){return new XMLHttpRequest}:null;var JIn="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.z4(JIn);var wbp={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"},SAz="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.z4(JIn)),x9C=!1,CD$=iJ;g.V(Tm,fC);s4.prototype.then=function(K,W,U){return this.j?this.j.then(K,W,U):this.N===1&&K?(K=K.call(U,this.X))&&typeof K.then==="function"?K:EM(K):this.N===2&&W?(K=W.call(U,this.X))&&typeof K.then==="function"?K:pC(K):this}; s4.prototype.getValue=function(){return this.X}; s4.prototype.$goog_Thenable=!0;var CY=!1;var iy=rQ||ri;var Ke2=/^([0-9\.]+):([0-9\.]+)$/;g.V(XzL,fC);XzL.prototype.name="BiscottiError";g.V(Dp,fC);Dp.prototype.name="BiscottiMissingError";var IlC={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},H$=null;var Piz=g.Le(["data-"]),WTL={};var eOt=0,iB=g.$U?"webkit":nC?"moz":g.Cl?"ms":g.ws?"o":"",E4n=g.vB("ytDomDomGetNextId")||function(){return++eOt}; g.Vk("ytDomDomGetNextId",E4n);var vMp={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};xm.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; xm.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; xm.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Ij=g.qs.ytEventsEventsListeners||{};g.Vk("ytEventsEventsListeners",Ij);var Z4s=g.qs.ytEventsEventsCounter||{count:0};g.Vk("ytEventsEventsCounter",Z4s);var DPz=Tv(function(){var K=!1;try{var W=Object.defineProperty({},"passive",{get:function(){K=!0}}); window.addEventListener("test",null,W)}catch(U){}return K}),b4R=Tv(function(){var K=!1; try{var W=Object.defineProperty({},"capture",{get:function(){K=!0}}); window.addEventListener("test",null,W)}catch(U){}return K});var cA;cA=window;g.AI=cA.ytcsi&&cA.ytcsi.now?cA.ytcsi.now:cA.performance&&cA.performance.timing&&cA.performance.now&&cA.performance.timing.navigationStart?function(){return cA.performance.timing.navigationStart+cA.performance.now()}:function(){return(new Date).getTime()};g.sJ(Wp,g.p);Wp.prototype.jV=function(K){K.j===void 0&&x1p(K);var W=K.j;K.X===void 0&&x1p(K);this.j=new g.SA(W,K.X)}; Wp.prototype.AV=function(){return this.j||new g.SA}; Wp.prototype.Ms=function(){if(this.j){var K=(0,g.AI)();if(this.W!=0){var W=this.G,U=this.j,h=W.x-U.x;W=W.y-U.y;h=Math.sqrt(h*h+W*W)/(K-this.W);this.X[this.N]=Math.abs((h-this.U)/this.U)>.5?1:0;for(U=W=0;U<4;U++)W+=this.X[U]||0;W>=3&&this.Y();this.U=h}this.W=K;this.G=this.j;this.N=(this.N+1)%4}}; Wp.prototype.QH=function(){g.Pa(this.J);g.d9(this.uX)};g.V(jg,g.p);jg.prototype.S=function(K,W,U,h,m){U=g.kQ((0,g.wr)(U,h||this.Qg));U={target:K,name:W,callback:U};var S;m&&DPz()&&(S={passive:!0});K.addEventListener(W,U.callback,S);this.G.push(U);return U}; jg.prototype.GK=function(K){for(var W=0;W=Z.N3)||Q.j.version>=x||Q.j.objectStoreNames.contains(A)||O.push(A)}I=O;if(I.length===0){a.O5(5);break}d=Object.keys(U.options.gP); J=G.objectStoreNames();if(U.UU.options.version+1)throw E.close(),U.N=!1,$lC(U,B);return a.return(E);case 8:throw W(), e instanceof Error&&!g.hc("ytidb_async_stack_killswitch")&&(e.stack=e.stack+"\n"+f.substring(f.indexOf("\n")+1)),ol(e,U.name,"",(D=U.options.version)!=null?D:-1);}})} function W(){U.j===h&&(U.j=void 0)} var U=this;if(!this.N)throw $lC(this);if(this.j)return this.j;var h,m={blocking:function(S){S.close()}, closed:W,D2p:W,upgrade:this.options.upgrade};return this.j=h=K()};var OS=new mh("YtIdbMeta",{gP:{databases:{N3:1}},upgrade:function(K,W){W(1)&&g.jk(K,"databases",{keyPath:"actualName"})}});var lX,pzL=new function(){}(new function(){});new g.JW;g.V(pc,mh);pc.prototype.X=function(K,W,U){U=U===void 0?{}:U;return(this.options.shared?mBe:$js)(K,W,Object.assign({},U))}; pc.prototype.delete=function(K){K=K===void 0?{}:K;return(this.options.shared?Drs:Nbe)(this.name,K)};var $vH={},L8C=g.Yq("ytGcfConfig",{gP:($vH.coldConfigStore={N3:1},$vH.hotConfigStore={N3:1},$vH),shared:!1,upgrade:function(K,W){W(1)&&(g.Ol(g.jk(K,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Ol(g.jk(K,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.V(y8,g.p);y8.prototype.QH=function(){for(var K=g.z(this.X),W=K.next();!W.done;W=K.next()){var U=this.j;W=U.indexOf(W.value);W>=0&&U.splice(W,1)}this.X.length=0;g.p.prototype.QH.call(this)};sF.prototype.LM=function(K){this.hotHashData=K;g.Vk("yt.gcf.config.hotHashData",this.hotHashData||null)};var YWF=typeof TextEncoder!=="undefined"?new TextEncoder:null,u3s=YWF?function(K){return YWF.encode(K)}:function(K){K=g.Zv(K); for(var W=new Uint8Array(K.length),U=0;U=W?!1:!0}; g.H.cj=function(){var K=this;if(!YP(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.oQ.EJ("QUEUED",this.ow).then(function(W){W&&!K.Ij(W,K.YH)?K.EY.C_(function(){return g.r(function(U){if(U.j==1)return W.id===void 0?U.O5(2):g.T(U,K.oQ.pJ(W.id,K.ow),2);K.cj();g.q1(U)})}):K.LN.nN()&&K.pS()})};var $q;var bC_={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,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72, visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531};var cIb={},sCL=g.Yq("ServiceWorkerLogsDatabase",{gP:(cIb.SWHealthLog={N3:1},cIb),shared:!0,upgrade:function(K,W){W(1)&&g.Ol(g.jk(K,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var gS={},t8L=0;var JQz;oi.prototype.requestComplete=function(K,W){W&&(this.X=!0);K=this.removeParams(K);this.j.get(K)||this.j.set(K,W)}; oi.prototype.isEndpointCFR=function(K){K=this.removeParams(K);return(K=this.j.get(K))?!1:K===!1&&this.X?!0:null}; oi.prototype.removeParams=function(K){return K.split("?")[0]}; oi.prototype.removeParams=oi.prototype.removeParams;oi.prototype.isEndpointCFR=oi.prototype.isEndpointCFR;oi.prototype.requestComplete=oi.prototype.requestComplete;oi.getInstance=Xg;g.V(wn,g.Uj);g.H=wn.prototype;g.H.nN=function(){return this.j.nN()}; g.H.HD=function(K){this.j.j=K}; g.H.yKk=function(){var K=window.navigator.onLine;return K===void 0?!0:K}; g.H.CP=function(){this.X=!0}; g.H.listen=function(K,W){return this.j.listen(K,W)}; g.H.Ma=function(K){K=Lj(this.j,K);K.then(function(W){g.hc("use_cfr_monitor")&&Xg().requestComplete("generate_204",W)}); return K}; wn.prototype.sendNetworkCheckRequest=wn.prototype.Ma;wn.prototype.listen=wn.prototype.listen;wn.prototype.enableErrorFlushing=wn.prototype.CP;wn.prototype.getWindowStatus=wn.prototype.yKk;wn.prototype.networkStatusHint=wn.prototype.HD;wn.prototype.isNetworkAvailable=wn.prototype.nN;wn.getInstance=Nq2;g.V(g.Qh,g.Uj);g.Qh.prototype.nN=function(){var K=g.vB("yt.networkStatusManager.instance.isNetworkAvailable");return K?K.bind(this.X)():!0}; g.Qh.prototype.HD=function(K){var W=g.vB("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);W&&W(K)}; g.Qh.prototype.Ma=function(K){var W=this,U;return g.r(function(h){U=g.vB("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.X);return g.hc("skip_network_check_if_cfr")&&Xg().isEndpointCFR("generate_204")?h.return(new Promise(function(m){var S;W.HD(((S=window.navigator)==null?void 0:S.onLine)||!0);m(W.nN())})):U?h.return(U(K)):h.return(!0)})};var BG;g.V(bn,Em);bn.prototype.writeThenSend=function(K,W){W||(W={});W=hT(K,W);g.B3()||(this.j=!1);Em.prototype.writeThenSend.call(this,K,W)}; bn.prototype.sendThenWrite=function(K,W,U){W||(W={});W=hT(K,W);g.B3()||(this.j=!1);Em.prototype.sendThenWrite.call(this,K,W,U)}; bn.prototype.sendAndWrite=function(K,W){W||(W={});W=hT(K,W);g.B3()||(this.j=!1);Em.prototype.sendAndWrite.call(this,K,W)}; bn.prototype.awaitInitialization=function(){return this.N.promise};var V_C=g.qs.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Vk("ytNetworklessLoggingInitializationOptions",V_C);g.ZQ.prototype.isReady=function(){!this.config_&&voC()&&(this.config_=g.aA());return!!this.config_};var n4Z,zr,iw;n4Z=g.qs.ytPubsubPubsubInstance||new g.fj;zr=g.qs.ytPubsubPubsubSubscribedKeys||{};iw=g.qs.ytPubsubPubsubTopicToKeys||{};g.kh=g.qs.ytPubsubPubsubIsSynchronous||{};g.fj.prototype.subscribe=g.fj.prototype.subscribe;g.fj.prototype.unsubscribeByKey=g.fj.prototype.M2;g.fj.prototype.publish=g.fj.prototype.publish;g.fj.prototype.clear=g.fj.prototype.clear;g.Vk("ytPubsubPubsubInstance",n4Z);g.Vk("ytPubsubPubsubTopicToKeys",iw);g.Vk("ytPubsubPubsubIsSynchronous",g.kh); g.Vk("ytPubsubPubsubSubscribedKeys",zr);var jzs={};g.V(Tg,g.p);Tg.prototype.append=function(K){if(!this.X)throw Error("This does not support the append operation");K=K.H3();this.H3().appendChild(K)}; g.V(ae,Tg);ae.prototype.H3=function(){return this.j};g.V(bW,g.p);bW.prototype.onTouchStart=function(K){this.Y=!0;this.X=K.touches.length;this.j.isActive()&&(this.j.stop(),this.U=!0);K=K.touches;this.G=ycC(this,K)||K.length!=1;var W=K.item(0);this.G||!W?this.jV=this.J=Infinity:(this.J=W.clientX,this.jV=W.clientY);for(W=this.N.length=0;W=0)}if(W||K&&Math.pow(K.clientX-this.J,2)+Math.pow(K.clientY-this.jV,2)>25)this.W=!0}; bW.prototype.onTouchEnd=function(K){var W=K.changedTouches;W&&this.Y&&this.X==1&&!this.W&&!this.U&&!this.G&&ycC(this,W)&&(this.Ms=K,this.j.start());this.X=K.touches.length;this.X===0&&(this.W=this.Y=!1,this.N.length=0);this.U=!1};var JY=Date.now().toString();var GHR={};var Z8=Symbol("injectionDeps");ZI.prototype.toString=function(){return"InjectionToken("+this.name+")"}; B0C.prototype.resolve=function(K){return K instanceof oE?lf(this,K.key,[],!0):lf(this,K,[])};var nd;var M5=window;var Ng=g.hc("web_enable_lifecycle_monitoring")&&yE()!==0,Mp2=g.hc("web_enable_lifecycle_monitoring");T9Y.prototype.cancel=function(){for(var K=g.z(this.j),W=K.next();!W.done;W=K.next())W=W.value,W.jobId===void 0||W.z2||this.scheduler.tD(W.jobId),W.z2=!0;this.X.resolve()};g.H=ao.prototype;g.H.install=function(K){this.plugins.push(K);return this}; g.H.uninstall=function(){var K=this;g.Xl.apply(0,arguments).forEach(function(W){W=K.plugins.indexOf(W);W>-1&&K.plugins.splice(W,1)})}; g.H.transition=function(K,W){var U=this;Ng&&wYs(this.state);var h=this.transitions.find(function(S){return Array.isArray(S.from)?S.from.find(function(f){return f===U.state&&S.to===K}):S.from===U.state&&S.to===K}); if(h){this.X&&(exs(this.X),this.X=void 0);PsD(this,K,W);this.state=K;Ng&&PW(this.state);h=h.action.bind(this);var m=this.plugins.filter(function(S){return S[K]}).map(function(S){return S[K]}); h(Wc$(this,m),W)}else throw Error("no transition specified from "+this.state+" to "+K);}; g.H.zVs=function(K){var W=g.Xl.apply(1,arguments);g.hN();for(var U=g.z(K),h=U.next(),m={};!h.done;m={sB:void 0},h=U.next())m.sB=h.value,mZe(function(S){return function(){Af(S.sB.name);xz$(function(){return S.sB.callback.apply(S.sB,g.z4(W))}); pg(S.sB.name)}}(m))}; g.H.mZm=function(K){var W=g.Xl.apply(1,arguments),U,h,m,S;return g.r(function(f){f.j==1&&(g.hN(),U=g.z(K),h=U.next(),m={});if(f.j!=3){if(h.done)return f.O5(0);m.OS=h.value;m.AJ=void 0;S=function(G){return function(){Af(G.OS.name);var I=xz$(function(){return G.OS.callback.apply(G.OS,g.z4(W))}); pe(I)?G.AJ=g.hc("web_lifecycle_error_handling_killswitch")?I.then(function(){pg(G.OS.name)}):I.then(function(){pg(G.OS.name)},function(d){qcp(d); pg(G.OS.name)}):pg(G.OS.name)}}(m); mZe(S);return m.AJ?g.T(f,m.AJ,3):f.O5(3)}m={OS:void 0,AJ:void 0};h=U.next();return f.O5(2)})}; g.H.b6=function(K){var W=g.Xl.apply(1,arguments),U=this,h=K.map(function(m){return{sU:function(){Af(m.name);xz$(function(){return m.callback.apply(m,g.z4(W))}); pg(m.name)}, priority:Oq(U,m)}}); h.length&&(this.X=new T9Y(h))}; g.JI.Object.defineProperties(ao.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var YNs;g.V(ry,ao);ry.prototype.U=function(K,W){var U=this;this.j=g.UL(0,function(){U.currentState==="application_navigating"&&U.transition("none")},5E3); K(W==null?void 0:W.event)}; ry.prototype.G=function(K,W){this.j&&(g.MU.tD(this.j),this.j=null);K(W==null?void 0:W.event)};var scC=[];g.Vk("yt.logging.transport.getScrapedGelPayloads",function(){return scC});q7.prototype.storePayload=function(K,W){K=BK(K);this.store[K]?this.store[K].push(W):(this.X={},this.store[K]=[W]);this.j++;g.hc("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return K}; q7.prototype.smartExtractMatchingEntries=function(K){if(!K.keys.length)return[];for(var W=Dr(this,K.keys.splice(0,1)[0]),U=[],h=0;h=0){h=!1;break a}}h=!0}h&&(W=n$(W))&&this.nG(W)}}; g.H.GC=function(K){return K}; g.H.onTouchStart=function(K){this.Ns.onTouchStart(K)}; g.H.onTouchMove=function(K){this.Ns.onTouchMove(K)}; g.H.onTouchEnd=function(K){if(this.Ns)this.Ns.onTouchEnd(K)}; g.H.nG=function(K){this.layoutId?this.s5.executeCommand(K,this.layoutId):(K=new g.EB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.wG(K))}; g.H.createServerVe=function(K,W){this.api.createServerVe(K,this);this.api.setTrackingParams(K,W)}; g.H.logVisibility=function(K,W){this.api.hasVe(K)&&this.api.logVisibility(K,W,this.interactionLoggingClientData)}; g.H.QH=function(){this.clear(null);this.GK(this.gk);for(var K=g.z(this.DA),W=K.next();!W.done;W=K.next())this.GK(W.value);g.GW.prototype.QH.call(this)};g.V(fG,vh); fG.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);this.j=W;if(W.text==null&&W.icon==null)g.eI(Error("ButtonRenderer did not have text or an icon set."));else{switch(W.style||null){case "STYLE_UNKNOWN":K="ytp-ad-button-link";break;default:K=null}K!=null&&g.$C(this.element,K);W.text!=null&&(K=g.Rb(W.text),g.YD(K)||(this.element.setAttribute("aria-label",K),this.N=new g.GW({T:"span",Z:"ytp-ad-button-text",bX:K}),g.k(this,this.N),this.N.U5(this.element)));W.accessibilityData&&W.accessibilityData.accessibilityData&& W.accessibilityData.accessibilityData.label&&!g.YD(W.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",W.accessibilityData.accessibilityData.label);W.icon!=null&&(W=wM(W.icon,this.W),W!=null&&(this.X=new g.GW({T:"span",Z:"ytp-ad-button-icon",K:[W]}),g.k(this,this.X)),this.U?LB(this.element,this.X.element,0):this.X.U5(this.element))}}; fG.prototype.clear=function(){this.hide()}; fG.prototype.onClick=function(K){vh.prototype.onClick.call(this,K);K=g.z(nHs(this));for(var W=K.next();!W.done;W=K.next())W=W.value,this.layoutId?this.s5.executeCommand(W,this.layoutId):g.wG(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.V(cq,g.p);cq.prototype.QH=function(){this.X&&g.d9(this.X);this.j.clear();sy=null;g.p.prototype.QH.call(this)}; cq.prototype.register=function(K,W){W&&this.j.set(K,W)}; var sy=null;g.V(ML,vh); ML.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);K=W.hoverText||null;W=W.button&&g.P(W.button,g.Jy)||null;W==null?g.wG(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,void 0,void 0,void 0,void 0,this.N),g.k(this,this.button),this.button.init(Mq("button"),W,this.macros),K&&this.button.element.setAttribute("aria-label",g.Rb(K)),this.button.U5(this.element),this.J&&!g.sb(this.button.element, "ytp-ad-clickable")&&g.$C(this.button.element,"ytp-ad-clickable"),this.N&&g.$C(this.button.element,"ytp-ad-hover-text-button--clean-player"),K&&(this.X=new g.GW({T:"div",Z:"ytp-ad-hover-text-container"}),this.U&&(W=new g.GW({T:"div",Z:"ytp-ad-hover-text-callout"}),W.U5(this.X.element),g.k(this,W)),g.k(this,this.X),this.X.U5(this.element),W=Us(K),LB(this.X.element,W,0)),this.show())}; ML.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();vh.prototype.hide.call(this)}; ML.prototype.show=function(){this.button&&this.button.show();vh.prototype.show.call(this)};g.V(WB,vh); WB.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);U=(K=W.thumbnail)&&tE(K)||"";g.YD(U)?Math.random()<.01&&g.eI(Error("Found AdImage without valid image URL")):(this.j?g.Zd(this.element,"backgroundImage","url("+U+")"):Ib(this.element,{src:U}),Ib(this.element,{alt:K&&K.accessibility&&K.accessibility.label||""}),W&&W.adRendererCommands&&W.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; WB.prototype.clear=function(){this.hide()};g.V($_,vh);g.H=$_.prototype;g.H.hide=function(){vh.prototype.hide.call(this);this.N&&this.N.focus()}; g.H.show=function(){this.N=document.activeElement;vh.prototype.show.call(this);this.W.focus()}; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);this.X=W;W.dialogMessages||W.title!=null?W.confirmLabel==null?g.wG(Error("ConfirmDialogRenderer.confirmLabel was not set.")):W.cancelLabel==null?g.wG(Error("ConfirmDialogRenderer.cancelLabel was not set.")):F0D(this,W):g.wG(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.H.clear=function(){g.Qa(this.j);this.hide()}; g.H.qG=function(){this.hide()}; g.H.Sb=function(){var K=this.X.cancelEndpoint;K&&(this.layoutId?this.s5.executeCommand(K,this.layoutId):g.wG(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.H.Gs=function(){var K=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;K&&(this.layoutId?this.s5.executeCommand(K,this.layoutId):g.wG(Error("Missing layoutId for confirm dialog.")));this.hide()};g.V(Yd,vh);g.H=Yd.prototype; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);this.N=W;if(W.defaultText==null&&W.defaultIcon==null)g.wG(Error("ToggleButtonRenderer must have either text or icon set."));else if(W.defaultIcon==null&&W.toggledIcon!=null)g.wG(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(W.style){switch(W.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":K="ytp-ad-toggle-button-default-style";break;default:K=null}K!=null&&g.$C(this.W,K)}K={};W.defaultText? (U=g.Rb(W.defaultText),g.YD(U)||(K.buttonText=U,this.api.V().experiments.Rk("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",U),this.api.V().experiments.Rk("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",U))):g.Z6(this.hK,!1);W.defaultTooltip&&(K.tooltipText=W.defaultTooltip,this.j.hasAttribute("aria-label")||this.X.setAttribute("aria-label",W.defaultTooltip));W.defaultIcon?(U=wM(W.defaultIcon),this.updateValue("untoggledIconTemplateSpec",U),W.toggledIcon?(this.uX= !0,U=wM(W.toggledIcon),this.updateValue("toggledIconTemplateSpec",U)):(g.Z6(this.J,!0),g.Z6(this.U,!1)),g.Z6(this.j,!1)):g.Z6(this.X,!1);g.Tb(K)||this.update(K);W.isToggled&&(g.$C(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(W.isToggled));wte(this);this.S(this.element,"change",this.Mu);this.show()}}; g.H.onClick=function(K){this.DA.length>0&&(this.toggleButton(!this.isToggled()),this.Mu());vh.prototype.onClick.call(this,K)}; g.H.Mu=function(){g.JM(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var K=g.z($8s(this,this.isToggled())),W=K.next();!W.done;W=K.next())W=W.value,this.layoutId?this.s5.executeCommand(W,this.layoutId):g.wG(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);wte(this)}; g.H.clear=function(){this.hide()}; g.H.toggleButton=function(K){g.JM(this.W,"ytp-ad-toggle-button-toggled",K);this.j.checked=K;wte(this)}; g.H.isToggled=function(){return this.j.checked};g.V(h4,jg);h4.prototype.U=function(K){if(Array.isArray(K)){K=g.z(K);for(var W=K.next();!W.done;W=K.next())W=W.value,W instanceof e12&&this.N(W)}};g.V(cvL,vh);g.H=cvL.prototype;g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);W.reasons?W.confirmLabel==null?g.wG(Error("AdFeedbackRenderer.confirmLabel was not set.")):(W.cancelLabel==null&&g.eI(Error("AdFeedbackRenderer.cancelLabel was not set.")),W.title==null&&g.eI(Error("AdFeedbackRenderer.title was not set.")),qzL(this,W)):g.wG(Error("AdFeedbackRenderer.reasons were not set."))}; g.H.clear=function(){J_(this.U);J_(this.J);this.W.length=0;this.hide()}; g.H.hide=function(){this.j&&this.j.hide();this.X&&this.X.hide();vh.prototype.hide.call(this);this.N&&this.N.focus()}; g.H.show=function(){this.j&&this.j.show();this.X&&this.X.show();this.N=document.activeElement;vh.prototype.show.call(this);this.U.focus()}; g.H.nD=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.H.TS5=function(){this.hide()}; cx.prototype.H3=function(){return this.j.element}; cx.prototype.getCommand=function(){return this.X}; cx.prototype.isChecked=function(){return this.N.checked};g.V(D8,$_);D8.prototype.qG=function(K){$_.prototype.qG.call(this,K);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; D8.prototype.Sb=function(K){$_.prototype.Sb.call(this,K);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; D8.prototype.Gs=function(K){$_.prototype.Gs.call(this,K);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.V(aCC,vh);g.H=aCC.prototype; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);this.U=W;if(W.dialogMessage==null&&W.title==null)g.wG(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{W.confirmLabel==null&&g.eI(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(K=W.closeOverlayRenderer&&g.P(W.closeOverlayRenderer,g.Jy)||null)this.j=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.k(this,this.j),this.j.init(Mq("button"),K,this.macros),this.j.U5(this.element);W.title&&(K=g.Rb(W.title),this.updateValue("title",K));if(W.adReasons)for(K=W.adReasons,U=0;U=this.Le?(this.uX.hide(),this.vp=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(K=Math.max(0,Math.ceil((this.Le-K)/1E3)),K!=this.JK&&(Jx(this.N,{TIME_REMAINING:String(K)}),this.JK=K)))}};g.V(rU,qv);g.H=rU.prototype; g.H.init=function(K,W,U){qv.prototype.init.call(this,K,W,U);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if((K=W.actionButton&&g.P(W.actionButton,g.Jy))&&K.navigationEndpoint){var h=this.api.getVideoData(2);if(h!=null)if(W.image&&W.image.thumbnail){var m=W.image.thumbnail.thumbnails;m!=null&&m.length>0&&g.YD(g.lP(m[0].url))&&(m[0].url=h.profilePicture)}else g.eI(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(Mq("ad-image"),W.image,U);this.U.init(Mq("ad-text"), W.headline,U);this.W.init(Mq("ad-text"),W.description,U);this.X.init(Mq("button"),K,U);U=vV(this.X.element);W5(this.X.element,U+" This link opens in new tab");this.uX=K.navigationEndpoint;this.api.zx()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.rq.bind(this));this.hK=W.startMs||0;F1(this)}else g.wG(Error("FlyoutCtaRenderer has no valid action button."));else g.wG(Error("FlyoutCtaRenderer has no description AdText."));else g.wG(Error("FlyoutCtaRenderer has no headline AdText.")); else g.eI(Error("FlyoutCtaRenderer has no image."))}; g.H.onClick=function(K){qv.prototype.onClick.call(this,K);this.api.pauseVideo();!g.Hj(this.X.element,K.target)&&this.uX&&(this.layoutId?this.s5.executeCommand(this.uX,this.layoutId):g.wG(Error("Missing layoutId for flyout cta.")))}; g.H.Ba=function(){if(this.j){var K=this.j.getProgressState();(K&&K.current||this.Le)&&1E3*K.current>=this.hK&&(jQ(this),g.WR(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.H.Yr=function(){this.clear()}; g.H.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.rq.bind(this))}; g.H.show=function(){this.X&&this.X.show();qv.prototype.show.call(this)}; g.H.hide=function(){this.X&&this.X.hide();qv.prototype.hide.call(this)}; g.H.rq=function(K){K=="hidden"?this.show():this.hide()};g.V(OU,vh);g.H=OU.prototype; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);this.j=W;if(this.j.rectangle)for(K=this.j.likeButton&&g.P(this.j.likeButton,Yz),W=this.j.dislikeButton&&g.P(this.j.dislikeButton,Yz),this.N.init(Mq("toggle-button"),K,U),this.X.init(Mq("toggle-button"),W,U),this.S(this.element,"change",this.u_),this.W.show(100),this.show(),U=g.z(this.j&&this.j.impressionCommands||[]),K=U.next();!K.done;K=U.next())K=K.value,this.layoutId?this.s5.executeCommand(K,this.layoutId):g.wG(Error("Missing layoutId for instream user sentiment."))}; g.H.clear=function(){this.hide()}; g.H.hide=function(){this.N.hide();this.X.hide();vh.prototype.hide.call(this)}; g.H.show=function(){this.N.show();this.X.show();vh.prototype.show.call(this)}; g.H.u_=function(){Xke(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Fx("onYtShowToast",this.j.postMessageAction);this.W.hide()}; g.H.onClick=function(K){this.DA.length>0&&this.u_();vh.prototype.onClick.call(this,K)};g.V(x9,g.p);g.H=x9.prototype;g.H.QH=function(){this.reset();g.p.prototype.QH.call(this)}; g.H.reset=function(){g.Qa(this.W);this.G=!1;this.j&&this.j.stop();this.U.stop();this.N&&(this.N=!1,this.Y.play())}; g.H.start=function(){this.reset();this.W.S(this.X,"mouseover",this.Qz,this);this.W.S(this.X,"mouseout",this.b_,this);this.Ms&&(this.W.S(this.X,"focusin",this.Qz,this),this.W.S(this.X,"focusout",this.b_,this));this.j?this.j.start():(this.G=this.N=!0,g.Zd(this.X,{opacity:this.jV}))}; g.H.Qz=function(){this.N&&(this.N=!1,this.Y.play());this.U.stop();this.j&&this.j.stop()}; g.H.b_=function(){this.G?this.U.start():this.j&&this.j.start()}; g.H.l_=function(){this.N||(this.N=!0,this.J.play(),this.G=!0)};var E72=[new YS("b.f_",0),new YS("j.s_",2),new YS("r.s_",4),new YS("e.h_",6),new YS("i.s_",8),new YS("s.t_",10),new YS("p.h_",12),new YS("s.i_",14),new YS("f.i_",16),new YS("a.b_",18),new YS("a.o_"),new YS("g.o_",22),new YS("p.i_",24),new YS("p.m_"),new YS("n.k_",20),new YS("i.f_"),new YS("a.s_"),new YS("m.c_"),new YS("n.h_",26),new YS("o.p_"),new YS("m.p_",28),new YS("o.a_"),new YS("d.p_"),new YS("e.i_")].reduce(function(K,W){K[W.X]=W;return K},{});g.V(wL,qv);g.H=wL.prototype; g.H.init=function(K,W,U){qv.prototype.init.call(this,K,W,U);this.uX=W;(this.hK=rfs(this))&&g.eI(Error("hasAdControlInClickCommands_ is true."));if(!W||g.Tb(W))g.wG(Error("SkipButtonRenderer was not specified or empty."));else if(!W.message||g.Tb(W.message))g.wG(Error("SkipButtonRenderer.message was not specified or empty."));else if(K=this.U?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},W=this.api.V().L("delhi_modern_web_player_icons"),W=wM(K,!1,!1,W),W==null?g.wG(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+K.iconType+ ".")):(this.api.V().L("disable_touch_events_on_skip_button")&&(W.B=Object.assign({},W.B,{"aria-hidden":"true",cZr:"false"})),this.N=new g.GW({T:"button",Hp:[this.U?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{T:"span",Z:this.U?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[W]}]}),g.k(this,this.N),this.N.U5(this.W.element),this.X=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,"ytp-ad-skip-button-text"),this.U&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"), this.X.init(Mq("ad-text"),this.uX.message,U),g.k(this,this.X),LB(this.N.element,this.X.element,0)),!this.api.V().L("disable_touch_events_on_skip_button")){var h=h===void 0?null:h;U=this.api.V();!(this.DA.length>0)&&U.X&&(kj?0:"ontouchstart"in document.documentElement&&(tdC()||Hw()))&&(this.GK(this.gk),h&&this.GK(h),this.DA=[this.S(this.element,"touchstart",this.onTouchStart,this),this.S(this.element,"touchmove",this.onTouchMove,this),this.S(this.element,"touchend",this.onTouchEnd,this)])}}; g.H.clear=function(){this.Le.reset();this.hide()}; g.H.hide=function(){this.W.hide();this.X&&this.X.hide();jQ(this);qv.prototype.hide.call(this)}; g.H.onClick=function(K){if(this.N!=null){if(K){var W=K||window.event;W.returnValue=!1;W.preventDefault&&W.preventDefault()}var U;if(Fbe(K,{contentCpn:((U=this.api.getVideoData(1))==null?void 0:U.clientPlaybackNonce)||""})===0)this.api.Fx("onAbnormalityDetected");else if(qv.prototype.onClick.call(this,K),this.publish("j"),this.api.Fx("onAdSkip"),this.vp||!this.hK)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.H.GC=function(K){if(!this.vp)return this.hK&&UF("SkipButton click commands not pruned while ALC exist"),K;var W,U=(W=g.P(K,g.W$))==null?void 0:W.commands;if(!U)return K;K=[];for(W=0;W=this.U&&XuC(this,!0)};g.V(kD,fG);kD.prototype.init=function(K,W,U){fG.prototype.init.call(this,K,W,U);K=!1;W.text!=null&&(K=g.Rb(W.text),K=!g.YD(K));K?W.navigationEndpoint==null?g.eI(Error("No visit advertiser clickthrough provided in renderer,")):W.style!=="STYLE_UNKNOWN"?g.eI(Error("Button style was not a link-style type in renderer,")):this.show():g.eI(Error("No visit advertiser text was present in the renderer."))};g.V(Or,vh); Or.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);K=W.text;g.YD(dY(K))?g.eI(Error("SimpleAdBadgeRenderer has invalid or empty text")):(K&&K.text&&(W=K.text,this.N&&!this.X&&(W=this.api.V(),W=K.text+" "+(W&&W.X?"\u2022":"\u00b7")),W={text:W,isTemplated:K.isTemplated},K.style&&(W.style=K.style),K.targetId&&(W.targetId=K.targetId),K=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),K.init(Mq("simple-ad-badge"),W,U),K.U5(this.element),g.k(this,K)),this.show())}; Or.prototype.clear=function(){this.hide()};g.V(Pk,yU);g.V(mE,g.GP);g.H=mE.prototype;g.H.cE=function(){return this.durationMs}; g.H.stop=function(){this.j&&this.handler.GK(this.j)}; g.H.Ym=function(K){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:K.current};this.publish("h")}; g.H.getProgressState=function(){return this.X}; g.H.Xr=function(K){g.M9(K,2)&&this.publish("g")};g.V(p$,g.GP);g.H=p$.prototype;g.H.cE=function(){return this.durationMs}; g.H.start=function(){this.j||(this.j=!0,this.timer.start())}; g.H.stop=function(){this.j&&(this.j=!1,this.timer.stop())}; g.H.Ym=function(){this.Zg+=100;var K=!1;this.Zg>this.durationMs&&(this.Zg=this.durationMs,this.timer.stop(),K=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Zg/1E3};this.publish("h");K&&this.publish("g")}; g.H.getProgressState=function(){return this.X};g.V(pp,qv);g.H=pp.prototype;g.H.init=function(K,W,U){qv.prototype.init.call(this,K,W,U);var h;if(W==null?0:(h=W.templatedCountdown)==null?0:h.templatedAdText){K=W.templatedCountdown.templatedAdText;if(!K.isTemplated){g.eI(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);this.X.init(Mq("ad-text"),K,{});this.X.U5(this.element);g.k(this,this.X)}this.show()}; g.H.clear=function(){this.hide()}; g.H.hide=function(){jQ(this);qv.prototype.hide.call(this)}; g.H.Yr=function(){this.hide()}; g.H.Ba=function(){if(this.j!=null){var K=this.j.getProgressState();if(K!=null&&K.current!=null&&this.X){var W=this.j instanceof mE?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:K.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof p$?K.seekableEnd:this.api.getDuration(2,!1);K=K.current;var U,h,m=((U=this.api.getVideoData())==null?0:(h=U.Sj)==null?0:h.call(U))?Math.max(W-K,0):W-K;Jx(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.sp(m)), TIME_REMAINING:String(Math.ceil(m))})}}}; g.H.show=function(){F1(this);qv.prototype.show.call(this)};g.V(LI,hW);LI.prototype.onClick=function(K){hW.prototype.onClick.call(this,K);this.api.onAdUxClicked(this.componentType)};g.V(eJ,vh);eJ.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(K=W.content){g.hs(this.element,K);var U,h;W=((U=W.interaction)==null?void 0:(h=U.accessibility)==null?void 0:h.label)||K;this.element.setAttribute("aria-label",W)}else g.wG(Error("AdSimpleAttributedString does not have text content"))}; eJ.prototype.clear=function(){this.hide()}; eJ.prototype.onClick=function(K){vh.prototype.onClick.call(this,K)};g.V(q4,vh); q4.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});(K=W.label)&&K.content&&!g.YD(K.content)?(this.adBadgeText.init(Mq("ad-simple-attributed-string"),new yR(K)),(W=W.adPodIndex)&&W.content&&!g.YD(W.content)&&(this.j=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),this.j.U5(this.element),g.k(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Mq("ad-simple-attributed-string"),new yR(W))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.wG(Error("No label is returned in AdBadgeViewModel."))}; q4.prototype.show=function(){this.adBadgeText.show();var K;(K=this.j)==null||K.show();vh.prototype.show.call(this)}; q4.prototype.hide=function(){this.adBadgeText.hide();var K;(K=this.j)==null||K.hide();vh.prototype.hide.call(this)};g.V(qM,vh);qM.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});(K=W.adPodIndex)&&K.content&&!g.YD(K.content)&&(this.j=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),this.j.U5(this.element),g.k(this,this.j),this.j.init(Mq("ad-simple-attributed-string"),new yR(K)),W.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; qM.prototype.show=function(){var K;(K=this.j)==null||K.show();vh.prototype.show.call(this)}; qM.prototype.hide=function(){var K;(K=this.j)==null||K.hide();vh.prototype.hide.call(this)};g.V(wA,vh); wA.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(W!=null&&W.text){var U;if(((U=W.text)==null?0:U.content)&&!g.YD(W.text.content)){this.j=new g.GW({T:"div",Z:"ytp-ad-disclosure-banner__text",bX:W.text.content});g.k(this,this.j);this.j.U5(this.element);if(this.api.V().L("enable_ad_disclosure_banner_a11y_fix")){var h,m,S=(h=W.interaction)==null?void 0:(m=h.accessibility)==null?void 0:m.label;S||(S=W.text.content+" This link opens in new tab");W5(this.element,S)}else{var f;h=((S= W.interaction)==null?void 0:(f=S.accessibility)==null?void 0:f.label)||W.text.content;this.element.setAttribute("aria-label",h)}var G;if((G=W.interaction)==null?0:G.onTap)this.X=new g.GW({T:"div",Z:"ytp-ad-disclosure-banner__chevron",K:[g.Wq()]}),g.k(this,this.X),this.X.U5(this.element),this.api.V().L("enable_ad_disclosure_banner_a11y_fix")&&(Hm(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.RD));this.show()}}else g.wG(Error("No banner text found in AdDisclosureBanner."))}; wA.prototype.RD=function(K){if(K.key==="Enter"||K.key===" ")K.preventDefault(),this.element.click()}; wA.prototype.clear=function(){this.hide()};g.V(x5,g.GW);x5.prototype.Ym=function(){var K=this.X.getProgressState(),W=K.seekableEnd;this.api.getPresentingPlayerType()===2&&(W=this.N?this.N/1E3:K.seekableEnd);this.progressBar.style.width=dT(new Ik(K.seekableStart,W),K.current,0)*100+"%"}; x5.prototype.onStateChange=function(){g.r8(this.api.V())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.X.subscribe("h",this.Ym,this),this.Ym()):this.j!==-1&&(this.hide(),this.X.M2(this.j),this.j=-1))};g.V(Ti,vh); Ti.prototype.init=function(K,W,U,h){vh.prototype.init.call(this,K,W,U);if(W.skipOrPreviewRenderer){if(K=g.P(W.skipOrPreviewRenderer,vW))U=new sr(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X,this.J),U.U5(this.tK),U.init(Mq("skip-button"),K,this.macros),g.k(this,U);if(K=g.P(W.skipOrPreviewRenderer,vW))var m=K.skipOffsetMilliseconds}W.brandInteractionRenderer&&(K=W.brandInteractionRenderer.brandInteractionRenderer,U=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.s5), U.U5(this.hK),U.init(Mq("instream-user-sentiment"),K,this.macros),g.k(this,U));if(K=g.P(W,EC3))if(K=g.P(K,EC3))U=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X,!!W.showWithoutLinkedMediaLayout),g.k(this,U),U.U5(this.U),U.init(Mq("flyout-cta"),K,this.macros);h=h&&h.videoAdDurationSeconds;W.adBadgeRenderer&&(U=W.adBadgeRenderer,K=g.P(U,Io),K!=null?(U=new q4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!1),g.k(this,U),U.U5(this.j),U.init(Mq("ad-badge"), K,this.macros),this.N=U.element):(K=U.simpleAdBadgeRenderer,K==null&&(K={text:{text:"Ad",isTemplated:!1}}),U=new Or(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0),g.k(this,U),U.U5(this.j),U.init(Mq("simple-ad-badge"),K,this.macros)));W.adPodIndex&&(K=g.P(W.adPodIndex,YYt),K!=null&&(U=new qM(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,U),U.U5(this.j),U.init(Mq("ad-pod-index"),K)));W.adDurationRemaining&&!W.showWithoutLinkedMediaLayout&&(K=W.adDurationRemaining.adDurationRemainingRenderer, K==null&&(K={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),h=new pp(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X,h,!1),g.k(this,h),h.U5(this.j),h.init(Mq("ad-duration-remaining"),K,this.macros));W.adInfoRenderer&&(h=g.P(W.adInfoRenderer,gO))&&(K=new F4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.element,void 0,!1),g.k(this,K),this.N!==null?this.j.insertBefore(K.element,this.N.nextSibling):K.U5(this.j), K.init(Mq("ad-info-hover-text-button"),h,this.macros));W.visitAdvertiserRenderer&&(K=g.P(W.visitAdvertiserRenderer,g.Jy))&&(U=euC(this)&&this.W?this.W:this.j)&&(h=new kD(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,h),h.U5(U),h.init(Mq("visit-advertiser"),K,this.macros),Hm(h.element),K=vV(h.element),W5(h.element,K+" This link opens in new tab"));!(h=this.api.V())||g.Ln(h)||g.HB(h)||h.controlsType!="3"&&!h.disableOrganicUi||(m=new x5(this.api,this.X,m,!1),m.U5(this.Le), g.k(this,m));W.adDisclosureBannerRenderer&&(W=g.P(W.adDisclosureBannerRenderer,$_O))&&(m=new wA(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),m.U5(this.uX),m.init(Mq("ad-disclosure-banner"),W),g.k(this,m));this.api.V().L("enable_updated_html5_player_focus_style")&&g.$C(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; Ti.prototype.clear=function(){this.hide()};g.WH.prototype.flush=function(K,W){K=K===void 0?[]:K;W=W===void 0?!1:W;if(g.hc("enable_client_streamz_web")){K=g.z(K);for(var U=K.next();!U.done;U=K.next())U=w3_(U.value),this.j&&rk(U,VU,2,this.j),U={serializedIncrementBatch:g.o0(U.N())},g.N_("streamzIncremented",U,{sendIsolatedPayload:W})}}; g.V(GI2,g.WH);var vOC=new Map;nj.prototype.set=function(K,W,U){U=U!==void 0?Date.now()+U:void 0;this.j.set(K,W,U)}; nj.prototype.get=function(K){return this.j.get(K)}; nj.prototype.remove=function(K){this.j.remove(K)};var jX2=null;var Vu=null,sM=null,bg=null,naC=null;g.Vk("yt.www.ads.eventcache.getLastCompanionData",function(){return Vu}); g.Vk("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Vk("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return sM}); g.Vk("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return bg}); g.Vk("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return naC});var DbC=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);rZ.prototype.handleResponse=function(K,W){if(!W)throw Error("request needs to be passed into ConsistencyService");var U,h;W=((U=W.jI.context)==null?void 0:(h=U.request)==null?void 0:h.consistencyTokenJars)||[];var m;(K=(m=K.responseContext)==null?void 0:m.consistencyTokenJar)&&this.replace(W,K)}; rZ.prototype.replace=function(K,W){K=g.z(K);for(var U=K.next();!U.done;U=K.next())delete this.j[U.value.encryptedTokenJarContents];EcD(this,W)};var zOW=window.location.hostname.split(".").slice(-2).join("."),iT;Tp.getInstance=function(){iT=g.vB("yt.clientLocationService.instance");iT||(iT=new Tp,g.Vk("yt.clientLocationService.instance",iT));return iT}; g.H=Tp.prototype; g.H.setLocationOnInnerTubeContext=function(K){K.client||(K.client={});if(this.j)K.client.locationInfo||(K.client.locationInfo={}),K.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),K.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),K.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),K.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)K.client.locationPlayabilityToken=this.N|| this.locationPlayabilityToken}; g.H.handleResponse=function(K){var W;K=(W=K.responseContext)==null?void 0:W.locationPlayabilityToken;K!==void 0&&(this.locationPlayabilityToken=K,this.j=void 0,g.TA("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=nqD(this))&&this.localStorage.set("yt-location-playability-token",K,15552E3):g.AQ("YT_CL",JSON.stringify({loctok:K}),15552E3,zOW,!0))}; g.H.clearLocationPlayabilityToken=function(K){K==="TVHTML5"?(this.localStorage=nqD(this))&&this.localStorage.remove("yt-location-playability-token"):g.S2("YT_CL");this.N=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.H.getCurrentPositionFromGeolocation=function(){var K=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var W=!1,U=1E4;g.TA("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,U=15E3);return new Promise(function(h,m){navigator.geolocation.getCurrentPosition(function(S){K.j=S;h(S)},function(S){m(S)},{enableHighAccuracy:W, maximumAge:0,timeout:U})})}; g.H.createUnpluggedLocationInfo=function(K){var W={};K=K.coords;if(K==null?0:K.latitude)W.latitudeE7=Math.floor(K.latitude*1E7);if(K==null?0:K.longitude)W.longitudeE7=Math.floor(K.longitude*1E7);if(K==null?0:K.accuracy)W.locationRadiusMeters=Math.round(K.accuracy);return W}; g.H.createLocationInfo=function(K){var W={};K=K.coords;if(K==null?0:K.latitude)W.latitudeE7=Math.floor(K.latitude*1E7);if(K==null?0:K.longitude)W.longitudeE7=Math.floor(K.longitude*1E7);return W};g.H=Rks.prototype;g.H.contains=function(K){return Object.prototype.hasOwnProperty.call(this.j,K)}; g.H.get=function(K){if(this.contains(K))return this.j[K]}; g.H.set=function(K,W){this.j[K]=W}; g.H.FA=function(){return Object.keys(this.j)}; g.H.remove=function(K){delete this.j[K]};R4.prototype.getModuleId=function(K){return K.serviceId.getModuleId()}; R4.prototype.get=function(K){a:{var W=this.mappings.get(K.toString());switch(W.type){case "mapping":K=W.value;break a;case "factory":W=W.value();this.mappings.set(K.toString(),{type:"mapping",value:W});K=W;break a;default:K=fl(W)}}return K}; R4.prototype.registerService=function(K,W){this.mappings.set(K.toString(),{type:"mapping",value:W});return K}; new R4;var zq={},tcF=(zq.WEB_UNPLUGGED="^unplugged/",zq.WEB_UNPLUGGED_ONBOARDING="^unplugged/",zq.WEB_UNPLUGGED_OPS="^unplugged/",zq.WEB_UNPLUGGED_PUBLIC="^unplugged/",zq.WEB_CREATOR="^creator/",zq.WEB_KIDS="^kids/",zq.WEB_EXPERIMENTS="^experiments/",zq.WEB_MUSIC="^music/",zq.WEB_REMIX="^music/",zq.WEB_MUSIC_EMBEDDED_PLAYER="^music/",zq.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",zq);vq.prototype.U=function(K,W,U){W=W===void 0?{}:W;U=U===void 0?VX:U;var h={context:g.wZ(K.clickTrackingParams,!1,this.W)};var m=this.X(K);if(m){this.j(h,m,W);var S;W=g.ek(this.N());(m=(S=g.P(K.commandMetadata,g.$z))==null?void 0:S.apiUrl)&&(W=m);S=c9D($$(W));K=Object.assign({},{command:K},void 0);h={input:S,fu:EQ(S),jI:h,config:K};h.config.xN?h.config.xN.identity=U:h.config.xN={identity:U};return h}U=new g.EB("Error: Failed to create Request from Command.",K);g.wG(U)}; g.JI.Object.defineProperties(vq.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.V(vz,vq);g.V(IL,vz);IL.prototype.U=function(){return{input:"/getDatasyncIdsEndpoint",fu:EQ("/getDatasyncIdsEndpoint","GET"),jI:{}}}; IL.prototype.N=function(){return[]}; IL.prototype.X=function(){}; IL.prototype.j=function(){};var NtO={},PvD=(NtO.GET_DATASYNC_IDS=a9(IL),NtO);var NQ={},AIO=(NQ["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",NQ["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",NQ["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",NQ["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",NQ["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",NQ["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",NQ["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", NQ["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",NQ["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",NQ["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",NQ["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",NQ["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",NQ["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",NQ["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",NQ["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", NQ["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",NQ["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",NQ["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",NQ["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",NQ["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",NQ["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",NQ["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", NQ["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",NQ.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",NQ["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",NQ["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",NQ["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",NQ["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",NQ["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",NQ["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", NQ["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",NQ["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",NQ["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",NQ["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",NQ["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",NQ["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",NQ["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",NQ["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",NQ["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",NQ["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",NQ.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",NQ["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",NQ["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",NQ["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",NQ["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",NQ["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",NQ["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",NQ["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",NQ["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",NQ["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",NQ["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",NQ["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",NQ["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",NQ["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",NQ["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",NQ["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",NQ["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",NQ["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",NQ["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",NQ["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",NQ["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",NQ["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", NQ["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",NQ["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",NQ["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",NQ["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",NQ["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",NQ["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",NQ["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",NQ["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",NQ["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", NQ["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",NQ["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",NQ["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",NQ["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",NQ["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",NQ["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",NQ["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",NQ["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", NQ),AV={},kzF=(AV.auto_search="LATENCY_ACTION_AUTO_SEARCH",AV.ad_to_ad="LATENCY_ACTION_AD_TO_AD",AV.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",AV.app_startup="LATENCY_ACTION_APP_STARTUP",AV.browse="LATENCY_ACTION_BROWSE",AV.cast_splash="LATENCY_ACTION_CAST_SPLASH",AV.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",AV.channels="LATENCY_ACTION_CHANNELS",AV.chips="LATENCY_ACTION_CHIPS",AV.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",AV.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", AV.editor="LATENCY_ACTION_EDITOR",AV.embed="LATENCY_ACTION_EMBED",AV.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",AV.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",AV.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",AV.explore="LATENCY_ACTION_EXPLORE",AV.favorites="LATENCY_ACTION_FAVORITES",AV.home="LATENCY_ACTION_HOME",AV.inboarding="LATENCY_ACTION_INBOARDING",AV.landing="LATENCY_ACTION_LANDING",AV.learning="LATENCY_ACTION_LEARNING", AV.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",AV.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",AV.library="LATENCY_ACTION_LIBRARY",AV.live="LATENCY_ACTION_LIVE",AV.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",AV.management="LATENCY_ACTION_MANAGEMENT",AV.mini_app="LATENCY_ACTION_MINI_APP_PLAY",AV.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",AV.onboarding="LATENCY_ACTION_ONBOARDING",AV.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", AV.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",AV.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",AV.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",AV.prebuffer="LATENCY_ACTION_PREBUFFER",AV.prefetch="LATENCY_ACTION_PREFETCH",AV.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",AV.profile_switcher="LATENCY_ACTION_LOGIN",AV.projects="LATENCY_ACTION_PROJECTS",AV.reel_watch="LATENCY_ACTION_REEL_WATCH",AV.results="LATENCY_ACTION_RESULTS",AV.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", AV.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",AV.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",AV.review="LATENCY_ACTION_REVIEW",AV.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",AV.search_ui="LATENCY_ACTION_SEARCH_UI",AV.search_suggest="LATENCY_ACTION_SUGGEST",AV.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",AV.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",AV.seek="LATENCY_ACTION_PLAYER_SEEK",AV.settings="LATENCY_ACTION_SETTINGS",AV.store="LATENCY_ACTION_STORE", AV.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",AV.tenx="LATENCY_ACTION_TENX",AV.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",AV.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",AV.watch="LATENCY_ACTION_WATCH",AV.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",AV["watch,watch7"]="LATENCY_ACTION_WATCH",AV["watch,watch7_html5"]="LATENCY_ACTION_WATCH",AV["watch,watch7ad"]="LATENCY_ACTION_WATCH",AV["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",AV.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", AV.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",AV.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",AV.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",AV.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",AV.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",AV.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",AV.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",AV);Object.assign(kzF,AIO);g.V(mgL,VQ);var jes=new z5("aft-recorded",mgL);var ROH=g.qs.ytLoggingGelSequenceIdObj_||{};g.Vk("ytLoggingGelSequenceIdObj_",ROH);var zj=g.qs.ytLoggingLatencyUsageStats_||{};g.Vk("ytLoggingLatencyUsageStats_",zj);B2.prototype.tick=function(K,W,U,h){NF(this,"tick_"+K+"_"+W)||g.N_("latencyActionTicked",{tickName:K,clientActionNonce:W},{timestamp:U,cttAuthInfo:h})}; B2.prototype.info=function(K,W,U){var h=Object.keys(K).join("");NF(this,"info_"+h+"_"+W)||(K=Object.assign({},K),K.clientActionNonce=W,g.N_("latencyActionInfo",K,{cttAuthInfo:U}))}; B2.prototype.jspbInfo=function(K,W,U){for(var h="",m=0;m=m.length?(W.append(m),K-=m.length):K?(W.append(new Uint8Array(m.buffer,m.byteOffset,K)),U.append(new Uint8Array(m.buffer,m.byteOffset+K,m.length-K)),K=0):U.append(m);return{Gw:W,Kv:U}}; WQ.prototype.isFocused=function(K){return K>=this.N&&K=64&&(this.G.set(K.subarray(0,64-this.X),this.X),W=64-this.X,this.X=0,J4$(this,this.G,0));for(;W+64<=U;W+=64)J4$(this,K,W);W=this.start&&(K=2&&U.ssdaiAdsConfig&&UF("Unexpected ad placement renderers length",K.slot,null,{length:h.length});var m;((m=U.adSlots)==null?0:m.some(function(S){var f,G;return((f=g.P(S,vX))==null?void 0:(G=f.adSlotMetadata)==null?void 0:G.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||h.some(function(S){var f,G,I,d; return!!((f=S.renderer)==null?0:(G=f.linearAdSequenceRenderer)==null?0:(I=G.linearAds)==null?0:I.length)||!((d=S.renderer)==null||!d.instreamVideoAdRenderer)})||wwp(K)})}; Ep.prototype.eC=function(){ilF(this.j)};Cd.prototype.dK=function(){var K=this;C6p(this.X,function(){var W=Sp(K.slot.clientMetadata,"metadata_type_ad_break_request_data");return W.cueProcessedMs?K.j.get().fetch({GO:W.getAdBreakUrl,Wm:new g.g0(W.Wv,W.y3),cueProcessedMs:W.cueProcessedMs}):K.j.get().fetch({GO:W.getAdBreakUrl,Wm:new g.g0(W.Wv,W.y3)})})}; Cd.prototype.eC=function(){ilF(this.X)};LvD.prototype.dK=function(){var K=this.slot.clientMetadata,W,U=(W=this.slot.fulfilledLayout)!=null?W:Sp(K,"metadata_type_fulfilled_layout");xMp(this.callback,this.slot,U)}; LvD.prototype.eC=function(){ey(this.callback,this.slot,new v("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")};Pzp.prototype.build=function(K,W){return W.fulfilledLayout||D3(W,{Xd:["metadata_type_fulfilled_layout"]})?new LvD(K,W):this.N(K,W)};g.V(pA,Pzp); pA.prototype.N=function(K,W){if(D3(W,{Xd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Ep(K,W,this.j,this.X,this.uB,this.Xx,this.zm,this.dk,this.TK);if(D3(W,{Xd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Cd(K,W,this.j,this.X,this.uB,this.Xx);throw new v("Unsupported slot with type: "+W.slotType+" and client metadata: "+bl(W.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.V(oR,Pzp);oR.prototype.N=function(K,W){throw new v("Unsupported slot with type: "+W.slotType+" and client metadata: "+bl(W.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.H=Zyp.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){}; g.H.release=function(){}; g.H.startRendering=function(K){if(K.layoutId!==this.layout.layoutId)this.callback.gm(this.slot,K,new Rt("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var W=Sp(K.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Fo(this.slot,K),whp(this.N, this.slot,W)):UF("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,K)}}; g.H.iG=function(K,W){K.layoutId!==this.layout.layoutId?this.callback.gm(this.slot,K,new Rt("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.De(this.slot,K,W),xbC(this),RLR(this))};g.V(UH,g.GP);g.H=UH.prototype;g.H.Vg=function(){return this.X.slot}; g.H.VH=function(){return this.X.layout}; g.H.init=function(){this.N.get().addListener(this)}; g.H.release=function(){this.N.get().removeListener(this);this.dispose()}; g.H.gA=function(){}; g.H.xw=function(){}; g.H.f0=function(){}; g.H.nX=function(){}; g.H.startRendering=function(K){var W=this;Z4(this.X,K,function(){return void W.DP()})}; g.H.DP=function(){this.N.get().DP(this.j)}; g.H.iG=function(K,W){var U=this;Z4(this.X,K,function(){var h=U.N.get();EVe(h,U.j,3);U.j=[];U.callback.De(U.slot,K,W)})}; g.H.QH=function(){this.N.qs()||this.N.get().removeListener(this);g.GP.prototype.QH.call(this)}; g.JI.Object.defineProperties(UH.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});d$.prototype.jz=function(K,W){W=W===void 0?!1:W;var U=(this.N.get(K)||[]).concat();if(W=W&&NgY(K)){var h=this.N.get(W);h&&U.push.apply(U,g.z4(h))}cL(this,K,U);this.j.add(K);W&&this.j.add(W)}; d$.prototype.wH=function(K,W){W=W===void 0?!1:W;if(!this.j.has(K)){var U=W&&NgY(K);U&&(W=!this.j.has(U));this.jz(K,W)}};g.V($2F,yU);g.V(DyF,UH);g.H=DyF.prototype;g.H.N9=function(K,W){ju("ads-engagement-panel-layout",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),g.P(this.VH().renderingContent,uvD),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(W,U,h,m,S){return new $2F(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};g.V(J5e,yU);g.V(lMp,UH);g.H=lMp.prototype;g.H.N9=function(K,W){ju("banner-image",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),g.P(this.VH().renderingContent,gO2),this.callback,"metadata_type_banner_image_layout_view_model",function(W,U,h,m,S){return new J5e(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};g.V(P9p,yU);g.V(EdF,UH);g.H=EdF.prototype;g.H.N9=function(K,W){ju("action-companion",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),g.P(this.VH().renderingContent,qo),this.callback,"metadata_type_action_companion_ad_renderer",function(W,U,h,m,S){return new P9p(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){W.layoutId===this.layout.layoutId?this.Ke.wH("impression"):this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};g.V(Dxp,yU);g.V(tKD,UH);g.H=tKD.prototype;g.H.N9=function(K,W){ju("image-companion",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),g.P(this.VH().renderingContent,P5),this.callback,"metadata_type_image_companion_ad_renderer",function(W,U,h,m,S){return new Dxp(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){W.layoutId===this.layout.layoutId?this.Ke.wH("impression"):this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};g.V(BTR,yU);g.V(FGs,UH);g.H=FGs.prototype;g.H.N9=function(K,W){ju("shopping-companion",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(W,U,h,m,S){return new BTR(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){W.layoutId===this.layout.layoutId?this.Ke.wH("impression"):this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};g.V(c2,UH);g.H=c2.prototype;g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(W,U,h,m,S){return new P9p(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(){}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)}; g.H.N9=function(){};g.H=hDz.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){this.dk.get().addListener(this);this.dk.get().PT.push(this);var K=Sp(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=Sp(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Fe(this.layout.uZ)&&Ra(this.yg.get(),this.layout.layoutId,{rB:W,nQ:K,listener:this})}; g.H.release=function(){this.dk.get().removeListener(this);wlD(this.dk.get(),this);Fe(this.layout.uZ)&&jm(this.yg.get(),this.layout.layoutId)}; g.H.startRendering=function(K){this.callback.Fo(this.slot,K)}; g.H.iG=function(K,W){uzs(this.Xx.get())&&!this.j&&(this.Ke.wH("abandon"),this.j=!0);this.callback.De(this.slot,K,W)}; g.H.j$=function(K){switch(K.id){case "part2viewed":this.Ke.wH("start");this.Ke.wH("impression");break;case "videoplaytime25":this.Ke.wH("first_quartile");break;case "videoplaytime50":this.Ke.wH("midpoint");break;case "videoplaytime75":this.Ke.wH("third_quartile");break;case "videoplaytime100":uzs(this.Xx.get())?this.j||(this.Ke.wH("complete"),this.j=!0):this.Ke.wH("complete");v$(this.Ke)&&np(this.Ke,Infinity,!0);B7e(this.Xx.get())&&AY(this.X,Infinity,!0);break;case "engagedview":v$(this.Ke)||this.Ke.wH("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:UF("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.H.onVolumeChange=function(){}; g.H.hc=function(){}; g.H.z8=function(){}; g.H.r_=function(){}; g.H.onFullscreenToggled=function(){}; g.H.wS=function(){}; g.H.ID=function(){}; g.H.ZH=function(K){B7e(this.Xx.get())&&AY(this.X,K*1E3,!1);v$(this.Ke)&&np(this.Ke,K*1E3,!1)}; g.H.bK=function(){}; g.H.G6=function(){this.Ke.wH("active_view_measurable")}; g.H.Z0=function(){this.Ke.wH("active_view_viewable")}; g.H.qY=function(){this.Ke.wH("active_view_fully_viewable_audible_half_duration")}; g.H.k8=function(){this.Ke.wH("audio_measurable")}; g.H.z6=function(){this.Ke.wH("audio_audible")};g.V(WG,UH);g.H=WG.prototype;g.H.init=function(){UH.prototype.init.call(this);var K=Sp(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.t7};this.j.push(new Pk(K,this.layout.layoutId,Sp(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,!0))}; g.H.yB=function(){this.W||this.dk.get().resumeVideo(1)}; g.H.startRendering=function(K){UH.prototype.startRendering.call(this,K);ZK(this.dk.get(),"ad-showing");this.callback.Fo(this.slot,K);this.U.MV=this}; g.H.iG=function(K,W){UH.prototype.iG.call(this,K,W);pF(this.dk.get(),"ad-showing");jo(this.U,this)}; g.H.N9=function(K){switch(K){case "ad-info-icon-button":(this.W=this.dk.get().sY(1))||this.dk.get().pauseVideo();break;case "visit-advertiser":this.dk.get().pauseVideo()}}; g.H.QH=function(){UH.prototype.QH.call(this)};g.V(Xh,yU);g.V(Iws,UH);g.H=Iws.prototype;g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,U,h,m,S){return new Xh(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(){}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)}; g.H.N9=function(){};g.V(i8,yU);g.V(MN,UH);MN.prototype.init=function(){UH.prototype.init.call(this);this.j.push(new i8(g.P(this.layout.renderingContent,IT),this.layout.layoutId,{adsClientData:this.layout.t7}))}; MN.prototype.N9=function(){cd(this.W.get(),this.U)&&h9(this.zm.get(),3)}; MN.prototype.startRendering=function(K){UH.prototype.startRendering.call(this,K);this.callback.Fo(this.slot,K)}; MN.prototype.QH=function(){UH.prototype.QH.call(this)};g.V(jj,yU);g.V(t8,UH);t8.prototype.init=function(){UH.prototype.init.call(this);var K=g.P(this.layout.renderingContent,d2)||Sp(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),W=CF(this.Ke);this.j.push(new jj(K,W,this.layout.layoutId,{adsClientData:this.layout.t7},!0,!0))}; t8.prototype.startRendering=function(K){UH.prototype.startRendering.call(this,K);this.callback.Fo(this.slot,K)}; t8.prototype.N9=function(K,W){if(W===this.layout.layoutId)switch(K){case "skip-button":var U;(K=(U=Sp(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:U.current)&&K.tL(this.Vg(),this.layout)}}; t8.prototype.QH=function(){UH.prototype.QH.call(this)};lb.prototype.build=function(K,W,U,h){if(WC(h,{Xd:["metadata_type_ad_break_response_data"],oR:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Zyp(K,U,h,this.X,this.N,this.j);throw new Rt("Unsupported layout with type: "+h.layoutType+" and client metadata: "+bl(h.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.V(W_2,yU);g.V(Ir,UH);g.H=Ir.prototype;g.H.N9=function(K,W){ju("ads-engagement-panel",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),g.P(this.VH().renderingContent,Mz),this.callback,"metadata_type_ads_engagement_panel_renderer",function(W,U,h,m,S){return new W_2(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){W.layoutId===this.layout.layoutId?this.Ke.wH("impression"):this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};g.V(oS,UH);g.H=oS.prototype;g.H.N9=function(K,W){ju("top-banner-image-text-icon-buttoned",K,this.G.get().kM,this.zm.get(),this.W,this.U,this.Vg(),this.VH(),W)}; g.H.startRendering=function(K){lz(this.Ke,this.Vg(),this.VH(),g.P(this.VH().renderingContent,F4e),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,U,h,m,S){return new Xh(W,U,h,m,S)},this.j); UH.prototype.startRendering.call(this,K)}; g.H.Fo=function(K,W){this.U===W.layoutId&&(this.W===null?this.W=this.zm.get().h3():UF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.QH=function(){qZ(this.lZ(),this);UH.prototype.QH.call(this)};h$p.prototype.build=function(K,W,U,h){if(WC(h,j3$())||g.P(h.renderingContent,Mz)!==void 0)return new Ir(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,idR())||g.P(h.renderingContent,qo)!==void 0)return new EdF(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,utC())||g.P(h.renderingContent,P5)!==void 0)return new tKD(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,vNR()))return new FGs(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,$ke()))return new c2(K,U,h,this.bY,this.zm, this.lZ,this.yg,this.j);if(WC(h,bXR())||g.P(h.renderingContent,gO2)!==void 0)return new lMp(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,Rf2())||g.P(h.renderingContent,F4e)!==void 0)return new oS(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,yK2()))return new Iws(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);if(WC(h,FNs())||g.P(h.renderingContent,uvD)!==void 0)return new DyF(K,U,h,this.bY,this.zm,this.lZ,this.yg,this.j);throw new Rt("Unsupported layout with type: "+h.layoutType+" and client metadata: "+ bl(h.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};SLC.prototype.build=function(K,W,U,h){if(WC(h,{Xd:["metadata_type_linked_player_bytes_layout_id"],oR:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new MN(K,U,h,this.bY,this.zm,this.j);throw new Rt("Unsupported layout with type: "+h.layoutType+" and client metadata: "+bl(h.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.H=ubF.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){}; g.H.release=function(){}; g.H.startRendering=function(K){K.layoutId!==this.layout.layoutId?this.callback.gm(this.slot,K,new Rt("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.Fo(this.slot,K),this.Ke.wH("impression"),nw(this.oD,K,"normal"))}; g.H.iG=function(K,W){K.layoutId!==this.layout.layoutId?this.callback.gm(this.slot,K,new Rt("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.De(this.slot,K,W)};g.H=qDp.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){}; g.H.release=function(){}; g.H.startRendering=function(K){K.layoutId!==this.layout.layoutId?this.callback.gm(this.slot,K,new Rt("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.Fo(this.slot,K),this.Ke.wH("impression"),nw(this.oD,K,"normal"))}; g.H.iG=function(K,W){K.layoutId!==this.layout.layoutId?this.callback.gm(this.slot,K,new Rt("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.De(this.slot,K,W)};LA.prototype.build=function(K,W,U,h){if(!this.Xx.get().D.V().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(WC(h,ywp()))return new ubF(K,U,h,this.zm,this.oD)}else if(WC(h,{Xd:[],oR:["LAYOUT_TYPE_FORECASTING"]}))return new qDp(K,U,h,this.zm,this.oD);throw new Rt("Unsupported layout with type: "+h.layoutType+" and client metadata: "+bl(h.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.V(YIz,yU);g.V(dZ,UH);g.H=dZ.prototype;g.H.init=function(){UH.prototype.init.call(this);var K=g.P(this.layout.renderingContent,ZuR)||Sp(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),W={adsClientData:this.layout.t7};this.j.push(new YIz(K,Sp(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,W))}; g.H.yB=function(){this.W||this.dk.get().resumeVideo(2)}; g.H.startRendering=function(K){UH.prototype.startRendering.call(this,K);this.callback.Fo(this.slot,K);this.U.MV=this}; g.H.iG=function(K,W){UH.prototype.iG.call(this,K,W);jo(this.U,this)}; g.H.N9=function(K,W){if(!AC(this.Xx.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(cd(this.G.get(),this.Y))switch(K){case "visit-advertiser-link":h9(this.zm.get(),3)}switch(K){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.dk.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.dk.get().sY(2))||this.dk.get().pauseVideo();break; case "visit-advertiser-link":this.dk.get().pauseVideo();y1L(this).Kq();break;case "skip-button":if(K=y1L(this),this.layout.renderingContent&&!UC(this.layout.clientMetadata,"metadata_type_dai")||!K||!K.o9){var U;(K=(U=Sp(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:U.current)&&K.tL(this.Vg(),this.layout)}else UF("Requesting to skip by LegacyPlayerBytes when components enabled"),K.Ja(this.Vg(),this.layout)}}}; g.H.QH=function(){UH.prototype.QH.call(this)};g.V(xn,UH);g.H=xn.prototype;g.H.init=function(){UH.prototype.init.call(this);var K=g.P(this.layout.renderingContent,fq)||Sp(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.t7},U;(U=!!this.layout.renderingContent)||(U=ia(this),U=!(U&&U.o9));this.j.push(new Pk(K,this.layout.layoutId,Sp(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,U))}; g.H.yB=function(){this.W||this.dk.get().resumeVideo(2)}; g.H.startRendering=function(K){UH.prototype.startRendering.call(this,K);this.callback.Fo(this.slot,K);this.U.MV=this}; g.H.iG=function(K,W){UH.prototype.iG.call(this,K,W);jo(this.U,this)}; g.H.N9=function(K,W){if(!this.Xx||!AC(this.Xx.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(cd(this.G.get(),this.Y))switch(K){case "visit-advertiser":h9(this.zm.get(),3)}switch(K){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.dk.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.dk.get().sY(2))||this.dk.get().pauseVideo();break; case "visit-advertiser":this.dk.get().pauseVideo();ia(this).Kq();break;case "skip-button":if(K=ia(this),this.layout.renderingContent&&!UC(this.layout.clientMetadata,"metadata_type_dai")||!K||!K.o9){var U;(K=(U=Sp(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:U.current)&&K.tL(this.Vg(),this.layout)}else UF("Requesting to skip by LegacyPlayerBytes"),K.Ja(this.Vg(),this.layout)}}}; g.H.QH=function(){UH.prototype.QH.call(this)};g.V(KEL,yU);g.V(ZT,UH);g.H=ZT.prototype;g.H.startRendering=function(K){var W=this;Z4(this.X,K,function(){W.j.push(new KEL(Sp(W.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),K.layoutId,K.t7));W.DP();W.callback.Fo(W.slot,K);g.C(Ah(W.dk.get(),1),512)&&W.callback.gm(W.Vg(),W.VH(),new Rt("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.H.ID=function(){}; g.H.wS=function(K){if(K.state.isError()){var W;this.callback.gm(this.Vg(),this.VH(),new Rt("A player error happened during adNotify",{playerErrorCode:(W=K.state.wi)==null?void 0:W.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.H.onFullscreenToggled=function(){}; g.H.z8=function(){}; g.H.r_=function(){}; g.H.hc=function(){}; g.H.onVolumeChange=function(){}; g.H.j$=function(){}; g.H.bK=function(){}; g.H.N9=function(){};g.V(RFD,yU);g.V(hk,UH);hk.prototype.init=function(){UH.prototype.init.call(this);var K=g.P(this.layout.renderingContent,buC),W=CF(this.Ke);this.j.push(new RFD(K,W,this.layout.layoutId,{adsClientData:this.layout.t7}))}; hk.prototype.startRendering=function(K){UH.prototype.startRendering.call(this,K);this.callback.Fo(this.slot,K)}; hk.prototype.N9=function(K,W){if(W===this.layout.layoutId)switch(K){case "skip-button":var U;(K=(U=Sp(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:U.current)&&K.tL(this.Vg(),this.layout)}}; hk.prototype.QH=function(){UH.prototype.QH.call(this)};aqC.prototype.build=function(K,W,U,h){if(K=GU(K,U,h,this.bY,this.dk,this.zm,this.X,this.j,this.Xx))return K;throw new Rt("Unsupported layout with type: "+h.layoutType+" and client metadata: "+bl(h.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.H=bO.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){this.dk.get().addListener(this);this.dk.get().PT.push(this);if(this.layout.renderingContent){var K=this.ZA.get();K=Xp(K,1).Of/1E3}else K=Sp(this.layout.clientMetadata,"metadata_type_video_length_seconds");var W=g.P(this.layout.renderingContent,Dj),U=W?Su(W.pings):Sp(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W=W?zop(W.pings):Sp(this.layout.clientMetadata,"metadata_type_active_view_identifier");Fe(this.layout.uZ)&&Ra(this.yg.get(),this.layout.layoutId, {rB:U,nQ:K,listener:this,AQ:W})}; g.H.release=function(){this.dk.get().removeListener(this);wlD(this.dk.get(),this);Fe(this.layout.uZ)&&jm(this.yg.get(),this.layout.layoutId)}; g.H.startRendering=function(K){this.callback.Fo(this.slot,K)}; g.H.iG=function(K,W){hA_(this,"abandon");this.callback.De(this.slot,K,W)}; g.H.j$=function(K){switch(K.id){case "part2viewed":this.Ke.wH("start");this.Ke.wH("impression");break;case "videoplaytime25":this.Ke.wH("first_quartile");break;case "videoplaytime50":this.Ke.wH("midpoint");break;case "videoplaytime75":this.Ke.wH("third_quartile");break;case "videoplaytime100":hA_(this,"complete");v$(this.Ke)&&np(this.Ke,Infinity,!0);break;case "engagedview":v$(this.Ke)||this.Ke.wH("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:UF("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.H.onVolumeChange=function(){}; g.H.hc=function(){}; g.H.z8=function(){}; g.H.r_=function(){}; g.H.onFullscreenToggled=function(){}; g.H.wS=function(K){this.j||(g.M9(K,4)&&!g.M9(K,2)?uc(this.Ke,"pause"):Jw(K,4)<0&&!(Jw(K,2)<0)&&uc(this.Ke,"resume"))}; g.H.ID=function(){}; g.H.ZH=function(K){v$(this.Ke)&&np(this.Ke,K*1E3,!1)}; g.H.bK=function(){hA_(this,"swipe")}; g.H.G6=function(){this.Ke.wH("active_view_measurable")}; g.H.Z0=function(){this.Ke.wH("active_view_viewable")}; g.H.qY=function(){this.Ke.wH("active_view_fully_viewable_audible_half_duration")}; g.H.k8=function(){this.Ke.wH("audio_measurable")}; g.H.z6=function(){this.Ke.wH("audio_audible")};jds.prototype.build=function(K,W,U,h){if(U.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.P(h.renderingContent,Dj)!==void 0)return new bO(K,U,h,this.dk,this.zm,this.Xx,this.yg,this.ZA);W=["metadata_type_ad_placement_config"];for(var m=g.z(gT()),S=m.next();!S.done;S=m.next())W.push(S.value);if(WC(h,{Xd:W,oR:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return U.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new bO(K,U,h,this.dk,this.zm,this.Xx,this.yg,this.ZA):new hDz(K,U,h,this.dk,this.zm, this.kd,this.Xx,this.yg);throw new Rt("Unsupported layout with type: "+h.layoutType+" and client metadata: "+bl(h.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Fg={contentCpn:"",E3:new Map};IB_.prototype.bZ=function(K,W){var U={};W=Object.assign({},W,(U.cc=this.i5.UC(),U));this.i5.D.rk(K,W)};var Ljf,p2; Ljf={oMx:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",UNx:"AUTHENTICATION_MALFORMED",dNx:"AUTHENTICATION_MISSING",LZm:"BAD_REQUEST",Z1H:"CAST_SESSION_DEVICE_MISMATCHED",Yjp:"CAST_SESSION_VIDEO_MISMATCHED",vTp:"CAST_TOKEN_EXPIRED",SjV:"CAST_TOKEN_FAILED",ADk:"CAST_TOKEN_MALFORMED",B_k:"CGI_PARAMS_MALFORMED",JDV:"CGI_PARAMS_MISSING",NXx:"DEVICE_FALLBACK",SCV:"GENERIC_WITH_LINK_AND_CPN",ABm:"ERROR_HDCP",BXe:"LICENSE",Vve:"VIDEO_UNAVAILABLE",RpV:"FORMAT_UNAVAILABLE",x4H:"GEO_FAILURE", aUU:"HTML5_AUDIO_RENDERER_ERROR",ha5:"GENERIC_WITHOUT_LINK",UKX:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dKm:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",DKH:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",HKK:"HTML5_SPS_UMP_STATUS_REJECTED",ZKp:"INVALID_DRM_MESSAGE",H7H:"PURCHASE_NOT_FOUND",nDH:"PURCHASE_REFUNDED",f5X:"RENTAL_EXPIRED",jxr:"RETRYABLE_ERROR",NZK:"SERVER_ERROR",Hwm:"SIGNATURE_EXPIRED",eIe:"STOPPED_BY_ANOTHER_PLAYBACK",tIe:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",GZX:"STREAMING_NOT_ALLOWED", Zwm:"STREAM_LICENSE_NOT_FOUND",wgU:"TOO_MANY_REQUESTS",sxk:"TOO_MANY_REQUESTS_WITH_LINK",Eos:"TOO_MANY_STREAMS_PER_ENTITLEMENT",KJX:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",yRA:"VIDEO_FORBIDDEN",W8k:"VIDEO_NOT_FOUND",eFV:"BROWSER_OR_EXTENSION_ERROR"};p2={}; g.fe=(p2.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.",p2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",p2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",p2.LICENSE="Sorry, there was an error licensing this video.",p2.VIDEO_UNAVAILABLE= "Video unavailable",p2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",p2.GEO_FAILURE="This video isn't available in your country.",p2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",p2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",p2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",p2.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", p2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",p2.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",p2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",p2.PURCHASE_NOT_FOUND="This video requires payment.",p2.PURCHASE_REFUNDED="This video's purchase has been refunded.",p2.RENTAL_EXPIRED="This video's rental has expired.",p2.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",p2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",p2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",p2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",p2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",p2.SERVER_ERROR="There was an internal server error. Please try again later.",p2.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",p2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",p2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",p2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",p2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",p2.TOO_MANY_REQUESTS="Please log in to watch this video.", p2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",p2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",p2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",p2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",p2.VIDEO_FORBIDDEN="Access to this video is forbidden.",p2.VIDEO_NOT_FOUND="This video can not be found.",p2.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",p2);var KLh;var WLt=g.i5(),Usj=WLt.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Usj||Usj.length<2)KLh=void 0;else{var hbb=WLt.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);KLh=hbb&&hbb.length===6?Number(hbb[5].replace("_",".")):0}var zU=KLh,Gi=zU>=0;g.V(g.Te,jg);g.Te.prototype.S=function(K,W,U,h,m){return jg.prototype.S.call(this,K,W,U,h,m)};var of={},gi=(of.FAIRPLAY="fairplay",of.PLAYREADY="playready",of.WIDEVINE="widevine",of.CLEARKEY=null,of.FLASHACCESS=null,of.UNKNOWN=null,of.WIDEVINE_CLASSIC=null,of);fJ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var ZC={},a$=(ZC.WIDTH={name:"width",video:!0,valid:640,HY:99999},ZC.HEIGHT={name:"height",video:!0,valid:360,HY:99999},ZC.FRAMERATE={name:"framerate",video:!0,valid:30,HY:9999},ZC.BITRATE={name:"bitrate",video:!0,valid:3E5,HY:2E9},ZC.EOTF={name:"eotf",video:!0,valid:"bt709",HY:"catavision"},ZC.CHANNELS={name:"channels",video:!1,valid:2,HY:99},ZC.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",HY:"invalidformat"},ZC.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", HY:"nope"},ZC.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",HY:"av99.0.05M.08"},ZC.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",HY:"invalid"},ZC.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",HY:"false"},ZC);var jVH=["h","H"],msh=["9","("],SZW=["9h","(h"],fPO=["8","*"],tgN=["a","A"],G2H=["o","O"],IP4=["m","M"],dsb=["mac3","MAC3"],JWv=["meac3","MEAC3"],bT={},Zwe=(bT.h=jVH,bT.H=jVH,bT["9"]=msh,bT["("]=msh,bT["9h"]=SZW,bT["(h"]=SZW,bT["8"]=fPO,bT["*"]=fPO,bT.a=tgN,bT.A=tgN,bT.o=G2H,bT.O=G2H,bT.m=IP4,bT.M=IP4,bT.mac3=dsb,bT.MAC3=dsb,bT.meac3=JWv,bT.MEAC3=JWv,bT),ebt=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),yCL=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var L={},NU=(L["0"]="f",L["160"]="h",L["133"]="h",L["134"]="h",L["135"]="h",L["136"]="h",L["137"]="h",L["264"]="h",L["266"]="h",L["138"]="h",L["298"]="h",L["299"]="h",L["304"]="h",L["305"]="h",L["214"]="h",L["216"]="h",L["374"]="h",L["375"]="h",L["140"]="a",L["141"]="a",L["327"]="sa",L["258"]="m",L["380"]="mac3",L["328"]="meac3",L["161"]="H",L["142"]="H",L["143"]="H",L["144"]="H",L["222"]="H",L["223"]="H",L["145"]="H",L["224"]="H",L["225"]="H",L["146"]="H",L["226"]="H",L["227"]="H",L["147"]="H",L["384"]= "H",L["376"]="H",L["385"]="H",L["377"]="H",L["149"]="A",L["261"]="M",L["381"]="MAC3",L["329"]="MEAC3",L["598"]="9",L["278"]="9",L["242"]="9",L["243"]="9",L["244"]="9",L["775"]="9",L["776"]="9",L["777"]="9",L["778"]="9",L["779"]="9",L["780"]="9",L["781"]="9",L["782"]="9",L["783"]="9",L["247"]="9",L["248"]="9",L["353"]="9",L["355"]="9",L["356"]="9",L["271"]="9",L["577"]="9",L["313"]="9",L["579"]="9",L["272"]="9",L["302"]="9",L["303"]="9",L["407"]="9",L["408"]="9",L["308"]="9",L["315"]="9",L["330"]= "9h",L["331"]="9h",L["332"]="9h",L["333"]="9h",L["334"]="9h",L["335"]="9h",L["336"]="9h",L["337"]="9h",L["338"]="so",L["600"]="o",L["250"]="o",L["251"]="o",L["774"]="o",L["194"]="*",L["195"]="*",L["220"]="*",L["221"]="*",L["196"]="*",L["197"]="*",L["279"]="(",L["280"]="(",L["317"]="(",L["318"]="(",L["273"]="(",L["274"]="(",L["357"]="(",L["358"]="(",L["275"]="(",L["359"]="(",L["360"]="(",L["276"]="(",L["583"]="(",L["584"]="(",L["314"]="(",L["585"]="(",L["561"]="(",L["277"]="(",L["361"]="(h",L["362"]= "(h",L["363"]="(h",L["364"]="(h",L["365"]="(h",L["366"]="(h",L["591"]="(h",L["592"]="(h",L["367"]="(h",L["586"]="(h",L["587"]="(h",L["368"]="(h",L["588"]="(h",L["562"]="(h",L["409"]="(",L["410"]="(",L["411"]="(",L["412"]="(",L["557"]="(",L["558"]="(",L["394"]="1",L["395"]="1",L["396"]="1",L["397"]="1",L["398"]="1",L["399"]="1",L["720"]="1",L["721"]="1",L["400"]="1",L["401"]="1",L["571"]="1",L["402"]="1",L["694"]="1h",L["695"]="1h",L["696"]="1h",L["697"]="1h",L["698"]="1h",L["699"]="1h",L["700"]="1h", L["701"]="1h",L["702"]="1h",L["703"]="1h",L["386"]="3",L["387"]="w",L["406"]="6",L["787"]="1",L["788"]="1",L["548"]="1e",L["549"]="1e",L["550"]="1e",L["551"]="1e",L["809"]="1e",L["810"]="1e",L["552"]="1e",L["811"]="1e",L["812"]="1e",L["553"]="1e",L["813"]="1e",L["814"]="1e",L["554"]="1e",L["815"]="1e",L["816"]="1e",L["555"]="1e",L["817"]="1e",L["818"]="1e",L["572"]="1e",L["556"]="1e",L["645"]="(",L["646"]="(",L["647"]="(",L["648"]="(",L["649"]="(",L["650"]="(",L["651"]="(",L["652"]="(",L["653"]="(", L["654"]="(",L["655"]="(",L["656"]="(",L["657"]="(",L["658"]="(",L["659"]="(",L["660"]="(",L["661"]="(",L["662"]="(",L["663"]="(",L["664"]="(",L["665"]="(",L["666"]="(",L["667"]="(",L["668"]="(",L["669"]="(",L["670"]="(",L["671"]="(",L["672"]="(",L["673"]="(",L["674"]="(h",L["675"]="(h",L["676"]="(h",L["677"]="(h",L["678"]="(h",L["679"]="(h",L["680"]="(h",L["681"]="(h",L["682"]="(h",L["683"]="(h",L["684"]="(h",L["685"]="(h",L["686"]="(h",L["687"]="(h",L["688"]="A",L["689"]="A",L["690"]="A",L["691"]= "MEAC3",L["773"]="i",L["806"]="I",L["805"]="I",L["829"]="9",L["830"]="9",L["831"]="9",L["832"]="9",L["833"]="9",L["834"]="9",L["835"]="9",L["836"]="9",L["892"]="9",L["893"]="9",L["837"]="9",L["838"]="9",L["839"]="9",L["840"]="9",L["841"]="(",L["842"]="(",L["843"]="(",L["844"]="(",L["845"]="(",L["846"]="(",L["847"]="(",L["848"]="(",L["894"]="(",L["895"]="(",L["849"]="(",L["850"]="(",L["851"]="(",L["852"]="(",L["865"]="9",L["866"]="9",L["867"]="9",L["868"]="9",L["869"]="9",L["870"]="9",L["871"]="9", L["872"]="9",L["896"]="9",L["897"]="9",L["873"]="9",L["874"]="9",L["875"]="9",L["876"]="9",L["877"]="(",L["878"]="(",L["879"]="(",L["880"]="(",L["881"]="(",L["882"]="(",L["883"]="(",L["884"]="(",L["898"]="(",L["899"]="(",L["885"]="(",L["886"]="(",L["887"]="(",L["888"]="(",L["900"]="2",L["901"]="2",L["902"]="2",L["903"]="2",L["904"]="2",L["905"]="2",L["906"]="2",L["907"]="2",L["908"]="2",L);var sa={},KYs=(sa.STEREO_LAYOUT_UNKNOWN=0,sa.STEREO_LAYOUT_LEFT_RIGHT=1,sa.STEREO_LAYOUT_TOP_BOTTOM=2,sa);var Hl2={KuH:0,GoU:124,edr:144,vDA:220,Y0V:240,AnH:340,S05:360,Bfx:480,Vrr:588,Jnr:608,wMr:720,sNp:740,mXm:1080,zdV:1100,q0m:1440,Z7V:2160,EDH:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var V1,d0,Xo,UV2;V1={};g.YJ=(V1.auto=0,V1.tiny=144,V1.light=144,V1.small=240,V1.medium=360,V1.large=480,V1.hd720=720,V1.hd1080=1080,V1.hd1440=1440,V1.hd2160=2160,V1.hd2880=2880,V1.highres=4320,V1);d0={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Xo={}; UV2=(Xo.QUALITY_ORDINAL_UNKNOWN=0,Xo.QUALITY_ORDINAL_144P_SAVER=124,Xo.QUALITY_ORDINAL_144P=144,Xo.QUALITY_ORDINAL_240P_SAVER=220,Xo.QUALITY_ORDINAL_240P=240,Xo.QUALITY_ORDINAL_360P_SAVER=340,Xo.QUALITY_ORDINAL_360P=360,Xo.QUALITY_ORDINAL_480P=480,Xo.QUALITY_ORDINAL_608P_SAVER=588,Xo.QUALITY_ORDINAL_608P=608,Xo.QUALITY_ORDINAL_720P=720,Xo.QUALITY_ORDINAL_720P_ENHANCED=740,Xo.QUALITY_ORDINAL_1080P=1080,Xo.QUALITY_ORDINAL_1080P_ENHANCED=1100,Xo.QUALITY_ORDINAL_1440P=1440,Xo.QUALITY_ORDINAL_2160P=2160, Xo.QUALITY_ORDINAL_HIGHRES=9999,Xo);var On="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");t0.prototype.isHdr=function(){return this.j==="smpte2084"||this.j==="arib-std-b67"};GT.prototype.yh=function(){return this.containerType===2}; GT.prototype.isEncrypted=function(){return!!this.zL}; GT.prototype.yR=function(){return!!this.audio}; GT.prototype.ZE=function(){return!!this.video}; var MH=!1;g.V(V4,g.GP);g.H=V4.prototype;g.H.appendBuffer=function(K,W,U){if(this.uG.zH()!==this.appendWindowStart+this.start||this.uG.o0()!==this.appendWindowEnd+this.start||this.uG.A7()!==this.timestampOffset+this.start)this.uG.supports(1),this.uG.nJ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.uG.gQ(this.timestampOffset+this.start);this.uG.appendBuffer(K,W,U)}; g.H.abort=function(){this.uG.abort()}; g.H.remove=function(K,W){this.uG.remove(K+this.start,W+this.start)}; g.H.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.H.clear=function(){this.uG.clear()}; g.H.nJ=function(K,W){this.appendWindowStart=K;this.appendWindowEnd=W}; g.H.wA=function(){return this.timestampOffset+this.start}; g.H.zH=function(){return this.appendWindowStart}; g.H.o0=function(){return this.appendWindowEnd}; g.H.gQ=function(K){this.timestampOffset=K}; g.H.A7=function(){return this.timestampOffset}; g.H.Nb=function(K){K=this.uG.Nb(K===void 0?!1:K);return H8(K,this.start,this.end)}; g.H.ev=function(){return this.uG.ev()}; g.H.DD=function(){return this.uG.DD()}; g.H.nK=function(){return this.uG.nK()}; g.H.mB=function(){return this.uG.mB()}; g.H.yM=function(){this.uG.yM()}; g.H.Cj=function(K){return this.uG.Cj(K)}; g.H.zp=function(){return this.uG.zp()}; g.H.j9=function(){return this.uG.j9()}; g.H.nB=function(K,W,U){this.uG.nB(K,W,U)}; g.H.LB=function(K,W,U){this.uG.LB(K,W,U)}; g.H.aL=function(K,W){return this.uG.aL(K,W)}; g.H.supports=function(K){return this.uG.supports(K)}; g.H.pX=function(){return this.uG.pX()}; g.H.isView=function(){return!0}; g.H.xG=function(){return this.uG.xG()?this.isActive:!1}; g.H.isLocked=function(){return this.ze&&!this.isActive}; g.H.P3=function(K){K=this.uG.P3(K);K.vw=this.start+"-"+this.end;return K}; g.H.Me=function(){return this.uG.Me()}; g.H.BQ=function(){return this.uG.BQ()}; g.H.ZI=function(){return this.uG.ZI()}; g.H.QH=function(){this.uG.L4(this.Oc);g.GP.prototype.QH.call(this)};var Kc=!1;g.V(mi,g.GP);g.H=mi.prototype;g.H.appendBuffer=function(K,W,U){this.Jz=!1;U&&(this.S2=U);if(K.length){var h;((h=this.B3)==null?0:h.appendBuffer)?this.B3.appendBuffer(K):this.B3?this.B3.append(K):this.Zw&&this.Zw.webkitSourceAppend(this.id,K)}W&&(W.isEncrypted()&&(this.o6=this.S2),W.type===3&&(this.lB=W),this.Yj.push(W.m6()),this.Yj.length>4&&this.Yj.shift());this.Lx&&(this.Lx.length>=2||K.length>1048576?delete this.Lx:this.Lx.push(K))}; g.H.abort=function(){try{this.B3?this.B3.abort():this.Zw&&this.Zw.webkitSourceAbort(this.id)}catch(W){if(xOF){var K=new g.EB("Error while abort the source buffer: "+W.name+", "+W.message);g.wG(K)}}this.S2=this.lB=null}; g.H.remove=function(K,W,U){this.Jz=!1;var h;if((h=this.B3)==null?0:h.remove)U&&U({b:fc(this.Nb()),s:K,e:W}),this.B3.remove(K,W)}; g.H.removeAll=function(){this.remove(this.zH(),this.o0())}; g.H.clear=function(){this.nK()||(this.abort(),this.removeAll(),this.o6=this.S2=this.lB=null,this.appendWindowStart=this.timestampOffset=0,this.zv=hy([],[]),this.Jz=!1,this.Lx=jA?[]:void 0,this.rE=!0)}; g.H.zH=function(){if(Kc&&this.ZE)return this.appendWindowStart;var K;return((K=this.B3)==null?void 0:K.appendWindowStart)||0}; g.H.o0=function(){var K;return((K=this.B3)==null?void 0:K.appendWindowEnd)||0}; g.H.nJ=function(K,W){this.B3&&(Kc&&this.ZE?(this.appendWindowStart=K,this.B3.appendWindowEnd=W):K>this.zH()?(this.B3.appendWindowEnd=W,this.B3.appendWindowStart=K):(this.B3.appendWindowStart=K,this.B3.appendWindowEnd=W))}; g.H.wA=function(){return this.timestampOffset}; g.H.gQ=function(K){Kc?this.timestampOffset=K:this.supports(1)&&(this.B3.timestampOffset=K)}; g.H.A7=function(){return Kc?this.timestampOffset:this.supports(1)?this.B3.timestampOffset:0}; g.H.Nb=function(K){if(K===void 0?0:K)return this.Jz||this.ev()||(this.zv=this.Nb(!1),this.Jz=!0),this.zv;try{return this.B3?this.B3.buffered:this.Zw?this.Zw.webkitSourceBuffered(this.id):hy([0],[Infinity])}catch(W){return hy([],[])}}; g.H.ev=function(){var K;return((K=this.B3)==null?void 0:K.updating)||!1}; g.H.nK=function(){return this.rE}; g.H.mB=function(){return!this.rE&&this.ev()}; g.H.yM=function(){this.rE=!1}; g.H.Cj=function(K){var W=K==null?void 0:K.lX;K=K==null?void 0:K.containerType;return!W&&!K||W===this.lX&&K===this.containerType}; g.H.zp=function(){return this.S2}; g.H.j9=function(){return this.o6}; g.H.aL=function(K,W){return this.containerType!==K||this.lX!==W}; g.H.nB=function(K,W,U){if(this.containerType!==K||U&&this.aL(K,U))this.supports(4),dr()&&this.B3.changeType(W),U&&(this.lX=U);this.containerType=K}; g.H.LB=function(K,W,U){this.containerType&&this.aL(K,W)&&dr()&&this.B3.changeType(U);this.containerType=K;this.lX=W}; g.H.pX=function(){return this.lB}; g.H.isView=function(){return!1}; g.H.supports=function(K){switch(K){case 1:var W;return((W=this.B3)==null?void 0:W.timestampOffset)!==void 0;case 0:var U;return!((U=this.B3)==null||!U.appendBuffer);case 2:var h;return!((h=this.B3)==null||!h.remove);case 3:var m,S;return!!(((m=this.B3)==null?0:m.addEventListener)&&((S=this.B3)==null?0:S.removeEventListener));case 4:return!(!this.B3||!this.B3.changeType);default:return!1}}; g.H.xG=function(){return!this.ev()}; g.H.isLocked=function(){return!1}; g.H.P3=function(K){K.to=this.A7();K.up=this.ev();var W,U=((W=this.B3)==null?void 0:W.appendWindowStart)||0,h;W=((h=this.B3)==null?void 0:h.appendWindowEnd)||Infinity;K.aw=U.toFixed(3)+"-"+W.toFixed(3);return K}; g.H.DD=function(){var K;return((K=this.B3)==null?void 0:K.writeHead)||0}; g.H.Me=function(){for(var K={},W=0;W=7&&(!W||((h=this.iX)==null?0:h.L("mweb_ios_allow_playback_workaround_when_ready")))&&bzR(this,function(){g.FE(function(){YB_(K,K.getCurrentTime(),0)},500)})}return W}; g.H.seekTo=function(K){this.yn()>0&&(Gi&&zU<4&&(K=Math.max(.1,K)),this.setCurrentTime(K))}; g.H.rX=function(){if(!this.X&&this.AK)if(this.AK.U)try{var K;BS(this,{l:"mer",sr:(K=this.iX)==null?void 0:K.vu(),rs:pL(this.AK)});this.AK.clear();this.X=this.AK;this.AK=void 0}catch(W){K=new g.EB("Error while clearing Media Source in MediaElement: "+W.name+", "+W.message),g.wG(K),this.stopVideo()}else this.stopVideo()}; g.H.stopVideo=function(){var K=this;if(!this.X){var W;(W=this.AK)==null||JAY(W);if(V3C){if(!this.N){var U=new Y2;U.then(void 0,function(){}); this.N=U;Xoe&&this.pause();g.FE(function(){K.N===U&&(EOL(K),U.resolve())},200)}}else EOL(this)}}; g.H.V1=function(){var K=this.Po();return Ao(K)&&this.getDuration()?n7(K,this.getCurrentTime()):0}; g.H.tM=function(){var K=this.getDuration();return K===Infinity?1:K?this.V1()/K:0}; g.H.P3=function(){try{var K=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:fc(this.ZZ(),",",3),vbu:fc(this.Po()),vbs:fc(this.P9()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.yn(),vns:""+this.bH(),vec:""+this.KN(),vemsg:this.Xh(),vvol:""+this.getVolume(),vdom:""+ +this.zf(),vsrc:""+ +!!this.aD(),vw:""+K.width,vh:""+K.height}}catch(W){return{}}}; g.H.hasError=function(){return this.KN()>0}; g.H.addEventListener=function(K,W){this.W.listen(K,W,!1,this);this.Zv(K)}; g.H.removeEventListener=function(K,W){this.W.GK(K,W,!1,this)}; g.H.dispatchEvent=function(K){if(this.N&&K.type==="pause")return!1;if(vSR){var W,U=((W=K.j)==null?void 0:W.timeStamp)||Infinity;W=U>performance.now()?U-Date.now()+performance.now():U;U=this.X||this.AK;if((U==null?0:U.nK())||W<=((U==null?void 0:U.G)||0)){var h;BS(this,{l:"mede",sr:(h=this.iX)==null?void 0:h.vu(),et:K.type});return!1}if(this.S9)return BS(this,{l:"medes",et:K.type}),U&&K.type==="seeking"&&(U.G=performance.now(),this.S9=!1),!1}return this.W.dispatchEvent(K)}; g.H.eg=function(){this.Y=!1}; g.H.Ly=function(){this.Y=!0;this.Ai(!0)}; g.H.nL=function(){this.Y&&!this.uH()&&this.Ai(!0)}; g.H.equals=function(K){return!!K&&K.H3()===this.H3()}; g.H.QH=function(){this.J&&this.removeEventListener("volumechange",this.nL);V3C&&EOL(this);g.p.prototype.QH.call(this)}; var V3C=!1,Xoe=!1,vSR=!1,p_$=!1;g.H=g.Kw.prototype;g.H.isPaused=function(){return g.C(this,4)}; g.H.isPlaying=function(){return g.C(this,8)&&!g.C(this,512)&&!g.C(this,64)&&!g.C(this,2)}; g.H.isOrWillBePlaying=function(){return g.C(this,8)&&!g.C(this,2)&&!g.C(this,1024)}; g.H.isCued=function(){return g.C(this,64)&&!g.C(this,8)&&!g.C(this,4)}; g.H.isBuffering=function(){return g.C(this,1)&&!g.C(this,2)}; g.H.isError=function(){return g.C(this,128)}; g.H.isSuspended=function(){return g.C(this,512)}; g.H.jG=function(){return g.C(this,64)&&g.C(this,4)}; g.H.toString=function(){return"PSt."+this.state.toString(16)}; var vA={},qQ=(vA.BUFFERING="buffering-mode",vA.CUED="cued-mode",vA.ENDED="ended-mode",vA.PAUSED="paused-mode",vA.PLAYING="playing-mode",vA.SEEKING="seeking-mode",vA.UNSTARTED="unstarted-mode",vA);g.V(zE,g.p);g.H=zE.prototype;g.H.mR=function(){return this.N}; g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){var K=Sp(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=Sp(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Fe(this.layout.uZ)&&Ra(this.yg.get(),this.layout.layoutId,{rB:W,nQ:K,listener:this,wQ:this.k5()});kS(this.zm.get(),this);K=this.Pu;W=this.layout.layoutId;var U={wQ:this.k5()};K.j.set(W,U);this.Ax()}; g.H.hG=function(){}; g.H.release=function(){Fe(this.layout.uZ)&&jm(this.yg.get(),this.layout.layoutId);CE(this.zm.get(),this);this.Pu.j.delete(this.layout.layoutId);this.CZ()}; g.H.bQ=function(){}; g.H.dN=function(){}; g.H.startRendering=function(K){IC(N0(this));if(ho(this,K)){var W=this.j;TB(W.params.bu.Xx.get(),!0)&&Jde(W,"p_sr",{});P$2(this);this.Oe(K);this.k5()||this.EH(!1)}}; g.H.Fo=function(K,W){if(W.layoutId===this.layout.layoutId){this.RW="rendering";this.X=this.dk.get().isMuted()||this.dk.get().getVolume()===0;this.wH("impression");this.wH("start");if(this.dk.get().isMuted()){ks(this,"mute");var U;K=((U=rO(this))==null?void 0:U.muteCommands)||[];Qp(this.kd.get(),K,this.layout.layoutId)}if(this.dk.get().isFullscreen()){this.jz("fullscreen");var h;U=((h=rO(this))==null?void 0:h.fullscreenCommands)||[];Qp(this.kd.get(),U,this.layout.layoutId)}this.k5()||(h=this.Hl.get(), h.N&&!h.X&&(h.U=!1,h.X=!0,h.actionType!=="ad_to_video"&&(S8("pbs",void 0,h.actionType),g.hc("finalize_all_timelines")&&O9C(h.actionType))));this.vY(1);this.Ig(W);var m;W=((m=rO(this))==null?void 0:m.impressionCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.eJ=function(K,W,U){this.Y={pI:3,DW:K==="load_timeout"?402:400,errorMessage:W.message};this.wH("error");var h;K=((h=rO(this))==null?void 0:h.errorCommands)||[];Qp(this.kd.get(),K,this.layout.layoutId);this.k5()||this.rf.gm(this.slot,this.layout,W,U)}; g.H.Nm=function(){if(this.RW==="rendering"){ks(this,"pause");var K,W=((K=rO(this))==null?void 0:K.pauseCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId);this.vY(2)}}; g.H.y5=function(){if(this.RW==="rendering"){ks(this,"resume");var K,W=((K=rO(this))==null?void 0:K.resumeCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.HF=function(K,W){W=W===void 0?!1:W;if(this.RW==="rendering"){var U={currentTimeSec:K,flush:W};ax(this.j,"p_ip",U);np(this.Ke,K*1E3,W);this.X||np(this.Ke,K*1E3,W===void 0?!1:W);var h=this.Kp();if(h){h/=1E3;if(K>=h*.25||W)this.wH("first_quartile"),ax(this.j,"p_fq",U);if(K>=h*.5||W)this.wH("midpoint"),ax(this.j,"p_sq",U);if(K>=h*.75||W)this.wH("third_quartile"),ax(this.j,"p_tq",U);this.Xx.get().D.V().experiments.Rk("enable_progress_command_flush_on_kabuki")?AY(this.W,K*1E3,W):AY(this.W,K*1E3,oXL(this)? W:!1)}}}; g.H.UC=function(){var K;return((K=Xp(this.ZA.get(),1))==null?void 0:K.clientPlaybackNonce)||""}; g.H.qA=function(K,W){K.layoutId!==this.layout.layoutId?this.rf.gm(this.slot,K,new Rt("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):W()}; g.H.De=function(K,W,U){if(W.layoutId===this.layout.layoutId)switch(this.RW="not_rendering",this.layoutExitReason=void 0,this.k5()||(K=U!=="normal"||this.position+1===this.G)&&this.EH(K),this.XB(U),this.vY(0),U){case "abandoned":if(jD(this.Ke,"impression")){var h,m=((h=rO(this))==null?void 0:h.abandonCommands)||[];Qp(this.kd.get(),m,this.layout.layoutId)}break;case "normal":h=((m=rO(this))==null?void 0:m.completeCommands)||[];Qp(this.kd.get(),h,this.layout.layoutId);break;case "skipped":var S;h=((S= rO(this))==null?void 0:S.skipCommands)||[];Qp(this.kd.get(),h,this.layout.layoutId)}}; g.H.Fg=function(){return this.layout.layoutId}; g.H.Cy=function(){return this.Y}; g.H.G6=function(){if(this.RW==="rendering"){this.Ke.wH("active_view_measurable");var K,W=((K=rO(this))==null?void 0:K.activeViewMeasurableCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.qY=function(){if(this.RW==="rendering"){this.Ke.wH("active_view_fully_viewable_audible_half_duration");var K,W=((K=rO(this))==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.Z0=function(){if(this.RW==="rendering"){this.Ke.wH("active_view_viewable");var K,W=((K=rO(this))==null?void 0:K.activeViewViewableCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.z6=function(){if(this.RW==="rendering"){this.Ke.wH("audio_audible");var K,W=((K=rO(this))==null?void 0:K.activeViewAudioAudibleCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.k8=function(){if(this.RW==="rendering"){this.Ke.wH("audio_measurable");var K,W=((K=rO(this))==null?void 0:K.activeViewAudioMeasurableCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}}; g.H.EH=function(K){this.Hl.get().EH(Sp(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,K,this.position,this.G,!1)}; g.H.onFullscreenToggled=function(K){if(this.RW==="rendering")if(K){this.jz("fullscreen");var W,U=((W=rO(this))==null?void 0:W.fullscreenCommands)||[];Qp(this.kd.get(),U,this.layout.layoutId)}else this.jz("end_fullscreen"),W=((U=rO(this))==null?void 0:U.endFullscreenCommands)||[],Qp(this.kd.get(),W,this.layout.layoutId)}; g.H.onVolumeChange=function(){if(this.RW==="rendering")if(this.dk.get().isMuted()){ks(this,"mute");var K,W=((K=rO(this))==null?void 0:K.muteCommands)||[];Qp(this.kd.get(),W,this.layout.layoutId)}else ks(this,"unmute"),K=((W=rO(this))==null?void 0:W.unmuteCommands)||[],Qp(this.kd.get(),K,this.layout.layoutId)}; g.H.z8=function(){}; g.H.r_=function(){}; g.H.hc=function(){}; g.H.j$=function(){}; g.H.bK=function(){}; g.H.jz=function(K){this.Ke.jz(K,!this.X)}; g.H.wH=function(K){this.Ke.wH(K,!this.X)}; g.H.k5=function(){var K=Sp(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return K===void 0?(UF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Xx.get().k5(K)};g.V(L9,zE);g.H=L9.prototype;g.H.Ax=function(){}; g.H.CZ=function(){var K=this.zm.get();K.jM===this&&(K.jM=null);this.timer.stop()}; g.H.bQ=function(){this.timer.stop();zE.prototype.Nm.call(this)}; g.H.dN=function(){Z0(this);zE.prototype.y5.call(this)}; g.H.Kp=function(){return Sp(this.VH().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.H.iG=function(K,W){var U=this;this.qA(K,function(){U.RW!=="rendering_stop_requested"&&(U.RW="rendering_stop_requested",U.layoutExitReason=W,Yn(U,W),U.timer.stop())})}; g.H.Ym=function(){var K=Date.now(),W=K-this.lO;this.lO=K;this.Zg+=W;this.Zg>=this.Kp()?this.u8():(this.HF(this.Zg/1E3),oL(this,this.Zg))}; g.H.XB=function(){}; g.H.ID=function(){}; g.V(uB,L9);g.H=uB.prototype;g.H.wS=function(K){if(this.RW!=="not_rendering"){K=Er(this,K);var W=this.dk.get().getPresentingPlayerType()===2;this.RW==="rendering_start_requested"?W&&GL(K)&&this.XT():W?g.M9(K,2)?UF("Receive player ended event during MediaBreak",this.Vg(),this.VH()):c4(this,K):this.Cp()}}; g.H.Oe=function(){Zqp(this);pr(this.dk.get());this.zm.get().jM=this;t3("pbp")||t3("pbs")||S8("pbp");t3("pbp","watch")||t3("pbs","watch")||S8("pbp",void 0,"watch");this.XT()}; g.H.Ig=function(K){this.Hl.get();var W=Sp(K.clientMetadata,"metadata_type_ad_placement_config").kind,U=this.position===0;K=Sp(K.clientMetadata,"metadata_type_linked_in_player_layout_type");K={adBreakType:ma(W),adType:hK$(K)};var h=void 0;U?W!=="AD_PLACEMENT_KIND_START"&&(h="video_to_ad"):h="ad_to_ad";XL("ad_mbs",void 0,h);g.y2(K,h);Z0(this)}; g.H.Cp=function(){this.IS()}; g.H.u8=function(){O_$(this);this.IS()}; g.V(Kk,L9);g.H=Kk.prototype;g.H.wS=function(K){this.RW!=="not_rendering"&&(K=Er(this,K),c4(this,K))}; g.H.Oe=function(){UF("Not used in SSAP")}; g.H.Ig=function(){Z0(this)}; g.H.Cp=function(){UF("Not used in SSAP")}; g.H.u8=function(){O_$(this);this.rf.D_(this.Vg(),this.VH(),"normal")}; g.V(Ul,Kk);Ul.prototype.iG=function(K,W){var U=this;this.qA(K,function(){rqs(U.N,W)&&(U.RW="rendering_stop_requested",U.layoutExitReason=W,Yn(U,W),U.timer.stop())})}; Ul.prototype.startRendering=function(K){IC(N0(this));ho(this,K)&&(P$2(this),this.zm.get().jM=this)};g.V(Zu,zE);g.H=Zu.prototype;g.H.Cp=function(){this.IS()}; g.H.wS=function(K){if(this.RW!=="not_rendering"){K=Er(this,K);var W=this.dk.get().getPresentingPlayerType()===2;this.RW==="rendering_start_requested"?W&&GL(K)&&this.XT():!W||g.M9(K,2)?this.IS():c4(this,K)}}; g.H.Ax=function(){Sp(this.VH().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Sp(this.VH().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.H.CZ=function(){Sp(this.VH().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.O4){var K=this.context.bu,W=this.O4,U=this.VH().layoutId;if(TB(K.Xx.get(),!0)){var h={};K.bZ("mccru",(h.cid=W,h.p_ac=U,h))}this.Oa.get().removeCueRange(this.O4)}this.O4=void 0;var m;(m=this.Oq)==null||m.dispose();this.sM&&this.sM.dispose()}; g.H.Oe=function(K){var W=ym(this.Xx.get()),U=M0(this.Xx.get());if(W&&U&&!this.k5()){U=Sp(K.clientMetadata,"metadata_type_preload_player_vars");var h=this.Xx.get();h=g.jV(h.D.V().experiments,"html5_preload_wait_time_secs");U&&this.sM&&this.sM.start(h*1E3)}KMY(this,K);Zqp(this);W?(U=this.hS.get(),K=Sp(K.clientMetadata,"metadata_type_player_vars"),U.D.loadVideoByPlayerVars(K,!1,2)):xP(this.hS.get(),Sp(K.clientMetadata,"metadata_type_player_vars"));var m;(m=this.Oq)==null||m.start();W||this.hS.get().D.playVideo(2)}; g.H.Ig=function(){var K;(K=this.Oq)==null||K.stop();this.iP();(this.adCpn=ih2(this))||UF("Media layout confirmed started, but ad CPN not set.");this.xm.get().V7("onAdStart",this.adCpn);this.sR=Date.now()}; g.H.Kp=function(){var K;return(K=Xp(this.ZA.get(),2))==null?void 0:K.Of}; g.H.Kq=function(){this.Ke.jz("clickthrough")}; g.H.iG=function(K,W){var U=this;this.qA(K,function(){if(U.RW!=="rendering_stop_requested"){U.RW="rendering_stop_requested";U.layoutExitReason=W;Yn(U,W);var h;(h=U.Oq)==null||h.stop();U.sM&&U.sM.stop();fee(U)}})}; g.H.onCueRangeEnter=function(K){if(K!==this.O4)UF("Received CueRangeEnter signal for unknown layout.",this.Vg(),this.VH(),{cueRangeId:K});else{var W=this.context.bu,U=this.VH().layoutId;if(TB(W.Xx.get(),!0)){var h={};W.bZ("mccre",(h.cid=K,h.p_ac=U,h))}this.Oa.get().removeCueRange(this.O4);this.O4=void 0;AC(this.context.Xx.get(),"html5_ssap_flush_at_stop_rendering")&&this.k5()||(K=Sp(this.VH().clientMetadata,"metadata_type_video_length_seconds"),this.HF(K,!0),this.wH("complete"))}}; g.H.XB=function(K){K!=="abandoned"&&this.xm.get().V7("onAdComplete");this.xm.get().V7("onAdEnd",this.adCpn)}; g.H.iP=function(){this.O4="adcompletioncuerange:"+this.VH().layoutId;this.Oa.get().addCueRange(this.O4,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var K=this.context.bu,W=this.O4,U=this.VH().layoutId;if(TB(K.Xx.get(),!0)){var h={};K.bZ("mccr",(h.cid=W,h.p_ac=U,h))}}; g.H.onCueRangeExit=function(){}; g.H.ID=function(K){this.RW==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&K>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.dk.get().Yo(!0),this.HF(K))}; g.H.HF=function(K,W){zE.prototype.HF.call(this,K,W===void 0?!1:W);W=Date.now()-this.sR;var U=K*1E3,h={contentCpn:this.UC(),adCpn:ih2(this)};if(K-this.y_>=5){var m=W=2||(this.on.iG(this.layout,W),K=AC(this.params.context.Xx.get(),"html5_ssap_pass_transition_reason")&&W==="abandoned",this.s8()&&!K&&(AC(this.params.context.Xx.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(W)||UF("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:W})),this.TK.get().finishSegmentByCpn(this.layout.layoutId, Xp(this.ZA.get(),1).clientPlaybackNonce,FT(W,this.params.context.Xx))),this.dk.get().removeListener(this),this.jX()&&DTC(this.on.mR())&&this.Sx.De(this.slot,this.layout,this.on.mR().j))}; g.H.a7=function(K,W,U){szp({cpn:K,i5:this.ZA.get(),V9:!0});this.VH().layoutId!==K||AC(this.params.context.Xx.get(),"html5_ssap_pass_transition_reason")&&U===5||(this.on.mR().currentState<2&&(K=cm(U,this.params.context.Xx),K==="error"?this.Sx.gm(this.slot,this.layout,new Rt("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:U},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):nw(this.Lc, this.layout,K)),AC(this.params.context.Xx.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Sx.De(this.slot,this.layout,this.on.mR().j))};g.V(VO,g.p);g.H=VO.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.IX=function(){}; g.H.Pd=function(){return this.gi[this.z1]}; g.H.JD=function(){return this.z1}; g.H.bQ=function(K,W){var U=this.Pd();W.layoutId!==Wt(U,K,W)?UF("pauseLayout for a PlayerBytes layout that is not currently active",K,W):U.bQ()}; g.H.dN=function(K,W){var U=this.Pd();W.layoutId!==Wt(U,K,W)?UF("resumeLayout for a PlayerBytes layout that is not currently active",K,W):U.dN()}; g.H.Ja=function(K,W){var U=this.Pd();NlL(this,K,W);atR(U,K,W)&&this.wE(U.Vg(),U.VH(),"skipped")}; g.H.tL=function(K,W){var U=this.Pd();Jms(this);l1C(U,K,W)&&(K=nlz(this,U,K,W),K!==void 0&&(this.k5()?UF("Should not happen. Should delete"):z8C(this,U.Vg(),U.VH(),K)))}; g.H.c6=function(K,W){var U=Object.assign({},JR(this),{layoutId:W.layoutId}),h=U.layoutId,m=U.V9;if(U.wQ){var S={};na(U.i5,"wrse",(S.ec=h,S.is=m,S.ctp=gG(h),S))}mf(this.p7,K,W)}; g.H.Fo=function(K,W){var U;(U=this.Pd())==null||U.Fo(K,W)}; g.H.De=function(K,W,U){W.layoutId===this.VH().layoutId&&(this.wG=!1,qZ(this.lZ(),this));var h;(h=this.Pd())==null||h.De(K,W,U)}; g.H.ID=function(K){var W;(W=this.Pd())==null||W.ID(K)}; g.H.LX=function(K,W,U){this.JD()===-1&&(this.callback.Fo(this.slot,this.layout),this.z1++);var h=this.Pd();h?(h.eJ(K,W,U),this.k5()&&this.callback.gm(this.slot,this.layout,W,U)):UF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.JD()),layoutId:this.VH().layoutId})}; g.H.onFullscreenToggled=function(K){var W;(W=this.Pd())==null||W.onFullscreenToggled(K)}; g.H.z8=function(K){var W;(W=this.Pd())==null||W.z8(K)}; g.H.hc=function(K){var W;(W=this.Pd())==null||W.hc(K)}; g.H.onVolumeChange=function(){var K;(K=this.Pd())==null||K.onVolumeChange()}; g.H.fz=function(K,W,U){RM(this.p7,K,W,U)}; g.H.l4=function(K){K.startRendering(K.VH())}; g.H.init=function(){var K=Sp(this.VH().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");K&&(K.current=this);if(this.gi.length<1)throw new v("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.gi.length)});if(K=Sp(this.VH().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))K.current=this;K=g.z(this.gi);for(var W=K.next();!W.done;W=K.next())W=W.value,W.init(),QHL(this.p7,this.slot,W.VH()),VK$(this.p7,this.slot,W.VH()); if(this.k5())for(this.ZA.get().addListener(this),tuz(IDL(this),this.ZA.get()),K=IDL(this),K=g.z(K),W=K.next();!W.done;W=K.next())this.Tv(W.value)}; g.H.Tv=function(K){var W=Sp(K.clientMetadata,"metadata_type_player_vars");W?(K.layoutType!=="LAYOUT_TYPE_MEDIA"&&UF("Non-video ad contains playerVars",this.slot,K),this.hS.get().addPlayerResponseForAssociation({playerVars:W})):(K=jjs(K),this.hS.get().addPlayerResponseForAssociation({Em:K}))}; g.H.release=function(){var K=Sp(this.VH().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");K&&(K.current=null);if(K=Sp(this.VH().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))K.current=null;K=g.z(this.gi);for(var W=K.next();!W.done;W=K.next())W=W.value,oZL(this.p7,this.slot,W.VH()),W.release();this.k5()&&(this.ZA.get().removeListener(this),zBR())}; g.H.qA=function(K){return K.layoutId!==this.VH().layoutId?(this.callback.gm(this.Vg(),K,new Rt("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.VH().layoutId+("and LayoutType: "+this.VH().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.H.eN=function(){this.dk.get().addListener(this);VT(this.lZ(),this)}; g.H.wS=function(K){if(K.state.isError()){var W,U;this.LX((W=K.state.wi)==null?void 0:W.errorCode,new Rt("There was a player error during this media layout.",{playerErrorCode:(U=K.state.wi)==null?void 0:U.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(W=this.Pd())&&W.wS(K)}; g.H.k5=function(){var K=Sp(this.Vg().clientMetadata,"metadata_type_eligible_for_ssap");return K===void 0?(UF("Expected SSAP eligibility in PlayerBytes slots",this.Vg(),this.VH()),!1):this.Xx.get().k5(K)}; g.H.r_=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.j$=function(){}; g.H.bK=function(){}; g.V(jJ,VO);g.H=jJ.prototype;g.H.CD=function(K,W,U){this.wE(K,W,U)}; g.H.xi=function(K,W){this.wE(K,W,"error")}; g.H.wE=function(K,W,U){var h=this;Kts(this,K,W,U,function(){V5(h,h.JD()+1)})}; g.H.startRendering=function(K){this.qA(K)&&(this.eN(),k4C(this.Hl.get()),cL_(this.Xx.get())||pr(this.dk.get()),this.JD()===-1&&V5(this,this.JD()+1))}; g.H.iG=function(K,W){var U=this;this.wG=!0;this.JD()===this.gi.length?this.callback.De(this.slot,this.layout,W):(K=this.Pd(),K.iG(K.VH(),W),this.Sc=function(){U.callback.De(U.slot,U.layout,W)}); this.dk.get().D.gy();xP(this.hS.get(),{});K=Ah(this.dk.get(),1);K.isPaused()&&!g.C(K,2)&&this.dk.get().playVideo();this.dk.get().removeListener(this);this.wG&&ecC(this)}; g.H.a7=function(){}; g.H.On=function(){}; g.H.D_=function(){}; g.V(h_,VO);g.H=h_.prototype;g.H.CD=function(K,W,U){K=Object.assign({},JR(this),{layoutId:W.layoutId,layoutExitReason:U});W=K.layoutId;U=K.layoutExitReason;var h={};na(K.i5,"prse",(h.xc=W,h.ler=U,h.ctp=gG(W),h))}; g.H.xi=function(){UF("onSubLayoutError in SSAP")}; g.H.wE=function(){UF("exitSubLayoutAndPlayNext in SSAP")}; g.H.Pd=function(){return this.eB}; g.H.JD=function(){var K=this;return this.gi.findIndex(function(W){var U;return W.VH().layoutId===((U=K.eB)==null?void 0:U.VH().layoutId)})}; g.H.l4=function(K){X1(this.eB===void 0,"replacing another adapter");this.eB=K;K.startRendering(K.VH())}; g.H.fz=function(K,W,U){RM(this.p7,K,W,U);var h;X1(W.layoutId===((h=this.eB)==null?void 0:h.VH().layoutId),"currentAdapter does not match exiting layout",{slot:K?"slot: "+K.slotType:"",subLayout:b8(W)})&&(this.eB=void 0)}; g.H.release=function(){VO.prototype.release.call(this);X1(this.eB===void 0,"currentAdapter is still active during release");this.eB=void 0}; g.H.s8=function(){return this.dk.get().getPresentingPlayerType()===2}; g.H.iG=function(K,W){function U(){if(this.eB){var S=this.eB;S.mR().currentState<2&&S.iG(S.VH(),W);S=gj(this)&&W==="abandoned";this.s8()&&!S&&(h.call(this),this.TK.get().finishSegmentByCpn(this.eB.VH().layoutId,Xp(this.ZA.get(),1).clientPlaybackNonce,FT(W,this.Xx)))}} function h(){gj(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(W)||UF("Composite stopRendering: Unexpected layout exit reason",this.slot,K,{layoutExitReason:W}))} function m(){this.eB&&nU(this,this.eB,W);if(this.s8()&&(!gj(this)||W!=="abandoned")){h.call(this);var S;var f=((S=this.ZA.get().D.getVideoData())==null?void 0:S.clientPlaybackNonce)||"";S=Xp(this.ZA.get(),1).clientPlaybackNonce;this.TK.get().finishSegmentByCpn(f,S,FT(W,this.Xx))}tn$(this,W)} X1(K.layoutId===this.VH().layoutId,"StopRendering for wrong layout")&&rqs(this.OO.X,W)&&(this.jX()?m.call(this):U.call(this))}; g.H.De=function(K,W,U){VO.prototype.De.call(this,K,W,U);W.layoutId===this.VH().layoutId&&this.dk.get().removeListener(this)}; g.H.UC=function(){return Xp(this.ZA.get(),1).clientPlaybackNonce}; g.H.a7=function(K,W,U){szp(Object.assign({},JR(this),{cpn:K}));if(!gj(this)||U!==5)if(this.jX()){if(this.eB&&this.eB.VH().layoutId!==W){var h=this.eB.VH().layoutId;h!==K&&UF("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:h,exitingCpn:K,enteringCpn:W});K=cm(U,this.Xx);nU(this,this.eB,K)}else this.eB&&UF("onClipExited: active layout is entering again");W===this.UC()&&afR(this,U)}else{if(this.eB&&this.eB.VH().layoutId===K)wz$(this,this.eB,U);else{var m;UF("Exiting cpn does not match active cpn", this.slot,(h=this.eB)==null?void 0:h.VH(),{exitingCpn:K,transitionReason:U,activeCpn:(m=this.eB)==null?void 0:m.VH().layoutId})}W===this.UC()&&(this.eB!==void 0&&(UF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:b8(this.eB.VH())}),wz$(this,this.eB,U)),afR(this,U),tn$(this,this.OO.X.j))}}; g.H.jX=function(){return AC(this.Xx.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.H.startRendering=function(K){this.qA(K)&&(K=this.OO,X1(K.j===1,"tickStartRendering: state is not initial"),K.j=2,this.eN())}; g.H.On=function(K){Cvs(Object.assign({},JR(this),{cpn:K}));var W=this.gi.find(function(U){return U.VH().layoutId===K}); W?(this.OO.j!==2&&(bHF(this.m1,this.slot.slotId),X1(this.OO.j===2,"Expect started"),this.callback.Fo(this.slot,this.layout)),this.l4(W),mf(this.p7,this.slot,W.VH())):lvY(this,K)}; g.H.Ja=function(K,W){NlL(this,K,W);var U=this.Pd();U?atR(U,K,W)&&qSY(this,"skipped"):aAY(this,"onSkipRequested")}; g.H.tL=function(K,W){var U;a:{if(U=this.Pd()){if(Jms(this),l1C(U,K,W)&&(K=nlz(this,U,K,W),K!==void 0)){U={SP:U,U2s:this.gi[K]};break a}}else aAY(this,"SkipWithAdPodSkip");U=void 0}if(K=U)U=K.SP,W=K.U2s,K=U.VH().layoutId,this.jX()?nU(this,U,"skipped"):U.iG(U.VH(),"skipped"),U=W.VH().layoutId,this.TK.get().finishSegmentByCpn(K,U,FT("skipped",this.Xx))}; g.H.c6=function(){UF("Not used in html5_ssap_fix_layout_exit")}; g.H.wS=function(K){var W;(W=this.Pd())==null||W.wS(K)}; g.H.LX=function(){UF("Not used in html5_ssap_fix_layout_exit")}; g.H.D_=function(K,W,U){var h;if(((h=this.Pd())==null?void 0:h.VH().layoutId)!==W.layoutId)return void UF("requestToExitSubLayout: wrong layout");qSY(this,U)};g.V(a4,g.p);g.H=a4.prototype;g.H.Vg=function(){return this.on.Vg()}; g.H.VH=function(){return this.on.VH()}; g.H.init=function(){var K=Sp(this.VH().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");K&&(K.current=this);this.Ax()}; g.H.Ax=function(){this.on.init()}; g.H.release=function(){var K=Sp(this.VH().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");K&&(K.current=null);this.CZ()}; g.H.CZ=function(){this.on.release()}; g.H.bQ=function(){this.on.bQ()}; g.H.dN=function(){this.on.dN()}; g.H.Ja=function(K,W){UF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Vg(),this.VH(),{requestingSlot:K,requestingLayout:W})}; g.H.startRendering=function(K){K.layoutId!==this.VH().layoutId?this.callback.gm(this.Vg(),K,new Rt("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.VH().layoutId+("and LayoutType: "+this.VH().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.dk.get().addListener(this),VT(this.lZ(),this),k4C(this.Hl.get()),cL_(this.Xx.get())||pr(this.dk.get()),this.on.startRendering(K))}; g.H.iG=function(K,W){this.wG=!0;this.on.iG(K,W);this.dk.get().D.gy();xP(this.hS.get(),{});K=Ah(this.dk.get(),1);K.isPaused()&&!g.C(K,2)&&this.dk.get().playVideo();this.dk.get().removeListener(this);this.wG&&this.on.Cp()}; g.H.Fo=function(K,W){this.on.Fo(K,W)}; g.H.De=function(K,W,U){W.layoutId===this.VH().layoutId&&(this.wG=!1,qZ(this.lZ(),this));this.on.De(K,W,U);W.layoutId===this.VH().layoutId&&eL(this.Hl.get())}; g.H.ID=function(K){this.on.ID(K)}; g.H.wS=function(K){if(K.state.isError()){var W,U;this.LX((W=K.state.wi)==null?void 0:W.errorCode,new Rt("There was a player error during this media layout.",{playerErrorCode:(U=K.state.wi)==null?void 0:U.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.on.wS(K)}; g.H.LX=function(K,W,U){this.on.eJ(K,W,U)}; g.H.onFullscreenToggled=function(K){this.on.onFullscreenToggled(K)}; g.H.z8=function(K){this.on.z8(K)}; g.H.hc=function(K){this.on.hc(K)}; g.H.onVolumeChange=function(){this.on.onVolumeChange()}; g.H.r_=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.j$=function(){}; g.H.bK=function(){};g.H=P2.prototype;g.H.Vg=function(){return this.slot}; g.H.VH=function(){return this.layout}; g.H.init=function(){this.K5.get().addListener(this);this.dk.get().addListener(this);var K=Sp(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var W=Sp(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var U=this.K5.get().us.slice(-1)[0];U!==void 0&&(K=U.startSecs*1E3,W=(U.startSecs+U.k$)*1E3)}this.hG(K,W);var h;U=(h=this.ZA.get().hM)==null?void 0:h.clientPlaybackNonce;h=this.layout.t7.adClientDataEntry;tO(this.zm.get(),{daiStateTrigger:{filledAdsDurationMs:W-K,contentCpn:U, adClientData:h}});var m=this.K5.get();m=sqp(m.N,K,W);m!==null&&(tO(this.zm.get(),{daiStateTrigger:{filledAdsDurationMs:m-K,contentCpn:U,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:h}}),this.TK.get().N0(m,W))}; g.H.release=function(){this.CZ();this.K5.get().removeListener(this);this.dk.get().removeListener(this)}; g.H.startRendering=function(){this.Oe();this.callback.Fo(this.slot,this.layout)}; g.H.iG=function(K,W){this.v_(W);this.driftRecoveryMs!==null&&(kFY(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(VZF(this)-Sp(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.dk.get().D.dX()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.De(this.slot,this.layout,W)}; g.H.j6=function(){return!1}; g.H.YA=function(K){var W=Sp(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),U=Sp(this.layout.clientMetadata,"metadata_type_layout_exit_ms");K*=1E3;if(W<=K&&K0&&A6(this.j(),W)}; g.H.G8=function(K){this.U.delete(K.slotId);for(var W=[],U=g.z(this.Lg.values()),h=U.next();!h.done;h=U.next()){h=h.value;var m=h.trigger;m instanceof aw&&m.triggeringSlotId===K.slotId&&W.push(h)}W.length>0&&A6(this.j(),W)}; g.H.kL=function(K){for(var W=[],U=g.z(this.Lg.values()),h=U.next();!h.done;h=U.next()){h=h.value;var m=h.trigger;m instanceof SO&&m.slotType===K.slotType&&m.j!==K.slotId&&W.push(h)}W.length>0&&A6(this.j(),W)}; g.H.Y5=function(K){this.N.add(K.slotId);for(var W=[],U=g.z(this.Lg.values()),h=U.next();!h.done;h=U.next())h=h.value,h.trigger instanceof M$&&K.slotId===h.trigger.triggeringSlotId&&W.push(h);W.length>0&&A6(this.j(),W)}; g.H.SB=function(K){this.N.delete(K.slotId);this.W.add(K.slotId);for(var W=[],U=g.z(this.Lg.values()),h=U.next();!h.done;h=U.next())if(h=h.value,h.trigger instanceof PM)K.slotId===h.trigger.triggeringSlotId&&W.push(h);else if(h.trigger instanceof cG){var m=h.trigger;K.slotId===m.slotId&&this.X.has(m.triggeringLayoutId)&&W.push(h)}W.length>0&&A6(this.j(),W)}; g.H.qZ=function(K){for(var W=[],U=g.z(this.Lg.values()),h=U.next();!h.done;h=U.next())h=h.value,h.trigger instanceof Lq&&K.slotId===h.trigger.triggeringSlotId&&W.push(h);W.length>0&&A6(this.j(),W)}; g.H.t3=function(K){for(var W=[],U=g.z(this.Lg.values()),h=U.next();!h.done;h=U.next())h=h.value,h.trigger instanceof Oz&&K.slotId===h.trigger.triggeringSlotId&&W.push(h);W.length>0&&A6(this.j(),W)}; g.H.MZ=function(K,W){this.G.add(W.layoutId)}; g.H.OT=function(K,W){this.G.delete(W.layoutId)}; g.H.Fo=function(K,W){this.X.add(W.layoutId);for(var U=[],h=g.z(this.Lg.values()),m=h.next();!m.done;m=h.next())if(m=m.value,m.trigger instanceof yW)W.layoutId===m.trigger.triggeringLayoutId&&U.push(m);else if(m.trigger instanceof mX){var S=m.trigger;K.slotType===S.slotType&&W.layoutType===S.layoutType&&W.layoutId!==S.j&&U.push(m)}else m.trigger instanceof cG&&(S=m.trigger,W.layoutId===S.triggeringLayoutId&&this.W.has(S.slotId)&&U.push(m));U.length>0&&A6(this.j(),U)}; g.H.De=function(K,W,U){this.X.delete(W.layoutId);K=[];for(var h=g.z(this.Lg.values()),m=h.next();!m.done;m=h.next())if(m=m.value,m.trigger instanceof op&&W.layoutId===m.trigger.triggeringLayoutId&&K.push(m),m.trigger instanceof Sk){var S=m.trigger;W.layoutId===S.triggeringLayoutId&&S.j.includes(U)&&K.push(m)}K.length>0&&A6(this.j(),K)}; g.H.VR=function(){}; g.H.MN=function(){this.W.clear()}; g.H.qK=function(){};g.V(m0,g.p);m0.prototype.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(W instanceof Vq))throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CloseRequestedTriggerAdapter");this.Lg.set(W.triggerId,new Um(K,W,U,h))}; m0.prototype.Xp=function(K){this.Lg.delete(K.triggerId)};g.V(s9,g.p);s9.prototype.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(W instanceof mY||W instanceof pi))throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Lg.set(W.triggerId,new Um(K,W,U,h))}; s9.prototype.Xp=function(K){this.Lg.delete(K.triggerId)}; s9.prototype.MN=function(K){for(var W=[],U=W.push,h=U.apply,m=[],S=g.z(this.Lg.values()),f=S.next();!f.done;f=S.next())f=f.value,f.trigger instanceof mY&&f.trigger.Hr===K&&m.push(f);h.call(U,W,g.z4(m));U=W.push;h=U.apply;m=[];S=g.z(this.Lg.values());for(f=S.next();!f.done;f=S.next())f=f.value,f.trigger instanceof pi&&f.trigger.j!==K&&m.push(f);h.call(U,W,g.z4(m));W.length&&A6(this.j(),W)}; s9.prototype.qK=function(K){for(var W=[],U=W.push,h=U.apply,m=[],S=g.z(this.Lg.values()),f=S.next();!f.done;f=S.next()){f=f.value;var G=f.trigger;G instanceof pi&&G.j===K&&m.push(f)}h.call(U,W,g.z4(m));W.length&&A6(this.j(),W)};g.V(VZ,g.p);g.H=VZ.prototype;g.H.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");var m="adtriggercuerange:"+W.triggerId;if(W instanceof tQ)dDe(this,K,W,U,h,m,W.j.start,W.j.end,W.Hr,W.visible);else if(W instanceof OQ)dDe(this,K,W,U,h,m,0x7ffffffffffff,0x8000000000000,W.Hr,W.visible);else throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CueRangeTriggerAdapter");}; g.H.Xp=function(K){var W=this.Lg.get(K.triggerId);W&&this.Oa.get().removeCueRange(W.cueRangeId);this.Lg.delete(K.triggerId)}; g.H.onCueRangeEnter=function(K){var W=ss2(this,K);if(W&&(W=this.Lg.get(W)))if(g.C(Ah(this.dk.get()),32))this.j.add(W.cueRangeId);else{var U=W==null?void 0:W.Az.trigger;if(U instanceof tQ||U instanceof OQ){if(TB(this.context.Xx.get())){var h=W.Az.slot,m=W.Az.layout,S={};this.context.bu.bZ("cre",(S.ca=W.Az.category,S.tt=U.triggerType,S.st=h.slotType,S.lt=m==null?void 0:m.layoutType,S.cid=K,S))}A6(this.X(),[W.Az])}}}; g.H.onCueRangeExit=function(K){(K=ss2(this,K))&&(K=this.Lg.get(K))&&this.j.delete(K.cueRangeId)}; g.H.wS=function(K){if(Jw(K,16)<0){K=g.z(this.j);for(var W=K.next();!W.done;W=K.next())this.onCueRangeEnter(W.value,!0);this.j.clear()}}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.Fo=function(){}; g.H.De=function(){}; g.H.VR=function(){}; g.H.ID=function(){}; g.H.onFullscreenToggled=function(){}; g.H.z8=function(){}; g.H.r_=function(){}; g.H.hc=function(){}; g.H.onVolumeChange=function(){}; g.H.j$=function(){}; g.H.bK=function(){};g.V(SE,g.p);g.H=SE.prototype; g.H.M4=function(K,W,U,h){if(this.X.has(W.triggerId)||this.N.has(W.triggerId))throw new v("Tried to re-register the trigger.");K=new Um(K,W,U,h);if(K.trigger instanceof cz)this.X.set(K.trigger.triggerId,K);else if(K.trigger instanceof ng)this.N.set(K.trigger.triggerId,K);else throw new v("Incorrect TriggerType: Tried to register trigger of type "+K.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(K.trigger.triggerId)&&K.slot.slotId===this.j&&A6(this.W(),[K])}; g.H.Xp=function(K){this.X.delete(K.triggerId);this.N.delete(K.triggerId)}; g.H.IX=function(K){K=K.slotId;if(this.j!==K){var W=[];this.j!=null&&W.push.apply(W,g.z4(bdC(this.N,this.j)));K!=null&&W.push.apply(W,g.z4(bdC(this.X,K)));this.j=K;W.length&&A6(this.W(),W)}}; g.H.a7=function(){}; g.H.On=function(){};g.V(X5,g.p);g.H=X5.prototype;g.H.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(W instanceof F0))throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Lg.set(W.triggerId,new Um(K,W,U,h))}; g.H.Xp=function(K){this.Lg.delete(K.triggerId)}; g.H.Fo=function(){}; g.H.De=function(){}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){};g.V(vI,g.p);g.H=vI.prototype;g.H.VR=function(K,W){for(var U=[],h=g.z(this.Lg.values()),m=h.next();!m.done;m=h.next()){m=m.value;var S=m.trigger;S.opportunityType===K&&(S.associatedSlotId&&S.associatedSlotId!==W||U.push(m))}U.length&&A6(this.j(),U)}; g.H.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(W instanceof q7e))throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OpportunityEventTriggerAdapter");this.Lg.set(W.triggerId,new Um(K,W,U,h))}; g.H.Xp=function(K){this.Lg.delete(K.triggerId)}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.Fo=function(){}; g.H.De=function(){};g.V(fX,g.p);g.H=fX.prototype;g.H.M4=function(K,W,U,h){K=new Um(K,W,U,h);if(W instanceof Vr||W instanceof vY||W instanceof Xb||W instanceof gX||W instanceof Mc2){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");this.Lg.set(W.triggerId,K)}else throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in PrefetchTriggerAdapter");}; g.H.Xp=function(K){this.Lg.delete(K.triggerId)}; g.H.sT=function(K){var W=K.slotFulfillmentTriggers.find(function(U){return U instanceof Vr}); W&&(qt(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",W.breakDurationMs,new Set([K.slotId]),!0),VE(this.zm.get(),"ads_css","sid."+K.slotId+";bd."+W.breakDurationMs))}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.Fo=function(){}; g.H.De=function(){}; g.H.VR=function(){}; g.H.j6=function(K){var W=this;if(!this.j)return VE(this.zm.get(),"ads_nfi","a.pta"),!1;this.X&&this.X.stop();this.U&&g.yG(this.U);var U=fwC(this,K);if(!U){var h=QlY(this),m=this.Y!==void 0&&Date.now()<=this.Y+1E4;VE(this.zm.get(),"ads_ncfs","cid."+K.identifier+";cd."+K.k$.toFixed(3)+";ccs."+m+";cfa."+this.W+";bdc."+h.length+";"+h.slice(0,6).map(function(S){return";bd."+S}).join("")); return m?(fyp(this.J3,this.j,K),!0):!1}(h=Sp(U.slot.clientMetadata,"metadata_type_triggering_cue_point"))?h.current=K:UF("Expected triggering cue point ref to be available",U.slot);(new g.QC(function(){var S=U.trigger,f=U.slot;qt(W,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",S.breakDurationMs,new Set,!0);qt(W,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",S.breakDurationMs,new Set,!1);for(var G=0,I=g.z(W.Lg.values()),d=I.next();!d.done;d=I.next()){d=d.value;var J= d.trigger;d.slot.slotId===f.slotId&&(W.Lg.delete(J.triggerId),G++)}VE(W.zm.get(),"ads_csf","sid."+f.slotId+";bd."+S.breakDurationMs+";dt."+G)},10)).start(); return!0}; g.H.YA=function(){}; g.H.MN=function(K){var W=this;this.W=!1;this.Y=Date.now();if(this.j&&this.j.contentCpn!==K)UF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:K,fetchInstructionsCpn:this.j.contentCpn}),$ER(this);else{this.N=new g.QC(function(){if(W.W)delete W.N;else{var h=W.dk.get().getGetAdBreakContext(),m;if(Number(h==null?void 0:(m=h.livePlaybackPosition)==null?void 0:m.utcTimeMillis)>0)delete W.N,khp(W);else{var S;(S=W.N)==null||S.start()}}},200); var U;(U=this.N)==null||U.start()}}; g.H.qK=function(K){this.j&&this.j.contentCpn!==K&&UF("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:K,fetchInstructionsCpn:this.j.contentCpn},!0);$ER(this)}; g.H.BX=function(K){var W=this;if(this.j)UF("Unexpected multiple fetch instructions for the current content");else{this.j=K;K=doe(K);this.X=new g.QC(function(){khp(W)},K?K:6E5); this.X.start();this.U=new g.QC(function(){W.j&&(W.X&&(W.X.stop(),W.X.start()),dKe(W,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},AFs(this.j)); K=this.dk.get().getCurrentTimeSec(1,!1);for(var U=g.z(this.K5.get().us),h=U.next();!h.done;h=U.next())h=h.value,VE(this.zm.get(),"nocache","ct."+Date.now()+";cmt."+K+";d."+h.k$.toFixed(3)+";tw."+(h.startSecs-K)+";cid."+h.identifier+";")}}; g.H.QH=function(){g.p.prototype.QH.call(this);$ER(this)};g.V(t6,g.p);g.H=t6.prototype;g.H.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(W instanceof O6))throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Lg.set(W.triggerId,new Um(K,W,U,h));K=this.j.has(W.triggeringLayoutId)?this.j.get(W.triggeringLayoutId):new Set;K.add(W);this.j.set(W.triggeringLayoutId,K)}; g.H.Xp=function(K){this.Lg.delete(K.triggerId);if(!(K instanceof O6))throw new v("Incorrect TriggerType: Tried to unregister trigger of type "+K.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var W=this.X.get(K.triggerId);W&&(W.dispose(),this.X.delete(K.triggerId));if(W=this.j.get(K.triggeringLayoutId))W.delete(K),W.size===0&&this.j.delete(K.triggeringLayoutId)}; g.H.sT=function(){}; g.H.G8=function(){}; g.H.kL=function(){}; g.H.Y5=function(){}; g.H.SB=function(){}; g.H.qZ=function(){}; g.H.t3=function(){}; g.H.MZ=function(){}; g.H.OT=function(){}; g.H.VR=function(){}; g.H.Fo=function(K,W){var U=this;if(this.j.has(W.layoutId)){K=this.j.get(W.layoutId);K=g.z(K);var h=K.next();for(W={};!h.done;W={v$:void 0},h=K.next())W.v$=h.value,h=new g.QC(function(m){return function(){var S=U.Lg.get(m.v$.triggerId);A6(U.N(),[S])}}(W),W.v$.durationMs),h.start(),this.X.set(W.v$.triggerId,h)}}; g.H.De=function(){};g.V(qW,g.p);qW.prototype.M4=function(K,W,U,h){if(this.Lg.has(W.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(W instanceof ot))throw new v("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in VideoTransitionTriggerAdapter.");this.Lg.set(W.triggerId,new Um(K,W,U,h))}; qW.prototype.Xp=function(K){this.Lg.delete(K.triggerId)};E9.prototype.pu=function(K){return K.kind==="AD_PLACEMENT_KIND_START"};g.V(YV,g.p);g.H=YV.prototype;g.H.logEvent=function(K){this.Kn(K)}; g.H.L1=function(K,W,U){this.Kn(K,void 0,void 0,void 0,W,void 0,void 0,void 0,W.adSlotLoggingData,void 0,void 0,U)}; g.H.u$=function(K,W,U,h){this.Kn(K,void 0,void 0,void 0,W,U?U:void 0,void 0,void 0,W.adSlotLoggingData,U?U.adLayoutLoggingData:void 0,void 0,h);W=pl().resolve(new oE(sF))==null?void 0:Zf();K=W==null?void 0:W.adsSeenHotConfig;W=W==null?void 0:W.adsHotConfig;(K==null?0:K.logOnAdsSeen)&&(W==null?0:W.webEnablePremiumAdsSeenLogging)&&k2Y(this,U?U:void 0,h)}; g.H.Bq=function(K,W,U,h){AC(this.Xx.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+K,"trigger:",U,"slot:",W,"layout:",h);F2(this.j.get())&&this.Kn(K,void 0,void 0,void 0,W,h?h:void 0,void 0,U,W.adSlotLoggingData,h?h.adLayoutLoggingData:void 0)}; g.H.rd=function(K,W,U,h,m){this.Kn(K,W,U,h,void 0,void 0,void 0,void 0,void 0,void 0,void 0,m)}; g.H.lT=function(K,W,U,h){this.Kn("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,U,h,void 0,void 0,U.adSlotLoggingData,h?h.adLayoutLoggingData:void 0,{errorType:K,errorMessage:W})}; g.H.Kn=function(K,W,U,h,m,S,f,G,I,d,J,e){var E=this;e=e===void 0?0:e;AC(this.Xx.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+K,"slot:",m,"layout:",S,"ping:",f,"Opportunity:",{opportunityType:W,associatedSlotId:U,sbk:h,KUk:G,adSlotLoggingData:I,adLayoutLoggingData:d});try{var B=function(){if(!E.Xx.get().D.V().L("html5_disable_client_tmp_logs")&&K!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){K||UF("Empty PACF event type",m,S);var D=F2(E.j.get()),a={eventType:K,eventOrder:++E.eventCount},Q={}; m&&(Q.slotData=hX(D,m));S&&(Q.layoutData=qC$(D,S));f&&(Q.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:f.j.serializedAdPingMetadata,pingIndex:f.index});G&&(Q.triggerData=GC(G.trigger,G.category));W&&(Q.opportunityData=Vt_(D,W,U,h));D={organicPlaybackContext:{contentCpn:Xp(E.ZA.get(),1).clientPlaybackNonce}};D.organicPlaybackContext.isLivePlayback=Xp(E.ZA.get(),1).mK;var u;D.organicPlaybackContext.isMdxPlayback=(u=Xp(E.ZA.get(),1))==null?void 0:u.isMdxPlayback; var O;if((O=Xp(E.ZA.get(),1))==null?0:O.daiEnabled)D.organicPlaybackContext.isDaiContent=!0;var N;if(u=(N=Xp(E.ZA.get(),2))==null?void 0:N.clientPlaybackNonce)D.adVideoPlaybackContext={adVideoCpn:u};D&&(Q.externalContext=D);a.adClientData=Q;I&&(a.serializedSlotAdServingData=I.serializedSlotAdServingDataEntry);d&&(a.serializedAdServingData=d.serializedAdServingDataEntry);J&&(a.errorInfo=J);g.N_("adsClientStateChange",{adsClientEvent:a})}}; e&&e>0?g.UL(g.hN(),function(){return B()},e):B()}catch(D){AC(this.Xx.get(),"html5_log_pacf_logging_errors")&&g.UL(g.hN(),function(){UF(D instanceof Error?D:String(D),m,S,{pacf_message:"exception during pacf logging"})})}};var BGO=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.V(lyC,YV);g.H=lyC.prototype; g.H.L1=function(K,W,U){YV.prototype.L1.call(this,K,W,U);TB(this.Xx.get())&&(U={},this.context.bu.bZ("pacf",(U.et=K,U.st=W.slotType,U.si=W.slotId,U)))}; g.H.u$=function(K,W,U,h){var m=BGO.has(K);YV.prototype.u$.call(this,K,W,U,h);TB(this.Xx.get(),m)&&(h={},this.context.bu.bZ("pacf",(h.et=K,h.st=W.slotType,h.si=W.slotId,h.lt=U==null?void 0:U.layoutType,h.li=U==null?void 0:U.layoutId,h.p_ac=U==null?void 0:U.layoutId,h)))}; g.H.rd=function(K,W,U,h,m){YV.prototype.rd.call(this,K,W,U,h,m);TB(this.Xx.get())&&(U={},this.context.bu.bZ("pacf",(U.et=K,U.ot=W,U.ss=h==null?void 0:h.length,U)))}; g.H.Bq=function(K,W,U,h){YV.prototype.Bq.call(this,K,W,U,h);if(TB(this.Xx.get())){var m={};this.context.bu.bZ("pacf",(m.et=K,m.tt=U.trigger.triggerType,m.tc=U.category,m.st=W.slotType,m.si=W.slotId,m.lt=h==null?void 0:h.layoutType,m.li=h==null?void 0:h.layoutId,m.p_ac=h==null?void 0:h.layoutId,m))}}; g.H.lT=function(K,W,U,h){YV.prototype.lT.call(this,K,W,U,h);if(TB(this.Xx.get(),!0)){var m={};this.context.bu.bZ("perror",(m.ert=K,m.erm=W,m.st=U.slotType,m.si=U.slotId,m.lt=h==null?void 0:h.layoutType,m.li=h==null?void 0:h.layoutId,m.p_ac=h==null?void 0:h.layoutId,m))}}; g.H.Kn=function(K,W,U,h,m,S,f,G,I,d,J){var e=this.Xx.get();g.PJ(e.D.V())?(e=this.Xx.get(),e=g.jV(e.D.V().experiments,"H5_async_logging_delay_ms")):e=void 0;YV.prototype.Kn.call(this,K,W,U,h,m,S,f,G,I,d,J,e)};BI.prototype.clear=function(){this.j.clear()};Xq.prototype.state=function(){return this.j==="fulfilled"?{state:"fulfilled",value:this.result}:this.j==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Xq.prototype.W=function(K){pe(K)||sSY(K)?qd(s0(K),this.W.bind(this),this.reject.bind(this)):(this.j="fulfilled",this.result=K,F$(this))}; Xq.prototype.reject=function(K){this.j="rejected";this.error=K;F$(this)}; var sSY=HN(function(K){return kus(K)?K instanceof Xq:!1});var Nb=window.j1K||"en";XS.prototype.Zs=function(K){this.client=K}; XS.prototype.j=function(){this.clear();this.csn=g.z0()}; XS.prototype.clear=function(){this.N.clear();this.X.clear();this.W.clear();this.csn=null};rS.prototype.Zs=function(K){g.kQ(yd().Zs).bind(yd())(K)}; rS.prototype.clear=function(){g.kQ(yd().clear).bind(yd())()};g.H=ou.prototype;g.H.Zs=function(K){this.client=K}; g.H.w0=function(K,W){var U=this;W=W===void 0?{}:W;g.kQ(function(){var h,m,S,f=((h=g.P(K==null?void 0:K.commandMetadata,g.$z))==null?void 0:h.rootVe)||((m=g.P(K==null?void 0:K.commandMetadata,MpF))==null?void 0:(S=m.screenVisualElement)==null?void 0:S.uiType);if(f){h=g.P(K==null?void 0:K.commandMetadata,Uv4);if(h==null?0:h.parentTrackingParams){var G=g.qG(h.parentTrackingParams);if(h.parentCsn)var I=h.parentCsn}else W.clickedVisualElement?G=W.clickedVisualElement:K.clickTrackingParams&&(G=g.qG(K.clickTrackingParams)); a:{h=g.P(K,g.fw);m=g.P(K,lzn);if(h){if(m=IyY(h,"VIDEO")){h={token:m,videoId:h.videoId};break a}}else if(m&&(h=IyY(m,"PLAYLIST"))){h={token:h,playlistId:m.playlistId};break a}h=void 0}W=Object.assign({},{cttAuthInfo:h,parentCsn:I},W);if(g.hc("expectation_logging")){var d;W.loggingExpectations=((d=g.P(K==null?void 0:K.commandMetadata,MpF))==null?void 0:d.loggingExpectations)||void 0}Ie(U,f,G,W)}else g.eI(new g.EB("Error: Trying to create a new screen without a rootVeType",K))})()}; g.H.clickCommand=function(K,W,U){K=K.clickTrackingParams;U=U===void 0?0:U;K?(U=g.z0(U===void 0?0:U))?(kL(this.client,U,g.qG(K),W),W=!0):W=!1:W=!1;return W}; g.H.stateChanged=function(K,W,U){this.visualElementStateChanged(g.qG(K),W,U===void 0?0:U)}; g.H.visualElementStateChanged=function(K,W,U){U=U===void 0?0:U;U===0&&this.X.has(U)?this.J.push([K,W]):mEY(this,K,W,U)};bR.prototype.fetch=function(K,W,U){var h=this,m=bfs(K,W,U);return new Promise(function(S,f){function G(){if(U==null?0:U.UL)try{var d=h.handleResponse(K,m.status,m.response,U);S(d)}catch(J){f(J)}else S(h.handleResponse(K,m.status,m.response,U))} m.onerror=G;m.onload=G;var I;m.send((I=W.body)!=null?I:null)})}; bR.prototype.handleResponse=function(K,W,U,h){U=U.replace(")]}'","");try{var m=JSON.parse(U)}catch(S){g.eI(new g.EB("JSON parsing failed after XHR fetch",K,W,U));if((h==null?0:h.UL)&&U)throw new g.jn(1,"JSON parsing failed after XHR fetch");m={}}W!==200&&(g.eI(new g.EB("XHR API fetch failed",K,W,U)),m=Object.assign({},m,{errorMetadata:{status:W}}));return m};uD.getInstance=function(){var K=g.vB("ytglobal.storage_");K||(K=new uD,g.Vk("ytglobal.storage_",K));return K}; uD.prototype.estimate=function(){var K,W,U;return g.r(function(h){K=navigator;return((W=K.storage)==null?0:W.estimate)?h.return(K.storage.estimate()):((U=K.webkitTemporaryStorage)==null?0:U.queryUsageAndQuota)?h.return(JTs()):h.return()})}; g.Vk("ytglobal.storageClass_",uD);gM.prototype.Ro=function(K){this.handleError(K)}; gM.prototype.logEvent=function(K,W){switch(K){case "IDB_DATA_CORRUPTED":g.hc("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":g.hc("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":C7D(this,W);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.j("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":K= Object.assign({},W,{hasWindowUnloaded:this.X}),this.j("idbTransactionAborted",K)}};var xz={},AVe=g.Yq("yt-player-local-media",{gP:(xz.index={N3:2},xz.media={N3:2},xz.captions={N3:5},xz),shared:!1,upgrade:function(K,W){W(2)&&(g.jk(K,"index"),g.jk(K,"media"));W(5)&&g.jk(K,"captions");W(6)&&(cb(K,"metadata"),cb(K,"playerdata"))}, version:5});var Dsb={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},C2;a:{var lT=g.i5();lT=lT.toLowerCase();if(g.so(lT,"android")){var Ha3=lT.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ha3){var rWj=parseFloat(Ha3[1]);if(rWj<100){C2=rWj;break a}}var TGN=lT.match("("+Object.keys(Dsb).join("|")+")");C2=TGN?Dsb[TGN[0]]:0}else C2=void 0}var j3=C2,hu=j3>=0;var zqY=Tv(function(){var K,W;return(W=(K=window).matchMedia)==null?void 0:W.call(K,"(prefers-reduced-motion: reduce)").matches});var sC;g.T2=new tt;sC=0;var up=WV$()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.iC?!0:!1;var Y5={Li:function(K,W){K[t[35]](0,W)}, fJ:function(K){K[t[36]]()}, wC:function(K,W){var U=K[0];K[0]=K[W%K[t[4]]];K[W%K[t[4]]]=U}};var uiC={vMr:"adunit",Xar:"detailpage",LyK:"editpage",zpK:"embedded",p0m:"leanback",O7A:"previewpage",hdA:"profilepage",L$:"unplugged",ynk:"playlistoverview",qwe:"sponsorshipsoffer",hIX:"shortspage",bKp:"handlesclaiming",L4p:"immersivelivepage",rBk:"creatormusic",mKU:"immersivelivepreviewpage",qPs:"admintoolyurt",aCH:"shortsaudiopivot",CKV:"consumption",H1k:"background_audio_playback"};var yhF=2592E3;var L2,aPI,aO;L2={};g.EW=(L2.STOP_EVENT_PROPAGATION="html5-stop-propagation",L2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",L2.IV_DRAWER_OPEN="ytp-iv-drawer-open",L2.MAIN_VIDEO="html5-main-video",L2.VIDEO_CONTAINER="html5-video-container",L2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",L2.HOUSE_BRAND="house-brand",L2);aPI={};aO=(aPI.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",aPI.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",aPI);var vpC={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var vl$={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},GJ_={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"},GiD={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Gt_={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.va[t[40]][t[7]]=function(K,W){this[t[8]][K]!==W&&(this[t[8]][K]=W,this[t[0]]=t[3])}; g.va[t[40]][t[17]]=function(K){eA(51,this);return this[t[8]][K]||null}; g.va[t[40]][t[67]]=function(){this[t[0]]||(this[t[0]]=Ig(1,this));return this[t[0]]}; g.va[t[40]][t[37]]=function(){var K=new g.va(this[t[5]],this[t[15]]);K[t[30]]=this[t[30]];K[t[14]]=this[t[14]];K[t[20]]=this[t[20]];K[t[8]]=g.Ni(this[t[8]]);K[t[0]]=this[t[0]];return K}; var JW_=[qBF];g.kn.prototype.getLanguageInfo=function(){return this.ZO}; g.kn.prototype.getXtags=function(){if(!this.xtags){var K=this.id.split(";");K.length>1&&(this.xtags=K[1])}return this.xtags}; g.kn.prototype.toString=function(){return this.ZO.name}; g.kn.prototype.getLanguageInfo=g.kn.prototype.getLanguageInfo;ZO.prototype.equals=function(K){return this.X===K.X&&this.j===K.j&&this.N===K.N&&this.reason===K.reason&&(!HD||this.j0===K.j0)}; ZO.prototype.isLocked=function(){return this.N&&!!this.X&&this.X===this.j}; ZO.prototype.compose=function(K){if(K.N&&ru(K))return BE;if(K.N||ru(this))return K;if(this.N||ru(K))return this;var W=this.X&&K.X?Math.max(this.X,K.X):this.X||K.X,U=this.j&&K.j?Math.min(this.j,K.j):this.j||K.j;W=Math.min(W,U);var h=0;HD&&(h=this.j0!==0&&K.j0!==0?Math.min(this.j0,K.j0):this.j0===0?K.j0:this.j0);return HD&&W===this.X&&U===this.j&&h===this.j0||!HD&&W===this.X&&U===this.j?this:HD?new ZO(W,U,!1,U===this.j&&h===this.j0?this.reason:K.reason,h):new ZO(W,U,!1,U===this.j?this.reason:K.reason)}; ZO.prototype.W=function(K){return!K.video||HD&&this.j0!==0&&this.j0=0}; g.H.H1=function(){var K=this.segments[this.segments.length-1];return K?K.endTime:NaN}; g.H.Cr=function(){return this.segments[0].startTime}; g.H.Iq=function(){return this.segments.length}; g.H.aC=function(){return 0}; g.H.IQ=function(K){return(K=this.G3(K))?K.kx:-1}; g.H.yK=function(K){return(K=this.UY(K))?K.sourceURL:""}; g.H.getStartTime=function(K){return(K=this.UY(K))?K.startTime:0}; g.H.Tu=function(K){return this.getStartTime(K)+this.getDuration(K)}; g.H.O8=f4(1);g.H.isLoaded=function(){return this.segments.length>0}; g.H.UY=function(K){if(this.j&&this.j.kx===K)return this.j;K=g.FK(this.segments,new ny(K,0,0,0,""),function(W,U){return W.kx-U.kx}); return this.j=K>=0?this.segments[K]:null}; g.H.G3=function(K){if(this.j&&this.j.startTime<=K&&K=0?this.segments[K]:this.segments[Math.max(0,-K-2)]}; g.H.append=function(K){if(K.length)if(K=g.k4(K),this.segments.length){var W=this.segments.length?g.Z$(this.segments).endTime:0,U=K[0].kx-this.Rn();U>1&&Ioe(this.segments);for(U=U>0?0:-U+1;UK.kx&&this.index.zR()<=K.kx+1}; g.H.update=function(K,W,U){this.index.append(K);NrL(this.index,U);K=this.index;K.X=W;K.N="update"}; g.H.LC=function(){return this.qM()?!0:xo.prototype.LC.call(this)}; g.H.o1=function(K,W){var U=this.index.yK(K),h=this.index.getStartTime(K),m=this.index.getDuration(K),S;W?m=S=0:S=this.info.j0>0?this.info.j0*m:1E3;return new rd([new TG(3,this,void 0,"liveCreateRequestInfoForSegment",K,h,m,0,S,!W)],U)}; g.H.Hs=function(){return this.qM()?0:this.initRange.length}; g.H.kC=function(){return!1};au.prototype.update=function(K){var W=void 0;this.X&&(W=this.X);var U=new au,h=Array.from(K.getElementsByTagName("S"));if(h.length){var m=+t7(K,"timescale")||1,S=(+h[0].getAttribute("t")||0)/m,f=+t7(K,"startNumber")||0;U.W=S;var G=W?W.startSecs+W.k$:0,I=Date.parse(RGp(t7(K,"yt:segmentIngestTime")))/1E3;U.U=K.parentElement.tagName==="SegmentTemplate";U.U&&(U.Y=t7(K,"media"));K=W?f-W.kx:1;U.G=K>0?0:-K+1;K=g.z(h);for(h=K.next();!h.done;h=K.next()){h=h.value;for(var d=+h.getAttribute("d")/m,J=(+h.getAttribute("yt:sid")|| 0)/m,e=+h.getAttribute("r")||0,E=0;E<=e;E++)if(W&&f<=W.kx)f++;else{var B=new MVL(f,G,d,I+J,S);U.j.push(B);var D=h;var a=m,Q=B.startSecs;B=D.getAttribute("yt:cuepointTimeOffset");var u=D.getAttribute("yt:cuepointDuration");if(B&&u){B=Number(B);Q=-B/a+Q;a=Number(u)/a;u=D.getAttribute("yt:cuepointContext")||null;var O=D.getAttribute("yt:cuepointIdentifier")||"";D=D.getAttribute("yt:cuepointEvent")||"";D=new u6(Q,a,u,O,QVN[D]||"unknown",B)}else D=null;D&&U.N.push(D);f++;G+=d;S+=d;I+=d+J}}U.j.length&& (U.X=g.Z$(U.j))}this.G=U.G;this.X=U.X||this.X;g.Ms(this.j,U.j);g.Ms(this.N,U.N);this.U=U.U;this.Y=U.Y;this.W===-1&&(this.W=U.getStreamTimeOffset())}; au.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.V(KT,g.lS);g.H=KT.prototype;g.H.fY=function(){return this.q9}; g.H.v0=function(K,W){K=CJ(this,K);return K>=0&&(W||!this.segments[K].pending)}; g.H.zR=function(){return this.yr?this.segments.length?this.G3(this.Cr()).kx:-1:g.lS.prototype.zR.call(this)}; g.H.Cr=function(){if(this.tv)return 0;if(!this.yr)return g.lS.prototype.Cr.call(this);if(!this.segments.length)return 0;var K=Math.max(g.Z$(this.segments).endTime-this.T_,0);return this.DE>0&&this.G3(K).kx0)return this.DU/1E3;if(!this.segments.length)return g.lS.prototype.H1.call(this);var K=this.Rn();if(!this.yr||K<=this.segments[this.segments.length-1].kx)K=this.segments[this.segments.length-1];else{var W=this.segments[this.segments.length-1];K=new ny(K,Math.max(0,W.startTime-(W.kx-K)*this.q9),this.q9,0,"sq/"+K,void 0,void 0,!0)}return this.tv?Math.min(this.T_,K.endTime):K.endTime}; g.H.Iq=function(){return this.yr?this.segments.length?this.Rn()-this.zR()+1:0:g.lS.prototype.Iq.call(this)}; g.H.Rn=function(){var K=Math.min(this.L_,Math.max(g.lS.prototype.Rn.call(this),this.xD)),W=this.T_*1E3;W=this.DU>0&&this.DU0&&this.xD>0&&!W&&(W=this.G3(this.T_))&&(K=Math.min(W.kx-1,K));return K}; g.H.qB=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.H.bk=function(K){var W=CJ(this,K.kx);if(W>=0)this.segments[W]=K;else if(this.segments.splice(-(W+1),0,K),this.VJ&&K.kx%(300/this.q9)===0){var U=this.segments[0].kx,h=Math.floor(this.VJ/this.q9);K=K.kx-h;W=-(W+1)-h;W>0&&K>U&&(this.segments=this.segments.slice(W))}}; g.H.Aq=function(){return this.xD}; g.H.ql=function(K){return LM?!this.X&&K>=0&&this.Rn()<=K:g.lS.prototype.ql.call(this,K)}; g.H.G3=function(K){if(!this.yr)return g.lS.prototype.G3.call(this,K);if(!this.segments.length)return null;var W=this.segments[this.segments.length-1];if(K=W.endTime)W=W.kx+Math.floor((K-W.endTime)/this.q9+1);else{W=x7(this.segments,function(h){return K=h.endTime?1:0}); if(W>=0)return this.segments[W];var U=-(W+1);W=this.segments[U-1];U=this.segments[U];W=Math.floor((K-W.endTime)/((U.startTime-W.endTime)/(U.kx-W.kx-1))+1)+W.kx}return this.UY(W)}; g.H.UY=function(K){if(!this.yr)return g.lS.prototype.UY.call(this,K);if(!this.segments.length)return null;var W=CJ(this,K);if(W>=0)return this.segments[W];var U=-(W+1);W=this.q9;if(U===0)var h=Math.max(0,this.segments[0].startTime-(this.segments[0].kx-K)*W);else U===this.segments.length?(h=this.segments[this.segments.length-1],h=h.endTime+(K-h.kx-1)*W):(h=this.segments[U-1],W=this.segments[U],W=(W.startTime-h.endTime)/(W.kx-h.kx-1),h=h.endTime+(K-h.kx-1)*W);return new ny(K,h,W,0,"sq/"+K,void 0,void 0, !0)}; var LM=!1;g.V(dD,xc);g.H=dD.prototype;g.H.HL=function(){return!0}; g.H.LC=function(){return!0}; g.H.R1=function(K){return this.oU()&&K.X&&!K.N||!K.Wp.index.ql(K.kx)}; g.H.Gp=function(){}; g.H.Vd=function(K,W){return typeof K!=="number"||isFinite(K)?xc.prototype.Vd.call(this,K,W===void 0?!1:W):new rd([new TG(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.GI,void 0,this.GI*this.info.j0)],"")}; g.H.o1=function(K,W){var U=U===void 0?!1:U;if(this.index.v0(K))return xc.prototype.o1.call(this,K,W);var h=this.index.getStartTime(K),m=Math.round(this.GI*this.info.j0),S=this.GI;W&&(S=m=0);return new rd([new TG(U?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",K,h,S,void 0,m,!W)],K>=0?"sq/"+K:"")};g.V(Ja,xo);g.H=Ja.prototype;g.H.LK=function(){return!1}; g.H.oU=function(){return!1}; g.H.HL=function(){return!1}; g.H.Gp=function(){return new rd([new TG(1,this,void 0,"otfInit")],this.U)}; g.H.oE=function(){return null}; g.H.fS=function(K){this.R1(K);return jFD(this,ex(K),!1)}; g.H.Vd=function(K,W){W=W===void 0?!1:W;K=this.index.IQ(K);W&&(K=Math.min(this.index.Rn(),K+1));return jFD(this,K,!0)}; g.H.C0=function(K){K.info.type===1&&(this.j||(this.j=Im(K.X)),K.j&&K.j.uri==="http://youtube.com/streaming/otf/durations/112015"&&yEC(this,K.j))}; g.H.R1=function(K){return K.X===0?!0:this.index.Rn()>K.kx&&this.index.zR()<=K.kx+1}; g.H.Hs=function(){return 0}; g.H.kC=function(){return!1};var Qas=new Map,YnD=new Map,$bs=new function(){var K=this;this.j=new Map;this.xd={bOk:function(){return K.j}}};g.H=g.BQ.prototype;g.H.v0=function(K){return K<=this.Rn()}; g.H.aC=function(K){return this.offsets[K]}; g.H.getStartTime=function(K){return this.startTicks[K]/this.j}; g.H.Tu=function(K){return this.getStartTime(K)+this.getDuration(K)}; g.H.O8=f4(0);g.H.hv=function(){return NaN}; g.H.getDuration=function(K){K=this.GD(K);return K>=0?K/this.j:-1}; g.H.GD=function(K){return K+1=0}; g.H.H1=function(){return this.X?this.startTicks[this.count]/this.j:NaN}; g.H.Cr=function(){return 0}; g.H.Iq=function(){return this.count}; g.H.yK=function(){return""}; g.H.IQ=function(K){K=g.FK(this.startTicks.subarray(0,this.count),K*this.j);return K>=0?K:Math.max(0,-K-2)}; g.H.isLoaded=function(){return this.Rn()>=0}; g.H.VO=function(K,W){if(K>=this.Rn())return 0;var U=0;for(W=this.getStartTime(K)+W;Kthis.getStartTime(K);K++)U=Math.max(U,k6Y(this,K)/this.getDuration(K));return U}; g.H.resize=function(K){K+=2;var W=this.offsets;this.offsets=new Float64Array(K+1);var U=this.startTicks;this.startTicks=new Float64Array(K+1);for(K=0;K0&&K&&(U=U.range.end+1,K=Math.min(K,this.info.contentLength-U),K>0&&h.push(new TG(4,this,JT(U,K),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)));return new rd(h)}; g.H.C0=function(K){if(K.info.type===1){if(this.j)return;this.j=Im(K.X)}else if(K.info.type===2){if(this.U||this.index.Rn()>=0)return;if(g.Yv(this.info)){var W=this.index,U=g.jI(K);K=K.info.range.start;var h=g.LS(U,0,1936286840);U=xlD(h);W.j=U.timescale;var m=U.fP;W.offsets[0]=U.zA+K+h.size;W.startTicks[0]=m;W.X=!0;K=U.Mh.length;for(h=0;h0&&K===S[0].b9)for(K=0;K=W+U)break}m.length||(K=new g.EB("b189619593",""+K,""+W,""+U),g.wG(K));return new rd(m)}; g.H.XE=function(K){for(var W=this.nx(K.info),U=K.info.range.start+K.info.j,h=[],m=0;m=this.index.aC(U+1);)U++;return this.R2(U,W,K.X).Ce}; g.H.R1=function(K){K.xM();return this.LC()?!0:K.range.end+1this.info.contentLength&&(W=new v_(W.start,this.info.contentLength-1)),new rd([new TG(4,K.Wp,W,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,K.clipId)]);K.type===4&&(K=this.nx(K),K=K[K.length-1]);var U=0,h=K.range.start+K.j+K.X;K.type===3&&(K.xM(),U=K.kx,h===K.range.end+1&&(U+=1));return this.R2(U,h,W)}; g.H.fS=function(){return null}; g.H.Vd=function(K,W){W=W===void 0?!1:W;K=this.index.IQ(K);W&&(K=Math.min(this.index.Rn(),K+1));return this.R2(K,this.index.aC(K),0,void 0)}; g.H.LK=function(){return!0}; g.H.oU=function(){return!0}; g.H.HL=function(){return!1}; g.H.Hs=function(){return this.indexRange.length+this.initRange.length}; g.H.kC=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var W6={},WYL=(W6.COLOR_PRIMARIES_BT709="bt709",W6.COLOR_PRIMARIES_BT2020="bt2020",W6.COLOR_PRIMARIES_UNKNOWN=null,W6.COLOR_PRIMARIES_UNSPECIFIED=null,W6),Ux={},K9$=(Ux.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Ux.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Ux.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Ux.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Ux.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Ux.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Ux);g.nl.prototype.getName=function(){return this.name}; g.nl.prototype.getId=function(){return this.id}; g.nl.prototype.getIsDefault=function(){return this.isDefault}; g.nl.prototype.toString=function(){return this.name}; g.nl.prototype.getName=g.nl.prototype.getName;g.nl.prototype.getId=g.nl.prototype.getId;g.nl.prototype.getIsDefault=g.nl.prototype.getIsDefault;var lrC=/action_display_post/;var WP2,co,n8;g.V(fM,g.GP);g.H=fM.prototype;g.H.isLoading=function(){return this.state===1}; g.H.q4=function(){return this.state===3}; g.H.m9X=function(K){var W=K.getElementsByTagName("Representation");if(K.getElementsByTagName("SegmentList").length>0||K.getElementsByTagName("SegmentTemplate").length>0){this.mK=this.X=!0;this.Y||(this.Y=new wZ2);UOF(this.Y,K);this.publish("refresh");for(K=0;K=0?J=ev(E):e=e+"?range="+E}I.call(G,new ny(d.kx,d.startSecs,d.k$,d.j,e,J,d.X))}h=m}U.update(h,this.isLive,this.vp)}jBF(this.Y);return!0}this.duration=AeR(t7(K,"mediaPresentationDuration"));a:{for(K= 0;K0))return this.jj()-K}}K=this.j;for(var W in K){var U=K[W].index;if(U.isLoaded()&&!Wh(K[W].info.mimeType))return U.Cr()}return 0}; g.H.getStreamTimeOffset=function(){return this.J}; g.H.hv=function(K){for(var W in this.j){var U=this.j[W].index;if(U.isLoaded()){var h=U.IQ(K),m=U.hv(h);if(m)return m+K-U.getStartTime(h)}}return NaN}; var JX=null,$sF,Sv=!(($sF=navigator.mediaCapabilities)==null||!$sF.decodingInfo),fJp={commentary:1,alternate:2,dub:3,main:4};var xg=new Set,Cn=new Map;Tz.prototype.clone=function(K){return new Tz(this.flavor,K,this.X,this.experiments)}; Tz.prototype.P3=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Tz.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 YZH={},nhp=(YZH.playready=["com.youtube.playready","com.microsoft.playready"],YZH.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],YZH),hH={},PFL=(hH.widevine="DRM_SYSTEM_WIDEVINE",hH.fairplay="DRM_SYSTEM_FAIRPLAY",hH.playready="DRM_SYSTEM_PLAYREADY",hH),jY={},OaZ=(jY.widevine=1,jY.fairplay=2,jY.playready=3,jY);var kg;g.V(oM,g.p); oM.prototype.initialize=function(K,W){for(var U=this,h=g.z(Object.keys(K)),m=h.next();!m.done;m=h.next()){m=g.z(K[m.value]);for(var S=m.next();!S.done;S=m.next())if(S=S.value,S.zL)for(var f=g.z(Object.keys(S.zL)),G=f.next();!G.done;G=f.next()){var I=G.value;G=I;I=nhp[I];!I&&this.L("html5_enable_vp9_fairplay")&&G==="fairplay"&&(I=["com.youtube.fairplay.sbdl"]);if(I){I=g.z(I);for(var d=I.next();!d.done;d=I.next())d=d.value,this.N[d]=this.N[d]||new Tz(G,d,S.zL[G],this.Tm.experiments),this.j[G]=this.j[G]|| {},this.j[G][S.mimeType]=!0}}}aC()&&(this.N["com.youtube.fairplay"]=new Tz("fairplay","com.youtube.fairplay","",this.Tm.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=ghs(W,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay")&&!0,this.L("html5_enable_vp9_fairplay")).filter(function(J){return!!U.N[J]})}; oM.prototype.L=function(K){return this.Tm.experiments.Rk(K)};var cWb={"":"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"};di.prototype.L=function(K){return this.experiments.Rk(K)};var yRz={RED:"red",xUH:"white"};dO.prototype.v3=function(K){if(K.P8!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return zus(this,K)}; dO.prototype.Rk=function(K){return this.flags.get(""+K)==="true"};J9.prototype.qk=function(){return this.N}; J9.prototype.KY=function(){return this.X}; J9.prototype.Rk=function(K){K=this.v3(K);JSON.stringify(K);return K==="true"}; J9.prototype.v3=function(K){return this.flags[K]};var NYC=Promise.resolve(),wJs=window.queueMicrotask?window.queueMicrotask.bind(window):Axp;tu.prototype.canPlayType=function(K,W){K=K.canPlayType?K.canPlayType(W):!1;iy?K=K||nb3[W]:j3===2.2?K=K||gbf[W]:zl()&&(K=K||FLf[W]);return!!K}; tu.prototype.isTypeSupported=function(K){return this.jV?window.cast.receiver.platform.canDisplayType(K):b6(K)}; var gbf={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},FLf={"application/x-mpegURL":"maybe"},nb3={"application/x-mpegURL":"maybe"};g.V(f8,g.GP);f8.prototype.add=function(K,W){if(!this.items[K]&&(W.jF||W.v8||W.ue)){var U=this.items,h=W;Object.isFrozen&&!Object.isFrozen(W)&&(h=Object.create(W),Object.freeze(h));U[K]=h;this.publish("vast_info_card_add",K)}}; f8.prototype.remove=function(K){var W=this.get(K);delete this.items[K];return W}; f8.prototype.get=function(K){return this.items[K]||null}; f8.prototype.isEmpty=function(){return g.Tb(this.items)};QO.prototype.encrypt=function(K){this.j.exports.AES128CTRCipher_encrypt(this.cipher,K.byteOffset,K.byteLength);return K}; QO.prototype.qs=function(){return this.cipher===0}; QO.prototype.dispose=function(){this.j.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Kn.prototype.JB=function(K,W){W=W===void 0?1:W;this.MB+=W;this.X+=K;K/=W;for(var U=0;U0)h+="."+bz[m].toFixed(0)+"_"+U.j[m].toFixed(0);else break;U=h}U&&(K[W]=U)}this.j=new bO2;return K}; g.H.toString=function(){return""};g.H=po_.prototype;g.H.isActive=function(){return!1}; g.H.f2=function(){}; g.H.PJ=function(){}; g.H.ZT=function(){}; g.H.Ia=function(K,W){W()}; g.H.UJ=function(){return{}}; g.H.toString=function(){return""};var ufO=new po_,k2W=!!+AQF("html5_enable_profiler"),iat=!!+AQF("html5_onesie_enable_profiler"),mJ=k2W||iat?new sJL:ufO,x4C=k2W?mJ:ufO,v8=iat?mJ:ufO;Kre.prototype.emscripten_notify_memory_growth=function(){};g.H=kV.prototype;g.H.malloc=function(K){return this.exports.malloc(K)}; g.H.free=function(K){this.exports.free(K)}; g.H.realloc=function(K,W){return this.exports.realloc(K,W)}; g.H.Tp=function(K){if(K.buffer!==this.exports.memory.buffer){var W=this.malloc(K.byteLength);W=new Uint8Array(this.exports.memory.buffer,W,K.byteLength);W.set(K);return W}}; g.H.uS=function(K){if(K.buffer===this.exports.memory.buffer){var W=K.slice();this.free(K.byteOffset);return W}}; var Gus=new function(){this.j=this.X="WebAssembly"in window},Q5$="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); v8.f2(kV,{Tp:function(K){return{profile:"copyj2w",MB:K===void 0?0:Math.ceil(K.byteLength/16)}}, uS:function(K){return{profile:"copyw2j",MB:K===void 0?0:Math.ceil(K.byteLength/16)}}});Kj.prototype.encrypt=function(K,W){try{return this.j.uS(hkC(this,K,W))}catch(U){g.eI(Error("ocwce: wasm encrypt failed: "+U))}}; Kj.prototype.qs=function(){return this.N}; Kj.prototype.dispose=function(){this.qs()||(g.vZ(this.X),this.j.free(this.W.byteOffset),this.N=!0)};g.V(TRR,g.p);g.V(ZQR,g.p);var a_;wD.prototype.add=function(K){if(this.pos+20>this.data.length){var W=new Uint8Array(this.data.length*2);W.set(this.data);this.data=W}for(;K>31;)this.data[this.pos++]=a_[(K&31)+32],K>>=5;this.data[this.pos++]=a_[K|0]}; wD.prototype.ri=function(){return g.lk(this.data.subarray(0,this.pos))}; wD.prototype.reset=function(){this.pos=0};xS.prototype.gj=function(K,W){var U=Math.pow(this.alpha,K);this.j=W*(1-U)+U*this.j;this.X+=K}; xS.prototype.xv=function(){return this.j/(1-Math.pow(this.alpha,this.X))};Dzz.prototype.gj=function(K,W){for(var U=0;U<10;U++){var h=this.j[U],m=h+(U===0?K:0),S=1*Math.pow(2,U);if(m<=S)break;h=Math.min(1,(m-S*.5)/h);for(m=0;m<16;m++)S=this.values[U*16+m]*h,this.values[(U+1)*16+m]+=S,this.j[U+1]+=S,this.values[U*16+m]-=S,this.j[U]-=S}h=U=0;m=8192;W>8192&&(U=Math.ceil(Math.log(W/8192)/Math.log(2)),h=8192*Math.pow(2,U-1),m=h*2);U+2>16?this.values[15]+=K:(W=(W-h)/(m-h),this.values[U]+=K*(1-W),this.values[U+1]+=K*W);this.j[0]+=K}; Dzz.prototype.xv=function(){var K=K===void 0?this.X:K;var W=W===void 0?.02:W;var U=U===void 0?.98:U;for(var h=this.N,m=0;m<16;m++)h[m]=this.values[m];m=this.j[0];for(var S=1;S<11;S++){var f=this.j[S];if(f===0)break;for(var G=Math.min(1,(K-m)/f),I=0;I<16;I++)h[I]+=this.values[S*16+I]*G;m+=f*G;if(G<1)break}for(S=K=f=0;S<16;S++){G=f+h[S]/m;K+=Math.max(0,Math.min(G,U)-Math.max(f,W))*(S>0?8192*Math.pow(2,S-1):0);if(G>U)break;f=G}return K/(U-W)};B5.prototype.gj=function(K,W){K=Math.min(this.j,Math.max(1,Math.round(K*this.resolution)));K+this.X>=this.j&&(this.N=!0);for(;K--;)this.values[this.X]=W,this.X=(this.X+1)%this.j;this.BM=!0}; B5.prototype.percentile=function(K){var W=this;if(!this.N&&this.X===0)return 0;this.BM&&(g.OM(this.U,function(U,h){return W.values[U]-W.values[h]}),this.BM=!1); return this.values[this.U[Math.round(K*((this.N?this.j:this.X)-1))]]||0}; B5.prototype.xv=function(){return this.G?(this.percentile(this.W-this.G)+this.percentile(this.W)+this.percentile(this.W+this.G))/3:this.percentile(this.W)};g.V(IO,g.p);IO.prototype.Bp=function(){var K;(K=this.tK)==null||K.start();z3R(this)&&this.policy.J&&(this.vl?this.vl.xn():this.JK())};p3D.prototype.L=function(K){return this.experiments.Rk(K)};g.V(bQ_,g.p);var RxC="blogger discover-ads ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),EUp={rDp:"caoe",uYX:"capsv",kSH:"cbrand",qjx:"cbr",t$m:"cbrver",wSV:"cchip",oTH:"ccappver",PKx:"ccrv",Iax:"cfrmver",kJs:"c",tDU:"cver",eaV:"ctheme",qXr:"cplayer",thU:"cmodel",iz:"cnetwork",lFH:"cos",OS_VERSION:"cosver",uAe:"cplatform",l5V:"crqyear"};g.V(Ju,g.p);g.H=Ju.prototype;g.H.L=function(K){return this.experiments.Rk(K)}; g.H.qk=function(){return this.experiments.qk()}; g.H.KY=function(){return this.experiments.KY()}; g.H.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.H.getVideoUrl=function(K,W,U,h,m,S,f){W={list:W};U&&(m?W.time_continue=U:W.t=U);U=f?"music.youtube.com":g.$b(this);m=U==="www.youtube.com";!S&&h&&m?S="https://youtu.be/"+K:g.r8(this)?(S="https://"+U+"/fire",W.v=K):(S&&m?(S=this.protocol+"://"+U+"/shorts/"+K,h&&(W.feature="share")):(S=this.protocol+"://"+U+"/watch",W.v=K),iy&&(K=b_2())&&(W.ebc=K));return g.sL(S,W)}; g.H.getVideoEmbedCode=function(K,W,U,h){W="https://"+g.$b(this)+"/embed/"+W;h&&(W=g.sL(W,{list:h}));h=U.width;U=U.height;W=xG(W);K=xG(K!=null?K:"YouTube video player");return'')}; g.H.supportsGaplessAudio=function(){return g.Nl&&!iy&&um()>=74||g.aS&&g.rs(68)?!0:!1}; g.H.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.vp||g.$c?!1:!0}; g.H.getPlayerType=function(){return this.j.cplayer}; g.H.G9=function(){return this.qb}; var w7$=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],XbL=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Jus=[19];var SY={},rCp=(SY["140"]={numChannels:2},SY["141"]={numChannels:2},SY["251"]={audioSampleRate:48E3,numChannels:2},SY["774"]={audioSampleRate:48E3,numChannels:2},SY["380"]={numChannels:6},SY["328"]={numChannels:6},SY["773"]={},SY),fP={},HzF=(fP["1"]='video/mp4; codecs="av01.0.08M.08"',fP["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',fP["1e"]='video/mp4; codecs="av01.0.08M.08"',fP["9"]='video/webm; codecs="vp9"',fP["("]='video/webm; codecs="vp9"',fP["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', fP.h='video/mp4; codecs="avc1.64001e"',fP.H='video/mp4; codecs="avc1.64001e"',fP.o='audio/webm; codecs="opus"',fP.a='audio/mp4; codecs="mp4a.40.2"',fP.ah='audio/mp4; codecs="mp4a.40.2"',fP.mac3='audio/mp4; codecs="ac-3"; channels=6',fP.meac3='audio/mp4; codecs="ec-3"; channels=6',fP.i='audio/mp4; codecs="iamf.001.001.Opus"',fP),tH={},Rde=(tH["337"]={width:3840,height:2160,bitrate:3E7,fps:30},tH["336"]={width:2560,height:1440,bitrate:15E6,fps:30},tH["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, tH["702"]={width:7680,height:4320,bitrate:4E7,fps:60},tH["701"]={width:3840,height:2160,bitrate:2E7,fps:60},tH["700"]={width:2560,height:1440,bitrate:1E7,fps:60},tH["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},tH["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},tH["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},tH["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, tH["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},tH["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},tH["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},tH["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},tH["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},tH["315"]={width:3840,height:2160,bitrate:2E7,fps:60},tH["308"]={width:2560, height:1440,bitrate:1E7,fps:60},tH["303"]={width:1920,height:1080,bitrate:5E6,fps:60},tH["302"]={width:1280,height:720,bitrate:25E5,fps:60},tH["299"]={width:1920,height:1080,bitrate:75E5,fps:60},tH["298"]={width:1280,height:720,bitrate:35E5,fps:60},tH["571"]={width:7680,height:4320,bitrate:3E7,fps:60},tH["401"]={width:3840,height:2160,bitrate:15E6,fps:60},tH["400"]={width:2560,height:1440,bitrate:75E5,fps:60},tH["399"]={width:1920,height:1080,bitrate:2E6,fps:60},tH["398"]={width:1280,height:720,bitrate:1E6, fps:60},tH["397"]={width:854,height:480,bitrate:4E5,fps:30},tH["396"]={width:640,height:360,bitrate:25E4,fps:30},tH["787"]={width:1080,height:608,bitrate:2E5,fps:30},tH["788"]={width:1080,height:608,bitrate:4E5,fps:30},tH["572"]={width:7680,height:4320,bitrate:3E7,fps:60},tH["555"]={width:3840,height:2160,bitrate:15E6,fps:60},tH["554"]={width:2560,height:1440,bitrate:75E5,fps:60},tH["553"]={width:1920,height:1080,bitrate:2E6,fps:60},tH["552"]={width:1280,height:720,bitrate:1E6,fps:60},tH["551"]={width:854, height:480,bitrate:4E5,fps:30},tH["550"]={width:640,height:360,bitrate:25E4,fps:30},tH["313"]={width:3840,height:2160,bitrate:8E6,fps:30},tH["271"]={width:2560,height:1440,bitrate:4E6,fps:30},tH["248"]={width:1920,height:1080,bitrate:2E6,fps:30},tH["247"]={width:1280,height:720,bitrate:15E5,fps:30},tH["244"]={width:854,height:480,bitrate:52E4,fps:30},tH["243"]={width:640,height:360,bitrate:28E4,fps:30},tH["137"]={width:1920,height:1080,bitrate:4E6,fps:30},tH["136"]={width:1280,height:720,bitrate:3E6, fps:30},tH["135"]={width:854,height:480,bitrate:1E6,fps:30},tH["385"]={width:1920,height:1080,bitrate:6503313,fps:60},tH["376"]={width:1280,height:720,bitrate:5706960,fps:60},tH["384"]={width:1280,height:720,bitrate:3660979,fps:60},tH["225"]={width:1280,height:720,bitrate:5805E3,fps:30},tH["224"]={width:1280,height:720,bitrate:453E4,fps:30},tH["145"]={width:1280,height:720,bitrate:2682052,fps:30},tH);g.H=IU.prototype;g.H.getInfo=function(){return this.j}; g.H.xI=function(){return null}; g.H.YW=function(){var K=this.xI();return K?(K=g.BO(K.T9),Number(K.expire)):NaN}; g.H.Dk=function(){}; g.H.getHeight=function(){return this.j.video.height};Rop.prototype.build=function(){dNL(this);var K=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],W={};a:if(this.j)var U=this.j;else{U="";for(var h=g.z(this.N),m=h.next();!m.done;m=h.next())if(m=m.value,m.ZO){if(m.ZO.getIsDefault()){U=m.ZO.getId();break a}U||(U=m.ZO.getId())}}h=g.z(this.N);for(m=h.next();!m.done;m=h.next())if(m=m.value,this.G||!m.ZO||m.ZO.getId()===U)W[m.itag]||(W[m.itag]=[]),W[m.itag].push(m);U=g.z(this.X);for(h=U.next();!h.done;h=U.next())if(h=h.value,m=W[h.j]){m=g.z(m);for(var S=m.next();!S.done;S= m.next()){var f=K,G=f.push;S=S.value;var I="#EXT-X-MEDIA:TYPE=AUDIO,",d="YES",J="audio";if(S.ZO){J=S.ZO;var e=J.getId().split(".")[0];e&&(I+='LANGUAGE="'+e+'",');(this.j?this.j===J.getId():J.getIsDefault())||(d="NO");J=J.getName()}e="";h!==null&&(e=h.itag.toString());e=hO(this,S.url,e);I=I+('NAME="'+J+'",DEFAULT='+(d+',AUTOSELECT=YES,GROUP-ID="'))+(QOs(S,h)+'",URI="'+(e+'"'));G.call(f,I)}}U=g.z(this.U);for(h=U.next();!h.done;h=U.next())h=h.value,m=zbt,h=(f=h.ZO)?'#EXT-X-MEDIA:URI="'+hO(this,h.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+m+'",LANGUAGE="'+f.getId()+'",NAME="'+f.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,h&&K.push(h);U=this.U.length>0?zbt:void 0;h=g.z(this.X);for(m=h.next();!m.done;m=h.next())m=m.value,G=W[m.j],f=void 0,((f=G)==null?void 0:f.length)>0&&(f=m,G=G[0],G="#EXT-X-STREAM-INF:BANDWIDTH="+(f.bitrate+G.bitrate)+',CODECS="'+(f.codecs+","+G.codecs+'",RESOLUTION=')+(f.width+"x"+f.height+',AUDIO="')+(QOs(G,f)+'",')+(U?'SUBTITLES="'+U+'",':"")+"CLOSED-CAPTIONS=NONE",f.fps>1&&(G+= ",FRAME-RATE="+f.fps),f.Ty&&(G+=",VIDEO-RANGE="+f.Ty),K.push(G),K.push(hO(this,m.url,"")));return K.join("\n")}; var zbt="text";g.V(kc,IU);kc.prototype.YW=function(){return this.expiration}; kc.prototype.xI=function(){if(!this.T9||this.T9.qs()){var K=this.X.build();K="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(K);this.T9=new rL(K)}return this.T9};g.V(Y8,IU);Y8.prototype.xI=function(){return new rL(this.X.ej())}; Y8.prototype.Dk=function(){this.X=ch(6,this.X)};g.V(al,IU);al.prototype.xI=function(){return new rL(this.X)};var Gc={},FF_=(Gc.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Gc.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Gc.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Gc.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Gc);g.H=g.NL.prototype;g.H.getId=function(){return this.id}; g.H.getName=function(){return this.name}; g.H.isServable=function(){return this.j}; g.H.ej=function(){return this.url}; g.H.getXtags=function(){return this.xtags}; g.H.toString=function(){return this.languageCode+": "+g.MB(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.H.equals=function(K){return K?this.toString()===K.toString():!1}; g.H.Av=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var DjC={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},H7C={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},rOL=/^(\d*)_((\d*)_?(\d*))$/;var cts={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},VT2={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var IW={},y$C=(IW.ALWAYS=1,IW.BY_REQUEST=3,IW.UNKNOWN=void 0,IW),d1={},R1s=(d1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",d1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",d1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",d1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",d1);var Yh_; Yh_=function(K){for(var W=Object.keys(K),U={},h=0;hh-W?-1:K}; g.H.PF=function(){return this.X.Rn()}; g.H.J5=function(){return this.X.zR()}; g.H.Nu=function(K){this.X=K};g.V(p3,P3);p3.prototype.X=function(K,W){return P3.prototype.X.call(this,"$N|"+K,W)}; p3.prototype.U=function(K,W,U){return new UIs(K,W,U,this.isLive)};g.V(g.GM,g.GP);g.H=g.GM.prototype; g.H.setData=function(K){var W=this;K=K||{};var U=K.errordetail;U!=null&&(this.errorDetail=U);var h=K.errorcode;h!=null?this.errorCode=h:K.status==="fail"&&(this.errorCode="auth");var m=K.reason;m!=null&&(this.errorReason=m);var S=K.subreason;S!=null&&(this.hF=S);this.clientPlaybackNonce||(this.clientPlaybackNonce=K.cpn||(this.Tm.G9()?"r"+g.DO(15):g.DO(16)));this.Vr=DL(this.Tm.Vr,K.livemonitor);Nip(this,K);var f=K.raw_player_response;if(f)this.eX=f;else{var G=K.player_response;G&&(f=JSON.parse(G))}f&& (this.playerResponse=f);if(this.playerResponse){var I=this.playerResponse.annotations;I&&M4p(this,I);var d=this.playerResponse.attestation;d&&qmC(this,d);var J=this.playerResponse.cotn;J&&(this.cotn=J);var e=this.playerResponse.heartbeatParams;e&&MYD(this,e);var E=this.playerResponse.messages;E&&sUp(this,E);var B=this.playerResponse.overlay;B&&oFs(this,B);var D=this.playerResponse.playabilityStatus;if(D){HFs(this,D);var a=D.errorScreen;a&&N1e(this,a)}var Q=this.playerResponse.playbackTracking;Q&& eps(this,Q,K);var u=this.playerResponse.playerCueRanges;u&&u.length>0&&(this.cueRanges=u);var O=this.playerResponse.playerCueRangeSet;O&&g.TQD(this,O);var N=FHY(this.playerResponse.adPlacements);Q&&Q.promotedPlaybackTracking&&N&&g.eI(new g.EB("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(N||lxC(this.playerResponse.adSlots))this.D3=!0;var A=this.playerResponse.playerAds;A&&GQe(this,A,K);var Z=this.playerResponse.playerConfig;Z&&C9s(this,Z);var x=this.playerResponse.streamingData; x&&Ycz(this,x,Z||null);var b=this.playerResponse.trackingParams;b&&(this.Ms=b);var KR=this.playerResponse.videoDetails;if(KR){btp(this,KR,K);ytL(this,KR,Z||null,K);var fR=KR.isPrivate;fR!==void 0&&(this.isPrivate=DL(this.isPrivate,fR))}D&&OF2(this,D,KR||null);var jp=this.playerResponse.interstitialPods;jp&&BGD(this,jp);this.r4&&this.eventId&&(this.r4=gw(this.r4,{ei:this.eventId}));var I2=this.playerResponse.captions;I2&&I2.playerCaptionsTracklistRenderer&&aIs(this,I2.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.ww=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&xnC(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var hF;this.compositeLiveIngestionOffsetToken=(hF=this.playerResponse.playbackTracking)==null?void 0:hF.compositeLiveIngestionOffsetToken; var w$;this.compositeLiveStatusToken=(w$=this.playerResponse.playbackTracking)==null?void 0:w$.compositeLiveStatusToken;this.L("html5_fill_default_mosaic_audio_track_id")&&gB(this)&&(this.Tm.Pp=dLF(this));var vs,Sf,mj=(vs=this.playerResponse.playerConfig)==null?void 0:(Sf=vs.granularVariableSpeedConfig)==null?void 0:Sf.minimumPlaybackRate,c,AF,sW=(c=this.playerResponse.playerConfig)==null?void 0:(AF=c.granularVariableSpeedConfig)==null?void 0:AF.maximumPlaybackRate;mj&&sW&&(this.Mg=mj/100,this.Cd= sW/100);this.L("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(GS){var NP;((NP=g.P(GS,Yy_))==null?void 0:NP.signal)==="INIT_ATT_SERVICE"&&(W.UH=!0)})}lep(this,K); Ihp(this,K);K.queue_info&&(this.queueInfo=K.queue_info);var $4=K.hlsdvr;$4!=null&&(this.allowLiveDvr=Number($4)===1?p6()?!0:ri&&zU<5?!1:!0:!1);this.adQueryId=K.ad_query_id||null;this.qz||(this.qz=K.encoded_ad_safety_reason||null);this.M0=DL(this.M0,K.infringe||K.muted);this.xa=K.authkey;this.Pq=K.authuser;this.mutedAutoplay=DL(this.mutedAutoplay,K&&K.playmuted);this.mutedAutoplayDurationMode=BJ(this.mutedAutoplayDurationMode,K&&K.muted_autoplay_duration_mode);this.V3=DL(this.V3,K&&K.mutedautoplay); var zn=K.length_seconds;zn&&(this.lengthSeconds=typeof zn==="string"?eh(zn):zn);this.isAd()||this.Dp||!g.bX(g.mC(this.Tm))?this.endSeconds=BJ(this.endSeconds,this.hT||K.end||K.endSeconds):V4_(this,g.mC(this.Tm),this.lengthSeconds);this.Ms=dF(this.Ms,K.itct);this.Ti=DL(this.Ti,K.is_live_destination);this.isLivePlayback=DL(this.isLivePlayback,K.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.mK();K.isUpcoming&&(this.isUpcoming=DL(this.isUpcoming,K.isUpcoming));this.tv= DL(this.tv,K.post_live_playback);this.Cf&&(this.tv=!1);this.isMdxPlayback=DL(this.isMdxPlayback,K.mdx);var l3=K.mdx_control_mode;l3&&(this.mdxControlMode=typeof l3==="number"?l3:eh(l3));this.isInlinePlaybackNoAd=DL(this.isInlinePlaybackNoAd,K.is_inline_playback_no_ad);this.Bp=BJ(this.Bp,K.reload_count);this.reloadReason=dF(this.reloadReason,K.reload_reason);this.Ic=DL(this.Ic,K.show_content_thumbnail);this.cycToken=K.cyc||null;var Vb=Ht(K);Object.keys(Vb).length>0&&(this.i$=Vb);this.uX=dF(this.uX, K.vvt);this.mdxEnvironment=dF(this.mdxEnvironment,K.mdx_environment);K.source_container_playlist_id&&(this.sourceContainerPlaylistId=K.source_container_playlist_id);K.serialized_mdx_metadata&&(this.serializedMdxMetadata=K.serialized_mdx_metadata);this.CI=K.osig;this.eventId||(this.eventId=K.eventid);this.osid||(this.osid=K.osid);this.playlistId=dF(this.playlistId,K.list);K.index&&(this.playlistIndex=this.playlistIndex===void 0?BJ(0,K.index):BJ(this.playlistIndex,K.index));this.kI=K.pyv_view_beacon_url; this.ZN=K.pyv_quartile25_beacon_url;this.J1=K.pyv_quartile50_beacon_url;this.VF=K.pyv_quartile75_beacon_url;this.Gy=K.pyv_quartile100_beacon_url;var Ge=K.session_data;!this.wl&&Ge&&(this.wl=Ii(Ge,"&").feature);this.isFling=BJ(this.isFling?1:0,K.is_fling)===1;this.vnd=BJ(this.vnd,K.vnd);this.forceAdsUrl=dF(this.forceAdsUrl,K.force_ads_url);this.Lf=dF(this.Lf,K.ctrl);this.uT=dF(this.uT,K.ytr);this.FR=K.ytrcc;this.Nz=K.ytrexp;this.Je=K.ytrext;this.Ez=dF(this.Ez,K.adformat);this.c$=dF(this.c$,K.attrib); this.slotPosition=BJ(this.slotPosition,K.slot_pos);this.breakType=K.break_type;this.ws=DL(this.ws,K.ssrt);this.videoId=fD(K)||this.videoId;this.G=dF(this.G,K.vss_credentials_token);this.oC=dF(this.oC,K.vss_credentials_token_type);this.YN=DL(this.YN,K.audio_only);this.DA=DL(this.DA,K.aac_high);this.gZ=DL(this.gZ,K.prefer_low_quality_audio);this.vF=DL(this.vF,K.uncap_inline_quality);this.L("html5_enable_qoe_cat_list")?K.qoe_cat&&(this.fd=this.fd.concat(K.qoe_cat.split(","))):this.oT=dF(this.oT,K.qoe_cat); this.xr=DL(this.xr,K.download_media);this.Y=Ufs(this,K.prefer_gapless);bxp(this.playerResponse)&&this.XY.push("ad");var FN=K.adaptive_fmts;FN&&(this.adaptiveFormats=FN,this.rk("adpfmts",{},!0));var Y=K.allow_embed;Y&&(this.allowEmbed=Number(Y)===1);var Ws=K.backgroundable;Ws&&(this.backgroundable=Number(Ws)===1);var rG=K.autonav;rG&&(this.isAutonav=Number(rG)===1);var mL=K.autoplay;mL&&(this.pN=this.GZ=Number(mL)===1);var Xf=K.iv_load_policy;Xf&&(this.annotationsLoadPolicy=lm(this.annotationsLoadPolicy, Xf,S3));var G2=K.cc_lang_pref;G2&&(this.captionsLanguagePreference=dF(G2,this.captionsLanguagePreference));var xC=K.cc_load_policy;xC&&(this.D5=lm(this.D5,xC,S3));var ls;this.deviceCaptionsOn=(ls=K.device_captions_on)!=null?ls:void 0;var cB;this.T1=(cB=K.device_captions_lang_pref)!=null?cB:"";var F;this.AE=(F=K.viewer_selected_caption_langs)!=null?F:[];var w=K.cached_load;w&&(this.jQ=DL(this.jQ,w));if(K.dash==="0"||K.dash===0||K.dash===!1)this.x_=!0;var n=K.dashmpd;n&&(this.W1=g.sL(n,{cpn:this.clientPlaybackNonce})); var R=K.delay;R&&(this.An=eh(R));var q=this.hT||K.end;if(this.JK?q!=null:q!=void 0)this.clipEnd=BJ(this.clipEnd,q);var tF=K.fmt_list;tF&&(this.Ky=tF);K.heartbeat_preroll&&this.XY.push("heartbeat");NGW&&(this.n7=-Math.floor(Math.random()*10),this.Cw=-Math.floor(Math.random()*40));var l=K.is_listed;l&&(this.isListed=DL(this.isListed,l));var X=K.is_private;X&&(this.isPrivate=DL(this.isPrivate,X));var M=K.is_dni;M&&(this.Mk=DL(this.Mk,M));var kC=K.dni_color;kC&&(this.VV=dF(this.VV,kC));var is=K.pipable; is&&(this.pipable=DL(this.pipable,is));this.OH=(this.pV=this.pipable&&this.Tm.wN)&&!this.Tm.showMiniplayerButton;var a2=K.paid_content_overlay_duration_ms;a2&&(this.paidContentOverlayDurationMs=eh(a2));var FL=K.paid_content_overlay_text;FL&&(this.paidContentOverlayText=FL);var UW=K.url_encoded_fmt_stream_map;UW&&(this.qI=UW);var g$$=K.hls_formats;g$$&&(this.hlsFormats=g$$);var oV=K.hlsvp;oV&&(this.hlsvp=oV);var z2=K.live_start_walltime;z2&&(this.lI=typeof z2==="number"?z2:eh(z2));var CZ=K.live_manifest_duration; CZ&&(this.l0=typeof CZ==="number"?CZ:eh(CZ));var us=K.player_params;us&&(this.playerParams=us);var V_=K.partnerid;V_&&(this.partnerId=BJ(this.partnerId,V_));var ze=K.probe_url;ze&&(this.probeUrl=wo(g.sL(ze,{cpn:this.clientPlaybackNonce})));var wt=K.pyv_billable_url;wt&&JEe(wt)&&(this.G2=wt);var pR=K.pyv_conv_url;pR&&JEe(pR)&&(this.q_=pR);Iu2(this,K);this.startSeconds>0?this.L("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.ww||this.D2||K.start||K.startSeconds)&&this.rk("lss",{css:this.startSeconds, pcss:this.ww,iss:this.D2,ps:K.start||void 0,pss:K.startSeconds||void 0}):this.vp=this.startSeconds=BJ(this.startSeconds,this.ww||this.D2||K.start||K.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Yw=K.live_utc_start;Yw!=null?this.liveUtcStartSeconds=Number(Yw):gdR(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var OW=K.utc_start_millis;OW&&(this.liveUtcStartSeconds=Number(OW)*.001)}var LZ= K.stream_time_start_millis;LZ&&(this.Y_=Number(LZ)*.001);var UZ=this.D2||K.start;(this.JK?UZ==null||Number(K.resume)===1:UZ==void 0||K.resume=="1")||this.isLivePlayback||(this.clipStart=BJ(this.clipStart,UZ));var pZ=K.url_encoded_third_party_media;pZ&&(this.u5=q6(pZ));var Nv=K.ypc_offer_button_formatted_text;if(Nv){var av=JSON.parse(Nv);this.w$=av!=null?av:null;this.Dx=Nv}var u_=K.ypc_offer_button_text;u_&&(this.jb=u_);var Ef=K.ypc_offer_description;Ef&&(this.vV=Ef);var BF=K.ypc_offer_headline;BF&& (this.MO=BF);var CW=K.ypc_full_video_message;CW&&(this.ZW=CW);var lo=K.ypc_offer_id;lo&&(this.d8=lo);var Se=K.ypc_buy_url;Se&&(this.CT=Se);var a0=K.ypc_item_thumbnail;a0&&(this.g3=a0);var LW=K.ypc_item_title;LW&&(this.Y2=LW);var KB=K.ypc_item_url;KB&&(this.iI=KB);var W1=K.ypc_vid;W1&&(this.A1=W1);K.ypc_overlay_timeout&&(this.SM=Number(K.ypc_overlay_timeout));var VW=K.ypc_trailer_player_vars;VW&&(this.DN=nZ(VW));var Ay=K.ypc_original_itct;Ay&&(this.gO=Ay);this.R5=dF(this.R5,K.ucid);this.rQ=K.storyboard_spec|| null;this.CK=K.live_storyboard_spec||null;this.Cs=K.iv_endscreen_url||null;this.Vp=DL(this.Vp,K.iv3_module);this.tE=DL(this.tE,K.ypc_module);this.Br=DL(this.Br,K.ypc_clickwrap_module);this.tE&&this.XY.push("ypc");this.Br&&this.XY.push("ypcRentalActivation");this.qg={video_id:K.video_id,eventid:K.eventid,cbrand:K.cbrand,cbr:K.cbr,cbrver:K.cbrver,c:K.c,cver:K.cver,ctheme:K.ctheme,cplayer:K.cplayer,cmodel:K.cmodel,cnetwork:K.cnetwork,cos:K.cos,cosver:K.cosver,cplatform:K.cplatform,user_age:K.user_age, user_display_image:K.user_display_image,user_display_name:K.user_display_name,user_gender:K.user_gender,csi_page_type:K.csi_page_type,csi_service_name:K.csi_service_name,enablecsi:K.enablecsi,enabled_engage_types:K.enabled_engage_types};IRz(this,K);var RZ=K.cotn;RZ&&(this.cotn=RZ);upC(this)?mK(this)&&(this.isLivePlayback&&this.W1&&(this.Ea=!0),this.yC&&(this.N2=!0)):DWe(this)?this.Ea=!0:Adp(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&tc(this):this.W1&&(this.Tm.Ms==="yt"&&this.mK()&& this.L("drm_manifestless_unplugged")&&this.L("html5_deprecate_manifestful_fallback")?this.rk("deprecateMflFallback",{}):this.Ea=!0);var OL=K.adpings;OL&&(this.SD=OL?nZ(OL):null);var U$=K.feature;U$&&(this.uq=U$);var cj=K.referrer;cj&&(this.referrer=cj);this.clientScreenNonce=dF(this.clientScreenNonce,K.csn);this.HJ=BJ(this.HJ,K.root_ve_type);this.wr=BJ(this.wr,K.kids_age_up_mode);this.JK||K.kids_app_info==void 0||(this.kidsAppInfo=K.kids_app_info);this.JK&&K.kids_app_info!=null&&(this.kidsAppInfo= K.kids_app_info);this.Sw=DL(this.Sw,K.upg_content_filter_mode);this.unpluggedFilterModeType=BJ(this.unpluggedFilterModeType,K.unplugged_filter_mode_type);var hG=K.unplugged_location_info;hG&&(this.M5=hG);var jB=K.unplugged_partner_opt_out;jB&&(this.ib=dF("",jB));this.gN=DL(this.gN,K.disable_watch_next);this.b3=dF(this.b3,K.internal_ip_override);this.UK=!!K.is_yto_interstitial;this.interstitials.length&&this.XY.push("playableSequences");var mU=K.zJ;mU&&(this.zJ=mU);this.jV=dF(this.jV,K.csi_timer); K.watchUrl&&(this.watchUrl=K.watchUrl);var gz=K.watch_endpoint;this.L("html5_attach_watch_endpoint_ustreamer_config")&&gz&&LsL(this,gz);if(gz==null?0:gz.ustreamerConfig)this.aN=BC(gz.ustreamerConfig);var SB,Xu,nW=gz==null?void 0:(SB=gz.loggingContext)==null?void 0:(Xu=SB.qoeLoggingContext)==null?void 0:Xu.serializedContextData;nW&&(this.wO=nW);g.HB(this.Tm)&&this.Tm.jh&&(this.embedsRct=dF(this.embedsRct,K.rct),this.embedsRctn=dF(this.embedsRctn,K.rctn));K.embed_config&&(this.U0=K.embed_config);this.M9= this.M9||!!K.pause_at_start;K.default_active_source_video_id&&(this.defaultActiveSourceVideoId=K.default_active_source_video_id);this.fn=this.fn||!!K.fn}; g.H.V=function(){return this.Tm}; g.H.L=function(K){return this.Tm.L(K)}; g.H.gS=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.H.hasSupportedAudio51Tracks=function(){var K;return!((K=this.DO)==null||!K.gk)}; g.H.getUserAudio51Preference=function(){var K=1;T4(this.Tm)&&this.L("html5_ytv_surround_toggle_default_off")?K=0:KL(this.Tm)&&this.isLivePlayback&&this.nC()&&(K=0);var W;return(W=g.SZ("yt-player-audio51"))!=null?W:K}; g.H.qQ=function(){this.qs()||(this.j.X||this.j.unsubscribe("refresh",this.qQ,this),this.Dy(-1))}; g.H.Dy=function(K){if(!this.isLivePlayback||!this.U||this.U.flavor!=="fairplay"){var W=su2(this.j,this.n4);if(W.length>0){for(var U=g.z(W),h=U.next();!h.done;h=U.next())h=h.value,h.startSecs=Math.max(h.startSecs,this.Cr()),this.L("html5_cuepoint_identifier_logging")&&h.event==="start"&&this.rk("cuepoint",{pubCue:h.identifier,segNum:K});this.publish("cuepointupdated",W,K);this.n4+=W.length;if(tc(this)&&this.Tm.G9())for(W=g.z(W),U=W.next();!U.done;U=W.next())U=U.value,this.rk("cuepoint",{segNum:K,event:U.event, startSecs:U.startSecs,id:U.identifier.slice(-16)}),U.event==="start"&&(U=U.startSecs,this.jq.start=this.Qg,this.jq.end=U+3)}}}; g.H.x0=function(){this.qs()||(this.loading=!1,this.publish("dataloaded"))}; g.H.nC=function(){return this.RC!==void 0?this.RC:this.RC=!!this.zL||!!this.j&&Vc(this.j)}; g.H.KF=function(K){var W=this;if(this.qs())return pC();this.Ik=this.hK=this.N=null;DM(this,"html5_high_res_logging_always")&&(this.Tm.qb=!0);return z4Y(this,K).then(void 0,function(){return BIC(W,K)}).then(void 0,function(){return RW$(W)}).then(void 0,function(){return T1s(W)})}; g.H.Qa=function(K){this.N=K;IeY(this,this.N.getAvailableAudioTracks());if(this.N){K=g.z(this.N.videoInfos);for(var W=K.next();!W.done;W=K.next()){W=W.value;var U=W.containerType;U!==0&&(this.fK[U]=W.id)}}K=this.getAvailableAudioTracks();K=K.concat(this.ZX);for(W=0;W0?this.N.getAvailableAudioTracks():this.Ev||[]:[]}; g.H.getAudioTrack=function(){var K=this;if(this.W&&!VM(this.W)){var W=g.dG(this.getAvailableAudioTracks(),function(m){return m.id===K.W.id}),U; if(!W&&((U=this.W.ZO)==null?0:U.id)){var h=this.W.ZO.id;W=g.dG(this.getAvailableAudioTracks(),function(m){return m.ZO.id===h}); this.rk("nat",{id:this.W.id,track:!!W})}return W||this.ZX}if(this.Ev){if(!this.XX)for(W=g.z(this.Ev),U=W.next();!U.done;U=W.next())if(U=U.value,U.ZO.getIsDefault()){this.XX=U;break}return this.XX||this.ZX}return this.ZX}; g.H.getPlayerResponse=function(){return this.playerResponse}; g.H.getWatchNextResponse=function(){return this.Ns}; g.H.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.H.getHeartbeatResponse=function(){return this.dB}; g.H.cN=function(){return this.watchUrl?this.watchUrl:this.Tm.getVideoUrl(this.videoId)}; g.H.kU=function(){return!!this.j&&(bV_(this.j)||MJ_(this.j)||bM$(this.j))}; g.H.getEmbeddedPlayerResponse=function(){return this.wj}; g.H.WN=function(){return(this.eventLabel||this.Tm.Ns)==="shortspage"}; g.H.isAd=function(){return this.Qx||!!this.adFormat}; g.H.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.H.Sj=function(){var K,W,U;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((K=this.playerResponse)==null?0:(W=K.playerConfig)==null?0:(U=W.daiConfig)==null?0:U.ssaEnabledPlayback)}; g.H.BZ=function(){return this.L2}; g.H.VP=function(){return this.tE||this.bG}; g.H.Zx=function(){return DM(this,"html5_samsung_vp9_live")}; g.H.rk=function(K,W,U){this.publish("ctmp",K,W,U)}; g.H.Ra=function(K,W,U){this.publish("ctmpstr",K,W,U)}; g.H.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.H.getGetAdBreakContext=function(K,W){K=K===void 0?NaN:K;W=W===void 0?NaN:W;var U={isSabr:HT(this)},h,m=(h=this.getHeartbeatResponse())==null?void 0:h.adBreakHeartbeatParams;m&&(U.adBreakHeartbeatParams=m);if(this.L("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.j&&!isNaN(K)&&!isNaN(W)){W=K-W;for(var S in this.j.j)if(h=this.j.j[S],h.info.ZE()||h.info.yR())if(h=h.index,h.isLoaded()){S=h.IQ(W);h=h.hv(S)+W-h.getStartTime(S);this.rk("gabc",{t:K.toFixed(3),mt:W.toFixed(3),sg:S,igt:h.toFixed(3)}); U.livePlaybackPosition={utcTimeMillis:""+(h*1E3).toFixed(0)};break}}return U}; g.H.isEmbedsShortsMode=function(K,W){if(!g.HB(this.Tm)||(this.Tm.hK||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||W)return!1;if(this.L("embeds_enable_shorts")){var U,h;return!!((U=this.embeddedPlayerConfig)==null?0:(h=U.embeddedPlayerFlags)==null?0:h.isShortsExperienceEligible)}var m,S;return!!(((m=this.embeddedPlayerConfig)==null?0:(S=m.embeddedPlayerFlags)==null?0:S.isShortsExperienceEligible)&&K.width<=K.height)}; g.H.uV=function(K,W){W?this.HT||(this.HT=K):this.nV||(this.nV=K)}; g.H.QH=function(){g.GP.prototype.QH.call(this);this.SD=null;delete this.cq;delete this.accountLinkingConfig;delete this.j;this.N=this.dB=this.playerResponse=this.Ns=null;this.qI=this.adaptiveFormats="";delete this.botguardData;this.eV=this.suggestions=this.KK=null;this.sabrContextUpdates.clear()}; var NGW=!0;var tjp={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},INp={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},SU2={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},hQs={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"},mF$={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},jUp={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"},fNC={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.V(me,g.p);g.H=me.prototype;g.H.handleExternalCall=function(K,W,U){var h=this.state.Y[K],m=this.state.J[K],S=h;if(m)if(U&&AD(U,lHN))S=m;else if(!h)throw Error('API call from an untrusted origin: "'+U+'"');this.logApiCall(K,U);if(S){U=!1;h=g.z(W);for(m=h.next();!m.done;m=h.next())if(String(m.value).includes("javascript:")){U=!0;break}U&&g.eI(Error('Dangerous call to "'+K+'" with ['+W+"]."));return S.apply(this,W)}throw Error('Unknown API method: "'+K+'".');}; g.H.logApiCall=function(K,W,U){var h=this.app.V();h.x_&&!this.state.jV.has(K)&&(this.state.jV.add(K),g.N_("webPlayerApiCalled",{callerUrl:h.loaderUrl,methodName:K,origin:W||void 0,playerStyle:h.playerStyle||void 0,embeddedPlayerMode:h.hK,errorCode:U}))}; g.H.publish=function(K){var W=g.Xl.apply(1,arguments);this.state.N.publish.apply(this.state.N,[K].concat(g.z4(W)));if(K==="videodatachange"||K==="resize"||K==="cardstatechange")this.state.X.publish.apply(this.state.X,[K].concat(g.z4(W))),this.state.W.publish.apply(this.state.W,[K].concat(g.z4(W)))}; g.H.Fx=function(K){var W=g.Xl.apply(1,arguments);this.state.N.publish.apply(this.state.N,[K].concat(g.z4(W)));this.state.X.publish.apply(this.state.X,[K].concat(g.z4(W)))}; g.H.Ov=function(K){var W=g.Xl.apply(1,arguments);this.state.N.publish.apply(this.state.N,[K].concat(g.z4(W)));this.state.X.publish.apply(this.state.X,[K].concat(g.z4(W)));this.state.W.publish.apply(this.state.W,[K].concat(g.z4(W)))}; g.H.Bd=function(K){var W=g.Xl.apply(1,arguments);this.state.N.publish.apply(this.state.N,[K].concat(g.z4(W)));this.state.X.publish.apply(this.state.X,[K].concat(g.z4(W)));this.state.W.publish.apply(this.state.W,[K].concat(g.z4(W)));this.state.U.publish.apply(this.state.U,[K].concat(g.z4(W)))}; g.H.L=function(K){return this.app.V().L(K)}; g.H.QH=function(){if(this.state.element){var K=this.state.element,W;for(W in this.state.j)this.state.j.hasOwnProperty(W)&&(K[W]=null);this.state.element=null}g.p.prototype.QH.call(this)};g.V(ES,g.fj);ES.prototype.publish=function(K){var W=g.Xl.apply(1,arguments);if(this.U.has(K))return this.U.get(K).push(W),!0;var U=!1;try{for(W=[W],this.U.set(K,W);W.length;)U=g.fj.prototype.publish.call.apply(g.fj.prototype.publish,[this,K].concat(g.z4(W.shift())))}finally{this.U.delete(K)}return U};g.V(BL,g.p);BL.prototype.QH=function(){this.U.dispose();this.W.dispose();this.X.dispose();this.N.dispose();this.jV=this.j=this.J=this.Y=this.G=void 0};var ioD=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.V(G4,me);g.H=G4.prototype;g.H.getApiInterface=function(){return Array.from(this.state.G)}; g.H.RM=function(K,W){this.state.U.subscribe(K,W)}; g.H.Nir=function(K,W){this.state.U.unsubscribe(K,W)}; g.H.getPlayerState=function(K){return KF$(this.app,K)}; g.H.lW=function(){return KF$(this.app)}; g.H.ZNV=function(K,W,U){cAp(this)&&(Pf(this.app,!0,1),Bv(this.app,K,W,U,1))}; g.H.getCurrentTime=function(K,W,U){var h=this.getPlayerState(K);if(this.app.getAppState()===2&&h===5){var m;return((m=this.app.getVideoData())==null?void 0:m.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&h===0?et(this.app,K):K?this.app.getCurrentTime(K,W,U):this.app.getCurrentTime(K)}; g.H.Ve=function(){return this.app.getCurrentTime(1)}; g.H.RF=function(){var K=this.app.hv(1);return isNaN(K)?this.getCurrentTime(1):K}; g.H.Kt=function(){return this.app.getDuration(1)}; g.H.W$=function(K,W){K=g.Jk(Math.floor(K),0,100);isFinite(K)&&Fw(this.app,{volume:K,muted:this.isMuted()},W)}; g.H.fwH=function(K){this.W$(K,!1)}; g.H.nh=function(K){Fw(this.app,{muted:!0,volume:this.getVolume()},K)}; g.H.M_5=function(){this.nh(!1)}; g.H.B$=function(K){Fw(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},K)}; g.H.whV=function(){FC(this.app)||this.B$(!1)}; g.H.getPlayerMode=function(){var K={};this.app.getVideoData().Mk&&(K.pfp={enableIma:this.app.yX().allowImaMonetization,autoplay:QU(this.app.yX()),mutedAutoplay:this.app.yX().mutedAutoplay});return K}; g.H.qq=function(){var K=this.app.getPresentingPlayerType();if(K===2&&!this.app.Wo()){var W=Mr(this.app.h7());if(!(iqR(W)||g.HB(this.app.V())&&g.C(this.app.E5().getPlayerState(),1024))||eJL(W))return}(W=this.app.FK().zz)?W.playVideo():this.app.playVideo(K)}; g.H.STk=function(){Pf(this.app,!0,1);this.qq()}; g.H.pauseVideo=function(K){var W=this.app.getPresentingPlayerType();if(W!==2||this.app.Wo()||iqR(Mr(this.app.h7()))){var U=this.app.FK().zz;U?U.pauseVideo():this.app.pauseVideo(W,K)}}; g.H.Nje=function(){var K=this.app,W=!1;K.C.q5&&(K.Yx.publish("pageTransition"),W=!0);K.stopVideo(W)}; g.H.clearVideo=function(){}; g.H.getAvailablePlaybackRates=function(){var K=this.app.V();if(K.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(K.W?K.ancestorOrigins[0]:window.location.origin)||K.lQ)return g4b;var W=this.app.getVideoData();if(gPs(W)){var U=W.Mg,h=W.Cd;return knt.filter(function(m){return m>=U&&m<=h})}return K.supportsVarispeedExtendedFeatures?Fjb:K.L("web_remix_allow_up_to_3x_playback_rate")&&g.l1(K)?uNn:kz}return[1]}; g.H.getPlaybackQuality=function(K){return(K=this.app.t9(K))?K.getPlaybackQuality():"unknown"}; g.H.Ksm=function(){}; g.H.getAvailableQualityLevels=function(K){return(K=this.app.t9(K))?(K=g.CB(K.DF(),function(W){return W.quality}),K.length&&(K[0]==="auto"&&K.shift(),K=K.concat(["auto"])),K):[]}; g.H.SU=function(){return this.getAvailableQualityLevels(1)}; g.H.MVx=function(){return this.i8()}; g.H.ppr=function(){return 1}; g.H.getVideoLoadedFraction=function(K){return this.app.getVideoLoadedFraction(K)}; g.H.i8=function(){return this.getVideoLoadedFraction()}; g.H.bek=function(){return 0}; g.H.getSize=function(){var K=this.app.xx().getPlayerSize();return{width:K.width,height:K.height}}; g.H.setSize=function(){this.app.xx().resize()}; g.H.loadVideoById=function(K,W,U,h){if(!K)return!1;K=yP(K,W,U);return this.app.loadVideoByPlayerVars(K,h)}; g.H.t0r=function(K,W,U){K=this.loadVideoById(K,W,U,1);Pf(this.app,K,1)}; g.H.cueVideoById=function(K,W,U,h){K=yP(K,W,U);this.app.cueVideoByPlayerVars(K,h)}; g.H.YB=function(K,W,U){this.cueVideoById(K,W,U,1)}; g.H.loadVideoByUrl=function(K,W,U,h){K=gns(K,W,U);return this.app.loadVideoByPlayerVars(K,h)}; g.H.Yzs=function(K,W,U){K=this.loadVideoByUrl(K,W,U,1);Pf(this.app,K,1)}; g.H.cueVideoByUrl=function(K,W,U,h){K=gns(K,W,U);this.app.cueVideoByPlayerVars(K,h)}; g.H.Al=function(K,W,U){this.cueVideoByUrl(K,W,U,1)}; g.H.Xpx=function(){var K=this.app.V();if(K.uX)return"";var W=this.app.yX(),U=void 0;W.isLivePlayback||(U=Math.floor(this.app.getCurrentTime(1)));return K.getVideoUrl(W.videoId,this.getPlaylistId()||void 0,U)}; g.H.Eu=function(){return this.app.getDebugText()}; g.H.getVideoEmbedCode=function(){var K=this.app.V();if(K.uX)return"";var W=this.app.yX();return K.getVideoEmbedCode(W.isPrivate?"":W.title,this.app.yX().videoId,this.app.xx().getPlayerSize(),this.getPlaylistId()||void 0)}; g.H.FC=function(K,W,U){return V8(this.app,K,W,U)}; g.H.removeCueRange=function(K){return this.app.sW(K)}; g.H.loadPlaylist=function(K,W,U,h){this.app.loadPlaylist(K,W,U,h)}; g.H.qzx=function(K,W,U,h){this.loadPlaylist(K,W,U,h);Pf(this.app,!0,1)}; g.H.cuePlaylist=function(K,W,U,h){this.app.cuePlaylist(K,W,U,h)}; g.H.nextVideo=function(K,W){this.app.nextVideo(K,W)}; g.H.pls=function(){this.nextVideo();Pf(this.app,!0,1)}; g.H.previousVideo=function(K){this.app.previousVideo(K)}; g.H.P5X=function(){this.previousVideo();Pf(this.app,!0,1)}; g.H.playVideoAt=function(K){this.app.playVideoAt(K)}; g.H.vvK=function(K){this.playVideoAt(K);Pf(this.app,!0,1)}; g.H.setShuffle=function(K){var W=this.app.getPlaylist();W&&W.setShuffle(K)}; g.H.setLoop=function(K){var W=this.app.getPlaylist();W&&(W.loop=K)}; g.H.gp=function(){var K=this.app.getPlaylist();if(!K)return null;for(var W=[],U=0;U=400)if(K=this.yX(),this.D.V().L("client_respect_autoplay_switch_button_renderer"))K=!!K.autoplaySwitchButtonRenderer;else{var W,U,h,m;K=!!((W=K.getWatchNextResponse())==null?0:(U=W.contents)==null?0:(h=U.twoColumnWatchNextResults)==null?0:(m=h.autoplay)==null?0:m.autoplay)!==!1}K?this.j||(this.j=!0,this.J7(this.j),W=this.yX(),this.yz(W.autonavState),this.D.logVisibility(this.element,this.j)): (this.j=!1,this.J7(this.j))}; g.H.yz=function(K){d_D(this)?this.isChecked=K!==1:((K=K!==1)||(K=g.Uv(),K=g.hc("web_autonav_allow_off_by_default")&&!K.v3(141)&&g.TA("AUTONAV_OFF_BY_DEFAULT")?!1:!K.v3(140)),this.isChecked=K);AAp(this)}; g.H.onClick=function(){this.isChecked=!this.isChecked;this.D.Fz(this.isChecked?2:1);AAp(this);if(d_D(this)){var K=this.yX().autoplaySwitchButtonRenderer;this.isChecked&&(K==null?0:K.onEnabledCommand)?this.D.Fx("innertubeCommand",K.onEnabledCommand):!this.isChecked&&(K==null?0:K.onDisabledCommand)&&this.D.Fx("innertubeCommand",K.onDisabledCommand)}this.D.logClick(this.element)}; g.H.getValue=function(){return this.isChecked}; g.H.yX=function(){return this.D.getVideoData(1)};g.V(yI$,jf);g.V(Sn,OI);Sn.prototype.SV=function(K){K?this.j||(this.pg.j_(this),this.j=!0):this.j&&(this.pg.z7(this),this.j=!1);this.j&&Sw(this,Ndp())}; Sn.prototype.W=function(){g.WR(this.element,"ytp-menuitem-highlight-transition-enabled")}; Sn.prototype.N=function(K){var W=Ndp();K!==W&&(W=g.Uv(),E3(190,K),E3(192,!0),W.save(),this.D.Fx("cinematicSettingsToggleChange",K))}; Sn.prototype.QH=function(){this.j&&this.pg.z7(this);OI.prototype.QH.call(this)};g.V(je,jf);je.prototype.updateCinematicSettings=function(K){this.j=K;var W;(W=this.menuItem)==null||W.SV(K);this.api.publish("onCinematicSettingsVisibilityChange",K)};g.V(bZY,jf);g.V(Tx,jf);Tx.prototype.setCreatorEndscreenVisibility=function(K){var W;(W=hE(this.api.h7()))==null||W.J7(K)}; Tx.prototype.j=function(K){function W(h){h==="creatorendscreen"&&(h=hE(U.api.h7()))&&h.sQU(U.hideButton)} var U=this;this.hideButton=K;this.events.S(this.api,"modulecreated",W);W("creatorendscreen")};g.V(qWp,jf);g.V(nc,OI);nc.prototype.U=function(K){this.W(K?1:0)}; nc.prototype.Kc=function(){if(this.enableNewAudioSettingsMenu||this.N){var K=this.D.getPresentingPlayerType();K===2||K===3?this.j&&(this.j=!1,this.pg.z7(this)):(K=this.getDrcState(),K!==1?(K===0?(Sw(this,this.X()===1),this.setEnabled(!0)):(Sw(this,!1),this.setEnabled(!1)),this.j||(this.pg.j_(this),this.j=!0)):this.j&&(this.pg.z7(this),this.j=!1))}else{K=this.hasDrcAudioTrack();var W=this.X()===1&&K;Sw(this,W);this.setEnabled(K)}}; nc.prototype.QH=function(){this.pg.z7(this);OI.prototype.QH.call(this)}; nc.prototype.G=function(){this.D.logClick(this.element)};g.V(ee,jf);g.H=ee.prototype;g.H.getDrcUserPreference=function(){return this.j}; g.H.setDrcUserPreference=function(K){this.api.rk("drc_set",{pref:K});g.SI("yt-player-drc-pref",K,31536E3);K!==this.j&&(this.j=K,this.updateEnvironmentData(),this.uO()&&this.api.yV(),this.api.s4())}; g.H.updateEnvironmentData=function(){this.api.V().rS=this.j===1}; g.H.uO=function(){var K,W,U=(K=this.api.getVideoData())==null?void 0:(W=K.N)==null?void 0:W.j;if(!U)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.L("mta_drc_mutual_exclusion_removal")){var h,m,S=(h=this.api.v9())==null?void 0:(m=h.ZO)==null?void 0:m.id;return Ns(U,function(f){var G;return f.audio.j&&((G=f.ZO)==null?void 0:G.id)===S})}return Ns(U,function(f){var G; return((G=f.audio)==null?void 0:G.j)===!0})}; g.H.getDrcState=function(){return this.api.dQ(3)};g.V(Ki,jf);Ki.prototype.onVideoDataChange=function(){var K=this,W=this.api.getVideoData();this.api.L5("embargo",1);var U=W==null?void 0:W.M3.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(U==null?0:U.length)?aeL(this,U.filter(function(h){return O2R(K,h)})):(W==null?0:W.cueRanges)&&aeL(this,W.cueRanges.filter(function(h){return O2R(K,h)}))}; Ki.prototype.X=function(K){return K.embargo!==void 0}; Ki.prototype.QH=function(){jf.prototype.QH.call(this);this.j={}};g.V(fi,jf); fi.prototype.addEmbedsConversionTrackingParams=function(K){var W=this.api.V(),U=W.widgetReferrer,h=W.M9,m=this.j,S="",f=W.getWebPlayerContextConfig();f&&(S=f.embedsIframeOriginParam||"");U.length>0&&(K.embeds_widget_referrer=U);h.length>0&&(K.embeds_referring_euri=h);W.W&&S.length>0&&(K.embeds_referring_origin=S);f&&f.embedsFeature&&(K.feature=f.embedsFeature);m.length>0&&(W.L("embeds_web_enable_lite_experiment_control_arm_logging")?m.unshift(28572):g.bX(g.mC(W))&&m.unshift(159628),W=m.join(","),W= g.Km()?W:g.ll(W,4),K.source_ve_path=W);this.j.length=0};g.V(ROz,jf);g.V(AID,jf);g.V(RuR,g.p);RuR.prototype.QH=function(){g.p.prototype.QH.call(this);this.j=null;this.X&&this.X.disconnect()};g.V(ZZ$,jf);g.V(cM,jf);cM.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.V(k_,g.y);k_.prototype.show=function(){g.y.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; k_.prototype.stopTimer=function(){this.j&&(this.j.dispose(),this.j=null)}; k_.prototype.onVideoDataChange=function(K){var W,U,h=(W=this.api.getVideoData())==null?void 0:(U=W.getPlayerResponse())==null?void 0:U.playabilityStatus;h&&(W=ExF(h),g.C(this.api.getPlayerStateObject(),128)||K==="dataloaderror"||!W?(this.X=0,this.stopTimer(),this.hide()):(K=(W.remainingTimeSecs||0)*1E3,K>0&&(this.show(),this.updateValue("label",RE(W.label)),SlD(this,K))))}; k_.prototype.QH=function(){this.stopTimer();g.y.prototype.QH.call(this)};g.V(NtD,jf);g.V(oa,g.y);oa.prototype.onClick=function(){this.Yx.logClick(this.element);this.Yx.Fx("onFullerscreenEduClicked")}; oa.prototype.SV=function(){this.Yx.isFullscreen()?this.j?this.fade.hide():this.fade.show():this.hide();this.Yx.logVisibility(this.element,this.Yx.isFullscreen()&&!this.j)};g.V(mm,jf);mm.prototype.updateFullerscreenEduButtonSubtleModeState=function(K){var W;(W=this.j)!=null&&(g.JM(W.element,"ytp-fullerscreen-edu-button-subtle",K),K&&!W.X&&(W.Yx.L("player_tooltip_data_title_killswitch")?W.element.setAttribute("title","Scroll for details"):W.element.setAttribute("data-tooltip-title","Scroll for details"),Yb(W.Yx,W.element,W),W.X=!0))}; mm.prototype.updateFullerscreenEduButtonVisibility=function(K){var W;(W=this.j)!=null&&(W.j=K,W.SV())};g.V(fDY,g.y);g.V(zOY,jf);g.V(Uw,jf);Uw.prototype.getSphericalProperties=function(){var K=g.VP(this.api.h7());return K?K.getSphericalProperties():{}}; Uw.prototype.setSphericalProperties=function(K){if(K){var W=g.VP(this.api.h7());W&&W.setSphericalProperties(K,!0)}};g.V(xU,jf);g.H=xU.prototype;g.H.createClientVe=function(K,W,U,h){this.api.createClientVe(K,W,U,h===void 0?!1:h)}; g.H.createServerVe=function(K,W,U){this.api.createServerVe(K,W,U===void 0?!1:U)}; g.H.setTrackingParams=function(K,W){this.api.setTrackingParams(K,W)}; g.H.logClick=function(K,W){this.api.logClick(K,W)}; g.H.logVisibility=function(K,W,U){this.api.logVisibility(K,W,U)}; g.H.hasVe=function(K){return this.api.hasVe(K)}; g.H.destroyVe=function(K){this.api.destroyVe(K)};var eY={},zWz=(eY[0]=function(K){return Pmp(K,function(W){var U;return(U=W.ZO)==null?void 0:U.id})},eY[2]=function(K){return $5(K,hd)},eY[3]=function(K){return $5(K,WK)},eY[4]=function(K){return $5(K,aSD)},eY[1]=function(K){return $5(K,WZD)},eY); AL.prototype.dQ=function(K){return this.N[K]}; AL.prototype.s4=function(){for(var K=this.X,W={},U=g.z(N2),h=U.next();!h.done;h=U.next())if(h=h.value,this.j[h]){K=AWN[h].DB(K,this.videoData);for(var m=g.z(N2),S=m.next();!S.done;S=m.next())S=S.value,W[S]!==void 0||Ns(K,AWN[S].dl)||(W[S]=AWN[h].Tb);W[h]===void 0&&(W[h]=0)}else W[h]=1;this.N=W}; var N2=[0,1,2,3,4],Ex={},AWN=(Ex[0]={Tb:2,dl:MPY,DB:bFC},Ex[2]={Tb:4,dl:hd,DB:UAL},Ex[3]={Tb:5,dl:WK,DB:qrY},Ex[1]={Tb:3,dl:WZD,DB:Uzs},Ex[4]={Tb:6,dl:aSD,DB:w6R},Ex);var YqC=!1;hw.prototype.setPlaybackRate=function(K){this.playbackRate=Math.max(1,K)}; hw.prototype.getPlaybackRate=function(){return this.playbackRate};sV.prototype.sK=function(K){var W=g.cT(K.info.Wp.info,this.Gm.mK),U=K.info.kx+this.W,h=K.info.startTime*1E3;if(this.policy.Pp)try{h=this.policy.Pp?g.tf(K)*1E3:K.info.startTime*1E3}catch(f){Math.random()>.99&&this.logger&&(h=Im(K.X).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:K.info.m6(),encodedDataView:g.o0(h,4)})),h=K.info.startTime*1E3}var m=K.info.clipId,S=this.policy.Pp?g.BNe(K)*1E3:K.info.duration*1E3;this.policy.Pp&&(h<0||S<0)&&(this.logger&&(this.logger({missingSegInfo:K.info.m6(), startTimeMs:h,durationMs:S}),this.policy.MU||(h<0&&(h=K.info.startTime*1E3),S<0&&(S=K.info.duration*1E3))),this.policy.MU&&(h<0&&(h=K.info.startTime*1E3),S<0&&(S=K.info.duration*1E3)));return{formatId:W,kx:U,startTimeMs:h,clipId:m,PP:S}}; sV.prototype.gQ=function(K){this.timestampOffset=K};lK.prototype.seek=function(K,W){K!==this.targetTime&&(this.seekCount=0);this.targetTime=K;var U=this.videoTrack.j,h=this.audioTrack.j,m=this.audioTrack.B3,S=xy2(this,this.videoTrack,K,this.videoTrack.B3,W);W=xy2(this,this.audioTrack,this.policy.W3?K:S,m,W);K=Math.max(K,S,W);this.W=!0;this.Gm.isManifestless&&(MIs(this,this.videoTrack,U),MIs(this,this.audioTrack,h));return K}; lK.prototype.isSeeking=function(){return this.W}; lK.prototype.Zk=function(K){this.X=K}; var qEs=2/24;var NXL=0;g.H=AX.prototype;g.H.A8=function(){this.jV=this.now();A4s(this.dH,this.jV);this.N5.A8()}; g.H.rN=function(K,W){var U=this.policy.X?(0,g.AI)():0;DI(this,K,W);K-this.G<10&&this.X>0||this.Rb(K,W);this.N5.rN(K,W);this.policy.X&&(K=(0,g.AI)()-U,this.W3+=K,this.gk=Math.max(K,this.gk))}; g.H.Rb=function(K,W){var U=(K-this.G)/1E3,h=W-this.N;this.Jn||(k5s(this.dH,U,h),this.o8(U,h));this.G=K;this.N=W}; g.H.P0=function(){this.DA&&$Os(this);this.N5.P0()}; g.H.Mr=function(K){this.DA||(this.DA=this.U-this.Cg+K,this.XI=this.U,this.oW=this.Y)}; g.H.ES=function(K,W){K=K===void 0?this.Y:K;W=W===void 0?this.U:W;this.X>0||(this.J=K,this.X=W,this.Ms=this.isActive=!0)}; g.H.ra=function(){return this.q9||2}; g.H.SR=function(){}; g.H.lA=function(){var K,W={rn:this.requestNumber,rt:(this.Y-this.j).toFixed(),lb:this.U,stall:(1E3*this.W).toFixed(),ht:(this.jV-this.j).toFixed(),elt:(this.J-this.j).toFixed(),elb:this.X,d:(K=this.hK)==null?void 0:K.ri()};this.url&&r8R(W,this.url);this.policy.X&&(W.mph=this.gk.toFixed(),W.tph=this.W3.toFixed());W.ulb=this.eV;W.ult=this.uX;return W}; g.H.now=function(){return(0,g.AI)()}; g.H.deactivate=function(){this.isActive&&(this.isActive=!1)};g.V(Qc,AX);g.H=Qc.prototype;g.H.lA=function(){var K=AX.prototype.lA.call(this);K.pb=this.eE;K.pt=(1E3*this.q5).toFixed();K.se=this.Ez;return K}; g.H.s0=function(){var K=this.N5;this.JK||(this.JK=K.s0?K.s0():1);return this.JK}; g.H.SK=function(){return this.Za?this.s0()!==1:!1}; g.H.HX=function(K,W,U){if(!this.DO){this.DO=!0;if(!this.Jn){DI(this,K,W);this.Rb(K,W);var h=this.s0();this.Ez=U;if(!this.Jn)if(h===2){h=K-this.J0)||U7(this,h,W),this.X>0&&a3(this.dH,W,this.W));K=(K-this.j)/ 1E3||.01;this.policy.J&&!(this.X>0)||wO(this.dH,K,this.N,HKF(this),this.TR)}this.deactivate()}}; g.H.Yh=function(K,W,U){U&&(this.JK=2);K<0&&this.q9&&(K=this.q9);W?this.Bp+=K:this.vp+=K}; g.H.ra=function(){return this.vp||this.Bp||AX.prototype.ra.call(this)}; g.H.Rb=function(K,W){var U=(K-this.G)/1E3,h=W-this.N,m=this.s0();this.isActive?m===1&&((h>0||this.policy.U)&&(U>.2||h<1024)?(this.W+=U,h>0&&U>.2&&U7(this,this.YF?U:.05,h),this.M5=!0):h>0&&(U7(this,U,h),this.M5=!0)):W&&W>=this.policy.j&&this.ES(K,W);AX.prototype.Rb.call(this,K,W)}; g.H.GE=function(K){if(!this.Jn){DI(this,K,this.U);var W=(K-this.j)/1E3;this.s0()!==2&&this.X>0&&(this.W+=(K-this.G)/1E3,a3(this.dH,this.N,this.W));wO(this.dH,W,this.N,HKF(this),this.TR,!0);K=(K-this.G)/1E3;k5s(this.dH,K,0);this.o8(K,0)}}; g.H.ES=function(K,W){K=K===void 0?this.Y:K;W=W===void 0?this.U:W;if(!(this.X>0)&&(AX.prototype.ES.call(this,K,W),this.s0()===1)){W=(this.jV-this.j)/1E3;var U=(K-this.jV)/1E3;this.Za&&yn(this,this.now());this.Qg||this.Jn||(this.q9&&(U=Math.max(0,U-this.q9)),K=this.dH,K.J.gj(1,W),K.hK.gj(1,U))}}; g.H.oV=function(){this.Za&&yn(this,this.now());return this.tK}; g.H.PW=function(){var K;if(K=this.N>this.UA)K=(K=this.N)?K>=this.policy.j:!1;return K}; g.H.mX=function(){return this.Pp}; g.H.xC=function(K){K=K===void 0?this.now():K;if(this.Za){yn(this,K);if(this.JK?this.SK():this.Ns!==this.Le){var W=this.Le;if(K0?U+K:U+Math.max(K,W)}; g.H.l9=function(){return this.now()-this.J}; g.H.q1=function(){return(this.N-this.X)*1E3/this.l9()||0}; g.H.cI=function(){return this.J};OD.prototype.feed=function(K){HY(this.j,K);this.TL()}; OD.prototype.TL=function(){if(this.W){if(!this.j.totalLength)return;var K=this.j.split(this.N-this.X),W=K.Gw;K=K.Kv;if(!this.N5.Mr(this.W,W,this.X,this.N))return;this.X+=W.totalLength;this.j=K;this.X===this.N&&(this.W=this.N=this.X=void 0)}for(;;){var U=0;K=g.z(V0p(this.j,U));W=K.next().value;U=K.next().value;U=g.z(V0p(this.j,U));K=U.next().value;U=U.next().value;if(W<0||K<0)break;if(!(U+K<=this.j.totalLength)){if(!(this.N5.Mr&&U+1<=this.j.totalLength))break;U=this.j.split(U).Kv;this.N5.Mr(W,U,0, K)&&(this.W=W,this.X=U.totalLength,this.N=K,this.j=new WQ([]));break}K=this.j.split(U).Kv.split(K);U=K.Kv;this.N5.iR(W,K.Gw);this.j=U}}; OD.prototype.dispose=function(){this.j=new WQ};g.H=JQ.prototype;g.H.uo=function(){return 0}; g.H.Aq=function(){return null}; g.H.AU=function(){return null}; g.H.rr=function(){return this.state>=1}; g.H.isComplete=function(){return this.state>=3}; g.H.q4=function(){return this.state===5}; g.H.onStateChange=function(){}; g.H.Bl=function(K){var W=this.state;this.state=K;this.onStateChange(W);this.callback&&this.callback(this,W)}; g.H.oK=function(K){K&&this.state=this.xhr.HEADERS_RECEIVED}; g.H.getResponseHeader=function(K){try{return this.xhr.getResponseHeader(K)}catch(W){return""}}; g.H.GH=function(){return+this.getResponseHeader("content-length")}; g.H.OX=function(){return this.X}; g.H.PD=function(){return this.status>=200&&this.status<300&&!!this.X}; g.H.Yn=function(){return this.j.totalLength>0}; g.H.y4=function(){var K=this.j;this.j=new WQ;return K}; g.H.yw=function(){return this.j}; g.H.abort=function(){this.qs=!0;this.xhr.abort()}; g.H.Wr=function(){return!0}; g.H.Yc=function(){return this.N}; g.H.Xh=function(){return""};g.H=RcF.prototype; g.H.run=function(){var K=this,W,U,h,m,S,f,G,I,d,J,e,E,B,D,a;return g.r(function(Q){if(Q.j==1){K.status=200;W=K.j.get("docid");U=ZU(K.j.get("fmtid")||"");h=K.j.get("lmt")||"0";m=+(K.j.get("csz")||0);if(!W||!U||!m)throw Error("Invalid local URL");K.j.get("ck")&&K.j.get("civ")&&(S=new rsY(K.j.get("ck"),K.j.get("civ")));f=K.range;G=Math.floor(f.start/m);I=Math.floor(f.end/m);d=G}if(Q.j!=5)return d<=I?g.T(Q,mfp(W,U,h,d,S),5):Q.O5(0);J=Q.X;if(J===void 0)throw Error("invariant: data is undefined");e=d*m; E=(d+1)*m;B=Math.max(0,f.start-e);D=Math.min(f.end+1,E)-(B+e);a=new Uint8Array(J.buffer,B,D);K.X.append(a);K.loaded+=D;K.loaded=200&&this.status<300&&!!this.X}; g.H.Yn=function(){return!!this.j.totalLength}; g.H.y4=function(){var K=this.j;this.j=new WQ;return K}; g.H.yw=function(){return this.j}; g.H.qs=function(){return this.aborted}; g.H.abort=function(){this.N&&this.N.cancel().catch(function(){}); this.W&&this.W.abort();this.aborted=!0}; g.H.Wr=function(){return!0}; g.H.Yc=function(){return this.U}; g.H.Xh=function(){return this.errorMessage};g.H=Q_z.prototype;g.H.onDone=function(){if(!this.qs){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(K){}this.j=!0;this.N5.P0()}}; g.H.lw=function(){this.xhr.readyState===2&&this.N5.A8()}; g.H.onProgress=function(K){this.qs||(this.status=this.xhr.status,this.j||(this.X=K.loaded),this.N5.rN((0,g.AI)(),K.loaded))}; g.H.RA=function(){return this.xhr.readyState>=2}; g.H.getResponseHeader=function(K){try{return this.xhr.getResponseHeader(K)}catch(W){return g.eI(Error("Could not read XHR header "+K)),""}}; g.H.GH=function(){return+this.getResponseHeader("content-length")}; g.H.OX=function(){return this.X}; g.H.PD=function(){return this.status>=200&&this.status<300&&this.j&&!!this.X}; g.H.Yn=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.H.y4=function(){var K=this.response;this.response=void 0;return new WQ([new Uint8Array(K)])}; g.H.yw=function(){return new WQ([new Uint8Array(this.response)])}; g.H.abort=function(){this.qs=!0;this.xhr.abort()}; g.H.Wr=function(){return!1}; g.H.Yc=function(){return!1}; g.H.Xh=function(){return""};g.V(fS,g.p);fS.prototype.sC=function(){if(!this.s_.length)return[];var K=this.s_;this.s_=[];this.N=g.Z$(K).info;return K}; fS.prototype.AL=function(){return this.s_}; fS.prototype.QH=function(){g.p.prototype.QH.call(this);this.j=null;this.s_.length=0;this.Ce.length=0;this.N=null};g.V($p,g.p);g.H=$p.prototype; g.H.awr=function(){if(!this.qs()){var K=(0,g.AI)(),W=!1;if(this.policy.ul){var U=this.timing.X>0?this.timing.J:this.timing.j;this.policy.U$V&&this.N&&(U=this.N);K=K-U-(this.policy.q_?this.policy.x_:this.timing.ra()*1E3);U=uCp(Bt(this),!1);K>=2E3*U?W=!0:K>=this.policy.Je*U&&(this.j=this.policy.g4)}else if(this.timing.X>0){if(this.G){this.policy.AS&&(this.j=0);return}K=this.timing.mX();this.timing.xC();this.timing.mX()-K>=this.policy.pC*.8?(this.j++,W=this.j>=5):this.j=0}else W=K-this.timing.oV(),this.policy.g4&& W>0&&(this.j+=1),K=uCp(Bt(this),!1)*this.policy.aH,W=W>K*1E3;this.j>0&&this.N5.iO();W?this.D7():this.X.start()}}; g.H.D7=function(){this.U=!0;this.N5.xs();this.lastError="net.timeout";H7(this)}; g.H.canRetry=function(K){var W=Bt(this);K=K?this.policy.t1:this.policy.KK;return W.timedOut0&&(W=pM(W.j,0),K.ubyte=W,U===1&&W===0&&(K.b248180278=!0))}this.Bo&&(K.rc=this.policy.gZ?this.Bo:this.Bo.toString());this.policy.Pl&&this.c_&&(K.tr=this.c_);K.itag=this.info.Ce[0].Wp.info.itag;K.ml=""+ +this.info.Ce[0].Wp.LC();K.sq=""+this.info.Ce[0].kx;this.GL&&(K.ifi=""+ +HF(3,this.info.T9.X));this.Bo!==410&&this.Bo!==500&&this.Bo!==503||(K.fmt_unav="true");var h;(U=this.errorMessage||((h=this.xhr)==null? void 0:h.Xh()))&&(K.msg=U);this.x4&&(K.smb="1");this.info.isDecorated()&&(K.sdai="1");return K}; g.H.tU=function(){return q_C(this.timing)}; g.H.Xh=function(){return this.xhr.Xh()||""}; g.H.PW=function(){return this.isComplete()||this.timing.PW()}; g.H.rN=function(){!this.qs()&&this.xhr&&(this.Bo=this.xhr.status,this.policy.AE&&this.hO&&this.UX(!1),this.ZU()?this.oK(2):!this.zB&&this.PW()&&(this.oK(),this.zB=!0))}; g.H.A8=function(){if(!this.qs()&&this.xhr){if(!this.OD&&this.xhr.RA()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var K=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.OD=((0,g.AI)()-K)/1E3}this.xhr.RA()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.x5k&&!m8R()&&g.SI("yt-player-headers-readable",!0,2592E3);K=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var W=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),U;(U=this.kh)==null||U.stop();this.xD=K||this.xD; this.DU=W||this.DU}}; g.H.P0=function(){var K=this.xhr;if(!this.qs()&&K){this.Bo=K.status;K=this.rO(K);if(this.policy.Pl){var W;(W=this.kh)==null||W.stop()}K===5?H7(this.zK):this.Bl(K);this.zK.X.stop()}}; g.H.rO=function(K){dQs(this);if(ar(this.zK,this.xhr.status,this.mF?this.timing.Ms||this.Au:this.xhr.PD(),!1,this.lm))return 5;var W="";bp(this.zK,this.xhr)&&(W=skY(this.zK,this.xhr));if(W)return nH(Bt(this.zK)),this.info.w_(this.GL,W),3;W=K.OX();if(this.I5){this.UX(!0);dQs(this);if(ar(this.zK,this.xhr.status,this.timing.Ms||this.Au,!1,this.lm))return 5;if(!this.h0){if(this.Au)return nH(Bt(this.zK)),3;this.zK.lastError="net.closed";return 5}}else{if(ar(this.zK,this.xhr.status,this.xhr.PD(),!1,this.lm))return 5; var U=this.info.N;if(U&&U!==W||K.Yc())return this.zK.lastError="net.closed",5;this.UX(!0)}U=aDp(this)?K.getResponseHeader("X-Bandwidth-Est"):0;if(K=aDp(this)?K.getResponseHeader("X-Bandwidth-Est3"):0)this.jn=!0,this.policy.HU&&(U=K);PGs(this.zK,W,U?Number(U):0,this.info.Ce[0].type===5);return 4}; g.H.canRetry=function(){this.qs();var K=this.info.isDecorated();return this.zK.canRetry(K)}; g.H.onStateChange=function(){this.isComplete()&&(this.policy.eX?this.xs():this.timing.deactivate())}; g.H.D7=function(){this.zK.D7()}; g.H.iO=function(){this.callback&&this.callback(this,this.state)}; g.H.m8=function(){return this.zK.m8()}; g.H.dispose=function(){JQ.prototype.dispose.call(this);this.zK.dispose();var K;(K=this.kh)==null||K.dispose();this.policy.eX||this.xs()}; g.H.xs=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.H.sC=function(){if(!this.AL().length)return[];this.Qp=!0;return this.hO.sC()}; g.H.ZU=function(){if(this.state<1)return!1;if(this.hO&&this.hO.s_.length)return!0;var K;return((K=this.xhr)==null?0:K.Yn())?!0:!1}; g.H.AL=function(){this.UX(!1);return this.hO?this.hO.AL():[]}; g.H.UX=function(K){try{if(K||this.xhr.RA()&&this.xhr.Yn()&&!bp(this.zK,this.xhr)&&!this.M7)this.hO||(this.hO=new fS(this.policy,this.info.Ce)),this.xhr.Yn()&&(this.I5?this.I5.feed(this.xhr.y4()):to(this.hO,this.xhr.y4(),K&&!this.xhr.Yn()))}catch(W){this.I5?g9F(this,W):g.eI(W)}}; g.H.iR=function(K,W){switch(K){case 21:K=W.split(1).Kv;F8p(this,K);break;case 22:this.h0=!0;to(this.hO,new WQ([]),!0);break;case 43:if(K=fz(new U6(W),1))this.info.w_(this.GL,K),this.Au=!0;break;case 45:W=nf(new U6(W));K=W.Cq;W=W.aY;K&&W&&(this.oi=K/W);break;case 44:this.zg=Kq$(new U6(W));var U,h,m;!this.timing.Ms&&((U=this.zg)==null?void 0:U.action)===4&&((h=this.zg)==null?0:(m=h.xH)==null?0:m.mF)&&(this.mF=this.zg.xH.mF);break;case 53:this.policy.Pl&&(K=VYs(new U6(W)).NR)&&(this.kh||(this.NR=K,this.kh= new g.QC(this.K8,K,this)),this.kh.start());break;case 60:this.Y0=Lk(new U6(W));break;case 58:if(K=gmC(new U6(W)))this.Bg=K,K.Bg===3&&(this.lm=!0)}}; g.H.Mr=function(K,W,U,h){U||this.timing.Mr(h);if(K!==21)return!1;if(K=this.policy.AE)if(K*=this.info.Ce[0].Wp.info.j0,W.totalLength+U!==h&&W.totalLength0)return!1;if(!this.xhr.RA())return!0;if(this.I5)var K=!this.info.N;else this.xhr.GH()?K=!1:(K=this.xhr.getResponseHeader("content-type"),K=K==="audio/mp4"||K==="video/mp4"||K==="video/webm");if(!K)return!1;if(isNaN(this.info.U4)){K=this.xhr.getResponseHeader("x-head-seqnum");var W=this.timing.policy.Y?1:0;if(K&&Number(K)>this.info.Ce[0].kx+W)return!1}return!0}; g.H.At=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.H.Aq=function(){this.xhr&&(this.xD=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.xD}; g.H.AU=function(){this.xhr&&(this.DU=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.DU}; g.H.KN=function(){return this.zK.KN()}; g.H.K8=function(){if(!this.qs()&&this.xhr){this.c_="heartbeat";var K=this.zK;K.j+=2;this.iO()}};g.V(w6,AX);g.H=w6.prototype;g.H.Rb=function(K,W){var U=(K-this.G)/1E3,h=W-this.N;this.X>0?h>0&&(this.Ns&&(U>.2||h<1024?(this.W+=U,U>.2&&pIC(this,.05,h)):pIC(this,U,h)),this.Le&&(this.tK+=h,this.vp+=U)):W>this.policy.j&&this.ES(K,W);AX.prototype.Rb.call(this,K,W)}; g.H.HX=function(K,W){DI(this,K,W);this.Rb(K,W);this.Ns&&(W=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.X>0&&a3(this.dH,this.tK,this.W),K=(K-this.j)/1E3||.01,this.policy.J&&!(this.X>0)||wO(this.dH,K,this.N,W,!1))}; g.H.GE=function(K){DI(this,K,this.U);var W=(K-this.G)/1E3;k5s(this.dH,W,0);this.o8(W,0);!this.Ns&&this.X>0||(W=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.X>0&&(this.W+=(K-this.G)/1E3,a3(this.dH,this.tK,this.W)),wO(this.dH,(K-this.j)/1E3||.01,this.N,W,!1,!0))}; g.H.Gr=function(K){K=K.nz||2147483647;(K&2)!==2&&(this.Le=!1);(K&1)===1&&(this.Ns=!0)}; g.H.hL=function(K){K=K.nz||2147483647;(K&2)===2&&(this.Le=!1);(K&1)===1&&(this.Ns=!1)}; g.H.cI=function(){return this.J}; g.H.l9=function(){var K=this.Le?this.now()-this.G:0;return Math.max(this.vp*1E3+K,1)}; g.H.q1=function(){return this.tK*1E3/this.l9()}; g.H.ES=function(K,W){K=K===void 0?this.Y:K;W=W===void 0?this.U:W;this.X>0||(AX.prototype.ES.call(this,K,W),W=this.dH,K=(K-this.jV)/1E3,W.J.gj(1,(this.jV-this.j)/1E3),W.hK.gj(1,K))}; g.H.SR=function(K){this.Bp=K}; g.H.lA=function(){var K=AX.prototype.lA.call(this);K.rbw=this.q1();K.rbe=+this.Le;K.gbe=+this.Ns;K.ackt=(this.Bp-this.j).toFixed();return K}; g.H.xC=function(){}; g.H.mX=function(){return NaN}; g.H.oV=function(){return this.j+this.snapshot.delay*1E3};hC.prototype.iR=function(K,W){switch(K){case 20:K=new U6(W);K={C7:L_(K,1),videoId:fz(K,2),itag:L_(K,3),lmt:L_(K,4),xtags:fz(K,5),Gg:L_(K,6),JF:vk(K,8),zI:L_(K,9),Lqk:L_(K,10),startMs:L_(K,11),durationMs:L_(K,12),Hv:L_(K,14),timeRange:Wu(K,15,r5s),Uj:L_(K,16),ZJ:L_(K,17),clipId:fz(K,1E3)};this.cX(K);break;case 21:this.PX(W,!1);break;case 22:this.Ow(W);break;case 31:K=hm(W,rJe);this.t8(K);break;case 52:K=hm(W,p4F);this.CU(K);break;default:this.Ak(K,W)}}; hC.prototype.cX=function(){}; hC.prototype.Ak=function(){};var Rb3=new Set([53,49,50]);g.V(aJ,hC);g.H=aJ.prototype;g.H.Ak=function(K,W){ITR(this.N5)&&!Rb3.has(K)?this.j.push({id:K,data:W}):H$L(this,K,W)}; g.H.qS=function(K){K=new U6(K);K={UIp:yO(K,1,tC),hbH:yO(K,2,tC)};this.N5.qS(K)}; g.H.Hn=function(K){var W=new U6(K);K=fH(W,1);var U=fH(W,2);W=fH(W,3);this.N5.Hn(K,U,W)}; g.H.dZ=function(K){K=nf(new U6(K));this.N5.dZ(K)}; g.H.zr=function(K){K=hm(K,FuD);this.N5.zr(K)}; g.H.wL=function(K){K=new U6(K);K={videoId:fz(K,1),formatId:Wu(K,2,tC),endTimeMs:L_(K,3),JZk:L_(K,4),mimeType:fz(K,5),Ec:Wu(K,6,N92),indexRange:Wu(K,7,N92),Rv:Wu(K,8,eXs)};this.N5.wL(K)}; g.H.BD=function(K){K=new U6(K);K={type:L_(K,1),scope:L_(K,2),value:zX(K,3),sendByDefault:vk(K,4),writePolicy:L_(K,5)};this.N5.BD(K)}; g.H.Dj=function(){this.N5.Dj()}; g.H.hf=function(K){K=wrp(new U6(K));this.N5.hf(K)}; g.H.pk=function(K){K=VYs(new U6(K));this.N5.pk(K)}; g.H.Ld=function(K){K=Kq$(new U6(K));this.N5.Ld(K)}; g.H.b2=function(K){K={redirectUrl:fz(new U6(K),1)};this.N5.b2(K)}; g.H.PX=function(K){var W=pM(K,0);if(K.totalLength!==1){K=K.split(1).Kv;var U=this.X[W]||null;U&&XP(this.N5.Cc,W,U,K)}}; g.H.Ow=function(K){K=pM(K,0);var W=this.X[K]||null;W&&this.N5.Ow(K,W)}; g.H.CU=function(K){this.N5.CU(K)}; g.H.cX=function(K){var W=K.C7,U=K.JF,h=K.Gg,m=K.ZJ,S=K.Uj,f=K.zI,G=K.startMs,I=K.durationMs,d=K.timeRange,J=K.Hv,e=K.clipId,E=n5(K);K=ebt.has(NU[""+K.itag]);this.X[W]=E;this.N5.Yh(E,K,{C7:W,JF:!!U,Gg:h!=null?h:-1,zI:f!=null?f:-1,startMs:G!=null?G:-1,durationMs:I!=null?I:-1,Hv:J,ZJ:m,Uj:S,clipId:e,timeRange:d})}; g.H.Gr=function(K){K={nz:L_(new U6(K),1)};this.N5.Gr(K)}; g.H.hL=function(K){K={nz:L_(new U6(K),1)};this.N5.hL(K)}; g.H.t8=function(K){this.N5.t8(K)}; g.H.vx=function(K){K=gmC(new U6(K));this.N5.vx(K)}; g.H.pM=function(K){K={d6:Wu(new U6(K),1,no$)};this.N5.pM(K)}; g.H.onSnackbarMessage=function(K){K=L_(new U6(K),1);this.N5.onSnackbarMessage(K)}; g.H.iQ=function(K){K={OZ:yO(new U6(K),1,TXD)};this.N5.iQ(K)}; g.H.Un=function(K){K=new U6(K);K={reloadPlaybackParams:Wu(K,1,dBL),vt:vk(K,2)};this.N5.Un(K)}; g.H.AT=function(){for(var K=g.z(this.j),W=K.next();!W.done;W=K.next())W=W.value,H$L(this,W.id,W.data);this.j=[]};g.V(Sy,g.p);g.H=Sy.prototype;g.H.YX=function(){return Array.from(this.Vt.keys())}; g.H.qr=function(K){K=this.Vt.get(K);var W=K.s_;K.Xg+=W.totalLength;K.s_=new WQ;return W}; g.H.CC=function(K){return this.Vt.get(K).CC}; g.H.EF=function(K){return this.Vt.get(K).EF}; g.H.Yh=function(K,W,U){this.Vt.get(K)||this.Vt.set(K,{s_:new WQ,Xg:0,bytesReceived:0,Vm:0,BR:!1,CC:!1,EF:!1,yR:W,U6:[],Ce:[],g6:[],mE:!1,gg:new Map,IL:new Map,aT:[]});W=this.Vt.get(K);this.Gm?(K=Ire(this,K,U),A6C(this,U.C7,W,K)):(U.JF?W.Vm=U.Hv:W.g6.push(U),W.U6.push(U))}; g.H.GR=function(K){var W;return((W=this.Vt.get(K))==null?void 0:W.Ce)||[]}; g.H.oK=function(){for(var K=g.z(this.Vt.values()),W=K.next();!W.done;W=K.next())if(W=W.value,W.BR){if(W.onProgress)W.onProgress();W.BR=!1}}; g.H.Ow=function(K,W){W=this.Vt.get(W);I8?W&&!W.CC&&(W.gg.get(K)?W.gg.get(K).RU=!0:W.gg.set(K,{data:new WQ,Ri:0,RU:!0}),W.EF=!0):W&&!W.EF&&(W.EF=!0)}; g.H.sC=function(K){if(I8){var W=this.Vt.get(K);if(W)for(var U=g.z(W.gg),h=U.next();!h.done;h=U.next()){var m=g.z(h.value);h=m.next().value;m=m.next().value;var S=W.IL.get(h);if(Sj(S[0])){if(!m.RU)continue;var f=m.data,G=0,I=[];S=g.z(S);for(var d=S.next();!d.done;d=S.next()){d=d.value;var J=d.X,e=fE(f,G,J);G+=J;I.push(new QN(d,e))}W.aT.push.apply(W.aT,g.z4(I))}else if(m.data.totalLength>0||!S[0].range&&m.RU)f=void 0,G=S[0],I=m.Ri,S=m.data,G.range||(f=m.RU),f=new QN(H92(G,G.j+I,S.totalLength,f),S), m.Ri+=f.info.X,W.aT.push(f);W.gg.get(h).data=new WQ;m.RU&&W.gg.delete(h)}K=this.Vt.get(K);if(!K)return[];W=K.aT;K.aT=[];U=g.z(W);for(h=U.next();!h.done;h=U.next())K.Xg+=h.value.info.X;return W||[]}U=(W=this.Vt.get(K))==null?void 0:W.hO;if(!U)return[];this.UX(K,U);return U.sC()}; g.H.ZU=function(K){if(I8)return lr(this,K);var W,U,h;return!!((U=(W=this.Vt.get(K))==null?void 0:W.hO)==null?0:(h=U.AL())==null?0:h.length)||lr(this,K)}; g.H.UX=function(K,W){for(;lr(this,K);){var U=this.qr(K);var h=K;h=this.Vt.get(h).CC&&!QrL(this,h);to(W,U,h&&$HR(this,K))}}; g.H.QH=function(){g.p.prototype.QH.call(this);for(var K=g.z(this.Vt.keys()),W=K.next();!W.done;W=K.next())nJ(this,W.value);var U;if((U=this.P2)==null?0:U.M3)for(K=g.z(this.Vt.values()),W=K.next();!W.done;W=K.next())W=W.value,W.gg.clear(),W.IL.clear(),W.aT.length=0,W.Ce.length=0,W.U6.length=0,W.g6.length=0;this.Vt.clear()}; var I8=!1;var yWO=new Set([2]);g.V(y7,g.p);g.H=y7.prototype;g.H.rN=function(){!this.qs()&&this.xhr&&(this.UX(!1),Rn(this.N5,this))}; g.H.A8=function(){}; g.H.P0=function(){if(!this.qs()&&this.xhr){var K=this.rO();K===5?H7(this.zK):this.Bl(K);this.zK.X.stop();var W;(W=this.TV)==null||W.stop()}}; g.H.rO=function(){var K="";bp(this.zK,this.xhr)&&(K=skY(this.zK,this.xhr));if(K)return this.info.T9.w_(this.GL,K),3;this.UX(!0);if(ar(this.zK,this.xhr.status,this.xhr.PD(),this.info.B1(),this.lm))return 5;if(this.lL)return 3;PGs(this.zK,this.xhr.OX(),0,this.B1());this.policy.Ea&&Gk_(this.N5);return 4}; g.H.UX=function(K){var W=this.xhr;!K&&bp(this.zK,this.xhr)||!W.Yn()||(K=W.y4(),this.I5.feed(K))}; g.H.iR=function(K,W){this.xhr.Wr()&&K===21&&GoD(this);this.TQ.iR(K,W)}; g.H.Mr=function(K,W,U,h){U||(this.p5.Mr(h),this.policy.Cs&&K===21&&GoD(this));if(K!==21)return!1;this.p5.Ms=!0;K=W.totalLength;U||(this.O1=pM(W,0),W=W.split(1).Kv);var m=this.policy.q6,S=this.TQ.X[this.O1],f=this.Gm.N.get(S);if(m&&f&&(m*=f.info.j0,K+U!==h&&K0){this.policy.ul&&this.zK.X.stop();K=this.p5.l9();W=this.p5.q1();var U=WaY(this,K);if(!(W>U.Uq||U.ag>0&&this.info.y8()>U.ag)){this.Ck=(0,g.AI)();var h;(h=this.TV)==null||h.stop();this.policy.Ea&&(h=this.N5,K={im:Math.round(W*K/1E3),hE:K},h.policy.Ea&&(h.tK=K,h.zZ++));this.D7()}}}}; g.H.D7=function(){this.zK.D7()}; g.H.Ld=function(K){this.N5.Ld(K,this.PN())}; g.H.b2=function(K){this.lL=!0;this.info.T9.w_(this.GL,K.redirectUrl)}; g.H.Gr=function(K){this.p5 instanceof w6&&this.p5.Gr(K)}; g.H.hL=function(K){this.p5 instanceof w6&&this.p5.hL(K)}; g.H.wL=function(K){var W=K.formatId,U=n5({itag:W.itag,lmt:W.lmt,xtags:W.xtags}),h,m,S=new v_(((h=K.Ec)==null?void 0:h.first)||0,((m=K.Ec)==null?void 0:m.Nd)||0),f,G;h=new v_(((f=K.indexRange)==null?void 0:f.first)||0,((G=K.indexRange)==null?void 0:G.Nd)||0);this.Gm.N.get(U)||(U=K.Rv||{},U.mimeType=K.mimeType,U.itag=W.itag,U.lastModified=""+(W.lmt||0),U.xtags=W.xtags,K=this.Gm,W=Gy(""),U=FP(U,null),I_(K,new ER(W,U,S,h)))}; g.H.dZ=function(K){this.N5.dZ(K,this.PN())}; g.H.onSnackbarMessage=function(K){if(this.policy.CI)this.N5.onSnackbarMessage(K)}; g.H.iQ=function(K){this.policy.G&&this.N5.iQ(K,this.PN())}; g.H.t8=function(K){this.l7=K;this.zK.N=(0,g.AI)();this.N5.t8(K)}; g.H.Hn=function(K,W,U){this.N5.Hn(K,W,U)}; g.H.BD=function(K){K.scope===2&&(this.WZ=K);this.N5.BD(K)}; g.H.Dj=function(){this.Iz=!0;this.N5.Dj()}; g.H.qS=function(K){this.policy.iK&&this.N5.qS(K)}; g.H.zr=function(K){this.N5.zr(K,this.PN())}; g.H.vx=function(K){K.Bg===3&&(this.lm=!0);this.N5.vx(K)}; g.H.pM=function(K){this.N5.pM(K)}; g.H.Un=function(K){this.N5.Un(K)}; g.H.canRetry=function(){this.qs();return this.zK.canRetry(!1)}; g.H.dispose=function(){if(!this.qs()){g.p.prototype.dispose.call(this);this.zK.dispose();var K;(K=this.TV)==null||K.dispose();this.Bl(-1);this.xs()}}; g.H.Bl=function(K){this.state=K;Rn(this.N5,this)}; g.H.B1=function(){return this.info.B1()}; g.H.qW=function(){return this.Iz}; g.H.Yw=function(){return this.WZ}; g.H.Yh=function(K,W,U){U.clipId&&(this.clipId=U.clipId);this.policy.X&&!W&&(this.Vn=U.zI);if(this.info.isDecorated()){var h=this.info,m,S;var f=((m=h.data)==null?0:(S=m.Qn)==null?0:S.Pe)?h.data.Qn.Pe:-1;f>=0&&f>U.zI&&this.N5.loader.rk("sdai",{skpsqmismatch:"1",stsq:f,rcvsq:U.zI,a:W})}this.Cc.Yh(K,W,U);this.policy.rQ&&this.l7&&this.p5 instanceof Qc&&(f=this.l7.Xf,this.p5.Yh(U.durationMs/1E3,W,f>0&&U.zI+1>=f));this.Cc.Vt.get(K).mE=!0;this.policy.xa&&this.N5.uV(2,W)}; g.H.Ow=function(K,W){this.Cc.Ow(K,W)}; g.H.CU=function(K){this.requestIdentifier=K}; g.H.sC=function(K){return this.Cc.sC(K)}; g.H.GR=function(K){return this.Cc.GR(K)}; g.H.ZU=function(K){return this.Cc.ZU(K)}; g.H.YX=function(){return this.Cc.YX()}; g.H.s0=function(){return 1}; g.H.PN=function(){return this.p5.requestNumber}; g.H.ek=function(){return this.requestIdentifier}; g.H.ej=function(){return this.GL.ej()}; g.H.al=function(){this.xs()}; g.H.xs=function(){this.p5.deactivate();var K;(K=this.xhr)==null||K.abort()}; g.H.isComplete=function(){return this.state>=3}; g.H.un=function(){return this.state===3}; g.H.q4=function(){return this.state===5}; g.H.Xe=function(){return this.state===4}; g.H.k6=function(){return this.isComplete()}; g.H.rr=function(){return this.state>=1}; g.H.m8=function(){return this.policy.AS?this.zK.m8():0}; g.H.iO=function(){this.policy.AS&&Rn(this.N5,this)}; g.H.xW=function(){return o9(this.info)}; g.H.AT=function(){this.fX()&&!this.eK&&(this.eK=!0,this.TQ.AT())}; g.H.fX=function(){var K,W;var U=(K=this.info.j)==null?void 0:(W=K.Z5)==null?void 0:W.iT;return!!U&&yWO.has(U)}; g.H.Gu=function(){return"SABR"}; g.H.KN=function(){return this.zK.KN()}; g.H.K7=function(){var K=VFp(this.zK);Object.assign(K,J7_(this.info));K.req="sabr";K.rn=this.PN();var W;if((W=this.xhr)==null?0:W.status)K.rc=this.policy.gZ?this.xhr.status:this.xhr.status.toString();var U;(W=(U=this.xhr)==null?void 0:U.Xh())&&(K.msg=W);this.Ck&&(U=WaY(this,this.Ck-this.p5.cI()),K.letm=U.U5p,K.mrbps=U.Uq,K.mram=U.ag);return K};LYC.prototype.tick=function(K,W){this.ticks[K]=W?window.performance.timing.navigationStart+W:(0,g.AI)()};g.V(ug,g.GP);g.H=ug.prototype; g.H.F1=function(K,W,U,h){if(this.policy.Q7&&this.policy.X){var m=K.Nk||null;m?(w4$(this,K.kx,XC(this,K.startTime,K.kx),{Nk:m,kx:K.kx,oA:!!W,ZE:U},this.N),h&&this.N&&this.N.gI(K.kx,K.startTime,this.X,(W==null?void 0:W.j)||[],(W==null?void 0:W.X)||[],(W==null?void 0:W.W)||[],U,(W==null?void 0:W.lF)||0,(W==null?void 0:W.N)||void 0)):this.X===1&&Wb(this,5,"noad")}else{var S=!1;this.policy.X&&(S=U?this.DA===K.kx:this.Ns===K.kx);if(this.N&&h&&!S){h=[];S=[];var f=[],G=void 0,I=0;W&&(h=W.j,S=W.X,f=W.W,G= W.N,I=W.lF,this.rk("sdai",{sq:K.kx,ssvicpns:h.join("."),ssvid:S.join(".")}));this.policy.X&&(U?this.DA=K.kx:this.Ns=K.kx);this.N.gI(K.kx,K.startTime,this.X,h,S,f,U,I,G)}this.policy.X?U&&(this.X===1&&Wb(this,5,"noad"),K.kx!==((m=this.j)==null?void 0:m.kx)&&(o1C(this,K,W,U),isNaN(K.startTime)||QMp(this,K.kx,XC(this,K.startTime,K.kx),!!W,this.N))):U&&o1C(this,K,W)}}; g.H.xA=function(K,W,U){var h=this.videoTrack.Wp.index.Rn()<=W;this.j={Nk:K,kx:W,oA:U};h&&Xt(this,K,W)}; g.H.vW=function(){this.N&&this.N.vW()}; g.H.rk=function(K,W,U){(K!=="sdai"||this.policy.wr||(U===void 0?0:U))&&this.loader.rk(K,W)}; g.H.VC=function(K,W){var U=this.videoTrack.Wp.index.IQ(K);if(U>=0){var h;var m=((h=W.S_.fp(U,2))==null?void 0:h.dG)||"";if(this.policy.X||m)return W.SI(K,U),FI(this.loader,K,K,U),this.rk("sdai",{cmskpad:1,t:K.toFixed(3),sq:U}),!0}this.rk("sdai",{cmskpad:0,t:K.toFixed(3),sq:U});return!1};g.H=UDC.prototype;g.H.k_=function(K,W,U){var h=K||this.W;this.rk("clsdai",{setadcfg:K||"misscid",cid:h,acpn:U,acfglen:(W==null?void 0:W.length)||0});this.j.has(h)||(this.rk("clsdai",{setadcfg:"noentry",cid:h}),this.j.set(h,{event:"unknown",startTimeSecs:0,k$:0,tJ:[],QL:Date.now(),Vx:-1,l$:6}));(K=this.j.get(h))?W?(K.l$=6,K.tJ.push(U),K.zd=W):K.l$=2:this.rk("clsdai",{setadcfg:"notfound",cid:h})}; g.H.Px=function(K){var W=K||this.W;this.rk("clsdai",{rmvadcfg:K||"misscid",lastcid:this.W});(K=this.j.get(W))?(K.zd="",K.l$=4):this.rk("clsdai",{rmadcfg:"notfound",cid:W})}; g.H.iQ=function(K,W,U){this.U=W;var h;if(!((((h=K.OZ)==null?void 0:h.length)||0)<=0)&&(K=K.OZ[0],K.Nk)){var m;h=-(((m=K.Nk)==null?void 0:m.Do)||0);K.timeRange&&(h+=(K.timeRange.startTicks||0)/(K.timeRange.timescale||1));var S,f,G,I,d;m=new u6(h,((S=K.Nk)==null?void 0:S.ePs)||0,((f=K.Nk)==null?void 0:f.BP)||"",((G=K.Nk)==null?void 0:G.identifier)||"",ie_((I=K.Nk)==null?void 0:I.event),(((d=K.Nk)==null?void 0:d.Do)||0)*1E3);S=K.zI||0;this.j.has(m.identifier)?(f=this.j.get(m.identifier),S>f.Vx&&(f.startTimeSecs= m.startSecs,f.k$=m.k$,f.event==="predictStart"&&f.l$===5&&m.event!=="predictStart"&&(f.QL=Date.now()),f.event=m.event)):(f={event:m.event,startTimeSecs:m.startSecs,k$:m.k$,tJ:[],Vx:S,l$:0},this.j.set(m.identifier,f),this.N&&this.rk("clsdai",{newcid:1,cid:m.identifier,evt:m.event,sn:S,rn:W,st:MHs(f.l$)}));U&&f.l$===0&&(U.Wg(m)?f.l$=5:(f.l$=2,f.zd=""),f.QL=Date.now(),f.Vx=S,this.N&&this.rk("clsdai",{onqpnt:1,cid:m.identifier,evt:m.event,sn:S,rn:W,st:MHs(f.l$)}));S>f.Vx&&(U==null||U.Wg(m),f.Vx=S);this.W= m.identifier;this.N&&this.X.add(m.identifier)}}; g.H.SI=function(K,W,U){var h=K;this.N&&(h+=U);var m,S="";h=ttY(this,h);h.length>0&&(S=h[0])&&(m=this.j.get(S));if(!m||m.Fb){var f;this.rk("clsdai",{skipadfail:1,cid:S,sn:W,mt:K.toFixed(3),of:U.toFixed(3),skipsq:((f=m)==null?void 0:f.Fb)||-1});return!1}this.rk("clsdai",{skipadsuc:1,cid:S,sn:W,mt:K.toFixed(3),of:U.toFixed(3)});m.Fb=W;this.X.clear();this.X.add(S);return!0}; g.H.Up=function(){this.rk("clsdai",{rstskipad:1});for(var K=g.z(this.j.values()),W=K.next();!W.done;W=K.next())W.value.Fb=NaN};g.V(Td,g.p);Td.prototype.XA=function(K,W,U){U=U===void 0?{}:U;this.policy.V6=Y6(K,U,this.W,W===void 0?!1:W)};K8Y.prototype.Eq=function(K){var W=this;if(this.policy.fI){var U=new Set(K);U.size===this.hK.size&&[].concat(g.z4(U)).every(function(h){return W.hK.has(h)})||(this.loader.rk("lwnmow",{itagDenylist:[].concat(g.z4(K)).join(",")}),this.loader.jw(!!U.size),this.jV=-1,this.hK=U,r9(this,this.j),this.tK=!0)}}; K8Y.prototype.XA=function(K,W,U){U=U===void 0?{}:U;var h=this.policy.V6;this.U.XA(K,W===void 0?!1:W,U);if(h!==this.policy.V6){r9(this,this.j);aj(this);var m,S;h>this.policy.V6&&((m=this.N)==null?0:wF(m.info))&&((S=this.nextVideo)==null||!wF(S.info))&&(this.Ms=!0)}};var HS={r8:-1,R9:!1,iT:0};g.V(r2,g.p);r2.prototype.QH=function(){this.X=HS;kJ(this);g.p.prototype.QH.call(this)};znR.prototype.gQ=function(K){this.timestampOffset=K;this.flush()}; znR.prototype.flush=function(){if(this.j.pos>0){var K={a:this.track.yR(),u:this.j.ri(),pd:Math.round(this.W),ad:Math.round(this.N)},W=this.X;if(W){var U=W.Wp.info;K.itag=U.itag;U.j&&(K.xtags=U.j);K.sq=W.kx;K.st=W.startTime;K.sd=W.duration;this.track.policy.Q$&&(K.si=W.m6());W.N&&(K.esl=W.j+W.X);W.xM()&&(K.eos=1)}isNaN(this.timestampOffset)||(K.to=this.timestampOffset);var h;if(W=(h=this.track.B3)==null?void 0:h.P3({})){for(var m in W)this.G[m]!==W[m]&&(K["sb_"+m]=W[m]);this.G=W}this.track.rk("sbu", K);this.j.reset();this.buffered=[];this.U=this.N=this.W=0;this.timestampOffset=this.X=void 0}};Oi.prototype.dispose=function(){this.uX=!0}; Oi.prototype.qs=function(){return this.uX}; g.V(LO,Error);K9.prototype.skip=function(K){this.offset+=K}; K9.prototype.aC=function(){return this.offset};g.H=iIR.prototype;g.H.RV=function(){return this.X}; g.H.Hg=function(){return this.X.length?this.X[this.X.length-1]:null}; g.H.uu=function(){this.X=[];D2(this);M9e(this)}; g.H.qr=function(K){this.tK=this.X.shift().info;K.info.equals(this.tK)}; g.H.GR=function(){return g.CB(this.X,function(K){return K.info})}; g.H.yR=function(){return!!this.Wp.info.audio}; g.H.isDrm=function(){return!!this.Wp.info.zL}; g.H.getDuration=function(){return this.Wp.index.H1()};g.V(kA,JQ);g.H=kA.prototype;g.H.onStateChange=function(){this.qs()&&(Up(this.Cc,this.formatId),this.j.dispose())}; g.H.K7=function(){var K=wD_(this.Cc,this.formatId),W;var U=((W=this.Cc.Vt.get(this.formatId))==null?void 0:W.bytesReceived)||0;var h;W=((h=this.Cc.Vt.get(this.formatId))==null?void 0:h.Xg)||0;return{expected:K,received:U,bytesShifted:W,sliceLength:QrL(this.Cc,this.formatId),isAnyMediaEndReceived:this.Cc.EF(this.formatId)}}; g.H.tU=function(){return 0}; g.H.PW=function(){return!0}; g.H.sC=function(){return this.Cc.sC(this.formatId)}; g.H.AL=function(){return[]}; g.H.ZU=function(){return this.Cc.ZU(this.formatId)}; g.H.KN=function(){return this.lastError}; g.H.m8=function(){return 0};g.V(C8,g.p);g.H=C8.prototype;g.H.yR=function(){return!!this.Wp.info.audio}; g.H.Hg=function(){return this.N.Hg()}; g.H.qr=function(K){this.N.qr(K);var W;(W=this.Y)!=null&&(W.U.add(K.info.kx),W.j=G7p(W,W.Wl,W.tC,K,W.j),W.N=K,W.G=(0,g.AI)());this.j0=Math.max(this.j0,K.info.Wp.info.j0||0)}; g.H.getDuration=function(){return this.Wp.index.H1()}; g.H.uu=function(){hM(this);this.N.uu()}; g.H.DI=function(){return this.N}; g.H.Sq=function(K){return this.B3?iO(this.B3.Nb(),K):!0}; g.H.isRequestPending=function(K){return this.X.length?K===this.X[this.X.length-1].info.Ce[0].kx:!1}; g.H.gQ=function(K){var W;(W=this.Y)==null||W.gQ(K);var U;(U=this.J)==null||U.gQ(K)}; g.H.rk=function(K,W){this.loader.rk(K,W)}; g.H.Da=function(){return this.loader.Da()}; g.H.dispose=function(){var K;(K=this.J)==null||K.flush();g.p.prototype.dispose.call(this)};g.V(Bc,g.p);Bc.prototype.N=function(){this.X++>15||(this.j=!this.j,new RTL(this.loader,this.policy,this.dH,this.T9,this.j),this.delay.start())}; g.H=RTL.prototype;g.H.A8=function(){}; g.H.rN=function(){}; g.H.P0=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.OX()===this.size)this.loader.rk("rqs",this.getInfo());else{var K="net.connect";this.xhr.status>200?K="net.badstatus":this.xhr.RA()&&(K="net.closed");this.onError(K)}}; g.H.onError=function(K){var W=this;this.loader.handleError(K,this.getInfo());K5("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(U){W.loader.rk("pathprobe",U)},function(U){W.loader.handleError(U.errorCode,U.details)})}; g.H.getInfo=function(){var K=this.timing.lA();K.shost=eA(9,this.location.ji);K.pb=this.size;return K};g.V(uW,g.p); uW.prototype.Y=function(K,W){if(K.G){this.Gm.isLive?(K=this.Gm.DE&&this.Gm.W?K.Wp.o1(this.Gm.DE,!1):K.Wp.Vd(Infinity),K.U4=this.U4):K=K.Wp.o1(0,!1);if(this.Ms){var U=this.Ms;K.U4===0&&(K.U=U.J)}else K.U=this.jV;return K}U=K.j;if(!U.Wp.LC())return U.Wp.LK()?(K=Y_(this.U,K.Wp.info.j0,W.Wp.info.j0,0),K=U.Wp.oE(U,K)):K=U.Wp.fS(U),K;var h=U.U-this.loader.getCurrentTime(),m=!U.range||U.X===0&&U.j===0?0:U.range.length-(U.j+U.X),S=U.Wp;this.YU(K,h)&&m===0&&(this.Gm.isManifestless?S=K.Wp:(S=U.startTime+LgY, U.X&&(S+=U.duration),gP(K,S),U=K.j,S=U.Wp));S.LK()?(m=this.N,W=Y_(this.U,S.info.j0,W.Wp.info.j0,h,m.W.length>0&&m.J===0&&this.loader.rZ),h=dS(K),K=U.Wp.oE(U,W),(W=K.N)&&K.Ce.length>1&&(h||K.T9.N||K.Ce[0].Wp!==U.Wp?K=U.Wp.oE(U,K.Ce[0].X):(h=K.Ce[K.Ce.length-1],S=h.X/W,!h.N&&S<.4&&(K=U.Wp.oE(U,W-h.X))))):(U.kx<0&&(W=Ov(U),W.pr=""+K.X.length,this.loader.isSeeking()&&(W.sk="1"),W.snss=U.G,this.loader.rk("nosq",W)),K=S.fS(U));if(this.policy.eV)for(U=g.z(K.Ce),W=U.next();!W.done;W=U.next())W.value.type= 6;return K}; uW.prototype.YU=function(K,W){if(!dS(K)||!K.Wp.LC())return!1;var U;(U=this.N.tK)||(U=dS(K)&&K.Wp.LC()&&K.j.Wp.info.j0=W)return h.return();(U=K.j.get(0))&&Lrz(K,U);g.q1(h)})}; var fjL={a5k:0,QxU:1,I5x:2,Xgx:3,Q5k:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Jw_.prototype.decrypt=function(K){var W=this,U,h,m,S,f,G;return g.r(function(I){switch(I.j){case 1:if(W.j.length&&!W.j[0].isEncrypted)return I.return();W.X=!0;W.eD.qy("omd_s");U=new Uint8Array(16);M_()?h=new g.Zz(K):m=new g.o2(K);case 2:if(!W.j.length||!W.j[0].isEncrypted){I.O5(4);break}S=W.j.shift();if(!h){f=m.decrypt(s1(S.buffer),U);I.O5(5);break}return g.T(I,h.decrypt(s1(S.buffer),U),6);case 6:f=I.X;case 5:G=f;for(var d=0;d=4)){var W=gv(this),U=this.xhr;W.rc=U.status;K&&(W.ab=!0);if(U.Xh()){var h="onesie.net";W.msg=U.Xh()}else U.status>=400?h="onesie.net.badstatus":U.PD()?this.m7||(h="onesie.response.noplayerresponse"):h=U.status===204?"onesie.net.nocontent":"onesie.net.connect";h?this.fail(new g.F3(h,W)):(this.qy("or_fs"),this.p5.HX((0,g.AI)(),U.OX(),0),this.Bl(4),this.d4&&this.rk("rqs",W));this.d4&&this.rk("ombre","ok."+ +!h);this.h_=!1;bQ(this); yoR(this.eD);if(!this.O$){this.Y9.stop();var m;(m=this.lN)==null||m.stop()}var S;if(K=(S=this.rI)==null?void 0:wjD(S))for(S=0;S1E3){var K;(K=this.p5)==null||K.GE((0,g.AI)());K=gv(this);if(this.C.G9()&&this.xhr instanceof TiC){var W=this.xhr;K.xrs=W.xhr.readyState;K.xpb=W.j.totalLength;K.xdc=W.W}this.fail(new g.F3("net.timeout",K))}}else(0,g.AI)()-this.p5.j>1E4&&((W=this.p5)==null||W.GE((0,g.AI)()),this.Mp());this.isComplete()||this.AY.start()}}; g.H.Mp=function(){this.h_=!1;if(!bQ(this)){var K=gv(this);K.timeout="1";this.fail(new g.F3("onesie.request",K))}}; g.H.fail=function(K){var W=this;K=XI(K);this.dI?this.iX.aR(K):(this.Jf.reject(K),this.dI=!0);yoR(this.eD);this.O$||this.Y9.stop();this.qy("or_fe");var U,h;(U=this.rI)==null||(h=wjD(U))==null||h.forEach(function(m){W.rk("pathprobe",m)}); this.Bl(5);this.dispose()}; g.H.isComplete=function(){return this.state>=3}; g.H.Xe=function(){return this.state===4}; g.H.k6=function(K){var W,U;return this.isComplete()||!!((W=this.T5)==null?0:(U=W.get(K))==null?0:U.X)}; g.H.un=function(){return!1}; g.H.q4=function(){return this.state===5}; g.H.notifySubscribers=function(K){for(var W=0;W102400&&!this.x6&&(this.qy("or100k"),this.x6=!0);if(K.Yn()){var W=K.y4(),U=W.totalLength;this.d4&&this.rk("ombrss","len."+U);this.I5.feed(W)}if(this.T5)for(var h=g.z(this.T5.keys()),m=h.next();!m.done;m=h.next()){var S=m.value;K=void 0;(K=this.T5.get(S))==null||K.oK();this.notifySubscribers(S)}}catch(f){this.fail(f)}}; g.H.PN=function(){return this.p5.requestNumber}; g.H.ek=function(K){return this.sf.get(K)}; g.H.fX=function(){return!1}; g.H.Gu=function(){return"ONESIE"};g.V(D7,g.p);g.H=D7.prototype;g.H.Ul=function(K,W){this.jV=void 0;Gk_(this);kXs(this,K,W)}; g.H.Gf=function(K){if(this.j.length===0)return!1;var W=this.j[0];return W instanceof k2?K===this.loader.getCurrentTime()*1E3:!(W instanceof y7&&Awp(W.info))&&Math.abs(W.xW()-K)<50}; g.H.hf=function(K,W){this.X=K;this.policy.wN&&this.policy.X&&!K.playbackCookie&&this.loader.rk("sbrnocookie",{rn:W!=null?W:-1});this.jV=(0,g.AI)()+(K.backoffTimeMs||0)}; g.H.Ld=function(K,W){if(K.action===void 0){var U=this.iX.S5();U!==void 0&&this.loader.US(U)}else if(K.action!==0||!this.Bp)if(K.action===0&&this.policy.hJ&&(K.action=2),K.cn==="sabr.malformed_config"&&this.JK++<3)this.loader.handleError("sabr.malformed_config",{action:K.action,rn:W,retry:this.JK},0);else switch(K.cn==="sabr.malformed_config"&&(K.action=2),U={},U.reason=K.cn,U.action=K.action,U.rn=W,K.action){case 1:this.policy.X&&this.Y&&this.Y.mj(void 0,void 0,U);break;case 0:this.Bp=!0;this.videoData.Sj()&& this.policy.X&&this.Y&&this.Y.mj(void 0,void 0,U,!1);this.loader.mS(U);break;case 2:nuz(K.cn)!=="sabr.config"&&delete U.reason;this.loader.handleError(nuz(K.cn),U,1);break;case 3:this.policy.q5&&((K=this.Gm.jV)!=null&&(K.J=!0),this.loader.handleError("sabr.hostfallback",U))}}; g.H.BD=function(K){K&&(this.loader.rk("sabrctxt",{onsbrctxt:K.type,scp:K.scope,dflt:K.sendByDefault}),K.type&&K.sendByDefault&&this.videoData.Le.add(K.type),K.scope!==2&&(K.type&&this.videoData.sabrContextUpdates.set(K.type,K),this.iX.BD(K)))}; g.H.Dj=function(){}; g.H.dZ=function(K,W){if(this.loader.wP)this.loader.rk("sdai",{ignSabrSeek:1,smt:K==null?void 0:K.Cq,rn:W});else if(K.Cq!==void 0&&K.aY){W=K.Cq/K.aY;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.uX||this.policy.Q6||this.policy.j5)this.loader.tO.j=!1;if(this.iX.getCurrentTime()!==W){var U={JS:"sabr_seek",Xa:!0,IY:!0};K.seekSource&&(U.seekSource=K.seekSource);eO(this.loader,W+.1,U)}}}; g.H.onSnackbarMessage=function(K){this.iX.publish("onSnackbarMessage",K)}; g.H.iQ=function(K,W){this.policy.G&&!GmC(this.videoData)&&this.loader.iQ(K,W)}; g.H.t8=function(K){K.Xf&&K.MM&&nY(this.Gm,K.Xf,K.MM);this.policy.Mc&&(K.C8&&K.g1&&(this.Gm.LG=K.C8/K.g1),K.V_&&K.w1&&(this.Gm.q7=K.V_/K.w1));S_(this.videoData)&&!this.videoData.Cf&&K.MM&&this.loader.zo(K.MM,1E3);K.jJ!=null&&this.iX.cD(K.jJ);K.Jy&&(K=((0,g.AI)()-K.Jy)/1E3,this.loader.KV.gj(1,K))}; g.H.vx=function(K){this.loader.vx(K)}; g.H.k0=function(K){return this.videoData.Le.has(K)}; g.H.Hn=function(K,W,U){this.policy.N&&this.loader.rk("sabrctxtplc",{start:K?K.join("_"):"",stop:W?W.join("_"):"",discard:U?U.join("_"):""});if(K){K=g.z(K);for(var h=K.next();!h.done;h=K.next())this.videoData.Le.add(h.value)}if(W)for(W=g.z(W),K=W.next();!K.done;K=W.next())K=K.value,this.videoData.Le.has(K)&&this.videoData.Le.delete(K);if(U)for(U=g.z(U),W=U.next();!W.done;W=U.next())if(W=W.value,this.videoData.sabrContextUpdates.has(W)&&this.videoData.sabrContextUpdates.delete(W),this.policy.Ms&&this.j.length)for(K= g.z(this.j),h=K.next();!h.done;h=K.next())if(h=h.value,!(h instanceof k2)){var m=void 0;((m=h.WZ)==null?void 0:m.type)===W&&(h.WZ=void 0)}}; g.H.qS=function(){}; g.H.QT=function(K){this.G=K}; g.H.LJ=function(K){this.U=K}; g.H.zr=function(K,W){cD(this.policy,K,4,W)}; g.H.pM=function(K){if(K==null?0:K.d6)if(K=K.d6.nm){K=g.z(K);for(var W=K.next();!W.done;W=K.next())if(W=W.value,W.formatId){var U=this.Gm.N.get(n5(W.formatId));U&&U.info&&(U.info.debugInfo=W.debugInfo)}}}; g.H.Un=function(K){this.iX.publish("reloadplayer",K)}; g.H.G7=function(){return this.iX.G7()||""}; g.H.y8=function(){var K=SMp(this);return Math.min(K.sH,K.fT)}; g.H.bZ=function(K,W){this.loader.rk(K,W)}; g.H.b8=function(K){xIs(this.loader,QTL(this.gk,K))}; g.H.uV=function(K,W){this.videoData.uV(K,W)}; g.H.QH=function(){g.p.prototype.QH.call(this);this.X=void 0;kXs(this,!0,"i");this.j=[]};KV.prototype.uX=function(K){Ut(K.state)&&jTp(this.N)}; KV.prototype.clear=function(){Z2Y(this.N);this.U.clear();this.X.clear();this.jV=this.J=NaN;this.G=!1}; KV.prototype.k9=function(){this.isSeeking=!0;this.j===1&&Z2Y(this.N);this.j===0&&this.b5.L5("transitiondetector");this.G=!1;this.J=NaN;this.Y=this.aQ};mA.prototype.TL=function(K,W){if(this.W)return bvC(this,W);if(W=OB(K)){var U=W.j;U&&U.N&&U.j&&(K=K.X.length?K.X[0]:null)&&K.state>=2&&!K.q4()&&K.info.U4===0&&(this.W=K,this.Y=U,this.X=W.info,this.G=this.startTimeSecs=Date.now()/1E3,this.U=this.X.startTime)}return NaN}; mA.prototype.clear=function(){this.X=this.Y=this.W=null;this.j=this.U=this.G=this.startTimeSecs=NaN;this.N=!1};g.V(des,g.p);des.prototype.QH=function(){N2p(this);g.p.prototype.QH.call(this)};var Pws=/[?&]cpn=/;g.V(du,g.p);du.prototype.flush=function(){var K={};this.X&&(K.pe=this.X);this.j.length>0&&(K.pt=this.j.join("."));this.j=[];return K}; du.prototype.stop=function(){var K=this,W,U,h;return g.r(function(m){if(m.j==1)return g.Bj(m,2),g.T(m,(W=K.W)==null?void 0:W.stop(),4);if(m.j!=2)return(U=m.X)&&K.logTrace(U),g.xL(m,0);h=g.SV(m);K.X=s1$(h.message);g.q1(m)})}; du.prototype.logTrace=function(K){this.encoder.reset();this.encoder.add(1);this.encoder.add(K.resources.length);for(var W=g.z(K.resources),U=W.next();!U.done;U=W.next()){U=U.value.replace("https://www.youtube.com/s/","");this.encoder.add(U.length);for(var h=0;h=0?K:g.gh(this.provider),this.Ns?MgO.has(this.RR)&&(this.j.size||(this.RR==="PL"?K>=this.X+30:K<=this.Ms+30||K>=this.X+1200&&K<=this.Ms+86400))&&(g.Fa(this,K,"vps",[this.RR]),this.X=K):["PL","B","S"].indexOf(this.RR)>-1&&(this.j.size||K>=this.X+30)&&(g.Fa(this,K,"vps",[this.RR]),this.X=K),this.j.size)){this.sequenceNumber===7E3&&g.eI(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){iH(this,K);var W=this.provider.iX.jk(); W=g.z(W);for(var U=W.next();!U.done;U=W.next())U=U.value,this.rk(U.key,U.value);W=K;U=this.provider.iX.CY();var h=U.droppedVideoFrames||0,m=U.totalVideoFrames||0,S=h-this.N7,f=m&&!this.yY;h>U.totalVideoFrames||S>5E3?lmp(this,"html5.badframedropcount","df."+h+";tf."+U.totalVideoFrames):(S>0||f)&&g.Fa(this,W,"df",[S]);this.N7=h;this.yY=m;this.J>0&&(g.Fa(this,K,"glf",[this.J]),this.J=0);mJ.isActive()&&(K=mJ.UJ(),Object.keys(K).length>0&&this.rk("profile",K));this.q5&&hZ(this,"lwnmow");this.provider.C.G9()&& this.provider.L("html5_record_now")&&this.rk("now",{wt:(0,g.AI)()});K={};this.provider.videoData.X&&(K.fmt=this.provider.videoData.X.itag,(W=this.provider.videoData.W)&&W.itag!==K.fmt&&(K.afmt=W.itag));K.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(K.adcpn=this.adCpn);this.Ca&&(K.addocid=this.Ca);this.contentCpn&&(K.ccpn=this.contentCpn);this.DA&&(K.cdocid=this.DA);this.provider.videoData.cotn&&(K.cotn=this.provider.videoData.cotn);K.el=KJ(this.provider.videoData);K.content_v=xGC(this.provider.videoData); K.ns=this.provider.C.Ms;K.fexp=GR2(this.provider.C.experiments).toString();K.cl=(819955386).toString();(W=this.provider.videoData.adFormat||this.adFormat)&&(K.adformat=W);(W=DG(this.provider.videoData))&&(K.live=W);this.provider.videoData.nC()&&(K.drm=1,this.provider.videoData.U&&(K.drm_system=OaZ[this.provider.videoData.U.flavor]||0),this.provider.videoData.drmProduct&&(K.drm_product=this.provider.videoData.drmProduct));Vn()&&this.provider.videoData.G&&(K.ctt=this.provider.videoData.G,K.cttype=this.provider.videoData.oC, this.provider.videoData.mdxEnvironment&&(K.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(K.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Q7&&(K.dai_fallback="1")):this.provider.videoData.Ze?K.dai="cs":this.provider.videoData.KX&&(K.dai="disabled");K.seq=this.sequenceNumber++;if(this.provider.videoData.b1){if(W=this.provider.videoData.b1,K&&W)for(W.ns==="3pp"&&(K.ns="3pp"),this.ZX.has(W.ns)&&hZ(this,"hbps"), W.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=W.shbpslc),this.provider.C.experiments.Rk("html5_use_server_qoe_el_value")&&this.gk.delete("el"),U=g.z(Object.keys(W)),h=U.next();!h.done;h=U.next())h=h.value,this.gk.has(h)||(K[h]=W[h])}else K.event="streamingstats",K.docid=this.provider.videoData.videoId,K.ei=this.provider.videoData.eventId;this.isEmbargoed&&(K.embargoed="1");Object.assign(K,this.provider.C.j);if(W=K.seq)W={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+W, serializedWatchEndpointLoggingContext:this.provider.videoData.wO},this.serializedHouseBrandPlayerServiceLoggingContext&&(W.serializedHouseBrandPlayerServiceLoggingContext=B1(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(W.playerResponseCpn=this.provider.videoData.playerResponseCpn),nq.length&&(W.decoderInfo=nq),this.remoteControlMode&&(W.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(W.remoteConnectedDevices= this.remoteConnectedDevices),W=g.AZ(W,TxR),W=g.o0(W,4),this.j.set("qclc",[W]);K=g.sL("//"+this.provider.C.rP+"/api/stats/qoe",K);U=W="";h=g.z(this.j.entries());for(m=h.next();!m.done;m=h.next())S=g.z(m.value),m=S.next().value,S=S.next().value,f=void 0,(f=S)!=null&&f.join&&(m="&"+m+"="+S.join(","),m.length>100?U+=m:W+=m);ee2(this,K+W,U.replace(/ /g,"%20"))}this.j.clear()}}; g.H.jw=function(K){this.q5=K}; g.H.u6=function(){if(this.provider.videoData.U){var K=this.provider.videoData.U;hZ(this,"eme-"+(K.keySystemAccess?"final":Dc(K)?"ms":H4(K)?"ytfp":kUF(K)?"safarifp":"nonfinal"))}}; g.H.va=f4(53);g.H.Oj=function(K){this.isEmbargoed=K}; g.H.fN=f4(30);g.H.xL=f4(36);g.H.onPlaybackRateChange=function(K){var W=g.gh(this.provider);K&&K!==this.AS&&(g.Fa(this,W,"rate",[K]),this.AS=K);this.Ns||this.reportStats(W)}; g.H.UP=f4(24);g.H.getPlayerState=function(K){if(g.C(K,128))return"ER";if(g.C(K,2048))return"B";if(g.C(K,512))return"SU";if(g.C(K,16)||g.C(K,32))return"S";if(K.isOrWillBePlaying()&&g.C(K,64))return"B";var W=P53[Hi(K)];g.PJ(this.provider.C)&&W==="B"&&this.provider.iX.getVisibilityState()===3&&(W="SU");W==="B"&&g.C(K,4)&&(W="PB");return W}; g.H.x8=function(K,W){var U=g.gh(this.provider);g.Fa(this,U,"vfi",[K==="A"?"":""+(W!=null?W:0),K])}; g.H.QH=function(){g.p.prototype.QH.call(this);g.Pa(this.uX);g.Pa(this.Ez)}; g.H.iq=function(K){this.isOffline=K;g.Fa(this,g.gh(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.H.rk=function(K,W,U){var h=this.bG.indexOf(K)!==-1;h||this.bG.push(K);if(!U||!h){W=typeof W!=="string"?GR(W):W;W=Ubp(W);if(!U&&!/^t[.]/.test(W)){var m=g.gh(this.provider)*1E3;W="t."+m.toFixed()+";"+W}HO(this,"ctmp",K+":"+W);yD(this);return m}}; g.H.Fa=function(K,W,U){this.U={k8s:Number(this.rk("glrem",{nst:K.toFixed(),rem:W.toFixed(),ca:+U})),W6:K,QQK:W,isAd:U}}; g.H.T4=function(K,W,U){g.Fa(this,g.gh(this.provider),"ad_playback",[K,W,U])}; g.H.Ku=function(K,W){var U=g.gh(this.provider)*1E3;HO(this,"daism","t."+U.toFixed(0)+";smw."+(K*1E3).toFixed(0)+";smo."+(W*1E3).toFixed(0))}; g.H.resume=function(){var K=this;isNaN(this.uX)?w5p(this):this.uX=g.KQ(function(){K.reportStats()},1E4)}; var QB={},P53=(QB[5]="N",QB[-1]="N",QB[3]="B",QB[0]="EN",QB[2]="PA",QB[1]="PL",QB[-1E3]="ER",QB[1E3]="N",QB),MgO=new Set(["PL","B","S"]),nq=[];g.V(g.Wd,g.p);g.H=g.Wd.prototype;g.H.initialize=function(K,W,U){K=K||0;this.policy.j||(W=Dpe(this.j),LN(this.iX,new qz(W.video,W.reason)),this.iX.St(new qz(W.audio,W.reason)));this.policy.j&&QY(this);this.Gm.isManifestless&&aJY(this.G);this.J&&CjC(this.J,this.videoTrack.Wp);W=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var h=!this.Gm.isManifestless;this.policy.yj&&(h=h||this.Gm.tv);if(!this.policy.Le||this.policy.Cg)this.currentTime=h?K:W;this.policy.uX&&this.seek(this.getCurrentTime(),{}).Df(function(){}); if(this.policy.j){var m;((m=this.Ms)==null?0:TPp(m,this.G7()||""))&&mXe(this)&&H2$(this,this.videoTrack)&&H2$(this,this.audioTrack)&&(dAL(this.X,this.Ms),this.policy.U&&h0s(this))}else this.uX&&(rVY(this,this.videoTrack),rVY(this,this.audioTrack),Mvp(this.uX),delete this.uX);U?(r_(this,!1),g.yG(this.AG)):(K=this.getCurrentTime()===0,Vt(this.G,this.videoTrack,this.videoTrack.Wp,K),Vt(this.G,this.audioTrack,this.audioTrack.Wp,K),this.policy.j&&tML(this.X,{iT:1}),this.policy.uX||this.seek(this.getCurrentTime(), {}).Df(function(){}),this.timing.tick("gv")); (this.Gm.DE||this.Gm.L_||this.Gm.PS||this.Gm.X5||this.Gm.Af)&&this.iX.jL(this.Gm)}; g.H.resume=function(){if(this.isSuspended||this.rZ){this.HE=this.rZ=this.isSuspended=!1;try{this.TL()}catch(K){g.wG(K)}}}; g.H.Fi=function(){return!this.policy.QX}; g.H.Lp=function(K,W){K=K===void 0?!1:K;W=W===void 0?!1:W;wSp(this);this.iX.vu()&&(this.Y=NaN);K?(this.policy.tK&&this.rk("loader",{setsmb:1}),this.policy.eV=!0,this.uu()):(r_(this,!1),W||this.uu())}; g.H.setAudioTrack=function(K,W,U){U=U===void 0?!1:U;if(!this.qs()){var h=!isNaN(W);U&&h&&(this.audioTrack.Ms=Date.now(),this.policy.Ev&&(this.M5=!0));U=this.iX.vu()&&!this.iX.getVideoData().J;if(this.policy.j){var m=this.W.g5(K.id,h);this.iX.St(m)}else m=this.j,m.X=m.Gm.j[K.id],m.Y=m.X,m=new w9(m.Y,m.N,h?"t":"m"),this.iX.St(new qz(m.audio,m.reason));h?(this.DO=Date.now(),h=this.audioTrack.Wp.index.IQ(W),this.rk("setAudio",{id:K.id,cmt:W,sq:h}),h>=0&&(K=this.policy.gR?h+1:h,this.policy.j&&this.Ul(!0, "mosaic"),cy(this.audioTrack,K,NaN,NaN),!this.policy.ZX&&this.Gm.isLive&&nt(this.Gm,K,!1))):U||this.iX.ll()}}; g.H.setPlaybackRate=function(K){K!==this.jV.getPlaybackRate()&&this.jV.setPlaybackRate(K)}; g.H.wz=function(K){var W=this.X.G;this.X.QT(K);this.rk("scfidc",{curr:n5(W),"new":n5(K)});K&&n5(K)!==n5(W)&&(this.Ul(!0,"caption change"),this.TL())}; g.H.VY=function(K){this.X.LJ(K)}; g.H.wh=function(K){K.j.info.yR()?this.iX.St(K):LN(this.iX,K)}; g.H.b8=function(K){WL(K.Ce[K.Ce.length-1])&&xIs(this,QTL(this.j,K.Ce[0].Wp))}; g.H.tF=function(){return this.iX.tF()}; g.H.Ne=function(){return this.iX.Ne()}; g.H.vx=function(K){this.iX.V().G9()&&this.rk("sps",{status:K.Bg||""});if(K.Bg===1)this.Xq=0;else if(K.Bg===2||K.Bg===3){var W=!1;if(K.Bg===3){var U;this.Ea=(U=K.bNV)!=null?U:Infinity;this.Xq+=1;(W=YgC(this))&&this.WD(!0)}this.iX.XP(!0,W)}}; g.H.Rq=function(){return this.iX.Rq()}; g.H.E4=function(){return this.iX.E4()}; g.H.WR=function(K){this.iX.WR(K)}; g.H.wok=function(){var K,W=(K=this.iX.lY())==null?void 0:K.getCurrentTime();W?this.iX.rk("rms",{cta:W}):g.yG(this.AS)}; g.H.TL=function(){RV(this);if(this.AK&&Op(this.AK)&&!this.AK.ev()&&(!this.policy.Le||isFinite(this.getCurrentTime()))){var K=Kp(this.videoTrack);K=this.policy.gv5&&K&&K.xM();this.Gm.isManifestless&&this.Gm.W&&XG(this.Gm)?(this.Y=XG(this.Gm),this.AK.BY(this.Y)):c1(this.Gm)&&!K?isNaN(this.Y)?(this.Y=this.getCurrentTime()+3600,this.AK.BY(this.Y)):this.Y<=this.getCurrentTime()+1800&&(this.Y=Math.max(this.Y+1800,this.getCurrentTime()+3600),this.AK.BY(this.Y)):this.AK.isView||(K=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.Y)||this.Y!==K)&&K>0&&(this.AK.BY(K),this.Y=K))}if(!this.qs())if(DW(this.Gm)&&this.Gm.q4()){var W=this.Gm;this.handleError("manifest.net.retryexhausted",W.Pp?{rc:W.Bo}:{rc:W.Bo.toString()},1)}else if(this.policy.j)a:{try{if(B4(this)&&this.Sh){var U=this.X,h=this.Sh,m=h.j;if(m){var S=U.iX.S5(),f=!0;S||(S=U.loader.getCurrentTime(),f=!1);W=S;var G=f?U.iX.eh(W):W;if(U.loader.Sq(G))var I=!1;else{var d={t:W.toFixed(3),isUtc:f};c:{var J=U.iX.G7();if(J){for(var e= g.z([U.audioTrack,U.videoTrack]),E=e.next();!E.done;E=e.next()){var B=IZ(E.value.Wp,U.Gm.mK);S=void 0;var D=((S=m)==null?void 0:S.GR(B,J))||[];if(D.length===0||!oyL(new rd(D),G)){var a=!1;break c}}a=!0}else a=!1}if(a)U.loader.rk("prebuffer",Object.assign(d,{inrange:1})),I=!0;else{if(Awp(m.info)){var Q;if(Q=f){var u,O;Q=(((u=m.info.j)==null?void 0:(O=u.Z5)==null?void 0:O.tf)||0)===W*1E3}var N=Q}else N=!f&&o9(m.info)===W*1E3;N?(U.loader.rk("prebuffer",Object.assign(d,{match:1})),I=!0):I=!1}}if(I){U.iX.qy("ismp_c"); U.j.push(m);var A;(A=U.DA)==null||M2(A,m.info.T9);m.AT();kJ(h,!1)}}}xT$(this.X);this.Gm.isManifestless&&this.policy.U&&A5(this.tO);var Z;((Z=this.AK)==null?0:I3(Z))&&this.QY();tML(this.X);if(B4(this)&&this.Sh){var x=this.X,b=this.Sh,KR=b.X.r8;if(KR!==void 0&&KR>=0){x.iX.qy("ismp_a");var fR=b.X;var jp=fR.r8;if(jp===void 0)var I2=!1;else{var hF=fR.R9?x.iX.eh(jp):jp,w$;if(w$=!x.loader.Sq(hF)&&It_(x,x.Pp)){var vs=x.iX.getCurrentTime()*1E3,Sf=dnp(x,vs),mj=Sf.Pb;w$=Sf.FV>=7E3&&mj>=7E3}I2=w$}if(I2){var c= $Te(x,fR);x.policy.ib>0&&x.Pp.qR++;c&&(b.j!==c&&(g6p(b),b.j=c,b.X=HS),x.iX.qy("ismp_rc"))}}}}catch(AF){g.eI(AF);W=AF;if(W.message.includes("changeType")){this.rk("ctype",{exp:W.name,msg:W.message,s:W.stack});break a}this.handleError("fmt.unplayable",{exp:W.name,msg:W.message,s:W.stack,trg:"sabrslicerqt"},1)}NNY(this);g.yG(this.Ik)}else if(!this.Gm.X||!hM_(this.videoTrack)&&!hM_(this.audioTrack)||(this.videoTrack.W||this.audioTrack.W)&&this.policy.Qg?U=!1:(this.uu(),this.iX.seekTo(Infinity,{JS:"checkLoaderTracksSync", zo:!0}),U=!0),!U){RV(this);this.Gm.isManifestless&&(yZL(this.videoTrack),yZL(this.audioTrack),A5(this.tO),(U=OB(this.videoTrack))&&U.j&&(U=U.j.N&&!this.policy.vS,this.rk(U===this.policy.J.vN?"strm":"strmbug",{strm:U,sfmp4:this.policy.J.vN,dfs:this.policy.vS},!0)));if(this.AK)this.QY();else if(this.policy.W){U=!1;if(this.policy.yD)for(h=g.z([this.videoTrack,this.audioTrack]),m=h.next();!m.done;m=h.next()){I=m.value;for(m=OB(I);m&&I.Hg()!==Kp(I);m=OB(I))I.qr(m);U=U||!!m}else(W=OB(this.videoTrack))&& this.videoTrack.qr(W),(f=OB(this.audioTrack))&&this.audioTrack.qr(f);CG(this.videoTrack)&&CG(this.audioTrack)||(W||f||U)&&gn(this)}CGe(this);Vt(this.G,this.videoTrack,this.videoTrack.Wp,!1);Vt(this.G,this.audioTrack,this.audioTrack.Wp,!1);if(!this.policy.UH&&(W=this.videoTrack,h=this.audioTrack,(!this.AK||Op(this.AK)&&!this.policy.CM)&&!this.tO.isSeeking()&&(this.policy.j||dS(W)&&W.Wp.LC()&&this.j.Ms)))a:{if(f=this.getCurrentTime(),U=this.jV,h=Y_(U,W.Wp.info.j0,h.Wp.info.j0,0),m=qY(U.dH)+h/v2(U.dH), f+=Math.max(m,m+U.policy.II-h/W.Wp.info.j0),W.X.length){if(W.X[0].info.Ce[0].startTime<=f)break a;hM(W)}U=W.N;for(h=U.X.length-1;h>=0;h--)U.X[h].info.startTime>f&&U.X.pop();usp(W);W.j&&f5&&d.jV.shift();W=W.kx;var J;if((J=this.iX.getVideoData())==null?0:J.enableServerStitchedDai)J=hf2(this.audioTrack,W),U=hf2(this.videoTrack,W),J!==0&&U!==0&&J!==U&&this.handleError("ssdai.avsync",{sq:W,a:J,v:U}, 0)}}; g.H.xA=function(K,W,U,h){K.info.video&&this.N.xA(W,U,h)}; g.H.Eq=function(K){this.j.Eq(K)}; g.H.cQ=f4(12);g.H.Xu=function(){if(g.C(this.iX.getPlayerState(),8)){var K,W,U=(W=(K=this.iX.lY())==null?void 0:K.getCurrentTime())!=null?W:this.iX.getCurrentTime(),h;(h=this.JK)==null||c2p(h,U)}var m;(m=this.q5)==null||g.yG(m)}; g.H.zb=function(){return this.videoTrack.G||this.audioTrack.G}; g.H.seek=function(K,W){if(this.qs())return x2();if(this.zb())return x2("seeking to head");if(this.policy.uX&&!isFinite(K))return v_z(this.tO),g.EC(Infinity);RV(this);JH$(this,K,!1,W.seekSource);QY(this);this.policy.j||CGe(this,K);this.AK&&this.AK.j&&this.AK.X&&!this.iX.getVideoData().bx&&(this.AK.j.isLocked()||this.AK.X.isLocked())&&this.iX.ll({reattachOnLockedBuffer:1,vsb:""+this.AK.X.isLocked(),asb:""+this.AK.j.isLocked()});var U=this.getCurrentTime(),h=this.tO.seek(K,W);if(!this.policy.Le||this.policy.Cg)this.currentTime= h;xZ(this.N,K,U,this.policy.Mg&&!W.Xa);gn(this);return g.EC(h)}; g.H.Gf=function(K){return this.policy.j&&this.X.Gf(K)}; g.H.k0=function(K){return this.X.k0(K)}; g.H.Ul=function(K,W){this.X.Ul(K,W)}; g.H.getCurrentTime=function(){if(this.policy.Le){var K=this.A7()||0;return this.iX.getCurrentTime(!0)-K}return this.currentTime}; g.H.X7=function(){return this.audioTrack.Wp.info}; g.H.E0=function(){return this.videoTrack.Wp.info}; g.H.B9=function(){return this.audioTrack.Wp.info.lX}; g.H.Jg=function(){return this.videoTrack.Wp.info.lX}; g.H.QH=function(){try{this.Lp(),hM(this.audioTrack),hM(this.videoTrack),wI(this.audioTrack),wI(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.p.prototype.QH.call(this)}catch(K){g.wG(K)}}; g.H.handleError=function(K,W,U){U=U===void 0?0:U;var h=CR(U);K==="fmt.unplayable"&&this.Gm.isLive&&(this.policy.WM=!1,C7(this.Gm));W=new g.F3(K,W,U);g.NK(this);GR(W.details);this.iX.handleError(W);K!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&K!=="fmt.unparseable"&&h&&this.dispose()}; g.H.P3=function(){var K=Kp(this.audioTrack),W=Kp(this.videoTrack);K={lct:this.getCurrentTime().toFixed(3),lsk:this.tO.isSeeking(),lmf:this.j.j.isLocked(),lbw:mM(this.schedule).toFixed(3),lhd:qY(this.schedule).toFixed(3),lst:((this.schedule.Y.xv()||0)*1E9).toFixed(3),laa:K?K.m6():"",lva:W?W.m6():"",lar:this.audioTrack.j?this.audioTrack.j.m6():"",lvr:this.videoTrack.j?this.videoTrack.j.m6():"",laq:""+CI(this.audioTrack),lvq:""+CI(this.videoTrack)};this.AK&&!this.AK.CC()&&this.AK.j&&this.AK.X&&(K.lab= fc(this.AK.j.Nb()),K.lvb=fc(this.AK.X.Nb()));this.Ns&&(K.lapt=((0,g.AI)()-this.Ns).toFixed(0),K.lapr=Mxp(this));this.tK&&(K.lapmabht=((0,g.AI)()-this.tK).toFixed(0),K.lapmabh=w0(this,this.audioTrack).toFixed(0));this.Bp&&(K.lapmvbht=((0,g.AI)()-this.Bp).toFixed(0),K.lapmvbh=w0(this,this.videoTrack).toFixed(0));this.vp&&(K.lapsdai=((0,g.AI)()-this.vp).toFixed(0));return K}; g.H.uu=function(){try{this.policy.j&&this.X.Ul(!1,"pending"),this.audioTrack.uu(),this.videoTrack.uu()}catch(K){g.wG(K)}this.policy.W=""}; g.H.Sq=function(K){return this.videoTrack&&this.audioTrack?this.videoTrack.Sq(K)&&this.audioTrack.Sq(K):!0}; g.H.M1=function(){return qn(this.jV)}; g.H.rk=function(K,W,U){this.iX.rk(K,W,U===void 0?!1:U)}; g.H.G7=function(){return this.iX.G7()}; g.H.zo=function(K,W){K/=W;isNaN(this.timestampOffset)&&f$(this,K-Math.min(K,this.policy.zT));return(K-this.timestampOffset)*W}; g.H.A7=function(){return this.timestampOffset}; g.H.isSeeking=function(){return this.tO.isSeeking()}; g.H.vW=function(){this.N.vW()}; g.H.XA=function(K,W,U){W=W===void 0?!1:W;U=U===void 0?{}:U;this.policy.j?this.W.XA(K,W,U):this.j.XA(K,W,U)}; g.H.VC=function(K,W){if(this.policy.X&&(this.wP||this.isSeeking()))return this.rk("sdai",{ignoreSkip:"1",isSkip:this.wP,isSeek:this.isSeeking(),t:K.toFixed(3)}),!1;var U=this.policy.X&&(this.policy.G||this.policy.A3),h=this.videoTrack.Wp.index.IQ(K),m=!1;if(U){var S;if(m=!((S=this.DA)==null||!S.SI(K,h,this.timestampOffset)))if(FI(this,K,K,h),this.U){var f;(f=this.U)==null||f.SI(K,h)}}else this.U&&(m=!!this.N.VC(K,this.U));if(!m)return this.handleError("ad.skipfailed",{dec:!!this.U,t:K.toFixed(3), sq:h}),!1;this.policy.X&&(this.rk("sdai",{skipAdStd:"1"}),this.wP=!0);if(this.policy.Ez){var G;(G=this.JK)==null||G.clear()}f$(this,this.timestampOffset-W);gn(this);this.policy.X&&(C7(this.Gm),wI(this.audioTrack),wI(this.videoTrack),this.uu());return!0}; g.H.getManifest=function(){return this.Gm}; g.H.isOffline=function(){return!!this.iX.getVideoData().cotn}; g.H.MF=function(K,W){this.iX.MF(K,W)}; g.H.hZ=function(K,W){if(this.policy.j)JH$(this,K,!0,W),this.X.Ul(!0,"utc"),this.TL();else if(W=this.iX.getVideoData().Zc){var U=this.G;U.Se=K;U.Zc=W;CV(this)}}; g.H.US=function(K){this.videoTrack.G=!1;this.audioTrack.G=!1;this.tO.j=!1;this.iX.US(K)}; g.H.Zk=function(K){this.tO.Zk(K-this.A7())}; g.H.s3=function(){this.iX.s3()}; g.H.WD=function(K){K!==this.policy.N2&&((this.policy.N2=K)||this.TL())}; g.H.ll=function(K){this.iX.ll(K)}; g.H.jw=function(K){this.iX.jw(K)}; g.H.k_=function(K,W,U){var h;(h=this.DA)==null||h.k_(K,W,U);this.policy.G&&(this.X.jV=void 0,this.TL())}; g.H.Px=function(K){var W;(W=this.DA)==null||W.Px(K)}; g.H.iQ=function(K,W){if(this.policy.G){var U,h=(U=K.OZ)==null?void 0:U[0],m,S,f;this.rk("clidai",{onqlst:1,len:((m=K.OZ)==null?void 0:m.length)||0,rn:W,evt:ie_(h==null?void 0:(S=h.Nk)==null?void 0:S.event),cid:(h==null?void 0:(f=h.Nk)==null?void 0:f.identifier)||"null",sq:(h==null?void 0:h.zI)||-1,trk:(h==null?void 0:h.trackType)||"null"});var G;(G=this.DA)==null||G.iQ(K,W,this.U||void 0)}}; g.H.prefetchKeyPlay=function(K,W){var U=this;B4(this)&&(this.Sh||(this.Sh=new r2(function(h){U.iX.qy(h)}),g.k(this,this.Sh)),joF(this.Sh,{r8:K, R9:W,iT:2}),this.TL())};g.H=g.Jt.prototype;g.H.VM=function(K,W,U,h,m,S){return this.S_.VM(K,W,U,h,m,S)}; g.H.U8=function(K,W,U,h,m,S){return this.S_.U8(K,W,U,h,m,S)}; g.H.Bs=function(K){return this.S_.Bs(K)}; g.H.HO=function(K){this.S_.HO(K)}; g.H.mj=function(K,W,U,h){return this.S_.mj(K,W,U,h)}; g.H.vW=function(){this.S_.vW()}; g.H.SI=function(K,W){this.S_.SI(K,W)}; g.H.Up=function(){this.S_.Up()}; g.H.ZB=f4(56);g.H.w_=function(K,W,U){this.S_.w_(K,W,U)}; g.H.mU=f4(59);g.H.gI=function(K,W,U,h,m,S,f,G,I){this.S_.gI(K,W,U,h,m,S,f,G,I)}; g.H.vZ=function(K){this.S_.vZ(K)}; g.H.Wg=function(K){return this.S_.Wg(K)}; g.H.Ei=function(K){return this.S_.Ei(K)}; g.H.qf=function(K){return this.S_.qf(K)};g.V(hP,g.GP);g.V(TP,hP);TP.prototype.G=function(K,W){if(K&&W){var U=Number(xT(K,"cpi"))*1+1;isNaN(U)||U<=0||Uthis.N&&(this.N=U,g.Tb(this.j)||(this.j={},this.W.stop(),this.X.stop())),this.j[W]=K,g.yG(this.X))}}; TP.prototype.U=function(){for(var K=g.z(Object.keys(this.j)),W=K.next();!W.done;W=K.next()){var U=W.value;W=this.publish;for(var h=this.N,m=g.wB(this.j[U]),S=[],f=g.z(m[6].split("&")),G=f.next();!G.done;G=f.next())G=G.value,G.indexOf("cpi=")===0?S.push("cpi="+h.toString()):G.indexOf("ek=")===0?S.push("ek="+g.kH(U)):S.push(G);m[6]="?"+S.join("&");U="skd://"+m.slice(2).join("");m=U.length*2;h=new Uint8Array(m+4);h[0]=m%256;h[1]=(m-h[0])/256;for(m=0;m0)for(var U=g.z(this.j),h=U.next();!h.done;h=U.next())if(W===h.value.info.cryptoPeriodIndex){W=!0;break a}W=!1}if(!W){W=(0,g.AI)();a:{U=K.cryptoPeriodIndex;if(!isNaN(U)){h=g.z(this.N.values());for(var m=h.next();!m.done;m=h.next())if(Math.abs(m.value.cryptoPeriodIndex-U)<=1){U=!0;break a}}U=!1}U?(U=K.j,U=Math.max(0,Math.random()*((isNaN(U)?120:U)-30))*1E3):U=0;this.publish("log_qoe",{wvagt:"delay."+U,cpi:K.cryptoPeriodIndex,reqlen:this.j.length}); U<=0?prp(this,K):(this.j.push({time:W+U,info:K}),g.yG(this.X,U))}}; wJ.prototype.QH=function(){this.j=[];hP.prototype.QH.call(this)};var $N={},KnR=($N.DRM_TRACK_TYPE_AUDIO="AUDIO",$N.DRM_TRACK_TYPE_SD="SD",$N.DRM_TRACK_TYPE_HD="HD",$N.DRM_TRACK_TYPE_UHD1="UHD1",$N);g.V(B$s,g.p);g.V(Bg$,g.GP);g.H=Bg$.prototype;g.H.TZ=function(K){var W=this;if(!(this.qs()||K.size<=0)){var U={};K.forEach(function(h,m){var S=q_(W.X)?m:h;m=new Uint8Array(q_(W.X)?h:m);q_(W.X)&&w$e(m);h=g.o0(m,4);w$e(m);m=g.o0(m,4);W.j[h]?W.j[h].status=S:W.j[m]?W.j[m].status=S:W.j[h]={type:"",status:S};gr2(W,W.j[h].type,U)}); IKC(this,",");VC(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.H.error=function(K,W,U,h){this.qs()||(this.publish("licenseerror",K,W,U,h),K==="drm.provision"&&(K=(Date.now()-this.G)/1E3,this.G=NaN,this.publish("ctmp","provf",{et:K.toFixed(3)})));CR(W)&&this.dispose()}; g.H.shouldRetry=function(K,W){return!K&&this.requestNumber===W.requestNumber}; g.H.QH=function(){this.j={};g.GP.prototype.QH.call(this)}; g.H.P3=function(){var K={ctype:this.J.contentType||"",length:this.J.initData.length,requestedKeyIds:this.Ns,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(K.keyStatuses=this.j);return K}; g.H.getInfo=function(){var K=this.W.join();if(vy(this)){var W=new Set,U;for(U in this.j)this.j[U].status!=="usable"&&W.add(this.j[U].type);K+="/UKS."+Array.from(W)}return K+="/"+this.cryptoPeriodIndex}; g.H.ej=function(){return this.url};g.V(Xs,g.p);g.H=Xs.prototype;g.H.Ox=function(K){if(this.U){var W=K.messageType||"license-request";this.U(new Uint8Array(K.message),W)}}; g.H.TZ=function(){this.Y&&this.Y(this.j.keyStatuses)}; g.H.onClosed=function(){this.qs()||g.PP("xboxone")&&this.N&&this.N("closedShouldNotRetry")}; g.H.B6=function(K){this.U&&this.U(K.message,"license-request")}; g.H.AN=function(K){if(this.N){if(this.X){var W=this.X.error.code;K=this.X.error.systemCode}else W=K.errorCode,K=K.systemCode;this.N("t.prefixedKeyError;c."+W+";sc."+K,W,K)}}; g.H.SO=function(){this.G&&this.G()}; g.H.update=function(K){var W=this;if(this.j)return this.j.update(K).then(null,bd(function(U){xSp(W,"t.update",U)})); this.X?this.X.update(K):this.element.addKey?this.element.addKey(this.J.keySystem,K,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.J.keySystem,K,this.initData,this.sessionId);return EM()}; g.H.QH=function(){this.j&&(this.jV?this.j.close().catch(g.eI):this.j.close());this.element=null;g.p.prototype.QH.call(this)};g.V(b1,g.p);g.H=b1.prototype;g.H.setServerCertificate=function(){return this.X.setServerCertificate?this.j.flavor==="widevine"&&this.j.Ug?this.X.setServerCertificate(this.j.Ug):eV(this.j)&&this.j.yC?this.X.setServerCertificate(this.j.yC):null:null}; g.H.createSession=function(K,W){var U=K.initData;if(this.j.keySystemAccess){W&&W("createsession");var h=this.X.createSession();H4(this.j)?U=i4p(U,this.j.yC):eV(this.j)&&(U=soe(U)||new Uint8Array(0));W&&W("genreq");K=h.generateRequest(K.contentType,U);var m=new Xs(null,null,null,h,null,this.Y);K.then(function(){W&&W("genreqsuccess")},bd(function(f){xSp(m,"t.generateRequest",f)})); return m}if(Dc(this.j))return wep(this,U);if(kUF(this.j))return zQp(this,U);if((h=this.element)==null?0:h.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,U);else{var S;(S=this.element)==null||S.webkitGenerateKeyRequest(this.j.keySystem,U)}return this.W=new Xs(this.element,this.j,U,null,null,this.Y)}; g.H.Ux=function(K){var W=nk$(this,K);W&&W.B6(K)}; g.H.hs=function(K){var W=nk$(this,K);W&&W.AN(K)}; g.H.aI=function(K){var W=nk$(this,K);W&&W.SO(K)}; g.H.getMetrics=function(){var K=null;if(this.X&&this.X.getMetrics)try{K=this.X.getMetrics()}catch(W){}return K}; g.H.QH=function(){this.N=this.X=null;var K;(K=this.W)==null||K.dispose();K=g.z(Object.values(this.G));for(var W=K.next();!W.done;W=K.next())W.value.dispose();this.G={};g.p.prototype.QH.call(this);delete this.element};g.H=I0.prototype;g.H.get=function(K){K=this.findIndex(K);return K!==-1?this.values[K]:null}; g.H.remove=function(K){K=this.findIndex(K);K!==-1&&(this.keys.splice(K,1),this.values.splice(K,1))}; g.H.removeAll=function(){this.keys=[];this.values=[]}; g.H.set=function(K,W){var U=this.findIndex(K);U!==-1?this.values[U]=W:(this.keys.push(K),this.values.push(W))}; g.H.findIndex=function(K){return g.Du(this.keys,function(W){return g.zk(K,W)})};g.V(Q_,g.GP);g.H=Q_.prototype;g.H.fem=function(K){this.Jc({onecpt:1});K.initData&&mGs(this,new Uint8Array(K.initData),K.initDataType)}; g.H.mkx=function(K){this.Jc({onndky:1});mGs(this,K.initData,K.contentType)}; g.H.Gi=function(K){this.Jc({onneedkeyinfo:1});this.C.L("html5_eme_loader_sync")&&(this.Y.get(K.initData)||this.Y.set(K.initData,K));jcF(this,K)}; g.H.KH=function(K){this.N.push(K);qN(this)}; g.H.createSession=function(K){var W=PrF(this)?ZgD(K):g.o0(K.initData);this.X.get(W);this.DA=!0;K=new Bg$(this.videoData,this.C,K,this.drmSessionId);this.X.set(W,K);K.subscribe("ctmp",this.d7,this);K.subscribe("keystatuseschange",this.TZ,this);K.subscribe("licenseerror",this.Kh,this);K.subscribe("newlicense",this.Z6,this);K.subscribe("newsession",this.Yi,this);K.subscribe("sessionready",this.P6,this);K.subscribe("fairplay_next_need_key_info",this.eO,this);this.C.L("html5_enable_vp9_fairplay")&&K.subscribe("qualitychange", this.e4,this);K.subscribe("sabrlicenseconstraint",this.KGe,this);GXp(K,this.W)}; g.H.Z6=function(K){this.qs()||(this.Jc({onnelcswhb:1}),K&&!this.heartbeatParams&&(this.heartbeatParams=K,this.publish("heartbeatparams",K)))}; g.H.Yi=function(){this.qs()||(this.Jc({newlcssn:1}),this.N.shift(),this.DA=!1,qN(this))}; g.H.P6=function(){if(Dc(this.j)&&(this.Jc({onsnrdy:1}),this.Le--,this.Le===0)){var K=this.Ms,W,U;(W=K.element)==null||(U=W.msSetMediaKeys)==null||U.call(W,K.N)}}; g.H.TZ=function(K){if(!this.qs()){this.eV||(this.eV=!0,this.C.G9()&&S_s(this));this.Jc({onksch:1});var W=this.e4;if(!vy(K)&&g.iC&&K.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var U="large";else{U=[];var h=!0;if(vy(K))for(var m=g.z(Object.keys(K.j)),S=m.next();!S.done;S=m.next())S=S.value,K.j[S].status==="usable"&&U.push(K.j[S].type),K.j[S].status!=="unknown"&&(h=!1);if(!vy(K)||h)U=K.W;U=hOR(U)}W.call(this,U);if(!vy(K))for(W={},U=g.z(K.W),h=U.next();!h.done;h=U.next())gr2(K, h.value,W);this.videoData.authorizedFormats=K.authorizedFormats;this.publish("keystatuseschange",K)}}; g.H.d7=function(K,W){this.qs()||this.publish("ctmp",K,W)}; g.H.eO=function(K,W){this.qs()||this.publish("fairplay_next_need_key_info",K,W)}; g.H.Kh=function(K,W,U,h){this.qs()||(this.videoData.L("html5_log_drm_metrics_on_error")&&S_s(this),this.publish("licenseerror",K,W,U,h))}; g.H.eQ=function(){return this.J}; g.H.e4=function(K){var W=g.xh("auto",K,!1,"l");if(this.videoData.DZ){if(this.J.equals(W))return}else if(Dks(this.J,K))return;this.J=W;this.publish("qualitychange");this.Jc({updtlq:K})}; g.H.KGe=function(K){this.videoData.sabrLicenseConstraint=K}; g.H.QH=function(){var K,W;this.j.keySystemAccess&&this.element&&!((K=this.mediaElement)==null?0:(W=K.iX)==null?0:W.vu())&&(this.Ns?this.element.setMediaKeys(null).catch(g.eI):this.element.setMediaKeys(null));this.element=null;this.N=[];K=g.z(this.X.values());for(W=K.next();!W.done;W=K.next())W=W.value,W.unsubscribe("ctmp",this.d7,this),W.unsubscribe("keystatuseschange",this.TZ,this),W.unsubscribe("licenseerror",this.Kh,this),W.unsubscribe("newlicense",this.Z6,this),W.unsubscribe("newsession",this.Yi, this),W.unsubscribe("sessionready",this.P6,this),W.unsubscribe("fairplay_next_need_key_info",this.eO,this),this.C.L("html5_enable_vp9_fairplay")&&W.unsubscribe("qualitychange",this.e4,this),W.dispose();this.X.clear();this.G.removeAll();this.Y.removeAll();this.heartbeatParams=null;g.GP.prototype.QH.call(this)}; g.H.P3=function(){for(var K={systemInfo:this.j.P3(),sessions:[]},W=g.z(this.X.values()),U=W.next();!U.done;U=W.next())K.sessions.push(U.value.P3());return K}; g.H.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.U?"/KR":"")}; g.H.Jc=function(K,W){W=W===void 0?!1:W;this.qs()||(GR(K),(this.C.G9()||W)&&this.publish("ctmp","drmlog",K))};var $FC=!1,WoL=!1;g.V(QF,g.p);g.H=QF.prototype;g.H.eF=function(){return!!this.Bi}; g.H.gG=function(){return this.X}; g.H.handleError=function(K){var W=this;EqL(this,K);var U;if(U=!((K.errorCode==="html5.invalidstate"||K.errorCode==="fmt.unplayable"||K.errorCode==="fmt.unparseable")&&wu(this,K.errorCode,K.details)))if(U=!nOD(this,K))this.videoData.errorDetail==="7"&&g.PJ(this.Tm)?(aX2(this,"innertube_player_reload_required"),U=!0):U=!1,U=!U;if(U)if(this.Tm.Ms!=="yt"&&RUF(this,K)&&this.videoData.TI&&(0,g.AI)()/1E3>this.videoData.TI&&this.Tm.Ms==="hm"&&(U=Object.assign({e:K.errorCode},K.details),U.stalesigexp="1", U.expire=this.videoData.TI,U.init=this.videoData.yF/1E3,U.now=(0,g.AI)()/1E3,U.systelapsed=((0,g.AI)()-this.videoData.yF)/1E3,K=new g.F3(K.errorCode,U,2),this.iX.jB(K.errorCode,2,"SIGNATURE_EXPIRED",GR(K.details))),CR(K.severity)){var h;U=(h=this.iX.loader)==null?void 0:h.j.j;if(this.Tm.L("html5_use_network_error_code_enums"))if(jup(K)&&U&&U.isLocked())var m="FORMAT_UNAVAILABLE";else if(this.Tm.G||K.errorCode!=="auth"||K.details.rc!==429)K.errorCode==="ump.spsrejectfailure"&&(m="HTML5_SPS_UMP_STATUS_REJECTED"); else{m="TOO_MANY_REQUESTS";var S="6"}else jup(K)&&U&&U.isLocked()?m="FORMAT_UNAVAILABLE":this.Tm.G||K.errorCode!=="auth"||K.details.rc!=="429"?K.errorCode==="ump.spsrejectfailure"&&(m="HTML5_SPS_UMP_STATUS_REJECTED"):(m="TOO_MANY_REQUESTS",S="6");this.iX.jB(K.errorCode,K.severity,m,GR(K.details),S)}else this.iX.publish("nonfatalerror",K),h=/^pp/.test(this.videoData.clientPlaybackNonce),this.aR(K.errorCode,K.details),h&&K.errorCode==="manifest.net.connect"&&(K="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.AI)(),K5(K,"manifest",function(f){W.G=!0;W.rk("pathprobe",f)},function(f){W.aR(f.errorCode,f.details)}))}; g.H.rk=function(K,W){this.iX.S0.rk(K,W)}; g.H.aR=function(K,W){W=GR(W);this.iX.S0.aR(K,W)};el.prototype.gx=function(K){var W=nZL(this);if(!K)return{TC:BE,l1:BE,DS:BE,J0:BE,bJ:BE,LW:BE,Y3:W};var U=BE;if(ru(W)||this.L("html5_perf_cap_override_sticky"))U=bN(this,K);return{TC:U,l1:yqz(this,K),DS:h1s(this,K),J0:h2(this,K.videoData),bJ:j1(this,K.videoData,K),LW:i2L(this,K),Y3:W}}; el.prototype.gK=function(K){if(g.PJ(this.C)&&T_(this.C.U,a$.HEIGHT))var W=K.j.videoInfos[0].video.qualityOrdinal;else{var U=this.fA(!!K.j.j);WE(K.videoData)||te(K.videoData);K=K.j.videoInfos;if(K.length){var h=.85,m=K[0].video;m.projectionType!=="MESH"&&m.projectionType!=="EQUIRECTANGULAR"&&m.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||hu||(h=.45);m=g.jV(this.C.experiments,"html5_viewport_undersend_maximum");for(var S=0;S=0,stateAtSend:W,joinLatencySecs:S,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:h,playerCanaryStage:m,isAd:this.provider.videoData.isAd(),liveMode:U,hasDrm:!!g.rh(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:HT(this.provider.videoData)};K||g.N_("html5PlayerHealthEvent",W);this.N=!0;this.dispose()}}; Wm.prototype.QH=function(){this.N||this.send();window.removeEventListener("error",this.cL);window.removeEventListener("unhandledrejection",this.cL);g.p.prototype.QH.call(this)}; var pB3=/\bnet\b/;Srp.prototype.update=function(){if(this.Y){var K=this.Ho()||0,W=g.gh(this.provider);K>=this.provider.iX.getDuration()-.1&&(this.previouslyEnded=!0);if(K!==this.j||zRC(this,K,W)){var U;if(!(U=KW-this.uA+2||zRC(this,K,W))){U=this.provider.iX.getVolume();var h=U!==this.jV,m=this.provider.iX.isMuted()?1:0;m!==this.J?(this.J=m,U=!0):(!h||this.W>=0||(this.jV=U,this.W=W),U=W-this.W,this.W>=0&&U>2?(this.W=-1,U=!0):U=!1)}U&&(kZ(this),this.N=K);this.uA=W;this.j=K}}}; Srp.prototype.Ho=function(){var K=this.provider.iX.Ho();return cO(this.provider.videoData)?K+this.provider.iX.A7():K};OR.prototype.send=function(K){var W=this;if(!this.Pp){var U=XV(this),h=g.sL(this.uri,U);this.C.L("vss_through_gel_double")&&JFs(h);this.DA&&!this.C.L("html5_simplify_pings")?pFF(this,h):FR(this,K).then(function(m){W.C.L("html5_switch_vss_to_post")&&(m=m||{},m.method="POST");W.DA&&(m=m||{},m.method="POST",m.postParams={atr:W.attestationResponse});wH(h,m,{token:W.uX,XW:W.Qg,mdxEnvironment:W.mdxEnvironment},W.C,K,W.hK,W.isFinal&&W.pC||W.eV||W.N&&W.rS)}); this.Pp=!0}}; OR.prototype.X=function(K){K===void 0&&(K=NaN);return Number(K.toFixed(3)).toString()}; var YN={},ul2=(YN.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,YN.LIVING_ROOM_APP_MODE_MAIN=1,YN.LIVING_ROOM_APP_MODE_KIDS=2,YN.LIVING_ROOM_APP_MODE_MUSIC=3,YN.LIVING_ROOM_APP_MODE_UNPLUGGED=4,YN.LIVING_ROOM_APP_MODE_GAMING=5,YN),Ox={},FOR=(Ox.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Ox.EMBEDDED_PLAYER_MODE_DEFAULT=1,Ox.EMBEDDED_PLAYER_MODE_PFP=2,Ox.EMBEDDED_PLAYER_MODE_PFL=3,Ox);g.V(oy,g.p);g.H=oy.prototype; g.H.Uw=function(){if(!this.N){this.provider.videoData.HJ===16623&&g.eI(Error("Playback for EmbedPage"));var K=gD(this,"playback");this.Y=PKC(this);bg_(this.j);K.Y=vH(this);this.X>0&&(K.j-=this.X);K.send();if(this.provider.videoData.b7){K=this.provider.C;var W=this.provider.videoData,U={html5:"1",video_id:W.videoId,cpn:W.clientPlaybackNonce,ei:W.eventId,ptk:W.b7,oid:W.yy,ptchn:W.Nj,pltype:W.W5,content_v:xGC(W)};W.tP&&Object.assign(U,{m:W.tP});K=g.sL(K.M$+"ptracking",U);wx(this,K)}this.provider.videoData.An|| (NDp(this),rLY(this));this.N=!0;K=this.j;K.j=K.Ho();K.uA=g.gh(K.provider);!(K.N===0&&K.j<5)&&K.j-K.N>2&&(K.N=K.j);K.Y=!0}}; g.H.onProgress=function(){this.j.update();bcp(this)&&(NDp(this),rLY(this))}; g.H.QH=function(){g.p.prototype.QH.call(this);pq(this);Tas(this.j)}; g.H.P3=function(){return XV(gD(this,"playback"))}; g.H.h3=function(K){var W=gD(this,"engage");W.Ns=K;return DGp(W,K5p(this.provider))};irp.prototype.isEmpty=function(){return this.endTime===this.startTime};ZW.prototype.L=function(K){return this.C.L(K)}; ZW.prototype.getCurrentTime=function(){return this.iX.getCurrentTime()}; ZW.prototype.Ho=function(){return this.iX.Ho()}; var Yo2={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.V(g.yz,g.p);g.H=g.yz.prototype;g.H.Uw=function(){this.j&&this.j.Uw();this.X&&this.X.Uw()}; g.H.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.aQ){var K;(K=this.N.get(this.aQ))==null||K.onProgress()}else if(this.j)this.j.onProgress()}; g.H.Oj=function(K){this.qoe&&this.qoe.Oj(K)}; g.H.fN=f4(29);g.H.xL=f4(35);g.H.Ku=function(K,W){this.qoe&&this.qoe.Ku(K,W)}; g.H.UF=function(){if(this.provider.videoData.enableServerStitchedDai&&this.aQ){var K;(K=this.N.get(this.aQ))!=null&&kZ(K.j)}else this.j&&kZ(this.j.j)}; g.H.aR=function(K,W){this.qoe&&lmp(this.qoe,K,W);if(this.X)this.X.onError(K)}; g.H.x8=function(K,W){switch(K){case "M":var U;(U=this.qoe)==null||U.x8(K,W);break;case "A":var h;(h=this.qoe)==null||h.x8(K)}}; g.H.onPlaybackRateChange=function(K){if(this.qoe)this.qoe.onPlaybackRateChange(K);this.j&&kZ(this.j.j)}; g.H.va=f4(52);g.H.rk=function(K,W,U){this.qoe&&this.qoe.rk(K,W,U)}; g.H.Fa=function(K,W,U){this.qoe&&this.qoe.Fa(K,W,U)}; g.H.cD=function(K){var W;(W=this.qoe)==null||W.cD(K)}; g.H.jL=function(K){var W;(W=this.qoe)==null||W.jL(K)}; g.H.I8=function(K,W,U,h){var m;(m=this.qoe)==null||m.I8(K,W,U,h)}; g.H.jw=function(K){this.qoe&&this.qoe.jw(K)}; g.H.T4=function(K,W,U){this.qoe&&this.qoe.T4(K,W,U)}; g.H.UP=f4(23);g.H.Jq=function(){if(this.qoe)return this.qoe.Jq()}; g.H.P3=function(){if(this.provider.videoData.enableServerStitchedDai&&this.aQ){var K,W;return(W=(K=this.N.get(this.aQ))==null?void 0:K.P3())!=null?W:{}}return this.j?this.j.P3():{}}; g.H.Bz=function(){var K;return(K=this.qoe)==null?void 0:K.Bz()}; g.H.ir=function(K,W){var U;(U=this.qoe)==null||U.ir(K,W)}; g.H.h3=function(K){return this.j?this.j.h3(K):function(){}}; g.H.getVideoData=function(){return this.provider.videoData}; g.H.resume=function(){this.qoe&&this.qoe.resume()};g.V(g.jO,g.p);g.H=g.jO.prototype;g.H.lG=function(K,W){this.sync();W&&this.j.array.length>=2E3&&this.nj("captions",1E4);W=this.j;if(K.length>1&&K.length>W.array.length)W.array=W.array.concat(K),W.array.sort(W.j);else{K=g.z(K);for(var U=K.next();!U.done;U=K.next())U=U.value,!W.array.length||W.j(U,W.array[W.array.length-1])>0?W.array.push(U):g.qP(W.array,U,W.j)}this.N=NaN;this.sync()}; g.H.hD=function(K){K.length>1E4&&g.eI(new g.EB("Over 10k cueRanges removal occurs with a sample: ",K[0]));if(!this.qs()){var W=new Set(K);this.X=this.X.filter(function(U){return!W.has(U)}); P4D(this.j,W);this.sync()}}; g.H.sW=function(K,W){if(!this.qs()){var U=this.E4().find(function(h){return h.id===W&&h.namespace===K}); U&&this.hD([U])}}; g.H.nj=function(K,W){var U=(isNaN(this.N)?Kmz(this):this.N)-W;W=this.E4().filter(function(h){return h.namespace===K&&h.endthis.j,S=g.C(U,8)&&g.C(U,16),f=this.iX.dj().isBackground()||U.isSuspended();FZ(this,this.JK,S&&!f,m,"qoe.slowseek",function(){},"timeout"); var G=isFinite(this.j);G=S&&G&&TlF(W,this.j);var I=!h||Math.abs(h-this.j)>10,d=this.C.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),J=h===0&&this.X&&[11,10].includes(this.X);FZ(this,this.Pp,G&&I&&!f&&(!d||!J),m,"qoe.slowseek",function(){W.seekTo(K.j)},"set_cmt"); I=G&&iO(W.Po(),this.j);var e=this.iX.loader;G=!e||e.Fi();var E=function(){W.seekTo(K.j+.001)}; FZ(this,this.eV,I&&G&&!f,m,"qoe.slowseek",E,"jiggle_cmt");G=function(){return K.iX.Os()}; FZ(this,this.tK,I&&!f,m,"qoe.slowseek",G,"new_elem");var B=Ut(U);J=U.isBuffering();var D=W.Po(),a=gH(D,h),Q=a>=0&&D.end(a)>h+5;I=B&&J&&Q;d=this.iX.getVideoData();FZ(this,this.Le,h<.002&&this.j<.002&&S&&g.PJ(this.C)&&g.ud(d)&&!f,m,"qoe.slowseek",G,"slow_seek_shorts");FZ(this,this.jV,d.WN()&&S&&!f&&!d.J,m,"qoe.slowseek",G,"slow_seek_gapless_shorts");FZ(this,this.Ms,I&&!f,B&&!J,"qoe.longrebuffer",E,"jiggle_cmt");FZ(this,this.uX,I&&!f,B&&!J,"qoe.longrebuffer",G,"new_elem_nnr");if(e){var u=e.getCurrentTime(); S=W.ZZ();S=g7s(S,u);S=!e.isSeeking()&&h===S;FZ(this,this.DO,B&&J&&S&&!f,B&&!J&&!S,"qoe.longrebuffer",function(){W.seekTo(u)},"seek_to_loader")}S={}; E=gH(D,Math.max(h-3.5,0));var O=E>=0&&h>D.end(E)-1.1,N=E>=0&&E+1=0&&O&&N<11;S.close2edge=O;S.gapsize=N;S.buflen=D.length;this.X&&(S.seekSour=this.X);FZ(this,this.Ns,B&&J&&!f,B&&!J,"qoe.longrebuffer",function(){},"timeout",S); S=U.isSuspended();S=this.iX.B0()&&!S;FZ(this,this.Y,S,!S,"qoe.start15s",function(){K.iX.CN("ad")},"ads_preroll_timeout"); S=this.C.experiments.Rk("html5_use_playback_rate_in_skip_slow_ad")?this.iX.getPlaybackRate()*1E3:1E3;a=h-this.W5;FZ(this,this.Bp,g.ud(d)&&e,B&&!J,"qoe.longrebuffer",function(){K.iX.ll()},"reset_media_source"); FZ(this,this.vp,g.ud(d)&&e,B&&!J,"qoe.longrebuffer",G,"reset_media_element");this.W===0&&(this.G=h);e=J&&this.j===0&&h>1&&h===this.G;FZ(this,this.hK,g.ud(d)&&e,B&&!J,"qoe.slowseek",function(){W.seekTo(0)},"reseek_after_time_jump"); f=U.isOrWillBePlaying()&&!f;Q=this.iX.Id()-h<6&&!Q&&this.iX.AR();FZ(this,this.J,d.WN()&&f&&J&&Q,B&&!J,"qoe.longrebuffer",function(){K.iX.Os(!1,!0)},"handoff_end_long_buffer_reload"); f=this.X===104||this.iX.Gj;U=IG(d)&&d.isAd()&&!d.J&&f&&(J||g.C(U,8)&&g.C(U,16));FZ(this,this.Ik,U,m,"qoe.start15s",G,"gapless_ad_slow_start");U=IG(d)&&!d.J&&f&&I;FZ(this,this.gk,U,m,"qoe.longrebuffer",G,"gapless_slow_start");this.W=h;this.U.start()}}; mO.prototype.aR=function(K,W,U){W=this.P3(W);W.wn=U;W.wdup=this.N[K]?"1":"0";this.iX.aR(new g.F3(K,W));this.N[K]=!0}; mO.prototype.P3=function(K){K=Object.assign(this.iX.P3(!0),K.P3());this.j&&(K.stt=this.j.toFixed(3));this.iX.getVideoData().isLivePlayback&&(K.ct=this.iX.getCurrentTime().toFixed(3),K.to=this.iX.A7().toFixed(3));delete K.uga;delete K.euri;delete K.referrer;delete K.fexp;delete K.vm;return K}; hl.prototype.reset=function(){this.j=this.X=this.N=this.startTimestamp=0;this.W=!1}; hl.prototype.test=function(K){if(!this.U||this.X)return!1;if(!K)return this.reset(),!1;K=(0,g.AI)();if(!this.startTimestamp)this.startTimestamp=K,this.N=0;else if(this.N>=this.U)return this.X=K,!0;this.N+=1;return!1}; hl.prototype.P3=function(){var K={},W=(0,g.AI)();this.startTimestamp&&(K.wsd=(W-this.startTimestamp).toFixed());this.X&&(K.wtd=(W-this.X).toFixed());this.j&&(K.wssd=(W-this.j).toFixed());return K};g.V(Kse,g.p);g.H=Kse.prototype;g.H.setMediaElement=function(K){(this.mediaElement=K)?(this.mediaElement&&(this.U||this.N||!this.mediaElement.j3()||this.seekTo(.01,{JS:"seektimeline_setupMediaElement"})),xD(this)):eE(this)}; g.H.getCurrentTime=function(K){K=K===void 0?!1:K;if(mg(this.iX)){if(this.L("html5_use_centralized_player_time")&&!K&&!isNaN(this.G))return this.G;if(!isNaN(this.X))return this.X}else{if(this.L("html5_use_centralized_player_time")&&!K&&!isNaN(this.G)&&isFinite(this.G))return this.G;if(!isNaN(this.X)&&isFinite(this.X))return this.X}return this.mediaElement&&RS2(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.N||0}; g.H.S5=function(){return this.Pp}; g.H.Ho=function(){return this.getCurrentTime()-this.A7()}; g.H.FX=function(){return this.j?this.j.FX():Infinity}; g.H.isAtLiveHead=function(K){if(!this.j)return!1;K===void 0&&(K=this.getCurrentTime());return Lo(this.j,K)}; g.H.pw=function(){return!!this.j&&this.j.pw()}; g.H.seekTo=function(K,W){var U=W===void 0?{}:W;W=U.QG===void 0?!1:U.QG;var h=U.Db===void 0?0:U.Db;var m=U.Vk===void 0?!1:U.Vk;var S=U.Nh===void 0?0:U.Nh;var f=U.JS===void 0?"":U.JS;var G=U.seekSource===void 0?void 0:U.seekSource;var I=U.zo===void 0?!1:U.zo;var d=U.Xa===void 0?!1:U.Xa;U=U.IY===void 0?!1:U.IY;I&&(K+=this.A7());HT(this.videoData)&&G===29&&(this.Pp=void 0);I=K=this.jj())||!g.aG(this.videoData),a||(Q={st:Q,mst:this.jj()},this.j&&this.L("html5_high_res_seek_logging")&&(Q.ht=this.j.FX(),Q.adft=rl(this.j)),this.iX.rk("seeknotallowed",Q)),Q=a));if(!Q)return this.W&&(this.W=null,EK(this)),g.EC(this.getCurrentTime());Q=.005;d&&this.L("html5_sabr_seek_no_shift_tolerance")&&(Q=0);if(Math.abs(K-this.X)<=Q&&this.hK)return this.U;f&&(Q=K,this.C.G9()||this.L("html5_log_seek_reasons"))&& (f={reason:f,tgt:Q},this.L("html5_sabr_csdai_seek_log")&&(f.source=G),this.iX.rk("seekreason",f));G&&(this.Ms.X=G);this.hK&&eE(this);this.U||(this.U=new Y2);K&&!isFinite(K)&&YJe(this,!1);(f=U||I)||(f=K,f=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.j&&!(this.mediaElement&&this.mediaElement.yn()>0&&VK(this.mediaElement)>0)||tc(this.videoData)&&this.Cr()===this.jj(!1)?0:isFinite(f)||!tc(this.videoData)));f||(K=XO(this,K,m));K&&!isFinite(K)&&YJe(this,!1);this.L("html5_use_centralized_player_time")? this.G=K:this.X=this.N=K;this.vp=S;this.Y=0;this.j&&(m=this.j,S=K,S42(m,S,!1),f5s(m,S));m=this.iX;S=K;f={QG:W,seekSource:G};m.tS.N=S;U=m.S8;U.mediaTime=S;U.j=!0;f.QG&&m.lR(f);f=S>m.videoData.endSeconds&&S>m.videoData.limitedPlaybackDurationInSeconds;m.OL&&f&&isFinite(S)&&a8(m);SW.start&&a8(this.iX);return this.U}; g.H.jj=function(K){if(!this.videoData.isLivePlayback)return this.iX.videoData.jj();var W;return ZM(this.videoData)&&((W=this.mediaElement)==null?0:W.isPaused())&&this.videoData.j?(K=this.getCurrentTime(),RPF(this.hv(K)*1E3)+K):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&HT(this.videoData)&&this.videoData.j?K?this.videoData.j.Ns||0:this.videoData.j.q7||0:tc(this.videoData)&&this.videoData.Cf&&this.videoData.j?this.videoData.j.jj()+this.timestampOffset:this.videoData.N&&this.videoData.N.j? !K&&this.j?this.j.FX():this.iX.videoData.jj()+this.timestampOffset:this.mediaElement?aC()?RPF(this.mediaElement.pF().getTime()):VK(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.H.Cr=function(){if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&HT(this.videoData)){var K;return((K=this.videoData.j)==null?void 0:K.LG)||0}K=this.videoData?this.videoData.Cr()+this.timestampOffset:this.timestampOffset;if(ZM(this.videoData)&&this.videoData.j){var W,U=Number((W=this.videoData.progressBarStartPosition)==null?void 0:W.utcTimeMillis)/1E3;if(!isNaN(U)&&(W=this.eh(U),!isNaN(W)))return Math.max(K,W)}return K}; g.H.Fy=function(){this.U||this.seekTo(this.N,{JS:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.H.zb=function(){return this.hK&&!isFinite(this.X)}; g.H.QH=function(){Zx(this,null);this.Ms.dispose();g.p.prototype.QH.call(this)}; g.H.P3=function(){var K={};this.loader&&Object.assign(K,this.loader.P3());this.mediaElement&&Object.assign(K,this.mediaElement.P3());return K}; g.H.yu=function(K){this.timestampOffset=K}; g.H.getStreamTimeOffset=function(){return tc(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.H.A7=function(){return this.timestampOffset}; g.H.hv=function(K){return this.videoData&&this.videoData.j?this.videoData.j.hv(K-this.timestampOffset):NaN}; g.H.tM=function(){if(!this.mediaElement)return 0;if(S_(this.videoData)){var K=this.mediaElement,W=K.Po();K=(Ao(W)&&K.getDuration()?W.end(W.length-1):0)+this.timestampOffset-this.Cr();W=this.jj()-this.Cr();return Math.max(0,Math.min(1,K/W))}return this.mediaElement.tM()}; g.H.St=function(K){this.J&&(this.J.j=K)}; g.H.hZ=function(K,W,U){this.iX.rk("requestUtcSeek",{time:K});HT(this.videoData)&&(this.Pp=K);var h;(h=this.loader)==null||h.hZ(K,U);W&&(this.DA=W)}; g.H.US=function(K){HT(this.videoData)&&(this.Pp=void 0);this.DA?(this.iX.rk("utcSeekingFallback",{source:"streamTime",timeSeconds:this.DA}),this.iX.seekTo(this.DA,{JS:"utcSeekingFallback_streamTime"}),this.DA=0):(K=this.eh(K),isNaN(K)||(this.iX.rk("utcSeekingFallback",{source:"estimate",timeSeconds:K}),this.iX.seekTo(K,{JS:"utcSeekingFallback_estimate"})))}; g.H.s3=function(){this.DA=0}; g.H.eh=function(K){var W=this.getCurrentTime();if(isNaN(W))return NaN;var U=this.hv(W);return isNaN(U)?NaN:K-(U-W)}; g.H.L=function(K){return this.C&&this.C.L(K)};g.V(Jq,g.p);Jq.prototype.start=function(){this.X.start()}; Jq.prototype.stop=function(){this.X.stop()}; Jq.prototype.clear=function(){for(var K=g.z(this.j.values()),W=K.next();!W.done;W=K.next())W.value.clear()}; Jq.prototype.sample=function(){for(var K=g.z(this.N),W=K.next();!W.done;W=K.next()){var U=g.z(W.value);W=U.next().value;U=U.next().value;this.j.has(W)||this.j.set(W,new Ag2(ob3.has(W)));this.j.get(W).update(U())}this.X.start()}; var ob3=new Set(["networkactivity"]);Ag2.prototype.update=function(K){this.X?(this.buffer.add(K-this.j||0),this.j=K):this.buffer.add(K)}; Ag2.prototype.clear=function(){this.buffer.clear();this.j=0};IM.prototype.rr=function(){return this.started}; IM.prototype.start=function(){this.started=!0}; IM.prototype.reset=function(){this.finished=this.started=!1};var VqD=!1;g.V(g.Bb,g.GP);g.H=g.Bb.prototype;g.H.QH=function(){g.Pa(this.T2);BPp(this.mG);this.visibility.unsubscribe("visibilitystatechange",this.mG);kH$(this.S0);g.vZ(this.S0);DF(this);g.MU.tD(this.IT);this.q2();this.T7=null;g.vZ(this.videoData);g.vZ(this.a5);g.vZ(this.Ur);g.vZ(this.dJ);g.Pz(this.Qnx);this.OL=null;g.GP.prototype.QH.call(this)}; g.H.T4=function(K,W,U,h,m){if(this.C.L("html5_log_ad_playback_docid")){var S=this.S0;if(S.qoe){S=S.qoe;var f=this.C.Ms||"yt";g.Fa(S,g.gh(S.provider),"ad_playback",[K,W,U,m,f])}}else this.S0.T4(K,W,U);this.L("html5_log_media_perf_info")&&this.rk("adloudness",{ld:h.toFixed(3),cpn:K})}; g.H.B9=function(){var K;return(K=this.loader)==null?void 0:K.B9()}; g.H.Jg=function(){var K;return(K=this.loader)==null?void 0:K.Jg()}; g.H.E0=function(){var K;return(K=this.loader)==null?void 0:K.E0()}; g.H.X7=function(){var K;return(K=this.loader)==null?void 0:K.X7()}; g.H.nC=function(){return this.videoData.nC()}; g.H.vu=function(){return this.L("html5_not_reset_media_source")}; g.H.Kx=function(){this.videoData.Y&&(this.videoData.NN=this.videoData.NN||this.vl.E5().B9(),this.videoData.WS=this.videoData.WS||this.vl.E5().Jg());if(oos(this.videoData)||!Y9(this.videoData)){var K=this.videoData.errorDetail;this.jB(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),K,K,this.videoData.hF||void 0)}this.L("html5_generate_content_po_token")&&this.m0();this.L("html5_enable_d6de4")&&this.WV()}; g.H.getVideoData=function(){return this.videoData}; g.H.V=function(){return this.C}; g.H.gx=function(){return this.Dg.gx(this.T7)}; g.H.dj=function(){return this.visibility}; g.H.sO=function(){return this.mediaElement&&this.mediaElement.Ib()?this.mediaElement.H3():null}; g.H.lY=function(){return this.mediaElement}; g.H.Xi=function(){if(this.videoData.errorCode)return!1;this.V().G&&this.V().houseBrandUserStatus&&this.rk("hbut",{status:this.V().houseBrandUserStatus},!0);if(this.videoData.Av())return!0;this.jB("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.H.ZM=function(K){(K=K===void 0?!1:K)||mDL(this.S0);this.Mo=K;!this.Xi()||this.X4.rr()?Dfp(this)&&this.X4.rr()&&!this.X4.finished&&!this.Mo&&this.B8():(this.X4.start(),K=this.S0,g.gh(K.provider),K.qoe&&w5p(K.qoe),this.B8())}; g.H.B8=function(){if(this.videoData.isLoaded()){var K=this.a5;g.jV(K.Tm.experiments,"html5_player_min_build_cl")>0&&g.jV(K.Tm.experiments,"html5_player_min_build_cl")>819955386&&aX2(K,"oldplayer");hdz(this)}else this.videoData.Ea||this.videoData.N2?this.Mo&&Dfp(this)||(this.videoData.Ea?Oxe(this.videoData):(K=this.S0,K.qoe&&(K=K.qoe,hZ(K,"protected"),K.provider.videoData.U?K.u6():K.provider.videoData.subscribe("dataloaded",K.u6,K)),KfD(this.videoData))):!this.videoData.loading&&this.r9&&T3L(this)}; g.H.ya=function(K){this.S_=K;this.loader&&(ESC(this.loader,new g.Jt(K)),this.rk("sdai",{sdsstm:1}))}; g.H.k_=function(K,W,U){var h;(h=this.loader)==null||h.k_(K,W,U)}; g.H.Px=function(K){var W;(W=this.loader)==null||W.Px(K)}; g.H.kV=f4(8);g.H.isFullscreen=function(){return this.visibility.isFullscreen()}; g.H.isBackground=function(){return this.visibility.isBackground()}; g.H.yV=function(){var K=this;Bp(this).then(function(){return wh(K)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.H.xl=function(){this.mediaElement&&this.mediaElement.activate();this.ZM();this.Xi()&&!g.C(this.playerState,128)&&(this.Nr.rr()||(this.Nr.start(),this.videoData.M9?this.uY(Bu(this.playerState,4)):this.uY(Bu(Bu(this.playerState,8),1))),Hp(this))}; g.H.cW=function(){return this.X4.finished}; g.H.sendAbandonmentPing=function(){g.C(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.jy(!0),kH$(this.S0),g.vZ(this.S0),g.MU.tD(this.IT))}; g.H.Cu=function(K,W,U){K=K===void 0?!0:K;(W===void 0||W)&&this.mediaElement&&this.mediaElement.pause();K&&U&&this.loader&&tc(this.videoData)&&this.loader.I8(U);this.uY(K?new g.Kw(14):new g.Kw)}; g.H.JZ=function(){this.S0.UF()}; g.H.jB=function(K,W,U,h,m,S){var f,G;g.yT(Ljf,U)?f=U:U?G=U:f="GENERIC_WITHOUT_LINK";h=(h||"")+(";a6s."+ft());if(K==="auth"||K==="drm.auth"||K==="heartbeat.stop")U&&(h+=";r."+U.replaceAll(" ","_")),S&&(h+="sr."+S.replaceAll(" ","_"));W={errorCode:K,errorDetail:m,errorMessage:G||g.fe[f]||"",YY:f,hF:S||"",ZV:h,BE:W,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=K;Dn(this,"dataloaderror");this.uY(E4(this.playerState,128,W));g.MU.tD(this.IT);DF(this);this.rX()}; g.H.CN=function(K){this.Q3=this.Q3.filter(function(W){return K!==W}); this.Nr.rr()&&Hp(this)}; g.H.kF=function(){var K;(K=!!this.Q3.length)||(K=this.b5.j.array[0],K=!!K&&K.start<=-0x8000000000000);return K}; g.H.pw=function(){return this.tS.pw()}; g.H.isPlaying=function(){return this.playerState.isPlaying()}; g.H.jG=function(){return this.playerState.jG()&&this.videoData.M9}; g.H.getPlayerState=function(){return this.playerState}; g.H.wz=function(K){var W;(W=this.loader)==null||W.wz(K)}; g.H.VY=function(K){var W;(W=this.loader)==null||W.VY(K)}; g.H.getPlayerType=function(){return this.playerType}; g.H.getPreferredQuality=function(){if(this.T7){var K=this.T7;K=K.videoData.ul.compose(K.videoData.Nc);K=JO(K)}else K="auto";return K}; g.H.IN=f4(16);g.H.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.H.setMediaElement=function(K){if(this.mediaElement&&K.H3()===this.mediaElement.H3()&&(K.isView()||this.mediaElement.isView())){if(K.isView()||!this.mediaElement.isView())this.ac(),this.mediaElement=K,this.mediaElement.iX=this,kQY(this),this.tS.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.q2();if(!this.playerState.isError()){var W=Ro(this.playerState,512);g.C(W,8)&&!g.C(W,2)&&(W=Bu(W,1));K.isView()&&(W=Ro(W,64));this.uY(W)}this.mediaElement=K;this.mediaElement.iX=this;!g.PJ(this.C)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);kQY(this);this.tS.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.a5.eF()&&Bjp(this.mediaElement)}}; g.H.q2=function(K,W,U){K=K===void 0?!1:K;W=W===void 0?!1:W;U=U===void 0?!1:U;if(this.mediaElement){var h=this.getCurrentTime();h>0&&(this.tS.N=h);this.tS.setMediaElement(null);!K&&this.vu()?bTY(this):this.Lw(U);this.loader&&(gn(this.loader),YX(this,W));this.bj.stop();if(this.mediaElement&&(!this.Nr.rr()&&!this.B0()||this.playerState.isError()||g.C(this.playerState,2)||this.uY(Bu(this.playerState,512)),this.mediaElement)){this.ac();if(K||!this.mediaElement.isView())this.aW.O2("mesv_s"),this.mediaElement.stopVideo(), TN(this);this.mediaElement=this.mediaElement.iX=null}}}; g.H.playVideo=function(K,W){K=K===void 0?!1:K;W=W===void 0?!1:W;var U=this,h,m,S,f,G,I;return g.r(function(d){if(d.j==1){var J=window.google_image_requests;J&&J.length>10&&(window.google_image_requests=J.slice(-10));if(g.C(U.playerState,128))return d.return();if(U.a5.gG())return U.publish("signatureexpired"),d.return();U.mediaElement&&mDL(U.S0);U.xl();(g.C(U.playerState,64)||K)&&U.uY(Bu(U.playerState,8));return U.Nr.finished&&U.mediaElement?U.T7||!U.Sm?d.O5(2):g.T(d,U.Sm,3):d.return()}if(d.j!=2&& g.C(U.playerState,128))return d.return();if(!U.videoData.N)return U.videoData.isLivePlayback&&!g.Kt(U.C.U,!0)?(h="html5.unsupportedlive",m=2):(h=U.videoData.nC()?"fmt.unplayable":"fmt.noneavailable",m=1),g.eI(Error("selectableFormats")),U.jB(h,m,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),d.return();if(U.Dw()&&U.videoData.N.j)return d.return(Bp(U));if(mg(U))J=U.tS,f5(J.videoData)&&!J.isAtLiveHead(J.getCurrentTime())&&J.pw()&&J.iX.seekTo(Infinity,{JS:"seektimeline_peggedToLive", seekSource:34});else if(f5(U.videoData)&&(S=U.getCurrentTime()f;if(!G||!f){m&&G&&(S=Math.max(S,m));var I;m=uos(W,(I=h.j)==null?void 0:I.videoInfos);I=W.iX.getPlaybackRate();I>1&&m&&(I=kqD(W.C.U,h.j.videoInfos,I),K.j!==0&&I=480;if(W.L("html5_perf_cap_override_sticky")){d=W.N;W=W.L("html5_perserve_av1_perf_cap");W=W===void 0?!1:W;if(W===void 0?0:W){J=H3();K=g.z(Object.keys(J));for(S=K.next();!S.done;S=K.next())S=S.value,S.indexOf("1")!==0&&delete J[S];g.SI("yt-player-performance-cap",J,2592E3)}else g.HX("yt-player-performance-cap");q6s(W);if(W){W=g.z(Cn.keys());for(J=W.next();!J.done;J=W.next())J=J.value,J.startsWith("1")|| Cn.delete(J);W=g.z(xg.values());for(J=W.next();!J.done;J=W.next())J=J.value,J.startsWith("1")||xg.delete(J);W=g.z(d.keys());for(J=W.next();!J.done;J=W.next())J=J.value,J.startsWith("1")||d.delete(J)}else Cn.clear(),xg.clear(),d.clear()}}}}this.loader&&(W=this.loader,U=U||"",W.policy.j?i6(W.W.j,U):i6(W.j.U,U));this.Kw()}; g.H.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.j?JO(this.videoData.ul):d0[tK()]}; g.H.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.H.setUserAudio51Preference=function(K,W){this.getUserAudio51Preference()!==K&&(this.rk("toggle51",{pref:K}),g.SI("yt-player-audio51",K,W?31536E3:2592E3),this.yV())}; g.H.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.H.setProximaLatencyPreference=function(K){var W=this.getProximaLatencyPreference();this.rk("proxima",{pref:K});g.SI("yt-player-proxima-pref",K,31536E3);W!==K&&(K=this.tS,K.Ik=!0,K.iX.seekTo(Infinity,{JS:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.H.getProximaLatencyPreference=function(){var K;return(K=dSR())!=null?K:0}; g.H.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.H.m0=function(){this.videoData.videoId?this.vl.m0(this.videoData):this.rk("povid",{})}; g.H.WV=function(){this.videoData.videoId?this.vl.WV(this.videoData):this.rk("piavid",{})}; g.H.Kw=function(){if(!this.qs()&&!g.C(this.playerState,128)&&this.videoData.N){if(this.videoData.N.j)dA(this);else{var K=N4(this),W=this.videoData;a:{var U=this.videoData.Ik;if(K.j){for(var h=g.z(U),m=h.next();!m.done;m=h.next()){m=m.value;var S=m.getInfo(),f=g.YJ[S.video.quality];if((!K.N||S.video.quality!=="auto")&&f<=K.j){U=m;break a}}U=U[U.length-1]}else U=U[0]}W.hK=U;ld(this,K.reason,Ege(this,this.videoData.hK))}if(this.L("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.tS.jV= !1,this.playVideo()}}; g.H.La=function(K,W){if(this.qs()||g.C(this.playerState,128))return!1;var U,h=!((U=this.videoData.N)==null||!U.j);U=h&&W?this.getCurrentTime()-this.A7():NaN;if(K.ZO&&K.ZO.id){var m=this.S0;if(m.qoe){m=m.qoe;var S=[K.ZO.id,isNaN(U)?"m":"t"];g.Fa(m,g.gh(m.provider),"afi",S)}}if(h)return W&&(h=No(this.tS),this.rk("aswh",{id:K.id,xtags:K.xtags,bh:h.toFixed(3)})),this.loader.setAudioTrack(K,U,W),!0;if(rB$(this)){a:{W=this.mediaElement.audioTracks();for(h=0;hS.AK.getDuration()&&FWs(S,f)):FWs(S,d);var J=S.loader,e=S.AK;G=G===void 0?!1:G;I=I===void 0?!1:I;J.policy.eV&&(J.policy.tK&&J.rk("loader",{setsmb:0}),J.uu(),J.policy.eV=!1);wSp(J,I);if(!I3(e)){var E=OB(J.videoTrack),B=OB(J.audioTrack),D=(E?E.info.Wp:J.videoTrack.Wp).info,a=(B?B.info.Wp:J.audioTrack.Wp).info,Q=J.policy.SD, u=D.mimeType+(Q===void 0?"":Q),O=a.mimeType,N=D.lX,A=a.lX,Z;e.Ms=(Z=e.AK)==null?void 0:Z.addSourceBuffer(O);var x;e.uX=u.split(";")[0]==="fakesb"?void 0:(x=e.AK)==null?void 0:x.addSourceBuffer(u);e.Zw&&(e.Zw.webkitSourceAddId("0",O),e.Zw.webkitSourceAddId("1",u));var b=new mi(e.Ms,e.Zw,"0",N9(O),A,!1),KR=new mi(e.uX,e.Zw,"1",N9(u),N,!0);R3e(e,b,KR)}E=G;B=I;E=E===void 0?!1:E;B=B===void 0?!1:B;br(J.videoTrack,e.X||null,B);br(J.audioTrack,e.j||null,B);J.AK=e;J.AK.W=!0;E||J.resume();e.j.EX(J.Pp,J);e.X.EX(J.Pp, J);try{J.TL()}catch(fR){g.wG(fR)}S.publish("mediasourceattached")}}catch(fR){g.eI(fR),S.handleError(new g.F3("fmt.unplayable",{msi:"1",ename:fR&&typeof fR==="object"&&"name"in fR?String(fR.name):void 0,trg:"setmediasrc"},1))}} var S=this;W=W===void 0?!1:W;U=U===void 0?!1:U;s92(this,h===void 0?!1:h);this.AK=K;this.vu()&&pL(this.AK)==="open"?m(this.AK):gYs(this.AK,m)}; g.H.Gi=function(K){this.rz.set(K.initData,K);this.iB&&(this.iB.Gi(K),this.L("html5_eme_loader_sync")||this.rz.remove(K.initData))}; g.H.WR=function(K){this.videoData.bl=g.xh("auto",K,!1,"u");dA(this)}; g.H.St=function(K){var W=K.reason,U=K.j.info,h=K.token,m=K.videoId,S=this.S0,f=this.videoData;if(U!==f.W){var G=!f.W;f.W=U;W!=="m"&&W!=="t"&&(W=G?"i":"a");var I=W==="m"||W==="t";this.C.experiments.Rk("html5_refactor_sabr_audio_format_selection_logging")?this.VD=new JG(f,U,W,"",h,m):(W=new JG(f,U,W,"",h),S.qoe&&(S=S.qoe,U=g.gh(S.provider),FsL(S,U,W)));this.publish("internalaudioformatchange",f,!G&&I)}this.tS.St(K.j.index)}; g.H.Aa=function(K){this.publish("localmediachange",K)}; g.H.XA=function(K){K=K===void 0?{}:K;var W;(W=this.loader)==null||W.XA(this.C,Jh$(this.videoData),K)}; g.H.gG=function(){return this.a5.gG()}; g.H.Bj=function(K){this.aR(new g.F3("staleconfig",{reason:K}))}; g.H.handleError=function(K){this.a5.handleError(K)}; g.H.eF=function(){return this.a5.eF()}; g.H.US=function(K){this.tS.US(K)}; g.H.Os=function(K,W){K=K===void 0?!1:K;W=W===void 0?!1:W;var U=this,h,m,S;return g.r(function(f){if(f.j==1){U.loader&&U.loader.vW();U.loader&&U.loader.qs()&&DF(U);if(U.L("html5_enable_vp9_fairplay")&&U.nC()&&(h=U.videoData.j)!=null)for(var G in h.j)h.j.hasOwnProperty(G)&&(h.j[G].j=null,h.j[G].N=!1);U.uY(Bu(U.playerState,2048));U.publish("newelementrequired");return K?g.T(f,Bp(U),2):f.O5(2)}U.videoData.mK()&&((m=U.loader)==null?0:m.hK)&&!mg(U)&&((S=U.isAtLiveHead())&&f5(U.videoData)?U.seekTo(Infinity, {JS:"videoPlayer_getNewElement"}):U.videoData.tv&&U.loader&&(G=U.loader,G.Gm.mK&&(G.Gm.tv||G.Gm.W||G.Gm.isPremiere?(G.seek(0,{JS:"loader_resetSqless"}),G.videoTrack.G=!0,G.audioTrack.G=!0,G.videoTrack.W=!0,G.audioTrack.W=!0):c1(G.Gm)&&CV(G))));W&&U.seekTo(0,{seekSource:105});g.C(U.playerState,8)&&U.playVideo();g.q1(f)})}; g.H.Yg=function(K){this.rk("hgte",{ne:+K});this.videoData.Y=!1;K&&this.Os();this.loader&&$g2(this.loader)}; g.H.zw=function(K){this.rk("newelem",{r:K});this.Os()}; g.H.pauseVideo=function(K){K=K===void 0?!1:K;if((g.C(this.playerState,64)||g.C(this.playerState,2))&&!K)if(g.C(this.playerState,8))this.uY(JL(this.playerState,4,8));else if(this.jG())wh(this);else return;g.C(this.playerState,128)||(K?this.uY(Bu(this.playerState,256)):this.uY(JL(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.aG(this.videoData)&&this.loader&&YX(this,!1)}; g.H.stopVideo=function(){this.pauseVideo();this.loader&&(YX(this,!1),this.loader.uu())}; g.H.rX=function(K,W){K=K===void 0?!1:K;W=W===void 0?!1:W;if(this.vu()&&W){var U;(U=this.mediaElement)==null||U.rX()}else{var h;(h=this.mediaElement)==null||h.stopVideo()}TN(this);DF(this);g.C(this.playerState,128)||(K?this.uY(Ro(Ro(Bu(this.playerState,4),8),16)):this.uY(E4(this.playerState)));this.videoData.videoId&&this.C.Le.remove(this.videoData.videoId)}; g.H.seekTo=function(K,W){W=W===void 0?{}:W;g.C(this.playerState,2)&&wh(this);W.J8H&&this.uY(Bu(this.playerState,2048));if((W.seekSource===58||W.seekSource===60)&&this.L("html5_update_vss_during_gapless_seeking")){var U=this.S0;U.j&&(U=U.j,W.seekSource===58?U.j.update():U.N&&(pq(U),gV(U).send(),U.W=NaN))}this.tS.seekTo(K,W);this.b5.sync()}; g.H.lR=function(K){this.aW.W.X=(0,g.AI)();g.C(this.playerState,32)||(this.uY(Bu(this.playerState,32,K==null?void 0:K.seekSource)),g.C(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Ym()}; g.H.YO=function(K){K=K==null?void 0:K.seekSource;g.C(this.playerState,32)?(this.uY(JL(this.playerState,16,32,K)),this.publish("endseeking")):g.C(this.playerState,2)||this.uY(Bu(this.playerState,16,K));K=this.aW.W;var W=this.videoData,U=this.playerState.isPaused();if(W.clientPlaybackNonce&&!isNaN(K.j)){if(Math.random()<.01){U=U?"pbp":"pbs";var h={startTime:K.j};W.G&&(h.cttAuthInfo={token:W.G,videoId:W.videoId});BN("seek",h);g.y2({clientPlaybackNonce:W.clientPlaybackNonce},"seek");isNaN(K.X)||XL("pl_ss", K.X,"seek");XL(U,(0,g.AI)(),"seek")}K.reset()}}; g.H.k9=function(K){this.YO(K)}; g.H.Qu=function(){this.publish("SEEK_COMPLETE")}; g.H.BD=function(K){var W=this.vl,U=this.videoData.clientPlaybackNonce,h=this.playerType;if(K.scope===4){var m=K.type;if(m){var S=W.rH(),f=S.getVideoData().clientPlaybackNonce;h===1&&(f=U);if(h=mss(W,f)){if(U=h.getVideoData())K.writePolicy===2&&U.sabrContextUpdates.has(m)||(K.sendByDefault&&U.Le.add(m),U.sabrContextUpdates.set(m,K)),W.L("html5_enable_t1_enf_on_sabr")&&(K=m===5,m=bxp(U.playerResponse),K?(K=m?1:0,lc(K,"m.p_",{}),ec("MBSTAT",K)):K=1,K===0&&W.Yx.Fx("onAbnormalityDetected"))}else S.rk("scuset", {ncpf:"1",ccpn:f,crcpn:U})}else g.eI(Error("b/380308491: contextUpdateType is undefined"))}}; g.H.Q8=function(){if(this.playerType===2)return this.vl.Q8("")}; g.H.getCurrentTime=function(K){return this.tS.getCurrentTime(K===void 0?!1:K)}; g.H.S5=function(){return this.tS.S5()}; g.H.Ho=function(){return this.tS.Ho()}; g.H.N1=function(){return this.Ho()}; g.H.FX=function(){return this.tS.FX()}; g.H.getPlaylistSequenceForTime=function(K){return this.videoData.getPlaylistSequenceForTime(K-this.A7())}; g.H.V1=function(){var K=NaN;this.mediaElement&&(K=this.mediaElement.V1());return K>=0?K:this.getCurrentTime()}; g.H.hv=function(){var K;return((K=this.videoData.j)==null?0:K.hv)?this.videoData.j.hv(this.getCurrentTime()-this.A7()):this.mediaElement&&(K=this.mediaElement.pF())&&(K=K.getTime(),!isNaN(K))?K/1E3+this.getCurrentTime():NaN}; g.H.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.A7():this.jj()?this.jj():0}; g.H.o2=function(){var K=new tf_;if(this.loader){var W=this.dH,U=this.C.G9();U=U===void 0?!1:U;K.Bv=W.Ns;K.U2=W.vp;K.bandwidthEstimate=v2(W);if(U){U=(W.J.xv()*1E3).toFixed();var h=(W.hK.xv()*1E3).toFixed(),m=qY(W).toFixed(2),S=((W.Y.xv()||0)*1E9).toFixed(2),f=W.N.xv().toFixed(0),G=W.eV.xv().toFixed(0),I=W.jV.percentile(.5).toFixed(2),d=W.jV.percentile(.92).toFixed(2),J=W.jV.percentile(.96).toFixed(2),e=W.jV.percentile(.98).toFixed(2);W.j?W.j.reset():W.j=new wD;W.j.add(W.DA);W.j.add(W.interruptions.length); for(var E=0,B=W.interruptions.length-1;B>=0;B--){var D=W.interruptions[B];W.j.add(D-E);E=D}E=0;for(B=W.W.length-1;B>=0;B--){D=W.W[B];var a=D.stamp/36E5;W.j.add(a-E);E=a;W.j.add(D.net/1E3);W.j.add(D.max)}W=W.j.ri();K.j={ttr:U,ttm:h,d:m,st:S,bw:f,abw:G,v50:I,v92:d,v96:J,v98:e,"int":W}}W=this.loader;W.AK&&W.AK.W&&!W.AK.CC()&&(K.g2=CU(W.videoTrack),K.X=CU(W.audioTrack),W.policy.N&&(U=CI(W.videoTrack),h=CI(W.audioTrack),m=fc(W.AK.X.Nb(),"_",5),S=fc(W.AK.j.Nb(),"_",5),Object.assign(K.j,{lvq:U,laq:h,lvb:m, lab:S})));K.bandwidthEstimate=qn(W.jV);var Q;(Q=W.audioTrack.J)==null||Q.flush();var u;(u=W.videoTrack.J)==null||u.flush()}else this.mediaElement&&(K.g2=Rs(this.mediaElement));K.Bv=this.Bv;K.U2=this.U2;K.N=this.isAtLiveHead()&&this.isPlaying()?GN(this):NaN;Q=this.tS;Q=Q.j?rl(Q.j):0;K.W=Q;return K}; g.H.MF=function(K,W){this.U2+=K;this.Bv+=W}; g.H.tM=function(){return this.mediaElement?g.aG(this.videoData)?1:S_(this.videoData)?this.isAtLiveHead()||this.pw()?1:this.tS.tM():this.mediaElement.tM():0}; g.H.c9=function(){var K=this.CJ,W=Dq(K,"bandwidth"),U=Dq(K,"bufferhealth"),h=Dq(K,"livelatency"),m=Dq(K,"networkactivity"),S=H5(K,"bandwidth"),f=H5(K,"bufferhealth"),G=H5(K,"livelatency");K=H5(K,"networkactivity");var I=this.CY(),d=I.droppedVideoFrames;I=I.totalVideoFrames;var J=this.getCurrentTime();if(this.iB){var e="IT/"+(this.iB.j.getInfo()+"/"+JO(this.eQ()));e+="/"+this.iB.getInfo()}else e="";var E=this.isGapless(),B=this.Hh(),D=this.Jq(),a=g.Iu(this),Q=this.getPlayerState(),u=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var O=0;var N="";if(this.S_){if(this.S_.Xm){N="D,";break a}O=this.S_.aU;N=this.S_.Rw.substring(0,4)}O>0?(O="AD"+O+", ",N&&(O+=N+", "),N=O):N=""}return{u1:S,bd:f,currentTime:J,pY:e,droppedVideoFrames:d,isGapless:E,Hh:B,tG:D,hH:W,Ub:U,DG:h,Hc:m,zN:G,Qo:K,bL:a,playerState:Q,H5:u,fW:N,totalVideoFrames:I}}; g.H.P3=function(K){var W={};if(K===void 0?0:K){Object.assign(W,this.S0.P3());this.mediaElement&&(Object.assign(W,this.mediaElement.P3()),K=this.CY(),W.dvf=K.droppedVideoFrames,W.tvf=K.totalVideoFrames);this.loader&&Object.assign(W,this.loader.P3());this.iB&&(W.drm=JSON.stringify(this.iB.P3()));W.state=this.playerState.state.toString(16);g.C(this.playerState,128)&&(W.debug_error=JSON.stringify(this.playerState.wi));this.kF()&&(W.prerolls=this.Q3.join(","));this.videoData.gf&&(W.ismb=this.videoData.gf); this.videoData.latencyClass!=="UNKNOWN"&&(W.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(W.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)W.is_mosaic=1;this.videoData.cotn&&(W.is_offline=1,W.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(W.playerResponseCpn=this.videoData.playerResponseCpn);this.vl.isOrchestrationLeader()&&(W.leader=1);this.videoData.isLivePlayback&& (this.videoData.j&&YI(this.videoData.j)&&(W.segduration=YI(this.videoData.j)),K=this.tS,W.lat=K.J?LH$(K.J.W):0,W.liveutcstart=this.videoData.liveUtcStartSeconds);W.relative_loudness=this.videoData.lj.toFixed(3);if(K=g.Iu(this))W.optimal_format=K.video.qualityLabel;W.user_qual=tK();W.release_version=t[2]}W.debug_videoId=this.videoData.videoId;return W}; g.H.addCueRange=function(K){this.Qd([K])}; g.H.removeCueRange=function(K){this.b5.hD([K])}; g.H.BC=function(){var K=this.b5;if(K.iX.V().L("html5_sort_cueranges_on_update")&&!(K.E4().length<=0||K.qs())){var W=K.j;W.array.sort(W.j)}K.sync()}; g.H.nj=function(K,W){return this.b5.nj(K,W)}; g.H.Qd=function(K,W){this.b5.lG(K,W)}; g.H.iF=function(K){this.b5.hD(K)}; g.H.E4=function(){return this.b5.E4()||[]}; g.H.iH=function(){return this.E8}; g.H.Dw=function(){return this.visibility.Dw()}; g.H.ih=function(){this.mediaElement&&this.mediaElement.ih()}; g.H.apX=function(){Dn(this)}; g.H.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.H.ac=function(){g.Qa(this.HV)}; g.H.Ubr=function(){this.Ym();this.publish("onLoadProgress",this.tM())}; g.H.jR=function(K){var W=K.target.aD();if(this.mediaElement&&this.mediaElement.aD()&&this.mediaElement.aD()===W){HhY(this,K.type);switch(K.type){case "error":var U=mq(this.mediaElement)||"",h=this.mediaElement.Xh();if(U==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.rk("capchg",{msg:h}),this.Os(!0)):Bp(this);return}if(this.mediaElement.hasError()&&wu(this.a5,U,{msg:h,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.KN()===4){this.rX();eG(this,"unplayable"); return}break;case "durationchange":U=this.mediaElement.getDuration();isFinite(U)&&(!this.AK||U>0)&&U!==1&&this.BY(U);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());U=this.b5;U.started=!0;U.sync();this.S0.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.qk().j.v3(Wp3)&&Cj(this,!0);YAz(this);this.publish("onLoadedMetadata");Rpp(this);U=this.hv();this.videoData.xE&&(this.videoData.xE=U);break;case "loadstart":Rpp(this); break;case "progress":case "suspend":this.Eo.CQ();break;case "seeked":(U=this.loader)!=null&&U.policy.X&&U.wP&&(U.rk("sdai",{skipAdSked:"1"}),U.wP=!1);break;case "playing":this.qk().j.v3(Wp3)&&Cj(this,!0);this.aW.O2("plev");this.hA&&!mg(this)&&(this.hA=!1,this.isAtLiveHead()||this.seekTo(Infinity,{JS:"videoplayer_onPlaying"}));break;case "timeupdate":this.qk().j.v3(Wp3)&&Cj(this,!0);U=this.mediaElement&&!this.mediaElement.getCurrentTime();h=this.mediaElement&&this.mediaElement.yn()===0;if(U&&(!this.kQ|| h))return;this.kQ=this.kQ||!!this.mediaElement.getCurrentTime();y5(this);this.Ym();if(!this.mediaElement||this.mediaElement.aD()!==W)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.ZZ().length>0&&this.mediaElement.Po().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.yn()>2||!this.mediaElement.isSeeking()&& iO(this.mediaElement.Po(),this.mediaElement.getCurrentTime()))&&(U=this.mediaElement.P3(),U.bh=Rs(this.mediaElement).toFixed(3),this.rk("uwe",U));break;case "resize":YAz(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.jW&&g.C(this.playerState,8)&&!g.C(this.playerState,1024)&&this.getCurrentTime()===0&&g.$c){eG(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.aD()=== W){YpY(this.tS,K);this.publish("videoelementevent",K);W=this.playerState;h=this.S8;var m=this.mediaElement;U=this.videoData.clientPlaybackNonce;if(!g.C(W,128)){var S=W.state;m=m?m:K.target;var f=m.getCurrentTime();if(!g.C(W,64)||K.type!=="ended"&&K.type!=="pause"){var G=m.getDuration();G=m.isEnded()||f>1&&Math.abs(f-G)<1.1;var I=K.type==="pause"&&m.isEnded();f=K.type==="ended"||K.type==="waiting"||K.type==="timeupdate"&&!g.C(W,4)&&!Rc(h,f);if(I||G&&f)m.bH()>0&&m.aD()&&(S=14);else switch(K.type){case "error":mq(m)&& (S|=128);break;case "pause":g.C(W,256)?(S^=256)||(S=64):g.C(W,32)||g.C(W,2)||g.C(W,4)||(S=4,g.C(W,1)&&g.C(W,8)&&(S|=1));break;case "playing":f=S;S=(S|8)&-1093;f&4?(S|=1,uz(h,m,!0)):Rc(h,m.getCurrentTime())&&(S&=-2);g.C(W,1)&&uz(h,m)&&(S|=1);break;case "seeking":S|=16;g.C(W,8)&&(S|=1);S&=-3;break;case "seeked":S&=-17;uz(h,m,!0);break;case "waiting":g.C(W,2)||(S|=1);uz(h,m);break;case "timeupdate":f=g.C(W,16),G=g.C(W,4),(g.C(W,8)||f)&&!G&&Rc(h,m.getCurrentTime())&&(S=8),uz(h,m)&&(S|=1)}}h=S;S=null; h&128&&(S=K.target,m=mq(S),f=1,m?(m==="capability.changed"&&(f=2),G="GENERIC_WITHOUT_LINK",I=S.P3(),I.mediaElem="1",I.trg="melem",/AUDIO_RENDERER/.test(S.Xh())&&(G="HTML5_AUDIO_RENDERER_ERROR"),S={errorCode:m,errorMessage:g.fe[G]||"",YY:G,ZV:GR(I),BE:f,cpn:W.wi?W.wi.cpn:""}):S=null,S&&(S.cpn=U));W=E4(W,h,S)}!g.C(this.playerState,1)&&g.C(W,1)&&yu(this,"evt"+K.type);this.uY(W)}}}; g.H.OrX=function(K){K=K.j.availability==="available";K!==this.E8&&(this.E8=K,this.publish("airplayavailabilitychange"))}; g.H.aex=function(){var K=(0,g.AI)(),W=this.mediaElement.Dw();this.rk("airplay",{ia:W});!W&&!isNaN(this.lH)&&K-this.lH<2E3||(this.lH=K,W!==this.Dw()&&(K=this.visibility,K.j!==W&&(K.j=W,K.mG()),this.rk("airplay",{rbld:W}),this.yV()),this.publish("airplayactivechange"))}; g.H.EO=function(K){if(this.loader){var W=this.loader,U=W.N,h=W.getCurrentTime(),m=Date.now()-U.jV;U.jV=NaN;U.rk("sdai",{adfetchdone:K,d:m});K&&!isNaN(U.Y)&&U.X!==3&&FI(U.loader,h,U.Y,U.G);U.policy.X?U.U=NaN:U.W=NaN;Wb(U,4,U.X===3?"adfps":"adf");gn(W)}}; g.H.NS=function(){g.Pa(this.T2);this.bj.stop();this.videoData.J=!0;this.C.fM=!0;this.C.Qg=0;var K=this.a5;if(K.videoData.X){var W=K.Tm.U,U=K.videoData.X.lX;W.W.has(U)&&(W.W.delete(U),W.X=!0)}K.j.stop();this.Vj();g.C(this.playerState,8)&&this.uY(Ro(this.playerState,65));this.Mo=!1;this.S0.Uw();g.yG(this.Ur);this.publish("playbackstarted");(K=g.vB("yt.scheduler.instance.clearPriorityThreshold"))?K():s7(0)}; g.H.Vj=function(){var K=this.vl.yX(),W={},U={};!t3("pbs",this.aW.timerName)&&m6.measure&&m6.getEntriesByName&&(m6.getEntriesByName("mark_nr")[0]?w_D("mark_nr"):w_D());K.videoId&&(W.videoId=K.videoId);K.clientPlaybackNonce&&!this.L("web_player_early_cpn")&&(W.clientPlaybackNonce=K.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(U.isPausedOnLoad=!0);U.itag=K.X?Number(K.X.itag):-1;K.Cg&&(U.preloadType=String(this.bO?2:1));W.liveStreamMode=cWb[DG(K)];W.playerInfo=U;this.aW.infoGel(W); if(this.loader){K=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(K.N&&(W=window.performance.getEntriesByName(K.N),W.length&&(W=W[0],K.tick("vri",W.fetchStart),K.tick("vdns",W.domainLookupEnd),K.tick("vreq",W.requestStart),K.tick("vrc",W.responseEnd))),K.X&&(W=window.performance.getEntriesByName(K.X),W.length&&(W=W[0],K.tick("ari",W.fetchStart),K.tick("adns",W.domainLookupEnd),K.tick("areq",W.requestStart),K.tick("arc",W.responseEnd))));K=K.ticks;for(var h in K)K.hasOwnProperty(h)&& this.aW.tick(h,K[h])}}; g.H.Ym=function(K){var W=this;K=K===void 0?!1:K;if(this.mediaElement&&this.videoData){Gap(this.tS,this.isPlaying());var U=this.getCurrentTime();if(this.loader&&(g.C(this.playerState,4)&&g.aG(this.videoData)||g.C(this.playerState,32)&&HT(this.videoData)||kcL(this.loader,U),this.L("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-m9(this.loader))>10)){var h;this.rk("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(h=this.loader)==null?void 0:m9(h)},!0)}U>5&&(this.tS.N=U); (h=g.P$())?g.MU.tD(this.IT):g.qE(this.IT);var m=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!m||ZM(this.videoData))&&!g.C(this.playerState,128)){var S=function(){if(W.mediaElement&&!g.C(W.playerState,128)){W.C.G9()&&HhY(W,"pfx");var f=W.getCurrentTime();W.L("html5_buffer_underrun_transition_fix")&&(f-=W.A7());var G=Rs(W.mediaElement),I=g.C(W.playerState,8),d=Rc(W.S8,f),J=ods(W.S8,f,(0,g.AI)(),G);I&&d?W.uY(Ro(W.playerState,1)):I&&J?(I=W.getDuration(),d=f5(W.videoData),I&&Math.abs(I- f)<1.1?(W.rk("setended",{ct:f,bh:G,dur:I,live:d}),W.mediaElement.q3()?W.seekTo(0,{JS:"videoplayer_loop",seekSource:37}):W.Cu()):(W.playerState.isBuffering()||yu(W,"progress_fix"),W.uY(Bu(W.playerState,1)))):(I&&!d&&!J&&f>0&&(I=(Date.now()-W.Bi)/1E3,d=W.getDuration(),f>d-1&&W.rk("misspg",{t:f.toFixed(2),d:d.toFixed(2),r:I.toFixed(2),bh:G.toFixed(2)})),W.playerState.isPaused()&&W.playerState.isBuffering()&&Rs(W.mediaElement)>5&&W.uY(Ro(W.playerState,1)));W.Ym()}}; this.mediaElement.ZZ().length===0?this.IT=h?g.MU.C_(S,100):g.FE(S,100):this.IT=h?g.MU.C_(S,500):g.FE(S,500)}this.videoData.Qg=U;!K&&this.isPlaying()&&BQY(this);crL(this.Dg,this.T7,this.lY(),this.isBackground())&&dA(this);this.publish("progresssync",K);m&&ZM(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.H.aA5=function(){this.jB("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.H.Jq=function(){return this.S0.Jq()}; g.H.M1=function(){return this.loader?this.loader.M1():v2(this.dH,!0)}; g.H.uY=function(K){if(!g.GY(this.playerState,K)){var W=new g.e0(K,this.playerState);this.playerState=K;uAR(this);var U=!this.aj.length;this.aj.push(W);var h=this.mediaElement&&this.mediaElement.isSeeking();g.M9(W,1)&&this.loader&&LKp(this.loader);h=W.oldState.state===8&&!h;if(g.M9(W,1)&&h&&g.C(this.playerState,8)&&!g.C(this.playerState,64)&&this.loader){h=this.loader;h.rZ=!0;if(h.policy.XI&&h.AK){var m,S,f,G;h.rk("lr_rb",{c:h.getCurrentTime(),s:h.isSeeking(),ab:fc(h.AK.j.Nb()),ala:(m=Kp(h.audioTrack))== null?void 0:m.m6(),alr:(S=h.audioTrack.j)==null?void 0:S.m6(),vb:fc(h.AK.X.Nb()),vla:(f=Kp(h.videoTrack))==null?void 0:f.m6(),vlr:(G=h.videoTrack.j)==null?void 0:G.m6()})}h.Xq!==0&&h.rk("sps_rebuffer",{c:h.getCurrentTime()});this.mediaElement&&Rs(this.mediaElement)>=5&&(m=this.Dg,S=this.T7,!S.videoData.X||m.L("html5_disable_performance_downgrade")?m=!1:(Date.now()-m.Y>6E4&&(m.X=0),m.X++,m.Y=Date.now(),m.X!==4?m=!1:(YSe(m,S.videoData.X),m=!0)),m&&dA(this))}(m=g.jV(this.C.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.C(K,1)&&(g.C(K,8)||g.C(K,16))?this.rJ.start(m):this.rJ.stop();(Jw(W,8)<0||g.M9(W,1024))&&this.bj.stop();!g.M9(W,8)||this.videoData.J||g.C(W.state,1024)||this.bj.start();g.C(W.state,8)&&Jw(W,16)<0&&!g.C(W.state,32)&&!g.C(W.state,2)&&this.playVideo();g.C(W.state,2)&&S_(this.videoData)&&(this.BY(this.getCurrentTime()),this.Ym(!0));g.M9(W,2)&&(this.jy(!0),this.C.G9()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&HT(this.videoData)&&this.videoData.j&&(K={minst:""+ this.videoData.j.LG,cminst:""+(this.videoData.j.Cr()+this.A7()),maxst:""+this.videoData.j.q7,hts:""+this.videoData.j.Ns,cmaxst:""+(this.videoData.j.jj()+this.A7())},this.rk("sabrSeekableBoundaries",K)));g.M9(W,128)&&this.rX();this.videoData.j&&this.videoData.isLivePlayback&&!this.e1&&(Jw(W,8)<0?(K=this.videoData.j,K.U&&K.U.stop()):g.M9(W,8)&&this.videoData.j.resume());K=this.tS;g.yG(K.Ms.U);if(K.mediaElement)if(W.oldState.state===8&&Ut(W.state)&&W.state.isBuffering()){var I=K.mediaElement.getCurrentTime(); m=K.mediaElement.Po();S=K.L("manifestless_post_live_ufph")||K.L("manifestless_post_live")?gH(m,Math.max(I-3.5,0)):gH(m,I-3.5);S>=0&&I>m.end(S)-1.1&&S+10?(ut(K.iX,K.getCurrentTime()+K.videoData.limitedPlaybackDurationInSeconds), K.JK=!0):K.videoData.isLivePlayback&&K.videoData.endSeconds>0&&(ut(K.iX,K.getCurrentTime()+K.videoData.endSeconds),K.JK=!0));I=this.S0;if(g.M9(W,1024)||g.M9(W,512)||g.M9(W,4))I.X&&(K=I.X,K.X>=0||(K.j=-1,K.delay.stop())),I.qoe&&(K=I.qoe,K.Y||(K.N=-1));if(I.provider.videoData.enableServerStitchedDai&&I.aQ){var d;(d=I.N.get(I.aQ))==null||lIe(d,W)}else I.j&&lIe(I.j,W);I.qoe&&(d=I.qoe,K=W.state,m=g.gh(d.provider),S=d.getPlayerState(K),f=K.seekSource||void 0,S!==d.RR&&(d.Ns||m=10&&d.playTimeSecs<=180&&(d.j.set("qoealert",["1"]),d.W3=!0)),S!=="B"||d.RR!=="PL"&&d.RR!=="PB"||(d.isBuffering=!0),d.X=m),d.RR==="PL"&&(S==="B"||S==="S")||d.provider.C.G9()?iH(d,m):(d.DO||S!=="PL"||(d.DO=!0,kv(d,m,d.provider.iX.o2())),uH(d,m)),S==="PL"&&g.yG(d.Pl),G=[S],S==="S"&&f&&G.push("ss."+f),g.Fa(d,m,"vps",G),d.RR=S,d.Ms=m,d.X=m,d.W=!0),S=K.wi,g.C(K,128)&&S&&(S.ZV=S.ZV||"",CtC(d,m,S.errorCode, S.BE,S.ZV)),(g.C(K,2)||g.C(K,128))&&d.reportStats(m),K.isPlaying()&&!d.Y&&(d.N>=0&&d.j.set("user_intent",[d.N.toString()]),d.Y=!0),yD(d));I.X&&(d=I.X,OTe(d),d.playerState=W.state,d.X>=0&&g.M9(W,16)&&d.seekCount++,W.state.isError()&&d.send());if(U&&!this.qs())try{for(var J=g.z(this.aj),e=J.next();!e.done;e=J.next()){var E=e.value,B=this.b5;if(B.started&&(B.sync(),g.C(E.oldState,16))){W=B;var D=L0F(W.j,Math.max(W.N-2E3,0));!isNaN(D)&&D<0x7ffffffffffff&&W.W.start()}this.publish("statechange",E)}}finally{this.aj.length= 0}}}; g.H.u2=function(){this.aW.tick("qoes")}; g.H.Fy=function(){this.tS.Fy()}; g.H.Kh=function(K,W,U,h){a:{var m=this.a5;h=h===void 0?"LICENSE":h;U=U.substring(0,256);var S=CR(W);K==="drm.keyerror"&&this.iB&&this.iB.X.keys.length>1&&m.W<96&&(K="drm.sessionlimitexhausted",S=!1);var f=m.Tm.experiments.Rk("html5_retry_on_drm_unavailable"),G=m.Tm.experiments.Rk("html5_retry_on_drm_key_error"),I=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(f&&K==="drm.unavailable"||G&&K==="drm.keyerror"&&!U.match(I))m.aR("qoe.restart",{retryOnDrmError:1,e:K,detail:U}),m.iX.Os(!0);else{if(S)if(m.videoData.X&& m.videoData.X.video.isHdr())zl$(m,K);else{if(m.iX.jB(K,W,h,U),o3e(m,{detail:U}))break a}else m.aR(K,{detail:U});K==="drm.sessionlimitexhausted"&&(m.rk("retrydrm",{sessionLimitExhausted:1}),m.W++,aps(m.iX))}}}; g.H.NvA=function(){var K=this,W=g.jV(this.C.experiments,"html5_license_constraint_delay"),U=sG();W&&U?(W=new g.QC(function(){K.Kw();Dn(K)},W),g.k(this,W),W.start()):(this.Kw(),Dn(this))}; g.H.Ey=function(K){this.publish("heartbeatparams",K)}; g.H.TZ=function(K){this.rk("keystatuses",Yap(K));var W="auto",U=!1;this.videoData.X&&(W=this.videoData.X.video.quality,U=this.videoData.X.video.isHdr());a:{switch(W){case "highres":case "hd2880":W="UHD2";break;case "hd2160":case "hd1440":W="UHD1";break;case "hd1080":case "hd720":W="HD";break;case "large":case "medium":case "small":case "light":case "tiny":W="SD";break;default:W="";break a}U&&(W+="HDR")}W=vy(K)?qJ(K,W):K.W.includes(W);if(this.L("html5_enable_vp9_fairplay")){if(U)if(K.Y){var h;if((h= this.iB)==null?0:eV(h.j))if((U=this.iB)==null)U=0;else{for(var m=h=void 0,S=g.z(U.X.values()),f=S.next();!f.done;f=S.next())f=f.value,h||(h=e02(f,"SD")),m||(m=e02(f,"AUDIO"));U.Jc({sd:h,audio:m});U=h==="output-restricted"||m==="output-restricted"}else U=!W;if(U){this.rk("drm",{dshdr:1});zl$(this.a5);return}}else{this.videoData.lQ||(this.videoData.lQ=!0,this.rk("drm",{dphdr:1}),this.Os(!0));return}var G;if((G=this.iB)==null?0:eV(G.j))return}else if(G=K.Y&&W,U&&!G){zl$(this.a5);return}W||qJ(K,"AUDIO")&& qJ(K,"SD")||(K=Yap(K),this.Q0?(this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.jB("drm.keyerror",2,void 0,"info."+K)):(this.Q0=!0,this.aR(new g.F3("qoe.restart",Object.assign({},{retrydrm:1},K))),dA(this),aps(this)))}; g.H.yvr=function(){if(!this.videoData.J&&this.mediaElement&&!this.isBackground()){var K="0";this.mediaElement.yn()>0&&Rs(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.j&&(this.uY(Bu(this.playerState,1)),yu(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),K="1");uAR(this);var W=this.videoData.N;K={restartmsg:K,mfmt:!aTC(this.videoData),mdrm:!(!(W&&W.videoInfos&&W.videoInfos.length&&W.videoInfos[0].zL)||this.iB),mfmtinfo:!this.videoData.X,prerolls:this.kF()?this.Q3.join(","): "0"};if(this.iB){W=this.iB;if(W.X.size<=0){var U="ns;";W.jV||(U+="nr;");W=U+="ql."+W.N.length}else W=Yap(W.X.values().next().value),W=GR(W);K.drmp=W}var h;Object.assign(K,((h=this.loader)==null?void 0:h.P3())||{});var m;Object.assign(K,((m=this.mediaElement)==null?void 0:m.P3())||{});this.S0.aR("qoe.start15s",GR(K));this.publish("loadsofttimeout")}}; g.H.BY=function(K){this.videoData.lengthSeconds!==K&&(this.videoData.lengthSeconds=K,Dn(this))}; g.H.jy=function(K,W){var U=this;K=K===void 0?!1:K;if(!this.JJ)if(t3("att_s","player_att")||S8("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var m,S,f,G;return g.r(function(I){switch(I.j){case 1:if(!(m=K)){I.O5(2);break}return g.T(I,g.f0D(),3);case 3:m=!I.X;case 2:if(m)return I.return();g.Bj(I,4);S=rTC(U.S0);if(!S)throw Error();f={};return g.T(I,g.t1p((f.cpn=U.videoData.clientPlaybackNonce,f.encryptedVideoId=U.videoData.videoId||"",f),3E4),6);case 6:G=I.X;if(U.JJ)throw Error(); if(!G.challenge)throw g.eI(Error("Not sending attestation ping; no attestation challenge string")),Error();U.JJ=!0;var d=[G.challenge];if(G.error){var J=JFh();J=Qfz(J).get(G.error)||0;d.push("r1c="+J)}else G.webResponse&&d.push("r1a="+G.webResponse);var e;((e=G.adblockReporting)==null?void 0:e.reportingStatus)!==void 0&&d.push("r6a="+G.adblockReporting.reportingStatus);var E;((E=G.adblockReporting)==null?void 0:E.broadSpectrumDetectionResult)!==void 0&&d.push("r6b="+G.adblockReporting.broadSpectrumDetectionResult); S(d.join("&"));S8("att_f",void 0,"player_att");g.xL(I,0);break;case 4:g.SV(I),S8("att_e",void 0,"player_att"),g.q1(I)}})})().then(function(){W==null||W()}); else{var h=new g.mR$(this.videoData);if("c1a"in h.b0&&!g.T2.isInitialized()){S8("att_wb",void 0,"player_att");this.hY===2&&Math.random()<.01&&g.eI(Error("Botguard not available after 2 attempts"));if(K)return;if(this.hY<5){g.yG(this.dJ);this.hY++;return}}(h=g.yAz(h))?(S8("att_f",void 0,"player_att"),fSz(this.S0,h),this.JJ=!0):S8("att_e",void 0,"player_att")}}; g.H.Id=function(K){K=K===void 0?!1:K;return f5(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.pw()||g.aG(this.videoData))?this.getCurrentTime():this.jj(K)}; g.H.Ln=function(){return this.Cr()}; g.H.jj=function(K){return this.tS.jj(K===void 0?!1:K)}; g.H.Cr=function(){return this.tS.Cr()}; g.H.A7=function(){return this.tS?this.tS.A7():0}; g.H.getStreamTimeOffset=function(){return this.tS?this.tS.getStreamTimeOffset():0}; g.H.RN=function(){return this.getStreamTimeOffset()===0?this.A7():this.getStreamTimeOffset()}; g.H.setPlaybackRate=function(K){var W;this.playbackRate!==K&&uos(this.Dg,(W=this.videoData.N)==null?void 0:W.videoInfos)&&(this.playbackRate=K,dA(this));this.playbackRate=K;this.mediaElement&&this.mediaElement.setPlaybackRate(K)}; g.H.getPlaybackRate=function(){return this.playbackRate}; g.H.getPlaybackQuality=function(){var K="unknown";if(this.videoData.X&&(K=this.videoData.X.video.quality,K==="auto"&&this.mediaElement)){var W=this.sO();W&&W.videoHeight>0&&(K=Z8z(W.videoWidth,W.videoHeight))}return K}; g.H.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.H.sendVideoStatsEngageEvent=function(K,W){var U=this.S0;U.j?(U=gD(U.j,"engage"),U.Ns=K,U.send(W)):W&&W()}; g.H.h3=function(K){return this.S0.h3(K)}; g.H.isAtLiveHead=function(K,W){W=W===void 0?!1:W;return f5(this.videoData)&&(this.hp||W)?this.tS.isAtLiveHead(K):!1}; g.H.dX=function(){var K=this.jj(),W=this.getCurrentTime(),U;(U=!f5(this.videoData))||(U=this.tS,U=!(U.j&&U.j.N));return U||this.pw()||isNaN(K)||isNaN(W)?0:Math.max(0,K-W)}; g.H.sN=function(K){(this.hp=K)||this.bj.stop();if(this.videoData.j)if(K)this.videoData.j.resume();else{var W=this.videoData.j;W.U&&W.U.stop()}this.loader&&(W=this.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&this.B0()&&this.videoData.isLivePlayback,K&&!W?this.loader.resume():YX(this,!0));g.C(this.playerState,2)||K?g.C(this.playerState,512)&&K&&this.uY(Ro(this.playerState,512)):this.uY(Bu(this.playerState,512));W=this.S0;W.qoe&&(W=W.qoe,g.Fa(W,g.gh(W.provider),"stream",[K?"A":"I"]))}; g.H.Jm=function(K){this.S0.aR("player.exception",GR({n:K.name,m:K.message}))}; g.H.UP=f4(22);g.H.va=f4(51);g.H.Oj=function(K){this.S0.Oj(K)}; g.H.cD=function(K){this.S0.cD(K)}; g.H.jw=function(K){this.S0.jw(K)}; g.H.fN=f4(28);g.H.xL=f4(34);g.H.jL=function(K){this.S0.jL(K)}; g.H.I8=function(K,W,U,h){this.S0.I8(K,W,U,h)}; g.H.bN=function(){this.rk("hidden",{},!0)}; g.H.CY=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.H.Fi=function(){return this.loader?this.loader.Fi():!0}; g.H.setLoop=function(K){this.loop=K;this.mediaElement&&!g.PJ(this.C)&&this.mediaElement.setLoop(K)}; g.H.q3=function(){return this.mediaElement&&!g.PJ(this.C)?this.mediaElement.q3():this.loop}; g.H.yu=function(K){this.rk("timestamp",{o:K.toString()});this.tS.yu(K)}; g.H.qy=function(K){this.aW.tick(K)}; g.H.XK=function(K){return this.aW.XK(K)}; g.H.O2=function(K){this.aW.O2(K)}; g.H.rk=function(K,W,U){this.S0.rk(K,W,U===void 0?!1:U)}; g.H.Ra=function(K,W,U){this.S0.rk(K,W,U===void 0?!1:U)}; g.H.aR=function(K){this.S0.aR(K.errorCode,GR(K.details));K=K.errorCode;if(this.videoData.isLivePlayback&&(K==="qoe.longrebuffer"||K==="qoe.slowseek")||K==="qoe.restart"){K=this.loader?BXR(this.loader.videoTrack):{};var W,U;this.rk("lasoe",Object.assign(this.loader?BXR(this.loader.audioTrack):{},(W=this.AK)==null?void 0:(U=W.j)==null?void 0:U.Me()));var h,m;this.rk("lvsoe",Object.assign(K,(h=this.AK)==null?void 0:(m=h.X)==null?void 0:m.Me()))}if(this.L("html5_log_centralized_player_time")){var S;this.rk("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(S=this.loader)==null?void 0:m9(S)})}}; g.H.Fa=function(K,W,U){this.S0.Fa(K,W,U)}; g.H.pG=function(K,W,U,h,m,S,f,G){var I;if((I=this.videoData.j)!=null&&I.isLive){var d=W.playerType===2?W:K,J=K.videoData.videoId,e=W.videoData.videoId;if(J&&e){I=this.S0;if(I.qoe){var E=I.qoe,B=K.cpn,D=W.cpn,a=d.videoData.Ez,Q=E.provider.videoData.clientPlaybackNonce,u=E.provider.videoData.videoId,O=D!==Q&&e!==u;Q=B!==Q&&J!==u;E.reportStats();E.adCpn&&E.adCpn!==B||(E.adCpn=Q?B:"",E.Ca=Q?J:"",E.adFormat=Q?a:void 0,CqL(E,S?4:m?2:0,D,e,h),E.reportStats(),E.adCpn=O?D:"",E.Ca=O?e:"",E.adFormat=O?a:void 0, CqL(E,S?5:m?3:1,B,J,U),E.reportStats())}U=K.cpn;if(I.N.has(U)){if(m=I.N.get(U),gV(m,!0).send(),pq(m),U!==I.provider.videoData.clientPlaybackNonce){ue2(m);var N;(N=I.j)==null||tg(N);I.N.delete(U)}}else I.aQ=I.provider.videoData.clientPlaybackNonce,I.aQ&&I.j&&(I.N.set(I.aQ,I.j),gV(I.j).send(),pq(I.j));N=W.cpn;d=d.videoData;h-=this.RN();if(I.N.has(N)){h=I.N.get(N);var A=h.N&&isNaN(h.U)?vH(h):NaN;h=nz(h,!1);isNaN(A)||(h.Y=A);h.send()}else h=fF_(I,I.provider,d,h),I.N.set(N,h),lIe(h,new g.e0(Bu(new g.Kw, 8),new g.Kw)),h.Uw(),(A=I.j)==null||pq(A);I.aQ=N;if(this.L("html5_unify_csi_server_stitched_transition_logging")){if(I=this.aW,A=W.cpn,h=this.videoData.clientPlaybackNonce,W=W.videoData,K=(K.cpn===h?"video":"ad")+"_to_"+(A===h?"video":"ad"),K!=="video_to_ad"){h=K==="ad_to_video"?void 0:W;d=h==null?void 0:h.Em;N={};if(W==null?0:W.G)N.cttAuthInfo={token:W.G,videoId:W.videoId};f&&(N.startTime=f);BN(K,N);var Z,x,b;f={targetVideoId:(Z=W==null?void 0:W.videoId)!=null?Z:"empty_video",targetCpn:A,adVideoId:(x= h==null?void 0:h.videoId)!=null?x:"empty_video",adClientPlaybackNonce:(b=d==null?void 0:d.cpn)!=null?b:h==null?void 0:h.clientPlaybackNonce};d&&(f.adBreakType=d.adBreakType,f.adType=d.adType);g.y2(f,K);NT(I,G,K)}}else Z=this.aW,b=this.videoData.clientPlaybackNonce,x=W.videoData,b=(K.cpn===b?"video":"ad")+"_to_"+(W.cpn===b?"video":"ad"),K={},x.G&&(K.cttAuthInfo={token:x.G,videoId:x.videoId}),f&&(K.startTime=f),BN(b,K),g.y2({targetVideoId:x.videoId,targetCpn:W.cpn,isSsdai:!0},b),f||NT(Z,G,b)}}else g.Rr(this.logger, 360717806,"SSTEvent for nonSS")}; g.H.jk=function(){var K=this.vl,W=K.HZ;K.HZ=[];return W}; g.H.mS=function(K){this.videoData.dc=!0;this.aR(new g.F3("sabr.fallback",K));this.Os(!0)}; g.H.nA=function(K,W){this.videoData.Q7=!0;if(W===void 0||W)this.aR(new g.F3("qoe.restart",K)),this.Os(!0)}; g.H.Ss=function(K){this.rk("sdai",{aftimeout:K});this.aR(new g.F3("ad.fetchtimeout",{timeout:K}))}; g.H.A$=function(K,W){this.rk("timelineerror",K);K=new g.F3("dai.timelineerror",K);W?this.jB("dai.timelineerror",1,"RETRYABLE_ERROR",GR(K.details)):this.aR(K)}; g.H.Da=function(){return g.gh(this.S0.provider)}; g.H.getPlayerSize=function(){return this.Rc.getPlayerSize()}; g.H.Us=function(){return this.Rc.Us()}; g.H.Wh=function(){return this.aW}; g.H.z_=function(){return this.vl.z_()}; g.H.getVolume=function(){return this.vl.getVolume()}; g.H.MR=function(){return this.vl.MR()}; g.H.isMuted=function(){return this.vl.isMuted()}; g.H.Ag=function(){return this.vl.Ag()}; g.H.bV=function(){this.e1=!0}; g.H.L=function(K){return this.C.L(K)}; g.H.qk=function(){return this.C.qk()}; g.H.gw=function(K,W,U,h,m){this.rk("xvt",{m:K,g:W?1:0,tt:U?1:0,np:h?1:0,c:m})}; g.H.fq=function(){var K;(K=this.loader)==null||K.resume()}; g.H.B0=function(){return g.BX(this.Q3,"ad")}; g.H.VC=function(){var K=this.getCurrentTime(),W=K-this.A7();var U=this.mediaElement?iq(this.mediaElement.Po()):0;U=Math.floor(Math.max(U-W,0))+100;var h;return((h=this.loader)==null?0:h.VC(W,U))?(this.rk("sdai",{skipad:1,ct:W.toFixed(3),adj:U.toFixed(3)}),HT(this.videoData)&&this.loader.seek(W+U,{seekSource:89,JS:"videoplayer_skipServerStitchedAd"}),NfF(this.tS,K),!0):!1}; g.H.G9=function(){return this.C.G9()}; g.H.tF=function(){if(this.L("html5_generate_content_po_token"))return this.videoData.yj||"";this.vl.kJ();return this.C.u5||""}; g.H.Ne=function(){if(this.videoData.videoId)return this.videoData.rP}; g.H.G7=function(){return this.videoData.videoId}; g.H.Rq=function(){return this.vl.wy}; g.H.LU=function(){return this.Mo}; g.H.AR=function(){return this.vl.AR()}; g.H.hZ=function(K,W,U){this.uY(Bu(this.playerState,16,U));this.tS.hZ(K,W,U)}; g.H.prefetchKeyPlay=function(K,W){var U;(U=this.loader)==null||U.prefetchKeyPlay(K,W)}; g.H.eh=function(K){return this.tS.eh(K)}; g.H.s3=function(){this.tS.s3()}; g.H.XP=function(K,W){var U=this.L("html5_generate_content_po_token")?this.videoData:void 0;this.vl.XP(K,W,U)}; g.H.ir=function(K,W){this.S0.ir(K,W)}; g.H.Bz=function(){return this.S0.Bz()}; g.H.Hh=function(){return this.vl.Hh()}; g.H.Zq=function(){return this.vl.Zq(this)}; g.H.fh=function(){this.Gj=!0}; g.H.WD=function(K){var W;(W=this.loader)==null||W.WD(K)}; g.H.tI=function(){return this.videoData.Cg&&this.bO};g.V(sFD,jf);g.V(fO,OI);fO.prototype.j=function(K){K&&Sw(this,this.D.getLoopVideo());this.D.logVisibility(this.element,K)}; fO.prototype.logClick=function(){this.D.logClick(this.element)}; fO.prototype.onLoopChange=function(K){Sw(this,K)}; fO.prototype.X=function(K){this.D.setLoopVideo(K)};g.V(Xhp,jf);g.V(tb,jf);g.H=tb.prototype;g.H.seekToChapterWithAnimation=function(K){var W=this;if(g.dK(this.api)&&!(K<0)){var U=this.api.getVideoData(),h=U.AS;if(h&&K=0)return;W=~W;g.vd(this.items,W,0,K);LB(this.menuItems.element,K.element,W)}K.subscribe("size-change",this.lP,this);this.menuItems.publish("size-change")}; g.H.dM=function(){VmR(this)||this.items[0].focus();return!0}; g.H.Dt=function(){this.items[this.items.length-1].focus();return!0}; g.H.z7=function(K){K.unsubscribe("size-change",this.lP,this);this.qs()||(g.sS(this.items,K),this.menuItems.element.removeChild(K.element),this.menuItems.publish("size-change"))}; g.H.lP=function(){this.menuItems.publish("size-change")}; g.H.focus=function(){for(var K=0,W=0;W1&&g.an(this)}; g.H.yG=function(){z5C(this);this.Xo&&(z$p(this),g.Dl(this.element,this.size))}; g.H.HN=function(){var K=this.j.pop();ra(this,K,this.j[this.j.length-1],!0)}; g.H.RD=function(K){if(!K.defaultPrevented)switch(K.keyCode){case 27:this.z9();K.preventDefault();break;case 37:this.j.length>1&&this.HN();K.preventDefault();break;case 39:K.preventDefault()}}; g.H.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; g.H.QH=function(){g.Ih.prototype.QH.call(this);this.N&&this.N.dispose();this.W&&this.W.dispose()};g.V(gA,g.r$);gA.prototype.open=function(K,W){this.initialize(K.items)&&this.Kr(W,!!W)}; gA.prototype.initialize=function(K){g.QP(this.bB);if(K===void 0||K.length===0)return!1;var W=K.length;K=g.z(K);for(var U=K.next();!U.done;U=K.next())this.j_(U.value,W--);return!0}; gA.prototype.j_=function(K,W){K.menuNavigationItemRenderer?iy_(this,K.menuNavigationItemRenderer,W):K.menuServiceItemRenderer&&U5s(this,K.menuServiceItemRenderer,W)};g.V(Hv,dw);g.H=Hv.prototype;g.H.Wn=function(K){K.target!==this.dismissButton.element&&K.target!==this.overflowButton.element&&(this.OQ(),this.onClickCommand&&this.D.Fx("innertubeCommand",this.onClickCommand))}; g.H.eG=function(){this.enabled=!1;this.J.hide()}; g.H.MI=function(){return!!this.j&&this.enabled}; g.H.onVideoDataChange=function(K,W){this.Mx(W);if(this.j){this.rF();a:if(!this.isCounterfactual){var U,h,m;this.banner.update({title:(U=this.j)==null?void 0:U.title,subtitle:(h=this.j)==null?void 0:h.subtitle,metadata:(m=this.j)==null?void 0:m.metadataText});var S;this.onClickCommand=g.P((S=this.j)==null?void 0:S.onTap,Fn);var f;if(K=g.P((f=this.j)==null?void 0:f.onOverflow,Fn))this.G=g.P(K,Xsv);var G;if((G=this.j)==null?0:G.thumbnailImage){var I,d;f=((I=this.j)==null?void 0:(d=I.thumbnailImage)== null?void 0:d.sources)||[];if(f.length===0)break a;this.thumbnailImage.update({url:f[0].url})}else{var J;if((J=this.j)==null?0:J.thumbnailIconName){var e;this.thumbnailIcon.update({icon:(e=this.j)==null?void 0:e.thumbnailIconName})}}var E;this.shouldShowOverflowButton=!((E=this.j)==null||!E.shouldShowOverflowButton);var B;this.shouldHideDismissButton=!((B=this.j)==null||!B.shouldHideDismissButton)}var D;this.banner.element.setAttribute("aria-label",((D=this.j)==null?void 0:D.a11yLabel)||"");var a; this.Bp=(a=this.j)==null?void 0:a.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Zl(this)}}; g.H.cSx=function(){this.isVisible=!0;Zl(this)}; g.H.CYK=function(){this.isVisible=!1;Zl(this)}; g.H.yZ=function(){dw.prototype.yZ.call(this);this.X&&this.D.logVisibility(this.banner.element,this.isVisible)}; g.H.OQ=function(){dw.prototype.OQ.call(this,!1);this.X&&this.D.logClick(this.banner.element)}; g.H.dC=function(K){this.U||(this.U=new gA(this.D),g.k(this,this.U));var W,U;if((W=this.G)==null?0:(U=W.menu)==null?0:U.menuRenderer)this.U.open(this.G.menu.menuRenderer,K.target),K.preventDefault()}; g.H.Mx=function(){}; g.H.rF=function(){}; g.H.QH=function(){this.D.L5("suggested_action_view_model");dw.prototype.QH.call(this)};g.V(Om,Hv); Om.prototype.Mx=function(K){var W,U,h;this.productUpsellSuggestedActionViewModel=g.P((W=K.getWatchNextResponse())==null?void 0:(U=W.playerOverlays)==null?void 0:(h=U.playerOverlayRenderer)==null?void 0:h.suggestedActionViewModel,SWN);var m;if((m=this.productUpsellSuggestedActionViewModel)==null?0:m.content){var S;this.j=g.P((S=this.productUpsellSuggestedActionViewModel)==null?void 0:S.content,bRW)}var f,G;if(this.X=!!((f=this.productUpsellSuggestedActionViewModel)==null?0:(G=f.loggingDirectives)==null? 0:G.trackingParams)){var I,d;this.D.setTrackingParams(this.banner.element,((I=this.productUpsellSuggestedActionViewModel)==null?void 0:(d=I.loggingDirectives)==null?void 0:d.trackingParams)||null)}var J;this.isCounterfactual=!((J=this.productUpsellSuggestedActionViewModel)==null||!J.isCounterfactualServing)}; Om.prototype.rF=function(){var K=[],W,U=g.z(((W=this.productUpsellSuggestedActionViewModel)==null?void 0:W.ranges)||[]);for(W=U.next();!W.done;W=U.next()){var h=W.value;h&&(W=Number(h.startTimeMilliseconds),h=Number(h.endTimeMilliseconds),isNaN(W)||isNaN(h)||K.push(new g.g0(W,h,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.D.lG(K)};g.V(o4p,jf);g.V(HM,jf);HM.prototype.onVideoDataChange=function(K,W){var U=this;if(!gB(W)&&(K==="newdata"&&Lt(this),this.j&&K==="dataloaded")){this.j=!1;var h;Sx(qd(JZ(this.api.V(),(h=this.api.getVideoData())==null?void 0:g.mp(h)),function(m){enF(U,m)}),function(){U.j=!0})}}; HM.prototype.Tz=function(){var K=this;if(g.PJ(this.api.V())){var W,U=g.UY(this.api.V(),(W=this.api.getVideoData())==null?void 0:g.mp(W));return qd(s0(U),function(h){var m=Mo();U5(m,h);return K.api.Tz(m)})}return s0(this.api.Tz())};g.V(g.It,g.ad);g.H=g.It.prototype;g.H.open=function(){g.u5(this.pg,this.FI)}; g.H.b$=function(K){YEC(this);var W=this.options[K];W&&(W.element.setAttribute("aria-checked","true"),this.setContent(this.mZ(K)),this.U=K)}; g.H.Wa=function(K){g.QP(this.FI);for(var W={},U=!1,h=0;h=0?this.j.playbackRate:1}catch(K){return 1}}; g.H.setPlaybackRate=function(K){this.getPlaybackRate()!==K&&(this.j.playbackRate=K);return K}; g.H.q3=function(){return this.j.loop}; g.H.setLoop=function(K){this.j.loop=K}; g.H.canPlayType=function(K,W){return this.j.canPlayType(K,W)}; g.H.isPaused=function(){return this.j.paused}; g.H.isSeeking=function(){return this.j.seeking}; g.H.isEnded=function(){return this.j.ended}; g.H.uH=function(){return this.j.muted}; g.H.Ai=function(K){LE();this.j.muted=K}; g.H.ZZ=function(){return this.j.played||hy([],[])}; g.H.Po=function(){try{var K=this.j.buffered}catch(W){}return K||hy([],[])}; g.H.P9=function(){return this.j.seekable||hy([],[])}; g.H.pF=function(){var K=this.j;return K.getStartDate?K.getStartDate():null}; g.H.getCurrentTime=function(){return this.j.currentTime}; g.H.setCurrentTime=function(K){this.j.currentTime=K}; g.H.getDuration=function(){return this.j.duration}; g.H.load=function(){var K=this.j.playbackRate;try{this.j.load()}catch(W){}this.j.playbackRate=K}; g.H.pause=function(){this.j.pause()}; g.H.play=function(){var K=this.j.play();if(!K||!K.then)return null;K.then(void 0,function(){}); return K}; g.H.yn=function(){return this.j.readyState}; g.H.bH=function(){return this.j.networkState}; g.H.KN=function(){return this.j.error?this.j.error.code:null}; g.H.Xh=function(){return this.j.error?this.j.error.message:""}; g.H.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var K=this.j,W=K.webkitDroppedFrameCount;if(K=K.webkitDecodedFrameCount)return{droppedVideoFrames:W||0,totalVideoFrames:K}}return{}}; g.H.Dw=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; g.H.ih=function(){return!!this.j.webkitShowPlaybackTargetPicker()}; g.H.togglePictureInPicture=function(){var K=this.j,W=window.document;window.document.pictureInPictureEnabled?this.j!==W.pictureInPictureElement?K.requestPictureInPicture():W.exitPictureInPicture():X4()&&K.webkitSetPresentationMode(K.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.H.AV=function(){var K=this.j;return new g.SA(K.offsetLeft,K.offsetTop)}; g.H.getSize=function(){return g.nL(this.j)}; g.H.setSize=function(K){g.Dl(this.j,K)}; g.H.getVolume=function(){return this.j.volume}; g.H.setVolume=function(K){LE();this.j.volume=K}; g.H.Zv=function(K){this.U[K]||(this.j.addEventListener(K,this.listener),this.U[K]=this.listener)}; g.H.setAttribute=function(K,W){this.j.setAttribute(K,W)}; g.H.removeAttribute=function(K){this.j.removeAttribute(K)}; g.H.hasAttribute=function(K){return this.j.hasAttribute(K)}; g.H.qc=f4(61);g.H.gs=f4(63);g.H.iy=f4(65);g.H.W9=f4(67);g.H.hq=function(){return rN(this.j)}; g.H.ut=function(K){g.$C(this.j,K)}; g.H.PQ=function(K){return g.$v(this.j,K)}; g.H.zf=function(){return g.Hj(document.body,this.j)}; g.H.audioTracks=function(){var K=this.j;if("audioTracks"in K)return K.audioTracks}; g.H.QH=function(){for(var K=g.z(Object.keys(this.U)),W=K.next();!W.done;W=K.next())W=W.value,this.j.removeEventListener(W,this.U[W]);Eg.prototype.QH.call(this)}; g.H.zQ=function(K){this.j.disableRemotePlayback=K};g.V($8,g.y);g.V(dE,g.y);dE.prototype.show=function(){g.y.prototype.show.call(this);this.SV()}; dE.prototype.hide=function(){g.y.prototype.hide.call(this);this.delay.stop();this.W.stop()}; dE.prototype.SV=function(){var K=(0,g.AI)(),W=bip(this.Yx);fF(this.j,W.bandwidth_samples);fF(this.G,W.network_activity_samples);fF(this.N,W.live_latency_samples);fF(this.X,W.buffer_health_samples);var U={};W=g.z(Object.entries(W));for(var h=W.next();!h.done;h=W.next()){var m=g.z(h.value);h=m.next().value;m=m.next().value;this.Y[h]!==m&&(U[h]=" "+String(m));this.Y[h]=m}this.update(U);K=(0,g.AI)()-K>25?5E3:500;this.delay.start(K)}; dE.prototype.J=function(){this.U?(this.position+=1,this.position>15&&(this.U=!1)):(--this.position,this.position<=0&&(this.U=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.W.start(2E4)};g.V(uNe,jf);g.V(BR,g.p);BR.prototype.j=function(){var K=(0,g.AI)()-this.startTime;K=Kthis.W[K])&&(this.j=K,this.T6())}; g.H.onCueRangeExit=function(K){var W=Hn$(this,K);W&&this.j===K&&this.api.Fx("innertubeCommand",W);c8(this);this.j=void 0}; g.H.k9=function(K){this.N=K}; g.H.Qu=function(){this.T6();this.N=void 0}; g.H.T6=function(){if(this.j!==void 0){var K=(K=bK(this,this.j))&&K.onCueRangeEnter?n$(K.onCueRangeEnter):void 0;var W=bK(this,this.j);a:if(W&&W.additionalTrigger){var U=g.z(W.additionalTrigger);for(var h=U.next();!h.done;h=U.next())if(h=h.value,h.type){var m=void 0,S=void 0;if((m=this.DA[h.type])==null?0:m((S=h.args)!=null?S:{})){U=!0;break a}}U=!1}else U=!0;K&&U&&(this.api.Fx("innertubeCommand",K),K4F(this,W),this.W[this.j]!==void 0&&this.W[this.j]++,this.jV=!0)}}; g.H.QH=function(){this.timelyActions=this.N=this.j=this.videoId=void 0;this.W={};this.hD();c8(this);jf.prototype.QH.call(this)};g.V(kn$,jf);g.V(mw,OI);mw.prototype.W=function(K){this.N(K?2:1)}; mw.prototype.Kc=function(){var K=this.D.getPresentingPlayerType();K===2||K===3?this.j&&(this.j=!1,this.pg.z7(this)):(K=this.getVoiceBoostState(),K!==1?(K===0?(Sw(this,this.X()===2),this.setEnabled(!0)):(Sw(this,!1),this.setEnabled(!1)),this.j||(this.pg.j_(this),this.j=!0)):this.j&&(this.pg.z7(this),this.j=!1))}; mw.prototype.QH=function(){this.pg.z7(this);OI.prototype.QH.call(this)};g.V(wz,jf);wz.prototype.getVoiceBoostUserPreference=function(){return this.j}; wz.prototype.setVoiceBoostUserPreference=function(K){this.api.rk("vb_set",{pref:K});g.SI("yt-player-voice-boost",K);K!==this.j&&(this.j=K,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.yV(),this.api.s4())}; wz.prototype.getVoiceBoostState=function(){return this.api.dQ(1)}; wz.prototype.updateEnvironmentData=function(){this.api.V().ub=this.j};g.V(l_,jf);l_.prototype.QH=function(){this.J&&(g.Pa(this.J),this.J=void 0);jf.prototype.QH.call(this)}; l_.prototype.kJ=function(){(this.X?!this.j:this.N)&&QH(this)}; l_.prototype.Ph=function(K,W,U){var h=this;if(RzY(K)){var m=U||"";if(this.j)W=TW(this,m),Pnz(K,W);else{var S=new g.JW;W.push(S.promise);this.U.promise.then(function(){var f=TW(h,m);Pnz(K,f);S.resolve()})}}}; l_.prototype.m0=function(K){var W=this;if(this.X||this.N)K.yj=TW(this,K.videoId),this.j||(this.W=new Y2,this.U.promise.then(function(){W.aW.XK("pot_if");K.yj=TW(W,K.videoId)}))};g.V(g.WA,g.y);g.WA.prototype.select=function(){this.api.PY(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.q0||void 0)&&this.api.logClick(this.element)}; g.WA.prototype.onClick=function(K){if(g.HB(this.api.V())&&this.api.L("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var W=this.suggestion.cN(),U={};g.bo(this.api,U);W=g.sL(W,U);g.sf(W,this.api,K)}else g.Vs(K,this.api,this.X,this.suggestion.sessionData||void 0)&&this.select()}; g.WA.prototype.onKeyPress=function(K){switch(K.keyCode){case 13:case 32:K.defaultPrevented||(this.select(),K.preventDefault())}}; g.WA.prototype.onVideoDataChange=function(){var K=this.api.getVideoData(),W=this.api.V();this.X=K.Mk?!1:W.W};g.V(qV,g.y);qV.prototype.QH=function(){this.hide();g.Qa(this.N);g.Pz(this.stills);this.stills.length=0;this.j&&(this.j.remove(),this.j=void 0);g.y.prototype.QH.call(this)}; qV.prototype.G=function(K){this.Y&&this.Y(K)}; qV.prototype.onVideoDataChange=function(){if(!this.U){this.videoData=this.player.getVideoData(1);var K,W,U,h,m;var S=(((K=this.videoData)==null?0:(W=K.suggestions)==null?0:W.length)?(U=this.videoData)==null?void 0:U.suggestions:((h=this.videoData)==null?0:g.eC(h))?[(m=this.videoData)==null?void 0:g.eC(m)]:[]).slice(0,18);if((K=this.W)&&this.X)if(g.QG(K),S.length)for(this.stills.length>S.length&&g.Pz(this.stills.splice(S.length)),this.stills.length=S.length,W=0;W=0;K--)this.features[K].dispose();this.features.length=0;g.p.prototype.QH.call(this)};kle.prototype.reset=function(){this.j=this.X=NaN};g.H=El.prototype;g.H.reset=function(){t2(this.timerName)}; g.H.tick=function(K,W){XL(K,W,this.timerName)}; g.H.XK=function(K){return G8(K,void 0,this.timerName)}; g.H.O2=function(K){g.sj(K,void 0,this.timerName)}; g.H.infoGel=function(K){g.y2(K,this.timerName)};g.V(rE,g.GP);g.H=rE.prototype;g.H.zP=function(K){return this.loop||!!K||this.index+1=0}; g.H.setShuffle=function(K){this.shuffle=K;K=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var W=0;W=W.top&&K.right<=W.right&&K.bottom<=W.bottom&&K.left>=W.left))return}c_(this,2,!1)}; g.H.D0=function(K){var W=new g.SA(K.pageX,K.pageY);Cu(W,this.W)||(this.W=W,(K=K.target)&&this.lk(K)&&(c_(this,4,!0),this.j.GK(this.N),this.N=this.j.S(this.target,"mouseover",this.Fn),this.Y=this.j.S(this.target,"mouseout",this.Fn)))}; g.H.Fn=function(K){K=K.relatedTarget;K&&this.lk(K)||(this.W=new g.SA(NaN,NaN),s7$(this))}; g.H.aOA=function(){c_(this,1,!0)}; g.H.ke=function(K){K=K.target;K instanceof Element&&!(K.tabIndex>0)||c_(this,1,!0)}; g.H.UR=function(){this.G=!0;this.j.GK(this.U);this.U=this.j.S(document,"mouseup",this.mO)}; g.H.mO=function(){this.G=!1;c_(this,8,!1);this.j.GK(this.U);this.U=this.j.S(this.target,"mousedown",this.UR)}; g.H.Dl=function(K){if(K=(K=K.changedTouches)&&K[0])this.DA=K.identifier,this.j.GK(this.J),this.J=this.j.S(this.target,"touchend",this.z$,void 0,!0),c_(this,1024,!0)}; g.H.z$=function(K){if(K=K.changedTouches)for(var W=0;W1280||m>720)if(W=h.S7("maxresdefault.jpg"))break;if(S>640||m>480)if(W=h.S7("maxresdefault.jpg"))break;if(S>320||m>180)if(W=h.S7("sddefault.jpg")||h.S7("hqdefault.jpg")||h.S7("mqdefault.jpg"))break;if(W=h.S7("default.jpg"))break}g.Hh(K)&&(K=new Image,K.addEventListener("load", function(){KZY()}),K.src=W?W:"",this.api.Wh().tick("ftr")); this.W.style.backgroundImage=W?"url("+W+")":""};g.V(g.To,g.y);g.To.prototype.resize=function(){}; g.To.prototype.X=function(K){var W=this;this.N=!1;SkR(this);var U=K.YY,h=this.api.V();U!=="GENERIC_WITHOUT_LINK"||h.G?U==="TOO_MANY_REQUESTS"?(h=this.api.getVideoData(),this.setContent(tq(this,"TOO_MANY_REQUESTS_WITH_LINK",h.cN(),void 0,void 0,void 0,!1))):U!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||h.G?this.api.V().L("html5_enable_bandaid_error_screen")&&U==="HTML5_SPS_UMP_STATUS_REJECTED"&&!h.G?(h=h.hostLanguage,K="//support.google.com/youtube?p=videoError",h&&(K=g.sL(K,{hl:h})),this.setContent(tq(this, "HTML5_SPS_UMP_STATUS_REJECTED",K))):this.api.V().L("enable_adb_handling_in_sabr")&&U==="BROWSER_OR_EXTENSION_ERROR"&&!h.G?(h=h.hostLanguage,K="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",h&&(K=g.sL(K,{hl:h})),this.setContent(tq(this,"BROWSER_OR_EXTENSION_ERROR",K))):this.setContent(g.UU(K.errorMessage)):this.setContent(tq(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(K=h.hostLanguage,U= "//support.google.com/youtube/?p=player_error1",K&&(U=g.sL(U,{hl:K})),this.setContent(tq(this,"GENERIC_WITH_LINK_AND_CPN",U,!0)),h.q5&&!h.W&&H12(this,function(S){if(g.Vs(S,W.api,!p_(W.api.V()))){S={as3:!1,html5:!0,player:!0,cpn:W.api.getVideoData().clientPlaybackNonce};var f=W.api;f.Ov("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:S});f.isFullscreen()&&f.toggleFullscreen()}})); if(this.N){var m=this.yH("ytp-error-link");m&&(this.api.createClientVe(m,this,216104),this.api.logVisibility(m,!0),H12(this,function(){W.api.logClick(m)}))}}; var iks=/([^<>]+)<\/a>/;g.V(ux,g.y);ux.prototype.Yq=function(K,W,U){U=U===void 0?!1:U;switch(W){case 1:Uc(this,K,this.N,U);break;case 2:Uc(this,K,this.W,U);break;case 3:Uc(this,K,this.j,U);break;case 4:Uc(this,K,this.X,U)}};g.V(Gh,g.y);g.H=Gh.prototype;g.H.onClick=function(K){this.innertubeCommand?(this.D.Fx("innertubeCommand",this.innertubeCommand),K.preventDefault()):g.Vs(K,this.D,!0);this.D.logClick(this.element)}; g.H.onVideoDataChange=function(K,W){B1C(this,W);this.RR&&tvF(this,this.RR)}; g.H.kt=function(K){var W=this.D.getVideoData();this.videoId!==W.videoId&&B1C(this,W);this.j&&tvF(this,K.state);this.RR=K.state}; g.H.Kr=function(){this.fade.show();this.D.publish("paidcontentoverlayvisibilitychange",!0);this.D.logVisibility(this.element,!0)}; g.H.z9=function(){this.fade.hide();this.D.publish("paidcontentoverlayvisibilitychange",!1);this.D.logVisibility(this.element,!1)};g.V(ZF,g.y);ZF.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.y.prototype.hide.call(this)}; ZF.prototype.onStateChange=function(K){this.Bl(K.state)}; ZF.prototype.Bl=function(K){if(g.C(K,128)||this.api.LU())var W=!1;else{var U;W=this.api.L("web_watch_enable_multiview_manager")&&((U=this.api.getVideoData())==null?0:gB(U))?!1:g.C(K,16)||g.C(K,1)?!0:!1}W?this.j.start():this.hide()}; ZF.prototype.X=function(){this.message.style.display="block"};g.V(zd,g.Ih);zd.prototype.onMutedAutoplayChange=function(K){this.X&&(K?(OLR(this),this.Kr()):(this.j&&this.logClick(),this.z9()))}; zd.prototype.dg=function(K){this.api.isMutedByMutedAutoplay()&&g.M9(K,2)&&this.z9()}; zd.prototype.onClick=function(){this.api.unMute();this.logClick()}; zd.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.V(g.nE,g.Te);g.H=g.nE.prototype;g.H.init=function(){var K=this.api,W=K.getPlayerStateObject();this.BO=K.getPlayerSize();this.uY(W);this.F5();this.IW();this.api.publish("basechromeinitialized",this);this.V8()&&this.api.publish("standardControlsInitialized")}; g.H.onVideoDataChange=function(K,W){var U=this.Ar!==W.videoId;if(U||K==="newdata")K=this.api,K.isFullscreen()||(this.BO=K.getPlayerSize());U&&(this.Ar=W.videoId,U=this.Fc,U.hK=3E3,c_(U,512,!0),this.F5());this.api.L("web_render_jump_buttons")&&W.showSeekingControls&&(this.dF=572)}; g.H.Z5k=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.H.FG=function(){var K=this.api.e$()&&this.api.kD(),W=this.api.PO();return this.gJ||K||this.Np||W}; g.H.zk=function(){var K=!this.FG();g.JM(this.api.getRootNode(),"ytp-menu-shown",!K)}; g.H.lk=function(K){try{if(!g.Hj(this.api.getRootNode(),K))return!1}catch(W){return!1}for(;K&&!HH(K);)K=K===this.api.getRootNode()?null:K.parentElement||null;return!!K}; g.H.fU=function(K){var W=this.api.getRootNode();g.JM(W,"ytp-autohide",K);g.JM(W,"ytp-autohide-active",!0);this.CH.start(K?250:100);K&&(this.ZP=!1,g.WR(W,"ytp-touch-mode"));this.jg=!K;this.api.r3(!K);this.api.L("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",K)}; g.H.kA=function(){var K=this.api.getRootNode();g.JM(K,"ytp-autohide-active",!1)}; g.H.wdA=function(){this.TO=!0}; g.H.VBH=function(K){if(this.api.V().L("player_doubletap_to_seek")||this.api.V().Y)this.TO=!1,this.Ot&&this.GK(this.Ot),this.yE===0&&j$(this,K)?(this.yp(),this.LA.start(),this.Ot=this.S(this.api.xx(),"touchmove",this.wdA,void 0,!0)):this.LA.stop();SNs(this)&&j$(this,K)&&!this.api.V().Y&&ZHe(this);var W=this.HK.Ej();if(!g.HB(this.api.V())&&CO&&Zn(this,K))W&&K.preventDefault();else if(this.ZP=!0,g.$C(this.api.getRootNode(),"ytp-touch-mode"),this.Fc.wZ(),this.api.V().L("player_doubletap_to_seek")||this.api.V().Y)if(W= this.api.getPlayerStateObject(),!(!this.api.gS()||g.C(W,2)&&g.si(this.api)||g.C(W,64))){W=Date.now()-this.TN;this.yE+=1;if(W<=350){this.Mi=!0;W=this.api.getPlayerSize().width/3;var U=this.api.getRootNode().getBoundingClientRect(),h=K.targetTouches[0].clientX-U.left;U=K.targetTouches[0].clientY-U.top;var m=(this.yE-1)*10;h>0&&hW*2&&h=650,h=K.width<528;this.Fc.resize();if(this.api.L("web_player_use_screen_width_for_big_mode")){var m,S=K.width>=((m=g.jV(this.api.V().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?m:2E3);g.JM(W,"ytp-big-mode",S)}g.JM(W,"ytp-fullscreen",this.api.isFullscreen());g.JM(W,"ytp-large-width-mode",U);this.api.L("delhi_modern_web_player")?g.JM(W,"ytp-xsmall-width-mode",h):g.JM(W,"ytp-small-mode",this.je()); g.JM(W,"ytp-tiny-mode",this.cO());g.JM(W,"ytp-big-mode",this.Hu());this.Zp&&this.Zp.resize(K)}; g.H.dg=function(K){this.uY(K.state);this.F5()}; g.H.Be=f4(3);g.H.Ui=function(){var K=!!this.Ar&&!this.api.U_()&&!this.dD,W=this.api.getPresentingPlayerType()===2,U=this.api.V();if(W)return U=Mr(this.api.h7()),K&&(U&&U.player?K=(K=U.player.getVideoData(2))?K.isListed&&!g.Lm(U.player.V()):!1:(UF("showInfoBarDuringAd: this is null"),K=!1)),K;W=U.L("web_player_imax_theater_mode")&&this.api.F8()&&!this.api.isInline();return K&&(U.ib||W||this.api.isFullscreen()||U.NN)}; g.H.F5=function(){var K=this.Ui();this.AF!==K&&(this.AF=K,g.JM(this.api.getRootNode(),"ytp-hide-info-bar",!K))}; g.H.uY=function(K){var W=K.isCued()||this.api.kF()&&this.api.getPresentingPlayerType()!==3;W!==this.isCued&&(this.isCued=W,this.Ut&&this.GK(this.Ut),this.Ut=this.S(this.api.xx(),"touchstart",this.VBH,void 0,W));var U=this.Fc,h=K.isPlaying()&&!g.C(K,32)||this.api.m3();c_(U,128,!h);U=this.Fc;h=this.api.getPresentingPlayerType()===3;c_(U,256,h);U=this.api.getRootNode();g.C(K,2)?h=[qQ.ENDED]:(h=[],g.C(K,8)?h.push(qQ.PLAYING):g.C(K,4)&&h.push(qQ.PAUSED),g.C(K,1)&&!g.C(K,32)&&h.push(qQ.BUFFERING),g.C(K, 32)&&h.push(qQ.SEEKING),g.C(K,64)&&h.push(qQ.UNSTARTED));g.zk(this.pz,h)||(g.Jj(U,this.pz),this.pz=h,g.oh(U,h));h=this.api.V();var m=g.C(K,2);a:{var S=this.api.V();var f=S.controlsType;switch(f){case "2":case "0":S=!1;break a}S=f==="3"&&!g.C(K,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:eJL(Mr(this.api.h7())))||this.api.PO()||g.HB(S)&&this.api.getPresentingPlayerType()===2?!1:!0}g.JM(U,"ytp-hide-controls",!S);g.JM(U,"ytp-native-controls",h.controlsType==="3"&&!W&&!m&&!this.Np);g.C(K, 128)&&!g.HB(h)?(this.Zp||(this.Zp=new g.To(this.api),g.k(this,this.Zp),g.HW(this.api,this.Zp.element,4)),this.Zp.X(K.wi),this.Zp.show()):this.Zp&&(this.Zp.dispose(),this.Zp=null)}; g.H.hR=function(){return this.api.e$()&&this.api.kD()?(this.api.Yl(!1,!1),!0):this.api.U_()?(g.nF(this.api,!0),!0):!1}; g.H.onMutedAutoplayChange=function(K){this.Np=K;this.zk()}; g.H.Hu=function(){return!1}; g.H.je=function(){return!this.Hu()&&(this.api.getPlayerSize().width=0&&W.left>=0&&W.bottom>W.top&&W.right>W.left?W:null;W=this.size;K=K.clone();W=W.clone();h&&(f=W,m=5,(m&65)==65&&(K.x=h.right)&&(m&=-2),(m&132)==132&&(K.y=h.bottom)&&(m&=-5),K.xh.right&&(f.width=Math.min(h.right-K.x,S+f.width-h.left),f.width=Math.max(f.width,0))),K.x+f.width>h.right&&m&1&&(K.x=Math.max(h.right-f.width,h.left)),K.yh.bottom&&(f.height=Math.min(h.bottom-K.y,S+f.height-h.top),f.height=Math.max(f.height,0))),K.y+f.height>h.bottom&&m&4&&(K.y=Math.max(h.bottom-f.height,h.top)));h=new g.Bh(0,0,0,0);h.left=K.x;h.top=K.y;h.width= W.width;h.height=W.height;g.tw(this.element,new g.SA(h.left,h.top));g.Qa(this.X);this.X.S(ah(this),"contextmenu",this.Ie5);this.X.S(this.D,"fullscreentoggled",this.onFullscreenToggled);this.X.S(this.D,"pageTransition",this.vB)}; g.H.Ie5=function(K){if(!K.defaultPrevented){var W=YZ(K);g.Hj(this.element,W)||this.z9();this.D.V().disableNativeContextMenu&&K.preventDefault()}}; g.H.onFullscreenToggled=function(){this.z9();BDC(this)}; g.H.vB=function(){this.z9()};g.V(kX,g.y);kX.prototype.onClick=function(){var K=this,W,U,h,m;return g.r(function(S){if(S.j==1)return W=K.api.V(),U=K.api.getVideoData(),h=K.api.getPlaylistId(),m=W.getVideoUrl(U.videoId,h,void 0,!0),g.T(S,Rap(K,m),2);S.X&&Y_$(K);K.api.logClick(K.element);g.q1(S)})}; kX.prototype.SV=function(){this.updateValue("icon",{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.updateValue("tooltip-title","Copy link");this.visible=DEs(this);g.JM(this.element, "ytp-copylink-button-visible",this.visible);this.J7(this.visible);this.tooltip.T8();this.api.logVisibility(this.element,this.visible&&this.jV)}; kX.prototype.My=function(K){g.y.prototype.My.call(this,K);this.api.logVisibility(this.element,this.visible&&K)}; kX.prototype.QH=function(){g.y.prototype.QH.call(this);g.WR(this.element,"ytp-copylink-button-visible")};g.V(Nn,g.y);g.H=Nn.prototype;g.H.show=function(){g.y.prototype.show.call(this);g.yG(this.X)}; g.H.hide=function(){this.W.stop();this.N=0;this.yH("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.WR(this.element,"ytp-chapter-seek");g.WR(this.element,"ytp-time-seeking");g.y.prototype.hide.call(this)}; g.H.U9=function(K,W,U,h){this.N=K===this.G?this.N+h:h;this.G=K;var m=K===-1?this.J:this.Y;m&&this.D.logClick(m);this.U?this.X.stop():g.pz(this.X);this.W.start();this.element.setAttribute("data-side",K===-1?"back":"forward");var S=3*this.D.xx().getPlayerSize().height;m=this.D.xx().getPlayerSize();m=m.width/3-3*m.height;this.j.style.width=S+"px";this.j.style.height=S+"px";K===1?(this.j.style.left="",this.j.style.right=m+"px"):K===-1&&(this.j.style.right="",this.j.style.left=m+"px");var f=S*2.5;S=f/ 2;var G=this.yH("ytp-doubletap-ripple");G.style.width=f+"px";G.style.height=f+"px";K===1?(K=this.D.xx().getPlayerSize().width-W+Math.abs(m),G.style.left="",G.style.right=K-S+"px"):K===-1&&(K=Math.abs(m)+W,G.style.right="",G.style.left=K-S+"px");G.style.top="calc((33% + "+Math.round(U)+"px) - "+S+"px)";if(U=this.yH("ytp-doubletap-ripple"))U.classList.remove("ytp-doubletap-ripple"),U.classList.add("ytp-doubletap-ripple");tWY(this,this.U?this.N:h)}; g.H.mJ=function(K,W,U){if(U=U===void 0?null:U){var h=K===-1?this.J.visualElement:this.Y.visualElement;U={seekData:U};var m=g.z0();m&&ul(m,h,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",U)}this.N=K===this.G?this.N+W:W;this.G=K;h=this.D.xx().getPlayerSize();this.U?this.X.stop():g.pz(this.X);this.W.start();this.element.setAttribute("data-side",K===-1?"back":"forward");g.$C(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";U=h.width*.1-15;K===1?this.Ms?(this.j.style.right= U+"px",this.j.style.left=""):(this.j.style.right="",this.j.style.left=h.width*.8-30+"px"):K===-1&&(this.Ms?(this.j.style.right="",this.j.style.left=U+"px"):(this.j.style.right="",this.j.style.left=h.width*.1-15+"px"));this.j.style.top=h.height*.5+15+"px";tWY(this,this.U?this.N:W)}; g.H.yP=function(K,W,U){U=U===void 0?null:U;g.pz(this.X);this.W.start();switch(K){case -1:K="back";break;case 1:K="forward";break;default:K=""}this.element.setAttribute("data-side",K);this.j.style.width="0";this.j.style.height="0";g.$C(this.element,"ytp-chapter-seek");this.updateValue("seekText",W);this.updateValue("seekTime","");W=this.yH("ytp-seek-icon");if(U){a:if(U){switch(U){case "PREMIUM_STANDALONE":U=B6L();break a;case "PREMIUM_STANDALONE_CAIRO":U=Uk$();break a}U=void 0}else U=null;this.updateValue("seekIcon", U);W.style.display="inline-block"}else W.style.display="none"};g.V(J0,dw);g.H=J0.prototype;g.H.Sp=function(K){this.Le||(this.Le=new gA(this.D),g.k(this,this.Le));var W,U;if((W=this.Qg)==null?0:(U=W.menu)==null?0:U.menuRenderer)this.Le.open(this.Qg.menu.menuRenderer,K.target),K.preventDefault()}; g.H.MI=function(){return!!this.j}; g.H.UN=function(){return!!this.j}; g.H.Wn=function(K){K.target===this.overflowButton.element?K.preventDefault():(this.oW&&this.D.Fx("innertubeCommand",this.oW),this.OQ(!1))}; g.H.eG=function(){this.OQ(!0);var K,W;((K=this.j)==null?0:(W=K.bannerData)==null?0:W.dismissedStatusKey)&&this.q5.push(this.j.bannerData.dismissedStatusKey);this.QP();this.D.L("web_enable_shopping_timely_shelf_client")&&(K={},g.zC(K,oC4,{overlayId:"player_overlay_timely_shelf"}),this.D.Fx("innertubeCommand",K))}; g.H.WA=function(){this.QP();v4(this)}; g.H.wuX=function(K){var W=this,U;if(K.id!==((U=this.j)==null?void 0:U.identifier)){this.QP();U=g.z(this.DA);for(var h=U.next();!h.done;h=U.next()){var m=h.value,S=void 0,f=void 0;if((h=(S=m)==null?void 0:(f=S.bannerData)==null?void 0:f.itemData)&&m.identifier===K.id){f=S=void 0;var G=((S=m)==null?void 0:(f=S.bannerData)==null?void 0:f.dismissedStatusKey)||"";if(this.q5.includes(G))return;this.j=m;this.banner.element.setAttribute("aria-label",h.accessibilityLabel||"");h.trackingParams&&(this.W=!0, this.D.setTrackingParams(this.badge.element,h.trackingParams));this.show();this.J.show();FD(this);this.hK.J7(!h.stayInApp);fXC(this);EV(this);e_(this);this.oW=g.P(h.onTapCommand,Fn);if(m=g.P(h.menuOnTap,Fn))this.Qg=g.P(m,Xsv);m=void 0;this.banner.update({thumbnail:(m=(h.thumbnailSources||[])[0])==null?void 0:m.url,title:h.productTitle,price:h.priceReplacementText?h.priceReplacementText:h.price,salesOriginalPrice:Wwz(this),priceDropReferencePrice:kKs(this),promotionText:Bep(this),priceA11yText:Bi$(this), affiliateDisclaimer:h.affiliateDisclaimer,vendor:KGR(this)});G=f=S=m=void 0;((m=h)==null?0:(S=m.hiddenProductOptions)==null?0:S.showDropCountdown)&&((f=h)==null?0:(G=f.hiddenProductOptions)==null?0:G.dropTimestampMs)&&(this.DO=new g.QC(function(){dXD(W)},1E3),this.hK.hide(),this.countdownTimer.show(),dXD(this)); this.D.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&qfp(this)&&(this.Ez=new g.QC(function(){NSD(W)},1E3),NSD(this))}}this.D.getRootNode()&&g.$C(this.D.getRootNode(),"ytp-featured-product-shown")}}; g.H.QP=function(){this.j&&(this.j=void 0,this.HS(),this.D.getRootNode()&&g.WR(this.D.getRootNode(),"ytp-featured-product-shown"))}; g.H.onVideoDataChange=function(K,W){var U=this;K==="dataloaded"&&v4(this);var h,m,S;K=g.P((h=W.getWatchNextResponse())==null?void 0:(m=h.playerOverlays)==null?void 0:(S=m.playerOverlayRenderer)==null?void 0:S.productsInVideoOverlayRenderer,s2W);this.overflowButton.show();this.dismissButton.hide();var f=K==null?void 0:K.featuredProductsEntityKey;this.trendingOfferEntityKey=K==null?void 0:K.trendingOfferEntityKey;this.DA.length||(UeC(this,f),e_(this));var G;(G=this.Ny)==null||G.call(this);this.Ny=g.qg.subscribe(function(){UeC(U, f);e_(U)})}; g.H.QH=function(){v4(this);fXC(this);EV(this);dw.prototype.QH.call(this)};g.V(SEY,g.y);SEY.prototype.onClick=function(){this.D.logClick(this.element,this.N);if(this.D.L("embeds_enable_info_panel_dismissal")&&this.j&&this.feedbackToken){var K=this.D.Tz();if(K==null?0:$ep(this.j,K.Z$))aV(K,this.j,{feedbackTokens:[this.feedbackToken]}),this.D.publish("infopaneldetaildismissed")}};g.V(YiC,g.Ih);g.H=YiC.prototype;g.H.show=function(){g.Ih.prototype.show.call(this);this.D.publish("infopaneldetailvisibilitychange",!0);this.D.logVisibility(this.element,!0);MlL(this,!0)}; g.H.hide=function(){g.Ih.prototype.hide.call(this);this.D.publish("infopaneldetailvisibilitychange",!1);this.D.logVisibility(this.element,!1);MlL(this,!1)}; g.H.getId=function(){return this.N}; g.H.WY=function(){return this.itemData.length}; g.H.onVideoDataChange=function(K,W){if(W){var U,h,m,S;this.update({title:((U=W.qb)==null?void 0:(h=U.title)==null?void 0:h.content)||"",body:((m=W.qb)==null?void 0:(S=m.bodyText)==null?void 0:S.content)||""});var f;K=((f=W.qb)==null?void 0:f.trackingParams)||null;this.D.setTrackingParams(this.element,K);f=g.z(this.itemData);for(K=f.next();!K.done;K=f.next())K.value.dispose();this.itemData=[];var G;if((G=W.qb)==null?0:G.ctaButtons)for(W=g.z(W.qb.ctaButtons),G=W.next();!G.done;G=W.next())if(G=g.P(G.value, yFh))G=new SEY(this.D,G,this.j),G.Av&&(this.itemData.push(G),G.U5(this.items))}}; g.H.QH=function(){this.hide();g.Ih.prototype.QH.call(this)};g.V(Iq,g.y);g.H=Iq.prototype;g.H.onVideoDataChange=function(K,W){G3(this,W);this.RR&&tYF(this,this.RR)}; g.H.Js=function(K){var W=this.D.getVideoData();this.videoId!==W.videoId&&G3(this,W);tYF(this,K.state);this.RR=K.state}; g.H.zX=function(K){(this.N=K)?this.hide():this.j&&!this.isDismissed&&this.show()}; g.H.BB=function(){this.X||this.Kr();this.showControls=!0}; g.H.As=function(){this.X||this.z9();this.showControls=!1}; g.H.Kr=function(){if(!this.isDismissed){var K,W=(K=this.D)==null?void 0:K.getPlayerSize();K=W.width<380;var U;W=W.height<(((U=this.D)==null?0:U.isEmbedsShortsMode())?400:280);var h,m;(((h=this.D)==null?0:h.getPlayerStateObject().isCued())||((m=this.D)==null?0:g.C(m.getPlayerStateObject(),1024)))&&K&&W||!this.j||this.N||(this.fade.show(),this.D.publish("infopanelpreviewvisibilitychange",!0),this.D.logVisibility(this.element,!0))}}; g.H.z9=function(){this.j&&!this.N&&(this.fade.hide(),this.D.publish("infopanelpreviewvisibilitychange",!1),this.D.logVisibility(this.element,!1))}; g.H.RVr=function(){this.X=!1;this.showControls||this.z9()};var Vgv={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Vgv).reduce(function(K,W){K[Vgv[W]]=W;return K},{}); var XBW={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(XBW).reduce(function(K,W){K[XBW[W]]=W;return K},{}); var vbI={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(vbI).reduce(function(K,W){K[vbI[W]]=W;return K},{});var qZZ,xsN;qZZ=[{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"}];xsN=[{option:0,text:Lf(0)},{option:.25,text:Lf(.25)},{option:.5,text:Lf(.5)},{option:.75,text:Lf(.75)},{option:1,text:Lf(1)}]; g.kP=[{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:qZZ},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Lf(.5)},{option:-1,text:Lf(.75)},{option:0,text:Lf(1)},{option:1,text:Lf(1.5)},{option:2, text:Lf(2)},{option:3,text:Lf(3)},{option:4,text:Lf(4)}]},{option:"background",text:"Background color",options:qZZ},{option:"backgroundOpacity",text:"Background opacity",options:xsN},{option:"windowColor",text:"Window color",options:qZZ},{option:"windowOpacity",text:"Window opacity",options:xsN},{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:Lf(.25)},{option:.5,text:Lf(.5)},{option:.75,text:Lf(.75)},{option:1,text:Lf(1)}]}];var C5t=[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.V(tNC,g.Te);g.H=tNC.prototype; g.H.ym=function(K){K.repeat||(this.N.yx=!1);var W=!1,U=K.keyCode,h=YZ(K),m=!K.altKey&&!K.ctrlKey&&!K.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||C5t.includes(U)),S=!1,f=!1,G=this.api.V();K.defaultPrevented?(m=!1,f=!0):G.QX&&!this.api.isMutedByEmbedsMutedAutoplay()&&(m=!1);if(U===9)W=!0;else{if(h)switch(U){case 32:case 13:if(h.tagName==="BUTTON"||h.tagName==="A"||h.tagName==="INPUT")W=!0,m=!1;else if(m){var I=h.getAttribute("role");!I||I!=="option"&&I!=="button"&&I.indexOf("menuitem")!==0|| (W=!0,h.click(),S=!0)}break;case 37:case 39:case 36:case 35:W=h.getAttribute("role")==="slider";break;case 38:case 40:I=h.getAttribute("role"),h=U===38?h.previousSibling:h.nextSibling,I==="slider"?W=!0:m&&(I==="option"?(h&&h.getAttribute("role")==="option"&&h.focus(),S=W=!0):I&&I.indexOf("menuitem")===0&&(h&&h.hasAttribute("role")&&h.getAttribute("role").indexOf("menuitem")===0&&h.focus(),S=W=!0))}if(m&&!S)switch(U){case 38:S=Math.min(this.api.getVolume()+5,100);wU(this.Y$,S,!1);this.api.setVolume(S); f=S=!0;break;case 40:S=Math.max(this.api.getVolume()-5,0);wU(this.Y$,S,!0);this.api.setVolume(S);f=S=!0;break;case 36:this.api.gS()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),f=S=!0);break;case 35:this.api.gS()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),f=S=!0)}}W&&UI(this,!0);(W||f)&&this.Fc.wZ();(S||m&&this.handleGlobalKeyDown(U,K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code,K.repeat))&&K.preventDefault();G.J&&(K={keyCode:K.keyCode, altKey:K.altKey,ctrlKey:K.ctrlKey,metaKey:K.metaKey,shiftKey:K.shiftKey,handled:K.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Bd("onKeyPress",K))}; g.H.W4=function(K){var W=K.keyCode;!this.N.KR&&this.handleGlobalKeyUp(W,K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code)&&K.preventDefault()}; g.H.handleGlobalKeyUp=function(K,W,U,h,m,S,f){this.api.publish("keyboardserviceglobalkeyup",{keyCode:K,shiftKey:W,ctrlKey:U,altKey:h,metaKey:m,key:S,code:f});W=!1;if(this.N.yx)return W;(S=g.VP(this.api.h7()))&&(S=S.G4)&&S.Xo&&(S.Xs(K),W=!0);switch(K){case 9:UI(this,!0);W=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&!this.api.V().QX){var G,I;K=(G=this.progressBar)==null?void 0:(I=G.X)==null?void 0:I.isEnabled;W=this.AZ(K)}break;case 39:(this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(m||U&&h))&&(yS?h:U)&&this.api.gS()&&this.api.L("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),G=(G=this.api.getVideoData())?G.AS:[],I=Cys(G,this.api.getCurrentTime()*1E3),I!==-1&&this.j!=null&&(this.j.yP(1,G[I].title),this.api.seekTo(G[I].startTime/1E3,void 0,void 0,void 0,52),W=!0))}return W}; g.H.handleGlobalKeyDown=function(K,W,U,h,m,S,f,G){G||(this.N.yx=!1);var I=!1,d=this.api.V();if(d.QX&&!this.api.isMutedByEmbedsMutedAutoplay())return I;var J=g.VP(this.api.h7());if(J&&(J=J.G4)&&J.Xo)switch(K){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:I=J.Qm(K)}d.G||I||(I=S||String.fromCharCode(K).toLowerCase(),this.X+=I,"awesome".indexOf(this.X)===0||this.api.L("web_player_rtr_ctrls")&&"bday".indexOf(this.X)===0?(I=!0,4===this.X.length&&this.X==="bday"&&this.api.L("web_player_rtr_ctrls")&& (LE$(this.U),this.Fc.wZ()),7===this.X.length&&this.X==="awesome"&&Xke(this.api.getRootNode(),"ytp-color-party")):(this.X=I,I="awesome".indexOf(this.X)===0||"bday".indexOf(this.X)===0));if(!I&&(!this.api.isMutedByEmbedsMutedAutoplay()||C5t.includes(K))){var e=this.api.getVideoData(),E,B;J=(E=this.progressBar)==null?void 0:(B=E.X)==null?void 0:B.isEnabled;E=e?e.AS:[];B=yS?h:U;switch(K){case 80:W&&!d.tK&&(az(this.Y$,emp(),"Previous"),this.api.previousVideo(),I=!0);break;case 78:W&&!d.tK&&(az(this.Y$, aN(),"Next"),this.api.nextVideo(),I=!0);break;case 74:this.api.gS()&&(this.api.startSeekCsiAction(),this.j?this.api.L("enable_key_press_seek_logging")?(I=Dx(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.j.mJ(-1,10,I)):this.j.mJ(-1,10):az(this.Y$,{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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),I=!0);break;case 76:this.api.gS()&&(this.api.startSeekCsiAction(),this.j?this.api.L("enable_key_press_seek_logging")?(I=Dx(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.j.mJ(1,10,I)):this.j.mJ(1,10):az(this.Y$,{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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),I=!0);break;case 37:if(this.api.gS())if(this.api.startSeekCsiAction(),B){if(this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(m||U&&h))B=Igz(E,this.api.getCurrentTime()*1E3),B!==-1&&this.j!=null&&(this.j.yP(-1,E[B].title),this.api.seekTo(E[B].startTime/1E3,void 0,void 0,void 0,53),I=!0)}else this.j?this.api.L("enable_key_press_seek_logging")?(I=Dx(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.j.mJ(-1,5,I)):this.j.mJ(-1,5):az(this.Y$,{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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),I=!0;break;case 39:this.api.gS()&&(this.api.startSeekCsiAction(),B?this.api.L("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(m||U&&h)||(B=Cys(E,this.api.getCurrentTime()*1E3),B!==-1&&this.j!=null&&(this.j.yP(1,E[B].title),this.api.seekTo(E[B].startTime/1E3,void 0,void 0,void 0,52),I=!0)):(this.j!=null?this.api.L("enable_key_press_seek_logging")?(I=Dx(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.j.mJ(1,5,I)):this.j.mJ(1,5):az(this.Y$,{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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),I=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),wU(this.Y$,this.api.getVolume(),!1)):(this.api.mute(),wU(this.Y$,0,!0));I=!0;break;case 32:I=this.api.L("web_speedmaster_spacebar_control")?!this.api.V().tK:this.AZ(J);break;case 75:I=this.AZ(J);break;case 190:W?d.enableSpeedOptions&&I7C(this)&&(I=this.api.getPlaybackRate(),this.api.setPlaybackRate(I+.25,!0),uYs(this.Y$,!1),I=!0):this.api.gS()&&(this.step(1),I=!0);break;case 188:W? d.enableSpeedOptions&&I7C(this)&&(I=this.api.getPlaybackRate(),this.api.setPlaybackRate(I-.25,!0),uYs(this.Y$,!0),I=!0):this.api.gS()&&(this.step(-1),I=!0);break;case 70:r3s(this.api)&&(this.api.toggleFullscreen().catch(function(){}),I=!0); break;case 27:J?(this.progressBar.m5(),I=!0):this.Y()&&(I=!0)}if(d.controlsType!=="3")switch(K){case 67:g.ZA(this.api.h7())&&(d=this.api.getOption("captions","track"),this.api.toggleSubtitles(),dVp(this.Y$,!d||d&&!d.displayName),I=!0);break;case 79:bB(this,"textOpacity");break;case 87:bB(this,"windowOpacity");break;case 187:case 61:bB(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:bB(this,"fontSizeIncrement",!0,!0)}var D;W||U||h||(K>=48&&K<=57?D=K-48:K>=96&&K<=105&&(D=K-96));D!=null&&this.api.gS()&& !this.api.L("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),d=this.api.getProgressState(),this.api.seekTo(D/10*(d.seekableEnd-d.seekableStart)+d.seekableStart,void 0,void 0,void 0,81),I=!0);I&&this.Fc.wZ()}this.N.ys=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:K,shiftKey:W,ctrlKey:U,altKey:h,metaKey:m,key:S,code:f,repeat:G},this.N);this.N.ys&&(I=!0,this.Fc.wZ());return I}; g.H.step=function(K){this.api.gS();if(this.api.getPlayerStateObject().isPaused()){var W=this.api.getVideoData().X;W&&(W=W.video)&&this.api.seekBy(K/(W.fps||30),void 0,void 0,K>0?77:78)}}; g.H.AZ=function(K){if(!this.api.V().tK){var W;var U,h=(W=this.api.getVideoData())==null?void 0:(U=W.getPlayerResponse())==null?void 0:U.playabilityStatus;if(h){var m;W=((m=g.P(h.miniplayer,Kjv))==null?void 0:m.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else W=!1;W&&this.api.Fx("onExpandMiniplayer");K?this.progressBar.wx():(K=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Y$.Ep(K),K?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.H.QH=function(){g.pz(this.W);g.Te.prototype.QH.call(this)};g.V(SD,g.y);SD.prototype.SV=function(){var K=this.D.V(),W=K.N||this.D.L("web_player_hide_overflow_button_if_empty_menu")&&this.kq.isEmpty();K=g.HB(K)&&g.Gj(this.D)&&g.C(this.D.getPlayerStateObject(),128);var U=this.D.getPlayerSize();this.visible=this.D.je()&&!K&&U.width>=240&&!this.D.getVideoData().Mk&&!W&&!this.D.isEmbedsShortsMode();g.JM(this.element,"ytp-overflow-button-visible",this.visible);this.J7(this.visible);this.visible&&this.D.T8();this.D.logVisibility(this.element,this.visible&&this.jV)}; SD.prototype.My=function(K){g.y.prototype.My.call(this,K);this.D.logVisibility(this.element,this.visible&&K)}; SD.prototype.QH=function(){g.y.prototype.QH.call(this);g.WR(this.element,"ytp-overflow-button-visible")};g.V(dfC,g.Ih);g.H=dfC.prototype;g.H.Vi=function(K){K=YZ(K);g.Hj(this.element,K)&&(g.Hj(this.j,K)||g.Hj(this.closeButton,K)||m1(this))}; g.H.z9=function(){g.Ih.prototype.z9.call(this);this.D.u0(this.element)}; g.H.show=function(){this.Xo&&this.D.publish("OVERFLOW_PANEL_OPENED");g.Ih.prototype.show.call(this);this.element.setAttribute("aria-modal","true");SOC(this,!0)}; g.H.hide=function(){g.Ih.prototype.hide.call(this);this.element.removeAttribute("aria-modal");SOC(this,!1)}; g.H.onFullscreenToggled=function(K){!K&&this.Ej()&&m1(this)}; g.H.isEmpty=function(){return this.actionButtons.length===0}; g.H.focus=function(){for(var K=g.z(this.actionButtons),W=K.next();!W.done;W=K.next())if(W=W.value,W.Xo){W.focus();break}};g.V(tHL,g.y);tHL.prototype.onClick=function(K){g.Vs(K,this.api)&&this.api.playVideoAt(this.index)};g.V(DQ,g.Ih);g.H=DQ.prototype;g.H.show=function(){g.Ih.prototype.show.call(this);this.j.S(this.api,"videodatachange",this.KI);this.j.S(this.api,"onPlaylistUpdate",this.KI);this.KI()}; g.H.hide=function(){g.Ih.prototype.hide.call(this);g.Qa(this.j);this.updatePlaylist(null)}; g.H.KI=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().N&&(this.yH("ytp-playlist-menu-title-name").removeAttribute("href"),this.X&&(this.GK(this.X),this.X=null))}; g.H.Rj=function(){var K=this.playlist,W=K.author,U=W?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",h={CURRENT_POSITION:String(K.index+1),PLAYLIST_LENGTH:String(K.length)};W&&(h.AUTHOR=W);this.update({title:K.title,subtitle:g.BB(U,h),playlisturl:this.api.getVideoUrl(!0)});W=K.X;if(W===this.N)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[K.index];else{U=g.z(this.playlistData);for(h=U.next();!h.done;h=U.next())h.value.dispose(); U=K.length;this.playlistData=[];for(h=0;h=this.X&&!K.N&&!W.isAd()&&!this.api.isEmbedsShortsMode()}else K=!1;this.visible=K;this.J7(this.visible);g.JM(this.element,"ytp-search-button-visible",this.visible);g.JM(this.element,"ytp-show-search-title",!this.api.je());this.api.logVisibility(this.element,this.visible&&this.jV)}; gy.prototype.My=function(K){g.y.prototype.My.call(this,K);this.api.logVisibility(this.element,this.visible&&K)};g.V(A4,g.y); A4.prototype.trigger=function(K,W,U,h){this.show();if(this.X&&K!==this.X){var m=1;this.N&&(m=P1s(this));uDs(this,m,!1);FyL(this)}this.X=K;this.W=this.X===-1?this.Y:this.J;K="";W?(this.X===-1&&this.D.getCurrentTime()<=W?this.U=W:this.U+=W,K=(this.X===-1?"\u2212":"+")+" "+this.U):this.U=0;this.updateValue(this.X===-1?"durationBack":"durationForward",K);if(this.j==="hidden"||this.j==="fading-out")W=0,this.j==="fading-out"&&(W=P1s(this),gpY(this)),wap(this,W),this.j!=="fading-out"&&FQe(this,this.W.querySelector(".ytp-seek-overlay-arrow-persistent")), this.j="fading-in";else if(this.j==="fading-in"||this.j==="lingering")W=this.W.querySelector(".ytp-seek-overlay-duration"),K=g.jV(this.D.V().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,W.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+K+")"},{offset:1,transform:"scale(1)"}],{duration:184}),gpY(this),this.j==="lingering"&&(this.G.stop(),this.G.start());U&&gcR(this, U,h)}; A4.prototype.U9=function(K,W,U,h){this.trigger(K,h)}; A4.prototype.mJ=function(K,W,U){this.trigger(K,W);U&&(K=K===-1?this.J.visualElement:this.Y.visualElement,U={seekData:U},(W=g.z0())&&ul(W,K,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",U))}; A4.prototype.yP=function(K,W,U){this.trigger(K,void 0,W,U)};g.V(Gs,g.y);Gs.prototype.onClick=function(){var K=this,W=this.api.V(),U=this.api.getVideoData(this.api.getPresentingPlayerType()),h=this.api.getPlaylistId();W=this.api.L("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):W.getVideoUrl(U.videoId,h,void 0,!0);if(navigator.share)try{var m=navigator.share({title:U.title,url:W});m instanceof Promise&&m.catch(function(S){ivz(K,S)})}catch(S){S instanceof Error&&ivz(this,S)}else this.j.hR(),m1(this.X,this.element,!1); this.api.logClick(this.element)}; Gs.prototype.SV=function(){var K=this.api.V(),W=this.api.isEmbedsShortsMode();g.JM(this.element,"ytp-show-share-title",g.HB(K)&&!W);this.j.Hu()&&W?(K=(this.api.xx().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Zd(this.element,"right",K+"px")):W&&g.Zd(this.element,"right","0px");this.updateValue("icon",{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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=DN(this);g.JM(this.element,"ytp-share-button-visible",this.visible);this.J7(this.visible);this.tooltip.T8();this.api.logVisibility(this.element,DN(this)&&this.jV)}; Gs.prototype.My=function(K){g.y.prototype.My.call(this,K);this.api.logVisibility(this.element,this.visible&&K)}; Gs.prototype.QH=function(){g.y.prototype.QH.call(this);g.WR(this.element,"ytp-share-button-visible")};g.V(kL2,g.Ih);g.H=kL2.prototype;g.H.Fr=function(K){K=YZ(K);g.Hj(this.W,K)||g.Hj(this.closeButton,K)||m1(this)}; g.H.z9=function(){g.Ih.prototype.z9.call(this);this.tooltip.u0(this.element);this.api.logVisibility(this.j,!1);for(var K=g.z(this.X),W=K.next();!W.done;W=K.next())W=W.value,this.api.hasVe(W.element)&&this.api.logVisibility(W.element,!1)}; g.H.show=function(){var K=this.Xo;g.Ih.prototype.show.call(this);this.SV();K||this.api.Fx("onSharePanelOpened")}; g.H.BHx=function(){this.Xo&&this.SV()}; g.H.SV=function(){var K=this;g.$C(this.element,"ytp-share-panel-loading");g.WR(this.element,"ytp-share-panel-fail");var W=this.api.getVideoData(),U=this.api.getPlaylistId()&&this.N.checked;W.getSharePanelCommand&&aV(this.api.Tz(),W.getSharePanelCommand,{includeListId:U}).then(function(h){K.qs()||(g.WR(K.element,"ytp-share-panel-loading"),Luz(K,h))}); W=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",W);this.updateValue("linkText",W);this.updateValue("shareLinkWithUrl",g.BB("Share link $URL",{URL:W}));Yf(this.j);this.api.logVisibility(this.j,!0)}; g.H.onFullscreenToggled=function(K){!K&&this.Ej()&&m1(this)}; g.H.focus=function(){this.j.focus()}; g.H.QH=function(){g.Ih.prototype.QH.call(this);xxC(this)};g.V(sP,dw);g.H=sP.prototype;g.H.QH=function(){mN$(this);dw.prototype.QH.call(this)}; g.H.Wn=function(K){K.target!==this.dismissButton.element&&(this.OQ(!1),this.D.Fx("innertubeCommand",this.onClickCommand))}; g.H.eG=function(){this.JK=!0;this.OQ(!0);this.HS()}; g.H.Xdx=function(K){this.G=K;this.HS()}; g.H.onVideoDataChange=function(K,W){if(K=!!W.videoId&&this.videoId!==W.videoId)this.videoId=W.videoId,this.JK=!1,this.Ns=!0,this.Y=this.uX=!1,mN$(this),Z6C(this,!1),this.X=this.j=!1,uo(this),Cfz(this);if(K||!W.videoId)this.Ms=this.W=!1;var U,h;if(W==null?0:(U=W.getPlayerResponse())==null?0:(h=U.videoDetails)==null?0:h.isLiveContent)this.mG(!1);else{var m,S,f;W=g.P((m=W.getWatchNextResponse())==null?void 0:(S=m.playerOverlays)==null?void 0:(f=S.playerOverlayRenderer)==null?void 0:f.productsInVideoOverlayRenderer, s2W);this.G=this.enabled=!1;if(W){if(m=W==null?void 0:W.featuredProductsEntityKey){S=g.qg.getState().entities;var G;if((G=qF(S,"featuredProductsEntity",m))==null?0:G.productsData){this.mG(!1);return}}if(!W.text||!W.onClickCommand||!W.timing){this.mG(!1);return}this.enabled=!0;if(!this.W){var I;G=(I=W.badgeInteractionLogging)==null?void 0:I.trackingParams;(this.W=!!G)&&this.D.setTrackingParams(this.badge.element,G||null)}if(!this.Ms){var d;if(this.Ms=!((d=W.dismissButton)==null||!d.trackingParams)){var J; this.D.setTrackingParams(this.dismissButton.element,((J=W.dismissButton)==null?void 0:J.trackingParams)||null)}}W.isContentForward&&(I=W.productsData,Z6C(this,!0),Cfz(this),I=A$_(this,I),d=[],I.length>0&&d.push(I[0]),I.length>1&&(J=new g.y({T:"div",Z:"ytp-suggested-action-more-products-icon"}),g.k(this,J),d.push(J),d.push.apply(d,g.z4(I.slice(1)))),this.U=new g.y({T:"div",K:d,Z:"ytp-suggested-action-content-forward-container"}),g.k(this,this.U),this.eV.element.append(this.U.element));this.text=g.Rb(W.text); var e;if(I=(e=W.dismissButton)==null?void 0:e.a11yLabel)this.Bp=g.Rb(I);this.onClickCommand=W.onClickCommand;this.timing=W.timing;this.lG()}oQC(this);FD(this);this.HS()}}; g.H.MI=function(){return!this.G&&this.enabled&&!this.JK&&!this.D.je()&&!this.W3&&(this.Y||this.Ns)}; g.H.Am=function(K){dw.prototype.Am.call(this,K);if(this.j||this.X)this.timing&&K2(this.timing.preview)&&(this.j=!1,uo(this),this.X=!1,uo(this),this.D.L5("shopping_overlay_preview_collapsed"),this.D.L5("shopping_overlay_preview_expanded"),K=qe(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),K2(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.D.L5("shopping_overlay_expanded"),K.end=this.timing.expanded.endSec*1E3),this.D.lG([K])), this.uX=!0,FD(this);uo(this)}; g.H.mG=function(K){(this.Y=K)?(vb(this),FD(this,!1)):(mN$(this),this.tK.start());this.HS()}; g.H.lG=function(K){var W=this.timing;K=(K===void 0?0:K)+this.D.getCurrentTime();var U=[],h=W.visible,m=W.preview;W=W.expanded;K2(h)&&(gs(h,K),U.push(qe(h.startSec,h.endSec,"shopping_overlay_visible")));K2(m)&&(gs(m,K),h=m.startSec+1,U.push(qe(m.startSec,h,"shopping_overlay_preview_collapsed")),U.push(qe(h,m.endSec,"shopping_overlay_preview_expanded")));K2(W)&&(gs(W,K),U.push(qe(W.startSec,W.endSec,"shopping_overlay_expanded")));this.D.lG(U)}; g.H.HS=function(){dw.prototype.HS.call(this);this.D.getRootNode()&&g.JM(this.D.getRootNode(),"ytp-shopping-pill-shown",this.MI())};g.V(rX,g.y); rX.prototype.SV=function(){var K=this.api.V();this.J7(g.HB(K)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Xo);var W=this.api.getVideoData(),U=!1;this.api.getPresentingPlayerType()===2?U=!!W.videoId&&!!W.isListed&&!!W.author&&!!W.tK&&!!W.profilePicture:g.HB(K)&&(U=!!W.videoId&&!!W.tK&&!!W.profilePicture&&!W.Mk&&!K.N&&!(K.Y&&this.api.getPlayerSize().width<200));var h=W.profilePicture;K=g.HB(K)?W.expandedTitle:W.author;h=h===void 0?"": h;K=K===void 0?"":K;U?(this.X!==h&&(this.j.style.backgroundImage="url("+h+")",this.X=h),this.updateValue("channelLogoLabel",g.BB("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:K})),g.$C(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.WR(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,U&&this.jV);this.api.logVisibility(this.channelName,U&&this.jV);this.subscribeButton&&(this.subscribeButton.channelId=W.R5);this.updateValue("expandedTitle",W.expandedTitle)};g.V(YF,g.Ih);YF.prototype.show=function(){g.Ih.prototype.show.call(this);this.j.start()}; YF.prototype.hide=function(){g.Ih.prototype.hide.call(this);this.j.stop()}; YF.prototype.sj=function(K,W){K==="dataloaded"&&((this.sF=W.sF,this.CO=W.CO,isNaN(this.sF)||isNaN(this.CO))?this.X&&(this.D.L5("intro"),this.D.removeEventListener(g.$w("intro"),this.Y),this.D.removeEventListener(g.g8("intro"),this.W),this.D.removeEventListener("onShowControls",this.N),this.hide(),this.X=!1):(this.D.addEventListener(g.$w("intro"),this.Y),this.D.addEventListener(g.g8("intro"),this.W),this.D.addEventListener("onShowControls",this.N),K=new g.g0(this.sF,this.CO,{priority:9,namespace:"intro"}), this.D.lG([K]),this.X=!0))};g.V(ro,g.y);ro.prototype.onClick=function(){this.D.ih()}; ro.prototype.SV=function(){var K=!0;g.HB(this.D.V())&&(K=K&&this.D.xx().getPlayerSize().width>=480);this.J7(K);K=this.updateValue;var W=this.D.L("delhi_modern_web_player_icons"),U=W?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};W=W?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{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"}}]};K.call(this,"icon",this.D.Dw()?U:W)};g.V(Fi,g.y);Fi.prototype.QH=function(){this.j=null;g.y.prototype.QH.call(this)};g.V(UT,g.y);UT.prototype.onClick=function(){this.D.Fx("innertubeCommand",this.X)}; UT.prototype.J=function(){if(this.D.L("delhi_modern_web_player")){var K=this.D.getPlayerSize();K.width&&(this.element.style.maxWidth=K.width*.25+"px")}}; UT.prototype.uX=function(K){K!==this.G&&(this.update({chapterTitle:K,ariaLabel:K}),this.G=K);K?this.show():this.hide()}; UT.prototype.Ms=function(){this.j.disabled=this.X==null;g.JM(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Ym()};g.V(o3,UT);o3.prototype.onClickCommand=function(K){g.P(K,ht)&&this.Ym()}; o3.prototype.updateVideoData=function(K,W){var U,h,m;K=g.P((U=W.getWatchNextResponse())==null?void 0:(h=U.playerOverlays)==null?void 0:(m=h.playerOverlayRenderer)==null?void 0:m.decoratedPlayerBarRenderer,$e);U=g.P(K==null?void 0:K.playerBarActionButton,g.Jy);if(this.D.L("web_player_updated_entrypoint")){this.Y=RE(U==null?void 0:U.text);var S;h=(S=U==null?void 0:U.tooltip)!=null?S:"View chapter";this.U.setAttribute("title",h)}this.X=U==null?void 0:U.command;UT.prototype.Ms.call(this)}; o3.prototype.Ym=function(){var K=this.Y,W=this.W.j,U,h=((U=this.D.getLoopRange())==null?void 0:U.type)==="clips";if(W.length>1&&!h){K=this.D.getProgressState().current*1E3;U=Fp(W,K);K=W[U].title||"Chapters";if(U!==this.currentIndex||this.N)this.D.Fx("innertubeCommand",W[U].onActiveCommand),this.currentIndex=U;this.N=!1}else this.N=!0;UT.prototype.uX.call(this,K)};g.V(gY,g.GW);gY.prototype.X=function(){var K;(K=this.element.parentElement)==null||K.classList.contains("ytp-right-controls-left");(this.j=!this.j)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; gY.prototype.isExpanded=function(){return this.j};g.V(OX,g.y);OX.prototype.N=function(K){g.C(K.state,32)?UNL(this,this.api.hW()):this.Xo&&(g.C(K.state,16)||g.C(K.state,1))||this.fade.hide()}; OX.prototype.onProgress=function(){var K=this.api.getPlayerStateObject();(g.C(K,32)||g.C(K,16))&&iX(this)}; OX.prototype.W=function(){this.frameIndex=NaN;iX(this)}; OX.prototype.hide=function(){this.j&&UNL(this,null);g.y.prototype.hide.call(this)};g.V(Hf,g.y);g.H=Hf.prototype;g.H.onClick=function(){var K=this;if(this.D.V().gk||this.D.V().Y){this.D.logClick(this.element);try{this.D.toggleFullscreen().catch(function(W){K.Ml(W)})}catch(W){this.Ml(W)}}else m1(this.message,this.element,!0)}; g.H.Ml=function(K){String(K).includes("fullscreen error")?g.eI(K):g.wG(K);this.sy()}; g.H.sy=function(){this.disable();this.message.Kr(this.element,!0)}; g.H.vD=function(){CS()===this.D.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; g.H.N8=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var K=window.screen.width*.9,W=window.screen.height*.9,U=Math.max(window.outerWidth,window.innerWidth),h=Math.max(window.outerHeight,window.innerHeight);if(U>h!==K>W){var m=U;U=h;h=m}K>U&&W>h&&this.sy()}}; g.H.disable=function(){var K=this;if(!this.message){var W=(xQ(["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.Ih(this.D,{T:"div",Hp:["ytp-popup","ytp-generic-popup"],B:{role:"alert",tabindex:"0"},K:[W[0],{T:"a",B:{href:"https://support.google.com/youtube/answer/6276924", target:this.D.V().jV},bX:W[2]},W[4]]},100,!0);this.message.hide();g.k(this,this.message);this.message.subscribe("show",function(U){K.X.Ni(K.message,U)}); g.HW(this.D,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.H.SV=function(){var K=r3s(this.D),W=this.D.V().Y&&this.D.getPlayerSize().width<250;this.J7(K&&!W);this.D.logVisibility(this.element,this.Xo)}; g.H.wX=function(K){if(K){var W=g.U4(this.D,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.D.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(U){g.eI(U)})}else W=g.U4(this.D,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); K=a2C(this,K);W=this.message?null:W;this.D.V().L("player_tooltip_data_title_killswitch")?this.update({title:W,icon:K}):this.update({"tooltip-title":W,"aria-label":W,icon:K});this.X.Fd().T8()}; g.H.QH=function(){this.message||((0,this.j)(),this.j=null);g.y.prototype.QH.call(this)}; g.H.My=function(K){g.y.prototype.My.call(this,K)};g.V($h,g.y);$h.prototype.onClick=function(){this.D.logClick(this.element);this.D.seekBy(this.j,!0);var K=this.j>0?1:-1,W=Math.abs(this.j),U=this.D.Kf().nO;U&&U.mJ(K,W);this.X.isActive()?this.N=!0:(K=["ytp-jump-spin"],this.j<0&&K.push("backwards"),this.element.classList.add.apply(this.element.classList,g.z4(K)),g.yG(this.X))};g.V(uj,UT);uj.prototype.onClickCommand=function(K){g.P(K,ZR3)&&this.Ym()}; uj.prototype.updateVideoData=function(){var K,W;this.X=(K=w0e(this))==null?void 0:(W=K.onTap)==null?void 0:W.innertubeCommand;UT.prototype.Ms.call(this)}; uj.prototype.Ym=function(){var K="",W=this.W.Y,U,h=(U=w0e(this))==null?void 0:U.headerTitle;U=h?g.Rb(h):"";var m;h=((m=this.D.getLoopRange())==null?void 0:m.type)==="clips";W.length>1&&!h&&(K=this.D.getProgressState().current*1E3,m=CoF(W,K),K=m!=null?W[m].title:U,m!=null&&m!==this.currentIndex&&(this.D.Fx("innertubeCommand",W[m].onActiveCommand),this.currentIndex=m));UT.prototype.uX.call(this,K)};g.V(b4,g.y);b4.prototype.onClick=function(){this.D.Fx("onCollapseMiniplayer");this.D.logClick(this.element)}; b4.prototype.SV=function(){this.visible=!this.D.isFullscreen();this.J7(this.visible);this.D.logVisibility(this.element,this.visible&&this.jV)}; b4.prototype.My=function(K){g.y.prototype.My.call(this,K);this.D.logVisibility(this.element,this.visible&&K)};g.V(R9,g.y);R9.prototype.init=function(){this.update({minvalue:this.N,maxvalue:this.U,stepvalue:this.Y,slidervalue:this.j,ariaValueNow:this.j,ariaMinValue:this.N,ariaMaxValue:this.U});ErF(this,this.j)}; R9.prototype.W=function(){Ey(this,Number(this.X.value));this.X.focus()}; R9.prototype.G=function(K){if(!K.defaultPrevented){switch(K.code){case "ArrowDown":K=-this.Y;break;case "ArrowUp":K=this.Y;break;default:return}Ey(this,Math.min(this.U,Math.max(Number((this.j+K).toFixed(2)),this.N)))}};g.V(Vl,R9);Vl.prototype.onVolumeChange=function(K){if(this.J)this.J=!1;else{var W=K.volume;W===0||K.muted?Ey(this,0):Ey(this,W)}}; Vl.prototype.W=function(){R9.prototype.W.call(this);this.Ms(this.j)}; Vl.prototype.uX=function(K){var W=-K.deltaY;W=K.deltaMode===WheelEvent.DOM_DELTA_LINE||K.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Jk(this.j+W,0,100):g.Jk(this.j+g.Jk(W/10,-10,10),0,100);W===0?Ey(this,0):Ey(this,W);this.Ms(W);K.preventDefault();K.stopPropagation()}; Vl.prototype.Ns=function(K,W){this.J=!0;K===0||W?this.D.mute():(this.D.isMuted()&&this.D.unMute(),this.D.setVolume(K))};g.V(Dlp,g.y);g.V(XK,g.y);g.H=XK.prototype;g.H.Rr=function(){if(!this.D.FY()){this.updateValue("dataTooltipOffsetY",-120);var K;(K=this.j)!=null&&Cq(K,!0);var W;(W=this.j)!=null&&W.j.stop()}}; g.H.Zi=function(){var K;(K=this.j)!=null&&K.j.start()}; g.H.PK=function(K){this.visible=K.width>=300||this.Le;this.J7(this.visible);this.D.logVisibility(this.element,this.visible&&this.jV)}; g.H.gL=function(){this.D.V().eV?this.D.isMuted()?this.D.unMute():this.D.mute():m1(this.message,this.element,!0);this.D.logClick(this.element)}; g.H.h$r=function(K){if(this.D.V().eV&&this.j)if(K.target===this.N){var W;if(!this.D.FY()||((W=this.j)==null?0:W.isVisible))this.gL();else{var U;(U=this.j)!=null&&Cq(U,!0)}}else{var h;(h=this.j)!=null&&Cq(h,!0)}else this.gL()}; g.H.onVolumeChange=function(K){this.setVolume(K.volume,K.muted)}; g.H.setVolume=function(K,W){var U=this,h=W?0:K/100;K=h===0?1:K>50?1:0;if(this.J!==K){var m=this.Y;isNaN(m)?yUe(this,K):v1p(this.eV,function(f){yUe(U,m+(U.J-m)*f)},250); this.J=K}h=h===0?1:0;if(this.G!==h){var S=this.Ns;isNaN(S)?opp(this,h):v1p(this.DA,function(f){opp(U,S+(U.G-S)*f)},250); this.G=h}ZKs(this,W)}; g.H.My=function(K){g.y.prototype.My.call(this,K);this.D.logVisibility(this.element,this.visible&&K)}; var AUC=["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"],RMe=["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.V(g.zm,g.y);g.H=g.zm.prototype;g.H.onStateChange=function(K){this.Bl(K.state)}; g.H.Bl=function(K){var W=g.aG(this.D.getVideoData()),U=!1;K.isOrWillBePlaying()?K=W?4:2:g.C(K,2)?(K=3,U=W):K=1;this.element.disabled=U;if(this.j!==K){W=null;switch(K){case 2:W=g.U4(this.D,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:W="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:W=g.U4(this.D,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:W="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}K=== 3?this.D.V().L("player_tooltip_data_title_killswitch")?this.update({title:W,icon:QXp(this,K)}):this.update({"tooltip-title":W,icon:QXp(this,K)}):(this.D.L("player_tooltip_data_title_killswitch")?this.update({title:W}):this.update({"tooltip-title":W}),(W=QXp(this,K))&&this.j&&this.j!==3?qGp(this.transition,this.element,W):this.updateValue("icon",W));this.tooltip.T8();this.j=K}}; g.H.onVideoDataChange=function(){g.JM(this.element,"ytp-play-button-playlist",g.Gj(this.D))}; g.H.AZ=function(K){this.D.logClick(this.element);if(this.D.getPlayerStateObject().isOrWillBePlaying())this.D.pauseVideo();else{if(this.D.isMinimized()&&this.D.getPlayerStateObject().isCued()){var W={},U;if((U=this.D.getVideoData())==null?0:U.G)W.cttAuthInfo={token:this.D.getVideoData().G,videoId:this.D.getVideoData().videoId};BN("direct_playback",W);this.D.Wh().timerName="direct_playback"}this.D.playVideo()}this.D.isMinimized()&&(K==null?void 0:K.type)==="click"&&this.element.blur()}; g.H.My=function(K){g.y.prototype.My.call(this,K)};g.V(g.JS,g.y);g.H=g.JS.prototype;g.H.onVideoDataChange=function(){kiY(this);this.W&&(this.GK(this.W),this.W=null);this.videoData=this.D.getVideoData(1);if(this.playlist=this.D.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.S(this.D,"progresssync",this.Zh);this.N=lWR(this);Eu(this);this.bI(this.D.xx().getPlayerSize())}; g.H.bI=function(K){K=K===void 0?this.D.xx().getPlayerSize():K;var W,U=((W=this.D.getLoopRange())==null?void 0:W.type)==="clips";W=g.Gj(this.D)||this.j&&g.Jf(this.D)&&!this.D.L("web_hide_next_button")||SRR(this);var h=!this.j&&K.width<400;K=this.D.L("delhi_modern_web_player_horizontal_volume_controls")&&K.width<640;U=W&&!U&&!h&&!K;this.J7(U);this.D.logVisibility(this.element,U)}; g.H.onClick=function(K){this.D.logClick(this.element);var W=!0;this.G?W=g.Vs(K,this.D):K.preventDefault();W&&(this.j&&this.D.getPresentingPlayerType()===5?this.D.publish("ytoprerollinternstitialnext"):this.j?(om(this.D.Wh()),this.D.publish("playlistnextbuttonclicked",this.element),this.D.nextVideo(!0)):this.N?this.D.seekTo(0):(om(this.D.Wh()),this.D.publish("playlistprevbuttonclicked",this.element),this.D.previousVideo(!0)))}; g.H.Zh=function(){var K=lWR(this);K!==this.N&&(this.N=K,Eu(this))}; g.H.QH=function(){this.X&&(this.X(),this.X=null);kiY(this);g.y.prototype.QH.call(this)};g.V(dN,g.y);g.H=dN.prototype;g.H.vH=function(K){this.XH(K.pageX);this.Qb(K.pageX+K.deltaX);OHY(this)}; g.H.XH=function(K){this.Ms=K-this.Le}; g.H.Qb=function(K){K-=this.Le;!isNaN(this.Ms)&&this.thumbnails.length>0&&(this.J=K-this.Ms,this.thumbnails.length>0&&this.J!==0&&(this.N=this.Y+this.J,K=p6D(this,this.N),this.N<=this.j/2&&this.N>=BMs(this)?(this.api.seekTo(K,!1,void 0,void 0,25),g.Zd(this.Ns,"transform","translateX("+(this.N-this.j/2)+"px)"),Hfs(this,K)):this.N=this.Y))}; g.H.Yy=function(){this.uX&&(this.uX.Tx=!0);var K=(0,g.AI)()-this.vp<300;if(Math.abs(this.J)<5&&!K){this.vp=(0,g.AI)();K=this.Ms+this.J;var W=this.j/2-K;this.XH(K);this.Qb(K+W);OHY(this);this.api.logClick(this.U)}OHY(this)}; g.H.SH=function(){hh(this,this.api.getCurrentTime())}; g.H.play=function(K){this.api.seekTo(p6D(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();K&&this.api.logClick(this.playButton)}; g.H.onExit=function(K){this.api.seekTo(this.tK,void 0,void 0,void 0,63);this.api.playVideo();K&&this.api.logClick(this.dismissButton)}; g.H.IW=function(K,W){this.Le=K;this.j=W;hh(this,this.api.getCurrentTime())}; g.H.enable=function(){this.isEnabled||(this.isEnabled=!0,this.tK=this.api.getCurrentTime(),Hfs(this,this.tK),g.JM(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.eV=this.S(this.element,"wheel",this.vH),this.logVisibility(this.isEnabled))}; g.H.disable=function(){this.isEnabled=!1;this.hide();g.JM(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.eV&&this.GK(this.eV);this.logVisibility(this.isEnabled)}; g.H.reset=function(){this.disable();this.W=[];this.hK=!1}; g.H.logVisibility=function(K){this.api.logVisibility(this.element,K);this.api.logVisibility(this.U,K);this.api.logVisibility(this.dismissButton,K);this.api.logVisibility(this.playButton,K)}; g.H.QH=function(){for(;this.X.length;){var K=void 0;(K=this.X.pop())==null||K.dispose()}g.y.prototype.QH.call(this)}; g.V(w2C,g.y);g.V(jT,g.y);g.V(VwD,g.y);g.V(yh,g.y);yh.prototype.H3=function(K){return K==="PLAY_PROGRESS"?this.Y:K==="LOAD_PROGRESS"?this.G:K==="LIVE_BUFFER"?this.U:this.N};Dm2.prototype.update=function(K,W,U,h){U=U===void 0?0:U;this.width=W;this.W=U;this.j=W-U-(h===void 0?0:h);this.position=g.Jk(K,U,U+this.j);this.N=this.position-U;this.X=this.N/this.j};g.V(ie,g.y);g.V(g.J2,g.GW);g.H=g.J2.prototype; g.H.qm=function(){var K=!1,W=this.api.getVideoData();if(!W)return K;this.api.L5("timedMarkerCueRange");SF(this);for(var U=g.z(W.eV),h=U.next();!h.done;h=U.next()){h=h.value;var m=void 0,S=(m=this.JK[h])==null?void 0:m.markerType,f=void 0;m=(f=this.JK[h])==null?void 0:f.markers;if(!m)break;if(S==="MARKER_TYPE_TIMESTAMPS"){K=g.z(m);for(S=K.next();!S.done;S=K.next()){f=S.value;S=new ie;var G=void 0;S.title=((G=f.title)==null?void 0:G.simpleText)||"";S.timeRangeStartMillis=Number(f.startMillis);S.j=Number(f.durationMillis); var I=G=void 0;S.onActiveCommand=(I=(G=f.onActive)==null?void 0:G.innertubeCommand)!=null?I:void 0;Tvs(this,S)}Zt(this,this.Y);K=this.Y;S=this.N2;f=[];G=null;for(I=0;Id&&(G.end=d);d=als(d,d+e);f.push(d);G=d;S[d.id]=K[I].onActiveCommand}}this.api.lG(f);a:{K=g.z(m);for(m=K.next();!m.done;m=K.next())if(m.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){K=!1;break a}K=!0}K&&(this.Q6= this.JK[h]);K=!0}else if(S==="MARKER_TYPE_HEATMAP"){h=this.JK[h];J=d=S=I=G=f=void 0;if(h&&h.markers){m=(S=(J=h.markersMetadata)==null?void 0:(d=J.heatmapMetadata)==null?void 0:d.minHeightDp)!=null?S:0;S=(f=(I=h.markersMetadata)==null?void 0:(G=I.heatmapMetadata)==null?void 0:G.maxHeightDp)!=null?f:60;f=this.j.length;G=null;for(I=0;I=J&&D<=e&&d.push(B)}S>0&&(this.uX.style.height=S+"px");J=this.W[I];e=d;B=m;var a=S,Q=I===0;Q=Q===void 0?!1:Q;YDs(J,a);E=e;D=J.X;Q=Q===void 0?!1:Q;var u=1E3/E.length,O=[];O.push({x:0,y:100});for(var N=0;N0&&(G=d[d.length-1])}g.MK(this)}S=void 0;m=[];if(h=(S=h.markersDecoration)==null?void 0:S.timedMarkerDecorations)for(h=g.z(h),S=h.next();!S.done;S=h.next())S=S.value,I=G=f=void 0,m.push({visibleTimeRangeStartMillis:(f=S.visibleTimeRangeStartMillis)!=null?f:-1,visibleTimeRangeEndMillis:(G= S.visibleTimeRangeEndMillis)!=null?G:-1,decorationTimeMillis:(I=S.decorationTimeMillis)!=null?I:NaN,label:S.label?g.Rb(S.label):""});h=m;this.heatMarkersDecorations=h}}W.Mc=this.Y;g.JM(this.element,"ytp-timed-markers-enabled",K);return K}; g.H.IW=function(){g.MK(this);PL(this);Zt(this,this.Y);if(this.X){var K=g.Gk(this.element).x||0;this.X.IW(K,this.G)}}; g.H.Y_k=function(){var K=this.api.getVideoData();K&&Pgs(this,K)}; g.H.onClickCommand=function(K){if(K=g.P(K,ht)){var W=K.key;K.isVisible&&W&&bL(this,W)}}; g.H.QuH=function(K){this.api.Fx("innertubeCommand",this.N2[K.id])}; g.H.Ym=function(){PL(this);var K=this.api.getCurrentTime();(Kthis.clipEnd)&&this.wY()}; g.H.RD=function(K){if(!K.defaultPrevented){var W=!1;switch(K.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);W=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);W=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);W=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);W=!0;break;case 38:this.api.L("enable_key_press_seek_logging")&&e$(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);W=!0;break;case 40:this.api.L("enable_key_press_seek_logging")&&e$(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),W=!0}W&&K.preventDefault()}}; g.H.sj=function(K,W){this.updateVideoData(W,K==="newdata")}; g.H.kmH=function(){this.sj("newdata",this.api.getVideoData())}; g.H.updateVideoData=function(K,W){W=W===void 0?!1:W;var U=!!K&&K.Av();U&&(ZM(K)||YB(this)?this.Sz=!1:this.Sz=K.allowLiveDvr,g.JM(this.api.getRootNode(),"ytp-enable-live-buffer",!(K==null||!ZM(K))),Pgs(this,K));EkR(this,this.api.gS());if(W){if(U){W=K.clipEnd;this.clipStart=K.clipStart;this.clipEnd=W;KF(this);for(bf(this,this.Ms,this.W3);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.q5={};var h;(h=this.X)==null||h.reset();Ke(this);g.JM(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Os(this))}else this.wY();this.Dc()}if(K){var m;h=((m=this.Uz)==null?void 0:m.type)==="clips";if(m=!K.isLivePlayback){m=this.api.getVideoData();W=g.OnR(m);U=CAe(m);var S;m=W!=null||U!=null&&U.length>0||((S=m.g4)==null?void 0:S.length)>0}if(m&&!h){S=this.api.getVideoData();h=g.OnR(S);m=!1;if(h==null?0:h.markersMap){m=this.api.getVideoData();var f;m.fM=((f=h.visibleOnLoad)==null?void 0:f.key)||m.fM;f=g.z(h.markersMap);for(h=f.next();!h.done;h=f.next())h=h.value,h.key&&h.value&&(this.q5[h.key]=h.value, h.value.onChapterRepeat&&(m.iC=h.value.onChapterRepeat));m.fM!=null&&bL(this,m.fM);m=!0}var G;if(((G=S.g4)==null?void 0:G.length)>0){G=g.qg.getState().entities;f=g.z(S.g4);for(h=f.next();!h.done;h=f.next()){h=h.value;U=void 0;W=(U=qF(G,"macroMarkersListEntity",h))==null?void 0:U.markersList;var I=U=void 0;if(((U=W)==null?void 0:U.markerType)==="MARKER_TYPE_TIMESTAMPS"||((I=W)==null?void 0:I.markerType)==="MARKER_TYPE_HEATMAP")this.JK[h]=W}m=this.qm()||m}!m&&(G=CAe(S))&&(xW_(this,G),S.AS=this.j,HGR(this)); ZfY(this,null);K.Pn&&this.W.length===0&&(K=K.Pn,G=K.key,K.isVisible&&G&&bL(this,G))}else mc$(this),SF(this)}PL(this)}; g.H.q5A=function(K){this.J&&!g.C(K.state,32)&&this.api.getPresentingPlayerType()!==3&&this.J.cancel();var W;((W=this.X)==null?0:W.isEnabled)&&g.C(K.state,8)&&this.api.pauseVideo();K=this.api.getPresentingPlayerType()===2||!this.api.gS()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.JM(this.A3,"ytp-hide-scrubber-button",K)}; g.H.fB=function(K){var W=!!this.Uz!==!!K,U=this.Uz;this.Uz=K;ZfY(this,U);(K==null?void 0:K.type)!=="clips"&&K||(K?(this.updateValue("clipstarticon",yk$()),this.updateValue("clipendicon",yk$()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",UMY()),this.updateValue("clipendicon",nJF()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),W&&(this.updateVideoData(this.api.getVideoData(), !0),g.MK(this)),KF(this));bf(this,this.Ms,this.W3)}; g.H.y9e=function(){this.api.publish("progressBarHoverStart")}; g.H.Tmk=function(K,W,U){var h=g.Gk(this.element),m=IE(this).j,S=U?U.getAttribute("data-tooltip"):void 0,f=U?U.getAttribute("data-position"):void 0,G=U?U.getAttribute("data-offset-y"):void 0;G=G?Number(G):0;f&&(K=dT(this.N,Number(U.getAttribute("data-position")),0)*m+g.Gk(this.progressBar).x);this.Qg.x=K-h.x;this.Qg.y=W-h.y;K=IE(this);U=G0(this,K);W=0;var I;if((I=this.api.getVideoData())==null?0:ZM(I))(I=this.api.getProgressState().seekableEnd)&&U>I&&(U=I,K.position=dT(this.N,I)*IE(this).j),W=this.N.X; YB(this)&&(W=this.N.X);I=S||g.sp(this.Sz?U-this.N.j:U-W);W=K.position+this.iK;U-=this.api.A7();var d;if((d=this.X)==null||!d.isEnabled)if(this.api.hW()){if(this.j.length>1){d=t_(this,this.Qg.x,!0);if(!this.Uz)for(h=0;h1)for(h=0;h0)for(d=this.Qg.x,h=g.z(this.Y),m=h.next();!m.done;m=h.next())m=m.value,f=py(this,m.timeRangeStartMillis/ (this.N.j*1E3),IE(this)),g.JM(m.element,"ytp-timed-marker-hover",f<=d&&f+6>=d);h=this.tooltip.scale;d=this.api.L("delhi_modern_web_player")?67:45;G=(isNaN(G)?0:G)-d*h;this.api.L("web_key_moments_markers")?this.Q6?(d=CoF(this.Y,U*1E3),d=d!=null?this.Y[d].title:""):(d=Fp(this.j,U*1E3),d=this.j[d].title):(d=Fp(this.j,U*1E3),d=this.j[d].title);d||(G+=16*h);this.tooltip.scale===.6&&(g.YC(this.api.V())?(G=this.api.xx().getPlayerSize().height-225,h=this.api.L("delhi_modern_web_player")?70:110,G=d?G+h:G+ h+16):G=d?110:126);h=Fp(this.j,U*1E3);this.eV=eGs(this,U,h)?h:eGs(this,U,h+1)?h+1:-1;g.JM(this.api.getRootNode(),"ytp-progress-bar-snap",this.eV!==-1&&this.j.length>1);h=!1;m=g.z(this.heatMarkersDecorations);for(f=m.next();!f.done;f=m.next()){f=f.value;var J=U*1E3;J>=f.visibleTimeRangeStartMillis&&J<=f.visibleTimeRangeEndMillis&&(d=f.label,I=g.sp(f.decorationTimeMillis/1E3),this.api.L("web_heat_marker_use_current_time")&&(I=g.sp(G0(this,K))),h=!0)}this.pC!==h&&(this.pC=h,this.api.logVisibility(this.qb, this.pC));g.JM(this.api.getRootNode(),"ytp-progress-bar-decoration",h);h=160*this.tooltip.scale*2;m=d.length*(this.U?8.55:5.7);m=m<=h?m:h;f=m<160*this.tooltip.scale;h=3;!f&&m/2>K.position&&(h=1);!f&&m/2>this.G-K.position&&(h=2);this.api.V().Y&&(G-=10);this.W.length&&this.W[0].Av&&(G-=14*(this.U?2:1),this.vp||(this.vp=!0,this.api.logVisibility(this.uX,this.vp)));var e;if(Os(this)&&(((e=this.X)==null?0:e.isEnabled)||this.Ik>0)){var E;G-=((E=this.X)==null?0:E.isEnabled)?(this.U?135:90)-this.Ns:this.Ik}e= void 0;Os(this)&&!this.api.L("web_player_hide_fine_scrubbing_edu")&&(e="Pull up for precise seeking",this.tK||(this.tK=!0,this.api.logVisibility(this.Ev,this.tK)));this.tooltip.H$(W,U,I,!!S,G,d,h,e)}else this.tooltip.H$(W,U,I,!!S,G);g.$C(this.api.getRootNode(),"ytp-progress-bar-hover");PfC(this)}; g.H.WGK=function(){this.Dc();g.WR(this.api.getRootNode(),"ytp-progress-bar-hover");this.vp&&(this.vp=!1,this.api.logVisibility(this.uX,this.vp));this.tK&&(this.tK=!1,this.api.logVisibility(this.Ev,this.tK));this.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.H.Nme=function(K,W){var U=g.Gk(this.element);this.Ea=K-U.x;Os(this)&&this.X&&(this.X.hK?hh(this.X,this.api.getCurrentTime()):xqF(this.X),this.X.show(),g.JM(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.Dp&&(this.Dp.dispose(),this.Dp=null);this.NN=W;this.u5=this.api.getCurrentTime();this.j.length>1&&this.eV!==-1?this.api.seekTo(this.j[this.eV].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(G0(this,IE(this)),!1,void 0,void 0,7);g.$C(this.element,"ytp-drag");(this.VA= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.H.Ocm=function(){if(Os(this)&&this.X){var K=(this.U?135:90)-this.Ns;this.Ik>=K*.5?(this.X.enable(),hh(this.X,this.api.getCurrentTime()),WAe(this,K)):Ke(this)}if(g.C(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var W;if((W=this.X)==null?0:W.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.eV!==-1)this.api.L("html5_enable_progress_bar_slide_seek_logging")&&e$(this,this.u5,this.j[this.eV].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.j[this.eV].startTime/1E3,void 0,void 0,void 0,7);else{K=G0(this,IE(this));this.api.L("html5_enable_progress_bar_slide_seek_logging")&&e$(this,this.u5,K,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(K,void 0,void 0,void 0,7);W=g.z(this.heatMarkersDecorations);for(var U=W.next();!U.done;U=W.next())U=U.value,K*1E3>=U.visibleTimeRangeStartMillis&&K*1E3<=U.visibleTimeRangeEndMillis&& this.api.logClick(this.qb)}g.WR(this.element,"ytp-drag");this.hK&&(this.DA.src=this.hK);this.VA&&!g.C(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.H.aE5=function(K,W){var U=this,h=IE(this),m=G0(this,h);this.api.xx().Cl||(h.position>this.Ea+2?this.Ny&&(this.DA.src=this.Ny):h.position1);this.J7(K&&this.D.xx().getPlayerSize().width>=400);this.D.logVisibility(this.element,this.Xo);var W=1;K&&this.isActive()&&(W=2);if(this.j!==W){this.j=W;K=this.D.L("delhi_modern_web_player_icons");switch(W){case 1:this.updateValue("icon",K?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{T:"path",Qt:!0,B:{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", K?{T:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{T:"path",B:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.CED())}g.JM(this.element,"ytp-remote-button-active",this.isActive())}}; sc.prototype.X=function(){if(this.D.getOption("remote","quickCast"))this.D.setOption("remote","quickCast",!0);else{var K=this.pg,W=this.element;if(K.Ej())K.z9();else{K.initialize();a:{var U=g.z(K.bB.items);for(var h=U.next();!h.done;h=U.next())if(h=h.value,h.priority===1){U=h;break a}U=null}U&&(U.open(),K.Kr(W));K.Kr(W)}}this.D.logClick(this.element)};g.V(Ze,g.y);Ze.prototype.j=function(K){var W=this.D.V(),U=400;W.G?U=300:W.Y&&(U=200);K=this.X&&K.width>=U;this.J7(K);this.D.logVisibility(this.element,K)}; Ze.prototype.N=function(){if(this.pg.Xo)this.pg.z9();else{var K=g.ZA(this.D.h7());K&&!K.loaded&&(K.yA("tracklist",{includeAsr:!0}).length||K.load());this.D.logClick(this.element);this.pg.Kr(this.element)}}; Ze.prototype.updateBadge=function(){var K=this.D.isHdr(),W=this.D.getPresentingPlayerType(),U=W!==2&&W!==3,h=g.Xe(this.D),m=U&&!!g.VP(this.D.h7());W=m&&h.displayMode===1;h=m&&h.displayMode===2;U=(m=W||h)||!U?null:this.D.getPlaybackQuality();g.JM(this.element,"ytp-hdr-quality-badge",K);g.JM(this.element,"ytp-hd-quality-badge",!K&&(U==="hd1080"||U==="hd1440"));g.JM(this.element,"ytp-4k-quality-badge",!K&&U==="hd2160");g.JM(this.element,"ytp-5k-quality-badge",!K&&U==="hd2880");g.JM(this.element,"ytp-8k-quality-badge", !K&&U==="highres");g.JM(this.element,"ytp-3d-badge-grey",!K&&m&&W);g.JM(this.element,"ytp-3d-badge",!K&&m&&h)};g.V(JC,g.It);g.H=JC.prototype;g.H.SV=function(){var K=this.D.getAvailableAudioTracks();if(K.length>1){this.Wa(g.CB(K,this.NO));this.tracks=g.GG(K,this.NO,this);this.countLabel.setContent(K.length?" ("+K.length+")":"");this.publish("size-change");K=this.NO(this.D.getAudioTrack());this.b$(K);if(this.D.L("html5_enable_new_audio_settings_menu")){var W;(W=this.j)!=null&&W.setContent(K.toString())}this.enable(!0)}else{if(this.D.L("html5_enable_new_audio_settings_menu")){var U;(U=this.j)!=null&&U.setContent("")}this.enable(!1)}}; g.H.yv=function(K){g.It.prototype.yv.call(this,K);this.D.setAudioTrack(this.tracks[K]);this.pg.HN()}; g.H.NO=function(K){return K.toString()}; g.H.Pv=function(K){this.D.L("html5_enable_new_audio_settings_menu")?this.j&&(K?this.j.j_(this):this.j.z7(this)):g.It.prototype.Pv.call(this,K)}; g.H.onClick=function(){this.D.logClick(this.element)};g.V(ro$,g.ad);g.H=ro$.prototype;g.H.s4=function(){this.D.s4()}; g.H.open=function(){this.FI.WY()>0&&g.u5(this.pg,this.FI)}; g.H.Kc=function(){this.FI.WY()>0&&this.D.getPresentingPlayerType()!==2&&this.D.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.H.RD=function(K){K.defaultPrevented||(this.open(),K.preventDefault())}; g.H.j_=function(K){this.FI.j_(K)}; g.H.z7=function(K){this.FI.z7(K)};g.V(ne,OI); ne.prototype.Kc=function(){var K=this.D.getPresentingPlayerType();if(K!==2&&K!==3&&g.Jf(this.D))this.j||(this.pg.j_(this),this.j=!0,this.X.push(this.S(this.D,"videodatachange",this.Kc)),this.X.push(this.S(this.D,"videoplayerreset",this.Kc)),this.X.push(this.S(this.D,"onPlaylistUpdate",this.Kc)),this.X.push(this.S(this.D,"autonavchange",this.N)),K=this.D.getVideoData(),this.N(K.autonavState),this.D.logVisibility(this.element,this.j));else if(this.j){this.pg.z7(this);this.j=!1;K=g.z(this.X);for(var W= K.next();!W.done;W=K.next())this.GK(W.value)}}; ne.prototype.N=function(K){Sw(this,K!==1)}; ne.prototype.onSelect=function(K){this.D.Fz(K?2:1);this.j&&(this.D.logVisibility(this.element,this.j),this.D.logClick(this.element))}; ne.prototype.QH=function(){this.j&&this.pg.z7(this);OI.prototype.QH.call(this)};g.V(Qs,g.ad);Qs.prototype.onClick=function(K){K.preventDefault();var W,U;(W=g.dK(this.D))==null||(U=W.Es())==null||U.z9();var h,m;(h=g.dK(this.D))==null||(m=h.qC())==null||m.Kr(K.target)};g.V(C4Y,g.It);g.H=C4Y.prototype; g.H.Kc=function(){var K=this.D.getPresentingPlayerType();if(K!==2&&K!==3){this.uX=this.D.DF();var W=this.D.getAvailableQualityLevels();if(this.j){this.X={};K=g.Zm(this.D,"getAvailableQualityData",[]);K=g.z(K);for(var U=K.next();!U.done;U=K.next())U=U.value,this.X[U.qualityLabel]=U;K=Object.keys(this.X);W[W.length-1]==="auto"&&K.push("auto");this.Ns=new Set(W)}else if(this.N){U=g.Zm(this.D,"getAvailableQualityData",[]);K=[];U=g.z(U);for(var h=U.next();!h.done;h=U.next())h=h.value,this.G[h.quality]= h,h.quality&&K.push(h.quality);W[W.length-1]==="auto"&&K.push("auto")}else K=W;g.aNs(this.D)&&this.D.SQ()&&K.unshift("missing-qualities");W=this.D.app.E5();U=W.getVideoData();if(!U.X||!U.X.video||U.X.video.qualityOrdinal<1080||U.Yz)W=!1;else{h=/^qsa/.test(U.clientPlaybackNonce);var m="r";U.X.id.indexOf(";")>=0&&(h=/^[a-p]/.test(U.clientPlaybackNonce),m="x");h?(W.rk("iqss",{trigger:m},!0),W=!0):W=!1}W&&K.unshift("inline-survey");this.Wa(K);W=this.D.getVideoData().cotn?!0:!1;U=this.J.nN();U=!g.YC(this.D.V())|| !(W===void 0?0:W)||!(U===void 0||U);W=this.FI;U=U===void 0?!1:U;W.H4&&g.JM(W.yH("ytp-panel-footer"),"ytp-panel-hide-footer",U===void 0?!1:U);if(K.length){this.cK();this.enable(!0);return}}this.enable(!1)}; g.H.cK=function(){if(this.j){var K=this.D.getPreferredQuality();this.Ns.has(K)&&(this.W=this.D.getPlaybackQuality(),this.Y=this.D.getPlaybackQualityLabel(),K==="auto"?(this.b$(K),this.setContent(this.mZ(K))):this.b$(this.Y))}else K=this.D.getPreferredQuality(),this.options[K]&&(this.W=this.D.getPlaybackQuality(),this.b$(K),K==="auto"&&this.setContent(this.mZ(K)))}; g.H.yv=function(K){if(K!=="missing-qualities"){g.It.prototype.yv.call(this,K);var W=this.j?this.X[K]:this.G[K];var U=W==null?void 0:W.quality,h=W==null?void 0:W.formatId,m=W==null?void 0:W.paygatedQualityDetails;W=m==null?void 0:m.endpoint;if(m){var S;m=(S=this.options[K])==null?void 0:S.element;this.D.logClick(m)}if(this.j){var f,G;if((f=g.P(W,g.RDb))==null?0:(G=f.popup)==null?0:G.notificationActionRenderer)this.D.Fx("innertubeCommand",W);else if(W){this.D.Fx("innertubeCommand",W);return}h?this.D.setPlaybackQuality(U, h):this.D.setPlaybackQuality(U)}else{if(this.N){var I,d;if((I=g.P(W,g.RDb))==null?0:(d=I.popup)==null?0:d.notificationActionRenderer)this.D.Fx("innertubeCommand",W);else if(W){this.D.Fx("innertubeCommand",W);return}}this.D.setPlaybackQuality(K)}this.pg.z9();this.Kc()}}; g.H.open=function(){for(var K=g.z(Object.values(this.options)),W=K.next();!W.done;W=K.next()){W=W.value;var U=void 0;this.D.hasVe((U=W)==null?void 0:U.element)&&(U=void 0,this.D.logVisibility((U=W)==null?void 0:U.element,!0))}g.It.prototype.open.call(this);this.D.logClick(this.element)}; g.H.QM=function(K,W,U){var h=this;if(K==="missing-qualities")return new g.ad({T:"a",Hp:["ytp-menuitem"],B:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.D.V().jV,tabindex:"0",role:"menuitemradio"},K:[{T:"div",Hp:["ytp-menuitem-label"],bX:"{{label}}"}]},W,this.mZ(K));if(K!=="inline-survey"){var m,S=(m=this.j?this.X[K]:this.G[K])==null?void 0:m.paygatedQualityDetails;m=S==null?void 0:S.veType;S=S==null?void 0:S.trackingParams;W=g.It.prototype.QM.call(this,K,W,U);S?(this.D.createServerVe(W.element, this,!0),this.D.setTrackingParams(W.element,S)):m&&this.D.createClientVe(W.element,this,m,!0);return W}K=[{T:"span",bX:"Looks good?"}];U=g.z([!0,!1]);S=U.next();for(m={};!S.done;m={OU:void 0},S=U.next())m.OU=S.value,S=new g.y({T:"span",Z:"ytp-menuitem-inline-survey-response",K:[m.OU?EG2():B9e()],B:{tabindex:"0",role:"button"}}),S.listen("click",function(f){return function(){var G=h.D.app.E5();G.rk("iqsr",{tu:f.OU});G.getVideoData().Yz=!0;h.pg.z9();h.Kc()}}(m)),K.push(S); return new g.ad({T:"div",Z:"ytp-menuitem",B:{"aria-disabled":"true"},K:[{T:"div",Hp:["ytp-menuitem-label"],K:K}]},W)}; g.H.mZ=function(K,W){W=W===void 0?!1:W;if(K==="missing-qualities")return{T:"div",bX:"Missing options?"};if(K==="inline-survey")return"";var U=this.N||this.j?[k8(this,K,W,!1)]:[sQD(this,K)];var h=this.D.getPreferredQuality();W||h!=="auto"||K!=="auto"||(U.push(" "),this.j?U.push(k8(this,this.Y,W,!0,["ytp-menu-label-secondary"])):this.N?U.push(k8(this,this.W,W,!0,["ytp-menu-label-secondary"])):U.push(sQD(this,this.W,["ytp-menu-label-secondary"])));return{T:"div",K:U}};g.V(TE,R9);TE.prototype.W=function(){R9.prototype.W.call(this);this.J&&yi(this)}; TE.prototype.DA=function(){this.Ms()}; TE.prototype.Ns=function(){this.D.setPlaybackRate(this.j,!0)}; TE.prototype.G=function(K){R9.prototype.G.call(this,K);this.Ms();yi(this);K.preventDefault()};g.V(Eh,g.y);g.H=Eh.prototype;g.H.init=function(){this.NA(this.j);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.N)}; g.H.J6=function(K){if(!K.defaultPrevented){switch(K.keyCode){case 37:case 40:var W=-this.Y;break;case 39:case 38:W=this.Y;break;default:return}this.NA(this.j+W);K.preventDefault()}}; g.H.A6=function(K){var W=this.j;W+=(K.deltaX||-K.deltaY)<0?-this.J:this.J;this.NA(W);K.preventDefault()}; g.H.BH=function(K){K=(K-g.Gk(this.W).x)/this.Ms*this.range+this.X;this.NA(K)}; g.H.NA=function(K,W){W=W===void 0?"":W;K=g.Jk(K,this.X,this.N);W===""&&(W=K.toString());this.updateValue("valuenow",K);this.updateValue("valuetext",W);this.uX.style.left=(K-this.X)/this.range*(this.Ms-this.hK)+"px";this.j=K}; g.H.focus=function(){this.eV.focus()};g.V(at,Eh);at.prototype.Ns=function(){this.D.setPlaybackRate(this.j,!0)}; at.prototype.NA=function(K){Eh.prototype.NA.call(this,K,U4s(this,K).toString());this.U&&(Bi(this),this.DA())}; at.prototype.updateValues=function(){var K=this.D.getPlaybackRate();U4s(this,this.j)!==K&&(this.NA(K),Bi(this))};g.V(wV,g.GW);wV.prototype.focus=function(){this.j.focus()};g.V(la,Cg);g.V(XvD,g.It);g.H=XvD.prototype;g.H.onVideoDataChange=function(K,W){K==="dataloaded"&&gPs(W)&&(K=this.D.getAvailablePlaybackRates(),g.zk(this.W,K)||(this.W=K,this.N.dispose(),this.N=new TE(this.D)),this.SV())}; g.H.mZ=function(K){return K==="1"?"Normal":K.toLocaleString()}; g.H.SV=function(){var K,W=(K=this.D.getVideoData())==null?void 0:K.Sj();K=this.D.getPresentingPlayerType(W);this.enable(K!==2&&K!==3);v9C(this)}; g.H.Wa=function(K){g.It.prototype.Wa.call(this,K);this.N&&this.N.X.focus()}; g.H.Pv=function(K){g.It.prototype.Pv.call(this,K);K?(this.uX=this.S(this.D,"onPlaybackRateChange",this.onPlaybackRateChange),v9C(this),EpD(this,this.D.getPlaybackRate()),this.D.L("enable_web_premium_varispeed_upsell")&&(this.D.logVisibility(this.element,!0),this.X&&this.D.logVisibility(this.J.element,!0))):(this.GK(this.uX),this.uX=null)}; g.H.onPlaybackRateChange=function(K){var W=this.D.getPlaybackRate();!this.G&&this.W.includes(W)||X3p(this,W);EpD(this,K)}; g.H.QM=function(K,W,U){return K===this.j&&$T(this.D)?g.It.prototype.QM.call(this,K,W,U,{T:"div",Z:"ytp-speed-slider-menu-footer",K:[this.N]}):K===this.X&&J_C(this.D,this.Ns)?Q1Y(this,K,W,U):g.It.prototype.QM.call(this,K,W,U)}; g.H.yv=function(K){g.It.prototype.yv.call(this,K);K===this.X?(this.D.logClick(this.J.element),this.D.Fx("innertubeCommand",this.Ns)):K===this.j?this.D.setPlaybackRate(this.Y,!0):this.D.setPlaybackRate(Number(K),!0);(!$T(this.D)||K!==this.j&&K!==this.X)&&this.pg.HN()}; g.H.XS=function(K){var W=K===this.j;this.G=!1;W&&zY(this.D)&&!$T(this.D)?(K=new la(this.D),g.u5(this.pg,K)):g.It.prototype.XS.call(this,K)};g.V(RI,g.It);g.H=RI.prototype;g.H.b$=function(K){g.It.prototype.b$.call(this,K)}; g.H.xJ=function(K){return K.option.toString()}; g.H.getOption=function(K){return this.settings[K]}; g.H.mZ=function(K){return this.getOption(K).text||""}; g.H.yv=function(K){g.It.prototype.yv.call(this,K);this.publish("settingChange",this.setting,this.settings[K].option)};g.V(zM,g.Ff);zM.prototype.tW=function(K){for(var W=g.z(Object.keys(K)),U=W.next();!U.done;U=W.next()){var h=U.value;if(U=this.Lu[h]){var m=K[h].toString();h=!!K[h+"Override"];U.options[m]&&(U.b$(m),U.X.element.setAttribute("aria-checked",String(!h)),U.j.element.setAttribute("aria-checked",String(h)))}}}; zM.prototype.cS=function(K,W){this.publish("settingChange",K,W)};g.V(Vy,g.It);Vy.prototype.j=function(K){return K.languageCode}; Vy.prototype.mZ=function(K){return this.languages[K].languageName||""}; Vy.prototype.yv=function(K){this.publish("select",K);this.D.logClick(this.element);g.an(this.pg)};g.V(QDp,g.It);g.H=QDp.prototype;g.H.YI=function(K){return g.Tb(K)?"__off__":K.displayName}; g.H.mZ=function(K){return K==="__off__"?"Off":K==="__translate__"?"Auto-translate":K==="__contribute__"?"Add subtitles/CC":K==="__correction__"?"Suggest caption corrections":(K==="__off__"?{}:this.tracks[K]).displayName}; g.H.yv=function(K){if(K==="__translate__")this.j.open();else if(K==="__contribute__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var W=g.NpC(this.D.V(),this.D.getVideoData());g.be(W)}else if(K==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var U=JK(this);LV(this,U);g.It.prototype.yv.call(this,this.YI(U));var h,m;U=(W=this.D.getVideoData().getPlayerResponse())==null?void 0:(h=W.captions)==null?void 0:(m=h.playerCaptionsTracklistRenderer)== null?void 0:m.openTranscriptCommand;this.D.Fx("innertubeCommand",U);this.pg.HN();this.X&&this.D.logClick(this.X)}else{if(K==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();W=JK(this);LV(this,W);g.It.prototype.yv.call(this,this.YI(W));var S,f;W=(U=this.D.getVideoData().getPlayerResponse())==null?void 0:(S=U.captions)==null?void 0:(f=S.playerCaptionsTracklistRenderer)==null?void 0:f.openTranscriptCommand;this.D.Fx("innertubeCommand",W)}else this.D.logClick(this.element), LV(this,K==="__off__"?{}:this.tracks[K]),g.It.prototype.yv.call(this,K);this.pg.HN()}}; g.H.SV=function(){var K=this.D.getOptions();K=K&&K.indexOf("captions")!==-1;var W=this.D.getVideoData(),U=W&&W.CF,h,m=!((h=this.D.getVideoData())==null||!g.pV(h));h={};if(K||U){var S;if(K){var f=this.D.getOption("captions","track");h=this.D.getOption("captions","tracklist",{includeAsr:!0});var G=m?[]:this.D.getOption("captions","translationLanguages");this.tracks=g.GG(h,this.YI,this);m=g.CB(h,this.YI);var I,d;JK(this)&&((S=W.getPlayerResponse())==null?0:(I=S.captions)==null?0:(d=I.playerCaptionsTracklistRenderer)== null?0:d.openTranscriptCommand)&&m.push("__correction__");if(G.length&&!g.Tb(f)){if((S=f.translationLanguage)&&S.languageName){var J=S.languageName;S=G.findIndex(function(e){return e.languageName===J}); dsC(G,S)}Fvs(this.j,G);m.push("__translate__")}S=this.YI(f)}else this.tracks={},m=[],S="__off__";m.unshift("__off__");this.tracks.__off__={};U&&m.unshift("__contribute__");this.tracks[S]||(this.tracks[S]=f,m.push(S));this.Wa(m);this.b$(S);f&&f.translationLanguage?this.j.b$(this.j.j(f.translationLanguage)):YEC(this.j);K&&this.N.tW(this.D.getSubtitlesUserSettings());this.countLabel.setContent(h&&h.length?" ("+h.length+")":"");this.publish("size-change");this.D.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.H.V$=function(K){var W=this.D.getOption("captions","track");W=g.Ni(W);W.translationLanguage=this.j.languages[K];LV(this,W)}; g.H.cS=function(K,W){if(K==="reset")this.D.resetSubtitlesUserSettings();else{var U={};U[K]=W;this.D.updateSubtitlesUserSettings(U)}$ne(this,!0);this.W.start();this.N.tW(this.D.getSubtitlesUserSettings())}; g.H.fEr=function(K){K||g.pz(this.W)}; g.H.QH=function(){g.pz(this.W);g.It.prototype.QH.call(this)}; g.H.open=function(){g.It.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.D.createClientVe(this.X,this,167341),this.D.logVisibility(this.X,!0))};g.V(kb,g.r$);g.H=kb.prototype; g.H.initialize=function(){if(!this.isInitialized){var K=this.D.V();this.isInitialized=!0;try{this.Kk=new C4Y(this.D,this)}catch(U){g.eI(Error("QualityMenuItem creation failed"))}g.k(this,this.Kk);var W=new QDp(this.D,this);g.k(this,W);K.enableSpeedOptions&&(W=new XvD(this.D,this),g.k(this,W));(g.HB(K)||K.G)&&(K.X||K.vp)&&(W=new Qs(this.D,this),g.k(this,W));K.Pl&&!K.L("web_player_move_autonav_toggle")&&(W=new ne(this.D,this),g.k(this,W));K.L("html5_enable_new_audio_settings_menu")?(this.wd=new ro$(this.D, this),g.k(this,this.wd)):(K=new JC(this.D,this),g.k(this,K));this.D.publish("settingsMenuInitialized");yo(this.settingsButton,this.bB.WY())}}; g.H.j_=function(K){this.initialize();this.bB.j_(K);yo(this.settingsButton,this.bB.WY())}; g.H.z7=function(K){this.qs()||(this.Xo&&this.bB.WY()<=1&&this.hide(),this.bB.z7(K),yo(this.settingsButton,this.bB.WY()))}; g.H.Kr=function(K){this.initialize();this.bB.WY()>0&&g.r$.prototype.Kr.call(this,K)}; g.H.z9=function(){this.rY?this.rY=!1:g.r$.prototype.z9.call(this)}; g.H.show=function(){g.r$.prototype.show.call(this);g.$C(this.D.getRootNode(),"ytp-settings-shown")}; g.H.hide=function(){g.r$.prototype.hide.call(this);g.WR(this.D.getRootNode(),"ytp-settings-shown")}; g.H.mG=function(K){this.D.logVisibility(this.element,K);this.D.publish("settingsMenuVisibilityChanged",K)}; g.H.s4=function(){this.D.s4()};g.V(tqR,g.y);g.H=tqR.prototype;g.H.onClick=function(){if(po(this)&&(this.D.toggleSubtitles(),this.D.logClick(this.element),!this.isEnabled())){var K=!1,W=g.Uv().v3(65);g.YC(this.D.V())&&W!=null&&(K=!W);K&&this.D.V().L("web_player_nitrate_promo_tooltip")&&this.D.publish("showpromotooltip",this.element)}}; g.H.NSU=function(K){var W,U;(W=g.dK(this.D))==null||(U=W.Es())==null||U.Kr(K)}; g.H.isEnabled=function(){var K=this.D.getOption("captions","track");return!(!K||!K.displayName)}; g.H.SV=function(){var K=po(this),W=300;this.D.V().Y&&(W=480);this.D.L("delhi_modern_web_player_icons")&&this.updateValue("icon",mo2(this));if(this.D.V().G){this.updateValue("title",g.U4(this.D,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.U4(this.D,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var U=K}else{if(K)(U=this.yH("ytp-subtitles-button-icon"))==null||U.setAttribute("fill-opacity","1"),this.D.V().L("player_tooltip_data_title_killswitch")? this.updateValue("title",g.U4(this.D,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.U4(this.D,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.D.L("delhi_modern_web_player_icons")){var h;(h=this.yH("ytp-subtitles-button-icon"))==null||h.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var m;(m=this.yH("ytp-subtitles-button-icon"))==null||m.setAttribute("fill-opacity","0.3")}this.updateValue("title", "Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}U=!0}this.tooltip.T8();U=U&&this.D.xx().getPlayerSize().width>=W;this.J7(U);this.D.logVisibility(this.element,U);K?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.H.My=function(K){g.y.prototype.My.call(this,K)};g.V(g.s2,g.y);g.H=g.s2.prototype;g.H.canShowCountdown=function(){return!tZ(this)&&!G9(this)}; g.H.Ym=function(){var K=this.api.xx().getPlayerSize().width,W=this.Ms;this.api.V().Y&&(W=400);W=K>=W&&(!G9(this)||!g.C(this.api.getPlayerStateObject(),64));this.J7(W);g.JM(this.element,"ytp-time-display-allow-autohide",W&&K<400);K=this.api.getProgressState();if(W){var U=this.api.getPresentingPlayerType();W=this.api.getCurrentTime(U,!1);this.X&&(W-=K.airingStart);tZ(this)&&(W-=this.Uz.startTimeMs/1E3);this.canShowCountdown()&&this.N&&(W-=this.api.getDuration(U,!1));var h=g.sp(W);this.W!==h&&(this.updateValue("currenttime", h),this.W=h);U=tZ(this)?(this.Uz.endTimeMs-this.Uz.startTimeMs)/1E3:this.api.getDuration(U,!1);h=g.sp(U);this.U!==h&&(this.updateValue("duration",h),this.U=h,W&&(W=g.BB("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.sp(W,!0),DURATION:g.sp(U,!0)}),this.updateValue("timeDisplayAriaLabel",W)))}tr2(this,K.isAtLiveHead);GNL(this,this.api.getLoopRange())}; g.H.onLoopRangeChange=function(K){var W=this.Uz!==K;this.Uz=K;W&&(this.Ym(),II(this))}; g.H.U9r=function(){this.api.setLoopRange(null)}; g.H.V_x=function(){this.N=!this.N;this.Ym()}; g.H.onVideoDataChange=function(K,W,U){this.updateVideoData((this.api.V().L("enable_topsoil_wta_for_halftime")||this.api.V().L("enable_topsoil_wta_for_halftime_live_infra"))&&U===2?this.api.getVideoData(1):W);this.Ym();II(this)}; g.H.updateVideoData=function(K){this.Ls=K.isLivePlayback&&!K.Vr;this.X=ZM(K);this.isPremiere=K.isPremiere;var W,U,h;this.liveIndicatorText=(K=(W=K.getWatchNextResponse())==null?void 0:(U=W.playerOverlays)==null?void 0:(h=U.playerOverlayRenderer)==null?void 0:h.liveIndicatorText)?RE(K):null;g.JM(this.element,"ytp-live",G9(this));this.api.L("delhi_modern_web_player")&&this.yH("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.H.onClick=function(K){K.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.H.QH=function(){this.j&&this.j();g.y.prototype.QH.call(this)};g.V(vO,g.y);g.H=vO.prototype;g.H.vD=function(){jSs(this)}; g.H.L6U=function(K){CQ2(this,K);this.J&&jSs(this)}; g.H.Ko=function(K){if(!K.defaultPrevented){var W=K.keyCode,U=null;W===37?U=this.volume-5:W===39?U=this.volume+5:W===36?U=0:W===35&&(U=100);U!==null&&(U=g.Jk(U,0,100),U===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(U)),K.preventDefault())}}; g.H.wU=function(K){var W=K.deltaX||-K.deltaY;K.deltaMode?this.api.setVolume(this.volume+(W<0?-10:10)):this.api.setVolume(this.volume+g.Jk(W/10,-10,10));K.preventDefault();var U,h;((U=this.api.V())==null?0:(h=U.getWebPlayerContextConfig())==null?0:h.enableFullscreenComponentsFeature)&&K.stopPropagation()}; g.H.CBr=function(){VI(this,this.j,!0,this.X,this.api.FY());this.Ms=this.volume;this.api.isMuted()&&this.api.unMute()}; g.H.Ek=function(K){var W=this.N?78:52,U=this.N?18:12;K-=g.Gk(this.Y).x;U=g.Jk((K-U/2)/(W-U),0,1);this.J&&(U=g.Jk(K/W,0,1));W=U;W=this.api.L("web_player_non_linear_volume_controls")?W<=.25?W/.25*.1:.1+(W-.25)/.75*.9:W;this.api.setVolume(W*100)}; g.H.lEm=function(){VI(this,this.j,!1,this.X,this.api.FY());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Ms))}; g.H.onVolumeChange=function(K){X$(this,K.volume,K.muted)}; g.H.Hb=function(){VI(this,this.j,this.isDragging,this.X,this.api.FY())}; g.H.QH=function(){g.y.prototype.QH.call(this);g.WR(this.G,"ytp-volume-slider-active")};g.V(cV,g.y); cV.prototype.onVideoDataChange=function(){var K=this.api.V();this.IW();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).Mk;this.J7(this.visible);this.api.logVisibility(this.element,this.visible&&this.jV);if(this.visible){var W=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",W)}K.N&&(this.j&&(this.GK(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.$C(this.element,"no-link")); W=this.api.V();K=this.api.getVideoData();var U="";W.N||(W=g.$b(W),W.indexOf("www.")===0&&(W=W.substring(4)),U=g.oz(K)?"Watch on YouTube Music":W==="youtube.com"?"Watch on YouTube":g.BB("Watch on $WEBSITE",{WEBSITE:W}));this.api.L("player_tooltip_data_title_killswitch")?this.updateValue("title",U):this.updateValue("tooltip-title",U)}; cV.prototype.onClick=function(K){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var W=this.api.V(),U=this.api.getVideoUrl(!g.oZ(K),!1,!0,!0);if(g.HB(W)){var h={};g.HB(W)&&g.Zm(this.api,"addEmbedsConversionTrackingParams",[h]);U=g.sL(U,h)}g.sf(U,this.api,K);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; cV.prototype.IW=function(){var K={T:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{T:"path",Qt:!0,Z:"ytp-svg-fill",B:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, W=28666,U=this.api.getVideoData();this.api.isEmbedsShortsMode()?K={T:"svg",B:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{T:"path",B:{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.oz(U)&&(K={T:"svg",B:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{T:"path",B:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{T:"path",B:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{T:"path",B:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{T:"path",B:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{T:"path",B:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{T:"path",B:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{T:"path",B:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{T:"path",B:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{T:"path",B:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{T:"path",B:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{T:"path",B:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{T:"path",B:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},W=216163);g.oz(U)?g.$C(this.element,"ytp-youtube-music-button"):g.WR(this.element,"ytp-youtube-music-button");K.B=Object.assign({},K.B,{"aria-hidden":"true"});this.updateValue("logoSvg",K);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,W,!0)}; cV.prototype.My=function(K){g.y.prototype.My.call(this,K);this.api.logVisibility(this.element,this.visible&&K)};g.V(GqD,g.Te);g.H=GqD.prototype;g.H.onProgress=function(){if(this.D.L("web_player_max_seekable_on_ended")||!g.C(this.D.getPlayerStateObject(),2))YU(this.Fc),this.progressBar.Ym(),this.vv.Ym()}; g.H.fU=function(){this.qh();if(YU(this.Fc))this.progressBar.Dc();else this.onProgress()}; g.H.FJ=function(){this.onProgress();this.J.start()}; g.H.qh=function(){var K;if(K=!this.D.V().X){K=this.progressBar;var W=2*g.rM()*K.G,U=K.N;K=(U.j-U.X)*1E3/K.api.getPlaybackRate()/W<300}K=K&&this.D.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;W=!K;YU(this.Fc)&&(K=W=!1);W?this.uX||(this.uX=this.S(this.D,"progresssync",this.onProgress)):this.uX&&(this.GK(this.uX),this.uX=null);K?this.J.isActive()||this.J.start():this.J.stop()}; g.H.IW=function(){var K=this.D.Hu(),W=this.D.xx().getPlayerSize(),U=this.D.xx().Cl,h=vS(this),m=pns(this),S=Math.max(W.width-h*2,100);if(this.Ik!==W.width||this.Pp!==K||this.D.L("web_player_rtr_ctrls")&&this.Jr!==U)this.Ik=W.width,this.Pp=K,this.Jr=U,this.j.element.style.width=m+"px",this.j.element.style.left=h+"px",g.C0s(this.progressBar,h,m,K),this.D.Fd().lM=m;U=this.N;S=Math.min(570*(K?1.5:1),S);K=Math.min(413*(K?1.5:1),Math.round((W.height-dHC(this))*.82));U.maxWidth=S;U.maxHeight=K;U.yG();this.qh(); this.M5&&wVs(this.Bp,W.height)}; g.H.onVideoDataChange=function(){var K=this.D.getVideoData();this.Le.style.background=K.Mk?K.VV:"";this.Ms&&XgL(this.Ms,K.showSeekingControls);this.jV&&XgL(this.jV,K.showSeekingControls)}; g.H.H3=function(){return this.j.element};g.V(oO,dw);g.H=oO.prototype;g.H.Wn=function(K){K.target!==this.dismissButton.element&&(this.onClickCommand&&this.D.Fx("innertubeCommand",this.onClickCommand),this.eG())}; g.H.eG=function(){this.enabled=!1;this.J.hide()}; g.H.onVideoDataChange=function(K,W){K==="dataloaded"&&$AR(this);K=[];var U,h,m,S;if(W=(S=g.P((U=W.getWatchNextResponse())==null?void 0:(h=U.playerOverlays)==null?void 0:(m=h.playerOverlayRenderer)==null?void 0:m.suggestedActionsRenderer,tfv))==null?void 0:S.suggestedActions)for(U=g.z(W),h=U.next();!h.done;h=U.next())(h=g.P(h.value,GnW))&&g.P(h.trigger,fHn)&&K.push(h);if(K.length!==0){U=[];K=g.z(K);for(h=K.next();!h.done;h=K.next())if(h=h.value,m=g.P(h.trigger,fHn)){S=(S=h.title)?g.Rb(S):"View Chapters"; W=m.timeRangeStartMillis;var f=m.timeRangeEndMillis;m=m.onlyTriggersOnPlayerPause;h.tapCommand&&(W!=null&&f!=null&&U.push(new g.g0(W,f,{priority:9,namespace:"suggested_action_button_visible",id:S})),W!=null&&f!=null||m)&&(this.suggestedActions[S]=h)}this.D.lG(U)}}; g.H.MI=function(){return this.enabled}; g.H.mG=function(){this.enabled?this.tK.start():vb(this);this.HS()}; g.H.onStateChange=function(K){for(var W=g.z(Object.keys(this.suggestedActions)),U=W.next();!U.done;U=W.next()){U=U.value;var h=void 0;if((h=g.P(this.suggestedActions[U].trigger,fHn))==null?0:h.onlyTriggersOnPlayerPause){K.state.isPaused()?(Tj2(this,U),this.enabled=!0,this.mG()):K.oldState.isPaused()&&(this.enabled=!1,this.mG());break}}}; g.H.QH=function(){$AR(this);dw.prototype.QH.call(this)};var uG={},S9=(uG.CHANNEL_NAME="ytp-title-channel-name",uG.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",uG.LINK="ytp-title-link",uG.SESSIONLINK="yt-uix-sessionlink",uG.SUBTEXT="ytp-title-subtext",uG.TEXT="ytp-title-text",uG.TITLE="ytp-title",uG);g.V(fo,g.y);fo.prototype.onClick=function(K){this.api.logClick(this.element);var W=this.api.V(),U=this.api.getVideoUrl(!g.oZ(K),!1,!0);g.HB(W)&&(W={},g.Zm(this.api,"addEmbedsConversionTrackingParams",[W]),U=g.sL(U,W));g.sf(U,this.api,K)}; fo.prototype.SV=function(){var K=this.api.getVideoData(),W=this.api.V();this.updateValue("title",K.title);var U={T:"a",Z:S9.CHANNEL_NAME,B:{href:"{{channelLink}}",target:"_blank"},bX:"{{channelName}}"};this.api.V().N?U={T:"span",Z:S9.CHANNEL_NAME,bX:"{{channelName}}",B:{tabIndex:"{{channelSubtextFocusable}}"}}:K.wN&&(U={T:"span",Z:S9.SUBTEXT,bX:K.wN});this.updateValue("subtextElement",U);TWC(this);this.api.getPresentingPlayerType()===2&&(U=this.api.getVideoData(),U.videoId&&U.isListed&&U.author&& U.tK&&U.profilePicture?(this.updateValue("channelLink",U.tK),this.updateValue("channelName",U.author),this.updateValue("channelTitleFocusable","0")):TWC(this));U=W.externalFullscreen||!this.api.isFullscreen()&&W.NN;g.JM(this.link,S9.FULLERSCREEN_LINK,U);W.uX||!K.videoId||U||K.Mk||W.N?this.j&&(this.updateValue("url",null),this.GK(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.S(this.link,"click",this.onClick)));W.N&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.HB(W)?K.expandedTitle:K.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.V(g.lw,g.y);g.H=g.lw.prototype;g.H.setEnabled=function(K){if(this.type!=null)if(K)switch(this.type){case 3:case 2:g3(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=K}; g.H.H$=function(K,W,U,h,m,S,f,G){if(!this.DA||this.env.Y){this.type===3&&this.Dc();this.type!==1&&(g.pG(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.X&&this.X.dispose(),(this.X=this.api.hW())&&this.X.subscribe("l",this.tN,this));if(G){var I=g.nL(this.bg).height||141;this.hK.style.bottom=I+2+"px"}else this.hK.style.display="none";this.env.L("delhi_modern_web_player")?(this.update({pillTimeStamp:U,pillTitle:S!=null?S:"",eduText:G!=null?G:""}),g.$C(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:U,title:S!=null?S:"",eduText:G!=null?G:""}),g.JM(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!S));this.api.isInline()&&g.$C(this.bottomText,"ytp-modern-tooltip-text");g.JM(this.element,"ytp-text-detail",!!h);U=-1;this.X&&(U=U3(this.X,243*this.scale),this.env.L("web_l3_storyboard")&&this.X.levels.length===4&&(U=this.X.levels.length-1),U=DB_(this.X,U,W));giR(this,U);if(f)switch(W=g.nL(this.element).width,f){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=W+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=W/2+"px",this.title.style.textAlign="center"}vWz(this,!!h,K,m)}}; g.H.W7=function(){this.type===1&&this.Dc()}; g.H.KG=function(K,W){if(this.type)if(this.type===3)this.Dc();else return;sts(this,K,3,W)}; g.H.T8=function(){this.j&&!this.Y&&(this.env.L("player_tooltip_data_title_killswitch")?this.j.hasAttribute("title")&&(this.N=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.G&&g3(this)):this.j.hasAttribute("data-tooltip-title")&&(this.N=this.j.getAttribute("data-tooltip-title")||"",this.j.removeAttribute("data-tooltip-title"),this.G&&g3(this)))}; g.H.tN=function(K,W){K<=this.W&&this.W<=W&&(K=this.W,this.W=NaN,giR(this,K))}; g.H.k9K=function(){NwC(this.X,this.W,243*this.scale)}; g.H.Dc=function(){switch(this.type){case 2:var K=this.j;K.removeEventListener("mouseout",this.J);K.addEventListener("mouseover",this.U);K.removeEventListener("blur",this.J);K.addEventListener("focus",this.U);yBC(this);break;case 3:yBC(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.tN,this),this.X=null),this.api.removeEventListener("videoready",this.Ms),this.uX.stop()}this.type=null;this.G&&this.fade.hide()}; g.H.u0=function(){if(this.j)for(var K=0;K=0;W--)if(this.qo[W]===K){this.qo.splice(W,1);break}c_(this.Fc,64,this.qo.length>0)}; g.H.FG=function(){this.api.e$()&&this.api.kD();return!!this.cT||kNC(this)||g.nE.prototype.FG.call(this)}; g.H.zk=function(){var K=!this.FG(),W=K&&this.api.e$()&&!g.C(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().Mk&&!this.api.V().N&&!this.api.isEmbedsShortsMode(),U=this.v1&&g.Gj(this.api)&&g.C(this.api.getPlayerStateObject(),128);K||U?(this.ey.show(),this.Gc.show()):(this.ey.hide(),this.Gc.hide(),this.api.u0(this.Gz.element));W?this.ou.Kr():this.ou.z9();this.ET&&K6L(this.ET,this.LfX||!K);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&HIp(this);g.nE.prototype.zk.call(this)}; g.H.KZ=function(K,W,U,h,m){K.style.left="";K.style.top="";K.style.bottom="";var S=g.nL(K),f=h||this.ET&&g.Hj(this.ET.H3(),W),G=h=null;U!=null&&f||(h=g.nL(W),G=g.gF(W,this.api.getRootNode()),U==null&&(U=G.x+h.width/2));U-=S.width/2;f?(W=this.ET,h=vS(W),G=pns(W),f=this.api.xx().getPlayerSize().height,U=g.Jk(U,h,h+G-S.width),S=f-dHC(W)-S.height):g.Hj(this.Gz.element,W)?(W=this.api.xx().getPlayerSize().width,U=g.Jk(U,12,W-S.width-12),S=this.Hu()?this.VS:this.JY,this.api.V().playerStyle==="gvn"&&(S+=20), this.v1&&(S-=this.Hu()?26:18)):(W=this.api.xx().getPlayerSize(),U=g.Jk(U,12,W.width-S.width-12),S=G.y>(W.height-h.height)/2?G.y-S.height-12:G.y+h.height+12);K.style.top=S+(m||0)+"px";K.style.left=U+"px"}; g.H.fU=function(K){K&&(this.api.u0(this.Gz.element),this.ET&&this.api.u0(this.ET.H3()));this.Ft&&(g.JM(this.contextMenu.element,"ytp-autohide",K),g.JM(this.contextMenu.element,"ytp-autohide-active",!0));g.nE.prototype.fU.call(this,K)}; g.H.kA=function(){g.nE.prototype.kA.call(this);this.Ft&&(g.JM(this.contextMenu.element,"ytp-autohide-active",!1),this.Ft&&(this.contextMenu.hide(),this.kq&&this.kq.hide()))}; g.H.Lv=function(K,W){var U=this.api.xx().getPlayerSize();U=new g.Bh(0,0,U.width,U.height);if(K||!YU(this.Fc)&&!this.FG()){if(this.api.V().ib||W)K=this.Hu()?this.VS:this.JY,U.top+=K,U.height-=K;this.ET&&(U.height-=dHC(this.ET))}return U}; g.H.vD=function(K){var W=this.api.getRootNode();K?W.parentElement?(W.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(W.parentElement.insertBefore(this.LY.element,W),W.parentElement.insertBefore(this.nY.element,W.nextSibling))):g.wG(Error("Player not in DOM.")):(W.setAttribute("aria-label","YouTube Video Player"),this.LY.detach(),this.nY.detach());this.IW();this.F5()}; g.H.Hu=function(){if(this.api.L("web_player_use_screen_width_for_big_mode")){var K;return this.api.xx().getPlayerSize().width>=((K=g.jV(this.api.V().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?K:2E3)}K=this.api.V();return this.api.isFullscreen()&&!K.Y||!1}; g.H.showControls=function(K){this.gJ=!K;this.zk()}; g.H.IW=function(){var K=this.Hu();this.tooltip.scale=K?1.5:1;this.contextMenu&&g.JM(this.contextMenu.element,"ytp-big-mode",K);this.zk();this.api.L("web_player_hide_overflow_button_if_empty_menu")||HIp(this);this.F5();var W=this.api.isEmbedsShortsMode();W&&K?(K=(this.api.xx().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Zd(this.Gz.element,"padding-left",K+"px"),g.Zd(this.Gz.element,"padding-right",K+"px")):W&&(g.Zd(this.Gz.element,"padding-left",""),g.Zd(this.Gz.element,"padding-right", ""));g.nE.prototype.IW.call(this)}; g.H.Ui=function(){if(kNC(this)&&!g.Gj(this.api))return!1;var K=this.api.getVideoData();return!g.HB(this.api.V())||this.api.getPresentingPlayerType()===2||!this.wj||((K=this.wj||K.wj)?(K=K.embedPreview)?(K=K.thumbnailPreviewRenderer,K=K.videoDetails&&g.P(K.videoDetails,gSY)||null):K=null:K=null,K&&K.collapsedRenderer&&K.expandedRenderer)?g.nE.prototype.Ui.call(this):!1}; g.H.F5=function(){g.nE.prototype.F5.call(this);this.api.logVisibility(this.title.element,!!this.AF);this.EQ&&this.EQ.My(!!this.AF);this.channelAvatar.My(!!this.AF);this.overflowButton&&this.overflowButton.My(this.je()&&!!this.AF);this.shareButton&&this.shareButton.My(!this.je()&&!!this.AF);this.hn&&this.hn.My(!this.je()&&!!this.AF);this.searchButton&&this.searchButton.My(!this.je()&&!!this.AF);this.copyLinkButton&&this.copyLinkButton.My(!this.je()&&!!this.AF);if(!this.AF){this.api.u0(this.Gz.element); for(var K=0;K5&&W.rk("glrs",{cmt:U});W.seekTo(0,{seekSource:58});W.rk("glrre",{cmt:U})}}; E5.prototype.QH=function(){this.j=null;g.p.prototype.QH.call(this)};g.V(g.K6,Eg);g.H=g.K6.prototype;g.H.isView=function(){return!0}; g.H.j3=function(){var K=this.mediaElement.getCurrentTime();if(K1;iO(K.Nb(),h-.01)&&!m&&($L(this,4),U.isActive=!1,U.ze=U.ze||U.isActive,(this.U===1?this.j:this.X).rk("sbh",{}),W.isActive=!0,W.ze=W.ze||W.isActive,this.U!==0&&(this.j.getVideoData().bx=!0));K=this.W.X;if(this.W.j.isActive&&K.isActive&&($L(this,5),this.U!==0)){K=this.X.E0();U=this.j.E0(); this.j.rk("sbs",{citag:U==null?void 0:U.itag,nitag:K==null?void 0:K.itag});this.X.rk("gitags",{pitag:U==null?void 0:U.itag,citag:K==null?void 0:K.itag});var S;(S=this.X)==null||S.qw()}}}; g.H.GX=function(){this.AR()&&this.Qv("player-reload-after-handoff")}; g.H.Qv=function(K,W){W=W===void 0?{}:W;if(!this.qs()&&this.status.status!==6){var U=this.status.status>=4&&K!=="player-reload-after-handoff";this.status={status:Infinity,error:K};if(this.j&&this.X){var h=this.X.getVideoData().clientPlaybackNonce;this.j.aR(new g.F3("dai.transitionfailure",Object.assign(W,{cpn:h,transitionTimeMs:this.Fm,msg:K})));this.j.Yg(U)}this.Jf.reject(K);this.dispose()}}; g.H.AR=function(){return this.status.status>=4&&this.status.status<6}; g.H.QH=function(){HXC(this);this.j.unsubscribe("newelementrequired",this.GX,this);if(this.N){var K=this.N.X;this.N.j.uG.unsubscribe("updateend",this.JE,this);K.uG.unsubscribe("updateend",this.JE,this)}g.p.prototype.QH.call(this)}; g.H.CB=function(K){g.M9(K,128)&&this.Qv("player-error-event")};g.V(A8,g.p);A8.prototype.clearQueue=function(K,W){K=K===void 0?!1:K;W=W===void 0?!1:W;this.W&&this.W.reject("Queue cleared");this.app.V().L("html5_gapless_fallback_on_qoe_restart_v2")||W&&this.X&&this.X.Yg(!1);Gv(this,K)}; A8.prototype.Hh=function(){return!this.j}; A8.prototype.AR=function(){var K;return((K=this.N)==null?void 0:K.AR())||!1}; A8.prototype.QH=function(){Gv(this);g.p.prototype.QH.call(this)};g.V(BoR,g.GP);g.H=BoR.prototype;g.H.getVisibilityState=function(K,W,U,h,m,S,f,G){return K?4:m&&WoL?7:$FC&&!(Fs()||document.hasFocus&&document.hasFocus())||Fs()?3:W?2:U?1:h?5:m&&!WoL?7:S?8:f?9:G?10:0}; g.H.wX=function(K){this.fullscreen!==K&&(this.fullscreen=K,this.mG())}; g.H.setMinimized=function(K){this.X!==K&&(this.X=K,this.mG())}; g.H.setInline=function(K){this.inline!==K&&(this.inline=K,this.mG())}; g.H.gr=function(K){this.pictureInPicture!==K&&(this.pictureInPicture=K,this.mG())}; g.H.setSqueezeback=function(K){this.N!==K&&(this.N=K,this.mG())}; g.H.E9=function(K){this.W!==K&&(this.W=K,this.mG())}; g.H.Dw=function(){return this.j}; g.H.MR=function(){return this.fullscreen!==0}; g.H.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.H.SY=function(){return this.fullscreen}; g.H.isMinimized=function(){return this.X}; g.H.isInline=function(){return this.inline}; g.H.isBackground=function(){return Fs()}; g.H.K_=function(){return this.pictureInPicture}; g.H.Dz=function(){return!1}; g.H.eT=function(){return this.N}; g.H.F8=function(){return this.W}; g.H.mG=function(){this.publish("visibilitychange");var K=this.getVisibilityState(this.Dw(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.K_(),this.Dz(),this.eT(),this.F8());K!==this.G&&this.publish("visibilitystatechange");this.G=K}; g.H.QH=function(){BPp(this.U);g.GP.prototype.QH.call(this)};g.V(g.S$,g.p);g.H=g.S$.prototype;g.H.QH=function(){this.videoData=this.playerState=null;g.p.prototype.QH.call(this)}; g.H.addCueRange=function(){}; g.H.Qd=function(){}; g.H.Vj=function(){}; g.H.Xi=function(){return!1}; g.H.Ah=function(){return!1}; g.H.UF=function(){}; g.H.nA=function(){}; g.H.nj=function(){return[]}; g.H.s4=function(){}; g.H.YO=function(){}; g.H.dQ=function(){return 1}; g.H.getAudioTrack=function(){return this.getVideoData().ZX}; g.H.v9=function(){return null}; g.H.getAvailableAudioTracks=function(){return[]}; g.H.DF=function(){return[]}; g.H.dP=function(){return[]}; g.H.fC=function(){return""}; g.H.E4=function(){return[]}; g.H.B9=function(){}; g.H.Ho=function(){return 0}; g.H.getCurrentTime=function(){return 0}; g.H.Jg=function(){}; g.H.E0=function(){}; g.H.P3=function(){return{}}; g.H.getDuration=function(){return 0}; g.H.FX=function(){return 0}; g.H.hv=function(){return 0}; g.H.iH=function(){return!1}; g.H.dX=function(){return 0}; g.H.V1=function(){return 0}; g.H.kV=f4(7);g.H.Da=function(){return 0}; g.H.q3=function(){return!1}; g.H.Id=function(){return 0}; g.H.lY=function(){return null}; g.H.TJ=function(){return null}; g.H.Cr=function(){return 0}; g.H.Ln=function(){return 0}; g.H.Os=function(){return g.r(function(K){g.q1(K)})}; g.H.IN=f4(15);g.H.getPlaybackQuality=function(){return"auto"}; g.H.getPlaybackRate=function(){return 1}; g.H.getPlayerState=function(){this.playerState||(this.playerState=new g.Kw);return this.playerState}; g.H.getPlayerType=function(){return 0}; g.H.getPlaylistSequenceForTime=function(){return null}; g.H.h3=function(){return function(){}}; g.H.tF=function(){return""}; g.H.getPreferredQuality=function(){return"unknown"}; g.H.Bz=function(){}; g.H.getProximaLatencyPreference=function(){return 0}; g.H.Tw=function(){return BE}; g.H.hW=function(){return null}; g.H.getStoryboardFormat=function(){return null}; g.H.getStreamTimeOffset=function(){return 0}; g.H.RN=function(){return 0}; g.H.A7=function(){return 0}; g.H.c9=function(){return{u1:[],bd:[],currentTime:0,pY:"",droppedVideoFrames:0,isGapless:!1,Hh:!0,tG:0,hH:0,Ub:0,DG:0,Hc:0,zN:[],Qo:[],bL:null,playerState:this.getPlayerState(),H5:null,fW:"",totalVideoFrames:0}}; g.H.getUserAudio51Preference=function(){return 0}; g.H.getUserPlaybackQualityPreference=function(){return""}; g.H.getVideoData=function(){this.videoData||(this.videoData=new g.GM(this.C),g.k(this,this.videoData));return this.videoData}; g.H.F7=function(){return null}; g.H.sO=function(){return null}; g.H.G7=function(){}; g.H.getVideoLoadedFraction=function(){return 0}; g.H.EO=function(){}; g.H.handleError=function(){}; g.H.Yg=function(){}; g.H.zw=function(){}; g.H.f7=f4(40);g.H.kF=function(){return!1}; g.H.hasSupportedAudio51Tracks=function(){return!1}; g.H.isAd=function(){return!1}; g.H.B0=function(){return!1}; g.H.Dw=function(){return!1}; g.H.isAtLiveHead=function(){return!1}; g.H.Fi=function(){return!0}; g.H.isGapless=function(){return!1}; g.H.isHdr=function(){return!1}; g.H.jG=function(){return!1}; g.H.cW=function(){return!1}; g.H.LU=function(){return!1}; g.H.isProximaLatencyEligible=function(){return!1}; g.H.Hh=function(){return!0}; g.H.k0=function(){return!1}; g.H.gG=function(){return!1}; g.H.bN=function(){}; g.H.WD=function(){}; g.H.qw=function(){}; g.H.xn=function(){}; g.H.NS=function(){}; g.H.BC=function(){}; g.H.Jm=function(){}; g.H.va=f4(50);g.H.UP=f4(21);g.H.fh=function(){}; g.H.pauseVideo=function(){}; g.H.prefetchKeyPlay=function(){}; g.H.playVideo=function(){return g.r(function(K){return K.return()})}; g.H.T4=function(){}; g.H.fN=f4(27);g.H.xL=f4(33);g.H.gw=function(){}; g.H.rk=function(){}; g.H.Oj=function(){}; g.H.Ku=function(){}; g.H.Fa=function(){}; g.H.aR=function(){}; g.H.Ss=function(){}; g.H.A$=function(){}; g.H.pG=function(){}; g.H.A2=function(){}; g.H.Bj=function(){}; g.H.rX=function(){}; g.H.removeCueRange=function(){}; g.H.iF=function(){}; g.H.L5=function(){return[]}; g.H.Lw=function(){}; g.H.q2=function(){}; g.H.ac=function(){}; g.H.Px=function(){}; g.H.FM=function(){}; g.H.fq=function(){}; g.H.hZ=function(){}; g.H.seekTo=function(){}; g.H.sendAbandonmentPing=function(){}; g.H.sendVideoStatsEngageEvent=function(){}; g.H.Cu=function(){}; g.H.setLoop=function(){}; g.H.bV=function(){}; g.H.setMediaElement=function(){}; g.H.Sl=function(){}; g.H.setPlaybackRate=function(){}; g.H.jB=function(){}; g.H.ir=function(){}; g.H.CN=function(){}; g.H.setProximaLatencyPreference=function(){}; g.H.VY=function(){}; g.H.wz=function(){}; g.H.k_=function(){}; g.H.Kx=function(){}; g.H.ya=function(){}; g.H.setUserAudio51Preference=function(){}; g.H.A_=function(){}; g.H.vu=function(){return!1}; g.H.ih=function(){}; g.H.VC=function(){return!1}; g.H.ZM=function(){}; g.H.xl=function(){}; g.H.lR=function(){}; g.H.stopVideo=function(){}; g.H.subscribe=function(){return NaN}; g.H.EX=function(){}; g.H.togglePictureInPicture=function(){}; g.H.d2=function(){return 0}; g.H.NF=function(){}; g.H.unsubscribe=function(){return!1}; g.H.L4=function(){}; g.H.La=function(){return!1}; g.H.Kw=function(){}; g.H.sN=function(){}; g.H.yV=function(){};g.V(yx,g.p);g.H=yx.prototype;g.H.get=function(K){Mv(this);var W=this.data.find(function(U){return U.key===K}); return W?W.value:null}; g.H.set=function(K,W,U){this.remove(K,!0);Mv(this);K={key:K,value:W,expire:Infinity};U&&isFinite(U)&&(U*=1E3,K.expire=(0,g.AI)()+U);for(this.data.push(K);this.data.length>this.N;)(U=this.data.shift())&&RF(this,U,!0);F_(this)}; g.H.remove=function(K,W){W=W===void 0?!1:W;var U=this.data.find(function(h){return h.key===K}); U&&(RF(this,U,W),g.Br(this.data,function(h){return h.key===K}),F_(this))}; g.H.removeAll=function(K){if(K=K===void 0?!1:K)for(var W=g.z(this.data),U=W.next();!U.done;U=W.next())RF(this,U.value,K);this.data=[];F_(this)}; g.H.QH=function(){var K=this;g.p.prototype.QH.call(this);this.data.forEach(function(W){RF(K,W,!0)}); this.data=[]};g.V(g.Nz,g.p);g.H=g.Nz.prototype;g.H.QH=function(){for(var K=g.z(Object.values(this.W)),W=K.next();!W.done;W=K.next())W.value.dispose();aKp(this);this.j.dispose();g.p.prototype.QH.call(this)}; g.H.t9=function(K){return K?K===1?this.J:this.N.getVideoData().enableServerStitchedDai&&K===2?this.N.getVideoData().qJ?this.W[2]||this.N:this.N:this.W[K]||null:this.N}; g.H.Yv=function(K){var W=K.cpn;K=K.playerType;if(W)a:{K=g.z(Object.values(this.W));for(var U=K.next();!U.done;U=K.next())if(U=U.value,U.fC()===W){W=U;break a}W=this.U[W]||null}else W=K?this.t9(K):this.N;return W}; g.H.rH=function(){return this.J}; g.H.pT=function(K){this.J=K}; g.H.E5=function(){return this.N}; g.H.z4=function(K){this.N=K;Og(this)}; g.H.vJ=f4(46);g.H.Xb=f4(48);g.V(CQ,g.xW);g.H=CQ.prototype;g.H.jo=function(){}; g.H.fC=function(){return this.videoData.clientPlaybackNonce}; g.H.getVideoData=function(){if(g.xW.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){var K=I5C(this.S_,g.xW.prototype.getCurrentTime.call(this))||g.xW.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==K.clientPlaybackNonce&&uZe(this.W,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:K.clientPlaybackNonce});return this.videoData}return I5C(this.S_,g.xW.prototype.getCurrentTime.call(this))||g.xW.prototype.getVideoData.call(this)}; g.H.getCurrentTime=function(K){var W=g.xW.prototype.getCurrentTime.call(this);if(g.xW.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){this.j===0?K||(W-=this.startTimeSecs,g.xW.prototype.getVideoData.call(this).L("html5_ssdai_log_missed_ad_impressions")&&this.X&&this.N&&W>1&&this.rk("sdai-admiss",{cpn:this.fC(),ct:W.toFixed(3),pfs:this.N}),this.X=!1):K&&(W=this.j);var U=K?this.S_.Bx||g.xW.prototype.getCurrentTime.call(this):$Qs(this.S_,g.xW.prototype.getCurrentTime.call(this)); W!==U&&uZe(this.W,"time"+(K!=null?K:!1),{time:W,ref:U,ct:K!=null?K:!1})}else W=K?this.S_.Bx||W:$Qs(this.S_,W);return W}; g.H.getDuration=function(){if(g.xW.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){var K=nPp(this.S_,g.xW.prototype.getCurrentTime.call(this));this.duration!==K&&uZe(this.W,"duration",{dur:this.duration,ref:K});return this.duration}return nPp(this.S_,g.xW.prototype.getCurrentTime.call(this))}; g.H.BY=function(K){this.duration=K};g.$g.prototype.fp=function(K,W){if(W===1)return this.j.get(K);if(W===2)return this.N.get(K);if(W===3)return this.X.get(K)}; g.$g.prototype.mU=f4(58);g.$g.prototype.gI=function(K,W,U,h){U={dG:h,lF:U};W?this.N.set(K,U):this.j.set(K,U)}; g.$g.prototype.clearAll=function(){this.j.clear();this.N.clear();this.X.clear()}; xq.prototype.clear=function(){this.X=[];this.N.clear();this.W.clear();this.j.clear()}; xq.prototype.Yv=function(K){var W=K.cpn;K=K.Ze;if(W&&(W=this.N.get(W))||K&&(W=(this.U?this.N:this.W).get(K)))return W}; g.V(g.O7,g.p);g.H=g.O7.prototype;g.H.onCueRangeEnter=function(K){var W=K.getId();this.bZ({oncueEnter:1,cpn:W,start:K.start,end:K.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ho()||0).toFixed(3)});var U=this.j.Yv({cpn:W});this.bZ({enterAdCueRange:1});var h=this.Rw||this.H0().cpn,m;h=(m=this.j.Yv({cpn:h}))!=null?m:this.H0();U&&(m=this.playback.getCurrentTime(),U.startTimeSecs=K.start/1E3,U={VL:h,SF:U,AP:m},eS(this,W,K.start/1E3,m),Qy(this,U));this.vp=!1}; g.H.Uw=function(K,W,U){if(K&&W)if((this.app.FK().U[K]||null)===null){var h;this.bZ({nocpn:K,active:(h=this.app.FK().X)==null?void 0:h.fC()})}else{this.vp=U!=null?U:!1;var m;U=((m=this.app.FK().X)==null?void 0:m.fC())||this.playback.fC();var S;m=(S=this.j.Yv({cpn:U}))!=null?S:this.H0();var f;S=(f=this.j.Yv({cpn:K}))!=null?f:this.H0();S.startTimeSecs=W;S.playerType===2&&(S.bb=S.bb!=null?Math.min(S.bb,W):W);f=this.playback.getCurrentTime();eS(this,U,W,f);Qy(this,{VL:m,SF:S,AP:f});if(this.playback.getVideoData().Sj()&& K===this.playback.fC())if(W=this.q5.get(U)){var G;K=g.z((G=this.Le.get(W))!=null?G:[]);for(G=K.next();!G.done;G=K.next()){G=G.value;f=this.app.FK();if(U=f.U[G])f.X===U&&(f.X=null),f.G===U&&(f.G=null),delete f.U[G];this.DA.delete(G);this.q5.delete(G)}this.Le.delete(W)}else this.bZ({no_abid:K})}}; g.H.FO=function(K,W){if(K===this.playback.fC())Yg(this.app.FK(),this.playback,!1);else{var U=this.DA.get(K);U?(K=!this.vp,U.j=0,U.startTimeSecs=W,U.N=K===void 0?!0:K,U.X=!0,Yg(this.app.FK(),U,!0)):this.bZ({nop_s:K})}}; g.H.onCueRangeExit=function(K){for(var W=this.playback.getCurrentTime()*1E3,U=K.getId(),h=g.z(this.X.values()),m=h.next();!m.done;m=h.next())if(m=m.value,m.getId()!==U&&W>=m.start&&W<=m.end)return;if(U=this.j.Yv({cpn:U}))W=this.playback.getCurrentTime(),h=this.H0(),h.startTimeSecs=K.end/1E3,U={VL:U,SF:h,AP:W},eS(this,this.playback.fC(),K.end/1E3,W),Qy(this,U)}; g.H.H0=function(){return{cpn:this.playback.fC(),durationMs:0,Ua:0,playerType:1,W2:0,videoData:this.playback.getVideoData(),errorCount:0,zS:""}}; g.H.seekTo=function(K,W,U,h){K=K===void 0?0:K;W=W===void 0?{}:W;U=U===void 0?!1:U;h=h===void 0?null:h;wX(this,this.Rw);if(this.playback.getVideoData().Sj()&&K<=this.Bx)this.playback.pauseVideo(),this.Bx=0,h3C(this,K);else if(this.vp=this.Ms=!0,U)gfs(this,K,W);else{U=this.app.E5();var m=U===this.eV?this.M5:null;vQ(this,!1);this.DO=K;this.W3=W;h!=null&&this.Qg.start(h);U&&(this.M5=m||U.getPlayerState(),U.lR(W),this.eV=U)}}; g.H.QH=function(){vQ(this,!1);TT(this);Hk2(this);g.p.prototype.QH.call(this)}; g.H.vZ=function(K){this.Ez=K;this.bZ({swebm:K})}; g.H.w_=function(K,W,U){if(U&&W){var h=this.U.get(K);if(h){h.locations||(h.locations=new Map);var m=Number(W.split(";")[0]);U=new g.va(U);this.bZ({hdlredir:1,itag:W,seg:K,hostport:eA(10,U)});h.locations.set(m,U)}}}; g.H.U8=function(K,W,U,h,m,S){var f=h===3,G=f82(this,K,W,h,U,S);if(!G){rP(this,W,f);var I=g.IN(this,W)?"undec":"ncp";this.bZ({gvprp:I,mt:K,seg:W,tt:h,itag:U,ce:S});return null}f||this.U.set(W,G);S=G.zS;var d;h=((d=this.fp(W-1,h,m))==null?void 0:d.dG)||"";h===""&&this.bZ({eds:1});d=XlY(this,G.ssdaiAdsConfig);m=this.playback.getVideoData();var J;f=((J=m.X)==null?void 0:J.containerType)||0;J=m.fK[f];G=G.jr&&W>=G.jr?G.jr:void 0;J={ob:S?ZPC(this,S):[],adsConfig:d,dG:h,Pe:G,YJ:eh(J.split(";")[0]),vK:J.split(";")[1]|| ""};G={Qn:J};this.JK&&(K={gvprpro:"v",sq:W,mt:K.toFixed(3),itag:U,acpns:((I=J.ob)==null?void 0:I.join("_"))||"none",abid:S},this.bZ(K));return G}; g.H.Bs=function(K){a:{if(!this.Xm){var W=kT(this,K);if(!(this.playback.getVideoData().Sj()&&(W==null?0:W.Q_)))break a}W=void 0}var U=W;if(!U)return this.bZ({gvprp:"ncp",mt:K}),null;W=U.zS;var h=XlY(this,U.ssdaiAdsConfig);U=U.jr&&U.PZ&&K>=U.PZ?U.jr:void 0;var m=this.playback.getVideoData(),S,f=((S=m.X)==null?void 0:S.containerType)||0;S=m.fK[f];S={ob:W?ZPC(this,W):[],adsConfig:h,Pe:U,YJ:eh(S.split(";")[0]),vK:S.split(";")[1]||""};var G;K={gvprpro:"v",mt:K.toFixed(3),acpns:((G=S.ob)==null?void 0:G.join("_"))|| "none",abid:W};this.bZ(K);return S}; g.H.VM=function(K,W,U,h,m,S){var f=Number(U.split(";")[0]),G=h===3;K=f82(this,K,W,h,U,S);this.bZ({gdu:1,seg:W,itag:f,pb:""+!!K});if(!K)return rP(this,W,G),null;K.locations||(K.locations=new Map);if(!K.locations.has(f)){var I,d;S=(I=K.videoData.getPlayerResponse())==null?void 0:(d=I.streamingData)==null?void 0:d.adaptiveFormats;if(!S)return this.bZ({gdu:"noadpfmts",seg:W,itag:f}),rP(this,W,G),null;I=S.find(function(E){return E.itag===f}); if(!I||!I.url){var J=K.videoData.videoId;K=[];var e=g.z(S);for(h=e.next();!h.done;h=e.next())K.push(h.value.itag);this.bZ({gdu:"nofmt",seg:W,vid:J,itag:f,fullitag:U,itags:K.join(",")});rP(this,W,G);return null}K.locations.set(f,new g.va(I.url,!0))}S=K.locations.get(f);if(!S)return this.bZ({gdu:"nourl",seg:W,itag:f}),rP(this,W,G),null;S=new XJ(S);this.Ez&&(S.get("dvc")?this.bZ({dvc:S.get("dvc")||""}):S.set("dvc","webm"));(h=(e=this.fp(W-1,h,m))==null?void 0:e.dG)&&S.set("daistate",h);K.jr&&W>=K.jr&& S.set("skipsq",""+K.jr);(e=this.playback.getVideoData().clientPlaybackNonce)&&S.set("cpn",e);e=[];K.zS&&(e=ZPC(this,K.zS),e.length>0&&S.set("acpns",e.join(",")));G||this.U.set(W,K);G=null;G=S.get("aids");h=S.ej();(h==null?void 0:h.length)>2048&&this.bZ({urltoolong:1,sq:W,itag:f,len:h.length});this.JK&&(h&&(S=K.cpn,m=K.zS,N32(this,S,m),m&&!this.Ea.has(m)&&(S=fZe(this,S,m),I=oPC(this,m),this.bZ({iofa:S}),this.bZ({noawnzd:I-S}),this.bZ({acpns:e.join("."),aids:(J=G)==null?void 0:J.replace(/,/g,".")}), this.Ea.add(m))),this.bZ({gdu:"v",seg:W,itag:U,ast:K.Ua.toFixed(3),alen:K.durationMs.toFixed(3),acpn:K.cpn,avid:K.videoData.videoId}));return h}; g.H.SI=function(K,W,U){U=U===void 0?!1:U;var h=dM(this,K,W);if(h){this.QX&&(this.hK=h);var m=void 0,S=h.zS;if(S){this.bZ({skipadonsq:W,sts:U,abid:S,acpn:h.cpn,avid:h.videoData.videoId});U=this.j.j.get(S);if(!U)return;U=g.z(U);for(S=U.next();!S.done;S=U.next())S=S.value,S.jr=W,S.PZ=K,S.Ua>h.Ua&&(m=S)}wX(this,this.Rw);this.N=h.cpn;y_$(this);this.api.L("html5_ssdai_enable_media_end_cue_range")&&this.playback.NF(this.N);K=this.playback.getCurrentTime();OYC(this,h,m,K,K,!1,!0);xBL(this)}}; g.H.Up=function(){for(var K=g.z(this.j.X),W=K.next();!W.done;W=K.next())W=W.value,W.jr=NaN,W.PZ=NaN;y_$(this);this.bZ({rsac:"resetSkipAd",sac:this.N});this.gk.delete(this.N);this.N="";this.QX&&(this.hK=void 0)}; g.H.fp=function(K,W,U){return this.uX.fp(K,W,U)}; g.H.mU=f4(57); g.H.gI=function(K,W,U,h,m,S,f,G,I){h.length>0&&this.bZ({onssinfo:1,sq:K,start:W.toFixed(3),cpns:h.join(","),ds:m.join(","),isVideo:f?1:0});if(this.QX&&this.hK&&this.hK.jr&&h.length>0){U=g.z(h);for(var d=U.next();!d.done;d=U.next())if(d=d.value,d===this.hK.cpn){this.Ev!==d&&(this.bZ({skiperror:1,sq:K,acpn:this.hK.cpn,skipsq:this.hK.jr||0}),this.Ev=d);break}}I&&this.uX.gI(K,f,G,I);if(f){if(h.length&&m.length)for(this.gk.has(h[0])&&this.bZ({skipfail:1,sq:K,acpn:h[0]}),K=W+this.RN(),f=0;f0&&(this.aU=0,this.Rw="",this.C.L("html5_huli_ssdai_use_playback_state")&&this.FO(this.playback.fC(),0),this.api.publish("serverstitchedvideochange"));this.playback.nA(U,h);return!0}; g.H.vW=function(){this.bZ({rstdaist:1});this.uX.clearAll()}; g.H.Z1=function(K){var W;if(K!==((W=this.G)==null?void 0:W.identifier))this.bZ({ignorenoad:K});else{this.bG.add(K);this.bZ({noadrcv:K});var U;((U=this.G)==null?void 0:U.identifier)===K&&i4(this)}}; g.H.Wg=function(K){if(this.Xm)return this.bZ({dai_disabled:K.event}),!1;if(this.playback.getVideoData().Sj()&&(K.event==="continue"||K.event==="stop"))return!1;var W=Mr(this.api.h7());if(W=W?W.Wg(K):!1)this.W={Nf:K.identifier,mQ:K.startSecs};else if(this.W&&this.W.Nf===K.identifier&&K.startSecs>this.W.mQ+1){this.bZ({cueStChg:K.identifier,oldSt:this.W.mQ.toFixed(3),newSt:K.startSecs.toFixed(3),abid:this.W.LF});if(this.W.LF){var U=K.startSecs-this.W.mQ,h=this.j.j.get(this.W.LF);if(h){h=g.z(h);for(var m= h.next();!m.done;m=h.next())m=m.value,m.Ua>=0&&(m.Ua+=U*1E3,this.C.L("html5_ssdai_update_timeline_on_start_time_change")&&(m.W2+=U*1E3),this.bZ({newApEt:m.Ua,newApPrt:m.W2,acpn:m.cpn}))}}this.W.mQ=K.startSecs}W?this.tK.add(K.identifier):this.tK.has(K.identifier)&&this.tK.delete(K.identifier);return W}; g.H.Ei=function(K){var W="";K?K.event==="unknown"?W="unknown":this.tK.has(K.identifier)?this.W&&this.W.Nf===K.identifier?this.W.Nf===K.identifier?W="pending":Ns(this.Ik,function(U){return U.identifier===K.identifier})||(W="noAdsAdded"):W="wrongAdBreakInfo":W="unscheduled":W="noCuepoint"; return W}; g.H.qf=function(K){return this.Xm?!1:!!kT(this,K)}; g.H.oY=function(K){var W=this;if(this.C.L("html5_lifa_ignore_multiple_skips")&&this.Ns)return this.bZ({ufs_ad:this.N,ufs_cur:this.Rw,ufs_cont:this.H0().cpn}),!1;wX(this,this.Rw);this.playback.pauseVideo();var U=this.playback.getCurrentTime(),h=this.j.Yv({cpn:this.Rw});if(!h)return this.bZ({skipFail:U}),!1;this.N=this.Rw;this.Ms=!1;this.api.L("html5_ssdai_enable_media_end_cue_range")&&this.playback.NF(this.N);this.Bf(h.zS);MN_(this,h,this.H0(),K);h3C(this,U,{seekSource:89,JS:"lifa_skip"});this.Ns|| (this.Ns=this.events.S(this.api,"progresssync",function(){NT(W.api.Wh(),(0,g.AI)(),"ad_to_video");W.Ns&&(W.events.GK(W.Ns),W.Ns=null)})); return!0}; g.H.Bf=function(K){if(this.playback.getVideoData().Sj()){var W=this.j.j.get(K);if(W){W=g.z(W);for(var U=W.next();!U.done;U=W.next()){U=U.value;var h=this.X.get(U.cpn);this.X.delete(U.cpn);h&&this.playback.removeCueRange(h);rvL(this.j,U)}this.U.clear();W=this.j;var m;U=(m=W.j.get(K))!=null?m:[];m=g.z(U);for(U=m.next();!U.done;U=m.next())rvL(W,U.value);W.j.delete(K);(K=this.Cg.get(K))&&this.ZX&&this.playback.Px(K)}}}; g.H.bZ=function(K,W){((W===void 0?0:W)||this.JK)&&this.playback.rk("sdai",K)}; var Lk2=0;g.V(sXY,g.p);g.H=sXY.prototype;g.H.onCueRangeEnter=function(K){if(this.j===this.app.E5()){var W=this.U.get(K);W?GDe(this,W.target,W.Fm,K):this.aR("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:K.toString()})}else if(W=this.X.find(function(m){return m.kX.Vv===K})){var U=W.kX,h=U.target; U=U.Fm;h?GDe(this,h,U,K):oUC(this,W.W2,U,K)}}; g.H.onQueuedVideoLoaded=function(){var K=this.Y;xB(this);if(K){if(!kw(this,K)){var W=this.app.E5();this.aR("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:W==null?void 0:W.getVideoData().clientPlaybackNonce,ccpn:""+K.playerVars.cpn})}this.app.E5().addCueRange(K.kX.Vv)}}; g.H.seekTo=function(K,W,U,h){K=K===void 0?0:K;W=W===void 0?{}:W;h=h===void 0?null:h;if(U===void 0?0:U)mjR(this,K,W);else{U=this.app.E5()||null;var m=U===this.W?this.G:null;qK(this,!1);this.Ms=K;this.jV=W;h!=null&&this.J.start(h);U&&(this.G=m||U.getPlayerState(),U.lR(),this.W=U)}}; g.H.dg=function(K){g.M9(K,128)&&Eo_(this)}; g.H.isManifestless=function(){return tc(this.j.getVideoData())}; g.H.QH=function(){qK(this,!1);Vv(this);g.p.prototype.QH.call(this)}; g.H.aR=function(K,W){this.j.aR(new g.F3(K,W))}; var jn$=0;var PD_="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.V(ME,g.p);ME.prototype.CA=function(K){if(K)return this.X.get(K)}; ME.prototype.QH=function(){this.j.removeAll();this.X.removeAll();g.p.prototype.QH.call(this)};g.lPF=Tv(function(){var K=window.AudioContext||window.webkitAudioContext;try{return new K}catch(W){return W.name}});g.V(Tn,g.y);g.H=Tn.prototype;g.H.ut=function(){g.oh(this.element,g.Xl.apply(0,arguments))}; g.H.q2=function(){this.iY&&(this.iY.removeEventListener("focus",this.VU),g.f7(this.iY),this.iY=null)}; g.H.Dv=function(){this.qs();var K=this.app.V();K.MU||this.ut("tag-pool-enabled");K.G&&this.ut(g.EW.HOUSE_BRAND);K.playerStyle==="gvn"&&(this.ut("ytp-gvn"),this.element.style.backgroundColor="transparent");K.q5&&(this.lC=g.BV("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)}; g.H.r3=function(K){g.Ln(this.app.V());this.YZ=!K;T3(this)}; g.H.resize=function(){if(this.iY){var K=this.Us();if(!K.isEmpty()){this.app.Yx.isFullscreen()&&zl()&&this.Rz.start();var W=!g.em(K,this.XG.getSize()),U=D2s(this);W&&(this.XG.width=K.width,this.XG.height=K.height);K=this.app.V();(U||W||this.u4||K.q5)&&this.app.Yx.publish("resize",this.getPlayerSize())}}}; g.H.sj=function(K,W){this.updateVideoData(W)}; g.H.updateVideoData=function(K){if(this.iY){var W=this.app.V();iy&&(this.iY.setAttribute("x-webkit-airplay","allow"),K.title?this.iY.setAttribute("title",K.title):this.iY.removeAttribute("title"));this.iY.setAttribute("controlslist","nodownload");W.El&&K.videoId&&(this.iY.poster=K.S7("default.jpg"))}W=g.o8(K,"yt:bgcolor");this.yk.style.backgroundColor=W?W:"";this.WX=MS(g.o8(K,"yt:stretch"));this.Ts=MS(g.o8(K,"yt:crop"),!0);g.JM(this.element,"ytp-dni",K.Mk);this.resize()}; g.H.setGlobalCrop=function(K){this.oO=MS(K,!0);this.resize()}; g.H.setCenterCrop=function(K){this.d0=K;this.resize()}; g.H.wX=function(){}; g.H.getPlayerSize=function(){var K=this.app.V(),W=this.app.Yx.isFullscreen(),U=K.externalFullscreen&&g.HB(K);if(W&&zl()&&!U)return new g.rt(window.outerWidth,window.outerHeight);U=!isNaN(this.HQ.width)&&!isNaN(this.HQ.height);var h=this.app.V().L("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.V().L("web_watch_enable_fs_squeezeback_panels");if(W&&!U&&h)return new g.rt(this.element.clientWidth,this.element.clientHeight);if(W||K.pO){if(window.matchMedia){K="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Pi&&this.Pi.media===K||(this.Pi=window.matchMedia(K));var m=this.Pi&&this.Pi.matches}if(m)return new g.rt(window.innerWidth,window.innerHeight)}else if(U)return this.HQ.clone();return new g.rt(this.element.clientWidth,this.element.clientHeight)}; g.H.Us=function(){var K=this.app.V().L("enable_desktop_player_underlay"),W=this.getPlayerSize(),U=g.jV(this.app.V().experiments,"player_underlay_min_player_width");return K&&this.YC&&W.width>U?(K=g.jV(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.rt(Math.min(W.height*this.getVideoAspectRatio(),W.width*K),Math.min(W.height,W.width*K/this.getVideoAspectRatio()))):W}; g.H.getVideoAspectRatio=function(){return isNaN(this.WX)?JRz(this):this.WX}; g.H.getVideoContentRect=function(K){var W=this.Us();K=yiR(this,W,this.getVideoAspectRatio(),K);return new g.Bh((W.width-K.width)/2,(W.height-K.height)/2,K.width,K.height)}; g.H.Yo=function(K){this.YC=K;this.resize()}; g.H.zx=function(){return this.h$}; g.H.onMutedAutoplayChange=function(){T3(this)}; g.H.setInternalSize=function(K){g.em(this.HQ,K)||(this.HQ=K,this.resize())}; g.H.QH=function(){this.lC&&g.Df(this.lC);this.q2();g.y.prototype.QH.call(this)};g.H=E2p.prototype;g.H.click=function(K,W){this.elements.has(K);this.j.has(K);var U=g.z0();U&&K.visualElement&&g.fU(U,K.visualElement,W)}; g.H.createClientVe=function(K,W,U,h){var m=this;h=h===void 0?!1:h;this.elements.has(K);this.elements.add(K);U=WdF(U);K.visualElement=U;var S=g.z0(),f=g.ND();S&&f&&(g.hc("combine_ve_grafts")?Pg(lW(),U,f):g.kQ(g.mD)(void 0,S,f,U));W.addOnDisposeCallback(function(){m.elements.has(K)&&m.destroyVe(K)}); h&&this.X.add(K)}; g.H.createServerVe=function(K,W,U){var h=this;U=U===void 0?!1:U;this.elements.has(K);this.elements.add(K);W.addOnDisposeCallback(function(){h.destroyVe(K)}); U&&this.X.add(K)}; g.H.destroyVe=function(K){this.elements.has(K);this.elements.delete(K);this.N.delete(K);this.j.delete(K);this.X.delete(K)}; g.H.w0=function(K,W){this.clientPlaybackNonce!==W&&(this.clientPlaybackNonce=W,Ie(lW(),K),rPL(this))}; g.H.setTrackingParams=function(K,W){this.elements.has(K);W&&(K.visualElement=g.qG(W))}; g.H.J7=function(K,W,U){this.elements.has(K);W?this.j.add(K):this.j.delete(K);var h=g.z0(),m=K.visualElement;this.X.has(K)?h&&m&&(W?g.k9(h,[m]):g.xV(h,[m])):W&&!this.N.has(K)&&(h&&m&&g.MD(h,m,void 0,U),this.N.add(K))}; g.H.hasVe=function(K){return this.elements.has(K)};g.V(g.ye,g.p);g.ye.create=function(K,W,U,h){try{var m=typeof K==="string"?K:"player"+g.NK(K),S=kN[m];if(S){try{S.dispose()}catch(G){g.wG(G)}kN[m]=null}var f=new g.ye(K,W,U,h);f.addOnDisposeCallback(function(){kN[m]=null;f.dT&&f.dT()}); return kN[m]=f}catch(G){throw g.wG(G),(G&&G instanceof Error?G:Error(String(G))).stack;}}; g.H=g.ye.prototype;g.H.dj=function(){return this.visibility}; g.H.pT=function(K){var W=this.rH();if(K!==W){K.getVideoData().autonavState=W.getVideoData().autonavState;W.L4(this.aB,this);var U=W.getPlaybackRate();W.dispose();this.gH.pT(K);K.setPlaybackRate(U);K.EX(this.aB,this);XY(this)}}; g.H.Tz=function(){this.nR||(this.nR=g.FF(Mo(),EyC()));return this.nR}; g.H.q2=function(K){if(this.mediaElement){this.Og&&(this.events.GK(this.Og),this.Og=null);g.Qa(this.Hx);this.E5().q2(!0,!1,K);this.template.q2();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.EW()}catch(W){g.eI(W)}this.mediaElement=null}}; g.H.z4=function(K,W,U){if(K!==this.E5()){var h=null;if(U===void 0||!U){U=this.E5();h=U.getPlayerState();QM(this.f5,3);Gw(this,"cuerangesremoved",U.E4());this.Si&&!K.isGapless()&&U.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();U=K.vu()&&U.vu();this.aW.O2("iv_s");U=U===void 0?!0:U;var m;if(m=this.wv){m=this.wv;var S=this.mediaElement;m=!!S&&S===m.mediaElement}m&&(this.q2(),aq(this));m=this.E5();m.q2(!U);m.L4(this.zC,this);m.getPlayerType()!==1&&m.dispose();U=this.gH;U.N=U.j;Og(U)}K.getPlayerType()=== 1&&this.pT(K);U=K.getPlayerType();m=this.gH.W[U]||null;K!==this.rH()&&K!==m&&(m==null||m.dispose(),this.gH.W[U]=K);this.gH.z4(K);this.mediaElement&&K.setMediaElement(this.mediaElement);K.EX(this.zC,this);K.gG()?K$C(this,"setPresenting",!1):(this.sj("newdata",K,K.getVideoData()),h&&!g.GY(h,K.getPlayerState())&&this.Vo(new g.e0(K.getPlayerState(),h)),W=W&&K.getPlayerType()===1,K.cW()&&!W&&this.sj("dataloaded",K,K.getVideoData()),(W=(W=K.getVideoData().X)&&W.video)&&this.Yx.Bd("onPlaybackQualityChange", W.quality),Gw(this,"cuerangesadded",K.E4()),W=K.getPlayerState(),g.C(W,2)?ks_(this):g.C(W,8)?K.playVideo():K.jG()&&K.pauseVideo(),W=this.rH(),K.getPlayerType()===2&&(K.getVideoData().ix=W.getVideoData().clientPlaybackNonce),K.getPlayerType()!==2||this.Wo()||(K=K.getVideoData(),W.T4(K.clientPlaybackNonce,K.Ez||"",K.breakType||0,K.lj,K.videoId||"")))}}; g.H.gy=function(){this.rH()!==this.E5()&&this.z4(this.rH())}; g.H.FK=function(){return this.gH}; g.H.Yv=function(K){return this.gH.Yv(K)}; g.H.t9=function(K){return this.gH.t9(K)}; g.H.rH=function(){return this.gH.rH()}; g.H.E5=function(){return this.gH.E5()}; g.H.fV=f4(44);g.H.DyK=function(){rA(this)||this.ZC(5)}; g.H.PGX=function(){if(!rA(this)){gZ(this);var K=this.E5(),W=K.getPlayerState();K.jG()?this.pauseVideo():W.isOrWillBePlaying()&&this.playVideo()}}; g.H.canPlayType=function(K){return AT(K)}; g.H.V=function(){return this.C}; g.H.getVideoData=function(){return this.E5().getVideoData()}; g.H.cQ=f4(11);g.H.yX=function(){return this.rH().getVideoData()}; g.H.getVideoLoadedFraction=function(K){return(K=g.yc(this,{playerType:K}))?K.getVideoLoadedFraction():this.gH.j.getVideoLoadedFraction()}; g.H.xx=function(){return this.template}; g.H.h7=function(){return this.f5}; g.H.Wh=function(){return this.aW}; g.H.Ji=function(K,W,U){(W=g.yc(this,{playerType:W===void 0?1:W}))&&W.Cu(K,void 0,U)}; g.H.z_=function(){var K=this.f5.z_();this.Yx.publish("videoStatsPingCreated",K);return K}; g.H.getVolume=function(){return Math.round(this.Yx.getVolume())}; g.H.isMuted=function(){return this.Yx.isMuted()}; g.H.Ag=function(){if(this.rH()===this.E5()&&this.Uz)return this.Uz.postId}; g.H.puH=function(){var K=this;this.L("use_rta_for_player")||(g.PJ(this.C)?g.UY(this.C,g.mp(this.getVideoData())).then(function(W){U5(Mo(),W);TcF(K.getVideoData(),K.C,K.Tz())}):TcF(this.getVideoData(),this.C,this.Tz()))}; g.H.m0=function(K){this.Yx.publish("poTokenVideoBindingChange",K)}; g.H.WV=function(K){this.Yx.publish("d6de4videobindingchange",K)}; g.H.kJ=function(){this.n3&&this.n3.kJ()}; g.H.tA=function(K){this.n3=K}; g.H.o7=function(K){if(K===1){this.aW.tick("vr");var W=this.E5();W.Vj();UFL(this.aW,W.getVideoData(),ix$(this));gN(this.f5)}W=this.C;if(f9(W)&&W.J||g.r8(W)){var U;(((U=this.E5().getVideoData())==null?0:U.enableServerStitchedDai)||!this.Wo())&&this.Yx.Bd("onAdStateChange",K)}}; g.H.setLoopVideo=function(K){var W=this.E5();W===this.rH()&&W.q3()!==K&&(W.setLoop(K),this.Yx.Fx("onLoopChange",K))}; g.H.getLoopVideo=function(){return this.E5().q3()}; g.H.setLoopRange=function(K){var W=!1;!!this.Uz!==!!K?W=!0:this.Uz&&K&&(W=this.Uz.startTimeMs!==K.startTimeMs||this.Uz.endTimeMs!==K.endTimeMs||this.Uz.postId!==K.postId||this.Uz.type!==K.type);if(W){W=this.E5();IG(W.getVideoData())&&W.rk("slr",{et:(K==null?void 0:K.endTimeMs)||-1});W=this.rH();W.L5("applooprange");if(K){var U=new g.g0(K.startTimeMs,K.endTimeMs,{id:"looprange",namespace:"applooprange"});W.addCueRange(U)}else{this.yX().clipConfig=void 0;var h;((U=this.Uz)==null?void 0:U.type)!=="repeatChapter"|| isNaN(Number((h=this.Uz)==null?void 0:h.loopCount))||(U={loopCount:String(this.Uz.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.N_("repeatChapterLoopEvent",U))}this.Uz=K;this.Yx.Fx("onLoopRangeChange",K||void 0);this.rH()===this.E5()&&(this.gY(),W.UF())}}; g.H.getLoopRange=function(){return this.Uz}; g.H.gY=function(){var K="",W=this.rH();this.Uz?W!==this.E5()?K="pnea":vHe(this,W.getCurrentTime())&&(this.Uz.loopCount=0,K="ilr"):K="nlr";var U=this.E5();if(IG(U.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var h,m;U.rk("slrre",{rej:K,ct:W.getCurrentTime(),lst:(h=this.Uz)==null?void 0:h.startTimeMs,let:(m=this.Uz)==null?void 0:m.endTimeMs})}else U.rk("slrre",{});K||Q6p(this)}; g.H.setPlaybackRate=function(K,W){if(!isNaN(K)){K=M8Y(this,K);var U=this.rH();U.getPlaybackRate()!==K&&(U.setPlaybackRate(K),W&&!this.C.W&&g.SI("yt-player-playback-rate",K),this.Yx.Bd("onPlaybackRateChange",K))}}; g.H.getCurrentTime=function(K,W){W=W===void 0?!0:W;var U=this.gH.zz;if(U)return U.getCurrentTime();var h=K===2&&this.getVideoData().enableServerStitchedDai;U=null;h?U=this.E5():U=g.yc(this,{playerType:K});return U?h&&this.x$?(K=this.gH.G)?K.getCurrentTime(W):U.getCurrentTime():W?(W=Me(this,U),mZ(this,W.getCurrentTime(),W)):U.getCurrentTime():this.gH.j.getCurrentTime()}; g.H.V1=function(){var K=g.yc(this,{playerType:void 0});if(!K)return this.gH.j.V1();K=Me(this,K);return mZ(this,K.V1(),K)}; g.H.getDuration=function(K,W){W=W===void 0?!0:W;var U=this.gH.zz;if(U)return U.getDuration();U=this.getVideoData();var h=K===2&&U.enableServerStitchedDai,m=null;h?m=this.E5():m=g.yc(this,{playerType:K});if(!m)return this.gH.j.getDuration();if(U.hasProgressBarBoundaries()&&!h){var S,f=Number((S=U.progressBarStartPosition)==null?void 0:S.utcTimeMillis),G;S=Number((G=U.progressBarEndPosition)==null?void 0:G.utcTimeMillis);if(!isNaN(f)&&!isNaN(S))return(S-f)/1E3}if(IG(U)&&!U.isLivePlayback)return et(this, K);if(W)return K=AA(this,m),mZ(this,K.getDuration(),K);if(h&&this.x$){if(this.L("html5_huli_ssdai_use_playback_state"))return K=this.gH,K=K.X===K.G?K.X:null,(K==null?void 0:K.getDuration())||0;var I;return((I=this.gH.G)==null?void 0:I.getDuration())||0}return m.getDuration()}; g.H.hv=function(K){var W=g.yc(this,{playerType:K});return W?this.Wo(W)?(W=AA(this,W),W.hv()-W.getCurrentTime()+this.getCurrentTime(K)):W.hv():this.gH.j.hv()}; g.H.finishSegmentByCpn=function(){return[]}; g.H.Dv=function(){this.template.Dv();var K=this.Yx;K.state.element=this.template.element;var W=K.state.element,U;for(U in K.state.j)K.state.j.hasOwnProperty(U)&&(W[U]=K.state.j[U]);(K=hPC(this.template.element))&&this.events.S(this.template,K,this.onFullscreenChange)}; g.H.getDebugText=function(K){var W=this.rH().P3(K),U=this.E5();if(U!==this.rH()){U=U.P3(K);for(var h=g.z(Object.keys(U)),m=h.next();!m.done;m=h.next())m=m.value,W["ad"+m]=U[m];if(K){U=W;h={};if(m=lL(document,"movie_player"))h.bounds=m.getBoundingClientRect(),h["class"]=m.className;m={};var S=g.$K("video-ads");S?(c$R(S,m),m.html=S.outerHTML):m.missing=1;S={};var f=g.$K("videoAdUiSkipContainer"),G=g.$K("ytp-ad-skip-button-container"),I=g.$K("ytp-skip-ad-button"),d=f||G||I;d?(c$R(d,S),S.ima=f?1:0,S.bulleit= G?1:0,S.component=I?1:0):S.missing=1;h=JSON.stringify({player:h,videoAds:m,skipButton:S});U.ad_skipBtnDbgInfo=h}}K&&this.mediaElement&&(W["0sz"]=""+(+z7(this.mediaElement.getSize())===0),W.op=this.mediaElement.PQ("opacity"),U=this.mediaElement.AV().y+this.mediaElement.getSize().height,W.yof=""+(+U<=0),W.dis=this.mediaElement.PQ("display"));K&&((K=(0,g.rI)())&&(W.gpu=K),(K=this.C.playerStyle)&&(W.ps=K),this.C.vp&&(W.webview=1),(K=this.webPlayerContextConfig.jsUrl)&&(W.js=K));W.debug_playbackQuality= this.Yx.getPlaybackQuality(1);W.debug_date=(new Date).toString();W.origin=window.origin;W.timestamp=Date.now();delete W.uga;delete W.q;return JSON.stringify(W,null,2)}; g.H.getFeedbackProductData=function(){var K={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", "),player_release:t[2]},W=this.getPlayerStateObject().wi;W&&(K.player_error_code=W.errorCode,K.player_error_details=JSON.stringify(W.errorDetail));return K}; g.H.getPresentingPlayerType=function(K){if(this.appState===1)return 1;if(rA(this))return 3;var W,U,h;return(K&&this.C.qk().j.v3(r6)?(h=(W=this.gH.X)==null?void 0:W.isAd())!=null&&h:(U=this.x$)==null?0:Tr(U,this.getCurrentTime()))?2:this.E5().getPlayerType()}; g.H.PO=function(){return!1}; g.H.getPlayerStateObject=function(K){var W=this.gH.zz;return W?W.getPlayerState():g.yc(this,{playerType:K}).getPlayerState()}; g.H.getAppState=function(){return this.appState}; g.H.r9r=function(K){switch(K.type){case "loadedmetadata":this.Pj.start();K=g.z(this.mN);for(var W=K.next();!W.done;W=K.next())W=W.value,rRF(this,W.id,W.pNe,W.Mis,void 0,!1);this.mN=[];break;case "loadstart":this.aW.O2("gv");break;case "progress":case "timeupdate":iq(K.target.Po())>=2&&this.aW.O2("l2s");break;case "playing":g.Qv&&this.Pj.start();if(g.PJ(this.C))K=!1;else{W=g.VP(this.h7());K=this.mediaElement.PQ("display")==="none"||z7(this.mediaElement.getSize())===0;var U=g9(this.template),h=this.E5().getVideoData(), m=g.l1(this.C);h=WE(h);W=!U||W||m||h||this.C.Ik;K=K&&!W}K&&(K=this.E5(),K.bN(),this.getVideoData().Bp||(this.getVideoData().Bp=1,this.JN(),K.playVideo()))}}; g.H.F15=function(K){this.Yx.Ov("onLoadProgress",K)}; g.H.MB5=function(){this.Yx.publish("playbackstalledatstart")}; g.H.lXk=function(K,W){this.Yx.publish("sabrCaptionsDataLoaded",K,W)}; g.H.E5V=function(K){this.E5().wz(K)}; g.H.sws=function(K){this.E5().VY(K)}; g.H.Qws=function(K){K=Me(this,this.E5());K=mZ(this,K.getCurrentTime(),K);this.Yx.Bd("onVideoProgress",K);this.C.HM&&od(this,this.visibility.K_())&&this.pauseVideo()}; g.H.Bve=function(){this.Yx.Bd("onAutoplayBlocked");var K=this.E5().getVideoData();K&&(K.Qj=!0);g.HB(this.C)&&(K={autoplayBrowserPolicy:Jg(),autoplayIntended:eP(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.N_("embedsAutoplayStatusChanged",K))}; g.H.cvx=function(){this.Yx.publish("progresssync")}; g.H.o$V=function(){this.Yx.Ov("onPlaybackPauseAtStart")}; g.H.nmx=function(K){if(this.getPresentingPlayerType()===1){g.M9(K,1)&&!g.C(K.state,64)&&this.yX().isLivePlayback&&this.rH().isAtLiveHead()&&this.Yx.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.M9(K,2)){if(this.Uz&&this.Uz.endTimeMs>=(this.getDuration()-1)*1E3){Q6p(this);return}ks_(this)}if(g.C(K.state,128)){var W=K.state;this.cancelPlayback(5);W=W.wi;JSON.stringify({errorData:W,debugInfo:this.getDebugText(!0)});this.Yx.Bd("onError",LRC(W.errorCode));this.Yx.Ov("onDetailedError",{errorCode:W.errorCode, errorDetail:W.errorDetail,message:W.errorMessage,messageKey:W.YY,cpn:W.cpn});(0,g.AI)()-this.C.pC>6048E5&&this.Yx.Ov("onReloadRequired")}W={};if(K.state.isPlaying()&&!K.state.isBuffering()&&!t3("pbresume","ad_to_video")&&t3("_start","ad_to_video")){var U=this.getVideoData();W.clientPlaybackNonce=U.clientPlaybackNonce;U.videoId&&(W.videoId=U.videoId);g.y2(W,"ad_to_video");XL("pbresume",void 0,"ad_to_video");gN(this.f5)}this.Yx.publish("applicationplayerstatechange",K)}}; g.H.Vo=function(K){this.gH.zz||this.Yx.publish("presentingplayerstatechange",K)}; g.H.dg=function(K){kB(this,Hi(K.state));g.C(K.state,1024)&&this.Yx.isMutedByMutedAutoplay()&&(Fw(this,{muted:!1,volume:this.xq.volume},!1),Jm(this,!1))}; g.H.onPlayerRequestSent=function(K){this.Yx.Fx("onPlayerRequestSent",K)}; g.H.zs=function(K,W){K==="newdata"&&XY(this);this.Yx.publish("applicationvideodatachange",K,W)}; g.H.AvH=function(K,W){gZ(this);this.Yx.Ov("onPlaybackAudioChange",this.Yx.getAudioTrack().ZO.name);this.Yx.publish("internalaudioformatchange",this.Yx.getAudioTrack().ZO.id,W)}; g.H.uck=function(K){var W=this.E5().getVideoData();K===W&&this.Yx.Bd("onPlaybackQualityChange",K.X.video.quality)}; g.H.pA=function(){var K=this.gH.W[2]||null;K&&(K=K.getVideoData(),this.E5().rk("ssdai",{cleanaply:1,acpn:K==null?void 0:K.clientPlaybackNonce,avid:K.videoId,isDai:this.yX().enableServerStitchedDai?1:0}),delete this.gH.W[2])}; g.H.pd5=function(K,W){this.sj(K,this.E5(),W)}; g.H.sj=function(K,W,U){this.C.G9()&&W.rk("vdc",{type:K,vid:U.videoId||"",cpn:U.clientPlaybackNonce||""});W===this.rH()&&(this.C.XX=U.oauthToken);W===this.rH()&&(this.getVideoData().enableServerStitchedDai&&!this.x$?(this.rH().rk("sdai",{initSstm:1}),this.x$=new g.O7(this.Yx,this.C,this.rH(),this)):!this.getVideoData().enableServerStitchedDai&&this.x$&&(this.x$.dispose(),this.x$=null));if(K==="newdata")QM(this.f5,2),this.Yx.publish("videoplayerreset",W);else{if(!this.mediaElement)return;if(K==="dataloaded")if(this.rH()=== this.E5()){if(HJ(U.Tm,U.qg),!this.rH().getPlayerState().isError()){var h=rA(this);this.yX().isLoaded();h&&this.ZC(6);$yp(this);QI(this.f5)||LGz(this)}}else $yp(this);if(W.getPlayerType()===1&&(this.C.eV&&U1_(this),this.getVideoData().isLivePlayback&&!this.C.Je&&this.Qv("html5.unsupportedlive",2,"DEVICE_FALLBACK"),U.isLoaded()&&((PQ$(U)||this.getVideoData().SD)&&this.Yx.publish("legacyadtrackingpingchange",this.getVideoData()),U.hasProgressBarBoundaries()))){var m;h=Number((m=this.getVideoData().progressBarEndPosition)== null?void 0:m.utcTimeMillis)/1E3;!isNaN(h)&&(m=this.hv())&&(m-=this.getCurrentTime(),h=(h-m)*1E3,m=this.qD.progressEndBoundary,(m==null?void 0:m.start)!==h&&(m&&this.iF([m]),h=new g.g0(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.rH().addCueRange(h),this.qD.progressEndBoundary=h))}this.Yx.publish("videodatachange",K,U,W.getPlayerType())}this.Yx.Bd("onVideoDataChange",{type:K,playertype:W.getPlayerType()});this.gY();(K=U.HJ)?this.ZL.w0(K,U.clientPlaybackNonce): rPL(this.ZL)}; g.H.Er=function(){jl(this,null);this.Yx.Ov("onPlaylistUpdate")}; g.H.h9x=function(K){delete this.qD[K.getId()];this.rH().removeCueRange(K);a:{K=this.getVideoData();var W,U,h,m,S,f,G,I,d,J,e=((W=K.Ns)==null?void 0:(U=W.contents)==null?void 0:(h=U.singleColumnWatchNextResults)==null?void 0:(m=h.autoplay)==null?void 0:(S=m.autoplay)==null?void 0:S.sets)||((f=K.Ns)==null?void 0:(G=f.contents)==null?void 0:(I=G.twoColumnWatchNextResults)==null?void 0:(d=I.autoplay)==null?void 0:(J=d.autoplay)==null?void 0:J.sets);if(e)for(W=g.z(e),U=W.next();!U.done;U=W.next())if(U= U.value,m=h=void 0,U=U.autoplayVideo||((h=U.autoplayVideoRenderer)==null?void 0:(m=h.autoplayEndpointRenderer)==null?void 0:m.endpoint),h=g.P(U,g.fw),S=m=void 0,U!=null&&((m=h)==null?void 0:m.videoId)===K.videoId&&((S=h)==null?0:S.continuePlayback)){K=U;break a}K=null}(W=g.P(K,g.fw))&&this.Yx.Fx("onPlayVideo",{sessionData:{autonav:"1",itct:K==null?void 0:K.clickTrackingParams},videoId:W.videoId,watchEndpoint:W})}; g.H.ZC=function(K){K!==this.appState&&(K===2&&this.getPresentingPlayerType()===1&&(kB(this,-1),kB(this,5)),this.appState=K,this.Yx.publish("appstatechange",K))}; g.H.Qv=function(K,W,U,h,m){this.rH().jB(K,W,U,h,m)}; g.H.vg=f4(13);g.H.isAtLiveHead=function(K,W){W=W===void 0?!1:W;var U=g.yc(this,{playerType:K});if(!U)return this.gH.j.isAtLiveHead();K=AA(this,U);U=Me(this,U);return K!==U?K.isAtLiveHead(mZ(this,U.getCurrentTime(),U),!0):K.isAtLiveHead(void 0,W)}; g.H.dX=function(){var K=g.yc(this,{playerType:void 0});return K?AA(this,K).dX():this.gH.j.dX()}; g.H.seekTo=function(K,W,U,h,m,S){W=W!==!1;if(h=g.yc(this,{playerType:h}))if(this.appState===2&&zp(this),this.Wo(h))sk(this)?this.x$.seekTo(K,{seekSource:m},W,U):this.S_.seekTo(K,{seekSource:m},W,U);else{this.L("html5_sabr_csdai_seek_log")||(S="");var f;h.seekTo(K,{QG:!W,Db:U,JS:"application"+((f=S)!=null?f:""),seekSource:m})}}; g.H.seekBy=function(K,W,U,h){this.seekTo(this.getCurrentTime()+K,W,U,h,void 0,"_by")}; g.H.CGm=function(){this.Yx.Bd("SEEK_COMPLETE")}; g.H.Yve=function(){this.Yx.Fx("onAbnormalityDetected")}; g.H.jwH=function(K){this.Yx.Fx("onSnackbarMessage",K)}; g.H.g$r=function(K){var W=this.E5(),U=W.getVideoData();if(this.appState===1||this.appState===2)U.startSeconds=K;this.appState===2?g.C(W.getPlayerState(),512)||zp(this):this.Yx.Bd("SEEK_TO",K)}; g.H.v$x=function(){this.Yx.publish("airplayactivechange")}; g.H.Svp=function(){this.Yx.publish("airplayavailabilitychange")}; g.H.showAirplayPicker=function(){this.E5().ih()}; g.H.Jvp=function(){this.Yx.publish("beginseeking")}; g.H.w2x=function(){this.Yx.publish("endseeking")}; g.H.getStoryboardFormat=function(K){return(K=g.yc(this,{playerType:K}))?AA(this,K).getStoryboardFormat():this.gH.j.getStoryboardFormat()}; g.H.hW=function(K){return(K=g.yc(this,{playerType:K}))?AA(this,K).getVideoData().hW():this.gH.j.hW()}; g.H.Wo=function(K){K=(K||this.E5()).getVideoData();if(sk(this))K=K===this.x$.playback.getVideoData();else a:{var W=this.S_;if(K===W.j.getVideoData()&&W.X.length)K=!0;else{W=g.z(W.X);for(var U=W.next();!U.done;U=W.next())if(K.Ze===U.value.Ze){K=!0;break a}K=!1}}return K}; g.H.kz=function(K,W,U,h,m,S,f,G){var I=sk(this);this.E5().rk("appattl",{sstm:this.x$?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:I});I?(U=Kvs(this.x$,K,W,U,h,m,S,f,G),K=(U==null?void 0:U.Ze)||"",(this.L("html5_ssdai_new_decoration_logic")||this.rH().getVideoData().oL)&&this.rH().k_(G||"",W,(U==null?void 0:U.clientPlaybackNonce)||"")):K=mep(this.S_,K,U,h,m,S);return K}; g.H.OB=function(K,W,U,h,m,S,f,G){if(sk(this)){var I;(I=this.x$)==null||Kvs(I,K,W,U,h,m,S,f,G)}}; g.H.Z1=function(K){(this.L("html5_ssdai_new_decoration_logic")||this.rH().getVideoData().oL)&&this.rH().k_(K,"","");var W;(W=this.x$)==null||W.Z1(K)}; g.H.N0=function(K,W){K=K===void 0?-1:K;W=W===void 0?Infinity:W;sk(this)||Vv(this.S_,K,W)}; g.H.Te=function(K,W,U){if(sk(this)){var h=this.x$,m=h.j.Yv({Ze:K});m?(U===void 0&&(U=m.W2),ZXL(h,m,W,U)):h.Ro("Invalid_timelinePlaybackId_"+K+"_specified")}else{h=this.S_;m=null;for(var S=g.z(h.X),f=S.next();!f.done;f=S.next())if(f=f.value,f.Ze===K){m=f;break}m?(U===void 0&&(U=m.W2),IUY(h,m,W,U)):sm(h,"InvalidTimelinePlaybackId timelinePlaybackId="+K)}}; g.H.enqueueVideoByPlayerVars=function(K,W,U,h){U=U===void 0?Infinity:U;h=h===void 0?"":h;this.Wo();K=new g.GM(this.C,K);h&&(K.Ze=h);WRs(this,K,W,U)}; g.H.queueNextVideo=function(K,W,U,h,m){U=U===void 0?NaN:U;K=this.preloadVideoByPlayerVars(K,W===void 0?1:W,U,h===void 0?"":h,m===void 0?"":m);W=this.E5();K&&(this.L("html5_check_queue_on_data_loaded")?this.V().supportsGaplessShorts()&&W.getVideoData().Y&&(U=this.P$,h=this.Si.U,U.W!==K&&(U.X=W,U.W=K,U.N=1,U.j=K.getVideoData(),U.U=h,U.j.isLoaded()?U.G():U.j.subscribe("dataloaded",U.G,U))):(U=bEz(W,K,this.Si.U),U!=null?(W.rk("sgap",U),W.getVideoData().Y&&W.Yg(!1)):(K=K.getVideoData(),W=this.P$,W.j!== K&&(W.j=K,W.N=1,K.isLoaded()?W.Y():W.j.subscribe("dataloaded",W.Y,W)))))}; g.H.Y1=function(K,W,U,h){var m=this;U=U===void 0?0:U;h=h===void 0?0:h;AA(this,this.E5()).bV();jWp(this.Si,K,W,U,h).then(function(){m.Yx.Ov("onQueuedVideoLoaded")},function(){})}; g.H.Hh=function(){return this.Si.Hh()}; g.H.Zq=function(K){var W=this.Si.j;return W?W.Ah(K):!1}; g.H.clearQueue=function(K,W){this.Si.clearQueue(K===void 0?!1:K,W===void 0?!1:W)}; g.H.loadVideoByPlayerVars=function(K,W,U,h,m,S){W=W===void 0?1:W;var f=this.rH();if(W===2&&this.yX().enableServerStitchedDai&&f&&!f.B0())return f.rk("lvonss",{vid:(K==null?void 0:K.videoId)||"",ptype:W}),!1;var G=!1;f=new g.GM(this.C,K);f.Q6=S;g.Hh(this.C)&&!f.pN&&om(this.aW);var I;S=this.aW;var d=(I=f.jV)!=null?I:"";S.timerName=d;this.aW.XK("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.aW.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});Joz(f).supportsVp9Encoding===!1&& this.E5().rk("noVp9enc",{});if(this.V().supportsGaplessShorts()){I=KVC(this.Si,f,W);if(I==null){kB(this,-1);var J;((J=this.Si.j)==null?0:J.getVideoData().isAd())||PT(this);K=this.Si;K.app.V().L("html5_gapless_new_slr")?E7(K.app,"gaplessshortslooprange"):K.app.setLoopRange(null);K.app.getVideoData().CM=!0;var e;(e=K.j)==null||e.fq();var E;(E=K.j)==null||E.A2();U={JS:"gapless_to_next_video",seekSource:60,IY:K.U.j};h=e3$(K);if(K.U.j){var B;m=((B=K.N)==null?void 0:vo(B))||{};B=m.Rp;m=m.zE;m!=null&&B!= null&&(h=m-B+.001)}var D;(D=K.app.E5())==null||D.seekTo(h,U);if(!K.app.getPlayerStateObject(W).isPlaying()){var a;(a=K.app.E5())==null||a.playVideo(!0)}var Q;(Q=K.app.E5())==null||Q.ac();K.Y();return!0}D=this.L("html5_shorts_gapless_preload_fallback");a=this.Si.j;D&&a&&!a.qs()&&(Q=a.getVideoData(),this.gH.Y.set(At(W,Q),a,3600));this.Si.clearQueue(D);this.E5().rk("sgap",{f:I})}if(m){for(;f.zJ.length&&f.zJ[0].isExpired();)f.zJ.shift();D=f.zJ.length-1;G=D>0&&m.X(f.zJ[D])&&m.X(f.zJ[D-1]);f.zJ.push(m)}U|| (K&&EJ(K)?(p_(this.C)&&!this.EP&&(K.fetch=0),jl(this,K)):this.playlist&&jl(this,null),K&&(this.EP=DL(!1,K.external_list)));this.Yx.publish("loadvideo");D=this.a8(f,W,h);G&&this.Qv("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.zJ.join()).replace(/[;:,]/g,"_"));return D}; g.H.preloadVideoByPlayerVars=function(K,W,U,h,m){W=W===void 0?1:W;U=U===void 0?NaN:U;m=m===void 0?"":m;h=W;var S=m,f=fD(K);if(h=this.gH.Y.get(h+"_"+f+"_"+S+"_"+ +(K.autonav==="1"||K.autonav===!0)+ +(K.autoplay==="1"||K.autoplay===!0||K.autoplay===1))||null)return h;K=new g.GM(this.C,K);m&&(K.Ze=m);m=At(W,K);h=this.E5();S=At(h.getPlayerType(),h.getVideoData());m===S?(h.ZM(!0),K.dispose(),U=null):(K.Cg=!0,h=Gt(this,W,K,!0),(W!==1||!T4(this.C)||this.C.L("html5_allow_multiview_tile_preload")&&K.fn)&& h.ZM(!0),this.gH.Y.set(m,h,U||3600),U=h);return U}; g.H.setMinimized=function(K){this.visibility.setMinimized(K);(K=sGF(this.f5))&&(this.isMinimized()?K.load():K.unload());this.Yx.publish("minimized")}; g.H.setInline=function(K){this.visibility.setInline(K)}; g.H.setInlinePreview=function(K){this.visibility.setInline(K)}; g.H.gr=function(K){Htp(this,K)||this.visibility.gr(K)}; g.H.setSqueezeback=function(K){this.visibility.setSqueezeback(K)}; g.H.Wb=function(){var K,W=(K=this.mediaElement)==null?void 0:K.H3();W&&(this.C.wr&&Sx(MG(function(){return document.exitFullscreen()}),function(){}),Sx(MG(function(){return rN(W)}),function(){}))}; g.H.FGX=function(){this.mediaElement.H3();this.mediaElement.H3().webkitPresentationMode==="picture-in-picture"?this.gr(!0):this.gr(!1)}; g.H.togglePictureInPicture=function(){this.E5().togglePictureInPicture()}; g.H.a8=function(K,W,U){var h=this;W=W===void 0?1:W;t3("_start",this.aW.timerName)||g.kQ(iD)(void 0,this.aW.timerName);var m=!1,S=un(this,W,K,!1);S?(m=!0,K.dispose()):(S=Gt(this,W,K,!0,U),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&S.Xi()&&S.ZM(),this.Pj.stop(),W===1&&W!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,W),this.z4(S));S===this.rH()&&(this.C.XX=K.oauthToken);if(!S.Xi())return!1;if(S===this.rH()){this.ZC(1);if(this.C.L("html5_allow_multiview_tile_preload")&& m&&S.getVideoData().fn)return S.rk("app_lv",{pdl:S.cW()}),S.cW()?bWs(this,S):S.subscribe("internalvideodatachange",function(f){f==="dataloaded"&&bWs(h,S)},this),!0; K=zp(this);m&&this.L("html5_player_preload_ad_fix")&&S.getPlayerType()===1&&S.cW()&&this.sj("dataloaded",S,S.getVideoData());return K}S.xl();return!0}; g.H.cueVideoByPlayerVars=function(K,W){var U=this;W=W===void 0?1:W;var h=this.rH();if(this.yX().enableServerStitchedDai&&h&&!h.B0()&&K&&Object.keys(K).length>0)h.rk("qvonss",{vid:(K==null?void 0:K.videoId)||"",ptype:W});else if(K&&EJ(K))if(this.xg=!0,jl(this,K),(K=g.M6(this.playlist))&&K.Av())db(this,K,W);else this.playlist.onReady(function(){p9(U)}); else{W||(W=this.getPresentingPlayerType());W===1&&this.Er();h=new g.GM(this.C,K);var m=g.HB(this.C)&&!this.C.uX&&W===1&&!h.isAd()&&!h.Ez;this.Yx.publish("cuevideo",W);m?(this.E5().getVideoData().loading=!0,x02(h,K?K:{}).then(function(S){db(U,S,W)}),h.dispose()):db(this,h,W)}}; g.H.PY=function(K,W,U,h,m,S,f){if(!K&&!U)throw Error("Playback source is invalid");if(UJ(this.C)||g.Lm(this.C))return W=W||{},W.lact=A3(),W.vis=this.Yx.getVisibilityState(),this.Yx.Fx("onPlayVideo",{videoId:K,watchEndpoint:S,sessionData:W,listId:U}),!1;F9p(this.aW);this.aW.reset();K={video_id:K};h&&(K.autoplay="1");h&&(K.autonav="1");S&&(K.player_params=S.playerParams);f&&(K.oauth_token=f);U?(K.list=U,this.loadPlaylist(K)):this.loadVideoByPlayerVars(K,1);return!0}; g.H.cuePlaylist=function(K,W,U,h){this.xg=!0;c5s(this,K,W,U,h)}; g.H.loadPlaylist=function(K,W,U,h){this.xg=!1;c5s(this,K,W,U,h)}; g.H.tq=function(){return this.Yx.isMutedByMutedAutoplay()?!1:this.gH.zz?!0:!(!this.playlist||!this.playlist.zP())}; g.H.Z4=f4(5); g.H.nextVideo=function(K,W){var U=g.eC(this.rH().getVideoData());g.Jf(this.Yx)&&U?this.PY(U.videoId,W?U.WQ:U.sessionData,U.playlistId,W,void 0,U.gq||void 0):this.EP?this.Yx.Ov("onPlaylistNext"):this.getPresentingPlayerType()===3?Fk(this.f5).nextVideo():!this.playlist||p_(this.C)&&!this.Yx.isFullscreen()||(this.playlist.zP(K)&&DQD(this.playlist,ELL(this.playlist)),this.playlist.loaded?(K=W&&this.C.L("html5_player_autonav_logging"),W&&this.Yx.publish("playlistautonextvideo"),this.a8(g.M6(this.playlist,void 0, W,K),1)):this.xg=!1)}; g.H.previousVideo=function(K){this.EP?this.Yx.Ov("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Fk(this.f5).Lq():!this.playlist||p_(this.C)&&!this.Yx.isFullscreen()||(this.playlist.cM(K)&&DQD(this.playlist,$0e(this.playlist)),this.playlist.loaded?this.a8(g.M6(this.playlist),1):this.xg=!1)}; g.H.playVideoAt=function(K){this.EP?this.Yx.Ov("onPlaylistIndex",K):this.playlist&&(this.playlist.loaded?this.a8(g.M6(this.playlist,K),1):this.xg=!1,DQD(this.playlist,K))}; g.H.getPlaylist=function(){return this.playlist}; g.H.EK=f4(19);g.H.sW=function(K){this.mN=g.yb(this.mN,function(S){return S.id!==K}); for(var W=this.rH(),U=W.E4(),h=0;h0&&(I=Math.floor(d/1E3))}I=W?W.k$:I;var J={AD_BLOCK:this.j++,AD_BREAK_LENGTH:I,AUTONAV_STATE:IK(this.player.V()),CA_TYPE:"image",CPN:G.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.dX()*1E3,LACT:A3(),LIVE_INDEX:W?this.N++:1,LIVE_TARGETING_CONTEXT:W&&W.context?W.context:"",MIDROLL_POS:S? Math.round(S.start/1E3):0,MIDROLL_POS_MS:S?Math.round(S.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.xx().Us().height,P_W:this.player.xx().Us().width,YT_REMOTE:m?m.join(","):""},e=tv(tmD);Object.keys(e).forEach(function(B){e[B]!=null&&(J[B.toUpperCase()]=e[B].toString())}); U!==""&&(J.BISCOTTI_ID=U);U={};ei(K)&&(U.sts="20376",(W=this.player.V().forcedExperiments)&&(U.forced_experiments=W));var E=gw(g.eK(K,J),U);return E.split("?").length!==2?x2(Error("Invalid AdBreakInfo URL")):g.UY(this.player.V(),G==null?void 0:G.oauthToken).then(function(B){if(B&&Vn()){var D=Mo();U5(D,B)}B=h.player.Tz(D);D=MkD(h,E,J,G.isMdxPlayback,f);return g.Es(B,D,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; k5.prototype.reset=function(){this.N=this.j=1};g.V(DM$,k5); DM$.prototype.X=function(K,W,U){W=W===void 0?{}:W;var h=W.OF;var m=W.Vv;var S=W.cueProcessedMs;U=U===void 0?"":U;W=this.j;this.j++;var f=this.player.V().L("h5_disable_macro_substitution_in_get_ad_break")?K:G5L(this,K,{OF:h,Vv:m,cueProcessedMs:S},U,W);if(f.split("?").length!==2)return Math.random()<.1&&g.eI(Error("Invalid AdBreakInfo URL")),x2(Error("Invalid AdBreakInfo URL"));var G=this.player.getVideoData(1).isMdxPlayback,I=U;U=umR.exec(f);U=U!=null&&U.length>=2?U[1]:"";K=kBL.test(f);var d=iYs.exec(f); d=d!=null&&d.length>=2?d[1]:"";var J=zEe.exec(f);J=J!=null&&J.length>=2&&!Number.isNaN(Number(J[1]))?Number(J[1]):1;var e=N4L.exec(f);e=e!=null&&e.length>=2?e[1]:"0";var E=GD(this.player.V().M$),B=g.wZ(this.player.getVideoData(1).Ms,!0);AjD(this,B,f,I===""?"":I,this.player.V(),this.player.getVideoData(1));I={splay:!1,lactMilliseconds:String(A3()),playerHeightPixels:Math.trunc(this.player.xx().Us().height),playerWidthPixels:Math.trunc(this.player.xx().Us().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20376,autonavState:IK(this.player.V())};if(G){G={};var D=this.player.V().N$;MaY(G,D?D.join(","):"")&&(I.mdxContext=G)}if(G=REF.includes(E)?void 0:g.LY("PREF")){D=G.split(RegExp("[:&]"));for(var a=0,Q=D.length;a1&&u[1].toUpperCase()==="TRUE"){B.user.lockedSafetyMode=!0;break}}I.autoCaptionsDefaultOn=JLY(G)}f=yjC.exec(f);(f=f!=null&&f.length>=2?f[1]:"")&&d&&(B.user.credentialTransferTokens= [{token:f,scope:"VIDEO"}]);f={contentPlaybackContext:I};I=this.player.getVideoData(1).getGetAdBreakContext();G=this.player.getVideoData(1).clientPlaybackNonce;D=S!==void 0?Math.round(S).toString():void 0;a=(h==null?0:h.context)?h.context:void 0;Q=0;S&&m&&!h&&(m=m.end-m.start,m>0&&(Q=Math.floor(m/1E3)));h=(h=Math.trunc((h?h.k$:Q)*1E3))?String(h):void 0;m=this.player.dX()*1E3;m=Number.isNaN(m)?0:Math.trunc(m);W={adBlock:W,params:U,breakIndex:J,breakPositionMs:e,clientPlaybackNonce:G,topLevelDomain:E, isProxyAdTagRequest:K,context:B,overridePlaybackContext:f,cueProcessedMs:D,videoId:d?d:void 0,liveTargetingParams:a,breakLengthMs:h,driftFromHeadMs:m?String(m):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:I?I:void 0};return ABe(this,W)};var KnZ={cnx:"replaceUrlMacros",fFs:"onAboutThisAdPopupClosed",EFm:"executeCommand"};Qd.prototype.DL=function(){return"adPingingEndpoint"}; Qd.prototype.KO=function(K,W,U){nIp(this.zm.get(),K,W,U)};MM.prototype.DL=function(){return"changeEngagementPanelVisibilityAction"}; MM.prototype.KO=function(K){this.D.Fx("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:K})};uC.prototype.DL=function(){return"loggingUrls"}; uC.prototype.KO=function(K,W,U){K=g.z(K);for(var h=K.next();!h.done;h=K.next())h=h.value,nIp(this.zm.get(),h.baseUrl,W,U,h.attributionSrcMode)};g.V(HVs,g.p);g.V(yZ,g.p);g.H=yZ.prototype;g.H.addListener=function(K){this.listeners.push(K)}; g.H.removeListener=function(K){this.listeners=this.listeners.filter(function(W){return W!==K})}; g.H.MN=function(K,W,U,h,m,S,f,G){if(K==="")UF("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(K!==this.j||U){this.j=K;this.dk.get().MN(K,W,U,h,m,S,f,G);this.ZA.get().MN(K,W,U,h,m,S,f,G);var I;(I=this.K5)==null||I.get().MN(K,W,U,h,m,S,f,G);this.X.MN(K,W,U,h,m,S,f,G);I=g.z(this.listeners);for(var d=I.next();!d.done;d=I.next())d.value.MN(K,W,U,h,m,S,f,G)}else UF("Duplicate content video loaded signal")}; g.H.QRU=function(){this.j&&this.qK(this.j)}; g.H.qK=function(K){this.j=void 0;for(var W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.qK(K)};rq.prototype.EH=function(K,W,U,h,m){l0L(this);this.U=!W&&U===0;var S=this.D.getVideoData(1),f=this.D.getVideoData(2);S&&(this.contentCpn=S.clientPlaybackNonce,this.videoId=S.videoId,this.j=S.G);f&&(this.adCpn=f.clientPlaybackNonce,this.adVideoId=f.videoId,this.adFormat=f.adFormat);this.W=K;h<=0?(l0L(this),this.U=!W&&U===0):(this.actionType=this.U?W?"unknown_type":"video_to_ad":W?"ad_to_video":"ad_to_ad",this.videoStreamType=m?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.N=!0,t3("_start",this.actionType)&&BU$(this)))}; rq.prototype.reset=function(){return new rq(this.D)};g.V(TS,g.p);TS.prototype.addCueRange=function(K,W,U,h,m,S,f,G,I){S=S===void 0?3:S;f=f===void 0?1:f;this.j.has(K)?UF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:K}):(K=new PeD(K,W,U,h,S,G,I),this.j.set(K.id,{Vv:K,listener:m,O0:f}),this.D.lG([K],f))}; TS.prototype.removeCueRange=function(K){var W=this.j.get(K);W?(this.D.hD([W.Vv],W.O0),this.j.delete(W.Vv.id)):UF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:K})}; TS.prototype.onCueRangeEnter=function(K){if(this.j.has(K.id))this.j.get(K.id).listener.onCueRangeEnter(K.id)}; TS.prototype.onCueRangeExit=function(K){if(this.j.has(K.id))this.j.get(K.id).listener.onCueRangeExit(K.id)}; g.V(PeD,g.g0);aR.prototype.addPlayerResponseForAssociation=function(K){this.D.addPlayerResponseForAssociation(K)};wq.prototype.o7=function(K){this.D.o7(K)}; wq.prototype.V7=function(K){var W=g.Xl.apply(1,arguments);K==="onAdStart"||K==="onAdEnd"?this.D.Bd.apply(this.D,[K].concat(g.z4(W))):this.D.Fx.apply(this.D,[K].concat(g.z4(W)))};QZ.prototype.k5=function(K){return K&&TI(this)};var rQp=null;g.V(Tuz,g.GP);Tuz.prototype.Oi=function(K){return this.j.hasOwnProperty(K)?this.j[K].Oi():{}}; g.Vk("ytads.bulleit.getVideoMetadata",function(K){return PD().Oi(K)}); g.Vk("ytads.bulleit.triggerExternalActivityEvent",function(K,W,U){var h=PD();U=oOs(U);U!==null&&h.publish(U,{queryId:K,viewabilityString:W})});g.H=ki.prototype;g.H.jz=function(K,W){if(!this.j.has(K))return{};if(W==="seek"){W=!1;W=W===void 0?!1:W;var U=yq(uR).hx(K,{});U?yQ(U):W&&(K=yq(uR).bq(null,i_(),!1,K),K.oo=3,gIC([K]));return{}}W=fCY(W);if(W===null)return{};var h=this.D.sO();if(!h)return{};var m=this.D.getPresentingPlayerType(!0);if((U=this.D.getVideoData(m))==null||!U.isAd())return{};U={opt_adElement:h,opt_fullscreen:this.dk.get().isFullscreen()};return KaC(W,K,U)}; g.H.kN=function(K,W,U,h,m){this.j.has(K)&&(h<=0||m<=0||yq(uR).kN(K,W,U,h,m))}; g.H.G6=function(K){var W;(W=this.j.get(K.queryId))==null||W.G6()}; g.H.qY=function(K){var W;(W=this.j.get(K.queryId))==null||W.qY()}; g.H.Z0=function(K){var W;(W=this.j.get(K.queryId))==null||W.Z0()}; g.H.z6=function(K){var W;(W=this.j.get(K.queryId))==null||W.z6()}; g.H.k8=function(K){var W;(W=this.j.get(K.queryId))==null||W.k8()};M2p.prototype.send=function(K,W,U,h){try{$9C(this,K,W,U,h===void 0?!1:h)}catch(m){}};g.V(JCL,M2p);zzF.prototype.send=function(K,W,U,h){var m=!1;try{if(h==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||h==="ATTRIBUTION_SRC_MODE_XHR_OPTION")m=!0,K=sw_(K);h=m;var S=g.wB(K);if(S[1]==="https")var f=K;else S[1]="https",f=wN("https",S[2],S[3],S[4],S[5],S[6],S[7]);var G=eBR(f);S=[];var I=UhC(f)&&this.Xx.get().D.V().experiments.Rk("add_auth_headers_to_remarketing_google_dot_com_ping");if(ei(f)||I)S.push({headerType:"USER_AUTH"}),S.push({headerType:"PLUS_PAGE_ID"}),S.push({headerType:"VISITOR_ID"}),S.push({headerType:"EOM_VISITOR_ID"}), S.push({headerType:"AUTH_USER"}),S.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:f,scrubReferrer:G,headers:S},W,U,h)}catch(d){}};ib.prototype.h3=function(){return this.D.h3(1)};g.V(nA,g.p);g.H=nA.prototype;g.H.UC=function(){return this.D.getVideoData(1).clientPlaybackNonce}; g.H.addListener=function(K){this.listeners.push(K)}; g.H.removeListener=function(K){this.listeners=this.listeners.filter(function(W){return W!==K})}; g.H.MN=function(){this.NW.clear();this.CR=null;this.VB.get().clear()}; g.H.qK=function(){}; g.H.OCU=function(K,W,U,h,m){W.videoId==="nPpU29QrbiU"&&this.D.rk("ads_ssm_vdc_s",{pt:U,dvt:K});dy(this.Xx.get())&&K!=="dataloaded"||bY$(this,W,U);if(TI(this.Xx.get())&&K==="newdata"&&m!==void 0){K=this.UC();var S=W.clientPlaybackNonce,f={};na(this,"rte",(f.ec=S,f.xc=h==null?void 0:h.clientPlaybackNonce,f.tr=m,f.pt=U,f.ia=S!==K,f.ctp=gG(S),f));W=W.clientPlaybackNonce;h=h==null?void 0:h.clientPlaybackNonce;m=GV_(m);if(m!==1)if(h!==void 0)for(U=g.z(this.listeners),K=U.next();!K.done;K=U.next())K.value.a7(h, W,m);else UF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:W,transitionReason:String(m)});m=g.z(this.listeners);for(h=m.next();!h.done;h=m.next())h.value.On(W)}}; g.H.o55=function(K,W){K!==void 0&&(this.CR=K,W===void 0?UF("Expected ad video start time on SS video changed"):this.NW.set(K,W));var U=this.D.getPresentingPlayerType(!0),h=this.D.getVideoData(U),m;K===void 0?m=null:m=this.VB.get().j.get(K)||null;this.D.getVideoData(1).rk("ads_ssvc",{pt:U,cpn:h==null?void 0:h.clientPlaybackNonce,crtt:this.D.getCurrentTime(1,!1),atlh:this.D.isAtLiveHead(),adstt:W,pid:K,slid:m==null?void 0:m.layoutId});h?bY$(this,h,U):UF("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.D.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:K})}; g.H.KF=function(K,W){var U=K.author,h=K.clientPlaybackNonce,m=K.isListed,S=K.Ze,f=K.title,G=K.Lf,I=K.uT,d=K.isMdxPlayback,J=K.oC,e=K.mdxEnvironment,E=K.isAutonav,B=K.GZ,D=K.pN,a=K.jQ,Q=K.videoId||"",u=K.profilePicture||"",O=K.R5||"",N=K.WN()||!1,A=K.Sj()||!1;K=K.FR||void 0;S=this.VB.get().j.get(S)||{layoutId:null,slotId:null};var Z=this.D.getVideoData(1),x=Z.mK();Z=Z.getPlayerResponse();W=1E3*this.D.getDuration(W);var b=1E3*this.D.getDuration(1),KR,fR,jp=(Z==null?void 0:(KR=Z.playerConfig)==null? void 0:(fR=KR.daiConfig)==null?void 0:fR.enableDai)||!1,I2,hF;KR=(Z==null?void 0:(I2=Z.playerConfig)==null?void 0:(hF=I2.daiConfig)==null?void 0:hF.enablePreroll)||!1;return Object.assign({},S,{videoId:Q,author:U,clientPlaybackNonce:h,Of:W,JW:b,daiEnabled:jp,fL:KR,isListed:m,mK:x,profilePicture:u,title:f,R5:O,Lf:G,uT:I,FR:K,isMdxPlayback:d,oC:J,mdxEnvironment:e,isAutonav:E,GZ:B,pN:D,jQ:a,WN:N,Sj:A})}; g.H.QH=function(){this.listeners.length=0;this.hM=null;g.p.prototype.QH.call(this)};g.V(F5,g.p);g.H=F5.prototype;g.H.MN=function(){var K=this;TI(this.Xx.get())||(this.j=rr(function(){K.D.qs()||K.D.CN("ad",1)}))}; g.H.qK=function(){}; g.H.addListener=function(K){this.listeners.push(K)}; g.H.removeListener=function(K){this.listeners=this.listeners.filter(function(W){return W!==K})}; g.H.ZH=function(){}; g.H.playVideo=function(){this.D.playVideo()}; g.H.pauseVideo=function(){this.D.pauseVideo()}; g.H.resumeVideo=function(K){this.sY(K)&&this.D.playVideo()}; g.H.sY=function(K){return this.D.getPlayerState(K)===2}; g.H.getCurrentTimeSec=function(K,W,U){var h=this.ZA.get().CR;if(K===2&&!W&&h!==null)return qT(this,h);AC(this.Xx.get(),"html5_ssap_use_cpn_to_get_time")||(U=void 0);return U!==void 0?this.D.getCurrentTime(K,W,U):this.D.getCurrentTime(K,W)}; g.H.getVolume=function(){return this.D.getVolume()}; g.H.isMuted=function(){return this.D.isMuted()}; g.H.getPresentingPlayerType=function(){return this.D.getPresentingPlayerType(!0)}; g.H.getPlayerState=function(K){return this.D.getPlayerState(K)}; g.H.getGetAdBreakContext=function(){return this.D.getGetAdBreakContext()}; g.H.isFullscreen=function(){return this.D.isFullscreen()}; g.H.isAtLiveHead=function(){return this.D.isAtLiveHead()}; g.H.Yo=function(K){this.D.Yo(K)}; g.H.dbr=function(){var K=this.D.getPresentingPlayerType(!0),W=this.getCurrentTimeSec(K,!1);if(K===2){K=g.z(this.listeners);for(var U=K.next();!U.done;U=K.next())U.value.ID(W)}else if(K===1)for(K=g.z(this.PT),U=K.next();!U.done;U=K.next())U.value.ZH(W)}; g.H.fXx=function(K){for(var W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.wS(K,this.getPresentingPlayerType())}; g.H.onFullscreenToggled=function(K){for(var W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.onFullscreenToggled(K)}; g.H.onVolumeChange=function(){for(var K=g.z(this.listeners),W=K.next();!W.done;W=K.next())W.value.onVolumeChange()}; g.H.z8=function(){for(var K=this.D.isMinimized(),W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.z8(K)}; g.H.r_=function(K){for(var W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.r_(K)}; g.H.IW=function(){for(var K=this.D.xx().Us(),W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.hc(K)}; g.H.j$=function(K){for(var W=g.z(this.listeners),U=W.next();!U.done;U=W.next())U.value.j$(K)}; g.H.bK=function(){for(var K=g.z(this.listeners),W=K.next();!W.done;W=K.next())W.value.bK()};g.V(xrR,g.p);g.V(I1,g.p);I1.prototype.QH=function(){this.F0.qs()||this.F0.get().removeListener(this);g.p.prototype.QH.call(this)};$i.prototype.fetch=function(K){var W=K.Wm;return this.j.fetch(K.GO,{OF:K.OF===void 0?void 0:K.OF,Vv:W,cueProcessedMs:K.cueProcessedMs===void 0?0:K.cueProcessedMs}).then(function(U){return Gc2(U,W)})};g.V(DY,g.p);g.H=DY.prototype;g.H.addListener=function(K){this.listeners.push(K)}; g.H.removeListener=function(K){this.listeners=this.listeners.filter(function(W){return W!==K})}; g.H.DP=function(K){EVe(this,K,1)}; g.H.onAdUxClicked=function(K,W){R2(this,function(U){U.N9(K,W)})}; g.H.mA=function(K){R2(this,function(W){W.xw(K)})}; g.H.L9=function(K){R2(this,function(W){W.f0(K)})}; g.H.Tem=function(K){R2(this,function(W){W.nX(K)})};eD.prototype.reduce=function(K){switch(K.event){case "unknown":return}var W=K.identifier;var U=this.j[W];U?W=U:(U={xz:null,d1:-Infinity},W=this.j[W]=U);U=K.startSecs+K.j/1E3;if(!(U=this.j.startSecs&&U.startSecs<=this.j.startSecs+this.j.k$)){var h=void 0;if(Qo(this.Xx.get())&&U.identifier!==((h=this.j)==null?void 0:h.identifier)){var m=h=void 0,S=void 0,f=void 0;VE(this.zm.get(),"ocud","ccpi."+U.identifier+";ccpe."+U.event+";ccps."+U.startSecs+";\n ccpd."+U.k$+";pcpi."+((h=this.j)==null?void 0:h.identifier)+ ";pcpe."+((m=this.j)==null?void 0:m.event)+";\n pcps."+((S=this.j)==null?void 0:S.startSecs)+";pcpd."+((f=this.j)==null?void 0:f.k$)+";")}h=void 0;U.identifier!==((h=this.j)==null?void 0:h.identifier)&&UF("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.j=U,EuR(this,U)}}; g.H.QH=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.vX,this),this.X=null);this.listeners.length=0;this.us.length=0;g.p.prototype.QH.call(this)};g.H=BT.prototype;g.H.kz=function(K,W,U,h,m,S,f,G){return this.D.kz(K,W,U,h,m,S,f,G)}; g.H.N0=function(K,W){this.D.N0(K,W)}; g.H.Te=function(K,W,U){this.D.Te(K,W,U)}; g.H.Z1=function(K){this.D.Z1(K)}; g.H.OB=function(K,W,U,h,m,S,f,G){this.D.OB(K,W,U,h,m,S,f,G)}; g.H.VC=function(K){return this.D.VC(K)}; g.H.finishSegmentByCpn=function(K,W,U){U=hsY(U);this.D.finishSegmentByCpn(K,W,U)};g.V(ub,g.p);g.V(fde,g.p);g.V(XTC,g.p);g.V(vvF,g.p);g.V(LmD,g.p);g.V(qv2,g.p);g.V(cv,g.p);cv.prototype.N=function(){return this.X};g.V(Dg2,h4); Dg2.prototype.N=function(K){var W=K.content;if(W.componentType==="shopping-companion")switch(K.actionType){case 1:case 2:K=this.j.getVideoData(1);this.j.Fx("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId,shoppingCompanionCarouselRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.j,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:this.j.Fx("updateKevlarOrC3Companion",{})}else if(W.componentType==="action-companion")switch(K.actionType){case 1:case 2:K=this.j.getVideoData(1); this.j.Fx("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId,actionCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.j,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.j.getVideoData(1),this.j.Fx("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.j.Fx("updateKevlarOrC3Companion",{})}else if(W.componentType==="image-companion")switch(K.actionType){case 1:case 2:K=this.j.getVideoData(1);this.j.Fx("updateKevlarOrC3Companion", {contentVideoId:K&&K.videoId,imageCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.j,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.j.getVideoData(1),this.j.Fx("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.j.Fx("updateKevlarOrC3Companion",{})}else if(W.componentType==="top-banner-image-text-icon-buttoned")switch(K.actionType){case 1:case 2:K=this.j.getVideoData(1);this.j.Fx("updateKevlarOrC3Companion", {contentVideoId:K&&K.videoId,topBannerImageTextIconButtonedLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.j,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.j.getVideoData(1),this.j.Fx("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.j.Fx("updateKevlarOrC3Companion",{})}else if(W.componentType==="banner-image")switch(K.actionType){case 1:case 2:K=this.j.getVideoData(1);this.j.Fx("updateKevlarOrC3Companion", {contentVideoId:K&&K.videoId,bannerImageLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.j,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.j.getVideoData(1),this.j.Fx("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.j.Fx("updateKevlarOrC3Companion",{})}else if(W.componentType==="ads-engagement-panel")switch(W=W.renderer,K.actionType){case 1:case 2:this.j.Fx("updateEngagementPanelAction",W.addAction);this.j.Fx("changeEngagementPanelVisibility", W.expandAction);break;case 3:this.j.Fx("changeEngagementPanelVisibility",W.hideAction),this.j.Fx("updateEngagementPanelAction",W.removeAction)}else if(W.componentType==="ads-engagement-panel-layout"){var U=W.renderer;switch(K.actionType){case 1:case 2:this.j.Fx("updateEngagementPanelAction",{action:n$(U.addAction),layoutId:W.layoutId,onLayoutVisibleCallback:W.j,interactionLoggingClientData:W.interactionLoggingClientData});this.j.Fx("changeEngagementPanelVisibility",n$(U.expandAction));break;case 3:this.j.Fx("changeEngagementPanelVisibility", n$(U.hideAction)),this.j.Fx("updateEngagementPanelAction",{action:n$(U.removeAction)})}}};g.V(ii,qv);g.H=ii.prototype;g.H.init=function(K,W,U){qv.prototype.init.call(this,K,W,U);g.Zd(this.N,"stroke-dasharray","0 "+this.X);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.U.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.W.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.H.clear=function(){this.hide()}; g.H.hide=function(){jQ(this);qv.prototype.hide.call(this)}; g.H.show=function(){F1(this);qv.prototype.show.call(this)}; g.H.Yr=function(){this.hide()}; g.H.Ba=function(){if(this.j){var K=this.j.getProgressState();K!=null&&K.current!=null&&g.Zd(this.N,"stroke-dasharray",K.current/K.seekableEnd*this.X+" "+this.X)}};g.V(Sg,vh);g.H=Sg.prototype; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if(W.backgroundImage&&W.backgroundImage.thumbnail)if(W.actionButton&&g.P(W.actionButton,g.Jy))if(K=W.durationMilliseconds||0,typeof K!=="number"||K<=0)g.wG(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+K));else if(W.navigationEndpoint){var h=this.api.getVideoData(2);if(h!=null){var m=W.image.thumbnail.thumbnails;m!=null&& m.length>0&&g.YD(g.lP(m[0].url))&&(m[0].url=h.profilePicture,g.YD(g.lP(h.profilePicture))&&yWD("VideoPlayer",239976093,"Expected non-empty profile picture."));m=W.backgroundImage.thumbnail.thumbnails;m!=null&&m.length>0&&g.YD(g.lP(m[0].url))&&(m[0].url=h.S7());m=W.headline;m!=null&&g.YD(g.lP(m.text))&&(m.text=h.author)}this.J.init(Mq("ad-image"),W.image,U);this.U.init(Mq("ad-text"),W.headline,U);this.N.init(Mq("ad-text"),W.description,U);this.vp.init(Mq("ad-image"),W.backgroundImage,U);h=["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.U.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.V().L("enable_default_mono_cta_migration_web_client")?h.push("ytp-ad-action-interstitial-action-button-mono-dark"):h.push("ytp-ad-action-interstitial-action-button-dark");this.api.V().X&&(h.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.V().L("enable_default_mono_cta_migration_web_client")?h.push("ytp-ad-action-interstitial-action-button-mono-dark"):h.push("ytp-ad-action-interstitial-action-button-dark"));this.api.V().L("enable_unified_action_endcap_on_web")&&!this.api.V().X&&(this.api.V().L("enable_default_mono_cta_migration_web_client")?h.push("ytp-ad-action-interstitial-action-button-unified-mono"):h.push("ytp-ad-action-interstitial-action-button-unified"),this.JK.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.J.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Ik.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.J9.classList.add("ytp-ad-action-interstitial-card-unified"),this.uX.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.hK.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.Le.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.tK.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,h);g.k(this,this.actionButton);this.actionButton.U5(this.JK);this.actionButton.init(Mq("button"),g.P(W.actionButton,g.Jy),U);Hm(this.actionButton.element);h=vV(this.actionButton.element);W5(this.actionButton.element, h+" This link opens in new tab");this.navigationEndpoint=W.navigationEndpoint;this.W.S(this.Le,"click",this.Sg,this);this.W.S(this.uX,"click",this.Sg,this);this.api.V().X||this.W.S(this.hK,"click",this.Sg,this);this.j=this.s6?new mE(this.api,K):new p$(K);g.k(this,this.j);if(W.skipButton){(K=g.P(W.skipButton,azF))&&this.j&&(this.skipButton=new wL(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.j,this.aJ),g.k(this,this.skipButton),this.skipButton.U5(this.element),this.skipButton.init(Mq("skip-button"), K,U));if(U=W.adBadgeRenderer)if(U=g.P(U,T$n))K=new Or(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0,!0),K.U5(this.tK),K.init(Mq("simple-ad-badge"),U,this.macros),g.k(this,K);if(U=W.adInfoRenderer)if(U=g.P(U,gO))K=new F4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.element,void 0,!0),K.U5(this.tK),K.init(Mq("ad-info-hover-text-button"),U,this.macros),g.k(this,K)}else W.nonskippableOverlayRenderer&&(K=g.P(W.nonskippableOverlayRenderer,m$))&&this.j&&(this.X= new lj(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.j,!1),g.k(this,this.X),this.X.U5(this.element),this.X.init(Mq("ad-preview"),K,U));W.countdownRenderer&&(W=W.countdownRenderer,g.P(W,wsI)&&this.j&&(U=new ii(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.j),g.k(this,U),U.U5(this.element),U.init(Mq("timed-pie-countdown"),g.P(W,wsI),this.macros)));this.show();this.element.focus()}else g.wG(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.wG(Error("AdActionInterstitialRenderer has no button."));else g.wG(Error("AdActionInterstitialRenderer has no background AdImage."));else g.wG(Error("AdActionInterstitialRenderer has no description AdText."));else g.wG(Error("AdActionInterstitialRenderer has no headline AdText."));else g.wG(Error("AdActionInterstitialRenderer has no image."))}; g.H.clear=function(){g.Qa(this.W);this.hide()}; g.H.show=function(){XcD(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();vh.prototype.show.call(this)}; g.H.hide=function(){XcD(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();vh.prototype.hide.call(this)}; g.H.Sg=function(){this.navigationEndpoint&&(this.layoutId?this.s5.executeCommand(this.navigationEndpoint,this.layoutId):g.wG(Error("Missing layoutId for ad action interstitial.")))};var xZC={iconType:"CLOSE"},fV=new g.rt(320,63);g.V(qnF,vh);g.H=qnF.prototype; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);this.W=W;this.J=g.k4(this.W.onClickCommands||[]);this.tK=this.W.onErrorCommand||null;if(K=this.W.contentSupportedRenderer)K=this.W.contentSupportedRenderer,W=this.W.adInfoRenderer||null,g.P(K,D_W)?(this.U=g.$K("ytp-ad-overlay-ad-info-button-container",this.N.element),uY(this,W),K=tbs(this,g.P(K,D_W))):g.P(K,HRt)?(this.U=g.$K("ytp-ad-overlay-ad-info-button-container",this.X.element),uY(this,W),K=wgD(this,g.P(K,HRt))):g.P(K,rFZ)?(this.U=g.$K("ytp-ad-overlay-ad-info-button-container", this.j.element),uY(this,W),K=AXs(this,g.P(K,rFZ))):(g.wG(Error("InvideoOverlayAdRenderer content could not be initialized.")),K=!1);K&&(this.show(),AK$(this,!0))}; g.H.clear=function(){AK$(this,!1);this.Le.reset();this.uX=0;this.N.hide();this.logVisibility(this.N.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()}; g.H.uhx=function(){this.JK&&(this.layoutId?this.s5.executeCommand(this.JK,this.layoutId):g.wG(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.H.yb=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var K=this.W.closeButton.buttonRenderer;if(K.serviceEndpoint){K=[K.serviceEndpoint];break a}}K=[]}K=g.z(K);for(var W=K.next();!W.done;W=K.next())W=W.value,this.layoutId?this.s5.executeCommand(W,this.layoutId):g.wG(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.H.ySx=function(){this.vp||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.H.C9=function(){this.vp||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.C9("invideo-overlay")}; g.H.W6e=function(K){K.target===this.U&&g.$K("ytp-ad-button",this.Ik.element).click()};g.V(jwC,qv);g.H=jwC.prototype;g.H.init=function(K,W,U){qv.prototype.init.call(this,K,W,U);K=W.durationMs;this.N=K==null||K===0?0:K+this.j.getProgressState().current*1E3;if(W.text)var h=W.text.templatedAdText;else W.staticMessage&&(h=W.staticMessage);this.messageText.init(Mq("ad-text"),h,U);this.messageText.U5(this.X.element);this.W.show(100);this.show()}; g.H.clear=function(){this.hide()}; g.H.hide=function(){NRz(this,!1);qv.prototype.hide.call(this);this.X.hide();this.messageText.hide();jQ(this)}; g.H.show=function(){NRz(this,!0);qv.prototype.show.call(this);F1(this);this.X.show();this.messageText.show()}; g.H.Yr=function(){this.hide()}; g.H.Ba=function(){if(this.j!=null){var K=this.j.getProgressState();K!=null&&K.current!=null&&(K=1E3*K.current,!this.uX&&K>=this.N?(this.W.hide(),this.uX=!0):this.messageText&&this.messageText.isTemplated()&&(K=Math.max(0,Math.ceil((this.N-K)/1E3)),K!==this.U&&(Jx(this.messageText,{TIME_REMAINING:String(K)}),this.U=K)))}};g.V($S,vh);g.H=$S.prototype; g.H.init=function(K,W,U){vh.prototype.init.call(this,K,W,{});W.image&&W.image.thumbnail?W.headline?W.description?W.actionButton&&g.P(W.actionButton,g.Jy)?(this.N.init(Mq("ad-image"),W.image,U),this.X.init(Mq("ad-text"),W.headline,U),this.W.init(Mq("ad-text"),W.description,U),this.actionButton=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,["ytp-ad-underlay-action-button"]),W.backgroundColor&&g.Zd(this.element,"background-color",g.Ye(W.backgroundColor)),g.k(this,this.actionButton), this.actionButton.U5(this.U),this.actionButton.init(Mq("button"),g.P(W.actionButton,g.Jy),U),K=g.jV(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().L("place_shrunken_video_on_left_of_player")?(W=this.j,g.WR(W,"ytp-ad-underlay-left-container"),g.$C(W,"ytp-ad-underlay-right-container"),g.Zd(this.j,"margin-left",Math.round((K+.02)*100)+"%")):(W=this.j,g.WR(W,"ytp-ad-underlay-right-container"),g.$C(W,"ytp-ad-underlay-left-container")),g.Zd(this.j,"width",Math.round((1-K- .04)*100)+"%"),this.api.zx()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.iU.bind(this)),this.api.addEventListener("resize",this.g$.bind(this))):g.wG(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.wG(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.wG(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.wG(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.H.show=function(){ddp(!0);this.actionButton&&this.actionButton.show();vh.prototype.show.call(this)}; g.H.hide=function(){ddp(!1);this.actionButton&&this.actionButton.hide();vh.prototype.hide.call(this)}; g.H.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.iU.bind(this));this.api.removeEventListener("resize",this.g$.bind(this));this.hide()}; g.H.onClick=function(K){vh.prototype.onClick.call(this,K);this.actionButton&&g.Hj(this.actionButton.element,K.target)&&this.api.pauseVideo()}; g.H.iU=function(K){K==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):K==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):K==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.H.g$=function(K){K.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):K.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.Zd(this.X.element,"font-size",K.width/40+"px")};g.V(Qt,vh); Qt.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);W.toggledLoggingParams&&(this.toggledLoggingParams=W.toggledLoggingParams);W.answer&&g.P(W.answer,g.Jy)?(K=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),K.U5(this.answer),K.init(Mq("ytp-ad-survey-answer-button"),g.P(W.answer,g.Jy),U),K.show()):W.answer&&g.P(W.answer,Yz)&&(this.j=new Yd(this.api,this.layoutId,this.interactionLoggingClientData,this.s5, ["ytp-ad-survey-answer-toggle-button"]),this.j.U5(this.answer),g.k(this,this.j),this.j.init(Mq("survey-answer-button"),g.P(W.answer,Yz),U));this.show()}; Qt.prototype.nG=function(K){this.layoutId?Yy(this.s5,K,this.layoutId,this.macros):(K=new g.EB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.wG(K))}; Qt.prototype.onClick=function(K){vh.prototype.onClick.call(this,K);if(this.api.V().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Qt.prototype.clear=function(){this.hide()};g.V(vx,vh);vx.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);W.answer&&g.P(W.answer,Yz)&&(this.button=new Yd(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.U5(this.j),this.button.init(Mq("survey-none-of-the-above-button"),g.P(W.answer,Yz),U));this.show()};g.V(tM,fG);tM.prototype.init=function(K,W,U){fG.prototype.init.call(this,K,W,U);K=!1;W.text&&(W=g.Rb(W.text),K=!g.YD(W));K||g.eI(Error("No submit text was present in the renderer."))}; tM.prototype.onClick=function(K){this.publish("l");fG.prototype.onClick.call(this,K)};g.V(ms,vh); ms.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);if(K=W.skipOrPreviewRenderer)g.P(K,vW)?(K=g.P(K,vW),U=new sr(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.W,!0),U.U5(this.skipOrPreview),U.init(Mq("skip-button"),K,this.macros),g.k(this,U),this.j=U):g.P(K,m$)&&(K=g.P(K,m$),U=new lj(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.W,!1),U.U5(this.skipOrPreview),U.init(Mq("ad-preview"),K,this.macros),U.uX.show(100),U.show(),g.k(this,U), this.j=U);this.j==null&&(K=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(W)),g.wG(K));W.submitButton&&(K=W.submitButton,g.P(K,g.Jy)&&(K=g.P(K,g.Jy),U=new tM(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),U.U5(this.submitButton),U.init(Mq("survey-submit"),K,this.macros),g.k(this,U),this.X=U));if(K=W.adBadgeRenderer)K=g.P(K,T$n),U=new Or(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0,!0,!0),U.U5(this.N),U.init(Mq("simple-ad-badge"), K,this.macros),this.adBadge=U.element,g.k(this,U);if(K=W.adDurationRemaining)K=g.P(K,eDn),U=new pp(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.W,void 0,!0),U.U5(this.N),U.init(Mq("ad-duration-remaining"),K,this.macros),g.k(this,U);(W=W.adInfoRenderer)&&g.P(W,gO)&&(K=new F4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.element,void 0,!0),g.k(this,K),this.adBadge!==void 0?this.N.insertBefore(K.element,this.adBadge.nextSibling):K.U5(this.N),K.init(Mq("ad-info-hover-text-button"), g.P(W,gO),this.macros));this.show()}; ms.prototype.clear=function(){this.hide()};g.V(Ou,vh);Ou.prototype.init=function(K,W,U){vh.prototype.init.call(this,K,W,U);uTF(this)}; Ou.prototype.show=function(){this.N=Date.now();vh.prototype.show.call(this)}; Ou.prototype.B5=function(){};g.V(lSF,Ou);g.H=lSF.prototype;g.H.init=function(K,W,U){var h=this;Ou.prototype.init.call(this,K,W,U);W.questionText&&fIR(this,W.questionText);W.answers&&W.answers.forEach(function(m,S){g.P(m,Q1)&&zMC(h,g.P(m,Q1),U,S)}); this.U=new Set(this.X.map(function(m){return m.j.j})); (K=W.noneOfTheAbove)&&(K=g.P(K,B$3))&&tUL(this,K,U);W.surveyAdQuestionCommon&&h2p(this,W.surveyAdQuestionCommon);W.submitEndpoints&&(this.submitEndpoints=W.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()}; g.H.B5=function(){jML(this,!1);this.W.X.subscribe("l",this.M7e,this)}; g.H.onChange=function(K){K.target===this.noneOfTheAbove.button.j?AHp(this):this.U.has(K.target)&&(this.noneOfTheAbove.button.toggleButton(!1),jML(this,!0))}; g.H.M7e=function(){var K=[],W=this.X.reduce(function(m,S,f){var G=S.toggledLoggingParams;S.j&&S.j.isToggled()&&G&&(m.push(G),K.push(f));return m},[]).join("&"),U=this.submitEndpoints.map(function(m){if(!m.loggingUrls)return m; m=g.Dh(m);m.loggingUrls=m.loggingUrls.map(function(S){S.baseUrl&&(S.baseUrl=UR(S.baseUrl,W));return S}); return m}); if(U){U=g.z(U);for(var h=U.next();!h.done;h=U.next())h=h.value,this.layoutId?Yy(this.s5,h,this.layoutId,this.macros):g.wG(Error("Missing layoutId for multi_select_question."))}this.api.V().L("supports_multi_step_on_desktop")&&this.uX(K)}; g.H.clear=function(){this.api.V().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.V(cZ,Ou);cZ.prototype.init=function(K,W,U){var h=this;Ou.prototype.init.call(this,K,W,U);W.questionText&&fIR(this,W.questionText);W.answers&&W.answers.forEach(function(m,S){g.P(m,Q1)&&zMC(h,g.P(m,Q1),U,S)}); W.surveyAdQuestionCommon?h2p(this,W.surveyAdQuestionCommon):gu(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(W)));this.show()}; cZ.prototype.clear=function(){this.api.V().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.V(Mg,vh);Mg.prototype.init=function(K,W,U){var h=this;vh.prototype.init.call(this,K,W,U);if(this.api.V().L("supports_multi_step_on_desktop")){var m;this.conditioningRules=(m=W.conditioningRules)!=null?m:[];var S;this.X=(S=W.questions)!=null?S:[];var f;((f=W.questions)==null?0:f.length)&&Acs(this,0)}else(W.questions||[]).forEach(function(G){g.P(G,Fx)?zaF(h,g.P(G,Fx),U):g.P(G,uy)&&Nhz(h,g.P(G,uy),U)}); this.show()}; Mg.prototype.clear=function(){this.api.V().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Mg.prototype.W=function(K){var W=this;if(this.api.V().L("supports_multi_step_on_desktop")){var U;if((U=this.conditioningRules)==null?0:U.length){var h;if(K.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(m){return m.questionIndex===W.j})==null)g.wG(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(m){if(m.questionIndex===W.j)switch(m.condition){case "CONDITION_ALL_OF":var S;if((S=m.answerIndices)==null?0:S.every(function(G){return K.includes(G)}))h=m.nextQuestionIndex; break;case "CONDITION_ANY_OF":var f;if((f=m.answerIndices)==null?0:f.some(function(G){return K.includes(G)}))h=m.nextQuestionIndex; break;default:g.wG(Error("Expected specified condition in survey conditioning rules."))}}),h!=null)Acs(this,h); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.wG(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.V(Ui,vh); Ui.prototype.init=function(K,W,U){var h=this;vh.prototype.init.call(this,K,W,U);K=W.timeoutSeconds||0;if(typeof K!=="number"||K<0)g.wG(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+K));else if(W.timeoutCommands)if(W.text)if(W.ctaButton&&g.P(W.ctaButton,g.Jy))if(W.brandImage)if(W.backgroundImage&&g.P(W.backgroundImage,Cc)&&g.P(W.backgroundImage,Cc).landscape){this.layoutId||g.wG(Error("Missing layoutId for survey interstitial."));uOC(this.interstitial,g.P(W.backgroundImage, Cc).landscape);uOC(this.logoImage,W.brandImage);g.hs(this.text,g.Rb(W.text));var m=["ytp-ad-survey-interstitial-action-button"];m.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,m);g.k(this,this.actionButton);this.actionButton.U5(this.X);this.actionButton.init(Mq("button"),g.P(W.ctaButton,g.Jy),U);this.actionButton.show();this.j=new mE(this.api,K*1E3);this.j.subscribe("g",function(){h.transition.hide()}); g.k(this,this.j);this.S(this.element,"click",function(S){var f=S.target===h.interstitial;S=h.actionButton.element.contains(S.target);if(f||S)if(h.transition.hide(),f)h.api.onAdUxClicked(h.componentType,h.layoutId)}); this.transition.show(100)}else g.wG(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.wG(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.wG(Error("SurveyTextInterstitialRenderer has no button."));else g.wG(Error("SurveyTextInterstitialRenderer has no text."));else g.wG(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Ui.prototype.clear=function(){this.hide()}; Ui.prototype.show=function(){Uwe(!0);vh.prototype.show.call(this)}; Ui.prototype.hide=function(){Uwe(!1);vh.prototype.hide.call(this)};g.V(U0,qv);g.H=U0.prototype; g.H.init=function(K,W){qv.prototype.init.call(this,K,W,{});if(W.durationMilliseconds){if(W.durationMilliseconds<0){g.wG(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+W.durationMilliseconds));return}this.X=W.durationMilliseconds}else this.X=this.j.cE();var U;if((U=W.previewText)==null||!U.text||g.YD(W.previewText.text))g.wG(Error("No text is returned for AdPreview."));else{this.U=W.previewText;W.previewText.isTemplated||g.hs(this.N,W.previewText.text);var h; if(((h=this.api.getVideoData(1))==null?0:h.Ic)&&W.previewImage){var m,S;(K=((S=pSp(((m=W.previewImage)==null?void 0:m.sources)||[],52,!1))==null?void 0:S.url)||"")&&K.length?(this.previewImage=new g.GW({T:"img",Z:"ytp-preview-ad__image",B:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",K),g.k(this,this.previewImage),this.previewImage.U5(this.element)):g.wG(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; g.H.clear=function(){this.hide()}; g.H.hide=function(){jQ(this);qv.prototype.hide.call(this)}; g.H.show=function(){F1(this);qv.prototype.show.call(this)}; g.H.Yr=function(){this.hide()}; g.H.Ba=function(){if(this.j){var K=this.j.getProgressState();if(K!=null&&K.current)if(K=1E3*K.current,K>=this.X)this.transition.hide();else{var W;if((W=this.U)==null?0:W.isTemplated)if(W=Math.max(0,Math.ceil((this.X-K)/1E3)),W!==this.W){var U,h;(K=(U=this.U)==null?void 0:(h=U.text)==null?void 0:h.replace("{TIME_REMAINING}",String(W)))&&g.hs(this.N,K);this.W=W}}}};g.V(xX,vh); xX.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});var U,h;if((K=((h=pSp(((U=W.image)==null?void 0:U.sources)||[],nS$(W),!0))==null?void 0:h.url)||"")&&K.length){U=this.yH("ytp-ad-avatar");U.src=K;var m,S;if(h=(m=W.interaction)==null?void 0:(S=m.accessibility)==null?void 0:S.label)U.alt=h;switch(W.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(W.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.wG(Error("Failed to get imageUrl in AdAvatar."))}; xX.prototype.clear=function(){this.hide()}; xX.prototype.onClick=function(K){vh.prototype.onClick.call(this,K)};g.V(EY,vh); EY.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});var U;K=(U=W.label)==null?void 0:U.content;if((U=K!=null&&!g.YD(K))||W.iconImage){U&&(this.buttonText=new g.GW({T:"span",Z:"ytp-ad-button-vm__text",bX:K}),g.k(this,this.buttonText),this.buttonText.U5(this.element));var h,m,S=((h=W.interaction)==null?0:(m=h.accessibility)==null?0:m.label)||U?K:"";S&&W5(this.element,S+" This link opens in new tab");Hm(this.element);if(W.iconImage){h=void 0;if(W.iconImage){a:{m=W.iconImage;if(m.sources)for(m= g.z(m.sources),K=m.next();!K.done;K=m.next())if(K=K.value,S=void 0,(S=K.clientResource)==null?0:S.imageName){m=K;break a}m=void 0}if(m){var f;h={iconType:(f=m.clientResource)==null?void 0:f.imageName}}}f=wM(h,!1,this.X);f!=null&&(this.buttonIcon=new g.GW({T:"span",Z:"ytp-ad-button-vm__icon",K:[f]}),g.k(this,this.buttonIcon),W.iconLeading?(LB(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):U?(this.buttonIcon.U5(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.U5(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(W.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.L("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.j?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(W.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.eI(Error("AdButton does not have label or an icon."))}; EY.prototype.clear=function(){this.hide()}; EY.prototype.onClick=function(K){vh.prototype.onClick.call(this,K)};g.V(pAR,qv);g.H=pAR.prototype; g.H.init=function(K,W){qv.prototype.init.call(this,K,W,{});if(K=g.P(W.avatar,G5)){var U=W.headline;if(U){var h=W.description;if(h){var m=g.P(W.button,dP);m?(this.adAvatar.init(Mq("ad-avatar"),K),this.headline.init(Mq("ad-simple-attributed-string"),new yR(U)),this.description.init(Mq("ad-simple-attributed-string"),new yR(h)),U.content&&U.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Mq("ad-button"),m), this.startMilliseconds=W.startMs||0,this.api.zx()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.ju.bind(this)),F1(this)):g.wG(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.wG(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.wG(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.wG(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.H.Ba=function(){if(this.j){var K=this.j.getProgressState();K&&K.current&&1E3*K.current>=this.startMilliseconds&&(jQ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.H.Yr=function(){this.clear()}; g.H.onClick=function(K){this.api.pauseVideo();qv.prototype.onClick.call(this,K)}; g.H.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ju.bind(this))}; g.H.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();qv.prototype.show.call(this)}; g.H.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();qv.prototype.hide.call(this)}; g.H.ju=function(K){K==="hidden"?this.show():this.hide()};g.V(C3,vh);g.H=C3.prototype; g.H.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(!W.label||g.YD(W.label))g.wG(Error("No label is returned for SkipAdButton."));else if(g.hs(this.W,W.label),K=wM({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.L("delhi_modern_web_player_icons")),K==null)g.wG(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.GW({T:"span",Z:"ytp-skip-ad-button__icon",K:[K]}),g.k(this,this.N),this.N.U5(this.element),this.api.V().experiments.Rk("enable_skip_to_next_messaging")&&(W=g.lP(W.targetId)))this.X= !0,this.element.setAttribute("data-tooltip-target-id",W),this.element.setAttribute("data-tooltip-target-fixed","")}; g.H.onClick=function(K){K&&K.preventDefault();var W,U;Fbe(K,{contentCpn:(U=(W=this.api.getVideoData(1))==null?void 0:W.clientPlaybackNonce)!=null?U:""})===0?this.api.Fx("onAbnormalityDetected"):(vh.prototype.onClick.call(this,K),this.api.Fx("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.H.clear=function(){this.j.reset();this.hide()}; g.H.hide=function(){vh.prototype.hide.call(this)}; g.H.show=function(){this.j.start();vh.prototype.show.call(this);this.X&&this.api.V().experiments.Rk("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.V(yVR,qv);g.H=yVR.prototype; g.H.init=function(K,W){qv.prototype.init.call(this,K,W,{});K=g.P(W.preskipState,gCI);var U;if((U=this.api.getVideoData())==null?0:U.isDaiEnabled()){if(!K){g.wG(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.j);g.k(this,this.X);this.X.U5(this.element);var h;(h=this.X)==null||h.init(Mq("preview-ad"),K);(U=this.X)!=null&&(U.transition.show(100),U.show())}(U=g.P(W.skippableState,uL4))?(W.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=W.skipOffsetMilliseconds:(g.eI(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.N.init(Mq("skip-button"),U),this.show()):g.wG(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.H.show=function(){F1(this);qv.prototype.show.call(this)}; g.H.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.N&&this.N.hide();jQ(this);qv.prototype.hide.call(this)}; g.H.clear=function(){var K;(K=this.X)==null||K.clear();this.N&&this.N.clear();jQ(this);qv.prototype.hide.call(this)}; g.H.Yr=function(){this.hide()}; g.H.Ba=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var K;(K=this.X)!=null&&K.transition.hide();(K=this.N)!=null&&(K.transition.show(),K.show())}};g.V(zw,vh); zw.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(W.label){var U;((U=W.label)==null?0:U.content)&&!g.YD(W.label.content)&&(this.linkText=new g.GW({T:"span",Z:"ytp-visit-advertiser-link__text",bX:W.label.content}),g.k(this,this.linkText),this.linkText.U5(this.element));var h,m;if((h=W.interaction)==null?0:(m=h.accessibility)==null?0:m.label)W5(this.element,W.interaction.accessibility.label+" This link opens in new tab");else{var S;((S=W.label)==null?0:S.content)&&!g.YD(W.label.content)&&W5(this.element, W.label.content+" This link opens in new tab")}Hm(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.wG(Error("No label found in VisitAdvertiserLink."))}; zw.prototype.onClick=function(K){vh.prototype.onClick.call(this,K);this.api.onAdUxClicked(this.componentType,this.layoutId)}; zw.prototype.clear=function(){this.hide()};g.V(cH,vh); cH.prototype.init=function(K,W,U,h){vh.prototype.init.call(this,K,W,{});if(W.skipOrPreview){U=W.skipOrPreview;K=g.P(U,ke3);U=g.P(U,gCI);if(K)this.SI=new yVR(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X),g.k(this,this.SI),this.SI.U5(this.J),this.SI.init(Mq("skip-ad"),K);else{var m;U&&((m=this.api.getVideoData())==null?0:m.isDaiEnabled())&&(this.W=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X,1),g.k(this,this.W),this.W.U5(this.J),this.W.init(Mq("ad-preview"), U),m=this.W,m.transition.show(100),m.show())}if(m=g.P(W.skipOrPreview,ke3))var S=m.skipOffsetMilliseconds}W.playerAdCard&&(m=g.P(W.playerAdCard,FpN))&&(this.playerAdCard=new pAR(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X),g.k(this,this.playerAdCard),this.playerAdCard.U5(this.hK),this.playerAdCard.init(Mq("ad-avatar-lockup-card"),m));W.adBadgeRenderer&&((m=g.P(W.adBadgeRenderer,Io))?(this.N=new q4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0),g.k(this, this.N),this.N.U5(this.j),this.N.init(Mq("ad-badge"),m)):g.wG(Error("AdBadgeViewModel is not found in player overlay layout.")));W.adPodIndex&&(m=g.P(W.adPodIndex,YYt))&&(this.adPodIndex=new qM(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.adPodIndex),this.adPodIndex.U5(this.j),this.adPodIndex.init(Mq("ad-pod-index"),m));W.adInfoRenderer&&((m=g.P(W.adInfoRenderer,gO))?(this.adInfoButton=new F4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.element, void 0,!0),g.k(this,this.adInfoButton),this.N!==void 0?this.j.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.U5(this.j),this.adInfoButton.init(Mq("ad-info-hover-text-button"),m,this.macros)):g.eI(Error("AdInfoRenderer is not found in player overlay layout.")));var f;m=(f=this.api.getVideoData())==null?void 0:f.isDaiEnabled();W.adDurationRemaining&&m&&(f=g.P(W.adDurationRemaining,eDn))&&(this.adDurationRemaining=new pp(this.api,this.layoutId,this.interactionLoggingClientData, this.s5,this.X,h.videoAdDurationSeconds,!0),g.k(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.j.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.U5(this.j),this.adDurationRemaining.init(Mq("ad-duration-remaining"),f,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));W.visitAdvertiserLink&&(h=g.P(W.visitAdvertiserLink,zDh))&&(this.visitAdvertiserLink=new zw(this.api,this.layoutId, this.interactionLoggingClientData,this.s5),g.k(this,this.visitAdvertiserLink),this.visitAdvertiserLink.U5(this.j),this.visitAdvertiserLink.init(Mq("visit-advertiser-link"),h));W.adDisclosureBanner&&(W=g.P(W.adDisclosureBanner,$_O))&&(this.adDisclosureBanner=new wA(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.adDisclosureBanner),this.adDisclosureBanner.U5(this.uX),this.adDisclosureBanner.init(Mq("ad-disclosure-banner"),W));this.U=new x5(this.api,this.X,S,!0);g.k(this, this.U);g.HW(this.api,this.U.element,4);this.show()}; cH.prototype.clear=function(){this.hide()};g.V(Eb,vh);g.H=Eb.prototype; g.H.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(W!=null&&W.title)if(K=W.title)if(this.headline.init(Mq("ad-simple-attributed-string"),new yR(K)),K=g.P(W.moreInfoButton,dP)){if(this.moreInfoButton.init(Mq("ad-button"),K),W.descriptions)W.descriptions.length>0&&(K=W.descriptions[0])&&(this.j=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.j),this.j.U5(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.j.init(Mq("ad-simple-attributed-string"), new yR(K))),W.descriptions.length>1&&(W=W.descriptions[1])&&(this.X=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.X),this.X.U5(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(Mq("ad-simple-attributed-string"),new yR(W)))}else g.wG(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.wG(Error("No headline found in AdGridCardText."));else g.wG(Error("No headline found in AdGridCardText."))}; g.H.onClick=function(K){vh.prototype.onClick.call(this,K);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.H.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var K;(K=this.j)==null||K.clear();var W;(W=this.X)==null||W.clear()}; g.H.hide=function(){this.headline.hide();this.moreInfoButton.hide();var K;(K=this.j)==null||K.hide();var W;(W=this.X)==null||W.hide();vh.prototype.hide.call(this)}; g.H.show=function(){vh.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var K;(K=this.j)==null||K.show();var W;(W=this.X)==null||W.show()};g.V(ep,vh);ep.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(W!=null&&W.gridCards)if(W.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.wG(Error("Only single column style is currently supported in AdGridCardCollection."));else for(K=g.z(W.gridCards),W=K.next();!W.done;W=K.next()){if(W=g.P(W.value,nCW)){var U=new Eb(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);g.k(this,U);U.U5(this.element);U.init(Mq("ad-grid-card-text"),W);this.j.push(U)}}else g.wG(Error("No grid cards found in AdGridCardCollection."))}; ep.prototype.show=function(){for(var K=g.z(this.j),W=K.next();!W.done;W=K.next())W.value.show();vh.prototype.show.call(this)}; ep.prototype.clear=function(){this.hide();for(var K=g.z(this.j),W=K.next();!W.done;W=K.next())W.value.clear()}; ep.prototype.hide=function(){for(var K=g.z(this.j),W=K.next();!W.done;W=K.next())W.value.hide();vh.prototype.hide.call(this)};g.V(JF,qv);g.H=JF.prototype;g.H.init=function(K,W,U,h,m){m=m===void 0?0:m;qv.prototype.init.call(this,K,W,U,h);this.playerProgressOffsetMs=m;F1(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.TB.bind(this));this.api.addEventListener("resize",this.uU.bind(this));this.api.zx()?(this.X=!0,this.api.Yo(!0),this.show()):this.hide()}; g.H.Ba=function(){if(this.j){var K=this.j.getProgressState();K&&K.current&&!this.X&&1E3*K.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.Yo(!0),this.show())}}; g.H.Yr=function(){this.X&&this.api.Yo(!1);this.hide()}; g.H.clear=function(){this.api.Yo(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.TB.bind(this));this.api.removeEventListener("resize",this.uU.bind(this));jQ(this);this.hide()}; g.H.hide=function(){uy_(!1);qv.prototype.hide.call(this)}; g.H.show=function(){uy_(!0);qv.prototype.show.call(this)};g.V(Bs,JF);g.H=Bs.prototype; g.H.init=function(K,W,U,h){if(W!=null&&W.adGridCardCollection)if(W!=null&&W.adButton){var m=Number(W.playerProgressOffsetMs||"0");isNaN(m)?JF.prototype.init.call(this,K,W,U,h):JF.prototype.init.call(this,K,W,U,h,m);K=W.headline;U=g.P(W.adAvatar,G5);K&&U?(this.headline=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.headline),this.headline.U5(this.yH("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Mq("ad-simple-attributed-string"),new yR(K)), this.adAvatar=new xX(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.adAvatar),this.adAvatar.U5(this.yH("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Mq("ad-avatar"),U)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");K=g.P(W.adGridCardCollection,cFh);this.adGridCardCollection.init(Mq("ad-grid-card-collection"),K);W=g.P(W.adButton,dP);this.adButton.init(Mq("ad-button"),W); this.hide()}else g.wG(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.wG(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.H.onClick=function(K){(this.adButton&&g.Hj(this.adButton.element,K.target)||this.adAvatar&&g.Hj(this.adAvatar.element,K.target))&&this.api.pauseVideo();JF.prototype.onClick.call(this,K);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.H.uU=function(){}; g.H.clear=function(){this.hide();var K;(K=this.headline)==null||K.clear();var W;(W=this.adAvatar)==null||W.clear();this.adGridCardCollection.clear();this.adButton.clear();JF.prototype.clear.call(this)}; g.H.show=function(){var K;(K=this.headline)==null||K.show();var W;(W=this.adAvatar)==null||W.show();this.adGridCardCollection.show();this.adButton.show();JF.prototype.show.call(this)}; g.H.hide=function(){var K;(K=this.headline)==null||K.hide();var W;(W=this.adAvatar)==null||W.hide();this.adGridCardCollection.hide();this.adButton.hide();JF.prototype.hide.call(this)}; g.H.TB=function(K){K==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):K==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):K==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.V(Bd,vh); Bd.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(W.attributes===void 0)g.wG(Error("No attributes found in AdDetailsLineViewModel."));else if(W.style===void 0)g.wG(Error("No style found in AdDetailsLineViewModel."));else{K=g.z(W.attributes);for(var U=K.next();!U.done;U=K.next())if(U=U.value,U.text!==void 0){U=U.text;var h=W.style,m=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);g.k(this,m);m.U5(this.element);a:switch(h){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":h="ytp-ad-details-line__text--style-responsive"; break a;default:h="ytp-ad-details-line__text--style-standard"}m.element.classList.add(h);m.init(Mq("ad-simple-attributed-string"),new yR(U));this.j.push(m)}this.show()}}; Bd.prototype.show=function(){this.j.forEach(function(K){K.show()}); vh.prototype.show.call(this)}; Bd.prototype.clear=function(){this.hide()}; Bd.prototype.hide=function(){this.j.forEach(function(K){K.hide()}); vh.prototype.hide.call(this)};g.V(ur,vh);ur.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});var U,h;(K=((h=pSp(((U=W.image)==null?void 0:U.sources)||[]))==null?void 0:h.url)||"")&&K.length?(U=this.yH("ytp-image-background-image"),g.Zd(U,"backgroundImage","url("+K+")"),W.blurLevel!==void 0&&g.Zd(U,"filter","blur("+W.blurLevel+"px)"),W.gradient!==void 0&&(W=new g.y({T:"div",Hp:["ytp-image-background--gradient-vertical"]}),g.k(this,W),W.U5(this.element)),this.show()):g.wG(Error("Failed to get imageUrl in ImageBackground."))}; ur.prototype.clear=function(){this.hide()};g.V(vv,qv);g.H=vv.prototype;g.H.init=function(K,W){qv.prototype.init.call(this,K,W,{});g.Zd(this.N,"stroke-dasharray","0 "+this.X);this.show()}; g.H.clear=function(){this.hide()}; g.H.hide=function(){jQ(this);qv.prototype.hide.call(this)}; g.H.show=function(){F1(this);qv.prototype.show.call(this)}; g.H.Yr=function(){this.hide()}; g.H.Ba=function(){if(this.j){var K=this.j.getProgressState();K!=null&&K.current!=null&&g.Zd(this.N,"stroke-dasharray",K.current/K.seekableEnd*this.X+" "+this.X)}};g.V(KN,vh); KN.prototype.init=function(K,W){vh.prototype.init.call(this,K,W,{});if(QQF(W)){this.adAvatar=new xX(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);g.k(this,this.adAvatar);this.adAvatar.U5(this.yH("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Mq("ad-avatar"),g.P(W.adAvatar,G5));this.headline=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.s5);g.k(this,this.headline);this.headline.U5(this.yH("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(Mq("ad-simple-attributed-string"),new yR(W.headline));if(K=g.P(W.adDetailsLine,Q2I))this.detailsLine=new Bd(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.detailsLine),this.detailsLine.U5(this.yH("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Mq("ad-details-line"),K);this.adButton=new EY(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0);g.k(this,this.adButton); this.adButton.U5(this.yH("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Mq("ad-button"),g.P(W.adButton,dP));this.adBadge=new q4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,!0);g.k(this,this.adBadge);this.adBadge.U5(this.W);this.adBadge.init(Mq("ad-badge"),g.P(W.adBadge,Io));this.adInfoButton=new F4(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.element,void 0,!0);g.k(this,this.adInfoButton);this.adInfoButton.U5(this.W); this.adInfoButton.init(Mq("ad-info-hover-text-button"),g.P(W.adInfoRenderer,gO),this.macros);if(K=g.P(W.skipAdButton,uL4))this.skipAdButton=new C3(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.skipAdButton),this.skipAdButton.U5(this.element),this.skipAdButton.init(Mq("skip-button"),K);this.X=new p$(W.durationMilliseconds);g.k(this,this.X);if(K=g.P(W.countdownViewModel,iRh))this.j=new vv(this.api,this.layoutId,this.interactionLoggingClientData,this.s5,this.X),g.k(this, this.j),this.j.U5(this.yH("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.j.init(Mq("timed-pie-countdown"),K);if(W=g.P(W.imageBackground,ORf))this.imageBackground=new ur(this.api,this.layoutId,this.interactionLoggingClientData,this.s5),g.k(this,this.imageBackground),this.imageBackground.U5(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Mq("image-background"), W);this.show();this.element.focus()}}; KN.prototype.clear=function(){g.Qa(this.N);this.hide()}; KN.prototype.show=function(){Fh_(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();vh.prototype.show.call(this)}; KN.prototype.hide=function(){Fh_(!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.j&&this.j.hide();this.imageBackground&&this.imageBackground.hide();vh.prototype.hide.call(this)};g.V(LF,g.GP);g.H=LF.prototype;g.H.cE=function(){return 1E3*this.api.getDuration(this.O0,!1)}; g.H.stop=function(){this.j&&this.handler.GK(this.j)}; g.H.Ym=function(){var K=this.api.getProgressState(this.O0);this.X={seekableStart:K.seekableStart,seekableEnd:K.seekableEnd,current:this.api.getCurrentTime(this.O0,!1)};this.publish("h")}; g.H.getProgressState=function(){return this.X}; g.H.RH=function(K){g.M9(K,2)&&this.publish("g")};var WnW="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.V(Yh,h4); Yh.prototype.N=function(K){var W=K.id,U=K.content,h=U.componentType;if(!WnW.includes(h))switch(K.actionType){case 1:K=this.api;var m=this.s5,S=U.layoutId,f=U.interactionLoggingClientData,G=U instanceof jj?U.s6:!1,I=U instanceof jj||U instanceof Pk?U.aJ:!1;f=f===void 0?{}:f;G=G===void 0?!1:G;I=I===void 0?!1:I;switch(h){case "invideo-overlay":K=new qnF(K,S,f,m);break;case "player-overlay":K=new Ti(K,S,f,m,new LF(K),I);break;case "player-overlay-layout":K=new cH(K,S,f,m,new LF(K));break;case "survey":K= new Mg(K,S,f,m);break;case "ad-action-interstitial":K=new Sg(K,S,f,m,G,I);break;case "video-interstitial-buttoned-centered":K=new KN(K,S,f,m);break;case "survey-interstitial":K=new Ui(K,S,f,m);break;case "ad-message":K=new jwC(K,S,f,m,new LF(K,1));break;case "player-underlay":K=new $S(K,S,f,m);break;case "display-underlay-text-grid-cards":K=new Bs(K,S,f,m,new LF(K));break;default:K=null}if(!K){g.eI(Error("No UI component returned from ComponentFactory for type: "+h));break}g.r5(this.components,W)? g.eI(Error("Ad UI component already registered: "+W)):this.components[W]=K;K.bind(U);U instanceof i8?this.X?this.X.append(K.NE):g.eI(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(K.NE);break;case 2:W=p0e(this,K);if(W==null)break;W.bind(U);break;case 3:U=p0e(this,K),U!=null&&(g.vZ(U),g.r5(this.components,W)?(U=this.components,W in U&&delete U[W]):g.eI(Error("Ad UI component does not exist: "+W)))}}; Yh.prototype.QH=function(){g.Pz(Object.values(this.components));this.components={};h4.prototype.QH.call(this)};g.V(rAe,g.wP);g.H=rAe.prototype;g.H.create=function(){try{Sy$(this),this.load(),this.created=!0,Sy$(this)}catch(K){UF(K instanceof Error?K:String(K))}}; g.H.load=function(){try{W2Y(this)}finally{TI(jP(this.j).hB)&&this.player.CN("ad",1)}}; g.H.destroy=function(){var K=this.player.getVideoData(1);this.j.j.Y8.qK(K&&K.clientPlaybackNonce||"");this.unload();this.created=!1}; g.H.unload=function(){g.wP.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(W){UF(W instanceof Error?W:String(W))}if(this.X!=null){var K=this.X;this.X=null;K.dispose()}this.N.reset()}; g.H.tZ=function(){return!1}; g.H.getAdState=function(){return-1}; g.H.getOptions=function(){return Object.values(KnZ)}; g.H.yA=function(K,W){W=W===void 0?{}:W;switch(K){case "replaceUrlMacros":return K=W,K.url?(W=uXe(this.player),Object.assign(W,K.u4m),K=g.eK(K.url,W)):K=null,K;case "onAboutThisAdPopupClosed":this.yB(W);break;case "executeCommand":K=W;K.command&&K.layoutId&&this.executeCommand(K);break;default:return null}}; g.H.Wg=function(K){var W;return!((W=this.j.j.K5)==null||!W.get().Wg(K))}; g.H.yB=function(K){K.isMuted&&JJz(jP(this.j).tB,jP(this.j).RP,K.layoutId);this.MV&&this.MV.yB()}; g.H.executeCommand=function(K){jP(this.j).s5.executeCommand(K.command,K.layoutId)};g.Vk("yt.player.Application.create",g.ye.create);g.Vk("yt.player.Application.createAlternate",g.ye.create);tZD(Ym(),LL4);var UXh=g.vB("ytcsi.tick");UXh&&UXh("pe");g.Q5("ad",rAe);g.V(g.CN,g.p);g.CN.prototype.start=function(K,W,U){this.config={from:K,to:W,duration:U,startTime:(0,g.AI)()};this.next()}; g.CN.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.CN.prototype.next=function(){if(this.config){var K=this.config,W=K.from,U=K.to,h=K.duration;K=K.startTime;var m=(0,g.AI)()-K;K=this.j;h=V2s(K,m/h);if(h==0)K=K.Y;else if(h==1)K=K.J;else{m=dW(K.Y,K.U,h);var S=dW(K.U,K.G,h);K=dW(K.G,K.J,h);m=dW(m,S,h);S=dW(S,K,h);K=dW(m,S,h)}K=g.Jk(K,0,1);this.callback(W+(U-W)*K);K<1&&this.delay.start()}};g.V(g.h8,g.y);g.H=g.h8.prototype;g.H.hasSuggestions=function(){return this.suggestionData.length>0}; g.H.oH=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.H.show=function(){g.y.prototype.show.call(this);BfC(this)}; g.H.PH=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.H.vD=function(){this.IW(this.api.xx().getPlayerSize())}; g.H.IW=function(K){var W=this.api.isEmbedsShortsMode()?.5625:16/9,U=this.api.Hu();K=K.width-(U?112:58);U=Math.ceil(K/(U?320:192));var h=(K-U*8)/U;W=Math.floor(h/W);for(var m=g.z(this.j),S=m.next();!S.done;S=m.next())S=S.value.yH("ytp-suggestion-image"),S.style.width=h+"px",S.style.height=W+"px";this.suggestions.element.style.height=W+"px";this.W=h;this.Y=W;this.containerWidth=K;this.columns=U;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Bo(this)}; g.H.onVideoDataChange=function(){var K=this.api.V(),W=this.api.getVideoData();this.U=W.Mk?!1:K.W;this.suggestionData=W.suggestions?g.yb(W.suggestions,function(U){return U&&!U.playlistId}):[]; L$C(this);W.Mk?this.title.update({title:g.BB("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:W.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.H.scrollTo=function(K){K=g.Jk(K,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.G.start(this.scrollPosition,K,1E3);this.scrollPosition=K;g.Bo(this);BfC(this)};})(_yt_player);