var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var N="1970-01-01T08:45:00.000+08:45;cmo=;splice;get;rr;?;slice;url;set;S;Untrusted URL;length;path;/videoplayback;push;vD;T;scheme;sp;;s;match;1;toString;forEach;indexOf;G;fromCharCode;split;assign;1969-12-31T16:16:03.000-07:45;reverse;W;local;startsWith;undefined;1969-12-31T23:01:14.000-01:00;signatureCipher;SlqIJlkQXdYtZ4ByuH-_w8_;:;=;/file/index.m3u8;redirector.googlevideo.com;rr?[1-9].*\\.c\\.youtube\\.com$;\\\\{,;file;ah;TM;//;prototype;r;a1.googlevideo.com;join;&;/initplayback;clone;/;cmo;cmo=pf;unshift;mn;\\.a1\\.googlevideo\\.com$;1969-12-31T14:15:37.000-09:45;null;playerfallback;,;://;/api/manifest;youtube.player.web_20250707_21_RC00;Nk;fallback_count;%3D;cmo=td;n;---;\\.googlevideo\\.com$;www.youtube.com;fvip;v5;replace;7MuE;https://local;K6;pop;http://local;index.m3u8;function;YUg1".split(";"), Yb,tLi,iLi,y6,gbL,LLb,UL,qLL,CL,zpr,M1,FD,sL,jL,VLp,N3c,ac,xb,l$L,kb,HLL,nL,$b,wW6,Ar,SL,Ic,Rc,BW,WL3,PW,gL,yrD,U11,Cin,wL,MLn,FLL,yv,sc6,jcr,CH,bLL,obi,KH,d1b,$y,GnL,Qcn,nH,rrW,crD,uDi,epW,DC,gh,JrL,pWp,zR,wh,vbr,Fh,j$,ZX,bv,o7,dh,x1L,GR,Qo,rh,Ebb,OLL,uv,nbi,pu,Ku,$p,TR,S$,I7,f$3,$1c,R7,PZ,BZ,T3D,Arn,SL6,I$L,B3i,ha,ta,is,gk,Y2,qr,zD,hP6,ls,wk,Wz,yz,XL,C0,Mr,tEi,FL,sb,bs,gy$,Y0L,Ln1,oE,GD,Qz,us,ee,p0,vz,WnL,y33,X11,Uh6,K0,Cl$,aE,x2,Eb,MEL,k2,FnW,jvp,$2,Aa,RE,Pz,mg,oyD,bHr,c3D,Qvr,eP1,gS,Y9,Nl,vyp, aC6,KnL,Hb,Wb,xhn,wS,Ml,hf,ks1,Eyb,Gf,ZP,Dj,OHL,Q_,cb,rS,nyL,er,fCL,p7,vb,K7,aL,x9,EO,k9,n7,f7,Sr,IL,Pb,TLL,S0L,A36,ICD,RPr,ge,YM,LQ,Pln,qG,mhL,zv,lp,Ht,hNL,t$n,Yw1,iun,LIc,Nh$,we,V$6,qwL,Wt,yL,lX3,Xy,Hun,U2,WIp,wZc,ydn,XZi,s2,jW,UnD,Cvi,M$W,Zm,bp,FI$,bu6,ot,opL,dnL,uhD,re,cdi,GRc,Jdn,KI$,up,Ju,vt,pQ,aXc,KQ,at,xM,O2,nQ,fQ,Tv,fXb,Au,$nn,It,Bt,IX$,tQ,gn,Lf,RNn,YJ,BhD,Pvp,qH,ik,zl,Vd,mnD,NH,Hp,hOL,wn,Wp,yd,g26,jh,Ybb,LgL,qbc,zOL,sV,FN,XN,teW,i0n,VeL,ljD,H0r,wz3,oV,dn,Gl,Wgb,cp,eh,JQ,pf,ya6,UrL,xJ,Csc, OV,kJ,Z0L,ff,nf,b0i,drp,AQ,$J,GDn,Sh,IV,RV,Tl,Pp,Bp,DB,m9,Ym,QEL,hA,im,Ld,raL,q7,caL,zE,Vr,wb,WF,yr,N7,HF,lm,U5,uLb,Cd,eO3,M7,pzD,bm,v2c,o3,gb,db,GE,Qr,ajp,rb,cF,e3,JA,pd,vF,Kd,xrL,a3,E2L,xm,E5,km,nd,O5,fd,$m,TE,AA,S3,kD1,n2L,R3,fjD,$rp,TkL,PF,mQ,lV,Sb$,H7,RO$,w6,Psp,W7,yp,XB,mr6,UQ,DrW,CR,hwL,trc,MQ,i7c,FB,sQ,j7,g9r,bV,oW,L3i,Qp,VrL,YOi,r6,uV,e7,H76,NSp,pR,nR,wbL,yfL,XbD,fR,$6,T3,S7,IW,RW,B7,Mr1,F3n,sLn,Z7L,b71,mX,Di,o96,hk,dlW,GfL,rfi,Jfn,tk,pbp,v9b,K3L,aPr,xlp,Yn,E9n,qw,O7$,Nw,lo,fPp,Hy,wp,Wy, $l6,TSL,UM,Cr,sM,j9,SOb,IPb,Rw1,QC,GF,dp,BS$,PIc,ml1,rp,cy,uo,hcn,Kr,aO,iQb,gMi,Y2L,xn,EM,LVD,q2c,kn,zcp,VWi,Neb,lmL,$n,nr,TF,Ak,S9,HQL,wtn,WV3,IO,RO,yur,By,XtL,UGc,Cpp,Py,UHp,ml,DU,Cki,Mhc,F9L,sVW,jV$,ZfL,iy,g_,Yr,q_,dH6,zj,VF,GlL,oJL,LP,QVD,N_,ly,Hx,Wx,w_,rQL,cQD,uNn,CP,JQ$,M_,vJc,K93,aBL,xHp,EJp,kln,OfL,nJr,j8,Zy,by,$HL,fBL,Tn1,AQr,d_,SV$,Gj,IB1,RkW,QF,r_,cx,Bnb,e8,JN,Pkc,pP,vx,KP,aK,xr,Ei,kr,Oi,mH$,DHL,hgL,t3c,nP,idL,Y5W,gmb,$r,Tj,q5$,LQb,Nbn,wFW,Hdi,AN,WQ$,yA$,XFL,Cm1,U7L,M3i,S8,FQn,s3L,RK,j33, Zd3,bd6,omp,Bx,d7i,Px,GEb,ma,Dy,rAn,hO,cAL,tO,ix,uvp,eg$,gD,LG,pFr,qJ,JAL,vmr,KQb,ari,Emi,z_,kEr,lx,HE,nmD,frc,AAL,S5b,wD,WE,yi,XQ,UE,CG,MJ,FQ,sE,ju,Zl,bx,oC,PmL,BbD,m7c,hHL,D71,iRW,RgL,t7L,Irn,dD,G_,YQ6,LX3,qQ6,KG,aC,xA,Qi,V7L,EE,g6L,liW,HR3,N6L,kA,OE,nG,fG,w73,zHr,WXD,$A,yKc,X7L,UQ1,CVW,M7L,jWL,ZRi,bRL,o6L,T_,AO,dQW,G3c,cKp,uBr,Su,RC,JK6,BE,IC,v6L,p7b,KXW,aip,xQL,mR,Dl,k33,ORL,n6D,fii,$Qi,T6$,AK3,SQp,Iin,RHr,to,iJ,gi,Yi,LX,qB,B6D,DQp,h0W,t9D,gnW,irL,YMi,NB,lJ,Llb,qMp,z01,H6,wi,W6,yf,XX,Uh,CX,MB, V9r,sh,lU3,Z0,Hr6,wyD,bJ,or,di,Qf,Gu,WlL,XyL,ri,P7,jL6,pX,Uwn,Cor,v6,M9n,Jo,sOp,Fli,e1,KX,ar,jOr,ZrL,brp,on3,xi,dwL,Eh,mQL,PVL,ki,Oh,fX,$i,rk6,Tu,Ao,Ir,ck6,uzi,Rr,Klr,Lm,Jkc,vnp,mj,P6,NF,lF,aUp,Wk,xwb,ym,X3,Enb,Ori,fUn,dB,Qm,SML,IUL,R01,rB,DwL,bF,Tpn,t8D,mw3,BpL,PoD,iPL,h36,uF,pm,Yi6,Lai,qii,z3L,V8L,Km,N_D,xc,lyb,WaL,yNL,EW,U_i,M8L,CyW,Fap,OW,$c,IR,Bk,Pk,m7,DL,hg,ZP6,bPL,or3,tg,id,RR,g5,Ys,L2,PE,qf,d_p,VZ,rNi,Nf,ld,uMW,cNn,e33,JNi,px1,Hm,vrL,Kab,ayW,w5,Wm,Err,nrc,fyL,yZ,SiD,ANc,IyL,R3n,B_c,XW,Pyc, $_p,UK,m_r,D_L,C2,tu$,iG6,gA1,YE6,LRb,FW,qEi,zdL,Vun,NDL,wEp,ll3,sK,jw,ZR,bd,oG,d5,GJ,QZ,yOW,cm,r5,XEn,ew,Muc,ud,FR1,sCD,dJL,jCD,ZGW,bGc,oAL,Jg,p2,vm,G_3,K2,aG,xs,EK,ks,OK,edL,QC1,TJ,uQD,Ag,cOL,$s,n2,rOD,f2,IG,pEc,Bm,RG,vA6,KRc,i3,gs,LE,EAc,Y4,Vc,k_r,Nb,ali,fl6,$Jr,TD$,ws,W$,yc,AOp,Xu,U8,CE,Mb,SEL,Fu,s8,jj,Il6,Rdn,Zz,BD6,OPb,mJn,DJL,h6i,t1L,giL,PxL,Yh1,z6L,oh,GU,NiL,l0D,HXb,w6L,yoL,c$,rs,X6p,WjW,Fj6,M1n,jrb,ej,ZXD,u3,pE,bXL,v$,ah,k4,oii,dBD,Sj,GuW,Rh,QrD,ro3,Y1,coW,e61,LS,Jo$,p6p,EiW,vi3,Nz,lA,HM, WM,y8,$Br,Xg,UB,CS,AoL,sB,ShL,I0L,jl,Bi3,bA,oo,d$,Gb,PJp,Q8,cM,uA,el,Jp,mBn,DB1,hjL,vM,KS,ao,x1,EB,k1,ttL,im3,gcL,YWc,L7r,qWL,OB,zj$,Io,Vt1,NBD,lLD,Ro,PM,mK,DW,ib,g0,Y5,wkL,zq,Vj,Nu,W7L,yH3,lb,Xkn,UFD,w0,ocL,dF6,Gcc,WB,QRp,rHr,ejL,Xk,pkD,JH3,vcL,aLL,xFi,Mu,Fk,Ecp,sy,jR,ZF,bb,op,d0,Gq,Qj,r0,cB,ub,eR,JT,p$,kcD,Omb,nc6,x5,k5,fLp,$5,Tq,AT,SR,Ip,BB,PB,SWD,mi,DF,h7,RjL,IL1,$Fb,gj,iZ,DFi,Li,yR,H2,Xx,UA,twp,Mc,LoL,gsL,YK6,z_L,wm3,Vwp,lRc,H23,h_i,sA,Fx,ygL,bZ,oF,dj,XmL,ea,UfW,J7,pi,v2,aF,Cd6,EA,kT,MwD,OA, ni,sGr,Tz,Sa,IF,RF,B2,P2,mJ,DH,hG,tG,Z2L,ie,LY,YI,osr,rgL,GJ1,QGW,cgD,uW3,JgL,pmD,e_L,KoL,VS,NM,wK,aRL,xfL,HY,WY,kJ1,O2L,T56,$fr,CY,MM,F4,sa,jq,SKc,IR$,cY,ue,R_p,B5L,PdW,KY,az,xI,mfL,DfL,tjL,g46,nY,Y8b,TI,fY,Iz,Rz,PY,LS$,YL,Lj,qq,zY,Nq,lj,wI,lzn,HE6,yQ,w$n,WSc,Ux,ySD,X$b,Cj,Mq,UbL,C33,FSb,Zb,jhp,ZE$,sx,bE$,o4L,GU$,dbL,GY,shW,rSD,cSb,Jq,uj,uun,etb,pj,vq,JS3,p$L,xL,v4i,KS$,azc,xb6,fj,E4n,kUr,OE3,n4L,fzc,$bW,TsL,ASi,TY,S81,S4,RtD,BsL,P3$,mbp,Db6,IY,hn,tl$,YB1,tn,LKL,zzr,hz6,VlL,N$L,lWL,iSr,g1$,RY,Bq, Db,qBr,mP,Pq,HSc,wML,WKL,ypn,XMr,Uzi,jor,CAn,qP,zg,NP,o16,Qop,Gbr,VJ,wd,rpL,X9,cpL,ezL,so,ugp,OSL,JpL,kbL,o_,n1W,T$n,dd,bN,fWp,$zb,Ap6,QJ,IW$,RzL,B$i,PAp,mzn,Dz$,hYW,SBb,i$L,g5D,Yy1,qy6,LiL,VR6,es,N0L,Jn,pN,ve,lF6,H$D,xC,Eo,WiW,wBi,kC,yTb,UuD,MRL,CbL,Fi6,Z$r,spL,Pe,YF,DE,b$c,mE,Lx,qe,zd,VG,o5L,lS,Gqp,W3,wr,X2,UP,Cx,Me,QpL,F2,jM,rT6,bS,dr,Gd,cTb,ukD,eY1,JTi,QG,c3,pBi,uS,eM,Jl,Ki6,px,v3,aFn,aP,kF,EP,xF,OP,nx,kqp,ATW,IFL,T0L,$uD,Sy3,Td,IP,muc,RYL,B06,PbL,E5L,zXD,YU,qAL,lHD,LJp,$F,Lt,mY,ic,Vai,B3,n56, O$1,fF1,SM,YA$,NX,Ucr,lc,MaL,FJL,sFp,wv,jFp,Zii,biL,dcL,GzD,Xd,r7D,Ue,c73,uxc,J71,p26,vTW,MX,KJi,xcn,Fd,ET6,se,jz,hq,Tjc,BjL,Qy,mc3,tqL,cD,gIb,YaL,LeL,nt,Oe,qaL,Ee,dzr,aA,kU,xU,uc,BD,RA,m2,hs,Vqp,ts,g7,Y7,NKi,lZr,z6,wYW,We$,yGc,HH,XYD,UML,CeL,Mqp,Fei,szL,jzW,w7,ZYc,WH,US,bY3,oIi,dML,GIc,Qz$,Cc,Mk,rGb,cGp,u4n,eLD,JGi,pYW,vIn,Zc,bR,o$,Kec,d7,aZi,QI,EIL,xML,cH,uR,eT,Js,kIL,pc,vH,OY6,nIL,Kc,a$,AGD,fZn,TKL,$Mn,x7,ES,k7,Sap,IZn,RLL,OS,Pep,haL,DM3,nc,fc,$7,T6,As,I$,R$,BH,PH,mU,Dc,t4p,ijc,gLW,hZ,tZ,i9,gP, Ls,zT,qxD,LPW,NK,zar,l9,HC,wP,WC,y0,Cs,MK,FA,s6,jp,Z7,b9,oD,lbL,dP,GT,Q0,Hjr,WPc,ep,yq$,JZ,ps,Cjb,M4L,FPW,jY$,bj3,ku,oLc,ns,O6,QYp,rqW,cqi,$u,TT,eaL,Sp,ID,RD,BC,pqL,PC,m1,D7,vLL,h2,JqW,t2,iW,abL,KPL,g2,Yo,LU,qT,VD,ELD,kY6,lW,HN,WN,yD,Ojr,w2,$qL,TID,Aq$,Sx1,IbL,RaL,BI6,UH,X0,fbL,Dqc,CU,tsp,iNi,ZN,gCr,F0,sH,Yoc,bW,qob,Vsc,of,d2,NdL,Gr,HNW,QD,CNi,Xe6,weL,yn3,WE1,cN,uW,eC,J2,pU,vN,KU,xo,FEW,ZNL,OH,eHD,nU,bNL,dPi,$o,If,Tr,SC,A2,rnL,Q_$,Ggp,cnb,Rf,u9L,vCL,BN,mD,aEL,DN,hY,tY,iT,xPb,ECi,gX,Ya,LW,kgn,ONL, z1,Hf,wX,Wf,yY,Xw,Uz,CW,M6,Fw,sz,jm,Z1,bT,nCL,fEL,oi,dX,G1,QY,rX,ka,$P3,Td6,Oz,T1,IEp,Rx6,AY,Sm,D1,PNL,mPb,iw,DP$,hon,Lb,tMD,gF$,ix3,YPp,LYb,qP1,zoL,VMi,NrD,Hx3,lkb,w31,X3L,CS6,ylr,MM3,FYc,jPc,z7,VM,bxL,Zx6,Np,lw,HL,dei,wN,WL,yM,QPL,rlb,Xe,GdW,U7,eo$,Cb,Mp,Fe,s7,jN,ZY,bw,oT,dN,G7,QM,rN,cL,uw,eN,JP,pb,vL,Kb,aT,xB,E7,kB,O7,nb,fb,$B,T7,AP,SN,IT,RT,BL,PL,mk,DY,hW,tW,iM,gM,YV,LZ,qC,zK,VK,NC,lM,Hn,wM,Wn,yK,X7,Uc,CZ,MC,F7,sc,jk,Zp,bM,oS,dM,GK,QK,rM,cn,uM,ek,JW,pZ,KZ,aS,p3p,xV,P,Ec,vn,kV,Oc,nZ,KYi,$V,xe3, fZ,EFn,AW,kdL,IS,TK,RS,Bn,Pn,Dp,nFL,fkL,$eL,TrL,Va,No,YO,lL,SPp,Ikb,RoL,BrD,Oxn,PSb,my,meL,Den,wy,CV,WV,t8,hrb,h8,HV,ya,Mo,iti,iL,gy,UX,Xq,gU3,Fq,sX,j6,Z2,Yer,bL,oZ,dy,G4,Qa,L2p,qe1,VzL,Nv$,uL,e6,HtL,J8,XD1,CcD,F2W,sA$,vV,ZtW,btL,OX,oU6,nV,fV,$O,T4,A8,S6,dXp,QAL,rVL,GaL,cV3,udW,PV,mt,he,gA,Y0,L4,er$,q0,JVL,zW,Vw,D2,HR,wA,WR,yw,pD6,lf,K2L,XI,aDL,xXc,Uu,EUL,C4,M0,kar,Ot1,FI,nUL,fDL,jQ,$X$,Tvi,AVn,Se$,ZA,bf,IDD,Rrr,oQ,dA,GW,BvL,Qw,rA,cR,uf,Pc3,eQ,Je,mXn,p4,DXb,vR,hS$,tTL,ic3,g7i,YSn,LU3,K4,qSL,zSb,VTc, aQ,N7L,x0,lc3,Eu,HcL,k0,wHc,WUW,Ou,Ae,ysi,SQ,IQ,RQ,BR,XHL,PR,mT,DA,Uk3,CRr,ty,i_,FU6,gq,s$b,j$i,MTi,Zc3,bcL,o7D,LA,dkL,qS,Vb,NS,G6b,l_,Hd,Wd,Q$b,yb,XS,rsL,CA,sF,MS,ou,dq,cs3,Gk,uR3,rq,cd,u_,eS6,Jy,Js6,vd,KA,au,Zd,xW,kW,OF,pH3,nA,fA,$W,v7L,Tk,Ay,S2,Iu,Ru,Bd,mm,Dd,h0,t0,KUc,acc,xkL,L_,i8,qO,zQ,E7c,k6L,Ocn,VT,NO,l8,n7L,fcL,Y_,$kn,T7n,Hs,AsL,wt,Ws,Xr,Uk,C_,MO,Fr,j0,Zo,o6,dt,GQ,QT,b8,RSc,B7n,cs,u8,e0,PRn,p_,DkW,vs,K_,hZ3,a6,Ek,Ok,tpn,k_,n_,f_,$_,isW,S0,Y6b,L1n,q6i,R6,I6,zZ6,Vpc,NPb,Bs,HsD,J0,l73,wCr,Ps, W1r,m$,yZD,Do,XCL,UKi,C9i,Mpc,F1L,hi,jDb,sDr,ti,LK,Zs3,qt,bsL,zw,oub,dKn,VN,GTL,QDL,rZD,cZL,Nt,uAL,lt,JZ3,w9,WO,vup,pCn,K1L,a7L,xK$,XJ,Uj,CK,EuL,kTn,Osr,nu$,f7i,$Kb,TPL,AZW,S6L,I7b,FJ,sj,RZD,BPL,jS,Zu,P9L,bt,o0,Gw,mKp,QN,r9,cO,DK6,ut,hIi,eS,tCD,Ji,iUL,goD,pK,YH1,LDW,qH$,vO,KK,a0,xG,Ej,zI1,VCb,kG,Oj,nK,N2L,fK,$G,Tw,Ai,SS,lNi,HUr,I0,R0,wNb,BO,PO,mO,Du,zrD,WDc,y2n,hj,XNr,UTL,CWr,tj,i0,gU,Yf,LF,qx,zL,Vx,Nx,l0,HX,MCn,FDn,dU,GL,jfL,Qx,vX,cX,xf,Qf$,J2L,r2i,pNL,KD$,aNW,vo6,xT3,Eo1,krW,BX,fNb,A23,T23,INL, RIp,B26,h_,t_,mTc,DTb,gab,iB,Yz1,huL,gC,YK,Ln,q$,qzD,NXD,zui,wfb,F5r,Mmc,W5$,si3,Vk,XfL,yY$,bWW,G1L,d63,uwp,Qib,N$,lB,K5L,WU,a1L,$6D,f1L,na6,OWL,EaL,Szp,AYi,k1r,m6L,PTi,D6i,M$,ibL,h56,tN6,x6L,gB3,Y71,yk,Um,RuL,I1r,BXL,Lkc,XP,TXp,z5b,NNL,HbL,WkL,UpW,CwL,Fk6,sTn,ZbD,jTL,QTD,oB3,bbW,rPD,e5c,JPp,pL6,vBb,cU,mG,xpL,Kkr,J_,Kn,ay,nBc,fYD,Ob$,xK,$pi,Em,kK,IZ,Om,no3,nn,fn,$K,TNc,APb,TS,S76,IYr,R56,A_,SK,Iy,Ry,BU,PU,mu,DQ,hE,BNn,Pwi,tE,mp6,i1,YG,gx,Yj,tk$,Dpn,LO,iZi,gVD,Yc$,qm,hnL,zB,Lyr,VP,qcL,znL,SH1,k73, VkL,Nm,RZ,cV,FP,NML,lpb,HG,vab,HU,HZD,uB,eK,jK,sm,zS,bB,yP6,MN1,ZQ,eub,cPn,wnb,jiL,U6c,wx,EBc,D9,yWp,Wy6,L5L,XLL,Xnc,uec,Qk,JYn,pfc,oaL,wLL,lYD,HWL,VmL,iWL,tmp,PW$,q7n,CTL,dp6,rY3,cY1,dC,GS,oy,G7L,VNW,CMi,UCL,WG,yP,X5,U1,CO,Mm,Mkp,jf,Zv,b1,dx,GB,FyD,og,QP,rx,sSL,cG,u1,ef,pO,ZZ3,bZL,vG,KO,ag,xj,E1,kj,O1,nO,QSi,TB,rWL,fO,cW6,dCc,GKL,u7L,AE,Sf,enr,JW1,Ig,pni,DZ,Ky3,vVb,xCi,kKi,OZ6,EVn,$Cr,TMc,Ipc,BMW,PM6,Rnr,ir,YQ,gO,mC1,DCD,t6c,hVc,h6,iVb,gOc,YXp,LtL,t6,Ny$,l26,HVi,V63,zV1,qXL,wVW,Wt3,AWD,y8L,ScL,XV$, Uo1,sZi,CL1,M6L,FtD,bV1,jZ6,ZVr,oOi,don,q9,r8L,G4L,c8L,QZD,uqL,eVL,J86,pVp,vOb,Kti,a2b,xoL,EOD,k4b,OVi,nOp,zo,$oL,TyL,A8L,f26,SXL,RVL,VH,N9,Byr,PL3,lr,H8,moc,Dob,hR6,tQr,W8,i4L,XZ,Us,YuD,LTn,qu6,NAb,M9,Zs,om,lAL,dO,Go,QH,yer,U0W,XRL,MQL,QQr,sQp,Kh,c8,Cf$,WTD,wRp,H4L,v8,ur,ph,Os,nh,uID,fh,$Q,kQ,v0$,eRW,Je$,KT1,To,A6,x0c,Im,Rm,B8,P8,mB,Ds,hm,E0D,kW$,tm,gZ,Lz,n0i,fAL,YE,$0n,Sui,IAD,qW,RR3,NW,BAL,ln,wZ,Pfb,H_,W_,m0p,Xp,hi3,t2D,Cz,MW,bn,gWL,sI,od,G2,YFL,rZ,Zq,dZ,Lmp,c_,qF1,un,zic,Fp,jG,iAL,Qe,eG,V2i,Nqc, Jm,ldn,pz,v_,Kz,ad,HAL,EI,xE,kE,OI,wd$,WmL,nz,fz,$E,T2,Am,yyi,SG,Id,Xdb,USD,Rd,B_,P_,M2L,C_$,m0,FmL,suc,juL,Dq,ZAD,bAc,oWb,dSL,Gk1,h5,t5,i$,gQ,Qu6,ryc,Lk,cyW,qL,z9,uSL,eiL,Vn,Jy1,pdL,xSL,EWW,vW$,Km$,ad$,l$,Ho,wQ,Wo,kkL,OA6,nWb,fdn,Xo,AyW,UJ,Idb,Bq3,RiL,jd,sJ,mS1,DS1,hEL,t0L,Z5,i_n,o5,dQ,g_D,L$b,qk3,Qn,ed,lo6,d0n,eF,wsr,W$6,y0D,Xs1,UOr,rO,rQ,vo,Kk,F$i,s6b,j6i,a5,dO6,Z_c,b_c,Q6L,r0b,xw,c0n,GQn,ur6,EJ,kw,OJ,eE1,J0c,nk,fk,ps3,$w,v_$,T9,J5,R5,K$6,GWn,FTL,Bo,Po,D5,hU,tU,iE,gG,mz,qA,xOr,V5,kQL,NA,n_6,O_3, E_L,$OW,Ttr,A06,Wc,SkL,Ion,Bt1,y5,cen,Xi,mOL,hU1,am,tSb,iKL,J6,jQn,b4L,o0r,P8L,Cw,gG3,YjW,MA,LOL,sZ,jI,Z4,bE,o9,qjD,dG,Gi,zUD,VSD,Q5,rG,cc,uE,eI,JU,lu$,N9c,pw,HKr,WOp,vc,yiL,wOW,hx,md,tx,gf,YD,Hc,XOn,ZKW,qo,D4,V4,GwL,rin,nw,W0,OZ,y4,CM,uJ3,Pc,MD,vGL,Fl,sp,KOW,auL,xtp,EGc,j5,kwL,OKL,ZJ,nGL,SjL,Ai3,fub,T9L,$tp,bC,Iuc,ob,RUr,B9n,mti,Dtc,hqD,tJL,qnr,c0,uC,NUL,e5,Jx,l91,WGr,yj6,XXD,Ux6,pM,v0,KM,ab,C0i,FGi,sBi,Ax,cji,ofL,dx1,eq$,S5,Jjb,vfL,pX3,KGL,Rb,mA,a93,Ib,DJ,hL,xx6,kLc,f9r,Y$,Vt,Wu,CI,inL,gKL,ZK,j_, os,du,Ymc,z8b,qm6,VK3,Qt,GZ,NCL,Hn3,wUp,y_3,u6,WuW,XUL,U$L,JL,pI,MK6,gu,cu,I9b,EfL,mx6,k$,b6,lQD,S_,X$,Rs,Bu,uP3,J_b,e8L,Uf,MZ,pU6,mC,DK,Ku6,hJ,tJ,aQL,F$,i5,Lu$,Yl,bnb,qU,TUL,$xD,OFc,zM,EKc,NU,IQ$,Smp,BC$,PBL,w8,yE,X6,W5,Co,MU,m$L,F6,hhn,sY,iO$,b5,tf1,oe,d8,q1L,GM,Nxi,lvL,c5,HO3,yEb,no,$l,TM,Ie,XGL,Re,B5,hX,tX,i4,gR,Umi,Yt,L3,sgL,qN,ze,jgD,ZO$,VO,bOc,ojL,dmD,GBn,NN,l4,Qg1,rEL,cE3,yO,XE,MN,FE,u5L,eh1,s$,jy,Z3,b4,JEn,pG$,o8,vjL,Kq3,dR,xmb,avW,EjW,Ge,OOL,kBD,nj$,QO,rR,fvr,TxL,AE1,cI,u4,ey,S1p,Rhp,JX, BxL,vI,P1i,mmL,p3,K3,a8,xt,tFi,gQL,Dmc,ihc,Ysp,hGL,LBL,qsL,E$,zGW,NOb,w8c,y6W,WB6,Sy,AX,BI,U9L,PI,mp,D3,MFi,hz,FBL,Crn,tz,ZhL,iH,YR,bh$,La,oQb,bF6,rj6,Gop,d9L,r6L,Qmp,c6W,q2,zX,VX,N2,uZn,p8L,wc,WJ,yX,KBp,vQc,lH,asW,x96,EQp,Oh3,XY,BO3,gEL,sr,YI$,O$,qIL,zfr,VGD,NZr,lqL,Zg,Hzr,bH,oJ,dc,w_p,rc,W0$,ym1,cJ,uH,X_L,UWD,Cn1,MGL,F0p,en,QX,sdr,jdi,Jz,bzL,oEr,dWp,pa,G2$,QdL,rmp,cmn,upb,efr,Jmi,p_3,vED,K03,vJ,xW1,Ka,k2L,EEW,nEL,Ozr,$W$,kR,aqb,aJ,Or,TZ6,na,fa,$R,TX,Az,AmL,Sn,SIW,RJ,mW6,td6,ikW,gwL,YJn,m_,Lz1,hD$, Pn$,qJb,BJ,zDW,NQr,IJ,PJ,Rfc,BZD,Dg,l5L,Hkc,DWn,Iq6,wo3,tt,Wzn,iq,gF,y5L,YH,C$L,Xon,ULb,L1,Md6,qy,zP,Vh,Ny,Fz3,s5L,j51,lq,bkr,ow6,HQ,dLr,wF,WQ,G9L,Q53,r5i,c5W,uoW,eDn,a53,po1,lsL,XV,Ewn,k9r,vwp,Kzc,J5n,My,TQp,C1,U9,xLL,SJW,$Lc,f5i,nw3,OkL,s9,I5b,kt,jc,ZS,bq,RD6,on,BQL,dF,P$c,R8,mLb,GP,f3,Te,VFL,cQ,ec,tIL,iwL,Jt,vQ,uq,rF,K1,Qh,DLn,h2L,an,gkp,YZ$,Er,fqL,n3,xH,Ldi,p1,qZL,z2p,VI6,NGL,E9,kH,l46,Hwn,wcc,Wdr,yUn,VdL,FY,n1,f1,O9,UAD,smi,jmD,$H,CEp,MIi,FdW,s9c,TP,j9c,At,Zwn,okb,Sc,dAD,Gip,BQ,cUn,Rn,DS,e2i, ui6,Kdb,pc3,a46,xAr,JUp,vkL,EkL,hR,kiL,nk3,Ow3,tR,Zz1,f4b,$AL,TGD,AUb,SZL,I4L,R2L,BGp,PEL,mAL,DA$,hK3,t51,Yz,YpL,LAW,gDi,qpc,zKn,V5D,Nfr,Ly,HML,w0n,z$,WAn,V2,NV,yxD,lP,X0L,UDb,Hi,CCp,M51,FAL,wa,J63,Wi,ZM6,y2,jbb,bM3,oDn,eGi,HJ,dDn,GHL,UR,p0n,Jxn,ER,vD$,eKp,ED6,kH3,OM6,nD6,fJL,$D$,Tfc,AxL,Sp6,IJL,RKL,Bfb,PCb,ny,XT,DDW,hQi,kz,iIL,mDD,OR,g$L,Yfr,zQL,lK3,V_b,$z,HIL,T$,LCL,fy,AR,qfL,Ij,yL$,UZc,Xu6,C6L,WC$,M_L,FC1,ssc,jsW,ZIW,o$L,dZ$,bIL,QsL,cL1,rLL,pu6,eQ6,GZi,u$3,v$D,JLL,KC$,aKL,xZ6,OI6,kZ6,E$p,Rj,n$p, fK1,$Zp,Tu$,ALc,IKb,Bu6,P6L,mZn,DZc,hb6,Bi,tHD,Pi,glD,YY3,th,qYL,go,VHi,N8W,lh3,HoL,WMW,w5L,UUn,C53,MHW,Y3,FML,yJL,X5D,jei,ZoD,boD,olL,dU3,GML,xR,Qe1,rJn,cJW,eb3,u6L,JJ$,vl3,KML,p5L,Si,Q9n,xU6,Elr,kMp,RW3,fhW,$Up,T8D,BFL,myp,A5i,q4,nl$,Ooc,PqD,I8,ISb,yh,$t,Nuc,gzp,iy1,YRL,LhL,zBL,Vin,se$,m4,PQ,hBL,Nan,tiL,l6c,In,HyL,bwc,wui,Dyr,rUi,N4,lz,WhW,Hh,yR$,Xir,UVc,CPL,Mi1,sjL,jji,dVL,ZyL,ozp,G$6,Wh,uTr,rRr,cRn,piW,vzi,Khb,y9,a6L,wo,xVr,JR$,QjW,XO,Ezr,byW,k$n,U_,nzn,OyW,$Vp,Tai,ARp,f6D,CD,RBn,I6W,mVL,PP$, Ba1,DV1,hec,M4,tPL,iDL,Y_3,L8b,g3L,q_b,HDD,VPL,Noc,l8L,whL,W83,yhr,U4i,XhL,CzW,MPL,FO,s2L,j2W,bDc,ZDp,o3n,F8L,d4D,Q2r,rhp,uOb,Jh3,chr,phL,v3r,K8L,GAL,a8b,eec,jP,x46,E3L,kA3,ODi,bz,f8c,n3b,$41,Tor,Ah6,ReD,S_W,m4W,o2,I86,D4r,GA,YvL,hlr,ro,ch,L6p,Q9,qvc,uz,NYb,VoL,i8L,gYW,lwW,H83,wgp,toW,W6L,eP,yvL,zl3,zb3,Z8,UiL,CO6,Mop,F6D,sqL,jqW,Z8$,b8n,oYp,diL,Qqp,rvD,cvD,GGi,usL,el6,JvW,pgc,vY6,K6D,EY$,xip,awL,kGD,vh,Icr,O8p,nYc,KD,fw6,$ii,x3,SvW,Iwi,E_,BY1,POL,Rlr,Av6,k3,a2,TYr,fD,O_,mi$,$3,nD,iqL,Lx1,zMb,VB6, lGL,hM1,q3W,HqD,tB3,wlp,WxD,ybL,R2,TA,CGn,MBL,XlL,SP,sMb,jMD,Y3c,gN3,Fx$,ZqL,NE3,UaD,Dii,Bh,Ph,m8,bqL,D8,cbW,Gt1,umL,QML,daL,eM3,oN1,vNL,Jbi,hv,KxL,xar,ktL,Oqi,$a3,YY,TEb,nNb,I2,IGL,RMn,Ni,t_D,tv,BEn,PGi,Da3,maL,h46,S3$,qi,tUD,iBL,gZ3,LZn,Yq6,ahb,L8,qqW,VUL,z4L,lIn,NWD,ENi,wA1,HBL,zG,iO,WZp,Hg,yCD,XAp,U3L,C2$,MU1,lO,fGL,wib,Ah,FZ$,wY,sx3,jxL,ZB6,bBi,oZD,Wg,yW,Qxp,rCL,cCL,d36,GyL,Xs,pAL,e4L,JCD,vZp,Uv,KZL,aIW,x3n,C8,EZ6,OBp,nZD,fIL,Mi,kyL,Fs,jo,$3i,TWb,oq,Zw,bO,ACL,dY,Sqp,IIn,R41,P2L,BW6,eo,D3$,hyr, m3L,tXL,Jv,ie1,p8,geD,vg,YdL,LH3,VXb,HeL,qdc,NJr,K8,zy$,ltn,wrL,WHL,y$6,Xrc,xY,UsL,Ov,Ev,CKL,n8,f8,FHL,s4L,TG,Av,j4W,$Y,ZeL,So,oeL,be3,Rq,Bg,Pg,Q43,ds6,GV1,m6,r$i,J$L,u_L,c$L,ey6,Dw,ve1,Eer,kVD,tb,Oe1,KHL,neL,iG,atL,TJn,gE,YN,A$1,Sd3,It1,Ryr,BJL,zt,Ds6,h9b,tx6,V1,msW,YGb,qa,Na,lG,PKb,Wl,U3,qGL,Vxn,l_W,z9D,Cq,y1,Fm,Xm,N1n,Ma,H6L,s3,wK6,WW3,y4b,jB,ZG,XKb,URW,CXD,MxL,FWW,sXL,jXc,oXD,Z66,dR6,GxL,c4L,u13,xRL,pq,O6i,$Rr,f_i,nXc,KWL,a_6,e9L,pK3,EXD,vl,Kq,A4i,v5,gj$,SG$,xN,kN,I_L,R9L,J43,kxD,PXL,mR3,DRW, O3,IM,tOW,i5D,gxL,RM,YU6,qUi,LNc,zs$,Bl,Pl,VO3,H5i,waL,hC,leL,WNL,yML,NTL,gW,XaL,Udc,i2,CD3,MO1,FNi,sUL,Z5c,jUL,ddL,G8D,b5L,rM$,cM$,oxD,q3,zy,ufp,pap,VA,JMb,es6,vxi,aeD,KNL,xdD,N3,Exr,k81,O5L,nx1,fen,$db,TT3,SUc,AMi,IeL,Rsi,BTL,PD1,mdL,hA1,HA,l2,wW,tAc,ip3,DdL,zAb,VAL,NgL,wP$,Hpr,lVL,WfL,yB6,WA,yA,XPr,Uvb,CYr,MAp,sar,ja$,Uq,ZpL,Xa,M3,Ffc,Fa,bpp,oP6,dv1,Gm6,Qai,sq,rB3,cB1,JBL,jU,pP6,eAW,ZI,b2,ox,Kfp,aVp,xvL,vP6,km6,EPc,Op1,dW,nPL,fVp,Tgr,IVL,$v$,ABn,Gy,RAL,PYL,mv6,h1i,tbW,QA,rW,iC3,Bg3,LcL,YTL,gqW, cA,u2,z1L,qTL,eU,JC,pB,VbD,vA,Nw6,lx6,HCb,wSL,KB,Wc3,ax,yI3,xZ,Eq,kZ,XSD,Oq,UYD,nB,fB,MbL,jkD,ZCL,C7p,bC1,G5D,Qkn,rI$,dYp,oq$,uGn,cI6,e1c,vqL,AC,ax6,KcD,JIn,pSL,xYn,EqD,SU,Ix,k5W,OCp,nqp,fxD,$Y6,Tw1,ST3,Ixb,ilr,P7L,mYL,R1W,YNW,h$,iK,NlD,lT6,Le,qs,Hlc,Lvp,DI,Ns,V$,gJ,Wv3,y1D,lK,U5W,MD6,CUb,Hr,Ye,mZ,XwL,zV,qNW,wwL,sNW,Rx,wJ,jN6,Zlr,t$,z7L,Wr,y$,blW,X_,Ud,Ce,ogb,d5L,QNc,r13,GOn,Ms,c1c,F_,sd,unL,e7n,J1W,pwc,vgL,Kvi,x53,aTb,Zt,jX,Egn,Olp,kO1,bK,o4,ngD,$53,Tlr,dJ,fTL,A1$,SNi,R7L,GV,ITL,Bl$,PUr,m56,rJ,cr, hF6,D5L,tVp,uK,eX,ghW,iTi,YlL,qlD,LsD,zFr,pe,VVD,N4D,Ke,lOp,wTi,HTW,WsL,yFW,XTb,U8W,MVD,FsD,sHD,CaL,jHr,ZTL,bTL,ohn,d8r,GND,QHD,rFL,cFW,ke,uji,eFL,JFW,vhn,Ehp,aO$,pTD,fe,Ksn,ne,x86,$e,OTn,kN6,TV,fOb,$8i,T4b,zei,R4,Wqi,SX,Br,I4,mH,AFW,Dt,Pai,m8L,D8b,h$L,tZp,iv$,gvL,lML,YX,Hv$,Nz3,wvD,L6,zx,ywL,UIW,CuL,Vl,Xvp,Ww$,YCL,NR,FwL,s13,MZ$,ZvD,lX,bv6,ovL,dIi,qR,Q1L,G06,HK,w1,z$L,iX,rwc,cwW,ucc,e$i,LwW,qC3,g1,Jw1,vvr,KwL,aML,xIW,pv1,WK,k06,$Ip,X1,Tz3,AwL,nvb,C6,SCL,IMb,Evc,R$c,fM$,Bzr,MR,UG,Puc,DI$,mIn,yl,tYr, F1,AbL,igL,LF1,Yt3,zvb,VYi,qtn,jx,sG,laL,HgW,w43,WFL,Zgp,MYp,FF1,UEL,X4W,oX,GCb,oSD,QlL,r9L,bX,Gx,Ql,J9n,evL,utb,cK,jlL,p6,vSL,J4,r1,aai,xEL,ES6,bg1,aX,EG,kCi,slb,p4r,uX,Ogb,d1,nS3,far,$EL,n6,f6,KF3,Tm3,A9L,$X,Tx,Stp,ex,dEb,Iab,RvW,xX,Bm6,vK,PQ3,K6,Zh,mEL,hTL,A4,Sx,tvr,i9i,gdL,OG,kX,YDW,gSL,Lr$,CQc,qDL,zT6,VvL,NHc,IX,RX,wjp,Xji,CgL,H9c,dgL,Gpn,Qw1,rcb,ccW,uU1,eTD,pjW,Jcn,BK,PK,mW,vdn,Krn,afL,g9,xgW,D_,Edr,hM,kp1,tM,iD,O96,YW,gT,ry,ndp,pn,aYi,ffL,wC,$gc,TQ,A0,TH$,l1,AcW,SDL,vU,$Tn,IfL,RTD,BHD,Yx,mgD, Dgc,L5,z8,Vs,hmL,g8L,Yg6,Nd,LbL,tgD,zm3,iJc,qgL,Vg1,NV$,lnL,HJW,lD,Wbp,vU$,te,HO,yDL,X9L,yN,w96,N0,UjL,Ch$,Mgp,Ha,rt,sIp,jI6,wT,Wa,ZJ1,ys,Xf,qd,bJ6,o8i,guc,UU,C5,dj3,Md,Ff,Gh1,sU,QIL,jO,Ze,rDW,cDL,eZL,bD,ubr,JDL,emL,oU,dT,p9i,G8,v8W,KbL,an1,xj6,E8n,khL,n8b,rT,OJb,fn6,$jW,TVD,ADc,BVL,Sgb,Inc,Rm6,mjL,hpn,tLl,iLl,Djb,ca,gbE,YLv,LLy,qL0,zp3,eO,VLP,JM,p5,va,N3v,l$E,wWv,WLL,yr8,XWv,Cis,U1h,MLs,K5,aU,jc3,FLE,scv,xx,ZLL,bLn,EU,kx,obl,OU,d1y,n5,Gn0,f5,$x,Qcs,T8,AM,rr1,cr8,SO,IU,uDl,RU,ep1,Jr0,De,hB,pWP,vb3, KL1,Eby,x1E,tB,knL,OLH,nbl,OUD,a$h,$1v,T38,SLv,hpL,HW;Yb=function(h){return function(){return hpL[h].apply(this,arguments)}}; g.LL=function(h,t){return hpL[h]=t}; tLi=function(h){var t=0;return function(){return t=this.length))return this[h]}; BW=function(h){return h?h:Rc}; WL3=function(h,t,Y){h instanceof String&&(h=String(h));for(var L=h.length-1;L>=0;L--){var q=h[L];if(t.call(Y,q,L,h))return{wY:L,Ix:q}}return{wY:-1,Ix:void 0}}; PW=function(h){return h?h:function(t,Y){return WL3(this,t,Y).wY}}; g.t3=function(h,t,Y){h=h.split(".");Y=Y||g.D$;for(var L;h.length&&(L=h.shift());)h.length||t===void 0?Y[L]&&Y[L]!==Object.prototype[L]?Y=Y[L]:Y=Y[L]={}:Y[L]=t}; gL=function(h,t){var Y=g.il("CLOSURE_FLAGS");h=Y&&Y[h];return h!=null?h:t}; g.il=function(h,t){h=h.split(".");t=t||g.D$;for(var Y=0;Y2){var L=Array.prototype.slice.call(arguments,2);return function(){var q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(q,L);return h.apply(t,q)}}return function(){return h.apply(t,arguments)}}; g.Vv=function(h,t,Y){g.Vv=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?U11:Cin;return g.Vv.apply(null,arguments)}; g.Nh=function(h,t){var Y=Array.prototype.slice.call(arguments,1);return function(){var L=Y.slice();L.push.apply(L,arguments);return h.apply(this,L)}}; g.H1=function(){return Date.now()}; wL=function(h){return h}; g.W1=function(h,t){function Y(){} Y.prototype=t.prototype;h.aD=t.prototype;h.prototype=new Y;h.prototype.constructor=h;h.Yv=function(L,q,z){for(var V=Array(arguments.length-2),l=2;l=0;--Y)Y in L&&t.call(void 0,L[Y],Y,h)}; g.Mh=function(h,t,Y){t=CH(h,t,Y);return t<0?null:typeof h==="string"?h.charAt(t):h[t]}; CH=function(h,t,Y){for(var L=h.length,q=typeof h==="string"?h.split(""):h,z=0;z=0;L--)if(L in q&&t.call(Y,q[L],L,h))return L;return-1}; g.jE=function(h,t){return ZL3(h,t)>=0}; bLL=function(h){if(!Array.isArray(h))for(var t=h.length-1;t>=0;t--)delete h[t];h.length=0}; g.bl=function(h,t){t=ZL3(h,t);var Y;(Y=t>=0)&&g.ZC(h,t);return Y}; g.ZC=function(h,t){return Array.prototype.splice.call(h,t,1).length==1}; g.Qv=function(h,t){t=CH(h,t);t>=0&&g.ZC(h,t)}; obi=function(h,t){var Y=0;jcr(h,function(L,q){t.call(void 0,L,q,h)&&g.ZC(h,q)&&Y++})}; g.c1=function(h){return Array.prototype.concat.apply([],arguments)}; g.ul=function(h){var t=h.length;if(t>0){for(var Y=Array(t),L=0;L>>1),H=void 0;Y?H=t.call(void 0,h[l],l,h):H=t(L,h[l]);H>0?q=l+1:(z=l,V=!H)}return V?q:-q-1}; g.SE=function(h,t){h.sort(t||nH)}; Qcn=function(h,t){var Y=nH;g.SE(h,function(L,q){return Y(t(L),t(q))})}; g.Iv=function(h,t,Y){if(!g.Yy(h)||!g.Yy(t)||h.length!=t.length)return!1;var L=h.length;Y=Y||rrW;for(var q=0;qt?1:h0&&(t[q]=L)},h); return t}; Ebb=function(h){h=rh(h);var t=[];g.hd(h,function(Y,L){L in Object.prototype||typeof Y!="undefined"&&t.push([L,":",Y].join(""))}); return t}; OLL=function(h){dh(h,"od",kn3);dh(h,"opac",cZ).G=!0;dh(h,"sbeos",cZ).G=!0;dh(h,"prf",cZ).G=!0;dh(h,"mwt",cZ).G=!0;dh(h,"iogeo",cZ)}; uv=function(h,t){return h.lastIndexOf(t,0)==0}; nbi=function(h,t){var Y=h.length-t.length;return Y>=0&&h.indexOf(t,Y)==Y}; g.e$=function(h){return/^[\s\xa0]*$/.test(h)}; g.Jd=function(h,t){return h.indexOf(t)!=-1}; pu=function(h,t){return g.Jd(h.toLowerCase(),t.toLowerCase())}; g.a7=function(h,t){var Y=0;h=vZ(String(h)).split(".");t=vZ(String(t)).split(".");for(var L=Math.max(h.length,t.length),q=0;Y==0&&qt?1:0}; g.xp=function(){var h=g.D$.navigator;return h&&(h=h.userAgent)?h:""}; $p=function(h){if(!Ow&&!nu||!fu)return!1;for(var t=0;t0:!1}; I7=function(){return S$()?!1:TR("Opera")}; f$3=function(){return S$()?!1:TR("Trident")||TR("MSIE")}; $1c=function(){return S$()?$p("Microsoft Edge"):TR("Edg/")}; R7=function(){return TR("Firefox")||TR("FxiOS")}; PZ=function(){return TR("Safari")&&!(BZ()||(S$()?0:TR("Coast"))||I7()||(S$()?0:TR("Edge"))||$1c()||(S$()?$p("Opera"):TR("OPR"))||R7()||TR("Silk")||TR("Android"))}; BZ=function(){return S$()?$p("Chromium"):(TR("Chrome")||TR("CriOS"))&&!(S$()?0:TR("Edge"))||TR("Silk")}; T3D=function(){return TR("Android")&&!(BZ()||R7()||I7()||TR("Silk"))}; Arn=function(h){var t={};h.forEach(function(Y){t[Y[0]]=Y[1]}); return function(Y){return t[Y.find(function(L){return L in t})]||""}}; SL6=function(h){var t=g.xp();if(h==="Internet Explorer"){if(f$3())if((h=/rv: *([\d\.]*)/.exec(t))&&h[1])t=h[1];else{h="";var Y=/MSIE +([\d\.]+)/.exec(t);if(Y&&Y[1])if(t=/Trident\/(\d.\d)/.exec(t),Y[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":h="8.0";break;case "5.0":h="9.0";break;case "6.0":h="10.0";break;case "7.0":h="11.0"}else h="7.0";else h=Y[1];t=h}else t="";return t}var L=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Y=[];for(var q;q=L.exec(t);)Y.push([q[1],q[2],q[3]||void 0]); t=Arn(Y);switch(h){case "Opera":if(I7())return t(["Version","Opera"]);if(S$()?$p("Opera"):TR("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(S$()?0:TR("Edge"))return t(["Edge"]);if($1c())return t(["Edg"]);break;case "Chromium":if(BZ())return t(["Chrome","CriOS","HeadlessChrome"])}return h==="Firefox"&&R7()||h==="Safari"&&PZ()||h==="Android Browser"&&T3D()||h==="Silk"&&TR("Silk")?(t=Y[2])&&t[1]||"":""}; I$L=function(h){if(S$()&&h!=="Silk"){var t=fu.brands.find(function(Y){return Y.brand===h}); if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=SL6(h);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])}; B3i=function(){var h=null;if(!RpL)return h;try{var t=function(Y){return Y}; h=RpL.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(Y){}return h}; ha=function(){mI===void 0&&(mI=B3i());return mI}; ta=function(h){this.G=h}; is=function(h){var t=ha();h=t?t.createScriptURL(h):h;return new ta(h)}; gk=function(h){if(h instanceof ta)return h.G;throw Error("");}; Y2=function(h){this.G=h}; g.L0=function(h){if(h instanceof Y2)return h.G;throw Error("");}; qr=function(h){this.ra=h}; zD=function(h){return new qr(function(t){return t.substr(0,h.length+1).toLowerCase()===h+":"})}; g.Nr=function(h,t){t=t===void 0?Pi$:t;a:if(t=t===void 0?Pi$:t,!(h instanceof Y2)){for(var Y=0;Y4);q++)t[GD(h[q])]||(Y+="\nInner error "+L++ +": ",h[q].stack&&h[q].stack.indexOf(h[q].toString())==0||(Y+=typeof h[q]==="string"?h[q]:h[q].message+"\n"),Y+=oE(h[q],t));q")!=-1&&(h=h.replace(NLL,">")),h.indexOf('"')!=-1&&(h=h.replace(lCL,""")),h.indexOf("'")!=-1&&(h=h.replace(HHn,"'")),h.indexOf("\x00")!=-1&&(h=h.replace(w1L,"�")));return h}; g.Ja=function(h){return h==null?"":String(h)}; p0=function(h){for(var t=0,Y=0;Y>>0;return t}; vz=function(h){var t=Number(h);return t==0&&g.e$(h)?NaN:t}; WnL=function(h){return String(h).replace(/\-([a-z])/g,function(t,Y){return Y.toUpperCase()})}; y33=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; X11=function(h){return h.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,Y,L){return Y+L.toUpperCase()})}; Uh6=function(h){var t=1;h=h.split(":");for(var Y=[];t>0&&h.length;)Y.push(h.shift()),t--;h.length&&Y.push(h.join(":"));return Y}; K0=function(){return Ow||nu?!!fu&&!!fu.platform:!1}; Cl$=function(){return K0()?fu.platform==="Android":TR("Android")}; aE=function(){return TR("iPhone")&&!TR("iPod")&&!TR("iPad")}; x2=function(){return aE()||TR("iPad")||TR("iPod")}; Eb=function(){return K0()?fu.platform==="macOS":TR("Macintosh")}; MEL=function(){return K0()?fu.platform==="Windows":TR("Windows")}; k2=function(h){k2[" "](h);return h}; FnW=function(h,t){try{return k2(h[t]),!0}catch(Y){}return!1}; jvp=function(h,t){var Y=svb;return Object.prototype.hasOwnProperty.call(Y,h)?Y[h]:Y[h]=t(h)}; g.Ob=function(h){return jvp(h,function(){return g.a7(ZHn,h)>=0})}; g.n0=function(h,t,Y){return Math.min(Math.max(h,t),Y)}; g.f0=function(h,t){h%=t;return h*t<0?h+t:h}; $2=function(h,t,Y){return h+Y*(t-h)}; g.TD=function(h,t){this.x=h!==void 0?h:0;this.y=t!==void 0?t:0}; Aa=function(h,t){return h==t?!0:h&&t?h.x==t.x&&h.y==t.y:!1}; g.Se=function(h,t){this.width=h;this.height=t}; g.IE=function(h,t){return h==t?!0:h&&t?h.width==t.width&&h.height==t.height:!1}; RE=function(h){return h.width*h.height}; Pz=function(h,t){this.G=h===Bz&&t||""}; mg=function(h){if(h instanceof Wz)return h;h=String(h).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return yz(h)}; oyD=function(h){return bHr(h)}; bHr=function(h){var t=mg("");return yz(h.map(function(Y){return XL(mg(Y))}).join(XL(t).toString()))}; c3D=function(h){var t;if(!dhW.test("div"))throw Error("");if(GsL.indexOf("DIV")!==-1)throw Error("");var Y="":(h=oyD(t.map(function(L){return L instanceof Wz?L:mg(String(L))})),Y+=">"+h.toString()+""); return yz(Y)}; Qvr=function(h){for(var t="",Y=Object.keys(h),L=0;L2&&xhn(q,V,L,2);return V}; xhn=function(h,t,Y,L){function q(l){l&&t.appendChild(typeof l==="string"?h.createTextNode(l):l)} for(;L0)q(z);else{a:{if(z&&typeof z.length=="number"){if(g.LH(z)){var V=typeof z.item=="function"||typeof z.item=="string";break a}if(typeof z==="function"){V=typeof z.item=="function";break a}}V=!1}g.B1(V?g.ul(z):z,q)}}}; g.y_=function(h){return wS(document,h)}; wS=function(h,t){t=String(t);h.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return h.createElement(t)}; g.XK=function(h){return document.createTextNode(String(h))}; g.UO=function(h,t){h.appendChild(t)}; g.C7=function(h){for(var t;t=h.firstChild;)h.removeChild(t)}; Ml=function(h,t,Y){h.insertBefore(t,h.childNodes[Y]||null)}; g.FK=function(h){return h&&h.parentNode?h.parentNode.removeChild(h):null}; g.sO=function(h,t){if(!h||!t)return!1;if(h.contains&&t.nodeType==1)return h==t||h.contains(t);if(typeof h.compareDocumentPosition!="undefined")return h==t||!!(h.compareDocumentPosition(t)&16);for(;t&&h!=t;)t=t.parentNode;return t==h}; hf=function(h){return h.nodeType==9?h:h.ownerDocument||h.document}; g.jr=function(h,t){if("textContent"in h)h.textContent=t;else if(h.nodeType==3)h.data=String(t);else if(h.firstChild&&h.firstChild.nodeType==3){for(;h.lastChild!=h.firstChild;)h.removeChild(h.lastChild);h.firstChild.data=String(t)}else g.C7(h),h.appendChild(hf(h).createTextNode(String(t)))}; ks1=function(h){return h.tagName=="A"&&h.hasAttribute("href")||h.tagName=="INPUT"||h.tagName=="TEXTAREA"||h.tagName=="SELECT"||h.tagName=="BUTTON"?!h.disabled&&(!h.hasAttribute("tabindex")||Eyb(h)):h.hasAttribute("tabindex")&&Eyb(h)}; Eyb=function(h){h=h.tabIndex;return typeof h==="number"&&h>=0&&h<32768}; Gf=function(h,t,Y){if(!t&&!Y)return null;var L=t?String(t).toUpperCase():null;return ZP(h,function(q){return(!L||q.nodeName==L)&&(!Y||typeof q.className==="string"&&g.jE(q.className.split(/\s+/),Y))},!0)}; ZP=function(h,t,Y){h&&!Y&&(h=h.parentNode);for(Y=0;h;){if(t(h))return h;h=h.parentNode;Y++}return null}; Dj=function(h){this.G=h||g.D$.document||document}; OHL=function(){this.G=this.TB=null}; Q_=function(){}; cb=function(){if(!rS())throw Error();}; rS=function(){return!(!uI||!uI.performance)}; nyL=function(h){return g.lI?"webkit"+h:h.toLowerCase()}; er=function(h){return function(){return h}}; g.Jf=function(){}; fCL=function(h){var t=t||0;return function(){return h.apply(this,Array.prototype.slice.call(arguments,0,t))}}; p7=function(h){var t=!1,Y;return function(){t||(Y=h(),t=!0);return Y}}; vb=function(h){var t=h;return function(){if(t){var Y=t;t=null;Y()}}}; K7=function(h,t,Y){var L=0;return function(q){g.D$.clearTimeout(L);var z=arguments;L=g.D$.setTimeout(function(){h.apply(Y,z)},t)}}; aL=function(h,t,Y,L){this.top=h;this.right=t;this.bottom=Y;this.left=L}; x9=function(h){return h.right-h.left}; EO=function(h,t){return h==t?!0:h&&t?h.top==t.top&&h.right==t.right&&h.bottom==t.bottom&&h.left==t.left:!1}; k9=function(h,t,Y){t instanceof g.TD?(h.left+=t.x,h.right+=t.x,h.top+=t.y,h.bottom+=t.y):(h.left+=t,h.right+=t,typeof Y==="number"&&(h.top+=Y,h.bottom+=Y));return h}; g.OO=function(h,t,Y,L){this.left=h;this.top=t;this.width=Y;this.height=L}; n7=function(h,t){return h==t?!0:h&&t?h.left==t.left&&h.width==t.width&&h.top==t.top&&h.height==t.height:!1}; g.$9=function(h,t,Y){if(typeof t==="string")(t=f7(h,t))&&(h.style[t]=Y);else for(var L in t){Y=h;var q=t[L],z=f7(Y,L);z&&(Y.style[z]=q)}}; f7=function(h,t){var Y=$hD[t];if(!Y){var L=WnL(t);Y=L;h.style[L]===void 0&&(L=(g.lI?"Webkit":Tf?"Moz":null)+X11(L),h.style[L]!==void 0&&(Y=L));$hD[t]=Y}return Y}; g.Af=function(h,t){var Y=h.style[WnL(t)];return typeof Y!=="undefined"?Y:h.style[f7(h,t)]||""}; Sr=function(h,t){var Y=hf(h);return Y.defaultView&&Y.defaultView.getComputedStyle&&(h=Y.defaultView.getComputedStyle(h,null))?h[t]||h.getPropertyValue(t)||"":""}; IL=function(h,t){return Sr(h,t)||(h.currentStyle?h.currentStyle[t]:null)||h.style&&h.style[t]}; g.Bb=function(h,t,Y){if(t instanceof g.TD){var L=t.x;t=t.y}else L=t,t=Y;h.style.left=g.RL(L,!1);h.style.top=g.RL(t,!1)}; Pb=function(h){try{return h.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}}; TLL=function(h){var t=hf(h),Y=IL(h,"position"),L=Y=="fixed"||Y=="absolute";for(h=h.parentNode;h&&h!=t;h=h.parentNode)if(h.nodeType==11&&h.host&&(h=h.host),Y=IL(h,"position"),L=L&&Y=="static"&&h!=t.documentElement&&h!=t.body,!L&&(h.scrollWidth>h.clientWidth||h.scrollHeight>h.clientHeight||Y=="fixed"||Y=="absolute"||Y=="relative"))return h;return null}; g.m3=function(h){var t=hf(h),Y=new g.TD(0,0);if(h==(t?hf(t):document).documentElement)return Y;h=Pb(h);t=gS(t);t=aC6(t.G);Y.x=h.left+t.x;Y.y=h.top+t.y;return Y}; S0L=function(h,t){var Y=new g.TD(0,0),L=Hb(hf(h));if(!FnW(L,"parent"))return Y;do{var q=L==t?g.m3(h):A36(h);Y.x+=q.x;Y.y+=q.y}while(L&&L!=t&&L!=L.parent&&(h=L.frameElement)&&(L=L.parent));return Y}; g.DP=function(h,t){h=ICD(h);t=ICD(t);return new g.TD(h.x-t.x,h.y-t.y)}; A36=function(h){h=Pb(h);return new g.TD(h.left,h.top)}; ICD=function(h){if(h.nodeType==1)return A36(h);h=h.changedTouches?h.changedTouches[0]:h;return new g.TD(h.clientX,h.clientY)}; g.hu=function(h,t,Y){if(t instanceof g.Se)Y=t.height,t=t.width;else if(Y==void 0)throw Error("missing height argument");h.style.width=g.RL(t,!0);h.style.height=g.RL(Y,!0)}; g.RL=function(h,t){typeof h=="number"&&(h=(t?Math.round(h):h)+"px");return h}; g.tu=function(h){var t=RPr;if(IL(h,"display")!="none")return t(h);var Y=h.style,L=Y.display,q=Y.visibility,z=Y.position;Y.visibility="hidden";Y.position="absolute";Y.display="inline";h=t(h);Y.display=L;Y.position=z;Y.visibility=q;return h}; RPr=function(h){var t=h.offsetWidth,Y=h.offsetHeight,L=g.lI&&!t&&!Y;return(t===void 0||L)&&h.getBoundingClientRect?(h=Pb(h),new g.Se(h.right-h.left,h.bottom-h.top)):new g.Se(t,Y)}; g.ip=function(h,t){h.style.display=t?"":"none"}; ge=function(h){return h?h.passive&&BLW()?h:h.capture||!1:!1}; YM=function(h,t,Y,L){return typeof h.addEventListener==="function"?(h.addEventListener(t,Y,ge(L)),!0):!1}; LQ=function(h){if(h.prerendering)return 3;var t;return(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[h.visibilityState||h.webkitVisibilityState||h.mozVisibilityState||""])!=null?t:0}; Pln=function(){}; qG=function(h){h.HVP=!0;return h}; mhL=function(){return(Ow||nu)&&fu?fu.mobile:!zv()&&(TR("iPod")||TR("iPhone")||TR("Android")||TR("IEMobile"))}; zv=function(){return(Ow||nu)&&fu?!fu.mobile&&(TR("iPad")||TR("Android")||TR("Silk")):TR("iPad")||TR("Android")&&!TR("Mobile")||TR("Silk")}; lp=function(h){try{return!!h&&h.location.href!=null&&FnW(h,"foo")}catch(t){return!1}}; Ht=function(h,t){if(h)for(var Y in h)Object.prototype.hasOwnProperty.call(h,Y)&&t(h[Y],Y,h)}; hNL=function(){var h=[];Ht(Dhi,function(t){h.push(t)}); return h}; t$n=function(h){var t,Y;return(Y=(t=/https?:\/\/[^\/]+/.exec(h))==null?void 0:t[0])!=null?Y:""}; Yw1=function(){var h=iun("IFRAME"),t={};g.B1(gpL(),function(Y){h.sandbox&&h.sandbox.supports&&h.sandbox.supports(Y)&&(t[Y]=!0)}); return t}; iun=function(h,t){t=t===void 0?document:t;return t.createElement(String(h).toLowerCase())}; LIc=function(h){for(var t=h;h&&h!=h.parent;)h=h.parent,lp(h)&&(t=h);return t}; Nh$=function(h){h=h||we();for(var t=new qwL(g.D$.location.href,!1),Y=null,L=h.length-1,q=L;q>=0;--q){var z=h[q];!Y&&zNn.test(z.url)&&(Y=z);if(z.url&&!z.G){t=z;break}}q=null;z=h.length&&h[L].url;t.depth!==0&&z&&(q=h[L]);return new V$6(t,q,Y)}; we=function(){var h=g.D$,t=[],Y=null;do{var L=h;if(lp(L)){var q=L.location.href;Y=L.document&&L.document.referrer||null}else q=Y,Y=null;t.push(new qwL(q||""));try{h=L.parent}catch(z){h=null}}while(h&&L!==h);L=0;for(h=t.length-1;L<=h;++L)t[L].depth=h-L;L=g.D$;if(L.location&&L.location.ancestorOrigins&&L.location.ancestorOrigins.length===t.length-1)for(h=1;ht&&(t=Y.length);return 3997-t-h.S.length-1}; U2=function(h,t){this.G=h;this.depth=t}; WIp=function(){function h(l,H){return l==null?H:l} var t=we(),Y=Math.max(t.length-1,0),L=Nh$(t);t=L.G;var q=L.T,z=L.S,V=[];z&&V.push(new U2([z.url,z.G?2:0],h(z.depth,1)));q&&q!=z&&V.push(new U2([q.url,2],0));t.url&&t!=z&&V.push(new U2([t.url,0],h(t.depth,Y)));L=g.CQ(V,function(l,H){return V.slice(0,V.length-H)}); !t.url||(z||q)&&t!=z||(q=t$n(t.url))&&L.push([new U2([q,1],h(t.depth,Y))]);L.push([]);return g.CQ(L,function(l){return wZc(Y,l)})}; wZc=function(h,t){g.MG(t,function(q){return q.depth>=0}); var Y=Fy(t,function(q,z){return Math.max(q,z.depth)},-1),L=crD(Y+2); L[0]=h;g.B1(t,function(q){return L[q.depth+1]=q.G}); return L}; ydn=function(){var h=h===void 0?WIp():h;return h.map(function(t){return Xy(t)})}; XZi=function(h){var t=!1;t=t===void 0?!1:t;uI.google_image_requests||(uI.google_image_requests=[]);var Y=iun("IMG",uI.document);t&&(Y.attributionSrc="");Y.src=h;uI.google_image_requests.push(Y)}; s2=function(h){var t="gk";if(h.gk&&h.hasOwnProperty(t))return h.gk;var Y=new h;h.gk=Y;h.hasOwnProperty(t);return Y}; jW=function(){this.T=new Pln;this.G=rS()?new cb:new Q_}; UnD=function(){Zm();var h=uI.document;return!!(h&&h.body&&h.body.getBoundingClientRect&&typeof uI.setInterval==="function"&&typeof uI.clearInterval==="function"&&typeof uI.setTimeout==="function"&&typeof uI.clearTimeout==="function")}; Cvi=function(){Zm();return ydn()}; M$W=function(){}; Zm=function(){var h=s2(M$W);if(!h.G){if(!uI)throw Error("Context has not been set and window is undefined.");h.G=s2(jW)}return h.G}; bp=function(){throw Error("Invalid UTF8");}; FI$=function(h,t){t=String.fromCharCode.apply(null,t);return h==null?t:h+t}; bu6=function(h){var t=!1;t=t===void 0?!1:t;if(s73){if(t&&(j76?!h.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(h)))throw Error("Found an unpaired surrogate");h=(ZuL||(ZuL=new TextEncoder)).encode(h)}else{for(var Y=0,L=new Uint8Array(3*h.length),q=0;q>6|192;else{if(z>=55296&&z<=57343){if(z<=56319&&q=56320&&V<=57343){z=(z-55296)*1024+ V-56320+65536;L[Y++]=z>>18|240;L[Y++]=z>>12&63|128;L[Y++]=z>>6&63|128;L[Y++]=z&63|128;continue}else q--}if(t)throw Error("Found an unpaired surrogate");z=65533}L[Y++]=z>>12|224;L[Y++]=z>>6&63|128}L[Y++]=z&63|128}}h=Y===L.length?L:L.subarray(0,Y)}return h}; ot=function(h){g.D$.setTimeout(function(){throw h;},0)}; opL=function(h){return Array.prototype.map.call(h,function(t){t=t.toString(16);return t.length>1?t:"0"+t}).join("")}; dnL=function(h){for(var t=[],Y=0;Y>6|192:((q&64512)==55296&&L+1>18|240,t[Y++]=q>>12&63|128):t[Y++]=q>>12|224,t[Y++]=q>>6&63|128),t[Y++]=q&63|128)}return t}; g.Gv=function(h,t){t===void 0&&(t=0);GRc();t=Q7b[t];for(var Y=Array(Math.floor(h.length/3)),L=t[64]||"",q=0,z=0;q>2];V=t[(V&3)<<4|l>>4];l=t[(l&15)<<2|H>>6];H=t[H&63];Y[z++]=""+w+V+l+H}w=0;H=L;switch(h.length-q){case 2:w=h[q+1],H=t[(w&15)<<2]||L;case 1:h=h[q],Y[z]=""+t[h>>2]+t[(h&3)<<4|w>>4]+H+L}return Y.join("")}; g.QL=function(h,t){if(rd3&&!t)h=g.D$.btoa(h);else{for(var Y=[],L=0,q=0;q255&&(Y[L++]=z&255,z>>=8);Y[L++]=z}h=g.Gv(Y,t)}return h}; uhD=function(h){var t=[];cdi(h,function(Y){t.push(Y)}); return t}; re=function(h){var t=h.length,Y=t*3/4;Y%3?Y=Math.floor(Y):g.Jd("=.",h[t-1])&&(Y=g.Jd("=.",h[t-2])?Y-2:Y-1);var L=new Uint8Array(Y),q=0;cdi(h,function(z){L[q++]=z}); return q!==Y?L.subarray(0,q):L}; cdi=function(h,t){function Y(H){for(;L>4);V!=64&&(t(z<<4&240|V>>2),l!=64&&t(V<<6&192|l))}}; GRc=function(){if(!ct){ct={};for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],Y=0;Y<5;Y++){var L=h.concat(t[Y].split(""));Q7b[Y]=L;for(var q=0;q=t||(L[h]=Y+1,h=Error(),Y0L(h,"incident"),ot(h))}}; xM=function(h,t,Y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Y===void 0?0:Y)&&Symbol.for&&h?Symbol.for(h):h!=null?Symbol(h):Symbol():t}; O2=function(h,t){E2||kM in h||Ou3(h,npb);h[kM]|=t}; nQ=function(h,t){E2||kM in h||Ou3(h,npb);h[kM]=t}; fQ=function(){return typeof BigInt==="function"}; Tv=function(h,t){return t===void 0?h.G!==$M&&!!(2&(h.qD[kM]|0)):!!(2&t)&&h.G!==$M}; fXb=function(h,t){if(h!=null)if(typeof h==="string")h=h?new up(h,eW):Ju();else if(h.constructor!==up)if(Epp&&h!=null&&h instanceof Uint8Array)h=h.length?new up(new Uint8Array(h),eW):Ju();else{if(!t)throw Error();h=void 0}return h}; Au=function(h,t){if(typeof t!=="number"||t<0||t>=h.length)throw Error();}; $nn=function(h,t,Y){var L=t&128?0:-1,q=h.length,z;if(z=!!q)z=h[q-1],z=z!=null&&typeof z==="object"&&z.constructor===Object;var V=q+(z?-1:0);for(t=t&128?1:0;tt.length)return!1;if(h.lengthq)return!1;if(L>>0;Pt=t;hQ=(h-t)/4294967296>>>0}; gn=function(h){if(h<0){tQ(0-h);var t=g.b(ik(Pt,hQ));h=t.next().value;t=t.next().value;Pt=h>>>0;hQ=t>>>0}else tQ(h)}; Lf=function(h,t){var Y=t*4294967296+(h>>>0);return Number.isSafeInteger(Y)?Y:YJ(h,t)}; RNn=function(h,t){var Y=t&2147483648;Y&&(h=~h+1>>>0,t=~t>>>0,h==0&&(t=t+1>>>0));h=Lf(h,t);return typeof h==="number"?Y?-h:h:Y?"-"+h:h}; YJ=function(h,t){t>>>=0;h>>>=0;if(t<=2097151)var Y=""+(4294967296*t+h);else fQ()?Y=""+(BigInt(t)<>>24|t<<8)&16777215,t=t>>16&65535,h=(h&16777215)+Y*6777216+t*6710656,Y+=t*8147497,t*=2,h>=1E7&&(Y+=h/1E7>>>0,h%=1E7),Y>=1E7&&(t+=Y/1E7>>>0,Y%=1E7),Y=t+BhD(Y)+BhD(h));return Y}; BhD=function(h){h=String(h);return"0000000".slice(h.length)+h}; Pvp=function(){var h=Pt,t=hQ;t&2147483648?fQ()?h=""+(BigInt(t|0)<>>0)):(t=g.b(ik(h,t)),h=t.next().value,t=t.next().value,h="-"+YJ(h,t)):h=YJ(h,t);return h}; qH=function(h){if(h.length<16)gn(Number(h));else if(fQ())h=BigInt(h),Pt=Number(h&BigInt(4294967295))>>>0,hQ=Number(h>>BigInt(32)&BigInt(4294967295));else{var t=+(h[0]==="-");hQ=Pt=0;for(var Y=h.length,L=0+t,q=(Y-t)%6+t;q<=Y;L=q,q+=6)L=Number(h.slice(L,q)),hQ*=1E6,Pt=Pt*1E6+L,Pt>=4294967296&&(hQ+=Math.trunc(Pt/4294967296),hQ>>>=0,Pt>>>=0);t&&(t=g.b(ik(Pt,hQ)),h=t.next().value,t=t.next().value,Pt=h,hQ=t)}}; ik=function(h,t){t=~t;h?h=~h+1:t+=1;return[h,t]}; zl=function(h){return Array.prototype.slice.call(h)}; Vd=function(h){if(h!=null&&typeof h!=="number")throw Error("Value of float/double field must be a number, found "+typeof h+": "+h);return h}; mnD=function(h){return h.displayName||h.name||"unknown type name"}; NH=function(h){if(h!=null&&typeof h!=="boolean")throw Error("Expected boolean but got "+yrD(h)+": "+h);return h}; Hp=function(h){switch(typeof h){case "bigint":return!0;case "number":return lk(h);case "string":return Dnp.test(h);default:return!1}}; hOL=function(h){if(typeof h!=="number")throw KQ("int32");if(!lk(h))throw KQ("int32");return h|0}; wn=function(h){return h==null?h:hOL(h)}; Wp=function(h){if(h==null)return h;if(typeof h==="string"&&h)h=+h;else if(typeof h!=="number")return;return lk(h)?h|0:void 0}; yd=function(h){if(h==null)return h;if(typeof h==="string"&&h)h=+h;else if(typeof h!=="number")return;return lk(h)?h>>>0:void 0}; g26=function(h){var t=0;t=t===void 0?0:t;if(!Hp(h))throw KQ("int64");var Y=typeof h;switch(t){case 512:switch(Y){case "string":return XN(h);case "bigint":return String(MH(64,h));default:return FN(h)}case 1024:switch(Y){case "string":return teW(h);case "bigint":return Bt(MH(64,h));default:return i0n(h)}case 0:switch(Y){case "string":return XN(h);case "bigint":return Bt(MH(64,h));default:return sV(h)}default:return wk(t,"Unknown format requested type for int64")}}; jh=function(h){return h==null?h:g26(h)}; Ybb=function(h){if(h[0]==="-")return!1;var t=h.length;return t<20?!0:t===20&&Number(h.substring(0,6))<184467}; LgL=function(h){var t=h.length;return h[0]==="-"?t<20?!0:t===20&&Number(h.substring(0,7))>-922337:t<19?!0:t===19&&Number(h.substring(0,6))<922337}; qbc=function(h){if(h<0){gn(h);var t=YJ(Pt,hQ);h=Number(t);return ZB(h)?h:t}t=String(h);if(Ybb(t))return t;gn(h);return Lf(Pt,hQ)}; zOL=function(h){if(LgL(h))return h;qH(h);return Pvp()}; sV=function(h){Hp(h);h=bk(h);ZB(h)||(gn(h),h=RNn(Pt,hQ));return h}; FN=function(h){Hp(h);h=bk(h);if(ZB(h))h=String(h);else{var t=String(h);LgL(t)?h=t:(gn(h),h=Pvp())}return h}; XN=function(h){Hp(h);var t=bk(Number(h));if(ZB(t))return String(t);t=h.indexOf(".");t!==-1&&(h=h.substring(0,t));return zOL(h)}; teW=function(h){var t=bk(Number(h));if(ZB(t))return Bt(t);t=h.indexOf(".");t!==-1&&(h=h.substring(0,t));return fQ()?Bt(MH(64,BigInt(h))):Bt(zOL(h))}; i0n=function(h){return ZB(h)?Bt(sV(h)):Bt(FN(h))}; VeL=function(h){if(h==null)return h;var t=typeof h;if(t==="bigint")return String(MH(64,h));if(Hp(h)){if(t==="string")return XN(h);if(t==="number")return sV(h)}}; ljD=function(h){if(h==null)return h;var t=typeof h;if(t==="bigint")return String(NkL(64,h));if(Hp(h)){if(t==="string")return Hp(h),t=bk(Number(h)),ZB(t)&&t>=0?h=String(t):(t=h.indexOf("."),t!==-1&&(h=h.substring(0,t)),Ybb(h)||(qH(h),h=YJ(Pt,hQ))),h;if(t==="number")return Hp(h),h=bk(h),h>=0&&ZB(h)?h:qbc(h)}}; H0r=function(h){if(h==null||typeof h=="string"||h instanceof up)return h}; wz3=function(h){if(typeof h!=="string")throw Error();return h}; oV=function(h){if(h!=null&&typeof h!=="string")throw Error();return h}; dn=function(h){return h==null||typeof h==="string"?h:void 0}; Gl=function(h,t){if(!(h instanceof t))throw Error("Expected instanceof "+mnD(t)+" but got "+(h&&mnD(h.constructor)));return h}; Wgb=function(h,t,Y){if(h!=null&&h[Qd]===rn)return h;if(Array.isArray(h)){var L=h[kM]|0;Y=L|Y&32|Y&2;Y!==L&&nQ(h,Y);return new t(h)}}; cp=function(h){return h}; eh=function(h){var t=wL(uk);return t?h[t]:void 0}; JQ=function(){}; pf=function(h,t){for(var Y in h)!isNaN(Y)&&t(h,+Y,h[Y])}; ya6=function(h){var t=new JQ;pf(h,function(Y,L,q){t[L]=zl(q)}); t.e2=h.e2;return t}; UrL=function(h,t){t<100||at(XzD,1)}; xJ=function(h,t,Y,L){var q=L!==void 0;L=!!L;var z=wL(uk),V;!q&&E2&&z&&(V=h[z])&&pf(V,UrL);z=[];var l=h.length;V=4294967295;var H=!1,w=!!(t&64),W=w?t&128?0:-1:void 0;if(!(t&1)){var y=l&&h[l-1];y!=null&&typeof y==="object"&&y.constructor===Object?(l--,V=l):y=void 0;if(w&&!(t&128)&&!q){H=!0;var X;V=((X=vp)!=null?X:cp)(V-W,W,h,y)+W}}t=void 0;for(X=0;X=V){var C=X-W,d=void 0;((d=t)!=null?d:t={})[C]=U}else z[X]=U}if(y)for(var Q in y)l=y[Q],l!=null&& (l=Y(l,L))!=null&&(X=+Q,U=void 0,w&&!Number.isNaN(X)&&(U=X+W)0?void 0:h===0?jEL||(jEL=[0,void 0]):[-h,void 0];case "string":return[0,h];case "object":return h}}; ff=function(h,t,Y){return h=nf(h,t[0],t[1],Y?1:2)}; nf=function(h,t,Y,L){L=L===void 0?0:L;if(h==null){var q=32;Y?(h=[Y],q|=128):h=[];t&&(q=q&-8380417|(t&1023)<<13)}else{if(!Array.isArray(h))throw Error("narr");q=h[kM]|0;2048&q&&!(2&q)&&b0i();if(q&256)throw Error("farr");if(q&64)return L!==0||q&2048||nQ(h,q|2048),h;if(Y&&(q|=128,Y!==h[0]))throw Error("mid");a:{Y=h;q|=64;var z=Y.length;if(z){var V=z-1,l=Y[V];if(l!=null&&typeof l==="object"&&l.constructor===Object){t=q&128?0:-1;V-=t;if(V>=1024)throw Error("pvtlmt");for(var H in l)z=+H,z1024)throw Error("spvt");q=q&-8380417|(H&1023)<<13}}}q|=64;L===0&&(q|=2048);nQ(h,q);return h}; b0i=function(){at(o26,5)}; drp=function(h,t){if(typeof h!=="object")return h;if(Array.isArray(h)){var Y=h[kM]|0;h.length===0&&Y&1?h=void 0:Y&2||(!t||4096&Y||16&Y?h=$J(h,Y,!1,t&&!(Y&16)):(O2(h,34),Y&4&&Object.freeze(h)));return h}if(h!=null&&h[Qd]===rn)return t=h.qD,Y=t[kM]|0,Tv(h,Y)?h:Tl(h,t,Y)?AQ(h,t):$J(t,Y);if(h instanceof up)return h}; AQ=function(h,t,Y){h=new h.constructor(t);Y&&(h.G=$M);h.T=$M;return h}; $J=function(h,t,Y,L){L!=null||(L=!!(34&t));h=xJ(h,t,drp,L);L=32;Y&&(L|=2);t=t&8380609|L;nQ(h,t);return h}; GDn=function(h){var t=h.qD,Y=t[kM]|0;return Tv(h,Y)?Tl(h,t,Y)?AQ(h,t,!0):new h.constructor($J(t,Y,!1)):h}; Sh=function(h){if(h.G!==$M)return!1;var t=h.qD;t=$J(t,t[kM]|0);O2(t,2048);h.qD=t;h.G=void 0;h.T=void 0;return!0}; IV=function(h){if(!Sh(h)&&Tv(h,h.qD[kM]|0))throw Error();}; RV=function(h,t){t===void 0&&(t=h[kM]|0);t&32&&!(t&4096)&&nQ(h,t|4096)}; Tl=function(h,t,Y){return Y&2?!0:Y&32&&!(Y&4096)?(nQ(t,Y|2),h.G=$M,!0):!1}; Pp=function(h,t,Y,L,q){Object.isExtensible(h);t=Bp(h.qD,t,Y,q);if(t!==null||L&&h.T!==$M)return t}; Bp=function(h,t,Y,L){if(t===-1)return null;var q=t+(Y?0:-1),z=h.length-1;if(!(z<1+(Y?0:-1))){if(q>=z){var V=h[z];if(V!=null&&typeof V==="object"&&V.constructor===Object){Y=V[t];var l=!0}else if(q===z)Y=V;else return}else Y=h[q];if(L&&Y!=null){L=L(Y);if(L==null)return L;if(!Object.is(L,Y))return l?V[t]=L:h[q]=L,L}return Y}}; DB=function(h,t,Y,L){IV(h);var q=h.qD;m9(q,q[kM]|0,t,Y,L);return h}; m9=function(h,t,Y,L,q){var z=Y+(q?0:-1),V=h.length-1;if(V>=1+(q?0:-1)&&z>=V){var l=h[V];if(l!=null&&typeof l==="object"&&l.constructor===Object)return l[Y]=L,t}if(z<=V)return h[z]=L,t;if(L!==void 0){var H;V=((H=t)!=null?H:t=h[kM]|0)>>13&1023||536870912;Y>=V?L!=null&&(z={},h[V+(q?0:-1)]=(z[Y]=L,z)):h[z]=L}return t}; Ym=function(h,t,Y,L,q){var z=h.qD,V=z[kM]|0;L=Tv(h,V)?1:L;q=!!q||L===3;L===2&&Sh(h)&&(z=h.qD,V=z[kM]|0);h=hA(z,t);var l=h===tA?7:h[kM]|0,H=im(l,V);var w=4&H?!1:!0;if(w){4&H&&(h=zl(h),l=0,H=gb(H,V),V=m9(z,V,t,h));for(var W=0,y=0;W "+h)}; xm=function(h,t,Y){this.buffer=h;if(Y&&!t)throw Error();this.G=t}; E5=function(h,t){if(typeof h==="string")return new xm(KI$(h),t);if(Array.isArray(h))return new xm(new Uint8Array(h),t);if(h.constructor===Uint8Array)return new xm(h,!1);if(h.constructor===ArrayBuffer)return h=new Uint8Array(h),new xm(h,!1);if(h.constructor===up)return t=pQ(h)||new Uint8Array(0),new xm(t,!0,h);if(h instanceof Uint8Array)return h=h.constructor===Uint8Array?h:new Uint8Array(h.buffer,h.byteOffset,h.byteLength),new xm(h,!1);throw Error();}; km=function(h,t,Y,L){this.T=null;this.X=!1;this.G=this.S=this.W=0;this.init(h,t,Y,L)}; nd=function(h){var t=0,Y=0,L=0,q=h.T,z=h.G;do{var V=q[z++];t|=(V&127)<32&&(Y|=(V&127)>>4);for(L=3;L<32&&V&128;L+=7)V=q[z++],Y|=(V&127)<>>0,Y>>>0);throw a3();}; O5=function(h,t){h.G=t;if(t>h.S)throw E2L(h.S,t);}; fd=function(h){var t=h.T,Y=h.G,L=t[Y++],q=L&127;if(L&128&&(L=t[Y++],q|=(L&127)<<7,L&128&&(L=t[Y++],q|=(L&127)<<14,L&128&&(L=t[Y++],q|=(L&127)<<21,L&128&&(L=t[Y++],q|=L<<28,L&128&&t[Y++]&128&&t[Y++]&128&&t[Y++]&128&&t[Y++]&128&&t[Y++]&128)))))throw a3();O5(h,Y);return q}; $m=function(h){var t=h.T,Y=h.G,L=t[Y+0],q=t[Y+1],z=t[Y+2];t=t[Y+3];O5(h,h.G+4);return(L<<0|q<<8|z<<16|t<<24)>>>0}; TE=function(h){var t=$m(h);h=$m(h);return Lf(t,h)}; AA=function(h){var t=$m(h),Y=$m(h);h=(Y>>31)*2+1;var L=Y>>>20&2047;t=4294967296*(Y&1048575)+t;return L==2047?t?NaN:h*Infinity:L==0?h*4.9E-324*t:h*Math.pow(2,L-1075)*(t+4503599627370496)}; S3=function(h){for(var t=0,Y=h.G,L=Y+10,q=h.T;Yh.S)throw E2L(t,h.S-Y);h.G=L;return Y}; n2L=function(h,t){if(t==0)return Ju();var Y=kD1(h,t);h.FT&&h.X?Y=h.T.subarray(Y,Y+t):(h=h.T,t=Y+t,Y=Y===t?new Uint8Array(0):O0r?h.slice(Y,t):new Uint8Array(h.subarray(Y,t)));return Y.length==0?Ju():new up(Y,eW)}; R3=function(h,t,Y,L){if(I3.length){var q=I3.pop();q.init(h,t,Y,L);h=q}else h=new km(h,t,Y,L);this.G=h;this.S=this.G.G;this.T=this.W=-1;fjD(this,L)}; fjD=function(h,t){t=t===void 0?{}:t;h.qw=t.qw===void 0?!1:t.qw}; $rp=function(h,t,Y,L){if(BF.length){var q=BF.pop();fjD(q,L);q.G.init(h,t,Y,L);return q}return new R3(h,t,Y,L)}; TkL=function(h){var t=h.G;if(t.G==t.S)return!1;h.S=h.G.G;var Y=fd(h.G)>>>0;t=Y>>>3;Y&=7;if(!(Y>=0&&Y<=5))throw xrL(Y,h.S);if(t<1)throw Error("Invalid field number: "+t+" (at position "+h.S+")");h.W=t;h.T=Y;return!0}; PF=function(h){switch(h.T){case 0:h.T!=0?PF(h):S3(h.G);break;case 1:h=h.G;O5(h,h.G+8);break;case 2:if(h.T!=2)PF(h);else{var t=fd(h.G)>>>0;h=h.G;O5(h,h.G+t)}break;case 5:h=h.G;O5(h,h.G+4);break;case 3:t=h.W;do{if(!TkL(h))throw Error("Unmatched start-group tag: stream EOF");if(h.T==4){if(h.W!=t)throw Error("Unmatched end-group tag");break}PF(h)}while(1);break;default:throw xrL(h.T,h.S);}}; mQ=function(h,t,Y){var L=h.G.S,q=fd(h.G)>>>0,z=h.G.G+q,V=z-L;V<=0&&(h.G.S=z,Y(t,h,void 0,void 0,void 0),V=z-h.G.G);if(V)throw Error("Message parsing ended unexpectedly. Expected to read "+(q+" bytes, instead read "+(q-V)+" bytes, either the data ended unexpectedly or the message misreported its own length"));h.G.G=z;h.G.S=L}; lV=function(h){var t=fd(h.G)>>>0;h=h.G;var Y=kD1(h,t);h=h.T;if(Aab){var L=h,q;(q=Dr)||(q=Dr=new TextDecoder("utf-8",{fatal:!0}));t=Y+t;L=Y===0&&t===L.length?L:L.subarray(Y,t);try{var z=q.decode(L)}catch(w){if(NQ===void 0){try{q.decode(new Uint8Array([128]))}catch(W){}try{q.decode(new Uint8Array([97])),NQ=!0}catch(W){NQ=!1}}!NQ&&(Dr=void 0);throw w;}}else{z=Y;t=z+t;Y=[];for(var V=null,l,H;z=t?bp():(H=h[z++],l<194||(H&192)!==128?(z--,bp()):Y.push((l&31)<<6|H&63)): l<240?z>=t-1?bp():(H=h[z++],(H&192)!==128||l===224&&H<160||l===237&&H>=160||((q=h[z++])&192)!==128?(z--,bp()):Y.push((l&15)<<12|(H&63)<<6|q&63)):l<=244?z>=t-2?bp():(H=h[z++],(H&192)!==128||(l<<28)+(H-144)>>30!==0||((q=h[z++])&192)!==128||((L=h[z++])&192)!==128?(z--,bp()):(l=(l&7)<<18|(H&63)<<12|(q&63)<<6|L&63,l-=65536,Y.push((l>>10&1023)+55296,(l&1023)+56320))):bp(),Y.length>=8192&&(V=FI$(V,Y),Y.length=0);z=FI$(V,Y)}return z}; Sb$=function(h){var t=fd(h.G)>>>0;return n2L(h.G,t)}; H7=function(h,t){this.T=h>>>0;this.G=t>>>0}; RO$=function(h){if(!h)return Ijr||(Ijr=new H7(0,0));if(!/^\d+$/.test(h))return null;qH(h);return new H7(Pt,hQ)}; w6=function(h,t){this.T=h>>>0;this.G=t>>>0}; Psp=function(h){if(!h)return BkL||(BkL=new w6(0,0));if(!/^-?\d+$/.test(h))return null;qH(h);return new w6(Pt,hQ)}; W7=function(){this.G=[]}; yp=function(h,t,Y){for(;Y>0||t>127;)h.G.push(t&127|128),t=(t>>>7|Y<<25)>>>0,Y>>>=7;h.G.push(t)}; XB=function(h,t){for(;t>127;)h.G.push(t&127|128),t>>>=7;h.G.push(t)}; mr6=function(h,t){if(t>=0)XB(h,t);else{for(var Y=0;Y<9;Y++)h.G.push(t&127|128),t>>=7;h.G.push(1)}}; UQ=function(h,t){h.G.push(t>>>0&255);h.G.push(t>>>8&255);h.G.push(t>>>16&255);h.G.push(t>>>24&255)}; DrW=function(){this.S=[];this.T=0;this.G=new W7}; CR=function(h,t){t.length!==0&&(h.S.push(t),h.T+=t.length)}; hwL=function(h,t){MQ(h,t,2);t=h.G.end();CR(h,t);t.push(h.T);return t}; trc=function(h,t){var Y=t.pop();for(Y=h.T+h.G.length()-Y;Y>127;)t.push(Y&127|128),Y>>>=7,h.T++;t.push(Y);h.T++}; MQ=function(h,t,Y){XB(h.G,t*8+Y)}; i7c=function(h,t,Y){if(Y!=null){switch(typeof Y){case "string":RO$(Y)}MQ(h,t,1);switch(typeof Y){case "number":h=h.G;tQ(Y);UQ(h,Pt);UQ(h,hQ);break;case "bigint":Y=BigInt.asUintN(64,Y);Y=new H7(Number(Y&BigInt(4294967295)),Number(Y>>BigInt(32)));h=h.G;t=Y.G;UQ(h,Y.T);UQ(h,t);break;default:Y=RO$(Y),h=h.G,t=Y.G,UQ(h,Y.T),UQ(h,t)}}}; FB=function(h,t,Y){MQ(h,t,2);XB(h.G,Y.length);CR(h,h.G.end());CR(h,Y)}; sQ=function(){function h(){throw Error();} Object.setPrototypeOf(h,h.prototype);return h}; j7=function(h,t,Y){this.qD=nf(h,t,Y)}; g9r=function(h,t){if(t==null||t=="")return new h;t=JSON.parse(t);if(!Array.isArray(t))throw Error("dnarr");O2(t,32);return new h(t)}; bV=function(h,t,Y){this.tX=h;this.hX=t;h=wL(Zi);this.G=!!h&&Y===h||!1}; oW=function(h,t){var Y=Y===void 0?Zi:Y;return new bV(h,t,Y)}; L3i=function(h,t,Y,L,q){t=YOi(t,L);t!=null&&(Y=hwL(h,Y),q(t,h),trc(h,Y))}; Qp=function(h,t,Y,L){var q=L[h];if(q)return q;q={};q.Yl=L;q.KB=Z0L(L[0]);var z=L[1],V=1;z&&z.constructor===Object&&(q.extensions=z,z=L[++V],typeof z==="function"&&(q.Su=!0,d6!=null||(d6=z),G3!=null||(G3=L[V+1]),z=L[V+=2]));for(var l={};z&&Array.isArray(z)&&z.length&&typeof z[0]==="number"&&z[0]>0;){for(var H=0;H>BigInt(32)));yp(h.G,Y.T,Y.G);break;default:Y=Psp(t),yp(h.G,Y.T,Y.G)}}}; B7=function(h,t,Y){t=Wp(t);t!=null&&t!=null&&(MQ(h,Y,0),mr6(h.G,t))}; Mr1=function(h,t,Y){t=t==null||typeof t==="boolean"?t:typeof t==="number"?!!t:void 0;t!=null&&(MQ(h,Y,0),h.G.G.push(t?1:0))}; F3n=function(h,t,Y){t=dn(t);t!=null&&FB(h,Y,bu6(t))}; sLn=function(h,t,Y,L,q){t=YOi(t,L);t!=null&&(Y=hwL(h,Y),q(t,h),trc(h,Y))}; Z7L=function(){var h=P7;this.G=jL6;this.isRepeated=0;this.T=Cd;this.defaultValue=void 0;this.S=h.messageId!=null?SW:void 0}; b71=function(h){return function(){var t=new DrW;yfL(this.qD,t,Qp(aW,pR,nR,h));CR(t,t.G.end());for(var Y=new Uint8Array(t.T),L=t.S,q=L.length,z=0,V=0;V-1)return t.apply(null,g.p(Y));try{return h.G=h.S.G.now(),t.apply(null,g.p(Y))}finally{h.W+=h.S.G.now()-h.G,h.G=-1,h.T+=1}}}; dlW=function(h,t){this.T=h;this.S=t;this.G=new o96(h)}; GfL=function(){this.G={}}; rfi=function(){var h=tk().flags,t=QLr;h=h.G[t.key];if(t.valueType==="proto"){try{var Y=JSON.parse(h);if(Array.isArray(Y))return Y}catch(L){}return t.defaultValue}return typeof h===typeof t.defaultValue?h:t.defaultValue}; Jfn=function(){this.S=void 0;this.T=this.U=0;this.X=-1;this.gz=new o7;dh(this.gz,"mv",cfc).G=!0;dh(this.gz,"omid",cZ);dh(this.gz,"epoh",cZ).G=!0;dh(this.gz,"epph",cZ).G=!0;dh(this.gz,"umt",cZ).G=!0;dh(this.gz,"phel",cZ).G=!0;dh(this.gz,"phell",cZ).G=!0;dh(this.gz,"oseid",uKr).G=!0;var h=this.gz;h.G.sloi||(h.G.sloi=new ZX);h.G.sloi.G=!0;dh(this.gz,"mm",io);dh(this.gz,"ovms",ewL).G=!0;dh(this.gz,"xdi",cZ).G=!0;dh(this.gz,"amp",cZ).G=!0;dh(this.gz,"prf",cZ).G=!0;dh(this.gz,"gtx",cZ).G=!0;dh(this.gz, "mvp_lv",cZ).G=!0;dh(this.gz,"ssmol",cZ).G=!0;dh(this.gz,"fmd",cZ).G=!0;dh(this.gz,"gen204simple",cZ);this.G=new dlW(Zm(),this.gz);this.W=!1;this.flags=new GfL}; tk=function(){return s2(Jfn)}; pbp=function(h,t,Y,L){if(Math.random()<(L||h.G))try{if(Y instanceof Wt)var q=Y;else q=new Wt,Ht(Y,function(V,l){var H=q,w=H.W++;V=yL(l,V);H.G.push(w);H.T[w]=V}); var z=q.K6(h.T,"pagead2.googlesyndication.com","/pagead/gen_204?id="+t+"&");z&&(Zm(),XZi(z))}catch(V){}}; v9b=function(h,t,Y){Y=Y===void 0?{}:Y;this.error=h;this.meta=Y;this.context=t.context;this.msg=t.message||"";this.id=t.id||"jserror"}; K3L=function(){var h=h===void 0?g.D$:h;return(h=h.performance)&&h.now&&h.timing?Math.floor(h.now()+h.timing.navigationStart):g.H1()}; aPr=function(){var h=h===void 0?g.D$:h;return(h=h.performance)&&h.now?h.now():null}; xlp=function(h,t,Y){this.label=h;this.type=t;this.value=Y;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Yn=function(){var h=window;this.events=[];this.T=h||g.D$;var t=null;h&&(h.google_js_reporting_queue=h.google_js_reporting_queue||[],this.events=h.google_js_reporting_queue,t=h.google_measure_js_timing);this.G=gp()||(t!=null?t:Math.random()<1)}; E9n=function(h){h&&Lr&&gp()&&(Lr.clearMarks("goog_"+h.label+"_"+h.uniqueId+"_start"),Lr.clearMarks("goog_"+h.label+"_"+h.uniqueId+"_end"))}; qw=function(h,t,Y,L,q,z,V){var l="";h&&(l+=h+":");Y&&(l+="//",t&&(l+=t+"@"),l+=Y,L&&(l+=":"+L));q&&(l+=q);z&&(l+="?"+z);V&&(l+="#"+V);return l}; g.zF=function(h){return h.match(kfL)}; O7$=function(h){return h?decodeURI(h):h}; g.VC=function(h){return O7$(g.zF(h)[3]||null)}; Nw=function(h){return O7$(g.zF(h)[5]||null)}; g.n9L=function(h){h=g.zF(h);return qw(h[1],h[2],h[3],h[4])}; lo=function(h){h=g.zF(h);return qw(null,null,null,null,h[5],h[6],h[7])}; fPp=function(h){var t=h.indexOf("#");return t<0?h:h.slice(0,t)}; Hy=function(h,t){if(h){h=h.split("&");for(var Y=0;Y=0){var z=h[Y].substring(0,L);q=h[Y].substring(L+1)}else z=h[Y];t(z,q?us(q):"")}}}; wp=function(h,t){if(!t)return h;var Y=h.indexOf("#");Y<0&&(Y=h.length);var L=h.indexOf("?");if(L<0||L>Y){L=Y;var q=""}else q=h.substring(L+1,Y);h=[h.slice(0,L),q,h.slice(Y)];Y=h[1];h[1]=t?Y?Y+"&"+t:t:Y;return h[0]+(h[1]?"?"+h[1]:"")+h[2]}; Wy=function(h,t,Y){if(Array.isArray(t))for(var L=0;L=0&&tY)q=Y;L+=t.length+1;return us(h.slice(L,q!==-1?q:0))}; j9=function(h,t){for(var Y=h.search(Fz),L=0,q,z=[];(q=Cr(h,L,t,Y))>=0;)z.push(h.substring(L,q)),L=Math.min(h.indexOf("&",q)+1||Y,Y);z.push(h.slice(L));return z.join("").replace(AfL,"$1")}; SOb=function(h,t,Y){return UM(j9(h,t),t,Y)}; IPb=function(){var h=ZU;this.G=bo;this.V8="jserror";this.bA=!0;this.ww=null;this.T=this.Wv;this.yb=h===void 0?null:h}; Rw1=function(h,t,Y){var L=oO;return hk(tk().G.G,function(){try{if(L.yb&&L.yb.G){var q=L.yb.start(h.toString(),3);var z=t();L.yb.end(q)}else z=t()}catch(l){var V=L.bA;try{E9n(q),V=L.T(h,new dp(GF(l)),void 0,Y)}catch(H){L.Wv(217,H)}if(!V)throw l;}return z})()}; QC=function(h,t,Y,L){return hk(tk().G.G,function(){var q=g.OL.apply(0,arguments);return Rw1(h,function(){return t.apply(Y,q)},L)})}; GF=function(h){var t=h.toString();h.name&&t.indexOf(h.name)==-1&&(t+=": "+h.name);h.message&&t.indexOf(h.message)==-1&&(t+=": "+h.message);if(h.stack)a:{h=h.stack;var Y=t;try{h.indexOf(Y)==-1&&(h=Y+"\n"+h);for(var L;h!=L;)L=h,h=h.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");t=h.replace(/\n */g,"\n");break a}catch(q){t=Y;break a}t=void 0}return t}; dp=function(h){v9b.call(this,Error(h),{message:h})}; BS$=function(){uI&&typeof uI.google_measure_js_timing!="undefined"&&(uI.google_measure_js_timing||ZU.disable())}; PIc=function(h){oO.ww=function(t){g.B1(h,function(Y){Y(t)})}}; ml1=function(h,t){return Rw1(h,t)}; rp=function(h,t){return QC(h,t)}; cy=function(h,t,Y,L){oO.Wv(h,t,Y,L)}; uo=function(){return Date.now()-DlL}; hcn=function(){var h=tk().S,t=e9>=0?uo()-e9:-1,Y=Jk?uo()-pr:-1,L=vy>=0?uo()-vy:-1;if(h==947190542)return 100;if(h==79463069)return 200;h=[2E3,4E3];var q=[250,500,1E3];cy(637,Error(),.001);var z=t;Y!=-1&&Y1500&&L<4E3?500:V}; Kr=function(h,t,Y){var L=new aL(0,0,0,0);this.time=h;this.volume=null;this.S=t;this.G=L;this.T=Y}; aO=function(h,t,Y,L,q,z,V,l){this.W=h;this.C=t;this.S=Y;this.U=L;this.G=q;this.X=z;this.T=V;this.Y=l}; iQb=function(h){var t=h!==h.top,Y=h.top===LIc(h),L=-1,q=0;if(t&&Y&&h.top.mraid){L=3;var z=h.top.mraid}else L=(z=h.mraid)?t?Y?2:1:0:-1;z&&(z.IS_GMA_SDK||(q=2),JrL(tWL,function(V){return typeof z[V]==="function"})||(q=1)); return{hn:z,compatibility:q,wxm:L}}; gMi=function(){var h=window.document;return h&&typeof h.elementFromPoint==="function"}; Y2L=function(h,t,Y){if(h&&t!==null&&t!=t.top){if(!t.top)return new g.Se(-12245933,-12245933);t=t.top}try{return(Y===void 0?0:Y)?(new g.Se(t.innerWidth,t.innerHeight)).round():vyp(t||window).round()}catch(L){return new g.Se(-12245933,-12245933)}}; xn=function(h,t,Y){try{if(h){if(!t.top)return new aL(-12245933,-12245933,-12245933,-12245933);t=t.top}var L=Y2L(h,t,Y),q=L.height,z=L.width;if(z===-12245933)return new aL(z,z,z,z);var V=gS(t.document);var l=aC6(V.G);var H=l.x,w=l.y;return new aL(w,H+z,w+q,H)}catch(W){return new aL(-12245933,-12245933,-12245933,-12245933)}}; EM=function(h,t){t=Math.pow(10,t);return Math.floor(h*t)/t}; LVD=function(h){return new aL(h.top,h.right,h.bottom,h.left)}; q2c=function(h){var t=h.top||0,Y=h.left||0;return new aL(t,Y+(h.width||0),t+(h.height||0),Y)}; kn=function(h){return h!=null&&h>=0&&h<=1}; zcp=function(){var h=g.xp();return h?OM("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(t){return pu(h,t)})||pu(h,"OMI/")&&!pu(h,"XiaoMi/")?!0:pu(h,"Presto")&&pu(h,"Linux")&&!pu(h,"X11")&&!pu(h,"Android")&&!pu(h,"Mobi"):!1}; VWi=function(){this.S=!lp(uI.top);this.isMobileDevice=zv()||mhL();var h=we();this.domain=h.length>0&&h[h.length-1]!=null&&h[h.length-1].url!=null?g.VC(h[h.length-1].url)||"":"";this.G=new aL(0,0,0,0);this.W=new g.Se(0,0);this.X=new g.Se(0,0);this.C=new aL(0,0,0,0);this.frameOffset=new g.TD(0,0);this.U=0;this.Y=!1;this.T=!(!uI||!iQb(uI).hn);this.update(uI)}; Neb=function(h,t){t&&t.screen&&(h.W=new g.Se(t.screen.width,t.screen.height))}; lmL=function(h,t){a:{var Y=h.G?new g.Se(x9(h.G),h.G.getHeight()):new g.Se(0,0);t=t===void 0?uI:t;t!==null&&t!=t.top&&(t=t.top);var L=0,q=0;try{var z=t.document,V=z.body,l=z.documentElement;if(z.compatMode=="CSS1Compat"&&l.scrollHeight)L=l.scrollHeight!=Y.height?l.scrollHeight:l.offsetHeight,q=l.scrollWidth!=Y.width?l.scrollWidth:l.offsetWidth;else{var H=l.scrollHeight,w=l.scrollWidth,W=l.offsetHeight,y=l.offsetWidth;l.clientHeight!=W&&(H=V.scrollHeight,w=V.scrollWidth,W=V.offsetHeight,y=V.offsetWidth); H>Y.height?H>W?(L=H,q=w):(L=W,q=y):H0||h.Y)return!0;h=Zm().T.isVisible();var t=LQ(fr)===0;return h||t}; nr=function(){return s2(VWi)}; TF=function(h){this.S=h;this.T=0;this.G=null}; Ak=function(h,t,Y){this.S=h;this.Ne=Y===void 0?"na":Y;this.X=[];this.isInitialized=!1;this.W=new Kr(-1,!0,this);this.G=this;this.Y=t;this.AQ=this.L=!1;this.gU="uk";this.Wm=!1;this.U=!0}; S9=function(h,t){g.jE(h.X,t)||(h.X.push(t),t.IV(h.G),t.Jm(h.W),t.Dp()&&(h.L=!0))}; HQL=function(h){h=h.G;h.n2();h.Mu();var t=nr();t.C=xn(!1,h.S,t.isMobileDevice);lmL(nr(),h.S);h.W.G=h.ZU()}; wtn=function(h){h.L=h.X.length?OM(h.X,function(t){return t.Dp()}):!1}; WV3=function(h){var t=g.ul(h.X);g.B1(t,function(Y){Y.Jm(h.W)})}; IO=function(h){var t=g.ul(h.X);g.B1(t,function(Y){Y.IV(h.G)}); h.G!=h||WV3(h)}; RO=function(h,t,Y,L){this.element=h;this.G=new aL(0,0,0,0);this.S=null;this.U=new aL(0,0,0,0);this.T=t;this.gz=Y;this.Wm=L;this.R0=!1;this.timestamp=-1;this.L=new aO(t.W,this.element,this.G,new aL(0,0,0,0),0,0,uo(),0);this.X=void 0}; yur=function(h,t){return h.X?new aL(Math.max(t.top+h.X.top,t.top),Math.min(t.left+h.X.right,t.right),Math.min(t.top+h.X.bottom,t.bottom),Math.max(t.left+h.X.left,t.left)):t.clone()}; By=function(h){this.X=!1;this.G=h;this.W=function(){}}; XtL=function(h,t,Y){this.S=Y===void 0?0:Y;this.T=h;this.G=t==null?"":t}; UGc=function(h){switch(Math.trunc(h.S)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Cpp=function(h,t){return h.St.S?!1:h.Tt.T?!1:typeof h.Gtypeof t.G?!1:h.G0?L[Y]-L[Y-1]:L[Y]})}; N_=function(){this.T=new g_;this.Ne=this.Zx=0;this.Y8=new iy;this.x8=this.C=-1;this.iP=1E3;this.tQ=new g_([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.gU=this.R0=-1}; ly=function(h,t){return dH6(h.T,t===void 0?!0:t)}; Hx=function(h,t,Y,L){var q=q===void 0?!1:q;Y=QC(L,Y);YM(h,t,Y,{capture:q})}; Wx=function(h,t){t=w_(t);return t===0?0:w_(h)/t}; w_=function(h){return Math.max(h.bottom-h.top,0)*Math.max(h.right-h.left,0)}; rQL=function(h,t){if(!h||!t)return!1;for(var Y=0;h!==null&&Y++<100;){if(h===t)return!0;try{if(h=h.parentElement||h){var L=hf(h),q=L&&Hb(L),z=q&&q.frameElement;z&&(h=z)}}catch(V){break}}return!1}; cQD=function(h,t,Y){if(!h||!t)return!1;t=k9(h.clone(),-t.left,-t.top);h=(t.left+t.right)/2;t=(t.top+t.bottom)/2;lp(window.top)&&window.top&&window.top.document&&(window=window.top);if(!gMi())return!1;h=window.document.elementFromPoint(h,t);if(!h)return!1;t=(t=(t=hf(Y))&&t.defaultView&&t.defaultView.frameElement)&&rQL(t,h);var L=h===Y;h=!L&&h&&ZP(h,function(q){return q===Y}); return!(t||L||h)}; uNn=function(h,t,Y,L){return nr().S?!1:x9(h)<=0||h.getHeight()<=0?!0:Y&&L?ml1(208,function(){return cQD(h,t,Y)}):!1}; CP=function(h,t,Y){g.O.call(this);this.position=ekL.clone();this.zn=this.Gd();this.TW=-2;this.timeCreated=Date.now();this.PT=-1;this.ob=t;this.Mi=null;this.iH=!1;this.k$=null;this.opacity=-1;this.requestSource=Y;this.p2G=!1;this.zW=function(){}; this.lQ=function(){}; this.uB=new OHL;this.uB.TB=h;this.uB.G=h;this.wN=!1;this.GP={D2:null,Cx:null};this.z4=!0;this.gI=null;this.nU=this.Wj=!1;tk().U++;this.S1=this.IL();this.sH=-1;this.C6=null;this.hasCompleted=this.gf=!1;this.gz=new o7;OLL(this.gz);JQ$(this);this.requestSource==1?GR(this.gz,"od",1):GR(this.gz,"od",0)}; JQ$=function(h){h=h.uB.TB;var t;if(t=h&&h.getAttribute)t=/-[a-z]/.test("googleAvInapp")?!1:ppL&&h.dataset?"googleAvInapp"in h.dataset:h.hasAttribute?h.hasAttribute("data-"+y33()):!!h.getAttribute("data-"+y33());t&&(nr().T=!0)}; M_=function(h,t){t!=h.nU&&(h.nU=t,h=nr(),t?h.U++:h.U>0&&h.U--)}; vJc=function(h,t){if(h.C6){if(t.getName()===h.C6.getName())return;h.C6.dispose();h.C6=null}t=t.create(h.uB.G,h.gz,h.Dp());if(t=t!=null&&t.observe()?t:null)h.C6=t}; K93=function(h,t,Y){if(!h.Mi||h.ob==-1||t.T===-1||h.Mi.T===-1)return 0;h=t.T-h.Mi.T;return h>Y?0:h}; aBL=function(h,t,Y){if(h.C6){h.C6.GK();var L=h.C6.L,q=L.W,z=q.G;if(L.U!=null){var V=L.S;h.k$=new g.TD(V.left-z.left,V.top-z.top)}z=h.z7()?Math.max(L.G,L.X):L.G;V={};q.volume!==null&&(V.volume=q.volume);q=h.G5(L);h.Mi=L;h.Hm(z,t,Y,!1,V,q,L.Y)}}; xHp=function(h){if(h.iH&&h.gI){var t=Qo(h.gz,"od")==1,Y=nr().G,L=h.gI,q=h.C6?h.C6.getName():"ns",z=h.k$,V=new g.Se(x9(Y),Y.getHeight());Y=h.z7();h={o1G:q,k$:z,LTz:V,z7:Y,p6:h.S1.p6,sDQ:t};if(t=L.T){t.GK();q=t.L;z=q.W.G;var l=V=null;q.U!=null&&z&&(V=q.S,V=new g.TD(V.left-z.left,V.top-z.top),l=new g.Se(z.right-z.left,z.bottom-z.top));q=Y?Math.max(q.G,q.X):q.G;Y={o1G:t.getName(),k$:V,LTz:l,z7:Y,sDQ:!1,p6:q}}else Y=null;Y&&ZfL(L,h,Y)}}; EJp=function(h,t,Y){t&&(h.zW=t);Y&&(h.lQ=Y)}; g.FM=function(){}; g.si=function(h){return{value:h,done:!1}}; kln=function(){this.W=this.G=this.S=this.T=this.X=0}; OfL=function(h){var t={};var Y=g.H1()-h.X;t=(t.ptlt=Y,t);(Y=h.T)&&(t.pnk=Y);(Y=h.S)&&(t.pnc=Y);(Y=h.W)&&(t.pnmm=Y);(h=h.G)&&(t.pns=h);return t}; nJr=function(){DC.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; j8=function(h){return kn(h.volume)&&h.volume>0}; Zy=function(h,t,Y,L){Y=Y===void 0?!0:Y;L=L===void 0?function(){return!0}:L; return function(q){var z=q[h];if(Array.isArray(z)&&L(q))return fBL(z,t,Y)}}; by=function(h,t){return function(Y){return t(Y)?Y[h]:void 0}}; $HL=function(h){return function(t){for(var Y=0;Y0?z[q-1]+1:0,L+1).reduce(function(V,l){return V+l},0)})}; Tn1=function(){this.T=this.G=""}; AQr=function(){}; d_=function(h,t){var Y={};if(h!==void 0)if(t!=null)for(var L in t){var q=t[L];L in Object.prototype||q!=null&&(Y[L]=typeof q==="function"?q(h):h[q])}else g.Mn(Y,h);return DU(ml(new Py,Y))}; SV$=function(){var h={};this.T=(h.vs=[1,0],h.vw=[0,1],h.am=[2,2],h.a=[4,4],h.f=[8,8],h.bm=[16,16],h.b=[32,32],h.avw=[0,64],h.avs=[64,0],h.pv=[256,256],h.gdr=[0,512],h.p=[0,1024],h.r=[0,2048],h.m=[0,4096],h.um=[0,8192],h.ef=[0,16384],h.s=[0,32768],h.pmx=[0,16777216],h.mut=[33554432,33554432],h.umutb=[67108864,67108864],h.tvoff=[134217728,134217728],h);this.G={};for(var t in this.T)this.T[t][1]>0&&(this.G[t]=0);this.S=0}; Gj=function(h,t){var Y=h.T[t],L=Y[1];h.S+=Y[0];L>0&&h.G[t]==0&&(h.G[t]=1)}; IB1=function(h){var t=g.Nn(h.T),Y=0,L;for(L in h.G)g.jE(t,L)&&h.G[L]==1&&(Y+=h.T[L][1],h.G[L]=2);return Y}; RkW=function(h){var t=0,Y;for(Y in h.G){var L=h.G[Y];if(L==1||L==2)t+=h.T[Y][1]}return t}; QF=function(){this.G=this.T=0}; r_=function(){N_.call(this);this.S=new iy;this.lP=this.L=this.Wm=0;this.Y=-1;this.MD=new iy;this.X=new iy;this.G=new g_;this.U=this.W=-1;this.AQ=new iy;this.iP=2E3;this.X5=new QF;this.yG=new QF;this.JQ=new QF}; cx=function(h,t,Y){var L=h.lP;Jk||Y||h.Y==-1||(L+=t-h.Y);return L}; Bnb=function(){this.S=!1}; e8=function(h,t){this.S=!1;this.W=h;this.L=t;this.X=0}; JN=function(h,t){e8.call(this,h,t);this.C=[]}; Pkc=function(){}; pP=function(){}; vx=function(h,t,Y,L){RO.call(this,h,t,Y,L)}; KP=function(h,t,Y){RO.call(this,null,h,t,Y);this.Y=h.isActive();this.C=0}; aK=function(h){return[h.top,h.left,h.bottom,h.right]}; xr=function(h,t,Y,L,q,z){z=z===void 0?new pP:z;CP.call(this,t,Y,L);this.yA=q;this.hp=0;this.Z3={};this.d0=new SV$;this.iQ={};this.Mq="";this.JQ=null;this.G$=!1;this.G=[];this.wF=z.T();this.U=z.S();this.W=null;this.S=-1;this.Ne=this.L=void 0;this.x8=this.AQ=0;this.gU=-1;this.iP=this.yG=!1;this.Wm=this.Y=this.T=this.bX=this.Pq=0;new g_;this.X5=this.lP=0;this.Y8=-1;this.CI=0;this.C=g.Jf;this.R0=[this.Gd()];this.Hq=2;this.Nn={};this.Nn.pause="p";this.Nn.resume="r";this.Nn.skip="s";this.Nn.mute="m";this.Nn.unmute= "um";this.Nn.exitfullscreen="ef";this.X=null;this.tQ=this.MD=!1;this.Q4=Math.floor(Date.now()/1E3-1704067200);this.Zx=0}; Ei=function(h){h.hasCompleted=!0;h.CI!=0&&(h.CI=3)}; kr=function(h){return h===void 0?h:Number(h)?EM(h,3):0}; Oi=function(h,t){return h.R0[t!=null&&tMath.max(1E4,h.S/3)?0:t);var Y=h.C(h)||{};Y=Y.currentTime!==void 0?Y.currentTime:h.AQ;var L=Y-h.AQ,q=0;L>=0?(h.x8+=t,h.X5+=Math.max(t-L,0),q=Math.min(L,h.x8)):h.lP+=Math.abs(L);L!=0&&(h.x8=0);h.Y8==-1&&L>0&&(h.Y8=vy>=0?uo()-vy:-1);h.AQ=Y;return q}; hgL=function(h,t){OM(h.U,function(Y){return Y.W==t.W})||h.U.push(t)}; t3c=function(h){var t=q_(h.pN().G,1);return nP(h,t)}; nP=function(h,t,Y){return t>=15E3?!0:h.yG?(Y===void 0?0:Y)?!0:h.S>0?t>=h.S/2:h.gU>0?t>=h.gU:!1:!1}; idL=function(h){var t=EM(h.S1.p6,2),Y=h.d0.S,L=h.S1,q=Oi(h),z=kr(q.W),V=kr(q.U),l=kr(L.volume),H=EM(q.C,2),w=EM(q.x8,2),W=EM(L.p6,2),y=EM(q.R0,2),X=EM(q.gU,2);L=EM(L.JV,2);var U=h.HD().clone().round();h=h.C6&&h.C6.S?(h.C6?h.C6.S:null).clone().round():null;q=ly(q,!1);return{h0m:t,Yg:Y,K_:z,gg:V,Qd:l,f_:H,eW:w,p6:W,Xx:y,cU:X,JV:L,position:U,Or:h,Ni:q}}; Y5W=function(h,t){gmb(h.G,t,function(){return{h0m:0,Yg:void 0,K_:-1,gg:-1,Qd:-1,f_:-1,eW:-1,p6:-1,Xx:-1,cU:-1,JV:-1,position:void 0,Or:void 0,Ni:[]}}); h.G[t]=idL(h)}; gmb=function(h,t,Y){for(var L=h.length;L0?1:0;y.atos= Yr(w.G);y.ssb=Yr(w.tQ,!1);y.amtos=dH6(w.G,!1);y.uac=h.Pq;y.vpt=w.S.G;W=="nio"&&(y.nio=1,y.avms="nio");y.gmm="4";y.gdr=nP(h,w.S.G,!0)?1:0;y.efpf=h.Hq;if(W=="gsv"||W=="nis")W=h.C6,W.C>0&&(y.nnut=W.C);y.tcm=mH$(h);y.nmt=h.lP;y.bt=h.X5;y.pst=h.Y8;y.vpaid=h.L;y.dur=h.S;y.vmtime=h.AQ;y.is=h.d0.S;h.G.length>=1&&(y.i0=h.G[0].Yg,y.a0=[h.G[0].Qd],y.c0=[h.G[0].p6],y.ss0=[h.G[0].JV],W=h.G[0].position,z=h.G[0].Or,y.p0=W?aK(W):void 0,W&&z&&!EO(z,W)&&(y.cp0=aK(z)));h.G.length>=2&&(y.i1=h.G[1].Yg,y.a1=Tj(h.G[1].K_, h.G[1].Qd,h.G[1].gg),y.c1=Tj(h.G[1].f_,h.G[1].p6,h.G[1].eW),y.ss1=Tj(h.G[1].Xx,h.G[1].JV,h.G[1].cU),W=h.G[1].position,z=h.G[1].Or,y.p1=W?aK(W):void 0,W&&z&&!EO(z,W)&&(y.cp1=aK(z)),y.mtos1=h.G[1].Ni);h.G.length>=3&&(y.i2=h.G[2].Yg,y.a2=Tj(h.G[2].K_,h.G[2].Qd,h.G[2].gg),y.c2=Tj(h.G[2].f_,h.G[2].p6,h.G[2].eW),y.ss2=Tj(h.G[2].Xx,h.G[2].JV,h.G[2].cU),W=h.G[2].position,z=h.G[2].Or,y.p2=W?aK(W):void 0,W&&z&&!EO(z,W)&&(y.cp2=aK(z)),y.mtos2=h.G[2].Ni);h.G.length>=4&&(y.i3=h.G[3].Yg,y.a3=Tj(h.G[3].K_,h.G[3].Qd, h.G[3].gg),y.c3=Tj(h.G[3].f_,h.G[3].p6,h.G[3].eW),y.ss3=Tj(h.G[3].Xx,h.G[3].JV,h.G[3].cU),W=h.G[3].position,z=h.G[3].Or,y.p3=W?aK(W):void 0,W&&z&&!EO(z,W)&&(y.cp3=aK(z)),y.mtos3=h.G[3].Ni);y.cs=RkW(h.d0);t&&(y.ic=IB1(h.d0),y.dvpt=w.S.T,y.dvs=VF(w.T,.5),y.dfvs=VF(w.T,1),y.davs=VF(w.G,.5),y.dafvs=VF(w.G,1),Y&&(w.S.T=0,GlL(w.T),GlL(w.G)),h.b9()&&(y.dtos=w.Wm,y.dav=w.L,y.dtoss=h.hp+1,Y&&(w.Wm=0,w.L=0,h.hp++)),y.dat=w.X.T,y.dft=w.AQ.T,Y&&(w.X.T=0,w.AQ.T=0));y.ps=[l.X.width,l.X.height];y.bs=[x9(l.G),l.G.getHeight()]; y.scs=[l.W.width,l.W.height];y.dom=l.domain;h.bX&&(y.vds=h.bX);if(h.U.length>0||h.wF)t=g.ul(h.U),h.wF&&t.push(h.wF),y.pings=g.CQ(t,function(X){return X.toString()}); t=g.CQ(g.oK(h.U,function(X){return X.U()}),function(X){return X.getId()}); d1b(t);y.ces=t;h.T&&(y.vmer=h.T);h.Y&&(y.vmmk=h.Y);h.Wm&&(y.vmiec=h.Wm);y.avms=h.C6?h.C6.getName():"ns";h.C6&&g.Mn(y,h.C6.D1());L?(y.c=EM(h.S1.p6,2),y.ss=EM(h.S1.JV,2)):y.tth=uo()-V36;y.mc=EM(w.x8,2);y.nc=EM(w.C,2);y.mv=kr(w.U);y.nv=kr(w.W);y.lte=EM(h.TW,2);L=Oi(h,q);ly(w);y.qmtos=ly(L);y.qnc=EM(L.C,2);y.qmv=kr(L.U);y.qnv=kr(L.W);y.qas=L.W>0?1:0;y.qi=h.Mq;y.avms||(y.avms="geo");y.psm=w.X5.G;y.psv=w.X5.getValue();y.psfv=w.yG.getValue();y.psa=w.JQ.getValue();H=Ebb(H.gz);H.length&&(y.veid=H);h.X&&g.Mn(y, OfL(h.X));y.avas=h.BE();y.vs=h.UK();y.co=Nbn(h);y.tm=w.Zx;y.tu=w.Ne;return y}; LQb=function(h,t){if(g.jE(lrb,t))return!0;var Y=h.Z3[t];return Y!==void 0?(h.Z3[t]=!0,!Y):!1}; Nbn=function(h){var t=h.Zx.toString(10).padStart(2,"0");t=""+h.Q4+t;h.Zx<99&&h.Zx++;return t}; wFW=function(){this.G={};var h=Hb();AN(this,h,document);var t=Hdi();try{if("1"==t){for(var Y=h.parent;Y!=h.top;Y=Y.parent)AN(this,Y,Y.document);AN(this,h.top,h.top.document)}}catch(L){}}; Hdi=function(){var h=document.documentElement;try{if(!lp(Hb().top))return"2";var t=[],Y=Hb(h.ownerDocument);for(h=Y;h!=Y.top;h=h.parent)if(h.frameElement)t.push(h.frameElement);else break;return t&&t.length!=0?"1":"0"}catch(L){return"2"}}; AN=function(h,t,Y){Hx(Y,"mousedown",function(){return WQ$(h)},301); Hx(t,"scroll",function(){return yA$(h)},302); Hx(Y,"touchmove",function(){return XFL(h)},303); Hx(Y,"mousemove",function(){return U7L(h)},304); Hx(Y,"keydown",function(){return Cm1(h)},305)}; WQ$=function(h){g.hd(h.G,function(t){t.S>1E5||++t.S})}; yA$=function(h){g.hd(h.G,function(t){t.G>1E5||++t.G})}; XFL=function(h){g.hd(h.G,function(t){t.G>1E5||++t.G})}; Cm1=function(h){g.hd(h.G,function(t){t.T>1E5||++t.T})}; U7L=function(h){g.hd(h.G,function(t){t.W>1E5||++t.W})}; M3i=function(){this.G=[];this.T=[]}; S8=function(h,t){return g.Mh(h.G,function(Y){return Y.Mq==t})}; FQn=function(h,t){return t?g.Mh(h.G,function(Y){return Y.uB.TB==t}):null}; s3L=function(h,t){return g.Mh(h.T,function(Y){return Y.IY()==2&&Y.Mq==t})}; RK=function(){var h=IK;return h.G.length==0?h.T:h.T.length==0?h.G:g.c1(h.T,h.G)}; j33=function(h,t){h=t.IY()==1?h.G:h.T;var Y=CH(h,function(L){return L==t}); return Y!=-1?(h.splice(Y,1),t.C6&&t.C6.unobserve(),t.dispose(),!0):!1}; Zd3=function(h){var t=IK;if(j33(t,h)){switch(h.IY()){case 0:var Y=function(){return null}; case 2:Y=function(){return s3L(t,h.Mq)}; break;case 1:Y=function(){return S8(t,h.Mq)}}for(var L=Y();L;L=Y())j33(t,L)}}; bd6=function(h){var t=IK;h=g.oK(h,function(Y){return!FQn(t,Y.uB.TB)}); t.G.push.apply(t.G,g.p(h))}; omp=function(h){var t=[];g.B1(h,function(Y){OM(IK.G,function(L){return L.uB.TB===Y.uB.TB&&L.Mq===Y.Mq})||(IK.G.push(Y),t.push(Y))})}; Bx=function(){this.G=this.T=null}; d7i=function(h,t){function Y(L,q){t(L,q)} if(h.T==null)return!1;h.G=g.Mh(h.T,function(L){return L!=null&&L.Ae()}); h.G&&(h.G.init(Y)?HQL(h.G.G):t(h.G.G.OQ(),h.G));return h.G!=null}; Px=function(h){h=GEb(h);By.call(this,h.length?h[h.length-1]:new Ak(uI,0));this.S=h;this.T=null}; GEb=function(h){if(!h.length)return[];h=(0,g.oK)(h,function(Y){return Y!=null&&Y.OI()}); for(var t=1;tY.time?t:Y},h[0])}; tO=function(h){h=h===void 0?uI:h;By.call(this,new Ak(h,2))}; ix=function(){var h=uvp();Ak.call(this,uI.top,h,"geo")}; uvp=function(){tk();var h=nr();return h.S||h.T?0:2}; eg$=function(){}; gD=function(){this.done=!1;this.G={Eu:0,Qu:0,DQ5:0,pY:0,Hs:-1,W1:0,gQ:0,zY:0,PjM:0};this.X=null;this.U=!1;this.S=null;this.C=0;this.T=new TF(this)}; LG=function(){var h=YA;h.U||(h.U=!0,JAL(h,function(){return h.W.apply(h,g.p(g.OL.apply(0,arguments)))}),h.W())}; pFr=function(){s2(eg$);var h=s2(Bx);h.G!=null&&h.G.G?HQL(h.G.G):nr().update(uI)}; qJ=function(h,t,Y){if(!h.done&&(h.T.cancel(),t.length!=0)){h.S=null;try{pFr();var L=uo();tk().X=L;if(s2(Bx).G!=null)for(var q=0;q=0?uo()-e9:-1,l=uo();q.G.Hs==-1&&(V=l);var H=nr(),w=tk(),W=rh(w.gz),y=RK();try{if(y.length>0){var X=H.G;X&&(W.bs=[x9(X),X.getHeight()]);var U=H.X;U&&(W.ps=[U.width,U.height]);uI.screen&&(W.scs=[uI.screen.width,uI.screen.height])}else W.url=encodeURIComponent(uI.location.href.substring(0,512)),z.referrer&&(W.referrer=encodeURIComponent(z.referrer.substring(0,512))); W.tt=V;W.pt=e9;W.bin=w.T;uI.google_osd_load_pub_page_exp!==void 0&&(W.olpp=uI.google_osd_load_pub_page_exp);W.deb=[1,q.G.Eu,q.G.Qu,q.G.pY,q.G.Hs,0,q.T.T,q.G.W1,q.G.gQ,q.G.zY,q.G.PjM,-1].join(";");W.tvt=KQb(q,l);H.T&&(W.inapp=1);if(uI!==null&&uI!=uI.top){y.length>0&&(W.iframe_loc=encodeURIComponent(uI.location.href.substring(0,512)));var C=H.C;W.is=[x9(C),C.getHeight()]}}catch(d){W.error=1}YA.S=W}X=g.Uw(YA.S);U=tk().G;Qo(U.S,"prf")==1?(C=new Di,q=U.G,z=0,q.G>-1&&(z=q.S.G.now()-q.G),C=zE(C,1,Vd(q.W+ z),0),q=U.G,C=zE(C,5,wn(q.G>-1?q.T+1:q.T),0),C=zE(C,2,jh(U.T.G.S()),"0"),C=zE(C,3,jh(U.T.G.T()),"0"),U=zE(C,4,jh(U.T.G.G()),"0"),C={},U=(C.pf=g.Gv(U.S()),C)):U={};g.Mn(X,U);g.Mn(t,L,Y,X,h())}])}; Emi=function(){var h=x7L||uI;if(!h)return"";var t=[];if(!h.location||!h.location.href)return"";t.push("url="+encodeURIComponent(h.location.href.substring(0,512)));h.document&&h.document.referrer&&t.push("referrer="+encodeURIComponent(h.document.referrer.substring(0,512)));return t.join("&")}; z_=function(){var h="youtube.player.web_20250707_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250707_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250707_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250707_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),t;if(((t=h)==null?void 0:t.length)==2)return h[1];h="youtube.player.web_20250707_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var Y;return((Y=h)==null?void 0:Y.length)==3?"20"+h[1]+h[2]:null}; kEr=function(){return"av.default_js".includes("ima_html5_sdk")?{H0:"ima",Oy:null}:"av.default_js".includes("ima_native_sdk")?{H0:"nima",Oy:null}:"av.default_js".includes("admob-native-video-javascript")?{H0:"an",Oy:null}:"youtube.player.web_20250707_21_RC00".includes("cast_js_sdk")?{H0:"cast",Oy:z_()}:"youtube.player.web_20250707_21_RC00".includes("youtube.player.web")?{H0:"yw",Oy:z_()}:"youtube.player.web_20250707_21_RC00".includes("outstream_web_client")?{H0:"out",Oy:z_()}:"youtube.player.web_20250707_21_RC00".includes("drx_rewarded_web")? {H0:"r",Oy:z_()}:"youtube.player.web_20250707_21_RC00".includes("gam_native_web_video")?{H0:"n",Oy:z_()}:"youtube.player.web_20250707_21_RC00".includes("admob_interstitial_video")?{H0:"int",Oy:z_()}:{H0:"j",Oy:null}}; lx=function(h,t){var Y={sv:"967"};Vi!==null&&(Y.v=Vi);Y.cb=Od$;Y.nas=IK.G.length;Y.msg=h;t!==void 0&&(h=nmD(t))&&(Y.e=NJ[h]);return Y}; HE=function(h){return uv(h,"custom_metric_viewable")}; nmD=function(h){var t=HE(h)?"custom_metric_viewable":h.toLowerCase();return wh(fP,function(Y){return Y==t})}; frc=function(){this.G=void 0;this.T=!1;this.S=0;this.W=-1;this.X="tos"}; AAL=function(h){try{var t=h.split(",");return t.length>g.Nn($71).length?null:Fy(t,function(Y,L){L=L.toLowerCase().split("=");if(L.length!=2||Tb1[L[0]]===void 0||!Tb1[L[0]](L[1]))throw Error("Entry ("+L[0]+", "+L[1]+") is invalid.");Y[L[0]]=L[1];return Y},{})}catch(Y){return null}}; S5b=function(h,t){if(h.G==void 0)return 0;switch(h.X){case "mtos":return h.T?zj(t.G,h.G):zj(t.T,h.G);case "tos":return h.T?q_(t.G,h.G):q_(t.T,h.G)}return 0}; wD=function(h,t,Y,L){e8.call(this,t,L);this.C=h;this.Y=Y}; WE=function(){}; yi=function(h){e8.call(this,"fully_viewable_audible_half_duration_impression",h)}; XQ=function(h){this.G=h}; UE=function(h,t){e8.call(this,h,t)}; CG=function(h){JN.call(this,"measurable_impression",h)}; MJ=function(){XQ.apply(this,arguments)}; FQ=function(h,t,Y){KP.call(this,h,t,Y)}; sE=function(h){h=h===void 0?uI:h;By.call(this,new Ak(h,2))}; ju=function(h,t,Y){KP.call(this,h,t,Y)}; Zl=function(h){h=h===void 0?uI:h;By.call(this,new Ak(h,2))}; bx=function(){Ak.call(this,uI,2,"mraid");this.X5=0;this.x8=this.R0=!1;this.C=null;this.T=iQb(this.S);this.W.G=new aL(0,0,0,0);this.Zx=!1}; oC=function(h,t,Y){h.j7("addEventListener",t,Y)}; PmL=function(h){tk().W=!!h.j7("isViewable");oC(h,"viewableChange",Irn);h.j7("getState")==="loading"?oC(h,"ready",RgL):BbD(h)}; BbD=function(h){typeof h.T.hn.AFMA_LIDAR==="string"?(h.R0=!0,m7c(h)):(h.T.compatibility=3,h.C="nc",h.fail("w"))}; m7c=function(h){h.x8=!1;var t=Qo(tk().gz,"rmmt")==1,Y=!!h.j7("isViewable");(t?!Y:1)&&Zm().setTimeout(rp(524,function(){h.x8||(D71(h),cy(540,Error()),h.C="mt",h.fail("w"))}),500); hHL(h);oC(h,h.T.hn.AFMA_LIDAR,t7L)}; hHL=function(h){var t=Qo(tk().gz,"sneio")==1,Y=h.T.hn.AFMA_LIDAR_EXP_1!==void 0,L=h.T.hn.AFMA_LIDAR_EXP_2!==void 0;(t=t&&L)&&(h.T.hn.AFMA_LIDAR_EXP_2=!0);Y&&(h.T.hn.AFMA_LIDAR_EXP_1=!t)}; D71=function(h){h.j7("removeEventListener",h.T.hn.AFMA_LIDAR,t7L);h.R0=!1}; iRW=function(h,t){if(h.j7("getState")==="loading")return new g.Se(-1,-1);t=h.j7(t);if(!t)return new g.Se(-1,-1);h=parseInt(t.width,10);t=parseInt(t.height,10);return isNaN(h)||isNaN(t)?new g.Se(-1,-1):new g.Se(h,t)}; RgL=function(){try{var h=s2(bx);h.j7("removeEventListener","ready",RgL);BbD(h)}catch(t){cy(541,t)}}; t7L=function(h,t){try{var Y=s2(bx);Y.x8=!0;var L=h?new aL(h.y,h.x+h.width,h.y+h.height,h.x):new aL(0,0,0,0);var q=uo(),z=$n();var V=new Kr(q,z,Y);V.G=L;V.volume=t;Y.Jm(V)}catch(l){cy(542,l)}}; Irn=function(h){var t=tk(),Y=s2(bx);h&&!t.W&&(t.W=!0,Y.Zx=!0,Y.C&&Y.fail("w",!0))}; dD=function(){this.isInitialized=!1;this.G=this.T=null;var h={};this.C=(h.start=this.jl,h.firstquartile=this.Fr,h.midpoint=this.YC,h.thirdquartile=this.Iy,h.complete=this.r$,h.error=this.y$,h.pause=this.r5,h.resume=this.by,h.skip=this.JZ,h.viewable_impression=this.iC,h.mute=this.jH,h.unmute=this.jH,h.fullscreen=this.kC,h.exitfullscreen=this.vB,h.fully_viewable_audible_half_duration_impression=this.iC,h.measurable_impression=this.iC,h.abandon=this.r5,h.engagedview=this.iC,h.impression=this.iC,h.creativeview= this.iC,h.progress=this.jH,h.custom_metric_viewable=this.iC,h.bufferstart=this.r5,h.bufferfinish=this.by,h.audio_measurable=this.iC,h.audio_audible=this.iC,h);h={};this.Y=(h.overlay_resize=this.d$,h.abandon=this.zb,h.close=this.zb,h.collapse=this.zb,h.overlay_unmeasurable_impression=function(t){return $r(t,"overlay_unmeasurable_impression",$n())},h.overlay_viewable_immediate_impression=function(t){return $r(t,"overlay_viewable_immediate_impression",$n())},h.overlay_unviewable_impression=function(t){return $r(t, "overlay_unviewable_impression",$n())},h.overlay_viewable_end_of_session_impression=function(t){return $r(t,"overlay_viewable_end_of_session_impression",$n())},h); tk().T=3;g6L(this);this.S=null}; G_=function(h,t,Y,L){h=h.ZV(null,L,!0,t);h.W=Y;bd6([h]);return h}; YQ6=function(h,t,Y){epW(t);var L=h.G;g.B1(t,function(q){var z=g.CQ(q.criteria,function(V){var l=AAL(V);if(l==null)V=null;else if(V=new frc,l.visible!=null&&(V.G=l.visible/100),l.audible!=null&&(V.T=l.audible==1),l.time!=null){var H=l.timetype=="mtos"?"mtos":"tos",w=nbi(l.time,"%")?"%":"ms";l=parseInt(l.time,10);w=="%"&&(l/=100);V.setTime(l,w,H)}return V}); OM(z,function(V){return V==null})||hgL(Y,new wD(q.id,q.event,z,L))})}; LX3=function(){var h=[],t=tk();h.push(s2(ix));Qo(t.gz,"mvp_lv")&&h.push(s2(bx));t=[new sE,new Zl];t.push(new Px(h));t.push(new tO(uI));return t}; qQ6=function(h){if(!h.isInitialized){h.isInitialized=!0;try{var t=uo(),Y=tk(),L=nr();e9=t;Y.S=79463069;h.T!=="o"&&(x7L=LIc(uI));if(UnD()){YA.G.Qu=0;YA.G.Hs=uo()-t;var q=LX3(),z=s2(Bx);z.T=q;d7i(z,function(){Qi()})?YA.done||(vmr(),S9(z.G.G,h),LG()):L.S?Qi():LG()}else rD=!0}catch(V){throw IK.reset(),V; }}}; KG=function(h){YA.T.cancel();cE=h;YA.done=!0}; aC=function(h){if(h.T)return h.T;var t=s2(Bx).G;if(t)switch(t.getName()){case "nis":h.T="n";break;case "gsv":h.T="m"}h.T||(h.T="h");return h.T}; xA=function(h,t,Y){if(h.G==null)return t.bX|=4,!1;h=zHr(h.G,Y,t);t.bX|=h;return h==0}; Qi=function(){var h=[new tO(uI)],t=s2(Bx);t.T=h;d7i(t,function(){KG("i")})?YA.done||(vmr(),LG()):KG("i")}; V7L=function(h,t){if(!h.G$){var Y=$r(h,"start",$n());Y=h.yA.G(Y).G;var L={id:"lidarv"};L.r=t;L.sv="967";Vi!==null&&(L.v=Vi);Hy(Y,function(q,z){return L[q]=q=="mtos"||q=="tos"?z:encodeURIComponent(z)}); t=Emi();Hy(t,function(q,z){return L[q]=encodeURIComponent(z)}); t="//pagead2.googlesyndication.com/pagead/gen_204?"+DU(ml(new Py,L));sVW(t);h.G$=!0}}; EE=function(h,t,Y){qJ(YA,[h],!$n());Y5W(h,Y);Y!=4&&gmb(h.R0,Y,h.Gd);return $r(h,t,$n())}; g6L=function(h){ari(function(){var t=N6L();h.T!=null&&(t.sdk=h.T);var Y=s2(Bx);Y.G!=null&&(t.avms=Y.G.getName());return t})}; liW=function(h,t,Y,L){var q=FQn(IK,Y);q!==null&&q.Mq!==t&&(h.Kd(q),q=null);q||(t=h.ZV(Y,uo(),!1,t),IK.T.length==0&&(tk().S=79463069),omp([t]),q=t,q.W=aC(h),L&&(q.JQ=L));return q}; HR3=function(h,t){var Y=h[t];Y!==void 0&&Y>0&&(h[t]=Math.floor(Y*1E3))}; N6L=function(){var h=nr(),t={},Y={},L={};return Object.assign({},(t.sv="967",t),Vi!==null&&(Y.v=Vi,Y),(L["if"]=h.S?"1":"0",L.nas=String(IK.G.length),L))}; kA=function(h){e8.call(this,"audio_audible",h)}; OE=function(h){JN.call(this,"audio_measurable",h)}; nG=function(){XQ.apply(this,arguments)}; fG=function(){}; w73=function(h){this.G=h}; zHr=function(h,t,Y){h=h.T();if(typeof h==="function"){var L={};var q={};L=Object.assign({},Vi!==null&&(L.v=Vi,L),(q.sv="967",q.cb=Od$,q.e=WXD(t),q));q=$r(Y,t,$n());g.Mn(L,q);Y.iQ[t]=q;L=Y.IY()==2?F9L(L).join("&"):Y.yA.G(L).G;try{return h(Y.Mq,L,t),0}catch(z){return 2}}else return 1}; WXD=function(h){var t=HE(h)?"custom_metric_viewable":h;h=wh(fP,function(Y){return Y==t}); return NJ[h]}; $A=function(){dD.call(this);this.U=null;this.X=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; yKc=function(h,t,Y){Y=Y.opt_configurable_tracking_events;h.G!=null&&Array.isArray(Y)&&YQ6(h,Y,t)}; X7L=function(h,t,Y){var L=S8(IK,t);L||(L=Y.opt_nativeTime||-1,L=G_(h,t,aC(h),L),Y.opt_osdId&&(L.JQ=Y.opt_osdId));return L}; UQ1=function(h,t,Y){var L=S8(IK,t);L||(L=G_(h,t,"n",Y.opt_nativeTime||-1));return L}; CVW=function(h,t){var Y=S8(IK,t);Y||(Y=G_(h,t,"h",-1));return Y}; M7L=function(h){tk();switch(aC(h)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; jWL=function(h,t,Y,L){Y=Y===void 0?{}:Y;var q={};g.Mn(q,{opt_adElement:void 0,opt_fullscreen:void 0},Y);var z=h.zd(t,Y);Y=z?z.yA:h.Jp();if(q.opt_bounds)return Y.G(lx("ol",L));if(L!==void 0)if(nmD(L)!==void 0)if(rD)h=lx("ue",L);else if(qQ6(h),cE=="i")h=lx("i",L),h["if"]=0;else if(t=h.zd(t,q)){b:{cE=="i"&&(t.wN=!0);z=q.opt_fullscreen;z!==void 0&&M_(t,!!z);var V;if(z=!nr().T)(z=pu(g.xp(),"CrKey")&&!(pu(g.xp(),"CrKey")&&pu(g.xp(),"SmartSpeaker"))||pu(g.xp(),"PlayStation")||pu(g.xp(),"Roku")||zcp()||pu(g.xp(), "Xbox"))||(z=g.xp(),z=pu(z,"AppleTV")||pu(z,"Apple TV")||pu(z,"CFNetwork")||pu(z,"tvOS")),z||(z=g.xp(),z=pu(z,"sdk_google_atv_x86")||pu(z,"Android TV")),z=!z;z&&(Zm(),z=LQ(fr)===0);if(V=z){switch(t.IY()){case 1:V7L(t,"pv");break;case 2:h.nP(t)}KG("pv")}z=L.toLowerCase();if(V=!V)V=Qo(tk().gz,"ssmol")&&z==="loaded"?!1:g.jE(FXb,z);if(V&&t.CI==0){cE!="i"&&(YA.done=!1);V=q!==void 0?q.opt_nativeTime:void 0;vy=V=typeof V==="number"?V:uo();t.iH=!0;var l=$n();t.CI=1;t.Z3={};t.Z3.start=!1;t.Z3.firstquartile= !1;t.Z3.midpoint=!1;t.Z3.thirdquartile=!1;t.Z3.complete=!1;t.Z3.resume=!1;t.Z3.pause=!1;t.Z3.skip=!1;t.Z3.mute=!1;t.Z3.unmute=!1;t.Z3.viewable_impression=!1;t.Z3.measurable_impression=!1;t.Z3.fully_viewable_audible_half_duration_impression=!1;t.Z3.fullscreen=!1;t.Z3.exitfullscreen=!1;t.hp=0;l||(t.pN().Y=V);qJ(YA,[t],!l)}(V=t.Nn[z])&&Gj(t.d0,V);Qo(tk().gz,"fmd")||g.jE(sWn,z)&&t.wF&&t.wF.T(t,null);switch(t.IY()){case 1:var H=HE(z)?h.C.custom_metric_viewable:h.C[z];break;case 2:H=h.Y[z]}if(H&&(L=H.call(h, t,q,L),Qo(tk().gz,"fmd")&&g.jE(sWn,z)&&t.wF&&t.wF.T(t,null),L!==void 0)){q=lx(void 0,z);g.Mn(q,L);L=q;break b}L=void 0}t.CI==3&&h.Kd(t);h=L}else h=lx("nf",L);else h=void 0;else rD?h=lx("ue"):z?(h=lx(),g.Mn(h,q5$(z,!0,!1,!1))):h=lx("nf");return typeof h==="string"?Y.G():Y.G(h)}; ZRi=function(h,t){t&&(h.W=t)}; bRL=function(h){var t={};return t.viewability=h.G,t.googleViewability=h.T,t}; o6L=function(h,t,Y){Y=Y===void 0?{}:Y;h=jWL(s2($A),t,Y,h);return bRL(h)}; T_=function(h){var t=g.OL.apply(1,arguments).filter(Boolean).join("&");if(!t)return h;var Y=h.match(/[?&]adurl=/);return Y?h.slice(0,Y.index+1)+t+"&"+h.slice(Y.index+1):h+(h.indexOf("?")<0?"?":"&")+t}; AO=function(h,t){return t?"&"+h+"="+encodeURIComponent(t):""}; dQW=function(h){var t=h.url;h=h.oAb;this.T=t;this.W=h;this.S=(new Date).getTime()-17040672E5;this.G={};for(var Y=/[?&]([^&=]+)=([^&]*)/g;h=Y.exec(t);)this.G[h[1]]=h[2]}; G3c=function(h){h=h.W;if(!h)return"";var t=AO("uap",h.platform)+AO("uapv",h.platformVersion)+AO("uafv",h.uaFullVersion)+AO("uaa",h.architecture)+AO("uam",h.model)+AO("uab",h.bitness);h.fullVersionList&&(t+="&uafvl="+encodeURIComponent(h.fullVersionList.map(function(Y){return encodeURIComponent(Y.brand)+";"+encodeURIComponent(Y.version)}).join("|"))); h.wow64!=null&&(t+="&uaw="+Number(h.wow64));return t.slice(1)}; cKp=function(h,t,Y,L,q){var z=window;var V=V===void 0?!1:V;var l;Y?l=(V===void 0?0:V)?"//ep1.adtrafficquality.google/bg/"+ee(Y)+".js":"//pagead2.googlesyndication.com/bg/"+ee(Y)+".js":l="";V=V===void 0?!1:V;Y=z.document;var H={};t&&(H._scs_=t);H._bgu_=l;H._bgp_=L;H._li_="v_h.3.0.0.0";q&&(H._upb_=q);(t=z.GoogleTyFxhY)&&typeof t.push=="function"||(t=z.GoogleTyFxhY=[]);t.push(H);t=gS(Y).createElement("SCRIPT");t.type="text/javascript";t.async=!0;h=(V===void 0?0:V)?eP1(QWp,ee(h)+".js"):eP1(rK3,ee(h)+ ".js");g.je(t,h);(z=(z.GoogleTyFxhYEET||{})[t.src])?z():Y.getElementsByTagName("head")[0].appendChild(t)}; uBr=function(){try{var h,t;return!!((h=window)==null?0:(t=h.top)==null?0:t.location.href)&&!1}catch(Y){return!0}}; Su=function(h,t,Y){Y=Y===void 0?Error():Y;var L=Error.call(this);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=h;t+=":";Y instanceof Error?(this.message=t+Y.message,this.stack=Y.stack||""):(this.message=t+String(Y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; RC=function(){var h=eHD();h=h===void 0?"bevasrsg":h;return new Promise(function(t){var Y=window===window.top?window:uBr()?window:window.top,L=Y[h],q;((q=L)==null?0:q.bevasrs)?t(new IC(L.bevasrs)):(L||(L={},L=(L.nqfbel=[],L),Y[h]=L),L.nqfbel.push(function(z){t(new IC(z))}))})}; JK6=function(h){var t={c:h.EV,e:h.AI,mc:h.oI,me:h.Gr};h.oX&&(t.co={c:h.oX.Rq,a:h.oX.pu,s:h.oX.OH});return t}; BE=function(h){g.O.call(this);this.wpc=h}; IC=function(h){g.O.call(this);var t=this;this.Y0=h;this.S="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.T=void 0;this.Pa=this.Y0.p;this.W=this.eB.bind(this);this.addOnDisposeCallback(function(){return void p7b(t)})}; v6L=function(h){var t;return g.k(function(Y){if(Y.T==1){if(!h.Y0.wpc)throw new Su(30,"NWA");return h.G?Y.return(h.G):g.K(Y,h.Y0.wpc(),2)}t=Y.G;h.G=new BE(t);return Y.return(h.G)})}; p7b=function(h){h.T!==void 0&&(h.S.forEach(function(t){var Y;(Y=h.T)==null||Y.removeEventListener(t,h.W)}),h.T=void 0)}; KXW=function(h){var t=t===void 0?49:t;var Y=[];M7(h,PE,6).forEach(function(L){GE(L,2)<=t&&Y.push(GE(L,1))}); return Y}; aip=function(h){var t=t===void 0?49:t;var Y=[];M7(h,PE,6).forEach(function(L){GE(L,2)>t&&Y.push(GE(L,1))}); return Y}; xQL=function(h){h.then(function(){},function(){})}; mR=function(){g.O.apply(this,arguments);this.T=1;this[E6r]=this.dispose}; Dl=function(h){return{fieldType:2,fieldName:h}}; g.ho=function(h){return{fieldType:3,fieldName:h}}; k33=function(h){this.G=h;h.B9("/client_streamz/bg/frs",g.ho("mk"))}; ORL=function(h){this.G=h;h.B9("/client_streamz/bg/wrl",g.ho("mn"),Dl("ac"),Dl("sc"),g.ho("rk"),g.ho("mk"))}; n6D=function(h){this.G=h;h.LH("/client_streamz/bg/ec",g.ho("en"),g.ho("mk"))}; fii=function(h){this.G=h;h.B9("/client_streamz/bg/el",g.ho("en"),g.ho("mk"))}; $Qi=function(h){this.G=h;h.LH("/client_streamz/bg/cec",Dl("ec"),g.ho("mk"))}; T6$=function(h){this.G=h;h.LH("/client_streamz/bg/po/csc",Dl("cs"),g.ho("mk"))}; AK3=function(h){this.G=h;h.LH("/client_streamz/bg/po/ctav",g.ho("av"),g.ho("mk"))}; SQp=function(h){this.G=h;h.LH("/client_streamz/bg/po/cwsc",g.ho("su"),g.ho("mk"))}; Iin=function(h){this.qD=nf(h)}; RHr=function(h,t){return caL(h,t,hOL)}; to=function(h){this.qD=nf(h)}; iJ=function(h){this.qD=nf(h)}; gi=function(h){this.qD=nf(h)}; Yi=function(h){this.qD=nf(h)}; LX=function(h){this.qD=nf(h)}; qB=function(h){this.qD=nf(h)}; B6D=function(h){this.qD=nf(h)}; DQp=function(h){var t=new qB;t=pd(t,1,h.T);var Y=PVL(h);t=caL(t,Y,wz3);Y=[];for(var L=[],q=g.b(h.G.keys()),z=q.next();!z.done;z=q.next())L.push(z.value.split(","));for(q=0;q>>31)&4294967295;y=q[0];var C=q[1],d=q[2],Q=q[3],J=q[4];for(U=0;U<80;U++){if(U<40)if(U<20){var e=Q^C&(d^Q);var v=1518500249}else e=C^d^Q,v=1859775393;else U<60?(e=C&d|Q&(C|d),v=2400959708):(e=C^d^Q,v=3395469782);e=((y<<5|y>>>27)&4294967295)+e+J+v+X[U]&4294967295;J=Q;Q=d;d=(C<<30|C>>>2)&4294967295;C=y;y=e}q[0]=q[0]+y&4294967295;q[1]=q[1]+C&4294967295;q[2]= q[2]+d&4294967295;q[3]=q[3]+Q&4294967295;q[4]=q[4]+J&4294967295} function Y(y,X){if(typeof y==="string"){y=unescape(encodeURIComponent(y));for(var U=[],C=0,d=y.length;C=56;U--)z[U]=X&255,X>>>=8;t(z);for(U=X=0;U<5;U++)for(var C=24;C>=0;C-=8)y[X++]=q[U]>>C&255;return y} for(var q=[],z=[],V=[],l=[128],H=1;H<64;++H)l[H]=0;var w,W;h();return{reset:h,update:Y,digest:L,O2:function(){for(var y=L(),X="",U=0;U1)));V=V.next)q||(z=V);q&&(Y.G==0&&L==1?R01(Y,t):(z?(L=z,L.next==Y.W&&(Y.W=L),L.next=L.next.next):BpL(Y),PoD(Y,q,3,t)))}h.S=null}else bF(h,3,t)}; rB=function(h,t){h.T||h.G!=2&&h.G!=3||mw3(h);h.W?h.W.next=t:h.T=t;h.W=t}; DwL=function(h,t,Y,L){var q=dB(null,null,null);q.G=new g.oR(function(z,V){q.S=t?function(l){try{var H=t.call(L,l);z(H)}catch(w){V(w)}}:z; q.T=Y?function(l){try{var H=Y.call(L,l);H===void 0&&l instanceof uF?V(l):z(H)}catch(w){V(w)}}:V}); q.G.S=h;rB(h,q);return q.G}; bF=function(h,t,Y){h.G==0&&(h===Y&&(t=3,Y=new TypeError("Promise cannot resolve to itself")),h.G=1,Tpn(Y,h.HC8,h.OC5,h)||(h.C=Y,h.G=t,h.S=null,mw3(h),t!=3||Y instanceof uF||h36(h,Y)))}; Tpn=function(h,t,Y,L){if(h instanceof g.oR)return IUL(h,t,Y,L),!0;if(h)try{var q=!!h.$goog_Thenable}catch(V){q=!1}else q=!1;if(q)return h.then(t,Y,L),!0;if(g.LH(h))try{var z=h.then;if(typeof z==="function")return t8D(h,z,t,Y,L),!0}catch(V){return Y.call(L,V),!0}return!1}; t8D=function(h,t,Y,L,q){function z(H){l||(l=!0,L.call(q,H))} function V(H){l||(l=!0,Y.call(q,H))} var l=!1;try{t.call(h,V,z)}catch(H){z(H)}}; mw3=function(h){h.U||(h.U=!0,g.ZL(h.oB,h))}; BpL=function(h){var t=null;h.T&&(t=h.T,h.T=t.next,t.next=null);h.T||(h.W=null);return t}; PoD=function(h,t,Y,L){if(Y==3&&t.T&&!t.W)for(;h&&h.X;h=h.S)h.X=!1;if(t.G)t.G.S=null,iPL(t,Y,L);else try{t.W?t.S.call(t.context):iPL(t,Y,L)}catch(q){grc.call(null,q)}aUp($w6,t)}; iPL=function(h,t,Y){t==2?h.S.call(h.context,Y):h.T&&h.T.call(h.context,Y)}; h36=function(h,t){h.X=!0;g.ZL(function(){h.X&&grc.call(null,t)})}; uF=function(h){yv.call(this,h)}; g.et=function(h,t){g.Vm.call(this);this.iM=h||1;this.pO=t||g.D$;this.Yo=(0,g.Vv)(this.QD_,this);this.fv=g.H1()}; g.JH=function(h,t,Y){if(typeof h==="function")Y&&(h=(0,g.Vv)(h,Y));else if(h&&typeof h.handleEvent=="function")h=(0,g.Vv)(h.handleEvent,h);else throw Error("Invalid listener argument");return Number(t)>2147483647?-1:g.D$.setTimeout(h,t||0)}; pm=function(h,t){var Y=null;return(new g.oR(function(L,q){Y=g.JH(function(){L(t)},h); Y==-1&&q(Error("Failed to schedule timer."))})).wS(function(L){g.D$.clearTimeout(Y); throw L;})}; g.vk=function(h){g.O.call(this);this.C=h;this.W=0;this.S=100;this.X=!1;this.T=new Map;this.U=new Set;this.flushInterval=3E4;this.G=new g.et(this.flushInterval);this.G.listen("tick",this.U7,!1,this);g.f(this,this.G)}; Yi6=function(h){h.G.enabled||h.G.start();h.W++;h.W>=h.S&&h.U7()}; Lai=function(h,t){return h.U.has(t)?void 0:h.T.get(t)}; qii=function(h){for(var t=0;t2?h.G.statusText:""}catch(Y){t=""}h.W=t+" ["+h.getStatus()+"]";CyW(h)}}finally{OW(h)}}}; OW=function(h,t){if(h.G){h.U&&(clearTimeout(h.U),h.U=null);var Y=h.G;h.G=null;t||h.dispatchEvent("ready");try{Y.onreadystatechange=null}catch(L){}}}; $c=function(h){var t=h.getStatus();a:switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var Y=!0;break a;default:Y=!1}if(!Y){if(t=t===0)h=g.zF(String(h.Y))[1]||null,!h&&g.D$.self&&g.D$.self.location&&(h=g.D$.self.location.protocol.slice(0,-1)),t=!sKr.test(h?h.toLowerCase():"");Y=t}return Y}; g.fm=function(h){return h.G?h.G.readyState:0}; g.Tc=function(h){try{return h.G?h.G.responseText:""}catch(t){return""}}; g.AH=function(h){try{if(!h.G)return null;if("response"in h.G)return h.G.response;switch(h.Wm){case "":case "text":return h.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in h.G)return h.G.mozResponseArrayBuffer}return null}catch(t){return null}}; g.jK$=function(h){var t={};h=(h.G&&g.fm(h)>=2?h.G.getAllResponseHeaders()||"":"").split("\r\n");for(var Y=0;Y>1,t),C2(h,h.length>>1)]}; iG6=function(h){var t=g.b(tu$(h,Mf));h=t.next().value;t=t.next().value;return h.toString(16)+t.toString(16)}; gA1=function(h,t){var Y=tu$(t);h=new Uint32Array(h.buffer);t=h[0];var L=g.b(Y);Y=L.next().value;L=L.next().value;for(var q=1;q>>8|V<<24,V+=z|0,V^=l+38293,z=z<<3|z>>>29,z^=V,H=H>>>8|H<<24,H+=l|0,H^=w+38293,l=l<<3|l>>>29,l^=H;z=[z,V];h[q]^=z[0];q+1=Y?(globalThis.sessionStorage.removeItem(h),["e"]):["a",new Uint8Array(L.buffer,t+4)]}; FW=function(h,t,Y){Y=Y===void 0?[]:Y;this.maxItems=h;this.G=t===void 0?0:t;this.T=Y}; qEi=function(h){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!t)return new FW(h);var Y=t.split(",");if(Y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new FW(h);t=Y.slice(1);t.length===1&&t[0]===""&&(t=[]);Y=Number(Y[0]);return isNaN(Y)||Y<0||Y>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new FW(h)):new FW(h,Y,t)}; zdL=function(h,t){this.logger=t;try{var Y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(L){Y=!1}Y&&(this.index=qEi(h))}; Vun=function(h,t,Y,L,q){var z=h.index?m7(h.logger,function(){return YE6(h.index,iG6(t),Y,L,q)},"W"):"u"; h.logger.Rn(z)}; NDL=function(h,t,Y){var L=g.b(h.index?m7(h.logger,function(){return LRb(iG6(t),Y)},"R"):["u"]),q=L.next().value; L=L.next().value;h.logger.x$(q);return L}; wEp=function(h){function t(){Y-=L;Y-=q;Y^=q>>>13;L-=q;L-=Y;L^=Y<<8;q-=Y;q-=L;q^=L>>>13;Y-=L;Y-=q;Y^=q>>>12;L-=q;L-=Y;L^=Y<<16;q-=Y;q-=L;q^=L>>>5;Y-=L;Y-=q;Y^=q>>>3;L-=q;L-=Y;L^=Y<<10;q-=Y;q-=L;q^=L>>>15} h=ll3(h);for(var Y=2654435769,L=2654435769,q=314159265,z=h.length,V=z,l=0;V>=12;V-=12,l+=12)Y+=sK(h,l),L+=sK(h,l+4),q+=sK(h,l+8),t();q+=z;switch(V){case 11:q+=h[l+10]<<24;case 10:q+=h[l+9]<<16;case 9:q+=h[l+8]<<8;case 8:L+=h[l+7]<<24;case 7:L+=h[l+6]<<16;case 6:L+=h[l+5]<<8;case 5:L+=h[l+4];case 4:Y+=h[l+3]<<24;case 3:Y+=h[l+2]<<16;case 2:Y+=h[l+1]<<8;case 1:Y+=h[l+0]}t();return HGL.toString(q)}; ll3=function(h){for(var t=[],Y=0;Y>7,h.error.code]);L.set(Y,4);return L}; cm=function(h,t,Y){jw.call(this,h);this.W=t;this.clientState=Y;this.G="S";this.T="q"}; r5=function(h){return globalThis.TextEncoder?(new TextEncoder).encode(h):g.de(h)}; XEn=function(h,t,Y){return h instanceof Wm?nrc(h,Y,t,1):h.Wy(Y)}; ew=function(h){g.O.call(this);var t=this;this.S=new g.zJ;this.W=0;this.T=void 0;this.state=2;this.Y0=h.Y0;this.zP=h.zP;this.N7=Object.assign({},UJ1,h.N7||{});this.logger=h.Y0.eO();var Y;this.onError=(Y=h.onError)!=null?Y:function(){}; this.nG=h.nG||!1;if(Cxp(h)){var L=this.Y0;this.X=function(){return SiD(L).catch(function(V){V=t.reportError(new Su(t.G?20:32,"TRG:Disposed",V));t.T=V;var l;(l=t.G)==null||l.dispose();t.G=void 0;t.S.reject(V)})}; IyL(L,function(){return void ud(t)}); L.Y===2&&ud(this)}else this.X=h.uUe,ud(this);var q=this.logger.share();q.Rb("o");var z=new Bk(q,"o");this.S.promise.then(function(){z.done();q.QR();q.dispose()},function(){return void q.dispose()}); this.addOnDisposeCallback(function(){t.G?(t.G.dispose(),t.G=void 0):t.T?t.logger.QR():(t.T=t.reportError(new Su(32,"TNP:Disposed")),t.logger.QR(),t.S.reject(t.T))}); g.f(this,this.logger)}; Muc=function(h,t){if(!(t instanceof Su))if(t instanceof Km){var Y=Error(t.toString());Y.stack=t.stack;t=new Su(11,"EBH:Error",Y)}else t=new Su(12,"BSO:Unknown",t);return h.reportError(t)}; ud=function(h){var t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d;return g.k(function(Q){switch(Q.T){case 1:t=void 0;h.W++;Y=new g.zJ;h.Y0 instanceof yZ&&h.Y0.W.push(Y.promise);if(!h.nG){Q.eM(2);break}L=new g.zJ;setTimeout(function(){return void L.resolve()}); return g.K(Q,L.promise,2);case 2:return q=h.logger.share(),g.oc(Q,4,5),h.state=5,z={},V=[],g.K(Q,UK(h.Y0.snapshot({EV:z,sD:V}),h.N7.LKM,function(){return Promise.reject(new Su(15,"MDA:Timeout"))}),7); case 7:l=Q.G;if(h.Ui())throw new Su(h.G?20:32,"MDA:Disposed");H=V[0];h.state=6;return g.K(Q,UK(XEn(h.zP,q,l),h.N7.cQ,function(){return Promise.reject(new Su(10,"BWB:Timeout"))}),8); case 8:w=Q.G;if(h.Ui())throw new Su(h.G?20:32,"BWB:Disposed");h.state=7;t=m7(q,function(){var e=FR1(h,w,Y,H);e.S.promise.then(function(){return void h.X()}); return e},"i"); case 5:g.pL(Q);q.dispose();g.vW(Q,6);break;case 4:W=g.cW(Q);(y=t)==null||y.dispose();if(!h.T){X=Muc(h,W);Y.resolve();var J;if(J=h.Y0 instanceof yZ&&h.W<2)a:if(W instanceof Su)J=W.code!==32&&W.code!==20&&W.code!==10;else{if(W instanceof Km)switch(W.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return U=(1+Math.random()*.25)*(h.G?6E4:1E3),C=setTimeout(function(){return void h.X()},U),h.addOnDisposeCallback(function(){return void clearTimeout(C)}),Q.return(); h.T=X}q.NS(h.G?13:14);h.S.reject(h.T);return Q.return();case 6:h.state=8,h.W=0,(d=h.G)==null||d.dispose(),h.G=t,h.S.resolve(),g.Z$(Q)}})}; FR1=function(h,t,Y,L){var q=Qr(t,2)*1E3;if(q<=0)throw new Su(31,"TTM:Invalid");if(rb(t,4))return new GJ(h.logger,rb(t,4),q);if(!Qr(t,3))return new d5(h.logger,vt(q7(t,1)),q);if(!L)throw new Su(4,"PMD:Undefined");L=L(vt(q7(t,1)));if(!(L instanceof Function))throw new Su(16,"APF:Failed");h.U=Math.floor((Date.now()+q)/1E3);h=new oG(h.logger,L,Qr(t,3),q);h.addOnDisposeCallback(function(){return void Y.resolve()}); return h}; sCD=function(h,t){t=t instanceof Su?t:new Su(5,"TVD:error",t);return h.reportError(t)}; dJL=function(h,t,Y){try{if(h.Ui())throw new Su(21,"BNT:disposed");if(!h.G&&h.T)throw h.T;var L,q;return(q=(L=jCD(h,t,Y))!=null?L:ZGW(h,t,Y))!=null?q:bGc(h,t,Y)}catch(z){if(!t.Gr)throw sCD(h,z);return oAL(h,Y,z)}}; jCD=function(h,t,Y){var L;return(L=h.G)==null?void 0:bd(L,function(){return Jg(h,t)},Y,function(q){var z; if(h.G instanceof oG&&((z=t.oX)==null?0:z.OH))try{var V;(V=h.cache)==null||Vun(V,Jg(h,t),q,t.oX.Rq,h.U-120)}catch(l){h.reportError(new Su(24,"ELX:write",l))}})}; ZGW=function(h,t,Y){var L;if((L=t.oX)!=null&&L.pu)try{var q,z=(q=h.cache)==null?void 0:NDL(q,Jg(h,t),t.oX.Rq);return z?Y?m7(h.logger,function(){return g.Gv(z,2)},"a"):z:void 0}catch(V){h.reportError(new Su(23,"RXO:read",V))}}; bGc=function(h,t,Y){var L={stack:[],error:void 0,hasError:!1};try{if(!t.oI)throw new Su(29,"SDF:notready");return bd(MLn(L,new cm(h.logger,0,h.state)),function(){return Jg(h,t)},Y)}catch(q){L.error=q,L.hasError=!0}finally{FLL(L)}}; oAL=function(h,t,Y){var L={stack:[],error:void 0,hasError:!1};try{var q=sCD(h,Y);return bd(MLn(L,new QZ(h.logger,q)),function(){return[]},t)}catch(z){L.error=z,L.hasError=!0}finally{FLL(L)}}; Jg=function(h,t){return t.AI?t.AI:t.EV?m7(h.logger,function(){return t.AI=r5(t.EV)},"c"):[]}; p2=function(){var h=0,t;return function(Y){t||(t=new DL);var L=new cm(t,h,1),q=bd(L,function(){return r5(Y)},!0); L.dispose();h++;return q}}; vm=function(h){this.qD=nf(h)}; G_3=function(h,t,Y){this.dC=h;this.qA=t;this.metadata=Y}; K2=function(h,t){t=t===void 0?{}:t;this.gT0=h;this.metadata=t;this.status=null}; aG=function(h,t,Y,L,q){this.name=h;this.methodType="unary";this.requestType=t;this.responseType=Y;this.G=L;this.T=q}; xs=function(h){this.qD=nf(h)}; EK=function(h){this.qD=nf(h)}; ks=function(h){this.qD=nf(h)}; OK=function(h,t){this.C=h.Si5;this.Y=t;this.G=h.xhr;this.S=[];this.X=[];this.U=[];this.W=[];this.T=[];this.C&&QC1(this)}; edL=function(h,t){var Y=new rOD;g.B6(h.G,"complete",function(){if($c(h.G)){var L=g.Tc(h.G);if(t&&h.G.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");L=atob(L)}try{var q=h.Y(L)}catch(l){n2(h,f2(new Km(13,"Error when deserializing response data; error: "+l+(", response: "+L)),Y));return}L=z3L(h.G.getStatus());$s(h,TJ(h));L==0?cOL(h,q):n2(h,f2(new Km(L,"Xhr succeeded but the status code is not 200"),Y))}else{L=g.Tc(h.G);q=TJ(h);if(L){var z=uQD(h, L);L=z.code;var V=z.details;z=z.metadata}else L=2,V="Rpc failed due to xhr error. uri: "+String(h.G.Y)+", error code: "+h.G.T+", error: "+h.G.getLastError(),z=q;$s(h,q);n2(h,f2(new Km(L,V,z),Y))}})}; QC1=function(h){h.C.qQ("data",function(t){if("1"in t){var Y=t["1"];try{var L=h.Y(Y)}catch(q){n2(h,new Km(13,"Error when deserializing response data; error: "+q+(", response: "+Y)))}L&&cOL(h,L)}if("2"in t)for(t=uQD(h,t["2"]),Y=0;Y-1&&h.splice(t,1)}; cOL=function(h,t){for(var Y=0;Y>4&15).toString(16)+(h&15).toString(16)}; Y4=function(h,t){this.T=this.G=null;this.S=h||null;this.W=!!t}; Vc=function(h){h.G||(h.G=new Map,h.T=0,h.S&&Hy(h.S,function(t,Y){h.add(us(t),Y)}))}; k_r=function(h,t){Vc(h);t=Nb(h,t);return h.G.has(t)}; g.OGi=function(h,t,Y){h.remove(t);Y.length>0&&(h.S=null,h.G.set(Nb(h,t),g.ul(Y)),h.T=h.T+Y.length)}; Nb=function(h,t){t=String(t);h.W&&(t=t.toLowerCase());return t}; ali=function(h,t){t&&!h.W&&(Vc(h),h.S=null,h.G.forEach(function(Y,L){var q=L.toLowerCase();L!=q&&(this.remove(L),g.OGi(this,q,Y))},h)); h.W=t}; g.nAi=function(h){var t="";g.hd(h,function(Y,L){t+=L;t+=":";t+=Y;t+="\r\n"}); return t}; g.l3=function(h,t,Y){if(g.WZ(Y))return h;Y=g.nAi(Y);if(typeof h==="string")return UM(h,g.rk(t),Y);g.qb(h,t,Y);return h}; g.H$=function(h){g.O.call(this);this.T=h;this.G={}}; fl6=function(h,t,Y,L,q,z){if(Array.isArray(Y))for(var V=0;V=0)return!0;try{var t=new g.mo(h)}catch(Y){return g.Mh(LjL,function(L){return h.search(L)>0})!=null}return t.U.match(qhL)?!0:g.Mh(LjL,function(Y){return h.match(Y)!=null})!=null}; g.b3=function(h,t){return h.replace(V1L,function(Y,L){try{var q=g.yo(t,L);if(q==null||q.toString()==null)return Y;q=q.toString();if(q==""||!g.e$(g.Ja(q)))return encodeURIComponent(q).replace(/%2C/g,",")}catch(z){}return Y})}; oh=function(h,t){return Object.is(h,t)}; GU=function(h){var t=ds;ds=h;return t}; NiL=function(h){if(h.pI!==void 0){var t=Qc;Qc=!0;try{for(var Y=g.b(h.pI),L=Y.next();!L.done;L=Y.next()){var q=L.value;q.EJ||(h=void 0,q.EJ=!0,NiL(q),(h=q.oi)==null||h.call(q,q))}}finally{Qc=t}}}; l0D=function(){var h;return((h=ds)==null?void 0:h.PV)!==!1}; HXb=function(h){h&&(h.lr=0);return GU(h)}; w6L=function(h,t){GU(t);if(h&&h.QC!==void 0&&h.Up!==void 0&&h.xn!==void 0){if(rs(h))for(t=h.lr;th.lr;)h.QC.pop(),h.xn.pop(),h.Up.pop()}}; yoL=function(h,t,Y){WjW(h);if(h.pI.length===0&&h.QC!==void 0)for(var L=0;L0}; X6p=function(h){h.QC!=null||(h.QC=[]);h.Up!=null||(h.Up=[]);h.xn!=null||(h.xn=[])}; WjW=function(h){h.pI!=null||(h.pI=[]);h.PR!=null||(h.PR=[])}; Fj6=function(h){function t(){if(Qc)throw Error("");if(ds!==null){var L=ds.lr++;X6p(ds);L0?" "+t:t))}}; g.Dz=function(h,t){if(h.classList)Array.prototype.forEach.call(t,function(q){g.mS(h,q)}); else{var Y={};Array.prototype.forEach.call(Rh(h),function(q){Y[q]=!0}); Array.prototype.forEach.call(t,function(q){Y[q]=!0}); t="";for(var L in Y)t+=t.length>0?" "+L:L;g.B$(h,t)}}; g.hp=function(h,t){h.classList?h.classList.remove(t):g.P$(h,t)&&g.B$(h,Array.prototype.filter.call(Rh(h),function(Y){return Y!=t}).join(" "))}; g.tp=function(h,t){h.classList?Array.prototype.forEach.call(t,function(Y){g.hp(h,Y)}):g.B$(h,Array.prototype.filter.call(Rh(h),function(Y){return!g.jE(t,Y)}).join(" "))}; g.iA=function(h,t,Y){Y?g.mS(h,t):g.hp(h,t)}; QrD=function(h,t){var Y=!g.P$(h,t);g.iA(h,t,Y)}; g.g$=function(){g.Vm.call(this);this.G=0;this.endTime=this.startTime=null}; ro3=function(h,t){Array.isArray(t)||(t=[t]);t=t.map(function(Y){return typeof Y==="string"?Y:Y.property+" "+Y.duration+"s "+Y.timing+" "+Y.delay+"s"}); g.$9(h,"transition",t.join(","))}; Y1=function(h,t,Y,L,q){g.g$.call(this);this.T=h;this.X=t;this.U=Y;this.W=L;this.C=Array.isArray(q)?q:[q]}; coW=function(h,t,Y,L){return new Y1(h,t,{opacity:Y},{opacity:L},{property:"opacity",duration:t,timing:"ease-in",delay:0})}; e61=function(h){h=vZ(h);if(h=="")return null;var t=String(h.slice(0,4)).toLowerCase();if(("url("1||h&&h.split(")"),null;if(h.indexOf("(")>0){if(/"|'/.test(h))return null;t=/([\-\w]+)\(/g;for(var Y;Y=t.exec(h);)if(!(Y[1].toLowerCase()in uXn))return null}return h}; LS=function(h,t){h=g.D$[h];return h&&h.prototype?(t=Object.getOwnPropertyDescriptor(h.prototype,t))&&t.get||null:null}; Jo$=function(h){var t=g.D$.CSSStyleDeclaration;return t&&t.prototype&&t.prototype[h]||null}; p6p=function(h,t,Y,L){if(h)return h.apply(t,L);if(g.qz&&document.documentMode<10){if(!t[Y].call)throw Error("IE Clobbering detected");}else if(typeof t[Y]!="function")throw Error("Clobbering detected");return t[Y].apply(t,L)}; EiW=function(h){if(!h)return"";var t=document.createElement("div").style;vi3(h).forEach(function(Y){var L=g.lI&&Y in Kj1?Y:Y.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");uv(L,"--")||uv(L,"var")||(Y=p6p(a0L,h,h.getPropertyValue?"getPropertyValue":"getAttribute",[Y])||"",Y=e61(Y),Y!=null&&p6p(xBD,t,t.setProperty?"setProperty":"setAttribute",[L,Y]))}); return t.cssText||""}; vi3=function(h){g.Yy(h)?h=g.ul(h):(h=g.Nn(h),g.bl(h,"cssText"));return h}; g.V8=function(h){var t,Y=t=0,L=!1;h=h.split(kui);for(var q=0;q.4?-1:1;return(t==0?null:t)==-1?"rtl":"ltr"}; g.w$=function(h){if(h instanceof Nz||h instanceof lA||h instanceof HM)return h;if(typeof h.next=="function")return new Nz(function(){return h}); if(typeof h[Symbol.iterator]=="function")return new Nz(function(){return h[Symbol.iterator]()}); if(typeof h.tS=="function")return new Nz(function(){return h.tS()}); throw Error("Not an iterator or iterable.");}; Nz=function(h){this.T=h}; lA=function(h){this.T=h}; HM=function(h){Nz.call(this,function(){return h}); this.S=h}; WM=function(h,t,Y,L,q,z,V,l){this.G=h;this.C=t;this.S=Y;this.X=L;this.W=q;this.U=z;this.T=V;this.Y=l}; y8=function(h,t){if(t==0)return h.G;if(t==1)return h.T;var Y=$2(h.G,h.S,t),L=$2(h.S,h.W,t);h=$2(h.W,h.T,t);Y=$2(Y,L,t);L=$2(L,h,t);return $2(Y,L,t)}; $Br=function(h,t){var Y=(t-h.G)/(h.T-h.G);if(Y<=0)return 0;if(Y>=1)return 1;for(var L=0,q=1,z=0,V=0;V<8;V++){z=y8(h,Y);var l=(y8(h,Y+1E-6)-z)/1E-6;if(Math.abs(z-t)<1E-6)return Y;if(Math.abs(l)<1E-6)break;else z1E-6&&V<8;V++)z=0}; g.Mz=function(h){g.O.call(this);this.U=1;this.S=[];this.W=0;this.G=[];this.T={};this.C=!!h}; AoL=function(h,t,Y){g.ZL(function(){h.apply(t,Y)})}; g.Fg=function(h){this.G=h}; sB=function(h){this.G=h}; ShL=function(h){this.data=h}; I0L=function(h){return h===void 0||h instanceof ShL?h:new ShL(h)}; jl=function(h){this.G=h}; g.R6i=function(h){var t=h.creation;h=h.expiration;return!!h&&hg.H1()}; g.ZW=function(h){this.G=h}; Bi3=function(){}; bA=function(){}; oo=function(h){this.G=h;this.T=null}; d$=function(h){if(h.G==null)throw Error("Storage mechanism: Storage unavailable");h.isAvailable()||ot(Error("Storage mechanism: Storage unavailable"))}; Gb=function(){var h=null;try{h=g.D$.localStorage||null}catch(t){}oo.call(this,h)}; PJp=function(){var h=null;try{h=g.D$.sessionStorage||null}catch(t){}oo.call(this,h)}; Q8=function(h,t){this.T=h;this.G=t+"::"}; g.r$=function(h){var t=new Gb;return t.isAvailable()?h?new Q8(t,h):t:null}; cM=function(h,t){this.G=h;this.T=t}; uA=function(h){this.G=[];if(h)a:{if(h instanceof uA){var t=h.dA();h=h.TT();if(this.G.length<=0){for(var Y=this.G,L=0;L>>6:(z<65536?l[Y++]=224|z>>>12:(l[Y++]=240|z>>>18,l[Y++]=128|z>>>12&63),l[Y++]=128|z>>> 6&63),l[Y++]=128|z&63);return l}; vM=function(h){for(var t=h.length;--t>=0;)h[t]=0}; KS=function(h,t,Y,L,q){this.D$=h;this.RB=t;this.ub=Y;this.J3=L;this.sC=q;this.bk=h&&h.length}; ao=function(h,t){this.CY=h;this.m6=0;this.LS=t}; x1=function(h,t){h.QM[h.pending++]=t&255;h.QM[h.pending++]=t>>>8&255}; EB=function(h,t,Y){h.pL>16-Y?(h.Zk|=t<>16-h.pL,h.pL+=Y-16):(h.Zk|=t<>>=1,Y<<=1;while(--t>0);return Y>>>1}; im3=function(h,t,Y){var L=Array(16),q=0,z;for(z=1;z<=15;z++)L[z]=q=q+Y[z-1]<<1;for(Y=0;Y<=t;Y++)q=h[Y*2+1],q!==0&&(h[Y*2]=ttL(L[q]++,q))}; gcL=function(h){var t;for(t=0;t<286;t++)h.Tq[t*2]=0;for(t=0;t<30;t++)h.cz[t*2]=0;for(t=0;t<19;t++)h.dn[t*2]=0;h.Tq[512]=1;h.GF=h.yj=0;h.ZD=h.matches=0}; YWc=function(h){h.pL>8?x1(h,h.Zk):h.pL>0&&(h.QM[h.pending++]=h.Zk);h.Zk=0;h.pL=0}; L7r=function(h,t,Y){YWc(h);x1(h,Y);x1(h,~Y);pS.hU(h.QM,h.window,t,Y,h.pending);h.pending+=Y}; qWL=function(h,t,Y,L){var q=t*2,z=Y*2;return h[q]>>7)];k1(h,V,Y);l=Ap[V];l!==0&&(q-=Sl[V],EB(h,q,l))}}while(L>1;V>=1;V--)OB(h,Y,V);H=z;do V=h.pC[1],h.pC[1]=h.pC[h.vA--],OB(h,Y,1),L=h.pC[1],h.pC[--h.BN]=V,h.pC[--h.BN]=L,Y[H*2]=Y[V*2]+Y[L*2],h.depth[H]=(h.depth[V]>=h.depth[L]?h.depth[V]:h.depth[L])+1,Y[V*2+1]=Y[L*2+1]=H,h.pC[1]=H++,OB(h,Y,1);while(h.vA>= 2);h.pC[--h.BN]=h.pC[1];V=t.CY;H=t.m6;L=t.LS.D$;q=t.LS.bk;z=t.LS.RB;var w=t.LS.ub,W=t.LS.sC,y,X=0;for(y=0;y<=15;y++)h.zt[y]=0;V[h.pC[h.BN]*2+1]=0;for(t=h.BN+1;t<573;t++){var U=h.pC[t];y=V[V[U*2+1]*2+1]+1;y>W&&(y=W,X++);V[U*2+1]=y;if(!(U>H)){h.zt[y]++;var C=0;U>=w&&(C=z[U-w]);var d=V[U*2];h.GF+=d*(y+C);q&&(h.yj+=d*(L[U*2+1]+C))}}if(X!==0){do{for(y=W-1;h.zt[y]===0;)y--;h.zt[y]--;h.zt[y+1]+=2;h.zt[W]--;X-=2}while(X>0);for(y=W;y!==0;y--)for(U=h.zt[y];U!==0;)L=h.pC[--t],L>H||(V[L*2+1]!==y&&(h.GF+=(y-V[L* 2+1])*V[L*2],V[L*2+1]=y),U--)}im3(Y,l,h.zt)}; Vt1=function(h,t,Y){var L,q=-1,z=t[1],V=0,l=7,H=4;z===0&&(l=138,H=3);t[(Y+1)*2+1]=65535;for(L=0;L<=Y;L++){var w=z;z=t[(L+1)*2+1];++V>>=1)if(t&1&&h.Tq[Y*2]!==0)return 0;if(h.Tq[18]!==0||h.Tq[20]!==0||h.Tq[26]!==0)return 1;for(Y=32;Y<256;Y++)if(h.Tq[Y*2]!==0)return 1;return 0}; Ro=function(h,t,Y){h.QM[h.Fa+h.ZD*2]=t>>>8&255;h.QM[h.Fa+h.ZD*2+1]=t&255;h.QM[h.qo+h.ZD]=Y&255;h.ZD++;t===0?h.Tq[Y*2]++:(h.matches++,t--,h.Tq[(nS[Y]+256+1)*2]++,h.cz[(t<256?Tb[t]:Tb[256+(t>>>7)])*2]++);return h.ZD===h.SX-1}; PM=function(h,t){h.msg=BM[t];return t}; mK=function(h){for(var t=h.length;--t>=0;)h[t]=0}; DW=function(h){var t=h.state,Y=t.pending;Y>h.jL&&(Y=h.jL);Y!==0&&(pS.hU(h.output,t.QM,t.q1,Y,h.FW),h.FW+=Y,t.q1+=Y,h.QL+=Y,h.jL-=Y,t.pending-=Y,t.pending===0&&(t.q1=0))}; ib=function(h,t){var Y=h.GO>=0?h.GO:-1,L=h.cq-h.GO,q=0;if(h.level>0){h.lV.wp===2&&(h.lV.wp=lLD(h));Io(h,h.tb);Io(h,h.Ej);Vt1(h,h.Tq,h.tb.m6);Vt1(h,h.cz,h.Ej.m6);Io(h,h.F$);for(q=18;q>=3&&h.dn[HmL[q]*2+1]===0;q--);h.GF+=3*(q+1)+5+5+4;var z=h.GF+3+7>>>3;var V=h.yj+3+7>>>3;V<=z&&(z=V)}else z=V=L+5;if(L+4<=z&&Y!==-1)EB(h,t?1:0,3),L7r(h,Y,L);else if(h.strategy===4||V===z)EB(h,2+(t?1:0),3),zj$(h,hT,tT);else{EB(h,4+(t?1:0),3);Y=h.tb.m6+1;L=h.Ej.m6+1;q+=1;EB(h,Y-257,5);EB(h,L-1,5);EB(h,q-4,4);for(z=0;z>>8&255;h.QM[h.pending++]=t&255}; wkL=function(h,t){var Y=h.bq,L=h.cq,q=h.VQ,z=h.e$,V=h.cq>h.gS-262?h.cq-(h.gS-262):0,l=h.window,H=h.S8,w=h.fg,W=h.cq+258,y=l[L+q-1],X=l[L+q];h.VQ>=h.XP&&(Y>>=2);z>h.iI&&(z=h.iI);do{var U=t;if(l[U+q]===X&&l[U+q-1]===y&&l[U]===l[L]&&l[++U]===l[L+1]){L+=2;for(U++;l[++L]===l[++U]&&l[++L]===l[++U]&&l[++L]===l[++U]&&l[++L]===l[++U]&&l[++L]===l[++U]&&l[++L]===l[++U]&&l[++L]===l[++U]&&l[++L]===l[++U]&&Lq){h.CU=t;q=U;if(U>=z)break;y=l[L+q-1];X=l[L+q]}}}while((t=w[t&H])>V&&--Y!== 0);return q<=h.iI?q:h.iI}; zq=function(h){var t=h.gS,Y;do{var L=h.hD-h.iI-h.cq;if(h.cq>=t+(t-262)){pS.hU(h.window,h.window,t,t,0);h.CU-=t;h.cq-=t;h.GO-=t;var q=Y=h.NN;do{var z=h.head[--q];h.head[q]=z>=t?z-t:0}while(--Y);q=Y=t;do z=h.fg[--q],h.fg[q]=z>=t?z-t:0;while(--Y);L+=t}if(h.lV.E8===0)break;q=h.lV;Y=h.window;z=h.cq+h.iI;var V=q.E8;V>L&&(V=L);V===0?Y=0:(q.E8-=V,pS.hU(Y,q.input,q.Kl,V,z),q.state.wrap===1?q.SL=L$(q.SL,Y,V,z):q.state.wrap===2&&(q.SL=qu(q.SL,Y,V,z)),q.Kl+=V,q.KJ+=V,Y=V);h.iI+=Y;if(h.iI+h.FX>=3)for(L=h.cq-h.FX, h.Vp=h.window[L],h.Vp=(h.Vp<=3&&(h.Vp=(h.Vp<=3)if(Y=Ro(h,h.cq-h.CU,h.Px-3),h.iI-=h.Px,h.Px<=h.e3&&h.iI>=3){h.Px--;do h.cq++,h.Vp=(h.Vp<=3&&(h.Vp=(h.Vp<4096)&&(h.Px=2));if(h.VQ>=3&&h.Px<=h.VQ){L=h.cq+h.iI-3;Y=Ro(h,h.cq-1-h.p8,h.VQ-3);h.iI-=h.VQ-1;h.VQ-=2;do++h.cq<=L&&(h.Vp=(h.Vp<=3&&h.cq>0&&(L=h.cq-1,Y=z[L],Y===z[++L]&&Y===z[++L]&&Y===z[++L])){for(q=h.cq+258;Y===z[++L]&&Y===z[++L]&&Y===z[++L]&&Y===z[++L]&&Y===z[++L]&&Y===z[++L]&&Y===z[++L]&&Y===z[++L]&&Lh.iI&&(h.Px=h.iI)}h.Px>=3?(Y=Ro(h,1,h.Px-3),h.iI-=h.Px,h.cq+=h.Px,h.Px=0):(Y=Ro(h,0,h.window[h.cq]),h.iI--,h.cq++);if(Y&&(ib(h,!1),h.lV.jL===0))return 1}h.FX=0;return t=== 4?(ib(h,!0),h.lV.jL===0?3:4):h.ZD&&(ib(h,!1),h.lV.jL===0)?1:2}; yH3=function(h,t){for(var Y;;){if(h.iI===0&&(zq(h),h.iI===0)){if(t===0)return 1;break}h.Px=0;Y=Ro(h,0,h.window[h.cq]);h.iI--;h.cq++;if(Y&&(ib(h,!1),h.lV.jL===0))return 1}h.FX=0;return t===4?(ib(h,!0),h.lV.jL===0?3:4):h.ZD&&(ib(h,!1),h.lV.jL===0)?1:2}; lb=function(h,t,Y,L,q){this.G8=h;this.Bj=t;this.TUM=Y;this.b0=L;this.func=q}; Xkn=function(){this.lV=null;this.status=0;this.QM=null;this.wrap=this.pending=this.q1=this.Ny=0;this.o7=null;this.FG=0;this.method=8;this.ZT=-1;this.S8=this.Yh=this.gS=0;this.window=null;this.hD=0;this.head=this.fg=null;this.e$=this.XP=this.strategy=this.level=this.e3=this.bq=this.VQ=this.iI=this.CU=this.cq=this.R6=this.p8=this.Px=this.GO=this.rF=this.Vt=this.Za=this.NN=this.Vp=0;this.Tq=new pS.AL(1146);this.cz=new pS.AL(122);this.dn=new pS.AL(78);mK(this.Tq);mK(this.cz);mK(this.dn);this.F$=this.Ej= this.tb=null;this.zt=new pS.AL(16);this.pC=new pS.AL(573);mK(this.pC);this.BN=this.vA=0;this.depth=new pS.AL(573);mK(this.depth);this.pL=this.Zk=this.FX=this.matches=this.yj=this.GF=this.Fa=this.ZD=this.SX=this.qo=0}; UFD=function(h,t){if(!h||!h.state||t>5||t<0)return h?PM(h,-2):-2;var Y=h.state;if(!h.output||!h.input&&h.E8!==0||Y.status===666&&t!==4)return PM(h,h.jL===0?-5:-2);Y.lV=h;var L=Y.ZT;Y.ZT=t;if(Y.status===42)if(Y.wrap===2)h.SL=0,g0(Y,31),g0(Y,139),g0(Y,8),Y.o7?(g0(Y,(Y.o7.text?1:0)+(Y.o7.bu?2:0)+(Y.o7.extra?4:0)+(Y.o7.name?8:0)+(Y.o7.comment?16:0)),g0(Y,Y.o7.time&255),g0(Y,Y.o7.time>>8&255),g0(Y,Y.o7.time>>16&255),g0(Y,Y.o7.time>>24&255),g0(Y,Y.level===9?2:Y.strategy>=2||Y.level<2?4:0),g0(Y,Y.o7.os& 255),Y.o7.extra&&Y.o7.extra.length&&(g0(Y,Y.o7.extra.length&255),g0(Y,Y.o7.extra.length>>8&255)),Y.o7.bu&&(h.SL=qu(h.SL,Y.QM,Y.pending,0)),Y.FG=0,Y.status=69):(g0(Y,0),g0(Y,0),g0(Y,0),g0(Y,0),g0(Y,0),g0(Y,Y.level===9?2:Y.strategy>=2||Y.level<2?4:0),g0(Y,3),Y.status=113);else{var q=8+(Y.Yh-8<<4)<<8;q|=(Y.strategy>=2||Y.level<2?0:Y.level<6?1:Y.level===6?2:3)<<6;Y.cq!==0&&(q|=32);Y.status=113;Y5(Y,q+(31-q%31));Y.cq!==0&&(Y5(Y,h.SL>>>16),Y5(Y,h.SL&65535));h.SL=1}if(Y.status===69)if(Y.o7.extra){for(q= Y.pending;Y.FG<(Y.o7.extra.length&65535)&&(Y.pending!==Y.Ny||(Y.o7.bu&&Y.pending>q&&(h.SL=qu(h.SL,Y.QM,Y.pending-q,q)),DW(h),q=Y.pending,Y.pending!==Y.Ny));)g0(Y,Y.o7.extra[Y.FG]&255),Y.FG++;Y.o7.bu&&Y.pending>q&&(h.SL=qu(h.SL,Y.QM,Y.pending-q,q));Y.FG===Y.o7.extra.length&&(Y.FG=0,Y.status=73)}else Y.status=73;if(Y.status===73)if(Y.o7.name){q=Y.pending;do{if(Y.pending===Y.Ny&&(Y.o7.bu&&Y.pending>q&&(h.SL=qu(h.SL,Y.QM,Y.pending-q,q)),DW(h),q=Y.pending,Y.pending===Y.Ny)){var z=1;break}z=Y.FGq&&(h.SL=qu(h.SL,Y.QM,Y.pending-q,q));z===0&&(Y.FG=0,Y.status=91)}else Y.status=91;if(Y.status===91)if(Y.o7.comment){q=Y.pending;do{if(Y.pending===Y.Ny&&(Y.o7.bu&&Y.pending>q&&(h.SL=qu(h.SL,Y.QM,Y.pending-q,q)),DW(h),q=Y.pending,Y.pending===Y.Ny)){z=1;break}z=Y.FGq&&(h.SL=qu(h.SL,Y.QM,Y.pending-q,q));z===0&&(Y.status=103)}else Y.status= 103;Y.status===103&&(Y.o7.bu?(Y.pending+2>Y.Ny&&DW(h),Y.pending+2<=Y.Ny&&(g0(Y,h.SL&255),g0(Y,h.SL>>8&255),h.SL=0,Y.status=113)):Y.status=113);if(Y.pending!==0){if(DW(h),h.jL===0)return Y.ZT=-1,0}else if(h.E8===0&&(t<<1)-(t>4?9:0)<=(L<<1)-(L>4?9:0)&&t!==4)return PM(h,-5);if(Y.status===666&&h.E8!==0)return PM(h,-5);if(h.E8!==0||Y.iI!==0||t!==0&&Y.status!==666){L=Y.strategy===2?yH3(Y,t):Y.strategy===3?W7L(Y,t):HB[Y.level].func(Y,t);if(L===3||L===4)Y.status=666;if(L===1||L===3)return h.jL===0&&(Y.ZT= -1),0;if(L===2&&(t===1?(EB(Y,2,3),k1(Y,256,hT),Y.pL===16?(x1(Y,Y.Zk),Y.Zk=0,Y.pL=0):Y.pL>=8&&(Y.QM[Y.pending++]=Y.Zk&255,Y.Zk>>=8,Y.pL-=8)):t!==5&&(EB(Y,0,3),L7r(Y,0,0),t===3&&(mK(Y.head),Y.iI===0&&(Y.cq=0,Y.GO=0,Y.FX=0))),DW(h),h.jL===0))return Y.ZT=-1,0}if(t!==4)return 0;if(Y.wrap<=0)return 1;Y.wrap===2?(g0(Y,h.SL&255),g0(Y,h.SL>>8&255),g0(Y,h.SL>>16&255),g0(Y,h.SL>>24&255),g0(Y,h.KJ&255),g0(Y,h.KJ>>8&255),g0(Y,h.KJ>>16&255),g0(Y,h.KJ>>24&255)):(Y5(Y,h.SL>>>16),Y5(Y,h.SL&65535));DW(h);Y.wrap>0&& (Y.wrap=-Y.wrap);return Y.pending!==0?0:1}; w0=function(h){if(!(this instanceof w0))return new w0(h);h=this.options=pS.assign({level:-1,method:8,chunkSize:16384,gx:15,qiP:8,strategy:0,to:""},h||{});h.raw&&h.gx>0?h.gx=-h.gx:h.Ry&&h.gx>0&&h.gx<16&&(h.gx+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.lV=new CFW;this.lV.jL=0;var t=this.lV;var Y=h.level,L=h.method,q=h.gx,z=h.qiP,V=h.strategy;if(t){var l=1;Y===-1&&(Y=6);q<0?(l=0,q=-q):q>15&&(l=2,q-=16);if(z<1||z>9||L!==8||q<8||q>15||Y<0||Y>9||V<0||V>4)t=PM(t,-2);else{q===8&&(q=9); var H=new Xkn;t.state=H;H.lV=t;H.wrap=l;H.o7=null;H.Yh=q;H.gS=1<>=7;z<30;z++)for(Sl[z]=V<<7,q=0;q<1<=w.gS&&(t===0&&(mK(w.head),w.cq=0,w.GO=0,w.FX=0),Y=new pS.Hk(w.gS),pS.hU(Y,z,V-w.gS,w.gS,0),z=Y,V=w.gS);Y=h.E8;L=h.Kl;q=h.input;h.E8=V;h.Kl=0;h.input=z;for(zq(w);w.iI>=3;){z=w.cq;V=w.iI-2;do w.Vp=(w.Vp<=-3||((0,Y[90])(Y[56],Y[30]),null))&&(0,Y[26])(Y[92],Y[88]),(0,Y[75])(Y[46]),(0,Y[91])(Y[46],Y[81])}catch(L){}try{Y[47]>6&&(0,Y[70])((0,Y[87])(Y[17],Y[2]),Y[83],Y[24]),Y[7]<-6&&(Y[31]!==6||((0,Y[32])((((0,Y[14])((0,Y[26])(),Y[28],Y[18]),Y[14])((0,Y[66])(),Y[28],Y[24]),Y[83])(Y[54]),Y[49],Y[8],Y[70]),N[19]))&&(0,Y[38])((0,Y[32])((0,Y[49])(Y[24],Y[3]),Y[53],Y[18],Y[87]),Y[84],(0,Y[78])(Y[0],Y[54]),Y[8]),Y[new Date(N[30])/ 1E3]>=-5&&(Y[41]!==-5&&((0,Y[38])((0,Y[32])((0,Y[53])(Y[24],Y[69]),Y[81],Y[18],Y[9]),Y[81],(0,Y[49])(Y[54],Y[44]),Y[73],Y[17]),N[35])||((0,Y[45])(Y[73]),Y[15])(Y[16],Y[70])%(0,Y[11])(Y[73],Y[52])*(0,Y[15])(Y[63],Y[9])),Y[66]>2&&(((0,Y[46])(Y[79]),Y[87])((0,Y[11])(Y[34],Y[51]),Y[42],(0,Y[54])(),Y[90],Y[52]),N[63])||(0,Y[60])((0,Y[19])(Y[36]),Y[81],Y[36],Y[34])&(0,Y[18])(Y[82]),Y[32]<=6&&((0,Y[42])((0,Y[17])(),Y[15],Y[52]),1)||(0,Y[81])(Y[36],Y[74]),Y[83]!==-4?((((0,Y[16])(Y[40],Y[21]),Y[23])((0,Y[43])(Y[45], Y[66]),Y[43],Y[45],Y[82]),Y[74])(Y[3]),(0,Y[87])((0,Y[85])(),Y[73],Y[77])):((0,Y[69])((0,Y[87])((0,Y[62])(),Y[73],Y[77]),Y[48],Y[83],Y[41]),((0,Y[48])(Y[77],Y[76]),Y[49])(Y[0],Y[36]),Y[23])(Y[50],Y[0])}catch(L){(0,Y[18])(Y[0]),(0,Y[48])(Y[77],Y[40]),(0,Y[48])(Y[47],Y[33]),((0,Y[87])((0,Y[19])(),Y[21],Y[77]),Y[48])(Y[89],Y[8]),(0,Y[48])(Y[0],Y[67])}finally{Y[31]!=10&&(Y[84]==1||((0,Y[20])(Y[83],Y[27]),0))&&(0,Y[49])(Y[47],Y[42]),Y[13]>-10&&(Y[12]!==-5?((0,Y[new Date(N[62])/1E3])(Y[70],Y[47]),Y[20])(Y[89], Y[1])*(0,Y[26])(Y[6],Y[20]):((0,Y[64])((0,Y[39])(),Y[92],Y[54]),Y[91])(Y[54],Y[5])&(0,Y[29])(Y[54],Y[56])),Y[61]<=-7&&(Y[9]!=9||(((0,Y[89])(Y[60]),(0,Y[26])(Y[60],Y[33]),Y[64])((0,Y[52])(),Y[50],Y[60]),NaN))&&(0,Y[45])((0,Y[64])((0,Y[62])(),Y[92],Y[60]),Y[46],(0,Y[89])(Y[54]),Y[91],Y[24],Y[49]),Y[82]<1?(((0,Y[9])(Y[41],Y[26]),((0,Y[12])((0,Y[89])(Y[84],Y[24]),Y[59],Y[5],Y[23]),(0,Y[30])(Y[57],Y[70]),Y[18])(Y[40],Y[93]),Y[66])(Y[93],Y[43]),(0,Y[61])((0,Y[55])((0,Y[41])(Y[39],Y[30]),Y[58],(0,Y[17])(Y[81], Y[15]),Y[66],Y[21]),Y[58],Y[93],Y[21]),Y[61])((0,Y[61])((0,Y[41])(Y[86],Y[new Date(N[36])/1E3]),Y[12],Y[75],Y[16]),Y[41],Y[75],Y[45]):(0,Y[55])((0,Y[60])((0,Y[61])((0,Y[61])((0,Y[61])((0,Y[44])(Y[81],Y[82]),Y[79],(0,Y[27])(),Y[65],Y[69]),Y[10],Y[21]),Y[79],(0,Y[77])(),Y[13],Y[86])*(0,Y[58])(Y[26],Y[39]),Y[61],(0,Y[61])((0,Y[61])((0,Y[79])((0,Y[62])(),Y[13],Y[69]),Y[41],Y[81],Y[6]),Y[79],(0,Y[27])(),Y[65],Y[75]),Y[41],Y[21],Y[22]),Y[35],(0,Y[61])((0,Y[41])(Y[75],Y[51])>>(0,Y[44])(Y[69],Y[63]),Y[12], Y[69],Y[89]),Y[75],Y[92]),Y[20]!=8&&(0,Y[35])(Y[75],Y[85])}try{(Y[90]!=-4||((0,Y[58])(Y[72],Y[69]),new Date(N[0])/1E3))&&(0,Y[35])(Y[69],Y[70])}catch(L){(0,Y[58])(Y[76],Y[75])}}catch(L){return N[38]+h}return t[N[52]](N[19])}; g.C$=function(h){this.name=h}; xFi=function(h){this.qD=nf(h)}; Mu=function(h){this.qD=nf(h)}; Fk=function(h){this.qD=nf(h)}; Ecp=function(h){this.qD=nf(h)}; sy=function(h){this.qD=nf(h)}; jR=function(h){this.qD=nf(h)}; ZF=function(h){this.qD=nf(h)}; bb=function(h){this.qD=nf(h)}; op=function(h){this.qD=nf(h)}; d0=function(h){this.qD=nf(h)}; Gq=function(h){this.qD=nf(h)}; Qj=function(h){this.qD=nf(h)}; r0=function(h){this.qD=nf(h)}; cB=function(h){this.qD=nf(h)}; ub=function(h){this.qD=nf(h)}; eR=function(h){this.qD=nf(h,500)}; JT=function(h){this.qD=nf(h)}; p$=function(h){this.qD=nf(h)}; kcD=function(h){this.qD=nf(h)}; Omb=function(){return g.il("yt.ads.biscotti.lastId_")||""}; nc6=function(h){g.t3("yt.ads.biscotti.lastId_",h)}; x5=function(){var h=arguments,t=ap;h.length>1?t[h[0]]=h[1]:h.length===1&&Object.assign(t,h[0])}; g.Ey=function(h,t){return h in ap?ap[h]:t}; k5=function(h){var t=ap.EXPERIMENT_FLAGS;return t?t[h]:void 0}; fLp=function(h){Oy.forEach(function(t){return t(h)})}; g.f$=function(h){return h&&window.yterr?function(){try{return h.apply(this,arguments)}catch(t){g.n$(t)}}:h}; g.n$=function(h){var t=g.il("yt.logging.errors.log");t?t(h,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=g.Ey("ERRORS",[]),t.push([h,"ERROR",void 0,void 0,void 0,void 0,void 0]),x5("ERRORS",t));fLp(h)}; $5=function(h,t,Y,L,q){var z=g.il("yt.logging.errors.log");z?z(h,"WARNING",t,Y,L,void 0,q):(z=g.Ey("ERRORS",[]),z.push([h,"WARNING",t,Y,L,void 0,q]),x5("ERRORS",z))}; Tq=function(h,t){t=h.split(t);for(var Y={},L=0,q=t.length;L1?h[1]:h[0])):{}}; BB=function(h,t){return SWD(h,t||{},!0)}; PB=function(h,t){return SWD(h,t||{},!1)}; SWD=function(h,t,Y){var L=h.split("#",2);h=L[0];L=L.length>1?"#"+L[1]:"";var q=h.split("?",2);h=q[0];q=SR(q[1]||"");for(var z in t)if(Y||!g.lv(q,z))q[z]=t[z];return g.Xz(h,q)+L}; mi=function(h){if(!t)var t=window.location.href;var Y=g.zF(h)[1]||null,L=g.VC(h);Y&&L?(h=g.zF(h),t=g.zF(t),h=h[3]==t[3]&&h[1]==t[1]&&h[4]==t[4]):h=L?g.VC(t)===L&&(Number(g.zF(t)[4]||null)||null)===(Number(g.zF(h)[4]||null)||null):!0;return h}; DF=function(h){h||(h=document.location.href);h=g.zF(h)[1]||null;return h!==null&&h==="https"}; h7=function(h){h=IL1(h);return h===null?!1:h[0]==="com"&&h[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; RjL=function(h){h=IL1(h);return h===null?!1:h[1]==="google"?!0:h[2]==="google"?h[0]==="au"&&h[1]==="com"?!0:h[0]==="uk"&&h[1]==="co"?!0:!1:!1}; IL1=function(h){h=g.VC(h);return h!==null?h.split(".").reverse():null}; $Fb=function(h){return h&&h.match(BBL)?h:us(h)}; gj=function(h){var t=t7;h=h===void 0?Omb():h;var Y=Object,L=Y.assign,q=iZ(t);var z=t.G;try{var V=z.screenX;var l=z.screenY}catch(J){}try{var H=z.outerWidth;var w=z.outerHeight}catch(J){}try{var W=z.innerWidth;var y=z.innerHeight}catch(J){}try{var X=z.screenLeft;var U=z.screenTop}catch(J){}try{W=z.innerWidth,y=z.innerHeight}catch(J){}try{var C=z.screen.availWidth;var d=z.screen.availTop}catch(J){}z=[X,U,V,l,C,d,H,w,W,y];V=Y2L(!1,t.G.top);l={};var Q=Q===void 0?g.D$:Q;H=new pE;"SVGElement"in Q&&"createElementNS"in Q.document&&H.set(0);w=Yw1();w["allow-top-navigation-by-user-activation"]&&H.set(1);w["allow-popups-to-escape-sandbox"]&&H.set(2);Q.crypto&&Q.crypto.subtle&&H.set(3);"TextDecoder"in Q&&"TextEncoder"in Q&&H.set(4);Q=bXL(H);t=(l.bc=Q,l.bih=V.height,l.biw=V.width,l.brdim=z.join(),l.vis=LQ(t.T),l.wgl=!!uI.WebGLRenderingContext,l);Y=L.call(Y,q,t);Y.ca_type="image";h&&(Y.bid=h);return Y}; iZ=function(h){var t={};t.dt=PFD;t.flash="0";a:{try{var Y=h.G.top.location.href}catch(W){h=2;break a}h=Y?Y===h.T.location.href?0:1:2}t=(t.frm=h,t);try{t.u_tz=-(new Date).getTimezoneOffset();var L=L===void 0?uI:L;try{var q=L.history.length}catch(W){q=0}t.u_his=q;var z;t.u_h=(z=uI.screen)==null?void 0:z.height;var V;t.u_w=(V=uI.screen)==null?void 0:V.width;var l;t.u_ah=(l=uI.screen)==null?void 0:l.availHeight;var H;t.u_aw=(H=uI.screen)==null?void 0:H.availWidth;var w;t.u_cd=(w=uI.screen)==null?void 0: w.colorDepth}catch(W){}return t}; DFi=function(){if(!mF3)return null;var h=mF3();return"open"in h?h:null}; g.qc=function(h){switch(Li(h)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Li=function(h){return h&&"status"in h?h.status:-1}; g.zz=function(h,t){typeof h==="function"&&(h=g.f$(h));return window.setTimeout(h,t)}; g.VR=function(h,t){typeof h==="function"&&(h=g.f$(h));return window.setInterval(h,t)}; g.Nc=function(h){window.clearTimeout(h)}; g.lZ=function(h){window.clearInterval(h)}; g.wj=function(h){h=H2(h);return typeof h==="string"&&h==="false"?!1:!!h}; g.W2=function(h,t){h=H2(h);return h===void 0&&t!==void 0?t:Number(h||0)}; yR=function(){return g.Ey("EXPERIMENTS_TOKEN","")}; H2=function(h){return g.Ey("EXPERIMENT_FLAGS",{})[h]}; Xx=function(){for(var h=[],t=g.Ey("EXPERIMENTS_FORCED_FLAGS",{}),Y=g.b(Object.keys(t)),L=Y.next();!L.done;L=Y.next())L=L.value,h.push({key:L,value:String(t[L])});Y=g.Ey("EXPERIMENT_FLAGS",{});L=g.b(Object.keys(Y));for(var q=L.next();!q.done;q=L.next())q=q.value,q.startsWith("force_")&&t[q]===void 0&&h.push({key:q,value:String(Y[q])});return h}; UA=function(h,t,Y,L,q,z,V,l){function H(){(w&&"readyState"in w?w.readyState:0)===4&&t&&g.f$(t)(w)} Y=Y===void 0?"GET":Y;L=L===void 0?"":L;l=l===void 0?!1:l;var w=DFi();if(!w)return null;"onloadend"in w?w.addEventListener("loadend",H,!1):w.onreadystatechange=H;g.wj("debug_forward_web_query_parameters")&&(h=h_i(h));w.open(Y,h,!0);z&&(w.responseType=z);V&&(w.withCredentials=!0);Y=Y==="POST"&&(window.FormData===void 0||!(L instanceof FormData));if(q=twp(h,q))for(var W in q)w.setRequestHeader(W,q[W]),"content-type"===W.toLowerCase()&&(Y=!1);Y&&w.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){h={eventSourceEligible:!0,triggerEligible:!1};try{w.setAttributionReporting(h)}catch(y){$5(y)}}w.send(L);return w}; twp=function(h,t){t=t===void 0?{}:t;var Y=mi(h),L=g.Ey("INNERTUBE_CLIENT_NAME"),q=g.wj("web_ajax_ignore_global_headers_if_set"),z;for(z in i2D){var V=g.Ey(i2D[z]),l=z==="X-Goog-AuthUser"||z==="X-Goog-PageId";z!=="X-Goog-Visitor-Id"||V||(V=g.Ey("VISITOR_DATA"));var H;if(!(H=!V)){if(!(H=Y||(g.VC(h)?!1:!0))){H=h;var w;if(w=g.wj("add_auth_headers_to_remarketing_google_dot_com_ping")&&z==="Authorization"&&(L==="TVHTML5"||L==="TVHTML5_UNPLUGGED"||L==="TVHTML5_SIMPLY")&&RjL(H))H=Nw(H)||"",H=H.split("/"), H="/"+(H.length>1?H[1]:""),w=H==="/pagead";H=w?!0:!1}H=!H}H||q&&t[z]!==void 0||L==="TVHTML5_UNPLUGGED"&&l||(t[z]=V)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(Y||!g.VC(h))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Y||!g.VC(h)){try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(y){}W&&(t["X-YouTube-Time-Zone"]=W)}document.location.hostname.endsWith("youtubeeducation.com")||!Y&&g.VC(h)||(t["X-YouTube-Ad-Signals"]= AT(gj()));return t}; Mc=function(h,t){t.method="POST";t.postParams||(t.postParams={});return g.Ci(h,t)}; LoL=function(h,t){if(window.fetch&&t.format!=="XML"){var Y={method:t.method||"GET",credentials:"same-origin"};t.headers&&(Y.headers=t.headers);t.priority&&(Y.priority=t.priority);h=gsL(h,t);var L=YK6(h,t);L&&(Y.body=L);t.withCredentials&&(Y.credentials="include");var q=t.context||g.D$,z=!1,V;fetch(h,Y).then(function(l){if(!z){z=!0;V&&g.Nc(V);var H=l.ok,w=function(W){W=W||{};H?t.onSuccess&&t.onSuccess.call(q,W,l):t.onError&&t.onError.call(q,W,l);t.onFinish&&t.onFinish.call(q,W,l)}; (t.format||"JSON")==="JSON"&&(H||l.status>=400&&l.status<500)?l.json().then(w,function(){w(null)}):w(null)}}).catch(function(){t.onError&&t.onError.call(q,{},{})}); h=t.timeout||0;t.onFetchTimeout&&h>0&&(V=g.zz(function(){z||(z=!0,g.Nc(V),t.onFetchTimeout.call(t.context||g.D$))},h))}else g.Ci(h,t)}; g.Ci=function(h,t){var Y=t.format||"JSON";h=gsL(h,t);var L=YK6(h,t),q=!1,z=qKL(h,function(H){if(!q){q=!0;l&&g.Nc(l);var w=g.qc(H),W=null,y=400<=H.status&&H.status<500,X=500<=H.status&&H.status<600;if(w||y||X)W=z_L(h,Y,H,t.convertToSafeHtml);w&&(w=Vwp(Y,H,W));W=W||{};y=t.context||g.D$;w?t.onSuccess&&t.onSuccess.call(y,H,W):t.onError&&t.onError.call(y,H,W);t.onFinish&&t.onFinish.call(y,H,W)}},t.method,L,t.headers,t.responseType,t.withCredentials); L=t.timeout||0;if(t.onTimeout&&L>0){var V=t.onTimeout;var l=g.zz(function(){q||(q=!0,z.abort(),g.Nc(l),V.call(t.context||g.D$,z))},L)}return z}; gsL=function(h,t){t.includeDomain&&(h=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+h);var Y=g.Ey("XSRF_FIELD_NAME");if(t=t.urlParams)t[Y]&&delete t[Y],h=BB(h,t);return h}; YK6=function(h,t){var Y=g.Ey("XSRF_FIELD_NAME"),L=g.Ey("XSRF_TOKEN"),q=t.postBody||"",z=t.postParams,V=g.Ey("XSRF_FIELD_NAME"),l;t.headers&&(l=t.headers["Content-Type"]);t.excludeXsrf||g.VC(h)&&!t.withCredentials&&g.VC(h)!==document.location.hostname||t.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||t.postParams&&t.postParams[V]||(z||(z={}),z[Y]=L);(g.wj("ajax_parse_query_data_only_when_filled")&&z&&Object.keys(z).length>0||z)&&typeof q==="string"&&(q=SR(q),g.Mn(q,z),q=t.postBodyFormat&& t.postBodyFormat==="JSON"?JSON.stringify(q):g.yC(q));z=q||z&&!g.WZ(z);!N5c&&z&&t.method!=="POST"&&(N5c=!0,g.n$(Error("AJAX request with postData should use POST")));return q}; z_L=function(h,t,Y,L){var q=null;switch(t){case "JSON":try{var z=Y.responseText}catch(V){throw L=Error("Error reading responseText"),L.params=h,$5(L),V;}h=Y.getResponseHeader("Content-Type")||"";z&&h.indexOf("json")>=0&&(z.substring(0,5)===")]}'\n"&&(z=z.substring(5)),q=JSON.parse(z));break;case "XML":if(h=(h=Y.responseXML)?lRc(h):null)q={},g.B1(h.getElementsByTagName("*"),function(V){q[V.tagName]=H23(V)})}L&&wm3(q); return q}; wm3=function(h){if(g.LH(h))for(var t in h)t==="html_content"||nbi(t,"_html")?h[t]=yz(h[t]):wm3(h[t])}; Vwp=function(h,t,Y){if(t&&t.status===204)return!0;switch(h){case "JSON":return!!Y;case "XML":return Number(Y&&Y.return_code)===0;case "RAW":return!0;default:return!!Y}}; lRc=function(h){return h?(h=("responseXML"in h?h.responseXML:h).getElementsByTagName("root"))&&h.length>0?h[0]:null:null}; H23=function(h){var t="";g.B1(h.childNodes,function(Y){t+=Y.nodeValue}); return t}; h_i=function(h){var t=window.location.search,Y=g.VC(h);g.wj("debug_handle_relative_url_for_query_forward_killswitch")||!Y&&mi(h)&&(Y=document.location.hostname);var L=Nw(h);L=(Y=Y&&(Y.endsWith("youtube.com")||Y.endsWith("youtube-nocookie.com")))&&L&&L.startsWith("/api/");if(!Y||L)return h;var q=SR(t),z={};g.B1(WoD,function(V){q[V]&&(z[V]=q[V])}); return PB(h,z)}; sA=function(h,t){var Y=g.Uw(t),L;return(new g.oR(function(q,z){Y.onSuccess=function(V){g.qc(V)?q(new ygL(V)):z(new Fx("Request failed, status="+Li(V),"net.badstatus",V))}; Y.onError=function(V){z(new Fx("Unknown request error","net.unknown",V))}; Y.onTimeout=function(V){z(new Fx("Request timed out","net.timeout",V))}; L=g.Ci(h,Y)})).wS(function(q){if(q instanceof uF){var z; (z=L)==null||z.abort()}return Qm(q)})}; g.ZH=function(h,t,Y,L,q,z){function V(H,w,W){return H.wS(function(y){if(w<=0||Li(y.xhr)===403)return Qm(new Fx("Request retried too many times","net.retryexhausted",y.xhr,y));var X=Math.pow(2,Y-w+1)*W,U=q>0?Math.min(q,X):X;return l(W).then(function(){z&&z(y,w-1);return V(sA(h,t),w-1,U)})})} function l(H){return new g.oR(function(w){setTimeout(w,H)})} q=q===void 0?-1:q;return V(sA(h,t),Y-1,L)}; Fx=function(h,t,Y){yv.call(this,h+", errorCode="+t);this.errorCode=t;this.xhr=Y;this.name="PromiseAjaxError"}; ygL=function(h){this.xhr=h}; bZ=function(h){this.G=h===void 0?null:h;this.S=0;this.T=null}; oF=function(h){var t=new bZ;h=h===void 0?null:h;t.S=2;t.T=h===void 0?null:h;return t}; dj=function(h){var t=new bZ;h=h===void 0?null:h;t.S=1;t.T=h===void 0?null:h;return t}; g.rj=function(h,t,Y,L,q){Gz||QR.set(""+h,t,{zX:Y,path:"/",domain:L===void 0?"youtube.com":L,secure:q===void 0?!1:q})}; g.c2=function(h,t){if(!Gz)return QR.get(""+h,t)}; g.uZ=function(h,t,Y){Gz||QR.remove(""+h,t===void 0?"/":t,Y===void 0?"youtube.com":Y)}; XmL=function(){if(g.wj("embeds_web_enable_cookie_detection_fix")){if(!g.D$.navigator.cookieEnabled)return!1}else if(!QR.isEnabled())return!1;if(!QR.isEmpty())return!0;g.wj("embeds_web_enable_cookie_detection_fix")?QR.set("TESTCOOKIESENABLED","1",{zX:60,KKb:"none",secure:!0}):QR.set("TESTCOOKIESENABLED","1",{zX:60});if(QR.get("TESTCOOKIESENABLED")!=="1")return!1;QR.remove("TESTCOOKIESENABLED");return!0}; g.A=function(h,t){if(h)return h[t.name]}; ea=function(h){var t=g.Ey("INNERTUBE_HOST_OVERRIDE");t&&(h=String(t)+String(lo(h)));return h}; UfW=function(h){var t={};g.wj("json_condensed_response")&&(t.prettyPrint="false");return h=PB(h,t)}; J7=function(h,t){var Y=Y===void 0?{}:Y;h={method:t===void 0?"POST":t,mode:mi(h)?"same-origin":"cors",credentials:mi(h)?"same-origin":"include"};t={};for(var L=g.b(Object.keys(Y)),q=L.next();!q.done;q=L.next())q=q.value,Y[q]&&(t[q]=Y[q]);Object.keys(t).length>0&&(h.headers=t);return h}; pi=function(){var h=/Chrome\/(\d+)/.exec(g.xp());return h?parseFloat(h[1]):NaN}; v2=function(){var h=/\sCobalt\/(\S+)\s/.exec(g.xp());if(!h)return NaN;var t=[];h=g.b(h[1].split("."));for(var Y=h.next();!Y.done;Y=h.next())Y=parseInt(Y.value,10),Y>=0&&t.push(Y);return parseFloat(t.join("."))}; aF=function(){return g.Ki("android")&&g.Ki("chrome")&&!(g.Ki("trident/")||g.Ki("edge/"))&&!g.Ki("cobalt")}; Cd6=function(){return g.Ki("armv7")||g.Ki("aarch64")||g.Ki("android")}; g.xT=function(){return g.Ki("cobalt")}; EA=function(){return g.Ki("cobalt")&&g.Ki("appletv")}; kT=function(){return g.Ki("(ps3; leanback shell)")||g.Ki("ps3")&&g.xT()}; MwD=function(){return g.Ki("(ps4; leanback shell)")||g.Ki("ps4")&&g.xT()}; g.Foi=function(){return g.xT()&&(g.Ki("ps4 vr")||g.Ki("ps4 pro vr"))}; OA=function(){var h=/WebKit\/([0-9]+)/.exec(g.xp());return!!(h&&parseInt(h[1],10)>=600)}; ni=function(){var h=/WebKit\/([0-9]+)/.exec(g.xp());return!!(h&&parseInt(h[1],10)>=602)}; sGr=function(){return g.Ki("iemobile")||g.Ki("windows phone")&&g.Ki("edge")}; Tz=function(){return(fi||$T)&&g.Ki("applewebkit")&&!g.Ki("version")&&(!g.Ki("safari")||g.Ki("gsa/"))}; Sa=function(){return g.A7&&g.Ki("version/")}; IF=function(){return g.Ki("smart-tv")&&g.Ki("samsung")}; g.Ki=function(h){var t=g.xp();return t?t.toLowerCase().indexOf(h)>=0:!1}; RF=function(){return Llb()||Tz()||Sa()?!0:g.Ey("EOM_VISITOR_DATA")?!1:!0}; B2=function(h,t){return t===void 0||t===null?h:t==="1"||t===!0||t===1||t==="True"?!0:!1}; P2=function(h,t,Y){for(var L in Y)if(Y[L]==t)return Y[L];return h}; mJ=function(h,t){return t===void 0||t===null?h:Number(t)}; DH=function(h,t){return t===void 0||t===null?h:t.toString()}; hG=function(h,t){if(t){if(h==="fullwidth")return Infinity;if(h==="fullheight")return 0}return h&&(t=h.match(jGW))&&(h=Number(t[2]),t=Number(t[1]),!isNaN(h)&&!isNaN(t)&&h>0)?t/h:NaN}; tG=function(h){var t=h.docid||h.video_id||h.videoId||h.id;if(t)return t;t=h.raw_player_response;t||(h=h.player_response)&&(t=JSON.parse(h));return t&&t.videoDetails&&t.videoDetails.videoId||null}; Z2L=function(h){return ie(h,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.gK=function(h){return h==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||h==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; ie=function(h,t){t=(t===void 0?0:t)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var Y=h.raw_embedded_player_response;if(!Y&&(h=h.embedded_player_response))try{Y=JSON.parse(h)}catch(L){return t}return Y?P2(t,Y.embeddedPlayerMode,b2r):t}; LY=function(h){yv.call(this,h.message||h.description||h.name);this.isMissing=h instanceof YI;this.isTimeout=h instanceof Fx&&h.errorCode=="net.timeout";this.isCanceled=h instanceof uF}; YI=function(){yv.call(this,"Biscotti ID is missing from server")}; osr=function(){if(g.wj("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!RF())return Error("User has not consented - not fetching biscotti id.");var h=g.Ey("PLAYER_VARS",{});if(g.yo(h,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Z2L(h))return Error("Biscotti id fetching has been disabled for pfl.")}; rgL=function(){var h=osr();if(h!==void 0)return Qm(h);qM||(qM=sA("//googleads.g.doubleclick.net/pagead/id",dfb).then(GJ1).wS(function(t){return QGW(2,t)})); return qM}; GJ1=function(h){h=h.xhr.responseText;if(!uv(h,")]}'"))throw new YI;h=JSON.parse(h.substr(4));if((h.type||1)>1)throw new YI;h=h.id;nc6(h);qM=dj(h);cgD(18E5,2);return h}; QGW=function(h,t){t=new LY(t);nc6("");qM=oF(t);h>0&&cgD(12E4,h-1);throw t;}; cgD=function(h,t){g.zz(function(){sA("//googleads.g.doubleclick.net/pagead/id",dfb).then(GJ1,function(Y){return QGW(t,Y)}).wS(g.Jf)},h)}; uW3=function(){try{var h=g.il("yt.ads.biscotti.getId_");return h?h():rgL()}catch(t){return Qm(t)}}; JgL=function(h){h&&(h.dataset?h.dataset[e_L()]="true":gy$(h))}; pmD=function(h){return h?h.dataset?h.dataset[e_L()]:h.getAttribute("data-loaded"):null}; e_L=function(){return vs6.loaded||(vs6.loaded="loaded".replace(/\-([a-z])/g,function(h,t){return t.toUpperCase()}))}; KoL=function(){var h=document;if("visibilityState"in h)return h.visibilityState;var t=zI+"VisibilityState";if(t in h)return h[t]}; VS=function(h,t){var Y;OM(h,function(L){Y=t[L];return!!Y}); return Y}; NM=function(h){if(h.requestFullscreen)h=h.requestFullscreen(void 0);else if(h.webkitRequestFullscreen)h=h.webkitRequestFullscreen();else if(h.mozRequestFullScreen)h=h.mozRequestFullScreen();else if(h.msRequestFullscreen)h=h.msRequestFullscreen();else if(h.webkitEnterFullscreen)h=h.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return h instanceof Promise?h:Promise.resolve()}; wK=function(h){var t;g.le()?HY()==h&&(t=document):t=h;return t&&(h=VS(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))?(t=h.call(t),t instanceof Promise?t:Promise.resolve()):Promise.resolve()}; aRL=function(h){return g.Mh(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in h})}; xfL=function(){var h=document;return g.Mh(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(t){return"on"+t.toLowerCase()in h})}; g.le=function(){return!!VS(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; HY=function(h){h=h===void 0?!1:h;var t=VS(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(h)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null}; WY=function(h){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(h=h||window.event){this.event=h;for(var t in h)t in EsW||(this[t]=h[t]);this.scale=h.scale;this.rotation=h.rotation;var Y=h.target||h.srcElement;Y&&Y.nodeType==3&&(Y=Y.parentNode);this.target=Y;var L=h.relatedTarget; if(L)try{L=L.nodeName?L:null}catch(q){L=null}else this.type=="mouseover"?L=h.fromElement:this.type=="mouseout"&&(L=h.toElement);this.relatedTarget=L;this.clientX=h.clientX!=void 0?h.clientX:h.pageX;this.clientY=h.clientY!=void 0?h.clientY:h.pageY;this.keyCode=h.keyCode?h.keyCode:h.which;this.charCode=h.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=h.altKey;this.ctrlKey=h.ctrlKey;this.shiftKey=h.shiftKey;this.metaKey=h.metaKey;this.G=h.pageX;this.T=h.pageY}}catch(q){}}; kJ1=function(h){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;h.G=h.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);h.T=h.clientY+t}}; O2L=function(h,t,Y,L){L=L===void 0?{}:L;h.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return wh(yS,function(q){var z=typeof q[4]==="boolean"&&q[4]==!!L,V=g.LH(q[4])&&g.LH(L)&&g.Xh(q[4],L);return!!q.length&&q[0]==h&&q[1]==t&&q[2]==Y&&(z||V)})}; g.X4=function(h,t,Y,L){L=L===void 0?{}:L;if(!h||!h.addEventListener&&!h.attachEvent)return"";var q=O2L(h,t,Y,L);if(q)return q;q=++nsn.count+"";var z=!(t!="mouseenter"&&t!="mouseleave"||!h.addEventListener||"onmouseenter"in document);var V=z?function(l){l=new WY(l);if(!ZP(l.relatedTarget,function(H){return H==h},!0))return l.currentTarget=h,l.type=t,Y.call(h,l)}:function(l){l=new WY(l); l.currentTarget=h;return Y.call(h,l)}; V=g.f$(V);h.addEventListener?(t=="mouseenter"&&z?t="mouseover":t=="mouseleave"&&z?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),fRb()||typeof L==="boolean"?h.addEventListener(t,V,L):h.addEventListener(t,V,!!L.capture)):h.attachEvent("on"+t,V);yS[q]=[h,t,Y,V,L];return q}; T56=function(h){return $fr(h,function(t){return g.P$(t,"ytp-ad-has-logging-urls")})}; $fr=function(h,t){var Y=document.body||document;return g.X4(Y,"click",function(L){var q=ZP(L.target,function(z){return z===Y||t(z)},!0); q&&q!==Y&&!q.disabled&&(L.currentTarget=q,h.call(q,L))})}; g.Ua=function(h){h&&(typeof h=="string"&&(h=[h]),g.B1(h,function(t){if(t in yS){var Y=yS[t],L=Y[0],q=Y[1],z=Y[3];Y=Y[4];L.removeEventListener?fRb()||typeof Y==="boolean"?L.removeEventListener(q,z,Y):L.removeEventListener(q,z,!!Y.capture):L.detachEvent&&L.detachEvent("on"+q,z);delete yS[t]}}))}; CY=function(h){for(var t in yS)yS[t][0]==h&&g.Ua(t)}; MM=function(h){h=h||window.event;var t;h.composedPath&&typeof h.composedPath==="function"?t=h.composedPath():t=h.path;t&&t.length?h=t[0]:(h=h||window.event,h=h.target||h.srcElement,h.nodeType==3&&(h=h.parentNode));return h}; F4=function(h){this.C=h;this.G=null;this.W=0;this.U=null;this.X=0;this.T=[];for(h=0;h<4;h++)this.T.push(0);this.S=0;this.x8=g.X4(window,"mousemove",(0,g.Vv)(this.L,this));this.Y=g.VR((0,g.Vv)(this.AQ,this),25)}; sa=function(h){g.O.call(this);this.C=[];this.G$=h||this}; jq=function(h,t,Y,L){for(var q=0;q0?Y:0;Y=L?Date.now()+L*1E3:0;if((L=L?(0,g.be)():oz())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{L.set(h,t,Y)}catch(q){L.remove(h)}}}; g.GI=function(h){var t=oz(),Y=(0,g.be)();if(!t&&!Y||!window.JSON)return null;try{var L=t.get(h)}catch(q){}if(typeof L!=="string")try{L=Y.get(h)}catch(q){}if(typeof L!=="string")return null;try{L=JSON.parse(L,void 0)}catch(q){}return L}; SKc=function(){var h=(0,g.be)();if(h&&(h=h.T("yt-player-quality")))return h.creation}; g.QS=function(h){try{var t=oz(),Y=(0,g.be)();t&&t.remove(h);Y&&Y.remove(h)}catch(L){}}; g.rK=function(){return g.GI("yt-remote-session-screen-id")}; IR$=function(h){var t=this;this.T=void 0;this.G=!1;h.addEventListener("beforeinstallprompt",function(Y){Y.preventDefault();t.T=Y}); h.addEventListener("appinstalled",function(){t.G=!0},{once:!0})}; cY=function(){if(!g.D$.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.D$.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.D$.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.D$.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.D$.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(h){return"WEB_DISPLAY_MODE_UNKNOWN"}}; ue=function(){this.Yw=!0}; R_p=function(){ue.instance||(ue.instance=new ue);return ue.instance}; B5L=function(h){switch(h){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; PdW=function(){this.G=g.Ey("ALT_PREF_COOKIE_NAME","PREF");this.T=g.Ey("ALT_PREF_COOKIE_DOMAIN","youtube.com");var h=g.c2(this.G);h&&this.parse(h)}; g.JG=function(){eq||(eq=new PdW);return eq}; g.pY=function(h,t){return!!((mfL("f"+(Math.floor(t/31)+1))||0)&1<0;)switch(h=ij.shift(),h.type){case "ERROR":me.NS(h.payload);break;case "EVENT":me.logEvent(h.eventType,h.payload)}}; YL=function(h){gI||(me?me.NS(h):(ij.push({type:"ERROR",payload:h}),ij.length>10&&ij.shift()))}; Lj=function(h,t){gI||(me?me.logEvent(h,t):(ij.push({type:"EVENT",eventType:h,payload:t}),ij.length>10&&ij.shift()))}; qq=function(h){if(h.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; zY=function(h){return h.substr(0,h.indexOf(":"))||h}; g.VQ=function(h,t,Y,L,q){t=t===void 0?{}:t;Y=Y===void 0?q8c[h]:Y;L=L===void 0?zti[h]:L;q=q===void 0?VjL[h]:q;g.Ea.call(this,Y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:h},t));this.type=h;this.message=Y;this.level=L;this.G=q;Object.setPrototypeOf(this,g.VQ.prototype)}; Nq=function(h,t){g.VQ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:h},q8c.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Nq.prototype)}; lj=function(h,t){var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.index=h;this.objectStore=t;Object.setPrototypeOf(this,lj.prototype)}; wI=function(h,t,Y,L){t=zY(t);var q=h instanceof Error?h:Error("Unexpected error: "+h);if(q instanceof g.VQ)return q;h={objectStoreNames:Y,dbName:t,dbVersion:L};if(q.name==="QuotaExceededError")return new g.VQ("QUOTA_EXCEEDED",h);if(g.Hq&&q.name==="UnknownError")return new g.VQ("QUOTA_MAYBE_EXCEEDED",h);if(q instanceof lj)return new g.VQ("MISSING_INDEX",Object.assign({},h,{objectStore:q.objectStore,index:q.index}));if(q.name==="InvalidStateError"&&Nsn.some(function(z){return q.message.includes(z)}))return new g.VQ("EXECUTE_TRANSACTION_ON_CLOSED_DB", h); if(q.name==="AbortError")return new g.VQ("UNKNOWN_ABORT",h,q.message);q.args=[Object.assign({},h,{name:"IdbError",u2:q.name})];q.level="WARNING";return q}; g.Wq=function(h,t,Y){var L=PY();return new g.VQ("IDB_NOT_SUPPORTED",{context:{caller:h,publicName:t,version:Y,hasSucceededOnce:L==null?void 0:L.hasSucceededOnce}})}; lzn=function(h){if(!h)throw Error();throw h;}; HE6=function(h){return h}; yQ=function(h){this.G=h}; g.XH=function(h){function t(q){if(L.state.status==="PENDING"){L.state={status:"REJECTED",reason:q};q=g.b(L.T);for(var z=q.next();!z.done;z=q.next())z=z.value,z()}} function Y(q){if(L.state.status==="PENDING"){L.state={status:"FULFILLED",value:q};q=g.b(L.G);for(var z=q.next();!z.done;z=q.next())z=z.value,z()}} var L=this;this.state={status:"PENDING"};this.G=[];this.T=[];h=h.G;try{h(Y,t)}catch(q){t(q)}}; w$n=function(h,t,Y,L,q){try{if(h.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var z=Y(h.state.value);z instanceof g.XH?Ux(h,t,z,L,q):L(z)}catch(V){q(V)}}; WSc=function(h,t,Y,L,q){try{if(h.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var z=Y(h.state.reason);z instanceof g.XH?Ux(h,t,z,L,q):L(z)}catch(V){q(V)}}; Ux=function(h,t,Y,L,q){t===Y?q(new TypeError("Circular promise chain detected.")):Y.then(function(z){z instanceof g.XH?Ux(h,t,z,L,q):L(z)},function(z){q(z)})}; ySD=function(h,t,Y){function L(){Y(h.error);z()} function q(){t(h.result);z()} function z(){try{h.removeEventListener("success",q),h.removeEventListener("error",L)}catch(V){}} h.addEventListener("success",q);h.addEventListener("error",L)}; X$b=function(h){return new Promise(function(t,Y){ySD(h,t,Y)})}; Cj=function(h){return new g.XH(new yQ(function(t,Y){ySD(h,t,Y)}))}; Mq=function(h,t){return new g.XH(new yQ(function(Y,L){function q(){var z=h?t(h):null;z?z.then(function(V){h=V;q()},L):Y()} q()}))}; UbL=function(h,t){this.request=h;this.cursor=t}; C33=function(h){return Cj(h).then(function(t){return t?new UbL(h,t):null})}; g.MjW=function(h){h.cursor.continue(void 0);return C33(h.request)}; FSb=function(h,t){this.G=h;this.options=t;this.transactionCount=0;this.S=Math.round((0,g.FH)());this.T=!1}; g.j4=function(h,t,Y){h=h.G.createObjectStore(t,Y);return new sx(h)}; Zb=function(h,t){h.G.objectStoreNames.contains(t)&&h.G.deleteObjectStore(t)}; g.dI=function(h,t,Y){return g.bj(h,[t],{mode:"readwrite",U3:!0},function(L){return g.oY(L.objectStore(t),Y)})}; g.bj=function(h,t,Y,L){var q,z,V,l,H,w,W,y,X,U,C,d;return g.k(function(Q){switch(Q.T){case 1:var J={mode:"readonly",U3:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Y==="string"?J.mode=Y:Object.assign(J,Y);q=J;h.transactionCount++;z=q.U3?3:1;V=0;case 2:if(l){Q.eM(4);break}V++;H=Math.round((0,g.FH)());g.oc(Q,5);w=h.G.transaction(t,q.mode);J=new GY(w);J=shW(J,L);return g.K(Q,J,7);case 7:return W=Q.G,y=Math.round((0,g.FH)()),jhp(h,H,y,V,void 0,t.join(),q),Q.return(W);case 5:X=g.cW(Q);U=Math.round((0,g.FH)()); C=wI(X,h.G.name,t.join(),h.G.version);if((d=C instanceof g.VQ&&!C.G)||V>=z)jhp(h,H,U,V,C,t.join(),q),l=C;Q.eM(2);break;case 4:return Q.return(Promise.reject(l))}})}; jhp=function(h,t,Y,L,q,z,V){t=Y-t;q?(q instanceof g.VQ&&(q.type==="QUOTA_EXCEEDED"||q.type==="QUOTA_MAYBE_EXCEEDED")&&Lj("QUOTA_EXCEEDED",{dbName:zY(h.G.name),objectStoreNames:z,transactionCount:h.transactionCount,transactionMode:V.mode}),q instanceof g.VQ&&q.type==="UNKNOWN_ABORT"&&(Y-=h.S,Y<0&&Y>=2147483648&&(Y=0),Lj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:z,transactionDuration:t,transactionCount:h.transactionCount,dbDuration:Y}),h.T=!0),ZE$(h,!1,L,z,t,V.tag),YL(q)):ZE$(h,!0,L,z,t, V.tag)}; ZE$=function(h,t,Y,L,q,z){Lj("TRANSACTION_ENDED",{objectStoreNames:L,connectionHasUnknownAbortedTransaction:h.T,duration:q,isSuccessful:t,tryCount:Y,tag:z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":z})}; sx=function(h){this.G=h}; g.QQ=function(h,t,Y){h.G.createIndex(t,Y,{unique:!1})}; bE$=function(h,t){return g.rI(h,{query:t},function(Y){return Y.delete().then(function(){return g.cq(Y)})}).then(function(){})}; o4L=function(h,t,Y){var L=[];return g.rI(h,{query:t},function(q){if(!(Y!==void 0&&L.length>=Y))return L.push(q.getValue()),g.cq(q)}).then(function(){return L})}; GU$=function(h){return"getAllKeys"in IDBObjectStore.prototype?Cj(h.G.getAllKeys(void 0,void 0)):dbL(h)}; dbL=function(h){var t=[];return g.QhL(h,{query:void 0},function(Y){t.push(Y.cursor.primaryKey);return g.MjW(Y)}).then(function(){return t})}; g.oY=function(h,t,Y){return Cj(h.G.put(t,Y))}; g.rI=function(h,t,Y){h=h.G.openCursor(t.query,t.direction);return uj(h).then(function(L){return Mq(L,Y)})}; g.QhL=function(h,t,Y){var L=t.query;t=t.direction;h="openKeyCursor"in IDBObjectStore.prototype?h.G.openKeyCursor(L,t):h.G.openCursor(L,t);return C33(h).then(function(q){return Mq(q,Y)})}; GY=function(h){var t=this;this.G=h;this.S=new Map;this.T=!1;this.done=new Promise(function(Y,L){t.G.addEventListener("complete",function(){Y()}); t.G.addEventListener("error",function(q){q.currentTarget===q.target&&L(t.G.error)}); t.G.addEventListener("abort",function(){var q=t.G.error;if(q)L(q);else if(!t.T){q=g.VQ;for(var z=t.G.objectStoreNames,V=[],l=0;l=Y))return L.push(q.getValue()),g.cq(q)}).then(function(){return L})}; g.e4=function(h,t,Y){h=h.G.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return uj(h).then(function(L){return Mq(L,Y)})}; Jq=function(h,t){this.request=h;this.cursor=t}; uj=function(h){return Cj(h).then(function(t){return t?new Jq(h,t):null})}; g.cq=function(h){h.cursor.continue(void 0);return uj(h.request)}; uun=function(h,t,Y){return new Promise(function(L,q){function z(){X||(X=new FSb(V.result,{closed:y}));return X} var V=t!==void 0?self.indexedDB.open(h,t):self.indexedDB.open(h);var l=Y.blocked,H=Y.blocking,w=Y.cab,W=Y.upgrade,y=Y.closed,X;V.addEventListener("upgradeneeded",function(U){try{if(U.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(V.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");U.dataLoss&&U.dataLoss!=="none"&&Lj("IDB_DATA_CORRUPTED",{reason:U.dataLossMessage||"unknown reason",dbName:zY(h)});var C=z(),d=new GY(V.transaction); W&&W(C,function(Q){return U.oldVersion=Q},d); d.done.catch(function(Q){q(Q)})}catch(Q){q(Q)}}); V.addEventListener("success",function(){var U=V.result;H&&U.addEventListener("versionchange",function(){H(z())}); U.addEventListener("close",function(){Lj("IDB_UNEXPECTEDLY_CLOSED",{dbName:zY(h),dbVersion:U.version});w&&w()}); L(z())}); V.addEventListener("error",function(){q(V.error)}); l&&V.addEventListener("blocked",function(){l()})})}; etb=function(h,t,Y){Y=Y===void 0?{}:Y;return uun(h,t,Y)}; pj=function(h,t){t=t===void 0?{}:t;var Y,L,q,z;return g.k(function(V){if(V.T==1)return g.oc(V,2),Y=self.indexedDB.deleteDatabase(h),L=t,(q=L.blocked)&&Y.addEventListener("blocked",function(){q()}),g.K(V,X$b(Y),4); if(V.T!=2)return g.Q6(V,0);z=g.cW(V);throw wI(z,h,"",-1);})}; vq=function(h,t){this.name=h;this.options=t;this.S=!0;this.X=this.W=0}; JS3=function(h,t){return new g.VQ("INCOMPATIBLE_DB_VERSION",{dbName:h.name,oldVersion:h.options.version,newVersion:t})}; g.Kj=function(h,t){if(!t)throw g.Wq("openWithToken",zY(h.name));return h.open()}; p$L=function(h,t){var Y;return g.k(function(L){if(L.T==1)return g.K(L,g.Kj(aY,t),2);Y=L.G;return L.return(g.bj(Y,["databases"],{U3:!0,mode:"readwrite"},function(q){var z=q.objectStore("databases");return z.get(h.actualName).then(function(V){if(V?h.actualName!==V.actualName||h.publicName!==V.publicName||h.userIdentifier!==V.userIdentifier:1)return g.oY(z,h).then(function(){})})}))})}; xL=function(h,t){var Y;return g.k(function(L){if(L.T==1)return h?g.K(L,g.Kj(aY,t),2):L.return();Y=L.G;return L.return(Y.delete("databases",h))})}; v4i=function(h,t){var Y,L;return g.k(function(q){return q.T==1?(Y=[],g.K(q,g.Kj(aY,t),2)):q.T!=3?(L=q.G,g.K(q,g.bj(L,["databases"],{U3:!0,mode:"readonly"},function(z){Y.length=0;return g.rI(z.objectStore("databases"),{},function(V){h(V.getValue())&&Y.push(V.getValue());return g.cq(V)})}),3)):q.return(Y)})}; KS$=function(h,t){return v4i(function(Y){return Y.publicName===h&&Y.userIdentifier!==void 0},t)}; azc=function(){var h,t,Y,L;return g.k(function(q){switch(q.T){case 1:h=PY();if((t=h)==null?0:t.hasSucceededOnce)return q.return(!0);if(Ex&&OA()&&!ni()||g.kL)return q.return(!1);try{if(Y=self,!(Y.indexedDB&&Y.IDBIndex&&Y.IDBKeyRange&&Y.IDBObjectStore))return q.return(!1)}catch(z){return q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return q.return(!1);g.oc(q,2);L={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.K(q,p$L(L,Ox),4);case 4:return g.K(q,xL("yt-idb-test-do-not-use",Ox),5);case 5:return q.return(!0);case 2:return g.cW(q),q.return(!1)}})}; xb6=function(){if(nj!==void 0)return nj;gI=!0;return nj=azc().then(function(h){gI=!1;var t;if((t=BY())!=null&&t.G){var Y;t={hasSucceededOnce:((Y=PY())==null?void 0:Y.hasSucceededOnce)||h};var L;(L=BY())==null||L.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return h})}; fj=function(){return g.il("ytglobal.idbToken_")||void 0}; g.$L=function(){var h=fj();return h?Promise.resolve(h):xb6().then(function(t){(t=t?Ox:void 0)&&g.t3("ytglobal.idbToken_",t);return t})}; E4n=function(h){if(!g.Oa())throw h=new g.VQ("AUTH_INVALID",{dbName:h}),YL(h),h;var t=g.kI();return{actualName:h+":"+t,publicName:h,userIdentifier:t}}; kUr=function(h,t,Y,L){var q,z,V,l,H,w;return g.k(function(W){switch(W.T){case 1:return z=(q=Error().stack)!=null?q:"",g.K(W,g.$L(),2);case 2:V=W.G;if(!V)throw l=g.Wq("openDbImpl",h,t),g.wj("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+z.substring(z.indexOf("\n")+1)),YL(l),l;qq(h);H=Y?{actualName:h,publicName:h,userIdentifier:void 0}:E4n(h);g.oc(W,3);return g.K(W,p$L(H,V),5);case 5:return g.K(W,etb(H.actualName,t,L),6);case 6:return W.return(W.G);case 3:return w=g.cW(W),g.oc(W,7),g.K(W,xL(H.actualName, V),9);case 9:g.Q6(W,8);break;case 7:g.cW(W);case 8:throw w;}})}; OE3=function(h,t,Y){Y=Y===void 0?{}:Y;return kUr(h,t,!1,Y)}; n4L=function(h,t,Y){Y=Y===void 0?{}:Y;return kUr(h,t,!0,Y)}; fzc=function(h,t){t=t===void 0?{}:t;var Y,L;return g.k(function(q){if(q.T==1)return g.K(q,g.$L(),2);if(q.T!=3){Y=q.G;if(!Y)return q.return();qq(h);L=E4n(h);return g.K(q,pj(L.actualName,t),3)}return g.K(q,xL(L.actualName,Y),0)})}; $bW=function(h,t,Y){h=h.map(function(L){return g.k(function(q){return q.T==1?g.K(q,pj(L.actualName,t),2):g.K(q,xL(L.actualName,Y),0)})}); return Promise.all(h).then(function(){})}; TsL=function(h){var t=t===void 0?{}:t;var Y,L;return g.k(function(q){if(q.T==1)return g.K(q,g.$L(),2);if(q.T!=3){Y=q.G;if(!Y)return q.return();qq(h);return g.K(q,KS$(h,Y),3)}L=q.G;return g.K(q,$bW(L,t,Y),0)})}; ASi=function(h,t){t=t===void 0?{}:t;var Y;return g.k(function(L){if(L.T==1)return g.K(L,g.$L(),2);if(L.T!=3){Y=L.G;if(!Y)return L.return();qq(h);return g.K(L,pj(h,t),3)}return g.K(L,xL(h,Y),0)})}; TY=function(h,t){vq.call(this,h,t);this.options=t;qq(h)}; S81=function(h,t){var Y;return function(){Y||(Y=new TY(h,t));return Y}}; g.Aq=function(h,t){return S81(h,t)}; S4=function(h){return g.Kj(Izn(),h)}; RtD=function(h,t,Y,L){var q,z,V;return g.k(function(l){switch(l.T){case 1:return q={config:h,hashData:t,timestamp:L!==void 0?L:(0,g.FH)()},g.K(l,S4(Y),2);case 2:return z=l.G,g.K(l,z.clear("hotConfigStore"),3);case 3:return g.K(l,g.dI(z,"hotConfigStore",q),4);case 4:return V=l.G,l.return(V)}})}; BsL=function(h,t,Y,L,q){var z,V,l;return g.k(function(H){switch(H.T){case 1:return z={config:h,hashData:t,configData:Y,timestamp:q!==void 0?q:(0,g.FH)()},g.K(H,S4(L),2);case 2:return V=H.G,g.K(H,V.clear("coldConfigStore"),3);case 3:return g.K(H,g.dI(V,"coldConfigStore",z),4);case 4:return l=H.G,H.return(l)}})}; P3$=function(h){var t,Y;return g.k(function(L){return L.T==1?g.K(L,S4(h),2):L.T!=3?(t=L.G,Y=void 0,g.K(L,g.bj(t,["coldConfigStore"],{mode:"readwrite",U3:!0},function(q){return g.e4(q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(z){Y=z.getValue()})}),3)):L.return(Y)})}; mbp=function(h){var t,Y;return g.k(function(L){return L.T==1?g.K(L,S4(h),2):L.T!=3?(t=L.G,Y=void 0,g.K(L,g.bj(t,["hotConfigStore"],{mode:"readwrite",U3:!0},function(q){return g.e4(q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(z){Y=z.getValue()})}),3)):L.return(Y)})}; Db6=function(){return g.k(function(h){return g.K(h,TsL("ytGcfConfig"),0)})}; IY=function(){g.O.call(this);this.T=[];this.G=[];var h=g.il("yt.gcf.config.hotUpdateCallbacks");h?(this.T=[].concat(g.p(h)),this.G=h):(this.G=[],g.t3("yt.gcf.config.hotUpdateCallbacks",this.G))}; hn=function(){var h=this;this.X=!1;this.S=this.W=0;this.U=new IY;this.zD={C9P:function(){h.X=!0}, XL_:function(){return h.G}, Yo0:function(t){RY(h,t)}, NQ:function(t){h.NQ(t)}, Vs0:function(t){Bq(h,t)}, D8:function(){return h.coldHashData}, F1:function(){return h.hotHashData}, dPP:function(){return h.T}, Og8:function(){return Pq()}, rv5:function(){return mP()}, Vz_:function(){return g.il("yt.gcf.config.coldHashData")}, yv_:function(){return g.il("yt.gcf.config.hotHashData")}, Pu0:function(){hz6(h)}, pw0:function(){h.NQ(void 0);Db(h);delete hn.instance}, v20:function(t){h.S=t}, lp8:function(){return h.S}}}; tl$=function(){if(!hn.instance){var h=new hn;hn.instance=h}return hn.instance}; YB1=function(h){var t;g.k(function(Y){if(Y.T==1)return g.wj("start_client_gcf")||g.wj("delete_gcf_config_db")?g.wj("start_client_gcf")?g.K(Y,g.$L(),3):Y.eM(2):Y.return();Y.T!=2&&((t=Y.G)&&g.Oa()&&!g.wj("delete_gcf_config_db")?(h.X=!0,hz6(h)):(iSr(h),g1$(h)));return g.wj("delete_gcf_config_db")?g.K(Y,Db6(),0):Y.eM(0)})}; tn=function(){var h;return(h=mP())!=null?h:g.Ey("RAW_HOT_CONFIG_GROUP")}; LKL=function(h){var t,Y,L,q,z,V;return g.k(function(l){switch(l.T){case 1:if(h.T)return l.return(mP());if(!h.X)return t=g.Wq("getHotConfig IDB not initialized"),$5(t),l.return(Promise.reject(t));Y=fj();L=g.Ey("TIME_CREATED_MS");if(!Y){q=g.Wq("getHotConfig token error");$5(q);l.eM(2);break}return g.K(l,mbp(Y),3);case 3:if((z=l.G)&&z.timestamp>L)return RY(h,z.config),h.NQ(z.hashData),l.return(mP());case 2:g1$(h);if(!(Y&&h.T&&h.hotHashData)){l.eM(4);break}return g.K(l,RtD(h.T,h.hotHashData,Y,L),4);case 4:return h.T? l.return(mP()):(V=new g.Ea("Config not available in ytConfig"),$5(V),l.return(Promise.reject(V)))}})}; zzr=function(h){var t,Y,L,q,z,V;return g.k(function(l){switch(l.T){case 1:if(h.G)return l.return(Pq());if(!h.X)return t=g.Wq("getColdConfig IDB not initialized"),$5(t),l.return(Promise.reject(t));Y=fj();L=g.Ey("TIME_CREATED_MS");if(!Y){q=g.Wq("getColdConfig");$5(q);l.eM(2);break}return g.K(l,P3$(Y),3);case 3:if((z=l.G)&&z.timestamp>L)return Bq(h,z.config),qBr(h,z.configData),Db(h,z.hashData),l.return(Pq());case 2:iSr(h);if(!(Y&&h.G&&h.coldHashData&&h.configData)){l.eM(4);break}return g.K(l,BsL(h.G, h.coldHashData,h.configData,Y,L),4);case 4:return h.G?l.return(Pq()):(V=new g.Ea("Config not available in ytConfig"),$5(V),l.return(Promise.reject(V)))}})}; hz6=function(h){if(!h.T||!h.G){if(!fj()){var t=g.Wq("scheduleGetConfigs");$5(t)}h.W||(h.W=g.JS.yC(function(){return g.k(function(Y){switch(Y.T){case 1:return g.oc(Y,2),g.K(Y,LKL(h),4);case 4:g.Q6(Y,3);break;case 2:g.cW(Y);case 3:return g.oc(Y,5),g.K(Y,zzr(h),7);case 7:g.Q6(Y,6);break;case 5:g.cW(Y);case 6:h.W&&(h.W=0),g.Z$(Y)}})},100))}}; VlL=function(h,t,Y){var L,q,z;return g.k(function(V){switch(V.T){case 1:if(!g.wj("start_client_gcf")){V.eM(0);break}Y&&RY(h,Y);h.NQ(t);L=fj();if(!L){V.eM(3);break}if(Y){V.eM(4);break}return g.K(V,mbp(L),5);case 5:q=V.G,Y=(z=q)==null?void 0:z.config;case 4:return g.K(V,RtD(Y,t,L),3);case 3:if(Y)for(var l=Y,H=g.b(h.U.G),w=H.next();!w.done;w=H.next())w=w.value,w(l);g.Z$(V)}})}; N$L=function(h,t,Y){var L,q,z,V;return g.k(function(l){if(l.T==1){if(!g.wj("start_client_gcf"))return l.eM(0);Db(h,t);return(L=fj())?Y?l.eM(4):g.K(l,P3$(L),5):l.eM(0)}l.T!=4&&(q=l.G,Y=(z=q)==null?void 0:z.config);if(!Y)return l.eM(0);V=Y.configData;return g.K(l,BsL(Y,t,V,L),0)})}; lWL=function(){var h=tl$(),t=(0,g.FH)()-h.S;if(!(h.S!==0&&t0&&(t.request={internalExperimentFlags:Y});wML(h,void 0,t);WKL(void 0,t);ypn(void 0,t);XMr(h,void 0,t);Uzi(void 0,t);g.wj("start_client_gcf")&&CAn(void 0,t);g.Ey("DELEGATED_SESSION_ID")&& !g.wj("pageid_as_header_web")&&(t.user={onBehalfOfUser:g.Ey("DELEGATED_SESSION_ID")});!g.wj("fill_delegate_context_in_gel_killswitch")&&(h=g.Ey("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:h}));h=g.Ey("INNERTUBE_CONTEXT");var L;if(g.wj("enable_persistent_device_token")&&(h==null?0:(L=h.client)==null?0:L.rolloutToken)){var q;t.client.rolloutToken=h==null?void 0:(q=h.client)==null?void 0:q.rolloutToken}L=Object;q=L.assign;h=t.client; Y={};for(var z=g.b(Object.entries(SR(g.Ey("DEVICE","")))),V=z.next();!V.done;V=z.next()){var l=g.b(V.value);V=l.next().value;l=l.next().value;V==="cbrand"?Y.deviceMake=l:V==="cmodel"?Y.deviceModel=l:V==="cbr"?Y.browserName=l:V==="cbrver"?Y.browserVersion=l:V==="cos"?Y.osName=l:V==="cosver"?Y.osVersion=l:V==="cplatform"&&(Y.platform=l)}t.client=q.call(L,h,Y);return t}; wML=function(h,t,Y){h=h.Ot;if(h==="WEB"||h==="MWEB"||h===1||h===2)if(t){Y=Cd(t,Fk,96)||new Fk;var L=cY();L=Object.keys(MlD).indexOf(L);L=L===-1?null:L;L!==null&&Kd(Y,3,L);bm(t,Fk,96,Y)}else Y&&(Y.client.mainAppWebInfo=(L=Y.client.mainAppWebInfo)!=null?L:{},Y.client.mainAppWebInfo.webDisplayMode=cY())}; WKL=function(h,t){var Y=g.il("yt.embedded_player.embed_url");Y&&(h?(t=Cd(h,op,7)||new op,pd(t,4,Y),bm(h,op,7,t)):t&&(t.thirdParty={embedUrl:Y}))}; ypn=function(h,t){var Y;if(g.wj("web_log_memory_total_kbytes")&&((Y=g.D$.navigator)==null?0:Y.deviceMemory)){var L;Y=(L=g.D$.navigator)==null?void 0:L.deviceMemory;h?DB(h,95,jh(Y*1E6)):t&&(t.client.memoryTotalKbytes=""+Y*1E6)}}; XMr=function(h,t,Y){if(h.appInstallData)if(t){var L;Y=(L=Cd(t,Mu,62))!=null?L:new Mu;pd(Y,6,h.appInstallData);bm(t,Mu,62,Y)}else Y&&(Y.client.configInfo=Y.client.configInfo||{},Y.client.configInfo.appInstallData=h.appInstallData)}; Uzi=function(h,t){var Y=tjL();Y&&(h?Kd(h,61,FKc[Y]):t&&(t.client.connectionType=Y));g.wj("web_log_effective_connection_type")&&(Y=g46())&&(h?Kd(h,94,son[Y]):t&&(t.client.effectiveConnectionType=Y))}; jor=function(h,t,Y){Y=Y===void 0?{}:Y;var L={};g.Ey("EOM_VISITOR_DATA")?L={"X-Goog-EOM-Visitor-Id":g.Ey("EOM_VISITOR_DATA")}:L={"X-Goog-Visitor-Id":Y.visitorData||g.Ey("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return L;t=Y.Cu||g.Ey("AUTHORIZATION");t||(h?t="Bearer "+g.il("gapi.auth.getToken")().access_token:(h=R_p().GL(LN),g.wj("pageid_as_header_web")||delete h["X-Goog-PageId"],L=Object.assign({},L,h)));t&&(L.Authorization=t);return L}; CAn=function(h,t){var Y=lWL();if(Y){var L=Y.coldConfigData,q=Y.coldHashData;Y=Y.hotHashData;if(h){var z;t=(z=Cd(h,Mu,62))!=null?z:new Mu;L=pd(t,1,L);pd(L,3,q).NQ(Y);bm(h,Mu,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},L&&(t.client.configInfo.coldConfigData=L),q&&(t.client.configInfo.coldHashData=q),Y&&(t.client.configInfo.hotHashData=Y))}}; qP=function(h,t){this.version=h;this.args=t}; zg=function(h,t){this.topic=h;this.G=t}; NP=function(h,t){var Y=VJ();Y&&Y.publish.call(Y,h.toString(),h,t)}; o16=function(h){var t=ZSn,Y=VJ();if(!Y)return 0;var L=Y.subscribe(t.toString(),function(q,z){var V=g.il("ytPubsub2Pubsub2SkipSubKey");V&&V==L||(V=function(){if(lN[L])try{if(z&&t instanceof zg&&t!=q)try{var l=t.G,H=z;if(!H.args||!H.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.T2){var w=new l;l.T2=w.version}var W=l.T2}catch(y){}if(!W||H.version!=W)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{z=Reflect.construct(l, g.ul(H.args))}catch(y){throw y.message="yt.pubsub2.Data.deserialize(): "+y.message,y;}}catch(y){throw y.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+t.toString()+": "+y.message,y;}h.call(window,z)}catch(y){g.n$(y)}},bSL[t.toString()]?g.Sq()?g.JS.yC(V):g.zz(V,0):V())}); lN[L]=!0;He[t.toString()]||(He[t.toString()]=[]);He[t.toString()].push(L);return L}; Qop=function(){var h=dzr,t=o16(function(Y){h.apply(void 0,arguments);Gbr(t)}); return t}; Gbr=function(h){var t=VJ();t&&(typeof h==="number"&&(h=[h]),g.B1(h,function(Y){t.unsubscribeByKey(Y);delete lN[Y]}))}; VJ=function(){return g.il("ytPubsub2Pubsub2Instance")}; wd=function(h,t,Y){Y=Y===void 0?{sampleRate:.1}:Y;Math.random()pMi||V=xz3&&(ZE++,g.wj("abandon_compression_after_N_slow_zips")?js===g.W2("compression_disable_point")&&ZE>E16&&(MP=!1):MP=!1);kbL(t);L.headers||(L.headers={});L.headers["Content-Encoding"]="gzip";L.postBody=h;L.postParams=void 0;q(Y,L)}; OSL=function(h){var t=t===void 0?!1:t;var Y=Y===void 0?!1:Y;var L=(0,g.FH)(),q={startTime:L,ticks:{},infos:{}},z=t?g.il("yt.logging.gzipForFetch",!1):!0;if(MP&&z){if(!h.body)return h;try{var V=Y?h.body:typeof h.body==="string"?h.body:JSON.stringify(h.body);z=V;if(!Y&&typeof V==="string"){var l=JpL(V);if(l!=null&&(l>pMi||l=xz3)if(ZE++,g.wj("abandon_compression_after_N_slow_zips")||g.wj("abandon_compression_after_N_slow_zips_lr")){t=ZE/js;var w=E16/g.W2("compression_disable_point");js>0&&js%g.W2("compression_disable_point")===0&&t>=w&&(MP=!1)}else MP=!1;kbL(q)}}h.headers=Object.assign({},{"Content-Encoding":"gzip"},h.headers||{});h.body=z;return h}catch(W){return $5(W),h}}else return h}; JpL=function(h){try{return(new Blob(h.split(""))).size}catch(t){return $5(t),null}}; kbL=function(h){g.wj("gel_compression_csi_killswitch")||!g.wj("log_gel_compression_latency")&&!g.wj("log_gel_compression_latency_lr")||wd("gel_compression",h,{sampleRate:.1})}; o_=function(h){var t=this;this.td=this.G=!1;this.potentialEsfErrorCounter=this.T=0;this.handleError=function(){}; this.iO=function(){}; this.now=Date.now;this.d8=!1;this.zD={yK0:function(W){t.iR=W}, xB5:function(){t.kp()}, iK:function(){t.WH()}, vn:function(W){return g.k(function(y){return g.K(y,t.vn(W),0)})}, jB:function(W,y){return t.jB(W,y)}, tR:function(){t.tR()}}; var Y;this.bd=(Y=h.bd)!=null?Y:100;var L;this.tE=(L=h.tE)!=null?L:1;var q;this.Ff=(q=h.Ff)!=null?q:2592E6;var z;this.Ht=(z=h.Ht)!=null?z:12E4;var V;this.wC=(V=h.wC)!=null?V:5E3;var l;this.iR=(l=h.iR)!=null?l:void 0;this.Cd=!!h.Cd;var H;this.Rs=(H=h.Rs)!=null?H:.1;var w;this.Xb=(w=h.Xb)!=null?w:10;h.handleError&&(this.handleError=h.handleError);h.iO&&(this.iO=h.iO);h.d8&&(this.d8=h.d8);h.td&&(this.td=h.td);this.I0=h.I0;this.Bu=h.Bu;this.Yj=h.Yj;this.Q2=h.Q2;this.sendFn=h.sendFn;this.C9=h.C9;this.Oe= h.Oe;bN(this)&&(!this.I0||this.I0("networkless_logging"))&&n1W(this)}; n1W=function(h){bN(h)&&!h.d8&&(h.G=!0,h.Cd&&Math.random()<=h.Rs&&h.Yj.qT(h.iR),h.tR(),h.Q2.zZ()&&h.kp(),h.Q2.listen(h.C9,h.kp.bind(h)),h.Q2.listen(h.Oe,h.WH.bind(h)))}; T$n=function(h,t){if(!bN(h))throw Error("IndexedDB is not supported: updateRequestHandlers");var Y=t.options.onError?t.options.onError:function(){}; t.options.onError=function(q,z){var V,l,H,w;return g.k(function(W){switch(W.T){case 1:V=fWp(z);(l=$zb(z))&&h.I0&&h.I0("web_enable_error_204")&&h.handleError(Error("Request failed due to compression"),t.url,z);if(!(h.I0&&h.I0("nwl_consider_error_code")&&V||h.I0&&!h.I0("nwl_consider_error_code")&&h.potentialEsfErrorCounter<=h.Xb)){W.eM(2);break}if(!h.Q2.AX){W.eM(3);break}return g.K(W,h.Q2.AX(),3);case 3:if(h.Q2.zZ()){W.eM(2);break}Y(q,z);if(!h.I0||!h.I0("nwl_consider_error_code")||((H=t)==null?void 0: H.id)===void 0){W.eM(6);break}return g.K(W,h.Yj.RU(t.id,h.iR,!1),6);case 6:return W.return();case 2:if(h.I0&&h.I0("nwl_consider_error_code")&&!V&&h.potentialEsfErrorCounter>h.Xb)return W.return();h.potentialEsfErrorCounter++;if(((w=t)==null?void 0:w.id)===void 0){W.eM(8);break}return t.sendCount=400&&h<=599?!1:!0}; $zb=function(h){var t;h=h==null?void 0:(t=h.error)==null?void 0:t.code;return!(h!==400&&h!==415)}; Ap6=function(){if(Gg)return Gg();var h={};Gg=g.Aq("LogsDatabaseV2",{MQ:(h.LogsRequestsStore={Sm:2},h),shared:!1,upgrade:function(t,Y,L){Y(2)&&g.j4(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Y(3);Y(5)&&(L=L.objectStore("LogsRequestsStore"),L.G.indexNames.contains("newRequest")&&L.G.deleteIndex("newRequest"),g.QQ(L,"newRequestV2",["status","interface","timestamp"]));Y(7)&&Zb(t,"sapisid");Y(9)&&Zb(t,"SWHealthLog")}, version:9});return Gg()}; QJ=function(h){return g.Kj(Ap6(),h)}; IW$=function(h,t){var Y,L,q,z;return g.k(function(V){if(V.T==1)return Y={startTime:(0,g.FH)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.K(V,QJ(t),2);if(V.T!=3)return L=V.G,q=Object.assign({},h,{options:JSON.parse(JSON.stringify(h.options)),interface:g.Ey("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.K(V,g.dI(L,"LogsRequestsStore",q),3);z=V.G;Y.ticks.tc=(0,g.FH)();SBb(Y);return V.return(z)})}; RzL=function(h,t){var Y,L,q,z,V,l,H,w;return g.k(function(W){if(W.T==1)return Y={startTime:(0,g.FH)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.K(W,QJ(t),2);if(W.T!=3)return L=W.G,q=g.Ey("INNERTUBE_CONTEXT_CLIENT_NAME",0),z=[h,q,0],V=[h,q,(0,g.FH)()],l=IDBKeyRange.bound(z,V),H="prev",g.wj("use_fifo_for_networkless")&&(H="next"),w=void 0,g.K(W,g.bj(L,["LogsRequestsStore"],{mode:"readwrite",U3:!0},function(y){return g.e4(y.objectStore("LogsRequestsStore").index("newRequestV2"), {query:l,direction:H},function(X){X.getValue()&&(w=X.getValue(),h==="NEW"&&(w.status="QUEUED",X.update(w)))})}),3); Y.ticks.tc=(0,g.FH)();SBb(Y);return W.return(w)})}; B$i=function(h,t){var Y;return g.k(function(L){if(L.T==1)return g.K(L,QJ(t),2);Y=L.G;return L.return(g.bj(Y,["LogsRequestsStore"],{mode:"readwrite",U3:!0},function(q){var z=q.objectStore("LogsRequestsStore");return z.get(h).then(function(V){if(V)return V.status="QUEUED",g.oY(z,V).then(function(){return V})})}))})}; PAp=function(h,t,Y,L){Y=Y===void 0?!0:Y;var q;return g.k(function(z){if(z.T==1)return g.K(z,QJ(t),2);q=z.G;return z.return(g.bj(q,["LogsRequestsStore"],{mode:"readwrite",U3:!0},function(V){var l=V.objectStore("LogsRequestsStore");return l.get(h).then(function(H){return H?(H.status="NEW",Y&&(H.sendCount+=1),L!==void 0&&(H.options.compress=L),g.oY(l,H).then(function(){return H})):g.XH.resolve(void 0)})}))})}; mzn=function(h,t){var Y;return g.k(function(L){if(L.T==1)return g.K(L,QJ(t),2);Y=L.G;return L.return(Y.delete("LogsRequestsStore",h))})}; Dz$=function(h){var t,Y;return g.k(function(L){if(L.T==1)return g.K(L,QJ(h),2);t=L.G;Y=(0,g.FH)()-2592E6;return g.K(L,g.bj(t,["LogsRequestsStore"],{mode:"readwrite",U3:!0},function(q){return g.rI(q.objectStore("LogsRequestsStore"),{},function(z){if(z.getValue().timestamp<=Y)return z.delete().then(function(){return g.cq(z)})})}),0)})}; hYW=function(){g.k(function(h){return g.K(h,TsL("LogsDatabaseV2"),0)})}; SBb=function(h){g.wj("nwl_csi_killswitch")||wd("networkless_performance",h,{sampleRate:1})}; i$L=function(h){return g.Kj(tRn(),h)}; g5D=function(h){var t,Y;g.k(function(L){if(L.T==1)return g.K(L,i$L(h),2);t=L.G;Y=(0,g.FH)()-2592E6;return g.K(L,g.bj(t,["SWHealthLog"],{mode:"readwrite",U3:!0},function(q){return g.rI(q.objectStore("SWHealthLog"),{},function(z){if(z.getValue().timestamp<=Y)return z.delete().then(function(){return g.cq(z)})})}),0)})}; Yy1=function(h){var t;return g.k(function(Y){if(Y.T==1)return g.K(Y,i$L(h),2);t=Y.G;return g.K(Y,t.clear("SWHealthLog"),0)})}; g.rd=function(h,t,Y,L,q,z,V){q=q===void 0?"":q;z=z===void 0?!1:z;V=V===void 0?!1:V;if(h)if(Y&&!g.xT())$5(new g.Ea("Legacy referrer-scrubbed ping detected")),h&&LiL(h,void 0,{scrubReferrer:!0});else if(q)UA(h,t,"POST",q,L);else if(g.Ey("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||L||V)UA(h,t,"GET","",L,void 0,z,V);else{b:{try{c:{var l=new dQW({url:h});if(l.G.dsh==="1")var H=null;else{var w=l.G.ae;if(w==="1"){var W=l.G.adurl;if(W)try{H={version:3,Vk:decodeURIComponent(W),V0:T_(l.T,"act=1","ri=1",G3c(l))}; break c}catch(U){}}H=w==="2"?{version:4,Vk:T_(l.T,"dct=1","suid="+l.S,""),V0:T_(l.T,"act=1","ri=1","suid="+l.S)}:null}}if(H){var y=Nw(h);var X=!(!y||!y.endsWith("/aclk")||sM(h,"ri")!=="1");break b}}catch(U){}X=!1}X?qy6(h)?(t&&t(),Y=!0):Y=!1:Y=!1;Y||LiL(h,t)}}; qy6=function(h,t){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(h,t===void 0?"":t))return!0}catch(Y){}return!1}; LiL=function(h,t,Y){Y=Y===void 0?{}:Y;var L=new Image,q=""+zYr++;ce[q]=L;L.onload=L.onerror=function(){t&&ce[q]&&t();delete ce[q]}; Y.scrubReferrer&&(L.referrerPolicy="no-referrer");L.src=h}; VR6=function(h){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?h+"&nis=6":h+"&nis=5"}; es=function(){uN||(uN=new Rz("yt.offline"));return uN}; N0L=function(h){if(g.wj("offline_error_handling")){var t=es().get("errors",!0)||{};t[h.message]={name:h.name,stack:h.stack};h.level&&(t[h.message].level=h.level);es().set("errors",t,2592E3,!0)}}; Jn=function(){this.G=new Map;this.T=!1}; pN=function(){if(!Jn.instance){var h=g.il("yt.networkRequestMonitor.instance")||new Jn;g.t3("yt.networkRequestMonitor.instance",h);Jn.instance=h}return Jn.instance}; ve=function(){g.Vm.call(this);var h=this;this.T=!1;this.G=ZXD();this.G.listen("networkstatus-online",function(){if(h.T&&g.wj("offline_error_handling")){var t=es().get("errors",!0);if(t){for(var Y in t)if(t[Y]){var L=new g.Ea(Y,"sent via offline_errors");L.name=t[Y].name;L.stack=t[Y].stack;L.level=t[Y].level;g.n$(L)}es().set("errors",{},2592E3,!0)}}})}; lF6=function(){if(!ve.instance){var h=g.il("yt.networkStatusManager.instance")||new ve;g.t3("yt.networkStatusManager.instance",h);ve.instance=h}return ve.instance}; g.KN=function(h){h=h===void 0?{}:h;g.Vm.call(this);var t=this;this.G=this.W=0;this.T=lF6();var Y=g.il("yt.networkStatusManager.instance.listen").bind(this.T);Y&&(h.rateLimit?(this.rateLimit=h.rateLimit,Y("networkstatus-online",function(){H$D(t,"publicytnetworkstatus-online")}),Y("networkstatus-offline",function(){H$D(t,"publicytnetworkstatus-offline")})):(Y("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),Y("networkstatus-offline",function(){t.dispatchEvent("publicytnetworkstatus-offline")})))}; H$D=function(h,t){h.rateLimit?h.G?(g.JS.ou(h.W),h.W=g.JS.yC(function(){h.S!==t&&(h.dispatchEvent(t),h.S=t,h.G=(0,g.FH)())},h.rateLimit-((0,g.FH)()-h.G))):(h.dispatchEvent(t),h.S=t,h.G=(0,g.FH)()):h.dispatchEvent(t)}; xC=function(){var h=o_.call;a_||(a_=new g.KN({bVe:!0,i1Q:!0}));h.call(o_,this,{Yj:{qT:Dz$,ea:mzn,RE:RzL,Jh:B$i,RU:PAp,set:IW$},Q2:a_,handleError:function(t,Y,L){var q,z=L==null?void 0:(q=L.error)==null?void 0:q.code;if(z===400||z===415){var V;t=new g.Ea(t.message,Y,L==null?void 0:(V=L.error)==null?void 0:V.code);$5(t,void 0,void 0,void 0,!0)}else g.n$(t)}, iO:$5,sendFn:wBi,now:g.FH,Lc:N0L,Bu:g.AG(),C9:"publicytnetworkstatus-online",Oe:"publicytnetworkstatus-offline",Cd:!0,Rs:.1,Xb:g.W2("potential_esf_error_limit",10),I0:g.wj,d8:!(g.Oa()&&g.VC(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.zJ;g.wj("networkless_immediately_drop_all_requests")&&hYW();ASi("LogsDatabaseV2")}; Eo=function(){var h=g.il("yt.networklessRequestController.instance");h||(h=new xC,g.t3("yt.networklessRequestController.instance",h),g.wj("networkless_logging")&&g.$L().then(function(t){h.iR=t;n1W(h);h.S.resolve();h.Cd&&Math.random()<=h.Rs&&h.iR&&g5D(h.iR);g.wj("networkless_immediately_drop_sw_health_store")&&WiW(h)})); return h}; WiW=function(h){var t;g.k(function(Y){if(!h.iR)throw t=g.Wq("clearSWHealthLogsDb"),t;return Y.return(Yy1(h.iR).catch(function(L){h.handleError(L)}))})}; wBi=function(h,t,Y,L){L=L===void 0?!1:L;t=g.wj("web_fp_via_jspb")?Object.assign({},t):t;g.wj("use_cfr_monitor")&&yTb(h,t);if(g.wj("use_request_time_ms_header"))t.headers&&mi(h)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.FH)())));else{var q;if((q=t.postParams)==null?0:q.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,g.FH)())}Y&&Object.keys(t).length===0?g.rd(h):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),so(h,t.postBody, t,g.Ci,L)):so(h,JSON.stringify(t.postParams),t,Mc,L):g.Ci(h,t)}; kC=function(h,t){g.wj("use_event_time_ms_header")&&mi(h)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.FH)())));return t}; yTb=function(h,t){var Y=t.onError?t.onError:function(){}; t.onError=function(q,z){pN().requestComplete(h,!1);Y(q,z)}; var L=t.onSuccess?t.onSuccess:function(){}; t.onSuccess=function(q,z){pN().requestComplete(h,!0);L(q,z)}}; g.Oo=function(h){this.config_=null;h?this.config_=h:HSc()&&(this.config_=g.iN())}; g.nN=function(h,t,Y,L){function q(w){try{if((w===void 0?0:w)&&L.retry&&!L.networklessOptions.bypassNetworkless)z.method="POST",L.networklessOptions.writeThenSend?Eo().writeThenSend(H,z):Eo().sendAndWrite(H,z);else if(L.compress){var W=!L.networklessOptions.writeThenSend;if(z.postBody){var y=z.postBody;typeof y!=="string"&&(y=JSON.stringify(z.postBody));so(H,y,z,g.Ci,W)}else so(H,JSON.stringify(z.postParams),z,Mc,W)}else g.wj("web_all_payloads_via_jspb")?g.Ci(H,z):Mc(H,z)}catch(X){if(X.name==="InvalidAccessError")$5(Error("An extension is blocking network request.")); else throw X;}} !g.Ey("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&$5(new g.Ea("Missing VISITOR_DATA when sending innertube request.",t,Y,L));if(!h.isReady())throw h=new g.Ea("innertube xhrclient not ready",t,Y,L),g.n$(h),h;var z={headers:L.headers||{},method:"POST",postParams:Y,postBody:L.postBody,postBodyFormat:L.postBodyFormat||"JSON",onTimeout:function(){L.onTimeout()}, onFetchTimeout:L.onTimeout,onSuccess:function(w,W){if(L.onSuccess)L.onSuccess(W)}, onFetchSuccess:function(w){if(L.onSuccess)L.onSuccess(w)}, onError:function(w,W){if(L.onError)L.onError(W)}, onFetchError:function(w){if(L.onError)L.onError(w)}, timeout:L.timeout,withCredentials:!0,compress:L.compress};z.headers["Content-Type"]||(z.headers["Content-Type"]="application/json");Y="";var V=h.config_.xz;V&&(Y=V);V=h.config_.oA||!1;var l=jor(V,Y,L);Object.assign(z.headers,l);z.headers.Authorization&&!Y&&V&&(z.headers["x-origin"]=window.location.origin);var H=BB(""+Y+("/youtubei/"+h.config_.innertubeApiVersion+"/"+t),{alt:"json"});g.il("ytNetworklessLoggingInitializationOptions")&&XBL.isNwlInitialized?xb6().then(function(w){q(w)}):q(!1)}; g.Ss=function(h,t,Y){var L=g.fN();if(L&&t){var q=L.subscribe(h,function(){function z(){$C[q]&&t.apply&&typeof t.apply=="function"&&t.apply(Y||window,V)} var V=arguments;try{g.Tg[h]?z():g.zz(z,0)}catch(l){g.n$(l)}},Y); $C[q]=!0;An[h]||(An[h]=[]);An[h].push(q);return q}return 0}; UuD=function(h){var t=g.Ss("LOGGED_IN",function(Y){h.apply(void 0,arguments);g.I_(t)})}; g.I_=function(h){var t=g.fN();t&&(typeof h==="number"?h=[h]:typeof h==="string"&&(h=[parseInt(h,10)]),g.B1(h,function(Y){t.unsubscribeByKey(Y);delete $C[Y]}))}; g.R_=function(h,t){var Y=g.fN();return Y?Y.publish.apply(Y,arguments):!1}; MRL=function(h){var t=g.fN();if(t)if(t.clear(h),h)CbL(h);else for(var Y in An)CbL(Y)}; g.fN=function(){return g.D$.ytPubsubPubsubInstance}; CbL=function(h){An[h]&&(h=An[h],g.B1(h,function(t){$C[t]&&delete $C[t]}),h.length=0)}; g.Be=function(h,t,Y){Fi6(h,t,Y===void 0?null:Y)}; Fi6=function(h,t,Y){Y=Y===void 0?null:Y;var L=spL(h),q=document.getElementById(L),z=q&&pmD(q),V=q&&!z;z?t&&t():(t&&(z=g.Ss(L,t),t=""+g.zs(t),jpr[t]=z),V||(q=Z$r(h,L,function(){pmD(q)||(JgL(q),g.R_(L),g.zz(function(){MRL(L)},0))},Y)))}; Z$r=function(h,t,Y,L){L=L===void 0?null:L;var q=g.y_("SCRIPT");q.id=t;q.onload=function(){Y&&setTimeout(Y,0)}; q.onreadystatechange=function(){switch(q.readyState){case "loaded":case "complete":q.onload()}}; L&&q.setAttribute("nonce",L);g.je(q,g.Uy(h));h=document.getElementsByTagName("head")[0]||document.body;h.insertBefore(q,h.firstChild);return q}; spL=function(h){var t=document.createElement("a");g.Hz(t,h);h=t.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+p0(h)}; Pe=function(h,t){if(h===t)h=!0;else if(Array.isArray(h)&&Array.isArray(t))h=g.Iv(h,t,Pe);else if(g.LH(h)&&g.LH(t))a:if(g.Nn(h).length!=g.Nn(t).length)h=!1;else{for(var Y in h)if(!Pe(h[Y],t[Y])){h=!1;break a}h=!0}else h=!1;return h}; YF=function(h){var t=g.OL.apply(1,arguments);if(!mE(h)||t.some(function(L){return!mE(L)}))throw Error("Only objects may be merged."); t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next())DE(h,Y.value)}; DE=function(h,t){for(var Y in t)if(mE(t[Y])){if(Y in h&&!mE(h[Y]))throw Error("Cannot merge an object into a non-object.");Y in h||(h[Y]={});DE(h[Y],t[Y])}else if(Lx(t[Y])){if(Y in h&&!Lx(h[Y]))throw Error("Cannot merge an array into a non-array.");Y in h||(h[Y]=[]);b$c(h[Y],t[Y])}else h[Y]=t[Y];return h}; b$c=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next())Y=Y.value,mE(Y)?h.push(DE({},Y)):Lx(Y)?h.push(b$c([],Y)):h.push(Y);return h}; mE=function(h){return typeof h==="object"&&!Array.isArray(h)}; Lx=function(h){return typeof h==="object"&&Array.isArray(h)}; qe=function(h){g.O.call(this);this.T=h}; zd=function(h){qe.call(this,!0);this.G=h}; VG=function(h,t){g.O.call(this);var Y=this;this.S=[];this.C=!1;this.T=0;this.X=this.U=this.W=!1;this.AQ=null;var L=(0,g.Vv)(h,t);this.G=new g.nE(function(){return L(Y.AQ)},300); g.f(this,this.G);this.L=this.Y=Infinity}; o5L=function(h,t){if(!t)return!1;for(var Y=0;Y-1)throw Error("Deps cycle for: "+t);if(h.T.has(t))return h.T.get(t);if(!h.G.has(t)){if(L)return;throw Error("No provider for: "+t);}L=h.G.get(t);Y.push(t);if(L.rh!==void 0)var q=L.rh;else if(L.bCe)q=L[sP]?rT6(h,L[sP],Y):[],q=L.bCe.apply(L,g.p(q));else if(L.VL){q=L.VL;var z=q[sP]?rT6(h,q[sP],Y):[];q=new (Function.prototype.bind.apply(q,[null].concat(g.p(z))))}else throw Error("Could not resolve providers for: "+t);Y.pop();L.LR8||h.T.set(t,q); return q}; rT6=function(h,t,Y){return t?t.map(function(L){return L instanceof Cx?jM(h,L.key,Y,!0):jM(h,L,Y)}):[]}; bS=function(){Zk||(Zk=new QpL);return Zk}; dr=function(){var h,t;return"h5vcc"in oP&&((h=oP.h5vcc.traceEvent)==null?0:h.traceBegin)&&((t=oP.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in oP&&oP.performance.mark&&oP.performance.measure?2:0}; Gd=function(h){var t=dr();switch(t){case 1:oP.h5vcc.traceEvent.traceBegin("YTLR",h);break;case 2:oP.performance.mark(h+"-start");break;case 0:break;default:wk(t,"unknown trace type")}}; cTb=function(h){var t=dr();switch(t){case 1:oP.h5vcc.traceEvent.traceEnd("YTLR",h);break;case 2:t=h+"-start";var Y=h+"-end";oP.performance.mark(Y);oP.performance.measure(h,t,Y);break;case 0:break;default:wk(t,"unknown trace type")}}; ukD=function(h){var t,Y;(Y=(t=window).onerror)==null||Y.call(t,h.message,"",0,0,h)}; eY1=function(h){var t=this;var Y=Y===void 0?0:Y;var L=L===void 0?g.AG():L;this.S=Y;this.scheduler=L;this.T=new g.zJ;this.G=h;for(h={OT:0};h.OT=1E3?q():L>=h?P3||(P3=mY(function(){q();P3=void 0},0)):z-l>=10&&(RYL(t,Y.tier),V.W=z)}; $uD=function(h,t){if(h.endpoint==="log_event"){g.wj("more_accurate_gel_parser")&&nx().storePayload({isJspb:!1},h.payload);$F(h);var Y=Td(h),L=new Map;L.set(Y,[h.payload]);var q=O$1(h.payload)||"";t&&(RP=new t);return new g.oR(function(z,V){RP&&RP.isReady()?B06(L,RP,z,V,{bypassNetworkless:!0},!0,SM(q)):z()})}}; Sy3=function(h,t,Y){if(t.endpoint==="log_event"){$F(void 0,t);var L=Td(t,!0),q=new Map;q.set(L,[OV(t.payload)]);Y&&(RP=new Y);return new g.oR(function(z){RP&&RP.isReady()?PbL(q,RP,z,{bypassNetworkless:!0},!0,SM(h)):z()})}}; Td=function(h,t){var Y="";if(h.dangerousLogToVisitorSession)Y="visitorOnlyApprovedKey";else if(h.cttAuthInfo){if(t===void 0?0:t){t=h.cttAuthInfo.token;Y=h.cttAuthInfo;var L=new p$;Y.videoId?L.setVideoId(Y.videoId):Y.playlistId&&wb(L,2,Dk,oV(Y.playlistId));hV[t]=L}else t=h.cttAuthInfo,Y={},t.videoId?Y.videoId=t.videoId:t.playlistId&&(Y.playlistId=t.playlistId),tV[h.cttAuthInfo.token]=Y;Y=h.cttAuthInfo.token}return Y}; IP=function(h,t,Y){h=h===void 0?{}:h;t=t===void 0?!1:t;new g.oR(function(L,q){var z=B3(t,Y),V=z.S;z.S=!1;ic(z.T);ic(z.G);z.G=0;RP&&RP.isReady()?Y===void 0&&g.wj("enable_web_tiered_gel")?muc(L,q,h,t,300,V):muc(L,q,h,t,Y,V):(RYL(t,Y),L())})}; muc=function(h,t,Y,L,q,z){var V=RP;Y=Y===void 0?{}:Y;L=L===void 0?!1:L;q=q===void 0?200:q;z=z===void 0?!1:z;var l=new Map,H=new Map,w={isJspb:L,cttAuthInfo:void 0,tier:q},W={isJspb:L,cttAuthInfo:void 0};if(L){t=g.b(Object.keys(Al));for(q=t.next();!q.done;q=t.next())q=q.value,H=g.wj("enable_web_tiered_gel")?nx().smartExtractMatchingEntries({keys:[w,W],sizeLimit:1E3}):nx().extractMatchingEntries({isJspb:!0,cttAuthInfo:q}),H.length>0&&l.set(q,H),(g.wj("web_fp_via_jspb_and_json")&&Y.writeThenSend||!g.wj("web_fp_via_jspb_and_json"))&& delete Al[q];PbL(l,V,h,Y,!1,z)}else{l=g.b(Object.keys(Al));for(w=l.next();!w.done;w=l.next())w=w.value,W=g.wj("enable_web_tiered_gel")?nx().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:w,tier:q},{isJspb:!1,cttAuthInfo:w}],sizeLimit:1E3}):nx().extractMatchingEntries({isJspb:!1,cttAuthInfo:w}),W.length>0&&H.set(w,W),(g.wj("web_fp_via_jspb_and_json")&&Y.writeThenSend||!g.wj("web_fp_via_jspb_and_json"))&&delete Al[w];B06(H,V,h,t,Y,!1,z)}}; RYL=function(h,t){function Y(){IP({writeThenSend:!0},h,t)} h=h===void 0?!1:h;t=t===void 0?200:t;var L=B3(h,t),q=L===DuD||L===hXL?5E3:tac;g.wj("web_gel_timeout_cap")&&!L.G&&(q=mY(function(){Y()},q),L.G=q); ic(L.T);q=g.Ey("LOGGING_BATCH_TIMEOUT",g.W2("web_gel_debounce_ms",1E4));g.wj("shorten_initial_gel_batch_timeout")&&gv&&(q=iii);q=mY(function(){g.W2("gel_min_batch_size")>0?nx().getSequenceCount({cttAuthInfo:void 0,isJspb:h,tier:t})>=gTc&&Y():Y()},q); L.T=q}; B06=function(h,t,Y,L,q,z,V){q=q===void 0?{}:q;var l=Math.round((0,g.FH)()),H=h.size,w=YA$(V);h=g.b(h);var W=h.next();for(V={};!W.done;V={mj:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,f9:void 0,i6:void 0},W=h.next()){var y=g.b(W.value);W=y.next().value;y=y.next().value;V.batchRequest=g.Cu({context:g.gd(t.config_||g.iN())});if(!g.Yy(y)&&!g.wj("throw_err_when_logevent_malformed_killswitch")){L();break}V.batchRequest.events=y;(y=tV[W])&&LJp(V.batchRequest,W,y);delete tV[W];V.dangerousLogToVisitorSession= W==="visitorOnlyApprovedKey";qAL(V.batchRequest,l,V.dangerousLogToVisitorSession);zXD(q);V.f9=function(X){g.wj("start_client_gcf")&&g.JS.yC(function(){return g.k(function(U){return g.K(U,Vai(X),0)})}); H--;H||Y()}; V.mj=0;V.i6=function(X){return function(){X.mj++;if(q.bypassNetworkless&&X.mj===1)try{g.nN(t,w,X.batchRequest,YU({writeThenSend:!0},X.dangerousLogToVisitorSession,X.f9,X.i6,z)),gv=!1}catch(U){g.n$(U),L()}H--;H||Y()}}(V); try{g.nN(t,w,V.batchRequest,YU(q,V.dangerousLogToVisitorSession,V.f9,V.i6,z)),gv=!1}catch(X){g.n$(X),L()}}}; PbL=function(h,t,Y,L,q,z){L=L===void 0?{}:L;var V=Math.round((0,g.FH)()),l={value:h.size},H=new Map([].concat(g.p(h)));H=g.b(H);for(var w=H.next();!w.done;w=H.next()){var W=g.b(w.value).next().value,y=h.get(W);w=new kcD;var X=t.config_||g.iN(),U=new Qj,C=new sy;pd(C,1,X.ri);pd(C,2,X.Vq);Kd(C,16,X.PX);pd(C,17,X.innertubeContextClientVersion);if(X.kP){var d=X.kP,Q=new Mu;d.coldConfigData&&pd(Q,1,d.coldConfigData);d.appInstallData&&pd(Q,6,d.appInstallData);d.coldHashData&&pd(Q,3,d.coldHashData);d.hotHashData&& Q.NQ(d.hotHashData);bm(C,Mu,62,Q)}(d=g.D$.devicePixelRatio)&&d!=1&&DB(C,65,Vd(d));d=yR();d!==""&&pd(C,54,d);d=Xx();if(d.length>0){Q=new bb;for(var J=0;J65535&&(h=1);x5("BATCH_CLIENT_COUNTER",h);return h}; LJp=function(h,t,Y){if(Y.videoId)var L="VIDEO";else if(Y.playlistId)L="PLAYLIST";else return;h.credentialTransferTokenTargetId=Y;h.context=h.context||{};h.context.user=h.context.user||{};h.context.user.credentialTransferTokens=[{token:t,scope:L}]}; $F=function(h,t){var Y=g.il("yt.logging.transport.enableScrapingForTest"),L=H2("il_payload_scraping");L=(L!==void 0?String(L):"")==="enable_il_payload_scraping";if(!Y)if(L)za=[],g.t3("yt.logging.transport.enableScrapingForTest",!0),g.t3("yt.logging.transport.scrapedPayloadsForTesting",za),g.t3("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.t3("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.t3("yt.logging.transport.scrapeClientEvent",!0);else return;Y=g.il("yt.logging.transport.scrapedPayloadsForTesting");L=g.il("yt.logging.transport.payloadToScrape");t&&(t=t.payload,(t=g.il("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t)())&&Y.push(t));t=g.il("yt.logging.transport.scrapeClientEvent");if(L&&L.length>=1)for(var q=0;q0&&c73(h,t,z)}else c73(h,t)}; c73=function(h,t,Y){h=uxc(h);t=t?g.yC(t):"";Y=Y||5;RF()&&g.rj(h,t,Y)}; uxc=function(h){for(var t=g.b(eXW),Y=t.next();!Y.done;Y=t.next())h=j9(h,Y.value);return"ST-"+p0(h).toString(36)}; J71=function(h){if(h.name==="JavaException")return!0;h=h.stack;return h.includes("chrome://")||h.includes("-extension://")||h.includes("webkit-masked-url://")}; p26=function(h){if(!h.stack)return!0;var t=!h.stack.includes("\n");return t&&h.stack.includes("ErrorType: ")||t&&h.stack.includes("Anonymous function (Unknown script")||h.stack.toLowerCase()==="not available"||h.fileName==="user-script"||h.fileName.startsWith("user-script:")?!0:!1}; vTW=function(){this.Qt=[];this.hL=[]}; MX=function(){if(!Ct){var h=Ct=new vTW;h.hL.length=0;h.Qt.length=0;KJi(h,aHL)}return Ct}; KJi=function(h,t){t.hL&&h.hL.push.apply(h.hL,t.hL);t.Qt&&h.Qt.push.apply(h.Qt,t.Qt)}; xcn=function(h){function t(){return h.charCodeAt(L++)} var Y=h.length,L=0;do{var q=Fd(t);if(q===Infinity)break;var z=q>>3;switch(q&7){case 0:q=Fd(t);if(z===2)return q;break;case 1:if(z===2)return;L+=8;break;case 2:q=Fd(t);if(z===2)return h.substr(L,q);L+=q;break;case 5:if(z===2)return;L+=4;break;default:return}}while(L500));L++);L=q}else if(typeof h==="object")for(q in h){if(h[q]){var z=q;var V=h[q],l=t,H=Y;z=typeof V!=="string"||z!=="clickTrackingParams"&&z!=="trackingParams"?0:(V=xcn(atob(V.replace(/-/g,"+").replace(/_/g,"/"))))?se(z+".ve",V,l,H):0;L+=z;L+=se(q,h[q],t,Y);if(L>500)break}}else Y[t]=jz(h),L+=Y[t].length;else Y[t]=jz(h),L+=Y[t].length;return L}; se=function(h,t,Y,L){Y+="."+h;h=jz(t);L[Y]=h;return Y.length+h.length}; jz=function(h){try{return(typeof h==="string"?h:String(JSON.stringify(h))).substr(0,500)}catch(t){return"unable to serialize "+typeof h+" ("+t.message+")"}}; hq=function(h){g.ZD(h)}; g.bc=function(h){g.ZD(h,"WARNING")}; g.ZD=function(h,t){var Y=Y===void 0?{}:Y;Y.name=g.Ey("INNERTUBE_CONTEXT_CLIENT_NAME",1);Y.version=g.Ey("INNERTUBE_CONTEXT_CLIENT_VERSION");t=t===void 0?"ERROR":t;var L=!1;t=t===void 0?"ERROR":t;L=L===void 0?!1:L;if(h){h.hasOwnProperty("level")&&h.level&&(t=h.level);if(g.wj("console_log_js_exceptions")){var q=[];q.push("Name: "+h.name);q.push("Message: "+h.message);h.hasOwnProperty("params")&&q.push("Error Params: "+JSON.stringify(h.params));h.hasOwnProperty("args")&&q.push("Error args: "+JSON.stringify(h.args)); q.push("File name: "+h.fileName);q.push("Stacktrace: "+h.stack);window.console.log(q.join("\n"),h)}if(!(kzr>=5)){q=[];for(var z=g.b(Oii),V=z.next();!V.done;V=z.next()){V=V.value;try{V()&&q.push(V())}catch(d){}}q=[].concat(g.p(nTL),g.p(q));var l=Ln1(h);z=l.message||"Unknown Error";V=l.name||"UnknownError";var H=l.stack||h.T||"Not available";if(H.startsWith(V+": "+z)){var w=H.split("\n");w.shift();H=w.join("\n")}w=l.lineNumber||"Not available";l=l.fileName||"Not available";var W=0;if(h.hasOwnProperty("args")&& h.args&&h.args.length)for(var y=0;y=500);y++);else if(h.hasOwnProperty("params")&&h.params){var X=h.params;if(typeof h.params==="object")for(y in X){if(X[y]){var U="params."+y,C=jz(X[y]);Y[U]=C;W+=U.length+C.length;if(W>500)break}}else Y.params=jz(X)}if(q.length)for(y=0;y=500);y++);navigator.vendor&&!Y.hasOwnProperty("vendor")&&(Y["device.vendor"]=navigator.vendor);Y={message:z,name:V,lineNumber:w, fileName:l,stack:H,params:Y,sampleWeight:1};y=Number(h.columnNumber);isNaN(y)||(Y.lineNumber=Y.lineNumber+":"+y);if(h.level==="IGNORED")h=0;else a:{h=MX();y=g.b(h.hL);for(q=y.next();!q.done;q=y.next())if(q=q.value,Y.message&&Y.message.match(q.tL)){h=q.weight;break a}h=g.b(h.Qt);for(y=h.next();!y.done;y=h.next())if(y=y.value,y.callback(Y)){h=y.weight;break a}h=1}Y.sampleWeight=h;h=g.b(fHn);for(y=h.next();!y.done;y=h.next())if(y=y.value,y.cY[Y.name])for(z=g.b(y.cY[Y.name]),q=z.next();!q.done;q=z.next())if(V= q.value,q=Y.message.match(V.jk)){Y.params["params.error.original"]=q[0];z=V.groups;V={};for(w=0;w1E3&&g.bc(new g.Ea("IL Attach cache exceeded limit"))}l= aA(Y,t);ez.has(l)?xU(Y,t):pt.set(l,!0)}}L=L.filter(function(W){W.csn!==t?(W.csn=t,W=!0):W=!1;return W}); Y={csn:t,parentVe:Y.getAsJson(),childVes:g.CQ(L,function(W){return W.getAsJson()})}; t==="UNDEFINED_CSN"?Ee("visualElementAttached",z,Y):h?NX("visualElementAttached",Y,h,z):g.tq("visualElementAttached",Y,z)}; YaL=function(h,t,Y,L,q){kU(Y,t);L=uc({cttAuthInfo:Xd(t)||void 0},t);Y={csn:t,ve:Y.getAsJson(),eventType:1};q&&(Y.clientData=q);t==="UNDEFINED_CSN"?Ee("visualElementShown",L,Y):h?NX("visualElementShown",Y,h,L):g.tq("visualElementShown",Y,L)}; LeL=function(h,t,Y,L){var q=(L=L===void 0?!1:L)?16:8;L=uc({cttAuthInfo:Xd(t)||void 0,endOfSequence:L},t);Y={csn:t,ve:Y.getAsJson(),eventType:q};t==="UNDEFINED_CSN"?Ee("visualElementHidden",L,Y):h?NX("visualElementHidden",Y,h,L):g.tq("visualElementHidden",Y,L)}; nt=function(h,t,Y,L,q){Oe(h,t,Y,void 0,L,q)}; Oe=function(h,t,Y,L,q){kU(Y,t);L=L||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var z=uc({cttAuthInfo:Xd(t)||void 0},t);Y={csn:t,ve:Y.getAsJson(),gestureType:L};q&&(Y.clientData=q);t==="UNDEFINED_CSN"?Ee("visualElementGestured",z,Y):h?NX("visualElementGestured",Y,h,z):g.tq("visualElementGestured",Y,z)}; qaL=function(){var h=lS(16);for(var t=[],Y=0;Y0&&Y.push(g.y_("BR"));Y.push(g.XK(z))}):Y.push(g.XK(L))}return Y}; ts=function(h,t,Y,L){if(Y==="child"){g.C7(t);var q;L===void 0?q=void 0:q=!Array.isArray(L)||L&&typeof L.Z==="string"?[L]:L;Y=Vqp(h,q);Y=g.b(Y);for(h=Y.next();!h.done;h=Y.next())t.appendChild(h.value)}else Y==="style"?g.$9(t,"cssText",L?L:""):L===null||L===void 0?t.removeAttribute(Y):(h=L.toString(),Y==="href"&&(h=g.L0(g.Nr(h))),t.setAttribute(Y,h))}; g.I=function(h){g.DD.call(this,h);this.nZ=!0;this.X=!1;this.listeners=[]}; g.iR=function(h){g.I.call(this,h);this.JQ=new g.PD;g.f(this,this.JQ)}; g7=function(h,t,Y,L,q,z,V){V=V===void 0?null:V;g.iR.call(this,t);this.api=h;this.macros={};this.componentType=Y;this.C=this.Y=null;this.MD=V;this.layoutId=L;this.interactionLoggingClientData=q;this.F5=z;this.Y8=null;this.cW=new zd(this.element);g.f(this,this.cW);this.tQ=this.V(this.element,"click",this.onClick);this.Wm=[];this.R0=new VG(this.onClick,this);g.f(this,this.R0);this.Pq=!1;this.X5=this.AQ=null}; Y7=function(h,t){h=h===void 0?null:h;t=t===void 0?null:t;if(h==null)return g.bc(Error("Got null or undefined adText object")),"";var Y=g.Ja(h.text);if(!h.isTemplated)return Y;if(t==null)return g.bc(Error("Missing required parameters for a templated message")),Y;h=g.b(Object.entries(t));for(t=h.next();!t.done;t=h.next()){var L=g.b(t.value);t=L.next().value;L=L.next().value;Y=Y.replace("{"+t+"}",L)}return Y}; NKi=function(h){h=h===void 0?null:h;return h!=null&&(h=h.thumbnail,h!=null&&h.thumbnails!=null&&h.thumbnails.length!=0&&h.thumbnails[0].url!=null)?g.Ja(h.thumbnails[0].url):""}; lZr=function(h){h=h===void 0?null:h;return h!=null&&(h=h.thumbnail,h!=null&&h.thumbnails!=null&&h.thumbnails.length!=0&&h.thumbnails[0].width!=null&&h.thumbnails[0].height!=null)?new g.Se(h.thumbnails[0].width||0,h.thumbnails[0].height||0):new g.Se(0,0)}; g.Lc=function(h){if(h.simpleText)return h.simpleText;if(h.runs){var t=[];h=g.b(h.runs);for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value,Y.text&&t.push(Y.text);return t.join("")}return""}; g.qk=function(h){if(h.simpleText)return h=document.createTextNode(h.simpleText),h;var t=[];if(h.runs)for(var Y=0;Y1){for(var t=[h[0]],Y=1;Y0&&(this.G=new g.nE(this.lU,t,this),g.f(this,this.G));this.X=new g.nE(this.lU,Y,this);g.f(this,this.X);this.Y=coW(this.T,q,1,L);g.f(this,this.Y);this.C=coW(this.T,0,L,1);g.f(this,this.C);this.W=new sa;g.f(this,this.W)}; Dc=function(h,t,Y){this.T=h;this.isAsync=t;this.G=Y}; t4p=function(h){switch(h){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:wk(h,"unknown result type")}}; ijc=function(h,t){var Y=1;h.isTrusted===!1&&(Y=0);x5("ISDSTAT",Y);hZ(Y,"i.s_",{triggerContext:"sk",metadata:t});return Y}; gLW=function(h,t){var Y=[];t?t.isTrusted===!0?Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):t.isTrusted===!1?Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");hZ(0,"a.s_",{metadata:h,states:Y});x5("ASDSTAT",0)}; hZ=function(h,t,Y){t=Yx3[t];var L,q,z={detected:h===0,source:""+t.T+((L=Y.triggerContext)!=null?L:"")+((q=Y.Uu)!=null?q:""),detectionStates:Y.states,durationMs:Y.fE};Y.metadata&&(z.contentCpn=Y.metadata.contentCpn,z.adCpn=Y.metadata.adCpn);g.tq("biscottiBasedDetection",z);t.G!==void 0&&(Y=Number(g.Ey("CATSTAT",0)),t.G!==void 0?(t=t.G,h=t4p(h),h=Y&~(3<0}; zT=function(h,t,Y,L,q,z){$7.call(this,h,{Z:"div",D:"ytp-ad-skip-button-slot"},"skip-button",t,Y,L,q);var V=this;this.x8=null;this.gU=!1;this.lP=z;this.U=this.api.J().experiments.I0("enable_modern_skip_button_on_web");this.yG=!1;this.W=new g.iR({Z:"span",Ei:["ytp-ad-skip-button-container"]});this.U&&this.W.element.classList.add("ytp-ad-skip-button-container-detached");g.f(this,this.W);this.W.zz(this.element);this.T=this.S=null;this.iP=new g.ST(this.W,500,!1,100,function(){return V.hide()}); g.f(this,this.iP);this.Zx=new mU(this.W.element,15E3,5E3,.5,.5,this.U);g.f(this,this.Zx);this.hide()}; qxD=function(h){h=h.x8&&h.x8.adRendererCommands;return(h&&h.clickCommand&&g.A(h.clickCommand,g.V0)&&g.A(h.clickCommand,g.V0).commands||[]).some(function(t){return t.adLifecycleCommand?LPW(t.adLifecycleCommand):!1})}; LPW=function(h){return h.action==="END_LINEAR_AD"||h.action==="END_LINEAR_AD_PLACEMENT"}; NK=function(h,t,Y,L,q,z){$7.call(this,h,{Z:"div",D:"ytp-ad-skip-ad-slot"},"skip-ad",t,Y,L,q);this.x8=z;this.W=!1;this.U=0;this.S=this.T=null;this.hide()}; zar=function(h,t){h.W||(h.W=!0,h.T&&(t?h.T.x8.hide():h.T.hide()),t?(h=h.S,h.iP.show(),h.show()):h.S.show())}; l9=function(h,t,Y,L){o$.call(this,h,t,Y,L,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; HC=function(h,t,Y,L,q,z,V){z=z===void 0?!1:z;V=V===void 0?!1:V;g7.call(this,h,{Z:"span",D:"ytp-ad-simple-ad-badge"},"simple-ad-badge",t,Y,L);this.S=q;this.G=this.Tz("ytp-ad-simple-ad-badge");(this.T=z)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");V&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; wP=function(h,t,Y,L,q){q=q===void 0?!1:q;BD.call(this,"player-overlay",h,{},t,L);this.videoAdDurationSeconds=Y;this.interactionLoggingClientData=L;this.cF=q}; WC=function(h,t){g.PD.call(this);this.api=h;this.durationMs=t;this.G=null;this.tJ=new sa(this);g.f(this,this.tJ);this.T=V41;this.tJ.V(this.api,"presentingplayerstatechange",this.jY);this.G=this.tJ.V(this.api,"onAdPlaybackProgress",this.Kn)}; y0=function(h){g.PD.call(this);this.G=!1;this.GQ=0;this.tJ=new sa(this);g.f(this,this.tJ);this.durationMs=h;this.timer=new g.et(100);g.f(this,this.timer);this.tJ.V(this.timer,"tick",this.Kn);this.T={seekableStart:0,seekableEnd:h/1E3,current:0};this.start()}; g.XA=function(h,t){var Y=Math.abs(Math.floor(h)),L=Math.floor(Y/86400),q=Math.floor(Y%86400/3600),z=Math.floor(Y%3600/60);Y=Math.floor(Y%60);if(t){t="";L>0&&(t+=" "+L+" Days");if(L>0||q>0)t+=" "+q+" Hours";t+=" "+z+" Minutes";t+=" "+Y+" Seconds";L=t.trim()}else{t="";L>0&&(t+=L+":",q<10&&(t+="0"));if(L>0||q>0)t+=q+":",z<10&&(t+="0");t+=z+":";Y<10&&(t+="0");L=t+Y}return h>=0?L:"-"+L}; g.U6=function(h){return(!("button"in h)||typeof h.button!=="number"||h.button===0)&&!("shiftKey"in h&&h.shiftKey)&&!("altKey"in h&&h.altKey)&&!("metaKey"in h&&h.metaKey)&&!("ctrlKey"in h&&h.ctrlKey)}; Cs=function(h,t,Y,L,q,z,V){$7.call(this,h,{Z:"span",D:V?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",t,Y,L,q);this.videoAdDurationSeconds=z;this.T=null;V&&this.api.J().T&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Ex&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; MK=function(h,t,Y,L){nc.call(this,h,t,Y,L,"ytp-video-ad-top-bar-title","ad-title")}; FA=function(h){this.content=h.content;if(h.commandRuns){h=g.b(h.commandRuns);for(var t=h.next();!t.done;t=h.next())t=t.value,this.loggingDirectives=g.A(t,NI6),t.onTap&&(this.interaction={onTap:t.onTap})}}; s6=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ad-simple-attributed-string"},"ad-simple-attributed-string",t,Y,L);this.hide()}; jp=function(h,t,Y,L,q){g7.call(this,h,{Z:"span",D:q?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",t,Y,L);this.T=q;this.adBadgeText=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);this.adBadgeText.zz(this.element);g.f(this,this.adBadgeText);q?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Ex&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Z7=function(h,t,Y,L){g7.call(this,h,{Z:"span",D:"ytp-ad-pod-index"},"ad-pod-index",t,Y,L);this.api.J().T&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Ex&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; b9=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",t,Y,L);this.hide()}; oD=function(h,t){this.T=h;this.G=t}; lbL=function(h,t){return h.T+t*(h.G-h.T)}; dP=function(h,t,Y){return h.G-h.T?g.n0((t-h.T)/(h.G-h.T),0,1):Y!=null?Y:Infinity}; GT=function(h,t,Y,L){L=L===void 0?!1:L;g.iR.call(this,{Z:"div",D:"ytp-ad-persistent-progress-bar-container",B:[{Z:"div",D:"ytp-ad-persistent-progress-bar"}]});this.api=h;this.T=t;this.S=Y;L&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.f(this,this.T);this.progressBar=this.Tz("ytp-ad-persistent-progress-bar");this.G=-1;this.V(h,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Q0=function(h,t,Y,L,q,z){g7.call(this,h,{Z:"div",D:"ytp-ad-player-overlay",B:[{Z:"div",D:"ytp-ad-player-overlay-flyout-cta"},{Z:"div",D:"ytp-ad-player-overlay-instream-info"},{Z:"div",D:"ytp-ad-player-overlay-skip-or-preview"},{Z:"div",D:"ytp-ad-player-overlay-progress-bar"},{Z:"div",D:"ytp-ad-player-overlay-instream-user-sentiment"},{Z:"div",D:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",t,Y,L);this.L=z;this.U=this.Tz("ytp-ad-player-overlay-flyout-cta");this.U.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.G=this.Tz("ytp-ad-player-overlay-instream-info");this.W=null;Hjr(this)&&(h=Wb("div"),g.mS(h,"ytp-ad-player-overlay-top-bar-gradients"),t=this.G,t.parentNode&&t.parentNode.insertBefore(h,t),(t=this.api.getVideoData(2))&&t.isListed&&t.title&&(Y=new MK(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),Y.zz(h),Y.init(RA("ad-title"),{text:t.title},this.macros),g.f(this,Y)),this.W=h);this.S=null;this.Ne=this.Tz("ytp-ad-player-overlay-skip-or-preview");this.Zx=this.Tz("ytp-ad-player-overlay-progress-bar"); this.gU=this.Tz("ytp-ad-player-overlay-instream-user-sentiment");this.x8=this.Tz("ytp-ad-player-overlay-ad-disclosure-banner");this.T=q;g.f(this,this.T);this.hide()}; Hjr=function(h){h=h.api.J();return g.rP(h)&&h.T}; g.cC=function(h){h&=16777215;var t=[(h&16711680)>>16,(h&65280)>>8,h&255];h=t[0];var Y=t[1];t=t[2];h=Number(h);Y=Number(Y);t=Number(t);if(h!=(h&255)||Y!=(Y&255)||t!=(t&255))throw Error('"('+h+","+Y+","+t+'") is not a valid RGB color');Y=h<<16|Y<<8|t;return h<16?"#"+(16777216|Y).toString(16).slice(1):"#"+Y.toString(16)}; g.u9=function(){}; WPc=function(h){var t=new LX;var Y=new Yi;Y=pd(Y,1,"botguard");h=pd(Y,2,h);this.G=v2c(t,Yi,1,wqi,h)}; ep=function(h){this.G=new jl(h)}; yq$=function(){var h=!1;try{h=!!window.sessionStorage.getItem("session_logininfo")}catch(t){h=!0}return(g.Ey("INNERTUBE_CLIENT_NAME")==="WEB"||g.Ey("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&h}; JZ=function(){var h=h===void 0?!0:h;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");x5("LOGIN_INFO","");h&&window.sessionStorage.setItem("from_switch_account","1");h=!0;h=h===void 0?!1:h;var t,Y=Xqb;Y||(Y=document.querySelector("#persist_identity"));if(t=Y){var L=t.src?(new URL(t.src)).origin:"*";if(h){var q;(q=t.contentWindow)==null||q.postMessage({action:"clear"},L)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var z=window.sessionStorage.getItem("session_logininfo");if(z){var V;(V=t.contentWindow)==null||V.postMessage({loginInfo:z},L)}}}}catch(l){}}; ps=function(h){h&&(h.startsWith("https://accounts.google.com/AddSession")?JZ():h.startsWith("https://accounts.google.com/ServiceLogin")?JZ():h.startsWith("https://myaccount.google.com")&&g.zU(h).T.endsWith("/youtubeoptions")&&JZ());if(g.Ey("LOGGED_IN",!0)&&yq$()){var t=g.Ey("VALID_SESSION_TEMPDATA_DOMAINS",[]);var Y=g.VC(window.location.href);Y&&t.push(Y);Y=g.VC(h);g.jE(t,Y)||!Y&&uv(h,"/")?(t=lo(h),(t=fPp(t))?(t=uxc(t),t=(t=g.c2(t)||null)?SR(t):{}):t=null):t=null;t==null&&(t={});Y=t;var L=void 0; yq$()?(L||(L=g.Ey("LOGIN_INFO")),L?(Y.session_logininfo=L,Y=!0):Y=!1):Y=!1;Y&&Ue(h,t)}}; g.Uqr=function(h){var t=t===void 0?{}:t;var Y=Y===void 0?"":Y;var L=L===void 0?window:L;h=g.Xz(h,t);ps(h);Y=g.Nr(h+Y);L=L.location;Y=ls(Y);Y!==void 0&&(L.href=Y)}; g.vC=function(h,t,Y){t=t===void 0?{}:t;Y=Y===void 0?!1:Y;var L=g.Ey("EVENT_ID");L&&(t.ei||(t.ei=L));t&&Ue(h,t);Y||(ps(h),g.Uqr(h))}; g.Ks=function(h,t,Y,L,q){q=q===void 0?!1:q;Y&&Ue(h,Y);Y=g.Nr(h);var z=g.L0(Y);h!=z&&$5(Error("Unsafe window.open URL: "+h));h=z;t=t||p0(h).toString(36);try{if(q)return q=h,q=VR6(q),ps(q),g.Ub(window,q,t,"attributionsrc")}catch(V){g.n$(V)}ps(h);return g.Ub(window,Y,t,L)}; Cjb=function(h){aD=h}; M4L=function(h){xu=h}; FPW=function(h){E6=h}; jY$=function(){sYL=E6=xu=aD=null}; bj3=function(){var h=h===void 0?window.location.href:h;if(g.wj("kevlar_disable_theme_param"))return null;var t=Nw(h);if(g.wj("enable_dark_theme_only_on_shorts")&&t!=null&&t.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var Y=g.Rp(h).theme;return ZjD.get(Y)||null}catch(L){}return null}; ku=function(){this.G={};if(this.T=XmL()){var h=g.c2("CONSISTENCY");h&&oLc(this,{encryptedTokenJarContents:h})}}; oLc=function(h,t){if(t.encryptedTokenJarContents&&(h.G[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var Y=Number(t.expirationSeconds);setTimeout(function(){delete h.G[t.encryptedTokenJarContents]},Y*1E3); h.T&&g.rj("CONSISTENCY",t.encryptedTokenJarContents,Y,void 0,!0)}}; ns=function(){this.T=-1;var h=g.Ey("LOCATION_PLAYABILITY_TOKEN");g.Ey("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=O6(this))&&(h=this.localStorage.get("yt-location-playability-token"));h&&(this.locationPlayabilityToken=h,this.G=void 0)}; O6=function(h){return h.localStorage===void 0?new Rz("yt-client-location"):h.localStorage}; g.fs=function(h,t,Y){t=t===void 0?!1:t;Y=Y===void 0?!1:Y;var L=g.Ey("INNERTUBE_CONTEXT");if(!L)return g.ZD(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};L=g.Cu(L);g.wj("web_no_tracking_params_in_shell_killswitch")||delete L.clickTracking;L.client||(L.client={});var q=L.client;q.clientName==="MWEB"&&q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(q.clientFormFactor=g.Ey("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");q.screenWidthPoints=window.innerWidth;q.screenHeightPoints= window.innerHeight;q.screenPixelDensity=Math.round(window.devicePixelRatio||1);q.screenDensityFloat=window.devicePixelRatio||1;q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var z=z===void 0?!1:z;g.JG();var V="USER_INTERFACE_THEME_LIGHT";g.pY(0,165)?V="USER_INTERFACE_THEME_DARK":g.pY(0,174)?V="USER_INTERFACE_THEME_LIGHT":!g.wj("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (V="USER_INTERFACE_THEME_DARK");z=z?V:bj3()||V;q.userInterfaceTheme=z;if(!t){if(z=tjL())q.connectionType=z;g.wj("web_log_effective_connection_type")&&(z=g46())&&(L.client.effectiveConnectionType=z)}var l;if(g.wj("web_log_memory_total_kbytes")&&((l=g.D$.navigator)==null?0:l.deviceMemory)){var H;l=(H=g.D$.navigator)==null?void 0:H.deviceMemory;L.client.memoryTotalKbytes=""+l*1E6}g.wj("web_gcf_hashes_innertube")&&(z=lWL())&&(H=z.coldConfigData,l=z.coldHashData,z=z.hotHashData,L.client.configInfo=L.client.configInfo|| {},H&&(L.client.configInfo.coldConfigData=H),l&&(L.client.configInfo.coldHashData=l),z&&(L.client.configInfo.hotHashData=z));H=g.Rp(g.D$.location.href);!g.wj("web_populate_internal_geo_killswitch")&&H.internalcountrycode&&(q.internalGeo=H.internalcountrycode);q.clientName==="MWEB"||q.clientName==="WEB"?(q.mainAppWebInfo||(q.mainAppWebInfo={}),q.mainAppWebInfo.graftUrl=g.D$.location.href,g.wj("kevlar_woffle")&&IR$.instance&&(H=IR$.instance,q.mainAppWebInfo.pwaInstallabilityStatus=!H.G&&H.T?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),q.mainAppWebInfo.webDisplayMode=cY(),q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):q.clientName==="TVHTML5"&&(!g.wj("web_lr_app_quality_killswitch")&&(H=g.Ey("LIVING_ROOM_APP_QUALITY"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{appQuality:H})),H=g.Ey("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{certificationScope:H}));if(!g.wj("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(E){}w=void 0}w&&(q.timeZone=w)}(w=yR())?q.experimentsToken=w:delete q.experimentsToken;w=Xx();ku.instance||(ku.instance=new ku);L.request=Object.assign({},L.request,{internalExperimentFlags:w,consistencyTokenJars:zR(ku.instance.G)});!g.wj("web_prequest_context_killswitch")&&(w=g.Ey("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(L.request.externalPrequestContext=w);q=g.JG();w=g.pY(0,58);q=q.get("gsml","");L.user=Object.assign({}, L.user);w&&(L.user.enableSafetyMode=w);q&&(L.user.lockedSafetyMode=!0);g.wj("warm_op_csn_cleanup")?Y&&(t=g.yy())&&(L.clientScreenNonce=t):!t&&(t=g.yy())&&(L.clientScreenNonce=t);h&&(L.clickTracking={clickTrackingParams:h});if(h=g.il("yt.mdx.remote.remoteClient_"))L.remoteClient=h;ns.getInstance().setLocationOnInnerTubeContext(L);try{var W=gj(),y=W.bid;delete W.bid;L.adSignalsInfo={params:[],bid:y};for(var X=g.b(Object.entries(W)),U=X.next();!U.done;U=X.next()){var C=g.b(U.value),d=C.next().value, Q=C.next().value;W=d;y=Q;h=void 0;(h=L.adSignalsInfo.params)==null||h.push({key:W,value:""+y})}var J,e;if(((J=L.client)==null?void 0:J.clientName)==="TVHTML5"||((e=L.client)==null?void 0:e.clientName)==="TVHTML5_UNPLUGGED"){var v=g.Ey("INNERTUBE_CONTEXT");v.adSignalsInfo&&(L.adSignalsInfo.advertisingId=v.adSignalsInfo.advertisingId,L.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",L.adSignalsInfo.limitAdTracking=v.adSignalsInfo.limitAdTracking)}}catch(E){g.ZD(E)}return L}; QYp=function(h,t){if(!h)return!1;var Y,L=(Y=g.A(h,dqL))==null?void 0:Y.signal;if(L&&t.er)return!!t.er[L];var q;if((Y=(q=g.A(h,GY$))==null?void 0:q.request)&&t.rp)return!!t.rp[Y];for(var z in h)if(t.ll[z])return!0;return!1}; rqW=function(h){var t={"Content-Type":"application/json"};g.Ey("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=g.Ey("EOM_VISITOR_DATA"):g.Ey("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=g.Ey("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=g.Ey("LOGGED_IN",!1);g.Ey("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=g.Ey("DEBUG_SETTINGS_METADATA"));h!=="cors"&&((h=g.Ey("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(t["X-Youtube-Client-Name"]=h),(h=g.Ey("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]= h),(h=g.Ey("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=h),(h=g.Ey("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=h),g.Ey("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(h=g.Ey("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=h));return t}; cqi=function(){this.G={}}; $u=function(){this.mappings=new cqi}; TT=function(h){return function(){return new h}}; eaL=function(h){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(h.length===1)return h[0];var Y=uHp[t];if(Y){Y=new RegExp(Y);for(var L=g.b(h),q=L.next();!q.done;q=L.next())if(q=q.value,Y.exec(q))return q}var z=[];Object.entries(uHp).forEach(function(V){var l=g.b(V);V=l.next().value;l=l.next().value;t!==V&&z.push(l)}); Y=new RegExp(z.join("|"));h.sort(function(V,l){return V.length-l.length}); L=g.b(h);for(q=L.next();!q.done;q=L.next())if(q=q.value,!Y.exec(q))return q;return h[0]}; g.AZ=function(h){return"/youtubei/v1/"+eaL(h)}; Sp=function(){}; ID=function(){}; RD=function(){}; BC=function(h){return g.il("ytcsi."+(h||"")+"data_")||JqW(h)}; pqL=function(){var h=BC();h.info||(h.info={});return h.info}; PC=function(h){h=BC(h);h.metadata||(h.metadata={});return h.metadata}; m1=function(h){h=BC(h);h.tick||(h.tick={});return h.tick}; D7=function(h){h=BC(h);if(h.gel){var t=h.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else h.gel={gelTicks:{},gelInfos:{}};return h.gel}; vLL=function(h){h=D7(h);h.gelInfos||(h.gelInfos={});return h.gelInfos}; h2=function(h){var t=BC(h).nonce;t||(t=g.H3(16),BC(h).nonce=t);return t}; JqW=function(h){var t={tick:{},info:{}};g.t3("ytcsi."+(h||"")+"data_",t);return t}; t2=function(){var h=g.il("ytcsi.debug");h||(h=[],g.t3("ytcsi.debug",h),g.t3("ytcsi.reference",{}));return h}; iW=function(h){h=h||"";var t=KPL();if(t[h])return t[h];var Y=t2(),L={timerName:h,info:{},tick:{},span:{},jspbInfo:[]};Y.push(L);return t[h]=L}; abL=function(h){h=h||"";var t=KPL();t[h]&&delete t[h];var Y=t2(),L={timerName:h,info:{},tick:{},span:{},jspbInfo:[]};Y.push(L);t[h]=L}; KPL=function(){var h=g.il("ytcsi.reference");if(h)return h;t2();return g.il("ytcsi.reference")}; g2=function(h){return xqr[h]||"LATENCY_ACTION_UNKNOWN"}; Yo=function(h,t){qP.call(this,1,arguments);this.timer=t}; LU=function(){this.G=0}; qT=function(){LU.instance||(LU.instance=new LU);return LU.instance}; VD=function(h,t){zr[t]=zr[t]||{count:0};var Y=zr[t];Y.count++;Y.time=(0,g.FH)();h.G||(h.G=g.$I(0,function(){var L=(0,g.FH)(),q;for(q in zr)zr[q]&&L-zr[q].time>6E4&&delete zr[q];h&&(h.G=0)},5E3)); return Y.count>5?(Y.count===6&&Math.random()*1E5<1&&(Y=new g.Ea("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||g.bc(Y)),!0):!1}; ELD=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; kY6=function(){var h;if(g.wj("csi_use_performance_navigation_timing")){var t,Y,L,q=NT==null?void 0:(h=NT.getEntriesByType)==null?void 0:(t=h.call(NT,"navigation"))==null?void 0:(Y=t[0])==null?void 0:(L=Y.toJSON)==null?void 0:L.call(Y);q?(q.requestStart=lW(q.requestStart),q.responseEnd=lW(q.responseEnd),q.redirectStart=lW(q.redirectStart),q.redirectEnd=lW(q.redirectEnd),q.domainLookupEnd=lW(q.domainLookupEnd),q.connectStart=lW(q.connectStart),q.connectEnd=lW(q.connectEnd),q.responseStart=lW(q.responseStart), q.secureConnectionStart=lW(q.secureConnectionStart),q.domainLookupStart=lW(q.domainLookupStart),q.isPerformanceNavigationTiming=!0,h=q):h=NT.timing}else h=g.wj("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(NT.timing)):NT.timing;return h}; lW=function(h){return Math.round(HN()+h)}; HN=function(){return(g.wj("csi_use_time_origin")||g.wj("csi_use_time_origin_tvhtml5"))&&NT.timeOrigin?Math.floor(NT.timeOrigin):NT.timing.navigationStart}; WN=function(h,t){w2("_start",h,t)}; yD=function(h,t){if(!g.wj("web_csi_action_sampling_enabled")||!BC(t).actionDisabled){var Y=iW(t||"");YF(Y.info,h);h.loadType&&(Y=h.loadType,PC(t).loadType=Y);YF(vLL(t),h);Y=h2(t);t=BC(t).cttAuthInfo;qT().info(h,Y,t)}}; Ojr=function(){var h,t,Y,L;return((L=bS().resolve(Me(hn))==null?void 0:(h=tn())==null?void 0:(t=h.loggingHotConfig)==null?void 0:(Y=t.csiConfig)==null?void 0:Y.debugTicks)!=null?L:[]).map(function(q){return Object.values(q)[0]})}; w2=function(h,t,Y){if(!g.wj("web_csi_action_sampling_enabled")||!BC(Y).actionDisabled){var L=h2(Y),q;if(q=g.wj("web_csi_debug_sample_enabled")&&L){(bS().resolve(Me(hn))==null?0:tn())&&!nLr&&(nLr=!0,w2("gcfl",(0,g.FH)(),Y));var z,V,l;q=(bS().resolve(Me(hn))==null?void 0:(z=tn())==null?void 0:(V=z.loggingHotConfig)==null?void 0:(l=V.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(z=q!==0)b:{z=Ojr();if(z.length>0)for(V=0;VY.duration?L:Y},{duration:0}))&&t.startTime>0&&t.responseEnd>0&&(w2("wffs",lW(t.startTime)),w2("wffe",lW(t.responseEnd)))}; RaL=function(h,t,Y){NT&&NT.measure&&(h.startsWith("measure_")||(h="measure_"+h),Y?NT.measure(h,t,Y):t?NT.measure(h,t):NT.measure(h))}; BI6=function(h){var t=X0("aft",h);if(t)return t;t=g.Ey((h||"")+"TIMING_AFT_KEYS",["ol"]);for(var Y=t.length,L=0;L0&&yD(t);t={isNavigation:!0,actionType:g2(g.Ey("TIMING_ACTION"))};var Y=g.Ey("PREVIOUS_ACTION");Y&&(t.previousAction=g2(Y));if(Y=g.Ey("CLIENT_PROTOCOL"))t.httpProtocol=Y;if(Y=g.Ey("CLIENT_TRANSPORT"))t.transportProtocol=Y;(Y=g.yy())&&Y!=="UNDEFINED_CSN"&&(t.clientScreenNonce=Y);Y=TID();if(Y===1||Y===-1)t.isVisible= !0;Y=PC().loadType==="cold";var L=pqL();Y||(Y=L.yt_lt==="cold");if(Y){t.loadType="cold";Y=pqL();L=kY6();var q=HN(),z=g.Ey("CSI_START_TIMESTAMP_MILLIS",0);z>0&&!g.wj("embeds_web_enable_csi_start_override_killswitch")&&(q=z);q&&(w2("srt",L.responseStart),Y.prerender!==1&&WN(q));Y=Dqc();Y>0&&w2("fpt",Y);Y=kY6();Y.isPerformanceNavigationTiming&&yD({performanceNavigationTiming:!0},void 0);w2("nreqs",Y.requestStart,void 0);w2("nress",Y.responseStart,void 0);w2("nrese",Y.responseEnd,void 0);Y.redirectEnd- Y.redirectStart>0&&(w2("nrs",Y.redirectStart,void 0),w2("nre",Y.redirectEnd,void 0));Y.domainLookupEnd-Y.domainLookupStart>0&&(w2("ndnss",Y.domainLookupStart,void 0),w2("ndnse",Y.domainLookupEnd,void 0));Y.connectEnd-Y.connectStart>0&&(w2("ntcps",Y.connectStart,void 0),w2("ntcpe",Y.connectEnd,void 0));Y.secureConnectionStart>=HN()&&Y.connectEnd-Y.secureConnectionStart>0&&(w2("nstcps",Y.secureConnectionStart,void 0),w2("ntcpe",Y.connectEnd,void 0));NT&&"getEntriesByType"in NT&&IbL();Y=[];if(document.querySelector&& NT&&NT.getEntriesByName)for(var V in MT)MT.hasOwnProperty(V)&&(L=MT[V],Sx1(V,L)&&Y.push(L));if(Y.length>0)for(t.resourceInfo=[],V=g.b(Y),Y=V.next();!Y.done;Y=V.next())t.resourceInfo.push({resourceCache:Y.value})}yD(t);t=D7();t.preLoggedGelInfos||(t.preLoggedGelInfos=[]);V=t.preLoggedGelInfos;t=vLL();Y=void 0;for(L=0;L-1&&(delete r3["@type"],B=r3);d&&h.T.has(d)&&h.T.delete(d);((h3=t.config)==null?0:h3.evb)&&sH(t.config.evb);if(B||(ky=h.S)==null||!ky.X0b(t.input,t.L1)){EL.eM(15);break}return g.K(EL,h.S.JLi(t.input,t.L1),16);case 16:B=EL.G;case 15:return CNi(h, B,t),((F8=t.config)==null?0:F8.b6m)&&sH(t.config.b6m),L(),EL.return(B||void 0)}})}; weL=function(h,t){a:{h=h.Py;var Y,L=(Y=g.A(t,dqL))==null?void 0:Y.signal;if(L&&h.er&&(Y=h.er[L])){var q=Y();break a}var z;if((Y=(z=g.A(t,GY$))==null?void 0:z.request)&&h.rp&&(z=h.rp[Y])){q=z();break a}for(q in t)if(h.ll[q]&&(t=h.ll[q])){q=t();break a}q=void 0}if(q!==void 0)return Promise.resolve(q)}; yn3=function(h,t,Y){var L,q,z,V,l,H,w;return g.k(function(W){if(W.T==1){z=((L=t)==null?void 0:(q=L.sZ)==null?void 0:q.identity)||LN;H=(V=t)==null?void 0:(l=V.sZ)==null?void 0:l.sessionIndex;var y=g.Gc(h.G.GL(z,{sessionIndex:H}));return g.K(W,y,2)}w=W.G;return W.return(Promise.resolve(Object.assign({},rqW(Y),w)))})}; WE1=function(h,t,Y){var L,q=(t==null?void 0:(L=t.sZ)==null?void 0:L.identity)||LN,z;t=t==null?void 0:(z=t.sZ)==null?void 0:z.sessionIndex;h=h.G.GL(q,{sessionIndex:t});return Object.assign({},rqW(Y),h)}; cN=function(){}; uW=function(){}; eC=function(h){this.U=h}; J2=function(){}; pU=function(){}; vN=function(){}; KU=function(){}; g.af=function(h,t){var Y=g.OL.apply(2,arguments);h=h===void 0?0:h;g.Ea.call(this,t,Y);this.errorType=h;Object.setPrototypeOf(this,this.constructor.prototype)}; xo=function(h,t,Y,L){this.G=h;this.T=t;this.S=Y;this.W=L}; FEW=function(h,t,Y){if(h.G){var L=Nw(j9(t,"key"))||"/UNKNOWN_PATH";h.G.start(L)}L=Y;g.wj("wug_networking_gzip_request")&&(L=OSL(Y));var q;return new ((q=h.W)!=null?q:window.Request)(t,L)}; g.ko=function(h,t){if(!EH){var Y=bS();F2(Y,{xp:s_b,VL:xo});var L={ll:{feedbackEndpoint:TT(J2),modifyChannelNotificationPreferenceEndpoint:TT(pU),playlistEditEndpoint:TT(vN),shareEntityEndpoint:TT(eC),subscribeEndpoint:TT(cN),unsubscribeEndpoint:TT(uW),webPlayerShareEntityServiceEndpoint:TT(KU)}},q=ns.getInstance(),z={};q&&(z.client_location=q);h===void 0&&(h=R_p());t===void 0&&(t=Y.resolve(s_b));HNW(L,t,h,z);F2(Y,{xp:j_L,rh:Gr.instance});EH=Y.resolve(j_L)}return EH}; ZNL=function(h){var t=new L2;if(h.interpreterJavascript){var Y=ejL(h.interpreterJavascript);Y=FL(Y).toString();var L=new g5;pd(L,6,Y);bm(t,g5,1,L,SW)}else h.interpreterUrl&&(Y=Xk(h.interpreterUrl),Y=gk(Y).toString(),L=new Ys,pd(L,4,Y),bm(t,Ys,2,L,SW));h.interpreterHash&&vF(t,3,h.interpreterHash,SW);h.program&&vF(t,4,h.program,SW);h.globalName&&vF(t,5,h.globalName,SW);h.clientExperimentsStateBlob&&vF(t,7,h.clientExperimentsStateBlob,SW);return t}; OH=function(h){var t={};h=h.split("&");h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value.split("="),Y.length===2&&(t[Y[0]]=Y[1]);return t}; eHD=function(){if(g.wj("bg_st_hr"))return"havuokmhhs-0";var h,t=((h=performance)==null?void 0:h.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)}; nU=function(h){this.G=h}; bNL=function(){return new Promise(function(h){var t=window.top;t.ntpevasrs!==void 0?h(new nU(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(Y){h(new nU(Y))}))})}; dPi=function(){if(RF()){var h=g.Ey("PLAYER_VARS",{});if(g.yo(h,"privembed",!1)!="1"&&!Z2L(h)){var t=function(){fU=!0;"google_ad_status"in window?x5("DCLKSTAT",1):x5("DCLKSTAT",2)}; try{g.Be("//static.doubleclick.net/instream/ad_status.js",t)}catch(Y){}oCb.push(g.JS.yC(function(){if(!(fU||"google_ad_status"in window)){try{if(t){var Y=""+g.zs(t),L=jpr[Y];L&&g.I_(L)}}catch(q){}fU=!0;x5("DCLKSTAT",3)}},5E3))}}}; $o=function(){var h=Number(g.Ey("DCLKSTAT",0));return isNaN(h)?0:h}; If=function(h,t,Y){var L=this;this.network=h;this.options=t;this.T=Y;this.G=null;if(t.iCU){var q=new g.zJ;this.G=q.promise;g.D$.ytAtRC&&fY(function(){var z,V;return g.k(function(l){if(l.T==1){if(!g.D$.ytAtRC)return l.return();z=Tr(null);return g.K(l,A2(L,z),2)}V=l.G;g.D$.ytAtRC&&g.D$.ytAtRC(JSON.stringify(V));g.Z$(l)})},2); bNL().then(function(z){var V,l,H,w;return g.k(function(W){if(W.T==1)return z.bindInnertubeChallengeFetcher(function(y){return A2(L,Tr(y))}),g.K(W,RC(),2); V=W.G;l=z.getLatestChallengeResponse();H=l.challenge;if(!H)throw Error("BGE_MACIL");w={challenge:H,Aj:OH(H),Y0:V,bgChallenge:new L2};q.resolve(w);z.registerChallengeFetchedCallback(function(y){y=y.challenge;if(!y)throw Error("BGE_MACR");y={challenge:y,Aj:OH(y),Y0:V,bgChallenge:new L2};L.G=Promise.resolve(y)}); g.Z$(W)})})}else t.preload&&Ggp(this,new Promise(function(z){g.$I(0,function(){z(SC(L))},0)}))}; Tr=function(h){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};h&&(t.interpreterHash=h);return t}; SC=function(h,t){t=t===void 0?0:t;var Y,L,q,z,V,l,H,w,W,y,X,U;return g.k(function(C){switch(C.T){case 1:Y=Tr(ld().G);if(g.wj("att_fet_ks"))return g.oc(C,7),g.K(C,A2(h,Y),9);g.oc(C,4);return g.K(C,Q_$(h,Y),6);case 6:V=C.G;q=V.Z6G;z=V.Ka8;L=V;g.Q6(C,3);break;case 4:return g.cW(C),g.bc(Error("Failed to fetch attestation challenge after "+(t+" attempts; not retrying for 24h."))),Rf(h,864E5),C.return({challenge:"",Aj:{},Y0:void 0,bgChallenge:void 0});case 9:L=C.G;if(!L)throw Error("Fetching Attestation challenge returned falsy"); if(!L.challenge)throw Error("Missing Attestation challenge");q=L.challenge;z=OH(q);if("c1a"in z&&(!L.bgChallenge||!L.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Q6(C,3);break;case 7:l=g.cW(C);g.bc(l);t++;if(t>=5)return g.bc(Error("Failed to fetch attestation challenge after "+(t+" attempts; not retrying for 24h."))),Rf(h,864E5),C.return({challenge:"",Aj:{},Y0:void 0,bgChallenge:void 0});H=1E3*Math.pow(2,t-1)+Math.random()*1E3;return C.return(new Promise(function(d){g.$I(0, function(){d(SC(h,t))},H)})); case 3:w=Number(z.t)||7200;Rf(h,w*1E3);W=void 0;if(!("c1a"in z&&L.bgChallenge)){C.eM(10);break}y=ZNL(L.bgChallenge);g.oc(C,11);return g.K(C,uMW(ld(),y),13);case 13:g.Q6(C,12);break;case 11:return X=g.cW(C),g.bc(X),C.return({challenge:q,Aj:z,Y0:W,bgChallenge:y});case 12:return g.oc(C,14),W=new VZ({challenge:y,O_:{Bd:"aGIf"}}),g.K(C,W.Pa,16);case 16:g.Q6(C,10);break;case 14:U=g.cW(C),g.bc(U),W=void 0;case 10:return C.return({challenge:q,Aj:z,Y0:W,bgChallenge:y})}})}; A2=function(h,t){var Y;return g.k(function(L){Y=h.T;if(!Y||Y.zZ())return L.return(A2(h.network,t));d2("att_pna",void 0,"attestation_challenge_fetch");return L.return(new Promise(function(q){Y.TX("publicytnetworkstatus-online",function(){A2(h.network,t).then(q)})}))})}; rnL=function(h){if(!h)throw Error("Fetching Attestation challenge returned falsy");if(!h.challenge)throw Error("Missing Attestation challenge");var t=h.challenge,Y=OH(t);if("c1a"in Y&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},h,{Z6G:t,Ka8:Y})}; Q_$=function(h,t){var Y,L,q,z,V;return g.k(function(l){switch(l.T){case 1:Y=void 0,L=0,q={};case 2:if(!(L<5)){l.eM(4);break}if(!(L>0)){l.eM(5);break}q.yu=1E3*Math.pow(2,L-1)+Math.random()*1E3;return g.K(l,new Promise(function(H){return function(w){g.$I(0,function(){w(void 0)},H.yu)}}(q)),5); case 5:return g.oc(l,7),g.K(l,A2(h,t),9);case 9:return z=l.G,l.return(rnL(z));case 7:Y=V=g.cW(l),V instanceof Error&&g.bc(V);case 8:L++;q={yu:void 0};l.eM(2);break;case 4:throw Y;}})}; Ggp=function(h,t){h.G=t}; cnb=function(h){var t,Y,L;return g.k(function(q){if(q.T==1)return g.K(q,Promise.race([h.G,null]),2);t=q.G;var z=SC(h);h.G=z;(Y=t)==null||(L=Y.Y0)==null||L.dispose();g.Z$(q)})}; Rf=function(h,t){function Y(){var q;return g.k(function(z){q=L-Date.now();return q<1E3?g.K(z,cnb(h),0):(fY(Y,0,Math.min(q,6E4)),z.eM(0))})} var L=Date.now()+t;Y()}; u9L=function(h,t){return new Promise(function(Y){g.$I(0,function(){Y(t())},h)})}; g.exi=function(h,t){var Y;return g.k(function(L){var q=g.il("yt.aba.att");return(Y=q?q:If.instance!==void 0?If.instance.S.bind(If.instance):null)?L.return(Y("ENGAGEMENT_TYPE_PLAYBACK",h,t)):L.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.JnL=function(){var h;return(h=(h=g.il("yt.aba.att2"))?h:If.instance!==void 0?If.instance.W.bind(If.instance):null)?h():Promise.resolve(!1)}; vCL=function(h,t){var Y=g.il("ytDebugData.callbacks");Y||(Y={},g.t3("ytDebugData.callbacks",Y));if(g.wj("web_dd_iu")||peL.includes(h))Y[h]=t}; BN=function(){var h=KED;var t=t===void 0?[]:t;var Y=Y===void 0?[]:Y;t=dF6.apply(null,[Gcc.apply(null,g.p(t))].concat(g.p(Y)));this.store=rHr(h,void 0,t)}; g.PN=function(h,t,Y){for(var L=Object.assign({},h),q=g.b(Object.keys(t)),z=q.next();!z.done;z=q.next()){z=z.value;var V=h[z],l=t[z];if(l===void 0)delete L[z];else if(V===void 0)L[z]=l;else if(Array.isArray(l)&&Array.isArray(V))L[z]=Y?[].concat(g.p(V),g.p(l)):l;else if(!Array.isArray(l)&&g.LH(l)&&!Array.isArray(V)&&g.LH(V))L[z]=g.PN(V,l,Y);else if(typeof l===typeof V)L[z]=l;else return t=new g.Ea("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:z,TJz:V,updateValue:l}),g.ZD(t), h}return L}; mD=function(h){var t=this;h=h===void 0?[]:h;this.G=[];this.S=this.T=0;this.W=void 0;this.totalLength=0;h.forEach(function(Y){t.append(Y)})}; aEL=function(h,t){return h.G.length===0?!1:(h=h.G[h.G.length-1])&&h.buffer===t.buffer&&h.byteOffset+h.length===t.byteOffset}; DN=function(h,t){t=g.b(t.G);for(var Y=t.next();!Y.done;Y=t.next())h.append(Y.value)}; hY=function(h,t,Y){return h.split(t).dV.split(Y).CM}; tY=function(h){h.W=void 0;h.T=0;h.S=0}; iT=function(h,t,Y){h.isFocused(t);return t-h.S+Y<=h.G[h.T].length}; xPb=function(h){if(!h.W){var t=h.G[h.T];h.W=new DataView(t.buffer,t.byteOffset,t.length)}return h.W}; ECi=function(h,t,Y){t=t===void 0?0:t;Y=Y===void 0?-1:Y;if(!h.totalLength||!Y)return new DataView(new ArrayBuffer(0));Y<0&&(Y=h.totalLength-t);h.focus(t);if(!iT(h,t,Y)){var L=h.T,q=h.S;h.focus(t+Y-1);q=new Uint8Array(h.S+h.G[h.T].length-q);for(var z=0,V=L;V<=h.T;V++)q.set(h.G[V],z),z+=h.G[V].length;h.G.splice(L,h.T-L+1,q);tY(h);h.focus(t)}L=h.G[h.T];return new DataView(L.buffer,L.byteOffset+t-h.S,Y)}; gX=function(h,t,Y){h=ECi(h,t===void 0?0:t,Y===void 0?-1:Y);return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}; Ya=function(h,t,Y){h=gX(h,t===void 0?0:t,Y===void 0?-1:Y);t=new Uint8Array(h.length);try{t.set(h)}catch(L){for(Y=0;Y>10;z=56320|z&1023}VY[q++]=z}}z=String.fromCharCode.apply(String,VY); q<1024&&(z=z.substring(0,q));Y.push(z)}return Y.join("")}; Hf=function(h,t){var Y;if((Y=lT)==null?0:Y.encodeInto)return t=lT.encodeInto(h,t),t.read>6|192:((q&64512)===55296&&L+1>18|240,t[Y++]=q>>12&63|128):t[Y++]=q>>12|224,t[Y++]=q>>6&63|128),t[Y++]=q&63|128)}return Y}; wX=function(h){if(lT)return lT.encode(h);var t=new Uint8Array(Math.ceil(h.length*1.2)),Y=Hf(h,t);t.lengthY&&(t=t.subarray(0,Y));return t}; Wf=function(h){this.G=h;this.pos=0;this.T=-1}; yY=function(h){var t=LW(h.G,h.pos);++h.pos;if(t<128)return t;for(var Y=t&127,L=1;t>=128;)t=LW(h.G,h.pos),++h.pos,L*=128,Y+=(t&127)*L;return Y}; Xw=function(h,t){var Y=h.T;for(h.T=-1;h.pos+1<=h.G.totalLength;){Y<0&&(Y=yY(h));var L=Y>>3,q=Y&7;if(L===t)return!0;if(L>t){h.T=Y;break}Y=-1;switch(q){case 0:yY(h);break;case 1:h.pos+=8;break;case 2:L=yY(h);h.pos+=L;break;case 5:h.pos+=4}}return!1}; Uz=function(h,t){if(Xw(h,t))return yY(h)}; CW=function(h,t){if(Xw(h,t))return!!yY(h)}; M6=function(h,t){if(Xw(h,t)){t=yY(h);var Y=gX(h.G,h.pos,t);h.pos+=t;return Y}}; Fw=function(h,t){if(h=M6(h,t))return g.N6(h)}; sz=function(h,t,Y){if(h=M6(h,t))return Y(new Wf(new mD([h])))}; jm=function(h,t){for(var Y=[];Xw(h,t);)Y.push(yY(h));return Y.length?Y:void 0}; Z1=function(h,t,Y){for(var L=[],q;q=M6(h,t);)L.push(Y(new Wf(new mD([q]))));return L.length?L:void 0}; bT=function(h,t){h=h instanceof Uint8Array?new mD([h]):h;return t(new Wf(h))}; nCL=function(h,t,Y){if(t&&Y&&Y.buffer===t.exports.memory.buffer){var L=t.realloc(Y.byteOffset,h);if(L)return new Uint8Array(t.exports.memory.buffer,L,h)}h=t?new Uint8Array(t.exports.memory.buffer,t.malloc(h),h):new Uint8Array(h);Y&&h.set(Y);return h}; fEL=function(h,t){this.S=t;this.pos=0;this.T=[];this.G=nCL(h===void 0?4096:h,t);this.view=new DataView(this.G.buffer,this.G.byteOffset,this.G.byteLength)}; oi=function(h,t){t=h.pos+t;if(!(h.G.length>=t)){for(var Y=h.G.length*2;Y268435455){oi(h,4);for(var Y=t&1073741823,L=0;L<4;L++)h.view.setUint8(h.pos,Y&127|128),Y>>=7,h.pos+=1;t=Math.floor(t/268435456)}for(oi(h,4);t>127;)h.view.setUint8(h.pos,t&127|128),t>>=7,h.pos+=1;h.view.setUint8(h.pos,t);h.pos+=1}; G1=function(h,t,Y){Y!==void 0&&(dX(h,t*8),dX(h,Y))}; QY=function(h,t,Y){Y!==void 0&&G1(h,t,Y?1:0)}; rX=function(h,t,Y){Y!==void 0&&(dX(h,t*8+2),t=Y.length,dX(h,t),oi(h,t),h.G.set(Y,h.pos),h.pos+=t)}; ka=function(h,t,Y){Y!==void 0&&($P3(h,t,Math.ceil(Math.log2(Y.length*4+2)/7)),oi(h,Y.length*1.2),t=Hf(Y,h.G.subarray(h.pos)),h.pos+t>h.G.length&&(oi(h,t),t=Hf(Y,h.G.subarray(h.pos))),h.pos+=t,Td6(h))}; $P3=function(h,t,Y){Y=Y===void 0?2:Y;dX(h,t*8+2);h.T.push(h.pos);h.T.push(Y);h.pos+=Y}; Td6=function(h){for(var t=h.T.pop(),Y=h.T.pop(),L=h.pos-Y-t;t--;){var q=t?128:0;h.view.setUint8(Y++,L&127|q);L>>=7}}; Oz=function(h,t,Y,L,q){Y&&($P3(h,t,q===void 0?3:q),L(h,Y),Td6(h))}; g.nW=function(h,t,Y){Y=new fEL(4096,Y);t(Y,h);return new Uint8Array(Y.G.buffer,Y.G.byteOffset,Y.pos)}; g.fW=function(h){var t=new Wf(new mD([re(decodeURIComponent(h))]));h=Fw(t,2);t=Uz(t,4);var Y=An6[t];if(typeof Y==="undefined")throw h=new g.Ea("Failed to recognize field number",{name:"EntityKeyHelperError",xP8:t}),g.ZD(h),h;return{Mz:t,entityType:Y,entityId:h}}; g.$a=function(h,t){var Y=Y===void 0?0:Y;var L=new fEL;rX(L,2,wX(h));h=SoL[t];if(typeof h==="undefined")throw Y=new g.Ea("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),g.ZD(Y),Y;G1(L,4,h);G1(L,5,1);t=new Uint8Array(L.G.buffer,L.G.byteOffset,L.pos);return encodeURIComponent(g.Gv(t,Y))}; T1=function(h,t,Y,L){if(L===void 0)return L=Object.assign({},h[t]||{}),Y=(delete L[Y],L),L={},Object.assign({},h,(L[t]=Y,L));var q={},z={};return Object.assign({},h,(z[t]=Object.assign({},h[t],(q[Y]=L,q)),z))}; IEp=function(h,t,Y,L,q){var z=h[t];if(z==null||!z[Y])return h;L=g.PN(z[Y],L,q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");q={};z={};return Object.assign({},h,(z[t]=Object.assign({},h[t],(q[Y]=L,q)),z))}; Rx6=function(h,t){h=h===void 0?{}:h;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(L,q){var z,V=(z=q.options)==null?void 0:z.persistenceOption;if(V&&V!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&V!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return L;if(!q.entityKey)return g.ZD(Error("Missing entity key")),L;if(q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!q.payload)return q=new g.Ea("REPLACE entity mutation is missing a payload",{entityKey:q.entityKey}),g.ZD(q),L;var l=g.qn(q.payload); return T1(L,l,q.entityKey,q.payload[l])}if(q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{q=q.entityKey;try{var H=g.fW(q).entityType;l=T1(L,H,q);break a}catch(y){if(y instanceof Error){q=new g.Ea("Failed to deserialize entity key",{entityKey:q,originalMessage:y.message});g.ZD(q);l=L;break a}throw y;}l=void 0}return l}if(q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!q.payload)return q=new g.Ea("UPDATE entity mutation is missing a payload",{entityKey:q.entityKey}),g.ZD(q),L;l=g.qn(q.payload);var w,W;return IEp(L, l,q.entityKey,q.payload[l],(w=q.fieldMask)==null?void 0:(W=w.mergeOptions)==null?void 0:W.repeatedFieldsMergeOption)}return L},h); case "REPLACE_ENTITY":var Y=t.payload;return T1(h,Y.entityType,Y.key,Y.LK);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(L,q){var z=t.payload[q];return Object.keys(z).reduce(function(V,l){return T1(V,q,l,z[l])},L)},h); case "UPDATE_ENTITY":return Y=t.payload,IEp(h,Y.entityType,Y.key,Y.LK,Y.tti);default:return h}}; AY=function(h,t,Y){return h[t]?h[t][Y]||null:null}; Sm=function(h){return window.Int32Array?new Int32Array(h):Array(h)}; D1=function(h){g.O.call(this);this.counter=[0,0,0,0];this.T=new Uint8Array(16);this.G=16;if(!BdL){var t,Y=new Uint8Array(256),L=new Uint8Array(256);var q=1;for(t=0;t<256;t++)Y[q]=t,L[t]=q,q^=q<<1^(q>>7&&283);Ii=new Uint8Array(256);Ri=Sm(256);Bf=Sm(256);Pf=Sm(256);m5=Sm(256);for(var z=0;z<256;z++){q=z?L[255^Y[z]]:0;q^=q<<1^q<<2^q<<3^q<<4;q=q&255^q>>>8^99;Ii[z]=q;t=q<<1^(q>>7&&283);var V=t^q;Ri[z]=t<<24|q<<16|q<<8|V;Bf[z]=V<<24|Ri[z]>>>8;Pf[z]=q<<24|Bf[z]>>>8;m5[z]=q<<24|Pf[z]>>>8}BdL=!0}q=Sm(44);for(Y= 0;Y<4;Y++)q[Y]=h[4*Y]<<24|h[4*Y+1]<<16|h[4*Y+2]<<8|h[4*Y+3];for(L=1;Y<44;Y++)h=q[Y-1],Y%4||(h=(Ii[h>>16&255]^L)<<24|Ii[h>>8&255]<<16|Ii[h&255]<<8|Ii[h>>>24],L=L<<1^(L>>7&&283)),q[Y]=q[Y-4]^h;this.key=q}; PNL=function(h,t){for(var Y=0;Y<4;Y++)h.counter[Y]=t[Y*4]<<24|t[Y*4+1]<<16|t[Y*4+2]<<8|t[Y*4+3];h.G=16}; mPb=function(h){for(var t=h.key,Y=h.counter[0]^t[0],L=h.counter[1]^t[1],q=h.counter[2]^t[2],z=h.counter[3]^t[3],V=3;V>=0&&!(h.counter[V]=-~h.counter[V]);V--);for(var l,H,w=4;w<40;)V=Ri[Y>>>24]^Bf[L>>16&255]^Pf[q>>8&255]^m5[z&255]^t[w++],l=Ri[L>>>24]^Bf[q>>16&255]^Pf[z>>8&255]^m5[Y&255]^t[w++],H=Ri[q>>>24]^Bf[z>>16&255]^Pf[Y>>8&255]^m5[L&255]^t[w++],z=Ri[z>>>24]^Bf[Y>>16&255]^Pf[L>>8&255]^m5[q&255]^t[w++],Y=V,L=l,q=H;h=h.T;V=t[40];h[0]=Ii[Y>>>24]^V>>>24;h[1]=Ii[L>>16&255]^V>>16&255;h[2]=Ii[q>>8&255]^ V>>8&255;h[3]=Ii[z&255]^V&255;V=t[41];h[4]=Ii[L>>>24]^V>>>24;h[5]=Ii[q>>16&255]^V>>16&255;h[6]=Ii[z>>8&255]^V>>8&255;h[7]=Ii[Y&255]^V&255;V=t[42];h[8]=Ii[q>>>24]^V>>>24;h[9]=Ii[z>>16&255]^V>>16&255;h[10]=Ii[Y>>8&255]^V>>8&255;h[11]=Ii[L&255]^V&255;V=t[43];h[12]=Ii[z>>>24]^V>>>24;h[13]=Ii[Y>>16&255]^V>>16&255;h[14]=Ii[L>>8&255]^V>>8&255;h[15]=Ii[q&255]^V&255}; iw=function(){if(!hP&&!g.kL){if(tP)return tP;var h;tP=(h=window.crypto)==null?void 0:h.subtle;var t,Y,L;if(((t=tP)==null?0:t.importKey)&&((Y=tP)==null?0:Y.sign)&&((L=tP)==null?0:L.encrypt))return tP;tP=void 0}}; g.YB=function(h){var t=iw();t&&(this.G=new DP$(h,t));this.T=new g.gN(h)}; DP$=function(h,t){this.T=h;this.subtleCrypto=t}; hon=function(h,t,Y){var L,q;return g.k(function(z){switch(z.T){case 1:if(h.G){z.eM(2);break}return g.K(z,h.subtleCrypto.importKey("raw",h.T,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:h.G=z.G;case 2:return L={name:"AES-CTR",counter:Y,length:128},g.K(z,h.subtleCrypto.encrypt(L,h.G,t),4);case 4:return q=z.G,z.return(new Uint8Array(q))}})}; g.gN=function(h){this.T=h}; Lb=function(h){this.X=new Uint8Array(64);this.S=new Uint8Array(64);this.W=0;this.U=new Uint8Array(64);this.T=0;this.X.set(h);this.S.set(h);for(h=0;h<64;h++)this.X[h]^=92,this.S[h]^=54;this.reset()}; tMD=function(h,t,Y){for(var L=h.C,q=h.G[0],z=h.G[1],V=h.G[2],l=h.G[3],H=h.G[4],w=h.G[5],W=h.G[6],y=h.G[7],X,U,C,d=0;d<64;)d<16?(L[d]=C=t[Y]<<24|t[Y+1]<<16|t[Y+2]<<8|t[Y+3],Y+=4):(X=L[d-2],U=L[d-15],C=L[d-7]+L[d-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),L[d]=C),X=y+qp[d]+C+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&w^~H&W),U=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&z^q&V^z&V),y=X+U,l+=X,d++,d<16?(L[d]=C=t[Y]<<24|t[Y+1]<<16|t[Y+2]<<8|t[Y+3],Y+=4):(X= L[d-2],U=L[d-15],C=L[d-7]+L[d-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),L[d]=C),X=W+qp[d]+C+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&H^~l&w),U=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&q^y&z^q&z),W=X+U,V+=X,d++,d<16?(L[d]=C=t[Y]<<24|t[Y+1]<<16|t[Y+2]<<8|t[Y+3],Y+=4):(X=L[d-2],U=L[d-15],C=L[d-7]+L[d-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),L[d]=C),X=w+qp[d]+C+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&l^ ~V&H),U=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&y^W&q^y&q),w=X+U,z+=X,d++,d<16?(L[d]=C=t[Y]<<24|t[Y+1]<<16|t[Y+2]<<8|t[Y+3],Y+=4):(X=L[d-2],U=L[d-15],C=L[d-7]+L[d-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),L[d]=C),X=H+qp[d]+C+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&V^~z&l),U=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&W^w&y^W&y),C=y,y=l,l=C,C=W,W=V,V=C,C=w,w=z,z=C,H=q+X,q=X+U,d++;h.G[0]=q+h.G[0]|0;h.G[1]=z+h.G[1]|0;h.G[2]=V+h.G[2]|0;h.G[3]= l+h.G[3]|0;h.G[4]=H+h.G[4]|0;h.G[5]=w+h.G[5]|0;h.G[6]=W+h.G[6]|0;h.G[7]=y+h.G[7]|0}; gF$=function(h){var t=new Uint8Array(32),Y=64-h.T;h.T>55&&(Y+=64);var L=new Uint8Array(Y);L[0]=128;for(var q=h.W*8,z=1;z<9;z++){var V=q%256;L[Y-z]=V;q=(q-V)/256}h.update(L);for(Y=0;Y<8;Y++)t[Y*4]=h.G[Y]>>>24,t[Y*4+1]=h.G[Y]>>>16&255,t[Y*4+2]=h.G[Y]>>>8&255,t[Y*4+3]=h.G[Y]&255;ix3(h);return t}; ix3=function(h){h.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];h.C=[];h.C.length=64;h.W=0;h.T=0}; YPp=function(h){this.G=h}; LYb=function(h,t,Y){h=new Lb(h.G);h.update(t);h.update(Y);t=gF$(h);h.update(h.X);h.update(t);t=gF$(h);h.reset();return t}; qP1=function(h){this.T=h}; zoL=function(h,t,Y,L){var q,z,V;return g.k(function(l){switch(l.T){case 1:if(h.G){l.eM(2);break}return g.K(l,L.importKey("raw",h.T,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:h.G=l.G;case 2:return q=new Uint8Array(t.length+Y.length),q.set(t),q.set(Y,t.length),z={name:"HMAC",hash:"SHA-256"},g.K(l,L.sign(z,h.G,q),4);case 4:return V=l.G,l.return(new Uint8Array(V))}})}; VMi=function(h,t,Y){h.S||(h.S=new YPp(h.T));return LYb(h.S,t,Y)}; NrD=function(h,t,Y){var L,q;return g.k(function(z){if(z.T==1){L=iw();if(!L)return z.return(VMi(h,t,Y));g.oc(z,3);return g.K(z,zoL(h,t,Y,L),5)}if(z.T!=3)return z.return(z.G);q=g.cW(z);g.bc(q);hP=!0;return z.return(VMi(h,t,Y))})}; Hx3=function(h){for(var t="",Y=0;Y=0||Cr(h,0,"gad_source",h.search(Fz))>=0}; FYc=function(){this.G=new Map}; jPc=function(h,t){var Y=bS().resolve(sPb);if(MM3(t)){var L=sM(t,"gclid");t={handleEvent:function(l){h&&!h.closed&&typeof h.postMessage==="function"&&l&&l.origin&&l.source===h&&l.data&&l.data.action==="gcl_setup"&&h.postMessage(Object.assign({},{action:"gcl_transfer"},L&&{gclid:L},{gadSource:2}),l.origin)}}; for(var q=g.b(Y.G),z=q.next();!z.done;z=q.next()){var V=g.b(z.value);z=V.next().value;V=V.next().value;if(z.closed)try{window.removeEventListener("message",V),Y.G.delete(z)}catch(l){g.ZD(l)}}h&&Y.G.size<15&&(Y.G.set(h,t),window.addEventListener("message",t))}}; z7=function(h,t,Y){if(!t)return h.length>=1?h[h.length-1]:null;for(var L=g.b(h),q=L.next();!q.done;q=L.next())if(q=q.value,q.width&&q.height&&(Y&&q.width>=t||!Y&&q.height>=t))return q;for(t=h.length-1;t>=0;t--)if(Y&&h[t].width||!Y&&h[t].height)return h[t];return h[0]}; VM=function(){this.state=1;this.Y0=null;this.Xv=void 0}; bxL=function(h,t,Y,L,q,z){var V=V===void 0?"trayride":V;Y?(h.H3(2),g.Be(Y,function(){if(window[V])Zx6(h,L,V,q);else{h.H3(3);var l=spL(Y),H=document.getElementById(l);H&&(MRL(l),H.parentNode.removeChild(H));g.bc(new g.Ea("BL:ULB",""+Y))}},z)):t?(z=g.y_("SCRIPT"),t instanceof Mr?(z.textContent=FL(t),sb(z)):z.textContent=t,z.nonce=C0(document),document.head.appendChild(z),document.head.removeChild(z),window[V]?Zx6(h,L,V,q):(h.H3(4),g.bc(new g.Ea("BL:ULBJ")))):g.bc(new g.Ea("BL:ULV"))}; Zx6=function(h,t,Y,L){h.H3(5);var q=!!h.Xv&&oFW.includes(g.VC(h.Xv)||"");try{var z=new VZ({program:t,globalName:Y,O_:{disable:!g.wj("att_web_record_metrics")||!g.wj("att_skip_metrics_for_cookieless_domains_ks")&&q,Bd:"aGIf"}});z.Pa.then(function(){h.H3(6);L&&L(t)}); h.yT(z)}catch(V){h.H3(7),V instanceof Error&&g.bc(V)}}; Np=function(){var h=g.il("yt.abuse.playerAttLoader");return h&&["bgvma","bgvmb","bgvmc"].every(function(t){return t in h})?h:null}; lw=function(){VM.apply(this,arguments)}; HL=function(){}; dei=function(h,t,Y){for(var L=!1,q=g.b(h.x3.entries()),z=q.next();!z.done;z=q.next())z=g.b(z.value).next().value,z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&z.rU==="core"&&(L=!0);if(L){a:if(!Y){h=g.b(h.x3.entries());for(Y=h.next();!Y.done;Y=h.next())if(L=g.b(Y.value),Y=L.next().value,L=L.next().value,Y.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.rU==="core"){Y=L.layoutId;break a}Y=void 0}Y?t.SA(Y):gP("No triggering layout ID available when attempting to mute.")}}; wN=function(h,t){this.NG=h;this.L3=t}; WL=function(){}; yM=function(){}; QPL=function(h){g.O.call(this);var t=this;this.ke=h;this.G=new Map;Xe(this,"commandExecutorCommand",function(Y,L,q){GdW(t,Y.commands,L,q)}); Xe(this,"clickTrackingParams",function(){})}; rlb=function(h,t){Xe(h,t.pV(),function(Y,L,q){t.dN(Y,L,q)})}; Xe=function(h,t,Y){h.Ui();h.G.get(t)&&g.ZD(Error("Extension name "+t+" already registered"));h.G.set(t,Y)}; GdW=function(h,t,Y,L){t=t===void 0?[]:t;h.Ui();var q=[],z=[];t=g.b(t);for(var V=t.next();!V.done;V=t.next())V=V.value,g.A(V,cl6)||g.A(V,u2W)?q.push(V):z.push(V);q=g.b(q);for(t=q.next();!t.done;t=q.next())U7(h,t.value,Y,L);z=g.b(z);for(q=z.next();!q.done;q=z.next())U7(h,q.value,Y,L)}; U7=function(h,t,Y,L){h.Ui();t.loggingUrls&&eo$(h,"loggingUrls",t.loggingUrls,Y,L);t=g.b(Object.entries(t));for(var q=t.next();!q.done;q=t.next()){var z=g.b(q.value);q=z.next().value;z=z.next().value;q==="openPopupAction"?h.ke.get().Vy("innertubeCommand",{openPopupAction:z}):q==="confirmDialogEndpoint"?h.ke.get().Vy("innertubeCommand",{confirmDialogEndpoint:z}):Jlc.hasOwnProperty(q)||eo$(h,q,z,Y,L)}}; eo$=function(h,t,Y,L,q){if((h=h.G.get(t))&&typeof h==="function")try{h(Y,L,q)}catch(z){g.ZD(z)}else t=new g.Ea("Unhandled field",t),g.bc(t)}; Cb=function(h,t,Y){this.q0=h;this.G=t;this.fb=Y;F2(bS(),{xp:sPb,VL:FYc})}; Mp=function(h){this.value=h}; Fe=function(h){this.value=h}; s7=function(h){this.value=h}; jN=function(h){this.value=h}; ZY=function(h){this.value=h}; bw=function(h){this.value=h}; oT=function(h){this.value=h}; dN=function(){Mp.apply(this,arguments)}; G7=function(h){this.value=h}; QM=function(h){this.value=h}; rN=function(h){this.value=h}; cL=function(h){this.value=h}; uw=function(h){this.value=h}; eN=function(h){this.value=h}; JP=function(h){this.value=h}; pb=function(h){this.value=h}; vL=function(h){this.value=h}; Kb=function(h){this.value=h}; aT=function(){Mp.apply(this,arguments)}; xB=function(h){this.value=h}; E7=function(h){this.value=h}; kB=function(h){this.value=h}; O7=function(h){this.value=h}; nb=function(h){this.value=h}; fb=function(h){this.value=h}; $B=function(h){this.value=h}; T7=function(h){this.value=h}; AP=function(h){this.value=h}; SN=function(h){this.value=h}; IT=function(h){this.value=h}; RT=function(h){this.value=h}; BL=function(h){this.value=h}; PL=function(h){this.value=h}; mk=function(h){this.value=h}; DY=function(h){this.value=h}; hW=function(h){this.value=h}; tW=function(h){this.value=h}; iM=function(h){this.value=h}; gM=function(h){this.value=h}; YV=function(h){this.value=h}; LZ=function(h){this.value=h}; qC=function(h){this.value=h}; zK=function(h){this.value=h}; VK=function(h){this.value=h}; NC=function(h){this.value=h}; lM=function(h){this.value=h}; Hn=function(h){this.value=h}; wM=function(h){this.value=h}; Wn=function(h){this.value=h}; yK=function(h){this.value=h}; X7=function(h){this.value=h}; Uc=function(h){this.value=h}; CZ=function(h){this.value=h}; MC=function(h){this.value=h}; F7=function(h){this.value=h}; sc=function(h){this.value=h}; jk=function(h){this.value=h}; Zp=function(){Mp.apply(this,arguments)}; bM=function(h){this.value=h}; oS=function(){Mp.apply(this,arguments)}; dM=function(){Mp.apply(this,arguments)}; GK=function(){Mp.apply(this,arguments)}; QK=function(){Mp.apply(this,arguments)}; rM=function(){Mp.apply(this,arguments)}; cn=function(h){this.value=h}; uM=function(h){this.value=h}; ek=function(h){this.value=h}; JW=function(h){this.value=h}; pZ=function(h){this.value=h}; KZ=function(h,t,Y){if(Y&&!Y.includes(h.layoutType))return!1;t=g.b(t);for(Y=t.next();!Y.done;Y=t.next())if(!vn(h.clientMetadata,Y.value))return!1;return!0}; aS=function(){return""}; p3p=function(h,t){switch(h){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return t(h),8}}; xV=function(h,t,Y,L){L=L===void 0?!1:L;yv.call(this,h);this.oJ=Y;this.Bp=L;this.args=[];t&&this.args.push(t)}; P=function(h,t,Y,L){L=L===void 0?!1:L;yv.call(this,h);this.oJ=Y;this.Bp=L;this.args=[];t&&this.args.push(t)}; Ec=function(h){var t=new Map;h.forEach(function(Y){t.set(Y.G(),Y)}); this.G=t}; vn=function(h,t){return h.G.has(t)}; kV=function(h,t){h=h.G.get(t);if(h!==void 0)return h.get()}; Oc=function(h){return Array.from(h.G.keys())}; nZ=function(h,t,Y){if(Y&&Y!==h.slotType)return!1;t=g.b(t);for(Y=t.next();!Y.done;Y=t.next())if(!vn(h.clientMetadata,Y.value))return!1;return!0}; KYi=function(h){var t;return((t=vFp.get(h))==null?void 0:t.zR)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; $V=function(h,t){var Y={type:t.slotType,controlFlowManagerLayer:ak3.get(t.rU)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(Y.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(Y.slotPhysicalPosition=t.slotPhysicalPosition);if(h){Y.debugData={slotId:t.slotId};if(h=t.slotEntryTrigger)Y.debugData.slotEntryTriggerData=fZ(h);h=t.slotFulfillmentTriggers;Y.debugData.fulfillmentTriggerData=[];h=g.b(h);for(var L=h.next();!L.done;L=h.next())Y.debugData.fulfillmentTriggerData.push(fZ(L.value)); t=t.slotExpirationTriggers;Y.debugData.expirationTriggerData=[];t=g.b(t);for(h=t.next();!h.done;h=t.next())Y.debugData.expirationTriggerData.push(fZ(h.value))}return Y}; xe3=function(h,t){var Y={type:t.layoutType,controlFlowManagerLayer:ak3.get(t.rU)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h&&(Y.debugData={layoutId:t.layoutId});return Y}; fZ=function(h,t){var Y={type:h.triggerType};t!=null&&(Y.category=t);h.triggeringSlotId!=null&&(Y.triggerSourceData||(Y.triggerSourceData={}),Y.triggerSourceData.associatedSlotId=h.triggeringSlotId);h.triggeringLayoutId!=null&&(Y.triggerSourceData||(Y.triggerSourceData={}),Y.triggerSourceData.associatedLayoutId=h.triggeringLayoutId);return Y}; EFn=function(h,t,Y,L){t={opportunityType:t};h&&(L||Y)&&(L=g.CQ(L||[],function(q){return $V(h,q)}),t.debugData=Object.assign({},Y&&Y.length>0?{associatedSlotId:Y}:{},L.length>0?{slots:L}:{})); return t}; AW=function(h,t){return function(Y){return kdL(TK(h),t.slotId,t.slotType,t.slotPhysicalPosition,t.rU,t.slotEntryTrigger,t.slotFulfillmentTriggers,t.slotExpirationTriggers,Y.layoutId,Y.layoutType,Y.rU)}}; kdL=function(h,t,Y,L,q,z,V,l,H,w,W){return{adClientDataEntry:{slotData:$V(h,{slotId:t,slotType:Y,slotPhysicalPosition:L,rU:q,slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:l,clientMetadata:new Ec([])}),layoutData:xe3(h,{layoutId:H,layoutType:w,rU:W,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],AC:new Map,clientMetadata:new Ec([]),X6:{}})}}}; IS=function(h){this.uP=h;h=Math.random();var t=this.uP.get();t=g.Sk(t.K.J().experiments,"html5_debug_data_log_probability");t=Number.isFinite(t)&&t>=0&&t<=1?t:0;this.G=h1){g.bc(new g.Ea("Exit already started",{current:h.currentState}));var Y=!1}else Y=!0;if(!Y)return!1;h.currentState=2;h.G=t;return!0}; DA=function(h){if(h.currentState!==2)return!1;h.currentState=3;return!0}; Uk3=function(h,t){var Y=new Map;h=g.b(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;if(L.layoutType==="LAYOUT_TYPE_MEDIA")var q="v";else L.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(q=kV(L.clientMetadata,"metadata_type_linked_in_player_layout_type"),q=q==="LAYOUT_TYPE_ENDCAP"||q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":q==="LAYOUT_TYPE_SURVEY"?"s":q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):q="u";Y.set(L.layoutId,q);if(q==="u"){var z={};q=t;L=(z.c=L.layoutId,z);q.K.Pm("uct",L)}}h= t.gV();hy={contentCpn:h,Dn:Y};L={};Y=(L.ct=Y.size,L.c=h,L);t.K.Pm("acc",Y)}; CRr=function(){hy={contentCpn:"",Dn:new Map}}; ty=function(h){var t;return(t=hy.Dn.get(h))!=null?t:"u"}; i_=function(h,t,Y){h.K.Pm(t,Y);MTi(h)}; FU6=function(h){var t=h.layoutId,Y=h.i9;if(h.i4){var L={};i_(h.q0,"slso",(L.ec=t,L.is=Y,L.ctp=ty(t),L))}}; gq=function(h){var t=h.layoutId,Y=h.i9;if(h.i4){var L={};i_(h.q0,"slse",(L.ec=t,L.is=Y,L.ctp=ty(t),L))}}; s$b=function(h){var t=h.layoutId,Y=h.i9,L=h.q0;h.i4&&(h={},i_(L,"sleo",(h.xc=t,h.is=Y,h.ctp=ty(t),h)),MTi(L))}; j$i=function(h){var t=h.cpn,Y=h.q0;h=h.i9;var L=Y.gV(),q={};i_(Y,"ce",(q.ec=t,q.ia=t!==L,q.r=hy.Dn.has(t),q.is=h,q.ctp=ty(t),q))}; MTi=function(h){if(h.gV()!==hy.contentCpn){var t={};t=(t.c=hy.contentCpn,t);h.K.Pm("ccm",t)}}; Zc3=function(h){var t=h.cpn,Y=h.q0;h=h.i9;var L=Y.gV(),q={};i_(Y,"cx",(q.xc=t,q.ia=t!==L,q.r=hy.Dn.has(t),q.is=h,q.ctp=ty(t),q))}; bcL=function(h){this.params=h;this.G=new Set}; o7D=function(h,t,Y){if(!h.G.has(t)){h.G.add(t);var L={};h.params.j1.hQ(t,Object.assign({},Y,(L.p_ac=h.params.adCpn,L.p_isv=h.params.QS&&h.params.yx,L)))}}; LA=function(h,t,Y){if(YW(h.params.j1.uP.get(),!0)){var L=Y.flush,q={};o7D(h,t,(q.cts=Y.currentTimeSec,q.f=L,q))}}; dkL=function(h,t){this.q0=h;this.uP=t}; qS=function(h){var t=[];if(h){h=g.b(Object.entries(h));for(var Y=h.next();!Y.done;Y=h.next()){var L=g.b(Y.value);Y=L.next().value;L=L.next().value;L!==void 0&&(L=typeof L==="boolean"?""+ +L:(""+L).replace(/[:,=]/g,"_"),t.push(Y+"."+L))}}return t.join(";")}; g.zk=function(h,t,Y){t=t===void 0?{}:t;this.errorCode=h;this.details=t;this.severity=Y===void 0?0:Y}; Vb=function(h){return h===1||h===2}; NS=function(h,t){t=t===void 0?0:t;if(h instanceof g.zk)return h;h=h&&h instanceof Error?h:Error(""+h);Vb(t)?g.ZD(h):g.bc(h);return new g.zk(t===1?"player.fatalexception":"player.exception",{name:""+h.name,message:""+h.message},t)}; G6b=function(h,t){function Y(){var L=g.OL.apply(0,arguments);h.removeEventListener("playing",Y);t.apply(null,g.p(L))} h.addEventListener("playing",Y)}; l_=function(){var h=g.il("yt.player.utils.videoElement_");h||(h=g.y_("VIDEO"),g.t3("yt.player.utils.videoElement_",h));return h}; Hd=function(h){var t=l_();return!!(t&&t.canPlayType&&t.canPlayType(h))}; Wd=function(h){if(/opus/.test(h)&&g.wq&&!CS("38")&&!g.xT())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(h);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(h);if(/webm/.test(h)&&!MwD())return!1;h==='audio/mp4; codecs="mp4a.40.2"'&&(h='video/mp4; codecs="avc1.4d401f"');return!!Hd(h)}; Q$b=function(h){try{var t=Wd('video/mp4; codecs="avc1.42001E"')||Wd('video/webm; codecs="vp9"');return(Wd('audio/mp4; codecs="mp4a.40.2"')||Wd('audio/webm; codecs="opus"'))&&(t||!h)||Hd('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(Y){return"html5.missingapi"}}; yb=function(){var h=l_();return!(!h.webkitSupportsPresentationMode||typeof h.webkitSetPresentationMode!=="function")}; XS=function(){var h=l_();try{var t=h.muted;h.muted=!t;return h.muted!==t}catch(Y){}return!1}; rsL=function(){var h;return((h=navigator.connection)==null?void 0:h.type)||""}; g.UF=function(){sa.apply(this,arguments)}; CA=function(h,t,Y,L,q,z,V,l){this.sampleRate=h===void 0?0:h;this.numChannels=t===void 0?0:t;this.spatialAudioType=Y===void 0?"SPATIAL_AUDIO_TYPE_NONE":Y;this.G=L===void 0?!1:L;this.S=q;this.W=z;this.audioQuality=V===void 0?"AUDIO_QUALITY_UNKNOWN":V;this.T=l===void 0?!1:l}; sF=function(h,t,Y,L,q,z,V,l,H){this.width=h;this.height=t;this.quality=z||MS(h,t);this.qualityOrdinal=g.FS[this.quality];this.fps=Y||0;this.stereoLayout=!q||L!=null&&L!=="UNKNOWN"&&L!=="RECTANGULAR"?0:q;this.projectionType=L?L==="EQUIRECTANGULAR"&&q===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":L:"UNKNOWN";(h=V)||(h=g.FS[this.quality],h===0?h="Auto":(t=this.fps,Y=this.projectionType,h=h.toString()+(Y==="EQUIRECTANGULAR"||Y==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Y==="MESH"?"s":"p")+(t>55?"60":t>49?"50": t>39?"48":"")));this.qualityLabel=h;this.G=l||"";this.primaries=H||""}; MS=function(h,t){var Y=Math.max(h,t);h=Math.min(h,t);t=j2[0];for(var L=0;L=Math.floor(z*16/9)*1.3||h>=z*1.3)return t;t=q}return"tiny"}; ou=function(h,t,Y){Y=Y===void 0?{}:Y;this.id=h;this.mimeType=t;Y.Lb>0||(Y.Lb=16E3);Object.assign(this,Y);h=g.b(this.id.split(";"));this.itag=h.next().value;this.G=h.next().value;this.containerType=Zd(t);this.wU=b_[this.itag]||""}; dq=function(h){return h.wU==="9"||h.wU==="("||h.wU==="9h"||h.wU==="(h"}; cs3=function(h){return h.wU==="H"||h.wU==="h"}; Gk=function(h){return h.wU==="9h"||h.wU==="(h"}; uR3=function(h){return!!h.EX&&!!h.EX.fairplay&&(h.wU==="("||h.wU==="(h"||h.wU==="A"||h.wU==="MEAC3")||Qb&&!!h.EX&&h.wU==="1e"}; rq=function(h){return h.wU==="1"||h.wU==="1h"||Qb&&h.wU==="1e"}; cd=function(h){return h.wU==="mac3"||h.wU==="meac3"||h.wU==="m"||h.wU==="i"}; u_=function(h){return h.wU==="MAC3"||h.wU==="MEAC3"||h.wU==="M"||h.wU==="I"}; g.e2=function(h){return h.containerType===1}; eS6=function(h){return h.wU==="("||h.wU==="(h"||h.wU==="H"||Qb&&h.wU==="1e"}; Jy=function(h){return h.mimeType==="application/x-mpegURL"}; g.pA=function(h,t){return{itag:+h.itag,lmt:t?0:h.lastModified,xtags:h.G||""}}; Js6=function(h){var t=navigator.mediaCapabilities;if(t==null||!t.decodingInfo||h.wU==="f")return Promise.resolve();var Y={type:h.audio&&h.video?"file":"media-source"};h.video&&(Y.video={contentType:h.mimeType,width:h.video.width||640,height:h.video.height||360,bitrate:h.Lb*8||1E6,framerate:h.video.fps||30});h.audio&&(Y.audio={contentType:h.mimeType,channels:""+(h.audio.numChannels||2),bitrate:h.Lb*8||128E3,samplerate:h.audio.sampleRate||44100});return t.decodingInfo(Y).then(function(L){h.T=L})}; vd=function(h){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(h)}; KA=function(h){return/(vp9|vp09|vp8|avc1|av01)/.test(h)}; au=function(h){return h.includes("vtt")||h.includes("text/mp4")}; Zd=function(h){return h.indexOf("/mp4")>=0?1:h.indexOf("/webm")>=0?2:h.indexOf("/x-flv")>=0?3:h.indexOf("/vtt")>=0?4:0}; xW=function(h,t,Y,L,q,z){var V=new CA;t in g.FS||(t="small");t==="light"&&(t="tiny");L&&q?(q=Number(q),L=Number(L)):(q=g.FS[t],L=Math.round(q*16/9));z=new sF(L,q,0,null,void 0,t,z);h=unescape(h.replace(/"/g,'"'));return new ou(Y,h,{audio:V,video:z})}; kW=function(h){var t="id="+h.id;h.video&&(t+=", res="+h.video.qualityLabel);var Y,L;return t+", byterate=("+((Y=h.tA)==null?void 0:Y.toFixed(0))+", "+((L=h.Lb)==null?void 0:L.toFixed(0))+")"}; OF=function(h,t){return{start:function(Y){return h[Y]}, end:function(Y){return t[Y]}, length:h.length}}; pH3=function(h,t,Y){for(var L=[],q=[],z=0;z=t)return Y}catch(L){}return-1}; $W=function(h,t){return fA(h,t)>=0}; v7L=function(h,t){if(!h)return NaN;t=fA(h,t);return t>=0?h.start(t):NaN}; Tk=function(h,t){if(!h)return NaN;t=fA(h,t);return t>=0?h.end(t):NaN}; Ay=function(h){return h&&h.length?h.end(h.length-1):NaN}; S2=function(h){return Ay(h)>0}; Iu=function(h,t){h=Tk(h,t);return h>=0?h-t:0}; Ru=function(h,t,Y){for(var L=[],q=[],z=0;zY||(L.push(Math.max(t,h.start(z))-t),q.push(Math.min(Y,h.end(z))-t));return OF(L,q)}; Bd=function(h,t,Y,L){g.PD.call(this);var q=this;this.Ln=h;this.start=t;this.end=Y;this.isActive=L;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.rZ={error:function(){!q.Ui()&&q.isActive&&q.publish("error",q)}, updateend:function(){!q.Ui()&&q.isActive&&q.publish("updateend",q)}}; this.Ln.Jj(this.rZ);this.Jg=this.isActive}; mm=function(h,t,Y,L,q,z){g.PD.call(this);var V=this;this.ND=h;this.XX=t;this.id=Y;this.containerType=L;this.wU=q;this.yx=z;this.A4=this.AO=this.h7=null;this.S6=!1;this.appendWindowStart=this.timestampOffset=0;this.T1=OF([],[]);this.Xa=!1;this.nB=[];this.cg=Pd?[]:void 0;this.tJ=function(H){return V.publish(H.type,V)}; var l;if((l=this.ND)==null?0:l.addEventListener)this.ND.addEventListener("updateend",this.tJ),this.ND.addEventListener("error",this.tJ)}; Dd=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; h0=function(h,t){this.e4=h;this.G=t===void 0?!1:t;this.T=!1}; t0=function(h,t,Y){Y=Y===void 0?!1:Y;g.O.call(this);this.mediaElement=h;this.Oi=t;this.isView=Y;this.U=0;this.W=!1;this.X=!0;this.L=0;this.callback=null;this.Y=!1;this.Oi||(this.XX=this.mediaElement.gP());this.events=new g.UF(this);g.f(this,this.events);this.S=new h0(this.Oi?window.URL.createObjectURL(this.Oi):this.XX.webkitMediaSourceURL,!0);h=this.Oi||this.XX;jq(this.events,h,["sourceopen","webkitsourceopen"],this.hyQ);jq(this.events,h,["sourceclose","webkitsourceclose"],this.tEP);this.C={updateend:this.Ig}}; KUc=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; acc=function(h,t){i8(h)?g.ZL(function(){t(h)}):h.callback=t}; xkL=function(h,t,Y){if(gt){var L;Y_(h.mediaElement,{l:"mswssb",sr:(L=h.mediaElement.qe)==null?void 0:L.nN()},!1);t.Jj(h.C,h);Y.Jj(h.C,h)}h.G=t;h.T=Y;g.f(h,t);g.f(h,Y)}; L_=function(h){return!!h.G||!!h.T}; i8=function(h){try{return qO(h)==="open"}catch(t){return!1}}; qO=function(h){if(h.Oi)return h.Oi.readyState;switch(h.XX.webkitSourceState){case h.XX.SOURCE_OPEN:return"open";case h.XX.SOURCE_ENDED:return"ended";default:return"closed"}}; zQ=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; E7c=function(h){i8(h)&&(h.Oi?h.Oi.endOfStream():h.XX.webkitSourceEndOfStream(h.XX.EOS_NO_ERROR))}; k6L=function(h,t,Y,L){if(!h.G||!h.T)return null;var q=h.G.isView()?h.G.Ln:h.G,z=h.T.isView()?h.T.Ln:h.T,V=new t0(h.mediaElement,h.Oi,!0);V.S=h.S;xkL(V,new Bd(q,t,Y,L),new Bd(z,t,Y,L));i8(h)||h.G.oY(h.G.O3());return V}; Ocn=function(h){var t;(t=h.G)==null||t.PN();var Y;(Y=h.T)==null||Y.PN();h.X=!1}; VT=function(){var h=this;this.Ma=this.xY=sc6;this.promise=new g.oR(function(t,Y){h.xY=t;h.Ma=Y})}; NO=function(){g.O.call(this);this.r7=!1;this.e4=null;this.C=this.U=!1;this.W=new g.Vm;this.qe=null;g.f(this,this.W)}; l8=function(h){h=h.k_();return h.length<1?NaN:h.end(h.length-1)}; n7L=function(h){!h.T&&KUc()&&(h.S?h.S.then(function(){return n7L(h)}):h.Pd()||(h.T=h.zO()))}; fcL=function(h){h.T&&(h.T.dispose(),h.T=void 0)}; Y_=function(h,t,Y){var L;((L=h.qe)==null?0:L.pZ())&&h.qe.Pm("rms",t,Y===void 0?!1:Y)}; $kn=function(h,t,Y){h.isPaused()||h.getCurrentTime()>t||Y>10||(h.play(),g.zz(function(){$kn(h,h.getCurrentTime(),Y+1)},500))}; T7n=function(h,t){h.e4&&h.e4.equals(t)||(h.e4&&h.e4.dispose(),h.e4=t)}; Hs=function(h){return Iu(h.jQ(),h.getCurrentTime())}; AsL=function(h,t){if(h.nH()===0||h.hasError())return!1;var Y=h.getCurrentTime()>0;return t>=0&&(h=h.k_(),h.length||!Y)?$W(h,t):Y}; wt=function(h){h.Pd()&&(h.qe&&h.qe.nA("rs_s"),Ex&&h.getCurrentTime()>0&&h.seekTo(0),h.YB(),h.load(),T7n(h,null));delete h.S}; Ws=function(h){switch(h.vM()){case 2:return"progressive.net.retryexhausted";case 3:return h=h.oD(),(h==null?0:h.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||SSD&&(h==null?0:h.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.yT=function(h,t,Y){this.rk=t===void 0?null:t;this.seekSource=Y===void 0?null:Y;this.state=h||64}; Xr=function(h,t,Y){Y=Y===void 0?!1:Y;return Icr(h,t.getCurrentTime(),(0,g.FH)(),Hs(t),Y)}; Uk=function(h,t,Y,L){if(!(t===h.state&&Y===h.rk&&L===h.seekSource||t!==void 0&&(t&128&&!Y||t&2&&t&16))){var q;if(q=t)q=t||h.state,q=!!(q&16||q&32);h=new g.yT(t,Y,q?L?L:h.seekSource:null)}return h}; C_=function(h,t,Y){return Uk(h,h.state|t,null,Y===void 0?null:Y)}; MO=function(h,t){return Uk(h,h.state&~t,null,null)}; Fr=function(h,t,Y,L){return Uk(h,(h.state|t)&~Y,null,L===void 0?null:L)}; g.R=function(h,t){return!!(h.state&t)}; g.sk=function(h,t){return t.state===h.state&&t.rk===h.rk}; j0=function(h){return h.isPlaying()&&!g.R(h,16)&&!g.R(h,32)}; Zo=function(h){return g.R(h,128)?-1:g.R(h,2)?0:g.R(h,2048)?3:g.R(h,64)?-1:g.R(h,1)&&!g.R(h,32)?3:g.R(h,8)?1:g.R(h,4)?2:-1}; o6=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d,Q){g.O.call(this);var J=this;this.TI=h;this.slot=t;this.layout=Y;this.fb=L;this.uI=q;this.Dx=z;this.QG=V;this.SE=l;this.Zs=H;this.lJ=w;this.position=y;this.U=X;this.uP=U;this.nS=C;this.dk=d;this.context=Q;this.ij=!0;this.X=!1;this.s3="not_rendering";this.T=!1;this.S=new PR;h=kV(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.dU=new zW(Y.AC,this.fb,h,Y.layoutId);var e;h=((e=b8(this))==null?void 0:e.progressCommands)||[];this.W=new Se$(H, h,Y.layoutId,function(){return J.rY()}); this.G=new bcL({adCpn:this.layout.layoutId,j1:Q.j1,QS:this.nS,yx:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; dt=function(h){return{layoutId:h.yf(),i9:h.nS,q0:h.Dx.get(),i4:h.Sh()}}; GQ=function(h,t){return t.layoutId!==h.layout.layoutId?(h.TI.M0(h.slot,t,new xV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+h.layout.layoutId+("and LayoutType: "+h.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; QT=function(h){h.s3="rendering_start_requested";h.lJ(-1)}; b8=function(h){return kV(h.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; RSc=function(h){gP("Received layout exit signal when not in layout exit flow.",h.slot,h.layout)}; B7n=function(h){var t;return((t=rt(h.Dx.get(),2))==null?void 0:t.clientPlaybackNonce)||""}; cs=function(h,t){switch(t){case "normal":h.rP("complete");break;case "skipped":h.rP("skip");break;case "abandoned":WR(h.dU,"impression")&&h.rP("abandon")}}; u8=function(h,t){h.X||(t=new g.Yu(t.state,new g.yT),h.X=!0);return t}; e0=function(h,t){SQ(t)?h.lJ(1):g.qK(t,4)&&!g.qK(t,2)&&h.gW();Ls(t,4)<0&&!(Ls(t,2)<0)&&h.ew()}; PRn=function(h){h.position===0&&(h.SE.get(),h=kV(h.layout.clientMetadata,"metadata_type_ad_placement_config").kind,h={adBreakType:J0(h)},sH("ad_bl"),g.jC(h))}; p_=function(h,t){HR(h.dU,t,!h.T)}; DkW=function(h){var t;return(((t=b8(h))==null?void 0:t.progressCommands)||[]).findIndex(function(Y){return!!g.A(Y==null?void 0:Y.command,mkD)})!==-1}; vs=function(h,t){var Y=kV(h.clientMetadata,"metadata_type_eligible_for_ssap");return Y===void 0?(gP("Expected SSAP eligibility in PlayerBytes factory",h),!1):t.Sh(Y)}; K_=function(h,t){if(!ry(t.get(),"html5_ssap_pass_transition_reason"))return 3;switch(h){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return gP("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return gP("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:h}),3;default:wk(h,"unknown layoutExitReason")}}; hZ3=function(h){gP("getExitReason: unexpected reason",void 0,void 0,{reason:h})}; a6=function(h,t){if(ry(t.get(),"html5_ssap_pass_transition_reason"))switch(h){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return hZ3(h),"abandoned";case 3:case 1:return hZ3(h),"error";default:wk(h,"unexpected transition reason")}else switch(h){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return gP("getExitReason: unexpected reason",void 0,void 0,{reason:h}),"error";default:wk(h,"unexpected transition reason")}}; g.x_=function(h,t,Y){bW(h,Y)||d2(h,t,Y);bW(h,"video_to_ad")||d2(h,t,"video_to_ad");bW(h,"ad_to_video")||d2(h,t,"ad_to_video");bW(h,"ad_to_ad")||d2(h,t,"ad_to_ad")}; Ek=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d,Q,J){o6.call(this,h,t,Y,L,q,z,V,l,w,W,y,X,U,C,d,Q,J);var e=this;this.ke=H;this.h_=y;this.IR=!0;this.GW=this.GQ=0;this.cE=vb(function(){FU6(dt(e));e.TI.bI(e.slot,e.layout)}); this.HP=vb(function(){s$b(dt(e));e.s3!=="rendering_stop_requested"&&e.h_(e);e.layoutExitReason?e.TI.R4(e.slot,e.layout,e.layoutExitReason):RSc(e)}); this.timer=new g.et(200);this.timer.listen("tick",function(){e.Kn()}); g.f(this,this.timer)}; Ok=function(h){h.GW=Date.now();k_(h,h.GQ);h.timer.start()}; tpn=function(h){h.GQ=h.rY();h.fJ(h.GQ/1E3,!0);k_(h,h.GQ)}; k_=function(h,t){t={current:t/1E3,duration:h.rY()/1E3};h.ke.get().Vy("onAdPlaybackProgress",t)}; n_=function(h){Ek.call(this,h.TI,h.slot,h.Zg,h.fb,h.uI,h.Dx,h.QG,h.SE,h.ke,h.Zs,h.lJ,h.h_,h.kD,h.D_,h.uP,h.nS,h.dk,h.context)}; f_=function(h){Ek.call(this,h.TI,h.slot,h.Zg,h.fb,h.uI,h.Dx,h.QG,h.SE,h.ke,h.Zs,h.lJ,h.h_,h.kD,h.D_,h.uP,h.nS,h.dk,h.context)}; $_=function(){f_.apply(this,arguments)}; isW=function(h){return vs(h.slot,h.uP.get())?new $_(h):new n_(h)}; S0=function(h){o6.call(this,h.callback,h.slot,h.Zg,h.fb,h.uI,h.Dx,h.QG,h.SE,h.Zs,h.lJ,h.h_,h.kD,h.D_,h.uP,h.nS,h.dk,h.context);var t=this;this.adCpn="";this.zJ=this.Zr=0;this.cE=vb(function(){FU6(dt(t));t.TI.bI(t.slot,t.layout)}); this.HP=vb(function(){s$b(dt(t));t.s3!=="rendering_stop_requested"&&t.h_(t);t.layoutExitReason?t.TI.R4(t.slot,t.layout,t.layoutExitReason):RSc(t)}); this.jh=h.jh;this.GD=h.GD;this.o4=h.o4;this.ke=h.ke;this.lj=h.lj;this.h_=h.h_;if(!this.Sh()){ry(this.uP.get(),"html5_disable_media_load_timeout")||(this.Ed=new g.nE(function(){t.yw("load_timeout",new xV("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); h=TQ(this.uP.get());var Y=A0(this.uP.get());h&&Y&&(this.Hb=new g.nE(function(){var L=kV(t.layout.clientMetadata,"metadata_type_preload_player_vars");L&&t.GD.get().K.preloadVideoByPlayerVars(L,2,300)}))}}; Y6b=function(h,t){var Y=kV(t.clientMetadata,"metadata_type_ad_video_id"),L=kV(t.clientMetadata,"metadata_type_legacy_info_card_vast_extension");Y&&L&&h.lj.get().K.J().Zx.add(Y,{GA:L});(t=kV(t.clientMetadata,"metadata_type_sodar_extension_data"))&&L2p(h.jh.get(),t);guc(h.QG.get(),!1)}; L1n=function(h){guc(h.QG.get(),!0);var t;((t=h.shrunkenPlayerBytesConfig)==null?0:t.shouldRequestShrunkenPlayerBytes)&&h.QG.get().HL(!1)}; q6i=function(h){return new I6(h)}; R6=function(){S0.apply(this,arguments)}; I6=function(){R6.apply(this,arguments)}; zZ6=function(h){return isW(Object.assign({},h,{TI:h.callback,lJ:function(){}}))}; Vpc=function(h){return new S0(Object.assign({},h,{lJ:function(t){h.ke.get().Vy("onAdIntroStateChange",t)}}))}; NPb=function(h){function t(Y){h.ke.get().R9(Y)} return vs(h.slot,h.uP.get())?q6i(Object.assign({},h,{lJ:t})):new S0(Object.assign({},h,{lJ:t}))}; Bs=function(h){for(var t=h.Zg,Y=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],L=g.b(Vw()),q=L.next();!q.done;q=L.next())Y.push(q.value);if(eQ(t,{q6:Y,vZ:["LAYOUT_TYPE_MEDIA_BREAK"]}))return zZ6(h);t=h.Zg;Y=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];L=g.b(Vw());for(q=L.next();!q.done;q=L.next())Y.push(q.value);if(eQ(t,{q6:Y,vZ:["LAYOUT_TYPE_MEDIA"]}))return vn(h.Zg.clientMetadata,"metadata_type_ad_intro")?Vpc(h):NPb(h)}; HsD=function(h){var t=kV(h.clientMetadata,"metadata_type_ad_placement_config").kind,Y=kV(h.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:h.layoutId,adType:l73(Y),adBreakType:J0(t)}}; J0=function(h){switch(h){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; l73=function(h){switch(h){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; wCr=function(h){try{return new Ps(h.rJ,h.slot,h.layout,h.Qp,h.RW,h.Dx,h.xe,h.GD,h.LZ,h.QG,h.G30,h)}catch(t){}}; Ps=function(h,t,Y,L,q,z,V,l,H,w,W,y){g.O.call(this);this.rJ=h;this.slot=t;this.layout=Y;this.Qp=L;this.RW=q;this.Dx=z;this.xe=V;this.GD=l;this.LZ=H;this.QG=w;this.params=y;this.ij=!0;h=Bs(W);if(!h)throw Error("Invalid params for sublayout");this.FZ=h}; W1r=function(){this.G=1;this.T=new PR}; m$=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U){g.O.call(this);this.callback=h;this.Dx=t;this.xe=Y;this.GD=L;this.QG=q;this.E9=z;this.SE=V;this.RY=l;this.slot=H;this.layout=w;this.Qp=W;this.mG=y;this.LZ=X;this.uP=U;this.ij=!0;this.vz=!1;this.IF=[];this.cP=-1;this.Fd=!1;this.Sx=new W1r}; yZD=function(h){var t;return(t=h.layout.YD)!=null?t:kV(h.layout.clientMetadata,"metadata_type_sub_layouts")}; Do=function(h){return{q0:h.Dx.get(),i9:!1,i4:h.Sh()}}; XCL=function(h,t,Y){if(h.ST()===h.IF.length-1){var L,q;gP("Unexpected skip requested during the last sublayout",(L=h.bR())==null?void 0:L.V4(),(q=h.bR())==null?void 0:q.VG(),{requestingSlot:t,requestingLayout:Y})}}; UKi=function(h,t,Y){return Y.layoutId!==hi(h,t,Y)?(gP("onSkipRequested for a PlayerBytes layout that is not currently active",h.V4(),h.VG()),!1):!0}; C9i=function(h){h.ST()===h.IF.length-1&&gP("Unexpected skip with target requested during the last sublayout")}; Mpc=function(h,t,Y){return Y.renderingContent===void 0&&Y.layoutId!==hi(h,t,Y)?(gP("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",h.V4(),h.VG(),{requestingSlot:t,requestingLayout:Y}),!1):!0}; F1L=function(h,t,Y,L){var q=kV(t.VG().clientMetadata,"metadata_type_ad_pod_skip_target");if(q&&q>0&&q0)){gP("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",h.slot,h.layout,{indexToPlay:t,layoutId:h.layout.layoutId});break a}h.cP=t;t=h.bR();if(h.ST()>0&&!h.Sh()){var Y=h.SE.get();Y.T=!1;var L={};Y.G&&Y.videoId&&(L.cttAuthInfo={token:Y.G,videoId:Y.videoId});ZN("ad_to_ad",L)}h.qE(t)}}; LK=function(h){m$.call(this,h.rJ,h.Dx,h.xe,h.GD,h.QG,h.E9,h.SE,h.RY,h.slot,h.layout,h.Qp,h.mG,h.LZ,h.uP)}; Zs3=function(h){(h=h.bR())&&h.J$()}; qt=function(h){m$.call(this,h.rJ,h.Dx,h.xe,h.GD,h.QG,h.E9,h.SE,h.RY,h.slot,h.layout,h.Qp,h.mG,h.LZ,h.uP);this.zm=void 0}; bsL=function(h,t){h.Br()&&!DA(h.Sx.T)||h.callback.R4(h.slot,h.layout,t)}; zw=function(h){return ry(h.uP.get(),"html5_ssap_pass_transition_reason")}; oub=function(h,t,Y){t.Hu().currentState<2&&(Y=a6(Y,h.uP),t.sY(t.VG(),Y));Y=t.Hu().G;h.Os(h.slot,t.VG(),Y)}; dKn=function(h,t){if(h.Sx.T.currentState<2){var Y=a6(t,h.uP);Y==="error"?h.callback.M0(h.slot,h.layout,new xV("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:t},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):YG(h.mG,h.layout,Y)}}; VN=function(h,t,Y){t.Hu().currentState>=2||(t.sY(t.VG(),Y),DA(t.Hu())&&(No(h.RY,h.slot,t.VG(),Y),h.zm=void 0))}; GTL=function(h,t){h.Sx.G===2&&t!==h.gV()&&gP("onClipEntered: unknown cpn",h.slot,h.layout,{cpn:t})}; QDL=function(h,t){var Y=h.bR();if(Y){var L=Y.VG().layoutId,q=h.ST()+1;h.Br()?VN(h,Y,t):Y.sY(Y.VG(),t);q>=0&&qq&&V.Ha(W,q-L);return W}; a7L=function(h,t,Y){var L=kV(t.clientMetadata,"metadata_type_sodar_extension_data");if(L)try{L2p(Y,L)}catch(q){gP("Unexpected error when loading Sodar",h,t,{error:q})}}; xK$=function(h,t,Y,L,q,z,V){XJ(h,t,new g.Yu(Y,new g.yT),L,q,V,!1,z)}; XJ=function(h,t,Y,L,q,z,V,l){V=V===void 0?!0:V;SQ(Y)&&IQ(q,0,null)&&(!WR(h,"impression")&&l&&l(),h.rP("impression"));WR(h,"impression")&&(g.qK(Y,4)&&!g.qK(Y,2)&&h.iZ("pause"),Ls(Y,4)<0&&!(Ls(Y,2)<0)&&h.iZ("resume"),g.qK(Y,16)&&q>=.5&&h.iZ("seek"),V&&g.qK(Y,2)&&Uj(h,Y.state,t,L,q,z))}; Uj=function(h,t,Y,L,q,z,V,l){WR(h,"impression")&&(z?(z=q-L,z=z>=-1&&z<=2):z=Math.abs(L-q)<=1,CK(h,t,z?L:q,Y,L,V,l&&z),z&&h.rP("complete"))}; CK=function(h,t,Y,L,q,z,V){wA(h,Y*1E3,V);q<=0||Y<=0||(t==null?0:g.R(t,16))||(t==null?0:g.R(t,32))||(IQ(Y,q*.25,L)&&(z&&!WR(h,"first_quartile")&&z("first"),h.rP("first_quartile")),IQ(Y,q*.5,L)&&(z&&!WR(h,"midpoint")&&z("second"),h.rP("midpoint")),IQ(Y,q*.75,L)&&(z&&!WR(h,"third_quartile")&&z("third"),h.rP("third_quartile")))}; EuL=function(h,t){WR(h,"impression")&&h.iZ(t?"fullscreen":"end_fullscreen")}; kTn=function(h){WR(h,"impression")&&h.iZ("clickthrough")}; Osr=function(h){h.iZ("active_view_measurable")}; nu$=function(h){WR(h,"impression")&&!WR(h,"seek")&&h.iZ("active_view_fully_viewable_audible_half_duration")}; f7i=function(h){WR(h,"impression")&&!WR(h,"seek")&&h.iZ("active_view_viewable")}; $Kb=function(h){WR(h,"impression")&&!WR(h,"seek")&&h.iZ("audio_audible")}; TPL=function(h){WR(h,"impression")&&!WR(h,"seek")&&h.iZ("audio_measurable")}; AZW=function(h,t,Y,L,q,z,V,l,H,w,W,y,X){this.callback=h;this.slot=t;this.layout=Y;this.xe=L;this.dU=q;this.QG=z;this.Jv=V;this.uI=l;this.jh=H;this.uP=w;this.fb=W;this.Dx=y;this.o4=X;this.IR=!0;this.OY=this.s3=null;this.adCpn=void 0;this.G=!1}; S6L=function(h,t,Y){var L;yN(h.fb.get(),"ads_qua","cpn."+kV(h.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=rt(h.Dx.get(),2))==null?void 0:L.clientPlaybackNonce)+";qt."+t+";clr."+Y)}; I7b=function(h,t){var Y,L;yN(h.fb.get(),"ads_imp","cpn."+kV(h.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=rt(h.Dx.get(),2))==null?void 0:Y.clientPlaybackNonce)+";clr."+t+";skp."+!!g.A((L=kV(h.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:L.skipOrPreviewRenderer,Mt))}; FJ=function(h){return{enterMs:kV(h.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:kV(h.clientMetadata,"metadata_type_layout_exit_ms")}}; sj=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U){lt.call(this,h,t,Y,L,q,V,l,H,w,y);this.Jv=z;this.jh=W;this.uI=X;this.uP=U;this.OY=this.s3=null}; RZD=function(h,t){var Y;yN(h.fb.get(),"ads_imp","acpn."+((Y=rt(h.Dx.get(),2))==null?void 0:Y.clientPlaybackNonce)+";clr."+t)}; BPL=function(h,t,Y){var L;yN(h.fb.get(),"ads_qua","cpn."+kV(h.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=rt(h.Dx.get(),2))==null?void 0:L.clientPlaybackNonce)+";qt."+t+";clr."+Y)}; jS=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d,Q,J,e,v,E,T){this.LZ=h;this.Qp=t;this.mG=Y;this.Dx=L;this.xe=q;this.QG=z;this.E9=V;this.fb=l;this.Jv=H;this.HZ=w;this.uI=W;this.jh=y;this.GD=X;this.o4=U;this.SE=C;this.ke=d;this.Zs=Q;this.lj=J;this.uP=e;this.G=v;this.context=E;this.dk=T}; Zu=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d,Q,J,e){this.LZ=h;this.Qp=t;this.mG=Y;this.fb=L;this.uI=q;this.jh=z;this.GD=V;this.Dx=l;this.QG=H;this.E9=w;this.o4=W;this.SE=y;this.ke=X;this.Zs=U;this.lj=C;this.uP=d;this.xe=Q;this.context=J;this.dk=e}; P9L=function(h,t,Y,L){BD.call(this,"survey-interstitial",h,t,Y,L)}; bt=function(h,t,Y,L,q){mt.call(this,Y,h,t,L);this.fb=q;h=kV(t.clientMetadata,"metadata_type_ad_placement_config");this.dU=new zW(t.AC,q,h,t.layoutId)}; o0=function(h){return Math.round(h.width)+"x"+Math.round(h.height)}; Gw=function(h,t,Y){Y=Y===void 0?d9:Y;Y.widthh.width*h.height*.2)return{wl:3,va:501,errorMessage:"ad("+o0(Y)+") to container("+o0(h)+") ratio exceeds limit."};if(Y.height>h.height/3-t)return{wl:3,va:501,errorMessage:"ad("+o0(Y)+") covers container("+o0(h)+") center."}}; mKp=function(h,t){var Y=kV(h.clientMetadata,"metadata_type_ad_placement_config");return new zW(h.AC,t,Y,h.layoutId)}; QN=function(h){return kV(h.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; r9=function(h,t,Y,L){BD.call(this,"invideo-overlay",h,t,Y,L);this.interactionLoggingClientData=L}; cO=function(h,t,Y,L,q,z,V,l,H,w,W,y){mt.call(this,z,h,t,q);this.fb=Y;this.W=V;this.QG=l;this.Zs=H;this.uP=w;this.U=W;this.X=y;this.dU=mKp(t,Y)}; DK6=function(){var h=["metadata_type_invideo_overlay_ad_renderer"];Vw().forEach(function(t){h.push(t)}); return{q6:h,vZ:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; ut=function(h,t,Y,L,q,z,V,l,H,w,W,y,X){mt.call(this,z,h,t,q);this.fb=Y;this.W=V;this.Y=l;this.QG=H;this.Zs=w;this.uP=W;this.U=y;this.X=X;this.dU=mKp(t,Y)}; hIi=function(){for(var h=["metadata_type_invideo_overlay_ad_renderer"],t=g.b(Vw()),Y=t.next();!Y.done;Y=t.next())h.push(Y.value);return{q6:h,vZ:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; eS=function(h){this.QG=h;this.G=!1}; tCD=function(h,t,Y){BD.call(this,"survey",h,{},t,Y)}; Ji=function(h,t,Y,L,q,z,V){mt.call(this,Y,h,t,L);this.W=q;this.QG=z;this.uP=V}; iUL=function(h,t,Y,L,q,z,V,l,H,w){this.q_=h;this.QG=t;this.fb=Y;this.W=L;this.uI=q;this.T=z;this.S=V;this.Zs=l;this.uP=H;this.G=w}; goD=function(h,t,Y,L,q,z,V,l,H,w){this.q_=h;this.QG=t;this.fb=Y;this.W=L;this.uI=q;this.T=z;this.S=V;this.Zs=l;this.uP=H;this.G=w}; pK=function(h,t,Y,L,q,z,V,l,H,w){x0.call(this,h,t,Y,L,q,z,V,H);this.u4=l;this.Dx=w}; YH1=function(){var h=lc3();h.q6.push("metadata_type_ad_info_ad_metadata");return h}; LDW=function(h,t,Y,L,q,z,V){this.q_=h;this.QG=t;this.fb=Y;this.T=L;this.u4=q;this.G=z;this.Dx=V}; qH$=function(h,t,Y,L,q,z,V,l){this.q_=h;this.QG=t;this.fb=Y;this.T=L;this.u4=q;this.G=z;this.uP=V;this.Dx=l}; vO=function(h,t){this.slotId=t;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=h(this.triggerType)}; KK=function(h,t){this.adPodIndex=h;this.G=t.length;this.adBreakLengthSeconds=t.reduce(function(L,q){return L+q},0); var Y=0;for(h+=1;h0}; dU=function(h){return!!(h.u0&&h.slot&&h.layout)}; GL=function(h){var t,Y=(t=h.config)==null?void 0:t.adPlacementConfig;h=h.renderer;return!(!Y||Y.kind==null||!h)}; jfL=function(h){if(!HX(h.adLayoutMetadata))return!1;h=h.renderingContent;return g.A(h,$0)||g.A(h,TW)||g.A(h,sfb)||g.A(h,n4)||g.A(h,f4)?!0:!1}; Qx=function(h){return h.playerVars!==void 0&&h.pings!==void 0&&h.externalVideoId!==void 0}; vX=function(h){if(!HX(h.adLayoutMetadata))return!1;h=h.renderingContent;var t=g.A(h,rU);return t?cX(t):(t=g.A(h,u0))?Qx(t):(t=g.A(h,eJ))?t.playerVars!==void 0:(t=g.A(h,$0))?t.durationMilliseconds!==void 0:g.A(h,Jj)||g.A(h,pF)?!0:!1}; cX=function(h){h=(h.sequentialLayouts||[]).map(function(t){return g.A(t,KF)}); return h.length>0&&h.every(vX)}; xf=function(h){return HX(h.adLayoutMetadata)?(h=g.A(h.renderingContent,aB))&&h.pings?!0:!1:!1}; Qf$=function(h){if(!HX(h.adLayoutMetadata))return!1;if(g.A(h.renderingContent,ZU3)||g.A(h.renderingContent,bUL))return!0;var t=g.A(h.renderingContent,En);return g.A(h.renderingContent,kf)||g.A(t==null?void 0:t.sidePanel,ooi)||g.A(t==null?void 0:t.sidePanel,dTi)||g.A(t==null?void 0:t.sidePanel,Gr$)?!0:!1}; J2L=function(h){var t;(t=!h)||(t=h.adSlotMetadata,t=!((t==null?void 0:t.slotId)!==void 0&&(t==null?void 0:t.slotType)!==void 0));if(t||!(r2i(h)||h.slotEntryTrigger&&h.slotFulfillmentTriggers&&h.slotExpirationTriggers))return!1;var Y;h=(Y=h.fulfillmentContent)==null?void 0:Y.fulfilledLayout;return(Y=g.A(h,KF))?vX(Y):(Y=g.A(h,On))?Qf$(Y):(Y=g.A(h,c2L))?jfL(Y):(Y=g.A(h,u0L))?MCn(Y):(Y=g.A(h,eIL))?HX(Y.adLayoutMetadata)?g.A(Y.renderingContent,wU)?!0:!1:!1:(h=g.A(h,nF))?xf(h):!1}; r2i=function(h){var t;h=g.A((t=h.fulfillmentContent)==null?void 0:t.fulfilledLayout,On);var Y;return h&&((Y=h.adLayoutMetadata)==null?void 0:Y.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&h.layoutExitNormalTriggers===void 0}; pNL=function(h){var t;return(h==null?void 0:(t=h.adSlotMetadata)==null?void 0:t.slotType)==="SLOT_TYPE_IN_PLAYER"}; KD$=function(h,t){var Y;if((Y=h.questions)==null||!Y.length||!h.playbackCommands||(t===void 0||!t)&&h.questions.length!==1)return!1;h=g.b(h.questions);for(t=h.next();!t.done;t=h.next()){t=t.value;var L=Y=void 0,q=((Y=g.A(t,fF))==null?void 0:Y.surveyAdQuestionCommon)||((L=g.A(t,$f))==null?void 0:L.surveyAdQuestionCommon);if(!vo6(q))return!1}return!0}; aNW=function(h){h=((h==null?void 0:h.playerOverlay)||{}).instreamSurveyAdRenderer;var t;if(h)if(h.playbackCommands&&h.questions&&h.questions.length===1){var Y,L=((t=g.A(h.questions[0],fF))==null?void 0:t.surveyAdQuestionCommon)||((Y=g.A(h.questions[0],$f))==null?void 0:Y.surveyAdQuestionCommon);t=vo6(L)}else t=!1;else t=!1;return t}; vo6=function(h){if(!h)return!1;h=g.A(h.instreamAdPlayerOverlay,TL);var t=g.A(h==null?void 0:h.skipOrPreviewRenderer,Mt),Y=g.A(h==null?void 0:h.adInfoRenderer,Aj);return(g.A(h==null?void 0:h.skipOrPreviewRenderer,SJ)||t)&&Y?!0:!1}; xT3=function(h){return h.linearAds!=null&&HX(h.adLayoutMetadata)}; Eo1=function(h){return h.linearAd!=null&&h.adVideoStart!=null}; krW=function(h){if(isNaN(Number(h.timeoutSeconds))||!h.text||!h.ctaButton||!g.A(h.ctaButton,g.IB)||!h.brandImage)return!1;var t;return h.backgroundImage&&g.A(h.backgroundImage,RB)&&((t=g.A(h.backgroundImage,RB))==null?0:t.landscape)?!0:!1}; BX=function(h,t,Y,L,q,z,V,l){g.O.call(this);this.uP=h;this.G=t;this.T=L;this.Dx=q;this.W=z;this.S=V;this.GD=l}; fNb=function(h,t,Y){var L,q=((L=Y.adSlots)!=null?L:[]).map(function(l){return g.A(l,PX)}); if(Y.FA)if(kV(t.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))IZ(h.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId); else{if(h.uP.get().K.J().N("h5_check_forecasting_renderer_for_throttled_midroll")){var z=Y.bS.filter(function(l){var H;return((H=l.renderer)==null?void 0:H.clientForecastingAdRenderer)!=null}); z.length!==0?OUD(h.S,z,q,t.slotId,Y.ssdaiAdsConfig):IZ(h.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId)}else IZ(h.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId); no3(h.W,t)}else{var V;L={Ww:Math.round(((z=kV(t.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:z.Ww)||0),cw:(V=kV(t.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:V.cw};OUD(h.S,Y.bS,q,t.slotId,Y.ssdaiAdsConfig,L)}}; A23=function(h,t,Y,L,q,z,V){var l=rt(h.Dx.get(),1);if($Tn(h.uP.get())){var H=mG(h.T.get(),Y,L,q,l.clientPlaybackNonce,l.JF,l.daiEnabled,l,z,V);T23(h,H);IZ(h.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return H},t)}else IZ(h.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return mG(h.T.get(),Y,L,q,l.clientPlaybackNonce,l.JF,l.daiEnabled,l,z,V)},t)}; T23=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next()){var L=Y.value;if(L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.fulfilledLayout)if(Y=void 0,L.fulfilledLayout.renderingContent)Y=kV(L.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(L.fulfilledLayout.YD){L=g.b(L.fulfilledLayout.YD);for(var q=L.next();!q.done&&(q=q.value,!q.renderingContent||!(Y=kV(q.clientMetadata,"metadata_type_player_vars")));q=L.next());}}else Y=void 0;if(Y){h.GD.get().K.preloadVideoByPlayerVars(Y, 2,300);break}}}; INL=function(h,t,Y,L,q,z,V){t=SH1(t,z,Number(L.prefetchMilliseconds)||0,V);h=t instanceof P?t:D9(h,L,q,t,Y);return h instanceof P?h:[h]}; RIp=function(h,t,Y,L,q){var z=RZ(h.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");L=[new CZ({getAdBreakUrl:L.getAdBreakUrl,Ww:0,cw:0}),new ek(!0)];h=t.pauseDurationMs?t.lactThresholdMs?{slotId:z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new qx(h.G,z),slotFulfillmentTriggers:[new VCb(h.G)],slotExpirationTriggers:[new Du(h.G,q),new gU(h.G,z)],rU:"core",clientMetadata:new Ec(L),adSlotLoggingData:Y}:new P("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new P("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return h instanceof P?h:[h]}; B26=function(h){var t,Y;return((t=h.renderer)==null?void 0:(Y=t.adBreakServiceRenderer)==null?void 0:Y.getAdBreakUrl)!==void 0}; h_=function(h,t,Y){if(h.beforeContentVideoIdStartedTrigger)h=h.beforeContentVideoIdStartedTrigger?new a0(aS,t,h.id):new P("Not able to create BeforeContentVideoIdStartedTrigger");else{if(h.layoutIdExitedTrigger){var L;t=(L=h.layoutIdExitedTrigger)!=null&&L.triggeringLayoutId?new fK(aS,h.layoutIdExitedTrigger.triggeringLayoutId,h.id):new P("Not able to create LayoutIdExitedTrigger")}else{if(h.layoutExitedForReasonTrigger){var q,z;((q=h.layoutExitedForReasonTrigger)==null?0:q.triggeringLayoutId)&&((z= h.layoutExitedForReasonTrigger)==null?0:z.layoutExitReason)?(t=N2L(h.layoutExitedForReasonTrigger.layoutExitReason),h=t instanceof P?t:new nK(aS,h.layoutExitedForReasonTrigger.triggeringLayoutId,[t],h.id)):h=new P("Not able to create LayoutIdExitedForReasonTrigger")}else{if(h.onLayoutSelfExitRequestedTrigger){var V;t=(V=h.onLayoutSelfExitRequestedTrigger)!=null&&V.triggeringLayoutId?new mO(aS,h.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,h.id):new P("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(h.onNewPlaybackAfterContentVideoIdTrigger)h= h.onNewPlaybackAfterContentVideoIdTrigger?new Du(aS,t,h.id):new P("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(h.skipRequestedTrigger){var l;t=(l=h.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new tj(aS,h.skipRequestedTrigger.triggeringLayoutId,h.id):new P("Not able to create SkipRequestedTrigger")}else if(h.slotIdEnteredTrigger){var H;t=(H=h.slotIdEnteredTrigger)!=null&&H.triggeringSlotId?new i0(aS,h.slotIdEnteredTrigger.triggeringSlotId,h.id):new P("Not able to create SlotIdEnteredTrigger")}else if(h.slotIdExitedTrigger){var w; t=(w=h.slotIdExitedTrigger)!=null&&w.triggeringSlotId?new gU(aS,h.slotIdExitedTrigger.triggeringSlotId,h.id):new P("Not able to create SkipRequestedTrigger")}else if(h.surveySubmittedTrigger){var W;t=(W=h.surveySubmittedTrigger)!=null&&W.triggeringLayoutId?new Vx(aS,h.surveySubmittedTrigger.triggeringLayoutId,h.id):new P("Not able to create SurveySubmittedTrigger")}else{if(h.mediaResumedTrigger)h=h.mediaResumedTrigger&&h.id?new lNi(h.id):new P("Not able to create MediaResumedTrigger");else{if(h.closeRequestedTrigger){var y; t=(y=h.closeRequestedTrigger)!=null&&y.triggeringLayoutId?new xG(aS,h.closeRequestedTrigger.triggeringLayoutId,h.id):new P("Not able to create CloseRequestedTrigger")}else if(h.slotIdScheduledTrigger){var X;t=(X=h.slotIdScheduledTrigger)!=null&&X.triggeringSlotId?new qx(aS,h.slotIdScheduledTrigger.triggeringSlotId,h.id):new P("Not able to create SlotIdScheduledTrigger")}else{if(h.mediaTimeRangeTrigger){var U;L=Number((U=h.mediaTimeRangeTrigger)==null?void 0:U.offsetStartMilliseconds);var C;V=Number((C= h.mediaTimeRangeTrigger)==null?void 0:C.offsetEndMilliseconds);isFinite(L)&&isFinite(V)?(C=V,C===-1&&(C=Y),Y=L>C?new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:L,offsetEndMs:C},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",C===Y&&L-500<=C):new Xg(L,C),h=Y instanceof P?Y:new I0(aS,t,Y,!1,h.id)):h=new P("Not able to create MediaTimeRangeTrigger")}else if(h.contentVideoIdEndedTrigger)h=h.contentVideoIdEndedTrigger?new Ej(aS,t,!1,h.id):new P("Not able to create ContentVideoIdEndedTrigger"); else{if(h.layoutIdEnteredTrigger){var d;t=(d=h.layoutIdEnteredTrigger)!=null&&d.triggeringLayoutId?new Oj(aS,h.layoutIdEnteredTrigger.triggeringLayoutId,h.id):new P("Not able to create LayoutIdEnteredTrigger")}else if(h.timeRelativeToLayoutEnterTrigger){var Q;t=(Q=h.timeRelativeToLayoutEnterTrigger)!=null&&Q.triggeringLayoutId?new Nx(aS,Number(h.timeRelativeToLayoutEnterTrigger.durationMs),h.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,h.id):new P("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(h.onDifferentLayoutIdEnteredTrigger){var J; t=(J=h.onDifferentLayoutIdEnteredTrigger)!=null&&J.triggeringLayoutId&&h.onDifferentLayoutIdEnteredTrigger.slotType&&h.onDifferentLayoutIdEnteredTrigger.layoutType?new BO(aS,h.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,h.onDifferentLayoutIdEnteredTrigger.slotType,h.onDifferentLayoutIdEnteredTrigger.layoutType,h.id):new P("Not able to create CloseRequestedTrigger")}else{if(h.liveStreamBreakStartedTrigger)h=h.liveStreamBreakStartedTrigger&&h.id?new SS(aS,h.id):new P("Not able to create LiveStreamBreakStartedTrigger"); else if(h.liveStreamBreakEndedTrigger)h=h.liveStreamBreakEndedTrigger&&h.id?new $G(aS,h.id):new P("Not able to create LiveStreamBreakEndedTrigger");else{if(h.liveStreamBreakScheduledDurationMatchedTrigger){var e;t=(e=h.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&e.breakDurationMs?new Tw(Number(h.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,h.id):new P("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(h.liveStreamBreakScheduledDurationNotMatchedTrigger){var v; t=(v=h.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&v.breakDurationMs?new Ai(Number(h.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,h.id):new P("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(h.newSlotScheduledWithBreakDurationTrigger){var E;t=(E=h.newSlotScheduledWithBreakDurationTrigger)!=null&&E.breakDurationMs?new R0(Number(h.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,h.id):new P("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else t= h.prefetchCacheExpiredTrigger?new hj(aS,h.id):new P("Not able to convert an AdsControlflowTrigger.");h=t}t=h}h=t}t=h}h=t}t=h}h=t}t=h}h=t}t=h}h=t}return h}; t_=function(h,t){t.G>=2&&(h.slot_pos=t.adPodIndex);h.autoplay="1"}; mTc=function(h,t,Y,L,q,z,V,l){return t===null?new P("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:t,ActionCompanionAdRenderer:L}):[PW$(h,t,V,z,function(H){var w=H.slotId;H=l(H);var W=L.adLayoutLoggingData,y=new Ec([new Fe(L),new eN(q)]);w=cV(Y.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w);var X={layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",rU:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",AC:new Map, layoutExitNormalTriggers:[new Du(Y.G,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:y,X6:H(X),adLayoutLoggingData:W}})]}; DTb=function(h,t,Y,L,q,z,V,l){return t===null?new P("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:t,TopBannerImageTextIconButtonedLayoutViewModel:L}):[PW$(h,t,V,z,function(H){var w=H.slotId;H=l(H);var W=L.adLayoutLoggingData,y=new Ec([new s7(L),new eN(q)]);w=cV(Y.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w);var X={layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",rU:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", AC:new Map,layoutExitNormalTriggers:[new Du(Y.G,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:y,X6:H(X),adLayoutLoggingData:W}})]}; gab=function(h,t,Y,L,q,z){if(!z)for(t=g.b(t),z=t.next();!z.done;z=t.next())z=z.value,iB(h,z.renderer,z.config.adPlacementConfig.kind);h=Array.from(h.values()).filter(function(W){return huL(W)}); t=[];z=g.b(h);for(var V=z.next(),l={};!V.done;l={aN:void 0},V=z.next()){l.aN=V.value;V=g.b(l.aN.Io);for(var H=V.next(),w={};!H.done;w={Rk:void 0},H=V.next())w.Rk=H.value,H=function(W,y){return function(X){return W.Rk.YI(X,y.aN.instreamVideoAdRenderer.elementId,W.Rk.jj)}}(w,l),w.Rk.isContentVideoCompanion?t.push(tmp(Y,L,q,l.aN.instreamVideoAdRenderer.elementId,w.Rk.associatedCompositePlayerBytesLayoutId,w.Rk.adSlotLoggingData,H)):h.length>1?t.push(iWL(Y,L,q,l.aN.instreamVideoAdRenderer.elementId,w.Rk.adSlotLoggingData, function(W,y){return function(X){return W.Rk.YI(X,y.aN.instreamVideoAdRenderer.elementId,W.Rk.jj,W.Rk.associatedCompositePlayerBytesLayoutId)}}(w,l))):t.push(iWL(Y,L,q,l.aN.instreamVideoAdRenderer.elementId,w.Rk.adSlotLoggingData,H))}return t}; iB=function(h,t,Y){if(t=Yz1(t)){t=g.b(t);for(var L=t.next();!L.done;L=t.next())if((L=L.value)&&L.externalVideoId){var q=gC(h,L.externalVideoId);q.instreamVideoAdRenderer||(q.instreamVideoAdRenderer=L,q.dB=Y)}else gP("InstreamVideoAdRenderer without externalVideoId")}}; Yz1=function(h){var t=[],Y=h.sandwichedLinearAdRenderer&&h.sandwichedLinearAdRenderer.linearAd&&g.A(h.sandwichedLinearAdRenderer.linearAd,u0);if(Y)return t.push(Y),t;if(h.instreamVideoAdRenderer)return t.push(h.instreamVideoAdRenderer),t;if(h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds){h=g.b(h.linearAdSequenceRenderer.linearAds);for(Y=h.next();!Y.done;Y=h.next())Y=Y.value,g.A(Y,u0)&&t.push(g.A(Y,u0));return t}return null}; huL=function(h){if(h.instreamVideoAdRenderer===void 0)return gP("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var t=g.b(h.Io),Y=t.next();!Y.done;Y=t.next()){Y=Y.value;if(Y.YI===void 0)return!1;if(Y.jj===void 0)return gP("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(h.dB===void 0||Y.rG===void 0||h.dB!==Y.rG&&Y.rG!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(h.instreamVideoAdRenderer.elementId===void 0)return gP("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:h.dB,"matching APSR kind":Y.rG}),!1}return!0}; gC=function(h,t){h.has(t)||h.set(t,{instreamVideoAdRenderer:void 0,dB:void 0,adVideoId:t,Io:[]});return h.get(t)}; YK=function(h,t,Y,L,q,z,V,l,H){q?gC(h,q).Io.push({c_m:t,rG:Y,isContentVideoCompanion:L,jj:V,associatedCompositePlayerBytesLayoutId:z,adSlotLoggingData:l,YI:H}):gP("Companion AdPlacementSupportedRenderer without adVideoId")}; Ln=function(h){var t=0;h=g.b(h.questions);for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Y=g.A(Y,fF)||g.A(Y,$f)){var L=void 0;t+=((L=Y.surveyAdQuestionCommon)==null?void 0:L.durationMilliseconds)||0}return t}; q$=function(h){var t,Y,L,q,z=((Y=g.A((t=h.questions)==null?void 0:t[0],fF))==null?void 0:Y.surveyAdQuestionCommon)||((q=g.A((L=h.questions)==null?void 0:L[0],$f))==null?void 0:q.surveyAdQuestionCommon),V;t=[].concat(g.p(((V=h.playbackCommands)==null?void 0:V.instreamAdCompleteCommands)||[]),g.p((z==null?void 0:z.timeoutCommands)||[]));var l,H,w,W,y,X,U,C,d,Q,J,e,v,E,T,hr,B,q1,V6,zn;return{impressionCommands:(l=h.playbackCommands)==null?void 0:l.impressionCommands,errorCommands:(H=h.playbackCommands)== null?void 0:H.errorCommands,muteCommands:(w=h.playbackCommands)==null?void 0:w.muteCommands,unmuteCommands:(W=h.playbackCommands)==null?void 0:W.unmuteCommands,pauseCommands:(y=h.playbackCommands)==null?void 0:y.pauseCommands,rewindCommands:(X=h.playbackCommands)==null?void 0:X.rewindCommands,resumeCommands:(U=h.playbackCommands)==null?void 0:U.resumeCommands,skipCommands:(C=h.playbackCommands)==null?void 0:C.skipCommands,progressCommands:(d=h.playbackCommands)==null?void 0:d.progressCommands,D4Q:(Q= h.playbackCommands)==null?void 0:Q.clickthroughCommands,fullscreenCommands:(J=h.playbackCommands)==null?void 0:J.fullscreenCommands,activeViewViewableCommands:(e=h.playbackCommands)==null?void 0:e.activeViewViewableCommands,activeViewMeasurableCommands:(v=h.playbackCommands)==null?void 0:v.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(E=h.playbackCommands)==null?void 0:E.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(T=h.playbackCommands)== null?void 0:(hr=T.activeViewTracking)==null?void 0:hr.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(B=h.playbackCommands)==null?void 0:(q1=B.activeViewTracking)==null?void 0:q1.activeViewAudioMeasurableCommands,endFullscreenCommands:(V6=h.playbackCommands)==null?void 0:V6.endFullscreenCommands,abandonCommands:(zn=h.playbackCommands)==null?void 0:zn.abandonCommands,completeCommands:t}}; qzD=function(h,t,Y,L,q,z,V){return function(l,H){return L5L(h,H.slotId,l,z,function(w,W){var y=H.layoutId;w=V(w);return zS(t,y,W,q,w,"LAYOUT_TYPE_SURVEY",[new IT(Y),L],Y.adLayoutLoggingData)})}}; NXD=function(h,t,Y,L,q,z,V){if(!zui(h))return new P("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:h});var l=h.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[VmL(z,t,Y,L,function(H){var w=H.slotId;H=V(H);w=cV(q.T.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",w);var W={layoutId:w,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",rU:"core"},y=new fK(q.G,L);return{layoutId:w,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",AC:new Map,layoutExitNormalTriggers:[y], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([new RT(l)]),X6:H(W)}})]}; zui=function(h){h=g.A(h==null?void 0:h.additionalPlayerOverlay,l1b);if(!h)return!1;var t=h.slidingMessages;return h.title&&t&&t.length!==0?!0:!1}; wfb=function(h,t,Y,L,q){var z;if((z=h.playerOverlay)==null||!z.instreamSurveyAdRenderer)return function(){return[]}; if(!aNW(h))return function(){return new P("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:h})}; var V=h.playerOverlay.instreamSurveyAdRenderer,l=Ln(V);return l<=0?function(){return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V})}:function(H,w){var W=HWL(H,Y,L,function(y){var X=y.slotId; y=w(y);var U=q$(V);X=cV(q.T.get(),"LAYOUT_TYPE_SURVEY",X);var C={layoutId:X,layoutType:"LAYOUT_TYPE_SURVEY",rU:"core"},d=new fK(q.G,L),Q=new tj(q.G,X),J=new Vx(q.G,X),e=new y2n(q.G);return{layoutId:X,layoutType:"LAYOUT_TYPE_SURVEY",AC:new Map,layoutExitNormalTriggers:[d,e],layoutExitSkipTriggers:[Q],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[J],Cn:[],rU:"core",clientMetadata:new Ec([new SN(V),new eN(t),new sc(l/1E3),new oS(U)]),X6:y(C),adLayoutLoggingData:V.adLayoutLoggingData}}); H=NXD(h,Y,W.slotId,L,q,H,w);return H instanceof P?H:[W].concat(g.p(H))}}; F5r=function(h,t,Y,L,q,z,V){V=V===void 0?!1:V;var l=[];try{var H=[];if(Y.renderer.linearAdSequenceRenderer)var w=function(d){d=W5$(d.slotId,Y,t,q(d),L,z,V);H=d.S9z;return d.CK}; else if(Y.renderer.instreamVideoAdRenderer)w=function(d){var Q=d.slotId;d=q(d);var J=V,e=Y.config.adPlacementConfig,v=yY$(e),E=v.On,T=v.Fg;v=Y.renderer.instreamVideoAdRenderer;var hr;if(v==null?0:(hr=v.playerOverlay)==null?0:hr.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var B=Vk(v,J);hr=Math.min(E+B.videoLengthSeconds*1E3,T);J=new KK(0,[B.videoLengthSeconds]);T=B.videoLengthSeconds;var q1=B.playerVars,V6=B.instreamAdPlayerOverlayRenderer,zn=B.playerOverlayLayoutRenderer, w3=B.adVideoId,ii=XfL(Y),r3=B.AC;B=B.nz;var KL=v==null?void 0:v.adLayoutLoggingData;v=v==null?void 0:v.sodarExtensionData;Q=cV(t.T.get(),"LAYOUT_TYPE_MEDIA",Q);var h3={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",rU:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",AC:r3,layoutExitNormalTriggers:[new $G(t.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([new xB(L),new LZ(T),new qC(q1),new NC(E),new lM(hr),V6&& new E7(V6),zn&&new kB(zn),new eN(e),new aT(w3),new JP(J),new X7(ii),v&&new VK(v),new tW({current:null}),new wM({}),new QK(B)].filter(U6c)),X6:d(h3),adLayoutLoggingData:KL}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var W=CTL(h,L,Y.adSlotLoggingData,w);l.push(W);for(var y=g.b(H),X=y.next();!X.done;X=y.next()){var U=X.value,C=U(h,q);if(C instanceof P)return C;l.push.apply(l,g.p(C))}}catch(d){return new P(d,{errorMessage:d.message,AdPlacementRenderer:Y,numberOfSurveyRenderers:Mmc(Y)})}return l}; Mmc=function(h){h=(h.renderer.linearAdSequenceRenderer||{}).linearAds;return h!=null&&h.length?h.filter(function(t){var Y,L;return((Y=g.A(t,u0))==null?void 0:(L=Y.playerOverlay)==null?void 0:L.instreamSurveyAdRenderer)!=null}).length:0}; W5$=function(h,t,Y,L,q,z,V){var l=t.config.adPlacementConfig,H=yY$(l),w=H.On,W=H.Fg;H=(t.renderer.linearAdSequenceRenderer||{}).linearAds;if(H==null||!H.length)throw new TypeError("Expected linear ads");var y=[],X={zM:w,kD:0,uh5:y};H=H.map(function(C){return si3(h,C,X,Y,L,l,q,W,V)}).map(function(C,d){d=new KK(d,y); return C(d)}); var U=H.map(function(C){return C.Db}); return{CK:jiL(Y,h,w,U,l,XfL(t),L,W,z),S9z:H.map(function(C){return C.T0M})}}; si3=function(h,t,Y,L,q,z,V,l,H){var w=Vk(g.A(t,u0),H),W=Y.zM,y=Y.kD,X=Math.min(W+w.videoLengthSeconds*1E3,l);Y.zM=X;Y.kD++;Y.uh5.push(w.videoLengthSeconds);var U,C,d=(U=g.A(t,u0))==null?void 0:(C=U.playerOverlay)==null?void 0:C.instreamSurveyAdRenderer;if(w.adVideoId==="nPpU29QrbiU"&&d==null)throw new TypeError("Survey slate media has no survey overlay");return function(Q){t_(w.playerVars,Q);var J,e,v=w.videoLengthSeconds,E=w.playerVars,T=w.AC,hr=w.nz,B=w.instreamAdPlayerOverlayRenderer,q1=w.playerOverlayLayoutRenderer, V6=w.adVideoId,zn=(J=g.A(t,u0))==null?void 0:J.adLayoutLoggingData;J=(e=g.A(t,u0))==null?void 0:e.sodarExtensionData;e=cV(L.T.get(),"LAYOUT_TYPE_MEDIA",h);var w3={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",rU:"adapter"};Q={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",AC:T,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"adapter",clientMetadata:new Ec([new xB(V),new LZ(v),new qC(E),new NC(W),new lM(X),new Hn(y),new tW({current:null}), B&&new E7(B),q1&&new kB(q1),new eN(z),new aT(V6),new JP(Q),J&&new VK(J),d&&new GK(d),new wM({}),new QK(hr)].filter(U6c)),X6:q(w3),adLayoutLoggingData:zn};v=wfb(g.A(t,u0),z,V,Q.layoutId,L);return{Db:Q,T0M:v}}}; Vk=function(h,t){if(!h)throw new TypeError("Expected instream video ad renderer");if(!h.playerVars)throw new TypeError("Expected player vars in url encoded string");var Y=SR(h.playerVars),L=Number(Y.length_seconds);if(isNaN(L))throw new TypeError("Expected valid length seconds in player vars");var q=Number(h.trimmedMaxNonSkippableAdDurationMs);L=isNaN(q)?L:Math.min(L,q/1E3);q=h.playerOverlay||{};q=q.instreamAdPlayerOverlayRenderer===void 0?null:q.instreamAdPlayerOverlayRenderer;var z=h.playerOverlay|| {};z=z.playerOverlayLayoutRenderer===void 0?null:z.playerOverlayLayoutRenderer;var V=Y.video_id;V||(V=(V=h.externalVideoId)?V:void 0);if(!V)throw new TypeError("Expected valid video id in IVAR");if(t&&L===0){var l;t=(l=ZWL[V])!=null?l:L}else t=L;return{playerVars:Y,videoLengthSeconds:t,instreamAdPlayerOverlayRenderer:q,playerOverlayLayoutRenderer:z,adVideoId:V,AC:h.pings?q0(h.pings):new Map,nz:L4(h.pings)}}; XfL=function(h){h=Number(h.driftRecoveryMs);return isNaN(h)||h<=0?null:h}; yY$=function(h){var t=h.adTimeOffset||{};h=t.offsetEndMilliseconds;t=Number(t.offsetStartMilliseconds);if(isNaN(t))throw new TypeError("Expected valid start offset");h=Number(h);if(isNaN(h))throw new TypeError("Expected valid end offset");return{On:t,Fg:h}}; bWW=function(h){var t,Y=(t=kV(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!Y)return null;t=kV(h.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var L=h.layoutId,q=kV(h.clientMetadata,"metadata_type_content_cpn"),z=kV(h.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V=kV(h.clientMetadata,"metadata_type_player_underlay_renderer"),l=kV(h.clientMetadata,"metadata_type_ad_placement_config"),H=kV(h.clientMetadata,"metadata_type_video_length_seconds"); var w=vn(h.clientMetadata,"metadata_type_layout_enter_ms")&&vn(h.clientMetadata,"metadata_type_layout_exit_ms")?(kV(h.clientMetadata,"metadata_type_layout_exit_ms")-kV(h.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Ib:L,contentCpn:q,YF:Y,iN:t,instreamAdPlayerOverlayRenderer:z,instreamAdPlayerUnderlayRenderer:V,adPlacementConfig:l,videoLengthSeconds:H,Qw:w,inPlayerLayoutId:kV(h.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:kV(h.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; G1L=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C){L=RZ(L,"SLOT_TYPE_PLAYER_BYTES");h=oaL(q,h,V,Y,L,H,w);if(h instanceof P)return h;var d;w=(d=kV(h.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:d.layoutId;if(!w)return new P("Invalid adNotify layout");t=d63(w,q,z,Y,l,t,H,W,y,X,U,C,V);return t instanceof P?t:[h].concat(g.p(t))}; d63=function(h,t,Y,L,q,z,V,l,H,w,W,y,X){Y=Qib(t,Y,L,z,V,l,H,w,W,y,X);if(Y instanceof P)return Y;h=rY3(t,h,V,q,Y);return h instanceof P?h:[].concat(g.p(h.Kr),[h.F0])}; uwp=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U){t=Qib(h,t,Y,q,z,l,H,w,W,y,X,U);if(t instanceof P)return t;h=cY1(h,Y,z,V,L,l.fZ,t);return h instanceof P?h:h.Kr.concat(h.F0)}; Qib=function(h,t,Y,L,q,z,V,l,H,w,W,y){var X=N$(L,Y,w);return X instanceof xV?new P(X):w.K.J().experiments.I0("html5_refactor_in_player_slot_generation")?function(U){var C=new KK(0,[X.XC]);U=eub(t,X.layoutId,X.W0,Y,lB(X.playerVars,X.GN,z,H,C),X.XC,q,C,V(U),l.get(X.W0.externalVideoId),y);C=[];if(X.W0.playerOverlay.instreamAdPlayerOverlayRenderer){var d=bWW(U);if(!d)return gP("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,U),{layout:U,Kr:[]}; C=[JYn(h,d.contentCpn,d.Ib,function(J){return HU(t,J.slotId,"core",d,AW(W,J))},d.inPlayerSlotId)].concat(g.p(C)); if(d.instreamAdPlayerUnderlayRenderer&&wC(w)){var Q=d.instreamAdPlayerUnderlayRenderer;C=[pfc(h,d.contentCpn,d.Ib,function(J){return vab(t,J.slotId,Q,d.adPlacementConfig,d.Ib,AW(W,J))})].concat(g.p(C))}}return{layout:U, Kr:C}}:function(U){var C=new KK(0,[X.XC]); return{layout:eub(t,X.layoutId,X.W0,Y,lB(X.playerVars,X.GN,z,H,C),X.XC,q,C,V(U),l.get(X.W0.externalVideoId),y),Kr:[]}}}; N$=function(h,t,Y){if(!h.playerVars)return new xV("No playerVars available in InstreamVideoAdRenderer.");var L,q;if(h.elementId==null||h.playerVars==null||h.playerOverlay==null||((L=h.playerOverlay)==null?void 0:L.instreamAdPlayerOverlayRenderer)==null&&((q=h.playerOverlay)==null?void 0:q.playerOverlayLayoutRenderer)==null||h.pings==null||h.externalVideoId==null)return new xV("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:h});L=SR(h.playerVars);q=Number(L.length_seconds); isNaN(q)&&(q=0,gP("Expected valid length seconds in player vars but got NaN"));if(Y.Sh(t.kind==="AD_PLACEMENT_KIND_START")){if(h.layoutId===void 0)return new xV("Expected server generated layout ID in instreamVideoAdRenderer");t=h.layoutId}else t=h.elementId;return{layoutId:t,W0:h,playerVars:L,GN:h.playerVars,XC:q}}; lB=function(h,t,Y,L,q){h.iv_load_policy=L;t=SR(t);if(t.cta_conversion_urls)try{h.cta_conversion_urls=JSON.parse(t.cta_conversion_urls)}catch(z){gP(z)}Y.qq&&(h.ctrl=Y.qq);Y.Y9&&(h.ytr=Y.Y9);Y.mC&&(h.ytrcc=Y.mC);Y.isMdxPlayback&&(h.mdx="1");h.vvt&&(h.vss_credentials_token=h.vvt,Y.iJ&&(h.vss_credentials_token_type=Y.iJ),Y.mdxEnvironment&&(h.mdx_environment=Y.mdxEnvironment));t_(h,q);return h}; K5L=function(h){var t=new Map;h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())(Y=Y.value.renderer.remoteSlotsRenderer)&&Y.hostElementId&&t.set(Y.hostElementId,Y);return t}; WU=function(h){return h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; a1L=function(h){return h!=null}; $6D=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U){for(var C=[],d=g.b(h),Q=d.next();!Q.done;Q=d.next())if(Q=Q.value,!r2i(Q)&&!pNL(Q)){var J=WU(Q)&&!!Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger,e=H.Sh(J),v=x6L(Q,w,L,Y.JF,e);if(v instanceof P)return v;var E=void 0,T={slotId:Q.adSlotMetadata.slotId,slotType:Q.adSlotMetadata.slotType,slotPhysicalPosition:(E=Q.adSlotMetadata.slotPhysicalPosition)!=null?E:1,rU:"core",slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers, slotExpirationTriggers:v.slotExpirationTriggers},hr=g.A(Q.fulfillmentContent.fulfilledLayout,KF);if(hr){if(!vX(hr))return new P("Invalid PlayerBytesAdLayoutRenderer");E=y&&!(WU(Q)&&Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger);v=v.slotFulfillmentTriggers.some(function(B){return B instanceof Tw}); e=E?EaL(T,Q.adSlotMetadata.triggerEvent,hr,Y,L,z,w,h,e,X,v,U):k1r(T,Q.adSlotMetadata.triggerEvent,hr,t,Y,L,q,z,V,l,H,w,h,W,e,Q.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof P)return e;v=[];WU(Q)&&v.push(new JW({Mr:WU(Q)&&!!Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));E&&v.push(new wM({}));Y.fZ&&v.push(new dM({}));v.push(new uM(J));Q=Object.assign({},T,{clientMetadata:new Ec(v),fulfilledLayout:e.layout,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});C.push.apply(C,g.p(e.Kr)); C.push(Q)}else if(J=g.A(Q.fulfillmentContent.fulfilledLayout,On)){if(!Qf$(J))return new P("Invalid PlayerUnderlayAdLayoutRenderer");J=OWL(J,L,Y.JF,z,T,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof P)return J;Q=Object.assign({},T,{clientMetadata:new Ec([]),fulfilledLayout:J,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});C.push(Q)}else if(J=g.A(Q.fulfillmentContent.fulfilledLayout,u0L)){if(!MCn(J))return new P("Invalid AboveFeedAdLayoutRenderer");J= na6(J,L,Y.JF,z,T,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof P)return J;Q=Object.assign({},T,{clientMetadata:new Ec([]),fulfilledLayout:J,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});C.push(Q)}else if(J=g.A(Q.fulfillmentContent.fulfilledLayout,eIL)){if(!HX(J.adLayoutMetadata)||!g.A(J.renderingContent,wU))return new P("Invalid BelowPlayerAdLayoutRenderer");J=na6(J,L,Y.JF,z,T,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId); if(J instanceof P)return J;Q=Object.assign({},T,{clientMetadata:new Ec([]),fulfilledLayout:J,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});C.push(Q)}else if(J=g.A(Q.fulfillmentContent.fulfilledLayout,nF)){if(!xf(J))return new P("Invalid PlayerBytesSequenceItemAdLayoutRenderer");J=f1L(J,L,Y.JF,z,T,Q.adSlotMetadata.triggerEvent);if(J instanceof P)return J;Q=Object.assign({},T,{clientMetadata:new Ec([]),fulfilledLayout:J,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});C.push(Q)}else return new P("Unable to retrieve a client slot ["+ T.slotType+"] from a given AdSlotRenderer")}return C}; f1L=function(h,t,Y,L,q,z){var V={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,rU:"core"};t=yk(h,t,Y);return t instanceof P?t:(Y=g.A(h.renderingContent,aB))&&Y.pings?Object.assign({},V,{renderingContent:h.renderingContent,AC:q0(Y.pings)},t,{X6:AW(L,q)(V),clientMetadata:new Ec([new eN(XP(z))]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData}):new P("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; na6=function(h,t,Y,L,q,z,V){var l={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,rU:"core"};t=yk(h,t,Y);if(t instanceof P)return t;Y=[];Y.push(new eN(XP(z)));z==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&V!==void 0&&Y.push(new BL(V));return Object.assign({},l,{renderingContent:h.renderingContent,AC:new Map([["impression",TXp(h)]])},t,{X6:AW(L,q)(l),clientMetadata:new Ec(Y),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})}; OWL=function(h,t,Y,L,q,z,V){if(h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(V=g.A(h.renderingContent,En))if(V=g.A(V.sidePanel,dTi)){var l={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,rU:"core"};t=yk(h,t,Y);h=t instanceof P?t:Object.assign({},l,{renderingContent:h.renderingContent,AC:new Map([["impression",V.impressionPings||[]],["resume",V.resumePings||[]]])},t,{X6:AW(L,q)(l),clientMetadata:new Ec([new eN(XP(z))]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})}else h= new P("DismissablePanelTextPortraitImageRenderer is missing");else h=new P("SqueezebackPlayerSidePanelRenderer is missing");else h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.A(h.renderingContent,ZU3)?(V={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,rU:"core"},t=yk(h,t,Y),h=t instanceof P?t:Object.assign({},V,{renderingContent:h.renderingContent,AC:new Map},t,{X6:AW(L,q)(V),clientMetadata:new Ec([new eN(XP(z))]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})): h=new P("CounterfactualRenderer is missing"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?h=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?h=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.A(h.renderingContent,kf)?(z={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType, rU:"core"},t=yk(h,t,Y),h=t instanceof P?t:V?Object.assign({},z,{renderingContent:h.renderingContent,AC:new Map},t,{X6:AW(L,q)(z),clientMetadata:new Ec([new BL(V)]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData}):new P("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):h=new P("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.A(h.renderingContent,bUL)? (z={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,rU:"core"},t=yk(h,t,Y),h=t instanceof P?t:Object.assign({},z,{renderingContent:h.renderingContent,AC:new Map([])},t,{X6:AW(L,q)(z),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Ec([])})):h=new P("AdsEngagementPanelSectionListViewModel is missing"):h=new P("LayoutType ["+h.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return h}; EaL=function(h,t,Y,L,q,z,V,l,H,w,W,y){if((y==null?void 0:y.Ww)===void 0||(y==null?void 0:y.cw)===void 0)return new P("Cached ad break range from cue point is missing");var X=yk(Y,q,L.JF);if(X instanceof P)return X;X={layoutExitMuteTriggers:[],layoutExitNormalTriggers:X.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Cn:[],layoutExitUserInputSubmittedTriggers:[]};if(g.A(Y.renderingContent,u0))return h=AYi(h,t,Y,X,q,z,l,H,L.JF,V,y.Ww,y.cw),h instanceof P?h:h.De===void 0?new P("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:h.layout,Kr:[h.De]};var U=g.A(Y.renderingContent,rU);if(U){if(!HX(Y.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!cX(U))return new P("Invalid sequential layout");U=U.sequentialLayouts.map(function(C){return C.playerBytesAdLayoutRenderer}); h=Szp(h,t,Y,X,U,q,L,z,V,H,l,w,y.Ww,y.cw,W);return h instanceof P?h:{layout:h.mX,Kr:h.Kr}}return new P("Not able to convert a sequential layout")}; Szp=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C){var d=I1r(q,X,U);if(d instanceof P)return d;var Q=[],J=[];d=g.b(d);for(var e=d.next();!e.done;e=d.next()){var v=e.value;e=h;var E=q[v.kD],T=v,hr=t;v=z;var B=V,q1=l,V6=H,zn=w,w3=W,ii=Um(E);if(ii instanceof P)e=ii;else{var r3={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,rU:"adapter"};T=RuL(hr,E,T,v);T instanceof P?e=T:(e=Object.assign({},r3,Cn,{AC:ii,renderingContent:E.renderingContent,clientMetadata:new Ec(T),X6:AW(q1,e)(r3), adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData}),e=(E=M$(w3,e,v,B.JF,q1,V6,zn,void 0,!0))?E instanceof P?E:{layout:e,De:E}:new P("Expecting associatedInPlayerSlot"))}if(e instanceof P)return e;Q.push(e.layout);J.push(e.De)}q={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,rU:"core"};t=[new X7(Number(Y.driftRecoveryMs)),new NC(X),new lM(U),new eN(XP(t)),new cn(y),new wM({})];C&&t.push(new pZ({}));return{mX:Object.assign({},q,L,{YD:Q,AC:new Map,clientMetadata:new Ec(t), X6:AW(l,h)(q)}),Kr:J}}; AYi=function(h,t,Y,L,q,z,V,l,H,w,W,y){if(!vX(Y))return new P("Invalid PlayerBytesAdLayoutRenderer");var X=Um(Y);if(X instanceof P)return X;var U={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,rU:"core"},C=g.A(Y.renderingContent,u0);if(!C)return new P("Invalid rendering content for DAI media layout");C=Vk(C,!1);W={Zv:C,kD:0,zM:W,y_:Math.min(W+C.videoLengthSeconds*1E3,y),Uy:new KK(0,[C.videoLengthSeconds])};var d;y=(d=Number(Y.driftRecoveryMs))!=null?d:void 0;t=RuL(t, Y,W,q,y);if(t instanceof P)return t;h=Object.assign({},U,L,{AC:X,renderingContent:Y.renderingContent,clientMetadata:new Ec(t),X6:AW(z,h)(U),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});return(q=M$(V,h,q,H,z,w,l,void 0,!0))?q instanceof P?q:{layout:h,De:q}:new P("Expecting associatedInPlayerSlot")}; k1r=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d){var Q=yk(Y,z,q.JF);if(Q instanceof P)return Q;if(g.A(Y.renderingContent,u0)){H=BXL([Y],q,H);if(H instanceof P)return H;if(H.length!==1)return new P("Only expected one media layout.");h=PTi(h,t,Y,Q,H[0],void 0,"core",L,z,V,l,w,X,U,C,q.JF,y,void 0,d);return h instanceof P?h:{layout:h.layout,Kr:h.De?[h.De]:[]}}var J=g.A(Y.renderingContent,rU);if(J){if(!HX(Y.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!cX(J))return new P("Invalid sequential layout"); J=J.sequentialLayouts.map(function(e){return e.playerBytesAdLayoutRenderer}); h=m6L(h,t,Y.adLayoutMetadata,Q,J,L,z,q,H,V,l,w,W,y,C,X,U,d);return h instanceof P?h:{layout:h.mX,Kr:h.Kr}}return new P("Not able to convert a sequential layout")}; m6L=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d,Q,J){var e=new Kb({current:null}),v=BXL(q,l,H);if(v instanceof P)return v;H=[];for(var E=[],T=void 0,hr=0;hr0&&(hr.push(J),hr.push(new vL(T.adPodSkipTarget)));(z=w.get(T.externalVideoId))&&hr.push(new F7(z));z=hr}else z= new P("Invalid vod media renderer")}if(z instanceof P)return z;h=Object.assign({},V,L,{AC:v,renderingContent:Y.renderingContent,clientMetadata:new Ec(z),X6:AW(W,h)(V),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});Y=g.A(Y.renderingContent,u0);if(!Y||!Qx(Y))return new P("Invalid meida renderer");y=gC(y,Y.externalVideoId);y.instreamVideoAdRenderer=Y;y.dB="AD_PLACEMENT_KIND_START";return U?(H=M$(X,h,H,d,W,Q,C,J,!1),H instanceof P?H:tN6(h.layoutId,X)&&H?{layout:Object.assign({},h,{clientMetadata:new Ec(z.concat(new fb(H)))})}: {layout:h,De:H}):{layout:h}}; D6i=function(h,t,Y,L,q){if(!vX(t))return new P("Invalid PlayerBytesAdLayoutRenderer");var z=g.A(t.renderingContent,$0);if(!z||z.durationMilliseconds===void 0)return new P("Invalid endcap renderer");var V={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,rU:"adapter"};L=[new jk(z.durationMilliseconds),new oS({impressionCommands:void 0,abandonCommands:z.abandonCommands?[{commandExecutorCommand:z.abandonCommands}]:void 0,completeCommands:z.completionCommands}),new eN(L), new mk("LAYOUT_TYPE_ENDCAP")];if(q){L.push(new pb(q.Uy.adPodIndex-1));L.push(new Hn(q.Uy.adPodIndex));var l;L.push(new vL((l=q.adPodSkipTarget)!=null?l:-1))}return Object.assign({},V,Cn,{renderingContent:t.renderingContent,clientMetadata:new Ec(L),AC:z.skipPings?new Map([["skip",z.skipPings]]):new Map,X6:AW(Y,h)(V),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData})}; M$=function(h,t,Y,L,q,z,V,l,H){h=h.filter(function(y){return y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&y.adSlotMetadata.triggeringSourceLayoutId===t.layoutId}); if(h.length!==0){if(h.length!==1)return new P("Invalid InPlayer slot association for the given PlayerBytes layout");h=h[0];V=x6L(h,z,Y,L,V);if(V instanceof P)return V;var w;z={slotId:h.adSlotMetadata.slotId,slotType:h.adSlotMetadata.slotType,slotPhysicalPosition:(w=h.adSlotMetadata.slotPhysicalPosition)!=null?w:1,rU:"core",slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:V.slotExpirationTriggers};w=g.A(h.fulfillmentContent.fulfilledLayout, c2L);if(!w||!jfL(w))return new P("Invalid InPlayerAdLayoutRenderer");V={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,rU:"core"};Y=yk(w,Y,L);if(Y instanceof P)return Y;L=[];var W=w.adLayoutMetadata.layoutType;H&&L.push(new wM({}));if(W==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")L.push.apply(L,g.p(ibL(h.adSlotMetadata.triggerEvent,t)));else if(W==="LAYOUT_TYPE_ENDCAP"||W==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){L.push(new eN(XP(h.adSlotMetadata.triggerEvent))); if(W==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new P("Cannot parse endcap layout since AdUxReadyApi is not provided");l&&L.push(l)}else return new P("Not able to parse an SDF InPlayer layout");q=Object.assign({},V,Y,{renderingContent:w.renderingContent,AC:new Map,X6:AW(q,z)(V),clientMetadata:new Ec(L),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},z,{fulfilledLayout:q,clientMetadata:new Ec([])})}}; ibL=function(h,t){var Y=[];Y.push(new eN(XP(h)));Y.push(new BL(t.layoutId));(h=kV(t.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&Y.push(new tW(h));(h=kV(t.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&Y.push(new Kb(h));(h=kV(t.clientMetadata,"metadata_type_remote_slots_data"))&&Y.push(new F7(h));(h=kV(t.clientMetadata,"metadata_type_ad_next_params"))&&Y.push(new bw(h));(h=kV(t.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&Y.push(new oT(h));(h= kV(t.clientMetadata,"metadata_type_ad_pod_info"))&&Y.push(new JP(h));(t=kV(t.clientMetadata,"metadata_type_ad_video_id"))&&Y.push(new aT(t));return Y}; h56=function(h,t,Y,L,q,z){function V(w){return FP(t,w)} var l=L.HE.inPlayerSlotId,H={layoutId:L.HE.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",rU:"core"};Y={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:new Oj(V,h),slotFulfillmentTriggers:[new i0(V,l)],slotExpirationTriggers:[new gU(V,l),new Du(V,Y)]};h=Object.assign({},H,{layoutExitNormalTriggers:[new fK(V,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],AC:new Map,clientMetadata:new Ec([new T7(L.HE), new eN(L.adPlacementConfig),q]),X6:AW(z,Y)(H),adLayoutLoggingData:L.HE.adLayoutLoggingData});return Object.assign({},Y,{clientMetadata:new Ec([new Uc(h)])})}; tN6=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next())if(Y=Y.value,Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var L=g.A(Y.fulfillmentContent.fulfilledLayout,On);if(L&&(L=g.A(L.renderingContent,En))&&L.associatedPlayerBytesLayoutId===h)return Y}}; x6L=function(h,t,Y,L,q){var z=gB3(h_(h.slotEntryTrigger,Y,L),q,h,t);if(z instanceof P)return z;for(var V=[],l=g.b(h.slotFulfillmentTriggers),H=l.next();!H.done;H=l.next()){H=h_(H.value,Y,L);if(H instanceof P)return H;V.push(H)}V=Y71(V,q,h,t);t=[];h=g.b(h.slotExpirationTriggers);for(q=h.next();!q.done;q=h.next()){q=h_(q.value,Y,L);if(q instanceof P)return q;t.push(q)}return{slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:t}}; gB3=function(h,t,Y,L){return t&&Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h instanceof a0?new vO(function(q){return FP(L,q)},Y.adSlotMetadata.slotId):h}; Y71=function(h,t,Y,L){return t&&Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?h.map(function(q){return q instanceof i0?new qx(function(z){return FP(L,z)},Y.adSlotMetadata.slotId):q}):h}; yk=function(h,t,Y){for(var L=[],q=g.b(h.layoutExitNormalTriggers||[]),z=q.next();!z.done;z=q.next()){z=h_(z.value,t,Y);if(z instanceof P)return z;L.push(z)}q=[];z=g.b(h.layoutExitSkipTriggers||[]);for(var V=z.next();!V.done;V=z.next()){V=h_(V.value,t,Y);if(V instanceof P)return V;q.push(V)}z=[];V=g.b(h.layoutExitMuteTriggers||[]);for(var l=V.next();!l.done;l=V.next()){l=h_(l.value,t,Y);if(l instanceof P)return l;z.push(l)}V=[];h=g.b(h.layoutExitUserInputSubmittedTriggers||[]);for(l=h.next();!l.done;l= h.next()){l=h_(l.value,t,Y);if(l instanceof P)return l;V.push(l)}return{layoutExitNormalTriggers:L,layoutExitSkipTriggers:q,layoutExitMuteTriggers:z,layoutExitUserInputSubmittedTriggers:V,Cn:[]}}; Um=function(h){var t=g.A(h.renderingContent,u0);if(t==null?0:t.pings)return q0(t.pings);h=g.A(h.renderingContent,$0);return(h==null?0:h.skipPings)?new Map([["skip",h.skipPings]]):new Map}; RuL=function(h,t,Y,L,q){t=g.A(t.renderingContent,u0);if(!t)return new P("Invalid rendering content for DAI media layout");h=[new xB(L),new LZ(Y.Zv.videoLengthSeconds),new qC(Y.Zv.playerVars),new NC(Y.zM),new lM(Y.y_),new Hn(Y.kD),new eN(XP(h)),new aT(Y.Zv.adVideoId),new JP(Y.Uy),t.sodarExtensionData&&new VK(t.sodarExtensionData),new tW({current:null}),new wM({}),new QK(L4(t.pings))].filter(a1L);q!==void 0&&h.push(new X7(q));return h}; I1r=function(h,t,Y){h=h.map(function(H){return Vk(g.A(H.renderingContent,u0),!1)}); var L=h.map(function(H){return H.videoLengthSeconds}),q=L.map(function(H,w){return new KK(w,L)}),z=t,V=Y,l=[]; h.forEach(function(H,w){V=Math.min(z+H.videoLengthSeconds*1E3,Y);t_(H.playerVars,q[w]);l.push({Zv:H,zM:z,y_:V,kD:w,Uy:q[w]});z=V}); return l}; BXL=function(h,t,Y){for(var L=[],q=g.b(h),z=q.next();!z.done;z=q.next())if(z=g.A(z.value.renderingContent,u0)){if(!Qx(z))return new P("Invalid vod media renderer");L.push(Lkc(z))}q=L.map(function(y){return y.XC}); z=[];for(var V=0,l=0;l0?zn:-1;else if(r3= g.A(ii,$0)){ii=UpW(h,t,Y,r3,z,d,l,B,zn);if(ii instanceof P){U=ii;break a}ii=ii(X);Q.push(ii.Zg);J=[].concat(g.p(ii.xD),g.p(J));e=[].concat(g.p(ii.Gq),g.p(e));ii.De&&(V6=[ii.De].concat(g.p(V6)))}else if(r3=g.A(ii,Jj)){if(U===void 0){U=new P("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:r3});break a}ii=Fk6(h,t,Y,z,r3,hr,l,U,d,ry(W,"supports_multi_step_on_desktop"));if(ii instanceof P){U=ii;break a}ii=ii(X);Q.push(ii.Zg);ii.De&&V6.push(ii.De); J=[].concat(g.p(ii.xD),g.p(J));e=[].concat(g.p(ii.Gq),g.p(e));v=[].concat(g.p(ii.RV),g.p(v));E=[].concat(g.p(ii.uO),g.p(E));T=[hr].concat(g.p(T))}else if(ii=g.A(ii,pF)){ii=sTn(h,t,Y,z,ii,hr,l,d);if(ii instanceof P){U=ii;break a}ii=ii(X);Q.push(ii.Zg);ii.De&&V6.push(ii.De);e=[].concat(g.p(ii.Gq),g.p(e))}else{U=new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}U={YD:Q,layoutExitSkipTriggers:J,layoutExitUserInputSubmittedTriggers:v,Cn:E,layoutExitMuteTriggers:e,oV:T,Kr:V6}}}else a:if(d= rPD(L,Y,W),d instanceof P)U=d;else{Q=0;J=[];e=[];v=[];E=[];T=[];hr=[];B=new iM({current:null});q1=new Kb({current:null});V6=!1;w3=[];zn=-1;C=g.b(L);for(ii=C.next();!ii.done;ii=C.next())if(ii=ii.value,g.A(ii,eJ)){ii=CwL(t,Y,g.A(ii,eJ),l);if(ii instanceof P){U=ii;break a}ii=ii(X);J.push(ii.Zg);e=[].concat(g.p(ii.xD),g.p(e));v=[].concat(g.p(ii.Gq),g.p(v));ii.De&&(w3=[ii.De].concat(g.p(w3)))}else if(g.A(ii,u0)){zn=N$(g.A(ii,u0),Y,W);if(zn instanceof xV){U=new P(zn);break a}ii=new KK(Q,d);ii=cPn(t,zn.layoutId, zn.W0,Y,lB(zn.playerVars,zn.GN,V,w,ii),zn.XC,z,ii,l(X),q1,H.get(zn.W0.externalVideoId),void 0,y);Q++;J.push(ii.Zg);e=[].concat(g.p(ii.xD),g.p(e));v=[].concat(g.p(ii.Gq),g.p(v));V6||(hr.push(q1),V6=!0);zn=(zn=zn.W0.adPodSkipTarget)&&zn>0?zn:-1}else if(g.A(ii,$0)){ii=UpW(h,t,Y,g.A(ii,$0),z,Q,l,q1,zn);if(ii instanceof P){U=ii;break a}ii=ii(X);J.push(ii.Zg);e=[].concat(g.p(ii.xD),g.p(e));v=[].concat(g.p(ii.Gq),g.p(v));ii.De&&(w3=[ii.De].concat(g.p(w3)))}else if(g.A(ii,Jj)){if(U===void 0){U=new P("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.A(ii,Jj)});break a}ii=Fk6(h,t,Y,z,g.A(ii,Jj),B,l,U,Q,ry(W,"supports_multi_step_on_desktop"));if(ii instanceof P){U=ii;break a}ii=ii(X);J.push(ii.Zg);ii.De&&w3.push(ii.De);e=[].concat(g.p(ii.xD),g.p(e));v=[].concat(g.p(ii.Gq),g.p(v));E=[].concat(g.p(ii.RV),g.p(E));T=[].concat(g.p(ii.uO),g.p(T));hr=[B].concat(g.p(hr))}else if(g.A(ii,pF)){ii=sTn(h,t,Y,z,g.A(ii,pF),B,l,Q);if(ii instanceof P){U=ii;break a}ii=ii(X);J.push(ii.Zg);ii.De&&w3.push(ii.De);v=[].concat(g.p(ii.Gq),g.p(v))}else{U= new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}U={YD:J,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:E,Cn:T,layoutExitMuteTriggers:v,oV:hr,Kr:w3}}U instanceof P?X=U:(T=X.slotId,d=U.YD,Q=U.layoutExitSkipTriggers,J=U.layoutExitMuteTriggers,e=U.layoutExitUserInputSubmittedTriggers,v=U.oV,X=l(X),E=q?q.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",T=q?q.layoutId:cV(t.T.get(),E,T),hr={layoutId:T,layoutType:E,rU:"core"},X={layout:{layoutId:T,layoutType:E,AC:new Map, layoutExitNormalTriggers:[new mO(t.G,T)],layoutExitSkipTriggers:Q,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:e,Cn:[],rU:"core",clientMetadata:new Ec([new gM(d)].concat(g.p(v))),X6:X(hr)},Kr:U.Kr});return X}}; rPD=function(h,t,Y){var L=[];h=g.b(h);for(var q=h.next();!q.done;q=h.next())if(q=q.value,g.A(q,u0)){q=N$(g.A(q,u0),t,Y);if(q instanceof xV)return new P(q);L.push(q.XC)}return L}; e5c=function(h,t,Y,L,q,z,V,l){if(!KD$(Y,l===void 0?!1:l))return new P("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:Y});var H=Ln(Y);if(H<=0)return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Y});var w=new iM({current:null}),W=qzD(h,t,Y,w,L,z,V);return uec(h,L,z,H,q,function(y,X){var U=y.slotId,C=q$(Y);y=V(y);var d,Q=(d=bB(t,L,Y.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?d: cV(t.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",U);U={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",rU:"core"};d=W(Q,X);var J=kV(d.clientMetadata,"metadata_type_fulfilled_layout");J||gP("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");C=[new eN(L),new jk(H),new oS(C),w];J&&C.push(new mk(J.layoutType));return{Lo:{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",AC:new Map,layoutExitNormalTriggers:[new mO(t.G,Q)],layoutExitSkipTriggers:[new tj(t.G, X.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Vx(t.G,X.layoutId)],Cn:[],rU:"core",clientMetadata:new Ec(C),X6:y(U)},Lf:d}})}; JPp=function(h){if(!Eo1(h))return!1;var t=g.A(h.adVideoStart,rC);return t?g.A(h.linearAd,u0)&&dU(t)?!0:(gP("Invalid Sandwich with notify"),!1):!1}; pL6=function(h){if(h.linearAds==null)return!1;h=g.A(h.adStart,rC);return h?dU(h)?!0:(gP("Invalid LASR with notify"),!1):!1}; vBb=function(h){if(!xT3(h))return!1;h=g.A(h.adStart,rC);return h?dU(h)?!0:(gP("Invalid LASR with notify"),!1):!1}; cU=function(h,t,Y,L,q,z,V,l,H,w){this.W=h;this.T=t;this.G=Y;this.uP=L;this.L6=q;this.S=z;this.QG=V;this.V2=l;this.kT=H;this.loadPolicy=w===void 0?1:w}; mG=function(h,t,Y,L,q,z,V,l,H,w){var W=[];if(t.length===0&&L.length===0&&Y.length===0)return W;t=t.filter(GL);var y=Y.filter(J2L),X=L.filter(GL),U=new Map,C=K5L(t),d=Y.some(function(KL){var h3;return(KL==null?void 0:(h3=KL.adSlotMetadata)==null?void 0:h3.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),Q=Y.some(function(KL){var h3; return(KL==null?void 0:(h3=KL.adSlotMetadata)==null?void 0:h3.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),J=Y.some(function(KL){var h3; return(KL==null?void 0:(h3=KL.adSlotMetadata)==null?void 0:h3.slotType)==="SLOT_TYPE_IN_PLAYER"}),e=Y.some(function(KL){var h3,ky; return(KL==null?void 0:(h3=KL.adSlotMetadata)==null?void 0:h3.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(KL==null?void 0:(ky=KL.adSlotMetadata)==null?void 0:ky.slotType)==="SLOT_TYPE_ABOVE_FEED"}); Y=Y.some(function(KL){var h3;return(KL==null?void 0:(h3=KL.adSlotMetadata)==null?void 0:h3.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(d||Q||J||e||Y)w=$6D(y,t,l,q,C,h.L6.get(),h.loadPolicy,U,h.uP.get(),h.W.get(),J,V,H,w),w instanceof P?gP(w,void 0,void 0,{contentCpn:q}):W.push.apply(W,g.p(w));w=g.b(t);for(Y=w.next();!Y.done;Y=w.next())Y=Y.value,Q=Kkr(h,U,Y,q,z,V,d,l,C,H,y),Q instanceof P?gP(Q,void 0,void 0,{renderer:Y.renderer,config:Y.config.adPlacementConfig,kind:Y.config.adPlacementConfig.kind,contentCpn:q,daiEnabled:V}):W.push.apply(W,g.p(Q));aYi(h.uP.get())||(z=xpL(h,X,q,l,C,U),W.push.apply(W,g.p(z)));if(h.S===null||V&&!l.En){var v, E,T;h=l.fZ&&t.length===1&&((v=t[0].config)==null?void 0:(E=v.adPlacementConfig)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((T=t[0].renderer)==null?void 0:T.adBreakServiceRenderer);if(!W.length&&!h){var hr,B,q1,V6;gP("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":t.length,contentCpn:q,"first APR kind":(hr=t[0])==null?void 0:(B=hr.config)==null?void 0:(q1=B.adPlacementConfig)==null?void 0:q1.kind,renderer:(V6=t[0])==null?void 0: V6.renderer})}return W}v=L.filter(GL);W.push.apply(W,g.p(gab(U,v,h.T.get(),h.S,q,d)));if(!W.length){var zn,w3,ii,r3;gP("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":t.length,contentCpn:q,daiEnabled:V.toString(),"first APR kind":(zn=t[0])==null?void 0:(w3=zn.config)==null?void 0:(ii=w3.adPlacementConfig)==null?void 0:ii.kind,renderer:(r3=t[0])==null?void 0:r3.renderer})}return W}; xpL=function(h,t,Y,L,q,z){function V(X){return AW(h.L6.get(),X)} var l=[];t=g.b(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var w=H.renderer,W=w.sandwichedLinearAdRenderer,y=w.linearAdSequenceRenderer;W&&JPp(W)?(gP("Found AdNotify with SandwichedLinearAdRenderer"),y=g.A(W.adVideoStart,rC),W=g.A(W.linearAd,u0),iB(z,w,H.config.adPlacementConfig.kind),w=void 0,y=d63((w=y)==null?void 0:w.layout.layoutId,h.T.get(),h.G.get(),H.config.adPlacementConfig,H.adSlotLoggingData,W,Y,L,V,q,h.loadPolicy,h.uP.get(),h.L6.get()),y instanceof P?gP(y):l.push.apply(l,g.p(y))): y&&(!y.adLayoutMetadata&&pL6(y)||y.adLayoutMetadata&&vBb(y))&&(gP("Found AdNotify with LinearAdSequenceRenderer"),iB(z,w,H.config.adPlacementConfig.kind),w=void 0,W=jTL((w=g.A(y.adStart,rC))==null?void 0:w.layout.layoutId,h.T.get(),h.G.get(),H.config.adPlacementConfig,H.adSlotLoggingData,y.linearAds,HX(y.adLayoutMetadata)?y.adLayoutMetadata:void 0,Y,L,V,q,h.loadPolicy,h.uP.get()),W instanceof P?gP(W):l.push.apply(l,g.p(W)))}return l}; Kkr=function(h,t,Y,L,q,z,V,l,H,w,W){function y(J){return AW(h.L6.get(),J)} var X=Y.renderer,U=Y.config.adPlacementConfig,C=U.kind,d=Y.adSlotLoggingData,Q=l.En&&C==="AD_PLACEMENT_KIND_START";Q=z&&!Q;if(X.adsEngagementPanelRenderer!=null)return YK(t,Y.elementId,C,X.adsEngagementPanelRenderer.isContentVideoEngagementPanel,X.adsEngagementPanelRenderer.adVideoId,X.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.adsEngagementPanelRenderer;J=AW(h.L6.get(),J);return uB(T,hr,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new jN(B),e,v,B.impressionPings,J,X.adsEngagementPanelRenderer.adLayoutLoggingData,E)}),[]; if(X.adsEngagementPanelLayoutViewModel)return YK(t,Y.elementId,C,X.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,X.adsEngagementPanelLayoutViewModel.adVideoId,X.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.adsEngagementPanelLayoutViewModel;J=AW(h.L6.get(),J);return eK(T,hr,"LAYOUT_TYPE_PANEL",new ZY(B),e,v,J,X.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,E)}),[]; if(X.actionCompanionAdRenderer!=null){if(X.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return mTc(h.T.get(),h.S,h.G.get(),X.actionCompanionAdRenderer,U,d,L,y);YK(t,Y.elementId,C,X.actionCompanionAdRenderer.isContentVideoCompanion,X.actionCompanionAdRenderer.adVideoId,X.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.actionCompanionAdRenderer;J=AW(h.L6.get(),J);return uB(T,hr,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Fe(B),e,v,B.impressionPings,J,X.actionCompanionAdRenderer.adLayoutLoggingData,E)})}else if(X.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(X.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return DTb(h.T.get(),h.S,h.G.get(),X.topBannerImageTextIconButtonedLayoutViewModel,U,d,L,y); YK(t,Y.elementId,C,X.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,X.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,X.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.topBannerImageTextIconButtonedLayoutViewModel;J=AW(h.L6.get(),J);return eK(T,hr,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new s7(B),e,v,J,X.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,E)})}else if(X.imageCompanionAdRenderer)YK(t, Y.elementId,C,X.imageCompanionAdRenderer.isContentVideoCompanion,X.imageCompanionAdRenderer.adVideoId,X.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.imageCompanionAdRenderer; J=AW(h.L6.get(),J);return uB(T,hr,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new G7(B),e,v,B.impressionPings,J,X.imageCompanionAdRenderer.adLayoutLoggingData,E)}); else if(X.bannerImageLayoutViewModel)YK(t,Y.elementId,C,X.bannerImageLayoutViewModel.isContentVideoCompanion,X.bannerImageLayoutViewModel.adVideoId,X.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.bannerImageLayoutViewModel;J=AW(h.L6.get(),J);return eK(T,hr,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new QM(B),e,v,J,X.bannerImageLayoutViewModel.adLayoutLoggingData,E)}); else if(X.shoppingCompanionCarouselRenderer)YK(t,Y.elementId,C,X.shoppingCompanionCarouselRenderer.isContentVideoCompanion,X.shoppingCompanionCarouselRenderer.adVideoId,X.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,U,d,function(J,e,v,E){var T=h.G.get(),hr=J.slotId,B=X.shoppingCompanionCarouselRenderer;J=AW(h.L6.get(),J);return uB(T,hr,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new rN(B),e,v,B.impressionPings,J,X.shoppingCompanionCarouselRenderer.adLayoutLoggingData,E)}); else if(X.adBreakServiceRenderer){if(!B26(Y))return[];if(C==="AD_PLACEMENT_KIND_PAUSE")return RIp(h.T.get(),U,d,Y.renderer.adBreakServiceRenderer,L);if(C!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&C!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return INL(h.T.get(),U,d,Y.renderer.adBreakServiceRenderer,L,q,z);l.fZ||gP("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:C,adPlacementConfig:U,daiEnabledForContentVideo:String(z),isServedFromLiveInfra:String(l.fZ),clientPlaybackNonce:l.clientPlaybackNonce}); if(C==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!h.QG)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!h.kT)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");h.kT.Bv({adPlacementRenderer:Y,contentCpn:L,JF:q});q=h.QG.get().getCurrentTimeSec(1,!1);return EBc(h.T.get(),Y.renderer.adBreakServiceRenderer,U,q,L,d,z)}if(!h.V2)return new P("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); h.V2.Bv({adPlacementRenderer:Y,contentCpn:L,JF:q})}else{if(X.clientForecastingAdRenderer)return NNL(h.T.get(),h.G.get(),U,d,X.clientForecastingAdRenderer,L,q,y);if(X.invideoOverlayAdRenderer)return WkL(h.T.get(),h.G.get(),U,d,X.invideoOverlayAdRenderer,L,q,y);if(X.instreamAdPlayerOverlayRenderer)return HbL(h.T.get(),h.G.get(),U,d,X.instreamAdPlayerOverlayRenderer,L,y);if((X.linearAdSequenceRenderer||X.instreamVideoAdRenderer)&&Q)return F5r(h.T.get(),h.G.get(),Y,L,y,w,!h.uP.get().K.J().N("html5_override_ad_video_length_killswitch")); if(X.linearAdSequenceRenderer&&!Q){if(V)return[];iB(t,X,C);if(X.linearAdSequenceRenderer.adLayoutMetadata){if(!xT3(X.linearAdSequenceRenderer))return new P("Received invalid LinearAdSequenceRenderer.")}else if(X.linearAdSequenceRenderer.linearAds==null)return new P("Received invalid LinearAdSequenceRenderer.");if(g.A(X.linearAdSequenceRenderer.adStart,rC)){gP("Found AdNotify in LinearAdSequenceRenderer");Y=g.A(X.linearAdSequenceRenderer.adStart,rC);if(!FDn(Y))return new P("Invalid AdMessageRenderer."); z=X.linearAdSequenceRenderer.linearAds;return ZbD(h.W.get(),h.T.get(),h.G.get(),h.L6.get(),U,d,Y,HX(X.linearAdSequenceRenderer.adLayoutMetadata)?X.linearAdSequenceRenderer.adLayoutMetadata:void 0,z,L,q,l,y,H,h.loadPolicy,h.uP.get())}return QTD(h.T.get(),h.G.get(),U,d,X.linearAdSequenceRenderer.linearAds,HX(X.linearAdSequenceRenderer.adLayoutMetadata)?X.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,q,l,y,H,h.loadPolicy,h.uP.get(),W)}if(!X.remoteSlotsRenderer||z){if(X.instreamVideoAdRenderer&& !Q){if(V)return[];iB(t,X,C);return uwp(h.T.get(),h.G.get(),U,d,X.instreamVideoAdRenderer,L,q,l,y,H,h.loadPolicy,h.uP.get(),h.L6.get(),W)}if(X.instreamSurveyAdRenderer)return e5c(h.T.get(),h.G.get(),X.instreamSurveyAdRenderer,U,d,L,y,ry(h.uP.get(),"supports_multi_step_on_desktop"));if(X.sandwichedLinearAdRenderer!=null)return Eo1(X.sandwichedLinearAdRenderer)?g.A(X.sandwichedLinearAdRenderer.adVideoStart,rC)?(gP("Found AdNotify in SandwichedLinearAdRenderer"),Y=g.A(X.sandwichedLinearAdRenderer.adVideoStart, rC),FDn(Y)?(z=g.A(X.sandwichedLinearAdRenderer.linearAd,u0))?G1L(Y,z,U,h.W.get(),h.T.get(),h.G.get(),h.L6.get(),d,L,q,l,y,H,h.loadPolicy,h.uP.get()):new P("Missing IVAR from Sandwich"):new P("Invalid AdMessageRenderer.")):QTD(h.T.get(),h.G.get(),U,d,[X.sandwichedLinearAdRenderer.adVideoStart,X.sandwichedLinearAdRenderer.linearAd],void 0,L,q,l,y,H,h.loadPolicy,h.uP.get()):new P("Received invalid SandwichedLinearAdRenderer.");if(X.videoAdTrackingRenderer!=null)return z5b(h.T.get(),h.G.get(),X.videoAdTrackingRenderer, U,d,L,q,l.m2,y)}}return[]}; J_=function(h,t,Y,L,q,z,V,l){g.O.call(this);var H=this;this.T=h;this.S=t;this.HZ=L;this.QG=q;this.uP=z;this.fb=V;this.xe=l;this.G=null;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.Ui()||Y.get().removeListener(H)}); L.get().addListener(this);this.addOnDisposeCallback(function(){L.Ui()||L.get().removeListener(H)})}; Kn=function(h,t,Y){var L=h.QG.get().getCurrentTimeSec(1,!1);h.uP.get().K.J().pZ()&&yN(h.fb.get(),"sdai","onopp.1;evt."+Y.event+";start."+Y.startSecs.toFixed(3)+";d."+Y.cZ.toFixed(3));IZ(h.T.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var q=h.S.get(),z=t.adPlacementRenderer.renderer.adBreakServiceRenderer,V=t.contentCpn,l=t.adPlacementRenderer.adSlotLoggingData,H=pn(h.uP.get()),w=h.fb;if(q.uP.get().K.J().experiments.I0("enable_smearing_expansion_dai")){var W=q.uP.get();W=g.Sk(W.K.J().experiments, "max_prefetch_window_sec_for_livestream_optimization");H=q.uP.get();var y=g.Sk(H.K.J().experiments,"min_prefetch_offset_sec_for_livestream_optimization");H={Ho:k73(Y),o2:!1,cueProcessedMs:L*1E3};var X=Y.startSecs+Y.cZ;if(L===0)H.XG=new Xg(0,X*1E3);else{y=Y.startSecs-y;var U=y-L;H.XG=U<=0?new Xg(y*1E3,X*1E3):new Xg(Math.floor(L+Math.random()*Math.min(U,W))*1E3,X*1E3)}W=H}else W={Ho:k73(Y),o2:!1},X=Y.startSecs+Y.cZ,Y.startSecs<=L?H=new Xg((Y.startSecs-4)*1E3,X*1E3):(y=Math.max(0,Y.startSecs-L-10),H= new Xg(Math.floor(L+Math.random()*(H?L===0?0:Math.min(y,5):y))*1E3,X*1E3)),W.XG=H;z=D9(q,z,V,W,l,[new YV(Y)]);vU(q.uP.get())&&yN(w.get(),"abrsm","cpi."+Y.identifier+";cps."+Y.startSecs+";cpd."+Y.cZ+";cts."+L+";rbf."+W.XG.start);w.get().K.FV(Y.startSecs-L,W.XG.start/1E3-L);return[z]})}; ay=function(h){var t,Y=(t=kV(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!Y)return null;t=kV(h.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var L=h.layoutId,q=kV(h.clientMetadata,"metadata_type_content_cpn"),z=kV(h.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V=kV(h.clientMetadata,"metadata_type_player_overlay_layout_renderer"),l=kV(h.clientMetadata,"metadata_type_player_underlay_renderer"),H=kV(h.clientMetadata, "metadata_type_ad_placement_config"),w=kV(h.clientMetadata,"metadata_type_video_length_seconds");var W=vn(h.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?kV(h.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):vn(h.clientMetadata,"metadata_type_layout_enter_ms")&&vn(h.clientMetadata,"metadata_type_layout_exit_ms")?(kV(h.clientMetadata,"metadata_type_layout_exit_ms")-kV(h.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Ib:L,contentCpn:q,YF:Y,iN:t,instreamAdPlayerOverlayRenderer:z, playerOverlayLayoutRenderer:V,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:H,videoLengthSeconds:w,Qw:W,inPlayerLayoutId:kV(h.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:kV(h.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; nBc=function(h,t){return Ob$(h,t)}; fYD=function(h,t){t=Ob$(h,t);if(!t)return null;var Y;t.Qw=(Y=kV(h.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:Y.adBreakRemainingLengthSeconds;return t}; Ob$=function(h,t){var Y,L=(Y=kV(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Y.current;if(!L)return null;Y=zSb(h,t);return{ZQ:qSL(h,t),adPlacementConfig:kV(h.clientMetadata,"metadata_type_ad_placement_config"),XK:Y,contentCpn:kV(h.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:kV(h.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:kV(h.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:kV(h.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Qw:void 0,YF:L,Ib:h.layoutId,videoLengthSeconds:kV(h.clientMetadata,"metadata_type_video_length_seconds")}}; xK=function(h,t,Y,L,q,z,V,l,H){g.O.call(this);this.W=h;this.U=t;this.X=Y;this.S=L;this.G=q;this.T=z;this.L6=V;this.uP=l;this.Dx=H;this.ij=!0}; $pi=function(h,t,Y){return pfc(h.G.get(),t.contentCpn,t.Ib,function(L){return vab(h.T.get(),L.slotId,Y,t.adPlacementConfig,t.Ib,AW(h.L6.get(),L))})}; Em=function(h,t,Y,L,q,z,V,l){g.O.call(this);this.T=h;this.G=t;this.S=Y;this.uP=L;this.W=q;this.Dx=z;this.QG=V;this.SE=l}; kK=function(h){g.O.call(this);this.G=h}; IZ=function(h,t,Y,L){h.G().mT(t,L);Y=Y();h=h.G();h.CZ.Te("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",t,L,Y);t=g.b(Y);for(Y=t.next();!Y.done;Y=t.next())a:{L=h;Y=Y.value;L.CZ.au("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Y);L.CZ.au("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",Y);try{var q=L.G;if(g.e$(Y.slotId))throw new P("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(t8(q,Y))throw new P("Duplicate registration for slot.",{slotId:Y.slotId,slotEntryTriggerType:Y.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!q.pQ.XE.has(Y.slotType))throw new P("No fulfillment adapter factory registered for slot of type: "+Y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!q.pQ.t8.has(Y.slotType))throw new P("No SlotAdapterFactory registered for slot of type: "+Y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Mo(q,"TRIGGER_CATEGORY_SLOT_ENTRY",Y.slotEntryTrigger?[Y.slotEntryTrigger]:[]);Mo(q,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", Y.slotFulfillmentTriggers);Mo(q,"TRIGGER_CATEGORY_SLOT_EXPIRATION",Y.slotExpirationTriggers);var z=L.G,V=Y.slotType+"_"+Y.slotPhysicalPosition,l=WV(z,V);if(t8(z,Y))throw new P("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(Y.slotId,new Den(Y));z.G.set(V,l)}catch(q1){q1 instanceof P&&q1.oJ?(L.CZ.wV("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",q1.oJ,Y),gP(q1,Y,void 0,void 0,q1.Bp)):(L.CZ.wV("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", Y),gP(q1,Y));break a}t8(L.G,Y).U=!0;try{var H=L.G,w=t8(H,Y),W=Y.slotEntryTrigger,y=H.pQ.I$.get(W.triggerType);y&&(y.F2("TRIGGER_CATEGORY_SLOT_ENTRY",W,Y,null),w.R0.set(W.triggerId,y));for(var X=g.b(Y.slotFulfillmentTriggers),U=X.next();!U.done;U=X.next()){var C=U.value,d=H.pQ.I$.get(C.triggerType);d&&(d.F2("TRIGGER_CATEGORY_SLOT_FULFILLMENT",C,Y,null),w.AQ.set(C.triggerId,d))}for(var Q=g.b(Y.slotExpirationTriggers),J=Q.next();!J.done;J=Q.next()){var e=J.value,v=H.pQ.I$.get(e.triggerType);v&&(v.F2("TRIGGER_CATEGORY_SLOT_EXPIRATION", e,Y,null),w.L.set(e.triggerId,v))}var E=H.pQ.XE.get(Y.slotType).get().build(H.S,Y);w.C=E;var T=H.pQ.t8.get(Y.slotType).get().build(H.X,Y);T.init();w.T=T}catch(q1){q1 instanceof P&&q1.oJ?(L.CZ.wV("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",q1.oJ,Y),gP(q1,Y,void 0,void 0,q1.Bp)):(L.CZ.wV("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Y),gP(q1,Y));my(L,Y,!0);break a}L.CZ.au("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Y);L.G.VM(Y);for(var hr=g.b(L.T),B=hr.next();!B.done;B= hr.next())B.value.VM(Y);YO(L,Y)}}; Om=function(h,t,Y,L,q){g.O.call(this);var z=this;this.T=h;this.S=t;this.o4=Y;this.context=q;this.G=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.Ui()||L.get().removeListener(z)})}; no3=function(h,t){var Y=0x8000000000000;var L=0;for(var q=g.b(t.slotFulfillmentTriggers),z=q.next();!z.done;z=q.next())z=z.value,z instanceof I0?(Y=Math.min(Y,z.G.start),L=Math.max(L,z.G.end)):gP("Found unexpected fulfillment trigger for throttled slot.",t,null,{fulfillmentTrigger:z});L=new Xg(Y,L);Y="throttledadcuerange:"+t.slotId;h.G.set(Y,t);h.o4.get().addCueRange(Y,L.start,L.end,!1,h);YW(h.context.uP.get())&&(t=L.start,L=L.end,q={},h.context.j1.hQ("tcrr",(q.cid=Y,q.sm=t,q.em=L,q)))}; nn=function(){g.O.apply(this,arguments);this.ij=!0;this.x3=new Map;this.G=new Map}; fn=function(h,t){h=g.b(h.x3.values());for(var Y=h.next();!Y.done;Y=h.next())if(Y.value.layoutId===t)return!0;return!1}; $K=function(h,t){h=g.b(h.G.values());for(var Y=h.next();!Y.done;Y=h.next()){Y=g.b(Y.value);for(var L=Y.next();!L.done;L=Y.next())if(L=L.value,L.layoutId===t)return L}gP("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.e$(t)),layoutId:t})}; TNc=function(){this.G=new Map}; APb=function(h,t){this.callback=h;this.slot=t}; TS=function(){}; S76=function(h,t,Y){this.callback=h;this.slot=t;this.QG=Y}; IYr=function(h,t,Y){this.callback=h;this.slot=t;this.QG=Y;this.T=!1;this.G=0}; R56=function(h,t,Y){this.callback=h;this.slot=t;this.QG=Y}; A_=function(h){this.QG=h}; SK=function(h){g.O.call(this);this.Z0=h;this.E3=new Map}; Iy=function(h,t){for(var Y=[],L=g.b(h.E3.values()),q=L.next();!q.done;q=L.next()){q=q.value;var z=q.trigger;z instanceof Vx&&z.triggeringLayoutId===t&&Y.push(q)}Y.length?lL(h.Z0(),Y):gP("Survey is submitted but no registered triggers can be activated.")}; Ry=function(h,t,Y){SK.call(this,h);var L=this;this.uP=Y;t.get().addListener(this);this.addOnDisposeCallback(function(){t.Ui()||t.get().removeListener(L)})}; BU=function(h){g.O.call(this);this.G=h;this.ij=!0;this.E3=new Map;this.X=new Set;this.S=new Set;this.W=new Set;this.U=new Set;this.T=new Set}; PU=function(h){g.O.call(this);this.G=h;this.E3=new Map}; mu=function(h,t){for(var Y=[],L=g.b(h.E3.values()),q=L.next();!q.done;q=L.next())q=q.value,q.trigger.G===t.layoutId&&Y.push(q);Y.length&&lL(h.G(),Y)}; DQ=function(h,t,Y){g.O.call(this);var L=this;this.G=h;this.context=Y;this.E3=new Map;t.get().addListener(this);this.addOnDisposeCallback(function(){t.Ui()||t.get().removeListener(L)})}; hE=function(h,t,Y,L,q){g.O.call(this);var z=this;this.T=h;this.o4=t;this.QG=Y;this.Dx=L;this.context=q;this.ij=!0;this.E3=new Map;this.G=new Set;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.Ui()||Y.get().removeListener(z)})}; BNn=function(h,t,Y,L,q,z,V,l,H,w){if(rt(h.Dx.get(),1).clientPlaybackNonce!==H)throw new P("Cannot register CueRange-based trigger for different content CPN",{trigger:Y});h.E3.set(Y.triggerId,{fk:new l0(t,Y,L,q),cueRangeId:z});h.o4.get().addCueRange(z,V,l,w,h);YW(h.context.uP.get())&&(H={},h.context.j1.hQ("crr",(H.ca=t,H.tt=Y.triggerType,H.st=L.slotType,H.lt=q==null?void 0:q.layoutType,H.cid=z,H.sm=V,H.em=l,H)))}; Pwi=function(h,t){h=g.b(h.E3.entries());for(var Y=h.next();!Y.done;Y=h.next()){var L=g.b(Y.value);Y=L.next().value;L=L.next().value;if(t===L.cueRangeId)return Y}return""}; tE=function(h,t){g.O.call(this);var Y=this;this.W=h;this.T=new Map;this.S=new Map;this.G=null;t.get().addListener(this);this.addOnDisposeCallback(function(){t.Ui()||t.get().removeListener(Y)}); var L;this.G=((L=t.get().TP)==null?void 0:L.slotId)||null}; mp6=function(h,t){var Y=[];h=g.b(h.values());for(var L=h.next();!L.done;L=h.next())L=L.value,L.slot.slotId===t&&Y.push(L);return Y}; i1=function(h){g.O.call(this);this.G=h;this.ij=!0;this.E3=new Map}; YG=function(h,t,Y){t=t.layoutId;for(var L=[],q=g.b(h.E3.values()),z=q.next();!z.done;z=q.next())if(z=z.value,z.trigger instanceof mO){var V;if(V=z.trigger.layoutId===t){V=Y;var l=AlW.get(z.category);V=l?l===V:!1}V&&L.push(z)}L.length&&lL(h.G(),L)}; gx=function(h){g.O.call(this);this.G=h;this.ij=!0;this.E3=new Map}; Yj=function(h,t,Y,L,q,z){g.O.call(this);var V=this;this.U=h;this.HZ=t;this.QG=Y;this.fb=L;this.V2=z;this.G=null;this.W=!1;this.ij=!0;this.E3=new Map;t.get().addListener(this);this.addOnDisposeCallback(function(){t.Ui()||t.get().removeListener(V)}); q.get().addListener(this);this.addOnDisposeCallback(function(){q.Ui()||q.get().removeListener(V)})}; tk$=function(h){h.G&&(h.W=!0,h.T&&(h.T.stop(),h.T.start()),Dpn(h,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),yN(h.fb.get(),"ads_ce","bdc."+hnL(h).length))}; Dpn=function(h,t){for(var Y=[],L=g.b(h.E3.values()),q=L.next();!q.done;q=L.next())q=q.value,q.trigger.triggerType===t&&Y.push(q);Y.length>0&&lL(h.U(),Y)}; LO=function(h,t,Y,L,q){for(var z=[],V=g.b(h.E3.values()),l=V.next();!l.done;l=V.next()){var H=l=l.value,w=H.trigger;H=H.slot;if(w.triggerType===t){if(w instanceof Tw||w instanceof Ai||w instanceof R0){if(q&&w.breakDurationMs!==Y)continue;if(!q&&w.breakDurationMs===Y)continue;if(L.has(H.slotId))continue}z.push(l)}}z.length>0&&lL(h.U(),z)}; iZi=function(h,t){t=(t.cZ+1)*1E3;var Y=void 0;h=g.b(h.E3.values());for(var L=h.next();!L.done;L=h.next()){var q=L.value;L=q.trigger;q=q.slot;L instanceof Tw&&L.breakDurationMs<=t&&(!Y||L.breakDurationMs>Y.trigger.breakDurationMs)&&(Y={slot:q,trigger:L})}return Y}; gVD=function(h){h=h.adPlacementRenderer.config.adPlacementConfig;if(!h.prefetchModeConfig||!h.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;h=Number(h.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(h)||h<=0?0:Math.floor(Math.random()*h)}; Yc$=function(h){h=h.adPlacementRenderer.config.adPlacementConfig;if(h.prefetchModeConfig&&h.prefetchModeConfig.cacheFetchRefreshDurationMs&&(h=Number(h.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(h)||h<=0)))return h}; qm=function(h){h.G=null;h.E3.clear();h.T&&h.T.stop();h.X&&h.X.stop();var t;(t=h.S)==null||t.stop();delete h.S}; hnL=function(h){var t=[];h=g.b(h.E3.values());for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value.trigger,Y instanceof Tw&&t.push(Y.breakDurationMs);return t}; zB=function(h){g.O.call(this);this.S=h;this.ij=!0;this.E3=new Map;this.G=new Map;this.T=new Map}; Lyr=function(h,t){var Y=[];if(t=h.G.get(t.layoutId)){t=g.b(t);for(var L=t.next();!L.done;L=t.next())(L=h.T.get(L.value.triggerId))&&Y.push(L)}return Y}; VP=function(h){g.O.call(this);this.G=h;this.E3=new Map}; qcL=function(h,t){for(var Y=[],L=g.b(h.E3.values()),q=L.next();!q.done;q=L.next())q=q.value,q.trigger instanceof vO&&q.trigger.slotId===t&&Y.push(q);Y.length>=1&&lL(h.G(),Y)}; znL=function(h,t){var Y={slotId:RZ(t,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],rU:"surface",clientMetadata:new Ec([])},L=Object,q=L.assign;t=cV(t,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Y.slotId);t={layoutId:t,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",AC:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"surface", clientMetadata:new Ec([]),X6:kdL(!1,Y.slotId,Y.slotType,Y.slotPhysicalPosition,Y.rU,Y.slotEntryTrigger,Y.slotFulfillmentTriggers,Y.slotExpirationTriggers,t,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return q.call(L,{},h,{u0:!0,slot:Y,layout:t})}; SH1=function(h,t,Y,L){var q=h.kind;L=L?!1:!h.hideCueRangeMarker;switch(q){case "AD_PLACEMENT_KIND_START":return L={Ho:new Xg(-0x8000000000000,-0x8000000000000),o2:L},Y!=null&&(L.XG=new Xg(-0x8000000000000,-0x8000000000000)),L;case "AD_PLACEMENT_KIND_END":return L={Ho:new Xg(0x7ffffffffffff,0x8000000000000),o2:L},Y!=null&&(L.XG=new Xg(Math.max(0,t-Y),0x8000000000000)),L;case "AD_PLACEMENT_KIND_MILLISECONDS":q=h.adTimeOffset;q.offsetStartMilliseconds||gP("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); q.offsetEndMilliseconds||gP("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");h=Number(q.offsetStartMilliseconds);q=Number(q.offsetEndMilliseconds);q===-1&&(q=t);if(Number.isNaN(h)||Number.isNaN(q)||h>q)return new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:h,offsetEndMs:q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",q===t&&h-500<=q);L={Ho:new Xg(h,q),o2:L};if(Y!=null){h=Math.max(0,h-Y);if(h===q)return L;L.XG=new Xg(h,q)}return L; default:return new P("AdPlacementKind not supported in convertToRange.",{kind:q,adPlacementConfig:h})}}; k73=function(h){var t=h.startSecs*1E3;return new Xg(t,t+h.cZ*1E3)}; VkL=function(h){if(!h||!h.adPlacements&&!h.adSlots)return!1;for(var t=g.b(h.adPlacements||[]),Y=t.next();!Y.done;Y=t.next())if(Y=Y.value)if(Y=Y.adPlacementRenderer,Y!=null&&(Y.config&&Y.config.adPlacementConfig&&Y.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;h=g.b(h.adSlots||[]);for(t=h.next();!t.done;t=h.next()){var L=Y=void 0;if(((Y=g.A(t.value,PX))==null?void 0:(L=Y.adSlotMetadata)==null?void 0:L.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Nm=function(h){this.uP=h;this.T=new Map;this.G=new Map;this.S=new Map}; RZ=function(h,t){if(l1(h.uP.get())){var Y=h.T.get(t)||0;Y++;h.T.set(t,Y);return t+"_"+Y}return g.H3(16)}; cV=function(h,t,Y){if(l1(h.uP.get())){var L=h.G.get(t)||0;L++;h.G.set(t,L);return Y+"_"+t+"_"+L}return g.H3(16)}; FP=function(h,t){if(l1(h.uP.get())){var Y=h.S.get(t)||0;Y++;h.S.set(t,Y);return t+"_"+Y}return g.H3(16)}; NML=function(h){var t=[new BL(h.Ib),new hW(h.YF),new eN(h.adPlacementConfig),new LZ(h.videoLengthSeconds),new sc(h.Qw)];h.instreamAdPlayerOverlayRenderer&&t.push(new E7(h.instreamAdPlayerOverlayRenderer));h.playerOverlayLayoutRenderer&&t.push(new kB(h.playerOverlayLayoutRenderer));h.iN&&t.push(new Kb(h.iN));return t}; lpb=function(h,t,Y,L,q,z){h=Y.inPlayerLayoutId?Y.inPlayerLayoutId:cV(z,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h);var V,l,H=Y.instreamAdPlayerOverlayRenderer?(V=Y.instreamAdPlayerOverlayRenderer)==null?void 0:V.adLayoutLoggingData:(l=Y.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;V={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",rU:t};return{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",AC:new Map,layoutExitNormalTriggers:[new fK(function(w){return FP(z, w)},Y.Ib)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:t,clientMetadata:L,X6:q(V),adLayoutLoggingData:H}}; HG=function(h,t){var Y=this;this.T=h;this.uP=t;this.G=function(L){return FP(Y.T.get(),L)}}; vab=function(h,t,Y,L,q,z){Y=new Ec([new O7(Y),new eN(L)]);t=cV(h.T.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",t);L={layoutId:t,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",rU:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",AC:new Map,layoutExitNormalTriggers:[new fK(function(V){return FP(h.T.get(),V)},q)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:Y,X6:z(L),adLayoutLoggingData:void 0}}; HU=function(h,t,Y,L,q){var z=NML(L);return lpb(t,Y,L,new Ec(z),q,h.T.get())}; HZD=function(h,t,Y,L,q){var z=NML(L);z.push(new cL(L.ZQ));z.push(new uw(L.XK));return lpb(t,Y,L,new Ec(z),q,h.T.get())}; uB=function(h,t,Y,L,q,z,V,l,H,w){t=cV(h.T.get(),Y,t);var W={layoutId:t,layoutType:Y,rU:"core"},y=new Map;V&&y.set("impression",V);V=[new BO(h.G,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&V.push(new nK(h.G,w,["normal"]));return{layoutId:t,layoutType:Y,AC:y,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([L,new eN(z),new BL(q)]),X6:l(W),adLayoutLoggingData:H}}; eK=function(h,t,Y,L,q,z,V,l,H){t=cV(h.T.get(),Y,t);var w={layoutId:t,layoutType:Y,rU:"core"},W=[new BO(h.G,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];H&&W.push(new nK(h.G,H,["normal"]));return{layoutId:t,layoutType:Y,AC:new Map,layoutExitNormalTriggers:W,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([L,new eN(z),new BL(q)]),X6:V(w),adLayoutLoggingData:l}}; jK=function(h,t,Y){var L=[];L.push(new PO(h.G,Y));t&&L.push(t);return L}; sm=function(h,t,Y,L,q,z,V){var l={layoutId:t,layoutType:Y,rU:"core"};return{layoutId:t,layoutType:Y,AC:new Map,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[new xG(h.G,t)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([new dN(L),new eN(q)]),X6:z(l),adLayoutLoggingData:L.adLayoutLoggingData}}; zS=function(h,t,Y,L,q,z,V,l){var H={layoutId:t,layoutType:z,rU:"core"};return{layoutId:t,layoutType:z,AC:new Map,layoutExitNormalTriggers:[new fK(h.G,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([new eN(L)].concat(g.p(V))),X6:q(H),adLayoutLoggingData:l}}; bB=function(h,t,Y,L){if(h.uP.get().Sh(t.kind==="AD_PLACEMENT_KIND_START"))if(Y===void 0)gP("Expected SSAP layout ID in renderer",void 0,void 0,{caller:L});else return Y}; yP6=function(h,t,Y,L,q,z,V,l,H,w,W,y,X){h=ZQ(h,t,Y,q,z,V,l,H,y,bB(h,Y,L.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),X);t=h.oV;Y=new PL(h.RO);L=h.layoutExitSkipTriggers;w>0&&(t.push(Y),t.push(new vL(w)),L=[]);t.push(new pb(W));return{Zg:{layoutId:h.layoutId,layoutType:h.layoutType,AC:h.AC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:h.rU,clientMetadata:new Ec(t),X6:h.X6,adLayoutLoggingData:h.adLayoutLoggingData}, xD:L,Gq:h.layoutExitMuteTriggers,RV:h.layoutExitUserInputSubmittedTriggers,uO:h.Cn,De:h.De}}; MN1=function(h,t,Y,L,q,z,V,l,H,w){t=ZQ(h,t,Y,L,z,new Map,V,function(W){return l(W,H)},void 0,bB(h,Y,q.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); h=new Vx(h.G,t.RO);Y=new PL(t.RO);w=new pb(w);return{Zg:{layoutId:t.layoutId,layoutType:t.layoutType,AC:t.AC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:t.rU,clientMetadata:new Ec([].concat(g.p(t.oV),[Y,w])),X6:t.X6,adLayoutLoggingData:t.adLayoutLoggingData},xD:t.layoutExitSkipTriggers,Gq:t.layoutExitMuteTriggers,RV:[].concat(g.p(t.layoutExitUserInputSubmittedTriggers),[h]),uO:t.Cn,De:t.De}}; ZQ=function(h,t,Y,L,q,z,V,l,H,w,W){t=w!=null?w:cV(h.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);w={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",rU:"adapter"};l=l(t);var y=kV(l.clientMetadata,"metadata_type_fulfilled_layout");y||gP("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var X=y?y.layoutId:"";Y=[new eN(Y),new jk(L),new oS(q)];y&&Y.push(new mk(y.layoutType));W&&Y.push(new Hn(W));return{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", AC:z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new tj(h.G,X)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"adapter",oV:Y,X6:V(w),adLayoutLoggingData:H,De:l,RO:X}}; eub=function(h,t,Y,L,q,z,V,l,H,w,W){h=wnb(h,t,"core",Y,L,q,z,V,l,H,w,void 0,W);return{layoutId:h.layoutId,layoutType:h.layoutType,AC:h.AC,layoutExitNormalTriggers:h.layoutExitNormalTriggers,layoutExitSkipTriggers:h.layoutExitSkipTriggers,layoutExitMuteTriggers:h.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:h.layoutExitUserInputSubmittedTriggers,Cn:h.Cn,rU:h.rU,clientMetadata:new Ec(h.Mv),X6:h.X6,adLayoutLoggingData:h.adLayoutLoggingData}}; cPn=function(h,t,Y,L,q,z,V,l,H,w,W,y,X){t=wnb(h,t,"adapter",Y,L,q,z,V,l,H,W,y,X);L=t.layoutExitSkipTriggers;q=t.Mv;Y.adPodSkipTarget&&Y.adPodSkipTarget>0&&(q.push(w),q.push(new vL(Y.adPodSkipTarget)),L=[]);q.push(new pb(l.adPodIndex));Y.isCritical&&(L=[new nK(h.G,t.layoutId,["error"])].concat(g.p(L)));return{Zg:{layoutId:t.layoutId,layoutType:t.layoutType,AC:t.AC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:t.rU,clientMetadata:new Ec(q), X6:t.X6,adLayoutLoggingData:t.adLayoutLoggingData},xD:L,Gq:t.layoutExitMuteTriggers,RV:t.layoutExitUserInputSubmittedTriggers,uO:t.Cn}}; wnb=function(h,t,Y,L,q,z,V,l,H,w,W,y,X){var U={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",rU:Y};q=[new eN(q),new JP(H),new aT(L.externalVideoId),new xB(l),new oS({impressionCommands:L.impressionCommands,abandonCommands:L.onAbandonCommands,completeCommands:L.completeCommands,progressCommands:L.adVideoProgressCommands}),new qC(z),new tW({current:null}),new LZ(V)];(z=L.playerOverlay.instreamAdPlayerOverlayRenderer)&&q.push(new E7(z));(V=L.playerOverlay.playerOverlayLayoutRenderer)&&q.push(new kB(V)); y&&q.push(new zK(y));(y=L.playerUnderlay)&&q.push(new O7(y));l=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER");y=(y=z?z.elementId:V==null?void 0:V.layoutId)?y:cV(h.T.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);q.push(new PL(y));q.push(new DY(l));q.push(new Hn(H.adPodIndex));L.adNextParams&&q.push(new bw(L.adNextParams));L.shrunkenPlayerBytesConfig&&q.push(new $B(L.shrunkenPlayerBytesConfig));L.clickthroughEndpoint&&q.push(new oT(L.clickthroughEndpoint));L.legacyInfoCardVastExtension&&q.push(new Zp(L.legacyInfoCardVastExtension)); L.sodarExtensionData&&q.push(new VK(L.sodarExtensionData));W&&q.push(new F7(W));q.push(new QK(L4(L.pings)));H=q0(L.pings);if(X){a:{X=g.b(X);for(W=X.next();!W.done;W=X.next())if(W=W.value,W.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(z=g.A(W.fulfillmentContent.fulfilledLayout,On))&&(z=g.A(z.renderingContent,En))&&z.associatedPlayerBytesLayoutId===t){X=W;break a}X=void 0}X&&q.push(new nb(X))}return{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",AC:H,layoutExitNormalTriggers:[new mO(h.G,t)],layoutExitSkipTriggers:L.skipOffsetMilliseconds? [new tj(h.G,y)]:[],layoutExitMuteTriggers:[new tj(h.G,y)],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:Y,Mv:q,X6:w(U),adLayoutLoggingData:L.adLayoutLoggingData}}; jiL=function(h,t,Y,L,q,z,V,l,H){L.every(function(W){return KZ(W,[],["LAYOUT_TYPE_MEDIA"])})||gP("Unexpect subLayout type for DAI composite layout"); t=cV(h.T.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",t);var w={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",rU:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",AC:new Map,layoutExitNormalTriggers:[new $G(h.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Cn:[],rU:"core",clientMetadata:new Ec([new NC(Y),new lM(l),new gM(L),new eN(q),new X7(z),new wM({}),new cn(H)]),X6:V(w)}}; U6c=function(h){return h!=null}; wx=function(h,t,Y){var L=this;this.T=h;this.S=t;this.uP=Y;this.G=function(q){return FP(L.T.get(),q)}}; EBc=function(h,t,Y,L,q,z,V){if(!Y.prefetchModeConfig)return new P("AdPlacementConfig for Live Prefetch is missing prefetch_config");Y=Y.prefetchModeConfig;L*=1E3;var l=[];if(!Y.breakLengthMs)return new P("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var H=g.b(Y.breakLengthMs),w=H.next();!w.done;w=H.next())if(w=w.value,Number(w)>0){var W=L+Number(Y.startTimeOffsetMs),y=W+Number(Y.cacheFetchSmearingDurationMs);w={Ho:new Xg(y,y+Number(w)),o2:!1,XG:new Xg(Math.floor(W+Math.random()* Number(Y.cacheFetchSmearingDurationMs)),y),cueProcessedMs:L?L:W};W=[];W.push(new pZ({}));y=[];y.push(new hj(h.G));y.push(new zI1(h.G));V&&W.push(new wM({}));l.push(D9(h,t,q,w,z,W,y))}return l}; D9=function(h,t,Y,L,q,z,V){z=z===void 0?[]:z;var l=RZ(h.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");V||(V=[],L.XG&&L.XG.start!==L.Ho.start&&V.push(new I0(h.G,Y,new Xg(L.XG.start,L.Ho.start),!1)),V.push(new I0(h.G,Y,new Xg(L.Ho.start,L.Ho.end),L.o2)));L={getAdBreakUrl:t.getAdBreakUrl,Ww:L.Ho.start,cw:L.Ho.end,cueProcessedMs:L.cueProcessedMs};t=new LF(h.G,l);z=[new CZ(L)].concat(g.p(z));return{slotId:l,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:V, slotExpirationTriggers:[new Du(h.G,Y),new gU(h.G,l),new Yf(h.G,l)],rU:"core",clientMetadata:new Ec(z),adSlotLoggingData:q}}; yWp=function(h,t,Y){var L=[];Y=g.b(Y);for(var q=Y.next();!q.done;q=Y.next())L.push(Wy6(h,t,q.value));return L}; Wy6=function(h,t,Y){return Y.triggeringSlotId!=null&&Y.triggeringSlotId===h?Y.clone(t):Y}; L5L=function(h,t,Y,L,q){return Xnc(h,t,Y,L,q)}; XLL=function(h,t,Y,L){var q=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER");return Xnc(h,q,t,Y,L)}; Xnc=function(h,t,Y,L,q){var z=new Oj(h.G,Y),V=[new i0(h.G,t)];h=[new gU(h.G,t),new Du(h.G,L)];return{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(q({slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:h},Y))]),adSlotLoggingData:void 0}}; uec=function(h,t,Y,L,q,z){var V=RZ(h.T.get(),"SLOT_TYPE_PLAYER_BYTES"),l=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER"),H=cV(h.T.get(),"LAYOUT_TYPE_SURVEY",l);L=WG(h,t,Y,L);var w=[new i0(h.G,V)];Y=[new gU(h.G,V),new Du(h.G,Y),new xG(h.G,H)];if(L instanceof P)return L;l=z({slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:L,slotFulfillmentTriggers:w,slotExpirationTriggers:Y},{slotId:l,layoutId:H});z=l.Lo;l=l.Lf;return[{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:dC(h,t,V,L),slotFulfillmentTriggers:GS(h,t,V,w),slotExpirationTriggers:Y,rU:"core",clientMetadata:new Ec([new Uc(z),new uM(Qk(t)),new JW({Mr:h.Mr(t)})]),adSlotLoggingData:q},l]}; Qk=function(h){return h.kind==="AD_PLACEMENT_KIND_START"}; JYn=function(h,t,Y,L,q){q=q?q:RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER");Y=new Oj(h.G,Y);var z=[new i0(h.G,q)];h=[new Du(h.G,t),new gU(h.G,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:z,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(L({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:z,slotExpirationTriggers:h}))])}}; pfc=function(h,t,Y,L){var q=RZ(h.T.get(),"SLOT_TYPE_PLAYER_UNDERLAY");Y=new Oj(h.G,Y);var z=[new i0(h.G,q)];h=[new Du(h.G,t),new gU(h.G,q)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:z,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(L({slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:z,slotExpirationTriggers:h}))])}}; oaL=function(h,t,Y,L,q,z,V){var l=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER"),H=cV(h.T.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);L=UCL(h,L,z,V,H);if(L instanceof P)return L;V=[new i0(h.G,l)];q=[new Du(h.G,z),new i0(h.G,q),new zL(h.G,q)];Y=AW(Y,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:L,slotFulfillmentTriggers:V,slotExpirationTriggers:q});h=h.S.get();z={layoutId:H,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",rU:"core"};t={layoutId:H,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", AC:new Map,layoutExitNormalTriggers:[new XNr(h.G,H,t.durationMs)],layoutExitSkipTriggers:[new CWr(h.G,H,t.durationMs)],Cn:[new UTL(h.G,H)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rU:"core",clientMetadata:new Ec([new bM(t)]),X6:Y(z)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:L,slotFulfillmentTriggers:V,slotExpirationTriggers:q,clientMetadata:new Ec([new Uc(t)])}}; wLL=function(h,t,Y,L,q,z){t=WG(h,t,Y,L);if(t instanceof P)return t;var V=t instanceof I0?new wNb(h.G,Y,t.G):null;L=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER");var l=[new i0(h.G,L)];h=[new Du(h.G,Y),new gU(h.G,L)];z=z({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:t,slotFulfillmentTriggers:l,slotExpirationTriggers:h},V);return z instanceof xV?new P(z):{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:l,slotExpirationTriggers:h, rU:"core",clientMetadata:new Ec([new Uc(z)]),adSlotLoggingData:q}}; lYD=function(h,t,Y,L){var q=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER"),z=new a0(h.G,t),V=[new qx(h.G,q)];h=[new Du(h.G,t),new gU(h.G,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(L({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:h}))]),adSlotLoggingData:Y}}; HWL=function(h,t,Y,L){var q=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER");Y=new Oj(h.G,Y);var z=[new i0(h.G,q)],V=[new gU(h.G,q),new Du(h.G,t)];z={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:z,slotExpirationTriggers:V};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:[new i0(h.G,q)],slotExpirationTriggers:[new Du(h.G,t),new gU(h.G,q)],rU:"core",clientMetadata:new Ec([new Uc(L(z))])}}; VmL=function(h,t,Y,L,q){var z=RZ(h.T.get(),"SLOT_TYPE_IN_PLAYER");Y=new kG(h.G,L,Y);L=[new i0(h.G,z)];h=[new Du(h.G,t)];return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:L,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(q({slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:L,slotExpirationTriggers:h}))])}}; iWL=function(h,t,Y,L,q,z){var V=RZ(h.T.get(),t);return yP(h,V,t,new Oj(h.G,L),[new Du(h.G,Y),new gU(h.G,V),new nK(h.G,L,["error"])],q,z)}; tmp=function(h,t,Y,L,q,z,V){var l=RZ(h.T.get(),t);return yP(h,l,t,new nK(h.G,q,["normal"]),[new Du(h.G,Y),new gU(h.G,l),new nK(h.G,L,["error"])],z,V)}; PW$=function(h,t,Y,L,q){var z=RZ(h.T.get(),t);return yP(h,z,t,new a0(h.G,Y),[new Du(h.G,Y),new gU(h.G,z)],L,q)}; q7n=function(h,t,Y,L,q){Y=Y?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var z=RZ(h.T.get(),Y);t=new a0(h.G,t);var V=[new i0(h.G,z)];h=[new gU(h.G,z)];return{slotId:z,slotType:Y,slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:V,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(q({slotId:z,slotType:Y,slotPhysicalPosition:1,rU:"core",slotEntryTrigger:t,slotFulfillmentTriggers:V,slotExpirationTriggers:h}))]),adSlotLoggingData:L}}; CTL=function(h,t,Y,L){var q=RZ(h.T.get(),"SLOT_TYPE_PLAYER_BYTES"),z=new SS(h.G),V=[new qx(h.G,q)];h=[new Du(h.G,t)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(L({slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:z,slotFulfillmentTriggers:V,slotExpirationTriggers:h})),new wM({})]),adSlotLoggingData:Y}}; dp6=function(h,t){return aYi(h.uP.get())?new nK(h.G,t,["normal","error","skipped"]):new nK(h.G,t,["normal"])}; rY3=function(h,t,Y,L,q){t=dp6(h,t);h=oy(h,t,Y);q=q({slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers,rU:h.rU});return q instanceof P?q:{F0:Object.assign({},h,{clientMetadata:new Ec([new Uc(q.layout)]),adSlotLoggingData:L}),Kr:q.Kr}}; cY1=function(h,t,Y,L,q,z,V){Y=G7L(h,t,Y,L);if(Y instanceof P)return Y;V=V({slotId:Y.slotId,slotType:Y.slotType,slotPhysicalPosition:Y.slotPhysicalPosition,slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers,slotExpirationTriggers:Y.slotExpirationTriggers,rU:Y.rU});if(V instanceof P)return V;L=[new uM(Qk(t)),new Uc(V.layout),new JW({Mr:h.Mr(t)})];z&&L.push(new dM({}));return{F0:{slotId:Y.slotId,slotType:Y.slotType,slotPhysicalPosition:Y.slotPhysicalPosition,slotEntryTrigger:dC(h, t,Y.slotId,Y.slotEntryTrigger),slotFulfillmentTriggers:GS(h,t,Y.slotId,Y.slotFulfillmentTriggers),slotExpirationTriggers:Y.slotExpirationTriggers,rU:Y.rU,clientMetadata:new Ec(L),adSlotLoggingData:q},Kr:V.Kr}}; dC=function(h,t,Y,L){return h.uP.get().Sh(Qk(t))?new vO(h.G,Y):L}; GS=function(h,t,Y,L){return h.uP.get().Sh(Qk(t))?[new qx(h.G,Y)]:L}; oy=function(h,t,Y){var L=RZ(h.T.get(),"SLOT_TYPE_PLAYER_BYTES"),q=[new i0(h.G,L)];h=[new gU(h.G,L),new Du(h.G,Y)];return{slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:q,slotExpirationTriggers:h,rU:"core"}}; G7L=function(h,t,Y,L){t=WG(h,t,Y,L);return t instanceof P?t:oy(h,t,Y)}; VNW=function(h,t,Y,L,q,z){var V=RZ(h.T.get(),"SLOT_TYPE_FORECASTING");t=WG(h,t,Y,L);if(t instanceof P)return t;L=[new i0(h.G,V)];h=[new gU(h.G,V),new Du(h.G,Y)];return{slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:L,slotExpirationTriggers:h,rU:"core",clientMetadata:new Ec([new Uc(z({slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,rU:"core",slotEntryTrigger:t,slotFulfillmentTriggers:L,slotExpirationTriggers:h}))]),adSlotLoggingData:q}}; CMi=function(h,t,Y,L,q){var z=!t.hideCueRangeMarker;switch(t.kind){case "AD_PLACEMENT_KIND_START":return new a0(h.G,Y);case "AD_PLACEMENT_KIND_MILLISECONDS":return h=SH1(t,L),h instanceof P?h:q(h.Ho,z);case "AD_PLACEMENT_KIND_END":return new Ej(h.G,Y,z);default:return new P("Cannot construct entry trigger",{kind:t.kind})}}; UCL=function(h,t,Y,L,q){return CMi(h,t,Y,L,function(z,V){return new HUr(h.G,Y,z,V,q)})}; WG=function(h,t,Y,L){return CMi(h,t,Y,L,function(q,z){return new I0(h.G,Y,q,z)})}; yP=function(h,t,Y,L,q,z,V){h=[new qx(h.G,t)];return{slotId:t,slotType:Y,slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:h,slotExpirationTriggers:q,rU:"core",clientMetadata:new Ec([new Uc(V({slotId:t,slotType:Y,slotPhysicalPosition:1,rU:"core",slotEntryTrigger:L,slotFulfillmentTriggers:h,slotExpirationTriggers:q}))]),adSlotLoggingData:z}}; X5=function(h,t){g.O.call(this);this.uP=h;this.G=t;this.eventCount=0}; U1=function(h,t,Y,L){X5.call(this,h,t);this.uP=h;this.Dx=Y;this.context=L}; CO=function(){this.G=new Map}; Mm=function(h){this.G="pending";this.T=[];this.S=[];try{h(this.W.bind(this),this.reject.bind(this))}catch(t){this.reject(t)}}; Mkp=function(){var h,t;return{j6:new Mm(function(Y,L){h=Y;t=L}), resolve:h,reject:t}}; jf=function(h){return F5(h)?h:s1(h)?new Mm(function(t,Y){h.then(t,Y)}):new Mm(function(t){t(h)})}; Zv=function(h){return new Mm(function(t,Y){Y(h)})}; b1=function(h){try{return jf(h())}catch(t){return Zv(t)}}; dx=function(h,t,Y){var L=Mkp(),q=L.j6,z=L.resolve,V=L.reject;h.T.push(function(l){if(t)try{var H=t(l);z(H)}catch(w){V(w)}else z(l)}); h.S.push(function(l){if(Y)try{var H=Y(l);z(H)}catch(w){V(w)}else V(l)}); og(h);return q}; GB=function(h,t){return dx(h,void 0,t)}; FyD=function(h,t){dx(h,function(Y){return dx(jf(t()),function(){return Y})},function(Y){return dx(jf(t()),function(){return Zv(Y)})})}; og=function(h){if(h.G==="fulfilled"){var t=h.T;h.T=[];h.S=[];t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next())Y=Y.value,Y(h.result)}else if(h.G==="rejected")for(t=h.S,h.T=[],h.S=[],t=g.b(t),Y=t.next();!Y.done;Y=t.next())Y=Y.value,Y(h.error)}; QP=function(h,t){return sSL(t.call(h))}; rx=function(h){return function Y(){return kb(Y,function(L){if(L.T==1)return g.d3(L,2),g.K(L,{j6:jf(h)},4);if(L.T!=2)return L.return(L.G);g.pL(L);return g.vW(L,0)})}()}; sSL=function(h){return b1(function(){return cG(h,h.next())})}; cG=function(h,t){return t.done?jf(t.value):GB(dx(t.value.j6,function(Y){return cG(h,h.next(Y))}),function(Y){return cG(h,h.throw(Y))})}; u1=function(h,t){if(h.length===0)return jf(NaN);var Y=Mkp(),L=Y.j6,q=Y.resolve,z=h.length;h=g.b(h.entries());var V=h.next();for(Y={};!V.done;Y={Da:void 0},V=h.next()){var l=g.b(V.value);V=l.next().value;l=l.next().value;Y.Da=V;FyD(l,function(H){return function(){L.G==="pending"&&(jSW(t)&&t(H.Da)&&L.G==="pending"?q(H.Da):(--z,z===0&&q(NaN)))}}(Y))}return L}; ef=function(h){return h.map(function(t){return jf(t)})}; pO=function(h){var t=h.hours||0;var Y=h.minutes||0,L=h.seconds||0;t=L+Y*60+t*3600+(h.days||0)*86400+(h.weeks||0)*604800+(h.months||0)*2629800+(h.years||0)*31557600;t<=0?t={hours:0,minutes:0,seconds:0}:(h=t,t=Math.floor(h/3600),h%=3600,Y=Math.floor(h/60),L=Math.floor(h%60),t={hours:t,minutes:Y,seconds:L});var q=t.hours===void 0?0:t.hours;Y=t.minutes===void 0?0:t.minutes;h=t.seconds===void 0?0:t.seconds;L=q>0;t=[];if(L){q=(new Intl.NumberFormat("en-u-nu-latn")).format(q);var z=["fr"],V="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(" "); q="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(JE)?q.replace(",","\u00a0"):z.includes(JE)?q.replace(",","\u202f"):V.includes(JE)?q.replace(",","."):q;t.push(q)}L=L===void 0?!1:L;Y=(["af","be","lt"].includes(JE)||L)&&Y<10?ZZ3().format(Y):(new Intl.NumberFormat("en-u-nu-latn")).format(Y);t.push(Y);Y=ZZ3().format(h);t.push(Y);Y=":";"da fi id si sr sr-Latn".split(" ").includes(JE)&&(Y=".");return t.join(Y)}; ZZ3=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; bZL=function(h,t){var Y,L;h=((Y=h.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(L=Y.videoAuthorizationToken)==null?void 0:L.credentialTransferTokens)||[];for(Y=0;Yt;h=Y}else h=!1;return h}; g.PG=function(h,t){return h.Xv+"timedtext_video?ref=player&v="+t.videoId}; g.nV3=function(h){var t=this;this.videoData=h;h={};this.G=(h.c1a=function(){var Y=[];if(g.Rg.isInitialized()){var L="";t.videoData&&t.videoData.WA&&(L=t.videoData.WA+("&r1b="+t.videoData.clientPlaybackNonce));var q={};L=(q.atr_challenge=L,q);d2("bg_v",void 0,"player_att");(L=OZ6(L))?(d2("bg_s",void 0,"player_att"),Y.push("r1a="+L)):(d2("bg_e",void 0,"player_att"),Y.push("r1c=2"))}else d2("bg_e",void 0,"player_att"),window.trayride||window.botguard?Y.push("r1c=1"):Y.push("r1c=4");Y.push("r1d="+g.Rg.getState()); return Y.join("&")},h.c6a=function(Y){return"r6a="+(Number(Y.c)^$o())},h.c6b=function(Y){return"r6b="+(Number(Y.c)^Number(g.Ey("CATSTAT",0)))},h); this.videoData&&this.videoData.WA?this.Aj=SR(this.videoData.WA):this.Aj={}}; g.fpr=function(h){if(h.videoData&&h.videoData.WA){for(var t=[h.videoData.WA],Y=g.b(Object.keys(h.G)),L=Y.next();!L.done;L=Y.next())L=L.value,h.Aj[L]&&h.G[L]&&(L=h.G[L](h.Aj))&&t.push(L);return t.join("&")}return null}; g.mq=function(h,t){kKi(h,{Mh0:g.Sk(t.experiments,"bg_vm_reinit_threshold"),cspNonce:t.cspNonce,Xv:t.Xv||""})}; $Cr=function(){var h=XMLHttpRequest.prototype.fetch;return!!h&&h.length===3}; TMc=function(h){h=h[N[28]](N[19]);Dv[N[46]](h,8);Dv[N[46]](h,38);Dv[N[15]](h,2);return h[N[52]](N[19])}; Ipc=function(h,t){Oz(h,2,t.RX,h6,3);Oz(h,3,t.innertubeRequest,AWD,3);rX(h,4,t.onesieUstreamerConfig);rX(h,9,t.qd);Oz(h,10,t.eG,t6,3);Oz(h,15,t.reloadPlaybackParams,ScL,3)}; BMW=function(h,t){Oz(h,1,t.formatId,ir,3);G1(h,2,t.startTimeMs);G1(h,3,t.durationMs);G1(h,4,t.bx);G1(h,5,t.P2);Oz(h,9,t.EM5,Rnr,3);Oz(h,11,t.cK5,gO,1);Oz(h,12,t.OO,gO,1)}; PM6=function(h,t){ka(h,1,t.videoId);G1(h,2,t.lmt)}; Rnr=function(h,t){if(t.EP)for(var Y=0;Y>31));G1(h,16,t.po);G1(h,17,t.detailedNetworkType);G1(h,18,t.P1);G1(h,19,t.A3);G1(h,21,t.ag8);G1(h,23,t.FK);G1(h,28,t.Js);G1(h,29,t.ZCi);G1(h,34,t.visibility);Y=t.playbackRate;if(Y!==void 0){var L=new ArrayBuffer(4);(new Float32Array(L))[0]=Y;Y=(new Uint32Array(L))[0];if(Y!==void 0)for(dX(h,285),oi(h,4),L=0;L<4;)h.view.setUint8(h.pos,Y&255),Y>>=8,h.pos+=1,L+=1}G1(h,36,t.dQ); Oz(h,38,t.mediaCapabilities,iVb,3);G1(h,39,t.E1G);G1(h,40,t.w8);G1(h,44,t.playerState);QY(h,46,t.v1);G1(h,48,t.Rt);G1(h,50,t.qx);G1(h,51,t.EB);G1(h,54,t.Cg);if(t.Dr)for(Y=0;Y>31));ka(h,2,t.message)}; HVi=function(h,t){G1(h,1,t.clientState);Oz(h,2,t.qo8,Ny$,1)}; V63=function(h,t){rX(h,1,t.D6P);Oz(h,2,t.CVm,l26,3);Oz(h,3,t.coldStartInfo,HVi,3)}; zV1=function(h,t){G1(h,1,t.type);rX(h,2,t.value)}; qXL=function(h,t){ka(h,1,t.hl);ka(h,12,t.deviceMake);ka(h,13,t.deviceModel);G1(h,16,t.clientName);ka(h,17,t.clientVersion);ka(h,18,t.osName);ka(h,19,t.osVersion)}; wVW=function(h,t){ka(h,1,t.name);ka(h,2,t.value)}; Wt3=function(h,t){ka(h,1,t.url);if(t.NZ)for(var Y=0;Y0&&!(SKc()>(0,g.FH)()-h*1E3))return 0;h=g.GI("yt-player-quality");if(typeof h==="string"){if(h=g.FS[h],h>0)return h}else if(h instanceof Object)return h.quality;return 0}; N9=function(){var h=g.GI("yt-player-proxima-pref");return h==null?null:h}; Byr=function(){var h=g.GI("yt-player-quality");if(h instanceof Object&&h.quality&&h.previousQuality){if(h.quality>h.previousQuality)return 1;if(h.quality0&&t[0]?h.getAutoplayPolicy(t[0]):h.getAutoplayPolicy("mediaelement");if(g0D[Y])return g0D[Y]}}catch(L){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Us=function(h){return h.fC||h.w0||h.mutedAutoplay}; YuD=function(h,t){return Us(h)?t!==1&&t!==2&&t!==0?"AUTOPLAY_STATUS_UNAVAILABLE":h.KD?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; LTn=function(h,t,Y){var L=t.J();h.thirdParty||(h.thirdParty={});L.ancestorOrigins&&(h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{ancestorOrigins:L.ancestorOrigins}));L.N("embeds_enable_autoplay_and_visibility_signals")&&(L.LI!=null&&(h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(L.LI)})),L.MG&&(h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{visibilityFractionSource:L.MG})), h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:XZ(),autoplayIntended:Us(t),autoplayStatus:YuD(t,Y)}))}; qu6=function(h){var t=[];h=g.b(h.split(","));for(var Y=h.next();!Y.done;Y=h.next()){var L=Y.value;L&&((Y=L.startsWith("!"))&&(L=L.substring(1)),L=L.split("-"),L.length<3||t.push({Kh:L[0],platform:L[1],deviceVersion:L[2],h2:Y}))}return t}; NAb=function(h){return qu6(h).map(function(t){return{deviceInterface:zRb[VQW[t.Kh]]||0,deviceVersion:t.deviceVersion||"",isSleeping:t.h2}})}; g.Ch=function(h,t){this.id=h;this.j4=t;this.captionTracks=[];this.S=this.W=null;this.xtags="";this.X=!1;this.G=null;this.T="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";h=this.j4.id.split(".");h.length>1&&(this.X=h[1]==="2")}; M9=function(h,t,Y,L,q){this.T=h;this.G=t;this.S=Y;this.reason=L;this.Lb=q===void 0?0:q}; g.FZ=function(h,t,Y,L){return new M9(g.FS[h]||0,g.FS[t]||0,Y,L)}; Zs=function(h){if(jF&&h.Lb)return!1;var t=g.FS.auto;return h.T===t&&h.G===t}; om=function(h){return br[h.G||h.T]||"auto"}; lAL=function(h,t){t=g.FS[t];return h.T<=t&&(!h.G||h.G>=t)}; dO=function(h){return"["+h.T+"-"+h.G+", override: "+(h.S+", reason: "+h.reason+"]")}; Go=function(h,t,Y){this.videoInfos=h;this.G=t;this.audioTracks=[];if(this.G){h=new Set;Y==null||Y({ainfolen:this.G.length});t=g.b(this.G);for(var L=t.next();!L.done;L=t.next())if(L=L.value,!L.j4||h.has(L.j4.id)){var q=void 0,z=void 0,V=void 0;(V=Y)==null||V({atkerr:!!L.j4,itag:L.itag,xtag:L.G,lang:((q=L.j4)==null?void 0:q.name)||"",langid:((z=L.j4)==null?void 0:z.id)||""})}else q=new g.Ch(L.id,L.j4),h.add(L.j4.id),this.audioTracks.push(q);Y==null||Y({atklen:this.audioTracks.length})}}; QH=function(){g.O.apply(this,arguments);this.G=null}; yer=function(h,t,Y,L,q,z,V){if(h.G)return h.G;var l={},H=new Set,w={};if(rO(L)){for(var W in L.G)L.G.hasOwnProperty(W)&&(h=L.G[W],w[h.info.wU]=[h.info]);return w}W=H4L(t,L,l);z&&q({aftsrt:c8(W)});for(var y={},X=g.b(Object.keys(W)),U=X.next();!U.done;U=X.next()){U=U.value;for(var C=g.b(W[U]),d=C.next();!d.done;d=C.next()){d=d.value;var Q=d.itag,J=void 0,e=U+"_"+(((J=d.video)==null?void 0:J.fps)||0);y.hasOwnProperty(e)?y[e]===!0?w[U].push(d):l[Q]=y[e]:(J=ur(t,d,Y,L.isLive,H),J!==!0?(V.add(U),l[Q]=J, J==="disablevp9hfr"&&(y[e]="disablevp9hfr")):(w[U]=w[U]||[],w[U].push(d),y[e]=!0))}}z&&q({bfflt:c8(w)});for(var v in w)w.hasOwnProperty(v)&&(L=v,w[L]&&w[L][0].yx()&&(w[L]=w[L],w[L]=wRp(t,w[L],l),w[L]=WTD(w[L],l)));z&&Object.keys(l).length>0&&q({rjr:qS(l)});t=g.b(H.values());for(L=t.next();!L.done;L=t.next())(L=Y.W.get(L.value))&&--L.Bt;z&&q({aftflt:c8(w)});h.G=g.td(w,function(E){return!!E.length}); return h.G}; U0W=function(h,t,Y,L,q,z,V,l){l=l===void 0?!1:l;if(t.m$&&V&&V.length>1&&!(t.QP>0||t.Y)){for(var H=t.T||!!q,w=H&&t.Ds?z:void 0,W=H4L(t,L),y=[],X=[],U={},C=0;C0&&X&&q&&(W=[V,Y],v=q.concat(X).filter(function(E){return E})); if(v.length&&!t.aY){ph(v,W);if(H){H=[];t=g.b(v);for(L=t.next();!L.done;L=t.next())H.push(L.value.itag);z({hbdfmt:H.join(".")})}return dj(new Go(v,h,w))}v=GWn(t);v=g.Mh(v,l);if(!v){if(y[V])return z=y[V],ph(z),dj(new Go(z,h,w));H&&z({novideo:1});return oF()}t.pn&&(v==="1"||v==="1h")&&y[Y]&&(V=v8(y[v]),W=v8(y[Y]),W>V?v=Y:W===V&&QQr(y[Y])&&(v=Y));v==="9"&&y.h&&v8(y.h)>v8(y["9"])&&(v="h");t.MD&&L.isLive&&v==="("&&y.H&&v8(y["("])<1440&&(v="H");H&&z({vfmly:Kh(v)});t=y[v];if(!t.length)return H&&z({novfmly:Kh(v)}), oF();ph(t);return dj(new Go(t,h,w))}; MQL=function(h,t){var Y=!(!h.m&&!h.M),L=!(!h.mac3&&!h.MAC3),q=!(!h.meac3&&!h.MEAC3);h=!(!h.i&&!h.I);t.M6=h;return Y||L||q||h}; QQr=function(h){h=g.b(h);for(var t=h.next();!t.done;t=h.next())if(t=t.value,t.itag&&reL.has(t.itag))return!0;return!1}; sQp=function(h){h=g.b(h);for(var t=h.next();!t.done;t=h.next())if(t.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Kh=function(h){switch(h){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return h}}; c8=function(h){var t=[],Y;for(Y in h)if(h.hasOwnProperty(Y)){var L=Y;t.push(Kh(L));L=g.b(h[L]);for(var q=L.next();!q.done;q=L.next())t.push(q.value.itag)}return t.join(".")}; Cf$=function(h,t,Y,L,q,z){var V={},l={};g.hd(t,function(H,w){H=H.filter(function(W){var y=W.itag;if(!W.EX)return l[y]="noenc",!1;if(z.Q4&&W.wU==="(h"&&z.tQ)return l[y]="lichdr",!1;if(!h.X&&W.wU==="1e")return l[y]="noav1enc",!1;if(W.wU==="("||W.wU==="(h"){if(h.S&&Y&&Y.flavor==="widevine"){var X=W.mimeType+"; experimental=allowed";(X=!!W.EX[Y.flavor]&&!!Y.G[X])||(l[y]=W.EX[Y.flavor]?"unspt":"noflv");return X}if(!am(h,xQ.CRYPTOBLOCKFORMAT)&&!h.gU||h.R0)return l[y]=h.R0?"disvp":"vpsub",!1}return Y&&W.EX[Y.flavor]&& Y.G[W.mimeType]?!0:(l[y]=Y?W.EX[Y.flavor]?"unspt":"noflv":"nosys",!1)}); H.length&&(V[w]=H)}); L&&Object.entries(l).length&&q({rjr:qS(l)});return V}; WTD=function(h,t){var Y=Fy(h,function(L,q){return q.video.fps>32?Math.min(L,q.video.width):L},Infinity); Y32||L.video.widthh.U)return"max"+h.U;if(h.yG&&t.wU==="h"&&t.video&&t.video.qualityOrdinal>1080)return"blkhigh264";if(t.wU==="(h"&&!Y.C)return"enchdr";if((L===void 0?0:L)&&u_(t)&&!h.X5)return"blk51live";if((t.wU==="MAC3"||t.wU==="mac3")&&!h.W)return"blkac3";if((t.wU==="MEAC3"||t.wU==="meac3")&&!h.X)return"blkeac3";if(t.wU==="M"||t.wU==="m")return"blkaac51"; if((t.wU==="so"||t.wU==="sa")&&!h.AQ)return"blkamb";if(!h.Q4&&uR3(t)&&(!Y.X||t.wU!=="1e"))return"cbc";if(!Y.X&&uR3(t)&&t.wU==="1e")return"cbcav1";if((t.wU==="i"||t.wU==="I")&&!h.Hq)return"blkiamf";var z;if(h.G$&&((z=t.audio)==null?void 0:z.T)===!0)return"blkvbcabr";var V,l;if(h.lP&&(t.wU==="1"||t.wU==="1h"||Y.X&&t.wU==="1e")&&((V=t.video)==null?0:V.qualityOrdinal)&&((l=t.video)==null?void 0:l.qualityOrdinal)>h.lP)return"av1cap";L=Y.W.get(t.wU);if(!h.Pq&&L&&L.Bt>0)return q.add(t.wU),"byerr";var H; if((H=t.video)==null?0:H.fps>32){if(!Y.Wm&&!am(Y,xQ.FRAMERATE))return"capHfr";if(h.JQ&&t.video.qualityOrdinal>=4320)return"blk8khfr";if(dq(t)&&h.UX&&t.EX&&t.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(h.Lb&&t.Lb>h.Lb)return"ratecap";h=cen(Y,t);return h!==!0?h:!0}; ph=function(h,t){t=t===void 0?[]:t;g.SE(h,function(Y,L){var q=L.Lb-Y.Lb;if(!Y.yx()||!L.yx())return q;var z=L.video.height*L.video.width-Y.video.height*Y.video.width;!z&&t&&t.length>0&&(Y=t.indexOf(Y.wU)+1,L=t.indexOf(L.wU)+1,z=Y===0||L===0?L||-1:Y-L);z||(z=q);return z})}; g.Es=function(h,t){this[N[16]]=h;this[N[32]]=t===void 0?!1:t;this[N[9]]=this[N[12]]=this[N[17]]=N[19];this[N[26]]={};this[N[7]]=N[19]}; Os=function(h){kQ(h);return h[N[9]]}; nh=function(h){return h[N[16]]?h[N[16]][N[34]](N[33]):h[N[17]]===N[33]}; uID=function(h){kQ(h);return g.Yp(h[N[26]],function(t){return t!==null})}; fh=function(h){kQ(h);var t=decodeURIComponent(h[N[3]](N[60])||N[19])[N[28]](N[65]);return h[N[12]]===N[13]&&t[N[11]]>1&&!!t[1]}; $Q=function(h,t){t=t===void 0?!1:t;kQ(h);if(h[N[12]]!==N[13]){var Y=h[N[55]]();Y[N[8]](N[64],N[22]);return Y}var L=h[N[82]]();Y=new g.mo(L);var q=h[N[3]](N[77]),z=decodeURIComponent(h[N[3]](N[60])||N[19])[N[28]](N[65]);if(q&&z&&z[N[11]]>1&&z[1])return L=Y.G,h=L[N[79]](/^[^.]*/,N[19]),g.hS(Y,(L[N[25]](N[4])===0?N[4]:N[50])+q+N[74]+z[1]+h),Y=new g.Es(Y[N[23]]()),Y[N[8]](N[70],N[22]),Y;if(t)return Y=h[N[55]](),Y[N[8]](N[70],N[22]),Y;q=Y.G[N[21]](N[61]);Y.G[N[21]](N[75])?(g.hS(Y,N[42]),L=Y[N[23]]()): Y.G[N[21]](N[43])?(g.hS(Y,N[76]),L=Y[N[23]]()):(Y=sA$(L),J8(Y)&&(L=Y));Y=new g.Es(L);Y[N[8]](N[58],N[22]);q&&Y[N[8]](N[72],N[51]);return Y}; kQ=function(h){if(h[N[16]]){if(!(J8(h[N[16]])||h[N[16]][N[34]](N[33])||h[N[16]][N[34]](N[81])||h[N[16]][N[34]](N[84])))throw new g.Ea(N[10],h[N[16]]);var t=g.zU(h[N[16]]);h[N[17]]=t.X;h[N[9]]=t.G+(t.S!=null?N[39]+t.S:N[19]);var Y=t.T;if(Y[N[34]](N[13]))h[N[12]]=N[13],Y=Y[N[6]](14);else if(Y[N[34]](N[54]))h[N[12]]=N[54],Y=Y[N[6]](13);else if(Y[N[34]](N[67])){var L=Y[N[25]](N[56],12),q=Y[N[25]](N[56],L+1);L>0&&q>0?(h[N[12]]=Y[N[6]](0,q),Y=Y[N[6]](q+1)):(h[N[12]]=Y,Y=N[19])}else h[N[12]]=Y,Y=N[19];L= h[N[26]];h[N[26]]=eRW(Y);Object[N[29]](h[N[26]],Je$(t.W.toString()));Object[N[29]](h[N[26]],L);h[N[26]][N[45]]===N[85]&&(delete h[N[26]][N[45]],h[N[12]]+=N[41]);h[N[16]]=N[19];h[N[7]]=N[19];h[N[32]]&&(kQ(h),t=h[N[26]][N[73]]||null)&&(t=pRL[0](t),h[N[8]](N[73],t))}}; v0$=function(h){kQ(h);var t=h[N[17]]+(h[N[17]]?N[66]:N[48])+h[N[9]]+h[N[12]];if(uID(h)){var Y=[];g.hd(h[N[26]],function(L,q){L!==null&&Y[N[14]](q+N[40]+L)}); t+=N[5]+Y[N[52]](N[53])}return t}; eRW=function(h){h=h[N[28]](N[56]);var t=0;h[0]||t++;for(var Y={};t0?KT1(t,L[N[6]](0,q),L[N[6]](q+1)):L&&(t[L]=N[19])}return t}; KT1=function(h,t,Y){if(t===N[57]){var L;(L=Y[N[25]](N[40]))>=0?(t=N[1]+Y[N[6]](0,L),Y=Y[N[6]](L+1)):(L=Y[N[25]](N[71]))>=0&&(t=N[1]+Y[N[6]](0,L),Y=Y[N[6]](L+3))}h[t]=Y}; To=function(h){var t=g.A(h,aAL)||h[N[37]];h={v5:!1,Nk:N[19],TM:N[19],s:N[19]};if(!t)return h;t=SR(t);h[N[78]]=!0;h[N[69]]=t[N[7]];h[N[47]]=t[N[18]];h[N[20]]=t[N[20]];return h}; A6=function(h,t,Y,L,q,z,V,l,H){this.Kb=h;this.startTime=t;this.duration=Y;this.ingestionTime=L;this.sourceURL=q;this.Wx=H;this.endTime=t+Y;this.G=V||0;this.range=z||null;this.pending=l||!1;this.Wx=H||null}; g.SF=function(){this.segments=[];this.G=null;this.T=!0;this.S=""}; x0c=function(h,t){if(t>h.v3())h.segments=[];else{var Y=CH(h.segments,function(L){return L.Kb>=t},h); Y>0&&h.segments.splice(0,Y)}}; Im=function(h,t,Y,L,q){q=q===void 0?!1:q;this.data=h;this.offset=t;this.size=Y;this.type=L;this.G=(this.T=q)?0:8;this.dataOffset=this.offset+this.G}; Rm=function(h){var t=h.data.getUint8(h.offset+h.G);h.G+=1;return t}; B8=function(h){var t=h.data.getUint16(h.offset+h.G);h.G+=2;return t}; P8=function(h){var t=h.data.getInt32(h.offset+h.G);h.G+=4;return t}; mB=function(h){var t=h.data.getUint32(h.offset+h.G);h.G+=4;return t}; Ds=function(h){var t=h.data;var Y=h.offset+h.G;t=t.getUint32(Y)*4294967296+t.getUint32(Y+4);h.G+=8;return t}; hm=function(h,t){t=t===void 0?NaN:t;if(isNaN(t))var Y=h.size;else for(Y=h.G;Y1?Math.ceil(q*t):Math.floor(q*t))}h.skip(1);Y=Rm(h)<<16|B8(h);if(Y&256){L=Y&1;q=Y&4;var z=Y&512,V=Y&1024,l=Y&2048;Y=mB(h);L&&h.skip(4);q&&h.skip(4);L=(z?4:0)+(V?4:0)+(l?4:0);for(q=0;q1?Math.ceil(V*t):Math.floor(V*t)),h.skip(L)}}}; NW=function(h){h=new DataView(h.buffer,h.byteOffset,h.byteLength);return(h=g.z2(h,0,1836476516))?g.Ve(h):NaN}; BAL=function(h){var t=g.z2(h,0,1937011556);if(!t)return null;t=ln(h,t.dataOffset+8,1635148593)||ln(h,t.dataOffset+8,1635135537);if(!t)return null;var Y=ln(h,t.dataOffset+78,1936995172),L=ln(h,t.dataOffset+78,1937126244);if(!L)return null;t=null;if(Y)switch(Y.skip(4),Rm(Y)){default:t=0;break;case 1:t=2;break;case 2:t=1;break;case 3:t=255}var q=Y=null,z=null;if(L=ln(h,L.dataOffset,1886547818)){var V=ln(h,L.dataOffset,1886546020),l=ln(h,L.dataOffset,2037673328);if(!l&&(l=ln(h,L.dataOffset,1836279920), !l))return null;V&&(V.skip(4),Y=P8(V)/65536,z=P8(V)/65536,q=P8(V)/65536);h=E0D(l);h=new DataView(h.buffer,h.byteOffset+8,h.byteLength-8);return new IAD(t,Y,z,q,h)}return null}; ln=function(h,t,Y){for(;H_(h,t);){var L=wZ(h,t);if(L.type===Y)return L;t+=L.size}return null}; g.z2=function(h,t,Y){for(;H_(h,t);){var L=wZ(h,t);if(L.type===Y)return L;t=W_(L.type)?t+8:t+L.size}return null}; g.ye=function(h){if(h.data.getUint8(h.dataOffset)){var t=h.data;h=h.dataOffset+4;t=t.getUint32(h)*4294967296+t.getUint32(h+4)}else t=h.data.getUint32(h.dataOffset+4);return t}; wZ=function(h,t){var Y=h.getUint32(t),L=h.getUint32(t+4);return new Im(h,t,Y,L)}; g.Ve=function(h){var t=h.data.getUint8(h.dataOffset)?20:12;return h.data.getUint32(h.dataOffset+t)}; Pfb=function(h){h=new Im(h.data,h.offset,h.size,h.type,h.T);var t=Rm(h);h.skip(7);var Y=mB(h);if(t===0){t=mB(h);var L=mB(h)}else t=Ds(h),L=Ds(h);h.skip(2);for(var q=B8(h),z=[],V=[],l=0;l122)return!1}return!0}; W_=function(h){return h===1701082227||h===1836019558||h===1836019574||h===1835297121||h===1835626086||h===1937007212||h===1953653094||h===1953653099||h===1836475768}; m0p=function(h){h.skip(4);return{ffM:hm(h,0),value:hm(h,0),timescale:mB(h),f65:mB(h),eventDuration:mB(h),id:mB(h),Lv:hm(h),offset:h.offset}}; g.D03=function(h){var t=ln(h,0,1701671783);if(!t)return null;var Y=m0p(t),L=Y.ffM;Y=qW(Y.Lv);if(h=ln(h,t.offset+t.size,1701671783))if(h=m0p(h),h=qW(h.Lv),Y&&h){t=g.b(Object.keys(h));for(var q=t.next();!q.done;q=t.next())q=q.value,Y[q]=h[q]}return Y?new Lz(Y,L):null}; Xp=function(h,t){for(var Y=ln(h,0,t);Y;){var L=Y;L.type=1936419184;L.data.setUint32(L.offset+4,1936419184);Y=ln(h,Y.offset+Y.size,t)}}; g.UI=function(h,t){for(var Y=0,L=[];H_(h,Y);){var q=wZ(h,Y);q.type===t&&L.push(q);Y=W_(q.type)?Y+8:Y+q.size}return L}; hi3=function(h,t){var Y=g.z2(h,0,1937011556),L=g.z2(h,0,1953654136);if(!Y||!L||h.getUint32(Y.offset+12)>=2)return null;var q=new DataView(t.buffer,t.byteOffset,t.length),z=g.z2(q,0,1937011556);if(!z)return null;t=q.getUint32(z.dataOffset+8);L=q.getUint32(z.dataOffset+12);if(L!==1701733217&&L!==1701733238)return null;L=new kW$(h.byteLength+t);tm(L,h,0,Y.offset+12);L.data.setInt32(L.offset,2);L.offset+=4;tm(L,h,Y.offset+16,Y.size-16);tm(L,q,q.byteOffset+z.dataOffset+8,t);tm(L,h,Y.offset+Y.size,h.byteLength- (Y.offset+Y.size));Y=g.b([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(q=Y.next();!q.done;q=Y.next())q=g.z2(h,0,q.value),L.data.setUint32(q.offset,q.size+t);h=g.z2(L.data,0,1953654136);L.data.setUint32(h.offset+16,2);return L.data}; t2D=function(h){var t=g.z2(h,0,1937011556);if(!t)return null;var Y=h.getUint32(t.dataOffset+12);if(Y!==1701733217&&Y!==1701733238)return null;t=ln(h,t.offset+24+(Y===1701733217?28:78),1936289382);if(!t)return null;Y=ln(h,t.offset+8,1935894637);if(!Y||h.getUint32(Y.offset+12)!==1667392371)return null;t=ln(h,t.offset+8,1935894633);if(!t)return null;t=ln(h,t.offset+8,1952804451);if(!t)return null;Y=new Uint8Array(16);for(var L=0;L<16;L++)Y[L]=h.getInt8(t.offset+16+L);return Y}; Cz=function(h,t){this.G=h;this.pos=0;this.start=t||0}; MW=function(h){return h.pos>=h.G.byteLength}; bn=function(h,t,Y){var L=new Cz(Y);if(!Fp(L,h))return!1;L=sI(L);if(!jG(L,t))return!1;for(h=0;t;)t>>>=8,h++;t=L.start+L.pos;var q=Zq(L,!0);L=h+(L.start+L.pos-t)+q;L=L>9?iAL(L-9,8):iAL(L-2,1);h=t-h;Y.setUint8(h++,236);for(t=0;tY;q++)Y=Y*256+rZ(h),L*=128;return t?Y-L:Y}; dZ=function(h){var t=Zq(h,!0);h.pos+=t}; Lmp=function(h){if(!jG(h,440786851,!0))return null;var t=h.pos;Zq(h,!1);var Y=Zq(h,!0)+h.pos-t;h.pos=t+Y;if(!jG(h,408125543,!1))return null;Zq(h,!0);if(!jG(h,357149030,!0))return null;var L=h.pos;Zq(h,!1);var q=Zq(h,!0)+h.pos-L;h.pos=L+q;if(!jG(h,374648427,!0))return null;var z=h.pos;Zq(h,!1);var V=Zq(h,!0)+h.pos-z,l=new Uint8Array(Y+12+q+V),H=new DataView(l.buffer);l.set(new Uint8Array(h.G.buffer,h.G.byteOffset+t,Y));H.setUint32(Y,408125543);H.setUint32(Y+4,33554431);H.setUint32(Y+8,4294967295); l.set(new Uint8Array(h.G.buffer,h.G.byteOffset+L,q),Y+12);l.set(new Uint8Array(h.G.buffer,h.G.byteOffset+z,V),Y+12+q);return l}; c_=function(h){var t=h.pos;h.pos=0;var Y=1E6;Fp(h,[408125543,357149030,2807729])&&(Y=od(h));h.pos=t;return Y}; qF1=function(h,t){var Y=h.pos;h.pos=0;if(h.G.getUint8(h.pos)!==160&&!un(h)||!jG(h,160))return h.pos=Y,NaN;Zq(h,!0);var L=h.pos;if(!jG(h,161))return h.pos=Y,NaN;Zq(h,!0);rZ(h);var q=rZ(h)<<8|rZ(h);h.pos=L;if(!jG(h,155))return h.pos=Y,NaN;L=od(h);h.pos=Y;return(q+L)*t/1E9}; un=function(h){if(!zic(h)||!jG(h,524531317))return!1;Zq(h,!0);return!0}; zic=function(h){if(h.Ik()){if(!jG(h,408125543))return!1;Zq(h,!0)}return!0}; Fp=function(h,t){for(var Y=0;Y0){var L=Je$(t.substring(Y+1));g.hd(L,function(q,z){this.set(z,q)},h); t=t.substring(0,Y)}t=eRW(t);g.hd(t,function(q,z){this.set(z,q)},h)}; Nqc=function(h){var t=h.Yv.K6(),Y=[];g.hd(h.G,function(q,z){Y.push(z+"="+q)}); if(!Y.length)return t;var L=Y.join("&");h=uID(h.Yv)?"&":"?";return t+h+L}; Jm=function(h,t){var Y=new g.Es(t);(t=Y.get("req_id"))&&h.set("req_id",t);g.hd(h.G,function(L,q){Y["set"](q,null)}); return Y}; ldn=function(){this.W=this.S=this.G=this.timedOut=this.started=this.X=this.T=0}; pz=function(h){h.X=(0,g.FH)();h.started=0;h.timedOut=0;h.G=0}; v_=function(h,t){var Y=h.started+h.G*4;t&&(Y+=h.S);Y=Math.max(0,Y-3);return Math.pow(1.6,Y)}; Kz=function(h,t){h[t]||(h[t]=new ldn);return h[t]}; ad=function(h){this.L=this.C=this.X=this.S=0;this.Y=this.U=!1;this.G=h;this.T=h.clone()}; HAL=function(h,t,Y){if(nh(h.G))return!1;var L=Kz(Y,Os(h.G));if(L.timedOut<1&&L.G<1)return!1;L=L.timedOut+L.G;h=xE(h,t);Y=Kz(Y,Os(h));return Y.timedOut+Y.G+01?t=t.fd:(Y=Kz(Y,kE(h,h.hH(t,Y),t)),t=Math.max(h.X,Y.timedOut)+t.pD*(h.S-h.X)+.25*h.C,t=t>3?1E3*Math.pow(1.6,t-3):0);return t===0?!0:h.L+t<(0,g.FH)()}; wd$=function(h,t,Y){h.G.set(t,Y);h.T.set(t,Y);h.W&&h.W.set(t,Y)}; WmL=function(h,t,Y,L,q){++h.S;t&&++h.X;Os(Y.Yv).startsWith("redirector.")&&(h.G=h.T.clone(),delete h.W,L.XT&&delete q[Os(h.G)])}; nz=function(h){return h?(h.itag||"")+";"+(h.lmt||0)+";"+(h.xtags||""):""}; fz=function(h,t,Y,L){this.initRange=Y;this.indexRange=L;this.G=null;this.S=!1;this.U=0;this.W=this.jq=this.T=null;this.info=t;this.e4=new ad(h)}; $E=function(h,t){this.start=h;this.end=t;this.length=t-h+1}; T2=function(h){h=h.split("-");var t=Number(h[0]),Y=Number(h[1]);if(!isNaN(t)&&!isNaN(Y)&&h.length===2&&(h=new $E(t,Y),!isNaN(h.start)&&!isNaN(h.end)&&!isNaN(h.length)&&h.length>0))return h}; Am=function(h,t){return new $E(h,h+t-1)}; yyi=function(h){return h.end==null?{start:String(h.start)}:{start:String(h.start),end:String(h.end)}}; SG=function(h){if(!h)return new $E(0,0);var t=Number(h.start);h=Number(h.end);if(!isNaN(t)&&!isNaN(h)&&(t=new $E(t,h),t.length>0))return t}; Id=function(h,t,Y,L,q,z,V,l,H,w,W,y){L=L===void 0?"":L;this.type=h;this.G=t;this.range=Y;this.source=L;this.ix=W;this.clipId=y===void 0?"":y;this.L=[];this.C="";this.Kb=-1;this.AQ=this.x8=0;this.C=L;this.Kb=q>=0?q:-1;this.startTime=z||0;this.duration=V||0;this.T=l||0;this.S=H>=0?H:this.range?this.range.length:NaN;this.X=this.range?this.T+this.S===this.range.length:w===void 0?!!this.S:w;this.range?(this.W=this.startTime+this.duration*this.T/this.range.length,this.Y=this.duration*this.S/this.range.length, this.U=this.W+this.Y):Xdb(this)}; Xdb=function(h){h.W=h.startTime;h.Y=h.duration;h.U=h.W+h.Y}; USD=function(h,t,Y){var L=!(!t||t.G!==h.G||t.type!==h.type||t.Kb!==h.Kb);return Y?L&&!!t&&(h.range&&t.range?t.range.end===h.range.end:t.range===h.range)&&t.T+t.S===h.T+h.S:L}; Rd=function(h){return h.type===1||h.type===2}; B_=function(h){return h.type===3||h.type===6}; P_=function(h,t){return h.G===t.G?h.range&&t.range?h.range.start+h.T+h.S===t.range.start+t.T:h.Kb===t.Kb?h.T+h.S===t.T:h.Kb+1===t.Kb&&t.T===0&&h.X:!1}; M2L=function(h,t){return h.Kb!==t.Kb&&t.Kb!==h.Kb+1||h.type!==t.type?!1:P_(h,t)?!0:Math.abs(h.W-t.W)<=1E-6&&h.Kb===t.Kb?!1:C_$(h,t)}; C_$=function(h,t){return P_(h,t)||Math.abs(h.U-t.W)<=1E-6||h.Kb+1===t.Kb&&t.T===0&&h.X?!0:!1}; m0=function(h){return h.Kb+(h.X?1:0)}; FmL=function(h){h.length===1||g.MG(h,function(Y){return!!Y.range}); for(var t=1;t=t.range.start+t.T&&h.range.start+h.T+h.S<=t.range.start+t.T+t.S:h.Kb===t.Kb&&h.T>=t.T&&(h.T+h.S<=t.T+t.S||t.X)}; Gk1=function(h,t){return h.G!==t.G?!1:h.type===4&&t.type===3&&h.G.z3()?(h=h.G.eH(h),OM(h,function(Y){return Gk1(Y,t)})):h.Kb===t.Kb&&!!t.S&&t.T+t.S>h.T&&t.T+t.S<=h.T+h.S}; h5=function(h,t){var Y=t.Kb;h.C="updateWithSegmentInfo";h.Kb=Y;if(h.startTime!==t.startTime||h.duration!==t.duration)h.startTime=t.startTime+h.x8,h.duration=t.duration,Xdb(h)}; t5=function(h,t){var Y=this;this.bP=h;this.W=this.G=null;this.X=this.SF=NaN;this.hH=this.requestId=null;this.zD={AL0:function(){return Y.range}}; this.e4=h[0].G.e4;this.T=t||"";this.bP[0].range&&this.bP[0].S>0&&(suc(h)?(this.range=FmL(h),this.S=this.range.length):(this.range=this.bP[this.bP.length-1].range,this.S=juL(h)))}; i$=function(h){return!Rd(h.bP[h.bP.length-1])}; gQ=function(h){return h.bP[h.bP.length-1].type===4}; g.Yw=function(h,t,Y){Y=h.hH===null?h.e4.hH(t,Y,h.bP[0].type):h.hH;if(h.G){t=Y?$Q(h.G,t.q3):h.G;var L=new eG(t);L.get("alr")||L.set("alr","yes");h.T&&V2i(L,h.T)}else/http[s]?:\/\//.test(h.T)?L=new eG(new g.Es(h.T)):(L=EI(h.e4,Y,t),h.T&&V2i(L,h.T));(t=h.range)?L.set("range",t.toString()):h.bP[0].G.jo()&&h.bP.length===1&&h.bP[0].T&&L.set("range",h.bP[0].T+"-");h.requestId&&L.set("req_id",h.requestId);isNaN(h.SF)||L.set("headm",h.SF.toString());isNaN(h.X)||L.set("mffa",h.X+"ms");h.urlParams&&g.hd(h.urlParams, function(q,z){L.set(z,q)}); return L}; Qu6=function(h){if(h.range)return h.S;h=h.bP[0];return Math.round(h.Y*h.G.info.Lb)}; ryc=function(h,t){return Math.max(0,h.bP[0].W-t)}; Lk=function(h,t,Y,L,q,z){z=z===void 0?0:z;fz.call(this,h,t,L,void 0);this.X=Y;this.BI=z;this.index=q||new g.SF}; cyW=function(h,t,Y,L,q){this.Kb=h;this.startSecs=t;this.cZ=Y;this.G=L||NaN;this.T=q||NaN}; qL=function(h,t,Y){for(;h;h=h.parentNode)if(h.attributes&&(!Y||h.nodeName===Y)){var L=h.getAttribute(t);if(L)return L}return""}; z9=function(h,t){for(;h;h=h.parentNode){var Y=h.getElementsByTagName(t);if(Y.length>0)return Y[0]}return null}; uSL=function(h){if(!h)return 0;var t=h.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return t?(Number(t[2])|0)*3600+(Number(t[4])|0)*60+(Number(t[6])|0):Number(h)|0}; eiL=function(h){return h.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?h+"Z":h}; Vn=function(){this.G=[];this.T=null;this.U=0;this.S=[];this.X=!1;this.C="";this.W=-1}; Jy1=function(h){var t=h.S;h.S=[];return t}; pdL=function(){this.W=[];this.G=null;this.T={};this.S={}}; xSL=function(h,t){var Y=[];t=Array.from(t.getElementsByTagName("SegmentTimeline"));t=g.b(t);for(var L=t.next();!L.done;L=t.next()){L=L.value;var q=L.parentNode.parentNode,z=null;q.nodeName==="Period"?z=vW$(h):q.nodeName==="AdaptationSet"?(q=q.getAttribute("id")||q.getAttribute("mimetype")||"",z=Km$(h,q)):q.nodeName==="Representation"&&(q=q.getAttribute("id")||"",z=ad$(h,q));if(z==null)return;z.update(L);g.v1(Y,Jy1(z))}g.v1(h.W,Y);Qcn(h.W,function(V){return V.startSecs*1E3+V.G})}; EWW=function(h){h.G&&(h.G.G=[]);g.hd(h.T,function(t){t.G=[]}); g.hd(h.S,function(t){t.G=[]})}; vW$=function(h){h.G||(h.G=new Vn);return h.G}; Km$=function(h,t){h.T[t]||(h.T[t]=new Vn);return h.T[t]}; ad$=function(h,t){h.S[t]||(h.S[t]=new Vn);return h.S[t]}; l$=function(h){var t=h===void 0?{}:h;h=t.BI===void 0?0:t.BI;var Y=t.gH===void 0?!1:t.gH;var L=t.Zu===void 0?0:t.Zu;var q=t.uR===void 0?0:t.uR;var z=t.e1===void 0?Infinity:t.e1;var V=t.DT===void 0?0:t.DT;var l=t.f6===void 0?!1:t.f6;t=t.rI===void 0?!1:t.rI;g.SF.call(this);this.Wo=this.wA=-1;this.KC=h;this.Zu=L;this.gH=Y;this.uR=q;this.e1=z;this.DT=V;((this.f6=l)||isFinite(z)&&this.e1>0)&&Y&&NL&&(this.T=!1,this.S="postLive");this.rI=t}; Ho=function(h,t){return $y(h.segments,function(Y){return t-Y.Kb})}; wQ=function(h,t,Y){Y=Y===void 0?{}:Y;Lk.call(this,h,t,"",void 0,void 0,Y.BI||0);this.index=new l$(Y)}; Wo=function(h,t,Y){fz.call(this,h,t);this.X=Y;h=this.index=new g.SF;h.T=!1;h.S="d"}; kkL=function(h,t,Y){var L=h.index.SN(t),q=h.index.getStartTime(t),z=h.index.getDuration(t);Y?z=Y=0:Y=h.info.Lb*z;return new t5([new Id(3,h,void 0,"otfCreateRequestInfoForSegment",t,q,z,0,Y)],L)}; OA6=function(h,t){if(!h.index.isLoaded()){var Y=[],L=t.W;t=t.X.split(",").filter(function(W){return W.length>0}); for(var q=0,z=0,V=0,l=/^(\d+)/,H=/r=(\d+)/,w=0;w0&&(q.G=Math.min(q.G+V,10),q.T=z);q.G>0?(q.G--,q=!0):q=!1;if(q)typeof L==="function"&&(L=L()),console.log("plyr."+t,L);else{var l;L=((l=SF$.get(t))!=null?l:0)+1;SF$.set(t,L);L%100===1&&console.warn("plyr","plyr."+t+" is chatty, dropping logs.")}}}; AyW=function(){this.G=10;this.T=Date.now()}; UJ=function(h,t){this.info=h;this.T=t;this.G=null;this.W=this.S=-1;this.timestampOffset=0;this.isLocked=this.U=!1;this.X=this.info.G.zx()&&!this.info.T}; g.Ck=function(h){return ECi(h.T)}; Idb=function(h,t){t=Math.min(t,h.info.S);var Y=h.T.split(t),L=Y.dV;Y=new UJ(new Id(h.info.type,h.info.G,h.info.range,h.info.C,h.info.Kb,h.info.startTime,h.info.duration,h.info.T,t,!1,h.info.ix,h.info.clipId),Y.CM);Y.W=h.W;Y.S=h.S;t=new UJ(new Id(h.info.type,h.info.G,h.info.range,h.info.C,h.info.Kb,h.info.startTime,h.info.duration,h.info.T+t,h.info.S-t,h.info.X,h.info.ix,h.info.clipId),L);t.W=h.W;t.S=h.S;return[Y,t]}; g.ML=function(h,t,Y,L){Y=Y===void 0?!1:Y;L=L===void 0?0:L;if(h.isLocked||t.isLocked||!P_(h.info,t.info)||h.info.X)return null;if(L){if(h.T.totalLength+t.T.totalLength>L)return null}else if(Y&&(Y=h.T,L=t.T,Y=!(L.G.length?aEL(Y,L.G[0]):1)),Y)return null;Y=new Id(h.info.type,h.info.G,h.info.range,h.info.C,h.info.Kb,h.info.startTime,h.info.duration,h.info.T,h.info.S,h.info.X,h.info.ix,h.info.clipId);L=t.info;Y.S+=L.S;Y.range&&(Y.Y+=L.Y);Y.U=L.U;Y.X=L.X;L=new mD;DN(L,h.T);DN(L,t.T);Y=new UJ(Y,L);Y.G!= null&&t.G!=null&&(new g.yn("dash")).G(414627957,"merged slice emsg overridden; prev: "+Y.G.IX()+" next: "+t.G.IX());Y.G=t.G||h.G;Y.S=h.S!==-1?h.S:t.S;Y.W=h.W!==-1?h.W:t.W;return Y}; g.Fo=function(h){g.e2(h.info.G.info)||h.info.G.info.A7();if(h.S!==-1)return h.S;if(h.G&&fAL(h.G))return h.S=fAL(h.G),h.S;if(g.e2(h.info.G.info)){var t=g.Ck(h);for(var Y=h.info.G.G,L=NaN,q=NaN,z=0;H_(t,z);){var V=wZ(t,z);V.type===1936286840?q=V.data.getUint32(V.dataOffset+8):V.type===1836476516?q=g.Ve(V):V.type===1952867444&&isNaN(L)&&(L=g.ye(V));z=W_(V.type)?z+8:z+V.size}!q&&Y&&(q=NW(Y));t=L/q}else t=new Cz(g.Ck(h)),Y=h.X?t:new Cz(new DataView(h.info.G.G.buffer)),L=c_(Y),Y=t.pos,t.pos=0,un(t)?jG(t, 231)?(L=od(t)*L/1E9,t.pos=Y,t=L):(t.pos=Y,t=NaN):(t.pos=Y,t=NaN);h.S=t||h.info.W;return h.S}; Bq3=function(h,t){h.timestampOffset>0&&(t-=h.timestampOffset);var Y=g.Fo(h)+t;RiL(h,Y);h.timestampOffset=t}; RiL=function(h,t){g.e2(h.info.G.info)||h.info.G.info.A7();h.S=t;if(g.e2(h.info.G.info)){var Y=g.Ck(h);h=h.info.G.G;for(var L=NaN,q=NaN,z=0;H_(Y,z);){var V=wZ(Y,z);isNaN(L)&&(V.type===1936286840?L=V.data.getUint32(V.dataOffset+8):V.type===1836476516&&(L=g.Ve(V)));if(V.type===1952867444){!L&&h&&(L=NW(h));var l=g.ye(V);isNaN(q)&&(q=Math.round(t*L)-l);var H=V;l+=q;if(H.data.getUint8(H.dataOffset)){var w=H.data;H=H.dataOffset+4;w.setUint32(H,Math.floor(l/4294967296));w.setUint32(H+4,l&4294967295)}else H.data.setUint32(H.dataOffset+ 4,l)}z=W_(V.type)?z+8:z+V.size}return!0}Y=new Cz(g.Ck(h));h=h.X?Y:new Cz(new DataView(h.info.G.G.buffer));L=c_(h);h=Y.pos;Y.pos=0;if(un(Y)&&jG(Y,231))if(q=Zq(Y,!0),t=Math.floor(t*1E9/L),Math.ceil(Math.log(t)/Math.log(2)/8)>q)t=!1;else{for(L=q-1;L>=0;L--)Y.G.setUint8(Y.pos+L,t&255),t>>>=8;Y.pos=h;t=!0}else t=!1;return t}; jd=function(h,t){t=t===void 0?!1:t;var Y=sJ(h);h=t?0:h.info.Y;return Y||h}; sJ=function(h){g.e2(h.info.G.info)||h.info.G.info.A7();if(h.G&&h.info.type===6)return h.G.BI;if(g.e2(h.info.G.info)){var t=g.Ck(h);var Y=0;t=g.UI(t,1936286840);t=g.b(t);for(var L=t.next();!L.done;L=t.next())L=Pfb(L.value),Y+=L.PC[0]/L.timescale;Y=Y||NaN;if(!(Y>=0))a:{Y=g.Ck(h);t=h.info.G.G;for(var q=L=0,z=0;H_(Y,L);){var V=wZ(Y,L);if(V.type===1836476516)q=g.Ve(V);else if(V.type===1836019558){!q&&t&&(q=NW(t));if(!q){Y=NaN;break a}var l=ln(V.data,V.dataOffset,1953653094),H=l;l=q;var w=ln(H.data,H.dataOffset, 1952868452);H=ln(H.data,H.dataOffset,1953658222);var W=P8(w);P8(w);W&2&&P8(w);w=W&8?P8(w):0;var y=P8(H),X=y&1;W=y&4;var U=y&256,C=y&512,d=y&1024;y&=2048;var Q=mB(H);X&&P8(H);W&&P8(H);for(var J=X=0;J2048?"":t.indexOf("https://")===0?t:""}; Qn=function(h,t,Y){t.match(V0L);return h(t,Y).then(function(L){var q=g.zEn(L.xhr);return q?Qn(h,q,Y):L.xhr})}; ed=function(h,t,Y){h=h===void 0?"":h;t=t===void 0?null:t;Y=Y===void 0?!1:Y;g.PD.call(this);var L=this;this.sourceUrl=h;this.isLivePlayback=Y;this.lP=this.duration=0;this.isPremiere=this.f6=this.W=this.isLiveHeadPlayable=this.isLive=this.T=!1;this.e1=this.uR=0;this.isOtf=this.fZ=!1;this.Zx=(0,g.FH)();this.AQ=Infinity;this.G={};this.S=new Map;this.state=this.Dg=0;this.timeline=null;this.isManifestless=!1;this.R0=[];this.U=null;this.gU=0;this.X="";this.X5=NaN;this.Wm=this.Q4=this.timestampOffset=this.C= 0;this.nI=this.GV=NaN;this.Ds=0;this.Ne=this.L=!1;this.Y8=[];this.JQ={};this.x8=NaN;this.zD={zCi:function(l){rQ(L,l)}}; var q;this.yG=(q=t)==null?void 0:q.I0("html5_use_network_error_code_enums");Ntp=!!t&&t.I0("html5_modern_vp9_mime_type");var z;co=!((z=t)==null||!z.I0("html5_enable_flush_during_seek"))&&g.xT();var V;u$=!((V=t)==null||!V.I0("html5_enable_reset_audio_decoder"))&&g.xT()}; lo6=function(h){return g.Yp(h.G,function(t){return!!t.info.video&&t.info.video.qualityOrdinal>=2160})}; d0n=function(h){return g.Yp(h.G,function(t){return!!t.info.video&&t.info.video.isHdr()})}; eF=function(h){return g.Yp(h.G,function(t){return!!t.info.EX})}; g.H_L=function(h){return g.Yp(h.G,function(t){return au(t.info.mimeType)})}; wsr=function(h){return g.Yp(h.G,function(t){return t.info.video?t.info.video.projectionType==="EQUIRECTANGULAR":!1})}; W$6=function(h){return g.Yp(h.G,function(t){return t.info.video?t.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; y0D=function(h){return g.Yp(h.G,function(t){return t.info.video?t.info.video.projectionType==="MESH":!1})}; Xs1=function(h){return g.Yp(h.G,function(t){return t.info.video?t.info.video.stereoLayout===1:!1})}; UOr=function(h){return JrL(h.G,function(t){return t.info.video?t.vc():!0})}; rO=function(h){return g.Yp(h.G,function(t){return nh(t.e4.G)})}; rQ=function(h,t){h.G[t.info.id]=t;h.S.set(nz(g.pA(t.info,h.fZ)),t)}; vo=function(h,t,Y){Y=Y===void 0?0:Y;var L=h.mimeType||"",q=h.itag;var z=h.xtags;q=q?q.toString():"";z&&(q+=";"+z);z=q;if(KA(L)){var V=h.width||640;q=h.height||360;var l=h.fps,H=h.qualityLabel,w=h.colorInfo,W=h.projectionType,y;h.stereoLayout&&(y=C8n[h.stereoLayout]);var X=L$b(h)||void 0;if(w==null?0:w.primaries)var U=M0$[w.primaries]||void 0;V=new sF(V,q,l,W,y,void 0,H,X,U);L=J5(L,V,b_[h.itag||""]);co&&(L+="; enableflushduringseek=true");u$&&(L+="; enableresetaudiodecoder=true")}var C;if(vd(L)){var d= h.audioSampleRate;y=h.audioTrack;d=new CA(d?+d:void 0,h.audioChannels,h.spatialAudioType,h.isDrc,h.loudnessDb,h.trackAbsoluteLoudnessLkfs,h.audioQuality||"AUDIO_QUALITY_UNKNOWN",h.isVb);y&&(U=y.displayName,q=y.id,y=y.audioIsDefault,U&&(C=new g.G9(U,q||"",!!y)))}var Q;h.captionTrack&&(H=h.captionTrack,y=H.displayName,U=H.vssId,q=H.languageCode,l=H.kind,H=H.id,y&&U&&q&&(Q=new g_D(y,U,q,l,h.xtags,H)));y=Number(h.bitrate)/8;U=Number(h.contentLength);q=Number(h.lastModified);H=h.drmFamilies;l=h.type;Y= Y&&U?U/Y:0;h=Number(h.approxDurationMs);if(t&&H){var J={};H=g.b(H);for(w=H.next();!w.done;w=H.next())(w=pk[w.value])&&(J[w]=t[w])}return new ou(z,L,{audio:d,video:V,j4:C,EX:J,Lb:y,tA:Y,contentLength:U,lastModified:q,captionTrack:Q,streamType:l,approxDurationMs:h})}; Kk=function(h,t,Y){Y=Y===void 0?0:Y;var L=h.type;var q=h.itag;var z=h.xtags;z&&(q=h.itag+";"+z);if(KA(L)){var V=(h.size||"640x360").split("x");V=new sF(+V[0],+V[1],+h.fps,h.projection_type,+h.stereo_layout,void 0,h.quality_label,h.eotf,h.primaries);L=J5(L,V,b_[h.itag]);co&&(L+="; enableflushduringseek=true");u$&&(L+="; enableresetaudiodecoder=true")}var l;if(vd(L)){var H=new CA(+h.audio_sample_rate||void 0,+h.audio_channels||0,h.spatial_audio_type,!!h.drc);h.name&&(l=new g.G9(h.name,h.audio_track_id, h.isDefault==="1"))}var w;h.caption_display_name&&h.caption_vss_id&&h.caption_language_code&&(w=new g_D(h.caption_display_name,h.caption_vss_id,h.caption_language_code,h.caption_kind,h.xtags,h.caption_id));z=Number(h.bitrate)/8;var W=Number(h.clen),y=Number(h.lmt);Y=Y&&W?W/Y:0;if(t&&h.drm_families){var X={};for(var U=g.b(h.drm_families.split(",")),C=U.next();!C.done;C=U.next())C=C.value,X[C]=t[C]}return new ou(q,L,{audio:H,video:V,j4:l,EX:X,Lb:z,tA:Y,contentLength:W,lastModified:y,captionTrack:w, streamType:h.stream_type,approxDurationMs:Number(h.approx_duration_ms)})}; F$i=function(h){return OM(h,function(t){return"FORMAT_STREAM_TYPE_OTF"===t.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; s6b=function(h){return OM(h,function(t){return"FORMAT_STREAM_TYPE_OTF"===t.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; j6i=function(h,t){return h.timeline?KH(h.timeline.W,t):h.R0.length?KH(h.R0,t):[]}; a5=function(h,t,Y){t=t===void 0?"":t;Y=Y===void 0?"":Y;h=new g.Es(h,!0);h.set("alr","yes");Y&&(Y=TMc(decodeURIComponent(Y)),h[N[8]](t,encodeURIComponent(Y)));return h}; dO6=function(h,t){var Y=qL(t,"id");Y=Y.replace(":",";");var L=qL(t,"mimeType"),q=qL(t,"codecs");L=q?L+'; codecs="'+q+'"':L;q=Number(qL(t,"bandwidth"))/8;var z=Number(z9(t,"BaseURL").getAttribute(h.X+":contentLength")),V=h.duration&&z?z/h.duration:0;if(KA(L)){var l=Number(qL(t,"width"));var H=Number(qL(t,"height")),w=Number(qL(t,"frameRate")),W=Z_c(qL(t,h.X+":projectionType"));a:switch(qL(t,h.X+":stereoLayout")){case "layout_left_right":var y=1;break a;case "layout_top_bottom":y=2;break a;default:y= 0}l=new sF(l,H,w,W,y)}if(vd(L)){var X=Number(qL(t,"audioSamplingRate"));var U=Number(qL(t.getElementsByTagName("AudioChannelConfiguration")[0],"value"));H=b_c(qL(t,h.X+":spatialAudioType"));X=new CA(X,U,H);a:{U=qL(t,"lang")||"und";if(H=z9(t,"Role"))if(W=qL(H,"value")||"",g.lv(o_D,W)){H=U+"."+o_D[W];w=W==="main";h=qL(t,h.X+":langName")||U+" - "+W;U=new g.G9(h,H,w);break a}U=void 0}}if(t=z9(t,"ContentProtection"))if(t.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var C={};for(t= t.firstChild;t!=null;t=t.nextSibling)t instanceof Element&&/SystemURL/.test(t.nodeName)&&(h=t.getAttribute("type"),H=t.textContent,h&&H&&(C[h]=H.trim()))}else C=void 0;return new ou(Y,L,{audio:X,video:l,j4:U,EX:C,Lb:q,tA:V,contentLength:z})}; Z_c=function(h){switch(h){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; b_c=function(h){switch(h){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; Q6L=function(h,t){t=t===void 0?"":t;h.state=1;h.Zx=(0,g.FH)();return qk3(t||h.sourceUrl).then(function(Y){if(!h.Ui()){h.Dg=Y.status;Y=Y.responseText;var L=new DOMParser;Y=Qz(L,pkD(Y),"text/xml").getElementsByTagName("MPD")[0];h.AQ=uSL(qL(Y,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(Y.attributes){L=g.b(Y.attributes);for(var q=L.next();!q.done;q=L.next())if(q=q.value,q.value==="http://youtube.com/yt/2012/10/10"){L=q.name.split(":")[1];break b}}L=""}h.X=L;h.isLive=h.AQ=h.AQ}; c0n=function(h){h.U&&h.U.stop()}; GQn=function(h){var t=h.AQ;isFinite(t)&&(xw(h)?h.refresh():(t=Math.max(0,h.Zx+t-(0,g.FH)()),h.U||(h.U=new g.nE(h.refresh,t,h),g.f(h,h.U)),h.U.start(t)))}; ur6=function(h){h=h.G;for(var t in h){var Y=h[t].index;if(Y.isLoaded())return Y.v3()+1}return 0}; EJ=function(h){return h.Q4?h.Q4-(h.C||h.timestampOffset):0}; kw=function(h){return h.Wm?h.Wm-(h.C||h.timestampOffset):0}; OJ=function(h){if(!isNaN(h.X5))return h.X5;var t=h.G,Y;for(Y in t){var L=t[Y].index;if(L.isLoaded()&&!au(t[Y].info.mimeType)){t=0;for(Y=L.OV();Y<=L.v3();Y++)t+=L.getDuration(Y);t/=L.vN();t=Math.round(t/.5)*.5;L.vN()>10&&(h.X5=t);return t}if(h.isLive&&(L=t[Y],L.BI))return L.BI}return NaN}; eE1=function(h,t){h=vbr(h.G,function(L){return L.index.isLoaded()}); if(!h)return NaN;h=h.index;var Y=h.RF(t);return h.getStartTime(Y)===t?t:Y=0&&q.segments.splice(z,1)}}}; ps3=function(h){for(var t in h.G)au(h.G[t].info.mimeType)||x0c(h.G[t].index,Infinity)}; $w=function(h,t,Y){for(var L in h.G){var q=h.G[L].index,z=t,V=Y;q.gH&&(z&&(q.wA=Math.max(q.wA,z)),V&&(q.Wo=Math.max(q.Wo||0,V)))}Y&&(h.x8=Y/1E3)}; v_$=function(h){h.Wm=0;h.Q4=0;h.Ds=0}; T9=function(h){return h.Ne&&h.isManifestless?h.isLiveHeadPlayable:h.isLive}; J5=function(h,t,Y){A5===null&&(A5=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(Ntp&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return A5||Y!=="9"&&Y!=="("?A5||Y!=="9h"&&Y!=="(h"||(h='video/webm; codecs="vp9.2"'):h='video/webm; codecs="vp9"',h;if(!A5&&!Sd||h!=='video/webm; codecs="vp9"'&&h!=='video/webm; codecs="vp9.2"')return h; Y="00";var L="08",q="01",z="01",V="01";h==='video/webm; codecs="vp9.2"'&&(Y="02",L="10",t.primaries==="bt2020"&&(V=q="09"),t.G==="smpte2084"&&(z="16"),t.G==="arib-std-b67"&&(z="18"));return'video/webm; codecs="'+["vp09",Y,"51",L,"01",q,z,V,"00"].join(".")+'"'}; R5=function(h,t,Y){h=""+h+(t>49?"p60":t>32?"p48":"");t=lr()[h];if(t!=null&&t>0)return t;t=I5.get(h);if(t!=null&&t>0)return t;Y=Y==null?void 0:Y.get(h);return Y!=null&&Y>0?Y:8192}; K$6=function(h){this.SM=h;this.Im=this.aY=this.gU=this.X=this.W=this.Y8=this.Ne=this.AQ=!1;this.C=this.U=0;this.yG=!1;this.x8=!0;this.JQ=!1;this.QP=0;this.kV=this.R0=!1;this.pn=!0;this.Zx=this.X5=!1;this.G={};this.Pq=this.G$=this.dP=this.disableAv1=this.tQ=this.M6=this.iP=this.MD=this.T=this.Y=!1;this.R7=this.SM.N("html5_disable_aac_preference");this.y4=Infinity;this.Wm=0;this.Ds=this.SM.pZ();this.Q4=this.SM.experiments.I0("html5_enable_vp9_fairplay");this.sX=this.SM.N("html5_force_av1_for_testing"); this.lP=g.Sk(this.SM.experiments,"html5_av1_ordinal_cap");this.UX=this.SM.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.m$=this.SM.N("html5_account_onesie_format_selection_during_format_filter");this.Lb=g.Sk(this.SM.experiments,"html5_max_byterate");this.Hq=this.SM.N("html5_enable_iamf_audio");this.Vb=this.SM.experiments.I0("html5_allow_capability_merge");this.fn=this.SM.N("html5_enable_encrypted_av1")}; GWn=function(h){if(h.Ne)return["f"];if(g.Ki("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var t=["9h","9","h","8"];h.fn&&t.push("1e");t=t.concat(["(h","(","H","*"]);h.R0&&(t.unshift("1"),t.unshift("1h"));h.aY&&t.unshift("h");h.L&&(t=(aoL[h.L]||[h.L]).concat(t));return t}; FTL=function(h){var t=["o","a","A"];h.Wm===1&&(h.W&&(t=["mac3","MAC3"].concat(t)),h.X&&(t=["meac3","MEAC3"].concat(t)),h.Hq&&(t=["i","I"].concat(t)));h.AQ&&(t=["so","sa"].concat(t));!h.Im||h.gU||h.S||h.R7||t.unshift("a");h.S&&(t=(aoL[h.S]||[h.S]).concat(t));return t}; Bo=function(h,t,Y,L){t=t===void 0?{}:t;if(L===void 0?0:L)return t.disabled=1,0;if(am(h.X,xQ.AV1_CODECS)&&am(h.X,xQ.HEIGHT)&&am(h.X,xQ.BITRATE))return t.isCapabilityUsable=1,8192;try{var q=tQr();if(q&&!h.N("disable_av1_setting"))return t.localPref=q}catch(l){}L=1080;q=navigator.hardwareConcurrency;q<=2&&(L=480);t.coreCount=q;if(q=g.Sk(h.experiments,"html5_default_av1_threshold"))L=t["default"]=q;!h.N("html5_disable_av1_arm_check")&&Cd6()&&(t.isArm=1,L=240);if(h=h.X.x8)t.mcap=h,L=Math.max(L,h);if(Y){var z, V;if(h=(z=Y.videoInfos.find(function(l){return rq(l)}))==null?void 0:(V=z.T)==null?void 0:V.powerEfficient)L=8192,t.isEfficient=1; Y=Y.videoInfos[0].video;z=Math.min(R5("1",Y.fps),R5("1",30));t.perfCap=z;L=Math.min(L,z);Y.isHdr()&&!h&&(t.hdr=1,L*=.75)}else Y=R5("1",30),t.perfCap30=Y,L=Math.min(L,Y),Y=R5("1",60),t.perfCap60=Y,L=Math.min(L,Y);return t.av1Threshold=L}; Po=function(h,t,Y,L){this.flavor=h;this.keySystem=t;this.T=Y;this.experiments=L;this.G={};this.lP=this.keySystemAccess=null;this.mF=this.Hp=-1;this.MG=null;this.S=!!L&&L.I0("edge_nonprefixed_eme");L&&L.I0("html5_enable_vp9_fairplay")}; D5=function(h){return h.S?!1:!h.keySystemAccess&&!!mz()&&h.keySystem==="com.microsoft.playready"}; hU=function(h){return h.keySystem==="com.microsoft.playready"}; tU=function(h){return!h.keySystemAccess&&!!mz()&&h.keySystem==="com.apple.fps.1_0"}; iE=function(h){return h.keySystem==="com.youtube.fairplay"}; gG=function(h){return h.keySystem==="com.youtube.fairplay.sbdl"}; g.Yk=function(h){return h.flavor==="fairplay"}; mz=function(){var h=window,t=h.MSMediaKeys;OA()&&!t&&(t=h.WebKitMediaKeys);return t&&t.isTypeSupported?t:null}; qA=function(h){return navigator.requestMediaKeySystemAccess?g.wq&&!g.xT()?CS("45"):g.kL||g.qz?h.I0("edge_nonprefixed_eme"):g.Lw?CS("47"):g.Hq&&h.I0("html5_enable_safari_fairplay")?!1:!0:!1}; xOr=function(h,t,Y,L){var q=EA(),z=(Y=q||Y&&OA())?["com.youtube.fairplay"]:["com.widevine.alpha"];t&&z.unshift("com.youtube.widevine.l3");q&&L&&z.unshift("com.youtube.fairplay.sbdl");return Y?z:h?[].concat(g.p(z),g.p(zi.playready)):[].concat(g.p(zi.playready),g.p(z))}; V5=function(h,t,Y,L,q){L=L===void 0?!1:L;g.O.call(this);this.SM=t;this.useCobaltWidevine=L;this.Pm=q;this.T=[];this.S={};this.G={};this.callback=null;this.X=!1;this.W=[];this.initialize(h,!Y)}; kQL=function(h,t){h.callback=t;h.W=[];qA(h.SM.experiments)?NA(h):E_L(h)}; NA=function(h){if(!h.Ui())if(h.T.length===0)h.callback(h.W);else{var t=h.T[0],Y=h.S[t],L=O_3(h,Y);if(lE&&lE.keySystem===t&&lE.ToQ===JSON.stringify(L))h.Pm("remksa",{re:!0}),n_6(h,Y,lE.keySystemAccess);else{var q,z;h.Pm("remksa",{re:!1,ok:(z=(q=lE)==null?void 0:q.keySystem)!=null?z:""});lE=void 0;navigator.requestMediaKeySystemAccess(t,L).then(KO(function(V){n_6(h,Y,V,L)}),KO(function(){h.X=!h.X&&h.S[h.T[0]].flavor==="widevine"; h.X||h.T.shift();NA(h)}))}}}; n_6=function(h,t,Y,L){if(!h.Ui()){L&&(lE={keySystem:t.keySystem,keySystemAccess:Y,ToQ:JSON.stringify(L)});t.keySystemAccess=Y;if(hU(t)){Y=l_();L=g.b(Object.keys(h.G[t.flavor]));for(var q=L.next();!q.done;q=L.next())q=q.value,t.G[q]=!!Y.canPlayType(q)}else{Y=t.keySystemAccess.getConfiguration();if(Y.audioCapabilities)for(L=g.b(Y.audioCapabilities),q=L.next();!q.done;q=L.next())t.G[q.value.contentType]=!0;if(Y.videoCapabilities)for(Y=g.b(Y.videoCapabilities),L=Y.next();!L.done;L=Y.next())t.G[L.value.contentType]= !0}h.W.push(t);h.useCobaltWidevine||h.N("html5_enable_vp9_fairplay")&&gG(t)?(h.T.shift(),NA(h)):h.callback(h.W)}}; O_3=function(h,t){var Y={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(h.N("html5_enable_vp9_fairplay")&&iE(t))return Y.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),Y.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[Y];hU(t)&&(Y.initDataTypes=["keyids","cenc"]);for(var L=g.b(Object.keys(h.G[t.flavor])),q=L.next();!q.done;q=L.next()){q=q.value;var z=q.indexOf("audio/")===0,V=z?Y.audioCapabilities:Y.videoCapabilities;t.flavor!== "widevine"||h.X?V.push({contentType:q}):z?V.push({contentType:q,robustness:"SW_SECURE_CRYPTO"}):(g.wq&&g.Ki("windows nt")&&!h.N("html5_drm_enable_moho")||V.push({contentType:q,robustness:"HW_SECURE_ALL"}),z=q,h.SM.X.S&&q.includes("vp09")&&(z=q+"; experimental=allowed"),V.push({contentType:z,robustness:"SW_SECURE_DECODE"}),Hc(h.SM)==="MWEB"&&(Sa()||aF())&&(h.Pm("swcrypto",{}),V.push({contentType:q,robustness:"SW_SECURE_CRYPTO"})))}return[Y]}; E_L=function(h){if(mz()&&(g.Hq||fi))h.W.push(new Po("fairplay","com.apple.fps.1_0","",h.SM.experiments));else{var t=$OW(),Y=g.Mh(h.T,function(L){var q=h.S[L],z=!1,V=!1,l;for(l in h.G[q.flavor])t(l,L)&&(q.G[l]=!0,z=z||l.indexOf("audio/")===0,V=V||l.indexOf("video/")===0);return z&&V}); Y&&h.W.push(h.S[Y]);h.T=[]}h.callback(h.W)}; $OW=function(){var h=mz();if(h){var t=h.isTypeSupported;return function(L,q){return t(q,L)}}var Y=l_(); return Y&&(Y.addKey||Y.webkitAddKey)?function(L,q){return!!Y.canPlayType(L,q)}:function(){return!1}}; Ttr=function(h){this.experiments=h;this.G=2048;this.W=0;this.AQ=(this.C=this.N("html5_streaming_resilience"))?.5:.25;var t=t===void 0?0:t;this.S=g.Sk(this.experiments,"html5_media_time_weight_prop")||t;this.L=(this.X=this.experiments.I0("html5_consider_end_stall"))&&wG;this.T=this.experiments.I0("html5_measure_max_progress_handling");this.Y=this.N("html5_treat_requests_pre_elbow_as_metadata");this.U=this.N("html5_media_time_weight")||!!this.S;this.N("html5_sabr_live_audio_early_return_fix")&&wG&& (this.G=65536)}; A06=function(h,t){this.G=void 0;this.experimentIds=h?h.split(","):[];this.flags=Tq(t||"","&");h={};t=g.b(this.experimentIds);for(var Y=t.next();!Y.done;Y=t.next())h[Y.value]=!0;this.experiments=h}; g.Sk=function(h,t){h=h.flags[t];JSON.stringify(h);return Number(h)||0}; Wc=function(h,t){return(h=h.flags[t])?h.toString():""}; SkL=function(h){if(h=h.flags.html5_web_po_experiment_ids)if(h=h.replace(/\[ *(.*?) *\]/,"$1"))return h.split(",").map(Number);return[]}; Ion=function(h){if(h.G)return h.G;if(h.experimentIds.length<=1)return h.G=h.experimentIds,h.G;var t=[].concat(g.p(h.experimentIds)).map(function(L){return Number(L)}); t.sort();for(var Y=t.length-1;Y>0;--Y)t[Y]-=t[Y-1];h.G=t.map(function(L){return L.toString()}); h.G.unshift("v1");return h.G}; Bt1=function(h){return REr.then(h)}; y5=function(h,t,Y){this.experiments=h;this.Wm=t;this.gU=Y===void 0?!1:Y;this.L=!!g.il("cast.receiver.platform.canDisplayType");this.Y={};this.AQ=!1;this.W=new Map;this.C=!0;this.T=this.S=!1;this.G=new Map;this.x8=0;this.R0=this.experiments.I0("html5_disable_vp9_encrypted");this.X=this.experiments.I0("html5_enable_encrypted_av1");h=g.il("cast.receiver.platform.getValue");this.U=!this.L&&h&&h("max-video-resolution-vpx")||null;P8L(this);this.S=!!(EA()&&v2()>=21)}; cen=function(h,t,Y){Y=Y===void 0?1:Y;var L=t.itag;if(L==="0")return!0;var q=t.mimeType;if(t.wU==="1e"&&!h.X)return"dav1enc";if(rq(t)&&h.AQ)return"dav1";if(t.video&&(t.video.isHdr()||t.video.primaries==="bt2020")&&!(am(h,xQ.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(L==="338"&&!(g.wq?CS(53):g.Lw&&CS(64)))return"dopus";var z=Y;z=z===void 0?1: z;Y={};t.video&&(t.video.width&&(Y[xQ.WIDTH.name]=t.video.width),t.video.height&&(Y[xQ.HEIGHT.name]=t.video.height),t.video.fps&&(Y[xQ.FRAMERATE.name]=t.video.fps*z),t.video.G&&(Y[xQ.EOTF.name]=t.video.G),t.Lb&&(Y[xQ.BITRATE.name]=t.Lb*8*z),t.wU==="("&&(Y[xQ.CRYPTOBLOCKFORMAT.name]="subsample"),t.video.projectionType==="EQUIRECTANGULAR"||t.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||t.video.projectionType==="MESH")&&(Y[xQ.DECODETOTEXTURE.name]="true");t.audio&&t.audio.numChannels&& (Y[xQ.CHANNELS.name]=t.audio.numChannels);h.S&&dq(t)&&(Y[xQ.EXPERIMENTAL.name]="allowed");z=g.b(Object.keys(xQ));for(var V=z.next();!V.done;V=z.next()){V=xQ[V.value];var l;if(l=Y[V.name])if(l=!(V===xQ.EOTF&&t.mimeType.indexOf("vp09.02")>0)){l=V;var H=t;l=!(h.experiments.I0("html5_ignore_h264_framerate_cap")&&l===xQ.FRAMERATE&&cs3(H))}if(l)if(am(h,V))if(h.U){if(h.U[V.name] 1080&&t.EX&&(q+="; hdcp=2.2");return L==="227"?"hqcenc":L!=="585"&&L!=="588"&&L!=="583"&&L!=="586"&&L!=="584"&&L!=="587"&&L!=="591"&&L!=="592"||h.experiments.I0("html5_enable_new_hvc_enc")?EA()&&v2()>=21&&g.Ki("appletv5")&&(L==="410"||L==="845")?!0:h.isTypeSupported(q)?!0:"tpus":"newhvc"}; Xi=function(){var h=aF()&&!CS(29),t=g.Ki("google tv")&&g.Ki("chrome")&&!CS(30);return h||t?!1:KUc()}; mOL=function(h,t,Y){var L=480;t=g.b(t);for(var q=t.next();!q.done;q=t.next()){q=q.value;var z=q.video.qualityOrdinal;z<=1080&&z>L&&cen(h,q,Y)===!0&&(L=z)}return L}; g.UZ=function(h,t){t=t===void 0?!1:t;return Xi()&&h.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!t&&h.canPlayType(l_(),"application/x-mpegURL")?!0:!1}; hU1=function(h){DO1(function(){for(var t=g.b(Object.keys(xQ)),Y=t.next();!Y.done;Y=t.next())am(h,xQ[Y.value])})}; am=function(h,t){t.name in h.Y||(h.Y[t.name]=tSb(h,t));return h.Y[t.name]}; tSb=function(h,t){if(h.U)return!!h.U[t.name];if(t===xQ.BITRATE&&h.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!h.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(t===xQ.AV1_CODECS)return h.isTypeSupported("video/mp4; codecs="+t.valid)&&!h.isTypeSupported("video/mp4; codecs="+t.zT);if(t.video){var Y='video/webm; codecs="vp9"';h.isTypeSupported(Y)||(Y='video/mp4; codecs="avc1.4d401e"')}else Y='audio/webm; codecs="opus"', h.isTypeSupported(Y)||(Y='audio/mp4; codecs="mp4a.40.2"');return h.isTypeSupported(Y+"; "+t.name+"="+t.valid)&&!h.isTypeSupported(Y+"; "+t.name+"="+t.zT)}; iKL=function(h,t){var Y=0;h.W.has(t)&&(Y=h.W.get(t).T9);h.W.set(t,{T9:Y+1,Bt:Math.pow(2,Y+1)});h.T=!0}; J6=function(h){for(var t=[],Y=g.b(h.G.keys()),L=Y.next();!L.done;L=Y.next()){L=L.value;var q=h.G.get(L);t.push(L+"_"+q.maxWidth+"_"+q.maxHeight)}return t.join(".")}; jQn=function(h,t){for(var Y=new Map,L=g.b(h.G.keys()),q=L.next();!q.done;q=L.next()){q=q.value;var z=q.split("_")[0];t.has(z)||Y.set(q,h.G.get(q))}h.G=Y}; b4L=function(h,t,Y){var L,q=((L=Y.video)==null?void 0:L.fps)||0;L=t+"_"+q;var z=!!Y.audio,V={itag:Y.itag,wU:t,N0:z};if(z)V.numChannels=Y.audio.numChannels;else{var l=Y.video;V.maxWidth=l==null?void 0:l.width;V.maxHeight=l==null?void 0:l.height;V.maxFramerate=q;am(h,xQ.BITRATE)&&(V.maxBitrateBps=Y.Lb*8);V.Ic=l==null?void 0:l.isHdr()}l=h.G.get(L);l?z||(Y=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(V.maxWidth||0,V.maxHeight||0)?l:V,t={itag:Y.itag,wU:t,N0:z,maxWidth:Math.max(l.maxWidth||0,V.maxWidth|| 0),maxHeight:Math.max(l.maxHeight||0,V.maxHeight||0),maxFramerate:q,Ic:Y.Ic},am(h,xQ.BITRATE)&&(t.maxBitrateBps=Y.maxBitrateBps),h.G.set(L,t)):h.G.set(L,V)}; o0r=function(h,t,Y){var L,q=((L=Y.video)==null?void 0:L.fps)||0;L=t+"_"+q;var z=!!Y.audio,V=h.G.get(L);a:{var l=h.G.get(L),H=!!Y.audio;if(l){if(H){var w=!1;break a}var W;if(!H&&((w=Y.video)==null?0:w.height)&&l.maxHeight&&l.maxHeight>=((W=Y.video)==null?void 0:W.height)){w=!1;break a}}w=!0}w&&(w=Y.itag,t=V?V:{itag:w,wU:t,N0:z},z?t.numChannels=Y.audio.numChannels:(z=Y.video,t.maxWidth=z==null?void 0:z.width,t.maxHeight=z==null?void 0:z.height,t.maxFramerate=q,am(h,xQ.BITRATE)&&(t.maxBitrateBps=Y.Lb* 8),t.Ic=z==null?void 0:z.isHdr()),h.G.set(L,t))}; P8L=function(h){var t;(t=navigator.mediaCapabilities)!=null&&t.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(Y){Y.smooth&&Y.powerEfficient&&(h.x8=2160)})}; Cw=function(){g.PD.call(this);this.items={}}; gG3=function(h,t,Y){this.encryptedClientKey=t;this.X=Y;this.G=new Uint8Array(h.buffer,0,16);this.T=new Uint8Array(h.buffer,16)}; YjW=function(h){h.S||(h.S=new g.YB(h.G));return h.S}; MA=function(h){try{return re(h)}catch(t){return null}}; LOL=function(h,t){if(!t&&h)try{t=JSON.parse(h)}catch(q){}if(t){h=t.clientKey?MA(t.clientKey):null;var Y=t.encryptedClientKey?MA(t.encryptedClientKey):null,L=t.keyExpiresInSeconds?Number(t.keyExpiresInSeconds)*1E3+(0,g.FH)():null;h&&Y&&L&&(this.G=new gG3(h,Y,L));t.onesieUstreamerConfig&&(this.onesieUstreamerConfig=MA(t.onesieUstreamerConfig)||void 0);this.baseUrl=t.baseUrl}}; sZ=function(){this.data=new Uint8Array(2048);this.pos=0;Fi||(Fi=wX("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; jI=function(h,t){h.add(t==null||isNaN(t)?0:t+1)}; Z4=function(h){this.G=this.T=0;this.alpha=Math.exp(Math.log(.5)/h)}; bE=function(h){this.T=h===void 0?15:h;this.values=new Float64Array(176);this.G=new Float64Array(11);this.S=new Float64Array(16)}; o9=function(h,t,Y,L){Y=Y===void 0?.5:Y;L=L===void 0?0:L;this.resolution=t;this.T=0;this.S=!1;this.EJ=!0;this.G=Math.round(h*this.resolution);this.values=Array(this.G);for(h=0;h0)t=h.byterate,this.AQ=!0;else{var L; Y=(((L=navigator.connection)==null?void 0:L.downlink)||0)*64*1024;Y>0&&(t=Y,this.AQ=!0)}this.S.Fv(this.policy.U,t);h.delay>0&&this.Y.Fv(1,Math.min(h.delay,2));h.stall>0&&this.C.Fv(1,h.stall);h.init>0&&(this.Zx=Math.min(h.init,this.Zx));h.interruptions&&(this.W=this.W.concat(h.interruptions),this.W.length>16&&this.W.pop());this.x8=(0,g.FH)();this.policy.C>0&&(this.Ne=new g.nE(this.Y8,this.policy.C,this),g.f(this,this.Ne),this.Ne.start())}; Gi=function(h,t,Y,L){h.S.Fv(L===void 0?t:L,Y/t);h.U=(0,g.FH)()}; zUD=function(h){h.X||(h.X=(0,g.FH)());h.policy.L&&(h.U=(0,g.FH)())}; VSD=function(h,t){if(h.X){var Y=t-h.X;if(Y<6E4){if(Y>1E3){var L=h.interruptions;L.push(Math.ceil(Y));L.sort(function(q,z){return z-q}); L.length>16&&L.pop()}h.Wm+=Y}}h.X=t}; Q5=function(h,t,Y,L,q,z){z=z===void 0?!1:z;h.X5.Fv(t,Y/t);h.U=(0,g.FH)();q||h.L.Fv(1,t-L);z||(h.X=0);h.x8>-1&&(0,g.FH)()-h.x8>3E4&&N9c(h)}; rG=function(h,t,Y){t=Math.max(t,h.T.G);h.C.Fv(1,Y/t)}; cc=function(h){h=h.Y.ID()+h.gU.ID()||0;h=isNaN(h)?.5:h;return h=Math.min(h,5)}; uE=function(h,t,Y){isNaN(Y)||(h.R0+=Y);isNaN(t)||(h.lP+=t)}; eI=function(h){h=h.S.ID();return h>0?h:1}; JU=function(h,t,Y){t=t===void 0?!1:t;Y=Y===void 0?1048576:Y;var L=eI(h);L=1/((h.C.ID()||0)*h.policy.AQ+1/L);var q=h.X5.ID();q=q>0?q:1;var z=Math.max(L,q);h.policy.X>0&&q=4E3}; HKr=function(h){this.experiments=h;this.G=17;this.S=13E4;this.U=.5;this.W=this.T=!1;this.x8=this.N("html5_use_histogram_for_bandwidth");this.X=g.Sk(this.experiments,"html5_auxiliary_estimate_weight");this.AQ=g.Sk(this.experiments,"html5_stall_factor")||1;this.C=g.Sk(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.I0("html5_trigger_loader_when_idle_network");this.L=this.experiments.I0("html5_sabr_fetch_on_idle_network_preloaded_players")}; WOp=function(h,t){h=h===void 0?{}:h;t=t===void 0?{}:t;g.O.call(this);var Y=this;this.values=h;this.OJ=t;this.T={};this.S=this.G=0;this.W=new g.nE(function(){wOW(Y)},1E4); g.f(this,this.W)}; vc=function(h,t){yiL(h,t);return h.values[t]&&h.OJ[t]?h.values[t]/Math.pow(2,h.G/h.OJ[t]):0}; yiL=function(h,t){h.values[t]||(t=PL3(),h.values=t.values||{},h.OJ=t.halfLives||{},h.T=t.values?Object.assign({},t.values):{})}; wOW=function(h){var t=PL3();if(t.values){t=t.values;for(var Y={},L=g.b(Object.keys(h.values)),q=L.next();!q.done;q=L.next())q=q.value,t[q]&&h.T[q]&&(h.values[q]+=t[q]-h.T[q]),Y[q]=vc(h,q);h.T=Y}t=h.OJ;Y={};Y.values=h.T;Y.halfLives=t;g.dK("yt-player-memory",Y,2592E3)}; hx=function(h,t,Y,L,q){g.O.call(this);this.webPlayerContextConfig=t;this.xQ=L;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Ty=this.Pq=this.UX=this.qW=this.userDisplayName=this.userDisplayImage=this.lZ="";this.G={};this.Q4={};this.controlsType="0";this.pn=NaN;this.iP=!1;this.Df=(0,g.FH)();this.G$=0;this.Bo=this.ZR=!1;this.qS=!0;this.preferGapless=this.PS=this.Cr=this.S=this.NU=!1;this.lB=[];this.lR=!1;this.GV=0;h=h?g.Uw(h):{};t&&t.csiPageType&&(this.csiPageType=t.csiPageType);t&&t.csiServiceName&& (this.csiServiceName=t.csiServiceName);t&&t.preferGapless&&(this.preferGapless=t.preferGapless);this.experiments=new A06(t?t.serializedExperimentIds:h.fexp,t?t.serializedExperimentFlags:h.fflags);this.forcedExperiments=t?t.serializedForcedExperimentIds:DH("",h.forced_experiments)||void 0;this.cspNonce=(t==null?0:t.cspNonce)?t.cspNonce:DH("",h.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var z=document.location.toString()}catch(B){z=""}this.eh=z;this.ancestorOrigins=(L=window.location.ancestorOrigins)? Array.from(L):[];this.W=B2(!1,t?t.isEmbed:h.is_embed);if(t&&t.device){if(L=t.device,L.androidOsExperience&&(this.G.caoe=""+L.androidOsExperience),L.androidPlayServicesVersion&&(this.G.capsv=""+L.androidPlayServicesVersion),L.brand&&(this.G.cbrand=L.brand),L.browser&&(this.G.cbr=L.browser),L.browserVersion&&(this.G.cbrver=L.browserVersion),L.cobaltReleaseVehicle&&(this.G.ccrv=""+L.cobaltReleaseVehicle),this.G.c=L.interfaceName||"WEB",this.G.cver=L.interfaceVersion||"html5",L.interfaceTheme&&(this.G.ctheme= L.interfaceTheme),this.G.cplayer=L.interfacePlayerType||"UNIPLAYER",L.model&&(this.G.cmodel=L.model),L.network&&(this.G.cnetwork=L.network),L.os&&(this.G.cos=L.os),L.osVersion&&(this.G.cosver=L.osVersion),L.platform&&(this.G.cplatform=L.platform),z=Wc(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),z==="all"||z==="once")L.chipset&&(this.Q4.cchip=L.chipset),L.cobaltAppVersion&&(this.Q4.ccappver=L.cobaltAppVersion),L.firmwareVersion&&(this.Q4.cfrmver=L.firmwareVersion),L.deviceYear&&(this.Q4.crqyear= L.deviceYear)}else this.G.c=h.c||"web",this.G.cver=h.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=t?this.W||XOn(this)&&t.loaderUrl?t.loaderUrl||"":this.eh:this.W||XOn(this)&&h.loaderUrl?DH("",h.loaderUrl):this.eh;this.W&&g.t3("yt.embedded_player.embed_url",this.loaderUrl);this.Y=e6(this.loaderUrl,Utp);L=this.loaderUrl;var V=V===void 0?!1:V;this.BL=uL(e6(L,Ct6),L,V,"Trusted Ad Domain URL");this.y4=B2(!1,h.privembed);this.protocol=this.eh.indexOf("http:")===0?"http":"https";this.Xv=HtL((t? t.customBaseYoutubeUrl:h.BASE_YT_URL)||"")||HtL(this.eh)||this.protocol+"://www.youtube.com/";V=t?t.eventLabel:h.el;L="detailpage";V==="adunit"?L=this.W?"embedded":"detailpage":V==="embedded"||this.Y?L=P2(L,V,MSp):V&&(L="embedded");this.gU=L;Gqp();V=null;L=t?t.playerStyle:h.ps;z=g.jE(FOL,L);!L||z&&!this.Y||(V=L);this.playerStyle=V;this.U=g.jE(FOL,this.playerStyle);this.houseBrandUserStatus=t==null?void 0:t.houseBrandUserStatus;this.x8=this.U&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Xo=!this.x8;this.Ne=B2(!1,h.disableplaybackui);this.disablePaidContentOverlay=B2(!1,t==null?void 0:t.disablePaidContentOverlay);this.disableSeek=B2(!1,t==null?void 0:t.disableSeek);this.enableSpeedOptions=(t==null?void 0:t.enableSpeedOptions)||(l_().defaultPlaybackRate?Kw||g.A7||a9?g.Lw&&CS("20")||g.wq&&CS("4")||g.xk&&CS("11")||ni():!(g.xk&&!g.Ki("chrome")||Kw||g.Ki("android")||g.Ki("silk")):!1);this.f1=B2(!1,h.enable_faster_speeds);var l;this.supportsVarispeedExtendedFeatures=(l=t==null?void 0: t.supportsVarispeedExtendedFeatures)!=null?l:!1;this.T=B2(this.playerStyle==="blazer",h.is_html5_mobile_device||t&&t.isMobileDevice);this.lP=Tz()||Sa();this.Gu=this.N("mweb_allow_background_playback")?!1:this.T&&!this.U;this.X5=XS();this.PA=g.EZ;var H;this.sW=!!(t==null?0:(H=t.embedsHostFlags)==null?0:H.optOutApiDeprecation);this.PL=this.N("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var w;t?t.hideInfo!==void 0&&(w=!t.hideInfo):w=h.showinfo;this.q3=g.kk(this)&&!this.sW||B2(!OZ(this)&& !nw(this)&&!this.U,w);this.Lq=t?!!t.mobileIphoneSupportsInlinePlayback:B2(!1,h.playsinline);l=this.T&&fw&&$k!=null&&$k>0&&$k<=2.3;H=t?t.useNativeControls:h.use_native_controls;this.C=g.kk(this)&&this.T;w=this.T&&!this.C;H=g.Ti(this)||!l&&B2(w,H)?"3":"1";this.disableOrganicUi=!(t==null||!t.disableOrganicUi);w=t?t.controlsType:h.controls;this.controlsType=this.disableOrganicUi||w==="0"||w===0?"0":H;this.nI=this.T;this.color=P2("red",t?t.progressBarColor:h.color,s03);this.IG=this.controlsType==="3"; this.Ds=!this.W;this.n3=(H=!this.Ds&&!nw(this)&&!this.x8&&!this.U&&!OZ(this))&&!this.IG&&this.controlsType==="1";this.m$=g.AU(this)&&H&&this.controlsType==="0"&&!this.n3&&!(t==null?0:t.embedsEnableEmc3ds);this.u9=this.aM=l;this.Im=(this.controlsType==="3"||this.T||B2(!1,h.use_media_volume))&&!this.C;this.An=fi&&!g.Ob(601)?!1:!0;this.xm=this.W||!1;this.dP=nw(this)?"":(this.loaderUrl||h.post_message_origin||"").substring(0,128);this.widgetReferrer=DH("",t?t.widgetReferrer:h.widget_referrer);var W;t? t.disableCastApi&&(W=!1):W=h.enablecastapi;W=!this.Y||B2(!0,W);l=!0;t&&t.disableMdxCast&&(l=!1);this.JH=this.N("enable_cast_for_web_unplugged")&&g.SI(this)&&l||g.rP(this)&&l||W&&l&&this.controlsType==="1"&&!this.T&&(nw(this)||g.AU(this)||g.I9(this));this.Gt=!!window.document.pictureInPictureEnabled||yb();W=t?!!t.supportsAutoplayOverride:B2(!1,h.autoplayoverride);this.fC=!(this.T&&!g.kk(this))&&!g.Ki("nintendo wiiu")||W;this.D9=(t?!!t.enableMutedAutoplay:B2(!1,h.mutedautoplay))&&!1;W=(nw(this)||OZ(this))&& this.playerStyle==="blazer";this.If=t?!!t.disableFullscreen:!B2(!0,h.fs);l=g.gK(g.R9(this))&&g.kk(this);this.MD=!this.If&&(W||g.le())&&!l;this.Bw=this.N("html5_picture_in_picture_logging_onresize");var y;this.nV=(y=g.Sk(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?y:.33;this.wd=this.N("html5_picture_in_picture_blocking_onresize");this.tj=this.N("html5_picture_in_picture_blocking_ontimeupdate");this.ip=this.N("html5_picture_in_picture_blocking_document_fullscreen");this.hj= this.N("html5_picture_in_picture_blocking_standard_api");y=aF()&&CS(58)&&!Sa();W=Ex||typeof MediaSource==="undefined";this.tV=this.N("uniplayer_block_pip")&&(y||W)||this.wd||this.tj||this.hj;y=g.kk(this)&&!this.sW;var X;t?t.disableRelatedVideos!==void 0&&(X=!t.disableRelatedVideos):X=h.rel;this.fn=y||B2(!this.U,X);this.oM=B2(!1,t?t.enableContentOwnerRelatedVideos:h.co_rel);this.L=Sa()&&$k>0&&$k<=4.4?"_top":"_blank";this.Aa=g.I9(this);this.MS=B2(this.playerStyle==="blazer",t?t.enableCsiLogging:h.enablecsi); switch(this.playerStyle){case "blogger":X="bl";break;case "gmail":X="gm";break;case "gac":X="ga";break;case "ads-preview":X="ap";break;case "books":X="gb";break;case "docs":case "flix":X="gd";break;case "duo":X="gu";break;case "google-live":X="gl";break;case "google-one":X="go";break;case "play":case "play-ads":X="gp";break;case "chat":X="hc";break;case "hangouts-meet":X="hm";break;case "photos-edu":case "picasaweb":X="pw";break;default:X="yt"}this.AQ=X;this.R0=DH("",t?t.authorizedUserIndex:h.authuser); this.Hq=g.kk(this)&&(this.y4||!XmL()||this.lP);var U;t?t.disableWatchLater!==void 0&&(U=!t.disableWatchLater):U=h.showwatchlater;this.Y1=((X=!this.Hq)||!!this.R0&&X)&&B2(!this.x8,this.Y?U:void 0);this.sX=t?t.isMobileDevice||!!t.disableKeyboardControls:B2(!1,h.disablekb);this.loop=B2(!1,h.loop);this.pageId=DH("",t?t.initialDelegatedSessionId:h.pageid);this.xS=B2(!0,h.canplaylive);this.tQ=B2(!1,h.livemonitor);this.disableSharing=B2(this.U,t?t.disableSharing:h.ss);(U=t&&this.N("fill_video_container_size_override_from_wpcc")? t.videoContainerOverride:h.video_container_override)?(X=U.split("x"),X.length!==2?U=null:(U=Number(X[0]),X=Number(X[1]),U=isNaN(U)||isNaN(X)||U*X<=0?null:new g.Se(U,X))):U=null;this.Pu=U;this.mute=t?!!t.startMuted:B2(!1,h.mute);this.storeUserVolume=!this.mute&&B2(this.controlsType!=="0",t?t.storeUserVolume:h.store_user_volume);U=t?t.annotationsLoadPolicy:h.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:P2(void 0,U,Bc);this.captionsLanguagePreference=t?t.captionsLanguagePreference|| "":DH("",h.cc_lang_pref);U=P2(2,t?t.captionsLanguageLoadPolicy:h.cc_load_policy,Bc);this.controlsType==="3"&&U===2&&(U=3);this.w4=U;this.Vb=t?t.hl||"en_US":DH("en_US",h.hl);this.region=t?t.contentRegion||"US":DH("US",h.cr);this.hostLanguage=t?t.hostLanguage||"en":DH("en",h.host_language);this.K1=!this.y4&&Math.random()=480;this.schedule=new dG(W,new Ttr(this.experiments),q);g.f(this,this.schedule);var C;this.enableSafetyMode=(C=t==null?void 0:t.initialEnableSafetyMode)!=null?C:B2(!1,h.enable_safety_mode);q=this.Ne?!1:nw(this)&&this.playerStyle!== "blazer";var d;t?t.disableAutonav!=null&&(d=!t.disableAutonav):d=h.allow_autonav;this.R7=B2(q,!this.x8&&d);this.sendVisitorIdHeader=t?!!t.sendVisitorIdHeader:B2(!1,h.send_visitor_id_header);var Q;this.playerStyle==="docs"&&(t?Q=t.disableNativeContextMenu:Q=h.disable_native_context_menu);this.disableNativeContextMenu=B2(!1,Q);this.sy=qo(this)&&this.N("enable_skip_intro_button");this.embedConfig=DH("",t?t.serializedEmbedConfig:h.embed_config);this.Wm=ie(h,g.kk(this));this.S=this.Wm==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(t==null||!t.embedsErrorLinks);this.jf=B2(!1,h.full_window);var J;this.JQ=!((J=this.webPlayerContextConfig)==null?0:J.chromeless);var e;this.livingRoomAppMode=P2("LIVING_ROOM_APP_MODE_UNSPECIFIED",h.living_room_app_mode||(t==null?void 0:(e=t.device)==null?void 0:e.livingRoomAppMode),bKW);var v;d=mJ(NaN,t==null?void 0:(v=t.device)==null?void 0:v.deviceYear);isNaN(d)||(this.deviceYear=d);this.transparentBackground=t?!!t.transparentBackground:B2(!1,h.transparent_background);this.showMiniplayerButton= t?!!t.showMiniplayerButton:B2(!1,h.show_miniplayer_button);var E;g.kk(this)&&!(t==null?0:(E=t.embedsHostFlags)==null?0:E.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=t?!!t.externalFullscreen:B2(!1,h.external_fullscreen);this.showMiniplayerUiWhenMinimized=t?!!t.showMiniplayerUiWhenMinimized:B2(!1,h.use_miniplayer_ui);var T;this.qS=(T=h.show_loop_video_toggle)!=null?T:!0;this.dJ=Math.random()<1E-4;this.Bi=h.onesie_hot_config||(t==null?0:t.onesieHotConfig)?new LOL(h.onesie_hot_config, t==null?void 0:t.onesieHotConfig):void 0;this.isTectonic=t?!!t.isTectonic:!!h.isTectonic;this.playerCanaryState=Y;this.playerCanaryStage=t==null?void 0:t.canaryStage;this.XI=new WOp;g.f(this,this.XI);this.datasyncId=(t==null?void 0:t.datasyncId)||g.Ey("DATASYNC_ID");this.bB=g.Ey("LOGGED_IN",!1);this.uM=(t==null?void 0:t.allowWoffleManagement)||!1;this.s0=Infinity;this.LN=NaN;this.livingRoomPoTokenId=t==null?void 0:t.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.Cr=!0:this.Cr=Math.random()* 100=0&&h0&&h.dJ&&(L.sort(),g.bc(new g.Ea("Player client parameters changed after startup",L)));h.userAge=mJ(h.userAge,t.user_age);h.lZ=DH(h.lZ,t.user_display_email);h.userDisplayImage=DH(h.userDisplayImage,t.user_display_image);g.pV(h.userDisplayImage)||(h.userDisplayImage= "");h.userDisplayName=DH(h.userDisplayName,t.user_display_name);h.qW=DH(h.qW,t.user_gender);h.csiPageType=DH(h.csiPageType,t.csi_page_type);h.csiServiceName=DH(h.csiServiceName,t.csi_service_name);h.MS=B2(h.MS,t.enablecsi);h.pageId=DH(h.pageId,t.pageid);if(Y=t.enabled_engage_types)h.enabledEngageTypes=new Set(Y.split(","));t.living_room_session_po_token&&(h.mK=t.living_room_session_po_token.toString())}; tx=function(h,t){return!h.U&&aF()&&CS(55)&&h.controlsType==="3"&&!t}; g.iC=function(h){h=Pc(h.Xv);return h==="www.youtube-nocookie.com"?"www.youtube.com":h}; gf=function(h,t,Y){return h.protocol+"://i1.ytimg.com/vi/"+t+"/"+(Y||"hqdefault.jpg")}; YD=function(h){return nw(h)&&!g.SI(h)}; g.Ti=function(h){return h.N("html5_local_playsinline")?fi&&!g.Ob(602)&&!("playsInline"in l_()):fi&&!h.Lq||g.Ki("nintendo wiiu")?!0:!1}; Hc=function(h){return h.G.c}; g.z4=function(h){return/^TVHTML5/.test(Hc(h))}; g.LM=function(h){return Hc(h)==="TVHTML5"}; XOn=function(h){return Hc(h)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; ZKW=function(h){return h.G.cmodel==="CHROMECAST ULTRA/STEAK"||h.G.cmodel==="CHROMECAST/STEAK"}; g.qD=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; qo=function(h){return/web/i.test(Hc(h))}; g.zH=function(h){return Hc(h).toUpperCase()==="WEB"}; D4=function(h){return Hc(h)==="WEB_KIDS"}; g.SI=function(h){return Hc(h)==="WEB_UNPLUGGED"}; V4=function(h){return Hc(h)==="TVHTML5_UNPLUGGED"}; g.LV=function(h){return g.SI(h)||Hc(h)==="TV_UNPLUGGED_CAST"||V4(h)}; g.rP=function(h){return Hc(h)==="WEB_REMIX"}; g.ND=function(h){return Hc(h)==="WEB_MUSIC_INTEGRATIONS"}; g.lC=function(h){return Hc(h)==="WEB_EMBEDDED_PLAYER"}; g.wf=function(h){return(h.deviceIsAudioOnly||!g.wq||Ex||h.controlsType==="3"?!1:g.A7?h.W&&g.Ob(51):!0)||(h.deviceIsAudioOnly||!g.Lw||Ex||h.controlsType==="3"?!1:g.A7?h.W&&g.Ob(48):g.Ob(38))||(h.deviceIsAudioOnly||!g.xk||Ex||h.controlsType==="3"?!1:g.A7?h.W&&g.Ob(37):g.Ob(27))||!h.deviceIsAudioOnly&&g.H0&&!sGr()&&g.Ob(11)||!h.deviceIsAudioOnly&&g.Hq&&g.Ob("604.4")}; GwL=function(h){if(g.AU(h)&&fw)return!1;if(g.Lw){if(!g.Ob(47)||!g.Ob(52)&&g.Ob(51))return!1}else if(g.Hq)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; rin=function(h,t){return h.enabledEngageTypes.has(t.toString())||Q0L.includes(t)}; nw=function(h){return h.gU==="detailpage"}; g.AU=function(h){return h.gU==="embedded"}; W0=function(h){return h.gU==="leanback"}; OZ=function(h){return h.gU==="adunit"||h.playerStyle==="gvn"}; g.I9=function(h){return h.gU==="profilepage"}; g.kk=function(h){return h.W&&g.AU(h)&&!OZ(h)&&!h.U}; y4=function(h){if(!h.userDisplayImage)return"";var t=h.userDisplayImage.split("/");if(t.length===5)return h=t[t.length-1].split("="),h[1]="s20-c",t[t.length-1]=h.join("="),t.join("/");if(t.length===8)return t.splice(7,0,"s20-c"),t.join("/");if(t.length===9)return t[7]+="-s20-c",t.join("/");g.bc(new g.Ea("Profile image not a FIFE URL.",h.userDisplayImage));return h.userDisplayImage}; g.Xl=function(h){var t=g.iC(h);ciL.includes(t)&&(t="www.youtube.com");return h.protocol+"://"+t}; g.Up=function(h,t){t=t===void 0?"":t;if(h.xQ){var Y=new VT,L,q=h.xQ();q.signedOut?L="":q.token?L=q.token:q.pendingResult.then(function(z){q.signedOut?Y.resolve(""):Y.resolve(z.token)},function(z){g.bc(new g.Ea("b189348328_oauth_callback_failed",{error:z})); Y.resolve(t)}); return L!==void 0?dj(L):new bZ(Y)}return dj(t)}; CM=function(h,t){t=t===void 0?"":t;return h.bB?jf(!0):GB(dx(jf(g.Up(h,t)),function(Y){return jf(!!Y)}),function(){return jf(!1)})}; uJ3=function(h,t){h.M6=t;var Y;(Y=h.M6)==null||dx(Y,function(L){h.nL=L},function(){h.M6=void 0})}; Pc=function(h){var t=g.VC(h);return(h=Number(g.zF(h)[4]||null)||null)?t+":"+h:t}; MD=function(h,t){t=t===void 0?!1:t;var Y=b_[h],L=eUL[Y],q=JiW[h];if(!q||!L)return null;t=new sF(t?q.height:q.width,t?q.width:q.height,q.fps);L=J5(L,t,Y);return new ou(h,L,{video:t,Lb:q.bitrate/8})}; vGL=function(h){var t=eUL[b_[h]],Y=pO1[h];return Y&&t?new ou(h,t,{audio:new CA(Y.audioSampleRate,Y.numChannels)}):null}; Fl=function(h){this.G=h}; sp=function(h,t,Y,L){if(Y)return oF();Y={};var q=l_();t=g.b(t);for(var z=t.next();!z.done;z=t.next())if(z=z.value,h.canPlayType(q,z.getInfo().mimeType)||L){var V=z.G.video.quality;if(!Y[V]||Y[V].getInfo().A7())Y[V]=z}h=[];Y.auto&&h.push(Y.auto);L=g.b(j2);for(q=L.next();!q.done;q=L.next())(q=Y[q.value])&&h.push(q);return h.length?dj(h):oF()}; KOW=function(h){this.itag=h.itag;this.url=h.url;this.codecs=h.codecs;this.width=h.width;this.height=h.height;this.fps=h.fps;this.bitrate=h.bitrate;var t;this.T=((t=h.audioItag)==null?void 0:t.split(","))||[];this.Bg=h.Bg;this.EX=h.EX||"";this.j4=h.j4;this.audioChannels=h.audioChannels;this.G=""}; auL=function(h,t,Y,L){t=t===void 0?!1:t;Y=Y===void 0?!0:Y;L=L===void 0?{}:L;var q={};h=g.b(h);for(var z=h.next();!z.done;z=h.next()){z=z.value;if(t&&MediaSource&&MediaSource.isTypeSupported){var V=z.type;z.audio_channels&&(V=V+"; channels="+z.audio_channels);if(!MediaSource.isTypeSupported(V)){L[z.itag]="tpus";continue}}if(Y||!z.drm_families||z.eotf!=="smpte2084"&&z.eotf!=="arib-std-b67"){V=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},H=z.type.match(/codecs="([^"]*)"/); H=H?H[1]:"";z.audio_track_id&&(V=new g.G9(z.name,z.audio_track_id,!!z.is_default));var w=z.eotf;z=new KOW({itag:z.itag,url:z.url,codecs:H,width:Number(z.width),height:Number(z.height),fps:Number(z.fps),bitrate:Number(z.bitrate),audioItag:z.audio_itag,Bg:w?l[w]:void 0,EX:z.drm_families,j4:V,audioChannels:Number(z.audio_channels)});q[z.itag]=q[z.itag]||[];q[z.itag].push(z)}else L[z.itag]="enchdr"}return q}; xtp=function(h,t,Y,L,q){this.S=h;this.T=t;this.X=Y;this.cpn=L;this.U=q;this.W=0;this.G=""}; EGc=function(h,t){h.S.some(function(Y){var L;return((L=Y.j4)==null?void 0:L.getId())===t}); h.G=t}; j5=function(h,t,Y){h.cpn&&(t=g.Xz(t,{cpn:h.cpn}));Y&&(t=g.Xz(t,{paired:Y}));return t}; kwL=function(h,t){h=h.itag.toString();t!==null&&(h+=t.itag.toString());return h}; OKL=function(h){for(var t=[],Y=[],L=g.b(h.T),q=L.next();!q.done;q=L.next())q=q.value,q.bitrate<=h.W?t.push(q):Y.push(q);t.sort(function(z,V){return V.bitrate-z.bitrate}); Y.sort(function(z,V){return z.bitrate-V.bitrate}); h.T=t.concat(Y)}; ZJ=function(h,t,Y){this.G=h;this.T=t;this.expiration=Y;this.e4=null}; nGL=function(h,t){if(!(Ex||OA()||EA()))return null;h=auL(t,h.N("html5_filter_fmp4_in_hls"));if(!h)return null;t=[];for(var Y={},L=g.b(Object.keys(h)),q=L.next();!q.done;q=L.next()){q=g.b(h[q.value]);for(var z=q.next();!z.done;z=q.next()){var V=z.value;V.j4&&(z=V.j4.getId(),Y[z]||(V=new g.Ch(z,V.j4),Y[z]=V,t.push(V)))}}return t.length>0?t:null}; SjL=function(h,t,Y,L,q,z,V){if(!(Ex||OA()||EA()))return oF();var l={},H=fub(Y),w=auL(Y,h.N("html5_filter_fmp4_in_hls"),h.X.C,l);if(!w)return V({noplst:1}),oF();$tp(w);Y={};var W=(Y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Y),y;Y=[];var X=[],U=[],C=null,d="";L=L&&L.match(/hls_timedtext_playlist/)?new KOW({itag:"0",url:L,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,j4:new g.G9("English","en",!1)}):null;for(var Q=g.b(Object.keys(w)),J=Q.next();!J.done;J=Q.next())if(J=J.value,!h.N("html5_disable_drm_hfr_1080")|| J!=="383"&&J!=="373"){J=g.b(w[J]);for(var e=J.next();!e.done;e=J.next())if(e=e.value,e.width){for(var v=g.b(e.T),E=v.next();!E.done;E=v.next())if(E=E.value,w[E]){e.G=E;break}e.G||(e.G=T9L(w,e));if(v=w[e.G])if(Y.push(e),e.EX==="fairplay"&&(y=W),E="",e.Bg==="PQ"?E="smpte2084":e.Bg==="HLG"&&(E="arib-std-b67"),E&&(d=E),U.push(Ai3(v,[e],L,z,e.itag,e.width,e.height,e.fps,H,void 0,void 0,y,E)),!C||e.width*e.height*e.fps>C.width*C.height*C.fps)C=e}else X.push(e)}else l[J]="disdrmhfr";U.reduce(function(T, hr){return hr.getInfo().isEncrypted()&&T},!0)&&(y=W); q=Math.max(q,0);W=C||{};w=W.fps===void 0?0:W.fps;C=W.width===void 0?0:W.width;W=W.height===void 0?0:W.height;Q=h.N("html5_native_audio_track_switching");U.push(Ai3(X,Y,L,z,"93",C,W,w,H,"auto",q,y,d,Q));Object.entries(l).length&&V(l);return sp(h.X,U,tx(h,t),!1)}; Ai3=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U){for(var C=0,d="",Q=g.b(h),J=Q.next();!J.done;J=Q.next())J=J.value,d||(d=J.itag),J.audioChannels&&J.audioChannels>C&&(C=J.audioChannels,d=J.itag);q=new ou(q,"application/x-mpegURL",{audio:new CA(0,C),video:new sF(z,V,l,null,void 0,w,void 0,X),EX:y,DF:d});h=new xtp(h,t,Y?[Y]:[],L,!!U);h.W=W?W:1369843;return new ZJ(q,h,H)}; fub=function(h){h=g.b(h);for(var t=h.next();!t.done;t=h.next())if(t=t.value,t.url&&(t=t.url.split("expire/"),!(t.length<=1)))return+t[1].split("/")[0];return NaN}; T9L=function(h,t){for(var Y=g.b(Object.keys(h)),L=Y.next();!L.done;L=Y.next()){L=L.value;var q=h[L][0];if(!q.width&&q.EX===t.EX&&!q.audioChannels)return L}return""}; $tp=function(h){for(var t=new Set,Y=g.b(Object.values(h)),L=Y.next();!L.done;L=Y.next())L=L.value,L.length&&(L=L[0],L.height&&L.codecs.startsWith("vp09")&&t.add(L.height));Y=[];if(t.size){L=g.b(Object.keys(h));for(var q=L.next();!q.done;q=L.next())if(q=q.value,h[q].length){var z=h[q][0];z.height&&t.has(z.height)&&!z.codecs.startsWith("vp09")&&Y.push(q)}}t=g.b(Y);for(Y=t.next();!Y.done;Y=t.next())delete h[Y.value]}; bC=function(h,t){this.G=h;this.T=t}; Iuc=function(h,t,Y,L){var q=[];Y=g.b(Y);for(var z=Y.next();!z.done;z=Y.next()){var V=z.value;if(V.url){z=new g.Es(V.url,!0);if(V.s){var l=z,H=V.sp,w=TMc(decodeURIComponent(V.s));l[N[8]](H,encodeURIComponent(w))}l=g.b(Object.keys(L));for(H=l.next();!H.done;H=l.next())H=H.value,z.set(H,L[H]);V=xW(V.type,V.quality,V.itag,V.width,V.height);q.push(new bC(V,z))}}return sp(h.X,q,tx(h,t),!1)}; ob=function(h,t){this.G=h;this.T=t}; RUr=function(h,t,Y){var L=[];Y=g.b(Y);for(var q=Y.next();!q.done;q=Y.next())if((q=q.value)&&q.url){var z=xW(q.type,"medium","0");L.push(new ob(z,q.url))}return sp(h.X,L,tx(h,t),!1)}; B9n=function(h,t){var Y=[],L=xW(t.type,"auto",t.itag);Y.push(new ob(L,t.url));return sp(h.X,Y,!1,!0)}; mti=function(h){return h&&PtL[h]?PtL[h]:null}; Dtc=function(h){switch(h){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return h;default:return"sabr.config"}}; hqD=function(h){if(h=h.commonConfig)this.url=h.url,this.urlQueryOverride=h.urlQueryOverride,h.ustreamerConfig&&(this.qd=MA(h.ustreamerConfig)||void 0)}; tJL=function(h,t){var Y;if(t=t==null?void 0:(Y=t.watchEndpointSupportedOnesieConfig)==null?void 0:Y.html5PlaybackOnesieConfig)h.p9=new hqD(t)}; g.df=function(h){h=h===void 0?{}:h;this.languageCode=h.languageCode||"";this.languageName=h.languageName||null;this.kind=h.kind||"";this.name=h.name===void 0?null:h.name;this.displayName=h.displayName||null;this.id=h.id||null;this.G=h.is_servable||!1;this.isTranslateable=h.is_translateable||!1;this.url=h.url||null;this.vssId=h.vss_id||"";this.isDefault=h.is_default||!1;this.translationLanguage=h.translationLanguage||null;this.xtags=h.xtags||"";this.captionId=h.captionId||""}; g.Q4=function(h){var t={languageCode:h.languageCode,languageName:h.languageName,displayName:g.GH(h),kind:h.kind,name:h.name,id:h.id,is_servable:h.G,is_default:h.isDefault,is_translateable:h.isTranslateable,vss_id:h.vssId};h.xtags&&(t.xtags=h.xtags);h.captionId&&(t.captionId=h.captionId);h.translationLanguage&&(t.translationLanguage=h.translationLanguage);return t}; g.rf=function(h){return h.translationLanguage?h.translationLanguage.languageCode:h.languageCode}; g.iFL=function(h){var t=h.vssId;h.translationLanguage&&t&&(t="t"+t+"."+g.rf(h));return t}; g.GH=function(h){var t=[];if(h.displayName)t.push(h.displayName);else{var Y=h.languageName||"";t.push(Y);h.kind==="asr"&&Y.indexOf("(")===-1&&t.push(" (Automatic Captions)");h.name&&t.push(" - "+h.name)}h.translationLanguage&&t.push(" >> "+h.translationLanguage.languageName);return t.join("")}; qnr=function(h,t,Y,L){h||(h=t&&gfW.hasOwnProperty(t)&&Ynp.hasOwnProperty(t)?Ynp[t]+"_"+gfW[t]:void 0);t=h;if(!t)return null;h=t.match(LG$);if(!h||h.length!==5)return null;if(h=t.match(LG$)){var q=Number(h[3]),z=[7,8,10,5,6];h=!(Number(h[1])===1&&q===8)&&z.indexOf(q)>=0}else h=!1;return Y||L||h?t:null}; c0=function(h,t){for(var Y={},L=g.b(Object.keys(zqL)),q=L.next();!q.done;q=L.next()){q=q.value;var z=t?t+q:q;z=h[z+"_webp"]||h[z];g.pV(z)&&(Y[zqL[q]]=z)}return Y}; uC=function(h){var t={};if(!h||!h.thumbnails)return t;h=h.thumbnails.filter(function(l){return!!l.url}); h.sort(function(l,H){return l.width-H.width||l.height-H.height}); for(var Y=g.b(Object.keys(VJ1)),L=Y.next();!L.done;L=Y.next()){var q=Number(L.value);L=VJ1[q];for(var z=g.b(h),V=z.next();!V.done;V=z.next())if(V=V.value,V.width>=q){q=NUL(V.url);g.pV(q)&&(t[L]=q);break}}(h=h.pop())&&h.width>=1280&&(h=NUL(h.url),g.pV(h)&&(t["maxresdefault.jpg"]=h));return t}; NUL=function(h){return h.startsWith("//")?"https:"+h:h}; e5=function(h){return h&&h.baseUrl||""}; Jx=function(h){h=g.Rp(h);for(var t=g.b(Object.keys(h)),Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L=h[Y];h[Y]=Array.isArray(L)?L[0]:L}return h}; l91=function(h,t){h.botguardData=t.playerAttestationRenderer.botguardData;t=t.playerAttestationRenderer.challenge;t!=null&&(h.WA=t)}; WGr=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L=Y.interstitials.map(function(V){var l=g.A(V,HFW);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(V=g.A(V,wXp))return Object.assign({is_yto_interstitial:!0},SR(V))}); L=g.b(L);for(var q=L.next();!q.done;q=L.next())switch(q=q.value,Y.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":h.interstitials=h.interstitials.concat({time:0,playerVars:q,zI:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":h.interstitials=h.interstitials.concat({time:0x7ffffffffffff,playerVars:q,zI:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var z=Number(Y.podConfig.timeToInsertAtMillis);h.interstitials=h.interstitials.concat({time:z,playerVars:q, zI:z===0?5:7})}}}; yj6=function(h,t){if(t=t.find(function(Y){return!(!Y||!Y.tooltipRenderer)}))h.tooltipRenderer=t.tooltipRenderer}; XXD=function(h,t){t.subscribeCommand&&(h.subscribeCommand=t.subscribeCommand);t.unsubscribeCommand&&(h.unsubscribeCommand=t.unsubscribeCommand);t.addToWatchLaterCommand&&(h.addToWatchLaterCommand=t.addToWatchLaterCommand);t.removeFromWatchLaterCommand&&(h.removeFromWatchLaterCommand=t.removeFromWatchLaterCommand);t.getSharePanelCommand&&(h.getSharePanelCommand=t.getSharePanelCommand)}; Ux6=function(h,t){t!=null?(h.yU=t,h.Ye=!0):(h.yU="",h.Ye=!1)}; pM=function(h,t){this.type=h||"";this.id=t||""}; v0=function(h){return new pM(h.substring(0,2),h.substring(2))}; KM=function(h,t){this.SM=h;this.author="";this.t6=null;this.playlistLength=0;this.G=this.sessionData=null;this.Y={};this.title="";if(t){this.author=t.author||t.playlist_author||"";this.title=t.playlist_title||"";if(h=t.session_data)this.sessionData=Tq(h,"&");var Y;this.G=((Y=t.thumbnail_ids)==null?void 0:Y.split(",")[0])||null;this.Y=c0(t,"playlist_");this.videoId=t.video_id||void 0;if(Y=t.list)switch(t.listType){case "user_uploads":this.playlistId=(new pM("UU","PLAYER_"+Y)).toString();break;default:if(h= t.playlist_length)this.playlistLength=Number(h)||0;this.playlistId=v0(Y).toString();if(t=t.video)this.videoId=(t[0]||null).video_id||void 0}else t.playlist&&(this.playlistLength=t.playlist.toString().split(",").length)}}; ab=function(h,t){this.SM=h;this.PD=this.author="";this.t6=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.a6=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(t){this.ariaLabel=t.aria_label||void 0;this.author=t.author||"";this.PD=t.PD||"";if(h=t.endscreen_autoplay_session_data)this.t6=Tq(h,"&");this.EQ=t.EQ;this.isLivePlayback=t.live_playback==="1";this.isUpcoming=!!t.isUpcoming;if(h=t.length_seconds)this.lengthSeconds=typeof h==="string"?Number(h):h;this.lengthText= t.lengthText||"";this.a6=t.a6||"";this.publishedTimeText=t.publishedTimeText||void 0;if(h=t.session_data)this.sessionData=Tq(h,"&");this.shortViewCount=t.short_view_count_text||void 0;this.Y=c0(t);this.title=t.title||"";this.videoId=t.docid||t.video_id||t.videoId||t.id||void 0;this.watchUrl=t.watchUrl||void 0}}; C0i=function(h){var t,Y,L=(t=h.getWatchNextResponse())==null?void 0:(Y=t.contents)==null?void 0:Y.twoColumnWatchNextResults,q,z,V,l,H;h=(q=h.getWatchNextResponse())==null?void 0:(z=q.playerOverlays)==null?void 0:(V=z.playerOverlayRenderer)==null?void 0:(l=V.endScreen)==null?void 0:(H=l.watchNextEndScreenRenderer)==null?void 0:H.results;if(!h){var w,W;h=L==null?void 0:(w=L.endScreen)==null?void 0:(W=w.endScreen)==null?void 0:W.results}return h}; g.Ep=function(h){var t,Y,L;h=g.A((t=h.getWatchNextResponse())==null?void 0:(Y=t.playerOverlays)==null?void 0:(L=Y.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,xD);return g.A(h==null?void 0:h.playerBar,MJ1)}; FGi=function(h){this.G=h.playback_progress_0s_url;this.S=h.playback_progress_2s_url;this.T=h.playback_progress_10s_url}; sBi=function(){if(kD===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(t){}a:{try{var h=!!self.localStorage}catch(t){h=!1}if(h&&(h=g.r$(g.kI()+"::yt-player"))){kD=new ep(h);break a}kD=void 0}}return kD}; g.Op=function(){var h=sBi();if(!h)return{};try{var t=h.get("yt-player-lv");return JSON.parse(t||"{}")}catch(Y){return{}}}; g.jBr=function(h){var t=sBi();t&&(h=JSON.stringify(h),t.set("yt-player-lv",h))}; g.nM=function(h){return g.Op()[h]||0}; g.fM=function(h,t){var Y=g.Op();t!==Y[h]&&(t!==0?Y[h]=t:delete Y[h],g.jBr(Y))}; g.$D=function(h){return g.k(function(t){return t.return(g.Kj(ZFL(),h))})}; Ax=function(h,t,Y,L,q,z,V,l){var H,w,W,y,X,U;return g.k(function(C){switch(C.T){case 1:return H=g.nM(h),H===4?C.return(4):g.K(C,g.$L(),2);case 2:w=C.G;if(!w)throw g.Wq("wiac");if(!l||V===void 0){C.eM(3);break}return g.K(C,bF6(l,V),4);case 4:V=C.G;case 3:return W=Y.lastModified||"0",g.K(C,g.$D(w),5);case 5:return y=C.G,g.oc(C,6),TH++,g.K(C,g.bj(y,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",U3:!0},function(d){if(z!==void 0&&V!==void 0){var Q=""+h+"|"+t.id+"|"+W+"|"+String(z).padStart(10, "0");Q=g.oY(d.objectStore("media"),V,Q)}else Q=g.XH.resolve(void 0);var J=ofL(h,t.yx()),e=ofL(h,!t.yx()),v={fmts:dx1(L),format:Y||{}};J=g.oY(d.objectStore("index"),v,J);var E=L.downloadedEndTime===-1;v=E?d.objectStore("index").get(e):g.XH.resolve(void 0);var T={fmts:"music",format:{}};d=E&&q&&!t.yx()?g.oY(d.objectStore("index"),T,e):g.XH.resolve(void 0);return g.XH.all([d,v,Q,J]).then(function(hr){hr=g.b(hr);hr.next();hr=hr.next().value;TH--;var B=g.nM(h);if(B!==4&&E&&q||hr!==void 0&&g.GLL(hr.fmts))B= 1,g.fM(h,B);return B})}),8); case 8:return C.return(C.G);case 6:X=g.cW(C);TH--;U=g.nM(h);if(U===4)return C.return(U);g.fM(h,4);throw X;}})}; g.QB3=function(h){var t,Y;return g.k(function(L){if(L.T==1)return g.K(L,g.$L(),2);if(L.T!=3){t=L.G;if(!t)throw g.Wq("ri");return g.K(L,g.$D(t),3)}Y=L.G;return L.return(g.bj(Y,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(q){var z=IDBKeyRange.bound(h+"|",h+"~");return q.objectStore("index").getAll(z).then(function(V){return V.map(function(l){return l?l.format:{}})})}))})}; cji=function(h,t,Y,L,q){var z,V,l;return g.k(function(H){if(H.T==1)return g.K(H,g.$L(),2);if(H.T!=3){z=H.G;if(!z)throw g.Wq("rc");return g.K(H,g.$D(z),3)}V=H.G;l=g.bj(V,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(w){var W=""+h+"|"+t+"|"+Y+"|"+String(L).padStart(10,"0");return w.objectStore("media").get(W)}); return q?H.return(l.then(function(w){if(w===void 0)throw Error("No data from indexDb");return rj6(q,w)}).catch(function(w){throw new g.Ea("Error while reading chunk: "+w.name+", "+w.message); })):H.return(l)})}; g.GLL=function(h){return h?h==="music"?!0:h.includes("dlt=-1")||!h.includes("dlt="):!1}; ofL=function(h,t){return""+h+"|"+(t?"v":"a")}; dx1=function(h){var t={};return AT((t.dlt=h.downloadedEndTime.toString(),t.mket=h.maxKnownEndTime.toString(),t.avbr=h.averageByteRate.toString(),t))}; eq$=function(h){var t={},Y={};h=g.b(h);for(var L=h.next();!L.done;L=h.next()){var q=L.value,z=q.split("|");q.match(g.uCL)?(L=Number(z.pop()),isNaN(L)?Y[q]="?":(z=z.join("|"),(q=t[z])?(z=q[q.length-1],L===z.end+1?z.end=L:q.push({start:L,end:L})):t[z]=[{start:L,end:L}])):Y[q]="?"}h=g.b(Object.keys(t));for(L=h.next();!L.done;L=h.next())L=L.value,Y[L]=t[L].map(function(V){return V.start+"-"+V.end}).join(","); return Y}; S5=function(h){g.PD.call(this);this.G=null;this.S=new el;this.G=null;this.U=new Set;this.crossOrigin=h||""}; Jjb=function(h,t,Y){for(Y=Ib(h,Y);Y>=0;){var L=h.levels[Y];if(L.isLoaded(Rb(L,t))&&(L=g.B0(L,t)))return L;Y--}return g.B0(h.levels[0],t)}; vfL=function(h,t,Y){Y=Ib(h,Y);for(var L,q;Y>=0;Y--)if(L=h.levels[Y],q=Rb(L,t),!L.isLoaded(q)){L=h;var z=Y,V=z+"-"+q;L.U.has(V)||(L.U.add(V),L.S.enqueue(z,{mz:z,uf:q}))}pX3(h)}; pX3=function(h){if(!h.G&&!h.S.isEmpty()){var t=h.S.remove();h.G=KGL(h,t)}}; KGL=function(h,t){var Y=document.createElement("img");h.crossOrigin&&(Y.crossOrigin=h.crossOrigin);Y.src=h.levels[t.mz].K6(t.uf);Y.onload=function(){var L=t.mz,q=t.uf;h.G!==null&&(h.G.onload=null,h.G=null);L=h.levels[L];L.loaded.add(q);pX3(h);var z=L.columns*L.rows;q*=z;L=Math.min(q+z-1,L.MN()-1);q=[q,L];h.publish("l",q[0],q[1])}; return Y}; g.P0=function(h,t,Y,L){this.level=h;this.W=t;this.loaded=new Set;this.level=h;this.W=t;h=Y.split("#");this.width=Math.floor(Number(h[0]));this.height=Math.floor(Number(h[1]));this.frameCount=Math.floor(Number(h[2]));this.columns=Math.floor(Number(h[3]));this.rows=Math.floor(Number(h[4]));this.G=Math.floor(Number(h[5]));this.S=h[6];this.signature=h[7];this.videoLength=L}; Rb=function(h,t){return Math.floor(t/(h.columns*h.rows))}; g.B0=function(h,t){t>=h.f0()&&h.YY();var Y=Rb(h,t),L=h.columns*h.rows,q=t%L;t=q%h.columns;q=Math.floor(q/h.columns);var z=h.YY()+1-L*Y;if(z1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; a93=function(h,t,Y){return(h=h.levels[t])?h.gG(Y):-1}; Ib=function(h,t){var Y=h.W.get(t);if(Y)return Y;Y=h.levels.length;for(var L=0;L=t)return h.W.set(t,L),L;h.W.set(t,Y-1);return Y-1}; DJ=function(h,t,Y,L){Y=Y.split("#");Y=[Y[1],Y[2],0,Y[3],Y[4],-1,Y[0],""].join("#");g.P0.call(this,h,t,Y,0);this.T=null;this.X=L?2:0}; hL=function(h,t,Y,L){mA.call(this,h,0,void 0,t,!(L===void 0||!L));for(h=0;h50&&(t=Ajp.shift())&&qZ.delete(t),t=L),L!==t&&h.uX("ssei","dcpn_"+L+"_"+t+"_"+h.clientPlaybackNonce),t)}; Y$=function(h,t){var Y=t.raw_watch_next_response;if(!Y){var L=t.watch_next_response;L&&(Y=JSON.parse(L))}if(Y){h.X5=Y;var q=h.X5.playerCueRangeSet;q&&g.zZ(h,q);var z=h.X5.playerOverlays;if(z){var V=z.playerOverlayRenderer;if(V){var l=V.autonavToggle;l&&(h.autoplaySwitchButtonRenderer=g.A(l,Sn6),h.N("web_player_autonav_use_server_provided_state")&&Vt(h)&&(h.autonavState=h.autoplaySwitchButtonRenderer.enabled?2:1));var H=V.videoDetails;if(H){var w=H.embeddedPlayerOverlayVideoDetailsRenderer;var W=H.playerOverlayVideoDetailsRenderer; W&&(W.title&&(t.title=g.Lc(W.title)),W.subtitle&&(t.subtitle=g.Lc(W.subtitle)))}g.AU(h.SM)&&(h.Y1=!!V.addToMenu);I9b(h,V.shareButton);V.startPosition&&V.endPosition&&(h.progressBarStartPosition=V.startPosition,h.progressBarEndPosition=V.endPosition);var y=V.gatedActionsOverlayRenderer;y&&(h.m7=g.A(y,Rqb));var X,U,C,d=g.A((X=h.getWatchNextResponse())==null?void 0:(U=X.playerOverlays)==null?void 0:(C=U.playerOverlayRenderer)==null?void 0:C.infoPanel,BU3);if(d){h.aC=Number(d==null?void 0:d.durationMs)|| NaN;if(d==null?0:d.infoPanelOverviewViewModel)h.XI=d==null?void 0:d.infoPanelOverviewViewModel;if(d==null?0:d.infoPanelDetailsViewModel)h.LN=d==null?void 0:d.infoPanelDetailsViewModel}h.showSeekingControls=!!V.showSeekingControls}}var Q,J,e=(Q=h.getWatchNextResponse())==null?void 0:(J=Q.contents)==null?void 0:J.twoColumnWatchNextResults;if(e){var v=e.desktopOverlay&&g.A(e.desktopOverlay,P0L);v&&(v.suppressShareButton&&(h.showShareButton=!1),v.suppressWatchLaterButton&&(h.Y1=!1))}w&&mx6(h,t,w);var E= mJ(0,t.autoplay_count),T=h.getWatchNextResponse(),hr,B=(hr=T.contents)==null?void 0:hr.twoColumnWatchNextResults,q1,V6,zn,w3=(q1=T.playerOverlays)==null?void 0:(V6=q1.playerOverlayRenderer)==null?void 0:(zn=V6.autoplay)==null?void 0:zn.playerOverlayAutoplayRenderer,ii=C0i(h),r3,KL=(r3=T.contents)==null?void 0:r3.singleColumnWatchNextResults;if(KL){var h3;if(((h3=KL.autoplay)==null?0:h3.autoplay)&&!KL.playlist){var ky=KL.autoplay.autoplay.sets,F8={},EL=new ab(h.J()),mn=null,X8;if(ky){for(var Ts=g.b(ky), iv=Ts.next();!iv.done;iv=Ts.next()){var u=iv.value.autoplayVideoRenderer;if(u&&u.compactVideoRenderer){mn=u.compactVideoRenderer;break}}if(X8=ky[0].autoplayVideo){var Ew=X8.clickTrackingParams;Ew&&(F8.itct=Ew);F8.autonav="1";F8.playnext=String(E)}}else F8.feature="related-auto";var eE=g.A(X8,g.NZ);if(mn){EL.videoId=mn.videoId;var g3=mn.shortBylineText;g3&&(EL.author=g.Lc(g3));var rL=mn.title;rL&&(EL.title=g.Lc(rL))}else eE!=null&&eE.videoId&&(EL.videoId=eE.videoId);EL.t6=F8;h.suggestions=[];h.oM= EL}}if(ii){for(var G=[],tr=g.b(ii),Ad=tr.next();!Ad.done;Ad=tr.next()){var Vz=Ad.value,O0=void 0,Tn=null;if(Vz.endScreenVideoRenderer){var mL=Vz.endScreenVideoRenderer,DX=mL.title;Tn=new ab(h.J());Tn.videoId=mL.videoId;Tn.lengthSeconds=mL.lengthInSeconds||0;var kp=mL.publishedTimeText;kp&&(Tn.publishedTimeText=g.Lc(kp));var r=mL.shortBylineText;r&&(Tn.author=g.Lc(r));var Z=mL.shortViewCountText;Z&&(Tn.shortViewCount=g.Lc(Z));if(DX){Tn.title=g.Lc(DX);var c=DX.accessibility;if(c){var a=c.accessibilityData; a&&a.label&&(Tn.ariaLabel=a.label)}}var n=mL.navigationEndpoint;if(n){O0=n.clickTrackingParams;var WW=g.A(n,g.NZ),S=g.A(n,g.r7);WW?Tn.EQ=WW:S!=null&&(Tn.watchUrl=S.url)}var m=mL.thumbnailOverlays;if(m)for(var x=g.b(m),Jr=x.next();!Jr.done;Jr=x.next()){var fL=Jr.value.thumbnailOverlayTimeStatusRenderer;if(fL)if(fL.style==="LIVE"){Tn.isLivePlayback=!0;break}else if(fL.style==="UPCOMING"){Tn.isUpcoming=!0;break}}Tn.Y=uC(mL.thumbnail)}else if(Vz.endScreenPlaylistRenderer){var N1=Vz.endScreenPlaylistRenderer, ll=N1.navigationEndpoint;if(!ll)continue;var ui=g.A(ll,g.NZ);if(!ui)continue;var bi=ui.videoId;Tn=new KM(h.J());Tn.playlistId=N1.playlistId;Tn.playlistLength=Number(N1.videoCount)||0;Tn.G=bi||null;Tn.videoId=bi;var tf=N1.title;tf&&(Tn.title=g.Lc(tf));var ov=N1.shortBylineText;ov&&(Tn.author=g.Lc(ov));O0=ll.clickTrackingParams;Tn.Y=uC(N1.thumbnail)}Tn&&(O0&&(Tn.sessionData={itct:O0}),G.push(Tn))}h.suggestions=G}if(w3){h.BC=!!w3.preferImmediateRedirect;h.M6=h.M6||!!w3.webShowNewAutonavCountdown;h.tV= h.tV||!!w3.webShowBigThumbnailEndscreen;if(h.M6||h.tV){var av=B||null,Gn=new ab(h.J());Gn.videoId=w3.videoId;var bI=w3.videoTitle;if(bI){Gn.title=g.Lc(bI);var eL=bI.accessibility;if(eL){var J3=eL.accessibilityData;J3&&J3.label&&(Gn.ariaLabel=J3.label)}}var dL=w3.byline;dL&&(Gn.author=g.Lc(dL));var Vo=w3.publishedTimeText;Vo&&(Gn.publishedTimeText=g.Lc(Vo));var Gs=w3.shortViewCountText;Gs&&(Gn.shortViewCount=g.Lc(Gs));var hK=w3.thumbnailOverlays;if(hK)for(var Lu=g.b(hK),A3=Lu.next();!A3.done;A3=Lu.next()){var pH= A3.value.thumbnailOverlayTimeStatusRenderer;if(pH)if(pH.style==="LIVE"){Gn.isLivePlayback=!0;break}else if(pH.style==="UPCOMING"){Gn.isUpcoming=!0;break}else if(pH.style==="DEFAULT"&&pH.text){Gn.lengthText=g.Lc(pH.text);var cz=pH.text.accessibility;if(cz){var mV=cz.accessibilityData;mV&&mV.label&&(Gn.a6=mV.label||"")}break}}Gn.Y=uC(w3.background);var UV=w3.nextButton;if(UV){var Kf=UV.buttonRenderer;if(Kf){var tK=Kf.navigationEndpoint;if(tK){var iV=g.A(tK,g.NZ);iV&&(Gn.EQ=iV)}}}if(w3.topBadges){var VL= w3.topBadges[0];if(VL){var oL=g.A(VL,DxL);oL&&oL.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Gn.br5=!0)}}var v7=w3.alternativeTitle;v7&&(Gn.PD=g.Lc(v7));var Dm={autonav:"1",playnext:String(E)};Gn.playlistId&&(Dm.autoplay="1");if(av){var KR,iI,Cf,aV,Fv=(KR=av.autoplay)==null?void 0:(iI=KR.autoplay)==null?void 0:(Cf=iI.sets)==null?void 0:(aV=Cf[0])==null?void 0:aV.autoplayVideo;if(Fv){var g6=Fv.clickTrackingParams;g6&&(Dm.itct=g6);var s5=g.A(Fv,g.NZ);s5&&(Gn.HO=s5)}}else if(w3){var Y6,LR,qQ,z3=(Y6=w3.nextButton)== null?void 0:(LR=Y6.buttonRenderer)==null?void 0:(qQ=LR.navigationEndpoint)==null?void 0:qQ.clickTrackingParams;z3&&(Dm.itct=z3)}Dm.itct||(Dm.feature="related-auto");Gn.t6=Dm;h.suggestions||(h.suggestions=[]);h.oM=Gn}w3.countDownSecs!=null&&(h.fD=w3.countDownSecs*1E3);w3.countDownSecsForFullscreen!=null&&(h.Ga=w3.countDownSecsForFullscreen>=0?w3.countDownSecsForFullscreen*1E3:-1);h.N("web_autonav_color_transition")&&w3.watchToWatchTransitionRenderer&&(h.watchToWatchTransitionRenderer=g.A(w3.watchToWatchTransitionRenderer, h8p))}var j3=C0i(h);if(j3){var NG,Vp,yF,XM=j3==null?void 0:(NG=j3[0])==null?void 0:(Vp=NG.endScreenVideoRenderer)==null?void 0:(yF=Vp.navigationEndpoint)==null?void 0:yF.clickTrackingParams,ux=g.l6(h);XM&&ux&&(ux.sessionData={itct:XM})}h.X5.currentVideoThumbnail&&(h.Y=uC(h.X5.currentVideoThumbnail));var x6,EQ,k6,D0,eu,Mw=(x6=h.X5)==null?void 0:(EQ=x6.contents)==null?void 0:(k6=EQ.twoColumnWatchNextResults)==null?void 0:(D0=k6.results)==null?void 0:(eu=D0.results)==null?void 0:eu.contents;if(Mw&&Mw[1]){var JO, hH,OQ,dS,Zr=(JO=Mw[1].videoSecondaryInfoRenderer)==null?void 0:(hH=JO.owner)==null?void 0:(OQ=hH.videoOwnerRenderer)==null?void 0:(dS=OQ.thumbnail)==null?void 0:dS.thumbnails;Zr&&Zr.length&&(h.profilePicture=Zr[Zr.length-1].url)}var vB=tG(t),tH,Ui=(tH=h.getWatchNextResponse())==null?void 0:tH.onResponseReceivedEndpoints;if(Ui)for(var iF=g.b(Ui),pG=iF.next();!pG.done;pG=iF.next()){var vE=pG.value;g.A(vE,Hu)&&(h.MJ=g.A(vE,Hu));var YC=g.A(vE,tKp),EF=void 0;if((EF=YC)==null?0:EF.entityKeys)h.vp=YC.entityKeys|| [],YC.visibleOnLoadKeys&&(h.visibleOnLoadKeys=YC.visibleOnLoadKeys)}if(h.N("web_key_moments_markers")){var Lo=g.wu.getState().entities,Yc=g.$a("visibility_override","markersVisibilityOverrideEntity");var K$=AY(Lo,"markersVisibilityOverrideEntity",Yc);h.yG=(K$==null?void 0:K$.videoId)===(h.videoId||vB)&&(K$==null?0:K$.visibilityOverrideMarkersKey)?K$.visibilityOverrideMarkersKey:h.visibleOnLoadKeys;h.visibleOnLoadKeys=[].concat(g.p(h.yG))}}}; Vt=function(h){var t;return((t=h.autoplaySwitchButtonRenderer)==null?void 0:t.enabled)!==void 0}; Wu=function(h){return!!(h.S&&h.S.videoInfos&&h.S.videoInfos.length)}; g.sf=function(h){var t=h.C;h.N("html5_gapless_unlimit_format_selection")&&X$(h)&&(t=!1);var Y=!!h.G&&h.G.fZ,L=h.SM,q=h.Jf(),z=Uf(h),V=h.Y8,l=t,H=h.isOtf();t=h.kV();var w=h.tQ,W=h.getUserAudio51Preference(),y=CI(h),X=MZ(h),U=new K$6(L);if(L.pZ()||L.N("html5_logging_format_selection"))U.T=!0;U.Ne=z;U.Y8=V&&L.Y;U.Wm=W;g.Ki("windows nt 5.1")&&!g.Lw&&(U.aY=!0);if(z=q)z=g.wf(L)?GwL(L):!1;z&&(U.AQ=!0);l&&(U.aY=!0,U.Im=!0);H&&!L.N("html5_otf_prefer_vp9")&&(U.aY=!0);L.playerStyle==="picasaweb"&&(H&&(U.aY= !1),U.x8=!1);w&&(U.aY=!0);am(L.X,xQ.CHANNELS)&&(L.N("html5_enable_ac3")&&(U.W=!0),L.N("html5_enable_eac3")&&(U.X=!0),L.N("html5_enable_ac3_gapless")&&(U.gU=!0));L.N("html5_block_8k_hfr")&&(U.JQ=!0);U.U=g.Sk(L.experiments,"html5_max_selectable_quality_ordinal");U.C=g.Sk(L.experiments,"html5_min_selectable_quality_ordinal");a9&&(U.y4=480);if(Y||q)U.x8=!1;U.yG=!1;U.disableAv1=y;Y=Bo(L,U.G,void 0,U.disableAv1);Y>0&&Y<2160&&(Dd()||L.N("html5_format_hybridization"))&&(U.G.supportsChangeType=+Dd(),U.QP= Y);Y>=2160&&(U.R0=!0);tQr()&&!L.N("disable_av1_setting")&&(U.G.serveVp9OverAv1IfHigherRes=0,U.pn=!1);U.kV=t;U.Zx=g.kL||IF()&&!t?!1:!0;U.Y=L.N("html5_format_hybridization");U.MD=L.N("html5_disable_encrypted_vp9_live_non_2k_4k");U.Pq=X;F$(h)&&(U.dP=h.N("html5_prefer_language_over_codec"));EA()&&h.playerResponse&&h.playerResponse.playerConfig&&h.playerResponse.playerConfig.webPlayerConfig&&h.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(U.W=!0,U.X=!0);h.C&&h.isAd()&&(h.Bw&& (U.L=h.Bw),h.ip&&(U.S=h.ip));U.X5=h.isLivePlayback&&h.WM()&&h.SM.N("html5_drm_live_audio_51");U.tQ=h.sI;U.G$=!F$(h);return h.eh=U}; CI=function(h){return h.SM.N("html5_disable_av1")||h.N("html5_gapless_shorts_disable_av1")&&X$(h)?!0:!1}; inL=function(h){sH("drm_pb_s",void 0,h.L);h.lP||h.G&&eF(h.G);var t={};h.G&&(t=yer(h.Nf,g.sf(h),h.SM.X,h.G,function(Y){return h.publish("ctmp","fmtflt",Y)},!0,new Set)); t=new V5(t,h.SM,h.R3,h.useCobaltWidevine?EA()?j_(h):!1:!1,function(Y,L){h.Pm(Y,L)}); g.f(h,t);h.hj=!1;h.loading=!0;kQL(t,function(Y){sH("drm_pb_f",void 0,h.L);for(var L=g.b(Y),q=L.next();!q.done;q=L.next())switch(q=q.value,q.flavor){case "fairplay":q.lP=h.lP;q.Hp=h.Hp;q.mF=h.mF;break;case "widevine":q.MG=h.MG}h.n3=Y;if(h.n3.length>0&&(h.X=h.n3[0],h.SM.pZ())){Y={};L=g.b(Object.entries(h.X.G));for(q=L.next();!q.done;q=L.next()){var z=g.b(q.value);q=z.next().value;z=z.next().value;var V="unk";(q=q.match(/(.*)codecs="(.*)"/))&&(V=q[2]);Y[V]=z}h.Pm("drmProbe",Y)}h.JY()})}; gKL=function(h,t){if(t.length===0||ZK(h))return null;h.SM.X.S&&(Sd=!0);var Y=h.EX;var L=h.lengthSeconds,q=h.isLivePlayback,z=h.f6,V=h.SM,l=s6b(t);if(q||z){V=V.experiments;L=new ed("",V,!0);L.T=!z;L.fZ=!0;L.isManifestless=!0;L.isLive=!z;L.f6=z;t=g.b(t);for(q=t.next();!q.done;q=t.next()){var H=q.value;q=vo(H,Y);l=To(H);l=a5(l.Nk||H.url||"",l.TM,l.s);var w=l.get("id");w&&w.includes("%7E")&&(L.L=!0);var W=void 0;w=(W=V)==null?void 0:W.I0("html5_max_known_end_time_rebase");W=Number(H.targetDurationSec|| 5);H=Number(H.maxDvrDurationSec||14400);var y=Number(l.get("mindsq")||l.get("min_sq")||"0"),X=Number(l.get("maxdsq")||l.get("max_sq")||"0")||Infinity;L.uR=L.uR||y;L.e1=L.e1||X;var U=!au(q.mimeType);l&&rQ(L,new wQ(l,q,{BI:W,gH:U,Zu:H,uR:y,e1:X,DT:300,f6:z,rI:w}))}Y=L}else if(l==="FORMAT_STREAM_TYPE_OTF"){L=L===void 0?0:L;z=new ed("",V.experiments,!1);z.duration=L||0;V=g.b(t);for(L=V.next();!L.done;L=V.next())L=L.value,t=vo(L,Y,z.duration),q=To(L),(q=a5(q.Nk||L.url||"",q.TM,q.s))&&(t.streamType==="FORMAT_STREAM_TYPE_OTF"? rQ(z,new Wo(q,t,"sq/0")):rQ(z,new dQ(q,t,SG(L.initRange),SG(L.indexRange))));z.isOtf=!0;Y=z}else{L=L===void 0?0:L;z=new ed("",V.experiments,!1);z.duration=L||0;V=g.b(t);for(L=V.next();!L.done;L=V.next())l=L.value,L=vo(l,Y,z.duration),t=SG(l.initRange),q=SG(l.indexRange),w=To(l),(l=a5(w.Nk||l.url||"",w.TM,w.s))&&rQ(z,new dQ(l,L,t,q));Y=z}z=h.isLivePlayback&&!h.f6&&!h.AQ&&!h.isPremiere;h.N("html5_live_head_playable")&&(!b6(h)&&z&&h.Pm("missingLiveHeadPlayable",{}),h.SM.AQ==="yt"&&(Y.Ne=!0));return Y}; ZK=function(h){return EA()?!j_(h):OA()?!(!h.lP||!h.N("html5_enable_safari_fairplay")&&Xi()):!1}; j_=function(h){return h.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.zZ=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next())if(Y=Y.value,Y.cueRangeSetIdentifier){var L=void 0;h.bT.set(Y.cueRangeSetIdentifier,(L=Y.playerCueRanges)!=null?L:[])}}; os=function(h){return!(!h.G||!h.G.isManifestless)}; du=function(h){return h.y4?h.isLowLatencyLiveStream&&h.G!=null&&OJ(h.G)>=5:h.isLowLatencyLiveStream&&h.G!=void 0&&OJ(h.G)>=5}; Ymc=function(h){return EA()&&j_(h)?!1:ZK(h)&&(g.LV(h.SM)?!h.isLivePlayback:h.hlsvp)||!Xi()||h.im?!0:!1}; z8b=function(h){h.loading=!0;h.lZ=!1;if(Lu$(h))g.QB3(h.videoId).then(function(L){qm6(h,L)}).then(function(){h.JY()}); else{J8(h.Im)||g.bc(new g.Ea("DASH MPD Origin invalid: ",h.Im));var t=h.Im,Y=g.Sk(h.SM.experiments,"dash_manifest_version")||4;t=g.Xz(t,{mpd_version:Y});h.isLowLatencyLiveStream&&h.latencyClass!=="NORMAL"||(t=g.Xz(t,{pacing:0}));r0b(t,h.SM.experiments,h.isLivePlayback).then(function(L){h.Ui()||(GZ(h,L,!0),sH("mrc",void 0,h.L),h.JY())},function(L){h.Ui()||(h.loading=!1,h.publish("dataloaderror",new g.zk("manifest.net.retryexhausted",{backend:"manifest", rc:L.status},1)))}); sH("mrs",void 0,h.L)}}; qm6=function(h,t){var Y=t.map(function(H){return H.itag}),L; if((L=h.playerResponse)!=null&&L.streamingData){L=[];if(h.N("html5_offline_always_use_local_formats")){Y=0;for(var q=g.b(t),z=q.next();!z.done;z=q.next()){z=z.value;var V=Object.assign({},z);V.signatureCipher="";L.push(V);V=g.b(h.playerResponse.streamingData.adaptiveFormats);for(var l=V.next();!l.done;l=V.next())if(l=l.value,z.itag===l.itag&&z.xtags===l.xtags){Y+=1;break}}YW&&(W=U.getInfo().audio.numChannels)}W>2&&h.Pm("hlschl",{mn:W});var Q;((Q=h.eh)==null?0:Q.T)&&h.Pm("hlsfmtaf",{itags:y.join(".")});var J;if(h.N("html5_enable_vp9_fairplay")&&((J=h.X)==null?0:gG(J)))for(h.Pm("drm",{sbdlfbk:1}),W=g.b(h.n3),y=W.next();!y.done;y=W.next())if(y=y.value,iE(y)){h.X=y;break}u6(h,w)})}return oF()}; wUp=function(h){if(h.isExternallyHostedPodcast&&h.Df){var t=cu(h.Df);if(!t[0])return oF();h.s7U=t[0];return B9n(h.SM,t[0]).then(function(Y){u6(h,Y)})}return h.LI&&h.Zq?RUr(h.SM,h.isAd(),h.LI).then(function(Y){u6(h,Y)}):oF()}; y_3=function(h){if(h.isExternallyHostedPodcast)return oF();var t=cu(h.Df,h.qk);if(h.hlsvp){var Y=xx6(h.hlsvp,h.clientPlaybackNonce,h.pn);t.push(Y)}return Iuc(h.SM,h.isAd(),t,WuW(h)).then(function(L){u6(h,L)})}; u6=function(h,t){h.m$=t;h.G7(new Go(g.CQ(h.m$,function(Y){return Y.getInfo()})))}; WuW=function(h){var t={cpn:h.clientPlaybackNonce,c:h.SM.G.c,cver:h.SM.G.cver};h.FJ&&(t.ptk=h.FJ,t.oid=h.jd,t.ptchn=h.aP,t.pltype=h.Ip,h.lS&&(t.m=h.lS));return t}; g.e_=function(h){return ZK(h)&&h.lP?(h={},h.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",h):h.T&&h.T.EX||null}; XUL=function(h){var t=JL(h);return t&&t.text?g.Lc(t.text):h.paidContentOverlayText}; U$L=function(h){var t=JL(h);return t&&t.durationMs?vz(t.durationMs):h.paidContentOverlayDurationMs}; JL=function(h){var t,Y,L;return h.playerResponse&&h.playerResponse.paidContentOverlay&&h.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.A((t=h.X5)==null?void 0:(Y=t.playerOverlays)==null?void 0:(L=Y.playerOverlayRenderer)==null?void 0:L.playerDisclosure,CBL)||null}; pI=function(h){var t="";if(h.Ti)return h.Ti;h.isLivePlayback&&(t=h.allowLiveDvr?"dvr":h.isPremiere?"lp":h.AQ?"window":"live");h.f6&&(t="post");return t}; g.vu=function(h,t){return typeof h.keywords[t]!=="string"?null:h.keywords[t]}; MK6=function(h){return!!h.j8||!!h.GX||!!h.YU||!!h.JA||h.DE}; g.KI=function(h){return!!(h.Im||h.Df||h.LI||h.hlsvp||h.lF())}; gu=function(h){if(h.N("html5_onesie")&&h.errorCode)return!1;var t=g.jE(h.x8,"ypc");h.ypcPreview&&(t=!1);return h.ra()&&!h.loading&&(g.KI(h)||g.jE(h.x8,"heartbeat")||t)}; cu=function(h,t){h=Ip(h);var Y={};if(t){t=g.b(t.split(","));for(var L=t.next();!L.done;L=t.next())(L=L.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(Y[L[1]]={width:L[2],height:L[3]})}t=g.b(h);for(L=t.next();!L.done;L=t.next()){L=L.value;var q=Y[L.itag];q&&(L.width=q.width,L.height=q.height)}return h}; I9b=function(h,t){h.showShareButton=!!t;var Y,L,q=((Y=g.A(t,g.IB))==null?void 0:Y.navigationEndpoint)||((L=g.A(t,g.IB))==null?void 0:L.command);q&&(h.f1=!!g.A(q,Fup))}; EfL=function(h,t){var Y=t.raw_embedded_player_response;if(!Y){var L=t.embedded_player_response;L&&(Y=JSON.parse(L))}Y&&(h.CL=Y);if(h.CL){h.embeddedPlayerConfig=h.CL.embeddedPlayerConfig||null;if(Y=h.CL.videoFlags)Y.playableInEmbed&&(h.allowEmbed=!0),Y.isPrivate&&(h.isPrivate=!0),Y.userDisplayName&&(t.user_display_name=Y.userDisplayName),Y.userDisplayImage&&(t.user_display_image=Y.userDisplayImage);if(Y=h.CL.embedPreview){Y=Y.thumbnailPreviewRenderer;Ux6(h,Y.controlBgHtml);if(L=Y.defaultThumbnail)h.Y= uC(L);h.N("embeds_web_enable_search_button")&&Y.searchButton&&(L=g.A(Y.searchButton,g.IB))&&(h.EC=g.A(L.navigationEndpoint,g.as));(L=g.A(Y==null?void 0:Y.videoDetails,sy3))&&mx6(h,t,L);L=g.A(Y==null?void 0:Y.videoDetails,jyn);h.Y1=!!Y.addToWatchLaterButton;I9b(h,Y.shareButton);if(L==null?0:L.musicVideoType)h.musicVideoType=L.musicVideoType;var q,z,V,l,H;if(L=g.A((q=h.getEmbeddedPlayerResponse())==null?void 0:(z=q.embedPreview)==null?void 0:(V=z.thumbnailPreviewRenderer)==null?void 0:(l=V.playButton)== null?void 0:(H=l.buttonRenderer)==null?void 0:H.navigationEndpoint,g.NZ))tJL(h,L),h.videoId=L.videoId||h.videoId;Y.videoDurationSeconds&&(h.lengthSeconds=vz(Y.videoDurationSeconds));Y.webPlayerActionsPorting&&XXD(h,Y.webPlayerActionsPorting);if(q=g.A(Y==null?void 0:Y.playlist,Zn1)){h.Bo=!0;z=[];V=Number(q.currentIndex);if(q.contents)for(l=0,H=q.contents.length;l0:h.mK?!1:h.SM.fC||h.SM.D9||!g.kk(h.SM)?!0:!1:(h.mK?0:h.fC)&&g.kk(h.SM)?!0:!1;h.N("html5_log_detailpage_autoplay")&&S_(h)==="detailpage"&&h.Pm("autoplay_info",{autoplay:h.w0,autonav:h.isAutonav,wasDompaused:h.mK,result:t});return t}; g.Pu=function(h){return h.oauthToken||h.SM.Ty}; J_b=function(h){if(h.N("html5_stateful_audio_normalization")){var t=1,Y=g.Sk(h.SM.experiments,"html5_default_ad_gain");Y&&h.isAd()&&(t=Y);var L,q;Y=(q=(L=h.W)==null?void 0:L.audio.W)!=null?q:h.fd;if(Y==null||isNaN(Y))h=e8L(h);else{L=(0,g.FH)();h.Lq=2;q=L-h.SM.LN<=h.maxStatefulTimeThresholdSec*1E3;h.applyStatefulNormalization&&q?h.Lq=4:q||(h.SM.s0=Infinity,h.SM.LN=NaN);q=(h.Lq===4?g.n0(h.SM.s0,h.minimumLoudnessTargetLkfs,h.loudnessTargetLkfs):h.loudnessTargetLkfs)-Y;if(h.Lq!==4){var z,V,l,H,w=((z= h.playerResponse)==null?void 0:(V=z.playerConfig)==null?void 0:(l=V.audioConfig)==null?void 0:(H=l.loudnessNormalizationConfig)==null?void 0:H.statelessLoudnessAdjustmentGain)||0;q+=w}q=Math.min(q,0);h.preserveStatefulLoudnessTarget&&(h.SM.s0=Y+q,h.SM.LN=L);h=Math.min(1,Math.pow(10,q/20))||t}}else h=e8L(h);return h}; e8L=function(h){var t=1,Y=g.Sk(h.SM.experiments,"html5_default_ad_gain");Y&&h.isAd()&&(t=Y);if(h.SM.experiments.I0("html5_audio_gain_null_coalescing")){var L,q;Y=(q=(L=h.W)==null?void 0:L.audio.S)!=null?q:h.Vb;Y==0&&h.Pm("db0fix",{rldb:h.Vb},!0)}else{var z;Y=((z=h.W)==null?void 0:z.audio.S)||h.Vb}isNaN(Y)||(h.Lq=1);return Math.min(1,Math.pow(10,-Y/20))||t}; Uf=function(h){var t=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],Y=Hc(h.SM)==="TVHTML5_SIMPLY"&&h.SM.G.ctheme==="MUSIC";!h.lR&&(g.rP(h.SM)||g.ND(h.SM)||Y)&&(t.includes(h.musicVideoType)||h.isExternallyHostedPodcast)&&(h.lR=!0);if(t=g.xT())t=/Starboard\/([0-9]+)/.exec(g.xp()),t=(t?parseInt(t[1],10):NaN)<10;Y=h.SM;Y=(Hc(Y)==="TVHTML5_CAST"||Hc(Y)==="TVHTML5"&&(Y.G.cver.startsWith("6.20130725")||Y.G.cver.startsWith("6.20130726")))&&h.SM.G.ctheme==="MUSIC";var L;if(L=!h.lR)Y||(Y= h.SM,Y=Hc(Y)==="TVHTML5"&&Y.G.cver.startsWith("7")),L=Y;L&&!t&&(t=h.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",Y=(h.N("cast_prefer_audio_only_for_atv_and_uploads")||h.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&h.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",t||Y||h.isExternallyHostedPodcast)&&(h.lR=!0);return h.SM.deviceIsAudioOnly||h.lR&&h.SM.Y}; MZ=function(h){var t,Y,L;return((t=h.playerResponse)==null?void 0:(Y=t.playerConfig)==null?void 0:(L=Y.compositeVideoConfig)==null?void 0:L.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; pU6=function(h){var t,Y,L,q=(t=h.playerResponse)==null?void 0:(Y=t.playerConfig)==null?void 0:(L=Y.compositeVideoConfig)==null?void 0:L.sourceConfigs,z,V,l;h=(z=h.playerResponse)==null?void 0:(V=z.playerConfig)==null?void 0:(l=V.compositeVideoConfig)==null?void 0:l.defaultActiveSourceVideoId;if(!q||!h)return"";q=g.b(q);for(z=q.next();!z.done;z=q.next())if(z=z.value,z.videoId===h&&z.audioTracks)for(z=g.b(z.audioTracks),V=z.next();!V.done;V=z.next())if(V=V.value,V.isDefaultForSource)return V.id||""; return""}; g.vKn=function(h){return h.N("html5_enable_sabr_live_captions")&&h.fZ()&&F$(h)||MZ(h)}; mC=function(h){var t,Y,L;return!!((t=h.playerResponse)==null?0:(Y=t.playerConfig)==null?0:(L=Y.mediaCommonConfig)==null?0:L.splitScreenEligible)}; DK=function(h){var t;return!((t=h.playerResponse)==null||!t.compositePlayabilityStatus)}; Ku6=function(h){return isNaN(h)?0:Math.max((Date.now()-h)/1E3-30,0)}; hJ=function(h){return!(!h.CA||!h.SM.Y)&&h.lF()}; tJ=function(h){return h.Dw&&h.enableServerStitchedDai}; aQL=function(h){return h.JH&&!h.dS}; F$=function(h){var t=h.N("html5_enable_sabr_on_drive")&&h.SM.AQ==="gd";if(h.ZE)return h.JH&&h.Pm("fds",{fds:!0},!0),!1;if(h.SM.AQ!=="yt"&&!t)return h.JH&&h.Pm("dsvn",{ns:h.SM.AQ},!0),!1;if(h.cotn||!h.G||h.G.isOtf&&!h.N("html5_enable_sabr_otf_in_client")||h.S&&!h.S.G||h.hR&&!h.N("html5_enable_sabr_csdai"))return!1;if(h.N("html5_use_sabr_requests_for_debugging"))return!0;h.JH&&h.Pm("esfw",{usbc:h.JH,hsu:!!h.dS},!0);if(h.JH&&h.dS)return!0;if(h.N("html5_remove_client_sabr_determination"))return!1;var Y= !h.G.fZ&&!h.WM();t=Y&&wG&&h.N("html5_enable_sabr_vod_streaming_xhr");Y=Y&&!wG&&h.N("html5_enable_sabr_vod_non_streaming_xhr");var L=i5(h),q=h.N("html5_enable_sabr_drm_vod_streaming_xhr")&&wG&&h.WM()&&!h.G.fZ&&(h.drmProduct==="1"?!1:!0);(t=t||Y||L||q)&&!h.dS&&h.Pm("sabr",{loc:"m"},!0);return t&&!!h.dS}; i5=function(h){var t;if(!(t=wG&&h.fZ()&&h.WM()&&(h.drmProduct==="1"?!1:!0)&&h.N("html5_sabr_live_drm_streaming_xhr"))){t=h.fZ()&&!h.WM()&&wG;var Y=h.fZ()&&h.latencyClass!=="ULTRALOW"&&!h.isLowLatencyLiveStream&&h.N("html5_sabr_live_normal_latency_streaming_xhr"),L=h.isLowLatencyLiveStream&&h.N("html5_sabr_live_low_latency_streaming_xhr"),q=h.latencyClass==="ULTRALOW"&&h.N("html5_sabr_live_ultra_low_latency_streaming_xhr");t=t&&(Y||L||q)}Y=t;t=h.enableServerStitchedDai&&Y&&h.N("html5_enable_sabr_ssdai_streaming_xhr"); Y=!h.enableServerStitchedDai&&Y;L=h.fZ()&&!wG&&h.N("html5_enable_sabr_live_non_streaming_xhr");h=wG&&(h.JJ()||mC(h)&&h.N("html5_enable_sabr_for_lifa_eligible_streams"));return t||Y||L||h}; Lu$=function(h){var t;if(t=!!h.cotn)t=h.videoId,t=!!t&&g.nM(t)===1;return t&&!h.CA}; g.g8=function(h){if(!h.G||!h.T||!h.W)return!1;var t=h.G.G,Y=!!t[h.T.id]&&nh(t[h.T.id].e4.G);t=!!t[h.W.id]&&nh(t[h.W.id].e4.G);return(h.T.itag==="0"||Y)&&t}; Yl=function(h){return h.kU?["OK","LIVE_STREAM_OFFLINE"].includes(h.kU.status):!0}; bnb=function(h){return(h=h.wd)&&h.showError?h.showError:!1}; qU=function(h,t){return h.N(t)?!0:(h.fflags||"").includes(t+"=true")}; TUL=function(h,t){t.inlineMetricEnabled&&(h.inlineMetricEnabled=!0);t.playback_progress_0s_url&&(h.JA=new FGi(t));if(t=t.video_masthead_ad_quartile_urls)h.GX=t.quartile_0_url,h.qO=t.quartile_25_url,h.aS=t.quartile_50_url,h.Au=t.quartile_75_url,h.MO=t.quartile_100_url,h.YU=t.quartile_0_urls,h.TG=t.quartile_25_urls,h.lT=t.quartile_50_urls,h.Ih=t.quartile_75_urls,h.l5=t.quartile_100_urls}; $xD=function(h){var t={};h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next()){Y=Y.value;var L=Y.split("=");L.length===2?t[L[0]]=L[1]:t[Y]=!0}return t}; OFc=function(h){if(h){if(F2W(h))return h;h=sA$(h);if(F2W(h,!0))return h}return""}; g.x$W=function(h){return h.captionsLanguagePreference||h.SM.captionsLanguagePreference||g.vu(h,"yt:cc_default_lang")||h.SM.Vb}; zM=function(h){return!(!h.isLivePlayback||!h.hasProgressBarBoundaries())}; g.l6=function(h){var t;return h.oM||((t=h.suggestions)==null?void 0:t[0])||null}; g.VE=function(h){var t,Y;return!!((t=h.embeddedPlayerConfig)==null?0:(Y=t.embeddedPlayerFlags)==null?0:Y.enableMusicUx)}; EKc=function(h){return h.C||h.N("web_player_media_session_infinity")&&h.isLivePlayback}; NU=function(h){return h.SM.W&&h.isPrivate}; g.H5=function(h){var t=h.J(),Y=g.l5(t),L=t.dP;(t.N("embeds_web_enable_iframe_api_send_full_embed_url")||t.N("embeds_web_enable_rcat_validation_in_havs")||t.N("embeds_enable_autoplay_and_visibility_signals"))&&g.AU(t)&&(L&&(Y.thirdParty=Object.assign({},Y.thirdParty,{embedUrl:L})),LTn(Y,h));if(L=h.Zx)Y.clickTracking={clickTrackingParams:L};else if(g.AU(h.J())&&g.Ey("EVENT_ID"))Y.clickTracking={clickTrackingParams:g.Ey("EVENT_ID")};else if(t.N("html5_log_missing_itct")){var q;L=new g.Ea("Missing ITCT in InnerTubeContext", {isAd:h.isAd(),O1Q:(q=t.getWebPlayerContextConfig())==null?void 0:q.contextId});g.ZD(L)}q=Y.client||{};L="EMBED";var z=S_(h);z==="leanback"?L="WATCH":t.N("gvi_channel_client_screen")&&z==="profilepage"?L="CHANNEL":h.tQ?L="LIVE_MONITOR":z==="detailpage"?L="WATCH_FULL_SCREEN":z==="adunit"?L="ADUNIT":z==="sponsorshipsoffer"&&(L="UNKNOWN");q.clientScreen=L;if(t=h.kidsAppInfo)q.kidsAppInfo=JSON.parse(t);(L=h.uH)&&!t&&(q.kidsAppInfo={contentSettings:{ageUpMode:kS6[L]}});if(t=h.Q1)q.unpluggedAppInfo={enableFilterMode:!0}; (L=h.unpluggedFilterModeType)&&!t&&(q.unpluggedAppInfo={filterModeType:OnL[L]});if(t=h.UX)q.unpluggedLocationInfo=t;Y.client=q;q=Y.request||{};h.uM&&(q.isPrefetch=!0);if(t=h.mdxEnvironment)q.mdxEnvironment=t;if(t=h.mdxControlMode)q.mdxControlMode=nK1[t];Y.request=q;q=Y.user||{};if(t=h.gU)q.credentialTransferTokens=[{token:t,scope:"VIDEO"}];if(t=h.fn)q.delegatePurchases={oauthToken:t},q.kidsParent={oauthToken:t};Y.user=q;if(q=h.contextParams)Y.activePlayers=[{playerContextParams:q}];if(h=h.clientScreenNonce)Y.clientScreenNonce= h;return Y}; g.l5=function(h){var t=g.fs(),Y=t.client||{};if(h.forcedExperiments){var L=h.forcedExperiments.split(","),q=[];L=g.b(L);for(var z=L.next();!z.done;z=L.next())q.push(Number(z.value));Y.experimentIds=q}if(q=h.homeGroupInfo)Y.homeGroupInfo=JSON.parse(q);if(q=h.getPlayerType())Y.playerType=q;if(q=h.G.ctheme)Y.theme=q;if(q=h.livingRoomAppMode)Y.tvAppInfo=Object.assign({},Y.tvAppInfo,{livingRoomAppMode:q});q=h.deviceYear;h.N("html5_propagate_device_year")&&q&&(Y.tvAppInfo=Object.assign({},Y.tvAppInfo,{deviceYear:q})); if(q=h.livingRoomPoTokenId)Y.tvAppInfo=Object.assign({},Y.tvAppInfo,{livingRoomPoTokenId:q});t.client=Y;Y=t.user||{};h.enableSafetyMode&&(Y=Object.assign({},Y,{enableSafetyMode:!0}));h.pageId&&(Y=Object.assign({},Y,{onBehalfOfUser:h.pageId}));t.user=Y;Y=h.dP;h.N("embeds_web_enable_iframe_api_send_full_embed_url")||h.N("embeds_web_enable_rcat_validation_in_havs")||h.N("embeds_enable_autoplay_and_visibility_signals")||!Y||(t.thirdParty={embedUrl:Y});return t}; IQ$=function(h,t,Y){var L=h.videoId,q=g.H5(h),z=h.J(),V={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(X2()),referer:document.location.toString(),signatureTimestamp:20277};g.JG();h.isAutonav&&(V.autonav=!0);g.pY(0,141)&&(V.autonavState=g.pY(0,140)?"STATE_OFF":"STATE_ON");V.autoCaptionsDefaultOn=g.pY(0,66);uP3(h)&&(V.autoplay=!0);z.Y&&h.cycToken&&(V.cycToken=h.cycToken);z.enablePrivacyFilter&&(V.enablePrivacyFilter=!0);h.isFling&&(V.fling=!0);var l=h.forceAdsUrl;if(l){var H={},w=[];l= l.split(",");l=g.b(l);for(var W=l.next();!W.done;W=l.next()){W=W.value;var y=W.split("|");y.length!==3||W.includes("=")||(y[0]="breaktype="+y[0],y[1]="offset="+y[1],y[2]="url="+y[2]);W={adtype:"video_ad"};y=g.b(y);for(var X=y.next();!X.done;X=y.next()){var U=g.b(X.value.split("="));X=U.next().value;U=LLb(U);W[X]=U.join("=")}y=W.url;X=W.presetad;U=W.viralresponseurl;var C=Number(W.campaignid);if(W.adtype==="in_display_ad")y&&(H.url=y),X&&(H.presetAd=X),U&&(H.viralAdResponseUrl=U),C&&(H.viralCampaignId= String(C));else if(W.adtype==="video_ad"){var d={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(W.offset)||0)}};if(W=fQD[W.breaktype])d.breakType=W;y&&(d.url=y);X&&(d.presetAd=X);U&&(d.viralAdResponseUrl=U);C&&(d.viralCampaignId=String(C));w.push(d)}}V.forceAdParameters={videoAds:w,inDisplayAd:H}}h.isInlinePlaybackNoAd&&(V.isInlinePlaybackNoAd=!0);h.isLivingRoomDeeplink&&(V.isLivingRoomDeeplink=!0);H=h.Yc;if(H!=null){H={startWalltime:String(H)};if(w=h.V3)H.manifestDuration=String(w||14400); V.liveContext=H}if(h.mutedAutoplay){V.mutedAutoplay=!0;H=z.getWebPlayerContextConfig();var Q,J;(H==null?0:(Q=H.embedsHostFlags)==null?0:Q.allowMutedAutoplayDurationMode)&&(H==null?0:(J=H.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode.includes($$b[h.mutedAutoplayDurationMode]))&&(V.mutedAutoplayDurationMode=$$b[h.mutedAutoplayDurationMode])}if(h.mK?0:h.fC)V.splay=!0;Q=h.vnd;Q===5&&(V.vnd=Q);Q={};if(J=h.isMdxPlayback)Q.triggeredByMdx=J;if(J=h.mC)Q.skippableAdsSupported=J.split(",").includes("ska"); if(w=h.Y9){J=h.iT;H=[];w=g.b(qu6(w));for(l=w.next();!l.done;l=w.next()){l=l.value;W=l.platform;l={applicationState:l.h2?"INACTIVE":"ACTIVE",clientFormFactor:TC3[W]||"UNKNOWN_FORM_FACTOR",clientName:VQW[l.Kh]||"UNKNOWN_INTERFACE",clientVersion:l.deviceVersion||"",platform:A_3[W]||"UNKNOWN_PLATFORM"};W={};if(J){y=void 0;try{y=JSON.parse(J)}catch(v){g.bc(v)}y&&(W={params:[{key:"ms",value:y.ms}]},y.advertising_id&&(W.advertisingId=y.advertising_id),y.limit_ad_tracking!==void 0&&y.limit_ad_tracking!== null&&(W.limitAdTracking=y.limit_ad_tracking),l.osName=y.os_name,l.userAgent=y.user_agent,l.windowHeightPoints=y.window_height_points,l.windowWidthPoints=y.window_width_points)}H.push({adSignalsInfo:W,remoteClient:l})}Q.remoteContexts=H}J=h.sourceContainerPlaylistId;H=h.serializedMdxMetadata;if(J||H)w={},J&&(w.mdxPlaybackContainerInfo={sourceContainerPlaylistId:J}),H&&(w.serializedMdxMetadata=H),Q.mdxPlaybackSourceContext=w;V.mdxContext=Q;Q=t.width;Q>0&&(V.playerWidthPixels=Math.round(Q));if(t=t.height)V.playerHeightPixels= Math.round(t);Y!==0&&(V.vis=Y);if(Y=z.widgetReferrer)V.widgetReferrer=Y.substring(0,128);g.kk(z)&&V&&(V.ancestorOrigins=z.ancestorOrigins);h.defaultActiveSourceVideoId&&(V.compositeVideoContext={defaultActiveSourceVideoId:h.defaultActiveSourceVideoId});if(z=z.getWebPlayerContextConfig())V.encryptedHostFlags=z.encryptedHostFlags;L={videoId:L,context:q,playbackContext:{contentPlaybackContext:V}};if(h.xa){var e;L.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(e=h.xa)==null?void 0:e.reloadPlaybackParams}}h.contentCheckOk&& (L.contentCheckOk=!0);if(e=h.clientPlaybackNonce)L.cpn=e;if(e=h.playerParams)L.params=e;if(e=h.playlistId)L.playlistId=e;h.racyCheckOk&&(L.racyCheckOk=!0);e=h.J();if(q=e.embedConfig)L.serializedThirdPartyEmbedConfig=q;L.captionParams={};q=g.pY(g.JG(),65);h.deviceCaptionsOn!=null?L.captionParams.deviceCaptionsOn=h.deviceCaptionsOn:g.zH(e)&&(L.captionParams.deviceCaptionsOn=q!=null?!q:!1);h.DG&&(L.captionParams.deviceCaptionsLangPref=h.DG);h.Kj.length?L.captionParams.viewerSelectedCaptionLangs=h.Kj: g.zH(e)&&(q=g.wO(),q==null?0:q.length)&&(L.captionParams.viewerSelectedCaptionLangs=q);q=h.fetchType==="onesie"&&h.N("html5_onesie_attach_po_token");V=h.fetchType!=="onesie"&&h.N("html5_non_onesie_attach_po_token");if(q||V)q=h.J(),q.mK&&(L.serviceIntegrityDimensions={},L.serviceIntegrityDimensions.poToken=q.mK);e.N("fetch_att_independently")&&(L.attestationRequest={omitBotguardData:!0});L.playbackContext||(L.playbackContext={});L.playbackContext.devicePlaybackCapabilities=Smp(h);L.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&h.Pm("noVp9",{});return L}; Smp=function(h){var t=!(h==null?0:h.kV())&&(h==null?void 0:h.fZ())&&IF(),Y;if(!(Y=h==null)){Y=g.sf(h);h=h.J().X;var L=MD("243");Y=!(L&&ur(Y,L,h,!0)===!0)}return{supportsVp9Encoding:!(Y||t),supportXhr:wG}}; BC$=function(h,t){var Y,L,q;return g.k(function(z){if(z.T==1)return Y={context:g.l5(h.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:h.videoId,cpn:h.clientPlaybackNonce}}]},L=g.AZ(R8c),g.K(z,g.r2(t,Y,L),2);q=z.G;return z.return(q)})}; PBL=function(h,t,Y){var L=g.Sk(t.experiments,"bg_vm_reinit_threshold");(!BG||(0,g.FH)()-BG>L)&&BC$(h,Y).then(function(q){q&&(q=q.botguardData)&&g.mq(q,t)},function(q){h.Ui()||(q=NS(q),h.Pm("attf",q.details))})}; w8=function(h,t){g.O.call(this);this.app=h;this.state=t}; yE=function(h,t,Y){h.state.G.hasOwnProperty(t)||W5(h,t,Y);h.state.C[t]=function(){return Y.apply(h,g.OL.apply(0,arguments))}; h.state.U.add(t)}; X6=function(h,t,Y){h.state.G.hasOwnProperty(t)||W5(h,t,Y);h.app.J().Y&&(h.state.Y[t]=function(){return Y.apply(h,g.OL.apply(0,arguments))},h.state.U.add(t))}; W5=function(h,t,Y){h.state.G[t]=function(){return Y.apply(h,g.OL.apply(0,arguments))}}; g.UY=function(h,t,Y){return h.state.G[t].apply(h.state.G,g.p(Y))}; Co=function(){g.Mz.call(this);this.X=new Map}; MU=function(){g.O.apply(this,arguments);this.element=null;this.U=new Set;this.C={};this.Y={};this.G={};this.L=new Set;this.S=new Co;this.T=new Co;this.W=new Co;this.X=new Co}; m$L=function(h,t,Y){typeof h==="string"&&(h={mediaContentUrl:h,startSeconds:t,suggestedQuality:Y});a:{if((t=h.mediaContentUrl)&&(t=/\/([ve]|embed)\/([^#?]+)/.exec(t))&&t[2]){t=t[2];break a}t=null}h.videoId=t;return F6(h)}; F6=function(h,t,Y){if(typeof h==="string")return{videoId:h,startSeconds:t,suggestedQuality:Y};t={};Y=g.b(D$3);for(var L=Y.next();!L.done;L=Y.next())L=L.value,h[L]&&(t[L]=h[L]);return t}; hhn=function(h,t,Y,L){if(g.LH(h)&&!Array.isArray(h)){t="playlist list listType index startSeconds suggestedQuality".split(" ");Y={};for(L=0;L32&&L.push("hfr");t.isHdr()&&L.push("hdr");t.primaries==="bt2020"&&L.push("wcg");Y.video_quality_features=L}}if(h=h.getPlaylistId())Y.list=h;return Y}; oe=function(){sY.apply(this,arguments)}; d8=function(h,t){var Y={};if(h.app.J().x8){h=g.b(Y1L);for(var L=h.next();!L.done;L=h.next())L=L.value,t.hasOwnProperty(L)&&(Y[L]=t[L]);if(t=Y.qoe_cat)h="",typeof t==="string"&&t.length>0&&(h=t.split(",").filter(function(q){return Lqc.includes(q)}).join(",")),Y.qoe_cat=h; q1L(Y)}else for(h=g.b(zhr),L=h.next();!L.done;L=h.next())L=L.value,t.hasOwnProperty(L)&&(Y[L]=t[L]);return Y}; q1L=function(h){var t=h.raw_player_response;if(!t){var Y=h.player_response;Y&&(t=JSON.parse(Y))}delete h.player_response;delete h.raw_player_response;if(t){h.raw_player_response={streamingData:t.streamingData,playerConfig:t.playerConfig};var L;if((L=t.playbackTracking)==null?0:L.qoeUrl)h.raw_player_response=Object.assign({},h.raw_player_response,{playbackTracking:{qoeUrl:t.playbackTracking.qoeUrl}});t.videoDetails&&(t.videoDetails.videoId||t.videoDetails.lengthSeconds)&&(Y={},t.videoDetails.videoId&& (Y.videoId=t.videoDetails.videoId),t.videoDetails.lengthSeconds&&(Y.lengthSeconds=t.videoDetails.lengthSeconds),h.raw_player_response=Object.assign({},h.raw_player_response,{videoDetails:Y}))}}; GM=function(h,t,Y){var L=h.app.a7(Y);if(!L)return 0;h=L-h.app.getCurrentTime(Y);return t-h}; Nxi=function(h){var t=t===void 0?5:t;return h?Vfr[h]||t:t}; g.QE=function(){oe.apply(this,arguments)}; lvL=function(h){W5(h,"getInternalApiInterface",h.getInternalApiInterface);W5(h,"addEventListener",h.CE);W5(h,"removeEventListener",h.afb);W5(h,"cueVideoByPlayerVars",h.XN);W5(h,"loadVideoByPlayerVars",h.rf);W5(h,"preloadVideoByPlayerVars",h.k6i);W5(h,"getAdState",h.getAdState);W5(h,"sendAbandonmentPing",h.sendAbandonmentPing);W5(h,"setLoopRange",h.setLoopRange);W5(h,"getLoopRange",h.getLoopRange);W5(h,"setAutonavState",h.setAutonavState);W5(h,"seekTo",h.pxe);W5(h,"seekBy",h.UUz);W5(h,"seekToLiveHead", h.seekToLiveHead);W5(h,"requestSeekToWallTimeSeconds",h.requestSeekToWallTimeSeconds);W5(h,"seekToStreamTime",h.seekToStreamTime);W5(h,"prefetchKeyPlay",h.prefetchKeyPlay);W5(h,"startSeekCsiAction",h.startSeekCsiAction);W5(h,"getStreamTimeOffset",h.getStreamTimeOffset);W5(h,"getVideoData",h.LX);W5(h,"setInlinePreview",h.setInlinePreview);W5(h,"getAppState",h.getAppState);W5(h,"updateLastActiveTime",h.updateLastActiveTime);W5(h,"setBlackout",h.setBlackout);W5(h,"setUserEngagement",h.setUserEngagement); W5(h,"updateSubtitlesUserSettings",h.updateSubtitlesUserSettings);W5(h,"getPresentingPlayerType",h.W5);W5(h,"canPlayType",h.canPlayType);W5(h,"updatePlaylist",h.updatePlaylist);W5(h,"updateVideoData",h.updateVideoData);W5(h,"updateEnvironmentData",h.updateEnvironmentData);W5(h,"sendVideoStatsEngageEvent",h.lf8);W5(h,"productsInVideoVisibilityUpdated",h.productsInVideoVisibilityUpdated);W5(h,"setSafetyMode",h.setSafetyMode);W5(h,"isAtLiveHead",function(t){return h.isAtLiveHead(void 0,t)}); W5(h,"getVideoAspectRatio",h.getVideoAspectRatio);W5(h,"getPreferredQuality",h.getPreferredQuality);W5(h,"getPlaybackQualityLabel",h.getPlaybackQualityLabel);W5(h,"setPlaybackQualityRange",h.kmG);W5(h,"onAdUxClicked",h.onAdUxClicked);W5(h,"getFeedbackProductData",h.getFeedbackProductData);W5(h,"getStoryboardFrame",h.getStoryboardFrame);W5(h,"getStoryboardFrameIndex",h.getStoryboardFrameIndex);W5(h,"getStoryboardLevel",h.getStoryboardLevel);W5(h,"getNumberOfStoryboardLevels",h.getNumberOfStoryboardLevels); W5(h,"getCaptionWindowContainerId",h.getCaptionWindowContainerId);W5(h,"getAvailableQualityLabels",h.getAvailableQualityLabels);W5(h,"addCueRange",h.addCueRange);W5(h,"addUtcCueRange",h.addUtcCueRange);W5(h,"showAirplayPicker",h.showAirplayPicker);W5(h,"dispatchReduxAction",h.dispatchReduxAction);W5(h,"getPlayerResponse",h.Jk);W5(h,"getWatchNextResponse",h.PB);W5(h,"getHeartbeatResponse",h.vQ);W5(h,"getCurrentTime",h.mf);W5(h,"getDuration",h.LY);W5(h,"getPlayerState",h.getPlayerState);W5(h,"getPlayerStateObject", h.j9);W5(h,"getVideoLoadedFraction",h.getVideoLoadedFraction);W5(h,"getProgressState",h.getProgressState);W5(h,"getVolume",h.getVolume);W5(h,"setVolume",h.SO);W5(h,"isMuted",h.isMuted);W5(h,"mute",h.C_);W5(h,"unMute",h.FL);W5(h,"loadModule",h.loadModule);W5(h,"unloadModule",h.unloadModule);W5(h,"getOption",h.SR);W5(h,"getOptions",h.getOptions);W5(h,"setOption",h.setOption);W5(h,"loadVideoById",h.vX);W5(h,"loadVideoByUrl",h.Fk);W5(h,"playVideo",h.Fy);W5(h,"loadPlaylist",h.loadPlaylist);W5(h,"nextVideo", h.nextVideo);W5(h,"previousVideo",h.previousVideo);W5(h,"playVideoAt",h.playVideoAt);W5(h,"getDebugText",h.getDebugText);W5(h,"getWebPlayerContextConfig",h.getWebPlayerContextConfig);W5(h,"notifyShortsAdSwipeEvent",h.notifyShortsAdSwipeEvent);W5(h,"getVideoContentRect",h.getVideoContentRect);W5(h,"setSqueezeback",h.setSqueezeback);W5(h,"toggleSubtitlesOn",h.toggleSubtitlesOn);W5(h,"isSubtitlesOn",h.isSubtitlesOn);W5(h,"reportPlaybackIssue",h.reportPlaybackIssue);W5(h,"setAutonav",h.setAutonav);W5(h, "isNotServable",h.isNotServable);W5(h,"channelSubscribed",h.channelSubscribed);W5(h,"channelUnsubscribed",h.channelUnsubscribed);W5(h,"togglePictureInPicture",h.togglePictureInPicture);W5(h,"supportsGaplessAudio",h.supportsGaplessAudio);W5(h,"supportsGaplessShorts",h.supportsGaplessShorts);W5(h,"enqueueVideoByPlayerVars",function(t){return void h.enqueueVideoByPlayerVars(t)}); W5(h,"clearQueue",h.clearQueue);W5(h,"getAudioTrack",h.fX);W5(h,"setAudioTrack",h.HrG);W5(h,"getAvailableAudioTracks",h.pX);W5(h,"getMaxPlaybackQuality",h.getMaxPlaybackQuality);W5(h,"getUserPlaybackQualityPreference",h.getUserPlaybackQualityPreference);W5(h,"getSubtitlesUserSettings",h.getSubtitlesUserSettings);W5(h,"resetSubtitlesUserSettings",h.resetSubtitlesUserSettings);W5(h,"setMinimized",h.setMinimized);W5(h,"setOverlayVisibility",h.setOverlayVisibility);W5(h,"confirmYpcRental",h.confirmYpcRental); W5(h,"queueNextVideo",h.queueNextVideo);W5(h,"handleExternalCall",h.handleExternalCall);W5(h,"logApiCall",h.logApiCall);W5(h,"isExternalMethodAvailable",h.isExternalMethodAvailable);W5(h,"setScreenLayer",h.setScreenLayer);W5(h,"getCurrentPlaylistSequence",h.getCurrentPlaylistSequence);W5(h,"getPlaylistSequenceForTime",h.getPlaylistSequenceForTime);W5(h,"shouldSendVisibilityState",h.shouldSendVisibilityState);W5(h,"syncVolume",h.syncVolume);W5(h,"highlightSettingsMenuItem",h.highlightSettingsMenuItem); W5(h,"openSettingsMenuItem",h.openSettingsMenuItem);W5(h,"getEmbeddedPlayerResponse",h.getEmbeddedPlayerResponse);W5(h,"getVisibilityState",h.getVisibilityState);W5(h,"isMutedByMutedAutoplay",h.isMutedByMutedAutoplay);W5(h,"isMutedByEmbedsMutedAutoplay",h.isMutedByEmbedsMutedAutoplay);W5(h,"setGlobalCrop",h.setGlobalCrop);W5(h,"setInternalSize",h.setInternalSize);W5(h,"setFauxFullscreen",h.setFauxFullscreen);W5(h,"setAppFullscreen",h.setAppFullscreen)}; c5=function(h,t,Y){h=g.r8(h.OX(),t);return Y?(Y.addOnDisposeCallback(h),null):h}; g.u5=function(h,t,Y){return h.app.J().sX?t:g.BV("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:t,SHORTCUT:Y})}; HO3=function(h){h.OX().element.setAttribute("aria-live","polite")}; g.eH=function(h,t){g.QE.call(this,h,t);lvL(this);X6(this,"addEventListener",this.lK);X6(this,"removeEventListener",this.PRz);X6(this,"cueVideoByPlayerVars",this.pK);X6(this,"loadVideoByPlayerVars",this.yS);X6(this,"preloadVideoByPlayerVars",this.YX5);X6(this,"loadVideoById",this.vX);X6(this,"loadVideoByUrl",this.Fk);X6(this,"playVideo",this.Fy);X6(this,"loadPlaylist",this.loadPlaylist);X6(this,"nextVideo",this.nextVideo);X6(this,"previousVideo",this.previousVideo);X6(this,"playVideoAt",this.playVideoAt); X6(this,"getVideoData",this.K$);X6(this,"seekBy",this.Xxb);X6(this,"seekTo",this.CRQ);X6(this,"showControls",this.showControls);X6(this,"hideControls",this.hideControls);X6(this,"cancelPlayback",this.cancelPlayback);X6(this,"getProgressState",this.getProgressState);X6(this,"isInline",this.isInline);X6(this,"setInline",this.setInline);X6(this,"setLoopVideo",this.setLoopVideo);X6(this,"getLoopVideo",this.getLoopVideo);X6(this,"getVideoContentRect",this.getVideoContentRect);X6(this,"getVideoStats",this.nf); X6(this,"getCurrentTime",this.OG);X6(this,"getDuration",this.LY);X6(this,"getPlayerState",this.ib);X6(this,"getVideoLoadedFraction",this.Ml);X6(this,"mute",this.C_);X6(this,"unMute",this.FL);X6(this,"setVolume",this.SO);X6(this,"loadModule",this.loadModule);X6(this,"unloadModule",this.unloadModule);X6(this,"getOption",this.SR);X6(this,"getOptions",this.getOptions);X6(this,"setOption",this.setOption);X6(this,"addCueRange",this.addCueRange);X6(this,"getDebugText",this.getDebugText);X6(this,"getStoryboardFormat", this.getStoryboardFormat);X6(this,"toggleFullscreen",this.toggleFullscreen);X6(this,"isFullscreen",this.isFullscreen);X6(this,"getPlayerSize",this.getPlayerSize);X6(this,"toggleSubtitles",this.toggleSubtitles);X6(this,"setCenterCrop",this.setCenterCrop);X6(this,"setFauxFullscreen",this.setFauxFullscreen);X6(this,"setSizeStyle",this.setSizeStyle);X6(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);X6(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);iO$(this)}; g.JJ=function(h){h=h.T$();var t=h.BZ.get("endscreen");return t&&t.sF()?!0:h.oh()}; g.po=function(h,t){h.getPresentingPlayerType()===3?h.publish("mdxautoplaycancel"):h.jM("onAutonavCancelled",t)}; g.Ko=function(h){var t=v5(h.T$());return h.app.KN&&!h.isFullscreen()||h.getPresentingPlayerType()===3&&t&&t.fH()&&t.B0()||!!h.getPlaylist()}; g.ae=function(h,t){g.UY(h,"addEmbedsConversionTrackingParams",[t])}; g.EY=function(h){return(h=g.xl(h.T$()))?h.g7():{}}; g.wG$=function(h){h=(h=h.getVideoData())&&h.T;return!!h&&!(!h.audio||!h.video)&&h.mimeType!=="application/x-mpegURL"}; g.kl=function(h,t,Y){h=h.Bm().element;var L=$y(h.children,function(q){q=Number(q.getAttribute("data-layer"));return Y-q||1}); L<0&&(L=-(L+1));Ml(h,t,L);t.setAttribute("data-layer",String(Y))}; g.OY=function(h){var t=h.J();if(!t.R7)return!1;var Y=h.getVideoData();if(!Y||h.getPresentingPlayerType()===3)return!1;var L=(!Y.isLiveDefaultBroadcast||t.N("allow_poltergust_autoplay"))&&!zM(Y);L=Y.isLivePlayback&&(!t.N("allow_live_autoplay")||!L);var q=Y.isLivePlayback&&t.N("allow_live_autoplay_on_mweb");h=h.getPlaylist();h=!!h&&h.fH();var z=Y.X5&&Y.X5.playerOverlays||null;z=!!(z&&z.playerOverlayRenderer&&z.playerOverlayRenderer.autoplay);z=Y.Ye&&z;return!Y.ypcPreview&&(!L||q)&&!g.jE(Y.x8,"ypc")&& !h&&(!g.kk(t)||z)}; yEb=function(h,t){h=Wqi(h.app.Nq().X);h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next()){Y=Y.value;var L=Y.getAvailableAudioTracks(),q=null;L=g.b(L);for(var z=L.next();!z.done;z=L.next())if(z=z.value,z.getLanguageInfo().getId()===t){q=z;break}q&&Y.Xp(q,!0)}}; no=function(){ue.apply(this,arguments);this.requestHeaders={}}; $l=function(){fo||(fo=new no);return fo}; TM=function(h,t){t?h.requestHeaders.Authorization="Bearer "+t:delete h.requestHeaders.Authorization}; g.AJ=function(h){g.O.call(this);var t=this;this.qe=h;this.zD={Ps:function(){return t.qe}}}; g.SH=function(h,t,Y,L){L=L===void 0?!1:L;g.iR.call(this,t);var q=this;this.K=h;this.R0=L;this.Y=new g.UF(this);this.fade=new g.ST(this,Y,!0,void 0,void 0,function(){q.jS()}); g.f(this,this.Y);g.f(this,this.fade)}; Ie=function(h){var t=h.K.getRootNode();return h.K.N("web_watch_pip")||h.K.N("web_shorts_pip")?hf(t):document}; XGL=function(h){h.T&&(document.activeElement&&g.sO(h.element,document.activeElement)&&h.T.focus(),h.T.setAttribute("aria-expanded","false"),h.T=void 0);g.ZZ(h.Y);h.L=void 0}; Re=function(h,t,Y){h.KI()?h.KZ():h.rz(t,Y)}; B5=function(h,t,Y,L){L=new g.I({Z:"div",Ei:["ytp-linked-account-popup-button"],o0:L,j:{role:"button",tabindex:"0"}});t=new g.I({Z:"div",D:"ytp-linked-account-popup",j:{role:"dialog","aria-modal":"true",tabindex:"-1"},B:[{Z:"div",D:"ytp-linked-account-popup-title",o0:t},{Z:"div",D:"ytp-linked-account-popup-description",o0:Y},{Z:"div",D:"ytp-linked-account-popup-buttons",B:[L]}]});g.SH.call(this,h,{Z:"div",D:"ytp-linked-account-popup-container",B:[t]},100);var q=this;this.dialog=t;g.f(this,this.dialog); L.listen("click",function(){q.KZ()}); g.f(this,L);g.kl(this.K,this.element,4);this.hide()}; g.mM=function(h,t,Y,L){g.iR.call(this,h);this.priority=t;Y&&g.P5(this,Y);L&&this.I4(L)}; g.Dh=function(h,t,Y,L){h=h===void 0?{}:h;t=t===void 0?[]:t;Y=Y===void 0?!1:Y;L=L===void 0?!1:L;t.push("ytp-menuitem");var q=h;"role"in q||(q.role="menuitem");Y||(q=h,"tabindex"in q||(q.tabindex="0"));h={Z:Y?"a":"div",Ei:t,j:h,B:[{Z:"div",D:"ytp-menuitem-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-menuitem-label",o0:"{{label}}"},{Z:"div",D:"ytp-menuitem-content",o0:"{{content}}"}]};L&&h.B.push({Z:"div",D:"ytp-menuitem-secondary-icon",o0:"{{secondaryIcon}}"});return h}; g.P5=function(h,t){h.updateValue("label",t)}; hX=function(h){g.mM.call(this,g.Dh({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var t=this;this.K=h;this.T=this.G=!1;this.Rm=h.Q7();h.createServerVe(this.element,this,!0);this.V(this.K,"settingsMenuVisibilityChanged",function(Y){t.Y4(Y)}); this.V(this.K,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; tX=function(h){return h?g.Lc(h):""}; i4=function(h){g.O.call(this);this.api=h}; gR=function(h){i4.call(this,h);var t=this;W5(h,"setAccountLinkState",function(Y){t.setAccountLinkState(Y)}); W5(h,"updateAccountLinkingConfig",function(Y){t.updateAccountLinkingConfig(Y)}); h.addEventListener("videodatachange",function(Y,L){t.onVideoDataChange(L)}); h.addEventListener("settingsMenuInitialized",function(){t.menuItem=new hX(t.api);g.f(t,t.menuItem)})}; Umi=function(h){this.api=h;this.G={}}; Yt=function(h,t,Y,L){t in h.G||(Y=new g.aZ(Y,L,{id:t,priority:2,namespace:"appad"}),h.api.Ji([Y],1),h.G[t]=Y)}; L3=function(h){i4.call(this,h);var t=this;this.events=new g.UF(this);g.f(this,this.events);this.G=new Umi(this.api);this.events.V(this.api,"legacyadtrackingpingreset",function(){t.G.G={}}); this.events.V(this.api,"legacyadtrackingpingchange",function(Y){var L=t.G;Yt(L,"part2viewed",1,0x8000000000000);Yt(L,"engagedview",Math.max(1,Y.Pq*1E3),0x8000000000000);if(!Y.isLivePlayback){var q=Y.lengthSeconds*1E3;X$(Y)&&L.api.N("html5_shorts_gapless_ads_duration_fix")&&(q=L.api.getProgressState().seekableEnd*1E3-Y.PO);Yt(L,"videoplaytime25",q*.25,q);Yt(L,"videoplaytime50",q*.5,q);Yt(L,"videoplaytime75",q*.75,q);Yt(L,"videoplaytime100",q,0x8000000000000);Yt(L,"conversionview",q,0x8000000000000); Yt(L,"videoplaybackstart",1,q);Yt(L,"videoplayback2s",2E3,q);Yt(L,"videoplayback10s",1E4,q)}}); this.events.V(this.api,g.EX("appad"),this.T);this.events.V(this.api,g.kO("appad"),this.T)}; sgL=function(h,t,Y){if(!(Y in t))return!1;t=t[Y];Array.isArray(t)||(t=[t]);t=g.b(t);for(Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L={CPN:h.api.getVideoData().clientPlaybackNonce};Y=g.b3(Y,L);L=void 0;L=L===void 0?!1:L;(L=uL(e6(Y,C1W),Y,L,"Active View 3rd Party Integration URL"))||(L=void 0,L=L===void 0?!1:L,L=uL(e6(Y,Mf1),Y,L,"Google/YouTube Brand Lift URL"));L||(L=void 0,L=L===void 0?!1:L,L=uL(e6(Y,Fqp),Y,L,"Nielsen OCR URL"));g.rd(Y,void 0,L)}return!0}; qN=function(h,t){jgD(h,t).then(function(Y){g.rd(t,void 0,void 0,Y)})}; ze=function(h,t){t.forEach(function(Y){qN(h,Y)})}; jgD=function(h,t){return g.z4(h.api.J())&&h7(t)&&DF(t)?g.Up(h.api.J(),g.Pu(h.api.getVideoData())).then(function(Y){var L;Y&&(L={Authorization:"Bearer "+Y});return L},void 0):dj()}; ZO$=function(h){i4.call(this,h);this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"videoready",function(t){if(h.getPresentingPlayerType()===1){var Y,L,q={playerDebugData:{pmlSignal:!!((Y=t.getPlayerResponse())==null?0:(L=Y.adPlacements)==null?0:L.some(function(z){var V;return z==null?void 0:(V=z.adPlacementRenderer)==null?void 0:V.renderer})), contentCpn:t.clientPlaybackNonce}};g.tq("adsClientStateChange",q)}})}; VO=function(h){g.I.call(this,{Z:"button",Ei:["ytp-button","ytp-autonav-toggle"],j:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},B:[{Z:"div",D:"ytp-autonav-toggle-button-container",B:[{Z:"div",D:"ytp-autonav-toggle-button",j:{"aria-checked":"true"}}]}]});this.K=h;this.T=[];this.G=!1;this.isChecked=!0;h.createClientVe(this.element,this,113681);this.V(h,"presentingplayerstatechange",this.Y5);this.listen("click",this.onClick);this.K.J().N("web_player_autonav_toggle_always_listen")&& bOc(this);c5(h,this.element,this);this.Y5()}; bOc=function(h){h.T.push(h.V(h.K,"videodatachange",h.Y5));h.T.push(h.V(h.K,"videoplayerreset",h.Y5));h.T.push(h.V(h.K,"onPlaylistUpdate",h.Y5));h.T.push(h.V(h.K,"autonavchange",h.Qr))}; ojL=function(h){h.isChecked=h.isChecked;h.Tz("ytp-autonav-toggle-button").setAttribute("aria-checked",String(h.isChecked));var t=h.isChecked?"Autoplay is on":"Autoplay is off";h.updateValue("title",t);h.updateValue("label",t);h.K.HM()}; dmD=function(h){return h.K.J().N("web_player_autonav_use_server_provided_state")&&Vt(h.n6())}; GBn=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"standardControlsInitialized",function(){var Y=new VO(h);g.f(t,Y);h.tU(Y,"RIGHT_CONTROLS_LEFT")})}; NN=function(h,t){g.mM.call(this,g.Dh({role:"menuitemcheckbox","aria-checked":"false"}),t,h,{Z:"div",D:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; l4=function(h,t){h.checked=t;h.element.setAttribute("aria-checked",String(h.checked))}; Qg1=function(h){var t=!h.J().If&&h.getPresentingPlayerType()!==3;return h.isFullscreen()||t}; g.HI=function(h,t,Y,L){var q=h.currentTarget;if((Y===void 0||!Y)&&g.U6(h))return h.preventDefault(),!0;t.pauseVideo();h=q.getAttribute("href");g.vC(h,L,!0);return!1}; g.wR=function(h,t,Y){if(YD(t.J())&&t.getPresentingPlayerType()!==2){if(g.U6(Y))return t.isFullscreen()&&!t.J().externalFullscreen&&t.toggleFullscreen(),Y.preventDefault(),!0}else{var L=g.U6(Y);L&&t.pauseVideo();g.vC(h,void 0,!0);L&&(g.Ks(h),Y.preventDefault())}return!1}; rEL=function(h){h=WI.includes("en")?h.N("delhi_modern_web_player_icons")?HH():{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,j:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:h.N("delhi_modern_web_player_icons")?vIn():{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,j:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};h.D="ytp-subtitles-button-icon"; return h}; cE3=function(h){return WI.includes("en")?h?HH():{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:h?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},B:[{Z:"path",j:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; yO=function(){return{Z:"div",D:"ytp-spinner-container",B:[{Z:"div",D:"ytp-spinner-rotator",B:[{Z:"div",D:"ytp-spinner-left",B:[{Z:"div",D:"ytp-spinner-circle"}]},{Z:"div",D:"ytp-spinner-right",B:[{Z:"div",D:"ytp-spinner-circle"}]}]}]}}; XE=function(h){if(document.createRange){var t=document.createRange();t&&(t.selectNodeContents(h),h=window.getSelection())&&(h.removeAllRanges(),h.addRange(t))}}; MN=function(h){var t=h.N("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";NN.call(this,t,g.U$.zp);var Y=this;this.K=h;this.G=!1;this.T=new g.nE(function(){g.hp(Y.element,"ytp-menuitem-highlighted")},0); this.Rm=h.Q7();h=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(h);this.subscribe("select",this.S,this);this.listen(C3,this.W);g.f(this,this.T)}; FE=function(h){i4.call(this,h);var t=this;this.G=!1;h.addEventListener("settingsMenuInitialized",function(){u5L(t)}); h.addEventListener("highlightSettingsMenu",function(Y){u5L(t);var L=t.menuItem;Y==="menu_item_cinematic_lighting"&&(g.mS(L.element,"ytp-menuitem-highlighted"),g.mS(L.element,"ytp-menuitem-highlight-transition-enabled"),L.T.start())}); W5(h,"updateCinematicSettings",function(Y){t.updateCinematicSettings(Y)})}; u5L=function(h){h.menuItem||(h.menuItem=new MN(h.api),g.f(h,h.menuItem),h.menuItem.Hm(h.G))}; eh1=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"applicationvideodatachange",function(Y,L){L=L.clipConfig;Y==="dataloaded"&&L&&L.startTimeMs!=null&&L.endTimeMs!=null&&t.api.setLoopRange({startTimeMs:Math.floor(Number(L.startTimeMs)),endTimeMs:Math.floor(Number(L.endTimeMs)),postId:L.postId,type:"clips"})})}; s$=function(h){i4.call(this,h);this.events=new g.UF(h);g.f(this,this.events);W5(h,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));W5(h,"setCreatorEndscreenHideButton",this.G.bind(this))}; jy=function(h,t,Y,L){NN.call(this,"Stable Volume",g.U$.aj);g.mS(this.element,"ytp-drc-menu-item");this.Rm=h.Q7();this.S=t;this.G=Y;this.hasDrcAudioTrack=L;h.addEventListener("videodatachange",this.T.bind(this));h.N("mta_drc_mutual_exclusion_removal")&&this.V(h,"onPlaybackAudioChange",this.T);t=this.G()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());h=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(h);this.subscribe("select",this.W,this);l4(this,t);this.Rm.Qb(this)}; Z3=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);h.N("html5_show_drc_toggle")&&h.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new jy(t.api,t.setDrcUserPreference.bind(t),t.getDrcUserPreference.bind(t),t.T.bind(t)),g.f(t,t.menuItem))}); W5(this.api,"setDrcUserPreference",function(L){t.setDrcUserPreference(L)}); W5(this.api,"getDrcUserPreference",function(){return t.getDrcUserPreference()}); W5(this.api,"hasDrcAudioTrack",function(){return t.T()}); var Y;this.G=(Y=g.GI("yt-player-drc-pref"))!=null?Y:1;this.updateEnvironmentData()}; b4=function(h){i4.call(this,h);var t=this;this.G={};this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"videodatachange",function(){t.onVideoDataChange()}); this.events.V(h,g.EX("embargo"),function(Y){t.api.y7(!0);var L,q=(L=t.G[Y.id])!=null?L:[];L=g.b(q);for(q=L.next();!q.done;q=L.next()){var z=q.value;t.api.hideControls();t.api.Tm("auth",2,"This video isn't available in your current playback area",qS({embargoed:1,id:Y.id,idx:Y.T,start:Y.start}));q=void 0;(z=(q=z.embargo)==null?void 0:q.onTrigger)&&t.api.jM("innertubeCommand",z)}})}; JEn=function(h,t){var Y;return(Y=t.onEnter)==null?void 0:Y.some(h.T)}; pG$=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L=void 0,q=Number((L=Y.playbackPosition)==null?void 0:L.utcTimeMillis)/1E3,z=void 0;L=q+Number((z=Y.duration)==null?void 0:z.seconds);z="embargo_"+q;h.api.addUtcCueRange(z,q,L,"embargo",!1);Y.onEnter&&(h.G[z]=Y.onEnter.filter(h.T))}}; o8=function(h){i4.call(this,h);var t=this;this.G=[];this.events=new g.UF(h);g.f(this,this.events);W5(h,"addEmbedsConversionTrackingParams",function(Y){t.api.J().PL&&t.addEmbedsConversionTrackingParams(Y)}); this.events.V(h,"veClickLogged",function(Y){t.api.hasVe(Y)&&(Y=Y.visualElement.getAsJspb(),Y=GE(Y,2),t.G.push(Y))})}; vjL=function(h){i4.call(this,h);W5(h,"isEmbedsShortsMode",function(){return h.isEmbedsShortsMode()})}; Kq3=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"initialvideodatacreated",function(Y){nO(O1(),16623);t.G=g.yy();var L=h.J().fC&&!Y.mK;if(Bu(Y)&&L){nO(O1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(Y.getWatchNextResponse()){var q,z=(q=Y.getWatchNextResponse())==null?void 0:q.trackingParams;z&&TB(z)}if(Y.getPlayerResponse()){var V;(Y=(V=Y.getPlayerResponse())==null?void 0:V.trackingParams)&&TB(Y)}}else nO(O1(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),Y.getEmbeddedPlayerResponse()&&(V=(z=Y.getEmbeddedPlayerResponse())==null?void 0:z.trackingParams)&&TB(V)}); this.events.V(h,"loadvideo",function(){nO(O1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:t.G})}); this.events.V(h,"cuevideo",function(){nO(O1(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:t.G})}); this.events.V(h,"largeplaybuttonclicked",function(Y){nO(O1(),27240,Y.visualElement)}); this.events.V(h,"playlistnextbuttonclicked",function(Y){nO(O1(),27240,Y.visualElement)}); this.events.V(h,"playlistprevbuttonclicked",function(Y){nO(O1(),27240,Y.visualElement)}); this.events.V(h,"playlistautonextvideo",function(){nO(O1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; dR=function(h,t){g.O.call(this);var Y=this;this.G=null;this.S=t;t=[];for(var L=0;L<=100;L++)t.push(L/100);t={threshold:t,trackVisibility:!0,delay:1E3};(this.T=window.IntersectionObserver?new IntersectionObserver(function(q){q=q[q.length-1];var z=null;typeof q.isVisible==="undefined"?document.visibilityState==="visible"&&q.isIntersecting&&q.intersectionRatio>0?z=q.intersectionRatio:document.visibilityState==="hidden"?z=0:z=null:z=q.isVisible?q.intersectionRatio:0;z!=null&&(z=Math.max(z,0),z=Math.min(z, 1));Y.G=z;typeof Y.S==="function"&&Y.S(Y.G)},t):null)&&this.T.observe(h)}; xmb=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"applicationInitialized",function(){avW(t)})}; avW=function(h){var t=h.api.getRootNode(),Y,L=h.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((Y=t.parentElement)==null?void 0:Y.parentElement)||t:t;h.G=new dR(L,function(q){q!=null&&(h.api.J().LI=q,h.api.J().MG="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.f(h,h.G);h.events.V(h.api,"videoStatsPingCreated",function(q){var z=h.G;z=z.G==null?null:Math.round(z.G*100)/100;q.inview=z!=null?z:void 0;z=h.api.getPlayerSize();if(z.height>0&&z.width>0){z=[Math.round(z.width),Math.round(z.height)];var V=g.qD();V>1&&z.push(V);z=z.join(":")}else z=void 0;q.size=z})}; EjW=function(h){var t;return((t=((h==null?void 0:h.messageRenderers)||[]).find(function(Y){return!!Y.timeCounterRenderer}))==null?void 0:t.timeCounterRenderer)||null}; Ge=function(h){g.I.call(this,{Z:"div",Ei:["ytp-player-content","ytp-iv-player-content"],B:[{Z:"div",D:"ytp-free-preview-countdown-timer",B:[{Z:"span",o0:"{{label}}"},{Z:"span",D:"ytp-free-preview-countdown-timer-separator",o0:"\u2022"},{Z:"span",o0:"{{duration}}"}]}]});this.api=h;this.G=null;this.S=this.T=0;this.V(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; OOL=function(h,t){h.G||(h.T=t,h.S=(0,g.FH)(),h.G=new g.O8(function(){kBD(h)},null),kBD(h))}; kBD=function(h){var t=Math,Y=t.round,L=Math.min((0,g.FH)()-h.S,h.T);t=Y.call(t,(h.T-L)/1E3);h.updateValue("duration",pO({seconds:t}));t<=0&&h.G?h.stopTimer():h.G&&h.G.start()}; nj$=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"basechromeinitialized",function(){t.G=new Ge(h);g.f(t,t.G);g.kl(h,t.G.element,4);t.G.hide()})}; QO=function(h){g.I.call(this,{Z:"button",Ei:["ytp-fullerscreen-edu-button","ytp-button"],B:[{Z:"div",Ei:["ytp-fullerscreen-edu-text"],o0:"Scroll for details"},{Z:"div",Ei:["ytp-fullerscreen-edu-chevron"],B:[{Z:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",j:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],j:{"data-priority":"2"}});this.m_=h;this.fade=new g.ST(this,250,void 0,100);this.T=this.G=!1;h.createClientVe(this.element,this,61214);g.f(this, this.fade);this.V(h,"fullscreentoggled",this.Hm);this.V(h,"presentingplayerstatechange",this.Hm);this.listen("click",this.onClick);this.Hm()}; rR=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);W5(this.api,"updateFullerscreenEduButtonSubtleModeState",function(L){t.updateFullerscreenEduButtonSubtleModeState(L)}); W5(this.api,"updateFullerscreenEduButtonVisibility",function(L){t.updateFullerscreenEduButtonVisibility(L)}); var Y=h.J();h.N("external_fullscreen_with_edu")&&Y.externalFullscreen&&YD(Y)&&Y.controlsType==="1"&&this.events.V(h,"standardControlsInitialized",function(){t.G=new QO(h);g.f(t,t.G);h.tU(t.G)})}; fvr=function(h){g.I.call(this,{Z:"div",D:"ytp-gated-actions-overlay",B:[{Z:"div",D:"ytp-gated-actions-overlay-background",B:[{Z:"div",D:"ytp-gated-actions-overlay-background-overlay"}]},{Z:"button",Ei:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],j:{"aria-label":"Close"},B:[g.lR()]},{Z:"div",D:"ytp-gated-actions-overlay-bar",B:[{Z:"div",D:"ytp-gated-actions-overlay-text-container",B:[{Z:"div",D:"ytp-gated-actions-overlay-title",o0:"{{title}}"},{Z:"div",D:"ytp-gated-actions-overlay-subtitle", o0:"{{subtitle}}"}]},{Z:"div",D:"ytp-gated-actions-overlay-button-container"}]}]});var t=this;this.api=h;this.background=this.Tz("ytp-gated-actions-overlay-background");this.T=this.Tz("ytp-gated-actions-overlay-button-container");this.G=[];this.V(this.Tz("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){t.api.jM("onCloseMiniplayer")}); this.hide()}; TxL=function(h,t){var Y=0;Y=0;for(var L={};Y q&&(q=l.width,z="url("+l.url+")")}Y.background.style.backgroundImage=z;TxL(Y,L.actionButtons||[]);Y.show()}else Y.hide()}); g.kl(this.api,this.G.element,4)}; cI=function(h){i4.call(this,h);var t=this;X6(this.api,"getSphericalProperties",function(){return t.getSphericalProperties()}); X6(this.api,"setSphericalProperties",function(){t.setSphericalProperties.apply(t,g.p(g.OL.apply(0,arguments)))}); yE(this.api,"getSphericalProperties",function(){return t.api.getPresentingPlayerType()===2?{}:t.getSphericalProperties()}); yE(this.api,"setSphericalProperties",function(){var Y=g.OL.apply(0,arguments);t.api.getPresentingPlayerType()!==2&&t.setSphericalProperties.apply(t,g.p(Y))})}; u4=function(h){i4.call(this,h);W5(h,"createClientVe",this.createClientVe.bind(this));W5(h,"createServerVe",this.createServerVe.bind(this));W5(h,"destroyVe",this.destroyVe.bind(this));W5(h,"hasVe",this.hasVe.bind(this));W5(h,"logClick",this.logClick.bind(this));W5(h,"logVisibility",this.logVisibility.bind(this));W5(h,"setTrackingParams",this.setTrackingParams.bind(this))}; ey=function(h,t,Y,L){function q(V){var l=!(V.status!==204&&V.status!==200&&!V.response),H;V={succ:""+ +l,rc:V.status,lb:((H=V.response)==null?void 0:H.byteLength)||0,rt:((0,g.FH)()-z).toFixed(),shost:g.VC(h),trigger:t};S1p(V,h);Y&&Y(V);L&&!l&&L(new g.zk("pathprobe.net",V))} var z=(0,g.FH)();g.Ci(h,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:q,onTimeout:q})}; S1p=function(h,t){var Y;((Y=window.performance)==null?0:Y.getEntriesByName)&&(t=performance.getEntriesByName(t))&&t.length&&(t=t[0],h.pedns=(t.domainLookupEnd-t.startTime).toFixed(),h.pecon=(t.connectEnd-t.domainLookupEnd).toFixed(),h.perqs=(t.requestStart-t.connectEnd).toFixed(),IvD&&(h.perqsa=t.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Rhp=function(h){IvD=h}; JX=function(h,t){this.TD=h;this.policy=t;this.playbackRate=1}; BxL=function(h,t){var Y=Math.min(2.5,cc(h.TD));h=p3(h);return t-Y*h}; vI=function(h,t,Y,L,q){q=q===void 0?!1:q;if(h.policy.IG)return Math.ceil(h.policy.IG*t);h.policy.sW&&(L=Math.abs(L));L/=h.playbackRate;var z=1/JU(h.TD);Y=Math.max(.9*(L-3),cc(h.TD)+h.TD.T.G*z)/z*.8/(t+Y);Y=Math.min(Y,L);h.policy.Ym>0&&q&&(Y=Math.max(Y,h.policy.Ym));return P1i(h,Y,t)}; P1i=function(h,t,Y){return Math.ceil(Math.max(Math.max(h.policy.MS,h.policy.LA*Y),Math.min(Math.min(h.policy.Ne,31*Y),Math.ceil(t*Y))))||h.policy.MS}; mmL=function(h,t,Y){Y=vI(h,t.G.info.Lb,Y.G.info.Lb,0);var L=cc(h.TD)+Y/JU(h.TD);return Math.max(L,L+h.policy.Sg-Y/t.G.info.Lb)}; p3=function(h){return JU(h.TD,!h.policy.jf,h.policy.Iw)}; K3=function(h){return p3(h)/h.playbackRate}; a8=function(h,t,Y){var L=h.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],q=h.policy.playbackStartPolicy.startMinReadaheadPolicy||[];h=Infinity;t=g.b(t&&L.length>0?L:q);for(L=t.next();!L.done;L=t.next())L=L.value,q=L.minReadaheadMs||0,Y<(L.minBandwidthBytesPerSec||0)||h>q&&(h=q);return h0&&(this.T=Y.CA)}; tFi=function(h,t,Y,L,q){if(!L.info.X){if(Y.length===0)Y.push(L);else{var z;(h=(z=Y.pop())==null?void 0:g.ML(z,L))?Y.push(h):Y.push(L)}return q}var V;(Y=(V=Y.pop())==null?void 0:g.ML(V,L))||(Y=L);if(Y.info.T)return h.logger&&h.logger({incompleteSegment:Y.info.uL()}),q;L=h.E4(Y);q=L.Kb;L={clipId:L.clipId,formatId:L.formatId,startTimeMs:L.startTimeMs,durationMs:L.FN,bx:q,P2:q};q=Dmc(t,L.startTimeMs);if(z=Y=q>=0?t[q]:null){z=L;var l=q;V=Y.startTimeMs+Y.durationMs;var H=z.startTimeMs+z.durationMs;if(z.startTimeMs- V>h.T)z=!1;else if(hGL(h,Y.formatId,z.formatId))Y.durationMs=Math.max(V,H)-Y.startTimeMs,Y.P2=Math.max(Y.P2,z.P2),z=!0;else if(Math.abs(Y.startTimeMs-z.startTimeMs)<=h.T)if(Y.durationMs>z.durationMs+h.T){var w=Y.formatId,W=Y.bx;l=Y.P2;Y.formatId=z.formatId;Y.durationMs=z.durationMs;Y.bx=z.bx;Y.P2=z.P2;z.formatId=w;z.startTimeMs=H;z.durationMs=V-H;z.bx=W;z.P2=l;z=!1}else Y.formatId=z.formatId,z=!0;else V>z.startTimeMs&&(V>H&&(t.splice(l+1,0,{formatId:Y.formatId,startTimeMs:H,durationMs:V-H,bx:z.P2+ 1,P2:Y.P2}),h.logger&&h.logger({splitOldStart:(w=Y.startTimeMs)==null?void 0:w.toFixed(3),splitOldEnd:V==null?void 0:V.toFixed(3),splitNewStart:(W=z.startTimeMs)==null?void 0:W.toFixed(3),splitNewEnd:H==null?void 0:H.toFixed(3)})),Y.durationMs=z.startTimeMs-Y.startTimeMs,Y.P2=z.bx-1),z=!1}z?L=Y:(q+=1,t.splice(q,0,L));w=0;for(W=q+1;W=H+Y.T?Y=!0:l+Y.T=0?h:-h-2}; ihc=function(h,t){if(h.ND){var Y=h.ND.iV();if(Y.length!==0){if(h.S&&t){var L=h.S,q=L.info.W;!$W(Y,q)&&L.info.Y>0&&(0,g.FH)()-h.U<5E3&&(h.logger&&h.logger({dend:L.info.uL()}),Y=pH3(Y,q,q+.01))}h.policy.PS&&h.logger&&h.logger({cbri:""+h.G});L=[];for(var z=q=0;q=V){var W=Object.assign({},h.P3[z]),y=h.Cb.S.get(nz(h.P3[z].formatId)),X=Math.max(H,V);V=y.index.RF(X+h.T/ 1E3);H=y.index.getStartTime(V);var U=V+ +(Math.abs(H-X)>h.T/1E3);X=U+h.W;U=y.index.getStartTime(U)*1E3;z!==h.G||t?(W.bx=X,W.startTimeMs=U):(h.logger&&h.logger({pEvict:"1",og:W.startTimeMs,adj:H*1E3}),W.bx=V+h.W,W.startTimeMs=H*1E3);V=void 0;H=((V=h.S)==null?void 0:V.info.duration)||11;z===h.G&&lh.T/1E3);V=H+h.W;y=y.index.yB(H)*1E3;W.P2=V;W.durationMs=y-W.startTimeMs;W.bx<=W.P2&&L.push(W)}w=0&&f3(h.audioTrack,h.targetTime)>=0&&z?((h.videoTrack.X||h.audioTrack.X)&&h.loader.Pm("iterativeSeeking",{status:"done",count:h.seekCount}),h.videoTrack.X=!1,h.audioTrack.X=!1):L&&g.ZL(function(){if(h.G||!h.policy.Pq)AX(h);else{var V=t.startTime,l=t.duration;if(!h.policy.X){var H=Y?h.videoTrack.X:h.audioTrack.X,w=h.videoTrack.U!==-1&&h.audioTrack.U!==-1,W=h.targetTime>=V&&h.targetTime432E3&&v_$(h.Cb);h.T&&(q=h.T,h.T=0);g.ZL(function(){h.policy.X||Sy(h,q,102)}); h.loader.Pm("initManifestlessSync",{st:q,ost:q+h.loader.O3(),a:h.audioTrack.U,v:h.videoTrack.U});h.S&&(h.S.resolve(q+.1),h.S=null);h.policy.X&&Sy(h,q,102)}}}; BI=function(h,t){var Y=this;this.S4=h;this.requestNumber=++X8b;this.G=this.now();this.Y=this.L=NaN;this.C=this.G;this.S=this.Ds=this.X=0;this.U=this.G;this.iP=this.x8=this.X5=this.Im=this.dP=this.Wm=this.T=this.W=0;this.AQ=this.isActive=!1;this.Q4=this.tQ=0;this.zD={yLx:function(){return Y.QE}}; this.TD=t.TD;this.snapshot=lu$(this.TD);this.policy=this.TD.T;this.rA=!!t.rA;this.Yx=t.Yx;this.lz=t.lz||0;this.KC=t.KC||0;t.Dv&&(this.gU=new sZ);var L;this.QE=(L=t.QE)!=null?L:!1;this.rA||zUD(this.TD)}; U9L=function(h){h.X5=Math.max(h.X5,h.X-h.dP);h.x8=Math.max(h.x8,h.C-h.Im);h.Wm=0}; PI=function(h,t,Y){VSD(h.TD,t);h.gU&&(h.gU.add(Math.ceil(t)-Math.ceil(h.C)),h.gU.add(Math.max(0,Math.ceil(Y/1024)-Math.ceil(h.X/1024))));var L=t-h.C,q=Y-h.X;h.Ds=q;h.iP=Math.max(h.iP,q/(L+.01)*1E3);h.C=t;h.X=Y;h.Wm&&Y>h.Wm&&U9L(h)}; mp=function(h,t){h.url=t;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; D3=function(h,t){BI.call(this,h,t);this.Pq=this.Hq=!1;this.Zx=this.R0=Infinity;this.Ne=NaN;this.G$=!1;this.yG=NaN;this.y4=this.lP=this.Y8=0;this.ZL=t.ZL||1;this.DB=t.DB||this.ZL;this.DC=t.DC;this.Kb=t.Kb;this.SF=t.SF;Crn(this);this.aU(this.G);this.MD=(this.yG-this.G)/1E3}; MFi=function(h){var t=h.lP||h.Y8;return t?h.snapshot.delay+Math.min(h.KC,(h.Y-h.L)/1E3)+t:h.MD}; hz=function(h,t,Y){if(!h.rA){t=Math.max(t,.01);var L=h.lz?Math.max(t,Y/h.lz):t,q=h.TD.T.S;q&&(L=t,h.lz&&(L=Math.max(t,Y/h.lz*q)));Gi(h.TD,t,Y,L)}}; FBL=function(h){return(h.U-h.G)/1E3}; Crn=function(h){h.Ne=h.G+h.snapshot.delay*1E3;h.G$=!1}; tz=function(h,t){if(h.DC&&h.Kb!==void 0&&h.SF!==void 0){var Y=Math,L=Y.min,q=h.R0;var z=h.DC;var V=h.G;if(smi(z,h.Kb))z=t;else{var l=0;z.TQ&&(l=.2);z=V+(z.KC+l)*1E3}h.R0=L.call(Y,q,z);Y=Math;L=Y.min;q=h.Zx;z=h.DC;V=h.G;l=jmD(z,h.Kb,h.SF);l!==2&&(t=l?t:V+z.KC*1E3,z.TQ&&(t+=z.KC*1E3));h.Zx=L.call(Y,q,t);h.R0<=h.G?Crn(h):(h.Ne=h.R0,h.G$=!0)}}; ZhL=function(h,t){if(t+1<=h.totalLength){var Y=LW(h,t);Y=Y<128?1:Y<192?2:Y<224?3:Y<240?4:5}else Y=0;if(Y<1||!(t+Y<=h.totalLength))return[-1,t];if(Y===1)h=LW(h,t++);else if(Y===2)Y=LW(h,t++),h=LW(h,t++),h=(Y&63)+64*h;else if(Y===3){Y=LW(h,t++);var L=LW(h,t++);h=LW(h,t++);h=(Y&31)+32*(L+256*h)}else if(Y===4){Y=LW(h,t++);L=LW(h,t++);var q=LW(h,t++);h=LW(h,t++);h=(Y&15)+16*(L+256*(q+256*h))}else Y=t+1,h.focus(Y),iT(h,Y,4)?h=xPb(h).getUint32(Y-h.S,!0):(L=LW(h,Y+2)+256*LW(h,Y+3),h=LW(h,Y)+256*(LW(h,Y+1)+ 256*L)),t+=5;return[h,t]}; iH=function(h){this.S4=h;this.G=new mD}; YR=function(h,t){this.info=h;this.callback=t;this.state=1;this.wj=this.Et=!1;this.T3=null}; bh$=function(h){return g.MG(h.info.bP,function(t){return t.type===3})}; La=function(h,t,Y,L){var q=this;L=L===void 0?{}:L;this.policy=t;this.S4=Y;this.status=0;this.G=new mD;this.T=0;this.Ui=this.W=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(L.method||"GET",h);if(L.headers)for(h=L.headers,t=g.b(Object.keys(h)),Y=t.next();!Y.done;Y=t.next())Y=Y.value,this.xhr.setRequestHeader(Y,h[Y]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return q.jV()}; this.xhr.onload=function(){return q.onDone()}; this.xhr.onerror=function(){return q.onError()}; this.xhr.fetch(function(z){q.G.append(z);q.T+=z.length;z=(0,g.FH)();q.S4.oG(z,q.T)},function(){},L.body||null)}; oQb=function(h,t){this.T=(new TextEncoder).encode(h);this.G=(new TextEncoder).encode(t)}; bF6=function(h,t){var Y;return g.k(function(L){if(!t)return L.return(t);Y=new g.YB(h.T);return L.return(Y.encrypt(t,h.G))})}; rj6=function(h,t){var Y;return g.k(function(L){if(L.T==1){if(!t)return L.return(t);Y=new g.YB(h.T);return g.K(L,Y.decrypt(t,h.G),2)}return L.return(L.G)})}; Gop=function(h,t){var Y=this;this.G=h;this.S4=t;this.loaded=this.status=0;this.error="";h=T2(this.G.get("range")||"");if(!h)throw Error("bad range");this.range=h;this.T=new mD;d9L(this).then(function(){Y.S4.q4()},function(L){Y.error=""+L||"unknown_err"; Y.S4.q4()})}; d9L=function(h){var t,Y,L,q,z,V,l,H,w,W,y,X,U,C,d;return g.k(function(Q){if(Q.T==1){h.status=200;t=h.G.get("docid");Y=us(h.G.get("fmtid")||"");L=h.G.get("lmt")||"0";q=+(h.G.get("csz")||0);if(!t||!Y||!q)throw Error("Invalid local URL");h.G.get("ck")&&h.G.get("civ")&&(z=new oQb(h.G.get("ck"),h.G.get("civ")));V=h.range;l=Math.floor(V.start/q);H=Math.floor(V.end/q);w=l}if(Q.T!=5)return w<=H?g.K(Q,cji(t,Y,L,w,z),5):Q.eM(0);W=Q.G;if(W===void 0)throw Error("invariant: data is undefined");y=w*q;X=(w+1)*q; U=Math.max(0,V.start-y);C=Math.min(V.end+1,X)-(U+y);d=new Uint8Array(W.buffer,U,C);h.T.append(d);h.loaded+=C;h.loaded=400?(h.lastError="net.badstatus",!0):(q===void 0?0:q)?(h.lastError="ump.spsrejectfailure",!0):Y||L!==void 0&&L?!1:(h.lastError=t===204?"net.nocontent":"net.connect",!0)}; yX=function(h,t){if(h.policy.sI)return!1;var Y=t.getResponseHeader("content-type"),L=t.Rc();h=!L||L<=h.policy.u9;return(!t.Mf()||!Y||Y.indexOf("text/plain")!==-1)&&h}; KBp=function(h,t){var Y="";t=t.zH();t.totalLength<=h.policy.u9&&(Y=vQc(h,gX(t)));return Y}; vQc=function(h,t){var Y=z1(t);return J8(Y)?(h.logger.debug(function(){return"Redirecting to "+Y}),Y):""}; lH=function(h){return Kz(h.S,Os(h.uV.Yv))}; asW=function(h){var t=h.timing.cA();t.shost=Os(h.uV.Yv);return t}; x96=function(h,t){return(h==null?void 0:h.maxWidth)>(t==null?void 0:t.maxWidth)||(h==null?void 0:h.maxHeight)>(t==null?void 0:t.maxHeight)}; EQp=function(h,t){for(var Y=g.b(t.keys()),L=Y.next();!L.done;L=Y.next())if(L=t.get(L.value),L.length!==0){g.SE(L,function(l,H){return H.maxFramerate-l.maxFramerate}); for(var q=[L[0]],z=0,V=1;Vh.G||Y.push(L)}return Y}; XY=function(h,t,Y){var L=nQL[h]||[];Y.N("html5_shorts_onesie_mismatched_fix")&&(L=fsL[h]||[]);t.push.apply(t,g.p(L));Y.N("html5_early_media_for_drm")&&t.push.apply(t,g.p($96[h]||[]))}; BO3=function(h,t){var Y=g.sf(h),L=h.J(),q=L.X;L=L.N("html5_shorts_onesie_mismatched_fix");var z=h.m2();if(L){if(!q.T){if(z&&Ur)return Ur;if(Ca)return Ca}}else if(Ca&&!q.T)return Ca;var V=[],l=[],H={},w=M2.concat(TOL);L&&(w=M2.concat(A66));h.N("html5_early_media_for_drm")&&(w=w.concat(SsW),h.N("allow_vp9_1080p_mq_enc")&&w.push(Is3));var W=[].concat(g.p(RGL));h.N("html5_iamf_audio_onesie_fmt")&&W.push(["773"]);w=g.b(w);for(var y=w.next();!y.done;y=w.next()){var X=!1;y=g.b(y.value);for(var U=y.next();!U.done;U= y.next()){U=U.value;var C=MD(U,z&&L);if(C&&C.video&&!(rq(C)&&!Y.R0&&C.video.qualityOrdinal>Y.QP)){var d=g.Sk(h.J().experiments,"html5_drm_byterate_soft_cap");d>0&&eS6(C)&&C.Lb>d||(X?(V.push(U),XY(U,V,h)):(C=ur(Y,C,q),C===!0?(X=!0,V.push(U),XY(U,V,h)):H[U]=C))}}}W=g.b(W);for(w=W.next();!w.done;w=W.next())for(w=g.b(w.value),X=w.next();!X.done;X=w.next())if(X=X.value,(y=vGL(X))&&y.audio&&(h.N("html5_onesie_51_audio")||!cd(y)&&!u_(y)))if(y=ur(Y,y,q),y===!0){l.push(X);XY(X,l,h);break}else H[X]=y;if(!h.N("html5_enable_audio_quality_setting"))for(h= g.b(["141","774"]),W=h.next();!W.done;W=h.next())W=W.value,l.includes(W)&&(g.bl(l,W),H[W]="blkhqa");Y.T&&t("orfmts",H);if(L)return q.T&&(q.T=!1,Ur=Ca=void 0),z?Ur={video:V,audio:l}:Ca={video:V,audio:l};Ca={video:V,audio:l};q.T=!1;return Ca}; g.D9L=function(h,t,Y){var L=Y.X,q=[],z=[],V=Y.N("html5_shorts_onesie_mismatched_fix");h=h.m2();var l=M2.concat(TOL);V&&(l=M2.concat(A66));Y.N("html5_early_media_for_drm")&&(l=l.concat(SsW),Y.N("allow_vp9_1080p_mq_enc")&&l.push(Is3));var H=[].concat(g.p(RGL));Y.N("html5_iamf_audio_onesie_fmt")&&H.push(["773"]);l=g.b(l);for(var w=l.next();!w.done;w=l.next()){w=g.b(w.value);for(var W=w.next();!W.done;W=w.next()){W=W.value;var y=MD(W,h&&V);if(y&&y.video){var X=g.Sk(Y.experiments,"html5_drm_byterate_soft_cap"); if(!(X>0&&eS6(y)&&y.Lb>X)&&ur(t,y,L)===!0){q.push({videoCodec:Prr[b_[W]],maxWidth:y.video.width,maxHeight:y.video.height,maxFramerate:y.video.fps});break}}}}V=g.b(H);for(h=V.next();!h.done;h=V.next())for(h=g.b(h.value),H=h.next();!H.done;H=h.next())if(H=H.value,(l=vGL(H))&&l.audio&&(Y.N("html5_onesie_51_audio")||!cd(l)&&!u_(l))&&ur(t,l,L)===!0){z.push({audioCodec:m9i[b_[H]],numChannels:l.audio.numChannels});break}return{videoFormatCapabilities:q,audioFormatCapabilities:z}}; gEL=function(h){var t,Y={},L=h.qe,q=h.SM,z=L.getVideoData(),V=VH(0),l=L.getVisibilityState();if(q.N("html5_enable_audio_quality_setting")){var H=g.Sk(q.experiments,"html5_default_audio_quality_setting_lr"),w;Y.rD=(w=hfc[H])!=null?w:0}V&&(Y.po=V,Y.lastManualDirection=Byr(),V=SKc()||0,V>0&&(V=(q.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.FH)())-V,q.N("html5_use_date_now_for_local_storage")?V>0&&(Y.timeSinceLastManualFormatSelectionMs=V):Y.timeSinceLastManualFormatSelectionMs=V));V=q.N("html5_use_streamer_bandwidth_for_low_latency_live")&& z.isLowLatencyLiveStream;if(q.schedule.AQ&&!V){var W;V=q.N("html5_disable_bandwidth_cofactors_for_sabr_live")?!((W=h.bV)==null||!W.jf):!1;Y.FK=JU(q.schedule,!V)}W=g.FS.medium;V=Math.floor(W*16/9);(H=z.m2())||(z.G&&z.S&&z.S.videoInfos.length!==0?(H=z.S.videoInfos[0],H=!!H.video&&H.video.width0?{authorizedFormats:h.authorizedFormats}:{authorizedFormats:t};h.sabrLicenseConstraint&&(Y.HX.sabrLicenseConstraint=h.sabrLicenseConstraint);if(q.N("html5_onesie_media_capabilities")||q.N("html5_enable_server_format_filter"))Y.w8= 3;q.N("html5_onesie_audio_only_playback")&&Uf(z)&&(Y.w8=1);var J;((J=h.bV)==null?0:J.Vb)&&h.Th&&(Y.w8=Y.w8===void 0?7:Y.w8|4);J=z.eh?z.eh:g.sf(z);q.N("html5_onesie_media_capabilities")&&(Y.mediaCapabilities=g.D9L(z,J,q));var e;if((e=h.bV)==null?0:FY(e)){y=q.X;e=[];t=[];X=new Map;U=Array.from(y.G.values());U=g.b(U);for(C=U.next();!C.done;C=U.next())d=C.value,d.N0?t.push({audioCodec:m9i[d.wU],numChannels:d.numChannels,spatialCapabilityBitmask:tGL[d.wU]}):(Q=Prr[d.wU],C={videoCodec:Q,maxWidth:d.maxWidth|| 0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.Ic||!1},d.maxBitrateBps&&(C.maxBitrateBps=d.maxBitrateBps,l=MD(d.itag),W=void 0,((W=l)==null?0:W.video)&&ur(J,l,y)===!0&&(l=l.Lb*8,l>C.maxBitrateBps&&(C.maxBitrateBps=l))),d=Q+"_"+d.Ic,Q=X.get(d)||[],Q.push(C),X.set(d,Q));e=EQp(e,X);y={};q.N("html5_ssff_denylist_opus_low")&&(y={itagDenylist:[249,350]});Y.mediaCapabilities={videoFormatCapabilities:e,audioFormatCapabilities:t,hdrModeBitmask:3,perPlaybackAttributes:y}}var v; if((v=h.bV)==null?0:v.G){Y.aY=J.aY;var E;Y.QP=(E=h.bV)==null?void 0:E.QP}q.lR&&(Y.v1=q.lR);Y.Js=h.Qi;Y.Qg=h.Qg;Y.Eb=h.Eb;Y.Rt=h.Rt;h.n_&&(Y.ZCi=(0,g.FH)()-h.n_);h.isPrefetch&&q.N("html5_report_prefetch_requests")&&(Y.isPrefetch=!0);wG||(Y.PPx=!0);v=cc(q.schedule)*1E3;v>0&&(Y.TY=v);var T;((T=h.bV)==null?0:T.j8)&&h.Zm&&h.Zm0?hr:q.schedule.interruptions[0]||0;var B;if((B=h.bV)==null?0:B.Q4)Y.n4=h.n4;q.yG&&(Y.audioTrackId=q.yG);DK(z)&&!Y.audioTrackId&&(q.N("html5_fill_default_mosaic_audio_track_id")||(h=pU6(z),Y.audioTrackId=h),z==null||z.Pm("misstrkchg",{"default":Y.audioTrackId}));if(z=rsL())Y.detailedNetworkType=izL[z]||izL.other;q.N("html5_enable_voice_boost")&&(Y.MFP=q.GV);return Y}; sr=function(h,t,Y,L,q,z,V){var l={};t&&(l.hY=t);if(!h)return l;l.playbackCookie=Y==null?void 0:Y.playbackCookie;q&&(l.us=q);l.JM=[];l.GR=[];if(V==null?0:V.size)for(t=g.b(V.values()),Y=t.next();!Y.done;Y=t.next())l.GR.push(Y.value);if(h.sabrContextUpdates.size>0)for(t=g.b(h.sabrContextUpdates.values()),Y=t.next();!Y.done;Y=t.next())YI$(l,Y.value,L);F$(h)&&z&&YI$(l,z,L);h.nj&&(l.sWz=h.nj);L=h.J().G;l.clientInfo={clientName:L0r[L.c.toUpperCase()]||0};L.cbrand&&(l.clientInfo.deviceMake=L.cbrand);L.cmodel&& (l.clientInfo.deviceModel=L.cmodel);L.cver&&(l.clientInfo.clientVersion=L.cver);L.cos&&(l.clientInfo.osName=L.cos);L.cosver&&(l.clientInfo.osVersion=L.cosver);L=h.J();L.N("html5_sabr_enable_server_xtag_selection")&&L.Vb&&(l.clientInfo.hl=L.Vb);h.qd&&(l.qd=h.qd);return l}; YI$=function(h,t,Y){var L=t.type||0;(Y==null?0:Y.has(L))?h.GR.push(t):h.JM.push(L)}; O$=function(h,t,Y,L,q,z){var V=z===void 0?{}:z;var l=V.a9===void 0?[]:V.a9;var H=V.Wa===void 0?!1:V.Wa;var w=V.Mx===void 0?0:V.Mx;var W=V.poToken===void 0?"":V.poToken;var y=V.vR===void 0?void 0:V.vR;var X=V.gK===void 0?"":V.gK;var U=V.NF===void 0?0:V.NF;var C=V.UL===void 0?new Uint8Array(0):V.UL;var d=V.pW===void 0?!1:V.pW;z=V.Tu===void 0?0:V.Tu;V=V.hY===void 0?void 0:V.hY;YR.call(this,t,q);var Q=this;this.policy=h;this.logger=new g.yn("dash/request");this.Gg=this.Dg=0;this.Az=!1;this.Wo=this.wA= null;this.J2=!1;this.UL=this.NF=null;this.vF=this.Kc=!1;this.LD=null;this.Tu=this.Z1=0;this.bF=!1;this.zD={H3:function(e){Q.H3(e)}, oS5:function(){return Q.T3}, jGm:function(e){Q.T3=e}, JKG:function(e){Q.Dg=e}, dQm:function(e){Q.Zo.lastError=e}, xr:function(){return Q.xhr}}; this.timing=new D3(this,Y);this.Wa=H;this.NF=U;this.UL=C;this.uV=g.Yw(this.info,this.policy,L);this.uV.set("rn",this.QQ().toString());this.uV.set("rbuf",(w*1E3).toFixed().toString());this.Wa&&this.uV.set("smb","1");this.policy.tj&&W&&this.uV.set("pot",W);X&&this.uV.set("bbs",X);this.policy.useUmp&&!nh(this.uV.Yv)&&(this.jT=new iH(this),this.uV.set("ump","1"),this.uV.set("srfvp","1"));if(h=this.policy.Lg?this.policy.CD&&!isNaN(this.info.SF)&&this.info.SF>this.policy.qL?!1:!0:!1)t=null,this.policy.GX&& this.policy.Ru?t=[1]:d&&(t=[]),t!=null&&(this.policy.KD&&t.push(2),this.uV.set("defsel",t.join(",")));this.Zo=new N2(this,this.policy,this.uV,this.info.e4,this.timing,this.logger,L,y);this.a9=l||null;this.wj=qIL(this);uZn(this.Zo);L=void 0;if(this.policy.mu||this.jT||this.policy.X5)L={method:"POST"},l=(0,g.jn)([120,0]),y={},this.policy.aC&&V&&(V=sr(void 0,V),y.eG=V),this.policy.L4&&this.UL&&(y.videoPlaybackUstreamerConfig=this.UL),this.policy.X5&&(V=this.info.W)&&Object.assign(y,V),Object.keys(y).length> 0?L.body=g.nW(y,g.Lh):L.body=l;if(this.NF&&this.UL){this.uV.set("iwts","1");L={method:"POST"};V={Rt:this.NF*1E3};var J;l=(J=this.info.W)==null?void 0:J.OW;J=g.nW({RX:V,OW:l||void 0,videoPlaybackUstreamerConfig:this.UL},g.Lh);L.body=J}try{this.xhr=q2(this.uV,this.policy.C,this.timing,h,L),this.Zo.T.start(),z&&(this.Qy=new g.nE(this.sx,z,this),this.Qy.start(z+(this.timing.TD.Y.ID()||0)*1E3)),this.policy.vp&&mp(this.timing,this.K6()),this.logger.debug(function(){return"Sent, itag="+Q.uV.get("itag")+ " seg="+Q.info.bP[0].Kb+" range="+Q.uV.get("range")+" time="+Math.round(Q.info.bP[0].W)+"-"+Math.round(g.U0(Q.info.bP).U)+" rtp="+(Q.timing.Td()-Date.now()).toFixed(0)}),g.ZL(function(){})}catch(e){zfr(this,e,!0)}}; qIL=function(h){if(!(gQ(h.info)&&h.info.QE()&&h.policy.Cr&&h.a9)||h.info.e4.S>=2||VH()>0||!hR6())return!1;var t=h.uV.get("aitags");if(!t)return!1;t=us(t).split(",");for(var Y=[],L=g.b(h.a9),q=L.next();!q.done;q=L.next())q=q.value,g.jE(t,q)&&Y.push(q);if(!Y.length)return!1;h.uV.set("altitags",g.rk(Y.join(",")));return!0}; zfr=function(h,t,Y){Y=Y===void 0?!1:Y;g.ZD(t);h.Zo.lastError="player.exception";h.errorMessage=t.name+"_"+t.message;Y?g.ZL(function(){wc(h.Zo)}):wc(h.Zo)}; VGD=function(h,t){h.timing.AQ=!0;h.xhr.Mf()&&h.timing.vr();if(h.policy.fn){var Y;(Y=h.Qy)==null||Y.stop()}VX(h.T3,t,!1)}; NZr=function(h,t){h.info=t;if(h.T3){var Y=h.T3;t=t.bP;(t.length!==Y.bP.length||t.length0){t=g.b(t.bP);for(var Y=t.next();!Y.done;Y=t.next()){var L=void 0;h+=((L=Y.value.range)==null?void 0:L.length)||0}return h}if(t.ZO.length>0)for(Y=g.b(t.ZO),L=Y.next();!L.done;L=Y.next())h+=L.value.XU||0;return h+t.q8}; cJ=function(h,t){if(GX){var Y=0;h=h.lL.get(t);if(h==null||!h.O8)return 0;h=g.b(h.O8.values());for(t=h.next();!t.done;t=h.next())Y+=t.value.data.totalLength;return Y}return((Y=h.lL.get(t))==null?void 0:Y.J7.totalLength)||0}; uH=function(h,t){h=h.lL.get(t);if(GX){if(h==null||!h.eq)return!1;t=h.O8.size>0;return h.WR.length>0||t}return!(h==null||!h.eq)&&!(h==null||!h.J7.totalLength)}; X_L=function(h,t){var Y=h.lL.get(t),L=ym1(h,t),q=!L&&!!Y.bytesReceived;if(GX){var z;if((z=h.Cb)==null?0:z.fZ){h=g.b(Y.O8.values());for(t=h.next();!t.done;t=h.next())if(!t.value.Jy)return!1;return q}}else if(z=h.F9(t),q&&h.G&&z!==void 0)return z;return(q||Y.bytesReceived===L)&&Y.nm+cJ(h,t)===Y.bytesReceived}; UWD=function(h,t,Y){h.lL.set(t,{J7:new mD,nm:0,bytesReceived:0,q8:0,bW:!1,bj:!1,F9:!1,N0:Y,KP:[],bP:[],ZO:[],eq:!1,O8:new Map,Rh:new Map,WR:[]});h.logger.debug(function(){return"[initStream] formatId: "+t})}; Cn1=function(h,t,Y,L){Y.bP.push.apply(Y.bP,g.p(L));if(GX){Y.Rh.has(t)||Y.Rh.set(t,[]);var q;(q=Y.Rh.get(t)).push.apply(q,g.p(L))}else if(Y.T3)for(h=g.b(L),t=h.next();!t.done;t=h.next())Y.T3.bP.push(t.value);else{Y.T3=new zX(h.bV,[].concat(g.p(Y.bP)));var z;((z=h.bV)==null?0:z.nI)&&g.f(h,Y.T3)}}; MGL=function(h,t,Y){var L,q=(L=h.Cb)==null?void 0:L.S.get(t);if(!q)return[];if(Y.Ik){var z;return((z=q.UT(0,Y.clipId))==null?void 0:z.bP)||[]}if(q.EW()){var V=Y.startMs,l=Y.durationMs;L=1E3;var H;if(((H=h.bV)==null?0:H.G)&&Y.timeRange){var w;V=(w=Y.timeRange.startTicks)!=null?w:-1;var W;l=(W=Y.timeRange.IC)!=null?W:-1;var y;L=(y=Y.timeRange.timescale)!=null?y:-1}if(Y.Qj<0||Y.xM<0||l<0||V<0||Y.XU<0||L<0)return rc(h,t),[];h=Am(Y.Qj,Y.XU);t=Y.Fx||0;return[new Id(3,q,h,"makeSliceInfosMediaBytes",Y.xM- 1,V/L,l/L,t,h.length-t,void 0,Y.ix,Y.clipId)]}if(Y.xM<0)return rc(h,t),[];var X;return((X=h.Cb)==null?0:X.fZ)?(t=q.BI,H=t*q.info.Lb,w=Y.Fx,((l=h.bV)==null?0:l.hM)&&Y.timeRange&&!w&&(V=Y.timeRange.startTicks/Y.timeRange.timescale),[new Id(3,q,void 0,"makeSliceInfosMediaBytes",Y.xM,V,t,w,H,!0,Y.ix,Y.clipId)]):[]}; F0p=function(h,t,Y){h.Cb=t;h.bV=Y;t=g.b(h.lL);for(Y=t.next();!Y.done;Y=t.next()){var L=g.b(Y.value);Y=L.next().value;L=L.next().value;for(var q=g.b(L.KP),z=q.next();!z.done;z=q.next()){z=z.value;var V=MGL(h,Y,z);Cn1(h,z.t_,L,V)}}}; en=function(h,t,Y,L){h.logger.debug(function(){return"[addStreamData] formatId: "+Y+",headerId: "+t+" bytes: "+L.totalLength}); (h=h.lL.get(Y))&&!h.bj&&(GX?(h.O8.has(t)||h.O8.set(t,{data:new mD,hd:0,Jy:!1}),DN(h.O8.get(t).data,L)):DN(h.J7,L),h.bytesReceived+=L.totalLength,h.bW=!0)}; QX=function(h,t){h.logger.debug(function(){return"[closeStream] formatId: "+t}); var Y=h.lL.get(t);Y&&!Y.bj&&(Y.bj=!0,Y.O9&&Y.O9(),sdr(h)&&h.W.WJ())}; sdr=function(h){h=g.b(h.lL.values());for(var t=h.next();!t.done;t=h.next())if(!t.value.bj)return!1;return!0}; jdi=function(h){GX=h}; Jz=function(h,t,Y,L,q,z,V){g.O.call(this);this.policy=h;this.info=t;this.Cb=Y;this.S4=q;this.logger=new g.yn("sabr");this.jT=new iH(this);this.MV=new oJ(this);this.Lr=new dc(this);this.state=1;this.L8=!1;this.PW=0;this.clipId="";this.vS=-1;this.kK=0;this.BH=-1;this.bF=this.X$=!1;this.lf=0;this.lw=!1;this.policy.PP?this.hJ=new Zg(this,z):this.hJ=new D3(this,z);this.uV=this.policy.Q4?t.qt:Zz1(t,this.policy,L);this.uV.set("rn",""+this.QQ());this.uV.set("alr","yes");F0p(this.Lr,Y,h);this.Zo=new N2(this, this.policy,this.uV,t.e4,this.hJ,this.logger,L,V,this.policy.enableServerDrivenRequestCancellation);uZn(this.Zo);var l;if((l=this.policy)==null?0:l.nI)g.f(this,this.Lr),g.f(this,this.Zo);h=t.T;t={method:"POST",body:h};h&&(this.kK=h.length);try{this.xhr=q2(this.uV,this.policy.C,this.hJ,wG,t),this.policy.vp&&mp(this.hJ,this.K6()),this.Zo.T.start()}catch(H){g.bc(H)}}; bzL=function(h){h.policy.w6&&h.Lt&&!h.lw?h.lw=!0:h.hJ.vr()}; oEr=function(h,t){var Y=-1,L=-1,q=-1,z;if((z=h.Ac)==null?0:z.items)for(h=g.b(h.Ac.items),z=h.next();!z.done;z=h.next())z=z.value,t=l,H=h.Cb.isManifestless&&h.policy.y3,V){var w;if(((w=h.G)==null?void 0:w.Wx.event)==="predictStart"&&h.G.Kbh.U&&(h.U=NaN,h.C=NaN);h.G&&h.G.Kb===t?Ozr(h,t,Y,h.G,q):h.T===1&&aJ(h,5,"noad")}; nEL=function(h,t,Y,L,q){L.IX?aJ(h,4,"cue"):(h.U=t,h.C=Y,h.Pm("sdai",{joinad:h.T,sg:h.U,st:h.C.toFixed(3)}),h.L=Date.now(),aJ(h,2,h.T===3?"staftpred":"join"),q.KM(L.Wx))}; Ozr=function(h,t,Y,L,q){if(q&&L){var z=L.Wx,V=q.UF(z);z.event==="predictStart"&&(h.x8=t);h.Pm("sdai",{onqevt:z.event,sq:t,mt:Y,gab:V,cst:z.startSecs,cueid:h.policy.im&&(V||z.event==="start")?z.identifier:void 0},!0);if(V)z.event!=="predictStart"?(z.event==="start"&&h.x8===t-1&&h.Pm("sdai",{gabonstart:t}),nEL(h,t,Y,L,q)):h.policy.lR?aJ(h,3,"predict"):(t+=Math.max(Math.ceil(-z.G/5E3),1),z=Math.floor(Y-z.G/1E3),h.policy.T?h.X=z:h.W=t,h.Pm("sdai",{onpred:Y,estsq:t,estmt:z.toFixed(3)}),xR(h.loader,z,z, t),h.L=Date.now(),aJ(h,3,"predict"),q.KM(L.Wx));else if(h.T===1){var l;((l=h.S)==null?0:l.n7(Y))?(xR(h.loader,Y,Y,t),aJ(h,4,"sk2head")):aJ(h,5,"nogab")}else z.event==="predictStart"?h.policy.T&&h.X>0?(Y=Math.floor(Y-z.G/1E3),h.X!==Y&&h.Pm("sdai",{updateSt:Y,old:h.X}),h.X=Y):h.W>0&&(Y=t+Math.max(Math.ceil(-z.G/5E3),1),h.W!==Y&&(h.Pm("sdai",{updateSt:Y,old:h.W}),h.W=Y)):h.policy.lR&&h.T===3&&nEL(h,t,Y,L,q)}else h.Pm("sdai",{nulldec:1,sq:t,mt:Y.toFixed(3),evt:(L==null?void 0:(z=L.Wx)==null?void 0:z.event)|| "none"})}; $W$=function(h,t,Y){if(h.policy.sy&&h.policy.T)return!(h.T===1||h.T===2||!h.policy.lR&&h.T===3&&Y>=h.W);if(h.T===1||h.T===2)return!1;if(h.T!==0&&t===h.audioTrack){if(h.policy.T)return fqL(h.videoTrack,Y)||fqL(h.videoTrack,Y+1);h=Er(h.videoTrack);if(Y>(h?h.Kb:-1))return!1}return!0}; kR=function(h,t,Y){return(Y<0||Y===h.U)&&!isNaN(h.C)?h.C:t}; aqb=function(h,t){if(h.G){var Y=h.G.Wx.cZ-(t.startTime+h.Y-h.G.Wx.startSecs);Y<=0||(Y=new gZ(h.G.Wx.startSecs-(isNaN(h.Y)?0:h.Y),Y,h.G.Wx.context,h.G.Wx.identifier,"stop",h.G.Wx.G+t.duration*1E3),h.Pm("cuepointdiscontinuity",{segNum:t.Kb}),Ka(h,Y,t.Kb))}}; aJ=function(h,t,Y){h.T!==t&&(h.Pm("sdai",{setsst:t,old:h.T,r:Y}),h.T=t)}; Or=function(h,t,Y,L){(L===void 0?0:L)?aJ(h,1,"seek"):t>0&&Math.abs(t-Y)>=5&&h.T===4&&aJ(h,5,"sk2t")}; TZ6=function(h){this.Pm=h;this.G="";this.T=new Map}; na=function(h,t,Y){this.audio=h;this.video=t;this.reason=Y}; fa=function(h,t,Y){this.G=h;this.reason=t;this.token=Y;this.videoId=void 0}; $R=function(h,t,Y){g.O.call(this);this.policy=h;this.W=t;this.Pm=Y;this.S=new Map;this.X=0;this.U=!1;this.G="";this.T=!1}; TX=function(h,t,Y){if(Y===void 0?0:Y)h.U=!0;++h.X;Y=6E4*Math.pow(2,h.X);Y=(0,g.FH)()+Y;h.S.set(t.info.id,Y)}; Az=function(h){for(var t=g.b(h.S.entries()),Y=t.next();!Y.done;Y=t.next()){var L=g.b(Y.value);Y=L.next().value;L=L.next().value;L<(0,g.FH)()&&h.S.delete(Y)}return h.S}; AmL=function(h){return h.U&&Az(h).size>0}; Sn=function(h,t){h.G!==t&&(h.G=t,h.T=!0)}; SIW=function(h,t){var Y;t&&(Y=g.Mh(h.W.G,function(q){return q.id===t})); if(!Y&&(Y=g.Mh(h.W.G,function(q){var z;return!((z=q.j4)==null||!z.isDefault)}),t)){var L; h.Pm("iaf",{id:t,sid:(L=Y)==null?void 0:L.id})}return Y}; RJ=function(h,t,Y,L,q,z){var V=this;z=z===void 0?[]:z;this.loader=h;this.R0=t;this.policy=Y;this.Cb=L;this.U=q;this.iP=z;this.logger=new g.yn("dash/abr");this.G=tL;this.S=this.C=null;this.L=-1;this.Zx=!1;this.nextVideo=this.T=null;this.W=[];this.lP=new Set;this.X5={};this.yG=new Z4(1);this.Y=0;this.Y8=this.x8=this.AQ=!1;this.Wm=0;this.JQ=!1;this.gU=new Set;this.Ne=!1;this.zD={nh:function(){IJ(V)}}; this.X=new $R(this.policy,q,function(l,H){V.loader.Pm(l,H)})}; mW6=function(h,t,Y){BJ(h,t);t=SIW(h.X,Y);Y||t||(t=Iq6(h));t=t||h.U.G[0];h.T=h.Cb.G[t.id];IJ(h);h.C=h.T;Rfc(h);BZD(h);h.S=h.nextVideo;h.C=h.T;return Pn$(h)}; td6=function(h,t){if(DWn(h,t))return null;if(t.reason==="m"&&t.isLocked())return h.logger.debug(function(){return"User sets constraint to: "+dO(t)}),BJ(h,t),h.Y=h.W.length-1,IJ(h),PJ(h),h.x8=h.x8||h.S!==h.nextVideo,h.S=h.nextVideo,new na(h.T,h.S,t.reason); t.reason==="r"&&(h.L=-1);BJ(h,t);PJ(h);if(t.reason==="r"&&h.nextVideo===h.S)return new na(h.T,h.nextVideo,t.reason);hD$(h);return null}; ikW=function(h,t,Y){h.T=h.Cb.G[t];h.C=h.T;return new na(h.C,h.S,Y?"t":"m")}; gwL=function(h,t){if(t.info.video){if(h.S!==t)return h.S=t,Pn$(h)}else h.Y8=h.C!==t,h.C=t;return null}; YJn=function(h,t){if(t.G.info.video&&t.X){var Y=(t.T+t.S)/t.duration,L=t.G.info.Lb;Y&&L&&(h.yG.Fv(1,Y/L),h.policy.S&&Y/L>1.5&&h.loader.Pm("overshoot",{sq:t.Kb,br:Y,max:L}))}}; m_=function(h,t,Y){TX(h.X,t,Y===void 0?!1:Y);h.L=-1;BJ(h,h.G)}; Lz1=function(h,t){return new na(h.C,h.S,t||h.G.reason)}; hD$=function(h){if(h.S&&h.nextVideo&&Dg(h,h.S.info)h.policy.QP,l=q<=h.policy.QP?rq(L):dq(L);if(!z||V||l)Y[q]=L}return Y}; BJ=function(h,t){h.G=t;var Y=h.U.videoInfos;if(!h.G.isLocked()){var L=(0,g.FH)();Y=g.oK(Y,function(l){if(l.Lb>this.policy.Lb)return!1;var H=this.Cb.G[l.id];return Az(this.X).get(l.id)>L?!1:H.e4.S>4||H.U>4?(this.logger.debug(function(){return"Remove "+kW(l)+"; 4 load failures"}),!1):this.gU.has(+l.itag)?!1:!0},h); AmL(h.X)&&(Y=g.oK(Y,function(l){return l.video.width<=854&&l.video.height<=480}))}Y.length||(Y=h.U.videoInfos); var q=Y;h.policy.ip&&(q=zDW(h,q,t));q=g.oK(q,t.W,t);if(h.G.isLocked()&&h.X.G){var z=g.Mh(Y,function(l){return l.id===h.X.G}); z?q=[z]:Sn(h.X,"")}h.policy.ip||(q=zDW(h,q,t));q.length||(q=[Y[0]]);q.sort(function(l,H){return Dg(h,l)-Dg(h,H)}); t={};for(Y=1;Yt.xI.video.width?(g.ZC(q,Y),Y--):Dg(h,t.v9)*h.policy.Y>Dg(h,t.xI)&&(g.ZC(q,Y-1),Y--);var V=q[q.length-1];h.JQ=!!h.S&&!!h.S.info&&h.S.info.wU!==V.wU;h.logger.debug(function(){return"Constraint: "+dO(h.G)+", "+q.length+" fmts selectable, max selectable fmt: "+kW(V)}); h.W=q;h.lP.clear();t=!1;for(Y=0;Y=1080&&(t=!0);VdL(h.policy,V,h.Cb.fZ)}; zDW=function(h,t,Y){var L=Y.reason==="m"||Y.reason==="s";h.policy.uH&&ht&&g.Hq&&(!L||Y.G<1080)&&(t=t.filter(function(w){return w.video&&(!w.T||w.T.powerEfficient)})); if(t.length>0)if(Dd()){var q=qJb(h,t);t=t.filter(function(w){return!!w&&!!w.video&&w.wU===q[w.video.qualityOrdinal].wU})}else{var z,V,l=(z=t[0])==null?void 0:(V=z.video)==null?void 0:V.qualityOrdinal; if(l){Y=t.filter(function(w){return!!w&&!!w.video&&w.video.qualityOrdinal===l}); var H=qJb(h,Y)[l].wU;t=t.filter(function(w){return!!w&&!!w.video&&w.wU===H})}}return t}; NQr=function(h,t){for(var Y=0;Y+1L}; IJ=function(h){if(!h.T||!h.policy.W&&!h.T.info.j4){var t=h.U.G;h.T&&(t=t.filter(function(L){return L.audio.G===h.T.info.audio.G}),t.length||(t=h.U.G)); h.T=h.Cb.G[t[0].id];if(t.length>1&&!h.policy.Y8){if(!h.policy.f1){var Y=g.Mh(t,function(L){return L.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); Y&&(h.T=h.Cb.G[Y.id])}Y=!1;if(Y=h.policy.m$?!0:h.G.isLocked()?h.G.G<240:NQr(h,h.T))h.T=h.Cb.G[g.U0(t).id]}}}; PJ=function(h){if(!h.nextVideo||!h.policy.W)if(h.G.isLocked())h.nextVideo=h.G.G<=360?h.Cb.G[h.W[0].id]:h.Cb.G[g.U0(h.W).id],h.logger.debug(function(){return"Select max fmt: "+kW(h.nextVideo.info)}); else{for(var t=Math.min(h.Y,h.W.length-1),Y=K3(h.R0),L=Dg(h,h.T.info),q=Y/h.policy.AQ-L;t>0&&!(Dg(h,h.W[t])<=q);t--);for(var z=Y/h.policy.Y-L;t=z);t++);h.nextVideo=h.Cb.G[h.W[t].id];h.Y!==t&&h.logger.info(function(){return"Adapt to: "+kW(h.nextVideo.info)+", bandwidth: "+Y.toFixed(0)+", bandwidth to downgrade: "+q.toFixed(0)+", bandwidth to upgrade: "+z.toFixed(0)+", constraint: "+dO(h.G)}); h.Y=t}}; Rfc=function(h){var t=h.policy.AQ,Y=K3(h.R0),L=Y/t-Dg(h,h.T.info);t=g.s0(h.W,function(q){return Dg(this,q)z?q=0:L[V]>h.buffered[V]&&(V===z-1?q=2:V===z-2&&L[V+1]>h.buffered[V+1]&&(q=3))}h.G.add(t<<3|(Y&&4)|q);t=Math.ceil(h.track.WS()*1E3);h.G.add(t-h.X);h.X=t;if(q===1)for(h.G.add(z),V=t=0;V=2&&h.G.add(L[z- 1]-h.buffered[z-1]);Y&&h.G.add(Y);h.buffered=L}; gF=function(h,t,Y){var L=this;this.policy=h;this.G=t;this.Wm=Y;this.W=this.T=0;this.h7=null;this.AQ=new Set;this.L=[];this.indexRange=this.initRange=null;this.Y=new VT;this.x8=this.R0=!1;this.zD={qJ8:function(){return L.S}, UPm:function(){return L.chunkSize}, WO5:function(){return L.C}, cv5:function(){return L.U}}; (t=y5L(this))?(this.chunkSize=t.csz,this.S=Math.floor(t.clen/t.csz),this.C=t.ck,this.U=t.civ):(this.chunkSize=h.Mk,this.S=0,this.C=g.H3(16),this.U=g.H3(16));this.X=new Uint8Array(this.chunkSize);this.C&&this.U&&(this.crypto=new oQb(this.C,this.U))}; y5L=function(h){if(h.policy.fC&&h.policy.qk)for(var t=g.b(h.policy.fC),Y=t.next(),L={};!Y.done;L={Cw:void 0,Iq:void 0},Y=t.next())if(Y=g.Rp(Y.value),L.Cw=+Y.clen,L.Iq=+Y.csz,L.Cw>0&&L.Iq>0&&h.policy.W===Y.docid&&h.G.info.id===Y.fmtid&&h.G.info.lastModified===+Y.lmt)return h={},h.clen=L.Cw,h.csz=L.Iq,h.ck=Y.ck,h.civ=Y.civ,h}; YH=function(h){return!!h.h7&&h.h7.lx()}; C$L=function(h,t){if(!YH(h)&&!h.Ui()){if(!(h.R0||(h.R0=!0,h.S>0))){var Y=L1(h);Y=Ax(h.policy.W,h.G.info,qy(h),Y,h.policy.yG);zP(h,Y)}if(t.info.type===1){if(h.h7){Vh(h,Error("Woffle: Expect INIT slices to always start us off"));return}h.initRange=Am(0,t.T.totalLength)}else if(t.info.type===2)h.h7&&h.h7.type===1||Vh(h,Error("Woffle: Index before init")),h.indexRange=Am(h.initRange.end+1,t.T.totalLength);else if(t.info.type===3){if(!h.h7){Vh(h,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(h.h7.type===3&&!P_(h.h7,t.info)&&(h.L=[],t.info.Kb!==m0(h.h7)||t.info.T!==0))return;if(t.info.X){Y=g.b(h.L);for(var L=Y.next();!L.done;L=Y.next())Xon(h,L.value);h.L=[]}else{h.L.push(t);h.h7=t.info;return}}else{Vh(h,Error("Woffle: Unexpected slice type"));return}h.h7=t.info;Xon(h,t);ULb(h)}}; Xon=function(h,t){var Y=0,L=gX(t.T);if(h.W=L.length)return;if(Y<0)throw Error("Missing data");h.W=h.S;h.T=0}for(q={};Y0){var V=L.getUint32(Y+28);z+=V*16+4}var l=L.getUint32(Y+z-4);try{var H=Zkn(t.subarray(Y+z,Y+z+l));if(H!==null){var w=H;break a}}catch(W){}}Y+=q}w=null;break a}catch(W){w=null;break a}w=void 0}if(w!=null)for(t=yd(Pp(w,7,void 0,um)),t==null||h.A7||(h.cryptoPeriodIndex=t),t=yd(Pp(w,10,void 0,um)),t!=null&&t>0&& !h.A7&&(h.G=t),w=Ym(w,2,raL,void 0===Jar?2:4),w=g.b(w),L=w.next();!L.done;L=w.next())t=h.S,Y=t.push,L=vt(L.value),L=g.Gv(L,4),Y.call(t,L)}; ow6=function(h){return isNaN(h.cryptoPeriodIndex)?g.Gv(h.initData):""+h.cryptoPeriodIndex}; HQ=function(h,t,Y){var L=Y===void 0?{}:Y;Y=L.videoDuration===void 0?0:L.videoDuration;var q=L.o9===void 0?void 0:L.o9;L=L.VY===void 0?!1:L.VY;this.videoId=h;this.status=t;this.videoDuration=Y;this.o9=q;this.VY=L}; dLr=function(h,t,Y,L,q){this.videoId=h;this.K7=t;this.T=Y;this.bytesDownloaded=L;this.G=q}; wF=function(h){this.G=h;this.offset=0}; WQ=function(h){if(h.offset>=h.G.totalLength)throw Error();return LW(h.G,h.offset++)}; G9L=function(h,t){t=t===void 0?!1:t;var Y=WQ(h);if(Y===1){t=-1;for(Y=0;Y<7;Y++){var L=WQ(h);t===-1&&L!==255&&(t=0);t>-1&&(t=t*256+L)}return t}L=128;for(var q=0;q<6&&L>Y;q++)Y=Y*256+WQ(h),L*=128;return t?Y:Y-L}; Q53=function(h){try{var t=G9L(h,!0),Y=G9L(h,!1);return{id:t,size:Y}}catch(L){return{id:-1,size:-1}}}; r5i=function(h){for(var t=new wF(h),Y=-1,L=0,q=0;!L||!q;){var z=Q53(t),V=z.id;z=z.size;if(V<0)return;if(V===176){if(z!==2)return;L=t.R$()}else if(V===186){if(z!==2)return;q=t.R$()}V===374648427?Y=t.R$()+z:V!==408125543&&V!==174&&V!==224&&t.skip(z)}t=Ya(h,0,Y);Y=new DataView(t.buffer);Y.setUint16(L,3840);Y.setUint16(q,2160);L=new mD([t]);DN(L,h);return L}; c5W=function(h,t,Y){var L=this;this.loader=h;this.policy=t;this.X=Y;this.logger=new g.yn("dash");this.T=[];this.G=null;this.R0=-1;this.L=0;this.gU=NaN;this.AQ=0;this.S=NaN;this.Y=this.Zx=0;this.JQ=-1;this.X5=this.W=this.U=this.Wm=null;this.yG=this.Y8=NaN;this.C=this.x8=this.lP=this.iP=null;this.tQ=!1;this.Ne=this.timestampOffset=0;this.zD={eR:function(){return L.T}}; if(this.policy.W){var q=this.X,z=this.policy.W;this.policy.yG&&h.Pm("atv",{ap:this.policy.yG});this.C=new gF(this.policy,q,function(V,l,H){yh(h,new HQ(L.policy.W,2,{o9:new dLr(z,V,q.info,l,H)}))}); this.C.Y.promise.then(function(V){L.C=null;V===1?yh(h,new HQ(L.policy.W,V)):L.loader.Pm("offlineerr",{status:V.toString()})},function(V){var l=(V.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); V instanceof Ny&&!V.G?(L.logger.info(function(){return"Assertion failed: "+l}),L.loader.Pm("offlinenwerr",{em:l}),XV(L),yh(h,new HQ(L.policy.W,4))):(L.logger.info(function(){return"Failed to write to disk: "+l}),L.loader.Pm("dldbwerr",{em:l}),XV(L),yh(h,new HQ(L.policy.W,4,{VY:!0})))})}}; uoW=function(h){return h.T.length?h.T[0]:null}; eDn=function(h,t){return h.T.some(function(Y){return Y.info.Kb===t})}; a53=function(h,t,Y,L){L=L===void 0?0:L;if(h.W){var q=h.W.T+h.W.S;if(Y.info.T>0)if(Y.info.Kb===h.W.Kb&&Y.info.T=0&&h.W.Kb>=0&&!P_(h.W,Y.info))throw new g.Ea("improper_continuation",h.W.uL(),Y.info.uL());M2L(h.W,Y.info)||U9(h,"d")}else if(Y.info.T>0)throw new g.Ea("continuation_of_null",Y.info.uL());h.W=Y.info;h.X=Y.info.G;if(Y.info.T===0){if(h.G)if(!h.loader.isOffline()||h.policy.s0)h.loader.Pm("slice_not_fully_processed", {buffered:h.G.info.uL(),push:Y.info.uL()});else throw new g.Ea("slice_not_fully_processed",h.G.info.uL(),Y.info.uL());C1(h);h.Zx=L}else{if(h.Zx&&L&&h.Zx!==L)throw h=new g.Ea("lmt_mismatch",Y.info.Kb,h.Zx,L),h.level="WARNING",h;!Y.info.G.EW()&&h.U&&(L=Y.info,q=h.U.vS,L.C="updateWithEmsg",L.Kb=q)}if(h.G){L=g.ML(h.G,Y);if(!L)throw new g.Ea("failed_to_merge",h.G.info.uL(),Y.info.uL());h.G=L}else h.G=Y;a:{Y=g.e2(h.G.info.G.info);if(h.G.info.type!==3){if(!h.G.info.X)break a;h.G.info.type===6?J5n(h,t,h.G): po1(h,h.G);h.G=null}for(;h.G;){L=h.G.T.totalLength;if(h.R0<=0&&h.L===0){var z=h.G.T,V=-1;q=-1;if(Y){for(var l=0;l+80))break;if(y!==408125543)if(y===524531317)l=!0,W>=0&&(q=z.R$()+W,H=!0);else{if(l&&(y===160||y===163)&&(V<0&&(V=w),H))break;y===163&&(V=Math.max(0,V),q=z.R$()+W);if(y===160){V<0&&(q=V=z.R$()+ W);break}z.skip(W)}}V<0&&(q=-1)}if(V<0)break;h.R0=V;h.L=q-V}if(h.R0>L)break;h.R0?(L=vwp(h,h.R0),L.X&&Kzc(h,L),J5n(h,t,L),My(h,L),h.R0=0):h.L&&(L=vwp(h,h.L<0?Infinity:h.L),h.L-=L.T.totalLength,My(h,L))}}h.G&&h.G.info.X&&(My(h,h.G),h.G=null)}; po1=function(h,t){!t.info.G.EW()&&t.info.T===0&&(g.e2(t.info.G.info)||t.info.G.info.A7())&&hEL(t);if(t.info.type===1)try{Kzc(h,t),xLL(h,t)}catch(q){g.ZD(q);var Y=Dq(t.info);Y.hms="1";h.loader.handleError("fmt.unparseable",Y||{},1)}Y=t.info.G;Y.Tb(t);h.C&&C$L(h.C,t);if(Y.z3()&&h.policy.G)a:{h=h.loader.Cb;t=t.info.clipId;Y=g.pA(Y.info,h.fZ);if(t){var L=nz({itag:Y.itag,lmt:h.fZ?0:Y.lmt||0,xtags:Y.xtags});if(h.JQ[L])break a;h.JQ[L]=t}h.Y8.push(Y)}}; lsL=function(h,t,Y){if(h.T.length!==0&&(Y||h.T.some(function(z){return z.info.W=s9(V)+l):t=h.getDuration()>=V.getDuration(),t=!t;t&&OkL(Y)&&(t=h.Wm,FV?(l=mS1(Y),V=1/l,l=s9(h,l),t=s9(t)+V-l):t=t.getDuration()- h.getDuration(),t=1+t/Y.info.duration,RR3(g.Ck(Y),t))}else{V=!1;h.U||(hEL(Y),Y.G&&(h.U=Y.G,V=!0,q=Y.info,z=Y.G.vS,q.C="updateWithEmsg",q.Kb=z,q=Y.G,q.lx&&(z=h.X.index,z.T=!q.lx,z.S="emsg"),q=Y.info.G.info,z=g.Ck(Y),g.e2(q)?Xp(z,1701671783):q.A7()&&bn([408125543],307544935,z)));a:if((q=jd(Y,h.policy.Ds))&&DS1(Y))l=nw3(h,Y),h.Y+=l,q-=l,h.AQ+=q,h.S=h.policy.qS?h.S+q:NaN;else{if(h.policy.jn){if(z=H=h.loader.zV(g.Fo(Y),1),h.S>=0&&Y.info.type!==6){if(h.policy.qS&&isNaN(h.Y8)){g.bc(new g.Ea("Missing duration while processing previous chunk", Y.info.uL()));h.loader.isOffline()&&!h.policy.s0||f5i(h,Y,z);U9(h,"m");break a}L=H-h.S;var w=L-h.Y,W=Y.info.Kb,y=h.X5?h.X5.Kb:-1,X=h.yG,U=h.Y8,C=h.policy.oM&&L>h.policy.oM,d=Math.abs(w)>10,Q=Math.abs(h.S-z)<1E-7;if(Math.abs(w)>1E-4){h.Ne+=1;var J=(l=h.U)==null?void 0:$0n(l);l={audio:""+ +h.N0(),sq:W.toFixed(),sliceStart:H,lastSq:y.toFixed(),lastSliceStart:X,lastSliceDuration:U,totalDrift:(L*1E3).toFixed(),segDrift:(w*1E3).toFixed(),skipRewrite:""+ +(C||d)};if(J==null?0:J.length)l.adCpn=J[0];h.loader.handleError("qoe.avsync", l);h.JQ=W}C||d||Q||(z=h.S);l=nw3(h,Y,H);q-=l;h.Y=L+l}}else z=isNaN(h.S)?Y.info.startTime:h.S;f5i(h,Y,z)&&(h.AQ+=q,h.S=z+q,h.policy.xS&&h.Ne>=h.policy.xS&&(h.Ne=0,h.loader.A_({resetForRewrites:"count"})))}h.X5=Y.info;h.Y8=sJ(Y);Y.S>=0&&(h.yG=Y.S);if(V&&h.U){V=$Lc(h,!0);h5(Y.info,V);h.G&&h5(h.G.info,V);t=g.b(t);for(l=t.next();!l.done;l=t.next())l=l.value,q=void 0,h.policy.X&&l.Kb!==((q=h.U)==null?void 0:q.vS)||h5(l,V);(Y.info.X||h.G&&h.G.info.X)&&Y.info.type!==6||(h.x8=V,h.policy.T?(t=TQp(h.U),h.loader.MH(h.X, V,t)):(t=h.loader,t.Cb.isManifestless&&A5i(t,V,null,!!h.X.info.video)),h.policy.Aa||SJW(h))}}xLL(h,Y);h.timestampOffset&&Bq3(Y,h.timestampOffset)}; My=function(h,t){if(t.info.X){h.iP=t.info;if(h.U){var Y=h.U,L=$Lc(h,!1);Y=TQp(Y);h.loader.MH(h.X,L,Y);h.x8||h.policy.Aa||SJW(h);h.x8=null}C1(h)}h.C&&C$L(h.C,t);if(L=h.Zp())if(L=g.ML(L,t,h.policy.Ga,h.policy.NU)){h.T.pop();h.T.push(L);return}h.T.push(t)}; TQp=function(h){if(h.IX()){var t=h.data["Stitched-Video-Id"]?h.data["Stitched-Video-Id"].split(",").slice(0,-1):[],Y=$0n(h),L=[];if(h.data["Stitched-Video-Duration-Us"])for(var q=g.b(h.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),z=q.next();!z.done;z=q.next())L.push((Number(z.value)||0)/1E6);q=[];if(h.data["Stitched-Video-Start-Frame-Index"]){z=g.b(h.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var V=z.next();!V.done;V=z.next())q.push(Number(V.value)||0)}q=[]; if(h.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(z=g.b(h.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),V=z.next();!V.done;V=z.next())q.push((Number(V.value)||0)/1E6);h=new j51(t,Y,L,q,g.TA$(h),g.AeL(h))}else h=null;return h}; C1=function(h){h.G=null;h.R0=-1;h.L=0;h.U=null;h.gU=NaN;h.AQ=0;h.x8=null}; U9=function(h,t){t={rst4disc:t,cd:h.Y.toFixed(3),sq:h.X5?h.X5.Kb:-1};h.S=NaN;h.Y=0;h.JQ=-1;h.X5=null;h.yG=NaN;h.Y8=NaN;h.lP=null;h.loader.Pm("mdstm",t)}; xLL=function(h,t){if(h.isDrm()){if(t.info.G.info.A7()){var Y=new Cz(g.Ck(t));if(Fp(Y,[408125543,374648427,174,28032,25152,20533,18402])){var L=Zq(Y,!0);Y=L!==16?null:Qe(Y,L)}else Y=null;L="webm"}else t.info.L=Fz3(g.Ck(t)),Y=s5L(t.info.L),L="cenc";Y&&Y.length&&(Y=new lq(Y,L),h.policy.B4&&g.e2(t.info.G.info)&&(L=t2D(g.Ck(t)))&&(Y.T=L),Y.A7=t.info.G.info.A7(),t.G&&t.G.cryptoPeriodIndex&&(Y.cryptoPeriodIndex=t.G.cryptoPeriodIndex),t.G&&t.G.T&&(Y.G=t.G.T),h.loader.Of(Y))}}; SJW=function(h){var t=h.U,Y=n0i(t);Y&&(Y.startSecs+=h.gU,h.loader.uW(h.X,Y,t.vS,t.IX()))}; $Lc=function(h,t){var Y,L=h.U;if(Y=n0i(L))Y.startSecs+=h.gU;return new A6(L.vS,h.gU,t?L.BI:h.AQ,L.ingestionTime,"sq/"+L.vS,void 0,void 0,t,Y)}; f5i=function(h,t,Y){if(!RiL(t,Y))return t=Dq(t.info),t.smst="1",h.loader.handleError("fmt.unparseable",t||{},1),!1;isNaN(h.gU)&&(h.gU=Y);return!0}; nw3=function(h,t,Y){var L=0;if(t.info.G.info.A7()&&!DS1(t))return 0;if(h.Wm&&!h.N0()){var q=0;Y&&g.e2(t.info.G.info)?q=Y-h.S:t.info.G.info.A7()&&(q=h.Y);var z=t.info.Kb;Y=jd(t,h.policy.Ds);var V=h.Wm;var l=V.JQ;V=V.Y;var H=Math.abs(V-q)>.02;if((z===l||z>l&&z>h.JQ)&&H){L=Math.max(.95,Math.min(1.05,(Y-(V-q))/Y));if(g.e2(t.info.G.info))RR3(g.Ck(t),L);else if(t.info.G.info.A7()&&(z=q-V,!g.e2(t.info.G.info)&&(t.info.G.info.A7(),L=new Cz(g.Ck(t)),l=t.X?L:new Cz(new DataView(t.info.G.G.buffer)),jd(t,!0)))){var w= z*1E3,W=c_(l);l=L.pos;L.pos=0;if(L.G.getUint8(L.pos)===160||un(L))if(jG(L,160))if(Zq(L,!0),jG(L,155)){if(z=L.pos,H=Zq(L,!0),L.pos=z,w=w*1E9/W,W=od(L),w=W+Math.max(-W*.7,Math.min(W,w)),w=Math.sign(w)*Math.floor(Math.abs(w)),!(Math.ceil(Math.log(w)/Math.log(2)/8)>H)){L.pos=z+1;for(z=H-1;z>=0;z--)L.G.setUint8(L.pos+z,w&255),w>>>=8;L.pos=l}}else L.pos=l;else L.pos=l;else L.pos=l}L=jd(t,h.policy.Ds);L=Y-L}L&&t.info.G.info.A7()&&h.loader.Pm("webmDurationAdjustment",{durationAdjustment:L,videoDrift:q+L, audioDrift:V})}return L}; OkL=function(h){return h.info.G.EW()&&h.info.Kb===h.info.G.index.v3()}; s9=function(h,t){t=(t=t===void 0?0:t)?Math.round(h.timestampOffset*t)/t:h.timestampOffset;h.X.W&&t&&(t+=h.X.W.G);return t+h.getDuration()}; I5b=function(h,t){t<0||(h.T.forEach(function(Y){Bq3(Y,t)}),h.timestampOffset=t)}; kt=function(h,t,Y,L,q){YR.call(this,Y,q);var z=this;this.policy=h;this.formatId=t;this.Lr=L;this.lastError=null;this.O9=function(){z.Ui()||(z.Lr.lL.has(z.formatId)?(z.isComplete()||z.G.start(),uH(z.Lr,z.formatId)&&z.kd(2),z.Lr.bj(z.formatId)&&(X_L(z.Lr,z.formatId)?z.H3(4):(z.lastError="net.closed",z.H3(5)))):(z.lastError="player.exception",z.H3(5)))}; this.G=new g.nE(function(){z.isComplete()||(z.lastError="net.timeout",z.H3(5))},1E3); this.G.start();w_p(this.Lr,this.formatId,this.O9);g.ZL(this.O9)}; jc=function(h,t,Y,L){g.O.call(this);var q=this;this.loader=h;this.policy=t;this.G=Y;this.timing=L;this.logger=new g.yn("dash");this.S=[];this.Wm=[];this.T=this.ND=null;this.lP=!1;this.Zx=this.Ne=0;this.U=-1;this.R0=!1;this.gU=-1;this.X5=null;this.x8=NaN;this.AQ=[];this.zD={JI:function(){return q.W}, LOM:function(){return q.S}, Zg5:function(){return q.Y}}; this.W=new c5W(h,t,Y);this.policy.G&&(this.Y=new xt(this.W,this.loader.getManifest(),this.policy,function(z){q.policy.aM&&q.Pm("buftl",z)})); this.policy.Hq&&(this.L=new tt(this));this.Lb=Y.info.Lb;this.C=this.policy.x8?!1:Y.uh();this.isManifestless=Y.uh();this.X=this.C;g.f(this,this.X5)}; ZS=function(h,t,Y){Y=Y===void 0?!1:Y;t&&FV&&I5b(h.W,t.a_());if(!Y){var L;(L=h.Y)==null||qsL(L)}h.ND=t;(t=h.Y)!=null&&(t.ND=h.ND)}; bq=function(h){var t=h.ND&&h.ND.Ab();if(h.policy.xQ){if((h=h.Y)==null)h=void 0;else{var Y;h=(Y=h.S)==null?void 0:Y.info}return h||null}return t}; RD6=function(h){for(var t={},Y=0;Y4&&h.Wm.shift()}; BQL=function(h,t){if(t.Cq()){var Y=t.kQ();Y=g.b(Y);for(var L=Y.next();!L.done;L=Y.next())L=L.value,h.policy.S&&t instanceof kt&&h.Pm("omblss",{s:L.info.uL()}),dF(h,t.info.bP,L,t.hI())}}; dF=function(h,t,Y,L){L=L===void 0?0:L;isNaN(h.x8)||(h.Pm("aswm",{sq:t[0].Kb,id:t[0].G.info.itag,xtag:t[0].G.info.G,ep:Date.now()-h.x8}),h.x8=NaN);switch(Y.info.type){case 1:case 2:P$c(h,Y);break;case 4:var q=Y.info.G,z=q.Wl(Y),V;((V=h.T)==null?0:V.type===4)&&dSL(Y.info,h.T)&&(h.T=q.eH(h.T).pop());Y=g.b(z);for(q=Y.next();!q.done;q=Y.next())dF(h,t,q.value,L);break;case 3:Y.info.G.info.video?(q=h.timing,q.gU||(q.gU=(0,g.FH)(),g.x_("fvb_r",q.gU,q.G))):(q=h.timing,q.U||(q.U=(0,g.FH)(),g.x_("fab_r",q.U, q.G)));a53(h.W,t,Y,L);h.policy.G&&mLb(h);break;case 6:a53(h.W,t,Y,L),h.T=Y.info}}; P$c=function(h,t){if(t.info.type===1)if(t.info.G.info.video){var Y=h.timing;Y.Zx||(Y.Zx=(0,g.FH)(),g.x_("vis_r",Y.Zx,Y.G))}else Y=h.timing,Y.Y||(Y.Y=(0,g.FH)(),g.x_("ais_r",Y.Y,Y.G));po1(h.W,t);h=h.loader;h.videoTrack.G.z3()&&h.audioTrack.G.z3()&&h.policy.G&&!h.Cb.fZ&&(t=h.audioTrack.getDuration(),Y=h.videoTrack.getDuration(),Math.abs(t-Y)>1&&h.Pm("trBug",{af:""+g.pA(h.audioTrack.G.info,!1),vf:""+g.pA(h.videoTrack.G.info,!1),a:""+t,v:""+Y}))}; R8=function(h){return uoW(h.W)}; mLb=function(h){h.S.length?h.T=g.U0(g.U0(h.S).info.bP):h.W.T.length?h.T=h.W.Zp().info:h.T=bq(h)}; GP=function(h,t){var Y={P3:[],O$:[]},L;if((h=h.Y)==null)h=void 0;else{LBL(h,h.P3,"og");ihc(h,t);LBL(h,h.P3,"trim");var q=Ysp(h);t=q.P3;q=q.Xe;for(var z=[],V=0;V0){var X=fA(y,H);X>=0&&(W=(y.end(X)-H+.1)*1E3)}z.push({formatId:g.pA(l.info.G.info,h.Cb.fZ), ix:l.info.ix,sequenceNumber:l.info.Kb+h.W,Jx:w,lq:l.info.S,y8:W})}h={P3:t,O$:z}}return(L=h)!=null?L:Y}; f3=function(h,t,Y){Y=Y===void 0?!1:Y;if(h.ND){var L=h.ND.iV(),q=Tk(L,t),z=NaN,V=bq(h);V&&(z=Tk(L,V.G.index.getStartTime(V.Kb)));if(q===z&&h.T&&h.T.S&&DLn(Qh(h),0))return t}h=h2L(h,t,Y);return h>=0?h:NaN}; Te=function(h,t,Y){h.G.z3();var L=h2L(h,t);if(L>=0)return L;var q;(q=h.Y)==null||gQL(q,t,Y);L=Math;q=L.min;var z=h.W;if(z.C)if(z=z.C,z.h7&&z.h7.type===3)z=z.h7.startTime;else if(z.S>0){var V=z.G.index;V=g.fH(V.offsets.subarray(0,V.count),z.S*z.chunkSize);z=z.G.index.getStartTime(V>=0?V:Math.max(0,-V-2))}else z=0;else z=Infinity;t=q.call(L,t,z);h.T=h.policy.x8?null:h.G.rN(t).bP[0];rF(h)&&(h.policy.I6&&(Y==null?void 0:Y.seekSource)===60||h.ND&&h.ND.abort(),h.policy.mY&&(Y=h.Y)!=null&&(Y.S=void 0)); h.Zx=0;return h.T?h.T.startTime:t}; VFL=function(h){h.C=!0;h.X=!0;h.U=-1;Te(h,Infinity)}; cQ=function(h){for(var t=0,Y=g.b(h.S),L=Y.next();!L.done;L=Y.next())t+=Qu6(L.value.info);return t+=Ewn(h.W)}; ec=function(h,t){t=t===void 0?!1:t;var Y=h.loader.getCurrentTime(),L=h.W.Zp(),q=(L==null?void 0:L.info.U)||0;if((L==null?0:L.info.G.uh())&&!L.info.X)if(h.policy.iB)q=L.info.W;else if(h.policy.BL){var z=L.info;q=z.range?z.U:Math.min(z.startTime+Math.min(z.duration*z.T/z.G.info.Lb,z.duration)+(z.range?z.Y:Math.min(z.duration,z.duration*z.S/z.G.info.Lb)),z.startTime+z.duration)}if(!h.ND)return h.policy.G&&t&&!isNaN(Y)&&L?q-Y:0;if((z=bq(h))&&uq(z))return z.U;var V=h.ND.iV(!0);if(t&&L)return z=0,h.policy.G&& (z=Iu(V,q+.02)),z+q-Y;t=Iu(V,Y);h.policy.Zd&&z&&(L=fA(V,Y),V=fA(V,z.W-.02),L===V&&(Y=z.U-Y,h.policy.S&&Y>t+.02&&h.Pm("abh",{bh:t,bhtls:Y}),t=Math.max(t,Y)));return t}; tIL=function(h){var t=bq(h);return t?t.U-h.loader.getCurrentTime():0}; iwL=function(h,t){if(h.S.length){if(h.S[0].info.bP[0].startTime<=t)return;n3(h)}for(var Y=h.W,L=Y.T.length-1;L>=0;L--)Y.T[L].info.startTime>t&&Y.T.pop();mLb(h);h.T&&t=0;V--){var l=q.T[V];l.info.Kb>=t&&(q.T.pop(),q.S-=jd(l,q.policy.Ds),z=l.info)}z&&(q.W=q.T.length>0?q.T[q.T.length-1].info:q.lP,q.T.length!==0||q.W||U9(q,"r"));q.loader.Pm("mdstm",{rollbk:1,itag:z?z.G.info.itag:"",popped:z?z.Kb:-1,sq:t,lastslc:q.W?q.W.Kb:-1,lastfraget:q.S.toFixed(3)});if(h.policy.G)return h.T=null,!0;L>Y?Te(h,L):h.T=h.G.MB(t-1,!1).bP[0]}catch(H){return t=NS(H),t.details.reason="rollbkerr", h.loader.handleError(t.errorCode,t.details,t.severity),!1}return!0}; vQ=function(h,t){var Y;for(Y=0;Y0?Y||t.Kb>=h.gU:Y}; K1=function(h){var t;return rF(h)||uq((t=h.W.Zp())==null?void 0:t.info)}; Qh=function(h){var t=[],Y=bq(h);Y&&t.push(Y);t=g.c1(t,h.W.jP());Y=g.b(h.S);for(var L=Y.next();!L.done;L=Y.next()){L=L.value;for(var q=g.b(L.info.bP),z=q.next(),V={};!z.done;V={Oq:void 0},z=q.next())V.Oq=z.value,L.Et&&(t=g.oK(t,function(l){return function(H){return!dSL(H,l.Oq)}}(V))),(B_(V.Oq)||V.Oq.type===4)&&t.push(V.Oq)}h.T&&!USD(h.T,g.U0(t),h.T.G.EW())&&t.push(h.T); return t}; DLn=function(h,t){if(!h.length)return!1;for(t+=1;t=t){t=z;break a}}t=q}return t<0?NaN:DLn(h,Y?t:0)?h[t].startTime:NaN}; an=function(h){return!(!h.T||h.T.G===h.G)}; gkp=function(h){return an(h)&&h.G.z3()&&h.T.G.info.Lbt&&h.U1080&&!h.lS&&(h.Zx=36700160,h.iP=5242880,h.Ne=Math.max(4194304,h.Ne),h.lS=!0);t.video.qualityOrdinal>2160&&!h.mF&&(h.Zx=104857600,h.Lb=13107200,h.mF=!0);g.Sk(h.SM.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?t.isEncrypted()&&g.xT()&&g.Ki("samsung")&&(g.Ki("kant")||g.Ki("muse"))&&(h.Lb=g.Sk(h.SM.experiments,"html5_samsung_kant_limit_max_bitrate")):t.isEncrypted()&&g.xT()&&g.Ki("kant")&&(h.Lb=1310720);h.ZR!==0&&t.isEncrypted()&& (h.Lb=h.ZR);h.K1!==0&&t.isEncrypted()&&Y&&(h.Lb=h.K1);t.Lb&&(h.Iw=Math.max(h.MS,Math.min(h.Ne,5*t.Lb)))}; FY=function(h){return h.G&&h.Gu}; n1=function(h){return h.G&&h.uM&&h.playbackStartPolicy}; f1=function(h,t,Y,L){h.uM&&(h.playbackStartPolicy=t,h.W6=Y,h.c6=L)}; O9=function(h,t,Y){Y=Y===void 0?0:Y;return g.Sk(h.SM.experiments,t)||Y}; UAD=function(h){var t=h===void 0?{}:h;h=t.Ru;var Y=t.TQ;var L=t.KC;var q=t.v3;t=t.Zy;this.Ru=h;this.TQ=Y;this.KC=L;this.v3=q;this.Zy=t}; smi=function(h,t){if(t<0)return!0;var Y=h.v3();return t0)return 2;if(t<0)return 1;Y=h.v3();return t(0,g.FH)()?0:1}; TP=function(h,t,Y,L,q,z,V,l,H,w,W,y,X,U){U=U===void 0?null:U;g.O.call(this);var C=this;this.loader=h;this.policy=t;this.videoTrack=Y;this.audioTrack=L;this.W=q;this.G=z;this.timing=V;this.X=l;this.schedule=H;this.Cb=w;this.S=W;this.AQ=y;this.pW=X;this.UL=U;this.x8=!1;this.gK="";this.DC=null;this.SF=NaN;this.R0=!1;this.T=null;this.NF=this.L=NaN;this.Tu=this.U=0;this.logger=new g.yn("dash");this.zD={b8:function(d,Q){return C.b8(d,Q)}}; this.policy.Nf>0&&(this.gK=g.H3(this.policy.Nf));this.policy.nL&&(this.Y=new $H(this.loader,this.policy,this.schedule),g.f(this,this.Y))}; j9c=function(h,t,Y){var L=t.T?t.T.G.e4:t.G.e4;var q=h.W,z;(z=!h.policy.Eh)||(z=Os(L.G)===Os(L.T));z?L=!1:(q=Kz(q,Os(L.T)),z=6E4*Math.pow(q.W,1.6),(0,g.FH)()=q.W?(q.Pm("sdai",{haltrq:z+1,est:q.W}),L=!1):L=q.T!==2;if(!L||!OI(t.T?t.T.G.e4:t.G.e4,h.policy,h.W,h.loader.yV())||h.loader.isSuspended&&(!pw(h.schedule)||h.loader.Uj))return!1;if(h.policy.W&&TH>=5)return g.fE(h.loader.pU),!1;if(h.Cb.isManifestless){if(t.S.length>0&&t.T&&t.T.Kb===-1||t.S.length>=h.policy.PA||!h.policy.wm&&t.S.length>0&&!h.policy.C.TQ)return!1;if(t.C)return!h.Cb.isLive|| !isNaN(h.SF)}if(VI6(t))return h.logger.debug("Pending request with server-selectable format found"),!1;if(!t.T){if(!t.G.z3())return!1;Te(t,h.loader.getCurrentTime())}if(R8(t)&&(t.Zp()!==R8(t)||h.loader.isSuspended))return!1;q=(L=h.policy.Ta)&&!t.S.length&&ec(t,!0)=h.policy.Gt)return!1;L=t.T;if(!L)return!0;L.type===4&&L.G.z3()&&(t.T=g.U0(L.G.eH(L)),L= t.T);if(!L.lx()&&!L.G.Li(L))return!1;z=h.Cb.f6||h.Cb.W;if(h.Cb.isManifestless&&z){z=t.G.index.v3();var V=Y.G.index.v3();z=Math.min(z,V);if(t.G.index.cn()>0&&z>0&&L.Kb>=z)return t.gU=z,Y.gU=z,!1}if(L.G.info.audio&&L.type===4||L.lx())return!1;z=!t.X&&!Y.X;if(q=!q)q=L.U,q=!!(Y.T&&!uq(Y.T)&&Y.T.UZwn(h,t)?(Zwn(h,t),!1):(h=t.ND)&&h.isLocked()?!1:!0}; Zwn=function(h,t){var Y=h.G;Y=Y.G?Y.G.Wx:null;if(h.policy.Wm&&Y)return Y.startSecs+Y.cZ+15;t=$t(h.loader,t);h.policy.G$>0&&(Y=((0,g.FH)()-h.loader.xu)/1E3,t=Math.min(t,h.policy.G$+h.policy.C3*Y));t=h.loader.getCurrentTime()+t;return h.policy.Hp&&(Y=bwc(h.loader)+h.policy.Hp,Y=0||t.e4.uD("defrag")==="1"||t.e4.uD("otf")==="1"){t=null;break a}q=Am(0,4096)}q=new t5([new Id(5,L.G,q,"createProbeRequestInfo"+L.C,L.Kb)],t.T);q.hH=Y;q.G=t.G;t=q}t&&Sc(h,t)}}; Sc=function(h,t){h.loader.Ns(t);var Y=Qu6(t),L=h.loader.RR();Y={TD:h.schedule,ZL:Y,DB:BxL(h.X,Y),QE:Rd(t.bP[0]),rA:nh(t.e4.G),Dv:h.policy.S,Yx:function(V,l){h.loader.Eq(V,l)}}; if(h.schedule.T.U){var q,z;Y.lz=(((q=h.videoTrack.G)==null?void 0:q.info.Lb)||0)+(((z=h.audioTrack.G)==null?void 0:z.info.Lb)||0)}h.DC&&(Y.Kb=t.bP[0].Kb,Y.SF=t.SF,Y.DC=h.DC);L={Mx:ryc(t,h.loader.getCurrentTime()),a9:h.policy.Cr&&gQ(t)&&t.bP[0].G.info.video?Hkc(h.S):void 0,Wa:h.policy.Wm,poToken:h.loader.yE(),vR:h.loader.Fm(),gK:h.gK,NF:isNaN(h.NF)?null:h.NF,UL:h.UL,pW:h.pW,Tu:h.Tu,hY:L};return new O$(h.policy,t,Y,h.W,function(V,l){try{a:{var H=V.info.bP[0].G,w=H.info.video?h.videoTrack:h.audioTrack; if(!(V.state>=2)||V.isComplete()||V.Du()||!(!h.loader.Oi||h.loader.isSuspended||ec(w)>3)){var W=FdW(V,h.policy,h.W);W===1&&(h.R0=!0);okb(h,V,W);if(V.isComplete()||V.Ui()&&l<3){if(h.policy.S){var y=V.timing.cA();y.rst=V.state;y.strm=V.xhr.Mf();y.cncl=V.xhr&&V.Zo.W?1:0;h.loader.Pm("rqs",y)}V.Az&&h.loader.Pm("sbwe3",{},!0)}if(!h.Ui()&&V.state>=2){vED(h.timing,V,H);var X=h.loader;h.NF&&V.LD&&X&&(h.NF=NaN,h.loader.rL(V.LD),h.loader.Ck(),h.loader.Pm("cabrUtcSeek",{mediaTimeSeconds:V.LD}));V.zN&&h.NF&&V.zN&& !V.zN.action&&(h.loader.S7(h.NF),h.NF=NaN,h.loader.Pm("cabrUtcSeekFallback",{targetUtcTimeSeconds:h.NF}));V.vL&&h.loader.Dh(V.vL);h.policy.fn&&(h.Tu=V.Tu);if(V.state===3){vQ(w,V);gQ(V.info)&&Rn(h,w,H,!0);if(h.T){var U=V.info.lO();U&&h.T.ZJ(V.info.bP[0].Kb,H.info.id,U)}h.loader.WZ()}else if(V.isComplete()&&V.info.bP[0].type===5){if(V.state!==4)V.X8()&&h.loader.handleError(V.vM(),V.kM());else{var C=(V.info.bP[0].G.info.video?h.videoTrack:h.audioTrack).S[0]||null;C&&C instanceof O$&&C.Du()&&C.Pp()}V.dispose()}else{V.X8()|| dAD(h,V);var d;((d=V.fU)==null?0:d.itagDenylist)&&h.loader.BU(V.fU.itagDenylist);if(V.state===4)BQ(h,V),h.G&&k2L(h.G,V.info,h.T);else if(h.policy.Lg&&V.Cq()&&!V.isComplete()&&!BQ(h,V)&&!V.X8())break a;V.X8()&&(Gip(h,V),isNaN(h.NF)||(h.loader.S7(h.NF),h.NF=NaN));h.policy.y4&&!V.isComplete()?Q9n(h.loader):h.loader.WZ();var Q=s9c(V,h.policy,h.W);okb(h,V,Q)}}}}}catch(J){l=h.x8?1:0,h.x8=!0,V=Vb(l),l=NS(J,l),h.loader.handleError(l.errorCode,l.details,l.severity),V||h.loader.NW()}},L)}; dAD=function(h,t){if(t.wj&&t.state>=2&&t.state!==3){var Y=t.xhr.getResponseHeader("X-Response-Itag");if(Y){h.logger.debug(function(){return"Applying streamer-selected format "+Y}); var L=l5L(h.S,Y),q=t.info.S;q&&(q-=L.jb(),L.S=!0,t.info.bP[0].G.S=!1,NZr(t,L.UT(q)),PQ(h.loader,h.videoTrack,L),NGL(h.videoTrack,L),h.loader.Xy(L.info.video.quality),(q=t.hI())&&L.info.lastModified&&L.info.lastModified!==+q&&vQ(h.videoTrack,t))}else t.wj=!1}}; Gip=function(h,t){var Y=t.info.bP[0].G,L=t.vM();if(nh(Y.e4.G)){var q=g.QL(t.oD(),3);h.loader.Pm("dldbrerr",{em:q||"none"})}q=t.info.bP[0].Kb;var z=kR(h.G,t.info.bP[0].W,q);L==="net.badstatus"&&(h.U+=1);if(t.canRetry()&&rUi(h.loader)){if(!(t.info.e4.S>=h.policy.UB&&h.T&&t.info.isDecorated()&&L==="net.badstatus"&&h.T.WN(z,q))){q=(Y.info.video&&Y.e4.S>1||t.Dg===410||t.Dg===500||t.Dg===503)&&!(Az(h.S.X).size>0)&&!nh(Y.e4.G);z=t.kM();var V=Y.info.video?h.videoTrack:h.audioTrack;q&&(z.stun="1");h.loader.handleError(L, z);h.Ui()||(q&&(h.logger.debug(function(){return"Stunning format "+Y.info.id}),m_(h.S,Y)),vQ(V,t),h.loader.WZ())}}else V=1,h.T&&t.info.isDecorated()&&L==="net.badstatus"&&h.T.WN(z,q)&&(V=0),h.Cb.isLive&&t.vM()==="net.badstatus"&&h.U<=h.policy.JH*2?(ps3(h.Cb),h.Cb.f6||h.Cb.isPremiere?I8(h.loader,0,{EY:"badStatusWorkaround"}):h.Cb.W?I8(h.loader,h.Cb.Wm,{EY:"badStatusWorkaround", zV:!0}):m4(h.loader)):h.loader.handleError(L,t.kM(),V)}; BQ=function(h,t){if(h.policy.useUmp&&t.Ui())return!1;try{var Y=t.info.bP[0].G,L=Y.info.video?h.videoTrack:h.audioTrack;if(h.Cb.isManifestless&&L){h.U=0;L.C&&(t.Ui(),t.isComplete()||t.Cq(),L.C=!1);t.lY()&&h.loader.lH.Fv(1,t.lY());var q=t.cn(),z=t.aE();$w(h.Cb,q,z)}if(t.info.QE()&&!i$(t.info))for(var V=g.b(t.kQ()),l=V.next();!l.done;l=V.next())P$c(L,l.value);for(h.loader.getCurrentTime();L.S.length&&L.S[0].state===4;){var H=L.S.shift();BQL(L,H);L.Ne=H.tq()}L.S.length&&BQL(L,L.S[0]);var w=!!R8(L);w&& t instanceof kt&&(Y.info.N0()?QdL(h.timing):G2$(h.timing));return w}catch(W){t=t.kM();t.origin="hrhs";a:{h=h.loader;Y=W;if(Y instanceof Error){t.msg||(t.msg=""+Y.message);t.name||(t.name=""+Y.name);if(Y instanceof g.Ea&&Y.args)for(L=g.b(Object.entries(Y.args)),q=L.next();!q.done;q=L.next())z=g.b(q.value),q=z.next().value,z=z.next().value,t["arg"+q]=""+z;g.bc(Y);if(Y.level==="WARNING"){h.qe.A_(t);break a}}h.handleError("fmt.unplayable",t,1)}return!1}}; cUn=function(h){var t=h.videoTrack.G.index;h.DC=new UAD({Ru:h.policy.Ru,TQ:h.policy.C.TQ,KC:t.Cy(),v3:function(){return t.v3()}, Zy:function(){return t.Zy()}})}; Rn=function(h,t,Y,L){if(!(Y.z3()||Y.zx()||Y.S||!OI(Y.e4,h.policy,h.W,h.loader.yV())||Y.info.wU==="f"||h.policy.G)){if(L){L=h.X;var q=Y.info;L=P1i(L,q.video?L.policy.m3:L.policy.hj,q.Lb)}else L=0;L=Y.UT(L);h=Sc(h,L);i$(L)&&on(t,h);Y.S=!0}}; DS=function(h,t,Y,L,q,z,V,l){g.O.call(this);var H=this;this.loader=h;this.bV=t;this.videoTrack=Y;this.audioTrack=L;this.Cb=q;this.L=z;this.isAudioOnly=V;this.Y=l;this.T=tL;this.R0=!1;this.logger=new g.yn("sabr");this.C=this.x8=this.AQ=!1;this.videoInfos=this.U=this.L.videoInfos;this.S=this.Wm=this.L.G;this.G=new $R(t,z,function(w,W){H.loader.Pm(w,W)}); this.isAudioOnly&&ui6(this,this.Cb.G["0"])}; e2i=function(h,t){var Y=[];t=g.b(t);for(var L=t.next();!L.done;L=t.next())Y.push(g.pA(L.value,h.Cb.fZ));return Y}; ui6=function(h,t,Y){t!==h.W&&(h.W&&(h.R0=!0),h.W=t,h.ir(t,h.videoTrack,Y))}; Kdb=function(h,t){h.logger.debug("setConstraint: "+dO(t));FY(h.bV)&&(h.x8=t.reason==="m"||t.reason==="l"?!0:!1);t.reason==="m"?t.isLocked()&&JUp(h,t.G):pc3(h,t)?vkL(h,t.T,t.G):h.videoInfos=h.U;h.T=t}; pc3=function(h,t){return h.bV.A6&&t.reason==="b"||h.bV.un&&t.reason==="l"||h.bV.ZG?!1:h.bV.P4?!0:t.reason==="l"||t.reason==="b"||t.reason==="o"}; a46=function(h,t){return t.isLocked()&&h.G.T||h.T===void 0?!1:t.equals(h.T)}; xAr=function(h,t){var Y,L=(Y=h.W)==null?void 0:Y.info.video.qualityOrdinal;return h.R0?!0:h.W?t!==L?!0:!h.G.T||h.bV.If&&h.G.G===h.W.info.itag?!1:!0:!1}; JUp=function(h,t){var Y=h.G.G;if(Y){h.videoInfos=h.U;var L=g.Mh(h.videoInfos,function(q){return q.id===Y}); L&&L.video.qualityOrdinal===t?h.videoInfos=[L]:(L=h.videoInfos.map(function(q){return q.id}),h.loader.Pm("sabrpf",{pfid:""+Y, vfids:""+L.join(".")}),vkL(h,t,t),Sn(h.G,""))}else vkL(h,t,t)}; vkL=function(h,t,Y){h.videoInfos=h.U;h.videoInfos=g.oK(h.videoInfos,function(L){return L.video.qualityOrdinal>=t&&L.video.qualityOrdinal<=Y})}; EkL=function(h,t,Y){if(h.Y){var L=g.oK(h.S,function(q){return q.id===h.Y}); return hR(L,Y).includes(t)}L=g.oK(h.S,function(q){var z;return!((z=q.j4)==null||!z.isDefault)}); return L.length>0?hR(L,Y).includes(t):hR(h.S,Y).includes(t)}; hR=function(h,t){return h.map(function(Y){return nz(g.pA(Y,t))})}; kiL=function(h){var t;if((t=h.T)==null?0:t.isLocked())return h.videoInfos;var Y=Az(h.G);t=g.oK(h.videoInfos,function(L){return L.Lb>h.bV.Lb?!1:!Y.has(L.id)}); AmL(h.G)&&(t=g.oK(t,function(L){return L.video.width<=854&&L.video.height<=480})); return t}; nk3=function(h,t,Y){var L=h.Cb,q=h.qe.getVideoData(),z=h.I9,V=gEL({SM:q.J(),qe:h.qe,Qi:h.Qi,bV:h.bV,n_:h.n_,Zm:h.Zm,qx:h.qx,EB:h.EB,Cg:h.Cg,isPrefetch:h.isPrefetch,qv:h.qv,sabrLicenseConstraint:q.sabrLicenseConstraint,Rt:h.Rt,n4:h.n4,Qg:h.Qg,Eb:h.Eb,Th:!!z,authorizedFormats:q.authorizedFormats}),l=sr(q,h.hY,h.nextRequestPolicy,h.l8,h.us,h.xJ,h.Qk);Y&&t&&(Y=l.GR?l.GR.map(function(y){return y.type}):[],t("sabr",{stmctxt:Y.join("_"), unsntctxt:l.JM?l.JM.join("_"):""}));t=h.ji;Y=h.Be;if(Y===void 0&&t===void 0){var H;Y=Ow3(L.fZ,(H=h.JN)==null?void 0:H.video);var w;t=Ow3(L.fZ,(w=h.JN)==null?void 0:w.audio)}if(q.UL)var W=q.UL;q={RX:V,O$:h.O$,ji:t,Be:Y,I9:z,videoPlaybackUstreamerConfig:W,eG:l};h.OW&&(q.OW=h.OW);q.P3=h.P3;q.Pb=L.Y8;return q}; Ow3=function(h,t){return t?[g.pA(t.info,h)]:[]}; tR=function(h,t,Y){var L=this;this.requestType=h;this.e4=t;this.S4=Y;this.T=null;this.zD={rLi:function(){var q;return(q=L.data)==null?void 0:q.isPrefetch}, us:function(){var q;return(q=L.data)==null?void 0:q.us}}}; Zz1=function(h,t,Y){t=EI(h.e4,f4b(h,t,Y),t);h.JL()&&t.set("probe","1");return t}; f4b=function(h,t,Y){h.hH===void 0&&(h.hH=h.e4.hH(t,Y));return h.hH}; $AL=function(h){var t,Y;return((t=h.G)==null?void 0:(Y=t.RX)==null?void 0:Y.Js)||0}; TGD=function(h){var t,Y;return!!((t=h.G)==null?0:(Y=t.RX)==null?0:Y.Rt)}; AUb=function(h){var t={},Y=[],L=[];if(!h.data)return t;for(var q=0;q=0&&(t in h.G||(h.G[t]=new I4L),h.G[t].yQ(Y,L))}; DA$=function(h,t,Y,L,q){var z=(0,g.FH)(),V=q?q(t):void 0,l;q=(l=V==null?void 0:V.uu)!=null?l:1;if(q!==0){var H;l=(H=V==null?void 0:V.profile)!=null?H:Y;mAL(h,l,z-L,q)}return t}; hK3=function(h,t,Y,L,q){if(t&&typeof t==="object"){var z=function(V){return DA$(h,V,Y,L,q)}; if(s1(t))return t.then(z);if(F5(t))return dx(t,z)}return DA$(h,t,Y,L,q)}; t51=function(){}; Yz=function(h,t){this.G=h;this.cipher=this.G.exports.AES128CTRCipher_create(t.byteOffset)}; YpL=function(h,t){return QP(iMi,function(){var Y=this;return function q(){var z,V,l;return kb(q,function(H){switch(H.T){case 1:g.d3(H,2);if(!Y.W)throw"wasm.ps.ns";z=h;V=nL;return jL(H,rx(gDi(Y,t)),4);case 4:l=V(H.G);if(!l)throw"wasm.ps.um";try{return H.return(new WebAssembly.Instance(l,z))}catch(w){}return jL(H,rx(WebAssembly.instantiate(l,z)),5);case 5:return H.return(H.G);case 2:g.pL(H),g.vW(H,0)}})}()})}; LAW=function(h,t){h.G||(h.G=dx(b1(function(){return fetch(t)}),function(Y){return Y.arrayBuffer()}),GB(h.G,function(Y){h.G=void 0; throw"wasm.ps.f: "+Y;}))}; gDi=function(h,t){if(h.T)return h.T;h.T=qpc(h,t);GB(h.T,function(Y){h.T=void 0;throw"wasm.ps.c: "+Y;}); return h.T}; qpc=function(h,t){return QP(h,function(){var Y=this;return function q(){var z,V,l,H,w,W,y,X,U,C,d,Q,J,e;return kb(q,function(v){switch(v.T){case 1:g.d3(v,2);z=[];V=window.ywc;if(!V){v.eM(4);break}l=V[t];if(!l){v.eM(4);break}if(l.mod)return v.return(l.mod);if(!l.modP){v.eM(6);break}g.oc(v,7);H=nL;return jL(v,rx(l.modP),9);case 9:return v.return(H(v.G));case 7:g.cW(v),z.unshift("pcm");case 6:if(l.bin){Y.G=jf(l.bin);v.eM(4);break}if(!l.binP){v.eM(4);break}g.oc(v,12);w=Mm;W=jf;y=nL;return jL(v,rx(l.binP), 14);case 14:Y.G=W.call(w,y(v.G));g.Q6(v,4);break;case 12:g.cW(v),Y.G=void 0,z.unshift("pfb");case 4:if(!Y.G){v.eM(15);break}g.oc(v,16);X=nL;return jL(v,rx(Y.G),18);case 18:U=X(v.G);if(Y.S)try{return v.return(new WebAssembly.Module(U))}catch(E){Y.S=!1,z.unshift("f0cs")}C=nL;return jL(v,rx(WebAssembly.compile(U)),19);case 19:return v.return(C(v.G));case 16:g.cW(v),Y.G=void 0,z.unshift("f0ca");case 15:return g.oc(v,20),LAW(Y,t),d=nL,jL(v,rx(Y.G),22);case 22:Q=d(v.G);if(Y.S)try{return v.return(new WebAssembly.Module(Q))}catch(E){Y.S= !1,z.unshift("f1cs")}J=nL;return jL(v,rx(WebAssembly.compile(Q)),23);case 23:return v.return(J(v.G));case 20:e=g.cW(v),Y.G=void 0,Y.W=!1,z.unshift("f1ca: "+e);case 21:throw"["+z.map(function(E){return'"'+E+'"'}).join(", ")+"]"; case 2:g.pL(v),g.vW(v,0)}})}()})}; zKn=function(){}; V5D=function(){var h=this;this.proc_exit=function(){}; this.fd_write=function(t,Y,L){if(!h.exports)return 1;t=new Uint32Array(h.exports.memory.buffer,Y,L*2);Y=[];for(var q=0;q0;H--)Y.push(l)}Y.length!==V?t.error=!0:(z=Y.slice(-z),Y.length=q,p0n(t,Y,z));break;case 1:p0n(t,Cy,QbL);break;case 0:vD$(t, t.G&7);Y=ER(t,16);q=ER(t,16);(Y^q)!==65535&&(t.error=!0);t.output.set(t.data.subarray(t.T,t.T+Y),t.S);t.T+=Y;t.S+=Y;break;default:t.error=!0}h.S>h.output.length&&(h.output=new Uint8Array(h.S*2),h.S=0,h.T=0,h.W=!1,h.G=0,h.register=0)}h.output.length!==h.S&&(h.output=h.output.subarray(0,h.S));return h.error?new Uint8Array(0):h.output}; p0n=function(h,t,Y){t=eKp(t);Y=eKp(Y);for(var L=h.data,q=h.output,z=h.S,V=h.register,l=h.G,H=h.T;;){if(l<15){if(H>L.length){h.error=!0;break}V|=(L[H+1]<<8)+L[H]<>=7;w<0;)w=t[(V&1)-w],V>>=1;else V>>=w&15;l-=w&15;w>>=4;if(w<256)q[z++]=w;else if(h.register=V,h.G=l,h.T=H,w>256){V=FT[w];V+=ER(h,MV[w]);H=Jxn(h,Y);l=sR[H];l+=ER(h,rxb[H]);if(aJL&&VY.length&&(h.error=!0);h.register|=(Y[L+1]<<8)+Y[L]<=0)return vD$(h,Y&15),Y>>4;for(vD$(h,7);Y<0;)Y=t[ER(h,1)-Y];return Y>>4}; ER=function(h,t){for(;h.G=h.data.length)return h.error=!0,0;h.register|=h.data[h.T++]<>=t;h.G-=t;return Y}; vD$=function(h,t){h.G-=t;h.register>>=t}; eKp=function(h){for(var t=[],Y=g.b(h),L=Y.next();!L.done;L=Y.next())L=L.value,t[L]||(t[L]=0),t[L]++;var q=t[0]=0;Y=[];var z=0;L=0;for(var V=1;V7&&(z+=t[V]);for(q=1;q>H&1;l=z<<4|V;if(V<=7)for(H=1<<7-V;H--;)L[H<>=7;V--;){L[H]||(L[H]=-t,t+=2);var w=q&1;q>>=1;H=w-L[H]}L[H]=l}}return L}; ED6=function(h){var t,Y,L,q,z,V,l,H,w;return g.k(function(W){switch(W.T){case 1:if(!xDW)throw Error("DecompressionStream is not supported");t=qV.SG();Y=new DecompressionStream("gzip");L=Y.writable.getWriter();L.write(h);L.close();q=Y.readable.getReader();z=new mD([]);case 2:return g.K(W,q.read(),5);case 5:V=W.G;l=V.value;if(H=V.done){W.eM(4);break}z.append(l);W.eM(2);break;case 4:return w=gX(z),qV.fm("gznb",t,Math.ceil(w.byteLength/16)),W.return(w)}})}; kH3=function(h){bH.call(this,"onesie");this.N_=h;this.G={};this.W=!0;this.S=null;this.queue=new GHL(this);this.X={}}; OM6=function(h){var t=h.queue;t.G.length&&t.G[0].isEncrypted&&!t.T&&(t.G.length=0);t=g.b(Object.keys(h.G));for(var Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L=h.G[Y];if(!L.FP){var q=h.queue;q.G.push({videoId:L.videoId,formatId:Y,isEncrypted:!1});q.T||UR(q)}}}; nD6=function(h,t){var Y=t.totalLength,L=!1;switch(h.S){case 0:h.eK(t,h.W).then(function(q){var z=h.N_;z.jE("oprr");z.playerResponse=q;z.Qo||(z.rK=!1);kz(z)},function(q){h.N_.fail(q)}); break;case 2:h.jE("ormk");t=gX(t);h.queue.decrypt(t);break;default:L=!0}h.N_.eU&&h.N_.Pm("ombup","id.11;pt."+h.S+";len."+Y+(L?";ignored.1":""));h.S=null}; fJL=function(h,t){var Y,L,q,z,V;return g.k(function(l){switch(l.T){case 1:h.N_.jE("oprgz_s");if(!xDW){l.eM(2);break}g.oc(l,3);return g.K(l,ED6(t),5);case 5:return Y=l.G,h.N_.jE("oprgz_n"),l.return(Y);case 3:L=g.cW(l),h.N_.Pm("gzerr",{impl:"native",err:""+L});case 2:if(q=h.N_.J().nL)try{var H=qV.SG(),w=q.uF(t),W=q,y=w!=null?w:t,X=y.byteOffset,U=y.byteLength,C=W.exports.getInflatedSize(X,U);if(C===0)throw Error("wasm_gz: bad input");var d=W.malloc(C),Q=W.exports.inflateGzip(X,U,d);if(Q)throw W.free(d), Error("wasm_gz: fail"+Q);var J=new Uint8Array(W.exports.memory.buffer,d,C);w&&q.free(w.byteOffset);var e=q.Xw(J);qV.fm("gzwb",H,Math.ceil(e.byteLength/16));z=e;h.N_.jE("oprgz_w");return l.return(z)}catch(v){h.N_.Pm("gzerr",{impl:"wasm",err:""+v})}H=qV.SG();w=g.KA1(new g.cxp(t));qV.fm("gzjb",H,Math.ceil(w.byteLength/16));V=w;h.N_.jE("oprgz_p");return l.return(V)}})}; $D$=function(h){return new Promise(function(t){setTimeout(t,h)})}; Tfc=function(h,t){var Y=h.J();Y=h.uM&&Y.N("html5_onesie_preload_use_content_owner");var L=h.p9,q=Wc(t.Me.experiments,"debug_bandaid_hostname");if(q)t=Wi(t,q);else if((Y===void 0?0:Y)&&(L==null?0:L.url)&&!t.T){var z=Os(new g.Es(L.url));t=Wi(t,z)}else t=(z=t.G.get(0))==null?void 0:z.location.clone();if(t&&h.videoId){z=MA(h.videoId);h=[];if(z)for(z=g.b(z),Y=z.next();!Y.done;Y=z.next())h.push(Y.value.toString(16).padStart(2,"0"));t.set("id",h.join(""));return t}}; AxL=function(h,t,Y){Y=Y===void 0?0:Y;var L,q;return g.k(function(z){if(z.T==1)return L=[],L.push(t.load()),Y>0&&L.push($D$(Y)),g.K(z,Promise.race(L),2);q=Tfc(h,t);return z.return(q)})}; Sp6=function(h,t,Y,L){L=L===void 0?!1:L;h.set("cpn",t.clientPlaybackNonce);h.set("opr","1");var q=t.J();h.set("por","1");iw()||h.set("onem","1");t.startSeconds>0&&h.set("osts",""+t.startSeconds);L||(q.N("html5_onesie_disable_partial_segments")&&h.set("oses","1"),t=q.N("html5_gapless_onesie_no_media_bytes")&&X$(t)&&t.uM,Y&&!t?(t=Y.audio,h.set("pvi",Y.video.join(",")),q.N("html5_onesie_disable_audio_bytes")||h.set("pai",t.join(",")),wG||h.set("osh","1")):(h.set("oad","0"),h.set("ovd","0"),h.set("oaad", "0"),h.set("oavd","0")))}; IJL=function(h,t,Y,L,q){q=q===void 0?!1:q;var z="https://youtubei.googleapis.com/youtubei/"+t.iB.innertubeApiVersion+"/player",V=[{name:"Content-Type",value:"application/json"}];L&&V.push({name:"Authorization",value:"Bearer "+L});V.push({name:"User-Agent",value:g.xp()});g.Ey("EOM_VISITOR_DATA")?V.push({name:"X-Goog-EOM-Visitor-Id",value:g.Ey("EOM_VISITOR_DATA")}):(Y=Y.visitorData||g.Ey("VISITOR_DATA"))&&V.push({name:"X-Goog-Visitor-Id",value:Y});(Y=g.Ey("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&V.push({name:"X-YouTube-Lava-Device-Context", value:Y});(t=Wc(t.experiments,"debug_sherlog_username"))&&V.push({name:"X-Youtube-Sherlog-Username",value:t});h=wX(JSON.stringify(h));return{url:z,NZ:V,postBody:h,Bae:q,O1:q}}; RKL=function(h,t,Y,L,q,z,V){var l=h.mN,H=h.H7;h=h.raM;var w=l!==void 0&&H!==void 0,W=L.getVideoData(),y,X=t.G.encryptedClientKey;t=w?t.iv:void 0;w=JU(Y.schedule,!0);q=q||!!iw()&&w>1572864;return{innertubeRequest:{VQm:h,wQ:l,H7:H,encryptedClientKey:X,iv:t,mUi:!0,jc:!0,DZ:"DecompressionStream"in window||!q,B0G:Y.experiments.I0("html5_use_jsonformatter_to_parse_player_response")},RX:gEL({SM:Y,qe:L,Qi:W.startSeconds*1E3}),onesieUstreamerConfig:z,qd:V,eG:sr(W),reloadPlaybackParams:(y=W.xa)==null?void 0: y.reloadPlaybackParams}}; Bfb=function(h,t,Y,L,q,z){var V=Y.nL,l=g.nW(h,Wt3,h.O1?void 0:V);if(!h.O1){if(V){var H;try{t.S||(t.S=new lP(t.G.G,t.X,t.U));var w=H=t.S.T(l,t.iv);(0,g.FH)();var W=t.T.uF(t.iv),y=t.T.uF(t.G.T),X=t.T,U=new Uint8Array(X.exports.memory.buffer,X.malloc(32),32);X.exports.Sha256Hmac(y.byteOffset,y.byteLength,W.byteOffset,W.byteLength,w.byteOffset,w.byteLength,U.byteOffset);t.T.free(W.byteOffset);t.T.free(y.byteOffset);var C=t.T.Xw(U);var d;var Q=(d=V.Xw(H))!=null?d:H;H=void 0}catch(J){H&&V.free(H.byteOffset)}}Q|| (Q=t.encrypt(l));C||(V=Q,(0,g.FH)(),C=LYb(new YPp(t.G.T),V,t.iv))}return RKL(Q&&C?{mN:Q,H7:C}:{raM:l},t,Y,L,!!h.O1,q,z)}; PCb=function(h,t,Y,L,q,z){var V,l,H;return g.k(function(w){if(w.T==1)return V=g.nW(h,Wt3),g.K(w,CCp(t,V),2);if(w.T!=3)return l=w.G,g.K(w,M51(t,l),3);H=w.G;return w.return(RKL({mN:l,H7:H},t,Y,L,!!h.O1,q,z))})}; ny=function(h,t){g.O.call(this);var Y=this;this.qe=h;this.playerRequest=t;this.logger=new g.yn("onesie");this.xhr=null;this.state=1;this.Fo=new VT;this.dZ=!1;this.playerResponse="";this.jT=new iH(this);this.UW=new kH3(this);this.OF="";this.jN=this.GJ=!1;this.NR="";this.enableCompression=this.Qo=this.o8=!1;this.Qz=[];this.vS=-1;this.JE=0;this.Me=this.qe.J();this.videoData=this.qe.getVideoData();this.eU=this.Me.pZ();this.il=this.Me.Bi;this.wy=new Hi(this.il.G,this.Me.M6,SZL(this.Me));this.Vz=this.Me.N("html5_onesie_check_timeout"); this.Z7=new g.nE(this.hN,500,this);this.tO=new g.nE(this.Ws,1E4,this);this.GH=new g.nE(function(){if(!Y.isComplete()){var L=OR(Y);Y.fail(new g.zk("net.timeout",L))}},1E3); this.ol=new g.nE(this.wf,2E3,this);this.sQ=this.qe.Fm();this.rK=this.N("html5_onesie_wait_for_media_availability");g.f(this.videoData,this);g.f(this,this.Z7);g.f(this,this.tO);g.f(this,this.ol);g.f(this,this.wy);h=Xi();wG&&h&&(this.uj=new Map);this.BV=new Map;this.S$=new Map;this.YK=new Map;this.Zz=new Map}; XT=function(h,t){var Y;return(Y=h.uj)==null?void 0:Y.get(t)}; DDW=function(h,t,Y){var L;return g.k(function(q){if(q.T==1)return h.jE("oprd_s"),mDD(h)?g.K(q,FAL(h.wy,t,Y),3):(L=h.wy.decrypt(t,Y),q.eM(2));q.T!=2&&(L=q.G);h.jE("oprd_c");return q.return(L)})}; hQi=function(h){return h.N("html5_onesie_host_probing")||h.eU?wG:!1}; kz=function(h){if(!h.playerResponse)return!1;if(h.o8)return!0;var t=h.videoData.N("html5_onesie_audio_only_playback")&&Uf(h.videoData);if(h.uj&&h.rK){if(!h.uj.has(h.OF))return!1;var Y=h.uj.get(h.OF),L;if(L=Y){L=!1;for(var q=g.b(Y.lL.keys()),z=q.next();!z.done;z=q.next())if(z=Y.lL.get(z.value))for(var V=g.b(z.ZO),l=V.next();!l.done;l=V.next())l.value.XU>0&&(z.N0?L=!0:t=!0);L=!(t&&L)}if(L)return!1}h.jE("ofr");h.Fo.resolve(h.playerResponse);if(!h.Vz){var H;(H=h.GH)==null||H.start();h.tO.start()}return h.o8= !0}; iIL=function(h){if(h.uj&&!h.N("html5_onesie_media_capabilities")){h.jE("ogsf_s");var t=BO3(h.qe.getVideoData(),function(L,q){h.Pm(L,q)}),Y=t_D(h.qe); t.video=Oh3(Y,t.video);h.jE("ogsf_c");if(t.video.length)return t;h.Pm("ombspf","l."+Y.T+";u."+Y.G+";o."+Y.S+";r."+Y.reason)}}; mDD=function(h,t){return h.N("html5_onesie_sync_request_encryption")||(t==null?0:t.O1)||g.lC(h.Me)&&h.N("html5_embed_onesie_use_sync_encryption")?!1:!!iw()}; OR=function(h){if(!h.hJ)return{};var t=h.hJ.cA(),Y;t.d=(Y=h.hJ.gU)==null?void 0:Y.LC();t.shost=h.qt;t.ty="o";return t}; g$L=function(h,t){var Y,L;(L=(h=(Y=h.uj)==null?void 0:Y.get(t))==null)||(t=h.S?!1:h.S=!0,L=!t);return!L}; Yfr=function(h,t,Y,L,q,z,V,l,H,w,W){g.O.call(this);var y=this;this.qe=h;this.loader=t;this.policy=Y;this.audioTrack=L;this.videoTrack=q;this.Cb=z;this.TD=V;this.yG=l;this.S=H;this.timing=w;this.AQ=W;this.G=[];this.X={};this.lP=this.JQ=!1;this.W=this.Ne=this.L=this.Y8=this.Cg=0;this.Y=null;this.R0={P3:[],O$:[]};this.Wm={P3:[],O$:[]};this.C=null;this.U=[];this.zD={xd5:function(){return y.G}, CeM:function(){return y.X}, CC5:function(){y.G.length=0}, Jvm:function(){return y.videoData.iP}, FOb:function(){return y.L}, kFi:function(X){y.L=X}, I6m:function(X){y.W=X}, RK:function(X){y.C=X}, Na:function(X){y.U=X}}; this.videoData=this.qe.getVideoData();this.policy.nL&&(this.X5=new $H(this.loader,this.policy,this.TD),g.f(this,this.X5))}; zQL=function(h,t){t=t===void 0?!1:t;if(LCL(h)){h.policy.U&&h.loader.Pm("sabrcrq",{create:1});var Y=new tR(0,h.Cb.Y,h);h.policy.Df>0&&h.W++;t=qfL(h,Y,t);h.G.push(t);var L;(L=h.X5)==null||CEp(L,h.Cb.Y)}}; lK3=function(h,t){var Y=V_b(h);if(h.policy.mK){var L=h.R0;var q=h.Wm}else L=fy(h,h.audioTrack),q=fy(h,h.videoTrack);var z=[].concat(g.p(L.P3),g.p(q.P3));$z(h)&&z.push.apply(z,g.p(h.U));var V=[].concat(g.p(L.O$),g.p(q.O$)),l=h.loader.RR();if(h.policy.xm&&!h.videoData.isLivePlayback){var H=h.videoData.lengthSeconds*1E3;Y>=H&&h.loader.Pm("invalidSabrCmt",{cmt:Y,vd:H})}var w,W;H=h.qe;var y=h.Cb,X=h.T,U=h.videoData.iP,C=h.policy,d=h.loader.xu,Q=bwc(h.loader)*1E3,J=(w=h.gU)==null?void 0:w.qx;w=(W=h.gU)== null?void 0:W.EB;var e;W=Number((e=h.S.W)==null?void 0:e.info.itag)||0;var v;e=Number((v=h.S.X)==null?void 0:v.info.itag)||0;t={qe:H,Cb:y,P3:z,O$:V,Qi:Y,nextRequestPolicy:X,l8:U,bV:C,n_:d,Zm:Q,qx:J,EB:w,Cg:h.Cg,isPrefetch:t||h.loader.isSuspended,NC:W,XM:e,hY:l,Qk:h.qe.mI()};Y=h.loader.yE();z=MA(Y);Y&&(t.us=z);if(Y=h.qe.X9())t.Rt=Y*1E3;var E;Y=h.S;z=Y.AQ;if(((E=Y.bV)==null?0:FY(E))&&!z)for(E=g.b(Y.S),V=E.next();!V.done;V=E.next())if(V.value.j4){z=!0;break}E=FY(Y.bV)&&!z?[]:e2i(Y,Y.S);t.ji=E;E=h.S; FY(E.bV)&&!E.x8?E=[]:(Y=kiL(E),Y.length===0&&(Y=E.U),E=e2i(E,Y));t.Be=E;t.I9=$z(h)?[h.C]:void 0;h.policy.Uh&&(t.Qg=Nuc(h.loader,h.audioTrack),t.Eb=Nuc(h.loader,h.videoTrack));if(h.policy.T){E=h.loader.getCurrentTime();L=T$(h,L.P3,E);q=T$(h,q.P3,E);q=Math.min(L,q);$z(h)&&(L=T$(h,h.U,E),h.qe.pZ()&&L0&&h.G[0].gp()&&(t.xJ=h.G[0].wr());return t}; V_b=function(h){var t,Y=h.policy.X&&((t=h.loader)==null?void 0:t.wB());t=h.loader.getCurrentTime()||0;t=HIL(h,t);var L=h.loader.O3()||0;t+=L;L=k$(h.videoData)||g.Ef(h.videoData);var q=0;Y?(L&&(q=Number.MAX_SAFE_INTEGER),h.videoData.AQ&&(q=Math.ceil(h.videoData.Wm*1E3))):q=Math.ceil(t*1E3);return Math.min(Number.MAX_SAFE_INTEGER,q)}; $z=function(h){return h.policy.Vb&&!!h.C}; HIL=function(h,t){if(h.loader.isSeeking())return t;var Y=h.qe.iL();if(!Y)return t;Y=Y.jQ();if(Y.length===0||$W(Y,t))return t;if(!E9(h.videoTrack,t)&&!E9(h.audioTrack,t))return h.loader.Pm("sundrn",{b:0,lt:t}),t;for(var L=t,q=Infinity,z=0;zt)){var V=t-Y.end(z);V=20)?(h.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),t):L}; T$=function(h,t,Y){h=h.loader.O3()||0;return AR(t,(Y+h)*1E3)/1E3+Y}; LCL=function(h){if(h.policy.Df>0){var t=Math.floor((0,g.FH)()/1E4);if(t===h.Ne){if(h.W>=h.policy.Df){if(h.W===h.policy.Df){var Y={reason:"toomanyrequests"};Y.limit=h.W;h.loader.handleError("player.exception",Y);h.W+=1}return!1}}else h.Ne=t,h.W=0}if(h.loader.isSuspended&&h.loader.Uj)return!1;if(h.x8&&(0,g.FH)()0&&(!h.policy.L||h.G.length!==1||!h.G[0].gp()))return!1;var L;if(!(t=(L=h.Cb.Y)==null||!OI(L,h.policy,h.X,h.loader.yV())||K1(h.audioTrack)&&K1(h.videoTrack))){if(L= h.policy.T){L=!1;if(h.AQ.T===2)L=!0;else if(h.AQ.T===3){V_b(h);h.loader.O3();var q=GP(h.audioTrack,h.loader.isSeeking()).P3;t=GP(h.videoTrack,h.loader.isSeeking()).P3;var z=h.loader.getCurrentTime()||0;q=T$(h,q,z);t=T$(h,t,z);t=Math.min(q,t);z=h.AQ;t>=z.X?(z.Pm("sdai",{haltrq:t,est:z.X}),t=!0):t=!1;t&&(L=!0)}L&&h.policy.U&&h.loader.Pm("sabrcrq",{waitad:1})}t=L}if(t)return!1;h.policy.mK&&(h.R0=fy(h,h.audioTrack),h.Wm=fy(h,h.videoTrack));if(!h.T)return h.policy.U&&h.loader.Pm("sabrcrq",{nopolicy:1}), !0;if(h.qe.X9())return h.policy.U&&h.loader.Pm("sabrcrq",{utc:1}),!0;if(h.S.C)return h.policy.U&&h.loader.Pm("sabrcrq",{audio:1}),!0;if(!h.T.targetAudioReadaheadMs||!h.T.targetVideoReadaheadMs)return h.policy.U&&h.loader.Pm("sabrcrq",{noreadahead:1}),!0;if(h.policy.X&&h.loader.wB())return h.policy.U&&h.loader.Pm("sabrcrq",{seekToHead:1}),!0;L=Math.min($t(h.loader,h.audioTrack)*1E3,h.T.targetAudioReadaheadMs);t=Math.min($t(h.loader,h.videoTrack)*1E3,h.T.targetVideoReadaheadMs);var V=Math.min(L,t); z=ec(h.audioTrack,!0)*1E3;q=ec(h.videoTrack,!0)*1E3;var l=h.qe.getCurrentTime()*1E3;if(h.policy.mK){var H=AR(h.R0.P3,l);var w=AR(h.Wm.P3,l)}else H=z,w=q;var W=Ht||L>=0&&q.bx>L+1)break;Y=Math.max(Y,q.startTimeMs+q.durationMs);L=Math.max(L,q.P2)}return Math.max(0,Y-t)}; qfL=function(h,t,Y){var L={TD:h.TD,Yx:function(H,w){h.qe.Eq(H,w)}, QE:h.policy.GV,Dv:h.policy.S};h.TD.T.U&&(L.lz=(h.videoTrack.G.info.Lb||0)+(h.audioTrack.G.info.Lb||0));h.policy.w4&&(L.KC=h.audioTrack.G.index.Cy(),L.QE=!1);var q=f4b(t,h.policy,h.X)?2:1;q!==h.L&&(h.L=q,WC$(h));Y=lK3(h,Y);if(h.policy.L&&h.policy.S&&Y.l8){for(var z=q="",V=g.b(Y.l8),l=V.next();!l.done;l=V.next())l=l.value,h.videoData.sabrContextUpdates.has(l)||h.policy.L&&Y.xJ&&Y.xJ.type===l?q+="_"+l:z+="_"+l;h.loader.Pm("sabrbldrqs",{ctxts:q,misctxts:z})}!t.setData(Y,h.policy,h.X)&&h.policy.L&&h.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);L=new Jz(h.policy,t,h.Cb,h.X,h,L,h.loader.Fm());pa(h.timing);h.policy.U&&h.loader.Pm("sabrcrq",{rn:L.QQ(),probe:t.JL()});return L}; Ij=function(h,t){if(t.Ui()||h.Ui())h.policy.Pu||(h.policy.X?Si(h.loader):h.loader.WZ());else{if(h.policy.S&&t.isComplete()&&t instanceof Jz){var Y=h.loader,L=Y.Pm,q,z,V=Object.assign(t.hJ.cA(),{rst:t.state,strm:t.xhr.Mf(),d:(q=t.hJ.gU)==null?void 0:q.LC(),cncl:t.xhr&&t.Zo.W?1:0,rqb:t.kK,cwt:t.lf,swt:(z=t.Lt)==null?void 0:z.dh});q=Object.assign(AUb(t.info),V);L.call(Y,"rqs",q)}if(t.isComplete()&&t.JL()&&t instanceof Jz)h.policy.dP?t.cX()?(t.dispose(),h.G.length===0?h.loader.WZ():(h=h.G[0],h instanceof Jz&&h.Du()&&h.Pp())):t.X8()&&h.loader.handleError(t.vM(),t.kM()):(t.dispose(),h.loader.WZ());else{if(t.gR())t instanceof Jz&&vED(h.timing,t),WC$(h),yL$(h);else if(t.X8())Y=h.qe.X9(),t instanceof Jz&&TGD(t.info)&&Y&&h.loader.S7(Y),t instanceof ny?h.G.pop():(Y=1,t.canRetry()&&rUi(h.loader)&&(Xu6(h,t),Y=0),h.loader.handleError(t.vM(),t.kM(),Y));else{if(h.loader.isSuspended&&!t.isComplete())return;yL$(h)}t.Ui()||t instanceof ny||(t.isComplete()?Y=s9c(t,h.policy,h.X):(Y=FdW(t,h.policy,h.X),Y===1&&(h.JQ= !0)),Y!==0&&(L=new tR(1,t.info.e4),L.hH=Y===2,qfL(h,L)));h.policy.y4&&!t.isComplete()?Q9n(h.loader):h.loader.WZ()}}}; yL$=function(h){for(;h.G.length&&h.G[0].IE(h.Oz());){var t=h.G.shift();UZc(h,t)}h.G.length&&UZc(h,h.G[0])}; UZc=function(h,t){t instanceof Jz&&(h.Zx=t);var Y=new Set(t.NB(h.Oz()));Y=g.b(Y);for(var L=Y.next();!L.done;L=Y.next()){var q=L.value;if(!(L=!(t instanceof ny))){L=h.S;var z=L.Cb.fZ,V=hR(L.videoInfos,z);z=EkL(L,q,z);var l=V.includes(q);!L.bV.lT||z||l||L.loader.Pm("sabrcpf",{fid:""+q,vfids:""+V.join("."),said:L.Y||""});L=z||V.includes(q)}if(L&&(L=t.jP(q,h.Oz()),V=h.policy.Vb&&au(L[0].G.info.mimeType),t.Cq(q,h.Oz())))for(q=t.kQ(q,h.Oz()),q=g.b(q),z=q.next();!z.done;z=q.next())if(z=z.value,h.policy.S&& t instanceof ny&&h.loader.Pm("omblss",{s:z.info.uL()}),V)l=h.timing,l.AQ||(l.AQ=(0,g.FH)(),g.x_("fcb_r",l.AQ,l.G)),l=h,l.videoData.fZ()&&l.C&&nz(l.C)===nz(g.pA(z.info.G.info,l.Cb.fZ))&&l.qe.publish("sabrCaptionsDataLoaded",z,l.Na.bind(l));else{l=z.info.G.info.N0();var H=z.info.G;if(l){var w=void 0;var W=h.S,y=(w=t.By(h.Oz()))==null?void 0:w.token;W.C&&H!==W.X?w=!0:(W.C=!1,H!==W.X&&(W.X=H,W.ir(H,W.audioTrack,y)),w=!1);if(w)continue}else w=void 0,ui6(h.S,H,(w=t.By(h.Oz()))==null?void 0:w.token);w=l? h.audioTrack:h.videoTrack;t instanceof ny&&(w.C=!1,t instanceof ny&&(l?QdL(h.timing):G2$(h.timing)));try{dF(w,L,z)}catch(X){z=NS(X),h.loader.handleError(z.errorCode,z.details,z.severity),w.NW(),h.Z6(!1,"pushSlice"),Si(h.loader)}}}}; Xu6=function(h,t){h.policy.L?h.G.splice(h.G.indexOf(t)).forEach(function(Y){Y.dispose()}):(h.G.pop(),t==null||t.dispose())}; C6L=function(h,t,Y){for(var L=[],q=0;q0)for(var t=g.b(h.videoData.sabrContextUpdates.keys()),Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L=void 0;((L=h.videoData.sabrContextUpdates.get(Y))==null?0:L.sendByDefault)&&h.videoData.iP.add(Y)}if(h.policy.L&&h.G.length)for(t=g.b(h.G),Y=t.next();!Y.done;Y=t.next())(Y=Y.value.wr())&&Y.type&&Y.sendByDefault&&h.videoData.iP.add(Y.type)}; M_L=function(h){h.policy.Im&&(h.gU=void 0,h.Cg=0)}; FC1=function(h,t){if(t.X8()||t.Ui()){var Y=h.loader,L=Y.Pm,q=t.state;h=h.Oz();var z,V;if((t=(z=t.uj)==null?void 0:z.get(h))==null)t=void 0;else{z=0;h=t.NB();for(var l=0;l=t.mediaTime&&g.R(h.qe.getPlayerState(),8)?(t.resolve([t.mediaTime,t.id]),h.G.delete(t.id)):(t.delay.dispose(),t.delay=new g.nE(function(){bIL(h,t)},(t.mediaTime-Y)*1E3/h.qe.getPlaybackRate()),t.delay.start())}; QsL=function(h,t,Y,L){var q=this;this.S=h;this.cpn=t;this.qe=Y;this.G=L;this.T=new Map;this.X=new Map;this.C=this.Y=NaN;this.U=!1;this.MW="";this.isSeeking=!1;this.L=0;this.W=new jsW(Y);this.W2=Y.W2;this.qe.subscribe("SEEK_TO",function(){q.i5()}); this.qe.subscribe("SEEK_COMPLETE",function(){GZi(q)})}; cL1=function(h,t){if(!h.isSeeking&&h.L!==t&&!isNaN(h.Y)){h.L=t;var Y=h.U?h.C:h.S.RF(t);(Y!==h.C||h.U)&&rLL(h,Y,t)}}; rLL=function(h,t,Y){var L=h.T.get(t),q=h.S.getStartTime(t),z=h.S.getDuration(t);h.U=!1;h.C=t;var V=q,l;((l=L==null?void 0:L.G)!=null?l:[h.cpn]).forEach(function(H,w){var W;w=(W=L==null?void 0:L.T[w])!=null?W:z;Y>=V&&Yq?pu6(h,z,h.T.get(z)):z===q&&pu6(h,z,h.T.get(z),L-h.S.getStartTime(z))})}; u$3=function(h,t,Y,L){t!==h.MW&&(h.qe.Pm("ssevt",{tag:h.G===0?"sstd-cr":h.G===1?"sstd-tm":h.G===2?"sstd-poll":h.G===3?"sstd-poll100":"sstd-unknown",ad:h.cpn!==t,cpn:t,st:Y.toFixed(3),late:Math.round(h.isSeeking?0:(L-Y)*1E3)}),h.MW=t)}; v$D=function(h){var t=g.b(h.split("."));h=t.next().value;t=t.next().value;return[Number(h),t]}; JLL=function(h,t,Y,L){Y=t+"."+Y;h.X.has(t)?h.X.get(t).push(Y):h.X.set(t,[Y]);h.G===1&&o$L(h.W,L,Y).then(function(q){var z=g.b(q);q=z.next().value;z=z.next().value;z=g.b(v$D(z));z.next();z=z.next().value;u$3(h,z,q,ZIW(h.W))}); h.G===0&&(h.W2.Ks("transitiondetector",Y),t=(L+h.qe.O3())*1E3,h.W2.Ji([new g.aZ(t,t+5E3,{id:Y,namespace:"transitiondetector",priority:9})]))}; KC$=function(h,t,Y,L,q){this.loader=h;this.policy=t;this.schedule=Y;this.Gg=L;this.L=q;this.AQ=NaN;this.T=this.C=this.W=null;this.G=this.X=this.U=this.startTimeSecs=NaN;this.S=!1;this.Y=NaN}; aKL=function(h,t,Y,L,q,z){return t.lB&&t.R7&&Y===3?new KC$(h,t,L,q,z):null}; xZ6=function(h,t){if(h.policy.DE){var Y=t.info.Lb,L=JU(h.schedule);t=t.index.Cy();Y=Math.max(1,L/Y);h.Y=Math.round(Math.max(((Y-1)*t+h.policy.pn)/Y,t-h.policy.MG)*1E3)}}; OI6=function(h,t){var Y=Date.now()/1E3,L=Y-h.startTimeSecs,q=Y-h.U,z=q>=h.policy.w_,V=!1;if(z){var l=0;!isNaN(t)&&t>h.X&&(l=t-h.X,h.X=t);l/q=h.policy.MG&&!h.S;if(!z&&!Y&&E$p(h,t))return NaN;Y&&(h.S=!0);a:{L=V;Y=(0,g.FH)()/1E3-(h.Gg.ID()||0)-h.C.G-h.policy.pn;z=h.T.startTime;Y=z+Y;if(L){if(isNaN(t)){Rj(h,NaN,"n",t);z=NaN;break a}L=t-h.policy.LI;L0&&(l.headers=H);z&&(l.onFinish=z);return Object.keys(l).length>1? l:null}; P6L=function(h,t,Y,L,q,z,V,l){DF()&&Y.token&&(h=BB(h,{ctt:Y.token,cttype:Y.cC,mdx_environment:Y.mdxEnvironment}));L.N("net_pings_low_priority")&&(t||(t={}),t.priority="low");z||l&&L.N("nwl_skip_retry")?(t==null?t={}:IKb(h,L.N("html5_assert_cpn_with_regex")),V?Eo().sendAndWrite(h,t):Eo().sendThenWrite(h,t,l)):t?(IKb(h,L.N("html5_assert_cpn_with_regex")),LoL(h,t)):g.rd(h,q)}; mZn=function(h){for(var t=[],Y=0;Y0&&Y>0&&!h.T&&h.S<1E7)try{h.W=h.X({sampleInterval:t,maxBufferSize:Y});var L;(L=h.W)==null||L.addEventListener("samplebufferfull",function(){return g.k(function(q){if(q.T==1)return g.K(q,h.stop(),2);tHD(h);g.Z$(q)})})}catch(q){h.T=hb6(q.message)}}; Pi=function(h,t){var Y,L;return!!((Y=window.h5vcc)==null?0:(L=Y.settings)==null?0:L.set(h,t))}; glD=function(){var h,t,Y,L=(h=window.h5vcc)==null?void 0:(t=h.settings)==null?void 0:(Y=t.getPersistentSettingAsString)==null?void 0:Y.call(t,"cpu_usage_tracker_intervals");if(L!=null){var q;h=(q=JSON.parse(L))!=null?q:[];q=h.filter(function(w){return w.type==="total"}).map(function(w){return w.seconds}); t=g.b(iop);for(Y=t.next();!Y.done;Y=t.next())Y=Y.value,q.indexOf(Y)===-1&&h.push({type:"total",seconds:Y});var z,V;(z=window.h5vcc)==null||(V=z.settings)==null||V.set("cpu_usage_tracker_intervals_enabled",1);var l,H;(l=window.h5vcc)==null||(H=l.settings)==null||H.set("cpu_usage_tracker_intervals",JSON.stringify(h))}}; YY3=function(){var h=window.H5vccPlatformService,t="";if(h&&h.has("dev.cobalt.coat.clientloginfo")&&(h=h.open("dev.cobalt.coat.clientloginfo",function(){}))){var Y=h.send(new ArrayBuffer(0)); Y&&(t=String.fromCharCode.apply(String,g.p(new Uint8Array(Y))));h.close()}return t}; g.hh=function(h){g.O.call(this);var t=this;this.provider=h;this.logger=new g.yn("qoe");this.G=new Map;this.sequenceNumber=1;this.x8=NaN;this.yp="N";this.Y=this.AM=this.nT=this.AQ=this.T=0;this.y4=this.Zx=this.U=this.lP="";this.Im=this.Ne=NaN;this.dP=0;this.fn=-1;this.pn=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Pq=this.isEmbargoed=this.gU=this.isOffline=this.isBuffering=!1;this.Vb=[];this.L=null;this.MD=this.W=this.tQ=this.C=!1;this.S=-1;this.JQ=!1;this.m$=new g.nE(this.Nl,750,this);this.wb= this.adCpn=this.Wm=this.contentCpn="";this.adFormat=void 0;this.UX=0;this.iP=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.R7=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.G$=!1;this.Ds=NaN;this.X5=0;this.Q4=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Hq=!1;this.M6=new Set;this.zD={zG:function(L){t.zG(L)}, Ip0:function(){return t.X}, gV:function(){return t.contentCpn}, Nvx:function(){return t.Wm}, reportStats:function(){t.reportStats()}, KOm:function(){return t.G.get("cat")||[]}, uD:function(L){return t.G.get(L)||[]}, WvU:function(){return t.G}, ZVQ:function(){return 0}, TvP:function(){return{adCpn:t.adCpn,wb:t.wb,adFormat:t.adFormat}}}; this.R0=this.provider.Me.N("html5_qoe_relaxed_reporting");var Y=g.Sk(this.provider.Me.experiments,"html5_qoe_proto_mock_length");Y&&!mh.length&&(mh=mZn(Y));g.f(this,this.m$);try{navigator.getBattery().then(function(L){t.L=L})}catch(L){}g.D6(this,0,"vps",["N"]); h.Me.pZ()&&(this.X5=(0,g.FH)(),this.Ds=g.VR(function(){var L=(0,g.FH)(),q=L-t.X5;q>500&&t.Pm("vmlock",{diff:q.toFixed()});t.X5=L},250)); this.provider.videoData.qq&&(this.remoteControlMode=LML[this.provider.videoData.qq]||0);this.provider.videoData.Y9&&(Y=NAb(this.provider.videoData.Y9),Y==null?0:Y.length)&&(this.remoteConnectedDevices=Y);h.Me.pZ()&&(this.yG=new $Zp,g.f(this,this.yG));Y=g.Sk(h.Me.experiments,"html5_js_self_profiler_sample_interval_ms");h=g.Sk(h.Me.experiments,"html5_js_self_profiler_max_samples");Y>0&&h>0&&(this.Y8=new Bi(Y,h),g.f(this,this.Y8))}; th=function(h,t,Y){var L=h.G.get(t);L?L.push(Y):h.G.set(t,[Y])}; g.D6=function(h,t,Y,L){th(h,Y,t.toFixed(3)+":"+L.join(":"))}; qYL=function(h,t){var Y=h.adCpn||h.provider.videoData.clientPlaybackNonce,L=h.provider.getCurrentTime(Y);g.D6(h,t,"cmt",[L.toFixed(3)]);Y=L=h.provider.Bx(Y);if((!h.X||h.provider.Me.N("html5_shorts_gapless_no_gllat")&&X$(h.provider.videoData)?0:Y*1E3>h.X.gt+100)&&h.X){var q=h.X;Y=q.isAd;L=L*1E3-q.gt;h.E_=t*1E3-q.ETG-L-q.nTi;q=(0,g.FH)()-L;t=h.E_;L=h.provider.videoData;var z=L.isAd();if(Y||z){z=(Y?"ad":"video")+"_to_"+(z?"ad":"video");var V={};L.U&&(V.cttAuthInfo={token:L.U,videoId:L.videoId});V.startTime= q-t;ZN(z,V);g.jC({targetVideoId:L.videoId,targetCpn:L.clientPlaybackNonce},z);sH("pbs",q,z)}else q=h.provider.qe.aT(),q.U!==L.clientPlaybackNonce?(q.X=L.clientPlaybackNonce,q.T=t):L.m2()||g.bc(new g.Ea("CSI timing logged before gllat",{cpn:L.clientPlaybackNonce}));h.Pm("gllat",{l:h.E_.toFixed(),prev_ad:+Y});delete h.X}}; go=function(h,t){t=t===void 0?NaN:t;t=t>=0?t:g.iz(h.provider);var Y=h.provider.qe.py(),L=Y.FU-(h.Ne||0);L>0&&g.D6(h,t,"bwm",[L,(Y.AA-(h.Im||0)).toFixed(3)]);isNaN(h.Ne)&&Y.FU&&h.isOffline&&h.zG(!1);h.Ne=Y.FU;h.Im=Y.AA;isNaN(Y.bandwidthEstimate)||g.D6(h,t,"bwe",[Y.bandwidthEstimate.toFixed(0)]);h.provider.Me.pZ()&&Object.keys(Y.G).length!==0&&h.Pm("bwinfo",Y.G);if(h.provider.Me.pZ()||h.provider.Me.N("html5_log_meminfo"))L=n$p(),Object.values(L).some(function(z){return z!==void 0})&&h.Pm("meminfo", L); if(h.provider.Me.pZ()){var q;(L=(q=h.yG)==null?void 0:Tu$(q))&&Object.values(L).some(function(z){return z!=null})&&h.Pm("cpuinfo",L)}h.Y8&&h.Pm("jsprof",h.Y8.flush()); h.L&&g.D6(h,t,"bat",[h.L.level,h.L.charging?"1":"0"]);q=h.provider.qe.getVisibilityState();h.fn!==q&&(g.D6(h,t,"vis",[q]),h.fn=q);qYL(h,t);(q=zb3(h.provider))&&q!==h.dP&&(g.D6(h,t,"conn",[q]),h.dP=q);VHi(h,t,Y)}; VHi=function(h,t,Y){if(!isNaN(Y.Mx)){var L=Y.Mx;Y.T96E3&&(new g.nE(h.reportStats,0,h)).start()}}; HoL=function(h){h.provider.videoData.uM&&Y3(h,"prefetch");h.provider.videoData.Hq&&h.Pm("reload",{r:h.provider.videoData.reloadReason,ct:h.provider.videoData.Hq});h.provider.videoData.tQ&&Y3(h,"monitor");h.provider.videoData.isLivePlayback&&Y3(h,"live");wG&&Y3(h,"streaming");h.provider.videoData.qq&&h.Pm("ctrl",{mode:h.provider.videoData.qq},!0);if(h.provider.videoData.Y9){var t=h.provider.videoData.Y9.replace(/,/g,"_");h.Pm("ytp",{type:t},!0)}h.provider.videoData.nu&&(t=h.provider.videoData.nu.replace(/,/g, "."),h.Pm("ytrexp",{ids:t},!0));t=h.provider.videoData;var Y=h.provider.Me.N("enable_white_noise")||h.provider.Me.N("enable_webgl_noop"),L=g.ru(t)||g.Of(t)||g.nI(t)||g.fI(t);(Y||L)&&(Y=(0,g.LD)())&&h.G.set("gpu",[Y]);hJ(h.provider.videoData)&&g.D6(h,g.iz(h.provider),"dt",["1"]);h.provider.N("html5_record_is_offline_on_playback_attempt_start")&&t.cotn&&!hJ(t)&&h.zG(!0);h.provider.Me.pZ()&&(t=(0,g.FH)()-h.provider.Me.Df,h.Pm("playerage",{secs:Math.pow(1.6,Math.round(Math.log(t/1E3)/Math.log(1.6))).toFixed()})); h.W=!0;h.x8=g.VR(function(){h.reportStats()},1E4)}; WMW=function(h,t,Y){var L=g.iz(h.provider);w5L(h,L,t,0,Y);go(h,L);lh3(h)}; w5L=function(h,t,Y,L,q){var z=h.provider.Me.G.cbrver;h.provider.Me.G.cbr==="Chrome"&&/^96[.]/.test(z)&&Y==="net.badstatus"&&/rc\.500/.test(q)&&yJL(h,3);h.provider.Me.N("html5_use_ump")&&/b248180278/.test(q)&&yJL(h,4);z=h.provider.getCurrentTime(h.adCpn||h.provider.videoData.clientPlaybackNonce);L=L===1?"fatal":"";Y=[Y,L,z.toFixed(3)];L&&(q+=";a6s."+$o());q&&Y.push(X5D(q));g.D6(h,t,"error",Y);h.W=!0}; UUn=function(h,t){var Y=g.iz(h.provider);if(!h.provider.Me.experiments.I0("html5_refactor_sabr_video_format_selection_logging")||t.G.id!==h.lP){var L=[t.G.id,t.T,h.lP,t.reason];t.token&&L.push(t.token);g.D6(h,Y,"vfs",L);h.lP=t.G.id;L=h.provider.qe.getPlayerSize();if(L.width>0&&L.height>0){L=[Math.round(L.width),Math.round(L.height)];var q=g.qD();q>1&&L.push(q);g.D6(h,Y,"view",L)}h.tQ||(h.provider.Me.pZ()&&Y3(h,"rqs2"),h.provider.videoData.G&&rO(h.provider.videoData.G)&&h.G.set("preload",["1"]));h.tQ= !0;h.W=!0}t.reason==="m"&&++h.UX===100&&yJL(h,2);g.D6(h,Y,"vps",[h.yp]);h.R0||h.reportStats(Y)}; C53=function(h){h.S>=0||(h.provider.Me.NU||h.provider.qe.getVisibilityState()!==3?h.S=g.iz(h.provider):h.JQ=!0)}; MHW=function(h,t,Y){if(h.provider.Me.experiments.I0("html5_refactor_sabr_audio_format_selection_logging")){t=Y.G;var L=[t.audio&&t.video?t.DF?t.DF:"":t.id];t.j4&&t.j4.id&&L.push(t.j4.id);t=L.join(";");t!==h.U&&(L=[t,h.U,Y.reason],Y.token&&L.push(Y.token),g.D6(h,g.iz(h.provider),"afs",L),h.U=t)}else Y.G.id!==h.U&&(L=[Y.G.id,h.U,Y.reason],Y.token&&L.push(Y.token),g.D6(h,t,"afs",L),h.U=Y.G.id)}; Y3=function(h,t){th(h,"cat",t)}; FML=function(h,t,Y,L,q){var z=g.iz(h.provider);t!==1&&t!==3&&t!==5||g.D6(h,z,"vps",[h.yp]);th(h,"xvt","t."+z.toFixed(3)+";m."+q.toFixed(3)+";g.2;tt."+t+";np.0;c."+Y+";d."+L)}; yJL=function(h,t){h.MD||(th(h,"fcnz",""+t),h.MD=!0)}; X5D=function(h){/[^a-zA-Z0-9;.!_-]/.test(h)&&(h=h.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return h}; g.zA=function(h,t,Y,L,q,z,V,l,H,w){l=l===void 0?!1:l;g.O.call(this);var W=this;this.qe=h;this.schedule=t;this.policy=Y;this.Cb=L;this.R0=H;this.M6=w;this.Oi=null;this.Ne=this.lP=this.Zx=this.x8=0;this.jt=this.Uj=this.isSuspended=!1;this.iP="";this.R7={};this.Q4=NaN;this.G$=0;this.AQ=null;this.Ds=this.Y8=!1;this.xu=0;this.tQ=!1;this.X5=this.MD=0;this.Im=null;this.WS=function(){return W.qe.WS()}; this.timing=new dWp(this.M6);this.Y=new JX(this.schedule,this.policy);this.dP=new g.nE(this.WZ,0,this);this.y4=new g.nE(this.WZ,this.policy.y4,this);this.pU=new g.nE(this.WZ,1E3,this);this.Vb=new g.nE(this.WZ,void 0,this);this.yG=new g.nE(function(){W.isSuspended||W.WZ()},1E4,this); this.fn=new g.nE(this.riz,250,this);this.U=this.currentTime=NaN;this.lH=new Z4(5);this.Wm=this.timestampOffset=NaN;this.logger=new g.yn("dash");this.m$=Infinity;this.zD={getAudioTrack:function(){return W.audioTrack}, QMM:function(){return W.videoTrack}, getManifest:function(){return W.Cb}, RXU:function(){return W.T}, WZ:function(){W.WZ()}, Mb:function(){W.x8=0;W.Mb()}, KR0:function(X){return q4(W,W.videoTrack,W.Oi.T,X)}}; h=H&&H.NB();H&&(F0p(H,this.Cb,this.policy),this.Wm=Date.now());this.G=new RJ(this,this.Y,Y,this.Cb,q,h);Y=mW6(this.G,z,V&&V.id);this.audioTrack=new jc(this,this.policy,Y.audio,this.timing);this.videoTrack=new jc(this,this.policy,Y.video,this.timing);this.videoTrack.W.Wm=this.audioTrack.JI();this.JQ={updateend:this.t0,error:this.fx5};g.f(this,this.dP);g.f(this,this.y4);g.f(this,this.pU);g.f(this,this.Vb);g.f(this,this.yG);Y=this.policy.l5&&this.policy.Ru?!cs3(this.videoTrack.G.info):!1;this.pn=wo3({TQ:this.policy.C.TQ|| Y,Ru:this.policy.Ru&&!Y,Lg:this.policy.Lg});this.C=aKL(this,this.policy,this.pn,this.schedule,this.lH,function(X,U){return se$(W,X,U)}); this.S=new vJ(this,this.Cb,this.policy,this.videoTrack,this.audioTrack,l);this.policy.MD&&this.policy.T&&(this.gU=new TZ6(function(X,U){W.Pm(X,U)})); this.Ja=new E$(this,this.Cb,this.videoTrack,this.audioTrack,this.policy);l=this.policy.L4?this.qe.getVideoData().UL:null;this.X=new TP(this,this.policy,this.videoTrack,this.audioTrack,this.R7,this.S,this.timing,this.Y,this.schedule,this.Cb,this.G,this.C,Y,l);g.f(this,this.X);this.W=new DS(this,this.policy,this.videoTrack,this.audioTrack,this.Cb,q,Uf(this.qe.getVideoData()),V==null?void 0:V.id);g.f(this,this.W);Kdb(this.W,z);this.T=new Yfr(this.qe,this,this.policy,this.audioTrack,this.videoTrack,this.Cb, this.schedule,this.G,this.W,this.timing,this.S);g.f(this,this.T);this.L=this.qe.UY.e7.zP;this.policy.X||jei(this);if(this.policy.XI){var y;this.Pq=new QsL(this.videoTrack.G.index,(y=this.qe.getVideoData().clientPlaybackNonce)!=null?y:"",this.qe,this.policy.tQ);this.policy.tQ===3&&(this.Hq=new g.nE(this.wD,200,this),this.Hq.start(),g.f(this,this.Hq))}this.logger.debug("Created")}; jei=function(h){var t,Y;if((t=h.L)==null?0:(Y=t.fU)==null?0:Y.itagDenylist){var L;h.BU((L=h.L)==null?void 0:L.fU.itagDenylist)}var q;if((q=h.L)==null?0:q.playbackStartPolicy){var z,V;f1(h.policy,(z=h.L)==null?void 0:z.playbackStartPolicy,3,(V=h.L)==null?void 0:V.QQ())}if(h.policy.An){t=h.Oz();var l;(Y=t?(l=h.L)==null?void 0:l.S$.get(t):void 0)&&h.T.WL(Y)}if(!h.Cb.L){var H;l=(H=h.L)==null?void 0:H.V5;(l==null?0:l.rB)&&(l==null?0:l.bO)&&h.Cb.fZ&&$w(h.Cb,l.rB,l.bO)}var w;((w=h.L)==null?0:w.Zz)&&(H=h.L.Zz.get(h.Oz()|| ""))&&h.Cb&&H.formatId&&(h=h.Cb.S.get(nz(H.formatId)))&&(h.info.debugInfo=H.debugInfo)}; ZoD=function(h,t){var Y=nz(g.pA(t.G.info,h.Cb.fZ)),L,q=((L=h.R0)==null?void 0:L.jP(Y))||[];if(q.length===0)return h.Pm("ombmsi",{}),!1;q=new t5(q);if(L=!h.policy.x8||isFinite(h.getCurrentTime())||h.qe.X9()){a:{L=h.getCurrentTime();q=g.b(q.bP);for(var z=q.next();!z.done;z=q.next())if(z=z.value,z.type===3&&L>=z.W&&L<=z.U){L=!0;break a}L=!1}L=!L}if(L)return h.Pm("ostmf",{ct:h.getCurrentTime(),a:t.G.info.N0()}),!1;(h=h.R0)!=null&&(h.lL.get(Y).eq=!0);return!0}; boD=function(h){if(!h.Cb.fZ)return!0;var t=h.qe.getVideoData();if(h.qe.jm())return h.Pm("ombpa",{}),!1;var Y,L;if(!!((Y=h.L)==null?0:(L=Y.V5)==null?0:L.yib)!==h.Cb.f6)return h.Pm("ombplmm",{}),!1;Y=t.G$||t.liveUtcStartSeconds||t.R7;if(h.Cb.f6&&Y)return h.Pm("ombplst",{}),!1;if(h.Cb.L)return h.Pm("ombab",{}),!1;Y=Date.now();return T9(h.Cb)&&!isNaN(h.Wm)&&Y-h.Wm>h.policy.Q1*1E3?(h.Pm("ombttl",{}),!1):h.Cb.uR&&h.Cb.W||!h.policy.ZF&&h.Cb.isPremiere||Qt(t)!==0&&!h.policy.G||t.N("html5_disable_onesie_media_for_mosaic")&& DK(t)||t.JJ()&&!t.N("html5_enable_onesie_media_for_lifa")&&t.isDaiEnabled()&&t.enableServerStitchedDai||t.N("html5_disable_onesie_media_for_lifa_eligible")&&mC(t)?!1:!0}; olL=function(h,t){var Y=t.G,L=h.Cb.fZ;if(boD(h))if(h.R0&&h.R0.lL.has(nz(g.pA(Y.info,L)))){if(L=nz(g.pA(Y.info,L)),ZoD(h,t)){var q=new t5(h.R0.jP(L)),z=function(V){try{if(V.X8())h.handleError(V.vM(),V.kM()),vQ(t,V),gQ(V.info)&&Rn(h.X,t,Y,!0),h.WZ();else if(BQ(h.X,V)){var l;(l=h.S)==null||k2L(l,V.info,h.AQ);h.WZ()}}catch(H){V=NS(H),h.handleError(V.errorCode,V.details,V.severity),h.NW()}}; Y.S=!0;i$(q)&&(on(t,new kt(h.policy,L,q,h.R0,z)),pa(h.timing))}}else h.Pm("ombfmt",{})}; dU3=function(h,t){t=t||h.videoTrack&&h.videoTrack.T&&h.videoTrack.T.startTime||h.getCurrentTime();var Y=PQ,L=h.videoTrack,q=h.G;t=q.nextVideo&&q.nextVideo.index.RF(t)||0;q.Wm!==t&&(q.X5={},q.Wm=t,BJ(q,q.G));t=!q.G.isLocked()&&q.L>-1&&(0,g.FH)()-q.Lt.G&&t.reason==="b";L||q||Y?(h.qe.A_({reattachOnConstraint:L?"u":q?"drm":"perf",lo:t.T,up:t.G}),h.policy.If||(h.W.G.T=!1)):(h.policy.If&&(h.W.G.T=!1),Si(h))}}else if(!DWn(h.G,t)&&h.videoTrack){h.logger.debug(function(){return"Setting constraint: r="+t.reason+" u="+t.G}); Y=h.G.G;p5L(h,td6(h.G,t));dU3(h);L=t.isLocked()&&t.reason==="m"&&h.G.x8;q=h.policy.lZ&&t.reason==="l"&&an(h.videoTrack);Y=Y.G>t.G&&t.reason==="b";var z=h.G.JQ&&!Dd();L||q||Y||z?h.qe.A_({reattachOnConstraint:L?"u":q?"drm":z?"codec":"perf"}):Si(h)}}; KML=function(h,t,Y){if((!h.Oi||i8(h.Oi)&&!h.policy.n3)&&!h.Ja.isSeeking()&&(h.policy.G||an(t)&&t.G.z3()&&h.G.AQ)){var L=h.getCurrentTime()+mmL(h.Y,t,Y);h.logger.debug(function(){return"Clearing back to "+L.toFixed(3)}); iwL(t,L)}}; p5L=function(h,t){t&&(h.logger.debug(function(){return"Logging new format: "+kW(t.video.info)}),ahb(h.qe,new fa(t.video,t.reason))); if(h.G.Y8){var Y=Lz1(h.G,"a");h.qe.HR(new fa(Y.audio,Y.reason))}}; Si=function(h){g.fE(h.dP)}; Q9n=function(h){h.policy.y4&&h.policy.Lg&&Math.min(tIL(h.videoTrack),tIL(h.audioTrack))*1E3>h.policy.Kj?g.fE(h.y4):h.WZ()}; xU6=function(h,t){var Y=(0,g.FH)()-t,L=ec(h.audioTrack,!0)*1E3,q=ec(h.videoTrack,!0)*1E3;h.logger.debug(function(){return"Appends paused for "+Y}); if(h.policy.S&&(h.Pm("apdpe",{dur:Y.toFixed(),abuf:L.toFixed(),vbuf:q.toFixed()}),n1(h.policy))){var z=K3(h.Y);h.Pm("sdps",{ct:t,ah:L.toFixed(),vh:q.toFixed(),mr:a8(h.Y,h.jt,z),bw:z.toFixed(),js:h.isSeeking(),re:+h.jt,ps:(h.policy.W6||"").toString(),rn:(h.policy.c6||"").toString()})}}; Elr=function(h){if(VI6(h.videoTrack))return h.logger.debug("Pausing appends for server-selectable format"),"ssf";if(h.policy.lP&&kH(h.videoTrack)&&kH(h.audioTrack))return"updateEnd";if(K1(h.audioTrack)||K1(h.videoTrack)&&h.videoTrack.G.info.wU!=="f")return"";if(h.Ja.isSeeking()){var t=h.Y;var Y=h.videoTrack;var L=h.audioTrack;if(t.policy.G){var q=t.policy.Bi;n1(t.policy)&&(q=a8(t,!1,K3(t)));t=q;Y=ec(L,!0)>=t&&ec(Y,!0)>=t}else Y.S.length||L.S.length?(q=Y.G.info.Lb+L.G.info.Lb,q=10*(1-K3(t)/q),t=Math.max(q, t.policy.Bi),Y=ec(L,!0)>=t&&ec(Y,!0)>=t):Y=!0;if(!Y)return"abr";Y=h.videoTrack;if(Y.S.length>0&&Y.W.T.length===1&&uoW(Y.W).info.Y360);L=n1(h.policy)&&h.policy.xa;if(!h.jt||!L&&Y)return"";Y=h.policy.bB;n1(h.policy)&&(Y=a8(h.Y,h.jt,K3(h.Y)));Y=YZ$(h.videoTrack,h.getCurrentTime(),Y)||YZ$(h.audioTrack,h.getCurrentTime(), Y);return n1(h.policy)?Y?"mbnm":"":(h.videoTrack.S.length>0||h.audioTrack.S.length>0||At(h.X,h.videoTrack,h.audioTrack)||At(h.X,h.audioTrack,h.videoTrack))&&Y?"nord":""}; kMp=function(h){if(h.C){var t=h.C.WZ(h.audioTrack,Ay(h.Oi.T.iV()));t&&h.qe.seekTo(t,{yN:!0,EY:"pollSubsegmentReadahead",zV:!0})}}; RW3=function(h,t,Y){if(h.policy.lP&&kH(t))return!1;if(Y.Yr())return!0;if(!Y.PE())return!1;var L=R8(t);if(!L||L.info.type===6)return!1;var q;if(h.policy.FJ||((q=h.S)==null?0:$W$(q,t,L.info.Kb)))h.Ne=0;else return h.Ja.isSeeking()&&Si(h),h.Ne=h.Ne||(0,g.FH)(),!1;if(!q4(h,t,Y,L.info))return!1;if(h.Cb.T&&L.info.T===0){if(q=Ooc(t,Y,L)){var z=bq(t);h.Pm("initchg",{it:L.info.G.info.id,sr:!!z&&z.G===L.info.G,ty:L.info.type,seg:L.info.Kb})}z=g.e2(L.info.G.info);h.policy.UX&&z&&!q&&t0L(L)}z=h.C&&!!h.C.W&&t.G.info.audio; q=h.Cb.isManifestless||L.X;if(!(h.Cb.T&&L.info.T!==0||q&&!z)&&nl$(h,t,Y,L))return!0;if(z)return!1;z=$t(h,t);z=h.getCurrentTime()+z;if(L.info.W>z)return h.policy.G&&fhW(h,t),h.policy.YU&&lsL(t.W,z,!1),!1;$Up(h,t);var V;h.policy.eh&&Y===((V=h.Oi)==null?void 0:V.G)&&h.tQ&&(Y.EN()===0?(h.tQ=!1,h.policy.eh=!1):h.MD=Y.EN());if(!T8D(h,Y,L,t))return!1;h.policy.lP&&L.info.lx()?(h.qe.J().pZ()&&h.Pm("eosl",{ls:L.info.uL()}),L.isLocked=!0):(t.Hw(L),YJn(h.G,L.info),h.logger.debug(function(){return"Appended "+ L.info.uL()+", buffered: "+nA(Y.iV())})); q&&ISb(h,L.info.G.jq);return!0}; fhW=function(h,t){t===h.videoTrack?h.lP=h.lP||(0,g.FH)():h.Zx=h.Zx||(0,g.FH)()}; $Up=function(h,t){t===h.videoTrack?h.lP=0:h.Zx=0}; T8D=function(h,t,Y,L){var q=h.policy.Hq?(0,g.FH)():0,z=Y.X&&Y.info.G.G||void 0,V=Y.T;Y.X&&(V=BFL(h,Y,V)||V);var l=gX(V);V=h.policy.Hq?(0,g.FH)():0;t=PqD(h,t,l,Y.info,z);(L=L.L)!=null&&(z=Y.info,q=V-q,V=(0,g.FH)()-V,!L.T||M2L(L.T,z)&&L.T.Kb===z.Kb||L.flush(),L.W+=q,L.S+=V,q=1,!L.T&&z.T&&(q=2),iq(L,q,t),V=Math.ceil(z.T/1024),q===2&&L.G.add(V),L.G.add(Math.ceil((z.T+z.S)/1024)-V),L.T=z);h.X5=0;if(t===0)return h.Y8&&(h.logger.debug("Retry succeed, back to normal append logic."),h.Y8=!1,h.Ds=!1),h.G$= 0,!0;if(t===2||t===5)return myp(h,"checked",t,Y.info),!1;if(t===1){if(!h.Y8)return h.logger.debug("QuotaExceeded, retrying."),h.Y8=!0,!1;if(!h.Ds)return h.Ds=!0,h.qe.seekTo(h.getCurrentTime(),{EY:"quotaExceeded",zV:!0}),!1;Y.info.yx()?(q=h.policy,q.Zx=Math.floor(q.Zx*.8),q.R0=Math.floor(q.R0*.8)):(q=h.policy,q.iP=Math.floor(q.iP*.8),q.R0=Math.floor(q.R0*.8));h.policy.G?TX(h.W.G,Y.info.G,!1):m_(h.G,Y.info.G)}h.qe.A_({reattachOnAppend:t});return!1}; BFL=function(h,t,Y){var L;if(L=h.policy.QZ&&h.Oi&&!h.Oi.Y&&!h.qe.mE())t=t.info.G.info,L=t.A7()&&dq(t)&&t.video&&t.video.width<3840&&t.video.width>t.video.height;if(L&&(h.Oi.Y=!0,Wd('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return Y=r5i(Y),h.policy.S&&h.Pm("sp4k",{s:!!Y}),Y}; myp=function(h,t,Y,L){var q="fmt.unplayable",z=1;Y===5||Y===3?(q="fmt.unparseable",h.policy.G?!L.G.info.video||Az(h.W.G).size>0||TX(h.W.G,L.G,!1):!L.G.info.video||Az(h.G.X).size>0||m_(h.G,L.G)):Y===2&&(h.G$<15?(h.G$++,q="html5.invalidstate",z=0):q="fmt.unplayable");L=Dq(L);var V;L.mrs=(V=h.Oi)==null?void 0:qO(V);L.origin=t;L.reason=Y;h.policy.nV&&(L.trg="appenderr");h.handleError(q,L,z)}; A5i=function(h,t,Y,L,q){var z=h.Cb;var V=h.policy.G,l=!1,H=-1;for(U in z.G){var w=au(z.G[U].info.mimeType)||z.G[U].info.yx();if(L===w)if(w=z.G[U].index,w.dH(t.Kb)){l=w;var W=t,y=l.N3(W.Kb);y&&y.startTime!==W.startTime?(l.segments=[],l.S5(W),l=!0):l=!1;l?H=t.Kb:!t.pending&&V&&(W=w.getDuration(t.Kb),W!==t.duration&&(z.publish("clienttemp","mfldurUpdate",{itag:z.G[U].info.itag,seg:t.Kb,od:W,nd:t.duration},!1),w.S5(t),l=!0))}else w.S5(t),l=!0}H>=0&&(V={},z.publish("clienttemp","resetMflIndex",(V[L?"v": "a"]=H,V),!1));z=l;y6W(h.Ja,t,L,z);if(h.policy.MD&&h.policy.T&&(H=t.Wx||null)){var X;V=(X=h.T)==null?void 0:ssc(X).requestNumber;if((X=h.gU)!=null){if(X.T.has(H.identifier)){var U=X.T.get(H.identifier);U.event=H.event;U.startTimeSecs=H.startSecs;U.cZ=H.cZ}else X.T.set(H.identifier,{event:H.event,startTimeSecs:H.startSecs,cZ:H.cZ,v6:[]});X.S&&V>-1&&Vkw(h.Cb)&&(h.Cb.Wm=t.startTime+(isNaN(h.timestampOffset)? 0:h.timestampOffset),h.Ja.isSeeking()&&h.Ja.targetTime5)return h.X5= 0,h.qe.A_({initSegStuck:1,as:L.info.uL()}),!0}else h.X5=0,h.Im=L;h.policy.aH&&(Y.abort(),(V=t.L)!=null&&(iq(V,4),V.flush()));q=PqD(h,Y,z,H,q);var w;(w=t.L)==null||Wzn(w,q,H);if(q!==0)return Dyr(h,q,L),!0;L.info.yx()?upb(h.timing):efr(h.timing);h.logger.debug(function(){return"Appended init for "+L.info.G.info.id}); ISb(h,L.info.G.jq);return Y.pH()}; Ooc=function(h,t,Y){if(t.ET()==null){h=bq(h);if(!(t=!h||h.G!==Y.info.G)){a:if(h=h.L,Y=Y.info.L,h.length!==Y.length)Y=!1;else{for(t=0;t1)return 6;V.X5=new g.nE(function(){var l=R8(V);h.Ui()||l==null||!l.isLocked?h.qe.J().pZ()&&h.Pm("eosl",{delayA:l==null?void 0:l.info.uL()}):hBL(V)?(h.qe.J().pZ()&&h.Pm("eosl",{dunlock:l==null?void 0:l.info.uL()}),tiL(h,V===h.audioTrack)):(h.Pm("nue",{ls:l.info.uL()}),l.info.AQ+=1,h.Oi&&h.Mb())},1E4,h); h.qe.J().pZ()&&h.Pm("eosl",{delayS:L.uL()});V.X5.start()}h.policy.DY&&(L==null?void 0:L.G)instanceof Lk&&L.lx()&&h.Pm("poseos",{itag:L.G.info.itag,seg:L.Kb,lseg:L.G.index.v3(),es:L.G.index.S});t.appendBuffer(Y,L,q)}catch(l){if(l instanceof DOMException){if(l.code===11)return 2;if(l.code===12)return 5;if(l.code===22||l.message.indexOf("Not enough storage")===0)return t=Object.assign({name:"QuotaExceededError",buffered:nA(t.iV()).replace(/,/g,"_"),vheap:cQ(h.videoTrack),aheap:cQ(h.audioTrack),message:g.QL(l.message, 3),track:h.Oi?t===h.Oi.T?"v":"a":"u"},n$p()),h.handleError("player.exception",t),1;g.ZD(l)}return 4}return h.Oi.bj()?3:0}; I8=function(h,t,Y){h.policy.Ty&&Qe1(h,Y.EY||"unknown");h.qe.seekTo(t,Y)}; ISb=function(h,t){t&&h.qe.Of(new lq(t.key,t.type))}; yh=function(h,t){h.qe.L_(t)}; $t=function(h,t){if(h.Y8&&!h.jt)return 3;if(h.isSuspended)return 1;var Y;if((Y=h.Oi)==null?0:Y.Oi&&Y.Oi.streaming===!1)return 4;Y=(t.G.info.audio?h.policy.iP:h.policy.Zx)/(t.Lb*h.policy.Lq);if(h.policy.Wp>0&&h.Oi&&i8(h.Oi)&&(t=t.G.info.video?h.Oi.T:h.Oi.G)&&!t.pH()){t=t.iV();var L=fA(t,h.getCurrentTime());L>=0&&(t=h.getCurrentTime()-t.start(L),Y+=Math.max(0,Math.min(t-h.policy.Wp,h.policy.x5)))}h.policy.R0>0&&(Y=Math.min(Y,h.policy.R0));return Y}; Nuc=function(h,t){return($t(h,t)+h.policy.e5)*t.Lb}; gzp=function(h){h.iP&&!h.isSuspended&&pw(h.schedule)&&(iy1(h,h.iP),h.iP="")}; iy1=function(h,t){ey(t,"cms",function(Y){h.policy.S&&h.Pm("pathprobe",Y)},function(Y){h.qe.handleError(Y)})}; YRL=function(h,t){if(h.Oi&&h.Oi.W&&!h.Oi.bj()&&(t.Mx=ec(h.videoTrack),t.T=ec(h.audioTrack),h.policy.S)){var Y=cQ(h.videoTrack),L=cQ(h.audioTrack),q=nA(h.Oi.T.iV(),"_",5),z=nA(h.Oi.G.iV(),"_",5);Object.assign(t.G,{lvq:Y,laq:L,lvb:q,lab:z})}t.bandwidthEstimate=p3(h.Y);var V;(V=h.audioTrack.L)==null||V.flush();var l;(l=h.videoTrack.L)==null||l.flush();h.logger.debug(function(){return qS(t.G)})}; LhL=function(h,t){h.AQ=t;h.S&&(h.S.S=t);h.AQ.vW(h.videoTrack.G.info.A7());h.X.T=h.AQ;h.policy.T&&(h.T.Y=h.AQ)}; zBL=function(h,t){if(h.Oi&&h.Oi.T){if(h.policy.Ti){var Y=Hwn(h.audioTrack);if(Y&&Y.N0()){var L=h.qe;if(L.j5&&(L.j5.G=Y,Y=L.lI,Y.qoe)){Y=Y.qoe;L=L.j5;var q=g.iz(Y.provider);MHW(Y,q,L)}}}h.policy.Sq&&(Y=Hwn(h.videoTrack))&&Y.yx()&&(L=h.qe,L.bG&&(L.bG.G=Y,Y=L.lI,Y.qoe&&UUn(Y.qoe,L.bG)));t-=isNaN(h.timestampOffset)?0:h.timestampOffset;h.getCurrentTime()!==t&&h.resume();h.Ja.isSeeking()&&h.Oi&&!h.Oi.bj()&&(L=h.getCurrentTime()<=t&&t=t&&se$(h,L.startTime,!1)}); return Y&&Y.startTimeh.getCurrentTime())return Y.start/1E3;return Infinity}; wui=function(h){if(h.qe.getVideoData().isLivePlayback)return!1;var t=h.qe.iL();if(!t)return!1;t=t.getDuration();if(h.Oi&&h.Oi.G&&h.Oi.T){var Y=h.getCurrentTime(),L=h.Oi.G.iV();h=h.Oi.T.iV();L=L?Tk(L,Y):Y;Y=h?Tk(h,Y):Y;Y=Math.min(L,Y);t=isNaN(Y)?!1:Y>=t-.01}else t=!1;return t}; Dyr=function(h,t,Y){h.policy.RC&&X$(h.qe.getVideoData())?(h.qe.i8()||myp(h,"sepInit",t,Y.info),wib(h.qe,"sie")):myp(h,"sepInit",t,Y.info)}; rUi=function(h){return h.qe.yV()0){var L=Y.G.shift();yR$(Y,L.info)}Y.G.length>0&&(L=Y.G[0].time-(0,g.FH)(),Y.T.start(Math.max(0,L)))}},0); g.f(this,this.T);t.subscribe("widevine_set_need_key_info",this.W,this)}; yR$=function(h,t){a:{var Y=t.cryptoPeriodIndex;if(isNaN(Y)&&h.S.size>0)Y=!0;else{for(var L=g.b(h.S.values()),q=L.next();!q.done;q=L.next())if(q.value.cryptoPeriodIndex===Y){Y=!0;break a}Y=!1}}h.publish("log_qoe",{wvagt:"reqnews",canskip:Y});Y||h.publish("rotated_need_key_info_ready",t)}; Xir=function(){var h={};var t=h.url;var Y=h.interval;h=h.retries;this.url=t;this.interval=Y;this.retries=h}; UVc=function(h,t){this.statusCode=h;this.message=t;this.T=this.heartbeatParams=this.errorMessage=null;this.G={};this.nextFairplayKeyId=null}; CPL=function(h,t,Y){Y=Y===void 0?"":Y;g.O.call(this);this.message=h;this.requestNumber=t;this.timer=Y;this.onError=this.onSuccess=null;this.G=new g.c6(5E3,2E4,.2)}; Mi1=function(h,t,Y){h.onSuccess=t;h.onError=Y}; sjL=function(h,t,Y,L){var q={timeout:3E4,onSuccess:function(z){if(!h.Ui()){sH("drm_net_r",void 0,h.timer);var V=z.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(z.license)try{l=re(z.license)}catch(C){g.ZD(C)}if(V!==0||l){l=new UVc(V,l);V!==0&&z.reason&&(l.errorMessage=z.reason);if(z.authorizedFormats){V={};for(var H=[],w={},W=g.b(z.authorizedFormats),y=W.next();!y.done;y=W.next())if(y=y.value,y.trackType&&y.keyId){var X=Fh1[y.trackType];if(X){X==="HD"&&z.isHd720&&(X="HD720");y.isHdr&&(X+="HDR");V[X]|| (H.push(X),V[X]=!0);var U=null;try{U=re(y.keyId)}catch(C){g.ZD(C)}U&&(w[g.Gv(U,4)]=X)}}l.T=H;l.G=w}z.nextFairplayKeyId&&(l.nextFairplayKeyId=z.nextFairplayKeyId);z.sabrLicenseConstraint&&(l.sabrLicenseConstraint=re(z.sabrLicenseConstraint));z=l}else z=null;if(z)h.onSuccess(z,h.requestNumber);else h.onError(h,"drm.net","t.p;p.i")}}, onError:function(z){if(!h.Ui())if(z&&z.error)z=z.error,h.onError(h,"drm.net.badstatus","t.r;p.i;c."+z.code+";s."+z.status,z.code);else h.onError(h,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){h.onError(h,"drm.net","rt.req."+h.requestNumber)}}; L&&(q.Cu="Bearer "+L);g.nN(Y,"player/get_drm_license",t,q)}; jji=function(h,t,Y,L){g.PD.call(this);this.videoData=h;this.Me=t;this.Y=Y;this.sessionId=L;this.X={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.AQ=this.x8=!1;this.S=null;this.R0=[];this.W=[];this.authorizedFormats=[];this.C=!1;this.G={};this.status="";this.U=NaN;this.T=h.X;this.cryptoPeriodIndex=Y.cryptoPeriodIndex;h={};Object.assign(h,this.Me.G);h.cpn=this.videoData.clientPlaybackNonce;this.videoData.gU&&(h.vvt=this.videoData.gU,this.videoData.mdxEnvironment&&(h.mdx_environment= this.videoData.mdxEnvironment));this.Me.R0&&(h.authuser=this.Me.R0);this.Me.pageId&&(h.pageid=this.Me.pageId);isNaN(this.cryptoPeriodIndex)||(h.cpi=this.cryptoPeriodIndex.toString());var q=(q=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.xp()))?q[1]:"";q==="ATV"&&(h.cdt=q);this.X=h;this.X.session_id=L;this.L=!0;this.T.flavor==="widevine"&&(this.X.hdr="1");this.T.flavor==="playready"&&(t=Number(Wc(t.experiments,"playready_first_play_expiration")),!isNaN(t)&&t>=0&&(this.X.mfpe=""+t),this.L=!1);t="";g.Yk(this.T)? gG(this.T)?(L=Y.T)&&(t="https://www.youtube.com/api/drm/fps?ek="+opL(L)):(t=Y.initData.subarray(4),t=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),t=String.fromCharCode.apply(null,t).replace("skd://","https://")):t=this.T.T;this.baseUrl=t;this.fairplayKeyId=sM(this.baseUrl,"ek")||"";if(t=sM(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(t);this.R0=Y.A7?[g.Gv(Y.initData,4)]:Y.S;wo(this,{sessioninit:Y.cryptoPeriodIndex});this.status="in"}; dVL=function(h,t){wo(h,{createkeysession:1});h.status="gr";sH("drm_gk_s",void 0,h.videoData.L);h.url=ZyL(h);try{h.S=t.createSession(h.Y,function(Y){wo(h,{m:Y})})}catch(Y){t="t.g"; Y instanceof DOMException&&(t+=";c."+Y.code);h.publish("licenseerror","drm.unavailable",1,t,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}h.S&&(byW(h.S,function(Y,L){ozp(h,Y,L)},function(Y,L,q){if(!h.Ui()){L=void 0; var z=1;g.Yk(h.T)&&g.SI(h.Me)&&h.Me.N("html5_enable_safari_fairplay")&&q===1212433232&&(L="ERROR_HDCP",z=h.Me.N("html5_safari_fairplay_ignore_hdcp")?0:z);h.error("drm.keyerror",z,Y,L)}},function(){h.Ui()||(wo(h,{onkyadd:1}),h.AQ||(h.publish("sessionready"),h.AQ=!0))},function(Y){h.ez(Y)}),g.f(h,h.S))}; ZyL=function(h){var t=h.baseUrl;CcD(t)||h.error("drm.net",2,"t.x");if(!sM(t,"fexp")){var Y=["23898307","23914062","23916106","23883098"].filter(function(q){return h.Me.experiments.experiments[q]}); Y.length>0&&(h.X.fexp=Y.join())}Y=g.b(Object.keys(h.X));for(var L=Y.next();!L.done;L=Y.next())L=L.value,t=SOb(t,L,h.X[L]);return t}; ozp=function(h,t,Y){if(!h.Ui())if(t){wo(h,{onkmtyp:Y});h.status="km";switch(Y){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":G$6(h,t);return;default:h.publish("ctmp","message_type",{t:Y,l:t.byteLength})}h.x8||(sH("drm_gk_f",void 0,h.videoData.L),h.x8=!0,h.publish("newsession",h));if(hU(h.T)&&(t=QjW(t),!t))return;t=new CPL(t,++h.requestNumber,h.videoData.L);Mi1(t,function(L){rRr(h,L)},function(L,q,z){if(!h.Ui()){var V=0; L.G.T>=3&&(V=1,q="drm.net.retryexhausted");wo(h,{onlcsrqerr:q,info:z});h.error(q,V,z);h.shouldRetry(Vb(V),L)&&cRn(h,L)}}); g.f(h,t);uTr(h,t)}else h.error("drm.unavailable",1,"km.empty")}; G$6=function(h,t){wo(h,{sdpvrq:1});h.U=Date.now();if(h.T.flavor!=="widevine")h.error("drm.provision",1,"e.flavor;f."+h.T.flavor+";l."+t.byteLength);else{var Y={cpn:h.videoData.clientPlaybackNonce};Object.assign(Y,h.Me.G);Y=g.Xz("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",Y);t={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, t)}),responseType:"arraybuffer"};g.ZH(Y,t,3,500).then(KO(function(L){L=L.xhr;if(!h.Ui()){L=new Uint8Array(L.response);var q=String.fromCharCode.apply(null,L);try{var z=JSON.parse(q)}catch(V){}z&&z.signedResponse?(h.publish("ctmp","drminfo",{provisioning:1}),z=(Date.now()-h.U)/1E3,h.U=NaN,h.publish("ctmp","provs",{et:z.toFixed(3)}),h.S&&h.S.update(L)):(z=z&&z.error&&z.error.message,L="e.parse",z&&(L+=";m."+z),h.error("drm.provision",1,L))}}),KO(function(L){h.Ui()||h.error("drm.provision",1,"e."+L.errorCode+ ";c."+(L.xhr&&L.xhr.status))}))}}; Wh=function(h){var t;if(t=h.L&&h.S!=null)h=h.S,t=!(!h.G||!h.G.keyStatuses);return t}; uTr=function(h,t){h.status="km";sH("drm_net_s",void 0,h.videoData.L);var Y=new g.Oo(h.Me.iB),L={context:g.gd(Y.config_||g.iN())};L.drmSystem=eBL[h.T.flavor];L.videoId=h.videoData.videoId;L.cpn=h.videoData.clientPlaybackNonce;L.sessionId=h.sessionId;L.licenseRequest=g.Gv(t.message);L.drmParams=h.videoData.drmParams;isNaN(h.cryptoPeriodIndex)||(L.isKeyRotated=!0,L.cryptoPeriodIndex=h.cryptoPeriodIndex);var q,z,V=!!((q=h.videoData.T)==null?0:(z=q.video)==null?0:z.isHdr());L.drmVideoFeature=V?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(L.context&&L.context.client){if(q=h.Me.G)L.context.client.deviceMake=q.cbrand,L.context.client.deviceModel=q.cmodel,L.context.client.browserName=q.cbr,L.context.client.browserVersion=q.cbrver,L.context.client.osName=q.cos,L.context.client.osVersion=q.cosver;L.context.user=L.context.user||{};L.context.request=L.context.request||{};h.videoData.gU&&(L.context.user.credentialTransferTokens=[{token:h.videoData.gU,scope:"VIDEO"}]);L.context.request.mdxEnvironment=h.videoData.mdxEnvironment|| L.context.request.mdxEnvironment;h.videoData.fn&&(L.context.user.kidsParent={oauthToken:h.videoData.fn});g.Yk(h.T)&&(L.fairplayKeyId=g.Gv(dnL(h.fairplayKeyId)));g.Up(h.Me,g.Pu(h.videoData)).then(function(l){sjL(t,L,Y,l);h.status="rs"})}else h.error("drm.net",2,"t.r;ic.0")}; rRr=function(h,t){if(!h.Ui())if(wo(h,{onlcsrsp:1}),h.status="rr",t.statusCode!==0)h.error("drm.auth",1,"t.f;c."+t.statusCode,t.errorMessage||void 0);else{sH("drm_kr_s",void 0,h.videoData.L);if(t.heartbeatParams&&t.heartbeatParams.url&&h.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var Y=h.T.T.match(/(.*)youtube.com/g);Y&&(t.heartbeatParams.url=Y[0]+t.heartbeatParams.url)}t.heartbeatParams&&h.publish("newlicense",t.heartbeatParams);t.T&&(h.W=t.T,h.videoData.Mk||h.publish("newlicense", new Xir),h.videoData.Mk=!0,h.C=OM(h.W,function(L){return L.includes("HDR")})); t.G&&(h.Me.N("html5_enable_vp9_fairplay")&&gG(h.T)?(Y=g.Gv(dnL(h.fairplayKeyId),4),h.G[Y]={type:t.G[Y],status:"unknown"}):h.G=gh(t.G,function(L){return{type:L,status:"unknown"}})); iE(h.T)&&(t.message=ONL(g.Gv(t.message)));h.S&&(wo(h,{updtks:1}),h.status="ku",h.S.update(t.message).then(function(){sH("drm_kr_f",void 0,h.videoData.L);Wh(h)||(wo(h,{ksApiUnsup:1}),h.publish("keystatuseschange",h))},function(L){L="msuf.req."+h.requestNumber+";msg."+g.QL(L.message,3); h.error("drm.keyerror",1,L)})); g.Yk(h.T)&&h.publish("fairplay_next_need_key_info",h.baseUrl,t.nextFairplayKeyId);h.Me.N("html5_enable_vp9_fairplay")&&gG(h.T)&&h.publish("qualitychange",JR$(h.W));t.sabrLicenseConstraint&&h.publish("sabrlicenseconstraint",t.sabrLicenseConstraint)}}; cRn=function(h,t){var Y=t.G.getValue();Y=new g.nE(function(){uTr(h,t)},Y); g.f(h,Y);Y.start();g.uJ(t.G);wo(h,{rtyrq:1})}; piW=function(h,t){for(var Y=[],L=g.b(Object.keys(h.G)),q=L.next();!q.done;q=L.next())q=q.value,Y.push(q+"_"+h.G[q].type+"_"+h.G[q].status);return Y.join(t)}; vzi=function(h){var t={};t[h.status]=Wh(h)?piW(h,"."):h.W.join(".");return t}; Khb=function(h,t,Y){var L={};L.isHdr=t.includes("HDR");switch(t.replace("HDR","").replace("720","")){case "AUDIO":L.trackType=1;break;case "SD":L.trackType=2;break;case "HD":L.trackType=3;break;case "UHD1":L.trackType=4;break;case "UHD2":L.trackType=5;break;default:L.trackType=0}!L.trackType||Y[t]||Wh(h)&&!y9(h,t)||(h.authorizedFormats.push(L),Y[t]=!0)}; y9=function(h,t){for(var Y in h.G)if(h.G[Y].status==="usable"&&h.G[Y].type===t)return!0;return!1}; a6L=function(h,t){for(var Y in h.G)if(h.G[Y].type===t)return h.G[Y].status}; wo=function(h,t){var Y=Y===void 0?!1:Y;qS(t);(Y||h.Me.pZ())&&h.publish("ctmp","drmlog",t)}; xVr=function(h){var t=h[0];h[0]=h[3];h[3]=t;t=h[1];h[1]=h[2];h[2]=t;t=h[4];h[4]=h[5];h[5]=t;t=h[6];h[6]=h[7];h[7]=t}; JR$=function(h){return g.jE(h,"UHD2")||g.jE(h,"UHD2HDR")?"highres":g.jE(h,"UHD1")||g.jE(h,"UHD1HDR")?"hd2160":g.jE(h,"HD")||g.jE(h,"HDHDR")?"hd1080":g.jE(h,"HD720")||g.jE(h,"HD720HDR")?"hd720":"large"}; QjW=function(h){for(var t="",Y=0;Y'.charCodeAt(L);h=h.S.createSession("video/mp4",t,Y);return new XO(null,null,null,null,h)}; ARp=function(h,t){var Y=h.U[t.sessionId];!Y&&h.W&&(Y=h.W,h.W=null,Y.sessionId=t.sessionId,h.U[t.sessionId]=Y);return Y}; f6D=function(h,t){var Y=h.subarray(4);Y=new Uint16Array(Y.buffer,Y.byteOffset,Y.byteLength/2);Y=String.fromCharCode.apply(null,Y).match(/ek=([0-9a-f]+)/)[1];for(var L="",q=0;q19.2999?(h=Y.Hp,Y=Y.mF,Y>=h&&(Y=h* .75),t=(h-Y)*.5,Y=new lz(t,h,h-t-Y,this)):Y=null;break a;case "widevine":Y=new Hh(t,this,h);break a;default:Y=null}if(this.X=Y)g.f(this,this.X),this.X.subscribe("rotated_need_key_info_ready",this.fu,this),this.X.subscribe("log_qoe",this.cI,this);qA(this.Me.experiments);this.cI({cks:this.G.getInfo()})}; I6W=function(h){var t=nzn(h.W);t?t.then(KO(function(){Ba1(h)}),KO(function(Y){if(!h.Ui()){g.ZD(Y); var L="t.a";Y instanceof DOMException&&(L+=";n."+Y.name+";m."+Y.message);h.publish("licenseerror","drm.unavailable",1,L,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(h.cI({mdkrdy:1}),h.L=!0); h.AQ&&(t=nzn(h.AQ))}; mVL=function(h,t,Y){h.Ne=!0;Y=new lq(t,Y);h.Me.N("html5_eme_loader_sync")&&(h.U.get(t)||h.U.set(t,Y));PP$(h,Y)}; PP$=function(h,t){if(!h.Ui()){h.cI({onInitData:1});if(h.Me.N("html5_eme_loader_sync")&&h.videoData.S&&h.videoData.S.G){var Y=h.C.get(t.initData);t=h.U.get(t.initData);if(!Y||!t)return;t=Y;Y=t.initData;h.U.remove(Y);h.C.remove(Y)}h.cI({initd:t.initData.length,ct:t.contentType});if(h.G.flavor==="widevine")if(h.gU&&!h.videoData.isLivePlayback)M4(h);else{if(!(h.Me.N("vp9_drm_live")&&h.videoData.isLivePlayback&&t.A7)){h.gU=!0;Y=t.cryptoPeriodIndex;var L=t.G;bkr(t);t.A7||(L&&t.G!==L?h.publish("ctmp","cpsmm", {emsg:L,pssh:t.G}):Y&&t.cryptoPeriodIndex!==Y&&h.publish("ctmp","cpimm",{emsg:Y,pssh:t.cryptoPeriodIndex}));h.publish("widevine_set_need_key_info",t)}}else h.fu(t)}}; Ba1=function(h){if(!h.Ui())if(h.Me.N("html5_drm_set_server_cert")||gG(h.G)){var t=h.W.setServerCertificate();t?t.then(KO(function(Y){h.Me.pZ()&&h.publish("ctmp","ssc",{success:Y})}),KO(function(Y){h.publish("ctmp","ssce",{n:Y.name, m:Y.message})})).then(KO(function(){DV1(h)})):DV1(h)}else DV1(h)}; DV1=function(h){h.Ui()||(h.L=!0,h.cI({onmdkrdy:1}),M4(h))}; hec=function(h){return h.G.flavor==="widevine"&&h.videoData.N("html5_drm_cpi_license_key")}; M4=function(h){if(h.Ne&&h.L&&!h.Wm){for(;h.S.length;){var t=h.S[0],Y=hec(h)?ow6(t):g.Gv(t.initData);if(gG(h.G)&&!t.T)h.S.shift();else{if(h.T.get(Y))if(h.G.flavor!=="fairplay"||gG(h.G)){h.S.shift();continue}else h.T.delete(Y);bkr(t);break}}h.S.length&&h.createSession(h.S[0])}}; tPL=function(h){var t;if(t=g.xT()){var Y;t=!((Y=h.W.T)==null||!Y.getMetrics)}t&&(t=h.W.getMetrics())&&(t=g.N6(t),h.publish("ctmp","drm",{metrics:t}))}; iDL=function(){var h=KoL();return!(!h||h==="visible")}; Y_3=function(h){var t=g3L();t&&document.addEventListener(t,h,!1)}; L8b=function(h){var t=g3L();t&&document.removeEventListener(t,h,!1)}; g3L=function(){if(document.visibilityState)var h="visibilitychange";else{if(!document[zI+"VisibilityState"])return"";h=zI+"visibilitychange"}return h}; q_b=function(h){g.O.call(this);var t=this;this.qe=h;this.x6=0;this.U=this.T=this.X=!1;this.W=0;this.SM=this.qe.J();this.videoData=this.qe.getVideoData();this.S=g.Sk(this.SM.experiments,"html5_delayed_retry_count");this.G=new g.nE(function(){t.qe.GZ()},g.Sk(this.SM.experiments,"html5_delayed_retry_delay_ms")); g.f(this,this.G)}; HDD=function(h,t,Y){var L=h.videoData.T,q=h.videoData.W,z=h.SM.N("html5_disable_codec_fallback_for_drm")&&h.videoData.WM();X$(h.qe.getVideoData())&&h.SM.N("html5_gapless_fallback_on_qoe_restart")&&wib(h.qe,"pe");if((t==="progressive.net.retryexhausted"||t==="fmt.unplayable"||t==="fmt.decode")&&!h.qe.Y3.X&&L&&L.itag==="22")return h.qe.Y3.X=!0,h.x0("qoe.restart",{reason:"fmt.unplayable.22"}),h.qe.wv(),!0;var V=!1;if(h.videoData.isExternallyHostedPodcast){if(V=h.videoData.s7U)Y.mimeType=V.type,h.Pm("3pp", {url:V.url});Y.ns="3pp";h.qe.Tm(t,1,"VIDEO_UNAVAILABLE",qS((new g.zk(t,Y,1)).details));return!0}var l=h.x6+3E4<(0,g.FH)()||h.G.isActive();if(h.SM.N("html5_empty_src")&&h.videoData.isAd()&&t==="fmt.unplayable"&&/Empty src/.test(""+Y.msg))return Y.origin="emptysrc",h.x0("auth",Y),!0;l||zei(h.qe.E0())||(Y.nonfg="paused",l=!0,h.qe.pauseVideo());(t==="fmt.decode"||t==="fmt.unplayable")&&(q==null?0:cd(q)||u_(q))&&(iKL(h.SM.X,q.wU),Y.acfallexp=q.wU,V=l=!0);!l&&h.S>0&&(h.G.start(),l=!0,Y.delayed="1",--h.S); q=h.qe.loader;l||!((L==null?0:rq(L))||(L==null?0:dq(L)))||z||(iKL(h.SM.X,L.wU),V=l=!0,Y.cfallexp=L.wU);if(!l)return VPL(h,Y);z=!1;h.X?h.x6=(0,g.FH)():z=h.X=!0;l=h.videoData;if(l.JQ){l=l.JQ.Ms();var H=Date.now()/1E3+1800;l=l6048E5&&XhL(h,"signature");return!1}; XhL=function(h,t){try{t={detail:"pr."+t},g.LM(h.SM)&&h.SM.N("html5_reload_by_kabuki_app")?h.qe.Tm("qoe.restart",1,void 0,qS(t),"7"):(h.x0("qoe.restart",t),window.location.reload())}catch(Y){}}; CzW=function(h,t){var Y=h.SM.X;Y.C=!1;Y.T=!0;h.x0("qoe.restart",{e:t===void 0?"fmt.noneavailable":t,detail:"hdr"});h.qe.GZ(!0)}; MPL=function(h,t,Y,L,q,z){this.videoData=h;this.G=t;this.reason=Y;this.T=L;this.token=q;this.videoId=z}; FO=function(h,t,Y){this.Me=h;this.Hg=t;this.qe=Y;this.Y=this.U=this.G=this.W=this.C=this.T=0;this.X=!1;this.L=g.Sk(this.Me.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.S=new Map}; s2L=function(h,t,Y){!h.Me.N("html5_tv_ignore_capable_constraint")&&g.z4(h.Me)&&(Y=Y.compose(F8L(h,t)));return Y}; j2W=function(h){if(h.qe.E0().isInline())return tL;var t;h.N("html5_exponential_memory_for_sticky")?t=vc(h.Me.XI,"sticky-lifetime")<.5?"auto":br[VH()]:t=br[VH()];return g.FZ("auto",t,!1,"s")}; bDc=function(h,t){var Y,L=ZDp(h,(Y=t.G)==null?void 0:Y.videoInfos);Y=h.qe.getPlaybackRate();return Y>1&&L?(h=mOL(h.Me.X,t.G.videoInfos,Y),new M9(0,h,!0,"o")):new M9(0,0,!1,"o")}; ZDp=function(h,t){return t&&g.z4(h.Me)?t.some(function(Y){return Y.video.fps>32}):!1}; o3n=function(h,t){if(h.N("html5_disable_ustreamer_constraint_for_sabr")&&F$(t.videoData))return tL;var Y=h.qe.Ld();h.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&Y&&Y.FO>0&&Zs(t.videoData.w6)&&(h=Y.FO,t.videoData.w6=new M9(0,h,!1,"u"));return t.videoData.w6}; F8L=function(h,t){if(g.z4(h.Me)&&am(h.Me.X,xQ.HEIGHT))var Y=t.G.videoInfos[0].video.qualityOrdinal;else{var L=h.sj(!!t.G.G);Uf(t.videoData)||hJ(t.videoData);t=t.G.videoInfos;if(t.length){var q=g.Sk(h.Me.experiments,"html5_override_oversend_fraction")||.85,z=t[0].video;z.projectionType!=="MESH"&&z.projectionType!=="EQUIRECTANGULAR"&&z.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||fw||(q=.45);h=g.Sk(h.Me.experiments,"html5_viewport_undersend_maximum");for(z=0;z0&&(Y=Math.min(Y,L));if(L=g.Sk(h.Me.experiments,"html5_max_vertical_resolution")){h=4320;for(q=0;qL&&(h=Math.min(h,z.video.qualityOrdinal));if(h<4320){for(q=L=0;q32){q=!0;break a}}q=!1}q&&(Y=Math.min(Y,L));(L=g.Sk(h.Me.experiments,"html5_live_quality_cap"))&&t.videoData.isLivePlayback&&(Y=Math.min(Y,L));Y=GAL(h,t,Y);h=g.Sk(h.Me.experiments,"html5_byterate_soft_cap");return new M9(0,Y===4320?0:Y,!1,"d",h)}; rhp=function(h){var t,Y,L,q;return g.k(function(z){switch(z.T){case 1:return h.G.G&&typeof((t=navigator.mediaCapabilities)==null?void 0:t.decodingInfo)==="function"?g.K(z,Promise.resolve(),2):z.return(Promise.resolve());case 2:Y=g.b(h.G.videoInfos),L=Y.next();case 3:if(L.done){z.eM(0);break}q=L.value;return g.K(z,Js6(q),4);case 4:L=Y.next(),z.eM(3)}})}; uOb=function(h,t){if(!t.videoData.T||h.N("html5_disable_performance_downgrade"))return!1;Date.now()-h.C>6E4&&(h.T=0);h.T++;h.C=Date.now();if(h.T!==4)return!1;chr(h,t.videoData.T);return!0}; Jh3=function(h,t,Y,L){if(!t||!Y||!t.videoData.T)return!1;var q=g.Sk(h.Me.experiments,"html5_df_downgrade_thresh"),z=h.N("html5_log_media_perf_info");if(!((0,g.FH)()-h.W<5E3?0:z||q>0))return!1;var V=((0,g.FH)()-h.W)/1E3;h.W=(0,g.FH)();Y=Y.getVideoPlaybackQuality();if(!Y)return!1;var l=Y.droppedVideoFrames-h.U,H=Y.totalVideoFrames-h.Y;h.U=Y.droppedVideoFrames;h.Y=Y.totalVideoFrames;var w=Y.displayCompositedVideoFrames===0?0:Y.displayCompositedVideoFrames||-1;z&&h.Me.pZ()&&h.qe.Pm("ddf",{dr:Y.droppedVideoFrames, de:Y.totalVideoFrames,comp:w});if(L)return h.G=0,!1;if((H-l)/V>h.L||!q||g.z4(h.Me))return!1;h.G=(H>60?l/H:0)>q?h.G+1:0;if(h.G!==3)return!1;chr(h,t.videoData.T);h.qe.Pm("dfd",Object.assign({dr:Y.droppedVideoFrames,de:Y.totalVideoFrames},eec()));return!0}; chr=function(h,t){var Y=t.wU,L=t.video.fps,q=t.video.qualityOrdinal-1,z=h.S;t=""+Y+(L>49?"p60":L>32?"p48":"");Y=R5(Y,L,z);q>0&&(Y=Math.min(Y,q));if(!s_.has(t)&&H8().includes(t)){var V=Y;Y=lr();+Y[t]>0&&(V=Math.min(+Y[t],V));Y[t]!==V&&(Y[t]=V,g.dK("yt-player-performance-cap",Y,2592E3))}else if(s_.has(t)||z==null){a:{V=V===void 0?!0:V;L=H8().slice();if(V){if(L.includes(t))break a;L.push(t)}else{if(!L.includes(t))break a;L.splice(L.indexOf(t),1)}g.dK("yt-player-performance-cap-active-set",L,2592E3)}I5.set(t, Y)}else s_.add(t),z==null||z.set(t,Y);h.qe.eP()}; phL=function(h,t){if(!t.G.G)return h.X?new M9(0,360,!1,"b"):tL;for(var Y=!1,L=!1,q=g.b(t.G.videoInfos),z=q.next();!z.done;z=q.next())rq(z.value)?Y=!0:L=!0;Y=Y&&L;L=0;q=g.Sk(h.Me.experiments,"html5_performance_cap_floor");q=h.Me.T?240:q;t=g.b(t.G.videoInfos);for(z=t.next();!z.done;z=t.next()){var V=z.value;if(!Y||!rq(V))if(z=R5(V.wU,V.video.fps,h.S),V=V.video.qualityOrdinal,Math.max(z,q)>=V){L=V;break}}return new M9(0,L,!1,"b")}; v3r=function(h,t){var Y=h.qe.E0();return Y.isInline()&&!t.eg?new M9(0,480,!1,"v"):F$(t)?tL:Y.isBackground()&&X2()/1E3>60&&!g.z4(h.Me)?new M9(0,360,!1,"v"):tL}; K8L=function(h,t,Y){if(h.Me.experiments.I0("html5_disable_client_autonav_cap_for_onesie")&&t.fetchType==="onesie"||g.z4(h.Me)&&(VH(-1)>=1080||t.osid))return tL;var L=g.Sk(h.Me.experiments,"html5_autonav_quality_cap"),q=g.Sk(h.Me.experiments,"html5_autonav_cap_idle_secs");return L&&t.isAutonav&&X2()/1E3>q?(Y&&(L=GAL(h,Y,L)),new M9(0,L,!1,"e")):tL}; GAL=function(h,t,Y){if(h.N("html5_optimality_defaults_chooses_next_higher")&&Y)for(h=t.G.videoInfos,t=1;t=0||(h.provider.qe.getVisibilityState()===3?h.X=!0:(h.G=g.iz(h.provider),h.delay.start()))}; E3L=function(h){if(!(h.T<0)){var t=g.iz(h.provider),Y=t-h.W;h.W=t;h.playerState.state===8?h.playTimeSecs+=Y:h.playerState.isBuffering()&&!g.R(h.playerState,16)&&(h.rebufferTimeSecs+=Y)}}; kA3=function(h){var t;switch((t=h.Me.playerCanaryStage)==null?void 0:t.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"}}; ODi=function(h){this.provider=h;this.C=!1;this.G=0;this.W=-1;this.ob=NaN;this.S=0;this.segments=[];this.U=this.X=0;this.previouslyEnded=!1;this.L=this.provider.qe.getVolume();this.Y=this.provider.qe.isMuted()?1:0;this.T=Z8(this.provider)}; bz=function(h){h.T.startTime=h.S;h.T.endTime=h.G;var t=!1;h.segments.length&&g.U0(h.segments).isEmpty()?(h.segments[h.segments.length-1].previouslyEnded&&(h.T.previouslyEnded=!0),h.segments[h.segments.length-1]=h.T,t=!0):h.segments.length&&h.T.isEmpty()||(h.segments.push(h.T),t=!0);t?h.T.endTime===0&&(h.previouslyEnded=!1):h.T.previouslyEnded&&(h.previouslyEnded=!0);h.X+=h.G-h.S;h.T=Z8(h.provider);h.T.previouslyEnded=h.previouslyEnded;h.previouslyEnded=!1;h.S=h.G}; f8c=function(h){n3b(h);h.U=g.VR(function(){h.update()},100); h.ob=g.iz(h.provider);h.T=Z8(h.provider)}; n3b=function(h){g.lZ(h.U);h.U=NaN}; $41=function(h,t,Y){Y-=h.ob;return t===h.G&&Y>.5}; Tor=function(h,t,Y,L){this.Me=t;this.y4=Y;this.segments=[];this.experimentIds=[];this.JQ=this.Ds=this.isFinal=this.delayThresholdMet=this.Q4=this.fn=this.autoplay=this.autonav=!1;this.dP="yt";this.U=[];this.C=this.L=null;this.sendVisitorIdHeader=this.yG=!1;this.Y=this.pageId="";this.X=Y==="watchtime";this.S=Y==="playback";this.Wm=Y==="atr";this.Y1=Y==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Wm?"/api/stats/"+Y:"//"+t.xa+"/api/stats/"+Y;L&&(this.Ds=L.fs,L.rtn&&(this.C=L.rtn),this.X?(this.playerState= L.state,L.rti>0&&(this.L=L.rti)):(this.Df=L.mos,this.fC=L.volume,L.at&&(this.adType=L.at)),L.autonav&&(this.autonav=L.autonav),L.inview!=null&&(this.pn=L.inview),L.size&&(this.Im=L.size),L.playerwidth&&(this.XI=L.playerwidth),L.playerheight&&(this.eh=L.playerheight));this.R7=g.Uw(t.G);this.Y=Wc(t.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.Hq=g.Uw(t.Q4);this.Cr=t.dP;this.experimentIds=Ion(t.experiments);this.Y8=t.Vb;this.dP=t.AQ;this.region=t.region; this.userAge=t.userAge;this.tQ=t.qW;this.Vb=X2();this.sendVisitorIdHeader=t.sendVisitorIdHeader;this.gU=t.N("vss_pings_using_networkless")||t.N("kevlar_woffle");this.lR=t.N("vss_final_ping_send_and_write");this.X5=t.N("vss_use_send_and_write");this.pageId=t.pageId;this.mK=t.N("vss_playback_use_send_and_write");t.livingRoomAppMode&&(this.livingRoomAppMode=t.livingRoomAppMode);this.NU=t.W&&t.N("embeds_append_synth_ch_headers");g.kk(t)&&(this.Ne=t.Wm);g.gK(g.R9(t))&&this.U.push(1);this.accessToken=g.Pu(h); h.M3[this.y4]?this.W=h.M3[this.y4]:h.M3.playback&&(this.W=h.M3.playback);this.adFormat=h.adFormat;this.adQueryId=h.adQueryId;this.autoplay=uP3(h);this.S&&(this.fn=h.le&&S_(h)==="adunit"?!0:!1);this.autonav=h.isAutonav||this.autonav;this.contentVideoId=Rs(h);this.clientPlaybackNonce=h.clientPlaybackNonce;this.Q4=h.Ye;h.U&&(this.x8=h.U,this.G$=h.iJ);h.mdxEnvironment&&(this.mdxEnvironment=h.mdxEnvironment);this.G=h.dP;this.Pq=h.Pq;h.T&&(this.M6=h.T.itag,h.W&&h.W.itag!==this.M6&&(this.MD=h.W.itag));h.G&& rO(h.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=S_(h);this.JQ=h.mK?!1:h.fC;this.UX=h.tM;if(t=pI(h))this.Aa=t;this.sX=h.hM;this.partnerId=h.partnerId;this.eventId=h.eventId;this.playlistId=h.Sy||h.playlistId;this.Iw=h.Iw;this.qq=h.qq;this.Y9=h.Y9;this.K1=h.K1;this.subscribed=h.subscribed;this.videoId=h.videoId;this.videoMetadata=h.videoMetadata;this.visitorData=h.visitorData;this.osid=h.osid;this.Mh=h.Mh;this.referrer=h.referrer;this.Pu=h.q2||h.Pu;this.iP=h.m3;this.Wz=h.Wz;this.userGenderAge= h.userGenderAge;this.nV=h.nV;this.embedsRct=h.embedsRct;this.embedsRctn=h.embedsRctn;g.kk(this.Me)&&h.mutedAutoplay&&(h.mutedAutoplayDurationMode===2&&h.limitedPlaybackDurationInSeconds===0&&h.endSeconds===0?this.U.push(7):this.U.push(2));h.isEmbedsShortsMode(new g.Se(this.XI,this.eh),!!this.playlistId)&&this.U.push(3);g.VE(h)&&this.U.push(4);this.lP=h.c6;h.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=h.compositeLiveIngestionOffsetToken)}; Ah6=function(h,t){var Y=h.sendVisitorIdHeader?h.visitorData:void 0;return g.Up(h.Me,h.accessToken).then(function(L){return Bu6(h.uri,h.Me,h.pageId,Y,L,t,h.NU)})}; ReD=function(h,t){return function(){h.Me.N("html5_simplify_pings")?(h.G=h.Zx,h.m$=t(),h.Vb=0,h.send()):Ah6(h).then(function(Y){var L=S_W(h);L.cmt=L.len;L.lact="0";var q=t().toFixed(3);L.rt=Number(q).toString();L=g.Xz(h.uri,L);h.Me.N("vss_through_gel_double")&&I86(L);h.gU?(Y==null&&(Y={}),h.X5?Eo().sendAndWrite(L,Y):Eo().sendThenWrite(L,Y)):Y?g.Ci(L,Y):g.rd(L)})}}; S_W=function(h){var t={ns:h.dP,el:h.eventLabel,cpn:h.clientPlaybackNonce,ver:2,cmt:h.T(h.G),fmt:h.M6,fs:h.Ds?"1":"0",rt:h.T(h.m$),adformat:h.adFormat,content_v:h.contentVideoId,euri:h.Cr,lact:h.Vb,live:h.Aa,cl:(780287553).toString(),mos:h.Df,state:h.playerState,volume:h.fC};h.subscribed&&(t.subscribed="1");Object.assign(t,h.R7);h.Y==="all"?Object.assign(t,h.Hq):h.Y==="once"&&h.S&&Object.assign(t,h.Hq);h.autoplay&&(t.autoplay="1");h.fn&&(t.sautoplay="1");h.Q4&&(t.dni="1");!h.X&&h.Ne&&(t.epm=BoL[h.Ne]); h.isFinal&&(t["final"]="1");h.JQ&&(t.splay="1");h.Pq&&(t.delay=h.Pq);h.Y8&&(t.hl=h.Y8);h.region&&(t.cr=h.region);h.userGenderAge&&(t.uga=h.userGenderAge);h.userAge!==void 0&&h.tQ&&(t.uga=h.tQ+h.userAge);h.Zx!==void 0&&(t.len=h.T(h.Zx));!h.X&&h.experimentIds.length>0&&(t.fexp=h.experimentIds.toString());h.C!==null&&(t.rtn=h.T(h.C));h.Pu&&(t.feature=h.Pu);h.qq&&(t.ctrl=h.qq);h.Y9&&(t.ytr=h.Y9);h.MD&&(t.afmt=h.MD);h.offlineDownloadUserChoice&&(t.ODUC=h.offlineDownloadUserChoice);h.AQ&&(t.lio=h.T(h.AQ)); h.X?(t.idpj=h.UX,t.ldpj=h.sX,h.delayThresholdMet&&(t.dtm="1"),h.L!=null&&(t.rti=h.T(h.L)),h.nV&&(t.ald=h.nV),h.compositeLiveIngestionOffsetToken&&(t.clio=h.compositeLiveIngestionOffsetToken)):h.adType!==void 0&&(t.at=h.adType);h.Im&&(h.S||h.X)&&(t.size=h.Im);h.S&&h.U.length&&(t.pbstyle=h.U.join(","));h.pn!=null&&(h.S||h.X)&&(t.inview=h.T(h.pn));h.X&&(t.volume=o2(h,g.CQ(h.segments,function(L){return L.volume})),t.st=o2(h,g.CQ(h.segments,function(L){return L.startTime})),t.et=o2(h,g.CQ(h.segments,function(L){return L.endTime})), OM(h.segments,function(L){return L.playbackRate!==1})&&(t.rate=o2(h,g.CQ(h.segments,function(L){return L.playbackRate}))),OM(h.segments,function(L){return L.G!=="-"})&&(t.als=g.CQ(h.segments,function(L){return L.G}).join(",")),OM(h.segments,function(L){return L.previouslyEnded})&&(t.pe=g.CQ(h.segments,function(L){return""+ +L.previouslyEnded}).join(","))); t.muted=o2(h,g.CQ(h.segments,function(L){return L.muted?1:0})); OM(h.segments,function(L){return L.visibilityState!==0})&&(t.vis=o2(h,g.CQ(h.segments,function(L){return L.visibilityState}))); OM(h.segments,function(L){return L.connectionType!==0})&&(t.conn=o2(h,g.CQ(h.segments,function(L){return L.connectionType}))); OM(h.segments,function(L){return L.T!==0})&&(t.blo=o2(h,g.CQ(h.segments,function(L){return L.T}))); OM(h.segments,function(L){return!!L.S})&&(t.blo=g.CQ(h.segments,function(L){return L.S}).join(",")); OM(h.segments,function(L){return!!L.compositeLiveStatusToken})&&(t.cbs=g.CQ(h.segments,function(L){return L.compositeLiveStatusToken}).join(",")); OM(h.segments,function(L){return L.W!=="-"})&&(t.cc=g.CQ(h.segments,function(L){return L.W}).join(",")); OM(h.segments,function(L){return L.clipId!=="-"})&&(t.clipid=g.CQ(h.segments,function(L){return L.clipId}).join(",")); if(OM(h.segments,function(L){return!!L.audioId})){var Y="au"; h.S&&(Y="au_d");t[Y]=g.CQ(h.segments,function(L){return L.audioId}).join(",")}DF()&&h.x8&&(t.ctt=h.x8,t.cttype=h.G$,t.mdx_environment=h.mdxEnvironment); h.Y1&&(t.etype=h.R0!==void 0?h.R0:0);h.iP&&(t.uoo=h.iP);h.livingRoomAppMode&&h.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(t.clram=PzL[h.livingRoomAppMode]||h.livingRoomAppMode);h.W?m4W(h,t):(t.docid=h.videoId,t.referrer=h.referrer,t.ei=h.eventId,t.of=h.Mh,t.osid=h.osid,t.vm=h.videoMetadata,h.adQueryId&&(t.aqi=h.adQueryId),h.autonav&&(t.autonav="1"),h.playlistId&&(t.list=h.playlistId),h.K1&&(t.ssrt="1"),h.Wz&&(t.upt=h.Wz));h.S&&(h.embedsRct&&(t.rct=h.embedsRct),h.embedsRctn&&(t.rctn= h.embedsRctn),h.compositeLiveIngestionOffsetToken&&(t.clio=h.compositeLiveIngestionOffsetToken));h.lP&&(t.host_cpn=h.lP);return t}; m4W=function(h,t){if(t&&h.W){var Y=new Set(["q","feature","mos"]),L=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),q=new Set(["aqi","autonav","list","ssrt","upt"]);h.W.ns==="3pp"&&(t.ns="3pp");for(var z=g.b(Object.keys(h.W)),V=z.next();!V.done;V=z.next())V=V.value,L.has(V)||Y.has(V)||q.has(V)&&!h.W[V]||(t[V]=h.W[V])}}; o2=function(h,t){return g.CQ(t,h.T).join(",")}; I86=function(h){h.indexOf("watchtime")!==-1&&g.tq("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:h}})}; D4r=function(h,t){h.attestationResponse&&Ah6(h).then(function(Y){Y=Y||{};Y.method="POST";Y.postParams={atr:h.attestationResponse};h.gU?h.X5?Eo().sendAndWrite(t,Y):Eo().sendThenWrite(t,Y):g.Ci(t,Y)})}; GA=function(h){g.O.call(this);this.provider=h;this.U="paused";this.X=NaN;this.C=[10,10,10,40];this.L=this.Y=0;this.x8=this.Wm=this.R0=this.AQ=this.S=!1;this.T=this.W=NaN;this.logger=new g.yn("vss");this.G=new ODi(h)}; YvL=function(h){if(!h.S){h.provider.videoData.Yn===16623&&g.bc(Error("Playback for EmbedPage"));var t=Q9(h,"playback");h.C=hlr(h);f8c(h.G);t.C=ro(h);h.T>0&&(t.G-=h.T);t.send();if(h.provider.videoData.FJ){t=h.provider.Me;var Y=h.provider.videoData,L={html5:"1",video_id:Y.videoId,cpn:Y.clientPlaybackNonce,ei:Y.eventId,ptk:Y.FJ,oid:Y.jd,ptchn:Y.aP,pltype:Y.Ip,content_v:Rs(Y)};Y.lS&&Object.assign(L,{m:Y.lS});t=g.Xz(t.Xv+"ptracking",L);toW(h,t)}h.provider.videoData.Pq||(i8L(h),gYW(h));h.S=!0;h=h.G;h.G= h.Bx();h.ob=g.iz(h.provider);!(h.S===0&&h.G<5)&&h.G-h.S>2&&(h.S=h.G);h.C=!0}}; hlr=function(h){var t=h.provider.videoData.tM,Y=h.provider.videoData.hM,L=[10+t,10,10,40+Y-t,40],q,z=(q=h.provider.videoData.getPlayerResponse())==null?void 0:q.playbackTracking,V=z==null?void 0:z.videostatsScheduledFlushWalltimeSeconds;q=z==null?void 0:z.videostatsDefaultFlushIntervalSeconds;if(!(V&&V.length>0&&q))return h.logger.info("Missing valid scheduled pings config "+V+" "+q),L;t=[V[0]+t].concat(g.p(V.slice(1).map(function(l,H){return l-V[H]})),[q+Y-t, q]);return t.some(function(l){return l<0})?(h.logger.G(347111855,"Neg vss scheduled pings "+V+" "+q),L):t}; ro=function(h,t){t=t===void 0?NaN:t;var Y=g.iz(h.provider);t=isNaN(t)?Y:t;t=Math.ceil(t);var L=h.C[h.Y];h.Y+11E3;!(z.length>1)&&z[0].isEmpty()||l||(V.C=ro(h,q));V.send();h.L++}},(q-Y)*1E3); return h.W=q}; ch=function(h){g.Nc(h.X);h.X=NaN}; L6p=function(h){h.G.update();h=h.G;h.segments.length&&h.G===h.S||bz(h);var t=h.segments;h.segments=[];return t}; Q9=function(h,t){var Y=zl3(h.provider);Object.assign(Y,{state:h.U});t=new Tor(h.provider.videoData,h.provider.Me,t,Y);t.G=h.provider.qe.Bx();Y=h.provider.videoData.clientPlaybackNonce;t.G=h.provider.qe.OM(Y);h.provider.videoData.isLivePlayback||(t.Zx=h.provider.qe.getDuration(Y));h.provider.videoData.G&&(Y=h.provider.videoData.G.a7(t.G))&&(t.AQ=Y-t.G,h.provider.Me.N("html5_disable_live_dvr_shrink_for_cdm_vss")&&MZ(h.provider.videoData)&&(t.G+=h.provider.qe.O3(),t.AQ-=h.provider.qe.O3()));t.m$=g.iz(h.provider); t.segments=[Z8(h.provider)];return t}; qvc=function(h,t){var Y=Q9(h,"watchtime");VoL(h)&&(Y.delayThresholdMet=!0,h.R0=!0);if(h.T>0){for(var L=g.b(t),q=L.next();!q.done;q=L.next())q=q.value,q.startTime-=h.T,q.endTime-=h.T;Y.G-=h.T}else Y.G=h.G.G;Y.segments=t;return Y}; uz=function(h,t){var Y=NYb(h,!isNaN(h.W));t&&(h.W=NaN);return Y}; NYb=function(h,t){var Y=qvc(h,L6p(h));!isNaN(h.W)&&t&&(Y.L=h.W);return Y}; VoL=function(h){var t;if(t=h.provider.videoData.isLoaded()&&h.provider.videoData.Pq&&h.S&&!h.R0)t=h.G,t=t.X+t.Bx()-t.S>=h.provider.videoData.Pq;return!!t}; i8L=function(h){h.provider.videoData.youtubeRemarketingUrl&&!h.Wm&&(toW(h,h.provider.videoData.youtubeRemarketingUrl),h.Wm=!0)}; gYW=function(h){h.provider.videoData.googleRemarketingUrl&&!h.x8&&(toW(h,h.provider.videoData.googleRemarketingUrl),h.x8=!0)}; lwW=function(h){if(!h.Ui()&&h.S){h.U="paused";var t=uz(h);t.isFinal=!0;t.send();h.dispose()}}; H83=function(h,t){if(!h.Ui())if(g.R(t.state,2)||g.R(t.state,512)){if(h.U="paused",g.qK(t,2)||g.qK(t,512))g.qK(t,2)&&(h.G.previouslyEnded=!0),h.S&&(ch(h),uz(h).send(),h.W=NaN)}else if(g.R(t.state,8)){h.U="playing";var Y=h.S&&isNaN(h.X)?ro(h):NaN;if(!isNaN(Y)&&(Ls(t,64)<0||Ls(t,512)<0)){var L=NYb(h,!1);L.C=Y;L.send()}g.qK(t,16)&&t.state.seekSource===58&&(h.G.previouslyEnded=!0)}else h.U="paused"}; wgp=function(h,t,Y){if(!h.AQ){Y||(Y=Q9(h,"atr"));Y.attestationResponse=t;try{Y.send()}catch(L){if(L.message!=="Unknown Error")throw L;}h.AQ=!0}}; toW=function(h,t){var Y=h.provider.Me;g.Up(h.provider.Me,g.Pu(h.provider.videoData)).then(function(L){var q=h.provider.Me.pageId,z=h.provider.Me.sendVisitorIdHeader?h.provider.videoData.visitorData:void 0,V=h.provider.Me.N("vss_pings_using_networkless")||h.provider.Me.N("kevlar_woffle"),l=h.provider.Me.N("allow_skip_networkless");L=Bu6(t,Y,q,z,L);P6L(t,L,{token:h.provider.videoData.U,cC:h.provider.videoData.iJ,mdxEnvironment:h.provider.videoData.mdxEnvironment},Y,void 0,V&&!l,!1,!0)})}; W6L=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.T=0;this.compositeLiveStatusToken=this.S=void 0;this.volume=this.connectionType=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1}; eP=function(h,t,Y){this.videoData=h;this.Me=t;this.qe=Y;this.G=void 0}; g.iz=function(h){return yvL(h)()}; yvL=function(h){if(!h.G){var t=g.Nh(function(L){var q=(0,g.FH)();L&&q<=631152E6&&(h.qe.Pm("ytnerror",{issue:28799967,value:""+q}),q=(new Date).getTime()+2);return q},h.Me.N("html5_validate_yt_now")),Y=t(); h.G=function(){return Math.round(t()-Y)/1E3}; h.qe.QA()}return h.G}; zl3=function(h){var t=h.qe.l9()||{};t.fs=h.qe.MP();t.volume=h.qe.getVolume();t.muted=h.qe.isMuted()?1:0;t.mos=t.muted;t.clipid=h.qe.NK();var Y;t.playerheight=((Y=h.qe.getPlayerSize())==null?void 0:Y.height)||0;var L;t.playerwidth=((L=h.qe.getPlayerSize())==null?void 0:L.width)||0;h=h.videoData;Y={};h.T&&(Y.fmt=h.T.itag,h.W&&(h.y4?h.W.itag!==h.T.itag:h.W.itag!=h.T.itag)&&(Y.afmt=h.W.itag));Y.ei=h.eventId;Y.list=h.playlistId;Y.cpn=h.clientPlaybackNonce;h.videoId&&(Y.v=h.videoId);h.bB&&(Y.infringe=1); (h.mK?0:h.fC)&&(Y.splay=1);(L=pI(h))&&(Y.live=L);h.le&&(Y.sautoplay=1);h.w0&&(Y.autoplay=1);h.Iw&&(Y.sdetail=h.Iw);h.partnerId&&(Y.partnerid=h.partnerId);h.osid&&(Y.osid=h.osid);h.Zd&&(Y.cc=g.iFL(h.Zd));return Object.assign(t,Y)}; zb3=function(h){var t=rsL();if(t)return XgD[t]||XgD.other;if(g.z4(h.Me)){h=navigator.userAgent;if(/[Ww]ireless[)]/.test(h))return 3;if(/[Ww]ired[)]/.test(h))return 30}return 0}; Z8=function(h){var t=new W6L,Y;t.W=((Y=zl3(h).cc)==null?void 0:Y.toString())||"-";t.playbackRate=h.qe.getPlaybackRate();Y=h.qe.getVisibilityState();Y!==0&&(t.visibilityState=Y);h.Me.iP&&(t.T=1);t.S=h.videoData.dJ;t.compositeLiveStatusToken=h.videoData.compositeLiveStatusToken;Y=h.qe.getAudioTrack();Y.j4&&Y.j4.id&&Y.j4.id!=="und"&&(t.audioId=Y.j4.id);t.connectionType=zb3(h);t.volume=h.qe.getVolume();t.muted=h.qe.isMuted();t.clipId=h.qe.NK()||"-";t.G=h.videoData.e5||"-";return t}; g.Jh=function(h,t){g.O.call(this);var Y=this;this.provider=h;this.S=new Map;this.yp=new g.yT;this.zD={nSU:function(){return Y.qoe}, ESG:function(){return Y.G}, vmQ:function(){return Y.T}}; this.provider.videoData.ra()&&!this.provider.videoData.LI&&(this.G=new GA(this.provider),this.G.T=0,g.f(this,this.G),this.qoe=new g.hh(this.provider,t),g.f(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.MW=this.provider.videoData.clientPlaybackNonce)&&this.S.set(this.MW,this.G));if(h.Me.playerCanaryState==="canary"||h.Me.playerCanaryState==="holdback")this.T=new jP(this.provider),g.f(this,this.T)}; UiL=function(h){h.T&&x46(h.T);h.qoe&&C53(h.qoe)}; CO6=function(h){if(h.qoe){h=h.qoe;for(var t=h.provider.videoData,Y=h.provider.Me,L=g.b(Y.lB),q=L.next();!q.done;q=L.next())Y3(h,q.value);if(h.provider.N("html5_enable_qoe_cat_list"))for(L=g.b(t.An),q=L.next();!q.done;q=L.next())Y3(h,q.value);else t.lB&&Y3(h,h.provider.videoData.lB);t.fZ()&&(L=t.G,os(t)&&Y3(h,"manifestless"),L&&OJ(L)&&Y3(h,"live-segment-"+OJ(L).toFixed(1)));F$(t)?Y3(h,"sabr"):h.sf(Qt(t));if(mC(t)||t.JJ())t.JJ()&&Y3(h,"ssa"),Y3(h,"lifa");MZ(t)&&Y3(h,"cdm");t.gatewayExperimentGroup&& (L=t.gatewayExperimentGroup,L==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?L="spkadtrt":L==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(L="spkadctrl"),Y3(h,L));Y.AQ!=="yt"&&h.G.set("len",[t.lengthSeconds.toFixed(2)]);t.cotn&&!hJ(t)&&h.zG(!0);Y.pZ()&&(t=YY3())&&h.Pm("cblt",{m:t});if(Y.N("html5_log_screen_diagonal")){Y=h.Pm;var z;t=((z=window.H5vccScreen)==null?0:z.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;Y.call(h,"cbltdiag",{v:t})}}}; Mop=function(h,t){h.G&&(h=h.G,t===58?h.G.update():h.S&&(ch(h),uz(h).send(),h.W=NaN))}; F6D=function(h,t){if(g.qK(t,1024)||g.qK(t,512)||g.qK(t,4)){if(h.T){var Y=h.T;Y.T>=0||(Y.G=-1,Y.delay.stop())}h.qoe&&(Y=h.qoe,Y.C||(Y.S=-1))}if(h.provider.videoData.enableServerStitchedDai&&h.MW){var L;(L=h.S.get(h.MW))==null||H83(L,t)}else h.G&&H83(h.G,t);if(h.qoe){L=h.qoe;Y=t.state;var q=g.iz(L.provider),z=L.getPlayerState(Y),V=Y.seekSource||void 0;if(z!==L.yp){L.R0||q= 10&&L.playTimeSecs<=180&&(L.G.set("qoealert",["1"]),L.Pq=!0)),z!=="B"||L.yp!=="PL"&&L.yp!=="PB"||(L.isBuffering=!0),L.T=q);L.yp==="PL"&&(z==="B"||z==="S")||L.provider.Me.pZ()?go(L,q):(L.G$||z!=="PL"||(L.G$=!0,VHi(L,q,L.provider.qe.py())),qYL(L,q));z==="PL"&&g.fE(L.m$);var l=[z];z==="S"&&V&&l.push("ss."+V);g.D6(L,q,"vps",l);L.yp=z;L.AQ=q;L.T=q;L.W=!0}z=Y.rk;g.R(Y,128)&&z&&(z.HY=z.HY||"",w5L(L,q,z.errorCode,z.r3,z.HY));(g.R(Y,2)||g.R(Y,128))&&L.reportStats(q);Y.isPlaying()&&!L.C&&(L.S>=0&&L.G.set("user_intent", [L.S.toString()]),L.C=!0);lh3(L)}h.T&&(h=h.T,E3L(h),h.playerState=t.state,h.T>=0&&g.qK(t,16)&&h.seekCount++,t.state.isError()&&h.send())}; sqL=function(h){h.T&&h.T.send();if(h.qoe){var t=h.qoe;if(t.W){t.yp==="PL"&&(t.yp="N");var Y=g.iz(t.provider);g.D6(t,Y,"vps",[t.yp]);t.C||(t.S>=0&&t.G.set("user_intent",[t.S.toString()]),t.C=!0);t.provider.Me.pZ()&&t.Pm("finalized",{});t.gU=!0;t.reportStats(Y)}}if(h.provider.videoData.enableServerStitchedDai)for(t=g.b(h.S.values()),Y=t.next();!Y.done;Y=t.next())lwW(Y.value);else h.G&&lwW(h.G);h.dispose()}; jqW=function(h,t){h.G&&wgp(h.G,t)}; Z8$=function(h){if(!h.G)return null;var t=Q9(h.G,"atr");return function(Y){h.G&&wgp(h.G,Y,t)}}; b8n=function(h,t,Y,L){Y.adFormat=Y.Cr;var q=t.qe;t=new GA(new eP(Y,t.Me,{getDuration:function(){return Y.lengthSeconds}, getCurrentTime:function(){return q.getCurrentTime()}, Bx:function(){return q.Bx()}, OM:function(){return q.OM()}, py:function(){return q.py()}, getPlayerSize:function(){return q.getPlayerSize()}, getAudioTrack:function(){return Y.getAudioTrack()}, getPlaybackRate:function(){return q.getPlaybackRate()}, mM:function(){return q.mM()}, getVisibilityState:function(){return q.getVisibilityState()}, aT:function(){return q.aT()}, l9:function(){return q.l9()}, getVolume:function(){return q.getVolume()}, isMuted:function(){return q.isMuted()}, MP:function(){return q.MP()}, NK:function(){return q.NK()}, getProximaLatencyPreference:function(){return q.getProximaLatencyPreference()}, QA:function(){q.QA()}, Pm:function(z,V){q.Pm(z,V)}, Nw:function(){return q.Nw()}, O3:function(){return q.O3()}})); t.T=L;g.f(h,t);return t}; oYp=function(){this.Mx=0;this.S=this.AA=this.FU=this.T=NaN;this.G={};this.bandwidthEstimate=NaN}; diL=function(){this.G=g.xO;this.array=[]}; Qqp=function(h,t,Y){var L=[];for(t=GGi(h,t);tY)break}return L}; rvD=function(h,t){var Y=[];h=g.b(h.array);for(var L=h.next();!L.done&&!(L=L.value,L.contains(t)&&Y.push(L),L.start>t);L=h.next());return Y}; cvD=function(h){return h.array.slice(GGi(h,0x7ffffffffffff),h.array.length)}; GGi=function(h,t){h=$y(h.array,function(Y){return t-Y.start||1}); return h<0?-(h+1):h}; usL=function(h,t){var Y=NaN;h=g.b(h.array);for(var L=h.next();!L.done;L=h.next())if(L=L.value,L.contains(t)&&(isNaN(Y)||L.endt&&(isNaN(Y)||L.starth.mediaTime+h.X&&t1)h.W=!0;if((q===void 0?0:q)||isNaN(h.T))h.T=t;if(h.G)t!==h.mediaTime&&(h.G=!1);else if(t>0&&h.mediaTime===t){q=1500;if(h.Me.N("html5_buffer_underrun_transition_fix")){q=g.Sk(h.Me.experiments,"html5_min_playback_advance_for_steady_state_secs");var z=g.Sk(h.Me.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");q=q>0&&z>0&&Math.abs(t-h.T)(L||!h.W?q:400)}h.mediaTime=t;h.S=Y;return!1}; O8p=function(h,t){this.videoData=h;this.G=t}; nYc=function(h,t,Y){return t.B6(Y).then(function(){return dj(new O8p(t,t.S))},function(L){L instanceof Error&&g.bc(L); var q=Hd('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),z=Wd('audio/mp4; codecs="mp4a.40.2"'),V=q||z,l=t.isLivePlayback&&!g.UZ(h.X,!0);L="fmt.noneavailable";l?L="html5.unsupportedlive":V||(L="html5.missingapi");V=l||!V?2:1;q={buildRej:"1",a:t.lF(),d:!!t.Im,drm:t.WM(),f18:t.Df.indexOf("itag=18")>=0,c18:q};t.G&&(t.WM()?(q.f142=!!t.G.G["142"],q.f149=!!t.G.G["149"],q.f279=!!t.G.G["279"]):(q.f133=!!t.G.G["133"],q.f140=!!t.G.G["140"],q.f242=!!t.G.G["242"]),q.cAAC=z,q.cAVC=Wd('video/mp4; codecs="avc1.42001E"'), q.cVP9=Wd('video/webm; codecs="vp9"'));t.X&&(q.drmsys=t.X.keySystem,z=0,t.X.G&&(z=Object.keys(t.X.G).length),q.drmst=z);return new g.zk(L,q,V)})}; KD=function(h){this.data=window.Float32Array?new Float32Array(h):Array(h);this.T=this.G=h-1}; fw6=function(h){return h.data[h.G]||0}; $ii=function(h){this.X=h;this.S=this.T=0;this.W=new KD(50)}; x3=function(h,t,Y){g.PD.call(this);this.videoData=h;this.experiments=t;this.X=Y;this.T=[];this.MK=0;this.S=!0;this.W=!1;this.U=0;Y=new TYr;h.latencyClass==="ULTRALOW"&&(Y.U=!1);h.tQ?Y.S=3:g.Ef(h)&&(Y.S=2);h.latencyClass==="NORMAL"&&(Y.X=!0);Y.AQ=F$(h)&&t.I0("html5_refactor_decouple_liveness");g.Sk(t,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Sk(t,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||h.latencyClass!=="LOW"&&h.latencyClass!=="ULTRALOW"||(Y.X=!0);var L= g.Sk(t,"html5_liveness_drift_proxima_override");if(Qt(h)!==0&&L){Y.G=L;var q;((q=h.G)==null?0:lo6(q))&&Y.G--}F$(h)&&t.I0("html5_sabr_parse_live_metadata_playback_boundaries")&&(Y.x8=!0);if(g.Ki("trident/")||g.Ki("edge/"))q=g.Sk(t,"html5_platform_minimum_readahead_seconds")||3,Y.W=Math.max(Y.W,q);g.Sk(t,"html5_minimum_readahead_seconds")&&(Y.W=g.Sk(t,"html5_minimum_readahead_seconds"));g.Sk(t,"html5_maximum_readahead_seconds")&&(Y.L=g.Sk(t,"html5_maximum_readahead_seconds"));t.I0("html5_force_adaptive_readahead")&& (Y.U=!0);if(q=g.Sk(t,"html5_liveness_drift_chunk_override"))Y.G=q;du(h)&&(Y.G=(Y.G+1)/5,h.latencyClass==="LOW"&&(Y.G*=2));!F$(h)||h.latencyClass!=="ULTRALOW"&&h.latencyClass!=="LOW"||(Y.Y=g.Sk(t,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,Y.C=g.Sk(t,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=Y;this.C=this.policy.S!==1;this.G=a2(this,Av6(this,isNaN(h.liveChunkReadahead)?3:h.liveChunkReadahead,h))}; SvW=function(h,t){if(t)return t=h.videoData,t=Av6(h,isNaN(t.liveChunkReadahead)?3:t.liveChunkReadahead,t),a2(h,t);if(h.T.length){if(Math.min.apply(null,h.T)>1)return a2(h,h.G-1);if(h.policy.U)return a2(h,h.G+1)}return h.G}; Iwi=function(h,t){if(!h.T.length)return!1;var Y=h.G;h.G=SvW(h,t===void 0?!1:t);if(t=Y!==h.G)h.T=[],h.MK=0;return t}; E_=function(h,t){return t>=h.U8()-Rlr(h)}; BY1=function(h,t,Y){t=E_(h,t);Y||t?t&&(h.S=!0):h.S=!1;h.C=h.policy.S===2||h.policy.S===3&&h.S}; POL=function(h,t){t=E_(h,t);h.W!==t&&h.publish("livestatusshift",t);h.W=t}; Rlr=function(h){var t=h.policy.G;h.W||(t=Math.max(t-1,0));return t*k3(h)}; Av6=function(h,t,Y){Y.tQ&&t--;du(Y)&&(t=1);if(Qt(Y)!==0&&(h=g.Sk(h.experiments,"html5_live_chunk_readahead_proxima_override"))){t=h;var L;((L=Y.G)==null?0:lo6(L))&&t++}return t}; k3=function(h){return h.videoData.G?OJ(h.videoData.G)||5:5}; a2=function(h,t){t=Math.max(Math.max(1,Math.ceil(h.policy.W/k3(h))),t);return Math.min(Math.min(8,Math.floor(h.policy.L/k3(h))),t)}; TYr=function(){this.W=0;this.L=Infinity;this.U=!0;this.T=this.G=2;this.S=1;this.X=!1;this.C=10;this.x8=!1;this.Y=1;this.AQ=!1}; fD=function(h){g.O.call(this);this.qe=h;this.G=0;this.T=null;this.U=this.W=0;this.S={};this.Me=this.qe.J();this.X=new g.nE(this.WZ,1E3,this);this.JQ=O_(this,"html5_seek_timeout_delay_ms");this.R0=O_(this,"html5_long_rebuffer_threshold_ms");this.yG=O_(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.X5=O_(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Ne=O_(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.G$=O_(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.AQ=O_(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.x8=new nD(2E4);this.Zx=O_(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.Y8=O_(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.lP=O_(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.gU=O_(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Y=O_(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.L=O_(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.iP=O_(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.C=O_(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.tQ=new nD(g.Sk(this.Me.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.Me.N("html5_report_slow_ads_as_error"));this.MD=new nD(g.Sk(this.Me.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Me.N("html5_skip_slow_buffering_ad"));this.Pq=O_(this,"html5_slow_start_timeout_delay_ms");this.Wm=O_(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.f(this,this.X)}; O_=function(h,t,Y){Y=Y===void 0?null:Y;var L=L===void 0?0:L;return new nD(g.Sk(h.Me.experiments,t)||L,Y?h.Me.N(Y):!1)}; mi$=function(h,t){h.G=t}; $3=function(h,t,Y,L,q,z,V,l){t.test(Y)?(h.x0(q,t,V),t.U||z()):(!t.T||t.W?Y=!1:(Y=(0,g.FH)(),L?t.G||(t.G=Y):t.G=0,z=!L&&Y-t.T>3E4,Y=t.G&&Y-t.G>1E3||z?t.W=!0:!1),Y&&(l=Object.assign({},h.wP(t),l),l.wn=V,l.we=q,l.wsuc=L,h.qe.Pm("workaroundReport",l),L&&(t.reset(),h.S[q]=!1)))}; nD=function(h,t){this.U=t===void 0?!1:t;this.G=this.T=this.S=this.startTimestamp=0;this.W=!1;this.X=Math.ceil(h/1E3)}; iqL=function(h){g.O.call(this);var t=this;this.qe=h;this.Y=this.G=this.loader=this.mediaElement=this.playbackData=null;this.S=0;this.X=this.R0=this.W=null;this.gU=!1;this.G$=0;this.x8=!1;this.timestampOffset=0;this.L=!0;this.Y8=0;this.yG=this.Hq=!1;this.C=0;this.tQ=!1;this.Wm=0;this.Me=this.qe.J();this.videoData=this.qe.getVideoData();this.policy=new Dii;this.AQ=new fD(this.qe);this.MD=this.lP=this.Ne=this.U=this.T=NaN;this.Zx=new g.nE(function(){hM1(t,!1)},2E3); this.Q4=new g.nE(function(){TA(t)}); this.JQ=new g.nE(function(){tB3(t,{})}); this.Pq=NaN;this.X5=new g.nE(function(){var Y=t.Me.XI;Y.G+=1E4/36E5;Y.G-Y.S>1/6&&(wOW(Y),Y.S=Y.G);t.X5.start()},1E4); g.f(this,this.AQ);g.f(this,this.Zx);g.f(this,this.JQ);g.f(this,this.Q4);g.f(this,this.X5)}; Lx1=function(h,t){h.playbackData=t;h.videoData.isLivePlayback&&(h.Y=new $ii(function(){a:{if(h.playbackData&&h.playbackData.G.G){if(os(h.videoData)&&h.loader){var L=h.loader.lH.ID()||0;break a}if(h.videoData.G){L=h.videoData.G.gU;break a}}L=0}return L}),h.G=new x3(h.videoData,h.Me.experiments,function(){return h.wz(!0)})); if(Ah(h.qe)){var Y;(Y=h.videoData.xa)!=null&&Y.JD||(t=gN3(h),t.jO?(F$(h.videoData)&&h.Eo(t.jO,t.startSeconds),h.S=t.startSeconds):t.startSeconds>0&&h.seekTo(t.startSeconds,{EY:"seektimeline_startPlayback",seekSource:15}));h.L=!1}else Y3c(h)||(h.S=h.S||h.videoData.startSeconds||0,h.N("html5_sabr_vod_invalid_start_time_fallback")&&!h.videoData.isLivePlayback&&(t=h.qe.videoData.wz(),h.S>t&&(h.N("html5_sabr_log_invalid_sabr_current_time")&&h.qe.Pm("invalidSabrCmtStart",{rt:h.S,mst:t}),h.S=0)))}; zMb=function(h,t){(h.loader=t)?q3W(h,!0):SP(h)}; VB6=function(h,t){g.fE(h.AQ.X);h.N("html5_exponential_memory_for_sticky")&&(t.state.isPlaying()?g.fE(h.X5):h.X5.stop());if(h.mediaElement)if(t.oldState.state===8&&j0(t.state)&&t.state.isBuffering()){t=h.mediaElement.getCurrentTime();var Y=h.mediaElement.jQ();var L=h.N("manifestless_post_live_ufph")||h.N("manifestless_post_live")?fA(Y,Math.max(t-3.5,0)):fA(Y,t-3.5);if(L>=0&&t>Y.end(L)-1.1&&L+10?(I2(h.qe,h.getCurrentTime()+h.videoData.limitedPlaybackDurationInSeconds),h.yG=!0):h.videoData.isLivePlayback&&h.videoData.endSeconds>0&&(I2(h.qe,h.getCurrentTime()+h.videoData.endSeconds),h.yG=!0))}; lGL=function(h,t){var Y=h.getCurrentTime(),L=h.isAtLiveHead(Y);if(h.Y&&L){var q=h.Y;if(q.G&&!(Y>=q.T&&Y50&&q.T.shift())),q=h.G,BY1(q,Y,t===void 0?!0:t),POL(q,Y),t&&hM1(h,!0));L!==h.Hq&&(t=h.getCurrentTime()-h.MD<=500,Y=h.G$>=1E3,t||Y||(t=h.qe.lI,t.qoe&&(t=t.qoe,Y=g.iz(t.provider), g.D6(t,Y,"lh",[L?"1":"0"])),h.Hq=L,h.G$++,h.MD=h.getCurrentTime()))}; hM1=function(h,t){if(h.G){var Y=h.G;var L=h.getCurrentTime(),q=Y.U8();var z=Y.policy.T;Y.W||(z=Math.max(z-1,0));z*=k3(Y);L>=q-z||!Y.Av()?Y=LY+1&&t0&&l8(h.mediaElement)>0&&(h.T=R2(h,h.T,!1)),t=h.N("html5_pseudogapless_shorts_seek_to_next_start")&&(t==null?void 0:t.seekSource)===60,!h.mediaElement||!CGn(h,t))h.Q4.start(750);else if(!isNaN(h.T)&&isFinite(h.T)&&(t=h.lP-(h.T-h.timestampOffset),!(t===0||Math.abs(t)<.005)))if(t=h.mediaElement.getCurrentTime()-h.T,Math.abs(t)<=h.Y8||Math.abs(t)<.005)MBL(h);else{if(h.videoData.t5)h.videoData.t5= !1;else if(!b6(h.videoData)&&h.T>=h.wz()-.1){h.T=h.wz();h.W.resolve(h.wz());h.Me.pZ()&&h.qe.Pm("setEndedInSeek",{tgt:""+h.T,maxst:""+h.wz()});h.qe.Id();return}try{var Y=h.T-h.timestampOffset;h.mediaElement.seekTo(Y);h.AQ.G=Y;h.lP=Y;h.S=h.T;h.x8=!1}catch(L){}}}; CGn=function(h,t){t=t===void 0?!1:t;if(!h.mediaElement||h.mediaElement.nH()===0||h.mediaElement.hasError())return!1;var Y=h.mediaElement.getCurrentTime()>0;return h.videoData.S&&h.videoData.S.G||h.videoData.isLivePlayback||!h.videoData.WM()?h.T>=0&&!t&&(t=h.mediaElement.k_(),t.length||!Y)?$W(t,h.T-h.timestampOffset):Y:Y}; MBL=function(h){h.W&&(h.W.resolve(h.mediaElement.getCurrentTime()),h.AQ.T=null)}; XlL=function(h,t){h.X&&(h.X.resolve(t),h.qe.ZB(),h.Me.pZ()||UaD(h))&&(t=h.wP(),t["native"]=""+ +h.x8,t.otgt=""+(h.T+h.timestampOffset),h.qe.Pm("seekEnd",t));SP(h)}; SP=function(h){h.T=NaN;h.U=NaN;h.lP=NaN;h.W=null;h.R0=null;h.X=null;h.gU=!1;h.x8=!1;h.Y8=0;h.Zx.stop();h.JQ.stop()}; sMb=function(h,t){var Y=h.mediaElement,L=t.type;switch(L){case "seeking":var q=Y.getCurrentTime()+h.timestampOffset;if(!h.W||h.x8&&q!==h.T){h.W=new VT;h.W.then(function(V){XlL(h,V)},function(){SP(h)}); if(h.videoData.isAd()){var z;gLW({adCpn:h.videoData.clientPlaybackNonce,contentCpn:(z=h.videoData.c6)!=null?z:""},t.G)}h.lP=q;mi$(h.AQ,Y.getCurrentTime());h.seekTo(q,{seekSource:104,EY:"seektimeline_mediaElementEvent"});h.x8=!0}break;case "seeked":MBL(h);break;case "loadedmetadata":Ah(h.qe)||Fx$(h);TA(h);break;case "progress":TA(h);break;case "pause":h.C=h.getCurrentTime()}h.C&&((L==="play"||L==="playing"||L==="timeupdate"||L==="progress")&&h.getCurrentTime()-h.C>10&&(h.N("html5_sky_skip_pause_jump")? h.qe.Pm("skipPauseJump",{evt:L,cmt:h.getCurrentTime(),lpt:h.C}):h.seekTo(h.C,{EY:"pauseJump"})),L!=="pause"&&L!=="play"&&L!=="playing"&&L!=="progress"&&(h.C=0))}; jMD=function(h){return(k$(h.videoData)||!!h.videoData.liveUtcStartSeconds)&&(!!h.videoData.liveUtcStartSeconds||Y3c(h))&&!!h.videoData.G}; Y3c=function(h){return!!h.videoData.startSeconds&&isFinite(h.videoData.startSeconds)&&h.videoData.startSeconds>1E9}; gN3=function(h){var t=0,Y=NaN,L="";if(!h.L)return{startSeconds:t,jO:Y,source:L};h.videoData.AQ?t=h.videoData.Wm:b6(h.videoData)&&(t=Infinity);if(g.Ef(h.videoData))return{startSeconds:t,jO:Y,source:L};h.videoData.startSeconds?(L="ss",t=h.videoData.startSeconds):h.videoData.R7&&(L="stss",t=h.videoData.R7);h.videoData.liveUtcStartSeconds&&(Y=h.videoData.liveUtcStartSeconds);if(isFinite(t)&&(t>h.wz()||th.wz()||Y 0?(L.onesie="0",h.handleError(new g.zk("html5.missingapi",L)),!1):!0}; umL=function(h){var t=$l();TM(t,h);return g.ko(t,enr())}; QML=function(h,t){var Y,L,q,z,V,l,H,w,W,y,X,U,C,d,Q,J,e,v,E,T,hr,B,q1,V6,zn,w3;return g.k(function(ii){if(ii.T==1)return t.fetchType="onesie",Y=IQ$(t,h.getPlayerSize(),h.getVisibilityState()),L=new ny(h,Y),g.K(ii,L.fetch(),2);q=ii.G;z={player_response:q};t.loading=!1;V=h.UY.e7;if(L.uj){l=g.b(L.uj.entries());for(H=l.next();!H.done;H=l.next())w=H.value,W=g.b(w),y=W.next().value,X=W.next().value,U=y,C=X,V.G.set(U,C,180),U===t.videoId&&(d=C.NB(),t.Pn=d);V.zP=L}Q=g.b(L.BV.entries());for(J=Q.next();!J.done;J= Q.next())e=J.value,v=g.b(e),E=v.next().value,T=v.next().value,hr=E,B=T,V.T.set(hr,B,180);g.LI(t,z,!0);if(t.loading||gu(t))return ii.return(Promise.resolve());V.G.removeAll();V.T.removeAll();t.Pn=[];q1={};V6="onesie.response";zn=0;t.errorCode?(V6="auth",q1.ec=t.errorCode,q1.ed=t.errorDetail,q1.es=t.UV||"",zn=2):(q1.successButUnplayable="1",q1.disposed=""+ +t.Ui(),q1.afmts=""+ +/adaptiveFormats/.test(q),q1.cpn=t.clientPlaybackNonce);w3=new g.zk(V6,q1,zn);return ii.return(Promise.reject(w3))})}; daL=function(h,t){var Y,L,q,z,V,l,H,w,W,y,X;return g.k(function(U){switch(U.T){case 1:Y=t.isAd(),L=!Y,q=Y?1:3,z=0;case 2:if(!(z0)){U.eM(5);break}return g.K(U,pm(5E3),6);case 6:V=new g.Ea("Retrying OnePlatform request",{attempt:z}),g.bc(V);case 5:return g.oc(U,7),g.K(U,eM3(h,t),9);case 9:return U.return();case 7:l=g.cW(U);H=NS(l);w=H.errorCode;W=h.J();y=W.N("html5_use_network_error_code_enums")?401:"401";L&&w==="manifest.net.badstatus"&&H.details.rc===y&&(L=!1,z===q-1&&(q+= 1));if(z===q-1)return X=Jbi(Y,H.details),X.details.backend="op",X.details.originec=w,U.return(Promise.reject(X));if(w==="auth"||w==="manifest.net.retryexhausted")return U.return(Promise.reject(H));h.handleError(H);if(Vb(H.severity)){U.eM(4);break}case 3:z++;U.eM(2);break;case 4:return U.return(Promise.reject(Jbi(Y,{backend:"op"})))}})}; eM3=function(h,t){function Y(V6){V6.readyState===2&&h.jE("ps_c")} var L,q,z,V,l,H,w,W,y,X,U,C,d,Q,J,e,v,E,T,hr,B,q1;return g.k(function(V6){switch(V6.T){case 1:t.fetchType="gp";L=h.J();q=g.Up(L,g.Pu(t));if(!q.G){z=q.getValue();V6.eM(2);break}return g.K(V6,q.G,3);case 3:z=V6.G;case 2:return V=z,l=umL(V),H=IQ$(t,h.getPlayerSize(),h.getVisibilityState()),w=g.AZ(pl1),W=g.Pu(t),y=(0,g.FH)(),X=!1,U="empty",C=0,h.jE("psns"),d={jV:Y},g.K(V6,g.r2(l,H,w,void 0,d),4);case 4:Q=V6.G;h.jE("psnr");if(t.Ui())return V6.return();Q?"error"in Q&&Q.error?(X=!0,U="esf:"+Q.error.message, C=Q.error.code):Q.errorMetadata&&(X=!0,U="its",C=Q.errorMetadata.status):X=!0;if(X)return J=0,e=((0,g.FH)()-y).toFixed(),v={},v=L.N("html5_use_network_error_code_enums")?{backend:"op",rc:C,rt:e,reason:U,has_kpt:t.fn?"1":"0",has_mdx_env:t.mdxEnvironment?"1":"0",has_omit_key_flag:g.Ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:L.pageId?"1":"0",has_token:W?"1":"0",has_vvt:t.gU?"1":"0",is_mdx:t.isMdxPlayback?"1":"0",mdx_ctrl:t.qq||"",token_eq:W===g.Pu(t)?"1":"0"}:{backend:"op", rc:""+C,rt:e,reason:U,has_kpt:t.fn?"1":"0",has_mdx_env:t.mdxEnvironment?"1":"0",has_omit_key_flag:g.Ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:L.pageId?"1":"0",has_token:W?"1":"0",has_vvt:t.gU?"1":"0",is_mdx:t.isMdxPlayback?"1":"0",mdx_ctrl:t.qq||"",token_eq:W===g.Pu(t)?"1":"0"},E="manifest.net.connect",C===429?(E="auth",J=2):C>200&&(E="manifest.net.badstatus",C===400&&(J=2)),V6.return(Promise.reject(new g.zk(E,v,J)));t.loading=!1;g.LI(t,{raw_player_response:Q},!0); T=Q;g.AU(t.J())&&T&&T.trackingParams&&TB(T.trackingParams);if(t.errorCode)return hr={ec:t.errorCode,ed:t.errorDetail,es:t.UV||""},V6.return(Promise.reject(new g.zk("auth",hr,2)));if(!t.loading&&!gu(t))return B=t.isAd()?"auth":"manifest.net.retryexhausted",q1=t.isAd()?2:1,V6.return(Promise.reject(new g.zk(B,{successButUnplayable:"1",hasMedia:g.KI(t)?"1":"0"},q1)));g.Z$(V6)}})}; oN1=function(h,t,Y){function L(C){C=NS(C);if(Vb(C.severity))return Promise.reject(C);h.handleError(C);return!1} function q(){return!0} var z,V,l,H,w,W,y,X,U;return g.k(function(C){switch(C.T){case 1:var d=h.J();h.getPlayerSize();h.getVisibilityState();h.isFullscreen();if(t.partnerId===38&&d.playerStyle==="books")d=t.videoId.indexOf(":"),d=g.Xz("//play.google.com/books/volumes/"+t.videoId.slice(0,d)+"/content/media",{aid:t.videoId.slice(d+1),sig:t.WQ});else if(t.partnerId===30&&d.playerStyle==="docs")d=g.Xz("https://docs.google.com/get_video_info",{docid:t.videoId,authuser:t.gD,authkey:t.H1,eurl:d.dP});else if(t.partnerId===33&&d.playerStyle=== "google-live")d=g.Xz("//google-liveplayer.appspot.com/get_video_info",{key:t.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+d.AQ);z=d;l=(V=t.isAd())?1:3;H=0;case 2:if(!(H0)){C.eM(5);break}return g.K(C,pm(5E3),6);case 6:W={playerretry:H,playerretrysrc:Y},V||(W.recover="embedded"),w=PB(z,W);case 5:return g.K(C,vNL(t,w).then(q,L),7);case 7:if(y=C.G)return C.return();H++;C.eM(2);break;case 4:X=V?"auth":"manifest.net.retryexhausted";U=V?2:1;if(!V&&Math.random()< 1E-4)try{g.bc(new g.Ea("b/152131571",btoa(z)))}catch(Q){}return C.return(Promise.reject(new g.zk(X,{backend:"gvi"},U)))}})}; vNL=function(h,t){function Y(Q){return L(Q.xhr)} function L(Q){if(!h.Ui()){Q=Q?Q.status:-1;var J=0,e=((0,g.FH)()-W).toFixed();e=q.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:Q,rt:e}:{backend:"gvi",rc:""+Q,rt:e};var v="manifest.net.connect";Q===429?(v="auth",J=2):Q>200&&(v="manifest.net.badstatus",Q===400&&(J=2));return Promise.reject(new g.zk(v,e,J))}} var q,z,V,l,H,w,W,y,X,U,C,d;return g.k(function(Q){if(Q.T==1){h.fetchType="gvi";q=h.J();var J={};h.iT&&(J.ytrext=h.iT);(l=g.WZ(J)?void 0:J)?(z={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},V=PB(t,{action_display_post:1})):(z={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},V=t);H={};q.sendVisitorIdHeader&&h.visitorData&&(H["X-Goog-Visitor-Id"]=h.visitorData);(w=Wc(q.experiments,"debug_sherlog_username"))&&(H["X-Youtube-Sherlog-Username"]=w);Object.keys(H).length> 0&&(z.headers=H);W=(0,g.FH)();return g.K(Q,Qn(sA,V,z).then(void 0,Y),2)}y=Q.G;if(!y||!y.responseText)return Q.return(L(y));h.loading=!1;X=SR(y.responseText);g.LI(h,X,!0);if(h.errorCode)return U={ec:h.errorCode,ed:h.errorDetail,es:h.UV||""},Q.return(Promise.reject(new g.zk("auth",U,2)));if(!h.loading&&!gu(h))return C=h.isAd()?"auth":"manifest.net.retryexhausted",d=h.isAd()?2:1,Q.return(Promise.reject(new g.zk(C,{successButUnplayable:"1"},d)));g.Z$(Q)})}; Jbi=function(h,t){return new g.zk(h?"auth":"manifest.net.retryexhausted",t,h?2:1)}; hv=function(h,t,Y){Y=Y===void 0?!1:Y;var L,q,z,V;g.k(function(l){if(l.T==1){L=h.J();if(Y&&(!g.lC(L)||S_(t)!=="embedded")||t.h5||S_(t)!=="adunit"&&(g.z4(L)||D4(L)||g.rP(L)||g.ND(L)||g.SI(L)||Hc(L)==="WEB_CREATOR"))return l.return();q=g.Up(L,g.Pu(t));return q.G?g.K(l,q.G,3):(z=q.getValue(),l.eM(2))}l.T!=2&&(z=l.G);V=z;return l.return(KxL(h,t,V))})}; KxL=function(h,t,Y){var L,q,z,V,l;return g.k(function(H){if(H.T==1){g.oc(H,2);L=umL(Y);var w=t.J();g.JG();var W={context:g.H5(t),videoId:t.videoId,racyCheckOk:t.racyCheckOk,contentCheckOk:t.contentCheckOk,autonavState:"STATE_NONE"};S_(t)==="adunit"&&(W.isAdPlayback=!0);w.embedConfig&&(W.serializedThirdPartyEmbedConfig=w.embedConfig);w.oM&&(W.showContentOwnerOnly=!0);t.uU&&(W.showShortsOnly=!0);g.pY(0,141)&&(W.autonavState=g.pY(0,140)?"STATE_OFF":"STATE_ON");if(g.zH(w)){var y=g.pY(0,65);y=y!=null? !y:!1;var X=!!g.GI("yt-player-sticky-caption");W.captionsRequested=y&&X}var U;if(w=(U=w.getWebPlayerContextConfig())==null?void 0:U.encryptedHostFlags)W.playbackContext={encryptedHostFlags:w};q=W;z=g.AZ(aG$);h.jE("wn_s");return g.K(H,g.r2(L,q,z),4)}if(H.T!=2)return V=H.G,h.jE("wn_r"),!V||"error"in V&&V.error||(l=V,g.AU(t.J())&&l.trackingParams&&TB(l.trackingParams),g.LI(t,{raw_watch_next_response:V},!1)),g.Q6(H,0);g.cW(H);g.Z$(H)})}; xar=function(h){h.jE("vir");h.jE("ps_s");d2("vir",void 0,"video_to_ad");var t=cbW(h);t.then(function(){h.jE("virc");d2("virc",void 0,"video_to_ad");h.jE("ps_r");d2("ps_r",void 0,"video_to_ad")},function(){h.jE("virc"); d2("virc",void 0,"video_to_ad")}); return t}; g.gY=function(h,t,Y,L,q,z,V,l,H,w){H=H===void 0?new g.i6(h):H;w=w===void 0?!0:w;g.PD.call(this);var W=this;this.Me=h;this.playerType=t;this.Wq=Y;this.Hg=L;this.getVisibilityState=z;this.visibility=V;this.UY=l;this.videoData=H;this.Ij=w;this.logger=new g.yn("VideoPlayer");this.I7=null;this.tY=new CD;this.KV=null;this.yl=!0;this.Oi=this.loader=null;this.Kg=[];this.Ss=new D8;this.FI=this.LB=null;this.gJ=new D8;this.Q6=null;this.jR=this.Lz=!1;this.Ek=NaN;this.Wt=!1;this.playerState=new g.yT;this.Kt=[]; this.Fi=new g.UF;this.RJ=new q_b(this);this.mediaElement=null;this.o6=new g.nE(this.R2i,15E3,this);this.Z4=this.Vw=!1;this.Jr=NaN;this.Jd=!1;this.nw=0;this.d7=!1;this.LM=NaN;this.n5=new Bh(new Map([["bufferhealth",function(){return NE3(W.XZ)}], ["bandwidth",function(){return W.C7()}], ["networkactivity",function(){return W.Me.schedule.R0}], ["livelatency",function(){return W.isAtLiveHead()&&W.isPlaying()?ENi(W):NaN}], ["rawlivelatency",function(){return ENi(W)}]])); this.x6=0;this.loop=!1;this.playbackRate=1;this.Q5=0;this.XZ=new iqL(this);this.OP=!1;this.ZH=[];this.aZ=this.zv=0;this.gL=this.yn=!1;this.AA=this.FU=0;this.YX=new g.nE(this.T8,0,this);this.Ch=!1;this.Do=null;this.g8M=[this.Fi,this.YX,this.o6,this.n5];this.bG=this.j5=null;this.vx=function(){var y=W.lI;y.provider.Me.NU||y.provider.qe.getVisibilityState()===3||(y.provider.Me.NU=!0);y.So();if(y.T){var X=y.T;X.X&&X.G<0&&X.provider.qe.getVisibilityState()!==3&&x46(X)}y.qoe&&(y=y.qoe,y.JQ&&y.S<0&&y.provider.Me.NU&& C53(y),y.W&&go(y));W.loader&&tv(W);W.Me.Gu&&!W.videoData.backgroundable&&W.mediaElement&&!W.eF()&&(W.isBackground()&&W.mediaElement.uv()?(W.Pm("bgmobile",{suspend:1}),W.k9(!0,!0)):W.isBackground()||iO(W)&&W.Pm("bgmobile",{resume:1}))}; this.zD={ez:function(y){W.ez(y)}, FRe:function(y){W.I7=y}, bge:function(){return W.lI}, zO:function(){return W.Oi}, zS8:function(){return W.aq}, Qbi:function(){return W.Ap}, o2G:function(){}, J:function(){return W.Me}, iL:function(){return W.mediaElement}, GF0:function(y){W.xK(y)}, gSi:function(){return W.Hg}}; this.logger.debug(function(){return"creating, type "+t}); this.Kk=new kGD(this.Me);this.Y3=new FO(this.Me,this.Hg,this);this.W2=new g.pD(this,function(y,X){y!==g.EX("endcr")||g.R(W.playerState,32)||W.Id();q(y,X,W.playerType);if(y===g.EX("transitiondetector")&&(y=W.loader)!=null&&(y=y.Pq)!=null){var U=g.b(v$D(X.id));U.next();U=U.next().value;u$3(y,U,X.start/1E3-y.qe.O3(),ZIW(y.W))}}); g.f(this,this.W2);g.f(this,this.XZ);ktL(this,H);this.videoData.subscribe("dataupdated",this.TaP,this);this.videoData.subscribe("dataloaded",this.Kw,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Pm,this);this.videoData.subscribe("ctmpstr",this.uX,this);!this.lI||this.lI.Ui();this.lI=new g.Jh(new eP(this.videoData,this.Me,this));Y_3(this.vx);this.visibility.subscribe("visibilitystatechange",this.vx);this.aq=new g.nE(this.nW,g.Sk(this.Me.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Ap=new g.nE(this.nW,g.Sk(this.Me.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.II=new g.AS(this.eyG,350,this);g.f(this,this.II)}; ktL=function(h,t){if(h.playerType===2||h.Me.BL)t.Zq=!0;var Y=qnr(t.Cr,t.L4,h.Me.W,h.Me.Y);Y&&(t.adFormat=Y);h.playerType===2&&(t.w0=!0);if(h.isFullscreen()||h.Me.W)Y=g.GI("yt-player-autonavstate"),t.autonavState=Y||(h.Me.W?2:h.videoData.autonavState);t.endSeconds&&t.endSeconds>t.startSeconds&&I2(h,t.endSeconds)}; Oqi=function(h){var t=h.videoData;xar(h).then(void 0,function(Y){h.videoData!==t||t.Ui()||(Y=NS(Y),Y.errorCode==="auth"&&h.videoData.errorDetail?h.Tm(Y.errorCode,2,unescape(h.videoData.errorReason),qS(Y.details),h.videoData.errorDetail,h.videoData.UV||void 0):h.handleError(Y))})}; $a3=function(h){if(!g.R(h.playerState,128))if(h.videoData.isLoaded(),h.logger.debug("finished loading playback data"),h.Kg=g.ul(h.videoData.x8),g.KI(h.videoData)){h.Wq.tick("bpd_s");YY(h).then(function(){h.Wq.tick("bpd_c");if(!h.Ui()){h.Lz&&(h.a4(C_(C_(h.playerState,512),1)),iO(h));var L=h.videoData;L.endSeconds&&L.endSeconds>L.startSeconds&&I2(h,L.endSeconds);h.Ss.finished=!0;L8(h,"dataloaded");h.gJ.qr()&&nNb(h);a8b(h.Y3,h.FI)}}); h.N("html5_log_media_perf_info")&&h.Pm("loudness",{v:h.videoData.Vb.toFixed(3)},!0);var t,Y=(t=h.mediaElement)==null?void 0:t.gP();if(Y&&"disablePictureInPicture"in Y&&h.Me.hj)try{Y.disablePictureInPicture=h.Me.tV&&!h.videoData.backgroundable}catch(L){g.bc(L)}fGL(h)}else L8(h,"dataloaded")}; YY=function(h){qi(h);h.FI=null;var t=nYc(h.Me,h.videoData,h.eF());h.LB=t;h.LB.then(function(Y){TEb(h,Y)},function(Y){h.Ui()||(Y=NS(Y),h.visibility.isBackground()?(zG(h,"vp_none_avail"),h.LB=null,h.Ss.reset()):(h.Ss.finished=!0,h.Tm(Y.errorCode,Y.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",qS(Y.details))))}); return t}; TEb=function(h,t){if(!h.Ui()&&!t.videoData.Ui()){h.logger.debug("finished building playback data");h.FI=t;Lx1(h.XZ,h.FI);if(h.videoData.isLivePlayback){var Y=AbL(h.UY.e7,h.videoData.videoId)||h.loader&&!isNaN(h.loader.Wm);Y=h.N("html5_onesie_live")&&Y;Ah(h)||h.videoData.G$>0&&!os(h.videoData)||Y||h.seekTo(h.wz(),{EY:"videoplayer_playbackData",seekSource:18})}if(h.videoData.S.G){if(aQL(h.videoData)){h.N("html5_sabr_report_missing_url_as_error_terminal")?h.Tm("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", qS({missabrurl:1})):h.handleError(new g.zk("fmt.missing",{missabrurl:"1"},2));return}h.loader?g.bc(Error("Duplicated Loader")):(Y=g.Sk(h.Me.experiments,"html5_onesie_defer_content_loader_ms"))&&h.jm()&&AbL(h.UY.e7,h.videoData.oy)?g.zz(function(){h.Ui()||h.loader||S3$(h)},Y):S3$(h)}else!h.videoData.S.G&&hJ(h.videoData)&&h.L_(new HQ(h.videoData.videoId||"",4)); h.tv();rhp(t).then(function(){var L={};h.eP(L);h.Me.pZ()&&h.N("html5_log_media_perf_info")&&h.Pm("av1Info",L);tv(h)})}}; nNb=function(h){h.Ui();h.logger.debug("try finish readying playback");if(h.gJ.finished)h.logger.debug("already finished readying");else if(h.Ss.finished)if(g.R(h.playerState,128))h.logger.debug("cannot finish readying because of error");else if(h.Kg.length)h.logger.debug(function(){return"cannot finish readying because of pending preroll: "+h.Kg}); else if(h.W2.started||JvW(h.W2),h.U$())h.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{h.loader&&(h.jR=K03(h.loader.timing));h.gJ.finished||(h.gJ.finished=!0);var t=h.N("html5_onesie_live")&&h.loader&&!isNaN(h.loader.Wm);!h.videoData.isLivePlayback||h.videoData.G$>0&&!os(h.videoData)||t||Ah(h)||(h.logger.debug("seek to head for live"),h.seekTo(Infinity,{EY:"videoplayer_readying",seekSource:18}),h.isBackground()&&(h.Z4=!0));CO6(h.lI);h.logger.debug("finished readying playback"); h.publish("playbackready");bW("pl_c",h.Wq.timerName)||(h.Wq.tick("pl_c"),d2("pl_c",void 0,"video_to_ad"));bW("pbr",h.Wq.timerName)||(h.Wq.tick("pbr"),d2("pbr",void 0,"video_to_ad"))}else h.logger.debug("playback data not loaded")}; I2=function(h,t){h.KV&&IGL(h);h.KV=new g.aZ(t*1E3,0x7ffffffffffff);h.KV.namespace="endcr";h.addCueRange(h.KV)}; IGL=function(h){h.removeCueRange(h.KV);h.KV=null}; RMn=function(h,t,Y,L,q){var z=h.lI,V=h.videoData;V.T=Y;var l=g.VW(h);Y=new MPL(V,Y,t,l?l.itag:"",L);h.Me.experiments.I0("html5_refactor_sabr_video_format_selection_logging")?(Y.videoId=q,h.bG=Y):z.qoe&&UUn(z.qoe,Y);q=h.Y3;q.T=0;q.G=0;h.publish("internalvideoformatchange",V,t==="m")}; g.VW=function(h){var t=Ni(h);return Zs(t)||!h.FI?null:g.Mh(h.FI.G.videoInfos,function(Y){return t.W(Y)})}; Ni=function(h){if(h.FI){var t=h.Y3;var Y=h.FI;h=h.K4();var L=j2W(t);if(Zs(L)){if(L=F8L(t,Y).compose(d4D(t,Y)).compose(Q2r(t,Y)).compose(v3r(t,Y.videoData)).compose(K8L(t,Y.videoData,Y)).compose(phL(t,Y)).compose(bDc(t,Y)),Zs(h)||t.N("html5_apply_pbr_cap_for_drm"))L=L.compose(o3n(t,Y))}else t.N("html5_perf_cap_override_sticky")&&(L=L.compose(phL(t,Y))),t.N("html5_ustreamer_cap_override_sticky")&&(L=L.compose(o3n(t,Y)));L=L.compose(bDc(t,Y));t=Y.videoData.mY.compose(L).compose(Y.videoData.XT).compose(h)}else t= tL;return t}; t_D=function(h){var t=h.Y3;h=h.videoData;var Y=v3r(t,h);t.N("html5_disable_client_autonav_cap_for_onesie")||Y.compose(K8L(t,h));return Y}; tv=function(h){if(h.videoData.S&&h.videoData.S.G){var t=Ni(h);h.loader&&vl3(h.loader,t)}}; BEn=function(h){var t;return!!(h.N("html5_native_audio_track_switching")&&g.Hq&&((t=h.videoData.T)==null?0:Jy(t)))}; PGi=function(h){if(!BEn(h))return!1;var t;h=(t=h.mediaElement)==null?void 0:t.audioTracks();return!!(h&&h.length>1)}; Da3=function(h){var t=maL(h);if(t)return h.videoData.getAvailableAudioTracks().find(function(Y){return Y.j4.getName()===t})}; maL=function(h){var t;if(h=(t=h.mediaElement)==null?void 0:t.audioTracks())for(t=0;t0&&(t.fC=Y.IG));t.lZ=Y.qW;t.QP=Bo(L,{},Y.S||void 0,CI(Y));t.yG=Uf(Y)&&(g.rP(L)||g.ND(L));F$(Y)&&(t.X=!0,t.BL=L.N("html5_estimate_live_partial_slice_duration"),t.R7=!0,L.N("html5_sabr_report_partial_segment_estimated_duration")&& (t.JA=!0),t.G=!0,t.PL=L.N("html5_sabr_enable_live_clock_offset"),t.xa=L.N("html5_disable_client_resume_policy_for_sabr"),t.CJ=L.N("html5_trigger_loader_when_idle_network"),t.Dw=L.N("html5_sabr_parse_live_metadata_playback_boundaries"),t.An=L.N("html5_consume_onesie_next_request_policy_for_sabr"),t.j8=L.N("html5_sabr_report_next_ad_break_time"),t.aM=L.N("html5_log_high_res_buffer_timeline")&&L.pZ(),t.YU=L.N("html5_remove_stuck_slices_beyond_max_buffer_limits"),t.xQ=L.N("html5_gapless_sabr_btl_last_slice")&& X$(Y),t.mY=L.N("html5_reset_last_appended_slice_on_seek")&&X$(Y),os(Y)?(t.kU=!0,t.GV=L.N("html5_disable_variability_tracker_for_live"),t.JQ=!0,L.N("html5_simplified_backup_timeout_sabr_live")&&(t.hV=!0,t.Y1=t.Bw)):t.dP=L.N("html5_probe_request_on_sabr_request_progress"),t.OZ=L.N("html5_serve_start_seconds_seek_for_post_live_sabr"),t.sX=L.N("html5_flush_index_on_updated_timestamp_offset"),t.L=F$(Y),t.iB=L.N("html5_ignore_partial_segment_from_live_readahead"),L.N("html5_include_partial_segment_for_jumbo_ll")&& du(Y)&&(t.iB=!1),t.DY=L.N("html5_use_non_active_broadcast_for_post_live"),t.gU=L.N("html5_use_centralized_player_time"),t.qW=L.N("html5_consume_onesie_sabr_seek"),t.x8=L.N("html5_enable_sabr_seek_loader_refactor"),t.hM=L.N("html5_update_segment_start_time_from_media_header"),Y.enableServerStitchedDai&&(t.T=!0,t.cR=L.N("html5_reset_server_stitch_state_for_non_sabr_seek"),t.FJ=L.N("html5_remove_ssdai_append_pause")&&!Y.JJ(),t.XI=L.N("html5_ssdai_log_ssevt_in_loader")||L.N("html5_ssdai_log_ssevt_in_loader_200ms")|| L.N("html5_ssdai_log_ssevt_in_loader_timers")||L.N("html5_ssdai_log_ssevt_in_loader_cuerange"),L.N("html5_ssdai_log_ssevt_in_loader_timers")?t.tQ=1:L.N("html5_ssdai_log_ssevt_in_loader_200ms")?t.tQ=3:L.N("html5_ssdai_log_ssevt_in_loader_cuerange")&&(t.tQ=0)),t.Xo=L.pZ()||Y.JJ());t.Vb=g.vKn(Y);am(L.X,xQ.BITRATE)&&(t.Lb=NaN);if(l=g.Sk(L.experiments,"html5_request_size_max_kb"))t.Ne=l*1024;L.X.S?t.dS="; "+xQ.EXPERIMENTAL.name+"=allowed":L.N("html5_enable_cobalt_tunnel_mode")&&g.xT()&&(l=xQ.TUNNELMODE, t.dS="; "+l.name+"="+l.valid);Y=Y.serverPlaybackStartConfig;(Y==null?0:Y.enable)&&(Y==null?0:Y.playbackStartPolicy)&&(t.uM=!0,f1(t,Y.playbackStartPolicy,2));Y=h46(h);h.tY.removeAll();a:{l=h.UY.e7;if(L=h.videoData.videoId)if(q=l.G.get(L)){l.G.remove(L);l=q;break a}l=void 0}h.loader=new g.zA(h,h.Me.schedule,t,h.videoData.G,h.videoData.S,Ni(h),Y,h.videoData.enableServerStitchedDai,l,h.videoData.L);t=h.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&h.videoData.isLivePlayback&&h.jm()?!0: h.Lz&&g.z4(h.Me)&&h.videoData.isLivePlayback;h.loader.initialize(h.getCurrentTime(),Ni(h),t);h.videoData.probeUrl&&(h.loader.iP=h.videoData.probeUrl);if(h.Kg.length||h.Lz)h.videoData.cotn||lO(h,!1);zMb(h.XZ,h.loader);h.Do&&(LhL(h.loader,new g.V9(h.Do)),h.Pm("sdai",{sdl:1}));g.g8(h.videoData)&&(h=h.loader,h.policy.JH=h.policy.eg)}; qi=function(h){h.loader&&(h.loader.dispose(),h.loader=null,zMb(h.XZ,null));h.nN()?tUD(h):h.pg()}; tUD=function(h){if(h.Oi)if(h.logger.debug("release media source"),h.cN(),h.Oi.X)try{h.Me.pZ()&&h.Pm("rms",{l:"vprms",sr:h.nN(),rs:qO(h.Oi)});h.Oi.clear();var t;(t=h.mediaElement)!=null&&(t.T=h.Oi);h.Oi=null}catch(Y){t=new g.Ea("Error while clearing Media Source in VideoPlayer: "+Y.name+", "+Y.message),t=NS(t),h.handleError(t),h.pg()}else h.pg()}; iBL=function(h,t){t=t===void 0?!1:t;if(h.Oi)return h.Oi.S;h.logger.debug("update media source");a:{t=t===void 0?!1:t;try{g.xT()&&h.videoData.Jf()&&fcL(h.mediaElement);var Y=h.mediaElement.zO(h.FC(),h.Hy())}catch(q){if(HDD(h.RJ,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",q);h.Tm("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}h.KT(Y,!1,!1,t)}var L;return((L=h.zO())==null?void 0:L.S)||null}; gZ3=function(h,t){t=t===void 0?!1:t;if(h.loader){h.videoData.enableServerStitchedDai&&HyL(h.loader);var Y=h.getCurrentTime()-h.O3();h.loader.seek(Y,{A8:t}).wS(function(){})}else S3$(h)}; LZn=function(h,t,Y,L){Y=Y===void 0?!1:Y;L=L===void 0?!1:L;if(h.Oi&&(!t||h.Oi===t)){h.logger.debug("media source opened");var q=h.getDuration();!q&&os(h.videoData)&&(q=25200);if(h.Oi.isView){var z=q;h.logger.debug(function(){return"Set media source duration to "+z+", video duration "+q}); z>h.Oi.getDuration()&&Yq6(h,z)}else Yq6(h,q);eb3(h.loader,h.Oi,Y,L);h.publish("mediasourceattached")}}; Yq6=function(h,t){if(h.Oi){h.Oi.rd(t);var Y;(Y=h.loader)!=null&&Y.policy.gU&&(Y.U=t)}}; ahb=function(h,t){RMn(h,t.reason,t.G.info,t.token,t.videoId)}; L8=function(h,t){h.publish("internalvideodatachange",t===void 0?"dataupdated":t,h.videoData)}; qqW=function(h){for(var t=g.b("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),Y=t.next();!Y.done;Y=t.next())h.Fi.V(h.mediaElement,Y.value,h.xK,h);h.Me.M3&&h.mediaElement.UZ()&&(h.Fi.V(h.mediaElement,"webkitplaybacktargetavailabilitychanged",h.Q0_,h),h.Fi.V(h.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",h.E8z,h))}; VUL=function(h){g.lZ(h.Ek);z4L(h)||(h.Ek=g.VR(function(){return z4L(h)},100))}; z4L=function(h){var t=h.mediaElement;t&&h.Vw&&!h.videoData.R0&&!bW("vfp",h.Wq.timerName)&&t.nH()>=2&&!t.isEnded()&&S2(t.jQ())&&h.Wq.tick("vfp");return(t=h.mediaElement)&&!h.videoData.R0&&t.getDuration()>0&&(t.isPaused()&&t.nH()>=2&&S2(t.jQ())&&(bW("pbp",h.Wq.timerName)||h.Wq.tick("pbp"),!h.videoData.MS||h.Wt||t.isSeeking()||(h.Wt=!0,h.publish("onPlaybackPauseAtStart"))),t=t.getCurrentTime(),vh(h.Kk,t))?(h.CB(),!0):!1}; lIn=function(h){h.lI.O9();if(b6(h.videoData)&&Date.now()>h.Q5+6283){if(!(!h.isAtLiveHead()||h.videoData.G&&xw(h.videoData.G))){var t=h.lI;if(t.qoe){t=t.qoe;var Y=t.provider.qe.py(),L=g.iz(t.provider);VHi(t,L,Y);Y=Y.S;isNaN(Y)||g.D6(t,L,"e2el",[Y.toFixed(3)])}}h.N("html5_alc_live_log_rawlat")?(t=h.videoData,t=g.LV(t.J())?!0:g.LM(t.J())?t.drmProduct==="6":!1):t=g.LV(h.Me);L=h.N("html5_always_log_rawlat");(t||L)&&h.Pm("rawlat",{l:m8(h.n5,"rawlivelatency").toFixed(3)});h.Q5=Date.now()}h.videoData.T&& Jy(h.videoData.T)&&(t=h.kA())&&t.videoHeight!==h.aZ&&(h.aZ=t.videoHeight,RMn(h,"a",NWD(h,h.videoData.JQ)))}; NWD=function(h,t){if(t.G.video.quality==="auto"&&Jy(t.getInfo())&&h.videoData.m$)for(var Y=g.b(h.videoData.m$),L=Y.next();!L.done;L=Y.next())if(L=L.value,L.getHeight()===h.aZ&&L.G.video.quality!=="auto")return L.getInfo();return t.getInfo()}; ENi=function(h){if(!b6(h.videoData))return NaN;var t=0;h.loader&&h.videoData.G&&(t=os(h.videoData)?h.loader.lH.ID()||0:h.videoData.G.gU);return(0,g.FH)()/1E3-h.a7()-t}; wA1=function(h){h.mediaElement&&h.mediaElement.eF()&&(h.LM=(0,g.FH)());h.Me.PA?g.zz(function(){HBL(h)},0):HBL(h)}; HBL=function(h){var t;if((t=h.Oi)==null||!t.QI()){if(h.mediaElement)try{h.Q6=h.mediaElement.playVideo()}catch(L){zG(h,"err."+L)}if(h.Q6){var Y=h.Q6;Y.then(void 0,function(L){h.logger.debug(function(){return"playMediaElement failed: "+L}); if(!g.R(h.playerState,4)&&!g.R(h.playerState,256)&&h.Q6===Y)if(L&&L.name==="AbortError"&&L.message&&L.message.includes("load"))h.logger.debug(function(){return"ignore play media element failure: "+L.message}); else{var q="promise";L&&L.name&&(q+=";m."+L.name);zG(h,q);h.OP=!0;h.videoData.mK=!0}})}}}; zG=function(h,t){g.R(h.playerState,128)||(h.a4(Fr(h.playerState,1028,9)),h.Pm("dompaused",{r:t}),h.publish("onAutoplayBlocked"))}; iO=function(h,t){t=t===void 0?!1:t;if(!h.mediaElement||!h.videoData.S)return!1;var Y=t;Y=Y===void 0?!1:Y;var L=null;var q;if((q=h.videoData.S)==null?0:q.G){L=iBL(h,Y);var z;(z=h.loader)==null||z.resume()}else qi(h),h.videoData.JQ&&(L=h.videoData.JQ.k5());q=h.mediaElement.uv();Y=!1;q&&q.equals(L)||(WZp(h,L),Y=!0);g.R(h.playerState,2)||(L=h.XZ,t=t===void 0?!1:t,L.X||!(L.S>0)||L.mediaElement&&L.mediaElement.getCurrentTime()>0||(t={EY:"seektimeline_resumeTime",A8:t},L.videoData.R0||(t.seekSource=15), L.seekTo(L.S,t)));a:{t=Y;if(F$(h.videoData)){if(!h.videoData.WM())break a}else if(!g.e_(h.videoData))break a;if(h.mediaElement)if((L=h.videoData.X)&&h.mediaElement.UZ()){q=h.mediaElement.gP();if(h.I7)if(q!==h.I7.element)Hg(h);else if(t&&L.flavor==="fairplay"&&!EA())Hg(h);else break a;if(h.N("html5_report_error_for_unsupported_tvos_widevine")&&EA()&&L.flavor==="widevine")t=h.N("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",h.Tm("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", t);else{h.I7=new RBn(q,h.videoData,h.Me);h.I7.subscribe("licenseerror",h.wg,h);h.I7.subscribe("qualitychange",h.u6_,h);h.I7.subscribe("heartbeatparams",h.MR,h);h.I7.subscribe("keystatuseschange",h.ez,h);h.I7.subscribe("ctmp",h.Pm,h);t=g.b(h.tY.keys);for(L=t.next();!L.done;L=t.next())L=h.tY.get(L.value),h.I7.Of(L);h.N("html5_eme_loader_sync")||h.tY.removeAll()}}else t=h.N("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",h.Tm("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",t)}return Y}; WZp=function(h,t){h.Wq.tick("vta");d2("vta",void 0,"video_to_ad");h.getCurrentTime()>0&&HqD(h.XZ,h.getCurrentTime());h.mediaElement.activate(t);h.Oi&&Iz(4);!h.videoData.R0&&h.playerState.isOrWillBePlaying()&&h.o6.start();if(BEn(h)){var Y;if(t=(Y=h.mediaElement)==null?void 0:Y.audioTracks())t.onchange=function(){h.publish("internalaudioformatchange",h.videoData,!0)}}}; Hg=function(h){h.I7&&(h.I7.dispose(),h.I7=null)}; yCD=function(h){var t=t===void 0?!1:t;h.logger.debug("reattachVideoSource");h.mediaElement&&(h.Oi?(Hg(h),h.pg(),iBL(h,t)):(h.videoData.JQ&&h.videoData.JQ.US(),h.mediaElement.stopVideo()),h.playVideo())}; XAp=function(h,t){h.Me.N("html5_log_rebuffer_reason")&&(t={r:t,lact:X2()},h.mediaElement&&(t.bh=Hs(h.mediaElement)),h.Pm("bufreason",t))}; U3L=function(h,t){if(h.Me.pZ()&&h.mediaElement){var Y=h.mediaElement.wP();Y.omt=(h.mediaElement.getCurrentTime()+h.O3()).toFixed(3);Y.ps=h.playerState.state.toString(16);Y.rt=(g.iz(h.lI.provider)*1E3).toFixed();Y.e=t;h.ZH[h.zv++%5]=Y}try{if(t==="timeupdate"||t==="progress")return}catch(L){}h.logger.debug(function(){return"video element event "+t})}; C2$=function(h){if(h.Me.pZ()){h.ZH.sort(function(L,q){return+L.rt-+q.rt}); for(var t=g.b(h.ZH),Y=t.next();!Y.done;Y=t.next())Y=Y.value,h.Pm("vpe",Object.assign({t:Y.rt},Y));h.ZH=[];h.zv=0}}; MU1=function(h){if(g.Ki("cobalt")&&g.Ki("nintendo switch")){var t=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;h.Pm("nxdock",{d:t})}}; lO=function(h,t){var Y;(Y=h.loader)==null||GML(Y,t)}; fGL=function(h){qU(h.videoData,"html5_set_debugging_opt_in")&&(h=g.JG(),g.pY(0,183)||(KY(183,!0),h.save()))}; wib=function(h,t){h.UY.RT()||(h.Pm("sgap",{f:t}),h.UY.clearQueue(!1,t==="pe"))}; Ah=function(h){return h.N("html5_disable_video_player_initiated_seeks")&&F$(h.videoData)}; FZ$=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);W5(this.api,"isLifaAdPlaying",function(){return t.api.isLifaAdPlaying()}); this.events.V(h,"serverstitchedvideochange",function(){var Y;(Y=t.api.getVideoData())!=null&&Y.JJ()&&(t.api.isLifaAdPlaying()?(t.playbackRate=t.api.getPlaybackRate(),t.api.setPlaybackRate(1)):t.api.setPlaybackRate(t.playbackRate))}); this.playbackRate=1}; wY=function(h){NN.call(this,"Loop",g.U$.dT);this.K=h;var t=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:eLD();this.setIcon(t);this.subscribe("select",this.T,this);h.createClientVe(this.element,this,28661);this.V(h,"settingsMenuVisibilityChanged",this.G);this.listen("click",this.logClick);this.V(h,"onLoopChange",this.onLoopChange);l4(this,h.getLoopVideo());h.Q7().Qb(this)}; sx3=function(h){i4.call(this,h);var t=this;h.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new wY(t.api),g.f(t,t.menuItem))}); h.addEventListener("videodatachange",function(Y,L){Y=t.api.getPresentingPlayerType()===2;var q;(q=t.menuItem)==null||q.hC(!L.isLivePlayback&&!Y)})}; jxL=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);W5(this.api,"seekToChapterWithAnimation",function(Y){t.seekToChapterWithAnimation(Y)}); W5(this.api,"seekToTimeWithAnimation",function(Y,L){t.seekToTimeWithAnimation(Y,L)}); W5(this.api,"renderChapterSeekingAnimation",function(Y,L,q){t.api.renderChapterSeekingAnimation(Y,L,q)}); W5(this.api,"setMacroMarkers",function(Y){t.setMacroMarkers(h,Y)}); W5(this.api,"changeMarkerVisibility",function(Y,L,q){t.changeMarkerVisibility(Y,L,q)}); W5(this.api,"isSameMarkerTypeVisible",function(Y){return t.isSameMarkerTypeVisible(Y)})}; ZB6=function(h,t,Y){var L=h.api.getCurrentTime()*1E30&&q>0&&(Y.width+=q,g.$9(t.element,"width",Y.width+"px")));h.size=Y}}; g.cg=function(h,t){var Y=h.G[h.G.length-1];Y!==t&&(h.G.push(t),R41(h,Y,t))}; g.uO=function(h){if(!(h.G.length<=1)){var t=h.G.pop(),Y=h.G[0];h.G=[Y];R41(h,t,Y,!0)}}; R41=function(h,t,Y,L){BW6(h);t&&(t.unsubscribe("size-change",h.iX,h),t.unsubscribe("back",h.LL,h));Y.subscribe("size-change",h.iX,h);Y.subscribe("back",h.LL,h);if(h.nZ){g.mS(Y.element,L?"ytp-panel-animate-back":"ytp-panel-animate-forward");Y.zz(h.element);Y.focus();h.element.scrollLeft=0;h.element.scrollTop=0;var q=h.size;IIn(h);g.hu(h.element,q);h.U=new g.nE(function(){P2L(h,t,Y,L)},20,h); h.U.start()}else Y.zz(h.element),t&&t.detach()}; P2L=function(h,t,Y,L){h.U.dispose();h.U=null;g.mS(h.element,"ytp-popup-animating");L?(g.mS(t.element,"ytp-panel-animate-forward"),g.hp(Y.element,"ytp-panel-animate-back")):(g.mS(t.element,"ytp-panel-animate-back"),g.hp(Y.element,"ytp-panel-animate-forward"));g.hu(h.element,h.size);h.C=new g.nE(function(){g.hp(h.element,"ytp-popup-animating");t.detach();g.tp(t.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);h.C.dispose();h.C=null},250,h); h.C.start()}; BW6=function(h){h.U&&g.$4(h.U);h.C&&g.$4(h.C)}; eo=function(h){g.rY.call(this,h,"ytp-shopping-product-menu");this.MU=new g.GG(this.K);g.f(this,this.MU);this.hide();g.cg(this,this.MU);g.kl(this.K,this.element,4)}; D3$=function(h,t,Y){var L,q=t==null?void 0:(L=t.text)==null?void 0:L.simpleText;q&&(Y=m3L(h,Y,q,t==null?void 0:t.icon,t==null?void 0:t.secondaryIcon),t.navigationEndpoint&&Y.listen("click",function(){h.K.jM("innertubeCommand",t.navigationEndpoint);h.hide()},h))}; hyr=function(h,t,Y){var L,q=t==null?void 0:(L=t.text)==null?void 0:L.simpleText;q&&m3L(h,Y,q,t==null?void 0:t.icon).listen("click",function(){var z;(t==null?void 0:(z=t.icon)==null?void 0:z.iconType)==="HIDE"?h.K.publish("featuredproductdismissed"):t.serviceEndpoint&&h.K.jM("innertubeCommand",t.serviceEndpoint);h.hide()},h)}; m3L=function(h,t,Y,L,q){t=new g.mM(g.Dh({},[],!1,!!q),t,Y);q&&t.updateValue("secondaryIcon",tXL(q));t.setIcon(tXL(L));g.f(h,t);h.MU.Qb(t,!0);return t}; tXL=function(h){if(!h)return null;switch(h.iconType){case "ACCOUNT_CIRCLE":return{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Mqp();case "HIDE":return{Z:"svg",j:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"g",B:[{Z:"path",j:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return US()}}; Jv=function(h){oq.call(this,h,!1,!0);this.isCounterfactual=this.T=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.I({Z:"button",Ei:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.f(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.I({Z:"img",D:"ytp-suggested-action-badge-img",j:{src:"{{url}}"}}); this.thumbnailImage.hide();g.f(this,this.thumbnailImage);this.thumbnailIcon=new g.I({Z:"div",D:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.f(this,this.thumbnailIcon);this.banner=new g.I({Z:"a",D:"ytp-suggested-action-container",B:[this.thumbnailImage,this.thumbnailIcon,{Z:"div",D:"ytp-suggested-action-details",B:[{Z:"text",D:"ytp-suggested-action-title",o0:"{{title}}"},{Z:"text",D:"ytp-suggested-action-subtitle",o0:"{{subtitle}}"},{Z:"text",D:"ytp-suggested-action-metadata-text", o0:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.f(this,this.banner);this.banner.zz(this.S.element);this.V(this.K,"videodatachange",this.onVideoDataChange);this.V(this.K,g.EX("suggested_action_view_model"),this.L_e);this.V(this.K,g.kO("suggested_action_view_model"),this.q3m);this.V(this.overflowButton.element,"click",this.aQ);this.V(h,"featuredproductdismissed",this.fS);this.K.createServerVe(this.banner.element,this.banner,!0)}; ie1=function(h){h.isInitialized&&(h.enabled=h.isVisible,h.x8=h.isVisible,bO(h),h.tH(),h.thumbnailImage.hC(h.isVisible),h.shouldHideDismissButton||h.dismissButton.hC(h.isVisible),h.shouldShowOverflowButton&&h.overflowButton.hC(h.isVisible))}; p8=function(){Jv.apply(this,arguments)}; geD=function(h){i4.call(this,h);this.G=new p8(this.api);g.f(this,this.G);g.kl(this.api,this.G.element,4)}; vg=function(h){i4.call(this,h);var t=this;this.G=!0;var Y=new g.UF(h);g.f(this,Y);Y.V(h,"internalaudioformatchange",function(L,q){YdL(t,L,q)}); Y.V(h,"videoplayerreset",function(){LH3(t)}); Y.V(h,"videodatachange",function(L,q){t.onVideoDataChange(L,q)})}; YdL=function(h,t,Y){if(Y){var L="";qdc(h,t)&&(L=t,h.api.J().yG=t);if(L&&zy$(h,L)){yEb(h.api,L);var q;dx(CM(h.api.J(),(q=h.api.getVideoData())==null?void 0:g.Pu(q)),function(z){VXb(h,L,z)})}}}; LH3=function(h){var t;if((t=W8())==null?0:t.size){var Y;dx(CM(h.api.J(),(Y=h.api.getVideoData())==null?void 0:g.Pu(Y)),function(L){(L=NJr(L))&&zy$(h,L)&&(h.api.J().yG=L)})}}; VXb=function(h,t,Y){NJr(Y)!==t&&(ltn([{settingItemId:K8(Y),settingOptionValue:{stringValue:t}}]),dx(h.D3(),function(L){CS6(L,K8(Y),{stringValue:t})}))}; HeL=function(h,t){GB(dx(dx(h.D3(),function(Y){return X3L(Y,[K8(t)])}),function(Y){if(Y){Y=g.b(Y); for(var L=Y.next();!L.done;L=Y.next()){var q=L.value;L=q.key;q=q.value;L&&q&&(ltn([{settingItemId:L,settingOptionValue:q}]),LH3(h))}}}),function(){h.G=!0})}; qdc=function(h,t){h=h.api.getAvailableAudioTracks();h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Y.getLanguageInfo().getId()===t)return Y;return null}; NJr=function(h){h=K8(h);var t=W8();h=t?t.get(h):void 0;return h&&h.stringValue?h.stringValue:""}; K8=function(h){var t=(484).toString();h&&(t=(483).toString());return t}; zy$=function(h,t){var Y;return t.split(".")[0]!==""&&((Y=h.api.getVideoData())==null?void 0:!DK(Y))}; ltn=function(h){var t=W8();t||(t=new Map);h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value,t.set(Y.settingItemId,Y.settingOptionValue);t=JSON.stringify(Object.fromEntries(t));g.dK("yt-player-user-settings",t,2592E3)}; g.aq=function(h,t,Y,L,q,z,V){g.mM.call(this,g.Dh({"aria-haspopup":"true"}),t,h);this.Rm=L;this.Y=!1;this.S=null;this.options={};this.T=new g.GG(Y,void 0,h,q,z,V);g.f(this,this.T);this.listen("keydown",this.A9);this.listen("click",this.open)}; wrL=function(h){if(h.S){var t=h.options[h.S];t.element.getAttribute("aria-checked");t.element.setAttribute("aria-checked","false");h.S=null}}; WHL=function(h,t){g.aq.call(this,"Sleep timer",g.U$.SLEEP_TIMER,h,t);this.K=h;this.L={};this.U=this.Vf("Off");this.C=this.G="";h.N("web_settings_menu_icons")&&(t=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(t)); this.W=new g.I({Z:"div",Ei:["ytp-menuitem-label-wrapper"],B:[{Z:"div",o0:"End of video"},{Z:"div",Ei:["ytp-menuitem-sublabel"],o0:"{{content}}"}]});g.f(this,this.W);this.listen("click",this.onClick);this.V(h,"videodatachange",this.onVideoDataChange);this.V(h,"presentingplayerstatechange",this.Hm);this.V(h,"settingsMenuVisibilityChanged",this.P$);h.createClientVe(this.element,this,218889);this.Hm();this.K.jM("onSleepTimerFeatureAvailable")}; y$6=function(h){var t="Off 10 15 20 30 45 60".split(" "),Y;((Y=h.K.getVideoData())==null?0:Y.isLivePlayback)||t.push("End of video");Y=h.K.getPlaylist();var L;Y&&((L=Y.listId)==null?void 0:L.type)!=="RD"&&t.push("End of playlist");h.AS(g.CQ(t,h.Vf));h.L=g.P1(t,h.Vf,h);t=h.Vf("End of video");h.options[t]&&g.P5(h.options[t],h.W)}; Xrc=function(h,t){var Y=h.L[t],L=Y==="End of video"||Y==="End of playlist";Y==="Off"&&(h.G="");h.K.getPlayerState()!==0&&h.K.getPlayerState()!==5||!L?(h.U=t,g.aq.prototype.AP.call(h,t),h.hP(t),h.K.jM("onSleepTimerSettingsChanged",Y)):h.K.jM("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; xY=function(h){i4.call(this,h);var t=this;h.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new WHL(t.api,t.api.Q7()),g.f(t,t.menuItem))}); h.addEventListener("openSettingsMenuItem",function(Y){if(Y==="menu_item_sleep_timer"){if(!t.menuItem){var L;(L=t.api.Q7())==null||L.rz()}t.menuItem.open()}}); W5(h,"resetSleepTimerMenuSettings",function(){t.resetSleepTimerMenuSettings()}); W5(h,"setSleepTimerTimeLeft",function(Y){t.setSleepTimerTimeLeft(Y)}); W5(h,"setVideoTimeLeft",function(Y){t.setVideoTimeLeft(Y)})}; UsL=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"onSnackbarMessage",function(Y){switch(Y){case 1:Y=t.api.getPlayerStateObject(),Y.isBuffering()&&(t.api.N("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.R(Y,8)&&g.R(Y,16))&&t.api.jM("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.kY=function(h,t,Y,L,q){t=t===void 0?!1:t;L=L===void 0?!1:L;q=q===void 0?!1:q;g.PD.call(this);this.L=q;this.C=!1;this.W=new sa(this);this.X=this.U=null;this.S=this.T=!1;g.f(this,this.W);this.target=h;this.G=t;this.Y=Y||h;this.C=L;t&&(g.lI&&this.target.setAttribute("draggable","true"),q||(this.target.style.touchAction="none"));Ev(this)}; Ov=function(h){g.ZZ(h.W,!h.G)}; Ev=function(h){h.X=null;h.U=null;h.V(n8("over"),h.QO);h.V("touchstart",h.Nc);h.G&&h.V(n8("down"),h.o8P)}; CKL=function(h,t){for(var Y=0;YW.start&&Y>=5;d+=J}q=d.substr(0,4)+" "+d.substr(4,4)+" "+d.substr(8,4)+" "+(d.substr(12,4)+" "+d.substr(16,4))}else q="";V={video_id_and_cpn:String(t.videoId)+" / "+q,codecs:"",dims_and_frames:"",bandwidth_kbps:V.toFixed(0)+" Kbps",buffer_health_seconds:H.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:w?"":"display:none",drm:w,debug_info:Y,extra_debug_info:"",bandwidth_style:X,network_activity_style:X,network_activity_bytes:l.toFixed(0)+" KB",shader_info:y,shader_info_style:y?"":"display:none",playback_categories:""};l=L.clientWidth+"x"+L.clientHeight+(W>1?"*"+W.toFixed(2):"");H="-";z.totalVideoFrames&&(H=(z.droppedVideoFrames||0)+" dropped of "+z.totalVideoFrames);V.dims_and_frames=l+" / "+H;h=h.getVolume();l=J_b(t);var v;if((v=t.W)==null?0:v.audio.T)v= "VB";else{var E;v=((E=t.W)==null?0:E.audio.G)?"DRC":Math.round(h*l)+"%"}E=Math.round(h)+"% / "+v;v=t.Vb.toFixed(1);isFinite(Number(v))&&(E+=" (content loudness "+v+"dB)");V.volume=E;V.resolution=L.videoWidth+"x"+L.videoHeight;if(L=t.T){if(E=L.video)v=E.fps,v>1&&(V.resolution+="@"+v),(v=z.Rl)&&v.video&&(V.resolution+=" / "+v.video.width+"x"+v.video.height,v.video.fps>1&&(V.resolution+="@"+v.video.fps)),V.codecs=be3(L),!t.W||L.audio&&L.video?L.DF&&(V.codecs+=" / "+L.DF+"A"):V.codecs+=" / "+be3(t.W), E.G||E.primaries?(v=E.G||"unknown",v==="smpte2084"?v+=" (PQ)":v==="arib-std-b67"&&(v+=" (HLG)"),V.color=v+" / "+(E.primaries||"unknown"),V.color_style=""):V.color_style="display:none";if(L.debugInfo)for(V.fmt_debug_info="",L=g.b(L.debugInfo),E=L.next();!E.done;E=L.next())E=E.value,V.fmt_debug_info+=E.label+":"+E.text+" ";V.fmt_debug_info_style=V.fmt_debug_info&&V.fmt_debug_info.length>0?"":"display:none"}L=t.isLivePlayback;E=t.f6;V.live_mode_style=L||E?"":"display:none";V.live_latency_style=L?"": "display:none";if(E)V.live_mode="Post-Live"+(os(t)?" Manifestless":"");else if(L){E=z.Cv;V.live_latency_secs=E.toFixed(2)+"s";L=os(t)?"Manifestless, ":"";t.AQ&&(L+="Windowed, ");v="Uncertain";if(E>=0&&E<120)if(t.latencyClass&&t.latencyClass!=="UNKNOWN")switch(t.latencyClass){case "NORMAL":v="Optimized for Normal Latency";break;case "LOW":v="Optimized for Low Latency";break;case "ULTRALOW":v="Optimized for Ultra Low Latency";break;default:v="Unknown Latency Setting"}else v=t.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";L+=v;(E=z.Ec)&&(L+=", seq "+E.sequence);V.live_mode=L}!z.isGapless||X$(t)&&z.RT||(V.playback_categories+="Gapless ");V.playback_categories_style=V.playback_categories?"":"display:none";V.bandwidth_samples=z.vO;V.network_activity_samples=z.RI;V.live_latency_samples=z.Ox;V.buffer_health_samples=z.MK;z=g.g8(t);if(t.cotn||z)V.cotn_and_local_media=(t.cotn?t.cotn:"null")+" / "+z;V.cotn_and_local_media_style=V.cotn_and_local_media?"":"display:none"; qU(t,"web_player_release_debug")?(V.release_name=N[68],V.release_style=""):V.release_style="display:none";V.debug_info&&U.length>0&&V.debug_info.length+U.length<=60?V.debug_info+=" "+U:V.extra_debug_info=U;V.extra_debug_info_style=V.extra_debug_info&&V.extra_debug_info.length>0?"":"display:none";return V}; be3=function(h){var t=/codecs="([^"]*)"/.exec(h.mimeType);return t&&t[1]?t[1]+" ("+h.itag+")":h.itag}; Rq=function(h,t,Y,L,q){g.I.call(this,{Z:"div",D:"ytp-horizonchart"});this.C=t;this.sampleCount=Y;this.W=L;this.U=q;this.index=0;this.heightPx=-1;this.S=this.T=null;this.G=Math.round(h/Y);this.element.style.width=this.G*this.sampleCount+"px";this.element.style.height=this.C+"em"}; Bg=function(h,t){if(h.heightPx===-1){var Y=null;try{Y=g.y_("CANVAS"),h.T=Y.getContext("2d")}catch(l){}if(h.T){var L=h.G*h.sampleCount;h.S=Y;h.S.width=L;h.S.style.width=L+"px";h.element.appendChild(h.S)}else for(h.sampleCount=Math.floor(h.sampleCount/4),h.G*=4,Y=0;Y1?2:1,h.S.height=h.heightPx*Y,h.S.style.height= h.heightPx+"px",h.T.scale(1,Y)));t=g.b(t);for(L=t.next();!L.done;L=t.next()){Y=h;var q=h.index,z=L.value;for(L=0;L+20&&g.C7(t.T.element);L.classList.add("ytp-timely-actions-overlay");t.T.element.appendChild(L)}); g.f(this,this.T);this.N("web_player_overlay_positioned_layout")?this.events.V(h,"basechromeinitialized",function(){t.api.zQ(t.T.element,4,!0);t.T.element.setAttribute("data-overlay-order","10")}):g.kl(this.api,this.T.element,4)}; kVD=function(h){h.timelyActions&&(h.W=h.timelyActions.reduce(function(t,Y){if(Y.cueRangeId===void 0)return t;t[Y.cueRangeId]=0;return t},{}))}; tb=function(h,t){if(h.timelyActions){h=g.b(h.timelyActions);for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Y.cueRangeId===t)return Y}}; Oe1=function(h,t){if((h=tb(h,t))&&h.onCueRangeExit)return Qy(h.onCueRangeExit)}; KHL=function(h,t){return h.S===void 0?!1:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(t.seekLengthMilliseconds)===5E3?h.S===72:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(t.seekLengthMilliseconds)===1E4?h.S===74:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(t.seekLengthMilliseconds)===5E3?h.S===71:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(t.seekLengthMilliseconds)===1E4?h.S===73:!1}; neL=function(h,t){var Y=Number(t==null?void 0:t.maxVisibleDurationMilliseconds);Y&&(iG(h),h.x8=setTimeout(function(){if(h.G!==void 0&&(t==null?void 0:t.cueRangeId)===h.G){h.L=!1;var L=Oe1(h,h.G);L&&h.api.jM("innertubeCommand",L)}},Y))}; iG=function(h){h.x8&&clearTimeout(h.x8);h.x8=void 0;h.L=!1}; atL=function(h){if(h=h.getWatchNextResponse()){var t,Y;h=(t=h.playerOverlays)==null?void 0:(Y=t.playerOverlayRenderer)==null?void 0:Y.timelyActionsOverlayViewModel;t=g.A(h,ftW);if(t!=null&&t.timelyActions)return t==null?void 0:t.timelyActions.map(function(L){return g.A(L,$sc)}).filter(function(L){return!!L})}}; TJn=function(h){i4.call(this,h);var t=this;yE(this.api,"getPlaybackRate",function(){return t.api.getPlaybackRate()}); yE(this.api,"setPlaybackRate",function(Y){typeof Y==="number"&&t.api.setPlaybackRate(Y)})}; gE=function(h,t,Y,L){NN.call(this,"VOICE_BOOST",g.U$.Se);this.G=!1;this.K=h;this.Rm=h.Q7();this.W=t;this.S=Y;this.hasVoiceBoostAudioTrack=L;this.V(h,"videodatachange",this.T);this.setIcon(GIc());this.subscribe("select",this.U,this);this.T()}; YN=function(h){i4.call(this,h);var t=this;this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"settingsMenuInitialized",function(){A$1(t)}); W5(this.api,"getVoiceBoostUserPreference",function(){return t.getVoiceBoostUserPreference()}); W5(this.api,"setVoiceBoostUserPreference",function(L){t.setVoiceBoostUserPreference(L)}); W5(this.api,"hasVoiceBoostAudioTrack",function(){return t.hasVoiceBoostAudioTrack()}); var Y;this.G=(Y=i4L())!=null?Y:0;this.updateEnvironmentData()}; A$1=function(h){h.menuItem||(h.menuItem=new gE(h.api,function(t){h.setVoiceBoostUserPreference(t)},function(){return h.getVoiceBoostUserPreference()},function(){return h.hasVoiceBoostAudioTrack()}),g.f(h,h.menuItem))}; Sd3=function(h){h=h.K6();if(!h)return!1;h=g.Rp(h).exp||"";return h.includes("xpv")||h.includes("xpe")}; It1=function(h){h=g.b(g.Lq(h,!0));for(var t=h.next();!t.done;t=h.next())if(Sd3(t.value))return!0;return!1}; Ryr=function(h,t){h=g.b(g.Lq(h,!0));for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Sd3(Y)){var L={potc:"1",pot:t};Y.url&&(Y.url=BB(Y.url,L))}}; BJL=function(h){return g.k(function(t){if(t.T==1)return g.oc(t,2),g.K(t,h,4);if(t.T!=2)return g.Q6(t,0);g.cW(t);g.Z$(t)})}; zt=function(h){i4.call(this,h);var t=this;this.useLivingRoomPoToken=!1;this.X=new g.zJ;this.G=!1;this.Wq=null;this.Y=!1;this.W=null;this.U=!1;var Y=h.J().getWebPlayerContextConfig();this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"spsumpreject",function(L,q,z){t.U=q;L&&t.Y&&!t.W&&(t.N("html5_generate_content_po_token")&&z?t.I2(z):t.N("html5_generate_session_po_token")&&PKb(t));t.W||t.api.Pm("stp",{s:+t.Y,b:+t.U})}); this.events.V(h,"poTokenVideoBindingChange",function(L){t.I2(L)}); this.useLivingRoomPoToken=!(Y==null||!Y.useLivingRoomPoToken);h.addEventListener("csiinitialized",function(){t.Wq=h.aT();var L=(t.N("html5_generate_session_po_token")||t.N("html5_generate_content_po_token"))&&!t.useLivingRoomPoToken;try{if(t.N("html5_use_shared_owl_instance"))msW(t);else if(L){t.Wq.qF("pot_isc");var q=g.Sk(t.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");q?(t.S=p2(),g.zz(function(){qa(t)},q)):t.N("html5_webpo_idle_priority_job")?(t.S=p2(),g.$I(g.AG(),function(){qa(t)})): qa(t)}}catch(z){z instanceof Error&&g.bc(z)}}); h.addEventListener("trackListLoaded",this.Hd.bind(this));h.OS(this)}; Ds6=function(h){var t=Wc(h.experiments,"html5_web_po_request_key");return t?t:g.z4(h)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; h9b=function(h){var t=new Yh1,Y={},L=(Y["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",Y);return new Wm(t,h,function(){return L})}; tx6=function(h){return new yZ(h)}; V1=function(h,t){h.N("html5_webpo_bge_ctmp")&&h.api.Pm(t,{hwpo:!!h.T,hwpor:h.G})}; msW=function(h){var t,Y;g.k(function(L){if(L.T==1)return V1(h,"swpo_i"),h.S=p2(),Na(h),g.K(L,RC(),2);if(L.T!=3)return t=L.G,V1(h,"swpo_co"),g.K(L,v6L(t),3);Y=L.G;h.N("html5_web_po_token_disable_caching")||Y.kI(150);h.T=Y;V1(h,"swpo_cc");BJL(Y.QB()).then(function(){h.G=!0;h.X.resolve();V1(h,"swpo_re")}); g.zz(function(){qa(h);V1(h,"swpo_si")},0); g.Z$(L)})}; YGb=function(h){var t=h.api.J(),Y=h9b(Ds6(t)),L=Y.Wy.bind(Y);Y.Wy=function(l){var H;return g.k(function(w){if(w.T==1)return g.K(w,L(l),2);H=w.G;h.api.Pm("itr",{});return w.return(H)})}; try{var q=tx6({zP:Y,N7:{maxAttempts:5},O_:{Bd:"CLEn",disable:t.experiments.I0("html5_web_po_disable_remote_logging")||i6D.includes(g.VC(t.Xv)||""),G9:SkL(t.experiments),vg:t.experiments.I0("wpo_gel_strz")?function(l){var H=gXL.get(l);H||(H=new WPc(l),H=new g.vk(H),gXL.set(l,H));return H}:void 0, AQQ:h.N("wpo_dis_lfdms")?0:1E3},M4_:g.bc});var z=new ew({Y0:q,zP:Y,onError:g.bc});BJL(z.QB()).then(function(){h.G=!0;h.X.resolve()}); h.N("html5_web_po_token_disable_caching")||z.kI(150);g.f(h,q);g.f(h,z);h.T=z}catch(l){g.bc(l);var V;(V=q)==null||V.dispose()}}; qa=function(h){var t=h.api.J();h.Wq.qF("pot_ist");h.T||YGb(h);h.N("html5_bandaid_attach_content_po_token")||(h.N("html5_generate_session_po_token")&&(Na(h),PKb(h)),t=g.Sk(t.experiments,"html5_session_po_token_interval_time_ms")||0,t>0&&(h.C=g.VR(function(){Na(h)},t)),h.Y=!0)}; Na=function(h){var t,Y,L,q;g.k(function(z){if(!h.N("html5_generate_session_po_token")||h.useLivingRoomPoToken)return z.return();t=h.api.J();Y=g.Ey("EOM_VISITOR_DATA")||g.Ey("VISITOR_DATA");L=t.bB?t.datasyncId:Y;q=Wc(t.experiments,"html5_mock_content_binding_for_session_token")||t.livingRoomPoTokenId||L;t.mK=lG(h,q);g.Z$(z)})}; lG=function(h,t){if(!h.T){if(h.S)try{return h.S(t)}catch(z){g.bc(z)}return""}try{h.Wq.qF(h.G?"pot_cms":"pot_csms");var Y={oI:!0,Gr:!0,EV:t};h.N("html5_web_po_token_disable_caching")||(Y.oX={Rq:t,pu:!0,OH:!0});var L=h.T.fB(Y);h.Wq.qF(h.G?"pot_cmf":"pot_csmf");if(h.G){var q;(q=h.W)==null||q.resolve();h.W=null;h.U&&(h.U=!1,h.api.app.k8().To(!1))}return L}catch(z){return g.bc(z),""}}; PKb=function(h){h.T&&(h.W=new VT,h.X.promise.then(function(){h.Wq.qF("pot_if");Na(h)}))}; g.Hl=function(h,t,Y){g.iA(h.element,"ytp-suggestion-set",!!t.videoId);var L=t.playlistId;Y=t.TZ(Y?Y:"mqdefault.jpg");var q=null,z=null;t instanceof ab&&(t.lengthText?(q=t.lengthText||null,z=t.a6||null):t.lengthSeconds&&(q=g.XA(t.lengthSeconds),z=g.XA(t.lengthSeconds,!0)));var V=!!L;L=V&&v0(L).type==="RD";var l=t instanceof ab?t.isLivePlayback:null,H=t instanceof ab?t.isUpcoming:null,w=t.author,W=t.shortViewCount,y=t.publishedTimeText,X=[],U=[];w&&X.push(w);W&&(X.push(W),U.push(W));y&&U.push(y);Y= {title:t.title,author:w,author_and_views:X.join(" \u2022 "),aria_label:t.ariaLabel||g.BV("Watch $TITLE",{TITLE:t.title}),duration:q,timestamp:z,url:t.Dk(),is_live:l,is_upcoming:H,is_list:V,is_mix:L,background:Y?"background-image: url("+Y+")":"",views_and_publish_time:U.join(" \u2022 "),autoplayAlternativeHeader:t.PD};t instanceof KM&&(Y.playlist_length=t.playlistLength);h.update(Y)}; g.wE=function(h){var t=h.J(),Y=g.wq||g.xk?{style:"will-change: opacity"}:void 0,L=t.W,q=["ytp-modern-videowall-still"];t.T&&q.push("ytp-videowall-show-text");g.I.call(this,{Z:"a",Ei:q,j:{href:"{{url}}",target:L?t.L:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},B:[{Z:"div",D:"ytp-modern-videowall-still-image",j:{style:"{{background}}"},B:[{Z:"span",D:"ytp-modern-videowall-still-info-duration",o0:"{{duration}}"}]},{Z:"span",D:"ytp-modern-videowall-still-info", j:{"aria-hidden":"true"},B:[{Z:"span",D:"ytp-modern-videowall-still-info-bg",B:[{Z:"span",D:"ytp-modern-videowall-still-info-content",j:Y,B:[{Z:"span",D:"ytp-modern-videowall-still-info-title",o0:"{{title}}"},{Z:"span",D:"ytp-modern-videowall-still-info-author",o0:"{{author_and_views}}"},{Z:"span",D:"ytp-modern-videowall-still-info-live",o0:"Live"}]}]}]},{Z:"span",Ei:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],j:{"aria-hidden":"true"},B:[{Z:"span",D:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{Z:"span",D:"ytp-modern-videowall-still-listlabel-length",B:[" (",{Z:"span",o0:"{{playlist_length}}"},")"]}]},{Z:"span",Ei:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],j:{"aria-hidden":"true"},B:[{Z:"span",D:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{Z:"span",D:"ytp-modern-videowall-still-listlabel-length",o0:" (50+)"}]}]});this.suggestion=null;this.T=L;this.api=h;this.G=new g.UF(this);g.f(this,this.G);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.G.V(h,"videodatachange",this.onVideoDataChange);h.createServerVe(this.element,this);this.onVideoDataChange()}; g.LWb=function(h,t){if(h.suggestion!==t){h.suggestion=t;var Y=h.api.J();g.Hl(h,t,"hqdefault.jpg");if(g.kk(Y)&&!h.api.N("web_player_log_click_before_generating_ve_conversion_params")){Y=t.Dk();var L={};g.UY(h.api,"addEmbedsConversionTrackingParams",[L]);Y=g.Xz(Y,L);h.updateValue("url",Y)}(t=(t=t.sessionData)&&t.itct)&&h.api.setTrackingParams(h.element,t)}}; Wl=function(h,t){g.I.call(this,{Z:"div",Ei:["ytp-fullscreen-grid"],B:[{Z:"div",D:"ytp-fullscreen-grid-hover-overlay",j:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid"}},{Z:"div",Ei:["ytp-fullscreen-grid-content","ytp-fullscreen-grid-stills-container"]}]});this.player=h;this.stills=[];this.videoData=null;this.currentState=0;this.W=this.element.querySelector(".ytp-fullscreen-grid-stills-container");this.G= new g.UF(this);g.f(this,this.G);this.T=t;if(h=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.V(h,"click",this.S),c5(this.player,h,this);if(h=this.player.getVideoData(1))this.videoData=h;this.G.V(this.player,"videodatachange",this.onVideoDataChange)}; U3=function(h){i4.call(this,h);var t=this;this.G=this.T=0;this.U=null;this.W=0;this.isEnded=!1;this.C=null;var Y=new g.UF(h);g.f(this,Y);this.AQ=this.api.N("web_player_imax_theater_mode");this.S=this.api.N("web_player_enable_fullscreen_grid_components");Y.V(h,"fullscreentoggled",function(){y1(t)}); Y.V(h,"autohideupdate",function(L){L&&t.T===2&&Xm(t,1)}); Y.V(h,"videodatachange",function(){if(t.S){var L=t.api.getVideoData(1);t.videoData!==L&&t.T===2&&Xm(t,1);t.videoData=L}},this); Y.V(h,"sizestylechange",function(){t.S&&y1(t)}); W5(this.api,"setFullscreenQuickActions",function(L){t.setFullscreenQuickActions(L)}); W5(this.api,"setPlayerOverlayVideoDetailsRenderer",function(L){t.setPlayerOverlayVideoDetailsRenderer(L)}); this.S&&qGL(this,Y,h)}; qGL=function(h,t,Y){t.V(Y,"keyboardserviceglobalkeydown",function(L,q){h.S&&L.keyCode===86&&!L.repeat&&h.T!==0&&(q&&(q.z_=!0),z9D(h))}); t.V(h.api.getRootNode(),"wheel",function(L){if(!h.C){var q;if(h.S&&(q=h.X)!=null&&q.element&&h.T!==0)if(Cq(h)||L.stopPropagation(),g.mS(h.api.getRootNode(),"ytp-grid-scrolling"),h.W===0&&(h.W=window.innerHeight),h.T===1)h.W!==0&&(h.G+=L.deltaY/h.W,h.G=Math.min(Math.max(h.G,0),.85),Ma(h),Vxn(h,Math.abs(h.G)>=.85));else if(h.T===2){q=L.deltaY<0;var z,V=((z=h.X)==null?void 0:z.element.scrollTop)===0;q&&V?h.W!==0&&(h.G+=L.deltaY/h.W,Ma(h),Vxn(h,Math.abs(h.G)>=.85)):h.G!==0&&(h.G=0,Ma(h))}}},{passive:!0}); t.V(Y,"standardControlsInitialized",function(){if(!h.X){h.X=new Wl(h.api,h.L.bind(h));g.f(h,h.X);var L=h.api.getRootNode().querySelector(".ytp-chrome-bottom");L&&L.parentNode&&L.parentNode.insertBefore(h.X.element,L.nextSibling)}}); t.V(Y,"presentingplayerstatechange",function(){Fm(h)}); t.V(Y,"autonavvisibility",function(){Fm(h)}); h.api.E0().subscribe("visibilitystatechange",function(){Fm(h)}); N1n(h,h.T)}; Vxn=function(h,t){h.U&&clearTimeout(h.U);t?l_W(h):h.U=window.setTimeout(function(){l_W(h)},150)}; l_W=function(h){h.U&&(clearTimeout(h.U),h.U=null);h.W=0;h.S&&h.T!==0&&(Math.abs(h.G)>=.15&&z9D(h,!0),h.G=0,Ma(h),g.hp(h.api.getRootNode(),"ytp-grid-scrolling"))}; z9D=function(h,t){h.S&&(t!==void 0&&t||(h.C&&clearTimeout(h.C),h.C=window.setTimeout(function(){h.C=null},1E3)),h.T===1?Xm(h,2):Xm(h,1))}; Cq=function(h){return h.api.isFullscreen()||h.AQ&&h.api.HI()}; y1=function(h){var t=Cq(h);h.Y&&g.ip(h.Y,t);h.playerOverlayVideoDetailsRenderer&&g.ip(h.playerOverlayVideoDetailsRenderer,t);h.S&&Fm(h)}; Fm=function(h){if(h.S){var t;if(h.api.getPresentingPlayerType()===2||h.api.Gm()||((t=g.jH(h.api))==null?0:t.CC())||h.api.isMinimized())Xm(h,0);else{if(t=g.R(h.api.getPlayerStateObject(),2))Xm(h,2);else if(h.isEnded&&!t){var Y=Cq(h)?1:0;h.isEnded=t;Xm(h,Y)}else Cq(h)?h.T!==2&&Xm(h,1):Xm(h,0);h.isEnded=t}}}; Xm=function(h,t){h.T=t;var Y;(Y=h.X)==null||Y.H3(t);h.G=0;Ma(h);N1n(h,t)}; N1n=function(h,t){h=h.api.getRootNode();g.iA(h,"ytp-fullscreen-grid-peaking",t===1);g.iA(h,"ytp-fullscreen-grid-active",t===2)}; Ma=function(h){h.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+h.G.toString())}; H6L=function(h){i4.call(this,h);var t=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.UF(h);g.f(this,this.events);this.events.V(h,"heartbeatRequest",function(Y){if(t.freePreviewUsageDetails.length||t.freePreviewWatchedDuration!==null)Y.heartbeatRequestParams||(Y.heartbeatRequestParams={}),Y.heartbeatRequestParams.unpluggedParams||(Y.heartbeatRequestParams.unpluggedParams={}),t.freePreviewUsageDetails.length>0?Y.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= t.freePreviewUsageDetails:Y.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+t.freePreviewWatchedDuration}}); W5(h,"setFreePreviewWatchedDuration",function(Y){t.freePreviewWatchedDuration=Y}); W5(h,"setFreePreviewUsageDetails",function(Y){t.freePreviewUsageDetails=Y})}; s3=function(h){g.O.call(this);this.features=[];var t=this.G,Y=new u4(h),L=new gR(h),q=new Uv(h),z=new zt(h);var V=g.LV(h.J())?void 0:new b4(h);var l=new Xs(h),H=new Q43(h),w=new TJn(h),W=new cI(h);var y=g.LV(h.J())?new H6L(h):void 0;var X=h.N("html5_enable_ssap")?new ZeL(h):void 0;var U;var C=(U=h.J().getWebPlayerContextConfig())!=null&&U.cinematicSettingsAvailable?new FE(h):void 0;U=new rR(h);var d=h.N("enable_courses_player_overlay_purchase")?new AE1(h):void 0;var Q=g.zH(h.J())?new nj$(h):void 0; var J=new o8(h);var e=h.J().W?new Kq3(h):void 0;var v=g.kk(h.J())?new vjL(h):void 0;var E=h.N("web_player_move_autonav_toggle")&&h.J().R7?new GBn(h):void 0;var T=g.zH(h.J())?new jxL(h):void 0;var hr=h.N("web_enable_speedmaster")&&g.zH(h.J())?new TG(h):void 0;var B=h.J().jf?void 0:new ve1(h);var q1=h.N("report_pml_debug_signal")?new ZO$(h):void 0;var V6=new vZp(h),zn=new jo(h);var w3=g.rP(h.J())?new TWb(h):void 0;var ii=navigator.mediaSession&&window.MediaMetadata&&h.J().VU?new Wg(h):void 0;var r3= h.N("html5_enable_drc")&&!h.J().U?new Z3(h):void 0;var KL=new L3(h);var h3=g.zH(h.J())?new geD(h):void 0;var ky=h.N("html5_enable_d6de4")?new C8(h):void 0;var F8=g.zH(h.J())&&h.N("web_sleep_timer")?new xY(h):void 0;var EL=g.kk(h.J())?new xmb(h):void 0;var mn=new vg(h),X8=new eh1(h),Ts=new FZ$(h);var iv=h.N("enable_sabr_snackbar_message")?new UsL(h):void 0;var u=h.N("web_enable_timely_actions")?new Eer(h):void 0;var Ew=new s$(h);var eE=g.zH(h.J())?new U3(h):void 0;var g3=h.N("html5_enable_voice_boost")? new YN(h):void 0;h=h.N("web_player_loop_settings_menu")&&h.J().qS?new sx3(h):void 0;t.call(this,Y,L,q,z,V,l,H,w,W,y,X,C,U,d,Q,J,e,v,E,T,hr,B,q1,V6,zn,w3,void 0,ii,r3,KL,void 0,h3,ky,F8,EL,void 0,mn,X8,Ts,void 0,iv,u,Ew,eE,g3,void 0,h,void 0)}; wK6=function(){this.T=this.G=NaN}; WW3=function(h,t){this.Me=h;this.timerName="";this.S=!1;this.T=NaN;this.W=new wK6;this.G=t||null;this.S=!1}; y4b=function(h,t,Y){var L=g.AU(t.SM)&&!t.SM.U;if(t.SM.MS&&(nw(t.SM)||t.SM.gU==="shortspage"||W0(t.SM)||L)&&!h.S){h.S=!0;h.U=t.clientPlaybackNonce;g.Ey("TIMING_ACTION")||x5("TIMING_ACTION",h.Me.csiPageType);h.Me.csiServiceName&&x5("CSI_SERVICE_NAME",h.Me.csiServiceName);if(h.G){L=h.G.aT();for(var q=g.b(Object.keys(L)),z=q.next();!z.done;z=q.next())z=z.value,sH(z,L[z],h.timerName);L=g.f$(Aq$)(h.G.zA);g.jC(L,h.timerName);L=h.G;L.G={};L.zA={}}g.jC({playerInfo:{visibilityState:g.f$(TID)()},playerType:"LATENCY_PLAYER_HTML5"}, h.timerName);h.X!==t.clientPlaybackNonce||Number.isNaN(h.T)||(bW("_start",h.timerName)?Y=g.f$(X0)("_start",h.timerName)+h.T:g.bc(new g.Ea("attempted to log gapless pbs before CSI timeline started",{cpn:t.clientPlaybackNonce})));Y&&!bW("pbs",h.timerName)&&jB(h,Y)}}; jB=function(h,t,Y){sH("pbs",t!=null?t:(0,g.FH)(),Y!=null?Y:h.timerName)}; ZG=function(h){iNi();tsp();h.timerName=""}; XKb=function(h){if(h.G){var t=h.G;t.G={};t.zA={}}h.S=!1;h.X=void 0;h.T=NaN}; URW=function(h,t){g.PD.call(this);this.SM=h;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.T=0;if(h=t.session_data)this.sessionData=Tq(h,"&");this.index=Math.max(0,Number(t.index)||0);this.loop=!!t.loop;this.startSeconds=Number(t.startSeconds)||0;this.title=t.playlist_title||"";this.description=t.playlist_description||"";this.author= t.author||t.playlist_author||"";t.video_id&&(this.items[this.index]=t);if(h=t.api)typeof h==="string"&&h.length===16?t.list="PL"+h:t.playlist=h;if(h=t.list)switch(t.listType){case "user_uploads":this.listId=new pM("UU","PLAYER_"+h);break;default:var Y=t.playlist_length;Y&&(this.length=Number(Y)||0);this.listId=v0(h);if(h=t.video)this.items=h.slice(0),this.loaded=!0}else if(t.playlist){h=t.playlist.toString().split(",");this.index>0&&(this.items=[]);h=g.b(h);for(Y=h.next();!Y.done;Y=h.next())(Y=Y.value)&& this.items.push({video_id:Y});this.length=this.items.length;if(h=t.video)this.items=h.slice(0),this.loaded=!0}this.setShuffle(!!t.shuffle);if(h=t.suggestedQuality)this.quality=h;this.Y=c0(t,"playlist_");this.S=(t=t.thumbnail_ids)?t.split(","):[]}; CXD=function(h){return!!(h.playlist||h.list||h.api)}; MxL=function(h){var t=h.index+1;return t>=h.length?0:t}; FWW=function(h){var t=h.index-1;return t<0?h.length-1:t}; g.bG=function(h,t,Y,L){t=t!==void 0?t:h.index;t=h.items&&t in h.items?h.items[h.order[t]]:null;var q=null;t&&(Y&&(t.autoplay="1"),L&&(t.autonav="1"),q=new g.i6(h.SM,t),g.f(h,q),q.Bo=!0,q.startSeconds=h.startSeconds||q.clipStart||0,h.listId&&(q.playlistId=h.listId.toString()));return q}; sXL=function(h,t){h.index=g.n0(t,0,h.length-1);h.startSeconds=0}; jXc=function(h,t){if(t.video&&t.video.length){h.title=t.title||"";h.description=t.description;h.views=t.views;h.likes=t.likes;h.dislikes=t.dislikes;h.author=t.author||"";var Y=t.loop;Y&&(h.loop=Y);Y=g.bG(h);h.items=[];for(var L=g.b(t.video),q=L.next();!q.done;q=L.next())if(q=q.value)q.video_id=q.encrypted_id,h.items.push(q);h.length=h.items.length;(t=t.index)?h.index=t:h.findIndex(Y);h.setShuffle(!1);h.loaded=!0;h.T++;h.G&&h.G()}}; oXD=function(h,t){var Y,L,q,z,V,l,H;return g.k(function(w){if(w.T==1){Y=g.ko();var W=h.J(),y={context:g.H5(h),playbackContext:{contentPlaybackContext:{ancestorOrigins:W.ancestorOrigins}}},X=W.getWebPlayerContextConfig();if(X==null?0:X.encryptedHostFlags)y.playbackContext.contentPlaybackContext.encryptedHostFlags=X.encryptedHostFlags;if(X==null?0:X.hideInfo)y.playerParams={showinfo:!1};W=W.embedConfig;X=t.docid||t.video_id||t.videoId||t.id;if(!X){X=t.raw_embedded_player_response;if(!X){var U=t.embedded_player_response; U&&(X=JSON.parse(U))}if(X){var C,d,Q,J,e,v;X=((v=g.A((C=X)==null?void 0:(d=C.embedPreview)==null?void 0:(Q=d.thumbnailPreviewRenderer)==null?void 0:(J=Q.playButton)==null?void 0:(e=J.buttonRenderer)==null?void 0:e.navigationEndpoint,g.NZ))==null?void 0:v.videoId)||null}else X=null}C=(C=X)?C:void 0;d=h.playlistId?h.playlistId:t.list;Q=t.listType;if(d){var E;Q==="user_uploads"?E={username:d}:E={playlistId:d};Z66(W,C,t,E);y.playlistRequest=E}else t.playlist?(E={templistVideoIds:t.playlist.toString().split(",")}, Z66(W,C,t,E),y.playlistRequest=E):C&&(E={videoId:C},W&&(E.serializedThirdPartyEmbedConfig=W),y.singleVideoRequest=E);L=y;q=g.AZ(b6W);g.oc(w,2);return g.K(w,g.r2(Y,L,q),4)}if(w.T!=2)return z=w.G,V=h.J(),t.raw_embedded_player_response=z,V.Wm=ie(t,g.kk(V)),V.S=V.Wm==="EMBEDDED_PLAYER_MODE_PFL",z&&(l=z,l.trackingParams&&TB(l.trackingParams)),w.return(new g.i6(V,t));H=g.cW(w);H instanceof Error||(H=Error("b259802748"));g.ZD(H);return w.return(h)})}; Z66=function(h,t,Y,L){Y.index&&(L.playlistIndex=String(Number(Y.index)+1));L.videoId=t?t:"";h&&(L.serializedThirdPartyEmbedConfig=h)}; g.dE=function(h,t){oM.get(h);oM.set(h,t)}; g.Gt=function(h){g.PD.call(this);this.loaded=!1;this.player=h}; dR6=function(){this.T=[];this.G=[]}; g.Lq=function(h,t){return t?h.G.concat(h.T):h.G}; g.Q1=function(h,t){switch(t.kind){case "asr":GxL(t,h.T);break;default:GxL(t,h.G)}}; GxL=function(h,t){g.Mh(t,function(Y){return h.equals(Y)})||t.push(h)}; g.rE=function(h){g.O.call(this);this.m_=h;this.T=new dR6;this.W=null;this.X=[];this.Y=[]}; g.cl=function(h,t,Y){g.rE.call(this,h);this.videoData=t;this.audioTrack=Y;this.G=null;this.S=!1;this.X=t.e8;this.Y=t.gm;this.S=g.Is(t)}; g.QXL=function(h,t){var Y;return h.J().N("safari_live_drm_captions_fix")&&((Y=h.getVideoData())==null?0:Y.WM())?!1:g.LV(h.J())&&!t.isManifestless}; g.uG=function(h,t){return au(h.info.mimeType)?t?h.info.itag===t:!0:!1}; g.r4b=function(h,t){if(h.G!=null&&g.QXL(t,h.G)&&h.G.G.rawcc!=null)return!0;if(!h.fZ())return!1;t=!!h.G&&h.G.isManifestless&&Object.values(h.G.G).some(function(Y){return g.uG(Y,"386")}); h=!!h.G&&!h.G.isManifestless&&g.H_L(h.G);return t||h}; g.eB=function(h,t,Y,L,q,z){g.rE.call(this,h);this.videoId=Y;this.L$=q;this.eventId=z;this.U={};this.G=null;h=L||g.Rp(t).hl||"";h=h.split("_").join("-");this.S=BB(t,{hl:h})}; c4L=function(h,t){g.O.call(this);var Y=this;this.K=h;this.W=t;this.zA={};this.G={};this.T=null;this.S=new Set;this.X=new g.UF(this);this.zD={uF8:function(){return Y.W}}; this.U=this.K.N("web_player_defer_modules");this.BZ=new Map;g.f(this,this.X);this.X.V(h,"videodatachange",this.onVideoDataChange)}; u13=function(h,t){h.T=t}; g.Jb=function(h){return h.BZ.get("captions")}; xRL=function(h,t){switch(t){case "ad":return e9L(h);case "annotations_module":return h.K.isEmbedsShortsMode()?h=!1:(t=h.K,h=t.J(),t=t.getVideoData(),h=h.S||t.IK||h.controlsType==="3"?!1:h.Zx.isEmpty()&&h.playerStyle!=="annotation-editor"&&h.playerStyle!=="live-dashboard"?!!t.Ne||!!g.TZ(t)||!!g.AL(t):!0),h;case "asmjs":return J43(h);case "creatorendscreen":return pK3(h);case "embed":return g.kk(h.K.J());case "endscreen":return g.vX6(h);case "heartbeat":return h.YJ();case "kids":return D4(h.K.J()); case "remote":return h.K.J().JH;case "miniplayer":return h.K.J().showMiniplayerUiWhenMinimized;case "offline":return h.K.J().uM;case "captions":return KWL(h);case "unplugged":return g.SI(h.K.J());case "ux":return h.K.J().JQ;case "webgl":return a_6(h);case "ypc":return h.oh();case "ypc_clickwrap":return h=h.K.getVideoData(),h.Aa&&!h.xE;case "yto":return!!h.K.getVideoData().x8.includes("yto");default:return g.ZD(Error("Module descriptor "+t+" does not match")),!1}}; pq=function(h,t,Y,L,q){var z;Y=Y===void 0?!1:Y;L=L===void 0?!1:L;var V=h.BZ.get(t);if(!V||L)if(q||(q=function(){pq(h,t,Y,L)}),z||(z=function(){h.K.nC(t)}),V=V||EXD(h,t,xRL(h,t),q,z))h.BZ.set(t,V),V.create(),h.K.publish("modulecreated",t),Y&&h.K.Uz("onApiChange")}; O6i=function(h){var t=t===void 0?!1:t;var Y,L,q,z,V;return g.k(function(l){if(l.T==1)return(Y=h.BZ.get("asmjs"))&&!t?l.return(Y):(L=oM.get("asmjs"))!=null?(q=L,l.eM(2)):g.K(l,new Promise(function(H,w){kxD(h,"asmjs",function(){var W=oM.get("asmjs");W?H(W):w("cannot load module asmjs")},w)}),3); l.T!=2&&(q=l.G);z=q;if(!z)return l.return(Promise.reject("cannot load module asmjs"));V=new z(h.K);h.BZ.set("asmjs",V);V.create();return l.return(V)})}; $Rr=function(h){nXc(h)&&h.Fq();f_i(h)&&(pq(h,"captions",!0),pq(h,"endscreen"),h.WE(),pq(h,"creatorendscreen",!0))}; f_i=function(h){var t=h.K.getVideoData(),Y=h.U&&!t.isInlinePlaybackNoAd;h.K.N("html5_defer_modules_on_ads_only")&&!t.isAd()&&(Y=!1);return Y}; nXc=function(h){h=h.K.getVideoData();var t;if(t=h.N("web_player_defer_ad")){if(g.jE(h.x8,"ad")||MK6(h)||h.enableServerStitchedDai)h=!1;else{t=h.playerResponse;h=h.startSeconds;var Y=t==null?void 0:t.adPlacements;if(t=Y){t=Number.MAX_VALUE;Y=g.b(Y);for(var L=Y.next();!L.done;L=Y.next())if(L=L.value.adPlacementRenderer){var q=void 0,z=(q=L.config)==null?void 0:q.adPlacementConfig;q=void 0;if(((q=z)==null?void 0:q.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var V=q=void 0;z=Number((q=z)==null?void 0:(V= q.adTimeOffset)==null?void 0:V.offsetStartMilliseconds)||0;V=q=void 0;L=Number(((q=L.renderer)==null?void 0:(V=q.adBreakServiceRenderer)==null?void 0:V.prefetchMilliseconds)||0);L=z-L;L=11;h=h.api.J().C&&nq;return!(!t&&!h)}; hC=function(h,t){return!h.api.isInline()&&!H5i(h,MM(t))&&g.U6(t)}; leL=function(h){h.eQ.jz();if(h.O7&&h.vH)h.vH=!1;else if(!h.api.J().Ne&&!h.fV()){var t=h.api.getPlayerStateObject();g.R(t,2)&&g.JJ(h.api)||h.GM(t);!h.api.J().MD||t.isCued()||g.R(t,1024)?h.yR():h.lG.isActive()?(h.Ut(),h.lG.stop()):h.lG.start()}}; WNL=function(h,t){var Y;if((Y=h.api.getVideoData())==null?0:Y.mutedAutoplay){var L,q;if((L=t.target)==null?0:(q=L.className)==null?0:q.includes("ytp-info-panel"))return!1}return g.U6(t)&&h.api.isMutedByMutedAutoplay()?(h.api.unMute(),h.api.getPresentingPlayerType()===2&&h.api.playVideo(),t=h.api.getPlayerStateObject(),!g.R(t,4)||g.R(t,8)||g.R(t,2)||h.yR(),!0):!1}; yML=function(h,t,Y){h.api.isFullscreen()?Y<1-t&&h.api.toggleFullscreen():Y>1+t&&h.api.toggleFullscreen()}; NTL=function(h){var t=aF()&&pi()>=67&&!h.api.J().C;h=h.api.J().disableOrganicUi;return!g.Ki("tizen")&&!a9&&!t&&!h}; g.tC=function(h){g.I.call(this,{Z:"div",B:[{Z:"div",D:"ytp-bezel-text-wrapper",B:[{Z:"div",D:"ytp-bezel-text",o0:"{{title}}"}]},{Z:"div",D:"ytp-bezel",j:{role:"status","aria-label":"{{label}}"},B:[{Z:"div",D:"ytp-bezel-icon",o0:"{{icon}}"}]}]});this.K=h;this.T=new g.nE(this.show,10,this);h=this.K.N("delhi_modern_web_player")?1E3:500;this.G=new g.nE(this.hide,h,this);g.f(this,this.T);g.f(this,this.G);this.hide()}; gW=function(h,t,Y){if(t<=0){Y=Zc();t="muted";var L=0}else Y=Y?{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},L=Math.floor(t),t=L+"volume";i2(h,Y,t,L+"%")}; XaL=function(h,t){t=t?{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:CeL();var Y=h.K.getPlaybackRate(),L=g.BV("Speed is $RATE",{RATE:String(Y)});i2(h,t,L,Y+"x")}; Udc=function(h,t){t=t?"Subtitles/closed captions on":"Subtitles/closed captions off";i2(h,rEL(h.K),t)}; i2=function(h,t,Y,L){L=L===void 0?"":L;h.updateValue("label",Y===void 0?"":Y);h.updateValue("icon",t);g.TU(h.G);h.T.start();h.updateValue("title",L);g.iA(h.element,"ytp-bezel-text-hide",!L)}; CD3=function(h,t){g.I.call(this,{Z:"button",Ei:["ytp-button","ytp-cards-button"],j:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.kk(h.J()))},B:[{Z:"span",D:"ytp-cards-button-icon-default",B:[{Z:"div",D:"ytp-cards-button-icon",B:[h.J().N("player_new_info_card_format")?szL():{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {Z:"div",D:"ytp-cards-button-title",o0:"Info"}]},{Z:"span",D:"ytp-cards-button-icon-shopping",B:[{Z:"div",D:"ytp-cards-button-icon",B:[{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",D:"ytp-svg-shadow",j:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{Z:"path",D:"ytp-svg-fill",j:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{Z:"path",D:"ytp-svg-shadow-fill",j:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{Z:"div", D:"ytp-cards-button-title",o0:"Shopping"}]}]});this.K=h;this.T=t;this.G=null;this.fade=new g.ST(this,250,!0,100);g.f(this,this.fade);g.iA(this.T,"ytp-show-cards-title",g.kk(h.J()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.nO(!0)}; MO1=function(h,t){g.I.call(this,{Z:"div",D:"ytp-cards-teaser",B:[{Z:"div",D:"ytp-cards-teaser-box"},{Z:"div",D:"ytp-cards-teaser-text",B:h.J().N("player_new_info_card_format")?[{Z:"button",D:"ytp-cards-teaser-info-icon",j:{"aria-label":"Show cards","aria-haspopup":"true"},B:[szL()]},{Z:"img",D:"ytp-cards-teaser-channel-avatar",j:{alt:"","aria-hidden":"true"}},{Z:"span",D:"ytp-cards-teaser-label",o0:"{{text}}"},{Z:"button",D:"ytp-cards-teaser-close-button",j:{"aria-label":"Close"},B:[g.lR()]}]:[{Z:"span", D:"ytp-cards-teaser-label",o0:"{{text}}"}]}]});var Y=this;this.K=h;this.xj=t;this.fade=new g.ST(this,250,!1,250);this.G=null;this.C=new g.nE(this.E4z,300,this);this.U=new g.nE(this.Qm5,2E3,this);this.W=[];this.T=null;this.Y=new g.nE(function(){Y.element.style.margin="0"},250); this.onClickCommand=this.S=null;g.f(this,this.fade);g.f(this,this.C);g.f(this,this.U);g.f(this,this.Y);h.J().N("player_new_info_card_format")?(g.mS(h.getRootNode(),"ytp-cards-teaser-dismissible"),this.V(this.Tz("ytp-cards-teaser-close-button"),"click",this.Tl),this.V(this.Tz("ytp-cards-teaser-info-icon"),"click",this.u$),this.V(this.Tz("ytp-cards-teaser-label"),"click",this.u$)):this.listen("click",this.u$);this.V(t.element,"mouseover",this.C2);this.V(t.element,"mouseout",this.Nu);this.V(h,"cardsteasershow", this.qX_);this.V(h,"cardsteaserhide",this.KZ);this.V(h,"cardstatechange",this.OD);this.V(h,"presentingplayerstatechange",this.OD);this.V(h,"appresize",this.C0);this.V(h,"onShowControls",this.C0);this.V(h,"onHideControls",this.a5);this.listen("mouseenter",this.S0)}; FNi=function(h){g.I.call(this,{Z:"button",Ei:[YZ.BUTTON,YZ.TITLE_NOTIFICATIONS],j:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},B:[{Z:"div",D:YZ.TITLE_NOTIFICATIONS_ON,j:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},B:[g.yI()]},{Z:"div",D:YZ.TITLE_NOTIFICATIONS_OFF,j:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},B:[{Z:"svg",j:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},B:[{Z:"path",j:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=h;this.G=!1;h.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; sUL=function(h,t){h.G=t;h.element.classList.toggle(YZ.NOTIFICATIONS_ENABLED,h.G);var Y=h.api.getVideoData();Y?(t=t?Y.Sg:Y.RH)?(h=h.api.D3())?QD(h,t):g.ZD(Error("No innertube service available when updating notification preferences.")):g.ZD(Error("No update preferences command available.")):g.ZD(Error("No video data when updating notification preferences."))}; Z5c=function(h,t,Y){var L=L===void 0?800:L;var q=q===void 0?600:q;var z=document.location.protocol;h=TSL(z+"//"+h+"/signin?context=popup","feature",t,"next",z+"//"+location.hostname+"/post_login");jUL(h,Y,L,q)}; jUL=function(h,t,Y,L){Y=Y===void 0?800:Y;L=L===void 0?600:L;if(h=g.Ub(window,h,"loginPopup","width="+Y+",height="+L+",resizable=yes,scrollbars=yes"))UuD(function(){t()}),h.moveTo((screen.width-Y)/2,(screen.height-L)/2)}; g.LB=function(h,t,Y,L,q,z,V,l,H,w,W,y){h=h.charAt(0)+h.substring(1).toLowerCase();Y=Y.charAt(0)+Y.substring(1).toLowerCase();if(t==="0"||t==="-1")t=null;if(L==="0"||L==="-1")L=null;var X=W.J(),U=X.userDisplayName&&g.AU(X);g.I.call(this,{Z:"div",Ei:["ytp-button","ytp-sb"],B:[{Z:"div",D:"ytp-sb-subscribe",j:U?{title:g.BV("Subscribe as $USER_NAME",{USER_NAME:X.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":y4(X),"data-tooltip-opaque":String(g.kk(X)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},B:[{Z:"div",D:"ytp-sb-text",B:[{Z:"div",D:"ytp-sb-icon"},h]},t?{Z:"div",D:"ytp-sb-count",o0:t}:""]},{Z:"div",D:"ytp-sb-unsubscribe",j:U?{title:g.BV("Subscribed as $USER_NAME",{USER_NAME:X.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":y4(X),"data-tooltip-opaque":String(g.kk(X)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},B:[{Z:"div",D:"ytp-sb-text",B:[{Z:"div",D:"ytp-sb-icon"},Y]},L?{Z:"div",D:"ytp-sb-count", o0:L}:""]}],j:{"aria-live":"polite"}});var C=this;this.channelId=V;this.K=W;this.S=y;var d=this.Tz("ytp-sb-subscribe"),Q=this.Tz("ytp-sb-unsubscribe");z&&g.mS(this.element,"ytp-sb-classic");if(q){l?this.G():this.T();var J=function(){if(X.R0){var v=C.channelId;if(H||w){var E={c:v};var T;g.Rg.isInitialized()&&(T=OZ6(E));E=T||"";if(T=W.getVideoData())if(T=T.subscribeCommand){var hr=W.D3();hr?(QD(hr,T,{botguardResponse:E,feature:H}),W.jM("SUBSCRIBE",v)):g.ZD(Error("No innertube service available when updating subscriptions."))}else g.ZD(Error("No subscribe command in videoData.")); else g.ZD(Error("No video data available when updating subscription."))}Q.focus();Q.removeAttribute("aria-hidden");d.setAttribute("aria-hidden","true")}else Z5c(g.iC(C.K.J()),"sb_button",C.W)},e=function(){var v=C.channelId; if(H||w){var E=W.getVideoData();QD(W.D3(),E.unsubscribeCommand,{feature:H});W.jM("UNSUBSCRIBE",v)}d.focus();d.removeAttribute("aria-hidden");Q.setAttribute("aria-hidden","true")}; this.V(d,"click",J);this.V(Q,"click",e);this.V(d,"keypress",function(v){v.keyCode===13&&J(v)}); this.V(Q,"keypress",function(v){v.keyCode===13&&e(v)}); this.V(W,"SUBSCRIBE",this.G);this.V(W,"UNSUBSCRIBE",this.T);this.S&&U&&(HO3(W),c5(W,d,this),c5(W,Q,this))}else g.mS(d,"ytp-sb-disabled"),g.mS(Q,"ytp-sb-disabled")}; ddL=function(h){g.I.call(this,{Z:"div",D:"ytp-title-channel",B:[{Z:"div",D:"ytp-title-beacon"},{Z:"a",D:"ytp-title-channel-logo",j:{href:"{{channelLink}}",target:h.J().L,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Z:"div",D:"ytp-title-expanded-overlay",j:{"aria-hidden":"{{flyoutUnfocusable}}"},B:[{Z:"div",D:"ytp-title-expanded-heading",B:[{Z:"div",D:"ytp-title-expanded-title",B:[{Z:"a",o0:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:h.J().L,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Z:"div",D:"ytp-title-expanded-subtitle",o0:"{{expandedSubtitle}}",j:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var t=this;this.api=h;this.channel=this.Tz("ytp-title-channel");this.T=this.Tz("ytp-title-channel-logo");this.channelName=this.Tz("ytp-title-expanded-title");this.U=this.Tz("ytp-title-expanded-overlay");this.S=this.G=this.subscribeButton=null;this.W=!1;h.createClientVe(this.T,this,36925);h.createClientVe(this.channelName,this, 37220);g.kk(this.api.J())&&b5L(this);this.V(h,"videodatachange",this.Hm);this.V(h,"videoplayerreset",this.Hm);this.V(this.channelName,"click",function(Y){t.api.logClick(t.channelName);g.Ub(window,oxD(t));Y.preventDefault()}); this.V(this.T,"click",this.yQx);this.Hm()}; G8D=function(h){if(!h.api.J().Hq){var t=h.api.getVideoData(),Y=new g.LB("Subscribe",null,"Subscribed",null,!0,!1,t.IJ,t.subscribed,"channel_avatar",null,h.api,!0);h.api.createServerVe(Y.element,h);var L;h.api.setTrackingParams(Y.element,((L=t.subscribeButtonRenderer)==null?void 0:L.trackingParams)||null);h.V(Y.element,"click",function(){h.api.logClick(Y.element)}); h.subscribeButton=Y;g.f(h,h.subscribeButton);h.subscribeButton.zz(h.U);h.subscribeButton.hide();var q=new FNi(h.api);h.G=q;g.f(h,q);q.zz(h.U);q.hide();h.V(h.api,"SUBSCRIBE",function(){t.hV&&(q.show(),h.api.logVisibility(q.element,!0))}); h.V(h.api,"UNSUBSCRIBE",function(){t.hV&&(q.hide(),h.api.logVisibility(q.element,!1),sUL(q,!1))})}}; b5L=function(h){var t=h.api.J();G8D(h);h.updateValue("flyoutUnfocusable","true");h.updateValue("channelTitleFocusable","-1");h.updateValue("shouldHideExpandedTitleForA11y","true");h.updateValue("shouldHideExpandedSubtitleForA11y","true");t.T||t.lP||(h.V(h.channel,"mouseenter",h.Sb),h.V(h.channel,"mouseleave",h.D7),h.V(h.channel,"focusin",h.Sb),h.V(h.channel,"focusout",function(Y){h.channel.contains(Y.relatedTarget)||h.D7()})); h.S=new g.nE(function(){h.isExpanded()&&(h.api.logVisibility(h.channelName,!1),h.subscribeButton&&(h.subscribeButton.hide(),h.api.logVisibility(h.subscribeButton.element,!1)),h.G&&(h.G.hide(),h.api.logVisibility(h.G.element,!1)),h.channel.classList.remove("ytp-title-expanded"),h.channel.classList.add("ytp-title-show-collapsed"))},500); g.f(h,h.S);h.V(h.channel,QUW,function(){rM$(h)}); h.V(h.api,"onHideControls",h.uA);h.V(h.api,"appresize",h.uA);h.V(h.api,"fullscreentoggled",h.uA)}; rM$=function(h){h.channel.classList.remove("ytp-title-show-collapsed");h.channel.classList.remove("ytp-title-show-expanded")}; cM$=function(h){var t=h.api.getPlayerSize();return g.kk(h.api.J())&&t.width>=524}; oxD=function(h){var t=h.api.J(),Y=h.api.getVideoData(),L=g.Xl(t)+Y.MD;g.VE(Y)&&(L="https://music.youtube.com"+Y.MD);if(!g.kk(t))return L;t={};g.UY(h.api,"addEmbedsConversionTrackingParams",[t]);return g.Xz(L,t)}; q3=function(h){var t=g.Dh({"aria-haspopup":"true"});g.mM.call(this,t,h);this.listen("keydown",this.G)}; zy=function(h,t){h.element.setAttribute("aria-haspopup",String(t))}; ufp=function(h,t){g.I.call(this,{Z:"div",D:"ytp-user-info-panel",j:{"aria-label":"User info"},B:h.J().R0&&!h.N("embeds_web_always_enable_signed_out_state")?[{Z:"div",D:"ytp-user-info-panel-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-user-info-panel-content",B:[{Z:"div",D:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable}}",role:"text"},o0:"{{watchingAsUsername}}"},{Z:"div",D:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable2}}",role:"text"},o0:"{{watchingAsEmail}}"}]}]:[{Z:"div",D:"ytp-user-info-panel-icon", o0:"{{icon}}"},{Z:"div",D:"ytp-user-info-panel-content",B:[{Z:"div",B:[{Z:"text",j:{tabIndex:"{{userInfoFocusable}}"},o0:"Signed out"}]},{Z:"div",D:"ytp-user-info-panel-login",B:[{Z:"a",j:{tabIndex:"{{userInfoFocusable2}}",role:"button"},o0:h.J().Hq?"":"Sign in on YouTube"}]}]}]});this.m_=h;this.G=t;h.J().R0||h.J().Hq||this.V(this.Tz("ytp-user-info-panel-login"),"click",this.e0);this.closeButton=new g.I({Z:"button",Ei:["ytp-collapse","ytp-button"],j:{title:"Close"},B:[g.jT()]});this.closeButton.zz(this.element); g.f(this,this.closeButton);this.V(window,"blur",this.hide);this.V(document,"click",this.gT);this.Hm()}; pap=function(h,t,Y){g.GG.call(this,h);this.Rm=t;this.XD=Y;this.getVideoUrl=new q3(6);this.vu=new q3(5);this.l4=new q3(4);this.wP=new q3(3);this.Cs=new g.mM(g.Dh({href:"{{href}}",target:this.K.J().L},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.mM(g.Dh(),1,"Stats for nerds");this.Sa=new g.iR({Z:"div",Ei:["ytp-copytext","ytp-no-contextmenu"],j:{draggable:"false",tabindex:"1"},o0:"{{text}}"});this.uw=new dY(this.K,this.Sa);this.yz=this.BD=null;g.kk(this.K.J())&&(this.closeButton= new g.I({Z:"button",Ei:["ytp-collapse","ytp-button"],j:{title:"Close"},B:[g.jT()]}),g.f(this,this.closeButton),this.closeButton.zz(this.element),this.closeButton.listen("click",this.o5,this));g.kk(this.K.J())&&(this.YQ=new g.mM(g.Dh(),8,"Account"),g.f(this,this.YQ),this.Qb(this.YQ,!0),this.YQ.listen("click",this.bn8,this),h.createClientVe(this.YQ.element,this.YQ,137682));this.K.J().qS&&(this.CH=new NN("Loop",7),g.f(this,this.CH),this.Qb(this.CH,!0),this.CH.listen("click",this.S3x,this),h.createClientVe(this.CH.element, this.CH,28661));g.f(this,this.getVideoUrl);this.Qb(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.PI0,this);h.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.f(this,this.vu);this.Qb(this.vu,!0);this.vu.listen("click",this.xDm,this);h.createClientVe(this.vu.element,this.vu,28660);g.f(this,this.l4);this.Qb(this.l4,!0);this.l4.listen("click",this.ACM,this);h.createClientVe(this.l4.element,this.l4,28658);g.f(this,this.wP);this.Qb(this.wP,!0);this.wP.listen("click",this.asm, this);g.f(this,this.Cs);this.Qb(this.Cs,!0);this.Cs.listen("click",this.p35,this);g.f(this,this.showVideoInfo);this.Qb(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.BzQ,this);g.f(this,this.Sa);this.Sa.listen("click",this.deP,this);g.f(this,this.uw);t=document.queryCommandSupported&&document.queryCommandSupported("copy");I$L("Chromium")>=43&&(t=!0);I$L("Firefox")<=40&&(t=!1);t&&(this.BD=new g.I({Z:"textarea",D:"ytp-html5-clipboard",j:{readonly:"",tabindex:"-1"}}),g.f(this,this.BD), this.BD.zz(this.element));var L;(L=this.YQ)==null||L.setIcon(dML());var q;(q=this.CH)==null||q.setIcon(eLD());this.wP.setIcon({Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.Cs.setIcon(Mqp());this.showVideoInfo.setIcon(Fei());this.V(h,"onLoopChange",this.onLoopChange);this.V(h,"videodatachange",this.onVideoDataChange);es6(this);JMb(this,this.K.getVideoData())}; VA=function(h,t){var Y=!1;if(h.BD){var L=h.BD.element;L.value=t;L.select();try{Y=document.execCommand("copy")}catch(q){}}Y?h.Rm.KZ():(h.Sa.I4(t,"text"),g.cg(h.Rm,h.uw),XE(h.Sa.element),h.BD&&(h.BD=null,es6(h)));return Y}; JMb=function(h,t){var Y=h.K.J(),L=h.K.getPresentingPlayerType()===2,q=!L||t.isListed;q=!Y.x8&&!!t.videoId&&q;Y.playerStyle!=="play"?Y="https://support.google.com/youtube/?p=report_playback":(Y={contact_type:"playbackissue",html5:1,ei:t.eventId,v:t.videoId,p:"movies_playback"},t.T&&(Y.fmt=t.T.itag),t.clientPlaybackNonce&&(Y.cpn=t.clientPlaybackNonce),t.partnerId&&(Y.partnerid=t.partnerId),Y=g.Xz("//support.google.com/googleplay/",Y));h.l4.hC(q&&t.allowEmbed);h.getVideoUrl.hC(q);h.vu.hC(q&&!t.isLivePlayback); h.Cs.I4(Y,"href");var z;(z=h.CH)==null||z.hC(!t.isLivePlayback&&!L);var V;(V=h.YQ)==null||V.hC(!L)}; es6=function(h){var t=!!h.BD;g.P5(h.wP,t?"Copy debug info":"Get debug info");zy(h.wP,!t);g.P5(h.l4,t?"Copy embed code":"Get embed code");zy(h.l4,!t);g.P5(h.getVideoUrl,t?"Copy video URL":"Get video URL");zy(h.getVideoUrl,!t);g.P5(h.vu,t?"Copy video URL at current time":"Get video URL at current time");zy(h.vu,!t);h.l4.setIcon(t?XYD():null);h.getVideoUrl.setIcon(t?w7():null);h.vu.setIcon(t?w7():null)}; vxi=function(h){return g.kk(h.K.J())?h.YQ:h.CH}; aeD=function(h,t){g.rY.call(this,h);this.XD=t;this.W=new g.UF(this);this.AQ=new g.nE(this.o0Q,1E3,this);this.x8=this.S=null;g.f(this,this.W);g.f(this,this.AQ);t=this.K.J();h.createClientVe(this.element,this,28656);g.mS(this.element,"ytp-contextmenu");this.K.J().experiments.I0("delhi_modern_web_player")&&g.zH(t)&&g.mS(this.element,"ytp-delhi-modern-contextmenu");KNL(this);this.hide()}; KNL=function(h){g.ZZ(h.W);var t=h.K.J();t.playerStyle==="gvn"||t.T||t.lP||(t=h.K.Bm(),h.W.V(t,"contextmenu",h.kzQ),h.W.V(t,"touchstart",h.onTouchStart,null,!0),h.W.V(t,"touchmove",h.AE,null,!0),h.W.V(t,"touchend",h.AE,null,!0))}; xdD=function(h){h.K.isFullscreen()?g.kl(h.K,h.element,10):h.zz(Ie(h).body)}; N3=function(h,t,Y){Y=Y===void 0?240:Y;g.I.call(this,{Z:"button",Ei:["ytp-button","ytp-copylink-button"],j:{title:"{{title-attr}}","data-tooltip-opaque":String(g.kk(h.J()))},B:[{Z:"div",D:"ytp-copylink-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-copylink-title",o0:"Copy link",j:{"aria-hidden":"true"}}]});this.api=h;this.G=t;this.T=Y;this.visible=!1;this.tooltip=this.G.OX();t=h.J();this.tooltip.element.setAttribute("aria-live","polite");g.iA(this.element,"ytp-show-copylink-title",g.kk(t));h.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.V(h,"videodatachange",this.Hm);this.V(h,"videoplayerreset",this.Hm);this.V(h,"appresize",this.Hm);this.Hm();this.addOnDisposeCallback(g.r8(this.tooltip,this.element))}; Exr=function(h){var t=h.api.J(),Y=h.api.getVideoData(),L=h.api.Bm().getPlayerSize().width;t=t.S;return!!Y.videoId&&L>=h.T&&Y.f1&&!Y.Ye&&!h.api.isEmbedsShortsMode()&&!t}; k81=function(h){h.updateValue("icon",z6());if(h.api.J().T)h.tooltip.uT(h.element,"Link copied to clipboard");else{h.updateValue("title-attr","Link copied to clipboard");h.tooltip.HM();h.tooltip.uT(h.element);var t=h.listen("mouseleave",function(){h.W3(t);h.Hm();h.tooltip.a$()})}}; O5L=function(h,t){return g.k(function(Y){if(Y.T==1)return g.oc(Y,2),g.K(Y,navigator.clipboard.writeText(t),4);if(Y.T!=2)return Y.return(!0);g.cW(Y);var L=Y.return,q=!1,z=g.y_("TEXTAREA");z.value=t;z.setAttribute("readonly","");var V=h.api.getRootNode();V.appendChild(z);if(Ex){var l=window.getSelection();l.removeAllRanges();var H=document.createRange();H.selectNodeContents(z);l.addRange(H);z.setSelectionRange(0,t.length)}else z.select();try{q=document.execCommand("copy")}catch(w){}V.removeChild(z); return L.call(Y,q)})}; nx1=function(h){g.I.call(this,{Z:"div",D:"ytp-doubletap-ui-legacy",B:[{Z:"div",D:"ytp-doubletap-fast-forward-ve"},{Z:"div",D:"ytp-doubletap-rewind-ve"},{Z:"div",D:"ytp-doubletap-static-circle",B:[{Z:"div",D:"ytp-doubletap-ripple"}]},{Z:"div",D:"ytp-doubletap-overlay-a11y"},{Z:"div",D:"ytp-doubletap-seek-info-container",B:[{Z:"div",D:"ytp-doubletap-arrows-container",B:[{Z:"span",D:"ytp-doubletap-base-arrow"},{Z:"span",D:"ytp-doubletap-base-arrow"},{Z:"span",D:"ytp-doubletap-base-arrow"}]},{Z:"div", D:"ytp-doubletap-tooltip",B:[{Z:"div",D:"ytp-seek-icon-text-container",B:[{Z:"div",D:"ytp-seek-icon",o0:"{{seekIcon}}"},{Z:"div",D:"ytp-chapter-seek-text-legacy",o0:"{{seekText}}"}]},{Z:"div",D:"ytp-doubletap-tooltip-label",o0:"{{seekTime}}"}]}]}]});this.K=h;this.W=new g.nE(this.show,10,this);this.T=new g.nE(this.hide,700,this);this.C=this.S=0;this.AQ=this.U=!1;this.G=this.Tz("ytp-doubletap-static-circle");g.f(this,this.W);g.f(this,this.T);this.hide();this.Y=this.Tz("ytp-doubletap-fast-forward-ve"); this.L=this.Tz("ytp-doubletap-rewind-ve");this.K.createClientVe(this.Y,this,28240);this.K.createClientVe(this.L,this,28239);this.K.logVisibility(this.Y,!0);this.K.logVisibility(this.L,!0);this.U=h.N("web_show_cumulative_seek_time");this.AQ=h.N("web_center_static_circles")}; fen=function(h,t){t=g.BV("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:t.toString()});h.updateValue("seekTime",t)}; $db=function(h){oq.call(this,h,!1,!0);this.Wm=[];this.Ds=[];this.element.setAttribute("data-overlay-order","9");this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.gU=new g.I({Z:"div",D:"ytp-featured-product-open-in-new"});g.f(this,this.gU);this.countdownTimer=new g.I({Z:"text",D:"ytp-featured-product-countdown",o0:"{{content}}"});this.countdownTimer.hide();g.f(this,this.countdownTimer);this.T=new g.I({Z:"div",D:"ytp-featured-product-trending",B:[{Z:"div",D:"ytp-featured-product-trending-icon"}, {Z:"text",D:"ytp-featured-product-trending-text",o0:"{{trendingOffer}}"}]});this.T.hide();g.f(this,this.T);this.overflowButton=new g.I({Z:"button",Ei:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.f(this,this.overflowButton);this.C=new g.I({Z:"text",D:"ytp-featured-product-exclusive-countdown",o0:"{{content}}",j:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.f(this,this.C);this.U=new g.I({Z:"div",D:"ytp-featured-product-exclusive-container", j:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},B:[{Z:"div",D:"ytp-featured-product-exclusive-badge-container",B:[{Z:"div",D:"ytp-featured-product-exclusive-badge",B:[{Z:"text",D:"ytp-featured-product-exclusive-badge-text",o0:"{{exclusive}}",j:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.U.hide();g.f(this,this.U);this.banner=new g.I({Z:"a",D:"ytp-featured-product-container",B:[{Z:"div",D:"ytp-featured-product-thumbnail",B:[{Z:"img",j:{src:"{{thumbnail}}"}},this.gU]},{Z:"div", D:"ytp-featured-product-details",B:[{Z:"text",D:"ytp-featured-product-title",o0:"{{title}}"},this.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",D:"ytp-featured-product-price-container",j:{"aria-label":"{{priceA11yText}}"},B:[{Z:"text",D:"ytp-featured-product-price-when-promotion-text-enabled",o0:"{{price}}",j:{"aria-hidden":"true"}},{Z:"text",D:"ytp-featured-product-promotion-text",o0:"{{promotionText}}",j:{"aria-hidden":"true"}}]}:{Z:"div",j:{"aria-label":"{{priceA11yText}}"}, B:[{Z:"text",D:"ytp-featured-product-price",o0:"{{price}}",j:{"aria-hidden":"true"}},{Z:"text",D:"ytp-featured-product-sales-original-price",o0:"{{salesOriginalPrice}}",j:{"aria-hidden":"true"}},{Z:"text",D:"ytp-featured-product-price-drop-reference-price",o0:"{{priceDropReferencePrice}}",j:{"aria-hidden":"true"}}]},this.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",D:"ytp-featured-product-when-promotion-text-enabled",B:[{Z:"text",D:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", o0:"{{affiliateDisclaimer}}"},this.T,{Z:"text",D:"ytp-featured-product-vendor-when-promotion-text-enabled",o0:"{{vendor}}"}]}:{Z:"div",B:[{Z:"text",D:"ytp-featured-product-affiliate-disclaimer",o0:"{{affiliateDisclaimer}}"},this.K.N("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.U:null,this.T,{Z:"text",D:"ytp-featured-product-vendor",o0:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.f(this,this.banner);this.banner.zz(this.S.element);this.V(this.K,g.EX("featured_product"), this.r75);this.V(this.K,g.kO("featured_product"),this.Uq);this.V(this.K,"videodatachange",this.onVideoDataChange);this.V(this.overflowButton.element,"click",this.W$);this.V(h,"featuredproductdismissed",this.fS)}; TT3=function(h){var t,Y;h=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:Y.itemData;var L,q,z;return(h==null||!h.affiliateDisclaimer)&&(h==null?0:(L=h.exclusivesData)==null?0:L.exclusiveOfferLabelText)&&(h==null?0:(q=h.exclusivesData)==null?0:q.expirationTimestampMs)&&(h==null?0:(z=h.exclusivesData)==null?0:z.exclusiveOfferCountdownText)?!0:!1}; SUc=function(h){var t,Y,L,q,z=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:(L=Y.itemData)==null?void 0:(q=L.exclusivesData)==null?void 0:q.expirationTimestampMs;t=(Number(z)-Date.now())/1E3;if(t>0){if(t<604800){var V,l,H,w;Y=(V=h.G)==null?void 0:(l=V.bannerData)==null?void 0:(H=l.itemData)==null?void 0:(w=H.exclusivesData)==null?void 0:w.exclusiveOfferCountdownText;if(Y!==void 0)for(V=Date.now(),l=g.b(Y),H=l.next();!H.done;H=l.next())if(H=H.value,H!==void 0&&H.text!==void 0&&(w=Number(H.textDisplayStartTimestampMs), !isNaN(w)&&V>=w)){H.insertCountdown?(t=H.text.replace(/\$0/,String(pO({seconds:t}))),h.C.I4(t)):h.C.I4(H.text);h.C.show();break}}var W,y,X,U;h.U.update({exclusive:(W=h.G)==null?void 0:(y=W.bannerData)==null?void 0:(X=y.itemData)==null?void 0:(U=X.exclusivesData)==null?void 0:U.exclusiveOfferLabelText});h.U.show();l2(h);var C;(C=h.y4)==null||C.start()}else AMi(h)}; AMi=function(h){var t;(t=h.y4)==null||t.stop();h.C.hide();h.U.hide();HA(h)}; IeL=function(h){var t,Y,L=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:Y.itemData;return h.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(L==null||!L.priceReplacementText)&&(L==null?0:L.promotionText)?L==null?void 0:L.promotionText.content:null}; Rsi=function(h){var t,Y,L=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:Y.itemData,q,z;if(!(L!=null&&L.priceReplacementText||h.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(L==null?0:(q=L.dealsData)==null?0:(z=q.sales)==null?0:z.originalPrice)){var V,l;return L==null?void 0:(V=L.dealsData)==null?void 0:(l=V.sales)==null?void 0:l.originalPrice}return null}; BTL=function(h){var t,Y,L=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:Y.itemData,q,z,V,l;if(!((L==null?0:L.priceReplacementText)||h.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(L==null?0:(q=L.dealsData)==null?0:(z=q.sales)==null?0:z.originalPrice))&&(L==null?0:(V=L.dealsData)==null?0:(l=V.priceDrop)==null?0:l.referencePrice)){var H,w;return L==null?void 0:(H=L.dealsData)==null?void 0:(w=H.priceDrop)==null?void 0:w.referencePrice}return null}; PD1=function(h){var t,Y,L=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:Y.itemData;if(L==null?0:L.priceReplacementText)return L==null?void 0:L.priceReplacementText;if((L==null?0:L.promotionText)&&h.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q;return(L==null?void 0:L.price)+" "+(L==null?void 0:(q=L.promotionText)==null?void 0:q.content)}var z,V;if(L==null?0:(z=L.dealsData)==null?0:(V=z.sales)==null?0:V.originalPrice){var l,H;return L==null?void 0:(l=L.dealsData)== null?void 0:(H=l.sales)==null?void 0:H.salesPriceAccessibilityLabel}var w,W;if(L==null?0:(w=L.dealsData)==null?0:(W=w.priceDrop)==null?0:W.referencePrice){var y,X;return(L==null?void 0:L.price)+" "+(L==null?void 0:(y=L.dealsData)==null?void 0:(X=y.priceDrop)==null?void 0:X.referencePrice)}return L==null?void 0:L.price}; mdL=function(h){if(h.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var t,Y,L;return h.T.nZ?null:(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:(L=Y.itemData)==null?void 0:L.vendorName}var q,z,V,l,H,w;return h.T.nZ||h.U.nZ||((q=h.G)==null?0:(z=q.bannerData)==null?0:(V=z.itemData)==null?0:V.affiliateDisclaimer)?null:(l=h.G)==null?void 0:(H=l.bannerData)==null?void 0:(w=H.itemData)==null?void 0:w.vendorName}; hA1=function(h,t){wW(h);if(t){var Y=g.wu.getState().entities;Y=AY(Y,"featuredProductsEntity",t);if(Y!=null&&Y.productsData){t=[];Y=g.b(Y.productsData);for(var L=Y.next();!L.done;L=Y.next()){L=L.value;var q=void 0;if((q=L)!=null&&q.identifier&&L.featuredSegments){h.Wm.push(L);var z=void 0;q=g.b((z=L)==null?void 0:z.featuredSegments);for(z=q.next();!z.done;z=q.next()){var V=z.value;z=DdL(V.startTimeSec);z!==void 0&&(V=DdL(V.endTimeSec),t.push(new g.aZ(z*1E3,V===void 0?0x7ffffffffffff:V*1E3,{id:L.identifier, namespace:"featured_product"})))}}}h.K.Ji(t)}}}; HA=function(h){if(h.trendingOfferEntityKey){var t=g.wu.getState().entities;if(t=AY(t,"trendingOfferEntity",h.trendingOfferEntityKey)){var Y,L,q;t.encodedSkuId!==((Y=h.G)==null?void 0:(L=Y.bannerData)==null?void 0:(q=L.itemData)==null?void 0:q.encodedOfferSkuId)?l2(h):(h.T.update({trendingOffer:t.shortLabel+" \u2022 "+t.countLabel}),h.T.show(),h.banner.update({vendor:mdL(h)}))}else l2(h)}else l2(h)}; l2=function(h){h.T.hide();h.banner.update({vendor:mdL(h)})}; wW=function(h){h.Wm=[];h.Uq();h.K.z6("featured_product")}; tAc=function(h){var t,Y,L,q,z=(t=h.G)==null?void 0:(Y=t.bannerData)==null?void 0:(L=Y.itemData)==null?void 0:(q=L.hiddenProductOptions)==null?void 0:q.dropTimestampMs;t=(Number(z)-Date.now())/1E3;h.countdownTimer.I4(pO({seconds:t}));if(t>0){var V;(V=h.Q4)==null||V.start()}}; ip3=function(h){var t;(t=h.Q4)==null||t.stop();h.countdownTimer.hide()}; DdL=function(h){if(h!==void 0&&h.trim()!==""&&(h=Math.trunc(Number(h.trim())),!(isNaN(h)||h<0)))return h}; zAb=function(h,t,Y){g.I.call(this,{Z:"div",Ei:["ytp-info-panel-action-item"],B:[{Z:"div",D:"ytp-info-panel-action-item-disclaimer",o0:"{{disclaimer}}"},{Z:"a",Ei:["ytp-info-panel-action-item-button","ytp-button"],j:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},B:[{Z:"div",D:"ytp-info-panel-action-item-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-info-panel-action-item-label",o0:"{{label}}"}]}]});this.K=h;this.G=Y;this.disclaimer=this.Tz("ytp-info-panel-action-item-disclaimer");this.button= this.Tz("ytp-info-panel-action-item-button");this.ra=!1;this.K.createServerVe(this.element,this,!0);this.listen("click",this.onClick);h="";Y=g.A(t==null?void 0:t.onTap,dv);var L=g.A(Y,g.r7);this.ra=!1;L?(h=L.url||"",h.startsWith("//")&&(h="https:"+h),this.ra=!0,g.Hz(this.button,g.Nr(h))):(L=g.A(Y,gPi))&&!this.G?((h=L.phoneNumbers)&&h.length>0?(h="sms:"+h[0],L.messageText&&(h+="?&body="+encodeURI(L.messageText))):h="",this.ra=!0,g.Hz(this.button,g.Nr(h,[Y4c]))):(Y=g.A(Y,Lfi))&&!this.G&&(h=Y.phoneNumber? "tel:"+Y.phoneNumber:"",this.ra=!0,g.Hz(this.button,g.Nr(h,[q43])));var q;if(Y=(q=t.disclaimerText)==null?void 0:q.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var z;this.update({label:(z=t.bodyText)==null?void 0:z.content,icon:US(),disclaimer:Y})}else{this.disclaimer.style.display="none";var V;this.update({label:(V=t.bodyText)==null?void 0:V.content,icon:US()})}this.K.setTrackingParams(this.element,t.trackingParams||null);this.ra&&(this.T={externalLinkData:{url:h}})}; VAL=function(h,t){var Y=m2();g.SH.call(this,h,{Z:"div",D:"ytp-info-panel-detail-skrim",B:[{Z:"div",D:"ytp-info-panel-detail",j:{role:"dialog",id:Y},B:[{Z:"div",D:"ytp-info-panel-detail-header",B:[{Z:"div",D:"ytp-info-panel-detail-title",o0:"{{title}}"},{Z:"button",Ei:["ytp-info-panel-detail-close","ytp-button"],j:{"aria-label":"Close"},B:[g.lR()]}]},{Z:"div",D:"ytp-info-panel-detail-body",o0:"{{body}}"},{Z:"div",D:"ytp-info-panel-detail-items"}]}]},250);this.G=t;this.items=this.Tz("ytp-info-panel-detail-items"); this.S=new g.UF(this);this.itemData=[];this.W=Y;this.V(this.Tz("ytp-info-panel-detail-close"),"click",this.KZ);this.V(this.Tz("ytp-info-panel-detail-skrim"),"click",this.KZ);this.V(this.Tz("ytp-info-panel-detail"),"click",function(L){L.stopPropagation()}); g.f(this,this.S);this.K.createServerVe(this.element,this,!0);this.V(h,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",h.getVideoData());this.hide()}; NgL=function(h,t){h=g.b(h.itemData);for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value,Y.K.logVisibility(Y.element,t)}; wP$=function(h,t){g.I.call(this,{Z:"div",D:"ytp-info-panel-preview",j:{"aria-live":"assertive","aria-atomic":"true","aria-owns":t.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.kk(h.J()))},B:[{Z:"div",D:"ytp-info-panel-preview-text",o0:"{{text}}"},{Z:"div",D:"ytp-info-panel-preview-chevron",o0:"{{chevron}}"}]});var Y=this;this.K=h;this.yp=this.G=this.videoId=null;this.S=this.showControls=this.T=!1;this.V(this.element,"click",function(){h.logClick(Y.element);h.fV();Re(t)}); this.fade=new g.ST(this,250,!1,100);g.f(this,this.fade);this.K.createServerVe(this.element,this,!0);this.V(h,"videodatachange",this.onVideoDataChange);this.V(h,"presentingplayerstatechange",this.ER);this.V(this.K,"paidcontentoverlayvisibilitychange",this.Xu);this.V(this.K,"infopaneldetailvisibilitychange",this.Xu);var L=h.getVideoData()||{};lVL(L)&&Hpr(this,L);this.V(h,"onShowControls",this.Qa);this.V(h,"onHideControls",this.zl)}; Hpr=function(h,t){if(!t.Aa||!h.K.U$()){var Y=t.aC||1E4,L=lVL(t);h.G?t.videoId&&t.videoId!==h.videoId&&(g.TU(h.G),h.videoId=t.videoId,L?(WfL(h,Y,t),h.rz()):(h.KZ(),h.G.dispose(),h.G=null)):L&&(t.videoId&&(h.videoId=t.videoId),WfL(h,Y,t),h.rz())}}; lVL=function(h){var t,Y,L,q;return!!((t=h.XI)==null?0:(Y=t.title)==null?0:Y.content)||!!((L=h.XI)==null?0:(q=L.bodyText)==null?0:q.content)}; WfL=function(h,t,Y){h.G&&h.G.dispose();h.G=new g.nE(h.dUU,t,h);g.f(h,h.G);var L;t=((L=Y.XI)==null?void 0:L.trackingParams)||null;h.K.setTrackingParams(h.element,t);var q;var z,V;if(Y==null?0:(z=Y.XI)==null?0:(V=z.title)==null?0:V.content){var l;L=(q=Y.XI)==null?void 0:(l=q.title)==null?void 0:l.content;var H,w;if((H=Y.XI)==null?0:(w=H.bodyText)==null?0:w.content)L+=" \u2022 ";q=L}else q="";var W,y;Y=((W=Y.XI)==null?void 0:(y=W.bodyText)==null?void 0:y.content)||"";h.update({text:q+Y,chevron:g.Nk()})}; yB6=function(h,t){h.G&&(g.R(t,8)?(h.T=!0,h.rz(),h.G.start()):(g.R(t,2)||g.R(t,64))&&h.videoId&&(h.videoId=null))}; WA=function(h){var t=null;try{t=h.toLocaleString("en",{style:"percent"})}catch(Y){t=h.toLocaleString(void 0,{style:"percent"})}return t}; yA=function(h,t){var Y=0;h=g.b(h);for(var L=h.next();!(L.done||L.value.startTime>t);L=h.next())Y++;return Y===0?Y:Y-1}; XPr=function(h,t){for(var Y=0,L=g.b(h),q=L.next();!q.done;q=L.next()){q=q.value;if(t=q.timeRangeStartMillis&&t0?t[0]:null;var Y=g.V_("ytp-chrome-bottom"),L=g.V_("ytp-ad-module");h.W=!(Y==null||!Y.contains(t));h.Y=!(L==null||!L.contains(t));h.L=!(t==null||!t.hasAttribute("data-tooltip-target-fixed"));return t}; JBL=function(h,t,Y){if(!h.U){if(t){h.tooltipRenderer=t;t=h.tooltipRenderer.text;var L=!1,q;(t==null?0:(q=t.runs)==null?0:q.length)&&t.runs[0].text&&(h.update({title:t.runs[0].text.toString()}),L=!0);g.ip(h.title,L);t=h.tooltipRenderer.detailsText;q=!1;var z;if((t==null?0:(z=t.runs)==null?0:z.length)&&t.runs[0].text){L=t.runs[0].text.toString();z=L.indexOf("$TARGET_ICON");if(z>-1)if(h.tooltipRenderer.targetId){t=[];L=L.split("$TARGET_ICON");var V=new g.DD({Z:"span",D:"ytp-promotooltip-details-icon", B:[uFb[h.tooltipRenderer.targetId]]});g.f(h,V);for(var l=[],H=g.b(L),w=H.next();!w.done;w=H.next())w=new g.DD({Z:"span",D:"ytp-promotooltip-details-component",o0:w.value}),g.f(h,w),l.push(w);L.length===2?(t.push(l[0].element),t.push(V.element),t.push(l[1].element)):L.length===1&&(z===0?(t.push(V.element),t.push(l[0].element)):(t.push(l[0].element),t.push(V.element)));z=t.length?t:null}else z=null;else z=L;if(z){if(typeof z!=="string")for(g.C7(h.details),q=g.b(z),z=q.next();!z.done;z=q.next())h.details.appendChild(z.value); else h.update({details:z});q=!0}}g.ip(h.details,q);q=h.tooltipRenderer.acceptButton;z=!1;var W,y,X;((W=g.A(q,g.IB))==null?0:(y=W.text)==null?0:(X=y.runs)==null?0:X.length)&&g.A(q,g.IB).text.runs[0].text&&(h.update({acceptButtonText:g.A(q,g.IB).text.runs[0].text.toString()}),z=!0);g.ip(h.acceptButton,z);W=h.tooltipRenderer.dismissButton;y=!1;var U,C,d;((U=g.A(W,g.IB))==null?0:(C=U.text)==null?0:(d=C.runs)==null?0:d.length)&&g.A(W,g.IB).text.runs[0].text&&(h.update({dismissButtonText:g.A(W,g.IB).text.runs[0].text.toString()}), y=!0);g.ip(h.dismissButton,y)}Y&&(h.S=Y);h.G=cB1(h);h.C=!1;h.K.J().N("web_player_hide_nitrate_promo_tooltip")||h.hC(!0);eAW(h);h.nZ&&!h.AQ&&(h.AQ=!0,h.zD.wK(0));h.T&&h.K.logVisibility(h.element,h.nZ)}}; jU=function(h){h.hC(!1);h.T&&h.K.logVisibility(h.element,h.nZ)}; pP6=function(h){var t,Y,L,q=((t=g.A(h.acceptButton,g.IB))==null?void 0:(Y=t.text)==null?void 0:(L=Y.runs)==null?void 0:L.length)&&!!g.A(h.acceptButton,g.IB).text.runs[0].text,z,V,l;t=((z=g.A(h.dismissButton,g.IB))==null?void 0:(V=z.text)==null?void 0:(l=V.runs)==null?void 0:l.length)&&!!g.A(h.dismissButton,g.IB).text.runs[0].text;return q||t}; eAW=function(h){var t;if(!(t=!h.G)){t=h.G;var Y=window.getComputedStyle(t);t=Y.display==="none"||Y.visibility==="hidden"||t.getAttribute("aria-hidden")==="true"}if(t||h.K.isMinimized())h.hC(!1);else if(t=g.tu(h.G),t.width&&t.height){h.K.YL(h.element,h.G);var L=h.K.Bm().getPlayerSize().height;Y=g.tu(h.Tz("ytp-promotooltip-container")).height;h.W?h.element.style.top=L-Y-t.height-12+"px":h.L||(L=h.K.ZC().height-Y-t.height-12,h.element.style.top=L+"px");L=h.Tz("ytp-promotooltip-pointer");var q=g.DP(h.G, h.K.getRootNode()),z=Number(h.element.style.left.replace(/[^\d\.]/g,""));h=h.K.isFullscreen()?18:12;L.style.left=q.x-z+t.width/2-h+"px";L.style.top=Y+"px"}else h.hC(!1)}; ZI=function(h){g.I.call(this,{Z:"button",Ei:["ytp-replay-button","ytp-button"],j:{title:"Replay"},B:[g.FR()]});this.K=h;this.V(h,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.H3(h.getPlayerStateObject());c5(this.K,this.element,this)}; b2=function(h,t){t=t===void 0?240:t;g.I.call(this,{Z:"button",Ei:["ytp-button","ytp-search-button"],j:{title:"Search","data-tooltip-opaque":String(g.kk(h.J()))},B:[{Z:"div",D:"ytp-search-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-search-title",o0:"Search"}]});this.api=h;this.T=t;this.visible=!1;this.updateValue("icon",{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",D:"ytp-svg-fill",j:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); h.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.V(h,"appresize",this.G);this.V(h,"videodatachange",this.G);c5(h,this.element,this)}; ox=function(h){g.I.call(this,{Z:"div",D:"ytp-seek-overlay",B:[{Z:"div",Ei:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],B:[{Z:"div",Ei:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{Z:"svg",j:{viewBox:"0 0 22 32",width:"22",height:"32"},B:[{Z:"path",j:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{Z:"div",D:"ytp-seek-overlay-duration",o0:"{{durationBack}}"}]},{Z:"div",Ei:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], B:[{Z:"div",D:"ytp-seek-overlay-duration",o0:"{{durationForward}}"},{Z:"div",Ei:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{Z:"svg",j:{viewBox:"0 0 22 32",width:"22",height:"32"},B:[{Z:"path",j:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{Z:"div",D:"ytp-seek-overlay-message",B:[{Z:"div",D:"ytp-seek-overlay-message-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-seek-overlay-message-text",o0:"{{text}}"}]}]});var t=this;this.K=h;this.C=0;this.G="hidden"; this.AQ=0;this.Y=this.Tz("ytp-seek-overlay-animation-back");this.L=this.Tz("ytp-seek-overlay-animation-forward");this.x8=this.Tz("ytp-seek-overlay-message");this.U=new g.nE(function(){vP6(t)},g.Sk(this.K.J().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.f(this,this.U);this.K.createClientVe(this.L,this,28240);this.K.createClientVe(this.Y,this,28239);this.K.logVisibility(this.L,!0);this.K.logVisibility(this.Y,!0);this.hide()}; Kfp=function(h,t){h.T=h.S.animate([{offset:0,opacity:t,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});h.T.addEventListener("finish",function(){h.T=void 0;h.U.start();h.G="lingering"})}; aVp=function(h,t,Y){Y=Y===void 0?!1:Y;var L=[];L.push({offset:0,transform:"translateX("+(h.W===-1?30:-30)+"px)",opacity:Y?"0":"1"});Y&&L.push({offset:.5,opacity:"1"});L.push({offset:1,transform:"translateX(0)"});Y=t.animate(L,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});t.querySelector("path").animate([{offset:0,d:h.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:h.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return Y}; xvL=function(h){if((0,g.FH)()-h.AQ>=(g.Sk(h.K.J().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var t=h.S.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);t.classList.add("ytp-seek-overlay-arrow-additional");t.classList.remove("ytp-seek-overlay-arrow-persistent");h.S.appendChild(t);aVp(h,t,!0).addEventListener("finish",function(){t.remove()})}}; vP6=function(h,t,Y){Y=Y===void 0?!0:Y;h.T=h.S.animate([{offset:0,opacity:t===void 0?1:t},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});Y&&(h.T.addEventListener("finish",function(){h.T=void 0;EPc(h);h.hide()}),h.G="fading-out")}; km6=function(h){var t=Number(getComputedStyle(h.S).opacity),Y;(Y=h.T)==null||Y.cancel();h.T=void 0;return t}; EPc=function(h){h.C=0;h.G="hidden";h.W=void 0;h.S=void 0;h.AQ=0;h.U.stop();h.T=void 0}; Op1=function(h,t,Y){h.updateValue("text",t);if(Y){a:{switch(Y){case "PREMIUM_STANDALONE":t=rGb();break a;case "PREMIUM_STANDALONE_CAIRO":t=cGp();break a}t=void 0}h.updateValue("icon",t)}t=g.b(h.x8.getAnimations());for(Y=t.next();!Y.done;Y=t.next())Y.value.cancel();h.x8.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){h.updateValue("text","");h.updateValue("icon","")})}; dW=function(h,t,Y,L){L=L===void 0?240:L;g.I.call(this,{Z:"button",Ei:["ytp-button","ytp-share-button"],j:{title:"Share","aria-haspopup":"true","aria-owns":Y.element.id,"data-tooltip-opaque":String(g.kk(h.J()))},B:[{Z:"div",D:"ytp-share-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-share-title",o0:"Share"}]});this.api=h;this.G=t;this.T=Y;this.S=L;this.visible=!1;this.tooltip=this.G.OX();h.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.V(h,"videodatachange",this.Hm);this.V(h, "videoplayerreset",this.Hm);this.V(h,"appresize",this.Hm);this.V(h,"presentingplayerstatechange",this.Hm);this.Hm();this.addOnDisposeCallback(g.r8(this.tooltip,this.element))}; nPL=function(h){var t=h.api.J(),Y=h.api.getVideoData(),L=g.kk(t)&&g.Ko(h.api)&&g.R(h.api.getPlayerStateObject(),128);t=t.S||t.disableSharing&&h.api.getPresentingPlayerType()!==2||!Y.showShareButton||Y.f1||L||Y.Ye||!1;L=h.api.Bm().getPlayerSize().width;return!!Y.videoId&&L>=h.S&&!t}; fVp=function(h,t){t.name!=="InvalidStateError"&&t.name!=="AbortError"&&(t.name==="NotAllowedError"?(h.G.fV(),Re(h.T,h.element,!1)):g.ZD(t))}; Tgr=function(h,t){var Y=m2(),L=h.J();Y={Z:"div",D:"ytp-share-panel",j:{id:m2(),role:"dialog","aria-labelledby":Y},B:[{Z:"div",D:"ytp-share-panel-inner-content",B:[{Z:"div",D:"ytp-share-panel-title",j:{id:Y},o0:"Share"},{Z:"a",Ei:["ytp-share-panel-link","ytp-no-contextmenu"],j:{href:"{{link}}",target:L.L,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},o0:"{{linkText}}"},{Z:"label",D:"ytp-share-panel-include-playlist",B:[{Z:"input",D:"ytp-share-panel-include-playlist-checkbox",j:{type:"checkbox", checked:"true"}},"Include playlist"]},{Z:"div",D:"ytp-share-panel-loading-spinner",B:[yO()]},{Z:"div",D:"ytp-share-panel-service-buttons",o0:"{{buttons}}"},{Z:"div",D:"ytp-share-panel-error",o0:"An error occurred while retrieving sharing information. Please try again later."}]},{Z:"button",Ei:["ytp-share-panel-close","ytp-button"],j:{title:"Close"},B:[g.lR()]}]};g.SH.call(this,h,Y,250);var q=this;this.moreButton=null;this.api=h;this.tooltip=t.OX();this.S=[];this.U=this.Tz("ytp-share-panel-inner-content"); this.closeButton=this.Tz("ytp-share-panel-close");this.V(this.closeButton,"click",this.KZ);this.addOnDisposeCallback(g.r8(this.tooltip,this.closeButton));this.W=this.Tz("ytp-share-panel-include-playlist-checkbox");this.V(this.W,"click",this.Hm);this.G=this.Tz("ytp-share-panel-link");this.addOnDisposeCallback(g.r8(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.V(this.G,"click",function(z){z.preventDefault();q.api.logClick(q.G);var V=q.api.getVideoUrl(!0,!0,!1,!1);V=$v$(q,V); g.wR(V,q.api,z)&&q.api.jM("SHARE_CLICKED")}); this.listen("click",this.XY);this.V(h,"videoplayerreset",this.hide);this.V(h,"fullscreentoggled",this.onFullscreenToggled);this.V(h,"onLoopRangeChange",this.df);this.hide()}; IVL=function(h,t){ABn(h);for(var Y=t.links||t.shareTargets,L=0,q={},z=0;z0&&!hr&&!E?(v.length===2&&(v=["noreferrer"]),g.Ub(U,d,X,v[0]),U=DB1()):(Q=e.join(","),x2()&&U.navigator&&U.navigator.standalone&&X&&X!="_self"?(Q=g.y_("A"),g.Hz(Q,d),Q.target=X,J&&(Q.rel="noreferrer"),((C=C.attributionsrc)||C==="")&&Q.setAttribute("attributionsrc",C),C=document.createEvent("MouseEvent"), C.initMouseEvent("click",!0,!0,U,1),Q.dispatchEvent(C),U=DB1()):J?(U=g.Ub(U,"",X,Q),C=g.L0(d),U&&(U.opener=null,C===""&&(C="javascript:''"),C='',C=yz(C),(d=U.document)&&d.write&&(d.write(XL(C)),d.close()))):((U=g.Ub(U,d,X,Q))&&C.noopener&&(U.opener=null),U&&C.noreferrer&&(U.opener=null)));U&&(U.opener||(U.opener=window),U.focus());y.preventDefault()}}}(q)); q.VI.addOnDisposeCallback(g.r8(h.tooltip,q.VI.element));l==="Facebook"?h.api.createClientVe(q.VI.element,q.VI,164504):l==="Twitter"&&h.api.createClientVe(q.VI.element,q.VI,164505);h.V(q.VI.element,"click",function(W){return function(){h.api.logClick(W.VI.element)}}(q)); h.api.logVisibility(q.VI.element,!0);h.S.push(q.VI);L++}}var H=t.more||t.moreLink,w=new g.I({Z:"a",Ei:["ytp-share-panel-service-button","ytp-button"],B:[{Z:"span",D:"ytp-share-panel-service-button-more",B:[{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{Z:"rect",j:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",j:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],j:{href:H,target:"_blank",title:"More"}});w.listen("click",function(W){var y=H;h.api.logClick(h.moreButton.element);y=$v$(h,y);g.wR(y,h.api,W)&&h.api.jM("SHARE_CLICKED")}); w.addOnDisposeCallback(g.r8(h.tooltip,w.element));h.api.createClientVe(w.element,w,164506);h.V(w.element,"click",function(){h.api.logClick(w.element)}); h.api.logVisibility(w.element,!0);h.S.push(w);h.moreButton=w;h.updateValue("buttons",h.S)}; $v$=function(h,t){var Y={};g.kk(h.api.J())&&(g.UY(h.api,"addEmbedsConversionTrackingParams",[Y]),t=g.Xz(t,Y));return t}; ABn=function(h){for(var t=g.b(h.S),Y=t.next();!Y.done;Y=t.next())Y=Y.value,Y.detach(),g.hN(Y);h.S=[]}; Gy=function(h){return h===void 0||h.startSec===void 0||h.endSec===void 0?!1:!0}; RAL=function(h,t){h.startSec+=t;h.endSec+=t}; PYL=function(h){oq.call(this,h);this.T=this.G=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");Bg3(this);this.V(this.K,"changeProductsInVideoVisibility",this.x_0);this.V(this.K,"videodatachange",this.onVideoDataChange)}; mv6=function(h){h.U&&h.X5.element.removeChild(h.U.element);h.U=void 0}; h1i=function(h,t){return t.map(function(Y){var L,q;if((Y=(L=g.A(Y,Dvr))==null?void 0:(q=L.thumbnail)==null?void 0:q.thumbnails)&&Y.length!==0)return Y[0].url}).filter(function(Y){return Y!==void 0}).map(function(Y){Y=new g.I({Z:"img", D:"ytp-suggested-action-product-thumbnail",j:{alt:"",src:Y}});g.f(h,Y);return Y})}; tbW=function(h,t){h.isContentForward=t;g.iA(h.badge.element,"ytp-suggested-action-badge-content-forward",t)}; QA=function(h){var t=h.isContentForward&&!h.WF();g.iA(h.badge.element,"ytp-suggested-action-badge-preview-collapsed",t&&h.G);g.iA(h.badge.element,"ytp-suggested-action-badge-preview-expanded",t&&h.T)}; rW=function(h,t,Y){return new g.aZ(h*1E3,t*1E3,{priority:9,namespace:Y})}; iC3=function(h){h.K.z6("shopping_overlay_visible");h.K.z6("shopping_overlay_preview_collapsed");h.K.z6("shopping_overlay_preview_expanded");h.K.z6("shopping_overlay_expanded")}; Bg3=function(h){h.V(h.K,g.EX("shopping_overlay_visible"),function(){h.vx(!0)}); h.V(h.K,g.kO("shopping_overlay_visible"),function(){h.vx(!1)}); h.V(h.K,g.EX("shopping_overlay_expanded"),function(){h.x8=!0;bO(h)}); h.V(h.K,g.kO("shopping_overlay_expanded"),function(){h.x8=!1;bO(h)}); h.V(h.K,g.EX("shopping_overlay_preview_collapsed"),function(){h.G=!0;QA(h)}); h.V(h.K,g.kO("shopping_overlay_preview_collapsed"),function(){h.G=!1;QA(h)}); h.V(h.K,g.EX("shopping_overlay_preview_expanded"),function(){h.T=!0;QA(h)}); h.V(h.K,g.kO("shopping_overlay_preview_expanded"),function(){h.T=!1;QA(h)})}; LcL=function(h){g.I.call(this,{Z:"div",D:"ytp-shorts-title-channel",B:[{Z:"a",D:"ytp-shorts-title-channel-logo",j:{href:"{{channelLink}}",target:h.J().L,"aria-label":"{{channelLogoLabel}}"}},{Z:"div",D:"ytp-shorts-title-expanded-heading",B:[{Z:"div",D:"ytp-shorts-title-expanded-title",B:[{Z:"a",o0:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:h.J().L,tabIndex:"0"}}]}]}]});var t=this;this.api=h;this.G=this.Tz("ytp-shorts-title-channel-logo");this.channelName=this.Tz("ytp-shorts-title-expanded-title"); this.subscribeButton=null;h.createClientVe(this.G,this,36925);this.V(this.G,"click",function(Y){t.api.logClick(t.G);g.Ub(window,gqW(t));Y.preventDefault()}); h.createClientVe(this.channelName,this,37220);this.V(this.channelName,"click",function(Y){t.api.logClick(t.channelName);g.Ub(window,gqW(t));Y.preventDefault()}); YTL(this);this.V(h,"videodatachange",this.Hm);this.V(h,"videoplayerreset",this.Hm);this.Hm()}; YTL=function(h){if(!h.api.J().Hq){var t=h.api.getVideoData(),Y=new g.LB("Subscribe",null,"Subscribed",null,!0,!1,t.IJ,t.subscribed,"channel_avatar",null,h.api,!0);h.api.createServerVe(Y.element,h);var L;h.api.setTrackingParams(Y.element,((L=t.subscribeButtonRenderer)==null?void 0:L.trackingParams)||null);h.V(Y.element,"click",function(){h.api.logClick(Y.element)}); h.subscribeButton=Y;g.f(h,h.subscribeButton);h.subscribeButton.zz(h.element)}}; gqW=function(h){var t=h.api.J(),Y=h.api.getVideoData();Y=g.Xl(t)+Y.MD;if(!g.kk(t))return Y;t={};g.UY(h.api,"addEmbedsConversionTrackingParams",[t]);return g.Xz(Y,t)}; cA=function(h){g.SH.call(this,h,{Z:"button",Ei:["ytp-skip-intro-button","ytp-popup","ytp-button"],B:[{Z:"div",D:"ytp-skip-intro-button-text",o0:"Skip Intro"}]},100);var t=this;this.S=!1;this.G=new g.nE(function(){t.hide()},5E3); this.NU=this.nL=NaN;g.f(this,this.G);this.C=function(){t.show()}; this.U=function(){t.hide()}; this.W=function(){var Y=t.K.getCurrentTime();Y>t.nL/1E3&&Y0?{Z:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",Ei:["ytp-circle-arrow","ytp-svg-fill"],j:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {Z:"text",Ei:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"7.05",y:"15.05"}}]}:{Z:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",Ei:["ytp-circle-arrow","ytp-svg-fill"],j:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {Z:"text",Ei:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"6.5",y:"15"}}]}]});var Y=this;this.K=h;this.G=t;this.T=new g.nE(function(){Y.S?(Y.S=!1,Y.T.start()):Y.element.classList.remove("ytp-jump-spin","backwards")},250); this.S=!1;(t=t>0)?this.K.createClientVe(this.element,this,36843):this.K.createClientVe(this.element,this,36844);var L=g.BV(t?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.G).toString()});this.update({title:L,"data-title-no-tooltip":L,"aria-keyshortcuts":t?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text");this.W.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);c5(h,this.element, this)}; Wc3=function(h,t){t?h.element.classList.add("ytp-jump-button-enabled"):h.element.classList.remove("ytp-jump-button-enabled");h.K.logVisibility(h.element,t);h.K.HM()}; ax=function(h,t){eU.call(this,h,t,"timedMarkerCueRange","View key moments");this.V(h,g.kO("timedMarkerCueRange"),this.Kn);this.V(h,"updatemarkervisibility",this.updateVideoData)}; yI3=function(h){var t,Y=(t=h.K.getVideoData())==null?void 0:t.yG;if(Y)for(h=h.W.Y8,Y=g.b(Y),t=Y.next();!t.done;t=Y.next())if(t=h[t.value]){var L=void 0,q=void 0,z=void 0;if(((L=t.onTap)==null?void 0:(q=L.innertubeCommand)==null?void 0:(z=q.changeEngagementPanelVisibilityAction)==null?void 0:z.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return t}}; xZ=function(h){var t=h.N("web_enable_pip_on_miniplayer");g.I.call(this,{Z:"button",Ei:["ytp-miniplayer-button","ytp-button"],j:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},B:["{{icon}}"]});this.K=h;this.visible=!1;this.listen("click",this.onClick);this.V(h,"fullscreentoggled",this.Hm);this.updateValue("title",g.u5(h,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer", icon:this.K.N("delhi_modern_web_player_icons")?{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:t?{Z:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},B:[{Z:"g",j:{transform:"translate(96, -96) scale(0.8)"},B:[{Z:"path",AJ:!0,j:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:Qz$()});c5(h,this.element,this);h.createClientVe(this.element,this,62946);this.Hm()}; Eq=function(h,t,Y,L,q,z){z=z===void 0?!1:z;var V={Z:"div",Ei:["ytp-input-slider-section"],B:[{Z:"input",D:"ytp-input-slider",j:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};q&&V.B.unshift(q);z&&V.Ei.push("ytp-vertical-slider");g.I.call(this,V);this.W=h;this.U=t;this.Y=Y;this.initialValue=L;this.header=q;this.T=this.Tz("ytp-input-slider");this.G=L?L:h;this.init();this.V(this.T,"input",this.S);this.V(this.T,"keydown", this.C)}; kZ=function(h,t){h.G=t;h.updateValue("slidervalue",h.G);h.T.valueAsNumber=h.G;XSD(h,t)}; XSD=function(h,t){h.T.style.setProperty("--yt-slider-shape-gradient-percent",(t-h.W)/(h.U-h.W)*100+"%")}; Oq=function(h){var t=h.isMuted()?0:h.getVolume();Eq.call(this,0,100,1,t,void 0,!0);this.K=h;this.AQ=K7(this.R0,10,this);this.L=!1;this.V(h,"onVolumeChange",this.onVolumeChange);this.V(this.element,"wheel",this.x8)}; UYD=function(h,t){g.I.call(this,{Z:"div",j:{tabindex:"0",title:"Volume","data-tooltip-offset-y":"-120"},Ei:["ytp-volume-popover"]});var Y=this;this.isVisible=!1;this.tooltip=t.OX();this.T=new Oq(h);g.f(this,this.T);this.T.zz(this.element);this.G=new g.nE(function(){nB(Y,!1)},300); this.listen("mouseenter",function(){Y.G.stop()}); this.listen("mouseleave",function(){Y.G.start()}); this.listen("focus",function(){Y.G.stop()}); this.V(this.T.T,"focus",function(){Y.G.stop()}); this.listen("focusout",function(){Y.G.start();Y.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.r8(t.OX(),this.element));g.f(this,this.G)}; nB=function(h,t){h.element.classList.toggle("ytp-volume-popover-hovering",t);h.isVisible=t;(h=h.element.closest(".ytp-chrome-bottom"))&&h.classList.toggle("ytp-volume-popover-showing",t)}; fB=function(h,t,Y){Y=Y===void 0?!1:Y;var L=h.J().X5?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};L=h.N("delhi_modern_web_player")?{Z:"div",D:"ytp-mute-button",B:[{Z:"button",j:L,Ei:["ytp-volume-icon","ytp-button"],o0:"{{icon}}"}]}:{Z:"button",Ei:["ytp-mute-button","ytp-button"],j:L,B:[{Z:"div",D:"ytp-volume-icon",o0:"{{icon}}"}]}; g.I.call(this,L);this.K=h;this.Zx=Y;this.T=null;this.C=this.R0=this.L=this.Y=NaN;this.gU=this.AQ=null;this.U=[];this.W=[];this.visible=!1;this.S=this.G=this.x8=null;h.N("delhi_modern_web_player")&&this.update({"data-priority":4});Y=this.K.J();this.updateValue("icon",Zc());this.tooltip=t.OX();this.updateValue("dataTooltipOffsetY",0);this.S=g.V_("ytp-volume-icon",this.element);L=this.K.N("delhi_modern_web_player_icons")?{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",Ei:["ytp-svg-fill", "ytp-svg-volume-animation-speaker"],j:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{Z:"path",D:"ytp-svg-volume-animation-small-ripple",j:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{Z:"path",D:"ytp-svg-volume-animation-big-ripple",j:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"defs",B:[{Z:"clipPath",j:{id:"ytp-svg-volume-animation-mask"},B:[{Z:"path",j:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Z:"path",j:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Z:"path",D:"ytp-svg-volume-animation-mover",j:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Z:"clipPath",j:{id:"ytp-svg-volume-animation-slash-mask"},B:[{Z:"path",D:"ytp-svg-volume-animation-mover", j:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Z:"path",AJ:!0,Ei:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],j:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{Z:"path",AJ:!0,Ei:["ytp-svg-fill","ytp-svg-volume-animation-hider"],j:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.T=new g.DD(L);g.f(this,this.T);this.AQ=this.T.Tz("ytp-svg-volume-animation-speaker");this.gU=this.AQ.getAttribute("d");this.U=g.ql("ytp-svg-volume-animation-mover",this.T.element);this.K.N("delhi_modern_web_player_icons");this.W=g.ql("ytp-svg-volume-animation-hider",this.T.element);this.K.N("delhi_modern_web_player_icons");this.X5=new m6;g.f(this,this.X5);this.Wm=new m6;g.f(this,this.Wm);this.V(h,"appresize",this.m4);this.V(h,"onVolumeChange",this.onVolumeChange);h.N("delhi_modern_web_player")? this.listen("click",this.SXi):this.listen("click",this.SK);Y.X5?(h.N("delhi_modern_web_player")&&(this.G=new UYD(h,t),this.G.zz(this.element),g.f(this,this.G),this.V(this.S,"mouseover",this.Dt),this.V(this.S,"focus",this.Dt),this.V(this.S,"mouseout",this.B5),this.V(this.S,"blur",this.B5)),Y=h.N("delhi_modern_web_player")?this.S:this.element,this.addOnDisposeCallback(g.r8(t.OX(),Y))):C7p(this);this.message=null;h.createClientVe(this.element,this,28662);this.m4(h.Bm().getPlayerSize());this.setVolume(h.getVolume(), h.isMuted())}; MbL=function(h,t){if(h.K.J().X5){var Y=g.u5(h.K,"Mute","m"),L=g.u5(h.K,"Unmute","m");h.updateValue("title",t?L:Y);h.update({"data-title-no-tooltip":t?"Unmute":"Mute"});h.tooltip.HM()}}; jkD=function(h,t){h.Y=t;var Y=h.gU;h.K.N("delhi_modern_web_player_icons")?h.T.Tz("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(t+") translate(-22,-12)")):t&&(Y+=ey6(Fcn,skL,t));h.AQ.setAttribute("d",Y)}; ZCL=function(h,t){var Y;t===1?Y=h.K.N("delhi_modern_web_player_icons")?{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:Zc():Y=h.T;h.R0=t;if(h.K.N("delhi_modern_web_player_icons"))h.T.Tz("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-t+") translate(-18,-12)")),h.T.Tz("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(h.Y-t+") translate(-22, -12)"));else{for(var L=20*t,q=0;q=3&&h.K.getPresentingPlayerType()!==2}; rI$=function(h){var t=v5(h.K.T$());return t?h.G?t.fH():t.B0():!1}; dYp=function(h){var t={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},Y=h.playlist!=null&&h.playlist.fH();Y=g.Ko(h.K)&&(!h.G||Y);var L=h.G&&g.OY(h.K),q=rI$(h),z=h.G&&h.K.getPresentingPlayerType()===5,V=g.u5(h.K,"Next","SHIFT+n"),l=g.u5(h.K,"Previous","SHIFT+p");if(z)t.title="Start video";else if(h.S)t.title="Replay";else if(Y){var H=null;h.playlist&&(H=g.bG(h.playlist,h.G?MxL(h.playlist):FWW(h.playlist)));if(H){if(H.videoId){var w=h.playlist.listId; t.url=h.K.J().getVideoUrl(H.videoId,w?w.toString():void 0)}t.text=H.title;t.duration=H.lengthText?H.lengthText:H.lengthSeconds?g.XA(H.lengthSeconds):null;t.preview=H.TZ("mqdefault.jpg")}h.G?(t.title=V,t["data-title-no-tooltip"]="Next",t["aria-keyshortcuts"]="SHIFT+n"):(t.title=l,t["data-title-no-tooltip"]="Previous",t["aria-keyshortcuts"]="SHIFT+p")}else if(L){if(l=(H=h.videoData)==null?void 0:g.l6(H))t.url=l.Dk(),t.text=l.title,t.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.XA(l.lengthSeconds): null,t.preview=l.TZ("mqdefault.jpg");t.title=V;t["data-title-no-tooltip"]="Next";t["aria-keyshortcuts"]="SHIFT+n"}t.disabled=!L&&!Y&&!q&&!z;h.update(t);h.C=!!t.url;L||Y||h.S||q||z?h.T||(h.T=g.r8(h.tooltip,h.element),h.U=h.listen("click",h.onClick,h)):h.T&&(h.T(),h.T=null,h.W3(h.U),h.U=null);h.tooltip.HM();g.iA(h.element,"ytp-playlist-ui",h.G&&(Y||h.K.N("web_hide_next_button")))}; oq$=function(h,t){return h?t?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:WH():t?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:u4n()}; uGn=function(h,t){g.I.call(this,{Z:"div",D:"ytp-fine-scrubbing",B:[{Z:"div",D:"ytp-fine-scrubbing-draggable",B:[{Z:"div",D:"ytp-fine-scrubbing-thumbnails",j:{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}}"}}]},{Z:"div",j:{"aria-hidden":"true"},D:"ytp-fine-scrubbing-cursor"},{Z:"div",D:"ytp-fine-scrubbing-seek-time",j:{"aria-hidden":"true"}, o0:"{{seekTime}}"},{Z:"div",D:"ytp-fine-scrubbing-play",B:[h.N("delhi_modern_web_player_icons")?Mk():Cc()],j:{title:"Play from this position",role:"button"}},{Z:"div",D:"ytp-fine-scrubbing-dismiss",B:[g.lR()],j:{title:"Exit precise seeking",role:"button"}}]});var Y=this;this.api=h;this.U=this.Tz("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Tz("ytp-fine-scrubbing-dismiss");this.R0=this.Tz("ytp-fine-scrubbing-draggable");this.playButton=this.Tz("ytp-fine-scrubbing-play");this.thumbnails= [];this.T=[];this.Zx=this.G=0;this.X5=void 0;this.AQ=NaN;this.Ne=this.L=this.S=this.Y=0;this.W=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.lP=0;this.isEnabled=this.gU=!1;cI6(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.r8(t,this.dismissButton));this.addOnDisposeCallback(g.r8(t,this.playButton));this.Wm=new g.kY(this.R0,!0);this.Wm.subscribe("dragstart",this.H9,this);this.Wm.subscribe("dragmove",this.mD,this);this.Wm.subscribe("dragend",this.N9,this);this.V(h,"SEEK_COMPLETE", this.DK);h.N("web_fix_fine_scrubbing_false_play")&&this.V(h,"rootnodemousedown",function(L){Y.x8=L}); this.U.addEventListener("keydown",function(){}); g.f(this,this.Wm);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)}; cI6=function(h,t){var Y=g.XA(t),L=g.BV("Seek to $PROGRESS",{PROGRESS:g.XA(t,!0)});h.update({ariamin:0,ariamax:Math.floor(h.api.getDuration()),arianow:Math.floor(t),arianowtext:L,seekTime:Y})}; e1c=function(h){h.AQ=NaN;h.L=0;h.Y=h.S}; vqL=function(h){var t=h.api.xv();if(t){var Y=90*h.scale,L=Ib(t,160*h.scale);if(t=t.levels[L]){h.C=t.width;if(!h.W.length){L=[];for(var q=Rb(t,t.YY()),z=t.columns*t.rows,V=t.frameCount,l=0;l<=q;l++)for(var H=Vh.W.length;)L= void 0,(L=h.thumbnails.pop())==null||L.dispose();for(;h.thumbnails.lengthY.length;)L=void 0,(L=h.T.pop())==null||L.dispose(); for(;h.T.length-Y?-t/Y*h.interval*.5:-(t+Y/2)/Y*h.interval}; KcD=function(h){return-((h.U.offsetWidth||(h.frameCount-1)*h.C*h.scale)-h.G/2)}; JIn=function(){g.I.call(this,{Z:"div",D:"ytp-fine-scrubbing-thumbnail"})}; pSL=function(){g.I.call(this,{Z:"div",D:"ytp-fine-scrubbing-chapter-title",B:[{Z:"div",D:"ytp-fine-scrubbing-chapter-title-content",o0:"{{chapterTitle}}"}]})}; xYn=function(h){g.I.call(this,{Z:"div",D:"ytp-heat-map-chapter",B:[{Z:"svg",D:"ytp-heat-map-svg",j:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},B:[{Z:"defs",B:[{Z:"clipPath",j:{id:"{{id}}"},B:[{Z:"path",D:"ytp-heat-map-path",j:{d:"",fill:"white"}}]},{Z:"linearGradient",j:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},B:[{Z:"stop",j:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Z:"stop",j:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Z:"rect",D:"ytp-heat-map-graph",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",D:"ytp-heat-map-hover",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",D:"ytp-heat-map-play",j:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Z:"path",D:"ytp-modern-heat-map",j:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=h;this.Y=this.Tz("ytp-heat-map-svg");this.U=this.Tz("ytp-heat-map-path");this.W=this.Tz("ytp-heat-map-graph");this.C=this.Tz("ytp-heat-map-play");this.G=this.Tz("ytp-heat-map-hover");this.S=this.Tz("ytp-modern-heat-map");this.ra=!1;this.T=60;h=""+g.zs(this);this.update({id:h});h="url(#"+h+")";this.W.setAttribute("clip-path",h);this.C.setAttribute("clip-path",h);this.G.setAttribute("clip-path", h)}; EqD=function(h,t){t>0&&(h.T=t,h.Y.style.height=h.T+"px")}; SU=function(){g.I.call(this,{Z:"div",D:"ytp-chapter-hover-container",B:[{Z:"div",D:"ytp-progress-bar-padding"},{Z:"div",D:"ytp-progress-list",B:[{Z:"div",Ei:["ytp-play-progress","ytp-swatch-background-color"]},{Z:"div",D:"ytp-progress-linear-live-buffer"},{Z:"div",D:"ytp-load-progress"},{Z:"div",D:"ytp-hover-progress"},{Z:"div",D:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.T=this.Tz("ytp-progress-list");this.U=this.Tz("ytp-progress-linear-live-buffer"); this.W=this.Tz("ytp-ad-progress-list");this.C=this.Tz("ytp-load-progress");this.Y=this.Tz("ytp-play-progress");this.S=this.Tz("ytp-hover-progress");this.G=this.Tz("ytp-chapter-hover-container")}; Ix=function(h,t){g.$9(h.G,"width",t)}; k5W=function(h,t){g.$9(h.G,"margin-right",t+"px")}; OCp=function(){this.T=this.position=this.S=this.G=this.W=this.width=NaN}; nqp=function(){g.I.call(this,{Z:"div",D:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.BA=function(h,t){g.iR.call(this,{Z:"div",D:"ytp-progress-bar-container",j:{"aria-disabled":"true"},B:[{Z:"div",Ei:["ytp-heat-map-container"],B:[{Z:"div",D:"ytp-heat-map-edu"}]},{Z:"div",Ei:["ytp-progress-bar"],j:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},B:[{Z:"div",D:"ytp-chapters-container"},{Z:"div",D:"ytp-timed-markers-container"},{Z:"div",D:"ytp-clip-start-exclude"}, {Z:"div",D:"ytp-clip-end-exclude"},{Z:"div",D:"ytp-scrubber-container",B:[{Z:"div",Ei:["ytp-scrubber-button","ytp-swatch-background-color"],B:[{Z:"div",D:"ytp-scrubber-pull-indicator"},{Z:"img",Ei:["ytp-decorated-scrubber-button"]}]}]}]},{Z:"div",Ei:["ytp-fine-scrubbing-container"],B:[{Z:"div",D:"ytp-fine-scrubbing-edu"}]},{Z:"div",D:"ytp-bound-time-left",o0:"{{boundTimeLeft}}"},{Z:"div",D:"ytp-bound-time-right",o0:"{{boundTimeRight}}"},{Z:"div",D:"ytp-clip-start",j:{title:"{{clipstarttitle}}"},o0:"{{clipstarticon}}"}, {Z:"div",D:"ytp-clip-end",j:{title:"{{clipendtitle}}"},o0:"{{clipendicon}}"}]});this.api=h;this.fC=!1;this.Cr=this.Ty=this.yG=this.U=this.uM=0;this.Y1=null;this.NU=!1;this.lP={};this.dP={};this.clipEnd=Infinity;this.Ds=this.Tz("ytp-clip-end");this.Vb=new g.kY(this.Ds,!0);this.m$=this.Tz("ytp-clip-end-exclude");this.M6=this.Tz("ytp-clip-start-exclude");this.clipStart=0;this.y4=this.Tz("ytp-clip-start");this.R7=new g.kY(this.y4,!0);this.AQ=this.Pq=0;this.progressBar=this.Tz("ytp-progress-bar");this.Q4= {};this.Y8={};this.iP=this.Tz("ytp-chapters-container");this.nL=this.Tz("ytp-timed-markers-container");this.G=[];this.C=[];this.mK={};this.D9=null;this.gU=-1;this.G$=this.X5=0;this.eh=this.Y=null;this.Df=this.Tz("ytp-scrubber-button");this.R0=this.Tz("ytp-decorated-scrubber-button");this.lB=this.Tz("ytp-scrubber-container");this.MD=new g.TD;this.fn=0;this.lZ=new OCp;this.S=new oD(0,0);this.z$=null;this.L=this.Aa=!1;this.qW=null;this.x8=this.Tz("ytp-heat-map-container");this.sX=this.Tz("ytp-heat-map-edu"); this.W=[];this.heatMarkersDecorations=[];this.tQ=this.Tz("ytp-fine-scrubbing-container");this.UX=this.Tz("ytp-fine-scrubbing-edu");this.T=void 0;this.Zx=this.XI=this.Ne=!1;this.tooltip=t.OX();this.addOnDisposeCallback(g.r8(this.tooltip,this.Ds));g.f(this,this.Vb);this.Vb.subscribe("hoverstart",this.Kp,this);this.Vb.subscribe("hoverend",this.Zi,this);this.V(this.Ds,"click",this.kB);this.addOnDisposeCallback(g.r8(this.tooltip,this.y4));g.f(this,this.R7);this.R7.subscribe("hoverstart",this.Kp,this); this.R7.subscribe("hoverend",this.Zi,this);this.V(this.y4,"click",this.kB);fxD(this);this.V(h,"resize",this.Bq);this.V(h,"presentingplayerstatechange",this.U6);this.V(h,"videodatachange",this.KH);this.V(h,"videoplayerreset",this.Kf);this.V(h,"cuerangesadded",this.d0z);this.V(h,"cuerangesremoved",this.xUG);this.V(h,"onLoopRangeChange",this.Hl);this.V(h,"innertubeCommand",this.onClickCommand);this.V(h,"onRetroModeChanged",this.D_i);this.V(h,g.EX("timedMarkerCueRange"),this.AiU);this.V(h,"updatemarkervisibility", this.rW);this.V(h,"serverstitchedvideochange",this.JaQ);this.updateVideoData(h.getVideoData(),!0);this.Hl(h.getLoopRange());Rx(this)&&!this.T&&(this.T=new uGn(this.api,this.tooltip),h=g.m3(this.element).x||0,this.T.Bq(h,this.U),this.T.zz(this.tQ),g.f(this,this.T),this.V(this.T.dismissButton,"click",this.QN),this.V(this.T.playButton,"click",this.zE),this.V(this.T.element,"dblclick",this.zE));this.api.createClientVe(this.x8,this,139609,!0);this.api.createClientVe(this.sX,this,140127,!0);this.api.createClientVe(this.UX, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; fxD=function(h){if(h.G.length===0){var t=new SU;h.G.push(t);g.f(h,t);t.zz(h.iP,0)}for(;h.G.length>1;)h.G.pop().dispose();Ix(h.G[0],"100%");h.G[0].startTime=0;h.G[0].title=""}; $Y6=function(h){var t=t===void 0?NaN:t;var Y=new xYn(h.api);h.W.push(Y);g.f(h,Y);Y.zz(h.x8);t>=0&&(Y.element.style.width=t+"px")}; Tw1=function(h){for(;h.C.length;)h.C.pop().dispose()}; ST3=function(h){var t,Y,L,q,z;return(z=g.A((q=g.A((t=h.getWatchNextResponse())==null?void 0:(Y=t.playerOverlays)==null?void 0:(L=Y.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,xD))==null?void 0:q.playerBar,AIp))==null?void 0:z.chapters}; Ixb=function(h){for(var t=h.G,Y=[],L=0;L=V&&d<=W&&z.push(X)}H>0&&(h.x8.style.height=H+"px");V=h.W[L];W=z;X=q;C=H;d=L===0;d=d===void 0?!1:d;EqD(V,C);y=W;U=V.T;d=d===void 0?!1:d;var Q=1E3/y.length,J=[];J.push({x:0,y:100});for(var e=0;e0&&(Y=z[z.length-1])}g.PA(h);l=[];t=g.b(t.heatMarkersDecorations||[]);for(q=t.next();!q.done;q=t.next())if(q=g.A(q.value,tDp))H=q.label,L=Y=w=void 0,l.push({visibleTimeRangeStartMillis:(w=q.visibleTimeRangeStartMillis)!=null?w:-1,visibleTimeRangeEndMillis:(Y=q.visibleTimeRangeEndMillis)!=null?Y:-1,decorationTimeMillis:(L=q.decorationTimeMillis)!=null?L:NaN,label:H?g.Lc(H):""});h.heatMarkersDecorations=l}}; P7L=function(h,t){h.C.push(t);g.f(h,t);t.zz(h.nL,h.nL.children.length)}; mYL=function(h,t){t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next()){Y=Y.value;var L=mZ(h,Y.timeRangeStartMillis/(h.S.G*1E3),DI(h)),q=h.api.N("delhi_modern_web_player")?.667:.6;g.$9(Y.element,"transform","translateX("+L+"px) scaleX("+q+")")}}; R1W=function(h,t){var Y=0,L=!1;t=g.b(t);for(var q=t.next();!q.done;q=t.next()){q=q.value;if(g.A(q,gg$)){q=g.A(q,gg$);var z={startTime:NaN,title:null,onActiveCommand:void 0},V=q.title;z.title=V?g.Lc(V):"";V=q.timeRangeStartMillis;V!=null&&(z.startTime=V);z.onActiveCommand=q.onActiveCommand;q=z;Y===0&&q.startTime!==0&&(h.G[Y].startTime=0,h.G[Y].title="",h.G[Y].onActiveCommand=q.onActiveCommand,Y++,L=!0);h.G.length<=Y&&(z=new SU,h.G.push(z),g.f(h,z),z.zz(h.iP,h.iP.children.length));h.G[Y].startTime= q.startTime;h.G[Y].title=q.title?q.title:"";h.G[Y].onActiveCommand=q.onActiveCommand;h.G[Y].index=L?Y-1:Y}Y++}for(;Y=0;L--)if(h.G[L].width>0){k5W(h.G[L],0);var q=Math.floor(h.G[L].width);h.G[L].width=q;Ix(h.G[L],q+"px");break}h.G[Y].width=0;Ix(h.G[Y],"0")}else Y===h.G.length-1?(L=Math.floor(h.G[Y].width+t),h.G[Y].width=L,Ix(h.G[Y],L+"px")):(t=h.G[Y].width+t,L=Math.round(t),t-=L,h.G[Y].width=L,Ix(h.G[Y],L+"px"));Y=0;if(h.W.length===h.G.length)for(t=0;t< h.W.length;t++)L=h.G[t].width,h.W[t].element.style.width=L+"px",h.W[t].element.style.left=Y+"px",Y+=L+t$(h);h.api.N("delhi_modern_web_player")&&(h.G.length===1?h.G[0].T.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(h.G[0].T.classList.remove("ytp-progress-bar-end"),h.G[0].T.classList.add("ytp-progress-bar-start"),h.G[h.G.length-1].T.classList.add("ytp-progress-bar-end")))}; YNW=function(h,t){var Y=0,L=!1,q=h.G.length,z=h.S.G*1E3;z===0&&(z=h.api.getProgressState().seekableEnd*1E3);if(z>0&&h.U>0){for(var V=h.U-t$(h)*h.X5,l=h.G$===0?3:V*h.G$,H=g.b(h.G),w=H.next();!w.done;w=H.next())w.value.width=0;for(;Y1);w=(z===0?0:H/z*V)+h.G[Y].width;if(w>l)h.G[Y].width=w;else{h.G[Y].width=0;var W=h,y=Y,X=W.G[y-1];X!==void 0&&X.width>0? X.width+=w:yh.G$&&(h.G$=H/z),L=!0)}Y++}}return L}; h$=function(h){if(h.U){var t=h.api.getProgressState(),Y=h.api.getVideoData();if(!(Y&&Y.enableServerStitchedDai&&Y.Dw)||isFinite(t.current)){var L;if(((L=h.api.getVideoData())==null?0:zM(L))&&t.airingStart&&t.airingEnd)var q=iK(h,t.airingStart,t.airingEnd);else if(h.api.getPresentingPlayerType()===2){var z,V,l;q=(Y=(q=h.api.getVideoData())==null?void 0:(z=q.getPlayerResponse())==null?void 0:(V=z.playerConfig)==null?void 0:(l=V.webPlayerConfig)==null?void 0:l.skippableAdProgressBarDuration)?iK(h,t.seekableStart, Y/1E3):iK(h,t.seekableStart,t.seekableEnd)}else q=iK(h,t.seekableStart,t.seekableEnd);z=dP(q,t.loaded,0);t=dP(q,t.current,0);V=h.S.T!==q.T||h.S.G!==q.G;h.S=q;gJ(h,t,z);V&&Lvp(h);qNW(h)}}}; iK=function(h,t,Y){return z7L(h)?new oD(Math.max(t,h.z$.startTimeMs/1E3),Math.min(Y,h.z$.endTimeMs/1E3)):new oD(t,Y)}; NlD=function(h,t){var Y,L,q;t=g.A((Y=t.getWatchNextResponse())==null?void 0:(L=Y.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:q.decoratedPlayerBarRenderer,xD);if(t==null?0:t.progressColor)for(Y=0;Y1){Y=Ye(h,t.S,!0);for(var L=0,q=0;q0&&(L+=h.G[q].width,L+=t$(h));Y=(h.G[Y].startTime+(t.S-L)/h.G[Y].width*((Y===h.G.length-1?h.S.G*1E3:h.G[Y+1].startTime)-h.G[Y].startTime))/1E3||0}return Y}; qs=function(h,t,Y,L,q){t=t<0?0:Math.floor(Math.min(t,h.api.getDuration())*1E3);Y=Y<0?0:Math.floor(Math.min(Y,h.api.getDuration())*1E3);h=h.progressBar.visualElement;L={seekData:{startMediaTimeMs:t,endMediaTimeMs:Y,seekSource:L}};(t=g.yy())&&g.f$(Oe)(void 0,t,h,q,L,void 0)}; Hlc=function(h,t,Y){if(Y>=h.G.length)return!1;var L=h.U-t$(h)*h.X5;return Math.abs(t-h.G[Y].startTime/1E3)/h.S.G*L<4}; Lvp=function(h){h.Df.style.removeProperty("height");for(var t=g.b(Object.keys(h.lP)),Y=t.next();!Y.done;Y=t.next())wwL(h,Y.value);zV(h);gJ(h,h.AQ,h.Pq)}; DI=function(h){var t=h.MD.x;t=g.n0(t,0,h.U);h.lZ.update(t,h.U);return h.lZ}; Ns=function(h){return(h.L?135:90)-V$(h)}; V$=function(h){var t=48,Y=h.api.J();h.api.N("delhi_modern_web_player")?t=h.api.getPlayerSize().width<=528?64:h.L?96:72:h.L?t=54:g.kk(Y)&&!Y.T&&(t=40);return t}; gJ=function(h,t,Y){h.AQ=t;h.Pq=Y;var L=DI(h),q=h.S.G,z=lbL(h.S,h.AQ),V=g.BV("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.XA(z,!0),DURATION:g.XA(q,!0)}),l=yA(h.G,z*1E3);l=h.G[l].title;h.update({ariamin:Math.floor(h.S.T),ariamax:Math.floor(q),arianow:Math.floor(z),arianowtext:l?l+" "+V:V});q=h.clipStart;z=h.clipEnd;h.z$&&h.api.getPresentingPlayerType()!==2&&(q=h.z$.startTimeMs/1E3,z=h.z$.endTimeMs/1E3);q=dP(h.S,q,0);l=dP(h.S,z,1);V=h.api.getVideoData();z=g.n0(t,q,l);Y=(V==null?0:g.g8(V))?1:g.n0(Y, q,l);t=mZ(h,t,L);g.$9(h.lB,"transform","translateX("+t+"px)");h.api.N("delhi_modern_web_player")&&h.api.N("delhi_modern_web_player_cutout")&&Wv3(h,t);lK(h,L,q,z,"PLAY_PROGRESS");(V==null?0:zM(V))?(t=h.api.getProgressState().seekableEnd)&&lK(h,L,z,dP(h.S,t),"LIVE_BUFFER"):lK(h,L,q,Y,"LOAD_PROGRESS");if(h.api.N("web_player_heat_map_played_bar")){var H;(H=h.W[0])!=null&&H.C.setAttribute("width",(z*100).toFixed(2)+"%")}}; Wv3=function(h,t){h.api.getPresentingPlayerType()!==1?h.iP.style.removeProperty("clip-path"):(t||(t=mZ(h,h.AQ,DI(h))),h.iP.style.clipPath='path("'+(h.NU?y1D(h,8,t,h.L?50:36,0,6):y1D(h,4,t,h.L?34:24,2,3))+'")')}; y1D=function(h,t,Y,L,q,z){var V=Y-L/2;Y+=L/2;t+=q;return"M 0 "+q+" L 0 "+(t+" L ")+(V+" "+t+" C ")+(V+z+" "+t+" "+(V+z)+" "+q+" "+V+" "+q+" L 0 ")+(q+" M ")+(Y+" "+q+" L ")+(h.U+" "+q+" L ")+(h.U+" "+t+" L ")+(Y+" "+t+" C ")+(Y-z+" "+t+" "+(Y-z)+" "+q+" "+Y+" "+q)}; lK=function(h,t,Y,L,q){var z=h.G.length,V=t.G-h.X5*t$(h),l=Y*V;Y=Ye(h,l);var H=L*V;V=Ye(h,H);q==="HOVER_PROGRESS"&&(V=Ye(h,t.G*L,!0),H=t.G*L-XwL(h,t.G*L)*t$(h));L=Math.max(l-U5W(h,Y),0);for(l=Y;l=h.G.length)return h.U;for(var Y=0,L=0;L0||h.m$.clientWidth>0?(z=t.clientWidth/Y,h=-1*h.M6.clientWidth/Y):(z/=Y,h=-1*h.G[q].element.offsetLeft/Y),g.$9(t,"background-size",z+"px"),g.$9(t,"background-position-x",h+"px"))}; Hr=function(h,t,Y,L,q){q||h.api.J().T?t.style.width=Y+"px":g.$9(t,"transform","scalex("+(L?Y/L:0)+")")}; Ye=function(h,t,Y){var L=0;(Y===void 0?0:Y)&&(t-=XwL(h,t)*t$(h));Y=g.b(h.G);for(var q=Y.next();!q.done;q=Y.next()){q=q.value;if(t>q.width)t-=q.width;else break;L++}return L===h.G.length?L-1:L}; mZ=function(h,t,Y){var L=t*h.S.G*1E3;for(var q=-1,z=g.b(h.G),V=z.next();!V.done;V=z.next())V=V.value,L>V.startTime&&V.width>0&&q++;L=q<0?0:q;q=Y.G-t$(h)*h.X5;return t*q+t$(h)*L+Y.W}; XwL=function(h,t){for(var Y=h.G.length,L=0,q=g.b(h.G),z=q.next();!z.done;z=q.next())if(z=z.value,z.width!==0)if(t>z.width)t-=z.width,t-=t$(h),L++;else break;return L===Y?Y-1:L}; g.Fvi=function(h,t,Y,L){var q=h.U!==Y,z=h.L!==L;h.uM=t;h.U=Y;h.L=L;Rx(h)&&(t=h.T)!=null&&(t.scale=L?1.5:1);Lvp(h);h.G.length===1&&(h.G[0].width=Y||0);q&&g.PA(h);h.T&&z&&Rx(h)&&(h.T.isEnabled&&(Y=h.L?135:90,L=Y-V$(h),h.tQ.style.height=Y+"px",g.$9(h.x8,"transform","translateY("+-L+"px)"),g.$9(h.progressBar,"transform","translateY("+-L+"px)")),vqL(h.T))}; zV=function(h){var t=!!h.z$&&h.api.getPresentingPlayerType()!==2,Y=h.clipStart,L=h.clipEnd,q=!0,z=!0;t&&h.z$?(Y=h.z$.startTimeMs/1E3,L=h.z$.endTimeMs/1E3):(q=Y>h.S.T,z=h.S.G>0&&Lh.AQ);g.iA(h.Df,"ytp-scrubber-button-hover",Y===L&&h.G.length>1);if(h.api.N("web_player_heat_map_played_bar")){var z;(z=h.W[0])!=null&&z.G.setAttribute("width",(t.T*100).toFixed(2)+"%")}}}; wwL=function(h,t){var Y=h.lP[t];t=h.dP[t];var L=DI(h),q=dP(h.S,Y.start/1E3,0),z=btL(Y,h.L)/L.width;var V=dP(h.S,Y.end/1E3,1);z!==Number.POSITIVE_INFINITY&&(q=g.n0(q,0,V-z));V=Math.min(V,q+z);Y.color&&(t.style.background=Y.color);Y=q;t.style.left=Math.max(Y*L.G+L.W,0)+"px";Hr(h,t,g.n0((V-Y)*L.G+L.W,0,L.width),L.width,!0)}; sNW=function(h,t){var Y=t.getId();h.lP[Y]===t&&(g.FK(h.dP[Y]),delete h.lP[Y],delete h.dP[Y])}; Rx=function(h){var t=g.zH(h.api.J())&&(h.api.N("web_shorts_pip")||h.api.N("web_watch_pip")),Y;return!((Y=h.api.getVideoData())==null?0:Y.isLivePlayback)&&!h.api.isMinimized()&&!h.api.isInline()&&(!h.api.bM()||!t)}; wJ=function(h){h.T&&(h.T.disable(),h.yG=0,h.x8.style.removeProperty("transform"),h.progressBar.style.removeProperty("transform"),h.tQ.style.removeProperty("height"),h.element.parentElement&&h.element.parentElement.style.removeProperty("height"))}; jN6=function(h,t){var Y=t/Ns(h)*V$(h);g.$9(h.progressBar,"transform","translateY("+-t+"px)");g.$9(h.x8,"transform","translateY("+-t+"px)");g.$9(h.tQ,"transform","translateY("+Y+"px)");h.tQ.style.height=t+Y+"px";h.element.parentElement&&(h.element.parentElement.style.height=V$(h)-Y+"px")}; Zlr=function(h,t){t?h.Y||(h.element.removeAttribute("aria-disabled"),h.Y=new g.kY(h.progressBar,!0),h.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&h.Y.subscribe("hoverstart",h.GDz,h),h.Y.subscribe("hovermove",h.RyQ,h),h.Y.subscribe("hoverend",h.uZz,h),h.Y.subscribe("dragstart",h.oeb,h),h.Y.subscribe("dragmove",h.SYi,h),h.Y.subscribe("dragend",h.TzU,h),h.api&&h.api.N("delhi_modern_web_player")&&h.api.N("delhi_modern_web_player_cutout")&&(h.eh=new g.kY(h.progressBar, !0),h.eh.subscribe("hoverstart",function(){h.NU=!0;Wv3(h)},h),h.eh.subscribe("hoverend",function(){h.NU=!1; Wv3(h)},h)),h.qW=h.listen("keydown",h.lE)):h.Y&&(h.element.setAttribute("aria-disabled","true"),h.W3(h.qW),h.Y.cancel(),h.Y.dispose(),h.Y=null)}; t$=function(h){return h.api.N("delhi_modern_web_player")?4:h.L?3:2}; z7L=function(h){var t;return!((t=h.z$)==null||!t.postId)&&h.api.getPresentingPlayerType()!==2}; Wr=function(h,t){g.I.call(this,{Z:"button",Ei:["ytp-remote-button","ytp-button"],j:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},o0:"{{icon}}"});this.K=h;this.Rm=t;this.G=null;this.V(h,"onMdxReceiversChange",this.Hm);this.V(h,"presentingplayerstatechange",this.Hm);this.V(h,"appresize",this.Hm);h.createClientVe(this.element,this,139118);this.Hm();this.listen("click",this.T,this);c5(h,this.element,this)}; y$=function(h,t){g.I.call(this,{Z:"button",Ei:["ytp-button","ytp-settings-button"],j:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":m2(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},B:[h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.sS()]});this.K=h;this.Rm=t;this.T=!0;this.listen("click",this.S);this.V(h,"onPlaybackQualityChange",this.updateBadge);this.V(h,"videodatachange",this.updateBadge);this.V(h,"webglsettingschanged",this.updateBadge);this.V(h,"appresize",this.G);c5(h,this.element,this);this.K.createClientVe(this.element,this,28663);this.updateBadge();this.G(h.Bm().getPlayerSize())}; blW=function(h,t){h.T=!!t;h.G(h.K.Bm().getPlayerSize())}; X_=function(h,t){NN.call(this,"Annotations",g.U$.oP);this.K=h;this.Rm=t;this.G=!1;h.N("web_settings_menu_icons")&&(t=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(t));this.V(h,"videodatachange",this.Hm);this.V(h,"onApiChange",this.Hm);this.subscribe("select",this.onSelect,this);this.Hm()}; Ud=function(h,t){g.aq.call(this,"Audio track",g.U$.AUDIO,h,t);this.K=h;this.tracks={};g.mS(this.element,"ytp-audio-menu-item");this.countLabel=new g.I({Z:"div",B:[{Z:"span",o0:"Audio track"},{Z:"span",D:"ytp-menuitem-label-count",o0:"{{content}}"}]});h.N("web_settings_menu_icons")&&(t=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:GIc(),this.setIcon(t));g.f(this,this.countLabel);g.P5(this,this.countLabel);this.V(h,"videodatachange",this.Hm);this.V(h,"onPlaybackAudioChange",this.Hm);this.Hm()}; Ce=function(h,t){NN.call(this,"Autoplay",g.U$.SZ);this.K=h;this.Rm=t;this.G=!1;this.S=[];this.V(h,"presentingplayerstatechange",this.T);this.subscribe("select",this.onSelect,this);h.createClientVe(this.element,this,113682);this.T()}; ogb=function(h,t){g.mM.call(this,g.Dh({"aria-haspopup":"false"}),0,"More options");this.K=h;this.Rm=t;this.V(this.element,"click",this.onClick);this.Rm.Qb(this)}; d5L=function(h,t){var Y;g.zH(h.J())&&(Y={Z:"div",D:"ytp-panel-footer-content",B:[{Z:"span",o0:"Adjust download quality from your "},{Z:"a",D:"ytp-panel-footer-content-link",o0:"Settings",j:{href:"/account_downloads"}}]});g.aq.call(this,"Quality",g.U$.LR,h,t,void 0,void 0,Y);this.K=h;this.R0={};this.L={};this.W={};this.Wm=new Set;this.G=this.U=!1;this.C="unknown";this.AQ="";this.x8=new g.KN;g.f(this,this.x8);this.U=this.K.N("web_player_use_new_api_for_quality_pullback");this.G=this.K.N("web_player_enable_premium_hbr_playback_cap"); h.N("web_settings_menu_icons")&&(t=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(t));g.mS(this.T.element,"ytp-quality-menu");this.V(h,"videodatachange",this.J5);this.V(h,"videoplayerreset",this.J5);this.V(h,"onPlaybackQualityChange",this.O5);this.J5();h.createClientVe(this.element,this,137721)}; QNc=function(h,t,Y){var L=h.R0[t],q=g.FS[t];return GOn(h,L?L.qualityLabel:q?q+"p":"Auto",t,Y)}; r13=function(h,t,Y,L,q){var z=(t=h.G?h.W[t]:h.L[t])&&t.quality,V=t&&t.qualityLabel;V=V?V:"Auto";L&&(V="("+V);h=GOn(h,V,z||"",q);L&&h.B.push(")");(L=(L=t&&t.paygatedQualityDetails)&&L.paygatedIndicatorText)&&Y&&h.B.push({Z:"div",D:"ytp-premium-label",o0:L});return h}; GOn=function(h,t,Y,L){t={Z:"span",Ei:L,B:[t]};var q;L="ytp-swatch-color";if(h.U||h.G)L="ytp-swatch-color-white";Y==="highres"?q="8K":Y==="hd2880"?q="5K":Y==="hd2160"?q="4K":Y.indexOf("hd")===0&&Y!=="hd720"&&(q="HD");q&&(t.B.push(" "),t.B.push({Z:"sup",D:L,o0:q}));return t}; Ms=function(h){Eq.call(this,h.getAvailablePlaybackRates()[0],h.getAvailablePlaybackRates()[h.getAvailablePlaybackRates().length-1],.05,h.getPlaybackRate(),{Z:"div",D:"ytp-speedslider-indicator-container",B:[{Z:"div",D:"ytp-speedslider-badge"},{Z:"p",D:"ytp-speedslider-text"}]});this.K=h;this.AQ=K7(this.R0,50,this);g.mS(this.T,"ytp-speedslider");this.L=this.Tz("ytp-speedslider-text");this.x8=this.Tz("ytp-speedslider-badge");c1c(this);this.V(this.T,"change",this.Wm)}; c1c=function(h){h.L.textContent=h.G.toFixed(2)+"x";var t=h.G>2&&h.K.N("enable_web_premium_varispeed");h.x8.classList.toggle("ytp-speedslider-premium-badge",t);h.x8.setAttribute("aria-label",t?"Premium":"")}; F_=function(h,t,Y,L,q,z,V){g.I.call(this,{Z:"div",D:"ytp-slider-section",j:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},B:[{Z:"div",D:"ytp-slider",B:[{Z:"div",D:"ytp-slider-handle"}]}]});this.Y=h;this.L=t;this.T=Y;this.S=L;this.AQ=q;this.gU=z;this.range=this.S-this.T;this.X5=this.Tz("ytp-slider-section");this.W=this.Tz("ytp-slider");this.x8=this.Tz("ytp-slider-handle");this.C=new g.kY(this.W, !0);this.G=V?V:Y;g.f(this,this.C);this.C.subscribe("dragmove",this.H$,this);this.V(this.element,"keydown",this.OR);this.V(this.element,"wheel",this.m0);this.init()}; sd=function(h){F_.call(this,.05,.05,h.getAvailablePlaybackRates()[0],h.getAvailablePlaybackRates()[h.getAvailablePlaybackRates().length-1],150,20,h.getPlaybackRate());this.K=h;this.U=g.y_("P");this.Wm=K7(this.R0,50,this);g.mS(this.W,"ytp-speedslider");g.mS(this.U,"ytp-speedslider-text");h=this.U;var t=this.W;t.parentNode&&t.parentNode.insertBefore(h,t.nextSibling);unL(this);this.V(this.K,"onPlaybackRateChange",this.updateValues)}; unL=function(h){h.U.textContent=e7n(h,h.G)+"x"}; e7n=function(h,t){h=Number(g.n0(t,h.T,h.S).toFixed(2));t=Math.floor((h+.001)*100%5+2E-15);var Y=h;t!==0&&(Y=h-t*.01);return Number(Y.toFixed(2))}; J1W=function(h){g.iR.call(this,{Z:"div",D:"ytp-speedslider-component"});h.N("web_settings_use_input_slider")?this.G=new Ms(h):this.G=new sd(h);g.f(this,this.G);this.element.appendChild(this.G.element)}; pwc=function(h){var t=new J1W(h);dY.call(this,h,t,"Custom");g.f(this,t)}; vgL=function(h,t){var Y=new pwc(h);g.aq.call(this,"Playback speed",g.U$.nE,h,t,jX(h)?void 0:"Custom",jX(h)?void 0:function(){g.cg(t,Y)}); var L=this;this.W=!1;g.f(this,Y);this.C=new Ms(h);g.f(this,this.C);if(h.N("web_settings_menu_icons")){var q=h.N("delhi_modern_web_player_icons")?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{Z:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(q)}this.K=h;this.W=!1;this.AQ=null;jX(h)?(this.G=g.BV("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.K.getPlaybackRate().toString()}),this.U=this.K.getPlaybackRate()):this.U=this.G=null;this.L=this.K.getAvailablePlaybackRates();this.V(h,"presentingplayerstatechange",this.Hm);var z;((z=this.K.getVideoData())==null?0:z.JJ())&&this.V(h,"serverstitchedvideochange",this.Hm);this.V(this.C.T,"change",function(){L.W=!0;L.Hm()}); this.Hm()}; Kvi=function(h,t){var Y=Zt(t);h.G&&(h.W||t===h.U)?(h.hP(h.G),h.I4(t.toString())):h.hP(Y)}; x53=function(h){h.AS(h.L.map(Zt));h.G=null;h.U=null;var t=h.K.getPlaybackRate();jX(h.K)&&aTb(h,t);!h.L.includes(t)||h.W?h.hP(h.G):h.hP(Zt(t))}; aTb=function(h,t){h.U=t;h.G=g.BV("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:t.toString()});t=h.L.map(Zt);t.unshift(h.G);h.AS(t)}; Zt=function(h){return h.toString()}; jX=function(h){return h.N("web_settings_menu_surface_custom_playback")}; Egn=function(h){return h.N("web_settings_menu_surface_custom_playback")&&h.N("web_settings_use_input_slider")}; Olp=function(h,t,Y,L){var q=new g.GG(t,void 0,"Video Override");g.aq.call(this,L.text||"",h,t,Y,"Video Override",function(){g.cg(Y,q)}); var z=this;g.mS(this.element,"ytp-subtitles-options-menu-item");this.setting=L.option.toString();h=L.options;this.settings=g.P1(h,this.Vr,this);this.U=q;g.f(this,this.U);t=new g.mM({Z:"div",D:"ytp-menuitemtitle",o0:"Allow for a different caption style if specified by the video."},0);g.f(this,t);this.U.Qb(t,!0);this.W=new g.mM({Z:"div",D:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},B:[{Z:"div",D:"ytp-menuitem-label",o0:"On"}]},-1);g.f(this,this.W);this.U.Qb(this.W,!0);this.V(this.W.element, "click",function(){kO1(z,!0)}); this.G=new g.mM({Z:"div",D:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},B:[{Z:"div",D:"ytp-menuitem-label",o0:"Off"}]},-2);g.f(this,this.G);this.U.Qb(this.G,!0);this.V(this.G.element,"click",function(){kO1(z,!1)}); this.AS(g.CQ(h,this.Vr))}; kO1=function(h,t){h.publish("settingChange",h.setting+"Override",!t);h.Rm.LL()}; bK=function(h,t){g.GG.call(this,h,void 0,"Options");var Y=this;this.Wr={};for(var L=0;L=0);if(!(t<0||t===h.W)){h.W=t;t=243*h.scale;var Y=141*h.scale,L=Jjb(h.T,h.W,t);VbD(h.bg,L,t,Y,!0);h.x8.start()}}; U8W=function(h){var t=h.G;h.type===3&&h.R0.stop();h.api.removeEventListener("appresize",h.AQ);h.Y||t.setAttribute("title",h.S);h.S="";h.G=null;h.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});h.wrapper.style.width=""}; MVD=function(h){g.I.call(this,{Z:"button",Ei:["ytp-watch-later-button","ytp-button"],j:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.kk(h.J()))},B:[{Z:"div",D:"ytp-watch-later-icon",o0:"{{icon}}"},{Z:"div",D:"ytp-watch-later-title",o0:"Watch later"}]});this.K=h;this.icon=null;this.visible=this.isRequestPending=this.G=!1;HO3(h);h.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.V(h,"videoplayerreset",this.onReset);this.V(h,"appresize", this.IH);this.V(h,"videodatachange",this.IH);this.V(h,"presentingplayerstatechange",this.IH);this.IH();h=this.K.J();var t=g.GI("yt-player-watch-later-pending");h.W&&t?(Dob(),CaL(this)):this.Hm(2);g.iA(this.element,"ytp-show-watch-later-title",g.kk(h));c5(this.K,this.element,this)}; FsD=function(h){var t=h.K.getPlayerSize(),Y=h.K.J(),L=h.K.getVideoData(),q=g.kk(Y)&&g.Ko(h.K)&&g.R(h.K.getPlayerStateObject(),128),z=Y.S;return Y.Y1&&t.width>=240&&!L.isAd()&&L.Y1&&!q&&!L.Ye&&!h.K.isEmbedsShortsMode()&&!z}; sHD=function(h,t){Z5c(g.iC(h.K.J()),"wl_button",function(){Dob({videoId:t});window.location.reload()})}; CaL=function(h){if(!h.isRequestPending){h.isRequestPending=!0;h.Hm(3);var t=h.K.getVideoData();t=h.G?t.removeFromWatchLaterCommand:t.addToWatchLaterCommand;var Y=h.K.D3(),L=h.G?function(){h.G=!1;h.isRequestPending=!1;h.Hm(2);h.K.J().Y&&h.K.jM("WATCH_LATER_VIDEO_REMOVED")}:function(){h.G=!0; h.isRequestPending=!1;h.Hm(1);h.K.J().T&&h.K.uT(h.element);h.K.J().Y&&h.K.jM("WATCH_LATER_VIDEO_ADDED")}; QD(Y,t).then(L,function(){h.isRequestPending=!1;h.Hm(4,"An error occurred. Please try again later.");h.K.J().Y&&h.K.jM("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; jHr=function(h,t){if(t!==h.icon){switch(t){case 3:var Y=yO();break;case 1:Y=z6();break;case 2:Y={Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:Y={Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path", AJ:!0,j:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}h.updateValue("icon",Y);h.icon=t}}; ZTL=function(){g.mx.apply(this,arguments);this.Jb=(this.YS=g.kk(this.api.J()))&&(this.api.J().T||Sa()||Tz());this.Us=48;this.Xq=69;this.yd=this.CL=null;this.EF=[];this.m5=this.fL=this.HF=this.QV=this.XD=null;this.CO=[];this.contextMenu=this.yM=this.overflowButton=this.zy=this.xj=this.searchButton=this.copyLinkButton=this.shareButton=this.QU=this.nQ=this.title=this.channelAvatar=this.kL=this.tooltip=null;this.PH=!1;this.GG=this.M5=this.ac=this.AG=null;this.Q78=this.Ee=this.yh=!1}; bTL=function(h){var t=h.api.J(),Y=g.R(h.api.getPlayerStateObject(),128);return t.W&&Y&&!h.api.isFullscreen()}; ohn=function(h){if(h.CC()&&!h.api.isEmbedsShortsMode()&&h.zy){var t=h.api.N("web_player_hide_overflow_button_if_empty_menu");!h.QU||t&&!FsD(h.QU)||oP6(h.zy,h.QU);!h.shareButton||t&&!nPL(h.shareButton)||oP6(h.zy,h.shareButton);!h.copyLinkButton||t&&!Exr(h.copyLinkButton)||oP6(h.zy,h.copyLinkButton)}else{t=h.api.J().getWebPlayerContextConfig();if(h.zy){for(var Y=h.zy,L=g.b(Y.actionButtons),q=L.next();!q.done;q=L.next())q.value.detach();Y.actionButtons=[]}h.searchButton&&!g.sO(h.nQ.element,h.searchButton.element)&& h.searchButton.zz(h.nQ.element);!h.QU||(t==null?0:t.hideTopWatchNextButton)||g.sO(h.nQ.element,h.QU.element)||h.QU.zz(h.nQ.element);!h.shareButton||(t==null?0:t.hideTopShareButton)||g.sO(h.nQ.element,h.shareButton.element)||h.shareButton.zz(h.nQ.element);h.copyLinkButton&&!g.sO(h.nQ.element,h.copyLinkButton.element)&&h.copyLinkButton.zz(h.nQ.element)}}; d8r=function(h,t,Y){t=Y?t.lastElementChild:t.firstElementChild;for(var L=null;t;){if(Sr(t,"display")!=="none"&&t.getAttribute("aria-hidden")!=="true"){var q=void 0;t.tabIndex>=0?q=t:q=d8r(h,t,Y);q&&(L?Y?q.tabIndex>L.tabIndex&&(L=q):q.tabIndexL/1E3+1)return{msg:"in-the-past"};if(z.isLivePlayback&&!isFinite(L))return{msg:"live-infinite"};(L=t.iL())&&L.isView()&&(L=L.mediaElement);if(L&&L.Nx().length>12&&g.e_(q))return{msg:"played-ranges"};if(!q.S)return null;if(!V)return{msg:"no-pvd-formats"};if(!q.S.G||!V.G)return{msg:"non-dash"};L=V.videoInfos[0];var l=q.S.videoInfos[0];h.AQ&&X$(z)&&(L=t.FC(), l=Y.FC());if(!L||!l)return{msg:"no-video-info"};if(h.U&&(rq(L)||rq(l)))return{msg:"av1"};t=h.W&&z.m2()&&Dd();if(l.containerType!==L.containerType)if(t)z.Pm("sgap",{ierr:"container"});else return{msg:"container"};if(h.X&&!t&&(l.wU!==L.wU||l.wU===""||L.wU===""))return{msg:"codec"};if(h.C&&l.video&&L.video&&Math.abs(l.video.width/l.video.height-L.video.width/L.video.height)>.01)return{msg:"ratio"};if(g.e_(z)&&g.e_(q))return{msg:"content-protection"};V=V.G[0];q=q.S.G[0];Y=V.audio;var H=q.audio;if(Y.sampleRate!== H.sampleRate&&!g.wq)if(t)z.Pm("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:V.itag,cr:Y.sampleRate,ni:q.itag,nr:H.sampleRate};return(Y.numChannels||2)!==(H.numChannels||2)?{msg:"channel-count"}:h.Y&&z.m2()&&L.video.fps!==l.video.fps?{msg:"fps"}:null}; cFW=function(h,t,Y){var L=h.getVideoData(),q=t.getVideoData();if(!L.J().supportsGaplessShorts())return{nq:"env"};if(Y.L?L.w0&&!L.isAd()||q.w0&&!q.isAd():Y.T?L.w0&&!L.isAd()||q.w0:Y.S?q.w0&&!q.isAd()||L.w0:L.w0||q.w0)return{nq:"autoplay"};if(L.endSeconds>0)return{nq:"endcr"};if(!L.C)return{nq:"client"};if(!h.RT())return{nq:"no-empty"};h=rFL(Y,h,t,Infinity);return h!=null?{nq:h.msg}:null}; ke=function(h){g.O.call(this);this.app=h;this.X=this.W=this.T=this.G=null;this.S=1;this.events=new g.UF(this);this.events.V(this.app.m_,g.kO("gaplessshortslooprange"),this.Y);g.f(this,this.events)}; uji=function(){this.G=this.C=this.S=this.T=this.L=this.U=this.AQ=this.Y=this.X=this.W=!1}; eFL=function(h){var t=new uji;t.W=h.N("h5_gapless_support_types_diff");t.Y=h.N("h5_gapless_error_on_fps_diff");t.AQ=h.N("html5_gapless_use_format_info_fix");t.U=h.N("html5_gapless_disable_on_av1")&&!h.N("html5_gapless_enable_on_av1");t.X=h.N("html5_gapless_check_codec_diff_strictly");t.L=h.N("html5_gapless_on_ad_autoplay");t.C=h.N("html5_gapless_disable_diff_aspect_radio");t.T=h.N("html5_gapless_ad_autoplay_on_ad_to_video_only");t.G=h.N("html5_pseudogapless_shorts_seek_to_next_start");t.S=h.N("html5_gapless_ad_autoplay_on_video_to_ad_only"); return t}; g.Od=function(h,t,Y,L){L=L===void 0?!1:L;NO.call(this);this.mediaElement=h;this.start=t;this.end=Y;this.G=L}; JFW=function(h,t,Y,L,q,z){z=z===void 0?0:z;g.O.call(this);var V=this;this.policy=h;this.G=t;this.T=Y;this.UY=q;this.X=z;this.W=this.S=null;this.currentVideoDuration=this.U=-1;this.C=!1;this.Fo=new VT;this.jU=L-t.O3()*1E3;this.Fo.then(void 0,function(){}); this.timeout=new g.nE(function(){V.MF("timeout")},1E4); g.f(this,this.timeout);this.Y=isFinite(L)||this.UY.J().experiments.I0("html5_pseudogapless_shorts")&&X$(t.getVideoData());this.status={status:0,error:null}}; vhn=function(h){var t,Y,L,q,z,V,l,H,w;return g.k(function(W){if(W.T==1){if(h.Ui())return W.return(Promise.reject(Error(h.status.error||"disposed")));h.timeout.start();return g.K(W,h.Fo,2)}t=h.G.iL();if(t.isEnded())return h.MF("ended_in_finishTransition"),W.return(Promise.reject(Error(h.status.error||"")));if(!h.W||!i8(h.W))return h.MF("next_mse_closed"),W.return(Promise.reject(Error(h.status.error||"")));if(h.T.zO()!==h.W)return h.MF("next_mse_mismatch"),W.return(Promise.reject(Error(h.status.error|| "")));Y=ne(h);L=Y.HU;q=Y.zS;z=Y.Tr;h.G.EL(!1,!0);V=pTD(t,L,z,!h.T.getVideoData().isAd());h.T.setMediaElement(V);(l=h.G.OE())&&h.T.b_(l.nT,l.AM);h.Y&&(h.policy.G||h.T.seekTo(h.T.getCurrentTime()+.001,{yN:!0,WC:3,EY:"gapless_pseudo"}),V.play(),dj());H=t.wP();H.cpn=h.G.getVideoData().clientPlaybackNonce;H.st=""+L;H.et=""+z;h.T.Pm("gapless",H);h.G.Pm("gaplessTo",{cpn:h.T.getVideoData().clientPlaybackNonce});w=h.G.getPlayerType()===h.T.getPlayerType();h.G.We(q,!0,!1,w,h.T.getVideoData().clientPlaybackNonce); h.T.We(h.T.getCurrentTime(),!0,!0,w,h.G.getVideoData().clientPlaybackNonce);h.T.PY();g.ZL(function(){!h.T.getVideoData().R0&&h.T.getPlayerState().isOrWillBePlaying()&&h.T.CB()}); fe(h,6);h.dispose();return W.return(Promise.resolve())})}; Ehp=function(h){if(h.T.getVideoData().S){var t=h.UY.J().N("html5_gapless_suspend_next_loader")&&h.X===1;h.T.KT(h.W,t,Ksn(h));fe(h,3);aO$(h);var Y=x86(h);t=Y.Fl;Y=Y.ev;t.subscribe("updateend",h.jr,h);Y.subscribe("updateend",h.jr,h);h.jr(t);h.jr(Y)}}; aO$=function(h){h.G.unsubscribe("internalvideodatachange",h.Wu,h);h.T.unsubscribe("internalvideodatachange",h.Wu,h);h.UY.J().N("html5_gapless_use_format_info_fix")&&(h.G.unsubscribe("internalvideoformatchange",h.Wu,h),h.T.unsubscribe("internalvideoformatchange",h.Wu,h));h.G.unsubscribe("mediasourceattached",h.Wu,h);h.T.unsubscribe("statechange",h.Fz,h)}; pTD=function(h,t,Y,L){h=h.isView()?h.mediaElement:h;return new g.Od(h,t,Y,L)}; fe=function(h,t){t<=h.status.status||(h.status={status:t,error:null},t===5&&h.Fo.resolve())}; Ksn=function(h){return h.UY.J().N("html5_gapless_no_clear_buffer_timeline")&&h.X===1&&F$(h.G.getVideoData())}; ne=function(h){var t=h.G.iL();t=t.isView()?t.start:0;var Y=h.G.getVideoData().isLivePlayback?Infinity:h.G.Xn(!0);Y=Math.min(h.jU/1E3,Y)+t;var L=h.Y?100:0;h=Y-h.T.Bx()+L;return{Q8:t,HU:h,zS:Y,Tr:Infinity}}; x86=function(h){return{Fl:h.S.G.Ln,ev:h.S.T.Ln}}; $e=function(h){g.O.call(this);var t=this;this.app=h;this.U=this.T=this.G=null;this.Y=!1;this.S=this.W=null;this.X=eFL(this.app.J());this.C=function(){g.ZL(function(){kN6(t)})}}; OTn=function(h,t,Y,L,q){L=L===void 0?0:L;q=q===void 0?0:q;h.RT()||TV(h);h.W=new VT;h.G=t;var z=Y,V=q===0;V=V===void 0?!0:V;var l=h.app.k8(),H=l.getVideoData().isLivePlayback?Infinity:l.Xn(!0)*1E3;z>H&&(z=H-200,h.Y=!0);V&&l.getCurrentTime()>=z/1E3?h.C():(h.T=l,V&&(V=z,z=h.T,h.app.m_.addEventListener(g.EX("vqueued"),h.C),V=isFinite(V)||V/1E3>z.getDuration()?V:0x8000000000000,h.U=new g.aZ(V,0x8000000000000,{namespace:"vqueued"}),z.addCueRange(h.U)));V=L/=1E3;z=t.getVideoData().G;L&&z&&h.T&&(l=L,H=0, t.getVideoData().isLivePlayback&&(V=Math.min(Y/1E3,h.T.Xn(!0)),H=Math.max(0,V-h.T.getCurrentTime()),l=Math.min(L,t.Xn()+H)),V=eE1(z,l)||L,V!==L&&h.G.Pm("qvaln",{st:L,at:V,rm:H,ct:l}));t=V;L=h.G;L.getVideoData().uM=!0;L.getVideoData().C=!0;L.VR(!0);z={};h.T&&(z=h.T.WS(),V=h.T.getVideoData().clientPlaybackNonce,z={crt:(z*1E3).toFixed(),cpn:V});L.Pm("queued",z);t!==0&&L.seekTo(t+.01,{yN:!0,WC:3,EY:"videoqueuer_queued"});h.S=new JFW(h.X,h.app.k8(),h.G,Y,h.app,q);Y=h.S;Y.status.status!==Infinity&&(fe(Y, 1),Y.G.subscribe("internalvideodatachange",Y.Wu,Y),Y.T.subscribe("internalvideodatachange",Y.Wu,Y),Y.UY.J().N("html5_gapless_use_format_info_fix")&&(Y.G.subscribe("internalvideoformatchange",Y.Wu,Y),Y.T.subscribe("internalvideoformatchange",Y.Wu,Y)),Y.G.subscribe("mediasourceattached",Y.Wu,Y),Y.T.subscribe("statechange",Y.Fz,Y),Y.G.subscribe("newelementrequired",Y.mA,Y),Y.Wu());return h.W}; kN6=function(h){var t,Y,L,q,z,V,l;g.k(function(H){switch(H.T){case 1:if(h.Ui()||!h.W||!h.G)return H.return();h.Y&&h.app.k8().Id(!0,!1);t=null;if(!h.S){H.eM(2);break}g.oc(H,3);return g.K(H,vhn(h.S),5);case 5:g.Q6(H,2);break;case 3:t=Y=g.cW(H);case 2:if(!h.G)return H.return();nhL.w5("vqsp",function(){h.app.D6(h.G)}); if(!h.G)return H.return();L=h.G.iL();h.app.J().N("html5_gapless_seek_on_negative_time")&&L&&L.getCurrentTime()<-.01&&h.G.seekTo(0);nhL.w5("vqpv",function(){h.app.playVideo()}); t&&(h.G?(q=t?t.message:"forced",(z=h.T)==null||z.Pm("gapfulfbk",{r:q}),h.G.XH(q)):(V=h.T)==null||V.Pm("gapsp",{}));l=h.W;TV(h);l&&l.resolve();return H.return(Promise.resolve())}})}; TV=function(h,t){t=t===void 0?!1:t;if(h.T){if(h.U){var Y=h.T;h.app.m_.removeEventListener(g.EX("vqueued"),h.C);Y.removeCueRange(h.U)}h.T=null;h.U=null}h.S&&(h.S.status.status!==6&&(Y=h.S,Y.status.status!==Infinity&&Y.X!==1&&Y.MF("Canceled")),h.S=null);h.W=null;h.G&&!t&&h.G!==h.app.x4()&&h.G!==h.app.k8()&&h.G.dispose();h.G&&t&&h.G.pg();h.G=null;h.Y=!1}; fOb=function(h){var t;return((t=h.S)==null?void 0:t.currentVideoDuration)||-1}; $8i=function(h,t,Y){if(h.RT())return"qie";if(h.G==null||h.G.Ui()||h.G.getVideoData()==null)return"qpd";if(t.videoId!==h.G.Oz())return"vinm";if(fOb(h)<=0)return"ivd";if(Y!==1)return"upt";if((Y=h.S)==null)h=void 0;else if(Y.getStatus().status!==5)h="niss";else if(rFL(Y.policy,Y.G,Y.T,Y.jU)!=null)h="pge";else{t=x86(Y);h=t.Fl;var L=t.ev;t=g.Sk(Y.UY.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var q=Y.U+t;Y.UY.J().experiments.I0("html5_pseudogapless_shorts")&&(q=ne(Y).HU+t);Y=$W(L.iV(), q);h=$W(h.iV(),q);h=!(t>0)||Y&&h?null:"neb"}return h!=null?h:null}; T4b=function(){g.PD.call(this);var h=this;this.fullscreen=0;this.W=this.S=this.pictureInPicture=this.G=this.T=this.inline=!1;this.X=function(){h.vx()}; Y_3(this.X);this.U=this.getVisibilityState(this.eF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.bM(),this.Gx(),this.QH(),this.HI())}; zei=function(h){return!(h.isMinimized()||h.isInline()||h.isBackground()||h.bM()||h.Gx()||h.QH()||h.HI())}; g.A$=function(h){g.O.call(this);this.Me=h;this.videoData=this.playerState=null}; R4=function(h,t){g.O.call(this);var Y=this;this.data=[];this.S=h||NaN;this.T=t||null;this.G=new g.nE(function(){SX(Y);I4(Y)}); g.f(this,this.G)}; Wqi=function(h){SX(h);return h.data.map(function(t){return t.value})}; SX=function(h){var t=(0,g.FH)();h.data.forEach(function(Y){Y.expire0));(L=g.Sk(t, "html5_cobalt_audio_write_ahead_ms"))&&Pi("Media.AudioWriteDurationLocal",L);(L=Y("html5_cobalt_enable_decode_to_texture"))&&Pi("Media.PlayerConfiguration.DecodeToTexturePreferred",L?1:0);h.pZ()&&glD();Error.stackTraceLimit=50;var q=g.Sk(t,"html5_idle_rate_limit_ms");q&&Object.defineProperty(window,"requestIdleCallback",{value:function(z){return window.setTimeout(z,q)}}); hU1(h.X);jdi(Y("html5_use_ump_request_slicer"));Rhp(Y("html5_record_now"));Y("html5_disable_streaming_xhr")&&(wG=!1);Y("html5_byterate_constraints")&&(jF=!0);Y("html5_use_non_active_broadcast_for_post_live")&&(NL=!0);Y("html5_enable_encrypted_av1")&&(Qb=!0);RVL(g.Sk(h.experiments,"html5_sticky_duration_mos"))}; m8L=function(h,t){return h.slice(t.length).replace(/_[a-z]/g,function(Y){return Y.toUpperCase().replace("_","")}).replace("Dot",".")}; D8b=function(h){var t={},Y=Object.keys(h.experiments.flags);Y=g.b(Y);for(var L=Y.next();!L.done;L=Y.next())if(L=L.value,L.startsWith("cobalt_h5vcc"))if(L.startsWith("cobalt_h5vcc_string")){var q=m8L(L,"cobalt_h5vcc_string");L=Wc(h.experiments,L);q&&L&&(t[q]=Pi(q,L))}else L.startsWith("cobalt_h5vcc")&&(q=m8L(L,"cobalt_h5vcc"),L=g.Sk(h.experiments,L),q&&L&&(t[q]=Pi(q,L)));return t}; h$L=function(h,t,Y,L){L=L===void 0?0:L;g.AJ.call(this,Y.Ps());this.Do=h;this.videoData=t;this.duration=L;this.endTime=this.startTime=0;this.G={}}; tZp=function(h){this.end=this.start=h}; g.h4=function(){this.G=new Map;this.S=new Map;this.T=new Map}; iv$=function(){this.T=[];this.G=new Map;this.W=new Map;this.S=new Map}; gvL=function(h,t){t=g.fH(h.T,{Ai:t},function(Y,L){return Y.Ai-L.Ai}); return t>=0?h.T[t]:null}; g.t4=function(h,t,Y,L){g.O.call(this);var q=this;this.api=h;this.Me=t;this.playback=Y;this.app=L;this.Wm=new g.h4;this.S=new Map;this.X=[];this.G=new iv$;this.lP=new Map;this.Ne=null;this.Hq=NaN;this.Pq=this.Q4=null;this.G$=new g.nE(function(){YCL(q,q.Hq,q.Q4||void 0)}); this.events=new g.UF(this);this.tQ=15E3;this.x8=new g.nE(function(){q.R0=!0;q.playback.rO(q.tQ);LwW(q);if(q.playback.getVideoData().JJ()){var z;q.hQ({togab:(z=q.AQ)==null?void 0:z.identifier})}q.YA(!1)},this.tQ); this.R0=!1;this.C=new Map;this.yG=[];this.AQ=null;this.MD=new Set;this.gU=[];this.Ds=[];this.pn=[];this.Im=[];this.T=void 0;this.n1=0;this.Zx=!0;this.U=!1;this.X5=[];this.JQ=new Set;this.m$=new Set;this.fn=new Set;this.K3=0;this.Y8=new Set;this.dP=0;this.o$=this.y4=!1;this.eL=this.W="";this.Y=null;this.logger=new g.yn("dai");this.zD={RS0:function(){return q.S}, pLG:function(){return q.X}, eSG:function(){return q.G.G}, cLe:function(){return q.W}, w0z:function(z){q.onCueRangeEnter(q.S.get(z))}, nm5:function(z){q.onCueRangeExit(q.S.get(z))}, OiP:function(z,V){q.S.set(z,V)}, rKU:function(z){q.eL=z}, eT:function(){return q.eT()}, gm8:function(z){return q.G.S.get(z)}, eXm:function(){return q.Y}, SpG:function(){return q.G.T}}; this.playback.getPlayerType();this.playback.T7(this);this.iP=this.Me.pZ();g.f(this,this.G$);g.f(this,this.events);g.f(this,this.x8);this.events.V(this.api,g.EX("serverstitchedcuerange"),this.onCueRangeEnter);this.events.V(this.api,g.kO("serverstitchedcuerange"),this.onCueRangeExit);Dt(this.app.Nq(),this.playback,!1)}; lML=function(h,t,Y,L,q,z,V,l,H){if(h.Me.N("html5_ignore_ads_after_noadresponse")&&H&&h.MD.has(H))iX(h,{reason:"addafternoad",cueid:H});else{var w=qC3(h,z,z+q);h.R0&&h.hQ({adaftto:1});Y||h.hQ({missadcon:1,enter:z,len:q,aid:l});h.L&&!h.L.Oh&&(h.L.Oh=l);h.o$&&h.hQ({adfbk:1,enter:z,len:q,aid:l});H=h.playback;z===V&&!q&&h.Me.N("html5_allow_zero_duration_ads_on_timeline")&&h.hQ({attl0d:1});z>V&&iX(h,{reason:"enterTime_greater_than_return",F6:z,Ai:V});var W=H.bL()*1E3;zH&&iX(h,{reason:"parent_return_greater_than_content_duration",Ai:V,So_:H});(H=gvL(h.G,z))&&H.Ai>z&&z$L(h,t.video_id||"",z,V,H);if(w&&H)for(W=0;W.5&&h.hQ({ttdtb:1,delta:V,cpn:q.cpn,enter:t.adCpn,exit:Y.adCpn,seek:L,skip:z});h.api.N("html5_ssdai_enable_media_end_cue_range")&&(!L&&!z&&Y.isAd&&Y.adCpn?h.api.Y2(Y.adCpn):(L||z)&&h.hQ({mecr:0,seek:L,skip:z}));if(t.isAd&&Y.isAd){q=!!z;if(t.adCpn&&Y.adCpn){var l=h.G.G.get(t.adCpn);var H=h.G.G.get(Y.adCpn)}q?h.hQ({igtransskip:1,enter:t.adCpn,exit:Y.adCpn,seek:L,skip:z}):qR(h,H,l,Y.CQ,t.CQ,L,q)}else if(!t.isAd&&Y.isAd){h.eL= q.cpn;h.Ya(q.cpn,q.F6/1E3);h.api.publish("serverstitchedvideochange");l=YX(h,"a2c");h.hQ(l);h.K3=0;if(l=Y.Ze)h.n1=l.end,wvD(h,l.id,l.end);var w;Y.adCpn&&(w=h.G.G.get(Y.adCpn));w&&h.playback.d1(w,q,Y.CQ,t.CQ,L,!!z)}else if(t.isAd&&!Y.isAd){var W;t.adCpn&&(W=h.G.G.get(t.adCpn));W&&(h.n1=0,h.eL=W.cpn,h.Ya(W.cpn,W.F6/1E3),L6(h,W),w=YX(h,"c2a",W),h.hQ(w),h.K3=1,h.playback.d1(q,W,Y.CQ,t.CQ,L,!!z))}}; ywL=function(h,t){return(h=Ww$(h,t*1E3))?t-h.start/1E3:t}; UIW=function(h,t){return(h=Xvp(h,t*1E3))?h.durationMs/1E3:0}; CuL=function(h,t){if(!h.o$){var Y=void 0;h.eL&&(Y=h.G.G.get(h.eL));if(!Y){Y=Xvp(h,t*1E3);var L,q=(L=Y)==null?void 0:L.cpn;h.eL?q&&h.eL!==q&&h.hQ({cpcnm:q+"_"+h.eL,cmt:t.toFixed(3)}):h.hQ({cpcna:q,cmt:t.toFixed(3)})}var z;return(z=Y)==null?void 0:z.videoData}}; Vl=function(h,t,Y){Y=Y===void 0?0:Y;var L=g.fH(h.G.T,{F6:(t+Y)*1E3},function(l,H){return l.F6-H.F6}); L=L<0?(L+2)*-1:L;if(L>=0)for(var q=t*1E3,z=L;z<=L+1&&z=V.F6-Y*1E3&&q<=V.Ai+Y*1E3)return{Po:V,KS:t}}return{Po:void 0,KS:t}}; Xvp=function(h,t){var Y="";(t=Ww$(h,t))&&(Y=t.getId());return Y?h.G.G.get(Y):void 0}; Ww$=function(h,t){if(h.eL){var Y=h.S.get(h.eL);if(Y&&Y.start-200<=t&&Y.end+200>=t)return Y}h=g.b(h.S.values());for(Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Y.start<=t&&Y.end>=t)return Y}; YCL=function(h,t,Y){var L=h.Pq||h.app.k8().getPlayerState();NR(h,!0);h.playback.seekTo(t,Y);h=h.app.k8();t=h.getPlayerState();L.isOrWillBePlaying()&&!t.isOrWillBePlaying()?h.playVideo():L.isPaused()&&!t.isPaused()&&h.pauseVideo()}; NR=function(h,t){h.Hq=NaN;h.Q4=null;h.G$.stop();h.Ne&&t&&h.Ne.UQ();h.Pq=null;h.Ne=null}; FwL=function(h){var t=t===void 0?-1:t;var Y=Y===void 0?Infinity:Y;for(var L=[],q=g.b(h.G.T),z=q.next();!z.done;z=q.next())z=z.value,(z.F6Y)&&L.push(z);h.G.T=L;L=g.b(h.S.values());for(q=L.next();!q.done;q=L.next())q=q.value,q.start>=t&&q.end<=Y&&(h.playback.removeCueRange(q),h.S.delete(q.getId()),h.hQ({rmAdCR:1}));L=Vl(h,t/1E3);t=L.Po;L=L.KS;if(t&&(L=L*1E3-t.F6,MZ$(h,t,L,t.F6+L),L=h.S.get(t.cpn))){q=g.b(h.X);for(z=q.next();!z.done;z=q.next())z=z.value,z.start===L.end?z.start=t.F6+t.durationMs: z.end===L.start&&(z.end=t.F6);L.start=t.F6;L.end=t.F6+t.durationMs}if(t=Vl(h,Y/1E3).Po){var V;L="playback_timelinePlaybackId_"+t.OY+"_video_id_"+((V=t.videoData)==null?void 0:V.videoId)+"_durationMs_"+t.durationMs+"_enterTimeMs_"+t.F6+"_parentReturnTimeMs_"+t.Ai;h.NS("Invalid_clearEndTimeMs_"+Y+"_that_falls_during_"+L+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; s13=function(h){h.Wm.clearAll();h.S.clear();h.X=[];h.G.clear();h.C.clear();h.yG=[];h.AQ=null;h.MD.clear();h.gU=[];h.Ds=[];h.pn=[];h.Im=[];h.X5=[];h.JQ.clear();h.m$.clear();h.fn.clear();h.Y8.clear();h.R0=!1;h.T=void 0;h.n1=0;h.Zx=!0;h.U=!1;h.K3=0;h.dP=0;h.y4=!1;h.o$=!1;h.W="";AFW(h.app.Nq());Dt(h.app.Nq(),h.playback,!1);h.lP.clear();h.x8.isActive()&&g1(h)}; MZ$=function(h,t,Y,L){t.durationMs=Y;t.Ai=L;(L=h.lP.get(t.cpn))?L.rd(Y/1E3):h.hQ({nop_d:t.cpn})}; ZvD=function(h,t,Y,L,q,z){if(!h.o$)if(g.j1r(h,Y))h.hQ({gdu:"undec",seg:Y,itag:q});else if(t=lX(h,t,Y,L,z),!(h.playback.getVideoData().JJ()&&(t==null?0:t.eV)))return t}; lX=function(h,t,Y,L,q){var z=h.C.get(Y);if(!z){if(z=bv6(h,t))return z;t=h.Y_(Y-1,L!=null?L:2);if(q)return h.hQ({misscue:q,sq:Y,type:L,prevsstate:t==null?void 0:t.sB,prevrecord:h.C.has(Y-1)}),h.C.get(Y-1);if((t==null?void 0:t.sB)===2)return h.hQ({adnf:1,sq:Y,type:L,prevrecord:h.C.has(Y-1)}),h.C.get(Y-1)}return z}; bv6=function(h,t){t+=h.CN();if(h.playback.getVideoData().JJ())a:{var Y=1;Y=Y===void 0?0:Y;var L=t*1E3;h=g.b(h.G.T);for(var q=h.next();!q.done;q=h.next()){q=q.value;var z=q.TV?q.TV*1E3:q.F6;if(L>=q.F6-Y*1E3&&L<=z+q.durationMs+Y*1E3){L={Po:q,KS:t};break a}}L={Po:void 0,KS:t}}else L=Vl(h,t),((Y=L)==null?0:Y.Po)||(L=Vl(h,t,1));var V;return(V=L)==null?void 0:V.Po}; ovL=function(h,t){t=t===void 0?"":t;var Y=MA(t)||void 0;if(!t||!Y){var L;h.hQ({adcfg:(L=t)==null?void 0:L.length,dcfg:Y==null?void 0:Y.length})}return Y}; dIi=function(h){if(h.X5.length)for(var t=g.b(h.X5),Y=t.next();!Y.done;Y=t.next())h.onCueRangeExit(Y.value);t=g.b(h.S.values());for(Y=t.next();!Y.done;Y=t.next())h.playback.removeCueRange(Y.value);t=g.b(h.X);for(Y=t.next();!Y.done;Y=t.next())h.playback.removeCueRange(Y.value);h.S.clear();h.X=[];h.Wm.clearAll();h.T||(h.Zx=!0)}; qR=function(h,t,Y,L,q,z,V){if(t&&Y){h.eL=Y.cpn;h.Ya(Y.cpn,Y.F6/1E3);L6(h,Y);var l=YX(h,"a2a",Y);h.hQ(l);h.K3++;h.playback.d1(t,Y,L||0,q||0,!!z,!!V)}else h.hQ({misspbkonadtrans:1,enter:(Y==null?void 0:Y.cpn)||"",exit:(t==null?void 0:t.cpn)||"",seek:z,skip:V})}; Q1L=function(h,t,Y,L){if(L)for(L=0;LY){var z=q.end;q.end=t;G06(h,Y,z)}else if(q.start>=t&&q.startY)q.start=Y;else if(q.end>t&&q.end<=Y&&q.start=t&&q.end<=Y){h.playback.removeCueRange(q);if(h.X5.includes(q))h.onCueRangeExit(q);h.X.splice(L,1);continue}L++}else G06(h,t,Y)}; G06=function(h,t,Y){t=Hv$(t,Y);Y=!0;g.Rv(h.X,t,function(V,l){return V.start-l.start}); for(var L=0;L0){var q=h.X[L],z=h.X[L-1];if(Math.round(z.end/1E3)>=Math.round(q.start/1E3)){z.end=q.end;q!==t?h.playback.removeCueRange(q):Y=!1;h.X.splice(L,1);continue}}L++}if(Y)for(h.playback.addCueRange(t),t=h.playback.XF("serverstitchedcuerange",36E5),t=g.b(t),Y=t.next();!Y.done;Y=t.next())h.S.delete(Y.value.getId())}; HK=function(h,t,Y){if(Y===void 0||!Y){Y=g.b(h.yG);for(var L=Y.next();!L.done;L=Y.next()){L=L.value;if(t>=L.start&&t<=L.end)return;if(t===L.end+1){L.end+=1;return}}h.yG.push(new tZp(t))}}; g.j1r=function(h,t){h=g.b(h.yG);for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,t>=Y.start&&t<=Y.end)return!0;return!1}; w1=function(h,t,Y){var L;if(L=h.playback.getVideoData().JJ()||h.Me.N("html5_ssdai_extent_last_unfinished_ad_cue_range"))L=(L=h.G.G.get(t))&&L.WI?(h=h.G.S.get(L==null?void 0:L.WI))&&h.slice(-1)[0].cpn===t:!1;return L&&Y===2?1E3:0}; z$L=function(h,t,Y,L,q){var z;t={reason:"overlapping_playbacks",Ppx:t,F6:Y,Ai:L,MzQ:q.OY,qp0:((z=q.videoData)==null?void 0:z.videoId)||"",tPM:q.durationMs,hCP:q.F6,Lcb:q.Ai};iX(h,t)}; iX=function(h,t,Y){h.playback.y6(t,Y)}; rwc=function(h,t){var Y=[];h=h.G.S.get(t);if(!h)return[];h=g.b(h);for(t=h.next();!t.done;t=h.next())t=t.value,t.cpn&&Y.push(t.cpn);return Y}; cwW=function(h,t,Y){var L=0;h=h.G.S.get(Y);if(!h)return-1;h=g.b(h);for(Y=h.next();!Y.done;Y=h.next()){if(Y.value.cpn===t)return L;L++}return-1}; ucc=function(h,t){var Y=0;h=h.G.S.get(t);if(!h)return 0;h=g.b(h);for(t=h.next();!t.done;t=h.next())t=t.value,t.durationMs!==0&&t.Ai!==t.F6&&Y++;return Y}; e$i=function(h,t,Y){var L=!1;if(Y&&(Y=h.G.S.get(Y))){Y=g.b(Y);for(var q=Y.next();!q.done;q=Y.next())q=q.value,q.durationMs!==0&&q.Ai!==q.F6&&(q=q.cpn,t===q&&(L=!0),L&&!h.m$.has(q)&&(h.hQ({decoratedAd:q}),h.m$.add(q)))}}; LwW=function(h){h.iP&&h.hQ({adf:"0_"+((new Date).getTime()/1E3-h.dP)+"_isTimeout_"+h.R0})}; qC3=function(h,t,Y){if(h.gU.length)for(var L=g.b(h.gU),q=L.next(),z={};!q.done;z={gY:void 0},q=L.next()){z.gY=q.value;q=z.gY.startSecs*1E3;var V=z.gY.cZ*1E3+q;if(t>q&&tq&&Y0?h:0}else h.eT().videoData.dP=h.playback.getCurrentTime()}; k06=function(h,t,Y,L){g.O.call(this);var q=this;this.api=h;this.Me=t;this.G=Y;this.app=L;this.X=new Map;this.T=[];this.S=this.C=null;this.AQ=NaN;this.U=this.W=this.L=null;this.Y=new g.nE(function(){Evc(q,q.AQ,q.L||void 0)}); this.x8=[];this.R0=new g.nE(function(){var z=q.x8.pop();if(z){var V=z.OY,l=z.playerVars;z=z.playerType;l&&(l.prefer_gapless=!0,q.api.preloadVideoByPlayerVars(l,z,NaN,"",V),q.x8.length&&g.fE(q.R0,4500))}}); this.events=new g.UF(this);this.zD={fpQ:function(){return q.T}}; this.G.getPlayerType();g.f(this,this.Y);g.f(this,this.R0);g.f(this,this.events);this.events.V(this.api,g.EX("childplayback"),this.onCueRangeEnter);this.events.V(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.V(this.api,"presentingplayerstatechange",this.hF)}; $Ip=function(h,t,Y,L,q,z){var V=t.cpn,l=t.docid||t.video_id||t.videoId||t.id,H=h.G;z=z===void 0?q+L:z;if(q>z)return yl(h,"enterAfterReturn enterTimeMs="+q+" is greater than parentReturnTimeMs="+z.toFixed(3),V,l),"";var w=H.bL()*1E3;if(qw)return H="returnAfterDuration parentReturnTimeMs="+z.toFixed(3)+" is greater than parentDurationMs="+w+". And timestampOffset in seconds is "+ H.O3(),yl(h,H,V,l),"";w=null;for(var W=g.b(h.T),y=W.next();!y.done;y=W.next()){y=y.value;if(q>=y.F6&&qy.F6)return yl(h,"overlappingReturn",V,l),"";if(z===y.F6)return yl(h,"outOfOrder",V,l),"";q===y.Ai&&(w=y)}V="cs_childplayback_"+Ov6++;l={Ze:X1(L,!0),jU:Infinity,target:null};var X={OY:V,playerVars:t,playerType:Y,durationMs:L,F6:q,Ai:z,Kz:l};h.T=h.T.concat(X).sort(function(d,Q){return d.F6-Q.F6}); w?nvb(h,w,{Ze:X1(w.durationMs,!0),jU:w.Kz.jU,target:X}):(t={Ze:X1(q,!1),jU:q,target:X},h.X.set(t.Ze,t),H.addCueRange(t.Ze));t=!0;if(h.G===h.app.k8()&&(H=H.getCurrentTime()*1E3,H>=X.F6&&Ht)break;if(z>t)return{Po:L,KS:t-q};Y=z-L.Ai/1E3}return{Po:null,KS:t-Y}}; Evc=function(h,t,Y){Y=Y===void 0?{}:Y;var L=h.U||h.app.k8().getPlayerState();MR(h,!0);t=isFinite(t)?t:h.G.U8();var q=IMb(h,t);t=q.KS;var z=(q=q.Po)&&!UG(h,q)||!q&&h.G!==h.app.k8(),V=t*1E3;V=h.S&&h.S.start<=V&&V<=h.S.end;!z&&V||C6(h);q?fM$(h,q,t,Y,L):R$c(h,t,Y,L)}; R$c=function(h,t,Y,L){var q=h.G;q!==h.app.k8()&&h.app.Mn();q.seekTo(t,Object.assign({},{EY:"application_timelinemanager"},Y));Bzr(h,L)}; fM$=function(h,t,Y,L,q){var z=UG(h,t);if(!z){t.playerVars.prefer_gapless=!0;h.Me.N("html5_enable_ssap_entity_id")&&(t.playerVars.cached_load=!0);var V=new g.i6(h.Me,t.playerVars);V.OY=t.OY;h.api.Rd(V,t.playerType)}V=h.app.k8();z||V.addCueRange(t.Kz.Ze);V.seekTo(Y,Object.assign({},{EY:"application_timelinemanager"},L));Bzr(h,q)}; Bzr=function(h,t){h=h.app.k8();var Y=h.getPlayerState();t.isOrWillBePlaying()&&!Y.isOrWillBePlaying()?h.playVideo():t.isPaused()&&!Y.isPaused()&&h.pauseVideo()}; MR=function(h,t){h.AQ=NaN;h.L=null;h.Y.stop();h.W&&t&&h.W.UQ();h.U=null;h.W=null}; UG=function(h,t){h=h.app.k8();return!!h&&h.getVideoData().OY===t.OY}; Puc=function(h){var t=h.T.find(function(q){return UG(h,q)}); if(t){var Y=h.app.k8();C6(h);var L=new g.yT(8);t=SCL(h,t)/1E3;R$c(h,t,{},L);Y.Pm("forceParentTransition",{childPlayback:1});h.G.Pm("forceParentTransition",{parentPlayback:1})}}; DI$=function(h,t,Y){t=t===void 0?-1:t;Y=Y===void 0?Infinity:Y;for(var L=t,q=Y,z=g.b(h.X),V=z.next();!V.done;V=z.next()){var l=g.b(V.value);V=l.next().value;l=l.next().value;l.jU>=L&&l.target&&l.target.Ai<=q&&(h.G.removeCueRange(V),h.X.delete(V))}L=t;q=Y;z=[];V=g.b(h.T);for(l=V.next();!l.done;l=V.next())if(l=l.value,l.F6>=L&&l.Ai<=q){var H=h;H.C===l&&C6(H);UG(H,l)&&H.app.Mn()}else z.push(l);h.T=z;L=IMb(h,t/1E3);t=L.Po;L=L.KS;t&&(L*=1E3,mIn(h,t,L,t.Ai===t.F6+t.durationMs?t.F6+L:t.Ai));(t=IMb(h,Y/1E3).Po)&& yl(h,"Invalid clearEndTimeMs="+Y+" that falls during playback={timelinePlaybackId="+(t.OY+" video_id="+t.playerVars.video_id+" durationMs="+t.durationMs+" enterTimeMs="+t.F6+" parentReturnTimeMs="+t.Ai+"}.Child playbacks can only have duration updated not their start."))}; mIn=function(h,t,Y,L){t.durationMs=Y;t.Ai=L;L={Ze:X1(Y,!0),jU:Y,target:null};nvb(h,t,L);UG(h,t)&&h.app.k8().getCurrentTime()*1E3>Y&&(t=SCL(h,t)/1E3,Y=h.app.k8().getPlayerState(),R$c(h,t,{},Y))}; yl=function(h,t,Y,L){h.G.Pm("timelineerror",{e:t,cpn:Y?Y:void 0,videoId:L?L:void 0})}; tYr=function(h){h&&h!=="web"&&hv3.includes(h)}; F1=function(){g.O.call(this);this.G=new R4(5,null);g.f(this,this.G);this.T=new R4(15,null);g.f(this,this.T)}; AbL=function(h,t){return t?!!h.G.get(t):!1}; igL=function(h,t){h.dataset.version=t}; LF1=function(h){g.I.call(this,{Z:"div",Ei:["html5-video-player"],j:{tabindex:h.J().disableOrganicUi?"":"-1",id:h.webPlayerContextConfig.rootElementId},B:[{Z:"div",D:g.yH.VIDEO_CONTAINER,j:{"data-layer":"0"}}]});var t=this;this.app=h;this.oN=this.Tz(g.yH.VIDEO_CONTAINER);this.qb=new g.OO(0,0,0,0);this.M_=null;this.Ct=new g.OO(0,0,0,0);this.o_=this.Ue=this.Kx=NaN;this.lD=this.Uk=this.jK=this.BO=!1;this.Vh=NaN;this.La=!1;this.WG=null;this.t4=function(){t.element.focus({preventScroll:!0})}; this.xB=function(){t.app.m_.publish("playerUnderlayVisibilityChange","visible");t.M_.classList.remove(g.yH.VIDEO_CONTAINER_TRANSITIONING);t.M_.removeEventListener(C3,t.xB);t.M_.removeEventListener("transitioncancel",t.xB)}; this.Tw=this.P0=!1;var Y=this.element.addEventListener,L=this.element.removeEventListener;this.addEventListener=function(z,V,l){Y.apply(t.element,[z,V,l])}; this.removeEventListener=function(z,V,l){L.apply(t.element,[z,V,l])}; var q=h.J();q.transparentBackground&&this.aX("ytp-transparent");q.controlsType==="0"&&this.aX("ytp-hide-controls");g.mS(this.element,"ytp-exp-bottom-control-flexbox");g.mS(this.element,"ytp-modern-caption");q.N("enable_new_paid_product_placement")&&!g.lC(q)&&g.mS(this.element,"ytp-exp-ppp-update");q.N("html5_enable_ssap")&&g.mS(this.element,"ytp-ssap");g.mS(this.element,"ytp-livebadge-color");if(q.N("delhi_modern_web_player"))switch(g.mS(this.element,"ytp-delhi-modern"),q.N("delhi_modern_web_player_icons")&& g.mS(this.element,"ytp-delhi-modern-icons"),Wc(q.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.mS(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.mS(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.mS(this.element,"ytp-delhi-modern-with-exclusion")}igL(this.element,gSL(h));this.Wh=!1;this.q$=new g.Se(NaN,NaN);Yt3(this);this.V(h.m_,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; Yt3=function(h){function t(){h.M_&&sG(h);jx(h)!==h.La&&h.resize()} function Y(V,l){h.KH(V,l)} function L(V){V.getVideoData()&&h.updateVideoData(V.getVideoData())} function q(){h.Ct=new g.OO(0,0,0,0);h.qb=new g.OO(0,0,0,0)} var z=h.app.m_;z.addEventListener("initializingmode",q);z.addEventListener("videoplayerreset",L);z.addEventListener("videodatachange",Y);z.addEventListener("presentingplayerstatechange",t);h.addOnDisposeCallback(function(){z.removeEventListener("initializingmode",q);z.removeEventListener("videoplayerreset",L);z.removeEventListener("videodatachange",Y);z.removeEventListener("presentingplayerstatechange",t)})}; zvb=function(h){var t=h.app.k8();if(t=t?t.getVideoData():null){if(g.Of(t)||g.nI(t)||g.fI(t))return 16/9;if(Wu(t)&&t.S.G)return h=t.S.videoInfos[0].video,qtn(h.width,h.height)}return(h=h.M_)?qtn(h.videoWidth,h.videoHeight):16/9}; VYi=function(h,t,Y,L){var q=Y,z=qtn(t.width,t.height);h.BO?q=Yz?{width:t.width,height:t.width/q,aspectRatio:q}:qq?h.width=h.height*Y:YH;if(jx(h)){var w=zvb(h);var W=isNaN(w)||g.kL||ht&&g.Hq||H;Ex&&!g.Ob(601)?w=q.aspectRatio:W=W||z.controlsType==="3";W?H?(W=z.N("place_shrunken_video_on_left_of_player")?16:h.getPlayerSize().width-t.width-16,w=Math.max((h.getPlayerSize().height-t.height)/2,0),W=new g.OO(W,w,t.width, t.height),h.M_.style.setProperty("border-radius","12px")):W=new g.OO(0,0,t.width,t.height):(Y=q.aspectRatio/w,W=new g.OO((t.width-q.width/Y)/2,(t.height-q.height)/2,q.width/Y,q.height),Y===1&&g.Hq&&(w=W.width-t.height*w,w>0&&(W.width+=w,W.height+=w)));g.iA(h.element,"ytp-fit-cover-video",Math.max(W.width-q.width,W.height-q.height)<1);if(l||h.Wh)h.M_.style.display="";h.La=!0}else{W=-t.height;Ex?W*=window.devicePixelRatio:g.H0&&(W-=window.screen.height);W=new g.OO(0,W,t.width,t.height);if(l||h.Wh)h.M_.style.display= "none";h.La=!1}n7(h.Ct,W)||(h.Ct=W,g.SI(z)?(h.M_.style.setProperty("width",W.width+"px","important"),h.M_.style.setProperty("height",W.height+"px","important")):g.hu(h.M_,W.getSize()),L=new g.TD(W.left,W.top),g.Bb(h.M_,Math.round(L.x),Math.round(L.y)),L=!0);t=new g.OO((t.width-q.width)/2,(t.height-q.height)/2,q.width,q.height);n7(h.qb,t)||(h.qb=t,L=!0);g.$9(h.M_,"transform",Y===1?"":"scaleX("+Y+")");V&&H!==h.Uk&&(H&&(h.M_.addEventListener(C3,h.xB),h.M_.addEventListener("transitioncancel",h.xB),h.M_.classList.add(g.yH.VIDEO_CONTAINER_TRANSITIONING)), h.Uk=H,h.app.m_.publish("playerUnderlayVisibilityChange",h.Uk?"transitioning":"hidden"));return L}; HgW=function(h){h.P0=!h.P0;h.Tw=!0;h.element.classList.toggle("ytp-retro-player",h.P0);h.resize();h.Tw=!1;h.app.m_.jM("onRetroModeChanged",h.P0)}; w43=function(){this.csn=g.yy();this.clientPlaybackNonce=null;this.elements=new Set;this.S=new Set;this.G=new Set;this.T=new Set}; WFL=function(h){if(h.csn!==g.yy())if(h.csn==="UNDEFINED_CSN")h.csn=g.yy();else{var t=g.yy(),Y=g.WD();if(t&&Y){h.csn=t;for(var L=g.b(h.elements),q=L.next();!q.done;q=L.next())(q=q.value.visualElement)&&q.isClientVe()&&t&&Y&&(g.wj("combine_ve_grafts")?fO(O1(),q,Y):g.f$(g.Kt)(void 0,t,Y,q))}if(t)for(h=g.b(h.G),Y=h.next();!Y.done;Y=h.next())(Y=Y.value.visualElement)&&Y.isClientVe()&&g.Ta(t,Y)}}; g.Z_=function(h,t,Y,L){g.O.call(this);var q=this;this.logger=new g.yn("App");this.yH=this.KN=!1;this.l2={};this.Wg=[];this.AT=!1;this.yq=null;this.intentionalPlayback=!1;this.iF=!0;this.dL=!1;this.ov=this.Kv=this.Pv=null;this.kz=!0;this.mediaElement=this.z$=null;this.l6=NaN;this.hO=!1;this.ma=this.s1=this.k0=this.screenLayer=this.playlist=null;this.Xl=[];this.g2=0;this.zD={Nq:function(){return q.eE}, SJm:function(){return q.k0}, WcU:function(){}}; this.logger.debug("constructor begin");if(!Y)throw Error("b/179532961");this.FH=(t==null?void 0:t.args)||{};this.webPlayerContextConfig=Y;LS$();t=this.FH;this.Me=new hx(t,Y,Y.canaryState,L,this);g.f(this,this.Me);Pai(this.Me);Y=D8b(this.Me);this.Me.pZ()&&this.hs("h5vcc",Y);this.Me.experiments.I0("jspb_serialize_with_worker")&&kqp();this.Me.experiments.I0("gzip_gel_with_worker")&&ezL();this.Me.T&&!y9L&&(window.addEventListener(Kw?"touchstart":"click",QHD,{capture:!0,passive:!0}),y9L=!0);this.N("html5_onesie")&& (this.vR=new wa(this.Me),g.f(this,this.vR));this.Q_=B2(nw(this.Me)&&!0,t.enablesizebutton);this.tf=B2(!1,t.player_wide);this.visibility=new T4b;g.f(this,this.visibility);this.N("web_log_theater_mode_visibility")&&this.DI(B2(!1,t.player_wide));this.KN=B2(!1,t.external_list);this.events=new g.UF(this);g.f(this,this.events);this.N("start_client_gcf")&&(F2(bS(),{xp:hn,rh:tl$()}),this.R5=bS().resolve(hn),YB1(this.R5));this.i65=new Co;g.f(this,this.i65);this.FF=new w43;Y=new MU;this.m_=new g.eH(this,Y); g.f(this,this.m_);this.template=new LF1(this);g.f(this,this.template);this.appState=1;this.VC=X4W(this);g.f(this,Y);Y={};this.qI=(Y.internalvideodatachange=this.NUM,Y.playbackready=this.UeG,Y.playbackstarted=this.Xmb,Y.statechange=this.pm5,Y);this.S9=new s3(this.m_);this.FD=UEL(this);Y=this.Me.U;!1!==Y&&this.hs("badps",{hbp:Y,hostname:window.location.hostname,ps:this.Me.playerStyle});this.Wq=new WW3(this.Me,this.FD);this.m_.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||J43(this.FD))&& CQc(this);Y=10;g.z4(this.Me)&&(Y=3);V4(this.Me)&&(Y=g.Sk(this.Me.experiments,"tvhtml5_unplugged_preload_cache_size"));this.eE=new g.Pr(this.m_,Y);Y=MYp(this);this.eE.PF(Y);FF1(this);Y={};this.Uc=(Y.airplayactivechange=this.mD5,Y.airplayavailabilitychange=this.HZ5,Y.beginseeking=this.rC_,Y.sabrCaptionsDataLoaded=this.wqP,Y.endseeking=this.v4P,Y.internalAbandon=this.k$z,Y.internalaudioformatchange=this.OZG,Y.internalvideodatachange=this.ne_,Y.internalvideoformatchange=this.AJQ,Y.liveviewshift=this.Y30, Y.playbackstalledatstart=this.qY_,Y.progresssync=this.BP_,Y.onAbnormalityDetected=this.lsb,Y.onSnackbarMessage=this.MEi,Y.onLoadProgress=this.dDz,Y.SEEK_COMPLETE=this.t45,Y.SEEK_TO=this.h2_,Y.onVideoProgress=this.PLU,Y.onLoadedMetadata=this.JC5,Y.onAutoplayBlocked=this.V4e,Y.onPlaybackPauseAtStart=this.IsU,Y.playbackready=this.iZP,Y.statechange=this.JB,Y.newelementrequired=this.Yy,Y.heartbeatparams=this.Fnm,Y.videoelementevent=this.aoM,Y.drmoutputrestricted=this.yC5,Y.signatureexpired=this.Lne,Y.nonfatalerror= this.jm5,Y.reloadplayer=this.smP,Y);this.g1=new g.UF(this);g.f(this,this.g1);this.e7=new F1;g.f(this,this.e7);this.gr=this.d3=-1;this.BY=new g.nE(this.template.resize,16,this.template);g.f(this,this.BY);this.Do=new k06(this.m_,this.Me,this.x4(),this);this.Sk=new $e(this);g.f(this,this.Sk);this.BF=new ke(this);g.f(this,this.BF);tYr(this.Me.G.c);this.events.V(this.m_,g.EX("appapi"),this.Zb5);this.events.V(this.m_,g.kO("appapi"),this.K_8);this.events.V(this.m_,g.EX("appprogressboundary"),this.ge5);this.events.V(this.m_, g.kO("applooprange"),this.Mt);this.events.V(this.m_,"presentingplayerstatechange",this.hF);this.events.V(this.m_,"resize",this.NzU);this.template.zz(Y9(document,h));this.events.V(this.m_,"offlineslatestatechange",this.UD8);this.events.V(this.m_,"sabrCaptionsTrackChanged",this.F$P);this.events.V(this.m_,"sabrCaptionsBufferedRangesUpdated",this.vee);this.FD.K.J().uM&&pq(this.FD,"offline");this.Me.JQ&&g.dE("ux",g.xe);h=g.Sk(this.Me.experiments,"html5_defer_fetch_att_ms");this.N2=new g.nE(this.h98,h, this);g.f(this,this.N2);this.n6().ra()&&(g.rK()&&this.n6().x8.push("remote"),slb(this));this.Wq.tick("fs");jlL(this);this.Me.JQ&&pq(this.FD,"ux",!0);g.kk(this.FD.K.J())&&pq(this.FD,"embed");this.N("web_player_sentinel_is_uniplayer")||g.bc(new g.Ea("Player experiment flags missing","web_player_sentinel_is_uniplayer"));h=this.N("web_player_sentinel_yt_experiments_sync");Y=g.wj("web_player_sentinel_yt_experiments_sync");h!==Y&&g.bc(new g.Ea("b/195699950",{yt:h,player:Y}));this.XR=Zgp(this);if(h=g.Sk(this.Me.experiments, "html5_block_pip_safari_delay"))this.UM=new g.nE(this.jy,h,this),g.f(this,this.UM);Gz=this.Me.y4;this.m_.publish("applicationInitialized");this.logger.debug("constructor end")}; Zgp=function(h){function t(Y){Y.stack&&Y.stack.indexOf("player")!==-1&&h.k8().jW(Y)} oA.subscribe("handleError",t);Oy.push(t);return function(){oA.unsubscribe("handleError",t);var Y=Oy.indexOf(t);Y!==-1&&Oy.splice(Y,1)}}; MYp=function(h){var t=new g.i6(h.Me,h.FH);h.m_.publish("initialvideodatacreated",t);return bX(h,1,t,!1)}; FF1=function(h){var t=h.x4();t.setPlaybackRate(h.Me.W?1:bg1(h,Number(g.GI("yt-player-playback-rate"))||1));t.Jj(h.qI,h);t.lX()}; UEL=function(h){var t="",Y=gSL(h);Y.indexOf("//")===0&&(Y=h.Me.protocol+":"+Y);var L=Y.lastIndexOf("/base.js");L!==-1&&(t=Y.substring(0,L+1));if(Y=Error().stack)if(Y=Y.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Y=Y[1],Y.includes(t)||g.bc(Error("Player module URL mismatch: "+(Y+" vs "+t+".")));t=new c4L(h.m_,t);Y={};u13(t,(Y.destroyed=function(){h.onApiChange()},Y)); return t}; X4W=function(h){if(h.Me.storeUserVolume){h=g.GI("yt-player-volume")||{};var t=h.volume;h={volume:isNaN(t)?100:g.n0(Math.floor(t),0,100),muted:!!h.muted}}else h={volume:100,muted:h.Me.mute};return h}; oX=function(h){h.mediaElement=h.Me.deviceIsAudioOnly?new g.Iq(g.y_("AUDIO")):Ed.pop()||new g.Iq(g.y_("VIDEO"));g.f(h,h.mediaElement);h.k8().setMediaElement(h.mediaElement);try{h.Me.Im?(h.s1&&h.events.W3(h.s1),h.s1=h.events.V(h.mediaElement,"volumechange",h.z25)):(h.mediaElement.fT(h.VC.muted),h.mediaElement.setVolume(h.VC.volume/100))}catch(q){h.MF("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g, "_")));return}g.ZZ(h.g1);oSD(h);var t=h.template,Y=h.mediaElement.gP();t.M_=Y;t.lD=!1;t.M_.parentNode||Ml(t.oN,t.M_,0);t.Ct=new g.OO(0,0,0,0);laL(t);sG(t);Y=t.M_;g.mS(Y,"video-stream");g.mS(Y,g.yH.MAIN_VIDEO);var L=t.app.J();L.If&&Y.setAttribute("data-no-fullscreen","true");L.N("html5_local_playsinline")?"playsInline"in l_()&&(Y.playsInline=!0):L.Lq&&(Y.setAttribute("webkit-playsinline",""),Y.setAttribute("playsinline",""));L.aM&&t.M_&&t.V(Y,"click",Y.play,Y);try{h.mediaElement.activate()}catch(q){h.MF("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g,"_")))}}; GCb=function(h){if(!dEb(h)){var t=h.x4().iL();t&&(t=t.Lk(),t instanceof Promise&&t.catch(function(){})); d1(h,Zo(h.getPlayerStateObject()))}}; oSD=function(h){var t=h.mediaElement;yb()?h.g1.V(t,"webkitpresentationmodechanged",h.YYU):window.document.pictureInPictureEnabled&&(h.g1.V(t,"enterpictureinpicture",function(){h.i_(!0)}),h.g1.V(t,"leavepictureinpicture",function(){h.i_(!1)})); fi&&(h.g1.V(t,"webkitbeginfullscreen",function(){h.F8(3)}),h.g1.V(t,"webkitendfullscreen",function(){h.F8(0)}))}; QlL=function(h,t){var Y=t.getPlayerType(),L=h.eE.S[Y]||null;t!==h.x4()&&t!==L&&(L==null||L.dispose(),h.eE.S[Y]=t)}; r9L=function(h,t){t=t===void 0?!0:t;h.logger.debug("start clear presenting player");var Y;if(Y=h.ma){Y=h.ma;var L=h.mediaElement;Y=!!L&&L===Y.mediaElement}Y&&(h.EL(),oX(h));Y=h.k8();Y.EL(!t);Y.ow(h.Uc,h);Y.getPlayerType()!==1&&Y.dispose();t=h.eE;t.T=t.G;mH(t);h.logger.debug("finish clear presenting player")}; g.c9p=function(h,t,Y,L){var q=h.Wq;t===2&&(q=new WW3(h.Me));return new g.gY(h.Me,t,q,h.template,function(z,V,l){h.m_.publish(z,V,l)},function(){return h.m_.getVisibilityState()},h.visibility,h,Y,L)}; bX=function(h,t,Y,L,q){h=g.c9p(h,t,Y,q);h=new g.AJ(h);L&&h.lX();return h}; Gx=function(h,t){return h.t7(t)?h.x4():t}; Ql=function(h,t){var Y=h.k8();return t===h.x4()&&h.t7(t)&&h.t7(Y)?Y:t}; J9n=function(h){h.logger.debug("start application playback");if(h.x4().getPlayerState().isError())h.logger.debug("start application playback done, player in error state");else{var t=r1(h);h.n6().isLoaded();t&&h.mO(6);utb(h);nXc(h.FD)||evL(h)}}; evL=function(h){if(!r1(h)){var t=Kq(h.FD);t&&!t.created&&e9L(h.FD)&&(h.logger.debug("reload ad module"),t.create())}}; utb=function(h){h.logger.debug("start presenter playback");var t=h.getVideoData(),Y=h.FD;nXc(Y)||Y.Fq();!lJb&&Y.K.N("html5_allow_asmjs")&&I_L(Y);pq(Y,"embed");pq(Y,"kids");pq(Y,"remote");pq(Y,"miniplayer");pq(Y,"offline");pq(Y,"unplugged");pq(Y,"ypc",!1,!0);pq(Y,"ypc_clickwrap",!1,!0);pq(Y,"yto",!1,!0);pq(Y,"webgl",!1,!0);f_i(Y)||(pq(Y,"captions",!0),pq(Y,"endscreen"),Y.WE(),pq(Y,"creatorendscreen",!0));Y.Ri();h.m_.publish("videoready",t)}; cK=function(h){h=h.n6();h.ra();return Bu(h)}; jlL=function(h){h.logger.debug("start prepare initial playback");h.tp();var t=h.FH;oX(h);h.events.V(window,"resize",h.CLe);var Y=h.n6();h.m_.Uz("onVolumeChange",h.VC);if(t&&CXD(t)){var L=YD(h.Me);L&&!h.KN&&(t.fetch=0);var q=g.kk(h.Me);q&&!h.KN&&(t.fetch=0);uX(h,t);g.kk(h.Me)&&h.Wq.tick("ep_pr_s");if(!L||h.KN)if(q&&!h.KN)p4r(h);else if(!Y.ra())h.playlist.onReady(function(){ex(h)})}h.D6(h.x4(),!1,!0); g.R(h.x4().getPlayerState(),128)||(t=Q$b(!h.Me.deviceIsAudioOnly),t==="fmt.noneavailable"?h.MF("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):t==="html5.missingapi"?h.MF(t,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):Y&&Y.ra()&&cK(h)&&(h.Me.fC||h.Me.D9)?J4(h):Y.A5?h.m_.mutedAutoplay({durationMode:Y.mutedAutoplayDurationMode}):g.GI("yt-player-playback-on-reload")?(g.tq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!h.Me.R0}),g.dK("yt-player-playback-on-reload",!1), J4(h)):W0(h.Me)||vSL(h),g.zH(h.Me)||Hc(h.Me)==="MWEB"?(g.$I(g.AG(),function(){p6(h)}),g.$I(g.AG(),function(){dPi()})):(p6(h),dPi()),h.logger.debug("finish prepare initial playback"))}; p6=function(h){if(!h.N("use_rta_for_player"))if(h.N("fetch_att_independently"))g.fE(h.N2);else{var t=h.getVideoData().botguardData;t&&g.mq(t,h.Me,h.getVideoData().WA||"")}}; vSL=function(h){h.logger.debug("start initialize to CUED mode");h.m_.publish("initializingmode");h.mO(2);pq(h.FD,"remote");pq(h.FD,"miniplayer");h.logger.debug("initialized to CUED mode")}; J4=function(h){h.logger.debug("start initialize application playback");var t=h.x4();if(g.R(t.getPlayerState(),128))return!1;t=t.getVideoData();cK(h)&&h.Me.D9&&(Ed.length&&h.yH?(vK(h,{muted:!1,volume:h.VC.volume},!1),K6(h,!1)):Ed.length||h.VC.muted||(vK(h,{muted:!0,volume:h.VC.volume},!1),K6(h,!0)));cK(h)&&g.kk(h.Me)&&t.mutedAutoplay&&(vK(h,{muted:!0,volume:h.VC.volume},!1),K6(h,!0));t.ZG&&vK(h,{muted:!0,volume:h.VC.volume},!1);KF3(h,1,t,!1);var Y=h.x4();h.m_.publish("initializingmode");h.D6(Y);h.mO(3); var L;if(!(L=!h.Me.An)){if(L=h.ma){L=h.ma;var q=h.mediaElement;L=!!q&&q===L.mediaElement}L=L&&h.AT}L&&(h.EL(),oX(h),Y.setMediaElement(h.mediaElement));Y.Vj();if(g.R(Y.getPlayerState(),128))return!1;t.MS||d1(h,3);return h.AT=!0}; r1=function(h){h=v5(h.FD);return!!h&&h.loaded}; aai=function(h,t){if(!h.z$)return!1;var Y=h.z$.startTimeMs*.001-1,L=h.z$.endTimeMs*.001;h.z$.type==="repeatChapter"&&L--;return Math.abs(t-Y)<=1E-6||Math.abs(t-L)<=1E-6||t>=Y&&t<=L}; xEL=function(h){var t=h.k8();X$(t.getVideoData())&&!t.Yt()&&(t=aX(h)*1E3-h.getVideoData().PO,h.N("html5_gapless_new_slr")?(h=h.BF,xX(h.app,"gaplessshortslooprange"),t=new g.aZ(0,t,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(h=h.app.k8())&&h.addCueRange(t)):h.setLoopRange({startTimeMs:0,endTimeMs:t,type:"shortsLoop"}))}; ES6=function(h){var t=h.x4();if(!(g.R(t.getPlayerState(),64)&&h.n6().isLivePlayback&&h.z$.startTimeMs<5E3)){if(h.z$.type==="repeatChapter"){var Y,L=(Y=gj$(h.T$()))==null?void 0:Y.fN(),q;Y=(q=h.getVideoData())==null?void 0:q.D9;L instanceof g.mx&&Y&&(q=Y[yA(Y,h.z$.startTimeMs)],L.renderChapterSeekingAnimation(0,q.title));isNaN(Number(h.z$.loopCount))?h.z$.loopCount=0:h.z$.loopCount++;h.z$.loopCount===1&&h.m_.jM("innertubeCommand",h.getVideoData().BB)}L={EY:"application_loopRangeStart"};if(h.z$.type=== "clips"||h.z$.type==="shortsLoop")L.seekSource=58;t.seekTo(h.z$.startTimeMs*.001,L)}}; bg1=function(h,t){var Y=h.m_.getAvailablePlaybackRates();t=Number(t.toFixed(2));h=Y[0];Y=Y[Y.length-1];t<=h?t=h:t>=Y?t=Y:(h=Math.floor(t*100+.001)%5,t=h===0?t:Math.floor((t-h*.01)*100+.001)/100);return t}; aX=function(h,t){t=h.N6({playerType:t});if(!t)return h.eE.G.Xn();t=Gx(h,t);return EG(h,t.Xn(),t)}; EG=function(h,t,Y){if(h.t7(Y)&&(Y=Y.getVideoData(),!kX(h))){h=h.Do;for(var L=g.b(h.T),q=L.next();!q.done;q=L.next())if(q=q.value,Y.OY===q.OY){t+=q.F6/1E3;break}L=t;h=g.b(h.T);for(q=h.next();!q.done;q=h.next()){q=q.value;if(Y.OY===q.OY)break;var z=q.F6/1E3;if(z1&&(q=!1);if(!h.hO||q!==t){Y=Y.lock(q?"portrait":"landscape");if(Y!=null)Y["catch"](function(){}); h.hO=!0}}else h.hO&&(h.hO=!1,Y.unlock())}; A4=function(h,t,Y){h.m_.publish(t,Y);var L=g.z4(h.Me)||g.SI(h.Me)||g.rP(h.Me);if(Y&&L){switch(t){case "cuerangemarkersupdated":var q="onCueRangeMarkersUpdated";break;case "cuerangesadded":q="onCueRangesAdded";break;case "cuerangesremoved":q="onCueRangesRemoved"}q&&h.m_.jM(q,Y.map(function(z){return{getId:function(){return this.id}, end:z.end,id:z.getId(),namespace:z.namespace==="ad"?"ad":"",start:z.start,style:z.style,visible:z.visible}}))}}; Sx=function(h,t,Y,L,q,z){Y=Y===void 0?!0:Y;var V=h.N6({playerType:q});if(!V||(V.getPlayerType()!==2||h.t7(V))&&!g.Ef(V.getVideoData())){var l=h.eE.Wd;l?l.seekTo(t,{d_:!Y,Uw:L,EY:"application",seekSource:z}):(V&&V===h.x4()&&h.z$&&!aai(h,t)&&h.setLoopRange(null),h.seekTo(t,Y,L,q,z))}}; tvr=function(h,t,Y,L){Y&&(h.EL(),oX(h));Y=h.k8();Y.vY(t);var q=h.getVideoData(),z={};z.video_id=q.videoId;z.adformat=q.adFormat;q.isLivePlayback||(z.start=Y.getCurrentTime(),z.resume="1");q.isLivePlayback&&os(q)&&g.LV(h.Me)&&(z.live_utc_start=Y.a7(),z.resume="1");q.gU&&(z.vvt=q.gU);q.U&&(z.vss_credentials_token=q.U,z.vss_credentials_token_type=q.iJ);q.oauthToken&&(z.oauth_token=q.oauthToken);z.autoplay=1;z.reload_count=q.Hq+1;z.reload_reason=t;q.m3&&(z.unplugged_partner_opt_out=q.m3);q.jf&&(z.ypc_is_premiere_trailer= q.jf);q.playerParams&&(z.player_params=q.playerParams);h.loadVideoByPlayerVars(z,void 0,!0,void 0,void 0,L);t==="signature"&&h.k0&&evL(h)}; i9i=function(h,t){h.n6().autonavState=t;g.dK("yt-player-autonavstate",t);h.m_.publish("autonavchange",t)}; gdL=function(h){var t=h.getVideoData().bB,Y=h.Me.iP,L=h.isInline()&&!h.getVideoData().I1,q=h.mediaElement;t||Y||L?q.Lw():(q.aL(),vK(h,h.VC))}; OG=function(h){var t=Kq(h.T$());t&&t.created&&(h.logger.debug("reset ad module"),t.destroy())}; kX=function(h){return h.getVideoData().enableServerStitchedDai&&!!h.k0}; YDW=function(h,t){t.bounds=h.getBoundingClientRect();for(var Y=g.b(["display","opacity","visibility","zIndex"]),L=Y.next();!L.done;L=Y.next())L=L.value,t[L]=Sr(h,L);t.hidden=!!h.hidden}; gSL=function(h){var t=h.webPlayerContextConfig.trustedJsUrl;return t?Xk(t).toString():h.webPlayerContextConfig.jsUrl}; Lr$=function(h,t){var Y=h.N6({playerType:1});if(Y){if(Y.getVideoData().clientPlaybackNonce===t)return Y;if((h=h.Sk.G)&&h.getVideoData().clientPlaybackNonce===t)return h}return null}; CQc=function(h){function t(L){return dx(R9L(h.FD),function(q){return q.Ah(L)})} h.Wq.tick("wasm_s");var Y=HML(h.webPlayerContextConfig.wasmModuleUrl,J43(h.FD)?t:void 0,h.hs.bind(h));Y==null||dx(Y,function(L){h.Wq.tick(L.G?"wasm_fa":"wasm_fw")},function(){h.Wq.tick("wasm_ferr")}); uJ3(h.Me,Y)}; qDL=function(h){return h.name==="TypeError"&&h.stack.includes("/s/player/")&&pi()<=105}; zT6=function(h){return h.isTimeout?"NO_BID":"ERR_BID"}; VvL=function(){var h=null;uW3().then(function(t){return h=t},function(t){return h=zT6(t)}); return h}; NHc=function(){var h=pm(1E3,"NO_BID");return g.ck(SML([uW3(),h]).wS(zT6),function(){h.cancel()})}; IX=function(h){return h.R7?g.pY(g.JG(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; RX=function(h){this.player=h;this.S=this.G=1}; wjp=function(h,t,Y,L,q,z){t.client||(t.client={});h.player.J().N("h5_remove_url_for_get_ad_break")||(t.client.originalUrl=Y);var V=mi(Y),l=g.VC(Y)?!1:!0;(V||l)&&typeof Intl!=="undefined"&&(t.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);l=g.VC(Y)?!1:!0;if(V||l||L!==""){var H={};Y=AT(gj(L)).split("&");var w=new Map;Y.forEach(function(W){W=W.split("=");W.length>1&&w.set(W[0].toString(),decodeURIComponent(W[1].toString()))}); w.has("bid")&&(H.bid=w.get("bid"));H.params=[];lfb.forEach(function(W){w.has(W)&&(W={key:W,value:w.get(W)},H.params.push(W))}); H9c(h,H);t.adSignalsInfo=H}t.client.unpluggedAppInfo||(t.client.unpluggedAppInfo={});t.client.unpluggedAppInfo.enableFilterMode=!1;Y=q.G.cosver;Y!=null&&Y!=="cosver"&&(t.client.osVersion=Y);Y=q.G.cplatform;Y!=null&&Y!=="cplatform"&&Y!==""&&(t.client.platform=Y);Y=q.G.cmodel;Y!=null&&Y!=="cmodel"&&(t.client.deviceModel=Y);Y=q.G.cplayer;Y!=null&&Y!=="cplayer"&&(t.client.playerType=Y);Y=q.G.cbrand;Y!=null&&Y!=="cbrand"&&(t.client.deviceMake=Y);t.user||(t.user={});t.user.lockedSafetyMode=!1;(q.N("embeds_web_enable_iframe_api_send_full_embed_url")|| q.N("embeds_enable_autoplay_and_visibility_signals"))&&g.AU(q)&<n(t,z,h.player.getPlayerState(1))}; Xji=function(h,t){var Y=!1;if(t==="")return Y;t.split(",").forEach(function(L){var q={},z={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},V="ACTIVE";L[0]==="!"&&(L=L.substring(1),V="INACTIVE");L=L.split("-");L.length<3||(L[0]in WrD&&(z.clientName=WrD[L[0]]),L[1]in ycb&&(z.platform=ycb[L[1]]),z.applicationState=V,z.clientVersion=L.length>2?L[2]:"",q.remoteClient=z,h.remoteContexts?h.remoteContexts.push(q):h.remoteContexts=[q],Y=!0)}); return Y}; CgL=function(h){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Ugb))return!1;h=h.split(RegExp("[:&]"));var t=Ugb.FLAG_AUTO_CAPTIONS_DEFAULT_ON,Y="f"+(1+Math.floor(t/31)).toString();t=1<=2?V[1]:"";var l=Frp.test(t),H=sw1.exec(t);H=H!=null&&H.length>=2?H[1]:"";var w=jw6.exec(t);w=w!=null&&w.length>=2&&!Number.isNaN(Number(w[1]))?Number(w[1]):1;var W=Z9L.exec(t);W=W!=null&&W.length>=2?W[1]:"0";var y=Pc(h.player.J().Xv),X=h.player.getVideoData(1),U=g.fs(X.Zx,!0),C="BISCOTTI_ID"in Y?Y.BISCOTTI_ID:"";wjp(h,U,t,C.toString(),h.player.J(), X);X={splay:!1,lactMilliseconds:Y.LACT.toString(),playerHeightPixels:Math.trunc(Y.P_H),playerWidthPixels:Math.trunc(Y.P_W),vis:Math.trunc(Y.VIS),signatureTimestamp:20277,autonavState:IX(h.player.J())};L&&(L={},Xji(L,Y.YT_REMOTE)&&(X.mdxContext=L));if(L=b9b.includes(y)?void 0:g.c2("PREF")){for(var d=L.split(RegExp("[:&]")),Q=0,J=d.length;Q1&&e[1].toUpperCase()==="TRUE"){U.user.lockedSafetyMode=!0;break}}X.autoCaptionsDefaultOn= CgL(L)}t=odW.exec(t);(t=t!=null&&t.length>=2?t[1]:"")&&H&&(U.user.credentialTransferTokens=[{token:t,scope:"VIDEO"}]);t={contentPlaybackContext:X};V={adBlock:Math.trunc(Y.AD_BLOCK),params:V,breakIndex:w,breakPositionMs:W,clientPlaybackNonce:Y.CPN,topLevelDomain:y,isProxyAdTagRequest:l,context:U,adSignalsInfoString:AT(gj(C.toString())),overridePlaybackContext:t};q!==void 0&&(V.cueProcessedMs=Math.round(q).toString());H&&(V.videoId=H);Y.LIVE_TARGETING_CONTEXT&&(V.liveTargetingParams=Y.LIVE_TARGETING_CONTEXT); Y.AD_BREAK_LENGTH&&(V.breakLengthMs=Math.trunc(Y.AD_BREAK_LENGTH*1E3).toString());z&&(V.driftFromHeadMs=z.toString());V.currentMediaTimeMs=Math.round(h.player.getCurrentTime(1)*1E3);(h=h.player.getGetAdBreakContext())&&(V.getAdBreakContext=h);return V}; Gpn=function(){RX.apply(this,arguments)}; Qw1=function(h,t,Y,L,q){var z=Y.RN;var V=Y.Ze;var l=h.player.J().dS,H=0;Y.cueProcessedMs&&V&&!z&&(Y=V.end-V.start,Y>0&&(H=Math.floor(Y/1E3)));var w={AD_BLOCK:q,AD_BREAK_LENGTH:z?z.cZ:H,AUTONAV_STATE:IX(h.player.J()),CA_TYPE:"image",CPN:h.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:h.player.cS()*1E3,LACT:X2(),LIVE_INDEX:z?h.S++:1,LIVE_TARGETING_CONTEXT:z&&z.context?z.context:"",MIDROLL_POS:V?Math.round(V.start/1E3):0,MIDROLL_POS_MS:V?Math.round(V.start):0,VIS:h.player.getVisibilityState(), P_H:h.player.Bm().oT().height,P_W:h.player.Bm().oT().width,YT_REMOTE:l?l.join(","):""},W=iZ(t7);Object.keys(W).forEach(function(y){W[y]!=null&&(w[y.toUpperCase()]=W[y].toString())}); L!==""&&(w.BISCOTTI_ID=L);L={};h7(t)&&(L.sts="20277",(h=h.player.J().forcedExperiments)&&(L.forced_experiments=h));return PB(g.b3(t,w),L)}; rcb=function(h,t){var Y=h.player.J(),L,q=(L=h.player.getVideoData(1))==null?void 0:L.oauthToken;return g.Up(Y,q).then(function(z){if(z&&DF()){var V=$l();TM(V,z)}return g.r2(h.player.D3(V),t,"/youtubei/v1/player/ad_break").then(function(l){return l})})}; ccW=function(h){this.fb=h}; uU1=function(h){this.K=h}; eTD=function(h){this.fb=h}; pjW=function(h){g.O.call(this);this.G=h;this.CG=Jcn(this)}; Jcn=function(h){var t=new QPL(h.G.ke);g.f(h,t);h=[new ccW(h.G.fb),new uU1(h.G.K),new eTD(h.G.fb),new wN(h.G.NG,h.G.L3),new yM,new Cb(h.G.q0,h.G.TO,h.G.fb),new WL,new HL];h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())rlb(t,Y.value);h=g.b(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(Y=h.next();!Y.done;Y=h.next())Xe(t,Y.value,function(){}); return t}; BK=function(h){var t=h.Dx,Y=h.uP;h=h.L6;var L=new TNc,q={j1:new dkL(t.get(),Y),uP:Y};return{CZ:new U1(Y,h,t,q),context:q,dk:L}}; PK=function(h,t,Y,L,q){g.O.call(this);this.T=t;this.QG=Y;this.Dx=L;this.HZ=q;this.listeners=[];var z=new sa(this);g.f(this,z);z.V(h,"internalAbandon",this.o4_);this.addOnDisposeCallback(function(){g.ZZ(z)})}; mW=function(h){this.K=h;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.X=!0;this.T=this.S=!1;this.adFormat=null;this.W="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; vdn=function(h){h.contentCpn=null;h.adCpn=null;h.videoId=null;h.adVideoId=null;h.adFormat=null;h.W="AD_PLACEMENT_KIND_UNKNOWN";h.actionType="unknown_type";h.S=!1;h.T=!1}; Krn=function(h,t){h=g.b(t);for(t=h.next();!t.done;t=h.next())if((t=t.value.renderer)&&(t.instreamVideoAdRenderer||t.linearAdSequenceRenderer||t.sandwichedLinearAdRenderer||t.instreamSurveyAdRenderer)){sH("ad_i");g.jC({isMonetized:!0});break}}; afL=function(h){var t;(t=h.K.getVideoData(1))!=null&&t.R0&&(h.T=!1,t={},h.G&&h.videoId&&(t.cttAuthInfo={token:h.G,videoId:h.videoId}),ZN("video_to_ad",t))}; g9=function(h){h.T=!1;var t={};h.G&&h.videoId&&(t.cttAuthInfo={token:h.G,videoId:h.videoId});ZN("ad_to_video",t);xgW(h)}; xgW=function(h){if(h.S)if(h.W==="AD_PLACEMENT_KIND_START"&&h.actionType==="video_to_ad")CU("video_to_ad");else{var t={adBreakType:J0(h.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:h.videoStreamType};h.actionType==="ad_to_video"?(h.contentCpn&&(t.targetCpn=h.contentCpn),h.videoId&&(t.targetVideoId=h.videoId)):(h.adCpn&&(t.targetCpn=h.adCpn),h.adVideoId&&(t.targetVideoId=h.adVideoId));h.adFormat&&(t.adType=h.adFormat);h.contentCpn&& (t.clientPlaybackNonce=h.contentCpn);h.videoId&&(t.videoId=h.videoId);h.adCpn&&(t.adClientPlaybackNonce=h.adCpn);h.adVideoId&&(t.adVideoId=h.adVideoId);g.jC(t,h.actionType);h.K.J().experiments.I0("html5_ads_csi_qoes")&&(t=h.K.WS(h.actionType==="ad_to_video"?1:2),t=(0,g.FH)()-1E3*t,of("qoes",t,h.actionType))}}; D_=function(h){g.O.call(this);this.K=h;this.G=new Map;this.T=new sa(this);g.f(this,this.T);this.T.V(this.K,g.EX("ad"),this.onCueRangeEnter,this);this.T.V(this.K,g.kO("ad"),this.onCueRangeExit,this)}; Edr=function(h,t,Y,L,q,z){g.aZ.call(this,t,Y,{id:h,namespace:"ad",priority:q,visible:L,associatedClipId:z})}; hM=function(h){this.K=h}; kp1=function(h,t){h.K.cueVideoByPlayerVars(t,2)}; tM=function(h){this.K=h}; iD=function(h){this.K=h;g.Sk(this.K.J().experiments,"tv_pacf_logging_sample_rate")}; O96=function(h){return ry(h,"html5_ssap_play_cached_preroll")}; YW=function(h,t){t=t===void 0?!1:t;return h.K.J().N("html5_ssap_force_ads_ctmp")?!0:(t||h.K.J().pZ())&&h.K.J().N("html5_ssap_pacf_qoe_ctmp")}; gT=function(h){var t;return(t=h.K.getVideoData(1)==null?void 0:!1)!=null?t:!1}; ry=function(h,t){return h.K.J().N(t)}; ndp=function(h){return h.K.J().N("substitute_ad_cpn_macro_in_ssdai")}; pn=function(h){var t,Y,L;return((t=h.K.getVideoData(1).getPlayerResponse())==null?void 0:(Y=t.playerConfig)==null?void 0:(L=Y.daiConfig)==null?void 0:L.enableServerStitchedDai)||!1}; aYi=function(h){return h.K.J().N("html5_enable_vod_slar_with_notify_pacf")}; ffL=function(h){return h.K.J().N("html5_recognize_predict_start_cue_point")}; wC=function(h){return h.K.J().experiments.I0("enable_desktop_player_underlay")}; $gc=function(h){return h.K.J().experiments.I0("html5_load_empty_player_in_media_break_sub_lra")}; TQ=function(h){return h.K.J().experiments.I0("html5_load_ads_instead_of_cue")}; A0=function(h){return h.K.J().experiments.I0("html5_preload_ads")}; TH$=function(h){return h.K.J().experiments.I0("should_ignore_cuepoints_during_lifa_preroll")}; l1=function(h){return h.K.J().experiments.I0("enable_ads_control_flow_deterministic_id_generation")}; AcW=function(h){return h.K.J().experiments.I0("enable_desktop_discovery_video_abandon_pings")||g.LM(h.K.J())}; SDL=function(h){return h.K.J().experiments.I0("enable_progres_commands_lr_feeds")}; vU=function(h){return h.K.J().experiments.I0("html5_cuepoint_identifier_logging")}; $Tn=function(h){h=h.K.getVideoData(1);return!!h&&h.N("html5_preload_first_vod_video_ad")&&!h.isDaiEnabled()&&!h.isLivePlayback}; IfL=function(h){return h.K.J().experiments.I0("html5_ssdai_enable_media_end_cue_range")}; RTD=function(h){switch(h){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; BHD=function(){g.PD.call(this);var h=this;this.G={};this.addOnDisposeCallback(function(){for(var t=g.b(Object.keys(h.G)),Y=t.next();!Y.done;Y=t.next())delete h.G[Y.value]})}; Yx=function(){if(Pgi===null){Pgi=new BHD;s2($A).T="b";var h=s2($A),t=aC(h)=="h"||aC(h)=="b",Y=!(tk(),!1);t&&Y&&(h.X=!0,h.U=new wFW)}return Pgi}; mgD=function(h,t,Y){h.G[t]=Y}; Dgc=function(h){switch(h){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; L5=function(h,t,Y){this.QG=h;this.K=t;this.uP=Y;this.T=new Set;this.G=new Map;Yx().subscribe("adactiveviewmeasurable",this.N5,this);Yx().subscribe("adfullyviewableaudiblehalfdurationimpression",this.X0,this);Yx().subscribe("adviewableimpression",this.Cl,this);Yx().subscribe("adaudioaudible",this.fl,this);Yx().subscribe("adaudiomeasurable",this.Uf,this)}; z8=function(h,t,Y){var L=Y.nz,q=Y.kq,z=Y.listener,V=Y.zc;Y=Y.i4===void 0?!1:Y.i4;if(h.G.has(t))gP("Unexpected registration of layout in LidarApi");else{if(V){if(h.T.has(V))return;h.T.add(V)}h.G.set(t,z);GR(tk().gz,"fmd",1);ZRi(s2($A),L);var l=Y?t:void 0;mgD(Yx(),t,{vy:function(){if(!q)return{};var H=h.K.getPresentingPlayerType(!0),w;return(w=h.K.getVideoData(H))!=null&&w.isAd()?{currentTime:h.QG.get().getCurrentTimeSec(H,!1,l),duration:q,isPlaying:qd(h.QG.get(),H).isPlaying(),isVpaid:!1,isYouTube:!0, volume:h.QG.get().isMuted()?0:h.QG.get().getVolume()/100}:{}}})}}; Vs=function(h,t){h.G.has(t)?(h.G.delete(t),delete Yx().G[t]):gP("Unexpected unregistration of layout in LidarApi")}; hmL=function(h,t){if(h.K.isLifaAdPlaying()){var Y=h.K.ZC(!0,!0);h.Rw(t,Y.width*.5*1.1,Y.height*.25*1.1,Y.width*.5*.9,Y.height*.5*.9)}}; g8L=function(h,t,Y){var L={};tgD(h,L,t,Y);iJc(L);L.LACT=Nd(function(){return X2().toString()}); L.VIS=Nd(function(){return h.getVisibilityState().toString()}); L.SDKV="h.3.0";L.VOL=Nd(function(){return h.isMuted()?"0":Math.round(h.getVolume()).toString()}); L.VED="";return L}; Yg6=function(h,t){var Y={};if(t||!h||!h.kind)return Y;if(h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||h.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!h.adTimeOffset||!h.adTimeOffset.offsetStartMilliseconds)return g.ZD(Error("malformed AdPlacementConfig")),Y;Y.MIDROLL_POS=Nd(er(Math.round(vz(h.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else Y.MIDROLL_POS=Nd(er("0"));return Y}; Nd=function(h){return{toString:function(){return h()}}}; LbL=function(h,t,Y){function L(l,H){(H=Y[H])&&(z[l]=H)} function q(l,H){(H=Y[H])&&(z[l]=V(H))} if(!Y||g.WZ(Y))return h;var z=Object.assign({},h),V=t?encodeURIComponent:function(l){return l}; q("DV_VIEWABILITY","doubleVerifyViewability");q("IAS_VIEWABILITY","integralAdsViewability");q("MOAT_INIT","moatInit");q("MOAT_VIEWABILITY","moatViewability");L("GOOGLE_VIEWABILITY","googleViewability");L("VIEWABILITY","viewability");return z}; tgD=function(h,t,Y,L){t.CPN=Nd(function(){var q;(q=h.getVideoData(1))?q=q.clientPlaybackNonce:(g.bc(Error("Video data is null.")),q=null);return q}); t.AD_MT=Nd(function(){if(L!=null)var q=L;else{var z=Y;h.J().N("html5_ssap_use_cpn_to_get_time")||(z=void 0);if(h.J().N("enable_h5_shorts_ad_fill_ad_mt_macro")||h.J().N("enable_desktop_discovery_pings_ad_mt_macro")||g.LM(h.J())){var V=h.getPresentingPlayerType(!0),l;q=((l=h.getVideoData(V))==null?0:l.isAd())?qgL(h,V,z):0}else q=qgL(h,2,z)}return zm3(q)}); t.MT=Nd(function(){return zm3(h.getCurrentTime(1,!1))}); t.P_H=Nd(function(){return h.Bm().oT().height.toString()}); t.P_W=Nd(function(){return h.Bm().oT().width.toString()}); t.PV_H=Nd(function(){return h.Bm().getVideoContentRect().height.toString()}); t.PV_W=Nd(function(){return h.Bm().getVideoContentRect().width.toString()})}; zm3=function(h){return Math.round(Math.max(0,h*1E3)).toString()}; iJc=function(h){h.CONN=Nd(er("0"));h.WT=Nd(function(){return Date.now().toString()})}; qgL=function(h,t,Y){return Y!==void 0?h.getCurrentTime(t,!1,Y):h.getCurrentTime(t,!1)}; Vg1=function(){}; NV$=function(h,t,Y,L,q){var z,V,l,H,w,W,y,X,U,C,d,Q,J;g.k(function(e){switch(e.T){case 1:z=!!t.scrubReferrer;V=g.b3(t.baseUrl,LbL(Y,z,L));l={};if(!t.headers){e.eM(2);break}H=h.W();if(!H.G){w=H.getValue();e.eM(3);break}return g.K(e,H.G,4);case 4:w=e.G;case 3:W=w;y=g.b(t.headers);for(X=y.next();!X.done;X=y.next())switch(U=X.value,U.headerType){case "VISITOR_ID":g.Ey("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Ey("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Ey("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= g.Ey("EOM_VISITOR_DATA"));break;case "USER_AUTH":W&&(l.Authorization="Bearer "+W);break;case "PLUS_PAGE_ID":(C=h.X())&&(l["X-Goog-PageId"]=C);break;case "AUTH_USER":d=h.G();!W&&d&&(l["X-Goog-AuthUser"]=d);break;case "DATASYNC_ID":if(Q=void 0,(Q=h.S())==null?0:Q.I0("enable_datasync_id_header_in_web_vss_pings"))J=h.T(),mi(V)&&g.Ey("LOGGED_IN")&&J&&(l["X-YouTube-DataSync-Id"]=J)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.rd(V,void 0,z,Object.keys(l).length!== 0?l:void 0,"",!0,q),g.Z$(e)}})}; lnL=function(h,t,Y,L,q){this.W=h;this.X=t;this.G=Y;this.T=L;this.S=q}; HJW=function(h,t){this.G=h;this.uP=t}; lD=function(h,t,Y,L,q,z,V){var l=l===void 0?new lnL(function(){var H=h.J(),w=h.getVideoData(1);return g.Up(H,w?g.Pu(w):"")},function(){return h.J().pageId},function(){return h.J().R0},function(){var H; return(H=h.J().datasyncId)!=null?H:""},function(){return h.J().experiments}):l; this.K=h;this.T=t;this.uI=Y;this.Dx=L;this.CZ=q;this.uP=z;this.dk=V;this.W=l;this.KO=null;this.G=new Map;this.S=new HJW(l,this.uP)}; Wbp=function(h,t,Y,L,q){var z=$K(h.T.get(),Y);z?(Y=N0(h,w96(z),z,void 0,void 0,L),t.hasOwnProperty("baseUrl")?h.W.send(t,Y):h.S.send(t,Y,{},q)):gP("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Y})}; vU$=function(h,t,Y,L,q,z){L=L===void 0?[]:L;var V=$K(h.T.get(),t);if(V){var l=h.uI.get().iZ(t,Y),H=N0(h,w96(V),V,q,z);L.forEach(function(w,W){w.baseUrl&&(h.S.send(w.baseUrl,H,l,w.attributionSrcMode),w.serializedAdPingMetadata&&h.CZ.sJ("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,V,new WDc(w,W),void 0,void 0,V.adLayoutLoggingData))})}else gP("Trying to track from an unknown layout.",void 0,void 0,{layoutId:t, trackingType:Y})}; te=function(h,t){h.K.sendVideoStatsEngageEvent(t,void 0,2)}; HO=function(h,t){g.tq("adsClientStateChange",t)}; yDL=function(h,t){h.G.has(t.yf())?gP("Trying to register an existing AdErrorInfoSupplier."):h.G.set(t.yf(),t)}; X9L=function(h,t){h.G.delete(t.yf())||gP("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; yN=function(h,t,Y){typeof Y==="string"?h.K.getVideoData(1).uX(t,Y):h.K.getVideoData(1).Pm(t,Y)}; w96=function(h){var t=kV(h.clientMetadata,"metadata_type_ad_placement_config");h=kV(h.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:t,wR:h}}; N0=function(h,t,Y,L,q,z){var V=Y?UjL(h):{},l=Y?Ch$(h,Y.layoutId):{},H=Mgp(h),w,W=q!=null?q:(w=rt(h.Dx.get(),2))==null?void 0:w.clientPlaybackNonce;q=void 0;if(Y){var y;if((y=h.dk.G.get(Y.layoutId))==null?0:y.i4)q=Y.layoutId}y={};h=Object.assign({},g8L(h.K,q,L),Yg6(t.adPlacementConfig,(Y==null?void 0:Y.renderingContent)!==void 0),l,V,H,(y.FINAL=Nd(function(){return"1"}),y.AD_CPN=Nd(function(){return W||""}),y)); (Y==null?void 0:Y.renderingContent)!==void 0||(h.SLOT_POS=Nd(function(){return(t.wR||0).toString()})); Y={};z=Object.assign({},h,z);h=g.b(Object.values(Fbn));for(L=h.next();!L.done;L=h.next())L=L.value,V=z[L],V!=null&&V.toString()!=null&&(Y[L]=V.toString());return Y}; UjL=function(h){var t={},Y,L=(Y=h.KO)==null?void 0:Y.GQ/1E3;L!=null&&(t.SURVEY_ELAPSED_MS=Nd(function(){return Math.round(L*1E3).toString()})); t.SURVEY_LOCAL_TIME_EPOCH_S=Nd(function(){return Math.round(Date.now()/1E3).toString()}); return t}; Ch$=function(h,t){h=h.G.get(t);if(!h)return{};h=h.XQ();if(!h)return{};t={};return t.YT_ERROR_CODE=h.wl.toString(),t.ERRORCODE=h.va.toString(),t.ERROR_MSG=h.errorMessage,t}; Mgp=function(h){var t={},Y=h.K.getVideoData(1);t.ASR=Nd(function(){var L;return(L=Y==null?void 0:Y.PA)!=null?L:null}); t.EI=Nd(function(){var L;return(L=Y==null?void 0:Y.eventId)!=null?L:null}); return t}; Ha=function(h,t,Y){g.O.call(this);this.K=h;this.Jv=t;this.uP=Y;this.listeners=[];this.u6=null;this.bN=new Map;t=new g.UF(this);g.f(this,t);t.V(h,"videodatachange",this.R9b);t.V(h,"serverstitchedvideochange",this.j4m);this.TP=rt(this)}; rt=function(h,t){var Y=h.K.getVideoData(t);return Y?h.B6(Y,t||h.K.getPresentingPlayerType(!0)):null}; sIp=function(h,t,Y){var L=h.B6(t,Y);h.TP=L;h.listeners.forEach(function(q){q.qH(L)})}; jI6=function(h){switch(h){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; wT=function(h,t,Y){g.O.call(this);this.K=h;this.Dx=t;this.uP=Y;this.listeners=[];this.Vd=[];this.G=function(){gP("Called 'doUnlockPreroll' before it's initialized.")}; t=new sa(this);Y=new g.UF(this);g.f(this,Y);g.f(this,t);t.V(h,"progresssync",this.cJm);t.V(h,"presentingplayerstatechange",this.bZi);t.V(h,"fullscreentoggled",this.onFullscreenToggled);t.V(h,"onVolumeChange",this.onVolumeChange);t.V(h,"minimized",this.Em);t.V(h,"overlayvisibilitychange",this.yP);t.V(h,"shortsadswipe",this.Fn);t.V(h,"resize",this.Bq);Y.V(h,g.EX("appad"),this.VP)}; Wa=function(h){gT(h.uP.get())||h.G()}; ZJ1=function(h,t){h.Vd=h.Vd.filter(function(Y){return Y!==t})}; ys=function(h,t,Y){return h.getCurrentTimeSec(t,Y)}; Xf=function(h,t){var Y;t=(Y=h.Dx.get().bN.get(t))!=null?Y:null;if(t===null)return gP("Expected ad video start time on playback timeline"),0;h=h.K.getCurrentTime(2,!0);return h0){var z=t.end.toString();q.forEach(function(V){(V=V.config&&V.config.adPlacementConfig)&&V.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&V.adTimeOffset&&V.adTimeOffset.offsetEndMilliseconds==="-1"&&V.adTimeOffset.offsetEndMilliseconds!==z&&(V.adTimeOffset.offsetEndMilliseconds=z)}); L.map(function(V){return g.A(V,PX)}).forEach(function(V){var l; (V=V==null?void 0:(l=V.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&V.offsetEndMilliseconds==="-1"&&(V.offsetEndMilliseconds=z)})}return{bS:q, adSlots:L,FA:!1,ssdaiAdsConfig:h.ssdaiAdsConfig}}; sU=function(h){g.O.call(this);this.K=h;this.listeners=[];this.G=new sa(this);g.f(this,this.G);this.G.V(this.K,"aduxclicked",this.onAdUxClicked);this.G.V(this.K,"aduxmouseover",this.vv);this.G.V(this.K,"aduxmouseout",this.Vo);this.G.V(this.K,"muteadaccepted",this.z58)}; QIL=function(h,t,Y){t=g.CQ(t,function(L){return new nIL(L,Y,L.id)}); h.K.jM("onAdUxUpdate",t)}; jO=function(h,t){h=g.b(h.listeners);for(var Y=h.next();!Y.done;Y=h.next())t(Y.value)}; Ze=function(h,t){this.T=h;this.S=t===void 0?!1:t;this.G={}}; rDW=function(h,t){var Y=h.startSecs+h.cZ;Y=Y<=0?null:Y;if(Y===null)return null;switch(h.event){case "start":case "continue":case "stop":break;case "predictStart":if(t)break;return null;default:return null}t=Math.max(h.startSecs,0);return{KK:new Xg(t,Y),Gh:new gZ(t,Y-t,h.context,h.identifier,h.event,h.G)}}; cDL=function(){this.G=[]}; eZL=function(h,t,Y){var L=g.fH(h.G,t);if(L>=0)return t;t=-L-1;return t>=h.G.length||h.G[t]>Y?null:h.G[t]}; bD=function(h,t,Y){g.O.call(this);this.K=h;this.uP=t;this.fb=Y;this.listeners=[];this.W=!1;this.Yp=[];this.G=null;this.X=new Ze(this,ffL(t.get()));this.S=new cDL;this.T=null}; ubr=function(h,t){h.Yp.push(t);for(var Y=!1,L=g.b(h.listeners),q=L.next();!q.done;q=L.next())Y=q.value.g5(t)||Y;h.W=Y;vU(h.uP.get())&&yN(h.fb.get(),"onci","cpi."+t.identifier+";cpe."+t.event+";cps."+t.startSecs+";cbi."+Y)}; JDL=function(h,t){HO(h.fb.get(),{cuepointTrigger:{event:emL(t.event),cuepointId:t.identifier,totalCueDurationMs:t.cZ*1E3,playheadTimeMs:t.G,cueStartTimeMs:t.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:h.K.getVideoData(1).clientPlaybackNonce}})}; emL=function(h){switch(h){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return wk(h,"Unexpected cuepoint event")}}; oU=function(h){this.K=h}; dT=function(h){this.K=h}; p9i=function(h){switch(h){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:wk(h,"unknown transitionReason")}}; G8=function(){g.O.apply(this,arguments)}; v8W=function(h){this.K=h}; KbL=function(h,t,Y,L,q){g.O.call(this);var z=this,V=j6(function(){return new Nm(z.uP)}); g.f(this,V);var l=j6(function(){return new HG(V,z.uP)}); g.f(this,l);var H=j6(function(){return new nn}); g.f(this,H);var w=j6(function(){return new kK(h)}); g.f(this,w);var W=j6(function(){return new wx(V,l,z.uP)}); g.f(this,W);var y=j6(function(){return new CO}); g.f(this,y);this.q_=j6(function(){return new sU(t)}); g.f(this,this.q_);this.Zs=j6(function(){return new bL(q)}); g.f(this,this.Zs);this.SE=j6(function(){return new mW(t)}); g.f(this,this.SE);this.o4=j6(function(){return new D_(t)}); g.f(this,this.o4);this.GD=j6(function(){return new hM(t)}); g.f(this,this.GD);this.ke=j6(function(){return new tM(t)}); g.f(this,this.ke);this.uP=j6(function(){return new iD(t)}); g.f(this,this.uP);var X=j6(function(){return new Ff(L)}); g.f(this,X);var U=j6(function(){return new IS(z.uP)}); g.f(this,U);this.lj=j6(function(){return new oU(t)}); g.f(this,this.lj);this.wH=j6(function(){return new G4}); g.f(this,this.wH);this.Dx=j6(function(){return new Ha(t,y,z.uP)}); g.f(this,this.Dx);var C=BK({Dx:this.Dx,uP:this.uP,L6:U}),d=C.context,Q=C.dk;this.CZ=C.CZ;this.HZ=j6(function(){return new bD(t,z.uP,z.fb)}); g.f(this,this.HZ);this.xe=j6(function(){return new dT(t)}); g.f(this,this.xe);this.QG=j6(function(){return new wT(t,z.Dx,z.uP)}); g.f(this,this.QG);this.E9=j6(function(){return new G8}); g.f(this,this.E9);C=j6(function(){return new cU(V,W,l,z.uP,U,"SLOT_TYPE_ABOVE_FEED",z.QG,z.V2,z.kT)}); g.f(this,C);this.jh=j6(function(){return new Qa(z.uP)}); this.uI=j6(function(){return new L5(z.QG,t,z.uP)}); g.f(this,this.uI);this.fb=j6(function(){return new lD(t,H,z.uI,z.Dx,z.CZ,z.uP,Q)}); g.f(this,this.fb);this.V7=new xK(ay,Qs,function(e,v,E,T){return HU(l.get(),e,v,E,T)},w,W,l,U,this.uP,this.Dx); g.f(this,this.V7);this.G6=new Em(w,C,Y,this.uP,h,this.Dx,this.QG,this.SE);g.f(this,this.G6);var J=new PK(t,this.G6,this.QG,this.Dx,this.HZ);this.U9=j6(function(){return J}); this.Dm=J;this.V2=new J_(w,W,this.U9,this.HZ,this.QG,this.uP,this.fb,this.xe);g.f(this,this.V2);this.v2=new Om(w,W,this.o4,this.U9,d);g.f(this,this.v2);this.T6=new BX(this.uP,w,W,C,this.Dx,this.v2,Y,this.GD);g.f(this,this.T6);this.Pi=j6(function(){return new A8(X,l,U,z.uP,z.fb,z.QG,z.xe)}); g.f(this,this.Pi);this.xT=j6(function(){return new S6}); g.f(this,this.xT);this.PM=new Ry(h,this.q_,this.uP);g.f(this,this.PM);this.JC=new BU(h);g.f(this,this.JC);this.xt=new PU(h);g.f(this,this.xt);this.Om=new DQ(h,this.U9,d);g.f(this,this.Om);this.IW=new hE(h,this.o4,this.QG,this.Dx,d);g.f(this,this.IW);this.xL=new tE(h,this.Dx);g.f(this,this.xL);this.kT=new Yj(h,this.HZ,this.QG,this.fb,this.U9,this.V2);g.f(this,this.kT);this.RW=new i1(h);g.f(this,this.RW);this.Qp=new VP(h);g.f(this,this.Qp);this.Hi=new gx(h);g.f(this,this.Hi);this.ZY=new zB(h);g.f(this, this.ZY);this.Qp=new VP(h);g.f(this,this.Qp);this.aW=j6(function(){return new TS}); g.f(this,this.aW);this.r4=j6(function(){return new A_(z.QG)}); g.f(this,this.r4);this.z0=j6(function(){return new tTL(z.q_,z.fb,h,H,z.uI)}); g.f(this,this.z0);this.AV=j6(function(){return new Je(z.T6,w,V)}); g.f(this,this.AV);this.Sf=j6(function(){return new K4(z.uP,z.fb,z.RW,z.uI)}); g.f(this,this.Sf);this.O0=j6(function(){return new jS(h,z.Qp,z.RW,z.Dx,z.xe,z.QG,z.E9,z.fb,y,z.HZ,z.uI,z.jh,z.GD,z.o4,z.SE,z.ke,z.Zs,z.lj,z.uP,H,d,Q)}); g.f(this,this.O0);this.kF=j6(function(){return new XHL(z.QG,z.fb,z.Zs,z.uP,z.uI,z.Dx)}); g.f(this,this.kF);this.sE=j6(function(){return new iUL(z.q_,z.QG,z.fb,H,z.uI,z.xt,z.ZY,z.Zs,z.uP,Y)}); g.f(this,this.sE);this.Cc=j6(function(){return new ic3(z.q_,z.fb,H)}); g.f(this,this.Cc);this.Jw=new Md(h,this.wH,V);g.f(this,this.Jw);this.pQ={s_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.T6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.V2],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.V7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.G6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.v2]]),XE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pi],["SLOT_TYPE_ABOVE_FEED",this.xT],["SLOT_TYPE_FORECASTING",this.xT], ["SLOT_TYPE_IN_PLAYER",this.xT],["SLOT_TYPE_PLAYER_BYTES",this.xT],["SLOT_TYPE_PLAYER_UNDERLAY",this.xT],["SLOT_TYPE_PLAYBACK_TRACKING",this.xT],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.xT]]),I$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PM],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.PM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.JC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.JC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.JC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.JC],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.JC],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.JC],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Om],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.IW],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.IW],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.IW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.IW],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.IW],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.IW],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.IW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.RW],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Om],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.ZY],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Qp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.kT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.kT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.kT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.kT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.kT]]),t8:new Map([["SLOT_TYPE_ABOVE_FEED",this.aW], ["SLOT_TYPE_AD_BREAK_REQUEST",this.aW],["SLOT_TYPE_FORECASTING",this.aW],["SLOT_TYPE_IN_PLAYER",this.aW],["SLOT_TYPE_PLAYER_BYTES",this.r4],["SLOT_TYPE_PLAYER_UNDERLAY",this.aW],["SLOT_TYPE_PLAYBACK_TRACKING",this.aW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.aW]]),GB:new Map([["SLOT_TYPE_ABOVE_FEED",this.z0],["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.Sf],["SLOT_TYPE_PLAYER_BYTES",this.O0],["SLOT_TYPE_PLAYBACK_TRACKING",this.kF],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.kF],["SLOT_TYPE_IN_PLAYER",this.sE],["SLOT_TYPE_PLAYER_UNDERLAY",this.Cc]])};this.listeners=[H.get()];this.U_={T6:this.T6,TO:this.uP.get(),F5:this.Zs.get(),LU:this.QG.get(),G6:this.G6,r6:V.get(),u5:this.wH.get(),L3:this.PM,NG:H.get(),q0:this.Dx.get()}}; an1=function(h,t,Y,L,q){g.O.call(this);var z=this,V=j6(function(){return new Nm(z.uP)}); g.f(this,V);var l=j6(function(){return new HG(V,z.uP)}); g.f(this,l);var H=j6(function(){return new nn}); g.f(this,H);var w=j6(function(){return new kK(h)}); g.f(this,w);var W=j6(function(){return new wx(V,l,z.uP)}); g.f(this,W);var y=j6(function(){return new CO}); g.f(this,y);this.q_=j6(function(){return new sU(t)}); g.f(this,this.q_);this.Zs=j6(function(){return new bL(q)}); g.f(this,this.Zs);this.SE=j6(function(){return new mW(t)}); g.f(this,this.SE);this.o4=j6(function(){return new D_(t)}); g.f(this,this.o4);this.GD=j6(function(){return new hM(t)}); g.f(this,this.GD);this.ke=j6(function(){return new tM(t)}); g.f(this,this.ke);this.uP=j6(function(){return new iD(t)}); g.f(this,this.uP);var X=j6(function(){return new Ff(L)}); g.f(this,X);var U=j6(function(){return new IS(z.uP)}); g.f(this,U);var C=j6(function(){return new cU(V,W,l,z.uP,U,null,null,z.V2,z.kT)}); g.f(this,C);this.lj=j6(function(){return new oU(t)}); g.f(this,this.lj);this.wH=j6(function(){return new G4}); g.f(this,this.wH);this.Dx=j6(function(){return new Ha(t,y,z.uP)}); g.f(this,this.Dx);var d=BK({Dx:this.Dx,uP:this.uP,L6:U}),Q=d.context,J=d.dk;this.CZ=d.CZ;this.HZ=j6(function(){return new bD(t,z.uP,z.fb)}); this.QG=j6(function(){return new wT(t,z.Dx,z.uP)}); g.f(this,this.QG);this.E9=j6(function(){return new G8}); g.f(this,this.E9);this.uI=j6(function(){return new L5(z.QG,t,z.uP)}); g.f(this,this.uI);this.fb=j6(function(){return new lD(t,H,z.uI,z.Dx,z.CZ,z.uP,J)}); g.f(this,this.fb);this.jh=j6(function(){return new Qa(z.uP)}); g.f(this,this.jh);this.V7=new xK(ay,Qs,function(v,E,T,hr){return HU(l.get(),v,E,T,hr)},w,W,l,U,this.uP,this.Dx); g.f(this,this.V7);this.G6=new Em(w,C,Y,this.uP,h,this.Dx,this.QG,this.SE);g.f(this,this.G6);var e=new PK(t,this.G6,this.QG,this.Dx,this.HZ);this.U9=j6(function(){return e}); this.Dm=e;this.V2=new J_(w,W,this.U9,this.HZ,this.QG,this.uP,this.fb);g.f(this,this.V2);this.v2=new Om(w,W,this.o4,this.U9,Q);g.f(this,this.v2);this.T6=new BX(this.uP,w,W,C,this.Dx,this.v2,Y,this.GD);g.f(this,this.T6);this.Pi=j6(function(){return new A8(X,l,U,z.uP,z.fb,z.QG)}); g.f(this,this.Pi);this.xT=j6(function(){return new S6}); g.f(this,this.xT);this.PM=new Ry(h,this.q_,this.uP);g.f(this,this.PM);this.JC=new BU(h);g.f(this,this.JC);this.xt=new PU(h);g.f(this,this.xt);this.Om=new DQ(h,this.U9,Q);g.f(this,this.Om);this.IW=new hE(h,this.o4,this.QG,this.Dx,Q);g.f(this,this.IW);this.RW=new i1(h);g.f(this,this.RW);this.Hi=new gx(h);g.f(this,this.Hi);this.ZY=new zB(h);g.f(this,this.ZY);this.xe=j6(function(){return new dT(t)}); g.f(this,this.xe);this.Qp=new VP(h);g.f(this,this.Qp);this.kT=new Yj(h,this.HZ,this.QG,this.fb,this.U9,this.V2);g.f(this,this.kT);this.aW=j6(function(){return new TS}); g.f(this,this.aW);this.r4=j6(function(){return new A_(z.QG)}); g.f(this,this.r4);this.AV=j6(function(){return new Je(z.T6,w,V)}); g.f(this,this.AV);this.Sf=j6(function(){return new K4(z.uP,z.fb,z.RW,z.uI)}); g.f(this,this.Sf);this.sE=j6(function(){return new goD(z.q_,z.QG,z.fb,H,z.uI,z.xt,z.ZY,z.Zs,z.uP,Y)}); g.f(this,this.sE);this.O0=j6(function(){return new Zu(h,z.Qp,z.RW,z.fb,z.uI,z.jh,z.GD,z.Dx,z.QG,z.E9,z.o4,z.SE,z.ke,z.Zs,z.lj,z.uP,z.xe,Q,J)}); g.f(this,this.O0);this.Jw=new Md(h,this.wH,V);g.f(this,this.Jw);this.pQ={s_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.T6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.V2],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.V7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.G6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.v2]]),XE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pi],["SLOT_TYPE_FORECASTING",this.xT],["SLOT_TYPE_IN_PLAYER",this.xT], ["SLOT_TYPE_PLAYER_BYTES",this.xT]]),I$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.JC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.JC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.JC], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.JC],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Om],["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.RW],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Om],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.ZY],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Qp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.kT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.kT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.kT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.kT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.kT]]),t8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aW],["SLOT_TYPE_FORECASTING",this.aW],["SLOT_TYPE_IN_PLAYER",this.aW],["SLOT_TYPE_PLAYER_BYTES",this.r4]]), GB:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.Sf],["SLOT_TYPE_IN_PLAYER",this.sE],["SLOT_TYPE_PLAYER_BYTES",this.O0]])};this.listeners=[H.get()];this.U_={T6:this.T6,TO:this.uP.get(),F5:this.Zs.get(),LU:this.QG.get(),G6:this.G6,r6:V.get(),u5:this.wH.get(),L3:this.PM,NG:H.get(),q0:this.Dx.get()}}; xj6=function(h,t,Y,L,q){g.O.call(this);var z=this,V=j6(function(){return new Nm(z.uP)}); g.f(this,V);var l=j6(function(){return new HG(V,z.uP)}); g.f(this,l);var H=j6(function(){return new nn}); g.f(this,H);var w=j6(function(){return new kK(h)}); g.f(this,w);var W=j6(function(){return new wx(V,l,z.uP)}); g.f(this,W);var y=j6(function(){return new CO}); g.f(this,y);this.q_=j6(function(){return new sU(t)}); g.f(this,this.q_);this.Zs=j6(function(){return new bL(q)}); g.f(this,this.Zs);this.SE=j6(function(){return new mW(t)}); g.f(this,this.SE);this.o4=j6(function(){return new D_(t)}); g.f(this,this.o4);this.GD=j6(function(){return new hM(t)}); g.f(this,this.GD);this.ke=j6(function(){return new tM(t)}); g.f(this,this.ke);this.uP=j6(function(){return new iD(t)}); g.f(this,this.uP);var X=j6(function(){return new Ff(L)}); g.f(this,X);var U=j6(function(){return new IS(z.uP)}); g.f(this,U);var C=j6(function(){return new cU(V,W,l,z.uP,U,null,null,null,null)}); g.f(this,C);this.lj=j6(function(){return new oU(t)}); g.f(this,this.lj);this.Dx=j6(function(){return new Ha(t,y,z.uP)}); g.f(this,this.Dx);var d=BK({Dx:this.Dx,uP:this.uP,L6:U}),Q=d.context,J=d.dk;this.CZ=d.CZ;this.QG=j6(function(){return new wT(t,z.Dx,z.uP)}); g.f(this,this.QG);this.E9=j6(function(){return new G8}); g.f(this,this.E9);this.uI=j6(function(){return new L5(z.QG,t,z.uP)}); g.f(this,this.uI);this.fb=j6(function(){return new lD(t,H,z.uI,z.Dx,z.CZ,z.uP,J)}); g.f(this,this.fb);this.jh=j6(function(){return new Qa(z.uP)}); g.f(this,this.jh);this.V7=new xK(ay,Qs,function(v,E,T,hr){return HU(l.get(),v,E,T,hr)},w,W,l,U,this.uP,this.Dx); g.f(this,this.V7);this.G6=new Em(w,C,Y,this.uP,h,this.Dx,this.QG,this.SE);g.f(this,this.G6);var e=new PK(t,this.G6,this.QG,this.Dx);this.U9=j6(function(){return e}); this.Dm=e;this.v2=new Om(w,W,this.o4,this.U9,Q);g.f(this,this.v2);this.T6=new BX(this.uP,w,W,C,this.Dx,this.v2,Y,this.GD);g.f(this,this.T6);this.Pi=j6(function(){return new A8(X,l,U,z.uP,z.fb,z.QG)}); g.f(this,this.Pi);this.xT=j6(function(){return new S6}); g.f(this,this.xT);this.PM=new Ry(h,this.q_,this.uP);g.f(this,this.PM);this.JC=new BU(h);g.f(this,this.JC);this.Om=new DQ(h,this.U9,Q);g.f(this,this.Om);this.IW=new hE(h,this.o4,this.QG,this.Dx,Q);g.f(this,this.IW);this.RW=new i1(h);g.f(this,this.RW);this.Hi=new gx(h);g.f(this,this.Hi);this.xe=j6(function(){return new dT(t)}); g.f(this,this.xe);this.Qp=new VP(h);g.f(this,this.Qp);this.aW=j6(function(){return new TS}); g.f(this,this.aW);this.r4=j6(function(){return new A_(z.QG)}); g.f(this,this.r4);this.AV=j6(function(){return new Je(z.T6,w,V)}); g.f(this,this.AV);this.Sf=j6(function(){return new K4(z.uP,z.fb,z.RW,z.uI)}); g.f(this,this.Sf);this.SD=j6(function(){return new ysi(z.q_,z.QG,z.fb,H,Y,z.uP)}); g.f(this,this.SD);this.O0=j6(function(){return new Zu(h,z.Qp,z.RW,z.fb,z.uI,z.jh,z.GD,z.Dx,z.QG,z.E9,z.o4,z.SE,z.ke,z.Zs,z.lj,z.uP,z.xe,Q,J)}); g.f(this,this.O0);this.pQ={s_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.T6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.V7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.G6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.v2]]),XE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pi],["SLOT_TYPE_FORECASTING",this.xT],["SLOT_TYPE_IN_PLAYER",this.xT],["SLOT_TYPE_PLAYER_BYTES",this.xT]]),I$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.JC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.JC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.JC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.JC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Om],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.IW],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.IW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.RW],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Om],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Qp]]),t8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aW],["SLOT_TYPE_ABOVE_FEED",this.aW],["SLOT_TYPE_FORECASTING",this.aW],["SLOT_TYPE_IN_PLAYER",this.aW],["SLOT_TYPE_PLAYER_BYTES",this.r4]]),GB:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.Sf],["SLOT_TYPE_IN_PLAYER", this.SD],["SLOT_TYPE_PLAYER_BYTES",this.O0]])};this.listeners=[H.get()];this.U_={T6:this.T6,TO:this.uP.get(),F5:this.Zs.get(),LU:this.QG.get(),G6:this.G6,r6:V.get(),u5:null,L3:this.PM,NG:H.get(),q0:this.Dx.get()}}; E8n=function(h,t,Y,L,q){g.O.call(this);var z=this,V=j6(function(){return new Nm(z.uP)}); g.f(this,V);var l=j6(function(){return new HG(V,z.uP)}); g.f(this,l);var H=j6(function(){return new nn}); g.f(this,H);var w=j6(function(){return new kK(h)}); g.f(this,w);var W=j6(function(){return new wx(V,l,z.uP)}); g.f(this,W);var y=j6(function(){return new CO}); g.f(this,y);this.u4=j6(function(){return new v8W(t)}); g.f(this,this.u4);this.q_=j6(function(){return new sU(t)}); g.f(this,this.q_);this.Zs=j6(function(){return new bL(q)}); g.f(this,this.Zs);this.SE=j6(function(){return new mW(t)}); g.f(this,this.SE);this.o4=j6(function(){return new D_(t)}); g.f(this,this.o4);this.GD=j6(function(){return new hM(t)}); g.f(this,this.GD);this.ke=j6(function(){return new tM(t)}); g.f(this,this.ke);this.uP=j6(function(){return new iD(t)}); g.f(this,this.uP);var X=j6(function(){return new Ff(L)}); g.f(this,X);var U=j6(function(){return new IS(z.uP)}); g.f(this,U);var C=j6(function(){return new cU(V,W,l,z.uP,U,null,null,null,null)}); g.f(this,C);this.lj=j6(function(){return new oU(t)}); g.f(this,this.lj);this.Dx=j6(function(){return new Ha(t,y,z.uP)}); g.f(this,this.Dx);var d=BK({Dx:this.Dx,uP:this.uP,L6:U}),Q=d.context,J=d.dk;this.CZ=d.CZ;this.QG=j6(function(){return new wT(t,z.Dx,z.uP)}); g.f(this,this.QG);this.E9=j6(function(){return new G8}); g.f(this,this.E9);this.uI=j6(function(){return new L5(z.QG,t,z.uP)}); g.f(this,this.uI);this.fb=j6(function(){return new lD(t,H,z.uI,z.Dx,z.CZ,z.uP,J)}); g.f(this,this.fb);this.jh=j6(function(){return new Qa(z.uP)}); g.f(this,this.jh);this.V7=new xK(nBc,Qs,function(v,E,T,hr){return HZD(l.get(),v,E,T,hr)},w,W,l,U,this.uP,this.Dx); g.f(this,this.V7);this.G6=new Em(w,C,Y,this.uP,h,this.Dx,this.QG,this.SE);g.f(this,this.G6);var e=new PK(t,this.G6,this.QG,this.Dx);this.U9=j6(function(){return e}); this.Dm=e;this.v2=new Om(w,W,this.o4,this.U9,Q);g.f(this,this.v2);this.T6=new BX(this.uP,w,W,C,this.Dx,this.v2,Y,this.GD);g.f(this,this.T6);this.Pi=j6(function(){return new A8(X,l,U,z.uP,z.fb,z.QG)}); g.f(this,this.Pi);this.xT=j6(function(){return new S6}); g.f(this,this.xT);this.PM=new Ry(h,this.q_,this.uP);g.f(this,this.PM);this.JC=new BU(h);g.f(this,this.JC);this.Om=new DQ(h,this.U9,Q);g.f(this,this.Om);this.IW=new hE(h,this.o4,this.QG,this.Dx,Q);g.f(this,this.IW);this.RW=new i1(h);g.f(this,this.RW);this.Hi=new gx(h);g.f(this,this.Hi);this.xe=j6(function(){return new dT(t)}); g.f(this,this.xe);this.Qp=new VP(h);g.f(this,this.Qp);this.aW=j6(function(){return new TS}); g.f(this,this.aW);this.r4=j6(function(){return new A_(z.QG)}); g.f(this,this.r4);this.AV=j6(function(){return new Je(z.T6,w,V)}); g.f(this,this.AV);this.Sf=j6(function(){return new K4(z.uP,z.fb,z.RW,z.uI)}); g.f(this,this.Sf);this.O0=j6(function(){return new Zu(h,z.Qp,z.RW,z.fb,z.uI,z.jh,z.GD,z.Dx,z.QG,z.E9,z.o4,z.SE,z.ke,z.Zs,z.lj,z.uP,z.xe,Q,J)}); g.f(this,this.O0);this.wW=j6(function(){return new LDW(z.q_,z.QG,z.fb,H,z.u4,Y,z.Dx)}); g.f(this,this.wW);this.pQ={s_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.T6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.V7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.G6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.v2]]),XE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pi],["SLOT_TYPE_FORECASTING",this.xT],["SLOT_TYPE_IN_PLAYER",this.xT],["SLOT_TYPE_PLAYER_BYTES",this.xT]]),I$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.JC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.JC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.JC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.JC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Om],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.IW],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.IW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.RW],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Om],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Qp]]),t8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aW],["SLOT_TYPE_FORECASTING",this.aW],["SLOT_TYPE_IN_PLAYER",this.aW],["SLOT_TYPE_PLAYER_BYTES",this.r4]]),GB:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.Sf],["SLOT_TYPE_IN_PLAYER",this.wW],["SLOT_TYPE_PLAYER_BYTES", this.O0]])};this.listeners=[H.get()];this.U_={T6:this.T6,TO:this.uP.get(),F5:this.Zs.get(),LU:this.QG.get(),G6:this.G6,r6:V.get(),u5:null,L3:this.PM,NG:H.get(),q0:this.Dx.get()}}; khL=function(h,t,Y,L,q){g.O.call(this);var z=this,V=j6(function(){return new Nm(z.uP)}); g.f(this,V);var l=j6(function(){return new HG(V,z.uP)}); g.f(this,l);var H=j6(function(){return new nn}); g.f(this,H);var w=j6(function(){return new kK(h)}); g.f(this,w);var W=j6(function(){return new wx(V,l,z.uP)}); g.f(this,W);var y=j6(function(){return new CO}); g.f(this,y);this.u4=j6(function(){return new v8W(t)}); g.f(this,this.u4);this.q_=j6(function(){return new sU(t)}); g.f(this,this.q_);this.Zs=j6(function(){return new bL(q)}); g.f(this,this.Zs);this.SE=j6(function(){return new mW(t)}); g.f(this,this.SE);this.o4=j6(function(){return new D_(t)}); g.f(this,this.o4);this.GD=j6(function(){return new hM(t)}); g.f(this,this.GD);this.ke=j6(function(){return new tM(t)}); g.f(this,this.ke);this.uP=j6(function(){return new iD(t)}); g.f(this,this.uP);var X=j6(function(){return new Ff(L)}); g.f(this,X);var U=j6(function(){return new IS(z.uP)}); g.f(this,U);this.lj=j6(function(){return new oU(t)}); g.f(this,this.lj);this.Dx=j6(function(){return new Ha(t,y,z.uP)}); g.f(this,this.Dx);var C=BK({Dx:this.Dx,uP:this.uP,L6:U}),d=C.context,Q=C.dk;this.CZ=C.CZ;this.HZ=j6(function(){return new bD(t,z.uP,z.fb)}); g.f(this,this.HZ);this.xe=j6(function(){return new dT(t)}); g.f(this,this.xe);this.QG=j6(function(){return new wT(t,z.Dx,z.uP)}); g.f(this,this.QG);this.E9=j6(function(){return new G8}); g.f(this,this.E9);C=j6(function(){return new cU(V,W,l,z.uP,U,null,z.QG,z.V2,z.kT,3)}); g.f(this,C);this.jh=j6(function(){return new Qa(z.uP)}); this.uI=j6(function(){return new L5(z.QG,t,z.uP)}); g.f(this,this.uI);this.fb=j6(function(){return new lD(t,H,z.uI,z.Dx,z.CZ,z.uP,Q)}); g.f(this,this.fb);this.G6=new Em(w,C,Y,this.uP,h,this.Dx,this.QG,this.SE);g.f(this,this.G6);var J=new PK(t,this.G6,this.QG,this.Dx,this.HZ);this.U9=j6(function(){return J}); this.Dm=J;this.V7=new xK(fYD,Qs,function(e,v,E,T){return HZD(l.get(),e,v,E,T)},w,W,l,U,this.uP,this.Dx); g.f(this,this.V7);this.V2=new J_(w,W,this.U9,this.HZ,this.QG,this.uP,this.fb,this.xe);g.f(this,this.V2);this.v2=new Om(w,W,this.o4,this.U9,d);g.f(this,this.v2);this.T6=new BX(this.uP,w,W,C,this.Dx,this.v2,Y,this.GD);g.f(this,this.T6);this.Pi=j6(function(){return new A8(X,l,U,z.uP,z.fb,z.QG,z.xe)}); g.f(this,this.Pi);this.xT=j6(function(){return new S6}); g.f(this,this.xT);this.PM=new Ry(h,this.q_,this.uP);g.f(this,this.PM);this.JC=new BU(h);g.f(this,this.JC);this.Om=new DQ(h,this.U9,d);g.f(this,this.Om);this.IW=new hE(h,this.o4,this.QG,this.Dx,d);g.f(this,this.IW);this.xL=new tE(h,this.Dx);g.f(this,this.xL);this.kT=new Yj(h,this.HZ,this.QG,this.fb,this.U9,this.V2);g.f(this,this.kT);this.RW=new i1(h);g.f(this,this.RW);this.Hi=new gx(h);g.f(this,this.Hi);this.Qp=new VP(h);g.f(this,this.Qp);this.aW=j6(function(){return new TS}); g.f(this,this.aW);this.r4=j6(function(){return new A_(z.QG)}); g.f(this,this.r4);this.AV=j6(function(){return new Je(z.T6,w,V)}); g.f(this,this.AV);this.Sf=j6(function(){return new K4(z.uP,z.fb,z.RW,z.uI)}); g.f(this,this.Sf);this.O0=j6(function(){return new jS(h,z.Qp,z.RW,z.Dx,z.xe,z.QG,z.E9,z.fb,y,z.HZ,z.uI,z.jh,z.GD,z.o4,z.SE,z.ke,z.Zs,z.lj,z.uP,H,d,Q)}); g.f(this,this.O0);this.sE=j6(function(){return new qH$(z.q_,z.QG,z.fb,H,z.u4,Y,z.uP,z.Dx)}); g.f(this,this.sE);this.pQ={s_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.T6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.V2],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.V7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.G6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.v2]]),XE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pi],["SLOT_TYPE_FORECASTING",this.xT],["SLOT_TYPE_IN_PLAYER",this.xT],["SLOT_TYPE_PLAYER_BYTES",this.xT]]),I$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.PM],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.JC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.JC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.JC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.JC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.JC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Om],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.IW],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.IW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.RW],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Om],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Qp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.kT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.kT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.kT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.kT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.kT]]),t8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aW],["SLOT_TYPE_FORECASTING",this.aW],["SLOT_TYPE_IN_PLAYER",this.aW],["SLOT_TYPE_PLAYER_BYTES",this.r4]]),GB:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.Sf],["SLOT_TYPE_PLAYER_BYTES",this.O0],["SLOT_TYPE_IN_PLAYER",this.sE]])};this.listeners=[H.get()]; this.U_={T6:this.T6,TO:this.uP.get(),F5:this.Zs.get(),LU:this.QG.get(),G6:this.G6,r6:V.get(),u5:null,L3:this.PM,NG:H.get(),q0:this.Dx.get()}}; n8b=function(h,t,Y,L){function q(){return z.T} g.O.call(this);var z=this;h.J().experiments.I0("html5_dispose_of_manager_before_dependency")?(this.G=OJb(q,h,t,Y,L),this.T=(new Z2(this.G)).S(),g.f(this,this.T),g.f(this,this.G)):(this.G=OJb(q,h,t,Y,L),g.f(this,this.G),this.T=(new Z2(this.G)).S(),g.f(this,this.T))}; rT=function(h){return h.G.U_}; OJb=function(h,t,Y,L,q){try{var z=t.J();if(g.zH(z))var V=new KbL(h,t,Y,L,q);else if(g.lC(z))V=new an1(h,t,Y,L,q);else if(D4(z))V=new xj6(h,t,Y,L,q);else if(g.rP(z))V=new E8n(h,t,Y,L,q);else if(g.SI(z))V=new khL(h,t,Y,L,q);else throw new TypeError("Unknown web interface");return V}catch(l){return V=t.J(),gP("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:V.G.cplatform,interface:V.G.c,mdi:V.G.cver,lux:V.G.ctheme,Dd_:V.G.cplayer,E2M:V.playerStyle}),new dj3(h,t,Y,L,q)}}; fn6=function(h){Kc.call(this,h)}; $jW=function(h,t,Y,L,q){$7.call(this,h,{Z:"div",D:"ytp-ad-timed-pie-countdown-container",B:[{Z:"svg",D:"ytp-ad-timed-pie-countdown",j:{viewBox:"0 0 20 20"},B:[{Z:"circle",D:"ytp-ad-timed-pie-countdown-background",j:{r:"10",cx:"10",cy:"10"}},{Z:"circle",D:"ytp-ad-timed-pie-countdown-inner",j:{r:"5",cx:"10",cy:"10"}},{Z:"circle",D:"ytp-ad-timed-pie-countdown-outer",j:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",t,Y,L,q);this.W=this.Tz("ytp-ad-timed-pie-countdown-container");this.S=this.Tz("ytp-ad-timed-pie-countdown-inner"); this.U=this.Tz("ytp-ad-timed-pie-countdown-outer");this.T=Math.ceil(2*Math.PI*5);this.hide()}; TVD=function(h,t,Y,L,q,z){g7.call(this,h,{Z:"div",D:"ytp-ad-action-interstitial",j:{tabindex:"0"},B:[{Z:"div",D:"ytp-ad-action-interstitial-background-container"},{Z:"div",D:"ytp-ad-action-interstitial-slot",B:[{Z:"div",D:"ytp-ad-action-interstitial-instream-info"},{Z:"div",D:"ytp-ad-action-interstitial-card",B:[{Z:"div",D:"ytp-ad-action-interstitial-image-container"},{Z:"div",D:"ytp-ad-action-interstitial-headline-container"},{Z:"div",D:"ytp-ad-action-interstitial-description-container"},{Z:"div", D:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",t,Y,L);this.j2=q;this.cF=z;this.navigationEndpoint=this.G=this.skipButton=this.T=this.actionButton=null;this.Ne=this.Tz("ytp-ad-action-interstitial-instream-info");this.Zx=this.Tz("ytp-ad-action-interstitial-image-container");this.L=new eT(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,"ytp-ad-action-interstitial-image");g.f(this,this.L);this.L.zz(this.Zx);this.gU=this.Tz("ytp-ad-action-interstitial-headline-container"); this.U=new nc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,"ytp-ad-action-interstitial-headline");g.f(this,this.U);this.U.zz(this.gU);this.x8=this.Tz("ytp-ad-action-interstitial-description-container");this.S=new nc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,"ytp-ad-action-interstitial-description");g.f(this,this.S);this.S.zz(this.x8);this.iP=this.Tz("ytp-ad-action-interstitial-background-container");this.lP=new eT(this.api,this.layoutId,this.interactionLoggingClientData, this.F5,"ytp-ad-action-interstitial-background",!0);g.f(this,this.lP);this.lP.zz(this.iP);this.yG=this.Tz("ytp-ad-action-interstitial-action-button-container");this.slot=this.Tz("ytp-ad-action-interstitial-slot");this.Hx=this.Tz("ytp-ad-action-interstitial-card");this.W=new sa;g.f(this,this.W);this.hide()}; ADc=function(h){var t=g.V_("html5-video-player");t&&g.iA(t,"ytp-ad-display-override",h)}; BVL=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-overlay-slot",B:[{Z:"div",D:"ytp-ad-overlay-container"}]},"invideo-overlay",t,Y,L);this.L=[];this.iP=this.gU=this.W=this.yG=this.Ne=null;this.lP=!1;this.U=null;this.x8=0;h=this.Tz("ytp-ad-overlay-container");this.Zx=new mU(h,45E3,6E3,.3,.4);g.f(this,this.Zx);this.S=Sgb(this);g.f(this,this.S);this.S.zz(h);this.T=Inc(this);g.f(this,this.T);this.T.zz(h);this.G=Rm6(this);g.f(this,this.G);this.G.zz(h);this.hide()}; Sgb=function(h){var t=new g.iR({Z:"div",D:"ytp-ad-text-overlay",B:[{Z:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",D:"ytp-ad-overlay-close-container",B:[{Z:"button",D:"ytp-ad-overlay-close-button",B:[bR(Ph6)]}]},{Z:"div",D:"ytp-ad-overlay-title",o0:"{{title}}"},{Z:"div",D:"ytp-ad-overlay-desc",o0:"{{description}}"},{Z:"div",Ei:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],o0:"{{displayUrl}}"}]});h.V(t.Tz("ytp-ad-overlay-title"),"click",function(Y){ca(h,t.element,Y)}); h.V(t.Tz("ytp-ad-overlay-link"),"click",function(Y){ca(h,t.element,Y)}); h.V(t.Tz("ytp-ad-overlay-close-container"),"click",h.LW);t.hide();return t}; Inc=function(h){var t=new g.iR({Z:"div",Ei:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],B:[{Z:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",D:"ytp-ad-overlay-close-container",B:[{Z:"button",D:"ytp-ad-overlay-close-button",B:[bR(Ph6)]}]},{Z:"div",D:"ytp-ad-overlay-text-image",B:[{Z:"img",j:{src:"{{imageUrl}}"}}]},{Z:"div",D:"ytp-ad-overlay-title",o0:"{{title}}"},{Z:"div",D:"ytp-ad-overlay-desc",o0:"{{description}}"},{Z:"div",Ei:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], o0:"{{displayUrl}}"}]});h.V(t.Tz("ytp-ad-overlay-title"),"click",function(Y){ca(h,t.element,Y)}); h.V(t.Tz("ytp-ad-overlay-link"),"click",function(Y){ca(h,t.element,Y)}); h.V(t.Tz("ytp-ad-overlay-close-container"),"click",h.LW);h.V(t.Tz("ytp-ad-overlay-text-image"),"click",h.n0P);t.hide();return t}; Rm6=function(h){var t=new g.iR({Z:"div",D:"ytp-ad-image-overlay",B:[{Z:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",D:"ytp-ad-overlay-close-container",B:[{Z:"button",D:"ytp-ad-overlay-close-button",B:[bR(Ph6)]}]},{Z:"div",D:"ytp-ad-overlay-image",B:[{Z:"img",j:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});h.V(t.Tz("ytp-ad-overlay-image"),"click",function(Y){ca(h,t.element,Y)}); h.V(t.Tz("ytp-ad-overlay-close-container"),"click",h.LW);t.hide();return t}; mjL=function(h,t){if(t){var Y=g.A(t,Aj)||null;Y==null?g.ZD(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(t=g.V_("video-ads ytp-ad-module")||null,t==null?g.ZD(Error("Could not locate the root ads container element to attach the ad info dialog.")):(h.gU=new g.iR({Z:"div",D:"ytp-ad-overlay-ad-info-dialog-container"}),g.f(h,h.gU),h.gU.zz(t),t=new OS(h.api,h.layoutId,h.interactionLoggingClientData,h.F5,h.gU.element,!1),g.f(h,t),t.init(RA("ad-info-hover-text-button"),Y,h.macros), h.U?(t.zz(h.U,0),t.subscribe("f",h.cQ5,h),t.subscribe("e",h.Tf,h),h.V(h.U,"click",h.W_0),h.V(g.V_("ytp-ad-button",t.element),"click",function(){var L;if(g.A((L=g.A(Y.button,g.IB))==null?void 0:L.serviceEndpoint,mMr))h.lP=h.api.getPlayerState(1)===2,h.api.pauseVideo();else h.api.onAdUxClicked("ad-info-hover-text-button",h.layoutId)}),h.iP=t):g.ZD(Error("Ad info button container within overlay ad was not present."))))}else g.bc(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; hpn=function(h,t){if(Djb(h,uD)||h.api.isMinimized())return!1;var Y=Y7(t.title),L=Y7(t.description);if(g.e$(Y)||g.e$(L))return!1;h.createServerVe(h.S.element,t.trackingParams||null);h.S.updateValue("title",Y7(t.title));h.S.updateValue("description",Y7(t.description));h.S.updateValue("displayUrl",Y7(t.displayUrl));t.navigationEndpoint&&g.v1(h.L,t.navigationEndpoint);h.S.show();h.Zx.start();h.logVisibility(h.S.element,!0);h.V(h.S.element,"mouseover",function(){h.x8++}); return!0}; tLl=function(h,t){if(Djb(h,uD)||h.api.isMinimized())return!1;var Y=Y7(t.title),L=Y7(t.description);if(g.e$(Y)||g.e$(L))return!1;h.createServerVe(h.T.element,t.trackingParams||null);h.T.updateValue("title",Y7(t.title));h.T.updateValue("description",Y7(t.description));h.T.updateValue("displayUrl",Y7(t.displayUrl));h.T.updateValue("imageUrl",NKi(t.image));t.navigationEndpoint&&g.v1(h.L,t.navigationEndpoint);h.yG=t.imageNavigationEndpoint||null;h.T.show();h.Zx.start();h.logVisibility(h.T.element,!0); h.V(h.T.element,"mouseover",function(){h.x8++}); return!0}; iLl=function(h,t){if(h.api.isMinimized())return!1;var Y=lZr(t.image),L=Y;Y.width0?(t=new GT(h.api,h.G), t.zz(h.playerOverlay),g.f(h,t)):(h=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(t)),g.ZD(h))}}else g.ZD(Error("addCommonComponents() needs to be called before starting countdown."))}; WLL=function(h){function t(Y){return{toString:function(){return Y()}}} h.macros.SURVEY_LOCAL_TIME_EPOCH_S=t(function(){var Y=new Date;return(Math.round(Y.valueOf()/1E3)+-1*Y.getTimezoneOffset()*60).toString()}); h.macros.SURVEY_ELAPSED_MS=t(function(){return(Date.now()-h.S).toString()})}; yr8=function(h,t,Y,L,q){va.call(this,h,t,Y,L,"survey-question-multi-select");this.x8=q;this.noneOfTheAbove=null;this.submitEndpoints=[];this.U=null;this.hide()}; XWv=function(h,t,Y){h.noneOfTheAbove=new VLP(h.api,h.layoutId,h.interactionLoggingClientData,h.F5);h.noneOfTheAbove.zz(h.answers);h.noneOfTheAbove.init(RA("survey-none-of-the-above"),t,Y)}; Cis=function(h){h.T.forEach(function(t){t.G.toggleButton(!1)}); U1h(h,!0)}; U1h=function(h,t){var Y=h.W;h=MLs(h);t=t===void 0?!1:t;Y.G&&(h?Y.G.hide():Y.G.show(),t&&Y.G instanceof NK&&!Y.G.W&&zar(Y.G,!1));Y.T&&(h?Y.T.show():Y.T.hide())}; MLs=function(h){return h.T.some(function(t){return t.G.isToggled()})||h.noneOfTheAbove.button.isToggled()}; K5=function(h,t,Y,L,q){va.call(this,h,t,Y,L,"survey-question-single-select",function(V){z.api.J().N("supports_multi_step_on_desktop")&&q([V])}); var z=this;this.hide()}; aU=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-survey",B:[{Z:"div",D:"ytp-ad-survey-questions"}]},"survey",t,Y,L);this.questions=[];this.T=[];this.conditioningRules=[];this.G=0;this.U=this.Tz("ytp-ad-survey-questions");this.api.J().N("fix_survey_color_contrast_on_destop")&&this.Tz("ytp-ad-survey").classList.add("color-contrast-fix");this.api.J().N("web_enable_speedmaster")&&this.Tz("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; jc3=function(h,t){var Y=h.T[t],L;(L=h.S)==null||L.dispose();g.A(Y,$f)?FLE(h,g.A(Y,$f),h.macros):g.A(Y,fF)&&scv(h,g.A(Y,fF),h.macros);h.G=t}; FLE=function(h,t,Y){var L=new K5(h.api,h.layoutId,h.interactionLoggingClientData,h.F5,h.W.bind(h));L.zz(h.U);L.init(RA("survey-question-single-select"),t,Y);h.api.J().N("supports_multi_step_on_desktop")?h.S=L:h.questions.push(L);g.f(h,L)}; scv=function(h,t,Y){var L=new yr8(h.api,h.layoutId,h.interactionLoggingClientData,h.F5,h.W.bind(h));L.zz(h.U);L.init(RA("survey-question-multi-select"),t,Y);h.api.J().N("supports_multi_step_on_desktop")?h.S=L:h.questions.push(L);g.f(h,L)}; xx=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-survey-interstitial",B:[{Z:"div",D:"ytp-ad-survey-interstitial-contents",B:[{Z:"div",D:"ytp-ad-survey-interstitial-logo",B:[{Z:"div",D:"ytp-ad-survey-interstitial-logo-image"}]},{Z:"div",D:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",t,Y,L);this.G=this.actionButton=null;this.interstitial=this.Tz("ytp-ad-survey-interstitial");this.T=this.Tz("ytp-ad-survey-interstitial-contents");this.text=this.Tz("ytp-ad-survey-interstitial-text"); this.logoImage=this.Tz("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ST(this,500,!1,300);g.f(this,this.transition)}; ZLL=function(h,t){t=t&&uR(t)||"";if(g.e$(t))g.bc(Error("Found ThumbnailDetails without valid image URL"));else{var Y=h.style;h=h.style.cssText;var L=document.implementation.createHTMLDocument("").createElement("DIV");L.style.cssText=h;h=EiW(L.style);Y.cssText=[h,'background-image:url("'+t+'");'].join("")}}; bLn=function(h){var t=g.V_("html5-video-player");t&&g.iA(t,"ytp-ad-display-override",h)}; EU=function(h,t,Y,L,q,z){z=z===void 0?0:z;$7.call(this,h,{Z:"div",D:"ytp-preview-ad",B:[{Z:"div",D:"ytp-preview-ad__text"}]},"preview-ad",t,Y,L,q);var V=this;this.x8=z;this.T=0;this.W=-1;this.S=this.Tz("ytp-preview-ad__text");switch(this.x8){case 1:this.S.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.ST(this,400,!1,100,function(){V.hide()}); g.f(this,this.transition);this.hide()}; kx=function(h,t,Y,L){g7.call(this,h,{Z:"img",D:"ytp-ad-avatar"},"ad-avatar",t,Y,L);this.hide()}; obl=function(h){switch(h.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; OU=function(h,t,Y,L,q,z){q=q===void 0?!1:q;z=z===void 0?!1:z;g7.call(this,h,{Z:"button",D:"ytp-ad-button-vm"},"ad-button",t,Y,L);this.buttonText=this.buttonIcon=null;this.hide();this.G=q;this.T=z}; d1y=function(h,t,Y,L,q){$7.call(this,h,{Z:"div",Ei:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],B:[{Z:"div",D:"ytp-ad-avatar-lockup-card__avatar_and_text_container",B:[{Z:"div",D:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",t,Y,L,q);this.startMilliseconds=0;this.adAvatar=new kx(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.adAvatar);Ml(this.element,this.adAvatar.element,0);this.headline=new s6(this.api,this.layoutId, this.interactionLoggingClientData,this.F5);g.f(this,this.headline);this.headline.zz(this.Tz("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.description);this.description.zz(this.Tz("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new OU(this.api, this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.adButton);this.adButton.zz(this.element);this.hide()}; n5=function(h,t,Y,L){g7.call(this,h,{Z:"button",D:"ytp-skip-ad-button",B:[{Z:"div",D:"ytp-skip-ad-button__text"}]},"skip-button",t,Y,L);var q=this;this.T=!1;this.W=this.Tz("ytp-skip-ad-button__text");this.transition=new g.ST(this,500,!1,100,function(){q.hide()}); g.f(this,this.transition);this.G=new mU(this.element,15E3,5E3,.5,.5,!0);g.f(this,this.G);this.hide()}; Gn0=function(h,t,Y,L,q){$7.call(this,h,{Z:"div",D:"ytp-skip-ad"},"skip-ad",t,Y,L,q);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.S=new n5(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.S);this.S.zz(this.element);this.hide()}; f5=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-visit-advertiser-link"},"visit-advertiser-link",t,Y,L);this.hide()}; $x=function(h,t,Y,L,q){g7.call(this,h,{Z:"div",D:"ytp-ad-player-overlay-layout",B:[{Z:"div",D:"ytp-ad-player-overlay-layout__player-card-container"},{Z:"div",D:"ytp-ad-player-overlay-layout__ad-info-container"},{Z:"div",D:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Z:"div",D:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",t,Y,L);this.T=q;this.gU=this.Tz("ytp-ad-player-overlay-layout__player-card-container");this.G=this.Tz("ytp-ad-player-overlay-layout__ad-info-container"); this.L=this.Tz("ytp-ad-player-overlay-layout__skip-or-preview-container");this.x8=this.Tz("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Qcs=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-grid-card-text",B:[{Z:"div",D:"ytp-ad-grid-card-text__metadata",B:[{Z:"div",D:"ytp-ad-grid-card-text__metadata__headline"},{Z:"div",D:"ytp-ad-grid-card-text__metadata__description",B:[{Z:"div",D:"ytp-ad-grid-card-text__metadata__description__line"},{Z:"div",D:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Z:"div",D:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",t,Y,L);this.headline=new s6(this.api,this.layoutId,this.interactionLoggingClientData, this.F5);g.f(this,this.headline);this.headline.zz(this.Tz("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0);g.f(this,this.moreInfoButton);this.moreInfoButton.zz(this.Tz("ytp-ad-grid-card-text__button"))}; T8=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",t,Y,L);this.G=[]}; AM=function(h,t,Y,L,q,z,V){$7.call(this,h,z,V,t,Y,L,q);this.playerProgressOffsetMs=0;this.T=!1}; rr1=function(h){var t=g.V_("html5-video-player");t&&g.iA(t,"ytp-ad-display-override",h)}; cr8=function(h,t,Y,L,q){AM.call(this,h,t,Y,L,q,{Z:"div",D:"ytp-display-underlay-text-grid-cards",B:[{Z:"div",D:"ytp-display-underlay-text-grid-cards__content_container",B:[{Z:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header",B:[{Z:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Z:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Z:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Z:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new T8(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.adGridCardCollection);this.adGridCardCollection.zz(this.Tz("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.adButton);this.adButton.zz(this.Tz("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.S=this.Tz("ytp-display-underlay-text-grid-cards__content_container");this.W=this.Tz("ytp-display-underlay-text-grid-cards__content_container__header")}; SO=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-ad-details-line"},"ad-details-line",t,Y,L);this.G=[];this.hide()}; IU=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-image-background",B:[{Z:"img",D:"ytp-image-background-image"}]},"image-background",t,Y,L);this.hide()}; uDl=function(h,t,Y,L,q){$7.call(this,h,{Z:"svg",D:"ytp-timed-pie-countdown",j:{viewBox:"0 0 20 20"},B:[{Z:"circle",D:"ytp-timed-pie-countdown__background",j:{r:"10",cx:"10",cy:"10"}},{Z:"circle",D:"ytp-timed-pie-countdown__inner",j:{r:"5",cx:"10",cy:"10"}},{Z:"circle",D:"ytp-timed-pie-countdown__outer",j:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",t,Y,L,q);this.S=this.Tz("ytp-timed-pie-countdown__inner");this.T=Math.ceil(2*Math.PI*5);this.hide()}; RU=function(h,t,Y,L){g7.call(this,h,{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout",j:{tabindex:"0"},B:[{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content",B:[{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",B:[{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Z:"div",D:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",t,Y,L);this.T=null;this.W=this.Tz("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.S=new sa;g.f(this,this.S);this.hide()}; ep1=function(h){var t=g.V_("html5-video-player");t&&g.iA(t,"ytp-ad-display-override",h)}; Jr0=function(h){if(!h.adAvatar||!g.A(h.adAvatar,Ba))return g.ZD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!h.headline)return g.ZD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!h.adBadge||!g.A(h.adBadge,Pa))return g.ZD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!h.adButton||!g.A(h.adButton,mN))return g.ZD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!h.adInfoRenderer|| !g.A(h.adInfoRenderer,Aj))return g.ZD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;h=h.durationMilliseconds||0;return typeof h!=="number"||h<=0?(g.ZD(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+h)),!1):!0}; De=function(h,t){t=t===void 0?2:t;g.PD.call(this);this.api=h;this.G=null;this.tJ=new sa(this);g.f(this,this.tJ);this.T=V41;this.tJ.V(this.api,"presentingplayerstatechange",this.DA);this.G=this.tJ.V(this.api,"progresssync",this.Kn);this.zI=t;this.zI===1&&this.Kn()}; hB=function(h,t,Y){Kc.call(this,h);this.api=h;this.F5=t;this.components={};h=new g.I({Z:"div",Ei:["video-ads","ytp-ad-module"]});g.f(this,h);a9&&g.mS(h.element,"ytp-ads-tiny-mode");this.W=new zd(h.element);g.f(this,this.W);g.kl(this.api,h.element,4);wC(Y)&&(Y=new g.I({Z:"div",Ei:["ytp-ad-underlay"]}),g.f(this,Y),this.T=new zd(Y.element),g.f(this,this.T),g.kl(this.api,Y.element,0));g.f(this,aZi())}; pWP=function(h,t){h=g.yo(h.components,t.id,null);h==null&&g.bc(Error("Component not found for element id: "+t.id));return h||null}; vb3=function(h){g.Gt.call(this,h);var t=this;this.T=null;this.created=!1;this.S=h.J().N("h5_use_refactored_get_ad_break")?new Gpn(this.player):new RX(this.player);this.W=function(){if(t.T!=null)return t.T;var L=new pjW({L3:rT(t.G).L3,q0:rT(t.G).q0,K:t.player,TO:rT(t.G).TO,fb:t.G.G.fb,NG:rT(t.G).NG,ke:t.G.G.ke});t.T=L.CG;return t.T}; this.G=new n8b(this.player,this,this.S,this.W);g.f(this,this.G);var Y=h.J();!qo(Y)||g.SI(Y)||D4(Y)||(g.f(this,new hB(h,rT(this.G).F5,rT(this.G).TO)),g.f(this,new fn6(h)))}; KL1=function(h){h.created!==h.loaded&&gP("Created and loaded are out of sync")}; Eby=function(h){g.Gt.prototype.load.call(h);var t=rT(h.G).TO;try{h.player.getRootNode().classList.add("ad-created")}catch(H){gP(H instanceof Error?H:String(H))}var Y=h.player.getVideoData(1),L=Y&&Y.videoId||"",q=Y&&Y.getPlayerResponse()||{},z=(q&&q.adPlacements||[]).map(function(H){return H.adPlacementRenderer}),V=((q==null?void 0:q.adSlots)||[]).map(function(H){return g.A(H,PX)}); q=q.playerConfig&&q.playerConfig.daiConfig&&q.playerConfig.daiConfig.enableDai||!1;Y&&Y.fZ();z=a$h(z,V,t,rT(h.G).r6);V=Y&&Y.clientPlaybackNonce||"";Y=Y&&Y.C1||!1;if(YW(t,!0)&&Y){var l;t={};(l=h.player.getVideoData())==null||l.Pm("p_cpb",(t.cc=V,t))}l=1E3*h.player.getDuration(1);x1E(h);h.G.G.Dm.rS(V,l,Y,z.gO,z.Ku,z.gO,q,L)}; x1E=function(h){var t,Y;if(Y=(t=h.player.getVideoData(1))==null||!t.C1)t=h.player.J(),Y=qo(t)&&!g.LV(t)&&t.playerStyle==="desktop-polymer";Y&&(h=h.player.getInternalApi(),h.addEventListener("updateKevlarOrC3Companion",Cjb),h.addEventListener("updateEngagementPanelAction",M4L),h.addEventListener("changeEngagementPanelVisibility",FPW),window.addEventListener("yt-navigate-start",jY$))}; tB=function(h,t){t===h.qB&&(h.qB=void 0)}; knL=function(h){var t=rT(h.G).G6,Y=t.W().tI("SLOT_TYPE_PLAYER_BYTES",1);t=rt(t.Dx.get(),1).clientPlaybackNonce;var L=!1;Y=g.b(Y);for(var q=Y.next();!q.done;q=Y.next()){q=q.value;var z=q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q.slotEntryTrigger instanceof a0?q.slotEntryTrigger.xU:void 0;z&&z===t&&(L&&gP("More than 1 preroll playerBytes slot detected",q),L=!0)}L||Wa(rT(h.G).LU)}; OLH=function(h){if(gT(rT(h.G).TO))return!0;var t="";h=g.b(rT(h.G).NG.x3.keys());for(var Y=h.next();!Y.done;Y=h.next()){Y=Y.value;if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.rU==="core")return!0;t+=Y.slotType+" "}Math.random()<.01&&gP("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:t});return!1}; nbl=function(h){h=g.b(rT(h.G).NG.x3.values());for(var t=h.next();!t.done;t=h.next())if(t.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; OUD=function(h,t,Y,L,q,z){Y=Y===void 0?[]:Y;L=L===void 0?"":L;q=q===void 0?"":q;var V=rT(h.G).TO,l=h.player.getVideoData(1);l&&l.getPlayerResponse();l&&l.fZ();Y=a$h(t,Y,V,rT(h.G).r6);A23(rT(h.G).T6,L,Y.gO,Y.Ku,t,q,z)}; a$h=function(h,t,Y,L){t={gO:[],Ku:t};h=g.b(h);for(var q=h.next();!q.done;q=h.next())if((q=q.value)&&q.renderer!=null){var z=q.renderer;if(!Y.K.J().N("html5_enable_vod_lasr_with_notify_pacf")){var V=void 0,l=void 0,H=void 0,w=void 0,W=L;g.A((w=z.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,rC)?(V=g.A((H=z.sandwichedLinearAdRenderer)==null?void 0:H.adVideoStart,rC),V=znL(V,W),g.rv(z.sandwichedLinearAdRenderer.adVideoStart,rC,V)):g.A((l=z.linearAdSequenceRenderer)==null?void 0:l.adStart,rC)&& (H=g.A((V=z.linearAdSequenceRenderer)==null?void 0:V.adStart,rC),V=znL(H,W),g.rv(z.linearAdSequenceRenderer.adStart,rC,V))}t.gO.push(q)}return t}; g.iY=function(h){if(typeof DOMParser!="undefined")return Qz(new DOMParser,pkD(h),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.gg=function(h){g.O.call(this);this.callback=h;this.G=new WM(0,0,.4,0,.2,1,1,1);this.delay=new g.O8(this.next,window,this);g.f(this,this.delay)}; g.f$L=function(h){var t=h.J();return t.fn&&!t.S&&g.kk(t)?h.isEmbedsShortsMode()?(h=h.ZC(),Math.min(h.width,h.height)>=315):!h.CC():!1}; g.YP=function(h){g.I.call(this,{Z:"div",D:"ytp-more-videos-view",j:{tabIndex:"-1"}});var t=this;this.api=h;this.T=!0;this.S=new g.UF(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.W=this.scrollPosition=0;this.title=new g.I({Z:"h2",D:"ytp-related-title",o0:"{{title}}"});this.previous=new g.I({Z:"button",Ei:["ytp-button","ytp-previous"],j:{"aria-label":"Show previous suggested videos"},B:[g.VI()]});this.C=new g.gg(function(Y){t.suggestions.element.scrollLeft=-Y}); this.next=new g.I({Z:"button",Ei:["ytp-button","ytp-next"],j:{"aria-label":"Show more suggested videos"},B:[g.Nk()]});g.f(this,this.S);this.U=h.J().W;g.f(this,this.title);this.title.zz(this.element);this.suggestions=new g.I({Z:"div",D:"ytp-suggestions"});g.f(this,this.suggestions);this.suggestions.zz(this.element);g.f(this,this.previous);this.previous.zz(this.element);this.previous.listen("click",this.mS,this);g.f(this,this.C);$1v(this);g.f(this,this.next);this.next.zz(this.element);this.next.listen("click", this.l7,this);this.S.V(this.api,"appresize",this.Bq);this.S.V(this.api,"fullscreentoggled",this.l3);this.S.V(this.api,"videodatachange",this.onVideoDataChange);this.Bq(this.api.Bm().getPlayerSize());this.onVideoDataChange()}; $1v=function(h){for(var t={h$:0};t.h$<16;t={h$:t.h$},++t.h$){var Y=new g.I({Z:"a",D:"ytp-suggestion-link",j:{href:"{{link}}",target:h.api.J().L,"aria-label":"{{aria_label}}"},B:[{Z:"div",D:"ytp-suggestion-image"},{Z:"div",D:"ytp-suggestion-overlay",j:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},B:[{Z:"div",D:"ytp-suggestion-title",o0:"{{title}}"},{Z:"div",D:"ytp-suggestion-author",o0:"{{author_and_views}}"},{Z:"div",j:{"data-is-live":"{{is_live}}"},D:"ytp-suggestion-duration", o0:"{{duration}}"}]}]});g.f(h,Y);var L=Y.Tz("ytp-suggestion-link");g.$9(L,"transitionDelay",t.h$/20+"s");h.S.V(L,"click",function(q){return function(z){var V=q.h$;if(h.T){var l=h.suggestionData[V],H=l.sessionData;h.U&&h.api.N("web_player_log_click_before_generating_ve_conversion_params")?(h.api.logClick(h.G[V].element),V=l.Dk(),l={},g.ae(h.api,l),V=g.Xz(V,l),g.wR(V,h.api,z)):g.HI(z,h.api,h.U,H||void 0)&&h.api.bJ(l.videoId,H,l.playlistId)}else z.preventDefault(),document.activeElement.blur()}}(t)); Y.zz(h.suggestions.element);h.G.push(Y);h.api.createServerVe(Y.element,Y)}}; T38=function(h){if(h.api.J().N("web_player_log_click_before_generating_ve_conversion_params"))for(var t=Math.floor(-h.scrollPosition/(h.W+8)),Y=Math.min(t+h.columns,h.suggestionData.length)-1;t<=Y;t++)h.api.logVisibility(h.G[t].element,!0)}; g.Lp=function(h){var t=h.api.cM()?32:16;t=h.Y/2+t;h.next.element.style.bottom=t+"px";h.previous.element.style.bottom=t+"px";t=h.scrollPosition;var Y=h.containerWidth-h.suggestionData.length*(h.W+8);g.iA(h.element,"ytp-scroll-min",t>=0);g.iA(h.element,"ytp-scroll-max",t<=Y)}; SLv=function(h){for(var t=h.suggestionData.length,Y=0;Y>>0)+"_",q=0;return t}); y6("Symbol.iterator",function(h){if(h)return h;h=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Y=0;Y0&&Y>0;)if(L[--Y]!=t[--q])return!1;return q<=0}}); y6("Array.prototype.find",function(h){return h?h:function(t,Y){return wW6(this,t,Y).Ix}}); y6("Array.prototype.entries",function(h){return h?h:function(){return Ar(this,function(t,Y){return[t,Y]})}}); y6("Array.prototype.keys",function(h){return h?h:function(){return Ar(this,function(t){return t})}}); y6("String.prototype.startsWith",function(h){return h?h:function(t,Y){var L=$b(this,t,"startsWith");t+="";var q=L.length,z=t.length;Y=Math.max(0,Math.min(Y|0,L.length));for(var V=0;V=z}}); y6("Number.isFinite",function(h){return h?h:function(t){return typeof t!=="number"?!1:!isNaN(t)&&t!==Infinity&&t!==-Infinity}}); y6("String.prototype.repeat",function(h){return h?h:function(t){var Y=$b(this,null,"repeat");if(t<0||t>1342177279)throw new RangeError("Invalid count value");t|=0;for(var L="";t;)if(t&1&&(L+=Y),t>>>=1)Y+=Y;return L}}); y6("Object.entries",function(h){return h?h:function(t){var Y=[],L;for(L in t)CL(t,L)&&Y.push([L,t[L]]);return Y}}); y6("Array.from",function(h){return h?h:function(t,Y,L){Y=Y!=null?Y:function(l){return l}; var q=[],z=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(typeof z=="function"){t=z.call(t);for(var V=0;!(z=t.next()).done;)q.push(Y.call(L,z.value,V++))}else for(z=t.length,V=0;V>>0;if(t===0)return 32;var Y=0;(t&4294901760)===0&&(t<<=16,Y+=16);(t&4278190080)===0&&(t<<=8,Y+=8);(t&4026531840)===0&&(t<<=4,Y+=4);(t&3221225472)===0&&(t<<=2,Y+=2);(t&2147483648)===0&&Y++;return Y}}); y6("Number.isNaN",function(h){return h?h:function(t){return typeof t==="number"&&isNaN(t)}}); y6("Array.prototype.values",function(h){return h?h:function(){return Ar(this,function(t,Y){return Y})}}); y6("Array.prototype.fill",function(h){return h?h:function(t,Y,L){var q=this.length||0;Y<0&&(Y=Math.max(0,q+Y));if(L==null||L>q)L=q;L=Number(L);L<0&&(L=Math.max(0,q+L));for(Y=Number(Y||0);Y0&&Y?Y.repeat(Math.ceil(t/Y.length)).substring(0,t):"")+L}}); y6("Array.prototype.findIndex",function(h){return h?h:function(t,Y){return wW6(this,t,Y).wY}}); y6("Promise.prototype.finally",function(h){return h?h:function(t){return this.then(function(Y){return Promise.resolve(t()).then(function(){return Y})},function(Y){return Promise.resolve(t()).then(function(){throw Y; })})}}); y6("Math.imul",function(h){return h?h:function(t,Y){t=Number(t);Y=Number(Y);var L=t&65535,q=Y&65535;return L*q+((t>>>16&65535)*q+L*(Y>>>16&65535)<<16>>>0)|0}}); y6("Math.sign",function(h){return h?h:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}}); y6("WeakSet",function(h){function t(Y){this.G=new WeakMap;if(Y){Y=g.b(Y);for(var L;!(L=Y.next()).done;)this.add(L.value)}} if(function(){if(!h||!Object.seal)return!1;try{var Y=Object.seal({}),L=Object.seal({}),q=new h([Y]);if(!q.has(Y)||q.has(L))return!1;q.delete(Y);q.add(L);return!q.has(Y)&&q.has(L)}catch(z){return!1}}())return h; t.prototype.add=function(Y){this.G.set(Y,!0);return this}; t.prototype.has=function(Y){return this.G.has(Y)}; t.prototype.delete=function(Y){return this.G.delete(Y)}; return t}); y6("AggregateError",function(h){function t(Y,L){L=Error(L);"stack"in L&&(this.stack=L.stack);this.errors=Y;this.message=L.message} if(h)return h;g.F(t,Error);t.prototype.name="AggregateError";return t}); y6("Array.prototype.copyWithin",function(h){function t(Y){Y=Number(Y);return Y===Infinity||Y===-Infinity?Y:Y|0} return h?h:function(Y,L,q){var z=this.length;Y=t(Y);L=t(L);q=q===void 0?z:t(q);Y=Y<0?Math.max(z+Y,0):Math.min(Y,z);L=L<0?Math.max(z+L,0):Math.min(L,z);q=q<0?Math.max(z+q,0):Math.min(q,z);if(YL;)--q in this?this[--Y]=this[q]:delete this[--Y];return this}}); y6("Int8Array.prototype.copyWithin",Ic);y6("Uint8Array.prototype.copyWithin",Ic);y6("Uint8ClampedArray.prototype.copyWithin",Ic);y6("Int16Array.prototype.copyWithin",Ic);y6("Uint16Array.prototype.copyWithin",Ic);y6("Int32Array.prototype.copyWithin",Ic);y6("Uint32Array.prototype.copyWithin",Ic);y6("Float32Array.prototype.copyWithin",Ic);y6("Float64Array.prototype.copyWithin",Ic);y6("Array.prototype.at",function(h){return h?h:Rc}); y6("Int8Array.prototype.at",BW);y6("Uint8Array.prototype.at",BW);y6("Uint8ClampedArray.prototype.at",BW);y6("Int16Array.prototype.at",BW);y6("Uint16Array.prototype.at",BW);y6("Int32Array.prototype.at",BW);y6("Uint32Array.prototype.at",BW);y6("Float32Array.prototype.at",BW);y6("Float64Array.prototype.at",BW);y6("String.prototype.at",function(h){return h?h:Rc}); y6("Array.prototype.findLastIndex",function(h){return h?h:function(t,Y){return WL3(this,t,Y).wY}}); y6("Int8Array.prototype.findLastIndex",PW);y6("Uint8Array.prototype.findLastIndex",PW);y6("Uint8ClampedArray.prototype.findLastIndex",PW);y6("Int16Array.prototype.findLastIndex",PW);y6("Uint16Array.prototype.findLastIndex",PW);y6("Int32Array.prototype.findLastIndex",PW);y6("Uint32Array.prototype.findLastIndex",PW);y6("Float32Array.prototype.findLastIndex",PW);y6("Float64Array.prototype.findLastIndex",PW);y6("Number.parseInt",function(h){return h||parseInt});var nm,qh,XW6;nm=nm||{};g.D$=this||self;qh="closure_uid_"+(Math.random()*1E9>>>0);XW6=0;g.W1(yv,Error);yv.prototype.name="CustomError";var J3r;var ZL3,Fy,OM;ZL3=Array.prototype.indexOf?function(h,t){return Array.prototype.indexOf.call(h,t,void 0)}:function(h,t){if(typeof h==="string")return typeof t!=="string"||t.length!=1?-1:h.indexOf(t,0); for(var Y=0;Y=0;Y--)if(Y in h&&h[Y]===t)return Y;return-1}; g.B1=Array.prototype.forEach?function(h,t,Y){Array.prototype.forEach.call(h,t,Y)}:function(h,t,Y){for(var L=h.length,q=typeof h==="string"?h.split(""):h,z=0;z=.3:this.p6>=.5};var cZ={vvQ:0,UqQ:1},cfc={NONE:0,RUQ:1,mq8:2};var a$1="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Fh.prototype.getValue=function(){return this.T}; g.F(j$,Fh);j$.prototype.S=function(h){this.T===null&&g.HZ(this.W,h)&&(this.T=h)}; g.F(ZX,Fh);ZX.prototype.S=function(h){this.T===null&&typeof h==="number"&&(this.T=h)}; g.F(bv,Fh);bv.prototype.S=function(h){this.T===null&&typeof h==="string"&&(this.T=h)};o7.prototype.disable=function(){this.T=!1}; o7.prototype.enable=function(){this.T=!0}; o7.prototype.isEnabled=function(){return this.T}; o7.prototype.reset=function(){this.G={};this.T=!0;this.S={}};var fr=document,uI=window;var tEl=gL(1,!0),Ow=gL(610401301,!1);gL(899588437,!1);var iH3=gL(772657768,!1),gyC=gL(513659523,!1),Y0E=gL(568333945,!1),S4c=gL(1331761403,!1);gL(651175828,!1);gL(722764542,!1);gL(748402145,!1);gL(748402146,!1);gL(333098724,!1);gL(2147483644,!1);gL(2147483645,!1);gL(2147483646,tEl);gL(2147483647,!0);var nu=!!g.il("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var vZ=String.prototype.trim?function(h){return h.trim()}:function(h){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(h)[1]},zPL=/&/g,VEb=//g,lCL=/"/g,HHn=/'/g,w1L=/\x00/g,q0n=/[\x00&<>"']/;var fu,Lnh=g.D$.navigator;fu=Lnh?Lnh.userAgentData||null:null;var RpL=globalThis.trustedTypes,mI;ta.prototype.toString=function(){return this.G+""};Y2.prototype.toString=function(){return this.G}; var m1L=new Y2("about:invalid#zClosurez");var q43=zD("tel"),Y4c=zD("sms"),Pi$=[zD("data"),zD("http"),zD("https"),zD("mailto"),zD("ftp"),new qr(function(h){return/^[^:]*([/?#]|$)/.test(h)})],D1L=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Wz.prototype.toString=function(){return this.G+""};Mr.prototype.toString=function(){return this.G+""};bs.prototype.toString=function(){return this.G};var dk={};g.q0s=String.prototype.repeat?function(h,t){return h.repeat(t)}:function(h,t){return Array(t+1).join(h)};k2[" "]=function(){};var Tf,ht,DEi,zPE,VEy,NLH,Kw,a9,lCE;g.xk=I7();g.qz=f$3();g.kL=TR("Edge");g.H0=g.kL||g.qz;Tf=TR("Gecko")&&!(pu(g.xp(),"WebKit")&&!TR("Edge"))&&!(TR("Trident")||TR("MSIE"))&&!TR("Edge");g.lI=pu(g.xp(),"WebKit")&&!TR("Edge");ht=Eb();DEi=MEL();g.A7=Cl$();zPE=aE();VEy=TR("iPad");NLH=TR("iPod");Kw=x2();a9=pu(g.xp(),"KaiOS"); a:{var HHs="",w1n=function(){var h=g.xp();if(Tf)return/rv:([^\);]+)(\)|;)/.exec(h);if(g.kL)return/Edge\/([\d\.]+)/.exec(h);if(g.qz)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(h);if(g.lI)return/WebKit\/(\S+)/.exec(h);if(g.xk)return/(?:Version)[ \/]?(\S+)/.exec(h)}(); w1n&&(HHs=w1n?w1n[1]:"");if(g.qz){var qv,Wn0=g.D$.document;qv=Wn0?Wn0.documentMode:void 0;if(qv!=null&&qv>parseFloat(HHs)){lCE=String(qv);break a}}lCE=HHs}var ZHn=lCE,svb={};var fi,$T;g.Lw=R7();fi=aE()||TR("iPod");$T=TR("iPad");g.EZ=T3D();g.wq=BZ();g.Hq=PZ()&&!x2();var ppL=!g.qz&&!PZ();g.M=g.TD.prototype;g.M.clone=function(){return new g.TD(this.x,this.y)}; g.M.equals=function(h){return h instanceof g.TD&&Aa(this,h)}; g.M.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.M.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.M.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.M.scale=function(h,t){this.x*=h;this.y*=typeof t==="number"?t:h;return this};g.M=g.Se.prototype;g.M.clone=function(){return new g.Se(this.width,this.height)}; g.M.aspectRatio=function(){return this.width/this.height}; g.M.isEmpty=function(){return!RE(this)}; g.M.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.M.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.M.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.M.scale=function(h,t){this.width*=h;this.height*=typeof t==="number"?t:h;return this};Pz.prototype.toString=function(){return this.G}; var Bz={};new Pz(Bz,"");var dhW=/^[a-z][a-z\d-]*$/i,GsL="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),r3W="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),u8n=["action","formaction","href"];var p11={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.M=Dj.prototype;g.M.gP=function(h){return Y9(this.G,h)}; g.M.getElementsByTagName=function(h,t){return(t||this.G).getElementsByTagName(String(h))}; g.M.Tz=function(h){return g.V_(h,this.G)}; g.M.setProperties=Nl;g.M.createElement=function(h){return wS(this.G,h)}; g.M.appendChild=g.UO;g.M.append=function(h,t){xhn(hf(h),h,arguments,1)}; g.M.canHaveChildren=function(h){if(h.nodeType!=1)return!1;switch(h.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.M.removeNode=g.FK;g.M.getChildren=function(h){return h.children!=void 0?h.children:Array.prototype.filter.call(h.childNodes,function(t){return t.nodeType==1})}; g.M.contains=g.sO;Q_.prototype.now=function(){return 0}; Q_.prototype.T=function(){return 0}; Q_.prototype.S=function(){return 0}; Q_.prototype.G=function(){return 0};g.F(cb,Q_);cb.prototype.now=function(){return rS()&&uI.performance.now?uI.performance.now():Q_.prototype.now.call(this)}; cb.prototype.T=function(){return rS()&&uI.performance.memory?uI.performance.memory.totalJSHeapSize||0:Q_.prototype.T.call(this)}; cb.prototype.S=function(){return rS()&&uI.performance.memory?uI.performance.memory.usedJSHeapSize||0:Q_.prototype.S.call(this)}; cb.prototype.G=function(){return rS()&&uI.performance.memory?uI.performance.memory.jsHeapSizeLimit||0:Q_.prototype.G.call(this)};var e0c=function(){if(!g.D$.addEventListener||!Object.defineProperty)return!1;var h=!1,t=Object.defineProperty({},"passive",{get:function(){h=!0}}); try{var Y=function(){}; g.D$.addEventListener("test",Y,t);g.D$.removeEventListener("test",Y,t)}catch(L){}return h}();var QUW=nyL("AnimationEnd"),C3=nyL("TransitionEnd");g.M=aL.prototype;g.M.getHeight=function(){return this.bottom-this.top}; g.M.clone=function(){return new aL(this.top,this.right,this.bottom,this.left)}; g.M.contains=function(h){return this&&h?h instanceof aL?h.left>=this.left&&h.right<=this.right&&h.top>=this.top&&h.bottom<=this.bottom:h.x>=this.left&&h.x<=this.right&&h.y>=this.top&&h.y<=this.bottom:!1}; g.M.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.M.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.M.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.M.scale=function(h,t){t=typeof t==="number"?t:h;this.left*=h;this.right*=h;this.top*=t;this.bottom*=t;return this};g.M=g.OO.prototype;g.M.clone=function(){return new g.OO(this.left,this.top,this.width,this.height)}; g.M.contains=function(h){return h instanceof g.TD?h.x>=this.left&&h.x<=this.left+this.width&&h.y>=this.top&&h.y<=this.top+this.height:this.left<=h.left&&this.left+this.width>=h.left+h.width&&this.top<=h.top&&this.top+this.height>=h.top+h.height}; g.M.getSize=function(){return new g.Se(this.width,this.height)}; g.M.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.M.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.M.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.M.scale=function(h,t){t=typeof t==="number"?t:h;this.left*=h;this.width*=h;this.top*=t;this.height*=t;return this};var $hD={};var BLW=p7(function(){var h=!1;try{var t=Object.defineProperty({},"passive",{get:function(){h=!0}}); g.D$.addEventListener("test",null,t)}catch(Y){}return h});Pln.prototype.isVisible=function(){return LQ(fr)===1};var AdL=qG(function(h){return typeof h==="number"}),Thr=qG(function(h){return typeof h==="string"}),SwD=qG(function(h){return typeof h==="boolean"}),s1=qG(function(h){return h!=null&&typeof h==="object"&&typeof h.then==="function"}),jSW=qG(function(h){return typeof h==="function"}),y3L=qG(function(h){return!!h&&(typeof h==="object"||typeof h==="function")});var Dhi={KlQ:"allow-forms",f9Q:"allow-modals",UF5:"allow-orientation-lock",XMQ:"allow-pointer-lock",pMP:"allow-popups",Nk_:"allow-popups-to-escape-sandbox",CZ5:"allow-presentation",DFP:"allow-same-origin",l9e:"allow-scripts",mFU:"allow-top-navigation",HQi:"allow-top-navigation-by-user-activation"},gpL=p7(function(){return hNL()});var zNn=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Wt.prototype.K6=function(h,t,Y){h=h+"//"+t+Y;var L=Hun(this)-Y.length;if(L<0)return"";this.G.sort(function(w,W){return w-W}); Y=null;t="";for(var q=0;q=H.length){L-=H.length;h+=H;t=this.S;break}Y=Y==null?z:Y}}L="";Y!=null&&(L=""+t+"trn="+Y);return h+L};jW.prototype.setInterval=function(h,t){return uI.setInterval(h,t)}; jW.prototype.clearInterval=function(h){uI.clearInterval(h)}; jW.prototype.setTimeout=function(h,t){return uI.setTimeout(h,t)}; jW.prototype.clearTimeout=function(h){uI.clearTimeout(h)};var NQ=void 0,Dr,Aab=typeof TextDecoder!=="undefined",ZuL,j76=typeof String.prototype.isWellFormed==="function",s73=typeof TextEncoder!=="undefined";var Q7b={},ct=null,rd3=Tf||g.lI||typeof g.D$.btoa=="function";var Epp=typeof Uint8Array!=="undefined",pZL=!g.qz&&typeof btoa==="function",vp6=/[-_.]/g,eNL={"-":"+",_:"/",".":"="},eW={};up.prototype.isEmpty=function(){return this.G==null}; up.prototype.sizeBytes=function(){var h=pQ(this);return h?h.length:0}; var xn6;var kRL=void 0;var E2=typeof Symbol==="function"&&typeof Symbol()==="symbol",X1h=xM("jas",void 0,!0),Xv=xM(void 0,"1oa"),uk=xM(void 0,Symbol()),Uhv=xM(void 0,"0ub"),XzD=xM(void 0,"0ubs"),Ulc=xM(void 0,"0ubsb"),o26=xM(void 0,"0actk"),Qd=xM("m_m","hXi",!0),MeL=xM(void 0,"vps"),ClC=xM();Math.max.apply(Math,g.p(Object.values({mSe:1,lJ8:2,DSe:4,XS5:8,Wex:16,Wx5:32,V1M:64,jfi:128,Cx5:256,ID5:512,lk8:1024,Ik8:2048,zqi:4096})));var npb={Pj:{value:0,configurable:!0,writable:!0,enumerable:!1}},Ou3=Object.defineProperties,kM=E2?X1h:"Pj",tA,ME0=[];nQ(ME0,7);tA=Object.freeze(ME0);var rn={},$M={},Jar=Object.freeze({}),SW={};var Rt=typeof g.D$.BigInt==="function"&&typeof g.D$.BigInt(0)==="bigint";var EV=qG(function(h){return Rt?h>=Fn1&&h<=svy:h[0]==="-"?IX$(h,jvP):IX$(h,ZHs)}),jvP=Number.MIN_SAFE_INTEGER.toString(),Fn1=Rt?BigInt(Number.MIN_SAFE_INTEGER):void 0,ZHs=Number.MAX_SAFE_INTEGER.toString(),svy=Rt?BigInt(Number.MAX_SAFE_INTEGER):void 0;var O0r=typeof Uint8Array.prototype.slice==="function",Pt=0,hQ=0,CIW;var MH=typeof BigInt==="function"?BigInt.asIntN:void 0,NkL=typeof BigInt==="function"?BigInt.asUintN:void 0,ZB=Number.isSafeInteger,lk=Number.isFinite,bk=Math.trunc,Dnp=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Fgn={};var bH3={c7U:!0};var vp;var sEW,jEL;var Kgi=Bt(0),um={};km.prototype.init=function(h,t,Y,L){var q=L===void 0?{}:L;L=q.FT===void 0?!1:q.FT;q=q.VJ===void 0?!1:q.VJ;this.FT=L;this.VJ=q;h&&(h=E5(h,this.VJ),this.T=h.buffer,this.X=h.G,this.W=t||0,this.S=Y!==void 0?this.W+Y:this.T.length,this.G=this.W)}; km.prototype.free=function(){this.clear();I3.length<100&&I3.push(this)}; km.prototype.clear=function(){this.T=null;this.X=!1;this.G=this.S=this.W=0;this.FT=!1}; km.prototype.reset=function(){this.G=this.W}; var I3=[];R3.prototype.free=function(){this.G.clear();this.T=this.W=-1;BF.length<100&&BF.push(this)}; R3.prototype.reset=function(){this.G.reset();this.S=this.G.G;this.T=this.W=-1}; var BF=[];var Ijr,BkL;W7.prototype.length=function(){return this.G.length}; W7.prototype.end=function(){var h=this.G;this.G=[];return h};var Zi=sQ(),oy8=sQ(),dh1=sQ(),GsE=sQ(),Qv3=sQ(),r31=sQ(),c38=sQ(),u8s=sQ(),ePh=sQ(),J33=sQ();j7.prototype.toJSON=function(){return OV(this)}; j7.prototype.LC=function(h){return JSON.stringify(OV(this,h))}; j7.prototype.clone=function(){var h=this.qD,t=h[kM]|0;return Tl(this,h,t)?AQ(this,h,!0):new this.constructor($J(h,t,!1))}; j7.prototype[Qd]=rn;j7.prototype.toString=function(){return this.qD.toString()};var qO1=oW(function(h,t,Y,L,q){if(h.T!==2)return!1;mQ(h,U5(t,L,Y),q);return!0},L3i),zwp=oW(function(h,t,Y,L,q){if(h.T!==2)return!1; mQ(h,U5(t,L,Y),q);return!0},L3i),aW=Symbol(),c7=Symbol(),JK=Symbol(),W3W=Symbol(),lPc=Symbol(),d6,G3;var p1h=$6(function(h,t,Y){if(h.T!==1)return!1;S7(t,Y,AA(h.G));return!0},IW,u8s),vyP=$6(function(h,t,Y){if(h.T!==1)return!1; h=AA(h.G);S7(t,Y,h===0?void 0:h);return!0},IW,u8s),KnH=$6(function(h,t,Y,L){if(h.T!==1)return!1; WF(t,Y,L,AA(h.G));return!0},IW,u8s),aCv=$6(function(h,t,Y){if(h.T!==0)return!1; S7(t,Y,nd(h.G));return!0},RW,r31),xhs=$6(function(h,t,Y){if(h.T!==0)return!1; h=nd(h.G);S7(t,Y,h===0?void 0:h);return!0},RW,r31),Eyy=$6(function(h,t,Y,L){if(h.T!==0)return!1; WF(t,Y,L,nd(h.G));return!0},RW,r31),ksh=$6(function(h,t,Y){if(h.T!==0)return!1; S7(t,Y,fd(h.G));return!0},B7,GsE),OH0=$6(function(h,t,Y){if(h.T!==0)return!1; h=fd(h.G);S7(t,Y,h===0?void 0:h);return!0},B7,GsE),ny0=$6(function(h,t,Y,L){if(h.T!==0)return!1; WF(t,Y,L,fd(h.G));return!0},B7,GsE),fC0=$6(function(h,t,Y){if(h.T!==1)return!1; S7(t,Y,TE(h.G));return!0},function(h,t,Y){i7c(h,Y,ljD(t))},c38),$h8=T3(function(h,t,Y){if(h.T!==1&&h.T!==2)return!1; t=Vr(t,t[kM]|0,Y);if(h.T==2)for(Y=fd(h.G)>>>0,Y=h.G.G+Y;h.G.G>>0);return!0},function(h,t,Y){t=yd(t); t!=null&&t!=null&&(MQ(h,Y,0),XB(h.G,t))},Qv3),Pls=$6(function(h,t,Y){if(h.T!==0)return!1; S7(t,Y,fd(h.G));return!0},function(h,t,Y){t=Wp(t); t!=null&&(t=parseInt(t,10),MQ(h,Y,0),mr6(h.G,t))},J33);Z7L.prototype.register=function(){k2(this)};g.F(Di,j7);Di.prototype.S=b71([0,vyP,xhs,-2,OH0]);var uKr={iHQ:1,Tc:2,u8z:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Jfn.prototype.iW=function(h){if(typeof h==="string"&&h.length!=0){var t=this.gz;if(t.T){h=h.split("&");for(var Y=h.length-1;Y>=0;Y--){var L=h[Y].split("="),q=decodeURIComponent(L[0]);L.length>1?(L=decodeURIComponent(L[1]),L=/^[0-9]+$/g.exec(L)?parseInt(L,10):L):L=1;(q=t.G[q])&&q.S(L)}}}};var wg=null;var Lr=g.D$.performance,mh0=!!(Lr&&Lr.mark&&Lr.measure&&Lr.clearMarks),gp=p7(function(){var h;if(h=mh0){var t=t===void 0?window:t;if(wg===null){wg="";try{h="";try{h=t.top.location.hash}catch(L){h=t.location.hash}if(h){var Y=h.match(/\bdeid=([\d,]+)/);wg=Y?Y[1]:""}}catch(L){}}t=wg;h=!!t.indexOf&&t.indexOf("1337")>=0}return h}); Yn.prototype.disable=function(){this.G=!1;this.events!==this.T.google_js_reporting_queue&&(gp()&&g.B1(this.events,E9n),this.events.length=0)}; Yn.prototype.start=function(h,t){if(!this.G)return null;var Y=aPr()||K3L();h=new xlp(h,t,Y);t="goog_"+h.label+"_"+h.uniqueId+"_start";Lr&&gp()&&Lr.mark(t);return h}; Yn.prototype.end=function(h){if(this.G&&typeof h.value==="number"){var t=aPr()||K3L();h.duration=t-h.value;t="goog_"+h.label+"_"+h.uniqueId+"_end";Lr&&gp()&&Lr.mark(t);!this.G||this.events.length>2048||this.events.push(h)}};var kfL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Fz=/#|$/,AfL=/[?&]($|#)/;IPb.prototype.Wv=function(h,t,Y,L,q){q=q||this.V8;try{var z=new Wt;z.G.push(1);z.T[1]=yL("context",h);t.error&&t.meta&&t.id||(t=new dp(GF(t)));if(t.msg){var V=t.msg.substring(0,512);z.G.push(2);z.T[2]=yL("msg",V)}var l=t.meta||{};if(this.ww)try{this.ww(l)}catch(U){}if(L)try{L(l)}catch(U){}L=[l];z.G.push(3);z.T[3]=L;var H=Nh$();if(H.T){var w=H.T.url||"";z.G.push(4);z.T[4]=yL("top",w)}var W={url:H.G.url||""};if(H.G.url){var y=g.zF(H.G.url);var X=qw(y[1],null,y[3],y[4])}else X="";w=[W,{url:X}];z.G.push(5); z.T[5]=w;pbp(this.G,q,z,Y)}catch(U){try{pbp(this.G,q,{context:"ecmserr",rctx:h,msg:GF(U),url:H&&H.G.url},Y)}catch(C){}}return this.bA}; g.F(dp,v9b);var bo,oO,ZU=new Yn;bo=new function(){var h="https:";uI&&uI.location&&uI.location.protocol==="http:"&&(h="http:");this.T=h;this.G=.01}; oO=new IPb;uI&&uI.document&&(uI.document.readyState=="complete"?BS$():ZU.G&&YM(uI,"load",function(){BS$()}));var DlL=Date.now(),pr=-1,e9=-1,V36,vy=-1,Jk=!1;Kr.prototype.equals=function(h,t){return!!h&&(!(t===void 0?0:t)||this.volume==h.volume)&&this.S==h.S&&EO(this.G,h.G)&&!0};aO.prototype.gP=function(){return this.C}; aO.prototype.equals=function(h,t){return this.W.equals(h.W,t===void 0?!1:t)&&this.C==h.C&&EO(this.S,h.S)&&EO(this.U,h.U)&&this.G==h.G&&this.X==h.X&&this.T==h.T&&this.Y==h.Y};var Dhl={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fP={AN:"start",UU:"firstquartile",IQ:"midpoint",Pf:"thirdquartile",COMPLETE:"complete",ERROR:"error",j0:"metric",PAUSE:"pause",Mm:"resume",qm:"skip",Rj:"viewable_impression",bE:"mute",Gc:"unmute",Xc:"fullscreen",fG:"exitfullscreen",cK:"bufferstart",eZ:"bufferfinish",pG:"fully_viewable_audible_half_duration_impression",J9:"measurable_impression",PK:"abandon",KG:"engagedview",NJ:"impression",Qs:"creativeview",Ys:"loaded", wSM:"progress",CLOSE:"close",HLi:"collapse",mGm:"overlay_resize",HHz:"overlay_unmeasurable_impression",OHi:"overlay_unviewable_impression",rS5:"overlay_viewable_immediate_impression",VT0:"overlay_viewable_end_of_session_impression",EU:"custom_metric_viewable",u7:"audio_audible",Tp:"audio_measurable",RP:"audio_impression"},FXb="start firstquartile midpoint thirdquartile resume loaded".split(" "),sWn=["start","firstquartile","midpoint","thirdquartile"],lrb=["abandon"],NJ={UNKNOWN:-1,AN:0,UU:1,IQ:2, Pf:3,COMPLETE:4,j0:5,PAUSE:6,Mm:7,qm:8,Rj:9,bE:10,Gc:11,Xc:12,fG:13,pG:14,J9:15,PK:16,KG:17,NJ:18,Qs:19,Ys:20,EU:21,cK:22,eZ:23,RP:27,Tp:28,u7:29};var tWL={Sm5:"addEventListener",ONM:"getMaxSize",Vki:"getScreenSize",rHQ:"getState",yHU:"getVersion",PJ5:"removeEventListener",HI_:"isViewable"};VWi.prototype.update=function(h){h&&h.document&&(this.C=xn(!1,h,this.isMobileDevice),this.G=xn(!0,h,this.isMobileDevice),lmL(this,h),Neb(this,h))};TF.prototype.cancel=function(){Zm().clearTimeout(this.G);this.G=null}; TF.prototype.schedule=function(){var h=this,t=Zm(),Y=tk().G.G;this.G=t.setTimeout(hk(Y,rp(143,function(){h.T++;h.S.sample()})),hcn())};g.M=Ak.prototype;g.M.OI=function(){return!1}; g.M.initialize=function(){return this.isInitialized=!0}; g.M.OQ=function(){return this.G.gU}; g.M.O4=function(){return this.G.AQ}; g.M.fail=function(h,t){if(!this.AQ||(t===void 0?0:t))this.AQ=!0,this.gU=h,this.Y=0,this.G!=this||IO(this)}; g.M.getName=function(){return this.G.Ne}; g.M.D1=function(){return this.G.A2()}; g.M.A2=function(){return{}}; g.M.HA=function(){return this.G.Y}; g.M.Mu=function(){var h=nr();h.G=xn(!0,this.S,h.isMobileDevice)}; g.M.n2=function(){Neb(nr(),this.S)}; g.M.ZU=function(){return this.W.G}; g.M.sample=function(){}; g.M.isActive=function(){return this.G.U}; g.M.IV=function(h){var t=this.G;this.G=h.HA()>=this.Y?h:this;t!==this.G?(this.U=this.G.U,IO(this)):this.U!==this.G.U&&(this.U=this.G.U,IO(this))}; g.M.Jm=function(h){if(h.T===this.G){var t=!this.W.equals(h,this.L);this.W=h;t&&WV3(this)}}; g.M.Dp=function(){return this.L}; g.M.dispose=function(){this.Wm=!0}; g.M.Ui=function(){return this.Wm};g.M=RO.prototype;g.M.observe=function(){return!0}; g.M.unobserve=function(){}; g.M.Rw=function(h){this.X=h}; g.M.dispose=function(){if(!this.Ui()){var h=this.T;g.bl(h.X,this);h.L&&this.Dp()&&wtn(h);this.unobserve();this.R0=!0}}; g.M.Ui=function(){return this.R0}; g.M.D1=function(){return this.T.D1()}; g.M.HA=function(){return this.T.HA()}; g.M.OQ=function(){return this.T.OQ()}; g.M.O4=function(){return this.T.O4()}; g.M.IV=function(){}; g.M.Jm=function(){this.GK()}; g.M.Dp=function(){return this.Wm};g.M=By.prototype;g.M.HA=function(){return this.G.HA()}; g.M.OQ=function(){return this.G.OQ()}; g.M.O4=function(){return this.G.O4()}; g.M.create=function(h,t,Y){var L=null;this.G&&(L=this.xV(h,t,Y),S9(this.G,L));return L}; g.M.Ae=function(){return this.V1()}; g.M.V1=function(){return!1}; g.M.init=function(h){return this.G.initialize()?(S9(this.G,this),this.W=h,!0):!1}; g.M.IV=function(h){h.HA()==0&&this.W(h.OQ(),this)}; g.M.Jm=function(){}; g.M.Dp=function(){return!1}; g.M.dispose=function(){this.X=!0}; g.M.Ui=function(){return this.X}; g.M.D1=function(){return{}};Py.prototype.add=function(h,t,Y){++this.S;h=new XtL(h,t,Y);this.G.push(new XtL(h.T,h.G,h.S+this.S/4096));this.T=!0;return this};Mhc.prototype.toString=function(){var h="//pagead2.googlesyndication.com//pagead/gen_204",t=DU(this.G);t.length>0&&(h+="?"+t);return h};g.O.prototype.Ym=!1;g.O.prototype.Ui=function(){return this.Ym}; g.O.prototype.dispose=function(){this.Ym||(this.Ym=!0,this.Gz())}; g.O.prototype[Symbol.dispose]=function(){this.dispose()}; g.O.prototype.addOnDisposeCallback=function(h,t){this.Ym?t!==void 0?h.call(t):h():(this.C3||(this.C3=[]),t&&(h=h.bind(t)),this.C3.push(h))}; g.O.prototype.Gz=function(){if(this.C3)for(;this.C3.length;)this.C3.shift()()};iy.prototype.update=function(h,t,Y){h&&(this.G+=t,this.T+=t,this.W+=t,this.S=Math.max(this.S,this.W));if(Y===void 0?!h:Y)this.W=0};var bfi=[1,.75,.5,.3,0];g_.prototype.update=function(h,t,Y,L,q,z){z=z===void 0?!0:z;t=q?Math.min(h,t):t;for(q=0;q0&&t>=V;V=!(h>0&&h>=V)||Y;this.G[q].update(z&&l,L,!z||V)}};N_.prototype.update=function(h,t,Y,L){this.C=this.C!=-1?Math.min(this.C,t.p6):t.p6;this.x8=Math.max(this.x8,t.p6);this.R0=this.R0!=-1?Math.min(this.R0,t.JV):t.JV;this.gU=Math.max(this.gU,t.JV);this.tQ.update(t.JV,Y.JV,t.G,h,L);this.Zx+=h;t.p6===0&&(this.Ne+=h);this.T.update(t.p6,Y.p6,t.G,h,L);Y=L||Y.d6!=t.d6?Y.isVisible()&&t.isVisible():Y.isVisible();t=!t.isVisible()||t.G;this.Y8.update(Y,h,t)}; N_.prototype.b9=function(){return this.Y8.S>=this.iP};if(fr&&fr.URL){var hNH=fr.URL,t$s;if(t$s=!!hNH){var ius;a:{if(hNH){var gp0=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var WP=gp0.exec(decodeURIComponent(hNH));if(WP){ius=WP[1]&&WP[1].length>1?WP[1].substring(1):"true";break a}}catch(h){}}ius=""}t$s=ius.length>0}oO.bA=!t$s};var Ywh=new aL(0,0,0,0);var ekL=new aL(0,0,0,0);g.F(CP,g.O);g.M=CP.prototype; g.M.Gz=function(){if(this.uB.G){if(this.GP.D2){var h=this.uB.G;typeof h.removeEventListener==="function"&&h.removeEventListener("mouseover",this.GP.D2,ge());this.GP.D2=null}this.GP.Cx&&(h=this.uB.G,typeof h.removeEventListener==="function"&&h.removeEventListener("mouseout",this.GP.Cx,ge()),this.GP.Cx=null)}this.gI&&this.gI.dispose();this.C6&&this.C6.dispose();delete this.zn;delete this.zW;delete this.lQ;delete this.uB.TB;delete this.uB.G;delete this.GP;delete this.gI;delete this.C6;delete this.gz; g.O.prototype.Gz.call(this)}; g.M.HD=function(){return this.C6?this.C6.G:this.position}; g.M.iW=function(h){tk().iW(h)}; g.M.Dp=function(){return!1}; g.M.Gd=function(){return new N_}; g.M.pN=function(){return this.zn}; g.M.G5=function(h){return K93(this,h,1E4)}; g.M.Hm=function(h,t,Y,L,q,z,V){this.wN||(this.iH&&(h=this.ul(h,Y,q,V),L=L&&this.S1.p6>=(this.d6()?.3:.5),this.DX(z,h,L),this.ob=t,h.p6>0&&-1===this.sH&&(this.sH=t),this.PT==-1&&this.b9()&&(this.PT=t),this.TW==-2&&(this.TW=w_(this.HD())?h.p6:-1),this.S1=h),this.zW(this))}; g.M.DX=function(h,t,Y){this.pN().update(h,t,this.S1,Y)}; g.M.IL=function(){return new DC}; g.M.ul=function(h,t,Y,L){Y=this.IL();Y.G=t;t=Zm().T;t=LQ(fr)===0?-1:t.isVisible()?0:1;Y.T=t;Y.p6=this.HH(h);Y.d6=this.d6();Y.JV=L;return Y}; g.M.HH=function(h){return this.opacity===0&&Qo(this.gz,"opac")===1?0:h}; g.M.d6=function(){return!1}; g.M.z7=function(){return this.gf||this.Wj}; g.M.QO=function(){uo()}; g.M.rj=function(){uo()}; g.M.IY=function(){return 0}; g.M.b9=function(){return this.zn.b9()}; g.M.UK=function(){var h=this.iH;h=(this.hasCompleted||this.Ui())&&!h;var t=tk().T!==2||this.p2G;return this.wN||t&&h?2:this.b9()?4:3}; g.M.BE=function(){return 0};g.FM.prototype.next=function(){return g.yu}; g.yu={done:!0,value:void 0};g.FM.prototype.tS=function(){return this};g.F(nJr,DC);var XF=$HL([void 0,1,2,3,4,8,16]),U4=$HL([void 0,4,8,16]),LIv={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:by("p0",U4),p1:by("p1",U4),p2:by("p2",U4),p3:by("p3",U4),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Zy("mtos1",[0,2,4],!1,U4),mtos2:Zy("mtos2",[0,2,4],!1,U4),mtos3:Zy("mtos3",[0,2,4],!1,U4),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:by("a0",U4),a1:by("a1",U4),a2:by("a2",U4),a3:by("a3",U4),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:by("c0",U4),c1:by("c1",U4),c2:by("c2",U4),c3:by("c3",U4),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:by("qmtos",XF),qnc:by("qnc",XF),qmv:by("qmv",XF),qnv:by("qnv",XF), 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:by("ss0",U4),ss1:by("ss1",U4),ss2:by("ss2",U4),ss3:by("ss3",U4),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"},qwH=Object.assign({},LIv,{avid:er("audio"),avas:"avas",vs:"vs"}),zNs={atos:"atos",avt:Zy("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(h,t){return function(Y){return Y[h]===void 0&&t!==void 0?t:Y[h]}}("ss",0), t:"t"};QF.prototype.getValue=function(){return this.T}; QF.prototype.update=function(h,t){h>=32||(this.G&1<=.5;kn(t.volume)&&(this.W=this.W!=-1?Math.min(this.W,t.volume):t.volume,this.U=Math.max(this.U,t.volume));z&&(this.Wm+=h,this.L+=q?h:0);this.G.update(t.p6,Y.p6,t.G,h,L,q);this.S.update(!0,h);this.X.update(q,h);this.AQ.update(Y.fullscreen,h);this.MD.update(q&&!z,h);h=Math.floor(t.mediaTime/1E3);this.X5.update(h,t.isVisible());this.yG.update(h,t.p6>=1);this.JQ.update(h, j8(t))}};Bnb.prototype.T=function(h){this.S||(this.G(h)?(h=zHr(this.L,this.W,h),this.X|=h,h=h==0):h=!1,this.S=h)};g.F(e8,Bnb);e8.prototype.G=function(){return!0}; e8.prototype.U=function(){return!1}; e8.prototype.getId=function(){var h=this,t=wh(fP,function(Y){return Y==h.W}); return NJ[t].toString()}; e8.prototype.toString=function(){var h="";this.U()&&(h+="c");this.S&&(h+="s");this.X>0&&(h+=":"+this.X);return this.getId()+h};g.F(JN,e8);JN.prototype.T=function(h,t){t=t===void 0?null:t;t!=null&&this.C.push(t);e8.prototype.T.call(this,h)};g.F(pP,Pkc);pP.prototype.T=function(){return null}; pP.prototype.S=function(){return[]};g.F(vx,RO);g.M=vx.prototype;g.M.Sp=function(){if(this.element){var h=this.element,t=this.T.G.S;try{try{var Y=LVD(h.getBoundingClientRect())}catch(w){Y=new aL(0,0,0,0)}var L=Y.right-Y.left,q=Y.bottom-Y.top,z=S0L(h,t),V=z.x,l=z.y;var H=new aL(Math.round(l),Math.round(V+L),Math.round(l+q),Math.round(V))}catch(w){H=Ywh.clone()}this.S=H;this.G=yur(this,this.S)}}; g.M.dX=function(){this.U=this.T.W.G}; g.M.RA=function(h){var t=Qo(this.gz,"od")==1;return uNn(h,this.U,this.element,t)}; g.M.Jo=function(){this.timestamp=uo()}; g.M.GK=function(){this.Jo();this.Sp();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var h=this.element;var t=new g.Se(h.videoWidth,h.videoHeight);h=this.G;var Y=x9(h),L=h.getHeight(),q=t.width;t=t.height;q<=0||t<=0||Y<=0||L<=0||(q/=t,t=Y/L,h=h.clone(),q>t?(Y/=q,L=(L-Y)/2,L>0&&(L=h.top+L,h.top=Math.round(L),h.bottom=Math.round(L+Y))):(L*=q,Y=Math.round((Y-L)/2),Y>0&&(Y=h.left+Y,h.left=Math.round(Y),h.right=Math.round(Y+L))));this.G=h}this.dX(); h=this.G;Y=this.U;h=h.left<=Y.right&&Y.left<=h.right&&h.top<=Y.bottom&&Y.top<=h.bottom?new aL(Math.max(h.top,Y.top),Math.min(h.right,Y.right),Math.min(h.bottom,Y.bottom),Math.max(h.left,Y.left)):new aL(0,0,0,0);Y=h.top>=h.bottom||h.left>=h.right?new aL(0,0,0,0):h;h=this.T.W;t=q=L=0;if((this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0)if(this.RA(Y))Y=new aL(0,0,0,0);else{L=nr().W;t=new aL(0,L.height,L.width,0);var z;L=Wx(Y,(z=this.X)!=null?z:this.G);q=Wx(Y,nr().G);t=Wx(Y,t)}z=Y.top>=Y.bottom|| Y.left>=Y.right?new aL(0,0,0,0):k9(Y,-this.G.left,-this.G.top);$n()||(q=L=0);this.L=new aO(h,this.element,this.G,z,L,q,this.timestamp,t)}; g.M.getName=function(){return this.T.getName()};var V$v=new aL(0,0,0,0);g.F(KP,vx);g.M=KP.prototype;g.M.observe=function(){this.W();return!0}; g.M.Jm=function(){vx.prototype.GK.call(this)}; g.M.Jo=function(){}; g.M.Sp=function(){}; g.M.GK=function(){this.W();vx.prototype.GK.call(this)}; g.M.IV=function(h){h=h.isActive();h!==this.Y&&(h?this.W():(nr().G=new aL(0,0,0,0),this.G=new aL(0,0,0,0),this.U=new aL(0,0,0,0),this.timestamp=-1));this.Y=h};var Cp={},zgb=(Cp.firstquartile=0,Cp.midpoint=1,Cp.thirdquartile=2,Cp.complete=3,Cp);g.F(xr,CP);g.M=xr.prototype;g.M.Dp=function(){return!0}; g.M.b4=function(){return this.CI==2}; g.M.G5=function(h){return K93(this,h,Math.max(1E4,this.S/3))}; g.M.Hm=function(h,t,Y,L,q,z,V){var l=this,H=this.C(this)||{};g.Mn(H,q);this.S=H.duration||this.S;this.L=H.isVpaid||this.L;this.Ne=H.isYouTube||this.Ne;Zm();this.tQ=!1;q=DHL(this,t);mH$(this)===1&&(z=q);CP.prototype.Hm.call(this,h,t,Y,L,H,z,V);this.wF&&this.wF.S&&g.B1(this.U,function(w){w.T(l)})}; g.M.DX=function(h,t,Y){CP.prototype.DX.call(this,h,t,Y);Oi(this).update(h,t,this.S1,Y);this.iP=j8(this.S1)&&j8(t);this.gU==-1&&this.yG&&(this.gU=this.pN().S.G);this.d0.S=0;h=this.b9();t.isVisible()&&Gj(this.d0,"vs");h&&Gj(this.d0,"vw");kn(t.volume)&&Gj(this.d0,"am");j8(t)?Gj(this.d0,"a"):Gj(this.d0,"mut");this.nU&&Gj(this.d0,"f");t.T!=-1&&(Gj(this.d0,"bm"),t.T==1&&(Gj(this.d0,"b"),j8(t)&&Gj(this.d0,"umutb")));j8(t)&&t.isVisible()&&Gj(this.d0,"avs");this.iP&&h&&Gj(this.d0,"avw");t.p6>0&&Gj(this.d0, "pv");nP(this,this.pN().S.G,!0)&&Gj(this.d0,"gdr");zj(this.pN().T,1)>=2E3&&Gj(this.d0,"pmx");this.tQ&&Gj(this.d0,"tvoff")}; g.M.Gd=function(){return new r_}; g.M.pN=function(){return this.zn}; g.M.IL=function(){return new nJr}; g.M.ul=function(h,t,Y,L){h=CP.prototype.ul.call(this,h,t,Y,L===void 0?-1:L);h.fullscreen=this.nU;h.paused=this.b4();h.volume=Y.volume;kn(h.volume)||(this.Pq++,t=this.S1,kn(t.volume)&&(h.volume=t.volume));Y=Y.currentTime;h.mediaTime=Y!==void 0&&Y>=0?Y:-1;return h}; g.M.HH=function(h){return nr(),this.nU?1:CP.prototype.HH.call(this,h)}; g.M.IY=function(){return 1}; g.M.getDuration=function(){return this.S}; g.M.UK=function(){return this.wN?2:t3c(this)?5:this.b9()?4:3}; g.M.BE=function(){return this.MD?this.pN().X.S>=2E3?4:3:2}; g.M.Rw=function(h){this.C6&&this.C6.Rw(h)};var NhC=g.H1();M3i.prototype.reset=function(){this.G=[];this.T=[]}; var IK=s2(M3i);g.F(Px,By);g.M=Px.prototype;g.M.getName=function(){return(this.T?this.T:this.G).getName()}; g.M.D1=function(){return(this.T?this.T:this.G).D1()}; g.M.HA=function(){return(this.T?this.T:this.G).HA()}; g.M.init=function(h){var t=!1;(0,g.B1)(this.S,function(Y){Y.initialize()&&(t=!0)}); t&&(this.W=h,S9(this.G,this));return t}; g.M.dispose=function(){(0,g.B1)(this.S,function(h){h.dispose()}); By.prototype.dispose.call(this)}; g.M.Ae=function(){return OM(this.S,function(h){return h.OI()})}; g.M.V1=function(){return OM(this.S,function(h){return h.OI()})}; g.M.xV=function(h,t,Y){return new vx(h,this.G,t,Y)}; g.M.Jm=function(h){this.T=h.T};var Q3$={threshold:[0,.3,.5,.75,1]};g.F(ma,vx);g.M=ma.prototype;g.M.observe=function(){var h=this;this.x8||(this.x8=uo());if(ml1(298,function(){return rAn(h)}))return!0; this.T.fail("msf");return!1}; g.M.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.C&&(this.C.disconnect(),this.C=null)}catch(h){}}; g.M.GK=function(){var h=Dy(this);h.length>0&&hO(this,h);vx.prototype.GK.call(this)}; g.M.Sp=function(){}; g.M.RA=function(){return!1}; g.M.dX=function(){}; g.M.D1=function(){var h={};return Object.assign(this.T.D1(),(h.niot_obs=this.x8,h.niot_cbk=this.AQ,h))}; g.M.getName=function(){return"nio"};g.F(tO,By);tO.prototype.getName=function(){return"nio"}; tO.prototype.V1=function(){return!nr().T&&this.G.G.S.IntersectionObserver!=null}; tO.prototype.xV=function(h,t,Y){return new ma(h,this.G,t,Y)};g.F(ix,Ak);ix.prototype.ZU=function(){return nr().G}; ix.prototype.OI=function(){var h=uvp();this.Y!==h&&(this.G!=this&&h>this.G.Y&&(this.G=this,IO(this)),this.Y=h);return h==2};gD.prototype.sample=function(){qJ(this,RK(),!1)}; gD.prototype.W=function(){var h=$n(),t=uo();h?(Jk||(pr=t,g.B1(IK.G,function(Y){var L=Y.pN();L.lP=cx(L,t,Y.CI!=1)})),Jk=!0):(this.C=KQb(this,t),Jk=!1,V36=t,g.B1(IK.G,function(Y){Y.iH&&(Y.pN().Y=t)})); qJ(this,RK(),!h)}; var YA=s2(gD);var x7L=null,cE="",rD=!1;var Od$=kEr().H0,Vi=kEr().Oy;var $71={XIm:"visible",qLi:"audible",Bdb:"time",s$8:"timetype"},Tb1={visible:function(h){return/^(100|[0-9]{1,2})$/.test(h)}, audible:function(h){return h=="0"||h=="1"}, timetype:function(h){return h=="mtos"||h=="tos"}, time:function(h){return/^(100|[0-9]{1,2})%$/.test(h)||/^([0-9])+ms$/.test(h)}}; frc.prototype.setTime=function(h,t,Y){t=="ms"?(this.S=h,this.W=-1):(this.S=-1,this.W=h);this.X=Y===void 0?"tos":Y;return this};g.F(wD,e8);wD.prototype.getId=function(){return this.C}; wD.prototype.U=function(){return!0}; wD.prototype.G=function(h){var t=h.pN(),Y=h.getDuration();return OM(this.Y,function(L){if(L.G!=void 0)var q=S5b(L,t);else b:{switch(L.X){case "mtos":q=L.T?t.X.S:t.S.G;break b;case "tos":q=L.T?t.X.G:t.S.G;break b}q=0}q==0?L=!1:(L=L.S!=-1?L.S:Y!==void 0&&Y>0?L.W*Y:-1,L=L!=-1&&q>=L);return L})};g.F(WE,AQr);WE.prototype.G=function(h){var t=new Tn1;t.G=d_(h,LIv);t.T=d_(h,zNs);return t};g.F(yi,e8);yi.prototype.G=function(h){return t3c(h)};g.F(XQ,Pkc);g.F(UE,e8);UE.prototype.G=function(h){return h.pN().b9()};g.F(CG,JN);CG.prototype.G=function(h){var t=g.jE(this.C,Qo(tk().gz,"ovms"));return!h.wN&&(h.CI!=0||t)};g.F(MJ,XQ);MJ.prototype.T=function(){return new CG(this.G)}; MJ.prototype.S=function(){return[new UE("viewable_impression",this.G),new yi(this.G)]};g.F(FQ,KP);FQ.prototype.W=function(){var h=g.il("ima.admob.getViewability"),t=Qo(this.gz,"queryid");typeof h==="function"&&t&&h(t)}; FQ.prototype.getName=function(){return"gsv"};g.F(sE,By);sE.prototype.getName=function(){return"gsv"}; sE.prototype.V1=function(){var h=nr();tk();return h.T&&!1}; sE.prototype.xV=function(h,t,Y){return new FQ(this.G,t,Y)};g.F(ju,KP);ju.prototype.W=function(){var h=this,t=g.il("ima.bridge.getNativeViewability"),Y=Qo(this.gz,"queryid");typeof t==="function"&&Y&&t(Y,function(L){g.WZ(L)&&h.C++;var q=L.opt_nativeViewVisibleBounds||{},z=L.opt_nativeViewHidden;h.G=q2c(L.opt_nativeViewBounds||{});var V=h.T.W;V.G=z?V$v.clone():q2c(q);h.timestamp=L.opt_nativeTime||-1;nr().G=V.G;L=L.opt_nativeVolume;L!==void 0&&(V.volume=L)})}; ju.prototype.getName=function(){return"nis"};g.F(Zl,By);Zl.prototype.getName=function(){return"nis"}; Zl.prototype.V1=function(){var h=nr();tk();return h.T&&!1}; Zl.prototype.xV=function(h,t,Y){return new ju(this.G,t,Y)};g.F(bx,Ak);g.M=bx.prototype;g.M.OI=function(){return this.T.hn!=null}; g.M.A2=function(){var h={};this.X5&&(h.mraid=this.X5);this.R0&&(h.mlc=1);h.mtop=this.T.wxm;this.C&&(h.mse=this.C);this.Zx&&(h.msc=1);h.mcp=this.T.compatibility;return h}; g.M.j7=function(h){var t=g.OL.apply(1,arguments);try{return this.T.hn[h].apply(this.T.hn,t)}catch(Y){cy(538,Y,.01,function(L){L.method=h})}}; g.M.initialize=function(){var h=this;if(this.isInitialized)return!this.O4();this.isInitialized=!0;if(this.T.compatibility===2)return this.C="ng",this.fail("w"),!1;if(this.T.compatibility===1)return this.C="mm",this.fail("w"),!1;nr().Y=!0;this.S.document.readyState&&this.S.document.readyState=="complete"?PmL(this):Hx(this.S,"load",function(){Zm().setTimeout(rp(292,function(){return PmL(h)}),100)},292); return!0}; g.M.Mu=function(){var h=nr(),t=iRW(this,"getMaxSize");h.G=new aL(0,t.width,t.height,0)}; g.M.n2=function(){nr().W=iRW(this,"getScreenSize")}; g.M.dispose=function(){D71(this);Ak.prototype.dispose.call(this)};var QLr=new function(h,t){this.key=h;this.defaultValue=t===void 0?!1:t;this.valueType="boolean"}("45378663");g.M=dD.prototype;g.M.Kd=function(h){M_(h,!1);Zd3(h)}; g.M.zd=function(){}; g.M.ZV=function(h,t,Y,L){var q=this;h=new xr(uI,h,Y?t:-1,7,this.Jp(),this.SS());h.Mq=L;x1L(h.gz);GR(h.gz,"queryid",h.Mq);h.iW("");EJp(h,function(){return q.lk.apply(q,g.p(g.OL.apply(0,arguments)))},function(){return q.V$.apply(q,g.p(g.OL.apply(0,arguments)))}); (L=s2(Bx).G)&&vJc(h,L);this.S&&(h.Rw(this.S),this.S=null);h.uB.TB&&s2(eg$);return h}; g.M.IV=function(h){switch(h.HA()){case 0:if(h=s2(Bx).G)h=h.G,g.bl(h.X,this),h.L&&this.Dp()&&wtn(h);Qi();break;case 2:LG()}}; g.M.Jm=function(){}; g.M.Dp=function(){return!1}; g.M.V$=function(h,t){h.wN=!0;switch(h.IY()){case 1:V7L(h,t);break;case 2:this.nP(h)}}; g.M.jl=function(h){var t=h.C(h);t&&(t=t.volume,h.MD=kn(t)&&t>0);Y5W(h,0);return $r(h,"start",$n())}; g.M.jH=function(h,t,Y){qJ(YA,[h],!$n());return this.iC(h,t,Y)}; g.M.iC=function(h,t,Y){return $r(h,Y,$n())}; g.M.Fr=function(h){return EE(h,"firstquartile",1)}; g.M.YC=function(h){h.yG=!0;return EE(h,"midpoint",2)}; g.M.Iy=function(h){return EE(h,"thirdquartile",3)}; g.M.r$=function(h){var t=EE(h,"complete",4);Ei(h);return t}; g.M.y$=function(h){h.CI=3;return $r(h,"error",$n())}; g.M.by=function(h,t,Y){t=$n();if(h.b4()&&!t){var L=h.pN(),q=uo();L.Y=q}qJ(YA,[h],!t);h.b4()&&(h.CI=1);return $r(h,Y,t)}; g.M.JZ=function(h,t){t=this.jH(h,t||{},"skip");Ei(h);return t}; g.M.kC=function(h,t){M_(h,!0);return this.jH(h,t||{},"fullscreen")}; g.M.vB=function(h,t){M_(h,!1);return this.jH(h,t||{},"exitfullscreen")}; g.M.r5=function(h,t,Y){t=h.pN();var L=uo();t.lP=cx(t,L,h.CI!=1);qJ(YA,[h],!$n());h.CI==1&&(h.CI=2);return $r(h,Y,$n())}; g.M.d$=function(h){qJ(YA,[h],!$n());return h.T()}; g.M.zb=function(h){qJ(YA,[h],!$n());this.vt(h);Ei(h);return h.T()}; g.M.lk=function(){}; g.M.nP=function(){}; g.M.vt=function(){}; g.M.Pl=function(){}; g.M.jp=function(){}; g.M.SS=function(){this.G||(this.G=this.jp());return this.G==null?new pP:new MJ(this.G)}; g.M.Jp=function(){return new WE};g.F(kA,e8);kA.prototype.G=function(h){return h.BE()==4};g.F(OE,JN);OE.prototype.G=function(h){h=h.BE();return h==3||h==4};g.F(nG,XQ);nG.prototype.T=function(){return new OE(this.G)}; nG.prototype.S=function(){return[new kA(this.G)]};g.F(fG,AQr);fG.prototype.G=function(h){h&&(h.e===28&&(h=Object.assign({},h,{avas:3})),h.vs===4||h.vs===5)&&(h=Object.assign({},h,{vs:3}));var t=new Tn1;t.G=d_(h,qwH);t.T=d_(h,zNs);return t};w73.prototype.T=function(){return g.il(this.G)};g.F($A,dD);g.M=$A.prototype;g.M.zd=function(h,t){var Y=this,L=s2(Bx);if(L.G!=null)switch(L.G.getName()){case "nis":var q=UQ1(this,h,t);break;case "gsv":q=X7L(this,h,t);break;case "exc":q=CVW(this,h)}q||(t.opt_overlayAdElement?q=void 0:t.opt_adElement&&(q=liW(this,h,t.opt_adElement,t.opt_osdId)));q&&q.IY()==1&&(q.C==g.Jf&&(q.C=function(z){return Y.Pl(z)}),yKc(this,q,t)); return q}; g.M.Pl=function(h){h.T=0;h.Wm=0;if(h.W=="h"||h.W=="n"){tk();h.JQ&&(tk(),aC(this)!="h"&&aC(this));var t=g.il("ima.common.getVideoMetadata");if(typeof t==="function")try{var Y=t(h.Mq)}catch(q){h.T|=4}else h.T|=2}else if(h.W=="b")if(t=g.il("ytads.bulleit.getVideoMetadata"),typeof t==="function")try{Y=t(h.Mq)}catch(q){h.T|=4}else h.T|=2;else if(h.W=="ml")if(t=g.il("ima.common.getVideoMetadata"),typeof t==="function")try{Y=t(h.Mq)}catch(q){h.T|=4}else h.T|=2;else h.T|=1;h.T||(Y===void 0?h.T|=8:Y===null? h.T|=16:g.WZ(Y)?h.T|=32:Y.errorCode!=null&&(h.Wm=Y.errorCode,h.T|=64));Y==null&&(Y={});t=Y;h.Y=0;for(var L in Dhl)t[L]==null&&(h.Y|=Dhl[L]);HR3(t,"currentTime");HR3(t,"duration");kn(Y.volume)&&kn()&&(Y.volume*=NaN);return Y}; g.M.jp=function(){tk();aC(this)!="h"&&aC(this);var h=M7L(this);return h!=null?new w73(h):null}; g.M.nP=function(h){!h.G&&h.wN&&xA(this,h,"overlay_unmeasurable_impression")&&(h.G=!0)}; g.M.vt=function(h){h.z4&&(h.b9()?xA(this,h,"overlay_viewable_end_of_session_impression"):xA(this,h,"overlay_unviewable_impression"),h.z4=!1)}; g.M.lk=function(){}; g.M.ZV=function(h,t,Y,L){if(rfi()){var q=Qo(tk().gz,"mm"),z={};(q=(z[io.Gp]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",z[io.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",z)[q])&&ZRi(this,q);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&cy(1044,Error())}h=dD.prototype.ZV.call(this,h,t,Y,L);this.X&&(t=this.U,h.X==null&&(h.X=new kln),t.G[h.Mq]=h.X,h.X.X=NhC);return h}; g.M.Kd=function(h){h&&h.IY()==1&&this.X&&delete this.U.G[h.Mq];return dD.prototype.Kd.call(this,h)}; g.M.SS=function(){this.G||(this.G=this.jp());return this.G==null?new pP:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new nG(this.G):new MJ(this.G)}; g.M.Jp=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new fG:new WE}; g.M.Rw=function(h,t,Y,L,q){t=new aL(Y,t+L,Y+q,t);(h=S8(IK,h))?h.Rw(t):this.S=t}; var lXL=QC(193,o6L,void 0,N6L);g.t3("Goog_AdSense_Lidar_sendVastEvent",lXL);var Hus=rp(194,function(h,t){t=t===void 0?{}:t;h=jWL(s2($A),h,t);return bRL(h)}); g.t3("Goog_AdSense_Lidar_getViewability",Hus);var wZv=QC(195,function(){return Cvi()}); g.t3("Goog_AdSense_Lidar_getUrlSignalsArray",wZv);var WIP=rp(196,function(){return JSON.stringify(Cvi())}); g.t3("Goog_AdSense_Lidar_getUrlSignalsList",WIP);var QWp=UL(["//ep2.adtrafficquality.google/sodar/",""]),rK3=UL(["//tpc.googlesyndication.com/sodar/",""]);g.F(Su,Error);g.F(BE,g.O);BE.prototype.QB=function(){return this.wpc.f()}; BE.prototype.kI=function(h){this.wpc.c(h)}; BE.prototype.zB=function(h){return this.wpc.m(JK6(h))}; BE.prototype.fB=function(h){return this.wpc.mws(JK6(h))}; g.F(IC,g.O);IC.prototype.snapshot=function(h){return this.Y0.s(Object.assign({},h.EV&&{c:h.EV},h.iA&&{s:h.iA},h.sS!==void 0&&{p:h.sS}))}; IC.prototype.eB=function(h){this.Y0.e(h)}; IC.prototype.eO=function(){return this.Y0.l()};var E6r;g.F(mR,g.O);mR.prototype.share=function(){if(this.Ui())throw Error("E:AD");this.T++;return this}; mR.prototype.dispose=function(){--this.T||g.O.prototype.dispose.call(this)}; E6r=Symbol.dispose;k33.prototype.yQ=function(h,t){this.G.yQ("/client_streamz/bg/frs",h,t)}; ORL.prototype.yQ=function(h,t,Y,L,q,z){this.G.yQ("/client_streamz/bg/wrl",h,t,Y,L,q,z)}; n6D.prototype.Vx=function(h,t){this.G.s$("/client_streamz/bg/ec",h,t)}; fii.prototype.yQ=function(h,t,Y){this.G.yQ("/client_streamz/bg/el",h,t,Y)}; $Qi.prototype.Vx=function(h,t){this.G.s$("/client_streamz/bg/cec",h,t)}; T6$.prototype.Vx=function(h,t){this.G.s$("/client_streamz/bg/po/csc",h,t)}; AK3.prototype.Vx=function(h,t){this.G.s$("/client_streamz/bg/po/ctav",h,t)}; SQp.prototype.Vx=function(h,t){this.G.s$("/client_streamz/bg/po/cwsc",h,t)};g.F(Iin,j7);g.F(to,j7);var Vf=[1,2,3];var yds=[0,Vf,IC8,ny0,A3v];var XZl=[0,Vu,[0,p1h,aCv]];g.F(iJ,j7);var zu=[1,2,3];var Un8=[0,zu,Eyy,KnH,lY,XZl];g.F(gi,j7);var Cvl=[0,Vu,yds,Un8];var M$1=[0,zm];g.F(Yi,j7);var FIC=[0,zm,-1,TL0];var s7L=[0,zm,-1,ksh,TL0];g.F(LX,j7);var wqi=[1,2,3];var j7v=[0,wqi,lY,FIC,lY,s7L,lY,M$1];g.F(qB,j7);qB.prototype.pV=function(){var h=Ym(this,3,dn,3,!0);Au(h);return h[void 0]};qB.prototype.S=b71([0,zm,j7v,S00,Vu,Cvl,fC0,$h8]);g.F(B6D,j7);g.M=NB.prototype;g.M.isEnabled=function(){if(!g.D$.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{zX:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.M.set=function(h,t,Y){var L=!1;if(typeof Y==="object"){var q=Y.KKb;L=Y.secure||!1;var z=Y.domain||void 0;var V=Y.path||void 0;var l=Y.zX}if(/[;=\s]/.test(h))throw Error('Invalid cookie name "'+h+'"');if(/[;\r\n]/.test(t))throw Error('Invalid cookie value "'+t+'"');l===void 0&&(l=-1);Y=z?";domain="+z:"";V=V?";path="+V:"";L=L?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.G.cookie=h+"="+t+Y+V+l+L+(q!=null?";samesite="+ q:"")}; g.M.get=function(h,t){for(var Y=h+"=",L=(this.G.cookie||"").split(";"),q=0,z;q=0;t--)this.remove(h[t])}; var QR=new NB(typeof document=="undefined"?null:document);H6.prototype.compress=function(h){var t,Y,L,q;return g.k(function(z){switch(z.T){case 1:return t=new CompressionStream("gzip"),Y=(new Response(t.readable)).arrayBuffer(),L=t.writable.getWriter(),g.K(z,L.write((new TextEncoder).encode(h)),2);case 2:return g.K(z,L.close(),3);case 3:return q=Uint8Array,g.K(z,Y,4);case 4:return z.return(new q(z.G))}})}; H6.prototype.isSupported=function(h){return h<1024?!1:typeof CompressionStream!=="undefined"};g.F(wi,j7);W6.prototype.setInterval=function(h){this.intervalMs=h;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; W6.prototype.start=function(){var h=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){h.tick()},this.intervalMs),this.T=this.G())}; W6.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; W6.prototype.tick=function(){var h=this;if(this.enabled){var t=Math.max(this.G()-this.T,0);t0?Y:void 0));Y=DB(Y,4,wn(q>0?q:void 0));Y=DB(Y,5,wn(z>0?z:void 0));q=Y.qD;z=q[kM]|0;Y=Tv(Y,z)?Y:Tl(Y,q,z)?AQ(Y,q):new Y.constructor($J(q,z,!0));bm(V,Uh,10,Y)}V=this.G.clone();Y=Date.now().toString();V=DB(V,4,jh(Y));h=o3(V,or,3,h.slice());L&&(V=new yf,L=DB(V,13,wn(L)),V=new XX, L=bm(V,yf,2,L),V=new bJ,L=bm(V,XX,1,L),L=Kd(L,2,9),bm(h,bJ,18,L));t&&JA(h,14,t);return h};g.c6.prototype.T=0;g.c6.prototype.reset=function(){this.G=this.S=this.W;this.T=0}; g.c6.prototype.getValue=function(){return this.S};g.F(P7,j7);var ZuH=mX(P7);g.F(jL6,j7);var Mv;Mv=new Z7L;g.F(pX,g.O);g.M=pX.prototype;g.M.Gz=function(){Jo(this);this.T.stop();this.X5.stop();g.O.prototype.Gz.call(this)}; g.M.dispatch=function(h){if(h instanceof or)this.log(h);else try{var t=new or,Y=h.LC();var L=pd(t,8,Y);this.log(L)}catch(q){v6(this,4,1)}}; g.M.log=function(h){v6(this,2,1);if(this.Zx){h=h.clone();var t=this.Y8++;h=JA(h,21,t);this.componentId&&pd(h,26,this.componentId);t=h;var Y=Pp(t,1);var L=L===void 0?!1:L;var q=typeof Y;L=Y==null?Y:q==="bigint"?String(MH(64,Y)):Hp(Y)?q==="string"?XN(Y):L?FN(Y):sV(Y):void 0;L==null&&(L=Date.now(),L=Number.isFinite(L)?L.toString():"0",DB(t,1,jh(L)));L=Pp(t,15);L!=null&&(typeof L==="bigint"?EV(L)?L=Number(L):(L=MH(64,L),L=EV(L)?Number(L):String(L)):L=Hp(L)?typeof L==="number"?sV(L):XN(L):void 0);L!=null|| JA(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(L=this.experimentIds.clone(),bm(t,wi,16,L));v6(this,1,1);t=this.G.length-1E3+1;t>0&&(this.G.splice(0,t),this.W+=t,v6(this,3,t));this.G.push(h);this.YE||this.T.enabled||this.T.start()}}; g.M.flush=function(h,t){var Y=this;if(this.G.length===0)h&&h();else if(this.gU&&this.AQ)this.S.T=3,sOp(this);else{var L=Date.now();if(this.lP>L&&this.Wm0&&(Y.Wm=Date.now(),Y.lP=Y.Wm+X);X=wL(uk);var d;E2&&X&&((d=U.qD[X])==null?void 0:d[175237375])!=null&&at(Uhv,3);a:{var Q=Q===void 0?!1:Q;if(wL(ClC)&&wL(uk)&&void 0===ClC){d=U.qD;X=d[uk];if(!X)break a;if(X=X.e2)try{X(d,175237375,bH3);break a}catch(J){ot(J)}}Q&&(Q=U.qD, (d=wL(uk))&&d in Q&&(Q=Q[d])&&delete Q[175237375])}Q=Mv.G?Mv.T(U,Mv.G,175237375,Mv.S):Mv.T(U,175237375,null,Mv.S);if(Q=Q===null?void 0:Q)Q=GE(Q,1,-1),Q!==-1&&(Y.X=new g.c6(Q<1?1:Q,3E5,.1),Y.T.setInterval(Y.X.getValue()))}}h&&h();Y.U=0},W=function(X,U){var C=M7(z,or,3); var d=Number(ajp(z,14));g.uJ(Y.X);Y.T.setInterval(Y.X.getValue());X===401&&V&&(Y.Ne=V);d&&(Y.W+=d);U===void 0&&(U=Y.isRetryable(X));U&&(Y.G=C.concat(Y.G),Y.YE||Y.T.enabled||Y.T.start());v6(Y,7,1);t&&t("net-send-failed",X);++Y.U},y=function(){Y.network&&Y.network.send(H,w,W)}; l?l.then(function(X){v6(Y,5,q);H.requestHeaders["Content-Encoding"]="gzip";H.requestHeaders["Content-Type"]="application/binary";H.body=X;H.dD=2;y()},function(){v6(Y,6,q); y()}):y()}}}}; g.M.isRetryable=function(h){return 500<=h&&h<600||h===401||h===0};KX.prototype.send=function(h,t,Y){var L=this,q,z,V,l,H,w,W,y,X,U;return g.k(function(C){switch(C.T){case 1:return z=(q=L.cf?new AbortController:void 0)?setTimeout(function(){q.abort()},h.timeoutMillis):void 0,g.oc(C,2,3),V=Object.assign({},{method:h.requestType, headers:Object.assign({},h.requestHeaders)},h.body&&{body:h.body},h.withCredentials&&{credentials:"include"},{signal:h.timeoutMillis&&q?q.signal:null}),g.K(C,fetch(h.url,V),5);case 5:l=C.G;if(l.status!==200){(H=Y)==null||H(l.status);C.eM(3);break}if((w=t)==null){C.eM(7);break}return g.K(C,l.text(),8);case 8:w(C.G);case 7:case 3:g.pL(C);clearTimeout(z);g.vW(C,0);break;case 2:W=g.cW(C);switch((y=W)==null?void 0:y.name){case "AbortError":(X=Y)==null||X(408);break;default:(U=Y)==null||U(400)}C.eM(3)}})}; KX.prototype.W7=function(){return 4};g.F(ar,g.O);ar.prototype.fY=function(){this.X=!0;return this}; ar.prototype.build=function(){this.network||(this.network=new KX);var h=new pX({logSource:this.logSource,pm:this.pm?this.pm:z01,sessionIndex:this.sessionIndex,Igx:this.zK,IM:this.W,YE:!1,fY:this.X,rX:this.rX,network:this.network});g.f(this,h);if(this.T){var t=this.T,Y=ri(h.S);pd(Y,7,t)}h.C=new H6;this.componentId&&(h.componentId=this.componentId);this.d9&&(h.d9=this.d9);this.pageId&&(h.pageId=this.pageId);this.G&&((Y=this.G)?(h.experimentIds||(h.experimentIds=new wi),t=h.experimentIds,Y=Y.LC(),pd(t, 4,Y)):h.experimentIds&&DB(h.experimentIds,4));this.S&&(h.gU=h.AQ);XyL(h.S);this.network.M7&&this.network.M7(this.logSource);this.network.J7e&&this.network.J7e(h);return h};g.F(xi,g.O);xi.prototype.flush=function(h){h=h||[];if(h.length){for(var t=new B6D,Y=[],L=0;L-1?(t=h[V],Y||(t.qp=!1)):(t=new rk6(t,this.src,z,!!L,q),t.qp=Y,h.push(t));return t}; g.M.remove=function(h,t,Y,L){h=h.toString();if(!(h in this.listeners))return!1;var q=this.listeners[h];t=Ir(q,t,Y,L);return t>-1?(Tu(q[t]),g.ZC(q,t),q.length==0&&(delete this.listeners[h],this.G--),!0):!1}; g.M.removeAll=function(h){h=h&&h.toString();var t=0,Y;for(Y in this.listeners)if(!h||Y==h){for(var L=this.listeners[Y],q=0;q-1?h[q]:null}; g.M.hasListener=function(h,t){var Y=h!==void 0,L=Y?h.toString():"",q=t!==void 0;return g.Yp(this.listeners,function(z){for(var V=0;V>>0);g.W1(g.Vm,g.O);g.Vm.prototype[GFc]=!0;g.M=g.Vm.prototype;g.M.addEventListener=function(h,t,Y,L){g.B6(this,h,t,Y,L)}; g.M.removeEventListener=function(h,t,Y,L){Klr(this,h,t,Y,L)}; g.M.dispatchEvent=function(h){var t=this.Hc;if(t){var Y=[];for(var L=1;t;t=t.Hc)Y.push(t),++L}t=this.Q0;L=h.type||h;if(typeof h==="string")h=new g.nX(h,t);else if(h instanceof g.nX)h.target=h.target||t;else{var q=h;h=new g.nX(L,t);g.Mn(h,q)}q=!0;var z;if(Y)for(z=Y.length-1;!h.T&&z>=0;z--){var V=h.currentTarget=Y[z];q=NF(V,L,!0,h)&&q}h.T||(V=h.currentTarget=t,q=NF(V,L,!0,h)&&q,h.T||(q=NF(V,L,!1,h)&&q));if(Y)for(z=0;!h.T&&z0){this.T--;var h=this.G;this.G=h.next;h.next=null}else h=this.S();return h};var wB;ym.prototype.add=function(h,t){var Y=nn$.get();Y.set(h,t);this.T?this.T.next=Y:this.G=Y;this.T=Y}; ym.prototype.remove=function(){var h=null;this.G&&(h=this.G,this.G=this.G.next,this.G||(this.T=null),h.next=null);return h}; var nn$=new lF(function(){return new X3},function(h){return h.reset()}); X3.prototype.set=function(h,t){this.G=h;this.scope=t;this.next=null}; X3.prototype.reset=function(){this.next=this.scope=this.G=null};var UW,jt=!1,kFL=new ym;fUn.prototype.reset=function(){this.context=this.T=this.S=this.G=null;this.W=!1}; var $w6=new lF(function(){return new fUn},function(h){h.reset()}); g.oR.prototype.then=function(h,t,Y){return DwL(this,Hk(typeof h==="function"?h:null),Hk(typeof t==="function"?t:null),Y)}; g.oR.prototype.$goog_Thenable=!0;g.M=g.oR.prototype;g.M.finally=function(h){var t=this;h=Hk(h);return new Promise(function(Y,L){IUL(t,function(q){h();Y(q)},function(q){h(); L(q)})})}; g.M.wS=function(h,t){return DwL(this,null,Hk(h),t)}; g.M.catch=g.oR.prototype.wS;g.M.cancel=function(h){if(this.G==0){var t=new uF(h);g.ZL(function(){R01(this,t)},this)}}; g.M.HC8=function(h){this.G=0;bF(this,2,h)}; g.M.OC5=function(h){this.G=0;bF(this,3,h)}; g.M.oB=function(){for(var h;h=BpL(this);)PoD(this,h,this.G,this.C);this.U=!1}; var grc=ot;g.W1(uF,yv);uF.prototype.name="cancel";g.W1(g.et,g.Vm);g.M=g.et.prototype;g.M.enabled=!1;g.M.yb=null;g.M.setInterval=function(h){this.iM=h;this.yb&&this.enabled?(this.stop(),this.start()):this.yb&&this.stop()}; g.M.QD_=function(){if(this.enabled){var h=g.H1()-this.fv;h>0&&h0&&(this.getStatus(),this.U=setTimeout(this.Y7.bind(this), this.AQ)),this.getStatus(),this.L=!0,this.G.send(h),this.L=!1}catch(V){this.getStatus(),M8L(this,V)}}; g.M.Y7=function(){typeof nm!="undefined"&&this.G&&(this.W="Timed out after "+this.AQ+"ms, aborting",this.T=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.M.abort=function(h){this.G&&this.S&&(this.getStatus(),this.S=!1,this.X=!0,this.G.abort(),this.X=!1,this.T=h||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),OW(this))}; g.M.Gz=function(){this.G&&(this.S&&(this.S=!1,this.X=!0,this.G.abort(),this.X=!1),OW(this,!0));g.kc.aD.Gz.call(this)}; g.M.bf=function(){this.Ui()||(this.R0||this.L||this.X?Fap(this):this.Q4U())}; g.M.Q4U=function(){Fap(this)}; g.M.isActive=function(){return!!this.G}; g.M.isComplete=function(){return g.fm(this)==4}; g.M.getStatus=function(){try{return g.fm(this)>2?this.G.status:-1}catch(h){return-1}}; g.M.getResponseHeader=function(h){if(this.G&&this.isComplete())return h=this.G.getResponseHeader(h),h===null?void 0:h}; g.M.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};IR.prototype.send=function(h,t,Y){t=t===void 0?function(){}:t; Y=Y===void 0?function(){}:Y; U_i(h.url,function(L){L=L.target;$c(L)?t(g.Tc(L)):Y(L.getStatus())},h.requestType,h.body,h.requestHeaders,h.timeoutMillis,h.withCredentials)}; IR.prototype.W7=function(){return 1};Bk.prototype.done=function(){this.logger.u3(this.event,RR()-this.startTime)}; g.F(Pk,mR);g.F(DL,Pk);g.M=DL.prototype;g.M.gy=function(){}; g.M.Rb=function(){}; g.M.u3=function(){}; g.M.NS=function(){}; g.M.QR=function(){}; g.M.eX=function(h,t,Y,L){return L}; g.M.Tn=function(){}; g.M.x$=function(){}; g.M.Rn=function(){}; g.F(hg,Pk);g.M=hg.prototype;g.M.update=function(h){this.logger.dispose();this.logger=h}; g.M.Rb=function(h){this.logger.Rb(h)}; g.M.u3=function(h,t){this.logger.u3(h,t)}; g.M.NS=function(h){this.logger.NS(h)}; g.M.QR=function(){this.logger.QR()}; g.M.eX=function(h,t,Y,L){return this.logger.eX(h,t,Y,L)}; g.M.Tn=function(h){this.logger.Tn(h)}; g.M.x$=function(h){this.logger.x$(h)}; g.M.Rn=function(h){this.logger.Rn(h)}; g.M.gy=function(h){this.logger.gy(h)}; g.F(bPL,g.O);g.F(tg,Pk);g.M=tg.prototype;g.M.gy=function(h){this.metrics.hvU.yQ(h,this.Bd)}; g.M.Rb=function(h){this.metrics.eventCount.Vx(h,this.Bd)}; g.M.u3=function(h,t){this.metrics.xR.yQ(t,h,this.Bd)}; g.M.NS=function(h){this.metrics.errorCount.Vx(h,this.Bd)}; g.M.eX=function(h,t,Y,L){function q(l){if(!z.Ui()){var H=RR()-V;z.metrics.qmG.yQ(H,h,Y,l,t,z.Bd)}} var z=this,V=RR();L.then(function(){return void q(0)},function(l){return void q(l instanceof Km?l.code:-1)}); return L}; g.M.Tn=function(h){this.metrics.a9U.Vx(h,this.Bd)}; g.M.x$=function(h){this.metrics.je.Vx(h,this.Bd)}; g.M.Rn=function(h){this.metrics.njx.Vx(h,this.Bd)}; g.F(id,tg);id.prototype.QR=function(){or3(this.G)};g.F(g5,j7);g.F(Ys,j7);g.F(L2,j7);var x_c=mX(L2),Gj$=function(h){return qG(function(t){return t instanceof h&&!Tv(t)})}(L2); L2.messageId="bfkj";g.F(PE,j7);g.F(qf,j7);var QKi=mX(qf);g.F(VZ,g.O);VZ.prototype.snapshot=function(h){if(this.Ui())throw Error("Already disposed");this.logger.Rb("n");var t=this.logger.share();return this.S.then(function(Y){var L=Y.Ou;return new Promise(function(q){var z=new Bk(t,"n");L(function(V){z.done();t.gy(V.length);t.QR();t.dispose();q(V)},[h.EV, h.iA,h.sD,h.sS])})})}; VZ.prototype.hc=function(h){var t=this;if(this.Ui())throw Error("Already disposed");this.logger.Rb("n");var Y=m7(this.logger,function(){return t.W([h.EV,h.iA,h.sD,h.sS])},"n"); this.logger.gy(Y.length);this.logger.QR();return Y}; VZ.prototype.eB=function(h){this.S.then(function(t){var Y;(Y=t.U60)==null||Y(h)})}; VZ.prototype.eO=function(){return this.logger.share()};g.F(Hm,j7);g.F(w5,j7);Wm.prototype.Wy=function(h){return nrc(this,h,new DL,0)};g.F(yZ,g.O);yZ.prototype.snapshot=function(h){var t=this;return g.k(function(Y){switch(Y.T){case 1:if(t.Ui())throw Error("Already disposed");if(t.T||t.C){Y.eM(2);break}return g.K(Y,t.X.promise,2);case 2:if(!t.T){Y.eM(4);break}return g.K(Y,t.T.snapshot(h),5);case 5:return Y.return(Y.G);case 4:throw t.C;}})}; yZ.prototype.eB=function(h){var t,Y;(t=this.T)==null||(Y=t.eB)==null||Y.call(t,h)}; yZ.prototype.handleError=function(h){if(!this.Ui()){this.C=h;this.X.resolve();var t,Y;(Y=(t=this.options).M4_)==null||Y.call(t,h)}}; yZ.prototype.eO=function(){return this.logger.share()}; var T_c={LaP:432E5,Bh:3E5,AD:10,Sc:1E4,e9:3E4,OC:3E4,irM:6E4,aB:1E3,nX:6E4,Ak:6E5,PQ:.25,qz:2,maxAttempts:10};var dnn,hd$=(dnn=Math.imul)!=null?dnn:function(h,t){return h*t|0},Mf=[196, 200,224,18];FW.prototype.LC=function(){return String(this.G)+","+this.T.join()}; FW.prototype.FX=function(h,t){var Y=void 0;if(this.T[this.G]!==h){var L=this.T.indexOf(h);L!==-1?(this.T.splice(L,1),L0;)t[Y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(h%62),h=Math.floor(h/62);return t.join("")}};var WRi;g.F(jw,g.O);jw.prototype.fB=function(h,t){var Y=this.zB(h);t==null||t(Y);return m7(this.logger,function(){return g.Gv(Y,2)},this.T)}; WRi=Symbol.dispose;g.F(oG,jw);oG.prototype.zB=function(h,t){var Y=this;this.logger.Rb(this.G);++this.X>=this.U&&this.S.resolve();var L=h();h=m7(this.logger,function(){return Y.W(L)},"C"); if(h===void 0)throw new Su(17,"YNJ:Undefined");if(!(h instanceof Uint8Array))throw new Su(18,"ODM:Invalid");t==null||t(h);return h}; g.F(d5,jw);d5.prototype.zB=function(){return this.W}; g.F(GJ,jw);GJ.prototype.zB=function(){var h=this;return m7(this.logger,function(){return re(h.W)},"d")}; GJ.prototype.fB=function(){return this.W}; g.F(QZ,jw);QZ.prototype.zB=function(){if(this.W)return this.W;this.W=yOW(this,function(h){return"_"+wEp(h)}); return yOW(this,function(h){return h})}; g.F(cm,jw);cm.prototype.zB=function(){var h=Math.floor(Date.now()/1E3),t=[Math.random()*255,Math.random()*255],Y=t.concat([this.W&255,this.clientState],[h>>24&255,h>>16&255,h>>8&255,h&255]);h=new Uint8Array(2+Y.length);h[0]=34;h[1]=Y.length;h.set(Y,2);Y=h.subarray(2);for(var L=t=t.length;L150))try{this.cache=new zdL(h,this.logger)}catch(t){this.reportError(new Su(22,"GBJ:init",t))}}; g.M.reportError=function(h){this.logger.NS(h.code);this.onError(h);return h}; var Cxp=function(h){return qG(function(t){if(!y3L(t))return!1;for(var Y=g.b(Object.entries(h)),L=Y.next();!L.done;L=Y.next()){var q=g.b(L.value);L=q.next().value;q=q.next().value;if(!(L in t)){if(q.Vte===!0)continue;return!1}if(!q(t[L]))return!1}return!0})}({Y0:function(h){return qG(function(t){return t instanceof h})}(yZ)},"");var PFD=(new Date).getTime();g.F(vm,j7);var GRv=mX(vm);G_3.prototype.getMetadata=function(){return this.metadata};K2.prototype.getMetadata=function(){return this.metadata}; K2.prototype.getStatus=function(){return this.status};aG.prototype.C=function(h,t){t=t===void 0?{}:t;return new G_3(h,this,t)}; aG.prototype.getName=function(){return this.name};var Q7y=new aG("/google.internal.waa.v1.Waa/Create",Hm,vm,function(h){return h.LC()},GRv);g.F(xs,j7);var kjp=new aG("/google.internal.waa.v1.Waa/GenerateIT",w5,xs,function(h){return h.LC()},mX(xs));var iXL=new Set(["SAPISIDHASH","APISIDHASH"]);g.F(EK,j7);EK.prototype.getValue=function(){var h=Pp(this,2);if(Array.isArray(h)||h instanceof j7)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return q7(this,2)};g.F(ks,j7);ks.prototype.getMessage=function(){return rb(this,2)}; var JOL=mX(ks);OK.prototype.qQ=function(h,t){h=="data"?this.S.push(t):h=="metadata"?this.X.push(t):h=="status"?this.U.push(t):h=="end"?this.W.push(t):h=="error"&&this.T.push(t);return this}; OK.prototype.removeListener=function(h,t){h=="data"?Ag(this.S,t):h=="metadata"?Ag(this.X,t):h=="status"?Ag(this.U,t):h=="end"?Ag(this.W,t):h=="error"&&Ag(this.T,t);return this}; OK.prototype.cancel=function(){this.G.abort()}; OK.prototype.cancel=OK.prototype.cancel;OK.prototype.removeListener=OK.prototype.removeListener;OK.prototype.on=OK.prototype.qQ;g.F(rOD,Error);g.W1(g.Sw,yNL);g.Sw.prototype.G=function(){var h=new IG(this.W,this.S);this.T&&h.setCredentialsMode(this.T);return h}; g.Sw.prototype.setCredentialsMode=function(h){this.T=h}; g.W1(IG,g.Vm);g.M=IG.prototype;g.M.open=function(h,t){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.x8=h;this.AQ=t;this.readyState=1;RG(this)}; g.M.send=function(h){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Y.signal.aborted)throw this.abort(),Error("Request was aborted.");this.G=!0;var t={headers:this.L,method:this.x8,credentials:this.X,cache:void 0,signal:this.Y.signal};h&&(t.body=h);(this.R0||g.D$).fetch(new Request(this.AQ,t)).then(this.HB.bind(this),this.pM.bind(this))}; g.M.abort=function(){this.response=this.responseText="";this.L=new Headers;this.status=0;this.Y.abort();this.S&&this.S.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,Bm(this));this.readyState=0}; g.M.HB=function(h){if(this.G&&(this.W=h,this.T||(this.status=this.W.status,this.statusText=this.W.statusText,this.T=h.headers,this.readyState=2,RG(this)),this.G&&(this.readyState=3,RG(this),this.G)))if(this.responseType==="arraybuffer")h.arrayBuffer().then(this.Cf.bind(this),this.pM.bind(this));else if(typeof g.D$.ReadableStream!=="undefined"&&"body"in h){this.S=h.body.getReader();if(this.U){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.C=new TextDecoder;pEc(this)}else h.text().then(this.DM.bind(this),this.pM.bind(this))}; g.M.WB=function(h){if(this.G){if(this.U&&h.value)this.response.push(h.value);else if(!this.U){var t=h.value?h.value:new Uint8Array(0);if(t=this.C.decode(t,{stream:!h.done}))this.response=this.responseText+=t}h.done?Bm(this):RG(this);this.readyState==3&&pEc(this)}}; g.M.DM=function(h){this.G&&(this.response=this.responseText=h,Bm(this))}; g.M.Cf=function(h){this.G&&(this.response=h,Bm(this))}; g.M.pM=function(){this.G&&Bm(this)}; g.M.setRequestHeader=function(h,t){this.L.append(h,t)}; g.M.getResponseHeader=function(h){return this.T?this.T.get(h.toLowerCase())||"":""}; g.M.getAllResponseHeaders=function(){if(!this.T)return"";for(var h=[],t=this.T.entries(),Y=t.next();!Y.done;)Y=Y.value,h.push(Y[0]+": "+Y[1]),Y=t.next();return h.join("\r\n")}; g.M.setCredentialsMode=function(h){this.X=h}; Object.defineProperty(IG.prototype,"withCredentials",{get:function(){return this.X==="include"}, set:function(h){this.setCredentialsMode(h?"include":"same-origin")}});g.mo.prototype.toString=function(){var h=[],t=this.X;t&&h.push(LE(t,rdL,!0),":");var Y=this.G;if(Y||t=="file")h.push("//"),(t=this.Y)&&h.push(LE(t,rdL,!0),"@"),h.push(g.rk(Y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y=this.S,Y!=null&&h.push(":",String(Y));if(Y=this.T)this.G&&Y.charAt(0)!="/"&&h.push("/"),h.push(LE(Y,Y.charAt(0)=="/"?cdl:uh8,!0));(Y=this.W.toString())&&h.push("?",Y);(Y=this.U)&&h.push("#",LE(Y,eNH));return h.join("")}; g.mo.prototype.resolve=function(h){var t=this.clone(),Y=!!h.X;Y?g.DR(t,h.X):Y=!!h.Y;Y?t.Y=h.Y:Y=!!h.G;Y?g.hS(t,h.G):Y=h.S!=null;var L=h.T;if(Y)g.tS(t,h.S);else if(Y=!!h.T){if(L.charAt(0)!="/")if(this.G&&!this.T)L="/"+L;else{var q=t.T.lastIndexOf("/");q!=-1&&(L=t.T.slice(0,q+1)+L)}q=L;if(q==".."||q==".")L="";else if(g.Jd(q,"./")||g.Jd(q,"/.")){L=uv(q,"/");q=q.split("/");for(var z=[],V=0;V1||z.length==1&&z[0]!="")&&z.pop(), L&&V==q.length&&z.push("")):(z.push(l),L=!0)}L=z.join("/")}else L=q}Y?t.T=L:Y=h.W.toString()!=="";Y?i3(t,h.W.clone()):Y=!!h.U;Y&&(t.U=h.U);return t}; g.mo.prototype.clone=function(){return new g.mo(this)}; var rdL=/[#\/\?@]/g,uh8=/[#\?:]/g,cdl=/[#\?]/g,xJn=/[#\?@]/g,eNH=/#/g;g.M=Y4.prototype;g.M.add=function(h,t){Vc(this);this.S=null;h=Nb(this,h);var Y=this.G.get(h);Y||this.G.set(h,Y=[]);Y.push(t);this.T=this.T+1;return this}; g.M.remove=function(h){Vc(this);h=Nb(this,h);return this.G.has(h)?(this.S=null,this.T=this.T-this.G.get(h).length,this.G.delete(h)):!1}; g.M.clear=function(){this.G=this.S=null;this.T=0}; g.M.isEmpty=function(){Vc(this);return this.T==0}; g.M.forEach=function(h,t){Vc(this);this.G.forEach(function(Y,L){Y.forEach(function(q){h.call(t,q,L,this)},this)},this)}; g.M.dA=function(){Vc(this);for(var h=Array.from(this.G.values()),t=Array.from(this.G.keys()),Y=[],L=0;L0?String(h[0]):t}; g.M.toString=function(){if(this.S)return this.S;if(!this.G)return"";for(var h=[],t=Array.from(this.G.keys()),Y=0;Y>>3;z.S!=1&&z.S!=2&&z.S!=15&&W$(z,V,l,"unexpected tag");z.G=1;z.T=0;z.W=0} function Y(H){z.W++;z.W==5&&H&240&&W$(z,V,l,"message length too long");z.T|=(H&127)<<(z.W-1)*7;H&128||(z.G=2,z.Y=0,typeof Uint8Array!=="undefined"?z.X=new Uint8Array(z.T):z.X=Array(z.T),z.T==0&&q())} function L(H){z.X[z.Y++]=H;z.Y==z.T&&q()} function q(){if(z.S<15){var H={};H[z.S]=z.X;z.C.push(H)}z.G=0} for(var z=this,V=h instanceof Array?h:new Uint8Array(h),l=0;l0?h:null};yc.prototype.isInputValid=function(){return this.G===null}; yc.prototype.oD=function(){return this.G}; yc.prototype.H6=function(){return!1}; yc.prototype.parse=function(h){this.G!==null&&AOp(this,h,"stream already broken");var t=null;try{var Y=this.S;Y.S||TD$(Y,h,"stream already broken");Y.G+=h;var L=Math.floor(Y.G.length/4);if(L==0)var q=null;else{try{var z=uhD(Y.G.slice(0,L*4))}catch(V){TD$(Y,Y.G,V.message)}Y.T+=L*4;Y.G=Y.G.slice(L*4);q=z}t=q===null?null:this.W.parse(q)}catch(V){AOp(this,h,V.message)}this.T+=h.length;return t};var pZ0={INIT:0,oC:1,ym:2,It:3,ML:4,LT:5,STRING:6,Ol:7,Yf:8,xo:9,o3:10,G0:11,wh:12,t1:13,h1:14,L5:15,Bl:16,s5:17,ws:18,wT:19,Vm:20};g.M=U8.prototype;g.M.isInputValid=function(){return this.X!=3}; g.M.oD=function(){return this.L}; g.M.done=function(){return this.X===2}; g.M.H6=function(){return!1}; g.M.parse=function(h){function t(){for(;X0;)if(C=h[X++], z.Y===4?z.Y=0:z.Y++,!C)break a;if(C==='"'&&!z.C){z.G=L();break}if(C==="\\"&&!z.C&&(z.C=!0,C=h[X++],!C))break;if(z.C)if(z.C=!1,C==="u"&&(z.Y=1),C=h[X++])continue;else break;l.lastIndex=X;C=l.exec(h);if(!C){X=h.length+1;break}X=C.index+1;C=h[C.index];if(!C)break}z.S+=X-d;continue;case H.xo:if(!C)continue;C==="r"?z.G=H.o3:CE(z,h,X);continue;case H.o3:if(!C)continue;C==="u"?z.G=H.G0:CE(z,h,X);continue;case H.G0:if(!C)continue;C==="e"?z.G=L():CE(z,h,X);continue;case H.wh:if(!C)continue;C==="a"?z.G=H.t1: CE(z,h,X);continue;case H.t1:if(!C)continue;C==="l"?z.G=H.h1:CE(z,h,X);continue;case H.h1:if(!C)continue;C==="s"?z.G=H.L5:CE(z,h,X);continue;case H.L5:if(!C)continue;C==="e"?z.G=L():CE(z,h,X);continue;case H.Bl:if(!C)continue;C==="u"?z.G=H.s5:CE(z,h,X);continue;case H.s5:if(!C)continue;C==="l"?z.G=H.ws:CE(z,h,X);continue;case H.ws:if(!C)continue;C==="l"?z.G=L():CE(z,h,X);continue;case H.wT:C==="."?z.G=H.Vm:CE(z,h,X);continue;case H.Vm:if("0123456789.eE+-".indexOf(C)!==-1)continue;else X--,z.S--,z.G= L();continue;default:CE(z,h,X)}}} function L(){var C=V.pop();return C!=null?C:H.oC} function q(C){z.T>1||(C||(C=y===-1?z.W+h.substring(W,X):h.substring(y,X)),z.AQ?z.U.push(C):z.U.push(JSON.parse(C)),y=X)} for(var z=this,V=z.x8,l=z.R0,H=pZ0,w=h.length,W=0,y=-1,X=0;X0?(U=z.U,z.U=[],U):null}return null};Mb.prototype.isInputValid=function(){return this.X===null}; Mb.prototype.oD=function(){return this.X}; Mb.prototype.H6=function(){return!1}; Mb.prototype.parse=function(h){function t(H){z.T=6;z.X="The stream is broken @"+z.G+"/"+V+". Error: "+H+". With input:\n";throw Error(z.X);} function Y(){z.S=new U8({Z1G:!0,mV:!0})} function L(H){if(H)for(var w=0;w1)&&t("extra status: "+H);z.U=!0;var w={};w[2]=H[0];z.W.push(w)}} for(var z=this,V=0;V0?(h=z.W,z.W=[],h):null};Fu.prototype.xr=function(){return this.G}; Fu.prototype.getStatus=function(){return this.X}; Fu.prototype.AQ=function(h){h=h.target;try{if(h==this.G)a:{var t=g.fm(this.G),Y=this.G.T,L=this.G.getStatus(),q=g.Tc(this.G);h=[];if(g.AH(this.G)instanceof Array){var z=g.AH(this.G);z.length>0&&z[0]instanceof Uint8Array&&(this.L=!0,h=z)}if(!(t<3||t==3&&!q&&h.length==0))if(L=L==200||L==206,t==4&&(Y==8?s8(this,7):Y==7?s8(this,8):L||s8(this,3)),this.T||(this.T=SEL(this.G),this.T==null&&s8(this,5)),this.X>2)jj(this);else{if(h.length>this.S){var V=h.length;Y=[];try{if(this.T.H6())for(var l=0;lthis.S){l=q.slice(this.S);this.S=q.length;try{var w=this.T.parse(l);w!=null&&this.W&&this.W(w)}catch(W){s8(this,5);jj(this);break a}}t==4?(q.length!= 0||this.L?s8(this,2):s8(this,4),jj(this)):s8(this,1)}}}catch(W){s8(this,6),jj(this)}};g.M=Il6.prototype;g.M.qQ=function(h,t){var Y=this.T[h];Y||(Y=[],this.T[h]=Y);Y.push(t);return this}; g.M.addListener=function(h,t){this.qQ(h,t);return this}; g.M.removeListener=function(h,t){var Y=this.T[h];Y&&g.bl(Y,t);(h=this.G[h])&&g.bl(h,t);return this}; g.M.once=function(h,t){var Y=this.G[h];Y||(Y=[],this.G[h]=Y);Y.push(t);return this}; g.M.j0P=function(h){var t=this.T.data;t&&Rdn(h,t);(t=this.G.data)&&Rdn(h,t);this.G.data=[]}; g.M.L$8=function(){switch(this.S.getStatus()){case 1:Zz(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Zz(this,"error");break;case 8:Zz(this,"close");break;case 2:Zz(this,"end")}};BD6.prototype.serverStreaming=function(h,t,Y,L){var q=this,z=h.substring(0,h.length-L.name.length);return giL(function(V){var l=V.qA,H=V.getMetadata(),w=DJL(q,!1);H=h6i(q,H,w,z+l.getName());var W=t1L(w,l.T,!0);V=l.G(V.dC);w.send(H,"POST",V);return W},this.rE).call(this,L.C(t,Y))};Yh1.prototype.create=function(h,t,Y){var L=this.G,q=this.T+"/$rpc/google.internal.waa.v1.Waa/Create";t=t||{};Y=Y===void 0?{}:Y;return OPb(L,q,h,t,Q7y,Y)};var LjL="://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(" "),qhL=/\bocr\b/;var V1L=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(h){throw h;}},{Fcz:!0, Yye:!0,d45:!1,J_8:gyC,jYx:Y0E,IRx:!1,Kc5:!1,kIb:!0,b1z:iH3,vM_:!1,om5:!1,YJz:!1});var ds=null,Qc=!1,srb=1,CJr=Symbol("SIGNAL"),FF={version:0,FvP:0,EJ:!1,QC:void 0,xn:void 0,Up:void 0,lr:0,pI:void 0,PR:void 0,PV:!1,xN:!1,kind:"unknown",C8:function(){return!1}, Dj:function(){}, oi:function(){}, H10:function(){}};var s4=Symbol("UNSET"),jA=Symbol("COMPUTING"),ZV=Symbol("ERRORED");Object.assign({},FF,{value:s4,EJ:!0,error:null,h6:oh,kind:"computed",C8:function(h){return h.value===s4||h.value===jA}, Dj:function(h){if(h.value===jA)throw Error("");var t=h.value;h.value=jA;var Y=HXb(h),L=!1;try{var q=h.uo();GU(null);L=t!==s4&&t!==ZV&&q!==ZV&&h.h6(t,q)}catch(z){q=ZV,h.error=z}finally{w6L(h,Y)}L?h.value=t:(h.value=q,h.version++)}});var UBn=Object.assign({},FF,{h6:oh,value:void 0,kind:"signal"});Object.assign({},FF,{value:s4,EJ:!0,error:null,h6:oh,kind:"linkedSignal",C8:function(h){return h.value===s4||h.value===jA}, Dj:function(h){if(h.value===jA)throw Error("");var t=h.value;h.value=jA;var Y=HXb(h);try{var L=h.source();var q=h.uo(L,t===s4||t===ZV?void 0:{source:h.MQi,value:t});h.MQi=L}catch(z){q=ZV,h.error=z}finally{w6L(h,Y)}t!==s4&&q!==ZV&&h.h6(t,q)?h.value=t:(h.value=q,h.version++)}});Object.assign({},FF,{xN:!0,PV:!1,oi:function(h){h.schedule!==null&&h.schedule(h.XwM)}, fu8:!1,NA8:function(){}});g.F(ej,g.Vm);ej.prototype.dispose=function(){window.removeEventListener("offline",this.S);window.removeEventListener("online",this.S);this.Bu.ou(this.X);delete ej.instance}; ej.prototype.zZ=function(){return this.G}; ej.prototype.WZ=function(){var h=this;this.X=this.Bu.yC(function(){var t;return g.k(function(Y){if(Y.T==1)return h.G?((t=window.navigator)==null?0:t.onLine)?Y.eM(3):g.K(Y,u3(h),3):g.K(Y,u3(h),3);h.WZ();g.Z$(Y)})},3E4)};pE.prototype.set=function(h,t){t=t===void 0?!0:t;0<=h&&h<52&&Number.isInteger(h)&&this.data[h]!==t&&(this.data[h]=t,this.G=-1)}; pE.prototype.get=function(h){return!!this.data[h]};var KE;g.W1(g.O8,g.O);g.M=g.O8.prototype;g.M.start=function(){this.stop();this.W=!1;var h=oii(this),t=dBD(this);h&&!t&&this.T.mozRequestAnimationFrame?(this.G=g.B6(this.T,"MozBeforePaint",this.S),this.T.mozRequestAnimationFrame(null),this.W=!0):this.G=h&&t?h.call(this.T,this.S):this.T.setTimeout(fCL(this.S),20)}; g.M.stop=function(){if(this.isActive()){var h=oii(this),t=dBD(this);h&&!t&&this.T.mozRequestAnimationFrame?Lm(this.G):h&&t?t.call(this.T,this.G):this.T.clearTimeout(this.G)}this.G=null}; g.M.isActive=function(){return this.G!=null}; g.M.J0=function(){this.W&&this.G&&Lm(this.G);this.G=null;this.U.call(this.X,g.H1())}; g.M.Gz=function(){this.stop();g.O8.aD.Gz.call(this)};g.W1(g.nE,g.O);g.M=g.nE.prototype;g.M.v4=0;g.M.Gz=function(){g.nE.aD.Gz.call(this);this.stop();delete this.G;delete this.T}; g.M.start=function(h){this.stop();this.v4=g.JH(this.S,h!==void 0?h:this.iM)}; g.M.stop=function(){this.isActive()&&g.D$.clearTimeout(this.v4);this.v4=0}; g.M.isActive=function(){return this.v4!=0}; g.M.oz=function(){this.v4=0;this.G&&this.G.call(this.T)};g.F(g.AS,g.O);g.M=g.AS.prototype;g.M.o1=function(h){this.S=arguments;this.yb||this.T?this.G=!0:Sj(this)}; g.M.stop=function(){this.yb&&(g.D$.clearTimeout(this.yb),this.yb=null,this.G=!1,this.S=null)}; g.M.pause=function(){this.T++}; g.M.resume=function(){this.T--;this.T||!this.G||this.yb||(this.G=!1,Sj(this))}; g.M.Gz=function(){g.O.prototype.Gz.call(this);this.stop()};g.Ih.prototype[Symbol.iterator]=function(){return this}; g.Ih.prototype.next=function(){var h=this.G.next();return{value:h.done?void 0:this.T.call(void 0,h.value),done:h.done}};g.W1(g.g$,g.Vm);g.M=g.g$.prototype;g.M.isPlaying=function(){return this.G==1}; g.M.isPaused=function(){return this.G==-1}; g.M.Y$=function(){this.f3("begin")}; g.M.aG=function(){this.f3("end")}; g.M.onFinish=function(){this.f3("finish")}; g.M.onStop=function(){this.f3("stop")}; g.M.f3=function(h){this.dispatchEvent(h)};var vpv=p7(function(){var h=g.y_("DIV"),t=g.lI?"-webkit":Tf?"-moz":null,Y="transition:opacity 1s linear;";t&&(Y+=t+"-transition:opacity 1s linear;");t=c3D({style:Y});if(h.nodeType===1&&/^(script|style)$/i.test(h.tagName))throw Error("");h.innerHTML=XL(t);return g.Af(h.firstChild,"transition")!=""});g.W1(Y1,g.g$);g.M=Y1.prototype;g.M.play=function(){if(this.isPlaying())return!1;this.Y$();this.f3("play");this.startTime=g.H1();this.G=1;if(vpv())return g.$9(this.T,this.U),this.S=g.JH(this.H6b,void 0,this),!0;this.Qm(!1);return!1}; g.M.H6b=function(){g.tu(this.T);ro3(this.T,this.C);g.$9(this.T,this.W);this.S=g.JH((0,g.Vv)(this.Qm,this,!1),this.X*1E3)}; g.M.stop=function(){this.isPlaying()&&this.Qm(!0)}; g.M.Qm=function(h){g.$9(this.T,"transition","");g.D$.clearTimeout(this.S);g.$9(this.T,this.W);this.endTime=g.H1();this.G=0;if(h)this.onStop();else this.onFinish();this.aG()}; g.M.Gz=function(){this.stop();Y1.aD.Gz.call(this)}; g.M.pause=function(){};var uXn={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};LS("Element","attributes")||LS("Node","attributes");LS("Element","innerHTML")||LS("HTMLElement","innerHTML");LS("Node","nodeName");LS("Node","nodeType");LS("Node","parentNode");LS("Node","childNodes");LS("HTMLElement","style")||LS("Element","style");LS("HTMLStyleElement","sheet");var a0L=Jo$("getPropertyValue"),xBD=Jo$("setProperty");LS("Element","namespaceURI")||LS("Node","namespaceURI");var Kj1={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var niL,Ars,OXb,kui,f0p;niL=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]");Ars=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.KIC=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.zb=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]");OXb=/^http:\/\/.*/;g.aXv=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");kui=/\s+/;f0p=/[\d\u06f0-\u06f9]/;Nz.prototype.tS=function(){return new lA(this.T())}; Nz.prototype[Symbol.iterator]=function(){return new HM(this.T())}; Nz.prototype.G=function(){return new HM(this.T())}; g.F(lA,g.FM);lA.prototype.next=function(){return this.T.next()}; lA.prototype[Symbol.iterator]=function(){return new HM(this.T)}; lA.prototype.G=function(){return new HM(this.T)}; g.F(HM,Nz);HM.prototype.next=function(){return this.S.next()};WM.prototype.clone=function(){return new WM(this.G,this.C,this.S,this.X,this.W,this.U,this.T,this.Y)}; WM.prototype.equals=function(h){return this.G==h.G&&this.C==h.C&&this.S==h.S&&this.X==h.X&&this.W==h.W&&this.U==h.U&&this.T==h.T&&this.Y==h.Y};Xg.prototype.clone=function(){return new Xg(this.start,this.end)};(function(){if(DEi){var h=/Windows NT ([0-9.]+)/;return(h=h.exec(g.xp()))?h[1]:"0"}return ht?(h=/1[0|1][_.][0-9_.]+/,(h=h.exec(g.xp()))?h[0].replace(/_/g,"."):"10"):g.A7?(h=/Android\s+([^\);]+)(\)|;)/,(h=h.exec(g.xp()))?h[1]:""):zPE||VEy||NLH?(h=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(h=h.exec(g.xp()))?h[1].replace(/_/g,"."):""):""})();var Tib=function(){if(g.Lw)return UB(/Firefox\/([0-9.]+)/);if(g.qz||g.kL||g.xk)return ZHn;if(g.wq){if(x2()||Eb()){var h=UB(/CriOS\/([0-9.]+)/);if(h)return h}return UB(/Chrome\/([0-9.]+)/)}if(g.Hq&&!x2())return UB(/Version\/([0-9.]+)/);if(fi||$T){if(h=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.xp()))return h[1]+"."+h[2]}else if(g.EZ)return(h=UB(/Android\s+([0-9.]+)/))?h:UB(/Version\/([0-9.]+)/);return""}();g.W1(g.Mz,g.O);g.M=g.Mz.prototype;g.M.subscribe=function(h,t,Y){var L=this.T[h];L||(L=this.T[h]=[]);var q=this.U;this.G[q]=h;this.G[q+1]=t;this.G[q+2]=Y;this.U=q+3;L.push(q);return q}; g.M.unsubscribe=function(h,t,Y){if(h=this.T[h]){var L=this.G;if(h=h.find(function(q){return L[q+1]==t&&L[q+2]==Y}))return this.bZ(h)}return!1}; g.M.bZ=function(h){var t=this.G[h];if(t){var Y=this.T[t];this.W!=0?(this.S.push(h),this.G[h+1]=function(){}):(Y&&g.bl(Y,h),delete this.G[h],delete this.G[h+1],delete this.G[h+2])}return!!t}; g.M.publish=function(h,t){var Y=this.T[h];if(Y){var L=Array(arguments.length-1),q=arguments.length,z;for(z=1;z0&&this.W==0)for(;Y=this.S.pop();)this.bZ(Y)}}return z!=0}return!1}; g.M.clear=function(h){if(h){var t=this.T[h];t&&(t.forEach(this.bZ,this),delete this.T[h])}else this.G.length=0,this.T={}}; g.M.Gz=function(){g.Mz.aD.Gz.call(this);this.clear();this.S.length=0};g.Fg.prototype.set=function(h,t){t===void 0?this.G.remove(h):this.G.set(h,g.aR(t))}; g.Fg.prototype.get=function(h){try{var t=this.G.get(h)}catch(Y){return}if(t!==null)try{return JSON.parse(t)}catch(Y){throw"Storage: Invalid value was encountered";}}; g.Fg.prototype.remove=function(h){this.G.remove(h)};g.W1(sB,g.Fg);sB.prototype.set=function(h,t){sB.aD.set.call(this,h,I0L(t))}; sB.prototype.T=function(h){h=sB.aD.get.call(this,h);if(h===void 0||h instanceof Object)return h;throw"Storage: Invalid value was encountered";}; sB.prototype.get=function(h){if(h=this.T(h)){if(h=h.data,h===void 0)throw"Storage: Invalid value was encountered";}else h=void 0;return h};g.W1(jl,sB);jl.prototype.set=function(h,t,Y){if(t=I0L(t)){if(Y){if(Y=Y.length)return g.yu;var q=Y.key(t++);if(h)return g.si(q);q=Y.getItem(q);if(typeof q!=="string")throw"Storage mechanism: Invalid value was encountered";return g.si(q)}; return L}; g.M.clear=function(){d$(this);this.G.clear()}; g.M.key=function(h){d$(this);return this.G.key(h)};g.W1(Gb,oo);g.W1(PJp,oo);g.W1(Q8,bA);Q8.prototype.set=function(h,t){this.T.set(this.G+h,t)}; Q8.prototype.get=function(h){return this.T.get(this.G+h)}; Q8.prototype.remove=function(h){this.T.remove(this.G+h)}; Q8.prototype.tS=function(h){var t=this.T[Symbol.iterator](),Y=this,L=new g.FM;L.next=function(){var q=t.next();if(q.done)return q;for(q=q.value;q.slice(0,Y.G.length)!=Y.G;){q=t.next();if(q.done)return q;q=q.value}return g.si(h?q.slice(Y.G.length):Y.T.get(q))}; return L};cM.prototype.getValue=function(){return this.T}; cM.prototype.clone=function(){return new cM(this.G,this.T)};g.M=uA.prototype;g.M.FX=function(h,t){var Y=this.G;Y.push(new cM(h,t));h=Y.length-1;t=this.G;for(Y=t[h];h>0;){var L=h-1>>1;if(t[L].G>Y.G)t[h]=t[L],h=L;else break}t[h]=Y}; g.M.remove=function(){var h=this.G,t=h.length,Y=h[0];if(!(t<=0)){if(t==1)h.length=0;else{h[0]=h.pop();h=0;t=this.G;for(var L=t.length,q=t[h];h>1;){var z=h*2+1,V=h*2+2;z=Vq.G)break;t[h]=t[z];h=z}t[h]=q}return Y.getValue()}}; g.M.TT=function(){for(var h=this.G,t=[],Y=h.length,L=0;L>>16&65535|0;for(var z;Y!==0;){z=Y>2E3?2E3:Y;Y-=z;do q=q+t[L++]|0,h=h+q|0;while(--z);q%=65521;h%=65521}return q|h<<16|0};for(var qu={},bY,npy=[],oa=0;oa<256;oa++){bY=oa;for(var fXy=0;fXy<8;fXy++)bY=bY&1?3988292384^bY>>>1:bY>>>1;npy[oa]=bY}qu=function(h,t,Y,L){Y=L+Y;for(h^=-1;L>>8^npy[(h^t[L])&255];return h^-1};var BM={};BM={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 fS=[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],Ap=[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],ZmD=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],HmL=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hT=Array(576);vM(hT);var tT=Array(60);vM(tT);var Tb=Array(512);vM(Tb);var nS=Array(256);vM(nS);var $1=Array(29);vM($1);var Sl=Array(30);vM(Sl);var F71,sRL,jRW,Mt$=!1;var HB;HB=[new lb(0,0,0,0,function(h,t){var Y=65535;for(Y>h.Ny-5&&(Y=h.Ny-5);;){if(h.iI<=1){zq(h);if(h.iI===0&&t===0)return 1;if(h.iI===0)break}h.cq+=h.iI;h.iI=0;var L=h.GO+Y;if(h.cq===0||h.cq>=L)if(h.iI=h.cq-L,h.cq=L,ib(h,!1),h.lV.jL===0)return 1;if(h.cq-h.GO>=h.gS-262&&(ib(h,!1),h.lV.jL===0))return 1}h.FX=0;if(t===4)return ib(h,!0),h.lV.jL===0?3:4;h.cq>h.GO&&ib(h,!1);return 1}), new lb(4,4,8,4,Vj),new lb(4,5,16,8,Vj),new lb(4,6,32,32,Vj),new lb(4,4,16,16,Nu),new lb(8,16,32,32,Nu),new lb(8,16,128,128,Nu),new lb(8,32,128,256,Nu),new lb(32,128,258,1024,Nu),new lb(32,258,258,4096,Nu)];var CFW={};CFW=function(){this.input=null;this.KJ=this.E8=this.Kl=0;this.output=null;this.QL=this.jL=this.FW=0;this.msg="";this.state=null;this.wp=2;this.SL=0};var bmD=Object.prototype.toString; w0.prototype.push=function(h,t){var Y=this.lV,L=this.options.chunkSize;if(this.ended)return!1;var q=t===~~t?t:t===!0?4:0;typeof h==="string"?Y.input=hjL(h):bmD.call(h)==="[object ArrayBuffer]"?Y.input=new Uint8Array(h):Y.input=h;Y.Kl=0;Y.E8=Y.input.length;do{Y.jL===0&&(Y.output=new pS.Hk(L),Y.FW=0,Y.jL=L);h=UFD(Y,q);if(h!==1&&h!==0)return this.aG(h),this.ended=!0,!1;if(Y.jL===0||Y.E8===0&&(q===4||q===2))if(this.options.to==="string"){var z=pS.IU(Y.output,Y.FW);t=z;z=z.length;if(z<65537&&(t.subarray&& OuL||!t.subarray))t=String.fromCharCode.apply(null,pS.IU(t,z));else{for(var V="",l=0;l0||Y.jL===0)&&h!==1);if(q===4)return(Y=this.lV)&&Y.state?(L=Y.state.status,L!==42&&L!==69&&L!==73&&L!==91&&L!==103&&L!==113&&L!==666?h=PM(Y,-2):(Y.state=null,h=L===113?PM(Y,-3):0)):h=-2,this.aG(h),this.ended=!0,h===0;q===2&&(this.aG(0),Y.jL=0);return!0}; w0.prototype.aG=function(h){h===0&&(this.result=this.options.to==="string"?this.chunks.join(""):pS.dc(this.chunks));this.chunks=[];this.err=h;this.msg=this.lV.msg};var yj="@@redux/INIT"+WB(),cH6="@@redux/REPLACE"+WB();var u3i=typeof Symbol==="function"&&Symbol.observable||"@@observable";var $ns=[0,RP3,-3,HP];g.F(vcL,j7);var Zkn=function(){var h=[0,Pls,BL1,zm,RP3,zm,-1,HP,RP3,HP,-1,Pls,HP,BL1,Vu,$ns,zm,-1,HP];return function(t,Y){var L={VJ:!0};Y&&Object.assign(L,Y);t=$rp(t,void 0,void 0,L);try{var q=new vcL,z=q.qD;e7(h)(z,t);var V=q}finally{t.free()}return V}}();var K71=-412482933;var mMr=new g.C$("adInfoDialogEndpoint");var u2W=new g.C$("adPingingEndpoint");var mkD=new g.C$("crossDeviceProgressCommand");var wU=new g.C$("actionCompanionAdRenderer");var $0=new g.C$("adActionInterstitialRenderer");var Th3=new g.C$("adDurationRemainingRenderer");var Aj=new g.C$("adHoverTextButtonRenderer");var BKc=new g.C$("adInfoDialogRenderer");var rC=new g.C$("adMessageRenderer");var SJ=new g.C$("adPreviewRenderer");var yx=new g.C$("adsEngagementPanelRenderer");var dTi=new g.C$("dismissablePanelTextPortraitImageRenderer");var bUL=new g.C$("adsEngagementPanelSectionListViewModel");var AdE=new g.C$("flyoutCtaRenderer");var WX=new g.C$("imageCompanionAdRenderer");var n4=new g.C$("instreamAdPlayerOverlayRenderer");var HL0=new g.C$("instreamSurveyAdBackgroundImageRenderer");var TL=new g.C$("instreamSurveyAdPlayerOverlayRenderer");var Jj=new g.C$("instreamSurveyAdRenderer"),$f=new g.C$("instreamSurveyAdSingleSelectQuestionRenderer"),fF=new g.C$("instreamSurveyAdMultiSelectQuestionRenderer"),dg=new g.C$("instreamSurveyAdAnswerRenderer"),Sw8=new g.C$("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var u0=new g.C$("instreamVideoAdRenderer");var IXC=new g.C$("textOverlayAdContentRenderer"),RNs=new g.C$("enhancedTextOverlayAdContentRenderer"),Bh8=new g.C$("imageOverlayAdContentRenderer");var f4=new g.C$("playerOverlayLayoutRenderer");var TW=new g.C$("videoInterstitialButtonedCenteredLayoutRenderer");var u0L=new g.C$("aboveFeedAdLayoutRenderer");var eIL=new g.C$("belowPlayerAdLayoutRenderer");var c2L=new g.C$("inPlayerAdLayoutRenderer");var KF=new g.C$("playerBytesAdLayoutRenderer");var nF=new g.C$("playerBytesSequenceItemAdLayoutRenderer");var On=new g.C$("playerUnderlayAdLayoutRenderer");var eJ=new g.C$("adIntroRenderer");var rU=new g.C$("playerBytesSequentialLayoutRenderer");var l1b=new g.C$("slidingTextPlayerOverlayRenderer");var pF=new g.C$("surveyTextInterstitialRenderer");var aB=new g.C$("videoAdTrackingRenderer");var sfb=new g.C$("videoInterstitialCenteredLayoutViewModel");var PvP=new g.C$("simpleAdBadgeRenderer");var Mt=new g.C$("skipAdRenderer"),mn8=new g.C$("skipButtonRenderer");var PX=new g.C$("adSlotRenderer");var En=new g.C$("squeezebackPlayerSidePanelRenderer");var DnP=new g.C$("timedPieCountdownRenderer");var Ba=new g.C$("adAvatarViewModel");var Pa=new g.C$("adBadgeViewModel");var mN=new g.C$("adButtonViewModel");var hOH=new g.C$("adDetailsLineViewModel");var te1=new g.C$("adDisclosureBannerViewModel");var i0s=new g.C$("adPodIndexViewModel");var g2v=new g.C$("imageBackgroundViewModel");var Yby=new g.C$("adGridCardCollectionViewModel");var Lg0=new g.C$("adGridCardTextViewModel");var qbv=new g.C$("adPreviewViewModel");var zO0=new g.C$("playerAdAvatarLockupCardButtonedViewModel");var Ve0=new g.C$("skipAdButtonViewModel");var Nkn=new g.C$("skipAdViewModel");var lj8=new g.C$("timedPieCountdownViewModel");var H03=new g.C$("visitAdvertiserLinkViewModel");var XC=new g.C$("bannerImageLayoutViewModel");var b0=new g.C$("topBannerImageTextIconButtonedLayoutViewModel");var oB=new g.C$("adsEngagementPanelLayoutViewModel");var kf=new g.C$("displayUnderlayTextGridCardsLayoutViewModel");g.as=new g.C$("browseEndpoint");var wzL=new g.C$("confirmDialogEndpoint");var xsD=new g.C$("commandContext");var w2b=new g.C$("rawColdConfigGroup");var HiL=new g.C$("rawHotConfigGroup");g.V0=new g.C$("commandExecutorCommand");g.F(xFi,j7);var j0i={zuP:0,m3i:1,Jn_:32,ski:61,nMi:67,hui:103,tm5:86,d3G:42,jk5:60,O35:62,BH5:73,i3m:76,LeM:88,MPi:90,aR_:99,kV5:98,qyG:100,b35:102,A_U:41,PC8:69,x4G:70,oM5:71,QJi:2,EQ5:27,ANDROID:3,rP5:54,yPG:14,bQe:91,vji:55,FlP:24,kZG:20,Ym0:18,JP5:21,jF5:104,sF5:30,hZU:29,Ll8:28,puG:101,M1z:34,Bki:36,dFG:38,IOS:5,S0i:15,fJM:92,g9Q:40,cVU:25,WdQ:17,zU5:19,QuG:64,E9z:66,ZIm:26,XiQ:22,pim:33,N45:68,CB_:35,Kd8:53,US5:37,eUM:39,aPQ:7,AnG:57,P45:43,oab:59,x3z:93,tFP:74,GVe:75,uGz:85,Rub:65,SVx:80,ga8:8,qVm:10, cn8:58,eu8:63,THx:72,wM_:23,RCM:11,TAx:13,DWz:12,naG:16,YV_:56,wuP:31,eqx:77,v3Q:84,IP8:87,kQi:89,F2m:94,q$8:95};g.F(Mu,j7);Mu.prototype.D8=function(){return rb(this,3)}; Mu.prototype.F1=function(){return rb(this,5)}; Mu.prototype.NQ=function(h){return pd(this,5,h)};g.F(Fk,j7);g.F(Ecp,j7);g.F(sy,j7);g.M=sy.prototype;g.M.getDeviceId=function(){return rb(this,6)}; g.M.HN=function(h){var t=Ym(this,9,Wp,3,!0);Au(t,h);return t[h]}; g.M.getPlayerType=function(){return cF(this,36)}; g.M.setHomeGroupInfo=function(h){return bm(this,Ecp,81,h)}; g.M.clearLocationPlayabilityToken=function(){return DB(this,89)};g.F(jR,j7);jR.prototype.getValue=function(){return rb(this,yr(this,NjL,2))}; var NjL=[2,3,4,5,6];g.F(ZF,j7);ZF.prototype.setTrackingParams=function(h){return DB(this,1,fXb(h,!1))};g.F(bb,j7);g.F(op,j7);op.prototype.HN=function(h){var t=Ym(this,5,yd,3,!0);Au(t,h);return t[h]};g.F(d0,j7);d0.prototype.getToken=function(){return e3(this,2)}; d0.prototype.setToken=function(h){return pd(this,2,h)};g.F(Gq,j7);Gq.prototype.setSafetyMode=function(h){return Kd(this,5,h)};g.F(Qj,j7);Qj.prototype.Ls=function(h){return bm(this,sy,1,h)};var RB=new g.C$("thumbnailLandscapePortraitRenderer");g.Wgy=new g.C$("changeEngagementPanelVisibilityAction");var GY$=new g.C$("continuationCommand");g.yav=new g.C$("openPopupAction");g.Gm=new g.C$("webCommandMetadata");var DxL=new g.C$("metadataBadgeRenderer");var dqL=new g.C$("signalServiceEndpoint");var dv=new g.C$("innertubeCommand");var NI6=new g.C$("loggingDirectives");var b2r={TSi:"EMBEDDED_PLAYER_MODE_UNKNOWN",GQz:"EMBEDDED_PLAYER_MODE_DEFAULT",RnQ:"EMBEDDED_PLAYER_MODE_PFP",unM:"EMBEDDED_PLAYER_MODE_PFL"};var d$L=new g.C$("channelThumbnailEndpoint");var oK1=new g.C$("embeddedPlayerErrorMessageRenderer");var sy3=new g.C$("embeddedPlayerOverlayVideoDetailsRenderer"),GSL=new g.C$("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),QyL=new g.C$("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var BU3=new g.C$("embedsInfoPanelRenderer");var Xz8=new g.C$("feedbackEndpoint");var Ur0=new g.C$("callToActionButtonViewModel");var Csv=new g.C$("interactionLoggingCommandMetadata");var MlD={FeP:"WEB_DISPLAY_MODE_UNKNOWN",Vmb:"WEB_DISPLAY_MODE_BROWSER",ynU:"WEB_DISPLAY_MODE_MINIMAL_UI",va8:"WEB_DISPLAY_MODE_STANDALONE",rni:"WEB_DISPLAY_MODE_FULLSCREEN"};g.F(r0,j7);r0.prototype.getPlayerType=function(){return cF(this,7)}; r0.prototype.Oz=function(){return rb(this,19)}; r0.prototype.setVideoId=function(h){return pd(this,19,h)};g.F(cB,j7);g.F(ub,j7);g.F(eR,j7); var MeE=[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];var Fgs=new g.C$("loggingContext");g.F(JT,j7);g.F(p$,j7);p$.prototype.Oz=function(){return e3(this,yr(this,Dk,1))}; p$.prototype.setVideoId=function(h){return wb(this,1,Dk,oV(h))}; p$.prototype.getPlaylistId=function(){return e3(this,yr(this,Dk,2))}; var Dk=[1,2];g.F(kcD,j7);var Hu=new g.C$("changeKeyedMarkersVisibilityCommand");var sE1=new g.C$("changeMarkersVisibilityCommand");var tKp=new g.C$("loadMarkersCommand");var jEH=new g.C$("suggestedActionDataViewModel");var $sc=new g.C$("timelyActionViewModel");var ftW=new g.C$("timelyActionsOverlayViewModel");var Dvr=new g.C$("productListItemRenderer");var Z00=new g.C$("shoppingOverlayRenderer");var jyn=new g.C$("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var b0l=new g.C$("adFeedbackEndpoint");var o2v=new g.C$("menuEndpoint");var Lfi=new g.C$("phoneDialerEndpoint");var gPi=new g.C$("sendSmsEndpoint");var Fup=new g.C$("copyTextEndpoint");var drP=new g.C$("shareEndpoint"),GDs=new g.C$("shareEntityEndpoint"),QE0=new g.C$("shareEntityServiceEndpoint"),raE=new g.C$("webPlayerShareEntityServiceEndpoint");g.r7=new g.C$("urlEndpoint");g.NZ=new g.C$("watchEndpoint");var caH=new g.C$("watchPlaylistEndpoint");g.uLy=new g.C$("offlineOrchestrationActionCommand");var uaL=new g.C$("compositeVideoOverlayRenderer");var eOL=new g.C$("miniplayerRenderer");var CBL=new g.C$("paidContentOverlayRenderer");var Ja3=new g.C$("playerMutedAutoplayOverlayRenderer"),pz8=new g.C$("playerMutedAutoplayEndScreenRenderer");var HFW=new g.C$("unserializedPlayerResponse"),v2v=new g.C$("unserializedPlayerResponse");var Kgl=new g.C$("playlistEditEndpoint");var Qu;g.IB=new g.C$("buttonRenderer");Qu=new g.C$("toggleButtonRenderer");var ZU3=new g.C$("counterfactualRenderer");var ajP=new g.C$("resolveUrlCommandMetadata");var xrH=new g.C$("modifyChannelNotificationPreferenceEndpoint");var cl6=new g.C$("pingingEndpoint");var E2E=new g.C$("unsubscribeEndpoint");g.x$=new g.C$("subscribeButtonRenderer");var kDh=new g.C$("subscribeEndpoint");var $m$=new g.C$("buttonViewModel");var ooi=new g.C$("qrCodeRenderer");var bKW={iIb:"LIVING_ROOM_APP_MODE_UNSPECIFIED",JVi:"LIVING_ROOM_APP_MODE_MAIN",dSb:"LIVING_ROOM_APP_MODE_KIDS",ju_:"LIVING_ROOM_APP_MODE_MUSIC",IJM:"LIVING_ROOM_APP_MODE_UNPLUGGED",Y0M:"LIVING_ROOM_APP_MODE_GAMING"};var Sn6=new g.C$("autoplaySwitchButtonRenderer");var xD,AIp,MJ1,gg$;xD=new g.C$("decoratedPlayerBarRenderer");AIp=new g.C$("chapteredPlayerBarRenderer");MJ1=new g.C$("multiMarkersPlayerBarRenderer");gg$=new g.C$("chapterRenderer");g.Bwc=new g.C$("markerRenderer");var VDp=new g.C$("decoratedPlayheadRenderer");var P0L=new g.C$("desktopOverlayConfigRenderer");var Gr$=new g.C$("engagementPanelSectionListRenderer");var Rqb=new g.C$("gatedActionsOverlayViewModel");var h7b=new g.C$("heatMarkerRenderer");var DY3=new g.C$("heatmapRenderer");var h8p=new g.C$("watchToWatchTransitionRenderer");var Zn1=new g.C$("playlistPanelRenderer");var O03=new g.C$("productUpsellSuggestedActionViewModel");var n20=new g.C$("suggestedActionTimeRangeTrigger"),fj8=new g.C$("suggestedActionsRenderer"),$rP=new g.C$("suggestedActionRenderer");var tDp=new g.C$("timedMarkerDecorationRenderer");var aAL=new g.C$("cipher");var wXp=new g.C$("playerVars");var Tk0=new g.C$("playerVars");var rg=g.D$.window,Aay,SbC,ap=(rg==null?void 0:(Aay=rg.yt)==null?void 0:Aay.config_)||(rg==null?void 0:(SbC=rg.ytcfg)==null?void 0:SbC.data_)||{};g.t3("yt.config_",ap);var Oy=[];var BBL=/^[\w.]*$/,AHL={q:!0,search_query:!0},TBi=String(Tq);var t7=new function(){var h=window.document;this.G=window;this.T=h}; g.t3("yt.ads_.signals_.getAdSignalsString",function(h){return AT(gj(h))});g.H1();var mF3="XMLHttpRequest"in g.D$?function(){return new XMLHttpRequest}:null;var Ij3="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.p(Ij3);var i2D={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"},WoD="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.p(Ij3)),N5c=!1,qKL=UA;g.F(Fx,yv);bZ.prototype.then=function(h,t,Y){return this.G?this.G.then(h,t,Y):this.S===1&&h?(h=h.call(Y,this.T))&&typeof h.then==="function"?h:dj(h):this.S===2&&t?(h=t.call(Y,this.T))&&typeof h.then==="function"?h:oF(h):this}; bZ.prototype.getValue=function(){return this.T}; bZ.prototype.$goog_Thenable=!0;var Gz=!1;var Ex=fi||$T;var jGW=/^([0-9\.]+):([0-9\.]+)$/;g.F(LY,yv);LY.prototype.name="BiscottiError";g.F(YI,yv);YI.prototype.name="BiscottiMissingError";var dfb={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},qM=null;var iHr=UL(["data-"]),vs6={};var ROC=0,zI=g.lI?"webkit":Tf?"moz":g.qz?"ms":g.xk?"o":"",Bk0=g.il("ytDomDomGetNextId")||function(){return++ROC}; g.t3("ytDomDomGetNextId",Bk0);var EsW={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};WY.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; WY.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; WY.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yS=g.D$.ytEventsEventsListeners||{};g.t3("ytEventsEventsListeners",yS);var nsn=g.D$.ytEventsEventsCounter||{count:0};g.t3("ytEventsEventsCounter",nsn);var Agc=p7(function(){var h=!1;try{var t=Object.defineProperty({},"passive",{get:function(){h=!0}}); window.addEventListener("test",null,t)}catch(Y){}return h}),fRb=p7(function(){var h=!1; try{var t=Object.defineProperty({},"capture",{get:function(){h=!0}}); window.addEventListener("test",null,t)}catch(Y){}return h});var cP;cP=window;g.FH=cP.ytcsi&&cP.ytcsi.now?cP.ytcsi.now:cP.performance&&cP.performance.timing&&cP.performance.now&&cP.performance.timing.navigationStart?function(){return cP.performance.timing.navigationStart+cP.performance.now()}:function(){return(new Date).getTime()};g.W1(F4,g.O);F4.prototype.L=function(h){h.G===void 0&&kJ1(h);var t=h.G;h.T===void 0&&kJ1(h);this.G=new g.TD(t,h.T)}; F4.prototype.HD=function(){return this.G||new g.TD}; F4.prototype.AQ=function(){if(this.G){var h=(0,g.FH)();if(this.W!=0){var t=this.U,Y=this.G,L=t.x-Y.x;t=t.y-Y.y;L=Math.sqrt(L*L+t*t)/(h-this.W);this.T[this.S]=Math.abs((L-this.X)/this.X)>.5?1:0;for(Y=t=0;Y<4;Y++)t+=this.T[Y]||0;t>=3&&this.C();this.X=L}this.W=h;this.U=this.G;this.S=(this.S+1)%4}}; F4.prototype.Gz=function(){g.lZ(this.Y);g.Ua(this.x8)};g.F(sa,g.O);sa.prototype.V=function(h,t,Y,L,q){Y=g.f$((0,g.Vv)(Y,L||this.G$));Y={target:h,name:t,callback:Y};var z;q&&Agc()&&(z={passive:!0});h.addEventListener(t,Y.callback,z);this.C.push(Y);return Y}; sa.prototype.W3=function(h){for(var t=0;t=T.Sm)||Q.G.version>=hr||Q.G.objectStoreNames.contains(E)||e.push(E)}H=e;if(H.length===0){d.eM(5);break}w=Object.keys(Y.options.MQ); W=l.objectStoreNames();if(Y.XY.options.version+1)throw X.close(),Y.S=!1,JS3(Y,U);return d.return(X);case 8:throw t(), y instanceof Error&&!g.wj("ytidb_async_stack_killswitch")&&(y.stack=y.stack+"\n"+V.substring(V.indexOf("\n")+1)),wI(y,Y.name,"",(C=Y.options.version)!=null?C:-1);}})} function t(){Y.G===L&&(Y.G=void 0)} var Y=this;if(!this.S)throw JS3(this);if(this.G)return this.G;var L,q={blocking:function(z){z.close()}, closed:t,cab:t,upgrade:this.options.upgrade};return this.G=L=h()};var aY=new vq("YtIdbMeta",{MQ:{databases:{Sm:1}},upgrade:function(h,t){t(1)&&g.j4(h,"databases",{keyPath:"actualName"})}});var nj,Ox=new function(){}(new function(){});new g.zJ;g.F(TY,vq);TY.prototype.T=function(h,t,Y){Y=Y===void 0?{}:Y;return(this.options.shared?n4L:OE3)(h,t,Object.assign({},Y))}; TY.prototype.delete=function(h){h=h===void 0?{}:h;return(this.options.shared?ASi:fzc)(this.name,h)};var L3l={},Izn=g.Aq("ytGcfConfig",{MQ:(L3l.coldConfigStore={Sm:1},L3l.hotConfigStore={Sm:1},L3l),shared:!1,upgrade:function(h,t){t(1)&&(g.QQ(g.j4(h,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.QQ(g.j4(h,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.F(IY,g.O);IY.prototype.Gz=function(){for(var h=g.b(this.T),t=h.next();!t.done;t=h.next()){var Y=this.G;t=Y.indexOf(t.value);t>=0&&Y.splice(t,1)}this.T.length=0;g.O.prototype.Gz.call(this)};hn.prototype.NQ=function(h){this.hotHashData=h;g.t3("yt.gcf.config.hotHashData",this.hotHashData||null)};var qOh=typeof TextEncoder!=="undefined"?new TextEncoder:null,aW3=qOh?function(h){return qOh.encode(h)}:function(h){h=g.de(h); for(var t=new Uint8Array(h.length),Y=0;Y=t?!1:!0}; g.M.tR=function(){var h=this;if(!bN(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Yj.RE("QUEUED",this.iR).then(function(t){t&&!h.jB(t,h.Ht)?h.Bu.yC(function(){return g.k(function(Y){if(Y.T==1)return t.id===void 0?Y.eM(2):g.K(Y,h.Yj.RU(t.id,h.iR),2);h.tR();g.Z$(Y)})}):h.Q2.zZ()&&h.kp()})};var Gg;var X23={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523};var Vrn={},tRn=g.Aq("ServiceWorkerLogsDatabase",{MQ:(Vrn.SWHealthLog={Sm:1},Vrn),shared:!0,upgrade:function(h,t){t(1)&&g.QQ(g.j4(h,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var ce={},zYr=0;var uN;Jn.prototype.requestComplete=function(h,t){t&&(this.T=!0);h=this.removeParams(h);this.G.get(h)||this.G.set(h,t)}; Jn.prototype.isEndpointCFR=function(h){h=this.removeParams(h);return(h=this.G.get(h))?!1:h===!1&&this.T?!0:null}; Jn.prototype.removeParams=function(h){return h.split("?")[0]}; Jn.prototype.removeParams=Jn.prototype.removeParams;Jn.prototype.isEndpointCFR=Jn.prototype.isEndpointCFR;Jn.prototype.requestComplete=Jn.prototype.requestComplete;Jn.getInstance=pN;g.F(ve,g.Vm);g.M=ve.prototype;g.M.zZ=function(){return this.G.zZ()}; g.M.Ef=function(h){this.G.G=h}; g.M.xC=function(){var h=window.navigator.onLine;return h===void 0?!0:h}; g.M.I5=function(){this.T=!0}; g.M.listen=function(h,t){return this.G.listen(h,t)}; g.M.AX=function(h){h=u3(this.G,h);h.then(function(t){g.wj("use_cfr_monitor")&&pN().requestComplete("generate_204",t)}); return h}; ve.prototype.sendNetworkCheckRequest=ve.prototype.AX;ve.prototype.listen=ve.prototype.listen;ve.prototype.enableErrorFlushing=ve.prototype.I5;ve.prototype.getWindowStatus=ve.prototype.xC;ve.prototype.networkStatusHint=ve.prototype.Ef;ve.prototype.isNetworkAvailable=ve.prototype.zZ;ve.getInstance=lF6;g.F(g.KN,g.Vm);g.KN.prototype.zZ=function(){var h=g.il("yt.networkStatusManager.instance.isNetworkAvailable");return h?h.bind(this.T)():!0}; g.KN.prototype.Ef=function(h){var t=g.il("yt.networkStatusManager.instance.networkStatusHint").bind(this.T);t&&t(h)}; g.KN.prototype.AX=function(h){var t=this,Y;return g.k(function(L){Y=g.il("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.T);return g.wj("skip_network_check_if_cfr")&&pN().isEndpointCFR("generate_204")?L.return(new Promise(function(q){var z;t.Ef(((z=window.navigator)==null?void 0:z.onLine)||!0);q(t.zZ())})):Y?L.return(Y(h)):L.return(!0)})};var a_;g.F(xC,o_);xC.prototype.writeThenSend=function(h,t){t||(t={});t=kC(h,t);g.Oa()||(this.G=!1);o_.prototype.writeThenSend.call(this,h,t)}; xC.prototype.sendThenWrite=function(h,t,Y){t||(t={});t=kC(h,t);g.Oa()||(this.G=!1);o_.prototype.sendThenWrite.call(this,h,t,Y)}; xC.prototype.sendAndWrite=function(h,t){t||(t={});t=kC(h,t);g.Oa()||(this.G=!1);o_.prototype.sendAndWrite.call(this,h,t)}; xC.prototype.awaitInitialization=function(){return this.S.promise};var XBL=g.D$.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.t3("ytNetworklessLoggingInitializationOptions",XBL);g.Oo.prototype.isReady=function(){!this.config_&&HSc()&&(this.config_=g.iN());return!!this.config_};var NSP,$C,An;NSP=g.D$.ytPubsubPubsubInstance||new g.Mz;$C=g.D$.ytPubsubPubsubSubscribedKeys||{};An=g.D$.ytPubsubPubsubTopicToKeys||{};g.Tg=g.D$.ytPubsubPubsubIsSynchronous||{};g.Mz.prototype.subscribe=g.Mz.prototype.subscribe;g.Mz.prototype.unsubscribeByKey=g.Mz.prototype.bZ;g.Mz.prototype.publish=g.Mz.prototype.publish;g.Mz.prototype.clear=g.Mz.prototype.clear;g.t3("ytPubsubPubsubInstance",NSP);g.t3("ytPubsubPubsubTopicToKeys",An);g.t3("ytPubsubPubsubIsSynchronous",g.Tg); g.t3("ytPubsubPubsubSubscribedKeys",$C);var jpr={};g.F(qe,g.O);qe.prototype.append=function(h){if(!this.T)throw Error("This does not support the append operation");h=h.gP();this.gP().appendChild(h)}; g.F(zd,qe);zd.prototype.gP=function(){return this.G};g.F(VG,g.O);VG.prototype.onTouchStart=function(h){this.C=!0;this.T=h.touches.length;this.G.isActive()&&(this.G.stop(),this.X=!0);h=h.touches;this.U=o5L(this,h)||h.length!=1;var t=h.item(0);this.U||!t?this.L=this.Y=Infinity:(this.Y=t.clientX,this.L=t.clientY);for(t=this.S.length=0;t=0)}if(t||h&&Math.pow(h.clientX-this.Y,2)+Math.pow(h.clientY-this.L,2)>25)this.W=!0}; VG.prototype.onTouchEnd=function(h){var t=h.changedTouches;t&&this.C&&this.T==1&&!this.W&&!this.X&&!this.U&&o5L(this,t)&&(this.AQ=h,this.G.start());this.T=h.touches.length;this.T===0&&(this.W=this.C=!1,this.S.length=0);this.X=!1};var Ne=Date.now().toString();var yG={};var sP=Symbol("injectionDeps");UP.prototype.toString=function(){return"InjectionToken("+this.name+")"}; QpL.prototype.resolve=function(h){return h instanceof Cx?jM(this,h.key,[],!0):jM(this,h,[])};var Zk;var oP=window;var rr=g.wj("web_enable_lifecycle_monitoring")&&dr()!==0,v51=g.wj("web_enable_lifecycle_monitoring");eY1.prototype.cancel=function(){for(var h=g.b(this.G),t=h.next();!t.done;t=h.next())t=t.value,t.jobId===void 0||t.DH||this.scheduler.ou(t.jobId),t.DH=!0;this.T.resolve()};g.M=c3.prototype;g.M.install=function(h){this.plugins.push(h);return this}; g.M.uninstall=function(){var h=this;g.OL.apply(0,arguments).forEach(function(t){t=h.plugins.indexOf(t);t>-1&&h.plugins.splice(t,1)})}; g.M.transition=function(h,t){var Y=this;rr&&cTb(this.state);var L=this.transitions.find(function(z){return Array.isArray(z.from)?z.from.find(function(V){return V===Y.state&&z.to===h}):z.from===Y.state&&z.to===h}); if(L){this.T&&(JTi(this.T),this.T=void 0);Ki6(this,h,t);this.state=h;rr&&Gd(this.state);L=L.action.bind(this);var q=this.plugins.filter(function(z){return z[h]}).map(function(z){return z[h]}); L(pBi(this,q),t)}else throw Error("no transition specified from "+this.state+" to "+h);}; g.M.QW5=function(h){var t=g.OL.apply(1,arguments);g.AG();for(var Y=g.b(h),L=Y.next(),q={};!L.done;q={Rv:void 0},L=Y.next())q.Rv=L.value,Y8b(function(z){return function(){eM(z.Rv.name);px(function(){return z.Rv.callback.apply(z.Rv,g.p(t))}); Jl(z.Rv.name)}}(q))}; g.M.zv8=function(h){var t=g.OL.apply(1,arguments),Y,L,q,z;return g.k(function(V){V.T==1&&(g.AG(),Y=g.b(h),L=Y.next(),q={});if(V.T!=3){if(L.done)return V.eM(0);q.u_=L.value;q.dG=void 0;z=function(l){return function(){eM(l.u_.name);var H=px(function(){return l.u_.callback.apply(l.u_,g.p(t))}); s1(H)?l.dG=g.wj("web_lifecycle_error_handling_killswitch")?H.then(function(){Jl(l.u_.name)}):H.then(function(){Jl(l.u_.name)},function(w){ukD(w); Jl(l.u_.name)}):Jl(l.u_.name)}}(q); Y8b(z);return q.dG?g.K(V,q.dG,3):V.eM(3)}q={u_:void 0,dG:void 0};L=Y.next();return V.eM(2)})}; g.M.ud=function(h){var t=g.OL.apply(1,arguments),Y=this,L=h.map(function(q){return{Mo:function(){eM(q.name);px(function(){return q.callback.apply(q,g.p(t))}); Jl(q.name)}, priority:uS(Y,q)}}); L.length&&(this.T=new eY1(L))}; g.li.Object.defineProperties(c3.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Kx;g.F(v3,c3);v3.prototype.X=function(h,t){var Y=this;this.G=g.$I(0,function(){Y.currentState==="application_navigating"&&Y.transition("none")},5E3); h(t==null?void 0:t.event)}; v3.prototype.U=function(h,t){this.G&&(g.JS.ou(this.G),this.G=null);h(t==null?void 0:t.event)};var za=[];g.t3("yt.logging.transport.getScrapedGelPayloads",function(){return za});aP.prototype.storePayload=function(h,t){h=xF(h);this.store[h]?this.store[h].push(t):(this.T={},this.store[h]=[t]);this.G++;g.wj("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return h}; aP.prototype.smartExtractMatchingEntries=function(h){if(!h.keys.length)return[];for(var t=kF(this,h.keys.splice(0,1)[0]),Y=[],L=0;L=0){L=!1;break a}}L=!0}L&&(t=Qy(t))&&this.dK(t)}}; g.M.ly=function(h){return h}; g.M.onTouchStart=function(h){this.R0.onTouchStart(h)}; g.M.onTouchMove=function(h){this.R0.onTouchMove(h)}; g.M.onTouchEnd=function(h){if(this.R0)this.R0.onTouchEnd(h)}; g.M.dK=function(h){this.layoutId?this.F5.executeCommand(h,this.layoutId):(h=new g.Ea("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ZD(h))}; g.M.createServerVe=function(h,t){this.api.createServerVe(h,this);this.api.setTrackingParams(h,t)}; g.M.logVisibility=function(h,t){this.api.hasVe(h)&&this.api.logVisibility(h,t,this.interactionLoggingClientData)}; g.M.Gz=function(){this.clear(null);this.W3(this.tQ);for(var h=g.b(this.Wm),t=h.next();!t.done;t=h.next())this.W3(t.value);g.iR.prototype.Gz.call(this)};g.F(o$,g7); o$.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);this.G=t;if(t.text==null&&t.icon==null)g.bc(Error("ButtonRenderer did not have text or an icon set."));else{switch(t.style||null){case "STYLE_UNKNOWN":h="ytp-ad-button-link";break;default:h=null}h!=null&&g.mS(this.element,h);t.text!=null&&(h=g.Lc(t.text),g.e$(h)||(this.element.setAttribute("aria-label",h),this.S=new g.iR({Z:"span",D:"ytp-ad-button-text",o0:h}),g.f(this,this.S),this.S.zz(this.element)));t.accessibilityData&&t.accessibilityData.accessibilityData&& t.accessibilityData.accessibilityData.label&&!g.e$(t.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",t.accessibilityData.accessibilityData.label);t.icon!=null&&(t=bR(t.icon,this.W),t!=null&&(this.T=new g.iR({Z:"span",D:"ytp-ad-button-icon",B:[t]}),g.f(this,this.T)),this.U?Ml(this.element,this.T.element,0):this.T.zz(this.element))}}; o$.prototype.clear=function(){this.hide()}; o$.prototype.onClick=function(h){g7.prototype.onClick.call(this,h);h=g.b(Kec(this));for(var t=h.next();!t.done;t=h.next())t=t.value,this.layoutId?this.F5.executeCommand(t,this.layoutId):g.ZD(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.F(d7,g.O);d7.prototype.Gz=function(){this.T&&g.Ua(this.T);this.G.clear();G6=null;g.O.prototype.Gz.call(this)}; d7.prototype.register=function(h,t){t&&this.G.set(h,t)}; var G6=null;g.F(cH,g7); cH.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);h=t.hoverText||null;t=t.button&&g.A(t.button,g.IB)||null;t==null?g.ZD(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new o$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,void 0,void 0,void 0,void 0,this.S),g.f(this,this.button),this.button.init(RA("button"),t,this.macros),h&&this.button.element.setAttribute("aria-label",g.Lc(h)),this.button.zz(this.element),this.L&&!g.P$(this.button.element, "ytp-ad-clickable")&&g.mS(this.button.element,"ytp-ad-clickable"),this.S&&g.mS(this.button.element,"ytp-ad-hover-text-button--clean-player"),h&&(this.T=new g.iR({Z:"div",D:"ytp-ad-hover-text-container"}),this.U&&(t=new g.iR({Z:"div",D:"ytp-ad-hover-text-callout"}),t.zz(this.T.element),g.f(this,t)),g.f(this,this.T),this.T.zz(this.element),t=QI(h),Ml(this.T.element,t,0)),this.show())}; cH.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();g7.prototype.hide.call(this)}; cH.prototype.show=function(){this.button&&this.button.show();g7.prototype.show.call(this)};g.F(eT,g7); eT.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);Y=(h=t.thumbnail)&&uR(h)||"";g.e$(Y)?Math.random()<.01&&g.bc(Error("Found AdImage without valid image URL")):(this.G?g.$9(this.element,"backgroundImage","url("+Y+")"):Nl(this.element,{src:Y}),Nl(this.element,{alt:h&&h.accessibility&&h.accessibility.label||""}),t&&t.adRendererCommands&&t.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; eT.prototype.clear=function(){this.hide()};g.F(Js,g7);g.M=Js.prototype;g.M.hide=function(){g7.prototype.hide.call(this);this.S&&this.S.focus()}; g.M.show=function(){this.S=document.activeElement;g7.prototype.show.call(this);this.W.focus()}; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);this.T=t;t.dialogMessages||t.title!=null?t.confirmLabel==null?g.ZD(Error("ConfirmDialogRenderer.confirmLabel was not set.")):t.cancelLabel==null?g.ZD(Error("ConfirmDialogRenderer.cancelLabel was not set.")):kIL(this,t):g.ZD(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.M.clear=function(){g.ZZ(this.G);this.hide()}; g.M.Yu=function(){this.hide()}; g.M.El=function(){var h=this.T.cancelEndpoint;h&&(this.layoutId?this.F5.executeCommand(h,this.layoutId):g.ZD(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.M.d2=function(){var h=this.T.confirmNavigationEndpoint||this.T.confirmEndpoint;h&&(this.layoutId?this.F5.executeCommand(h,this.layoutId):g.ZD(Error("Missing layoutId for confirm dialog.")));this.hide()};g.F(pc,g7);g.M=pc.prototype; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);this.S=t;if(t.defaultText==null&&t.defaultIcon==null)g.ZD(Error("ToggleButtonRenderer must have either text or icon set."));else if(t.defaultIcon==null&&t.toggledIcon!=null)g.ZD(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(t.style){switch(t.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":h="ytp-ad-toggle-button-default-style";break;default:h=null}h!=null&&g.mS(this.W,h)}h={};t.defaultText? (Y=g.Lc(t.defaultText),g.e$(Y)||(h.buttonText=Y,this.api.J().experiments.I0("a11y_h5_associate_survey_question")||this.G.setAttribute("aria-label",Y),this.api.J().experiments.I0("fix_h5_toggle_button_a11y")&&this.T.setAttribute("aria-label",Y))):g.ip(this.gU,!1);t.defaultTooltip&&(h.tooltipText=t.defaultTooltip,this.G.hasAttribute("aria-label")||this.T.setAttribute("aria-label",t.defaultTooltip));t.defaultIcon?(Y=bR(t.defaultIcon),this.updateValue("untoggledIconTemplateSpec",Y),t.toggledIcon?(this.x8= !0,Y=bR(t.toggledIcon),this.updateValue("toggledIconTemplateSpec",Y)):(g.ip(this.L,!0),g.ip(this.U,!1)),g.ip(this.G,!1)):g.ip(this.T,!1);g.WZ(h)||this.update(h);t.isToggled&&(g.mS(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(t.isToggled));vH(this);this.V(this.element,"change",this.Gk);this.show()}}; g.M.onClick=function(h){this.Wm.length>0&&(this.toggleButton(!this.isToggled()),this.Gk());g7.prototype.onClick.call(this,h)}; g.M.Gk=function(){g.iA(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var h=g.b(OY6(this,this.isToggled())),t=h.next();!t.done;t=h.next())t=t.value,this.layoutId?this.F5.executeCommand(t,this.layoutId):g.ZD(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);vH(this)}; g.M.clear=function(){this.hide()}; g.M.toggleButton=function(h){g.iA(this.W,"ytp-ad-toggle-button-toggled",h);this.G.checked=h;vH(this)}; g.M.isToggled=function(){return this.G.checked};g.F(Kc,sa);Kc.prototype.X=function(h){if(Array.isArray(h)){h=g.b(h);for(var t=h.next();!t.done;t=h.next())t=t.value,t instanceof nIL&&this.S(t)}};g.F(a$,g7);g.M=a$.prototype;g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);t.reasons?t.confirmLabel==null?g.ZD(Error("AdFeedbackRenderer.confirmLabel was not set.")):(t.cancelLabel==null&&g.bc(Error("AdFeedbackRenderer.cancelLabel was not set.")),t.title==null&&g.bc(Error("AdFeedbackRenderer.title was not set.")),AGD(this,t)):g.ZD(Error("AdFeedbackRenderer.reasons were not set."))}; g.M.clear=function(){CY(this.U);CY(this.L);this.W.length=0;this.hide()}; g.M.hide=function(){this.G&&this.G.hide();this.T&&this.T.hide();g7.prototype.hide.call(this);this.S&&this.S.focus()}; g.M.show=function(){this.G&&this.G.show();this.T&&this.T.show();this.S=document.activeElement;g7.prototype.show.call(this);this.U.focus()}; g.M.fp=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.M.uDP=function(){this.hide()}; x7.prototype.gP=function(){return this.G.element}; x7.prototype.getCommand=function(){return this.T}; x7.prototype.isChecked=function(){return this.S.checked};g.F(ES,Js);ES.prototype.Yu=function(h){Js.prototype.Yu.call(this,h);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ES.prototype.El=function(h){Js.prototype.El.call(this,h);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ES.prototype.d2=function(h){Js.prototype.d2.call(this,h);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.F(k7,g7);g.M=k7.prototype; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);this.U=t;if(t.dialogMessage==null&&t.title==null)g.ZD(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{t.confirmLabel==null&&g.bc(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(h=t.closeOverlayRenderer&&g.A(t.closeOverlayRenderer,g.IB)||null)this.G=new o$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.f(this,this.G),this.G.init(RA("button"),h,this.macros),this.G.zz(this.element);t.title&&(h=g.Lc(t.title),this.updateValue("title",h));if(t.adReasons)for(h=t.adReasons,Y=0;Y=this.Zx?(this.x8.hide(),this.lP=!0,this.publish("i")):this.S&&this.S.isTemplated()&&(h=Math.max(0,Math.ceil((this.Zx-h)/1E3)),h!=this.yG&&(fc(this.S,{TIME_REMAINING:String(h)}),this.yG=h)))}};g.F(BH,$7);g.M=BH.prototype; g.M.init=function(h,t,Y){$7.prototype.init.call(this,h,t,Y);if(t.image&&t.image.thumbnail)if(t.headline)if(t.description)if((h=t.actionButton&&g.A(t.actionButton,g.IB))&&h.navigationEndpoint){var L=this.api.getVideoData(2);if(L!=null)if(t.image&&t.image.thumbnail){var q=t.image.thumbnail.thumbnails;q!=null&&q.length>0&&g.e$(g.Ja(q[0].url))&&(q[0].url=L.profilePicture)}else g.bc(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(RA("ad-image"),t.image,Y);this.U.init(RA("ad-text"), t.headline,Y);this.W.init(RA("ad-text"),t.description,Y);this.T.init(RA("button"),h,Y);Y=k4(this.T.element);ah(this.T.element,Y+" This link opens in new tab");this.x8=h.navigationEndpoint;this.api.gj()||this.show();this.api.J().N("enable_larger_flyout_cta_on_desktop")&&(this.Tz("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Tz("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Tz("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Tz("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Tz("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Tz("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Tz("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Tk.bind(this));this.gU=t.startMs||0;T6(this)}else g.ZD(Error("FlyoutCtaRenderer has no valid action button."));else g.ZD(Error("FlyoutCtaRenderer has no description AdText."));else g.ZD(Error("FlyoutCtaRenderer has no headline AdText."));else g.bc(Error("FlyoutCtaRenderer has no image."))}; g.M.onClick=function(h){$7.prototype.onClick.call(this,h);this.api.pauseVideo();!g.sO(this.T.element,h.target)&&this.x8&&(this.layoutId?this.F5.executeCommand(this.x8,this.layoutId):g.ZD(Error("Missing layoutId for flyout cta.")))}; g.M.rV=function(){if(this.G){var h=this.G.getProgressState();(h&&h.current||this.Zx)&&1E3*h.current>=this.gU&&(As(this),g.hp(this.element,"ytp-flyout-cta-inactive"),this.T.element.removeAttribute("tabIndex"))}}; g.M.DD=function(){this.clear()}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Tk.bind(this))}; g.M.show=function(){this.T&&this.T.show();$7.prototype.show.call(this)}; g.M.hide=function(){this.T&&this.T.hide();$7.prototype.hide.call(this)}; g.M.Tk=function(h){h=="hidden"?this.show():this.hide()};g.F(PH,g7);g.M=PH.prototype; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);this.G=t;if(this.G.rectangle)for(h=this.G.likeButton&&g.A(this.G.likeButton,Qu),t=this.G.dislikeButton&&g.A(this.G.dislikeButton,Qu),this.S.init(RA("toggle-button"),h,Y),this.T.init(RA("toggle-button"),t,Y),this.V(this.element,"change",this.SI),this.W.show(100),this.show(),Y=g.b(this.G&&this.G.impressionCommands||[]),h=Y.next();!h.done;h=Y.next())h=h.value,this.layoutId?this.F5.executeCommand(h,this.layoutId):g.ZD(Error("Missing layoutId for instream user sentiment."))}; g.M.clear=function(){this.hide()}; g.M.hide=function(){this.S.hide();this.T.hide();g7.prototype.hide.call(this)}; g.M.show=function(){this.S.show();this.T.show();g7.prototype.show.call(this)}; g.M.SI=function(){QrD(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&this.api.jM("onYtShowToast",this.G.postMessageAction);this.W.hide()}; g.M.onClick=function(h){this.Wm.length>0&&this.SI();g7.prototype.onClick.call(this,h)};g.F(mU,g.O);g.M=mU.prototype;g.M.Gz=function(){this.reset();g.O.prototype.Gz.call(this)}; g.M.reset=function(){g.ZZ(this.W);this.U=!1;this.G&&this.G.stop();this.X.stop();this.S&&(this.S=!1,this.C.play())}; g.M.start=function(){this.reset();this.W.V(this.T,"mouseover",this.eI,this);this.W.V(this.T,"mouseout",this.gs,this);this.AQ&&(this.W.V(this.T,"focusin",this.eI,this),this.W.V(this.T,"focusout",this.gs,this));this.G?this.G.start():(this.U=this.S=!0,g.$9(this.T,{opacity:this.L}))}; g.M.eI=function(){this.S&&(this.S=!1,this.C.play());this.X.stop();this.G&&this.G.stop()}; g.M.gs=function(){this.U?this.X.start():this.G&&this.G.start()}; g.M.lU=function(){this.S||(this.S=!0,this.Y.play(),this.U=!0)};var Yx3=[new Dc("b.f_",!1,0),new Dc("j.s_",!1,2),new Dc("r.s_",!1,4),new Dc("e.h_",!1,6),new Dc("i.s_",!0,8),new Dc("s.t_",!1,10),new Dc("p.h_",!1,12),new Dc("s.i_",!1,14),new Dc("f.i_",!1,16),new Dc("a.b_",!1,18),new Dc("a.o_",!1),new Dc("g.o_",!1,22),new Dc("p.i_",!1,24),new Dc("p.m_",!1),new Dc("n.k_",!0,20),new Dc("i.f_",!1),new Dc("a.s_",!0),new Dc("m.c_",!1),new Dc("n.h_",!1,26),new Dc("o.p_",!1),new Dc("m.p_",!0,28),new Dc("o.a_",!1),new Dc("d.p_",!1),new Dc("e.i_",!1)].reduce(function(h,t){h[t.T]= t;return h},{});g.F(zT,$7);g.M=zT.prototype; g.M.init=function(h,t,Y){$7.prototype.init.call(this,h,t,Y);this.x8=t;(this.gU=qxD(this))&&g.bc(Error("hasAdControlInClickCommands_ is true."));if(!t||g.WZ(t))g.ZD(Error("SkipButtonRenderer was not specified or empty."));else if(!t.message||g.WZ(t.message))g.ZD(Error("SkipButtonRenderer.message was not specified or empty."));else if(h=this.U?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},t=bR(h),t==null?g.ZD(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+h.iconType+".")): (this.api.J().N("disable_touch_events_on_skip_button")&&(t.j=Object.assign({},t.j,{"aria-hidden":"true",Gum:"false"})),this.S=new g.iR({Z:"button",Ei:[this.U?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],B:[{Z:"span",D:this.U?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",B:[t]}]}),g.f(this,this.S),this.S.zz(this.W.element),this.T=new nc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,"ytp-ad-skip-button-text"),this.U&&this.T.element.classList.add("ytp-ad-skip-button-text-centered"), this.T.init(RA("ad-text"),this.x8.message,Y),g.f(this,this.T),Ml(this.S.element,this.T.element,0)),!this.api.J().N("disable_touch_events_on_skip_button")){var L=L===void 0?null:L;Y=this.api.J();!(this.Wm.length>0)&&Y.T&&(a9?0:"ontouchstart"in document.documentElement&&(mhL()||zv()))&&(this.W3(this.tQ),L&&this.W3(L),this.Wm=[this.V(this.element,"touchstart",this.onTouchStart,this),this.V(this.element,"touchmove",this.onTouchMove,this),this.V(this.element,"touchend",this.onTouchEnd,this)])}}; g.M.clear=function(){this.Zx.reset();this.hide()}; g.M.hide=function(){this.W.hide();this.T&&this.T.hide();As(this);$7.prototype.hide.call(this)}; g.M.onClick=function(h){if(this.S!=null){if(h){var t=h||window.event;t.returnValue=!1;t.preventDefault&&t.preventDefault()}var Y;if(ijc(h,{contentCpn:((Y=this.api.getVideoData(1))==null?void 0:Y.clientPlaybackNonce)||""})===0)this.api.jM("onAbnormalityDetected");else if($7.prototype.onClick.call(this,h),this.publish("j"),this.api.jM("onAdSkip"),this.lP||!this.gU)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.M.ly=function(h){if(!this.lP)return this.gU&&gP("SkipButton click commands not pruned while ALC exist"),h;var t,Y=(t=g.A(h,g.V0))==null?void 0:t.commands;if(!Y)return h;h=[];for(t=0;t=this.U&&zar(this,!0)};g.F(l9,o$);l9.prototype.init=function(h,t,Y){o$.prototype.init.call(this,h,t,Y);h=!1;t.text!=null&&(h=g.Lc(t.text),h=!g.e$(h));h?t.navigationEndpoint==null?g.bc(Error("No visit advertiser clickthrough provided in renderer,")):t.style!=="STYLE_UNKNOWN"?g.bc(Error("Button style was not a link-style type in renderer,")):this.show():g.bc(Error("No visit advertiser text was present in the renderer."))};g.F(HC,g7); HC.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);h=t.text;g.e$(Y7(h))?g.bc(Error("SimpleAdBadgeRenderer has invalid or empty text")):(h&&h.text&&(t=h.text,this.S&&!this.T&&(t=this.api.J(),t=h.text+" "+(t&&t.T?"\u2022":"\u00b7")),t={text:t,isTemplated:h.isTemplated},h.style&&(t.style=h.style),h.targetId&&(t.targetId=h.targetId),h=new nc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),h.init(RA("simple-ad-badge"),t,Y),h.zz(this.element),g.f(this,h)),this.show())}; HC.prototype.clear=function(){this.hide()};g.F(wP,BD);g.F(WC,g.PD);g.M=WC.prototype;g.M.w3=function(){return this.durationMs}; g.M.stop=function(){this.G&&this.tJ.W3(this.G)}; g.M.Kn=function(h){this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:h.current};this.publish("h")}; g.M.getProgressState=function(){return this.T}; g.M.jY=function(h){g.qK(h,2)&&this.publish("g")};g.F(y0,g.PD);g.M=y0.prototype;g.M.w3=function(){return this.durationMs}; g.M.start=function(){this.G||(this.G=!0,this.timer.start())}; g.M.stop=function(){this.G&&(this.G=!1,this.timer.stop())}; g.M.Kn=function(){this.GQ+=100;var h=!1;this.GQ>this.durationMs&&(this.GQ=this.durationMs,this.timer.stop(),h=!0);this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.GQ/1E3};this.publish("h");h&&this.publish("g")}; g.M.getProgressState=function(){return this.T};g.F(Cs,$7);g.M=Cs.prototype;g.M.init=function(h,t,Y){$7.prototype.init.call(this,h,t,Y);var L;if(t==null?0:(L=t.templatedCountdown)==null?0:L.templatedAdText){h=t.templatedCountdown.templatedAdText;if(!h.isTemplated){g.bc(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.T=new nc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);this.T.init(RA("ad-text"),h,{});this.T.zz(this.element);g.f(this,this.T)}this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){As(this);$7.prototype.hide.call(this)}; g.M.DD=function(){this.hide()}; g.M.rV=function(){if(this.G!=null){var h=this.G.getProgressState();if(h!=null&&h.current!=null&&this.T){var t=this.G instanceof WC?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:h.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof y0?h.seekableEnd:this.api.getDuration(2,!1);h=h.current;var Y,L,q=((Y=this.api.getVideoData())==null?0:(L=Y.JJ)==null?0:L.call(Y))?Math.max(t-h,0):t-h;fc(this.T,{FORMATTED_AD_DURATION_REMAINING:String(g.XA(q)), TIME_REMAINING:String(Math.ceil(q))})}}}; g.M.show=function(){T6(this);$7.prototype.show.call(this)};g.F(MK,nc);MK.prototype.onClick=function(h){nc.prototype.onClick.call(this,h);this.api.onAdUxClicked(this.componentType)};g.F(s6,g7);s6.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(h=t.content){g.jr(this.element,h);var Y,L;t=((Y=t.interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label)||h;this.element.setAttribute("aria-label",t)}else g.ZD(Error("AdSimpleAttributedString does not have text content"))}; s6.prototype.clear=function(){this.hide()}; s6.prototype.onClick=function(h){g7.prototype.onClick.call(this,h)};g.F(jp,g7); jp.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});(h=t.label)&&h.content&&!g.e$(h.content)?(this.adBadgeText.init(RA("ad-simple-attributed-string"),new FA(h)),(t=t.adPodIndex)&&t.content&&!g.e$(t.content)&&(this.G=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),this.G.zz(this.element),g.f(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(RA("ad-simple-attributed-string"),new FA(t))),this.element.classList.add(this.T?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.ZD(Error("No label is returned in AdBadgeViewModel."))}; jp.prototype.show=function(){this.adBadgeText.show();var h;(h=this.G)==null||h.show();g7.prototype.show.call(this)}; jp.prototype.hide=function(){this.adBadgeText.hide();var h;(h=this.G)==null||h.hide();g7.prototype.hide.call(this)};g.F(Z7,g7);Z7.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});(h=t.adPodIndex)&&h.content&&!g.e$(h.content)&&(this.G=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),this.G.zz(this.element),g.f(this,this.G),this.G.init(RA("ad-simple-attributed-string"),new FA(h)),t.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()}; Z7.prototype.show=function(){var h;(h=this.G)==null||h.show();g7.prototype.show.call(this)}; Z7.prototype.hide=function(){var h;(h=this.G)==null||h.hide();g7.prototype.hide.call(this)};g.F(b9,g7); b9.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(t!=null&&t.text){var Y;if(((Y=t.text)==null?0:Y.content)&&!g.e$(t.text.content)){this.G=new g.iR({Z:"div",D:"ytp-ad-disclosure-banner__text",o0:t.text.content});g.f(this,this.G);this.G.zz(this.element);var L,q;h=((L=t.interaction)==null?void 0:(q=L.accessibility)==null?void 0:q.label)||t.text.content;this.element.setAttribute("aria-label",h);var z;if((z=t.interaction)==null?0:z.onTap)this.T=new g.iR({Z:"div",D:"ytp-ad-disclosure-banner__chevron",B:[g.Nk()]}), g.f(this,this.T),this.T.zz(this.element);this.show()}}else g.ZD(Error("No banner text found in AdDisclosureBanner."))}; b9.prototype.clear=function(){this.hide()};g.F(GT,g.iR);GT.prototype.Kn=function(){var h=this.T.getProgressState(),t=h.seekableEnd;this.api.getPresentingPlayerType()===2&&(t=this.S?this.S/1E3:h.seekableEnd);this.progressBar.style.width=dP(new oD(h.seekableStart,t),h.current,0)*100+"%"}; GT.prototype.onStateChange=function(){g.SI(this.api.J())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.T.subscribe("h",this.Kn,this),this.Kn()):this.G!==-1&&(this.hide(),this.T.bZ(this.G),this.G=-1))};g.F(Q0,g7); Q0.prototype.init=function(h,t,Y,L){g7.prototype.init.call(this,h,t,Y);if(t.skipOrPreviewRenderer){if(h=g.A(t.skipOrPreviewRenderer,Mt))Y=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T,this.L),Y.zz(this.Ne),Y.init(RA("skip-button"),h,this.macros),g.f(this,Y);if(h=g.A(t.skipOrPreviewRenderer,Mt))var q=h.skipOffsetMilliseconds}t.brandInteractionRenderer&&(h=t.brandInteractionRenderer.brandInteractionRenderer,Y=new PH(this.api,this.layoutId,this.interactionLoggingClientData,this.F5), Y.zz(this.gU),Y.init(RA("instream-user-sentiment"),h,this.macros),g.f(this,Y));if(h=g.A(t,AdE))if(h=g.A(h,AdE))Y=new BH(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T,!!t.showWithoutLinkedMediaLayout),g.f(this,Y),Y.zz(this.U),Y.init(RA("flyout-cta"),h,this.macros);L=L&&L.videoAdDurationSeconds;t.adBadgeRenderer&&(Y=t.adBadgeRenderer,h=g.A(Y,Pa),h!=null?(Y=new jp(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!1),g.f(this,Y),Y.zz(this.G),Y.init(RA("ad-badge"), h,this.macros),this.S=Y.element):(h=Y.simpleAdBadgeRenderer,h==null&&(h={text:{text:"Ad",isTemplated:!1}}),Y=new HC(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0),g.f(this,Y),Y.zz(this.G),Y.init(RA("simple-ad-badge"),h,this.macros)));t.adPodIndex&&(h=g.A(t.adPodIndex,i0s),h!=null&&(Y=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,Y),Y.zz(this.G),Y.init(RA("ad-pod-index"),h)));t.adDurationRemaining&&!t.showWithoutLinkedMediaLayout&&(h=t.adDurationRemaining.adDurationRemainingRenderer, h==null&&(h={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),L=new Cs(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T,L,!1),g.f(this,L),L.zz(this.G),L.init(RA("ad-duration-remaining"),h,this.macros));t.adInfoRenderer&&(L=g.A(t.adInfoRenderer,Aj))&&(h=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.element,void 0,!1),g.f(this,h),this.S!==null?this.G.insertBefore(h.element,this.S.nextSibling):h.zz(this.G), h.init(RA("ad-info-hover-text-button"),L,this.macros));t.visitAdvertiserRenderer&&(h=g.A(t.visitAdvertiserRenderer,g.IB))&&(Y=Hjr(this)&&this.W?this.W:this.G)&&(L=new l9(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,L),L.zz(Y),L.init(RA("visit-advertiser"),h,this.macros),v$(L.element),h=k4(L.element),ah(L.element,h+" This link opens in new tab"));!(L=this.api.J())||g.Ti(L)||g.kk(L)||L.controlsType!="3"&&!L.disableOrganicUi||(q=new GT(this.api,this.T,q,!1),q.zz(this.Zx), g.f(this,q));t.adDisclosureBannerRenderer&&(t=g.A(t.adDisclosureBannerRenderer,te1))&&(q=new b9(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),q.zz(this.x8),q.init(RA("ad-disclosure-banner"),t),g.f(this,q));this.api.J().N("enable_updated_html5_player_focus_style")&&g.mS(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; Q0.prototype.clear=function(){this.hide()};g.u9.prototype.flush=function(h,t){h=h===void 0?[]:h;t=t===void 0?!1:t;if(g.wj("enable_client_streamz_web")){h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())Y=DQp(Y.value),this.G&&bm(Y,LX,2,this.G),Y={serializedIncrementBatch:g.Gv(Y.S())},g.tq("streamzIncremented",Y,{sendIsolatedPayload:t})}}; g.F(WPc,g.u9);var gXL=new Map;ep.prototype.set=function(h,t,Y){Y=Y!==void 0?Date.now()+Y:void 0;this.G.set(h,t,Y)}; ep.prototype.get=function(h){return this.G.get(h)}; ep.prototype.remove=function(h){this.G.remove(h)};var Xqb=null;var aD=null,xu=null,E6=null,sYL=null;g.t3("yt.www.ads.eventcache.getLastCompanionData",function(){return aD}); g.t3("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.t3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return xu}); g.t3("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return E6}); g.t3("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return sYL});var ZjD=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);ku.prototype.handleResponse=function(h,t){if(!t)throw Error("request needs to be passed into ConsistencyService");var Y,L;t=((Y=t.L1.context)==null?void 0:(L=Y.request)==null?void 0:L.consistencyTokenJars)||[];var q;(h=(q=h.responseContext)==null?void 0:q.consistencyTokenJar)&&this.replace(t,h)}; ku.prototype.replace=function(h,t){h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())delete this.G[Y.value.encryptedTokenJarContents];oLc(this,t)};var yfH=window.location.hostname.split(".").slice(-2).join("."),Kp;ns.getInstance=function(){Kp=g.il("yt.clientLocationService.instance");Kp||(Kp=new ns,g.t3("yt.clientLocationService.instance",Kp));return Kp}; g.M=ns.prototype; g.M.setLocationOnInnerTubeContext=function(h){h.client||(h.client={});if(this.G)h.client.locationInfo||(h.client.locationInfo={}),h.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),h.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),h.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),h.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.S||this.locationPlayabilityToken)h.client.locationPlayabilityToken=this.S|| this.locationPlayabilityToken}; g.M.handleResponse=function(h){var t;h=(t=h.responseContext)==null?void 0:t.locationPlayabilityToken;h!==void 0&&(this.locationPlayabilityToken=h,this.G=void 0,g.Ey("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=O6(this))&&this.localStorage.set("yt-location-playability-token",h,15552E3):g.rj("YT_CL",JSON.stringify({loctok:h}),15552E3,yfH,!0))}; g.M.clearLocationPlayabilityToken=function(h){h==="TVHTML5"?(this.localStorage=O6(this))&&this.localStorage.remove("yt-location-playability-token"):g.uZ("YT_CL");this.S=void 0;this.T!==-1&&(clearTimeout(this.T),this.T=-1)}; g.M.getCurrentPositionFromGeolocation=function(){var h=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var t=!1,Y=1E4;g.Ey("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,Y=15E3);return new Promise(function(L,q){navigator.geolocation.getCurrentPosition(function(z){h.G=z;L(z)},function(z){q(z)},{enableHighAccuracy:t, maximumAge:0,timeout:Y})})}; g.M.createUnpluggedLocationInfo=function(h){var t={};h=h.coords;if(h==null?0:h.latitude)t.latitudeE7=Math.floor(h.latitude*1E7);if(h==null?0:h.longitude)t.longitudeE7=Math.floor(h.longitude*1E7);if(h==null?0:h.accuracy)t.locationRadiusMeters=Math.round(h.accuracy);return t}; g.M.createLocationInfo=function(h){var t={};h=h.coords;if(h==null?0:h.latitude)t.latitudeE7=Math.floor(h.latitude*1E7);if(h==null?0:h.longitude)t.longitudeE7=Math.floor(h.longitude*1E7);return t};g.M=cqi.prototype;g.M.contains=function(h){return Object.prototype.hasOwnProperty.call(this.G,h)}; g.M.get=function(h){if(this.contains(h))return this.G[h]}; g.M.set=function(h,t){this.G[h]=t}; g.M.dA=function(){return Object.keys(this.G)}; g.M.remove=function(h){delete this.G[h]};$u.prototype.getModuleId=function(h){return h.serviceId.getModuleId()}; $u.prototype.get=function(h){a:{var t=this.mappings.get(h.toString());switch(t.type){case "mapping":h=t.value;break a;case "factory":t=t.value();this.mappings.set(h.toString(),{type:"mapping",value:t});h=t;break a;default:h=wk(t)}}return h}; $u.prototype.registerService=function(h,t){this.mappings.set(h.toString(),{type:"mapping",value:t});return h}; new $u;var aa={},uHp=(aa.WEB_UNPLUGGED="^unplugged/",aa.WEB_UNPLUGGED_ONBOARDING="^unplugged/",aa.WEB_UNPLUGGED_OPS="^unplugged/",aa.WEB_UNPLUGGED_PUBLIC="^unplugged/",aa.WEB_CREATOR="^creator/",aa.WEB_KIDS="^kids/",aa.WEB_EXPERIMENTS="^experiments/",aa.WEB_MUSIC="^music/",aa.WEB_REMIX="^music/",aa.WEB_MUSIC_EMBEDDED_PLAYER="^music/",aa.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",aa);Sp.prototype.X=function(h,t,Y){t=t===void 0?{}:t;Y=Y===void 0?LN:Y;var L={context:g.fs(h.clickTrackingParams,!1,this.W)};var q=this.T(h);if(q){this.G(L,q,t);var z;t=g.AZ(this.S());(q=(z=g.A(h.commandMetadata,g.Gm))==null?void 0:z.apiUrl)&&(t=q);z=UfW(ea(t));h=Object.assign({},{command:h},void 0);L={input:z,J8:J7(z),L1:L,config:h};L.config.sZ?L.config.sZ.identity=Y:L.config.sZ={identity:Y};return L}Y=new g.Ea("Error: Failed to create Request from Command.",h);g.ZD(Y)}; g.li.Object.defineProperties(Sp.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.F(ID,Sp);g.F(RD,ID);RD.prototype.X=function(){return{input:"/getDatasyncIdsEndpoint",J8:J7("/getDatasyncIdsEndpoint","GET"),L1:{}}}; RD.prototype.S=function(){return[]}; RD.prototype.T=function(){}; RD.prototype.G=function(){};var Xb8={},lEn=(Xb8.GET_DATASYNC_IDS=TT(RD),Xb8);var xP={},Ulv=(xP["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",xP["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",xP["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",xP["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",xP["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",xP["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",xP["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", xP["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",xP["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",xP["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",xP["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",xP["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",xP["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",xP["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",xP["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", xP["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",xP["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",xP["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",xP["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",xP["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",xP["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",xP["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", xP["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",xP.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",xP["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",xP["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",xP["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",xP["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",xP["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",xP["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", xP["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",xP["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",xP["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",xP["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",xP["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",xP["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",xP["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",xP["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",xP["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",xP["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",xP.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",xP["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",xP["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",xP["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",xP["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",xP["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",xP["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",xP["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",xP["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",xP["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",xP["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",xP["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",xP["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",xP["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",xP["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",xP["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",xP["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",xP["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",xP["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",xP["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",xP["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",xP["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", xP["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",xP["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",xP["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",xP["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",xP["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",xP["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",xP["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",xP["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",xP["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", xP["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",xP["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",xP["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",xP["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",xP["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",xP["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",xP["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",xP["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", xP),E4={},xqr=(E4.auto_search="LATENCY_ACTION_AUTO_SEARCH",E4.ad_to_ad="LATENCY_ACTION_AD_TO_AD",E4.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",E4.app_startup="LATENCY_ACTION_APP_STARTUP",E4.browse="LATENCY_ACTION_BROWSE",E4.cast_splash="LATENCY_ACTION_CAST_SPLASH",E4.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",E4.channels="LATENCY_ACTION_CHANNELS",E4.chips="LATENCY_ACTION_CHIPS",E4.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",E4.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", E4.editor="LATENCY_ACTION_EDITOR",E4.embed="LATENCY_ACTION_EMBED",E4.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",E4.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",E4.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",E4.explore="LATENCY_ACTION_EXPLORE",E4.favorites="LATENCY_ACTION_FAVORITES",E4.home="LATENCY_ACTION_HOME",E4.inboarding="LATENCY_ACTION_INBOARDING",E4.landing="LATENCY_ACTION_LANDING",E4.library="LATENCY_ACTION_LIBRARY",E4.live= "LATENCY_ACTION_LIVE",E4.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",E4.management="LATENCY_ACTION_MANAGEMENT",E4.mini_app="LATENCY_ACTION_MINI_APP_PLAY",E4.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",E4.onboarding="LATENCY_ACTION_ONBOARDING",E4.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",E4.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",E4.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",E4.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", E4.prebuffer="LATENCY_ACTION_PREBUFFER",E4.prefetch="LATENCY_ACTION_PREFETCH",E4.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",E4.profile_switcher="LATENCY_ACTION_LOGIN",E4.projects="LATENCY_ACTION_PROJECTS",E4.reel_watch="LATENCY_ACTION_REEL_WATCH",E4.results="LATENCY_ACTION_RESULTS",E4.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",E4.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",E4.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",E4.review="LATENCY_ACTION_REVIEW",E4.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",E4.search_ui="LATENCY_ACTION_SEARCH_UI",E4.search_suggest="LATENCY_ACTION_SUGGEST",E4.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",E4.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",E4.seek="LATENCY_ACTION_PLAYER_SEEK",E4.settings="LATENCY_ACTION_SETTINGS",E4.store="LATENCY_ACTION_STORE",E4.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",E4.tenx="LATENCY_ACTION_TENX",E4.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",E4.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", E4.watch="LATENCY_ACTION_WATCH",E4.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",E4["watch,watch7"]="LATENCY_ACTION_WATCH",E4["watch,watch7_html5"]="LATENCY_ACTION_WATCH",E4["watch,watch7ad"]="LATENCY_ACTION_WATCH",E4["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",E4.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",E4.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",E4.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",E4.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",E4.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",E4.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",E4.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",E4.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",E4);Object.assign(xqr,Ulv);g.F(Yo,qP);var mqb=new zg("aft-recorded",Yo);var CI1=g.D$.ytLoggingGelSequenceIdObj_||{};g.t3("ytLoggingGelSequenceIdObj_",CI1);var zr=g.D$.ytLoggingLatencyUsageStats_||{};g.t3("ytLoggingLatencyUsageStats_",zr);LU.prototype.tick=function(h,t,Y,L){VD(this,"tick_"+h+"_"+t)||g.tq("latencyActionTicked",{tickName:h,clientActionNonce:t},{timestamp:Y,cttAuthInfo:L})}; LU.prototype.info=function(h,t,Y){var L=Object.keys(h).join("");VD(this,"info_"+L+"_"+t)||(h=Object.assign({},h),h.clientActionNonce=t,g.tq("latencyActionInfo",h,{cttAuthInfo:Y}))}; LU.prototype.jspbInfo=function(h,t,Y){for(var L="",q=0;q=q.length?(t.append(q),h-=q.length):h?(t.append(new Uint8Array(q.buffer,q.byteOffset,h)),Y.append(new Uint8Array(q.buffer,q.byteOffset+h,q.length-h)),h=0):Y.append(q);return{CM:t,dV:Y}}; mD.prototype.isFocused=function(h){return h>=this.S&&h=64&&(this.U.set(h.subarray(0,64-this.T),this.T),t=64-this.T,this.T=0,tMD(this,this.U,0));for(;t+64<=Y;t+=64)tMD(this,h,t);t=this.start&&(h=2&&Y.ssdaiAdsConfig&&gP("Unexpected ad placement renderers length",h.slot,null,{length:L.length});var q;((q=Y.adSlots)==null?0:q.some(function(z){var V,l;return((V=g.A(z,PX))==null?void 0:(l=V.adSlotMetadata)==null?void 0:l.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||L.some(function(z){var V,l,H,w; return!!((V=z.renderer)==null?0:(l=V.linearAdSequenceRenderer)==null?0:(H=l.linearAds)==null?0:H.length)||!((w=z.renderer)==null||!w.instreamVideoAdRenderer)})||oU6(h)})}; OX.prototype.cH=function(){Nv$(this.G)};nV.prototype.M$=function(){var h=this;VzL(this.T,function(){var t=kV(h.slot.clientMetadata,"metadata_type_ad_break_request_data");return t.cueProcessedMs?h.G.get().fetch({Ow:t.getAdBreakUrl,bl:new g.aZ(t.Ww,t.cw),cueProcessedMs:t.cueProcessedMs}):h.G.get().fetch({Ow:t.getAdBreakUrl,bl:new g.aZ(t.Ww,t.cw)})})}; nV.prototype.cH=function(){Nv$(this.T)};fV.prototype.M$=function(){var h=this.slot.clientMetadata,t,Y=(t=this.slot.fulfilledLayout)!=null?t:kV(h,"metadata_type_fulfilled_layout");nFL(this.callback,this.slot,Y)}; fV.prototype.cH=function(){Dp(this.callback,this.slot,new P("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")};T4.prototype.build=function(h,t){return t.fulfilledLayout||$O(t,{q6:["metadata_type_fulfilled_layout"]})?new fV(h,t):this.S(h,t)};g.F(A8,T4); A8.prototype.S=function(h,t){if($O(t,{q6:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new OX(h,t,this.G,this.T,this.L6,this.uP,this.fb,this.QG,this.xe);if($O(t,{q6:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new nV(h,t,this.G,this.T,this.L6,this.uP);throw new P("Unsupported slot with type: "+t.slotType+" and client metadata: "+Oc(t.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.F(S6,T4);S6.prototype.S=function(h,t){throw new P("Unsupported slot with type: "+t.slotType+" and client metadata: "+Oc(t.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.M=dXp.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(h){if(h.layoutId!==this.layout.layoutId)this.callback.M0(this.slot,h,new xV("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 t=kV(h.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.bI(this.slot,h),fNb(this.S, this.slot,t)):gP("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,h)}}; g.M.sY=function(h,t){h.layoutId!==this.layout.layoutId?this.callback.M0(this.slot,h,new xV("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.R4(this.slot,h,t),QAL(this),rVL(this))};g.F(mt,g.PD);g.M=mt.prototype;g.M.V4=function(){return this.T.slot}; g.M.VG=function(){return this.T.layout}; g.M.init=function(){this.S.get().addListener(this)}; g.M.release=function(){this.S.get().removeListener(this);this.dispose()}; g.M.SA=function(){}; g.M.R_=function(){}; g.M.u8=function(){}; g.M.fM=function(){}; g.M.startRendering=function(h){var t=this;PV(this.T,h,function(){return void t.QJ()})}; g.M.QJ=function(){this.S.get().QJ(this.G)}; g.M.sY=function(h,t){var Y=this;PV(this.T,h,function(){var L=Y.S.get();QIL(L,Y.G,3);Y.G=[];Y.callback.R4(Y.slot,h,t)})}; g.M.Gz=function(){this.S.Ui()||this.S.get().removeListener(this);g.PD.prototype.Gz.call(this)}; g.li.Object.defineProperties(mt.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.T.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.T.layout}}});zW.prototype.iZ=function(h,t){t=t===void 0?!1:t;var Y=(this.S.get(h)||[]).concat();if(t=t&&JVL(h)){var L=this.S.get(t);L&&Y.push.apply(Y,g.p(L))}lf(this,h,Y);this.G.add(h);t&&this.G.add(t)}; zW.prototype.rP=function(h,t){t=t===void 0?!1:t;if(!this.G.has(h)){var Y=t&&JVL(h);Y&&(t=!this.G.has(Y));this.iZ(h,t)}};g.F(K2L,BD);g.F(XI,mt);g.M=XI.prototype;g.M.G3=function(h,t){gA("ads-engagement-panel-layout",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),g.A(this.VG().renderingContent,oB),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(t,Y,L,q,z){return new K2L(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};g.F(xXc,BD);g.F(Uu,mt);g.M=Uu.prototype;g.M.G3=function(h,t){gA("banner-image",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),g.A(this.VG().renderingContent,XC),this.callback,"metadata_type_banner_image_layout_view_model",function(t,Y,L,q,z){return new xXc(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};g.F(C4,BD);g.F(M0,mt);g.M=M0.prototype;g.M.G3=function(h,t){gA("action-companion",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),g.A(this.VG().renderingContent,wU),this.callback,"metadata_type_action_companion_ad_renderer",function(t,Y,L,q,z){return new C4(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){t.layoutId===this.layout.layoutId?this.dU.rP("impression"):this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};g.F(Ot1,BD);g.F(FI,mt);g.M=FI.prototype;g.M.G3=function(h,t){gA("image-companion",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),g.A(this.VG().renderingContent,WX),this.callback,"metadata_type_image_companion_ad_renderer",function(t,Y,L,q,z){return new Ot1(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){t.layoutId===this.layout.layoutId?this.dU.rP("impression"):this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};g.F(fDL,BD);g.F(jQ,mt);g.M=jQ.prototype;g.M.G3=function(h,t){gA("shopping-companion",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(t,Y,L,q,z){return new fDL(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){t.layoutId===this.layout.layoutId?this.dU.rP("impression"):this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};g.F(bf,mt);g.M=bf.prototype;g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(t,Y,L,q,z){return new C4(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(){}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)}; g.M.G3=function(){};g.M=Rrr.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){this.QG.get().addListener(this);this.QG.get().Vd.push(this);var h=kV(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=kV(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Y0(this.layout.AC)&&z8(this.uI.get(),this.layout.layoutId,{nz:t,kq:h,listener:this})}; g.M.release=function(){this.QG.get().removeListener(this);ZJ1(this.QG.get(),this);Y0(this.layout.AC)&&Vs(this.uI.get(),this.layout.layoutId)}; g.M.startRendering=function(h){this.callback.bI(this.slot,h)}; g.M.sY=function(h,t){AcW(this.uP.get())&&!this.G&&(this.dU.rP("abandon"),this.G=!0);this.callback.R4(this.slot,h,t)}; g.M.VP=function(h){switch(h.id){case "part2viewed":this.dU.rP("start");this.dU.rP("impression");break;case "videoplaytime25":this.dU.rP("first_quartile");break;case "videoplaytime50":this.dU.rP("midpoint");break;case "videoplaytime75":this.dU.rP("third_quartile");break;case "videoplaytime100":AcW(this.uP.get())?this.G||(this.dU.rP("complete"),this.G=!0):this.dU.rP("complete");yw(this.dU)&&wA(this.dU,Infinity,!0);SDL(this.uP.get())&&ZA(this.T,Infinity,!0);break;case "engagedview":yw(this.dU)||this.dU.rP("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:gP("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.sL=function(){}; g.M.Em=function(){}; g.M.yP=function(){}; g.M.onFullscreenToggled=function(){}; g.M.H2=function(){}; g.M.lM=function(){}; g.M.J4=function(h){SDL(this.uP.get())&&ZA(this.T,h*1E3,!1);yw(this.dU)&&wA(this.dU,h*1E3,!1)}; g.M.Fn=function(){}; g.M.N5=function(){this.dU.rP("active_view_measurable")}; g.M.Cl=function(){this.dU.rP("active_view_viewable")}; g.M.X0=function(){this.dU.rP("active_view_fully_viewable_audible_half_duration")}; g.M.Uf=function(){this.dU.rP("audio_measurable")}; g.M.fl=function(){this.dU.rP("audio_audible")};g.F(oQ,mt);g.M=oQ.prototype;g.M.init=function(){mt.prototype.init.call(this);var h=kV(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t={adsClientData:this.layout.X6};this.G.push(new wP(h,this.layout.layoutId,kV(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),t,!0))}; g.M.Sz=function(){this.W||this.QG.get().resumeVideo(1)}; g.M.startRendering=function(h){mt.prototype.startRendering.call(this,h);UU(this.QG.get(),"ad-showing");this.callback.bI(this.slot,h);this.X.qB=this}; g.M.sY=function(h,t){mt.prototype.sY.call(this,h,t);C5(this.QG.get(),"ad-showing");tB(this.X,this)}; g.M.G3=function(h){switch(h){case "ad-info-icon-button":(this.W=this.QG.get().b4(1))||this.QG.get().pauseVideo();break;case "visit-advertiser":this.QG.get().pauseVideo()}}; g.M.Gz=function(){mt.prototype.Gz.call(this)};g.F(dA,BD);g.F(GW,mt);g.M=GW.prototype;g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(t,Y,L,q,z){return new dA(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(){}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)}; g.M.G3=function(){};g.F(Qw,BD);g.F(rA,mt);rA.prototype.init=function(){mt.prototype.init.call(this);this.G.push(new Qw(g.A(this.layout.renderingContent,kf),this.layout.layoutId,{adsClientData:this.layout.X6}))}; rA.prototype.G3=function(){fn(this.W.get(),this.X)&&te(this.fb.get(),3)}; rA.prototype.startRendering=function(h){mt.prototype.startRendering.call(this,h);this.callback.bI(this.slot,h)}; rA.prototype.Gz=function(){mt.prototype.Gz.call(this)};g.F(cR,BD);g.F(uf,mt);uf.prototype.init=function(){mt.prototype.init.call(this);var h=g.A(this.layout.renderingContent,$0)||kV(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),t=D2(this.dU);this.G.push(new cR(h,t,this.layout.layoutId,{adsClientData:this.layout.X6},!0,!0))}; uf.prototype.startRendering=function(h){mt.prototype.startRendering.call(this,h);this.callback.bI(this.slot,h)}; uf.prototype.G3=function(h,t){if(t===this.layout.layoutId)switch(h){case "skip-button":var Y;(h=(Y=kV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&h.BG(this.V4(),this.layout)}}; uf.prototype.Gz=function(){mt.prototype.Gz.call(this)};Je.prototype.build=function(h,t,Y,L){if(eQ(L,{q6:["metadata_type_ad_break_response_data"],vZ:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new dXp(h,Y,L,this.T,this.S,this.G);throw new xV("Unsupported layout with type: "+L.layoutType+" and client metadata: "+Oc(L.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.F(mXn,BD);g.F(p4,mt);g.M=p4.prototype;g.M.G3=function(h,t){gA("ads-engagement-panel",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),g.A(this.VG().renderingContent,yx),this.callback,"metadata_type_ads_engagement_panel_renderer",function(t,Y,L,q,z){return new mXn(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){t.layoutId===this.layout.layoutId?this.dU.rP("impression"):this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};g.F(vR,mt);g.M=vR.prototype;g.M.G3=function(h,t){gA("top-banner-image-text-icon-buttoned",h,this.U.get().x3,this.fb.get(),this.W,this.X,this.V4(),this.VG(),t)}; g.M.startRendering=function(h){he(this.dU,this.V4(),this.VG(),g.A(this.VG().renderingContent,b0),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(t,Y,L,q,z){return new dA(t,Y,L,q,z)},this.G); mt.prototype.startRendering.call(this,h)}; g.M.bI=function(h,t){this.X===t.layoutId&&(this.W===null?this.W=this.fb.get().uZ():gP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.Gz=function(){Pn(this.LZ(),this);mt.prototype.Gz.call(this)};tTL.prototype.build=function(h,t,Y,L){if(eQ(L,DXb())||g.A(L.renderingContent,yx)!==void 0)return new p4(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,kar())||g.A(L.renderingContent,wU)!==void 0)return new M0(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,nUL())||g.A(L.renderingContent,WX)!==void 0)return new FI(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,$X$()))return new jQ(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,IDD()))return new bf(h,Y,L,this.q_,this.fb,this.LZ, this.uI,this.G);if(eQ(L,EUL())||g.A(L.renderingContent,XC)!==void 0)return new Uu(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,hS$())||g.A(L.renderingContent,b0)!==void 0)return new vR(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,BvL()))return new GW(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);if(eQ(L,aDL())||g.A(L.renderingContent,oB)!==void 0)return new XI(h,Y,L,this.q_,this.fb,this.LZ,this.uI,this.G);throw new xV("Unsupported layout with type: "+L.layoutType+" and client metadata: "+ Oc(L.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};ic3.prototype.build=function(h,t,Y,L){if(eQ(L,{q6:["metadata_type_linked_player_bytes_layout_id"],vZ:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new rA(h,Y,L,this.q_,this.fb,this.G);throw new xV("Unsupported layout with type: "+L.layoutType+" and client metadata: "+Oc(L.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.M=g7i.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(h){h.layoutId!==this.layout.layoutId?this.callback.M0(this.slot,h,new xV("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.bI(this.slot,h),this.dU.rP("impression"),YG(this.mG,h,"normal"))}; g.M.sY=function(h,t){h.layoutId!==this.layout.layoutId?this.callback.M0(this.slot,h,new xV("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.R4(this.slot,h,t)};g.M=LU3.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(h){h.layoutId!==this.layout.layoutId?this.callback.M0(this.slot,h,new xV("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.bI(this.slot,h),this.dU.rP("impression"),YG(this.mG,h,"normal"))}; g.M.sY=function(h,t){h.layoutId!==this.layout.layoutId?this.callback.M0(this.slot,h,new xV("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.R4(this.slot,h,t)};K4.prototype.build=function(h,t,Y,L){if(!this.uP.get().K.J().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(eQ(L,YSn()))return new g7i(h,Y,L,this.fb,this.mG)}else if(eQ(L,{q6:[],vZ:["LAYOUT_TYPE_FORECASTING"]}))return new LU3(h,Y,L,this.fb,this.mG);throw new xV("Unsupported layout with type: "+L.layoutType+" and client metadata: "+Oc(L.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.F(VTc,BD);g.F(aQ,mt);g.M=aQ.prototype;g.M.init=function(){mt.prototype.init.call(this);var h=g.A(this.layout.renderingContent,f4)||kV(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),t={adsClientData:this.layout.X6};this.G.push(new VTc(h,kV(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,t))}; g.M.Sz=function(){this.W||this.QG.get().resumeVideo(2)}; g.M.startRendering=function(h){mt.prototype.startRendering.call(this,h);this.callback.bI(this.slot,h);this.X.qB=this}; g.M.sY=function(h,t){mt.prototype.sY.call(this,h,t);tB(this.X,this)}; g.M.G3=function(h,t){if(!ry(this.uP.get(),"stop_handling_click_for_non_rendering_overlay_layout")||t===this.layout.layoutId){if(fn(this.U.get(),this.C))switch(h){case "visit-advertiser-link":te(this.fb.get(),3)}switch(h){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.QG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.QG.get().b4(2))||this.QG.get().pauseVideo();break; case "visit-advertiser-link":this.QG.get().pauseVideo();N7L(this).dO();break;case "skip-button":if(h=N7L(this),this.layout.renderingContent&&!vn(this.layout.clientMetadata,"metadata_type_dai")||!h||!h.IR){var Y;(h=(Y=kV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&h.BG(this.V4(),this.layout)}else gP("Requesting to skip by LegacyPlayerBytes when components enabled"),h.r9(this.V4(),this.layout)}}}; g.M.Gz=function(){mt.prototype.Gz.call(this)};g.F(x0,mt);g.M=x0.prototype;g.M.init=function(){mt.prototype.init.call(this);var h=g.A(this.layout.renderingContent,n4)||kV(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t={adsClientData:this.layout.X6},Y;(Y=!!this.layout.renderingContent)||(Y=Eu(this),Y=!(Y&&Y.IR));this.G.push(new wP(h,this.layout.layoutId,kV(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),t,Y))}; g.M.Sz=function(){this.W||this.QG.get().resumeVideo(2)}; g.M.startRendering=function(h){mt.prototype.startRendering.call(this,h);this.callback.bI(this.slot,h);this.X.qB=this}; g.M.sY=function(h,t){mt.prototype.sY.call(this,h,t);tB(this.X,this)}; g.M.G3=function(h,t){if(!this.uP||!ry(this.uP.get(),"stop_handling_click_for_non_rendering_overlay_layout")||t===this.layout.layoutId){if(fn(this.U.get(),this.C))switch(h){case "visit-advertiser":te(this.fb.get(),3)}switch(h){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.QG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.QG.get().b4(2))||this.QG.get().pauseVideo();break; case "visit-advertiser":this.QG.get().pauseVideo();Eu(this).dO();break;case "skip-button":if(h=Eu(this),this.layout.renderingContent&&!vn(this.layout.clientMetadata,"metadata_type_dai")||!h||!h.IR){var Y;(h=(Y=kV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&h.BG(this.V4(),this.layout)}else gP("Requesting to skip by LegacyPlayerBytes"),h.r9(this.V4(),this.layout)}}}; g.M.Gz=function(){mt.prototype.Gz.call(this)};g.F(HcL,BD);g.F(k0,mt);g.M=k0.prototype;g.M.startRendering=function(h){var t=this;PV(this.T,h,function(){t.G.push(new HcL(kV(t.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),h.layoutId,h.X6));t.QJ();t.callback.bI(t.slot,h);g.R(qd(t.QG.get(),1),512)&&t.callback.M0(t.V4(),t.VG(),new xV("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.M.lM=function(){}; g.M.H2=function(h){if(h.state.isError()){var t;this.callback.M0(this.V4(),this.VG(),new xV("A player error happened during adNotify",{playerErrorCode:(t=h.state.rk)==null?void 0:t.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.M.onFullscreenToggled=function(){}; g.M.Em=function(){}; g.M.yP=function(){}; g.M.sL=function(){}; g.M.onVolumeChange=function(){}; g.M.VP=function(){}; g.M.Fn=function(){}; g.M.G3=function(){};g.F(WUW,BD);g.F(Ou,mt);Ou.prototype.init=function(){mt.prototype.init.call(this);var h=g.A(this.layout.renderingContent,TW),t=D2(this.dU);this.G.push(new WUW(h,t,this.layout.layoutId,{adsClientData:this.layout.X6}))}; Ou.prototype.startRendering=function(h){mt.prototype.startRendering.call(this,h);this.callback.bI(this.slot,h)}; Ou.prototype.G3=function(h,t){if(t===this.layout.layoutId)switch(h){case "skip-button":var Y;(h=(Y=kV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&h.BG(this.V4(),this.layout)}}; Ou.prototype.Gz=function(){mt.prototype.Gz.call(this)};ysi.prototype.build=function(h,t,Y,L){if(h=Ae(h,Y,L,this.q_,this.QG,this.fb,this.T,this.G,this.uP))return h;throw new xV("Unsupported layout with type: "+L.layoutType+" and client metadata: "+Oc(L.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.M=RQ.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){this.QG.get().addListener(this);this.QG.get().Vd.push(this);if(this.layout.renderingContent){var h=this.Dx.get();h=rt(h,1).eD/1E3}else h=kV(this.layout.clientMetadata,"metadata_type_video_length_seconds");var t=g.A(this.layout.renderingContent,aB),Y=t?L4(t.pings):kV(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");t=t?er$(t.pings):kV(this.layout.clientMetadata,"metadata_type_active_view_identifier");Y0(this.layout.AC)&&z8(this.uI.get(),this.layout.layoutId, {nz:Y,kq:h,listener:this,zc:t})}; g.M.release=function(){this.QG.get().removeListener(this);ZJ1(this.QG.get(),this);Y0(this.layout.AC)&&Vs(this.uI.get(),this.layout.layoutId)}; g.M.startRendering=function(h){this.callback.bI(this.slot,h)}; g.M.sY=function(h,t){BR(this,"abandon");this.callback.R4(this.slot,h,t)}; g.M.VP=function(h){switch(h.id){case "part2viewed":this.dU.rP("start");this.dU.rP("impression");break;case "videoplaytime25":this.dU.rP("first_quartile");break;case "videoplaytime50":this.dU.rP("midpoint");break;case "videoplaytime75":this.dU.rP("third_quartile");break;case "videoplaytime100":BR(this,"complete");yw(this.dU)&&wA(this.dU,Infinity,!0);break;case "engagedview":yw(this.dU)||this.dU.rP("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:gP("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.sL=function(){}; g.M.Em=function(){}; g.M.yP=function(){}; g.M.onFullscreenToggled=function(){}; g.M.H2=function(h){this.G||(g.qK(h,4)&&!g.qK(h,2)?HR(this.dU,"pause"):Ls(h,4)<0&&!(Ls(h,2)<0)&&HR(this.dU,"resume"))}; g.M.lM=function(){}; g.M.J4=function(h){yw(this.dU)&&wA(this.dU,h*1E3,!1)}; g.M.Fn=function(){BR(this,"swipe")}; g.M.N5=function(){this.dU.rP("active_view_measurable")}; g.M.Cl=function(){this.dU.rP("active_view_viewable")}; g.M.X0=function(){this.dU.rP("active_view_fully_viewable_audible_half_duration")}; g.M.Uf=function(){this.dU.rP("audio_measurable")}; g.M.fl=function(){this.dU.rP("audio_audible")};XHL.prototype.build=function(h,t,Y,L){if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.A(L.renderingContent,aB)!==void 0)return new RQ(h,Y,L,this.QG,this.fb,this.uP,this.uI,this.Dx);t=["metadata_type_ad_placement_config"];for(var q=g.b(Vw()),z=q.next();!z.done;z=q.next())t.push(z.value);if(eQ(L,{q6:t,vZ:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return Y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new RQ(h,Y,L,this.QG,this.fb,this.uP,this.uI,this.Dx):new Rrr(h,Y,L,this.QG,this.fb, this.Zs,this.uP,this.uI);throw new xV("Unsupported layout with type: "+L.layoutType+" and client metadata: "+Oc(L.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var hy={contentCpn:"",Dn:new Map};dkL.prototype.hQ=function(h,t){var Y={};t=Object.assign({},t,(Y.cc=this.q0.gV(),Y));this.q0.K.Pm(h,t)};var K3E,$P; K3E={OQ0:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",nv8:"AUTHENTICATION_MALFORMED",a3i:"AUTHENTICATION_MISSING",xWe:"BAD_REQUEST",eRm:"CAST_SESSION_DEVICE_MISMATCHED",cFm:"CAST_SESSION_VIDEO_MISMATCHED",WGQ:"CAST_TOKEN_EXPIRED",zR8:"CAST_TOKEN_FAILED",QT5:"CAST_TOKEN_MALFORMED",Ev0:"CGI_PARAMS_MALFORMED",ZLU:"CGI_PARAMS_MISSING",bL_:"DEVICE_FALLBACK",W2i:"GENERIC_WITH_LINK_AND_CPN",znb:"ERROR_HDCP",Qfx:"LICENSE",ZNM:"VIDEO_UNAVAILABLE",NS5:"FORMAT_UNAVAILABLE",HNm:"GEO_FAILURE", wIx:"HTML5_AUDIO_RENDERER_ERROR",tkx:"GENERIC_WITHOUT_LINK",hnM:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",L25:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Mfe:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",q0z:"HTML5_SPS_UMP_STATUS_REJECTED",T48:"INVALID_DRM_MESSAGE",hq5:"PURCHASE_NOT_FOUND",Lxe:"PURCHASE_REFUNDED",xy0:"RENTAL_EXPIRED",gDP:"RETRYABLE_ERROR",KkQ:"SERVER_ERROR",Hq5:"SIGNATURE_EXPIRED",kTz:"STOPPED_BY_ANOTHER_PLAYBACK",YW0:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",dye:"STREAMING_NOT_ALLOWED", Jj8:"STREAM_LICENSE_NOT_FOUND",tU5:"TOO_MANY_REQUESTS",hQP:"TOO_MANY_REQUESTS_WITH_LINK",Lk0:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Mm0:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",fP5:"VIDEO_FORBIDDEN",U3b:"VIDEO_NOT_FOUND",Tne:"BROWSER_OR_EXTENSION_ERROR"};$P={}; g.SB=($P.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.",$P.DEVICE_FALLBACK="Sorry, this video is not available on this device.",$P.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",$P.LICENSE="Sorry, there was an error licensing this video.",$P.VIDEO_UNAVAILABLE= "Video unavailable",$P.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",$P.GEO_FAILURE="This video isn't available in your country.",$P.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",$P.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",$P.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",$P.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", $P.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",$P.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",$P.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",$P.PURCHASE_NOT_FOUND="This video requires payment.",$P.PURCHASE_REFUNDED="This video's purchase has been refunded.",$P.RENTAL_EXPIRED="This video's rental has expired.",$P.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",$P.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",$P.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",$P.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",$P.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",$P.SERVER_ERROR="There was an internal server error. Please try again later.",$P.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",$P.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",$P.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",$P.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",$P.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",$P.TOO_MANY_REQUESTS="Please log in to watch this video.", $P.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",$P.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",$P.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",$P.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",$P.VIDEO_FORBIDDEN="Access to this video is forbidden.",$P.VIDEO_NOT_FOUND="This video can not be found.",$P.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",$P);var aP3;var xlP=g.xp(),E9s=xlP.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!E9s||E9s.length<2)aP3=void 0;else{var kf0=xlP.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);aP3=kf0&&kf0.length===6?Number(kf0[5].replace("_",".")):0}var DG=aP3,nq=DG>=0;g.F(g.UF,sa);g.UF.prototype.V=function(h,t,Y,L,q){return sa.prototype.V.call(this,h,t,Y,L,q)};var Tm={},pk=(Tm.FAIRPLAY="fairplay",Tm.PLAYREADY="playready",Tm.WIDEVINE="widevine",Tm.CLEARKEY=null,Tm.FLASHACCESS=null,Tm.UNKNOWN=null,Tm.WIDEVINE_CLASSIC=null,Tm);CA.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var AB={},xQ=(AB.WIDTH={name:"width",video:!0,valid:640,zT:99999},AB.HEIGHT={name:"height",video:!0,valid:360,zT:99999},AB.FRAMERATE={name:"framerate",video:!0,valid:30,zT:9999},AB.BITRATE={name:"bitrate",video:!0,valid:3E5,zT:2E9},AB.EOTF={name:"eotf",video:!0,valid:"bt709",zT:"catavision"},AB.CHANNELS={name:"channels",video:!1,valid:2,zT:99},AB.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",zT:"invalidformat"},AB.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", zT:"nope"},AB.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",zT:"av99.0.05M.08"},AB.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",zT:"invalid"},AB.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",zT:"false"},AB);var O7C=["h","H"],n90=["9","("],fPP=["9h","(h"],$lv=["8","*"],TS0=["a","A"],Afn=["o","O"],SOy=["m","M"],IPy=["mac3","MAC3"],Rwh=["meac3","MEAC3"],SA={},aoL=(SA.h=O7C,SA.H=O7C,SA["9"]=n90,SA["("]=n90,SA["9h"]=fPP,SA["(h"]=fPP,SA["8"]=$lv,SA["*"]=$lv,SA.a=TS0,SA.A=TS0,SA.o=Afn,SA.O=Afn,SA.m=SOy,SA.M=SOy,SA.mac3=IPy,SA.MAC3=IPy,SA.meac3=Rwh,SA.MEAC3=Rwh,SA),BSC=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Z4i=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var D={},b_=(D["0"]="f",D["160"]="h",D["133"]="h",D["134"]="h",D["135"]="h",D["136"]="h",D["137"]="h",D["264"]="h",D["266"]="h",D["138"]="h",D["298"]="h",D["299"]="h",D["304"]="h",D["305"]="h",D["214"]="h",D["216"]="h",D["374"]="h",D["375"]="h",D["140"]="a",D["141"]="a",D["327"]="sa",D["258"]="m",D["380"]="mac3",D["328"]="meac3",D["161"]="H",D["142"]="H",D["143"]="H",D["144"]="H",D["222"]="H",D["223"]="H",D["145"]="H",D["224"]="H",D["225"]="H",D["146"]="H",D["226"]="H",D["227"]="H",D["147"]="H",D["384"]= "H",D["376"]="H",D["385"]="H",D["377"]="H",D["149"]="A",D["261"]="M",D["381"]="MAC3",D["329"]="MEAC3",D["598"]="9",D["278"]="9",D["242"]="9",D["243"]="9",D["244"]="9",D["775"]="9",D["776"]="9",D["777"]="9",D["778"]="9",D["779"]="9",D["780"]="9",D["781"]="9",D["782"]="9",D["783"]="9",D["247"]="9",D["248"]="9",D["353"]="9",D["355"]="9",D["356"]="9",D["271"]="9",D["577"]="9",D["313"]="9",D["579"]="9",D["272"]="9",D["302"]="9",D["303"]="9",D["407"]="9",D["408"]="9",D["308"]="9",D["315"]="9",D["330"]= "9h",D["331"]="9h",D["332"]="9h",D["333"]="9h",D["334"]="9h",D["335"]="9h",D["336"]="9h",D["337"]="9h",D["338"]="so",D["600"]="o",D["250"]="o",D["251"]="o",D["774"]="o",D["194"]="*",D["195"]="*",D["220"]="*",D["221"]="*",D["196"]="*",D["197"]="*",D["279"]="(",D["280"]="(",D["317"]="(",D["318"]="(",D["273"]="(",D["274"]="(",D["357"]="(",D["358"]="(",D["275"]="(",D["359"]="(",D["360"]="(",D["276"]="(",D["583"]="(",D["584"]="(",D["314"]="(",D["585"]="(",D["561"]="(",D["277"]="(",D["361"]="(h",D["362"]= "(h",D["363"]="(h",D["364"]="(h",D["365"]="(h",D["366"]="(h",D["591"]="(h",D["592"]="(h",D["367"]="(h",D["586"]="(h",D["587"]="(h",D["368"]="(h",D["588"]="(h",D["562"]="(h",D["409"]="(",D["410"]="(",D["411"]="(",D["412"]="(",D["557"]="(",D["558"]="(",D["394"]="1",D["395"]="1",D["396"]="1",D["397"]="1",D["398"]="1",D["399"]="1",D["720"]="1",D["721"]="1",D["400"]="1",D["401"]="1",D["571"]="1",D["402"]="1",D["694"]="1h",D["695"]="1h",D["696"]="1h",D["697"]="1h",D["698"]="1h",D["699"]="1h",D["700"]="1h", D["701"]="1h",D["702"]="1h",D["703"]="1h",D["386"]="3",D["387"]="w",D["406"]="6",D["787"]="1",D["788"]="1",D["548"]="1e",D["549"]="1e",D["550"]="1e",D["551"]="1e",D["809"]="1e",D["810"]="1e",D["552"]="1e",D["811"]="1e",D["812"]="1e",D["553"]="1e",D["813"]="1e",D["814"]="1e",D["554"]="1e",D["815"]="1e",D["816"]="1e",D["555"]="1e",D["817"]="1e",D["818"]="1e",D["572"]="1e",D["556"]="1e",D["645"]="(",D["646"]="(",D["647"]="(",D["648"]="(",D["649"]="(",D["650"]="(",D["651"]="(",D["652"]="(",D["653"]="(", D["654"]="(",D["655"]="(",D["656"]="(",D["657"]="(",D["658"]="(",D["659"]="(",D["660"]="(",D["661"]="(",D["662"]="(",D["663"]="(",D["664"]="(",D["665"]="(",D["666"]="(",D["667"]="(",D["668"]="(",D["669"]="(",D["670"]="(",D["671"]="(",D["672"]="(",D["673"]="(",D["674"]="(h",D["675"]="(h",D["676"]="(h",D["677"]="(h",D["678"]="(h",D["679"]="(h",D["680"]="(h",D["681"]="(h",D["682"]="(h",D["683"]="(h",D["684"]="(h",D["685"]="(h",D["686"]="(h",D["687"]="(h",D["688"]="A",D["689"]="A",D["690"]="A",D["691"]= "MEAC3",D["773"]="i",D["806"]="I",D["805"]="I",D["829"]="9",D["830"]="9",D["831"]="9",D["832"]="9",D["833"]="9",D["834"]="9",D["835"]="9",D["836"]="9",D["892"]="9",D["893"]="9",D["837"]="9",D["838"]="9",D["839"]="9",D["840"]="9",D["841"]="(",D["842"]="(",D["843"]="(",D["844"]="(",D["845"]="(",D["846"]="(",D["847"]="(",D["848"]="(",D["894"]="(",D["895"]="(",D["849"]="(",D["850"]="(",D["851"]="(",D["852"]="(",D["865"]="9",D["866"]="9",D["867"]="9",D["868"]="9",D["869"]="9",D["870"]="9",D["871"]="9", D["872"]="9",D["896"]="9",D["897"]="9",D["873"]="9",D["874"]="9",D["875"]="9",D["876"]="9",D["877"]="(",D["878"]="(",D["879"]="(",D["880"]="(",D["881"]="(",D["882"]="(",D["883"]="(",D["884"]="(",D["898"]="(",D["899"]="(",D["885"]="(",D["886"]="(",D["887"]="(",D["888"]="(",D);var Ia={},C8n=(Ia.STEREO_LAYOUT_UNKNOWN=0,Ia.STEREO_LAYOUT_LEFT_RIGHT=1,Ia.STEREO_LAYOUT_TOP_BOTTOM=2,Ia);var Ra,br;Ra={};g.FS=(Ra.auto=0,Ra.tiny=144,Ra.light=144,Ra.small=240,Ra.medium=360,Ra.large=480,Ra.hd720=720,Ra.hd1080=1080,Ra.hd1440=1440,Ra.hd2160=2160,Ra.hd2880=2880,Ra.highres=4320,Ra);br={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var j2="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");sF.prototype.isHdr=function(){return this.G==="smpte2084"||this.G==="arib-std-b67"};ou.prototype.A7=function(){return this.containerType===2}; ou.prototype.isEncrypted=function(){return!!this.EX}; ou.prototype.N0=function(){return!!this.audio}; ou.prototype.yx=function(){return!!this.video}; var Qb=!1;g.F(Bd,g.PD);g.M=Bd.prototype;g.M.appendBuffer=function(h,t,Y){if(this.Ln.xg()!==this.appendWindowStart+this.start||this.Ln.Is()!==this.appendWindowEnd+this.start||this.Ln.O3()!==this.timestampOffset+this.start)this.Ln.supports(1),this.Ln.pP(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ln.oY(this.timestampOffset+this.start);this.Ln.appendBuffer(h,t,Y)}; g.M.abort=function(){this.Ln.abort()}; g.M.remove=function(h,t){this.Ln.remove(h+this.start,t+this.start)}; g.M.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.M.clear=function(){this.Ln.clear()}; g.M.pP=function(h,t){this.appendWindowStart=h;this.appendWindowEnd=t}; g.M.a_=function(){return this.timestampOffset+this.start}; g.M.xg=function(){return this.appendWindowStart}; g.M.Is=function(){return this.appendWindowEnd}; g.M.oY=function(h){this.timestampOffset=h}; g.M.O3=function(){return this.timestampOffset}; g.M.iV=function(h){h=this.Ln.iV(h===void 0?!1:h);return Ru(h,this.start,this.end)}; g.M.pH=function(){return this.Ln.pH()}; g.M.EN=function(){return this.Ln.EN()}; g.M.QI=function(){return this.Ln.QI()}; g.M.Yr=function(){return this.Ln.Yr()}; g.M.PN=function(){this.Ln.PN()}; g.M.Bz=function(h){return this.Ln.Bz(h)}; g.M.ET=function(){return this.Ln.ET()}; g.M.nM=function(){return this.Ln.nM()}; g.M.p5=function(h,t,Y){this.Ln.p5(h,t,Y)}; g.M.NE=function(h,t,Y){this.Ln.NE(h,t,Y)}; g.M.VX=function(h,t){return this.Ln.VX(h,t)}; g.M.supports=function(h){return this.Ln.supports(h)}; g.M.Ab=function(){return this.Ln.Ab()}; g.M.isView=function(){return!0}; g.M.PE=function(){return this.Ln.PE()?this.isActive:!1}; g.M.isLocked=function(){return this.Jg&&!this.isActive}; g.M.wP=function(h){h=this.Ln.wP(h);h.vw=this.start+"-"+this.end;return h}; g.M.aR=function(){return this.Ln.aR()}; g.M.Wn=function(){return this.Ln.Wn()}; g.M.sM=function(){return this.Ln.sM()}; g.M.Gz=function(){this.Ln.ow(this.rZ);g.PD.prototype.Gz.call(this)};var FV=!1;g.F(mm,g.PD);g.M=mm.prototype;g.M.appendBuffer=function(h,t,Y){this.Xa=!1;Y&&(this.AO=Y);if(h.length){var L;((L=this.ND)==null?0:L.appendBuffer)?this.ND.appendBuffer(h):this.ND?this.ND.append(h):this.XX&&this.XX.webkitSourceAppend(this.id,h)}t&&(t.isEncrypted()&&(this.A4=this.AO),t.type===3&&(this.h7=t),this.nB.push(t.uL()),this.nB.length>4&&this.nB.shift());this.cg&&(this.cg.length>=2||h.length>1048576?delete this.cg:this.cg.push(h))}; g.M.abort=function(){try{this.ND?this.ND.abort():this.XX&&this.XX.webkitSourceAbort(this.id)}catch(t){if(B4L){var h=new g.Ea("Error while abort the source buffer: "+t.name+", "+t.message);g.ZD(h)}}this.AO=this.h7=null}; g.M.remove=function(h,t,Y){this.Xa=!1;var L;if((L=this.ND)==null?0:L.remove)Y&&Y({b:nA(this.iV()),s:h,e:t}),this.ND.remove(h,t)}; g.M.removeAll=function(){this.remove(this.xg(),this.Is())}; g.M.clear=function(){this.QI()||(this.abort(),this.removeAll(),this.A4=this.AO=this.h7=null,this.appendWindowStart=this.timestampOffset=0,this.T1=OF([],[]),this.Xa=!1,this.cg=Pd?[]:void 0,this.S6=!0)}; g.M.xg=function(){if(FV&&this.yx)return this.appendWindowStart;var h;return((h=this.ND)==null?void 0:h.appendWindowStart)||0}; g.M.Is=function(){var h;return((h=this.ND)==null?void 0:h.appendWindowEnd)||0}; g.M.pP=function(h,t){this.ND&&(FV&&this.yx?(this.appendWindowStart=h,this.ND.appendWindowEnd=t):h>this.xg()?(this.ND.appendWindowEnd=t,this.ND.appendWindowStart=h):(this.ND.appendWindowStart=h,this.ND.appendWindowEnd=t))}; g.M.a_=function(){return this.timestampOffset}; g.M.oY=function(h){FV?this.timestampOffset=h:this.supports(1)&&(this.ND.timestampOffset=h)}; g.M.O3=function(){return FV?this.timestampOffset:this.supports(1)?this.ND.timestampOffset:0}; g.M.iV=function(h){if(h===void 0?0:h)return this.Xa||this.pH()||(this.T1=this.iV(!1),this.Xa=!0),this.T1;try{return this.ND?this.ND.buffered:this.XX?this.XX.webkitSourceBuffered(this.id):OF([0],[Infinity])}catch(t){return OF([],[])}}; g.M.pH=function(){var h;return((h=this.ND)==null?void 0:h.updating)||!1}; g.M.QI=function(){return this.S6}; g.M.Yr=function(){return!this.S6&&this.pH()}; g.M.PN=function(){this.S6=!1}; g.M.Bz=function(h){var t=h==null?void 0:h.wU;h=h==null?void 0:h.containerType;return!t&&!h||t===this.wU&&h===this.containerType}; g.M.ET=function(){return this.AO}; g.M.nM=function(){return this.A4}; g.M.VX=function(h,t){return this.containerType!==h||this.wU!==t}; g.M.p5=function(h,t,Y){if(this.containerType!==h||Y&&this.VX(h,Y))this.supports(4),Dd()&&this.ND.changeType(t),Y&&(this.wU=Y);this.containerType=h}; g.M.NE=function(h,t,Y){this.containerType&&this.VX(h,t)&&Dd()&&this.ND.changeType(Y);this.containerType=h;this.wU=t}; g.M.Ab=function(){return this.h7}; g.M.isView=function(){return!1}; g.M.supports=function(h){switch(h){case 1:var t;return((t=this.ND)==null?void 0:t.timestampOffset)!==void 0;case 0:var Y;return!((Y=this.ND)==null||!Y.appendBuffer);case 2:var L;return!((L=this.ND)==null||!L.remove);case 3:var q,z;return!!(((q=this.ND)==null?0:q.addEventListener)&&((z=this.ND)==null?0:z.removeEventListener));case 4:return!(!this.ND||!this.ND.changeType);default:return!1}}; g.M.PE=function(){return!this.pH()}; g.M.isLocked=function(){return!1}; g.M.wP=function(h){h.to=this.O3();h.up=this.pH();var t,Y=((t=this.ND)==null?void 0:t.appendWindowStart)||0,L;t=((L=this.ND)==null?void 0:L.appendWindowEnd)||Infinity;h.aw=Y.toFixed(3)+"-"+t.toFixed(3);return h}; g.M.EN=function(){var h;return((h=this.ND)==null?void 0:h.writeHead)||0}; g.M.aR=function(){for(var h={},t=0;t=7&&G6b(this,function(){g.zz(function(){$kn(h,h.getCurrentTime(),0)},500)}); return t}; g.M.seekTo=function(h){this.nH()>0&&(nq&&DG<4&&(h=Math.max(.1,h)),this.setCurrentTime(h))}; g.M.k9=function(){if(!this.T&&this.Oi)if(this.Oi.X)try{var h;Y_(this,{l:"mer",sr:(h=this.qe)==null?void 0:h.nN(),rs:qO(this.Oi)});this.Oi.clear();this.T=this.Oi;this.Oi=void 0}catch(t){h=new g.Ea("Error while clearing Media Source in MediaElement: "+t.name+", "+t.message),g.ZD(h),this.stopVideo()}else this.stopVideo()}; g.M.stopVideo=function(){var h=this;if(!this.T){var t;(t=this.Oi)==null||Ocn(t);if(Slp){if(!this.S){var Y=new VT;Y.then(void 0,function(){}); this.S=Y;IOL&&this.pause();g.zz(function(){h.S===Y&&(wt(h),Y.resolve())},200)}}else wt(this)}}; g.M.zq=function(){var h=this.jQ();return S2(h)&&this.getDuration()?Tk(h,this.getCurrentTime()):0}; g.M.f4=function(){var h=this.getDuration();return h===Infinity?1:h?this.zq()/h:0}; g.M.wP=function(){try{var h=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:nA(this.Nx(),",",3),vbu:nA(this.jQ()),vbs:nA(this.k_()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.nH(),vns:""+this.oR(),vec:""+this.vM(),vemsg:this.oD(),vvol:""+this.getVolume(),vdom:""+ +this.di(),vsrc:""+ +!!this.Pd(),vw:""+h.width,vh:""+h.height}}catch(t){return{}}}; g.M.hasError=function(){return this.vM()>0}; g.M.addEventListener=function(h,t){this.W.listen(h,t,!1,this);this.xO(h)}; g.M.removeEventListener=function(h,t){this.W.W3(h,t,!1,this)}; g.M.dispatchEvent=function(h){if(this.S&&h.type==="pause")return!1;if(RFp){var t,Y=((t=h.G)==null?void 0:t.timeStamp)||Infinity;t=Y>performance.now()?Y-Date.now()+performance.now():Y;Y=this.T||this.Oi;if((Y==null?0:Y.QI())||t<=((Y==null?void 0:Y.U)||0)){var L;Y_(this,{l:"mede",sr:(L=this.qe)==null?void 0:L.nN(),et:h.type});return!1}if(this.r7)return Y_(this,{l:"medes",et:h.type}),Y&&h.type==="seeking"&&(Y.U=performance.now(),this.r7=!1),!1}return this.W.dispatchEvent(h)}; g.M.aL=function(){this.U=!1}; g.M.Lw=function(){this.U=!0;this.fT(!0)}; g.M.Lu=function(){this.U&&!this.xP()&&this.fT(!0)}; g.M.equals=function(h){return!!h&&h.gP()===this.gP()}; g.M.Gz=function(){this.C&&this.removeEventListener("volumechange",this.Lu);Slp&&wt(this);g.O.prototype.Gz.call(this)}; var Slp=!1,IOL=!1,RFp=!1,SSD=!1;g.M=g.yT.prototype;g.M.isPaused=function(){return g.R(this,4)}; g.M.isPlaying=function(){return g.R(this,8)&&!g.R(this,512)&&!g.R(this,64)&&!g.R(this,2)}; g.M.isOrWillBePlaying=function(){return g.R(this,8)&&!g.R(this,2)&&!g.R(this,1024)}; g.M.isCued=function(){return g.R(this,64)&&!g.R(this,8)&&!g.R(this,4)}; g.M.isBuffering=function(){return g.R(this,1)&&!g.R(this,2)}; g.M.isError=function(){return g.R(this,128)}; g.M.isSuspended=function(){return g.R(this,512)}; g.M.hm=function(){return g.R(this,64)&&g.R(this,4)}; g.M.toString=function(){return"PSt."+this.state.toString(16)}; var BP={},PP=(BP.BUFFERING="buffering-mode",BP.CUED="cued-mode",BP.ENDED="ended-mode",BP.PAUSED="paused-mode",BP.PLAYING="playing-mode",BP.SEEKING="seeking-mode",BP.UNSTARTED="unstarted-mode",BP);g.F(o6,g.O);g.M=o6.prototype;g.M.Hu=function(){return this.S}; g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){var h=kV(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=kV(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Y0(this.layout.AC)&&z8(this.uI.get(),this.layout.layoutId,{nz:t,kq:h,listener:this,i4:this.Sh()});yDL(this.fb.get(),this);h=this.dk;t=this.layout.layoutId;var Y={i4:this.Sh()};h.G.set(t,Y);this.yY()}; g.M.AY=function(){}; g.M.release=function(){Y0(this.layout.AC)&&Vs(this.uI.get(),this.layout.layoutId);X9L(this.fb.get(),this);this.dk.G.delete(this.layout.layoutId);this.Ll()}; g.M.TF=function(){}; g.M.Ki=function(){}; g.M.startRendering=function(h){gq(dt(this));if(GQ(this,h)){var t=this.G;YW(t.params.j1.uP.get(),!0)&&o7D(t,"p_sr",{});QT(this);this.Wk(h);this.Sh()||this.bv(!1)}}; g.M.bI=function(h,t){if(t.layoutId===this.layout.layoutId){this.s3="rendering";this.T=this.QG.get().isMuted()||this.QG.get().getVolume()===0;this.rP("impression");this.rP("start");if(this.QG.get().isMuted()){p_(this,"mute");var Y;h=((Y=b8(this))==null?void 0:Y.muteCommands)||[];oZ(this.Zs.get(),h,this.layout.layoutId)}if(this.QG.get().isFullscreen()){this.iZ("fullscreen");var L;Y=((L=b8(this))==null?void 0:L.fullscreenCommands)||[];oZ(this.Zs.get(),Y,this.layout.layoutId)}this.Sh()||(L=this.SE.get(), L.S&&!L.T&&(L.X=!1,L.T=!0,L.actionType!=="ad_to_video"&&(d2("pbs",void 0,L.actionType),g.wj("finalize_all_timelines")&&gCr(L.actionType))));this.lJ(1);this.As(t);var q;t=((q=b8(this))==null?void 0:q.impressionCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.yw=function(h,t,Y){this.C={wl:3,va:h==="load_timeout"?402:400,errorMessage:t.message};this.rP("error");var L;h=((L=b8(this))==null?void 0:L.errorCommands)||[];oZ(this.Zs.get(),h,this.layout.layoutId);this.Sh()||this.TI.M0(this.slot,this.layout,t,Y)}; g.M.gW=function(){if(this.s3==="rendering"){p_(this,"pause");var h,t=((h=b8(this))==null?void 0:h.pauseCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId);this.lJ(2)}}; g.M.ew=function(){if(this.s3==="rendering"){p_(this,"resume");var h,t=((h=b8(this))==null?void 0:h.resumeCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.fJ=function(h,t){t=t===void 0?!1:t;if(this.s3==="rendering"){var Y={currentTimeSec:h,flush:t};LA(this.G,"p_ip",Y);wA(this.dU,h*1E3,t);this.T||wA(this.dU,h*1E3,t===void 0?!1:t);var L=this.rY();if(L){L/=1E3;if(h>=L*.25||t)this.rP("first_quartile"),LA(this.G,"p_fq",Y);if(h>=L*.5||t)this.rP("midpoint"),LA(this.G,"p_sq",Y);if(h>=L*.75||t)this.rP("third_quartile"),LA(this.G,"p_tq",Y);this.uP.get().K.J().experiments.I0("enable_progress_command_flush_on_kabuki")?ZA(this.W,h*1E3,t):ZA(this.W,h*1E3,DkW(this)? t:!1)}}}; g.M.gV=function(){var h;return((h=rt(this.Dx.get(),1))==null?void 0:h.clientPlaybackNonce)||""}; g.M.pJ=function(h,t){h.layoutId!==this.layout.layoutId?this.TI.M0(this.slot,h,new xV("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"):t()}; g.M.R4=function(h,t,Y){if(t.layoutId===this.layout.layoutId)switch(this.s3="not_rendering",this.layoutExitReason=void 0,this.Sh()||(h=Y!=="normal"||this.position+1===this.U)&&this.bv(h),this.Sw(Y),this.lJ(0),Y){case "abandoned":if(WR(this.dU,"impression")){var L,q=((L=b8(this))==null?void 0:L.abandonCommands)||[];oZ(this.Zs.get(),q,this.layout.layoutId)}break;case "normal":L=((q=b8(this))==null?void 0:q.completeCommands)||[];oZ(this.Zs.get(),L,this.layout.layoutId);break;case "skipped":var z;L=((z= b8(this))==null?void 0:z.skipCommands)||[];oZ(this.Zs.get(),L,this.layout.layoutId)}}; g.M.yf=function(){return this.layout.layoutId}; g.M.XQ=function(){return this.C}; g.M.N5=function(){if(this.s3==="rendering"){this.dU.rP("active_view_measurable");var h,t=((h=b8(this))==null?void 0:h.activeViewMeasurableCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.X0=function(){if(this.s3==="rendering"){this.dU.rP("active_view_fully_viewable_audible_half_duration");var h,t=((h=b8(this))==null?void 0:h.activeViewFullyViewableAudibleHalfDurationCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.Cl=function(){if(this.s3==="rendering"){this.dU.rP("active_view_viewable");var h,t=((h=b8(this))==null?void 0:h.activeViewViewableCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.fl=function(){if(this.s3==="rendering"){this.dU.rP("audio_audible");var h,t=((h=b8(this))==null?void 0:h.activeViewAudioAudibleCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.Uf=function(){if(this.s3==="rendering"){this.dU.rP("audio_measurable");var h,t=((h=b8(this))==null?void 0:h.activeViewAudioMeasurableCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}}; g.M.bv=function(h){this.SE.get().bv(kV(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,h,this.position,this.U,!1)}; g.M.onFullscreenToggled=function(h){if(this.s3==="rendering")if(h){this.iZ("fullscreen");var t,Y=((t=b8(this))==null?void 0:t.fullscreenCommands)||[];oZ(this.Zs.get(),Y,this.layout.layoutId)}else this.iZ("end_fullscreen"),t=((Y=b8(this))==null?void 0:Y.endFullscreenCommands)||[],oZ(this.Zs.get(),t,this.layout.layoutId)}; g.M.onVolumeChange=function(){if(this.s3==="rendering")if(this.QG.get().isMuted()){p_(this,"mute");var h,t=((h=b8(this))==null?void 0:h.muteCommands)||[];oZ(this.Zs.get(),t,this.layout.layoutId)}else p_(this,"unmute"),h=((t=b8(this))==null?void 0:t.unmuteCommands)||[],oZ(this.Zs.get(),h,this.layout.layoutId)}; g.M.Em=function(){}; g.M.yP=function(){}; g.M.sL=function(){}; g.M.VP=function(){}; g.M.Fn=function(){}; g.M.iZ=function(h){this.dU.iZ(h,!this.T)}; g.M.rP=function(h){this.dU.rP(h,!this.T)}; g.M.Sh=function(){var h=kV(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return h===void 0?(gP("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.uP.get().Sh(h)};g.F(Ek,o6);g.M=Ek.prototype;g.M.yY=function(){}; g.M.Ll=function(){var h=this.fb.get();h.KO===this&&(h.KO=null);this.timer.stop()}; g.M.TF=function(){this.timer.stop();o6.prototype.gW.call(this)}; g.M.Ki=function(){Ok(this);o6.prototype.ew.call(this)}; g.M.rY=function(){return kV(this.VG().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.M.sY=function(h,t){var Y=this;this.pJ(h,function(){Y.s3!=="rendering_stop_requested"&&(Y.s3="rendering_stop_requested",Y.layoutExitReason=t,cs(Y,t),Y.timer.stop())})}; g.M.Kn=function(){var h=Date.now(),t=h-this.GW;this.GW=h;this.GQ+=t;this.GQ>=this.rY()?this.p$():(this.fJ(this.GQ/1E3),k_(this,this.GQ))}; g.M.Sw=function(){}; g.M.lM=function(){}; g.F(n_,Ek);g.M=n_.prototype;g.M.H2=function(h){if(this.s3!=="not_rendering"){h=u8(this,h);var t=this.QG.get().getPresentingPlayerType()===2;this.s3==="rendering_start_requested"?t&&SQ(h)&&this.cE():t?g.qK(h,2)?gP("Receive player ended event during MediaBreak",this.V4(),this.VG()):e0(this,h):this.J$()}}; g.M.Wk=function(){PRn(this);o8i(this.QG.get());this.fb.get().KO=this;bW("pbp")||bW("pbs")||d2("pbp");bW("pbp","watch")||bW("pbs","watch")||d2("pbp",void 0,"watch");this.cE()}; g.M.As=function(h){this.SE.get();var t=kV(h.clientMetadata,"metadata_type_ad_placement_config").kind,Y=this.position===0;h=kV(h.clientMetadata,"metadata_type_linked_in_player_layout_type");h={adBreakType:J0(t),adType:l73(h)};var L=void 0;Y?t!=="AD_PLACEMENT_KIND_START"&&(L="video_to_ad"):L="ad_to_ad";sH("ad_mbs",void 0,L);g.jC(h,L);Ok(this)}; g.M.J$=function(){this.HP()}; g.M.p$=function(){tpn(this);this.HP()}; g.F(f_,Ek);g.M=f_.prototype;g.M.H2=function(h){this.s3!=="not_rendering"&&(h=u8(this,h),e0(this,h))}; g.M.Wk=function(){gP("Not used in SSAP")}; g.M.As=function(){Ok(this)}; g.M.J$=function(){gP("Not used in SSAP")}; g.M.p$=function(){tpn(this);this.TI.g_(this.V4(),this.VG(),"normal")}; g.F($_,f_);$_.prototype.sY=function(h,t){var Y=this;this.pJ(h,function(){mT(Y.S,t)&&(Y.s3="rendering_stop_requested",Y.layoutExitReason=t,cs(Y,t),Y.timer.stop())})}; $_.prototype.startRendering=function(h){gq(dt(this));GQ(this,h)&&(QT(this),this.fb.get().KO=this)};g.F(S0,o6);g.M=S0.prototype;g.M.J$=function(){this.HP()}; g.M.H2=function(h){if(this.s3!=="not_rendering"){h=u8(this,h);var t=this.QG.get().getPresentingPlayerType()===2;this.s3==="rendering_start_requested"?t&&SQ(h)&&this.cE():!t||g.qK(h,2)?this.HP():e0(this,h)}}; g.M.yY=function(){kV(this.VG().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=kV(this.VG().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.M.Ll=function(){kV(this.VG().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.oF){var h=this.context.j1,t=this.oF,Y=this.VG().layoutId;if(YW(h.uP.get(),!0)){var L={};h.hQ("mccru",(L.cid=t,L.p_ac=Y,L))}this.o4.get().removeCueRange(this.oF)}this.oF=void 0;var q;(q=this.Ed)==null||q.dispose();this.Hb&&this.Hb.dispose()}; g.M.Wk=function(h){var t=TQ(this.uP.get()),Y=A0(this.uP.get());if(t&&Y&&!this.Sh()){Y=kV(h.clientMetadata,"metadata_type_preload_player_vars");var L=this.uP.get();L=g.Sk(L.K.J().experiments,"html5_preload_wait_time_secs");Y&&this.Hb&&this.Hb.start(L*1E3)}Y6b(this,h);PRn(this);t?(Y=this.GD.get(),h=kV(h.clientMetadata,"metadata_type_player_vars"),Y.K.loadVideoByPlayerVars(h,!1,2)):kp1(this.GD.get(),kV(h.clientMetadata,"metadata_type_player_vars"));var q;(q=this.Ed)==null||q.start();t||this.GD.get().K.playVideo(2)}; g.M.As=function(){var h;(h=this.Ed)==null||h.stop();this.RZ();(this.adCpn=B7n(this))||gP("Media layout confirmed started, but ad CPN not set.");this.ke.get().Vy("onAdStart",this.adCpn);this.Zr=Date.now()}; g.M.rY=function(){var h;return(h=rt(this.Dx.get(),2))==null?void 0:h.eD}; g.M.dO=function(){this.dU.iZ("clickthrough")}; g.M.sY=function(h,t){var Y=this;this.pJ(h,function(){if(Y.s3!=="rendering_stop_requested"){Y.s3="rendering_stop_requested";Y.layoutExitReason=t;cs(Y,t);var L;(L=Y.Ed)==null||L.stop();Y.Hb&&Y.Hb.stop();L1n(Y)}})}; g.M.onCueRangeEnter=function(h){if(h!==this.oF)gP("Received CueRangeEnter signal for unknown layout.",this.V4(),this.VG(),{cueRangeId:h});else{var t=this.context.j1,Y=this.VG().layoutId;if(YW(t.uP.get(),!0)){var L={};t.hQ("mccre",(L.cid=h,L.p_ac=Y,L))}this.o4.get().removeCueRange(this.oF);this.oF=void 0;ry(this.context.uP.get(),"html5_ssap_flush_at_stop_rendering")&&this.Sh()||(h=kV(this.VG().clientMetadata,"metadata_type_video_length_seconds"),this.fJ(h,!0),this.rP("complete"))}}; g.M.Sw=function(h){h!=="abandoned"&&this.ke.get().Vy("onAdComplete");this.ke.get().Vy("onAdEnd",this.adCpn)}; g.M.RZ=function(){this.oF="adcompletioncuerange:"+this.VG().layoutId;this.o4.get().addCueRange(this.oF,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var h=this.context.j1,t=this.oF,Y=this.VG().layoutId;if(YW(h.uP.get(),!0)){var L={};h.hQ("mccr",(L.cid=t,L.p_ac=Y,L))}}; g.M.onCueRangeExit=function(){}; g.M.lM=function(h){this.s3==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&h>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.QG.get().HL(!0),this.fJ(h))}; g.M.fJ=function(h,t){o6.prototype.fJ.call(this,h,t===void 0?!1:t);t=Date.now()-this.Zr;var Y=h*1E3,L={contentCpn:this.gV(),adCpn:B7n(this)};if(h-this.zJ>=5){var q=t=2||(this.FZ.sY(this.layout,t),h=ry(this.params.context.uP.get(),"html5_ssap_pass_transition_reason")&&t==="abandoned",this.YP()&&!h&&(ry(this.params.context.uP.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(t)||gP("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:t})),this.xe.get().finishSegmentByCpn(this.layout.layoutId, rt(this.Dx.get(),1).clientPlaybackNonce,K_(t,this.params.context.uP))),this.QG.get().removeListener(this),this.Br()&&DA(this.FZ.Hu())&&this.rJ.R4(this.slot,this.layout,this.FZ.Hu().G))}; g.M.Vg=function(h,t,Y){Zc3({cpn:h,q0:this.Dx.get(),i9:!0});this.VG().layoutId!==h||ry(this.params.context.uP.get(),"html5_ssap_pass_transition_reason")&&Y===5||(this.FZ.Hu().currentState<2&&(h=a6(Y,this.params.context.uP),h==="error"?this.rJ.M0(this.slot,this.layout,new xV("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:Y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):YG(this.RW, this.layout,h)),ry(this.params.context.uP.get(),"html5_ssap_exit_without_waiting_for_transition")||this.rJ.R4(this.slot,this.layout,this.FZ.Hu().G))};g.F(m$,g.O);g.M=m$.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.qH=function(){}; g.M.bR=function(){return this.IF[this.cP]}; g.M.ST=function(){return this.cP}; g.M.TF=function(h,t){var Y=this.bR();t.layoutId!==hi(Y,h,t)?gP("pauseLayout for a PlayerBytes layout that is not currently active",h,t):Y.TF()}; g.M.Ki=function(h,t){var Y=this.bR();t.layoutId!==hi(Y,h,t)?gP("resumeLayout for a PlayerBytes layout that is not currently active",h,t):Y.Ki()}; g.M.r9=function(h,t){var Y=this.bR();XCL(this,h,t);UKi(Y,h,t)&&this.Ft(Y.V4(),Y.VG(),"skipped")}; g.M.BG=function(h,t){var Y=this.bR();C9i(this);Mpc(Y,h,t)&&(h=F1L(this,Y,h,t),h!==void 0&&(this.Sh()?gP("Should not happen. Should delete"):jDb(this,Y.V4(),Y.VG(),h)))}; g.M.qM=function(h,t){var Y=Object.assign({},Do(this),{layoutId:t.layoutId}),L=Y.layoutId,q=Y.i9;if(Y.i4){var z={};i_(Y.q0,"wrse",(z.ec=L,z.is=q,z.ctp=ty(L),z))}Va(this.RY,h,t)}; g.M.bI=function(h,t){var Y;(Y=this.bR())==null||Y.bI(h,t)}; g.M.R4=function(h,t,Y){t.layoutId===this.VG().layoutId&&(this.vz=!1,Pn(this.LZ(),this));var L;(L=this.bR())==null||L.R4(h,t,Y)}; g.M.lM=function(h){var t;(t=this.bR())==null||t.lM(h)}; g.M.UN=function(h,t,Y){this.ST()===-1&&(this.callback.bI(this.slot,this.layout),this.cP++);var L=this.bR();L?(L.yw(h,t,Y),this.Sh()&&this.callback.M0(this.slot,this.layout,t,Y)):gP("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.ST()),layoutId:this.VG().layoutId})}; g.M.onFullscreenToggled=function(h){var t;(t=this.bR())==null||t.onFullscreenToggled(h)}; g.M.Em=function(h){var t;(t=this.bR())==null||t.Em(h)}; g.M.sL=function(h){var t;(t=this.bR())==null||t.sL(h)}; g.M.onVolumeChange=function(){var h;(h=this.bR())==null||h.onVolumeChange()}; g.M.Os=function(h,t,Y){No(this.RY,h,t,Y)}; g.M.qE=function(h){h.startRendering(h.VG())}; g.M.init=function(){var h=kV(this.VG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=this);if(this.IF.length<1)throw new P("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.IF.length)});if(h=kV(this.VG().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))h.current=this;h=g.b(this.IF);for(var t=h.next();!t.done;t=h.next())t=t.value,t.init(),fkL(this.RY,this.slot,t.VG()),$eL(this.RY,this.slot,t.VG()); if(this.Sh())for(this.Dx.get().addListener(this),Uk3(yZD(this),this.Dx.get()),h=yZD(this),h=g.b(h),t=h.next();!t.done;t=h.next())this.hw(t.value)}; g.M.hw=function(h){var t=kV(h.clientMetadata,"metadata_type_player_vars");t?(h.layoutType!=="LAYOUT_TYPE_MEDIA"&&gP("Non-video ad contains playerVars",this.slot,h),this.GD.get().addPlayerResponseForAssociation({playerVars:t})):(h=HsD(h),this.GD.get().addPlayerResponseForAssociation({cV:h}))}; g.M.release=function(){var h=kV(this.VG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=null);if(h=kV(this.VG().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))h.current=null;h=g.b(this.IF);for(var t=h.next();!t.done;t=h.next())t=t.value,TrL(this.RY,this.slot,t.VG()),t.release();this.Sh()&&(this.Dx.get().removeListener(this),CRr())}; g.M.pJ=function(h){return h.layoutId!==this.VG().layoutId?(this.callback.M0(this.V4(),h,new xV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.VG().layoutId+("and LayoutType: "+this.VG().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.M.yc=function(){this.QG.get().addListener(this);Bn(this.LZ(),this)}; g.M.H2=function(h){if(h.state.isError()){var t,Y;this.UN((t=h.state.rk)==null?void 0:t.errorCode,new xV("There was a player error during this media layout.",{playerErrorCode:(Y=h.state.rk)==null?void 0:Y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(t=this.bR())&&t.H2(h)}; g.M.Sh=function(){var h=kV(this.V4().clientMetadata,"metadata_type_eligible_for_ssap");return h===void 0?(gP("Expected SSAP eligibility in PlayerBytes slots",this.V4(),this.VG()),!1):this.uP.get().Sh(h)}; g.M.yP=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.VP=function(){}; g.M.Fn=function(){}; g.F(LK,m$);g.M=LK.prototype;g.M.al=function(h,t,Y){this.Ft(h,t,Y)}; g.M.n8=function(h,t){this.Ft(h,t,"error")}; g.M.Ft=function(h,t,Y){var L=this;sDr(this,h,t,Y,function(){ti(L,L.ST()+1)})}; g.M.startRendering=function(h){this.pJ(h)&&(this.yc(),afL(this.SE.get()),$gc(this.uP.get())||o8i(this.QG.get()),this.ST()===-1&&ti(this,this.ST()+1))}; g.M.sY=function(h,t){var Y=this;this.vz=!0;this.ST()===this.IF.length?this.callback.R4(this.slot,this.layout,t):(h=this.bR(),h.sY(h.VG(),t),this.t2=function(){Y.callback.R4(Y.slot,Y.layout,t)}); this.QG.get().K.Mn();kp1(this.GD.get(),{});h=qd(this.QG.get(),1);h.isPaused()&&!g.R(h,2)&&this.QG.get().playVideo();this.QG.get().removeListener(this);this.vz&&Zs3(this)}; g.M.Vg=function(){}; g.M.Ob=function(){}; g.M.g_=function(){}; g.F(qt,m$);g.M=qt.prototype;g.M.al=function(h,t,Y){h=Object.assign({},Do(this),{layoutId:t.layoutId,layoutExitReason:Y});t=h.layoutId;Y=h.layoutExitReason;var L={};i_(h.q0,"prse",(L.xc=t,L.ler=Y,L.ctp=ty(t),L))}; g.M.n8=function(){gP("onSubLayoutError in SSAP")}; g.M.Ft=function(){gP("exitSubLayoutAndPlayNext in SSAP")}; g.M.bR=function(){return this.zm}; g.M.ST=function(){var h=this;return this.IF.findIndex(function(t){var Y;return t.VG().layoutId===((Y=h.zm)==null?void 0:Y.VG().layoutId)})}; g.M.qE=function(h){i9(this.zm===void 0,"replacing another adapter");this.zm=h;h.startRendering(h.VG())}; g.M.Os=function(h,t,Y){No(this.RY,h,t,Y);var L;i9(t.layoutId===((L=this.zm)==null?void 0:L.VG().layoutId),"currentAdapter does not match exiting layout",{slot:h?"slot: "+h.slotType:"",subLayout:tZ(t)})&&(this.zm=void 0)}; g.M.release=function(){m$.prototype.release.call(this);i9(this.zm===void 0,"currentAdapter is still active during release");this.zm=void 0}; g.M.YP=function(){return this.QG.get().getPresentingPlayerType()===2}; g.M.sY=function(h,t){function Y(){zw(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(t)||gP("Composite stopRendering: Unexpected layout exit reason",this.slot,h,{layoutExitReason:t}))} function L(){this.zm&&VN(this,this.zm,t);if(this.YP()&&(!zw(this)||t!=="abandoned")){Y.call(this);var z;var V=((z=this.Dx.get().K.getVideoData())==null?void 0:z.clientPlaybackNonce)||"";z=rt(this.Dx.get(),1).clientPlaybackNonce;this.xe.get().finishSegmentByCpn(V,z,K_(t,this.uP))}bsL(this,t)} function q(){if(this.zm){var z=this.zm;z.Hu().currentState<2&&z.sY(z.VG(),t);z=zw(this)&&t==="abandoned";this.YP()&&!z&&(Y.call(this),this.xe.get().finishSegmentByCpn(this.zm.VG().layoutId,rt(this.Dx.get(),1).clientPlaybackNonce,K_(t,this.uP)))}} i9(h.layoutId===this.VG().layoutId,"StopRendering for wrong layout")&&mT(this.Sx.T,t)&&(this.Br()?L.call(this):q.call(this))}; g.M.R4=function(h,t,Y){m$.prototype.R4.call(this,h,t,Y);t.layoutId===this.VG().layoutId&&this.QG.get().removeListener(this)}; g.M.gV=function(){return rt(this.Dx.get(),1).clientPlaybackNonce}; g.M.Vg=function(h,t,Y){Zc3(Object.assign({},Do(this),{cpn:h}));if(!zw(this)||Y!==5)if(this.Br()){if(this.zm&&this.zm.VG().layoutId!==t){var L=this.zm.VG().layoutId;L!==h&&gP("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:L,exitingCpn:h,enteringCpn:t});h=a6(Y,this.uP);VN(this,this.zm,h)}else this.zm&&gP("onClipExited: active layout is entering again");t===this.gV()&&dKn(this,Y)}else{if(this.zm&&this.zm.VG().layoutId===h)oub(this,this.zm,Y);else{var q;gP("Exiting cpn does not match active cpn", this.slot,(L=this.zm)==null?void 0:L.VG(),{exitingCpn:h,transitionReason:Y,activeCpn:(q=this.zm)==null?void 0:q.VG().layoutId})}t===this.gV()&&(this.zm!==void 0&&(gP("active adapter is not properly exited",this.slot,this.layout,{activeLayout:tZ(this.zm.VG())}),oub(this,this.zm,Y)),dKn(this,Y),bsL(this,this.Sx.T.G))}}; g.M.Br=function(){return ry(this.uP.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.M.startRendering=function(h){this.pJ(h)&&(h=this.Sx,i9(h.G===1,"tickStartRendering: state is not initial"),h.G=2,this.yc())}; g.M.Ob=function(h){j$i(Object.assign({},Do(this),{cpn:h}));var t=this.IF.find(function(Y){return Y.VG().layoutId===h}); t?(this.Sx.G!==2&&(qcL(this.Qp,this.slot.slotId),i9(this.Sx.G===2,"Expect started"),this.callback.bI(this.slot,this.layout)),this.qE(t),Va(this.RY,this.slot,t.VG())):GTL(this,h)}; g.M.r9=function(h,t){XCL(this,h,t);var Y=this.bR();Y?UKi(Y,h,t)&&QDL(this,"skipped"):rZD(this,"onSkipRequested")}; g.M.BG=function(h,t){var Y;a:{if(Y=this.bR()){if(C9i(this),Mpc(Y,h,t)&&(h=F1L(this,Y,h,t),h!==void 0)){Y={Wf:Y,g1x:this.IF[h]};break a}}else rZD(this,"SkipWithAdPodSkip");Y=void 0}if(h=Y)Y=h.Wf,t=h.g1x,h=Y.VG().layoutId,this.Br()?VN(this,Y,"skipped"):Y.sY(Y.VG(),"skipped"),Y=t.VG().layoutId,this.xe.get().finishSegmentByCpn(h,Y,K_("skipped",this.uP))}; g.M.qM=function(){gP("Not used in html5_ssap_fix_layout_exit")}; g.M.H2=function(h){var t;(t=this.bR())==null||t.H2(h)}; g.M.UN=function(){gP("Not used in html5_ssap_fix_layout_exit")}; g.M.g_=function(h,t,Y){var L;if(((L=this.bR())==null?void 0:L.VG().layoutId)!==t.layoutId)return void gP("requestToExitSubLayout: wrong layout");QDL(this,Y)};g.F(Nt,g.O);g.M=Nt.prototype;g.M.V4=function(){return this.FZ.V4()}; g.M.VG=function(){return this.FZ.VG()}; g.M.init=function(){var h=kV(this.VG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=this);this.yY()}; g.M.yY=function(){this.FZ.init()}; g.M.release=function(){var h=kV(this.VG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=null);this.Ll()}; g.M.Ll=function(){this.FZ.release()}; g.M.TF=function(){this.FZ.TF()}; g.M.Ki=function(){this.FZ.Ki()}; g.M.r9=function(h,t){gP("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.V4(),this.VG(),{requestingSlot:h,requestingLayout:t})}; g.M.startRendering=function(h){h.layoutId!==this.VG().layoutId?this.callback.M0(this.V4(),h,new xV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.VG().layoutId+("and LayoutType: "+this.VG().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.QG.get().addListener(this),Bn(this.LZ(),this),afL(this.SE.get()),$gc(this.uP.get())||o8i(this.QG.get()),this.FZ.startRendering(h))}; g.M.sY=function(h,t){this.vz=!0;this.FZ.sY(h,t);this.QG.get().K.Mn();kp1(this.GD.get(),{});h=qd(this.QG.get(),1);h.isPaused()&&!g.R(h,2)&&this.QG.get().playVideo();this.QG.get().removeListener(this);this.vz&&this.FZ.J$()}; g.M.bI=function(h,t){this.FZ.bI(h,t)}; g.M.R4=function(h,t,Y){t.layoutId===this.VG().layoutId&&(this.vz=!1,Pn(this.LZ(),this));this.FZ.R4(h,t,Y);t.layoutId===this.VG().layoutId&&g9(this.SE.get())}; g.M.lM=function(h){this.FZ.lM(h)}; g.M.H2=function(h){if(h.state.isError()){var t,Y;this.UN((t=h.state.rk)==null?void 0:t.errorCode,new xV("There was a player error during this media layout.",{playerErrorCode:(Y=h.state.rk)==null?void 0:Y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.FZ.H2(h)}; g.M.UN=function(h,t,Y){this.FZ.yw(h,t,Y)}; g.M.onFullscreenToggled=function(h){this.FZ.onFullscreenToggled(h)}; g.M.Em=function(h){this.FZ.Em(h)}; g.M.sL=function(h){this.FZ.sL(h)}; g.M.onVolumeChange=function(){this.FZ.onVolumeChange()}; g.M.yP=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.VP=function(){}; g.M.Fn=function(){};g.M=lt.prototype;g.M.V4=function(){return this.slot}; g.M.VG=function(){return this.layout}; g.M.init=function(){this.HZ.get().addListener(this);this.QG.get().addListener(this);var h=kV(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var t=kV(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var Y=this.HZ.get().Yp.slice(-1)[0];Y!==void 0&&(h=Y.startSecs*1E3,t=(Y.startSecs+Y.cZ)*1E3)}this.AY(h,t);var L;Y=(L=this.Dx.get().TP)==null?void 0:L.clientPlaybackNonce;L=this.layout.X6.adClientDataEntry;HO(this.fb.get(),{daiStateTrigger:{filledAdsDurationMs:t-h,contentCpn:Y, adClientData:L}});var q=this.HZ.get();q=eZL(q.S,h,t);q!==null&&(HO(this.fb.get(),{daiStateTrigger:{filledAdsDurationMs:q-h,contentCpn:Y,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:L}}),this.xe.get().A$(q,t))}; g.M.release=function(){this.Ll();this.HZ.get().removeListener(this);this.QG.get().removeListener(this)}; g.M.startRendering=function(){this.Wk();this.callback.bI(this.slot,this.layout)}; g.M.sY=function(h,t){this.Hh(t);this.driftRecoveryMs!==null&&(w9(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(JZ3(this)-kV(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.QG.get().K.cS()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.R4(this.slot,this.layout,t)}; g.M.g5=function(){return!1}; g.M.j3=function(h){var t=kV(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Y=kV(this.layout.clientMetadata,"metadata_type_layout_exit_ms");h*=1E3;if(t<=h&&h0&&lL(this.G(),t)}; g.M.Um=function(h){this.X.delete(h.slotId);for(var t=[],Y=g.b(this.E3.values()),L=Y.next();!L.done;L=Y.next()){L=L.value;var q=L.trigger;q instanceof zL&&q.triggeringSlotId===h.slotId&&t.push(L)}t.length>0&&lL(this.G(),t)}; g.M.Z9=function(h){for(var t=[],Y=g.b(this.E3.values()),L=Y.next();!L.done;L=Y.next()){L=L.value;var q=L.trigger;q instanceof PO&&q.slotType===h.slotType&&q.G!==h.slotId&&t.push(L)}t.length>0&&lL(this.G(),t)}; g.M.Ez=function(h){this.S.add(h.slotId);for(var t=[],Y=g.b(this.E3.values()),L=Y.next();!L.done;L=Y.next())L=L.value,L.trigger instanceof i0&&h.slotId===L.trigger.triggeringSlotId&&t.push(L);t.length>0&&lL(this.G(),t)}; g.M.Zf=function(h){this.S.delete(h.slotId);this.W.add(h.slotId);for(var t=[],Y=g.b(this.E3.values()),L=Y.next();!L.done;L=Y.next())if(L=L.value,L.trigger instanceof gU)h.slotId===L.trigger.triggeringSlotId&&t.push(L);else if(L.trigger instanceof kG){var q=L.trigger;h.slotId===q.slotId&&this.T.has(q.triggeringLayoutId)&&t.push(L)}t.length>0&&lL(this.G(),t)}; g.M.KQ=function(h){for(var t=[],Y=g.b(this.E3.values()),L=Y.next();!L.done;L=Y.next())L=L.value,L.trigger instanceof Yf&&h.slotId===L.trigger.triggeringSlotId&&t.push(L);t.length>0&&lL(this.G(),t)}; g.M.fQ=function(h){for(var t=[],Y=g.b(this.E3.values()),L=Y.next();!L.done;L=Y.next())L=L.value,L.trigger instanceof LF&&h.slotId===L.trigger.triggeringSlotId&&t.push(L);t.length>0&&lL(this.G(),t)}; g.M.s9=function(h,t){this.U.add(t.layoutId)}; g.M.RD=function(h,t){this.U.delete(t.layoutId)}; g.M.bI=function(h,t){this.T.add(t.layoutId);for(var Y=[],L=g.b(this.E3.values()),q=L.next();!q.done;q=L.next())if(q=q.value,q.trigger instanceof Oj)t.layoutId===q.trigger.triggeringLayoutId&&Y.push(q);else if(q.trigger instanceof BO){var z=q.trigger;h.slotType===z.slotType&&t.layoutType===z.layoutType&&t.layoutId!==z.G&&Y.push(q)}else q.trigger instanceof kG&&(z=q.trigger,t.layoutId===z.triggeringLayoutId&&this.W.has(z.slotId)&&Y.push(q));Y.length>0&&lL(this.G(),Y)}; g.M.R4=function(h,t,Y){this.T.delete(t.layoutId);h=[];for(var L=g.b(this.E3.values()),q=L.next();!q.done;q=L.next())if(q=q.value,q.trigger instanceof fK&&t.layoutId===q.trigger.triggeringLayoutId&&h.push(q),q.trigger instanceof nK){var z=q.trigger;t.layoutId===z.triggeringLayoutId&&z.G.includes(Y)&&h.push(q)}h.length>0&&lL(this.G(),h)}; g.M.mT=function(){}; g.M.rS=function(){this.W.clear()}; g.M.fq=function(){};g.F(PU,g.O);PU.prototype.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(t instanceof xG))throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in CloseRequestedTriggerAdapter");this.E3.set(t.triggerId,new l0(h,t,Y,L))}; PU.prototype.Iu=function(h){this.E3.delete(h.triggerId)};g.F(DQ,g.O);DQ.prototype.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(t instanceof a0||t instanceof Du))throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.E3.set(t.triggerId,new l0(h,t,Y,L))}; DQ.prototype.Iu=function(h){this.E3.delete(h.triggerId)}; DQ.prototype.rS=function(h){for(var t=[],Y=t.push,L=Y.apply,q=[],z=g.b(this.E3.values()),V=z.next();!V.done;V=z.next())V=V.value,V.trigger instanceof a0&&V.trigger.xU===h&&q.push(V);L.call(Y,t,g.p(q));Y=t.push;L=Y.apply;q=[];z=g.b(this.E3.values());for(V=z.next();!V.done;V=z.next())V=V.value,V.trigger instanceof Du&&V.trigger.G!==h&&q.push(V);L.call(Y,t,g.p(q));t.length&&lL(this.G(),t)}; DQ.prototype.fq=function(h){for(var t=[],Y=t.push,L=Y.apply,q=[],z=g.b(this.E3.values()),V=z.next();!V.done;V=z.next()){V=V.value;var l=V.trigger;l instanceof Du&&l.G===h&&q.push(V)}L.call(Y,t,g.p(q));t.length&&lL(this.G(),t)};g.F(hE,g.O);g.M=hE.prototype;g.M.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");var q="adtriggercuerange:"+t.triggerId;if(t instanceof I0)BNn(this,h,t,Y,L,q,t.G.start,t.G.end,t.xU,t.visible);else if(t instanceof Ej)BNn(this,h,t,Y,L,q,0x7ffffffffffff,0x8000000000000,t.xU,t.visible);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in CueRangeTriggerAdapter");}; g.M.Iu=function(h){var t=this.E3.get(h.triggerId);t&&this.o4.get().removeCueRange(t.cueRangeId);this.E3.delete(h.triggerId)}; g.M.onCueRangeEnter=function(h){var t=Pwi(this,h);if(t&&(t=this.E3.get(t)))if(g.R(qd(this.QG.get()),32))this.G.add(t.cueRangeId);else{var Y=t==null?void 0:t.fk.trigger;if(Y instanceof I0||Y instanceof Ej){if(YW(this.context.uP.get())){var L=t.fk.slot,q=t.fk.layout,z={};this.context.j1.hQ("cre",(z.ca=t.fk.category,z.tt=Y.triggerType,z.st=L.slotType,z.lt=q==null?void 0:q.layoutType,z.cid=h,z))}lL(this.T(),[t.fk])}}}; g.M.onCueRangeExit=function(h){(h=Pwi(this,h))&&(h=this.E3.get(h))&&this.G.delete(h.cueRangeId)}; g.M.H2=function(h){if(Ls(h,16)<0){h=g.b(this.G);for(var t=h.next();!t.done;t=h.next())this.onCueRangeEnter(t.value,!0);this.G.clear()}}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.bI=function(){}; g.M.R4=function(){}; g.M.mT=function(){}; g.M.lM=function(){}; g.M.onFullscreenToggled=function(){}; g.M.Em=function(){}; g.M.yP=function(){}; g.M.sL=function(){}; g.M.onVolumeChange=function(){}; g.M.VP=function(){}; g.M.Fn=function(){};g.F(tE,g.O);g.M=tE.prototype; g.M.F2=function(h,t,Y,L){if(this.T.has(t.triggerId)||this.S.has(t.triggerId))throw new P("Tried to re-register the trigger.");h=new l0(h,t,Y,L);if(h.trigger instanceof SS)this.T.set(h.trigger.triggerId,h);else if(h.trigger instanceof $G)this.S.set(h.trigger.triggerId,h);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+h.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.T.has(h.trigger.triggerId)&&h.slot.slotId===this.G&&lL(this.W(),[h])}; g.M.Iu=function(h){this.T.delete(h.triggerId);this.S.delete(h.triggerId)}; g.M.qH=function(h){h=h.slotId;if(this.G!==h){var t=[];this.G!=null&&t.push.apply(t,g.p(mp6(this.S,this.G)));h!=null&&t.push.apply(t,g.p(mp6(this.T,h)));this.G=h;t.length&&lL(this.W(),t)}}; g.M.Vg=function(){}; g.M.Ob=function(){};g.F(i1,g.O);g.M=i1.prototype;g.M.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(t instanceof mO))throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.E3.set(t.triggerId,new l0(h,t,Y,L))}; g.M.Iu=function(h){this.E3.delete(h.triggerId)}; g.M.bI=function(){}; g.M.R4=function(){}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){};g.F(gx,g.O);g.M=gx.prototype;g.M.mT=function(h,t){for(var Y=[],L=g.b(this.E3.values()),q=L.next();!q.done;q=L.next()){q=q.value;var z=q.trigger;z.opportunityType===h&&(z.associatedSlotId&&z.associatedSlotId!==t||Y.push(q))}Y.length&&lL(this.G(),Y)}; g.M.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(t instanceof zrD))throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in OpportunityEventTriggerAdapter");this.E3.set(t.triggerId,new l0(h,t,Y,L))}; g.M.Iu=function(h){this.E3.delete(h.triggerId)}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.bI=function(){}; g.M.R4=function(){};g.F(Yj,g.O);g.M=Yj.prototype;g.M.F2=function(h,t,Y,L){h=new l0(h,t,Y,L);if(t instanceof Tw||t instanceof R0||t instanceof Ai||t instanceof hj||t instanceof zI1){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");this.E3.set(t.triggerId,h)}else throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in PrefetchTriggerAdapter");}; g.M.Iu=function(h){this.E3.delete(h.triggerId)}; g.M.VM=function(h){var t=h.slotFulfillmentTriggers.find(function(Y){return Y instanceof Tw}); t&&(LO(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",t.breakDurationMs,new Set([h.slotId]),!0),yN(this.fb.get(),"ads_css","sid."+h.slotId+";bd."+t.breakDurationMs))}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.bI=function(){}; g.M.R4=function(){}; g.M.mT=function(){}; g.M.g5=function(h){var t=this;if(!this.G)return gP("Unexpected cue break before fetch instructions are available"),!1;this.T&&this.T.stop();this.X&&g.fE(this.X);var Y=iZi(this,h);if(!Y){var L=hnL(this),q=this.C!==void 0&&Date.now()<=this.C+1E4;yN(this.fb.get(),"ads_ncfs","cid."+h.identifier+";cd."+h.cZ.toFixed(3)+";ccs."+q+";cfa."+this.W+";bdc."+L.length+";"+L.slice(0,6).map(function(z){return";bd."+z}).join("")); return q?(Kn(this.V2,this.G,h),!0):!1}(new g.nE(function(){var z=Y.trigger,V=Y.slot;LO(t,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",z.breakDurationMs,new Set,!0);LO(t,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",z.breakDurationMs,new Set,!1);for(var l=0,H=g.b(t.E3.values()),w=H.next();!w.done;w=H.next()){w=w.value;var W=w.trigger;w.slot.slotId===V.slotId&&(t.E3.delete(W.triggerId),l++)}yN(t.fb.get(),"ads_csf","sid."+V.slotId+";bd."+z.breakDurationMs+";dt."+l)}, 10)).start(); return!0}; g.M.j3=function(){}; g.M.rS=function(h){var t=this;this.W=!1;this.C=Date.now();if(this.G&&this.G.contentCpn!==h)gP("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:h,fetchInstructionsCpn:this.G.contentCpn}),qm(this);else{this.S=new g.nE(function(){if(t.W)delete t.S;else{var L=t.QG.get().getGetAdBreakContext(),q;if(Number(L==null?void 0:(q=L.livePlaybackPosition)==null?void 0:q.utcTimeMillis)>0)delete t.S,tk$(t);else{var z;(z=t.S)==null||z.start()}}},200); var Y;(Y=this.S)==null||Y.start()}}; g.M.fq=function(h){this.G&&this.G.contentCpn!==h&&gP("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:h,fetchInstructionsCpn:this.G.contentCpn},!0);qm(this)}; g.M.Bv=function(h){var t=this;if(this.G)gP("Unexpected multiple fetch instructions for the current content");else{this.G=h;h=Yc$(h);this.T=new g.nE(function(){tk$(t)},h?h:6E5); this.T.start();this.X=new g.nE(function(){t.G&&(t.T&&(t.T.stop(),t.T.start()),Dpn(t,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},gVD(this.G)); h=this.QG.get().getCurrentTimeSec(1,!1);for(var Y=g.b(this.HZ.get().Yp),L=Y.next();!L.done;L=Y.next())L=L.value,yN(this.fb.get(),"nocache","ct."+Date.now()+";cmt."+h+";d."+L.cZ.toFixed(3)+";tw."+(L.startSecs-h)+";cid."+L.identifier+";")}}; g.M.Gz=function(){g.O.prototype.Gz.call(this);qm(this)};g.F(zB,g.O);g.M=zB.prototype;g.M.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(t instanceof Nx))throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.E3.set(t.triggerId,new l0(h,t,Y,L));h=this.G.has(t.triggeringLayoutId)?this.G.get(t.triggeringLayoutId):new Set;h.add(t);this.G.set(t.triggeringLayoutId,h)}; g.M.Iu=function(h){this.E3.delete(h.triggerId);if(!(h instanceof Nx))throw new P("Incorrect TriggerType: Tried to unregister trigger of type "+h.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var t=this.T.get(h.triggerId);t&&(t.dispose(),this.T.delete(h.triggerId));if(t=this.G.get(h.triggeringLayoutId))t.delete(h),t.size===0&&this.G.delete(h.triggeringLayoutId)}; g.M.VM=function(){}; g.M.Um=function(){}; g.M.Z9=function(){}; g.M.Ez=function(){}; g.M.Zf=function(){}; g.M.KQ=function(){}; g.M.fQ=function(){}; g.M.s9=function(){}; g.M.RD=function(){}; g.M.mT=function(){}; g.M.bI=function(h,t){var Y=this;if(this.G.has(t.layoutId)){h=this.G.get(t.layoutId);h=g.b(h);var L=h.next();for(t={};!L.done;t={rl:void 0},L=h.next())t.rl=L.value,L=new g.nE(function(q){return function(){var z=Y.E3.get(q.rl.triggerId);lL(Y.S(),[z])}}(t),t.rl.durationMs),L.start(),this.T.set(t.rl.triggerId,L)}}; g.M.R4=function(){};g.F(VP,g.O);VP.prototype.F2=function(h,t,Y,L){if(this.E3.has(t.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(t instanceof vO))throw new P("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in VideoTransitionTriggerAdapter.");this.E3.set(t.triggerId,new l0(h,t,Y,L))}; VP.prototype.Iu=function(h){this.E3.delete(h.triggerId)};wx.prototype.Mr=function(h){return h.kind==="AD_PLACEMENT_KIND_START"};g.F(X5,g.O);g.M=X5.prototype;g.M.logEvent=function(h){this.sJ(h)}; g.M.au=function(h,t,Y){this.sJ(h,void 0,void 0,void 0,t,void 0,void 0,void 0,t.adSlotLoggingData,void 0,void 0,Y)}; g.M.tP=function(h,t,Y,L){this.sJ(h,void 0,void 0,void 0,t,Y?Y:void 0,void 0,void 0,t.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0,void 0,L)}; g.M.K0=function(h,t,Y,L){ry(this.uP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+h,"trigger:",Y,"slot:",t,"layout:",L);TK(this.G.get())&&this.sJ(h,void 0,void 0,void 0,t,L?L:void 0,void 0,Y,t.adSlotLoggingData,L?L.adLayoutLoggingData:void 0)}; g.M.Te=function(h,t,Y,L,q){this.sJ(h,t,Y,L,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)}; g.M.wV=function(h,t,Y,L){this.sJ("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Y,L,void 0,void 0,Y.adSlotLoggingData,L?L.adLayoutLoggingData:void 0,{errorType:h,errorMessage:t})}; g.M.sJ=function(h,t,Y,L,q,z,V,l,H,w,W,y){var X=this;y=y===void 0?0:y;ry(this.uP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+h,"slot:",q,"layout:",z,"ping:",V,"Opportunity:",{opportunityType:t,associatedSlotId:Y,qEP:L,Amb:l,adSlotLoggingData:H,adLayoutLoggingData:w});try{var U=function(){if(!X.uP.get().K.J().N("html5_disable_client_tmp_logs")&&h!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){h||gP("Empty PACF event type",q,z);var C=TK(X.G.get()),d={eventType:h,eventOrder:++X.eventCount},Q={}; q&&(Q.slotData=$V(C,q));z&&(Q.layoutData=xe3(C,z));V&&(Q.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:V.G.serializedAdPingMetadata,pingIndex:V.index});l&&(Q.triggerData=fZ(l.trigger,l.category));t&&(Q.opportunityData=EFn(C,t,Y,L));C={organicPlaybackContext:{contentCpn:rt(X.Dx.get(),1).clientPlaybackNonce}};C.organicPlaybackContext.isLivePlayback=rt(X.Dx.get(),1).fZ;var J;C.organicPlaybackContext.isMdxPlayback=(J=rt(X.Dx.get(),1))==null?void 0:J.isMdxPlayback; var e;if((e=rt(X.Dx.get(),1))==null?0:e.daiEnabled)C.organicPlaybackContext.isDaiContent=!0;var v;if(J=(v=rt(X.Dx.get(),2))==null?void 0:v.clientPlaybackNonce)C.adVideoPlaybackContext={adVideoCpn:J};C&&(Q.externalContext=C);d.adClientData=Q;H&&(d.serializedSlotAdServingData=H.serializedSlotAdServingDataEntry);w&&(d.serializedAdServingData=w.serializedAdServingDataEntry);W&&(d.errorInfo=W);g.tq("adsClientStateChange",{adsClientEvent:d})}}; y&&y>0?g.$I(g.AG(),function(){return U()},y):U()}catch(C){ry(this.uP.get(),"html5_log_pacf_logging_errors")&&g.$I(g.AG(),function(){gP(C instanceof Error?C:String(C),q,z,{pacf_message:"exception during pacf logging"})})}};var mlh=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.F(U1,X5);g.M=U1.prototype; g.M.au=function(h,t,Y){X5.prototype.au.call(this,h,t,Y);YW(this.uP.get())&&(Y={},this.context.j1.hQ("pacf",(Y.et=h,Y.st=t.slotType,Y.si=t.slotId,Y)))}; g.M.tP=function(h,t,Y,L){var q=mlh.has(h);X5.prototype.tP.call(this,h,t,Y,L);YW(this.uP.get(),q)&&(L={},this.context.j1.hQ("pacf",(L.et=h,L.st=t.slotType,L.si=t.slotId,L.lt=Y==null?void 0:Y.layoutType,L.li=Y==null?void 0:Y.layoutId,L.p_ac=Y==null?void 0:Y.layoutId,L)))}; g.M.Te=function(h,t,Y,L,q){X5.prototype.Te.call(this,h,t,Y,L,q);YW(this.uP.get())&&(Y={},this.context.j1.hQ("pacf",(Y.et=h,Y.ot=t,Y.ss=L==null?void 0:L.length,Y)))}; g.M.K0=function(h,t,Y,L){X5.prototype.K0.call(this,h,t,Y,L);if(YW(this.uP.get())){var q={};this.context.j1.hQ("pacf",(q.et=h,q.tt=Y.trigger.triggerType,q.tc=Y.category,q.st=t.slotType,q.si=t.slotId,q.lt=L==null?void 0:L.layoutType,q.li=L==null?void 0:L.layoutId,q.p_ac=L==null?void 0:L.layoutId,q))}}; g.M.wV=function(h,t,Y,L){X5.prototype.wV.call(this,h,t,Y,L);if(YW(this.uP.get(),!0)){var q={};this.context.j1.hQ("perror",(q.ert=h,q.erm=t,q.st=Y.slotType,q.si=Y.slotId,q.lt=L==null?void 0:L.layoutType,q.li=L==null?void 0:L.layoutId,q.p_ac=L==null?void 0:L.layoutId,q))}}; g.M.sJ=function(h,t,Y,L,q,z,V,l,H,w,W){var y=this.uP.get();g.z4(y.K.J())?(y=this.uP.get(),y=g.Sk(y.K.J().experiments,"H5_async_logging_delay_ms")):y=void 0;X5.prototype.sJ.call(this,h,t,Y,L,q,z,V,l,H,w,W,y)};CO.prototype.clear=function(){this.G.clear()};Mm.prototype.state=function(){return this.G==="fulfilled"?{state:"fulfilled",value:this.result}:this.G==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Mm.prototype.W=function(h){s1(h)||F5(h)?dx(jf(h),this.W.bind(this),this.reject.bind(this)):(this.G="fulfilled",this.result=h,og(this))}; Mm.prototype.reject=function(h){this.G="rejected";this.error=h;og(this)}; var F5=qG(function(h){return y3L(h)?h instanceof Mm:!1});Object.freeze({TN0:function(h){var t=ef(h);return dx(u1(t,function(Y){return t[Y].G==="rejected"}),function(Y){return Number.isNaN(Y)?t.map(function(L){return L.state().value}):t[Y]})}, SEi:function(h){var t=ef(h);return dx(u1(t),function(){return t.map(function(Y){return Y.state()})})}, gAe:function(h){var t=ef(h);return dx(u1(t,function(Y){return t[Y].G==="fulfilled"}),function(Y){return Number.isNaN(Y)?Zv(new AggregateError(t.map(function(L){return L.state().reason}))):t[Y].state().value})}, ebU:function(h){var t=ef(h);return dx(u1(t,function(){return!0}),function(Y){return t[Y]})}});var JE=window.gMP||"en";ag.prototype.Ls=function(h){this.client=h}; ag.prototype.G=function(){this.clear();this.csn=g.yy()}; ag.prototype.clear=function(){this.S.clear();this.T.clear();this.W.clear();this.csn=null};E1.prototype.Ls=function(h){g.f$(xj().Ls).bind(xj())(h)}; E1.prototype.clear=function(){g.f$(xj().clear).bind(xj())()};g.M=kj.prototype;g.M.Ls=function(h){this.client=h}; g.M.eS=function(h,t){var Y=this;t=t===void 0?{}:t;g.f$(function(){var L,q,z,V=((L=g.A(h==null?void 0:h.commandMetadata,g.Gm))==null?void 0:L.rootVe)||((q=g.A(h==null?void 0:h.commandMetadata,Csv))==null?void 0:(z=q.screenVisualElement)==null?void 0:z.uiType);if(V){L=g.A(h==null?void 0:h.commandMetadata,ajP);if(L==null?0:L.parentTrackingParams){var l=g.HD(L.parentTrackingParams);if(L.parentCsn)var H=L.parentCsn}else t.clickedVisualElement?l=t.clickedVisualElement:h.clickTrackingParams&&(l=g.HD(h.clickTrackingParams)); a:{L=g.A(h,g.NZ);q=g.A(h,caH);if(L){if(q=bZL(L,"VIDEO")){L={token:q,videoId:L.videoId};break a}}else if(q&&(L=bZL(q,"PLAYLIST"))){L={token:L,playlistId:q.playlistId};break a}L=void 0}t=Object.assign({},{cttAuthInfo:L,parentCsn:H},t);if(g.wj("expectation_logging")){var w;t.loggingExpectations=((w=g.A(h==null?void 0:h.commandMetadata,Csv))==null?void 0:w.loggingExpectations)||void 0}nO(Y,V,l,t)}else g.bc(new g.Ea("Error: Trying to create a new screen without a rootVeType",h))})()}; g.M.clickCommand=function(h,t,Y){h=h.clickTrackingParams;Y=Y===void 0?0:Y;h?(Y=g.yy(Y===void 0?0:Y))?(nt(this.client,Y,g.HD(h),t),t=!0):t=!1:t=!1;return t}; g.M.stateChanged=function(h,t,Y){this.visualElementStateChanged(g.HD(h),t,Y===void 0?0:Y)}; g.M.visualElementStateChanged=function(h,t,Y){Y=Y===void 0?0:Y;Y===0&&this.T.has(Y)?this.Y.push([h,t]):cW6(this,h,t,Y)};Sf.prototype.fetch=function(h,t,Y){var L=this,q=JW1(h,t,Y);return new Promise(function(z,V){function l(){if(Y==null?0:Y.UJ)try{var w=L.handleResponse(h,q.status,q.response,Y);z(w)}catch(W){V(W)}else z(L.handleResponse(h,q.status,q.response,Y))} q.onerror=l;q.onload=l;var H;q.send((H=t.body)!=null?H:null)})}; Sf.prototype.handleResponse=function(h,t,Y,L){Y=Y.replace(")]}'","");try{var q=JSON.parse(Y)}catch(z){g.bc(new g.Ea("JSON parsing failed after XHR fetch",h,t,Y));if((L==null?0:L.UJ)&&Y)throw new g.af(1,"JSON parsing failed after XHR fetch");q={}}t!==200&&(g.bc(new g.Ea("XHR API fetch failed",h,t,Y)),q=Object.assign({},q,{errorMetadata:{status:t}}));return q};Ig.getInstance=function(){var h=g.il("ytglobal.storage_");h||(h=new Ig,g.t3("ytglobal.storage_",h));return h}; Ig.prototype.estimate=function(){var h,t,Y;return g.k(function(L){h=navigator;return((t=h.storage)==null?0:t.estimate)?L.return(h.storage.estimate()):((Y=h.webkitTemporaryStorage)==null?0:Y.queryUsageAndQuota)?L.return(pni()):L.return()})}; g.t3("ytglobal.storageClass_",Ig);DZ.prototype.NS=function(h){this.handleError(h)}; DZ.prototype.logEvent=function(h,t){switch(h){case "IDB_DATA_CORRUPTED":g.wj("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":g.wj("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":Ky3(this,t);break;case "TRANSACTION_ENDED":this.S&&Math.random()<=.1&&this.G("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":h= Object.assign({},t,{hasWindowUnloaded:this.T}),this.G("idbTransactionAborted",h)}};var mf={},ZFL=g.Aq("yt-player-local-media",{MQ:(mf.index={Sm:2},mf.media={Sm:2},mf.captions={Sm:5},mf),shared:!1,upgrade:function(h,t){t(2)&&(g.j4(h,"index"),g.j4(h,"media"));t(5)&&g.j4(h,"captions");t(6)&&(Zb(h,"metadata"),Zb(h,"playerdata"))}, version:5});var DlE={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},DV;a:{var hI=g.xp();hI=hI.toLowerCase();if(g.Jd(hI,"android")){var hcs=hI.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(hcs){var tW0=parseFloat(hcs[1]);if(tW0<100){DV=tW0;break a}}var iQy=hI.match("("+Object.keys(DlE).join("|")+")");DV=iQy?DlE[iQy[0]]:0}else DV=void 0}var $k=DV,fw=$k>=0;var RQL=window;var api=p7(function(){var h,t;return(t=(h=window).matchMedia)==null?void 0:t.call(h,"(prefers-reduced-motion: reduce)").matches});var BG;g.Rg=new lw;BG=0;var wG=$Cr()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.kL?!0:!1;var Dv={vD:function(h){h[N[31]]()}, ah:function(h,t){var Y=h[0];h[0]=h[t%h[N[11]]];h[t%h[N[11]]]=Y}, Hj:function(h,t){h[N[2]](0,t)}};var MSp={Ejm:"adunit",iLP:"detailpage",Px_:"editpage",o3z:"embedded",yVb:"leanback",bHQ:"previewpage",sJ5:"profilepage",uK:"unplugged",jJm:"playlistoverview",FkG:"sponsorshipsoffer",CJQ:"shortspage",dqb:"handlesclaiming",aJi:"immersivelivepage",dW5:"creatormusic",AVz:"immersivelivepreviewpage",gjx:"admintoolyurt",Nd_:"shortsaudiopivot",rFb:"consumption"};var I2W=2592E3;var tI,gMl,J$;tI={};g.yH=(tI.STOP_EVENT_PROPAGATION="html5-stop-propagation",tI.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",tI.IV_DRAWER_OPEN="ytp-iv-drawer-open",tI.MAIN_VIDEO="html5-main-video",tI.VIDEO_CONTAINER="html5-video-container",tI.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",tI.HOUSE_BRAND="house-brand",tI);gMl={};J$=(gMl.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",gMl.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",gMl);var g0D={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var zRb={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},VQW={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"},LML={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var nfi={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Ch.prototype.getLanguageInfo=function(){return this.j4}; g.Ch.prototype.getXtags=function(){if(!this.xtags){var h=this.id.split(";");h.length>1&&(this.xtags=h[1])}return this.xtags}; g.Ch.prototype.toString=function(){return this.j4.name}; g.Ch.prototype.getLanguageInfo=g.Ch.prototype.getLanguageInfo;M9.prototype.equals=function(h){return this.T===h.T&&this.G===h.G&&this.S===h.S&&this.reason===h.reason&&(!jF||this.Lb===h.Lb)}; M9.prototype.isLocked=function(){return this.S&&!!this.T&&this.T===this.G}; M9.prototype.compose=function(h){if(h.S&&Zs(h))return tL;if(h.S||Zs(this))return h;if(this.S||Zs(h))return this;var t=this.T&&h.T?Math.max(this.T,h.T):this.T||h.T,Y=this.G&&h.G?Math.min(this.G,h.G):this.G||h.G;t=Math.min(t,Y);var L=0;jF&&(L=this.Lb!==0&&h.Lb!==0?Math.min(this.Lb,h.Lb):this.Lb===0?h.Lb:this.Lb);return jF&&t===this.T&&Y===this.G&&L===this.Lb||!jF&&t===this.T&&Y===this.G?this:jF?new M9(t,Y,!1,Y===this.G&&L===this.Lb?this.reason:h.reason,L):new M9(t,Y,!1,Y===this.G?this.reason:h.reason)}; M9.prototype.W=function(h){return!h.video||jF&&this.Lb!==0&&this.Lb=0}; g.M.Nd=function(){var h=this.segments[this.segments.length-1];return h?h.endTime:NaN}; g.M.bL=function(){return this.segments[0].startTime}; g.M.vN=function(){return this.segments.length}; g.M.R$=function(){return 0}; g.M.RF=function(h){return(h=this.Km(h))?h.Kb:-1}; g.M.SN=function(h){return(h=this.N3(h))?h.sourceURL:""}; g.M.getStartTime=function(h){return(h=this.N3(h))?h.startTime:0}; g.M.yB=function(h){return this.getStartTime(h)+this.getDuration(h)}; g.M.c7=Yb(1);g.M.isLoaded=function(){return this.segments.length>0}; g.M.N3=function(h){if(this.G&&this.G.Kb===h)return this.G;h=g.fH(this.segments,new A6(h,0,0,0,""),function(t,Y){return t.Kb-Y.Kb}); return this.G=h>=0?this.segments[h]:null}; g.M.Km=function(h){if(this.G&&this.G.startTime<=h&&h=0?this.segments[h]:this.segments[Math.max(0,-h-2)]}; g.M.append=function(h){if(h.length)if(h=g.ul(h),this.segments.length){var t=this.segments.length?g.U0(this.segments).endTime:0,Y=h[0].Kb-this.v3();Y>1&&bLL(this.segments);for(Y=Y>0?0:-Y+1;Yh.Kb&&this.index.OV()<=h.Kb+1}; g.M.update=function(h,t,Y){this.index.append(h);x0c(this.index,Y);h=this.index;h.T=t;h.S="update"}; g.M.z3=function(){return this.zx()?!0:fz.prototype.z3.call(this)}; g.M.MB=function(h,t){var Y=this.index.SN(h),L=this.index.getStartTime(h),q=this.index.getDuration(h),z;t?q=z=0:z=this.info.Lb>0?this.info.Lb*q:1E3;return new t5([new Id(3,this,void 0,"liveCreateRequestInfoForSegment",h,L,q,0,z,!t)],Y)}; g.M.jb=function(){return this.zx()?0:this.initRange.length}; g.M.vc=function(){return!1};Vn.prototype.update=function(h){var t=void 0;this.T&&(t=this.T);var Y=new Vn,L=Array.from(h.getElementsByTagName("S"));if(L.length){var q=+qL(h,"timescale")||1,z=(+L[0].getAttribute("t")||0)/q,V=+qL(h,"startNumber")||0;Y.W=z;var l=t?t.startSecs+t.cZ:0,H=Date.parse(eiL(qL(h,"yt:segmentIngestTime")))/1E3;Y.X=h.parentElement.tagName==="SegmentTemplate";Y.X&&(Y.C=qL(h,"media"));h=t?V-t.Kb:1;Y.U=h>0?0:-h+1;h=g.b(L);for(L=h.next();!L.done;L=h.next()){L=L.value;for(var w=+L.getAttribute("d")/q,W=(+L.getAttribute("yt:sid")|| 0)/q,y=+L.getAttribute("r")||0,X=0;X<=y;X++)if(t&&V<=t.Kb)V++;else{var U=new cyW(V,l,w,H+W,z);Y.G.push(U);var C=L;var d=q,Q=U.startSecs;U=C.getAttribute("yt:cuepointTimeOffset");var J=C.getAttribute("yt:cuepointDuration");if(U&&J){U=Number(U);Q=-U/d+Q;d=Number(J)/d;J=C.getAttribute("yt:cuepointContext")||null;var e=C.getAttribute("yt:cuepointIdentifier")||"";C=C.getAttribute("yt:cuepointEvent")||"";C=new gZ(Q,d,J,e,LV8[C]||"unknown",U)}else C=null;C&&Y.S.push(C);V++;l+=w;z+=w;H+=w+W}}Y.G.length&& (Y.T=g.U0(Y.G))}this.U=Y.U;this.T=Y.T||this.T;g.v1(this.G,Y.G);g.v1(this.S,Y.S);this.X=Y.X;this.C=Y.C;this.W===-1&&(this.W=Y.getStreamTimeOffset())}; Vn.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.F(l$,g.SF);g.M=l$.prototype;g.M.Cy=function(){return this.KC}; g.M.dH=function(h,t){h=Ho(this,h);return h>=0&&(t||!this.segments[h].pending)}; g.M.OV=function(){return this.gH?this.segments.length?this.Km(this.bL()).Kb:-1:g.SF.prototype.OV.call(this)}; g.M.bL=function(){if(this.f6)return 0;if(!this.gH)return g.SF.prototype.bL.call(this);if(!this.segments.length)return 0;var h=Math.max(g.U0(this.segments).endTime-this.Zu,0);return this.uR>0&&this.Km(h).Kb0)return this.Wo/1E3;if(!this.segments.length)return g.SF.prototype.Nd.call(this);var h=this.v3();if(!this.gH||h<=this.segments[this.segments.length-1].Kb)h=this.segments[this.segments.length-1];else{var t=this.segments[this.segments.length-1];h=new A6(h,Math.max(0,t.startTime-(t.Kb-h)*this.KC),this.KC,0,"sq/"+h,void 0,void 0,!0)}return this.f6?Math.min(this.Zu,h.endTime):h.endTime}; g.M.vN=function(){return this.gH?this.segments.length?this.v3()-this.OV()+1:0:g.SF.prototype.vN.call(this)}; g.M.v3=function(){var h=Math.min(this.e1,Math.max(g.SF.prototype.v3.call(this),this.wA)),t=this.Zu*1E3;t=this.Wo>0&&this.Wo0&&this.wA>0&&!t&&(t=this.Km(this.Zu))&&(h=Math.min(t.Kb-1,h));return h}; g.M.Zy=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.M.S5=function(h){var t=Ho(this,h.Kb);if(t>=0)this.segments[t]=h;else if(this.segments.splice(-(t+1),0,h),this.DT&&h.Kb%(300/this.KC)===0){var Y=this.segments[0].Kb,L=Math.floor(this.DT/this.KC);h=h.Kb-L;t=-(t+1)-L;t>0&&h>Y&&(this.segments=this.segments.slice(t))}}; g.M.cn=function(){return this.wA}; g.M.tG=function(h){return NL?!this.T&&h>=0&&this.v3()<=h:g.SF.prototype.tG.call(this,h)}; g.M.Km=function(h){if(!this.gH)return g.SF.prototype.Km.call(this,h);if(!this.segments.length)return null;var t=this.segments[this.segments.length-1];if(h=t.endTime)t=t.Kb+Math.floor((h-t.endTime)/this.KC+1);else{t=$y(this.segments,function(L){return h=L.endTime?1:0}); if(t>=0)return this.segments[t];var Y=-(t+1);t=this.segments[Y-1];Y=this.segments[Y];t=Math.floor((h-t.endTime)/((Y.startTime-t.endTime)/(Y.Kb-t.Kb-1))+1)+t.Kb}return this.N3(t)}; g.M.N3=function(h){if(!this.gH)return g.SF.prototype.N3.call(this,h);if(!this.segments.length)return null;var t=Ho(this,h);if(t>=0)return this.segments[t];var Y=-(t+1);t=this.KC;if(Y===0)var L=Math.max(0,this.segments[0].startTime-(this.segments[0].Kb-h)*t);else Y===this.segments.length?(L=this.segments[this.segments.length-1],L=L.endTime+(h-L.Kb-1)*t):(L=this.segments[Y-1],t=this.segments[Y],t=(t.startTime-L.endTime)/(t.Kb-L.Kb-1),L=L.endTime+(h-L.Kb-1)*t);return new A6(h,L,t,0,"sq/"+h,void 0,void 0, !0)}; var NL=!1;g.F(wQ,Lk);g.M=wQ.prototype;g.M.uh=function(){return!0}; g.M.z3=function(){return!0}; g.M.Li=function(h){return this.jo()&&h.S&&!h.X||!h.G.index.tG(h.Kb)}; g.M.UT=function(){}; g.M.rN=function(h,t){return typeof h!=="number"||isFinite(h)?Lk.prototype.rN.call(this,h,t===void 0?!1:t):new t5([new Id(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.BI,void 0,this.BI*this.info.Lb)],"")}; g.M.MB=function(h,t){var Y=Y===void 0?!1:Y;if(this.index.dH(h))return Lk.prototype.MB.call(this,h,t);var L=this.index.getStartTime(h),q=Math.round(this.BI*this.info.Lb),z=this.BI;t&&(z=q=0);return new t5([new Id(Y?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",h,L,z,void 0,q,!t)],h>=0?"sq/"+h:"")};g.F(Wo,fz);g.M=Wo.prototype;g.M.EW=function(){return!1}; g.M.jo=function(){return!1}; g.M.uh=function(){return!1}; g.M.UT=function(){return new t5([new Id(1,this,void 0,"otfInit")],this.X)}; g.M.kY=function(){return null}; g.M.Fs=function(h){this.Li(h);return kkL(this,m0(h),!1)}; g.M.rN=function(h,t){t=t===void 0?!1:t;h=this.index.RF(h);t&&(h=Math.min(this.index.v3(),h+1));return kkL(this,h,!0)}; g.M.Tb=function(h){h.info.type===1&&(this.G||(this.G=Ya(h.T)),h.G&&h.G.uri==="http://youtube.com/streaming/otf/durations/112015"&&OA6(this,h.G))}; g.M.Li=function(h){return h.S===0?!0:this.index.v3()>h.Kb&&this.index.OV()<=h.Kb+1}; g.M.jb=function(){return 0}; g.M.vc=function(){return!1};g.yn.prototype.info=function(){}; g.yn.prototype.debug=function(){}; g.yn.prototype.G=function(h){Xo.apply(null,[5,this.tag,h].concat(g.p(g.OL.apply(1,arguments))))}; var $Sc=new Map,SF$=new Map,TqW=new function(){var h=this;this.G=new Map;this.zD={EmP:function(){return h.G}}};g.M=g.b$.prototype;g.M.dH=function(h){return h<=this.v3()}; g.M.R$=function(h){return this.offsets[h]}; g.M.getStartTime=function(h){return this.startTicks[h]/this.G}; g.M.yB=function(h){return this.getStartTime(h)+this.getDuration(h)}; g.M.c7=Yb(0);g.M.a7=function(){return NaN}; g.M.getDuration=function(h){h=this.hq(h);return h>=0?h/this.G:-1}; g.M.hq=function(h){return h+1=0}; g.M.Nd=function(){return this.T?this.startTicks[this.count]/this.G:NaN}; g.M.bL=function(){return 0}; g.M.vN=function(){return this.count}; g.M.SN=function(){return""}; g.M.RF=function(h){h=g.fH(this.startTicks.subarray(0,this.count),h*this.G);return h>=0?h:Math.max(0,-h-2)}; g.M.isLoaded=function(){return this.v3()>=0}; g.M.xG=function(h,t){if(h>=this.v3())return 0;var Y=0;for(t=this.getStartTime(h)+t;hthis.getStartTime(h);h++)Y=Math.max(Y,i_n(this,h)/this.getDuration(h));return Y}; g.M.resize=function(h){h+=2;var t=this.offsets;this.offsets=new Float64Array(h+1);var Y=this.startTicks;this.startTicks=new Float64Array(h+1);for(h=0;h0&&h&&(Y=Y.range.end+1,h=Math.min(h,this.info.contentLength-Y),h>0&&L.push(new Id(4,this,Am(Y,h),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,t)));return new t5(L)}; g.M.Tb=function(h){if(h.info.type===1){if(this.G)return;this.G=Ya(h.T)}else if(h.info.type===2){if(this.X||this.index.v3()>=0)return;if(g.e2(this.info)){var t=this.index,Y=g.Ck(h);h=h.info.range.start;var L=g.z2(Y,0,1936286840);Y=Pfb(L);t.G=Y.timescale;var q=Y.kc;t.offsets[0]=Y.z9+h+L.size;t.startTicks[0]=q;t.T=!0;h=Y.PC.length;for(L=0;L0&&h===z[0].e6)for(h=0;h=t+Y)break}q.length||(h=new g.Ea("b189619593",""+h,""+t,""+Y),g.ZD(h));return new t5(q)}; g.M.Wl=function(h){for(var t=this.eH(h.info),Y=h.info.range.start+h.info.T,L=[],q=0;q=this.index.R$(Y+1);)Y++;return this.XS(Y,t,h.S).bP}; g.M.Li=function(h){h.lx();return this.z3()?!0:h.range.end+1this.info.contentLength&&(t=new $E(t.start,this.info.contentLength-1)),new t5([new Id(4,h.G,t,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,h.clipId)]);h.type===4&&(h=this.eH(h),h=h[h.length-1]);var Y=0,L=h.range.start+h.T+h.S;h.type===3&&(h.lx(),Y=h.Kb,L===h.range.end+1&&(Y+=1));return this.XS(Y,L,t)}; g.M.Fs=function(){return null}; g.M.rN=function(h,t){t=t===void 0?!1:t;h=this.index.RF(h);t&&(h=Math.min(this.index.v3(),h+1));return this.XS(h,this.index.R$(h),0,void 0)}; g.M.EW=function(){return!0}; g.M.jo=function(){return!0}; g.M.uh=function(){return!1}; g.M.jb=function(){return this.indexRange.length+this.initRange.length}; g.M.vc=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var gw={},M0$=(gw.COLOR_PRIMARIES_BT709="bt709",gw.COLOR_PRIMARIES_BT2020="bt2020",gw.COLOR_PRIMARIES_UNKNOWN=null,gw.COLOR_PRIMARIES_UNSPECIFIED=null,gw),Yq={},YkL=(Yq.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Yq.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Yq.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Yq.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Yq.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Yq.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Yq);g.G9.prototype.getName=function(){return this.name}; g.G9.prototype.getId=function(){return this.id}; g.G9.prototype.getIsDefault=function(){return this.isDefault}; g.G9.prototype.toString=function(){return this.name}; g.G9.prototype.getName=g.G9.prototype.getName;g.G9.prototype.getId=g.G9.prototype.getId;g.G9.prototype.getIsDefault=g.G9.prototype.getIsDefault;var V0L=/action_display_post/;var Ntp,co,u$;g.F(ed,g.PD);g.M=ed.prototype;g.M.isLoading=function(){return this.state===1}; g.M.X8=function(){return this.state===3}; g.M.E05=function(h){var t=h.getElementsByTagName("Representation");if(h.getElementsByTagName("SegmentList").length>0||h.getElementsByTagName("SegmentTemplate").length>0){this.fZ=this.T=!0;this.timeline||(this.timeline=new pdL);xSL(this.timeline,h);this.publish("refresh");for(h=0;h=0?W=T2(X):y=y+"?range="+X}H.call(l,new A6(w.Kb,w.startSecs,w.cZ,w.G,y,W,w.T))}L=q}Y.update(L,this.isLive,this.lP)}EWW(this.timeline);return!0}this.duration=uSL(qL(h,"mediaPresentationDuration")); a:{for(h=0;h0))return this.wz()-h}}h=this.G;for(var t in h){var Y=h[t].index;if(Y.isLoaded()&&!au(h[t].info.mimeType))return Y.bL()}return 0}; g.M.getStreamTimeOffset=function(){return this.C}; g.M.a7=function(h){for(var t in this.G){var Y=this.G[t].index;if(Y.isLoaded()){var L=Y.RF(h),q=Y.a7(L);if(q)return q+h-Y.getStartTime(L)}}return NaN}; var A5=null,q2v,Sd=!((q2v=navigator.mediaCapabilities)==null||!q2v.decodingInfo),o_D={commentary:1,alternate:2,dub:3,main:4};var s_=new Set,I5=new Map;Po.prototype.clone=function(h){return new Po(this.flavor,h,this.T,this.experiments)}; Po.prototype.wP=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Po.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 zcP={},zi=(zcP.playready=["com.youtube.playready","com.microsoft.playready"],zcP.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],zcP),LC={},eBL=(LC.widevine="DRM_SYSTEM_WIDEVINE",LC.fairplay="DRM_SYSTEM_FAIRPLAY",LC.playready="DRM_SYSTEM_PLAYREADY",LC),qY={},VWl=(qY.widevine=1,qY.fairplay=2,qY.playready=3,qY);var lE;g.F(V5,g.O); V5.prototype.initialize=function(h,t){for(var Y=this,L=g.b(Object.keys(h)),q=L.next();!q.done;q=L.next()){q=g.b(h[q.value]);for(var z=q.next();!z.done;z=q.next())if(z=z.value,z.EX)for(var V=g.b(Object.keys(z.EX)),l=V.next();!l.done;l=V.next()){var H=l.value;l=H;H=zi[H];!H&&this.N("html5_enable_vp9_fairplay")&&l==="fairplay"&&(H=["com.youtube.fairplay.sbdl"]);if(H){H=g.b(H);for(var w=H.next();!w.done;w=H.next())w=w.value,this.S[w]=this.S[w]||new Po(l,w,z.EX[l],this.SM.experiments),this.G[l]=this.G[l]|| {},this.G[l][z.mimeType]=!0}}}EA()&&(this.S["com.youtube.fairplay"]=new Po("fairplay","com.youtube.fairplay","",this.SM.experiments),this.N("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.T=xOr(t,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay")&&!0,this.N("html5_enable_vp9_fairplay")).filter(function(W){return!!Y.S[W]})}; V5.prototype.N=function(h){return this.SM.experiments.I0(h)};var Ney={"":"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"};Ttr.prototype.N=function(h){return this.experiments.I0(h)};var s03={RED:"red",GI0:"white"};A06.prototype.I0=function(h){h=this.flags[h];JSON.stringify(h);return h==="true"};var REr=Promise.resolve(),DO1=window.queueMicrotask?window.queueMicrotask.bind(window):Bt1;y5.prototype.canPlayType=function(h,t){h=h.canPlayType?h.canPlayType(t):!1;Ex?h=h||lmE[t]:$k===2.2?h=h||HQ0[t]:aF()&&(h=h||wts[t]);return!!h}; y5.prototype.isTypeSupported=function(h){return this.L?window.cast.receiver.platform.canDisplayType(h):Wd(h)}; var HQ0={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},wts={"application/x-mpegURL":"maybe"},lmE={"application/x-mpegURL":"maybe"};g.F(Cw,g.PD);Cw.prototype.add=function(h,t){if(!this.items[h]&&(t.GA||t.Qh||t.Ra)){var Y=this.items,L=t;Object.isFrozen&&!Object.isFrozen(t)&&(L=Object.create(t),Object.freeze(L));Y[h]=L;this.publish("vast_info_card_add",h)}}; Cw.prototype.remove=function(h){var t=this.get(h);delete this.items[h];return t}; Cw.prototype.get=function(h){return this.items[h]||null}; Cw.prototype.isEmpty=function(){return g.WZ(this.items)};var Fi;sZ.prototype.add=function(h){if(this.pos+20>this.data.length){var t=new Uint8Array(this.data.length*2);t.set(this.data);this.data=t}for(;h>31;)this.data[this.pos++]=Fi[(h&31)+32],h>>=5;this.data[this.pos++]=Fi[h|0]}; sZ.prototype.LC=function(){return g.N6(this.data.subarray(0,this.pos))}; sZ.prototype.reset=function(){this.pos=0};Z4.prototype.Fv=function(h,t){var Y=Math.pow(this.alpha,h);this.G=t*(1-Y)+Y*this.G;this.T+=h}; Z4.prototype.ID=function(){return this.G/(1-Math.pow(this.alpha,this.T))};bE.prototype.Fv=function(h,t){for(var Y=0;Y<10;Y++){var L=this.G[Y],q=L+(Y===0?h:0),z=1*Math.pow(2,Y);if(q<=z)break;L=Math.min(1,(q-z*.5)/L);for(q=0;q<16;q++)z=this.values[Y*16+q]*L,this.values[(Y+1)*16+q]+=z,this.G[Y+1]+=z,this.values[Y*16+q]-=z,this.G[Y]-=z}L=Y=0;q=8192;t>8192&&(Y=Math.ceil(Math.log(t/8192)/Math.log(2)),L=8192*Math.pow(2,Y-1),q=L*2);Y+2>16?this.values[15]+=h:(t=(t-L)/(q-L),this.values[Y]+=h*(1-t),this.values[Y+1]+=h*t);this.G[0]+=h}; bE.prototype.ID=function(){var h=h===void 0?this.T:h;var t=t===void 0?.02:t;var Y=Y===void 0?.98:Y;for(var L=this.S,q=0;q<16;q++)L[q]=this.values[q];q=this.G[0];for(var z=1;z<11;z++){var V=this.G[z];if(V===0)break;for(var l=Math.min(1,(h-q)/V),H=0;H<16;H++)L[H]+=this.values[z*16+H]*l;q+=V*l;if(l<1)break}for(z=h=V=0;z<16;z++){l=V+L[z]/q;h+=Math.max(0,Math.min(l,Y)-Math.max(V,t))*(z>0?8192*Math.pow(2,z-1):0);if(l>Y)break;V=l}return h/(Y-t)};o9.prototype.Fv=function(h,t){h=Math.min(this.G,Math.max(1,Math.round(h*this.resolution)));h+this.T>=this.G&&(this.S=!0);for(;h--;)this.values[this.T]=t,this.T=(this.T+1)%this.G;this.EJ=!0}; o9.prototype.percentile=function(h){var t=this;if(!this.S&&this.T===0)return 0;this.EJ&&(g.SE(this.X,function(Y,L){return t.values[Y]-t.values[L]}),this.EJ=!1); return this.values[this.X[Math.round(h*((this.S?this.G:this.T)-1))]]||0}; o9.prototype.ID=function(){return this.U?(this.percentile(this.W-this.U)+this.percentile(this.W)+this.percentile(this.W+this.U))/3:this.percentile(this.W)};g.F(dG,g.O);dG.prototype.Y8=function(){var h;(h=this.Ne)==null||h.start();if(pw(this)&&this.policy.Y){var t;(t=this.UY)==null||t.Zh()}};HKr.prototype.N=function(h){return this.experiments.I0(h)};g.F(WOp,g.O);var FOL="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),dt$={I98:"caoe",iQ8:"capsv",uv5:"cbrand",RRU:"cbr",SLG:"cbrver",f3i:"cchip",l38:"ccappver",mWG:"ccrv",pI8:"cfrmver",xSM:"c",u2m:"cver",Gq5:"ctheme",o9G:"cplayer",GOz:"cmodel",B$:"cnetwork",lCM:"cos",OS_VERSION:"cosver",Fxx:"cplatform",ue0:"crqyear"};g.F(hx,g.O);g.M=hx.prototype;g.M.N=function(h){return this.experiments.I0(h)}; g.M.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.M.getVideoUrl=function(h,t,Y,L,q,z,V){t={list:t};Y&&(q?t.time_continue=Y:t.t=Y);Y=V?"music.youtube.com":g.iC(this);q=Y==="www.youtube.com";!z&&L&&q?z="https://youtu.be/"+h:g.SI(this)?(z="https://"+Y+"/fire",t.v=h):(z&&q?(z=this.protocol+"://"+Y+"/shorts/"+h,L&&(t.feature="share")):(z=this.protocol+"://"+Y+"/watch",t.v=h),Ex&&(h=Omb())&&(t.ebc=h));return g.Xz(z,t)}; g.M.getVideoEmbedCode=function(h,t,Y,L){t="https://"+g.iC(this)+"/embed/"+t;L&&(t=g.Xz(t,{list:L}));L=Y.width;Y=Y.height;t=ee(t);h=ee(h!=null?h:"YouTube video player");return'')}; g.M.supportsGaplessAudio=function(){return g.wq&&!Ex&&pi()>=74||g.Lw&&g.Ob(68)?!0:!1}; g.M.supportsGaplessShorts=function(){return!this.N("html5_enable_short_gapless")||this.lP||g.Hq?!1:!0}; g.M.getPlayerType=function(){return this.G.cplayer}; g.M.pZ=function(){return this.Cr}; var ciL=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],oGL=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Q0L=[19];var z5={},pO1=(z5["140"]={numChannels:2},z5["141"]={numChannels:2},z5["251"]={audioSampleRate:48E3,numChannels:2},z5["774"]={audioSampleRate:48E3,numChannels:2},z5["380"]={numChannels:6},z5["328"]={numChannels:6},z5["773"]={},z5),VU={},eUL=(VU["1"]='video/mp4; codecs="av01.0.08M.08"',VU["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',VU["1e"]='video/mp4; codecs="av01.0.08M.08"',VU["9"]='video/webm; codecs="vp9"',VU["("]='video/webm; codecs="vp9"',VU["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', VU.h='video/mp4; codecs="avc1.64001e"',VU.H='video/mp4; codecs="avc1.64001e"',VU.o='audio/webm; codecs="opus"',VU.a='audio/mp4; codecs="mp4a.40.2"',VU.ah='audio/mp4; codecs="mp4a.40.2"',VU.mac3='audio/mp4; codecs="ac-3"; channels=6',VU.meac3='audio/mp4; codecs="ec-3"; channels=6',VU.i='audio/mp4; codecs="iamf.001.001.Opus"',VU),NY={},JiW=(NY["337"]={width:3840,height:2160,bitrate:3E7,fps:30},NY["336"]={width:2560,height:1440,bitrate:15E6,fps:30},NY["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, NY["702"]={width:7680,height:4320,bitrate:4E7,fps:60},NY["701"]={width:3840,height:2160,bitrate:2E7,fps:60},NY["700"]={width:2560,height:1440,bitrate:1E7,fps:60},NY["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},NY["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},NY["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},NY["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, NY["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},NY["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},NY["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},NY["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},NY["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},NY["315"]={width:3840,height:2160,bitrate:2E7,fps:60},NY["308"]={width:2560, height:1440,bitrate:1E7,fps:60},NY["303"]={width:1920,height:1080,bitrate:5E6,fps:60},NY["302"]={width:1280,height:720,bitrate:25E5,fps:60},NY["299"]={width:1920,height:1080,bitrate:75E5,fps:60},NY["298"]={width:1280,height:720,bitrate:35E5,fps:60},NY["571"]={width:7680,height:4320,bitrate:3E7,fps:60},NY["401"]={width:3840,height:2160,bitrate:15E6,fps:60},NY["400"]={width:2560,height:1440,bitrate:75E5,fps:60},NY["399"]={width:1920,height:1080,bitrate:2E6,fps:60},NY["398"]={width:1280,height:720,bitrate:1E6, fps:60},NY["397"]={width:854,height:480,bitrate:4E5,fps:30},NY["396"]={width:640,height:360,bitrate:25E4,fps:30},NY["787"]={width:1080,height:608,bitrate:2E5,fps:30},NY["788"]={width:1080,height:608,bitrate:4E5,fps:30},NY["572"]={width:7680,height:4320,bitrate:3E7,fps:60},NY["555"]={width:3840,height:2160,bitrate:15E6,fps:60},NY["554"]={width:2560,height:1440,bitrate:75E5,fps:60},NY["553"]={width:1920,height:1080,bitrate:2E6,fps:60},NY["552"]={width:1280,height:720,bitrate:1E6,fps:60},NY["551"]={width:854, height:480,bitrate:4E5,fps:30},NY["550"]={width:640,height:360,bitrate:25E4,fps:30},NY["313"]={width:3840,height:2160,bitrate:8E6,fps:30},NY["271"]={width:2560,height:1440,bitrate:4E6,fps:30},NY["248"]={width:1920,height:1080,bitrate:2E6,fps:30},NY["247"]={width:1280,height:720,bitrate:15E5,fps:30},NY["244"]={width:854,height:480,bitrate:52E4,fps:30},NY["243"]={width:640,height:360,bitrate:28E4,fps:30},NY["137"]={width:1920,height:1080,bitrate:4E6,fps:30},NY["136"]={width:1280,height:720,bitrate:3E6, fps:30},NY["135"]={width:854,height:480,bitrate:1E6,fps:30},NY["385"]={width:1920,height:1080,bitrate:6503313,fps:60},NY["376"]={width:1280,height:720,bitrate:5706960,fps:60},NY["384"]={width:1280,height:720,bitrate:3660979,fps:60},NY["225"]={width:1280,height:720,bitrate:5805E3,fps:30},NY["224"]={width:1280,height:720,bitrate:453E4,fps:30},NY["145"]={width:1280,height:720,bitrate:2682052,fps:30},NY);g.M=Fl.prototype;g.M.getInfo=function(){return this.G}; g.M.k5=function(){return null}; g.M.Ms=function(){var h=this.k5();return h?(h=g.Rp(h.e4),Number(h.expire)):NaN}; g.M.US=function(){}; g.M.getHeight=function(){return this.G.video.height};xtp.prototype.build=function(){OKL(this);var h=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],t={};a:if(this.G)var Y=this.G;else{Y="";for(var L=g.b(this.S),q=L.next();!q.done;q=L.next())if(q=q.value,q.j4){if(q.j4.getIsDefault()){Y=q.j4.getId();break a}Y||(Y=q.j4.getId())}}L=g.b(this.S);for(q=L.next();!q.done;q=L.next())if(q=q.value,this.U||!q.j4||q.j4.getId()===Y)t[q.itag]||(t[q.itag]=[]),t[q.itag].push(q);Y=g.b(this.T);for(L=Y.next();!L.done;L=Y.next())if(L=L.value,q=t[L.G]){q=g.b(q);for(var z=q.next();!z.done;z= q.next()){var V=h,l=V.push;z=z.value;var H="#EXT-X-MEDIA:TYPE=AUDIO,",w="YES",W="audio";if(z.j4){W=z.j4;var y=W.getId().split(".")[0];y&&(H+='LANGUAGE="'+y+'",');(this.G?this.G===W.getId():W.getIsDefault())||(w="NO");W=W.getName()}y="";L!==null&&(y=L.itag.toString());y=j5(this,z.url,y);H=H+('NAME="'+W+'",DEFAULT='+(w+',AUTOSELECT=YES,GROUP-ID="'))+(kwL(z,L)+'",URI="'+(y+'"'));l.call(V,H)}}Y=g.b(this.X);for(L=Y.next();!L.done;L=Y.next())L=L.value,q=WVL,L=(V=L.j4)?'#EXT-X-MEDIA:URI="'+j5(this,L.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+q+'",LANGUAGE="'+V.getId()+'",NAME="'+V.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,L&&h.push(L);Y=this.X.length>0?WVL:void 0;L=g.b(this.T);for(q=L.next();!q.done;q=L.next())q=q.value,l=t[q.G],V=void 0,((V=l)==null?void 0:V.length)>0&&(V=q,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(V.bitrate+l.bitrate)+',CODECS="'+(V.codecs+","+l.codecs+'",RESOLUTION=')+(V.width+"x"+V.height+',AUDIO="')+(kwL(l,V)+'",')+(Y?'SUBTITLES="'+Y+'",':"")+"CLOSED-CAPTIONS=NONE",V.fps>1&&(l+= ",FRAME-RATE="+V.fps),V.Bg&&(l+=",VIDEO-RANGE="+V.Bg),h.push(l),h.push(j5(this,q.url,"")));return h.join("\n")}; var WVL="text";g.F(ZJ,Fl);ZJ.prototype.Ms=function(){return this.expiration}; ZJ.prototype.k5=function(){if(!this.e4||this.e4.Ui()){var h=this.T.build();h="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(h);this.e4=new h0(h)}return this.e4};g.F(bC,Fl);bC.prototype.k5=function(){return new h0(this.T.K6())}; bC.prototype.US=function(){this.T=$Q(this.T)};g.F(ob,Fl);ob.prototype.k5=function(){return new h0(this.T)};var l7={},PtL=(l7.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",l7.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",l7.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",l7.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",l7);g.M=g.df.prototype;g.M.getId=function(){return this.id}; g.M.getName=function(){return this.name}; g.M.isServable=function(){return this.G}; g.M.K6=function(){return this.url}; g.M.getXtags=function(){return this.xtags}; g.M.toString=function(){return this.languageCode+": "+g.GH(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.M.equals=function(h){return h?this.toString()===h.toString():!1}; g.M.ra=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var gfW={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Ynp={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},LG$=/^(\d*)_((\d*)_?(\d*))$/;var zqL={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},VJ1={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var HS={},yu3=(HS.ALWAYS=1,HS.BY_REQUEST=3,HS.UNKNOWN=void 0,HS),ww={},XtE=(ww.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",ww.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",ww.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",ww.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",ww);var KED; KED=function(h){for(var t=Object.keys(h),Y={},L=0;LL-t?-1:h}; g.M.YY=function(){return this.T.v3()}; g.M.f0=function(){return this.T.OV()}; g.M.zk=function(h){this.T=h};g.F(hL,mA);hL.prototype.T=function(h,t){return mA.prototype.T.call(this,"$N|"+h,t)}; hL.prototype.X=function(h,t,Y){return new DJ(h,t,Y,this.isLive)};var Ajp=[],qZ=new Set;g.F(g.i6,g.PD);g.M=g.i6.prototype; g.M.setData=function(h){h=h||{};var t=h.errordetail;t!=null&&(this.errorDetail=t);var Y=h.errorcode;Y!=null?this.errorCode=Y:h.status==="fail"&&(this.errorCode="auth");var L=h.reason;L!=null&&(this.errorReason=L);var q=h.subreason;q!=null&&(this.UV=q);this.N("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=h.cpn||(this.SM.pZ()?"r"+g.H3(15):g.H3(16)));this.tQ=B2(this.SM.tQ,h.livemonitor);EfL(this,h);var z=h.raw_player_response;if(z)this.Sq=z;else{var V=h.player_response; V&&(z=JSON.parse(V))}if(this.N("html5_enable_ssap_entity_id")){var l=h.cached_load;l&&(this.C1=B2(this.C1,l));if(!this.clientPlaybackNonce){var H=h.cpn;H?(this.uX("ssei","shdc"),this.clientPlaybackNonce=H):this.clientPlaybackNonce=this.SM.pZ()?"r"+g.H3(15):g.H3(16)}}z&&(this.playerResponse=z);if(this.playerResponse){var w=this.playerResponse.annotations;if(w)for(var W=g.b(w),y=W.next();!y.done;y=W.next()){var X=y.value.playerAnnotationsUrlsRenderer;if(X){X.adsOnly&&(this.xS=!0);var U=X.loadPolicy; U&&(this.annotationsLoadPolicy=yu3[U]);var C=X.invideoUrl;C&&(this.Ne=vV(C));break}}var d=this.playerResponse.attestation;d&&l91(this,d);var Q=this.playerResponse.cotn;Q&&(this.cotn=Q);var J=this.playerResponse.heartbeatParams;if(J){this.B7=!0;var e=J.heartbeatToken;e&&(this.drmSessionId=J.drmSessionId||"",this.heartbeatToken=e,this.w7=Number(J.intervalMilliseconds),this.At=Number(J.maxRetries),this.ZF=!!J.softFailOnError,this.mu=!!J.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=J.heartbeatServerData; var v;this.qS=!((v=J.heartbeatAttestationConfig)==null||!v.requiresAttestation)}var E=this.playerResponse.messages;E&&yj6(this,E);var T=this.playerResponse.overlay;if(T){var hr=T.playerControlsOverlayRenderer;if(hr)if(Ux6(this,hr.controlBgHtml),hr.mutedAutoplay){var B=g.A(hr.mutedAutoplay,Ja3);if(B&&B.endScreen){var q1=g.A(B.endScreen,pz8);q1&&q1.text&&(this.qJ=g.Lc(q1.text))}}else this.mutedAutoplay=!1}var V6=this.playerResponse.playabilityStatus;if(V6){var zn=V6.backgroundability;zn&&zn.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var w3,ii;if((w3=V6.offlineability)==null?0:(ii=w3.offlineabilityRenderer)==null?0:ii.offlineable)this.offlineable=!0;var r3=V6.contextParams;r3&&(this.contextParams=r3);var KL=V6.pictureInPicture;KL&&KL.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);V6.playableInEmbed&&(this.allowEmbed=!0);var h3=V6.ypcClickwrap;if(h3){var ky=h3.playerLegacyDesktopYpcClickwrapRenderer,F8=h3.ypcRentalActivationRenderer;if(ky)this.sy=ky.durationMessage||"",this.Aa=!0;else if(F8){var EL= F8.durationMessage;this.sy=EL?g.Lc(EL):"";this.Aa=!0}}var mn=V6.errorScreen;if(mn){if(mn.playerLegacyDesktopYpcTrailerRenderer){var X8=mn.playerLegacyDesktopYpcTrailerRenderer;this.BL=X8.trailerVideoId||"";var Ts=mn.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var iv=Ts&&Ts.ypcTrailerRenderer}else if(mn.playerLegacyDesktopYpcOfferRenderer)X8=mn.playerLegacyDesktopYpcOfferRenderer;else if(mn.ypcTrailerRenderer){iv=mn.ypcTrailerRenderer;var u=iv.fullVideoMessage;this.PL=u?g.Lc(u):"";var Ew,eE;this.BL= ((Ew=g.A(iv,v2v))==null?void 0:(eE=Ew.videoDetails)==null?void 0:eE.videoId)||""}X8&&(this.xm=X8.itemTitle||"",X8.itemUrl&&(this.QZ=X8.itemUrl),X8.itemBuyUrl&&(this.jn=X8.itemBuyUrl),this.I6=X8.itemThumbnail||"",this.CJ=X8.offerHeadline||"",this.Gu=X8.offerDescription||"",this.PS=X8.offerId||"",this.UB=X8.offerButtonText||"",this.B4=X8.offerButtonFormattedText||null,this.Xo=X8.overlayDurationMsec||NaN,this.PL=X8.fullVideoMessage||"",this.If=!0);if(iv){var g3=g.A(iv,v2v);if(g3)this.xQ={raw_player_response:g3}; else{var rL=g.A(iv,Tk0);this.xQ=rL?SR(rL):null}this.If=!0}}}var G=this.playerResponse.playbackTracking;if(G){var tr=h,Ad=e5(G.googleRemarketingUrl);Ad&&(this.googleRemarketingUrl=Ad);var Vz=e5(G.youtubeRemarketingUrl);Vz&&(this.youtubeRemarketingUrl=Vz);var O0={},Tn=e5(G.ptrackingUrl);if(Tn){var mL=Jx(Tn),DX=mL.oid;DX&&(this.jd=DX);var kp=mL.pltype;kp&&(this.Ip=kp);var r=mL.ptchn;r&&(this.aP=r);var Z=mL.ptk;Z&&(this.FJ=encodeURIComponent(Z));var c=mL.m;c&&(this.lS=c)}var a=e5(G.qoeUrl);if(a){for(var n= g.Rp(a),WW=g.b(Object.keys(n)),S=WW.next();!S.done;S=WW.next()){var m=S.value,x=n[m];n[m]=Array.isArray(x)?x.join(","):x}this.Uh=n;var Jr=n.cat;Jr&&(this.N("html5_enable_qoe_cat_list")?this.An=this.An.concat(Jr.split(",")):this.lB=Jr);var fL=n.live;fL&&(this.Ti=fL);var N1=n.drm_product;N1&&(this.drmProduct=N1)}var ll=e5(G.videostatsPlaybackUrl);if(ll){var ui=Jx(ll),bi=ui.adformat;if(bi){tr.adformat=bi;var tf=this.J(),ov=qnr(bi,this.L4,tf.W,tf.Y);ov&&(this.adFormat=ov)}var av=ui.aqi;av&&(tr.ad_query_id= av);var Gn=ui.autoplay;Gn&&(this.w0=Gn=="1",this.le=Gn=="1");var bI=ui.autonav;bI&&(this.isAutonav=bI=="1");var eL=ui.delay;eL&&(this.Pq=vz(eL));var J3=ui.ei;J3&&(this.eventId=J3);if(ui.adcontext||bi)this.w0=!0;var dL=ui.feature;dL&&(this.Pu=dL);var Vo=ui.list;Vo&&(this.playlistId=Vo);var Gs=ui.of;Gs&&(this.Mh=Gs);var hK=ui.osid;hK&&(this.osid=hK);var Lu=ui.referrer;Lu&&(this.referrer=Lu);var A3=ui.sdetail;A3&&(this.Iw=A3);var pH=ui.ssrt;pH&&(this.K1=pH=="1");var cz=ui.subscribed;cz&&(this.subscribed= cz=="1");var mV=ui.uga;mV&&(this.userGenderAge=mV);var UV=ui.upt;UV&&(this.Wz=UV);var Kf=ui.vm;Kf&&(this.videoMetadata=Kf);O0.playback=ui}var tK=e5(G.videostatsWatchtimeUrl);if(tK){var iV=Jx(tK),VL=iV.ald;VL&&(this.nV=VL);O0.watchtime=iV}var oL=e5(G.atrUrl);if(oL){var v7=Jx(oL);O0.atr=v7}var Dm=e5(G.engageUrl);if(Dm){var KR=Jx(Dm);O0.engage=KR}this.M3=O0;if(G.promotedPlaybackTracking){var iI=G.promotedPlaybackTracking;iI.startUrls&&(this.YU=iI.startUrls);iI.firstQuartileUrls&&(this.TG=iI.firstQuartileUrls); iI.secondQuartileUrls&&(this.lT=iI.secondQuartileUrls);iI.thirdQuartileUrls&&(this.Ih=iI.thirdQuartileUrls);iI.completeUrls&&(this.l5=iI.completeUrls);iI.engagedViewUrls&&(iI.engagedViewUrls.length>1&&g.bc(new g.Ea("There are more than one engaged_view_urls.")),this.j8=iI.engagedViewUrls[0])}}var Cf=this.playerResponse.playerCueRanges;Cf&&Cf.length>0&&(this.cueRanges=Cf);var aV=this.playerResponse.playerCueRangeSet;aV&&g.zZ(this,aV);a:{var Fv=this.playerResponse.adPlacements;if(Fv)for(var g6=g.b(Fv), s5=g6.next();!s5.done;s5=g6.next()){var Y6=void 0,LR=void 0,qQ=(Y6=s5.value.adPlacementRenderer)==null?void 0:(LR=Y6.renderer)==null?void 0:LR.videoAdTrackingRenderer;if(qQ){var z3=qQ;break a}}z3=null}var j3=z3;G&&G.promotedPlaybackTracking&&j3&&g.bc(new g.Ea("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var NG;if(!(NG=j3))a:{for(var Vp=g.b(this.playerResponse.adSlots||[]),yF=Vp.next();!yF.done;yF=Vp.next()){var XM=g.A(yF.value,PX);if(XM===void 0||!J2L(XM))break; var ux=void 0,x6=(ux=XM.fulfillmentContent)==null?void 0:ux.fulfilledLayout,EQ=g.A(x6,nF);if(EQ&&xf(EQ)){NG=!0;break a}}NG=!1}NG&&(this.DE=!0);var k6=this.playerResponse.playerAds;if(k6)for(var D0=h,eu=g.b(k6),Mw=eu.next();!Mw.done;Mw=eu.next()){var JO=Mw.value;if(JO){var hH=JO.playerLegacyDesktopWatchAdsRenderer;if(hH){var OQ=hH.playerAdParams;if(OQ){OQ.autoplay=="1"&&(this.le=this.w0=!0);this.PA=OQ.encodedAdSafetyReason||null;OQ.showContentThumbnail!==void 0&&(this.w4=!!OQ.showContentThumbnail); D0.enabled_engage_types=OQ.enabledEngageTypes;break}}}}var dS=this.playerResponse.playerConfig;if(dS){var Zr=dS.manifestlessWindowedLiveConfig;if(Zr){var vB=Number(Zr.minDvrSequence),tH=Number(Zr.maxDvrSequence),Ui=Number(Zr.minDvrMediaTimeMs),iF=Number(Zr.maxDvrMediaTimeMs),pG=Number(Zr.startWalltimeMs);vB&&(this.uR=vB);Ui&&(this.Wm=Ui/1E3,this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&F$(this)&&(this.GV=Ui/1E3));tH&&(this.e1=tH);iF&&(this.Q4=iF/1E3,this.N("html5_sabr_parse_live_metadata_playback_boundaries")&& F$(this)&&(this.nI=iF/1E3));pG&&(this.Ds=pG/1E3);(vB||Ui)&&(tH||iF)&&(this.allowLiveDvr=this.isLivePlayback=this.AQ=!0,this.f6=!1)}var vE=dS.daiConfig;if(vE){if(vE.enableDai){this.t7=!0;var YC=vE.enableServerStitchedDai;YC&&(this.enableServerStitchedDai=YC);var EF=vE.enablePreroll;EF&&(this.Dw=EF)}var Lo;if(vE.daiType==="DAI_TYPE_SS_DISABLED"||((Lo=vE.debugInfo)==null?0:Lo.isDisabledUnpluggedChannel))this.PP=!0;vE.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.hR=!0)}var Yc=dS.audioConfig;if(Yc){var K$= Yc.loudnessDb;K$!=null&&(this.Vb=K$);var AJr=Yc.trackAbsoluteLoudnessLkfs;AJr!=null&&(this.fd=AJr);var SYL=Yc.loudnessTargetLkfs;SYL!=null&&(this.loudnessTargetLkfs=SYL);Yc.audioMuted&&(this.bB=!0);Yc.muteOnStart&&(this.ZG=!0);var Un=Yc.loudnessNormalizationConfig;if(Un){Un.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Un.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var IhL=Un.minimumLoudnessTargetLkfs;IhL!=null&&(this.minimumLoudnessTargetLkfs=IhL); var Rbi=Un.maxStatefulTimeThresholdSec;Rbi!=null&&(this.maxStatefulTimeThresholdSec=Rbi)}Yc.playAudioOnly&&(this.lR=!0)}var MWL=dS.playbackEndConfig;if(MWL){var B81=MWL.endSeconds,P5i=MWL.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(B81&&(this.endSeconds=B81),P5i&&(this.limitedPlaybackDurationInSeconds=P5i))}var ji=dS.fairPlayConfig;if(ji){var mUL=ji.certificate;mUL&&(this.lP=MA(mUL));var DUr=Number(ji.keyRotationPeriodMs);DUr>0&&(this.Hp=DUr);var hJL=Number(ji.keyPrefetchMarginMs);hJL>0&& (this.mF=hJL)}var cf=dS.playbackStartConfig;if(cf){this.q3=Number(cf.startSeconds);var tyb=cf.liveUtcStartSeconds,i3W=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;tyb&&!i3W&&(this.liveUtcStartSeconds=Number(tyb));var FVL=cf.startPosition;if(FVL){var gt6=FVL.utcTimeMillis;gt6&&!i3W&&(this.liveUtcStartSeconds=Number(gt6)*.001);var Y$c=FVL.streamTimeMillis;Y$c&&(this.R7=Number(Y$c)*.001)}this.progressBarStartPosition=cf.progressBarStartPosition;this.progressBarEndPosition=cf.progressBarEndPosition}else{var sti= dS.skippableSegmentsConfig;if(sti){var Lp6=sti.introSkipDurationMs;Lp6&&(this.tj=Number(Lp6)/1E3);var q$b=sti.outroSkipDurationMs;q$b&&(this.hG=Number(q$b)/1E3)}}var jt1=dS.skippableIntroConfig;if(jt1){var zJn=Number(jt1.startMs),VyL=Number(jt1.endMs);isNaN(zJn)||isNaN(VyL)||(this.nL=zJn,this.NU=VyL)}var NR$=dS.streamSelectionConfig;NR$&&(this.pn=Number(NR$.maxBitrate));var l3b=dS.vrConfig;l3b&&(this.Tx=l3b.partialSpherical=="1");var CF=dS.webDrmConfig;if(CF){CF.skipWidevine&&(this.R3=!0);var H3c= CF.widevineServiceCert;H3c&&(this.MG=MA(H3c));CF.useCobaltWidevine&&(this.useCobaltWidevine=!0);CF.startWithNoQualityConstraint&&(this.qW=!0)}var x4=dS.mediaCommonConfig;if(x4){var Z6=x4.dynamicReadaheadConfig;if(Z6){this.maxReadAheadMediaTimeMs=Z6.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Z6.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Z6.readAheadGrowthRateMs||NaN;var wI$,Wpi=x4==null?void 0:(wI$=x4.mediaUstreamerRequestConfig)==null?void 0:wI$.videoPlaybackUstreamerConfig; Wpi&&(this.UL=MA(Wpi));var ZQL=x4==null?void 0:x4.sabrContextUpdates;if(ZQL&&ZQL.length>0)for(var yXp=g.b(ZQL),bQ1=yXp.next();!bQ1.done;bQ1=yXp.next()){var hl=bQ1.value;if(hl.type&&hl.value){var AT1={type:hl.type,scope:hl.scope,value:MA(hl.value)||void 0,sendByDefault:hl.sendByDefault};this.sabrContextUpdates.set(hl.type,AT1)}}}var XIW=x4.serverPlaybackStartConfig;XIW&&(this.serverPlaybackStartConfig=XIW);x4.useServerDrivenAbr&&(this.JH=!0);var UND=x4.requestPipeliningConfig;UND&&(this.requestPipeliningConfig= UND)}var C4L=dS.inlinePlaybackConfig;C4L&&(this.I1=!!C4L.showAudioControls);var bP=dS.embeddedPlayerConfig;if(bP){this.embeddedPlayerConfig=bP;var oMD=bP.embeddedPlayerMode;if(oMD){var Myi=this.J();Myi.Wm=oMD;Myi.S=oMD==="EMBEDDED_PLAYER_MODE_PFL"}var FpD=bP.permissions;FpD&&(this.allowImaMonetization=!!FpD.allowImaMonetization)}var oj=dS.webPlayerConfig;oj&&(oj.gatewayExperimentGroup&&(this.gatewayExperimentGroup=oj.gatewayExperimentGroup),oj.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var E8= this.playerResponse.streamingData;if(E8){var dGL=E8.formats;if(dGL){for(var Mx=[],s83=g.b(dGL),GvL=s83.next();!GvL.done;GvL=s83.next()){var Qtn=GvL.value;Mx.push(Qtn.itag+"/"+Qtn.width+"x"+Qtn.height)}this.qk=Mx.join(",");Mx=[];for(var j8b=g.b(dGL),ru1=j8b.next();!ru1.done;ru1=j8b.next()){var FC=ru1.value,sn={itag:FC.itag,type:FC.mimeType,quality:FC.quality},Z3r=FC.url;Z3r&&(sn.url=Z3r);var da=To(FC),SyL=da.Nk,IF0=da.TM,RY0=da.s;da.v5&&(sn.url=SyL,sn.sp=IF0,sn.s=RY0);Mx.push(g.yC(sn))}this.Df=Mx.join(",")}var cui= E8.hlsFormats;if(cui&&!this.N("safari_live_drm_captions_fix")){var b3p=dS||null,G$={};if(b3p){var uy1=b3p.audioPairingConfig;if(uy1&&uy1.pairs)for(var otL=g.b(uy1.pairs),ec6=otL.next();!ec6.done;ec6=otL.next()){var dND=ec6.value,Jui=dND.videoItag;G$[Jui]||(G$[Jui]=[]);G$[Jui].push(dND.audioItag)}}for(var Geb={},Q8i=g.b(cui),ptb=Q8i.next();!ptb.done;ptb=Q8i.next()){var rXc=ptb.value;Geb[rXc.itag]=rXc.bitrate}for(var cXc=[],uEL=g.b(cui),vML=uEL.next();!vML.done;vML=uEL.next()){var AK=vML.value,Cm={itag:AK.itag, type:AK.mimeType,url:AK.url,bitrate:AK.bitrate,width:AK.width,height:AK.height,fps:AK.fps},Q2=AK.audioTrack;if(Q2){var eJD=Q2.displayName;eJD&&(Cm.name=eJD,Cm.audio_track_id=Q2.id,Q2.audioIsDefault&&(Cm.is_default="1"))}if(AK.drmFamilies){for(var JXL=[],pIb=g.b(AK.drmFamilies),KV6=pIb.next();!KV6.done;KV6=pIb.next())JXL.push(pk[KV6.value]);Cm.drm_families=JXL.join(",")}var ra=G$[AK.itag];if(ra&&ra.length){Cm.audio_itag=ra.join(",");var vtc=Geb[ra[0]];vtc&&(Cm.bitrate+=vtc)}var Kpr=L$b(AK);Kpr&&(Cm.eotf= Kpr);AK.audioChannels&&(Cm.audio_channels=AK.audioChannels);cXc.push(g.yC(Cm))}this.hlsFormats=cXc.join(",")}var am3=E8.licenseInfos;if(am3&&am3.length>0){for(var a3L={},xNL=g.b(am3),xG6=xNL.next();!xG6.done;xG6=xNL.next()){var Et6=xG6.value,kei=Et6.drmFamily,O3p=Et6.url;kei&&O3p&&(a3L[pk[kei]]=O3p)}this.EX=a3L}var ntb=E8.drmParams;ntb&&(this.drmParams=ntb);var f3L=E8.dashManifestUrl;f3L&&(this.Im=g.Xz(f3L,{cpn:this.clientPlaybackNonce}));var $N6=E8.hlsManifestUrl;$N6&&(this.hlsvp=$N6);var TRL=E8.probeUrl; TRL&&(this.probeUrl=vV(g.Xz(TRL,{cpn:this.clientPlaybackNonce})));var AXi=E8.serverAbrStreamingUrl;AXi&&(this.dS=new g.Es(AXi,!0))}var S$D=this.playerResponse.trackingParams;S$D&&(this.Zx=S$D);var Zj=this.playerResponse.videoDetails;if(Zj){var MF=h,EMp=Zj.videoId;EMp&&(this.videoId=EMp,MF.video_id||(MF.video_id=EMp));var kvp=Zj.title;kvp&&(this.title=kvp,MF.title||(MF.title=kvp));var OQc=Zj.lengthSeconds;OQc&&(this.lengthSeconds=Number(OQc),MF.length_seconds||(MF.length_seconds=OQc));var I33=Zj.keywords; I33&&(this.keywords=$xD(I33));var nML=Zj.channelId;nML&&(this.IJ=nML,MF.ucid||(MF.ucid=nML));var RJc=Zj.viewCount;RJc&&(this.rawViewCount=Number(RJc));var fmi=Zj.author;fmi&&(this.author=fmi,MF.author||(MF.author=fmi));var BR1=Zj.shortDescription;BR1&&(this.shortDescription=BR1);var P4p=Zj.isCrawlable;P4p&&(this.isListed=P4p);var mN3=Zj.musicVideoType;mN3&&(this.musicVideoType=mN3);var $G$=Zj.isLive;$G$!=null&&(this.isLivePlayback=$G$);if($G$||Zj.isUpcoming)this.isPremiere=!Zj.isLiveContent;var DN$= Zj.thumbnail;DN$&&(this.Y=uC(DN$));var hCi=Zj.isExternallyHostedPodcast;hCi&&(this.isExternallyHostedPodcast=hCi);var Ten=Zj.viewerLivestreamJoinPosition;if(Ten==null?0:Ten.utcTimeMillis)this.cR=vz(Ten.utcTimeMillis);var tn3=dS||null,AuL=h;Zj.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Zj.isUpcoming&&(this.isUpcoming=!0);if(Zj.isPostLiveDvr){this.f6=!0;var ia3=Zj.latencyClass;ia3&&(this.latencyClass=XtE[ia3]||"UNKNOWN");Zj.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var S2n= !1;this.tQ?(this.allowLiveDvr=Xi()?!0:$T&&DG<5?!1:!0,this.isLivePlayback=!0):Zj.isLive?(AuL.livestream="1",this.allowLiveDvr=Zj.isLiveDvrEnabled?Xi()?!0:$T&&DG<5?!1:!0:!1,this.partnerId=27,S2n=!0):Zj.isUpcoming&&(S2n=!0);if(Zj.isLive||this.tQ){Zj.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var gRn=Zj.latencyClass;gRn&&(this.latencyClass=XtE[gRn]||"UNKNOWN");var Yr3=Zj.liveChunkReadahead;Yr3&&(this.liveChunkReadahead=Yr3);var uT=tn3&&tn3.livePlayerConfig;if(uT){uT.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);uT.hasSubfragmentedWebm&&(this.Vv=!0);uT.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var L_1=uT.liveExperimentalContentId;L_1&&(this.liveExperimentalContentId=Number(L_1));var qrL=uT.isLiveHeadPlayable;this.N("html5_live_head_playable")&&qrL!=null&&(this.isLiveHeadPlayable=qrL)}}S2n&&(this.isLivePlayback=!0,AuL.adformat&&AuL.adformat.split("_")[1]!=="8"||this.x8.push("heartbeat"))}var zCL=Zj.isPrivate;zCL!==void 0&&(this.isPrivate=B2(this.isPrivate, zCL))}if(V6){var Vn1=Zj||null,Ncp=!1,em=V6.errorScreen;Ncp=em&&(em.playerLegacyDesktopYpcOfferRenderer||em.playerLegacyDesktopYpcTrailerRenderer||em.ypcTrailerRenderer)?!0:Vn1&&Vn1.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(V6.status);if(!Ncp){this.errorCode=mti(V6.errorCode)||"auth";var ci=em&&em.playerErrorMessageRenderer;if(ci){this.playerErrorMessageRenderer=ci;var lgn=ci.reason;lgn&&(this.errorReason=g.Lc(lgn));var Im1=ci.subreason;Im1&&(this.UV=g.Lc(Im1),this.OZ=Im1)}else this.errorReason= V6.reason||null;var Rcr=V6.status;if(Rcr==="LOGIN_REQUIRED")this.errorDetail="1";else if(Rcr==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(Rcr==="AGE_CHECK_REQUIRED"){var Hai=V6.errorScreen,wJi=Hai&&Hai.playerKavRenderer;this.errorDetail=wJi&&wJi.kavUrl?"4":"3"}else this.errorDetail=V6.isBlockedInRestrictedMode?"5":"0"}}var W_c=this.playerResponse.interstitialPods;W_c&&WGr(this,W_c);this.Ne&&this.eventId&&(this.Ne=PB(this.Ne,{ei:this.eventId}));var BeL=this.playerResponse.captions;if(BeL&& BeL.playerCaptionsTracklistRenderer)a:{var F3=BeL.playerCaptionsTracklistRenderer;this.captionTracks=[];if(F3.captionTracks)for(var yzn=g.b(F3.captionTracks),Pp$=yzn.next();!Pp$.done;Pp$=yzn.next()){var sW=Pp$.value,XJr=OFc(sW.baseUrl);if(!XJr)break a;var mGW={is_translateable:!!sW.isTranslatable,languageCode:sW.languageCode,languageName:sW.name&&g.Lc(sW.name),url:XJr,vss_id:sW.vssId,kind:sW.kind};mGW.name=sW.trackName;mGW.displayName=sW.name&&g.Lc(sW.name);this.captionTracks.push(new g.df(mGW))}this.Ta= F3.audioTracks||[];this.pD=F3.defaultAudioTrackIndex||0;this.e8=[];if(F3.translationLanguages)for(var U21=g.b(F3.translationLanguages),DGL=U21.next();!DGL.done;DGL=U21.next()){var JY=DGL.value,tl={};tl.languageCode=JY.languageCode;tl.languageName=g.Lc(JY.languageName);if(JY.translationSourceTrackIndices){tl.translationSourceTrackIndices=[];for(var CHD=g.b(JY.translationSourceTrackIndices),hkb=CHD.next();!hkb.done;hkb=CHD.next())tl.translationSourceTrackIndices.push(hkb.value)}if(JY.excludeAudioTrackIndices){tl.excludeAudioTrackIndices= [];for(var MnD=g.b(JY.excludeAudioTrackIndices),thp=MnD.next();!thp.done;thp=MnD.next())tl.excludeAudioTrackIndices.push(thp.value)}this.e8.push(tl)}this.gm=[];if(F3.defaultTranslationSourceTrackIndices)for(var F_L=g.b(F3.defaultTranslationSourceTrackIndices),ifc=F_L.next();!ifc.done;ifc=F_L.next())this.gm.push(ifc.value);this.u9=!!F3.contribute&&!!F3.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.q3=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&XXD(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var sJD;this.compositeLiveIngestionOffsetToken=(sJD=this.playerResponse.playbackTracking)==null?void 0:sJD.compositeLiveIngestionOffsetToken;var jJW;this.compositeLiveStatusToken=(jJW=this.playerResponse.playbackTracking)==null?void 0: jJW.compositeLiveStatusToken;this.N("html5_fill_default_mosaic_audio_track_id")&&DK(this)&&(this.SM.yG=pU6(this))}Y$(this,h);h.queue_info&&(this.queueInfo=h.queue_info);var Za3=h.hlsdvr;Za3!=null&&(this.allowLiveDvr=Number(Za3)===1?Xi()?!0:$T&&DG<5?!1:!0:!1);this.adQueryId=h.ad_query_id||null;this.PA||(this.PA=h.encoded_ad_safety_reason||null);this.bB=B2(this.bB,h.infringe||h.muted);this.H1=h.authkey;this.gD=h.authuser;this.mutedAutoplay=B2(this.mutedAutoplay,h&&h.playmuted);this.mutedAutoplayDurationMode= mJ(this.mutedAutoplayDurationMode,h&&h.muted_autoplay_duration_mode);this.A5=B2(this.A5,h&&h.mutedautoplay);var uP=h.length_seconds;uP&&(this.lengthSeconds=typeof uP==="string"?vz(uP):uP);if(this.isAd()||this.Bo||!g.gK(g.R9(this.SM)))this.endSeconds=mJ(this.endSeconds,this.hG||h.end||h.endSeconds);else{var B0v=g.R9(this.SM),ei=this.lengthSeconds;switch(B0v){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ei>30?this.limitedPlaybackDurationInSeconds=30:ei<30&&ei>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=ei*.2}}this.Zx=DH(this.Zx,h.itct);this.Gi=B2(this.Gi,h.is_live_destination);this.isLivePlayback=B2(this.isLivePlayback,h.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.fZ();h.isUpcoming&&(this.isUpcoming=B2(this.isUpcoming,h.isUpcoming));this.f6=B2(this.f6,h.post_live_playback);this.AQ&&(this.f6=!1);this.isMdxPlayback=B2(this.isMdxPlayback,h.mdx);var JR=h.mdx_control_mode; JR&&(this.mdxControlMode=typeof JR==="number"?JR:vz(JR));this.isInlinePlaybackNoAd=B2(this.isInlinePlaybackNoAd,h.is_inline_playback_no_ad);this.Hq=mJ(this.Hq,h.reload_count);this.reloadReason=DH(this.reloadReason,h.reload_reason);this.w4=B2(this.w4,h.show_content_thumbnail);this.cycToken=h.cyc||null;var baL=c0(h);Object.keys(baL).length>0&&(this.Y=baL);this.gU=DH(this.gU,h.vvt);this.mdxEnvironment=DH(this.mdxEnvironment,h.mdx_environment);h.source_container_playlist_id&&(this.sourceContainerPlaylistId= h.source_container_playlist_id);h.serialized_mdx_metadata&&(this.serializedMdxMetadata=h.serialized_mdx_metadata);this.WQ=h.osig;this.eventId||(this.eventId=h.eventid);this.osid||(this.osid=h.osid);this.playlistId=DH(this.playlistId,h.list);h.index&&(this.playlistIndex=this.playlistIndex===void 0?mJ(0,h.index):mJ(this.playlistIndex,h.index));this.kf=h.pyv_view_beacon_url;this.Iz=h.pyv_quartile25_beacon_url;this.L2=h.pyv_quartile50_beacon_url;this.M2=h.pyv_quartile75_beacon_url;this.jI=h.pyv_quartile100_beacon_url; var oRL=h.session_data;!this.q2&&oRL&&(this.q2=Tq(oRL,"&").feature);this.isFling=mJ(this.isFling?1:0,h.is_fling)===1;this.vnd=mJ(this.vnd,h.vnd);this.forceAdsUrl=DH(this.forceAdsUrl,h.force_ads_url);this.qq=DH(this.qq,h.ctrl);this.Y9=DH(this.Y9,h.ytr);this.mC=h.ytrcc;this.nu=h.ytrexp;this.iT=h.ytrext;this.Cr=DH(this.Cr,h.adformat);this.L4=DH(this.L4,h.attrib);this.slotPosition=mJ(this.slotPosition,h.slot_pos);this.breakType=h.break_type;this.K1=B2(this.K1,h.ssrt);this.videoId=tG(h)||this.videoId; this.U=DH(this.U,h.vss_credentials_token);this.iJ=DH(this.iJ,h.vss_credentials_token_type);this.lR=B2(this.lR,h.audio_only);this.Y8=B2(this.Y8,h.aac_high);this.DY=B2(this.DY,h.prefer_low_quality_audio);this.eg=B2(this.eg,h.uncap_inline_quality);this.N("html5_enable_qoe_cat_list")?h.qoe_cat&&(this.An=this.An.concat(h.qoe_cat.split(","))):this.lB=DH(this.lB,h.qoe_cat);this.CA=B2(this.CA,h.download_media);var d2D=h.prefer_gapless;this.C=d2D!=null?B2(this.C,d2D):this.C?this.C:this.SM.preferGapless&&this.SM.supportsGaplessShorts(); VkL(this.playerResponse)&&this.x8.push("ad");var GXL=h.adaptive_fmts;GXL&&(this.adaptiveFormats=GXL,this.Pm("adpfmts",{},!0));var QJL=h.allow_embed;QJL&&(this.allowEmbed=Number(QJL)===1);var rzL=h.backgroundable;rzL&&(this.backgroundable=Number(rzL)===1);var czi=h.autonav;czi&&(this.isAutonav=Number(czi)===1);var uYi=h.autoplay;uYi&&(this.w0=this.le=Number(uYi)===1);var eCL=h.iv_load_policy;eCL&&(this.annotationsLoadPolicy=P2(this.annotationsLoadPolicy,eCL,Bc));var Jzc=h.cc_lang_pref;Jzc&&(this.captionsLanguagePreference= DH(Jzc,this.captionsLanguagePreference));var pJn=h.cc_load_policy;pJn&&(this.w_=P2(this.w_,pJn,Bc));var vRL;this.deviceCaptionsOn=(vRL=h.device_captions_on)!=null?vRL:void 0;var K_b;this.DG=(K_b=h.device_captions_lang_pref)!=null?K_b:"";var agb;this.Kj=(agb=h.viewer_selected_caption_langs)!=null?agb:[];if(!this.N("html5_enable_ssap_entity_id")){var x2L=h.cached_load;x2L&&(this.C1=B2(this.C1,x2L))}if(h.dash==="0"||h.dash===0||h.dash===!1)this.im=!0;var ERL=h.dashmpd;ERL&&(this.Im=g.Xz(ERL,{cpn:this.clientPlaybackNonce})); var kXW=h.delay;kXW&&(this.Pq=vz(kXW));var gJ$=this.hG||h.end;if(this.y4?gJ$!=null:gJ$!=void 0)this.clipEnd=mJ(this.clipEnd,gJ$);var OaL=h.fmt_list;OaL&&(this.qk=OaL);h.heartbeat_preroll&&this.x8.push("heartbeat");this.tM=-Math.floor(Math.random()*10);this.hM=-Math.floor(Math.random()*40);var nRL=h.is_listed;nRL&&(this.isListed=B2(this.isListed,nRL));var fgW=h.is_private;fgW&&(this.isPrivate=B2(this.isPrivate,fgW));var $2r=h.is_dni;$2r&&(this.Ye=B2(this.Ye,$2r));var Tcr=h.dni_color;Tcr&&(this.yU= DH(this.yU,Tcr));var AzL=h.pipable;AzL&&(this.pipable=B2(this.pipable,AzL));this.T0=(this.Qc=this.pipable&&this.SM.Gt)&&!this.SM.showMiniplayerButton;var SrL=h.paid_content_overlay_duration_ms;SrL&&(this.paidContentOverlayDurationMs=vz(SrL));var Ig$=h.paid_content_overlay_text;Ig$&&(this.paidContentOverlayText=Ig$);var RCL=h.url_encoded_fmt_stream_map;RCL&&(this.Df=RCL);var Bc$=h.hls_formats;Bc$&&(this.hlsFormats=Bc$);var PH6=h.hlsvp;PH6&&(this.hlsvp=PH6);var py=h.live_start_walltime;py&&(this.Yc= typeof py==="number"?py:vz(py));var vi=h.live_manifest_duration;vi&&(this.V3=typeof vi==="number"?vi:vz(vi));var m21=h.player_params;m21&&(this.playerParams=m21);var D2W=h.partnerid;D2W&&(this.partnerId=mJ(this.partnerId,D2W));var hWn=h.probe_url;hWn&&(this.probeUrl=vV(g.Xz(hWn,{cpn:this.clientPlaybackNonce})));var YVL=h.pyv_billable_url;YVL&&XD1(YVL)&&(this.j8=YVL);var L9i=h.pyv_conv_url;L9i&&XD1(L9i)&&(this.Je=L9i);TUL(this,h);this.startSeconds>0?this.N("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.q3||this.tj||h.start||h.startSeconds)&&this.Pm("lss",{css:this.startSeconds,pcss:this.q3,iss:this.tj,ps:h.start||void 0,pss:h.startSeconds||void 0}):this.G$=this.startSeconds=mJ(this.startSeconds,this.q3||this.tj||h.start||h.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var tcr=h.live_utc_start;if(tcr!=null)this.liveUtcStartSeconds=Number(tcr);else{var qVW=this.startSeconds;qVW&&isFinite(qVW)&&qVW>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var i1r=h.utc_start_millis;i1r&&(this.liveUtcStartSeconds=Number(i1r)*.001)}var gHL=h.stream_time_start_millis;gHL&&(this.R7=Number(gHL)*.001);var zkL=this.tj||h.start;(this.y4?zkL==null||Number(h.resume)===1:zkL==void 0||h.resume=="1")||this.isLivePlayback||(this.clipStart=mJ(this.clipStart,zkL));var Y9L=h.url_encoded_third_party_media;Y9L&&(this.LI=Ip(Y9L));var VhL=h.ypc_offer_button_formatted_text;if(VhL){var L4W=JSON.parse(VhL);this.B4=L4W!=null?L4W:null;this.ey=VhL}var q9$= h.ypc_offer_button_text;q9$&&(this.UB=q9$);var zW$=h.ypc_offer_description;zW$&&(this.Gu=zW$);var Vc$=h.ypc_offer_headline;Vc$&&(this.CJ=Vc$);var NFL=h.ypc_full_video_message;NFL&&(this.PL=NFL);var lSr=h.ypc_offer_id;lSr&&(this.PS=lSr);var H1c=h.ypc_buy_url;H1c&&(this.jn=H1c);var wQ3=h.ypc_item_thumbnail;wQ3&&(this.I6=wQ3);var W4L=h.ypc_item_title;W4L&&(this.xm=W4L);var ytD=h.ypc_item_url;ytD&&(this.QZ=ytD);var XQi=h.ypc_vid;XQi&&(this.BL=XQi);h.ypc_overlay_timeout&&(this.Xo=Number(h.ypc_overlay_timeout)); var Uyn=h.ypc_trailer_player_vars;Uyn&&(this.xQ=SR(Uyn));var CqD=h.ypc_original_itct;CqD&&(this.WKi=CqD);this.IJ=DH(this.IJ,h.ucid);this.LA=h.storyboard_spec||null;this.y3=h.live_storyboard_spec||null;this.tD=h.iv_endscreen_url||null;this.If=B2(this.If,h.ypc_module);this.Aa=B2(this.Aa,h.ypc_clickwrap_module);this.If&&this.x8.push("ypc");this.Aa&&this.x8.push("ypc_clickwrap");this.b$={video_id:h.video_id,eventid:h.eventid,cbrand:h.cbrand,cbr:h.cbr,cbrver:h.cbrver,c:h.c,cver:h.cver,ctheme:h.ctheme, cplayer:h.cplayer,cmodel:h.cmodel,cnetwork:h.cnetwork,cos:h.cos,cosver:h.cosver,cplatform:h.cplatform,user_age:h.user_age,user_display_image:h.user_display_image,user_display_name:h.user_display_name,user_gender:h.user_gender,csi_page_type:h.csi_page_type,csi_service_name:h.csi_service_name,enablecsi:h.enablecsi,enabled_engage_types:h.enabled_engage_types};kLc(this,h);var Mcc=h.cotn;Mcc&&(this.cotn=Mcc);if(Ymc(this))ZK(this)&&(this.isLivePlayback&&this.Im&&(this.lZ=!0),this.lP&&(this.hj=!0));else if(Lu$(this))this.lZ= !0;else{var F4n,snc,jn3=((F4n=this.playerResponse)==null?void 0:(snc=F4n.streamingData)==null?void 0:snc.adaptiveFormats)||[];if(jn3.length>0)var jJ=gKL(this,jn3);else{var Z16=this.adaptiveFormats;if(Z16&&!ZK(this)){this.SM.X.S&&(Sd=!0);var pW=cu(Z16),Nnr=this.EX,b1n=this.lengthSeconds,PbE=this.isLivePlayback,Z9=this.f6,vf=this.SM,muv=F$i(pW);if(PbE||Z9){var oHW=vf==null?void 0:vf.experiments,uy=new ed("",oHW,!0);uy.fZ=!0;uy.isManifestless=!0;uy.T=!Z9;uy.isLive=!Z9;uy.f6=Z9;for(var dy1=g.b(pW),lB3= dy1.next();!lB3.done;lB3=dy1.next()){var KW=lB3.value,GPp=Kk(KW,Nnr),iS=a5(KW.url,KW.sp,KW.s),QnD=iS.get("id");QnD&&QnD.includes("%7E")&&(uy.L=!0);var rtL=void 0,Du8=(rtL=oHW)==null?void 0:rtL.I0("html5_max_known_end_time_rebase"),hX0=Number(KW.target_duration_sec)||5,tav=Number(KW.max_dvr_duration_sec)||14400,ctW=Number(iS.get("mindsq")||iS.get("min_sq")||"0"),uV3=Number(iS.get("maxdsq")||iS.get("max_sq")||"0")||Infinity;uy.uR=uy.uR||ctW;uy.e1=uy.e1||uV3;var iil=!au(GPp.mimeType);iS&&rQ(uy,new wQ(iS, GPp,{BI:hX0,gH:iil,Zu:tav,uR:ctW,e1:uV3,DT:300,f6:Z9,rI:Du8}))}var eWL=uy}else{if(muv==="FORMAT_STREAM_TYPE_OTF"){var Ky=b1n;Ky=Ky===void 0?0:Ky;var ai=new ed("",vf==null?void 0:vf.experiments,!1);ai.duration=Ky||0;for(var Jt6=g.b(pW),Hfi=Jt6.next();!Hfi.done;Hfi=Jt6.next()){var xa=Hfi.value,wp$=Kk(xa,Nnr,ai.duration),W9W=a5(xa.url,xa.sp,xa.s);if(W9W)if(wp$.streamType==="FORMAT_STREAM_TYPE_OTF")rQ(ai,new Wo(W9W,wp$,"sq/0"));else{var gTv=T2(xa.init),YAC=T2(xa.index);rQ(ai,new dQ(W9W,wp$,gTv,YAC))}}ai.isOtf= !0;var pQ6=ai}else{var aj=b1n;aj=aj===void 0?0:aj;var xz=new ed("",vf==null?void 0:vf.experiments,!1);xz.duration=aj||0;for(var vHn=g.b(pW),yQ$=vHn.next();!yQ$.done;yQ$=vHn.next()){var Ez=yQ$.value,LJP=Kk(Ez,Nnr,xz.duration),qAH=T2(Ez.init),zX8=T2(Ez.index),K4r=a5(Ez.url,Ez.sp,Ez.s);K4r&&rQ(xz,new dQ(K4r,LJP,qAH,zX8))}pQ6=xz}eWL=pQ6}var aSp=eWL;if(pW.length>0){var xyc=pW[0];if(this.J().playerStyle==="hangouts-meet"&&xyc.url){var Val=g.Rp(xyc.url);this.VU=this.VU||Number(Val.expire)}}var NjH=this.isLivePlayback&& !this.f6&&!this.AQ&&!this.isPremiere;this.N("html5_live_head_playable")&&(!b6(this)&&NjH&&this.Pm("missingLiveHeadPlayable",{}),this.SM.AQ==="yt"&&(aSp.Ne=!0));jJ=aSp}else jJ=null;this.Pm("pafmts",{isManifestFilled:!!jJ})}if(jJ){GZ(this,jJ);var EHD=!0}else EHD=!1;EHD?this.enableServerStitchedDai=this.enableServerStitchedDai&&os(this):this.Im&&(this.SM.AQ==="yt"&&this.fZ()&&this.N("drm_manifestless_unplugged")&&this.N("html5_deprecate_manifestful_fallback")?this.Pm("deprecateMflFallback",{}):this.lZ= !0)}var XpD=h.adpings;XpD&&(this.aM=XpD?SR(XpD):null);var kP3=h.feature;kP3&&(this.Pu=kP3);var O1r=h.referrer;O1r&&(this.referrer=O1r);this.clientScreenNonce=DH(this.clientScreenNonce,h.csn);this.Yn=mJ(this.Yn,h.root_ve_type);this.uH=mJ(this.uH,h.kids_age_up_mode);this.y4||h.kids_app_info==void 0||(this.kidsAppInfo=h.kids_app_info);this.y4&&h.kids_app_info!=null&&(this.kidsAppInfo=h.kids_app_info);this.Q1=B2(this.Q1,h.upg_content_filter_mode);this.unpluggedFilterModeType=mJ(this.unpluggedFilterModeType, h.unplugged_filter_mode_type);var nHi=h.unplugged_location_info;nHi&&(this.UX=nHi);var fS$=h.unplugged_partner_opt_out;fS$&&(this.m3=DH("",fS$));this.h5=B2(this.h5,h.disable_watch_next);this.A6=DH(this.A6,h.internal_ip_override);this.xE=!!h.is_yto_interstitial;(this.interstitials.length||this.xE)&&this.x8.push("yto");var $yL=h.Kq;$yL&&(this.Kq=$yL);this.L=DH(this.L,h.csi_timer);h.watchUrl&&(this.watchUrl=h.watchUrl);var gr=h.watch_endpoint;this.N("html5_attach_watch_endpoint_ustreamer_config")&&gr&& tJL(this,gr);if(gr==null?0:gr.ustreamerConfig)this.qd=MA(gr.ustreamerConfig);var TF3,Atp,S9n=gr==null?void 0:(TF3=gr.loggingContext)==null?void 0:(Atp=TF3.qoeLoggingContext)==null?void 0:Atp.serializedContextData;S9n&&(this.Naz=S9n);g.kk(this.SM)&&this.SM.PS&&(this.embedsRct=DH(this.embedsRct,h.rct),this.embedsRctn=DH(this.embedsRctn,h.rctn));this.MS=this.MS||!!h.pause_at_start;h.default_active_source_video_id&&(this.defaultActiveSourceVideoId=h.default_active_source_video_id)}; g.M.J=function(){return this.SM}; g.M.N=function(h){return this.SM.N(h)}; g.M.B2=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.M.hasSupportedAudio51Tracks=function(){var h;return!((h=this.eh)==null||!h.iP)}; g.M.getUserAudio51Preference=function(){var h=1;V4(this.SM)&&this.N("html5_ytv_surround_toggle_default_off")?h=0:g.LM(this.SM)&&this.isLivePlayback&&this.WM()&&(h=0);var t;return(t=g.GI("yt-player-audio51"))!=null?t:h}; g.M.NA=function(){this.Ui()||(this.G.T||this.G.unsubscribe("refresh",this.NA,this),this.sP(-1))}; g.M.sP=function(h){if(!this.isLivePlayback||!this.X||this.X.flavor!=="fairplay"){var t=j6i(this.G,this.RC);if(t.length>0){for(var Y=g.b(t),L=Y.next();!L.done;L=Y.next())L=L.value,L.startSecs=Math.max(L.startSecs,this.bL()),this.N("html5_cuepoint_identifier_logging")&&L.event==="start"&&this.Pm("cuepoint",{pubCue:L.identifier,segNum:h});this.publish("cuepointupdated",t,h);this.RC+=t.length;if(os(this)&&this.SM.pZ())for(t=g.b(t),Y=t.next();!Y.done;Y=t.next())Y=Y.value,this.Pm("cuepoint",{segNum:h,event:Y.event, startSecs:Y.startSecs,id:Y.identifier.slice(-16)}),Y.event==="start"&&(Y=Y.startSecs,this.aH.start=this.dP,this.aH.end=Y+3)}}}; g.M.JY=function(){this.Ui()||(this.loading=!1,this.publish("dataloaded"))}; g.M.WM=function(){return this.Gt!==void 0?this.Gt:this.Gt=!!this.EX||!!this.G&&eF(this.G)}; g.M.B6=function(h){var t=this;if(this.Ui())return oF();this.m$=this.JQ=this.S=null;qU(this,"html5_high_res_logging_always")&&(this.SM.Cr=!0);return NCL(this,h).then(void 0,function(){return Hn3(t,h)}).then(void 0,function(){return wUp(t)}).then(void 0,function(){return y_3(t)})}; g.M.G7=function(h){this.S=h;lQD(this,this.S.getAvailableAudioTracks());if(this.S){h=g.b(this.S.videoInfos);for(var t=h.next();!t.done;t=h.next()){t=t.value;var Y=t.containerType;Y!==0&&(this.Wp[Y]=t.id)}}h=this.getAvailableAudioTracks();h=h.concat(this.Bi);for(t=0;t0?this.S.getAvailableAudioTracks():this.s0||[]:[]}; g.M.getAudioTrack=function(){var h=this;if(this.W&&!Jy(this.W)){var t=g.Mh(this.getAvailableAudioTracks(),function(q){return q.id===h.W.id}),Y; if(!t&&((Y=this.W.j4)==null?0:Y.id)){var L=this.W.j4.id;t=g.Mh(this.getAvailableAudioTracks(),function(q){return q.j4.id===L}); this.Pm("nat",{id:this.W.id,track:!!t})}return t||this.Bi}if(this.s0){if(!this.ZR)for(t=g.b(this.s0),Y=t.next();!Y.done;Y=t.next())if(Y=Y.value,Y.j4.getIsDefault()){this.ZR=Y;break}return this.ZR||this.Bi}return this.Bi}; g.M.getPlayerResponse=function(){return this.playerResponse}; g.M.getWatchNextResponse=function(){return this.X5}; g.M.getHeartbeatResponse=function(){return this.nk}; g.M.Dk=function(){return this.watchUrl?this.watchUrl:this.SM.getVideoUrl(this.videoId)}; g.M.Jf=function(){return!!this.G&&(wsr(this.G)||W$6(this.G)||y0D(this.G))}; g.M.getEmbeddedPlayerResponse=function(){return this.CL}; g.M.m2=function(){return(this.eventLabel||this.SM.gU)==="shortspage"}; g.M.isAd=function(){return!!this.adFormat}; g.M.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.M.JJ=function(){var h,t,Y;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((h=this.playerResponse)==null?0:(t=h.playerConfig)==null?0:(Y=t.daiConfig)==null?0:Y.ssaEnabledPlayback)}; g.M.YJ=function(){return this.B7}; g.M.oh=function(){return this.If||this.jf}; g.M.kV=function(){return qU(this,"html5_samsung_vp9_live")}; g.M.Pm=function(h,t,Y){this.publish("ctmp",h,t,Y)}; g.M.uX=function(h,t,Y){this.publish("ctmpstr",h,t,Y)}; g.M.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.M.getGetAdBreakContext=function(h,t){h=h===void 0?NaN:h;t=t===void 0?NaN:t;var Y={isSabr:F$(this)},L,q=(L=this.getHeartbeatResponse())==null?void 0:L.adBreakHeartbeatParams;q&&(Y.adBreakHeartbeatParams=q);if(this.N("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(h)&&!isNaN(t)){t=h-t;for(var z in this.G.G)if(L=this.G.G[z],L.info.yx()||L.info.N0())if(L=L.index,L.isLoaded()){z=L.RF(t);L=L.a7(z)+t-L.getStartTime(z);this.Pm("gabc",{t:h.toFixed(3),mt:t.toFixed(3),sg:z,igt:L.toFixed(3)}); Y.livePlaybackPosition={utcTimeMillis:""+(L*1E3).toFixed(0)};break}}return Y}; g.M.isEmbedsShortsMode=function(h,t){if(!g.kk(this.SM)||(this.SM.Wm||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||t)return!1;var Y,L;return!!(((Y=this.embeddedPlayerConfig)==null?0:(L=Y.embeddedPlayerFlags)==null?0:L.isShortsExperienceEligible)&&h.width<=h.height)}; g.M.Gz=function(){g.PD.prototype.Gz.call(this);this.aM=null;delete this.bK;delete this.accountLinkingConfig;delete this.G;this.S=this.nk=this.playerResponse=this.X5=null;this.Df=this.adaptiveFormats="";delete this.botguardData;this.yG=this.suggestions=this.oM=null;this.sabrContextUpdates.clear()};var TC3={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},A_3={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},fQD={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},kS6={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"},nK1={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},OnL={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"},$$b={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.F(w8,g.O);g.M=w8.prototype;g.M.handleExternalCall=function(h,t,Y){var L=this.state.C[h],q=this.state.Y[h],z=L;if(q)if(Y&&e6(Y,v9y))z=q;else if(!L)throw Error('API call from an untrusted origin: "'+Y+'"');this.logApiCall(h,Y);if(z){Y=!1;L=g.b(t);for(q=L.next();!q.done;q=L.next())if(String(q.value).includes("javascript:")){Y=!0;break}Y&&g.bc(Error('Dangerous call to "'+h+'" with ['+t+"]."));return z.apply(this,t)}throw Error('Unknown API method: "'+h+'".');}; g.M.logApiCall=function(h,t,Y){var L=this.app.J();L.K1&&!this.state.L.has(h)&&(this.state.L.add(h),g.tq("webPlayerApiCalled",{callerUrl:L.loaderUrl,methodName:h,origin:t||void 0,playerStyle:L.playerStyle||void 0,embeddedPlayerMode:L.Wm,errorCode:Y}))}; g.M.publish=function(h){var t=g.OL.apply(1,arguments);this.state.S.publish.apply(this.state.S,[h].concat(g.p(t)));if(h==="videodatachange"||h==="resize"||h==="cardstatechange")this.state.T.publish.apply(this.state.T,[h].concat(g.p(t))),this.state.W.publish.apply(this.state.W,[h].concat(g.p(t)))}; g.M.jM=function(h){var t=g.OL.apply(1,arguments);this.state.S.publish.apply(this.state.S,[h].concat(g.p(t)));this.state.T.publish.apply(this.state.T,[h].concat(g.p(t)))}; g.M.PZ=function(h){var t=g.OL.apply(1,arguments);this.state.S.publish.apply(this.state.S,[h].concat(g.p(t)));this.state.T.publish.apply(this.state.T,[h].concat(g.p(t)));this.state.W.publish.apply(this.state.W,[h].concat(g.p(t)))}; g.M.Uz=function(h){var t=g.OL.apply(1,arguments);this.state.S.publish.apply(this.state.S,[h].concat(g.p(t)));this.state.T.publish.apply(this.state.T,[h].concat(g.p(t)));this.state.W.publish.apply(this.state.W,[h].concat(g.p(t)));this.state.X.publish.apply(this.state.X,[h].concat(g.p(t)))}; g.M.N=function(h){return this.app.J().N(h)}; g.M.Gz=function(){if(this.state.element){var h=this.state.element,t;for(t in this.state.G)this.state.G.hasOwnProperty(t)&&(h[t]=null);this.state.element=null}g.O.prototype.Gz.call(this)};g.F(Co,g.Mz);Co.prototype.publish=function(h){var t=g.OL.apply(1,arguments);if(this.X.has(h))return this.X.get(h).push(t),!0;var Y=!1;try{for(t=[t],this.X.set(h,t);t.length;)Y=g.Mz.prototype.publish.call.apply(g.Mz.prototype.publish,[this,h].concat(g.p(t.shift())))}finally{this.X.delete(h)}return Y};g.F(MU,g.O);MU.prototype.Gz=function(){this.X.dispose();this.W.dispose();this.T.dispose();this.S.dispose();this.L=this.G=this.Y=this.C=this.U=void 0};var D$3=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.F(sY,w8);g.M=sY.prototype;g.M.getApiInterface=function(){return Array.from(this.state.U)}; g.M.DQ=function(h,t){this.state.X.subscribe(h,t)}; g.M.A7P=function(h,t){this.state.X.unsubscribe(h,t)}; g.M.getPlayerState=function(h){return kCi(this.app,h)}; g.M.IB=function(){return kCi(this.app)}; g.M.No0=function(h,t,Y){b5(this)&&($X(this.app,!0,1),Sx(this.app,h,t,Y,1))}; g.M.getCurrentTime=function(h,t,Y){var L=this.getPlayerState(h);if(this.app.getAppState()===2&&L===5){var q;return((q=this.app.getVideoData())==null?void 0:q.startSeconds)||0}return this.N("web_player_max_seekable_on_ended")&&L===0?aX(this.app,h):h?this.app.getCurrentTime(h,t,Y):this.app.getCurrentTime(h)}; g.M.HQ=function(){return this.app.getCurrentTime(1)}; g.M.kR=function(){var h=this.app.a7(1);return isNaN(h)?this.getCurrentTime(1):h}; g.M.yW=function(){return this.app.getDuration(1)}; g.M.SO=function(h,t){h=g.n0(Math.floor(h),0,100);isFinite(h)&&vK(this.app,{volume:h,muted:this.isMuted()},t)}; g.M.IfM=function(h){this.SO(h,!1)}; g.M.C_=function(h){vK(this.app,{muted:!0,volume:this.getVolume()},h)}; g.M.u5b=function(){this.C_(!1)}; g.M.FL=function(h){Zh(this.app)&&!this.N("embeds_enable_emc3ds_muted_autoplay")||vK(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},h)}; g.M.m05=function(){Zh(this.app)&&this.N("embeds_enable_emc3ds_muted_autoplay")||this.FL(!1)}; g.M.getPlayerMode=function(){var h={};this.app.getVideoData().Ye&&(h.pfp={enableIma:this.app.getVideoData().Ye&&this.app.n6().allowImaMonetization,autoplay:Bu(this.app.n6()),mutedAutoplay:this.app.n6().mutedAutoplay});return h}; g.M.Fy=function(){var h=this.app.getPresentingPlayerType();if(h===2&&!this.app.t7()){var t=Kq(this.app.T$());if(!(OLH(t)||g.kk(this.app.J())&&g.R(this.app.k8().getPlayerState(),1024))||nbl(t))return}(t=this.app.Nq().Wd)?t.playVideo():this.app.playVideo(h)}; g.M.m6i=function(){$X(this.app,!0,1);this.Fy()}; g.M.pauseVideo=function(h){var t=this.app.getPresentingPlayerType();if(t!==2||this.app.t7()||OLH(Kq(this.app.T$()))){var Y=this.app.Nq().Wd;Y?Y.pauseVideo():this.app.pauseVideo(t,h)}}; g.M.x00=function(){var h=this.app,t=!1;h.Me.Ds&&(h.m_.publish("pageTransition"),t=!0);h.stopVideo(t)}; g.M.clearVideo=function(){}; g.M.getAvailablePlaybackRates=function(){var h=this.app.J();return h.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(h.W?h.ancestorOrigins[0]:window.location.origin)||h.f1?lPv:h.supportsVarispeedExtendedFeatures?H7v:h.N("web_remix_allow_up_to_3x_playback_rate")&&g.rP(h)?wbn:vP:[1]}; g.M.getPlaybackQuality=function(h){return(h=this.app.Qx(h))?h.getPlaybackQuality():"unknown"}; g.M.FK0=function(){}; g.M.getAvailableQualityLevels=function(h){return(h=this.app.Qx(h))?(h=g.CQ(h.DP(),function(t){return t.quality}),h.length&&(h[0]==="auto"&&h.shift(),h=h.concat(["auto"])),h):[]}; g.M.Nz=function(){return this.getAvailableQualityLevels(1)}; g.M.wu=function(){return this.f$()}; g.M.hk=function(){return 1}; g.M.getVideoLoadedFraction=function(h){return this.app.getVideoLoadedFraction(h)}; g.M.f$=function(){return this.getVideoLoadedFraction()}; g.M.ql=function(){return 0}; g.M.getSize=function(){var h=this.app.Bm().getPlayerSize();return{width:h.width,height:h.height}}; g.M.setSize=function(){this.app.Bm().resize()}; g.M.loadVideoById=function(h,t,Y,L){if(!h)return!1;h=F6(h,t,Y);return this.app.loadVideoByPlayerVars(h,L)}; g.M.VS=function(h,t,Y){h=this.loadVideoById(h,t,Y,1);$X(this.app,h,1)}; g.M.cueVideoById=function(h,t,Y,L){h=F6(h,t,Y);this.app.cueVideoByPlayerVars(h,L)}; g.M.U2=function(h,t,Y){this.cueVideoById(h,t,Y,1)}; g.M.loadVideoByUrl=function(h,t,Y,L){h=m$L(h,t,Y);return this.app.loadVideoByPlayerVars(h,L)}; g.M.vj=function(h,t,Y){h=this.loadVideoByUrl(h,t,Y,1);$X(this.app,h,1)}; g.M.cueVideoByUrl=function(h,t,Y,L){h=m$L(h,t,Y);this.app.cueVideoByPlayerVars(h,L)}; g.M.NT=function(h,t,Y){this.cueVideoByUrl(h,t,Y,1)}; g.M.AZ=function(){var h=this.app.J();if(h.x8)return"";var t=this.app.n6(),Y=void 0;t.isLivePlayback||(Y=Math.floor(this.app.getCurrentTime(1)));return h.getVideoUrl(t.videoId,this.getPlaylistId()||void 0,Y)}; g.M.VW=function(){return this.app.getDebugText()}; g.M.getVideoEmbedCode=function(){var h=this.app.J();if(h.x8)return"";var t=this.app.n6();return h.getVideoEmbedCode(t.isPrivate?"":t.title,this.app.n6().videoId,this.app.Bm().getPlayerSize(),this.getPlaylistId()||void 0)}; g.M.Nm=function(h,t,Y){return Iab(this.app,h,t,Y)}; g.M.removeCueRange=function(h){return this.app.Ks(h)}; g.M.loadPlaylist=function(h,t,Y,L){this.app.loadPlaylist(h,t,Y,L)}; g.M.mJ=function(h,t,Y,L){this.loadPlaylist(h,t,Y,L);$X(this.app,!0,1)}; g.M.cuePlaylist=function(h,t,Y,L){this.app.cuePlaylist(h,t,Y,L)}; g.M.nextVideo=function(h,t){this.app.nextVideo(h,t)}; g.M.R5G=function(){this.nextVideo();$X(this.app,!0,1)}; g.M.previousVideo=function(h){this.app.previousVideo(h)}; g.M.Jim=function(){this.previousVideo();$X(this.app,!0,1)}; g.M.playVideoAt=function(h){this.app.playVideoAt(h)}; g.M.le_=function(h){this.playVideoAt(h);$X(this.app,!0,1)}; g.M.setShuffle=function(h){var t=this.app.getPlaylist();t&&t.setShuffle(h)}; g.M.setLoop=function(h){var t=this.app.getPlaylist();t&&(t.loop=h)}; g.M.bb=function(){var h=this.app.getPlaylist();if(!h)return null;for(var t=[],Y=0;Y=400)if(h=this.n6(),this.K.J().N("client_respect_autoplay_switch_button_renderer"))h=!!h.autoplaySwitchButtonRenderer;else{var t,Y,L,q;h=!!((t=h.getWatchNextResponse())==null?0:(Y=t.contents)==null?0:(L=Y.twoColumnWatchNextResults)==null?0:(q=L.autoplay)==null?0:q.autoplay)!==!1}if(h)this.G||(this.G=!0,this.hC(this.G),this.K.J().N("web_player_autonav_toggle_always_listen")||bOc(this), t=this.n6(),this.Qr(t.autonavState),this.K.logVisibility(this.element,this.G));else if(this.G=!1,this.hC(this.G),!this.K.J().N("web_player_autonav_toggle_always_listen"))for(this.K.J().N("web_player_autonav_toggle_always_listen"),t=g.b(this.T),Y=t.next();!Y.done;Y=t.next())this.W3(Y.value)}; g.M.Qr=function(h){dmD(this)?this.isChecked=h!==1:((h=h!==1)||(g.JG(),h=g.wj("web_autonav_allow_off_by_default")&&!g.pY(0,141)&&g.Ey("AUTONAV_OFF_BY_DEFAULT")?!1:!g.pY(0,140)),this.isChecked=h);ojL(this)}; g.M.onClick=function(){this.isChecked=!this.isChecked;this.K.JR(this.isChecked?2:1);ojL(this);if(dmD(this)){var h=this.n6().autoplaySwitchButtonRenderer;this.isChecked&&(h==null?0:h.onEnabledCommand)?this.K.jM("innertubeCommand",h.onEnabledCommand):!this.isChecked&&(h==null?0:h.onDisabledCommand)&&this.K.jM("innertubeCommand",h.onDisabledCommand)}this.K.logClick(this.element)}; g.M.getValue=function(){return this.isChecked}; g.M.n6=function(){return this.K.getVideoData(1)};g.F(GBn,i4);g.F(NN,g.mM);NN.prototype.onClick=function(){this.enabled&&(l4(this,!this.checked),this.publish("select",this.checked))}; NN.prototype.getValue=function(){return this.checked}; NN.prototype.setEnabled=function(h){(this.enabled=h)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var WI=["en-CA","en","es-MX","fr-CA"];g.F(MN,NN);MN.prototype.Hm=function(h){h?this.G||(this.Rm.Qb(this),this.G=!0):this.G&&(this.Rm.r0(this),this.G=!1);this.G&&l4(this,xCi())}; MN.prototype.W=function(){g.hp(this.element,"ytp-menuitem-highlight-transition-enabled")}; MN.prototype.S=function(h){var t=xCi();h!==t&&(t=g.JG(),KY(190,h),KY(192,!0),t.save(),this.K.jM("cinematicSettingsToggleChange",h))}; MN.prototype.Gz=function(){this.G&&this.Rm.r0(this);NN.prototype.Gz.call(this)};g.F(FE,i4);FE.prototype.updateCinematicSettings=function(h){this.G=h;var t;(t=this.menuItem)==null||t.Hm(h);this.api.publish("onCinematicSettingsVisibilityChange",h)};g.F(eh1,i4);g.F(s$,i4);s$.prototype.setCreatorEndscreenVisibility=function(h){var t;(t=kN(this.api.T$()))==null||t.hC(h)}; s$.prototype.G=function(h){function t(L){L==="creatorendscreen"&&(L=kN(Y.api.T$()))&&L.y7Q(Y.hideButton)} var Y=this;this.hideButton=h;this.events.V(this.api,"modulecreated",t);t("creatorendscreen")};g.F(jy,NN);jy.prototype.W=function(h){this.S(h?1:0)}; jy.prototype.T=function(){var h=this.hasDrcAudioTrack(),t=this.G()===1&&h;l4(this,t);this.setEnabled(h)}; jy.prototype.Gz=function(){this.Rm.r0(this);NN.prototype.Gz.call(this)};g.F(Z3,i4);Z3.prototype.getDrcUserPreference=function(){return this.G}; Z3.prototype.setDrcUserPreference=function(h){g.dK("yt-player-drc-pref",h,31536E3);h!==this.G&&(this.G=h,this.updateEnvironmentData(),this.T()&&this.api.wv())}; Z3.prototype.updateEnvironmentData=function(){this.api.J().lR=this.G===1}; Z3.prototype.T=function(){var h,t,Y=(h=this.api.getVideoData())==null?void 0:(t=h.S)==null?void 0:t.G;if(!Y)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.N("mta_drc_mutual_exclusion_removal")){var L,q,z=(L=this.api.Xm())==null?void 0:(q=L.j4)==null?void 0:q.id;return OM(Y,function(V){var l;return V.audio.G&&((l=V.j4)==null?void 0:l.id)===z})}return OM(Y,function(V){var l; return((l=V.audio)==null?void 0:l.G)===!0})};g.F(b4,i4);b4.prototype.onVideoDataChange=function(){var h=this,t=this.api.getVideoData();this.api.z6("embargo",1);var Y=t==null?void 0:t.bT.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(Y==null?0:Y.length)?pG$(this,Y.filter(function(L){return JEn(h,L)})):(t==null?0:t.cueRanges)&&pG$(this,t.cueRanges.filter(function(L){return JEn(h,L)}))}; b4.prototype.T=function(h){return h.embargo!==void 0}; b4.prototype.Gz=function(){i4.prototype.Gz.call(this);this.G={}};g.F(o8,i4); o8.prototype.addEmbedsConversionTrackingParams=function(h){var t=this.api.J(),Y=t.widgetReferrer,L=t.dP,q=this.G,z="",V=t.getWebPlayerContextConfig();V&&(z=V.embedsIframeOriginParam||"");Y.length>0&&(h.embeds_widget_referrer=Y);L.length>0&&(h.embeds_referring_euri=L);t.W&&z.length>0&&(h.embeds_referring_origin=z);V&&V.embedsFeature&&(h.feature=V.embedsFeature);q.length>0&&(t.N("embeds_web_enable_lite_experiment_control_arm_logging")?q.unshift(28572):g.gK(g.R9(t))&&q.unshift(159628),t=q.join(","),t= g.xT()?t:g.QL(t,4),h.source_ve_path=t);this.G.length=0};g.F(vjL,i4);g.F(Kq3,i4);g.F(dR,g.O);dR.prototype.Gz=function(){g.O.prototype.Gz.call(this);this.G=null;this.T&&this.T.disconnect()};g.F(xmb,i4);g.F(Ge,g.I);Ge.prototype.show=function(){g.I.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Ge.prototype.stopTimer=function(){this.G&&(this.G.dispose(),this.G=null)}; Ge.prototype.onVideoDataChange=function(h){var t,Y,L=(t=this.api.getVideoData())==null?void 0:(Y=t.getPlayerResponse())==null?void 0:Y.playabilityStatus;L&&(t=EjW(L),g.R(this.api.getPlayerStateObject(),128)||h==="dataloaderror"||!t?(this.T=0,this.stopTimer(),this.hide()):(h=(t.remainingTimeSecs||0)*1E3,h>0&&(this.show(),this.updateValue("label",vG(t.label)),OOL(this,h))))}; Ge.prototype.Gz=function(){this.stopTimer();g.I.prototype.Gz.call(this)};g.F(nj$,i4);g.F(QO,g.I);QO.prototype.onClick=function(){this.m_.logClick(this.element);this.m_.jM("onFullerscreenEduClicked")}; QO.prototype.Hm=function(){this.m_.isFullscreen()?this.G?this.fade.hide():this.fade.show():this.hide();this.m_.logVisibility(this.element,this.m_.isFullscreen()&&!this.G)};g.F(rR,i4);rR.prototype.updateFullerscreenEduButtonSubtleModeState=function(h){var t;(t=this.G)!=null&&(g.iA(t.element,"ytp-fullerscreen-edu-button-subtle",h),h&&!t.T&&(t.element.setAttribute("title","Scroll for details"),c5(t.m_,t.element,t),t.T=!0))}; rR.prototype.updateFullerscreenEduButtonVisibility=function(h){var t;(t=this.G)!=null&&(t.G=h,t.Hm())};g.F(fvr,g.I);g.F(AE1,i4);g.F(cI,i4);cI.prototype.getSphericalProperties=function(){var h=g.xl(this.api.T$());return h?h.getSphericalProperties():{}}; cI.prototype.setSphericalProperties=function(h){if(h){var t=g.xl(this.api.T$());t&&t.setSphericalProperties(h,!0)}};g.F(u4,i4);g.M=u4.prototype;g.M.createClientVe=function(h,t,Y,L){this.api.createClientVe(h,t,Y,L===void 0?!1:L)}; g.M.createServerVe=function(h,t,Y){this.api.createServerVe(h,t,Y===void 0?!1:Y)}; g.M.setTrackingParams=function(h,t){this.api.setTrackingParams(h,t)}; g.M.logClick=function(h,t){this.api.logClick(h,t)}; g.M.logVisibility=function(h,t,Y){this.api.logVisibility(h,t,Y)}; g.M.hasVe=function(h){return this.api.hasVe(h)}; g.M.destroyVe=function(h){this.api.destroyVe(h)};var IvD=!1;JX.prototype.setPlaybackRate=function(h){this.playbackRate=Math.max(1,h)}; JX.prototype.getPlaybackRate=function(){return this.playbackRate};xt.prototype.E4=function(h){var t=g.pA(h.info.G.info,this.Cb.fZ),Y=h.info.Kb+this.W,L=h.info.startTime*1E3;if(this.policy.JQ)try{L=this.policy.JQ?g.Fo(h)*1E3:h.info.startTime*1E3}catch(V){Math.random()>.99&&this.logger&&(L=Ya(h.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:h.info.uL(),encodedDataView:g.Gv(L,4)})),L=h.info.startTime*1E3}var q=h.info.clipId,z=this.policy.JQ?g.P_r(h)*1E3:h.info.duration*1E3;this.policy.JQ&&(L<0||z<0)&&(this.logger&&(this.logger({missingSegInfo:h.info.uL(), startTimeMs:L,durationMs:z}),this.policy.wd||(L<0&&(L=h.info.startTime*1E3),z<0&&(z=h.info.duration*1E3))),this.policy.wd&&(L<0&&(L=h.info.startTime*1E3),z<0&&(z=h.info.duration*1E3)));return{formatId:t,Kb:Y,startTimeMs:L,clipId:q,FN:z}}; xt.prototype.oY=function(h){this.timestampOffset=h};E$.prototype.seek=function(h,t){h!==this.targetTime&&(this.seekCount=0);this.targetTime=h;var Y=this.videoTrack.T,L=this.audioTrack.T,q=this.audioTrack.ND,z=w8c(this,this.videoTrack,h,this.videoTrack.ND,t);t=w8c(this,this.audioTrack,this.policy.R7?h:z,q,t);h=Math.max(h,z,t);this.W=!0;this.Cb.isManifestless&&(zGW(this,this.videoTrack,Y),zGW(this,this.audioTrack,L));return h}; E$.prototype.isSeeking=function(){return this.W}; E$.prototype.rL=function(h){this.T=h}; var HhL=2/24;var X8b=0;g.M=BI.prototype;g.M.Hr=function(){this.L=this.now();VSD(this.TD,this.L);this.S4.Hr()}; g.M.oG=function(h,t){var Y=this.policy.T?(0,g.FH)():0;PI(this,h,t);h-this.U<10&&this.T>0||this.XJ(h,t);this.S4.oG(h,t);this.policy.T&&(h=(0,g.FH)()-Y,this.Q4+=h,this.tQ=Math.max(h,this.tQ))}; g.M.XJ=function(h,t){var Y=(h-this.U)/1E3,L=t-this.S;this.rA||(uE(this.TD,Y,L),this.Yx(Y,L));this.U=h;this.S=t}; g.M.q4=function(){this.Wm&&U9L(this);this.S4.q4()}; g.M.AK=function(h){this.Wm||(this.Wm=this.X-this.Ds+h,this.dP=this.X,this.Im=this.C)}; g.M.vr=function(h,t){h=h===void 0?this.C:h;t=t===void 0?this.X:t;this.T>0||(this.Y=h,this.T=t,this.AQ=this.isActive=!0)}; g.M.P7=function(){return this.KC||2}; g.M.Ve=function(){}; g.M.cA=function(){var h,t={rn:this.requestNumber,rt:(this.C-this.G).toFixed(),lb:this.X,stall:(1E3*this.W).toFixed(),ht:(this.L-this.G).toFixed(),elt:(this.Y-this.G).toFixed(),elb:this.T,d:(h=this.gU)==null?void 0:h.LC()};this.url&&S1p(t,this.url);this.policy.T&&(t.mph=this.tQ.toFixed(),t.tph=this.Q4.toFixed());t.ulb=this.X5;t.ult=this.x8;return t}; g.M.now=function(){return(0,g.FH)()}; g.M.deactivate=function(){this.isActive&&(this.isActive=!1)};g.F(D3,BI);g.M=D3.prototype;g.M.cA=function(){var h=BI.prototype.cA.call(this);h.pb=this.ZL;h.pt=(1E3*this.MD).toFixed();h.se=this.y4;return h}; g.M.v0=function(){var h=this.S4;this.JQ||(this.JQ=h.v0?h.v0():1);return this.JQ}; g.M.wi=function(){return this.DC?this.v0()!==1:!1}; g.M.Hv=function(h,t,Y){if(!this.Hq){this.Hq=!0;if(!this.rA){PI(this,h,t);this.XJ(h,t);var L=this.v0();this.y4=Y;if(!this.rA)if(L===2){L=h-this.Y0)||hz(this,L,t),this.T>0&&rG(this.TD,t,this.W));h=(h-this.G)/ 1E3||.01;this.policy.Y&&!(this.T>0)||Q5(this.TD,h,this.S,MFi(this),this.QE)}this.deactivate()}}; g.M.Nr=function(h,t,Y){Y&&(this.JQ=2);h<0&&this.KC&&(h=this.KC);t?this.Y8+=h:this.lP+=h}; g.M.P7=function(){return this.lP||this.Y8||BI.prototype.P7.call(this)}; g.M.XJ=function(h,t){var Y=(h-this.U)/1E3,L=t-this.S,q=this.v0();this.isActive?q===1&&((L>0||this.policy.X)&&(Y>.2||L<1024)?(this.W+=Y,L>0&&Y>.2&&hz(this,this.lz?Y:.05,L),this.Pq=!0):L>0&&(hz(this,Y,L),this.Pq=!0)):t&&t>=this.policy.G&&this.vr(h,t);BI.prototype.XJ.call(this,h,t)}; g.M.vU=function(h){if(!this.rA){PI(this,h,this.X);var t=(h-this.G)/1E3;this.v0()!==2&&this.T>0&&(this.W+=(h-this.U)/1E3,rG(this.TD,this.S,this.W));Q5(this.TD,t,this.S,MFi(this),this.QE,!0);h=(h-this.U)/1E3;uE(this.TD,h,0);this.Yx(h,0)}}; g.M.vr=function(h,t){h=h===void 0?this.C:h;t=t===void 0?this.X:t;if(!(this.T>0)&&(BI.prototype.vr.call(this,h,t),this.v0()===1)){t=(this.L-this.G)/1E3;var Y=(h-this.L)/1E3;this.DC&&tz(this,this.now());this.G$||this.rA||(this.KC&&(Y=Math.max(0,Y-this.KC)),h=this.TD,h.Y.Fv(1,t),h.gU.Fv(1,Y))}}; g.M.c5=function(){this.DC&&tz(this,this.now());return this.Ne}; g.M.IN=function(){var h;if(h=this.S>this.DB)h=(h=this.S)?h>=this.policy.G:!1;return h}; g.M.Td=function(){return this.yG}; g.M.aU=function(h){h=h===void 0?this.now():h;if(this.DC){tz(this,h);if(this.JQ?this.wi():this.R0!==this.Zx){var t=this.Zx;if(h0?Y+h:Y+Math.max(h,t)}; g.M.hx=function(){return this.now()-this.Y}; g.M.bY=function(){return(this.S-this.T)*1E3/this.hx()||0}; g.M.z5=function(){return this.Y};iH.prototype.feed=function(h){DN(this.G,h);this.WZ()}; iH.prototype.WZ=function(){if(this.W){if(!this.G.totalLength)return;var h=this.G.split(this.S-this.T),t=h.CM;h=h.dV;if(!this.S4.AK(this.W,t,this.T,this.S))return;this.T+=t.totalLength;this.G=h;this.T===this.S&&(this.W=this.S=this.T=void 0)}for(;;){var Y=0;h=g.b(ZhL(this.G,Y));t=h.next().value;Y=h.next().value;Y=g.b(ZhL(this.G,Y));h=Y.next().value;Y=Y.next().value;if(t<0||h<0)break;if(!(Y+h<=this.G.totalLength)){if(!(this.S4.AK&&Y+1<=this.G.totalLength))break;Y=this.G.split(Y).dV;this.S4.AK(t,Y,0, h)&&(this.W=t,this.T=Y.totalLength,this.S=h,this.G=new mD([]));break}h=this.G.split(Y).dV.split(h);Y=h.dV;this.S4.Bb(t,h.CM);this.G=Y}}; iH.prototype.dispose=function(){this.G=new mD};g.M=YR.prototype;g.M.lY=function(){return 0}; g.M.cn=function(){return null}; g.M.aE=function(){return null}; g.M.qr=function(){return this.state>=1}; g.M.isComplete=function(){return this.state>=3}; g.M.X8=function(){return this.state===5}; g.M.onStateChange=function(){}; g.M.H3=function(h){var t=this.state;this.state=h;this.onStateChange(t);this.callback&&this.callback(this,t)}; g.M.kd=function(h){h&&this.state=this.xhr.HEADERS_RECEIVED}; g.M.getResponseHeader=function(h){try{return this.xhr.getResponseHeader(h)}catch(t){return""}}; g.M.Rc=function(){return+this.getResponseHeader("content-length")}; g.M.uJ=function(){return this.T}; g.M.b3=function(){return this.status>=200&&this.status<300&&!!this.T}; g.M.kS=function(){return this.G.totalLength>0}; g.M.gb=function(){var h=this.G;this.G=new mD;return h}; g.M.zH=function(){return this.G}; g.M.abort=function(){this.Ui=!0;this.xhr.abort()}; g.M.Mf=function(){return!0}; g.M.Ok=function(){return this.S}; g.M.oD=function(){return""};g.M=Gop.prototype;g.M.getResponseHeader=function(h){return h==="content-type"?this.G.get("type"):""}; g.M.abort=function(){}; g.M.jx=function(){return!0}; g.M.Rc=function(){return this.range.length}; g.M.uJ=function(){return this.loaded}; g.M.b3=function(){return!!this.loaded}; g.M.kS=function(){return!!this.T.totalLength}; g.M.gb=function(){var h=this.T;this.T=new mD;return h}; g.M.zH=function(){return this.T}; g.M.Mf=function(){return!0}; g.M.Ok=function(){return!!this.error}; g.M.oD=function(){return this.error};g.M=r6L.prototype;g.M.start=function(h){var t={credentials:"include",cache:"no-store"};Object.assign(t,this.C);this.W&&(t.signal=this.W.signal);h=new Request(h,t);fetch(h).then(this.L,this.onError).then(void 0,hq)}; g.M.onDone=function(){this.Ui()||this.S4.q4()}; g.M.getResponseHeader=function(h){return this.responseHeaders?this.responseHeaders.get(h):null}; g.M.jx=function(){return!!this.responseHeaders}; g.M.uJ=function(){return this.T}; g.M.Rc=function(){return+this.getResponseHeader("content-length")}; g.M.b3=function(){return this.status>=200&&this.status<300&&!!this.T}; g.M.kS=function(){return!!this.G.totalLength}; g.M.gb=function(){var h=this.G;this.G=new mD;return h}; g.M.zH=function(){return this.G}; g.M.Ui=function(){return this.X}; g.M.abort=function(){this.S&&this.S.cancel().catch(function(){}); this.W&&this.W.abort();this.X=!0}; g.M.Mf=function(){return!0}; g.M.Ok=function(){return this.U}; g.M.oD=function(){return this.errorMessage};g.M=c6W.prototype;g.M.onDone=function(){if(!this.Ui){this.status=this.xhr.status;try{this.response=this.xhr.response,this.T=this.response.byteLength}catch(h){}this.G=!0;this.S4.q4()}}; g.M.jV=function(){this.xhr.readyState===2&&this.S4.Hr()}; g.M.O9=function(h){this.Ui||(this.status=this.xhr.status,this.G||(this.T=h.loaded),this.S4.oG((0,g.FH)(),h.loaded))}; g.M.jx=function(){return this.xhr.readyState>=2}; g.M.getResponseHeader=function(h){try{return this.xhr.getResponseHeader(h)}catch(t){return g.bc(Error("Could not read XHR header "+h)),""}}; g.M.Rc=function(){return+this.getResponseHeader("content-length")}; g.M.uJ=function(){return this.T}; g.M.b3=function(){return this.status>=200&&this.status<300&&this.G&&!!this.T}; g.M.kS=function(){return this.G&&!!this.response&&!!this.response.byteLength}; g.M.gb=function(){var h=this.response;this.response=void 0;return new mD([new Uint8Array(h)])}; g.M.zH=function(){return new mD([new Uint8Array(this.response)])}; g.M.abort=function(){this.Ui=!0;this.xhr.abort()}; g.M.Mf=function(){return!1}; g.M.Ok=function(){return!1}; g.M.oD=function(){return""};g.F(zX,g.O);zX.prototype.kQ=function(){if(!this.J7.length)return[];var h=this.J7;this.J7=[];this.S=g.U0(h).info;return h}; zX.prototype.M1=function(){return this.J7}; zX.prototype.Gz=function(){g.O.prototype.Gz.call(this);this.G=null;this.J7.length=0;this.bP.length=0;this.S=null};g.F(N2,g.O);g.M=N2.prototype; g.M.uI5=function(){if(!this.Ui()){var h=(0,g.FH)(),t=!1;if(this.policy.hV){h=h-(this.timing.T>0?this.timing.Y:this.timing.G)-this.timing.P7()*1E3;var Y=v_(lH(this),!1);h>=2E3*Y?t=!0:h>=this.policy.Bw*Y&&(this.G=this.policy.LN)}else if(this.timing.T>0){if(this.X){this.policy.dP&&(this.G=0);return}var L=this.timing.Td();this.timing.aU();var q=this.timing.Td();q-L>=this.policy.Y1*.8?(this.G++,this.logger.debug(function(){return"Mispredicted by "+(q-L).toFixed(0)}),t=this.G>=5):this.G=0}else{var z=h- this.timing.c5(); this.policy.LN&&z>0&&(this.G+=1);t=v_(lH(this),!1)*this.policy.bT;(t=z>t*1E3)&&this.logger.debug(function(){return"Elbow late by "+z.toFixed(3)})}this.G>0&&this.S4.gi(); t?this.Pp():this.T.start()}}; g.M.Pp=function(){this.W=!0;this.S4.Bk();this.lastError="net.timeout";wc(this)}; g.M.canRetry=function(h){var t=lH(this);h=h?this.policy.UB:this.policy.JH;return t.timedOut0&&(t=LW(t.G,0),h.ubyte=t,Y===1&&t===0&&(h.b248180278=!0))}this.Dg&&(h.rc=this.policy.Bo?this.Dg:this.Dg.toString());this.policy.fn&&this.qX&&(h.tr=this.qX);h.itag=this.info.bP[0].G.info.itag;h.ml=""+ +this.info.bP[0].G.z3();h.sq=""+this.info.bP[0].Kb;this.uV&&(h.ifi=""+ +fh(this.info.e4.T));this.Dg!==410&&this.Dg!==500&&this.Dg!==503||(h.fmt_unav="true");var L;(Y=this.errorMessage||((L=this.xhr)==null?void 0: L.oD()))&&(h.msg=Y);this.Wa&&(h.smb="1");this.info.isDecorated()&&(h.sdai="1");return h}; g.M.tq=function(){return FBL(this.timing)}; g.M.oD=function(){return this.xhr.oD()||""}; g.M.IN=function(){return this.isComplete()||this.timing.IN()}; g.M.oG=function(){!this.Ui()&&this.xhr&&(this.Dg=this.xhr.status,this.policy.e8&&this.T3&&this.SU(!1),this.Cq()?this.kd(2):!this.J2&&this.IN()&&(this.kd(),this.J2=!0))}; g.M.Hr=function(){if(!this.Ui()&&this.xhr){if(!this.Gg&&this.xhr.jx()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var h=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Gg=((0,g.FH)()-h)/1E3}this.xhr.jx()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.ZE&&!hR6()&&g.dK("yt-player-headers-readable",!0,2592E3);h=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var t=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),Y;(Y=this.Qy)==null||Y.stop();this.wA=h||this.wA; this.Wo=t||this.Wo}}; g.M.q4=function(){var h=this.xhr;if(!this.Ui()&&h){this.Dg=h.status;h=this.Qq(h);if(this.policy.fn){var t;(t=this.Qy)==null||t.stop()}h===5?wc(this.Zo):this.H3(h);this.Zo.T.stop()}}; g.M.Qq=function(h){var t=this;lqL(this);if(WJ(this.Zo,this.xhr.status,this.Z1?this.timing.AQ||this.vF:this.xhr.b3(),!1,this.bF))return 5;var Y="";yX(this.Zo,this.xhr)&&(Y=KBp(this.Zo,this.xhr));if(Y)return pz(lH(this.Zo)),this.info.ZJ(this.uV,Y),3;Y=h.uJ();if(this.jT){this.SU(!0);lqL(this);if(WJ(this.Zo,this.xhr.status,this.timing.AQ||this.vF,!1,this.bF))return 5;if(!this.Kc){if(this.vF)return pz(lH(this.Zo)),3;this.Zo.lastError="net.closed";return 5}}else{if(WJ(this.Zo,this.xhr.status,this.xhr.b3(), !1,this.bF))return 5;var L=this.info.S;if(L&&L!==Y||h.Ok())return this.Zo.lastError="net.closed",5;this.SU(!0)}L=bh$(this)?h.getResponseHeader("X-Bandwidth-Est"):0;if(h=bh$(this)?h.getResponseHeader("X-Bandwidth-Est3"):0)this.Az=!0,this.policy.Qc&&(L=h);p8L(this.Zo,Y,L?Number(L):0,this.info.bP[0].type===5);this.logger.debug(function(){var q=t.timing;return"Succeeded, rtpd="+(q.MD*1E3+q.G-Date.now()).toFixed(0)}); return 4}; g.M.canRetry=function(){this.Ui();var h=this.info.isDecorated();return this.Zo.canRetry(h)}; g.M.onStateChange=function(){this.isComplete()&&(this.policy.dJ?this.Bk():this.timing.deactivate())}; g.M.Pp=function(){this.Zo.Pp()}; g.M.gi=function(){this.callback&&this.callback(this,this.state)}; g.M.Du=function(){return this.Zo.Du()}; g.M.dispose=function(){YR.prototype.dispose.call(this);this.Zo.dispose();var h;(h=this.Qy)==null||h.dispose();this.policy.dJ||this.Bk()}; g.M.Bk=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.M.kQ=function(){if(!this.M1().length)return[];this.Et=!0;return this.T3.kQ()}; g.M.Cq=function(){if(this.state<1)return!1;if(this.T3&&this.T3.J7.length)return!0;var h;return((h=this.xhr)==null?0:h.kS())?!0:!1}; g.M.M1=function(){this.SU(!1);return this.T3?this.T3.M1():[]}; g.M.SU=function(h){try{if(h||this.xhr.jx()&&this.xhr.kS()&&!yX(this.Zo,this.xhr)&&!this.wj)this.T3||(this.T3=new zX(this.policy,this.info.bP)),this.xhr.kS()&&(this.jT?this.jT.feed(this.xhr.gb()):VX(this.T3,this.xhr.gb(),h&&!this.xhr.kS()))}catch(t){this.jT?zfr(this,t):g.bc(t)}}; g.M.Bb=function(h,t){switch(h){case 21:h=t.split(1).dV;VGD(this,h);break;case 22:this.Kc=!0;VX(this.T3,new mD([]),!0);break;case 43:if(h=Fw(new Wf(t),1))this.info.ZJ(this.uV,h),this.vF=!0;break;case 45:t=zo(new Wf(t));h=t.QT;t=t.ES;h&&t&&(this.LD=h/t);break;case 44:this.zN=nOp(new Wf(t));var Y,L,q;!this.timing.AQ&&((Y=this.zN)==null?void 0:Y.action)===4&&((L=this.zN)==null?0:(q=L.hE)==null?0:q.Z1)&&(this.Z1=this.zN.hE.Z1);break;case 53:this.policy.fn&&(h=EOD(new Wf(t)).Tu)&&(this.Qy||(this.Tu=h,this.Qy= new g.nE(this.sx,h,this)),this.Qy.start());break;case 60:this.fU=q9(new Wf(t));break;case 58:if(h=Uo1(new Wf(t)))this.vL=h,h.vL===3&&(this.bF=!0)}}; g.M.AK=function(h,t,Y,L){Y||this.timing.AK(L);if(h!==21)return!1;if(h=this.policy.e8)if(h*=this.info.bP[0].G.info.Lb,t.totalLength+Y!==L&&t.totalLength0)return!1;if(!this.xhr.jx())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.jT)var h=!this.info.S;else this.xhr.Rc()?h=!1:(h=this.xhr.getResponseHeader("content-type"),h=h==="audio/mp4"||h==="video/mp4"||h==="video/webm");if(!h)return!1;if(isNaN(this.info.SF)){h=this.xhr.getResponseHeader("x-head-seqnum");var t=this.timing.policy.C?1:0;if(!h)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(h)>this.info.bP[0].Kb+t)return!1}return!0}; g.M.hI=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.M.cn=function(){this.xhr&&(this.wA=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.wA}; g.M.aE=function(){this.xhr&&(this.Wo=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Wo}; g.M.vM=function(){return this.Zo.vM()}; g.M.sx=function(){if(!this.Ui()&&this.xhr){this.qX="heartbeat";var h=this.Zo;h.G+=2;this.gi()}};g.F(Zg,BI);g.M=Zg.prototype;g.M.XJ=function(h,t){var Y=(h-this.U)/1E3,L=t-this.S;this.T>0?L>0&&(this.R0&&(Y>.2||L<1024?(this.W+=Y,Y>.2&&Hzr(this,.05,L)):Hzr(this,Y,L)),this.Zx&&(this.Ne+=L,this.lP+=Y)):t>this.policy.G&&this.vr(h,t);BI.prototype.XJ.call(this,h,t)}; g.M.Hv=function(h,t){PI(this,h,t);this.XJ(h,t);this.R0&&(t=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.T>0&&rG(this.TD,this.Ne,this.W),h=(h-this.G)/1E3||.01,this.policy.Y&&!(this.T>0)||Q5(this.TD,h,this.S,t,!1))}; g.M.vU=function(h){PI(this,h,this.X);var t=(h-this.U)/1E3;uE(this.TD,t,0);this.Yx(t,0);!this.R0&&this.T>0||(t=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.T>0&&(this.W+=(h-this.U)/1E3,rG(this.TD,this.Ne,this.W)),Q5(this.TD,(h-this.G)/1E3||.01,this.S,t,!1,!0))}; g.M.sb=function(h){h=h.G1||2147483647;(h&2)!==2&&(this.Zx=!1);(h&1)===1&&(this.R0=!0)}; g.M.vG=function(h){h=h.G1||2147483647;(h&2)===2&&(this.Zx=!1);(h&1)===1&&(this.R0=!1)}; g.M.z5=function(){return this.Y}; g.M.hx=function(){var h=this.Zx?this.now()-this.U:0;return Math.max(this.lP*1E3+h,1)}; g.M.bY=function(){return this.Ne*1E3/this.hx()}; g.M.vr=function(h,t){h=h===void 0?this.C:h;t=t===void 0?this.X:t;this.T>0||(BI.prototype.vr.call(this,h,t),t=this.TD,h=(h-this.L)/1E3,t.Y.Fv(1,(this.L-this.G)/1E3),t.gU.Fv(1,h))}; g.M.Ve=function(h){this.Y8=h}; g.M.cA=function(){var h=BI.prototype.cA.call(this);h.rbw=this.bY();h.rbe=+this.Zx;h.gbe=+this.R0;h.ackt=(this.Y8-this.G).toFixed();return h}; g.M.aU=function(){}; g.M.Td=function(){return NaN}; g.M.c5=function(){return this.G+this.snapshot.delay*1E3};bH.prototype.Bb=function(h,t){switch(h){case 20:h=new Wf(t);h={t_:Uz(h,1),videoId:Fw(h,2),itag:Uz(h,3),lmt:Uz(h,4),xtags:Fw(h,5),Qj:Uz(h,6),Ik:CW(h,8),xM:Uz(h,9),r_G:Uz(h,10),startMs:Uz(h,11),durationMs:Uz(h,12),XU:Uz(h,14),timeRange:sz(h,15,mC1),ix:Uz(h,16),Fx:Uz(h,17),clipId:Fw(h,1E3)};this.Gf(h);break;case 21:this.xF(t,!1);break;case 22:this.cL(t);break;case 31:h=bT(t,uqL);this.XV(h);break;case 52:h=bT(t,k4b);this.I8(h);break;default:this.b6(h,t)}}; bH.prototype.Gf=function(){}; bH.prototype.b6=function(){};g.F(oJ,bH);g.M=oJ.prototype; g.M.b6=function(h,t){switch(h){case 35:this.WL(t);break;case 44:this.jX(t);break;case 43:this.EO(t);break;case 53:this.Wc(t);break;case 55:h=new Wf(t);sz(h,1,$oL);sz(h,2,SXL);break;case 56:this.Y6();break;case 57:this.VO(t);break;case 42:this.h4(t);break;case 45:this.QF(t);break;case 59:this.JO(t);break;case 51:this.b5(t);break;case 49:this.sb(t);break;case 50:this.vG(t);break;case 47:this.Iv(t);break;case 58:this.Dh(t);break;case 61:this.S4.hJ.Ve((0,g.FH)());break;case 66:this.Pw(t);break;case 46:this.Fw(t); break;case 67:this.onSnackbarMessage(t)}}; g.M.b5=function(h){h=new Wf(h);h={mQ_:Z1(h,1,YQ),l60:Z1(h,2,YQ)};this.S4.b5(h)}; g.M.JO=function(h){var t=new Wf(h);h=jm(t,1);var Y=jm(t,2);t=jm(t,3);this.S4.JO(h,Y,t)}; g.M.QF=function(h){h=zo(new Wf(h));this.S4.QF(h)}; g.M.Iv=function(h){h=bT(h,pVp);this.S4.Iv(h)}; g.M.h4=function(h){h=new Wf(h);h={videoId:Fw(h,1),formatId:sz(h,2,YQ),endTimeMs:Uz(h,3),sYM:Uz(h,4),mimeType:Fw(h,5),aA:sz(h,6,oOi),indexRange:sz(h,7,oOi),K7:sz(h,8,don)};this.S4.h4(h)}; g.M.VO=function(h){h=SXL(new Wf(h));this.S4.VO(h)}; g.M.Y6=function(){this.S4.Y6()}; g.M.WL=function(h){h=eVL(new Wf(h));this.S4.WL(h)}; g.M.Wc=function(h){h=EOD(new Wf(h));this.S4.Wc(h)}; g.M.jX=function(h){h=nOp(new Wf(h));this.S4.jX(h)}; g.M.EO=function(h){h={redirectUrl:Fw(new Wf(h),1)};this.S4.EO(h)}; g.M.xF=function(h){var t=LW(h,0);if(h.totalLength!==1){h=h.split(1).dV;var Y=this.T[t]||null;Y&&en(this.S4.Lr,t,Y,h)}}; g.M.cL=function(h){h=LW(h,0);var t=this.T[h]||null;t&&this.S4.cL(h,t)}; g.M.I8=function(h){this.S4.I8(h)}; g.M.Gf=function(h){var t=h.t_,Y=h.Ik,L=h.Qj,q=h.Fx,z=h.ix,V=h.xM,l=h.startMs,H=h.durationMs,w=h.timeRange,W=h.XU,y=h.clipId,X=nz(h);h=BSC.has(b_[""+h.itag]);this.T[t]=X;this.S4.Nr(X,h,{t_:t,Ik:!!Y,Qj:L!=null?L:-1,xM:V!=null?V:-1,startMs:l!=null?l:-1,durationMs:H!=null?H:-1,XU:W,Fx:q,ix:z,clipId:y,timeRange:w})}; g.M.sb=function(h){h={G1:Uz(new Wf(h),1)};this.S4.sb(h)}; g.M.vG=function(h){h={G1:Uz(new Wf(h),1)};this.S4.vG(h)}; g.M.XV=function(h){this.S4.XV(h)}; g.M.Dh=function(h){h=Uo1(new Wf(h));this.S4.Dh(h)}; g.M.Pw=function(h){h={j_:sz(new Wf(h),1,a2b)};this.S4.Pw(h)}; g.M.onSnackbarMessage=function(h){h=Uz(new Wf(h),1);this.S4.onSnackbarMessage(h)}; g.M.Fw=function(h){h=new Wf(h);h={reloadPlaybackParams:sz(h,1,XV$),JD:CW(h,2)};this.S4.Fw(h)};g.F(dc,g.O);g.M=dc.prototype;g.M.NB=function(){return Array.from(this.lL.keys())}; g.M.Hw=function(h){h=this.lL.get(h);var t=h.J7;h.nm+=t.totalLength;h.J7=new mD;return t}; g.M.bj=function(h){return this.lL.get(h).bj}; g.M.F9=function(h){return this.lL.get(h).F9}; g.M.Nr=function(h,t,Y,L){this.lL.get(h)||UWD(this,h,t);t=this.lL.get(h);if(this.Cb){h=MGL(this,h,Y);if(L)for(var q=g.b(h),z=q.next();!z.done;z=q.next()){z=z.value;var V=L;z.x8=V;z.startTime+=V;z.W+=V;z.U+=V}Cn1(this,Y.t_,t,h)}else Y.Ik?t.q8=Y.XU:t.ZO.push(Y),t.KP.push(Y)}; g.M.jP=function(h){var t;return((t=this.lL.get(h))==null?void 0:t.bP)||[]}; g.M.kd=function(){for(var h=g.b(this.lL.values()),t=h.next();!t.done;t=h.next())t=t.value,t.bW&&(t.O9&&t.O9(),t.bW=!1)}; g.M.cL=function(h,t){this.logger.debug(function(){return"[onMediaEnd] formatId: "+t}); var Y=this.lL.get(t);GX?Y&&!Y.bj&&(Y.O8.get(h)?Y.O8.get(h).Jy=!0:Y.O8.set(h,{data:new mD,hd:0,Jy:!0}),Y.F9=!0):Y&&!Y.F9&&(Y.F9=!0)}; g.M.kQ=function(h){if(GX){var t=this.lL.get(h);if(t)for(var Y=g.b(t.O8),L=Y.next();!L.done;L=Y.next()){var q=g.b(L.value);L=q.next().value;q=q.next().value;var z=t.Rh.get(L);if(Rd(z[0])){if(!q.Jy)continue;var V=q.data,l=0,H=[];z=g.b(z);for(var w=z.next();!w.done;w=z.next()){w=w.value;var W=w.S,y=hY(V,l,W);l+=W;H.push(new UJ(w,y))}t.WR.push.apply(t.WR,g.p(H))}else if(q.data.totalLength>0||!z[0].range&&q.Jy)V=void 0,l=z[0],H=q.hd,z=q.data,l.range||(V=q.Jy),V=new UJ(oWb(l,l.T+H,z.totalLength,V),z),q.hd+= V.info.S,t.WR.push(V);t.O8.get(L).data=new mD;q.Jy&&t.O8.delete(L)}h=this.lL.get(h);if(!h)return[];t=h.WR;h.WR=[];Y=g.b(t);for(L=Y.next();!L.done;L=Y.next())h.nm+=L.value.info.S;return t||[]}Y=(t=this.lL.get(h))==null?void 0:t.T3;if(!Y)return[];this.SU(h,Y);return Y.kQ()}; g.M.Cq=function(h){if(GX)return uH(this,h);var t,Y,L;return!!((Y=(t=this.lL.get(h))==null?void 0:t.T3)==null?0:(L=Y.M1())==null?0:L.length)||uH(this,h)}; g.M.SU=function(h,t){for(;uH(this,h);){var Y=this.Hw(h);var L=h;L=this.lL.get(L).bj&&!cJ(this,L);VX(t,Y,L&&X_L(this,h))}}; g.M.Gz=function(){g.O.prototype.Gz.call(this);for(var h=g.b(this.lL.keys()),t=h.next();!t.done;t=h.next())QX(this,t.value);var Y;if((Y=this.bV)==null?0:Y.nI)for(h=g.b(this.lL.values()),t=h.next();!t.done;t=h.next())t=t.value,t.O8.clear(),t.Rh.clear(),t.WR.length=0,t.bP.length=0,t.KP.length=0,t.ZO.length=0;this.lL.clear()}; var GX=!1;g.F(Jz,g.O);g.M=Jz.prototype;g.M.oG=function(){!this.Ui()&&this.xhr&&(this.SU(!1),Ij(this.S4,this))}; g.M.Hr=function(){}; g.M.q4=function(){if(!this.Ui()&&this.xhr){var h=this.Qq();h===5?wc(this.Zo):this.H3(h);this.Zo.T.stop();var t;(t=this.m1)==null||t.stop()}}; g.M.Qq=function(){var h="";yX(this.Zo,this.xhr)&&(h=KBp(this.Zo,this.xhr));if(h)return this.info.e4.ZJ(this.uV,h),3;this.SU(!0);if(WJ(this.Zo,this.xhr.status,this.xhr.b3(),this.info.JL(),this.bF))return 5;if(this.L8)return 3;p8L(this.Zo,this.xhr.uJ(),0,this.JL());this.policy.Im&&M_L(this.S4);return 4}; g.M.SU=function(h){var t=this.xhr;if((h||!yX(this.Zo,this.xhr))&&t.kS()){h=t.gb();var Y=h.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+Y}); this.jT.feed(h)}}; g.M.Bb=function(h,t){this.xhr.Mf()&&h===21&&bzL(this);this.MV.Bb(h,t)}; g.M.AK=function(h,t,Y,L){Y||(this.hJ.AK(L),this.policy.w6&&h===21&&bzL(this));if(h!==21)return!1;this.hJ.AQ=!0;h=t.totalLength;Y||(this.BH=LW(t,0),t=t.split(1).dV);var q=this.policy.A5,z=this.MV.T[this.BH],V=this.Cb.S.get(z);if(q&&V&&(q*=V.info.Lb,h+Y!==L&&h0){this.policy.hV&&this.Zo.T.stop();h=this.hJ.hx();t=this.hJ.bY();var Y=oEr(this,h);if(!(t>Y.Ud||Y.No>0&&this.info.VB()>Y.No)){this.PW=(0,g.FH)();var L;(L=this.m1)==null||L.stop();this.policy.Im&&(L=this.S4,h={qx:Math.round(t*h/1E3),EB:h},L.policy.Im&&(L.gU=h,L.Cg++));this.Pp()}}}}; g.M.Pp=function(){this.Zo.Pp()}; g.M.jX=function(h){this.S4.jX(h,this.QQ())}; g.M.EO=function(h){this.L8=!0;this.info.e4.ZJ(this.uV,h.redirectUrl)}; g.M.sb=function(h){this.hJ instanceof Zg&&this.hJ.sb(h)}; g.M.vG=function(h){this.hJ instanceof Zg&&this.hJ.vG(h)}; g.M.h4=function(h){var t=h.formatId,Y=nz({itag:t.itag,lmt:t.lmt,xtags:t.xtags}),L,q,z=new $E(((L=h.aA)==null?void 0:L.first)||0,((q=h.aA)==null?void 0:q.WX)||0),V,l;L=new $E(((V=h.indexRange)==null?void 0:V.first)||0,((l=h.indexRange)==null?void 0:l.WX)||0);this.Cb.S.get(Y)||(Y=h.K7||{},Y.mimeType=h.mimeType,Y.itag=t.itag,Y.lastModified=""+(t.lmt||0),Y.xtags=t.xtags,h=this.Cb,t=a5(""),Y=vo(Y,null),rQ(h,new dQ(t,Y,z,L)))}; g.M.QF=function(h){this.S4.QF(h,this.QQ())}; g.M.onSnackbarMessage=function(h){if(this.policy.xE)this.S4.onSnackbarMessage(h)}; g.M.XV=function(h){this.Lt=h;this.lf=(0,g.FH)();this.S4.XV(h)}; g.M.JO=function(h,t,Y){this.S4.JO(h,t,Y)}; g.M.VO=function(h){h.scope===2&&(this.zw=h);this.S4.VO(h)}; g.M.Y6=function(){this.X$=!0;this.S4.Y6()}; g.M.b5=function(h){this.policy.Gu&&this.S4.b5(h)}; g.M.Iv=function(h){this.S4.Iv(h,this.QQ())}; g.M.Dh=function(h){h.vL===3&&(this.bF=!0);this.S4.Dh(h)}; g.M.Pw=function(h){this.S4.Pw(h)}; g.M.Fw=function(h){this.S4.Fw(h)}; g.M.canRetry=function(){this.Ui();return this.Zo.canRetry(!1)}; g.M.dispose=function(){if(!this.Ui()){g.O.prototype.dispose.call(this);this.Zo.dispose();var h;(h=this.m1)==null||h.dispose();this.H3(-1);this.Bk()}}; g.M.H3=function(h){this.state=h;Ij(this.S4,this)}; g.M.JL=function(){return this.info.JL()}; g.M.gp=function(){return this.X$}; g.M.wr=function(){return this.zw}; g.M.Nr=function(h,t,Y){Y.clipId&&(this.clipId=Y.clipId);this.policy.T&&!t&&(this.vS=Y.xM);this.Lr.Nr(h,t,Y,0);if(this.policy.w4&&this.Lt&&this.hJ instanceof D3){var L=this.Lt.rB;this.hJ.Nr(Y.durationMs/1E3,t,L>0&&Y.xM+1>=L)}this.Lr.lL.get(h).eq=!0}; g.M.cL=function(h,t){this.Lr.cL(h,t)}; g.M.I8=function(h){this.requestIdentifier=h}; g.M.kQ=function(h){return this.Lr.kQ(h)}; g.M.jP=function(h){return this.Lr.jP(h)}; g.M.Cq=function(h){return this.Lr.Cq(h)}; g.M.NB=function(){return this.Lr.NB()}; g.M.v0=function(){return 1}; g.M.QQ=function(){return this.hJ.requestNumber}; g.M.By=function(){return this.requestIdentifier}; g.M.K6=function(){return this.uV.K6()}; g.M.WJ=function(){this.Bk()}; g.M.Bk=function(){this.hJ.deactivate();var h;(h=this.xhr)==null||h.abort()}; g.M.isComplete=function(){return this.state>=3}; g.M.gR=function(){return this.state===3}; g.M.X8=function(){return this.state===5}; g.M.cX=function(){return this.state===4}; g.M.IE=function(){return this.isComplete()}; g.M.qr=function(){return this.state>=1}; g.M.Du=function(){return this.policy.dP?this.Zo.Du():0}; g.M.gi=function(){this.policy.dP&&Ij(this.S4,this)}; g.M.Ql=function(){return $AL(this.info)}; g.M.vM=function(){return this.Zo.vM()}; g.M.kM=function(){var h=asW(this.Zo);Object.assign(h,AUb(this.info));h.req="sabr";h.rn=this.QQ();var t;if((t=this.xhr)==null?0:t.status)h.rc=this.policy.Bo?this.xhr.status:this.xhr.status.toString();var Y;(t=(Y=this.xhr)==null?void 0:Y.oD())&&(h.msg=t);this.PW&&(Y=oEr(this,this.PW-this.hJ.z5()),h.letm=Y.UC,h.mrbps=Y.Ud,h.mram=Y.No);return h};dWp.prototype.tick=function(h,t){this.ticks[h]=t?window.performance.timing.navigationStart+t:(0,g.FH)()};g.F(vJ,g.PD);g.M=vJ.prototype; g.M.MH=function(h,t,Y,L){if(this.policy.sy&&this.policy.T){var q=h.Wx||null;q?(Ozr(this,h.Kb,kR(this,h.startTime,h.Kb),{Wx:q,Kb:h.Kb,IX:!!t,yx:Y},this.S),L&&this.S&&this.S.CS(h.Kb,h.startTime,this.T,(t==null?void 0:t.G)||[],(t==null?void 0:t.T)||[],(t==null?void 0:t.W)||[],Y,(t==null?void 0:t.sB)||0,(t==null?void 0:t.S)||void 0)):this.T===1&&aJ(this,5,"noad")}else{var z=!1;this.policy.T&&(z=Y?this.Wm===h.Kb:this.R0===h.Kb);if(this.S&&L&&!z){L=[];z=[];var V=[],l=void 0,H=0;t&&(L=t.G,z=t.T,V=t.W,l= t.S,H=t.sB,this.Pm("sdai",{sq:h.Kb,ssvicpns:L.join("."),ssvid:z.join(".")}));this.policy.T&&(Y?this.Wm=h.Kb:this.R0=h.Kb);this.S.CS(h.Kb,h.startTime,this.T,L,z,V,Y,H,l)}this.policy.T?Y&&(this.T===1&&aJ(this,5,"noad"),h.Kb!==((q=this.G)==null?void 0:q.Kb)&&(xW1(this,h,t,Y),isNaN(h.startTime)||EEW(this,h.Kb,kR(this,h.startTime,h.Kb),!!t,this.S))):Y&&xW1(this,h,t)}}; g.M.uW=function(h,t,Y){var L=this.videoTrack.G.index.v3()<=t;this.G={Wx:h,Kb:t,IX:Y};L&&Ka(this,h,t)}; g.M.Dy=function(){this.S&&this.S.Dy()}; g.M.Pm=function(h,t,Y){(h!=="sdai"||this.policy.Xo||(Y===void 0?0:Y))&&this.loader.Pm(h,t)}; g.M.Fe=function(h,t){var Y=this.videoTrack.G.index.RF(h);if(Y>=0){var L;var q=((L=t.Do.Y_(Y,2))==null?void 0:L.g6)||"";if(this.policy.T||q)return t.VF(h,Y),xR(this.loader,h,h,Y),this.Pm("sdai",{cmskpad:1,t:h.toFixed(3),sq:Y}),!0}this.Pm("sdai",{cmskpad:0,t:h.toFixed(3),sq:Y});return!1};g.M=TZ6.prototype;g.M.mR=function(h,t,Y){h=h||this.G;if(this.T.has(h)){if(h=this.T.get(h))h.dw=t,h.v6.push(Y)}else t={dw:t,v6:[],startTimeSecs:0,cZ:0},t.v6.push(Y),this.T.set(h,t)}; g.M.L7=function(h,t){h!==void 0&&this.Og(h);if(this.G&&(h=this.T.get(this.G),h!=null&&h.dw)){var Y={iS:h.v6,L0:MA(h.dw||"")||void 0,cuepointId:this.G};h.wL&&(Y.fW=h.wL);t&&(Y.yL=vz(t.split(";")[0]),Y.vC=t.split(";")[1]||"");return Y}}; g.M.VF=function(h,t){this.Og(h);var Y=this.T.get(this.G);Y?(this.Pm("ssskipad",{cid:this.G,sn:t,mt:h.toFixed(3)}),Y.wL=t):this.Pm("ssskipadfail",{cid:this.G,sn:t,mt:h.toFixed(3)})}; g.M.yX=function(){for(var h=g.b(this.T.values()),t=h.next();!t.done;t=h.next())t.value.wL=NaN}; g.M.Og=function(h,t){t&&(this.S=t);if(this.G&&(t=this.T.get(this.G))&&t.startTimeSecs<=h&&h<=t.startTimeSecs+t.cZ)return;this.G="";t=g.b(this.T.entries());for(var Y=t.next();!Y.done;Y=t.next()){var L=g.b(Y.value);Y=L.next().value;L=L.next().value;var q=void 0,z=void 0,V=void 0;if(((q=L)==null?void 0:q.startTimeSecs)<=h&&h<=((z=L)==null?void 0:z.startTimeSecs)+((V=L)==null?void 0:V.cZ)){this.G=Y;break}}};g.F($R,g.O);$R.prototype.eP=function(h,t,Y){Y=Y===void 0?{}:Y;this.policy.QP=Bo(h,Y,this.W,t===void 0?!1:t)};RJ.prototype.BU=function(h){var t=this;if(this.policy.nk){var Y=new Set(h);Y.size===this.gU.size&&[].concat(g.p(Y)).every(function(L){return t.gU.has(L)})||(this.loader.Pm("lwnmow",{itagDenylist:[].concat(g.p(h)).join(",")}),this.loader.AU(!!Y.size),this.L=-1,this.gU=Y,BJ(this,this.G),this.Ne=!0)}}; RJ.prototype.eP=function(h,t,Y){Y=Y===void 0?{}:Y;var L=this.policy.QP;this.X.eP(h,t===void 0?!1:t,Y);if(L!==this.policy.QP){BJ(this,this.G);PJ(this);var q,z;L>this.policy.QP&&((q=this.S)==null?0:rq(q.info))&&((z=this.nextVideo)==null||!rq(z.info))&&(this.AQ=!0)}};tt.prototype.oY=function(h){this.timestampOffset=h;this.flush()}; tt.prototype.flush=function(){if(this.G.pos>0){var h={a:this.track.N0(),u:this.G.LC(),pd:Math.round(this.W),ad:Math.round(this.S)},t=this.T;if(t){var Y=t.G.info;h.itag=Y.itag;Y.G&&(h.xtags=Y.G);h.sq=t.Kb;h.st=t.startTime;h.sd=t.duration;this.track.policy.Ih&&(h.si=t.uL());t.X&&(h.esl=t.T+t.S);t.lx()&&(h.eos=1)}isNaN(this.timestampOffset)||(h.to=this.timestampOffset);var L;if(t=(L=this.track.ND)==null?void 0:L.wP({})){for(var q in t)this.U[q]!==t[q]&&(h["sb_"+q]=t[q]);this.U=t}this.track.Pm("sbu", h);this.G.reset();this.buffered=[];this.X=this.S=this.W=0;this.timestampOffset=this.T=void 0}};gF.prototype.dispose=function(){this.x8=!0}; gF.prototype.Ui=function(){return this.x8}; g.F(Ny,Error);wF.prototype.skip=function(h){this.offset+=h}; wF.prototype.R$=function(){return this.offset};g.M=c5W.prototype;g.M.eR=function(){return this.T}; g.M.Zp=function(){return this.T.length?this.T[this.T.length-1]:null}; g.M.NW=function(){this.T=[];C1(this);XV(this)}; g.M.Hw=function(h){this.lP=this.T.shift().info;h.info.equals(this.lP)}; g.M.jP=function(){return g.CQ(this.T,function(h){return h.info})}; g.M.N0=function(){return!!this.X.info.audio}; g.M.isDrm=function(){return!!this.X.info.EX}; g.M.getDuration=function(){return this.X.index.Nd()};g.F(kt,YR);g.M=kt.prototype;g.M.onStateChange=function(){this.Ui()&&(rc(this.Lr,this.formatId),this.G.dispose())}; g.M.kM=function(){var h=ym1(this.Lr,this.formatId),t;var Y=((t=this.Lr.lL.get(this.formatId))==null?void 0:t.bytesReceived)||0;var L;t=((L=this.Lr.lL.get(this.formatId))==null?void 0:L.nm)||0;return{expected:h,received:Y,bytesShifted:t,sliceLength:cJ(this.Lr,this.formatId),isAnyMediaEndReceived:this.Lr.F9(this.formatId)}}; g.M.tq=function(){return 0}; g.M.IN=function(){return!0}; g.M.kQ=function(){return this.Lr.kQ(this.formatId)}; g.M.M1=function(){return[]}; g.M.Cq=function(){return this.Lr.Cq(this.formatId)}; g.M.vM=function(){return this.lastError}; g.M.Du=function(){return 0};g.F(jc,g.O);g.M=jc.prototype;g.M.N0=function(){return!!this.G.info.audio}; g.M.Zp=function(){return this.W.Zp()}; g.M.Hw=function(h){this.W.Hw(h);var t;(t=this.Y)!=null&&(t.X.add(h.info.Kb),t.G=tFi(t,t.P3,t.Xe,h,t.G),t.S=h,t.U=(0,g.FH)());this.Lb=Math.max(this.Lb,h.info.G.info.Lb||0)}; g.M.getDuration=function(){return this.G.index.Nd()}; g.M.NW=function(){n3(this);this.W.NW()}; g.M.JI=function(){return this.W}; g.M.isRequestPending=function(h){return this.S.length?h===this.S[this.S.length-1].info.bP[0].Kb:!1}; g.M.oY=function(h){var t;(t=this.Y)==null||t.oY(h);var Y;(Y=this.L)==null||Y.oY(h)}; g.M.Pm=function(h,t){this.loader.Pm(h,t)}; g.M.WS=function(){return this.loader.WS()}; g.M.dispose=function(){var h;(h=this.L)==null||h.flush();g.O.prototype.dispose.call(this)};g.F($H,g.O);$H.prototype.S=function(){this.T++>15||(this.G=!this.G,new MIi(this.loader,this.policy,this.TD,this.e4,this.G),this.delay.start())}; g.M=MIi.prototype;g.M.Hr=function(){}; g.M.oG=function(){}; g.M.q4=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.uJ()===this.size)this.loader.Pm("rqs",this.getInfo());else{var h="net.connect";this.xhr.status>200?h="net.badstatus":this.xhr.jx()&&(h="net.closed");this.onError(h)}}; g.M.onError=function(h){var t=this;this.loader.handleError(h,this.getInfo());ey("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(Y){t.loader.Pm("pathprobe",Y)},function(Y){t.loader.handleError(Y.errorCode,Y.details)})}; g.M.getInfo=function(){var h=this.timing.cA();h.shost=Os(this.location.Yv);h.pb=this.size;return h};g.F(TP,g.O); TP.prototype.C=function(h,t){if(h.C){this.Cb.isLive?(h=this.Cb.uR&&this.Cb.W?h.G.MB(this.Cb.uR,!1):h.G.rN(Infinity),h.SF=this.SF):h=h.G.MB(0,!1);if(this.AQ){var Y=this.AQ;h.SF===0&&(h.X=Y.Y)}else h.X=this.L;return h}Y=h.T;if(!Y.G.z3())return Y.G.EW()?(h=vI(this.X,h.G.info.Lb,t.G.info.Lb,0),h=Y.G.kY(Y,h)):h=Y.G.Fs(Y),h;var L=Y.U-this.loader.getCurrentTime(),q=!Y.range||Y.S===0&&Y.T===0?0:Y.range.length-(Y.T+Y.S),z=Y.G;this.b8(h,L)&&q===0&&(this.Cb.isManifestless?z=h.G:(z=Y.startTime+qR3,Y.S&&(z+=Y.duration), Te(h,z),Y=h.T,z=Y.G));z.EW()?(q=this.S,t=vI(this.X,z.info.Lb,t.G.info.Lb,L,q.W.length>0&&q.Y===0&&this.loader.jt),L=an(h),h=Y.G.kY(Y,t),(t=h.S)&&h.bP.length>1&&(L||h.e4.S||h.bP[0].G!==Y.G?h=Y.G.kY(Y,h.bP[0].S):(L=h.bP[h.bP.length-1],z=L.S/t,!L.X&&z<.4&&(h=Y.G.kY(Y,t-L.S))))):(Y.Kb<0&&(t=Dq(Y),t.pr=""+h.S.length,this.loader.isSeeking()&&(t.sk="1"),t.snss=Y.C,this.loader.Pm("nosq",t)),h=z.Fs(Y));if(this.policy.Wm)for(Y=g.b(h.bP),t=Y.next();!t.done;t=Y.next())t.value.type=6;return h}; TP.prototype.b8=function(h,t){if(!an(h)||!h.G.z3())return!1;var Y=this.S.Ne||gkp(h)||t<=this.policy.iT||this.S.AQ;this.logger.debug(function(){return"ready to adapt: "+Y+", upgrade pending: "+gkp(h)+", health: "+t}); return Y}; TP.prototype.Gz=function(){g.O.prototype.Gz.call(this)}; var qR3=2/24;g.F(DS,g.O);DS.prototype.ir=function(h,t,Y){var L;var q=((L=this.T)==null?void 0:L.reason)==="m"?"m":this.T&&pc3(this,this.T)?this.T.reason:"a";this.loader.ir(new fa(h,q,Y));PQ(this.loader,t,h,!0)}; DS.prototype.nh=function(h,t){for(var Y=g.b(this.Wm),L=Y.next();!L.done;L=Y.next())if(L.value.id===h)return this.X=this.Cb.G[h],FY(this.bV)&&(this.AQ=!0),h=new fa(this.X,t?"t":"m"),t&&(this.C=!0),h;this.S=[];return null}; DS.prototype.eP=function(h,t,Y){Y=Y===void 0?{}:Y;this.G.eP(h,t===void 0?!1:t,Y)};tR.prototype.setData=function(h,t,Y){var L=this;Y=Y===void 0?{}:Y;if(t==null?0:t.Q4)this.qt=Zz1(this,t,Y),h.n4=this.e4.n4();if(this.JL())return!0;this.data=h;this.G=nk3(h,function(q,z){var V;(V=L.S4)==null||V.hQ(q,z)},t==null?void 0:t.S); if(!this.G)return!1;this.T=g.nW(this.G,sZi);return!0}; tR.prototype.JL=function(){return this.requestType===1}; tR.prototype.VB=function(){var h;return((h=this.S4)==null?void 0:h.VB())||0}; tR.prototype.isDecorated=function(){var h;return!((h=this.data)==null||!h.OW)};I4L.prototype.yQ=function(h,t){t=t===void 0?1:t;this.uu+=t;this.T+=h;h/=t;for(var Y=0;Y0)L+="."+iP[q].toFixed(0)+"_"+Y.G[q].toFixed(0);else break;Y=L}Y&&(h[t]=Y)}this.G=new R2L;return h}; g.M.toString=function(){return""};g.M=t51.prototype;g.M.isActive=function(){return!1}; g.M.JG=function(){}; g.M.SG=function(){}; g.M.fm=function(){}; g.M.w5=function(h,t){t()}; g.M.Jq=function(){return{}}; g.M.toString=function(){return""};var UGv=new t51,CpP=!!+k5("html5_enable_profiler"),MW0=!!+k5("html5_onesie_enable_profiler"),jb=CpP||MW0?new PEL:UGv,nhL=CpP?jb:UGv,qV=MW0?jb:UGv;Yz.prototype.encrypt=function(h){this.G.exports.AES128CTRCipher_encrypt(this.cipher,h.byteOffset,h.byteLength);return h}; Yz.prototype.Ui=function(){return this.cipher===0}; Yz.prototype.dispose=function(){this.G.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};zKn.prototype.emscripten_notify_memory_growth=function(){};g.M=Ly.prototype;g.M.malloc=function(h){return this.exports.malloc(h)}; g.M.free=function(h){this.exports.free(h)}; g.M.realloc=function(h,t){return this.exports.realloc(h,t)}; g.M.uF=function(h){if(h.buffer!==this.exports.memory.buffer){var t=this.malloc(h.byteLength);t=new Uint8Array(this.exports.memory.buffer,t,h.byteLength);t.set(h);return t}}; g.M.Xw=function(h){if(h.buffer===this.exports.memory.buffer){var t=h.slice();this.free(h.byteOffset);return t}}; var iMi=new function(){this.S=this.W="WebAssembly"in window},lJb="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); qV.JG(Ly,{uF:function(h){return{profile:"copyj2w",uu:h===void 0?0:Math.ceil(h.byteLength/16)}}, Xw:function(h){return{profile:"copyw2j",uu:h===void 0?0:Math.ceil(h.byteLength/16)}}});z$.prototype.encrypt=function(h,t){return jf(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:t},this.key,h).catch(function(Y){return Promise.reject(Y.name+": "+Y.message)}).then(function(Y){return new Uint8Array(Y)}))}; z$.prototype.Ui=function(){return this.G}; z$.prototype.dispose=function(){this.G=!0}; V2.prototype.encrypt=function(h,t){return jf(this.T(h,t))}; V2.prototype.T=function(h,t){PNL(this.S,t);return this.S.encrypt(h)}; V2.prototype.Ui=function(){return this.G}; V2.prototype.dispose=function(){this.G=!0}; NV.prototype.encrypt=function(h,t){return jf(this.T(h,t))}; NV.prototype.T=function(h,t){t=this.S.uF(t);var Y=this.G;Y.G.exports.AES128CTRCipher_setCounter(Y.cipher,t.byteOffset);this.S.free(t.byteOffset);t=this.S.uF(h);this.G.encrypt(t!=null?t:h);return t?this.S.Xw(t):h}; NV.prototype.Ui=function(){return this.G.Ui()}; NV.prototype.dispose=function(){this.G.dispose()}; qV.JG(z$,{encrypt:w0n("oan2")});qV.JG(V2,{encrypt:w0n("oap")});qV.JG(NV,{encrypt:w0n("oalw")});lP.prototype.encrypt=function(h,t){var Y=this,L=Zv("");h.length<=this.jG&&this.G&&!this.X&&(L=GB(L,function(){return Y.G?Y.G.encrypt(h,t):Zv("wasm unavailable")})); h.length<=this.Ly&&(this.G&&this.X&&(L=GB(L,function(){return Y.G?Y.G.encrypt(h,t):Zv("wasm unavailable")})),L=GB(L,function(){return X0L(Y,h,t)})); return GB(GB(L,function(){return UDb(Y,h,t)}),function(){return X0L(Y,h,t)})}; lP.prototype.T=function(h,t){if(this.G)return this.G.T(h,t);this.S||(this.S=new V2(this.key));return this.S.T(h,t)}; lP.prototype.Ui=function(){return this.U}; lP.prototype.dispose=function(){this.U=!0;var h;(h=this.W)==null||dx(h,g.hN);g.hN(this.G);g.hN(this.S)};Hi.prototype.encrypt=function(h){(0,g.FH)();return(new g.gN(this.G.G)).encrypt(h,this.iv)}; Hi.prototype.decrypt=function(h,t){(0,g.FH)();return(new g.gN(this.G.G)).decrypt(h,t)}; Hi.prototype.Ui=function(){return this.W}; Hi.prototype.dispose=function(){this.W=!0;g.hN(this.S)};g.F(wa,g.O);wa.prototype.S=function(h,t){if(t){t=t instanceof g.Es?t:Wi(this,t);var Y;((Y=this.G.get(h))==null?void 0:Os(Y.location))!==Os(t)&&this.G.set(h,new dDn(t,h))}else this.G.delete(h)}; wa.prototype.load=function(){var h=this,t,Y,L,q,z,V,l,H,w,W;return g.k(function(y){switch(y.T){case 1:t=h.G.get(0);g.oc(y,2);var X;if(X=t&&!h.T)X=Os(t.location),X=h.T===HJ(X);if(X){y.eM(4);break}return g.K(y,bM3(h,h.T?2:0),5);case 5:if(Y=y.G)h.S(0,Y),fh(Y)&&h.S(1,$Q(Y));case 4:g.Q6(y,3);break;case 2:L=g.cW(y);g.bc(L);if(!h.T){y.eM(3);break}h.T=!1;return g.K(y,h.load(),7);case 7:return y.return();case 3:if(!h.Me.experiments.I0("html5_onesie_probe_ec_hosts")){y.eM(0);break}g.oc(y,9);q=h;z=q.S;V=3;return g.K(y, bM3(h,1),11);case 11:return z.call(q,V,y.G),l=h,H=l.S,w=4,g.K(y,bM3(h,2),12);case 12:H.call(l,w,y.G);g.Q6(y,0);break;case 9:W=g.cW(y),g.bc(W),g.Z$(y)}})}; wa.prototype.C=function(){var h=this,t,Y;return g.k(function(L){g.fE(h.Y);t=g.Sk(h.Me.experiments,"html5_onesie_prewarm_max_lact_ms");if(X2()>=t)return L.return();(Y=h.G.get(0))&&ZM6(h,Y);g.Z$(L)})}; var sb3={BVM:0,EDG:1,nDG:2,Zq_:3,I3U:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};GHL.prototype.decrypt=function(h){var t=this,Y,L,q,z,V,l;return g.k(function(H){switch(H.T){case 1:if(t.G.length&&!t.G[0].isEncrypted)return H.return();t.T=!0;t.UW.jE("omd_s");Y=new Uint8Array(16);iw()?L=new g.YB(h):q=new g.gN(h);case 2:if(!t.G.length||!t.G[0].isEncrypted){H.eM(4);break}z=t.G.shift();if(!L){V=q.decrypt(gX(z.buffer),Y);H.eM(5);break}return g.K(H,L.decrypt(gX(z.buffer),Y),6);case 6:V=H.G;case 5:l=V;for(var w=0;w=4)){var t=OR(this),Y=this.xhr;t.rc=Y.status;h&&(t.ab=!0);if(Y.oD()){var L="onesie.net";t.msg=Y.oD()}else Y.status>=400?L="onesie.net.badstatus":Y.b3()?this.dZ||(L="onesie.response.noplayerresponse"):L=Y.status===204?"onesie.net.nocontent":"onesie.net.connect";L?this.fail(new g.zk(L,t)):(this.jE("or_fs"),this.hJ.Hv((0,g.FH)(),Y.uJ(),0),this.H3(4),this.eU&&this.Pm("rqs",t));this.eU&&this.Pm("ombre", "ok."+ +!L);this.rK=!1;kz(this);OM6(this.UW);if(!this.Vz){this.tO.stop();var q;(q=this.GH)==null||q.stop()}var z;if(h=(z=this.sQ)==null?void 0:oDn(z))for(z=0;z1E3){var h;(h=this.hJ)==null||h.vU((0,g.FH)());h=OR(this);if(this.Me.pZ()&&this.xhr instanceof La){var t=this.xhr;h.xrs=t.xhr.readyState;h.xpb=t.G.totalLength;h.xdc=t.W}this.fail(new g.zk("net.timeout",h))}}else(0,g.FH)()-this.hJ.G>1E4&&((t=this.hJ)==null||t.vU((0,g.FH)()),this.Ws());this.isComplete()||this.Z7.start()}}; g.M.Ws=function(){this.logger.info("Onesie request timed out");this.rK=!1;if(!kz(this)){var h=OR(this);h.timeout="1";this.fail(new g.zk("onesie.request",h))}}; g.M.fail=function(h){var t=this;h=NS(h);this.o8?this.qe.x0(h):(this.Fo.reject(h),this.o8=!0);OM6(this.UW);this.Vz||this.tO.stop();this.jE("or_fe");var Y,L;(Y=this.sQ)==null||(L=oDn(Y))==null||L.forEach(function(q){t.Pm("pathprobe",q)}); this.H3(5);this.dispose()}; g.M.isComplete=function(){return this.state>=3}; g.M.cX=function(){return this.state===4}; g.M.IE=function(h){var t,Y;return this.isComplete()||!!((t=this.uj)==null?0:(Y=t.get(h))==null?0:Y.G)}; g.M.gR=function(){return!1}; g.M.X8=function(){return this.state===5}; g.M.notifySubscribers=function(h){for(var t=0;t102400&&!this.GJ&&(this.jE("or100k"),this.GJ=!0);if(h.kS()){var t=h.gb(),Y=t.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+Y}); this.eU&&this.Pm("ombrss","len."+Y);this.jT.feed(t)}if(this.uj)for(var L=g.b(this.uj.keys()),q=L.next();!q.done;q=L.next()){var z=q.value;h=void 0;(h=this.uj.get(z))==null||h.kd();this.notifySubscribers(z)}}catch(V){this.fail(V)}}; g.M.QQ=function(){return this.hJ.requestNumber}; g.M.By=function(h){return this.YK.get(h)};g.F(Yfr,g.O);g.M=Yfr.prototype;g.M.Z6=function(h,t){this.x8=void 0;M_L(this);C6L(this,h,t)}; g.M.I_=function(h){if(this.G.length===0)return!1;var t=this.G[0];return t instanceof ny?h===this.loader.getCurrentTime()*1E3:!(t instanceof Jz&&TGD(t.info))&&Math.abs(t.Ql()-h)<50}; g.M.WL=function(h){this.T=h;this.x8=(0,g.FH)()+(h.backoffTimeMs||0)}; g.M.jX=function(h,t){if(h.action===void 0){var Y=this.qe.X9();Y!==void 0&&this.loader.S7(Y)}else if(h.action!==0||!this.lP)if(h.action===0&&this.policy.h5&&(h.action=2),h.Si==="sabr.malformed_config"&&this.policy.tV>0&&this.Y8++0&&(h.action=2),Y={},Y.reason=h.Si,Y.action=h.action,Y.rn=t,h.action){case 1:this.policy.T&&this.Y&&this.Y.WN(void 0, void 0,Y);break;case 0:this.lP=!0;this.videoData.JJ()&&this.policy.T&&this.Y&&this.Y.WN(void 0,void 0,Y,!1);this.loader.Mw(Y);break;case 2:Dtc(h.Si)!=="sabr.config"&&delete Y.reason;this.loader.handleError(Dtc(h.Si),Y,1);break;case 3:this.policy.Q4&&((h=this.Cb.Y)!=null&&(h.Y=!0),this.loader.handleError("sabr.hostfallback",Y))}}; g.M.VO=function(h){h&&(this.loader.Pm("sabrctxt",{onsbrctxt:h.type,scp:h.scope,dflt:h.sendByDefault}),h.type&&h.sendByDefault&&this.videoData.iP.add(h.type),h.scope!==2&&(h.type&&this.videoData.sabrContextUpdates.set(h.type,h),this.qe.VO(h)))}; g.M.Y6=function(){}; g.M.QF=function(h,t){if(h.QT!==void 0&&h.ES){var Y=h.QT/h.ES;this.audioTrack.C=!1;this.videoTrack.C=!1;if(this.policy.x8||this.policy.qW||this.policy.Pu)this.loader.Ja.G=!1;var L=this.loader.zV(Y,1);this.policy.MD&&this.policy.T&&this.loader.Og(L,t);this.qe.getCurrentTime()!==Y&&(t={EY:"sabr_seek",A8:!0,BW:!0},h.seekSource&&(t.seekSource=h.seekSource),I8(this.loader,Y+.1,t))}}; g.M.onSnackbarMessage=function(h){this.qe.publish("onSnackbarMessage",h)}; g.M.XV=function(h){h.rB&&h.bO&&$w(this.Cb,h.rB,h.bO);this.policy.Dw&&(h.AB&&h.PJ&&(this.Cb.GV=h.AB/h.PJ),h.IA&&h.iq&&(this.Cb.nI=h.IA/h.iq));k$(this.videoData)&&!this.videoData.AQ&&h.bO&&this.loader.zV(h.bO,1E3);h.PU!=null&&this.qe.sf(h.PU);this.policy.PL&&h.dh&&(h=((0,g.FH)()-h.dh)/1E3,this.loader.lH.Fv(1,h))}; g.M.Dh=function(h){this.loader.Dh(h)}; g.M.Wb=function(h){return this.videoData.iP.has(h)}; g.M.JO=function(h,t,Y){this.policy.S&&this.loader.Pm("sabrctxtplc",{start:h?h.join("_"):"",stop:t?t.join("_"):"",discard:Y?Y.join("_"):""});if(h){h=g.b(h);for(var L=h.next();!L.done;L=h.next())this.videoData.iP.add(L.value)}if(t)for(t=g.b(t),h=t.next();!h.done;h=t.next())h=h.value,this.videoData.iP.has(h)&&this.videoData.iP.delete(h);if(Y)for(Y=g.b(Y),t=Y.next();!t.done;t=Y.next())if(t=t.value,this.videoData.sabrContextUpdates.has(t)&&(this.videoData.sabrContextUpdates.delete(t),t===3&&(this.videoData.nj= "")),this.policy.L&&this.G.length)for(h=g.b(this.G),L=h.next();!L.done;L=h.next())if(L=L.value,!(L instanceof ny)){var q=void 0;((q=L.zw)==null?void 0:q.type)===t&&(L.zw=void 0)}}; g.M.b5=function(){}; g.M.RK=function(h){this.C=h}; g.M.Na=function(h){this.U=h}; g.M.Iv=function(h,t){f1(this.policy,h,4,t)}; g.M.Pw=function(h){if(h==null?0:h.j_)if(h=h.j_.Ii){h=g.b(h);for(var t=h.next();!t.done;t=h.next())if(t=t.value,t.formatId){var Y=this.Cb.S.get(nz(t.formatId));Y&&Y.info&&(Y.info.debugInfo=t.debugInfo)}}}; g.M.Fw=function(h){this.qe.publish("reloadplayer",h)}; g.M.Oz=function(){return this.qe.Oz()||""}; g.M.VB=function(){var h=ec(this.audioTrack,!0)*1E3,t=ec(this.videoTrack,!0)*1E3;return Math.min(h,t)}; g.M.hQ=function(h,t){this.loader.Pm(h,t)}; g.M.Ns=function(h){p5L(this.loader,gwL(this.yG,h))}; g.M.Gz=function(){g.O.prototype.Gz.call(this);this.T=void 0;C6L(this,!0,"i");this.G=[]};QsL.prototype.i5=function(){this.isSeeking=!0;this.G===1&&dZ$(this.W);this.G===0&&this.W2.z6("transitiondetector");this.U=!1};KC$.prototype.WZ=function(h,t){if(this.W)return OI6(this,t);if(t=R8(h)){var Y=t.G;Y&&Y.S&&Y.G&&(h=h.S.length?h.S[0]:null)&&h.state>=2&&!h.X8()&&h.info.SF===0&&(this.W=h,this.C=Y,this.T=t.info,this.U=this.startTimeSecs=Date.now()/1E3,this.X=this.T.startTime)}return NaN}; KC$.prototype.clear=function(){this.T=this.C=this.W=null;this.G=this.X=this.U=this.startTimeSecs=NaN;this.S=!1};g.F($Zp,g.O);$Zp.prototype.Gz=function(){ALc(this);g.O.prototype.Gz.call(this)};var Sf6=/[?&]cpn=/;g.F(Bi,g.O);Bi.prototype.flush=function(){var h={};this.T&&(h.pe=this.T);this.G.length>0&&(h.pt=this.G.join("."));this.G=[];return h}; Bi.prototype.stop=function(){var h=this,t,Y,L;return g.k(function(q){if(q.T==1)return g.oc(q,2),g.K(q,(t=h.W)==null?void 0:t.stop(),4);if(q.T!=2)return(Y=q.G)&&h.logTrace(Y),g.Q6(q,0);L=g.cW(q);h.T=hb6(L.message);g.Z$(q)})}; Bi.prototype.logTrace=function(h){this.encoder.reset();this.encoder.add(1);this.encoder.add(h.resources.length);for(var t=g.b(h.resources),Y=t.next();!Y.done;Y=t.next()){Y=Y.value.replace("https://www.youtube.com/s/","");this.encoder.add(Y.length);for(var L=0;L=0?h:g.iz(this.provider),this.R0?FVE.has(this.yp)&&(this.G.size||(this.yp==="PL"?h>=this.T+30:h<=this.AQ+30||h>=this.T+1200&&h<=this.AQ+86400))&&(g.D6(this,h,"vps",[this.yp]),this.T=h):["PL","B","S"].indexOf(this.yp)>-1&&(this.G.size||h>=this.T+30)&&(g.D6(this,h,"vps",[this.yp]),this.T=h),this.G.size)){this.sequenceNumber===7E3&&g.bc(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){go(this,h);var t=this.provider.qe.Nw(); t=g.b(t);for(var Y=t.next();!Y.done;Y=t.next())Y=Y.value,this.Pm(Y.key,Y.value);t=h;Y=this.provider.qe.mM();var L=Y.droppedVideoFrames||0,q=Y.totalVideoFrames||0,z=L-this.nT,V=q&&!this.AM;L>Y.totalVideoFrames||z>5E3?WMW(this,"html5.badframedropcount","df."+L+";tf."+Y.totalVideoFrames):(z>0||V)&&g.D6(this,t,"df",[z]);this.nT=L;this.AM=q;this.Y>0&&(g.D6(this,h,"glf",[this.Y]),this.Y=0);jb.isActive()&&(h=jb.Jq(),Object.keys(h).length>0&&this.Pm("profile",h));this.Q4&&Y3(this,"lwnmow");this.provider.Me.pZ()&& this.provider.N("html5_record_now")&&this.Pm("now",{wt:(0,g.FH)()});h={};this.provider.videoData.T&&(h.fmt=this.provider.videoData.T.itag,(t=this.provider.videoData.W)&&t.itag!==h.fmt&&(h.afmt=t.itag));h.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(h.adcpn=this.adCpn);this.wb&&(h.addocid=this.wb);this.contentCpn&&(h.ccpn=this.contentCpn);this.Wm&&(h.cdocid=this.Wm);this.provider.videoData.cotn&&(h.cotn=this.provider.videoData.cotn);h.el=S_(this.provider.videoData);h.content_v=Rs(this.provider.videoData); h.ns=this.provider.Me.AQ;h.fexp=Ion(this.provider.Me.experiments).toString();h.cl=(780287553).toString();(t=this.provider.videoData.adFormat||this.adFormat)&&(h.adformat=t);(t=pI(this.provider.videoData))&&(h.live=t);this.provider.videoData.WM()&&(h.drm=1,this.provider.videoData.X&&(h.drm_system=VWl[this.provider.videoData.X.flavor]||0),this.provider.videoData.drmProduct&&(h.drm_product=this.provider.videoData.drmProduct));DF()&&this.provider.videoData.U&&(h.ctt=this.provider.videoData.U,h.cttype= this.provider.videoData.iJ,this.provider.videoData.mdxEnvironment&&(h.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(h.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.gE&&(h.dai_fallback="1")):this.provider.videoData.OY?h.dai="cs":this.provider.videoData.PP&&(h.dai="disabled");h.seq=this.sequenceNumber++;if(this.provider.videoData.Uh){if(t=this.provider.videoData.Uh,h&&t)for(t.ns==="3pp"&&(h.ns="3pp"),this.R7.has(t.ns)&& Y3(this,"hbps"),t.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=t.shbpslc),this.provider.Me.experiments.I0("html5_use_server_qoe_el_value")&&this.iP.delete("el"),Y=g.b(Object.keys(t)),L=Y.next();!L.done;L=Y.next())L=L.value,this.iP.has(L)||(h[L]=t[L])}else h.event="streamingstats",h.docid=this.provider.videoData.videoId,h.ei=this.provider.videoData.eventId;this.isEmbargoed&&(h.embargoed="1");Object.assign(h,this.provider.Me.G);if(t=h.seq)t={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+t,serializedWatchEndpointLoggingContext:this.provider.videoData.Naz},this.serializedHouseBrandPlayerServiceLoggingContext&&(t.serializedHouseBrandPlayerServiceLoggingContext=re(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(t.playerResponseCpn=this.provider.videoData.playerResponseCpn),mh.length&&(t.decoderInfo=mh),this.remoteControlMode&&(t.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(t.remoteConnectedDevices= this.remoteConnectedDevices),t=g.nW(t,bV1),t=g.Gv(t,4),this.G.set("qclc",[t]);h=g.Xz("//"+this.provider.Me.xa+"/api/stats/qoe",h);Y=t="";L=g.b(this.G.entries());for(q=L.next();!q.done;q=L.next())z=g.b(q.value),q=z.next().value,z=z.next().value,V=void 0,(V=z)!=null&&V.join&&(q="&"+q+"="+z.join(","),q.length>100?Y+=q:t+=q);N8W(this,h+t,Y.replace(/ /g,"%20"))}this.G.clear()}}; g.M.AU=function(h){this.Q4=h}; g.M.G4=function(){if(this.provider.videoData.X){var h=this.provider.videoData.X;Y3(this,"eme-"+(h.keySystemAccess?"final":D5(h)?"ms":iE(h)?"ytfp":tU(h)?"safarifp":"nonfinal"))}}; g.M.mx=Yb(53);g.M.y7=function(h){this.isEmbargoed=h}; g.M.JP=Yb(30);g.M.jF=Yb(36);g.M.onPlaybackRateChange=function(h){var t=g.iz(this.provider);h&&h!==this.pn&&(g.D6(this,t,"rate",[h]),this.pn=h);this.R0||this.reportStats(t)}; g.M.tF=Yb(24);g.M.getPlayerState=function(h){if(g.R(h,128))return"ER";if(g.R(h,2048))return"B";if(g.R(h,512))return"SU";if(g.R(h,16)||g.R(h,32))return"S";if(h.isOrWillBePlaying()&&g.R(h,64))return"B";var t=stl[Zo(h)];g.z4(this.provider.Me)&&t==="B"&&this.provider.qe.getVisibilityState()===3&&(t="SU");t==="B"&&g.R(h,4)&&(t="PB");return t}; g.M.Gz=function(){g.O.prototype.Gz.call(this);g.lZ(this.x8);g.lZ(this.Ds)}; g.M.zG=function(h){this.isOffline=h;g.D6(this,g.iz(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.M.Pm=function(h,t,Y){var L=this.Vb.indexOf(h)!==-1;L||this.Vb.push(h);if(!Y||!L){var q=typeof t!=="string"?qS(t):t;q=X5D(q);if(!Y&&!/^t[.]/.test(q)){var z=g.iz(this.provider)*1E3;q="t."+z.toFixed()+";"+q}th(this,"ctmp",h+":"+q);this.logger.debug(function(){return"ctmp "+h+" "+q}); lh3(this);return z}}; g.M.kx=function(h,t,Y){this.X={ETG:Number(this.Pm("glrem",{nst:h.toFixed(),rem:t.toFixed(),ca:+Y})),gt:h,nTi:t,isAd:Y}}; g.M.zF=function(h,t,Y){g.D6(this,g.iz(this.provider),"ad_playback",[h,t,Y])}; g.M.FV=function(h,t){var Y=g.iz(this.provider)*1E3;th(this,"daism","t."+Y.toFixed(0)+";smw."+(h*1E3).toFixed(0)+";smo."+(t*1E3).toFixed(0))}; g.M.resume=function(){var h=this;isNaN(this.x8)?HoL(this):this.x8=g.VR(function(){h.reportStats()},1E4)}; var Zx={},stl=(Zx[5]="N",Zx[-1]="N",Zx[3]="B",Zx[0]="EN",Zx[2]="PA",Zx[1]="PL",Zx[-1E3]="ER",Zx[1E3]="N",Zx),FVE=new Set(["PL","B","S"]),mh=[];g.F(g.zA,g.O);g.M=g.zA.prototype;g.M.initialize=function(h,t,Y){this.logger.debug(function(){return"Initialized, t="+h}); h=h||0;this.policy.G||(t=Lz1(this.G),ahb(this.qe,new fa(t.video,t.reason)),this.qe.HR(new fa(t.audio,t.reason)));this.policy.G&&In(this);this.Cb.isManifestless&&cUn(this.X);this.C&&xZ6(this.C,this.videoTrack.G);t=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var L=!this.Cb.isManifestless;this.policy.OZ&&(L=L||this.Cb.f6);this.policy.gU||(this.currentTime=L?h:t);this.policy.x8&&this.seek(this.getCurrentTime(),{}).wS(function(){}); if(this.policy.G){var q;((q=this.L)==null?0:g$L(q,this.Oz()||""))&&boD(this)&&ZoD(this,this.videoTrack)&&ZoD(this,this.audioTrack)&&(FC1(this.T,this.L),this.policy.X&&jei(this))}else this.R0&&(olL(this,this.videoTrack),olL(this,this.audioTrack),W0$(this.R0),delete this.R0);Y?(GML(this,!1),g.fE(this.pU)):(Y=this.getCurrentTime()===0,Rn(this.X,this.videoTrack,this.videoTrack.G,Y),Rn(this.X,this.audioTrack,this.audioTrack.G,Y),this.policy.G&&zQL(this.T,!0),this.policy.x8||this.seek(this.getCurrentTime(), {}).wS(function(){}),this.timing.tick("gv")); (this.Cb.uR||this.Cb.e1||this.Cb.Wm||this.Cb.Q4||this.Cb.Ds)&&this.qe.QX(this.Cb)}; g.M.resume=function(){if(this.isSuspended||this.jt){this.logger.debug("Resumed.");this.Uj=this.jt=this.isSuspended=!1;try{this.WZ()}catch(h){g.ZD(h)}}}; g.M.Yt=function(){return!this.policy.M6}; g.M.cN=function(h,t){h=h===void 0?!1:h;t=t===void 0?!1:t;this.logger.debug("detaching media source");u6L(this);this.qe.nN()&&(this.U=NaN);h?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.X5&&this.Pm("loader",{setsmb:1}),this.policy.Wm=!0,this.NW()):(GML(this,!1),t||this.NW())}; g.M.setAudioTrack=function(h,t,Y){Y=Y===void 0?!1:Y;if(!this.Ui()){var L=!isNaN(t);Y&&L&&(this.audioTrack.x8=Date.now(),this.policy.eh&&(this.tQ=!0));if(this.policy.G){var q=this.W.nh(h.id,L);this.logger.debug(function(){return"Logging new audio format: "+q.G.info.id}); this.qe.HR(q)}else{var z=ikW(this.G,h.id,L);this.logger.debug(function(){return"Logging new audio format: "+z.audio.info.id}); this.qe.HR(new fa(z.audio,z.reason))}L?(this.policy.Ty&&(this.Q4=Date.now()),Y=this.audioTrack.G.index.RF(t),this.Pm("setAudio",{id:h.id,cmt:t,sq:Y}),Y>=0&&(h=this.policy.Gi?Y+1:Y,this.policy.G&&this.Z6(!0,"mosaic"),Jt(this.audioTrack,h,NaN,NaN),!this.policy.sX&&this.Cb.isLive&&fk(this.Cb,h,!1))):this.qe.A_()}}; g.M.setPlaybackRate=function(h){h!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(h)}; g.M.Nb=function(h){var t=this.T.C;this.T.RK(h);this.Pm("scfidc",{curr:nz(t),"new":nz(h)});h&&nz(h)!==nz(t)&&(this.Z6(!0,"caption change"),this.WZ())}; g.M.pT=function(h){this.T.Na(h)}; g.M.ir=function(h){var t=h.G.info.N0();this.logger.debug(function(){return"New "+(t?"audio":"video")+" format from SABR: "+kW(h.G.info)}); t?this.qe.HR(h):ahb(this.qe,h)}; g.M.Ns=function(h){B_(h.bP[h.bP.length-1])&&p5L(this,gwL(this.G,h.bP[0].G))}; g.M.yE=function(){return this.qe.yE()}; g.M.RR=function(){return this.qe.RR()}; g.M.Dh=function(h){this.qe.J().pZ()&&this.Pm("sps",{status:h.vL||""});if(h.vL===1)this.qe.videoData.qL=0;else if(h.vL===2||h.vL===3){var t=!1;if(h.vL===3){t=this.qe.yV();var Y;this.m$=(Y=h.qz5)!=null?Y:Infinity;this.qe.videoData.qL=t+1;(t=rUi(this))&&this.To(!0)}this.qe.K9(!0,t)}}; g.M.Fm=function(){return this.qe.Fm()}; g.M.AF=function(){return this.qe.AF()}; g.M.Xy=function(h){this.qe.Xy(h)}; g.M.riz=function(){var h,t=(h=this.qe.iL())==null?void 0:h.getCurrentTime();t?this.qe.Pm("rms",{cta:t}):g.fE(this.fn)}; g.M.WZ=function(){JJ$(this);if(this.Oi&&i8(this.Oi)&&!this.Oi.pH()&&(!this.policy.gU||isFinite(this.getCurrentTime()))){var h=bq(this.videoTrack);h=this.policy.Mh&&h&&h.lx();this.Cb.isManifestless&&this.Cb.W&&EJ(this.Cb)?(this.U=EJ(this.Cb),this.Oi.rd(this.U)):T9(this.Cb)&&!h?isNaN(this.U)?(this.U=this.getCurrentTime()+3600,this.Oi.rd(this.U)):this.U<=this.getCurrentTime()+1800&&(this.U=Math.max(this.U+1800,this.getCurrentTime()+3600),this.Oi.rd(this.U)):this.Oi.isView||(h=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.U)||this.U!==h)&&h>0&&(this.Oi.rd(h),this.U=h))}if(!this.Ui())if(xw(this.Cb)&&this.Cb.X8()){var t=this.Cb;this.handleError("manifest.net.retryexhausted",t.yG?{rc:t.Dg}:{rc:t.Dg.toString()},1)}else if(this.policy.G)a:{try{yL$(this.T);this.Cb.isManifestless&&this.policy.X&&AX(this.Ja);var Y;((Y=this.Oi)==null?0:L_(Y))&&this.Mb();zQL(this.T)}catch(V){g.bc(V);t=V;if(t.message.includes("changeType")){this.Pm("ctype",{exp:t.name,msg:t.message,s:t.stack});break a}this.handleError("fmt.unplayable", {exp:t.name,msg:t.message,s:t.stack},1)}gzp(this);g.fE(this.yG)}else if(!this.Cb.T||!qZL(this.videoTrack)&&!qZL(this.audioTrack)||(this.videoTrack.X||this.audioTrack.X)&&this.policy.Pq?Y=!1:(this.NW(),this.qe.seekTo(Infinity,{EY:"checkLoaderTracksSync",zV:!0}),Y=!0),!Y){JJ$(this);this.Cb.isManifestless&&(z2p(this.videoTrack),z2p(this.audioTrack),AX(this.Ja),(Y=R8(this.videoTrack))&&Y.G&&(Y=Y.G.S&&!this.policy.Ru,this.Pm(Y===this.policy.C.TQ?"strm":"strmbug",{strm:Y,sfmp4:this.policy.C.TQ,dfs:this.policy.Ru}, !0)));if(this.Oi)this.Mb();else if(this.policy.W){var L;Y=!1;if(this.policy.W4){var q;h=g.b([this.videoTrack,this.audioTrack]);for(q=h.next();!q.done;q=h.next()){var z=q.value;for(q=R8(z);q&&z.Zp()!==bq(z);q=R8(z))z.Hw(q);Y=Y||!!q}}else(t=R8(this.videoTrack))&&this.videoTrack.Hw(t),(L=R8(this.audioTrack))&&this.audioTrack.Hw(L);rF(this.videoTrack)&&rF(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(t||L||Y)&&Si(this)}dU3(this);Rn(this.X,this.videoTrack,this.videoTrack.G, !1);Rn(this.X,this.audioTrack,this.audioTrack.G,!1);this.policy.Lj||KML(this,this.videoTrack,this.audioTrack);j9c(this.X,this.videoTrack,this.audioTrack);j9c(this.X,this.audioTrack,this.videoTrack);gzp(this);this.C&&(t=this.C,t.W?(L=t.U+t.policy.w_,t.S||(L=Math.min(L,t.startTimeSecs+t.policy.MG)),t=Math.max(0,L*1E3-Date.now())):t=NaN,isNaN(t)||g.fE(this.Vb,t));g.fE(this.yG)}}; g.M.Mw=function(h){this.qe.Mw(h)}; g.M.Mb=function(){var h=this;if(this.Oi){var t=this.Oi.G,Y=this.Oi.T;Nan(this,this.audioTrack);Nan(this,this.videoTrack);var L=Elr(this);if(L){if(this.policy.Lg){if(!t.ET()){var q=R8(this.audioTrack);if(q){if(!q4(this,this.audioTrack,t,q.info))return;nl$(this,this.audioTrack,t,q)}}if(!Y.ET()&&(q=R8(this.videoTrack))){if(!q4(this,this.videoTrack,Y,q.info))return;nl$(this,this.videoTrack,Y,q)}}this.x8||(this.x8=(0,g.FH)(),this.logger.debug(function(){return"Appends pause start "+h.x8+" reason "+L}), this.policy.S&&this.Pm("apdps",{r:L}))}else if(this.x8&&(xU6(this,this.x8),this.x8=0),kMp(this),q=!1,RW3(this,this.videoTrack,Y)&&(q=!0,rmp(this.timing),Jmi(this.timing)),this.Oi&&!this.Oi.bj()&&(RW3(this,this.audioTrack,t)&&(q=!0,cmn(this.timing),p_3(this.timing)),!this.Ui()&&this.Oi))!this.policy.M6&&rF(this.videoTrack)&&rF(this.audioTrack)&&i8(this.Oi)&&!this.Oi.pH()&&(Y=!1,Y=bq(this.audioTrack).G,Y=Y===this.Cb.G[Y.info.id])&&(this.logger.debug("Setting EOS"),E7c(this.Oi),N9c(this.schedule),this.w9("e")), q&&!this.Oi.isAsync()&&Si(this)}}; g.M.w9=function(h){if(this.policy.fD&&this.Cb.isManifestless){var t=this.videoTrack.G;if(t){var Y=t.index.v3(),L=-1,q=-1;t.index instanceof l$&&(L=t.index.cn(),q=t.index.Nd());this.qe.w9(h,Y,L,q)}}}; g.M.t0=function(h){var t,Y=h===((t=this.Oi)==null?void 0:t.G)?this.audioTrack:this.videoTrack,L;if((L=R8(Y))==null?0:L.isLocked){if(this.qe.J().pZ()){var q;this.Pm("eosl",{ounlock:(q=R8(Y))==null?void 0:q.info.uL()})}var z;tiL(this,h===((z=this.Oi)==null?void 0:z.G))}var V;if(this.policy.eh&&h===((V=this.Oi)==null?void 0:V.G)&&this.MD){t=this.MD-this.getCurrentTime();var l;this.qe.Pm("asl",{l:t,xtag:(l=bq(this.audioTrack))==null?void 0:l.G.info.G});this.tQ=!1;this.MD=0}h.QI()&&h.iV().length===0&& (h.PN(),this.Oi&&!this.Oi.QI()&&(this.qe.J().pZ()&&this.qe.Pm("rms",{ld:"seek"}),this.Oi.U=performance.now(),this.qe.EM(),this.qe.J().pZ()&&g.fE(this.fn)));var H;(H=Y.L)!=null&&iq(H,0);this.policy.y4?Q9n(this):this.WZ()}; g.M.fx5=function(h){if(this.Oi){var t=bq(h===this.Oi.G?this.audioTrack:this.videoTrack);if(h=h.sM())for(var Y=0;Y 5&&h.AQ.shift();t=t.Kb;var l;if((l=this.qe.getVideoData())==null?0:l.enableServerStitchedDai)l=wcc(this.audioTrack,t),Y=wcc(this.videoTrack,t),l!==0&&Y!==0&&l!==Y&&this.handleError("ssdai.avsync",{sq:t,a:l,v:Y},0)}}; g.M.uW=function(h,t,Y,L){h.info.video&&this.S.uW(t,Y,L)}; g.M.BU=function(h){this.G.BU(h)}; g.M.D5=Yb(12);g.M.wD=function(){if(g.R(this.qe.getPlayerState(),8)){var h,t,Y=(t=(h=this.qe.iL())==null?void 0:h.getCurrentTime())!=null?t:this.qe.getCurrentTime(),L;(L=this.Pq)==null||cL1(L,Y)}var q;(q=this.Hq)==null||g.fE(q)}; g.M.wB=function(){return this.videoTrack.C||this.audioTrack.C}; g.M.seek=function(h,t){if(this.Ui())return Qm();if(this.wB())return Qm("seeking to head");if(this.policy.x8&&!isFinite(h))return NOb(this.Ja),g.Gc(Infinity);JJ$(this);In(this);this.policy.G||dU3(this,h);this.Oi&&this.Oi.G&&this.Oi.T&&!this.qe.getVideoData().Eh&&(this.Oi.G.isLocked()||this.Oi.T.isLocked())&&this.qe.A_({reattachOnLockedBuffer:1,vsb:""+this.Oi.T.isLocked(),asb:""+this.Oi.G.isLocked()});var Y=this.getCurrentTime(),L=this.Ja.seek(h,t);this.policy.gU||(this.currentTime=L);Or(this.S,h,Y, this.policy.cR&&!t.A8);Si(this);return g.Gc(L)}; g.M.I_=function(h){return this.policy.G&&this.T.I_(h)}; g.M.Wb=function(h){return this.T.Wb(h)}; g.M.Z6=function(h,t){this.T.Z6(h,t)}; g.M.getCurrentTime=function(){if(this.policy.gU){var h=this.O3()||0;return this.qe.getCurrentTime(!0)-h}return this.currentTime}; g.M.Hy=function(){return this.audioTrack.G.info}; g.M.FC=function(){return this.videoTrack.G.info}; g.M.Cm=function(){return this.audioTrack.G.info.wU}; g.M.DL=function(){return this.videoTrack.G.info.wU}; g.M.Gz=function(){try{this.cN(),n3(this.audioTrack),n3(this.videoTrack),xH(this.audioTrack),xH(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.O.prototype.Gz.call(this)}catch(h){g.ZD(h)}}; g.M.handleError=function(h,t,Y){Y=Y===void 0?0:Y;var L=Vb(Y);h==="fmt.unplayable"&&this.Cb.isLive&&(this.policy.Lg=!1,nk(this.Cb));t=new g.zk(h,t,Y);g.zs(this);qS(t.details);this.qe.handleError(t);h!=="html5.invalidstate"&&t.errorCode!=="fmt.unplayable"&&h!=="fmt.unparseable"&&L&&this.dispose()}; g.M.wP=function(){var h=bq(this.audioTrack),t=bq(this.videoTrack);h={lct:this.getCurrentTime().toFixed(3),lsk:this.Ja.isSeeking(),lmf:this.G.G.isLocked(),lbw:eI(this.schedule).toFixed(3),lhd:cc(this.schedule).toFixed(3),lst:((this.schedule.C.ID()||0)*1E9).toFixed(3),laa:h?h.uL():"",lva:t?t.uL():"",lar:this.audioTrack.T?this.audioTrack.T.uL():"",lvr:this.videoTrack.T?this.videoTrack.T.uL():"",laq:""+cQ(this.audioTrack),lvq:""+cQ(this.videoTrack)};this.Oi&&!this.Oi.bj()&&this.Oi.G&&this.Oi.T&&(h.lab= nA(this.Oi.G.iV()),h.lvb=nA(this.Oi.T.iV()));this.x8&&(h.lapt=((0,g.FH)()-this.x8).toFixed(0),h.lapr=Elr(this));this.Zx&&(h.lapmabht=((0,g.FH)()-this.Zx).toFixed(0),h.lapmabh=$t(this,this.audioTrack).toFixed(0));this.lP&&(h.lapmvbht=((0,g.FH)()-this.lP).toFixed(0),h.lapmvbh=$t(this,this.videoTrack).toFixed(0));this.Ne&&(h.lapsdai=((0,g.FH)()-this.Ne).toFixed(0));return h}; g.M.NW=function(){try{this.policy.G&&this.T.Z6(!1,"pending"),this.audioTrack.NW(),this.videoTrack.NW()}catch(h){g.ZD(h)}this.policy.W=""}; g.M.C7=function(){return p3(this.Y)}; g.M.Pm=function(h,t,Y){this.qe.Pm(h,t,Y===void 0?!1:Y)}; g.M.Oz=function(){return this.qe.Oz()}; g.M.zV=function(h,t){h/=t;isNaN(this.timestampOffset)&&l6c(this,h-Math.min(h,this.policy.nj));return(h-this.timestampOffset)*t}; g.M.O3=function(){return this.timestampOffset}; g.M.isSeeking=function(){return this.Ja.isSeeking()}; g.M.Dy=function(){this.S.Dy()}; g.M.eP=function(h,t,Y){t=t===void 0?!1:t;Y=Y===void 0?{}:Y;this.policy.G?this.W.eP(h,t,Y):this.G.eP(h,t,Y)}; g.M.Fe=function(h,t){if(this.AQ&&this.S.Fe(h,this.AQ)){if(this.policy.MD&&this.policy.T){var Y=this.videoTrack.G.index.RF(h),L;(L=this.gU)==null||L.VF(h,Y)}l6c(this,this.timestampOffset-t);Si(this);this.policy.T&&(nk(this.Cb),xH(this.audioTrack),xH(this.videoTrack),this.NW());return!0}t=this.videoTrack.G.index.RF(h);this.handleError("ad.skipfailed",{dec:!!this.AQ,t:h.toFixed(3),sq:t});return!1}; g.M.getManifest=function(){return this.Cb}; g.M.isOffline=function(){return!!this.qe.getVideoData().cotn}; g.M.Eq=function(h,t){this.qe.Eq(h,t)}; g.M.Eo=function(h){if(this.policy.G)this.T.Z6(!0,"utc"),this.WZ();else{var t=this.qe.getVideoData().UL;if(t){var Y=this.X;Y.NF=h;Y.UL=t;m4(this)}}}; g.M.S7=function(h){this.videoTrack.C=!1;this.audioTrack.C=!1;this.Ja.G=!1;this.qe.S7(h)}; g.M.rL=function(h){this.Ja.rL(h-this.O3())}; g.M.Ck=function(){this.qe.Ck()}; g.M.To=function(h){h!==this.policy.D9&&((this.policy.D9=h)||this.WZ())}; g.M.R2=function(h,t){var Y=this.audioTrack.ND,L=this.videoTrack.ND;Y&&L&&(Y.remove(h,t),L.remove(h,t))}; g.M.A_=function(h){this.qe.A_(h)}; g.M.AU=function(h){this.qe.AU(h)}; g.M.mR=function(h,t,Y){var L;(L=this.gU)==null||L.mR(h,t,Y)}; g.M.Og=function(h,t){var Y;(Y=this.gU)==null||Y.Og(h,t)}; g.M.L7=function(h){var t;return(t=this.gU)==null?void 0:t.L7(void 0,h)}; g.M.yV=function(){return this.qe.yV()}; g.M.ih=function(){nk(this.Cb);this.NW()};g.M=g.V9.prototype;g.M.lO=function(h,t,Y,L,q,z){return this.Do.lO(h,t,Y,L,q,z)}; g.M.QY=function(h,t,Y,L,q,z){return this.Do.QY(h,t,Y,L,q,z)}; g.M.MZ=function(h){return this.Do.MZ(h)}; g.M.KM=function(h){this.Do.KM(h)}; g.M.WN=function(h,t,Y,L){return this.Do.WN(h,t,Y,L)}; g.M.Dy=function(){this.Do.Dy()}; g.M.VF=function(h,t){this.Do.VF(h,t)}; g.M.yX=function(){this.Do.yX()}; g.M.TL=Yb(56);g.M.ZJ=function(h,t,Y){this.Do.ZJ(h,t,Y)}; g.M.G2=Yb(59);g.M.CS=function(h,t,Y,L,q,z,V,l,H){this.Do.CS(h,t,Y,L,q,z,V,l,H)}; g.M.vW=function(h){this.Do.vW(h)}; g.M.UF=function(h){return this.Do.UF(h)}; g.M.n7=function(h){return this.Do.n7(h)};g.F(N4,g.PD);g.F(lz,N4);lz.prototype.U=function(h,t){if(h&&t){var Y=Number(sM(h,"cpi"))*1+1;isNaN(Y)||Y<=0||Ythis.S&&(this.S=Y,g.WZ(this.G)||(this.G={},this.W.stop(),this.T.stop())),this.G[t]=h,g.fE(this.T))}}; lz.prototype.X=function(){for(var h=g.b(Object.keys(this.G)),t=h.next();!t.done;t=h.next()){var Y=t.value;t=this.publish;for(var L=this.S,q=g.zF(this.G[Y]),z=[],V=g.b(q[6].split("&")),l=V.next();!l.done;l=V.next())l=l.value,l.indexOf("cpi=")===0?z.push("cpi="+L.toString()):l.indexOf("ek=")===0?z.push("ek="+g.rk(Y)):z.push(l);q[6]="?"+z.join("&");Y="skd://"+q.slice(2).join("");q=Y.length*2;L=new Uint8Array(q+4);L[0]=q%256;L[1]=(q-L[0])/256;for(q=0;q0)for(var Y=g.b(this.G),L=Y.next();!L.done;L=Y.next())if(t===L.value.info.cryptoPeriodIndex){t=!0;break a}t=!1}if(!t){t=(0,g.FH)();a:{Y=h.cryptoPeriodIndex;if(!isNaN(Y)){L=g.b(this.S.values());for(var q=L.next();!q.done;q=L.next())if(Math.abs(q.value.cryptoPeriodIndex-Y)<=1){Y=!0;break a}}Y=!1}Y?(Y=h.G,Y=Math.max(0,Math.random()*((isNaN(Y)?120:Y)-30))*1E3):Y=0;this.publish("log_qoe",{wvagt:"delay."+Y,cpi:h.cryptoPeriodIndex,reqlen:this.G.length}); Y<=0?yR$(this,h):(this.G.push({time:t+Y,info:h}),g.fE(this.T,Y))}}; Hh.prototype.Gz=function(){this.G=[];N4.prototype.Gz.call(this)};var b7={},Fh1=(b7.DRM_TRACK_TYPE_AUDIO="AUDIO",b7.DRM_TRACK_TYPE_SD="SD",b7.DRM_TRACK_TYPE_HD="HD",b7.DRM_TRACK_TYPE_UHD1="UHD1",b7);g.F(CPL,g.O);g.F(jji,g.PD);g.M=jji.prototype;g.M.ez=function(h){var t=this;if(!(this.Ui()||h.size<=0)){var Y={};h.forEach(function(L,q){var z=hU(t.T)?q:L;q=new Uint8Array(hU(t.T)?L:q);hU(t.T)&&xVr(q);L=g.Gv(q,4);xVr(q);q=g.Gv(q,4);t.G[L]?t.G[L].status=z:t.G[q]?t.G[q].status=z:t.G[L]={type:"",status:z};Khb(t,t.G[L].type,Y)}); piW(this,",");wo(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.M.error=function(h,t,Y,L){this.Ui()||(this.publish("licenseerror",h,t,Y,L),h==="drm.provision"&&(h=(Date.now()-this.U)/1E3,this.U=NaN,this.publish("ctmp","provf",{et:h.toFixed(3)})));Vb(t)&&this.dispose()}; g.M.shouldRetry=function(h,t){return!h&&this.requestNumber===t.requestNumber}; g.M.Gz=function(){this.G={};g.PD.prototype.Gz.call(this)}; g.M.wP=function(){var h={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.R0,cryptoPeriodIndex:this.cryptoPeriodIndex};this.S&&(h.keyStatuses=this.G);return h}; g.M.getInfo=function(){var h=this.W.join();if(Wh(this)){var t=new Set,Y;for(Y in this.G)this.G[Y].status!=="usable"&&t.add(this.G[Y].type);h+="/UKS."+Array.from(t)}return h+="/"+this.cryptoPeriodIndex}; g.M.K6=function(){return this.url};g.F(XO,g.O);g.M=XO.prototype;g.M.h0=function(h){if(this.X){var t=h.messageType||"license-request";this.X(new Uint8Array(h.message),t)}}; g.M.ez=function(){this.C&&this.C(this.G.keyStatuses)}; g.M.onClosed=function(){this.Ui()||g.Ki("xboxone")&&this.S&&this.S("closedShouldNotRetry")}; g.M.Fu=function(h){this.X&&this.X(h.message,"license-request")}; g.M.vJ=function(h){if(this.S){if(this.T){var t=this.T.error.code;h=this.T.error.systemCode}else t=h.errorCode,h=h.systemCode;this.S("t.prefixedKeyError;c."+t+";sc."+h,t,h)}}; g.M.yD=function(){this.U&&this.U()}; g.M.update=function(h){var t=this;if(this.G)return this.G.update(h).then(null,KO(function(Y){k$n(t,"t.update",Y)})); this.T?this.T.update(h):this.element.addKey?this.element.addKey(this.Y.keySystem,h,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,h,this.initData,this.sessionId);return dj()}; g.M.Gz=function(){this.G&&(this.L?this.G.close().catch(g.bc):this.G.close());this.element=null;g.O.prototype.Gz.call(this)};g.F(U_,g.O);g.M=U_.prototype;g.M.setServerCertificate=function(){return this.T.setServerCertificate?this.G.flavor==="widevine"&&this.G.MG?this.T.setServerCertificate(this.G.MG):gG(this.G)&&this.G.lP?this.T.setServerCertificate(this.G.lP):null:null}; g.M.createSession=function(h,t){var Y=h.initData;if(this.G.keySystemAccess){t&&t("createsession");var L=this.T.createSession();iE(this.G)?Y=f6D(Y,this.G.lP):gG(this.G)&&(Y=WhW(Y)||new Uint8Array(0));t&&t("genreq");h=L.generateRequest(h.contentType,Y);var q=new XO(null,null,null,L,null,this.C);h.then(function(){t&&t("genreqsuccess")},KO(function(V){k$n(q,"t.generateRequest",V)})); return q}if(D5(this.G))return Tai(this,Y);if(tU(this.G))return $Vp(this,Y);if((L=this.element)==null?0:L.generateKeyRequest)this.element.generateKeyRequest(this.G.keySystem,Y);else{var z;(z=this.element)==null||z.webkitGenerateKeyRequest(this.G.keySystem,Y)}return this.W=new XO(this.element,this.G,Y,null,null,this.C)}; g.M.q9=function(h){var t=ARp(this,h);t&&t.Fu(h)}; g.M.M9=function(h){var t=ARp(this,h);t&&t.vJ(h)}; g.M.LF=function(h){var t=ARp(this,h);t&&t.yD(h)}; g.M.getMetrics=function(){if(this.T&&this.T.getMetrics)try{var h=this.T.getMetrics()}catch(t){}return h}; g.M.Gz=function(){this.S=this.T=null;var h;(h=this.W)==null||h.dispose();h=g.b(Object.values(this.U));for(var t=h.next();!t.done;t=h.next())t.value.dispose();this.U={};g.O.prototype.Gz.call(this);delete this.element};g.M=CD.prototype;g.M.get=function(h){h=this.findIndex(h);return h!==-1?this.values[h]:null}; g.M.remove=function(h){h=this.findIndex(h);h!==-1&&(this.keys.splice(h,1),this.values.splice(h,1))}; g.M.removeAll=function(){this.keys=[];this.values=[]}; g.M.set=function(h,t){var Y=this.findIndex(h);Y!==-1?this.values[Y]=t:(this.keys.push(h),this.values.push(t))}; g.M.findIndex=function(h){return g.s0(this.keys,function(t){return g.Iv(h,t)})};g.F(RBn,g.PD);g.M=RBn.prototype;g.M.h5G=function(h){this.cI({onecpt:1});h.initData&&mVL(this,new Uint8Array(h.initData),h.initDataType)}; g.M.Knb=function(h){this.cI({onndky:1});mVL(this,h.initData,h.contentType)}; g.M.Of=function(h){this.cI({onneedkeyinfo:1});this.Me.N("html5_eme_loader_sync")&&(this.C.get(h.initData)||this.C.set(h.initData,h));PP$(this,h)}; g.M.fu=function(h){this.S.push(h);M4(this)}; g.M.createSession=function(h){var t=hec(this)?ow6(h):g.Gv(h.initData);this.T.get(t);this.Wm=!0;h=new jji(this.videoData,this.Me,h,this.drmSessionId);this.T.set(t,h);h.subscribe("ctmp",this.EA,this);h.subscribe("keystatuseschange",this.ez,this);h.subscribe("licenseerror",this.wg,this);h.subscribe("newlicense",this.HJ,this);h.subscribe("newsession",this.OA,this);h.subscribe("sessionready",this.Lp,this);h.subscribe("fairplay_next_need_key_info",this.Cp,this);this.Me.N("html5_enable_vp9_fairplay")&&h.subscribe("qualitychange", this.HC,this);h.subscribe("sabrlicenseconstraint",this.kDe,this);dVL(h,this.W)}; g.M.HJ=function(h){this.Ui()||(this.cI({onnelcswhb:1}),h&&!this.heartbeatParams&&(this.heartbeatParams=h,this.publish("heartbeatparams",h)))}; g.M.OA=function(){this.Ui()||(this.cI({newlcssn:1}),this.S.shift(),this.Wm=!1,M4(this))}; g.M.Lp=function(){if(D5(this.G)&&(this.cI({onsnrdy:1}),this.Zx--,this.Zx===0)){var h=this.AQ,t,Y;(t=h.element)==null||(Y=t.msSetMediaKeys)==null||Y.call(t,h.S)}}; g.M.ez=function(h){if(!this.Ui()){!this.X5&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(tPL(this),this.X5=!0);this.cI({onksch:1});var t=this.HC;if(!Wh(h)&&g.kL&&h.T.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var Y="large";else{Y=[];var L=!0;if(Wh(h))for(var q=g.b(Object.keys(h.G)),z=q.next();!z.done;z=q.next())z=z.value,h.G[z].status==="usable"&&Y.push(h.G[z].type),h.G[z].status!=="unknown"&&(L=!1);if(!Wh(h)||L)Y=h.W;Y=JR$(Y)}t.call(this,Y);if(!Wh(h))for(t= {},Y=g.b(h.W),L=Y.next();!L.done;L=Y.next())Khb(h,L.value,t);this.videoData.authorizedFormats=h.authorizedFormats;this.publish("keystatuseschange",h)}}; g.M.EA=function(h,t){this.Ui()||this.publish("ctmp",h,t)}; g.M.Cp=function(h,t){this.Ui()||this.publish("fairplay_next_need_key_info",h,t)}; g.M.wg=function(h,t,Y,L){this.Ui()||(this.videoData.N("html5_log_drm_metrics_on_error")&&tPL(this),this.publish("licenseerror",h,t,Y,L))}; g.M.K4=function(){return this.Y}; g.M.HC=function(h){var t=g.FZ("auto",h,!1,"l");if(this.videoData.qW){if(this.Y.equals(t))return}else if(lAL(this.Y,h))return;this.Y=t;this.publish("qualitychange");this.cI({updtlq:h})}; g.M.kDe=function(h){this.videoData.sabrLicenseConstraint=h}; g.M.Gz=function(){this.G.keySystemAccess&&this.element&&(this.R0?this.element.setMediaKeys(null).catch(g.bc):this.element.setMediaKeys(null));this.element=null;this.S=[];for(var h=g.b(this.T.values()),t=h.next();!t.done;t=h.next())t=t.value,t.unsubscribe("ctmp",this.EA,this),t.unsubscribe("keystatuseschange",this.ez,this),t.unsubscribe("licenseerror",this.wg,this),t.unsubscribe("newlicense",this.HJ,this),t.unsubscribe("newsession",this.OA,this),t.unsubscribe("sessionready",this.Lp,this),t.unsubscribe("fairplay_next_need_key_info", this.Cp,this),this.Me.N("html5_enable_vp9_fairplay")&&t.unsubscribe("qualitychange",this.HC,this),t.dispose();this.T.clear();this.U.removeAll();this.C.removeAll();this.heartbeatParams=null;g.PD.prototype.Gz.call(this)}; g.M.wP=function(){for(var h={systemInfo:this.G.wP(),sessions:[]},t=g.b(this.T.values()),Y=t.next();!Y.done;Y=t.next())h.sessions.push(Y.value.wP());return h}; g.M.getInfo=function(){return this.T.size<=0?"no session":""+this.T.values().next().value.getInfo()+(this.X?"/KR":"")}; g.M.cI=function(h,t){t=t===void 0?!1:t;this.Ui()||(qS(h),(this.Me.pZ()||t)&&this.publish("ctmp","drmlog",h))};g.F(q_b,g.O);g.M=q_b.prototype;g.M.mE=function(){return!!this.x6}; g.M.sT=function(){return this.T}; g.M.handleError=function(h){var t=this;whL(this,h);if((h.errorCode!=="html5.invalidstate"&&h.errorCode!=="fmt.unplayable"&&h.errorCode!=="fmt.unparseable"||!HDD(this,h.errorCode,h.details))&&!U4i(this,h)){if(this.SM.AQ!=="yt"&&yhr(this,h)&&this.videoData.VU&&(0,g.FH)()/1E3>this.videoData.VU&&this.SM.AQ==="hm"){var Y=Object.assign({e:h.errorCode},h.details);Y.stalesigexp="1";Y.expire=this.videoData.VU;Y.init=this.videoData.i$/1E3;Y.now=(0,g.FH)()/1E3;Y.systelapsed=((0,g.FH)()-this.videoData.i$)/1E3; h=new g.zk(h.errorCode,Y,2);this.qe.Tm(h.errorCode,2,"SIGNATURE_EXPIRED",qS(h.details))}if(Vb(h.severity)){var L;Y=(L=this.qe.loader)==null?void 0:L.G.G;if(this.SM.N("html5_use_network_error_code_enums"))if(W83(h)&&Y&&Y.isLocked())var q="FORMAT_UNAVAILABLE";else if(this.SM.U||h.errorCode!=="auth"||h.details.rc!==429)h.errorCode==="ump.spsrejectfailure"&&(q="HTML5_SPS_UMP_STATUS_REJECTED");else{q="TOO_MANY_REQUESTS";var z="6"}else W83(h)&&Y&&Y.isLocked()?q="FORMAT_UNAVAILABLE":this.SM.U||h.errorCode!== "auth"||h.details.rc!=="429"?h.errorCode==="ump.spsrejectfailure"&&(q="HTML5_SPS_UMP_STATUS_REJECTED"):(q="TOO_MANY_REQUESTS",z="6");this.qe.Tm(h.errorCode,h.severity,q,qS(h.details),z)}else this.qe.publish("nonfatalerror",h),L=/^pp/.test(this.videoData.clientPlaybackNonce),this.x0(h.errorCode,h.details),L&&h.errorCode==="manifest.net.connect"&&(h="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.FH)(),ey(h,"manifest",function(V){t.U=!0;t.Pm("pathprobe",V)}, function(V){t.x0(V.errorCode,V.details)}))}}; g.M.Pm=function(h,t){this.qe.lI.Pm(h,t)}; g.M.x0=function(h,t){t=qS(t);this.qe.lI.x0(h,t)};FO.prototype.p7=function(h){var t=j2W(this);if(!h)return{gC:tL,KY:tL,Z$:tL,bQ:tL,HV:tL,fh:tL,mw:t};var Y=tL;if(Zs(t)||this.N("html5_perf_cap_override_sticky"))Y=phL(this,h);return{gC:Y,KY:Q2r(this,h),Z$:d4D(this,h),bQ:v3r(this,h.videoData),HV:K8L(this,h.videoData,h),fh:bDc(this,h),mw:t}}; FO.prototype.sj=function(h){var t;g.Ti(this.Me)&&(t=window.screen&&window.screen.width?new g.Se(window.screen.width,window.screen.height):null);t||(t=this.Me.Pu?this.Me.Pu.clone():this.Hg.oT());(fi||ht||h)&&t.scale(g.qD());return t}; FO.prototype.N=function(h){return this.Me.N(h)};g.F(jP,g.O);jP.prototype.onError=function(h){if(h!=="player.fatalexception"||this.provider.N("html5_exception_to_health"))h==="sabr.fallback"&&(this.encounteredSabrFallback=!0),h.match(jth)?this.networkErrorCount++:this.nonNetworkErrorCount++}; jP.prototype.send=function(){if(!(this.S||this.G<0)){E3L(this);var h=g.iz(this.provider)-this.G,t="PLAYER_PLAYBACK_STATE_UNKNOWN",Y=this.playerState.rk;this.playerState.isError()?t=Y&&Y.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.R(this.playerState,2)?t="PLAYER_PLAYBACK_STATE_ENDED":g.R(this.playerState,64)?t="PLAYER_PLAYBACK_STATE_UNSTARTED":g.R(this.playerState,16)||g.R(this.playerState,32)?t="PLAYER_PLAYBACK_STATE_SEEKING":g.R(this.playerState,1)&&g.R(this.playerState, 4)?t="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.R(this.playerState,1)?t="PLAYER_PLAYBACK_STATE_BUFFERING":g.R(this.playerState,4)?t="PLAYER_PLAYBACK_STATE_PAUSED":g.R(this.playerState,8)&&(t="PLAYER_PLAYBACK_STATE_PLAYING");Y=Ney[pI(this.provider.videoData)];a:switch(this.provider.Me.playerCanaryState){case "canary":var L="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":L="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:L="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var q=kA3(this.provider), z=this.T<0?h:this.T-this.G;h=this.provider.Me.Df+36E5<(0,g.FH)();t={started:this.T>=0,stateAtSend:t,joinLatencySecs:z,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:L,playerCanaryStage:q,isAd:this.provider.videoData.isAd(),liveMode:Y,hasDrm:!!g.e_(this.provider.videoData),isGapless:this.provider.videoData.C,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:F$(this.provider.videoData)};h||g.tq("html5PlayerHealthEvent",t);this.S=!0;this.dispose()}}; jP.prototype.Gz=function(){this.S||this.send();window.removeEventListener("error",this.dj);window.removeEventListener("unhandledrejection",this.dj);g.O.prototype.Gz.call(this)}; var jth=/\bnet\b/;ODi.prototype.update=function(){if(this.C){var h=this.Bx()||0,t=g.iz(this.provider);h>=this.provider.qe.getDuration()-.1&&(this.previouslyEnded=!0);if(h!==this.G||$41(this,h,t)){var Y;if(!(Y=ht-this.ob+2||$41(this,h,t))){Y=this.provider.qe.getVolume();var L=Y!==this.L,q=this.provider.qe.isMuted()?1:0;q!==this.Y?(this.Y=q,Y=!0):(!L||this.W>=0||(this.L=Y,this.W=t),Y=t-this.W,this.W>=0&&Y>2?(this.W=-1,Y=!0):Y=!1)}Y&&(bz(this),this.S=h);this.ob=t;this.G=h}}}; ODi.prototype.Bx=function(){var h=this.provider.qe.Bx();return this.provider.Me.N("html5_disable_live_dvr_shrink_for_cdm_vss")&&MZ(this.provider.videoData)?h+this.provider.qe.O3():h};Tor.prototype.send=function(h){var t=this;if(!this.yG){var Y=S_W(this),L=g.Xz(this.uri,Y);this.Me.N("vss_through_gel_double")&&I86(L);this.Wm&&!this.Me.N("html5_simplify_pings")?D4r(this,L):Ah6(this,h).then(function(q){t.Wm&&(q=q||{},q.method="POST",q.postParams={atr:t.attestationResponse});P6L(L,q,{token:t.x8,cC:t.G$,mdxEnvironment:t.mdxEnvironment},t.Me,h,t.gU,t.isFinal&&t.lR||t.X5||t.S&&t.mK)}); this.yG=!0}}; Tor.prototype.T=function(h){h===void 0&&(h=NaN);return Number(h.toFixed(3)).toString()}; var ok={},PzL=(ok.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,ok.LIVING_ROOM_APP_MODE_MAIN=1,ok.LIVING_ROOM_APP_MODE_KIDS=2,ok.LIVING_ROOM_APP_MODE_MUSIC=3,ok.LIVING_ROOM_APP_MODE_UNPLUGGED=4,ok.LIVING_ROOM_APP_MODE_GAMING=5,ok),dw={},BoL=(dw.EMBEDDED_PLAYER_MODE_UNKNOWN=0,dw.EMBEDDED_PLAYER_MODE_DEFAULT=1,dw.EMBEDDED_PLAYER_MODE_PFP=2,dw.EMBEDDED_PLAYER_MODE_PFL=3,dw);g.F(GA,g.O);GA.prototype.O9=function(){this.G.update();VoL(this)&&(i8L(this),gYW(this))}; GA.prototype.Gz=function(){g.O.prototype.Gz.call(this);ch(this);n3b(this.G)}; GA.prototype.wP=function(){return S_W(Q9(this,"playback"))}; GA.prototype.uZ=function(h){var t=Q9(this,"engage");t.R0=h;return ReD(t,yvL(this.provider))};W6L.prototype.isEmpty=function(){return this.endTime===this.startTime};eP.prototype.N=function(h){return this.Me.N(h)}; eP.prototype.getCurrentTime=function(){return this.qe.getCurrentTime()}; eP.prototype.Bx=function(){return this.qe.Bx()}; var XgD={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.F(g.Jh,g.O);g.M=g.Jh.prototype;g.M.O9=function(){if(this.provider.videoData.enableServerStitchedDai&&this.MW){var h;(h=this.S.get(this.MW))==null||h.O9()}else this.G&&this.G.O9()}; g.M.y7=function(h){this.qoe&&this.qoe.y7(h)}; g.M.JP=Yb(29);g.M.jF=Yb(35);g.M.FV=function(h,t){this.qoe&&this.qoe.FV(h,t)}; g.M.So=function(){if(this.provider.videoData.enableServerStitchedDai&&this.MW){var h;(h=this.S.get(this.MW))!=null&&bz(h.G)}else this.G&&bz(this.G.G)}; g.M.x0=function(h,t){this.qoe&&WMW(this.qoe,h,t);if(this.T)this.T.onError(h)}; g.M.onPlaybackRateChange=function(h){if(this.qoe)this.qoe.onPlaybackRateChange(h);this.G&&bz(this.G.G)}; g.M.mx=Yb(52);g.M.Pm=function(h,t,Y){this.qoe&&this.qoe.Pm(h,t,Y)}; g.M.kx=function(h,t,Y){this.qoe&&this.qoe.kx(h,t,Y)}; g.M.sf=function(h){var t;(t=this.qoe)==null||t.sf(h)}; g.M.QX=function(h){var t;(t=this.qoe)==null||t.QX(h)}; g.M.w9=function(h,t,Y,L){var q;(q=this.qoe)==null||q.w9(h,t,Y,L)}; g.M.AU=function(h){this.qoe&&this.qoe.AU(h)}; g.M.zF=function(h,t,Y){this.qoe&&this.qoe.zF(h,t,Y)}; g.M.tF=Yb(23);g.M.zL=function(){if(this.qoe)return this.qoe.zL()}; g.M.wP=function(){if(this.provider.videoData.enableServerStitchedDai&&this.MW){var h,t;return(t=(h=this.S.get(this.MW))==null?void 0:h.wP())!=null?t:{}}return this.G?this.G.wP():{}}; g.M.OE=function(){var h;return(h=this.qoe)==null?void 0:h.OE()}; g.M.b_=function(h,t){var Y;(Y=this.qoe)==null||Y.b_(h,t)}; g.M.uZ=function(h){return this.G?this.G.uZ(h):function(){}}; g.M.getVideoData=function(){return this.provider.videoData}; g.M.resume=function(){this.qoe&&this.qoe.resume()};g.F(g.pD,g.O);g.M=g.pD.prototype;g.M.Ji=function(h,t){this.sync();t&&this.G.array.length>=2E3&&this.XF("captions",1E4);t=this.G;if(h.length>1&&h.length>t.array.length)t.array=t.array.concat(h),t.array.sort(t.G);else{h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value,!t.array.length||t.G(Y,t.array[t.array.length-1])>0?t.array.push(Y):g.Rv(t.array,Y,t.G)}this.S=NaN;this.sync()}; g.M.d4=function(h){h.length>1E4&&g.bc(new g.Ea("Over 10k cueRanges removal occurs with a sample: ",h[0]));if(!this.Ui()){var t=new Set(h);this.T=this.T.filter(function(Y){return!t.has(Y)}); el6(this.G,t);this.sync()}}; g.M.Ks=function(h,t){if(!this.Ui()){var Y=this.AF().find(function(L){return L.id===t&&L.namespace===h}); Y&&this.d4([Y])}}; g.M.XF=function(h,t){var Y=(isNaN(this.S)?awL(this):this.S)-t;t=this.AF().filter(function(L){return L.namespace===h&&L.endthis.G,z=g.R(Y,8)&&g.R(Y,16),V=this.qe.E0().isBackground()||Y.isSuspended();$3(this,this.JQ,z&&!V,q,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.G);l=z&&l&&AsL(t,this.G);var H=!L||Math.abs(L-this.G)>10,w=this.Me.N("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),W=L===0&&this.T&&[11,10].includes(this.T);$3(this,this.yG,l&&H&&!V&&(!w||!W),q,"qoe.slowseek",function(){t.seekTo(h.G)},"set_cmt"); H=l&&$W(t.jQ(),this.G);var y=this.qe.loader;l=!y||y.Yt();var X=function(){t.seekTo(h.G+.001)}; $3(this,this.X5,H&&l&&!V,q,"qoe.slowseek",X,"jiggle_cmt");l=function(){return h.qe.GZ()}; $3(this,this.Ne,H&&!V,q,"qoe.slowseek",l,"new_elem");W=j0(Y);H=Y.isBuffering();var U=t.jQ(),C=fA(U,L),d=C>=0&&U.end(C)>L+5,Q=W&&H&&d;w=this.qe.getVideoData();$3(this,this.Zx,L<.002&&this.G<.002&&z&&g.z4(this.Me)&&g.Is(w)&&!V,q,"qoe.slowseek",l,"slow_seek_shorts");$3(this,this.L,w.m2()&&z&&!V&&!w.R0,q,"qoe.slowseek",l,"slow_seek_gapless_shorts");$3(this,this.AQ,Q&&!V,W&&!H,"qoe.longrebuffer",X,"jiggle_cmt");$3(this,this.x8,Q&&!V,W&&!H,"qoe.longrebuffer",l,"new_elem_nnr");if(y){var J=y.getCurrentTime(); z=t.Nx();z=v7L(z,J);z=!y.isSeeking()&&L===z;$3(this,this.G$,W&&H&&z&&!V,W&&!H&&!z,"qoe.longrebuffer",function(){t.seekTo(J)},"seek_to_loader")}z={}; X=fA(U,Math.max(L-3.5,0));Q=X>=0&&L>U.end(X)-1.1;var e=X>=0&&X+1=0&&Q&&e<11;z.close2edge=Q;z.gapsize=e;z.buflen=U.length;this.T&&(z.seekSour=this.T);$3(this,this.R0,W&&H&&!V,W&&!H,"qoe.longrebuffer",function(){},"timeout",z); z=Y.isSuspended();z=this.qe.jm()&&!z;$3(this,this.C,z,!z,"qoe.start15s",function(){h.qe.nC("ad")},"ads_preroll_timeout"); z=this.Me.experiments.I0("html5_use_playback_rate_in_skip_slow_ad")?this.qe.getPlaybackRate()*1E3:1E3;C=L-this.W5;$3(this,this.Y8,g.Is(w)&&y,W&&!H,"qoe.longrebuffer",function(){h.qe.A_()},"reset_media_source"); $3(this,this.lP,g.Is(w)&&y,W&&!H,"qoe.longrebuffer",l,"reset_media_element");this.W===0&&(this.U=L);y=H&&this.G===0&&L>1&&L===this.U;$3(this,this.gU,g.Is(w)&&y,W&&!H,"qoe.slowseek",function(){t.seekTo(0)},"reseek_after_time_jump"); V=Y.isOrWillBePlaying()&&!V;d=this.qe.Xn()-L<6&&!d&&this.qe.dF();$3(this,this.Y,w.m2()&&V&&H&&d,W&&!H,"qoe.longrebuffer",function(){h.qe.GZ(!1,!0)},"handoff_end_long_buffer_reload"); V=this.T===104||this.qe.Ch;Y=X$(w)&&w.isAd()&&!w.R0&&V&&(H||g.R(Y,8)&&g.R(Y,16));$3(this,this.iP,Y,q,"qoe.start15s",l,"gapless_ad_slow_start");this.W=L;this.X.start()}}; fD.prototype.x0=function(h,t,Y){t=this.wP(t);t.wn=Y;t.wdup=this.S[h]?"1":"0";this.qe.x0(new g.zk(h,t));this.S[h]=!0}; fD.prototype.wP=function(h){h=Object.assign(this.qe.wP(!0),h.wP());this.G&&(h.stt=this.G.toFixed(3));this.qe.getVideoData().isLivePlayback&&(h.ct=this.qe.getCurrentTime().toFixed(3),h.to=this.qe.O3().toFixed(3));delete h.uga;delete h.euri;delete h.referrer;delete h.fexp;delete h.vm;return h}; nD.prototype.reset=function(){this.G=this.T=this.S=this.startTimestamp=0;this.W=!1}; nD.prototype.test=function(h){if(!this.X||this.T)return!1;if(!h)return this.reset(),!1;h=(0,g.FH)();if(!this.startTimestamp)this.startTimestamp=h,this.S=0;else if(this.S>=this.X)return this.T=h,!0;this.S+=1;return!1}; nD.prototype.wP=function(){var h={},t=(0,g.FH)();this.startTimestamp&&(h.wsd=(t-this.startTimestamp).toFixed());this.T&&(h.wtd=(t-this.T).toFixed());this.G&&(h.wssd=(t-this.G).toFixed());return h};g.F(iqL,g.O);g.M=iqL.prototype;g.M.setMediaElement=function(h){(this.mediaElement=h)?(this.mediaElement&&(this.X||this.S||!this.mediaElement.Gw()||this.seekTo(.01,{EY:"seektimeline_setupMediaElement"})),TA(this)):SP(this)}; g.M.getCurrentTime=function(h){h=h===void 0?!1:h;if(Ah(this.qe)){if(this.N("html5_use_centralized_player_time")&&!h&&!isNaN(this.U))return this.U;if(!isNaN(this.T))return this.T}else{if(this.N("html5_use_centralized_player_time")&&!h&&!isNaN(this.U)&&isFinite(this.U))return this.U;if(!isNaN(this.T)&&isFinite(this.T))return this.T}return this.mediaElement&&CGn(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; g.M.X9=function(){return this.iP}; g.M.Bx=function(){return this.getCurrentTime()-this.O3()}; g.M.U8=function(){return this.G?this.G.U8():Infinity}; g.M.isAtLiveHead=function(h){if(!this.G)return!1;h===void 0&&(h=this.getCurrentTime());return E_(this.G,h)}; g.M.Av=function(){return!!this.G&&this.G.Av()}; g.M.seekTo=function(h,t){var Y=t===void 0?{}:t;t=Y.d_===void 0?!1:Y.d_;var L=Y.Uw===void 0?0:Y.Uw;var q=Y.yN===void 0?!1:Y.yN;var z=Y.WC===void 0?0:Y.WC;var V=Y.EY===void 0?"":Y.EY;var l=Y.seekSource===void 0?void 0:Y.seekSource;var H=Y.zV===void 0?!1:Y.zV;var w=Y.A8===void 0?!1:Y.A8;Y=Y.BW===void 0?!1:Y.BW;H&&(h+=this.O3());F$(this.videoData)&&l===29&&(this.iP=void 0);H=h=this.wz())||!g.Ef(this.videoData),d||(Q={st:Q,mst:this.wz()},this.G&&this.N("html5_high_res_seek_logging")&&(Q.ht=this.G.U8(),Q.adft=Rlr(this.G)),this.qe.Pm("seeknotallowed",Q)),Q=d));if(!Q)return this.W&&(this.W=null,ybL(this)),g.Gc(this.getCurrentTime());Q=.005;w&&this.N("html5_sabr_seek_no_shift_tolerance")&&(Q=0);if(Math.abs(h-this.T)<=Q&&this.gU)return this.X;V&&(Q=h,(this.Me.pZ()||this.N("html5_log_seek_reasons"))&& this.qe.Pm("seekreason",{reason:V,tgt:Q}));l&&(this.AQ.T=l);this.gU&&SP(this);this.X||(this.X=new VT);h&&!isFinite(h)&&q3W(this,!1);(V=Y||H)||(V=h,V=!(this.videoData.isLivePlayback&&this.videoData.S&&!this.videoData.S.G&&!(this.mediaElement&&this.mediaElement.nH()>0&&l8(this.mediaElement)>0)||os(this.videoData)&&this.bL()===this.wz(!1)?0:isFinite(V)||!os(this.videoData)));V||(h=R2(this,h,q));h&&!isFinite(h)&&q3W(this,!1);this.N("html5_use_centralized_player_time")?this.U=h:this.T=this.S=h;this.Y8= z;this.C=0;this.G&&(q=this.G,z=h,BY1(q,z,!1),POL(q,z));q=this.qe;z=h;V={d_:t,seekSource:l};q.XZ.S=z;Y=q.Kk;Y.mediaTime=z;Y.G=!0;V.d_&&q.r_(V);V=z>q.videoData.endSeconds&&z>q.videoData.limitedPlaybackDurationInSeconds;q.KV&&V&&isFinite(z)&&IGL(q);zt.start&&IGL(this.qe);return this.X}; g.M.wz=function(h){if(!this.videoData.isLivePlayback)return this.qe.videoData.wz();var t;return zM(this.videoData)&&((t=this.mediaElement)==null?0:t.isPaused())&&this.videoData.G?(h=this.getCurrentTime(),Ku6(this.a7(h)*1E3)+h):this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&F$(this.videoData)&&this.videoData.G?h?this.videoData.G.x8||0:this.videoData.G.nI||0:os(this.videoData)&&this.videoData.AQ&&this.videoData.G?this.videoData.G.wz()+this.timestampOffset:this.videoData.S&&this.videoData.S.G? !h&&this.G?this.G.U8():this.qe.videoData.wz()+this.timestampOffset:this.mediaElement?EA()?Ku6(this.mediaElement.R1().getTime()):l8(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.M.bL=function(){if(this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&F$(this.videoData)){var h;return((h=this.videoData.G)==null?void 0:h.GV)||0}h=this.videoData?this.videoData.bL()+this.timestampOffset:this.timestampOffset;if(zM(this.videoData)&&this.videoData.G){var t,Y=Number((t=this.videoData.progressBarStartPosition)==null?void 0:t.utcTimeMillis)/1E3;t=this.getCurrentTime();t=this.a7(t)-t;if(!isNaN(Y)&&!isNaN(t))return Math.max(h,Y-t)}return h}; g.M.EM=function(){this.X||this.seekTo(this.S,{EY:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.M.wB=function(){return this.gU&&!isFinite(this.T)}; g.M.Gz=function(){zMb(this,null);this.AQ.dispose();g.O.prototype.Gz.call(this)}; g.M.wP=function(){var h={};this.loader&&Object.assign(h,this.loader.wP());this.mediaElement&&Object.assign(h,this.mediaElement.wP());return h}; g.M.UO=function(h){this.timestampOffset=h}; g.M.getStreamTimeOffset=function(){return os(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0}; g.M.O3=function(){return this.timestampOffset}; g.M.a7=function(h){return this.videoData&&this.videoData.G?this.videoData.G.a7(h-this.timestampOffset):NaN}; g.M.f4=function(){if(!this.mediaElement)return 0;if(k$(this.videoData)){var h=this.mediaElement,t=h.jQ();h=(S2(t)&&h.getDuration()?t.end(t.length-1):0)+this.timestampOffset-this.bL();t=this.wz()-this.bL();return Math.max(0,Math.min(1,h/t))}return this.mediaElement.f4()}; g.M.HR=function(h){this.Y&&(this.Y.G=h)}; g.M.Eo=function(h,t){this.qe.Pm("requestUtcSeek",{time:h});F$(this.videoData)&&(this.iP=h);var Y;(Y=this.loader)==null||Y.Eo(h);t&&(this.Wm=t)}; g.M.S7=function(h){F$(this.videoData)&&(this.iP=void 0);if(this.Wm)this.qe.Pm("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Wm}),this.qe.seekTo(this.Wm,{EY:"utcSeekingFallback_streamTime"}),this.Wm=0;else{var t=this.getCurrentTime();isNaN(t)||(h=this.a7(t)-h,t-=h,this.qe.Pm("utcSeekingFallback",{source:"estimate",timeSeconds:t}),this.qe.seekTo(t,{EY:"utcSeekingFallback_estimate"}))}}; g.M.Ck=function(){this.Wm=0}; g.M.N=function(h){return this.Me&&this.Me.N(h)};g.F(Bh,g.O);Bh.prototype.start=function(){this.T.start()}; Bh.prototype.stop=function(){this.T.stop()}; Bh.prototype.clear=function(){for(var h=g.b(this.G.values()),t=h.next();!t.done;t=h.next())t.value.clear()}; Bh.prototype.sample=function(){for(var h=g.b(this.S),t=h.next();!t.done;t=h.next()){var Y=g.b(t.value);t=Y.next().value;Y=Y.next().value;this.G.has(t)||this.G.set(t,new bqL(ZQH.has(t)));this.G.get(t).update(Y())}this.T.start()}; var ZQH=new Set(["networkactivity"]);bqL.prototype.update=function(h){this.T?(this.buffer.add(h-this.G||0),this.G=h):this.buffer.add(h)}; bqL.prototype.clear=function(){this.buffer.clear();this.G=0};D8.prototype.qr=function(){return this.started}; D8.prototype.start=function(){this.started=!0}; D8.prototype.reset=function(){this.finished=this.started=!1};var rb1=!1;g.F(g.gY,g.PD);g.M=g.gY.prototype;g.M.Gz=function(){this.logger.debug("dispose");g.lZ(this.Ek);L8b(this.vx);this.visibility.unsubscribe("visibilitystatechange",this.vx);sqL(this.lI);g.hN(this.lI);qi(this);g.JS.ou(this.Jr);this.EL();this.FI=null;g.hN(this.videoData);g.hN(this.RJ);g.hN(this.aq);g.hN(this.Ap);g.tN(this.g8M);this.KV=null;g.PD.prototype.Gz.call(this)}; g.M.zF=function(h,t,Y,L,q){if(this.Me.N("html5_log_ad_playback_docid")){var z=this.lI;if(z.qoe){z=z.qoe;var V=this.Me.AQ||"yt";g.D6(z,g.iz(z.provider),"ad_playback",[h,t,Y,q,V])}}else this.lI.zF(h,t,Y);this.N("html5_log_media_perf_info")&&this.Pm("adloudness",{ld:L.toFixed(3),cpn:h})}; g.M.Cm=function(){var h;return(h=this.loader)==null?void 0:h.Cm()}; g.M.DL=function(){var h;return(h=this.loader)==null?void 0:h.DL()}; g.M.FC=function(){var h;return(h=this.loader)==null?void 0:h.FC()}; g.M.Hy=function(){var h;return(h=this.loader)==null?void 0:h.Hy()}; g.M.WM=function(){return this.videoData.WM()}; g.M.nN=function(){return this.N("html5_not_reset_media_source")&&!this.WM()&&!this.videoData.isLivePlayback&&g.Is(this.videoData)&&!this.Me.supportsGaplessShorts()}; g.M.lX=function(){this.videoData.C&&(this.videoData.ip=this.videoData.ip||this.UY.k8().Cm(),this.videoData.Bw=this.videoData.Bw||this.UY.k8().DL());if(bnb(this.videoData)||!Yl(this.videoData)){var h=this.videoData.errorDetail;this.Tm(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),h,h,this.videoData.UV||void 0)}this.N("html5_generate_content_po_token")&&this.I2();this.N("html5_enable_d6de4")&&this.mH()}; g.M.getVideoData=function(){return this.videoData}; g.M.J=function(){return this.Me}; g.M.p7=function(){return this.Y3.p7(this.FI)}; g.M.E0=function(){return this.visibility}; g.M.kA=function(){return this.mediaElement&&this.mediaElement.UZ()?this.mediaElement.gP():null}; g.M.iL=function(){return this.mediaElement}; g.M.Pz=function(){if(this.N("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.J().U&&this.J().houseBrandUserStatus&&this.Pm("hbut",{status:this.J().houseBrandUserStatus},!0);if(this.videoData.ra())return!0;this.Tm("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.M.VR=function(h){(h=h===void 0?!1:h)||UiL(this.lI);this.Lz=h;!this.Pz()||this.Ss.qr()?g.z4(this.Me)&&this.videoData.isLivePlayback&&this.Ss.qr()&&!this.Ss.finished&&!this.Lz&&this.Kw():(this.Ss.start(),h=this.lI,g.iz(h.provider),h.qoe&&HoL(h.qoe),this.Kw())}; g.M.Kw=function(){if(this.videoData.isLoaded()){var h=this.RJ;g.Sk(h.SM.experiments,"html5_player_min_build_cl")>0&&g.Sk(h.SM.experiments,"html5_player_min_build_cl")>780287553&&XhL(h,"oldplayer");$a3(this)}else this.videoData.lZ||this.videoData.hj?this.Lz&&g.z4(this.Me)&&this.videoData.isLivePlayback||(this.videoData.lZ?z8b(this.videoData):(h=this.lI,h.qoe&&(h=h.qoe,Y3(h,"protected"),h.provider.videoData.X?h.G4():h.provider.videoData.subscribe("dataloaded",h.G4,h)),inL(this.videoData))):!this.videoData.loading&& this.Ij&&Oqi(this)}; g.M.T7=function(h){this.Do=h;this.loader&&(LhL(this.loader,new g.V9(h)),this.Pm("sdai",{sdsstm:1}))}; g.M.mR=function(h,t,Y){var L;(L=this.loader)==null||L.mR(h,t,Y)}; g.M.VE=Yb(8);g.M.isFullscreen=function(){return this.visibility.isFullscreen()}; g.M.isBackground=function(){return this.visibility.isBackground()}; g.M.wv=function(){var h=this;this.logger.debug("Updating for format change");YY(this).then(function(){return iO(h)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.M.Vj=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.VR();this.Pz()&&!g.R(this.playerState,128)&&(this.gJ.qr()||(this.gJ.start(),this.videoData.MS?this.a4(C_(this.playerState,4)):this.a4(C_(C_(this.playerState,8),1))),nNb(this))}; g.M.s4=function(){return this.Ss.finished}; g.M.sendAbandonmentPing=function(){g.R(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.nW(!0),sqL(this.lI),g.hN(this.lI),g.JS.ou(this.Jr))}; g.M.Id=function(h,t){h=h===void 0?!0:h;(t===void 0||t)&&this.mediaElement&&this.mediaElement.pause();this.a4(h?new g.yT(14):new g.yT)}; g.M.JK=function(){this.lI.So()}; g.M.Tm=function(h,t,Y,L,q,z){this.logger.debug(function(){return"set player error: ec="+h+", detail="+q}); var V,l;g.HZ(K3E,Y)?V=Y:Y?l=Y:V="GENERIC_WITHOUT_LINK";L=(L||"")+(";a6s."+$o());if(h==="auth"||h==="drm.auth"||h==="heartbeat.stop")Y&&(L+=";r."+Y.replaceAll(" ","_")),z&&(L+="sr."+z.replaceAll(" ","_"));t={errorCode:h,errorDetail:q,errorMessage:l||g.SB[V]||"",uY:V,UV:z||"",HY:L,r3:t,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=h;L8(this,"dataloaderror");this.a4(Uk(this.playerState,128,t));g.JS.ou(this.Jr);qi(this);this.k9()}; g.M.nC=function(h){this.Kg=this.Kg.filter(function(t){return h!==t}); this.logger.debug(function(){return"set preroll ready for "+h}); this.gJ.qr()&&nNb(this)}; g.M.U$=function(){var h;(h=!!this.Kg.length)||(h=this.W2.G.array[0],h=!!h&&h.start<=-0x8000000000000);return h}; g.M.Av=function(){return this.XZ.Av()}; g.M.isPlaying=function(){return this.playerState.isPlaying()}; g.M.hm=function(){return this.playerState.hm()&&this.videoData.MS}; g.M.getPlayerState=function(){return this.playerState}; g.M.Nb=function(h){var t;(t=this.loader)==null||t.Nb(h)}; g.M.pT=function(h){var t;(t=this.loader)==null||t.pT(h)}; g.M.getPlayerType=function(){return this.playerType}; g.M.getPreferredQuality=function(){if(this.FI){var h=this.FI;h=h.videoData.mY.compose(h.videoData.XT);h=om(h)}else h="auto";return h}; g.M.J_=Yb(16);g.M.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.M.setMediaElement=function(h){this.logger.debug("set media element");if(this.mediaElement&&h.gP()===this.mediaElement.gP()&&(h.isView()||this.mediaElement.isView())){if(h.isView()||!this.mediaElement.isView())this.TN(),this.mediaElement=h,this.mediaElement.qe=this,qqW(this),this.XZ.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.EL();if(!this.playerState.isError()){var t=MO(this.playerState,512);g.R(t,8)&&!g.R(t,2)&&(t=C_(t,1));h.isView()&&(t=MO(t,64));this.a4(t)}this.mediaElement= h;this.mediaElement.qe=this;!g.z4(this.Me)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);qqW(this);this.XZ.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.RJ.mE()&&n7L(this.mediaElement)}}; g.M.EL=function(h,t,Y){h=h===void 0?!1:h;t=t===void 0?!1:t;Y=Y===void 0?!1:Y;this.logger.debug("remove media element");if(this.mediaElement){var L=this.getCurrentTime();L>0&&(this.XZ.S=L);this.XZ.setMediaElement(null);!h&&this.nN()?tUD(this):this.pg(Y);this.loader&&(Si(this.loader),lO(this,t));this.o6.stop();if(this.mediaElement&&(!this.gJ.qr()&&!this.jm()||this.playerState.isError()||g.R(this.playerState,2)||this.a4(C_(this.playerState,512)),this.mediaElement)){this.TN();if(h||!this.mediaElement.isView())this.Wq.nA("mesv_s"), this.mediaElement.stopVideo(),Hg(this);this.mediaElement=this.mediaElement.qe=null}}}; g.M.playVideo=function(h,t){h=h===void 0?!1:h;t=t===void 0?!1:t;var Y=this,L,q,z,V,l,H,w;return g.k(function(W){if(W.T==1){Y.logger.debug("start play video");var y=window.google_image_requests;y&&y.length>10&&(window.google_image_requests=y.slice(-10));if(g.R(Y.playerState,128))return W.return();if(Y.RJ.sT())return Y.publish("signatureexpired"),W.return();Y.mediaElement&&UiL(Y.lI);Y.Vj();(g.R(Y.playerState,64)||h)&&Y.a4(C_(Y.playerState,8));return Y.gJ.finished&&Y.mediaElement?Y.FI||!Y.LB?W.eM(2): g.K(W,Y.LB,3):W.return()}if(W.T!=2&&g.R(Y.playerState,128))return W.return();if(!Y.videoData.S)return Y.videoData.isLivePlayback&&!g.UZ(Y.Me.X,!0)?(L="html5.unsupportedlive",q=2):(L=Y.videoData.WM()?"fmt.unplayable":"fmt.noneavailable",q=1),g.bc(Error("selectableFormats")),z=Y.N("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",Y.Tm(L,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",z),W.return();if(Y.eF()&&Y.videoData.S.G)return Y.logger.debug("rebuild playbackData for airplay"), W.return(YY(Y));if(Ah(Y))y=Y.XZ,b6(y.videoData)&&!y.isAtLiveHead(y.getCurrentTime())&&y.Av()&&y.qe.seekTo(Infinity,{EY:"seektimeline_peggedToLive",seekSource:34});else if(b6(Y.videoData)&&(V=Y.getCurrentTime()V;if(!l||!V){z&&l&&(L=Math.max(L,z));var H;z=ZDp(t,(H=q.G)==null?void 0:H.videoInfos);H=t.qe.getPlaybackRate();H>1&&z&&(H=mOL(t.Me.X,q.G.videoInfos,H),h.G!==0&&H< h.G&&t.qe.setPlaybackRate(1));var w,W;h=((w=q.videoData.T)==null?void 0:(W=w.video)==null?void 0:W.qualityOrdinal)||0;g.dK("yt-player-quality",{quality:L,previousQuality:h},31104E3);t.Me.schedule.policy.W=VH()>=480;if(t.N("html5_exponential_memory_for_sticky")){w=t.Me.XI;W=1;var y=y===void 0?!1:y;yiL(w,"sticky-lifetime");w.values["sticky-lifetime"]&&w.OJ["sticky-lifetime"]||(w.values["sticky-lifetime"]=0,w.OJ["sticky-lifetime"]=0);y&&vc(w,"sticky-lifetime")>.0625&&(W=w.OJ["sticky-lifetime"]*2);w.values["sticky-lifetime"]+= 1*Math.pow(2,w.G/W);w.OJ["sticky-lifetime"]=W;w.W.start()}if(t.N("html5_perf_cap_override_sticky")){y=t.S;w=t.N("html5_perserve_av1_perf_cap");w=w===void 0?!1:w;if(w===void 0?0:w){W=lr();h=g.b(Object.keys(W));for(t=h.next();!t.done;t=h.next())t=t.value,t.indexOf("1")!==0&&delete W[t];g.dK("yt-player-performance-cap",W,2592E3)}else g.QS("yt-player-performance-cap");moc(w);if(w){w=g.b(I5.keys());for(W=w.next();!W.done;W=w.next())W=W.value,W.startsWith("1")||I5.delete(W);w=g.b(s_.values());for(W=w.next();!W.done;W= w.next())W=W.value,W.startsWith("1")||s_.delete(W);w=g.b(y.keys());for(W=w.next();!W.done;W=w.next())W=W.value,W.startsWith("1")||y.delete(W)}else I5.clear(),s_.clear(),y.clear()}}}this.loader&&(y=this.loader,Y=Y||"",y.policy.G?Sn(y.W.G,Y):Sn(y.G.X,Y));this.tv()}; g.M.getUserPlaybackQualityPreference=function(){return this.videoData.S&&!this.videoData.S.G?om(this.videoData.mY):br[VH()]}; g.M.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.M.setUserAudio51Preference=function(h,t){this.getUserAudio51Preference()!==h&&(this.Pm("toggle51",{pref:h}),g.dK("yt-player-audio51",h,t?31536E3:2592E3),this.wv())}; g.M.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.M.setProximaLatencyPreference=function(h){var t=this.getProximaLatencyPreference();this.Pm("proxima",{pref:h});g.dK("yt-player-proxima-pref",h,31536E3);t!==h&&(h=this.XZ,h.tQ=!0,h.qe.seekTo(Infinity,{EY:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.M.getProximaLatencyPreference=function(){var h;return(h=N9())!=null?h:0}; g.M.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.M.I2=function(){this.videoData.videoId?this.UY.I2(this.videoData):this.Pm("povid",{})}; g.M.mH=function(){this.videoData.videoId?this.UY.mH(this.videoData):this.Pm("piavid",{})}; g.M.tv=function(){if(!this.Ui()&&!g.R(this.playerState,128)&&this.videoData.S){if(this.videoData.S.G)tv(this);else{var h=Ni(this),t=this.videoData;a:{var Y=this.videoData.m$;if(h.G){for(var L=g.b(Y),q=L.next();!q.done;q=L.next()){q=q.value;var z=q.getInfo(),V=g.FS[z.video.quality];if((!h.S||z.video.quality!=="auto")&&V<=h.G){Y=q;break a}}Y=Y[Y.length-1]}else Y=Y[0]}t.JQ=Y;RMn(this,h.reason,NWD(this,this.videoData.JQ))}if(this.N("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.XZ.L= !1,this.playVideo()}}; g.M.Xp=function(h,t){if(this.Ui()||g.R(this.playerState,128))return!1;var Y,L=!((Y=this.videoData.S)==null||!Y.G);Y=L&&t?this.getCurrentTime()-this.O3():NaN;if(this.Me.experiments.I0("html5_record_audio_format_intent")){var q=this.lI;if(q.qoe){q=q.qoe;var z=[h.j4.id,isNaN(Y)?"m":"t"];g.D6(q,g.iz(q.provider),"afi",z)}}if(L)return t&&(L=NE3(this.XZ),this.Pm("aswh",{id:h.id,xtags:h.xtags,bh:L.toFixed(3)})),this.loader.setAudioTrack(h,Y,t),!0;if(PGi(this)){a:{t=this.mediaElement.audioTracks();for(L=0;L< t.length;++L)if(Y=t[L],Y.label===h.j4.getName()){if(Y.enabled){t=!1;break a}t=Y.enabled=!0;break a}t=void 0}t&&this.Pm("hlsaudio",{id:h.id})}else{a:if(t=this.videoData,t.W&&!Jy(t.W)||h===t.ZR||!t.m$||t.m$.length<=0)t=!1;else{L=g.b(t.m$);for(Y=L.next();!Y.done;Y=L.next()){Y=Y.value;if(!(Y instanceof ZJ)){t=!1;break a}q=h.j4.getId();Y.T&&(EGc(Y.T,q),Y.e4=null)}t.ZR=h;t=!0}t&&iO(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Pm("hlsaudio",{id:h.id}))}return!0}; g.M.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.M.getAudioTrack=function(){if(PGi(this)){var h=Da3(this);if(h)return h}return this.videoData.getAudioTrack()}; g.M.Xm=function(){return this.videoData.W}; g.M.Zh=function(){if(this.videoData.N("html5_trigger_loader_when_idle_network")&&!this.videoData.fZ()&&F$(this.videoData)){var h;(h=this.loader)!=null&&h.WZ()}}; g.M.rg=function(){if(X$(this.videoData)&&this.videoData.N("html5_gapless_append_early")){var h;(h=this.loader)!=null&&h.WZ()}}; g.M.onPlayerRequestSent=function(h){this.UY.onPlayerRequestSent(h)}; g.M.cN=function(h){h=h===void 0?!1:h;if(this.loader){var t=this.loader,Y=t.cN;var L=this.videoData;L=L.N("html5_ssdai_use_post_for_media")&&L.enableServerStitchedDai?!1:os(L)&&L.t7&&!L.isAd();Y.call(t,L,h)}}; g.M.pg=function(h){h=h===void 0?!1:h;this.Oi&&(this.logger.debug("remove media source"),Ocn(this.Oi),this.cN(h),this.Oi.dispose(),this.Oi=null)}; g.M.zO=function(){return this.Oi}; g.M.KT=function(h,t,Y,L){function q(V){try{LZn(z,V,t,Y)}catch(l){g.bc(l),V={msi:"1",ename:l&&typeof l==="object"&&"name"in l?String(l.name):void 0},z.N("html5_log_fmt_unplaybable_trigger")&&(V.trg="setmediasrc"),z.handleError(new g.zk("fmt.unplayable",V,1))}} var z=this;t=t===void 0?!1:t;Y=Y===void 0?!1:Y;gZ3(this,L===void 0?!1:L);this.Oi=h;this.nN()&&qO(this.Oi)==="open"?q(this.Oi):acc(this.Oi,q)}; g.M.Of=function(h){this.logger.debug("onNeedKeyInfo");this.tY.set(h.initData,h);this.I7&&(this.I7.Of(h),this.N("html5_eme_loader_sync")||this.tY.remove(h.initData))}; g.M.Xy=function(h){this.videoData.w6=g.FZ("auto",h,!1,"u");tv(this)}; g.M.HR=function(h){var t=h.reason,Y=h.G.info,L=h.token,q=h.videoId,z=this.lI,V=this.videoData;if(Y!==V.W){var l=!V.W;V.W=Y;t!=="m"&&t!=="t"&&(t=l?"i":"a");var H=t==="m"||t==="t";this.Me.experiments.I0("html5_refactor_sabr_audio_format_selection_logging")?this.j5=new MPL(V,Y,t,"",L,q):(t=new MPL(V,Y,t,"",L),z.qoe&&(z=z.qoe,Y=g.iz(z.provider),MHW(z,Y,t)));this.publish("internalaudioformatchange",V,!l&&H)}this.XZ.HR(h.G.index)}; g.M.L_=function(h){this.publish("localmediachange",h)}; g.M.eP=function(h){h=h===void 0?{}:h;var t;(t=this.loader)==null||t.eP(this.Me,CI(this.videoData),h)}; g.M.sT=function(){return this.RJ.sT()}; g.M.vY=function(h){this.x0(new g.zk("staleconfig",{reason:h}))}; g.M.handleError=function(h){this.RJ.handleError(h)}; g.M.mE=function(){return this.RJ.mE()}; g.M.S7=function(h){this.XZ.S7(h)}; g.M.GZ=function(h,t){h=h===void 0?!1:h;t=t===void 0?!1:t;var Y=this,L,q,z;return g.k(function(V){if(V.T==1){Y.loader&&Y.loader.Dy();Y.loader&&Y.loader.Ui()&&qi(Y);if(Y.N("html5_enable_vp9_fairplay")&&Y.WM()&&(L=Y.videoData.G)!=null)for(var l in L.G)L.G.hasOwnProperty(l)&&(L.G[l].G=null,L.G[l].S=!1);Y.a4(C_(Y.playerState,2048));Y.publish("newelementrequired");return h?g.K(V,YY(Y),2):V.eM(2)}Y.videoData.fZ()&&((q=Y.loader)==null?0:q.Wm)&&!Ah(Y)&&((z=Y.isAtLiveHead())&&b6(Y.videoData)?Y.seekTo(Infinity, {EY:"videoPlayer_getNewElement"}):Y.videoData.f6&&Y.loader&&(l=Y.loader,l.Cb.fZ&&(l.Cb.f6||l.Cb.W||l.Cb.isPremiere?(l.seek(0,{EY:"loader_resetSqless"}),l.videoTrack.C=!0,l.audioTrack.C=!0,l.videoTrack.X=!0,l.audioTrack.X=!0):T9(l.Cb)&&m4(l))));t&&Y.seekTo(0,{seekSource:105});g.R(Y.playerState,8)&&Y.playVideo();g.Z$(V)})}; g.M.C4=function(h){this.Pm("hgte",{ne:+h});this.videoData.C=!1;h&&this.GZ();this.loader&&cJW(this.loader)}; g.M.XH=function(h){this.Pm("newelem",{r:h});this.GZ()}; g.M.pauseVideo=function(h){h=h===void 0?!1:h;if((g.R(this.playerState,64)||g.R(this.playerState,2))&&!h)if(g.R(this.playerState,8))this.a4(Fr(this.playerState,4,8));else if(this.hm())iO(this);else return;g.R(this.playerState,128)||(h?this.a4(C_(this.playerState,256)):this.a4(Fr(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.Ef(this.videoData)&&this.loader&&lO(this,!1)}; g.M.stopVideo=function(){this.pauseVideo();this.loader&&(lO(this,!1),this.loader.NW())}; g.M.k9=function(h,t){h=h===void 0?!1:h;t=t===void 0?!1:t;if(this.nN()&&t){var Y;(Y=this.mediaElement)==null||Y.k9()}else{var L;(L=this.mediaElement)==null||L.stopVideo()}Hg(this);qi(this);g.R(this.playerState,128)||(h?this.a4(MO(MO(C_(this.playerState,4),8),16)):this.a4(Uk(this.playerState)));this.videoData.videoId&&this.Me.Zx.remove(this.videoData.videoId)}; g.M.seekTo=function(h,t){t=t===void 0?{}:t;this.logger.debug(function(){return"SeekTo "+h+", "+JSON.stringify(t)}); g.R(this.playerState,2)&&iO(this);t.sM8&&this.a4(C_(this.playerState,2048));t.seekSource!==58&&t.seekSource!==60||!this.N("html5_update_vss_during_gapless_seeking")||Mop(this.lI,t.seekSource);this.XZ.seekTo(h,t);this.W2.sync()}; g.M.r_=function(h){this.Wq.W.T=(0,g.FH)();g.R(this.playerState,32)||(this.a4(C_(this.playerState,32,h==null?void 0:h.seekSource)),g.R(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Kn()}; g.M.UQ=function(h){h=h==null?void 0:h.seekSource;g.R(this.playerState,32)?(this.a4(Fr(this.playerState,16,32,h)),this.publish("endseeking")):g.R(this.playerState,2)||this.a4(C_(this.playerState,16,h));h=this.Wq.W;var t=this.videoData,Y=this.playerState.isPaused();if(t.clientPlaybackNonce&&!isNaN(h.G)){if(Math.random()<.01){Y=Y?"pbp":"pbs";var L={startTime:h.G};t.U&&(L.cttAuthInfo={token:t.U,videoId:t.videoId});ZN("seek",L);g.jC({clientPlaybackNonce:t.clientPlaybackNonce},"seek");isNaN(h.T)||sH("pl_ss", h.T,"seek");sH(Y,(0,g.FH)(),"seek")}h.reset()}}; g.M.i5=function(h){this.UQ(h)}; g.M.ZB=function(){this.publish("SEEK_COMPLETE")}; g.M.VO=function(h){var t=this.UY,Y=this.videoData.clientPlaybackNonce,L=this.playerType;if(h.scope===4){var q=h.type;if(q){var z=t.x4(),V=z.getVideoData().clientPlaybackNonce;L===1&&(V=Y);if(L=Lr$(t,V)){if(Y=L.getVideoData())h.writePolicy===2&&Y.sabrContextUpdates.has(q)||(h.sendByDefault&&Y.iP.add(q),Y.sabrContextUpdates.set(q,h)),t.N("html5_enable_t1_enf_on_sabr")&&(h=q===5,q=VkL(Y.playerResponse),h?(h=q?1:0,hZ(h,"m.p_",{}),x5("MBSTAT",h)):h=1,h===0&&t.m_.jM("onAbnormalityDetected"))}else z.Pm("scuset", {ncpf:"1",ccpn:V,crcpn:Y})}else g.bc(Error("b/380308491: contextUpdateType is undefined"))}}; g.M.mI=function(){if(this.playerType===2)return this.UY.mI("")}; g.M.getCurrentTime=function(h){return this.XZ.getCurrentTime(h===void 0?!1:h)}; g.M.X9=function(){return this.XZ.X9()}; g.M.Bx=function(){return this.XZ.Bx()}; g.M.OM=function(){return this.Bx()}; g.M.U8=function(){return this.XZ.U8()}; g.M.getPlaylistSequenceForTime=function(h){return this.videoData.getPlaylistSequenceForTime(h-this.O3())}; g.M.zq=function(){var h=NaN;this.mediaElement&&(h=this.mediaElement.zq());return h>=0?h:this.getCurrentTime()}; g.M.a7=function(){var h;return((h=this.videoData.G)==null?0:h.a7)?this.videoData.G.a7(this.getCurrentTime()-this.O3()):this.mediaElement&&(h=this.mediaElement.R1())&&(h=h.getTime(),!isNaN(h))?h/1E3+this.getCurrentTime():NaN}; g.M.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.O3():this.wz()?this.wz():0}; g.M.py=function(){var h=new oYp;if(this.loader){var t=this.Me.schedule,Y=this.Me.pZ();Y=Y===void 0?!1:Y;h.FU=t.R0;h.AA=t.lP;h.bandwidthEstimate=JU(t);if(Y){Y=(t.Y.ID()*1E3).toFixed();var L=(t.gU.ID()*1E3).toFixed(),q=cc(t).toFixed(2),z=((t.C.ID()||0)*1E9).toFixed(2),V=t.S.ID().toFixed(0),l=t.X5.ID().toFixed(0),H=t.L.percentile(.5).toFixed(2),w=t.L.percentile(.92).toFixed(2),W=t.L.percentile(.96).toFixed(2),y=t.L.percentile(.98).toFixed(2);t.G?t.G.reset():t.G=new sZ;t.G.add(t.Wm);t.G.add(t.interruptions.length); for(var X=0,U=t.interruptions.length-1;U>=0;U--){var C=t.interruptions[U];t.G.add(C-X);X=C}X=0;for(U=t.W.length-1;U>=0;U--){C=t.W[U];var d=C.stamp/36E5;t.G.add(d-X);X=d;t.G.add(C.net/1E3);t.G.add(C.max)}t=t.G.LC();h.G={ttr:Y,ttm:L,d:q,st:z,bw:V,abw:l,v50:H,v92:w,v96:W,v98:y,"int":t}}YRL(this.loader,h)}else this.mediaElement&&(h.Mx=Hs(this.mediaElement));h.FU=this.FU;h.AA=this.AA;h.S=this.isAtLiveHead()&&this.isPlaying()?ENi(this):NaN;return h}; g.M.Eq=function(h,t){this.AA+=h;this.FU+=t}; g.M.f4=function(){return this.mediaElement?g.Ef(this.videoData)?1:k$(this.videoData)?this.isAtLiveHead()||this.Av()?1:this.XZ.f4():this.mediaElement.f4():0}; g.M.dY=function(){var h=this.n5,t=m8(h,"bandwidth"),Y=m8(h,"bufferhealth"),L=m8(h,"livelatency"),q=m8(h,"networkactivity"),z=Ph(h,"bandwidth"),V=Ph(h,"bufferhealth"),l=Ph(h,"livelatency");h=Ph(h,"networkactivity");var H=this.mM(),w=H.droppedVideoFrames;H=H.totalVideoFrames;var W=this.getCurrentTime();if(this.I7){var y="IT/"+(this.I7.G.getInfo()+"/"+om(this.K4()));y+="/"+this.I7.getInfo()}else y="";var X=this.isGapless(),U=this.RT(),C=this.zL(),d=g.VW(this),Q=this.getPlayerState(),J=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var e=0;var v="";if(this.Do){if(this.Do.o$){v="D,";break a}e=this.Do.K3;v=this.Do.eL.substring(0,4)}e>0?(e="AD"+e+", ",v&&(e+=v+", "),v=e):v=""}return{vO:z,MK:V,currentTime:W,jq:y,droppedVideoFrames:w,isGapless:X,RT:U,E_:C,Ux:t,Xk:Y,Cv:L,Dc:q,Ox:l,RI:h,Rl:d,playerState:Q,Ec:J,MX:v,totalVideoFrames:H}}; g.M.wP=function(h){var t={};if(h===void 0?0:h){Object.assign(t,this.lI.wP());this.mediaElement&&(Object.assign(t,this.mediaElement.wP()),h=this.mM(),t.dvf=h.droppedVideoFrames,t.tvf=h.totalVideoFrames);this.loader&&Object.assign(t,this.loader.wP());this.I7&&(t.drm=JSON.stringify(this.I7.wP()));t.state=this.playerState.state.toString(16);g.R(this.playerState,128)&&(t.debug_error=JSON.stringify(this.playerState.rk));this.U$()&&(t.prerolls=this.Kg.join(","));this.videoData.pn&&(t.ismb=this.videoData.pn); this.videoData.latencyClass!=="UNKNOWN"&&(t.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(t.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)t.is_mosaic=1;this.videoData.cotn&&(t.is_offline=1,t.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(t.playerResponseCpn=this.videoData.playerResponseCpn);this.UY.isOrchestrationLeader()&&(t.leader=1);this.videoData.isLivePlayback&& (this.videoData.G&&OJ(this.videoData.G)&&(t.segduration=OJ(this.videoData.G)),h=this.XZ,t.lat=h.Y?fw6(h.Y.W):0,t.liveutcstart=this.videoData.liveUtcStartSeconds);t.relative_loudness=this.videoData.Vb.toFixed(3);if(h=g.VW(this))t.optimal_format=h.video.qualityLabel;t.user_qual=VH();t.release_version=N[68]}t.debug_videoId=this.videoData.videoId;return t}; g.M.addCueRange=function(h){this.Am([h])}; g.M.removeCueRange=function(h){this.W2.d4([h])}; g.M.yg=function(){this.W2.sync()}; g.M.XF=function(h,t){return this.W2.XF(h,t)}; g.M.Am=function(h,t){this.W2.Ji(h,t)}; g.M.nJ=function(h){this.W2.d4(h)}; g.M.AF=function(){return this.W2.AF()||[]}; g.M.qN=function(){return this.d7}; g.M.eF=function(){return this.visibility.eF()}; g.M.GI=function(){this.mediaElement&&this.mediaElement.GI()}; g.M.TaP=function(){L8(this)}; g.M.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.M.TN=function(){g.ZZ(this.Fi)}; g.M.eyG=function(){this.Kn();this.publish("onLoadProgress",this.f4())}; g.M.xK=function(h){var t=h.target.Pd();if(this.mediaElement&&this.mediaElement.Pd()&&this.mediaElement.Pd()===t){U3L(this,h.type);switch(h.type){case "error":var Y=Ws(this.mediaElement)||"",L=this.mediaElement.oD();if(Y==="capability.changed"){this.N("html5_restart_on_capability_change")?(this.Pm("capchg",{msg:L}),this.GZ(!0)):YY(this);return}if(this.mediaElement.hasError()&&(L={msg:L},this.N("html5_log_fmt_unplaybable_trigger")&&(L.trg="elementevt"),HDD(this.RJ,Y,L)))return;if(this.isBackground()&& this.mediaElement.vM()===4){this.k9();zG(this,"unplayable");return}break;case "durationchange":Y=this.mediaElement.getDuration();isFinite(Y)&&(!this.Oi||Y>0)&&Y!==1&&this.rd(Y);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());JvW(this.W2);this.lI.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":MU1(this);this.publish("onLoadedMetadata");VUL(this);Y=this.a7();this.videoData.cR&&(this.videoData.cR=Y);break;case "loadstart":VUL(this); break;case "progress":case "suspend":this.II.o1();break;case "playing":this.Wq.nA("plev");this.Z4&&!Ah(this)&&(this.Z4=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{EY:"videoplayer_onPlaying"})));break;case "timeupdate":Y=this.mediaElement&&!this.mediaElement.getCurrentTime();L=this.mediaElement&&this.mediaElement.nH()===0;if(Y&&(!this.Vw||L))return;this.Vw=this.Vw||!!this.mediaElement.getCurrentTime();z4L(this);this.Kn();if(!this.mediaElement||this.mediaElement.Pd()!== t)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.Nx().length>0&&this.mediaElement.jQ().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.nH()>2||!this.mediaElement.isSeeking()&&$W(this.mediaElement.jQ(),this.mediaElement.getCurrentTime()))&&(Y=this.mediaElement.wP(),Y.bh=Hs(this.mediaElement).toFixed(3), this.Pm("uwe",Y));break;case "resize":MU1(this);this.videoData.T&&this.videoData.T.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.OP&&g.R(this.playerState,8)&&!g.R(this.playerState,1024)&&this.getCurrentTime()===0&&g.Hq){zG(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Pd()===t){sMb(this.XZ,h);this.publish("videoelementevent",h);t=this.playerState;var q=this.Kk,z=this.mediaElement;Y=this.Me.experiments; L=this.videoData.clientPlaybackNonce;if(!g.R(t,128)){var V=t.state;z=z?z:h.target;var l=z.getCurrentTime();if(!g.R(t,64)||h.type!=="ended"&&h.type!=="pause"){var H=z.getDuration();H=z.isEnded()||l>1&&Math.abs(l-H)<1.1;var w=h.type==="pause"&&z.isEnded();l=h.type==="ended"||h.type==="waiting"||h.type==="timeupdate"&&!g.R(t,4)&&!vh(q,l);if(w||H&&l)z.oR()>0&&z.Pd()&&(V=14);else switch(h.type){case "error":Ws(z)&&(V|=128);break;case "pause":g.R(t,256)?(V^=256)||(V=64):g.R(t,32)||g.R(t,2)||g.R(t,4)||(V= 4,g.R(t,1)&&g.R(t,8)&&(V|=1));break;case "playing":l=V;V=(V|8)&-1093;l&4?(V|=1,Xr(q,z,!0)):vh(q,z.getCurrentTime())&&(V&=-2);g.R(t,1)&&Xr(q,z)&&(V|=1);break;case "seeking":V|=16;g.R(t,8)&&(V|=1);V&=-3;break;case "seeked":V&=-17;Xr(q,z,!0);break;case "waiting":g.R(t,2)||(V|=1);Xr(q,z);break;case "timeupdate":l=g.R(t,16),H=g.R(t,4),(g.R(t,8)||l)&&!H&&vh(q,z.getCurrentTime())&&(V=8),Xr(q,z)&&(V|=1)}}q=V;V=null;q&128&&(V=h.target,z=Ws(V),l=1,z?(z==="capability.changed"&&(l=2),H="GENERIC_WITHOUT_LINK", w=V.wP(),w.mediaElem="1",Y.I0("html5_log_fmt_unplaybable_trigger")&&(w.trg="melem"),/AUDIO_RENDERER/.test(V.oD())&&(H="HTML5_AUDIO_RENDERER_ERROR"),V={errorCode:z,errorMessage:g.SB[H]||"",uY:H,HY:qS(w),r3:l,cpn:t.rk?t.rk.cpn:""}):V=null,V&&(V.cpn=L));t=Uk(t,q,V)}!g.R(this.playerState,1)&&g.R(t,1)&&XAp(this,"evt"+h.type);this.a4(t)}}}; g.M.Q0_=function(h){h=h.G.availability==="available";h!==this.d7&&(this.d7=h,this.publish("airplayavailabilitychange"))}; g.M.E8z=function(){var h=(0,g.FH)(),t=this.mediaElement.eF();this.Pm("airplay",{ia:t});!t&&!isNaN(this.LM)&&h-this.LM<2E3||(this.LM=h,t!==this.eF()&&(h=this.visibility,h.G!==t&&(h.G=t,h.vx()),this.Pm("airplay",{rbld:t}),this.wv()),this.publish("airplayactivechange"))}; g.M.YA=function(h){if(this.loader){var t=this.loader,Y=t.S,L=t.getCurrentTime(),q=Date.now()-Y.L;Y.L=NaN;Y.Pm("sdai",{adfetchdone:h,d:q});h&&!isNaN(Y.C)&&Y.T!==3&&xR(Y.loader,L,Y.C,Y.U);Y.policy.T?Y.X=NaN:Y.W=NaN;aJ(Y,4,Y.T===3?"adfps":"adf");Si(t)}}; g.M.CB=function(){g.lZ(this.Ek);this.o6.stop();this.videoData.R0=!0;this.Me.ZR=!0;this.Me.G$=0;var h=this.RJ;if(h.videoData.T){var t=h.SM.X,Y=h.videoData.T.wU;t.W.has(Y)&&(t.W.delete(Y),t.T=!0)}h.G.stop();this.pk();g.R(this.playerState,8)&&this.a4(MO(this.playerState,65));this.Lz=!1;h=this.lI;h.G&&YvL(h.G);h.T&&(h=h.T,t=g.iz(h.provider),h.G<0&&(h.G=t,h.delay.start()),h.T=t,h.W=t);g.fE(this.aq);this.publish("playbackstarted");(h=g.il("yt.scheduler.instance.clearPriorityThreshold"))?h():Iz(0)}; g.M.pk=function(){var h=this.UY.n6(),t={},Y={};!bW("pbs",this.Wq.timerName)&&NT.measure&&NT.getEntriesByName&&(NT.getEntriesByName("mark_nr")[0]?Yoc("mark_nr"):Yoc());h.videoId&&(t.videoId=h.videoId);h.clientPlaybackNonce&&!this.N("web_player_early_cpn")&&(t.clientPlaybackNonce=h.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(Y.isPausedOnLoad=!0);Y.itag=h.T?Number(h.T.itag):-1;h.uM&&(Y.preloadType=String(this.jR?2:1));t.liveStreamMode=Ney[pI(h)];t.playerInfo=Y;this.Wq.infoGel(t); if(this.loader){h=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(h.S&&(t=window.performance.getEntriesByName(h.S),t.length&&(t=t[0],h.tick("vri",t.fetchStart),h.tick("vdns",t.domainLookupEnd),h.tick("vreq",t.requestStart),h.tick("vrc",t.responseEnd))),h.T&&(t=window.performance.getEntriesByName(h.T),t.length&&(t=t[0],h.tick("ari",t.fetchStart),h.tick("adns",t.domainLookupEnd),h.tick("areq",t.requestStart),h.tick("arc",t.responseEnd))));h=h.ticks;for(var L in h)h.hasOwnProperty(L)&& this.Wq.tick(L,h[L])}}; g.M.Kn=function(h){var t=this;h=h===void 0?!1:h;if(this.mediaElement&&this.videoData){lGL(this.XZ,this.isPlaying());var Y=this.getCurrentTime();!this.loader||g.R(this.playerState,4)&&g.Ef(this.videoData)||g.R(this.playerState,32)&&F$(this.videoData)||zBL(this.loader,Y);Y>5&&(this.XZ.S=Y);var L=g.Sq();L?g.JS.ou(this.Jr):g.Nc(this.Jr);var q=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!q||zM(this.videoData))&&!g.R(this.playerState,128)){var z=function(){if(t.mediaElement&&!g.R(t.playerState, 128)){t.Me.pZ()&&U3L(t,"pfx");var V=t.getCurrentTime();t.N("html5_buffer_underrun_transition_fix")&&(V-=t.O3());var l=Hs(t.mediaElement),H=g.R(t.playerState,8),w=vh(t.Kk,V),W=Icr(t.Kk,V,(0,g.FH)(),l);H&&w?t.a4(MO(t.playerState,1)):H&&W?(H=t.getDuration(),w=b6(t.videoData),H&&Math.abs(H-V)<1.1?(t.Pm("setended",{ct:V,bh:l,dur:H,live:w}),t.mediaElement.rH()?(t.logger.debug("seek to 0 because of looping"),t.seekTo(0,{EY:"videoplayer_loop",seekSource:37})):t.Id()):(t.playerState.isBuffering()||XAp(t,"progress_fix"), t.a4(C_(t.playerState,1)))):(H&&!w&&!W&&V>0&&(H=(Date.now()-t.x6)/1E3,w=t.getDuration(),V>w-1&&t.Pm("misspg",{t:V.toFixed(2),d:w.toFixed(2),r:H.toFixed(2),bh:l.toFixed(2)})),t.playerState.isPaused()&&t.playerState.isBuffering()&&Hs(t.mediaElement)>5&&t.a4(MO(t.playerState,1)));t.Kn()}}; this.mediaElement.Nx().length===0?this.Jr=L?g.JS.yC(z,100):g.zz(z,100):this.Jr=L?g.JS.yC(z,500):g.zz(z,500)}this.videoData.dP=Y;!h&&this.isPlaying()&&lIn(this);Jh3(this.Y3,this.FI,this.iL(),this.isBackground())&&tv(this);this.publish("progresssync",h);q&&zM(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.M.T8=function(){this.Tm("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.M.zL=function(){return this.lI.zL()}; g.M.C7=function(){return this.loader?this.loader.C7():JU(this.Me.schedule,!0)}; g.M.a4=function(h){if(!g.sk(this.playerState,h)){this.logger.debug(function(){return"Setting state "+h.toString()}); var t=new g.Yu(h,this.playerState);this.playerState=h;C2$(this);var Y=!this.Kt.length;this.Kt.push(t);var L=this.mediaElement&&this.mediaElement.isSeeking();g.qK(t,1)&&this.loader&&Qe1(this.loader);L=t.oldState.state===8&&!L;g.qK(t,1)&&L&&g.R(this.playerState,8)&&!g.R(this.playerState,64)&&this.loader&&(rJn(this.loader),this.mediaElement&&Hs(this.mediaElement)>=5&&uOb(this.Y3,this.FI)&&tv(this));(L=g.Sk(this.Me.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.R(h,1)&&(g.R(h,8)||g.R(h, 16))?this.YX.start(L):this.YX.stop();(Ls(t,8)<0||g.qK(t,1024))&&this.o6.stop();!g.qK(t,8)||this.videoData.R0||g.R(t.state,1024)||this.o6.start();g.R(t.state,8)&&Ls(t,16)<0&&!g.R(t.state,32)&&!g.R(t.state,2)&&this.playVideo();g.R(t.state,2)&&k$(this.videoData)&&(this.rd(this.getCurrentTime()),this.Kn(!0));g.qK(t,2)&&(this.nW(!0),this.Me.pZ()&&this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&F$(this.videoData)&&this.videoData.G&&(L={minst:""+this.videoData.G.GV,cminst:""+(this.videoData.G.bL()+ this.O3()),maxst:""+this.videoData.G.nI,hts:""+this.videoData.G.x8,cmaxst:""+(this.videoData.G.wz()+this.O3())},this.Pm("sabrSeekableBoundaries",L)));g.qK(t,128)&&this.k9();this.videoData.G&&this.videoData.isLivePlayback&&!this.yn&&(Ls(t,8)<0?c0n(this.videoData.G):g.qK(t,8)&&this.videoData.G.resume());VB6(this.XZ,t);F6D(this.lI,t);if(Y&&!this.Ui())try{for(var q=g.b(this.Kt),z=q.next();!z.done;z=q.next()){var V=z.value;pgc(this.W2,V);this.publish("statechange",V)}}finally{this.Kt.length=0}}}; g.M.QA=function(){this.Wq.tick("qoes")}; g.M.EM=function(){this.XZ.EM()}; g.M.wg=function(h,t,Y,L){a:{var q=this.RJ;L=L===void 0?"LICENSE":L;Y=Y.substring(0,256);var z=Vb(t);h==="drm.keyerror"&&this.I7&&this.I7.T.keys.length>1&&q.W<96&&(h="drm.sessionlimitexhausted",z=!1);var V=q.SM.experiments.I0("html5_retry_on_drm_unavailable"),l=q.SM.experiments.I0("html5_retry_on_drm_key_error"),H=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(V&&h==="drm.unavailable"||l&&h==="drm.keyerror"&&!Y.match(H))q.x0("qoe.restart",{retryOnDrmError:1,e:h,detail:Y}),q.qe.GZ(!0);else{if(z)if(q.videoData.T&& q.videoData.T.video.isHdr())CzW(q,h);else{if(q.qe.Tm(h,t,L,Y),VPL(q,{detail:Y}))break a}else q.x0(h,{detail:Y});h==="drm.sessionlimitexhausted"&&(q.Pm("retrydrm",{sessionLimitExhausted:1}),q.W++,yCD(q.qe))}}}; g.M.u6_=function(){var h=this,t=g.Sk(this.Me.experiments,"html5_license_constraint_delay"),Y=IF();t&&Y?(t=new g.nE(function(){h.tv();L8(h)},t),g.f(this,t),t.start()):(this.tv(),L8(this))}; g.M.MR=function(h){this.publish("heartbeatparams",h)}; g.M.ez=function(h){this.Pm("keystatuses",vzi(h));var t="auto",Y=!1;this.videoData.T&&(t=this.videoData.T.video.quality,Y=this.videoData.T.video.isHdr());a:{switch(t){case "highres":case "hd2880":t="UHD2";break;case "hd2160":case "hd1440":t="UHD1";break;case "hd1080":case "hd720":t="HD";break;case "large":case "medium":case "small":case "light":case "tiny":t="SD";break;default:t="";break a}Y&&(t+="HDR")}t=Wh(h)?y9(h,t):h.W.includes(t);if(this.N("html5_enable_vp9_fairplay")){if(Y)if(h.C){var L;if((L= this.I7)==null?0:gG(L.G))if((Y=this.I7)==null)Y=0;else{for(var q=L=void 0,z=g.b(Y.T.values()),V=z.next();!V.done;V=z.next())V=V.value,L||(L=a6L(V,"SD")),q||(q=a6L(V,"AUDIO"));Y.cI({sd:L,audio:q});Y=L==="output-restricted"||q==="output-restricted"}else Y=!t;if(Y){this.Pm("drm",{dshdr:1});CzW(this.RJ);return}}else{this.videoData.sI||(this.videoData.sI=!0,this.Pm("drm",{dphdr:1}),this.GZ(!0));return}var l;if((l=this.I7)==null?0:gG(l.G))return}else if(l=h.C&&t,Y&&!l){CzW(this.RJ);return}t||y9(h,"AUDIO")&& y9(h,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),h=vzi(h),this.gL?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.Tm("drm.keyerror",2,void 0,"info."+h)):(this.gL=!0,this.x0(new g.zk("qoe.restart",Object.assign({},{retrydrm:1},h))),tv(this),yCD(this)))}; g.M.R2i=function(){if(!this.videoData.R0&&this.mediaElement&&!this.isBackground()){var h="0";this.mediaElement.nH()>0&&Hs(this.mediaElement)>=5&&this.videoData.S&&this.videoData.S.G&&(this.a4(C_(this.playerState,1)),XAp(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),h="1");C2$(this);var t=this.videoData.S;h={restartmsg:h,mfmt:!Wu(this.videoData),mdrm:!(!(t&&t.videoInfos&&t.videoInfos.length&&t.videoInfos[0].EX)||this.I7),mfmtinfo:!this.videoData.T,prerolls:this.U$()?this.Kg.join(","): "0"};if(this.I7){t=this.I7;if(t.T.size<=0){var Y="ns;";t.L||(Y+="nr;");t=Y+="ql."+t.S.length}else t=vzi(t.T.values().next().value),t=qS(t);h.drmp=t}var L;Object.assign(h,((L=this.loader)==null?void 0:L.wP())||{});var q;Object.assign(h,((q=this.mediaElement)==null?void 0:q.wP())||{});this.lI.x0("qoe.start15s",qS(h));this.publish("loadsofttimeout")}}; g.M.rd=function(h){this.videoData.lengthSeconds!==h&&(this.videoData.lengthSeconds=h,L8(this))}; g.M.nW=function(h,t){var Y=this;h=h===void 0?!1:h;if(!this.Jd)if(bW("att_s","player_att")||d2("att_s",void 0,"player_att"),this.N("use_rta_for_player"))(function(){var q,z,V,l;return g.k(function(H){switch(H.T){case 1:if(!(q=h)){H.eM(2);break}return g.K(H,g.JnL(),3);case 3:q=!H.G;case 2:if(q)return H.return();g.oc(H,4);z=Z8$(Y.lI);if(!z)throw Error();V={};return g.K(H,g.exi((V.cpn=Y.videoData.clientPlaybackNonce,V.encryptedVideoId=Y.videoData.videoId||"",V),3E4),6);case 6:l=H.G;if(Y.Jd)throw Error(); if(!l.challenge)throw g.bc(Error("Not sending attestation ping; no attestation challenge string")),Error();Y.Jd=!0;var w=[l.challenge];l.error?w.push("r1c="+l.error):l.webResponse&&w.push("r1a="+l.webResponse);var W;((W=l.adblockReporting)==null?void 0:W.reportingStatus)!==void 0&&w.push("r6a="+l.adblockReporting.reportingStatus);var y;((y=l.adblockReporting)==null?void 0:y.broadSpectrumDetectionResult)!==void 0&&w.push("r6b="+l.adblockReporting.broadSpectrumDetectionResult);z(w.join("&"));d2("att_f", void 0,"player_att");g.Q6(H,0);break;case 4:g.cW(H),d2("att_e",void 0,"player_att"),g.Z$(H)}})})().then(function(){t==null||t()}); else{var L=new g.nV3(this.videoData);if("c1a"in L.Aj&&!g.Rg.isInitialized()){d2("att_wb",void 0,"player_att");this.nw===2&&Math.random()<.01&&g.bc(Error("Botguard not available after 2 attempts"));if(h)return;if(this.nw<5){g.fE(this.Ap);this.nw++;return}}(L=g.fpr(L))?(d2("att_f",void 0,"player_att"),jqW(this.lI,L),this.Jd=!0):d2("att_e",void 0,"player_att")}}; g.M.Xn=function(h){h=h===void 0?!1:h;return b6(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Av()||g.Ef(this.videoData))?this.getCurrentTime():this.wz(h)}; g.M.CV=function(){return this.bL()}; g.M.wz=function(h){return this.XZ.wz(h===void 0?!1:h)}; g.M.bL=function(){return this.XZ.bL()}; g.M.O3=function(){return this.XZ?this.XZ.O3():0}; g.M.getStreamTimeOffset=function(){return this.XZ?this.XZ.getStreamTimeOffset():0}; g.M.CN=function(){var h=0;this.Me.N("web_player_ss_media_time_offset")&&(h=this.getStreamTimeOffset()===0?this.O3():this.getStreamTimeOffset());return h}; g.M.setPlaybackRate=function(h){var t;this.playbackRate!==h&&ZDp(this.Y3,(t=this.videoData.S)==null?void 0:t.videoInfos)&&(this.playbackRate=h,tv(this));this.playbackRate=h;this.mediaElement&&this.mediaElement.setPlaybackRate(h)}; g.M.getPlaybackRate=function(){return this.playbackRate}; g.M.getPlaybackQuality=function(){var h="unknown";if(this.videoData.T&&(h=this.videoData.T.video.quality,h==="auto"&&this.mediaElement)){var t=this.kA();t&&t.videoHeight>0&&(h=MS(t.videoWidth,t.videoHeight))}return h}; g.M.isHdr=function(){return!!(this.videoData.T&&this.videoData.T.video&&this.videoData.T.video.isHdr())}; g.M.sendVideoStatsEngageEvent=function(h,t){var Y=this.lI;Y.G?(Y=Q9(Y.G,"engage"),Y.R0=h,Y.send(t)):t&&t()}; g.M.uZ=function(h){return this.lI.uZ(h)}; g.M.isAtLiveHead=function(h,t){t=t===void 0?!1:t;return b6(this.videoData)&&(this.yl||t)?this.XZ.isAtLiveHead(h):!1}; g.M.cS=function(){var h=this.wz(),t=this.getCurrentTime(),Y;(Y=!b6(this.videoData))||(Y=this.XZ,Y=!(Y.G&&Y.G.S));return Y||this.Av()||isNaN(h)||isNaN(t)?0:Math.max(0,h-t)}; g.M.dl=function(h){(this.yl=h)||this.o6.stop();this.videoData.G&&(h?this.videoData.G.resume():c0n(this.videoData.G));if(this.loader){var t=this.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&this.jm()&&this.videoData.isLivePlayback;h&&!t?this.loader.resume():lO(this,!0)}g.R(this.playerState,2)||h?g.R(this.playerState,512)&&h&&this.a4(MO(this.playerState,512)):this.a4(C_(this.playerState,512));t=this.lI;t.qoe&&(t=t.qoe,g.D6(t,g.iz(t.provider),"stream",[h?"A":"I"]))}; g.M.jW=function(h){this.lI.x0("player.exception",qS({n:h.name,m:h.message}))}; g.M.tF=Yb(22);g.M.mx=Yb(51);g.M.y7=function(h){this.lI.y7(h)}; g.M.sf=function(h){this.lI.sf(h)}; g.M.AU=function(h){this.lI.AU(h)}; g.M.JP=Yb(28);g.M.jF=Yb(34);g.M.QX=function(h){this.lI.QX(h)}; g.M.w9=function(h,t,Y,L){this.lI.w9(h,t,Y,L)}; g.M.SW=function(){this.Pm("hidden",{},!0)}; g.M.mM=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.M.Yt=function(){return this.loader?this.loader.Yt():!0}; g.M.setLoop=function(h){this.loop=h;this.mediaElement&&!g.z4(this.Me)&&this.mediaElement.setLoop(h)}; g.M.rH=function(){return this.mediaElement&&!g.z4(this.Me)?this.mediaElement.rH():this.loop}; g.M.UO=function(h){this.Pm("timestamp",{o:h.toString()});this.XZ.UO(h)}; g.M.jE=function(h){this.Wq.tick(h)}; g.M.qF=function(h){return this.Wq.qF(h)}; g.M.nA=function(h){this.Wq.nA(h)}; g.M.Pm=function(h,t,Y){this.lI.Pm(h,t,Y===void 0?!1:Y)}; g.M.uX=function(h,t,Y){this.lI.Pm(h,t,Y===void 0?!1:Y)}; g.M.x0=function(h){this.lI.x0(h.errorCode,qS(h.details));h=h.errorCode;if(this.videoData.isLivePlayback&&(h==="qoe.longrebuffer"||h==="qoe.slowseek")||h==="qoe.restart"){h=this.loader?RD6(this.loader.videoTrack):{};var t,Y;this.Pm("lasoe",Object.assign(this.loader?RD6(this.loader.audioTrack):{},(t=this.Oi)==null?void 0:(Y=t.G)==null?void 0:Y.aR()));var L,q;this.Pm("lvsoe",Object.assign(h,(L=this.Oi)==null?void 0:(q=L.T)==null?void 0:q.aR()))}}; g.M.kx=function(h,t,Y){this.lI.kx(h,t,Y)}; g.M.d1=function(h,t,Y,L,q,z,V,l){var H;if((H=this.videoData.G)!=null&&H.isLive){var w=t.playerType===2?t:h,W=h.videoData.videoId,y=t.videoData.videoId;if(W&&y){H=this.lI;if(H.qoe){var X=H.qoe,U=h.cpn,C=t.cpn,d=w.videoData.Cr,Q=X.provider.videoData.clientPlaybackNonce,J=X.provider.videoData.videoId,e=C!==Q&&y!==J;Q=U!==Q&&W!==J;X.reportStats();X.adCpn&&X.adCpn!==U||(X.adCpn=Q?U:"",X.wb=Q?W:"",X.adFormat=Q?d:void 0,FML(X,z?4:q?2:0,C,y,L),X.reportStats(),X.adCpn=e?C:"",X.wb=e?y:"",X.adFormat=e?d:void 0, FML(X,z?5:q?3:1,U,W,Y),X.reportStats())}Y=h.cpn;if(H.S.has(Y)){if(q=H.S.get(Y),uz(q,!0).send(),ch(q),Y!==H.provider.videoData.clientPlaybackNonce){lwW(q);var v;(v=H.G)==null||L6p(v);H.S.delete(Y)}}else H.MW=H.provider.videoData.clientPlaybackNonce,H.MW&&H.G&&(H.S.set(H.MW,H.G),uz(H.G).send(),ch(H.G));v=t.cpn;w=w.videoData;L-=this.CN();if(H.S.has(v)){L=H.S.get(v);var E=L.S&&isNaN(L.X)?ro(L):NaN;L=NYb(L,!1);isNaN(E)||(L.C=E);L.send()}else L=b8n(H,H.provider,w,L),H.S.set(v,L),H83(L,new g.Yu(C_(new g.yT, 8),new g.yT)),YvL(L),(E=H.G)==null||ch(E);H.MW=v;if(this.N("html5_unify_csi_server_stitched_transition_logging")){if(H=this.Wq,E=t.cpn,L=this.videoData.clientPlaybackNonce,t=t.videoData,h=(h.cpn===L?"video":"ad")+"_to_"+(E===L?"video":"ad"),h!=="video_to_ad"){L=h==="ad_to_video"?void 0:t;w=L==null?void 0:L.cV;v={};if(t==null?0:t.U)v.cttAuthInfo={token:t.U,videoId:t.videoId};V&&(v.startTime=V);ZN(h,v);var T,hr,B;V={targetVideoId:(T=t==null?void 0:t.videoId)!=null?T:"empty_video",targetCpn:E,adVideoId:(hr= L==null?void 0:L.videoId)!=null?hr:"empty_video",adClientPlaybackNonce:(B=w==null?void 0:w.cpn)!=null?B:L==null?void 0:L.clientPlaybackNonce};w&&(V.adBreakType=w.adBreakType,V.adType=w.adType);g.jC(V,h);jB(H,l,h)}}else T=this.Wq,B=this.videoData.clientPlaybackNonce,hr=t.videoData,B=(h.cpn===B?"video":"ad")+"_to_"+(t.cpn===B?"video":"ad"),h={},hr.U&&(h.cttAuthInfo={token:hr.U,videoId:hr.videoId}),V&&(h.startTime=V),ZN(B,h),g.jC({targetVideoId:hr.videoId,targetCpn:t.cpn,isSsdai:!0},B),T.Me.N("html5_enable_ssdai_transition_with_only_enter_cuerange")? V||jB(T,l,B):jB(T,l,B)}}else this.logger.G(360717806,"SSTEvent for nonSS")}; g.M.Nw=function(){var h=this.UY,t=h.Xl;h.Xl=[];return t}; g.M.Mw=function(h){this.videoData.ZE=!0;this.x0(new g.zk("sabr.fallback",h));this.GZ(!0)}; g.M.Xt=function(h,t){this.videoData.gE=!0;if(t===void 0||t)this.x0(new g.zk("qoe.restart",h)),this.GZ(!0);this.videoData.JJ()&&this.N("html5_reload_caption_on_ssdai_fallback")&&this.UY.qn()}; g.M.rO=function(h){this.Pm("sdai",{aftimeout:h});this.x0(new g.zk("ad.fetchtimeout",{timeout:h}))}; g.M.y6=function(h,t){this.Pm("timelineerror",h);h=new g.zk("dai.timelineerror",h);t?this.Tm("dai.timelineerror",1,"RETRYABLE_ERROR",qS(h.details)):this.x0(h)}; g.M.WS=function(){return g.iz(this.lI.provider)}; g.M.getPlayerSize=function(){return this.Hg.getPlayerSize()}; g.M.oT=function(){return this.Hg.oT()}; g.M.aT=function(){return this.Wq}; g.M.l9=function(){return this.UY.l9()}; g.M.getVolume=function(){return this.UY.getVolume()}; g.M.MP=function(){return this.UY.MP()}; g.M.isMuted=function(){return this.UY.isMuted()}; g.M.NK=function(){return this.UY.NK()}; g.M.ox=function(){this.yn=!0}; g.M.N=function(h){return this.Me.N(h)}; g.M.We=function(h,t,Y,L,q){this.Pm("xvt",{m:h,g:t?1:0,tt:Y?1:0,np:L?1:0,c:q})}; g.M.wO=function(){var h;(h=this.loader)==null||h.resume()}; g.M.jm=function(){return g.jE(this.Kg,"ad")}; g.M.Fe=function(){var h=this.getCurrentTime(),t=h-this.O3();var Y=this.mediaElement?Ay(this.mediaElement.jQ()):0;Y=Math.floor(Math.max(Y-t,0))+100;var L;return((L=this.loader)==null?0:L.Fe(t,Y))?(this.Pm("sdai",{skipad:1,ct:t.toFixed(3),adj:Y.toFixed(3)}),F$(this.videoData)&&this.loader.seek(t+Y,{seekSource:89,EY:"videoplayer_skipServerStitchedAd"}),ZqL(this.XZ,h),!0):!1}; g.M.pZ=function(){return this.Me.pZ()}; g.M.yE=function(){if(this.N("html5_generate_content_po_token"))return this.videoData.CD||"";this.UY.l$();return this.Me.mK||""}; g.M.RR=function(){if(this.videoData.videoId)return this.videoData.W4}; g.M.Oz=function(){return this.videoData.videoId}; g.M.Fm=function(){return this.UY.vR}; g.M.SV=function(){return this.Lz}; g.M.dF=function(){return this.UY.dF()}; g.M.Eo=function(h,t,Y){this.N("html5_report_seek_source_for_utc_seeks")&&this.a4(C_(this.playerState,16,Y));this.XZ.Eo(h,t)}; g.M.prefetchKeyPlay=function(){}; g.M.Ck=function(){this.XZ.Ck()}; g.M.K9=function(h,t){var Y=this.N("html5_generate_content_po_token")?this.videoData:void 0;this.UY.K9(h,t,Y)}; g.M.R2=function(h,t){var Y;(Y=this.loader)==null||Y.R2(h,t)}; g.M.aV=function(){var h=this.zO();return!!h&&h.aV()}; g.M.b_=function(h,t){this.lI.b_(h,t)}; g.M.OE=function(){return this.lI.OE()}; g.M.yV=function(){return this.videoData.qL}; g.M.RT=function(){return this.UY.RT()}; g.M.i8=function(){return this.UY.i8(this)}; g.M.PY=function(){this.Ch=!0}; g.M.To=function(h){var t;(t=this.loader)==null||t.To(h)}; g.M.ih=function(){var h;(h=this.loader)==null||h.ih()};g.F(FZ$,i4);g.F(wY,NN);wY.prototype.G=function(h){h&&l4(this,this.K.getLoopVideo());this.K.logVisibility(this.element,h)}; wY.prototype.logClick=function(){this.K.logClick(this.element)}; wY.prototype.onLoopChange=function(h){l4(this,h)}; wY.prototype.T=function(h){this.K.setLoopVideo(h)};g.F(sx3,i4);g.F(jxL,i4);g.M=jxL.prototype;g.M.seekToChapterWithAnimation=function(h){var t=this;if(g.jH(this.api)&&!(h<0)){var Y=this.api.getVideoData(),L=Y.D9;if(L&&h=0)return;t=~t;g.E0(this.items,t,0,h);Ml(this.menuItems.element,h.element,t)}h.subscribe("size-change",this.Re,this);this.menuItems.publish("size-change")}; g.M.r0=function(h){h.unsubscribe("size-change",this.Re,this);this.Ui()||(g.bl(this.items,h),this.menuItems.element.removeChild(h.element),this.menuItems.publish("size-change"))}; g.M.Re=function(){this.menuItems.publish("size-change")}; g.M.focus=function(){for(var h=0,t=0;t1&&g.uO(this)}; g.M.iX=function(){BW6(this);this.nZ&&(IIn(this),g.hu(this.element,this.size))}; g.M.LL=function(){var h=this.G.pop();R41(this,h,this.G[this.G.length-1],!0)}; g.M.nR=function(h){if(!h.defaultPrevented)switch(h.keyCode){case 27:this.KZ();h.preventDefault();break;case 37:this.G.length>1&&this.LL();h.preventDefault();break;case 39:h.preventDefault()}}; g.M.focus=function(){this.G.length&&this.G[this.G.length-1].focus()}; g.M.Gz=function(){g.SH.prototype.Gz.call(this);this.U&&this.U.dispose();this.C&&this.C.dispose()};g.F(eo,g.rY);eo.prototype.open=function(h,t){this.initialize(h.items)&&this.rz(t,!!t)}; eo.prototype.initialize=function(h){g.QW(this.MU);if(h===void 0||h.length===0)return!1;var t=h.length;h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())this.Qb(Y.value,t--);return!0}; eo.prototype.Qb=function(h,t){h.menuNavigationItemRenderer?D3$(this,h.menuNavigationItemRenderer,t):h.menuServiceItemRenderer&&hyr(this,h.menuServiceItemRenderer,t)};g.F(Jv,oq);g.M=Jv.prototype;g.M.mP=function(h){h.target!==this.dismissButton.element&&h.target!==this.overflowButton.element&&(this.g9(),this.onClickCommand&&this.K.jM("innertubeCommand",this.onClickCommand))}; g.M.fS=function(){this.enabled=!1;this.L.hide()}; g.M.w1=function(){return!!this.G&&this.enabled}; g.M.onVideoDataChange=function(h,t){this.Ph(t);if(this.G){this.oK();a:if(!this.isCounterfactual){var Y,L,q;this.banner.update({title:(Y=this.G)==null?void 0:Y.title,subtitle:(L=this.G)==null?void 0:L.subtitle,metadata:(q=this.G)==null?void 0:q.metadataText});var z;this.onClickCommand=g.A((z=this.G)==null?void 0:z.onTap,dv);var V;if(h=g.A((V=this.G)==null?void 0:V.onOverflow,dv))this.C=g.A(h,o2v);var l;if((l=this.G)==null?0:l.thumbnailImage){var H,w;V=((H=this.G)==null?void 0:(w=H.thumbnailImage)== null?void 0:w.sources)||[];if(V.length===0)break a;this.thumbnailImage.update({url:V[0].url})}else{var W;if((W=this.G)==null?0:W.thumbnailIconName){var y;this.thumbnailIcon.update({icon:(y=this.G)==null?void 0:y.thumbnailIconName})}}var X;this.shouldShowOverflowButton=!((X=this.G)==null||!X.shouldShowOverflowButton);var U;this.shouldHideDismissButton=!((U=this.G)==null||!U.shouldHideDismissButton)}var C;this.banner.element.setAttribute("aria-label",((C=this.G)==null?void 0:C.a11yLabel)||"");var d; this.Y8=(d=this.G)==null?void 0:d.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;ie1(this)}}; g.M.L_e=function(){this.isVisible=!0;ie1(this)}; g.M.q3m=function(){this.isVisible=!1;ie1(this)}; g.M.WU=function(){oq.prototype.WU.call(this);this.T&&this.K.logVisibility(this.banner.element,this.isVisible)}; g.M.g9=function(){oq.prototype.g9.call(this,!1);this.T&&this.K.logClick(this.banner.element)}; g.M.aQ=function(h){this.U||(this.U=new eo(this.K),g.f(this,this.U));var t,Y;if((t=this.C)==null?0:(Y=t.menu)==null?0:Y.menuRenderer)this.U.open(this.C.menu.menuRenderer,h.target),h.preventDefault()}; g.M.Ph=function(){}; g.M.oK=function(){}; g.M.Gz=function(){this.K.z6("suggested_action_view_model");oq.prototype.Gz.call(this)};g.F(p8,Jv); p8.prototype.Ph=function(h){var t,Y,L;this.productUpsellSuggestedActionViewModel=g.A((t=h.getWatchNextResponse())==null?void 0:(Y=t.playerOverlays)==null?void 0:(L=Y.playerOverlayRenderer)==null?void 0:L.suggestedActionViewModel,O03);var q;if((q=this.productUpsellSuggestedActionViewModel)==null?0:q.content){var z;this.G=g.A((z=this.productUpsellSuggestedActionViewModel)==null?void 0:z.content,jEH)}var V,l;if(this.T=!!((V=this.productUpsellSuggestedActionViewModel)==null?0:(l=V.loggingDirectives)==null? 0:l.trackingParams)){var H,w;this.K.setTrackingParams(this.banner.element,((H=this.productUpsellSuggestedActionViewModel)==null?void 0:(w=H.loggingDirectives)==null?void 0:w.trackingParams)||null)}var W;this.isCounterfactual=!((W=this.productUpsellSuggestedActionViewModel)==null||!W.isCounterfactualServing)}; p8.prototype.oK=function(){var h=[],t,Y=g.b(((t=this.productUpsellSuggestedActionViewModel)==null?void 0:t.ranges)||[]);for(t=Y.next();!t.done;t=Y.next()){var L=t.value;L&&(t=Number(L.startTimeMilliseconds),L=Number(L.endTimeMilliseconds),isNaN(t)||isNaN(L)||h.push(new g.aZ(t,L,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.K.Ji(h)};g.F(geD,i4);g.F(vg,i4);vg.prototype.onVideoDataChange=function(h,t){var Y=this;if(!DK(t)&&(h==="newdata"&&LH3(this),this.G&&h==="dataloaded")){this.G=!1;var L;GB(dx(CM(this.api.J(),(L=this.api.getVideoData())==null?void 0:g.Pu(L)),function(q){HeL(Y,q)}),function(){Y.G=!0})}}; vg.prototype.D3=function(){var h=this;if(g.z4(this.api.J())){var t,Y=g.Up(this.api.J(),(t=this.api.getVideoData())==null?void 0:g.Pu(t));return dx(jf(Y),function(L){var q=$l();TM(q,L);return h.api.D3(q)})}return jf(this.api.D3())};g.F(g.aq,g.mM);g.M=g.aq.prototype;g.M.open=function(){g.cg(this.Rm,this.T)}; g.M.hP=function(h){wrL(this);var t=this.options[h];t&&(t.element.setAttribute("aria-checked","true"),this.I4(this.aJ(h)),this.S=h)}; g.M.AS=function(h){g.QW(this.T);for(var t={},Y=!1,L=0;L=0?this.G.playbackRate:1}catch(h){return 1}}; g.M.setPlaybackRate=function(h){this.getPlaybackRate()!==h&&(this.G.playbackRate=h);return h}; g.M.rH=function(){return this.G.loop}; g.M.setLoop=function(h){this.G.loop=h}; g.M.canPlayType=function(h,t){return this.G.canPlayType(h,t)}; g.M.isPaused=function(){return this.G.paused}; g.M.isSeeking=function(){return this.G.seeking}; g.M.isEnded=function(){return this.G.ended}; g.M.xP=function(){return this.G.muted}; g.M.fT=function(h){XS();this.G.muted=h}; g.M.Nx=function(){return this.G.played||OF([],[])}; g.M.jQ=function(){try{var h=this.G.buffered}catch(t){}return h||OF([],[])}; g.M.k_=function(){return this.G.seekable||OF([],[])}; g.M.R1=function(){var h=this.G;return h.getStartDate?h.getStartDate():null}; g.M.getCurrentTime=function(){return this.G.currentTime}; g.M.setCurrentTime=function(h){this.G.currentTime=h}; g.M.getDuration=function(){return this.G.duration}; g.M.load=function(){var h=this.G.playbackRate;try{this.G.load()}catch(t){}this.G.playbackRate=h}; g.M.pause=function(){this.G.pause()}; g.M.play=function(){var h=this.G.play();if(!h||!h.then)return null;h.then(void 0,function(){}); return h}; g.M.nH=function(){return this.G.readyState}; g.M.oR=function(){return this.G.networkState}; g.M.vM=function(){return this.G.error?this.G.error.code:null}; g.M.oD=function(){return this.G.error?this.G.error.message:""}; g.M.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var h=this.G,t=h.webkitDroppedFrameCount;if(h=h.webkitDecodedFrameCount)return{droppedVideoFrames:t||0,totalVideoFrames:h}}return{}}; g.M.eF=function(){return!!this.G.webkitCurrentPlaybackTargetIsWireless}; g.M.GI=function(){return!!this.G.webkitShowPlaybackTargetPicker()}; g.M.togglePictureInPicture=function(){var h=this.G,t=window.document;window.document.pictureInPictureEnabled?this.G!==t.pictureInPictureElement?h.requestPictureInPicture():t.exitPictureInPicture():yb()&&h.webkitSetPresentationMode(h.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.M.HD=function(){var h=this.G;return new g.TD(h.offsetLeft,h.offsetTop)}; g.M.getSize=function(){return g.tu(this.G)}; g.M.setSize=function(h){g.hu(this.G,h)}; g.M.getVolume=function(){return this.G.volume}; g.M.setVolume=function(h){XS();this.G.volume=h}; g.M.xO=function(h){this.X[h]||(this.G.addEventListener(h,this.listener),this.X[h]=this.listener)}; g.M.setAttribute=function(h,t){this.G.setAttribute(h,t)}; g.M.removeAttribute=function(h){this.G.removeAttribute(h)}; g.M.hasAttribute=function(h){return this.G.hasAttribute(h)}; g.M.zi=Yb(61);g.M.Eg=Yb(63);g.M.Z_=Yb(65);g.M.x_=Yb(67);g.M.Lk=function(){return wK(this.G)}; g.M.aX=function(h){g.mS(this.G,h)}; g.M.N$=function(h){return g.Af(this.G,h)}; g.M.di=function(){return g.sO(document.body,this.G)}; g.M.audioTracks=function(){var h=this.G;if("audioTracks"in h)return h.audioTracks}; g.M.Gz=function(){for(var h=g.b(Object.keys(this.X)),t=h.next();!t.done;t=h.next())t=t.value,this.G.removeEventListener(t,this.X[t]);NO.prototype.Gz.call(this)}; g.M.D4=function(h){this.G.disableRemotePlayback=h};g.F(Rq,g.I);g.F(Pg,g.I);Pg.prototype.show=function(){g.I.prototype.show.call(this);this.Hm();this.m_.N("html5_enable_moving_s4n_window")&&g.z4(this.m_.J())&&this.Y()}; Pg.prototype.hide=function(){g.I.prototype.hide.call(this);this.delay.stop();this.W.stop()}; Pg.prototype.Hm=function(){var h=(0,g.FH)(),t=oeL(this.m_);Bg(this.G,t.bandwidth_samples);Bg(this.C,t.network_activity_samples);Bg(this.S,t.live_latency_samples);Bg(this.T,t.buffer_health_samples);var Y={};t=g.b(Object.entries(t));for(var L=t.next();!L.done;L=t.next()){var q=g.b(L.value);L=q.next().value;q=q.next().value;this.L[L]!==q&&(Y[L]=" "+String(q));this.L[L]=q}this.update(Y);h=(0,g.FH)()-h>25?5E3:500;this.delay.start(h)}; Pg.prototype.Y=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.F(Q43,i4);g.F(m6,g.O);m6.prototype.G=function(){var h=(0,g.FH)()-this.startTime;h=hthis.W[h])&&(this.G=h,this.Sn())}; g.M.onCueRangeExit=function(h){var t=Oe1(this,h);t&&this.G===h&&this.api.jM("innertubeCommand",t);iG(this);this.G=void 0}; g.M.i5=function(h){this.S=h}; g.M.ZB=function(){this.Sn();this.S=void 0}; g.M.Sn=function(){if(this.G!==void 0){var h=(h=tb(this,this.G))&&h.onCueRangeEnter?Qy(h.onCueRangeEnter):void 0;var t=tb(this,this.G);a:if(t&&t.additionalTrigger){var Y=g.b(t.additionalTrigger);for(var L=Y.next();!L.done;L=Y.next())if(L=L.value,L.type){var q=void 0,z=void 0;if((q=this.Wm[L.type])==null?0:q((z=L.args)!=null?z:{})){Y=!0;break a}}Y=!1}else Y=!0;h&&Y&&(this.api.jM("innertubeCommand",h),neL(this,t),this.W[this.G]!==void 0&&this.W[this.G]++,this.L=!0)}}; g.M.Gz=function(){this.timelyActions=this.S=this.G=this.videoId=void 0;this.W={};this.d4();iG(this);i4.prototype.Gz.call(this)};g.F(TJn,i4);g.F(gE,NN);gE.prototype.U=function(h){this.W(h?2:1)}; gE.prototype.T=function(){var h=this.K.getPresentingPlayerType();h===2||h===3?(this.G=!1,this.Rm.r0(this)):this.G||(h=this.hasVoiceBoostAudioTrack(),this.setEnabled(h),h=this.S()===2&&h,l4(this,h),this.Rm.Qb(this),this.G=!0)}; gE.prototype.Gz=function(){this.Rm.r0(this);NN.prototype.Gz.call(this)};g.F(YN,i4);YN.prototype.getVoiceBoostUserPreference=function(){return this.G}; YN.prototype.setVoiceBoostUserPreference=function(h){this.api.Pm("vb_set",{pref:h});g.dK("yt-player-voice-boost",h);h!==this.G&&(this.G=h,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.wv())}; YN.prototype.hasVoiceBoostAudioTrack=function(){var h,t,Y=(h=this.api.getVideoData())==null?void 0:(t=h.S)==null?void 0:t.G;return Y?OM(Y,function(L){var q;return((q=L.audio)==null?void 0:q.T)===!0}):!1}; YN.prototype.updateEnvironmentData=function(){this.api.J().GV=this.G};var i6D=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.F(zt,i4);zt.prototype.Gz=function(){this.C&&(g.lZ(this.C),this.C=void 0);i4.prototype.Gz.call(this)}; zt.prototype.l$=function(){(this.T?!this.G:this.S)&&Na(this)}; zt.prototype.Hd=function(h,t,Y){var L=this;if(It1(h)){var q=Y||"";if(this.G)t=lG(this,q),Ryr(h,t);else{var z=new g.zJ;t.push(z.promise);this.X.promise.then(function(){var V=lG(L,q);Ryr(h,V);z.resolve()})}}}; zt.prototype.I2=function(h){var t=this;if(this.T||this.S)h.CD=lG(this,h.videoId),this.G||(this.W=new VT,this.X.promise.then(function(){t.Wq.qF("pot_if");h.CD=lG(t,h.videoId)}))};g.F(g.wE,g.I);g.wE.prototype.select=function(){this.api.bJ(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.EQ||void 0)&&this.api.logClick(this.element)}; g.wE.prototype.onClick=function(h){if(g.kk(this.api.J())&&this.api.N("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var t=this.suggestion.Dk(),Y={};g.ae(this.api,Y);t=g.Xz(t,Y);g.wR(t,this.api,h)}else g.HI(h,this.api,this.T,this.suggestion.sessionData||void 0)&&this.select()}; g.wE.prototype.onKeyPress=function(h){switch(h.keyCode){case 13:case 32:h.defaultPrevented||(this.select(),h.preventDefault())}}; g.wE.prototype.onVideoDataChange=function(){var h=this.api.getVideoData(),t=this.api.J();this.T=h.Ye?!1:t.W};g.F(Wl,g.I);Wl.prototype.Gz=function(){this.hide();g.ZZ(this.G);g.tN(this.stills);this.stills.length=0;g.I.prototype.Gz.call(this)}; Wl.prototype.S=function(h){this.T&&this.T(h)}; Wl.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var h,t,Y,L,q;var z=(((h=this.videoData)==null?0:(t=h.suggestions)==null?0:t.length)?(Y=this.videoData)==null?void 0:Y.suggestions:((L=this.videoData)==null?0:g.l6(L))?[(q=this.videoData)==null?void 0:g.l6(q)]:[]).slice(0,12);h=this.W;g.C7(h);if(z.length)for(this.stills.length>z.length&&g.tN(this.stills.splice(z.length)),this.stills.length=z.length,t=0;t=0;h--)this.features[h].dispose();this.features.length=0;g.O.prototype.Gz.call(this)};wK6.prototype.reset=function(){this.G=this.T=NaN};g.M=WW3.prototype;g.M.reset=function(){CU(this.timerName)}; g.M.tick=function(h,t){sH(h,t,this.timerName)}; g.M.qF=function(h){return of(h,void 0,this.timerName)}; g.M.nA=function(h){g.x_(h,void 0,this.timerName)}; g.M.infoGel=function(h){g.jC(h,this.timerName)};g.F(URW,g.PD);g.M=URW.prototype;g.M.fH=function(h){return this.loop||!!h||this.index+1=0}; g.M.setShuffle=function(h){this.shuffle=h;h=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var t=0;t0)||O3(this,1,!0)}; g.M.U5=function(){this.U=!0;this.G.W3(this.X);this.X=this.G.V(document,"mouseup",this.Gl)}; g.M.Gl=function(){this.U=!1;O3(this,8,!1);this.G.W3(this.X);this.X=this.G.V(this.target,"mousedown",this.U5)}; g.M.Xz=function(h){if(h=(h=h.changedTouches)&&h[0])this.Wm=h.identifier,this.G.W3(this.Y),this.Y=this.G.V(this.target,"touchend",this.uE,void 0,!0),O3(this,1024,!0)}; g.M.uE=function(h){if(h=h.changedTouches)for(var t=0;t1280||q>720)if(t=L.TZ("maxresdefault.jpg"))break;if(z>640||q>480)if(t=L.TZ("maxresdefault.jpg"))break;if(z>320||q>180)if(t=L.TZ("sddefault.jpg")||L.TZ("hqdefault.jpg")||L.TZ("mqdefault.jpg"))break;if(t=L.TZ("default.jpg"))break}g.lC(h)&&(h=new Image,h.addEventListener("load", function(){NdL()}),h.src=t?t:"",this.api.aT().tick("ftr")); this.W.style.backgroundImage=t?"url("+t+")":""};g.F(g.Tt,g.I);g.Tt.prototype.resize=function(){}; g.Tt.prototype.T=function(h){var t=this;this.S=!1;i5D(this);var Y=h.uY,L=this.api.J();Y!=="GENERIC_WITHOUT_LINK"||L.U?Y==="TOO_MANY_REQUESTS"?(L=this.api.getVideoData(),this.I4(IM(this,"TOO_MANY_REQUESTS_WITH_LINK",L.Dk(),void 0,void 0,void 0,!1))):Y!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||L.U?this.api.J().N("html5_enable_bandaid_error_screen")&&Y==="HTML5_SPS_UMP_STATUS_REJECTED"&&!L.U?(L=L.hostLanguage,h="//support.google.com/youtube?p=videoError",L&&(h=g.Xz(h,{hl:L})),this.I4(IM(this,"HTML5_SPS_UMP_STATUS_REJECTED", h))):this.api.J().N("enable_adb_handling_in_sabr")&&Y==="BROWSER_OR_EXTENSION_ERROR"&&!L.U?(L=L.hostLanguage,h="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",L&&(h=g.Xz(h,{hl:L})),this.I4(IM(this,"BROWSER_OR_EXTENSION_ERROR",h))):this.I4(g.Ab(h.errorMessage)):this.I4(IM(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(h=L.hostLanguage,Y="//support.google.com/youtube/?p=player_error1",h&&(Y=g.Xz(Y, {hl:h})),this.I4(IM(this,"GENERIC_WITH_LINK_AND_CPN",Y,!0)),L.Ds&&!L.W&&tOW(this,function(z){if(g.HI(z,t.api,!YD(t.api.J()))){z={as3:!1,html5:!0,player:!0,cpn:t.api.getVideoData().clientPlaybackNonce};var V=t.api;V.PZ("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:z});V.isFullscreen()&&V.toggleFullscreen()}})); if(this.S){var q=this.Tz("ytp-error-link");q&&(this.api.createClientVe(q,this,216104),this.api.logVisibility(q,!0),tOW(this,function(){t.api.logClick(q)}))}}; var hsL=/([^<>]+)<\/a>/;g.F(gxL,g.I);gxL.prototype.zQ=function(h,t,Y){Y=Y===void 0?!1:Y;switch(t){case 1:RM(this,h,this.S,Y);break;case 2:RM(this,h,this.W,Y);break;case 3:RM(this,h,this.G,Y);break;case 4:RM(this,h,this.T,Y)}};g.F(YU6,g.I);g.M=YU6.prototype;g.M.onClick=function(h){this.innertubeCommand?(this.K.jM("innertubeCommand",this.innertubeCommand),h.preventDefault()):g.HI(h,this.K,!0);this.K.logClick(this.element)}; g.M.onVideoDataChange=function(h,t){qUi(this,t);this.yp&&zs$(this,this.yp)}; g.M.RQ=function(h){var t=this.K.getVideoData();this.videoId!==t.videoId&&qUi(this,t);this.G&&zs$(this,h.state);this.yp=h.state}; g.M.rz=function(){this.fade.show();this.K.publish("paidcontentoverlayvisibilitychange",!0);this.K.logVisibility(this.element,!0)}; g.M.KZ=function(){this.fade.hide();this.K.publish("paidcontentoverlayvisibilitychange",!1);this.K.logVisibility(this.element,!1)};g.F(Bl,g.I);Bl.prototype.hide=function(){this.G.stop();this.message.style.display="none";g.I.prototype.hide.call(this)}; Bl.prototype.onStateChange=function(h){this.H3(h.state)}; Bl.prototype.H3=function(h){if(g.R(h,128)||this.api.SV())var t=!1;else{var Y;t=this.api.N("web_watch_enable_multiview_manager")&&((Y=this.api.getVideoData())==null?0:DK(Y))?!1:g.R(h,16)||g.R(h,1)?!0:!1}t?this.G.start():this.hide()}; Bl.prototype.T=function(){this.message.style.display="block"};g.F(Pl,g.SH);Pl.prototype.onMutedAutoplayChange=function(h){this.S&&(h?(VO3(this),this.rz()):(this.G&&this.logClick(),this.KZ()))}; Pl.prototype.hF=function(h){this.api.isMutedByMutedAutoplay()&&g.qK(h,2)&&this.KZ()}; Pl.prototype.onClick=function(){this.api.unMute();this.logClick()}; Pl.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.F(g.mx,g.UF);g.M=g.mx.prototype;g.M.init=function(){var h=this.api,t=h.getPlayerStateObject();this.v7=h.getPlayerSize();this.a4(t);this.hv();this.Bq();this.api.publish("basechromeinitialized",this);this.qZ()&&this.api.publish("standardControlsInitialized")}; g.M.onVideoDataChange=function(h,t){var Y=this.PG!==t.videoId;if(Y||h==="newdata")h=this.api,h.isFullscreen()||(this.v7=h.getPlayerSize());Y&&(this.PG=t.videoId,Y=this.eQ,Y.gU=3E3,O3(Y,512,!0),this.hv());this.api.N("web_render_jump_buttons")&&t.showSeekingControls&&(this.EH=572)}; g.M.DDm=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.M.mL=function(){var h=this.api.x9()&&this.api.N4(),t=this.api.iD();return this.yh||h||this.Ka||t}; g.M.uS=function(){var h=!this.mL();g.iA(this.api.getRootNode(),"ytp-menu-shown",!h)}; g.M.xi=function(h){try{if(!g.sO(this.api.getRootNode(),h))return!1}catch(t){return!1}for(;h&&!ks1(h);)h=h===this.api.getRootNode()?null:h.parentElement||null;return!!h}; g.M.Yd=function(h){var t=this.api.getRootNode();g.iA(t,"ytp-autohide",h);g.iA(t,"ytp-autohide-active",!0);this.mQ.start(h?250:100);h&&(this.O7=!1,g.hp(t,"ytp-touch-mode"));this.vH=!h;this.api.xZ(!h);this.api.N("delhi_modern_web_player")&&this.api.publish("autohideupdate",h)}; g.M.FB=function(){var h=this.api.getRootNode();g.iA(h,"ytp-autohide-active",!1)}; g.M.yJ_=function(){this.Ew=!0}; g.M.rJz=function(h){if(this.api.J().N("player_doubletap_to_seek")||this.api.J().C)this.Ew=!1,this.ZX&&this.W3(this.ZX),this.DO===0&&hC(this,h)?(this.Ut(),this.Np.start(),this.ZX=this.V(this.api.Bm(),"touchmove",this.yJ_,void 0,!0)):this.Np.stop();waL(this)&&hC(this,h)&&!this.api.J().C&&leL(this);var t=this.XO.KI();if(!g.kk(this.api.J())&&Kw&&WNL(this,h))t&&h.preventDefault();else if(this.O7=!0,g.mS(this.api.getRootNode(),"ytp-touch-mode"),this.eQ.jz(),this.api.J().N("player_doubletap_to_seek")||this.api.J().C)if(t= this.api.getPlayerStateObject(),!(!this.api.B2()||g.R(t,2)&&g.JJ(this.api)||g.R(t,64))){t=Date.now()-this.Zc;this.DO+=1;if(t<=350){this.J6=!0;t=this.api.getPlayerSize().width/3;var Y=this.api.getRootNode().getBoundingClientRect(),L=h.targetTouches[0].clientX-Y.left;Y=h.targetTouches[0].clientY-Y.top;var q=(this.DO-1)*10;L>0&&Lt*2&&L=650,L=h.width<528;this.eQ.resize();g.iA(t,"ytp-fullscreen",this.api.isFullscreen());g.iA(t,"ytp-large-width-mode",Y);this.api.N("delhi_modern_web_player")?g.iA(t,"ytp-xsmall-width-mode",L):g.iA(t,"ytp-small-mode",this.CC());g.iA(t,"ytp-tiny-mode",this.bD());g.iA(t,"ytp-big-mode",this.cM());this.Xh&&this.Xh.resize(h)}; g.M.hF=function(h){this.a4(h.state);this.hv()}; g.M.U1=Yb(3);g.M.kO=function(){var h=!!this.PG&&!this.api.Gm()&&!this.lW,t=this.api.getPresentingPlayerType()===2,Y=this.api.J();return t?(t=Kq(this.api.T$()),h&&(t&&t.player?h=(h=t.player.getVideoData(2))?h.isListed&&!g.LV(t.player.J()):!1:(gP("showInfoBarDuringAd: this is null"),h=!1)),h):h&&(Y.q3||this.api.isFullscreen()||Y.jf)}; g.M.hv=function(){var h=this.kO();this.Jn!==h&&(this.Jn=h,g.iA(this.api.getRootNode(),"ytp-hide-info-bar",!h))}; g.M.a4=function(h){var t=h.isCued()||this.api.U$()&&this.api.getPresentingPlayerType()!==3;t!==this.isCued&&(this.isCued=t,this.K5&&this.W3(this.K5),this.K5=this.V(this.api.Bm(),"touchstart",this.rJz,void 0,t));var Y=this.eQ,L=h.isPlaying()&&!g.R(h,32)||this.api.Bn();O3(Y,128,!L);Y=this.eQ;L=this.api.getPresentingPlayerType()===3;O3(Y,256,L);Y=this.api.getRootNode();g.R(h,2)?L=[PP.ENDED]:(L=[],g.R(h,8)?L.push(PP.PLAYING):g.R(h,4)&&L.push(PP.PAUSED),g.R(h,1)&&!g.R(h,32)&&L.push(PP.BUFFERING),g.R(h, 32)&&L.push(PP.SEEKING),g.R(h,64)&&L.push(PP.UNSTARTED));g.Iv(this.kX,L)||(g.tp(Y,this.kX),this.kX=L,g.Dz(Y,L));L=this.api.J();var q=g.R(h,2);a:{var z=this.api.J();var V=z.controlsType;switch(V){case "2":case "0":z=!1;break a}z=V==="3"&&!g.R(h,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:nbl(Kq(this.api.T$())))||this.api.iD()||g.kk(z)&&this.api.getPresentingPlayerType()===2?!1:!0}g.iA(Y,"ytp-hide-controls",!z);g.iA(Y,"ytp-native-controls",L.controlsType==="3"&&!t&&!q&&!this.Ka);g.R(h, 128)&&!g.kk(L)?(this.Xh||(this.Xh=new g.Tt(this.api),g.f(this,this.Xh),g.kl(this.api,this.Xh.element,4)),this.Xh.T(h.rk),this.Xh.show()):this.Xh&&(this.Xh.dispose(),this.Xh=null)}; g.M.fV=function(){return this.api.x9()&&this.api.N4()?(this.api.ZI(!1,!1),!0):this.api.Gm()?(g.po(this.api,!0),!0):!1}; g.M.onMutedAutoplayChange=function(h){this.Ka=h;this.uS()}; g.M.cM=function(){return!1}; g.M.CC=function(){return!this.cM()&&(this.api.getPlayerSize().width=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null;t=this.size;h=h.clone();t=t.clone();L&&(V=t,q=5,(q&65)==65&&(h.x=L.right)&&(q&=-2),(q&132)==132&&(h.y=L.bottom)&&(q&=-5),h.xL.right&&(V.width=Math.min(L.right-h.x,z+V.width-L.left),V.width=Math.max(V.width,0))),h.x+V.width>L.right&&q&1&&(h.x=Math.max(L.right-V.width,L.left)),h.yL.bottom&&(V.height=Math.min(L.bottom-h.y,z+V.height-L.top),V.height=Math.max(V.height,0))),h.y+V.height>L.bottom&&q&4&&(h.y=Math.max(L.bottom-V.height,L.top)));L=new g.OO(0,0,0,0);L.left=h.x;L.top=h.y;L.width= t.width;L.height=t.height;g.Bb(this.element,new g.TD(L.left,L.top));g.ZZ(this.W);this.W.V(Ie(this),"contextmenu",this.BUU);this.W.V(this.K,"fullscreentoggled",this.onFullscreenToggled);this.W.V(this.K,"pageTransition",this.c$)}; g.M.BUU=function(h){if(!h.defaultPrevented){var t=MM(h);g.sO(this.element,t)||this.KZ();this.K.J().disableNativeContextMenu&&h.preventDefault()}}; g.M.onFullscreenToggled=function(){this.KZ();xdD(this)}; g.M.c$=function(){this.KZ()};g.F(N3,g.I);N3.prototype.onClick=function(){var h=this,t,Y,L,q;return g.k(function(z){if(z.T==1)return t=h.api.J(),Y=h.api.getVideoData(),L=h.api.getPlaylistId(),q=t.getVideoUrl(Y.videoId,L,void 0,!0),g.K(z,O5L(h,q),2);z.G&&k81(h);h.api.logClick(h.element);g.Z$(z)})}; N3.prototype.Hm=function(){this.updateValue("icon",{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=Exr(this);g.iA(this.element,"ytp-copylink-button-visible",this.visible); this.hC(this.visible);this.tooltip.HM();this.api.logVisibility(this.element,this.visible&&this.X)}; N3.prototype.Y4=function(h){g.I.prototype.Y4.call(this,h);this.api.logVisibility(this.element,this.visible&&h)}; N3.prototype.Gz=function(){g.I.prototype.Gz.call(this);g.hp(this.element,"ytp-copylink-button-visible")};g.F(nx1,g.I);g.M=nx1.prototype;g.M.show=function(){g.I.prototype.show.call(this);g.fE(this.T)}; g.M.hide=function(){this.W.stop();this.S=0;this.Tz("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.hp(this.element,"ytp-chapter-seek");g.hp(this.element,"ytp-time-seeking");g.I.prototype.hide.call(this)}; g.M.SH=function(h,t,Y,L){this.S=h===this.C?this.S+L:L;this.C=h;var q=h===-1?this.L:this.Y;q&&this.K.logClick(q);this.U?this.T.stop():g.TU(this.T);this.W.start();this.element.setAttribute("data-side",h===-1?"back":"forward");var z=3*this.K.Bm().getPlayerSize().height;q=this.K.Bm().getPlayerSize();q=q.width/3-3*q.height;this.G.style.width=z+"px";this.G.style.height=z+"px";h===1?(this.G.style.left="",this.G.style.right=q+"px"):h===-1&&(this.G.style.right="",this.G.style.left=q+"px");var V=z*2.5;z=V/ 2;var l=this.Tz("ytp-doubletap-ripple");l.style.width=V+"px";l.style.height=V+"px";h===1?(h=this.K.Bm().getPlayerSize().width-t+Math.abs(q),l.style.left="",l.style.right=h-z+"px"):h===-1&&(h=Math.abs(q)+t,l.style.right="",l.style.left=h-z+"px");l.style.top="calc((33% + "+Math.round(Y)+"px) - "+z+"px)";if(Y=this.Tz("ytp-doubletap-ripple"))Y.classList.remove("ytp-doubletap-ripple"),Y.classList.add("ytp-doubletap-ripple");fen(this,this.U?this.S:L)}; g.M.NP=function(h,t,Y){if(Y=Y===void 0?null:Y){var L=h===-1?this.L.visualElement:this.Y.visualElement;Y={seekData:Y};var q=g.yy();q&&g.f$(Oe)(void 0,q,L,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Y,void 0)}this.S=h===this.C?this.S+t:t;this.C=h;L=this.K.Bm().getPlayerSize();this.U?this.T.stop():g.TU(this.T);this.W.start();this.element.setAttribute("data-side",h===-1?"back":"forward");g.mS(this.element,"ytp-time-seeking");this.G.style.width="110px";this.G.style.height="110px";Y=L.width*.1-15;h=== 1?this.AQ?(this.G.style.right=Y+"px",this.G.style.left=""):(this.G.style.right="",this.G.style.left=L.width*.8-30+"px"):h===-1&&(this.AQ?(this.G.style.right="",this.G.style.left=Y+"px"):(this.G.style.right="",this.G.style.left=L.width*.1-15+"px"));this.G.style.top=L.height*.5+15+"px";fen(this,this.U?this.S:t)}; g.M.N1=function(h,t,Y){Y=Y===void 0?null:Y;g.TU(this.T);this.W.start();switch(h){case -1:h="back";break;case 1:h="forward";break;default:h=""}this.element.setAttribute("data-side",h);this.G.style.width="0";this.G.style.height="0";g.mS(this.element,"ytp-chapter-seek");this.updateValue("seekText",t);this.updateValue("seekTime","");t=this.Tz("ytp-seek-icon");if(Y){a:if(Y){switch(Y){case "PREMIUM_STANDALONE":Y=rGb();break a;case "PREMIUM_STANDALONE_CAIRO":Y=cGp();break a}Y=void 0}else Y=null;this.updateValue("seekIcon", Y);t.style.display="inline-block"}else t.style.display="none"};g.F($db,oq);g.M=$db.prototype;g.M.W$=function(h){this.Zx||(this.Zx=new eo(this.K),g.f(this,this.Zx));var t,Y;if((t=this.Pq)==null?0:(Y=t.menu)==null?0:Y.menuRenderer)this.Zx.open(this.Pq.menu.menuRenderer,h.target),h.preventDefault()}; g.M.w1=function(){return!!this.G}; g.M.WF=function(){return!!this.G}; g.M.mP=function(h){h.target===this.overflowButton.element?h.preventDefault():(this.Im&&this.K.jM("innertubeCommand",this.Im),this.g9(!1))}; g.M.fS=function(){this.g9(!0);var h,t;((h=this.G)==null?0:(t=h.bannerData)==null?0:t.dismissedStatusKey)&&this.Ds.push(this.G.bannerData.dismissedStatusKey);this.Uq()}; g.M.E5=function(){this.Uq();wW(this)}; g.M.r75=function(h){var t=this,Y;if(h.id!==((Y=this.G)==null?void 0:Y.identifier)){this.Uq();Y=g.b(this.Wm);for(var L=Y.next();!L.done;L=Y.next()){var q=L.value,z=void 0,V=void 0;if((L=(z=q)==null?void 0:(V=z.bannerData)==null?void 0:V.itemData)&&q.identifier===h.id){V=z=void 0;var l=((z=q)==null?void 0:(V=z.bannerData)==null?void 0:V.dismissedStatusKey)||"";if(this.Ds.includes(l))return;this.G=q;this.banner.element.setAttribute("aria-label",L.accessibilityLabel||"");L.trackingParams&&(this.W=!0, this.K.setTrackingParams(this.badge.element,L.trackingParams));this.show();this.L.show();bO(this);this.gU.hC(!L.stayInApp);ip3(this);AMi(this);HA(this);this.Im=g.A(L.onTapCommand,dv);if(q=g.A(L.menuOnTap,dv))this.Pq=g.A(q,o2v);q=void 0;this.banner.update({thumbnail:(q=(L.thumbnailSources||[])[0])==null?void 0:q.url,title:L.productTitle,price:L.priceReplacementText?L.priceReplacementText:L.price,salesOriginalPrice:Rsi(this),priceDropReferencePrice:BTL(this),promotionText:IeL(this),priceA11yText:PD1(this), affiliateDisclaimer:L.affiliateDisclaimer,vendor:mdL(this)});l=V=z=q=void 0;((q=L)==null?0:(z=q.hiddenProductOptions)==null?0:z.showDropCountdown)&&((V=L)==null?0:(l=V.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Q4=new g.nE(function(){tAc(t)},1E3),this.gU.hide(),this.countdownTimer.show(),tAc(this)); this.K.N("web_player_enable_featured_product_banner_exclusives_on_desktop")&&TT3(this)&&(this.y4=new g.nE(function(){SUc(t)},1E3),SUc(this))}}this.K.getRootNode()&&g.mS(this.K.getRootNode(),"ytp-featured-product-shown")}}; g.M.Uq=function(){this.G&&(this.G=void 0,this.tH(),this.K.getRootNode()&&g.hp(this.K.getRootNode(),"ytp-featured-product-shown"))}; g.M.onVideoDataChange=function(h,t){var Y=this;h==="dataloaded"&&wW(this);var L,q,z;h=g.A((L=t.getWatchNextResponse())==null?void 0:(q=L.playerOverlays)==null?void 0:(z=q.playerOverlayRenderer)==null?void 0:z.productsInVideoOverlayRenderer,Z00);this.overflowButton.show();this.dismissButton.hide();var V=h==null?void 0:h.featuredProductsEntityKey;this.trendingOfferEntityKey=h==null?void 0:h.trendingOfferEntityKey;this.Wm.length||(hA1(this,V),HA(this));var l;(l=this.pn)==null||l.call(this);this.pn=g.wu.subscribe(function(){hA1(Y, V);HA(Y)})}; g.M.Gz=function(){wW(this);ip3(this);AMi(this);oq.prototype.Gz.call(this)};g.F(zAb,g.I);zAb.prototype.onClick=function(){this.K.logClick(this.element,this.T)};g.F(VAL,g.SH);g.M=VAL.prototype;g.M.show=function(){g.SH.prototype.show.call(this);this.K.publish("infopaneldetailvisibilitychange",!0);this.K.logVisibility(this.element,!0);NgL(this,!0)}; g.M.hide=function(){g.SH.prototype.hide.call(this);this.K.publish("infopaneldetailvisibilitychange",!1);this.K.logVisibility(this.element,!1);NgL(this,!1)}; g.M.getId=function(){return this.W}; g.M.YM=function(){return this.itemData.length}; g.M.onVideoDataChange=function(h,t){if(t){var Y,L,q,z;this.update({title:((Y=t.LN)==null?void 0:(L=Y.title)==null?void 0:L.content)||"",body:((q=t.LN)==null?void 0:(z=q.bodyText)==null?void 0:z.content)||""});var V;h=((V=t.LN)==null?void 0:V.trackingParams)||null;this.K.setTrackingParams(this.element,h);V=g.b(this.itemData);for(h=V.next();!h.done;h=V.next())h.value.dispose();this.itemData=[];var l;if((l=t.LN)==null?0:l.ctaButtons)for(t=g.b(t.LN.ctaButtons),l=t.next();!l.done;l=t.next())if(l=g.A(l.value, Ur0))l=new zAb(this.K,l,this.G),l.ra&&(this.itemData.push(l),l.zz(this.items))}}; g.M.Gz=function(){this.hide();g.SH.prototype.Gz.call(this)};g.F(wP$,g.I);g.M=wP$.prototype;g.M.onVideoDataChange=function(h,t){Hpr(this,t);this.yp&&yB6(this,this.yp)}; g.M.ER=function(h){var t=this.K.getVideoData();this.videoId!==t.videoId&&Hpr(this,t);yB6(this,h.state);this.yp=h.state}; g.M.Xu=function(h){(this.S=h)?this.hide():this.G&&this.show()}; g.M.Qa=function(){this.T||this.rz();this.showControls=!0}; g.M.zl=function(){this.T||this.KZ();this.showControls=!1}; g.M.rz=function(){var h,t=(h=this.K)==null?void 0:h.getPlayerSize();h=t.width<380;var Y;t=t.height<(((Y=this.K)==null?0:Y.isEmbedsShortsMode())?400:280);var L,q;(((L=this.K)==null?0:L.getPlayerStateObject().isCued())||((q=this.K)==null?0:g.R(q.getPlayerStateObject(),1024)))&&h&&t||!this.G||this.S||(this.fade.show(),this.K.publish("infopanelpreviewvisibilitychange",!0),this.K.logVisibility(this.element,!0))}; g.M.KZ=function(){this.G&&!this.S&&(this.fade.hide(),this.K.publish("infopanelpreviewvisibilitychange",!1),this.K.logVisibility(this.element,!1))}; g.M.dUU=function(){this.T=!1;this.showControls||this.KZ()};var GvE={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(GvE).reduce(function(h,t){h[GvE[t]]=t;return h},{}); var Qts={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Qts).reduce(function(h,t){h[Qts[t]]=t;return h},{}); var ruh={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ruh).reduce(function(h,t){h[ruh[t]]=t;return h},{});var cul,uyh;cul=[{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"}];uyh=[{option:0,text:WA(0)},{option:.25,text:WA(.25)},{option:.5,text:WA(.5)},{option:.75,text:WA(.75)},{option:1,text:WA(1)}]; g.CB=[{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:cul},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:WA(.5)},{option:-1,text:WA(.75)},{option:0,text:WA(1)},{option:1,text:WA(1.5)},{option:2, text:WA(2)},{option:3,text:WA(3)},{option:4,text:WA(4)}]},{option:"background",text:"Background color",options:cul},{option:"backgroundOpacity",text:"Background opacity",options:uyh},{option:"windowColor",text:"Window color",options:cul},{option:"windowOpacity",text:"Window opacity",options:uyh},{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:WA(.25)},{option:.5,text:WA(.5)},{option:.75,text:WA(.75)},{option:1,text:WA(1)}]}];var ecv=[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.F(sar,g.UF);g.M=sar.prototype; g.M.m8=function(h){h.repeat||(this.S.yv=!1);var t=!1,Y=h.keyCode,L=MM(h),q=!h.altKey&&!h.ctrlKey&&!h.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||ecv.includes(Y)),z=!1,V=!1,l=this.api.J();h.defaultPrevented?(q=!1,V=!0):l.sX&&!this.api.isMutedByEmbedsMutedAutoplay()&&(q=!1);if(Y===9)t=!0;else{if(L)switch(Y){case 32:case 13:if(L.tagName==="BUTTON"||L.tagName==="A"||L.tagName==="INPUT")t=!0,q=!1;else if(q){var H=L.getAttribute("role");!H||H!=="option"&&H!=="button"&&H.indexOf("menuitem")!==0|| (t=!0,L.click(),z=!0)}break;case 37:case 39:case 36:case 35:t=L.getAttribute("role")==="slider";break;case 38:case 40:H=L.getAttribute("role"),L=Y===38?L.previousSibling:L.nextSibling,H==="slider"?t=!0:q&&(H==="option"?(L&&L.getAttribute("role")==="option"&&L.focus(),z=t=!0):H&&H.indexOf("menuitem")===0&&(L&&L.hasAttribute("role")&&L.getAttribute("role").indexOf("menuitem")===0&&L.focus(),z=t=!0))}if(q&&!z)switch(Y){case 38:z=Math.min(this.api.getVolume()+5,100);gW(this.XD,z,!1);this.api.setVolume(z); V=z=!0;break;case 40:z=Math.max(this.api.getVolume()-5,0);gW(this.XD,z,!0);this.api.setVolume(z);V=z=!0;break;case 36:this.api.B2()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),V=z=!0);break;case 35:this.api.B2()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),V=z=!0)}}t&&Xa(this,!0);(t||V)&&this.eQ.jz();(z||q&&this.handleGlobalKeyDown(Y,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,h.key,h.code,h.repeat))&&h.preventDefault();l.Y&&(h={keyCode:h.keyCode, altKey:h.altKey,ctrlKey:h.ctrlKey,metaKey:h.metaKey,shiftKey:h.shiftKey,handled:h.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Uz("onKeyPress",h))}; g.M.H5=function(h){var t=h.keyCode;(!this.api.N("web_player_spacebar_control_bugfix")||this.api.N("web_player_spacebar_control_bugfix")&&!this.S.sN)&&this.handleGlobalKeyUp(t,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,h.key,h.code)&&h.preventDefault()}; g.M.handleGlobalKeyUp=function(h,t,Y,L,q,z,V){this.api.publish("keyboardserviceglobalkeyup",{keyCode:h,shiftKey:t,ctrlKey:Y,altKey:L,metaKey:q,key:z,code:V});t=!1;if(this.S.yv)return t;(z=g.xl(this.api.T$()))&&(z=z.Oo)&&z.nZ&&(z.DU(h),t=!0);switch(h){case 9:Xa(this,!0);t=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&(!this.api.N("web_player_spacebar_control_bugfix")&&!this.S.sN||this.api.N("web_player_spacebar_control_bugfix"))&&!this.api.J().sX){var l,H;h=(l=this.progressBar)== null?void 0:(H=l.T)==null?void 0:H.isEnabled;t=this.yR(h)}break;case 39:(ht?L:Y)&&!q&&this.api.B2()&&this.api.N("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),l=(l=this.api.getVideoData())?l.D9:[],H=Uvb(l,this.api.getCurrentTime()*1E3),H!==-1&&this.G!=null&&(this.G.N1(1,l[H].title),this.api.seekTo(l[H].startTime/1E3,void 0,void 0,void 0,52),t=!0))}return t}; g.M.handleGlobalKeyDown=function(h,t,Y,L,q,z,V,l){l||(this.S.yv=!1);var H=!1,w=this.api.J();if(w.sX&&!this.api.isMutedByEmbedsMutedAutoplay())return H;var W=g.xl(this.api.T$());if(W&&(W=W.Oo)&&W.nZ)switch(h){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:H=W.C$(h)}w.U||H||(H=z||String.fromCharCode(h).toLowerCase(),this.T+=H,"awesome".indexOf(this.T)===0||this.api.N("web_player_rtr_ctrls")&&"bday".indexOf(this.T)===0?(H=!0,4===this.T.length&&this.T==="bday"&&this.api.N("web_player_rtr_ctrls")&& (HgW(this.X),this.eQ.jz()),7===this.T.length&&this.T==="awesome"&&QrD(this.api.getRootNode(),"ytp-color-party")):(this.T=H,H="awesome".indexOf(this.T)===0||"bday".indexOf(this.T)===0));if(!H&&(!this.api.isMutedByEmbedsMutedAutoplay()||ecv.includes(h))){var y=this.api.getVideoData(),X,U;W=(X=this.progressBar)==null?void 0:(U=X.T)==null?void 0:U.isEnabled;X=y?y.D9:[];U=ht?L:Y;switch(h){case 80:t&&!w.Ne&&(i2(this.XD,u4n(),"Previous"),this.api.previousVideo(),H=!0);break;case 78:t&&!w.Ne&&(i2(this.XD, WH(),"Next"),this.api.nextVideo(),H=!0);break;case 74:this.api.B2()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(H=Uq(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.G.NP(-1,10,H)):this.G.NP(-1,10):i2(this.XD,{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),H=!0);break;case 76:this.api.B2()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(H=Uq(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.G.NP(1,10,H)):this.G.NP(1,10):i2(this.XD,{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),H=!0);break;case 37:this.api.B2()&&(this.api.startSeekCsiAction(),U?(U=CYr(X,this.api.getCurrentTime()*1E3),U!==-1&&this.G!=null&&(this.G.N1(-1,X[U].title),this.api.seekTo(X[U].startTime/1E3,void 0,void 0,void 0,53),H=!0)):(this.G?this.api.N("enable_key_press_seek_logging")?(H=Uq(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.G.NP(-1,5,H)):this.G.NP(-1,5):i2(this.XD,{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),H=!0));break;case 39:this.api.B2()&&(this.api.startSeekCsiAction(),U?this.api.N("web_enable_keyboard_shortcut_for_timely_actions")||(U=Uvb(X,this.api.getCurrentTime()*1E3),U!==-1&&this.G!=null&&(this.G.N1(1,X[U].title),this.api.seekTo(X[U].startTime/1E3,void 0,void 0,void 0,52),H=!0)):(this.G!=null?this.api.N("enable_key_press_seek_logging")?(H=Uq(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.G.NP(1,5,H)):this.G.NP(1, 5):i2(this.XD,{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),H=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),gW(this.XD,this.api.getVolume(),!1)):(this.api.mute(),gW(this.XD,0,!0));H=!0;break;case 32:H=this.api.N("web_speedmaster_spacebar_control")?!this.api.J().Ne:this.yR(W);break;case 75:H=this.yR(W);break;case 190:t?w.enableSpeedOptions&&ZpL(this)&&(H=this.api.getPlaybackRate(),this.api.setPlaybackRate(H+.25,!0),XaL(this.XD,!1),H=!0):this.api.B2()&&(this.step(1),H=!0);break;case 188:t? w.enableSpeedOptions&&ZpL(this)&&(H=this.api.getPlaybackRate(),this.api.setPlaybackRate(H-.25,!0),XaL(this.XD,!0),H=!0):this.api.B2()&&(this.step(-1),H=!0);break;case 70:Qg1(this.api)&&(this.api.toggleFullscreen().catch(function(){}),H=!0); break;case 27:W?(this.progressBar.QN(),H=!0):this.U()&&(H=!0)}if(w.controlsType!=="3")switch(h){case 67:g.Jb(this.api.T$())&&(w=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Udc(this.XD,!w||w&&!w.displayName),H=!0);break;case 79:M3(this,"textOpacity");break;case 87:M3(this,"windowOpacity");break;case 187:case 61:M3(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:M3(this,"fontSizeIncrement",!0,!0)}var C;t||Y||L||(h>=48&&h<=57?C=h-48:h>=96&&h<=105&&(C=h-96));C!=null&&this.api.B2()&& (this.api.startSeekCsiAction(),w=this.api.getProgressState(),this.api.seekTo(C/10*(w.seekableEnd-w.seekableStart)+w.seekableStart,void 0,void 0,void 0,81),H=!0);H&&this.eQ.jz()}this.S.z_=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:h,shiftKey:t,ctrlKey:Y,altKey:L,metaKey:q,key:z,code:V,repeat:l},this.S);this.S.z_&&(H=!0,this.eQ.jz());return H}; g.M.step=function(h){this.api.B2();if(this.api.getPlayerStateObject().isPaused()){var t=this.api.getVideoData().T;t&&(t=t.video)&&this.api.seekBy(h/(t.fps||30),void 0,void 0,h>0?77:78)}}; g.M.yR=function(h){if(!this.api.J().Ne){var t;var Y,L=(t=this.api.getVideoData())==null?void 0:(Y=t.getPlayerResponse())==null?void 0:Y.playabilityStatus;if(L){var q;t=((q=g.A(L.miniplayer,eOL))==null?void 0:q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else t=!1;t&&this.api.jM("onExpandMiniplayer");h?this.progressBar.zE():(h=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XD.GM(h),h?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.M.Gz=function(){g.TU(this.W);g.UF.prototype.Gz.call(this)};g.F(Fa,g.I);Fa.prototype.Hm=function(){var h=this.K.J(),t=h.S||this.K.N("web_player_hide_overflow_button_if_empty_menu")&&this.zy.isEmpty();h=g.kk(h)&&g.Ko(this.K)&&g.R(this.K.getPlayerStateObject(),128);var Y=this.K.getPlayerSize();this.visible=this.K.CC()&&!h&&Y.width>=240&&!this.K.getVideoData().Ye&&!t&&!this.K.isEmbedsShortsMode();g.iA(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.K.HM();this.K.logVisibility(this.element,this.visible&&this.X)}; Fa.prototype.Y4=function(h){g.I.prototype.Y4.call(this,h);this.K.logVisibility(this.element,this.visible&&h)}; Fa.prototype.Gz=function(){g.I.prototype.Gz.call(this);g.hp(this.element,"ytp-overflow-button-visible")};g.F(bpp,g.SH);g.M=bpp.prototype;g.M.ZK=function(h){h=MM(h);g.sO(this.element,h)&&(g.sO(this.G,h)||g.sO(this.closeButton,h)||Re(this))}; g.M.KZ=function(){g.SH.prototype.KZ.call(this);this.K.a$(this.element)}; g.M.show=function(){this.nZ&&this.K.publish("OVERFLOW_PANEL_OPENED");g.SH.prototype.show.call(this);this.element.setAttribute("aria-modal","true");dv1(this,!0)}; g.M.hide=function(){g.SH.prototype.hide.call(this);this.element.removeAttribute("aria-modal");dv1(this,!1)}; g.M.onFullscreenToggled=function(h){!h&&this.KI()&&Re(this)}; g.M.isEmpty=function(){return this.actionButtons.length===0}; g.M.focus=function(){for(var h=g.b(this.actionButtons),t=h.next();!t.done;t=h.next())if(t=t.value,t.nZ){t.focus();break}};g.F(Gm6,g.I);Gm6.prototype.onClick=function(h){g.HI(h,this.api)&&this.api.playVideoAt(this.index)};g.F(Qai,g.SH);g.M=Qai.prototype;g.M.show=function(){g.SH.prototype.show.call(this);this.G.V(this.api,"videodatachange",this.D0);this.G.V(this.api,"onPlaylistUpdate",this.D0);this.D0()}; g.M.hide=function(){g.SH.prototype.hide.call(this);g.ZZ(this.G);this.updatePlaylist(null)}; g.M.D0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.J().S&&(this.Tz("ytp-playlist-menu-title-name").removeAttribute("href"),this.S&&(this.W3(this.S),this.S=null))}; g.M.b2=function(){var h=this.playlist,t=h.author,Y=t?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",L={CURRENT_POSITION:String(h.index+1),PLAYLIST_LENGTH:String(h.length)};t&&(L.AUTHOR=t);this.update({title:h.title,subtitle:g.BV(Y,L),playlisturl:this.api.getVideoUrl(!0)});t=h.T;if(t===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[h.index];else{Y=g.b(this.playlistData);for(L=Y.next();!L.done;L=Y.next())L.value.dispose(); Y=h.length;this.playlistData=[];for(L=0;L=this.T&&!h.S&&!t.isAd()&&!this.api.isEmbedsShortsMode()}else h=!1;this.visible=h;this.hC(this.visible);g.iA(this.element,"ytp-search-button-visible",this.visible);g.iA(this.element,"ytp-show-search-title",!this.api.CC());this.api.logVisibility(this.element,this.visible&&this.X)}; b2.prototype.Y4=function(h){g.I.prototype.Y4.call(this,h);this.api.logVisibility(this.element,this.visible&&h)};g.F(ox,g.I); ox.prototype.trigger=function(h,t,Y,L){this.show();if(this.W&&h!==this.W){var q=1;this.T&&(q=km6(this));vP6(this,q,!1);EPc(this)}this.W=h;this.S=this.W===-1?this.Y:this.L;h="";t?(this.C+=t,h=g.XA(this.C)):this.C=0;this.updateValue(this.W===-1?"durationBack":"durationForward",h);if(this.G==="hidden"||this.G==="fading-out")t=0,this.G==="fading-out"&&(t=km6(this),xvL(this)),Kfp(this,t),this.G!=="fading-out"&&aVp(this,this.S.querySelector(".ytp-seek-overlay-arrow-persistent")),this.G="fading-in";else if(this.G=== "fading-in"||this.G==="lingering")t=this.S.querySelector(".ytp-seek-overlay-duration"),h=g.Sk(this.K.J().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,t.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+h+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),xvL(this),this.G==="lingering"&&(this.U.stop(),this.U.start());this.AQ=(0,g.FH)();Y&&Op1(this,Y,L)}; ox.prototype.SH=function(h,t,Y,L){this.trigger(h,L)}; ox.prototype.NP=function(h,t,Y){this.trigger(h,t);Y&&(h=h===-1?this.L.visualElement:this.Y.visualElement,Y={seekData:Y},(t=g.yy())&&g.f$(Oe)(void 0,t,h,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Y,void 0))}; ox.prototype.N1=function(h,t,Y){this.trigger(h,void 0,t,Y)};g.F(dW,g.I);dW.prototype.onClick=function(){var h=this,t=this.api.J(),Y=this.api.getVideoData(this.api.getPresentingPlayerType()),L=this.api.getPlaylistId();t=this.api.N("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):t.getVideoUrl(Y.videoId,L,void 0,!0);if(navigator.share)try{var q=navigator.share({title:Y.title,url:t});q instanceof Promise&&q.catch(function(z){fVp(h,z)})}catch(z){z instanceof Error&&fVp(this,z)}else this.G.fV(),Re(this.T,this.element,!1); this.api.logClick(this.element)}; dW.prototype.Hm=function(){var h=this.api.J(),t=this.api.isEmbedsShortsMode();g.iA(this.element,"ytp-show-share-title",g.kk(h)&&!t);this.G.cM()&&t?(h=(this.api.Bm().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$9(this.element,"right",h+"px")):t&&g.$9(this.element,"right","0px");this.updateValue("icon",{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=nPL(this);g.iA(this.element,"ytp-share-button-visible",this.visible);this.hC(this.visible);this.tooltip.HM();this.api.logVisibility(this.element,nPL(this)&&this.X)}; dW.prototype.Y4=function(h){g.I.prototype.Y4.call(this,h);this.api.logVisibility(this.element,this.visible&&h)}; dW.prototype.Gz=function(){g.I.prototype.Gz.call(this);g.hp(this.element,"ytp-share-button-visible")};g.F(Tgr,g.SH);g.M=Tgr.prototype;g.M.XY=function(h){h=MM(h);g.sO(this.U,h)||g.sO(this.closeButton,h)||Re(this)}; g.M.KZ=function(){g.SH.prototype.KZ.call(this);this.tooltip.a$(this.element);this.api.logVisibility(this.G,!1);for(var h=g.b(this.S),t=h.next();!t.done;t=h.next())t=t.value,this.api.hasVe(t.element)&&this.api.logVisibility(t.element,!1)}; g.M.show=function(){var h=this.nZ;g.SH.prototype.show.call(this);this.Hm();h||this.api.jM("onSharePanelOpened")}; g.M.df=function(){this.nZ&&this.Hm()}; g.M.Hm=function(){var h=this;g.mS(this.element,"ytp-share-panel-loading");g.hp(this.element,"ytp-share-panel-fail");var t=this.api.getVideoData(),Y=this.api.getPlaylistId()&&this.W.checked;t.getSharePanelCommand&&QD(this.api.D3(),t.getSharePanelCommand,{includeListId:Y}).then(function(L){h.Ui()||(g.hp(h.element,"ytp-share-panel-loading"),IVL(h,L))}); t=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",t);this.updateValue("linkText",t);this.updateValue("shareLinkWithUrl",g.BV("Share link $URL",{URL:t}));XE(this.G);this.api.logVisibility(this.G,!0)}; g.M.onFullscreenToggled=function(h){!h&&this.KI()&&Re(this)}; g.M.focus=function(){this.G.focus()}; g.M.Gz=function(){g.SH.prototype.Gz.call(this);ABn(this)};g.F(PYL,oq);g.M=PYL.prototype;g.M.Gz=function(){iC3(this);oq.prototype.Gz.call(this)}; g.M.mP=function(h){h.target!==this.dismissButton.element&&(this.g9(!1),this.K.jM("innertubeCommand",this.onClickCommand))}; g.M.fS=function(){this.JQ=!0;this.g9(!0);this.tH()}; g.M.x_0=function(h){this.C=h;this.tH()}; g.M.onVideoDataChange=function(h,t){if(h=!!t.videoId&&this.videoId!==t.videoId)this.videoId=t.videoId,this.JQ=!1,this.R0=!0,this.Y=this.x8=!1,iC3(this),tbW(this,!1),this.T=this.G=!1,QA(this),mv6(this);if(h||!t.videoId)this.AQ=this.W=!1;var Y,L;if(t==null?0:(Y=t.getPlayerResponse())==null?0:(L=Y.videoDetails)==null?0:L.isLiveContent)this.vx(!1);else{var q,z,V;t=g.A((q=t.getWatchNextResponse())==null?void 0:(z=q.playerOverlays)==null?void 0:(V=z.playerOverlayRenderer)==null?void 0:V.productsInVideoOverlayRenderer, Z00);this.C=this.enabled=!1;if(t){if(q=t==null?void 0:t.featuredProductsEntityKey){z=g.wu.getState().entities;var l;if((l=AY(z,"featuredProductsEntity",q))==null?0:l.productsData){this.vx(!1);return}}if(!t.text||!t.onClickCommand||!t.timing){this.vx(!1);return}this.enabled=!0;if(!this.W){var H;l=(H=t.badgeInteractionLogging)==null?void 0:H.trackingParams;(this.W=!!l)&&this.K.setTrackingParams(this.badge.element,l||null)}if(!this.AQ){var w;if(this.AQ=!((w=t.dismissButton)==null||!w.trackingParams)){var W; this.K.setTrackingParams(this.dismissButton.element,((W=t.dismissButton)==null?void 0:W.trackingParams)||null)}}t.isContentForward&&(H=t.productsData,tbW(this,!0),mv6(this),H=h1i(this,H),w=[],H.length>0&&w.push(H[0]),H.length>1&&(W=new g.I({Z:"div",D:"ytp-suggested-action-more-products-icon"}),g.f(this,W),w.push(W),w.push.apply(w,g.p(H.slice(1)))),this.U=new g.I({Z:"div",B:w,D:"ytp-suggested-action-content-forward-container"}),g.f(this,this.U),this.X5.element.append(this.U.element));this.text=g.Lc(t.text); var y;if(H=(y=t.dismissButton)==null?void 0:y.a11yLabel)this.Y8=g.Lc(H);this.onClickCommand=t.onClickCommand;this.timing=t.timing;this.Ji()}ACL(this);bO(this);this.tH()}}; g.M.w1=function(){return!this.C&&this.enabled&&!this.JQ&&!this.K.CC()&&!this.G$&&(this.Y||this.R0)}; g.M.Jt=function(h){oq.prototype.Jt.call(this,h);if(this.G||this.T)this.timing&&Gy(this.timing.preview)&&(this.G=!1,QA(this),this.T=!1,QA(this),this.K.z6("shopping_overlay_preview_collapsed"),this.K.z6("shopping_overlay_preview_expanded"),h=rW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Gy(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.K.z6("shopping_overlay_expanded"),h.end=this.timing.expanded.endSec*1E3),this.K.Ji([h])), this.x8=!0,bO(this);QA(this)}; g.M.vx=function(h){(this.Y=h)?(Zw(this),bO(this,!1)):(iC3(this),this.Ne.start());this.tH()}; g.M.Ji=function(h){var t=this.timing;h=(h===void 0?0:h)+this.K.getCurrentTime();var Y=[],L=t.visible,q=t.preview;t=t.expanded;Gy(L)&&(RAL(L,h),Y.push(rW(L.startSec,L.endSec,"shopping_overlay_visible")));Gy(q)&&(RAL(q,h),L=q.startSec+1,Y.push(rW(q.startSec,L,"shopping_overlay_preview_collapsed")),Y.push(rW(L,q.endSec,"shopping_overlay_preview_expanded")));Gy(t)&&(RAL(t,h),Y.push(rW(t.startSec,t.endSec,"shopping_overlay_expanded")));this.K.Ji(Y)}; g.M.tH=function(){oq.prototype.tH.call(this);this.K.getRootNode()&&g.iA(this.K.getRootNode(),"ytp-shopping-pill-shown",this.w1())};g.F(LcL,g.I); LcL.prototype.Hm=function(){var h=this.api.J();this.hC(g.kk(h)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.nZ);var t=this.api.getVideoData(),Y=!1;this.api.getPresentingPlayerType()===2?Y=!!t.videoId&&!!t.isListed&&!!t.author&&!!t.MD&&!!t.profilePicture:g.kk(h)&&(Y=!!t.videoId&&!!t.MD&&!!t.profilePicture&&!t.Ye&&!h.S&&!(h.C&&this.api.getPlayerSize().width<200));var L=t.profilePicture;h=g.kk(h)?t.expandedTitle:t.author;L=L===void 0? "":L;h=h===void 0?"":h;Y?(this.T!==L&&(this.G.style.backgroundImage="url("+L+")",this.T=L),this.updateValue("channelLogoLabel",g.BV("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:h})),g.mS(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.hp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.G,Y&&this.X);this.api.logVisibility(this.channelName,Y&&this.X);this.subscribeButton&&(this.subscribeButton.channelId=t.IJ);this.updateValue("expandedTitle",t.expandedTitle)};g.F(cA,g.SH);cA.prototype.show=function(){g.SH.prototype.show.call(this);this.G.start()}; cA.prototype.hide=function(){g.SH.prototype.hide.call(this);this.G.stop()}; cA.prototype.KH=function(h,t){h==="dataloaded"&&((this.nL=t.nL,this.NU=t.NU,isNaN(this.nL)||isNaN(this.NU))?this.S&&(this.K.z6("intro"),this.K.removeEventListener(g.EX("intro"),this.C),this.K.removeEventListener(g.kO("intro"),this.U),this.K.removeEventListener("onShowControls",this.W),this.hide(),this.S=!1):(this.K.addEventListener(g.EX("intro"),this.C),this.K.addEventListener(g.kO("intro"),this.U),this.K.addEventListener("onShowControls",this.W),h=new g.aZ(this.nL,this.NU,{priority:9,namespace:"intro"}), this.K.Ji([h]),this.S=!0))};g.F(u2,g.I);u2.prototype.onClick=function(){this.K.GI()}; u2.prototype.Hm=function(){var h=!0;g.kk(this.K.J())&&(h=h&&this.K.Bm().getPlayerSize().width>=480);this.hC(h);h=this.updateValue;var t=this.K.N("delhi_modern_web_player_icons"),Y=t?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,j:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};t=t?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};h.call(this,"icon",this.K.eF()?Y:t)};g.F(z1L,g.I);z1L.prototype.Gz=function(){this.G=null;g.I.prototype.Gz.call(this)};g.F(eU,g.I);eU.prototype.onClick=function(){this.K.jM("innertubeCommand",this.T)}; eU.prototype.L=function(){if(this.K.N("delhi_modern_web_player")){var h=this.K.getPlayerSize();h.width&&(this.element.style.maxWidth=h.width*.25+"px")}}; eU.prototype.x8=function(h){h!==this.C&&(this.update({title:h,ariaLabel:h}),this.C=h);h?this.show():this.hide()}; eU.prototype.AQ=function(){this.G.disabled=this.T==null;g.iA(this.G,"ytp-chapter-container-disabled",this.G.disabled);this.Kn()};g.F(JC,eU);JC.prototype.onClickCommand=function(h){g.A(h,Hu)&&this.Kn()}; JC.prototype.updateVideoData=function(h,t){var Y,L,q;h=g.A((Y=t.getWatchNextResponse())==null?void 0:(L=Y.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:q.decoratedPlayerBarRenderer,xD);Y=g.A(h==null?void 0:h.playerBarActionButton,g.IB);if(this.K.N("web_player_updated_entrypoint")){this.Y=vG(Y==null?void 0:Y.text);var z;L=(z=Y==null?void 0:Y.tooltip)!=null?z:"View chapter";this.U.setAttribute("title",L)}this.T=Y==null?void 0:Y.command;eU.prototype.AQ.call(this)}; JC.prototype.Kn=function(){var h=this.Y,t=this.W.G,Y,L=((Y=this.K.getLoopRange())==null?void 0:Y.type)==="clips";if(t.length>1&&!L){h=this.K.getProgressState().current*1E3;Y=yA(t,h);h=t[Y].title||"Chapters";if(Y!==this.currentIndex||this.S)this.K.jM("innertubeCommand",t[Y].onActiveCommand),this.currentIndex=Y;this.S=!1}else this.S=!0;eU.prototype.x8.call(this,h)};g.F(pB,g.iR);pB.prototype.T=function(){var h;(h=this.element.parentElement)==null||h.classList.contains("ytp-right-controls-left");(this.G=!this.G)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; pB.prototype.isExpanded=function(){return this.G};g.F(vA,g.I);vA.prototype.S=function(h){g.R(h.state,32)?Nw6(this,this.api.xv()):this.nZ&&(g.R(h.state,16)||g.R(h.state,1))||this.fade.hide()}; vA.prototype.O9=function(){var h=this.api.getPlayerStateObject();(g.R(h,32)||g.R(h,16))&&lx6(this)}; vA.prototype.W=function(){this.frameIndex=NaN;lx6(this)}; vA.prototype.hide=function(){this.G&&Nw6(this,null);g.I.prototype.hide.call(this)};g.F(HCb,g.I);g.M=HCb.prototype;g.M.onClick=function(){var h=this;if(this.K.J().MD||this.K.J().C){this.K.logClick(this.element);try{this.K.toggleFullscreen().catch(function(t){h.Hn(t)})}catch(t){this.Hn(t)}}else Re(this.message,this.element,!0)}; g.M.Hn=function(h){String(h).includes("fullscreen error")?g.bc(h):g.ZD(h);this.Lx()}; g.M.Lx=function(){this.disable();this.message.rz(this.element,!0)}; g.M.l3=function(){HY()===this.K.getRootNode()?this.S.start():(this.S.stop(),this.message&&this.message.hide())}; g.M.tN=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var h=window.screen.width*.9,t=window.screen.height*.9,Y=Math.max(window.outerWidth,window.innerWidth),L=Math.max(window.outerHeight,window.innerHeight);if(Y>L!==h>t){var q=Y;Y=L;L=q}h>Y&&t>L&&this.Lx()}}; g.M.disable=function(){var h=this;if(!this.message){var t=(VS(["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.SH(this.K,{Z:"div",Ei:["ytp-popup","ytp-generic-popup"],j:{role:"alert",tabindex:"0"},B:[t[0],{Z:"a",j:{href:"https://support.google.com/youtube/answer/6276924", target:this.K.J().L},o0:t[2]},t[4]]},100,!0);this.message.hide();g.f(this,this.message);this.message.subscribe("show",function(Y){h.T.BP(h.message,Y)}); g.kl(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}}; g.M.Hm=function(){var h=Qg1(this.K),t=this.K.J().C&&this.K.getPlayerSize().width<250;this.hC(h&&!t);var Y;((Y=this.K.J())==null?0:Y.N("embeds_use_parent_visibility_in_ve_logging"))?this.K.logVisibility(this.element,this.nZ&&this.X):this.K.logVisibility(this.element,this.nZ)}; g.M.F8=function(h){if(h){var t=g.u5(this.K,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.K.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(Y){g.bc(Y)})}else t=g.u5(this.K,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); h=wSL(this,h);t=this.message?null:t;this.update({title:t,icon:h});this.T.OX().HM()}; g.M.Gz=function(){this.message||((0,this.G)(),this.G=null);g.I.prototype.Gz.call(this)}; g.M.Y4=function(h){g.I.prototype.Y4.call(this,h);var t;((t=this.K.J())==null?0:t.N("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.nZ&&h)};g.F(KB,g.I);KB.prototype.onClick=function(){this.K.logClick(this.element);this.K.seekBy(this.G,!0);var h=this.G>0?1:-1,t=Math.abs(this.G),Y=this.K.fN().QV;Y&&Y.NP(h,t);this.T.isActive()?this.S=!0:(h=["ytp-jump-spin"],this.G<0&&h.push("backwards"),this.element.classList.add.apply(this.element.classList,g.p(h)),g.fE(this.T))};g.F(ax,eU);ax.prototype.onClickCommand=function(h){g.A(h,sE1)&&this.Kn()}; ax.prototype.updateVideoData=function(){var h,t;this.T=(h=yI3(this))==null?void 0:(t=h.onTap)==null?void 0:t.innertubeCommand;eU.prototype.AQ.call(this)}; ax.prototype.Kn=function(){var h="",t=this.W.C,Y,L=(Y=yI3(this))==null?void 0:Y.headerTitle;Y=L?g.Lc(L):"";var q;L=((q=this.K.getLoopRange())==null?void 0:q.type)==="clips";t.length>1&&!L&&(h=this.K.getProgressState().current*1E3,q=XPr(t,h),h=q!=null?t[q].title:Y,q!=null&&q!==this.currentIndex&&(this.K.jM("innertubeCommand",t[q].onActiveCommand),this.currentIndex=q));eU.prototype.x8.call(this,h)};g.F(xZ,g.I);xZ.prototype.onClick=function(){this.K.jM("onCollapseMiniplayer");this.K.logClick(this.element)}; xZ.prototype.Hm=function(){this.visible=!this.K.isFullscreen();this.hC(this.visible);this.K.logVisibility(this.element,this.visible&&this.X)}; xZ.prototype.Y4=function(h){g.I.prototype.Y4.call(this,h);this.K.logVisibility(this.element,this.visible&&h)};g.F(Eq,g.I);Eq.prototype.init=function(){this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.U);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.G);XSD(this,this.G)}; Eq.prototype.S=function(){kZ(this,Number(this.T.value));this.T.focus()}; Eq.prototype.C=function(h){if(!h.defaultPrevented){switch(h.code){case "ArrowDown":h=-this.Y;break;case "ArrowUp":h=this.Y;break;default:return}kZ(this,Math.min(this.U,Math.max(Number((this.G+h).toFixed(2)),this.W)))}};g.F(Oq,Eq);Oq.prototype.onVolumeChange=function(h){if(this.L)this.L=!1;else{var t=h.volume;t===0||h.muted?kZ(this,0):kZ(this,t)}}; Oq.prototype.S=function(){Eq.prototype.S.call(this);this.AQ(this.G)}; Oq.prototype.x8=function(h){var t=-h.deltaY;t=h.deltaMode===WheelEvent.DOM_DELTA_LINE||h.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.n0(this.G+t,0,100):g.n0(this.G+g.n0(t/10,-10,10),0,100);t===0?kZ(this,0):kZ(this,t);this.AQ(t);h.preventDefault();h.stopPropagation()}; Oq.prototype.R0=function(h,t){this.L=!0;h===0||t?this.K.mute():(this.K.isMuted()&&this.K.unMute(),this.K.setVolume(h))};g.F(UYD,g.I);g.F(fB,g.I);g.M=fB.prototype;g.M.Dt=function(){if(!this.K.U0()){this.updateValue("dataTooltipOffsetY",-120);var h;(h=this.G)!=null&&nB(h,!0);var t;(t=this.G)!=null&&t.G.stop()}}; g.M.B5=function(){var h;(h=this.G)!=null&&h.G.start()}; g.M.m4=function(h){this.visible=h.width>=300||this.Zx;this.hC(this.visible);this.K.logVisibility(this.element,this.visible&&this.X)}; g.M.SK=function(){this.K.J().X5?this.K.isMuted()?this.K.unMute():this.K.mute():Re(this.message,this.element,!0);this.K.logClick(this.element)}; g.M.SXi=function(h){if(this.K.J().X5&&this.G)if(h.target===this.S){var t;if(!this.K.U0()||((t=this.G)==null?0:t.isVisible))this.SK();else{var Y;(Y=this.G)!=null&&nB(Y,!0)}}else{var L;(L=this.G)!=null&&nB(L,!0)}else this.SK()}; g.M.onVolumeChange=function(h){this.setVolume(h.volume,h.muted)}; g.M.setVolume=function(h,t){var Y=this,L=t?0:h/100;h=L===0?1:h>50?1:0;if(this.L!==h){var q=this.Y;isNaN(q)?jkD(this,h):u_L(this.X5,function(V){jkD(Y,q+(Y.L-q)*V)},250); this.L=h}L=L===0?1:0;if(this.C!==L){var z=this.R0;isNaN(z)?ZCL(this,L):u_L(this.Wm,function(V){ZCL(Y,z+(Y.C-z)*V)},250); this.C=L}MbL(this,t)}; g.M.Y4=function(h){g.I.prototype.Y4.call(this,h);this.K.logVisibility(this.element,this.visible&&h)}; var Fcn=["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"],skL=["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.F(g.$Z,g.I);g.M=g.$Z.prototype;g.M.onStateChange=function(h){this.H3(h.state);var t;((t=this.K.J())==null?0:t.N("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.nZ&&this.X)}; g.M.H3=function(h){var t=g.Ef(this.K.getVideoData()),Y=!1;h.isOrWillBePlaying()?h=t?4:2:g.R(h,2)?(h=3,Y=t):h=1;this.element.disabled=Y;if(this.G!==h){t=null;switch(h){case 2:t=g.u5(this.K,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:t="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:t=g.u5(this.K,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:t="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}h=== 3?this.update({title:t,icon:bC1(this,h)}):(this.update({title:t}),(t=bC1(this,h))&&this.G&&this.G!==3?J$L(this.transition,this.element,t):this.updateValue("icon",t));this.tooltip.HM();this.G=h}}; g.M.onVideoDataChange=function(){g.iA(this.element,"ytp-play-button-playlist",g.Ko(this.K))}; g.M.yR=function(h){this.K.logClick(this.element);if(this.K.getPlayerStateObject().isOrWillBePlaying())this.K.pauseVideo();else{if(this.K.isMinimized()&&this.K.getPlayerStateObject().isCued()){var t={},Y;if((Y=this.K.getVideoData())==null?0:Y.U)t.cttAuthInfo={token:this.K.getVideoData().U,videoId:this.K.getVideoData().videoId};ZN("direct_playback",t);this.K.aT().timerName="direct_playback"}this.K.playVideo()}this.K.isMinimized()&&(h==null?void 0:h.type)==="click"&&this.element.blur()}; g.M.Y4=function(h){g.I.prototype.Y4.call(this,h);var t;((t=this.K.J())==null?0:t.N("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.nZ&&h)};g.F(g.Ty,g.I);g.M=g.Ty.prototype;g.M.onVideoDataChange=function(){G5D(this);this.W&&(this.W3(this.W),this.W=null);this.videoData=this.K.getVideoData(1);if(this.playlist=this.K.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.V(this.K,"progresssync",this.pR);this.S=Qkn(this);dYp(this);this.lN(this.K.Bm().getPlayerSize())}; g.M.lN=function(h){h=h===void 0?this.K.Bm().getPlayerSize():h;var t,Y=((t=this.K.getLoopRange())==null?void 0:t.type)==="clips";h=(g.Ko(this.K)||this.G&&g.OY(this.K)&&!this.K.N("web_hide_next_button")||rI$(this))&&!Y&&(this.G||h.width>=400);this.hC(h);this.K.logVisibility(this.element,h)}; g.M.onClick=function(h){this.K.logClick(this.element);var t=!0;this.C?t=g.HI(h,this.K):h.preventDefault();t&&(this.G&&this.K.getPresentingPlayerType()===5?this.K.publish("ytoprerollinternstitialnext"):this.G?(ZG(this.K.aT()),this.K.publish("playlistnextbuttonclicked",this.element),this.K.nextVideo(!0)):this.S?this.K.seekTo(0):(ZG(this.K.aT()),this.K.publish("playlistprevbuttonclicked",this.element),this.K.previousVideo(!0)))}; g.M.pR=function(){var h=Qkn(this);h!==this.S&&(this.S=h,dYp(this))}; g.M.Gz=function(){this.T&&(this.T(),this.T=null);G5D(this);g.I.prototype.Gz.call(this)};g.F(uGn,g.I);g.M=uGn.prototype;g.M.CR=function(h){this.H9(h.pageX);this.mD(h.pageX+h.deltaX);e1c(this)}; g.M.H9=function(h){this.AQ=h-this.Zx}; g.M.mD=function(h){h-=this.Zx;!isNaN(this.AQ)&&this.thumbnails.length>0&&(this.L=h-this.AQ,this.thumbnails.length>0&&this.L!==0&&(this.S=this.Y+this.L,h=ax6(this,this.S),this.S<=this.G/2&&this.S>=KcD(this)?(this.api.seekTo(h,!1,void 0,void 0,25),g.$9(this.R0,"transform","translateX("+(this.S-this.G/2)+"px)"),cI6(this,h)):this.S=this.Y))}; g.M.N9=function(){this.x8&&(this.x8.qg=!0);var h=(0,g.FH)()-this.lP<300;if(Math.abs(this.L)<5&&!h){this.lP=(0,g.FH)();h=this.AQ+this.L;var t=this.G/2-h;this.H9(h);this.mD(h+t);e1c(this);this.api.logClick(this.U)}e1c(this)}; g.M.DK=function(){AC(this,this.api.getCurrentTime())}; g.M.play=function(h){this.api.seekTo(ax6(this,this.S),void 0,void 0,void 0,26);this.api.playVideo();h&&this.api.logClick(this.playButton)}; g.M.onExit=function(h){this.api.seekTo(this.Ne,void 0,void 0,void 0,63);this.api.playVideo();h&&this.api.logClick(this.dismissButton)}; g.M.Bq=function(h,t){this.Zx=h;this.G=t;AC(this,this.api.getCurrentTime())}; g.M.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ne=this.api.getCurrentTime(),cI6(this,this.Ne),g.iA(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.X5=this.V(this.element,"wheel",this.CR),this.logVisibility(this.isEnabled))}; g.M.disable=function(){this.isEnabled=!1;this.hide();g.iA(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.X5&&this.W3(this.X5);this.logVisibility(this.isEnabled)}; g.M.reset=function(){this.disable();this.W=[];this.gU=!1}; g.M.logVisibility=function(h){this.api.logVisibility(this.element,h);this.api.logVisibility(this.U,h);this.api.logVisibility(this.dismissButton,h);this.api.logVisibility(this.playButton,h)}; g.M.Gz=function(){for(;this.T.length;){var h=void 0;(h=this.T.pop())==null||h.dispose()}g.I.prototype.Gz.call(this)}; g.F(JIn,g.I);g.F(pSL,g.I);g.F(xYn,g.I);g.F(SU,g.I);SU.prototype.gP=function(h){return h==="PLAY_PROGRESS"?this.Y:h==="LOAD_PROGRESS"?this.C:h==="LIVE_BUFFER"?this.U:this.S};OCp.prototype.update=function(h,t,Y,L){Y=Y===void 0?0:Y;this.width=t;this.W=Y;this.G=t-Y-(L===void 0?0:L);this.position=g.n0(h,Y,Y+this.G);this.S=this.position-Y;this.T=this.S/this.G};g.F(nqp,g.I);g.F(g.BA,g.iR);g.M=g.BA.prototype; g.M.rW=function(){var h=!1,t=this.api.getVideoData();if(!t)return h;this.api.z6("timedMarkerCueRange");Tw1(this);for(var Y=g.b(t.yG),L=Y.next();!L.done;L=Y.next()){L=L.value;var q=void 0,z=(q=this.Y8[L])==null?void 0:q.markerType,V=void 0;q=(V=this.Y8[L])==null?void 0:V.markers;if(!q)break;if(z==="MARKER_TYPE_TIMESTAMPS"){h=g.b(q);for(z=h.next();!z.done;z=h.next()){V=z.value;z=new nqp;var l=void 0;z.title=((l=V.title)==null?void 0:l.simpleText)||"";z.timeRangeStartMillis=Number(V.startMillis);z.G= Number(V.durationMillis);var H=l=void 0;z.onActiveCommand=(H=(l=V.onActive)==null?void 0:l.innertubeCommand)!=null?H:void 0;P7L(this,z)}mYL(this,this.C);h=this.C;z=this.mK;V=[];l=null;for(H=0;Hw&&(l.end=w);w=MAp(w,w+y);V.push(w);l=w;z[w.id]=h[H].onActiveCommand}}this.api.Ji(V);a:{h=g.b(q);for(q=h.next();!q.done;q=h.next())if(q.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){h= !1;break a}h=!0}h&&(this.D9=this.Y8[L]);h=!0}else if(z==="MARKER_TYPE_HEATMAP"){L=this.Y8[L];W=w=z=H=l=V=void 0;if(L&&L.markers){q=(z=(W=L.markersMetadata)==null?void 0:(w=W.heatmapMetadata)==null?void 0:w.minHeightDp)!=null?z:0;z=(V=(H=L.markersMetadata)==null?void 0:(l=H.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?V:60;V=this.G.length;l=null;for(H=0;H=W&&C<=y&&w.push(U)}z>0&&(this.x8.style.height=z+"px");W=this.W[H];y=w;U=q;var d=z,Q=H===0;Q=Q===void 0?!1:Q;EqD(W,d);X=y;C=W.T;Q=Q===void 0?!1:Q;var J=1E3/X.length,e=[];e.push({x:0,y:100});for(var v=0;v0&&(l=w[w.length-1])}g.PA(this)}z=void 0;q=[];if(L=(z=L.markersDecoration)==null?void 0:z.timedMarkerDecorations)for(L=g.b(L),z=L.next();!z.done;z=L.next())z=z.value,H=l=V=void 0,q.push({visibleTimeRangeStartMillis:(V=z.visibleTimeRangeStartMillis)!= null?V:-1,visibleTimeRangeEndMillis:(l=z.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(H=z.decorationTimeMillis)!=null?H:NaN,label:z.label?g.Lc(z.label):""});L=q;this.heatMarkersDecorations=L}}t.ze=this.C;g.iA(this.element,"ytp-timed-markers-enabled",h);return h}; g.M.Bq=function(){g.PA(this);h$(this);mYL(this,this.C);if(this.T){var h=g.m3(this.element).x||0;this.T.Bq(h,this.U)}}; g.M.D_i=function(){var h=this.api.getVideoData();h&&NlD(this,h)}; g.M.onClickCommand=function(h){if(h=g.A(h,Hu)){var t=h.key;h.isVisible&&t&&ilr(this,t)}}; g.M.AiU=function(h){this.api.jM("innertubeCommand",this.mK[h.id])}; g.M.Kn=function(){h$(this);var h=this.api.getCurrentTime();(hthis.clipEnd)&&this.kB()}; g.M.lE=function(h){if(!h.defaultPrevented){var t=!1;switch(h.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);t=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);t=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);t=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);t=!0;break;case 38:this.api.N("enable_key_press_seek_logging")&&qs(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);t=!0;break;case 40:this.api.N("enable_key_press_seek_logging")&&qs(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),t=!0}t&&h.preventDefault()}}; g.M.KH=function(h,t){this.updateVideoData(t,h==="newdata")}; g.M.Kf=function(){this.KH("newdata",this.api.getVideoData())}; g.M.updateVideoData=function(h,t){t=t===void 0?!1:t;var Y=!!h&&h.ra();Y&&(zM(h)||z7L(this)?this.Aa=!1:this.Aa=h.allowLiveDvr,g.iA(this.api.getRootNode(),"ytp-enable-live-buffer",!(h==null||!zM(h))),NlD(this,h));Zlr(this,this.api.B2());if(t){if(Y){t=h.clipEnd;this.clipStart=h.clipStart;this.clipEnd=t;zV(this);for(gJ(this,this.AQ,this.Pq);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.Q4={};var L;(L=this.T)==null||L.reset();wJ(this);g.iA(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Rx(this))}else this.kB();this.Gy()}if(h){var q;L=((q=this.z$)==null?void 0:q.type)==="clips";if(q=!h.isLivePlayback){q=this.api.getVideoData();t=g.Ep(q);Y=ST3(q);var z;q=t!=null||Y!=null&&Y.length>0||((z=q.vp)==null?void 0:z.length)>0}if(q&&!L){z=this.api.getVideoData();L=g.Ep(z);q=!1;if(L==null?0:L.markersMap){q=this.api.getVideoData();var V;q.pA=((V=L.visibleOnLoad)==null?void 0:V.key)||q.pA;V=g.b(L.markersMap);for(L=V.next();!L.done;L=V.next())L=L.value,L.key&&L.value&&(this.Q4[L.key]=L.value, L.value.onChapterRepeat&&(q.BB=L.value.onChapterRepeat));q.pA!=null&&ilr(this,q.pA);q=!0}var l;if(((l=z.vp)==null?void 0:l.length)>0){l=g.wu.getState().entities;V=g.b(z.vp);for(L=V.next();!L.done;L=V.next()){L=L.value;Y=void 0;t=(Y=AY(l,"macroMarkersListEntity",L))==null?void 0:Y.markersList;var H=Y=void 0;if(((Y=t)==null?void 0:Y.markerType)==="MARKER_TYPE_TIMESTAMPS"||((H=t)==null?void 0:H.markerType)==="MARKER_TYPE_HEATMAP")this.Y8[L]=t}q=this.rW()||q}!q&&(l=ST3(z))&&(R1W(this,l),z.D9=this.G,Ixb(this)); lT6(this,null);h.MJ&&this.W.length===0&&(h=h.MJ,l=h.key,h.isVisible&&l&&ilr(this,l))}else fxD(this),Tw1(this)}h$(this)}; g.M.U6=function(h){this.Y&&!g.R(h.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var t;((t=this.T)==null?0:t.isEnabled)&&g.R(h.state,8)&&this.api.pauseVideo();h=this.api.getPresentingPlayerType()===2||!this.api.B2()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.iA(this.Df,"ytp-hide-scrubber-button",h)}; g.M.Hl=function(h){var t=!!this.z$!==!!h,Y=this.z$;this.z$=h;lT6(this,Y);(h==null?void 0:h.type)!=="clips"&&h||(h?(this.updateValue("clipstarticon",ZYc()),this.updateValue("clipendicon",ZYc()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",yGc()),this.updateValue("clipendicon",We$()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),t&&(this.updateVideoData(this.api.getVideoData(), !0),g.PA(this)),zV(this));gJ(this,this.AQ,this.Pq)}; g.M.GDz=function(){this.api.publish("progressBarHoverStart")}; g.M.RyQ=function(h,t,Y){var L=g.m3(this.element),q=DI(this).G,z=Y?Y.getAttribute("data-tooltip"):void 0,V=Y?Y.getAttribute("data-position"):void 0,l=Y?Y.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;V&&(h=dP(this.S,Number(Y.getAttribute("data-position")),0)*q+g.m3(this.progressBar).x);this.MD.x=h-L.x;this.MD.y=t-L.y;h=DI(this);Y=Le(this,h);t=0;var H;if((H=this.api.getVideoData())==null?0:zM(H))(H=this.api.getProgressState().seekableEnd)&&Y>H&&(Y=H,h.position=dP(this.S,H)*DI(this).G),t=this.S.T; z7L(this)&&(t=this.S.T);H=z||g.XA(this.Aa?Y-this.S.G:Y-t);t=h.position+this.uM;Y-=this.api.O3();var w;if((w=this.T)==null||!w.isEnabled)if(this.api.xv()){if(this.G.length>1){w=Ye(this,this.MD.x,!0);if(!this.z$)for(L=0;L1)for(L=0;L0)for(w=this.MD.x,L=g.b(this.C),q=L.next();!q.done;q=L.next())q=q.value,V=mZ(this,q.timeRangeStartMillis/ (this.S.G*1E3),DI(this)),g.iA(q.element,"ytp-timed-marker-hover",V<=w&&V+6>=w);L=this.tooltip.scale;w=this.api.N("delhi_modern_web_player")?67:45;l=(isNaN(l)?0:l)-w*L;this.api.N("web_key_moments_markers")?this.D9?(w=XPr(this.C,Y*1E3),w=w!=null?this.C[w].title:""):(w=yA(this.G,Y*1E3),w=this.G[w].title):(w=yA(this.G,Y*1E3),w=this.G[w].title);w||(l+=16*L);this.tooltip.scale===.6&&(g.zH(this.api.J())?(l=this.api.Bm().getPlayerSize().height-225,L=this.api.N("delhi_modern_web_player")?70:110,l=w?l+L:l+ L+16):l=w?110:126);L=yA(this.G,Y*1E3);this.gU=Hlc(this,Y,L)?L:Hlc(this,Y,L+1)?L+1:-1;g.iA(this.api.getRootNode(),"ytp-progress-bar-snap",this.gU!==-1&&this.G.length>1);L=!1;q=g.b(this.heatMarkersDecorations);for(V=q.next();!V.done;V=q.next()){V=V.value;var W=Y*1E3;W>=V.visibleTimeRangeStartMillis&&W<=V.visibleTimeRangeEndMillis&&(w=V.label,H=g.XA(V.decorationTimeMillis/1E3),L=!0)}this.XI!==L&&(this.XI=L,this.api.logVisibility(this.sX,this.XI));g.iA(this.api.getRootNode(),"ytp-progress-bar-decoration", L);L=160*this.tooltip.scale*2;q=w.length*(this.L?8.55:5.7);q=q<=L?q:L;V=q<160*this.tooltip.scale;L=3;!V&&q/2>h.position&&(L=1);!V&&q/2>this.U-h.position&&(L=2);this.api.J().C&&(l-=10);this.W.length&&this.W[0].ra&&(l-=14*(this.L?2:1),this.Ne||(this.Ne=!0,this.api.logVisibility(this.x8,this.Ne)));var y;if(Rx(this)&&(((y=this.T)==null?0:y.isEnabled)||this.yG>0)){var X;l-=((X=this.T)==null?0:X.isEnabled)?Ns(this):this.yG}y=void 0;Rx(this)&&!this.api.N("web_player_hide_fine_scrubbing_edu")&&(y="Pull up for precise seeking", this.Zx||(this.Zx=!0,this.api.logVisibility(this.UX,this.Zx)));this.tooltip.E7(t,Y,H,!!z,l,w,L,y)}else this.tooltip.E7(t,Y,H,!!z,l);g.mS(this.api.getRootNode(),"ytp-progress-bar-hover");qNW(this)}; g.M.uZz=function(){this.Gy();g.hp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ne&&(this.Ne=!1,this.api.logVisibility(this.x8,this.Ne));this.Zx&&(this.Zx=!1,this.api.logVisibility(this.UX,this.Zx));this.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.M.oeb=function(h,t){var Y=g.m3(this.element);this.fn=h-Y.x;Rx(this)&&this.T&&(this.T.gU?AC(this.T,this.api.getCurrentTime()):vqL(this.T),this.T.show(),g.iA(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.T.isEnabled));this.Y1&&(this.Y1.dispose(),this.Y1=null);this.Ty=t;this.Cr=this.api.getCurrentTime();this.G.length>1&&this.gU!==-1?this.api.seekTo(this.G[this.gU].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Le(this,DI(this)),!1,void 0,void 0,7);g.mS(this.element,"ytp-drag");(this.fC= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.M.TzU=function(){if(Rx(this)&&this.T){var h=Ns(this);this.yG>=h*.5?(this.T.enable(),AC(this.T,this.api.getCurrentTime()),jN6(this,h)):wJ(this)}if(g.R(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var t;if((t=this.T)==null?0:t.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.gU!==-1)this.api.N("html5_enable_progress_bar_slide_seek_logging")&&qs(this,this.Cr,this.G[this.gU].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.gU].startTime/1E3,void 0,void 0,void 0,7);else{h=Le(this,DI(this));this.api.N("html5_enable_progress_bar_slide_seek_logging")&&qs(this,this.Cr,h,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(h,void 0,void 0,void 0,7);t=g.b(this.heatMarkersDecorations);for(var Y=t.next();!Y.done;Y=t.next())Y=Y.value,h*1E3>=Y.visibleTimeRangeStartMillis&&h*1E3<=Y.visibleTimeRangeEndMillis&& this.api.logClick(this.sX)}g.hp(this.element,"ytp-drag");this.Wm&&(this.R0.src=this.Wm);this.fC&&!g.R(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.M.SYi=function(h,t){var Y=this,L=DI(this),q=Le(this,L);this.api.Bm().P0||(L.position>this.fn+2?this.Im&&(this.R0.src=this.Im):L.position1);this.hC(h&&this.K.Bm().getPlayerSize().width>=400);this.K.logVisibility(this.element,this.nZ);var t=1;h&&this.isActive()&&(t=2);if(this.G!==t){this.G=t;h=this.K.N("delhi_modern_web_player_icons");switch(t){case 1:this.updateValue("icon",h?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",AJ:!0,j:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", h?{Z:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",j:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.HYi())}g.iA(this.element,"ytp-remote-button-active",this.isActive())}}; Wr.prototype.T=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var h=this.Rm,t=this.element;if(h.KI())h.KZ();else{h.initialize();a:{var Y=g.b(h.MU.items);for(var L=Y.next();!L.done;L=Y.next())if(L=L.value,L.priority===1){Y=L;break a}Y=null}Y&&(Y.open(),h.rz(t));h.rz(t)}}this.K.logClick(this.element)};g.F(y$,g.I);y$.prototype.G=function(h){var t=this.K.J(),Y=400;this.K.N("web_player_small_hbp_settings_menu")&&t.U?Y=300:t.C&&(Y=200);h=this.T&&h.width>=Y;this.hC(h);this.K.N("embeds_use_parent_visibility_in_ve_logging")?this.K.logVisibility(this.element,h&&this.X):this.K.logVisibility(this.element,h)}; y$.prototype.S=function(){if(this.Rm.nZ)this.Rm.KZ();else{var h=g.Jb(this.K.T$());h&&!h.loaded&&(h.LQ("tracklist",{includeAsr:!0}).length||h.load());this.K.logClick(this.element);this.Rm.rz(this.element)}}; y$.prototype.updateBadge=function(){var h=this.K.isHdr(),t=this.K.getPresentingPlayerType(),Y=t!==2&&t!==3,L=g.EY(this.K),q=Y&&!!g.xl(this.K.T$());t=q&&L.displayMode===1;L=q&&L.displayMode===2;Y=(q=t||L)||!Y?null:this.K.getPlaybackQuality();g.iA(this.element,"ytp-hdr-quality-badge",h);g.iA(this.element,"ytp-hd-quality-badge",!h&&(Y==="hd1080"||Y==="hd1440"));g.iA(this.element,"ytp-4k-quality-badge",!h&&Y==="hd2160");g.iA(this.element,"ytp-5k-quality-badge",!h&&Y==="hd2880");g.iA(this.element,"ytp-8k-quality-badge", !h&&Y==="highres");g.iA(this.element,"ytp-3d-badge-grey",!h&&q&&t);g.iA(this.element,"ytp-3d-badge",!h&&q&&L)};g.F(X_,NN);X_.prototype.isLoaded=function(){var h=g.E3(this.K.T$());return h!==void 0&&h.loaded}; X_.prototype.Hm=function(){g.E3(this.K.T$())!==void 0&&this.K.getPresentingPlayerType()!==3?this.G||(this.Rm.Qb(this),this.G=!0):this.G&&(this.Rm.r0(this),this.G=!1);l4(this,this.isLoaded())}; X_.prototype.onSelect=function(h){this.isLoaded();h?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module");this.K.publish("annotationvisibility",h)}; X_.prototype.Gz=function(){this.G&&this.Rm.r0(this);NN.prototype.Gz.call(this)};g.F(Ud,g.aq);Ud.prototype.Hm=function(){var h=this.K.getAvailableAudioTracks();h.length>1?(this.AS(g.CQ(h,this.G)),this.tracks=g.P1(h,this.G,this),this.countLabel.I4(h.length?" ("+h.length+")":""),this.publish("size-change"),this.hP(this.G(this.K.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Ud.prototype.AP=function(h){g.aq.prototype.AP.call(this,h);this.K.setAudioTrack(this.tracks[h]);this.Rm.LL()}; Ud.prototype.G=function(h){return h.toString()};g.F(Ce,NN); Ce.prototype.T=function(){var h=this.K.getPresentingPlayerType();if(h!==2&&h!==3&&g.OY(this.K))this.G||(this.Rm.Qb(this),this.G=!0,this.S.push(this.V(this.K,"videodatachange",this.T)),this.S.push(this.V(this.K,"videoplayerreset",this.T)),this.S.push(this.V(this.K,"onPlaylistUpdate",this.T)),this.S.push(this.V(this.K,"autonavchange",this.W)),h=this.K.getVideoData(),this.W(h.autonavState),this.K.logVisibility(this.element,this.G));else if(this.G){this.Rm.r0(this);this.G=!1;h=g.b(this.S);for(var t=h.next();!t.done;t= h.next())this.W3(t.value)}}; Ce.prototype.W=function(h){l4(this,h!==1)}; Ce.prototype.onSelect=function(h){this.K.JR(h?2:1);this.G&&(this.K.logVisibility(this.element,this.G),this.K.logClick(this.element))}; Ce.prototype.Gz=function(){this.G&&this.Rm.r0(this);NN.prototype.Gz.call(this)};g.F(ogb,g.mM);ogb.prototype.onClick=function(h){h.preventDefault();var t,Y;(t=g.jH(this.K))==null||(Y=t.Q7())==null||Y.KZ();var L,q;(L=g.jH(this.K))==null||(q=L.wc())==null||q.rz(h.target)};g.F(d5L,g.aq);g.M=d5L.prototype; g.M.J5=function(){var h=this.K.getPresentingPlayerType();if(h!==2&&h!==3){this.R0=this.K.DP();var t=this.K.getAvailableQualityLevels();if(this.G){this.W={};h=g.UY(this.K,"getAvailableQualityData",[]);h=g.b(h);for(var Y=h.next();!Y.done;Y=h.next())Y=Y.value,this.W[Y.qualityLabel]=Y;h=Object.keys(this.W);t[t.length-1]==="auto"&&h.push("auto");this.Wm=new Set(t)}else if(this.U){Y=g.UY(this.K,"getAvailableQualityData",[]);h=[];Y=g.b(Y);for(var L=Y.next();!L.done;L=Y.next())L=L.value,this.L[L.quality]= L,L.quality&&h.push(L.quality);t[t.length-1]==="auto"&&h.push("auto")}else h=t;g.wG$(this.K)&&this.K.lF()&&h.unshift("missing-qualities");t=this.K.app.k8();Y=t.getVideoData();if(!Y.T||!Y.T.video||Y.T.video.qualityOrdinal<1080||Y.Od)t=!1;else{L=/^qsa/.test(Y.clientPlaybackNonce);var q="r";Y.T.id.indexOf(";")>=0&&(L=/^[a-p]/.test(Y.clientPlaybackNonce),q="x");L?(t.Pm("iqss",{trigger:q},!0),t=!0):t=!1}t&&h.unshift("inline-survey");this.AS(h);t=this.K.getVideoData().cotn?!0:!1;Y=this.x8.zZ();Y=!g.zH(this.K.J())|| !(t===void 0?0:t)||!(Y===void 0||Y);t=this.T;Y=Y===void 0?!1:Y;t.kG&&g.iA(t.Tz("ytp-panel-footer"),"ytp-panel-hide-footer",Y===void 0?!1:Y);if(h.length){this.O5();this.enable(!0);return}}this.enable(!1)}; g.M.O5=function(){if(this.G){var h=this.K.getPreferredQuality();this.Wm.has(h)&&(this.C=this.K.getPlaybackQuality(),this.AQ=this.K.getPlaybackQualityLabel(),h==="auto"?(this.hP(h),this.I4(this.aJ(h))):this.hP(this.AQ))}else h=this.K.getPreferredQuality(),this.options[h]&&(this.C=this.K.getPlaybackQuality(),this.hP(h),h==="auto"&&this.I4(this.aJ(h)))}; g.M.AP=function(h){if(h!=="missing-qualities"){g.aq.prototype.AP.call(this,h);var t=this.G?this.W[h]:this.L[h];var Y=t==null?void 0:t.quality,L=t==null?void 0:t.formatId,q=t==null?void 0:t.paygatedQualityDetails;t=q==null?void 0:q.endpoint;if(q){var z;q=(z=this.options[h])==null?void 0:z.element;this.K.logClick(q)}if(this.G){var V,l;if((V=g.A(t,g.yav))==null?0:(l=V.popup)==null?0:l.notificationActionRenderer)this.K.jM("innertubeCommand",t);else if(t){this.K.jM("innertubeCommand",t);return}L?this.K.setPlaybackQuality(Y, L):this.K.setPlaybackQuality(Y)}else{if(this.U){var H,w;if((H=g.A(t,g.yav))==null?0:(w=H.popup)==null?0:w.notificationActionRenderer)this.K.jM("innertubeCommand",t);else if(t){this.K.jM("innertubeCommand",t);return}}this.K.setPlaybackQuality(h)}this.Rm.KZ();this.J5()}}; g.M.open=function(){for(var h=g.b(Object.values(this.options)),t=h.next();!t.done;t=h.next()){t=t.value;var Y=void 0;this.K.hasVe((Y=t)==null?void 0:Y.element)&&(Y=void 0,this.K.logVisibility((Y=t)==null?void 0:Y.element,!0))}g.aq.prototype.open.call(this);this.K.logClick(this.element)}; g.M.qK=function(h,t,Y){var L=this;if(h==="missing-qualities")return new g.mM({Z:"a",Ei:["ytp-menuitem"],j:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.J().L,tabindex:"0",role:"menuitemradio"},B:[{Z:"div",Ei:["ytp-menuitem-label"],o0:"{{label}}"}]},t,this.aJ(h));if(h!=="inline-survey"){var q,z=(q=this.G?this.W[h]:this.L[h])==null?void 0:q.paygatedQualityDetails;q=z==null?void 0:z.veType;z=z==null?void 0:z.trackingParams;t=g.aq.prototype.qK.call(this,h,t,Y);z?(this.K.createServerVe(t.element, this,!0),this.K.setTrackingParams(t.element,z)):q&&this.K.createClientVe(t.element,this,q,!0);return t}h=[{Z:"span",o0:"Looks good?"}];Y=g.b([!0,!1]);z=Y.next();for(q={};!z.done;q={Ca:void 0},z=Y.next())q.Ca=z.value,z=new g.I({Z:"span",D:"ytp-menuitem-inline-survey-response",B:[q.Ca?jzW():UML()],j:{tabindex:"0",role:"button"}}),z.listen("click",function(V){return function(){var l=L.K.app.k8();l.Pm("iqsr",{tu:V.Ca});l.getVideoData().Od=!0;L.Rm.KZ();L.J5()}}(q)),h.push(z); return new g.mM({Z:"div",D:"ytp-menuitem",j:{"aria-disabled":"true"},B:[{Z:"div",Ei:["ytp-menuitem-label"],B:h}]},t)}; g.M.aJ=function(h,t){t=t===void 0?!1:t;if(h==="missing-qualities")return{Z:"div",o0:"Missing options?"};if(h==="inline-survey")return"";var Y=this.U||this.G?[r13(this,h,t,!1)]:[QNc(this,h)];var L=this.K.getPreferredQuality();t||L!=="auto"||h!=="auto"||(Y.push(" "),this.G?Y.push(r13(this,this.AQ,t,!0,["ytp-menu-label-secondary"])):this.U?Y.push(r13(this,this.C,t,!0,["ytp-menu-label-secondary"])):Y.push(QNc(this,this.C,["ytp-menu-label-secondary"])));return{Z:"div",B:Y}};g.F(Ms,Eq);Ms.prototype.S=function(){Eq.prototype.S.call(this);this.L&&c1c(this)}; Ms.prototype.Wm=function(){this.AQ()}; Ms.prototype.R0=function(){this.K.setPlaybackRate(this.G,!0)}; Ms.prototype.C=function(h){Eq.prototype.C.call(this,h);this.AQ();c1c(this);h.preventDefault()};g.F(F_,g.I);g.M=F_.prototype;g.M.init=function(){this.Sr(this.G);this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.S)}; g.M.OR=function(h){if(!h.defaultPrevented){switch(h.keyCode){case 37:case 40:var t=-this.Y;break;case 39:case 38:t=this.Y;break;default:return}this.Sr(this.G+t);h.preventDefault()}}; g.M.m0=function(h){var t=this.G;t+=(h.deltaX||-h.deltaY)<0?-this.L:this.L;this.Sr(t);h.preventDefault()}; g.M.H$=function(h){h=(h-g.m3(this.W).x)/this.AQ*this.range+this.T;this.Sr(h)}; g.M.Sr=function(h,t){t=t===void 0?"":t;h=g.n0(h,this.T,this.S);t===""&&(t=h.toString());this.updateValue("valuenow",h);this.updateValue("valuetext",t);this.x8.style.left=(h-this.T)/this.range*(this.AQ-this.gU)+"px";this.G=h}; g.M.focus=function(){this.X5.focus()};g.F(sd,F_);sd.prototype.R0=function(){this.K.setPlaybackRate(this.G,!0)}; sd.prototype.Sr=function(h){F_.prototype.Sr.call(this,h,e7n(this,h).toString());this.U&&(unL(this),this.Wm())}; sd.prototype.updateValues=function(){var h=this.K.getPlaybackRate();e7n(this,this.G)!==h&&(this.Sr(h),unL(this))};g.F(J1W,g.iR);J1W.prototype.focus=function(){this.G.focus()};g.F(pwc,dY);g.F(vgL,g.aq);g.M=vgL.prototype;g.M.aJ=function(h){return h==="1"?"Normal":h.toLocaleString()}; g.M.Hm=function(){var h,t=(h=this.K.getVideoData())==null?void 0:h.JJ();h=this.K.getPresentingPlayerType(t);this.enable(h!==2&&h!==3);x53(this)}; g.M.AS=function(h){g.aq.prototype.AS.call(this,h);this.C&&this.C.T.focus()}; g.M.JU=function(h){g.aq.prototype.JU.call(this,h);h?(this.AQ=this.V(this.K,"onPlaybackRateChange",this.onPlaybackRateChange),x53(this),Kvi(this,this.K.getPlaybackRate())):(this.W3(this.AQ),this.AQ=null)}; g.M.onPlaybackRateChange=function(h){var t=this.K.getPlaybackRate();!this.W&&this.L.includes(t)||aTb(this,t);Kvi(this,h)}; g.M.qK=function(h,t,Y){return h===this.G&&Egn(this.K)?g.aq.prototype.qK.call(this,h,t,Y,{Z:"div",D:"ytp-speed-slider-menu-footer",B:[this.C]}):g.aq.prototype.qK.call(this,h,t,Y)}; g.M.AP=function(h){g.aq.prototype.AP.call(this,h);h===this.G?this.K.setPlaybackRate(this.U,!0):this.K.setPlaybackRate(Number(h),!0);Egn(this.K)&&h===this.G||this.Rm.LL()}; g.M.Ul=function(h){var t=h===this.G;this.W=!1;t&&jX(this.K)&&!Egn(this.K)?(h=new pwc(this.K),g.cg(this.Rm,h)):g.aq.prototype.Ul.call(this,h)};g.F(Olp,g.aq);g.M=Olp.prototype;g.M.hP=function(h){g.aq.prototype.hP.call(this,h)}; g.M.Vr=function(h){return h.option.toString()}; g.M.getOption=function(h){return this.settings[h]}; g.M.aJ=function(h){return this.getOption(h).text||""}; g.M.AP=function(h){g.aq.prototype.AP.call(this,h);this.publish("settingChange",this.setting,this.settings[h].option)};g.F(bK,g.GG);bK.prototype.KL=function(h){for(var t=g.b(Object.keys(h)),Y=t.next();!Y.done;Y=t.next()){var L=Y.value;if(Y=this.Wr[L]){var q=h[L].toString();L=!!h[L+"Override"];Y.options[q]&&(Y.hP(q),Y.W.element.setAttribute("aria-checked",String(!L)),Y.G.element.setAttribute("aria-checked",String(L)))}}}; bK.prototype.md=function(h,t){this.publish("settingChange",h,t)};g.F(o4,g.aq);o4.prototype.G=function(h){return h.languageCode}; o4.prototype.aJ=function(h){return this.languages[h].languageName||""}; o4.prototype.AP=function(h){this.publish("select",h);this.K.logClick(this.element);g.uO(this.Rm)};g.F($53,g.aq);g.M=$53.prototype;g.M.jg=function(h){return g.WZ(h)?"__off__":h.displayName}; g.M.aJ=function(h){return h==="__off__"?"Off":h==="__translate__"?"Auto-translate":h==="__contribute__"?"Add subtitles/CC":h==="__correction__"?"Suggest caption corrections":(h==="__off__"?{}:this.tracks[h]).displayName}; g.M.AP=function(h){if(h==="__translate__")this.G.open();else if(h==="__contribute__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var t=g.PG(this.K.J(),this.K.getVideoData());g.Ks(t)}else if(h==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var Y=Tlr(this);dJ(this,Y);g.aq.prototype.AP.call(this,this.jg(Y));var L,q;Y=(t=this.K.getVideoData().getPlayerResponse())==null?void 0:(L=t.captions)==null?void 0:(q=L.playerCaptionsTracklistRenderer)== null?void 0:q.openTranscriptCommand;this.K.jM("innertubeCommand",Y);this.Rm.LL();this.W&&this.K.logClick(this.W)}else{if(h==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();t=Tlr(this);dJ(this,t);g.aq.prototype.AP.call(this,this.jg(t));var z,V;t=(Y=this.K.getVideoData().getPlayerResponse())==null?void 0:(z=Y.captions)==null?void 0:(V=z.playerCaptionsTracklistRenderer)==null?void 0:V.openTranscriptCommand;this.K.jM("innertubeCommand",t)}else this.K.logClick(this.element), dJ(this,h==="__off__"?{}:this.tracks[h]),g.aq.prototype.AP.call(this,h);this.Rm.LL()}}; g.M.Hm=function(){var h=this.K.getOptions();h=h&&h.indexOf("captions")!==-1;var t=this.K.getVideoData(),Y=t&&t.u9,L,q=!((L=this.K.getVideoData())==null||!g.g8(L));L={};if(h||Y){var z;if(h){var V=this.K.getOption("captions","track");L=this.K.getOption("captions","tracklist",{includeAsr:!0});var l=q?[]:this.K.getOption("captions","translationLanguages");this.tracks=g.P1(L,this.jg,this);q=g.CQ(L,this.jg);var H,w;Tlr(this)&&((z=t.getPlayerResponse())==null?0:(H=z.captions)==null?0:(w=H.playerCaptionsTracklistRenderer)== null?0:w.openTranscriptCommand)&&q.push("__correction__");if(l.length&&!g.WZ(V)){if((z=V.translationLanguage)&&z.languageName){var W=z.languageName;z=l.findIndex(function(y){return y.languageName===W}); uDi(l,z)}ngD(this.G,l);q.push("__translate__")}z=this.jg(V)}else this.tracks={},q=[],z="__off__";q.unshift("__off__");this.tracks.__off__={};Y&&q.unshift("__contribute__");this.tracks[z]||(this.tracks[z]=V,q.push(z));this.AS(q);this.hP(z);V&&V.translationLanguage?this.G.hP(this.G.G(V.translationLanguage)):wrL(this.G);h&&this.U.KL(this.K.getSubtitlesUserSettings());this.countLabel.I4(L&&L.length?" ("+L.length+")":"");this.publish("size-change");this.K.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.M.Va=function(h){var t=this.K.getOption("captions","track");t=g.Uw(t);t.translationLanguage=this.G.languages[h];dJ(this,t)}; g.M.md=function(h,t){if(h==="reset")this.K.resetSubtitlesUserSettings();else{var Y={};Y[h]=t;this.K.updateSubtitlesUserSettings(Y)}fTL(this,!0);this.C.start();this.U.KL(this.K.getSubtitlesUserSettings())}; g.M.ini=function(h){h||g.TU(this.C)}; g.M.Gz=function(){g.TU(this.C);g.aq.prototype.Gz.call(this)}; g.M.open=function(){g.aq.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.K.createClientVe(this.W,this,167341),this.K.logVisibility(this.W,!0))};g.F(A1$,g.rY);g.M=A1$.prototype; g.M.initialize=function(){if(!this.isInitialized){var h=this.K.J();this.isInitialized=!0;try{this.sO=new d5L(this.K,this)}catch(Y){g.bc(Error("QualityMenuItem creation failed"))}g.f(this,this.sO);var t=new $53(this.K,this);g.f(this,t);h.S||(t=new X_(this.K,this),g.f(this,t));h.enableSpeedOptions&&(t=new vgL(this.K,this),g.f(this,t));(g.kk(h)||h.U)&&(h.T||h.lP)&&(t=new ogb(this.K,this),g.f(this,t));h.R7&&!h.N("web_player_move_autonav_toggle")&&(h=new Ce(this.K,this),g.f(this,h));h=new Ud(this.K,this); g.f(this,h);this.K.publish("settingsMenuInitialized");blW(this.settingsButton,this.MU.YM())}}; g.M.Qb=function(h){this.initialize();this.MU.Qb(h);blW(this.settingsButton,this.MU.YM())}; g.M.r0=function(h){this.nZ&&this.MU.YM()<=1&&this.hide();this.MU.r0(h);blW(this.settingsButton,this.MU.YM())}; g.M.rz=function(h){this.initialize();this.MU.YM()>0&&g.rY.prototype.rz.call(this,h)}; g.M.KZ=function(){this.SB?this.SB=!1:g.rY.prototype.KZ.call(this)}; g.M.show=function(){g.rY.prototype.show.call(this);g.mS(this.K.getRootNode(),"ytp-settings-shown")}; g.M.hide=function(){g.rY.prototype.hide.call(this);g.hp(this.K.getRootNode(),"ytp-settings-shown")}; g.M.vx=function(h){this.K.logVisibility(this.element,h);this.K.publish("settingsMenuVisibilityChanged",h)};g.F(R7L,g.I);g.M=R7L.prototype;g.M.onClick=function(){if(GV(this)&&(this.K.toggleSubtitles(),this.K.logClick(this.element),!this.isEnabled())){var h=!1,t=g.pY(g.JG(),65);g.zH(this.K.J())&&t!=null&&(h=!t);h&&this.K.J().N("web_player_nitrate_promo_tooltip")&&this.K.publish("showpromotooltip",this.element)}}; g.M.x6i=function(h){var t,Y;(t=g.jH(this.K))==null||(Y=t.Q7())==null||Y.rz(h)}; g.M.isEnabled=function(){var h=this.K.getOption("captions","track");return!(!h||!h.displayName)}; g.M.Hm=function(){var h=GV(this),t=300;this.K.J().C&&(t=480);this.K.N("delhi_modern_web_player_icons")&&this.updateValue("icon",ITL(this));if(this.K.J().U){this.updateValue("title",g.u5(this.K,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var Y=h}else{if(h)(Y=this.Tz("ytp-subtitles-button-icon"))==null||Y.setAttribute("fill-opacity","1"),this.updateValue("title",g.u5(this.K,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"}); else{if(this.K.N("delhi_modern_web_player_icons")){var L;(L=this.Tz("ytp-subtitles-button-icon"))==null||L.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var q;(q=this.Tz("ytp-subtitles-button-icon"))==null||q.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}Y=!0}this.tooltip.HM();Y=Y&&this.K.Bm().getPlayerSize().width>=t;this.hC(Y);this.K.N("embeds_use_parent_visibility_in_ve_logging")? this.K.logVisibility(this.element,Y&&this.X):this.K.logVisibility(this.element,Y);h?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.M.Y4=function(h){g.I.prototype.Y4.call(this,h);this.K.J().N("embeds_use_parent_visibility_in_ve_logging")&&this.K.logVisibility(this.element,this.nZ&&h)};g.F(g.Q$,g.I);g.M=g.Q$.prototype;g.M.canShowCountdown=function(){return!cr(this)&&!rJ(this)}; g.M.Kn=function(){var h=this.api.Bm().getPlayerSize().width,t=this.L;this.api.J().C&&(t=400);t=h>=t&&(!rJ(this)||!g.R(this.api.getPlayerStateObject(),64));this.hC(t);g.iA(this.element,"ytp-time-display-allow-autohide",t&&h<400);h=this.api.getProgressState();if(t){var Y=this.api.getPresentingPlayerType();t=this.api.getCurrentTime(Y,!1);this.T&&(t-=h.airingStart);cr(this)&&(t-=this.z$.startTimeMs/1E3);this.canShowCountdown()&&this.S&&(t-=this.api.getDuration(Y,!1));var L=g.XA(t);this.W!==L&&(this.updateValue("currenttime", L),this.W=L);Y=cr(this)?(this.z$.endTimeMs-this.z$.startTimeMs)/1E3:this.api.getDuration(Y,!1);L=g.XA(Y);this.U!==L&&(this.updateValue("duration",L),this.U=L,t&&(t=g.BV("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.XA(t,!0),DURATION:g.XA(Y,!0)}),this.updateValue("timeDisplayAriaLabel",t)))}Bl$(this,h.isAtLiveHead);PUr(this,this.api.getLoopRange())}; g.M.onLoopRangeChange=function(h){var t=this.z$!==h;this.z$=h;t&&(this.Kn(),m56(this))}; g.M.g05=function(){this.api.setLoopRange(null)}; g.M.JQx=function(){this.S=!this.S;this.Kn()}; g.M.onVideoDataChange=function(h,t,Y){this.updateVideoData((this.api.J().N("enable_topsoil_wta_for_halftime")||this.api.J().N("enable_topsoil_wta_for_halftime_live_infra"))&&Y===2?this.api.getVideoData(1):t);this.Kn();m56(this)}; g.M.updateVideoData=function(h){this.b1=h.isLivePlayback&&!h.tQ;this.T=zM(h);this.isPremiere=h.isPremiere;g.iA(this.element,"ytp-live",rJ(this));this.api.N("delhi_modern_web_player")&&this.Tz("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.M.onClick=function(h){h.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.M.Gz=function(){this.G&&this.G();g.I.prototype.Gz.call(this)};g.F(hF6,g.I);g.M=hF6.prototype;g.M.l3=function(){var h=this.api.cM();this.S!==h&&(this.S=h,D5L(this,this.api.getVolume(),this.api.isMuted()))}; g.M.yr=function(h){this.hC(h.width>=350)}; g.M.v$=function(h){if(!h.defaultPrevented){var t=h.keyCode,Y=null;t===37?Y=this.volume-5:t===39?Y=this.volume+5:t===36?Y=0:t===35&&(Y=100);Y!==null&&(Y=g.n0(Y,0,100),Y===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(Y)),h.preventDefault())}}; g.M.rT=function(h){var t=h.deltaX||-h.deltaY;h.deltaMode?this.api.setVolume(this.volume+(t<0?-10:10)):this.api.setVolume(this.volume+g.n0(t/10,-10,10));h.preventDefault()}; g.M.w3e=function(){uK(this,this.G,!0,this.T,this.api.U0());this.L=this.volume;this.api.isMuted()&&this.api.unMute()}; g.M.ya=function(h){var t=this.S?78:52,Y=this.S?18:12;h-=g.m3(this.Y).x;this.api.setVolume(g.n0((h-Y/2)/(t-Y),0,1)*100)}; g.M.s4b=function(){uK(this,this.G,!1,this.T,this.api.U0());this.volume===0&&(this.api.mute(),this.api.setVolume(this.L))}; g.M.onVolumeChange=function(h){D5L(this,h.volume,h.muted)}; g.M.wX=function(){uK(this,this.G,this.isDragging,this.T,this.api.U0())}; g.M.Gz=function(){g.I.prototype.Gz.call(this);g.hp(this.C,"ytp-volume-slider-active")};g.F(eX,g.I); eX.prototype.onVideoDataChange=function(){var h=this.api.J();this.Bq();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).Ye;this.hC(this.visible);this.api.logVisibility(this.element,this.visible&&this.X);if(this.visible){var t=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",t)}h.S&&(this.G&&(this.W3(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.mS(this.element,"no-link")); t=this.api.J();h=this.api.getVideoData();var Y="";t.S||(t=g.iC(t),t.indexOf("www.")===0&&(t=t.substring(4)),Y=g.VE(h)?"Watch on YouTube Music":t==="youtube.com"?"Watch on YouTube":g.BV("Watch on $WEBSITE",{WEBSITE:t}));this.updateValue("title",Y)}; eX.prototype.onClick=function(h){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var t=this.api.J(),Y=this.api.getVideoUrl(!g.U6(h),!1,!0,!0);if(g.kk(t)){var L={};g.kk(t)&&g.UY(this.api,"addEmbedsConversionTrackingParams",[L]);Y=g.Xz(Y,L)}g.wR(Y,this.api,h);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; eX.prototype.Bq=function(){var h={Z:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},B:[{Z:"path",AJ:!0,D:"ytp-svg-fill",j:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, t=28666,Y=this.api.getVideoData();this.api.isEmbedsShortsMode()?h={Z:"svg",j:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},B:[{Z:"path",j:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.VE(Y)&&(h={Z:"svg",j:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},B:[{Z:"path",j:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{Z:"path",j:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{Z:"path",j:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{Z:"path",j:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Z:"path",j:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{Z:"path",j:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{Z:"path",j:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{Z:"path",j:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{Z:"path",j:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{Z:"path",j:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{Z:"path",j:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{Z:"path",j:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},t=216163);g.VE(Y)?g.mS(this.element,"ytp-youtube-music-button"):g.hp(this.element,"ytp-youtube-music-button");h.j=Object.assign({},h.j,{"aria-hidden":"true"});this.updateValue("logoSvg",h);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,t,!0)}; eX.prototype.Y4=function(h){g.I.prototype.Y4.call(this,h);this.api.logVisibility(this.element,this.visible&&h)};g.F(ghW,g.UF);g.M=ghW.prototype;g.M.O9=function(){if(this.K.N("web_player_max_seekable_on_ended")||!g.R(this.K.getPlayerStateObject(),2))this.progressBar.Kn(),this.X5.Kn()}; g.M.Yd=function(){this.mp();this.eQ.T?this.O9():this.progressBar.Gy()}; g.M.FY=function(){this.O9();this.L.start()}; g.M.mp=function(){var h;if(h=!this.K.J().T){h=this.progressBar;var t=2*g.qD()*h.U,Y=h.S;h=(Y.G-Y.T)*1E3/h.api.getPlaybackRate()/t<300}h=h&&this.K.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;t=!h;this.eQ.T||(h=t=!1);t?this.R0||(this.R0=this.V(this.K,"progresssync",this.O9)):this.R0&&(this.W3(this.R0),this.R0=null);h?this.L.isActive()||this.L.start():this.L.stop()}; g.M.Bq=function(){var h=this.K.cM(),t=this.K.Bm().getPlayerSize(),Y=this.K.Bm().P0,L=LsD(this),q=qlD(this),z=Math.max(t.width-L*2,100);if(this.Pq!==t.width||this.MD!==h||this.K.N("web_player_rtr_ctrls")&&this.ov!==Y)this.Pq=t.width,this.MD=h,this.ov=Y,this.T.element.style.width=q+"px",this.T.element.style.left=L+"px",g.Fvi(this.progressBar,L,q,h),this.K.OX().vl=q;Y=this.W;z=Math.min(570*(h?1.5:1),z);h=Math.min(413*(h?1.5:1),Math.round((t.height-zFr(this))*.82));Y.maxWidth=z;Y.maxHeight=h;Y.iX();this.mp(); this.K.J().N("html5_player_dynamic_bottom_gradient")&&qTL(this.tQ,t.height)}; g.M.onVideoDataChange=function(){var h=this.K.getVideoData();this.Y8.style.background=h.Ye?h.yU:"";this.x8&&Wc3(this.x8,h.showSeekingControls);this.AQ&&Wc3(this.AQ,h.showSeekingControls)}; g.M.gP=function(){return this.T.element};g.F(VVD,oq);g.M=VVD.prototype;g.M.mP=function(h){h.target!==this.dismissButton.element&&(this.onClickCommand&&this.K.jM("innertubeCommand",this.onClickCommand),this.fS())}; g.M.fS=function(){this.enabled=!1;this.L.hide()}; g.M.onVideoDataChange=function(h,t){h==="dataloaded"&&N4D(this);h=[];var Y,L,q,z;if(t=(z=g.A((Y=t.getWatchNextResponse())==null?void 0:(L=Y.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:q.suggestedActionsRenderer,fj8))==null?void 0:z.suggestedActions)for(Y=g.b(t),L=Y.next();!L.done;L=Y.next())(L=g.A(L.value,$rP))&&g.A(L.trigger,n20)&&h.push(L);if(h.length!==0){Y=[];h=g.b(h);for(L=h.next();!L.done;L=h.next())if(L=L.value,q=g.A(L.trigger,n20))z=(z=L.title)?g.Lc(z):"View Chapters", t=q.timeRangeStartMillis,q=q.timeRangeEndMillis,t!=null&&q!=null&&L.tapCommand&&(Y.push(new g.aZ(t,q,{priority:9,namespace:"suggested_action_button_visible",id:z})),this.suggestedActions[z]=L.tapCommand);this.K.Ji(Y)}}; g.M.w1=function(){return this.enabled}; g.M.vx=function(){this.enabled?this.Ne.start():Zw(this);this.tH()}; g.M.Gz=function(){N4D(this);oq.prototype.Gz.call(this)};var cS={},vr=(cS.CHANNEL_NAME="ytp-title-channel-name",cS.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",cS.LINK="ytp-title-link",cS.SESSIONLINK="yt-uix-sessionlink",cS.SUBTEXT="ytp-title-subtext",cS.TEXT="ytp-title-text",cS.TITLE="ytp-title",cS);g.F(Ke,g.I);Ke.prototype.onClick=function(h){this.api.logClick(this.element);var t=this.api.J(),Y=this.api.getVideoUrl(!g.U6(h),!1,!0);g.kk(t)&&(t={},g.UY(this.api,"addEmbedsConversionTrackingParams",[t]),Y=g.Xz(Y,t));g.wR(Y,this.api,h)}; Ke.prototype.Hm=function(){var h=this.api.getVideoData(),t=this.api.J();this.updateValue("title",h.title);var Y={Z:"a",D:vr.CHANNEL_NAME,j:{href:"{{channelLink}}",target:"_blank"},o0:"{{channelName}}"};this.api.J().S&&(Y={Z:"span",D:vr.CHANNEL_NAME,o0:"{{channelName}}",j:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",Y);lOp(this);this.api.getPresentingPlayerType()===2&&(Y=this.api.getVideoData(),Y.videoId&&Y.isListed&&Y.author&&Y.MD&&Y.profilePicture?(this.updateValue("channelLink", Y.MD),this.updateValue("channelName",Y.author),this.updateValue("channelTitleFocusable","0")):lOp(this));Y=t.externalFullscreen||!this.api.isFullscreen()&&t.jf;g.iA(this.link,vr.FULLERSCREEN_LINK,Y);t.x8||!h.videoId||Y||h.Ye||t.S?this.G&&(this.updateValue("url",null),this.W3(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.V(this.link,"click",this.onClick)));t.S&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.kk(t)?h.expandedTitle: h.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.F(g.a4,g.I);g.M=g.a4.prototype;g.M.setEnabled=function(h){if(this.type!=null)if(h)switch(this.type){case 3:case 2:WsL(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=h}; g.M.E7=function(h,t,Y,L,q,z,V,l){if(!this.Wm||this.env.C){this.type===3&&this.Gy();this.type!==1&&(g.B$(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.T&&this.T.dispose(),(this.T=this.api.xv())&&this.T.subscribe("l",this.Di,this));if(l){var H=g.tu(this.bg).height||141;this.gU.style.bottom=H+2+"px"}else this.gU.style.display="none";this.env.N("delhi_modern_web_player")?(this.update({pillTimeStamp:Y,pillTitle:z!=null?z:"",eduText:l!=null?l:""}),g.mS(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:Y,title:z!=null?z:"",eduText:l!=null?l:""}),g.iA(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!z));this.api.isInline()&&g.mS(this.bottomText,"ytp-modern-tooltip-text");g.iA(this.element,"ytp-text-detail",!!L);Y=-1;this.T&&(Y=Ib(this.T,243*this.scale),this.env.N("web_l3_storyboard")&&this.T.levels.length===4&&(Y=this.T.levels.length-1),Y=a93(this.T,Y,t));XTb(this,Y);if(V)switch(t=g.tu(this.element).width,V){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=t+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=t/2+"px",this.title.style.textAlign="center"}yFW(this,!!L,h,q)}}; g.M.Xd=function(){this.type===1&&this.Gy()}; g.M.uT=function(h,t){if(this.type)if(this.type===3)this.Gy();else return;HTW(this,h,3,t)}; g.M.HM=function(){this.G&&!this.Y&&this.G.hasAttribute("title")&&(this.S=this.G.getAttribute("title")||"",this.G.removeAttribute("title"),this.C&&WsL(this))}; g.M.Di=function(h,t){h<=this.W&&this.W<=t&&(h=this.W,this.W=NaN,XTb(this,h))}; g.M.l0=function(){vfL(this.T,this.W,243*this.scale)}; g.M.Gy=function(){switch(this.type){case 2:var h=this.G;h.removeEventListener("mouseout",this.L);h.addEventListener("mouseover",this.U);h.removeEventListener("blur",this.L);h.addEventListener("focus",this.U);U8W(this);break;case 3:U8W(this);break;case 1:this.T&&(this.T.unsubscribe("l",this.Di,this),this.T=null),this.api.removeEventListener("videoready",this.AQ),this.x8.stop()}this.type=null;this.C&&this.fade.hide()}; g.M.a$=function(){if(this.G)for(var h=0;h=0;t--)if(this.EF[t]===h){this.EF.splice(t,1);break}O3(this.eQ,64,this.EF.length>0)}; g.M.mL=function(){this.api.x9()&&this.api.N4();return!!this.yd||bTL(this)||g.mx.prototype.mL.call(this)}; g.M.uS=function(){var h=!this.mL(),t=h&&this.api.x9()&&!g.R(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().Ye&&!this.api.J().S&&!this.api.isEmbedsShortsMode(),Y=this.YS&&g.Ko(this.api)&&g.R(this.api.getPlayerStateObject(),128);h||Y?(this.m5.show(),this.HF.show()):(this.m5.hide(),this.HF.hide(),this.api.a$(this.fL.element));t?this.xj.rz():this.xj.KZ();this.yM&&YlL(this.yM,this.Q78||!h);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&ohn(this);g.mx.prototype.uS.call(this)}; g.M.YL=function(h,t,Y,L,q){h.style.left="";h.style.top="";h.style.bottom="";var z=g.tu(h),V=L||this.yM&&g.sO(this.yM.gP(),t),l=L=null;Y!=null&&V||(L=g.tu(t),l=g.DP(t,this.api.getRootNode()),Y==null&&(Y=l.x+L.width/2));Y-=z.width/2;V?(t=this.yM,L=LsD(t),l=qlD(t),V=this.api.Bm().getPlayerSize().height,Y=g.n0(Y,L,L+l-z.width),z=V-zFr(t)-z.height):g.sO(this.fL.element,t)?(t=this.api.Bm().getPlayerSize().width,Y=g.n0(Y,12,t-z.width-12),z=this.cM()?this.Xq:this.Us,this.api.J().playerStyle==="gvn"&&(z+= 20),this.YS&&(z-=this.cM()?26:18)):(t=this.api.Bm().getPlayerSize(),Y=g.n0(Y,12,t.width-z.width-12),z=l.y>(t.height-L.height)/2?l.y-z.height-12:l.y+L.height+12);h.style.top=z+(q||0)+"px";h.style.left=Y+"px"}; g.M.Yd=function(h){h&&(this.api.a$(this.fL.element),this.yM&&this.api.a$(this.yM.gP()));this.Jb&&(g.iA(this.contextMenu.element,"ytp-autohide",h),g.iA(this.contextMenu.element,"ytp-autohide-active",!0));g.mx.prototype.Yd.call(this,h)}; g.M.FB=function(){g.mx.prototype.FB.call(this);this.Jb&&(g.iA(this.contextMenu.element,"ytp-autohide-active",!1),this.Jb&&(this.contextMenu.hide(),this.zy&&this.zy.hide()))}; g.M.ZC=function(h,t){var Y=this.api.Bm().getPlayerSize();Y=new g.OO(0,0,Y.width,Y.height);if(h||this.eQ.T&&!this.mL()){if(this.api.J().q3||t)h=this.cM()?this.Xq:this.Us,Y.top+=h,Y.height-=h;this.yM&&(Y.height-=zFr(this.yM))}return Y}; g.M.l3=function(h){var t=this.api.getRootNode();h?t.parentElement?(t.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.J().externalFullscreen||(t.parentElement.insertBefore(this.AG.element,t),t.parentElement.insertBefore(this.ac.element,t.nextSibling))):g.ZD(Error("Player not in DOM.")):(t.setAttribute("aria-label","YouTube Video Player"),this.AG.detach(),this.ac.detach());this.Bq();this.hv()}; g.M.cM=function(){var h=this.api.J();return this.api.isFullscreen()&&!h.C||!1}; g.M.showControls=function(h){this.yh=!h;this.uS()}; g.M.Bq=function(){var h=this.cM();this.tooltip.scale=h?1.5:1;this.contextMenu&&g.iA(this.contextMenu.element,"ytp-big-mode",h);this.uS();this.api.N("web_player_hide_overflow_button_if_empty_menu")||ohn(this);this.hv();var t=this.api.isEmbedsShortsMode();t&&h?(h=(this.api.Bm().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$9(this.fL.element,"padding-left",h+"px"),g.$9(this.fL.element,"padding-right",h+"px")):t&&(g.$9(this.fL.element,"padding-left",""),g.$9(this.fL.element,"padding-right", ""));g.mx.prototype.Bq.call(this)}; g.M.kO=function(){if(bTL(this)&&!g.Ko(this.api))return!1;var h=this.api.getVideoData();return!g.kk(this.api.J())||this.api.getPresentingPlayerType()===2||!this.CL||((h=this.CL||h.CL)?(h=h.embedPreview)?(h=h.thumbnailPreviewRenderer,h=h.videoDetails&&g.A(h.videoDetails,sy3)||null):h=null:h=null,h&&h.collapsedRenderer&&h.expandedRenderer)?g.mx.prototype.kO.call(this):!1}; g.M.hv=function(){g.mx.prototype.hv.call(this);this.api.logVisibility(this.title.element,!!this.Jn);this.kL&&this.kL.Y4(!!this.Jn);this.channelAvatar.Y4(!!this.Jn);this.overflowButton&&this.overflowButton.Y4(this.CC()&&!!this.Jn);this.shareButton&&this.shareButton.Y4(!this.CC()&&!!this.Jn);this.QU&&this.QU.Y4(!this.CC()&&!!this.Jn);this.searchButton&&this.searchButton.Y4(!this.CC()&&!!this.Jn);this.copyLinkButton&&this.copyLinkButton.Y4(!this.CC()&&!!this.Jn);if(!this.Jn){this.api.a$(this.fL.element); for(var h=0;h5&&t.Pm("glrs",{cmt:Y});t.seekTo(0,{seekSource:58});t.Pm("glrre",{cmt:Y})}}; ke.prototype.Gz=function(){this.G=null;g.O.prototype.Gz.call(this)};g.F(g.Od,NO);g.M=g.Od.prototype;g.M.isView=function(){return!0}; g.M.Gw=function(){var h=this.mediaElement.getCurrentTime();if(h1;$W(h.iV(),L-.01)&&!q&&(fe(this,4),Y.isActive=!1,Y.Jg=Y.Jg||Y.isActive,(this.X===1?this.G:this.T).Pm("sbh",{}),t.isActive=!0,t.Jg=t.Jg||t.isActive,this.X!==0&&(this.G.getVideoData().Eh=!0));h=this.W.T;if(this.W.G.isActive&&h.isActive&&(fe(this,5),this.X!==0)){h=this.T.FC();Y=this.G.FC(); this.G.Pm("sbs",{citag:Y==null?void 0:Y.itag,nitag:h==null?void 0:h.itag});this.T.Pm("gitags",{pitag:Y==null?void 0:Y.itag,citag:h==null?void 0:h.itag});var z;(z=this.T)==null||z.rg()}}}; g.M.mA=function(){this.dF()&&this.MF("player-reload-after-handoff")}; g.M.MF=function(h,t){t=t===void 0?{}:t;if(!this.Ui()&&this.status.status!==6){var Y=this.status.status>=4&&h!=="player-reload-after-handoff";this.status={status:Infinity,error:h};if(this.G&&this.T){var L=this.T.getVideoData().clientPlaybackNonce;this.G.x0(new g.zk("dai.transitionfailure",Object.assign(t,{cpn:L,transitionTimeMs:this.jU,msg:h})));this.G.C4(Y)}this.Fo.reject(h);this.dispose()}}; g.M.dF=function(){return this.status.status>=4&&this.status.status<6}; g.M.Gz=function(){aO$(this);this.G.unsubscribe("newelementrequired",this.mA,this);if(this.S){var h=this.S.T;this.S.G.Ln.unsubscribe("updateend",this.jr,this);h.Ln.unsubscribe("updateend",this.jr,this)}g.O.prototype.Gz.call(this)}; g.M.Fz=function(h){g.qK(h,128)&&this.MF("player-error-event")};g.F($e,g.O);$e.prototype.clearQueue=function(h,t){h=h===void 0?!1:h;t=t===void 0?!1:t;this.W&&this.W.reject("Queue cleared");this.app.J().N("html5_gapless_fallback_on_qoe_restart_v2")||t&&this.T&&this.T.C4(!1);TV(this,h)}; $e.prototype.RT=function(){return!this.G}; $e.prototype.dF=function(){var h;return((h=this.S)==null?void 0:h.dF())||!1}; $e.prototype.Gz=function(){TV(this);g.O.prototype.Gz.call(this)};g.F(T4b,g.PD);g.M=T4b.prototype;g.M.getVisibilityState=function(h,t,Y,L,q,z,V,l){return h?4:iDL()?3:t?2:Y?1:L?5:q?7:z?8:V?9:l?10:0}; g.M.F8=function(h){this.fullscreen!==h&&(this.fullscreen=h,this.vx())}; g.M.setMinimized=function(h){this.T!==h&&(this.T=h,this.vx())}; g.M.setInline=function(h){this.inline!==h&&(this.inline=h,this.vx())}; g.M.i_=function(h){this.pictureInPicture!==h&&(this.pictureInPicture=h,this.vx())}; g.M.setSqueezeback=function(h){this.S!==h&&(this.S=h,this.vx())}; g.M.DI=function(h){this.W!==h&&(this.W=h,this.vx())}; g.M.eF=function(){return this.G}; g.M.MP=function(){return this.fullscreen!==0}; g.M.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.M.e_=function(){return this.fullscreen}; g.M.isMinimized=function(){return this.T}; g.M.isInline=function(){return this.inline}; g.M.isBackground=function(){return iDL()}; g.M.bM=function(){return this.pictureInPicture}; g.M.Gx=function(){return!1}; g.M.QH=function(){return this.S}; g.M.HI=function(){return this.W}; g.M.vx=function(){this.publish("visibilitychange");var h=this.getVisibilityState(this.eF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.bM(),this.Gx(),this.QH(),this.HI());h!==this.U&&this.publish("visibilitystatechange");this.U=h}; g.M.Gz=function(){L8b(this.X);g.PD.prototype.Gz.call(this)};g.F(g.A$,g.O);g.M=g.A$.prototype;g.M.Gz=function(){this.videoData=this.playerState=null;g.O.prototype.Gz.call(this)}; g.M.addCueRange=function(){}; g.M.Am=function(){}; g.M.pk=function(){}; g.M.aV=function(){return!1}; g.M.Pz=function(){return!1}; g.M.GS=function(){return!1}; g.M.So=function(){}; g.M.Xt=function(){}; g.M.XF=function(){return[]}; g.M.UQ=function(){}; g.M.getAudioTrack=function(){return this.getVideoData().Bi}; g.M.Xm=function(){return null}; g.M.getAvailableAudioTracks=function(){return[]}; g.M.DP=function(){return[]}; g.M.Cz=function(){return[]}; g.M.Wi=function(){return""}; g.M.AF=function(){return[]}; g.M.Cm=function(){}; g.M.Bx=function(){return 0}; g.M.getCurrentTime=function(){return 0}; g.M.DL=function(){}; g.M.FC=function(){}; g.M.wP=function(){return{}}; g.M.getDuration=function(){return 0}; g.M.U8=function(){return 0}; g.M.a7=function(){return 0}; g.M.qN=function(){return!1}; g.M.cS=function(){return 0}; g.M.zq=function(){return 0}; g.M.VE=Yb(7);g.M.WS=function(){return 0}; g.M.rH=function(){return!1}; g.M.Xn=function(){return 0}; g.M.iL=function(){return null}; g.M.zO=function(){return null}; g.M.bL=function(){return 0}; g.M.CV=function(){return 0}; g.M.GZ=function(){return g.k(function(h){g.Z$(h)})}; g.M.J_=Yb(15);g.M.getPlaybackQuality=function(){return"auto"}; g.M.getPlaybackRate=function(){return 1}; g.M.getPlayerState=function(){this.playerState||(this.playerState=new g.yT);return this.playerState}; g.M.getPlayerType=function(){return 0}; g.M.getPlaylistSequenceForTime=function(){return null}; g.M.uZ=function(){return function(){}}; g.M.yE=function(){return""}; g.M.getPreferredQuality=function(){return"unknown"}; g.M.OE=function(){}; g.M.getProximaLatencyPreference=function(){return 0}; g.M.eN=function(){return tL}; g.M.xv=function(){return null}; g.M.getStoryboardFormat=function(){return null}; g.M.getStreamTimeOffset=function(){return 0}; g.M.CN=function(){return 0}; g.M.O3=function(){return 0}; g.M.dY=function(){return{vO:[],MK:[],currentTime:0,jq:"",droppedVideoFrames:0,isGapless:!1,RT:!0,E_:0,Ux:0,Xk:0,Cv:0,Dc:0,Ox:[],RI:[],Rl:null,playerState:this.getPlayerState(),Ec:null,MX:"",totalVideoFrames:0}}; g.M.getUserAudio51Preference=function(){return 0}; g.M.getUserPlaybackQualityPreference=function(){return""}; g.M.getVideoData=function(){this.videoData||(this.videoData=new g.i6(this.Me),g.f(this,this.videoData));return this.videoData}; g.M.Ps=function(){return null}; g.M.kA=function(){return null}; g.M.Oz=function(){}; g.M.getVideoLoadedFraction=function(){return 0}; g.M.YA=function(){}; g.M.handleError=function(){}; g.M.C4=function(){}; g.M.XH=function(){}; g.M.bC=Yb(40);g.M.U$=function(){return!1}; g.M.hasSupportedAudio51Tracks=function(){return!1}; g.M.jm=function(){return!1}; g.M.eF=function(){return!1}; g.M.isAtLiveHead=function(){return!1}; g.M.Yt=function(){return!0}; g.M.isGapless=function(){return!1}; g.M.isHdr=function(){return!1}; g.M.hm=function(){return!1}; g.M.s4=function(){return!1}; g.M.SV=function(){return!1}; g.M.isProximaLatencyEligible=function(){return!1}; g.M.RT=function(){return!0}; g.M.Wb=function(){return!1}; g.M.sT=function(){return!1}; g.M.SW=function(){}; g.M.To=function(){}; g.M.rg=function(){}; g.M.Zh=function(){}; g.M.CB=function(){}; g.M.yg=function(){}; g.M.jW=function(){}; g.M.mx=Yb(50);g.M.tF=Yb(21);g.M.ih=function(){}; g.M.PY=function(){}; g.M.pauseVideo=function(){}; g.M.prefetchKeyPlay=function(){}; g.M.playVideo=function(){return g.k(function(h){return h.return()})}; g.M.zF=function(){}; g.M.JP=Yb(27);g.M.jF=Yb(33);g.M.We=function(){}; g.M.Pm=function(){}; g.M.y7=function(){}; g.M.FV=function(){}; g.M.kx=function(){}; g.M.x0=function(){}; g.M.rO=function(){}; g.M.y6=function(){}; g.M.d1=function(){}; g.M.rC=function(){}; g.M.vY=function(){}; g.M.k9=function(){}; g.M.R2=function(){}; g.M.removeCueRange=function(){}; g.M.nJ=function(){}; g.M.z6=function(){return[]}; g.M.pg=function(){}; g.M.EL=function(){}; g.M.TN=function(){}; g.M.jD=function(){}; g.M.wO=function(){}; g.M.Eo=function(){}; g.M.seekTo=function(){}; g.M.sendAbandonmentPing=function(){}; g.M.sendVideoStatsEngageEvent=function(){}; g.M.Id=function(){}; g.M.setLoop=function(){}; g.M.ox=function(){}; g.M.setMediaElement=function(){}; g.M.KT=function(){}; g.M.setPlaybackRate=function(){}; g.M.Tm=function(){}; g.M.b_=function(){}; g.M.nC=function(){}; g.M.setProximaLatencyPreference=function(){}; g.M.pT=function(){}; g.M.Nb=function(){}; g.M.mR=function(){}; g.M.lX=function(){}; g.M.T7=function(){}; g.M.setUserAudio51Preference=function(){}; g.M.Ag=function(){}; g.M.nN=function(){return!1}; g.M.GI=function(){}; g.M.Fe=function(){return!1}; g.M.VR=function(){}; g.M.Vj=function(){}; g.M.r_=function(){}; g.M.stopVideo=function(){}; g.M.subscribe=function(){return NaN}; g.M.Jj=function(){}; g.M.togglePictureInPicture=function(){}; g.M.Y2=function(){return 0}; g.M.unsubscribe=function(){return!1}; g.M.ow=function(){}; g.M.Xp=function(){return!1}; g.M.tv=function(){}; g.M.dl=function(){}; g.M.wv=function(){};g.F(R4,g.O);g.M=R4.prototype;g.M.get=function(h){SX(this);var t=this.data.find(function(Y){return Y.key===h}); return t?t.value:null}; g.M.set=function(h,t,Y){this.remove(h,!0);SX(this);h={key:h,value:t,expire:Infinity};Y&&isFinite(Y)&&(Y*=1E3,h.expire=(0,g.FH)()+Y);for(this.data.push(h);this.data.length>this.S;)(Y=this.data.shift())&&Br(this,Y,!0);I4(this)}; g.M.remove=function(h,t){t=t===void 0?!1:t;var Y=this.data.find(function(L){return L.key===h}); Y&&(Br(this,Y,t),g.Qv(this.data,function(L){return L.key===h}),I4(this))}; g.M.removeAll=function(h){if(h=h===void 0?!1:h)for(var t=g.b(this.data),Y=t.next();!Y.done;Y=t.next())Br(this,Y.value,h);this.data=[];I4(this)}; g.M.Gz=function(){var h=this;g.O.prototype.Gz.call(this);this.data.forEach(function(t){Br(h,t,!0)}); this.data=[]};g.F(g.Pr,g.O);g.M=g.Pr.prototype;g.M.Gz=function(){for(var h=g.b(Object.values(this.S)),t=h.next();!t.done;t=h.next())t.value.dispose();AFW(this);this.G.dispose();g.O.prototype.Gz.call(this)}; g.M.Qx=function(h){return h?h===1?this.Y:this.T.getVideoData().enableServerStitchedDai&&h===2?this.T.getVideoData().Dw?this.S[2]||this.T:this.T:this.S[h]||null:this.T}; g.M.N6=function(h){var t=h.cpn;h=h.playerType;if(t)a:{h=g.b(Object.values(this.S));for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Y.Wi()===t){t=Y;break a}t=this.U[t]||null}else t=h?this.Qx(h):this.T;return t}; g.M.x4=function(){return this.Y}; g.M.PF=function(h){this.Y=h}; g.M.k8=function(){return this.T}; g.M.D6=function(h){this.T=h;mH(this)}; g.M.q7=Yb(46);g.M.X3=Yb(48);g.F(h$L,g.AJ);g.M=h$L.prototype;g.M.Nv=function(){}; g.M.Wi=function(){return this.videoData.clientPlaybackNonce}; g.M.getVideoData=function(){if(g.AJ.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){if(!this.G.cpn){var h=CuL(this.Do,g.AJ.prototype.getCurrentTime.call(this))||g.AJ.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==h.clientPlaybackNonce&&(this.Pm("huli-sdai-err",{cpn:this.videoData.clientPlaybackNonce,ref:h.clientPlaybackNonce}),this.G.cpn=!0)}return this.videoData}return CuL(this.Do,g.AJ.prototype.getCurrentTime.call(this))||g.AJ.prototype.getVideoData.call(this)}; g.M.getCurrentTime=function(h){var t=g.AJ.prototype.getCurrentTime.call(this);if(g.AJ.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){if(this.endTime===0?h||(t-=this.startTime):h&&(t=this.endTime-this.startTime),!this.G["time"+h]){var Y=h?this.Do.n1/1E3||t:ywL(this.Do,t);t!==Y&&(this.Pm("huli-sdai-err",{time:t,ref:Y,ct:h}),this.G["time"+h]=!0)}}else t=h?this.Do.n1/1E3||t:ywL(this.Do,t);return t}; g.M.getDuration=function(){if(g.AJ.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){if(!this.G.duration){var h=UIW(this.Do,g.AJ.prototype.getCurrentTime.call(this));this.duration!==h&&(this.Pm("huli-sdai-err",{dur:this.duration,ref:h}),this.G.duration=!0)}return this.duration}return UIW(this.Do,g.AJ.prototype.getCurrentTime.call(this))}; g.M.rd=function(h){this.duration=h};g.h4.prototype.Y_=function(h,t){if(t===1)return this.G.get(h);if(t===2)return this.S.get(h);if(t===3)return this.T.get(h)}; g.h4.prototype.G2=Yb(58);g.h4.prototype.CS=function(h,t,Y,L){Y={g6:L,sB:Y};t?this.S.set(h,Y):this.G.set(h,Y)}; g.h4.prototype.clearAll=function(){this.G.clear();this.S.clear();this.T.clear()}; iv$.prototype.clear=function(){this.T=[];this.G.clear();this.W.clear();this.S.clear()}; g.F(g.t4,g.O);g.M=g.t4.prototype;g.M.qa=function(h){var t=h.TV?h.TV*1E3:h.F6,Y=this.S.get(h.cpn);Y&&this.playback.removeCueRange(Y);this.S.delete(h.cpn);this.G.G.delete(h.cpn);Y=this.G.T.indexOf(h);Y>=0&&this.G.T.splice(Y,1);Y=[];for(var L=g.b(this.X),q=L.next();!q.done;q=L.next())q=q.value,q.end<=t?this.playback.removeCueRange(q):Y.push(q);this.X=Y;G06(this,0,t+h.durationMs)}; g.M.onCueRangeEnter=function(h){this.X5.push(h);var t=h.getId();this.hQ({oncueEnter:1,cpn:t,start:h.start,end:h.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Bx()||0).toFixed(3)});var Y=t==="";this.Y8.add(h.T);var L=this.G.G.get(t);if(Y){var q;if(this.playback.getVideoData().JJ()&&((q=this.T)==null?0:q.KE)&&this.W){this.K3=0;this.T=void 0;this.Y&&(this.events.W3(this.Y),this.Y=null);this.W="";this.Zx=!0;return}}else if(this.hQ({enterAdCueRange:1}),this.playback.getVideoData().JJ()&& (L==null?0:L.eV))return;if(this.Zx&&!this.T)this.Zx=!1,!Y&&L&&(Y=this.playback.getCurrentTime(),zx(this,{Ze:h,isAd:!0,qP:!0,CQ:Y,adCpn:t},{isAd:!1,qP:!1,CQ:Y}),this.eL=L.cpn,this.Ya(L.cpn,Y),L6(this,L),h=YX(this,"midab",L),this.hQ(h),this.K3=1),this.U=!1;else if(this.T){if(this.T.qP)this.hQ({a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.CQ,cpn:t,currentTime:this.playback.getCurrentTime()}),L=this.playback.getCurrentTime(),h={Ze:h,isAd:!Y,qP:!0,CQ:L,adCpn:t},t={Ze:this.T.Ze, isAd:this.T.isAd,qP:!1,CQ:L,adCpn:this.T.adCpn},this.T.Ze&&this.Y8.delete(this.T.Ze.T),zx(this,h,t);else{if(this.T.Ze===h){this.hQ({same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.CQ,cpn:t,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:h.start,cueRangeEndTime:h.end});this.T=void 0;return}if(this.T.adCpn===t){t&&this.hQ({dchtsc:t});this.T=void 0;return}h={Ze:h,isAd:!Y,qP:!0,CQ:this.playback.getCurrentTime(),adCpn:t};zx(this,h,this.T)}this.T=void 0;this.U=!1}else this.T= {Ze:h,isAd:!Y,qP:!0,CQ:this.playback.getCurrentTime(),adCpn:t}}; g.M.Ya=function(h,t){if(h===this.playback.Wi())Dt(this.app.Nq(),this.playback,!1);else{var Y=this.lP.get(h);Y?(Y.endTime=0,Y.startTime=t,Dt(this.app.Nq(),Y,!0)):this.hQ({nop_s:h})}}; g.M.onCueRangeExit=function(h){var t=h.getId();this.hQ({oncueExit:1,cpn:t,start:h.start,end:h.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Bx()||0).toFixed(3)});var Y=t==="",L=this.G.G.get(t);if(this.playback.getVideoData().JJ()&&!Y&&L){if(L.eV)return;L.eV=!0;this.C.clear();if(this.Me.N("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.aV()){var q=L.F6;this.playback.R2(q/1E3,(q+L.durationMs)/1E3)}else this.playback.Pm("lifa",{remove:0})}if(this.Y8.has(h.T))if(this.Y8.delete(h.T), this.X5=this.X5.filter(function(z){return z!==h}),this.Zx&&(this.U=this.Zx=!1,this.hQ({cref:1})),this.T){if(this.T.qP){if(this.T.Ze===h){this.hQ({same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.CQ,cpn:t,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:h.start,cueRangeEndTime:h.end});this.T=void 0;return}if(this.T.adCpn===t){t&&this.hQ({dchtsc:t});this.T=void 0;return}t={Ze:h,isAd:!Y,qP:!1,CQ:this.playback.getCurrentTime(),adCpn:t};zx(this,this.T,t)}else if(this.hQ({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.CQ,upcomingCpn:t,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.T.adCpn===t)return;this.T=void 0;this.U=!1}else this.T={Ze:h,isAd:!Y,qP:!1,CQ:this.playback.getCurrentTime(),adCpn:t};else this.hQ({ignore_single_exit:1})}; g.M.eT=function(){return{cpn:this.playback.Wi(),durationMs:0,F6:0,playerType:1,Ai:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.M.xd=function(){if(this.o$)return!1;var h=void 0;this.eL&&(h=this.G.G.get(this.eL));return this.playback.getVideoData().JJ()?!!h&&!h.eV:!!h}; g.M.seekTo=function(h,t,Y,L){h=h===void 0?0:h;t=t===void 0?{}:t;Y=Y===void 0?!1:Y;L=L===void 0?null:L;if(this.playback.getVideoData().JJ()&&h<=this.n1/1E3)this.playback.pauseVideo(),this.n1=0,this.U=!0,this.playback.GZ(),this.playback.seekTo(h),this.playback.playVideo();else if(this.U=!0,Y)YCL(this,h,t);else{Y=this.app.k8();var q=Y===this.Ne?this.Pq:null;NR(this,!1);this.Hq=h;this.Q4=t;L!=null&&this.G$.start(L);Y&&(this.Pq=q||Y.getPlayerState(),Y.r_(t),this.Ne=Y)}}; g.M.Gz=function(){NR(this,!1);FwL(this);s13(this);g.O.prototype.Gz.call(this)}; g.M.vW=function(h){this.y4=h;this.hQ({swebm:h})}; g.M.ZJ=function(h,t,Y){if(Y&&t){var L=this.C.get(h);if(L){L.locations||(L.locations=new Map);var q=Number(t.split(";")[0]);Y=new g.Es(Y);this.hQ({hdlredir:1,itag:t,seg:h,hostport:Os(Y)});L.locations.set(q,Y)}}}; g.M.QY=function(h,t,Y,L,q,z){var V=L===3,l=ZvD(this,h,t,L,Y,z);if(!l){HK(this,t,V);var H=g.j1r(this,t)?"undec":"ncp";this.hQ({gvprp:H,mt:h,seg:t,tt:L,itag:Y,ce:z});return null}V||this.C.set(t,l);z=l.WI;var w;L=((w=this.Y_(t-1,L,q))==null?void 0:w.g6)||"";L===""&&this.hQ({eds:1});w=ovL(this,l.ssdaiAdsConfig);q=this.playback.getVideoData();var W;V=((W=q.T)==null?void 0:W.containerType)||0;W=q.Wp[V];l=l.yF&&t>=l.yF?l.yF:void 0;W={iS:z?rwc(this,z):[],L0:w,g6:L,fW:l,yL:vz(W.split(";")[0]),vC:W.split(";")[1]|| ""};l={OW:W};this.iP&&(h={gvprpro:"v",sq:t,mt:h.toFixed(3),itag:Y,acpns:((H=W.iS)==null?void 0:H.join("_"))||"none",abid:z},this.hQ(h));return l}; g.M.MZ=function(h){a:{if(!this.o$){var t=bv6(this,h);if(!(this.playback.getVideoData().JJ()&&(t==null?0:t.eV)))break a}t=void 0}var Y=t;if(!Y)return this.hQ({gvprp:"ncp",mt:h}),null;t=Y.WI;var L=ovL(this,Y.ssdaiAdsConfig);Y=Y.yF&&Y.KW&&h>=Y.KW?Y.yF:void 0;var q=this.playback.getVideoData(),z,V=((z=q.T)==null?void 0:z.containerType)||0;z=q.Wp[V];z={iS:t?rwc(this,t):[],L0:L,fW:Y,yL:vz(z.split(";")[0]),vC:z.split(";")[1]||""};var l;h={gvprpro:"v",mt:h.toFixed(3),acpns:((l=z.iS)==null?void 0:l.join("_"))|| "none",abid:t};this.hQ(h);return z}; g.M.lO=function(h,t,Y,L,q,z){var V=Number(Y.split(";")[0]),l=L===3;h=ZvD(this,h,t,L,Y,z);this.hQ({gdu:1,seg:t,itag:V,pb:""+!!h});if(!h)return HK(this,t,l),null;h.locations||(h.locations=new Map);if(!h.locations.has(V)){var H,w;z=(H=h.videoData.getPlayerResponse())==null?void 0:(w=H.streamingData)==null?void 0:w.adaptiveFormats;if(!z)return this.hQ({gdu:"noadpfmts",seg:t,itag:V}),HK(this,t,l),null;H=z.find(function(X){return X.itag===V}); if(!H||!H.url){var W=h.videoData.videoId;h=[];var y=g.b(z);for(L=y.next();!L.done;L=y.next())h.push(L.value.itag);this.hQ({gdu:"nofmt",seg:t,vid:W,itag:V,fullitag:Y,itags:h.join(",")});HK(this,t,l);return null}h.locations.set(V,new g.Es(H.url,!0))}z=h.locations.get(V);if(!z)return this.hQ({gdu:"nourl",seg:t,itag:V}),HK(this,t,l),null;z=new eG(z);this.y4&&(z.get("dvc")?this.hQ({dvc:z.get("dvc")||""}):z.set("dvc","webm"));(L=(y=this.Y_(t-1,L,q))==null?void 0:y.g6)&&z.set("daistate",L);h.yF&&t>=h.yF&& z.set("skipsq",""+h.yF);(y=this.playback.getVideoData().clientPlaybackNonce)&&z.set("cpn",y);y=[];h.WI&&(y=rwc(this,h.WI),y.length>0&&z.set("acpns",y.join(",")));l||this.C.set(t,h);l=null;l=z.get("aids");L=z.K6();(L==null?void 0:L.length)>2048&&this.hQ({urltoolong:1,sq:t,itag:V,len:L.length});this.iP&&(L&&(z=h.cpn,q=h.WI,e$i(this,z,q),q&&!this.fn.has(q)&&(z=cwW(this,z,q),H=ucc(this,q),this.hQ({iofa:z}),this.hQ({noawnzd:H-z}),this.hQ({acpns:y.join("."),aids:(W=l)==null?void 0:W.replace(/,/g,".")}), this.fn.add(q))),this.hQ({gdu:"v",seg:t,itag:Y,ast:h.F6.toFixed(3),alen:h.durationMs.toFixed(3),acpn:h.cpn,avid:h.videoData.videoId}));return L}; g.M.VF=function(h,t,Y){Y=Y===void 0?!1:Y;var L=lX(this,h,t);if(L){var q=void 0,z=L.WI;if(z){this.hQ({skipadonsq:t,sts:Y,abid:z,acpn:L.cpn,avid:L.videoData.videoId});Y=this.G.S.get(z);if(!Y)return;Y=g.b(Y);for(z=Y.next();!z.done;z=Y.next())z=z.value,z.yF=t,z.KW=h,z.F6>L.F6&&(q=z)}this.W=L.cpn;dIi(this);h=this.playback.getCurrentTime();qR(this,L,q,h,h,!1,!0)}}; g.M.yX=function(){for(var h=g.b(this.G.T),t=h.next();!t.done;t=h.next())t=t.value,t.yF=NaN,t.KW=NaN;dIi(this);this.hQ({rsac:"resetSkipAd",sac:this.W});this.W=""}; g.M.Y_=function(h,t,Y){return this.Wm.Y_(h,t,Y)}; g.M.G2=Yb(57); g.M.CS=function(h,t,Y,L,q,z,V,l,H){L.length>0&&this.hQ({onssinfo:1,sq:h,start:t.toFixed(3),cpns:L.join(","),ds:q.join(","),isVideo:V?1:0});H&&this.Wm.CS(h,V,l,H);if(V){if(L.length&&q.length)for(this.W&&this.W===L[0]&&this.hQ({skipfail:1,sq:h,acpn:this.W}),h=t+this.CN(),V=0;V0&&(this.K3=0,this.eL="",this.api.publish("serverstitchedvideochange"));this.playback.Xt(Y,L);return!0}; g.M.Dy=function(){this.hQ({rstdaist:1});this.Wm.clearAll()}; g.M.pS=function(h){var t;if(h!==((t=this.AQ)==null?void 0:t.identifier))this.hQ({ignorenoad:h});else{this.MD.add(h);this.hQ({noadrcv:h});var Y;((Y=this.AQ)==null?void 0:Y.identifier)===h&&g1(this)}}; g.M.UF=function(h){if(this.o$)return this.hQ({dai_disabled:h.event}),!1;if(this.playback.getVideoData().JJ()&&(this.Me.N("html5_lifa_no_gab_on_predict_start")&&h.event==="predictStart"||h.event==="continue"||h.event==="stop"))return!1;var t=Kq(this.api.T$());if(t=t?t.UF(h):!1)this.L={Zb:h.identifier,Vc:h.startSecs};else if(this.L&&this.L.Zb===h.identifier&&h.startSecs>this.L.Vc+1){this.hQ({cueStChg:h.identifier,oldSt:this.L.Vc.toFixed(3),newSt:h.startSecs.toFixed(3),abid:this.L.Oh});if(this.L.Oh){var Y= h.startSecs-this.L.Vc,L=this.G.S.get(this.L.Oh);if(L){L=g.b(L);for(var q=L.next();!q.done;q=L.next())q=q.value,q.F6>=0&&(q.F6+=Y*1E3,this.Me.N("html5_ssdai_update_timeline_on_start_time_change")&&(q.Ai+=Y*1E3),this.hQ({newApEt:q.F6,newApPrt:q.Ai,acpn:q.cpn}))}}this.L.Vc=h.startSecs}return t}; g.M.n7=function(h){return this.o$?!1:!!bv6(this,h)}; g.M.ZS=function(h){var t=this;if(this.Me.N("html5_lifa_ignore_multiple_skips")&&this.Y)return this.hQ({ufs_ad:this.W,ufs_cur:this.eL,ufs_cont:this.eT().cpn}),!1;this.playback.pauseVideo();var Y=this.playback.getCurrentTime(),L=this.Me.N("html5_lifa_reset_segment_index_on_skip"),q=L?Y+this.playback.CN():Y,z=this.G.G.get(this.eL),V=this.S.get(this.eL);if(z){this.W=this.eL;this.U=!1;z.eV=!0;Y=this.playback.getCurrentTime();this.T={Ze:V,isAd:!0,qP:!1,CQ:Y,adCpn:this.eL,KE:z,Mx_:h};this.playback.d1(z, this.eT(),Y,this.playback.getCurrentTime(),!1,!0,h,(0,g.FH)());L&&this.playback.ih();if(V==null?0:V.start)this.n1=Y*1E3-V.start,wvD(this,V.id,Y);this.C.clear();this.playback.GZ();h=this.eT();this.eL=h.cpn;this.Ya(h.cpn,Y);this.api.publish("serverstitchedvideochange");this.playback.seekTo(q,{seekSource:89,EY:"lifa_skip"});this.playback.playVideo();this.Y||(this.Y=this.events.V(this.api,"progresssync",function(){t.qa(z)})); return!0}this.hQ({skipFail:Y},!0);return!1}; g.M.hQ=function(h,t){((t===void 0?0:t)||this.iP||this.playback.getVideoData().JJ())&&this.playback.Pm("sdai",h)}; var VZr=0;g.F(Jw1,g.t4);g.M=Jw1.prototype;g.M.onCueRangeEnter=function(h){var t=h.getId();this.playback.Pm("sdai",{oncueEnter:1,cpn:t,start:h.start,end:h.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Bx()||0).toFixed(3)});var Y=this.G.G.get(t);this.playback.Pm("sdai",{enterAdCueRange:1});var L=this.eL||this.eT().cpn,q;L=(q=this.G.G.get(L))!=null?q:this.eT();Y&&(q=this.playback.getCurrentTime(),Y={TE:L,oL:Y,GE:q},KwL(this,t,h.start/1E3,q),vvr(this,Y))}; g.M.onCueRangeExit=function(h){for(var t=this.playback.getCurrentTime()*1E3,Y=h.getId(),L=g.b(this.S.values()),q=L.next();!q.done;q=L.next())if(q=q.value,q.getId()!==Y&&t>=q.start&&t<=q.end)return;if(Y=this.G.G.get(Y))t=this.playback.getCurrentTime(),Y={TE:Y,oL:this.eT(),GE:t},KwL(this,this.playback.Wi(),h.end/1E3,t),vvr(this,Y)}; g.M.seekTo=function(h,t,Y,L){h=h===void 0?0:h;t=t===void 0?{}:t;Y=Y===void 0?!1:Y;L=L===void 0?null:L;WK(this,this.eL);this.playback.getVideoData().JJ()&&h<=this.Vb?(this.playback.pauseVideo(),this.Vb=this.n1=0,aML(this,h)):g.t4.prototype.seekTo.call(this,h,t,Y,L)}; g.M.VF=function(h,t,Y){Y=Y===void 0?!1:Y;var L=lX(this,h,t);if(L){var q=void 0,z=L.WI;if(z){this.playback.Pm("sdai",{skipadonsq:t,sts:Y,abid:z,acpn:L.cpn,avid:L.videoData.videoId});Y=this.G.S.get(z);if(!Y)return;Y=g.b(Y);for(z=Y.next();!z.done;z=Y.next())z=z.value,z.yF=t,z.KW=h,z.F6>L.F6&&(q=z)}WK(this,this.eL);this.W=L.cpn;dIi(this);h=this.playback.getCurrentTime();qR(this,L,q,h,h,!1,!0);this.W="";this.U=!1}}; g.M.CS=function(h,t,Y,L,q,z,V,l,H){L.length>0&&this.playback.Pm("sdai",{onssinfo:1,sq:h,start:t.toFixed(3),cpns:L.join(","),ds:q.join(","),isVideo:V?1:0});H&&this.Wm.CS(h,V,l,H);if(V){if(L.length&&q.length)for(this.W&&this.W===L[0]&&this.playback.Pm("sdai",{skipfail:1,sq:h,acpn:this.W}),h=t+this.CN(),Y=0;Y=0&&this.G.T.splice(h,1)};g.F(k06,g.O);g.M=k06.prototype;g.M.onCueRangeEnter=function(h){if(this.G===this.app.k8()){var t=this.X.get(h);t?AwL(this,t.target,t.jU,h):this.x0("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:h.toString()})}else if(t=this.T.find(function(q){return q.Kz.Ze===h})){var Y=t.Kz,L=Y.target; Y=Y.jU;L?AwL(this,L,Y,h):Tz3(this,t.Ai,Y,h)}}; g.M.onQueuedVideoLoaded=function(){var h=this.C;C6(this);if(h){if(!UG(this,h)){var t=this.app.k8();this.x0("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:t==null?void 0:t.getVideoData().clientPlaybackNonce,ccpn:""+h.playerVars.cpn})}this.app.k8().addCueRange(h.Kz.Ze)}}; g.M.seekTo=function(h,t,Y,L){h=h===void 0?0:h;t=t===void 0?{}:t;L=L===void 0?null:L;if(Y===void 0?0:Y)Evc(this,h,t);else{Y=this.app.k8()||null;var q=Y===this.W?this.U:null;MR(this,!1);this.AQ=h;this.L=t;L!=null&&this.Y.start(L);Y&&(this.U=q||Y.getPlayerState(),Y.r_(),this.W=Y)}}; g.M.hF=function(h){g.qK(h,128)&&Puc(this)}; g.M.isManifestless=function(){return os(this.G.getVideoData())}; g.M.Gz=function(){MR(this,!1);DI$(this);g.O.prototype.Gz.call(this)}; g.M.x0=function(h,t){this.G.x0(new g.zk(h,t))}; var Ov6=0;var hv3="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.F(F1,g.O);F1.prototype.Ld=function(h){if(h)return this.T.get(h)}; F1.prototype.Gz=function(){this.G.removeAll();this.T.removeAll();g.O.prototype.Gz.call(this)};g.Jul=p7(function(){var h=window.AudioContext||window.webkitAudioContext;try{return new h}catch(t){return t.name}});g.F(LF1,g.I);g.M=LF1.prototype;g.M.aX=function(){g.Dz(this.element,g.OL.apply(0,arguments))}; g.M.EL=function(){this.M_&&(this.M_.removeEventListener("focus",this.t4),g.FK(this.M_),this.M_=null)}; g.M.tp=function(){this.Ui();var h=this.app.J();h.An||this.aX("tag-pool-enabled");h.U&&this.aX(g.yH.HOUSE_BRAND);h.playerStyle==="gvn"&&(this.aX("ytp-gvn"),this.element.style.backgroundColor="transparent");h.Ds&&(this.Vh=g.Ss("yt-dom-content-change",this.resize,this));h.N("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.V(window.screen.orientation,"change",this.resize,this):this.V(window,"orientationchange",this.resize,this):this.V(window,"orientationchange",this.resize, this);this.V(window,"resize",this.resize,this)}; g.M.xZ=function(h){g.Ti(this.app.J());this.lD=!h;sG(this)}; g.M.resize=function(){if(this.M_){var h=this.oT();if(!h.isEmpty()){var t=!g.IE(h,this.qb.getSize()),Y=laL(this);t&&(this.qb.width=h.width,this.qb.height=h.height);h=this.app.J();(Y||t||this.Tw||h.Ds)&&this.app.m_.publish("resize",this.getPlayerSize())}}}; g.M.KH=function(h,t){this.updateVideoData(t)}; g.M.updateVideoData=function(h){if(this.M_){var t=this.app.J();Ex&&(this.M_.setAttribute("x-webkit-airplay","allow"),h.title?this.M_.setAttribute("title",h.title):this.M_.removeAttribute("title"));this.M_.setAttribute("controlslist","nodownload");t.u9&&h.videoId&&(this.M_.poster=h.TZ("default.jpg"))}t=g.vu(h,"yt:bgcolor");this.oN.style.backgroundColor=t?t:"";this.Kx=hG(g.vu(h,"yt:stretch"));this.Ue=hG(g.vu(h,"yt:crop"),!0);g.iA(this.element,"ytp-dni",h.Ye);this.resize()}; g.M.setGlobalCrop=function(h){this.o_=hG(h,!0);this.resize()}; g.M.setCenterCrop=function(h){this.BO=h;this.resize()}; g.M.F8=function(){}; g.M.getPlayerSize=function(){var h=this.app.J(),t=this.app.m_.isFullscreen(),Y=h.externalFullscreen&&g.kk(h);if(t&&aF()&&!Y)return new g.Se(window.outerWidth,window.outerHeight);Y=!isNaN(this.q$.width)&&!isNaN(this.q$.height);var L=this.app.J().N("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.J().N("web_watch_enable_fs_squeezeback_panels");if(t&&!Y&&L)return new g.Se(this.element.clientWidth,this.element.clientHeight);if(t||h.xm){if(window.matchMedia){h="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.WG&&this.WG.media===h||(this.WG=window.matchMedia(h));var q=this.WG&&this.WG.matches}if(q)return new g.Se(window.innerWidth,window.innerHeight)}else if(Y)return this.q$.clone();return new g.Se(this.element.clientWidth,this.element.clientHeight)}; g.M.oT=function(){var h=this.app.J().N("enable_desktop_player_underlay"),t=this.getPlayerSize(),Y=g.Sk(this.app.J().experiments,"player_underlay_min_player_width");return h&&this.jK&&t.width>Y?(h=g.Sk(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.Se(Math.min(t.height*this.getVideoAspectRatio(),t.width*h),Math.min(t.height,t.width*h/this.getVideoAspectRatio()))):t}; g.M.getVideoAspectRatio=function(){return isNaN(this.Kx)?zvb(this):this.Kx}; g.M.getVideoContentRect=function(h){var t=this.oT();h=VYi(this,t,this.getVideoAspectRatio(),h);return new g.OO((t.width-h.width)/2,(t.height-h.height)/2,h.width,h.height)}; g.M.HL=function(h){this.jK=h;this.resize()}; g.M.gj=function(){return this.Uk}; g.M.onMutedAutoplayChange=function(){sG(this)}; g.M.setInternalSize=function(h){g.IE(this.q$,h)||(this.q$=h,this.resize())}; g.M.Gz=function(){this.Vh&&g.I_(this.Vh);this.EL();g.I.prototype.Gz.call(this)};g.M=w43.prototype;g.M.click=function(h,t){this.elements.has(h);this.G.has(h);var Y=g.yy();Y&&h.visualElement&&g.IA(Y,h.visualElement,t)}; g.M.createClientVe=function(h,t,Y,L){var q=this;L=L===void 0?!1:L;this.elements.has(h);this.elements.add(h);Y=MaL(Y);h.visualElement=Y;var z=g.yy(),V=g.WD();z&&V&&(g.wj("combine_ve_grafts")?fO(O1(),Y,V):g.f$(g.Kt)(void 0,z,V,Y));t.addOnDisposeCallback(function(){q.elements.has(h)&&q.destroyVe(h)}); L&&this.T.add(h)}; g.M.createServerVe=function(h,t,Y){var L=this;Y=Y===void 0?!1:Y;this.elements.has(h);this.elements.add(h);t.addOnDisposeCallback(function(){L.destroyVe(h)}); Y&&this.T.add(h)}; g.M.destroyVe=function(h){this.elements.has(h);this.elements.delete(h);this.S.delete(h);this.G.delete(h);this.T.delete(h)}; g.M.eS=function(h,t){this.clientPlaybackNonce!==t&&(this.clientPlaybackNonce=t,nO(O1(),h),WFL(this))}; g.M.setTrackingParams=function(h,t){this.elements.has(h);t&&(h.visualElement=g.HD(t))}; g.M.hC=function(h,t,Y){this.elements.has(h);t?this.G.add(h):this.G.delete(h);var L=g.yy(),q=h.visualElement;this.T.has(h)?L&&q&&(t?g.AV(L,[q]):g.Sz(L,[q])):t&&!this.S.has(h)&&(L&&q&&g.Ta(L,q,void 0,Y),this.S.add(h))}; g.M.hasVe=function(h){return this.elements.has(h)};g.F(g.Z_,g.O);g.Z_.create=function(h,t,Y,L){try{var q=typeof h==="string"?h:"player"+g.zs(h),z=u7[q];if(z){try{z.dispose()}catch(l){g.ZD(l)}u7[q]=null}var V=new g.Z_(h,t,Y,L);V.addOnDisposeCallback(function(){u7[q]=null;V.XR&&V.XR()}); return u7[q]=V}catch(l){throw g.ZD(l),(l&&l instanceof Error?l:Error(String(l))).stack;}}; g.M=g.Z_.prototype;g.M.E0=function(){return this.visibility}; g.M.PF=function(h){var t=this.x4();if(h!==t){h.getVideoData().autonavState=t.getVideoData().autonavState;t.ow(this.qI,this);var Y=t.getPlaybackRate();t.dispose();this.eE.PF(h);h.setPlaybackRate(Y);h.Jj(this.qI,this);slb(this)}}; g.M.D3=function(){this.yq||(this.yq=g.ko($l(),enr()));return this.yq}; g.M.EL=function(h){if(this.mediaElement){this.s1&&(this.events.W3(this.s1),this.s1=null);g.ZZ(this.g1);this.k8().EL(!0,!1,h);this.template.EL();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.YB()}catch(t){g.bc(t)}this.mediaElement=null}}; g.M.D6=function(h,t,Y){Y=Y===void 0?!1:Y;if(h!==this.k8()){this.logger.debug(function(){return"start set presenting player, type "+h.getPlayerType()+", vid "+h.getVideoData().videoId}); var L=null;Y||(Y=this.k8(),L=Y.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),vl(this.FD,3),A4(this,"cuerangesremoved",Y.AF()),this.Sk&&!h.isGapless()&&Y.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),Y=h.nN()&&Y.nN(),this.Wq.nA("iv_s"),r9L(this,Y));h.getPlayerType()===1&&this.PF(h);QlL(this,h);this.eE.D6(h);this.mediaElement&&h.setMediaElement(this.mediaElement);h.Jj(this.Uc,this);h.sT()?tvr(this,"setPresenting",!1):(this.KH("newdata",h,h.getVideoData()), L&&!g.sk(L,h.getPlayerState())&&this.JB(new g.Yu(h.getPlayerState(),L)),t=t&&h.getPlayerType()===1,h.s4()&&!t&&this.KH("dataloaded",h,h.getVideoData()),(t=(t=h.getVideoData().T)&&t.video)&&this.m_.Uz("onPlaybackQualityChange",t.quality),A4(this,"cuerangesadded",h.AF()),t=h.getPlayerState(),g.R(t,2)?GCb(this):g.R(t,8)?h.playVideo():h.hm()&&h.pauseVideo(),t=this.x4(),h.getPlayerType()===2&&(h.getVideoData().c6=t.getVideoData().clientPlaybackNonce),h.getPlayerType()!==2||this.t7()||(L=h.getVideoData(), t.zF(L.clientPlaybackNonce,L.Cr||"",L.breakType||0,L.Vb,L.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.M.Mn=function(){if(this.x4()!==this.k8()){var h=this.k8();this.logger.debug(function(){return"release presenting player, type "+h.getPlayerType()+", vid "+h.getVideoData().videoId}); this.D6(this.x4())}}; g.M.Nq=function(){return this.eE}; g.M.N6=function(h){return this.eE.N6(h)}; g.M.Qx=function(h){return this.eE.Qx(h)}; g.M.x4=function(){return this.eE.x4()}; g.M.k8=function(){return this.eE.k8()}; g.M.r8=Yb(44);g.M.UeG=function(){r1(this)||(this.logger.debug("application playback ready"),this.mO(5))}; g.M.iZP=function(){if(!r1(this)){this.logger.debug("playback ready");PQ3(this);var h=this.k8(),t=h.getPlayerState();h.hm()?this.pauseVideo():t.isOrWillBePlaying()&&this.playVideo()}}; g.M.canPlayType=function(h){return Hd(h)}; g.M.J=function(){return this.Me}; g.M.getVideoData=function(){return this.k8().getVideoData()}; g.M.D5=Yb(11);g.M.n6=function(){return this.x4().getVideoData()}; g.M.getVideoLoadedFraction=function(h){return(h=this.N6({playerType:h}))?h.getVideoLoadedFraction():this.eE.G.getVideoLoadedFraction()}; g.M.Bm=function(){return this.template}; g.M.T$=function(){return this.FD}; g.M.aT=function(){return this.Wq}; g.M.XA=function(h){var t=this.N6({playerType:1});t&&t.Id(h)}; g.M.l9=function(){var h=this.FD.l9();this.m_.publish("videoStatsPingCreated",h);return h}; g.M.getVolume=function(){return Math.round(this.m_.getVolume())}; g.M.isMuted=function(){return this.m_.isMuted()}; g.M.NK=function(){if(this.x4()===this.k8()&&this.z$)return this.z$.postId}; g.M.h98=function(){var h=this;this.N("use_rta_for_player")||(g.z4(this.Me)?g.Up(this.Me,g.Pu(this.getVideoData())).then(function(t){TM($l(),t);PBL(h.getVideoData(),h.Me,h.D3())}):PBL(this.getVideoData(),this.Me,this.D3()))}; g.M.I2=function(h){this.m_.publish("poTokenVideoBindingChange",h)}; g.M.mH=function(h){this.m_.publish("d6de4videobindingchange",h)}; g.M.l$=function(){this.Zj&&this.Zj.l$()}; g.M.OS=function(h){this.Zj=h}; g.M.R9=function(h){if(h===1){this.Wq.tick("vr");var t=this.k8();t.pk();y4b(this.Wq,t.getVideoData(),Bm6(this));$Rr(this.FD)}t=this.Me;if(W0(t)&&t.Y||g.SI(t)){var Y;(((Y=this.k8().getVideoData())==null?0:Y.enableServerStitchedDai)||!this.t7())&&this.m_.Uz("onAdStateChange",h)}}; g.M.setLoopVideo=function(h){var t=this.k8();t===this.x4()&&t.rH()!==h&&(t.setLoop(h),this.m_.jM("onLoopChange",h))}; g.M.getLoopVideo=function(){return this.k8().rH()}; g.M.setLoopRange=function(h){var t=!1;!!this.z$!==!!h?t=!0:this.z$&&h&&(t=this.z$.startTimeMs!==h.startTimeMs||this.z$.endTimeMs!==h.endTimeMs||this.z$.postId!==h.postId||this.z$.type!==h.type);if(t){t=this.k8();X$(t.getVideoData())&&t.Pm("slr",{et:(h==null?void 0:h.endTimeMs)||-1});t=this.x4();t.z6("applooprange");if(h){var Y=new g.aZ(h.startTimeMs,h.endTimeMs,{id:"looprange",namespace:"applooprange"});t.addCueRange(Y)}else{this.n6().clipConfig=void 0;var L;((Y=this.z$)==null?void 0:Y.type)!=="repeatChapter"|| isNaN(Number((L=this.z$)==null?void 0:L.loopCount))||(Y={loopCount:String(this.z$.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.tq("repeatChapterLoopEvent",Y))}this.z$=h;this.m_.jM("onLoopRangeChange",h||void 0);this.x4()===this.k8()&&(this.Mt(),t.So())}}; g.M.getLoopRange=function(){return this.z$}; g.M.Mt=function(){var h="",t=this.x4();this.z$?t!==this.k8()?h="pnea":aai(this,t.getCurrentTime())&&(this.z$.loopCount=0,h="ilr"):h="nlr";var Y=this.k8();if(X$(Y.getVideoData()))if(this.N("html5_gapless_log_loop_range_info")){var L,q;Y.Pm("slrre",{rej:h,ct:t.getCurrentTime(),lst:(L=this.z$)==null?void 0:L.startTimeMs,let:(q=this.z$)==null?void 0:q.endTimeMs})}else Y.Pm("slrre",{});h||ES6(this)}; g.M.setPlaybackRate=function(h,t){if(!isNaN(h)){h=bg1(this,h);var Y=this.x4();Y.getPlaybackRate()!==h&&(Y.setPlaybackRate(h),t&&!this.Me.W&&g.dK("yt-player-playback-rate",h),this.m_.Uz("onPlaybackRateChange",h))}}; g.M.getCurrentTime=function(h,t){t=t===void 0?!0:t;var Y=this.eE.Wd;if(Y)return Y.getCurrentTime();var L=h===2&&this.getVideoData().enableServerStitchedDai;Y=null;L?Y=this.k8():Y=this.N6({playerType:h});return Y?L&&this.k0?(h=this.eE.C)?h.getCurrentTime(t):Y.getCurrentTime():t?(t=Ql(this,Y),EG(this,t.getCurrentTime(),t)):Y.getCurrentTime():this.eE.G.getCurrentTime()}; g.M.zq=function(){var h=this.N6({playerType:void 0});if(!h)return this.eE.G.zq();h=Ql(this,h);return EG(this,h.zq(),h)}; g.M.getDuration=function(h,t){t=t===void 0?!0:t;var Y=this.eE.Wd;if(Y)return Y.getDuration();Y=this.getVideoData();var L=h===2&&Y.enableServerStitchedDai,q=null;L?q=this.k8():q=this.N6({playerType:h});if(!q)return this.eE.G.getDuration();if(Y.hasProgressBarBoundaries()&&!L){var z,V=Number((z=Y.progressBarStartPosition)==null?void 0:z.utcTimeMillis),l;z=Number((l=Y.progressBarEndPosition)==null?void 0:l.utcTimeMillis);if(!isNaN(V)&&!isNaN(z))return(z-V)/1E3}if(X$(Y)&&!Y.isLivePlayback)return aX(this, h);if(t)return h=Gx(this,q),EG(this,h.getDuration(),h);if(L&&this.k0){if(this.N("html5_huli_ssdai_use_playback_state"))return h=this.eE,h=h.W===h.C?h.W:null,(h==null?void 0:h.getDuration())||0;var H;return((H=this.eE.C)==null?void 0:H.getDuration())||0}return q.getDuration()}; g.M.a7=function(h){var t=this.N6({playerType:h});return t?this.t7(t)?(t=Gx(this,t),t.a7()-t.getCurrentTime()+this.getCurrentTime(h)):t.a7():this.eE.G.a7()}; g.M.finishSegmentByCpn=function(){return[]}; g.M.tp=function(){this.template.tp();var h=this.m_;h.state.element=this.template.element;var t=h.state.element,Y;for(Y in h.state.G)h.state.G.hasOwnProperty(Y)&&(t[Y]=h.state.G[Y]);(h=aRL(this.template.element))&&this.events.V(this.template,h,this.onFullscreenChange)}; g.M.getDebugText=function(h){var t=this.x4().wP(h),Y=this.k8();if(Y!==this.x4()){Y=Y.wP(h);for(var L=g.b(Object.keys(Y)),q=L.next();!q.done;q=L.next())q=q.value,t["ad"+q]=Y[q];if(h){Y=t;L={};if(q=Y9(document,"movie_player"))L.bounds=q.getBoundingClientRect(),L["class"]=q.className;q={};var z=g.V_("video-ads");z?(YDW(z,q),q.html=z.outerHTML):q.missing=1;z={};var V=g.V_("videoAdUiSkipContainer"),l=g.V_("ytp-ad-skip-button-container"),H=g.V_("ytp-skip-ad-button"),w=V||l||H;w?(YDW(w,z),z.ima=V?1:0,z.bulleit= l?1:0,z.component=H?1:0):z.missing=1;L=JSON.stringify({player:L,videoAds:q,skipButton:z});Y.ad_skipBtnDbgInfo=L}}h&&this.mediaElement&&(t["0sz"]=""+(+RE(this.mediaElement.getSize())===0),t.op=this.mediaElement.N$("opacity"),Y=this.mediaElement.HD().y+this.mediaElement.getSize().height,t.yof=""+(+Y<=0),t.dis=this.mediaElement.N$("display"));h&&((h=(0,g.LD)())&&(t.gpu=h),(h=this.Me.playerStyle)&&(t.ps=h),this.Me.lP&&(t.webview=1));t.debug_playbackQuality=this.m_.getPlaybackQuality(1);t.debug_date=(new Date).toString(); t.origin=window.origin;t.timestamp=Date.now();delete t.uga;delete t.q;return JSON.stringify(t,null,2)}; g.M.getFeedbackProductData=function(){var h={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:N[68]},t=this.getPlayerStateObject().rk;t&&(h.player_error_code=t.errorCode,h.player_error_details=JSON.stringify(t.errorDetail));return h}; g.M.getPresentingPlayerType=function(h){if(this.appState===1)return 1;if(r1(this))return 3;var t;return h&&((t=this.k0)==null?0:t.xd(this.getCurrentTime()))?2:this.k8().getPlayerType()}; g.M.iD=function(){return!1}; g.M.getPlayerStateObject=function(h){var t=this.eE.Wd;return t?t.getPlayerState():this.N6({playerType:h}).getPlayerState()}; g.M.getAppState=function(){return this.appState}; g.M.aoM=function(h){switch(h.type){case "loadedmetadata":this.BY.start();h=g.b(this.Wg);for(var t=h.next();!t.done;t=h.next())t=t.value,RvW(this,t.id,t.tQQ,t.w28,void 0,!1);this.Wg=[];break;case "loadstart":this.Wq.nA("gv");break;case "progress":case "timeupdate":Ay(h.target.jQ())>=2&&this.Wq.nA("l2s");break;case "playing":g.H0&&this.BY.start();if(g.z4(this.Me))h=!1;else{t=g.xl(this.T$());h=this.mediaElement.N$("display")==="none"||RE(this.mediaElement.getSize())===0;var Y=jx(this.template),L=this.k8().getVideoData(), q=g.rP(this.Me);L=Uf(L);t=!Y||t||q||L||this.Me.iP;h=h&&!t}h&&(h=this.k8(),h.SW(),this.getVideoData().Hq||(this.getVideoData().Hq=1,this.Yy(),h.playVideo()))}}; g.M.dDz=function(h){this.m_.PZ("onLoadProgress",h)}; g.M.qY_=function(){this.m_.publish("playbackstalledatstart")}; g.M.wqP=function(h,t){this.m_.publish("sabrCaptionsDataLoaded",h,t)}; g.M.F$P=function(h){this.k8().Nb(h)}; g.M.vee=function(h){this.k8().pT(h)}; g.M.PLU=function(h){h=Ql(this,this.k8());h=EG(this,h.getCurrentTime(),h);this.m_.Uz("onVideoProgress",h);this.Me.tj&&Tm3(this,this.visibility.bM())&&this.pauseVideo()}; g.M.V4e=function(){this.m_.Uz("onAutoplayBlocked");var h=this.k8().getVideoData();h&&(h.KD=!0);this.N("embeds_enable_autoplay_and_visibility_signals")&&g.kk(this.Me)&&(h={autoplayBrowserPolicy:XZ(),autoplayIntended:Us(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.tq("embedsAutoplayStatusChanged",h))}; g.M.BP_=function(){this.m_.publish("progresssync")}; g.M.IsU=function(){this.m_.PZ("onPlaybackPauseAtStart")}; g.M.pm5=function(h){if(this.getPresentingPlayerType()===1){g.qK(h,1)&&!g.R(h.state,64)&&this.n6().isLivePlayback&&this.x4().isAtLiveHead()&&this.m_.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.qK(h,2)){if(this.z$&&this.z$.endTimeMs>=(this.getDuration()-1)*1E3){ES6(this);return}GCb(this)}if(g.R(h.state,128)){var t=h.state;this.cancelPlayback(5);t=t.rk;JSON.stringify({errorData:t,debugInfo:this.getDebugText(!0)});this.m_.Uz("onError",Nxi(t.errorCode));this.m_.PZ("onDetailedError",{errorCode:t.errorCode, errorDetail:t.errorDetail,message:t.errorMessage,messageKey:t.uY,cpn:t.cpn});(0,g.FH)()-this.Me.Df>6048E5&&this.m_.PZ("onReloadRequired")}t={};if(h.state.isPlaying()&&!h.state.isBuffering()&&!bW("pbresume","ad_to_video")&&bW("_start","ad_to_video")){var Y=this.getVideoData();t.clientPlaybackNonce=Y.clientPlaybackNonce;Y.videoId&&(t.videoId=Y.videoId);g.jC(t,"ad_to_video");sH("pbresume",void 0,"ad_to_video");$Rr(this.FD)}this.m_.publish("applicationplayerstatechange",h)}}; g.M.JB=function(h){this.eE.Wd||this.m_.publish("presentingplayerstatechange",h)}; g.M.hF=function(h){d1(this,Zo(h.state));g.R(h.state,1024)&&this.m_.isMutedByMutedAutoplay()&&(vK(this,{muted:!1,volume:this.VC.volume},!1),K6(this,!1))}; g.M.onPlayerRequestSent=function(h){this.m_.jM("onPlayerRequestSent",h)}; g.M.NUM=function(h,t){h==="newdata"&&slb(this);this.m_.publish("applicationvideodatachange",h,t)}; g.M.OZG=function(h,t){this.N("html5_afmt_change_update_volume")&&PQ3(this);this.m_.PZ("onPlaybackAudioChange",this.m_.getAudioTrack().j4.name);this.m_.publish("internalaudioformatchange",this.m_.getAudioTrack().j4.id,t)}; g.M.AJQ=function(h){var t=this.k8().getVideoData();h===t&&this.m_.Uz("onPlaybackQualityChange",h.T.video.quality)}; g.M.TA=function(){var h=this.eE.S[2]||null;h&&(h=h.getVideoData(),this.k8().Pm("ssdai",{cleanaply:1,acpn:h==null?void 0:h.clientPlaybackNonce,avid:h.videoId,isDai:this.n6().enableServerStitchedDai?1:0}),delete this.eE.S[2])}; g.M.ne_=function(h,t){this.KH(h,this.k8(),t)}; g.M.KH=function(h,t,Y){this.logger.debug(function(){return"on video data change "+h+", player type "+t.getPlayerType()+", vid "+Y.videoId}); this.Me.pZ()&&t.Pm("vdc",{type:h,vid:Y.videoId||"",cpn:Y.clientPlaybackNonce||""});t===this.x4()&&(this.Me.Ty=Y.oauthToken);t===this.x4()&&(this.getVideoData().enableServerStitchedDai&&!this.k0?(this.x4().Pm("sdai",{initSstm:1}),this.k0=this.N("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Jw1(this.m_,this.Me,this.x4(),this):new g.t4(this.m_,this.Me,this.x4(),this)):!this.getVideoData().enableServerStitchedDai&&this.k0&&(this.k0.dispose(),this.k0=null));if(h==="newdata")this.logger.debug("new video data, destroy modules"), vl(this.FD,2),this.m_.publish("videoplayerreset",t);else{if(!this.mediaElement)return;h==="dataloaded"&&(this.x4()===this.k8()?(md(Y.SM,Y.b$),J9n(this)):utb(this));t.getPlayerType()===1&&(this.Me.X5&&gdL(this),this.getVideoData().isLivePlayback&&!this.Me.xS&&this.MF("html5.unsupportedlive",2,"DEVICE_FALLBACK"),Y.isLoaded()&&((MK6(Y)||this.getVideoData().aM)&&this.m_.publish("legacyadtrackingpingchange",this.getVideoData()),Y.hasProgressBarBoundaries()&&Ogb(this)));this.m_.publish("videodatachange", h,Y,t.getPlayerType())}this.m_.Uz("onVideoDataChange",{type:h,playertype:t.getPlayerType()});this.Mt();var L=Y.Yn;L?this.FF.eS(L,Y.clientPlaybackNonce):WFL(this.FF)}; g.M.NI=function(){uX(this,null);this.m_.PZ("onPlaylistUpdate")}; g.M.ge5=function(h){delete this.l2[h.getId()];this.x4().removeCueRange(h);a:{h=this.getVideoData();var t,Y,L,q,z,V,l,H,w,W,y=((t=h.X5)==null?void 0:(Y=t.contents)==null?void 0:(L=Y.singleColumnWatchNextResults)==null?void 0:(q=L.autoplay)==null?void 0:(z=q.autoplay)==null?void 0:z.sets)||((V=h.X5)==null?void 0:(l=V.contents)==null?void 0:(H=l.twoColumnWatchNextResults)==null?void 0:(w=H.autoplay)==null?void 0:(W=w.autoplay)==null?void 0:W.sets);if(y)for(t=g.b(y),Y=t.next();!Y.done;Y=t.next())if(Y= Y.value,q=L=void 0,Y=Y.autoplayVideo||((L=Y.autoplayVideoRenderer)==null?void 0:(q=L.autoplayEndpointRenderer)==null?void 0:q.endpoint),L=g.A(Y,g.NZ),z=q=void 0,Y!=null&&((q=L)==null?void 0:q.videoId)===h.videoId&&((z=L)==null?0:z.continuePlayback)){h=Y;break a}h=null}(t=g.A(h,g.NZ))&&this.m_.jM("onPlayVideo",{sessionData:{autonav:"1",itct:h==null?void 0:h.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})}; g.M.mO=function(h){var t=this;h!==this.appState&&(this.logger.debug(function(){return"app state change "+t.appState+" -> "+h}),h===2&&this.getPresentingPlayerType()===1&&(d1(this,-1),d1(this,5)),this.appState=h,this.m_.publish("appstatechange",h))}; g.M.MF=function(h,t,Y,L,q){this.x4().Tm(h,t,Y,L,q)}; g.M.Op=Yb(13);g.M.isAtLiveHead=function(h,t){t=t===void 0?!1:t;var Y=this.N6({playerType:h});if(!Y)return this.eE.G.isAtLiveHead();h=Gx(this,Y);Y=Ql(this,Y);return h!==Y?h.isAtLiveHead(EG(this,Y.getCurrentTime(),Y),!0):h.isAtLiveHead(void 0,t)}; g.M.cS=function(){var h=this.N6({playerType:void 0});return h?Gx(this,h).cS():this.eE.G.cS()}; g.M.seekTo=function(h,t,Y,L,q){t=t!==!1;if(L=this.N6({playerType:L}))this.appState===2&&J4(this),this.t7(L)?kX(this)?this.k0.seekTo(h,{seekSource:q},t,Y):this.Do.seekTo(h,{seekSource:q},t,Y):L.seekTo(h,{d_:!t,Uw:Y,EY:"application",seekSource:q})}; g.M.seekBy=function(h,t,Y,L){this.seekTo(this.getCurrentTime()+h,t,Y,L)}; g.M.t45=function(){this.m_.Uz("SEEK_COMPLETE")}; g.M.lsb=function(){this.m_.jM("onAbnormalityDetected")}; g.M.MEi=function(h){this.m_.jM("onSnackbarMessage",h)}; g.M.h2_=function(h){var t=this.k8(),Y=t.getVideoData();if(this.appState===1||this.appState===2)Y.startSeconds=h;this.appState===2?g.R(t.getPlayerState(),512)||J4(this):this.m_.Uz("SEEK_TO",h)}; g.M.mD5=function(){this.m_.publish("airplayactivechange")}; g.M.HZ5=function(){this.m_.publish("airplayavailabilitychange")}; g.M.showAirplayPicker=function(){this.k8().GI()}; g.M.rC_=function(){this.m_.publish("beginseeking")}; g.M.v4P=function(){this.m_.publish("endseeking")}; g.M.getStoryboardFormat=function(h){return(h=this.N6({playerType:h}))?Gx(this,h).getStoryboardFormat():this.eE.G.getStoryboardFormat()}; g.M.xv=function(h){return(h=this.N6({playerType:h}))?Gx(this,h).getVideoData().xv():this.eE.G.xv()}; g.M.t7=function(h){h=(h||this.k8()).getVideoData();if(kX(this))h=h===this.k0.playback.getVideoData();else a:{var t=this.Do;if(h===t.G.getVideoData()&&t.T.length)h=!0;else{t=g.b(t.T);for(var Y=t.next();!Y.done;Y=t.next())if(h.OY===Y.value.OY){h=!0;break a}h=!1}}return h}; g.M.WP=function(h,t,Y,L,q,z,V,l){this.logger.debug(function(){return"Adding video to timeline id="+h.video_id+"\n lengthMs="+L+" enterTimeMs="+q}); var H="",w=kX(this);this.k8().Pm("appattl",{sstm:this.k0?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:w});w?(Y=lML(this.k0,h,t,Y,L,q,z,V,l),H=(Y==null?void 0:Y.OY)||"",this.N("html5_ssdai_new_decoration_logic")&&this.x4().mR(l||"",t,(Y==null?void 0:Y.clientPlaybackNonce)||"")):H=$Ip(this.Do,h,Y,L,q,z);this.logger.debug(function(){return"Video added to timeline id="+h.video_id+" timelinePlaybackId="+H}); return H}; g.M.FS=function(h,t,Y,L,q,z,V,l){if(kX(this)){var H=lML(this.k0,h,t,Y,L,q,z,V,l);this.logger.debug(function(){return"Remaining video added to timeline id="+h.video_id+" timelinePlaybackId="+H})}return""}; g.M.pS=function(h){this.N("html5_ssdai_new_decoration_logic")&&this.x4().mR(h,"","");var t;(t=this.k0)==null||t.pS(h)}; g.M.A$=function(h,t){h=h===void 0?-1:h;t=t===void 0?Infinity:t;kX(this)||DI$(this.Do,h,t)}; g.M.Ha=function(h,t,Y){if(kX(this)){var L=this.k0,q=L.G.W.get(h);q?(Y===void 0&&(Y=q.Ai),MZ$(L,q,t,Y)):L.NS("Invalid_timelinePlaybackId_"+h+"_specified")}else{L=this.Do;q=null;for(var z=g.b(L.T),V=z.next();!V.done;V=z.next())if(V=V.value,V.OY===h){q=V;break}q?(Y===void 0&&(Y=q.Ai),mIn(L,q,t,Y)):yl(L,"InvalidTimelinePlaybackId timelinePlaybackId="+h)}}; g.M.enqueueVideoByPlayerVars=function(h,t,Y,L){Y=Y===void 0?Infinity:Y;L=L===void 0?"":L;this.t7();h=new g.i6(this.Me,h);L&&(h.OY=L);nS3(this,h,t,Y)}; g.M.queueNextVideo=function(h,t,Y,L,q){Y=Y===void 0?NaN:Y;h=this.preloadVideoByPlayerVars(h,t===void 0?1:t,Y,L===void 0?"":L,q===void 0?"":q);t=this.k8();h&&(this.N("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&t.getVideoData().C&&(Y=this.BF,L=this.Sk.X,Y.W!==h&&(Y.T=t,Y.W=h,Y.S=1,Y.G=h.getVideoData(),Y.X=L,Y.G.isLoaded()?Y.U():Y.G.subscribe("dataloaded",Y.U,Y))):(Y=cFW(t,h,this.Sk.X),Y!=null?(t.Pm("sgap",Y),t.getVideoData().C&&t.C4(!1)):(h=h.getVideoData(),t=this.BF,t.G!== h&&(t.G=h,t.S=1,h.isLoaded()?t.C():t.G.subscribe("dataloaded",t.C,t)))))}; g.M.Oj=function(h,t,Y,L){var q=this;Y=Y===void 0?0:Y;L=L===void 0?0:L;Gx(this,this.k8()).ox();OTn(this.Sk,h,t,Y,L).then(function(){q.m_.PZ("onQueuedVideoLoaded")},function(){})}; g.M.RT=function(){return this.Sk.RT()}; g.M.i8=function(h){var t=this.Sk.G;return t?t.GS(h):!1}; g.M.clearQueue=function(h,t){h=h===void 0?!1:h;t=t===void 0?!1:t;this.logger.debug("Clearing queue");this.Sk.clearQueue(h,t)}; g.M.loadVideoByPlayerVars=function(h,t,Y,L,q,z){t=t===void 0?1:t;var V=this.x4();if(t===2&&this.n6().enableServerStitchedDai&&V&&!V.jm())return V.Pm("lvonss",{vid:(h==null?void 0:h.videoId)||"",ptype:t}),!1;var l=!1;V=new g.i6(this.Me,h);V.xa=z;g.lC(this.Me)&&!V.w0&&ZG(this.Wq);var H;z=this.Wq;var w=(H=V.L)!=null?H:"";z.timerName=w;this.Wq.qF("pl_i");this.N("web_player_early_cpn")&&V.clientPlaybackNonce&&this.Wq.infoGel({clientPlaybackNonce:V.clientPlaybackNonce});Smp(V).supportsVp9Encoding===!1&& this.k8().Pm("noVp9enc",{});if(this.J().supportsGaplessShorts()){H=$8i(this.Sk,V,t);if(H==null){d1(this,-1);var W;!this.N("html5_shorts_gapless_reset_ad_module")||((W=this.Sk.G)==null?0:W.getVideoData().isAd())||OG(this);h=this.Sk;h.app.J().N("html5_gapless_new_slr")?xX(h.app,"gaplessshortslooprange"):h.app.setLoopRange(null);h.app.J().N("html5_gapless_remove_videoplaytime100_cuerange")&&h.app.Ks("videoplaytime100");h.app.getVideoData().t5=!0;var y;(y=h.G)==null||y.wO();var X;(X=h.G)==null||X.rC(); Y={EY:"gapless_to_next_video",seekSource:60,BW:h.X.G};L=g.Sk(h.app.J().experiments,"html5_gapless_seek_offset");q=fOb(h);if(h.X.G){var U;V=((U=h.S)==null?void 0:ne(U))||{};U=V.Q8;V=V.HU;V!=null&&U!=null&&(q=V-U+.001)}var C;(C=h.app.k8())==null||C.seekTo(q+L,Y);if(!h.app.getPlayerStateObject(t).isPlaying()){var d;(d=h.app.k8())==null||d.playVideo(!0)}var Q;(Q=h.app.k8())==null||Q.TN();h.C();return!0}C=this.N("html5_shorts_gapless_preload_fallback");d=this.Sk.G;C&&d&&!d.Ui()&&(Q=d.getVideoData(),Q= this.Me.N("html5_autonav_autoplay_in_preload_key")?n6(this,t,Q):f6(this,t,Q.videoId,Q.OY),this.eE.X.set(Q,d,3600));this.Sk.clearQueue(C);this.k8().Pm("sgap",{f:H})}if(q){for(;V.Kq.length&&V.Kq[0].isExpired();)V.Kq.shift();C=V.Kq.length-1;l=C>0&&q.T(V.Kq[C])&&q.T(V.Kq[C-1]);V.Kq.push(q)}Y||(h&&CXD(h)?(YD(this.Me)&&!this.KN&&(h.fetch=0),uX(this,h)):this.playlist&&uX(this,null),h&&(this.KN=B2(!1,h.external_list)));this.m_.publish("loadvideo");C=this.Rd(V,t,L);l&&this.MF("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN", ("loadvideo.1;emsg."+V.Kq.join()).replace(/[;:,]/g,"_"));return C}; g.M.preloadVideoByPlayerVars=function(h,t,Y,L,q){t=t===void 0?1:t;Y=Y===void 0?NaN:Y;L=L===void 0?"":L;q=q===void 0?"":q;var z="";if(this.Me.N("html5_autonav_autoplay_in_preload_key"))z=$EL(this,t,h,q);else{var V=tG(h);z=f6(this,t,V,q)}if(V=this.eE.X.get(z)||null)return this.logger.debug(function(){return"already preloaded "+z}),this.N("html5_return_playback_if_already_preloaded")?V:null; h=new g.i6(this.Me,h);q&&(h.OY=q);return far(this,h,t,Y,L)}; g.M.setMinimized=function(h){this.visibility.setMinimized(h);(h=SG$(this.FD))&&(this.isMinimized()?h.load():h.unload());this.m_.publish("minimized")}; g.M.setInline=function(h){this.visibility.setInline(h)}; g.M.setInlinePreview=function(h){this.visibility.setInline(h)}; g.M.i_=function(h){A9L(this,h)||this.visibility.i_(h)}; g.M.setSqueezeback=function(h){this.visibility.setSqueezeback(h)}; g.M.jy=function(){var h,t=(h=this.mediaElement)==null?void 0:h.gP();t&&(this.Me.ip&&GB(b1(function(){return document.exitFullscreen()}),function(){}),GB(b1(function(){return wK(t)}),function(){}))}; g.M.YYU=function(){this.mediaElement.gP();this.mediaElement.gP().webkitPresentationMode==="picture-in-picture"?this.i_(!0):this.i_(!1)}; g.M.togglePictureInPicture=function(){this.k8().togglePictureInPicture()}; g.M.Rd=function(h,t,Y){t=t===void 0?1:t;this.logger.debug(function(){return"start load video, id "+h.videoId+", type "+t}); bW("_start",this.Wq.timerName)||g.f$(WN)(void 0,this.Wq.timerName);var L=!1,q=KF3(this,t,h,!1);q?(L=!0,h.dispose()):(q=bX(this,t,h,!0,Y),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&q.Pz()&&q.VR(),this.BY.stop(),t===1&&t!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,t),this.D6(q));q===this.x4()&&(this.Me.Ty=h.oauthToken);if(!q.Pz())return!1;if(q===this.x4())return this.mO(1),Y=J4(this),L&&this.N("html5_player_preload_ad_fix")&&q.getPlayerType()===1&& q.s4()&&this.KH("dataloaded",q,q.getVideoData()),Y;q.Vj();return!0}; g.M.cueVideoByPlayerVars=function(h,t){var Y=this;t=t===void 0?1:t;var L=this.x4();if(this.n6().enableServerStitchedDai&&L&&!L.jm()&&h&&Object.keys(h).length>0)L.Pm("qvonss",{vid:(h==null?void 0:h.videoId)||"",ptype:t});else if(h&&CXD(h))if(this.iF=!0,uX(this,h),(h=g.bG(this.playlist))&&h.ra())Tx(this,h,t);else this.playlist.onReady(function(){ex(Y)}); else{t||(t=this.getPresentingPlayerType());t===1&&this.NI();L=new g.i6(this.Me,h);var q=g.kk(this.Me)&&!this.Me.x8&&t===1&&!L.isAd()&&!L.Cr;this.m_.publish("cuevideo");q?(this.k8().getVideoData().loading=!0,oXD(L,h?h:{}).then(function(z){Tx(Y,z,t)}),L.dispose()):Tx(this,L,t)}}; g.M.bJ=function(h,t,Y,L,q,z,V){if(!h&&!Y)throw Error("Playback source is invalid");if(nw(this.Me)||g.LV(this.Me))return t=t||{},t.lact=X2(),t.vis=this.m_.getVisibilityState(),this.m_.jM("onPlayVideo",{videoId:h,watchEndpoint:z,sessionData:t,listId:Y}),!1;XKb(this.Wq);this.Wq.reset();h={video_id:h};L&&(h.autoplay="1");L&&(h.autonav="1");z&&(h.player_params=z.playerParams);V&&(h.oauth_token=V);Y?(h.list=Y,this.loadPlaylist(h)):this.loadVideoByPlayerVars(h,1);return!0}; g.M.cuePlaylist=function(h,t,Y,L){this.iF=!0;Stp(this,h,t,Y,L)}; g.M.loadPlaylist=function(h,t,Y,L){this.iF=!1;Stp(this,h,t,Y,L)}; g.M.u1=function(){return this.m_.isMutedByMutedAutoplay()?!1:this.eE.Wd?!0:!(!this.playlist||!this.playlist.fH())}; g.M.pz=Yb(5); g.M.nextVideo=function(h,t){var Y=g.l6(this.x4().getVideoData());g.OY(this.m_)&&Y?this.bJ(Y.videoId,t?Y.t6:Y.sessionData,Y.playlistId,t,void 0,Y.HO||void 0):this.KN?this.m_.PZ("onPlaylistNext"):this.getPresentingPlayerType()===3?v5(this.FD).nextVideo():!this.playlist||YD(this.Me)&&!this.m_.isFullscreen()||(this.playlist.fH(h)&&sXL(this.playlist,MxL(this.playlist)),this.playlist.loaded?(h=t&&this.Me.N("html5_player_autonav_logging"),t&&this.m_.publish("playlistautonextvideo"),this.Rd(g.bG(this.playlist,void 0, t,h),1)):this.iF=!1)}; g.M.previousVideo=function(h){this.KN?this.m_.PZ("onPlaylistPrevious"):this.getPresentingPlayerType()===3?v5(this.FD).NH():!this.playlist||YD(this.Me)&&!this.m_.isFullscreen()||(this.playlist.B0(h)&&sXL(this.playlist,FWW(this.playlist)),this.playlist.loaded?this.Rd(g.bG(this.playlist),1):this.iF=!1)}; g.M.playVideoAt=function(h){this.KN?this.m_.PZ("onPlaylistIndex",h):this.playlist&&(this.playlist.loaded?this.Rd(g.bG(this.playlist,h),1):this.iF=!1,sXL(this.playlist,h))}; g.M.getPlaylist=function(){return this.playlist}; g.M.Z5=Yb(19);g.M.Ks=function(h){this.Wg=g.oK(this.Wg,function(z){return z.id!==h}); for(var t=this.x4(),Y=t.AF(),L=0;L0&&(H=Math.floor(w/1E3))}H=t?t.cZ:H;var W={AD_BLOCK:this.G++,AD_BREAK_LENGTH:H,AUTONAV_STATE:IX(this.player.J()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.cS()*1E3,LACT:X2(),LIVE_INDEX:t?this.S++:1,LIVE_TARGETING_CONTEXT:t&&t.context?t.context:"",MIDROLL_POS:z? Math.round(z.start/1E3):0,MIDROLL_POS_MS:z?Math.round(z.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Bm().oT().height,P_W:this.player.Bm().oT().width,YT_REMOTE:q?q.join(","):""},y=iZ(t7);Object.keys(y).forEach(function(U){y[U]!=null&&(W[U.toUpperCase()]=y[U].toString())}); Y!==""&&(W.BISCOTTI_ID=Y);Y={};h7(h)&&(Y.sts="20277",(t=this.player.J().forcedExperiments)&&(Y.forced_experiments=t));var X=PB(g.b3(h,W),Y);return X.split("?").length!==2?Qm(Error("Invalid AdBreakInfo URL")):g.Up(this.player.J(),l==null?void 0:l.oauthToken).then(function(U){if(U&&DF()){var C=$l();TM(C,U)}U=L.player.D3(C);C=dgL(L,X,W,l.isMdxPlayback,V);return g.r2(U,C,"/youtubei/v1/player/ad_break").then(function(d){return d})})}; RX.prototype.reset=function(){this.S=this.G=1};g.F(Gpn,RX); Gpn.prototype.T=function(h,t,Y){t=t===void 0?{}:t;var L=t.RN;var q=t.Ze;var z=t.cueProcessedMs;Y=Y===void 0?"":Y;t=this.G;this.G++;var V=this.player.J().N("h5_disable_macro_substitution_in_get_ad_break")?h:Qw1(this,h,{RN:L,Ze:q,cueProcessedMs:z},Y,t);if(V.split("?").length!==2)return Math.random()<.1&&g.bc(Error("Invalid AdBreakInfo URL")),Qm(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,H=Y;Y=MvL.exec(V);Y=Y!=null&&Y.length>=2?Y[1]:"";h=Frp.test(V);var w=sw1.exec(V); w=w!=null&&w.length>=2?w[1]:"";var W=jw6.exec(V);W=W!=null&&W.length>=2&&!Number.isNaN(Number(W[1]))?Number(W[1]):1;var y=Z9L.exec(V);y=y!=null&&y.length>=2?y[1]:"0";var X=Pc(this.player.J().Xv),U=g.fs(this.player.getVideoData(1).Zx,!0);wjp(this,U,V,H===""?"":H,this.player.J(),this.player.getVideoData(1));H={splay:!1,lactMilliseconds:String(X2()),playerHeightPixels:Math.trunc(this.player.Bm().oT().height),playerWidthPixels:Math.trunc(this.player.Bm().oT().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20277,autonavState:IX(this.player.J())};if(l){l={};var C=this.player.J().dS;Xji(l,C?C.join(","):"")&&(H.mdxContext=l)}if(l=b9b.includes(X)?void 0:g.c2("PREF")){C=l.split(RegExp("[:&]"));for(var d=0,Q=C.length;d1&&J[1].toUpperCase()==="TRUE"){U.user.lockedSafetyMode=!0;break}}H.autoCaptionsDefaultOn=CgL(l)}V=odW.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&w&&(U.user.credentialTransferTokens= [{token:V,scope:"VIDEO"}]);V={contentPlaybackContext:H};H=this.player.getVideoData(1).getGetAdBreakContext();l=this.player.getVideoData(1).clientPlaybackNonce;C=z!==void 0?Math.round(z).toString():void 0;d=(L==null?0:L.context)?L.context:void 0;Q=0;z&&q&&!L&&(q=q.end-q.start,q>0&&(Q=Math.floor(q/1E3)));L=(L=Math.trunc((L?L.cZ:Q)*1E3))?String(L):void 0;q=this.player.cS()*1E3;q=Number.isNaN(q)?0:Math.trunc(q);t={adBlock:t,params:Y,breakIndex:W,breakPositionMs:y,clientPlaybackNonce:l,topLevelDomain:X, isProxyAdTagRequest:h,context:U,overridePlaybackContext:V,cueProcessedMs:C,videoId:w?w:void 0,liveTargetingParams:d,breakLengthMs:L,driftFromHeadMs:q?String(q):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:H?H:void 0};return rcb(this,t)};var vMn={oDz:"replaceUrlMacros",NVx:"onAboutThisAdPopupClosed",fki:"executeCommand"};ccW.prototype.pV=function(){return"adPingingEndpoint"}; ccW.prototype.dN=function(h,t,Y){Wbp(this.fb.get(),h,t,Y)};uU1.prototype.pV=function(){return"changeEngagementPanelVisibilityAction"}; uU1.prototype.dN=function(h){this.K.jM("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:h})};eTD.prototype.pV=function(){return"loggingUrls"}; eTD.prototype.dN=function(h,t,Y){h=g.b(h);for(var L=h.next();!L.done;L=h.next())L=L.value,Wbp(this.fb.get(),L.baseUrl,t,Y,L.attributionSrcMode)};g.F(pjW,g.O);g.F(PK,g.O);g.M=PK.prototype;g.M.addListener=function(h){this.listeners.push(h)}; g.M.removeListener=function(h){this.listeners=this.listeners.filter(function(t){return t!==h})}; g.M.rS=function(h,t,Y,L,q,z,V,l){if(h==="")gP("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(h!==this.G||Y){this.G=h;this.QG.get().rS(h,t,Y,L,q,z,V,l);this.Dx.get().rS(h,t,Y,L,q,z,V,l);var H;(H=this.HZ)==null||H.get().rS(h,t,Y,L,q,z,V,l);this.T.rS(h,t,Y,L,q,z,V,l);H=g.b(this.listeners);for(var w=H.next();!w.done;w=H.next())w.value.rS(h,t,Y,L,q,z,V,l)}else gP("Duplicate content video loaded signal")}; g.M.o4_=function(){this.G&&this.fq(this.G)}; g.M.fq=function(h){this.G=void 0;for(var t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.fq(h)};mW.prototype.bv=function(h,t,Y,L,q){vdn(this);this.X=!t&&Y===0;var z=this.K.getVideoData(1),V=this.K.getVideoData(2);z&&(this.contentCpn=z.clientPlaybackNonce,this.videoId=z.videoId,this.G=z.U);V&&(this.adCpn=V.clientPlaybackNonce,this.adVideoId=V.videoId,this.adFormat=V.adFormat);this.W=h;L<=0?(vdn(this),this.X=!t&&Y===0):(this.actionType=this.X?t?"unknown_type":"video_to_ad":t?"ad_to_video":"ad_to_ad",this.videoStreamType=q?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.S=!0,bW("_start",this.actionType)&&xgW(this)))}; mW.prototype.reset=function(){return new mW(this.K)};g.F(D_,g.O);D_.prototype.addCueRange=function(h,t,Y,L,q,z,V,l){z=z===void 0?3:z;V=V===void 0?1:V;this.G.has(h)?gP("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:h}):(h=new Edr(h,t,Y,L,z,l),this.G.set(h.id,{Ze:h,listener:q,zI:V}),this.K.Ji([h],V))}; D_.prototype.removeCueRange=function(h){var t=this.G.get(h);t?(this.K.d4([t.Ze],t.zI),this.G.delete(t.Ze.id)):gP("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:h})}; D_.prototype.onCueRangeEnter=function(h){if(this.G.has(h.id))this.G.get(h.id).listener.onCueRangeEnter(h.id)}; D_.prototype.onCueRangeExit=function(h){if(this.G.has(h.id))this.G.get(h.id).listener.onCueRangeExit(h.id)}; g.F(Edr,g.aZ);hM.prototype.addPlayerResponseForAssociation=function(h){this.K.addPlayerResponseForAssociation(h)};tM.prototype.R9=function(h){this.K.R9(h)}; tM.prototype.Vy=function(h){var t=g.OL.apply(1,arguments);h==="onAdStart"||h==="onAdEnd"?this.K.Uz.apply(this.K,[h].concat(g.p(t))):this.K.jM.apply(this.K,[h].concat(g.p(t)))};iD.prototype.Sh=function(h){return h&&gT(this)};var Pgi=null;g.F(BHD,g.PD);BHD.prototype.vy=function(h){return this.G.hasOwnProperty(h)?this.G[h].vy():{}}; g.t3("ytads.bulleit.getVideoMetadata",function(h){return Yx().vy(h)}); g.t3("ytads.bulleit.triggerExternalActivityEvent",function(h,t,Y){var L=Yx();Y=RTD(Y);Y!==null&&L.publish(Y,{queryId:h,viewabilityString:t})});g.M=L5.prototype;g.M.iZ=function(h,t){if(!this.G.has(h))return{};if(t==="seek"){t=!1;t=t===void 0?!1:t;var Y=s2($A).zd(h,{});Y?Ei(Y):t&&(h=s2($A).ZV(null,uo(),!1,h),h.CI=3,omp([h]));return{}}t=Dgc(t);if(t===null)return{};var L=this.K.kA();if(!L)return{};var q=this.K.getPresentingPlayerType(!0);if((Y=this.K.getVideoData(q))==null||!Y.isAd())return{};Y={opt_adElement:L,opt_fullscreen:this.QG.get().isFullscreen()};return o6L(t,h,Y)}; g.M.Rw=function(h,t,Y,L,q){this.G.has(h)&&(L<=0||q<=0||s2($A).Rw(h,t,Y,L,q))}; g.M.N5=function(h){var t;(t=this.G.get(h.queryId))==null||t.N5()}; g.M.X0=function(h){var t;(t=this.G.get(h.queryId))==null||t.X0()}; g.M.Cl=function(h){var t;(t=this.G.get(h.queryId))==null||t.Cl()}; g.M.fl=function(h){var t;(t=this.G.get(h.queryId))==null||t.fl()}; g.M.Uf=function(h){var t;(t=this.G.get(h.queryId))==null||t.Uf()};Vg1.prototype.send=function(h,t,Y,L){try{NV$(this,h,t,Y,L===void 0?!1:L)}catch(q){}};g.F(lnL,Vg1);HJW.prototype.send=function(h,t,Y,L){var q=!1;try{if(L==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||L==="ATTRIBUTION_SRC_MODE_XHR_OPTION")q=!0,h=VR6(h);L=q;var z=g.zF(h);if(z[1]==="https")var V=h;else z[1]="https",V=qw("https",z[2],z[3],z[4],z[5],z[6],z[7]);var l=z6L(V);z=[];var H=RjL(V)&&this.uP.get().K.J().experiments.I0("add_auth_headers_to_remarketing_google_dot_com_ping");if(h7(V)||H)z.push({headerType:"USER_AUTH"}),z.push({headerType:"PLUS_PAGE_ID"}),z.push({headerType:"VISITOR_ID"}),z.push({headerType:"EOM_VISITOR_ID"}), z.push({headerType:"AUTH_USER"}),z.push({headerType:"DATASYNC_ID"});this.G.send({baseUrl:V,scrubReferrer:l,headers:z},t,Y,L)}catch(w){}};lD.prototype.uZ=function(){return this.K.uZ(1)};g.F(Ha,g.O);g.M=Ha.prototype;g.M.gV=function(){return this.K.getVideoData(1).clientPlaybackNonce}; g.M.addListener=function(h){this.listeners.push(h)}; g.M.removeListener=function(h){this.listeners=this.listeners.filter(function(t){return t!==h})}; g.M.rS=function(){this.bN.clear();this.u6=null;this.Jv.get().clear()}; g.M.fq=function(){}; g.M.R9b=function(h,t,Y,L,q){t.videoId==="nPpU29QrbiU"&&this.K.Pm("ads_ssm_vdc_s",{pt:Y,dvt:h});pn(this.uP.get())&&h!=="dataloaded"||sIp(this,t,Y);if(gT(this.uP.get())&&h==="newdata"&&q!==void 0){h=this.gV();var z=t.clientPlaybackNonce,V={};i_(this,"rte",(V.ec=z,V.xc=L==null?void 0:L.clientPlaybackNonce,V.tr=q,V.pt=Y,V.ia=z!==h,V.ctp=ty(z),V));t=t.clientPlaybackNonce;L=L==null?void 0:L.clientPlaybackNonce;q=jI6(q);if(q!==1)if(L!==void 0)for(Y=g.b(this.listeners),h=Y.next();!h.done;h=Y.next())h.value.Vg(L, t,q);else gP("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:t,transitionReason:String(q)});q=g.b(this.listeners);for(L=q.next();!L.done;L=q.next())L.value.Ob(t)}}; g.M.j4m=function(h,t){h!==void 0&&(this.u6=h,t===void 0?gP("Expected ad video start time on SS video changed"):this.bN.set(h,t));var Y=this.K.getPresentingPlayerType(!0),L=this.K.getVideoData(Y),q;h===void 0?q=null:q=this.Jv.get().G.get(h)||null;this.K.getVideoData(1).Pm("ads_ssvc",{pt:Y,cpn:L==null?void 0:L.clientPlaybackNonce,crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:t,pid:h,slid:q==null?void 0:q.layoutId});L?sIp(this,L,Y):gP("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.K.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:h})}; g.M.B6=function(h,t){var Y=h.author,L=h.clientPlaybackNonce,q=h.isListed,z=h.OY,V=h.title,l=h.qq,H=h.Y9,w=h.isMdxPlayback,W=h.iJ,y=h.mdxEnvironment,X=h.isAutonav,U=h.le,C=h.w0,d=h.C1,Q=h.videoId||"",J=h.profilePicture||"",e=h.IJ||"",v=h.m2()||!1,E=h.JJ()||!1;h=h.mC||void 0;z=this.Jv.get().G.get(z)||{layoutId:null,slotId:null};var T=this.K.getVideoData(1),hr=T.fZ();T=T.getPlayerResponse();t=1E3*this.K.getDuration(t);var B=1E3*this.K.getDuration(1),q1,V6,zn=(T==null?void 0:(q1=T.playerConfig)==null? void 0:(V6=q1.daiConfig)==null?void 0:V6.enableDai)||!1,w3,ii;q1=(T==null?void 0:(w3=T.playerConfig)==null?void 0:(ii=w3.daiConfig)==null?void 0:ii.enablePreroll)||!1;return Object.assign({},z,{videoId:Q,author:Y,clientPlaybackNonce:L,eD:t,JF:B,daiEnabled:zn,En:q1,isListed:q,fZ:hr,profilePicture:J,title:V,IJ:e,qq:l,Y9:H,mC:h,isMdxPlayback:w,iJ:W,mdxEnvironment:y,isAutonav:X,le:U,w0:C,C1:d,m2:v,JJ:E})}; g.M.Gz=function(){this.listeners.length=0;this.TP=null;g.O.prototype.Gz.call(this)};g.F(wT,g.O);g.M=wT.prototype;g.M.rS=function(){var h=this;gT(this.uP.get())||(this.G=vb(function(){h.K.Ui()||h.K.nC("ad",1)}))}; g.M.fq=function(){}; g.M.addListener=function(h){this.listeners.push(h)}; g.M.removeListener=function(h){this.listeners=this.listeners.filter(function(t){return t!==h})}; g.M.J4=function(){}; g.M.playVideo=function(){this.K.playVideo()}; g.M.pauseVideo=function(){this.K.pauseVideo()}; g.M.resumeVideo=function(h){this.b4(h)&&this.K.playVideo()}; g.M.b4=function(h){return this.K.getPlayerState(h)===2}; g.M.getCurrentTimeSec=function(h,t,Y){var L=this.Dx.get().u6;if(h===2&&!t&&L!==null)return Xf(this,L);ry(this.uP.get(),"html5_ssap_use_cpn_to_get_time")||(Y=void 0);return Y!==void 0?this.K.getCurrentTime(h,t,Y):this.K.getCurrentTime(h,t)}; g.M.getVolume=function(){return this.K.getVolume()}; g.M.isMuted=function(){return this.K.isMuted()}; g.M.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType(!0)}; g.M.getPlayerState=function(h){return this.K.getPlayerState(h)}; g.M.getGetAdBreakContext=function(){return this.K.getGetAdBreakContext()}; g.M.isFullscreen=function(){return this.K.isFullscreen()}; g.M.isAtLiveHead=function(){return this.K.isAtLiveHead()}; g.M.HL=function(h){this.K.HL(h)}; g.M.cJm=function(){var h=this.K.getPresentingPlayerType(!0),t=this.getCurrentTimeSec(h,!1);if(h===2){h=g.b(this.listeners);for(var Y=h.next();!Y.done;Y=h.next())Y.value.lM(t)}else if(h===1)for(h=g.b(this.Vd),Y=h.next();!Y.done;Y=h.next())Y.value.J4(t)}; g.M.bZi=function(h){for(var t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.H2(h,this.getPresentingPlayerType())}; g.M.onFullscreenToggled=function(h){for(var t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.onFullscreenToggled(h)}; g.M.onVolumeChange=function(){for(var h=g.b(this.listeners),t=h.next();!t.done;t=h.next())t.value.onVolumeChange()}; g.M.Em=function(){for(var h=this.K.isMinimized(),t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.Em(h)}; g.M.yP=function(h){for(var t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.yP(h)}; g.M.Bq=function(){for(var h=this.K.Bm().oT(),t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.sL(h)}; g.M.VP=function(h){for(var t=g.b(this.listeners),Y=t.next();!Y.done;Y=t.next())Y.value.VP(h)}; g.M.Fn=function(){for(var h=g.b(this.listeners),t=h.next();!t.done;t=h.next())t.value.Fn()};g.F(dj3,g.O);g.F(Md,g.O);Md.prototype.Gz=function(){this.wH.Ui()||this.wH.get().removeListener(this);g.O.prototype.Gz.call(this)};Ff.prototype.fetch=function(h){var t=h.bl;return this.G.fetch(h.Ow,{RN:h.RN===void 0?void 0:h.RN,Ze:t,cueProcessedMs:h.cueProcessedMs===void 0?0:h.cueProcessedMs}).then(function(Y){return Gh1(Y,t)})};g.F(sU,g.O);g.M=sU.prototype;g.M.addListener=function(h){this.listeners.push(h)}; g.M.removeListener=function(h){this.listeners=this.listeners.filter(function(t){return t!==h})}; g.M.QJ=function(h){QIL(this,h,1)}; g.M.onAdUxClicked=function(h,t){jO(this,function(Y){Y.G3(h,t)})}; g.M.vv=function(h){jO(this,function(t){t.R_(h)})}; g.M.Vo=function(h){jO(this,function(t){t.u8(h)})}; g.M.z58=function(h){jO(this,function(t){t.fM(h)})};Ze.prototype.reduce=function(h){switch(h.event){case "unknown":return}var t=h.identifier;var Y=this.G[t];Y?t=Y:(Y={vP:null,N8:-Infinity},t=this.G[t]=Y);Y=h.startSecs+h.G/1E3;if(!(Y=this.G.startSecs&&Y.startSecs<=this.G.startSecs+this.G.cZ)){var L=void 0;if(vU(this.uP.get())&&Y.identifier!==((L=this.G)==null?void 0:L.identifier)){var q=L=void 0,z=void 0,V=void 0;yN(this.fb.get(),"ocud","ccpi."+Y.identifier+";ccpe."+Y.event+";ccps."+Y.startSecs+";\n ccpd."+Y.cZ+";pcpi."+((L=this.G)==null?void 0:L.identifier)+ ";pcpe."+((q=this.G)==null?void 0:q.event)+";\n pcps."+((z=this.G)==null?void 0:z.startSecs)+";pcpd."+((V=this.G)==null?void 0:V.cZ)+";")}L=void 0;Y.identifier!==((L=this.G)==null?void 0:L.identifier)&&gP("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.G=Y,ubr(this,Y)}}; g.M.Gz=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.IZ,this),this.T=null);this.listeners.length=0;this.Yp.length=0;g.O.prototype.Gz.call(this)};g.M=dT.prototype;g.M.WP=function(h,t,Y,L,q,z,V){return this.K.WP(h,t,Y,L,q,z,V)}; g.M.A$=function(h,t){this.K.A$(h,t)}; g.M.Ha=function(h,t,Y){this.K.Ha(h,t,Y)}; g.M.pS=function(h){this.K.pS(h)}; g.M.FS=function(h,t,Y,L,q,z,V){return this.K.FS(h,t,Y,L,q,z,V)}; g.M.Fe=function(h){return this.K.Fe(h)}; g.M.finishSegmentByCpn=function(h,t,Y){Y=p9i(Y);this.K.finishSegmentByCpn(h,t,Y)};g.F(G8,g.O);g.F(KbL,g.O);g.F(an1,g.O);g.F(xj6,g.O);g.F(E8n,g.O);g.F(khL,g.O);g.F(n8b,g.O);n8b.prototype.S=function(){return this.T};g.F(fn6,Kc); fn6.prototype.S=function(h){var t=h.content;if(t.componentType==="shopping-companion")switch(h.actionType){case 1:case 2:h=this.G.getVideoData(1);this.G.jM("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId,shoppingCompanionCarouselRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.G,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:this.G.jM("updateKevlarOrC3Companion",{})}else if(t.componentType==="action-companion")switch(h.actionType){case 1:case 2:h=this.G.getVideoData(1); this.G.jM("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId,actionCompanionAdRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.G,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t.renderer&&(t=this.G.getVideoData(1),this.G.jM("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId})),this.G.jM("updateKevlarOrC3Companion",{})}else if(t.componentType==="image-companion")switch(h.actionType){case 1:case 2:h=this.G.getVideoData(1);this.G.jM("updateKevlarOrC3Companion", {contentVideoId:h&&h.videoId,imageCompanionAdRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.G,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t=this.G.getVideoData(1),this.G.jM("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId}),this.G.jM("updateKevlarOrC3Companion",{})}else if(t.componentType==="top-banner-image-text-icon-buttoned")switch(h.actionType){case 1:case 2:h=this.G.getVideoData(1);this.G.jM("updateKevlarOrC3Companion", {contentVideoId:h&&h.videoId,topBannerImageTextIconButtonedLayoutViewModel:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.G,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t.renderer&&(t=this.G.getVideoData(1),this.G.jM("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId})),this.G.jM("updateKevlarOrC3Companion",{})}else if(t.componentType==="banner-image")switch(h.actionType){case 1:case 2:h=this.G.getVideoData(1);this.G.jM("updateKevlarOrC3Companion", {contentVideoId:h&&h.videoId,bannerImageLayoutViewModel:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.G,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t=this.G.getVideoData(1),this.G.jM("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId}),this.G.jM("updateKevlarOrC3Companion",{})}else if(t.componentType==="ads-engagement-panel")switch(t=t.renderer,h.actionType){case 1:case 2:this.G.jM("updateEngagementPanelAction",t.addAction);this.G.jM("changeEngagementPanelVisibility", t.expandAction);break;case 3:this.G.jM("changeEngagementPanelVisibility",t.hideAction),this.G.jM("updateEngagementPanelAction",t.removeAction)}else if(t.componentType==="ads-engagement-panel-layout"){var Y=t.renderer;switch(h.actionType){case 1:case 2:this.G.jM("updateEngagementPanelAction",{action:Qy(Y.addAction),layoutId:t.layoutId,onLayoutVisibleCallback:t.G,interactionLoggingClientData:t.interactionLoggingClientData});this.G.jM("changeEngagementPanelVisibility",Qy(Y.expandAction));break;case 3:this.G.jM("changeEngagementPanelVisibility", Qy(Y.hideAction)),this.G.jM("updateEngagementPanelAction",{action:Qy(Y.removeAction)})}}};g.F($jW,$7);g.M=$jW.prototype;g.M.init=function(h,t,Y){$7.prototype.init.call(this,h,t,Y);g.$9(this.S,"stroke-dasharray","0 "+this.T);this.S.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.M.clear=function(){this.hide()}; g.M.hide=function(){As(this);$7.prototype.hide.call(this)}; g.M.show=function(){T6(this);$7.prototype.show.call(this)}; g.M.DD=function(){this.hide()}; g.M.rV=function(){if(this.G){var h=this.G.getProgressState();h!=null&&h.current!=null&&g.$9(this.S,"stroke-dasharray",h.current/h.seekableEnd*this.T+" "+this.T)}};g.F(TVD,g7);g.M=TVD.prototype; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);if(t.image&&t.image.thumbnail)if(t.headline)if(t.description)if(t.backgroundImage&&t.backgroundImage.thumbnail)if(t.actionButton&&g.A(t.actionButton,g.IB))if(h=t.durationMilliseconds||0,typeof h!=="number"||h<=0)g.ZD(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+h));else if(t.navigationEndpoint){var L=this.api.getVideoData(2);if(L!=null){var q=t.image.thumbnail.thumbnails;q!=null&& q.length>0&&g.e$(g.Ja(q[0].url))&&(q[0].url=L.profilePicture,g.e$(g.Ja(L.profilePicture))&&nWb("VideoPlayer",239976093,"Expected non-empty profile picture."));q=t.backgroundImage.thumbnail.thumbnails;q!=null&&q.length>0&&g.e$(g.Ja(q[0].url))&&(q[0].url=L.TZ());q=t.headline;q!=null&&g.e$(g.Ja(q.text))&&(q.text=L.author)}this.L.init(RA("ad-image"),t.image,Y);this.U.init(RA("ad-text"),t.headline,Y);this.S.init(RA("ad-text"),t.description,Y);this.lP.init(RA("ad-image"),t.backgroundImage,Y);L=["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.S.element.classList.add("ytp-ad-action-interstitial-description-light");L.push("ytp-ad-action-interstitial-action-button-dark");this.api.J().T&&(L.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),L.push("ytp-ad-action-interstitial-action-button-dark"));this.api.J().N("enable_unified_action_endcap_on_web")&& !this.api.J().T&&(L.push("ytp-ad-action-interstitial-action-button-unified"),this.yG.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.iP.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Hx.classList.add("ytp-ad-action-interstitial-card-unified"),this.x8.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.gU.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Zx.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ne.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new o$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,L);g.f(this,this.actionButton);this.actionButton.zz(this.yG); this.actionButton.init(RA("button"),g.A(t.actionButton,g.IB),Y);v$(this.actionButton.element);L=k4(this.actionButton.element);ah(this.actionButton.element,L+" This link opens in new tab");this.navigationEndpoint=t.navigationEndpoint;this.W.V(this.Zx,"click",this.RL,this);this.W.V(this.x8,"click",this.RL,this);!this.api.J().N("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.J().T||this.W.V(this.gU,"click",this.RL,this);this.G=this.j2?new WC(this.api,h):new y0(h);g.f(this,this.G);if(t.skipButton){(h= g.A(t.skipButton,mn8))&&this.G&&(this.skipButton=new zT(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.G,this.cF),g.f(this,this.skipButton),this.skipButton.zz(this.element),this.skipButton.init(RA("skip-button"),h,Y));if(Y=t.adBadgeRenderer)if(Y=g.A(Y,PvP))h=new HC(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0,!0),h.zz(this.Ne),h.init(RA("simple-ad-badge"),Y,this.macros),g.f(this,h);if(Y=t.adInfoRenderer)if(Y=g.A(Y,Aj))h=new OS(this.api,this.layoutId,this.interactionLoggingClientData, this.F5,this.element,void 0,!0),h.zz(this.Ne),h.init(RA("ad-info-hover-text-button"),Y,this.macros),g.f(this,h)}else t.nonskippableOverlayRenderer&&(h=g.A(t.nonskippableOverlayRenderer,SJ))&&this.G&&(this.T=new R$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.G,!1),g.f(this,this.T),this.T.zz(this.element),this.T.init(RA("ad-preview"),h,Y));t.countdownRenderer&&(t=t.countdownRenderer,g.A(t,DnP)&&this.G&&(Y=new $jW(this.api,this.layoutId,this.interactionLoggingClientData,this.F5, this.G),g.f(this,Y),Y.zz(this.element),Y.init(RA("timed-pie-countdown"),g.A(t,DnP),this.macros)));this.show();this.element.focus()}else g.ZD(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.ZD(Error("AdActionInterstitialRenderer has no button."));else g.ZD(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ZD(Error("AdActionInterstitialRenderer has no description AdText."));else g.ZD(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ZD(Error("AdActionInterstitialRenderer has no image."))}; g.M.clear=function(){g.ZZ(this.W);this.hide()}; g.M.show=function(){ADc(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.T&&this.T.show();g7.prototype.show.call(this)}; g.M.hide=function(){ADc(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.T&&this.T.hide();g7.prototype.hide.call(this)}; g.M.RL=function(){this.navigationEndpoint&&(this.layoutId?this.F5.executeCommand(this.navigationEndpoint,this.layoutId):g.ZD(Error("Missing layoutId for ad action interstitial.")))};var Ph6={iconType:"CLOSE"},uD=new g.Se(320,63);g.F(BVL,g7);g.M=BVL.prototype; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);this.W=t;this.L=g.ul(this.W.onClickCommands||[]);this.Ne=this.W.onErrorCommand||null;if(h=this.W.contentSupportedRenderer)h=this.W.contentSupportedRenderer,t=this.W.adInfoRenderer||null,g.A(h,IXC)?(this.U=g.V_("ytp-ad-overlay-ad-info-button-container",this.S.element),mjL(this,t),h=hpn(this,g.A(h,IXC))):g.A(h,RNs)?(this.U=g.V_("ytp-ad-overlay-ad-info-button-container",this.T.element),mjL(this,t),h=tLl(this,g.A(h,RNs))):g.A(h,Bh8)?(this.U= g.V_("ytp-ad-overlay-ad-info-button-container",this.G.element),mjL(this,t),h=iLl(this,g.A(h,Bh8))):(g.ZD(Error("InvideoOverlayAdRenderer content could not be initialized.")),h=!1);h&&(this.show(),gbE(this,!0))}; g.M.clear=function(){gbE(this,!1);this.Zx.reset();this.x8=0;this.S.hide();this.logVisibility(this.S.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()}; g.M.n0P=function(){this.yG&&(this.layoutId?this.F5.executeCommand(this.yG,this.layoutId):g.ZD(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.M.LW=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var h=this.W.closeButton.buttonRenderer;if(h.serviceEndpoint){h=[h.serviceEndpoint];break a}}h=[]}h=g.b(h);for(var t=h.next();!t.done;t=h.next())t=t.value,this.layoutId?this.F5.executeCommand(t,this.layoutId):g.ZD(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.M.cQ5=function(){this.lP||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.M.Tf=function(){this.lP||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Tf("invideo-overlay")}; g.M.W_0=function(h){h.target===this.U&&g.V_("ytp-ad-button",this.iP.element).click()};g.F(YLv,$7);g.M=YLv.prototype;g.M.init=function(h,t,Y){$7.prototype.init.call(this,h,t,Y);h=t.durationMs;this.S=h==null||h===0?0:h+this.G.getProgressState().current*1E3;if(t.text)var L=t.text.templatedAdText;else t.staticMessage&&(L=t.staticMessage);this.messageText.init(RA("ad-text"),L,Y);this.messageText.zz(this.T.element);this.W.show(100);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){LLy(this,!1);$7.prototype.hide.call(this);this.T.hide();this.messageText.hide();As(this)}; g.M.show=function(){LLy(this,!0);$7.prototype.show.call(this);T6(this);this.T.show();this.messageText.show()}; g.M.DD=function(){this.hide()}; g.M.rV=function(){if(this.G!=null){var h=this.G.getProgressState();h!=null&&h.current!=null&&(h=1E3*h.current,!this.x8&&h>=this.S?(this.W.hide(),this.x8=!0):this.messageText&&this.messageText.isTemplated()&&(h=Math.max(0,Math.ceil((this.S-h)/1E3)),h!==this.U&&(fc(this.messageText,{TIME_REMAINING:String(h)}),this.U=h)))}};g.F(qL0,g7);g.M=qL0.prototype; g.M.init=function(h,t,Y){g7.prototype.init.call(this,h,t,{});t.image&&t.image.thumbnail?t.headline?t.description?t.actionButton&&g.A(t.actionButton,g.IB)?(this.S.init(RA("ad-image"),t.image,Y),this.T.init(RA("ad-text"),t.headline,Y),this.W.init(RA("ad-text"),t.description,Y),this.actionButton=new o$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,["ytp-ad-underlay-action-button"]),t.backgroundColor&&g.$9(this.element,"background-color",g.cC(t.backgroundColor)),g.f(this,this.actionButton), this.actionButton.zz(this.U),this.actionButton.init(RA("button"),g.A(t.actionButton,g.IB),Y),h=g.Sk(this.api.J().experiments,"player_underlay_video_width_fraction"),this.api.J().N("place_shrunken_video_on_left_of_player")?(t=this.G,g.hp(t,"ytp-ad-underlay-left-container"),g.mS(t,"ytp-ad-underlay-right-container"),g.$9(this.G,"margin-left",Math.round((h+.02)*100)+"%")):(t=this.G,g.hp(t,"ytp-ad-underlay-right-container"),g.mS(t,"ytp-ad-underlay-left-container")),g.$9(this.G,"width",Math.round((1-h- .04)*100)+"%"),this.api.gj()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.xW.bind(this)),this.api.addEventListener("resize",this.P8.bind(this))):g.ZD(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ZD(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ZD(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ZD(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.M.show=function(){zp3(!0);this.actionButton&&this.actionButton.show();g7.prototype.show.call(this)}; g.M.hide=function(){zp3(!1);this.actionButton&&this.actionButton.hide();g7.prototype.hide.call(this)}; g.M.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.xW.bind(this));this.api.removeEventListener("resize",this.P8.bind(this));this.hide()}; g.M.onClick=function(h){g7.prototype.onClick.call(this,h);this.actionButton&&g.sO(this.actionButton.element,h.target)&&this.api.pauseVideo()}; g.M.xW=function(h){h==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):h==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):h==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))}; g.M.P8=function(h){h.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):h.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.$9(this.T.element,"font-size",h.width/40+"px")};g.F(eO,g7); eO.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);t.toggledLoggingParams&&(this.toggledLoggingParams=t.toggledLoggingParams);t.answer&&g.A(t.answer,g.IB)?(h=new o$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),h.zz(this.answer),h.init(RA("ytp-ad-survey-answer-button"),g.A(t.answer,g.IB),Y),h.show()):t.answer&&g.A(t.answer,Qu)&&(this.G=new pc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5, ["ytp-ad-survey-answer-toggle-button"]),this.G.zz(this.answer),g.f(this,this.G),this.G.init(RA("survey-answer-button"),g.A(t.answer,Qu),Y));this.show()}; eO.prototype.dK=function(h){this.layoutId?dy(this.F5,h,this.layoutId,this.macros):(h=new g.Ea("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ZD(h))}; eO.prototype.onClick=function(h){g7.prototype.onClick.call(this,h);if(this.api.J().N("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; eO.prototype.clear=function(){this.hide()};g.F(VLP,g7);VLP.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);t.answer&&g.A(t.answer,Qu)&&(this.button=new pc(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.zz(this.G),this.button.init(RA("survey-none-of-the-above-button"),g.A(t.answer,Qu),Y));this.show()};g.F(JM,o$);JM.prototype.init=function(h,t,Y){o$.prototype.init.call(this,h,t,Y);h=!1;t.text&&(t=g.Lc(t.text),h=!g.e$(t));h||g.bc(Error("No submit text was present in the renderer."))}; JM.prototype.onClick=function(h){this.publish("l");o$.prototype.onClick.call(this,h)};g.F(p5,g7); p5.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);if(h=t.skipOrPreviewRenderer)g.A(h,Mt)?(h=g.A(h,Mt),Y=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.W,!0),Y.zz(this.skipOrPreview),Y.init(RA("skip-button"),h,this.macros),g.f(this,Y),this.G=Y):g.A(h,SJ)&&(h=g.A(h,SJ),Y=new R$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.W,!1),Y.zz(this.skipOrPreview),Y.init(RA("ad-preview"),h,this.macros),Y.x8.show(100),Y.show(),g.f(this,Y), this.G=Y);this.G==null&&(h=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(t)),g.ZD(h));t.submitButton&&(h=t.submitButton,g.A(h,g.IB)&&(h=g.A(h,g.IB),Y=new JM(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),Y.zz(this.submitButton),Y.init(RA("survey-submit"),h,this.macros),g.f(this,Y),this.T=Y));if(h=t.adBadgeRenderer)h=g.A(h,PvP),Y=new HC(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0,!0,!0),Y.zz(this.S),Y.init(RA("simple-ad-badge"), h,this.macros),this.adBadge=Y.element,g.f(this,Y);if(h=t.adDurationRemaining)h=g.A(h,Th3),Y=new Cs(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.W,void 0,!0),Y.zz(this.S),Y.init(RA("ad-duration-remaining"),h,this.macros),g.f(this,Y);(t=t.adInfoRenderer)&&g.A(t,Aj)&&(h=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.element,void 0,!0),g.f(this,h),this.adBadge!==void 0?this.S.insertBefore(h.element,this.adBadge.nextSibling):h.zz(this.S),h.init(RA("ad-info-hover-text-button"), g.A(t,Aj),this.macros));this.show()}; p5.prototype.clear=function(){this.hide()};g.F(va,g7);va.prototype.init=function(h,t,Y){g7.prototype.init.call(this,h,t,Y);WLL(this)}; va.prototype.show=function(){this.S=Date.now();g7.prototype.show.call(this)}; va.prototype.ye=function(){};g.F(yr8,va);g.M=yr8.prototype;g.M.init=function(h,t,Y){var L=this;va.prototype.init.call(this,h,t,Y);t.questionText&&N3v(this,t.questionText);t.answers&&t.answers.forEach(function(q,z){g.A(q,dg)&&l$E(L,g.A(q,dg),Y,z)}); this.U=new Set(this.T.map(function(q){return q.G.G})); (h=t.noneOfTheAbove)&&(h=g.A(h,Sw8))&&XWv(this,h,Y);t.surveyAdQuestionCommon&&wWv(this,t.surveyAdQuestionCommon);t.submitEndpoints&&(this.submitEndpoints=t.submitEndpoints);this.V(this.element,"change",this.onChange);this.show()}; g.M.ye=function(){U1h(this,!1);this.W.T.subscribe("l",this.MLz,this)}; g.M.onChange=function(h){h.target===this.noneOfTheAbove.button.G?Cis(this):this.U.has(h.target)&&(this.noneOfTheAbove.button.toggleButton(!1),U1h(this,!0))}; g.M.MLz=function(){var h=[],t=this.T.reduce(function(q,z,V){var l=z.toggledLoggingParams;z.G&&z.G.isToggled()&&l&&(q.push(l),h.push(V));return q},[]).join("&"),Y=this.submitEndpoints.map(function(q){if(!q.loggingUrls)return q; q=g.Cu(q);q.loggingUrls=q.loggingUrls.map(function(z){z.baseUrl&&(z.baseUrl=UM(z.baseUrl,t));return z}); return q}); if(Y){Y=g.b(Y);for(var L=Y.next();!L.done;L=Y.next())L=L.value,this.layoutId?dy(this.F5,L,this.layoutId,this.macros):g.ZD(Error("Missing layoutId for multi_select_question."))}this.api.J().N("supports_multi_step_on_desktop")&&this.x8(h)}; g.M.clear=function(){this.api.J().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.F(K5,va);K5.prototype.init=function(h,t,Y){var L=this;va.prototype.init.call(this,h,t,Y);t.questionText&&N3v(this,t.questionText);t.answers&&t.answers.forEach(function(q,z){g.A(q,dg)&&l$E(L,g.A(q,dg),Y,z)}); t.surveyAdQuestionCommon?wWv(this,t.surveyAdQuestionCommon):hq(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(t)));this.show()}; K5.prototype.clear=function(){this.api.J().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.F(aU,g7);aU.prototype.init=function(h,t,Y){var L=this;g7.prototype.init.call(this,h,t,Y);if(this.api.J().N("supports_multi_step_on_desktop")){var q;this.conditioningRules=(q=t.conditioningRules)!=null?q:[];var z;this.T=(z=t.questions)!=null?z:[];var V;((V=t.questions)==null?0:V.length)&&jc3(this,0)}else(t.questions||[]).forEach(function(l){g.A(l,$f)?FLE(L,g.A(l,$f),Y):g.A(l,fF)&&scv(L,g.A(l,fF),Y)}); this.show()}; aU.prototype.clear=function(){this.api.J().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; aU.prototype.W=function(h){var t=this;if(this.api.J().N("supports_multi_step_on_desktop")){var Y;if((Y=this.conditioningRules)==null?0:Y.length){var L;if(h.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(q){return q.questionIndex===t.G})==null)g.ZD(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(q){if(q.questionIndex===t.G)switch(q.condition){case "CONDITION_ALL_OF":var z;if((z=q.answerIndices)==null?0:z.every(function(l){return h.includes(l)}))L=q.nextQuestionIndex; break;case "CONDITION_ANY_OF":var V;if((V=q.answerIndices)==null?0:V.some(function(l){return h.includes(l)}))L=q.nextQuestionIndex; break;default:g.ZD(Error("Expected specified condition in survey conditioning rules."))}}),L!=null)jc3(this,L); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ZD(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.F(xx,g7); xx.prototype.init=function(h,t,Y){var L=this;g7.prototype.init.call(this,h,t,Y);h=t.timeoutSeconds||0;if(typeof h!=="number"||h<0)g.ZD(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+h));else if(t.timeoutCommands)if(t.text)if(t.ctaButton&&g.A(t.ctaButton,g.IB))if(t.brandImage)if(t.backgroundImage&&g.A(t.backgroundImage,RB)&&g.A(t.backgroundImage,RB).landscape){this.layoutId||g.ZD(Error("Missing layoutId for survey interstitial."));ZLL(this.interstitial,g.A(t.backgroundImage, RB).landscape);ZLL(this.logoImage,t.brandImage);g.jr(this.text,g.Lc(t.text));var q=["ytp-ad-survey-interstitial-action-button"];q.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new o$(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,q);g.f(this,this.actionButton);this.actionButton.zz(this.T);this.actionButton.init(RA("button"),g.A(t.ctaButton,g.IB),Y);this.actionButton.show();this.G=new WC(this.api,h*1E3);this.G.subscribe("g",function(){L.transition.hide()}); g.f(this,this.G);this.V(this.element,"click",function(z){var V=z.target===L.interstitial;z=L.actionButton.element.contains(z.target);if(V||z)if(L.transition.hide(),V)L.api.onAdUxClicked(L.componentType,L.layoutId)}); this.transition.show(100)}else g.ZD(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ZD(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ZD(Error("SurveyTextInterstitialRenderer has no button."));else g.ZD(Error("SurveyTextInterstitialRenderer has no text."));else g.ZD(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; xx.prototype.clear=function(){this.hide()}; xx.prototype.show=function(){bLn(!0);g7.prototype.show.call(this)}; xx.prototype.hide=function(){bLn(!1);g7.prototype.hide.call(this)};g.F(EU,$7);g.M=EU.prototype; g.M.init=function(h,t){$7.prototype.init.call(this,h,t,{});if(t.durationMilliseconds){if(t.durationMilliseconds<0){g.ZD(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+t.durationMilliseconds));return}this.T=t.durationMilliseconds}else this.T=this.G.w3();var Y;if((Y=t.previewText)==null||!Y.text||g.e$(t.previewText.text))g.ZD(Error("No text is returned for AdPreview."));else{this.U=t.previewText;t.previewText.isTemplated||g.jr(this.S,t.previewText.text);var L; if(((L=this.api.getVideoData(1))==null?0:L.w4)&&t.previewImage){var q,z;(h=((z=z7(((q=t.previewImage)==null?void 0:q.sources)||[],52,!1))==null?void 0:z.url)||"")&&h.length?(this.previewImage=new g.iR({Z:"img",D:"ytp-preview-ad__image",j:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",h),g.f(this,this.previewImage),this.previewImage.zz(this.element)):g.ZD(Error("Failed to get imageUrl in AdPreview."))}else this.S.classList.add("ytp-preview-ad__text--padding--wide")}}; g.M.clear=function(){this.hide()}; g.M.hide=function(){As(this);$7.prototype.hide.call(this)}; g.M.show=function(){T6(this);$7.prototype.show.call(this)}; g.M.DD=function(){this.hide()}; g.M.rV=function(){if(this.G){var h=this.G.getProgressState();if(h!=null&&h.current)if(h=1E3*h.current,h>=this.T)this.transition.hide();else{var t;if((t=this.U)==null?0:t.isTemplated)if(t=Math.max(0,Math.ceil((this.T-h)/1E3)),t!==this.W){var Y,L;(h=(Y=this.U)==null?void 0:(L=Y.text)==null?void 0:L.replace("{TIME_REMAINING}",String(t)))&&g.jr(this.S,h);this.W=t}}}};g.F(kx,g7); kx.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});var Y,L;if((h=((L=z7(((Y=t.image)==null?void 0:Y.sources)||[],obl(t),!0))==null?void 0:L.url)||"")&&h.length){Y=this.Tz("ytp-ad-avatar");Y.src=h;var q,z;if(L=(q=t.interaction)==null?void 0:(z=q.accessibility)==null?void 0:z.label)Y.alt=L;switch(t.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(t.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.ZD(Error("Failed to get imageUrl in AdAvatar."))}; kx.prototype.clear=function(){this.hide()}; kx.prototype.onClick=function(h){g7.prototype.onClick.call(this,h)};g.F(OU,g7); OU.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});var Y;h=(Y=t.label)==null?void 0:Y.content;if((Y=h!=null&&!g.e$(h))||t.iconImage){Y&&(this.buttonText=new g.iR({Z:"span",D:"ytp-ad-button-vm__text",o0:h}),g.f(this,this.buttonText),this.buttonText.zz(this.element));var L,q,z=((L=t.interaction)==null?0:(q=L.accessibility)==null?0:q.label)||Y?h:"";z&&ah(this.element,z+" This link opens in new tab");v$(this.element);if(t.iconImage){L=void 0;if(t.iconImage){a:{q=t.iconImage;if(q.sources)for(q= g.b(q.sources),h=q.next();!h.done;h=q.next())if(h=h.value,z=void 0,(z=h.clientResource)==null?0:z.imageName){q=h;break a}q=void 0}if(q){var V;L={iconType:(V=q.clientResource)==null?void 0:V.imageName}}}V=bR(L,!1,this.T);V!=null&&(this.buttonIcon=new g.iR({Z:"span",D:"ytp-ad-button-vm__icon",B:[V]}),g.f(this,this.buttonIcon),t.iconLeading?(Ml(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):Y?(this.buttonIcon.zz(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.zz(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(t.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.N("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.G?"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(t.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.bc(Error("AdButton does not have label or an icon."))}; OU.prototype.clear=function(){this.hide()}; OU.prototype.onClick=function(h){g7.prototype.onClick.call(this,h)};g.F(d1y,$7);g.M=d1y.prototype; g.M.init=function(h,t){$7.prototype.init.call(this,h,t,{});this.api.J().N("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Tz("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Ml(this.Tz("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(h=g.A(t.avatar,Ba)){var Y=t.headline;if(Y){var L=t.description;if(L){var q=g.A(t.button,mN);q?(this.adAvatar.init(RA("ad-avatar"),h),this.headline.init(RA("ad-simple-attributed-string"),new FA(Y)),this.description.init(RA("ad-simple-attributed-string"),new FA(L)),Y.content&&Y.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(RA("ad-button"),q),this.startMilliseconds=t.startMs||0,this.api.gj()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.oS.bind(this)),T6(this)):g.ZD(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ZD(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ZD(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ZD(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.M.rV=function(){if(this.G){var h=this.G.getProgressState();h&&h.current&&1E3*h.current>=this.startMilliseconds&&(As(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.M.DD=function(){this.clear()}; g.M.onClick=function(h){this.api.pauseVideo();$7.prototype.onClick.call(this,h)}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.oS.bind(this))}; g.M.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();$7.prototype.show.call(this)}; g.M.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();$7.prototype.hide.call(this)}; g.M.oS=function(h){h==="hidden"?this.show():this.hide()};g.F(n5,g7);g.M=n5.prototype; g.M.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(!t.label||g.e$(t.label))g.ZD(Error("No label is returned for SkipAdButton."));else if(g.jr(this.W,t.label),h=bR({iconType:"SKIP_NEXT_NEW"}),h==null)g.ZD(Error("Unable to retrieve icon for SkipAdButton"));else if(this.S=new g.iR({Z:"span",D:"ytp-skip-ad-button__icon",B:[h]}),g.f(this,this.S),this.S.zz(this.element),this.api.J().experiments.I0("enable_skip_to_next_messaging")&&(t=g.Ja(t.targetId)))this.T=!0,this.element.setAttribute("data-tooltip-target-id",t), this.element.setAttribute("data-tooltip-target-fixed","")}; g.M.onClick=function(h){h&&h.preventDefault();var t,Y;ijc(h,{contentCpn:(Y=(t=this.api.getVideoData(1))==null?void 0:t.clientPlaybackNonce)!=null?Y:""})===0?this.api.jM("onAbnormalityDetected"):(g7.prototype.onClick.call(this,h),this.api.jM("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.M.clear=function(){this.G.reset();this.hide()}; g.M.hide=function(){g7.prototype.hide.call(this)}; g.M.show=function(){this.G.start();g7.prototype.show.call(this);this.T&&this.api.J().experiments.I0("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.F(Gn0,$7);g.M=Gn0.prototype; g.M.init=function(h,t){$7.prototype.init.call(this,h,t,{});h=g.A(t.preskipState,qbv);var Y;if((Y=this.api.getVideoData())==null?0:Y.isDaiEnabled()){if(!h){g.ZD(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.T=new EU(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.G);g.f(this,this.T);this.T.zz(this.element);var L;(L=this.T)==null||L.init(RA("preview-ad"),h);(Y=this.T)!=null&&(Y.transition.show(100),Y.show())}(Y=g.A(t.skippableState,Ve0))?(t.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=t.skipOffsetMilliseconds:(g.bc(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.S.init(RA("skip-button"),Y),this.show()):g.ZD(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.M.show=function(){T6(this);$7.prototype.show.call(this)}; g.M.hide=function(){!this.isSkippable&&this.T?this.T.hide():this.S&&this.S.hide();As(this);$7.prototype.hide.call(this)}; g.M.clear=function(){var h;(h=this.T)==null||h.clear();this.S&&this.S.clear();As(this);$7.prototype.hide.call(this)}; g.M.DD=function(){this.hide()}; g.M.rV=function(){if(1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var h;(h=this.T)!=null&&h.transition.hide();(h=this.S)!=null&&(h.transition.show(),h.show())}};g.F(f5,g7); f5.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(t.label){var Y;((Y=t.label)==null?0:Y.content)&&!g.e$(t.label.content)&&(this.linkText=new g.iR({Z:"span",D:"ytp-visit-advertiser-link__text",o0:t.label.content}),g.f(this,this.linkText),this.linkText.zz(this.element));var L,q;if((L=t.interaction)==null?0:(q=L.accessibility)==null?0:q.label)ah(this.element,t.interaction.accessibility.label+" This link opens in new tab");else{var z;((z=t.label)==null?0:z.content)&&!g.e$(t.label.content)&&ah(this.element, t.label.content+" This link opens in new tab")}v$(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ZD(Error("No label found in VisitAdvertiserLink."))}; f5.prototype.onClick=function(h){g7.prototype.onClick.call(this,h);this.api.onAdUxClicked(this.componentType,this.layoutId)}; f5.prototype.clear=function(){this.hide()};g.F($x,g7); $x.prototype.init=function(h,t,Y,L){g7.prototype.init.call(this,h,t,{});if(t.skipOrPreview){Y=t.skipOrPreview;h=g.A(Y,Nkn);Y=g.A(Y,qbv);if(h)this.VF=new Gn0(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T),g.f(this,this.VF),this.VF.zz(this.L),this.VF.init(RA("skip-ad"),h);else{var q;Y&&((q=this.api.getVideoData())==null?0:q.isDaiEnabled())&&(this.W=new EU(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T,1),g.f(this,this.W),this.W.zz(this.L),this.W.init(RA("ad-preview"), Y),q=this.W,q.transition.show(100),q.show())}if(q=g.A(t.skipOrPreview,Nkn))var z=q.skipOffsetMilliseconds}t.playerAdCard&&(q=g.A(t.playerAdCard,zO0))&&(this.playerAdCard=new d1y(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T),g.f(this,this.playerAdCard),this.playerAdCard.zz(this.gU),this.playerAdCard.init(RA("ad-avatar-lockup-card"),q));t.adBadgeRenderer&&((q=g.A(t.adBadgeRenderer,Pa))?(this.S=new jp(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0),g.f(this, this.S),this.S.zz(this.G),this.S.init(RA("ad-badge"),q)):g.ZD(Error("AdBadgeViewModel is not found in player overlay layout.")));t.adPodIndex&&(q=g.A(t.adPodIndex,i0s))&&(this.adPodIndex=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.adPodIndex),this.adPodIndex.zz(this.G),this.adPodIndex.init(RA("ad-pod-index"),q));t.adInfoRenderer&&((q=g.A(t.adInfoRenderer,Aj))?(this.adInfoButton=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.element, void 0,!0),g.f(this,this.adInfoButton),this.S!==void 0?this.G.insertBefore(this.adInfoButton.element,this.S.element.nextSibling):this.adInfoButton.zz(this.G),this.adInfoButton.init(RA("ad-info-hover-text-button"),q,this.macros)):g.bc(Error("AdInfoRenderer is not found in player overlay layout.")));var V;q=(V=this.api.getVideoData())==null?void 0:V.isDaiEnabled();t.adDurationRemaining&&q&&(V=g.A(t.adDurationRemaining,Th3))&&(this.adDurationRemaining=new Cs(this.api,this.layoutId,this.interactionLoggingClientData, this.F5,this.T,L.videoAdDurationSeconds,!0),g.f(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.zz(this.G),this.adDurationRemaining.init(RA("ad-duration-remaining"),V,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));t.visitAdvertiserLink&&(L=g.A(t.visitAdvertiserLink,H03))&&(this.visitAdvertiserLink=new f5(this.api,this.layoutId, this.interactionLoggingClientData,this.F5),g.f(this,this.visitAdvertiserLink),this.visitAdvertiserLink.zz(this.G),this.visitAdvertiserLink.init(RA("visit-advertiser-link"),L));t.adDisclosureBanner&&(t=g.A(t.adDisclosureBanner,te1))&&(this.adDisclosureBanner=new b9(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.adDisclosureBanner),this.adDisclosureBanner.zz(this.x8),this.adDisclosureBanner.init(RA("ad-disclosure-banner"),t));this.U=new GT(this.api,this.T,z,!0);g.f(this, this.U);g.kl(this.api,this.U.element,4);this.show()}; $x.prototype.clear=function(){this.hide()};g.F(Qcs,g7);g.M=Qcs.prototype; g.M.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(t!=null&&t.title)if(h=t.title)if(this.headline.init(RA("ad-simple-attributed-string"),new FA(h)),h=g.A(t.moreInfoButton,mN)){if(this.moreInfoButton.init(RA("ad-button"),h),t.descriptions)t.descriptions.length>0&&(h=t.descriptions[0])&&(this.G=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.G),this.G.zz(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(RA("ad-simple-attributed-string"), new FA(h))),t.descriptions.length>1&&(t=t.descriptions[1])&&(this.T=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.T),this.T.zz(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.T.init(RA("ad-simple-attributed-string"),new FA(t)))}else g.ZD(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.ZD(Error("No headline found in AdGridCardText."));else g.ZD(Error("No headline found in AdGridCardText."))}; g.M.onClick=function(h){g7.prototype.onClick.call(this,h);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var h;(h=this.G)==null||h.clear();var t;(t=this.T)==null||t.clear()}; g.M.hide=function(){this.headline.hide();this.moreInfoButton.hide();var h;(h=this.G)==null||h.hide();var t;(t=this.T)==null||t.hide();g7.prototype.hide.call(this)}; g.M.show=function(){g7.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var h;(h=this.G)==null||h.show();var t;(t=this.T)==null||t.show()};g.F(T8,g7);T8.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(t!=null&&t.gridCards)if(t.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.ZD(Error("Only single column style is currently supported in AdGridCardCollection."));else for(h=g.b(t.gridCards),t=h.next();!t.done;t=h.next()){if(t=g.A(t.value,Lg0)){var Y=new Qcs(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,Y);Y.zz(this.element);Y.init(RA("ad-grid-card-text"),t);this.G.push(Y)}}else g.ZD(Error("No grid cards found in AdGridCardCollection."))}; T8.prototype.show=function(){for(var h=g.b(this.G),t=h.next();!t.done;t=h.next())t.value.show();g7.prototype.show.call(this)}; T8.prototype.clear=function(){this.hide();for(var h=g.b(this.G),t=h.next();!t.done;t=h.next())t.value.clear()}; T8.prototype.hide=function(){for(var h=g.b(this.G),t=h.next();!t.done;t=h.next())t.value.hide();g7.prototype.hide.call(this)};g.F(AM,$7);g.M=AM.prototype;g.M.init=function(h,t,Y,L,q){q=q===void 0?0:q;$7.prototype.init.call(this,h,t,Y,L);this.playerProgressOffsetMs=q;T6(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Vl.bind(this));this.api.addEventListener("resize",this.Gj.bind(this));this.api.gj()?(this.T=!0,this.api.HL(!0),this.show()):this.hide()}; g.M.rV=function(){if(this.G){var h=this.G.getProgressState();h&&h.current&&!this.T&&1E3*h.current>=this.playerProgressOffsetMs&&(this.T=!0,this.api.HL(!0),this.show())}}; g.M.DD=function(){this.T&&this.api.HL(!1);this.hide()}; g.M.clear=function(){this.api.HL(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Vl.bind(this));this.api.removeEventListener("resize",this.Gj.bind(this));As(this);this.hide()}; g.M.hide=function(){rr1(!1);$7.prototype.hide.call(this)}; g.M.show=function(){rr1(!0);$7.prototype.show.call(this)};g.F(cr8,AM);g.M=cr8.prototype; g.M.init=function(h,t,Y,L){if(t!=null&&t.adGridCardCollection)if(t!=null&&t.adButton){var q=Number(t.playerProgressOffsetMs||"0");isNaN(q)?AM.prototype.init.call(this,h,t,Y,L):AM.prototype.init.call(this,h,t,Y,L,q);h=t.headline;Y=g.A(t.adAvatar,Ba);h&&Y?(this.headline=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.headline),this.headline.zz(this.Tz("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(RA("ad-simple-attributed-string"),new FA(h)), this.adAvatar=new kx(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.adAvatar),this.adAvatar.zz(this.Tz("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(RA("ad-avatar"),Y)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");h=g.A(t.adGridCardCollection,Yby);this.adGridCardCollection.init(RA("ad-grid-card-collection"),h);t=g.A(t.adButton,mN);this.adButton.init(RA("ad-button"),t); this.hide()}else g.ZD(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.ZD(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.M.onClick=function(h){(this.adButton&&g.sO(this.adButton.element,h.target)||this.adAvatar&&g.sO(this.adAvatar.element,h.target))&&this.api.pauseVideo();AM.prototype.onClick.call(this,h);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.Gj=function(){}; g.M.clear=function(){this.hide();var h;(h=this.headline)==null||h.clear();var t;(t=this.adAvatar)==null||t.clear();this.adGridCardCollection.clear();this.adButton.clear();AM.prototype.clear.call(this)}; g.M.show=function(){var h;(h=this.headline)==null||h.show();var t;(t=this.adAvatar)==null||t.show();this.adGridCardCollection.show();this.adButton.show();AM.prototype.show.call(this)}; g.M.hide=function(){var h;(h=this.headline)==null||h.hide();var t;(t=this.adAvatar)==null||t.hide();this.adGridCardCollection.hide();this.adButton.hide();AM.prototype.hide.call(this)}; g.M.Vl=function(h){h==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):h==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):h==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))};g.F(SO,g7); SO.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(t.attributes===void 0)g.ZD(Error("No attributes found in AdDetailsLineViewModel."));else if(t.style===void 0)g.ZD(Error("No style found in AdDetailsLineViewModel."));else{h=g.b(t.attributes);for(var Y=h.next();!Y.done;Y=h.next())if(Y=Y.value,Y.text!==void 0){Y=Y.text;var L=t.style,q=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,q);q.zz(this.element);a:switch(L){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":L="ytp-ad-details-line__text--style-responsive"; break a;default:L="ytp-ad-details-line__text--style-standard"}q.element.classList.add(L);q.init(RA("ad-simple-attributed-string"),new FA(Y));this.G.push(q)}this.show()}}; SO.prototype.show=function(){this.G.forEach(function(h){h.show()}); g7.prototype.show.call(this)}; SO.prototype.clear=function(){this.hide()}; SO.prototype.hide=function(){this.G.forEach(function(h){h.hide()}); g7.prototype.hide.call(this)};g.F(IU,g7);IU.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});var Y,L;(h=((L=z7(((Y=t.image)==null?void 0:Y.sources)||[]))==null?void 0:L.url)||"")&&h.length?(Y=this.Tz("ytp-image-background-image"),g.$9(Y,"backgroundImage","url("+h+")"),t.blurLevel!==void 0&&g.$9(Y,"filter","blur("+t.blurLevel+"px)"),t.gradient!==void 0&&(t=new g.I({Z:"div",Ei:["ytp-image-background--gradient-vertical"]}),g.f(this,t),t.zz(this.element)),this.show()):g.ZD(Error("Failed to get imageUrl in ImageBackground."))}; IU.prototype.clear=function(){this.hide()};g.F(uDl,$7);g.M=uDl.prototype;g.M.init=function(h,t){$7.prototype.init.call(this,h,t,{});g.$9(this.S,"stroke-dasharray","0 "+this.T);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){As(this);$7.prototype.hide.call(this)}; g.M.show=function(){T6(this);$7.prototype.show.call(this)}; g.M.DD=function(){this.hide()}; g.M.rV=function(){if(this.G){var h=this.G.getProgressState();h!=null&&h.current!=null&&g.$9(this.S,"stroke-dasharray",h.current/h.seekableEnd*this.T+" "+this.T)}};g.F(RU,g7); RU.prototype.init=function(h,t){g7.prototype.init.call(this,h,t,{});if(Jr0(t)){this.adAvatar=new kx(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.adAvatar);this.adAvatar.zz(this.Tz("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(RA("ad-avatar"),g.A(t.adAvatar,Ba));this.headline=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.F5);g.f(this,this.headline);this.headline.zz(this.Tz("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(RA("ad-simple-attributed-string"),new FA(t.headline));if(h=g.A(t.adDetailsLine,hOH))this.detailsLine=new SO(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.detailsLine),this.detailsLine.zz(this.Tz("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(RA("ad-details-line"),h);this.adButton=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0);g.f(this,this.adButton); this.adButton.zz(this.Tz("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(RA("ad-button"),g.A(t.adButton,mN));this.adBadge=new jp(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,!0);g.f(this,this.adBadge);this.adBadge.zz(this.W);this.adBadge.init(RA("ad-badge"),g.A(t.adBadge,Pa));this.adInfoButton=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.element,void 0,!0);g.f(this,this.adInfoButton);this.adInfoButton.zz(this.W); this.adInfoButton.init(RA("ad-info-hover-text-button"),g.A(t.adInfoRenderer,Aj),this.macros);if(h=g.A(t.skipAdButton,Ve0))this.skipAdButton=new n5(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.skipAdButton),this.skipAdButton.zz(this.element),this.skipAdButton.init(RA("skip-button"),h);this.T=new y0(t.durationMilliseconds);g.f(this,this.T);if(h=g.A(t.countdownViewModel,lj8))this.G=new uDl(this.api,this.layoutId,this.interactionLoggingClientData,this.F5,this.T),g.f(this, this.G),this.G.zz(this.Tz("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(RA("timed-pie-countdown"),h);if(t=g.A(t.imageBackground,g2v))this.imageBackground=new IU(this.api,this.layoutId,this.interactionLoggingClientData,this.F5),g.f(this,this.imageBackground),this.imageBackground.zz(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(RA("image-background"), t);this.show();this.element.focus()}}; RU.prototype.clear=function(){g.ZZ(this.S);this.hide()}; RU.prototype.show=function(){ep1(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();g7.prototype.show.call(this)}; RU.prototype.hide=function(){ep1(!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.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();g7.prototype.hide.call(this)};g.F(De,g.PD);g.M=De.prototype;g.M.w3=function(){return 1E3*this.api.getDuration(this.zI,!1)}; g.M.stop=function(){this.G&&this.tJ.W3(this.G)}; g.M.Kn=function(){var h=this.api.getProgressState(this.zI);this.T={seekableStart:h.seekableStart,seekableEnd:h.seekableEnd,current:this.api.getCurrentTime(this.zI,!1)};this.publish("h")}; g.M.getProgressState=function(){return this.T}; g.M.DA=function(h){g.qK(h,2)&&this.publish("g")};var KVv="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.F(hB,Kc); hB.prototype.S=function(h){var t=h.id,Y=h.content,L=Y.componentType;if(!KVv.includes(L))switch(h.actionType){case 1:h=this.api;var q=this.F5,z=Y.layoutId,V=Y.interactionLoggingClientData,l=Y instanceof cR?Y.j2:!1,H=Y instanceof cR||Y instanceof wP?Y.cF:!1;V=V===void 0?{}:V;l=l===void 0?!1:l;H=H===void 0?!1:H;switch(L){case "invideo-overlay":h=new BVL(h,z,V,q);break;case "player-overlay":h=new Q0(h,z,V,q,new De(h),H);break;case "player-overlay-layout":h=new $x(h,z,V,q,new De(h));break;case "survey":h= new aU(h,z,V,q);break;case "ad-action-interstitial":h=new TVD(h,z,V,q,l,H);break;case "video-interstitial-buttoned-centered":h=new RU(h,z,V,q);break;case "survey-interstitial":h=new xx(h,z,V,q);break;case "ad-message":h=new YLv(h,z,V,q,new De(h,1));break;case "player-underlay":h=new qL0(h,z,V,q);break;case "display-underlay-text-grid-cards":h=new cr8(h,z,V,q,new De(h));break;default:h=null}if(!h){g.bc(Error("No UI component returned from ComponentFactory for type: "+L));break}g.lv(this.components, t)?g.bc(Error("Ad UI component already registered: "+t)):this.components[t]=h;h.bind(Y);Y instanceof Qw?this.T?this.T.append(h.cW):g.bc(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(h.cW);break;case 2:t=pWP(this,h);if(t==null)break;t.bind(Y);break;case 3:Y=pWP(this,h),Y!=null&&(g.hN(Y),g.lv(this.components,t)?(Y=this.components,t in Y&&delete Y[t]):g.bc(Error("Ad UI component does not exist: "+t)))}}; hB.prototype.Gz=function(){g.tN(Object.values(this.components));this.components={};Kc.prototype.Gz.call(this)};g.F(vb3,g.Gt);g.M=vb3.prototype;g.M.create=function(){try{KL1(this),this.load(),this.created=!0,KL1(this)}catch(h){gP(h instanceof Error?h:String(h))}}; g.M.load=function(){try{Eby(this)}finally{gT(rT(this.G).TO)&&this.player.nC("ad",1)}}; g.M.destroy=function(){var h=this.player.getVideoData(1);this.G.G.Dm.fq(h&&h.clientPlaybackNonce||"");this.unload();this.created=!1}; g.M.unload=function(){g.Gt.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(t){gP(t instanceof Error?t:String(t))}if(this.T!=null){var h=this.T;this.T=null;h.dispose()}this.S.reset()}; g.M.yI=function(){return!1}; g.M.getAdState=function(){return-1}; g.M.getOptions=function(){return Object.values(vMn)}; g.M.LQ=function(h,t){t=t===void 0?{}:t;switch(h){case "replaceUrlMacros":return h=t,h.url?(t=g8L(this.player),Object.assign(t,h.QY5),h=g.b3(h.url,t)):h=null,h;case "onAboutThisAdPopupClosed":this.Sz(t);break;case "executeCommand":h=t;h.command&&h.layoutId&&this.executeCommand(h);break;default:return null}}; g.M.UF=function(h){var t;return!((t=this.G.G.HZ)==null||!t.get().UF(h))}; g.M.Sz=function(h){h.isMuted&&dei(rT(this.G).NG,rT(this.G).L3,h.layoutId);this.qB&&this.qB.Sz()}; g.M.executeCommand=function(h){rT(this.G).F5.executeCommand(h.command,h.layoutId)};g.t3("yt.player.Application.create",g.Z_.create);g.t3("yt.player.Application.createAlternate",g.Z_.create);KJi(MX(),pty);var amL=g.il("ytcsi.tick");amL&&amL("pe");g.dE("ad",vb3);g.F(g.gg,g.O);g.gg.prototype.start=function(h,t,Y){this.config={from:h,to:t,duration:Y,startTime:(0,g.FH)()};this.next()}; g.gg.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.gg.prototype.next=function(){if(this.config){var h=this.config,t=h.from,Y=h.to,L=h.duration;h=h.startTime;var q=(0,g.FH)()-h;h=this.G;L=$Br(h,q/L);if(L==0)h=h.C;else if(L==1)h=h.Y;else{q=$2(h.C,h.X,L);var z=$2(h.X,h.U,L);h=$2(h.U,h.Y,L);q=$2(q,z,L);z=$2(z,h,L);h=$2(q,z,L)}h=g.n0(h,0,1);this.callback(t+(Y-t)*h);h<1&&this.delay.start()}};g.F(g.YP,g.I);g.M=g.YP.prototype;g.M.hasSuggestions=function(){return this.suggestionData.length>0}; g.M.l7=function(){this.T&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.M.show=function(){g.I.prototype.show.call(this);T38(this)}; g.M.mS=function(){this.T&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.M.l3=function(){this.Bq(this.api.Bm().getPlayerSize())}; g.M.Bq=function(h){var t=this.api.isEmbedsShortsMode()?.5625:16/9,Y=this.api.cM();h=h.width-(Y?112:58);Y=Math.ceil(h/(Y?320:192));var L=(h-Y*8)/Y;t=Math.floor(L/t);for(var q=g.b(this.G),z=q.next();!z.done;z=q.next())z=z.value.Tz("ytp-suggestion-image"),z.style.width=L+"px",z.style.height=t+"px";this.suggestions.element.style.height=t+"px";this.W=L;this.Y=t;this.containerWidth=h;this.columns=Y;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Lp(this)}; g.M.onVideoDataChange=function(){var h=this.api.J(),t=this.api.getVideoData();this.U=t.Ye?!1:h.W;this.suggestionData=t.suggestions?g.oK(t.suggestions,function(Y){return Y&&!Y.playlistId}):[]; SLv(this);t.Ye?this.title.update({title:g.BV("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:t.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.M.scrollTo=function(h){h=g.n0(h,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.C.start(this.scrollPosition,h,1E3);this.scrollPosition=h;g.Lp(this);T38(this)};})(_yt_player);